@univerjs-pro/mcp-ui 0.10.10-nightly.202510180327 → 0.10.11

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.
Files changed (45) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +7 -7
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
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;
1
+ 'use strict';var _0x4fec1a=_0x45c5;(function(_0x50d342,_0x2892fe){var _0x3144ee=_0x45c5,_0x16ad93=_0x50d342();while(!![]){try{var _0x21f968=parseInt(_0x3144ee(0x279))/0x1+parseInt(_0x3144ee(0x237))/0x2+-parseInt(_0x3144ee(0x1c6))/0x3+-parseInt(_0x3144ee(0x311))/0x4*(parseInt(_0x3144ee(0x2f4))/0x5)+parseInt(_0x3144ee(0x209))/0x6*(-parseInt(_0x3144ee(0x1b2))/0x7)+-parseInt(_0x3144ee(0x307))/0x8+parseInt(_0x3144ee(0x2df))/0x9*(parseInt(_0x3144ee(0x269))/0xa);if(_0x21f968===_0x2892fe)break;else _0x16ad93['push'](_0x16ad93['shift']());}catch(_0x265fc4){_0x16ad93['push'](_0x16ad93['shift']());}}}(_0x3613,0x72a82));var ue=Object['defineProperty'],le=(_0x338a28,_0x512fe5,_0x52246a)=>_0x512fe5 in _0x338a28?ue(_0x338a28,_0x512fe5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52246a}):_0x338a28[_0x512fe5]=_0x52246a,I=(_0x14f8f3,_0x20d1e2,_0x3e491b)=>le(_0x14f8f3,typeof _0x20d1e2!=_0x4fec1a(0x1d8)?_0x20d1e2+'':_0x20d1e2,_0x3e491b);Object[_0x4fec1a(0x2c7)](exports,Symbol[_0x4fec1a(0x1b1)],{'value':'Module'});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(){var _0x24a71c=_0x4fec1a;return g=Object[_0x24a71c(0x1e1)]||function(_0x32e813){var _0x3a7316=_0x24a71c;for(var _0x32aae4,_0x30089b=0x1,_0x3aa714=arguments[_0x3a7316(0x30b)];_0x30089b<_0x3aa714;_0x30089b++){_0x32aae4=arguments[_0x30089b];for(var _0x48da34 in _0x32aae4)Object[_0x3a7316(0x219)][_0x3a7316(0x196)][_0x3a7316(0x1c5)](_0x32aae4,_0x48da34)&&(_0x32e813[_0x48da34]=_0x32aae4[_0x48da34]);}return _0x32e813;},g[_0x24a71c(0x258)](this,arguments);},ve=function(_0x3f0699,_0x48ae69){var _0x4f1865=_0x4fec1a,_0xf7e08a={};for(var _0x4f0aef in _0x3f0699)Object['prototype'][_0x4f1865(0x196)][_0x4f1865(0x1c5)](_0x3f0699,_0x4f0aef)&&_0x48ae69[_0x4f1865(0x2c5)](_0x4f0aef)<0x0&&(_0xf7e08a[_0x4f0aef]=_0x3f0699[_0x4f0aef]);if(_0x3f0699!=null&&typeof Object[_0x4f1865(0x2fd)]==_0x4f1865(0x298)){for(var _0x47fd33=0x0,_0x4f0aef=Object[_0x4f1865(0x2fd)](_0x3f0699);_0x47fd33<_0x4f0aef[_0x4f1865(0x30b)];_0x47fd33++)_0x48ae69[_0x4f1865(0x2c5)](_0x4f0aef[_0x47fd33])<0x0&&Object[_0x4f1865(0x219)][_0x4f1865(0x1f0)][_0x4f1865(0x1c5)](_0x3f0699,_0x4f0aef[_0x47fd33])&&(_0xf7e08a[_0x4f0aef[_0x47fd33]]=_0x3f0699[_0x4f0aef[_0x47fd33]]);}return _0xf7e08a;},_=d[_0x4fec1a(0x2d7)](function(_0x4d5964,_0x23deda){var _0xe28c68=_0x4fec1a,_0x5542df=_0x4d5964[_0xe28c68(0x252)],_0x5d3056=_0x4d5964['id'],_0x159eba=_0x4d5964[_0xe28c68(0x1a8)],_0x315e3c=_0x4d5964['extend'],_0x41228e=ve(_0x4d5964,[_0xe28c68(0x252),'id','className',_0xe28c68(0x20f)]),_0x38f0e2=_0xe28c68(0x1e9)[_0xe28c68(0x277)](_0x5d3056,'\x20')[_0xe28c68(0x277)](_0x159eba||'')[_0xe28c68(0x2f7)](),_0x207d48=d[_0xe28c68(0x2a4)]('_'[_0xe28c68(0x277)](ge()));return H(_0x5542df,''['concat'](_0x5d3056),{'defIds':_0x5542df[_0xe28c68(0x284)],'idSuffix':_0x207d48['current']},g({'ref':_0x23deda,'className':_0x38f0e2},_0x41228e),_0x315e3c);});function H(_0x55db87,_0x25feaf,_0x1f6a27,_0x55ce5b,_0x1cc1bb){var _0x596fb2=_0x4fec1a;return d[_0x596fb2(0x2a2)](_0x55db87[_0x596fb2(0x1c2)],g(g({'key':_0x25feaf},de(_0x55db87,_0x1f6a27,_0x1cc1bb)),_0x55ce5b),(Ce(_0x55db87,_0x1f6a27)[_0x596fb2(0x2fe)]||[])[_0x596fb2(0x235)](function(_0x538c23,_0x5b4afa){var _0x56f76b=_0x596fb2;return H(_0x538c23,''[_0x56f76b(0x277)](_0x25feaf,'-')[_0x56f76b(0x277)](_0x55db87[_0x56f76b(0x1c2)],'-')[_0x56f76b(0x277)](_0x5b4afa),_0x1f6a27,void 0x0,_0x1cc1bb);}));}function de(_0x5a91f8,_0x5d9b6f,_0x406e1f){var _0x528891=_0x4fec1a,_0x11d058=g({},_0x5a91f8[_0x528891(0x1c0)]);_0x406e1f!=null&&_0x406e1f[_0x528891(0x226)]&&_0x11d058[_0x528891(0x212)]==='colorChannel1'&&(_0x11d058[_0x528891(0x212)]=_0x406e1f[_0x528891(0x226)]),_0x5a91f8[_0x528891(0x1c2)]==='mask'&&_0x11d058['id']&&(_0x11d058['id']=_0x11d058['id']+_0x5d9b6f['idSuffix']),Object[_0x528891(0x20b)](_0x11d058)[_0x528891(0x2c9)](function(_0x55158c){var _0x362a77=_0x528891,_0x39f318=_0x55158c[0x0],_0x46fae6=_0x55158c[0x1];_0x39f318===_0x362a77(0x25e)&&typeof _0x46fae6=='string'&&(_0x11d058[_0x39f318]=_0x46fae6[_0x362a77(0x23d)](/url\(#(.*)\)/,_0x362a77(0x19a)[_0x362a77(0x277)](_0x5d9b6f[_0x362a77(0x1a5)],')')));});var _0x1a621a=_0x5d9b6f['defIds'];return!_0x1a621a||_0x1a621a[_0x528891(0x30b)]===0x0||(_0x5a91f8[_0x528891(0x1c2)]===_0x528891(0x230)&&_0x11d058[_0x528891(0x25c)]&&(_0x11d058[_0x528891(0x25c)]=_0x11d058[_0x528891(0x25c)]+_0x5d9b6f[_0x528891(0x1a5)]),Object[_0x528891(0x20b)](_0x11d058)[_0x528891(0x2c9)](function(_0x3858f5){var _0x334054=_0x528891,_0x43f1fd=_0x3858f5[0x0],_0x2cb864=_0x3858f5[0x1];typeof _0x2cb864==_0x334054(0x296)&&(_0x11d058[_0x43f1fd]=_0x2cb864['replace'](/url\(#(.*)\)/,'url(#$1'[_0x334054(0x277)](_0x5d9b6f['idSuffix'],')')));})),_0x11d058;}function Ce(_0x184d18,_0x4608b1){var _0x28c1e1=_0x4fec1a,_0x1a7de6,_0x488f0e=_0x4608b1[_0x28c1e1(0x284)];return!_0x488f0e||_0x488f0e['length']===0x0?_0x184d18:_0x184d18['tag']===_0x28c1e1(0x2f8)&&(!((_0x1a7de6=_0x184d18[_0x28c1e1(0x2fe)])===null||_0x1a7de6===void 0x0)&&_0x1a7de6['length'])?g(g({},_0x184d18),{'children':_0x184d18[_0x28c1e1(0x2fe)][_0x28c1e1(0x235)](function(_0x31de80){var _0x167885=_0x28c1e1;return typeof _0x31de80['attrs']['id']==_0x167885(0x296)&&_0x488f0e&&_0x488f0e[_0x167885(0x2fa)](_0x31de80[_0x167885(0x1c0)]['id'])?g(g({},_0x31de80),{'attrs':g(g({},_0x31de80['attrs']),{'id':_0x31de80[_0x167885(0x1c0)]['id']+_0x4608b1['idSuffix']})}):_0x31de80;})}):_0x184d18;}function ge(){var _0x156fb8=_0x4fec1a;return Math[_0x156fb8(0x200)]()['toString'](0x24)[_0x156fb8(0x30a)](0x2,0x8);}_[_0x4fec1a(0x2d5)]=_0x4fec1a(0x271);var fe={'tag':'svg','attrs':{'xmlns':_0x4fec1a(0x2b9),'fill':_0x4fec1a(0x236),'viewBox':_0x4fec1a(0x2d8),'width':'1em','height':_0x4fec1a(0x2b4)},'children':[{'tag':_0x4fec1a(0x1ba),'attrs':{'fill':_0x4fec1a(0x25d),'d':_0x4fec1a(0x259),'fillRule':_0x4fec1a(0x309),'clipRule':_0x4fec1a(0x309)}}]},B=d[_0x4fec1a(0x2d7)](function(_0x49a24e,_0x18172a){var _0x372612=_0x4fec1a;return d[_0x372612(0x2a2)](_,Object['assign']({},_0x49a24e,{'id':_0x372612(0x254),'ref':_0x18172a,'icon':fe}));});B[_0x4fec1a(0x2d5)]='CheckMarkIcon';var pe={'tag':_0x4fec1a(0x20a),'attrs':{'xmlns':_0x4fec1a(0x2b9),'fill':'none','viewBox':_0x4fec1a(0x1af),'width':_0x4fec1a(0x2b4),'height':'1em'},'children':[{'tag':_0x4fec1a(0x1ba),'attrs':{'stroke':_0x4fec1a(0x25d),'d':_0x4fec1a(0x228),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x4fec1a(0x1ba),'attrs':{'stroke':_0x4fec1a(0x25d),'d':_0x4fec1a(0x318),'strokeLinecap':_0x4fec1a(0x2c4),'strokeLinejoin':'round','strokeWidth':1.33}}]},F=d[_0x4fec1a(0x2d7)](function(_0x155581,_0x20afe9){var _0x42b227=_0x4fec1a;return d[_0x42b227(0x2a2)](_,Object['assign']({},_0x155581,{'id':'close-small-single','ref':_0x20afe9,'icon':pe}));});F['displayName']=_0x4fec1a(0x21d);var he={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4fec1a(0x2d8),'width':_0x4fec1a(0x2b4),'height':_0x4fec1a(0x2b4)},'children':[{'tag':_0x4fec1a(0x1ba),'attrs':{'fill':_0x4fec1a(0x25d),'d':_0x4fec1a(0x23e)}},{'tag':_0x4fec1a(0x1ba),'attrs':{'fill':_0x4fec1a(0x25d),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x4fec1a(0x1ba),'attrs':{'fill':_0x4fec1a(0x25d),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x4fec1a(0x309),'clipRule':_0x4fec1a(0x309)}}]},Y=d['forwardRef'](function(_0x3e385a,_0x44222d){var _0x5200c2=_0x4fec1a;return d[_0x5200c2(0x2a2)](_,Object[_0x5200c2(0x1e1)]({},_0x3e385a,{'id':_0x5200c2(0x25a),'ref':_0x44222d,'icon':he}));});Y[_0x4fec1a(0x2d5)]=_0x4fec1a(0x2be);var me={'tag':'svg','attrs':{'xmlns':_0x4fec1a(0x2b9),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4fec1a(0x2b4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x4fec1a(0x25d),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4fec1a(0x2c4),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4fec1a(0x270),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4fec1a(0x1ba),'attrs':{'fill':_0x4fec1a(0x2a7),'d':_0x4fec1a(0x20c)}}]}]}],'defIds':[_0x4fec1a(0x26c)]},q=d['forwardRef'](function(_0x4bca1d,_0x142876){var _0xa23315=_0x4fec1a;return d['createElement'](_,Object[_0xa23315(0x1e1)]({},_0x4bca1d,{'id':_0xa23315(0x1da),'ref':_0x142876,'icon':me}));});q[_0x4fec1a(0x2d5)]=_0x4fec1a(0x22a);var xe={'tag':_0x4fec1a(0x20a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4fec1a(0x292),'width':_0x4fec1a(0x2b4),'height':_0x4fec1a(0x2b4)},'children':[{'tag':'g','attrs':{'clipPath':_0x4fec1a(0x245)},'children':[{'tag':_0x4fec1a(0x1ba),'attrs':{'stroke':'currentColor','d':_0x4fec1a(0x2de),'strokeLinecap':'round','strokeLinejoin':_0x4fec1a(0x2c4),'strokeWidth':1.2}}]},{'tag':_0x4fec1a(0x2f8),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4fec1a(0x1fa)},'children':[{'tag':_0x4fec1a(0x1ba),'attrs':{'fill':_0x4fec1a(0x2a7),'d':_0x4fec1a(0x20c),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4fec1a(0x1fa)]},V=d[_0x4fec1a(0x2d7)](function(_0x278309,_0x1265ee){var _0xc6c536=_0x4fec1a;return d[_0xc6c536(0x2a2)](_,Object[_0xc6c536(0x1e1)]({},_0x278309,{'id':_0xc6c536(0x1c9),'ref':_0x1265ee,'icon':xe}));});V[_0x4fec1a(0x2d5)]=_0x4fec1a(0x2f6);function W(_0x24c5ee){var _0x45113e=_0x4fec1a,_0x370b4b,_0x175964;const {mcpCoreConfig:_0x437f3a,onSave:_0x301eb5,loading:_0x1afed5=!0x1,config:_0x144343,connectionStatus$:_0x1e50d1,connectionError$:_0x3fcff9,currentApiKey$:_0x22cfe8,currentSessionId$:_0x364946}=_0x24c5ee,_0x2de1a2=v[_0x45113e(0x2f5)](l[_0x45113e(0x2f1)]),_0x1fc1db=v[_0x45113e(0x1cf)](_0x1e50d1,s[_0x45113e(0x262)][_0x45113e(0x246)]),_0x386a59=v['useObservable'](_0x3fcff9,s['MCPConnectionError'][_0x45113e(0x233)]),_0x1e3c9e=v['useObservable'](_0x364946,''),_0x4b4b5a=v[_0x45113e(0x1cf)](_0x22cfe8,''),[_0x98ebb1,_0x468c1b]=d[_0x45113e(0x1d7)](_0x4b4b5a||''),_0x100734=!0x0,_0x175039=_0x144343['showDeveloperTools']&&_0x437f3a[_0x45113e(0x244)]&&(_0x437f3a[_0x45113e(0x244)]['includes'](_0x45113e(0x2b8))||_0x437f3a['mcpServerUrl'][_0x45113e(0x2fa)](_0x45113e(0x2d9))),_0x5cdf21=(_0x370b4b=_0x437f3a['mcpServerUrl'])==null?void 0x0:_0x370b4b['includes']('univer.plus'),_0x1fac27=(_0x175964=_0x437f3a['mcpServerUrl'])==null?void 0x0:_0x175964[_0x45113e(0x2fa)](_0x45113e(0x2d9)),_0x146f6c=_0x5cdf21?'https://console.univer.plus':'https://console.univer.ai',_0x542249=_0x144343['showDeveloperTools']&&(_0x5cdf21||_0x1fac27),[_0x43fa69,_0xdcb233]=d[_0x45113e(0x1d7)](!_0x98ebb1[_0x45113e(0x2f7)]()),_0x9d3460=(_0x4ddfe4,_0x4b1253)=>{var _0x4e5d5a=_0x45113e;if(_0x4b1253===s[_0x4e5d5a(0x249)][_0x4e5d5a(0x2d0)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x4ddfe4){case s[_0x4e5d5a(0x262)]['CONNECTED']:return _0x4e5d5a(0x1cc);case s['MCPConnectionStatus']['CONNECTING']:case s['MCPConnectionStatus'][_0x4e5d5a(0x1f2)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x4e5d5a(0x262)]['FAILED']:return _0x4e5d5a(0x2a8);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x55a3ec=(_0x5d12f3,_0x2e8546)=>{var _0x2aa94f=_0x45113e;if(_0x2e8546===s['MCPConnectionError'][_0x2aa94f(0x2d0)])return _0x2aa94f(0x215);switch(_0x5d12f3){case s[_0x2aa94f(0x262)]['CONNECTED']:return'univer-bg-green-500';case s[_0x2aa94f(0x262)][_0x2aa94f(0x2af)]:case s[_0x2aa94f(0x262)][_0x2aa94f(0x1f2)]:return _0x2aa94f(0x301);case s[_0x2aa94f(0x262)][_0x2aa94f(0x231)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x302847=_0xcf8096=>{var _0x5753c4=_0x45113e;switch(_0xcf8096){case s['MCPConnectionStatus'][_0x5753c4(0x202)]:return _0x2de1a2['t'](_0x5753c4(0x2c1));case s[_0x5753c4(0x262)]['CONNECTING']:return _0x2de1a2['t']('mcpConfig.connectionStatus.connecting');case s[_0x5753c4(0x262)]['FAILED']:return _0x2de1a2['t'](_0x5753c4(0x2ce));case s[_0x5753c4(0x262)][_0x5753c4(0x1f2)]:return _0x2de1a2['t'](_0x5753c4(0x25f));default:return _0x2de1a2['t'](_0x5753c4(0x283));}},_0x222722=_0x487dcf=>{var _0x1e7bf9=_0x45113e;switch(_0x487dcf){case s[_0x1e7bf9(0x249)]['UNAUTHORIZED']:return _0x2de1a2['t'](_0x1e7bf9(0x2c2));case s[_0x1e7bf9(0x249)][_0x1e7bf9(0x30f)]:return _0x2de1a2['t']('mcpConfig.connectionError.sessionOccupied');case s[_0x1e7bf9(0x249)][_0x1e7bf9(0x1ee)]:return _0x2de1a2['t'](_0x1e7bf9(0x2f2));case s[_0x1e7bf9(0x249)][_0x1e7bf9(0x303)]:return _0x2de1a2['t'](_0x1e7bf9(0x293));default:return'';}},_0x3487da=d[_0x45113e(0x20e)](()=>{var _0x29343e=_0x45113e;const _0x41636={..._0x437f3a,'apiKey':_0x98ebb1[_0x29343e(0x2f7)](),'enableAuth':_0x100734};_0x301eb5(_0x41636);},[_0x437f3a,_0x98ebb1,_0x100734,_0x301eb5]),_0x552a1f=_0x98ebb1[_0x45113e(0x2f7)]()[_0x45113e(0x30b)]>0x0;return t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x2e3),'children':[t['jsx'](_0x45113e(0x295),{'className':_0x45113e(0x268),'children':t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x1a9),'children':[t[_0x45113e(0x320)](_0x45113e(0x295),{'className':_0x45113e(0x1be),'children':t[_0x45113e(0x320)](_0x45113e(0x2db),{'className':_0x45113e(0x1de),'children':'⚙'})}),t['jsx']('div',{'children':t['jsx']('p',{'className':_0x45113e(0x1b9),'children':_0x2de1a2['t']('mcpConfig.description')})})]})}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x257),'children':[t['jsx'](_0x45113e(0x295),{'className':_0x45113e(0x2dc)+_0x9d3460(_0x1fc1db,_0x386a59)+_0x45113e(0x2b7),'children':t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x195),'children':[t['jsx']('div',{'className':_0x45113e(0x1e0)+_0x55a3ec(_0x1fc1db,_0x386a59)+_0x45113e(0x27e)}),t[_0x45113e(0x320)](_0x45113e(0x2db),{'className':_0x45113e(0x28e),'children':_0x302847(_0x1fc1db)})]})}),_0x386a59!==s[_0x45113e(0x249)][_0x45113e(0x233)]&&(_0x1fc1db===s[_0x45113e(0x262)][_0x45113e(0x231)]||_0x386a59===s[_0x45113e(0x249)][_0x45113e(0x2d0)])&&t[_0x45113e(0x320)](_0x45113e(0x295),{'className':_0x45113e(0x266),'children':t['jsxs'](_0x45113e(0x295),{'className':_0x45113e(0x2cb),'children':[t[_0x45113e(0x320)]('span',{'className':_0x45113e(0x218),'children':'⚠️'}),t[_0x45113e(0x320)]('p',{'className':_0x45113e(0x312),'children':_0x222722(_0x386a59)})]})})]}),t[_0x45113e(0x320)](_0x45113e(0x295),{'className':_0x45113e(0x267),'children':t['jsxs']('div',{'className':_0x45113e(0x1d2),'children':[t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x1b3),'children':[t['jsxs'](_0x45113e(0x2e2),{'className':_0x45113e(0x22e),'children':[t[_0x45113e(0x320)](_0x45113e(0x2db),{'children':'🔑'}),'\x20',_0x2de1a2['t'](_0x45113e(0x227)),t[_0x45113e(0x320)]('span',{'className':_0x45113e(0x1ce),'children':'*'}),_0x175039&&t[_0x45113e(0x320)]('a',{'href':_0x45113e(0x2ee),'onClick':()=>_0xdcb233(!0x0),'className':'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','title':_0x2de1a2['t'](_0x45113e(0x1e3)),'children':t[_0x45113e(0x320)](Y,{})})]}),t['jsx'](S['Input'],{'type':'text','placeholder':_0x2de1a2['t'](_0x45113e(0x29b)),'value':_0x98ebb1,'onChange':_0x468c1b,'disabled':_0x1afed5,'autoComplete':_0x45113e(0x1f3)}),t['jsx']('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2de1a2['t']('mcpConfig.apiKeyHint')})]}),_0x175039&&_0x43fa69&&t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x2bf),'children':[t[_0x45113e(0x320)]('a',{'href':_0x45113e(0x2ee),'onClick':()=>_0xdcb233(!0x1),'className':'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','title':_0x45113e(0x1ec),'children':t['jsx'](F,{})}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[t[_0x45113e(0x320)](_0x45113e(0x295),{'className':_0x45113e(0x1d4),'children':t['jsx'](_0x45113e(0x2db),{'className':_0x45113e(0x1e8),'children':'🚀'})}),t[_0x45113e(0x27b)]('div',{'className':_0x45113e(0x214),'children':[t[_0x45113e(0x320)]('h4',{'className':_0x45113e(0x1c3),'children':_0x2de1a2['t'](_0x45113e(0x1e3))}),t[_0x45113e(0x320)]('p',{'className':_0x45113e(0x2f0),'children':_0x2de1a2['t'](_0x45113e(0x1fd))}),t['jsx'](_0x45113e(0x295),{'className':_0x45113e(0x2ba),'children':_0x542249&&t[_0x45113e(0x27b)]('a',{'href':_0x146f6c,'target':'_blank','rel':_0x45113e(0x253),'className':_0x45113e(0x1b8),'children':[t['jsx'](_0x45113e(0x2db),{'children':'🤖'}),_0x2de1a2['t'](_0x45113e(0x2b2)),t['jsx'](_0x45113e(0x2db),{'className':'univer-text-gray-400','children':'↗'})]})}),t['jsxs'](_0x45113e(0x295),{'className':_0x45113e(0x2a0),'children':['✨','\x20',_0x2de1a2['t'](_0x45113e(0x28b))]})]})]})]}),_0x144343[_0x45113e(0x324)]&&t[_0x45113e(0x27b)]('div',{'className':_0x45113e(0x250),'children':[t['jsxs']('h4',{'className':_0x45113e(0x291),'children':[t[_0x45113e(0x320)]('span',{'children':'🔗'}),'\x20',_0x2de1a2['t']('mcpConfig.connectionInfo')]}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x31d),'children':[t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x19c),'children':[t[_0x45113e(0x320)]('p',{'className':_0x45113e(0x264),'children':_0x2de1a2['t'](_0x45113e(0x1a1))}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x1b3),'children':[t[_0x45113e(0x320)](_0x45113e(0x295),{'className':_0x45113e(0x305),'children':_0x2de1a2['t'](_0x45113e(0x26e))}),t[_0x45113e(0x27b)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x195),'children':[t[_0x45113e(0x320)](_0x45113e(0x2db),{'className':_0x45113e(0x2fc),'children':'1'}),_0x2de1a2['t']('mcpConfig.configStep1')]}),t['jsxs'](_0x45113e(0x295),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t['jsx'](_0x45113e(0x2db),{'className':'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','children':'2'}),_0x2de1a2['t'](_0x45113e(0x1a3))]}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x195),'children':[t[_0x45113e(0x320)](_0x45113e(0x2db),{'className':_0x45113e(0x2fc),'children':'3'}),_0x2de1a2['t'](_0x45113e(0x22b))]})]})]})]}),t['jsxs'](_0x45113e(0x295),{'className':'univer-space-y-2','children':[t['jsx'](_0x45113e(0x295),{'className':_0x45113e(0x305),'children':_0x45113e(0x321)}),t[_0x45113e(0x320)]('div',{'className':_0x45113e(0x241),'children':t[_0x45113e(0x320)](_0x45113e(0x23a),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':_0x45113e(0x2ec)+_0x1e3c9e+'\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'+(_0x98ebb1||_0x45113e(0x2b1))+_0x45113e(0x1a7)})})]}),t['jsxs'](_0x45113e(0x295),{'className':'univer-space-y-3','children':[t[_0x45113e(0x320)]('div',{'className':_0x45113e(0x305),'children':_0x2de1a2['t']('mcpConfig.configParameters')}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x1b3),'children':[t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x2ed),'children':[t['jsx'](_0x45113e(0x295),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),t[_0x45113e(0x27b)]('div',{'className':_0x45113e(0x2e1),'children':[t[_0x45113e(0x320)](_0x45113e(0x295),{'className':_0x45113e(0x1cd),'children':_0x45113e(0x314)}),t['jsx'](_0x45113e(0x295),{'className':_0x45113e(0x1b5),'children':_0x2de1a2['t']('mcpConfig.sessionIdDescription')})]})]}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[t['jsx'](_0x45113e(0x295),{'className':_0x45113e(0x31a)}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x2e1),'children':[t[_0x45113e(0x320)](_0x45113e(0x295),{'className':_0x45113e(0x1cd),'children':_0x45113e(0x229)}),t[_0x45113e(0x320)](_0x45113e(0x295),{'className':_0x45113e(0x1b5),'children':_0x2de1a2['t'](_0x45113e(0x232))})]})]})]})]})]})]}),t['jsx'](S[_0x45113e(0x199)],{'onClick':_0x3487da,'disabled':!_0x552a1f||_0x1afed5,'className':_0x45113e(0x2d6),'children':_0x1afed5?t[_0x45113e(0x27b)](_0x45113e(0x2db),{'className':_0x45113e(0x195),'children':[t[_0x45113e(0x320)]('span',{'children':'⟲'}),_0x2de1a2['t'](_0x45113e(0x2e4))]}):t[_0x45113e(0x27b)](_0x45113e(0x2db),{'className':_0x45113e(0x195),'children':[t['jsx'](B,{}),_0x2de1a2['t']('mcpConfig.save')]})}),t[_0x45113e(0x320)]('div',{'className':_0x45113e(0x1b4),'children':t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':_0x45113e(0x21b),'children':[t['jsx']('span',{'className':_0x45113e(0x1f6),'children':'💡'}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[t['jsx'](_0x45113e(0x295),{'className':_0x45113e(0x2e6),'children':_0x45113e(0x31b)}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'children':['•',_0x2de1a2['t'](_0x45113e(0x2c8))]}),t[_0x45113e(0x27b)](_0x45113e(0x295),{'children':['•',_0x2de1a2['t'](_0x45113e(0x2f9))]})]})]})})]})})]});}function _0x45c5(_0x411e63,_0x829781){var _0x361396=_0x3613();return _0x45c5=function(_0x45c552,_0x2dcfd0){_0x45c552=_0x45c552-0x191;var _0x44a6de=_0x361396[_0x45c552];return _0x44a6de;},_0x45c5(_0x411e63,_0x829781);}const y=_0x4fec1a(0x22f),G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object['getOwnPropertyDescriptor'],Pe=(_0x4ce8c8,_0x45e82d,_0x25e7f7,_0x26c2c9)=>{var _0x2aff04=_0x4fec1a;for(var _0x909c1c=_0x26c2c9>0x1?void 0x0:_0x26c2c9?Se(_0x45e82d,_0x25e7f7):_0x45e82d,_0x6f05e3=_0x4ce8c8[_0x2aff04(0x30b)]-0x1,_0x57bb5c;_0x6f05e3>=0x0;_0x6f05e3--)(_0x57bb5c=_0x4ce8c8[_0x6f05e3])&&(_0x909c1c=_0x57bb5c(_0x909c1c)||_0x909c1c);return _0x909c1c;},f=(_0x53b763,_0x20c400)=>(_0x5c8526,_0x46459b)=>_0x20c400(_0x5c8526,_0x46459b,_0x53b763);const D='mcp.apiKey',k=_0x4fec1a(0x31f);exports[_0x4fec1a(0x23c)]=class extends l[_0x4fec1a(0x2ad)]{constructor(_0xb1792a,_0x23f1c7,_0x1d35cf,_0x26e9ba,_0x1358f7,_0x370322,_0x12e0d1,_0x36e241,_0x4b92d5,_0x3d6df5){var _0x2ff710=_0x4fec1a;super(),I(this,_0x2ff710(0x2b3),new N[(_0x2ff710(0x2a1))](!0x1)),I(this,_0x2ff710(0x24d),new N[(_0x2ff710(0x2a1))]({})),I(this,_0x2ff710(0x317),new N['BehaviorSubject']({})),I(this,_0x2ff710(0x1c7),new N[(_0x2ff710(0x2a1))]('')),I(this,_0x2ff710(0x1ca),async _0x9dbe6b=>{var _0x400d5d=_0x2ff710,_0x2b5ac9,_0x43794a;this[_0x400d5d(0x2b3)][_0x400d5d(0x223)](!0x0);try{const _0x54bc30=await this[_0x400d5d(0x30c)](_0x9dbe6b);if(!_0x54bc30[_0x400d5d(0x1df)]){this[_0x400d5d(0x193)]['show']({'type':S['MessageType'][_0x400d5d(0x21c)],'content':_0x54bc30[_0x400d5d(0x280)]||this[_0x400d5d(0x1b0)]['t'](_0x400d5d(0x302))});return;}_0x9dbe6b[_0x400d5d(0x294)]?await this[_0x400d5d(0x2eb)][_0x400d5d(0x299)](D,_0x9dbe6b[_0x400d5d(0x294)][_0x400d5d(0x2f7)]()):await this[_0x400d5d(0x2eb)][_0x400d5d(0x2dd)](D),this[_0x400d5d(0x1c7)][_0x400d5d(0x223)](((_0x2b5ac9=_0x9dbe6b[_0x400d5d(0x294)])==null?void 0x0:_0x2b5ac9[_0x400d5d(0x2f7)]())||''),this[_0x400d5d(0x27d)][_0x400d5d(0x1a4)]({'Authorization':_0x400d5d(0x315)+((_0x43794a=_0x9dbe6b['apiKey'])==null?void 0x0:_0x43794a['trim']())}),this['_messageService']['show']({'type':S['MessageType'][_0x400d5d(0x243)],'content':this['_localeService']['t'](_0x400d5d(0x322))}),setTimeout(()=>{var _0x3cbee5=_0x400d5d;this['_dialogService'][_0x3cbee5(0x2e8)](k);},0x320);}catch(_0x20f0d4){this[_0x400d5d(0x2ea)]['error'](_0x400d5d(0x1c4),_0x20f0d4),this[_0x400d5d(0x193)]['show']({'type':S[_0x400d5d(0x239)][_0x400d5d(0x21c)],'content':this[_0x400d5d(0x1b0)]['t'](_0x400d5d(0x1bc))});}finally{this[_0x400d5d(0x2b3)][_0x400d5d(0x223)](!0x1);}}),(this[_0x2ff710(0x1fc)]=_0xb1792a,this['_uiPartsService']=_0x23f1c7,this[_0x2ff710(0x1c1)]=_0x1d35cf,this[_0x2ff710(0x2eb)]=_0x26e9ba,this['_dialogService']=_0x1358f7,this[_0x2ff710(0x193)]=_0x370322,this[_0x2ff710(0x1aa)]=_0x12e0d1,this[_0x2ff710(0x1b0)]=_0x36e241,this[_0x2ff710(0x2ea)]=_0x4b92d5,this['_mcpConnectionController']=_0x3d6df5,this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0x2ff710(0x2e7)]());}[_0x4fec1a(0x201)](){var _0x547191=_0x4fec1a;const _0x421cb4=this['_configService'][_0x547191(0x210)](y);_0x421cb4!=null&&_0x421cb4['showDeveloperTools']&&this[_0x547191(0x27a)][_0x547191(0x221)]({'id':k,'title':{'title':this[_0x547191(0x1b0)]['t']('mcpConfig.title')},'children':{'label':_0x547191(0x20d)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x6be7d7=_0x547191;this[_0x6be7d7(0x27a)][_0x6be7d7(0x2e8)](k);}});}['getCurrentConfig'](){var _0x35ea62=_0x4fec1a;return this[_0x35ea62(0x24d)][_0x35ea62(0x203)];}[_0x4fec1a(0x2e7)](){var _0x10741c=_0x4fec1a;this[_0x10741c(0x289)](this[_0x10741c(0x1aa)]['register'](_0x10741c(0x20d),this[_0x10741c(0x1ed)]()));}[_0x4fec1a(0x1ed)](){var _0x43c1ff=_0x4fec1a;return v[_0x43c1ff(0x1d5)](()=>{var _0x16dfad=_0x43c1ff,_0x5d8702,_0x714921,_0x487d14;return t[_0x16dfad(0x320)](W,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x16dfad(0x24d)]['value'],'currentApiKey$':this[_0x16dfad(0x1c7)],'onSave':this[_0x16dfad(0x1ca)],'loading':this[_0x16dfad(0x2b3)][_0x16dfad(0x203)],'connectionStatus$':(_0x5d8702=this['_mcpConnectionController'])==null?void 0x0:_0x5d8702[_0x16dfad(0x1c8)],'connectionError$':(_0x714921=this[_0x16dfad(0x27d)])==null?void 0x0:_0x714921[_0x16dfad(0x1e7)],'currentSessionId$':(_0x487d14=this[_0x16dfad(0x27d)])==null?void 0x0:_0x487d14[_0x16dfad(0x29a)]});},this[_0x43c1ff(0x1fc)]);}[_0x4fec1a(0x30e)](){var _0x4ab00c=_0x4fec1a;this[_0x4ab00c(0x289)](this[_0x4ab00c(0x1c1)][_0x4ab00c(0x198)](s[_0x4ab00c(0x2ae)])['subscribe'](_0x17a842=>{var _0x2b5a18=_0x4ab00c;this[_0x2b5a18(0x24d)][_0x2b5a18(0x223)](_0x17a842||{});}));const _0x513c31=this[_0x4ab00c(0x1c1)]['getConfig'](s[_0x4ab00c(0x2ae)]);this[_0x4ab00c(0x24d)][_0x4ab00c(0x223)](_0x513c31||{}),this[_0x4ab00c(0x289)](this[_0x4ab00c(0x1c1)]['subscribeConfigValue$'](y)[_0x4ab00c(0x27c)](_0x2a69b0=>{var _0x4a7228=_0x4ab00c;this[_0x4a7228(0x317)]['next'](_0x2a69b0||{});}));const _0x2a8819=this[_0x4ab00c(0x1c1)][_0x4ab00c(0x210)](y);this[_0x4ab00c(0x317)]['next'](_0x2a8819||{});}async[_0x4fec1a(0x2fb)](){var _0x3cfe6e=_0x4fec1a;const _0x1d2436=this[_0x3cfe6e(0x1c1)]['getConfig'](y);if(!(_0x1d2436!=null&&_0x1d2436['showDeveloperTools']))return;const _0x2b6c2b=await this[_0x3cfe6e(0x2eb)][_0x3cfe6e(0x22c)](D);_0x2b6c2b&&(this['_mcpConnectionController'][_0x3cfe6e(0x1a4)]({'Authorization':_0x3cfe6e(0x315)+_0x2b6c2b}),this[_0x3cfe6e(0x1c7)]['next'](_0x2b6c2b));}async['_validateConfig'](_0x29b821){var _0x6e4ee6=_0x4fec1a;if(!_0x29b821[_0x6e4ee6(0x294)]||_0x29b821[_0x6e4ee6(0x294)][_0x6e4ee6(0x2f7)]()[_0x6e4ee6(0x30b)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x6e4ee6(0x1b0)]['t'](_0x6e4ee6(0x2bb))};if(_0x29b821[_0x6e4ee6(0x294)][_0x6e4ee6(0x2f7)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x6e4ee6(0x1b0)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x328ef8=await this[_0x6e4ee6(0x1fc)][_0x6e4ee6(0x31e)](s[_0x6e4ee6(0x19f)])['validateApiKey'](_0x29b821[_0x6e4ee6(0x294)]['trim']());return _0x328ef8[_0x6e4ee6(0x1df)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x328ef8[_0x6e4ee6(0x29c)]||this[_0x6e4ee6(0x1b0)]['t'](_0x6e4ee6(0x1dd))};}catch(_0x5b84ea){return console['warn']('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x5b84ea),{'isValid':!0x0};}}},exports[_0x4fec1a(0x23c)]=Pe([f(0x0,l[_0x4fec1a(0x1ad)](l[_0x4fec1a(0x1a0)])),f(0x1,v[_0x4fec1a(0x1f4)]),f(0x2,l[_0x4fec1a(0x288)]),f(0x3,l[_0x4fec1a(0x1f1)]),f(0x4,v[_0x4fec1a(0x1fe)]),f(0x5,v[_0x4fec1a(0x222)]),f(0x6,l[_0x4fec1a(0x1ad)](v[_0x4fec1a(0x2a9)])),f(0x7,l[_0x4fec1a(0x1ad)](l[_0x4fec1a(0x2f1)])),f(0x8,l[_0x4fec1a(0x297)]),f(0x9,l[_0x4fec1a(0x1ad)](s[_0x4fec1a(0x19f)]))],exports['MCPConfigUIController']);const j={'id':_0x4fec1a(0x19e),'type':l['CommandType']['COMMAND'],'handler':async(_0x3a2b9c,_0x596595)=>(_0x3a2b9c[_0x4fec1a(0x31e)](exports[_0x4fec1a(0x23c)])[_0x4fec1a(0x201)](),!0x0)};function Z(_0x806729,_0x312e34){var _0x11458c=_0x4fec1a;switch(_0x806729){case s[_0x11458c(0x262)][_0x11458c(0x246)]:return _0x11458c(0x240);case s[_0x11458c(0x262)][_0x11458c(0x2af)]:return'mcpStatus.connecting';case s[_0x11458c(0x262)][_0x11458c(0x202)]:return'mcpStatus.connected';case s['MCPConnectionStatus'][_0x11458c(0x231)]:switch(_0x312e34){case s[_0x11458c(0x249)][_0x11458c(0x2d0)]:return _0x11458c(0x238);case s[_0x11458c(0x249)][_0x11458c(0x30f)]:return'mcpStatus.sessionOccupied';case s['MCPConnectionError']['NETWORK_ERROR']:return _0x11458c(0x21e);case s[_0x11458c(0x249)][_0x11458c(0x303)]:return'mcpStatus.maxRetriesExceeded';default:return _0x11458c(0x21a);}case s[_0x11458c(0x262)][_0x11458c(0x1f2)]:return _0x11458c(0x2bd);default:return _0x11458c(0x2c6);}}function ye(_0x2c1f18,_0x540502,_0x5957e,_0x1a58a8=!0x0){var _0x4448fd=_0x4fec1a;const _0x182935=Z(_0x2c1f18,_0x540502),_0x167df8=_0x5957e['t'](_0x182935);return _0x1a58a8?_0x2c1f18===s[_0x4448fd(0x262)][_0x4448fd(0x246)]&&_0x540502===s[_0x4448fd(0x249)]['UNAUTHORIZED']?_0x167df8+_0x4448fd(0x1e4)+_0x5957e['t'](_0x4448fd(0x1a6)):_0x2c1f18===s[_0x4448fd(0x262)][_0x4448fd(0x202)]?''+_0x167df8:_0x2c1f18===s[_0x4448fd(0x262)][_0x4448fd(0x246)]||_0x2c1f18===s[_0x4448fd(0x262)]['FAILED']?_0x167df8+_0x4448fd(0x1e4)+_0x5957e['t'](_0x4448fd(0x1ef)):_0x167df8:_0x167df8;}function Ie(_0x55807a){var _0x178e16=_0x4fec1a;switch(_0x55807a){case s['MCPConnectionStatus']['CONNECTED']:return _0x178e16(0x323);case s[_0x178e16(0x262)][_0x178e16(0x2af)]:case s[_0x178e16(0x262)][_0x178e16(0x1f2)]:return _0x178e16(0x25b);case s[_0x178e16(0x262)][_0x178e16(0x231)]:case s['MCPConnectionStatus'][_0x178e16(0x246)]:return _0x178e16(0x1ce);default:return'univer-text-gray-500';}}function X(_0x33183f){var _0x12e5e7=_0x4fec1a;const {status$:_0x4d392f,error$:_0x1481c8,onConfigure:_0x118b80,showClickable:_0x1abc7c=!0x0}=_0x33183f,_0x483be1=v['useObservable'](_0x4d392f,s[_0x12e5e7(0x262)][_0x12e5e7(0x246)]),_0x46c3c8=v['useObservable'](_0x1481c8,s[_0x12e5e7(0x249)][_0x12e5e7(0x233)]),_0x38320f=v[_0x12e5e7(0x2f5)](l[_0x12e5e7(0x2f1)]),_0x51be9b=_0x483be1===s[_0x12e5e7(0x262)][_0x12e5e7(0x202)];_0x483be1===s['MCPConnectionStatus'][_0x12e5e7(0x2af)]||s['MCPConnectionStatus'][_0x12e5e7(0x1f2)];const _0x312a67=_0x38320f['t'](Z(_0x483be1,_0x46c3c8)),_0x317632=ye(_0x483be1,_0x46c3c8,_0x38320f,_0x1abc7c),_0x110239=Ie(_0x483be1),_0x56ba31=_0x51be9b?t[_0x12e5e7(0x320)](V,{}):t[_0x12e5e7(0x320)](q,{}),_0x83277=d[_0x12e5e7(0x20e)](()=>{_0x1abc7c&&_0x118b80&&_0x118b80();},[_0x1abc7c,_0x118b80]);function _0x4e5cfa(){var _0x51c414=_0x12e5e7;return t[_0x51c414(0x27b)]('div',{'className':S[_0x51c414(0x2ac)](_0x51c414(0x19d),_0x1abc7c&&_0x118b80&&_0x51c414(0x281)),'onClick':_0x1abc7c&&_0x118b80?_0x83277:void 0x0,'children':[t['jsx'](_0x51c414(0x295),{'className':S['clsx'](_0x51c414(0x1cb),_0x110239),'children':_0x56ba31}),t[_0x51c414(0x320)](_0x51c414(0x295),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x312a67})]});}return t[_0x12e5e7(0x320)](S['Tooltip'],{'title':_0x317632,'placement':_0x12e5e7(0x29f),'children':_0x4e5cfa()});}var _e=Object[_0x4fec1a(0x19b)],Me=(_0x47f135,_0x4015d8,_0x3fe1a7,_0x4bbbec)=>{var _0x41d53a=_0x4fec1a;for(var _0x1d4548=_0x4bbbec>0x1?void 0x0:_0x4bbbec?_e(_0x4015d8,_0x3fe1a7):_0x4015d8,_0x434f44=_0x47f135[_0x41d53a(0x30b)]-0x1,_0x57aca5;_0x434f44>=0x0;_0x434f44--)(_0x57aca5=_0x47f135[_0x434f44])&&(_0x1d4548=_0x57aca5(_0x1d4548)||_0x1d4548);return _0x1d4548;},b=(_0xd5fdfd,_0x170e68)=>(_0x15a752,_0x4de93d)=>_0x170e68(_0x15a752,_0x4de93d,_0xd5fdfd);exports[_0x4fec1a(0x234)]=class extends l[_0x4fec1a(0x2ad)]{constructor(_0x4e2ec4,_0x42c28d,_0x1a8088,_0x578786){var _0x4dc60a=_0x4fec1a;super(),this['_injector']=_0x4e2ec4,this[_0x4dc60a(0x2ff)]=_0x42c28d,this['_uiPartsService']=_0x1a8088,this['_configService']=_0x578786,this[_0x4dc60a(0x208)](),this[_0x4dc60a(0x28a)]();}['_initAutoConnect'](){var _0x3d3668=_0x4fec1a;const _0x3484b3=this[_0x3d3668(0x1c1)][_0x3d3668(0x210)](y);_0x3484b3!=null&&_0x3484b3[_0x3d3668(0x324)]&&(this[_0x3d3668(0x2ff)][_0x3d3668(0x256)]=!0x1);}[_0x4fec1a(0x28a)](){var _0x9207fe=_0x4fec1a;const _0x3710de=this['_configService']['getConfig'](y);(_0x3710de==null?void 0x0:_0x3710de[_0x9207fe(0x273)])!==!0x1&&this[_0x9207fe(0x289)](this['_uiPartsService'][_0x9207fe(0x2a5)](v[_0x9207fe(0x308)][_0x9207fe(0x290)],()=>{var _0x3179ab=_0x9207fe,_0x19fb65;return v[_0x3179ab(0x1d5)](Ne({'status$':this[_0x3179ab(0x2ff)][_0x3179ab(0x1c8)],'error$':this[_0x3179ab(0x2ff)][_0x3179ab(0x1e7)],'onConfigure':()=>this[_0x3179ab(0x2ef)](),'showClickable':(_0x19fb65=_0x3710de==null?void 0x0:_0x3710de[_0x3179ab(0x324)])!=null?_0x19fb65:!0x1}),this[_0x3179ab(0x1fc)]);}));}['_handleConfigure'](){var _0x5cefad=_0x4fec1a;this['_injector'][_0x5cefad(0x31e)](exports[_0x5cefad(0x23c)])[_0x5cefad(0x201)]();}},exports[_0x4fec1a(0x234)]=Me([b(0x0,l['Inject'](l[_0x4fec1a(0x1a0)])),b(0x1,l[_0x4fec1a(0x1ad)](s['MCPConnectionController'])),b(0x2,v[_0x4fec1a(0x1f4)]),b(0x3,l[_0x4fec1a(0x288)])],exports[_0x4fec1a(0x234)]);function Ne(_0x49862e){const {status$:_0x10a7a7,error$:_0x5afb52,onConfigure:_0x2aed0f,showClickable:_0x1ff623}=_0x49862e;return function(){return t['jsx'](X,{'status$':_0x10a7a7,'error$':_0x5afb52,'onConfigure':_0x2aed0f,'showClickable':_0x1ff623});};}function be(_0x41e355){var _0xfd6785=_0x4fec1a;return{'id':j['id'],'type':v[_0xfd6785(0x316)][_0xfd6785(0x213)],'icon':_0xfd6785(0x2e0),'title':_0xfd6785(0x255),'tooltip':_0xfd6785(0x255)};}const je={[v[_0x4fec1a(0x2b6)][_0x4fec1a(0x29e)]]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x4fec1a(0x19b)],we=(_0x38f5e9,_0x486f9b,_0x5f2815,_0x488aff)=>{var _0x5ae6f4=_0x4fec1a;for(var _0x437907=_0x488aff>0x1?void 0x0:_0x488aff?Ee(_0x486f9b,_0x5f2815):_0x486f9b,_0x5bf943=_0x38f5e9[_0x5ae6f4(0x30b)]-0x1,_0x564a98;_0x5bf943>=0x0;_0x5bf943--)(_0x564a98=_0x38f5e9[_0x5bf943])&&(_0x437907=_0x564a98(_0x437907)||_0x437907);return _0x437907;},z=(_0xfe0ce1,_0x2573b4)=>(_0x154b9b,_0x329edd)=>_0x2573b4(_0x154b9b,_0x329edd,_0xfe0ce1);function _0x3613(){var _0x2513b7=['Enable\x20Authentication','MCPUIMenuController','on-line-icon_clip0_910_349','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_injector','mcpConfig.apiApplyInfo.description','IDialogService','MCP_UI_PLUGIN','random','showConfigPanel','CONNECTED','value','setConfig','_commandService','将配置添加到您的\x20MCP\x20客户端设置文件中','几秒钟内获取您的\x20API\x20密钥','_initAutoConnect','578568xQftNx','svg','entries','M0\x200H16V16H0z','MCPConfigPanel','useCallback','extend','getConfig','MCP:\x20未授权','fill','BUTTON','univer-flex-1','univer-bg-red-500','会话ID','Click\x20to\x20connect\x20MCP','univer-flex-shrink-0\x20univer-text-red-500','prototype','mcpStatus.failed','univer-flex\x20univer-gap-3','Error','CloseSmallSingle','mcpStatus.networkError','Connecting...','API\x20key\x20is\x20required','open','IMessageService','next','MCP\x20Disconnected','API\x20密钥长度至少需要\x2010\x20位','colorChannel1','mcpConfig.apiKey','M5.21243\x205.62036L11.8791\x2012.287','Authorization:','OffLineIcon','mcpConfig.configStep3','getItem','Retrying...','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcp-ui.config','use','FAILED','mcpConfig.authorizationDescription','NONE','MCPConnectionUIController','map','none','118802dmlWwV','mcpStatus.unauthorized','MessageType','pre','Get\x20your\x20API\x20key\x20in\x20seconds','MCPConfigUIController','replace','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','Plugin','mcpStatus.disconnected','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','onStarting','Success','mcpServerUrl','url(#on-line-icon_clip0_910_349)','DISCONNECTED','超出最大重试次数,请稍后再试','API\x20密钥无效,请检查密钥是否正确','MCPConnectionError','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','重连中...','带有\x20Bearer\x20前缀的\x20API\x20密钥。','_mcpCoreConfig$','pluginName','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20状态未知','icon','noopener\x20noreferrer','check-mark-icon','mcpConfig.title','enableAutoConnect','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','apply','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','help-single','univer-text-yellow-500','xlink:href','currentColor','mask','mcpConfig.connectionStatus.retrying','ICommandService','ISocketService','MCPConnectionStatus','MCP\x20已连接','univer-text-xs\x20univer-text-gray-600','MCPStatusDisplay','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','21840410snUBgw','Saving...','点击连接\x20MCP','off-line-icon_clip0_910_343','MCP:\x20Unauthorized','mcpConfig.configStepTitle','连接中...','clipPath','UniverIcon','UniverMCPPlugin','showStatus','Univer\x20AI\x20Console','配置步骤:','Copy\x20the\x20JSON\x20configuration\x20below','concat','MCP:\x20Network\x20Error','924348HidCnx','_dialogService','jsxs','subscribe','_mcpConnectionController','\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','配置参数:','errorMessage','\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','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.connectionStatus.disconnected','defIds','add','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','What\x20is\x20API\x20Key?','IConfigService','disposeWithMe','_initStatusComponent','mcpConfig.apiApplyInfo.getStarted','MCP\x20客户端配置','MCP\x20重连中...','univer-text-sm\x20univer-font-medium','_menuManagerService','HEADER_MENU','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','0\x200\x2017\x2016','mcpConfig.connectionError.maxRetriesExceeded','apiKey','div','string','ILogService','function','setItem','sessionId$','mcpConfig.apiKeyPlaceholder','error','网络连接错误,请检查您的网络连接','OTHERS','bottom','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','BehaviorSubject','createElement','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','useRef','registerComponent','MCP:\x20网络错误','white','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','ComponentManager','Configuration\x20Parameters:','WebSocketService','clsx','Disposable','MCP_PLUGIN_CONFIG_KEY','CONNECTING','保存配置','<API_KEY>','mcpConfig.apiApplyInfo.univerAiLabel','_loading$','1em','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','RibbonStartGroup','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer.plus','http://www.w3.org/2000/svg','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.validation.apiKeyRequired','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpStatus.retrying','HelpSingle','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','_config','mcpConfig.connectionStatus.connected','mcpConfig.connectionError.unauthorized','请输入您的\x20API\x20密钥','round','indexOf','mcpStatus.unknown','defineProperty','mcpConfig.note1','forEach','已连接','univer-flex\x20univer-items-start\x20univer-gap-2','MCP\x20Retrying...','Disconnected','mcpConfig.connectionStatus.failed','MCP\x20连接中...','UNAUTHORIZED','Configuration\x20Steps:','push','您的\x20API\x20密钥将在此浏览器中本地存储','配置无效','displayName','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','forwardRef','0\x200\x2016\x2016','univer.ai','配置保存失败','span','\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','removeItem','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','9lzYLvl','MenuIcon','univer-min-w-0\x20univer-flex-1','label','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.saving','您的\x20API\x20密钥安全存储在本地存储中','univer-font-medium','_registerComponent','close','_uiPartsService','_logService','_localStorageService','{\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=','univer-flex\x20univer-items-start\x20univer-gap-3','javascript:void(0)','_handleConfigure','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','LocaleService','mcpConfig.connectionError.networkError','MCP\x20Connected','455gppKOR','useDependency','OnLineIcon','trim','defs','mcpConfig.note2','includes','_loadStoredApiKey','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','getOwnPropertySymbols','children','_connectionController','Click\x20to\x20configure\x20MCP','univer-bg-blue-500','mcpConfig.validation.invalidConfig','MAX_RETRIES_EXCEEDED','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','6287864iHUJfD','BuiltInUIPart','evenodd','substring','length','_validateConfig','启用身份验证','_initConfigSync','SESSION_ID_OCCUPIED','OpenMCPConfigPanelCommand','14316cekgoO','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','点击配置\x20MCP','univer_session_id:','Bearer\x20','MenuItemType','_config$','M5.21243\x2012.287L11.8791\x205.62036','Invalid\x20configuration','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Configuration\x20Notes:','未连接','univer-space-y-4','get','mcp-config-dialog','jsx','MCP\x20Configuration','mcpConfig.configSaved','univer-text-green-500','showDeveloperTools','UniverMCPUIPlugin','_initializeCommands','_messageService','Connected','univer-flex\x20univer-items-center\x20univer-gap-2','hasOwnProperty','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','subscribeConfigValue$','Button','url(#$1','getOwnPropertyDescriptor','univer-space-y-3','univer-flex\x20univer-items-center','mcp-ui.command.openConfigPanel','MCPConnectionController','Injector','mcpConfig.configInstructions','MCP\x20Unknown\x20Status','mcpConfig.configStep2','__setCustomHeaders','idSuffix','mcpStatus.clickToConfigure','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','className','univer-flex\x20univer-items-center\x20univer-gap-3','_componentManager','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Inject','保存中...','0\x200\x2017\x2017','_localeService','toStringTag','49byzabf','univer-space-y-2','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-text-xs\x20univer-text-gray-500','Failed\x20to\x20save\x20configuration','权限验证失败,请检查您的\x20API\x20密钥','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-text-sm\x20univer-text-gray-500','path','Univer\x20AI\x20控制台','mcpConfig.configError','enUS','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','IMenuManagerService','attrs','_configService','tag','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','call','2734464cdrvXD','_apiKey$','connectionStatus$','on-line-icon','_handleConfigSave','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-text-red-500','useObservable','Connection\x20Failed','什么是\x20API\x20密钥?','univer-space-y-5','复制以下\x20JSON\x20配置','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','connectInjector','Enter\x20your\x20API\x20key','useState','symbol','MCP\x20Connecting...','off-line-icon','_initializeMenus','registerCommand','mcpConfig.validation.invalidApiKey','univer-text-white','isValid','\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','assign','MCP\x20配置','mcpConfig.apiApplyInfo.title','\x20-\x20','Save\x20Configuration','配置\x20MCP\x20使用\x20AI\x20操作电子表格','connectionError$','univer-text-blue-600','univerjs-icon\x20univerjs-icon-','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Close','_createConfigPanelComponent','NETWORK_ERROR','mcpStatus.clickToConnect','propertyIsEnumerable','ILocalStorageService','RETRYING','off','IUIPartsService','MCP:\x20超出最大重试次数','univer-flex-shrink-0\x20univer-text-blue-500','启用身份验证以获得安全连接'];_0x3613=function(){return _0x2513b7;};return _0x3613();}exports['MCPUIMenuController']=class extends l[_0x4fec1a(0x2ad)]{constructor(_0x127a36,_0x58ed99){var _0x3126b0=_0x4fec1a;super(),this['_commandService']=_0x127a36,this[_0x3126b0(0x28f)]=_0x58ed99,this['_initializeCommands'](),this['_initializeMenus']();}[_0x4fec1a(0x192)](){var _0x2f5e1d=_0x4fec1a;[j][_0x2f5e1d(0x2c9)](_0x6b26d1=>{var _0x2d64df=_0x2f5e1d;this[_0x2d64df(0x289)](this[_0x2d64df(0x205)][_0x2d64df(0x1dc)](_0x6b26d1));});}[_0x4fec1a(0x1db)](){var _0x24208d=_0x4fec1a;this[_0x24208d(0x28f)]['mergeMenu'](je);}},exports[_0x4fec1a(0x1f9)]=we([z(0x0,l[_0x4fec1a(0x260)]),z(0x1,v[_0x4fec1a(0x1bf)])],exports[_0x4fec1a(0x1f9)]);const Oe={'mcpStatus':{'disconnected':_0x4fec1a(0x224),'connecting':_0x4fec1a(0x1d9),'connected':_0x4fec1a(0x2f3),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4fec1a(0x2cc),'unknown':_0x4fec1a(0x1a2),'unauthorized':_0x4fec1a(0x26d),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4fec1a(0x278),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4fec1a(0x217),'clickToConfigure':_0x4fec1a(0x300)},'mcpConfig':{'title':_0x4fec1a(0x321),'description':_0x4fec1a(0x197),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x4fec1a(0x1d6),'apiKeyHint':_0x4fec1a(0x24a),'enableAuth':_0x4fec1a(0x1f8),'enableAuthHint':_0x4fec1a(0x282),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4fec1a(0x1ea),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4fec1a(0x2d1),'configStep1':_0x4fec1a(0x276),'configStep2':_0x4fec1a(0x306),'configStep3':_0x4fec1a(0x1ac),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4fec1a(0x2aa),'maxRetries':'Max\x20Retries','save':_0x4fec1a(0x1e5),'saving':_0x4fec1a(0x26a),'note1':_0x4fec1a(0x286),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x4fec1a(0x1b6),'apiApplyInfo':{'title':_0x4fec1a(0x287),'description':_0x4fec1a(0x1eb),'univerAiLabel':_0x4fec1a(0x274),'getStarted':_0x4fec1a(0x23b)},'validation':{'apiKeyRequired':_0x4fec1a(0x220),'apiKeyTooShort':_0x4fec1a(0x1fb),'invalidConfig':_0x4fec1a(0x319),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4fec1a(0x2cd),'connecting':_0x4fec1a(0x21f),'connected':_0x4fec1a(0x194),'failed':_0x4fec1a(0x1d0),'retrying':_0x4fec1a(0x22d)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4fec1a(0x2b5),'networkError':_0x4fec1a(0x2a3),'maxRetriesExceeded':_0x4fec1a(0x1ab)}}},Ae={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x4fec1a(0x2cf),'connected':_0x4fec1a(0x263),'failed':'MCP\x20连接失败','retrying':_0x4fec1a(0x28d),'unknown':_0x4fec1a(0x251),'unauthorized':_0x4fec1a(0x211),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x4fec1a(0x2a6),'maxRetriesExceeded':_0x4fec1a(0x1f5),'clickToConnect':_0x4fec1a(0x26b),'clickToConfigure':_0x4fec1a(0x313)},'mcpConfig':{'title':_0x4fec1a(0x1e2),'description':_0x4fec1a(0x1e6),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x4fec1a(0x2c3),'apiKeyHint':_0x4fec1a(0x2d3),'enableAuth':_0x4fec1a(0x30d),'enableAuthHint':_0x4fec1a(0x1f7),'connectionInfo':_0x4fec1a(0x28c),'mcpClientConfig':_0x4fec1a(0x28c),'configInstructions':_0x4fec1a(0x304),'configStepTitle':_0x4fec1a(0x275),'configStep1':_0x4fec1a(0x1d3),'configStep2':_0x4fec1a(0x206),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x4fec1a(0x216),'sessionIdDescription':_0x4fec1a(0x24f),'authorizationDescription':_0x4fec1a(0x24c),'configParameters':_0x4fec1a(0x27f),'maxRetries':'最大重试次数','save':_0x4fec1a(0x2b0),'saving':_0x4fec1a(0x1ae),'note1':'配置更改将立即生效','note2':_0x4fec1a(0x2e5),'configSaved':'配置保存成功','configError':_0x4fec1a(0x2da),'apiApplyInfo':{'title':_0x4fec1a(0x1d1),'description':_0x4fec1a(0x2bc),'univerAiLabel':_0x4fec1a(0x1bb),'getStarted':_0x4fec1a(0x207)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x4fec1a(0x225),'invalidConfig':_0x4fec1a(0x2d4),'invalidApiKey':_0x4fec1a(0x248)},'connectionStatus':{'disconnected':_0x4fec1a(0x31c),'connecting':_0x4fec1a(0x26f),'connected':_0x4fec1a(0x2ca),'failed':'连接失败','retrying':_0x4fec1a(0x24b)},'connectionError':{'unauthorized':_0x4fec1a(0x1b7),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x4fec1a(0x29d),'maxRetriesExceeded':_0x4fec1a(0x247)}}};var De=Object[_0x4fec1a(0x2c7)],ke=Object[_0x4fec1a(0x19b)],Ue=(_0x5817c5,_0x2ef0c7,_0x3e14a8)=>_0x2ef0c7 in _0x5817c5?De(_0x5817c5,_0x2ef0c7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e14a8}):_0x5817c5[_0x2ef0c7]=_0x3e14a8,Te=(_0x5123db,_0xa75b0a,_0x357987,_0xc71f4e)=>{var _0x15d2eb=_0x4fec1a;for(var _0x24690c=_0xc71f4e>0x1?void 0x0:_0xc71f4e?ke(_0xa75b0a,_0x357987):_0xa75b0a,_0x47370a=_0x5123db[_0x15d2eb(0x30b)]-0x1,_0x330c50;_0x47370a>=0x0;_0x47370a--)(_0x330c50=_0x5123db[_0x47370a])&&(_0x24690c=_0x330c50(_0x24690c)||_0x24690c);return _0x24690c;},M=(_0x382bda,_0x1e1302)=>(_0x3a498a,_0x41e457)=>_0x1e1302(_0x3a498a,_0x41e457,_0x382bda),$e=(_0x419c7c,_0x2e774a,_0x363ffe)=>Ue(_0x419c7c,_0x2e774a+'',_0x363ffe);exports[_0x4fec1a(0x191)]=class extends l[_0x4fec1a(0x23f)]{constructor(_0x27b05e=G,_0x4674ba,_0x1a528e,_0x148368,_0x4edddb,_0x2160a5){var _0x577c0d=_0x4fec1a;super(),this[_0x577c0d(0x2c0)]=_0x27b05e,this[_0x577c0d(0x1fc)]=_0x4674ba,this[_0x577c0d(0x1c1)]=_0x1a528e,this[_0x577c0d(0x2e9)]=_0x148368,this[_0x577c0d(0x2eb)]=_0x4edddb,this['_localeService']=_0x2160a5;const {..._0x4c75fe}=l['merge']({},G,this[_0x577c0d(0x2c0)]);this['_configService'][_0x577c0d(0x204)](y,_0x4c75fe);}async[_0x4fec1a(0x242)](){var _0x1ff8fd=_0x4fec1a;const _0x3c84dc=[[exports[_0x1ff8fd(0x234)]],[exports['MCPConfigUIController']],[exports[_0x1ff8fd(0x1f9)]]];this[_0x1ff8fd(0x1fc)]['has'](A[_0x1ff8fd(0x261)])||_0x3c84dc[_0x1ff8fd(0x2d2)]([A['ISocketService'],{'useClass':A[_0x1ff8fd(0x2ab)]}]),_0x3c84dc[_0x1ff8fd(0x2c9)](_0x176d9c=>this[_0x1ff8fd(0x1fc)][_0x1ff8fd(0x285)](_0x176d9c)),this[_0x1ff8fd(0x1fc)]['get'](exports[_0x1ff8fd(0x234)]),this[_0x1ff8fd(0x1fc)][_0x1ff8fd(0x31e)](exports[_0x1ff8fd(0x23c)]),this['_injector'][_0x1ff8fd(0x31e)](exports[_0x1ff8fd(0x1f9)]);}},$e(exports[_0x4fec1a(0x191)],_0x4fec1a(0x24e),_0x4fec1a(0x1ff)),exports[_0x4fec1a(0x191)]=Te([l['DependentOn'](s[_0x4fec1a(0x272)]),M(0x1,l[_0x4fec1a(0x1ad)](l[_0x4fec1a(0x1a0)])),M(0x2,l['IConfigService']),M(0x3,v[_0x4fec1a(0x1f4)]),M(0x4,l[_0x4fec1a(0x1f1)]),M(0x5,l[_0x4fec1a(0x1ad)](l[_0x4fec1a(0x2f1)]))],exports[_0x4fec1a(0x191)]),exports['MCPConfigPanel']=W,exports[_0x4fec1a(0x265)]=X,exports[_0x4fec1a(0x310)]=j,exports[_0x4fec1a(0x1bd)]=Oe,exports['zhCN']=Ae;
@@ -1 +1 @@
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;
1
+ 'use strict';function _0x414a(){const _0x45fb68=['Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','224aRKyJI','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','API\x20Key','7gBdqkz','Invalid\x20configuration','Connected','MCP\x20Connected','55CJZloS','776732SDkAlS','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20configure\x20MCP','Click\x20to\x20connect\x20MCP','Save\x20Configuration','3817200BGuoPE','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Max\x20Retries\x20Exceeded','5wUMrat','Univer\x20AI\x20Console','Enable\x20Authentication','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','3740406SsAOqH','11908664aTgnVL','MCP\x20Disconnected','Retrying...','Connecting...','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','22896UzyXED','exports','6550880otgVMC','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','12122352HgezNO','Configuration\x20Steps:'];_0x414a=function(){return _0x45fb68;};return _0x414a();}const _0x43a072=_0xda7a;function _0xda7a(_0x2f71a4,_0x3b52fd){const _0x414a30=_0x414a();return _0xda7a=function(_0xda7ad6,_0x1c3c7a){_0xda7ad6=_0xda7ad6-0xf4;let _0x101a1f=_0x414a30[_0xda7ad6];return _0x101a1f;},_0xda7a(_0x2f71a4,_0x3b52fd);}(function(_0x35937b,_0x302abc){const _0x16b07c=_0xda7a,_0xff08bb=_0x35937b();while(!![]){try{const _0x5d4ef7=parseInt(_0x16b07c(0xfc))/0x1+parseInt(_0x16b07c(0x120))/0x2*(parseInt(_0x16b07c(0x118))/0x3)+-parseInt(_0x16b07c(0x11a))/0x4*(-parseInt(_0x16b07c(0x109))/0x5)+parseInt(_0x16b07c(0x110))/0x6*(-parseInt(_0x16b07c(0xf7))/0x7)+parseInt(_0x16b07c(0x111))/0x8+-parseInt(_0x16b07c(0x11c))/0x9+-parseInt(_0x16b07c(0x106))/0xa*(parseInt(_0x16b07c(0xfb))/0xb);if(_0x5d4ef7===_0x302abc)break;else _0xff08bb['push'](_0xff08bb['shift']());}catch(_0xbdfb2d){_0xff08bb['push'](_0xff08bb['shift']());}}}(_0x414a,0xd692a));const e={'mcpStatus':{'disconnected':_0x43a072(0x112),'connecting':'MCP\x20Connecting...','connected':_0x43a072(0xfa),'failed':_0x43a072(0x10c),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x43a072(0xfe),'sessionOccupied':_0x43a072(0x10f),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x43a072(0x108),'clickToConnect':_0x43a072(0x104),'clickToConfigure':_0x43a072(0x103)},'mcpConfig':{'title':_0x43a072(0x10e),'description':_0x43a072(0xf4),'apiKey':_0x43a072(0xf6),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x43a072(0x10b),'enableAuthHint':_0x43a072(0xff),'connectionInfo':_0x43a072(0xf5),'mcpClientConfig':_0x43a072(0xf5),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x43a072(0x11d),'configStep1':_0x43a072(0x116),'configStep2':_0x43a072(0x101),'configStep3':_0x43a072(0x10d),'sessionId':_0x43a072(0x11f),'sessionIdDescription':_0x43a072(0x11b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x43a072(0x117),'save':_0x43a072(0x105),'saving':'Saving...','note1':_0x43a072(0x100),'note2':_0x43a072(0x107),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x43a072(0x10a),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x43a072(0xf8),'invalidApiKey':_0x43a072(0x11e)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x43a072(0x114),'connected':_0x43a072(0xf9),'failed':_0x43a072(0x115),'retrying':_0x43a072(0x113)},'connectionError':{'unauthorized':_0x43a072(0xfd),'sessionOccupied':_0x43a072(0x102),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x43a072(0x119)]=n;
@@ -1 +1 @@
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;
1
+ 'use strict';const _0xba552c=_0x3579;(function(_0x505071,_0x5660fb){const _0x37cd48=_0x3579,_0x41c670=_0x505071();while(!![]){try{const _0x501bf7=parseInt(_0x37cd48(0x1f4))/0x1+parseInt(_0x37cd48(0x1ea))/0x2*(-parseInt(_0x37cd48(0x1ff))/0x3)+-parseInt(_0x37cd48(0x1e5))/0x4*(parseInt(_0x37cd48(0x1df))/0x5)+parseInt(_0x37cd48(0x1ef))/0x6+parseInt(_0x37cd48(0x1f5))/0x7+parseInt(_0x37cd48(0x1db))/0x8*(parseInt(_0x37cd48(0x1e1))/0x9)+-parseInt(_0x37cd48(0x1fa))/0xa;if(_0x501bf7===_0x5660fb)break;else _0x41c670['push'](_0x41c670['shift']());}catch(_0x2860f7){_0x41c670['push'](_0x41c670['shift']());}}}(_0x3790,0xdebb5));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0xba552c(0x1e7),'connected':_0xba552c(0x1fe),'failed':_0xba552c(0x201),'retrying':'MCP\x20Retrying...','unknown':_0xba552c(0x1d7),'unauthorized':_0xba552c(0x1d3),'sessionOccupied':_0xba552c(0x1ec),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xba552c(0x1fb),'clickToConnect':_0xba552c(0x1f7),'clickToConfigure':_0xba552c(0x1fd)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xba552c(0x1e9),'apiKey':_0xba552c(0x1e0),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xba552c(0x202),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xba552c(0x1d9),'mcpClientConfig':_0xba552c(0x1d9),'configInstructions':_0xba552c(0x1ed),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xba552c(0x1dc),'configStep2':_0xba552c(0x1f6),'configStep3':_0xba552c(0x1f0),'sessionId':_0xba552c(0x1e3),'sessionIdDescription':_0xba552c(0x1e6),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xba552c(0x1e8),'maxRetries':'Max\x20Retries','save':_0xba552c(0x1eb),'saving':_0xba552c(0x1d6),'note1':_0xba552c(0x1d5),'note2':_0xba552c(0x1f8),'configSaved':_0xba552c(0x1dd),'configError':_0xba552c(0x1ee),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0xba552c(0x1d8),'getStarted':_0xba552c(0x200)},'validation':{'apiKeyRequired':_0xba552c(0x1f9),'apiKeyTooShort':_0xba552c(0x1de),'invalidConfig':_0xba552c(0x1d1),'invalidApiKey':_0xba552c(0x1e4)},'connectionStatus':{'disconnected':_0xba552c(0x1d4),'connecting':_0xba552c(0x1f1),'connected':_0xba552c(0x1e2),'failed':'Connection\x20Failed','retrying':_0xba552c(0x1da)},'connectionError':{'unauthorized':_0xba552c(0x1f2),'sessionOccupied':_0xba552c(0x1f3),'networkError':_0xba552c(0x1fc),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x3790(){const _0x30e19b=['63ceZMmI','Connected','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','112DuPzvj','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connecting...','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','498072tDcrtM','Save\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Failed\x20to\x20save\x20configuration','1077684bQRhoJ','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','196204MPylnt','7764869KKGaqn','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','1174570aBKGXc','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20configure\x20MCP','MCP\x20Connected','3kZEADD','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','exports','MCP:\x20Unauthorized','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Saving...','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','MCP\x20Client\x20Configuration','Retrying...','1687160dLPvzg','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20saved\x20successfully','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','300455uVEBNQ','API\x20Key'];_0x3790=function(){return _0x30e19b;};return _0x3790();}function _0x3579(_0x2bcb07,_0x1e6895){const _0x37900c=_0x3790();return _0x3579=function(_0x357964,_0x4fddef){_0x357964=_0x357964-0x1d1;let _0x4d54f0=_0x37900c[_0x357964];return _0x4d54f0;},_0x3579(_0x2bcb07,_0x1e6895);}module[_0xba552c(0x1d2)]=e;
@@ -1 +1 @@
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;
1
+ 'use strict';const _0x463faa=_0x4b11;(function(_0x119523,_0x427db8){const _0x14bab9=_0x4b11,_0x586fa5=_0x119523();while(!![]){try{const _0x3716bd=parseInt(_0x14bab9(0x1d7))/0x1+parseInt(_0x14bab9(0x1d1))/0x2+-parseInt(_0x14bab9(0x1d0))/0x3*(-parseInt(_0x14bab9(0x1ec))/0x4)+-parseInt(_0x14bab9(0x1dd))/0x5+parseInt(_0x14bab9(0x1cf))/0x6*(parseInt(_0x14bab9(0x1cc))/0x7)+parseInt(_0x14bab9(0x1e8))/0x8+-parseInt(_0x14bab9(0x1e1))/0x9;if(_0x3716bd===_0x427db8)break;else _0x586fa5['push'](_0x586fa5['shift']());}catch(_0x42c61c){_0x586fa5['push'](_0x586fa5['shift']());}}}(_0xc5cf,0xc6c48));const e={'mcpStatus':{'disconnected':_0x463faa(0x1ee),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x463faa(0x1cd),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x463faa(0x1e6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x463faa(0x1e3),'maxRetriesExceeded':_0x463faa(0x1ef),'clickToConnect':_0x463faa(0x1ce),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x463faa(0x1d8),'description':_0x463faa(0x1e4),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x463faa(0x1d4),'apiKeyHint':_0x463faa(0x1e0),'enableAuth':_0x463faa(0x1c8),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x463faa(0x1c9),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x463faa(0x1e7),'configStep1':_0x463faa(0x1da),'configStep2':_0x463faa(0x1f1),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x463faa(0x1eb),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x463faa(0x1d2),'configParameters':_0x463faa(0x1d3),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x463faa(0x1cb),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x463faa(0x1e2),'apiApplyInfo':{'title':_0x463faa(0x1d9),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x463faa(0x1df)},'validation':{'apiKeyRequired':_0x463faa(0x1ed),'apiKeyTooShort':_0x463faa(0x1f0),'invalidConfig':_0x463faa(0x1db),'invalidApiKey':_0x463faa(0x1d5)},'connectionStatus':{'disconnected':_0x463faa(0x1ca),'connecting':'Connecting...','connected':_0x463faa(0x1e9),'failed':_0x463faa(0x1d6),'retrying':_0x463faa(0x1ea)},'connectionError':{'unauthorized':_0x463faa(0x1dc),'sessionOccupied':_0x463faa(0x1c7),'networkError':_0x463faa(0x1de),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x4b11(_0x11ebb5,_0x3b8515){const _0xc5cf91=_0xc5cf();return _0x4b11=function(_0x4b1160,_0x9ada3b){_0x4b1160=_0x4b1160-0x1c7;let _0x53a7ab=_0xc5cf91[_0x4b1160];return _0x53a7ab;},_0x4b11(_0x11ebb5,_0x3b8515);}function _0xc5cf(){const _0x3954fd=['Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Failed','1126485SccWRR','MCP\x20Configuration','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','806590zNspyB','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','41425776wErmJJ','Failed\x20to\x20save\x20configuration','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','exports','MCP:\x20Unauthorized','Configuration\x20Steps:','12952712oBoVqK','Connected','Retrying...','Session\x20ID','8pDwcJU','API\x20key\x20is\x20required','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20Authentication','MCP\x20Client\x20Configuration','Disconnected','Saving...','1015vuUjal','MCP\x20Connection\x20Failed','Click\x20to\x20connect\x20MCP','18654eJrxZv','1367076DTWGdQ','2941142vnRCGv','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Parameters:'];_0xc5cf=function(){return _0x3954fd;};return _0xc5cf();}module[_0x463faa(0x1e5)]=n;
@@ -1 +1 @@
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;
1
+ 'use strict';const _0x2825b0=_0x446b;(function(_0x1ec70d,_0x5da655){const _0x3dd676=_0x446b,_0x1eed00=_0x1ec70d();while(!![]){try{const _0x1a1d84=-parseInt(_0x3dd676(0xf7))/0x1*(-parseInt(_0x3dd676(0x109))/0x2)+parseInt(_0x3dd676(0x101))/0x3*(-parseInt(_0x3dd676(0x103))/0x4)+parseInt(_0x3dd676(0xe0))/0x5+-parseInt(_0x3dd676(0xf4))/0x6*(parseInt(_0x3dd676(0xe1))/0x7)+-parseInt(_0x3dd676(0xea))/0x8*(-parseInt(_0x3dd676(0xf3))/0x9)+parseInt(_0x3dd676(0xfc))/0xa*(-parseInt(_0x3dd676(0xeb))/0xb)+-parseInt(_0x3dd676(0x107))/0xc*(parseInt(_0x3dd676(0xe5))/0xd);if(_0x1a1d84===_0x5da655)break;else _0x1eed00['push'](_0x1eed00['shift']());}catch(_0x1e2fe3){_0x1eed00['push'](_0x1eed00['shift']());}}}(_0x5afd,0x88f09));function _0x446b(_0x2e75ee,_0x35fe57){const _0x5afd06=_0x5afd();return _0x446b=function(_0x446b1c,_0x216c86){_0x446b1c=_0x446b1c-0xd9;let _0x2d103e=_0x5afd06[_0x446b1c];return _0x2d103e;},_0x446b(_0x2e75ee,_0x35fe57);}const e={'mcpStatus':{'disconnected':_0x2825b0(0xf5),'connecting':_0x2825b0(0xdf),'connected':_0x2825b0(0x100),'failed':_0x2825b0(0xf0),'retrying':_0x2825b0(0x105),'unknown':_0x2825b0(0x104),'unauthorized':_0x2825b0(0xe2),'sessionOccupied':_0x2825b0(0xdb),'networkError':_0x2825b0(0xfe),'maxRetriesExceeded':_0x2825b0(0xff),'clickToConnect':_0x2825b0(0xe6),'clickToConfigure':_0x2825b0(0xef)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2825b0(0xe8),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2825b0(0xf9),'apiKeyHint':_0x2825b0(0xda),'enableAuth':_0x2825b0(0xe4),'enableAuthHint':_0x2825b0(0x106),'connectionInfo':_0x2825b0(0xde),'mcpClientConfig':_0x2825b0(0xde),'configInstructions':_0x2825b0(0xdd),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2825b0(0xf2),'configStep2':_0x2825b0(0x10d),'configStep3':_0x2825b0(0xe9),'sessionId':_0x2825b0(0xf6),'sessionIdDescription':_0x2825b0(0x10b),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x2825b0(0xed),'save':_0x2825b0(0xe7),'saving':_0x2825b0(0xfd),'note1':_0x2825b0(0x10a),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2825b0(0xfb),'configError':_0x2825b0(0xdc),'apiApplyInfo':{'title':_0x2825b0(0x10c),'description':_0x2825b0(0xec),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2825b0(0xe3),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2825b0(0xfa),'connected':'Connected','failed':_0x2825b0(0xee),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2825b0(0xd9),'sessionOccupied':_0x2825b0(0x102),'networkError':_0x2825b0(0xf1),'maxRetriesExceeded':_0x2825b0(0xf8)}}},n=e;module[_0x2825b0(0x108)]=n;function _0x5afd(){const _0x3b22eb=['MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','126477oNQIGL','12fKkrwc','MCP\x20Disconnected','Session\x20ID','40DKAALO','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','Connecting...','Configuration\x20saved\x20successfully','50szgOmq','Saving...','MCP:\x20Network\x20Error','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connected','45exOrpb','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','45020irRxgC','MCP\x20Unknown\x20Status','MCP\x20Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','132xzcCql','exports','730zgXRNk','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','MCP\x20Connecting...','2854865YBZqYq','304227fyYxYz','MCP:\x20Unauthorized','Invalid\x20configuration','Enable\x20Authentication','192543hoEZKv','Click\x20to\x20connect\x20MCP','Save\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','520psOKyQ','1142779FDaghh','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','Connection\x20Failed','Click\x20to\x20configure\x20MCP'];_0x5afd=function(){return _0x3b22eb;};return _0x5afd();}
@@ -1 +1 @@
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;
1
+ 'use strict';function _0x55d0(){const _0x4f0f0c=['Retrying...','MCP\x20Configuration','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3266049QwrMZJ','API\x20Key','4IzPdtq','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','Configuration\x20Steps:','1496910ufnuRN','2809716NWkQHa','317400wsMNIC','MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','MCP:\x20Network\x20Error','Configuration\x20saved\x20successfully','Saving...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','Connection\x20Failed','6795380JWEoFC','Connected','MCP\x20Disconnected','MCP\x20Connected','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20with\x20Bearer\x20prefix.','877392ecZmbb','API\x20key\x20is\x20required','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Unauthorized','Enable\x20Authentication','MCP\x20Connecting...','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','9645699HjvOgw','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0x55d0=function(){return _0x4f0f0c;};return _0x55d0();}const _0x52d46b=_0x1b6f;(function(_0x290d9d,_0x4738cc){const _0x457e2e=_0x1b6f,_0x17e6da=_0x290d9d();while(!![]){try{const _0x59622a=parseInt(_0x457e2e(0x168))/0x1+-parseInt(_0x457e2e(0x167))/0x2+-parseInt(_0x457e2e(0x160))/0x3+-parseInt(_0x457e2e(0x162))/0x4*(-parseInt(_0x457e2e(0x175))/0x5)+parseInt(_0x457e2e(0x166))/0x6+parseInt(_0x457e2e(0x157))/0x7+parseInt(_0x457e2e(0x17c))/0x8;if(_0x59622a===_0x4738cc)break;else _0x17e6da['push'](_0x17e6da['shift']());}catch(_0x42968f){_0x17e6da['push'](_0x17e6da['shift']());}}}(_0x55d0,0xe09f3));const e={'mcpStatus':{'disconnected':_0x52d46b(0x177),'connecting':_0x52d46b(0x186),'connected':_0x52d46b(0x178),'failed':_0x52d46b(0x163),'retrying':'MCP\x20Retrying...','unknown':_0x52d46b(0x15c),'unauthorized':_0x52d46b(0x184),'sessionOccupied':_0x52d46b(0x156),'networkError':_0x52d46b(0x16c),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x52d46b(0x155),'clickToConfigure':_0x52d46b(0x179)},'mcpConfig':{'title':_0x52d46b(0x15b),'description':_0x52d46b(0x181),'apiKey':_0x52d46b(0x161),'apiKeyPlaceholder':_0x52d46b(0x170),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x52d46b(0x185),'enableAuthHint':_0x52d46b(0x15e),'connectionInfo':_0x52d46b(0x169),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x52d46b(0x165),'configStep1':_0x52d46b(0x17a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x52d46b(0x158),'sessionId':'Session\x20ID','sessionIdDescription':_0x52d46b(0x17f),'authorizationDescription':_0x52d46b(0x17b),'configParameters':_0x52d46b(0x164),'maxRetries':_0x52d46b(0x17e),'save':'Save\x20Configuration','saving':_0x52d46b(0x16e),'note1':_0x52d46b(0x16f),'note2':_0x52d46b(0x15f),'configSaved':_0x52d46b(0x16d),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x52d46b(0x159),'univerAiLabel':_0x52d46b(0x16b),'getStarted':_0x52d46b(0x173)},'validation':{'apiKeyRequired':_0x52d46b(0x17d),'apiKeyTooShort':_0x52d46b(0x180),'invalidConfig':_0x52d46b(0x182),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x52d46b(0x172),'connected':_0x52d46b(0x176),'failed':_0x52d46b(0x174),'retrying':_0x52d46b(0x15a)},'connectionError':{'unauthorized':_0x52d46b(0x15d),'sessionOccupied':_0x52d46b(0x183),'networkError':_0x52d46b(0x171),'maxRetriesExceeded':_0x52d46b(0x16a)}}},n=e;function _0x1b6f(_0x62550c,_0x5e53bc){const _0x55d007=_0x55d0();return _0x1b6f=function(_0x1b6fe1,_0x4296a7){_0x1b6fe1=_0x1b6fe1-0x155;let _0x5b46f7=_0x55d007[_0x1b6fe1];return _0x5b46f7;},_0x1b6f(_0x62550c,_0x5e53bc);}module['exports']=n;