@univerjs-pro/mcp-ui 0.10.14 → 0.11.0-nightly.202511151013
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 -0
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -0
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -0
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/locale/ja-JP.d.ts +3 -0
- 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 -0
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4c9222=_0x19e5;(function(_0x451e97,_0x292f02){const _0x111ab6=_0x19e5,_0x12ff30=_0x451e97();while(!![]){try{const _0x1f0207=parseInt(_0x111ab6(0x18f))/0x1*(parseInt(_0x111ab6(0x14a))/0x2)+parseInt(_0x111ab6(0x169))/0x3+-parseInt(_0x111ab6(0x1c3))/0x4+parseInt(_0x111ab6(0x13a))/0x5*(parseInt(_0x111ab6(0x23b))/0x6)+parseInt(_0x111ab6(0x1c6))/0x7+-parseInt(_0x111ab6(0x1a2))/0x8+-parseInt(_0x111ab6(0x13d))/0x9;if(_0x1f0207===_0x292f02)break;else _0x12ff30['push'](_0x12ff30['shift']());}catch(_0x3502ea){_0x12ff30['push'](_0x12ff30['shift']());}}}(_0x3c2c,0x43d1d));var ae=Object['defineProperty'],le=(_0x1038c,_0x52e135,_0x341da2)=>_0x52e135 in _0x1038c?ae(_0x1038c,_0x52e135,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x341da2}):_0x1038c[_0x52e135]=_0x341da2,I=(_0x30753c,_0x177616,_0x3e665d)=>le(_0x30753c,typeof _0x177616!=_0x4c9222(0x22a)?_0x177616+'':_0x177616,_0x3e665d);Object[_0x4c9222(0x1eb)](exports,Symbol[_0x4c9222(0x1cf)],{'value':_0x4c9222(0x297)});function _0x19e5(_0x285fb0,_0x566a9b){const _0x3c2cee=_0x3c2c();return _0x19e5=function(_0x19e567,_0x2e9ce2){_0x19e567=_0x19e567-0x130;let _0x2a2f92=_0x3c2cee[_0x19e567];return _0x2a2f92;},_0x19e5(_0x285fb0,_0x566a9b);}const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x435fc3,..._0xac525d}){const _0x4966a1=_0x4c9222,{icon:_0x1dafdb,id:_0x1ee7e7,className:_0x4cd9fd,extend:_0x520af6,..._0x5564d7}=_0xac525d,_0x2bd360=(_0x4966a1(0x285)+_0x1ee7e7+'\x20'+(_0x4cd9fd||''))[_0x4966a1(0x25c)](),_0x168677=d[_0x4966a1(0x219)]('_'+de());return G(_0x1dafdb,''+_0x1ee7e7,{'defIds':_0x1dafdb['defIds'],'idSuffix':_0x168677[_0x4966a1(0x203)]},{'ref':_0x435fc3,'className':_0x2bd360,..._0x5564d7},_0x520af6);}function G(_0x2571c7,_0x2b225b,_0x322c27,_0x3cc458,_0x19ba34){const _0x590146=_0x4c9222;return d[_0x590146(0x1ac)](_0x2571c7['tag'],{'key':_0x2b225b,...ue(_0x2571c7,_0x322c27,_0x19ba34),..._0x3cc458},(ve(_0x2571c7,_0x322c27)['children']||[])[_0x590146(0x24a)]((_0x490b26,_0x1b342d)=>G(_0x490b26,_0x2b225b+'-'+_0x2571c7[_0x590146(0x20a)]+'-'+_0x1b342d,_0x322c27,void 0x0,_0x19ba34)));}function ue(_0x2d3eb4,_0xe5218c,_0x5e58ea){const _0x3f8f2b=_0x4c9222,_0x5f4a80={..._0x2d3eb4['attrs']};_0x5e58ea!=null&&_0x5e58ea[_0x3f8f2b(0x1fd)]&&_0x5f4a80[_0x3f8f2b(0x25d)]===_0x3f8f2b(0x1fd)&&(_0x5f4a80['fill']=_0x5e58ea['colorChannel1']),_0x2d3eb4[_0x3f8f2b(0x20a)]==='mask'&&_0x5f4a80['id']&&(_0x5f4a80['id']=_0x5f4a80['id']+_0xe5218c[_0x3f8f2b(0x2a2)]),Object[_0x3f8f2b(0x174)](_0x5f4a80)['forEach'](([_0x20c2df,_0x61308d])=>{const _0x2630ff=_0x3f8f2b;_0x20c2df===_0x2630ff(0x16c)&&typeof _0x61308d==_0x2630ff(0x147)&&(_0x5f4a80[_0x20c2df]=_0x61308d[_0x2630ff(0x273)](/url\(#(.*)\)/,_0x2630ff(0x235)+_0xe5218c[_0x2630ff(0x2a2)]+')'));});const {defIds:_0x4a6b2b}=_0xe5218c;return!_0x4a6b2b||_0x4a6b2b[_0x3f8f2b(0x1d9)]===0x0||(_0x2d3eb4[_0x3f8f2b(0x20a)]==='use'&&_0x5f4a80[_0x3f8f2b(0x1b3)]&&(_0x5f4a80['xlink:href']=_0x5f4a80[_0x3f8f2b(0x1b3)]+_0xe5218c['idSuffix']),Object['entries'](_0x5f4a80)[_0x3f8f2b(0x1c2)](([_0x4133a2,_0x4fa9e1])=>{const _0x1b40b1=_0x3f8f2b;typeof _0x4fa9e1==_0x1b40b1(0x147)&&(_0x5f4a80[_0x4133a2]=_0x4fa9e1['replace'](/url\(#(.*)\)/,_0x1b40b1(0x235)+_0xe5218c[_0x1b40b1(0x2a2)]+')'));})),_0x5f4a80;}function ve(_0x34ead7,_0x26c0d4){const _0x1c4738=_0x4c9222;var _0x4cdc23;const {defIds:_0x42a8d9}=_0x26c0d4;return!_0x42a8d9||_0x42a8d9[_0x1c4738(0x1d9)]===0x0?_0x34ead7:_0x34ead7['tag']===_0x1c4738(0x14e)&&((_0x4cdc23=_0x34ead7[_0x1c4738(0x230)])!=null&&_0x4cdc23[_0x1c4738(0x1d9)])?{..._0x34ead7,'children':_0x34ead7[_0x1c4738(0x230)][_0x1c4738(0x24a)](_0xd13163=>typeof _0xd13163[_0x1c4738(0x29b)]['id']=='string'&&_0x42a8d9&&_0x42a8d9[_0x1c4738(0x29a)](_0xd13163[_0x1c4738(0x29b)]['id'])?{..._0xd13163,'attrs':{..._0xd13163['attrs'],'id':_0xd13163[_0x1c4738(0x29b)]['id']+_0x26c0d4[_0x1c4738(0x2a2)]}}:_0xd13163)}:_0x34ead7;}function de(){const _0x58e809=_0x4c9222;return Math[_0x58e809(0x22f)]()['toString'](0x24)[_0x58e809(0x167)](0x2,0x8);}_[_0x4c9222(0x2a6)]=_0x4c9222(0x24d);const Ce={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x256),'width':_0x4c9222(0x139),'height':_0x4c9222(0x139)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':'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','fillRule':_0x4c9222(0x210),'clipRule':_0x4c9222(0x210)}}]},H=d[_0x4c9222(0x1f5)](function(_0x50e0ef,_0x237228){const _0xc10c8a=_0x4c9222;return d[_0xc10c8a(0x1ac)](_,Object[_0xc10c8a(0x1a3)]({},_0x50e0ef,{'id':'check-mark-icon','ref':_0x237228,'icon':Ce}));});H[_0x4c9222(0x2a6)]=_0x4c9222(0x2aa);const ge={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x256),'width':'1em','height':_0x4c9222(0x139)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':_0x4c9222(0x172)}}]},B=d['forwardRef'](function(_0x19eba3,_0x334564){const _0x53c8f9=_0x4c9222;return d[_0x53c8f9(0x1ac)](_,Object[_0x53c8f9(0x1a3)]({},_0x19eba3,{'id':_0x53c8f9(0x260),'ref':_0x334564,'icon':ge}));});B['displayName']=_0x4c9222(0x268);const fe={'tag':'svg','attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':'0\x200\x2016\x2016','width':_0x4c9222(0x139),'height':'1em'},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':_0x4c9222(0x187)}},{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'d':_0x4c9222(0x1fa)}},{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x1d6),'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':_0x4c9222(0x210),'clipRule':'evenodd'}}]},F=d[_0x4c9222(0x1f5)](function(_0x34fa29,_0x41487f){const _0x2bc5c9=_0x4c9222;return d[_0x2bc5c9(0x1ac)](_,Object[_0x2bc5c9(0x1a3)]({},_0x34fa29,{'id':'help-icon','ref':_0x41487f,'icon':fe}));});F[_0x4c9222(0x2a6)]=_0x4c9222(0x266);const pe={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x256),'width':_0x4c9222(0x139),'height':_0x4c9222(0x139)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'stroke':_0x4c9222(0x1d6),'d':_0x4c9222(0x14d),'strokeLinecap':_0x4c9222(0x254),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4c9222(0x14e),'attrs':{},'children':[{'tag':_0x4c9222(0x1ff),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x226),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4c9222(0x192)]},Y=d[_0x4c9222(0x1f5)](function(_0x5bba72,_0x361587){const _0x2147df=_0x4c9222;return d[_0x2147df(0x1ac)](_,Object[_0x2147df(0x1a3)]({},_0x5bba72,{'id':_0x2147df(0x28c),'ref':_0x361587,'icon':pe}));});Y['displayName']=_0x4c9222(0x1e0);const he={'tag':_0x4c9222(0x16a),'attrs':{'xmlns':_0x4c9222(0x185),'fill':_0x4c9222(0x208),'viewBox':_0x4c9222(0x290),'width':'1em','height':_0x4c9222(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c9222(0x1fc)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'stroke':_0x4c9222(0x1d6),'d':_0x4c9222(0x137),'strokeLinecap':_0x4c9222(0x254),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4c9222(0x14e),'attrs':{},'children':[{'tag':_0x4c9222(0x1ff),'attrs':{'id':_0x4c9222(0x173)},'children':[{'tag':_0x4c9222(0x26b),'attrs':{'fill':_0x4c9222(0x226),'d':_0x4c9222(0x233),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x4c9222(0x1f5)](function(_0x3615e1,_0x4b2713){const _0x5c7e8e=_0x4c9222;return d[_0x5c7e8e(0x1ac)](_,Object['assign']({},_0x3615e1,{'id':'on-line-icon','ref':_0x4b2713,'icon':he}));});q['displayName']=_0x4c9222(0x1b4);function V(_0x2115c0){const _0x35e0f7=_0x4c9222;var _0x4a94f6,_0x1e3798;const {mcpCoreConfig:_0x467e77,onSave:_0xc9447b,loading:_0x1bd7f5=!0x1,config:_0x21df77,connectionStatus$:_0x3f8ff1,connectionError$:_0x184b6a,currentApiKey$:_0xe6aabf,currentSessionId$:_0xe254ef}=_0x2115c0,_0x45337a=v[_0x35e0f7(0x26f)](u[_0x35e0f7(0x277)]),_0x2e53af=v[_0x35e0f7(0x17d)](_0x3f8ff1,s[_0x35e0f7(0x1e2)]['DISCONNECTED']),_0x37c65f=v[_0x35e0f7(0x17d)](_0x184b6a,s[_0x35e0f7(0x166)]['NONE']),_0x40b636=v[_0x35e0f7(0x17d)](_0xe254ef,''),_0x23361a=v[_0x35e0f7(0x17d)](_0xe6aabf,''),[_0x4799b2,_0x3dc26a]=d[_0x35e0f7(0x1d3)](_0x23361a||''),_0x3ad125=!0x0,_0x308fb5=_0x21df77[_0x35e0f7(0x206)]&&_0x467e77[_0x35e0f7(0x240)]&&(_0x467e77[_0x35e0f7(0x240)]['includes'](_0x35e0f7(0x1d5))||_0x467e77[_0x35e0f7(0x240)][_0x35e0f7(0x29a)]('univer.ai')),_0x528915=(_0x4a94f6=_0x467e77[_0x35e0f7(0x240)])==null?void 0x0:_0x4a94f6[_0x35e0f7(0x29a)](_0x35e0f7(0x1d5)),_0x44b0f7=(_0x1e3798=_0x467e77[_0x35e0f7(0x240)])==null?void 0x0:_0x1e3798[_0x35e0f7(0x29a)]('univer.ai'),_0x3b93b3=_0x528915?_0x35e0f7(0x1a7):'https://console.univer.ai',_0x22173f=_0x21df77[_0x35e0f7(0x206)]&&(_0x528915||_0x44b0f7),[_0x48fd94,_0x40129e]=d[_0x35e0f7(0x1d3)](!_0x4799b2[_0x35e0f7(0x25c)]()),_0x3491eb=(_0x445643,_0x5013de)=>{const _0x124a14=_0x35e0f7;if(_0x5013de===s[_0x124a14(0x166)][_0x124a14(0x281)])return _0x124a14(0x1ce);switch(_0x445643){case s[_0x124a14(0x1e2)][_0x124a14(0x191)]:return _0x124a14(0x20d);case s[_0x124a14(0x1e2)][_0x124a14(0x207)]:case s[_0x124a14(0x1e2)][_0x124a14(0x1f0)]:return _0x124a14(0x280);case s[_0x124a14(0x1e2)][_0x124a14(0x1e7)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x59ff73=(_0x5024c9,_0x2dace4)=>{const _0x211164=_0x35e0f7;if(_0x2dace4===s[_0x211164(0x166)][_0x211164(0x281)])return _0x211164(0x1e9);switch(_0x5024c9){case s[_0x211164(0x1e2)]['CONNECTED']:return _0x211164(0x135);case s[_0x211164(0x1e2)]['CONNECTING']:case s[_0x211164(0x1e2)][_0x211164(0x1f0)]:return'univer-bg-blue-500';case s['MCPConnectionStatus'][_0x211164(0x1e7)]:return _0x211164(0x1e9);default:return'univer-bg-gray-500';}},_0x145470=_0x466e8a=>{const _0x580e94=_0x35e0f7;switch(_0x466e8a){case s['MCPConnectionStatus'][_0x580e94(0x191)]:return _0x45337a['t']('mcpConfig.connectionStatus.connected');case s[_0x580e94(0x1e2)][_0x580e94(0x207)]:return _0x45337a['t'](_0x580e94(0x152));case s[_0x580e94(0x1e2)][_0x580e94(0x1e7)]:return _0x45337a['t']('mcpConfig.connectionStatus.failed');case s[_0x580e94(0x1e2)][_0x580e94(0x1f0)]:return _0x45337a['t'](_0x580e94(0x267));default:return _0x45337a['t']('mcpConfig.connectionStatus.disconnected');}},_0x4fba44=_0x161263=>{const _0x5b5065=_0x35e0f7;switch(_0x161263){case s[_0x5b5065(0x166)][_0x5b5065(0x281)]:return _0x45337a['t'](_0x5b5065(0x19a));case s[_0x5b5065(0x166)]['SESSION_ID_OCCUPIED']:return _0x45337a['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x5b5065(0x166)][_0x5b5065(0x1a9)]:return _0x45337a['t'](_0x5b5065(0x132));case s[_0x5b5065(0x166)][_0x5b5065(0x145)]:return _0x45337a['t'](_0x5b5065(0x258));default:return'';}},_0x38999d=d[_0x35e0f7(0x232)](()=>{const _0x4468c9=_0x35e0f7,_0x3fbc35={..._0x467e77,'apiKey':_0x4799b2[_0x4468c9(0x25c)](),'enableAuth':_0x3ad125};_0xc9447b(_0x3fbc35);},[_0x467e77,_0x4799b2,_0x3ad125,_0xc9447b]),_0x55194b=_0x4799b2[_0x35e0f7(0x25c)]()[_0x35e0f7(0x1d9)]>0x0;return i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i['jsx']('div',{'className':_0x35e0f7(0x179),'children':i['jsxs'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x29d),'children':[i['jsx'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x270),'children':i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x2a1),'children':'⚙'})}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'children':i[_0x35e0f7(0x294)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x45337a['t'](_0x35e0f7(0x136))})})]})}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x193),'children':[i[_0x35e0f7(0x294)]('div',{'className':f[_0x35e0f7(0x194)](_0x35e0f7(0x16d),_0x3491eb(_0x2e53af,_0x37c65f)),'children':i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':f[_0x35e0f7(0x194)]('univer-size-2\x20univer-rounded-full',_0x59ff73(_0x2e53af,_0x37c65f))}),i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x262),'children':_0x145470(_0x2e53af)})]})}),_0x37c65f!==s[_0x35e0f7(0x166)][_0x35e0f7(0x1f7)]&&(_0x2e53af===s[_0x35e0f7(0x1e2)][_0x35e0f7(0x1e7)]||_0x37c65f===s[_0x35e0f7(0x166)][_0x35e0f7(0x281)])&&i['jsx'](_0x35e0f7(0x1f6),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':i[_0x35e0f7(0x23a)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i['jsx'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x1af),'children':'⚠️'}),i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x17c),'children':_0x4fba44(_0x37c65f)})]})})]}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x24f),'children':i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x1be),'children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x154),'children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1cc),{'className':_0x35e0f7(0x1f9),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'children':'🔑'}),'\x20',_0x45337a['t'](_0x35e0f7(0x180)),i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x162),'children':'*'}),_0x308fb5&&i['jsx']('a',{'className':_0x35e0f7(0x16f),'title':_0x45337a['t'](_0x35e0f7(0x238)),'role':'button','onClick':()=>_0x40129e(!0x0),'children':i[_0x35e0f7(0x294)](F,{})})]}),i[_0x35e0f7(0x294)](f[_0x35e0f7(0x26e)],{'type':'text','placeholder':_0x45337a['t'](_0x35e0f7(0x2a9)),'value':_0x4799b2,'disabled':_0x1bd7f5,'autoComplete':_0x35e0f7(0x251),'onChange':_0x3dc26a}),i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x176),'children':_0x45337a['t']('mcpConfig.apiKeyHint')})]}),_0x308fb5&&_0x48fd94&&i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x217),'children':[i[_0x35e0f7(0x294)]('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':_0x35e0f7(0x1a4),'onClick':()=>_0x40129e(!0x1),'children':i[_0x35e0f7(0x294)](B,{'className':_0x35e0f7(0x282)})}),i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x1e1),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x2ae),'children':i[_0x35e0f7(0x294)]('span',{'className':_0x35e0f7(0x1b1),'children':'🚀'})}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x202),'children':[i[_0x35e0f7(0x294)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x45337a['t']('mcpConfig.apiApplyInfo.title')}),i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x1ab),'children':_0x45337a['t'](_0x35e0f7(0x27e))}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x22173f&&i['jsxs']('a',{'className':_0x35e0f7(0x1aa),'href':_0x3b93b3,'target':'_blank','rel':_0x35e0f7(0x197),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'children':'🤖'}),_0x45337a['t'](_0x35e0f7(0x1da)),i['jsx'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x168),'children':'↗'})]})}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x45337a['t'](_0x35e0f7(0x13e))]})]})]})]}),_0x21df77['showDeveloperTools']&&i[_0x35e0f7(0x23a)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[i['jsxs']('h4',{'className':_0x35e0f7(0x1e8),'children':[i['jsx'](_0x35e0f7(0x248),{'children':'🔗'}),'\x20',_0x45337a['t']('mcpConfig.connectionInfo')]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-space-y-4','children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x196),'children':[i[_0x35e0f7(0x294)]('p',{'className':_0x35e0f7(0x1ec),'children':_0x45337a['t'](_0x35e0f7(0x1c4))}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x154),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x21d),'children':_0x45337a['t'](_0x35e0f7(0x27c))}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x225),'children':'1'}),_0x45337a['t'](_0x35e0f7(0x276))]}),i['jsxs'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)]('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x45337a['t'](_0x35e0f7(0x1a5))]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x225),'children':'3'}),_0x45337a['t'](_0x35e0f7(0x274))]})]})]})]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x154),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i['jsx'](_0x35e0f7(0x271),{'className':_0x35e0f7(0x138),'children':JSON[_0x35e0f7(0x141)]({'mcpServers':{'univer':{'url':_0x35e0f7(0x218)+(_0x40b636||_0x35e0f7(0x23c)),'type':'http','headers':{'Authorization':_0x35e0f7(0x1dd)+(_0x4799b2||_0x35e0f7(0x1d0))}}}},null,0x2)})})]}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x196),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x21d),'children':_0x45337a['t'](_0x35e0f7(0x25b))}),i['jsxs'](_0x35e0f7(0x1f6),{'className':'univer-space-y-2','children':[i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x13b),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x249),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x28e),'children':_0x35e0f7(0x1e4)}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x176),'children':_0x45337a['t'](_0x35e0f7(0x1ba))})]})]}),i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x13b),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x298)}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x249),'children':[i['jsx'](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x28e),'children':'Authorization:'}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x176),'children':_0x45337a['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),i[_0x35e0f7(0x294)](f[_0x35e0f7(0x186)],{'onClick':_0x38999d,'disabled':!_0x55194b||_0x1bd7f5,'className':_0x35e0f7(0x15b),'children':_0x1bd7f5?i[_0x35e0f7(0x23a)](_0x35e0f7(0x248),{'className':_0x35e0f7(0x1bc),'children':[i[_0x35e0f7(0x294)](_0x35e0f7(0x248),{'children':'⟲'}),_0x45337a['t'](_0x35e0f7(0x16e))]}):i['jsxs'](_0x35e0f7(0x248),{'className':_0x35e0f7(0x1bc),'children':[i['jsx'](H,{}),_0x45337a['t']('mcpConfig.save')]})}),i[_0x35e0f7(0x294)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x216),'children':i[_0x35e0f7(0x23a)]('div',{'className':_0x35e0f7(0x130),'children':[i[_0x35e0f7(0x294)]('span',{'className':_0x35e0f7(0x1b0),'children':'💡'}),i[_0x35e0f7(0x23a)](_0x35e0f7(0x1f6),{'className':_0x35e0f7(0x250),'children':[i['jsx']('div',{'className':_0x35e0f7(0x2a8),'children':'Configuration\x20Notes:'}),i['jsxs']('div',{'children':['•',_0x45337a['t']('mcpConfig.note1')]}),i['jsxs'](_0x35e0f7(0x1f6),{'children':['•',_0x45337a['t'](_0x35e0f7(0x1c7))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x4c9222(0x247)],xe=(_0x3e7dee,_0x1347a7,_0x723229,_0xb1f9bf)=>{const _0x40cc04=_0x4c9222;for(var _0x1d4550=_0xb1f9bf>0x1?void 0x0:_0xb1f9bf?me(_0x1347a7,_0x723229):_0x1347a7,_0x4bae5e=_0x3e7dee[_0x40cc04(0x1d9)]-0x1,_0x55eef0;_0x4bae5e>=0x0;_0x4bae5e--)(_0x55eef0=_0x3e7dee[_0x4bae5e])&&(_0x1d4550=_0x55eef0(_0x1d4550)||_0x1d4550);return _0x1d4550;},g=(_0x56900c,_0x451a10)=>(_0x451346,_0x464f74)=>_0x451a10(_0x451346,_0x464f74,_0x56900c);const O=_0x4c9222(0x27b),D=_0x4c9222(0x244);exports[_0x4c9222(0x18e)]=class extends u[_0x4c9222(0x299)]{constructor(_0x142097,_0x270ca2,_0x37979f,_0x5a5646,_0x183cde,_0xb40c36,_0x37d14c,_0x53d96f,_0x398a4a,_0x51c86a){const _0x51c27a=_0x4c9222;super(),I(this,_0x51c27a(0x272),new M['BehaviorSubject'](!0x1)),I(this,_0x51c27a(0x131),new M[(_0x51c27a(0x278))]({})),I(this,_0x51c27a(0x1d4),new M['BehaviorSubject']({})),I(this,_0x51c27a(0x19f),new M[(_0x51c27a(0x278))]('')),I(this,'_handleConfigSave',async _0x199d7c=>{const _0x1fa7c7=_0x51c27a;var _0x24acbc,_0x541e5d;this[_0x1fa7c7(0x272)][_0x1fa7c7(0x1c0)](!0x0);try{const _0x436a23=await this[_0x1fa7c7(0x2ad)](_0x199d7c);if(!_0x436a23['isValid']){this['_messageService'][_0x1fa7c7(0x146)]({'type':f[_0x1fa7c7(0x28d)][_0x1fa7c7(0x134)],'content':_0x436a23[_0x1fa7c7(0x222)]||this['_localeService']['t'](_0x1fa7c7(0x21c))});return;}_0x199d7c['apiKey']?await this[_0x1fa7c7(0x1b8)][_0x1fa7c7(0x263)](O,_0x199d7c[_0x1fa7c7(0x19c)]['trim']()):await this[_0x1fa7c7(0x1b8)][_0x1fa7c7(0x1f3)](O),this[_0x1fa7c7(0x19f)][_0x1fa7c7(0x1c0)](((_0x24acbc=_0x199d7c[_0x1fa7c7(0x19c)])==null?void 0x0:_0x24acbc['trim']())||''),this['_mcpConnectionController'][_0x1fa7c7(0x284)]({'Authorization':_0x1fa7c7(0x1dd)+((_0x541e5d=_0x199d7c[_0x1fa7c7(0x19c)])==null?void 0x0:_0x541e5d[_0x1fa7c7(0x25c)]())}),this[_0x1fa7c7(0x1c9)][_0x1fa7c7(0x146)]({'type':f[_0x1fa7c7(0x28d)]['Success'],'content':this[_0x1fa7c7(0x28b)]['t'](_0x1fa7c7(0x255))}),setTimeout(()=>{const _0x22e07d=_0x1fa7c7;this['_dialogService'][_0x22e07d(0x292)](D);},0x320);}catch(_0x2ffa41){this[_0x1fa7c7(0x1ee)]['error'](_0x1fa7c7(0x1e6),_0x2ffa41),this[_0x1fa7c7(0x1c9)]['show']({'type':f[_0x1fa7c7(0x28d)][_0x1fa7c7(0x134)],'content':this[_0x1fa7c7(0x28b)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x1fa7c7(0x1c0)](!0x1);}}),(this[_0x51c27a(0x291)]=_0x142097,this[_0x51c27a(0x17a)]=_0x270ca2,this[_0x51c27a(0x1f4)]=_0x37979f,this['_localStorageService']=_0x5a5646,this[_0x51c27a(0x279)]=_0x183cde,this['_messageService']=_0xb40c36,this[_0x51c27a(0x1a8)]=_0x37d14c,this[_0x51c27a(0x28b)]=_0x53d96f,this[_0x51c27a(0x1ee)]=_0x398a4a,this[_0x51c27a(0x175)]=_0x51c86a,this[_0x51c27a(0x150)](),this['_loadStoredApiKey'](),this[_0x51c27a(0x1db)]());}[_0x4c9222(0x283)](){const _0xcf5ff3=_0x4c9222,_0x38a936=this[_0xcf5ff3(0x1f4)][_0xcf5ff3(0x19e)](P);_0x38a936!=null&&_0x38a936['showDeveloperTools']&&this['_dialogService'][_0xcf5ff3(0x1bd)]({'id':D,'title':{'title':this[_0xcf5ff3(0x28b)]['t'](_0xcf5ff3(0x189))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x21c7cb=_0xcf5ff3;this['_dialogService'][_0x21c7cb(0x292)](D);}});}[_0x4c9222(0x2a3)](){const _0x34df15=_0x4c9222;return this[_0x34df15(0x131)][_0x34df15(0x22d)];}['_registerComponent'](){const _0x5c76e8=_0x4c9222;this['disposeWithMe'](this[_0x5c76e8(0x1a8)][_0x5c76e8(0x25e)](_0x5c76e8(0x22b),this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){return v['connectInjector'](()=>{const _0x11392d=_0x19e5;var _0x5b573f,_0x147578,_0x5d3ee3;return i[_0x11392d(0x294)](V,{'config':this[_0x11392d(0x1d4)]['value'],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x11392d(0x22d)],'currentApiKey$':this[_0x11392d(0x19f)],'onSave':this['_handleConfigSave'],'loading':this[_0x11392d(0x272)]['value'],'connectionStatus$':(_0x5b573f=this[_0x11392d(0x175)])==null?void 0x0:_0x5b573f[_0x11392d(0x1ae)],'connectionError$':(_0x147578=this[_0x11392d(0x175)])==null?void 0x0:_0x147578[_0x11392d(0x25a)],'currentSessionId$':(_0x5d3ee3=this[_0x11392d(0x175)])==null?void 0x0:_0x5d3ee3[_0x11392d(0x2a5)]});},this['_injector']);}[_0x4c9222(0x150)](){const _0xb11288=_0x4c9222;this[_0xb11288(0x2a0)](this[_0xb11288(0x1f4)]['subscribeConfigValue$'](s['MCP_PLUGIN_CONFIG_KEY'])[_0xb11288(0x246)](_0x5b5424=>{const _0x413e2d=_0xb11288;this[_0x413e2d(0x131)][_0x413e2d(0x1c0)](_0x5b5424||{});}));const _0x1f1ba4=this[_0xb11288(0x1f4)]['getConfig'](s[_0xb11288(0x171)]);this[_0xb11288(0x131)][_0xb11288(0x1c0)](_0x1f1ba4||{}),this['disposeWithMe'](this[_0xb11288(0x1f4)]['subscribeConfigValue$'](P)[_0xb11288(0x246)](_0x5530f2=>{const _0x2e1a0c=_0xb11288;this[_0x2e1a0c(0x1d4)]['next'](_0x5530f2||{});}));const _0x3760c2=this['_configService'][_0xb11288(0x19e)](P);this[_0xb11288(0x1d4)][_0xb11288(0x1c0)](_0x3760c2||{});}async['_loadStoredApiKey'](){const _0x5d8895=_0x4c9222,_0x445347=this[_0x5d8895(0x1f4)][_0x5d8895(0x19e)](P);if(!(_0x445347!=null&&_0x445347[_0x5d8895(0x206)]))return;const _0x3c6f03=await this[_0x5d8895(0x1b8)]['getItem'](O);_0x3c6f03&&(this['_mcpConnectionController'][_0x5d8895(0x284)]({'Authorization':'Bearer\x20'+_0x3c6f03}),this[_0x5d8895(0x19f)][_0x5d8895(0x1c0)](_0x3c6f03));}async[_0x4c9222(0x2ad)](_0x4127be){const _0x3f37ef=_0x4c9222;if(!_0x4127be[_0x3f37ef(0x19c)]||_0x4127be['apiKey'][_0x3f37ef(0x25c)]()[_0x3f37ef(0x1d9)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3f37ef(0x28b)]['t'](_0x3f37ef(0x21f))};if(_0x4127be['apiKey'][_0x3f37ef(0x25c)]()[_0x3f37ef(0x1d9)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3f37ef(0x28b)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x16584e=await this[_0x3f37ef(0x291)][_0x3f37ef(0x149)](s['MCPConnectionController'])[_0x3f37ef(0x1ca)](_0x4127be[_0x3f37ef(0x19c)][_0x3f37ef(0x25c)]());return _0x16584e['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x16584e['error']||this[_0x3f37ef(0x28b)]['t'](_0x3f37ef(0x21b))};}catch(_0x286848){return console['warn'](_0x3f37ef(0x170),_0x286848),{'isValid':!0x0};}}},exports[_0x4c9222(0x18e)]=xe([g(0x0,u['Inject'](u[_0x4c9222(0x159)])),g(0x1,v['IUIPartsService']),g(0x2,u[_0x4c9222(0x2ac)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x4c9222(0x183)]),g(0x5,v['IMessageService']),g(0x6,u[_0x4c9222(0x287)](v[_0x4c9222(0x264)])),g(0x7,u[_0x4c9222(0x287)](u['LocaleService'])),g(0x8,u['ILogService']),g(0x9,u[_0x4c9222(0x287)](s[_0x4c9222(0x1fe)]))],exports[_0x4c9222(0x18e)]);const b={'id':_0x4c9222(0x1e5),'type':u[_0x4c9222(0x1a0)]['COMMAND'],'handler':async(_0x46fd81,_0x4c2732)=>(_0x46fd81[_0x4c9222(0x149)](exports[_0x4c9222(0x18e)])['showConfigPanel'](),!0x0)};function Z(_0x403598,_0x4f097a){const _0xabf7ab=_0x4c9222;switch(_0x403598){case s[_0xabf7ab(0x1e2)][_0xabf7ab(0x1ef)]:return _0xabf7ab(0x21a);case s[_0xabf7ab(0x1e2)]['CONNECTING']:return _0xabf7ab(0x1d8);case s['MCPConnectionStatus'][_0xabf7ab(0x191)]:return _0xabf7ab(0x1f1);case s['MCPConnectionStatus'][_0xabf7ab(0x1e7)]:switch(_0x4f097a){case s[_0xabf7ab(0x166)][_0xabf7ab(0x281)]:return _0xabf7ab(0x14b);case s[_0xabf7ab(0x166)][_0xabf7ab(0x1cd)]:return _0xabf7ab(0x1dc);case s[_0xabf7ab(0x166)]['NETWORK_ERROR']:return _0xabf7ab(0x223);case s[_0xabf7ab(0x166)][_0xabf7ab(0x145)]:return'mcpStatus.maxRetriesExceeded';default:return _0xabf7ab(0x212);}case s[_0xabf7ab(0x1e2)][_0xabf7ab(0x1f0)]:return _0xabf7ab(0x13c);default:return _0xabf7ab(0x140);}}function Se(_0x1990bb,_0x43a7ae,_0x39103b,_0x1fb8fd=!0x0){const _0xa2eecd=_0x4c9222,_0xae247e=Z(_0x1990bb,_0x43a7ae),_0x31d814=_0x39103b['t'](_0xae247e);return _0x1fb8fd?_0x1990bb===s[_0xa2eecd(0x1e2)]['DISCONNECTED']&&_0x43a7ae===s[_0xa2eecd(0x166)][_0xa2eecd(0x281)]?_0x31d814+_0xa2eecd(0x234)+_0x39103b['t'](_0xa2eecd(0x13f)):_0x1990bb===s[_0xa2eecd(0x1e2)][_0xa2eecd(0x191)]?''+_0x31d814:_0x1990bb===s[_0xa2eecd(0x1e2)]['DISCONNECTED']||_0x1990bb===s[_0xa2eecd(0x1e2)]['FAILED']?_0x31d814+_0xa2eecd(0x234)+_0x39103b['t'](_0xa2eecd(0x20e)):_0x31d814:_0x31d814;}function Pe(_0x5c80c3){const _0x5eda7b=_0x4c9222;switch(_0x5c80c3){case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x191)]:return'univer-text-green-500';case s[_0x5eda7b(0x1e2)]['CONNECTING']:case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x1f0)]:return'univer-text-yellow-500';case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x1e7)]:case s[_0x5eda7b(0x1e2)][_0x5eda7b(0x1ef)]:return'univer-text-red-500';default:return _0x5eda7b(0x153);}}function W(_0x48697b){const _0x9e8d5=_0x4c9222,{status$:_0x33f1d2,error$:_0x5bc281,onConfigure:_0x369655,showClickable:_0x4bc9b8=!0x0}=_0x48697b,_0x558ff8=v['useObservable'](_0x33f1d2,s[_0x9e8d5(0x1e2)]['DISCONNECTED']),_0xc685af=v[_0x9e8d5(0x17d)](_0x5bc281,s[_0x9e8d5(0x166)]['NONE']),_0x116823=v[_0x9e8d5(0x26f)](u[_0x9e8d5(0x277)]),_0x16df0c=_0x558ff8===s[_0x9e8d5(0x1e2)][_0x9e8d5(0x191)];_0x558ff8===s[_0x9e8d5(0x1e2)][_0x9e8d5(0x207)]||s[_0x9e8d5(0x1e2)][_0x9e8d5(0x1f0)];const _0x1b2583=_0x116823['t'](Z(_0x558ff8,_0xc685af)),_0x43f41d=Se(_0x558ff8,_0xc685af,_0x116823,_0x4bc9b8),_0x548e43=Pe(_0x558ff8),_0x45161c=_0x16df0c?i['jsx'](q,{}):i['jsx'](Y,{}),_0x24961d=d[_0x9e8d5(0x232)](()=>{_0x4bc9b8&&_0x369655&&_0x369655();},[_0x4bc9b8,_0x369655]);function _0x2befae(){const _0xc31d29=_0x9e8d5;return i[_0xc31d29(0x23a)](_0xc31d29(0x1f6),{'className':f['clsx'](_0xc31d29(0x239),_0x4bc9b8&&_0x369655&&_0xc31d29(0x224)),'role':_0xc31d29(0x1a4),'onClick':_0x4bc9b8&&_0x369655?_0x24961d:void 0x0,'children':[i[_0xc31d29(0x294)](_0xc31d29(0x1f6),{'className':f['clsx'](_0xc31d29(0x1b6),_0x548e43),'children':_0x45161c}),i[_0xc31d29(0x294)](_0xc31d29(0x1f6),{'className':_0xc31d29(0x25f),'children':_0x1b2583})]});}return i[_0x9e8d5(0x294)](f['Tooltip'],{'title':_0x43f41d,'placement':_0x9e8d5(0x195),'children':_0x2befae()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0x18be46,_0x42f0d8,_0x350713,_0x3e91cc)=>{const _0xeacb01=_0x4c9222;for(var _0x4b2c70=_0x3e91cc>0x1?void 0x0:_0x3e91cc?Ie(_0x42f0d8,_0x350713):_0x42f0d8,_0x5ccbf3=_0x18be46[_0xeacb01(0x1d9)]-0x1,_0xd68587;_0x5ccbf3>=0x0;_0x5ccbf3--)(_0xd68587=_0x18be46[_0x5ccbf3])&&(_0x4b2c70=_0xd68587(_0x4b2c70)||_0x4b2c70);return _0x4b2c70;},N=(_0x3cfaf9,_0x4c4bef)=>(_0x136042,_0x55389b)=>_0x4c4bef(_0x136042,_0x55389b,_0x3cfaf9);exports[_0x4c9222(0x1d1)]=class extends u[_0x4c9222(0x299)]{constructor(_0xd02072,_0x149bfb,_0x267d4e,_0x3f975e){const _0x4096ee=_0x4c9222;super(),this[_0x4096ee(0x291)]=_0xd02072,this['_connectionController']=_0x149bfb,this['_uiPartsService']=_0x267d4e,this['_configService']=_0x3f975e,this['_initAutoConnect'](),this[_0x4096ee(0x29e)]();}[_0x4c9222(0x201)](){const _0x22b916=_0x4c9222,_0x6e344b=this['_configService']['getConfig'](P);_0x6e344b!=null&&_0x6e344b[_0x22b916(0x206)]&&(this[_0x22b916(0x257)]['enableAutoConnect']=!0x1);}[_0x4c9222(0x29e)](){const _0x59f6ef=_0x4c9222,_0x2af691=this[_0x59f6ef(0x1f4)]['getConfig'](P);(_0x2af691==null?void 0x0:_0x2af691[_0x59f6ef(0x236)])!==!0x1&&this['disposeWithMe'](this[_0x59f6ef(0x17a)][_0x59f6ef(0x215)](v[_0x59f6ef(0x155)][_0x59f6ef(0x29f)],()=>{const _0x1e0529=_0x59f6ef;var _0x18722d;return v[_0x1e0529(0x1a1)](ye({'status$':this['_connectionController'][_0x1e0529(0x1ae)],'error$':this['_connectionController'][_0x1e0529(0x25a)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x18722d=_0x2af691==null?void 0x0:_0x2af691['showDeveloperTools'])!=null?_0x18722d:!0x1}),this['_injector']);}));}[_0x4c9222(0x22c)](){const _0xbc9ee0=_0x4c9222;this[_0xbc9ee0(0x291)][_0xbc9ee0(0x149)](exports[_0xbc9ee0(0x18e)])[_0xbc9ee0(0x283)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x4c9222(0x287)](u[_0x4c9222(0x159)])),N(0x1,u['Inject'](s['MCPConnectionController'])),N(0x2,v[_0x4c9222(0x27a)]),N(0x3,u[_0x4c9222(0x2ac)])],exports['MCPConnectionUIController']);function ye(_0x26730c){const {status$:_0x395610,error$:_0x43dc35,onConfigure:_0x49950a,showClickable:_0x4729f0}=_0x26730c;return function(){return i['jsx'](W,{'status$':_0x395610,'error$':_0x43dc35,'onConfigure':_0x49950a,'showClickable':_0x4729f0});};}function Me(_0x2e5806){const _0x111a65=_0x4c9222;return{'id':b['id'],'type':v['MenuItemType']['BUTTON'],'icon':_0x111a65(0x29c),'title':_0x111a65(0x189),'tooltip':_0x111a65(0x189)};}const Ne={[v[_0x4c9222(0x1ad)]['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};function _0x3c2c(){const _0x24c26d=['registerComponent','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','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','https://mcp.univer.ai/mcp/?univer_session_id=','useRef','mcpStatus.disconnected','mcpConfig.validation.invalidApiKey','mcpConfig.validation.invalidConfig','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_initializeMenus','mcpConfig.validation.apiKeyRequired','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20密钥无效,请检查密钥是否正确','errorMessage','mcpStatus.networkError','\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','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','white','MCP\x20连接失败','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','symbol','MCPConfigPanel','_handleConfigure','value','将以下配置添加到您的\x20MCP\x20客户端设置中:','random','children','MCP\x20状态未知','useCallback','M0\x200H16V16H0z','\x20-\x20','url(#$1','showStatus','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.apiApplyInfo.title','univer-flex\x20univer-items-center','jsxs','198618bUnkKK','<SESSION_ID>','权限验证失败,请检查您的\x20API\x20密钥','Plugin','重启您的\x20MCP\x20客户端以使配置生效','mcpServerUrl','MCPStatusDisplay','MCP:\x20Unauthorized','Configuration\x20Steps:','mcp-config-dialog','mergeMenu','subscribe','getOwnPropertyDescriptor','span','univer-min-w-0\x20univer-flex-1','map','_menuManagerService','配置\x20MCP\x20使用\x20AI\x20操作电子表格','UniverIcon','MCP\x20已断开','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','off','MCP\x20客户端配置','已连接','round','mcpConfig.configSaved','0\x200\x2016\x2016','_connectionController','mcpConfig.connectionError.maxRetriesExceeded','API\x20Key','connectionError$','mcpConfig.configParameters','trim','fill','register','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','close-icon','配置参数:','univer-text-sm\x20univer-font-medium','setItem','ComponentManager','has','HelpIcon','mcpConfig.connectionStatus.retrying','CloseIcon','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','path','MCP_UI_PLUGIN','Click\x20to\x20connect\x20MCP','Input','useDependency','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','pre','_loading$','replace','mcpConfig.configStep3','API\x20密钥不能为空','mcpConfig.configStep1','LocaleService','BehaviorSubject','_dialogService','IUIPartsService','mcp.apiKey','mcpConfig.configStepTitle','Session\x20ID','mcpConfig.apiApplyInfo.description','Enable\x20authentication\x20for\x20secure\x20connections','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','UNAUTHORIZED','univer-size-4','showConfigPanel','__setCustomHeaders','univerjs-icon\x20univerjs-icon-','您的\x20API\x20密钥将在此浏览器中本地存储','Inject','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','会话ID','MCP:\x20会话\x20ID\x20已被占用','_localeService','off-line-icon','MessageType','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','ICommandService','0\x200\x2017\x2016','_injector','close','_initializeCommands','jsx','Click\x20to\x20configure\x20MCP','DependentOn','Module','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Disposable','includes','attrs','MenuIcon','univer-flex\x20univer-items-center\x20univer-gap-3','_initStatusComponent','HEADER_MENU','disposeWithMe','univer-text-white','idSuffix','getCurrentConfig','MCP\x20已连接','sessionId$','displayName','MCP\x20Retrying...','univer-font-medium','mcpConfig.apiKeyPlaceholder','CheckMarkIcon','What\x20is\x20API\x20Key?','IConfigService','_validateConfig','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex\x20univer-gap-3','_mcpCoreConfig$','mcpConfig.connectionError.networkError','push','Error','univer-bg-green-500','mcpConfig.description','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','1em','15UmnpzW','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.retrying','4845294yfnwGG','mcpConfig.apiApplyInfo.getStarted','mcpStatus.clickToConfigure','mcpStatus.unknown','stringify','Disconnected','registerCommand','API\x20密钥长度至少需要\x2010\x20位','MAX_RETRIES_EXCEEDED','show','string','Connected','get','2hguNgj','mcpStatus.unauthorized','zhCN','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','defs','点击连接\x20MCP','_initConfigSync','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.connectionStatus.connecting','univer-text-gray-500','univer-space-y-2','BuiltInUIPart','保存配置','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20配置','Injector','配置保存成功','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','几秒钟内获取您的\x20API\x20密钥','UniverMCPPlugin','setConfig','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','Enter\x20your\x20API\x20key','univer-text-red-500','IMenuManagerService','MCPUIMenuController','未连接','MCPConnectionError','substring','univer-text-gray-400','1287543abHjJx','svg','Get\x20your\x20API\x20key\x20in\x20seconds','mask','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpConfig.saving','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','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP_PLUGIN_CONFIG_KEY','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','on-line-icon_clip0_910_349','entries','_mcpConnectionController','univer-text-xs\x20univer-text-gray-500','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_uiPartsService','Invalid\x20configuration','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','useObservable','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20未授权','mcpConfig.apiKey','会话\x20ID\x20已被占用,请稍后再试','启用身份验证','IDialogService','请输入您的\x20API\x20密钥','http://www.w3.org/2000/svg','Button','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','ISocketService','mcpConfig.title','enUS','MCP:\x20网络错误','_config','MCP\x20重连中...','MCPConfigUIController','207634XbDLfU','pluginName','CONNECTED','off-line-icon_clip0_910_343','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','clsx','bottom','univer-space-y-3','noopener\x20noreferrer','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.connectionError.unauthorized','Configuration\x20saved\x20successfully','apiKey','WebSocketService','getConfig','_apiKey$','CommandType','connectInjector','760VNMfhu','assign','button','mcpConfig.configStep2','配置保存失败','https://console.univer.plus','_componentManager','NETWORK_ERROR','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','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','createElement','RibbonStartGroup','connectionStatus$','univer-shrink-0\x20univer-text-red-500','univer-shrink-0\x20univer-text-blue-500','univer-text-blue-600','API\x20key\x20is\x20required','xlink:href','OnLineIcon','MCP\x20Connecting...','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP:\x20Network\x20Error','_localStorageService','连接中...','mcpConfig.sessionIdDescription','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-gap-2','open','univer-space-y-5','API\x20密钥','next','复制以下\x20JSON\x20配置','forEach','488300ByKhmm','mcpConfig.configInstructions','重连中...','1415407QRMMpZ','mcpConfig.note2','add','_messageService','validateApiKey','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','label','SESSION_ID_OCCUPIED','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','toStringTag','<API_KEY>','MCPConnectionUIController','Enable\x20Authentication','useState','_config$','univer.plus','currentColor','MCP\x20Connection\x20Failed','mcpStatus.connecting','length','mcpConfig.apiApplyInfo.univerAiLabel','_registerComponent','mcpStatus.sessionOccupied','Bearer\x20','保存中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','OffLineIcon','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCPConnectionStatus','最大重试次数','univer_session_id:','mcp-ui.command.openConfigPanel','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','FAILED','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-red-500','MCP:\x20Max\x20Retries\x20Exceeded','defineProperty','univer-text-xs\x20univer-text-gray-600','UniverMCPUIPlugin','_logService','DISCONNECTED','RETRYING','mcpStatus.connected','点击配置\x20MCP','removeItem','_configService','forwardRef','div','NONE','启用身份验证以获得安全连接','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','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','Copy\x20the\x20JSON\x20configuration\x20below','url(#on-line-icon_clip0_910_349)','colorChannel1','MCPConnectionController','clipPath','MCP:\x20超出最大重试次数','_initAutoConnect','univer-flex-1','current','MCP\x20Connected','Configuration\x20Parameters:','showDeveloperTools','CONNECTING','none','配置步骤:','tag','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Unknown\x20Status','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpStatus.clickToConnect','_commandService','evenodd','Max\x20Retries','mcpStatus.failed','配置更改将立即生效','ILocalStorageService'];_0x3c2c=function(){return _0x24c26d;};return _0x3c2c();}var be=Object[_0x4c9222(0x247)],je=(_0x2e5ab2,_0x345b26,_0x53f8ad,_0x439e91)=>{const _0x304d97=_0x4c9222;for(var _0x450602=_0x439e91>0x1?void 0x0:_0x439e91?be(_0x345b26,_0x53f8ad):_0x345b26,_0x61d6d2=_0x2e5ab2[_0x304d97(0x1d9)]-0x1,_0x5aff6b;_0x61d6d2>=0x0;_0x61d6d2--)(_0x5aff6b=_0x2e5ab2[_0x61d6d2])&&(_0x450602=_0x5aff6b(_0x450602)||_0x450602);return _0x450602;},z=(_0x2fc5b9,_0x123481)=>(_0x4011ce,_0x24c252)=>_0x123481(_0x4011ce,_0x24c252,_0x2fc5b9);exports[_0x4c9222(0x164)]=class extends u[_0x4c9222(0x299)]{constructor(_0x13b995,_0x443171){const _0x538d39=_0x4c9222;super(),this[_0x538d39(0x20f)]=_0x13b995,this[_0x538d39(0x24b)]=_0x443171,this[_0x538d39(0x293)](),this[_0x538d39(0x21e)]();}[_0x4c9222(0x293)](){const _0x5d261c=_0x4c9222;[b][_0x5d261c(0x1c2)](_0x3c0f56=>{const _0x4a1c59=_0x5d261c;this[_0x4a1c59(0x2a0)](this[_0x4a1c59(0x20f)][_0x4a1c59(0x143)](_0x3c0f56));});}[_0x4c9222(0x21e)](){const _0x171f13=_0x4c9222;this['_menuManagerService'][_0x171f13(0x245)](Ne);}},exports[_0x4c9222(0x164)]=je([z(0x0,u[_0x4c9222(0x28f)]),z(0x1,v[_0x4c9222(0x163)])],exports[_0x4c9222(0x164)]);const Ee={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4c9222(0x1b5),'connected':_0x4c9222(0x204),'failed':_0x4c9222(0x1d7),'retrying':_0x4c9222(0x2a7),'unknown':_0x4c9222(0x20c),'unauthorized':_0x4c9222(0x242),'sessionOccupied':_0x4c9222(0x269),'networkError':_0x4c9222(0x1b7),'maxRetriesExceeded':_0x4c9222(0x1ea),'clickToConnect':_0x4c9222(0x26d),'clickToConfigure':_0x4c9222(0x295)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4c9222(0x177),'apiKey':_0x4c9222(0x259),'apiKeyPlaceholder':_0x4c9222(0x161),'apiKeyHint':_0x4c9222(0x288),'enableAuth':_0x4c9222(0x1d2),'enableAuthHint':_0x4c9222(0x27f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4c9222(0x26a),'configStepTitle':_0x4c9222(0x243),'configStep1':_0x4c9222(0x1fb),'configStep2':_0x4c9222(0x1cb),'configStep3':_0x4c9222(0x199),'sessionId':_0x4c9222(0x27d),'sessionIdDescription':_0x4c9222(0x220),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4c9222(0x205),'maxRetries':_0x4c9222(0x211),'save':_0x4c9222(0x198),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4c9222(0x17e),'configSaved':_0x4c9222(0x19b),'configError':_0x4c9222(0x178),'apiApplyInfo':{'title':_0x4c9222(0x2ab),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4c9222(0x16b)},'validation':{'apiKeyRequired':_0x4c9222(0x1b2),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4c9222(0x17b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4c9222(0x142),'connecting':_0x4c9222(0x160),'connected':_0x4c9222(0x148),'failed':'Connection\x20Failed','retrying':_0x4c9222(0x229)},'connectionError':{'unauthorized':_0x4c9222(0x157),'sessionOccupied':_0x4c9222(0x1bb),'networkError':_0x4c9222(0x228),'maxRetriesExceeded':_0x4c9222(0x15f)}}},we={'mcpStatus':{'disconnected':_0x4c9222(0x24e),'connecting':'MCP\x20连接中...','connected':_0x4c9222(0x2a4),'failed':_0x4c9222(0x227),'retrying':_0x4c9222(0x18d),'unknown':_0x4c9222(0x231),'unauthorized':_0x4c9222(0x17f),'sessionOccupied':_0x4c9222(0x28a),'networkError':_0x4c9222(0x18b),'maxRetriesExceeded':_0x4c9222(0x200),'clickToConnect':_0x4c9222(0x14f),'clickToConfigure':_0x4c9222(0x1f2)},'mcpConfig':{'title':_0x4c9222(0x158),'description':_0x4c9222(0x24c),'apiKey':_0x4c9222(0x1bf),'apiKeyPlaceholder':_0x4c9222(0x184),'apiKeyHint':_0x4c9222(0x286),'enableAuth':_0x4c9222(0x182),'enableAuthHint':_0x4c9222(0x1f8),'connectionInfo':_0x4c9222(0x252),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x4c9222(0x22e),'configStepTitle':_0x4c9222(0x209),'configStep1':_0x4c9222(0x1c1),'configStep2':_0x4c9222(0x151),'configStep3':_0x4c9222(0x23f),'sessionId':_0x4c9222(0x289),'sessionIdDescription':_0x4c9222(0x1df),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x4c9222(0x261),'maxRetries':_0x4c9222(0x1e3),'save':_0x4c9222(0x156),'saving':_0x4c9222(0x1de),'note1':_0x4c9222(0x213),'note2':_0x4c9222(0x20b),'configSaved':_0x4c9222(0x15a),'configError':_0x4c9222(0x1a6),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x4c9222(0x237),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x4c9222(0x15c)},'validation':{'apiKeyRequired':_0x4c9222(0x275),'apiKeyTooShort':_0x4c9222(0x144),'invalidConfig':'配置无效','invalidApiKey':_0x4c9222(0x221)},'connectionStatus':{'disconnected':_0x4c9222(0x165),'connecting':_0x4c9222(0x1b9),'connected':_0x4c9222(0x253),'failed':'连接失败','retrying':_0x4c9222(0x1c5)},'connectionError':{'unauthorized':_0x4c9222(0x23d),'sessionOccupied':_0x4c9222(0x181),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var Ae=Object[_0x4c9222(0x1eb)],Oe=Object[_0x4c9222(0x247)],De=(_0xe110a2,_0x90eba1,_0x590fa3)=>_0x90eba1 in _0xe110a2?Ae(_0xe110a2,_0x90eba1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x590fa3}):_0xe110a2[_0x90eba1]=_0x590fa3,Ue=(_0x31c550,_0x4fff59,_0x26d801,_0x10f593)=>{const _0x413e1a=_0x4c9222;for(var _0x5b73b6=_0x10f593>0x1?void 0x0:_0x10f593?Oe(_0x4fff59,_0x26d801):_0x4fff59,_0x13a932=_0x31c550[_0x413e1a(0x1d9)]-0x1,_0x37b669;_0x13a932>=0x0;_0x13a932--)(_0x37b669=_0x31c550[_0x13a932])&&(_0x5b73b6=_0x37b669(_0x5b73b6)||_0x5b73b6);return _0x5b73b6;},y=(_0x50c3f3,_0x2a9f4e)=>(_0x160a8e,_0x16755a)=>_0x2a9f4e(_0x160a8e,_0x16755a,_0x50c3f3),$e=(_0x4551f5,_0x432bc2,_0x3e1468)=>De(_0x4551f5,_0x432bc2+'',_0x3e1468);exports['UniverMCPUIPlugin']=class extends u[_0x4c9222(0x23e)]{constructor(_0x3d7ecc=L,_0xa6adb3,_0x527c7a,_0x469acc,_0x3ea5b4,_0x30fd14){const _0x434982=_0x4c9222;super(),this[_0x434982(0x18c)]=_0x3d7ecc,this[_0x434982(0x291)]=_0xa6adb3,this[_0x434982(0x1f4)]=_0x527c7a,this[_0x434982(0x17a)]=_0x469acc,this['_localStorageService']=_0x3ea5b4,this[_0x434982(0x28b)]=_0x30fd14;const {..._0x293730}=u['merge']({},L,this[_0x434982(0x18c)]);this[_0x434982(0x1f4)][_0x434982(0x15e)](P,_0x293730);}async['onStarting'](){const _0x2d6d72=_0x4c9222,_0x40e557=[[exports[_0x2d6d72(0x1d1)]],[exports[_0x2d6d72(0x18e)]],[exports[_0x2d6d72(0x164)]]];this['_injector'][_0x2d6d72(0x265)](A[_0x2d6d72(0x188)])||_0x40e557[_0x2d6d72(0x133)]([A[_0x2d6d72(0x188)],{'useClass':A[_0x2d6d72(0x19d)]}]),_0x40e557[_0x2d6d72(0x1c2)](_0x3d9084=>this['_injector'][_0x2d6d72(0x1c8)](_0x3d9084)),this[_0x2d6d72(0x291)]['get'](exports['MCPConnectionUIController']),this[_0x2d6d72(0x291)][_0x2d6d72(0x149)](exports[_0x2d6d72(0x18e)]),this[_0x2d6d72(0x291)][_0x2d6d72(0x149)](exports[_0x2d6d72(0x164)]);}},$e(exports[_0x4c9222(0x1ed)],_0x4c9222(0x190),_0x4c9222(0x26c)),exports[_0x4c9222(0x1ed)]=Ue([u[_0x4c9222(0x296)](s[_0x4c9222(0x15d)]),y(0x1,u[_0x4c9222(0x287)](u[_0x4c9222(0x159)])),y(0x2,u['IConfigService']),y(0x3,v['IUIPartsService']),y(0x4,u[_0x4c9222(0x214)]),y(0x5,u[_0x4c9222(0x287)](u[_0x4c9222(0x277)]))],exports[_0x4c9222(0x1ed)]),exports[_0x4c9222(0x22b)]=V,exports[_0x4c9222(0x241)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x4c9222(0x18a)]=Ee,exports[_0x4c9222(0x14c)]=we;
|
|
1
|
+
'use strict';const _0x54e4df=_0x237e;(function(_0x2a26b2,_0x151cac){const _0x40aa93=_0x237e,_0x264673=_0x2a26b2();while(!![]){try{const _0x48f744=parseInt(_0x40aa93(0x17e))/0x1*(-parseInt(_0x40aa93(0x2be))/0x2)+parseInt(_0x40aa93(0x1e2))/0x3*(parseInt(_0x40aa93(0x259))/0x4)+parseInt(_0x40aa93(0x1b1))/0x5+parseInt(_0x40aa93(0x2ab))/0x6*(parseInt(_0x40aa93(0x220))/0x7)+parseInt(_0x40aa93(0x1c5))/0x8*(-parseInt(_0x40aa93(0x24d))/0x9)+parseInt(_0x40aa93(0x158))/0xa+parseInt(_0x40aa93(0x2c7))/0xb;if(_0x48f744===_0x151cac)break;else _0x264673['push'](_0x264673['shift']());}catch(_0x3fca4f){_0x264673['push'](_0x264673['shift']());}}}(_0x4a78,0xee153));function _0x4a78(){const _0x5d05e3=['4362330WwzOfn','MCP:\x20会话\x20ID\x20已被占用','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','API\x20密钥长度至少需要\x2010\x20位','_handleConfigSave','MCP\x20Client\x20Configuration','MCP\x20客户端配置','univer-text-white','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20Connection\x20Failed','mergeMenu','Input','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','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','_initializeCommands','univer-flex\x20univer-items-start\x20univer-gap-3','MCP\x20连接失败','register','mcpConfig.connectionStatus.connecting','Session\x20ID','url(#off-line-icon_clip0_910_343)','univer-text-gray-400','button','removeItem','clsx','mcpConfig.configStep1','univer-text-gray-500','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','API\x20密钥无效,请检查密钥是否正确','mcpConfig.configInstructions','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.configStepTitle','OTHERS','_apiKey$','xlink:href','show','mcpStatus.maxRetriesExceeded','1294kqKEfU','mcpConfig.connectionError.networkError','复制以下\x20JSON\x20配置','toString','_messageService','mcpStatus.failed','string','univer-shrink-0\x20univer-text-red-500','connectInjector','超出最大重试次数,请稍后再试','on-line-icon','univer-text-red-500','MCPConnectionController','value','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Button','_mcpConnectionController','RETRYING','SESSION_ID_OCCUPIED','MCP:\x20Session\x20ID\x20Occupied','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','MCPConfigUIController','close-icon','_config$','random','univer-text-xs\x20univer-text-gray-600','UniverMCPPlugin','MCP_UI_PLUGIN','最大重试次数','mcpStatus.connecting','MCPStatusDisplay','help-icon','mcpStatus.sessionOccupied','mcpConfig.configStep2','ISocketService','off','univer-text-xs\x20univer-text-gray-500','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univerjs-icon\x20univerjs-icon-','none','pluginName','Enter\x20your\x20API\x20key','evenodd','BehaviorSubject','mcpStatus.disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.apiKeyHint','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','NONE','currentColor','553155qYXlaB','CONNECTING','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','forEach','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20已断开','FAILED','Enable\x20authentication\x20for\x20secure\x20connections','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','会话ID','_initAutoConnect','next','white','http://www.w3.org/2000/svg','_logService','warn','mcpConfig.configStep3','Configuration\x20Parameters:','511384dEeCXu','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','IDialogService','univer-flex-1','<API_KEY>','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Inject','subscribeConfigValue$','_createConfigPanelComponent','Authorization:','Max\x20Retries','UniverMCPUIPlugin','replace','启用身份验证','MCP_PLUGIN_CONFIG_KEY','tag','连接中...','_injector','Injector','mcpConfig.note2','mcpConfig.apiKeyPlaceholder','univer-space-y-2','mcpConfig.note1','_registerComponent','MessageType','has','_localStorageService','配置保存成功','CommandType','33531duRKmx','length','colorChannel1','univer-size-2\x20univer-rounded-full','validateApiKey','您的\x20API\x20密钥将在此浏览器中本地存储','trim','MenuItemType','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Success','Univer\x20AI\x20Console','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','close','push','isValid','mcpConfig.configSaved','includes','保存配置','MAX_RETRIES_EXCEEDED','subscribe','_validateConfig','disposeWithMe','ILogService','MCP:\x20网络错误','mcpConfig.connectionError.unauthorized','MCPUIMenuController','mcpStatus.clickToConnect','univer-text-sm\x20univer-text-gray-500','MCP\x20状态未知','children','mcpConfig.connectionInfo','useRef','IUIPartsService','您的\x20API\x20密钥安全存储在本地存储中','_initStatusComponent','Save\x20Configuration','Connecting...','_uiPartsService','enableAutoConnect','API\x20key\x20is\x20required','connectionStatus$','text','connectionError$','univer-flex\x20univer-flex-wrap\x20univer-gap-2','apiKey','fill','IMessageService','配置参数:','error','MCPConnectionError','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_mcpCoreConfig$','MCP\x20已连接','网络连接错误,请检查您的网络连接','on-line-icon_clip0_910_349','univer.ai','Invalid\x20configuration','Configuration\x20Notes:','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','_handleConfigure','showConfigPanel','105dziVQR','setItem','univer-size-4','https://console.univer.plus','_loading$','mcpStatus.networkError','MCP\x20Unknown\x20Status','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','getCurrentConfig','1em','MCPConnectionStatus','current','mcpConfig.saving','MCP\x20连接中...','API\x20密钥不能为空','idSuffix','_dialogService','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_commandService','_localeService','\x20-\x20','0\x200\x2017\x2016','<SESSION_ID>','点击配置\x20MCP','mcpConfig.apiApplyInfo.title','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','重启您的\x20MCP\x20客户端以使配置生效','UNAUTHORIZED','CONNECTED','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Disconnected','useState','get','OnLineIcon','将以下配置添加到您的\x20MCP\x20客户端设置中:','LocaleService','mcpStatus.unauthorized','Click\x20to\x20configure\x20MCP','univer-bg-green-500','jsx','DISCONNECTED','round','MCP\x20Configuration','_loadStoredApiKey','mcpConfig.apiApplyInfo.description','9qheJrd','translate(.97)','配置步骤:','attrs','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','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.unknown','0\x200\x2016\x2016','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-blue-500','_blank','onStarting','272PaAmjV','mcpConfig.authorizationDescription','defs','MenuIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置保存失败','CheckMarkIcon','mcpConfig.sessionIdDescription','add','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Disposable','errorMessage','substring','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_configService','__setCustomHeaders','symbol','会话\x20ID\x20已被占用,请稍后再试','getOwnPropertyDescriptor','_config','registerCommand','univer-space-y-5','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.connectionError.sessionOccupied','CloseIcon','BUTTON','Connection\x20Failed','univer-text-blue-600','Univer\x20AI\x20控制台','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','MCPConfigPanel','请输入您的\x20API\x20密钥','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','What\x20is\x20API\x20Key?','mcpConfig.apiKey','clipPath','_initializeMenus','MCP:\x20超出最大重试次数','MCP:\x20Max\x20Retries\x20Exceeded','univer_session_id:','mask','univer-bg-gray-500','univer-space-y-4','getConfig','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','bottom','_componentManager','mcpConfig.validation.apiKeyRequired','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','已连接','defineProperty','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置更改将立即生效','univer-min-w-0\x20univer-flex-1','mcp-config-dialog','mcpServerUrl','useCallback','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','useDependency','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpConfig.validation.apiKeyTooShort','未连接','univer-shrink-0\x20univer-text-blue-500','path','mcp-ui.config','ICommandService','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','noopener\x20noreferrer','jsxs','toStringTag','MCPConnectionUIController','WebSocketService','Saving...','Error','mcpConfig.title','div','open','376182poCESQ','displayName','BuiltInUIPart','univer-font-medium','Configuration\x20saved\x20successfully','https://console.univer.ai','MCP\x20Connected','entries','sessionId$','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Click\x20to\x20connect\x20MCP','createElement','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','univer-flex\x20univer-items-center\x20univer-gap-2','UniverIcon','enUS','forwardRef','DependentOn','\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','2738cVRsJZ','url(#$1','MCP\x20Retrying...','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Network\x20Error','配置无效','Configuration\x20Steps:','mcpConfig.configParameters','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','6195651TecMDq','showDeveloperTools','svg','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','check-mark-icon','_connectionController','NETWORK_ERROR','registerComponent','setConfig','univer.plus','url(#on-line-icon_clip0_910_349)','Tooltip','getItem','将配置添加到您的\x20MCP\x20客户端设置文件中','pre','assign','univer-space-y-3','mcpStatus.connected','use','点击连接\x20MCP','useObservable','off-line-icon_clip0_910_343','span','IConfigService','showStatus','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Bearer\x20'];_0x4a78=function(){return _0x5d05e3;};return _0x4a78();}var ae=Object[_0x54e4df(0x28f)],le=(_0x362c85,_0x1b1717,_0x29a6d1)=>_0x1b1717 in _0x362c85?ae(_0x362c85,_0x1b1717,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29a6d1}):_0x362c85[_0x1b1717]=_0x29a6d1,I=(_0x2d67a4,_0x1c576b,_0x3182e5)=>le(_0x2d67a4,typeof _0x1c576b!=_0x54e4df(0x269)?_0x1c576b+'':_0x1c576b,_0x3182e5);Object[_0x54e4df(0x28f)](exports,Symbol[_0x54e4df(0x2a3)],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x2f07ad,..._0x3a7cdd}){const _0x12d303=_0x54e4df,{icon:_0x3b3799,id:_0x2e5e54,className:_0x59c8a7,extend:_0x830178,..._0x541a1f}=_0x3a7cdd,_0x253f85=(_0x12d303(0x1a5)+_0x2e5e54+'\x20'+(_0x59c8a7||''))[_0x12d303(0x1e8)](),_0x285998=d[_0x12d303(0x201)]('_'+de());return G(_0x3b3799,''+_0x2e5e54,{'defIds':_0x3b3799['defIds'],'idSuffix':_0x285998[_0x12d303(0x22b)]},{'ref':_0x2f07ad,'className':_0x253f85,..._0x541a1f},_0x830178);}function G(_0x19577c,_0x58882f,_0x3d091f,_0xe590e0,_0x32498d){const _0x137e4c=_0x54e4df;return d[_0x137e4c(0x2b6)](_0x19577c[_0x137e4c(0x1d4)],{'key':_0x58882f,...ue(_0x19577c,_0x3d091f,_0x32498d),..._0xe590e0},(ve(_0x19577c,_0x3d091f)[_0x137e4c(0x1ff)]||[])['map']((_0x20d715,_0x52b628)=>G(_0x20d715,_0x58882f+'-'+_0x19577c[_0x137e4c(0x1d4)]+'-'+_0x52b628,_0x3d091f,void 0x0,_0x32498d)));}function ue(_0x39c9f1,_0x17a998,_0x530abe){const _0x36f126=_0x54e4df,_0x2ce897={..._0x39c9f1[_0x36f126(0x250)]};_0x530abe!=null&&_0x530abe[_0x36f126(0x1e4)]&&_0x2ce897[_0x36f126(0x20f)]===_0x36f126(0x1e4)&&(_0x2ce897['fill']=_0x530abe['colorChannel1']),_0x39c9f1['tag']===_0x36f126(0x285)&&_0x2ce897['id']&&(_0x2ce897['id']=_0x2ce897['id']+_0x17a998[_0x36f126(0x22f)]),Object[_0x36f126(0x2b2)](_0x2ce897)['forEach'](([_0x6ab00,_0xedd3d5])=>{const _0x319b38=_0x36f126;_0x6ab00===_0x319b38(0x285)&&typeof _0xedd3d5==_0x319b38(0x184)&&(_0x2ce897[_0x6ab00]=_0xedd3d5[_0x319b38(0x1d1)](/url\(#(.*)\)/,_0x319b38(0x2bf)+_0x17a998['idSuffix']+')'));});const {defIds:_0x3d7ade}=_0x17a998;return!_0x3d7ade||_0x3d7ade[_0x36f126(0x1e3)]===0x0||(_0x39c9f1[_0x36f126(0x1d4)]===_0x36f126(0x2d9)&&_0x2ce897[_0x36f126(0x17b)]&&(_0x2ce897[_0x36f126(0x17b)]=_0x2ce897[_0x36f126(0x17b)]+_0x17a998[_0x36f126(0x22f)]),Object[_0x36f126(0x2b2)](_0x2ce897)['forEach'](([_0x1d6a3a,_0x481f67])=>{const _0x38aca1=_0x36f126;typeof _0x481f67=='string'&&(_0x2ce897[_0x1d6a3a]=_0x481f67[_0x38aca1(0x1d1)](/url\(#(.*)\)/,_0x38aca1(0x2bf)+_0x17a998[_0x38aca1(0x22f)]+')'));})),_0x2ce897;}function ve(_0x325f4c,_0x4eb73e){const _0x419dde=_0x54e4df;var _0x1a4135;const {defIds:_0x2bc0da}=_0x4eb73e;return!_0x2bc0da||_0x2bc0da[_0x419dde(0x1e3)]===0x0?_0x325f4c:_0x325f4c[_0x419dde(0x1d4)]===_0x419dde(0x25b)&&((_0x1a4135=_0x325f4c[_0x419dde(0x1ff)])!=null&&_0x1a4135[_0x419dde(0x1e3)])?{..._0x325f4c,'children':_0x325f4c[_0x419dde(0x1ff)]['map'](_0xb81d04=>typeof _0xb81d04[_0x419dde(0x250)]['id']=='string'&&_0x2bc0da&&_0x2bc0da[_0x419dde(0x1f2)](_0xb81d04[_0x419dde(0x250)]['id'])?{..._0xb81d04,'attrs':{..._0xb81d04['attrs'],'id':_0xb81d04[_0x419dde(0x250)]['id']+_0x4eb73e[_0x419dde(0x22f)]}}:_0xb81d04)}:_0x325f4c;}function de(){const _0x4a0d28=_0x54e4df;return Math[_0x4a0d28(0x197)]()[_0x4a0d28(0x181)](0x24)[_0x4a0d28(0x265)](0x2,0x8);}_[_0x54e4df(0x2ac)]=_0x54e4df(0x2b9);const Ce={'tag':'svg','attrs':{'xmlns':_0x54e4df(0x1c0),'fill':_0x54e4df(0x1a6),'viewBox':'0\x200\x2016\x2016','width':_0x54e4df(0x229),'height':'1em'},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'fill':_0x54e4df(0x1b0),'d':_0x54e4df(0x173),'fillRule':'evenodd','clipRule':_0x54e4df(0x1a9)}}]},H=d['forwardRef'](function(_0x536b14,_0xf4af69){const _0x4c0f91=_0x54e4df;return d[_0x4c0f91(0x2b6)](_,Object[_0x4c0f91(0x2d6)]({},_0x536b14,{'id':_0x4c0f91(0x2cb),'ref':_0xf4af69,'icon':Ce}));});H[_0x54e4df(0x2ac)]=_0x54e4df(0x25f);const ge={'tag':_0x54e4df(0x2c9),'attrs':{'xmlns':_0x54e4df(0x1c0),'fill':'none','viewBox':_0x54e4df(0x254),'width':_0x54e4df(0x229),'height':_0x54e4df(0x229)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'fill':_0x54e4df(0x1b0),'d':_0x54e4df(0x279)}}]},B=d[_0x54e4df(0x2bb)](function(_0x3edaa5,_0x102f2d){const _0x2e0a1f=_0x54e4df;return d[_0x2e0a1f(0x2b6)](_,Object['assign']({},_0x3edaa5,{'id':_0x2e0a1f(0x195),'ref':_0x102f2d,'icon':ge}));});B['displayName']=_0x54e4df(0x273);const fe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x54e4df(0x1a6),'viewBox':_0x54e4df(0x254),'width':_0x54e4df(0x229),'height':_0x54e4df(0x229)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'fill':_0x54e4df(0x1b0),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x54e4df(0x29d),'attrs':{'fill':'currentColor','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':_0x54e4df(0x29d),'attrs':{'fill':'currentColor','d':_0x54e4df(0x2b7),'fillRule':_0x54e4df(0x1a9),'clipRule':_0x54e4df(0x1a9)}}]},F=d[_0x54e4df(0x2bb)](function(_0x577faf,_0x469b38){const _0x3b225f=_0x54e4df;return d[_0x3b225f(0x2b6)](_,Object[_0x3b225f(0x2d6)]({},_0x577faf,{'id':_0x3b225f(0x19e),'ref':_0x469b38,'icon':fe}));});F[_0x54e4df(0x2ac)]='HelpIcon';const pe={'tag':'svg','attrs':{'xmlns':_0x54e4df(0x1c0),'fill':_0x54e4df(0x1a6),'viewBox':_0x54e4df(0x254),'width':_0x54e4df(0x229),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x54e4df(0x16c)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'stroke':'currentColor','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':_0x54e4df(0x249),'strokeLinejoin':_0x54e4df(0x249),'strokeWidth':1.2}}]},{'tag':_0x54e4df(0x25b),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x54e4df(0x152)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x54e4df(0x2bb)](function(_0x5df621,_0x180ed6){const _0x4aba56=_0x54e4df;return d[_0x4aba56(0x2b6)](_,Object[_0x4aba56(0x2d6)]({},_0x5df621,{'id':'off-line-icon','ref':_0x180ed6,'icon':pe}));});Y[_0x54e4df(0x2ac)]='OffLineIcon';const he={'tag':_0x54e4df(0x2c9),'attrs':{'xmlns':_0x54e4df(0x1c0),'fill':_0x54e4df(0x1a6),'viewBox':_0x54e4df(0x235),'width':_0x54e4df(0x229),'height':_0x54e4df(0x229)},'children':[{'tag':'g','attrs':{'clipPath':_0x54e4df(0x2d1)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'stroke':'currentColor','d':_0x54e4df(0x252),'strokeLinecap':_0x54e4df(0x249),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x54e4df(0x280),'attrs':{'id':_0x54e4df(0x219)},'children':[{'tag':_0x54e4df(0x29d),'attrs':{'fill':_0x54e4df(0x1bf),'d':'M0\x200H16V16H0z','transform':_0x54e4df(0x24e)}}]}]}],'defIds':[_0x54e4df(0x219)]},q=d[_0x54e4df(0x2bb)](function(_0x5fcc3f,_0x549150){const _0x44d957=_0x54e4df;return d[_0x44d957(0x2b6)](_,Object['assign']({},_0x5fcc3f,{'id':_0x44d957(0x188),'ref':_0x549150,'icon':he}));});q[_0x54e4df(0x2ac)]=_0x54e4df(0x241);function V(_0x33aaec){const _0x508857=_0x54e4df;var _0x1fdb90,_0x4f5f5a;const {mcpCoreConfig:_0x4bff8,onSave:_0x2be63e,loading:_0xbfa26f=!0x1,config:_0x30927e,connectionStatus$:_0x2103f8,connectionError$:_0x4c9781,currentApiKey$:_0x4b1387,currentSessionId$:_0x2deb86}=_0x33aaec,_0x2b83f9=v['useDependency'](u[_0x508857(0x243)]),_0x25d483=v['useObservable'](_0x2103f8,s[_0x508857(0x22a)]['DISCONNECTED']),_0x51d2ad=v[_0x508857(0x151)](_0x4c9781,s[_0x508857(0x213)][_0x508857(0x1af)]),_0x31b3cc=v[_0x508857(0x151)](_0x2deb86,''),_0x17a63a=v[_0x508857(0x151)](_0x4b1387,''),[_0x27ee59,_0x5b427d]=d[_0x508857(0x23f)](_0x17a63a||''),_0x3773d7=!0x0,_0x3cd891=_0x30927e['showDeveloperTools']&&_0x4bff8['mcpServerUrl']&&(_0x4bff8[_0x508857(0x294)]['includes'](_0x508857(0x2d0))||_0x4bff8[_0x508857(0x294)][_0x508857(0x1f2)](_0x508857(0x21a))),_0x2f39a3=(_0x1fdb90=_0x4bff8[_0x508857(0x294)])==null?void 0x0:_0x1fdb90[_0x508857(0x1f2)]('univer.plus'),_0x409839=(_0x4f5f5a=_0x4bff8[_0x508857(0x294)])==null?void 0x0:_0x4f5f5a[_0x508857(0x1f2)]('univer.ai'),_0x43a985=_0x2f39a3?_0x508857(0x223):_0x508857(0x2b0),_0xfcbad7=_0x30927e[_0x508857(0x2c8)]&&(_0x2f39a3||_0x409839),[_0x305776,_0x31ae12]=d[_0x508857(0x23f)](!_0x27ee59[_0x508857(0x1e8)]()),_0x10bfcc=(_0x2ec74d,_0x5dae93)=>{const _0x50de2c=_0x508857;if(_0x5dae93===s['MCPConnectionError'][_0x50de2c(0x23b)])return _0x50de2c(0x1b7);switch(_0x2ec74d){case s[_0x50de2c(0x22a)][_0x50de2c(0x23c)]:return _0x50de2c(0x2b4);case s['MCPConnectionStatus'][_0x50de2c(0x1b2)]:case s['MCPConnectionStatus'][_0x50de2c(0x18f)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x50de2c(0x22a)][_0x50de2c(0x1b9)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x50de2c(0x2a0);}},_0x48f0d7=(_0x2c5584,_0x5853cf)=>{const _0x3a6961=_0x508857;if(_0x5853cf===s[_0x3a6961(0x213)][_0x3a6961(0x23b)])return'univer-bg-red-500';switch(_0x2c5584){case s[_0x3a6961(0x22a)]['CONNECTED']:return _0x3a6961(0x246);case s[_0x3a6961(0x22a)][_0x3a6961(0x1b2)]:case s[_0x3a6961(0x22a)][_0x3a6961(0x18f)]:return _0x3a6961(0x256);case s[_0x3a6961(0x22a)]['FAILED']:return'univer-bg-red-500';default:return _0x3a6961(0x286);}},_0x56c105=_0x22fe87=>{const _0x471624=_0x508857;switch(_0x22fe87){case s[_0x471624(0x22a)]['CONNECTED']:return _0x2b83f9['t']('mcpConfig.connectionStatus.connected');case s[_0x471624(0x22a)]['CONNECTING']:return _0x2b83f9['t'](_0x471624(0x16a));case s[_0x471624(0x22a)][_0x471624(0x1b9)]:return _0x2b83f9['t']('mcpConfig.connectionStatus.failed');case s[_0x471624(0x22a)][_0x471624(0x18f)]:return _0x2b83f9['t']('mcpConfig.connectionStatus.retrying');default:return _0x2b83f9['t']('mcpConfig.connectionStatus.disconnected');}},_0xae08e4=_0x11017e=>{const _0x56b3f4=_0x508857;switch(_0x11017e){case s['MCPConnectionError']['UNAUTHORIZED']:return _0x2b83f9['t'](_0x56b3f4(0x1fa));case s[_0x56b3f4(0x213)][_0x56b3f4(0x190)]:return _0x2b83f9['t'](_0x56b3f4(0x272));case s[_0x56b3f4(0x213)][_0x56b3f4(0x2cd)]:return _0x2b83f9['t'](_0x56b3f4(0x17f));case s[_0x56b3f4(0x213)][_0x56b3f4(0x1f4)]:return _0x2b83f9['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x5b9a12=d[_0x508857(0x295)](()=>{const _0x12a155=_0x508857,_0x1a0377={..._0x4bff8,'apiKey':_0x27ee59[_0x12a155(0x1e8)](),'enableAuth':_0x3773d7};_0x2be63e(_0x1a0377);},[_0x4bff8,_0x27ee59,_0x3773d7,_0x2be63e]),_0xe77a03=_0x27ee59[_0x508857(0x1e8)]()[_0x508857(0x1e3)]>0x0;return i['jsxs'](_0x508857(0x2a9),{'className':_0x508857(0x156),'children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x1b3),'children':i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[i['jsx'](_0x508857(0x2a9),{'className':_0x508857(0x160),'children':i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x15f),'children':'⚙'})}),i[_0x508857(0x247)](_0x508857(0x2a9),{'children':i[_0x508857(0x247)]('p',{'className':_0x508857(0x1fd),'children':_0x2b83f9['t']('mcpConfig.description')})})]})}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x1b4),'children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':f[_0x508857(0x170)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x10bfcc(_0x25d483,_0x51d2ad)),'children':i[_0x508857(0x2a2)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x508857(0x247)]('div',{'className':f[_0x508857(0x170)](_0x508857(0x1e5),_0x48f0d7(_0x25d483,_0x51d2ad))}),i[_0x508857(0x247)](_0x508857(0x153),{'className':'univer-text-sm\x20univer-font-medium','children':_0x56c105(_0x25d483)})]})}),_0x51d2ad!==s[_0x508857(0x213)][_0x508857(0x1af)]&&(_0x25d483===s[_0x508857(0x22a)][_0x508857(0x1b9)]||_0x51d2ad===s['MCPConnectionError']['UNAUTHORIZED'])&&i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x27d),'children':i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x185),'children':'⚠️'}),i[_0x508857(0x247)]('p',{'className':_0x508857(0x1ea),'children':_0xae08e4(_0x51d2ad)})]})})]}),i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x271),'children':i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x26e),'children':[i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x1da),'children':[i[_0x508857(0x2a2)]('label',{'className':_0x508857(0x2c1),'children':[i[_0x508857(0x247)](_0x508857(0x153),{'children':'🔑'}),'\x20',_0x2b83f9['t'](_0x508857(0x27f)),i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x189),'children':'*'}),_0x3cd891&&i[_0x508857(0x247)]('a',{'className':_0x508857(0x2c6),'title':_0x2b83f9['t'](_0x508857(0x238)),'role':_0x508857(0x16e),'onClick':()=>_0x31ae12(!0x0),'children':i['jsx'](F,{})})]}),i[_0x508857(0x247)](f[_0x508857(0x163)],{'type':_0x508857(0x20b),'placeholder':_0x2b83f9['t'](_0x508857(0x1d9)),'value':_0x27ee59,'disabled':_0xbfa26f,'autoComplete':_0x508857(0x1a2),'onChange':_0x5b427d}),i['jsx']('p',{'className':_0x508857(0x1a3),'children':_0x2b83f9['t'](_0x508857(0x1ad))})]}),_0x3cd891&&_0x305776&&i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x1bb),'children':[i[_0x508857(0x247)]('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':_0x508857(0x16e),'onClick':()=>_0x31ae12(!0x1),'children':i[_0x508857(0x247)](B,{'className':_0x508857(0x222)})}),i['jsxs'](_0x508857(0x2a9),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x508857(0x247)]('div',{'className':_0x508857(0x27c),'children':i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x276),'children':'🚀'})}),i['jsxs'](_0x508857(0x2a9),{'className':_0x508857(0x1c8),'children':[i['jsx']('h4',{'className':_0x508857(0x255),'children':_0x2b83f9['t']('mcpConfig.apiApplyInfo.title')}),i[_0x508857(0x247)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x2b83f9['t'](_0x508857(0x24c))}),i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x20d),'children':_0xfcbad7&&i[_0x508857(0x2a2)]('a',{'className':_0x508857(0x289),'href':_0x43a985,'target':_0x508857(0x257),'rel':_0x508857(0x2a1),'children':[i[_0x508857(0x247)](_0x508857(0x153),{'children':'🤖'}),_0x2b83f9['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x16d),'children':'↗'})]})}),i['jsxs'](_0x508857(0x2a9),{'className':_0x508857(0x15a),'children':['✨','\x20',_0x2b83f9['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x30927e[_0x508857(0x2c8)]&&i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x23d),'children':[i[_0x508857(0x2a2)]('h4',{'className':_0x508857(0x215),'children':[i['jsx'](_0x508857(0x153),{'children':'🔗'}),'\x20',_0x2b83f9['t'](_0x508857(0x200))]}),i['jsxs'](_0x508857(0x2a9),{'className':_0x508857(0x287),'children':[i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x2d7),'children':[i[_0x508857(0x247)]('p',{'className':_0x508857(0x198),'children':_0x2b83f9['t'](_0x508857(0x176))}),i[_0x508857(0x2a2)]('div',{'className':_0x508857(0x1da),'children':[i['jsx'](_0x508857(0x2a9),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2b83f9['t'](_0x508857(0x178))}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x25d),'children':[i['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x508857(0x247)]('span',{'className':_0x508857(0x165),'children':'1'}),_0x2b83f9['t'](_0x508857(0x171))]}),i['jsxs'](_0x508857(0x2a9),{'className':_0x508857(0x2b8),'children':[i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x165),'children':'2'}),_0x2b83f9['t'](_0x508857(0x1a0))]}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x2b8),'children':[i[_0x508857(0x247)](_0x508857(0x153),{'className':_0x508857(0x165),'children':'3'}),_0x2b83f9['t'](_0x508857(0x1c3))]})]})]})]}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x1da),'children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),i['jsx'](_0x508857(0x2a9),{'className':_0x508857(0x28d),'children':i['jsx'](_0x508857(0x2d5),{'className':_0x508857(0x299),'children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x31b3cc||_0x508857(0x236)),'type':'http','headers':{'Authorization':_0x508857(0x157)+(_0x27ee59||_0x508857(0x1c9))}}}},null,0x2)})})]}),i['jsxs']('div',{'className':'univer-space-y-3','children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x296),'children':_0x2b83f9['t'](_0x508857(0x2c5))}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x1da),'children':[i['jsxs']('div',{'className':_0x508857(0x167),'children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x251)}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':_0x508857(0x292),'children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x227),'children':_0x508857(0x284)}),i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x1a3),'children':_0x2b83f9['t'](_0x508857(0x260))})]})]}),i[_0x508857(0x2a2)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x251)}),i['jsxs'](_0x508857(0x2a9),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x227),'children':_0x508857(0x1ce)}),i[_0x508857(0x247)]('div',{'className':_0x508857(0x1a3),'children':_0x2b83f9['t'](_0x508857(0x25a))})]})]})]})]})]})]}),i[_0x508857(0x247)](f[_0x508857(0x18d)],{'onClick':_0x5b9a12,'disabled':!_0xe77a03||_0xbfa26f,'className':_0x508857(0x21d),'children':_0xbfa26f?i[_0x508857(0x2a2)](_0x508857(0x153),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](_0x508857(0x153),{'children':'⟲'}),_0x2b83f9['t'](_0x508857(0x22c))]}):i[_0x508857(0x2a2)]('span',{'className':_0x508857(0x2b8),'children':[i[_0x508857(0x247)](H,{}),_0x2b83f9['t']('mcpConfig.save')]})}),i[_0x508857(0x247)]('div',{'className':_0x508857(0x18c),'children':i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':'univer-flex\x20univer-gap-3','children':[i['jsx'](_0x508857(0x153),{'className':_0x508857(0x29c),'children':'💡'}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x508857(0x247)](_0x508857(0x2a9),{'className':_0x508857(0x2ae),'children':_0x508857(0x21c)}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'children':['•',_0x2b83f9['t'](_0x508857(0x1db))]}),i[_0x508857(0x2a2)](_0x508857(0x2a9),{'children':['•',_0x2b83f9['t'](_0x508857(0x1d8))]})]})]})})]})})]});}const P=_0x54e4df(0x29e),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x54e4df(0x26b)],xe=(_0x163d4a,_0x3d0ce1,_0x36892b,_0x51924e)=>{for(var _0x106280=_0x51924e>0x1?void 0x0:_0x51924e?me(_0x3d0ce1,_0x36892b):_0x3d0ce1,_0x1dd4b8=_0x163d4a['length']-0x1,_0x19f291;_0x1dd4b8>=0x0;_0x1dd4b8--)(_0x19f291=_0x163d4a[_0x1dd4b8])&&(_0x106280=_0x19f291(_0x106280)||_0x106280);return _0x106280;},g=(_0x18279c,_0x284bc9)=>(_0x2f814e,_0x2e040a)=>_0x284bc9(_0x2f814e,_0x2e040a,_0x18279c);const O='mcp.apiKey',D=_0x54e4df(0x293);exports[_0x54e4df(0x194)]=class extends u['Disposable']{constructor(_0x542975,_0x5bedd4,_0x15a9ac,_0x4dba7f,_0x460416,_0x419400,_0x27f93e,_0x43071f,_0x139d2f,_0x72f41b){const _0x3bfced=_0x54e4df;super(),I(this,_0x3bfced(0x224),new M[(_0x3bfced(0x1aa))](!0x1)),I(this,_0x3bfced(0x216),new M['BehaviorSubject']({})),I(this,_0x3bfced(0x196),new M[(_0x3bfced(0x1aa))]({})),I(this,_0x3bfced(0x17a),new M['BehaviorSubject']('')),I(this,_0x3bfced(0x15c),async _0xe8f89c=>{const _0x501304=_0x3bfced;var _0x1a7d76,_0x2ab65e;this[_0x501304(0x224)][_0x501304(0x1be)](!0x0);try{const _0x38cf61=await this[_0x501304(0x1f6)](_0xe8f89c);if(!_0x38cf61[_0x501304(0x1f0)]){this[_0x501304(0x182)][_0x501304(0x17c)]({'type':f[_0x501304(0x1dd)][_0x501304(0x2a7)],'content':_0x38cf61[_0x501304(0x264)]||this[_0x501304(0x233)]['t']('mcpConfig.validation.invalidConfig')});return;}_0xe8f89c[_0x501304(0x20e)]?await this[_0x501304(0x1df)][_0x501304(0x221)](O,_0xe8f89c[_0x501304(0x20e)]['trim']()):await this[_0x501304(0x1df)][_0x501304(0x16f)](O),this[_0x501304(0x17a)][_0x501304(0x1be)](((_0x1a7d76=_0xe8f89c['apiKey'])==null?void 0x0:_0x1a7d76[_0x501304(0x1e8)]())||''),this[_0x501304(0x18e)][_0x501304(0x268)]({'Authorization':_0x501304(0x157)+((_0x2ab65e=_0xe8f89c['apiKey'])==null?void 0x0:_0x2ab65e[_0x501304(0x1e8)]())}),this['_messageService'][_0x501304(0x17c)]({'type':f[_0x501304(0x1dd)][_0x501304(0x1eb)],'content':this[_0x501304(0x233)]['t'](_0x501304(0x1f1))}),setTimeout(()=>{const _0x2b3f25=_0x501304;this[_0x2b3f25(0x230)]['close'](D);},0x320);}catch(_0x24c299){this[_0x501304(0x1c1)][_0x501304(0x212)](_0x501304(0x174),_0x24c299),this[_0x501304(0x182)][_0x501304(0x17c)]({'type':f[_0x501304(0x1dd)][_0x501304(0x2a7)],'content':this[_0x501304(0x233)]['t']('mcpConfig.configError')});}finally{this[_0x501304(0x224)][_0x501304(0x1be)](!0x1);}}),(this['_injector']=_0x542975,this[_0x3bfced(0x207)]=_0x5bedd4,this[_0x3bfced(0x267)]=_0x15a9ac,this[_0x3bfced(0x1df)]=_0x4dba7f,this['_dialogService']=_0x460416,this[_0x3bfced(0x182)]=_0x419400,this[_0x3bfced(0x28b)]=_0x27f93e,this[_0x3bfced(0x233)]=_0x43071f,this[_0x3bfced(0x1c1)]=_0x139d2f,this[_0x3bfced(0x18e)]=_0x72f41b,this['_initConfigSync'](),this[_0x3bfced(0x24b)](),this['_registerComponent']());}[_0x54e4df(0x21f)](){const _0x3d1cc0=_0x54e4df,_0x37ef32=this[_0x3d1cc0(0x267)][_0x3d1cc0(0x288)](P);_0x37ef32!=null&&_0x37ef32[_0x3d1cc0(0x2c8)]&&this[_0x3d1cc0(0x230)][_0x3d1cc0(0x2aa)]({'id':D,'title':{'title':this[_0x3d1cc0(0x233)]['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x438740=_0x3d1cc0;this['_dialogService'][_0x438740(0x1ee)](D);}});}[_0x54e4df(0x228)](){const _0x4e9d33=_0x54e4df;return this['_mcpCoreConfig$'][_0x4e9d33(0x18b)];}[_0x54e4df(0x1dc)](){const _0x17b677=_0x54e4df;this[_0x17b677(0x1f7)](this[_0x17b677(0x28b)][_0x17b677(0x169)]('MCPConfigPanel',this[_0x17b677(0x1cd)]()));}[_0x54e4df(0x1cd)](){const _0x43b544=_0x54e4df;return v[_0x43b544(0x186)](()=>{const _0x9cb18f=_0x43b544;var _0x5aace2,_0x2638fe,_0x464206;return i[_0x9cb18f(0x247)](V,{'config':this['_config$'][_0x9cb18f(0x18b)],'mcpCoreConfig':this[_0x9cb18f(0x216)][_0x9cb18f(0x18b)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x9cb18f(0x15c)],'loading':this[_0x9cb18f(0x224)]['value'],'connectionStatus$':(_0x5aace2=this[_0x9cb18f(0x18e)])==null?void 0x0:_0x5aace2[_0x9cb18f(0x20a)],'connectionError$':(_0x2638fe=this[_0x9cb18f(0x18e)])==null?void 0x0:_0x2638fe[_0x9cb18f(0x20c)],'currentSessionId$':(_0x464206=this['_mcpConnectionController'])==null?void 0x0:_0x464206[_0x9cb18f(0x2b3)]});},this['_injector']);}['_initConfigSync'](){const _0x5f04ea=_0x54e4df;this[_0x5f04ea(0x1f7)](this[_0x5f04ea(0x267)][_0x5f04ea(0x1cc)](s[_0x5f04ea(0x1d3)])['subscribe'](_0x2dbd98=>{const _0x62544c=_0x5f04ea;this[_0x62544c(0x216)][_0x62544c(0x1be)](_0x2dbd98||{});}));const _0x530eb8=this[_0x5f04ea(0x267)][_0x5f04ea(0x288)](s[_0x5f04ea(0x1d3)]);this[_0x5f04ea(0x216)][_0x5f04ea(0x1be)](_0x530eb8||{}),this[_0x5f04ea(0x1f7)](this['_configService'][_0x5f04ea(0x1cc)](P)[_0x5f04ea(0x1f5)](_0x2dbebf=>{const _0x46fd02=_0x5f04ea;this[_0x46fd02(0x196)][_0x46fd02(0x1be)](_0x2dbebf||{});}));const _0xf14668=this[_0x5f04ea(0x267)][_0x5f04ea(0x288)](P);this[_0x5f04ea(0x196)][_0x5f04ea(0x1be)](_0xf14668||{});}async[_0x54e4df(0x24b)](){const _0x4237e1=_0x54e4df,_0x120843=this[_0x4237e1(0x267)]['getConfig'](P);if(!(_0x120843!=null&&_0x120843['showDeveloperTools']))return;const _0x54a56d=await this['_localStorageService'][_0x4237e1(0x2d3)](O);_0x54a56d&&(this[_0x4237e1(0x18e)][_0x4237e1(0x268)]({'Authorization':_0x4237e1(0x157)+_0x54a56d}),this[_0x4237e1(0x17a)]['next'](_0x54a56d));}async[_0x54e4df(0x1f6)](_0x541e34){const _0x23c71a=_0x54e4df;if(!_0x541e34[_0x23c71a(0x20e)]||_0x541e34[_0x23c71a(0x20e)][_0x23c71a(0x1e8)]()[_0x23c71a(0x1e3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x23c71a(0x233)]['t'](_0x23c71a(0x28c))};if(_0x541e34[_0x23c71a(0x20e)][_0x23c71a(0x1e8)]()[_0x23c71a(0x1e3)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x23c71a(0x29a))};try{const _0x19dde5=await this['_injector']['get'](s[_0x23c71a(0x18a)])[_0x23c71a(0x1e6)](_0x541e34[_0x23c71a(0x20e)][_0x23c71a(0x1e8)]());return _0x19dde5[_0x23c71a(0x1f0)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x19dde5[_0x23c71a(0x212)]||this[_0x23c71a(0x233)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x21d588){return console[_0x23c71a(0x1c2)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x21d588),{'isValid':!0x0};}}},exports[_0x54e4df(0x194)]=xe([g(0x0,u[_0x54e4df(0x1cb)](u[_0x54e4df(0x1d7)])),g(0x1,v[_0x54e4df(0x202)]),g(0x2,u[_0x54e4df(0x154)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x54e4df(0x1c7)]),g(0x5,v[_0x54e4df(0x210)]),g(0x6,u[_0x54e4df(0x1cb)](v['ComponentManager'])),g(0x7,u[_0x54e4df(0x1cb)](u[_0x54e4df(0x243)])),g(0x8,u[_0x54e4df(0x1f8)]),g(0x9,u[_0x54e4df(0x1cb)](s[_0x54e4df(0x18a)]))],exports['MCPConfigUIController']);const b={'id':'mcp-ui.command.openConfigPanel','type':u[_0x54e4df(0x1e1)]['COMMAND'],'handler':async(_0x1d2880,_0x1a0866)=>(_0x1d2880['get'](exports[_0x54e4df(0x194)])[_0x54e4df(0x21f)](),!0x0)};function Z(_0x2dcbb6,_0x53b9c5){const _0x20c0c2=_0x54e4df;switch(_0x2dcbb6){case s[_0x20c0c2(0x22a)][_0x20c0c2(0x248)]:return _0x20c0c2(0x1ab);case s[_0x20c0c2(0x22a)][_0x20c0c2(0x1b2)]:return _0x20c0c2(0x19c);case s[_0x20c0c2(0x22a)]['CONNECTED']:return _0x20c0c2(0x2d8);case s[_0x20c0c2(0x22a)][_0x20c0c2(0x1b9)]:switch(_0x53b9c5){case s['MCPConnectionError'][_0x20c0c2(0x23b)]:return _0x20c0c2(0x244);case s[_0x20c0c2(0x213)][_0x20c0c2(0x190)]:return _0x20c0c2(0x19f);case s[_0x20c0c2(0x213)][_0x20c0c2(0x2cd)]:return _0x20c0c2(0x225);case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x20c0c2(0x17d);default:return _0x20c0c2(0x183);}case s[_0x20c0c2(0x22a)]['RETRYING']:return'mcpStatus.retrying';default:return _0x20c0c2(0x253);}}function Se(_0x527e9f,_0x1b3780,_0x20a65d,_0xe20396=!0x0){const _0x5976bd=_0x54e4df,_0x21c5a4=Z(_0x527e9f,_0x1b3780),_0x8718e5=_0x20a65d['t'](_0x21c5a4);return _0xe20396?_0x527e9f===s[_0x5976bd(0x22a)][_0x5976bd(0x248)]&&_0x1b3780===s[_0x5976bd(0x213)][_0x5976bd(0x23b)]?_0x8718e5+'\x20-\x20'+_0x20a65d['t']('mcpStatus.clickToConfigure'):_0x527e9f===s[_0x5976bd(0x22a)]['CONNECTED']?''+_0x8718e5:_0x527e9f===s[_0x5976bd(0x22a)][_0x5976bd(0x248)]||_0x527e9f===s[_0x5976bd(0x22a)][_0x5976bd(0x1b9)]?_0x8718e5+_0x5976bd(0x234)+_0x20a65d['t'](_0x5976bd(0x1fc)):_0x8718e5:_0x8718e5;}function Pe(_0x5a462a){const _0x366241=_0x54e4df;switch(_0x5a462a){case s['MCPConnectionStatus'][_0x366241(0x23c)]:return'univer-text-green-500';case s[_0x366241(0x22a)][_0x366241(0x1b2)]:case s[_0x366241(0x22a)][_0x366241(0x18f)]:return'univer-text-yellow-500';case s['MCPConnectionStatus']['FAILED']:case s['MCPConnectionStatus'][_0x366241(0x248)]:return _0x366241(0x189);default:return _0x366241(0x172);}}function W(_0x9a7670){const _0x2c05c5=_0x54e4df,{status$:_0xece5f1,error$:_0x8bdef7,onConfigure:_0xd0aae7,showClickable:_0x1f8602=!0x0}=_0x9a7670,_0x39e200=v[_0x2c05c5(0x151)](_0xece5f1,s['MCPConnectionStatus'][_0x2c05c5(0x248)]),_0x3c8242=v['useObservable'](_0x8bdef7,s[_0x2c05c5(0x213)][_0x2c05c5(0x1af)]),_0x5d2cb1=v[_0x2c05c5(0x298)](u[_0x2c05c5(0x243)]),_0x231ffa=_0x39e200===s[_0x2c05c5(0x22a)][_0x2c05c5(0x23c)];_0x39e200===s[_0x2c05c5(0x22a)][_0x2c05c5(0x1b2)]||s[_0x2c05c5(0x22a)]['RETRYING'];const _0x54054d=_0x5d2cb1['t'](Z(_0x39e200,_0x3c8242)),_0x3807cd=Se(_0x39e200,_0x3c8242,_0x5d2cb1,_0x1f8602),_0x12ae84=Pe(_0x39e200),_0x27f88f=_0x231ffa?i['jsx'](q,{}):i[_0x2c05c5(0x247)](Y,{}),_0x720ff7=d[_0x2c05c5(0x295)](()=>{_0x1f8602&&_0xd0aae7&&_0xd0aae7();},[_0x1f8602,_0xd0aae7]);function _0x38c560(){const _0x5c765d=_0x2c05c5;return i['jsxs'](_0x5c765d(0x2a9),{'className':f['clsx']('univer-flex\x20univer-items-center',_0x1f8602&&_0xd0aae7&&_0x5c765d(0x2bd)),'role':_0x5c765d(0x16e),'onClick':_0x1f8602&&_0xd0aae7?_0x720ff7:void 0x0,'children':[i[_0x5c765d(0x247)](_0x5c765d(0x2a9),{'className':f[_0x5c765d(0x170)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x12ae84),'children':_0x27f88f}),i[_0x5c765d(0x247)](_0x5c765d(0x2a9),{'className':_0x5c765d(0x1c6),'children':_0x54054d})]});}return i[_0x2c05c5(0x247)](f[_0x2c05c5(0x2d2)],{'title':_0x3807cd,'placement':_0x2c05c5(0x28a),'children':_0x38c560()});}var Ie=Object[_0x54e4df(0x26b)],_e=(_0x13e8bc,_0x1d504d,_0x13112b,_0x54400d)=>{const _0x570cec=_0x54e4df;for(var _0x32fc27=_0x54400d>0x1?void 0x0:_0x54400d?Ie(_0x1d504d,_0x13112b):_0x1d504d,_0x5233cb=_0x13e8bc[_0x570cec(0x1e3)]-0x1,_0x504857;_0x5233cb>=0x0;_0x5233cb--)(_0x504857=_0x13e8bc[_0x5233cb])&&(_0x32fc27=_0x504857(_0x32fc27)||_0x32fc27);return _0x32fc27;},N=(_0x48286f,_0x593eee)=>(_0x4c3fc6,_0x48d333)=>_0x593eee(_0x4c3fc6,_0x48d333,_0x48286f);exports['MCPConnectionUIController']=class extends u[_0x54e4df(0x263)]{constructor(_0x19c80a,_0x22a978,_0x23fe55,_0x8e45ea){const _0xf728d0=_0x54e4df;super(),this[_0xf728d0(0x1d6)]=_0x19c80a,this[_0xf728d0(0x2cc)]=_0x22a978,this['_uiPartsService']=_0x23fe55,this[_0xf728d0(0x267)]=_0x8e45ea,this[_0xf728d0(0x1bd)](),this[_0xf728d0(0x204)]();}[_0x54e4df(0x1bd)](){const _0x3d78b3=_0x54e4df,_0x5246c8=this[_0x3d78b3(0x267)][_0x3d78b3(0x288)](P);_0x5246c8!=null&&_0x5246c8[_0x3d78b3(0x2c8)]&&(this['_connectionController'][_0x3d78b3(0x208)]=!0x1);}['_initStatusComponent'](){const _0x19ff3f=_0x54e4df,_0x9cd4f3=this[_0x19ff3f(0x267)]['getConfig'](P);(_0x9cd4f3==null?void 0x0:_0x9cd4f3[_0x19ff3f(0x155)])!==!0x1&&this['disposeWithMe'](this[_0x19ff3f(0x207)][_0x19ff3f(0x2ce)](v[_0x19ff3f(0x2ad)]['HEADER_MENU'],()=>{const _0x180113=_0x19ff3f;var _0x12055e;return v[_0x180113(0x186)](ye({'status$':this[_0x180113(0x2cc)][_0x180113(0x20a)],'error$':this[_0x180113(0x2cc)][_0x180113(0x20c)],'onConfigure':()=>this[_0x180113(0x21e)](),'showClickable':(_0x12055e=_0x9cd4f3==null?void 0x0:_0x9cd4f3['showDeveloperTools'])!=null?_0x12055e:!0x1}),this['_injector']);}));}[_0x54e4df(0x21e)](){const _0x248440=_0x54e4df;this[_0x248440(0x1d6)][_0x248440(0x240)](exports[_0x248440(0x194)])['showConfigPanel']();}},exports[_0x54e4df(0x2a4)]=_e([N(0x0,u[_0x54e4df(0x1cb)](u['Injector'])),N(0x1,u[_0x54e4df(0x1cb)](s['MCPConnectionController'])),N(0x2,v['IUIPartsService']),N(0x3,u[_0x54e4df(0x154)])],exports[_0x54e4df(0x2a4)]);function ye(_0x335204){const {status$:_0x186b54,error$:_0x748c54,onConfigure:_0x5a9001,showClickable:_0x5ad128}=_0x335204;return function(){const _0x8325c4=_0x237e;return i[_0x8325c4(0x247)](W,{'status$':_0x186b54,'error$':_0x748c54,'onConfigure':_0x5a9001,'showClickable':_0x5ad128});};}function Me(_0x27cf75){const _0x183dbc=_0x54e4df;return{'id':b['id'],'type':v[_0x183dbc(0x1e9)][_0x183dbc(0x274)],'icon':_0x183dbc(0x25c),'title':_0x183dbc(0x2a8),'tooltip':_0x183dbc(0x2a8)};}const Ne={[v['RibbonStartGroup'][_0x54e4df(0x179)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};function _0x237e(_0x43b6a7,_0x540aaf){const _0x4a78ce=_0x4a78();return _0x237e=function(_0x237e95,_0x5957e0){_0x237e95=_0x237e95-0x151;let _0x568dc5=_0x4a78ce[_0x237e95];return _0x568dc5;},_0x237e(_0x43b6a7,_0x540aaf);}var be=Object['getOwnPropertyDescriptor'],je=(_0x3b07ce,_0x151803,_0x5e865c,_0x4082b0)=>{const _0x2e3d13=_0x54e4df;for(var _0x19bc17=_0x4082b0>0x1?void 0x0:_0x4082b0?be(_0x151803,_0x5e865c):_0x151803,_0x5910b3=_0x3b07ce[_0x2e3d13(0x1e3)]-0x1,_0x183baa;_0x5910b3>=0x0;_0x5910b3--)(_0x183baa=_0x3b07ce[_0x5910b3])&&(_0x19bc17=_0x183baa(_0x19bc17)||_0x19bc17);return _0x19bc17;},z=(_0x427a25,_0x5e162e)=>(_0x537077,_0x30aa3b)=>_0x5e162e(_0x537077,_0x30aa3b,_0x427a25);exports['MCPUIMenuController']=class extends u[_0x54e4df(0x263)]{constructor(_0x8dcc31,_0x588072){const _0x586e16=_0x54e4df;super(),this[_0x586e16(0x232)]=_0x8dcc31,this['_menuManagerService']=_0x588072,this[_0x586e16(0x166)](),this['_initializeMenus']();}[_0x54e4df(0x166)](){const _0x5fcd8b=_0x54e4df;[b][_0x5fcd8b(0x1b5)](_0x33c349=>{const _0x42aaa7=_0x5fcd8b;this[_0x42aaa7(0x1f7)](this[_0x42aaa7(0x232)][_0x42aaa7(0x26d)](_0x33c349));});}[_0x54e4df(0x281)](){const _0x975093=_0x54e4df;this['_menuManagerService'][_0x975093(0x162)](Ne);}},exports[_0x54e4df(0x1fb)]=je([z(0x0,u[_0x54e4df(0x29f)]),z(0x1,v['IMenuManagerService'])],exports[_0x54e4df(0x1fb)]);const Ee={'mcpStatus':{'disconnected':_0x54e4df(0x23e),'connecting':'MCP\x20Connecting...','connected':_0x54e4df(0x2b1),'failed':_0x54e4df(0x161),'retrying':_0x54e4df(0x2c0),'unknown':_0x54e4df(0x226),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x54e4df(0x191),'networkError':_0x54e4df(0x2c2),'maxRetriesExceeded':_0x54e4df(0x283),'clickToConnect':_0x54e4df(0x2b5),'clickToConfigure':_0x54e4df(0x245)},'mcpConfig':{'title':_0x54e4df(0x24a),'description':_0x54e4df(0x164),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x54e4df(0x1a8),'apiKeyHint':_0x54e4df(0x1ac),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x54e4df(0x1ba),'connectionInfo':_0x54e4df(0x15d),'mcpClientConfig':_0x54e4df(0x15d),'configInstructions':_0x54e4df(0x266),'configStepTitle':_0x54e4df(0x2c4),'configStep1':_0x54e4df(0x26f),'configStep2':_0x54e4df(0x1ae),'configStep3':_0x54e4df(0x297),'sessionId':_0x54e4df(0x16b),'sessionIdDescription':_0x54e4df(0x2ca),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x54e4df(0x1c4),'maxRetries':_0x54e4df(0x1cf),'save':_0x54e4df(0x205),'saving':_0x54e4df(0x2a6),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x54e4df(0x278),'configSaved':_0x54e4df(0x2af),'configError':_0x54e4df(0x193),'apiApplyInfo':{'title':_0x54e4df(0x27e),'description':_0x54e4df(0x192),'univerAiLabel':_0x54e4df(0x1ec),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x54e4df(0x209),'apiKeyTooShort':_0x54e4df(0x231),'invalidConfig':_0x54e4df(0x21b),'invalidApiKey':_0x54e4df(0x1ed)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x54e4df(0x206),'connected':'Connected','failed':_0x54e4df(0x275),'retrying':_0x54e4df(0x270)},'connectionError':{'unauthorized':_0x54e4df(0x177),'sessionOccupied':_0x54e4df(0x262),'networkError':_0x54e4df(0x1b6),'maxRetriesExceeded':_0x54e4df(0x214)}}},we={'mcpStatus':{'disconnected':_0x54e4df(0x1b8),'connecting':_0x54e4df(0x22d),'connected':_0x54e4df(0x217),'failed':_0x54e4df(0x168),'retrying':'MCP\x20重连中...','unknown':_0x54e4df(0x1fe),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x54e4df(0x159),'networkError':_0x54e4df(0x1f9),'maxRetriesExceeded':_0x54e4df(0x282),'clickToConnect':_0x54e4df(0x2da),'clickToConfigure':_0x54e4df(0x237)},'mcpConfig':{'title':'MCP\x20配置','description':_0x54e4df(0x1a4),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x54e4df(0x27b),'apiKeyHint':_0x54e4df(0x1e7),'enableAuth':_0x54e4df(0x1d2),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x54e4df(0x15e),'mcpClientConfig':_0x54e4df(0x15e),'configInstructions':_0x54e4df(0x242),'configStepTitle':_0x54e4df(0x24f),'configStep1':_0x54e4df(0x180),'configStep2':_0x54e4df(0x2d4),'configStep3':_0x54e4df(0x23a),'sessionId':_0x54e4df(0x1bc),'sessionIdDescription':_0x54e4df(0x290),'authorizationDescription':_0x54e4df(0x1ca),'configParameters':_0x54e4df(0x211),'maxRetries':_0x54e4df(0x19b),'save':_0x54e4df(0x1f3),'saving':'保存中...','note1':_0x54e4df(0x291),'note2':_0x54e4df(0x203),'configSaved':_0x54e4df(0x1e0),'configError':_0x54e4df(0x25e),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x54e4df(0x239),'univerAiLabel':_0x54e4df(0x277),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x54e4df(0x22e),'apiKeyTooShort':_0x54e4df(0x15b),'invalidConfig':_0x54e4df(0x2c3),'invalidApiKey':_0x54e4df(0x175)},'connectionStatus':{'disconnected':_0x54e4df(0x29b),'connecting':_0x54e4df(0x1d5),'connected':_0x54e4df(0x28e),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x54e4df(0x26a),'networkError':_0x54e4df(0x218),'maxRetriesExceeded':_0x54e4df(0x187)}}};var Ae=Object[_0x54e4df(0x28f)],Oe=Object[_0x54e4df(0x26b)],De=(_0x1d2151,_0x40537,_0x531956)=>_0x40537 in _0x1d2151?Ae(_0x1d2151,_0x40537,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x531956}):_0x1d2151[_0x40537]=_0x531956,Ue=(_0x43e2de,_0x4c35fe,_0x17e27a,_0x4d142b)=>{for(var _0x327b28=_0x4d142b>0x1?void 0x0:_0x4d142b?Oe(_0x4c35fe,_0x17e27a):_0x4c35fe,_0x326aab=_0x43e2de['length']-0x1,_0x1f31bc;_0x326aab>=0x0;_0x326aab--)(_0x1f31bc=_0x43e2de[_0x326aab])&&(_0x327b28=_0x1f31bc(_0x327b28)||_0x327b28);return _0x327b28;},y=(_0x2121ca,_0x541f8a)=>(_0x1e5bcf,_0x15d206)=>_0x541f8a(_0x1e5bcf,_0x15d206,_0x2121ca),$e=(_0x325db7,_0x4961fa,_0x546d1e)=>De(_0x325db7,_0x4961fa+'',_0x546d1e);exports[_0x54e4df(0x1d0)]=class extends u['Plugin']{constructor(_0x1405b0=L,_0x5066cc,_0x3d380c,_0x170151,_0x496911,_0x44c498){const _0x33d538=_0x54e4df;super(),this[_0x33d538(0x26c)]=_0x1405b0,this[_0x33d538(0x1d6)]=_0x5066cc,this['_configService']=_0x3d380c,this[_0x33d538(0x207)]=_0x170151,this[_0x33d538(0x1df)]=_0x496911,this[_0x33d538(0x233)]=_0x44c498;const {..._0x1ea9b1}=u['merge']({},L,this[_0x33d538(0x26c)]);this[_0x33d538(0x267)][_0x33d538(0x2cf)](P,_0x1ea9b1);}async[_0x54e4df(0x258)](){const _0x8a561a=_0x54e4df,_0x2354eb=[[exports[_0x8a561a(0x2a4)]],[exports['MCPConfigUIController']],[exports[_0x8a561a(0x1fb)]]];this[_0x8a561a(0x1d6)][_0x8a561a(0x1de)](A[_0x8a561a(0x1a1)])||_0x2354eb[_0x8a561a(0x1ef)]([A[_0x8a561a(0x1a1)],{'useClass':A[_0x8a561a(0x2a5)]}]),_0x2354eb[_0x8a561a(0x1b5)](_0x4b6b29=>this['_injector'][_0x8a561a(0x261)](_0x4b6b29)),this[_0x8a561a(0x1d6)]['get'](exports['MCPConnectionUIController']),this[_0x8a561a(0x1d6)][_0x8a561a(0x240)](exports[_0x8a561a(0x194)]),this['_injector'][_0x8a561a(0x240)](exports[_0x8a561a(0x1fb)]);}},$e(exports[_0x54e4df(0x1d0)],_0x54e4df(0x1a7),_0x54e4df(0x19a)),exports[_0x54e4df(0x1d0)]=Ue([u[_0x54e4df(0x2bc)](s[_0x54e4df(0x199)]),y(0x1,u[_0x54e4df(0x1cb)](u['Injector'])),y(0x2,u[_0x54e4df(0x154)]),y(0x3,v[_0x54e4df(0x202)]),y(0x4,u['ILocalStorageService']),y(0x5,u['Inject'](u[_0x54e4df(0x243)]))],exports[_0x54e4df(0x1d0)]),exports[_0x54e4df(0x27a)]=V,exports[_0x54e4df(0x19d)]=W,exports['OpenMCPConfigPanelCommand']=b,exports[_0x54e4df(0x2ba)]=Ee,exports['zhCN']=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xd2c620=_0x4f1a;function _0x4643(){const _0x4e4b40=['54fLXahp','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Disconnected','Retrying...','27176sQLVKj','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','4193516GhJIMR','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Save\x20Configuration','MCP\x20Disconnected','Invalid\x20configuration','66YeSQOK','3SSJSfR','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','506934EpdQiz','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connected','MCP\x20Connecting...','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','Enable\x20Authentication','1621113ibCDzM','Connection\x20Failed','934130PqXTlu','63LjLTmZ','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3970320evxHJP','651106cMkHGi'];_0x4643=function(){return _0x4e4b40;};return _0x4643();}(function(_0x15a9f3,_0x2b4354){const _0x4d34eb=_0x4f1a,_0x45b354=_0x15a9f3();while(!![]){try{const _0x25f2a5=parseInt(_0x4d34eb(0x15c))/0x1+-parseInt(_0x4d34eb(0x163))/0x2+parseInt(_0x4d34eb(0x14b))/0x3*(-parseInt(_0x4d34eb(0x145))/0x4)+parseInt(_0x4d34eb(0x162))/0x5+-parseInt(_0x4d34eb(0x14e))/0x6*(parseInt(_0x4d34eb(0x15f))/0x7)+parseInt(_0x4d34eb(0x13c))/0x8*(parseInt(_0x4d34eb(0x164))/0x9)+-parseInt(_0x4d34eb(0x15e))/0xa*(-parseInt(_0x4d34eb(0x14a))/0xb);if(_0x25f2a5===_0x2b4354)break;else _0x45b354['push'](_0x45b354['shift']());}catch(_0x27edf4){_0x45b354['push'](_0x45b354['shift']());}}}(_0x4643,0xd2608));function _0x4f1a(_0x143a24,_0x132b90){const _0x46433d=_0x4643();return _0x4f1a=function(_0x4f1aeb,_0x431e16){_0x4f1aeb=_0x4f1aeb-0x139;let _0x147ae2=_0x46433d[_0x4f1aeb];return _0x147ae2;},_0x4f1a(_0x143a24,_0x132b90);}const e={'mcpStatus':{'disconnected':_0xd2c620(0x148),'connecting':_0xd2c620(0x154),'connected':_0xd2c620(0x153),'failed':_0xd2c620(0x150),'retrying':_0xd2c620(0x139),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xd2c620(0x157),'clickToConnect':_0xd2c620(0x13e),'clickToConfigure':_0xd2c620(0x160)},'mcpConfig':{'title':_0xd2c620(0x144),'description':_0xd2c620(0x14d),'apiKey':_0xd2c620(0x142),'apiKeyPlaceholder':_0xd2c620(0x14f),'apiKeyHint':_0xd2c620(0x140),'enableAuth':_0xd2c620(0x15b),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xd2c620(0x155),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xd2c620(0x141),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xd2c620(0x143),'configStep2':_0xd2c620(0x156),'configStep3':_0xd2c620(0x13d),'sessionId':'Session\x20ID','sessionIdDescription':_0xd2c620(0x168),'authorizationDescription':_0xd2c620(0x158),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0xd2c620(0x147),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xd2c620(0x161),'configSaved':_0xd2c620(0x167),'configError':_0xd2c620(0x165),'apiApplyInfo':{'title':_0xd2c620(0x13f),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xd2c620(0x166),'invalidConfig':_0xd2c620(0x149),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xd2c620(0x13a),'connecting':_0xd2c620(0x15a),'connected':_0xd2c620(0x14c),'failed':_0xd2c620(0x15d),'retrying':_0xd2c620(0x13b)},'connectionError':{'unauthorized':_0xd2c620(0x146),'sessionOccupied':_0xd2c620(0x151),'networkError':_0xd2c620(0x159),'maxRetriesExceeded':_0xd2c620(0x152)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x404b44=_0x220c;(function(_0x3c1ffc,_0x26cfdb){const _0x1420f3=_0x220c,_0x36c036=_0x3c1ffc();while(!![]){try{const _0x442329=parseInt(_0x1420f3(0x105))/0x1+parseInt(_0x1420f3(0x112))/0x2*(parseInt(_0x1420f3(0xf2))/0x3)+-parseInt(_0x1420f3(0x111))/0x4*(parseInt(_0x1420f3(0x117))/0x5)+-parseInt(_0x1420f3(0x11b))/0x6*(parseInt(_0x1420f3(0x110))/0x7)+parseInt(_0x1420f3(0x116))/0x8+parseInt(_0x1420f3(0xf3))/0x9*(-parseInt(_0x1420f3(0x10f))/0xa)+parseInt(_0x1420f3(0x107))/0xb*(parseInt(_0x1420f3(0xf5))/0xc);if(_0x442329===_0x26cfdb)break;else _0x36c036['push'](_0x36c036['shift']());}catch(_0x197b45){_0x36c036['push'](_0x36c036['shift']());}}}(_0x5540,0xa1d89));function _0x220c(_0x1e6d57,_0x3210c7){const _0x55406f=_0x5540();return _0x220c=function(_0x220cb3,_0x290f54){_0x220cb3=_0x220cb3-0xe9;let _0xfbc54d=_0x55406f[_0x220cb3];return _0xfbc54d;},_0x220c(_0x1e6d57,_0x3210c7);}const e={'mcpStatus':{'disconnected':_0x404b44(0x108),'connecting':_0x404b44(0x115),'connected':'MCP\x20Connected','failed':_0x404b44(0x118),'retrying':_0x404b44(0xf0),'unknown':_0x404b44(0x113),'unauthorized':_0x404b44(0x10b),'sessionOccupied':_0x404b44(0x106),'networkError':_0x404b44(0xe9),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x404b44(0x11c)},'mcpConfig':{'title':_0x404b44(0xfb),'description':_0x404b44(0xfe),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x404b44(0x10e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x404b44(0xec),'enableAuthHint':_0x404b44(0x103),'connectionInfo':_0x404b44(0xf8),'mcpClientConfig':_0x404b44(0xf8),'configInstructions':_0x404b44(0x104),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x404b44(0x119),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x404b44(0xf6),'sessionId':_0x404b44(0xea),'sessionIdDescription':_0x404b44(0x11a),'authorizationDescription':_0x404b44(0xee),'configParameters':_0x404b44(0x102),'maxRetries':'Max\x20Retries','save':_0x404b44(0x109),'saving':_0x404b44(0xff),'note1':_0x404b44(0xed),'note2':_0x404b44(0xf4),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x404b44(0xef),'apiApplyInfo':{'title':_0x404b44(0xfc),'description':_0x404b44(0x10c),'univerAiLabel':_0x404b44(0x101),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x404b44(0xfd)},'connectionStatus':{'disconnected':_0x404b44(0xeb),'connecting':_0x404b44(0xf1),'connected':_0x404b44(0xfa),'failed':_0x404b44(0x100),'retrying':_0x404b44(0x114)},'connectionError':{'unauthorized':_0x404b44(0xf7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x404b44(0x10d),'maxRetriesExceeded':_0x404b44(0x10a)}}};function _0x5540(){const _0x116d3f=['API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enter\x20your\x20API\x20key','3154090seSHfW','3238823hXldSP','4RFKSxx','2596534xlveoh','MCP\x20Unknown\x20Status','Retrying...','MCP\x20Connecting...','2533432UdKuIx','5180465QViXPC','MCP\x20Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','6PmloWw','Click\x20to\x20configure\x20MCP','MCP:\x20Network\x20Error','Session\x20ID','Disconnected','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','Connecting...','3XTHOsX','18NpbUdp','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','240ljSePa','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Client\x20Configuration','exports','Connected','MCP\x20Configuration','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Saving...','Connection\x20Failed','Univer\x20AI\x20Console','Configuration\x20Parameters:','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','373655HvbVeX','MCP:\x20Session\x20ID\x20Occupied','442156DuJfDo','MCP\x20Disconnected','Save\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Unauthorized'];_0x5540=function(){return _0x116d3f;};return _0x5540();}module[_0x404b44(0xf9)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x3afb(){const _0x257135=['1528653JSXvzD','MCP\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','Session\x20ID','MCP\x20Unknown\x20Status','MCP:\x20Unauthorized','Retrying...','Enter\x20your\x20API\x20key','14412xCoQnh','3290018TOffvF','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','MCP\x20Connecting...','Configuration\x20Steps:','Connection\x20Failed','Saving...','MCP\x20Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20Authentication','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Max\x20Retries\x20Exceeded','Save\x20Configuration','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','27kBtuiw','17440480JgLkvm','3XzELZv','4VrcCPf','API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','15924ApRMEn','4245704GslpZd','212055PEPqnL','Configuration\x20saved\x20successfully','Get\x20your\x20API\x20key\x20in\x20seconds','2317AYhesj','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','13310sDQPKR','Connected'];_0x3afb=function(){return _0x257135;};return _0x3afb();}function _0x2bb5(_0x1cdaeb,_0x25c5ae){const _0x3afbf8=_0x3afb();return _0x2bb5=function(_0x2bb558,_0x5c05d0){_0x2bb558=_0x2bb558-0x156;let _0x1baa78=_0x3afbf8[_0x2bb558];return _0x1baa78;},_0x2bb5(_0x1cdaeb,_0x25c5ae);}const _0x10e580=_0x2bb5;(function(_0x26c265,_0x473483){const _0x119213=_0x2bb5,_0x9569f8=_0x26c265();while(!![]){try{const _0x564d7d=-parseInt(_0x119213(0x16c))/0x1+parseInt(_0x119213(0x179))/0x2*(parseInt(_0x119213(0x15d))/0x3)+parseInt(_0x119213(0x15e))/0x4*(parseInt(_0x119213(0x164))/0x5)+parseInt(_0x119213(0x162))/0x6*(-parseInt(_0x119213(0x167))/0x7)+-parseInt(_0x119213(0x163))/0x8*(parseInt(_0x119213(0x15b))/0x9)+parseInt(_0x119213(0x15c))/0xa+-parseInt(_0x119213(0x16a))/0xb*(-parseInt(_0x119213(0x178))/0xc);if(_0x564d7d===_0x473483)break;else _0x9569f8['push'](_0x9569f8['shift']());}catch(_0x33c2c4){_0x9569f8['push'](_0x9569f8['shift']());}}}(_0x3afb,0xd82a4));const e={'mcpStatus':{'disconnected':_0x10e580(0x183),'connecting':_0x10e580(0x17c),'connected':_0x10e580(0x180),'failed':_0x10e580(0x17b),'retrying':'MCP\x20Retrying...','unknown':_0x10e580(0x174),'unauthorized':_0x10e580(0x175),'sessionOccupied':_0x10e580(0x184),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x10e580(0x156),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x10e580(0x16d),'description':_0x10e580(0x171),'apiKey':_0x10e580(0x15f),'apiKeyPlaceholder':_0x10e580(0x177),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x10e580(0x186),'enableAuthHint':_0x10e580(0x161),'connectionInfo':_0x10e580(0x158),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x10e580(0x160),'configStepTitle':_0x10e580(0x17d),'configStep1':_0x10e580(0x182),'configStep2':_0x10e580(0x17a),'configStep3':_0x10e580(0x169),'sessionId':_0x10e580(0x173),'sessionIdDescription':_0x10e580(0x18a),'authorizationDescription':_0x10e580(0x159),'configParameters':_0x10e580(0x172),'maxRetries':_0x10e580(0x16f),'save':_0x10e580(0x157),'saving':_0x10e580(0x17f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x10e580(0x185),'configSaved':_0x10e580(0x165),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x10e580(0x188),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x10e580(0x166)},'validation':{'apiKeyRequired':_0x10e580(0x187),'apiKeyTooShort':_0x10e580(0x170),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x10e580(0x16e)},'connectionStatus':{'disconnected':_0x10e580(0x189),'connecting':'Connecting...','connected':_0x10e580(0x16b),'failed':_0x10e580(0x17e),'retrying':_0x10e580(0x176)},'connectionError':{'unauthorized':_0x10e580(0x181),'sessionOccupied':_0x10e580(0x168),'networkError':_0x10e580(0x15a),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4d5b09=_0x5d18;function _0x3416(){const _0x5388f1=['MCP:\x20Network\x20Error','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20configuration','Disconnected','2040380afBQBa','Enable\x20Authentication','7GCrZZG','MCP\x20Connected','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','883063lMBsBx','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','771DHhCJI','Saving...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4099810LVwmBg','Retrying...','Connected','1876158izWkyV','API\x20Key','Configuration\x20Parameters:','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','Configuration\x20saved\x20successfully','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.','Click\x20to\x20connect\x20MCP','282UUSgGS','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','20961108JQOIQf','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Max\x20Retries','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Failed\x20to\x20save\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Client\x20Configuration','Configuration\x20Steps:','2073032RpNvDt'];_0x3416=function(){return _0x5388f1;};return _0x3416();}(function(_0xaad456,_0x3149bf){const _0x89cd46=_0x5d18,_0x4ad3fb=_0xaad456();while(!![]){try{const _0x29838a=-parseInt(_0x89cd46(0x102))/0x1+parseInt(_0x89cd46(0xe1))/0x2*(-parseInt(_0x89cd46(0x106))/0x3)+parseInt(_0x89cd46(0xfc))/0x4+-parseInt(_0x89cd46(0x109))/0x5+-parseInt(_0x89cd46(0xd7))/0x6*(parseInt(_0x89cd46(0xfe))/0x7)+-parseInt(_0x89cd46(0xf6))/0x8+parseInt(_0x89cd46(0xeb))/0x9;if(_0x29838a===_0x3149bf)break;else _0x4ad3fb['push'](_0x4ad3fb['shift']());}catch(_0x5ce227){_0x4ad3fb['push'](_0x4ad3fb['shift']());}}}(_0x3416,0x80e97));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4d5b09(0xff),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4d5b09(0xe5),'unknown':_0x4d5b09(0xe3),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4d5b09(0xe9),'networkError':_0x4d5b09(0xf7),'maxRetriesExceeded':_0x4d5b09(0xf1),'clickToConnect':_0x4d5b09(0xe0),'clickToConfigure':_0x4d5b09(0xda)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4d5b09(0xd8),'apiKeyPlaceholder':_0x4d5b09(0xde),'apiKeyHint':_0x4d5b09(0xef),'enableAuth':_0x4d5b09(0xfd),'enableAuthHint':_0x4d5b09(0x101),'connectionInfo':_0x4d5b09(0xf4),'mcpClientConfig':_0x4d5b09(0xf4),'configInstructions':_0x4d5b09(0xec),'configStepTitle':_0x4d5b09(0xf5),'configStep1':_0x4d5b09(0xdb),'configStep2':_0x4d5b09(0x108),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4d5b09(0xea),'sessionIdDescription':_0x4d5b09(0xdf),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4d5b09(0xd9),'maxRetries':_0x4d5b09(0xed),'save':_0x4d5b09(0xe6),'saving':_0x4d5b09(0x107),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4d5b09(0x104),'configSaved':_0x4d5b09(0xdd),'configError':_0x4d5b09(0xf0),'apiApplyInfo':{'title':_0x4d5b09(0xf2),'description':_0x4d5b09(0x103),'univerAiLabel':_0x4d5b09(0xee),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4d5b09(0x100),'apiKeyTooShort':_0x4d5b09(0xe7),'invalidConfig':_0x4d5b09(0xfa),'invalidApiKey':_0x4d5b09(0xe4)},'connectionStatus':{'disconnected':_0x4d5b09(0xfb),'connecting':_0x4d5b09(0xf8),'connected':_0x4d5b09(0x10b),'failed':_0x4d5b09(0xdc),'retrying':_0x4d5b09(0x10a)},'connectionError':{'unauthorized':_0x4d5b09(0xf9),'sessionOccupied':_0x4d5b09(0xe2),'networkError':_0x4d5b09(0xf3),'maxRetriesExceeded':_0x4d5b09(0x105)}}},n=e;function _0x5d18(_0x55df82,_0x556a11){const _0x34167e=_0x3416();return _0x5d18=function(_0x5d180e,_0x19e7d3){_0x5d180e=_0x5d180e-0xd7;let _0x4e35ee=_0x34167e[_0x5d180e];return _0x4e35ee;},_0x5d18(_0x55df82,_0x556a11);}module[_0x4d5b09(0xe8)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x1086a8=_0x3dd3;function _0x1d55(){const _0x691abb=['Get\x20your\x20API\x20key\x20in\x20seconds','898504uXMMbm','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Session\x20ID','Invalid\x20configuration','Univer\x20AI\x20Console','16713ywTYMO','Connected','Enter\x20your\x20API\x20key','Configuration\x20Parameters:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1034052tpJtis','Retrying...','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2887riyFxF','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','484FzDYQv','1610UWirAS','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','92OyLOEA','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20Authentication','Disconnected','2438235gPXgHc','42sROncU','Save\x20Configuration','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','exports','77jLfWGJ','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','4790NCyylj','API\x20Key','Max\x20Retries','6456078MQjooc','MCP\x20Retrying...','Configuration\x20Steps:','MCP:\x20Unauthorized','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x1d55=function(){return _0x691abb;};return _0x1d55();}function _0x3dd3(_0x3f39f6,_0xaa48f1){const _0x1d5534=_0x1d55();return _0x3dd3=function(_0x3dd340,_0x109198){_0x3dd340=_0x3dd340-0x1f2;let _0x40eb89=_0x1d5534[_0x3dd340];return _0x40eb89;},_0x3dd3(_0x3f39f6,_0xaa48f1);}(function(_0xaacac1,_0x2aad25){const _0x480505=_0x3dd3,_0xf12bd0=_0xaacac1();while(!![]){try{const _0x81de6f=-parseInt(_0x480505(0x1f3))/0x1*(parseInt(_0x480505(0x1f5))/0x2)+parseInt(_0x480505(0x1fc))/0x3+parseInt(_0x480505(0x1f8))/0x4*(-parseInt(_0x480505(0x204))/0x5)+-parseInt(_0x480505(0x207))/0x6+parseInt(_0x480505(0x1fd))/0x7*(parseInt(_0x480505(0x20e))/0x8)+parseInt(_0x480505(0x21a))/0x9*(parseInt(_0x480505(0x1f6))/0xa)+parseInt(_0x480505(0x202))/0xb*(parseInt(_0x480505(0x21f))/0xc);if(_0x81de6f===_0x2aad25)break;else _0xf12bd0['push'](_0xf12bd0['shift']());}catch(_0x3639cb){_0xf12bd0['push'](_0xf12bd0['shift']());}}}(_0x1d55,0x908e0));const e={'mcpStatus':{'disconnected':_0x1086a8(0x215),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x1086a8(0x214),'retrying':_0x1086a8(0x208),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x1086a8(0x20a),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1086a8(0x210),'maxRetriesExceeded':_0x1086a8(0x200),'clickToConnect':_0x1086a8(0x216),'clickToConfigure':_0x1086a8(0x1ff)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1086a8(0x205),'apiKeyPlaceholder':_0x1086a8(0x21c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1086a8(0x1fa),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1086a8(0x1f2),'configStepTitle':_0x1086a8(0x209),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1086a8(0x21e),'sessionId':_0x1086a8(0x217),'sessionIdDescription':_0x1086a8(0x1f7),'authorizationDescription':_0x1086a8(0x1f9),'configParameters':_0x1086a8(0x21d),'maxRetries':_0x1086a8(0x206),'save':_0x1086a8(0x1fe),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1086a8(0x203),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1086a8(0x221),'description':_0x1086a8(0x211),'univerAiLabel':_0x1086a8(0x219),'getStarted':_0x1086a8(0x20d)},'validation':{'apiKeyRequired':_0x1086a8(0x20b),'apiKeyTooShort':_0x1086a8(0x1f4),'invalidConfig':_0x1086a8(0x218),'invalidApiKey':_0x1086a8(0x20f)},'connectionStatus':{'disconnected':_0x1086a8(0x1fb),'connecting':'Connecting...','connected':_0x1086a8(0x21b),'failed':_0x1086a8(0x212),'retrying':_0x1086a8(0x220)},'connectionError':{'unauthorized':_0x1086a8(0x20c),'sessionOccupied':_0x1086a8(0x213),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x1086a8(0x201)]=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x558251=_0x3185;function _0x3185(_0x39ef55,_0x405740){const _0x29e3c8=_0x29e3();return _0x3185=function(_0x318511,_0x358da1){_0x318511=_0x318511-0xa9;let _0x269b0a=_0x29e3c8[_0x318511];return _0x269b0a;},_0x3185(_0x39ef55,_0x405740);}(function(_0x277e69,_0x57cb84){const _0x3c4318=_0x3185,_0x138db3=_0x277e69();while(!![]){try{const _0x25e4c0=parseInt(_0x3c4318(0xbb))/0x1*(parseInt(_0x3c4318(0xa9))/0x2)+-parseInt(_0x3c4318(0xc2))/0x3+parseInt(_0x3c4318(0xd2))/0x4+-parseInt(_0x3c4318(0xce))/0x5+parseInt(_0x3c4318(0xc3))/0x6*(parseInt(_0x3c4318(0xcb))/0x7)+-parseInt(_0x3c4318(0xb1))/0x8*(-parseInt(_0x3c4318(0xb3))/0x9)+parseInt(_0x3c4318(0xd5))/0xa;if(_0x25e4c0===_0x57cb84)break;else _0x138db3['push'](_0x138db3['shift']());}catch(_0x57a29b){_0x138db3['push'](_0x138db3['shift']());}}}(_0x29e3,0x8ef71));function _0x29e3(){const _0xae211f=['MCP:\x20最大再試行回数を超過','5896330ymKvgb','314SMlLnG','クリックしてMCPに接続','MCP\x20未接続','APIキーとは?','セッションID','APIキーを入力してください','以下のJSON設定をコピー','設定が正常に保存されました','12664UkzPAr','無効なAPIキーです。キーが正しいか確認してください','351BdJjEx','MCPを設定してAIでスプレッドシートを操作','exports','セキュアな接続のために認証を有効にする','セッションIDが現在使用中です。後でもう一度お試しください','認証を有効にする','最大再試行回数','MCPクライアントを再起動して設定を適用','1369dcvvMI','認証に失敗しました。APIキーを確認してください','MCP:\x20認証されていません','保存中...','設定パラメータ:','MCP:\x20ネットワークエラー','最大再試行回数を超過しました。後でもう一度お試しください','1122204ugesKK','102lYgoSd','MCPクライアント設定','MCP\x20再試行中...','APIキーは必須です','接続失敗','設定手順:','未接続','Univer\x20AIコンソール','202034jsyXfV','設定の変更は直ちに有効になります','クリックしてMCPを設定','3699915Icdsii','MCP:\x20セッションIDが使用中','APIキーはローカルストレージに安全に保存されます','MCPクライアントの設定に次の設定を追加してください:','1370716bqKtjm','MCP\x20接続済み'];_0x29e3=function(){return _0xae211f;};return _0x29e3();}const e={'mcpStatus':{'disconnected':_0x558251(0xab),'connecting':'MCP\x20接続中...','connected':_0x558251(0xd3),'failed':'MCP\x20接続失敗','retrying':_0x558251(0xc5),'unknown':'MCP\x20不明な状態','unauthorized':_0x558251(0xbd),'sessionOccupied':_0x558251(0xcf),'networkError':_0x558251(0xc0),'maxRetriesExceeded':_0x558251(0xd4),'clickToConnect':_0x558251(0xaa),'clickToConfigure':_0x558251(0xcd)},'mcpConfig':{'title':'MCP設定','description':_0x558251(0xb4),'apiKey':'APIキー','apiKeyPlaceholder':_0x558251(0xae),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x558251(0xb8),'enableAuthHint':_0x558251(0xb6),'connectionInfo':_0x558251(0xc4),'mcpClientConfig':'MCPクライアント設定','configInstructions':_0x558251(0xd1),'configStepTitle':_0x558251(0xc8),'configStep1':_0x558251(0xaf),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x558251(0xba),'sessionId':_0x558251(0xad),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x558251(0xbf),'maxRetries':_0x558251(0xb9),'save':'設定を保存','saving':_0x558251(0xbe),'note1':_0x558251(0xcc),'note2':_0x558251(0xd0),'configSaved':_0x558251(0xb0),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x558251(0xac),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x558251(0xca),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x558251(0xc6),'apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':'無効な設定','invalidApiKey':_0x558251(0xb2)},'connectionStatus':{'disconnected':_0x558251(0xc9),'connecting':'接続中...','connected':'接続済み','failed':_0x558251(0xc7),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x558251(0xbc),'sessionOccupied':_0x558251(0xb7),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x558251(0xc1)}}};module[_0x558251(0xb5)]=e;
|