@univerjs-pro/mcp-ui 0.15.5 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x320784=_0x5131;(function(_0x42720d,_0x14ba90){const _0x192b1b=_0x5131,_0x426456=_0x42720d();while(!![]){try{const _0x5de6ad=-parseInt(_0x192b1b(0x2fc))/0x1*(parseInt(_0x192b1b(0x22c))/0x2)+-parseInt(_0x192b1b(0x1fe))/0x3*(parseInt(_0x192b1b(0x1f6))/0x4)+-parseInt(_0x192b1b(0x202))/0x5*(-parseInt(_0x192b1b(0x231))/0x6)+parseInt(_0x192b1b(0x34c))/0x7*(-parseInt(_0x192b1b(0x22e))/0x8)+parseInt(_0x192b1b(0x2e3))/0x9*(-parseInt(_0x192b1b(0x23a))/0xa)+parseInt(_0x192b1b(0x2de))/0xb+parseInt(_0x192b1b(0x1c8))/0xc*(parseInt(_0x192b1b(0x335))/0xd);if(_0x5de6ad===_0x14ba90)break;else _0x426456['push'](_0x426456['shift']());}catch(_0x5b04ac){_0x426456['push'](_0x426456['shift']());}}}(_0x3fa7,0x6fb06));var ae=Object[_0x320784(0x205)],le=(_0x345163,_0x291557,_0x53f2ae)=>_0x291557 in _0x345163?ae(_0x345163,_0x291557,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53f2ae}):_0x345163[_0x291557]=_0x53f2ae,I=(_0x51529c,_0x3c2ba4,_0x523ad9)=>le(_0x51529c,typeof _0x3c2ba4!='symbol'?_0x3c2ba4+'':_0x3c2ba4,_0x523ad9);Object[_0x320784(0x205)](exports,Symbol[_0x320784(0x303)],{'value':_0x320784(0x351)});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x14c949,..._0x18ef49}){const _0x179fd9=_0x320784,{icon:_0x53b7f2,id:_0x185af9,className:_0x535cc9,extend:_0x419a50,..._0x3b8a77}=_0x18ef49,_0x3389b0=(_0x179fd9(0x2d4)+_0x185af9+'\x20'+(_0x535cc9||''))['trim'](),_0xc09208=d[_0x179fd9(0x243)]('_'+de());return G(_0x53b7f2,''+_0x185af9,{'defIds':_0x53b7f2[_0x179fd9(0x297)],'idSuffix':_0xc09208[_0x179fd9(0x254)]},{'ref':_0x14c949,'className':_0x3389b0,..._0x3b8a77},_0x419a50);}function G(_0x3aac20,_0x4c8ec6,_0x1e5333,_0x2ffa7b,_0x541e8e){const _0x49f950=_0x320784;return d[_0x49f950(0x212)](_0x3aac20[_0x49f950(0x1e0)],{'key':_0x4c8ec6,...ue(_0x3aac20,_0x1e5333,_0x541e8e),..._0x2ffa7b},(ve(_0x3aac20,_0x1e5333)['children']||[])[_0x49f950(0x1df)]((_0x2a50f0,_0x10d59a)=>G(_0x2a50f0,_0x4c8ec6+'-'+_0x3aac20[_0x49f950(0x1e0)]+'-'+_0x10d59a,_0x1e5333,void 0x0,_0x541e8e)));}function ue(_0x445dc7,_0x140d96,_0x5d18ce){const _0xe4141c=_0x320784,_0x4c979c={..._0x445dc7['attrs']};_0x5d18ce!=null&&_0x5d18ce[_0xe4141c(0x2f4)]&&_0x4c979c[_0xe4141c(0x285)]===_0xe4141c(0x2f4)&&(_0x4c979c[_0xe4141c(0x285)]=_0x5d18ce[_0xe4141c(0x2f4)]),_0x445dc7[_0xe4141c(0x1e0)]==='mask'&&_0x4c979c['id']&&(_0x4c979c['id']=_0x4c979c['id']+_0x140d96[_0xe4141c(0x1f9)]),Object['entries'](_0x4c979c)[_0xe4141c(0x237)](([_0x130ae8,_0x2ca02d])=>{const _0x5844ee=_0xe4141c;_0x130ae8===_0x5844ee(0x30e)&&typeof _0x2ca02d=='string'&&(_0x4c979c[_0x130ae8]=_0x2ca02d[_0x5844ee(0x250)](/url\(#(.*)\)/,_0x5844ee(0x2ef)+_0x140d96[_0x5844ee(0x1f9)]+')'));});const {defIds:_0x148b6c}=_0x140d96;return!_0x148b6c||_0x148b6c[_0xe4141c(0x235)]===0x0||(_0x445dc7[_0xe4141c(0x1e0)]===_0xe4141c(0x218)&&_0x4c979c['xlink:href']&&(_0x4c979c[_0xe4141c(0x336)]=_0x4c979c[_0xe4141c(0x336)]+_0x140d96[_0xe4141c(0x1f9)]),Object[_0xe4141c(0x272)](_0x4c979c)[_0xe4141c(0x237)](([_0x3d71a5,_0xf52a39])=>{const _0x2acec1=_0xe4141c;typeof _0xf52a39=='string'&&(_0x4c979c[_0x3d71a5]=_0xf52a39[_0x2acec1(0x250)](/url\(#(.*)\)/,_0x2acec1(0x2ef)+_0x140d96['idSuffix']+')'));})),_0x4c979c;}function ve(_0x3d8922,_0x3bbb51){const _0x50383e=_0x320784;var _0x4c995f;const {defIds:_0x484dd6}=_0x3bbb51;return!_0x484dd6||_0x484dd6[_0x50383e(0x235)]===0x0?_0x3d8922:_0x3d8922[_0x50383e(0x1e0)]===_0x50383e(0x357)&&((_0x4c995f=_0x3d8922[_0x50383e(0x1de)])!=null&&_0x4c995f['length'])?{..._0x3d8922,'children':_0x3d8922[_0x50383e(0x1de)][_0x50383e(0x1df)](_0xa98621=>typeof _0xa98621[_0x50383e(0x317)]['id']==_0x50383e(0x1eb)&&_0x484dd6&&_0x484dd6['includes'](_0xa98621[_0x50383e(0x317)]['id'])?{..._0xa98621,'attrs':{..._0xa98621['attrs'],'id':_0xa98621[_0x50383e(0x317)]['id']+_0x3bbb51[_0x50383e(0x1f9)]}}:_0xa98621)}:_0x3d8922;}function de(){const _0x35c047=_0x320784;return Math[_0x35c047(0x341)]()[_0x35c047(0x304)](0x24)['substring'](0x2,0x8);}_['displayName']=_0x320784(0x252);const Ce={'tag':_0x320784(0x2fe),'attrs':{'xmlns':_0x320784(0x2d9),'fill':'none','viewBox':_0x320784(0x2ea),'width':'1em','height':'1em'},'children':[{'tag':_0x320784(0x26f),'attrs':{'fill':'currentColor','d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0x320784(0x329)}}]},H=d[_0x320784(0x28b)](function(_0x53c3ab,_0x529cee){const _0x25e61d=_0x320784;return d[_0x25e61d(0x212)](_,Object[_0x25e61d(0x358)]({},_0x53c3ab,{'id':_0x25e61d(0x209),'ref':_0x529cee,'icon':Ce}));});H['displayName']=_0x320784(0x2ad);const ge={'tag':'svg','attrs':{'xmlns':_0x320784(0x2d9),'fill':_0x320784(0x302),'viewBox':_0x320784(0x2ea),'width':_0x320784(0x31b),'height':_0x320784(0x31b)},'children':[{'tag':_0x320784(0x26f),'attrs':{'fill':_0x320784(0x2f2),'d':_0x320784(0x284)}}]},B=d[_0x320784(0x28b)](function(_0x474318,_0x409f5d){const _0x2a3eb6=_0x320784;return d['createElement'](_,Object[_0x2a3eb6(0x358)]({},_0x474318,{'id':_0x2a3eb6(0x32e),'ref':_0x409f5d,'icon':ge}));});B[_0x320784(0x1f7)]=_0x320784(0x1cc);const fe={'tag':_0x320784(0x2fe),'attrs':{'xmlns':_0x320784(0x2d9),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x320784(0x31b),'height':'1em'},'children':[{'tag':_0x320784(0x26f),'attrs':{'fill':_0x320784(0x2f2),'d':_0x320784(0x2e2)}},{'tag':_0x320784(0x26f),'attrs':{'fill':_0x320784(0x2f2),'d':_0x320784(0x236)}},{'tag':_0x320784(0x26f),'attrs':{'fill':'currentColor','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':_0x320784(0x329),'clipRule':_0x320784(0x329)}}]},F=d[_0x320784(0x28b)](function(_0x10e0de,_0x399270){const _0x15161f=_0x320784;return d[_0x15161f(0x212)](_,Object[_0x15161f(0x358)]({},_0x10e0de,{'id':'help-icon','ref':_0x399270,'icon':fe}));});function _0x5131(_0x19972a,_0x495a89){_0x19972a=_0x19972a-0x1c7;const _0x3fa71d=_0x3fa7();let _0x51313b=_0x3fa71d[_0x19972a];return _0x51313b;}F[_0x320784(0x1f7)]=_0x320784(0x2f0);const pe={'tag':_0x320784(0x2fe),'attrs':{'xmlns':_0x320784(0x2d9),'fill':_0x320784(0x302),'viewBox':_0x320784(0x2ea),'width':'1em','height':_0x320784(0x31b)},'children':[{'tag':'g','attrs':{'clipPath':_0x320784(0x2b6)},'children':[{'tag':_0x320784(0x26f),'attrs':{'stroke':_0x320784(0x2f2),'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':_0x320784(0x320),'strokeLinejoin':_0x320784(0x320),'strokeWidth':1.2}}]},{'tag':_0x320784(0x357),'attrs':{},'children':[{'tag':_0x320784(0x23d),'attrs':{'id':_0x320784(0x31d)},'children':[{'tag':'path','attrs':{'fill':_0x320784(0x256),'d':_0x320784(0x337)}}]}]}],'defIds':[_0x320784(0x31d)]},Y=d[_0x320784(0x28b)](function(_0x1176d8,_0x533bfd){const _0x5344c7=_0x320784;return d['createElement'](_,Object['assign']({},_0x1176d8,{'id':_0x5344c7(0x2b9),'ref':_0x533bfd,'icon':pe}));});Y['displayName']=_0x320784(0x30b);const he={'tag':_0x320784(0x2fe),'attrs':{'xmlns':_0x320784(0x2d9),'fill':'none','viewBox':_0x320784(0x267),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x320784(0x2e7)},'children':[{'tag':_0x320784(0x26f),'attrs':{'stroke':_0x320784(0x2f2),'d':_0x320784(0x1cd),'strokeLinecap':'round','strokeLinejoin':_0x320784(0x320),'strokeWidth':1.2}}]},{'tag':_0x320784(0x357),'attrs':{},'children':[{'tag':_0x320784(0x23d),'attrs':{'id':_0x320784(0x2fa)},'children':[{'tag':_0x320784(0x26f),'attrs':{'fill':_0x320784(0x256),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x320784(0x2fa)]},q=d[_0x320784(0x28b)](function(_0x4db1bf,_0x425e96){const _0x1af41f=_0x320784;return d['createElement'](_,Object[_0x1af41f(0x358)]({},_0x4db1bf,{'id':'on-line-icon','ref':_0x425e96,'icon':he}));});q[_0x320784(0x1f7)]=_0x320784(0x1f4);function V(_0x3a60e6){const _0x35374c=_0x320784;var _0x547305,_0x38f334;const {mcpCoreConfig:_0x3a07ac,onSave:_0x39af4e,loading:_0xafe168=!0x1,config:_0x205216,connectionStatus$:_0x5aa44c,connectionError$:_0x50aa74,currentApiKey$:_0x246c73,currentSessionId$:_0x51ee6b}=_0x3a60e6,_0x4e3c0f=v[_0x35374c(0x2bc)](u[_0x35374c(0x2b0)]),_0x15d873=v[_0x35374c(0x31a)](_0x5aa44c,s[_0x35374c(0x301)][_0x35374c(0x20a)]),_0x40cf62=v[_0x35374c(0x31a)](_0x50aa74,s[_0x35374c(0x30d)]['NONE']),_0x20bd1b=v[_0x35374c(0x31a)](_0x51ee6b,''),_0x106bbf=v[_0x35374c(0x31a)](_0x246c73,''),[_0x34a889,_0x590e43]=d[_0x35374c(0x280)](_0x106bbf||''),_0x105e00=!0x0,_0x59c2a3=_0x205216[_0x35374c(0x2d7)]&&_0x3a07ac[_0x35374c(0x2f3)]&&(_0x3a07ac[_0x35374c(0x2f3)][_0x35374c(0x300)](_0x35374c(0x2eb))||_0x3a07ac[_0x35374c(0x2f3)][_0x35374c(0x300)](_0x35374c(0x228))),_0x5c43a0=(_0x547305=_0x3a07ac[_0x35374c(0x2f3)])==null?void 0x0:_0x547305[_0x35374c(0x300)](_0x35374c(0x2eb)),_0x4f1e13=(_0x38f334=_0x3a07ac[_0x35374c(0x2f3)])==null?void 0x0:_0x38f334[_0x35374c(0x300)](_0x35374c(0x228)),_0x571afe=_0x5c43a0?_0x35374c(0x1d3):_0x35374c(0x239),_0x30f897=_0x205216[_0x35374c(0x2d7)]&&(_0x5c43a0||_0x4f1e13),[_0xf5d841,_0x1923de]=d[_0x35374c(0x280)](!_0x34a889['trim']()),_0x96419c=(_0x5a5c5b,_0x1499e0)=>{const _0x26d264=_0x35374c;if(_0x1499e0===s[_0x26d264(0x30d)]['UNAUTHORIZED'])return _0x26d264(0x219);switch(_0x5a5c5b){case s[_0x26d264(0x301)]['CONNECTED']:return _0x26d264(0x265);case s[_0x26d264(0x301)][_0x26d264(0x248)]:case s[_0x26d264(0x301)][_0x26d264(0x217)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x26d264(0x301)][_0x26d264(0x2a0)]:return _0x26d264(0x219);default:return _0x26d264(0x353);}},_0x5e059f=(_0x10a6a8,_0x148214)=>{const _0x2ddad7=_0x35374c;if(_0x148214===s[_0x2ddad7(0x30d)]['UNAUTHORIZED'])return _0x2ddad7(0x347);switch(_0x10a6a8){case s['MCPConnectionStatus'][_0x2ddad7(0x2e9)]:return'univer-bg-green-500';case s[_0x2ddad7(0x301)][_0x2ddad7(0x248)]:case s['MCPConnectionStatus'][_0x2ddad7(0x217)]:return _0x2ddad7(0x1f2);case s[_0x2ddad7(0x301)][_0x2ddad7(0x2a0)]:return'univer-bg-red-500';default:return _0x2ddad7(0x2b8);}},_0xaec1be=_0x2e63fa=>{const _0x420948=_0x35374c;switch(_0x2e63fa){case s['MCPConnectionStatus']['CONNECTED']:return _0x4e3c0f['t'](_0x420948(0x325));case s[_0x420948(0x301)][_0x420948(0x248)]:return _0x4e3c0f['t'](_0x420948(0x29d));case s['MCPConnectionStatus'][_0x420948(0x2a0)]:return _0x4e3c0f['t']('mcpConfig.connectionStatus.failed');case s[_0x420948(0x301)][_0x420948(0x217)]:return _0x4e3c0f['t'](_0x420948(0x20d));default:return _0x4e3c0f['t'](_0x420948(0x259));}},_0x25d556=_0x4725ad=>{const _0x38e64f=_0x35374c;switch(_0x4725ad){case s[_0x38e64f(0x30d)][_0x38e64f(0x20c)]:return _0x4e3c0f['t'](_0x38e64f(0x2e1));case s[_0x38e64f(0x30d)][_0x38e64f(0x331)]:return _0x4e3c0f['t'](_0x38e64f(0x2f7));case s[_0x38e64f(0x30d)][_0x38e64f(0x2af)]:return _0x4e3c0f['t'](_0x38e64f(0x2e5));case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x4e3c0f['t'](_0x38e64f(0x29c));default:return'';}},_0xf21be1=d[_0x35374c(0x253)](()=>{const _0x266bc9=_0x35374c,_0x3d3356={..._0x3a07ac,'apiKey':_0x34a889[_0x266bc9(0x220)](),'enableAuth':_0x105e00};_0x39af4e(_0x3d3356);},[_0x3a07ac,_0x34a889,_0x105e00,_0x39af4e]),_0x16be96=_0x34a889[_0x35374c(0x220)]()['length']>0x0;return i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x22d),'children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':_0x35374c(0x354),'children':i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x26b),'children':[i[_0x35374c(0x286)]('div',{'className':_0x35374c(0x24a),'children':i['jsx'](_0x35374c(0x2da),{'className':_0x35374c(0x25e),'children':'⚙'})}),i[_0x35374c(0x286)](_0x35374c(0x310),{'children':i['jsx']('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x4e3c0f['t'](_0x35374c(0x2e8))})})]})}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x2f9),'children':[i['jsx']('div',{'className':f[_0x35374c(0x1ee)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x96419c(_0x15d873,_0x40cf62)),'children':i[_0x35374c(0x26c)]('div',{'className':_0x35374c(0x24c),'children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':f['clsx'](_0x35374c(0x224),_0x5e059f(_0x15d873,_0x40cf62))}),i['jsx'](_0x35374c(0x2da),{'className':_0x35374c(0x225),'children':_0xaec1be(_0x15d873)})]})}),_0x40cf62!==s['MCPConnectionError']['NONE']&&(_0x15d873===s[_0x35374c(0x301)][_0x35374c(0x2a0)]||_0x40cf62===s[_0x35374c(0x30d)][_0x35374c(0x20c)])&&i[_0x35374c(0x286)](_0x35374c(0x310),{'className':_0x35374c(0x277),'children':i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x2ae),'children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'className':_0x35374c(0x221),'children':'⚠️'}),i[_0x35374c(0x286)]('p',{'className':_0x35374c(0x30a),'children':_0x25d556(_0x40cf62)})]})})]}),i[_0x35374c(0x286)](_0x35374c(0x310),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x311),'children':[i[_0x35374c(0x26c)]('div',{'className':_0x35374c(0x261),'children':[i[_0x35374c(0x26c)](_0x35374c(0x340),{'className':_0x35374c(0x309),'children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'children':'🔑'}),'\x20',_0x4e3c0f['t'](_0x35374c(0x281)),i[_0x35374c(0x286)]('span',{'className':_0x35374c(0x22b),'children':'*'}),_0x59c2a3&&i[_0x35374c(0x286)]('a',{'className':_0x35374c(0x245),'title':_0x4e3c0f['t'](_0x35374c(0x216)),'role':_0x35374c(0x251),'onClick':()=>_0x1923de(!0x0),'children':i[_0x35374c(0x286)](F,{})})]}),i[_0x35374c(0x286)](f['Input'],{'type':_0x35374c(0x22a),'placeholder':_0x4e3c0f['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x34a889,'disabled':_0xafe168,'autoComplete':_0x35374c(0x23e),'onChange':_0x590e43}),i['jsx']('p',{'className':_0x35374c(0x270),'children':_0x4e3c0f['t'](_0x35374c(0x34f))})]}),_0x59c2a3&&_0xf5d841&&i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':'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','children':[i[_0x35374c(0x286)]('a',{'className':_0x35374c(0x27a),'role':'button','onClick':()=>_0x1923de(!0x1),'children':i['jsx'](B,{'className':_0x35374c(0x342)})}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':i[_0x35374c(0x286)]('span',{'className':_0x35374c(0x339),'children':'🚀'})}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x32a),'children':[i[_0x35374c(0x286)]('h4',{'className':_0x35374c(0x2ba),'children':_0x4e3c0f['t'](_0x35374c(0x216))}),i[_0x35374c(0x286)]('p',{'className':_0x35374c(0x296),'children':_0x4e3c0f['t'](_0x35374c(0x282))}),i['jsx'](_0x35374c(0x310),{'className':_0x35374c(0x2cc),'children':_0x30f897&&i[_0x35374c(0x26c)]('a',{'className':_0x35374c(0x1d0),'href':_0x571afe,'target':_0x35374c(0x27b),'rel':'noopener\x20noreferrer','children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'children':'🤖'}),_0x4e3c0f['t'](_0x35374c(0x33c)),i[_0x35374c(0x286)](_0x35374c(0x2da),{'className':'univer-text-gray-400','children':'↗'})]})}),i['jsxs'](_0x35374c(0x310),{'className':_0x35374c(0x1cb),'children':['✨','\x20',_0x4e3c0f['t'](_0x35374c(0x24d))]})]})]})]}),_0x205216[_0x35374c(0x2d7)]&&i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x32f),'children':[i[_0x35374c(0x26c)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[i['jsx'](_0x35374c(0x2da),{'children':'🔗'}),'\x20',_0x4e3c0f['t'](_0x35374c(0x2b3))]}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x343),'children':[i['jsxs']('div',{'className':_0x35374c(0x2f8),'children':[i[_0x35374c(0x286)]('p',{'className':_0x35374c(0x1d9),'children':_0x4e3c0f['t']('mcpConfig.configInstructions')}),i[_0x35374c(0x26c)]('div',{'className':'univer-space-y-2','children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4e3c0f['t'](_0x35374c(0x1d4))}),i['jsxs'](_0x35374c(0x310),{'className':_0x35374c(0x2b7),'children':[i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x24c),'children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'className':_0x35374c(0x24b),'children':'1'}),_0x4e3c0f['t'](_0x35374c(0x24f))]}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x24c),'children':[i[_0x35374c(0x286)]('span',{'className':_0x35374c(0x24b),'children':'2'}),_0x4e3c0f['t']('mcpConfig.configStep2')]}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x24c),'children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'className':_0x35374c(0x24b),'children':'3'}),_0x4e3c0f['t'](_0x35374c(0x2f1))]})]})]})]}),i['jsxs'](_0x35374c(0x310),{'className':'univer-space-y-2','children':[i['jsx']('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),i[_0x35374c(0x286)](_0x35374c(0x310),{'className':_0x35374c(0x232),'children':i['jsx']('pre',{'className':_0x35374c(0x249),'children':JSON[_0x35374c(0x312)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x20bd1b||_0x35374c(0x328)),'type':'http','headers':{'Authorization':_0x35374c(0x271)+(_0x34a889||_0x35374c(0x308))}}}},null,0x2)})})]}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x2f8),'children':[i['jsx']('div',{'className':_0x35374c(0x27c),'children':_0x4e3c0f['t'](_0x35374c(0x29a))}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x261),'children':[i[_0x35374c(0x26c)]('div',{'className':_0x35374c(0x257),'children':[i[_0x35374c(0x286)]('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x290),'children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x35374c(0x269)}),i['jsx']('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4e3c0f['t'](_0x35374c(0x299))})]})]}),i['jsxs'](_0x35374c(0x310),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x35374c(0x286)](_0x35374c(0x310),{'className':_0x35374c(0x348)}),i['jsxs']('div',{'className':_0x35374c(0x290),'children':[i['jsx']('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x35374c(0x273)}),i[_0x35374c(0x286)](_0x35374c(0x310),{'className':_0x35374c(0x270),'children':_0x4e3c0f['t'](_0x35374c(0x346))})]})]})]})]})]})]}),i[_0x35374c(0x286)](f[_0x35374c(0x2ee)],{'onClick':_0xf21be1,'disabled':!_0x16be96||_0xafe168,'className':_0x35374c(0x211),'children':_0xafe168?i[_0x35374c(0x26c)](_0x35374c(0x2da),{'className':_0x35374c(0x24c),'children':[i['jsx'](_0x35374c(0x2da),{'children':'⟲'}),_0x4e3c0f['t'](_0x35374c(0x255))]}):i[_0x35374c(0x26c)](_0x35374c(0x2da),{'className':_0x35374c(0x24c),'children':[i[_0x35374c(0x286)](H,{}),_0x4e3c0f['t']('mcpConfig.save')]})}),i[_0x35374c(0x286)](_0x35374c(0x310),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x35374c(0x26c)](_0x35374c(0x310),{'className':_0x35374c(0x25a),'children':[i[_0x35374c(0x286)](_0x35374c(0x2da),{'className':_0x35374c(0x31e),'children':'💡'}),i['jsxs'](_0x35374c(0x310),{'className':_0x35374c(0x293),'children':[i[_0x35374c(0x286)]('div',{'className':'univer-font-medium','children':_0x35374c(0x28d)}),i[_0x35374c(0x26c)]('div',{'children':['•',_0x4e3c0f['t'](_0x35374c(0x268))]}),i[_0x35374c(0x26c)](_0x35374c(0x310),{'children':['•',_0x4e3c0f['t'](_0x35374c(0x213))]})]})]})})]})})]});}const P='mcp-ui.config',L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x320784(0x25d)],xe=(_0x45257b,_0x2415f7,_0x47807,_0x28dfa7)=>{const _0x5d287d=_0x320784;for(var _0x5609f5=_0x28dfa7>0x1?void 0x0:_0x28dfa7?me(_0x2415f7,_0x47807):_0x2415f7,_0x8b7cdb=_0x45257b[_0x5d287d(0x235)]-0x1,_0x2fd78a;_0x8b7cdb>=0x0;_0x8b7cdb--)(_0x2fd78a=_0x45257b[_0x8b7cdb])&&(_0x5609f5=_0x2fd78a(_0x5609f5)||_0x5609f5);return _0x5609f5;},g=(_0xb432d3,_0x3f87cd)=>(_0x2d6ae9,_0x30546a)=>_0x3f87cd(_0x2d6ae9,_0x30546a,_0xb432d3);const O=_0x320784(0x2ab),D=_0x320784(0x2a1);exports['MCPConfigUIController']=class extends u[_0x320784(0x230)]{constructor(_0x137500,_0xbf0e89,_0xc39d0e,_0x77fc7a,_0x508be4,_0x10f40f,_0xdcc4cb,_0x32ff1e,_0x36bf7f,_0x37a1bd){const _0x282d95=_0x320784;super(),I(this,_0x282d95(0x350),new M[(_0x282d95(0x2dc))](!0x1)),I(this,'_mcpCoreConfig$',new M[(_0x282d95(0x2dc))]({})),I(this,_0x282d95(0x330),new M[(_0x282d95(0x2dc))]({})),I(this,_0x282d95(0x2c9),new M['BehaviorSubject']('')),I(this,_0x282d95(0x208),async _0x21e3d2=>{const _0x49e328=_0x282d95;var _0x2cdf71,_0x458b0e;this[_0x49e328(0x350)][_0x49e328(0x226)](!0x0);try{const _0x14cd10=await this[_0x49e328(0x33b)](_0x21e3d2);if(!_0x14cd10[_0x49e328(0x1d7)]){this[_0x49e328(0x1fa)][_0x49e328(0x2a9)]({'type':f['MessageType'][_0x49e328(0x260)],'content':_0x14cd10[_0x49e328(0x2f6)]||this[_0x49e328(0x240)]['t'](_0x49e328(0x333))});return;}_0x21e3d2[_0x49e328(0x2fd)]?await this[_0x49e328(0x27f)][_0x49e328(0x2c2)](O,_0x21e3d2[_0x49e328(0x2fd)][_0x49e328(0x220)]()):await this[_0x49e328(0x27f)][_0x49e328(0x276)](O),this[_0x49e328(0x2c9)][_0x49e328(0x226)](((_0x2cdf71=_0x21e3d2['apiKey'])==null?void 0x0:_0x2cdf71[_0x49e328(0x220)]())||''),this[_0x49e328(0x2b4)][_0x49e328(0x204)]({'Authorization':'Bearer\x20'+((_0x458b0e=_0x21e3d2[_0x49e328(0x2fd)])==null?void 0x0:_0x458b0e['trim']())}),this[_0x49e328(0x1fa)][_0x49e328(0x2a9)]({'type':f[_0x49e328(0x352)][_0x49e328(0x242)],'content':this[_0x49e328(0x240)]['t'](_0x49e328(0x29e))}),setTimeout(()=>{const _0x3c26c4=_0x49e328;this[_0x3c26c4(0x298)][_0x3c26c4(0x2bf)](D);},0x320);}catch(_0x1ec140){this[_0x49e328(0x30f)][_0x49e328(0x2be)](_0x49e328(0x279),_0x1ec140),this[_0x49e328(0x1fa)][_0x49e328(0x2a9)]({'type':f[_0x49e328(0x352)][_0x49e328(0x260)],'content':this[_0x49e328(0x240)]['t'](_0x49e328(0x344))});}finally{this['_loading$'][_0x49e328(0x226)](!0x1);}}),(this['_injector']=_0x137500,this[_0x282d95(0x1e1)]=_0xbf0e89,this[_0x282d95(0x1ec)]=_0xc39d0e,this[_0x282d95(0x27f)]=_0x77fc7a,this[_0x282d95(0x298)]=_0x508be4,this[_0x282d95(0x1fa)]=_0x10f40f,this['_componentManager']=_0xdcc4cb,this['_localeService']=_0x32ff1e,this[_0x282d95(0x30f)]=_0x36bf7f,this['_mcpConnectionController']=_0x37a1bd,this[_0x282d95(0x33f)](),this['_loadStoredApiKey'](),this[_0x282d95(0x2ed)]());}[_0x320784(0x275)](){const _0x57de0a=_0x320784,_0x106e3d=this['_configService'][_0x57de0a(0x21a)](P);_0x106e3d!=null&&_0x106e3d[_0x57de0a(0x2d7)]&&this['_dialogService']['open']({'id':D,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3f0834=_0x57de0a;this[_0x3f0834(0x298)][_0x3f0834(0x2bf)](D);}});}[_0x320784(0x1c9)](){const _0x1ca7b7=_0x320784;return this[_0x1ca7b7(0x32c)]['value'];}[_0x320784(0x2ed)](){const _0xb07ee3=_0x320784;this[_0xb07ee3(0x2e0)](this[_0xb07ee3(0x2d8)][_0xb07ee3(0x2b1)](_0xb07ee3(0x28f),this[_0xb07ee3(0x24e)]()));}[_0x320784(0x24e)](){const _0x5efdbe=_0x320784;return v[_0x5efdbe(0x234)](()=>{const _0x43ea5b=_0x5efdbe;var _0x3da777,_0x352363,_0x14619e;return i[_0x43ea5b(0x286)](V,{'config':this[_0x43ea5b(0x330)][_0x43ea5b(0x306)],'mcpCoreConfig':this[_0x43ea5b(0x32c)]['value'],'currentApiKey$':this[_0x43ea5b(0x2c9)],'onSave':this[_0x43ea5b(0x208)],'loading':this[_0x43ea5b(0x350)][_0x43ea5b(0x306)],'connectionStatus$':(_0x3da777=this['_mcpConnectionController'])==null?void 0x0:_0x3da777['connectionStatus$'],'connectionError$':(_0x352363=this[_0x43ea5b(0x2b4)])==null?void 0x0:_0x352363[_0x43ea5b(0x1ca)],'currentSessionId$':(_0x14619e=this[_0x43ea5b(0x2b4)])==null?void 0x0:_0x14619e[_0x43ea5b(0x214)]});},this['_injector']);}[_0x320784(0x33f)](){const _0x1c789b=_0x320784;this[_0x1c789b(0x2e0)](this[_0x1c789b(0x1ec)]['subscribeConfigValue$'](s['MCP_PLUGIN_CONFIG_KEY'])[_0x1c789b(0x1d8)](_0x5ebdbb=>{const _0x4d40db=_0x1c789b;this[_0x4d40db(0x32c)][_0x4d40db(0x226)](_0x5ebdbb||{});}));const _0x2e3f4f=this[_0x1c789b(0x1ec)][_0x1c789b(0x21a)](s[_0x1c789b(0x263)]);this['_mcpCoreConfig$'][_0x1c789b(0x226)](_0x2e3f4f||{}),this[_0x1c789b(0x2e0)](this[_0x1c789b(0x1ec)][_0x1c789b(0x355)](P)[_0x1c789b(0x1d8)](_0x1c2449=>{const _0x1aa4b9=_0x1c789b;this['_config$'][_0x1aa4b9(0x226)](_0x1c2449||{});}));const _0x362e88=this[_0x1c789b(0x1ec)][_0x1c789b(0x21a)](P);this[_0x1c789b(0x330)][_0x1c789b(0x226)](_0x362e88||{});}async['_loadStoredApiKey'](){const _0x4e50f9=_0x320784,_0x1a8b84=this[_0x4e50f9(0x1ec)]['getConfig'](P);if(!(_0x1a8b84!=null&&_0x1a8b84[_0x4e50f9(0x2d7)]))return;const _0x218323=await this[_0x4e50f9(0x27f)][_0x4e50f9(0x1e8)](O);_0x218323&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x4e50f9(0x271)+_0x218323}),this[_0x4e50f9(0x2c9)]['next'](_0x218323));}async[_0x320784(0x33b)](_0x26445b){const _0x4ec796=_0x320784;if(!_0x26445b[_0x4ec796(0x2fd)]||_0x26445b[_0x4ec796(0x2fd)][_0x4ec796(0x220)]()[_0x4ec796(0x235)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4ec796(0x240)]['t'](_0x4ec796(0x287))};if(_0x26445b[_0x4ec796(0x2fd)]['trim']()[_0x4ec796(0x235)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4ec796(0x240)]['t'](_0x4ec796(0x1d1))};try{const _0x55c2df=await this[_0x4ec796(0x21e)][_0x4ec796(0x1ff)](s[_0x4ec796(0x2c0)])[_0x4ec796(0x2bb)](_0x26445b[_0x4ec796(0x2fd)]['trim']());return _0x55c2df[_0x4ec796(0x1d7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x55c2df[_0x4ec796(0x2be)]||this[_0x4ec796(0x240)]['t'](_0x4ec796(0x2d6))};}catch(_0x4005ac){return console[_0x4ec796(0x2f5)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x4005ac),{'isValid':!0x0};}}},exports[_0x320784(0x258)]=xe([g(0x0,u[_0x320784(0x246)](u[_0x320784(0x318)])),g(0x1,v[_0x320784(0x30c)]),g(0x2,u[_0x320784(0x305)]),g(0x3,u[_0x320784(0x23c)]),g(0x4,v[_0x320784(0x2e4)]),g(0x5,v[_0x320784(0x2a3)]),g(0x6,u['Inject'](v[_0x320784(0x207)])),g(0x7,u[_0x320784(0x246)](u[_0x320784(0x2b0)])),g(0x8,u[_0x320784(0x2cd)]),g(0x9,u[_0x320784(0x246)](s[_0x320784(0x2c0)]))],exports[_0x320784(0x258)]);const b={'id':_0x320784(0x34d),'type':u[_0x320784(0x21c)][_0x320784(0x1cf)],'handler':async(_0x41175d,_0x413668)=>(_0x41175d[_0x320784(0x1ff)](exports[_0x320784(0x258)])[_0x320784(0x275)](),!0x0)};function Z(_0x48c3b9,_0x144890){const _0x438bd7=_0x320784;switch(_0x48c3b9){case s[_0x438bd7(0x301)][_0x438bd7(0x20a)]:return'mcpStatus.disconnected';case s['MCPConnectionStatus']['CONNECTING']:return'mcpStatus.connecting';case s['MCPConnectionStatus'][_0x438bd7(0x2e9)]:return _0x438bd7(0x2d1);case s[_0x438bd7(0x301)]['FAILED']:switch(_0x144890){case s[_0x438bd7(0x30d)][_0x438bd7(0x20c)]:return _0x438bd7(0x206);case s['MCPConnectionError'][_0x438bd7(0x331)]:return _0x438bd7(0x2ce);case s[_0x438bd7(0x30d)]['NETWORK_ERROR']:return _0x438bd7(0x33a);case s[_0x438bd7(0x30d)][_0x438bd7(0x31f)]:return _0x438bd7(0x1d6);default:return'mcpStatus.failed';}case s[_0x438bd7(0x301)][_0x438bd7(0x217)]:return _0x438bd7(0x2c3);default:return _0x438bd7(0x29b);}}function Se(_0x45c191,_0x1a400e,_0x2ca67e,_0xbe3635=!0x0){const _0x4e9adb=_0x320784,_0x178136=Z(_0x45c191,_0x1a400e),_0x23ec48=_0x2ca67e['t'](_0x178136);return _0xbe3635?_0x45c191===s[_0x4e9adb(0x301)][_0x4e9adb(0x20a)]&&_0x1a400e===s[_0x4e9adb(0x30d)][_0x4e9adb(0x20c)]?_0x23ec48+_0x4e9adb(0x222)+_0x2ca67e['t']('mcpStatus.clickToConfigure'):_0x45c191===s[_0x4e9adb(0x301)]['CONNECTED']?''+_0x23ec48:_0x45c191===s[_0x4e9adb(0x301)][_0x4e9adb(0x20a)]||_0x45c191===s[_0x4e9adb(0x301)][_0x4e9adb(0x2a0)]?_0x23ec48+_0x4e9adb(0x222)+_0x2ca67e['t'](_0x4e9adb(0x1f1)):_0x23ec48:_0x23ec48;}function Pe(_0x305da4){const _0x495036=_0x320784;switch(_0x305da4){case s[_0x495036(0x301)][_0x495036(0x2e9)]:return _0x495036(0x319);case s[_0x495036(0x301)][_0x495036(0x248)]:case s[_0x495036(0x301)]['RETRYING']:return'univer-text-yellow-500';case s[_0x495036(0x301)]['FAILED']:case s[_0x495036(0x301)][_0x495036(0x20a)]:return _0x495036(0x22b);default:return _0x495036(0x283);}}function W(_0x45af5a){const _0xbb0b0=_0x320784,{status$:_0x27d34b,error$:_0x48b654,onConfigure:_0x355a61,showClickable:_0x24e0ab=!0x0}=_0x45af5a,_0x12d47e=v['useObservable'](_0x27d34b,s['MCPConnectionStatus'][_0xbb0b0(0x20a)]),_0x271ab7=v[_0xbb0b0(0x31a)](_0x48b654,s['MCPConnectionError'][_0xbb0b0(0x28c)]),_0x4209c5=v[_0xbb0b0(0x2bc)](u[_0xbb0b0(0x2b0)]),_0x396ad2=_0x12d47e===s[_0xbb0b0(0x301)][_0xbb0b0(0x2e9)];_0x12d47e===s[_0xbb0b0(0x301)]['CONNECTING']||s[_0xbb0b0(0x301)]['RETRYING'];const _0x2b1920=_0x4209c5['t'](Z(_0x12d47e,_0x271ab7)),_0x1cc180=Se(_0x12d47e,_0x271ab7,_0x4209c5,_0x24e0ab),_0x32243d=Pe(_0x12d47e),_0x39e1bc=_0x396ad2?i[_0xbb0b0(0x286)](q,{}):i['jsx'](Y,{}),_0xb81e9e=d[_0xbb0b0(0x253)](()=>{_0x24e0ab&&_0x355a61&&_0x355a61();},[_0x24e0ab,_0x355a61]);function _0x3a0bf8(){const _0xd60e9a=_0xbb0b0;return i[_0xd60e9a(0x26c)](_0xd60e9a(0x310),{'className':f[_0xd60e9a(0x1ee)](_0xd60e9a(0x32d),_0x24e0ab&&_0x355a61&&_0xd60e9a(0x323)),'role':'button','onClick':_0x24e0ab&&_0x355a61?_0xb81e9e:void 0x0,'children':[i['jsx'](_0xd60e9a(0x310),{'className':f[_0xd60e9a(0x1ee)](_0xd60e9a(0x1dc),_0x32243d),'children':_0x39e1bc}),i[_0xd60e9a(0x286)](_0xd60e9a(0x310),{'className':_0xd60e9a(0x31c),'children':_0x2b1920})]});}return i[_0xbb0b0(0x286)](f[_0xbb0b0(0x332)],{'title':_0x1cc180,'placement':_0xbb0b0(0x2ac),'children':_0x3a0bf8()});}var Ie=Object[_0x320784(0x25d)],_e=(_0x5dee68,_0x5b8d6d,_0x437a7b,_0x4d9847)=>{const _0x6b27ab=_0x320784;for(var _0x3b9573=_0x4d9847>0x1?void 0x0:_0x4d9847?Ie(_0x5b8d6d,_0x437a7b):_0x5b8d6d,_0x44d6b9=_0x5dee68[_0x6b27ab(0x235)]-0x1,_0x35560d;_0x44d6b9>=0x0;_0x44d6b9--)(_0x35560d=_0x5dee68[_0x44d6b9])&&(_0x3b9573=_0x35560d(_0x3b9573)||_0x3b9573);return _0x3b9573;},N=(_0x183011,_0x289217)=>(_0x2b4a27,_0x5bb9be)=>_0x289217(_0x2b4a27,_0x5bb9be,_0x183011);exports[_0x320784(0x2c5)]=class extends u[_0x320784(0x230)]{constructor(_0x4097d7,_0x25e6a4,_0x5d0daf,_0x56fcd9){const _0x50dba4=_0x320784;super(),this[_0x50dba4(0x21e)]=_0x4097d7,this[_0x50dba4(0x227)]=_0x25e6a4,this['_uiPartsService']=_0x5d0daf,this[_0x50dba4(0x1ec)]=_0x56fcd9,this['_initAutoConnect'](),this['_initStatusComponent']();}[_0x320784(0x2d0)](){const _0x5c7635=_0x320784,_0x18382f=this[_0x5c7635(0x1ec)][_0x5c7635(0x21a)](P);_0x18382f!=null&&_0x18382f['showDeveloperTools']&&(this[_0x5c7635(0x227)]['enableAutoConnect']=!0x1);}[_0x320784(0x334)](){const _0x564072=_0x320784,_0x2d4fa5=this[_0x564072(0x1ec)][_0x564072(0x21a)](P);(_0x2d4fa5==null?void 0x0:_0x2d4fa5['showStatus'])!==!0x1&&this[_0x564072(0x2e0)](this[_0x564072(0x1e1)][_0x564072(0x26a)](v[_0x564072(0x322)][_0x564072(0x2b2)],()=>{const _0x23e8b3=_0x564072;var _0x28d3c4;return v['connectInjector'](ye({'status$':this['_connectionController'][_0x23e8b3(0x274)],'error$':this['_connectionController'][_0x23e8b3(0x1ca)],'onConfigure':()=>this[_0x23e8b3(0x1e2)](),'showClickable':(_0x28d3c4=_0x2d4fa5==null?void 0x0:_0x2d4fa5[_0x23e8b3(0x2d7)])!=null?_0x28d3c4:!0x1}),this['_injector']);}));}[_0x320784(0x1e2)](){const _0x17cac3=_0x320784;this[_0x17cac3(0x21e)]['get'](exports[_0x17cac3(0x258)])[_0x17cac3(0x275)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u['Inject'](u[_0x320784(0x318)])),N(0x1,u[_0x320784(0x246)](s[_0x320784(0x2c0)])),N(0x2,v[_0x320784(0x30c)]),N(0x3,u[_0x320784(0x305)])],exports[_0x320784(0x2c5)]);function ye(_0x38da77){const {status$:_0x363143,error$:_0x539842,onConfigure:_0x2c8dd3,showClickable:_0x37e8f5}=_0x38da77;return function(){const _0x9cfc9f=_0x5131;return i[_0x9cfc9f(0x286)](W,{'status$':_0x363143,'error$':_0x539842,'onConfigure':_0x2c8dd3,'showClickable':_0x37e8f5});};}function Me(_0x2abb9e){const _0x5bfa18=_0x320784;return{'id':b['id'],'type':v[_0x5bfa18(0x2a4)]['BUTTON'],'icon':_0x5bfa18(0x2a5),'title':_0x5bfa18(0x28e),'tooltip':_0x5bfa18(0x28e)};}const Ne={[v[_0x320784(0x27e)][_0x320784(0x1e7)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0xecae9,_0x5b06b9,_0x3666a0,_0xf7094a)=>{for(var _0x1cac18=_0xf7094a>0x1?void 0x0:_0xf7094a?be(_0x5b06b9,_0x3666a0):_0x5b06b9,_0x1bad34=_0xecae9['length']-0x1,_0x2cf1d6;_0x1bad34>=0x0;_0x1bad34--)(_0x2cf1d6=_0xecae9[_0x1bad34])&&(_0x1cac18=_0x2cf1d6(_0x1cac18)||_0x1cac18);return _0x1cac18;},z=(_0x12901f,_0x50577c)=>(_0x4505b3,_0x2fd9cf)=>_0x50577c(_0x4505b3,_0x2fd9cf,_0x12901f);exports['MCPUIMenuController']=class extends u['Disposable']{constructor(_0x2c6403,_0x501f4f){const _0x6bd799=_0x320784;super(),this[_0x6bd799(0x33e)]=_0x2c6403,this[_0x6bd799(0x34a)]=_0x501f4f,this[_0x6bd799(0x2c4)](),this[_0x6bd799(0x2ca)]();}['_initializeCommands'](){const _0x32ac16=_0x320784;[b][_0x32ac16(0x237)](_0x438dbe=>{const _0x4b79b4=_0x32ac16;this[_0x4b79b4(0x2e0)](this[_0x4b79b4(0x33e)][_0x4b79b4(0x278)](_0x438dbe));});}[_0x320784(0x2ca)](){const _0x4b47e0=_0x320784;this[_0x4b47e0(0x34a)][_0x4b47e0(0x1d5)](Ne);}},exports[_0x320784(0x25c)]=je([z(0x0,u[_0x320784(0x321)]),z(0x1,v[_0x320784(0x338)])],exports['MCPUIMenuController']);function _0x3fa7(){const _0x5c5935=['MAX_RETRIES_EXCEEDED','round','ICommandService','BuiltInUIPart','\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','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.connectionStatus.connected','Connected','启用身份验证','<SESSION_ID>','evenodd','univer-flex-1','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_mcpCoreConfig$','univer-flex\x20univer-items-center','close-icon','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_config$','SESSION_ID_OCCUPIED','Tooltip','mcpConfig.validation.invalidConfig','_initStatusComponent','13wNAAVE','xlink:href','M0\x200H16V16H0z','IMenuManagerService','univer-text-blue-600','mcpStatus.networkError','_validateConfig','mcpConfig.apiApplyInfo.univerAiLabel','Saving...','_commandService','_initConfigSync','label','random','univer-size-4','univer-space-y-4','mcpConfig.configError','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.authorizationDescription','univer-bg-red-500','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Failed\x20to\x20save\x20configuration','_menuManagerService','MCP\x20状态未知','7819YtYDxP','mcp-ui.command.openConfigPanel','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpConfig.apiKeyHint','_loading$','Module','MessageType','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','subscribeConfigValue$','Enter\x20your\x20API\x20key','defs','assign','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','21424344yAvTzt','getCurrentConfig','connectionError$','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','CloseIcon','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','配置保存失败','COMMAND','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','mcpConfig.validation.apiKeyTooShort','Max\x20Retries','https://console.univer.plus','mcpConfig.configStepTitle','mergeMenu','mcpStatus.maxRetriesExceeded','isValid','subscribe','univer-text-xs\x20univer-text-gray-600','API\x20key\x20with\x20Bearer\x20prefix.','配置更改将立即生效','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP:\x20Session\x20ID\x20Occupied','children','map','tag','_uiPartsService','_handleConfigure','Click\x20to\x20connect\x20MCP','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20密钥长度至少需要\x2010\x20位','MCP\x20客户端配置','OTHERS','getItem','Retrying...','What\x20is\x20API\x20Key?','string','_configService','重连中...','clsx','几秒钟内获取您的\x20API\x20密钥','ISocketService','mcpStatus.clickToConnect','univer-bg-blue-500','未连接','OnLineIcon','会话\x20ID\x20已被占用,请稍后再试','28cEWiZp','displayName','onStarting','idSuffix','_messageService','MCP\x20Connecting...','MCP\x20连接失败','Invalid\x20configuration','88503ecFrts','get','push','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','297535TOBMcN','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','__setCustomHeaders','defineProperty','mcpStatus.unauthorized','ComponentManager','_handleConfigSave','check-mark-icon','DISCONNECTED','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','UNAUTHORIZED','mcpConfig.connectionStatus.retrying','_config','MCP\x20Client\x20Configuration','网络连接错误,请检查您的网络连接','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','createElement','mcpConfig.note2','sessionId$','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpConfig.apiApplyInfo.title','RETRYING','use','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','getConfig','Get\x20your\x20API\x20key\x20in\x20seconds','CommandType','什么是\x20API\x20密钥?','_injector','Connection\x20Failed','trim','univer-shrink-0\x20univer-text-red-500','\x20-\x20','MCP:\x20会话\x20ID\x20已被占用','univer-size-2\x20univer-rounded-full','univer-text-sm\x20univer-font-medium','next','_connectionController','univer.ai','权限验证失败,请检查您的\x20API\x20密钥','text','univer-text-red-500','2446EVVAst','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','2552IUrJyt','API\x20Key','Disposable','18FFywxz','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','超出最大重试次数,请稍后再试','connectInjector','length','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','forEach','MCP_UI_PLUGIN','https://console.univer.ai','1250yGpkSe','点击连接\x20MCP','ILocalStorageService','clipPath','off','将以下配置添加到您的\x20MCP\x20客户端设置中:','_localeService','Configuration\x20Parameters:','Success','useRef','保存配置','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Inject','pluginName','CONNECTING','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.apiApplyInfo.getStarted','_createConfigPanelComponent','mcpConfig.configStep1','replace','button','UniverIcon','useCallback','current','mcpConfig.saving','white','univer-flex\x20univer-items-start\x20univer-gap-3','MCPConfigUIController','mcpConfig.connectionStatus.disconnected','univer-flex\x20univer-gap-3','连接失败','MCPUIMenuController','getOwnPropertyDescriptor','univer-text-white','连接中...','Error','univer-space-y-2','WebSocketService','MCP_PLUGIN_CONFIG_KEY','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Univer\x20AI\x20控制台','0\x200\x2017\x2016','mcpConfig.note1','univer_session_id:','registerComponent','univer-flex\x20univer-items-center\x20univer-gap-3','jsxs','Configuration\x20saved\x20successfully','zhCN','path','univer-text-xs\x20univer-text-gray-500','Bearer\x20','entries','Authorization:','connectionStatus$','showConfigPanel','removeItem','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','registerCommand','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','_blank','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Connected','RibbonStartGroup','_localStorageService','useState','mcpConfig.apiKey','mcpConfig.apiApplyInfo.description','univer-text-gray-500','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','fill','jsx','mcpConfig.validation.apiKeyRequired','MCP\x20重连中...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','forwardRef','NONE','Configuration\x20Notes:','mcpConfig.title','MCPConfigPanel','univer-min-w-0\x20univer-flex-1','DependentOn','MCP:\x20Unauthorized','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','OpenMCPConfigPanelCommand','最大重试次数','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','defIds','_dialogService','mcpConfig.sessionIdDescription','mcpConfig.configParameters','mcpStatus.unknown','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.connectionStatus.connecting','mcpConfig.configSaved','复制以下\x20JSON\x20配置','FAILED','mcp-config-dialog','请输入您的\x20API\x20密钥','IMessageService','MenuItemType','MenuIcon','UniverMCPUIPlugin','配置保存成功','您的\x20API\x20密钥将在此浏览器中本地存储','show','Session\x20ID','mcp.apiKey','bottom','CheckMarkIcon','univer-flex\x20univer-items-start\x20univer-gap-2','NETWORK_ERROR','LocaleService','register','HEADER_MENU','mcpConfig.connectionInfo','_mcpConnectionController','API\x20密钥无效,请检查密钥是否正确','url(#off-line-icon_clip0_910_343)','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-bg-gray-500','off-line-icon','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','validateApiKey','useDependency','MCP\x20Configuration','error','close','MCPConnectionController','MCP\x20已断开','setItem','mcpStatus.retrying','_initializeCommands','MCPConnectionUIController','Configuration\x20Steps:','配置步骤:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_apiKey$','_initializeMenus','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-flex\x20univer-flex-wrap\x20univer-gap-2','ILogService','mcpStatus.sessionOccupied','Save\x20Configuration','_initAutoConnect','mcpStatus.connected','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP:\x20超出最大重试次数','univerjs-icon\x20univerjs-icon-','enUS','mcpConfig.validation.invalidApiKey','showDeveloperTools','_componentManager','http://www.w3.org/2000/svg','span','Click\x20to\x20configure\x20MCP','BehaviorSubject','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2476958iAYzSM','MCP\x20配置','disposeWithMe','mcpConfig.connectionError.unauthorized','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','41355XYkGoD','IDialogService','mcpConfig.connectionError.networkError','Enable\x20authentication\x20for\x20secure\x20connections','url(#on-line-icon_clip0_910_349)','mcpConfig.description','CONNECTED','0\x200\x2016\x2016','univer.plus','Copy\x20the\x20JSON\x20configuration\x20below','_registerComponent','Button','url(#$1','HelpIcon','mcpConfig.configStep3','currentColor','mcpServerUrl','colorChannel1','warn','errorMessage','mcpConfig.connectionError.sessionOccupied','univer-space-y-3','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','on-line-icon_clip0_910_349','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','486Lgafkj','apiKey','svg','已连接','includes','MCPConnectionStatus','none','toStringTag','toString','IConfigService','value','您的\x20API\x20密钥安全存储在本地存储中','<API_KEY>','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','OffLineIcon','IUIPartsService','MCPConnectionError','mask','_logService','div','univer-space-y-5','stringify','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','MCP\x20连接中...','attrs','Injector','univer-text-green-500','useObservable','1em','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','off-line-icon_clip0_910_343','univer-shrink-0\x20univer-text-blue-500'];_0x3fa7=function(){return _0x5c5935;};return _0x3fa7();}const Ee={'mcpStatus':{'disconnected':_0x320784(0x28a),'connecting':_0x320784(0x1fb),'connected':_0x320784(0x27d),'failed':_0x320784(0x314),'retrying':'MCP\x20Retrying...','unknown':_0x320784(0x315),'unauthorized':_0x320784(0x292),'sessionOccupied':_0x320784(0x1dd),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x320784(0x313),'clickToConnect':_0x320784(0x1e3),'clickToConfigure':_0x320784(0x2db)},'mcpConfig':{'title':_0x320784(0x2bd),'description':_0x320784(0x215),'apiKey':_0x320784(0x22f),'apiKeyPlaceholder':_0x320784(0x356),'apiKeyHint':_0x320784(0x2dd),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x320784(0x2e6),'connectionInfo':_0x320784(0x20f),'mcpClientConfig':_0x320784(0x20f),'configInstructions':_0x320784(0x201),'configStepTitle':_0x320784(0x2c6),'configStep1':_0x320784(0x2ec),'configStep2':_0x320784(0x34e),'configStep3':_0x320784(0x1e4),'sessionId':_0x320784(0x2aa),'sessionIdDescription':_0x320784(0x345),'authorizationDescription':_0x320784(0x1da),'configParameters':_0x320784(0x241),'maxRetries':_0x320784(0x1d2),'save':_0x320784(0x2cf),'saving':_0x320784(0x33d),'note1':_0x320784(0x203),'note2':_0x320784(0x1c7),'configSaved':_0x320784(0x26d),'configError':_0x320784(0x349),'apiApplyInfo':{'title':_0x320784(0x1ea),'description':_0x320784(0x20b),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x320784(0x21b)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x320784(0x324),'invalidConfig':_0x320784(0x1fd),'invalidApiKey':_0x320784(0x264)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x320784(0x326),'failed':_0x320784(0x21f),'retrying':_0x320784(0x1e9)},'connectionError':{'unauthorized':_0x320784(0x289),'sessionOccupied':_0x320784(0x2c8),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x320784(0x2fb)}}},we={'mcpStatus':{'disconnected':_0x320784(0x2c1),'connecting':_0x320784(0x316),'connected':'MCP\x20已连接','failed':_0x320784(0x1fc),'retrying':_0x320784(0x288),'unknown':_0x320784(0x34b),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x320784(0x223),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x320784(0x2d3),'clickToConnect':_0x320784(0x23b),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x320784(0x2df),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x320784(0x2a2),'apiKeyHint':_0x320784(0x2a8),'enableAuth':_0x320784(0x327),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x320784(0x1e6),'configInstructions':_0x320784(0x23f),'configStepTitle':_0x320784(0x2c7),'configStep1':_0x320784(0x29f),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x320784(0x2d2),'authorizationDescription':_0x320784(0x2cb),'configParameters':'配置参数:','maxRetries':_0x320784(0x295),'save':_0x320784(0x244),'saving':'保存中...','note1':_0x320784(0x1db),'note2':_0x320784(0x307),'configSaved':_0x320784(0x2a7),'configError':_0x320784(0x1ce),'apiApplyInfo':{'title':_0x320784(0x21d),'description':_0x320784(0x32b),'univerAiLabel':_0x320784(0x266),'getStarted':_0x320784(0x1ef)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x320784(0x1e5),'invalidConfig':'配置无效','invalidApiKey':_0x320784(0x2b5)},'connectionStatus':{'disconnected':_0x320784(0x1f3),'connecting':_0x320784(0x25f),'connected':_0x320784(0x2ff),'failed':_0x320784(0x25b),'retrying':_0x320784(0x1ed)},'connectionError':{'unauthorized':_0x320784(0x229),'sessionOccupied':_0x320784(0x1f5),'networkError':_0x320784(0x210),'maxRetriesExceeded':_0x320784(0x233)}}};var Ae=Object['defineProperty'],Oe=Object['getOwnPropertyDescriptor'],De=(_0x512214,_0x134a1a,_0x4510de)=>_0x134a1a in _0x512214?Ae(_0x512214,_0x134a1a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4510de}):_0x512214[_0x134a1a]=_0x4510de,Ue=(_0x2fc36c,_0x1e38ca,_0x3f4084,_0x25db69)=>{const _0x5777be=_0x320784;for(var _0x41b163=_0x25db69>0x1?void 0x0:_0x25db69?Oe(_0x1e38ca,_0x3f4084):_0x1e38ca,_0x47b06b=_0x2fc36c[_0x5777be(0x235)]-0x1,_0x1c4849;_0x47b06b>=0x0;_0x47b06b--)(_0x1c4849=_0x2fc36c[_0x47b06b])&&(_0x41b163=_0x1c4849(_0x41b163)||_0x41b163);return _0x41b163;},y=(_0x5b789e,_0x1401fc)=>(_0xc700a8,_0x200d62)=>_0x1401fc(_0xc700a8,_0x200d62,_0x5b789e),$e=(_0x597854,_0x45823f,_0x512998)=>De(_0x597854,_0x45823f+'',_0x512998);exports['UniverMCPUIPlugin']=class extends u['Plugin']{constructor(_0x1d1c7f=L,_0x31283f,_0x4437c3,_0x2f20d3,_0x24000d,_0x3ce51d){const _0x11657d=_0x320784;super(),this[_0x11657d(0x20e)]=_0x1d1c7f,this[_0x11657d(0x21e)]=_0x31283f,this[_0x11657d(0x1ec)]=_0x4437c3,this['_uiPartsService']=_0x2f20d3,this[_0x11657d(0x27f)]=_0x24000d,this[_0x11657d(0x240)]=_0x3ce51d;const {..._0x58c093}=u['merge']({},L,this['_config']);this[_0x11657d(0x1ec)]['setConfig'](P,_0x58c093);}async[_0x320784(0x1f8)](){const _0x1cc731=_0x320784,_0x9c0b44=[[exports[_0x1cc731(0x2c5)]],[exports[_0x1cc731(0x258)]],[exports[_0x1cc731(0x25c)]]];this[_0x1cc731(0x21e)]['has'](A[_0x1cc731(0x1f0)])||_0x9c0b44[_0x1cc731(0x200)]([A[_0x1cc731(0x1f0)],{'useClass':A[_0x1cc731(0x262)]}]),_0x9c0b44[_0x1cc731(0x237)](_0x4e81bf=>this[_0x1cc731(0x21e)]['add'](_0x4e81bf)),this[_0x1cc731(0x21e)][_0x1cc731(0x1ff)](exports[_0x1cc731(0x2c5)]),this['_injector']['get'](exports[_0x1cc731(0x258)]),this[_0x1cc731(0x21e)][_0x1cc731(0x1ff)](exports[_0x1cc731(0x25c)]);}},$e(exports['UniverMCPUIPlugin'],_0x320784(0x247),_0x320784(0x238)),exports['UniverMCPUIPlugin']=Ue([u[_0x320784(0x291)](s['UniverMCPPlugin']),y(0x1,u[_0x320784(0x246)](u[_0x320784(0x318)])),y(0x2,u[_0x320784(0x305)]),y(0x3,v[_0x320784(0x30c)]),y(0x4,u[_0x320784(0x23c)]),y(0x5,u[_0x320784(0x246)](u[_0x320784(0x2b0)]))],exports[_0x320784(0x2a6)]),exports[_0x320784(0x28f)]=V,exports['MCPStatusDisplay']=W,exports[_0x320784(0x294)]=b,exports[_0x320784(0x2d5)]=Ee,exports[_0x320784(0x26e)]=we;
|
|
1
|
+
'use strict';const _0x8e8fd5=_0x554f;(function(_0xa77680,_0x17dae1){const _0x2ed277=_0x554f,_0x408bc0=_0xa77680();while(!![]){try{const _0x4181cb=parseInt(_0x2ed277(0x313))/0x1+parseInt(_0x2ed277(0x262))/0x2+parseInt(_0x2ed277(0x236))/0x3+-parseInt(_0x2ed277(0x1e3))/0x4+parseInt(_0x2ed277(0x1ea))/0x5*(parseInt(_0x2ed277(0x26c))/0x6)+parseInt(_0x2ed277(0x1a4))/0x7+-parseInt(_0x2ed277(0x2db))/0x8;if(_0x4181cb===_0x17dae1)break;else _0x408bc0['push'](_0x408bc0['shift']());}catch(_0x20d55d){_0x408bc0['push'](_0x408bc0['shift']());}}}(_0x4b76,0x3701e));var ae=Object[_0x8e8fd5(0x2d6)],le=(_0x19d966,_0x45fbae,_0x5c8679)=>_0x45fbae in _0x19d966?ae(_0x19d966,_0x45fbae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c8679}):_0x19d966[_0x45fbae]=_0x5c8679,I=(_0x2fb70c,_0x130f6d,_0x55dc9a)=>le(_0x2fb70c,typeof _0x130f6d!=_0x8e8fd5(0x215)?_0x130f6d+'':_0x130f6d,_0x55dc9a);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x8e8fd5(0x1ce)});function _0x4b76(){const _0x4e6ae0=['MCPConfigUIController','Univer\x20AI\x20控制台','连接中...','univer-space-y-4','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCPConnectionController','_initializeCommands','show','trim','mcpConfig.configStep3','showConfigPanel','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.apiKeyPlaceholder','defIds','enableAutoConnect','BuiltInUIPart','mcpConfig.apiApplyInfo.title','mcpStatus.connected','MCP\x20Connecting...','mcpConfig.description','http://www.w3.org/2000/svg','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpConfig.connectionStatus.failed','univer-text-xs\x20univer-text-gray-600','jsxs','forEach','mcpConfig.apiKey','substring','Injector','485814icltdT','Disposable','Plugin','check-mark-icon','mcpStatus.connecting','_apiKey$','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','API\x20密钥不能为空','sessionId$','0\x200\x2017\x2016','_initStatusComponent','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Network\x20Error','Max\x20Retries','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_localStorageService','MCP\x20已连接','mcpServerUrl','button','subscribeConfigValue$','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','MCP\x20客户端配置','保存中...','value','MCP\x20Connected','RibbonStartGroup','mcpConfig.authorizationDescription','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','超出最大重试次数,请稍后再试','UniverMCPPlugin','on-line-icon_clip0_910_349','MCP\x20已断开','CONNECTING','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','\x20-\x20','setItem','IDialogService','MCP:\x20Session\x20ID\x20Occupied','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_mcpCoreConfig$','配置步骤:','_config','529066EYcKoP','mcp.apiKey','removeItem','off','_config$','univer-bg-gray-500','重连中...','subscribe','<API_KEY>','currentColor','1182ZGQfOw','univer-flex\x20univer-items-center\x20univer-gap-2','_logService','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','mcpConfig.validation.apiKeyTooShort','您的\x20API\x20密钥将在此浏览器中本地存储','mcpStatus.networkError','apiKey','mcpConfig.connectionError.unauthorized','close-icon','Save\x20Configuration','univer-text-sm\x20univer-text-gray-500','useCallback','_handleConfigSave','配置无效','url(#on-line-icon_clip0_910_349)','univer-space-y-2','univer-text-xs\x20univer-text-gray-500','MCP\x20状态未知','zhCN','evenodd','mcpConfig.configInstructions','MCPConfigPanel','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-mr-2\x20univer-flex\x20univer-text-xl','useRef','API\x20Key','univer-text-red-500','Get\x20your\x20API\x20key\x20in\x20seconds','ILogService','Success','xlink:href','API\x20key\x20is\x20required','univer-text-blue-600','svg','univer.ai','univerjs-icon\x20univerjs-icon-','mcpConfig.sessionIdDescription','Button','assign','MCP\x20连接失败','has','Enter\x20your\x20API\x20key','Connecting...','_configService','会话ID','useObservable','保存配置','getItem','最大重试次数','error','点击配置\x20MCP','MCP\x20Connection\x20Failed','univer.plus','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','_createConfigPanelComponent','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','children','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-flex-1','mcpConfig.title','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','univer-bg-red-500','mcpConfig.connectionError.maxRetriesExceeded','_initConfigSync','_componentManager','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.save','_validateConfig','label','noopener\x20noreferrer','connectInjector','_loadStoredApiKey','mcp-config-dialog','univer-text-green-500','mcpConfig.configParameters','HEADER_MENU','mcpConfig.validation.invalidConfig','get','CommandType','mcpStatus.unauthorized','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','span','pluginName','您的\x20API\x20密钥安全存储在本地存储中','getOwnPropertyDescriptor','white','univer-font-medium','1em','setConfig','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','0\x200\x2016\x2016','ILocalStorageService','disposeWithMe','on-line-icon','connectionError$','Enable\x20Authentication','MAX_RETRIES_EXCEEDED','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','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','clipPath','univer-text-yellow-500','将以下配置添加到您的\x20MCP\x20客户端设置中:','defineProperty','_connectionController','fill','current','div','4460712vFGNpQ','url(#$1','MCP\x20Client\x20Configuration','connectionStatus$','NETWORK_ERROR','UniverIcon','未连接','close','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','replace','启用身份验证','FAILED','配置\x20MCP\x20使用\x20AI\x20操作电子表格','请输入您的\x20API\x20密钥','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpStatus.failed','将配置添加到您的\x20MCP\x20客户端设置文件中','open','Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','RETRYING','MenuIcon','mcpStatus.sessionOccupied','API\x20密钥无效,请检查密钥是否正确','MenuItemType','idSuffix','univer-space-y-5','univer-bg-blue-500','Inject','univer-text-sm\x20univer-font-medium','_initializeMenus','Saving...','MCP:\x20网络错误','配置参数:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','entries','MCP:\x20会话\x20ID\x20已被占用','_handleConfigure','MCP:\x20未授权','Bearer\x20','MCP\x20Disconnected','MCPUIMenuController','univer-shrink-0\x20univer-text-red-500','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','COMMAND','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCPConnectionError','univer-min-w-0\x20univer-flex-1','MessageType','DISCONNECTED','next','781evTXIx','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCPStatusDisplay','SESSION_ID_OCCUPIED','mask','BehaviorSubject','univer-bg-green-500','CloseIcon','mcpConfig.apiApplyInfo.univerAiLabel','点击连接\x20MCP','_registerComponent','_injector','mcpConfig.validation.invalidApiKey','mcpConfig.apiKeyHint','univer-space-y-3','_messageService','round','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','mcpConfig.note2','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','useDependency','CONNECTED','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','https://console.univer.plus','网络连接错误,请检查您的网络连接','warn','49721nZjGck','MCPConnectionUIController','MCP_PLUGIN_CONFIG_KEY','_blank','CheckMarkIcon','tag','isValid','mcpConfig.connectionInfo','API\x20key\x20with\x20Bearer\x20prefix.','_initAutoConnect','重启您的\x20MCP\x20客户端以使配置生效','path','getConfig','ComponentManager','useState','mcpConfig.connectionStatus.disconnected','IUIPartsService','https://mcp.univer.ai/mcp/?univer_session_id=','Retrying...','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','stringify','_menuManagerService','UNAUTHORIZED','IMessageService','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.configSaved','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','showDeveloperTools','url(#off-line-icon_clip0_910_343)','Authorization:','NONE','BUTTON','MCP\x20Configuration','\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','_uiPartsService','mcp-ui.command.openConfigPanel','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.connectionStatus.retrying','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','createElement','MCP\x20配置','Module','Invalid\x20configuration','配置保存成功','Tooltip','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpStatus.retrying','univer-text-gray-400','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','use','mcpStatus.disconnected','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.validation.apiKeyRequired','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','HelpIcon','push','merge','mcp-ui.config','off-line-icon_clip0_910_343','连接失败','jsx','375672MecugX','showStatus','forwardRef','API\x20密钥','M0\x200H16V16H0z','IConfigService','displayName','11230MHCJTh','_localeService','LocaleService','mcpConfig.connectionStatus.connected','mcpStatus.clickToConfigure','text','none','univer-flex\x20univer-items-center\x20univer-gap-3','registerCommand','random','OpenMCPConfigPanelCommand','配置保存失败','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','UniverMCPUIPlugin','MCPConnectionStatus','https://console.univer.ai','_dialogService','map','OTHERS','mcpConfig.connectionError.sessionOccupied','已连接','help-icon','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','includes','ISocketService','length','mcpConfig.configStepTitle','colorChannel1','MCP\x20Retrying...','univer_session_id:','translate(.97)','_mcpConnectionController','mcpConfig.configStep1','OffLineIcon','_loading$','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','defs','attrs','MCP\x20连接中...','OnLineIcon','DependentOn','clsx','带有\x20Bearer\x20前缀的\x20API\x20密钥。','symbol','<SESSION_ID>'];_0x4b76=function(){return _0x4e6ae0;};return _0x4b76();}const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x2c54a9,..._0x1b1159}){const _0xcd9fe0=_0x8e8fd5,{icon:_0x431c5c,id:_0x525570,className:_0x498909,extend:_0x1e6994,..._0x501fa1}=_0x1b1159,_0x241f21=(_0xcd9fe0(0x290)+_0x525570+'\x20'+(_0x498909||''))['trim'](),_0x28086f=d[_0xcd9fe0(0x285)]('_'+de());return G(_0x431c5c,''+_0x525570,{'defIds':_0x431c5c[_0xcd9fe0(0x226)],'idSuffix':_0x28086f[_0xcd9fe0(0x2d9)]},{'ref':_0x2c54a9,'className':_0x241f21,..._0x501fa1},_0x1e6994);}function G(_0xf0bcb4,_0x212ea8,_0x110a79,_0x1cb524,_0xc494b){const _0x11712a=_0x8e8fd5;return d['createElement'](_0xf0bcb4[_0x11712a(0x1a9)],{'key':_0x212ea8,...ue(_0xf0bcb4,_0x110a79,_0xc494b),..._0x1cb524},(ve(_0xf0bcb4,_0x110a79)[_0x11712a(0x2a7)]||[])['map']((_0x1a68a5,_0x22f0d2)=>G(_0x1a68a5,_0x212ea8+'-'+_0xf0bcb4[_0x11712a(0x1a9)]+'-'+_0x22f0d2,_0x110a79,void 0x0,_0xc494b)));}function ue(_0x1225cd,_0x2c39dd,_0x5816af){const _0x246c7c=_0x8e8fd5,_0x551999={..._0x1225cd['attrs']};_0x5816af!=null&&_0x5816af[_0x246c7c(0x205)]&&_0x551999[_0x246c7c(0x2d8)]==='colorChannel1'&&(_0x551999[_0x246c7c(0x2d8)]=_0x5816af[_0x246c7c(0x205)]),_0x1225cd[_0x246c7c(0x1a9)]===_0x246c7c(0x317)&&_0x551999['id']&&(_0x551999['id']=_0x551999['id']+_0x2c39dd[_0x246c7c(0x2f6)]),Object[_0x246c7c(0x300)](_0x551999)[_0x246c7c(0x232)](([_0x1420c8,_0x310067])=>{const _0x7e7627=_0x246c7c;_0x1420c8===_0x7e7627(0x317)&&typeof _0x310067=='string'&&(_0x551999[_0x1420c8]=_0x310067[_0x7e7627(0x2e4)](/url\(#(.*)\)/,_0x7e7627(0x2dc)+_0x2c39dd[_0x7e7627(0x2f6)]+')'));});const {defIds:_0x660b32}=_0x2c39dd;return!_0x660b32||_0x660b32['length']===0x0||(_0x1225cd[_0x246c7c(0x1a9)]===_0x246c7c(0x1d7)&&_0x551999[_0x246c7c(0x28b)]&&(_0x551999[_0x246c7c(0x28b)]=_0x551999['xlink:href']+_0x2c39dd[_0x246c7c(0x2f6)]),Object[_0x246c7c(0x300)](_0x551999)[_0x246c7c(0x232)](([_0x59eb9c,_0xff9c7f])=>{const _0x11e5c9=_0x246c7c;typeof _0xff9c7f=='string'&&(_0x551999[_0x59eb9c]=_0xff9c7f[_0x11e5c9(0x2e4)](/url\(#(.*)\)/,_0x11e5c9(0x2dc)+_0x2c39dd[_0x11e5c9(0x2f6)]+')'));})),_0x551999;}function ve(_0x47433f,_0x19a422){const _0x262cbd=_0x8e8fd5;var _0x3e1dd1;const {defIds:_0x21dbc8}=_0x19a422;return!_0x21dbc8||_0x21dbc8[_0x262cbd(0x203)]===0x0?_0x47433f:_0x47433f['tag']===_0x262cbd(0x20e)&&((_0x3e1dd1=_0x47433f[_0x262cbd(0x2a7)])!=null&&_0x3e1dd1[_0x262cbd(0x203)])?{..._0x47433f,'children':_0x47433f['children'][_0x262cbd(0x1fb)](_0x3b737f=>typeof _0x3b737f[_0x262cbd(0x20f)]['id']=='string'&&_0x21dbc8&&_0x21dbc8[_0x262cbd(0x201)](_0x3b737f['attrs']['id'])?{..._0x3b737f,'attrs':{..._0x3b737f[_0x262cbd(0x20f)],'id':_0x3b737f['attrs']['id']+_0x19a422[_0x262cbd(0x2f6)]}}:_0x3b737f)}:_0x47433f;}function de(){const _0x43b7e0=_0x8e8fd5;return Math[_0x43b7e0(0x1f3)]()['toString'](0x24)[_0x43b7e0(0x234)](0x2,0x8);}_['displayName']=_0x8e8fd5(0x2e0);const Ce={'tag':_0x8e8fd5(0x28e),'attrs':{'xmlns':_0x8e8fd5(0x22d),'fill':'none','viewBox':_0x8e8fd5(0x2ca),'width':_0x8e8fd5(0x2c7),'height':_0x8e8fd5(0x2c7)},'children':[{'tag':_0x8e8fd5(0x1af),'attrs':{'fill':_0x8e8fd5(0x26b),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0x8e8fd5(0x280)}}]},H=d[_0x8e8fd5(0x1e5)](function(_0x4812f9,_0x4627e5){const _0x4ee22c=_0x8e8fd5;return d[_0x4ee22c(0x1cc)](_,Object[_0x4ee22c(0x293)]({},_0x4812f9,{'id':_0x4ee22c(0x239),'ref':_0x4627e5,'icon':Ce}));});H[_0x8e8fd5(0x1e9)]=_0x8e8fd5(0x1a8);const ge={'tag':_0x8e8fd5(0x28e),'attrs':{'xmlns':_0x8e8fd5(0x22d),'fill':'none','viewBox':_0x8e8fd5(0x2ca),'width':'1em','height':_0x8e8fd5(0x2c7)},'children':[{'tag':'path','attrs':{'fill':_0x8e8fd5(0x26b),'d':_0x8e8fd5(0x2ab)}}]},B=d[_0x8e8fd5(0x1e5)](function(_0x342096,_0x4dfd85){const _0x2924a=_0x8e8fd5;return d['createElement'](_,Object[_0x2924a(0x293)]({},_0x342096,{'id':_0x2924a(0x275),'ref':_0x4dfd85,'icon':ge}));});B[_0x8e8fd5(0x1e9)]=_0x8e8fd5(0x31a);const fe={'tag':_0x8e8fd5(0x28e),'attrs':{'xmlns':_0x8e8fd5(0x22d),'fill':_0x8e8fd5(0x1f0),'viewBox':_0x8e8fd5(0x2ca),'width':_0x8e8fd5(0x2c7),'height':'1em'},'children':[{'tag':_0x8e8fd5(0x1af),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x8e8fd5(0x1af),'attrs':{'fill':_0x8e8fd5(0x26b),'d':_0x8e8fd5(0x1cb)}},{'tag':_0x8e8fd5(0x1af),'attrs':{'fill':_0x8e8fd5(0x26b),'d':_0x8e8fd5(0x2d2),'fillRule':_0x8e8fd5(0x280),'clipRule':_0x8e8fd5(0x280)}}]},F=d[_0x8e8fd5(0x1e5)](function(_0x5a1564,_0xeda479){const _0x34c232=_0x8e8fd5;return d[_0x34c232(0x1cc)](_,Object['assign']({},_0x5a1564,{'id':_0x34c232(0x1ff),'ref':_0xeda479,'icon':fe}));});F[_0x8e8fd5(0x1e9)]=_0x8e8fd5(0x1dc);const pe={'tag':'svg','attrs':{'xmlns':_0x8e8fd5(0x22d),'fill':_0x8e8fd5(0x1f0),'viewBox':_0x8e8fd5(0x2ca),'width':_0x8e8fd5(0x2c7),'height':_0x8e8fd5(0x2c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x8e8fd5(0x1c1)},'children':[{'tag':_0x8e8fd5(0x1af),'attrs':{'stroke':_0x8e8fd5(0x26b),'d':_0x8e8fd5(0x1a0),'strokeLinecap':_0x8e8fd5(0x323),'strokeLinejoin':_0x8e8fd5(0x323),'strokeWidth':1.2}}]},{'tag':_0x8e8fd5(0x20e),'attrs':{},'children':[{'tag':_0x8e8fd5(0x2d3),'attrs':{'id':_0x8e8fd5(0x1e0)},'children':[{'tag':_0x8e8fd5(0x1af),'attrs':{'fill':_0x8e8fd5(0x2c5),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x8e8fd5(0x1e0)]},Y=d[_0x8e8fd5(0x1e5)](function(_0x35a190,_0x4a941a){return d['createElement'](_,Object['assign']({},_0x35a190,{'id':'off-line-icon','ref':_0x4a941a,'icon':pe}));});Y[_0x8e8fd5(0x1e9)]=_0x8e8fd5(0x20b);const he={'tag':_0x8e8fd5(0x28e),'attrs':{'xmlns':_0x8e8fd5(0x22d),'fill':_0x8e8fd5(0x1f0),'viewBox':_0x8e8fd5(0x240),'width':_0x8e8fd5(0x2c7),'height':_0x8e8fd5(0x2c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x8e8fd5(0x27b)},'children':[{'tag':_0x8e8fd5(0x1af),'attrs':{'stroke':_0x8e8fd5(0x26b),'d':_0x8e8fd5(0x23c),'strokeLinecap':_0x8e8fd5(0x323),'strokeLinejoin':_0x8e8fd5(0x323),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x8e8fd5(0x2d3),'attrs':{'id':_0x8e8fd5(0x256)},'children':[{'tag':'path','attrs':{'fill':_0x8e8fd5(0x2c5),'d':_0x8e8fd5(0x1e7),'transform':_0x8e8fd5(0x208)}}]}]}],'defIds':[_0x8e8fd5(0x256)]},q=d[_0x8e8fd5(0x1e5)](function(_0xf64c3b,_0x1e5978){const _0x84e40f=_0x8e8fd5;return d[_0x84e40f(0x1cc)](_,Object['assign']({},_0xf64c3b,{'id':_0x84e40f(0x2cd),'ref':_0x1e5978,'icon':he}));});q['displayName']=_0x8e8fd5(0x211);function V(_0x106e2a){const _0x2af1fd=_0x8e8fd5;var _0x58e847,_0x340618;const {mcpCoreConfig:_0x2b12e0,onSave:_0x21c1a2,loading:_0x122e91=!0x1,config:_0x599a72,connectionStatus$:_0x5f0edd,connectionError$:_0xd57b83,currentApiKey$:_0x22bc01,currentSessionId$:_0x2ee2e6}=_0x106e2a,_0x44073c=v[_0x2af1fd(0x19e)](u[_0x2af1fd(0x1ec)]),_0x12e3a0=v[_0x2af1fd(0x29a)](_0x5f0edd,s[_0x2af1fd(0x1f8)][_0x2af1fd(0x311)]),_0x283d1f=v[_0x2af1fd(0x29a)](_0xd57b83,s['MCPConnectionError'][_0x2af1fd(0x1c3)]),_0x1a34dc=v[_0x2af1fd(0x29a)](_0x2ee2e6,''),_0x3b8031=v['useObservable'](_0x22bc01,''),[_0x5356d4,_0x210080]=d['useState'](_0x3b8031||''),_0x39de21=!0x0,_0x428988=_0x599a72['showDeveloperTools']&&_0x2b12e0[_0x2af1fd(0x249)]&&(_0x2b12e0[_0x2af1fd(0x249)][_0x2af1fd(0x201)]('univer.plus')||_0x2b12e0[_0x2af1fd(0x249)][_0x2af1fd(0x201)](_0x2af1fd(0x28f))),_0x30000d=(_0x58e847=_0x2b12e0['mcpServerUrl'])==null?void 0x0:_0x58e847[_0x2af1fd(0x201)](_0x2af1fd(0x2a1)),_0x57a43e=(_0x340618=_0x2b12e0['mcpServerUrl'])==null?void 0x0:_0x340618[_0x2af1fd(0x201)](_0x2af1fd(0x28f)),_0x30e207=_0x30000d?_0x2af1fd(0x1a1):_0x2af1fd(0x1f9),_0x234b12=_0x599a72[_0x2af1fd(0x1c0)]&&(_0x30000d||_0x57a43e),[_0xca3011,_0x5dd2d5]=d[_0x2af1fd(0x1b2)](!_0x5356d4[_0x2af1fd(0x220)]()),_0xd8d6af=(_0x68f854,_0x3f1cd8)=>{const _0x25b381=_0x2af1fd;if(_0x3f1cd8===s['MCPConnectionError'][_0x25b381(0x1ba)])return _0x25b381(0x246);switch(_0x68f854){case s[_0x25b381(0x1f8)]['CONNECTED']:return _0x25b381(0x1b7);case s[_0x25b381(0x1f8)][_0x25b381(0x258)]:case s[_0x25b381(0x1f8)][_0x25b381(0x2f1)]:return _0x25b381(0x2e3);case s[_0x25b381(0x1f8)]['FAILED']:return _0x25b381(0x246);default:return _0x25b381(0x2c0);}},_0x59be60=(_0x558974,_0x295dc4)=>{const _0x3f0512=_0x2af1fd;if(_0x295dc4===s[_0x3f0512(0x30e)]['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x558974){case s['MCPConnectionStatus']['CONNECTED']:return _0x3f0512(0x319);case s[_0x3f0512(0x1f8)][_0x3f0512(0x258)]:case s[_0x3f0512(0x1f8)]['RETRYING']:return _0x3f0512(0x2f8);case s['MCPConnectionStatus'][_0x3f0512(0x2e6)]:return _0x3f0512(0x2ac);default:return _0x3f0512(0x267);}},_0x4fcee1=_0x22623c=>{const _0x29630a=_0x2af1fd;switch(_0x22623c){case s[_0x29630a(0x1f8)][_0x29630a(0x19f)]:return _0x44073c['t'](_0x29630a(0x1ed));case s[_0x29630a(0x1f8)][_0x29630a(0x258)]:return _0x44073c['t']('mcpConfig.connectionStatus.connecting');case s[_0x29630a(0x1f8)][_0x29630a(0x2e6)]:return _0x44073c['t'](_0x29630a(0x22f));case s[_0x29630a(0x1f8)][_0x29630a(0x2f1)]:return _0x44073c['t'](_0x29630a(0x1ca));default:return _0x44073c['t'](_0x29630a(0x1b3));}},_0x62853=_0x16bd03=>{const _0x115b74=_0x2af1fd;switch(_0x16bd03){case s['MCPConnectionError'][_0x115b74(0x1ba)]:return _0x44073c['t'](_0x115b74(0x274));case s[_0x115b74(0x30e)][_0x115b74(0x316)]:return _0x44073c['t'](_0x115b74(0x1fd));case s[_0x115b74(0x30e)][_0x115b74(0x2df)]:return _0x44073c['t']('mcpConfig.connectionError.networkError');case s['MCPConnectionError'][_0x115b74(0x2d0)]:return _0x44073c['t'](_0x115b74(0x2ad));default:return'';}},_0x40c003=d[_0x2af1fd(0x278)](()=>{const _0x2a3e6c=_0x2af1fd,_0x39daea={..._0x2b12e0,'apiKey':_0x5356d4[_0x2a3e6c(0x220)](),'enableAuth':_0x39de21};_0x21c1a2(_0x39daea);},[_0x2b12e0,_0x5356d4,_0x39de21,_0x21c1a2]),_0x592cf5=_0x5356d4[_0x2af1fd(0x220)]()['length']>0x0;return i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x259),'children':i['jsxs'](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x1f1),'children':[i['jsx'](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x314),'children':i[_0x2af1fd(0x1e2)]('span',{'className':'univer-text-white','children':'⚙'})}),i[_0x2af1fd(0x1e2)]('div',{'children':i[_0x2af1fd(0x1e2)]('p',{'className':_0x2af1fd(0x277),'children':_0x44073c['t'](_0x2af1fd(0x22c))})})]})}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x25e),'children':[i[_0x2af1fd(0x1e2)]('div',{'className':f['clsx']('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0xd8d6af(_0x12e3a0,_0x283d1f)),'children':i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x26d),'children':[i['jsx']('div',{'className':f[_0x2af1fd(0x213)]('univer-size-2\x20univer-rounded-full',_0x59be60(_0x12e3a0,_0x283d1f))}),i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x2fa),'children':_0x4fcee1(_0x12e3a0)})]})}),_0x283d1f!==s['MCPConnectionError'][_0x2af1fd(0x1c3)]&&(_0x12e3a0===s[_0x2af1fd(0x1f8)][_0x2af1fd(0x2e6)]||_0x283d1f===s[_0x2af1fd(0x30e)][_0x2af1fd(0x1ba)])&&i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x2c9),'children':i['jsxs']('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i['jsx'](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x307),'children':'⚠️'}),i[_0x2af1fd(0x1e2)]('p',{'className':_0x2af1fd(0x253),'children':_0x62853(_0x283d1f)})]})})]}),i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x21b),'children':i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x2f7),'children':[i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x27c),'children':[i[_0x2af1fd(0x231)](_0x2af1fd(0x2b4),{'className':_0x2af1fd(0x1d5),'children':[i['jsx'](_0x2af1fd(0x2c1),{'children':'🔑'}),'\x20',_0x44073c['t'](_0x2af1fd(0x233)),i['jsx'](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x287),'children':'*'}),_0x428988&&i['jsx']('a',{'className':_0x2af1fd(0x24c),'title':_0x44073c['t']('mcpConfig.apiApplyInfo.title'),'role':_0x2af1fd(0x24a),'onClick':()=>_0x5dd2d5(!0x0),'children':i[_0x2af1fd(0x1e2)](F,{})})]}),i[_0x2af1fd(0x1e2)](f['Input'],{'type':_0x2af1fd(0x1ef),'placeholder':_0x44073c['t'](_0x2af1fd(0x225)),'value':_0x5356d4,'disabled':_0x122e91,'autoComplete':_0x2af1fd(0x265),'onChange':_0x210080}),i[_0x2af1fd(0x1e2)]('p',{'className':_0x2af1fd(0x27d),'children':_0x44073c['t'](_0x2af1fd(0x320))})]}),_0x428988&&_0xca3011&&i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x1db),'children':[i[_0x2af1fd(0x1e2)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x2af1fd(0x24a),'onClick':()=>_0x5dd2d5(!0x1),'children':i[_0x2af1fd(0x1e2)](B,{'className':'univer-size-4'})}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x20d),'children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x200),'children':i[_0x2af1fd(0x1e2)]('span',{'className':_0x2af1fd(0x28d),'children':'🚀'})}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x2a9),'children':[i[_0x2af1fd(0x1e2)]('h4',{'className':_0x2af1fd(0x21c),'children':_0x44073c['t'](_0x2af1fd(0x229))}),i[_0x2af1fd(0x1e2)]('p',{'className':_0x2af1fd(0x309),'children':_0x44073c['t']('mcpConfig.apiApplyInfo.description')}),i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x2b1),'children':_0x234b12&&i[_0x2af1fd(0x231)]('a',{'className':_0x2af1fd(0x26f),'href':_0x30e207,'target':_0x2af1fd(0x1a7),'rel':_0x2af1fd(0x2b5),'children':[i[_0x2af1fd(0x1e2)]('span',{'children':'🤖'}),_0x44073c['t'](_0x2af1fd(0x31b)),i[_0x2af1fd(0x1e2)]('span',{'className':_0x2af1fd(0x1d4),'children':'↗'})]})}),i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x2e9),'children':['✨','\x20',_0x44073c['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x599a72['showDeveloperTools']&&i['jsxs'](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x30b),'children':[i[_0x2af1fd(0x231)]('h4',{'className':_0x2af1fd(0x1d2),'children':[i['jsx'](_0x2af1fd(0x2c1),{'children':'🔗'}),'\x20',_0x44073c['t'](_0x2af1fd(0x1ab))]}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x21a),'children':[i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x321),'children':[i['jsx']('p',{'className':_0x2af1fd(0x230),'children':_0x44073c['t'](_0x2af1fd(0x281))}),i['jsxs'](_0x2af1fd(0x2da),{'className':'univer-space-y-2','children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x19d),'children':_0x44073c['t'](_0x2af1fd(0x204))}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[i[_0x2af1fd(0x231)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x23d),'children':'1'}),_0x44073c['t'](_0x2af1fd(0x20a))]}),i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x26d),'children':[i['jsx'](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x23d),'children':'2'}),_0x44073c['t']('mcpConfig.configStep2')]}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x26d),'children':[i['jsx'](_0x2af1fd(0x2c1),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x44073c['t'](_0x2af1fd(0x221))]})]})]})]}),i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x27c),'children':[i[_0x2af1fd(0x1e2)]('div',{'className':_0x2af1fd(0x19d),'children':_0x2af1fd(0x1c5)}),i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x326),'children':i[_0x2af1fd(0x1e2)]('pre',{'className':_0x2af1fd(0x245),'children':JSON[_0x2af1fd(0x1b8)]({'mcpServers':{'univer':{'url':_0x2af1fd(0x1b5)+(_0x1a34dc||_0x2af1fd(0x216)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x5356d4||_0x2af1fd(0x26a))}}}},null,0x2)})})]}),i[_0x2af1fd(0x231)]('div',{'className':'univer-space-y-3','children':[i[_0x2af1fd(0x1e2)]('div',{'className':_0x2af1fd(0x19d),'children':_0x44073c['t'](_0x2af1fd(0x2ba))}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x27c),'children':[i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x2af1fd(0x1e2)]('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-min-w-0\x20univer-flex-1','children':[i[_0x2af1fd(0x1e2)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x2af1fd(0x207)}),i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x27d),'children':_0x44073c['t'](_0x2af1fd(0x291))})]})]}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x2af1fd(0x1e2)]('div',{'className':_0x2af1fd(0x224)}),i[_0x2af1fd(0x231)]('div',{'className':_0x2af1fd(0x30f),'children':[i['jsx']('div',{'className':_0x2af1fd(0x1f6),'children':_0x2af1fd(0x1c2)}),i['jsx']('div',{'className':_0x2af1fd(0x27d),'children':_0x44073c['t'](_0x2af1fd(0x252))})]})]})]})]})]})]}),i[_0x2af1fd(0x1e2)](f[_0x2af1fd(0x292)],{'onClick':_0x40c003,'disabled':!_0x592cf5||_0x122e91,'className':_0x2af1fd(0x324),'children':_0x122e91?i['jsxs'](_0x2af1fd(0x2c1),{'className':_0x2af1fd(0x26d),'children':[i[_0x2af1fd(0x1e2)]('span',{'children':'⟲'}),_0x44073c['t']('mcpConfig.saving')]}):i[_0x2af1fd(0x231)]('span',{'className':_0x2af1fd(0x26d),'children':[i[_0x2af1fd(0x1e2)](H,{}),_0x44073c['t'](_0x2af1fd(0x2b2))]})}),i[_0x2af1fd(0x1e2)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'className':'univer-flex\x20univer-gap-3','children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2c1),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),i['jsxs']('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[i[_0x2af1fd(0x1e2)](_0x2af1fd(0x2da),{'className':_0x2af1fd(0x2c6),'children':'Configuration\x20Notes:'}),i[_0x2af1fd(0x231)](_0x2af1fd(0x2da),{'children':['•',_0x44073c['t']('mcpConfig.note1')]}),i['jsxs'](_0x2af1fd(0x2da),{'children':['•',_0x44073c['t'](_0x2af1fd(0x325))]})]})]})})]})})]});}function _0x554f(_0x249295,_0x4430c0){_0x249295=_0x249295-0x19d;const _0x4b76ae=_0x4b76();let _0x554fbf=_0x4b76ae[_0x249295];return _0x554fbf;}const P=_0x8e8fd5(0x1df),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object['getOwnPropertyDescriptor'],xe=(_0x394241,_0x5d721f,_0x851980,_0x42a596)=>{const _0x26eee2=_0x8e8fd5;for(var _0x1db3c9=_0x42a596>0x1?void 0x0:_0x42a596?me(_0x5d721f,_0x851980):_0x5d721f,_0x38b48a=_0x394241[_0x26eee2(0x203)]-0x1,_0x367adc;_0x38b48a>=0x0;_0x38b48a--)(_0x367adc=_0x394241[_0x38b48a])&&(_0x1db3c9=_0x367adc(_0x1db3c9)||_0x1db3c9);return _0x1db3c9;},g=(_0x3e6142,_0x305cc7)=>(_0x9f903a,_0x5186fd)=>_0x305cc7(_0x9f903a,_0x5186fd,_0x3e6142);const O=_0x8e8fd5(0x263),D=_0x8e8fd5(0x2b8);exports[_0x8e8fd5(0x217)]=class extends u[_0x8e8fd5(0x237)]{constructor(_0x39075f,_0x152388,_0x1edc4e,_0x22fcf5,_0x296a10,_0x16ae2e,_0x499278,_0x16c5c7,_0x45f1d3,_0x1dd3a9){const _0x171a9d=_0x8e8fd5;super(),I(this,'_loading$',new M[(_0x171a9d(0x318))](!0x1)),I(this,_0x171a9d(0x25f),new M[(_0x171a9d(0x318))]({})),I(this,_0x171a9d(0x266),new M[(_0x171a9d(0x318))]({})),I(this,_0x171a9d(0x23b),new M[(_0x171a9d(0x318))]('')),I(this,_0x171a9d(0x279),async _0x14e8d1=>{const _0x5e39bd=_0x171a9d;var _0x646145,_0x18c476;this['_loading$'][_0x5e39bd(0x312)](!0x0);try{const _0x52eb08=await this[_0x5e39bd(0x2b3)](_0x14e8d1);if(!_0x52eb08[_0x5e39bd(0x1aa)]){this['_messageService'][_0x5e39bd(0x21f)]({'type':f[_0x5e39bd(0x310)][_0x5e39bd(0x2ed)],'content':_0x52eb08['errorMessage']||this[_0x5e39bd(0x1eb)]['t'](_0x5e39bd(0x2bc))});return;}_0x14e8d1[_0x5e39bd(0x273)]?await this['_localStorageService'][_0x5e39bd(0x25b)](O,_0x14e8d1[_0x5e39bd(0x273)][_0x5e39bd(0x220)]()):await this[_0x5e39bd(0x247)][_0x5e39bd(0x264)](O),this[_0x5e39bd(0x23b)]['next'](((_0x646145=_0x14e8d1['apiKey'])==null?void 0x0:_0x646145[_0x5e39bd(0x220)]())||''),this[_0x5e39bd(0x209)]['__setCustomHeaders']({'Authorization':_0x5e39bd(0x304)+((_0x18c476=_0x14e8d1[_0x5e39bd(0x273)])==null?void 0x0:_0x18c476[_0x5e39bd(0x220)]())}),this[_0x5e39bd(0x322)][_0x5e39bd(0x21f)]({'type':f[_0x5e39bd(0x310)][_0x5e39bd(0x28a)],'content':this[_0x5e39bd(0x1eb)]['t'](_0x5e39bd(0x1bd))}),setTimeout(()=>{const _0x657e37=_0x5e39bd;this['_dialogService'][_0x657e37(0x2e2)](D);},0x320);}catch(_0x3fbfda){this[_0x5e39bd(0x26e)][_0x5e39bd(0x29e)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3fbfda),this[_0x5e39bd(0x322)]['show']({'type':f[_0x5e39bd(0x310)][_0x5e39bd(0x2ed)],'content':this[_0x5e39bd(0x1eb)]['t']('mcpConfig.configError')});}finally{this[_0x5e39bd(0x20c)][_0x5e39bd(0x312)](!0x1);}}),(this[_0x171a9d(0x31e)]=_0x39075f,this['_uiPartsService']=_0x152388,this[_0x171a9d(0x298)]=_0x1edc4e,this[_0x171a9d(0x247)]=_0x22fcf5,this[_0x171a9d(0x1fa)]=_0x296a10,this[_0x171a9d(0x322)]=_0x16ae2e,this[_0x171a9d(0x2af)]=_0x499278,this[_0x171a9d(0x1eb)]=_0x16c5c7,this[_0x171a9d(0x26e)]=_0x45f1d3,this[_0x171a9d(0x209)]=_0x1dd3a9,this[_0x171a9d(0x2ae)](),this['_loadStoredApiKey'](),this[_0x171a9d(0x31d)]());}[_0x8e8fd5(0x222)](){const _0x49edb1=_0x8e8fd5,_0xc7d7a2=this[_0x49edb1(0x298)][_0x49edb1(0x1b0)](P);_0xc7d7a2!=null&&_0xc7d7a2['showDeveloperTools']&&this[_0x49edb1(0x1fa)][_0x49edb1(0x2ec)]({'id':D,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x49edb1(0x282)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x57715b=_0x49edb1;this['_dialogService'][_0x57715b(0x2e2)](D);}});}['getCurrentConfig'](){const _0x1c599a=_0x8e8fd5;return this[_0x1c599a(0x25f)]['value'];}[_0x8e8fd5(0x31d)](){const _0x495e45=_0x8e8fd5;this[_0x495e45(0x2cc)](this[_0x495e45(0x2af)]['register']('MCPConfigPanel',this[_0x495e45(0x2a4)]()));}[_0x8e8fd5(0x2a4)](){const _0xa647fb=_0x8e8fd5;return v[_0xa647fb(0x2b6)](()=>{const _0x362693=_0xa647fb;var _0x26e130,_0x26f983,_0x1f55e5;return i[_0x362693(0x1e2)](V,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x362693(0x25f)][_0x362693(0x24f)],'currentApiKey$':this[_0x362693(0x23b)],'onSave':this[_0x362693(0x279)],'loading':this[_0x362693(0x20c)][_0x362693(0x24f)],'connectionStatus$':(_0x26e130=this['_mcpConnectionController'])==null?void 0x0:_0x26e130[_0x362693(0x2de)],'connectionError$':(_0x26f983=this['_mcpConnectionController'])==null?void 0x0:_0x26f983[_0x362693(0x2ce)],'currentSessionId$':(_0x1f55e5=this[_0x362693(0x209)])==null?void 0x0:_0x1f55e5[_0x362693(0x23f)]});},this[_0xa647fb(0x31e)]);}[_0x8e8fd5(0x2ae)](){const _0x15fd4c=_0x8e8fd5;this[_0x15fd4c(0x2cc)](this[_0x15fd4c(0x298)]['subscribeConfigValue$'](s[_0x15fd4c(0x1a6)])['subscribe'](_0x43ee87=>{const _0x1ed038=_0x15fd4c;this[_0x1ed038(0x25f)][_0x1ed038(0x312)](_0x43ee87||{});}));const _0x36a052=this[_0x15fd4c(0x298)][_0x15fd4c(0x1b0)](s[_0x15fd4c(0x1a6)]);this[_0x15fd4c(0x25f)][_0x15fd4c(0x312)](_0x36a052||{}),this[_0x15fd4c(0x2cc)](this[_0x15fd4c(0x298)][_0x15fd4c(0x24b)](P)[_0x15fd4c(0x269)](_0x194704=>{const _0x1583fe=_0x15fd4c;this[_0x1583fe(0x266)][_0x1583fe(0x312)](_0x194704||{});}));const _0x10213e=this[_0x15fd4c(0x298)]['getConfig'](P);this[_0x15fd4c(0x266)][_0x15fd4c(0x312)](_0x10213e||{});}async[_0x8e8fd5(0x2b7)](){const _0x60207b=_0x8e8fd5,_0x3503e3=this[_0x60207b(0x298)][_0x60207b(0x1b0)](P);if(!(_0x3503e3!=null&&_0x3503e3[_0x60207b(0x1c0)]))return;const _0x373db6=await this['_localStorageService'][_0x60207b(0x29c)](O);_0x373db6&&(this[_0x60207b(0x209)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x373db6}),this[_0x60207b(0x23b)]['next'](_0x373db6));}async['_validateConfig'](_0x2a1bc8){const _0x2af719=_0x8e8fd5;if(!_0x2a1bc8[_0x2af719(0x273)]||_0x2a1bc8[_0x2af719(0x273)][_0x2af719(0x220)]()[_0x2af719(0x203)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2af719(0x1da))};if(_0x2a1bc8[_0x2af719(0x273)][_0x2af719(0x220)]()[_0x2af719(0x203)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2af719(0x1eb)]['t'](_0x2af719(0x270))};try{const _0x319532=await this[_0x2af719(0x31e)]['get'](s['MCPConnectionController'])['validateApiKey'](_0x2a1bc8['apiKey'][_0x2af719(0x220)]());return _0x319532[_0x2af719(0x1aa)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x319532[_0x2af719(0x29e)]||this[_0x2af719(0x1eb)]['t'](_0x2af719(0x31f))};}catch(_0x7cb56f){return console[_0x2af719(0x1a3)](_0x2af719(0x30a),_0x7cb56f),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u[_0x8e8fd5(0x2f9)](u['Injector'])),g(0x1,v[_0x8e8fd5(0x1b4)]),g(0x2,u['IConfigService']),g(0x3,u[_0x8e8fd5(0x2cb)]),g(0x4,v[_0x8e8fd5(0x25c)]),g(0x5,v[_0x8e8fd5(0x1bb)]),g(0x6,u['Inject'](v[_0x8e8fd5(0x1b1)])),g(0x7,u[_0x8e8fd5(0x2f9)](u[_0x8e8fd5(0x1ec)])),g(0x8,u[_0x8e8fd5(0x289)]),g(0x9,u[_0x8e8fd5(0x2f9)](s[_0x8e8fd5(0x21d)]))],exports['MCPConfigUIController']);const b={'id':_0x8e8fd5(0x1c8),'type':u[_0x8e8fd5(0x2be)][_0x8e8fd5(0x30c)],'handler':async(_0x555b78,_0xe9edc2)=>(_0x555b78[_0x8e8fd5(0x2bd)](exports[_0x8e8fd5(0x217)])[_0x8e8fd5(0x222)](),!0x0)};function Z(_0x11be34,_0x27555f){const _0x3d0d34=_0x8e8fd5;switch(_0x11be34){case s[_0x3d0d34(0x1f8)][_0x3d0d34(0x311)]:return _0x3d0d34(0x1d8);case s[_0x3d0d34(0x1f8)][_0x3d0d34(0x258)]:return _0x3d0d34(0x23a);case s['MCPConnectionStatus']['CONNECTED']:return _0x3d0d34(0x22a);case s[_0x3d0d34(0x1f8)][_0x3d0d34(0x2e6)]:switch(_0x27555f){case s[_0x3d0d34(0x30e)][_0x3d0d34(0x1ba)]:return _0x3d0d34(0x2bf);case s[_0x3d0d34(0x30e)]['SESSION_ID_OCCUPIED']:return _0x3d0d34(0x2f3);case s[_0x3d0d34(0x30e)][_0x3d0d34(0x2df)]:return _0x3d0d34(0x272);case s['MCPConnectionError'][_0x3d0d34(0x2d0)]:return'mcpStatus.maxRetriesExceeded';default:return _0x3d0d34(0x2ea);}case s[_0x3d0d34(0x1f8)][_0x3d0d34(0x2f1)]:return _0x3d0d34(0x1d3);default:return'mcpStatus.unknown';}}function Se(_0xaea39c,_0x42618c,_0xcc948d,_0x573559=!0x0){const _0x4fbd1f=_0x8e8fd5,_0x484711=Z(_0xaea39c,_0x42618c),_0x3e8c56=_0xcc948d['t'](_0x484711);return _0x573559?_0xaea39c===s[_0x4fbd1f(0x1f8)]['DISCONNECTED']&&_0x42618c===s[_0x4fbd1f(0x30e)]['UNAUTHORIZED']?_0x3e8c56+_0x4fbd1f(0x25a)+_0xcc948d['t'](_0x4fbd1f(0x1ee)):_0xaea39c===s['MCPConnectionStatus'][_0x4fbd1f(0x19f)]?''+_0x3e8c56:_0xaea39c===s[_0x4fbd1f(0x1f8)][_0x4fbd1f(0x311)]||_0xaea39c===s['MCPConnectionStatus'][_0x4fbd1f(0x2e6)]?_0x3e8c56+'\x20-\x20'+_0xcc948d['t']('mcpStatus.clickToConnect'):_0x3e8c56:_0x3e8c56;}function Pe(_0xd7f22c){const _0x181e19=_0x8e8fd5;switch(_0xd7f22c){case s[_0x181e19(0x1f8)][_0x181e19(0x19f)]:return _0x181e19(0x2b9);case s[_0x181e19(0x1f8)]['CONNECTING']:case s[_0x181e19(0x1f8)][_0x181e19(0x2f1)]:return _0x181e19(0x2d4);case s[_0x181e19(0x1f8)][_0x181e19(0x2e6)]:case s[_0x181e19(0x1f8)][_0x181e19(0x311)]:return _0x181e19(0x287);default:return'univer-text-gray-500';}}function W(_0x3e5ccc){const _0xbdf91a=_0x8e8fd5,{status$:_0x3874dc,error$:_0x117567,onConfigure:_0x3f3023,showClickable:_0x57c4ec=!0x0}=_0x3e5ccc,_0x40aff9=v['useObservable'](_0x3874dc,s['MCPConnectionStatus'][_0xbdf91a(0x311)]),_0x5773e3=v[_0xbdf91a(0x29a)](_0x117567,s[_0xbdf91a(0x30e)][_0xbdf91a(0x1c3)]),_0x2d9237=v['useDependency'](u['LocaleService']),_0x537461=_0x40aff9===s[_0xbdf91a(0x1f8)][_0xbdf91a(0x19f)];_0x40aff9===s[_0xbdf91a(0x1f8)][_0xbdf91a(0x258)]||s[_0xbdf91a(0x1f8)]['RETRYING'];const _0xe9c7f5=_0x2d9237['t'](Z(_0x40aff9,_0x5773e3)),_0x2d409e=Se(_0x40aff9,_0x5773e3,_0x2d9237,_0x57c4ec),_0x10fefd=Pe(_0x40aff9),_0x342a7d=_0x537461?i[_0xbdf91a(0x1e2)](q,{}):i['jsx'](Y,{}),_0x3d87b0=d[_0xbdf91a(0x278)](()=>{_0x57c4ec&&_0x3f3023&&_0x3f3023();},[_0x57c4ec,_0x3f3023]);function _0x2bb572(){const _0x3d43c0=_0xbdf91a;return i[_0x3d43c0(0x231)](_0x3d43c0(0x2da),{'className':f['clsx']('univer-flex\x20univer-items-center',_0x57c4ec&&_0x3f3023&&_0x3d43c0(0x1c6)),'role':'button','onClick':_0x57c4ec&&_0x3f3023?_0x3d87b0:void 0x0,'children':[i[_0x3d43c0(0x1e2)]('div',{'className':f[_0x3d43c0(0x213)](_0x3d43c0(0x284),_0x10fefd),'children':_0x342a7d}),i[_0x3d43c0(0x1e2)](_0x3d43c0(0x2da),{'className':_0x3d43c0(0x327),'children':_0xe9c7f5})]});}return i[_0xbdf91a(0x1e2)](f[_0xbdf91a(0x1d1)],{'title':_0x2d409e,'placement':'bottom','children':_0x2bb572()});}var Ie=Object[_0x8e8fd5(0x2c4)],_e=(_0x27d6a8,_0x241197,_0x90319d,_0x100db1)=>{const _0x1f6635=_0x8e8fd5;for(var _0x34f5ec=_0x100db1>0x1?void 0x0:_0x100db1?Ie(_0x241197,_0x90319d):_0x241197,_0x4dbf1e=_0x27d6a8[_0x1f6635(0x203)]-0x1,_0x50e7c0;_0x4dbf1e>=0x0;_0x4dbf1e--)(_0x50e7c0=_0x27d6a8[_0x4dbf1e])&&(_0x34f5ec=_0x50e7c0(_0x34f5ec)||_0x34f5ec);return _0x34f5ec;},N=(_0x3007fa,_0x432d95)=>(_0x3c061f,_0x25d6f4)=>_0x432d95(_0x3c061f,_0x25d6f4,_0x3007fa);exports[_0x8e8fd5(0x1a5)]=class extends u[_0x8e8fd5(0x237)]{constructor(_0x25f12d,_0x8953d3,_0x1eaed1,_0x271a9b){const _0xf42c28=_0x8e8fd5;super(),this[_0xf42c28(0x31e)]=_0x25f12d,this[_0xf42c28(0x2d7)]=_0x8953d3,this['_uiPartsService']=_0x1eaed1,this['_configService']=_0x271a9b,this[_0xf42c28(0x1ad)](),this[_0xf42c28(0x241)]();}['_initAutoConnect'](){const _0x1616a3=_0x8e8fd5,_0x589d56=this[_0x1616a3(0x298)][_0x1616a3(0x1b0)](P);_0x589d56!=null&&_0x589d56[_0x1616a3(0x1c0)]&&(this['_connectionController'][_0x1616a3(0x227)]=!0x1);}[_0x8e8fd5(0x241)](){const _0x5d95ce=_0x8e8fd5,_0x156898=this[_0x5d95ce(0x298)][_0x5d95ce(0x1b0)](P);(_0x156898==null?void 0x0:_0x156898[_0x5d95ce(0x1e4)])!==!0x1&&this[_0x5d95ce(0x2cc)](this[_0x5d95ce(0x1c7)]['registerComponent'](v[_0x5d95ce(0x228)][_0x5d95ce(0x2bb)],()=>{const _0x39fc6d=_0x5d95ce;var _0x2662b4;return v[_0x39fc6d(0x2b6)](ye({'status$':this['_connectionController'][_0x39fc6d(0x2de)],'error$':this[_0x39fc6d(0x2d7)]['connectionError$'],'onConfigure':()=>this[_0x39fc6d(0x302)](),'showClickable':(_0x2662b4=_0x156898==null?void 0x0:_0x156898['showDeveloperTools'])!=null?_0x2662b4:!0x1}),this['_injector']);}));}[_0x8e8fd5(0x302)](){const _0xeba3c6=_0x8e8fd5;this[_0xeba3c6(0x31e)][_0xeba3c6(0x2bd)](exports[_0xeba3c6(0x217)])[_0xeba3c6(0x222)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u['Inject'](u[_0x8e8fd5(0x235)])),N(0x1,u[_0x8e8fd5(0x2f9)](s[_0x8e8fd5(0x21d)])),N(0x2,v[_0x8e8fd5(0x1b4)]),N(0x3,u['IConfigService'])],exports[_0x8e8fd5(0x1a5)]);function ye(_0x1ce075){const {status$:_0x74aebd,error$:_0x5d5123,onConfigure:_0x31de9a,showClickable:_0x592c0c}=_0x1ce075;return function(){return i['jsx'](W,{'status$':_0x74aebd,'error$':_0x5d5123,'onConfigure':_0x31de9a,'showClickable':_0x592c0c});};}function Me(_0x4abff8){const _0x3c4f2c=_0x8e8fd5;return{'id':b['id'],'type':v[_0x3c4f2c(0x2f5)][_0x3c4f2c(0x1c4)],'icon':_0x3c4f2c(0x2f2),'title':_0x3c4f2c(0x2aa),'tooltip':_0x3c4f2c(0x2aa)};}const Ne={[v[_0x8e8fd5(0x251)][_0x8e8fd5(0x1fc)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x2b05ed,_0x2efb65,_0x3f92e8,_0x5d0b36)=>{const _0x435703=_0x8e8fd5;for(var _0x4cd16e=_0x5d0b36>0x1?void 0x0:_0x5d0b36?be(_0x2efb65,_0x3f92e8):_0x2efb65,_0x5c9060=_0x2b05ed[_0x435703(0x203)]-0x1,_0x36b2ac;_0x5c9060>=0x0;_0x5c9060--)(_0x36b2ac=_0x2b05ed[_0x5c9060])&&(_0x4cd16e=_0x36b2ac(_0x4cd16e)||_0x4cd16e);return _0x4cd16e;},z=(_0x307a24,_0x1d6041)=>(_0x871cf8,_0x1a6c54)=>_0x1d6041(_0x871cf8,_0x1a6c54,_0x307a24);exports[_0x8e8fd5(0x306)]=class extends u[_0x8e8fd5(0x237)]{constructor(_0x2cae67,_0x48f5d2){const _0x5889f5=_0x8e8fd5;super(),this['_commandService']=_0x2cae67,this[_0x5889f5(0x1b9)]=_0x48f5d2,this[_0x5889f5(0x21e)](),this[_0x5889f5(0x2fb)]();}[_0x8e8fd5(0x21e)](){const _0x436ad7=_0x8e8fd5;[b][_0x436ad7(0x232)](_0xd75dbf=>{const _0x87af1f=_0x436ad7;this[_0x87af1f(0x2cc)](this['_commandService'][_0x87af1f(0x1f2)](_0xd75dbf));});}[_0x8e8fd5(0x2fb)](){this['_menuManagerService']['mergeMenu'](Ne);}},exports[_0x8e8fd5(0x306)]=je([z(0x0,u['ICommandService']),z(0x1,v['IMenuManagerService'])],exports[_0x8e8fd5(0x306)]);const Ee={'mcpStatus':{'disconnected':_0x8e8fd5(0x305),'connecting':_0x8e8fd5(0x22b),'connected':_0x8e8fd5(0x250),'failed':_0x8e8fd5(0x2a0),'retrying':_0x8e8fd5(0x206),'unknown':_0x8e8fd5(0x1be),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x8e8fd5(0x25d),'networkError':_0x8e8fd5(0x243),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x8e8fd5(0x2b0),'clickToConfigure':_0x8e8fd5(0x2ef)},'mcpConfig':{'title':_0x8e8fd5(0x1c5),'description':_0x8e8fd5(0x2a2),'apiKey':_0x8e8fd5(0x286),'apiKeyPlaceholder':_0x8e8fd5(0x296),'apiKeyHint':_0x8e8fd5(0x30d),'enableAuth':_0x8e8fd5(0x2cf),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x8e8fd5(0x2dd),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x8e8fd5(0x2a8),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x8e8fd5(0x2f0),'configStep3':_0x8e8fd5(0x283),'sessionId':'Session\x20ID','sessionIdDescription':_0x8e8fd5(0x308),'authorizationDescription':_0x8e8fd5(0x1ac),'configParameters':_0x8e8fd5(0x2a3),'maxRetries':_0x8e8fd5(0x244),'save':_0x8e8fd5(0x276),'saving':_0x8e8fd5(0x2fc),'note1':_0x8e8fd5(0x2a6),'note2':_0x8e8fd5(0x2ff),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x8e8fd5(0x1bf),'description':_0x8e8fd5(0x22e),'univerAiLabel':_0x8e8fd5(0x2a5),'getStarted':_0x8e8fd5(0x288)},'validation':{'apiKeyRequired':_0x8e8fd5(0x28c),'apiKeyTooShort':_0x8e8fd5(0x2ee),'invalidConfig':_0x8e8fd5(0x1cf),'invalidApiKey':_0x8e8fd5(0x242)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x8e8fd5(0x297),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x8e8fd5(0x1b6)},'connectionError':{'unauthorized':_0x8e8fd5(0x1c9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x8e8fd5(0x223),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':_0x8e8fd5(0x257),'connecting':_0x8e8fd5(0x210),'connected':_0x8e8fd5(0x248),'failed':_0x8e8fd5(0x294),'retrying':'MCP\x20重连中...','unknown':_0x8e8fd5(0x27e),'unauthorized':_0x8e8fd5(0x303),'sessionOccupied':_0x8e8fd5(0x301),'networkError':_0x8e8fd5(0x2fd),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x8e8fd5(0x31c),'clickToConfigure':_0x8e8fd5(0x29f)},'mcpConfig':{'title':_0x8e8fd5(0x1cd),'description':_0x8e8fd5(0x2e7),'apiKey':_0x8e8fd5(0x1e6),'apiKeyPlaceholder':_0x8e8fd5(0x2e8),'apiKeyHint':_0x8e8fd5(0x271),'enableAuth':_0x8e8fd5(0x2e5),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x8e8fd5(0x24d),'mcpClientConfig':_0x8e8fd5(0x24d),'configInstructions':_0x8e8fd5(0x2d5),'configStepTitle':_0x8e8fd5(0x260),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x8e8fd5(0x2eb),'configStep3':_0x8e8fd5(0x1ae),'sessionId':_0x8e8fd5(0x299),'sessionIdDescription':_0x8e8fd5(0x1d6),'authorizationDescription':_0x8e8fd5(0x214),'configParameters':_0x8e8fd5(0x2fe),'maxRetries':_0x8e8fd5(0x29d),'save':_0x8e8fd5(0x29b),'saving':_0x8e8fd5(0x24e),'note1':'配置更改将立即生效','note2':_0x8e8fd5(0x2c3),'configSaved':_0x8e8fd5(0x1d0),'configError':_0x8e8fd5(0x1f5),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x8e8fd5(0x2d1),'univerAiLabel':_0x8e8fd5(0x218),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x8e8fd5(0x23e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x8e8fd5(0x27a),'invalidApiKey':_0x8e8fd5(0x2f4)},'connectionStatus':{'disconnected':_0x8e8fd5(0x2e1),'connecting':_0x8e8fd5(0x219),'connected':_0x8e8fd5(0x1fe),'failed':_0x8e8fd5(0x1e1),'retrying':_0x8e8fd5(0x268)},'connectionError':{'unauthorized':_0x8e8fd5(0x1d9),'sessionOccupied':_0x8e8fd5(0x1bc),'networkError':_0x8e8fd5(0x1a2),'maxRetriesExceeded':_0x8e8fd5(0x254)}}};var Ae=Object[_0x8e8fd5(0x2d6)],Oe=Object[_0x8e8fd5(0x2c4)],De=(_0x5f2975,_0x3a96e6,_0x53783d)=>_0x3a96e6 in _0x5f2975?Ae(_0x5f2975,_0x3a96e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53783d}):_0x5f2975[_0x3a96e6]=_0x53783d,Ue=(_0x4b6b17,_0x4d1dbd,_0x34da60,_0x3027ff)=>{const _0x2fed2a=_0x8e8fd5;for(var _0x5dd20=_0x3027ff>0x1?void 0x0:_0x3027ff?Oe(_0x4d1dbd,_0x34da60):_0x4d1dbd,_0x11a557=_0x4b6b17[_0x2fed2a(0x203)]-0x1,_0x21aef7;_0x11a557>=0x0;_0x11a557--)(_0x21aef7=_0x4b6b17[_0x11a557])&&(_0x5dd20=_0x21aef7(_0x5dd20)||_0x5dd20);return _0x5dd20;},y=(_0x56c26f,_0x480d80)=>(_0x21f51f,_0xd960e1)=>_0x480d80(_0x21f51f,_0xd960e1,_0x56c26f),$e=(_0x18102d,_0x4c0f09,_0x2205b1)=>De(_0x18102d,_0x4c0f09+'',_0x2205b1);exports['UniverMCPUIPlugin']=class extends u[_0x8e8fd5(0x238)]{constructor(_0x43d595=L,_0x71c5eb,_0x806417,_0x523e20,_0x823b2b,_0x3096f0){const _0x7e6621=_0x8e8fd5;super(),this[_0x7e6621(0x261)]=_0x43d595,this[_0x7e6621(0x31e)]=_0x71c5eb,this['_configService']=_0x806417,this[_0x7e6621(0x1c7)]=_0x523e20,this[_0x7e6621(0x247)]=_0x823b2b,this[_0x7e6621(0x1eb)]=_0x3096f0;const {..._0x459a75}=u[_0x7e6621(0x1de)]({},L,this[_0x7e6621(0x261)]);this[_0x7e6621(0x298)][_0x7e6621(0x2c8)](P,_0x459a75);}async['onStarting'](){const _0x1f1ba2=_0x8e8fd5,_0x5df92d=[[exports['MCPConnectionUIController']],[exports['MCPConfigUIController']],[exports[_0x1f1ba2(0x306)]]];this[_0x1f1ba2(0x31e)][_0x1f1ba2(0x295)](A['ISocketService'])||_0x5df92d[_0x1f1ba2(0x1dd)]([A[_0x1f1ba2(0x202)],{'useClass':A['WebSocketService']}]),_0x5df92d[_0x1f1ba2(0x232)](_0x45e277=>this['_injector']['add'](_0x45e277)),this[_0x1f1ba2(0x31e)]['get'](exports['MCPConnectionUIController']),this['_injector'][_0x1f1ba2(0x2bd)](exports['MCPConfigUIController']),this[_0x1f1ba2(0x31e)]['get'](exports['MCPUIMenuController']);}},$e(exports['UniverMCPUIPlugin'],_0x8e8fd5(0x2c2),'MCP_UI_PLUGIN'),exports[_0x8e8fd5(0x1f7)]=Ue([u[_0x8e8fd5(0x212)](s[_0x8e8fd5(0x255)]),y(0x1,u[_0x8e8fd5(0x2f9)](u[_0x8e8fd5(0x235)])),y(0x2,u[_0x8e8fd5(0x1e8)]),y(0x3,v[_0x8e8fd5(0x1b4)]),y(0x4,u[_0x8e8fd5(0x2cb)]),y(0x5,u['Inject'](u[_0x8e8fd5(0x1ec)]))],exports['UniverMCPUIPlugin']),exports[_0x8e8fd5(0x282)]=V,exports[_0x8e8fd5(0x315)]=W,exports[_0x8e8fd5(0x1f4)]=b,exports['enUS']=Ee,exports[_0x8e8fd5(0x27f)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2f5844=_0x1fc2;(function(_0x38a1b4,_0x452e0b){const _0x182712=_0x1fc2,_0x305e88=_0x38a1b4();while(!![]){try{const _0x27af6c=-parseInt(_0x182712(0x9c))/0x1+parseInt(_0x182712(0x85))/0x2*(parseInt(_0x182712(0x7f))/0x3)+-parseInt(_0x182712(0x96))/0x4*(-parseInt(_0x182712(0x70))/0x5)+-parseInt(_0x182712(0x73))/0x6+parseInt(_0x182712(0x8f))/0x7*(-parseInt(_0x182712(0x8b))/0x8)+-parseInt(_0x182712(0x95))/0x9+parseInt(_0x182712(0x9d))/0xa;if(_0x27af6c===_0x452e0b)break;else _0x305e88['push'](_0x305e88['shift']());}catch(_0xbaa4f3){_0x305e88['push'](_0x305e88['shift']());}}}(_0x3421,0x2d308));const e={'mcpStatus':{'disconnected':_0x2f5844(0x86),'connecting':_0x2f5844(0x7d),'connected':_0x2f5844(0x98),'failed':_0x2f5844(0x6f),'retrying':_0x2f5844(0x82),'unknown':_0x2f5844(0x88),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2f5844(0x76),'networkError':_0x2f5844(0x91),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2f5844(0x9e),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2f5844(0x9b),'description':_0x2f5844(0x9a),'apiKey':_0x2f5844(0x71),'apiKeyPlaceholder':_0x2f5844(0x99),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2f5844(0x83),'connectionInfo':_0x2f5844(0x9f),'mcpClientConfig':_0x2f5844(0x9f),'configInstructions':_0x2f5844(0x79),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2f5844(0x77),'sessionId':_0x2f5844(0x92),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2f5844(0x80),'configParameters':_0x2f5844(0x7c),'maxRetries':_0x2f5844(0x78),'save':_0x2f5844(0x89),'saving':_0x2f5844(0x84),'note1':_0x2f5844(0x97),'note2':_0x2f5844(0x93),'configSaved':_0x2f5844(0x7e),'configError':_0x2f5844(0x8a),'apiApplyInfo':{'title':_0x2f5844(0x81),'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':_0x2f5844(0xa0),'getStarted':_0x2f5844(0x7a)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2f5844(0x94),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2f5844(0x72)},'connectionStatus':{'disconnected':_0x2f5844(0x8e),'connecting':_0x2f5844(0x90),'connected':'Connected','failed':_0x2f5844(0x87),'retrying':_0x2f5844(0x8d)},'connectionError':{'unauthorized':_0x2f5844(0x8c),'sessionOccupied':_0x2f5844(0x75),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2f5844(0x74)}}},n=e;function _0x3421(){const _0xf57423=['Connection\x20Failed','MCP\x20Unknown\x20Status','Save\x20Configuration','Failed\x20to\x20save\x20configuration','8ahhkCz','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Retrying...','Disconnected','444787FFjLWA','Connecting...','MCP:\x20Network\x20Error','Session\x20ID','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3258099fcUyhb','4sbCmMd','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','233928GVTfkh','5053520VdRISc','Click\x20to\x20connect\x20MCP','MCP\x20Client\x20Configuration','Univer\x20AI\x20Console','MCP\x20Connection\x20Failed','1107935NWSlwf','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','399528DQEEOO','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','exports','Configuration\x20Parameters:','MCP\x20Connecting...','Configuration\x20saved\x20successfully','552675YtgFxo','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','MCP\x20Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','Saving...','2KTmWrw','MCP\x20Disconnected'];_0x3421=function(){return _0xf57423;};return _0x3421();}function _0x1fc2(_0xdd4f5a,_0x27083b){_0xdd4f5a=_0xdd4f5a-0x6f;const _0x34213b=_0x3421();let _0x1fc25c=_0x34213b[_0xdd4f5a];return _0x1fc25c;}module[_0x2f5844(0x7b)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x39ad(){const _0x5ada3a=['exports','1836416XaClyc','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','Retrying...','Configuration\x20Steps:','125270nYjxbG','18Gcqfjh','Configuration\x20Parameters:','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','939440GnfVUe','MCP\x20Connecting...','2469166mrDbUS','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1087580PucBMV','Session\x20ID','Click\x20to\x20configure\x20MCP','Enable\x20Authentication','1505109lOylgD','MCP:\x20Network\x20Error','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Retrying...','18aybZlP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','What\x20is\x20API\x20Key?','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized','Invalid\x20configuration','1McwWyO','2406228TmnXKp','Enter\x20your\x20API\x20key','Saving...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','Failed\x20to\x20save\x20configuration'];_0x39ad=function(){return _0x5ada3a;};return _0x39ad();}const _0x1855eb=_0x2e14;function _0x2e14(_0x46bbac,_0x524fd0){_0x46bbac=_0x46bbac-0x9e;const _0x39adaf=_0x39ad();let _0x2e14d5=_0x39adaf[_0x46bbac];return _0x2e14d5;}(function(_0x445e54,_0x6deb72){const _0x53d231=_0x2e14,_0x2374db=_0x445e54();while(!![]){try{const _0x1aa00f=parseInt(_0x53d231(0xaf))/0x1*(-parseInt(_0x53d231(0xc9))/0x2)+-parseInt(_0x53d231(0xa1))/0x3+-parseInt(_0x53d231(0xb0))/0x4+-parseInt(_0x53d231(0xce))/0x5*(-parseInt(_0x53d231(0xca))/0x6)+parseInt(_0x53d231(0xd0))/0x7+parseInt(_0x53d231(0xbc))/0x8*(parseInt(_0x53d231(0xa8))/0x9)+parseInt(_0x53d231(0xd3))/0xa;if(_0x1aa00f===_0x6deb72)break;else _0x2374db['push'](_0x2374db['shift']());}catch(_0x30aefe){_0x2374db['push'](_0x2374db['shift']());}}}(_0x39ad,0x4dba1));const e={'mcpStatus':{'disconnected':_0x1855eb(0xb9),'connecting':_0x1855eb(0xcf),'connected':_0x1855eb(0xc6),'failed':_0x1855eb(0xa5),'retrying':_0x1855eb(0xa7),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x1855eb(0xad),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1855eb(0xa2),'maxRetriesExceeded':_0x1855eb(0xb8),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1855eb(0x9f)},'mcpConfig':{'title':_0x1855eb(0xc4),'description':_0x1855eb(0xa9),'apiKey':_0x1855eb(0xa3),'apiKeyPlaceholder':_0x1855eb(0xb1),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1855eb(0xa0),'enableAuthHint':_0x1855eb(0xcd),'connectionInfo':_0x1855eb(0xac),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1855eb(0xc8),'configStep1':_0x1855eb(0xc3),'configStep2':_0x1855eb(0xc1),'configStep3':_0x1855eb(0xd2),'sessionId':_0x1855eb(0x9e),'sessionIdDescription':_0x1855eb(0xd1),'authorizationDescription':_0x1855eb(0xa6),'configParameters':_0x1855eb(0xcb),'maxRetries':_0x1855eb(0xcc),'save':_0x1855eb(0xb7),'saving':_0x1855eb(0xb2),'note1':_0x1855eb(0xc5),'note2':_0x1855eb(0xb3),'configSaved':_0x1855eb(0xab),'configError':_0x1855eb(0xba),'apiApplyInfo':{'title':_0x1855eb(0xaa),'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':_0x1855eb(0xb4),'getStarted':_0x1855eb(0xbf)},'validation':{'apiKeyRequired':_0x1855eb(0xbd),'apiKeyTooShort':_0x1855eb(0xc2),'invalidConfig':_0x1855eb(0xae),'invalidApiKey':_0x1855eb(0xbe)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1855eb(0xc0),'connected':'Connected','failed':_0x1855eb(0xb6),'retrying':_0x1855eb(0xc7)},'connectionError':{'unauthorized':_0x1855eb(0xa4),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1855eb(0xb5)}}};module[_0x1855eb(0xbb)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xfb6a4f=_0x124a;(function(_0x24856b,_0x3a6574){const _0x256ae6=_0x124a,_0x2d1a67=_0x24856b();while(!![]){try{const _0x1fe0e=-parseInt(_0x256ae6(0x19b))/0x1*(parseInt(_0x256ae6(0x19d))/0x2)+-parseInt(_0x256ae6(0x199))/0x3+-parseInt(_0x256ae6(0x186))/0x4*(parseInt(_0x256ae6(0x182))/0x5)+-parseInt(_0x256ae6(0x187))/0x6*(parseInt(_0x256ae6(0x177))/0x7)+-parseInt(_0x256ae6(0x18b))/0x8+parseInt(_0x256ae6(0x16c))/0x9+parseInt(_0x256ae6(0x16f))/0xa;if(_0x1fe0e===_0x3a6574)break;else _0x2d1a67['push'](_0x2d1a67['shift']());}catch(_0x47d5ac){_0x2d1a67['push'](_0x2d1a67['shift']());}}}(_0x256c,0xe7165));function _0x124a(_0x31c11a,_0x1a3c39){_0x31c11a=_0x31c11a-0x16c;const _0x256c65=_0x256c();let _0x124aaf=_0x256c65[_0x31c11a];return _0x124aaf;}function _0x256c(){const _0x4455a8=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','71cHWjmX','Retrying...','29888ZJKEBA','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connection\x20Failed','3985974TLCWpE','Univer\x20AI\x20Console','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','57581250LObsjz','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Enable\x20Authentication','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','826eOBvUk','Enter\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','MCP\x20Retrying...','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','MCP\x20Disconnected','1780570MopLjt','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','8OjLAtQ','35034ChMbHD','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','Disconnected','11906168qbkfYR','Click\x20to\x20connect\x20MCP','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','MCP\x20Client\x20Configuration','Connection\x20Failed','exports','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','MCP\x20Unknown\x20Status','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20configuration','API\x20Key','3911859pFfYmv'];_0x256c=function(){return _0x4455a8;};return _0x256c();}const e={'mcpStatus':{'disconnected':_0xfb6a4f(0x181),'connecting':_0xfb6a4f(0x175),'connected':_0xfb6a4f(0x193),'failed':_0xfb6a4f(0x19f),'retrying':_0xfb6a4f(0x17c),'unknown':_0xfb6a4f(0x194),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xfb6a4f(0x172),'maxRetriesExceeded':_0xfb6a4f(0x171),'clickToConnect':_0xfb6a4f(0x18c),'clickToConfigure':_0xfb6a4f(0x170)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xfb6a4f(0x198),'apiKeyPlaceholder':_0xfb6a4f(0x178),'apiKeyHint':_0xfb6a4f(0x185),'enableAuth':_0xfb6a4f(0x173),'enableAuthHint':_0xfb6a4f(0x189),'connectionInfo':_0xfb6a4f(0x18f),'mcpClientConfig':_0xfb6a4f(0x18f),'configInstructions':_0xfb6a4f(0x17a),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xfb6a4f(0x179),'configStep2':_0xfb6a4f(0x16e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0xfb6a4f(0x19e),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0xfb6a4f(0x188),'save':_0xfb6a4f(0x195),'saving':'Saving...','note1':_0xfb6a4f(0x183),'note2':_0xfb6a4f(0x17f),'configSaved':_0xfb6a4f(0x180),'configError':_0xfb6a4f(0x17e),'apiApplyInfo':{'title':_0xfb6a4f(0x174),'description':_0xfb6a4f(0x18d),'univerAiLabel':_0xfb6a4f(0x16d),'getStarted':_0xfb6a4f(0x18e)},'validation':{'apiKeyRequired':_0xfb6a4f(0x17d),'apiKeyTooShort':_0xfb6a4f(0x196),'invalidConfig':_0xfb6a4f(0x197),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xfb6a4f(0x18a),'connecting':_0xfb6a4f(0x184),'connected':_0xfb6a4f(0x17b),'failed':_0xfb6a4f(0x190),'retrying':_0xfb6a4f(0x19c)},'connectionError':{'unauthorized':_0xfb6a4f(0x19a),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xfb6a4f(0x192),'maxRetriesExceeded':_0xfb6a4f(0x176)}}},n=e;module[_0xfb6a4f(0x191)]=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4f4185=_0x5c62;(function(_0x2c7de8,_0x2b6820){const _0x43658b=_0x5c62,_0x197f14=_0x2c7de8();while(!![]){try{const _0x16013a=parseInt(_0x43658b(0xa6))/0x1+-parseInt(_0x43658b(0xbe))/0x2+parseInt(_0x43658b(0xab))/0x3+-parseInt(_0x43658b(0xb1))/0x4*(-parseInt(_0x43658b(0xb2))/0x5)+parseInt(_0x43658b(0xa2))/0x6*(-parseInt(_0x43658b(0x95))/0x7)+parseInt(_0x43658b(0xbb))/0x8+-parseInt(_0x43658b(0xa0))/0x9;if(_0x16013a===_0x2b6820)break;else _0x197f14['push'](_0x197f14['shift']());}catch(_0x458ed8){_0x197f14['push'](_0x197f14['shift']());}}}(_0x323f,0x9f342));const e={'mcpStatus':{'disconnected':_0x4f4185(0x91),'connecting':_0x4f4185(0x9b),'connected':_0x4f4185(0xb3),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4f4185(0xa4),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4f4185(0x94),'sessionOccupied':_0x4f4185(0xb5),'networkError':_0x4f4185(0xaa),'maxRetriesExceeded':_0x4f4185(0xc1),'clickToConnect':_0x4f4185(0xb6),'clickToConfigure':_0x4f4185(0x92)},'mcpConfig':{'title':_0x4f4185(0xa8),'description':_0x4f4185(0x9a),'apiKey':_0x4f4185(0x96),'apiKeyPlaceholder':_0x4f4185(0xb0),'apiKeyHint':_0x4f4185(0x9e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4f4185(0x9d),'connectionInfo':_0x4f4185(0xbd),'mcpClientConfig':_0x4f4185(0xbd),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4f4185(0xbc),'configStep1':_0x4f4185(0xae),'configStep2':_0x4f4185(0xb7),'configStep3':_0x4f4185(0xbf),'sessionId':_0x4f4185(0x9c),'sessionIdDescription':_0x4f4185(0xba),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x4f4185(0x99),'saving':'Saving...','note1':_0x4f4185(0xc2),'note2':_0x4f4185(0x97),'configSaved':_0x4f4185(0xb4),'configError':_0x4f4185(0xad),'apiApplyInfo':{'title':_0x4f4185(0xa7),'description':_0x4f4185(0xa3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4f4185(0xac)},'validation':{'apiKeyRequired':_0x4f4185(0xa9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4f4185(0xb8),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4f4185(0x9f),'connecting':_0x4f4185(0xaf),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x4f4185(0x98)},'connectionError':{'unauthorized':_0x4f4185(0xa1),'sessionOccupied':_0x4f4185(0xa5),'networkError':_0x4f4185(0x93),'maxRetriesExceeded':_0x4f4185(0xb9)}}},n=e;module[_0x4f4185(0xc0)]=n;function _0x5c62(_0x48c486,_0x4db1a0){_0x48c486=_0x48c486-0x91;const _0x323fc0=_0x323f();let _0x5c6209=_0x323fc0[_0x48c486];return _0x5c6209;}function _0x323f(){const _0x15bcdd=['6428EJmVOC','2785RRbnxq','MCP\x20Connected','Configuration\x20saved\x20successfully','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20connect\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','7897480YQxwcU','Configuration\x20Steps:','MCP\x20Client\x20Configuration','1229136wJuftB','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','exports','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Unauthorized','413wOfnbV','API\x20Key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','Save\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','Session\x20ID','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','7709886gOExwY','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','101166cTuNls','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1159266ieVQui','What\x20is\x20API\x20Key?','MCP\x20Configuration','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','229707mQHzaP','Get\x20your\x20API\x20key\x20in\x20seconds','Failed\x20to\x20save\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Connecting...','Enter\x20your\x20API\x20key'];_0x323f=function(){return _0x15bcdd;};return _0x323f();}
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1c0a97=_0x2d19;(function(_0x4eba3d,_0x1e24e0){const _0x1879c1=_0x2d19,_0x2cd771=_0x4eba3d();while(!![]){try{const _0x5a587a=-parseInt(_0x1879c1(0x81))/0x1+-parseInt(_0x1879c1(0xa1))/0x2+parseInt(_0x1879c1(0x8d))/0x3*(-parseInt(_0x1879c1(0x85))/0x4)+parseInt(_0x1879c1(0x9c))/0x5*(-parseInt(_0x1879c1(0x7e))/0x6)+-parseInt(_0x1879c1(0x74))/0x7*(-parseInt(_0x1879c1(0x8b))/0x8)+-parseInt(_0x1879c1(0x77))/0x9*(parseInt(_0x1879c1(0x89))/0xa)+parseInt(_0x1879c1(0x96))/0xb;if(_0x5a587a===_0x1e24e0)break;else _0x2cd771['push'](_0x2cd771['shift']());}catch(_0x5e6632){_0x2cd771['push'](_0x2cd771['shift']());}}}(_0x35e4,0x79296));function _0x35e4(){const _0x25f14c=['API\x20Key','Max\x20Retries','MCP\x20Connected','Configuration\x20Parameters:','Save\x20Configuration','26033403dxcVpR','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','745KSdhaa','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connecting...','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','1412052pButzn','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','MCP:\x20Network\x20Error','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Univer\x20AI\x20Console','4002887ttsead','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Configuration','45MTivUM','exports','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','20370ElUwAy','Enable\x20Authentication','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','237702mUEprg','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','Connection\x20Failed','16064TlKAMN','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','MCP:\x20Unauthorized','1639930wxgeZS','What\x20is\x20API\x20Key?','8oVEUBH','MCP\x20Unknown\x20Status','129jMbwHI','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Disconnected','Click\x20to\x20connect\x20MCP'];_0x35e4=function(){return _0x25f14c;};return _0x35e4();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1c0a97(0x9e),'connected':_0x1c0a97(0x93),'failed':'MCP\x20Connection\x20Failed','retrying':_0x1c0a97(0x7b),'unknown':_0x1c0a97(0x8c),'unauthorized':_0x1c0a97(0x88),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1c0a97(0x71),'maxRetriesExceeded':_0x1c0a97(0x9d),'clickToConnect':_0x1c0a97(0x90),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1c0a97(0x76),'description':_0x1c0a97(0x98),'apiKey':_0x1c0a97(0x91),'apiKeyPlaceholder':_0x1c0a97(0x83),'apiKeyHint':_0x1c0a97(0x7d),'enableAuth':_0x1c0a97(0x7f),'enableAuthHint':_0x1c0a97(0x82),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1c0a97(0x99),'configInstructions':_0x1c0a97(0x80),'configStepTitle':_0x1c0a97(0xa3),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1c0a97(0x86),'sessionId':_0x1c0a97(0x9f),'sessionIdDescription':_0x1c0a97(0x79),'authorizationDescription':_0x1c0a97(0xa0),'configParameters':_0x1c0a97(0x94),'maxRetries':_0x1c0a97(0x92),'save':_0x1c0a97(0x95),'saving':_0x1c0a97(0x9b),'note1':_0x1c0a97(0x7c),'note2':_0x1c0a97(0x75),'configSaved':_0x1c0a97(0x87),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1c0a97(0x8a),'description':_0x1c0a97(0xa2),'univerAiLabel':_0x1c0a97(0x73),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1c0a97(0x97),'apiKeyTooShort':_0x1c0a97(0x9a),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1c0a97(0x8f),'connecting':'Connecting...','connected':'Connected','failed':_0x1c0a97(0x84),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1c0a97(0x8e),'sessionOccupied':_0x1c0a97(0x72),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1c0a97(0x7a)}}},n=e;function _0x2d19(_0x349b85,_0x312e64){_0x349b85=_0x349b85-0x71;const _0x35e4c5=_0x35e4();let _0x2d1915=_0x35e4c5[_0x349b85];return _0x2d1915;}module[_0x1c0a97(0x78)]=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3e16db=_0x52e0;(function(_0x2ea0fd,_0x4f71bb){const _0x21c7a4=_0x52e0,_0x293385=_0x2ea0fd();while(!![]){try{const _0x2662d6=-parseInt(_0x21c7a4(0x126))/0x1+parseInt(_0x21c7a4(0x14f))/0x2*(parseInt(_0x21c7a4(0x150))/0x3)+parseInt(_0x21c7a4(0x148))/0x4+-parseInt(_0x21c7a4(0x14b))/0x5+-parseInt(_0x21c7a4(0x12b))/0x6*(parseInt(_0x21c7a4(0x145))/0x7)+parseInt(_0x21c7a4(0x11f))/0x8*(parseInt(_0x21c7a4(0x13c))/0x9)+parseInt(_0x21c7a4(0x13a))/0xa*(parseInt(_0x21c7a4(0x137))/0xb);if(_0x2662d6===_0x4f71bb)break;else _0x293385['push'](_0x293385['shift']());}catch(_0x3b4dee){_0x293385['push'](_0x293385['shift']());}}}(_0x57c1,0x60d52));function _0x57c1(){const _0x1ecf55=['MCPクライアント設定','exports','MCP\x20不明な状態','設定が正常に保存されました','APIキーは10文字以上である必要があります','APIキーは必須です','クリックしてMCPに接続','MCPクライアントの設定に次の設定を追加してください:','52955aIFMSi','セキュアな接続のために認証を有効にする','未接続','1507248WuyLTv','保存中...','数秒でAPIキーを取得','1840315SXYheu','無効な設定','MCP\x20再試行中...','最大再試行回数を超過しました。後でもう一度お試しください','1698lMCcXG','243LyGfDS','MCP\x20接続失敗','24duMxVh','設定パラメータ:','MCPクライアントを再起動して設定を適用','MCP:\x20最大再試行回数を超過','設定を保存','設定の保存に失敗しました','Univer\x20AIコンソール','402299sushEC','最大再試行回数','MCP\x20接続済み','設定の変更は直ちに有効になります','接続失敗','396VEiZzj','MCP:\x20認証されていません','Bearerプレフィックス付きのAPIキー。','MCP設定','APIキーはこのブラウザのローカルに保存されます','MCPクライアントの設定ファイルに設定を追加','クリックしてMCPを設定','認証に失敗しました。APIキーを確認してください','セッションIDが現在使用中です。後でもう一度お試しください','APIキーとは?','セッションID','MCP\x20接続中...','1221FXdpsI','以下のJSON設定をコピー','接続済み','85040GpQXVf','接続中...','830259SVQwTl'];_0x57c1=function(){return _0x1ecf55;};return _0x57c1();}function _0x52e0(_0x139cc2,_0x1e8a2a){_0x139cc2=_0x139cc2-0x11e;const _0x57c162=_0x57c1();let _0x52e028=_0x57c162[_0x139cc2];return _0x52e028;}const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':_0x3e16db(0x136),'connected':_0x3e16db(0x128),'failed':_0x3e16db(0x11e),'retrying':_0x3e16db(0x14d),'unknown':_0x3e16db(0x13f),'unauthorized':_0x3e16db(0x12c),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x3e16db(0x122),'clickToConnect':_0x3e16db(0x143),'clickToConfigure':_0x3e16db(0x131)},'mcpConfig':{'title':_0x3e16db(0x12e),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':'APIキー','apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0x3e16db(0x12f),'enableAuth':'認証を有効にする','enableAuthHint':_0x3e16db(0x146),'connectionInfo':_0x3e16db(0x13d),'mcpClientConfig':'MCPクライアント設定','configInstructions':_0x3e16db(0x144),'configStepTitle':'設定手順:','configStep1':_0x3e16db(0x138),'configStep2':_0x3e16db(0x130),'configStep3':_0x3e16db(0x121),'sessionId':_0x3e16db(0x135),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x3e16db(0x12d),'configParameters':_0x3e16db(0x120),'maxRetries':_0x3e16db(0x127),'save':_0x3e16db(0x123),'saving':_0x3e16db(0x149),'note1':_0x3e16db(0x129),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x3e16db(0x140),'configError':_0x3e16db(0x124),'apiApplyInfo':{'title':_0x3e16db(0x134),'description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x3e16db(0x125),'getStarted':_0x3e16db(0x14a)},'validation':{'apiKeyRequired':_0x3e16db(0x142),'apiKeyTooShort':_0x3e16db(0x141),'invalidConfig':_0x3e16db(0x14c),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x3e16db(0x147),'connecting':_0x3e16db(0x13b),'connected':_0x3e16db(0x139),'failed':_0x3e16db(0x12a),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x3e16db(0x132),'sessionOccupied':_0x3e16db(0x133),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x3e16db(0x14e)}}};module[_0x3e16db(0x13e)]=e;
|