@univerjs-pro/mcp-ui 0.10.10-nightly.202510170942 → 0.10.10-nightly.202510180327
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/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/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/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/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 +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x5d76ec=_0x19f9;(function(_0x465748,_0x303e76){var _0x5c6980=_0x19f9,_0x3c0fb8=_0x465748();while(!![]){try{var _0x1a449c=parseInt(_0x5c6980(0x2ca))/0x1+parseInt(_0x5c6980(0x256))/0x2+-parseInt(_0x5c6980(0x258))/0x3+parseInt(_0x5c6980(0x252))/0x4*(-parseInt(_0x5c6980(0x286))/0x5)+parseInt(_0x5c6980(0x2b9))/0x6+-parseInt(_0x5c6980(0x1a8))/0x7*(-parseInt(_0x5c6980(0x24b))/0x8)+-parseInt(_0x5c6980(0x1da))/0x9*(-parseInt(_0x5c6980(0x2bc))/0xa);if(_0x1a449c===_0x303e76)break;else _0x3c0fb8['push'](_0x3c0fb8['shift']());}catch(_0x38c6b0){_0x3c0fb8['push'](_0x3c0fb8['shift']());}}}(_0x35b4,0x1f84e));var ue=Object[_0x5d76ec(0x171)],le=(_0x190b9a,_0x7cd48f,_0x36d3ed)=>_0x7cd48f in _0x190b9a?ue(_0x190b9a,_0x7cd48f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d3ed}):_0x190b9a[_0x7cd48f]=_0x36d3ed,I=(_0x95a799,_0x1d60f7,_0x231d47)=>le(_0x95a799,typeof _0x1d60f7!=_0x5d76ec(0x215)?_0x1d60f7+'':_0x1d60f7,_0x231d47);Object['defineProperty'](exports,Symbol[_0x5d76ec(0x1b4)],{'value':_0x5d76ec(0x1e1)});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');var g=function(){return g=Object['assign']||function(_0x2cba07){var _0x199853=_0x19f9;for(var _0x6e34b7,_0x3b28a7=0x1,_0x86ba3f=arguments[_0x199853(0x2b6)];_0x3b28a7<_0x86ba3f;_0x3b28a7++){_0x6e34b7=arguments[_0x3b28a7];for(var _0x194d80 in _0x6e34b7)Object['prototype'][_0x199853(0x262)][_0x199853(0x1cc)](_0x6e34b7,_0x194d80)&&(_0x2cba07[_0x194d80]=_0x6e34b7[_0x194d80]);}return _0x2cba07;},g['apply'](this,arguments);},ve=function(_0x11b7c5,_0x128738){var _0x1f3771=_0x5d76ec,_0x3934cc={};for(var _0x4ff055 in _0x11b7c5)Object[_0x1f3771(0x238)][_0x1f3771(0x262)]['call'](_0x11b7c5,_0x4ff055)&&_0x128738[_0x1f3771(0x2bd)](_0x4ff055)<0x0&&(_0x3934cc[_0x4ff055]=_0x11b7c5[_0x4ff055]);if(_0x11b7c5!=null&&typeof Object[_0x1f3771(0x177)]=='function'){for(var _0x4c383c=0x0,_0x4ff055=Object['getOwnPropertySymbols'](_0x11b7c5);_0x4c383c<_0x4ff055[_0x1f3771(0x2b6)];_0x4c383c++)_0x128738[_0x1f3771(0x2bd)](_0x4ff055[_0x4c383c])<0x0&&Object[_0x1f3771(0x238)][_0x1f3771(0x1d9)][_0x1f3771(0x1cc)](_0x11b7c5,_0x4ff055[_0x4c383c])&&(_0x3934cc[_0x4ff055[_0x4c383c]]=_0x11b7c5[_0x4ff055[_0x4c383c]]);}return _0x3934cc;},_=d[_0x5d76ec(0x250)](function(_0xf4ad50,_0xf851cf){var _0x5a348d=_0x5d76ec,_0x101e0e=_0xf4ad50[_0x5a348d(0x154)],_0x4fed40=_0xf4ad50['id'],_0x19cf1f=_0xf4ad50[_0x5a348d(0x190)],_0x4a0c89=_0xf4ad50[_0x5a348d(0x28f)],_0x35a981=ve(_0xf4ad50,[_0x5a348d(0x154),'id',_0x5a348d(0x190),_0x5a348d(0x28f)]),_0x313205=_0x5a348d(0x223)[_0x5a348d(0x284)](_0x4fed40,'\x20')['concat'](_0x19cf1f||'')[_0x5a348d(0x212)](),_0xb33238=d[_0x5a348d(0x159)]('_'[_0x5a348d(0x284)](ge()));return H(_0x101e0e,''[_0x5a348d(0x284)](_0x4fed40),{'defIds':_0x101e0e[_0x5a348d(0x268)],'idSuffix':_0xb33238[_0x5a348d(0x2cc)]},g({'ref':_0xf851cf,'className':_0x313205},_0x35a981),_0x4a0c89);});function H(_0x4c87ab,_0x1d921f,_0xfba881,_0xe54125,_0x966142){var _0x1005b5=_0x5d76ec;return d[_0x1005b5(0x21f)](_0x4c87ab[_0x1005b5(0x224)],g(g({'key':_0x1d921f},de(_0x4c87ab,_0xfba881,_0x966142)),_0xe54125),(Ce(_0x4c87ab,_0xfba881)[_0x1005b5(0x157)]||[])['map'](function(_0x117efd,_0x59c497){var _0x2db21c=_0x1005b5;return H(_0x117efd,''[_0x2db21c(0x284)](_0x1d921f,'-')[_0x2db21c(0x284)](_0x4c87ab[_0x2db21c(0x224)],'-')['concat'](_0x59c497),_0xfba881,void 0x0,_0x966142);}));}function de(_0x5eb9c2,_0x155529,_0x2945b6){var _0x2b6e64=_0x5d76ec,_0x31831d=g({},_0x5eb9c2[_0x2b6e64(0x203)]);_0x2945b6!=null&&_0x2945b6['colorChannel1']&&_0x31831d[_0x2b6e64(0x1aa)]===_0x2b6e64(0x213)&&(_0x31831d[_0x2b6e64(0x1aa)]=_0x2945b6[_0x2b6e64(0x213)]),_0x5eb9c2[_0x2b6e64(0x224)]===_0x2b6e64(0x2b4)&&_0x31831d['id']&&(_0x31831d['id']=_0x31831d['id']+_0x155529[_0x2b6e64(0x170)]),Object[_0x2b6e64(0x1c9)](_0x31831d)[_0x2b6e64(0x15a)](function(_0xe53895){var _0x381895=_0x2b6e64,_0x3d83c1=_0xe53895[0x0],_0x16a589=_0xe53895[0x1];_0x3d83c1===_0x381895(0x2b4)&&typeof _0x16a589==_0x381895(0x192)&&(_0x31831d[_0x3d83c1]=_0x16a589[_0x381895(0x210)](/url\(#(.*)\)/,_0x381895(0x278)[_0x381895(0x284)](_0x155529[_0x381895(0x170)],')')));});var _0x8f97da=_0x155529[_0x2b6e64(0x268)];return!_0x8f97da||_0x8f97da['length']===0x0||(_0x5eb9c2['tag']==='use'&&_0x31831d[_0x2b6e64(0x185)]&&(_0x31831d['xlink:href']=_0x31831d['xlink:href']+_0x155529[_0x2b6e64(0x170)]),Object[_0x2b6e64(0x1c9)](_0x31831d)['forEach'](function(_0x5ace28){var _0x3f3343=_0x2b6e64,_0x4b3586=_0x5ace28[0x0],_0x1d1d77=_0x5ace28[0x1];typeof _0x1d1d77==_0x3f3343(0x192)&&(_0x31831d[_0x4b3586]=_0x1d1d77[_0x3f3343(0x210)](/url\(#(.*)\)/,_0x3f3343(0x278)[_0x3f3343(0x284)](_0x155529['idSuffix'],')')));})),_0x31831d;}function Ce(_0x39ae6a,_0x3f7426){var _0x30d9bb=_0x5d76ec,_0x33be9f,_0x19287f=_0x3f7426[_0x30d9bb(0x268)];return!_0x19287f||_0x19287f[_0x30d9bb(0x2b6)]===0x0?_0x39ae6a:_0x39ae6a[_0x30d9bb(0x224)]===_0x30d9bb(0x161)&&(!((_0x33be9f=_0x39ae6a[_0x30d9bb(0x157)])===null||_0x33be9f===void 0x0)&&_0x33be9f[_0x30d9bb(0x2b6)])?g(g({},_0x39ae6a),{'children':_0x39ae6a[_0x30d9bb(0x157)][_0x30d9bb(0x14e)](function(_0x417ccf){var _0x1fd1d7=_0x30d9bb;return typeof _0x417ccf[_0x1fd1d7(0x203)]['id']==_0x1fd1d7(0x192)&&_0x19287f&&_0x19287f[_0x1fd1d7(0x1b7)](_0x417ccf[_0x1fd1d7(0x203)]['id'])?g(g({},_0x417ccf),{'attrs':g(g({},_0x417ccf[_0x1fd1d7(0x203)]),{'id':_0x417ccf[_0x1fd1d7(0x203)]['id']+_0x3f7426[_0x1fd1d7(0x170)]})}):_0x417ccf;})}):_0x39ae6a;}function ge(){var _0x24f451=_0x5d76ec;return Math[_0x24f451(0x1f9)]()[_0x24f451(0x16e)](0x24)['substring'](0x2,0x8);}_[_0x5d76ec(0x2d0)]='UniverIcon';var fe={'tag':'svg','attrs':{'xmlns':_0x5d76ec(0x295),'fill':_0x5d76ec(0x180),'viewBox':_0x5d76ec(0x2df),'width':_0x5d76ec(0x29e),'height':_0x5d76ec(0x29e)},'children':[{'tag':'path','attrs':{'fill':'currentColor','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':'evenodd','clipRule':_0x5d76ec(0x1f0)}}]},B=d['forwardRef'](function(_0x57b49e,_0x5d4cf7){var _0x403cac=_0x5d76ec;return d['createElement'](_,Object[_0x403cac(0x1ec)]({},_0x57b49e,{'id':_0x403cac(0x257),'ref':_0x5d4cf7,'icon':fe}));});B[_0x5d76ec(0x2d0)]=_0x5d76ec(0x27b);var pe={'tag':'svg','attrs':{'xmlns':_0x5d76ec(0x295),'fill':'none','viewBox':_0x5d76ec(0x22a),'width':'1em','height':_0x5d76ec(0x29e)},'children':[{'tag':_0x5d76ec(0x287),'attrs':{'stroke':_0x5d76ec(0x1d0),'d':_0x5d76ec(0x197),'strokeLinecap':_0x5d76ec(0x174),'strokeLinejoin':_0x5d76ec(0x174),'strokeWidth':1.33}},{'tag':_0x5d76ec(0x287),'attrs':{'stroke':_0x5d76ec(0x1d0),'d':_0x5d76ec(0x243),'strokeLinecap':'round','strokeLinejoin':_0x5d76ec(0x174),'strokeWidth':1.33}}]},F=d['forwardRef'](function(_0x359ccb,_0x39b8d1){var _0x21a8eb=_0x5d76ec;return d[_0x21a8eb(0x21f)](_,Object['assign']({},_0x359ccb,{'id':_0x21a8eb(0x21d),'ref':_0x39b8d1,'icon':pe}));});F['displayName']=_0x5d76ec(0x1db);var he={'tag':_0x5d76ec(0x2b5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5d76ec(0x180),'viewBox':_0x5d76ec(0x2df),'width':_0x5d76ec(0x29e),'height':'1em'},'children':[{'tag':_0x5d76ec(0x287),'attrs':{'fill':_0x5d76ec(0x1d0),'d':_0x5d76ec(0x18d)}},{'tag':_0x5d76ec(0x287),'attrs':{'fill':'currentColor','d':_0x5d76ec(0x22d)}},{'tag':_0x5d76ec(0x287),'attrs':{'fill':_0x5d76ec(0x1d0),'d':_0x5d76ec(0x221),'fillRule':_0x5d76ec(0x1f0),'clipRule':_0x5d76ec(0x1f0)}}]},Y=d['forwardRef'](function(_0x14a7ce,_0x4a5a9e){var _0x59d7f4=_0x5d76ec;return d['createElement'](_,Object[_0x59d7f4(0x1ec)]({},_0x14a7ce,{'id':_0x59d7f4(0x23b),'ref':_0x4a5a9e,'icon':he}));});Y[_0x5d76ec(0x2d0)]=_0x5d76ec(0x15e);var me={'tag':_0x5d76ec(0x2b5),'attrs':{'xmlns':_0x5d76ec(0x295),'fill':_0x5d76ec(0x180),'viewBox':_0x5d76ec(0x2df),'width':_0x5d76ec(0x29e),'height':_0x5d76ec(0x29e)},'children':[{'tag':'g','attrs':{'clipPath':_0x5d76ec(0x2d3)},'children':[{'tag':_0x5d76ec(0x287),'attrs':{'stroke':'currentColor','d':_0x5d76ec(0x17f),'strokeLinecap':'round','strokeLinejoin':_0x5d76ec(0x174),'strokeWidth':1.2}}]},{'tag':_0x5d76ec(0x161),'attrs':{},'children':[{'tag':_0x5d76ec(0x1d1),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5d76ec(0x287),'attrs':{'fill':'white','d':_0x5d76ec(0x1c4)}}]}]}],'defIds':[_0x5d76ec(0x1d8)]},q=d[_0x5d76ec(0x250)](function(_0x9d8ebc,_0x36838d){var _0x73abdf=_0x5d76ec;return d[_0x73abdf(0x21f)](_,Object[_0x73abdf(0x1ec)]({},_0x9d8ebc,{'id':_0x73abdf(0x151),'ref':_0x36838d,'icon':me}));});q[_0x5d76ec(0x2d0)]=_0x5d76ec(0x276);var xe={'tag':_0x5d76ec(0x2b5),'attrs':{'xmlns':_0x5d76ec(0x295),'fill':'none','viewBox':_0x5d76ec(0x202),'width':_0x5d76ec(0x29e),'height':_0x5d76ec(0x29e)},'children':[{'tag':'g','attrs':{'clipPath':_0x5d76ec(0x209)},'children':[{'tag':_0x5d76ec(0x287),'attrs':{'stroke':_0x5d76ec(0x1d0),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x5d76ec(0x174),'strokeLinejoin':_0x5d76ec(0x174),'strokeWidth':1.2}}]},{'tag':_0x5d76ec(0x161),'attrs':{},'children':[{'tag':_0x5d76ec(0x1d1),'attrs':{'id':_0x5d76ec(0x207)},'children':[{'tag':'path','attrs':{'fill':_0x5d76ec(0x1a9),'d':_0x5d76ec(0x1c4),'transform':'translate(.97)'}}]}]}],'defIds':[_0x5d76ec(0x207)]},V=d[_0x5d76ec(0x250)](function(_0x30f222,_0x4d18dd){var _0x5960b=_0x5d76ec;return d[_0x5960b(0x21f)](_,Object[_0x5960b(0x1ec)]({},_0x30f222,{'id':_0x5960b(0x17e),'ref':_0x4d18dd,'icon':xe}));});V[_0x5d76ec(0x2d0)]=_0x5d76ec(0x1ce);function W(_0x4b5216){var _0x234171=_0x5d76ec,_0x572584,_0x5041f2;const {mcpCoreConfig:_0x59134b,onSave:_0xd1d20b,loading:_0x552001=!0x1,config:_0x90f87,connectionStatus$:_0x114c18,connectionError$:_0x84c1e9,currentApiKey$:_0x4a0afb,currentSessionId$:_0x393ca9}=_0x4b5216,_0x59daa5=v[_0x234171(0x1e4)](l['LocaleService']),_0x1e90b4=v[_0x234171(0x245)](_0x114c18,s[_0x234171(0x162)][_0x234171(0x23a)]),_0x5d4e3d=v[_0x234171(0x245)](_0x84c1e9,s[_0x234171(0x1fe)][_0x234171(0x1f3)]),_0x203a49=v[_0x234171(0x245)](_0x393ca9,''),_0x49064a=v[_0x234171(0x245)](_0x4a0afb,''),[_0x387277,_0x10de5b]=d['useState'](_0x49064a||''),_0x15e905=!0x0,_0x23fbad=_0x90f87[_0x234171(0x247)]&&_0x59134b['mcpServerUrl']&&(_0x59134b[_0x234171(0x2c3)][_0x234171(0x1b7)]('univer.plus')||_0x59134b[_0x234171(0x2c3)][_0x234171(0x1b7)](_0x234171(0x23f))),_0x315239=(_0x572584=_0x59134b[_0x234171(0x2c3)])==null?void 0x0:_0x572584[_0x234171(0x1b7)](_0x234171(0x2d7)),_0x5eb0ea=(_0x5041f2=_0x59134b[_0x234171(0x2c3)])==null?void 0x0:_0x5041f2[_0x234171(0x1b7)](_0x234171(0x23f)),_0x26558f=_0x315239?_0x234171(0x2cf):_0x234171(0x29f),_0x64b76a=_0x90f87[_0x234171(0x247)]&&(_0x315239||_0x5eb0ea),[_0x46801c,_0x24d910]=d[_0x234171(0x1cf)](!_0x387277['trim']()),_0x5629fb=(_0x186d31,_0x4014f4)=>{var _0x1da0f9=_0x234171;if(_0x4014f4===s[_0x1da0f9(0x1fe)][_0x1da0f9(0x206)])return _0x1da0f9(0x2bb);switch(_0x186d31){case s[_0x1da0f9(0x162)]['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case s[_0x1da0f9(0x162)][_0x1da0f9(0x21e)]:case s[_0x1da0f9(0x162)][_0x1da0f9(0x251)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x1da0f9(0x162)][_0x1da0f9(0x216)]:return _0x1da0f9(0x2bb);default:return _0x1da0f9(0x15f);}},_0x40f5f4=(_0x6d35e6,_0x27937d)=>{var _0x4f90ce=_0x234171;if(_0x27937d===s[_0x4f90ce(0x1fe)][_0x4f90ce(0x206)])return _0x4f90ce(0x1e6);switch(_0x6d35e6){case s[_0x4f90ce(0x162)][_0x4f90ce(0x1a5)]:return _0x4f90ce(0x29b);case s[_0x4f90ce(0x162)][_0x4f90ce(0x21e)]:case s[_0x4f90ce(0x162)][_0x4f90ce(0x251)]:return _0x4f90ce(0x1ac);case s[_0x4f90ce(0x162)]['FAILED']:return'univer-bg-red-500';default:return _0x4f90ce(0x181);}},_0x4813a9=_0xa9f381=>{var _0x1b76ee=_0x234171;switch(_0xa9f381){case s[_0x1b76ee(0x162)]['CONNECTED']:return _0x59daa5['t']('mcpConfig.connectionStatus.connected');case s[_0x1b76ee(0x162)][_0x1b76ee(0x21e)]:return _0x59daa5['t'](_0x1b76ee(0x232));case s[_0x1b76ee(0x162)]['FAILED']:return _0x59daa5['t'](_0x1b76ee(0x166));case s['MCPConnectionStatus'][_0x1b76ee(0x251)]:return _0x59daa5['t'](_0x1b76ee(0x21b));default:return _0x59daa5['t'](_0x1b76ee(0x19f));}},_0x482a64=_0x3040a9=>{var _0x3ca1d8=_0x234171;switch(_0x3040a9){case s[_0x3ca1d8(0x1fe)][_0x3ca1d8(0x206)]:return _0x59daa5['t'](_0x3ca1d8(0x24c));case s['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x59daa5['t'](_0x3ca1d8(0x25c));case s['MCPConnectionError'][_0x3ca1d8(0x1d5)]:return _0x59daa5['t'](_0x3ca1d8(0x163));case s[_0x3ca1d8(0x1fe)][_0x3ca1d8(0x2e0)]:return _0x59daa5['t'](_0x3ca1d8(0x1a2));default:return'';}},_0x25be3b=d[_0x234171(0x271)](()=>{const _0x420448={..._0x59134b,'apiKey':_0x387277['trim'](),'enableAuth':_0x15e905};_0xd1d20b(_0x420448);},[_0x59134b,_0x387277,_0x15e905,_0xd1d20b]),_0x58219f=_0x387277[_0x234171(0x212)]()['length']>0x0;return t['jsxs'](_0x234171(0x182),{'className':_0x234171(0x280),'children':[t['jsx'](_0x234171(0x182),{'className':_0x234171(0x155),'children':t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x205),'children':[t[_0x234171(0x16f)](_0x234171(0x182),{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':t['jsx'](_0x234171(0x1bd),{'className':'univer-text-white','children':'⚙'})}),t[_0x234171(0x16f)](_0x234171(0x182),{'children':t[_0x234171(0x16f)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x59daa5['t'](_0x234171(0x16a))})})]})}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x1ed),'children':[t[_0x234171(0x16f)](_0x234171(0x182),{'className':_0x234171(0x167)+_0x5629fb(_0x1e90b4,_0x5d4e3d)+_0x234171(0x199),'children':t[_0x234171(0x1c7)]('div',{'className':_0x234171(0x2c0),'children':[t[_0x234171(0x16f)]('div',{'className':_0x234171(0x172)+_0x40f5f4(_0x1e90b4,_0x5d4e3d)+_0x234171(0x2c9)}),t[_0x234171(0x16f)]('span',{'className':_0x234171(0x21a),'children':_0x4813a9(_0x1e90b4)})]})}),_0x5d4e3d!==s['MCPConnectionError'][_0x234171(0x1f3)]&&(_0x1e90b4===s[_0x234171(0x162)]['FAILED']||_0x5d4e3d===s[_0x234171(0x1fe)][_0x234171(0x206)])&&t[_0x234171(0x16f)](_0x234171(0x182),{'className':_0x234171(0x29c),'children':t[_0x234171(0x1c7)](_0x234171(0x182),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[t[_0x234171(0x16f)](_0x234171(0x1bd),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),t[_0x234171(0x16f)]('p',{'className':_0x234171(0x2bf),'children':_0x482a64(_0x5d4e3d)})]})})]}),t['jsx'](_0x234171(0x182),{'className':_0x234171(0x293),'children':t['jsxs'](_0x234171(0x182),{'className':_0x234171(0x1fd),'children':[t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x20b),'children':[t[_0x234171(0x1c7)]('label',{'className':_0x234171(0x1fc),'children':[t['jsx']('span',{'children':'🔑'}),'\x20',_0x59daa5['t'](_0x234171(0x1f4)),t[_0x234171(0x16f)](_0x234171(0x1bd),{'className':_0x234171(0x1d4),'children':'*'}),_0x23fbad&&t[_0x234171(0x16f)]('a',{'href':_0x234171(0x27e),'onClick':()=>_0x24d910(!0x0),'className':_0x234171(0x183),'title':_0x59daa5['t'](_0x234171(0x16c)),'children':t['jsx'](Y,{})})]}),t[_0x234171(0x16f)](S[_0x234171(0x2a7)],{'type':_0x234171(0x22e),'placeholder':_0x59daa5['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x387277,'onChange':_0x10de5b,'disabled':_0x552001,'autoComplete':_0x234171(0x2b1)}),t[_0x234171(0x16f)]('p',{'className':_0x234171(0x1ad),'children':_0x59daa5['t'](_0x234171(0x220))})]}),_0x23fbad&&_0x46801c&&t['jsxs']('div',{'className':_0x234171(0x1f7),'children':[t[_0x234171(0x16f)]('a',{'href':'javascript:void(0)','onClick':()=>_0x24d910(!0x1),'className':_0x234171(0x168),'title':_0x234171(0x255),'children':t[_0x234171(0x16f)](F,{})}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x1f5),'children':[t[_0x234171(0x16f)](_0x234171(0x182),{'className':_0x234171(0x29a),'children':t[_0x234171(0x16f)](_0x234171(0x1bd),{'className':_0x234171(0x24f),'children':'🚀'})}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x20f),'children':[t[_0x234171(0x16f)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x59daa5['t'](_0x234171(0x16c))}),t[_0x234171(0x16f)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x59daa5['t'](_0x234171(0x1a6))}),t[_0x234171(0x16f)]('div',{'className':_0x234171(0x211),'children':_0x64b76a&&t[_0x234171(0x1c7)]('a',{'href':_0x26558f,'target':'_blank','rel':_0x234171(0x2a8),'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','children':[t['jsx'](_0x234171(0x1bd),{'children':'🤖'}),_0x59daa5['t']('mcpConfig.apiApplyInfo.univerAiLabel'),t[_0x234171(0x16f)](_0x234171(0x1bd),{'className':'univer-text-gray-400','children':'↗'})]})}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x1c8),'children':['✨','\x20',_0x59daa5['t'](_0x234171(0x281))]})]})]})]}),_0x90f87[_0x234171(0x247)]&&t['jsxs'](_0x234171(0x182),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[t['jsxs']('h4',{'className':_0x234171(0x19a),'children':[t[_0x234171(0x16f)](_0x234171(0x1bd),{'children':'🔗'}),'\x20',_0x59daa5['t'](_0x234171(0x18c))]}),t[_0x234171(0x1c7)]('div',{'className':_0x234171(0x204),'children':[t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x1bc),'children':[t[_0x234171(0x16f)]('p',{'className':_0x234171(0x186),'children':_0x59daa5['t']('mcpConfig.configInstructions')}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x20b),'children':[t[_0x234171(0x16f)](_0x234171(0x182),{'className':_0x234171(0x17a),'children':_0x59daa5['t'](_0x234171(0x231))}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x2ae),'children':[t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x2c0),'children':[t[_0x234171(0x16f)](_0x234171(0x1bd),{'className':_0x234171(0x289),'children':'1'}),_0x59daa5['t'](_0x234171(0x25d))]}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x2c0),'children':[t[_0x234171(0x16f)](_0x234171(0x1bd),{'className':_0x234171(0x289),'children':'2'}),_0x59daa5['t']('mcpConfig.configStep2')]}),t['jsxs'](_0x234171(0x182),{'className':_0x234171(0x2c0),'children':[t[_0x234171(0x16f)](_0x234171(0x1bd),{'className':_0x234171(0x289),'children':'3'}),_0x59daa5['t'](_0x234171(0x187))]})]})]})]}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x20b),'children':[t[_0x234171(0x16f)](_0x234171(0x182),{'className':_0x234171(0x17a),'children':'MCP\x20Configuration'}),t[_0x234171(0x16f)](_0x234171(0x182),{'className':_0x234171(0x179),'children':t[_0x234171(0x16f)](_0x234171(0x1b5),{'className':_0x234171(0x240),'children':_0x234171(0x1e0)+_0x203a49+_0x234171(0x230)+(_0x387277||_0x234171(0x217))+_0x234171(0x2c2)})})]}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x1bc),'children':[t[_0x234171(0x16f)](_0x234171(0x182),{'className':_0x234171(0x17a),'children':_0x59daa5['t'](_0x234171(0x19d))}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x20b),'children':[t['jsxs'](_0x234171(0x182),{'className':_0x234171(0x164),'children':[t[_0x234171(0x16f)](_0x234171(0x182),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),t[_0x234171(0x1c7)]('div',{'className':_0x234171(0x18e),'children':[t[_0x234171(0x16f)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x234171(0x208)}),t[_0x234171(0x16f)](_0x234171(0x182),{'className':_0x234171(0x1ad),'children':_0x59daa5['t']('mcpConfig.sessionIdDescription')})]})]}),t['jsxs'](_0x234171(0x182),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[t[_0x234171(0x16f)](_0x234171(0x182),{'className':_0x234171(0x253)}),t[_0x234171(0x1c7)](_0x234171(0x182),{'className':'univer-min-w-0\x20univer-flex-1','children':[t[_0x234171(0x16f)](_0x234171(0x182),{'className':_0x234171(0x25b),'children':_0x234171(0x1d2)}),t['jsx'](_0x234171(0x182),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x59daa5['t'](_0x234171(0x184))})]})]})]})]})]})]}),t[_0x234171(0x16f)](S[_0x234171(0x20c)],{'onClick':_0x25be3b,'disabled':!_0x58219f||_0x552001,'className':_0x234171(0x1e3),'children':_0x552001?t[_0x234171(0x1c7)]('span',{'className':_0x234171(0x2c0),'children':[t['jsx'](_0x234171(0x1bd),{'children':'⟲'}),_0x59daa5['t'](_0x234171(0x16b))]}):t[_0x234171(0x1c7)](_0x234171(0x1bd),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t[_0x234171(0x16f)](B,{}),_0x59daa5['t'](_0x234171(0x2ab))]})}),t[_0x234171(0x16f)](_0x234171(0x182),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':t[_0x234171(0x1c7)](_0x234171(0x182),{'className':_0x234171(0x178),'children':[t[_0x234171(0x16f)]('span',{'className':_0x234171(0x2d6),'children':'💡'}),t['jsxs'](_0x234171(0x182),{'className':_0x234171(0x20a),'children':[t['jsx']('div',{'className':'univer-font-medium','children':_0x234171(0x2dd)}),t[_0x234171(0x1c7)](_0x234171(0x182),{'children':['•',_0x59daa5['t'](_0x234171(0x1cb))]}),t[_0x234171(0x1c7)]('div',{'children':['•',_0x59daa5['t']('mcpConfig.note2')]})]})]})})]})})]});}const y='mcp-ui.config',G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object[_0x5d76ec(0x27f)],Pe=(_0x1269f2,_0x9f7292,_0x4e5e12,_0x52042f)=>{var _0x287f6a=_0x5d76ec;for(var _0x3a5e39=_0x52042f>0x1?void 0x0:_0x52042f?Se(_0x9f7292,_0x4e5e12):_0x9f7292,_0x520b32=_0x1269f2[_0x287f6a(0x2b6)]-0x1,_0x43a9e3;_0x520b32>=0x0;_0x520b32--)(_0x43a9e3=_0x1269f2[_0x520b32])&&(_0x3a5e39=_0x43a9e3(_0x3a5e39)||_0x3a5e39);return _0x3a5e39;},f=(_0x4ff7a4,_0x6a9b0a)=>(_0x366ee5,_0x9f8082)=>_0x6a9b0a(_0x366ee5,_0x9f8082,_0x4ff7a4);const D='mcp.apiKey',k=_0x5d76ec(0x2de);exports[_0x5d76ec(0x20e)]=class extends l[_0x5d76ec(0x1ee)]{constructor(_0x30b916,_0x3e3e39,_0x54d62e,_0x212a67,_0x4bc6d7,_0xd9d0ba,_0x130873,_0x18f850,_0x281067,_0xb3d8ce){var _0x47744d=_0x5d76ec;super(),I(this,'_loading$',new N['BehaviorSubject'](!0x1)),I(this,_0x47744d(0x152),new N[(_0x47744d(0x277))]({})),I(this,_0x47744d(0x1e9),new N[(_0x47744d(0x277))]({})),I(this,'_apiKey$',new N[(_0x47744d(0x277))]('')),I(this,_0x47744d(0x2a3),async _0x228404=>{var _0x15b7b3=_0x47744d,_0xc8fe73,_0x17968f;this['_loading$'][_0x15b7b3(0x1d6)](!0x0);try{const _0x347034=await this[_0x15b7b3(0x298)](_0x228404);if(!_0x347034[_0x15b7b3(0x25f)]){this[_0x15b7b3(0x23e)]['show']({'type':S[_0x15b7b3(0x1ae)][_0x15b7b3(0x1f1)],'content':_0x347034[_0x15b7b3(0x254)]||this[_0x15b7b3(0x270)]['t'](_0x15b7b3(0x24a))});return;}_0x228404[_0x15b7b3(0x279)]?await this[_0x15b7b3(0x194)]['setItem'](D,_0x228404[_0x15b7b3(0x279)]['trim']()):await this[_0x15b7b3(0x194)]['removeItem'](D),this['_apiKey$'][_0x15b7b3(0x1d6)](((_0xc8fe73=_0x228404[_0x15b7b3(0x279)])==null?void 0x0:_0xc8fe73[_0x15b7b3(0x212)]())||''),this[_0x15b7b3(0x1eb)]['__setCustomHeaders']({'Authorization':_0x15b7b3(0x25a)+((_0x17968f=_0x228404[_0x15b7b3(0x279)])==null?void 0x0:_0x17968f['trim']())}),this[_0x15b7b3(0x23e)]['show']({'type':S[_0x15b7b3(0x1ae)][_0x15b7b3(0x294)],'content':this[_0x15b7b3(0x270)]['t'](_0x15b7b3(0x2c8))}),setTimeout(()=>{var _0x12232d=_0x15b7b3;this[_0x12232d(0x246)][_0x12232d(0x28a)](k);},0x320);}catch(_0x3dac64){this[_0x15b7b3(0x292)]['error'](_0x15b7b3(0x225),_0x3dac64),this[_0x15b7b3(0x23e)]['show']({'type':S[_0x15b7b3(0x1ae)][_0x15b7b3(0x1f1)],'content':this['_localeService']['t'](_0x15b7b3(0x1d7))});}finally{this[_0x15b7b3(0x233)][_0x15b7b3(0x1d6)](!0x1);}}),(this[_0x47744d(0x2a0)]=_0x30b916,this[_0x47744d(0x2ac)]=_0x3e3e39,this[_0x47744d(0x2ba)]=_0x54d62e,this[_0x47744d(0x194)]=_0x212a67,this[_0x47744d(0x246)]=_0x4bc6d7,this[_0x47744d(0x23e)]=_0xd9d0ba,this[_0x47744d(0x18f)]=_0x130873,this[_0x47744d(0x270)]=_0x18f850,this[_0x47744d(0x292)]=_0x281067,this[_0x47744d(0x1eb)]=_0xb3d8ce,this['_initConfigSync'](),this[_0x47744d(0x21c)](),this['_registerComponent']());}[_0x5d76ec(0x2b8)](){var _0x5566dd=_0x5d76ec;const _0x19b1db=this[_0x5566dd(0x2ba)]['getConfig'](y);_0x19b1db!=null&&_0x19b1db[_0x5566dd(0x247)]&&this[_0x5566dd(0x246)][_0x5566dd(0x14d)]({'id':k,'title':{'title':this['_localeService']['t'](_0x5566dd(0x1f2))},'children':{'label':_0x5566dd(0x1dc)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x230776=_0x5566dd;this[_0x230776(0x246)][_0x230776(0x28a)](k);}});}['getCurrentConfig'](){var _0x4599a4=_0x5d76ec;return this['_mcpCoreConfig$'][_0x4599a4(0x28b)];}[_0x5d76ec(0x18a)](){var _0x4204d6=_0x5d76ec;this['disposeWithMe'](this[_0x4204d6(0x18f)][_0x4204d6(0x2c6)](_0x4204d6(0x1dc),this[_0x4204d6(0x242)]()));}[_0x5d76ec(0x242)](){var _0x495588=_0x5d76ec;return v[_0x495588(0x285)](()=>{var _0x4757f4=_0x495588,_0x54932a,_0x268037,_0x5576d0;return t[_0x4757f4(0x16f)](W,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x4757f4(0x152)][_0x4757f4(0x28b)],'currentApiKey$':this[_0x4757f4(0x19c)],'onSave':this[_0x4757f4(0x2a3)],'loading':this['_loading$'][_0x4757f4(0x28b)],'connectionStatus$':(_0x54932a=this[_0x4757f4(0x1eb)])==null?void 0x0:_0x54932a[_0x4757f4(0x1ba)],'connectionError$':(_0x268037=this[_0x4757f4(0x1eb)])==null?void 0x0:_0x268037['connectionError$'],'currentSessionId$':(_0x5576d0=this['_mcpConnectionController'])==null?void 0x0:_0x5576d0[_0x4757f4(0x193)]});},this[_0x495588(0x2a0)]);}[_0x5d76ec(0x2af)](){var _0x3b2d8e=_0x5d76ec;this[_0x3b2d8e(0x29d)](this[_0x3b2d8e(0x2ba)][_0x3b2d8e(0x20d)](s[_0x3b2d8e(0x2cb)])[_0x3b2d8e(0x214)](_0x3347d4=>{var _0x594ef5=_0x3b2d8e;this[_0x594ef5(0x152)][_0x594ef5(0x1d6)](_0x3347d4||{});}));const _0x3fd18a=this['_configService'][_0x3b2d8e(0x2c4)](s[_0x3b2d8e(0x2cb)]);this[_0x3b2d8e(0x152)][_0x3b2d8e(0x1d6)](_0x3fd18a||{}),this[_0x3b2d8e(0x29d)](this['_configService'][_0x3b2d8e(0x20d)](y)[_0x3b2d8e(0x214)](_0x431842=>{var _0x23728d=_0x3b2d8e;this[_0x23728d(0x1e9)][_0x23728d(0x1d6)](_0x431842||{});}));const _0x14ae74=this['_configService']['getConfig'](y);this[_0x3b2d8e(0x1e9)]['next'](_0x14ae74||{});}async[_0x5d76ec(0x21c)](){var _0x2e65c1=_0x5d76ec;const _0x7d3749=this[_0x2e65c1(0x2ba)][_0x2e65c1(0x2c4)](y);if(!(_0x7d3749!=null&&_0x7d3749[_0x2e65c1(0x247)]))return;const _0x422ca8=await this[_0x2e65c1(0x194)][_0x2e65c1(0x200)](D);_0x422ca8&&(this[_0x2e65c1(0x1eb)]['__setCustomHeaders']({'Authorization':_0x2e65c1(0x25a)+_0x422ca8}),this[_0x2e65c1(0x19c)][_0x2e65c1(0x1d6)](_0x422ca8));}async[_0x5d76ec(0x298)](_0x505e4e){var _0x49bc1c=_0x5d76ec;if(!_0x505e4e[_0x49bc1c(0x279)]||_0x505e4e['apiKey'][_0x49bc1c(0x212)]()[_0x49bc1c(0x2b6)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x49bc1c(0x270)]['t'](_0x49bc1c(0x2a9))};if(_0x505e4e[_0x49bc1c(0x279)][_0x49bc1c(0x212)]()[_0x49bc1c(0x2b6)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x49bc1c(0x270)]['t'](_0x49bc1c(0x189))};try{const _0x28a7d3=await this[_0x49bc1c(0x2a0)]['get'](s[_0x49bc1c(0x173)])[_0x49bc1c(0x27a)](_0x505e4e[_0x49bc1c(0x279)]['trim']());return _0x28a7d3['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x28a7d3[_0x49bc1c(0x2c1)]||this[_0x49bc1c(0x270)]['t'](_0x49bc1c(0x153))};}catch(_0x1b7e21){return console[_0x49bc1c(0x2d8)](_0x49bc1c(0x2b0),_0x1b7e21),{'isValid':!0x0};}}},exports['MCPConfigUIController']=Pe([f(0x0,l[_0x5d76ec(0x1b6)](l['Injector'])),f(0x1,v[_0x5d76ec(0x1c6)]),f(0x2,l[_0x5d76ec(0x272)]),f(0x3,l[_0x5d76ec(0x19b)]),f(0x4,v[_0x5d76ec(0x28d)]),f(0x5,v[_0x5d76ec(0x2a2)]),f(0x6,l[_0x5d76ec(0x1b6)](v[_0x5d76ec(0x2d4)])),f(0x7,l[_0x5d76ec(0x1b6)](l[_0x5d76ec(0x274)])),f(0x8,l[_0x5d76ec(0x1fb)]),f(0x9,l[_0x5d76ec(0x1b6)](s[_0x5d76ec(0x173)]))],exports[_0x5d76ec(0x20e)]);const j={'id':_0x5d76ec(0x23d),'type':l['CommandType']['COMMAND'],'handler':async(_0x3ad591,_0x2fa7a7)=>(_0x3ad591['get'](exports[_0x5d76ec(0x20e)])[_0x5d76ec(0x2b8)](),!0x0)};function Z(_0x22eecf,_0x15ae56){var _0x5b91e5=_0x5d76ec;switch(_0x22eecf){case s[_0x5b91e5(0x162)][_0x5b91e5(0x23a)]:return _0x5b91e5(0x1c3);case s['MCPConnectionStatus'][_0x5b91e5(0x21e)]:return _0x5b91e5(0x1c0);case s[_0x5b91e5(0x162)][_0x5b91e5(0x1a5)]:return _0x5b91e5(0x261);case s[_0x5b91e5(0x162)][_0x5b91e5(0x216)]:switch(_0x15ae56){case s[_0x5b91e5(0x1fe)][_0x5b91e5(0x206)]:return _0x5b91e5(0x1ea);case s['MCPConnectionError'][_0x5b91e5(0x1ab)]:return _0x5b91e5(0x263);case s[_0x5b91e5(0x1fe)][_0x5b91e5(0x1d5)]:return _0x5b91e5(0x1e8);case s[_0x5b91e5(0x1fe)][_0x5b91e5(0x2e0)]:return _0x5b91e5(0x234);default:return'mcpStatus.failed';}case s['MCPConnectionStatus'][_0x5b91e5(0x251)]:return _0x5b91e5(0x28c);default:return'mcpStatus.unknown';}}function ye(_0x404675,_0x1c8e61,_0x55d0bc,_0x224227=!0x0){var _0xd202ed=_0x5d76ec;const _0x84b007=Z(_0x404675,_0x1c8e61),_0x4e0eed=_0x55d0bc['t'](_0x84b007);return _0x224227?_0x404675===s[_0xd202ed(0x162)][_0xd202ed(0x23a)]&&_0x1c8e61===s[_0xd202ed(0x1fe)][_0xd202ed(0x206)]?_0x4e0eed+_0xd202ed(0x2da)+_0x55d0bc['t']('mcpStatus.clickToConfigure'):_0x404675===s[_0xd202ed(0x162)][_0xd202ed(0x1a5)]?''+_0x4e0eed:_0x404675===s[_0xd202ed(0x162)]['DISCONNECTED']||_0x404675===s[_0xd202ed(0x162)][_0xd202ed(0x216)]?_0x4e0eed+_0xd202ed(0x2da)+_0x55d0bc['t'](_0xd202ed(0x150)):_0x4e0eed:_0x4e0eed;}function _0x19f9(_0x3dc509,_0x512a0d){var _0x35b461=_0x35b4();return _0x19f9=function(_0x19f94e,_0x25bcaa){_0x19f94e=_0x19f94e-0x14d;var _0x50b8d0=_0x35b461[_0x19f94e];return _0x50b8d0;},_0x19f9(_0x3dc509,_0x512a0d);}function Ie(_0x41dfd6){var _0x7a81ce=_0x5d76ec;switch(_0x41dfd6){case s[_0x7a81ce(0x162)][_0x7a81ce(0x1a5)]:return _0x7a81ce(0x2a6);case s[_0x7a81ce(0x162)][_0x7a81ce(0x21e)]:case s['MCPConnectionStatus'][_0x7a81ce(0x251)]:return _0x7a81ce(0x1b1);case s[_0x7a81ce(0x162)][_0x7a81ce(0x216)]:case s[_0x7a81ce(0x162)][_0x7a81ce(0x23a)]:return _0x7a81ce(0x1d4);default:return'univer-text-gray-500';}}function X(_0x239e20){var _0x46f255=_0x5d76ec;const {status$:_0x59cad3,error$:_0x452a3f,onConfigure:_0x3bd69a,showClickable:_0x53c475=!0x0}=_0x239e20,_0x22839=v['useObservable'](_0x59cad3,s[_0x46f255(0x162)][_0x46f255(0x23a)]),_0x399fa2=v[_0x46f255(0x245)](_0x452a3f,s['MCPConnectionError'][_0x46f255(0x1f3)]),_0x24530b=v[_0x46f255(0x1e4)](l['LocaleService']),_0x4b3c7c=_0x22839===s['MCPConnectionStatus'][_0x46f255(0x1a5)];_0x22839===s[_0x46f255(0x162)][_0x46f255(0x21e)]||s[_0x46f255(0x162)]['RETRYING'];const _0x59d86a=_0x24530b['t'](Z(_0x22839,_0x399fa2)),_0x24afe3=ye(_0x22839,_0x399fa2,_0x24530b,_0x53c475),_0x482976=Ie(_0x22839),_0x4244c1=_0x4b3c7c?t[_0x46f255(0x16f)](V,{}):t[_0x46f255(0x16f)](q,{}),_0x215776=d[_0x46f255(0x271)](()=>{_0x53c475&&_0x3bd69a&&_0x3bd69a();},[_0x53c475,_0x3bd69a]);function _0x4b57ad(){var _0x35b56d=_0x46f255;return t[_0x35b56d(0x1c7)]('div',{'className':S[_0x35b56d(0x26b)](_0x35b56d(0x264),_0x53c475&&_0x3bd69a&&_0x35b56d(0x15d)),'onClick':_0x53c475&&_0x3bd69a?_0x215776:void 0x0,'children':[t['jsx'](_0x35b56d(0x182),{'className':S['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x482976),'children':_0x4244c1}),t[_0x35b56d(0x16f)](_0x35b56d(0x182),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x59d86a})]});}return t[_0x46f255(0x16f)](S[_0x46f255(0x23c)],{'title':_0x24afe3,'placement':_0x46f255(0x2b7),'children':_0x4b57ad()});}var _e=Object[_0x5d76ec(0x27f)],Me=(_0x515ef9,_0x56e644,_0x4dac2a,_0x2f778b)=>{for(var _0x15f48b=_0x2f778b>0x1?void 0x0:_0x2f778b?_e(_0x56e644,_0x4dac2a):_0x56e644,_0x2a7b5c=_0x515ef9['length']-0x1,_0x6efc03;_0x2a7b5c>=0x0;_0x2a7b5c--)(_0x6efc03=_0x515ef9[_0x2a7b5c])&&(_0x15f48b=_0x6efc03(_0x15f48b)||_0x15f48b);return _0x15f48b;},b=(_0x58d856,_0x5bb64f)=>(_0x325117,_0x2486c8)=>_0x5bb64f(_0x325117,_0x2486c8,_0x58d856);exports[_0x5d76ec(0x2d5)]=class extends l[_0x5d76ec(0x1ee)]{constructor(_0x14cc0d,_0x401a3d,_0x5448ba,_0x50088a){var _0x18561e=_0x5d76ec;super(),this[_0x18561e(0x2a0)]=_0x14cc0d,this[_0x18561e(0x1c2)]=_0x401a3d,this[_0x18561e(0x2ac)]=_0x5448ba,this['_configService']=_0x50088a,this[_0x18561e(0x1a1)](),this[_0x18561e(0x26a)]();}[_0x5d76ec(0x1a1)](){var _0x3fe426=_0x5d76ec;const _0x3d885f=this[_0x3fe426(0x2ba)][_0x3fe426(0x2c4)](y);_0x3d885f!=null&&_0x3d885f[_0x3fe426(0x247)]&&(this[_0x3fe426(0x1c2)][_0x3fe426(0x1a4)]=!0x1);}[_0x5d76ec(0x26a)](){var _0x4297e7=_0x5d76ec;const _0x798295=this[_0x4297e7(0x2ba)]['getConfig'](y);(_0x798295==null?void 0x0:_0x798295[_0x4297e7(0x1ef)])!==!0x1&&this['disposeWithMe'](this[_0x4297e7(0x2ac)][_0x4297e7(0x265)](v[_0x4297e7(0x1a7)][_0x4297e7(0x1b0)],()=>{var _0x12dc0f=_0x4297e7,_0x6e9aea;return v[_0x12dc0f(0x285)](Ne({'status$':this[_0x12dc0f(0x1c2)][_0x12dc0f(0x1ba)],'error$':this[_0x12dc0f(0x1c2)][_0x12dc0f(0x156)],'onConfigure':()=>this[_0x12dc0f(0x291)](),'showClickable':(_0x6e9aea=_0x798295==null?void 0x0:_0x798295['showDeveloperTools'])!=null?_0x6e9aea:!0x1}),this[_0x12dc0f(0x2a0)]);}));}[_0x5d76ec(0x291)](){var _0x565912=_0x5d76ec;this['_injector']['get'](exports[_0x565912(0x20e)])[_0x565912(0x2b8)]();}},exports[_0x5d76ec(0x2d5)]=Me([b(0x0,l[_0x5d76ec(0x1b6)](l[_0x5d76ec(0x24d)])),b(0x1,l[_0x5d76ec(0x1b6)](s[_0x5d76ec(0x173)])),b(0x2,v[_0x5d76ec(0x1c6)]),b(0x3,l[_0x5d76ec(0x272)])],exports[_0x5d76ec(0x2d5)]);function Ne(_0x5a7fd2){const {status$:_0x42c15b,error$:_0x643c8b,onConfigure:_0x4b1e94,showClickable:_0x5bcb29}=_0x5a7fd2;return function(){var _0x5b21e6=_0x19f9;return t[_0x5b21e6(0x16f)](X,{'status$':_0x42c15b,'error$':_0x643c8b,'onConfigure':_0x4b1e94,'showClickable':_0x5bcb29});};}function be(_0x12320f){var _0x3c963b=_0x5d76ec;return{'id':j['id'],'type':v[_0x3c963b(0x176)][_0x3c963b(0x165)],'icon':_0x3c963b(0x266),'title':_0x3c963b(0x1f2),'tooltip':_0x3c963b(0x1f2)};}const je={[v[_0x5d76ec(0x16d)]['OTHERS']]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};function _0x35b4(){var _0x5cfd1c=['MCPStatusDisplay','mcpStatus.connecting','Connected','_connectionController','mcpStatus.disconnected','M0\x200H16V16H0z','_initializeCommands','IUIPartsService','jsxs','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','entries','网络连接错误,请检查您的网络连接','mcpConfig.note1','call','将配置添加到您的\x20MCP\x20客户端设置文件中','OnLineIcon','useState','currentColor','clipPath','Authorization:','Max\x20Retries','univer-text-red-500','NETWORK_ERROR','next','mcpConfig.configError','off-line-icon_clip0_910_343','propertyIsEnumerable','126CACGNa','CloseSmallSingle','MCPConfigPanel','Configuration\x20Parameters:','setConfig','最大重试次数','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','Module','Session\x20ID','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','useDependency','MCP\x20Unknown\x20Status','univer-bg-red-500','重连中...','mcpStatus.networkError','_config$','mcpStatus.unauthorized','_mcpConnectionController','assign','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Disposable','showStatus','evenodd','Error','mcpConfig.title','NONE','mcpConfig.apiKey','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20连接中...','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','registerCommand','random','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','ILogService','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-space-y-5','MCPConnectionError','未连接','getItem','WebSocketService','0\x200\x2017\x2016','attrs','univer-space-y-4','univer-flex\x20univer-items-center\x20univer-gap-3','UNAUTHORIZED','on-line-icon_clip0_910_349','univer_session_id:','url(#on-line-icon_clip0_910_349)','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-space-y-2','Button','subscribeConfigValue$','MCPConfigUIController','univer-flex-1','replace','univer-flex\x20univer-flex-wrap\x20univer-gap-2','trim','colorChannel1','subscribe','symbol','FAILED','<API_KEY>','MCP_UI_PLUGIN','onStarting','univer-text-sm\x20univer-font-medium','mcpConfig.connectionStatus.retrying','_loadStoredApiKey','close-small-single','CONNECTING','createElement','mcpConfig.apiKeyHint','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','启用身份验证','univerjs-icon\x20univerjs-icon-','tag','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','get','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','0\x200\x2017\x2017','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','连接失败','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','text','has','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','mcpConfig.configStepTitle','mcpConfig.connectionStatus.connecting','_loading$','mcpStatus.maxRetriesExceeded','add','已连接','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','prototype','Save\x20Configuration','DISCONNECTED','help-single','Tooltip','mcp-ui.command.openConfigPanel','_messageService','univer.ai','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','几秒钟内获取您的\x20API\x20密钥','_createConfigPanelComponent','M5.21243\x2012.287L11.8791\x205.62036','UniverMCPUIPlugin','useObservable','_dialogService','showDeveloperTools','Get\x20your\x20API\x20key\x20in\x20seconds','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.validation.invalidConfig','352HJNJaK','mcpConfig.connectionError.unauthorized','Injector','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-text-blue-600','forwardRef','RETRYING','1228YnzHOZ','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','errorMessage','Close','191532kFljCc','check-mark-icon','767652zocYbg','Failed\x20to\x20save\x20configuration','Bearer\x20','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.connectionError.sessionOccupied','mcpConfig.configStep1','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','isValid','DependentOn','mcpStatus.connected','hasOwnProperty','mcpStatus.sessionOccupied','univer-flex\x20univer-items-center','registerComponent','MenuIcon','MCP\x20Client\x20Configuration','defIds','Connection\x20Failed','_initStatusComponent','clsx','超出最大重试次数,请稍后再试','MCP\x20重连中...','MCP\x20Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','_localeService','useCallback','IConfigService','API\x20key\x20with\x20Bearer\x20prefix.','LocaleService','_initializeMenus','OffLineIcon','BehaviorSubject','url(#$1','apiKey','validateApiKey','CheckMarkIcon','配置参数:','MCP:\x20Network\x20Error','javascript:void(0)','getOwnPropertyDescriptor','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.apiApplyInfo.getStarted','pluginName','Enable\x20Authentication','concat','connectInjector','1945mHKbSp','path','MCPUIMenuController','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','close','value','mcpStatus.retrying','IDialogService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','extend','权限验证失败,请检查您的\x20API\x20密钥','_handleConfigure','_logService','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Success','http://www.w3.org/2000/svg','Connecting...','您的\x20API\x20密钥安全存储在本地存储中','_validateConfig','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-bg-green-500','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','disposeWithMe','1em','https://console.univer.ai','_injector','MCP\x20Connected','IMessageService','_handleConfigSave','_menuManagerService','会话ID','univer-text-green-500','Input','noopener\x20noreferrer','mcpConfig.validation.apiKeyRequired','MCP\x20配置','mcpConfig.save','_uiPartsService','Configuration\x20Steps:','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_initConfigSync','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','off','保存中...','ISocketService','mask','svg','length','bottom','showConfigPanel','843054siVGcy','_configService','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','70460mydBaw','indexOf','API\x20密钥','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-flex\x20univer-items-center\x20univer-gap-2','error','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','mcpServerUrl','getConfig','点击连接\x20MCP','register','_config','mcpConfig.configSaved','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1146Aluvqt','MCP_PLUGIN_CONFIG_KEY','current','Enable\x20authentication\x20for\x20secure\x20connections','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','https://console.univer.plus','displayName','点击配置\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','url(#off-line-icon_clip0_910_343)','ComponentManager','MCPConnectionUIController','univer-flex-shrink-0\x20univer-text-blue-500','univer.plus','warn','Retrying...','\x20-\x20','enUS','MCP\x20Configuration','Configuration\x20Notes:','mcp-config-dialog','0\x200\x2016\x2016','MAX_RETRIES_EXCEEDED','open','map','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpStatus.clickToConnect','off-line-icon','_mcpCoreConfig$','mcpConfig.validation.invalidApiKey','icon','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','connectionError$','children','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','useRef','forEach','会话\x20ID\x20已被占用,请稍后再试','Enter\x20your\x20API\x20key','\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','HelpSingle','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','IMenuManagerService','defs','MCPConnectionStatus','mcpConfig.connectionError.networkError','univer-flex\x20univer-items-start\x20univer-gap-3','BUTTON','mcpConfig.connectionStatus.failed','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.description','mcpConfig.saving','mcpConfig.apiApplyInfo.title','RibbonStartGroup','toString','jsx','idSuffix','defineProperty','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCPConnectionController','round','配置步骤:','MenuItemType','getOwnPropertySymbols','univer-flex\x20univer-gap-3','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','UniverMCPPlugin','连接中...','带有\x20Bearer\x20前缀的\x20API\x20密钥。','on-line-icon','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','none','univer-bg-gray-500','div','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','mcpConfig.authorizationDescription','xlink:href','univer-text-xs\x20univer-text-gray-600','mcpConfig.configStep3','启用身份验证以获得安全连接','mcpConfig.validation.apiKeyTooShort','_registerComponent','配置保存失败','mcpConfig.connectionInfo','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','univer-min-w-0\x20univer-flex-1','_componentManager','className','MCP:\x20会话\x20ID\x20已被占用','string','sessionId$','_localStorageService','_commandService','Univer\x20AI\x20控制台','M5.21243\x205.62036L11.8791\x2012.287','API\x20Key','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','ILocalStorageService','_apiKey$','mcpConfig.configParameters','MCP\x20Retrying...','mcpConfig.connectionStatus.disconnected','MCP:\x20超出最大重试次数','_initAutoConnect','mcpConfig.connectionError.maxRetriesExceeded','MCP\x20客户端配置','enableAutoConnect','CONNECTED','mcpConfig.apiApplyInfo.description','BuiltInUIPart','26782gbwVvI','white','fill','SESSION_ID_OCCUPIED','univer-bg-blue-500','univer-text-xs\x20univer-text-gray-500','MessageType','Disconnected','HEADER_MENU','univer-text-yellow-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20connect\x20MCP','toStringTag','pre','Inject','includes','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','connectionStatus$','保存配置','univer-space-y-3','span','MCP\x20状态未知'];_0x35b4=function(){return _0x5cfd1c;};return _0x35b4();}var Ee=Object[_0x5d76ec(0x27f)],we=(_0x4f59f7,_0x1ae0c4,_0x128242,_0x3c2881)=>{var _0x564a54=_0x5d76ec;for(var _0x483a1e=_0x3c2881>0x1?void 0x0:_0x3c2881?Ee(_0x1ae0c4,_0x128242):_0x1ae0c4,_0x52aab4=_0x4f59f7[_0x564a54(0x2b6)]-0x1,_0x1bc20d;_0x52aab4>=0x0;_0x52aab4--)(_0x1bc20d=_0x4f59f7[_0x52aab4])&&(_0x483a1e=_0x1bc20d(_0x483a1e)||_0x483a1e);return _0x483a1e;},z=(_0x8109be,_0x4c66cd)=>(_0x1fc973,_0x2ab194)=>_0x4c66cd(_0x1fc973,_0x2ab194,_0x8109be);exports[_0x5d76ec(0x288)]=class extends l[_0x5d76ec(0x1ee)]{constructor(_0x5b753a,_0x573946){var _0x1765fb=_0x5d76ec;super(),this[_0x1765fb(0x195)]=_0x5b753a,this[_0x1765fb(0x2a4)]=_0x573946,this[_0x1765fb(0x1c5)](),this[_0x1765fb(0x275)]();}[_0x5d76ec(0x1c5)](){[j]['forEach'](_0x469951=>{var _0x254e9a=_0x19f9;this[_0x254e9a(0x29d)](this[_0x254e9a(0x195)][_0x254e9a(0x1f8)](_0x469951));});}[_0x5d76ec(0x275)](){var _0x3a23d5=_0x5d76ec;this[_0x3a23d5(0x2a4)]['mergeMenu'](je);}},exports[_0x5d76ec(0x288)]=we([z(0x0,l['ICommandService']),z(0x1,v[_0x5d76ec(0x160)])],exports[_0x5d76ec(0x288)]);const Oe={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5d76ec(0x1b8),'connected':_0x5d76ec(0x2a1),'failed':_0x5d76ec(0x26e),'retrying':_0x5d76ec(0x19e),'unknown':_0x5d76ec(0x1e5),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x5d76ec(0x27d),'maxRetriesExceeded':_0x5d76ec(0x26f),'clickToConnect':_0x5d76ec(0x1b3),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5d76ec(0x2dc),'description':_0x5d76ec(0x22b),'apiKey':_0x5d76ec(0x198),'apiKeyPlaceholder':_0x5d76ec(0x15c),'apiKeyHint':_0x5d76ec(0x1fa),'enableAuth':_0x5d76ec(0x283),'enableAuthHint':_0x5d76ec(0x2cd),'connectionInfo':_0x5d76ec(0x267),'mcpClientConfig':_0x5d76ec(0x267),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5d76ec(0x2ad),'configStep1':_0x5d76ec(0x1b9),'configStep2':_0x5d76ec(0x14f),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5d76ec(0x1e2),'sessionIdDescription':_0x5d76ec(0x2ce),'authorizationDescription':_0x5d76ec(0x273),'configParameters':_0x5d76ec(0x1dd),'maxRetries':_0x5d76ec(0x1d3),'save':_0x5d76ec(0x239),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5d76ec(0x299),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5d76ec(0x259),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5d76ec(0x24e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5d76ec(0x248)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5d76ec(0x237),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5d76ec(0x25e)},'connectionStatus':{'disconnected':_0x5d76ec(0x1af),'connecting':_0x5d76ec(0x296),'connected':_0x5d76ec(0x1c1),'failed':_0x5d76ec(0x269),'retrying':_0x5d76ec(0x2d9)},'connectionError':{'unauthorized':_0x5d76ec(0x227),'sessionOccupied':_0x5d76ec(0x226),'networkError':_0x5d76ec(0x1b2),'maxRetriesExceeded':_0x5d76ec(0x28e)}}},Ae={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x5d76ec(0x1f6),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x5d76ec(0x26d),'unknown':_0x5d76ec(0x1be),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x5d76ec(0x191),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x5d76ec(0x1a0),'clickToConnect':_0x5d76ec(0x2c5),'clickToConfigure':_0x5d76ec(0x2d1)},'mcpConfig':{'title':_0x5d76ec(0x2aa),'description':_0x5d76ec(0x169),'apiKey':_0x5d76ec(0x2be),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5d76ec(0x249),'enableAuth':_0x5d76ec(0x222),'enableAuthHint':_0x5d76ec(0x188),'connectionInfo':_0x5d76ec(0x1a3),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x5d76ec(0x175),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x5d76ec(0x1cd),'configStep3':_0x5d76ec(0x2d2),'sessionId':_0x5d76ec(0x2a5),'sessionIdDescription':_0x5d76ec(0x158),'authorizationDescription':_0x5d76ec(0x17d),'configParameters':_0x5d76ec(0x27c),'maxRetries':_0x5d76ec(0x1df),'save':_0x5d76ec(0x1bb),'saving':_0x5d76ec(0x2b2),'note1':'配置更改将立即生效','note2':_0x5d76ec(0x297),'configSaved':'配置保存成功','configError':_0x5d76ec(0x18b),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5d76ec(0x229),'univerAiLabel':_0x5d76ec(0x196),'getStarted':_0x5d76ec(0x241)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x5d76ec(0x1ff),'connecting':_0x5d76ec(0x17c),'connected':_0x5d76ec(0x236),'failed':_0x5d76ec(0x22c),'retrying':_0x5d76ec(0x1e7)},'connectionError':{'unauthorized':_0x5d76ec(0x290),'sessionOccupied':_0x5d76ec(0x15b),'networkError':_0x5d76ec(0x1ca),'maxRetriesExceeded':_0x5d76ec(0x26c)}}};var De=Object[_0x5d76ec(0x171)],ke=Object[_0x5d76ec(0x27f)],Ue=(_0x405254,_0x23786d,_0x566f52)=>_0x23786d in _0x405254?De(_0x405254,_0x23786d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x566f52}):_0x405254[_0x23786d]=_0x566f52,Te=(_0x4861e4,_0x3cd007,_0x1833a5,_0x51039b)=>{var _0x4641f1=_0x5d76ec;for(var _0x35dfdd=_0x51039b>0x1?void 0x0:_0x51039b?ke(_0x3cd007,_0x1833a5):_0x3cd007,_0x1a9ab0=_0x4861e4[_0x4641f1(0x2b6)]-0x1,_0x41d00b;_0x1a9ab0>=0x0;_0x1a9ab0--)(_0x41d00b=_0x4861e4[_0x1a9ab0])&&(_0x35dfdd=_0x41d00b(_0x35dfdd)||_0x35dfdd);return _0x35dfdd;},M=(_0x2d5b1e,_0x47c110)=>(_0x43b116,_0x272f43)=>_0x47c110(_0x43b116,_0x272f43,_0x2d5b1e),$e=(_0x2aebe1,_0x45e3f9,_0x252dee)=>Ue(_0x2aebe1,_0x45e3f9+'',_0x252dee);exports[_0x5d76ec(0x244)]=class extends l['Plugin']{constructor(_0x19adf5=G,_0x69555a,_0x487f0f,_0x29505f,_0x1396ec,_0x314163){var _0x55e6b1=_0x5d76ec;super(),this[_0x55e6b1(0x2c7)]=_0x19adf5,this['_injector']=_0x69555a,this['_configService']=_0x487f0f,this['_uiPartsService']=_0x29505f,this[_0x55e6b1(0x194)]=_0x1396ec,this['_localeService']=_0x314163;const {..._0x2a06a1}=l['merge']({},G,this['_config']);this[_0x55e6b1(0x2ba)][_0x55e6b1(0x1de)](y,_0x2a06a1);}async[_0x5d76ec(0x219)](){var _0x27e9a9=_0x5d76ec;const _0x2f9a24=[[exports[_0x27e9a9(0x2d5)]],[exports[_0x27e9a9(0x20e)]],[exports['MCPUIMenuController']]];this[_0x27e9a9(0x2a0)][_0x27e9a9(0x22f)](A[_0x27e9a9(0x2b3)])||_0x2f9a24['push']([A[_0x27e9a9(0x2b3)],{'useClass':A[_0x27e9a9(0x201)]}]),_0x2f9a24[_0x27e9a9(0x15a)](_0x5bdd35=>this[_0x27e9a9(0x2a0)][_0x27e9a9(0x235)](_0x5bdd35)),this[_0x27e9a9(0x2a0)]['get'](exports[_0x27e9a9(0x2d5)]),this['_injector'][_0x27e9a9(0x228)](exports[_0x27e9a9(0x20e)]),this[_0x27e9a9(0x2a0)][_0x27e9a9(0x228)](exports['MCPUIMenuController']);}},$e(exports[_0x5d76ec(0x244)],_0x5d76ec(0x282),_0x5d76ec(0x218)),exports['UniverMCPUIPlugin']=Te([l[_0x5d76ec(0x260)](s[_0x5d76ec(0x17b)]),M(0x1,l[_0x5d76ec(0x1b6)](l['Injector'])),M(0x2,l[_0x5d76ec(0x272)]),M(0x3,v[_0x5d76ec(0x1c6)]),M(0x4,l[_0x5d76ec(0x19b)]),M(0x5,l['Inject'](l[_0x5d76ec(0x274)]))],exports[_0x5d76ec(0x244)]),exports[_0x5d76ec(0x1dc)]=W,exports[_0x5d76ec(0x1bf)]=X,exports['OpenMCPConfigPanelCommand']=j,exports[_0x5d76ec(0x2db)]=Oe,exports['zhCN']=Ae;
|
|
1
|
+
'use strict';var _0x3d1bae=_0x3e74;(function(_0x2b0f7e,_0x3a46cc){var _0x4a0a1a=_0x3e74,_0x29fa44=_0x2b0f7e();while(!![]){try{var _0x4f3c58=parseInt(_0x4a0a1a(0x213))/0x1*(-parseInt(_0x4a0a1a(0x226))/0x2)+parseInt(_0x4a0a1a(0x327))/0x3+-parseInt(_0x4a0a1a(0x2cf))/0x4*(parseInt(_0x4a0a1a(0x325))/0x5)+parseInt(_0x4a0a1a(0x2fe))/0x6*(parseInt(_0x4a0a1a(0x2f6))/0x7)+-parseInt(_0x4a0a1a(0x302))/0x8*(-parseInt(_0x4a0a1a(0x1e1))/0x9)+parseInt(_0x4a0a1a(0x312))/0xa+parseInt(_0x4a0a1a(0x23a))/0xb;if(_0x4f3c58===_0x3a46cc)break;else _0x29fa44['push'](_0x29fa44['shift']());}catch(_0x17457f){_0x29fa44['push'](_0x29fa44['shift']());}}}(_0x25e8,0x47c62));var ue=Object[_0x3d1bae(0x1c2)],le=(_0x6543cb,_0x4f27b2,_0x430f25)=>_0x4f27b2 in _0x6543cb?ue(_0x6543cb,_0x4f27b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x430f25}):_0x6543cb[_0x4f27b2]=_0x430f25,I=(_0x2cf805,_0x208bc7,_0x57152f)=>le(_0x2cf805,typeof _0x208bc7!=_0x3d1bae(0x2f2)?_0x208bc7+'':_0x208bc7,_0x57152f);Object['defineProperty'](exports,Symbol[_0x3d1bae(0x306)],{'value':_0x3d1bae(0x1bc)});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _0x3e74(_0x3f037f,_0x4b9839){var _0x25e8f9=_0x25e8();return _0x3e74=function(_0x3e74a8,_0x42662b){_0x3e74a8=_0x3e74a8-0x1bc;var _0x319ac4=_0x25e8f9[_0x3e74a8];return _0x319ac4;},_0x3e74(_0x3f037f,_0x4b9839);}var g=function(){var _0xe1286b=_0x3d1bae;return g=Object[_0xe1286b(0x20f)]||function(_0x2e82e2){var _0xffff44=_0xe1286b;for(var _0x334021,_0x3a68dc=0x1,_0x3b7f1f=arguments['length'];_0x3a68dc<_0x3b7f1f;_0x3a68dc++){_0x334021=arguments[_0x3a68dc];for(var _0x310527 in _0x334021)Object[_0xffff44(0x222)][_0xffff44(0x283)][_0xffff44(0x2a0)](_0x334021,_0x310527)&&(_0x2e82e2[_0x310527]=_0x334021[_0x310527]);}return _0x2e82e2;},g[_0xe1286b(0x28e)](this,arguments);},ve=function(_0x29619b,_0x5d7cb3){var _0x5bd0a1=_0x3d1bae,_0xda35f5={};for(var _0x57ec48 in _0x29619b)Object[_0x5bd0a1(0x222)]['hasOwnProperty'][_0x5bd0a1(0x2a0)](_0x29619b,_0x57ec48)&&_0x5d7cb3['indexOf'](_0x57ec48)<0x0&&(_0xda35f5[_0x57ec48]=_0x29619b[_0x57ec48]);if(_0x29619b!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x926f5c=0x0,_0x57ec48=Object[_0x5bd0a1(0x27a)](_0x29619b);_0x926f5c<_0x57ec48[_0x5bd0a1(0x205)];_0x926f5c++)_0x5d7cb3[_0x5bd0a1(0x21a)](_0x57ec48[_0x926f5c])<0x0&&Object[_0x5bd0a1(0x222)]['propertyIsEnumerable']['call'](_0x29619b,_0x57ec48[_0x926f5c])&&(_0xda35f5[_0x57ec48[_0x926f5c]]=_0x29619b[_0x57ec48[_0x926f5c]]);}return _0xda35f5;},_=d['forwardRef'](function(_0x50028e,_0x54cc38){var _0x152a73=_0x3d1bae,_0x4da830=_0x50028e[_0x152a73(0x1d4)],_0xfea268=_0x50028e['id'],_0x22972a=_0x50028e['className'],_0x1eb272=_0x50028e['extend'],_0x30bf6b=ve(_0x50028e,[_0x152a73(0x1d4),'id',_0x152a73(0x298),_0x152a73(0x2ed)]),_0x4eeef8=_0x152a73(0x22a)[_0x152a73(0x247)](_0xfea268,'\x20')['concat'](_0x22972a||'')['trim'](),_0x3d298e=d[_0x152a73(0x1c3)]('_'['concat'](ge()));return H(_0x4da830,''[_0x152a73(0x247)](_0xfea268),{'defIds':_0x4da830[_0x152a73(0x28c)],'idSuffix':_0x3d298e['current']},g({'ref':_0x54cc38,'className':_0x4eeef8},_0x30bf6b),_0x1eb272);});function H(_0xe49f97,_0x113528,_0x376154,_0x3676c0,_0x1cb182){var _0x41c52a=_0x3d1bae;return d[_0x41c52a(0x2dc)](_0xe49f97[_0x41c52a(0x24c)],g(g({'key':_0x113528},de(_0xe49f97,_0x376154,_0x1cb182)),_0x3676c0),(Ce(_0xe49f97,_0x376154)[_0x41c52a(0x33c)]||[])['map'](function(_0x531680,_0x56744d){var _0x5d2307=_0x41c52a;return H(_0x531680,''[_0x5d2307(0x247)](_0x113528,'-')[_0x5d2307(0x247)](_0xe49f97[_0x5d2307(0x24c)],'-')[_0x5d2307(0x247)](_0x56744d),_0x376154,void 0x0,_0x1cb182);}));}function de(_0x94cb0e,_0x174da2,_0x150061){var _0x2d4919=_0x3d1bae,_0x502f98=g({},_0x94cb0e[_0x2d4919(0x32a)]);_0x150061!=null&&_0x150061[_0x2d4919(0x2ca)]&&_0x502f98[_0x2d4919(0x2e0)]==='colorChannel1'&&(_0x502f98[_0x2d4919(0x2e0)]=_0x150061['colorChannel1']),_0x94cb0e[_0x2d4919(0x24c)]==='mask'&&_0x502f98['id']&&(_0x502f98['id']=_0x502f98['id']+_0x174da2['idSuffix']),Object[_0x2d4919(0x1db)](_0x502f98)[_0x2d4919(0x2c0)](function(_0x5432d5){var _0x3f99d0=_0x2d4919,_0x51ac3c=_0x5432d5[0x0],_0x8499e=_0x5432d5[0x1];_0x51ac3c===_0x3f99d0(0x31c)&&typeof _0x8499e==_0x3f99d0(0x24e)&&(_0x502f98[_0x51ac3c]=_0x8499e[_0x3f99d0(0x32b)](/url\(#(.*)\)/,'url(#$1'[_0x3f99d0(0x247)](_0x174da2[_0x3f99d0(0x223)],')')));});var _0x198cbe=_0x174da2[_0x2d4919(0x28c)];return!_0x198cbe||_0x198cbe[_0x2d4919(0x205)]===0x0||(_0x94cb0e[_0x2d4919(0x24c)]===_0x2d4919(0x322)&&_0x502f98[_0x2d4919(0x21d)]&&(_0x502f98[_0x2d4919(0x21d)]=_0x502f98[_0x2d4919(0x21d)]+_0x174da2[_0x2d4919(0x223)]),Object[_0x2d4919(0x1db)](_0x502f98)[_0x2d4919(0x2c0)](function(_0x10ad29){var _0x5bbfbc=_0x2d4919,_0x5b4f44=_0x10ad29[0x0],_0x22382c=_0x10ad29[0x1];typeof _0x22382c==_0x5bbfbc(0x24e)&&(_0x502f98[_0x5b4f44]=_0x22382c[_0x5bbfbc(0x32b)](/url\(#(.*)\)/,_0x5bbfbc(0x2aa)[_0x5bbfbc(0x247)](_0x174da2['idSuffix'],')')));})),_0x502f98;}function Ce(_0x2c7cf6,_0x1ddeb4){var _0x2c71fd=_0x3d1bae,_0x2304b4,_0x15c8b2=_0x1ddeb4['defIds'];return!_0x15c8b2||_0x15c8b2[_0x2c71fd(0x205)]===0x0?_0x2c7cf6:_0x2c7cf6[_0x2c71fd(0x24c)]===_0x2c71fd(0x27d)&&(!((_0x2304b4=_0x2c7cf6[_0x2c71fd(0x33c)])===null||_0x2304b4===void 0x0)&&_0x2304b4[_0x2c71fd(0x205)])?g(g({},_0x2c7cf6),{'children':_0x2c7cf6[_0x2c71fd(0x33c)][_0x2c71fd(0x251)](function(_0x3acbda){var _0x55e25e=_0x2c71fd;return typeof _0x3acbda['attrs']['id']==_0x55e25e(0x24e)&&_0x15c8b2&&_0x15c8b2[_0x55e25e(0x1be)](_0x3acbda['attrs']['id'])?g(g({},_0x3acbda),{'attrs':g(g({},_0x3acbda[_0x55e25e(0x32a)]),{'id':_0x3acbda['attrs']['id']+_0x1ddeb4[_0x55e25e(0x223)]})}):_0x3acbda;})}):_0x2c7cf6;}function ge(){var _0x37ef32=_0x3d1bae;return Math['random']()['toString'](0x24)[_0x37ef32(0x207)](0x2,0x8);}_[_0x3d1bae(0x334)]=_0x3d1bae(0x341);var fe={'tag':'svg','attrs':{'xmlns':_0x3d1bae(0x218),'fill':_0x3d1bae(0x30b),'viewBox':'0\x200\x2016\x2016','width':_0x3d1bae(0x2f8),'height':_0x3d1bae(0x2f8)},'children':[{'tag':_0x3d1bae(0x326),'attrs':{'fill':'currentColor','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':_0x3d1bae(0x29b),'clipRule':_0x3d1bae(0x29b)}}]},B=d[_0x3d1bae(0x22b)](function(_0x4f9f36,_0x5d6769){var _0x206515=_0x3d1bae;return d[_0x206515(0x2dc)](_,Object[_0x206515(0x20f)]({},_0x4f9f36,{'id':'check-mark-icon','ref':_0x5d6769,'icon':fe}));});B[_0x3d1bae(0x334)]='CheckMarkIcon';var pe={'tag':_0x3d1bae(0x1f0),'attrs':{'xmlns':_0x3d1bae(0x218),'fill':_0x3d1bae(0x30b),'viewBox':_0x3d1bae(0x304),'width':_0x3d1bae(0x2f8),'height':_0x3d1bae(0x2f8)},'children':[{'tag':_0x3d1bae(0x326),'attrs':{'stroke':_0x3d1bae(0x1d7),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x3d1bae(0x2e1),'strokeLinejoin':_0x3d1bae(0x2e1),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x3d1bae(0x1d7),'d':_0x3d1bae(0x33e),'strokeLinecap':_0x3d1bae(0x2e1),'strokeLinejoin':_0x3d1bae(0x2e1),'strokeWidth':1.33}}]},F=d['forwardRef'](function(_0x54c18b,_0x256d9f){var _0x281464=_0x3d1bae;return d[_0x281464(0x2dc)](_,Object[_0x281464(0x20f)]({},_0x54c18b,{'id':'close-small-single','ref':_0x256d9f,'icon':pe}));});F[_0x3d1bae(0x334)]=_0x3d1bae(0x336);var he={'tag':_0x3d1bae(0x1f0),'attrs':{'xmlns':_0x3d1bae(0x218),'fill':_0x3d1bae(0x30b),'viewBox':_0x3d1bae(0x1eb),'width':'1em','height':_0x3d1bae(0x2f8)},'children':[{'tag':_0x3d1bae(0x326),'attrs':{'fill':_0x3d1bae(0x1d7),'d':_0x3d1bae(0x315)}},{'tag':_0x3d1bae(0x326),'attrs':{'fill':_0x3d1bae(0x1d7),'d':_0x3d1bae(0x243)}},{'tag':_0x3d1bae(0x326),'attrs':{'fill':'currentColor','d':_0x3d1bae(0x2b2),'fillRule':_0x3d1bae(0x29b),'clipRule':_0x3d1bae(0x29b)}}]},Y=d[_0x3d1bae(0x22b)](function(_0x168afe,_0x2ba833){var _0x5da1e6=_0x3d1bae;return d[_0x5da1e6(0x2dc)](_,Object['assign']({},_0x168afe,{'id':_0x5da1e6(0x268),'ref':_0x2ba833,'icon':he}));});Y[_0x3d1bae(0x334)]=_0x3d1bae(0x2d0);var me={'tag':'svg','attrs':{'xmlns':_0x3d1bae(0x218),'fill':_0x3d1bae(0x30b),'viewBox':'0\x200\x2016\x2016','width':_0x3d1bae(0x2f8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1bae(0x258)},'children':[{'tag':_0x3d1bae(0x326),'attrs':{'stroke':'currentColor','d':_0x3d1bae(0x1e3),'strokeLinecap':_0x3d1bae(0x2e1),'strokeLinejoin':_0x3d1bae(0x2e1),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3d1bae(0x28b),'attrs':{'id':_0x3d1bae(0x2dd)},'children':[{'tag':'path','attrs':{'fill':_0x3d1bae(0x330),'d':_0x3d1bae(0x257)}}]}]}],'defIds':[_0x3d1bae(0x2dd)]},q=d[_0x3d1bae(0x22b)](function(_0x2d57e9,_0x276e8a){var _0x45fd95=_0x3d1bae;return d[_0x45fd95(0x2dc)](_,Object[_0x45fd95(0x20f)]({},_0x2d57e9,{'id':_0x45fd95(0x1e6),'ref':_0x276e8a,'icon':me}));});q[_0x3d1bae(0x334)]='OffLineIcon';var xe={'tag':_0x3d1bae(0x1f0),'attrs':{'xmlns':_0x3d1bae(0x218),'fill':_0x3d1bae(0x30b),'viewBox':_0x3d1bae(0x2bd),'width':_0x3d1bae(0x2f8),'height':_0x3d1bae(0x2f8)},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1bae(0x267)},'children':[{'tag':'path','attrs':{'stroke':_0x3d1bae(0x1d7),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x3d1bae(0x2e1),'strokeLinejoin':_0x3d1bae(0x2e1),'strokeWidth':1.2}}]},{'tag':_0x3d1bae(0x27d),'attrs':{},'children':[{'tag':_0x3d1bae(0x28b),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x3d1bae(0x330),'d':_0x3d1bae(0x257),'transform':_0x3d1bae(0x253)}}]}]}],'defIds':[_0x3d1bae(0x301)]},V=d[_0x3d1bae(0x22b)](function(_0x557ab6,_0x2d954f){var _0x3890c1=_0x3d1bae;return d[_0x3890c1(0x2dc)](_,Object['assign']({},_0x557ab6,{'id':_0x3890c1(0x279),'ref':_0x2d954f,'icon':xe}));});V[_0x3d1bae(0x334)]='OnLineIcon';function W(_0x5acd8d){var _0x42293f=_0x3d1bae,_0x20a98f,_0x56c30e;const {mcpCoreConfig:_0x2a8a0a,onSave:_0x50ef3d,loading:_0x747b45=!0x1,config:_0x2804bd,connectionStatus$:_0x4d1ff5,connectionError$:_0x382ae1,currentApiKey$:_0x24240c,currentSessionId$:_0x5c18b4}=_0x5acd8d,_0x535027=v[_0x42293f(0x310)](l[_0x42293f(0x1c9)]),_0x452449=v[_0x42293f(0x26a)](_0x4d1ff5,s[_0x42293f(0x33f)][_0x42293f(0x230)]),_0x30fb00=v[_0x42293f(0x26a)](_0x382ae1,s['MCPConnectionError'][_0x42293f(0x2e6)]),_0x375bc0=v[_0x42293f(0x26a)](_0x5c18b4,''),_0x13f138=v['useObservable'](_0x24240c,''),[_0x4b14fd,_0x277a50]=d['useState'](_0x13f138||''),_0x172bf5=!0x0,_0x3e3e82=_0x2804bd[_0x42293f(0x25b)]&&_0x2a8a0a[_0x42293f(0x1e7)]&&(_0x2a8a0a['mcpServerUrl'][_0x42293f(0x1be)](_0x42293f(0x25c))||_0x2a8a0a[_0x42293f(0x1e7)][_0x42293f(0x1be)]('univer.ai')),_0x3b54a6=(_0x20a98f=_0x2a8a0a[_0x42293f(0x1e7)])==null?void 0x0:_0x20a98f[_0x42293f(0x1be)]('univer.plus'),_0x1d5977=(_0x56c30e=_0x2a8a0a[_0x42293f(0x1e7)])==null?void 0x0:_0x56c30e[_0x42293f(0x1be)](_0x42293f(0x2c6)),_0x2395a1=_0x3b54a6?'https://console.univer.plus':'https://console.univer.ai',_0x3f12f4=_0x2804bd['showDeveloperTools']&&(_0x3b54a6||_0x1d5977),[_0x2d43ac,_0x37a299]=d['useState'](!_0x4b14fd[_0x42293f(0x30e)]()),_0x451132=(_0x197a31,_0x4af014)=>{var _0x30e3c6=_0x42293f;if(_0x4af014===s[_0x30e3c6(0x254)][_0x30e3c6(0x2a4)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x197a31){case s[_0x30e3c6(0x33f)][_0x30e3c6(0x266)]:return _0x30e3c6(0x307);case s[_0x30e3c6(0x33f)][_0x30e3c6(0x242)]:case s[_0x30e3c6(0x33f)][_0x30e3c6(0x2c3)]:return _0x30e3c6(0x2bf);case s[_0x30e3c6(0x33f)][_0x30e3c6(0x211)]:return _0x30e3c6(0x2b7);default:return _0x30e3c6(0x2c1);}},_0x30c42e=(_0x4ac6a3,_0x5d0ab3)=>{var _0x5335d5=_0x42293f;if(_0x5d0ab3===s['MCPConnectionError'][_0x5335d5(0x2a4)])return _0x5335d5(0x25d);switch(_0x4ac6a3){case s['MCPConnectionStatus']['CONNECTED']:return _0x5335d5(0x206);case s[_0x5335d5(0x33f)][_0x5335d5(0x242)]:case s[_0x5335d5(0x33f)][_0x5335d5(0x2c3)]:return _0x5335d5(0x29c);case s[_0x5335d5(0x33f)]['FAILED']:return _0x5335d5(0x25d);default:return _0x5335d5(0x20d);}},_0x5f4577=_0x1d7d74=>{var _0x27f8e4=_0x42293f;switch(_0x1d7d74){case s[_0x27f8e4(0x33f)][_0x27f8e4(0x266)]:return _0x535027['t'](_0x27f8e4(0x259));case s[_0x27f8e4(0x33f)]['CONNECTING']:return _0x535027['t'](_0x27f8e4(0x29d));case s['MCPConnectionStatus']['FAILED']:return _0x535027['t'](_0x27f8e4(0x215));case s[_0x27f8e4(0x33f)][_0x27f8e4(0x2c3)]:return _0x535027['t']('mcpConfig.connectionStatus.retrying');default:return _0x535027['t']('mcpConfig.connectionStatus.disconnected');}},_0x27b121=_0x10a7fd=>{var _0x5ad569=_0x42293f;switch(_0x10a7fd){case s['MCPConnectionError'][_0x5ad569(0x2a4)]:return _0x535027['t'](_0x5ad569(0x2ab));case s[_0x5ad569(0x254)][_0x5ad569(0x252)]:return _0x535027['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x5ad569(0x254)][_0x5ad569(0x23f)]:return _0x535027['t'](_0x5ad569(0x217));case s[_0x5ad569(0x254)][_0x5ad569(0x335)]:return _0x535027['t'](_0x5ad569(0x1c5));default:return'';}},_0x102974=d[_0x42293f(0x240)](()=>{var _0x50bd59=_0x42293f;const _0x36cf75={..._0x2a8a0a,'apiKey':_0x4b14fd[_0x50bd59(0x30e)](),'enableAuth':_0x172bf5};_0x50ef3d(_0x36cf75);},[_0x2a8a0a,_0x4b14fd,_0x172bf5,_0x50ef3d]),_0x3d70b1=_0x4b14fd[_0x42293f(0x30e)]()['length']>0x0;return t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x305),'children':[t['jsx'](_0x42293f(0x343),{'className':_0x42293f(0x1fc),'children':t['jsxs'](_0x42293f(0x343),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x1bf),'children':t['jsx'](_0x42293f(0x26d),{'className':_0x42293f(0x246),'children':'⚙'})}),t[_0x42293f(0x2b6)](_0x42293f(0x343),{'children':t[_0x42293f(0x2b6)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x535027['t'](_0x42293f(0x2a3))})})]})}),t['jsxs'](_0x42293f(0x343),{'className':_0x42293f(0x216),'children':[t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x236)+_0x451132(_0x452449,_0x30fb00)+_0x42293f(0x2db),'children':t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x26c),'children':[t['jsx'](_0x42293f(0x343),{'className':_0x42293f(0x2b0)+_0x30c42e(_0x452449,_0x30fb00)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':_0x42293f(0x204),'children':_0x5f4577(_0x452449)})]})}),_0x30fb00!==s['MCPConnectionError'][_0x42293f(0x2e6)]&&(_0x452449===s[_0x42293f(0x33f)][_0x42293f(0x211)]||_0x30fb00===s[_0x42293f(0x254)]['UNAUTHORIZED'])&&t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x1ff),'children':t['jsxs'](_0x42293f(0x343),{'className':_0x42293f(0x294),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),t[_0x42293f(0x2b6)]('p',{'className':_0x42293f(0x22f),'children':_0x27b121(_0x30fb00)})]})})]}),t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x2f0),'children':[t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x1c6),'children':[t[_0x42293f(0x33b)]('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'children':'🔑'}),'\x20',_0x535027['t'](_0x42293f(0x342)),t[_0x42293f(0x2b6)]('span',{'className':'univer-text-red-500','children':'*'}),_0x3e3e82&&t[_0x42293f(0x2b6)]('a',{'href':'javascript:void(0)','onClick':()=>_0x37a299(!0x0),'className':_0x42293f(0x338),'title':_0x535027['t'](_0x42293f(0x2f1)),'children':t['jsx'](Y,{})})]}),t['jsx'](S[_0x42293f(0x1f8)],{'type':_0x42293f(0x256),'placeholder':_0x535027['t'](_0x42293f(0x24a)),'value':_0x4b14fd,'onChange':_0x277a50,'disabled':_0x747b45,'autoComplete':'off'}),t[_0x42293f(0x2b6)]('p',{'className':_0x42293f(0x1ef),'children':_0x535027['t'](_0x42293f(0x28f))})]}),_0x3e3e82&&_0x2d43ac&&t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x221),'children':[t[_0x42293f(0x2b6)]('a',{'href':_0x42293f(0x1cd),'onClick':()=>_0x37a299(!0x1),'className':_0x42293f(0x22d),'title':_0x42293f(0x329),'children':t[_0x42293f(0x2b6)](F,{})}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1c1),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x299),'children':t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':_0x42293f(0x1dc),'children':'🚀'})}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x2e7),'children':[t['jsx']('h4',{'className':_0x42293f(0x2ec),'children':_0x535027['t'](_0x42293f(0x2f1))}),t['jsx']('p',{'className':_0x42293f(0x2a1),'children':_0x535027['t'](_0x42293f(0x241))}),t['jsx'](_0x42293f(0x343),{'className':_0x42293f(0x319),'children':_0x3f12f4&&t[_0x42293f(0x33b)]('a',{'href':_0x2395a1,'target':_0x42293f(0x1ec),'rel':_0x42293f(0x227),'className':_0x42293f(0x1fd),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'children':'🤖'}),_0x535027['t']('mcpConfig.apiApplyInfo.univerAiLabel'),t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':'univer-text-gray-400','children':'↗'})]})}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1ea),'children':['✨','\x20',_0x535027['t'](_0x42293f(0x32f))]})]})]})]}),_0x2804bd[_0x42293f(0x25b)]&&t[_0x42293f(0x33b)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[t[_0x42293f(0x33b)]('h4',{'className':_0x42293f(0x2f4),'children':[t['jsx']('span',{'children':'🔗'}),'\x20',_0x535027['t'](_0x42293f(0x2b1))]}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x2d9),'children':[t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x255),'children':[t[_0x42293f(0x2b6)]('p',{'className':_0x42293f(0x30c),'children':_0x535027['t'](_0x42293f(0x24b))}),t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x1c6),'children':[t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x1d3),'children':_0x535027['t'](_0x42293f(0x27f))}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x23b),'children':[t['jsxs'](_0x42293f(0x343),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t['jsx'](_0x42293f(0x26d),{'className':_0x42293f(0x20e),'children':'1'}),_0x535027['t'](_0x42293f(0x27e))]}),t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x26c),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':_0x42293f(0x20e),'children':'2'}),_0x535027['t']('mcpConfig.configStep2')]}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x26c),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':_0x42293f(0x20e),'children':'3'}),_0x535027['t'](_0x42293f(0x284))]})]})]})]}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1c6),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x1d3),'children':_0x42293f(0x344)}),t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x2e3),'children':t['jsx']('pre',{'className':_0x42293f(0x290),'children':_0x42293f(0x2ba)+_0x375bc0+_0x42293f(0x2cc)+(_0x4b14fd||_0x42293f(0x2a7))+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),t['jsxs'](_0x42293f(0x343),{'className':_0x42293f(0x255),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x1d3),'children':_0x535027['t'](_0x42293f(0x1de))}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1c6),'children':[t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x30f),'children':[t['jsx'](_0x42293f(0x343),{'className':_0x42293f(0x280)}),t[_0x42293f(0x33b)]('div',{'className':_0x42293f(0x1df),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x2f9),'children':_0x42293f(0x2d6)}),t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x1ef),'children':_0x535027['t'](_0x42293f(0x232))})]})]}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x30f),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x280)}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1df),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x343),{'className':_0x42293f(0x2f9),'children':'Authorization:'}),t['jsx'](_0x42293f(0x343),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x535027['t'](_0x42293f(0x2e4))})]})]})]})]})]})]}),t['jsx'](S[_0x42293f(0x321)],{'onClick':_0x102974,'disabled':!_0x3d70b1||_0x747b45,'className':_0x42293f(0x1c7),'children':_0x747b45?t[_0x42293f(0x33b)](_0x42293f(0x26d),{'className':_0x42293f(0x26c),'children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'children':'⟲'}),_0x535027['t'](_0x42293f(0x2fc))]}):t[_0x42293f(0x33b)](_0x42293f(0x26d),{'className':_0x42293f(0x26c),'children':[t[_0x42293f(0x2b6)](B,{}),_0x535027['t'](_0x42293f(0x1d0))]})}),t['jsx']('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':'univer-flex\x20univer-gap-3','children':[t[_0x42293f(0x2b6)](_0x42293f(0x26d),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'className':_0x42293f(0x1e9),'children':[t[_0x42293f(0x2b6)]('div',{'className':_0x42293f(0x26b),'children':'Configuration\x20Notes:'}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'children':['•',_0x535027['t']('mcpConfig.note1')]}),t[_0x42293f(0x33b)](_0x42293f(0x343),{'children':['•',_0x535027['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x3d1bae(0x2fa),G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object[_0x3d1bae(0x27b)],Pe=(_0x11226a,_0x42e8f5,_0x6bf8a,_0x5caded)=>{var _0x873f3=_0x3d1bae;for(var _0x180ed1=_0x5caded>0x1?void 0x0:_0x5caded?Se(_0x42e8f5,_0x6bf8a):_0x42e8f5,_0x2df0da=_0x11226a[_0x873f3(0x205)]-0x1,_0x264293;_0x2df0da>=0x0;_0x2df0da--)(_0x264293=_0x11226a[_0x2df0da])&&(_0x180ed1=_0x264293(_0x180ed1)||_0x180ed1);return _0x180ed1;},f=(_0x516145,_0x5c593a)=>(_0x5ded7b,_0x4f518b)=>_0x5c593a(_0x5ded7b,_0x4f518b,_0x516145);const D=_0x3d1bae(0x21e),k=_0x3d1bae(0x265);exports[_0x3d1bae(0x2eb)]=class extends l[_0x3d1bae(0x2a2)]{constructor(_0x34bc3f,_0x299dbf,_0x51a2d1,_0xdca6fc,_0xe26f67,_0x455fd8,_0x7937d4,_0x45ae4f,_0x50ca27,_0x20fb98){var _0x1a5a75=_0x3d1bae;super(),I(this,'_loading$',new N['BehaviorSubject'](!0x1)),I(this,_0x1a5a75(0x1d6),new N[(_0x1a5a75(0x24f))]({})),I(this,_0x1a5a75(0x314),new N[(_0x1a5a75(0x24f))]({})),I(this,_0x1a5a75(0x333),new N['BehaviorSubject']('')),I(this,_0x1a5a75(0x2b4),async _0x57a36b=>{var _0x56e795=_0x1a5a75,_0x4e5664,_0x5937d6;this[_0x56e795(0x203)][_0x56e795(0x237)](!0x0);try{const _0x372f86=await this[_0x56e795(0x2fd)](_0x57a36b);if(!_0x372f86[_0x56e795(0x25e)]){this[_0x56e795(0x231)][_0x56e795(0x320)]({'type':S['MessageType'][_0x56e795(0x2df)],'content':_0x372f86[_0x56e795(0x2d5)]||this[_0x56e795(0x29a)]['t'](_0x56e795(0x208))});return;}_0x57a36b[_0x56e795(0x2b9)]?await this[_0x56e795(0x212)][_0x56e795(0x31d)](D,_0x57a36b[_0x56e795(0x2b9)]['trim']()):await this[_0x56e795(0x212)][_0x56e795(0x2a8)](D),this[_0x56e795(0x333)][_0x56e795(0x237)](((_0x4e5664=_0x57a36b['apiKey'])==null?void 0x0:_0x4e5664[_0x56e795(0x30e)]())||''),this[_0x56e795(0x1e8)][_0x56e795(0x233)]({'Authorization':'Bearer\x20'+((_0x5937d6=_0x57a36b[_0x56e795(0x2b9)])==null?void 0x0:_0x5937d6['trim']())}),this[_0x56e795(0x231)]['show']({'type':S['MessageType'][_0x56e795(0x345)],'content':this['_localeService']['t'](_0x56e795(0x25f))}),setTimeout(()=>{var _0x3c553b=_0x56e795;this[_0x3c553b(0x219)][_0x3c553b(0x292)](k);},0x320);}catch(_0x37762a){this[_0x56e795(0x272)][_0x56e795(0x2d4)](_0x56e795(0x2ef),_0x37762a),this[_0x56e795(0x231)][_0x56e795(0x320)]({'type':S['MessageType']['Error'],'content':this[_0x56e795(0x29a)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x56e795(0x237)](!0x1);}}),(this[_0x1a5a75(0x285)]=_0x34bc3f,this[_0x1a5a75(0x277)]=_0x299dbf,this[_0x1a5a75(0x20a)]=_0x51a2d1,this[_0x1a5a75(0x212)]=_0xdca6fc,this[_0x1a5a75(0x219)]=_0xe26f67,this[_0x1a5a75(0x231)]=_0x455fd8,this[_0x1a5a75(0x210)]=_0x7937d4,this['_localeService']=_0x45ae4f,this['_logService']=_0x50ca27,this[_0x1a5a75(0x1e8)]=_0x20fb98,this[_0x1a5a75(0x1cb)](),this[_0x1a5a75(0x28a)](),this[_0x1a5a75(0x317)]());}[_0x3d1bae(0x2a5)](){var _0x4d70ae=_0x3d1bae;const _0x801124=this[_0x4d70ae(0x20a)][_0x4d70ae(0x2ee)](y);_0x801124!=null&&_0x801124['showDeveloperTools']&&this[_0x4d70ae(0x219)][_0x4d70ae(0x214)]({'id':k,'title':{'title':this[_0x4d70ae(0x29a)]['t']('mcpConfig.title')},'children':{'label':_0x4d70ae(0x245)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](k);}});}[_0x3d1bae(0x28d)](){var _0x2c79e7=_0x3d1bae;return this['_mcpCoreConfig$'][_0x2c79e7(0x2e5)];}[_0x3d1bae(0x317)](){var _0x2331af=_0x3d1bae;this[_0x2331af(0x331)](this[_0x2331af(0x210)][_0x2331af(0x2fb)](_0x2331af(0x245),this[_0x2331af(0x30a)]()));}[_0x3d1bae(0x30a)](){var _0x3acd49=_0x3d1bae;return v[_0x3acd49(0x1da)](()=>{var _0x47f253=_0x3acd49,_0x576784,_0x103a85,_0x4ffff4;return t[_0x47f253(0x2b6)](W,{'config':this[_0x47f253(0x314)][_0x47f253(0x2e5)],'mcpCoreConfig':this[_0x47f253(0x1d6)]['value'],'currentApiKey$':this[_0x47f253(0x333)],'onSave':this[_0x47f253(0x2b4)],'loading':this[_0x47f253(0x203)][_0x47f253(0x2e5)],'connectionStatus$':(_0x576784=this[_0x47f253(0x1e8)])==null?void 0x0:_0x576784[_0x47f253(0x23d)],'connectionError$':(_0x103a85=this[_0x47f253(0x1e8)])==null?void 0x0:_0x103a85[_0x47f253(0x2d8)],'currentSessionId$':(_0x4ffff4=this['_mcpConnectionController'])==null?void 0x0:_0x4ffff4[_0x47f253(0x2ea)]});},this[_0x3acd49(0x285)]);}[_0x3d1bae(0x1cb)](){var _0x34f3df=_0x3d1bae;this[_0x34f3df(0x331)](this[_0x34f3df(0x20a)]['subscribeConfigValue$'](s['MCP_PLUGIN_CONFIG_KEY'])[_0x34f3df(0x235)](_0x4f3409=>{var _0x2f1649=_0x34f3df;this[_0x2f1649(0x1d6)][_0x2f1649(0x237)](_0x4f3409||{});}));const _0x511249=this[_0x34f3df(0x20a)][_0x34f3df(0x2ee)](s[_0x34f3df(0x348)]);this[_0x34f3df(0x1d6)][_0x34f3df(0x237)](_0x511249||{}),this[_0x34f3df(0x331)](this[_0x34f3df(0x20a)][_0x34f3df(0x2d2)](y)[_0x34f3df(0x235)](_0x212acf=>{var _0x3c0584=_0x34f3df;this[_0x3c0584(0x314)]['next'](_0x212acf||{});}));const _0x4003ce=this[_0x34f3df(0x20a)][_0x34f3df(0x2ee)](y);this[_0x34f3df(0x314)][_0x34f3df(0x237)](_0x4003ce||{});}async[_0x3d1bae(0x28a)](){var _0x21b392=_0x3d1bae;const _0x4eafbf=this[_0x21b392(0x20a)][_0x21b392(0x2ee)](y);if(!(_0x4eafbf!=null&&_0x4eafbf[_0x21b392(0x25b)]))return;const _0x283405=await this[_0x21b392(0x212)]['getItem'](D);_0x283405&&(this[_0x21b392(0x1e8)][_0x21b392(0x233)]({'Authorization':_0x21b392(0x220)+_0x283405}),this[_0x21b392(0x333)][_0x21b392(0x237)](_0x283405));}async['_validateConfig'](_0x2bc3e2){var _0x174766=_0x3d1bae;if(!_0x2bc3e2['apiKey']||_0x2bc3e2[_0x174766(0x2b9)]['trim']()[_0x174766(0x205)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x174766(0x29a)]['t'](_0x174766(0x228))};if(_0x2bc3e2['apiKey'][_0x174766(0x30e)]()[_0x174766(0x205)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x174766(0x29a)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x13de91=await this[_0x174766(0x285)][_0x174766(0x2bb)](s[_0x174766(0x300)])['validateApiKey'](_0x2bc3e2[_0x174766(0x2b9)][_0x174766(0x30e)]());return _0x13de91['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x13de91[_0x174766(0x2d4)]||this[_0x174766(0x29a)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x51e733){return console[_0x174766(0x2c8)](_0x174766(0x2ae),_0x51e733),{'isValid':!0x0};}}},exports[_0x3d1bae(0x2eb)]=Pe([f(0x0,l[_0x3d1bae(0x2bc)](l[_0x3d1bae(0x200)])),f(0x1,v[_0x3d1bae(0x2de)]),f(0x2,l['IConfigService']),f(0x3,l[_0x3d1bae(0x24d)]),f(0x4,v['IDialogService']),f(0x5,v['IMessageService']),f(0x6,l[_0x3d1bae(0x2bc)](v[_0x3d1bae(0x22c)])),f(0x7,l['Inject'](l[_0x3d1bae(0x1c9)])),f(0x8,l['ILogService']),f(0x9,l[_0x3d1bae(0x2bc)](s['MCPConnectionController']))],exports[_0x3d1bae(0x2eb)]);const j={'id':_0x3d1bae(0x311),'type':l['CommandType']['COMMAND'],'handler':async(_0x32d927,_0x4b8c23)=>(_0x32d927['get'](exports[_0x3d1bae(0x2eb)])[_0x3d1bae(0x2a5)](),!0x0)};function Z(_0x3c8cc7,_0x319266){var _0x38bc64=_0x3d1bae;switch(_0x3c8cc7){case s[_0x38bc64(0x33f)]['DISCONNECTED']:return'mcpStatus.disconnected';case s[_0x38bc64(0x33f)]['CONNECTING']:return'mcpStatus.connecting';case s[_0x38bc64(0x33f)][_0x38bc64(0x266)]:return _0x38bc64(0x1e5);case s[_0x38bc64(0x33f)][_0x38bc64(0x211)]:switch(_0x319266){case s[_0x38bc64(0x254)][_0x38bc64(0x2a4)]:return _0x38bc64(0x2ff);case s[_0x38bc64(0x254)]['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case s[_0x38bc64(0x254)]['NETWORK_ERROR']:return'mcpStatus.networkError';case s[_0x38bc64(0x254)][_0x38bc64(0x335)]:return _0x38bc64(0x291);default:return _0x38bc64(0x2e9);}case s[_0x38bc64(0x33f)][_0x38bc64(0x2c3)]:return _0x38bc64(0x1f3);default:return _0x38bc64(0x234);}}function ye(_0x5937d8,_0x3d2fce,_0xa94599,_0x5dfcb2=!0x0){var _0x1fbb35=_0x3d1bae;const _0x4bd9c5=Z(_0x5937d8,_0x3d2fce),_0x4672b6=_0xa94599['t'](_0x4bd9c5);return _0x5dfcb2?_0x5937d8===s[_0x1fbb35(0x33f)][_0x1fbb35(0x230)]&&_0x3d2fce===s['MCPConnectionError'][_0x1fbb35(0x2a4)]?_0x4672b6+'\x20-\x20'+_0xa94599['t'](_0x1fbb35(0x2e2)):_0x5937d8===s[_0x1fbb35(0x33f)][_0x1fbb35(0x266)]?''+_0x4672b6:_0x5937d8===s[_0x1fbb35(0x33f)][_0x1fbb35(0x230)]||_0x5937d8===s[_0x1fbb35(0x33f)][_0x1fbb35(0x211)]?_0x4672b6+_0x1fbb35(0x1d5)+_0xa94599['t']('mcpStatus.clickToConnect'):_0x4672b6:_0x4672b6;}function Ie(_0x75d1c7){var _0x3ff94f=_0x3d1bae;switch(_0x75d1c7){case s[_0x3ff94f(0x33f)][_0x3ff94f(0x266)]:return _0x3ff94f(0x2f3);case s[_0x3ff94f(0x33f)][_0x3ff94f(0x242)]:case s[_0x3ff94f(0x33f)][_0x3ff94f(0x2c3)]:return'univer-text-yellow-500';case s[_0x3ff94f(0x33f)][_0x3ff94f(0x211)]:case s[_0x3ff94f(0x33f)][_0x3ff94f(0x230)]:return _0x3ff94f(0x275);default:return _0x3ff94f(0x201);}}function X(_0x1cc890){var _0x1582b8=_0x3d1bae;const {status$:_0x73b5c3,error$:_0x387009,onConfigure:_0x4240ab,showClickable:_0xd5eec=!0x0}=_0x1cc890,_0x26eb59=v[_0x1582b8(0x26a)](_0x73b5c3,s[_0x1582b8(0x33f)][_0x1582b8(0x230)]),_0x421e07=v[_0x1582b8(0x26a)](_0x387009,s[_0x1582b8(0x254)][_0x1582b8(0x2e6)]),_0x372812=v[_0x1582b8(0x310)](l['LocaleService']),_0x16bf57=_0x26eb59===s[_0x1582b8(0x33f)][_0x1582b8(0x266)];_0x26eb59===s['MCPConnectionStatus'][_0x1582b8(0x242)]||s['MCPConnectionStatus'][_0x1582b8(0x2c3)];const _0x4409da=_0x372812['t'](Z(_0x26eb59,_0x421e07)),_0x2cbf40=ye(_0x26eb59,_0x421e07,_0x372812,_0xd5eec),_0x503580=Ie(_0x26eb59),_0x14b7a0=_0x16bf57?t[_0x1582b8(0x2b6)](V,{}):t[_0x1582b8(0x2b6)](q,{}),_0x584dcc=d[_0x1582b8(0x240)](()=>{_0xd5eec&&_0x4240ab&&_0x4240ab();},[_0xd5eec,_0x4240ab]);function _0x1f273f(){var _0x471751=_0x1582b8;return t['jsxs'](_0x471751(0x343),{'className':S[_0x471751(0x309)](_0x471751(0x2be),_0xd5eec&&_0x4240ab&&_0x471751(0x239)),'onClick':_0xd5eec&&_0x4240ab?_0x584dcc:void 0x0,'children':[t[_0x471751(0x2b6)](_0x471751(0x343),{'className':S[_0x471751(0x309)](_0x471751(0x2f7),_0x503580),'children':_0x14b7a0}),t['jsx'](_0x471751(0x343),{'className':_0x471751(0x2da),'children':_0x4409da})]});}return t[_0x1582b8(0x2b6)](S[_0x1582b8(0x2c4)],{'title':_0x2cbf40,'placement':_0x1582b8(0x287),'children':_0x1f273f()});}var _e=Object['getOwnPropertyDescriptor'],Me=(_0x3b6fb1,_0x4833f2,_0x33e54f,_0x53b86e)=>{for(var _0x1bb320=_0x53b86e>0x1?void 0x0:_0x53b86e?_e(_0x4833f2,_0x33e54f):_0x4833f2,_0x5693e8=_0x3b6fb1['length']-0x1,_0x2a6d03;_0x5693e8>=0x0;_0x5693e8--)(_0x2a6d03=_0x3b6fb1[_0x5693e8])&&(_0x1bb320=_0x2a6d03(_0x1bb320)||_0x1bb320);return _0x1bb320;},b=(_0x46c7a6,_0x92527)=>(_0xd4093,_0x3a452b)=>_0x92527(_0xd4093,_0x3a452b,_0x46c7a6);exports[_0x3d1bae(0x1f9)]=class extends l[_0x3d1bae(0x2a2)]{constructor(_0x5b72f1,_0x4df18b,_0x55629a,_0x926937){var _0x2d13e8=_0x3d1bae;super(),this[_0x2d13e8(0x285)]=_0x5b72f1,this[_0x2d13e8(0x340)]=_0x4df18b,this['_uiPartsService']=_0x55629a,this[_0x2d13e8(0x20a)]=_0x926937,this[_0x2d13e8(0x339)](),this[_0x2d13e8(0x30d)]();}[_0x3d1bae(0x339)](){var _0x2ed757=_0x3d1bae;const _0xb3e66=this[_0x2ed757(0x20a)][_0x2ed757(0x2ee)](y);_0xb3e66!=null&&_0xb3e66[_0x2ed757(0x25b)]&&(this['_connectionController'][_0x2ed757(0x263)]=!0x1);}['_initStatusComponent'](){var _0x2dae45=_0x3d1bae;const _0x2f8cc3=this[_0x2dae45(0x20a)][_0x2dae45(0x2ee)](y);(_0x2f8cc3==null?void 0x0:_0x2f8cc3['showStatus'])!==!0x1&&this[_0x2dae45(0x331)](this[_0x2dae45(0x277)][_0x2dae45(0x21b)](v[_0x2dae45(0x316)][_0x2dae45(0x1ca)],()=>{var _0x5cd65d=_0x2dae45,_0x1d54e2;return v[_0x5cd65d(0x1da)](Ne({'status$':this[_0x5cd65d(0x340)][_0x5cd65d(0x23d)],'error$':this[_0x5cd65d(0x340)][_0x5cd65d(0x2d8)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x1d54e2=_0x2f8cc3==null?void 0x0:_0x2f8cc3[_0x5cd65d(0x25b)])!=null?_0x1d54e2:!0x1}),this[_0x5cd65d(0x285)]);}));}['_handleConfigure'](){var _0x289842=_0x3d1bae;this['_injector'][_0x289842(0x2bb)](exports[_0x289842(0x2eb)])[_0x289842(0x2a5)]();}},exports[_0x3d1bae(0x1f9)]=Me([b(0x0,l['Inject'](l[_0x3d1bae(0x200)])),b(0x1,l[_0x3d1bae(0x2bc)](s['MCPConnectionController'])),b(0x2,v['IUIPartsService']),b(0x3,l[_0x3d1bae(0x286)])],exports['MCPConnectionUIController']);function Ne(_0x36b7cc){const {status$:_0x24a59e,error$:_0x371342,onConfigure:_0x29f0f8,showClickable:_0x57b502}=_0x36b7cc;return function(){var _0x56aa42=_0x3e74;return t[_0x56aa42(0x2b6)](X,{'status$':_0x24a59e,'error$':_0x371342,'onConfigure':_0x29f0f8,'showClickable':_0x57b502});};}function be(_0x299cd7){var _0x1cd3c3=_0x3d1bae;return{'id':j['id'],'type':v[_0x1cd3c3(0x21c)][_0x1cd3c3(0x248)],'icon':_0x1cd3c3(0x229),'title':_0x1cd3c3(0x303),'tooltip':'mcpConfig.title'};}function _0x25e8(){var _0x3b1cb4=['mcp-config-dialog','CONNECTED','url(#on-line-icon_clip0_910_349)','help-single','MCP:\x20会话\x20ID\x20已被占用','useObservable','univer-font-medium','univer-flex\x20univer-items-center\x20univer-gap-2','span','OpenMCPConfigPanelCommand','_menuManagerService','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','setConfig','_logService','配置步骤:','add','univer-text-red-500','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_uiPartsService','mergeMenu','on-line-icon','getOwnPropertySymbols','getOwnPropertyDescriptor','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','defs','mcpConfig.configStep1','mcpConfig.configStepTitle','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','WebSocketService','MCP\x20Connected','hasOwnProperty','mcpConfig.configStep3','_injector','IConfigService','bottom','Failed\x20to\x20save\x20configuration','API\x20密钥不能为空','_loadStoredApiKey','clipPath','defIds','getCurrentConfig','apply','mcpConfig.apiKeyHint','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.maxRetriesExceeded','close','MCP\x20Disconnected','univer-flex\x20univer-items-start\x20univer-gap-2','_commandService','MCP:\x20Network\x20Error','UniverMCPPlugin','className','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_localeService','evenodd','univer-bg-blue-500','mcpConfig.connectionStatus.connecting','Enable\x20Authentication','has','call','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Disposable','mcpConfig.description','UNAUTHORIZED','showConfigPanel','启用身份验证以获得安全连接','<API_KEY>','removeItem','onStarting','url(#$1','mcpConfig.connectionError.unauthorized','会话ID','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Configuration\x20saved\x20successfully','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.connectionInfo','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','请输入您的\x20API\x20密钥','_handleConfigSave','_config','jsx','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_initializeCommands','apiKey','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','get','Inject','0\x200\x2017\x2016','univer-flex\x20univer-items-center','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','forEach','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','RETRYING','Tooltip','已连接','univer.ai','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','warn','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','colorChannel1','zhCN','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP:\x20Max\x20Retries\x20Exceeded','8VIjfyc','HelpSingle','启用身份验证','subscribeConfigValue$','DependentOn','error','errorMessage','univer_session_id:','ISocketService','connectionError$','univer-space-y-4','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','createElement','off-line-icon_clip0_910_343','IUIPartsService','Error','fill','round','mcpStatus.clickToConfigure','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.authorizationDescription','value','NONE','univer-flex-1','连接中...','mcpStatus.failed','sessionId$','MCPConfigUIController','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','extend','getConfig','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-space-y-5','mcpConfig.apiApplyInfo.title','symbol','univer-text-green-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20密钥无效,请检查密钥是否正确','134253SNkeyT','univer-mr-2\x20univer-flex\x20univer-text-xl','1em','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcp-ui.config','register','mcpConfig.saving','_validateConfig','24QGpQbi','mcpStatus.unauthorized','MCPConnectionController','on-line-icon_clip0_910_349','2423632FzJuOZ','mcpConfig.title','0\x200\x2017\x2017','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','toStringTag','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP:\x20Session\x20ID\x20Occupied','clsx','_createConfigPanelComponent','none','univer-text-xs\x20univer-text-gray-600','_initStatusComponent','trim','univer-flex\x20univer-items-start\x20univer-gap-3','useDependency','mcp-ui.command.openConfigPanel','3335000iEBHAV','MCP\x20重连中...','_config$','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','BuiltInUIPart','_registerComponent','Saving...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','您的\x20API\x20密钥将在此浏览器中本地存储','MCP:\x20超出最大重试次数','mask','setItem','MCPStatusDisplay','您的\x20API\x20密钥安全存储在本地存储中','show','Button','use','未连接','配置\x20MCP\x20使用\x20AI\x20操作电子表格','1254970JfWPqh','path','1048533nFrBhh','Enable\x20authentication\x20for\x20secure\x20connections','Close','attrs','replace','MCP\x20已连接','Connection\x20Failed','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpConfig.apiApplyInfo.getStarted','white','disposeWithMe','MCP:\x20未授权','_apiKey$','displayName','MAX_RETRIES_EXCEEDED','CloseSmallSingle','复制以下\x20JSON\x20配置','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','_initAutoConnect','MCP\x20配置','jsxs','children','RibbonStartGroup','M5.21243\x2012.287L11.8791\x205.62036','MCPConnectionStatus','_connectionController','UniverIcon','mcpConfig.apiKey','div','MCP\x20Configuration','Success','Invalid\x20configuration','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP_PLUGIN_CONFIG_KEY','Module','MCP\x20Unknown\x20Status','includes','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20连接失败','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','defineProperty','useRef','MCP\x20Connection\x20Failed','mcpConfig.connectionError.maxRetriesExceeded','univer-space-y-2','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','API\x20key\x20is\x20required','LocaleService','HEADER_MENU','_initConfigSync','Save\x20Configuration','javascript:void(0)','Univer\x20AI\x20Console','API\x20Key','mcpConfig.save','Enter\x20your\x20API\x20key','MCP\x20连接中...','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','icon','\x20-\x20','_mcpCoreConfig$','currentColor','几秒钟内获取您的\x20API\x20密钥','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','connectInjector','entries','univer-text-blue-600','API\x20密钥','mcpConfig.configParameters','univer-min-w-0\x20univer-flex-1','配置保存失败','9nkToki','保存配置','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','Plugin','mcpStatus.connected','off-line-icon','mcpServerUrl','_mcpConnectionController','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','0\x200\x2016\x2016','_blank','MCP\x20Retrying...','enUS','univer-text-xs\x20univer-text-gray-500','svg','重启您的\x20MCP\x20客户端以使配置生效','最大重试次数','mcpStatus.retrying','UniverMCPUIPlugin','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Input','MCPConnectionUIController','MCP\x20客户端配置','merge','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','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','pluginName','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Injector','univer-text-gray-500','MCP_UI_PLUGIN','_loading$','univer-text-sm\x20univer-font-medium','length','univer-bg-green-500','substring','mcpConfig.validation.invalidConfig','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_configService','超出最大重试次数,请稍后再试','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-bg-gray-500','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','assign','_componentManager','FAILED','_localStorageService','1ekgivO','open','mcpConfig.connectionStatus.failed','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.connectionError.networkError','http://www.w3.org/2000/svg','_dialogService','indexOf','registerComponent','MenuItemType','xlink:href','mcp.apiKey','MCPUIMenuController','Bearer\x20','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','prototype','idSuffix','IMenuManagerService','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1065986dVkCYv','noopener\x20noreferrer','mcpConfig.validation.apiKeyRequired','MenuIcon','univerjs-icon\x20univerjs-icon-','forwardRef','ComponentManager','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','Univer\x20AI\x20控制台','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','DISCONNECTED','_messageService','mcpConfig.sessionIdDescription','__setCustomHeaders','mcpStatus.unknown','subscribe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','next','Max\x20Retries','\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','2929146jxNNye','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Disconnected','connectionStatus$','Click\x20to\x20connect\x20MCP','NETWORK_ERROR','useCallback','mcpConfig.apiApplyInfo.description','CONNECTING','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','MCP:\x20网络错误','MCPConfigPanel','univer-text-white','concat','BUTTON','配置更改将立即生效','mcpConfig.apiKeyPlaceholder','mcpConfig.configInstructions','tag','ILocalStorageService','string','BehaviorSubject','会话\x20ID\x20已被占用,请稍后再试','map','SESSION_ID_OCCUPIED','translate(.97)','MCPConnectionError','univer-space-y-3','text','M0\x200H16V16H0z','url(#off-line-icon_clip0_910_343)','mcpConfig.connectionStatus.connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','showDeveloperTools','univer.plus','univer-bg-red-500','isValid','mcpConfig.configSaved','什么是\x20API\x20密钥?','OTHERS','_initializeMenus','enableAutoConnect','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.'];_0x25e8=function(){return _0x3b1cb4;};return _0x25e8();}const je={[v[_0x3d1bae(0x33d)][_0x3d1bae(0x261)]]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object['getOwnPropertyDescriptor'],we=(_0x3c5c5f,_0x48f5bc,_0x4d0328,_0x3fb5d6)=>{var _0x6ee292=_0x3d1bae;for(var _0xefab36=_0x3fb5d6>0x1?void 0x0:_0x3fb5d6?Ee(_0x48f5bc,_0x4d0328):_0x48f5bc,_0xb3e739=_0x3c5c5f[_0x6ee292(0x205)]-0x1,_0x4defd2;_0xb3e739>=0x0;_0xb3e739--)(_0x4defd2=_0x3c5c5f[_0xb3e739])&&(_0xefab36=_0x4defd2(_0xefab36)||_0xefab36);return _0xefab36;},z=(_0x1201ed,_0x1d6eb8)=>(_0x177bda,_0x262310)=>_0x1d6eb8(_0x177bda,_0x262310,_0x1201ed);exports[_0x3d1bae(0x21f)]=class extends l['Disposable']{constructor(_0x5e0ee3,_0x22eb46){var _0x4dc01a=_0x3d1bae;super(),this[_0x4dc01a(0x295)]=_0x5e0ee3,this[_0x4dc01a(0x26f)]=_0x22eb46,this[_0x4dc01a(0x2b8)](),this['_initializeMenus']();}['_initializeCommands'](){var _0x4dbc6f=_0x3d1bae;[j][_0x4dbc6f(0x2c0)](_0x28b1bd=>{var _0x43fa6e=_0x4dbc6f;this['disposeWithMe'](this[_0x43fa6e(0x295)]['registerCommand'](_0x28b1bd));});}[_0x3d1bae(0x262)](){var _0x3784ca=_0x3d1bae;this[_0x3784ca(0x26f)][_0x3784ca(0x278)](je);}},exports['MCPUIMenuController']=we([z(0x0,l['ICommandService']),z(0x1,v[_0x3d1bae(0x224)])],exports[_0x3d1bae(0x21f)]);const Oe={'mcpStatus':{'disconnected':_0x3d1bae(0x293),'connecting':'MCP\x20Connecting...','connected':_0x3d1bae(0x282),'failed':_0x3d1bae(0x1c4),'retrying':_0x3d1bae(0x1ed),'unknown':_0x3d1bae(0x1bd),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3d1bae(0x308),'networkError':_0x3d1bae(0x296),'maxRetriesExceeded':_0x3d1bae(0x2ce),'clickToConnect':_0x3d1bae(0x23e),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3d1bae(0x344),'description':_0x3d1bae(0x25a),'apiKey':_0x3d1bae(0x1cf),'apiKeyPlaceholder':_0x3d1bae(0x1d1),'apiKeyHint':_0x3d1bae(0x2ad),'enableAuth':_0x3d1bae(0x29e),'enableAuthHint':_0x3d1bae(0x328),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3d1bae(0x2c7),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3d1bae(0x1f5),'sessionIdDescription':_0x3d1bae(0x264),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x3d1bae(0x238),'save':_0x3d1bae(0x1cc),'saving':_0x3d1bae(0x318),'note1':_0x3d1bae(0x270),'note2':_0x3d1bae(0x1d9),'configSaved':_0x3d1bae(0x2af),'configError':_0x3d1bae(0x288),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3d1bae(0x20c),'univerAiLabel':_0x3d1bae(0x1ce),'getStarted':_0x3d1bae(0x1f6)},'validation':{'apiKeyRequired':_0x3d1bae(0x1c8),'apiKeyTooShort':_0x3d1bae(0x225),'invalidConfig':_0x3d1bae(0x346),'invalidApiKey':_0x3d1bae(0x1f7)},'connectionStatus':{'disconnected':_0x3d1bae(0x23c),'connecting':'Connecting...','connected':'Connected','failed':_0x3d1bae(0x32d),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3d1bae(0x2c9),'sessionOccupied':_0x3d1bae(0x27c),'networkError':_0x3d1bae(0x276),'maxRetriesExceeded':_0x3d1bae(0x2c2)}}},Ae={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x3d1bae(0x1d2),'connected':_0x3d1bae(0x32c),'failed':_0x3d1bae(0x1c0),'retrying':_0x3d1bae(0x313),'unknown':'MCP\x20状态未知','unauthorized':_0x3d1bae(0x332),'sessionOccupied':_0x3d1bae(0x269),'networkError':_0x3d1bae(0x244),'maxRetriesExceeded':_0x3d1bae(0x31b),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3d1bae(0x33a),'description':_0x3d1bae(0x324),'apiKey':_0x3d1bae(0x1dd),'apiKeyPlaceholder':_0x3d1bae(0x2b3),'apiKeyHint':_0x3d1bae(0x31a),'enableAuth':_0x3d1bae(0x2d1),'enableAuthHint':_0x3d1bae(0x2a6),'connectionInfo':_0x3d1bae(0x1fa),'mcpClientConfig':_0x3d1bae(0x1fa),'configInstructions':_0x3d1bae(0x2cd),'configStepTitle':_0x3d1bae(0x273),'configStep1':_0x3d1bae(0x337),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x3d1bae(0x1f1),'sessionId':_0x3d1bae(0x2ac),'sessionIdDescription':_0x3d1bae(0x32e),'authorizationDescription':_0x3d1bae(0x347),'configParameters':'配置参数:','maxRetries':_0x3d1bae(0x1f2),'save':_0x3d1bae(0x1e2),'saving':'保存中...','note1':_0x3d1bae(0x249),'note2':_0x3d1bae(0x31f),'configSaved':'配置保存成功','configError':_0x3d1bae(0x1e0),'apiApplyInfo':{'title':_0x3d1bae(0x260),'description':_0x3d1bae(0x209),'univerAiLabel':_0x3d1bae(0x22e),'getStarted':_0x3d1bae(0x1d8)},'validation':{'apiKeyRequired':_0x3d1bae(0x289),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x3d1bae(0x2f5)},'connectionStatus':{'disconnected':_0x3d1bae(0x323),'connecting':_0x3d1bae(0x2e8),'connected':_0x3d1bae(0x2c5),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3d1bae(0x250),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x3d1bae(0x20b)}}};var De=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ue=(_0x34fcc0,_0x531cd4,_0x4a63b0)=>_0x531cd4 in _0x34fcc0?De(_0x34fcc0,_0x531cd4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a63b0}):_0x34fcc0[_0x531cd4]=_0x4a63b0,Te=(_0x3302e3,_0x110689,_0x1ad583,_0x332c68)=>{var _0x29b375=_0x3d1bae;for(var _0x594b36=_0x332c68>0x1?void 0x0:_0x332c68?ke(_0x110689,_0x1ad583):_0x110689,_0x3ec98a=_0x3302e3[_0x29b375(0x205)]-0x1,_0x107f2f;_0x3ec98a>=0x0;_0x3ec98a--)(_0x107f2f=_0x3302e3[_0x3ec98a])&&(_0x594b36=_0x107f2f(_0x594b36)||_0x594b36);return _0x594b36;},M=(_0x397fcc,_0x5cbbe5)=>(_0x12d0f6,_0x2db269)=>_0x5cbbe5(_0x12d0f6,_0x2db269,_0x397fcc),$e=(_0x2848e1,_0x58b5df,_0x307009)=>Ue(_0x2848e1,_0x58b5df+'',_0x307009);exports[_0x3d1bae(0x1f4)]=class extends l[_0x3d1bae(0x1e4)]{constructor(_0x51f2c2=G,_0x279020,_0x4cc2c5,_0x273348,_0x421c93,_0x1ee564){var _0x3a1401=_0x3d1bae;super(),this[_0x3a1401(0x2b5)]=_0x51f2c2,this[_0x3a1401(0x285)]=_0x279020,this['_configService']=_0x4cc2c5,this[_0x3a1401(0x277)]=_0x273348,this[_0x3a1401(0x212)]=_0x421c93,this[_0x3a1401(0x29a)]=_0x1ee564;const {..._0xe8f813}=l[_0x3a1401(0x1fb)]({},G,this['_config']);this[_0x3a1401(0x20a)][_0x3a1401(0x271)](y,_0xe8f813);}async[_0x3d1bae(0x2a9)](){var _0x204201=_0x3d1bae;const _0x429d0f=[[exports[_0x204201(0x1f9)]],[exports[_0x204201(0x2eb)]],[exports[_0x204201(0x21f)]]];this['_injector'][_0x204201(0x29f)](A['ISocketService'])||_0x429d0f['push']([A[_0x204201(0x2d7)],{'useClass':A[_0x204201(0x281)]}]),_0x429d0f[_0x204201(0x2c0)](_0x4b0639=>this['_injector'][_0x204201(0x274)](_0x4b0639)),this[_0x204201(0x285)][_0x204201(0x2bb)](exports[_0x204201(0x1f9)]),this[_0x204201(0x285)]['get'](exports[_0x204201(0x2eb)]),this[_0x204201(0x285)]['get'](exports[_0x204201(0x21f)]);}},$e(exports[_0x3d1bae(0x1f4)],_0x3d1bae(0x1fe),_0x3d1bae(0x202)),exports[_0x3d1bae(0x1f4)]=Te([l[_0x3d1bae(0x2d3)](s[_0x3d1bae(0x297)]),M(0x1,l[_0x3d1bae(0x2bc)](l[_0x3d1bae(0x200)])),M(0x2,l['IConfigService']),M(0x3,v[_0x3d1bae(0x2de)]),M(0x4,l[_0x3d1bae(0x24d)]),M(0x5,l[_0x3d1bae(0x2bc)](l[_0x3d1bae(0x1c9)]))],exports[_0x3d1bae(0x1f4)]),exports['MCPConfigPanel']=W,exports[_0x3d1bae(0x31e)]=X,exports[_0x3d1bae(0x26e)]=j,exports[_0x3d1bae(0x1ee)]=Oe,exports[_0x3d1bae(0x2cb)]=Ae;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x2fa1(_0x592249,_0x31564f){const _0x8f8bbc=_0x8f8b();return _0x2fa1=function(_0x2fa1e3,_0x3ec582){_0x2fa1e3=_0x2fa1e3-0x1f4;let _0x1b5b9d=_0x8f8bbc[_0x2fa1e3];return _0x1b5b9d;},_0x2fa1(_0x592249,_0x31564f);}const _0x7b792d=_0x2fa1;(function(_0x1ed554,_0x23dfe3){const _0x86442b=_0x2fa1,_0x3e746b=_0x1ed554();while(!![]){try{const _0x148b48=-parseInt(_0x86442b(0x222))/0x1+parseInt(_0x86442b(0x215))/0x2+-parseInt(_0x86442b(0x209))/0x3*(parseInt(_0x86442b(0x21a))/0x4)+parseInt(_0x86442b(0x210))/0x5+-parseInt(_0x86442b(0x216))/0x6+parseInt(_0x86442b(0x213))/0x7+-parseInt(_0x86442b(0x200))/0x8*(-parseInt(_0x86442b(0x202))/0x9);if(_0x148b48===_0x23dfe3)break;else _0x3e746b['push'](_0x3e746b['shift']());}catch(_0xc1de55){_0x3e746b['push'](_0x3e746b['shift']());}}}(_0x8f8b,0x392c5));function _0x8f8b(){const _0x901c3f=['Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','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','MCP:\x20Unauthorized','746034FMLpeK','Save\x20Configuration','Connected','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Max\x20Retries','2108630izgalJ','Enter\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','1848532UAooba','Configuration\x20Steps:','429262eqLtGB','1714578ayAIng','MCP\x20Retrying...','Connection\x20Failed','MCP\x20Client\x20Configuration','4ZBxNsf','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Retrying...','MCP\x20Connecting...','Saving...','Click\x20to\x20connect\x20MCP','MCP\x20Unknown\x20Status','262723WJgdYM','Click\x20to\x20configure\x20MCP','Invalid\x20configuration','Session\x20ID','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','exports','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','523648LUJzWS','Univer\x20AI\x20Console','18bIIdaf'];_0x8f8b=function(){return _0x901c3f;};return _0x8f8b();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x7b792d(0x21e),'connected':_0x7b792d(0x21c),'failed':'MCP\x20Connection\x20Failed','retrying':_0x7b792d(0x217),'unknown':_0x7b792d(0x221),'unauthorized':_0x7b792d(0x208),'sessionOccupied':_0x7b792d(0x212),'networkError':_0x7b792d(0x1f8),'maxRetriesExceeded':_0x7b792d(0x1fc),'clickToConnect':_0x7b792d(0x220),'clickToConfigure':_0x7b792d(0x1f4)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x7b792d(0x204),'apiKeyPlaceholder':_0x7b792d(0x211),'apiKeyHint':_0x7b792d(0x20e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x7b792d(0x203),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x7b792d(0x219),'configInstructions':_0x7b792d(0x1fb),'configStepTitle':_0x7b792d(0x214),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x7b792d(0x1fa),'sessionId':_0x7b792d(0x1f6),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x7b792d(0x21b),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x7b792d(0x20f),'save':_0x7b792d(0x20a),'saving':_0x7b792d(0x21f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x7b792d(0x1f7),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x7b792d(0x20c),'description':_0x7b792d(0x206),'univerAiLabel':_0x7b792d(0x201),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x7b792d(0x1ff),'apiKeyTooShort':_0x7b792d(0x20d),'invalidConfig':_0x7b792d(0x1f5),'invalidApiKey':_0x7b792d(0x205)},'connectionStatus':{'disconnected':_0x7b792d(0x207),'connecting':'Connecting...','connected':_0x7b792d(0x20b),'failed':_0x7b792d(0x218),'retrying':_0x7b792d(0x21d)},'connectionError':{'unauthorized':_0x7b792d(0x1fe),'sessionOccupied':_0x7b792d(0x1f9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x7b792d(0x1fd)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x21c9e8=_0x3480;(function(_0x57b94b,_0x2b1e2a){const _0x717cf9=_0x3480,_0x52788f=_0x57b94b();while(!![]){try{const _0x1a14d9=-parseInt(_0x717cf9(0x17d))/0x1*(-parseInt(_0x717cf9(0x168))/0x2)+parseInt(_0x717cf9(0x161))/0x3*(-parseInt(_0x717cf9(0x163))/0x4)+-parseInt(_0x717cf9(0x177))/0x5+parseInt(_0x717cf9(0x166))/0x6+parseInt(_0x717cf9(0x15a))/0x7*(-parseInt(_0x717cf9(0x179))/0x8)+parseInt(_0x717cf9(0x153))/0x9+parseInt(_0x717cf9(0x169))/0xa*(-parseInt(_0x717cf9(0x17b))/0xb);if(_0x1a14d9===_0x2b1e2a)break;else _0x52788f['push'](_0x52788f['shift']());}catch(_0x441bc8){_0x52788f['push'](_0x52788f['shift']());}}}(_0x5115,0x3b4a5));function _0x3480(_0x24ba8f,_0x3fddf3){const _0x51151b=_0x5115();return _0x3480=function(_0x348012,_0x3ce398){_0x348012=_0x348012-0x151;let _0x1b477a=_0x51151b[_0x348012];return _0x1b477a;},_0x3480(_0x24ba8f,_0x3fddf3);}const e={'mcpStatus':{'disconnected':_0x21c9e8(0x17c),'connecting':_0x21c9e8(0x15c),'connected':_0x21c9e8(0x16c),'failed':_0x21c9e8(0x152),'retrying':_0x21c9e8(0x17e),'unknown':_0x21c9e8(0x160),'unauthorized':_0x21c9e8(0x151),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x21c9e8(0x17a),'clickToConnect':_0x21c9e8(0x154),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x21c9e8(0x16e),'description':_0x21c9e8(0x16f),'apiKey':_0x21c9e8(0x157),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x21c9e8(0x174),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x21c9e8(0x156),'configStepTitle':_0x21c9e8(0x16b),'configStep1':_0x21c9e8(0x16a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x21c9e8(0x180),'sessionId':_0x21c9e8(0x171),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x21c9e8(0x15b),'maxRetries':'Max\x20Retries','save':_0x21c9e8(0x155),'saving':_0x21c9e8(0x159),'note1':_0x21c9e8(0x162),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x21c9e8(0x172),'configError':_0x21c9e8(0x164),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x21c9e8(0x15d),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x21c9e8(0x16d)},'validation':{'apiKeyRequired':_0x21c9e8(0x173),'apiKeyTooShort':_0x21c9e8(0x178),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x21c9e8(0x175)},'connectionStatus':{'disconnected':_0x21c9e8(0x158),'connecting':_0x21c9e8(0x170),'connected':_0x21c9e8(0x17f),'failed':_0x21c9e8(0x165),'retrying':_0x21c9e8(0x15e)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x21c9e8(0x176),'networkError':_0x21c9e8(0x15f),'maxRetriesExceeded':_0x21c9e8(0x167)}}};function _0x5115(){const _0x5395a0=['249uEvbcB','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2148ZkOLRC','Failed\x20to\x20save\x20configuration','Connection\x20Failed','1729338RqqthL','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2cGjKfi','10USoFjW','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Steps:','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connecting...','Session\x20ID','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','471840JQhAXg','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','48568rHcVqv','MCP:\x20Max\x20Retries\x20Exceeded','3074258jCaceZ','MCP\x20Disconnected','407328wJEfjY','MCP\x20Retrying...','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','1385280QToQLg','Click\x20to\x20connect\x20MCP','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','Disconnected','Saving...','217JXluIg','Configuration\x20Parameters:','MCP\x20Connecting...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Unknown\x20Status'];_0x5115=function(){return _0x5395a0;};return _0x5115();}module['exports']=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x5d08a4=_0x2d67;(function(_0x124f01,_0x3fa8b3){const _0xdc704d=_0x2d67,_0x1697bc=_0x124f01();while(!![]){try{const _0x139bb9=-parseInt(_0xdc704d(0x135))/0x1*(-parseInt(_0xdc704d(0x140))/0x2)+parseInt(_0xdc704d(0x138))/0x3*(-parseInt(_0xdc704d(0x13f))/0x4)+parseInt(_0xdc704d(0x11c))/0x5*(-parseInt(_0xdc704d(0x12f))/0x6)+parseInt(_0xdc704d(0x129))/0x7*(parseInt(_0xdc704d(0x139))/0x8)+-parseInt(_0xdc704d(0x118))/0x9+parseInt(_0xdc704d(0x119))/0xa+parseInt(_0xdc704d(0x137))/0xb;if(_0x139bb9===_0x3fa8b3)break;else _0x1697bc['push'](_0x1697bc['shift']());}catch(_0x49bab1){_0x1697bc['push'](_0x1697bc['shift']());}}}(_0x4b36,0x2398a));function _0x2d67(_0xf0922f,_0x5958f7){const _0x4b36b6=_0x4b36();return _0x2d67=function(_0x2d672a,_0x1e42b6){_0x2d672a=_0x2d672a-0x10f;let _0x7e3f2a=_0x4b36b6[_0x2d672a];return _0x7e3f2a;},_0x2d67(_0xf0922f,_0x5958f7);}function _0x4b36(){const _0x203d48=['MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','1071747FMyOUd','1491200tjOXnm','MCP\x20Connected','Enable\x20authentication\x20for\x20secure\x20connections','10nuLITN','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','MCP:\x20Unauthorized','Failed\x20to\x20save\x20configuration','Save\x20Configuration','Enable\x20Authentication','123207oubrtc','MCP\x20Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','Connecting...','Configuration\x20Parameters:','202614gGhWsC','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Retrying...','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully','3mvUsoz','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','2353637YhWyGA','345lJDzkT','16qskygG','Connection\x20Failed','Disconnected','Configuration\x20Steps:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connecting...','3796GTLRlj','28846UMEEhb','Retrying...','exports','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration'];_0x4b36=function(){return _0x203d48;};return _0x4b36();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5d08a4(0x13e),'connected':_0x5d08a4(0x11a),'failed':_0x5d08a4(0x12a),'retrying':_0x5d08a4(0x132),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5d08a4(0x125),'sessionOccupied':_0x5d08a4(0x133),'networkError':_0x5d08a4(0x143),'maxRetriesExceeded':_0x5d08a4(0x120),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5d08a4(0x117)},'mcpConfig':{'title':_0x5d08a4(0x124),'description':_0x5d08a4(0x10f),'apiKey':_0x5d08a4(0x122),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5d08a4(0x113),'enableAuth':_0x5d08a4(0x128),'enableAuthHint':_0x5d08a4(0x11b),'connectionInfo':_0x5d08a4(0x115),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x5d08a4(0x13c),'configStep1':_0x5d08a4(0x123),'configStep2':_0x5d08a4(0x11d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5d08a4(0x116),'configParameters':_0x5d08a4(0x12e),'maxRetries':'Max\x20Retries','save':_0x5d08a4(0x127),'saving':_0x5d08a4(0x111),'note1':_0x5d08a4(0x12b),'note2':_0x5d08a4(0x121),'configSaved':_0x5d08a4(0x134),'configError':_0x5d08a4(0x126),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5d08a4(0x11f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5d08a4(0x11e)},'validation':{'apiKeyRequired':_0x5d08a4(0x12c),'apiKeyTooShort':_0x5d08a4(0x110),'invalidConfig':_0x5d08a4(0x114),'invalidApiKey':_0x5d08a4(0x130)},'connectionStatus':{'disconnected':_0x5d08a4(0x13b),'connecting':_0x5d08a4(0x12d),'connected':_0x5d08a4(0x112),'failed':_0x5d08a4(0x13a),'retrying':_0x5d08a4(0x141)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5d08a4(0x136),'networkError':_0x5d08a4(0x131),'maxRetriesExceeded':_0x5d08a4(0x13d)}}},n=e;module[_0x5d08a4(0x142)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x4562(){const _0x210f55=['Copy\x20the\x20JSON\x20configuration\x20below','What\x20is\x20API\x20Key?','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Disconnected','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Steps:','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','exports','Failed\x20to\x20save\x20configuration','MCP\x20Connected','MCP:\x20Max\x20Retries\x20Exceeded','14290299VFEsJu','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Click\x20to\x20connect\x20MCP','854261xiZyPA','78slBDtN','API\x20Key','Connected','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1074590eqepMu','261afYKIT','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1469208IbIEZm','MCP\x20Connection\x20Failed','API\x20key\x20is\x20required','Saving...','362859OyNMfe','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Network\x20Error','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20authentication\x20for\x20secure\x20connections','Get\x20your\x20API\x20key\x20in\x20seconds','9046968zcIGKO','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','23064RuVXPG','Configuration\x20Parameters:'];_0x4562=function(){return _0x210f55;};return _0x4562();}function _0xbf29(_0x231fa8,_0x445e82){const _0x4562cf=_0x4562();return _0xbf29=function(_0xbf2912,_0x597a23){_0xbf2912=_0xbf2912-0x153;let _0x498624=_0x4562cf[_0xbf2912];return _0x498624;},_0xbf29(_0x231fa8,_0x445e82);}const _0x3bc5e7=_0xbf29;(function(_0x56b9ed,_0x5473d4){const _0x27ff86=_0xbf29,_0x1bb433=_0x56b9ed();while(!![]){try{const _0x300745=parseInt(_0x27ff86(0x174))/0x1+parseInt(_0x27ff86(0x15f))/0x2*(-parseInt(_0x27ff86(0x17d))/0x3)+parseInt(_0x27ff86(0x181))/0x4+parseInt(_0x27ff86(0x17c))/0x5+-parseInt(_0x27ff86(0x175))/0x6*(-parseInt(_0x27ff86(0x185))/0x7)+parseInt(_0x27ff86(0x15a))/0x8+-parseInt(_0x27ff86(0x170))/0x9;if(_0x300745===_0x5473d4)break;else _0x1bb433['push'](_0x1bb433['shift']());}catch(_0x37ad9d){_0x1bb433['push'](_0x1bb433['shift']());}}}(_0x4562,0x9eb9a));const e={'mcpStatus':{'disconnected':_0x3bc5e7(0x164),'connecting':_0x3bc5e7(0x156),'connected':_0x3bc5e7(0x16e),'failed':_0x3bc5e7(0x182),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3bc5e7(0x15c),'networkError':_0x3bc5e7(0x155),'maxRetriesExceeded':_0x3bc5e7(0x16f),'clickToConnect':_0x3bc5e7(0x173),'clickToConfigure':_0x3bc5e7(0x17a)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3bc5e7(0x186),'apiKey':_0x3bc5e7(0x176),'apiKeyPlaceholder':_0x3bc5e7(0x169),'apiKeyHint':_0x3bc5e7(0x180),'enableAuth':_0x3bc5e7(0x165),'enableAuthHint':_0x3bc5e7(0x158),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3bc5e7(0x153),'configInstructions':_0x3bc5e7(0x17b),'configStepTitle':_0x3bc5e7(0x168),'configStep1':_0x3bc5e7(0x161),'configStep2':_0x3bc5e7(0x17e),'configStep3':_0x3bc5e7(0x163),'sessionId':'Session\x20ID','sessionIdDescription':_0x3bc5e7(0x15d),'authorizationDescription':_0x3bc5e7(0x15b),'configParameters':_0x3bc5e7(0x160),'maxRetries':_0x3bc5e7(0x17f),'save':'Save\x20Configuration','saving':_0x3bc5e7(0x184),'note1':_0x3bc5e7(0x154),'note2':_0x3bc5e7(0x167),'configSaved':_0x3bc5e7(0x15e),'configError':_0x3bc5e7(0x16d),'apiApplyInfo':{'title':_0x3bc5e7(0x162),'description':_0x3bc5e7(0x188),'univerAiLabel':_0x3bc5e7(0x178),'getStarted':_0x3bc5e7(0x159)},'validation':{'apiKeyRequired':_0x3bc5e7(0x183),'apiKeyTooShort':_0x3bc5e7(0x179),'invalidConfig':_0x3bc5e7(0x16b),'invalidApiKey':_0x3bc5e7(0x157)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x3bc5e7(0x177),'failed':_0x3bc5e7(0x172),'retrying':_0x3bc5e7(0x187)},'connectionError':{'unauthorized':_0x3bc5e7(0x166),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3bc5e7(0x16a),'maxRetriesExceeded':_0x3bc5e7(0x171)}}},n=e;module[_0x3bc5e7(0x16c)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x3f3e(){const _0x26fd68=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','MCP:\x20Max\x20Retries\x20Exceeded','2061cWFUNk','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','5238zTOniu','Click\x20to\x20configure\x20MCP','exports','Connected','3793560SplqgY','33nSskNn','Max\x20Retries','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','1673090JCisXO','3904210sUvUEz','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Get\x20your\x20API\x20key\x20in\x20seconds','Enter\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connecting...','API\x20key\x20is\x20required','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','5715912PZDIou','Saving...','45624BYFGMs','Enable\x20Authentication','MCP\x20Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','Connection\x20Failed','Retrying...','What\x20is\x20API\x20Key?','6159250mFObII','MCP\x20Retrying...','1nLYACs','10661DfwctR','Save\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x3f3e=function(){return _0x26fd68;};return _0x3f3e();}const _0x23c816=_0x29d5;(function(_0x59b3d9,_0x33eb99){const _0x512f9a=_0x29d5,_0x5717ae=_0x59b3d9();while(!![]){try{const _0x3100cd=parseInt(_0x512f9a(0xb2))/0x1*(parseInt(_0x512f9a(0xd0))/0x2)+parseInt(_0x512f9a(0xc9))/0x3+parseInt(_0x512f9a(0xa4))/0x4+-parseInt(_0x512f9a(0xb0))/0x5+-parseInt(_0x512f9a(0xc5))/0x6*(parseInt(_0x512f9a(0xb3))/0x7)+-parseInt(_0x512f9a(0xa6))/0x8*(parseInt(_0x512f9a(0xc1))/0x9)+parseInt(_0x512f9a(0xd1))/0xa*(parseInt(_0x512f9a(0xca))/0xb);if(_0x3100cd===_0x33eb99)break;else _0x5717ae['push'](_0x5717ae['shift']());}catch(_0x929719){_0x5717ae['push'](_0x5717ae['shift']());}}}(_0x3f3e,0xcb962));function _0x29d5(_0x399abb,_0x3a3995){const _0x3f3ef6=_0x3f3e();return _0x29d5=function(_0x29d50e,_0x3bd432){_0x29d50e=_0x29d50e-0x9f;let _0x508d68=_0x3f3ef6[_0x29d50e];return _0x508d68;},_0x29d5(_0x399abb,_0x3a3995);}const e={'mcpStatus':{'disconnected':_0x23c816(0xa8),'connecting':_0x23c816(0xd7),'connected':'MCP\x20Connected','failed':_0x23c816(0xb8),'retrying':_0x23c816(0xb1),'unknown':_0x23c816(0xc3),'unauthorized':_0x23c816(0xb9),'sessionOccupied':_0x23c816(0xa0),'networkError':_0x23c816(0xcc),'maxRetriesExceeded':_0x23c816(0xc0),'clickToConnect':_0x23c816(0xa3),'clickToConfigure':_0x23c816(0xc6)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x23c816(0xab),'apiKey':_0x23c816(0xac),'apiKeyPlaceholder':_0x23c816(0xd5),'apiKeyHint':_0x23c816(0xb5),'enableAuth':_0x23c816(0xa7),'enableAuthHint':_0x23c816(0xd6),'connectionInfo':_0x23c816(0xa1),'mcpClientConfig':_0x23c816(0xa1),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x23c816(0xb7),'configStep1':_0x23c816(0xd2),'configStep2':_0x23c816(0xcd),'configStep3':_0x23c816(0xbc),'sessionId':_0x23c816(0xcf),'sessionIdDescription':_0x23c816(0xbe),'authorizationDescription':_0x23c816(0xc2),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x23c816(0xcb),'save':_0x23c816(0xb4),'saving':_0x23c816(0xa5),'note1':_0x23c816(0xa9),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x23c816(0xbf),'configError':_0x23c816(0xa2),'apiApplyInfo':{'title':_0x23c816(0xaf),'description':_0x23c816(0xd3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x23c816(0xd4)},'validation':{'apiKeyRequired':_0x23c816(0x9f),'apiKeyTooShort':_0x23c816(0xce),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x23c816(0xbb)},'connectionStatus':{'disconnected':_0x23c816(0xba),'connecting':'Connecting...','connected':_0x23c816(0xc8),'failed':_0x23c816(0xad),'retrying':_0x23c816(0xae)},'connectionError':{'unauthorized':_0x23c816(0xc4),'sessionOccupied':_0x23c816(0xaa),'networkError':_0x23c816(0xb6),'maxRetriesExceeded':_0x23c816(0xbd)}}},n=e;module[_0x23c816(0xc7)]=n;
|