@univerjs-pro/collaboration-client-ui 0.12.2 → 0.12.3
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/facade.js +1 -1
- 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/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/facade.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/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/facade.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/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.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/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 +18 -18
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2a0d4e=_0x463e;(function(_0xc29e64,_0x1bda40){const _0x215239=_0x463e,_0x25a7db=_0xc29e64();while(!![]){try{const _0x2303e7=parseInt(_0x215239(0x2dd))/0x1*(parseInt(_0x215239(0x229))/0x2)+-parseInt(_0x215239(0x235))/0x3+-parseInt(_0x215239(0x1e0))/0x4+parseInt(_0x215239(0x333))/0x5*(parseInt(_0x215239(0x176))/0x6)+parseInt(_0x215239(0x2bc))/0x7*(parseInt(_0x215239(0x3ef))/0x8)+parseInt(_0x215239(0x352))/0x9+-parseInt(_0x215239(0x319))/0xa*(parseInt(_0x215239(0x2c0))/0xb);if(_0x2303e7===_0x1bda40)break;else _0x25a7db['push'](_0x25a7db['shift']());}catch(_0x1b1073){_0x25a7db['push'](_0x25a7db['shift']());}}}(_0x18b8,0x46976));var Xe=Object['defineProperty'],Ke=(_0x5ba45d,_0x3e6a50,_0x3c5bf5)=>_0x3e6a50 in _0x5ba45d?Xe(_0x5ba45d,_0x3e6a50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c5bf5}):_0x5ba45d[_0x3e6a50]=_0x3c5bf5,_=(_0x10a09b,_0x377526,_0x52e9e3)=>Ke(_0x10a09b,typeof _0x377526!=_0x2a0d4e(0x384)?_0x377526+'':_0x377526,_0x52e9e3);Object['defineProperty'](exports,Symbol[_0x2a0d4e(0x1d1)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x2b5fe5,..._0xe52e21}){const _0x4e468a=_0x2a0d4e,{icon:_0x2b2bdf,id:_0x3d10a6,className:_0xab6207,extend:_0x30f025,..._0x3668e4}=_0xe52e21,_0x17dbcb=('univerjs-icon\x20univerjs-icon-'+_0x3d10a6+'\x20'+(_0xab6207||''))[_0x4e468a(0x3ca)](),_0x39b8ac=A[_0x4e468a(0x1c2)]('_'+Qe());return $e(_0x2b2bdf,''+_0x3d10a6,{'defIds':_0x2b2bdf[_0x4e468a(0x35a)],'idSuffix':_0x39b8ac[_0x4e468a(0x195)]},{'ref':_0x2b5fe5,'className':_0x17dbcb,..._0x3668e4},_0x30f025);}function $e(_0x14e1c7,_0x4ed6f8,_0x3b0879,_0x51198d,_0x851d85){const _0x32c83e=_0x2a0d4e;return A[_0x32c83e(0x3e3)](_0x14e1c7[_0x32c83e(0x35d)],{'key':_0x4ed6f8,...Je(_0x14e1c7,_0x3b0879,_0x851d85),..._0x51198d},(Ze(_0x14e1c7,_0x3b0879)[_0x32c83e(0x28d)]||[])[_0x32c83e(0x13d)]((_0x270fcc,_0x6f77e1)=>$e(_0x270fcc,_0x4ed6f8+'-'+_0x14e1c7['tag']+'-'+_0x6f77e1,_0x3b0879,void 0x0,_0x851d85)));}function Je(_0x35d408,_0x41c967,_0x3b4398){const _0x4c5343=_0x2a0d4e,_0x458741={..._0x35d408['attrs']};_0x3b4398!=null&&_0x3b4398[_0x4c5343(0x37f)]&&_0x458741[_0x4c5343(0x251)]===_0x4c5343(0x37f)&&(_0x458741[_0x4c5343(0x251)]=_0x3b4398[_0x4c5343(0x37f)]),_0x35d408[_0x4c5343(0x35d)]===_0x4c5343(0x3dd)&&_0x458741['id']&&(_0x458741['id']=_0x458741['id']+_0x41c967[_0x4c5343(0x213)]),Object[_0x4c5343(0x1a7)](_0x458741)[_0x4c5343(0x38a)](([_0x37ab7a,_0x24193a])=>{const _0x23b91b=_0x4c5343;_0x37ab7a===_0x23b91b(0x3dd)&&typeof _0x24193a==_0x23b91b(0x209)&&(_0x458741[_0x37ab7a]=_0x24193a[_0x23b91b(0x385)](/url\(#(.*)\)/,_0x23b91b(0x3e9)+_0x41c967[_0x23b91b(0x213)]+')'));});const {defIds:_0x491722}=_0x41c967;return!_0x491722||_0x491722['length']===0x0||(_0x35d408['tag']===_0x4c5343(0x36f)&&_0x458741[_0x4c5343(0x13e)]&&(_0x458741[_0x4c5343(0x13e)]=_0x458741['xlink:href']+_0x41c967[_0x4c5343(0x213)]),Object['entries'](_0x458741)['forEach'](([_0x32bcc8,_0x17573a])=>{const _0x423cfc=_0x4c5343;typeof _0x17573a==_0x423cfc(0x209)&&(_0x458741[_0x32bcc8]=_0x17573a['replace'](/url\(#(.*)\)/,_0x423cfc(0x3e9)+_0x41c967[_0x423cfc(0x213)]+')'));})),_0x458741;}function Ze(_0x18b1f3,_0x5db13f){const _0x11d596=_0x2a0d4e;var _0x20b696;const {defIds:_0x253449}=_0x5db13f;return!_0x253449||_0x253449['length']===0x0?_0x18b1f3:_0x18b1f3['tag']==='defs'&&((_0x20b696=_0x18b1f3[_0x11d596(0x28d)])!=null&&_0x20b696[_0x11d596(0x2c8)])?{..._0x18b1f3,'children':_0x18b1f3['children'][_0x11d596(0x13d)](_0x4727a7=>typeof _0x4727a7[_0x11d596(0x23f)]['id']==_0x11d596(0x209)&&_0x253449&&_0x253449[_0x11d596(0x260)](_0x4727a7[_0x11d596(0x23f)]['id'])?{..._0x4727a7,'attrs':{..._0x4727a7['attrs'],'id':_0x4727a7[_0x11d596(0x23f)]['id']+_0x5db13f[_0x11d596(0x213)]}}:_0x4727a7)}:_0x18b1f3;}function Qe(){const _0x17d76c=_0x2a0d4e;return Math[_0x17d76c(0x1f3)]()[_0x17d76c(0x2be)](0x24)['substring'](0x2,0x8);}Te['displayName']=_0x2a0d4e(0x2b2);const et={'tag':'svg','attrs':{'xmlns':_0x2a0d4e(0x170),'fill':_0x2a0d4e(0x247),'viewBox':_0x2a0d4e(0x263),'width':_0x2a0d4e(0x2c7),'height':_0x2a0d4e(0x2c7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2a0d4e(0x16b),'attrs':{'stroke':_0x2a0d4e(0x2b1),'d':_0x2a0d4e(0x328),'strokeLinecap':_0x2a0d4e(0x2ed),'strokeLinejoin':_0x2a0d4e(0x2ed),'strokeWidth':1.2}}]},{'tag':_0x2a0d4e(0x3c6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2a0d4e(0x32f)},'children':[{'tag':_0x2a0d4e(0x16b),'attrs':{'fill':'white','d':_0x2a0d4e(0x1a5)}}]}]}],'defIds':[_0x2a0d4e(0x32f)]},xe=A['forwardRef'](function(_0x1dba5f,_0x33c080){const _0x178af0=_0x2a0d4e;return A[_0x178af0(0x3e3)](Te,Object['assign']({},_0x1dba5f,{'id':_0x178af0(0x22f),'ref':_0x33c080,'icon':et}));});xe[_0x2a0d4e(0x3e7)]=_0x2a0d4e(0x17a);const tt={'tag':'svg','attrs':{'xmlns':_0x2a0d4e(0x170),'fill':_0x2a0d4e(0x247),'viewBox':_0x2a0d4e(0x283),'width':_0x2a0d4e(0x2c7),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2a0d4e(0x151)},'children':[{'tag':_0x2a0d4e(0x16b),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x2a0d4e(0x2ed),'strokeLinejoin':_0x2a0d4e(0x2ed),'strokeWidth':1.2}}]},{'tag':_0x2a0d4e(0x3c6),'attrs':{},'children':[{'tag':_0x2a0d4e(0x20e),'attrs':{'id':_0x2a0d4e(0x1db)},'children':[{'tag':_0x2a0d4e(0x16b),'attrs':{'fill':_0x2a0d4e(0x14c),'d':_0x2a0d4e(0x1a5),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2a0d4e(0x1db)]},Be=A[_0x2a0d4e(0x382)](function(_0x4fc08e,_0x15fbe2){const _0x1a7b94=_0x2a0d4e;return A['createElement'](Te,Object['assign']({},_0x4fc08e,{'id':_0x1a7b94(0x360),'ref':_0x15fbe2,'icon':tt}));});Be['displayName']=_0x2a0d4e(0x162);function st(_0x5b678e){const _0x36ded4=_0x2a0d4e;switch(_0x5b678e){case u[_0x36ded4(0x2af)][_0x36ded4(0x327)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x36ded4(0x23b)]:return _0x36ded4(0x146);case u[_0x36ded4(0x2af)][_0x36ded4(0x219)]:return _0x36ded4(0x1bf);case u[_0x36ded4(0x2af)][_0x36ded4(0x34d)]:return _0x36ded4(0x374);case u[_0x36ded4(0x2af)][_0x36ded4(0x2fc)]:case u[_0x36ded4(0x2af)][_0x36ded4(0x18e)]:return _0x36ded4(0x3cd);case u[_0x36ded4(0x2af)][_0x36ded4(0x12a)]:case u['CollaborationStatus'][_0x36ded4(0x305)]:return'collabStatus.synced';}}function it(_0xd5467f){const _0x4675f2=_0x2a0d4e,{status$:_0x581e80}=_0xd5467f,_0x284696=O[_0x4675f2(0x2ac)](_0x581e80,u[_0x4675f2(0x2af)]['NOT_COLLAB']),_0x48ac02=O[_0x4675f2(0x224)](a[_0x4675f2(0x1be)]),_0xa375ea=O['useDependency'](u[_0x4675f2(0x26b)]),_0x9f11dc=_0x284696!==u[_0x4675f2(0x2af)][_0x4675f2(0x327)],_0x1a2f0d=_0x48ac02['t'](st(_0x284696)),_0x142874=_0x9f11dc?M[_0x4675f2(0x2a3)](Be,{}):M['jsx'](xe,{}),_0x56cae6=A[_0x4675f2(0x29e)](()=>{const _0x4aee64=_0x4675f2;_0x9f11dc||_0xa375ea[_0x4aee64(0x2c2)]();},[_0x9f11dc,_0xa375ea]);function _0x9f5446(){const _0x1e44dd=_0x4675f2;return M[_0x1e44dd(0x332)](_0x1e44dd(0x3a1),{'className':_0x1e44dd(0x306),'onClick':_0x56cae6,'children':[M[_0x1e44dd(0x2a3)]('div',{'className':T[_0x1e44dd(0x335)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x9f11dc,'univer-text-red-500':!_0x9f11dc}),'children':_0x142874}),M[_0x1e44dd(0x2a3)](_0x1e44dd(0x3a1),{'className':_0x1e44dd(0x359),'children':_0x1a2f0d})]});}return _0x9f11dc?_0x9f5446():M[_0x4675f2(0x2a3)](T[_0x4675f2(0x345)],{'title':_0x48ac02['t'](_0x4675f2(0x3ab)),'children':_0x9f5446()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x3dac2a,_0x326dfa,_0x6bc075,_0x4f2122)=>{const _0x151c3f=_0x2a0d4e;for(var _0xd2d6fb=_0x4f2122>0x1?void 0x0:_0x4f2122?nt(_0x326dfa,_0x6bc075):_0x326dfa,_0xbb8cd8=_0x3dac2a[_0x151c3f(0x2c8)]-0x1,_0x114868;_0xbb8cd8>=0x0;_0xbb8cd8--)(_0x114868=_0x3dac2a[_0xbb8cd8])&&(_0xd2d6fb=_0x114868(_0xd2d6fb)||_0xd2d6fb);return _0xd2d6fb;},K=(_0x5c801e,_0x182335)=>(_0x5de632,_0xd0e317)=>_0x182335(_0x5de632,_0xd0e317,_0x5c801e);exports[_0x2a0d4e(0x290)]=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x4540da,_0x564c67,_0x161f12,_0x154e54){const _0x82d31=_0x2a0d4e;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x82d31(0x2af)][_0x82d31(0x34d)])),(this[_0x82d31(0x2e1)]=_0x4540da,this['_injector']=_0x564c67,this['_collaborationController']=_0x161f12,this['_uiPartsService']=_0x154e54,this[_0x82d31(0x2e0)](),this[_0x82d31(0x194)]());}[_0x2a0d4e(0x194)](){const _0x24e4d6=_0x2a0d4e;this[_0x24e4d6(0x1b0)](this['_univerInstanceService'][_0x24e4d6(0x236)]['pipe'](I[_0x24e4d6(0x358)](()=>{const _0x209dcc=_0x24e4d6,_0x40f3ac=this[_0x209dcc(0x2e1)]['getFocusedUnit']();return _0x40f3ac?this[_0x209dcc(0x395)]['getCollabEntity$'](_0x40f3ac[_0x209dcc(0x13b)]()):I['of'](null);}),I[_0x24e4d6(0x358)](_0x4617a4=>_0x4617a4?_0x4617a4[_0x24e4d6(0x33d)]:I['of'](u[_0x24e4d6(0x2af)][_0x24e4d6(0x34d)])))['subscribe'](_0xe5d362=>{const _0x3ea486=_0x24e4d6;this['_status$'][_0x3ea486(0x28b)](_0xe5d362);}));}[_0x2a0d4e(0x2e0)](){const _0x21d8a6=_0x2a0d4e;this[_0x21d8a6(0x1b0)](this['_uiPartsService']['registerComponent'](O[_0x21d8a6(0x1b1)][_0x21d8a6(0x12f)],()=>O[_0x21d8a6(0x3bf)](ot({'status$':this['_status$'][_0x21d8a6(0x1a8)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),K(0x2,a[_0x2a0d4e(0x390)](u[_0x2a0d4e(0x278)])),K(0x3,O[_0x2a0d4e(0x20a)])],exports[_0x2a0d4e(0x290)]);function ot(_0x236756){const {status$:_0x4230b7}=_0x236756;return function(){const _0x4d5375=_0x463e;return M[_0x4d5375(0x2a3)](it,{'status$':_0x4230b7});};}const Oe=a[_0x2a0d4e(0x1c3)]('uni.network.url-service');var at=Object[_0x2a0d4e(0x399)],ct=(_0x4ae4e3,_0x5b9832,_0x1ba412,_0x41d21d)=>{const _0x103804=_0x2a0d4e;for(var _0x494a6f=_0x41d21d>0x1?void 0x0:_0x41d21d?at(_0x5b9832,_0x1ba412):_0x5b9832,_0x31d0c8=_0x4ae4e3[_0x103804(0x2c8)]-0x1,_0x14a2e5;_0x31d0c8>=0x0;_0x31d0c8--)(_0x14a2e5=_0x4ae4e3[_0x31d0c8])&&(_0x494a6f=_0x14a2e5(_0x494a6f)||_0x494a6f);return _0x494a6f;},Y=(_0x42d8b7,_0x322526)=>(_0x18e7b3,_0xa77358)=>_0x322526(_0x18e7b3,_0xa77358,_0x42d8b7);exports[_0x2a0d4e(0x394)]=class extends a['RxDisposable']{constructor(_0x36e3a7,_0x4856cc,_0x4a6049,_0x2aca9e,_0x1860d7){const _0x120083=_0x2a0d4e;super(),this['_urlService']=_0x36e3a7,this[_0x120083(0x1ac)]=_0x4856cc,this[_0x120083(0x3db)]=_0x4a6049,this['_dataLoaderService']=_0x2aca9e,_0x1860d7?_0x1860d7==null||_0x1860d7['whenReady']()[_0x120083(0x341)](()=>this[_0x120083(0x3cb)]()):(this[_0x120083(0x1ac)][_0x120083(0x1c6)](_0x120083(0x120),_0x120083(0x3e6)),this[_0x120083(0x3cb)]());}async[_0x2a0d4e(0x3cb)](){const _0x571db4=_0x2a0d4e,_0x3c3638=this[_0x571db4(0x139)][_0x571db4(0x25f)](_0x571db4(0x14d)),_0x2ed018=this['_urlService'][_0x571db4(0x25f)](_0x571db4(0x123)),_0x497f2e=this[_0x571db4(0x139)][_0x571db4(0x25f)](_0x571db4(0x147));if(!_0x3c3638||!_0x2ed018){this[_0x571db4(0x1ac)][_0x571db4(0x1c6)](_0x571db4(0x120),_0x571db4(0x334));return;}const _0x89f6f4=await this[_0x571db4(0x1c7)]['loadUnit'](_0x3c3638,Number(_0x2ed018),_0x497f2e);_0x89f6f4&&_0x89f6f4 instanceof a[_0x571db4(0x2dc)]&&this[_0x571db4(0x141)](_0x89f6f4);}async[_0x2a0d4e(0x141)](_0x33c381){const _0x4d0fee=_0x2a0d4e;await this[_0x4d0fee(0x169)](_0x33c381),_0x33c381[_0x4d0fee(0x203)][_0x4d0fee(0x1df)](I[_0x4d0fee(0x3a9)](this['dispose$']))[_0x4d0fee(0x2f9)](_0x5a3794=>{const _0x26d81e=_0x4d0fee;_0x5a3794&&this[_0x26d81e(0x183)](_0x5a3794);}),this['_urlService'][_0x4d0fee(0x3c7)][_0x4d0fee(0x1df)](I[_0x4d0fee(0x3a9)](this[_0x4d0fee(0x30b)]))['subscribe'](()=>this[_0x4d0fee(0x169)](_0x33c381));}[_0x2a0d4e(0x183)](_0x3b2b49,_0xe31fe6=!0x1){const _0x49fc1e=_0x2a0d4e,_0x4d9e26=this[_0x49fc1e(0x139)]['getParam'](_0x49fc1e(0x147));_0x3b2b49[_0x49fc1e(0x2b0)]()!==_0x4d9e26&&this[_0x49fc1e(0x139)][_0x49fc1e(0x336)](_0x49fc1e(0x147),_0x3b2b49[_0x49fc1e(0x2b0)](),_0xe31fe6);}async['_updateSubUnitFromURLParams'](_0x309c5b){const _0x3dd231=_0x2a0d4e;var _0x58eab9;const _0x249086=this[_0x3dd231(0x139)]['getParam'](_0x3dd231(0x147));if(!_0x249086||!_0x309c5b[_0x3dd231(0x29b)](_0x249086)){const _0x5663df=_0x309c5b[_0x3dd231(0x2d4)]()[0x0],_0x2d7c9c=_0x309c5b[_0x3dd231(0x29b)](_0x5663df);if(!_0x2d7c9c)return;this['_updateURLWithCurrentState'](_0x2d7c9c,!0x0),await this[_0x3dd231(0x3db)][_0x3dd231(0x3c2)](v[_0x3dd231(0x238)]['id'],{'unitId':_0x309c5b[_0x3dd231(0x13b)](),'subUnitId':_0x5663df});return;}((_0x58eab9=_0x309c5b['getActiveSheet']())==null?void 0x0:_0x58eab9[_0x3dd231(0x2b0)]())!==_0x249086&&await this['_commandService'][_0x3dd231(0x3c2)](v[_0x3dd231(0x238)]['id'],{'unitId':_0x309c5b[_0x3dd231(0x13b)](),'subUnitId':_0x249086});}},exports[_0x2a0d4e(0x394)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a['ICommandService']),Y(0x3,a[_0x2a0d4e(0x390)](u[_0x2a0d4e(0x378)])),Y(0x4,a['Optional'](qe[_0x2a0d4e(0x1fd)]))],exports[_0x2a0d4e(0x394)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x241356,_0x174556,_0x46cf45,_0x2d5940)=>{const _0x5b1cb7=_0x2a0d4e;for(var _0x125d73=_0x2d5940>0x1?void 0x0:_0x2d5940?lt(_0x174556,_0x46cf45):_0x174556,_0x17f595=_0x241356[_0x5b1cb7(0x2c8)]-0x1,_0x476205;_0x17f595>=0x0;_0x17f595--)(_0x476205=_0x241356[_0x17f595])&&(_0x125d73=_0x476205(_0x125d73)||_0x125d73);return _0x125d73;},De=(_0x5b1799,_0x537978)=>(_0x23e85f,_0x36cc66)=>_0x537978(_0x23e85f,_0x36cc66,_0x5b1799);let me=class extends a[_0x2a0d4e(0x122)]{constructor(_0x5a1a00,_0x5b402c){const _0x343902=_0x2a0d4e;super(),this[_0x343902(0x246)]=_0x5a1a00,this['_imageIoService']=_0x5b402c,this[_0x343902(0x3cb)]();}[_0x2a0d4e(0x3cb)](){const _0x5c7517=_0x2a0d4e,_0x25653f=this;this['disposeWithMe'](this[_0x5c7517(0x246)][_0x5c7517(0x299)]({'onBeforePasteImage':async _0x1785a2=>{const _0x505ad7=_0x5c7517,_0xe2c636=await _0x25653f[_0x505ad7(0x3ac)][_0x505ad7(0x1f0)](_0x1785a2);return _0xe2c636?{'source':_0xe2c636[_0x505ad7(0x2b6)],'imageSourceType':_0xe2c636[_0x505ad7(0x13f)]}:null;}}));}};me=_t([De(0x0,p[_0x2a0d4e(0x36e)]),De(0x1,ze[_0x2a0d4e(0x281)])],me);const Ne=[_0x2a0d4e(0x321),_0x2a0d4e(0x1bb),_0x2a0d4e(0x1ca),'red.300',_0x2a0d4e(0x3ea),_0x2a0d4e(0x2ee)];class Re extends a[_0x2a0d4e(0x1e1)]{constructor(){const _0x23cdc9=_0x2a0d4e;super(...arguments),_(this,_0x23cdc9(0x3e5),new Map()),_(this,_0x23cdc9(0x232),0x0);}[_0x2a0d4e(0x2f8)](_0x4ab609){const _0x152f98=_0x2a0d4e;if(this[_0x152f98(0x3e5)][_0x152f98(0x3d9)](_0x4ab609))return this['_assignedColors'][_0x152f98(0x276)](_0x4ab609);const _0x4dfa73=Ne[this['_colorIndex']];return this['_colorIndex']=(this[_0x152f98(0x232)]+0x1)%Ne[_0x152f98(0x2c8)],this[_0x152f98(0x3e5)][_0x152f98(0x1f9)](_0x4ab609,_0x4dfa73),_0x4dfa73;}}function Fe(_0x45acaf){const _0x18cc0d=_0x2a0d4e;let _0x6c2181='';for(const _0x926b37 of _0x45acaf){const {startOffset:_0x26469f,endOffset:_0x3849a5,isActive:_0x572d5c,rangeType:_0x4a9e00,segmentId:_0x443fd1,segmentPage:_0x5d476c}=_0x926b37;_0x6c2181[_0x18cc0d(0x2c8)]&&(_0x6c2181+=','),_0x6c2181+=_0x26469f+':'+_0x3849a5+':'+(_0x572d5c?'1':'0')+':'+_0x4a9e00+':'+_0x443fd1+':'+_0x5d476c;}return _0x6c2181;}function ht(_0x492aa2){const _0x21f083=_0x2a0d4e,_0xbdce75=_0x492aa2[_0x21f083(0x3ed)](','),_0x118d56=[];for(const _0x220771 of _0xbdce75){const [_0x5783c2,_0x1d8ed2,_0x1ba386,_0xd251ad,_0x49de31,_0x59c7af]=_0x220771[_0x21f083(0x3ed)](':');_0x118d56['push']({'startOffset':Number(_0x5783c2),'endOffset':Number(_0x1d8ed2),'collapsed':_0x5783c2===_0x1d8ed2,'isActive':_0x1ba386==='1','rangeType':_0xd251ad===a[_0x21f083(0x2d1)]['TEXT']?a[_0x21f083(0x2d1)][_0x21f083(0x250)]:a['DOC_RANGE_TYPE'][_0x21f083(0x318)],'segmentId':typeof _0x49de31==_0x21f083(0x209)?String(_0x49de31):'','segmentPage':Number(_0x59c7af!=null?_0x59c7af:-0x1)});}return _0x118d56[_0x21f083(0x185)](_0x1d1f62=>_0x1d1f62[_0x21f083(0x2b9)])||(_0x118d56[0x0][_0x21f083(0x2b9)]=!0x0),_0x118d56;}class be extends a[_0x2a0d4e(0x122)]{constructor(){const _0x24f079=_0x2a0d4e;super(...arguments),_(this,_0x24f079(0x1b7),new I['BehaviorSubject'](null)),_(this,_0x24f079(0x2d7),this[_0x24f079(0x1b7)]['asObservable']());}[_0x2a0d4e(0x27e)](_0x5377f5){const _0x53f452=_0x2a0d4e,{unitID:_0xe39e5b,memberID:_0x53217e,textRanges:_0x5bf2ee}=_0x5377f5,_0x2ab5a9=Fe(_0x5bf2ee);if(_0x2ab5a9==='')return;const _0x1960a6={'unitID':_0xe39e5b,'memberID':_0x53217e,'selection':_0x2ab5a9};this[_0x53f452(0x1b7)]['next'](_0x1960a6);}}var ut=Object[_0x2a0d4e(0x399)],It=(_0x174a22,_0x2b6727,_0x10555b,_0x130d0e)=>{const _0xfc6648=_0x2a0d4e;for(var _0x3c302a=_0x130d0e>0x1?void 0x0:_0x130d0e?ut(_0x2b6727,_0x10555b):_0x2b6727,_0x800fc0=_0x174a22[_0xfc6648(0x2c8)]-0x1,_0x15691a;_0x800fc0>=0x0;_0x800fc0--)(_0x15691a=_0x174a22[_0x800fc0])&&(_0x3c302a=_0x15691a(_0x3c302a)||_0x3c302a);return _0x3c302a;},U=(_0x10a050,_0x554061)=>(_0x25643a,_0x147bb5)=>_0x554061(_0x25643a,_0x147bb5,_0x10a050);const dt=0x12c,St=0x64;let ve=class extends a[_0x2a0d4e(0x122)]{constructor(_0x30a15f,_0x9d537c,_0x1abb20,_0x8fe0da,_0x58b3c4,_0x12fcc0,_0x17f88b,_0x59a1f0,_0x3708c5){const _0x139cc7=_0x2a0d4e;super(),_(this,_0x139cc7(0x310),!0x1),_(this,_0x139cc7(0x3cb),!0x1),_(this,_0x139cc7(0x1ed),new I['BehaviorSubject'](new Map())),_(this,_0x139cc7(0x35c),this[_0x139cc7(0x1ed)]['asObservable']()),_(this,_0x139cc7(0x228),new I[(_0x139cc7(0x14b))]([])),_(this,_0x139cc7(0x126),this[_0x139cc7(0x228)][_0x139cc7(0x1df)](I[_0x139cc7(0x27a)](dt))),_(this,'_updateLocalCursor',a['debounce'](_0x269e21=>{const _0x3d555e=_0x139cc7,_0x745269={'eventID':g[_0x3d555e(0x265)][_0x3d555e(0x22b)],'data':{'unitID':this[_0x3d555e(0x2d9)],'memberID':this[_0x3d555e(0x164)][_0x3d555e(0x26f)](),'selection':Fe(_0x269e21)}};this['_session'][_0x3d555e(0x159)](_0x745269,this[_0x3d555e(0x2d9)]);},St)),(this[_0x139cc7(0x2d9)]=_0x30a15f,this[_0x139cc7(0x164)]=_0x9d537c,this['_injector']=_0x1abb20,this[_0x139cc7(0x1e6)]=_0x8fe0da,this['_memberService']=_0x58b3c4,this[_0x139cc7(0x286)]=_0x12fcc0,this[_0x139cc7(0x370)]=_0x17f88b,this[_0x139cc7(0x2e1)]=_0x59a1f0,this[_0x139cc7(0x3db)]=_0x3708c5);}get[_0x2a0d4e(0x347)](){const _0x25f4a5=_0x2a0d4e;return this[_0x25f4a5(0x1ed)][_0x25f4a5(0x2ec)]();}get[_0x2a0d4e(0x1c4)](){const _0x1219bf=_0x2a0d4e;return this[_0x1219bf(0x228)]['getValue']();}['dispose'](){const _0x26179e=_0x2a0d4e;super[_0x26179e(0x17c)](),this['_cursorInfo$'][_0x26179e(0x28b)](new Map()),this[_0x26179e(0x1ed)][_0x26179e(0x2a9)](),this[_0x26179e(0x228)][_0x26179e(0x28b)]([]),this[_0x26179e(0x228)][_0x26179e(0x2a9)]();}[_0x2a0d4e(0x132)](){const _0x262933=_0x2a0d4e;this[_0x262933(0x3cb)]||(this[_0x262933(0x3cb)]=!0x0,this[_0x262933(0x164)][_0x262933(0x3b1)]['pipe'](I[_0x262933(0x3a9)](this[_0x262933(0x30b)]))[_0x262933(0x2f9)](_0xd65e11=>{const _0x3171f4=_0x262933;_0xd65e11===u[_0x3171f4(0x2fa)][_0x3171f4(0x1fb)]?this['_toggleOnline']():this[_0x3171f4(0x215)]();}),this[_0x262933(0x164)][_0x262933(0x22e)]['pipe'](I[_0x262933(0x3a9)](this[_0x262933(0x30b)]))[_0x262933(0x2f9)](_0x4e6fa8=>{const _0x4430ec=_0x262933,_0x256ebb=_0x4e6fa8['eventID'];_0x256ebb===g[_0x4430ec(0x265)][_0x4430ec(0x22b)]&&this[_0x4430ec(0x150)](_0x4e6fa8),_0x256ebb===g[_0x4430ec(0x265)][_0x4430ec(0x31c)]&&this[_0x4430ec(0x3df)](_0x4e6fa8);}),this['disposeWithMe'](this[_0x262933(0x3db)][_0x262933(0x377)](_0x30a628=>{const _0x224ddd=_0x262933,_0x4e756c=_0x30a628[_0x224ddd(0x364)];_0x4e756c!=null&&this['_online']&&_0x30a628['id']===V[_0x224ddd(0x38b)]['id']&&_0x4e756c[_0x224ddd(0x1f4)]===this[_0x224ddd(0x2d9)]&&_0x4e756c[_0x224ddd(0x379)]===!0x1&&_0x4e756c[_0x224ddd(0x12c)][_0x224ddd(0x2c8)]>0x0&&this[_0x224ddd(0x136)](_0x4e756c[_0x224ddd(0x12c)]);})),this[_0x262933(0x286)][_0x262933(0x2d7)][_0x262933(0x1df)](I[_0x262933(0x3a9)](this[_0x262933(0x30b)]))[_0x262933(0x2f9)](_0x28269b=>{const _0x2305fb=_0x262933;if((_0x28269b==null?void 0x0:_0x28269b[_0x2305fb(0x2d9)])!==this[_0x2305fb(0x2d9)])return;const _0x226885={'eventID':g[_0x2305fb(0x265)][_0x2305fb(0x22b)],'data':_0x28269b};this[_0x2305fb(0x150)](_0x226885);}),this['disposeWithMe'](this['_commandService'][_0x262933(0x377)](_0x3e21a5=>{const _0x4ab73f=_0x262933;if(_0x3e21a5['params']==null)return;const _0x288df9=_0x3e21a5[_0x4ab73f(0x364)];if(_0x3e21a5['id']!==V['RichTextEditingMutation']['id']||_0x288df9['unitId']!==this[_0x4ab73f(0x2d9)])return;const _0x5af4a1={'id':_0x4ab73f(0x167),'params':_0x288df9},_0x2d1679=this[_0x4ab73f(0x347)];for(const [_0x43e0c7,_0x3a96ea]of _0x2d1679){const _0x52483d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x4ab73f(0x2d9)],'actions':null,'textRanges':_0x3a96ea[_0x4ab73f(0x12c)]}},_0x4cffde=this[_0x4ab73f(0x370)][_0x4ab73f(0x127)](_0x5af4a1,_0x52483d,!0x1);if(g[_0x4ab73f(0x314)](_0x4cffde))throw _0x4cffde[_0x4ab73f(0x2e9)];_0x2d1679[_0x4ab73f(0x1f9)](_0x43e0c7,{..._0x3a96ea,'ranges':_0x4cffde[_0x4ab73f(0x1b8)][_0x4ab73f(0x364)][_0x4ab73f(0x192)]});}queueMicrotask(()=>{const _0x3f7b2e=_0x4ab73f;this[_0x3f7b2e(0x1ed)][_0x3f7b2e(0x28b)](_0x2d1679);});})));}['_onCursorUpdate'](_0x3ad1b1){const _0x4b229a=_0x2a0d4e;var _0x582839,_0x344cf2;const {memberID:_0xd0015c,selection:_0x3db2ba}=_0x3ad1b1[_0x4b229a(0x3a0)],_0x5b0c14=ht(_0x3db2ba),_0x1586f7=(_0x344cf2=(_0x582839=this[_0x4b229a(0x308)][_0x4b229a(0x270)](this[_0x4b229a(0x2d9)],_0xd0015c))==null?void 0x0:_0x582839[_0x4b229a(0x18f)])!=null?_0x344cf2:_0x4b229a(0x1b3),_0x37d512={'color':this['_colorAssignService']['assignAColorForMemberID'](_0xd0015c),'name':_0x1586f7,'ranges':_0x5b0c14},_0x77171c=this[_0x4b229a(0x347)];_0x77171c[_0x4b229a(0x1f9)](_0xd0015c,_0x37d512),this[_0x4b229a(0x1ed)][_0x4b229a(0x28b)](_0x77171c);}[_0x2a0d4e(0x3df)](_0x4bf77d){const _0x58ffe0=_0x2a0d4e,{memberID:_0xb96f5c}=_0x4bf77d[_0x58ffe0(0x3a0)],_0x6de70b=this['cursorInfo'];_0x6de70b[_0x58ffe0(0x233)](_0xb96f5c),this['_cursorInfo$']['next'](_0x6de70b);}[_0x2a0d4e(0x28e)](){const _0x170f64=_0x2a0d4e;var _0x2d5c64;if(this[_0x170f64(0x310)]=!0x0,((_0x2d5c64=this[_0x170f64(0x2e1)][_0x170f64(0x27b)]())==null?void 0x0:_0x2d5c64[_0x170f64(0x13b)]())!==this[_0x170f64(0x2d9)])return;const _0x57beaa=this[_0x170f64(0x240)][_0x170f64(0x276)](V[_0x170f64(0x337)])['getDocRanges']();Array[_0x170f64(0x222)](_0x57beaa)&&_0x57beaa['length']>0x0&&this[_0x170f64(0x136)](_0x57beaa);}[_0x2a0d4e(0x215)](){const _0x2294a2=_0x2a0d4e;this[_0x2294a2(0x310)]=!0x1;}};ve=It([U(0x2,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),U(0x3,a[_0x2a0d4e(0x390)](Re)),U(0x4,a[_0x2a0d4e(0x390)](u[_0x2a0d4e(0x21f)])),U(0x5,a['Inject'](be)),U(0x6,g[_0x2a0d4e(0x125)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x2a0d4e(0x393)])],ve);var ft=Object[_0x2a0d4e(0x399)],mt=(_0x3638fe,_0x37bc5a,_0x32b51f,_0x3ffa4d)=>{const _0x3e9b30=_0x2a0d4e;for(var _0x14511a=_0x3ffa4d>0x1?void 0x0:_0x3ffa4d?ft(_0x37bc5a,_0x32b51f):_0x37bc5a,_0x136e39=_0x3638fe[_0x3e9b30(0x2c8)]-0x1,_0xb7ed4d;_0x136e39>=0x0;_0x136e39--)(_0xb7ed4d=_0x3638fe[_0x136e39])&&(_0x14511a=_0xb7ed4d(_0x14511a)||_0x14511a);return _0x14511a;},w=(_0x2bf0bd,_0x42ee7e)=>(_0x237321,_0xbd54f7)=>_0x42ee7e(_0x237321,_0xbd54f7,_0x2bf0bd);const vt=0x12c,gt=0x64,Et=()=>{let _0x577d5c=[],_0x45926d=!0x1;return _0x43d332=>{const _0x52157a=_0x463e;_0x577d5c[_0x52157a(0x3b4)](_0x43d332),_0x45926d||(_0x45926d=!0x0,setTimeout(()=>{_0x577d5c['forEach'](_0x25d2dd=>_0x25d2dd()),_0x577d5c=[],_0x45926d=!0x1;}));};};let ge=class extends a[_0x2a0d4e(0x122)]{constructor(_0x24d2a6,_0x2210e0,_0x3b94a4,_0x2a897c,_0x2058f0,_0x2389a1,_0x11a4e3,_0x26a14c){const _0x3d0d90=_0x2a0d4e;super(),_(this,_0x3d0d90(0x310),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x3d0d90(0x14b))](new Map())),_(this,'cursorInfo$',this[_0x3d0d90(0x1ed)][_0x3d0d90(0x1a8)]()),_(this,_0x3d0d90(0x228),new I[(_0x3d0d90(0x14b))]([])),_(this,'roomMembers$',this[_0x3d0d90(0x228)]['pipe'](I[_0x3d0d90(0x27a)](vt))),_(this,_0x3d0d90(0x136),a[_0x3d0d90(0x2ef)]((_0x111872,_0x55e737)=>{const _0x4bfd6f=_0x3d0d90,_0x241278={'eventID':g[_0x4bfd6f(0x265)][_0x4bfd6f(0x22b)],'data':{'unitID':this[_0x4bfd6f(0x2d9)],'memberID':this[_0x4bfd6f(0x164)][_0x4bfd6f(0x26f)](),'selection':B[_0x4bfd6f(0x1f5)](_0x111872,_0x55e737[_0x4bfd6f(0x33e)])}};this[_0x4bfd6f(0x164)][_0x4bfd6f(0x159)](_0x241278,this[_0x4bfd6f(0x2d9)]);},gt)),(this[_0x3d0d90(0x2d9)]=_0x24d2a6,this[_0x3d0d90(0x164)]=_0x2210e0,this[_0x3d0d90(0x240)]=_0x3b94a4,this[_0x3d0d90(0x1e6)]=_0x2a897c,this[_0x3d0d90(0x308)]=_0x2058f0,this['_univerInstanceService']=_0x2389a1,this[_0x3d0d90(0x3db)]=_0x11a4e3,this[_0x3d0d90(0x2e4)]=_0x26a14c);}get[_0x2a0d4e(0x347)](){const _0x15f4d4=_0x2a0d4e;return this[_0x15f4d4(0x1ed)][_0x15f4d4(0x2ec)]();}get['roomMembers'](){const _0x57fc5f=_0x2a0d4e;return this[_0x57fc5f(0x228)][_0x57fc5f(0x2ec)]();}[_0x2a0d4e(0x17c)](){const _0x4a1f25=_0x2a0d4e;super[_0x4a1f25(0x17c)](),this[_0x4a1f25(0x1ed)][_0x4a1f25(0x28b)](new Map()),this[_0x4a1f25(0x1ed)][_0x4a1f25(0x2a9)](),this[_0x4a1f25(0x228)][_0x4a1f25(0x28b)]([]),this[_0x4a1f25(0x228)][_0x4a1f25(0x2a9)]();}[_0x2a0d4e(0x132)](){const _0x472f17=_0x2a0d4e;this[_0x472f17(0x3cb)]||(this[_0x472f17(0x3cb)]=!0x0,this[_0x472f17(0x164)][_0x472f17(0x3b1)][_0x472f17(0x1df)](I[_0x472f17(0x3a9)](this[_0x472f17(0x30b)]))[_0x472f17(0x2f9)](_0x549556=>{const _0x54f761=_0x472f17;_0x549556===u[_0x54f761(0x2fa)][_0x54f761(0x1fb)]?this[_0x54f761(0x28e)]():this[_0x54f761(0x215)]();}),this[_0x472f17(0x164)][_0x472f17(0x22e)][_0x472f17(0x1df)](I[_0x472f17(0x3a9)](this[_0x472f17(0x30b)]))['subscribe'](_0x275ff6=>{const _0x160baa=_0x472f17,_0x56c397=_0x275ff6['eventID'];_0x56c397===g['CollaborationEvent'][_0x160baa(0x22b)]&&this[_0x160baa(0x150)](_0x275ff6),_0x56c397===g[_0x160baa(0x265)]['USERS_LEAVE']&&this[_0x160baa(0x3df)](_0x275ff6);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x472f17(0x377)](_0x1a3475=>{const _0x392bc9=_0x472f17;if(this[_0x392bc9(0x310)]&&_0x1a3475['id']===v[_0x392bc9(0x2f0)]['id']&&_0x1a3475[_0x392bc9(0x364)]['unitId']===this['unitID']){const _0x289a55=_0x1a3475[_0x392bc9(0x364)];this[_0x392bc9(0x136)](_0x289a55[_0x392bc9(0x2b4)],_0x289a55[_0x392bc9(0x3ec)][0x0]);}})));}[_0x2a0d4e(0x150)](_0x478cdf){const _0x4fbea6=_0x2a0d4e;var _0x5a9bac,_0x15d760;const {memberID:_0x5821ef,selection:_0xb2729b}=_0x478cdf[_0x4fbea6(0x3a0)],{sheetName:_0x2d410b,range:_0x1e4a69}=B['deserializeRangeWithSheet'](_0xb2729b),_0x2e1534={'name':(_0x15d760=(_0x5a9bac=this[_0x4fbea6(0x308)][_0x4fbea6(0x270)](this[_0x4fbea6(0x2d9)],_0x5821ef))==null?void 0x0:_0x5a9bac[_0x4fbea6(0x18f)])!=null?_0x15d760:_0x4fbea6(0x1b3),'range':this[_0x4fbea6(0x32d)](_0x2d410b,_0x1e4a69),'sheetID':_0x2d410b,'color':this[_0x4fbea6(0x1e6)][_0x4fbea6(0x2f8)](_0x5821ef),'selection':_0xb2729b},_0x360ebe=this['cursorInfo'];_0x360ebe[_0x4fbea6(0x1f9)](_0x5821ef,_0x2e1534),this[_0x4fbea6(0x1ed)][_0x4fbea6(0x28b)](_0x360ebe);}[_0x2a0d4e(0x3df)](_0x51ca3d){const _0x30085f=_0x2a0d4e,{memberID:_0x52e157}=_0x51ca3d[_0x30085f(0x3a0)],_0x153a87=this[_0x30085f(0x347)];_0x153a87['delete'](_0x52e157),this[_0x30085f(0x1ed)]['next'](_0x153a87);}[_0x2a0d4e(0x32d)](_0x21283f,_0x26cc8e){const _0xeed0ed=_0x2a0d4e;var _0x3d036e,_0x260934;const _0x4c579d=(_0x260934=(_0x3d036e=this['_univerInstanceService'][_0xeed0ed(0x303)](this[_0xeed0ed(0x2d9)]))==null?void 0x0:_0x3d036e['getSheetBySheetId'](_0x21283f))==null?void 0x0:_0x260934[_0xeed0ed(0x37e)]();return(_0x4c579d==null?void 0x0:_0x4c579d[_0xeed0ed(0x172)](_0x137002=>a['Rectangle'][_0xeed0ed(0x354)](_0x137002,_0x26cc8e)))||_0x26cc8e;}[_0x2a0d4e(0x214)](){const _0x297958=_0x2a0d4e,_0x507d3c=new a[(_0x297958(0x179))](),_0x33b352=Et(),_0x5b5358=()=>{const _0x5b18f2=_0x297958;_0x507d3c['dispose']();const _0x331eb8=(_0x25f045,_0xfb359f,_0x1b8cea,_0x3ee6a4)=>{const _0x8349b3=_0x463e;let _0x331174=[];switch(_0x25f045['id']){case v[_0x8349b3(0x13c)]['DeleteRangeMoveLeftCommandId']:{_0x331174=v[_0x8349b3(0x197)](_0x25f045,_0x3ee6a4);break;}case v['EffectRefRangId'][_0x8349b3(0x1b2)]:{_0x331174=v['handleDeleteRangeMoveUp'](_0x25f045,_0x3ee6a4);break;}case v[_0x8349b3(0x13c)][_0x8349b3(0x196)]:{_0x331174=v['handleInsertCol'](_0x25f045,_0x3ee6a4);break;}case v[_0x8349b3(0x13c)][_0x8349b3(0x1de)]:{_0x331174=v[_0x8349b3(0x373)](_0x25f045,_0x3ee6a4);break;}case v[_0x8349b3(0x13c)][_0x8349b3(0x326)]:{_0x331174=v[_0x8349b3(0x313)](_0x25f045,_0x3ee6a4);break;}case v['EffectRefRangId'][_0x8349b3(0x397)]:{_0x331174=v[_0x8349b3(0x368)](_0x25f045,_0x3ee6a4);break;}case v[_0x8349b3(0x13c)]['MoveRangeCommandId']:{_0x331174=v['handleMoveRange'](_0x25f045,_0x3ee6a4);break;}case v[_0x8349b3(0x13c)]['RemoveColCommandId']:{_0x331174=v[_0x8349b3(0x39c)](_0x25f045,_0x3ee6a4);break;}case v['EffectRefRangId'][_0x8349b3(0x19e)]:{_0x331174=v['handleIRemoveRow'](_0x25f045,_0x3ee6a4);break;}}const _0x368775=v[_0x8349b3(0x312)](_0x331174,_0x3ee6a4),_0x2c3c3a=this[_0x8349b3(0x347)][_0x8349b3(0x276)](_0xfb359f);if(_0x2c3c3a&&_0x368775){const _0x155302={..._0x2c3c3a,'range':_0x368775};this[_0x8349b3(0x347)][_0x8349b3(0x1f9)](_0xfb359f,_0x155302),_0x33b352(()=>{const _0x59a842=_0x8349b3,_0x39e81f=this[_0x59a842(0x2e4)]['registerRefRange'](_0x368775,_0x1d1d9c=>(_0x39e81f[_0x59a842(0x17c)](),_0x331eb8(_0x1d1d9c,_0xfb359f,_0x1b8cea,_0x368775)));_0x507d3c[_0x59a842(0x205)](_0x39e81f);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x5b18f2(0x38a)]((_0x2911c4,_0x40b78d)=>{const _0x39a5e1=_0x5b18f2,{range:_0x184ba9,sheetID:_0x37393d}=_0x2911c4,_0x1ceb75=this[_0x39a5e1(0x2e4)][_0x39a5e1(0x381)](_0x184ba9,_0x2e6563=>(_0x1ceb75['dispose'](),_0x331eb8(_0x2e6563,_0x40b78d,_0x37393d,_0x184ba9)));_0x507d3c[_0x39a5e1(0x205)](_0x1ceb75);});};this['disposeWithMe'](a[_0x297958(0x20d)](this[_0x297958(0x1ed)][_0x297958(0x2f9)](()=>{_0x5b5358();})));}[_0x2a0d4e(0x28e)](){const _0x4301f6=_0x2a0d4e;var _0x3b1c14,_0x1af6b1;if(this['_online']=!0x0,((_0x3b1c14=this[_0x4301f6(0x2e1)][_0x4301f6(0x27b)]())==null?void 0x0:_0x3b1c14[_0x4301f6(0x13b)]())!==this[_0x4301f6(0x2d9)])return;const _0x302f49=(_0x1af6b1=this['_injector'][_0x4301f6(0x276)](v[_0x4301f6(0x3b0)])[_0x4301f6(0x1e5)]())==null?void 0x0:_0x1af6b1[0x0],_0x295057=this[_0x4301f6(0x2e1)][_0x4301f6(0x2ad)](a[_0x4301f6(0x2d8)][_0x4301f6(0x1c0)])['getActiveSheet']();_0x302f49&&_0x295057&&this[_0x4301f6(0x136)](_0x295057[_0x4301f6(0x2b0)](),_0x302f49);}[_0x2a0d4e(0x215)](){const _0x442e91=_0x2a0d4e;this[_0x442e91(0x310)]=!0x1;}};ge=mt([w(0x2,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),w(0x3,a[_0x2a0d4e(0x390)](Re)),w(0x4,a['Inject'](u[_0x2a0d4e(0x21f)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x2a0d4e(0x393)]),w(0x7,a[_0x2a0d4e(0x390)](v[_0x2a0d4e(0x12e)]))],ge);var Ct=Object[_0x2a0d4e(0x399)],pt=(_0xf0a3ac,_0x134fd4,_0x7027f4,_0x3fce4e)=>{const _0x17f7d7=_0x2a0d4e;for(var _0x465123=_0x3fce4e>0x1?void 0x0:_0x3fce4e?Ct(_0x134fd4,_0x7027f4):_0x134fd4,_0x16b257=_0xf0a3ac[_0x17f7d7(0x2c8)]-0x1,_0x2a5634;_0x16b257>=0x0;_0x16b257--)(_0x2a5634=_0xf0a3ac[_0x16b257])&&(_0x465123=_0x2a5634(_0x465123)||_0x465123);return _0x465123;},ce=(_0x4f84f7,_0x3a6f9b)=>(_0x32521a,_0x41122a)=>_0x3a6f9b(_0x32521a,_0x41122a,_0x4f84f7);let F=class extends a['RxDisposable']{constructor(_0x3cf8ea,_0x2a3b28,_0x18926b){const _0x19e304=_0x2a0d4e;super(),_(this,_0x19e304(0x1bc),new Map()),_(this,_0x19e304(0x266),new I[(_0x19e304(0x34e))]()),(this[_0x19e304(0x2e1)]=_0x3cf8ea,this[_0x19e304(0x240)]=_0x2a3b28,this[_0x19e304(0x349)]=_0x18926b,this['_init']());}['dispose'](){const _0x567077=_0x2a0d4e;super[_0x567077(0x17c)](),this['_entityInit$'][_0x567077(0x2a9)](),this[_0x567077(0x1bc)][_0x567077(0x38a)](_0x3df240=>_0x3df240[_0x567077(0x17c)]());}[_0x2a0d4e(0x39d)](_0x33f651){const _0x5f2039=_0x2a0d4e;return this['_entities']['has'](_0x33f651)?this['_entities'][_0x5f2039(0x276)](_0x33f651)[_0x5f2039(0x35c)]:this['_entityInit$'][_0x5f2039(0x1df)](I['filter'](_0x57090e=>_0x57090e[_0x5f2039(0x2d9)]===_0x33f651),I[_0x5f2039(0x358)](_0x2709b6=>_0x2709b6[_0x5f2039(0x35c)]));}['_init'](){const _0x19bec8=_0x2a0d4e;this[_0x19bec8(0x2e1)][_0x19bec8(0x19b)](a[_0x19bec8(0x2d8)][_0x19bec8(0x1c0)])[_0x19bec8(0x1df)](I['takeUntil'](this['dispose$']))[_0x19bec8(0x2f9)](async _0x38b69a=>{const _0x5e231e=_0x19bec8,_0x364937=_0x38b69a['getUnitId'](),_0x56ccce=await this[_0x5e231e(0x165)](_0x364937);this[_0x5e231e(0x266)][_0x5e231e(0x28b)](_0x56ccce),this[_0x5e231e(0x1bc)][_0x5e231e(0x1f9)](_0x364937,_0x56ccce);}),this['_univerInstanceService'][_0x19bec8(0x19b)](a[_0x19bec8(0x2d8)][_0x19bec8(0x181)])['pipe'](I['takeUntil'](this[_0x19bec8(0x30b)]))[_0x19bec8(0x1df)](I[_0x19bec8(0x2f5)](_0x1b34a9=>!_0x1b34a9[_0x19bec8(0x13b)]()['startsWith']('__')))['subscribe'](async _0x523905=>{const _0x518705=_0x19bec8,_0x5e94e3=_0x523905['getUnitId'](),_0x919e95=await this['_startDocCollabCursor'](_0x5e94e3);this[_0x518705(0x266)][_0x518705(0x28b)](_0x919e95),this['_entities'][_0x518705(0x1f9)](_0x5e94e3,_0x919e95);}),I[_0x19bec8(0x3be)](this['_univerInstanceService'][_0x19bec8(0x153)](a[_0x19bec8(0x2d8)][_0x19bec8(0x181)]),this[_0x19bec8(0x2e1)][_0x19bec8(0x153)](a['UniverInstanceType'][_0x19bec8(0x1c0)]))[_0x19bec8(0x1df)](I['takeUntil'](this[_0x19bec8(0x30b)]))[_0x19bec8(0x2f9)](_0x41007e=>{const _0x2f3f49=_0x19bec8,_0x535b87=_0x41007e[_0x2f3f49(0x13b)](),_0x1b9303=this[_0x2f3f49(0x1bc)]['get'](_0x535b87);_0x1b9303&&(_0x1b9303[_0x2f3f49(0x17c)](),this[_0x2f3f49(0x1bc)]['delete'](_0x535b87));});}async[_0x2a0d4e(0x165)](_0xb7d985){const _0x5d0016=_0x2a0d4e,_0x2dd765=await this['_collabSessionService'][_0x5d0016(0x145)](_0xb7d985),_0x6d3d45=this[_0x5d0016(0x240)]['createInstance'](ge,_0xb7d985,_0x2dd765);return _0x6d3d45[_0x5d0016(0x132)](),_0x6d3d45;}async[_0x2a0d4e(0x1e8)](_0xf42da2){const _0x2e781a=_0x2a0d4e,_0xc21782=await this['_collabSessionService']['requireSession'](_0xf42da2),_0x4b81bf=this[_0x2e781a(0x240)][_0x2e781a(0x2c3)](ve,_0xf42da2,_0xc21782);return _0x4b81bf[_0x2e781a(0x132)](),_0x4b81bf;}};F=pt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),ce(0x2,a[_0x2a0d4e(0x390)](u[_0x2a0d4e(0x26b)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x404ce2,_0x3221a0){const _0x1fabe2=_0x2a0d4e;let {radius:_0x1bd1f5,width:_0x377bbf,height:_0x3f5a3c}=_0x3221a0;_0x1bd1f5=_0x1bd1f5!=null?_0x1bd1f5:0x0,_0x377bbf=_0x377bbf!=null?_0x377bbf:0x1e,_0x3f5a3c=_0x3f5a3c!=null?_0x3f5a3c:0x1e;let _0x2e95de=0x0,_0xea2ea8=0x0,_0x524642=0x0;_0x2e95de=_0xea2ea8=_0x524642=Math[_0x1fabe2(0x21d)](_0x1bd1f5,_0x377bbf/0x2,_0x3f5a3c/0x2),_0x404ce2['beginPath'](),_0x404ce2[_0x1fabe2(0x275)](_0x2e95de,0x0),_0x404ce2[_0x1fabe2(0x133)](_0x377bbf-_0xea2ea8,0x0),_0x404ce2[_0x1fabe2(0x24f)](_0x377bbf-_0xea2ea8,_0xea2ea8,_0xea2ea8,Math['PI']*0x3/0x2,0x0,!0x1),_0x404ce2[_0x1fabe2(0x133)](_0x377bbf,_0x3f5a3c-_0x524642),_0x404ce2[_0x1fabe2(0x24f)](_0x377bbf-_0x524642,_0x3f5a3c-_0x524642,_0x524642,0x0,Math['PI']/0x2,!0x1),_0x404ce2[_0x1fabe2(0x133)](0x0,_0x3f5a3c),_0x404ce2['lineTo'](0x0,_0x2e95de),_0x404ce2['arc'](_0x2e95de,_0x2e95de,_0x2e95de,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x404ce2[_0x1fabe2(0x16e)](),_0x3221a0[_0x1fabe2(0x251)]&&(_0x404ce2['save'](),_0x404ce2['fillStyle']=_0x3221a0[_0x1fabe2(0x251)],_0x3221a0[_0x1fabe2(0x2c4)]===_0x1fabe2(0x1a4)?_0x404ce2[_0x1fabe2(0x251)]('evenodd'):_0x404ce2[_0x1fabe2(0x251)](),_0x404ce2[_0x1fabe2(0x216)]());}class re extends C['Shape']{constructor(_0x156aa,_0x386bea){const _0x3c77d2=_0x2a0d4e;super(_0x156aa,_0x386bea),_(this,_0x3c77d2(0x2db)),_(this,_0x3c77d2(0x140)),(this[_0x3c77d2(0x2db)]=_0x386bea==null?void 0x0:_0x386bea[_0x3c77d2(0x2db)],this[_0x3c77d2(0x140)]=_0x386bea==null?void 0x0:_0x386bea['text']);}static['drawWith'](_0x348592,_0x52fa20){const _0x2d4001=_0x2a0d4e,{text:_0x3da28c,color:_0x25507e}=_0x52fa20;_0x348592[_0x2d4001(0x392)](),_0x348592[_0x2d4001(0x204)]=_0x2d4001(0x200);const _0x420c76=_0x348592['measureText'](_0x3da28c)[_0x2d4001(0x189)],_0x1211a9=Math['min'](_0x420c76+0x2*le,Ue);Ot(_0x348592,{'height':X,'radius':0x4,'width':_0x1211a9,'fill':_0x25507e}),_0x348592[_0x2d4001(0x1c1)]=_0x2d4001(0x31a);const _0x170768=le,_0xca5f19=X-Tt,_0xd608cd=Ue-0x2*le;if(_0x420c76>_0xd608cd){let _0x10e9cf='',_0x46b41e=0x0;for(const _0x1f7dde of _0x3da28c){const _0x5006a5=_0x348592[_0x2d4001(0x1e7)](_0x1f7dde)[_0x2d4001(0x189)];if(_0x46b41e+_0x5006a5<=_0xd608cd-_0x348592[_0x2d4001(0x1e7)](_0x2d4001(0x28a))[_0x2d4001(0x189)])_0x10e9cf+=_0x1f7dde,_0x46b41e+=_0x5006a5;else{_0x10e9cf+=_0x2d4001(0x28a);break;}}_0x348592[_0x2d4001(0x2a7)](_0x10e9cf,_0x170768,_0xca5f19);}else _0x348592[_0x2d4001(0x2a7)](_0x3da28c,_0x170768,_0xca5f19);_0x348592[_0x2d4001(0x216)]();}['_draw'](_0x834a4f){re['drawWith'](_0x834a4f,this);}}const _e=_0x2a0d4e(0x2ce),Rt=_0x2a0d4e(0x3a5),bt=_0x2a0d4e(0x135),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x2a0d4e(0x3b5);class Le{constructor(_0x7d50a2,_0x37e723,_0x581ad1,_0x19b84d){const _0x543a0a=_0x2a0d4e;_(this,'_shapes',[]),_(this,_0x543a0a(0x17d),null),_(this,_0x543a0a(0x1cc),null),_(this,_0x543a0a(0x2ba),null),_(this,_0x543a0a(0x297),null),_(this,_0x543a0a(0x1bd),null),(this[_0x543a0a(0x3c5)]=_0x7d50a2,this['_scene']=_0x37e723,this[_0x543a0a(0x1f7)]=_0x581ad1,this['_document']=_0x19b84d,this[_0x543a0a(0x188)]());}set[_0x2a0d4e(0x243)](_0x1bb873){const _0x1c4d79=_0x2a0d4e;_0x1bb873?(this['_anchorDot']&&this[_0x1c4d79(0x2ba)][_0x1c4d79(0x2d0)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x1c4d79(0x2ba)]&&this[_0x1c4d79(0x2ba)][_0x1c4d79(0x31f)](),this[_0x1c4d79(0x1cc)]&&this[_0x1c4d79(0x1cc)][_0x1c4d79(0x2d0)]());}[_0x2a0d4e(0x17c)](){const _0x22bd2c=_0x2a0d4e;for(const _0x2b379e of this['_shapes'])_0x2b379e[_0x22bd2c(0x17c)]();this[_0x22bd2c(0x1cc)]&&this[_0x22bd2c(0x1cc)]['dispose'](),this['_anchorDot']&&this[_0x22bd2c(0x2ba)]['dispose'](),this[_0x22bd2c(0x17d)]&&this[_0x22bd2c(0x17d)]['dispose'](),this[_0x22bd2c(0x1bd)]&&this['_eventUnsubscribe']();}['_render'](){const _0x2f944a=_0x2a0d4e;var _0x32fbdb;const {_docSkeleton:_0x3eb3d9,_document:_0x976ecd}=this,{color:_0x4abc08,name:_0x373102,ranges:_0x36bb3f}=this[_0x2f944a(0x3c5)],_0x3c9b9b=_0x976ecd[_0x2f944a(0x330)](),{docsLeft:_0x53cfcf,docsTop:_0x2dcdbf}=_0x3c9b9b,_0xe067e=new p[(_0x2f944a(0x1cf))](_0x3c9b9b,_0x3eb3d9);for(const {startOffset:_0x5f0619,endOffset:_0x606dfb,rangeType:_0x381073,segmentId:_0x56cdf9,segmentPage:_0x1949cb,collapsed:_0x4810c1,isActive:_0x360cca}of _0x36bb3f){const _0x528b5a=_0x3eb3d9[_0x2f944a(0x1ce)](_0x5f0619,!0x0,_0x56cdf9,_0x1949cb);let _0x5dac3e=_0x3eb3d9[_0x2f944a(0x1ce)](_0x606dfb,!0x0,_0x56cdf9,_0x1949cb);if(_0x5dac3e==null&&(_0x5dac3e=_0x3eb3d9[_0x2f944a(0x1ce)](_0x606dfb-0x1,!0x1,_0x56cdf9,_0x1949cb)),_0x360cca){const {contentBoxPointGroup:_0x24ab70}=_0xe067e[_0x2f944a(0x3eb)](_0x5dac3e,_0x5dac3e);if(_0x24ab70[_0x2f944a(0x2c8)]===0x0)continue;this[_0x2f944a(0x18d)](_0x4abc08,_0x24ab70,_0x53cfcf,_0x2dcdbf,_0x373102),this[_0x2f944a(0x1bd)]=this[_0x2f944a(0x34f)]();}if(_0x528b5a&&_0x5dac3e){if(_0x381073===a[_0x2f944a(0x2d1)][_0x2f944a(0x318)]){const _0x440abb=new p[(_0x2f944a(0x258))](_0x3c9b9b,_0x3eb3d9),{pointGroup:_0x2e53eb}=(_0x32fbdb=_0x440abb['getRangePointData'](_0x528b5a,_0x5dac3e))!=null?_0x32fbdb:{};if(_0x2e53eb==null||_0x2e53eb['length']===0x0)continue;this[_0x2f944a(0x2ea)](_0x4abc08,_0x2e53eb,_0x53cfcf,_0x2dcdbf);}else{if(!_0x4810c1){const {borderBoxPointGroup:_0x148ffd}=_0xe067e[_0x2f944a(0x3eb)](_0x528b5a,_0x5dac3e);if(_0x148ffd[_0x2f944a(0x2c8)]===0x0)continue;this[_0x2f944a(0x2a1)](_0x4abc08,_0x148ffd,_0x53cfcf,_0x2dcdbf);}}}}}[_0x2a0d4e(0x18d)](_0x8eae0,_0x39f76b,_0x28842f,_0x948f02,_0x36cabd){const _0x34da83=_0x2a0d4e,_0x2464e1=this[_0x34da83(0x2a4)](_0x39f76b),{left:_0x41eab4,top:_0x5bd097,height:_0x532988}=_0x2464e1,_0x161fd5=this[_0x34da83(0x38d)](),_0x2678bb=Nt/_0x161fd5,_0x4f51ce=new C[(_0x34da83(0x25a))](_e+a[_0x34da83(0x237)](H),{'left':_0x41eab4+_0x28842f-_0x2678bb,'top':_0x5bd097+_0x948f02,'height':_0x532988,'width':Dt,'fill':_0x8eae0||C[_0x34da83(0x241)](a[_0x34da83(0x35f)][_0x34da83(0x2d3)],0x0),'strokeWidth':_0x2678bb,'stroke':Ut,'evented':!0x0});this[_0x34da83(0x17d)]=_0x4f51ce,this[_0x34da83(0x2df)][_0x34da83(0x161)](_0x4f51ce,p[_0x34da83(0x2bf)]);const _0x10959e=new C[(_0x34da83(0x25a))](_e+a[_0x34da83(0x237)](H),{'left':_0x41eab4+_0x28842f-_0x2678bb,'top':_0x5bd097+_0x948f02-he/0x2,'height':he,'width':he,'fill':_0x8eae0||C[_0x34da83(0x241)](a['COLORS'][_0x34da83(0x2d3)],0x0),'strokeWidth':0x0,'stroke':_0x8eae0||C[_0x34da83(0x241)](a[_0x34da83(0x35f)][_0x34da83(0x2d3)],0x0),'evented':!0x1});this[_0x34da83(0x2ba)]=_0x10959e,this[_0x34da83(0x2df)][_0x34da83(0x161)](_0x10959e,p['TEXT_RANGE_LAYER_INDEX']);const _0x4b867a=new re(_e+a['generateRandomId'](H),{'left':_0x41eab4+_0x28842f-_0x2678bb,'top':_0x5bd097+_0x948f02-X,'text':_0x36cabd,'color':_0x8eae0});this[_0x34da83(0x1cc)]=_0x4b867a,this['_scene']['addObject'](_0x4b867a,p[_0x34da83(0x2bf)]),this[_0x34da83(0x243)]=!0x1;}[_0x2a0d4e(0x34f)](){const _0x21970c=_0x2a0d4e,_0xad7b08=this['_anchor'][_0x21970c(0x3de)][_0x21970c(0x3aa)](()=>{this['_hover']=!0x0;}),_0x5695ce=this[_0x21970c(0x17d)][_0x21970c(0x3e8)][_0x21970c(0x3aa)](()=>{const _0x4e5910=_0x21970c;this[_0x4e5910(0x297)]&&clearTimeout(this[_0x4e5910(0x297)]),this['_hideTimer']=setTimeout(()=>{const _0x55ddf9=_0x4e5910;this[_0x55ddf9(0x243)]=!0x1;},0x7d0);});return()=>{const _0x433c4c=_0x21970c;_0xad7b08['unsubscribe'](),_0x5695ce[_0x433c4c(0x2a8)]();};}['_drawTextRange'](_0x3f253b,_0x6ab1d0,_0x319115,_0x1d7022){const _0x25d28d=_0x2a0d4e,_0x587b85=new a[(_0x25d28d(0x3e0))](_0x3f253b)['setAlpha'](0.2)['toRgbString'](),_0x396e8a=new C[(_0x25d28d(0x231))](Rt+a['generateRandomId'](H),{'pointsGroup':_0x6ab1d0,'fill':_0x587b85||C[_0x25d28d(0x241)](a[_0x25d28d(0x35f)][_0x25d28d(0x2d3)],0.2),'left':_0x319115,'top':_0x1d7022,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25d28d(0x226)][_0x25d28d(0x3b4)](_0x396e8a),this[_0x25d28d(0x2df)][_0x25d28d(0x161)](_0x396e8a,p[_0x25d28d(0x2bf)]);}[_0x2a0d4e(0x2ea)](_0x54cdf4,_0x878a8b,_0x53671e,_0x5d790f){const _0x98503=_0x2a0d4e,_0x1f0463=new a[(_0x98503(0x3e0))](_0x54cdf4)[_0x98503(0x2f1)](0.2)[_0x98503(0x267)](),_0x78234c=new C['RegularPolygon'](bt+a[_0x98503(0x237)](H),{'pointsGroup':_0x878a8b,'fill':_0x1f0463||C['getColor'](a[_0x98503(0x35f)][_0x98503(0x2d3)],0.2),'left':_0x53671e,'top':_0x5d790f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x78234c),this[_0x98503(0x2df)]['addObject'](_0x78234c,p[_0x98503(0x2bf)]);}[_0x2a0d4e(0x2a4)](_0x5a6d35){const _0x303455=_0x5a6d35[0x0],_0xcba40a=_0x303455[0x0],_0x49d7f3=_0x303455[0x2],{x:_0x14df57,y:_0x500e20}=_0xcba40a,{x:_0x27029e,y:_0x1a2dc0}=_0x49d7f3;return{'left':_0x14df57,'top':_0x500e20,'width':_0x27029e-_0x14df57,'height':_0x1a2dc0-_0x500e20};}['_getScale'](){const _0x187a96=_0x2a0d4e,{scaleX:_0x278420,scaleY:_0x2bfe39}=this['_scene']['getAncestorScale']();return Math[_0x187a96(0x367)](_0x278420,_0x2bfe39);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x47c455,_0x434690,_0x4b29da,_0xfc69df)=>{for(var _0x159eef=_0xfc69df>0x1?void 0x0:_0xfc69df?Lt(_0x434690,_0x4b29da):_0x434690,_0x2aea28=_0x47c455['length']-0x1,_0x19f157;_0x2aea28>=0x0;_0x2aea28--)(_0x19f157=_0x47c455[_0x2aea28])&&(_0x159eef=_0x19f157(_0x159eef)||_0x159eef);return _0x159eef;},q=(_0x5ca59c,_0x19522c)=>(_0x543e5a,_0x34e2fc)=>_0x19522c(_0x543e5a,_0x34e2fc,_0x5ca59c);let Ee=class extends a[_0x2a0d4e(0x122)]{constructor(_0x255a72,_0x302af9,_0x1c46d8,_0xad601a,_0xcdd925){const _0x243d5d=_0x2a0d4e;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x243d5d(0x1d0)]=_0x255a72,this['_docSkeletonManagerService']=_0x302af9,this[_0x243d5d(0x2f2)]=_0x1c46d8,this['_commandService']=_0xad601a,this[_0x243d5d(0x23d)]=_0xcdd925,this[_0x243d5d(0x3cb)]());}['_init'](){const _0x138f1c=_0x2a0d4e,_0x553a51=this[_0x138f1c(0x1d0)]['unitId'],_0x4c23b2=this[_0x138f1c(0x3bb)];this[_0x138f1c(0x1b0)](I[_0x138f1c(0x3b3)]([this[_0x138f1c(0x2f2)][_0x138f1c(0x39d)](_0x553a51),this[_0x138f1c(0x23d)][_0x138f1c(0x32e)]])['pipe']($[_0x138f1c(0x13d)](([_0x1099aa,_0x3757e7])=>({'skeleton':_0x4c23b2[_0x138f1c(0x193)](),'cursors':[..._0x1099aa[_0x138f1c(0x2cd)]()]['flatMap'](_0x561e0d=>({..._0x561e0d,'color':this[_0x138f1c(0x23d)][_0x138f1c(0x22d)](_0x561e0d['color'])}))})))[_0x138f1c(0x2f9)](_0x8e4a9a=>{const _0x13ae73=_0x138f1c;if(this[_0x13ae73(0x298)](),_0x8e4a9a){const {skeleton:_0x248cff,cursors:_0x69bba1}=_0x8e4a9a;this['_updateCollabCursors'](_0x248cff,_0x69bba1);}})),this['_initResize'](),this[_0x138f1c(0x274)]();}[_0x2a0d4e(0x14a)](_0xe55c2e,_0x5ac536){const _0x2733e1=_0x2a0d4e,{scene:_0xc9a5b2,mainComponent:_0x533db1}=this[_0x2733e1(0x1d0)],_0x5c8712=_0x5ac536[_0x2733e1(0x13d)](_0x1c1306=>new Le(_0x1c1306,_0xc9a5b2,_0xe55c2e,_0x533db1));this['_cursorShapes']=_0x5c8712,this[_0x2733e1(0x1b5)]=_0x5ac536;}[_0x2a0d4e(0x2e3)](){const _0x3a784c=_0x2a0d4e;this[_0x3a784c(0x298)]();const {scene:_0x4f4845,mainComponent:_0x59fdf3}=this[_0x3a784c(0x1d0)],_0x356066=this[_0x3a784c(0x3bb)]['getSkeleton'](),_0x122484=this[_0x3a784c(0x1b5)][_0x3a784c(0x13d)](_0x484c21=>new Le(_0x484c21,_0x4f4845,_0x356066,_0x59fdf3));this[_0x3a784c(0x38f)]=_0x122484;}[_0x2a0d4e(0x298)](){const _0x3ed839=_0x2a0d4e;this[_0x3ed839(0x38f)][_0x3ed839(0x38a)](_0x9acfaf=>_0x9acfaf[_0x3ed839(0x17c)]()),this[_0x3ed839(0x38f)]=[];}[_0x2a0d4e(0x274)](){const _0x22444b=_0x2a0d4e,_0x58200b=[p['SetDocZoomRatioOperation']['id']];this[_0x22444b(0x1b0)](this[_0x22444b(0x3db)][_0x22444b(0x377)](_0xc9783c=>{const _0x55b647=_0x22444b;_0x58200b[_0x55b647(0x260)](_0xc9783c['id'])&&_0xc9783c['params'][_0x55b647(0x1f4)]===this[_0x55b647(0x1d0)][_0x55b647(0x1f4)]&&this[_0x55b647(0x2e3)]();}));}[_0x2a0d4e(0x2b7)](){const _0x5773a1=_0x2a0d4e;this[_0x5773a1(0x1b0)](a[_0x5773a1(0x317)](this['_context'][_0x5773a1(0x355)][_0x5773a1(0x2ca)])[_0x5773a1(0x1df)]($[_0x5773a1(0x2f5)](_0x25c540=>_0x25c540[_0x5773a1(0x123)]===C[_0x5773a1(0x3ae)][_0x5773a1(0x1da)]),$[_0x5773a1(0x3b9)](0x10))[_0x5773a1(0x2f9)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x2a0d4e(0x390)](V[_0x2a0d4e(0x1a2)])),q(0x2,a['Inject'](F)),q(0x3,a[_0x2a0d4e(0x393)]),q(0x4,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x182)]))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0xd5e2d7,_0x2b94eb){const _0x3c36d8=_0x2a0d4e;super(_0xd5e2d7,_0x2b94eb),_(this,_0x3c36d8(0x2e5)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x3c36d8(0x20f),''),_(this,'_labelPosition',_0x3c36d8(0x3c1)),_(this,_0x3c36d8(0x1ec)),(_0x2b94eb&&this[_0x3c36d8(0x1b9)](_0x2b94eb),this[_0x3c36d8(0x3de)][_0x3c36d8(0x3aa)](()=>this[_0x3c36d8(0x1b9)]({'hovered':!0x0})),this[_0x3c36d8(0x3e8)]['subscribeEvent'](()=>this[_0x3c36d8(0x1b9)]({'hovered':!0x1})));}[_0x2a0d4e(0x1b9)](_0x489878){const _0x12a337=_0x2a0d4e;var _0x4d37a6,_0x18183c,_0x1b4ef2,_0x52bca9,_0xf81dd0,_0x31be73;this[_0x12a337(0x2e5)]=(_0x4d37a6=_0x489878[_0x12a337(0x2db)])!=null?_0x4d37a6:this[_0x12a337(0x2e5)],this[_0x12a337(0x2fd)]=(_0x18183c=_0x489878[_0x12a337(0x15c)])!=null?_0x18183c:this[_0x12a337(0x2fd)],this['_range']=(_0x1b4ef2=_0x489878[_0x12a337(0x33e)])!=null?_0x1b4ef2:this['_range'],this[_0x12a337(0x20f)]=(_0x52bca9=_0x489878[_0x12a337(0x18f)])!=null?_0x52bca9:this[_0x12a337(0x20f)],this[_0x12a337(0x29f)]=(_0xf81dd0=_0x489878['labelPosition'])!=null?_0xf81dd0:this['_labelPosition'],this[_0x12a337(0x1ec)]=(_0x31be73=_0x489878[_0x12a337(0x3d8)])!=null?_0x31be73:this['_backgroundColor'],this[_0x12a337(0x175)]({'width':_0x489878[_0x12a337(0x189)],'height':_0x489878['height']});}[_0x2a0d4e(0x3ad)](_0x11ea3e){const _0x113cf6=_0x2a0d4e,{row:_0x4a0763,column:_0x58c209}=_0x11ea3e;if(_0x4a0763>=this[_0x113cf6(0x396)][_0x113cf6(0x2c6)]&&_0x4a0763<=this['_range'][_0x113cf6(0x2c1)]&&_0x58c209>=this[_0x113cf6(0x396)][_0x113cf6(0x2cc)]&&_0x58c209<=this[_0x113cf6(0x396)][_0x113cf6(0x32b)]){this[_0x113cf6(0x1b9)]({'hovered':!0x0});return;}this[_0x113cf6(0x1b9)]({'hovered':!0x1});}[_0x2a0d4e(0x1e3)](_0x380bfc){return!0x1;}[_0x2a0d4e(0x24c)](_0x3d1041){const _0x5580e0=_0x2a0d4e;C['Rect'][_0x5580e0(0x184)](_0x3d1041,{'width':this[_0x5580e0(0x189)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x5580e0(0x2e5)],'evented':!0x1,'fill':this[_0x5580e0(0x1ec)]}),this[_0x5580e0(0x2fd)]&&(_0x3d1041[_0x5580e0(0x392)](),_0x3d1041[_0x5580e0(0x149)](0x1,0x0,0x0,0x1,this['width'],this[_0x5580e0(0x29f)]===_0x5580e0(0x15b)?0x0:-X),re['drawWith'](_0x3d1041,{'text':this[_0x5580e0(0x20f)],'color':this[_0x5580e0(0x2e5)]}),_0x3d1041[_0x5580e0(0x216)]());}}var wt=Object[_0x2a0d4e(0x399)],yt=(_0x3f9a78,_0x271c3f,_0x48326f,_0x5a60c0)=>{const _0x35d24b=_0x2a0d4e;for(var _0x519377=_0x5a60c0>0x1?void 0x0:_0x5a60c0?wt(_0x271c3f,_0x48326f):_0x271c3f,_0x34f2c7=_0x3f9a78[_0x35d24b(0x2c8)]-0x1,_0x339ef3;_0x34f2c7>=0x0;_0x34f2c7--)(_0x339ef3=_0x3f9a78[_0x34f2c7])&&(_0x519377=_0x339ef3(_0x519377)||_0x519377);return _0x519377;},ue=(_0x483cfe,_0x34448d)=>(_0x172ac3,_0x482a5f)=>_0x34448d(_0x172ac3,_0x482a5f,_0x483cfe);const $t=0x1389;let Ce=class extends a[_0x2a0d4e(0x122)]{constructor(_0x3febfe,_0x53f168,_0x25f4c9,_0x585d8f){const _0x3f30aa=_0x2a0d4e;super(),_(this,_0x3f30aa(0x1b5),new Set()),_(this,_0x3f30aa(0x3d3),null),(this['_context']=_0x3febfe,this[_0x3f30aa(0x27c)]=_0x53f168,this['_collabCursorController']=_0x25f4c9,this[_0x3f30aa(0x23d)]=_0x585d8f,this[_0x3f30aa(0x3cb)]());}[_0x2a0d4e(0x3cb)](){const _0x587a3a=_0x2a0d4e;this[_0x587a3a(0x27c)][_0x587a3a(0x39b)][_0x587a3a(0x1df)]($[_0x587a3a(0x3a9)](this[_0x587a3a(0x30b)]),$[_0x587a3a(0x358)](_0x16c807=>{const _0x1c02cc=_0x587a3a;if(_0x16c807){const _0x1b4db3=_0x16c807[_0x1c02cc(0x124)];return I[_0x1c02cc(0x3b3)](this[_0x1c02cc(0x2f2)][_0x1c02cc(0x39d)](this['_context'][_0x1c02cc(0x1f4)]),this['_themeService'][_0x1c02cc(0x32e)])[_0x1c02cc(0x1df)]($[_0x1c02cc(0x13d)](([_0x23971b,_0x2ece10])=>{const _0x595bef=new Map();return _0x23971b['forEach']((_0x307ef4,_0x2fb519)=>{const _0x3ec0af=_0x463e;if(_0x307ef4[_0x3ec0af(0x202)]===_0x1b4db3){const _0x33588a={..._0x307ef4};_0x33588a['color']=this[_0x3ec0af(0x23d)][_0x3ec0af(0x22d)](_0x307ef4[_0x3ec0af(0x2db)]),_0x595bef[_0x3ec0af(0x1f9)](_0x2fb519,_0x33588a);}}),{'skeleton':_0x16c807,'cursors':_0x595bef};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x587a3a(0x2f9)](({skeleton:_0x5d6873,cursors:_0x56c22b})=>{const _0x34a25f=_0x587a3a;this[_0x34a25f(0x298)](),_0x5d6873&&this['_updateCollabCursors'](_0x5d6873,_0x56c22b);}),this['_sheetSkeletonManagerService'][_0x587a3a(0x39b)][_0x587a3a(0x2f9)](_0x1a51d0=>{const _0x463498=_0x587a3a;if(_0x1a51d0==null)return;const {skeleton:_0x4b0370}=_0x1a51d0,{scene:_0x2d1586}=this['_context'];_0x2d1586['onPointerMove$'][_0x463498(0x3aa)](a[_0x463498(0x2ef)](_0x50b1ab=>{const _0x44d5d7=_0x463498;var _0x252f46,_0x1253a0;const {offsetX:_0x53875d,offsetY:_0x364aa8}=_0x50b1ab,{x:_0x47131d,y:_0x338fea}=_0x2d1586[_0x44d5d7(0x130)](C[_0x44d5d7(0x163)][_0x44d5d7(0x154)]([_0x53875d,_0x364aa8])),{scaleX:_0x42fea9,scaleY:_0x31a39f}=_0x2d1586[_0x44d5d7(0x168)](),_0xfebdcc=_0x2d1586['getViewport'](C[_0x44d5d7(0x1a6)][_0x44d5d7(0x2e2)]),_0x32bbfa=_0x2d1586[_0x44d5d7(0x180)](C[_0x44d5d7(0x163)][_0x44d5d7(0x154)]([_0x47131d,_0x338fea]),_0xfebdcc),_0x5d0cae=_0x4b0370[_0x44d5d7(0x2ff)](_0x53875d,_0x364aa8,_0x42fea9,_0x31a39f,_0x32bbfa);((_0x252f46=this['_lastPointer'])==null?void 0x0:_0x252f46[_0x44d5d7(0x28f)])===_0x5d0cae['column']&&((_0x1253a0=this['_lastPointer'])==null?void 0x0:_0x1253a0[_0x44d5d7(0x2ab)])===_0x5d0cae[_0x44d5d7(0x2ab)]||this[_0x44d5d7(0x1b5)][_0x44d5d7(0x38a)](_0x428923=>{const _0xc5e7ea=_0x44d5d7;_0x428923[_0xc5e7ea(0x3ad)](_0x5d0cae);});},0x64));});}[_0x2a0d4e(0x14a)](_0x16c9c5,_0x5a0a66){const _0x4abfa5=_0x2a0d4e;var _0x235602;const _0x4c6bc7=(_0x235602=this[_0x4abfa5(0x27c)][_0x4abfa5(0x160)]())==null?void 0x0:_0x235602[_0x4abfa5(0x12b)];if(!_0x4c6bc7)return;const _0x2d1a56=this[_0x4abfa5(0x3c8)]();if(!_0x2d1a56)return;this['_cursors'][_0x4abfa5(0x38a)](_0x9995d=>{const _0x204fb5=_0x4abfa5;_0x9995d[_0x204fb5(0x157)]();});const {scene:_0x3815af}=_0x2d1a56,_0x49b904=xt(Array[_0x4abfa5(0x2cb)](_0x5a0a66[_0x4abfa5(0x2cd)]()))[_0x4abfa5(0x13d)](_0x5082a2=>{const _0x2d0d5b=_0x4abfa5,{color:_0x5241fc,range:_0x196dac,name:_0x49633a,selection:_0x4ee413,sheetID:_0x34f0af}=_0x5082a2,{startColumn:_0x506a5f,startRow:_0xe9f0e2,endColumn:_0x38ff9d,endRow:_0x181921}=_0x196dac,_0x50fde0=J[_0x2d0d5b(0x387)](_0xe9f0e2,_0x506a5f,_0x3815af,_0x4c6bc7),_0x2db408=J[_0x2d0d5b(0x387)](_0x181921,_0x38ff9d,_0x3815af,_0x4c6bc7),{columnHeaderHeightAndMarginTop:_0x96b101}=_0x4c6bc7,{startX:_0x4dbb2,startY:_0x1c5ca8}=_0x50fde0,{endX:_0x268467,endY:_0x148fb9}=_0x2db408,_0x1aff1d=_0x268467-_0x4dbb2,_0x401838=_0x148fb9-_0x1c5ca8,_0xa777c6={'labelPosition':_0x1c5ca8-_0x96b101>=X?_0x2d0d5b(0x3c1):_0x2d0d5b(0x15b),'sheetID':_0x34f0af,'range':_0x196dac,'color':_0x5241fc,'name':_0x49633a,'selection':_0x4ee413,'left':_0x4dbb2,'top':_0x1c5ca8,'width':_0x1aff1d,'height':_0x401838,'evented':!0x1,'zIndex':$t};return new je(_0x49633a,_0xa777c6);});_0x3815af[_0x4abfa5(0x16d)](_0x49b904,At),this['_cursors']=new Set(_0x49b904);}[_0x2a0d4e(0x298)](){const _0x223ec5=_0x2a0d4e;var _0x3f5340;(_0x3f5340=this[_0x223ec5(0x1b5)])==null||_0x3f5340[_0x223ec5(0x38a)](_0x36ff22=>_0x36ff22['dispose']());}['_getSheetObject'](){const _0x9a6d4b=_0x2a0d4e;return J[_0x9a6d4b(0x212)](this[_0x9a6d4b(0x1d0)]['unit'],this[_0x9a6d4b(0x1d0)]);}};Ce=yt([ue(0x1,a['Inject'](J[_0x2a0d4e(0x242)])),ue(0x2,a[_0x2a0d4e(0x390)](F)),ue(0x3,a['Inject'](a[_0x2a0d4e(0x182)]))],Ce);function xt(_0x4a9dfa){const _0x31b80d=_0x2a0d4e,_0x3d47a1=new Map();return _0x4a9dfa[_0x31b80d(0x38a)](_0x11d967=>{const _0x5ac1d5=_0x31b80d;if(_0x3d47a1[_0x5ac1d5(0x3d9)](_0x11d967['selection'])){const _0x580e01=_0x3d47a1[_0x5ac1d5(0x276)](_0x11d967[_0x5ac1d5(0x21e)]);_0x580e01['name']+=',\x20'+_0x11d967[_0x5ac1d5(0x18f)];}else _0x3d47a1[_0x5ac1d5(0x1f9)](_0x11d967[_0x5ac1d5(0x21e)],_0x11d967);}),Array[_0x31b80d(0x2cb)](_0x3d47a1[_0x31b80d(0x2cd)]());}function _0x463e(_0x46a451,_0x37686f){const _0x18b841=_0x18b8();return _0x463e=function(_0x463eba,_0x285973){_0x463eba=_0x463eba-0x11d;let _0x3aa371=_0x18b841[_0x463eba];return _0x3aa371;},_0x463e(_0x46a451,_0x37686f);}var Bt=Object[_0x2a0d4e(0x399)],Ft=(_0x4d6692,_0x3574ec,_0x48fc73,_0x2b215e)=>{const _0x3c59bb=_0x2a0d4e;for(var _0x103265=_0x2b215e>0x1?void 0x0:_0x2b215e?Bt(_0x3574ec,_0x48fc73):_0x3574ec,_0xcd9a5f=_0x4d6692[_0x3c59bb(0x2c8)]-0x1,_0x1ec550;_0xcd9a5f>=0x0;_0xcd9a5f--)(_0x1ec550=_0x4d6692[_0xcd9a5f])&&(_0x103265=_0x1ec550(_0x103265)||_0x103265);return _0x103265;},y=(_0xf5a765,_0x27ca26)=>(_0x1f920e,_0x2bc828)=>_0x27ca26(_0x1f920e,_0x2bc828,_0xf5a765);let Z=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x1f92df,_0x258667,_0x5544f3,_0x5f15c6,_0x347354,_0x178c32){const _0x392281=_0x2a0d4e;super(),this[_0x392281(0x315)]=_0x1f92df,this[_0x392281(0x1fa)]=_0x258667,this[_0x392281(0x30a)]=_0x5544f3,this[_0x392281(0x2e8)]=_0x5f15c6,this[_0x392281(0x34a)]=_0x347354,this[_0x392281(0x1a0)]=_0x178c32,this[_0x392281(0x18b)](),this[_0x392281(0x356)]();}[_0x2a0d4e(0x18b)](){const _0x1ba420=_0x2a0d4e;this['disposeWithMe'](this[_0x1ba420(0x315)][_0x1ba420(0x158)](()=>{const _0x10511c=_0x1ba420;if(this[_0x10511c(0x1fa)][_0x10511c(0x380)][_0x10511c(0x2b3)])return this[_0x10511c(0x1a0)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x2a0d4e(0x356)](){const _0x48354d=_0x2a0d4e;this[_0x48354d(0x1b0)](this[_0x48354d(0x30a)][_0x48354d(0x22e)]['subscribe'](_0x2514d6=>{const _0x250960=_0x48354d;_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x37b)]&&this[_0x250960(0x2e8)][_0x250960(0x31f)]({'type':T[_0x250960(0x14f)][_0x250960(0x187)],'content':this[_0x250960(0x1a0)]['t']('collaboration.single-unit.warning')}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x2de)]&&this[_0x250960(0x2e8)]['show']({'type':T['MessageType'][_0x250960(0x187)],'content':this[_0x250960(0x1a0)]['t'](_0x250960(0x19f))}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x26a)]&&this[_0x250960(0x34a)][_0x250960(0x31f)]({'title':this[_0x250960(0x1a0)]['t'](_0x250960(0x14e)),'content':this[_0x250960(0x1a0)]['t'](_0x250960(0x331)),'type':_0x250960(0x2e9),'duration':0x0}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x23b)]&&this[_0x250960(0x2e8)][_0x250960(0x31f)]({'type':T[_0x250960(0x14f)]['Error'],'content':this[_0x250960(0x1a0)]['t'](_0x250960(0x19f))+'('+_0x2514d6[_0x250960(0x3a0)]+')'}),_0x2514d6['id']===u[_0x250960(0x22a)]['JOIN_ROOM_FAILED']&&this[_0x250960(0x2e8)]['show']({'type':T['MessageType'][_0x250960(0x187)],'content':this[_0x250960(0x1a0)]['t'](_0x2514d6[_0x250960(0x3a0)]||'')}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x21b)]&&this[_0x250960(0x2e8)][_0x250960(0x31f)]({'type':T[_0x250960(0x14f)][_0x250960(0x187)],'content':this['_localeService']['t'](_0x250960(0x30e))}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x1ab)]&&this['_messageService'][_0x250960(0x31f)]({'type':T[_0x250960(0x14f)][_0x250960(0x3a8)],'content':this[_0x250960(0x1a0)]['t'](_0x250960(0x386))}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x3cc)]&&this[_0x250960(0x2e8)]['show']({'type':T[_0x250960(0x14f)]['Error'],'content':this[_0x250960(0x1a0)]['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x2a0d4e(0x36c)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x2a0d4e(0x390)](u[_0x2a0d4e(0x2f6)])),y(0x3,O[_0x2a0d4e(0x2bb)]),y(0x4,O[_0x2a0d4e(0x348)]),y(0x5,a[_0x2a0d4e(0x390)](a['LocaleService']))],Z);var jt=Object[_0x2a0d4e(0x399)],kt=(_0x4abaa9,_0xc06ba5,_0x17fadc,_0x1aa176)=>{const _0xf8b1b5=_0x2a0d4e;for(var _0x37c275=_0x1aa176>0x1?void 0x0:_0x1aa176?jt(_0xc06ba5,_0x17fadc):_0xc06ba5,_0x5f1422=_0x4abaa9[_0xf8b1b5(0x2c8)]-0x1,_0x4166b9;_0x5f1422>=0x0;_0x5f1422--)(_0x4166b9=_0x4abaa9[_0x5f1422])&&(_0x37c275=_0x4166b9(_0x37c275)||_0x37c275);return _0x37c275;},z=(_0x3211f3,_0x23dba4)=>(_0x2621fe,_0x1d299e)=>_0x23dba4(_0x2621fe,_0x1d299e,_0x3211f3);let Q=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x40886d,_0x121b59,_0xbe979a,_0x2f7804){const _0x57c0c1=_0x2a0d4e;super(),_(this,_0x57c0c1(0x26d)),(this[_0x57c0c1(0x240)]=_0x40886d,this['_httpService']=_0x121b59,this['_logService']=_0xbe979a,this[_0x57c0c1(0x2d5)]=_0x2f7804,this['_init']());}[_0x2a0d4e(0x3cb)](){const _0x36f118=_0x2a0d4e;this['_initWindowErrorListener'](),this[_0x36f118(0x3cf)](),this[_0x36f118(0x3c0)](),this['_initUserListener']();}[_0x2a0d4e(0x282)](){const _0x46255a=_0x2a0d4e;this[_0x46255a(0x1b0)](this[_0x46255a(0x2d5)][_0x46255a(0x245)]['subscribe'](_0x51e6d0=>{const _0x5e3d75=_0x46255a;this[_0x5e3d75(0x26d)]=_0x51e6d0==null?void 0x0:_0x51e6d0[_0x5e3d75(0x225)];}));}[_0x2a0d4e(0x329)](){const _0x3315c1=_0x2a0d4e,_0x346b7d=_0x350e0e=>{const _0x5b97a1=_0x463e;var _0x8791b0;this[_0x5b97a1(0x27d)](_0x5b97a1(0x2e9),'[Window\x20Error]:\x20'+_0x350e0e[_0x5b97a1(0x30f)]+'\x20at\x20'+_0x350e0e[_0x5b97a1(0x35e)]+':'+_0x350e0e[_0x5b97a1(0x372)]+':'+_0x350e0e['colno']+'\x0a'+(((_0x8791b0=_0x350e0e[_0x5b97a1(0x2e9)])==null?void 0x0:_0x8791b0['stack'])||''));};window[_0x3315c1(0x18a)](_0x3315c1(0x2e9),_0x346b7d),this[_0x3315c1(0x1b0)](()=>{const _0x8128b6=_0x3315c1;window[_0x8128b6(0x186)](_0x8128b6(0x2e9),_0x346b7d);});}[_0x2a0d4e(0x3cf)](){const _0x2028ce=_0x2a0d4e,_0x2fdd0e=_0x449fe7=>{const _0xceb8aa=_0x463e;this['_uploadLog'](_0xceb8aa(0x2e9),_0xceb8aa(0x244)+_0x449fe7[_0xceb8aa(0x366)]);};window[_0x2028ce(0x18a)](_0x2028ce(0x3bc),_0x2fdd0e),this['disposeWithMe'](()=>{const _0x4a7a26=_0x2028ce;window[_0x4a7a26(0x186)]('unhandledrejection',_0x2fdd0e);});}[_0x2a0d4e(0x3c0)](){const _0x81908=_0x2a0d4e,_0x15d28b=this[_0x81908(0x1ac)][_0x81908(0x2e9)][_0x81908(0x25e)](this['_logService']);this[_0x81908(0x1ac)]['error']=(..._0xa510b9)=>{const _0x339886=_0x81908,_0x5d5113=_0xa510b9[_0x339886(0x13d)](_0x5c6e41=>_0x5c6e41 instanceof Error?_0x5c6e41[_0x339886(0x30f)]+'\x0a'+_0x5c6e41[_0x339886(0x2d2)]:String(_0x5c6e41))[_0x339886(0x1f2)]('\x20');this['_uploadLog'](_0x339886(0x2e9),_0x339886(0x144)+_0x5d5113),_0x15d28b(..._0xa510b9);},this[_0x81908(0x1b0)](()=>{const _0x33ad75=_0x81908;this[_0x33ad75(0x1ac)][_0x33ad75(0x2e9)]=_0x15d28b;});}[_0x2a0d4e(0x27d)](_0x59a260,_0x3d4d34){const _0x42b61c=_0x2a0d4e;try{const _0x58dc89={'userId':this['_memberID'],'logLabel':_0x59a260,'content':_0x3d4d34};this[_0x42b61c(0x137)][_0x42b61c(0x25b)](_0x42b61c(0x28c),{'body':_0x58dc89})[_0x42b61c(0x30c)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),z(0x1,a[_0x2a0d4e(0x390)](x['HTTPService'])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0x2a0d4e(0x3c3),Me={};var Ht=Object[_0x2a0d4e(0x399)],Wt=(_0x3a0800,_0x5bfda2,_0x1a9336,_0x1bc8ba)=>{const _0x206888=_0x2a0d4e;for(var _0x20c11e=_0x1bc8ba>0x1?void 0x0:_0x1bc8ba?Ht(_0x5bfda2,_0x1a9336):_0x5bfda2,_0x1d6e80=_0x3a0800[_0x206888(0x2c8)]-0x1,_0x5d72ff;_0x1d6e80>=0x0;_0x1d6e80--)(_0x5d72ff=_0x3a0800[_0x1d6e80])&&(_0x20c11e=_0x5d72ff(_0x20c11e)||_0x20c11e);return _0x20c11e;},Ae=(_0x5baedc,_0x210cad)=>(_0xdbe1a5,_0x1edd31)=>_0x210cad(_0xdbe1a5,_0x1edd31,_0x5baedc);let ee=class{constructor(_0x49675,_0x6ebed4){const _0x4861f2=_0x2a0d4e;this[_0x4861f2(0x370)]=_0x49675,this[_0x4861f2(0x254)]=_0x6ebed4;}['transformIMECache'](_0x542400){const _0x5231fa=_0x2a0d4e;this[_0x5231fa(0x269)](_0x542400),this['_transformPreviousActiveRange'](_0x542400);}[_0x2a0d4e(0x320)](_0x42293a){const _0x19403f=_0x2a0d4e,{unitID:_0x4ca263}=_0x42293a,_0x5afb74=this[_0x19403f(0x254)][_0x19403f(0x35b)](_0x4ca263)[_0x19403f(0x19d)](p[_0x19403f(0x264)]),{redoCache:_0x5b852a}=_0x5afb74['getUndoRedoMutationParamsCache']();if(_0x5b852a[_0x19403f(0x2c8)]===0x0)return _0x42293a;let _0x2a9755=a[_0x19403f(0x277)]['deepClone'](_0x42293a['mutations'][0x0]);for(let _0x48785=0x0;_0x48785<_0x5b852a[_0x19403f(0x2c8)];_0x48785++){const _0x551a33={'id':_0x19403f(0x167),'params':{..._0x5b852a[_0x48785]}},_0x2fac34=this['_transformService'][_0x19403f(0x127)](_0x2a9755,_0x551a33,!0x1);if(g[_0x19403f(0x314)](_0x2fac34))throw _0x2fac34[_0x19403f(0x2e9)];_0x2a9755=_0x2fac34[_0x19403f(0x11f)];}return{...a[_0x19403f(0x277)][_0x19403f(0x1d5)](_0x42293a),'mutations':[_0x2a9755]};}[_0x2a0d4e(0x269)](_0x555513){const _0x394229=_0x2a0d4e,{unitID:_0x1bb0a0}=_0x555513,_0x12d659=this[_0x394229(0x254)][_0x394229(0x35b)](_0x1bb0a0)[_0x394229(0x19d)](p[_0x394229(0x264)]),{undoCache:_0x1a9958,redoCache:_0x258921}=_0x12d659['getUndoRedoMutationParamsCache']();if(_0x1a9958['length']===0x0||_0x258921[_0x394229(0x2c8)]===0x0)return;const _0x590660=[],_0x376e8d=[];let _0x453039=a[_0x394229(0x277)][_0x394229(0x1d5)](_0x555513['mutations'][0x0]),_0x29180a=a[_0x394229(0x277)]['deepClone'](_0x555513['mutations'][0x0]);for(let _0x1e7246=_0x1a9958[_0x394229(0x2c8)]-0x1;_0x1e7246>=0x0;_0x1e7246--){const _0x459dd3={'id':_0x394229(0x167),'params':{..._0x1a9958[_0x1e7246]}},_0x1b723d={'id':'doc.mutation.rich-text-editing','params':{..._0x258921[_0x1e7246]}},_0x271833=this[_0x394229(0x370)]['transformMutation'](_0x453039,_0x459dd3,!0x1),_0xca7072=this[_0x394229(0x370)][_0x394229(0x127)](_0x29180a,_0x1b723d,!0x1);if(g[_0x394229(0x314)](_0x271833))throw _0x271833['error'];if(g[_0x394229(0x314)](_0xca7072))throw _0xca7072['error'];_0x590660['unshift'](_0x271833['m2Prime'][_0x394229(0x364)]),_0x376e8d[_0x394229(0x33b)](_0xca7072[_0x394229(0x1b8)][_0x394229(0x364)]),_0x453039=_0x271833['m1Prime'],_0x29180a=_0xca7072[_0x394229(0x11f)];}_0x12d659['setUndoRedoMutationParamsCache']({'undoCache':_0x590660,'redoCache':_0x376e8d});}[_0x2a0d4e(0x37a)](_0x58bcc8){const _0x17094d=_0x2a0d4e,{unitID:_0x470392}=_0x58bcc8,_0x2931ea=this[_0x17094d(0x254)][_0x17094d(0x35b)](_0x470392)[_0x17094d(0x19d)](p[_0x17094d(0x264)]),_0x2d049d=_0x2931ea[_0x17094d(0x252)]();if(_0x2d049d==null)return;const _0x2d6283=[{'id':_0x17094d(0x167),'params':{'unitId':_0x58bcc8[_0x17094d(0x2d9)],'actions':null,'textRanges':[_0x2d049d]}}],_0xa774c1=this[_0x17094d(0x370)][_0x17094d(0x1ef)](_0x58bcc8,_0x2d6283);if(!g[_0x17094d(0x292)](_0xa774c1))throw _0xa774c1[_0x17094d(0x2e9)];const _0x34cf9b=_0xa774c1[_0x17094d(0x1b8)][0x0]['params'][_0x17094d(0x192)];Array[_0x17094d(0x222)](_0x34cf9b)&&_0x34cf9b[_0x17094d(0x2c8)]&&_0x2931ea['setActiveRange'](_0x34cf9b[0x0]);}};ee=Wt([Ae(0x0,g[_0x2a0d4e(0x125)]),Ae(0x1,C[_0x2a0d4e(0x262)])],ee);var Vt=Object[_0x2a0d4e(0x399)],Gt=(_0x267b92,_0x4cb1e2,_0x433a85,_0x4771f6)=>{const _0x1baa8c=_0x2a0d4e;for(var _0x433048=_0x4771f6>0x1?void 0x0:_0x4771f6?Vt(_0x4cb1e2,_0x433a85):_0x4cb1e2,_0x50eeb0=_0x267b92[_0x1baa8c(0x2c8)]-0x1,_0x1ca206;_0x50eeb0>=0x0;_0x50eeb0--)(_0x1ca206=_0x267b92[_0x50eeb0])&&(_0x433048=_0x1ca206(_0x433048)||_0x433048);return _0x433048;},Ie=(_0x5a746e,_0x2a2010)=>(_0x420420,_0x30ce7e)=>_0x2a2010(_0x420420,_0x30ce7e,_0x5a746e);let te=class{constructor(_0x54bdd0,_0x1f4b47,_0x1ff809){const _0x46da5d=_0x2a0d4e;this[_0x46da5d(0x240)]=_0x54bdd0,this[_0x46da5d(0x370)]=_0x1f4b47,this[_0x46da5d(0x1ee)]=_0x1ff809;}[_0x2a0d4e(0x1ea)](_0x362c42){const _0x15c5b1=_0x2a0d4e;this[_0x15c5b1(0x152)](_0x362c42);}[_0x2a0d4e(0x320)](_0x3760c5){const _0x4dd5f6=_0x2a0d4e,{unitID:_0x41f78a}=_0x3760c5,{collaboration:_0x4b0d78}=this[_0x4dd5f6(0x1ee)][_0x4dd5f6(0x16f)](_0x41f78a);if(_0x4b0d78[_0x4dd5f6(0x2c8)]===0x0)return _0x3760c5;let _0x38186e=a[_0x4dd5f6(0x277)]['deepClone'](_0x3760c5[_0x4dd5f6(0x376)][0x0]);for(let _0x15a8c8=0x0;_0x15a8c8<_0x4b0d78[_0x4dd5f6(0x2c8)];_0x15a8c8++){const _0x474dbb={'id':_0x4dd5f6(0x167),'params':{'unitId':_0x4b0d78[_0x15a8c8]['unitId'],..._0x4b0d78[_0x15a8c8][_0x4dd5f6(0x1f8)]}},_0x23b1cb=this[_0x4dd5f6(0x370)][_0x4dd5f6(0x127)](_0x38186e,_0x474dbb,!0x1);if(g['isTransformMutationFailure'](_0x23b1cb))throw _0x23b1cb[_0x4dd5f6(0x2e9)];_0x38186e=_0x23b1cb['m1Prime'];}return{...a[_0x4dd5f6(0x277)][_0x4dd5f6(0x1d5)](_0x3760c5),'mutations':[_0x38186e]};}[_0x2a0d4e(0x152)](_0x3d30a0){const _0x21bbb0=_0x2a0d4e,{unitID:_0x2ce00a}=_0x3d30a0,{history:_0x424459,collaboration:_0x292ce9}=this[_0x21bbb0(0x1ee)][_0x21bbb0(0x16f)](_0x2ce00a);if(_0x424459[_0x21bbb0(0x2c8)]===0x0&&_0x292ce9[_0x21bbb0(0x2c8)]===0x0)return;const _0x36f041=[],_0x169480=[];let _0x1e543e=a['Tools'][_0x21bbb0(0x1d5)](_0x3d30a0['mutations'][0x0]),_0x56dff2=a[_0x21bbb0(0x277)][_0x21bbb0(0x1d5)](_0x3d30a0['mutations'][0x0]);for(let _0x4f0739=_0x424459[_0x21bbb0(0x2c8)]-0x1;_0x4f0739>=0x0;_0x4f0739--){const _0x330684={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x424459[_0x4f0739][_0x21bbb0(0x1f4)],..._0x424459[_0x4f0739][_0x21bbb0(0x350)]}},_0x193cb1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x424459[_0x4f0739][_0x21bbb0(0x1f4)],..._0x424459[_0x4f0739][_0x21bbb0(0x1f8)]}},_0x1a806d=this[_0x21bbb0(0x370)]['transformMutation'](_0x1e543e,_0x330684,!0x1),_0x46add8=this[_0x21bbb0(0x370)][_0x21bbb0(0x127)](_0x56dff2,_0x193cb1,!0x1);if(g[_0x21bbb0(0x314)](_0x1a806d))throw _0x1a806d[_0x21bbb0(0x2e9)];if(g['isTransformMutationFailure'](_0x46add8))throw _0x46add8[_0x21bbb0(0x2e9)];_0x36f041[_0x21bbb0(0x33b)]({..._0x424459[_0x4f0739],'undoState':_0x1a806d['m2Prime']['params'],'redoState':_0x46add8[_0x21bbb0(0x1b8)][_0x21bbb0(0x364)]}),_0x1e543e=_0x1a806d[_0x21bbb0(0x11f)],_0x56dff2=_0x46add8['m1Prime'];}_0x1e543e=a['Tools'][_0x21bbb0(0x1d5)](_0x3d30a0['mutations'][0x0]),_0x56dff2=a[_0x21bbb0(0x277)]['deepClone'](_0x3d30a0[_0x21bbb0(0x376)][0x0]);for(let _0x554446=_0x292ce9[_0x21bbb0(0x2c8)]-0x1;_0x554446>=0x0;_0x554446--){const _0x52eecb={'id':_0x21bbb0(0x167),'params':{'unitId':_0x292ce9[_0x554446][_0x21bbb0(0x1f4)],..._0x292ce9[_0x554446]['undoState']}},_0x25a395={'id':_0x21bbb0(0x167),'params':{'unitId':_0x292ce9[_0x554446]['unitId'],..._0x292ce9[_0x554446][_0x21bbb0(0x1f8)]}},_0x152f6f=this[_0x21bbb0(0x370)][_0x21bbb0(0x127)](_0x1e543e,_0x52eecb,!0x1),_0x477aea=this['_transformService']['transformMutation'](_0x56dff2,_0x25a395,!0x1);if(g[_0x21bbb0(0x314)](_0x152f6f))throw _0x152f6f[_0x21bbb0(0x2e9)];if(g[_0x21bbb0(0x314)](_0x477aea))throw _0x477aea[_0x21bbb0(0x2e9)];_0x169480[_0x21bbb0(0x33b)]({..._0x292ce9[_0x554446],'undoState':_0x152f6f[_0x21bbb0(0x1b8)]['params'],'redoState':_0x477aea[_0x21bbb0(0x1b8)][_0x21bbb0(0x364)]}),_0x1e543e=_0x152f6f[_0x21bbb0(0x11f)],_0x56dff2=_0x477aea[_0x21bbb0(0x11f)];}this['_docStateChangeManagerService'][_0x21bbb0(0x1a9)](_0x2ce00a,{'history':_0x36f041,'collaboration':_0x169480});}};te=Gt([Ie(0x0,a['Inject'](a[_0x2a0d4e(0x322)])),Ie(0x1,g[_0x2a0d4e(0x125)]),Ie(0x2,a[_0x2a0d4e(0x390)](p['DocStateChangeManagerService']))],te);var Xt=Object[_0x2a0d4e(0x399)],Kt=(_0x23d82d,_0x5edb57,_0x3140a0,_0x40dde6)=>{const _0x59e3c9=_0x2a0d4e;for(var _0x41345a=_0x40dde6>0x1?void 0x0:_0x40dde6?Xt(_0x5edb57,_0x3140a0):_0x5edb57,_0x37d571=_0x23d82d[_0x59e3c9(0x2c8)]-0x1,_0x529254;_0x37d571>=0x0;_0x37d571--)(_0x529254=_0x23d82d[_0x37d571])&&(_0x41345a=_0x529254(_0x41345a)||_0x41345a);return _0x41345a;},Pe=(_0x4f21bb,_0x42fa32)=>(_0x53af9c,_0x26379d)=>_0x42fa32(_0x53af9c,_0x26379d,_0x4f21bb);let se=class{constructor(_0x583a7f,_0x385d5c){const _0x56cb2d=_0x2a0d4e;this['_injector']=_0x583a7f,this[_0x56cb2d(0x370)]=_0x385d5c;}[_0x2a0d4e(0x16a)](_0x30e7bf){const _0x335841=_0x2a0d4e;var _0x58c090;const _0x216a14=this[_0x335841(0x240)][_0x335841(0x276)](V['DocSelectionManagerService']),_0x5072f9=(_0x58c090=_0x216a14[_0x335841(0x309)]())!=null?_0x58c090:[];if(_0x5072f9[_0x335841(0x2c8)]===0x0)return;const _0x49036f=_0x30e7bf[_0x335841(0x2d9)],_0x51e79c=[{'id':_0x335841(0x167),'params':{'unitId':_0x49036f,'actions':null,'textRanges':_0x5072f9}}],_0x1c8a3d=this[_0x335841(0x370)][_0x335841(0x1ef)](_0x30e7bf,_0x51e79c);if(!g[_0x335841(0x292)](_0x1c8a3d))throw _0x1c8a3d[_0x335841(0x2e9)];const _0x592e1d=_0x1c8a3d[_0x335841(0x1b8)][0x0][_0x335841(0x364)][_0x335841(0x192)];Array[_0x335841(0x222)](_0x592e1d)&&_0x592e1d[_0x335841(0x2c8)]&&_0x216a14[_0x335841(0x129)](_0x592e1d,{'unitId':_0x49036f,'subUnitId':_0x49036f},!0x1);}};se=Kt([Pe(0x0,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),Pe(0x1,g[_0x2a0d4e(0x125)])],se);var qt=Object[_0x2a0d4e(0x399)],zt=(_0xf53243,_0xba9753,_0x5b8f30,_0x394a5b)=>{const _0x646b92=_0x2a0d4e;for(var _0x43759d=_0x394a5b>0x1?void 0x0:_0x394a5b?qt(_0xba9753,_0x5b8f30):_0xba9753,_0x50520e=_0xf53243[_0x646b92(0x2c8)]-0x1,_0x4f54c3;_0x50520e>=0x0;_0x50520e--)(_0x4f54c3=_0xf53243[_0x50520e])&&(_0x43759d=_0x4f54c3(_0x43759d)||_0x43759d);return _0x43759d;},N=(_0x322499,_0x2a4c7a)=>(_0x1cf3dc,_0x4c20ef)=>_0x2a4c7a(_0x1cf3dc,_0x4c20ef,_0x322499);let ie=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x3bf365,_0x4827db,_0x34f30b,_0x28c2a9,_0x27d79f,_0x3363b3,_0x25aac4,_0x73a373){const _0x469039=_0x2a0d4e;super(),_(this,'_status$',new I[(_0x469039(0x14b))](u[_0x469039(0x2af)][_0x469039(0x34d)])),(this['_docStateChangeManagerService']=_0x3bf365,this[_0x469039(0x395)]=_0x4827db,this['_docTransformIMECacheService']=_0x34f30b,this['_docTransformStateCacheService']=_0x28c2a9,this[_0x469039(0x217)]=_0x27d79f,this['_docSyncEditingCollabCursorService']=_0x3363b3,this[_0x469039(0x2e8)]=_0x25aac4,this['_localeService']=_0x73a373,this[_0x469039(0x1d3)]());}[_0x2a0d4e(0x1d3)](){const _0x55db2f=_0x2a0d4e;this[_0x55db2f(0x1b0)](this['_collaborationController'][_0x55db2f(0x3e4)][_0x55db2f(0x2f9)](_0x181e98=>{const _0x18f9c8=_0x55db2f,_0x1a096e=this[_0x18f9c8(0x1ee)][_0x18f9c8(0x21a)][_0x18f9c8(0x2f9)](_0x5ce1dc=>{const _0x99795a=_0x18f9c8;if(_0x5ce1dc==null)return;const {unitId:_0x353354,redoState:_0x56b74d,commandId:_0xf5320a}=_0x5ce1dc;if(_0x353354!==_0x181e98[_0x99795a(0x2d9)])return;const _0x228934={'id':_0xf5320a,'type':a[_0x99795a(0x33f)][_0x99795a(0x30d)],'params':{'unitId':_0x353354,'actions':_0x56b74d[_0x99795a(0x199)],'textRanges':null}};_0x181e98['onLocalMutation'](_0x228934);});if(_0x181e98[_0x18f9c8(0x1b0)](_0x1a096e),_0x181e98 instanceof u[_0x18f9c8(0x1ae)]){const _0x24c53f={'onTransformIME':_0x239dc4=>this[_0x18f9c8(0x218)][_0x18f9c8(0x3d0)](_0x239dc4),'onTransformState':_0xc54e80=>this['_docTransformStateCacheService'][_0x18f9c8(0x1ea)](_0xc54e80),'onTransformSelections':_0xeb4576=>this[_0x18f9c8(0x217)][_0x18f9c8(0x16a)](_0xeb4576),'onSyncEditingCollabCursor':_0x3d5352=>this['_docSyncEditingCollabCursorService'][_0x18f9c8(0x27e)](_0x3d5352),'onTransformRemoteChangesetByIMECache':_0x38a7b6=>this[_0x18f9c8(0x218)][_0x18f9c8(0x320)](_0x38a7b6),'onTransformRemoteChangesetByStateCache':_0x4d70ed=>this['_docTransformStateCacheService'][_0x18f9c8(0x320)](_0x4d70ed)};_0x181e98[_0x18f9c8(0x296)](_0x24c53f);}}));}};ie=zt([N(0x0,a[_0x2a0d4e(0x390)](p[_0x2a0d4e(0x261)])),N(0x1,a['Inject'](u[_0x2a0d4e(0x278)])),N(0x2,a[_0x2a0d4e(0x390)](ee)),N(0x3,a[_0x2a0d4e(0x390)](te)),N(0x4,a[_0x2a0d4e(0x390)](se)),N(0x5,a['Inject'](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x1be)]))],ie);var G=(_0x2ca31b=>(_0x2ca31b[_0x2ca31b['UNDEFINED']=0x0]=_0x2a0d4e(0x1ba),_0x2ca31b[_0x2ca31b['OK']=0x1]='OK',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x24b)]=0x2]=_0x2a0d4e(0x24b),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x26a)]=0x3]=_0x2a0d4e(0x26a),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x23e)]=0x4]=_0x2a0d4e(0x23e),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x3d7)]=0x5]=_0x2a0d4e(0x3d7),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x294)]=0x6]=_0x2a0d4e(0x294),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x3c9)]=0x7]='INVALID_ARGUMENT',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2a0)]=0x8]=_0x2a0d4e(0x2a0),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x128)]=0x9]=_0x2a0d4e(0x128),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x293)]=0xa]=_0x2a0d4e(0x293),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x25d)]=0xb]=_0x2a0d4e(0x25d),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x3b6)]=0xc]=_0x2a0d4e(0x3b6),_0x2ca31b[_0x2ca31b['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x2a0d4e(0x34c),_0x2ca31b[_0x2ca31b['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x20c)]=0xf]=_0x2a0d4e(0x20c),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x15a)]=0x10]=_0x2a0d4e(0x15a),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2fb)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x304)]=0x65]=_0x2a0d4e(0x304),_0x2ca31b[_0x2ca31b['USER_NOT_FOUND']=0xc9]=_0x2a0d4e(0x2a2),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x272)]=0xca]=_0x2a0d4e(0x272),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x365)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x39e)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x26e)]=0x1772]=_0x2a0d4e(0x26e),_0x2ca31b[_0x2ca31b['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x2a0d4e(0x291),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x220)]=0x1b59]='APPLY_REJECT',_0x2ca31b[_0x2ca31b['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2a0d4e(0x230),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x253)]=0x1b5b]=_0x2a0d4e(0x253),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x33a)]=0x1b5c]=_0x2a0d4e(0x33a),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x16c)]=0x1b5d]=_0x2a0d4e(0x16c),_0x2ca31b[_0x2ca31b['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1b4)]=0x2329]=_0x2a0d4e(0x1b4),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x255)]=0x232a]=_0x2a0d4e(0x255),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x206)]=0x232b]=_0x2a0d4e(0x206),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x3bd)]=0x232c]=_0x2a0d4e(0x3bd),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1c9)]=0x232d]=_0x2a0d4e(0x1c9),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2f4)]=0x2711]=_0x2a0d4e(0x2f4),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x21c)]=0x2712]=_0x2a0d4e(0x21c),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x36a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x19c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x32a)]=0x271a]=_0x2a0d4e(0x32a),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x211)]=0x271b]=_0x2a0d4e(0x211),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1dd)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2ca31b[_0x2ca31b['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x2ca31b[_0x2ca31b['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x2a0d4e(0x3dc),_0x2ca31b[_0x2ca31b['YUUMI_AI_RUN_FAILED']=0x271f]=_0x2a0d4e(0x121),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1aa)]=0x2720]=_0x2a0d4e(0x1aa),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2c5)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x271)]=0x2ee1]=_0x2a0d4e(0x271),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x234)]=0x2ee2]='INVALID_INVITE_CODE',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2e7)]=0x2ee3]=_0x2a0d4e(0x2e7),_0x2ca31b[_0x2ca31b['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2a0d4e(0x39f),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1e9)]=0x2ee5]=_0x2a0d4e(0x1e9),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x13a)]=0x32c9]=_0x2a0d4e(0x13a),_0x2ca31b[_0x2ca31b['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x2a0d4e(0x221),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x3b7)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x391)]=0x36b1]=_0x2a0d4e(0x391),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2f3)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x2ca31b[_0x2ca31b['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x2a0d4e(0x324),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1a1)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x2ca31b[_0x2ca31b['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2ca31b[_0x2ca31b['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x2ca31b[_0x2ca31b['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2ca31b[_0x2ca31b['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x2a0d4e(0x1b6),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x23a)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x24d)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x33c)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1f6)]=0x3a9c]=_0x2a0d4e(0x1f6),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x37d)]=0x3a9d]=_0x2a0d4e(0x37d),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x361)]=0x3a9e]=_0x2a0d4e(0x361),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1ff)]=0x3a9f]=_0x2a0d4e(0x1ff),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1ad)]=0x3e81]=_0x2a0d4e(0x1ad),_0x2ca31b[_0x2ca31b['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x2ca31b))(G||{});function Jt(_0x254bf6){const _0x3763ab=_0x2a0d4e;var _0xb40abb,_0x4cff28;const _0x3c5e66=(_0xb40abb=_0x254bf6[_0x3763ab(0x284)])==null?void 0x0:_0xb40abb['stage'],_0x4c680d=((_0x4cff28=_0x254bf6[_0x3763ab(0x284)])==null?void 0x0:_0x4cff28[_0x3763ab(0x38e)])||0x0;return _0x3c5e66===B['FormulaExecuteStageType'][_0x3763ab(0x3a4)]&&_0x4c680d>0x0;}function Zt(_0x444a7c){const _0x1804de=_0x2a0d4e;return _0x444a7c[_0x1804de(0x325)]===B[_0x1804de(0x178)][_0x1804de(0x17b)];}var Qt=Object[_0x2a0d4e(0x399)],es=(_0x58c49a,_0x11a5f3,_0x35e55,_0x3ff402)=>{for(var _0x42d76e=_0x3ff402>0x1?void 0x0:_0x3ff402?Qt(_0x11a5f3,_0x35e55):_0x11a5f3,_0x46d6ed=_0x58c49a['length']-0x1,_0x84695c;_0x46d6ed>=0x0;_0x46d6ed--)(_0x84695c=_0x58c49a[_0x46d6ed])&&(_0x42d76e=_0x84695c(_0x42d76e)||_0x42d76e);return _0x42d76e;},L=(_0x391a20,_0x2739e3)=>(_0x289e66,_0x10e37b)=>_0x2739e3(_0x289e66,_0x10e37b,_0x391a20);const ts=_0x2a0d4e(0x210),ss=_0x2a0d4e(0x351),is=_0x2a0d4e(0x1d9);let ne=class extends a['Disposable']{constructor(_0x5e5477,_0x729b43,_0x3302a8,_0x210df4,_0x37b93b,_0x262fc8,_0x19ff38){const _0x55ce78=_0x2a0d4e;super(),_(this,_0x55ce78(0x279),null),_(this,'_maxFormulaLimit',0x0),_(this,'_currentUsage',0x0),_(this,_0x55ce78(0x346),[]),_(this,_0x55ce78(0x1c8),0x0),(this[_0x55ce78(0x2e8)]=_0x5e5477,this['_commandService']=_0x729b43,this[_0x55ce78(0x1af)]=_0x3302a8,this[_0x55ce78(0x137)]=_0x210df4,this['_univerInstanceService']=_0x37b93b,this[_0x55ce78(0x1ac)]=_0x262fc8,this['_localeService']=_0x19ff38,this[_0x55ce78(0x3a3)]());}['_initCommandInterceptor'](){const _0xf834a5=_0x2a0d4e;this[_0xf834a5(0x1b0)](this[_0xf834a5(0x3db)][_0xf834a5(0x259)]((_0x257e75,_0x1495e5)=>{const _0x3c654c=_0xf834a5;var _0x18cfed;if(_0x257e75['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x1015bf=_0x257e75[_0x3c654c(0x364)];if(!this[_0x3c654c(0x177)]((_0x18cfed=_0x1015bf[_0x3c654c(0x174)])!=null?_0x18cfed:[]))return;if(!this[_0x3c654c(0x20b)]())throw this[_0x3c654c(0x29c)](_0x257e75,_0x1495e5),this[_0x3c654c(0x268)](),new a[(_0x3c654c(0x134))]();})),this[_0xf834a5(0x1b0)](this[_0xf834a5(0x3db)][_0xf834a5(0x377)]((_0x1e9bc1,_0xe3c499)=>{const _0x58a86b=_0xf834a5;if(_0x1e9bc1['id']!==B[_0x58a86b(0x2cf)]['id'])return;const _0xb06f6f=_0x1e9bc1[_0x58a86b(0x364)];if(Jt(_0xb06f6f)){const _0x48c859=a[_0x58a86b(0x237)]();this['_taskIds'][_0x58a86b(0x3b4)](_0x48c859),this[_0x58a86b(0x2ae)](_0x48c859);}else{if(Zt(_0xb06f6f)&&this[_0x58a86b(0x346)][_0x58a86b(0x2c8)]>0x0){const _0x3678c=this[_0x58a86b(0x346)][_0x58a86b(0x2f7)]();this[_0x58a86b(0x3e2)](_0x3678c);}}}));}[_0x2a0d4e(0x17c)](){const _0x1f0eb2=_0x2a0d4e;super['dispose'](),this[_0x1f0eb2(0x3c4)](),this[_0x1f0eb2(0x346)]=[],this[_0x1f0eb2(0x287)]=0x0,this[_0x1f0eb2(0x2c9)]=0x0,this[_0x1f0eb2(0x1c8)]=0x0;}async[_0x2a0d4e(0x29c)](_0x3a7913,_0x3380a4){const _0x484d33=_0x2a0d4e;for(let _0x3d529a=0x0;_0x3d529a<0x1e;_0x3d529a++)try{if(await this[_0x484d33(0x3ba)](),this[_0x484d33(0x20b)]()){this[_0x484d33(0x12d)](_0x3a7913,_0x3380a4),this[_0x484d33(0x2e8)][_0x484d33(0x31f)]({'content':this[_0x484d33(0x1a0)]['t'](_0x484d33(0x280)),'type':T['MessageType']['Success']});return;}await new Promise(_0x259dec=>{const _0x46aa0a=_0x484d33;this['_pollingInterval']=window[_0x46aa0a(0x285)](_0x259dec,0x3e8);});}catch(_0x511749){this['_logService'][_0x484d33(0x2e9)](_0x511749);}this['_messageService'][_0x484d33(0x31f)]({'content':this[_0x484d33(0x1a0)]['t'](_0x484d33(0x3d2)),'type':T[_0x484d33(0x14f)][_0x484d33(0x3a8)]});}[_0x2a0d4e(0x12d)](_0x3b98a9,_0x2fce58){const _0x795468=_0x2a0d4e;try{this[_0x795468(0x3db)][_0x795468(0x3c2)](_0x3b98a9['id'],_0x3b98a9[_0x795468(0x364)],_0x2fce58);}catch(_0x5e6c30){this[_0x795468(0x1ac)]['error'](_0x5e6c30);}}[_0x2a0d4e(0x1d2)](_0x5726ed,_0x282b89){const _0x671230=_0x2a0d4e;_0x282b89<this[_0x671230(0x1c8)]||(this[_0x671230(0x1c8)]=_0x282b89,this['_maxFormulaLimit']=Number[_0x671230(0x323)](_0x5726ed['maxFormulaLimit']),this[_0x671230(0x287)]=Number[_0x671230(0x323)](_0x5726ed['currentUsage']));}async[_0x2a0d4e(0x2ae)](_0x2626d8){const _0x3459c7=_0x2a0d4e;var _0x200238,_0xf58ecd;const _0x10aeee=Date['now']();try{const _0x5ed434=((_0x200238=this[_0x3459c7(0x1af)][_0x3459c7(0x375)](u[_0x3459c7(0x31d)]))==null?void 0x0:_0x200238[_0x3459c7(0x3ee)])||ss,_0x4b1873=(await this[_0x3459c7(0x137)][_0x3459c7(0x25b)](_0x5ed434,{'body':JSON[_0x3459c7(0x288)]({'taskId':_0x2626d8})}))[_0x3459c7(0x1f1)];if(((_0xf58ecd=_0x4b1873[_0x3459c7(0x2e9)])==null?void 0x0:_0xf58ecd[_0x3459c7(0x15d)])!==G['OK'])return;this[_0x3459c7(0x1d2)](_0x4b1873[_0x3459c7(0x2eb)],_0x10aeee);}catch(_0x54d0cc){this[_0x3459c7(0x1ac)]['error'](_0x54d0cc);}}async[_0x2a0d4e(0x3ba)](_0x6b256){const _0x7621ba=_0x2a0d4e;var _0x39fc96,_0x115bd2;const _0x5664a2=Date[_0x7621ba(0x1a3)]();try{const _0x11121f=((_0x39fc96=this[_0x7621ba(0x1af)][_0x7621ba(0x375)](u[_0x7621ba(0x31d)]))==null?void 0x0:_0x39fc96['getformulaLimitStatusUrl'])||ts,_0x4a5740=_0x6b256?_0x11121f+_0x7621ba(0x166)+encodeURIComponent(_0x6b256):_0x11121f,_0x4ee1e9=(await this[_0x7621ba(0x137)][_0x7621ba(0x276)](_0x4a5740))['body'];if(((_0x115bd2=_0x4ee1e9[_0x7621ba(0x2e9)])==null?void 0x0:_0x115bd2[_0x7621ba(0x15d)])!==G['OK'])return;this[_0x7621ba(0x1d2)](_0x4ee1e9[_0x7621ba(0x2eb)],_0x5664a2);}catch(_0x479ab0){this[_0x7621ba(0x1ac)][_0x7621ba(0x2e9)](_0x479ab0);}}async[_0x2a0d4e(0x3e2)](_0x50d958){const _0x49111f=_0x2a0d4e;var _0x40f7bb,_0x38a266;const _0xe62965=Date[_0x49111f(0x1a3)]();try{const _0x46ce51=((_0x40f7bb=this[_0x49111f(0x1af)][_0x49111f(0x375)](u[_0x49111f(0x31d)]))==null?void 0x0:_0x40f7bb[_0x49111f(0x2fe)])||is,_0x44ef71=(await this[_0x49111f(0x137)]['post'](_0x46ce51,{'body':JSON[_0x49111f(0x288)]({'taskId':_0x50d958})}))[_0x49111f(0x1f1)];if(((_0x38a266=_0x44ef71['error'])==null?void 0x0:_0x38a266[_0x49111f(0x15d)])!==G['OK'])return;this[_0x49111f(0x1d2)](_0x44ef71[_0x49111f(0x2eb)],_0xe62965);}catch(_0x527bdd){this[_0x49111f(0x1ac)][_0x49111f(0x2e9)](_0x527bdd);}}[_0x2a0d4e(0x20b)](){const _0x387b06=_0x2a0d4e;return this[_0x387b06(0x2c9)]===0x0?!0x0:this[_0x387b06(0x2c9)]-this[_0x387b06(0x287)]>0x0;}['_clearPolling'](){const _0x4ae749=_0x2a0d4e;this[_0x4ae749(0x279)]&&(clearTimeout(this[_0x4ae749(0x279)]),this[_0x4ae749(0x279)]=null);}[_0x2a0d4e(0x268)](){const _0x3296bd=_0x2a0d4e;this[_0x3296bd(0x2e8)][_0x3296bd(0x31f)]({'content':this['_localeService']['t'](_0x3296bd(0x339)),'type':T[_0x3296bd(0x14f)][_0x3296bd(0x17f)]});}['_hasFormulaInDirtyRanges'](_0x5eeb02){const _0x5f4873=_0x2a0d4e;for(const _0x295e6e of _0x5eeb02){const {unitId:_0x524c6d,sheetId:_0x204d84,range:_0xa283d4}=_0x295e6e,_0x3d6471=this[_0x5f4873(0x2e1)][_0x5f4873(0x3d6)](_0x524c6d);if(!_0x3d6471)continue;const _0x38658c=_0x3d6471[_0x5f4873(0x29b)](_0x204d84);if(!_0x38658c)continue;const _0x455529=_0x38658c[_0x5f4873(0x2b5)]();for(let _0x2dfc84=_0xa283d4['startRow'];_0x2dfc84<=_0xa283d4['endRow'];_0x2dfc84++)for(let _0x3ca038=_0xa283d4['startColumn'];_0x3ca038<=_0xa283d4[_0x5f4873(0x32b)];_0x3ca038++){const _0x3aca1c=_0x455529[_0x5f4873(0x2ec)](_0x2dfc84,_0x3ca038);if(_0x3aca1c&&(a['isFormulaString'](_0x3aca1c['f'])||a[_0x5f4873(0x2aa)](_0x3aca1c['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x2a0d4e(0x390)](O[_0x2a0d4e(0x2bb)])),L(0x1,a['ICommandService']),L(0x2,a[_0x2a0d4e(0x2d6)]),L(0x3,a[_0x2a0d4e(0x390)](x[_0x2a0d4e(0x344)])),L(0x4,a[_0x2a0d4e(0x340)]),L(0x5,a[_0x2a0d4e(0x29a)]),L(0x6,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x1be)]))],ne);var ns=Object[_0x2a0d4e(0x399)],rs=(_0x30e390,_0xe24556,_0x5429ea,_0x472619)=>{const _0x5864c0=_0x2a0d4e;for(var _0x544ad8=_0x472619>0x1?void 0x0:_0x472619?ns(_0xe24556,_0x5429ea):_0xe24556,_0x30c37e=_0x30e390[_0x5864c0(0x2c8)]-0x1,_0x6c78f7;_0x30c37e>=0x0;_0x30c37e--)(_0x6c78f7=_0x30e390[_0x30c37e])&&(_0x544ad8=_0x6c78f7(_0x544ad8)||_0x544ad8);return _0x544ad8;},de=(_0x3b1055,_0x5158ae)=>(_0x52c445,_0x1c17ad)=>_0x5158ae(_0x52c445,_0x1c17ad,_0x3b1055);let pe=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x1b02d5,_0x28d4da,_0x3cd398){const _0x53c9ff=_0x2a0d4e;super(),_(this,_0x53c9ff(0x38c),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x53c9ff(0x1af)]=_0x1b02d5,this[_0x53c9ff(0x156)]=_0x28d4da,this[_0x53c9ff(0x311)]=_0x3cd398);}[_0x2a0d4e(0x1d8)](){this['_disabled']=!0x0;}[_0x2a0d4e(0x1cd)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0xca402a=_0x2a0d4e;return this[_0xca402a(0x300)];}[_0x2a0d4e(0x17c)](){const _0x4f4538=_0x2a0d4e;this[_0x4f4538(0x295)]()[_0x4f4538(0x341)](()=>super[_0x4f4538(0x17c)]());}async[_0x2a0d4e(0x2da)](_0x7986a6){const _0x5a4ac1=_0x2a0d4e;return this[_0x5a4ac1(0x208)]?null:this[_0x5a4ac1(0x156)]['getItem'](u['getLocalCacheKey'](_0x7986a6));}async[_0x2a0d4e(0x26c)](_0x2e7bd3,_0x380dc6){const _0x3efea6=_0x2a0d4e;return!!this[_0x3efea6(0x156)][_0x3efea6(0x1fc)](_0x2e7bd3,_0x380dc6);}[_0x2a0d4e(0x24e)](_0x214a61,_0x45ab1b,_0x45e937,_0x11edc4){const _0x82e6b9=_0x2a0d4e,_0x5e4cd5=this['_revisionService'][_0x82e6b9(0x1d6)](_0x214a61);this[_0x82e6b9(0x38c)][_0x82e6b9(0x1f9)](_0x214a61,{'unitID':_0x214a61,'type':_0x45ab1b,'awaitingChangeset':_0x45e937,'mutations':_0x11edc4,'rev':_0x5e4cd5}),this['_saveTaskMap'][_0x82e6b9(0x3d9)](_0x214a61)||this[_0x82e6b9(0x34b)](_0x214a61);}[_0x2a0d4e(0x34b)](_0x905855){const _0x357cb5=_0x2a0d4e,_0x10a233=this[_0x357cb5(0x3d1)]();_0x10a233===0x0?this[_0x357cb5(0x3a2)](_0x905855):this['_saveTaskMap'][_0x357cb5(0x1f9)](_0x905855,setTimeout(()=>this[_0x357cb5(0x3a2)](_0x905855),_0x10a233));}[_0x2a0d4e(0x3d1)](){const _0xca7416=_0x2a0d4e;var _0x3672db;return(_0x3672db=this[_0xca7416(0x1af)][_0xca7416(0x375)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x3672db:u[_0xca7416(0x1e4)];}[_0x2a0d4e(0x3a2)](_0x106da){const _0x19f6a2=_0x2a0d4e,_0x19fc55=this[_0x19f6a2(0x300)]['get'](_0x106da);return _0x19fc55!==void 0x0&&window[_0x19f6a2(0x24a)](_0x19fc55),this[_0x19f6a2(0x156)][_0x19f6a2(0x1fc)](u[_0x19f6a2(0x3d4)](_0x106da),this[_0x19f6a2(0x38c)]['get'](_0x106da))[_0x19f6a2(0x341)](()=>this[_0x19f6a2(0x300)][_0x19f6a2(0x233)](_0x106da));}async[_0x2a0d4e(0x295)](){const _0x10570f=_0x2a0d4e,_0x26f5ae=[];this['_saveTaskMap']['forEach']((_0x248620,_0x52488b)=>{const _0x16ea92=_0x463e;window[_0x16ea92(0x24a)](_0x248620),_0x26f5ae[_0x16ea92(0x3b4)](this['_saveCache'](_0x52488b)[_0x16ea92(0x341)](()=>{const _0x4f419a=_0x16ea92;this[_0x4f419a(0x300)][_0x4f419a(0x233)](_0x52488b);}));}),await Promise[_0x10570f(0x15e)](_0x26f5ae);}};pe=rs([de(0x0,a[_0x2a0d4e(0x2d6)]),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x2a0d4e(0x390)](g['RevisionService']))],pe);class ke extends a['RxDisposable']{constructor(){const _0x4c7526=_0x2a0d4e;super(),_(this,_0x4c7526(0x3c7)),this[_0x4c7526(0x3c7)]=I['fromEvent'](window,_0x4c7526(0x18c))[_0x4c7526(0x1df)](I[_0x4c7526(0x3a9)](this[_0x4c7526(0x30b)]),I[_0x4c7526(0x11e)](0x1),I[_0x4c7526(0x338)](void 0x0));}[_0x2a0d4e(0x336)](_0x529ec3,_0x503008,_0x1ee4fa=!0x1){const _0x300d51=_0x2a0d4e,_0x300925=new URL(window[_0x300d51(0x1c5)]['href']);_0x300925[_0x300d51(0x369)][_0x300d51(0x1f9)](_0x529ec3,_0x503008),_0x1ee4fa?window[_0x300d51(0x201)][_0x300d51(0x227)]('','',_0x300925[_0x300d51(0x2be)]()):window[_0x300d51(0x201)][_0x300d51(0x191)]('','',_0x300925['toString']());}[_0x2a0d4e(0x362)](_0x490ab5,_0x1205a1=!0x1){const _0x43b36e=_0x2a0d4e,_0x1741f1=new URL(window[_0x43b36e(0x1c5)][_0x43b36e(0x353)]);_0x1741f1[_0x43b36e(0x369)]['delete'](_0x490ab5),_0x1205a1?window[_0x43b36e(0x201)][_0x43b36e(0x227)]('','',_0x1741f1[_0x43b36e(0x2be)]()):window[_0x43b36e(0x201)]['pushState']('','',_0x1741f1[_0x43b36e(0x2be)]());}['getParam'](_0xeb5e89){const _0x107749=_0x2a0d4e;var _0x266bc4;return(_0x266bc4=new URL(window[_0x107749(0x1c5)]['href'])['searchParams']['get'](_0xeb5e89))!=null?_0x266bc4:void 0x0;}}var os=Object[_0x2a0d4e(0x1d4)],as=Object[_0x2a0d4e(0x399)],cs=(_0x31578a,_0x1b48f1,_0x37cef9)=>_0x1b48f1 in _0x31578a?os(_0x31578a,_0x1b48f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37cef9}):_0x31578a[_0x1b48f1]=_0x37cef9,ls=(_0x4fa97d,_0x5e1321,_0x2d3000,_0x56499)=>{for(var _0x591629=_0x56499>0x1?void 0x0:_0x56499?as(_0x5e1321,_0x2d3000):_0x5e1321,_0x5974c8=_0x4fa97d['length']-0x1,_0x3da4d5;_0x5974c8>=0x0;_0x5974c8--)(_0x3da4d5=_0x4fa97d[_0x5974c8])&&(_0x591629=_0x3da4d5(_0x591629)||_0x591629);return _0x591629;},Se=(_0xf60cac,_0x1160b5)=>(_0x44bdbb,_0x540f62)=>_0x1160b5(_0x44bdbb,_0x540f62,_0xf60cac),_s=(_0x22e16c,_0x50c539,_0x4b5ee2)=>cs(_0x22e16c,_0x50c539+'',_0x4b5ee2);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x2a0d4e(0x32c)]=class extends a[_0x2a0d4e(0x3a6)]{constructor(_0x520027=Me,_0x6842b6,_0x50a690,_0x2a3ebd){const _0x86a4d0=_0x2a0d4e;super(),this[_0x86a4d0(0x398)]=_0x520027,this[_0x86a4d0(0x254)]=_0x6842b6,this[_0x86a4d0(0x240)]=_0x50a690,this[_0x86a4d0(0x1af)]=_0x2a3ebd;const {..._0x561c8f}=a[_0x86a4d0(0x3be)]({},Me,this[_0x86a4d0(0x398)]);this[_0x86a4d0(0x1af)][_0x86a4d0(0x3e1)](Yt,_0x561c8f);}[_0x2a0d4e(0x3b8)](){const _0x3443c1=_0x2a0d4e;this[_0x3443c1(0x3b2)](),this[_0x3443c1(0x2bd)]();}[_0x2a0d4e(0x357)](){const _0x571633=_0x2a0d4e;this[_0x571633(0x2a6)]();}[_0x2a0d4e(0x3b2)](){const _0x1ef918=_0x2a0d4e;var _0xf0cf47;const _0x511dda=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x1ef918(0x3ce)],{'useClass':x['WebSocketService']}],[u[_0x1ef918(0x27f)],{'useClass':pe}],[exports[_0x1ef918(0x290)]],[ie],[Z],[F],[me],[exports[_0x1ef918(0x394)]]];this['_config'][_0x1ef918(0x29d)]&&_0x511dda['push']([Q]),a[_0x1ef918(0x131)](this[_0x1ef918(0x240)],a[_0x1ef918(0x273)](_0x511dda,(_0xf0cf47=this[_0x1ef918(0x398)])==null?void 0x0:_0xf0cf47['override']));}[_0x2a0d4e(0x2a6)](){const _0x5a618a=_0x2a0d4e;this[_0x5a618a(0x1b0)](this[_0x5a618a(0x254)][_0x5a618a(0x190)](a[_0x5a618a(0x2d8)][_0x5a618a(0x181)],[Ee])),this[_0x5a618a(0x1b0)](this[_0x5a618a(0x254)][_0x5a618a(0x190)](a['UniverInstanceType'][_0x5a618a(0x1c0)],[Ce]));}[_0x2a0d4e(0x2bd)](){const _0x2331e3=_0x2a0d4e;a[_0x2331e3(0x17e)](this['_injector'],[[F],[exports[_0x2331e3(0x290)]],[ie],[Z],[exports[_0x2331e3(0x394)]],[ne]]),this[_0x2331e3(0x398)][_0x2331e3(0x29d)]&&a[_0x2331e3(0x17e)](this[_0x2331e3(0x240)],[[Q]]);}},_s(exports[_0x2a0d4e(0x32c)],_0x2a0d4e(0x1e2),hs),exports[_0x2a0d4e(0x32c)]=ls([a[_0x2a0d4e(0x31b)](u['UniverCollaborationClientPlugin']),Se(0x1,C['IRenderManagerService']),Se(0x2,a[_0x2a0d4e(0x390)](a['Injector'])),Se(0x3,a[_0x2a0d4e(0x2d6)])],exports[_0x2a0d4e(0x32c)]);var us=Object[_0x2a0d4e(0x399)],Is=(_0x50ac2,_0x4e22b8,_0x38ad72,_0x136ae0)=>{const _0x560cbb=_0x2a0d4e;for(var _0x579e4a=_0x136ae0>0x1?void 0x0:_0x136ae0?us(_0x4e22b8,_0x38ad72):_0x4e22b8,_0x1260d7=_0x50ac2[_0x560cbb(0x2c8)]-0x1,_0x45d3af;_0x1260d7>=0x0;_0x1260d7--)(_0x45d3af=_0x50ac2[_0x1260d7])&&(_0x579e4a=_0x45d3af(_0x579e4a)||_0x579e4a);return _0x579e4a;},W=(_0x5aef8b,_0x377805)=>(_0x597aaa,_0x4cbfc2)=>_0x377805(_0x597aaa,_0x4cbfc2,_0x5aef8b);exports['BrowserCollaborationSocketService']=class extends u[_0x2a0d4e(0x363)]{constructor(_0x253ea8,_0x5bba0d,_0x9c98,_0x520c3a,_0x3a580f){super(_0x253ea8,_0x5bba0d,_0x9c98,_0x520c3a,_0x3a580f);}async[_0x2a0d4e(0x3da)](_0x39f4a6){const _0x1dc1a3=_0x2a0d4e,_0x3f13ac=await this[_0x1dc1a3(0x383)](),_0x26c82a=this[_0x1dc1a3(0x11d)](_0x39f4a6,_0x3f13ac);return this[_0x1dc1a3(0x307)](_0x26c82a);}[_0x2a0d4e(0x11d)](_0x499837,_0x4a88a8){const _0x167cb4=_0x2a0d4e,_0x50168b=typeof window>'u'?new URL(_0x499837):new URL(_0x499837,window[_0x167cb4(0x1c5)]['origin']);_0x50168b['searchParams'][_0x167cb4(0x1f9)]('sessionTicket',_0x4a88a8);const _0x492456=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x167cb4(0x25c)]);return _0x492456[_0x167cb4(0x276)]('runId')&&_0x50168b[_0x167cb4(0x369)]['set'](_0x167cb4(0x138),_0x492456[_0x167cb4(0x276)](_0x167cb4(0x138))),_0x50168b['toString']();}async[_0x2a0d4e(0x383)](){const _0x3babf7=_0x2a0d4e;var _0x352e40,_0x24b846,_0x3da0e7;const _0x4d7e14=this[_0x3babf7(0x1af)][_0x3babf7(0x375)](u[_0x3babf7(0x31d)]),_0x3f4ce3=(_0x352e40=_0x4d7e14==null?void 0x0:_0x4d7e14[_0x3babf7(0x143)])!=null?_0x352e40:u[_0x3babf7(0x223)];return(_0x3da0e7=(_0x24b846=(await this[_0x3babf7(0x137)]['get'](_0x3f4ce3,{'headers':{'Content-Type':'application/json'}}))[_0x3babf7(0x1f1)])==null?void 0x0:_0x24b846['ticket'])!=null?_0x3da0e7:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a['Inject'](a[_0x2a0d4e(0x322)])),W(0x1,a['Inject'](x[_0x2a0d4e(0x344)])),W(0x2,a[_0x2a0d4e(0x2d6)]),W(0x3,a[_0x2a0d4e(0x29a)]),W(0x4,g['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);var ds=Object[_0x2a0d4e(0x399)],Ss=(_0x4c03d1,_0x285c7c,_0x14090c,_0x3100ba)=>{const _0x4ee292=_0x2a0d4e;for(var _0x40a0d5=_0x3100ba>0x1?void 0x0:_0x3100ba?ds(_0x285c7c,_0x14090c):_0x285c7c,_0x3a3017=_0x4c03d1[_0x4ee292(0x2c8)]-0x1,_0x21b2fc;_0x3a3017>=0x0;_0x3a3017--)(_0x21b2fc=_0x4c03d1[_0x3a3017])&&(_0x40a0d5=_0x21b2fc(_0x40a0d5)||_0x40a0d5);return _0x40a0d5;},fe=(_0x11fff7,_0x194dcd)=>(_0x2823d1,_0x44f596)=>_0x194dcd(_0x2823d1,_0x44f596,_0x11fff7);exports[_0x2a0d4e(0x302)]=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x1ee670,_0x28421d,_0x56dfb3){const _0x5aaf8d=_0x2a0d4e;super(),this[_0x5aaf8d(0x198)]=_0x1ee670,this[_0x5aaf8d(0x137)]=_0x28421d,this[_0x5aaf8d(0x1af)]=_0x56dfb3;}async[_0x2a0d4e(0x1dc)](_0x209adc,_0x219ab9,_0x2b8dde,..._0x5784dd){const _0x35c1ad=_0x2a0d4e;var _0x310fab,_0x1d0eb5,_0x14761c,_0x1c0c21;const _0x4b389f=this[_0x35c1ad(0x198)][_0x35c1ad(0x27b)]();if(!_0x4b389f)throw new Error(_0x35c1ad(0x171));const _0xdbd846=((_0x310fab=this[_0x35c1ad(0x1af)][_0x35c1ad(0x375)](u[_0x35c1ad(0x3af)]))!=null?_0x310fab:u[_0x35c1ad(0x316)])+'/'+_0x209adc+_0x35c1ad(0x342)+_0x219ab9,_0x22925d=new URL(window[_0x35c1ad(0x1c5)][_0x35c1ad(0x353)]),_0x4f044e={'scriptId':_0x209adc,'runId':(_0x1d0eb5=_0x22925d[_0x35c1ad(0x369)]['get'](_0x35c1ad(0x138)))!=null?_0x1d0eb5:'','function':_0x219ab9,'unitId':_0x4b389f[_0x35c1ad(0x13b)](),'argsOfFunction':JSON[_0x35c1ad(0x288)](_0x5784dd),'invokeId':(_0x14761c=_0x2b8dde[_0x35c1ad(0x257)])!=null?_0x14761c:'','executionId':(_0x1c0c21=_0x2b8dde[_0x35c1ad(0x1cb)])!=null?_0x1c0c21:''};try{const _0x6ab2ed=await this[_0x35c1ad(0x137)][_0x35c1ad(0x25b)](_0xdbd846,{'body':_0x4f044e});return _0x6ab2ed[_0x35c1ad(0x1f1)][_0x35c1ad(0x2e9)]&&_0x6ab2ed[_0x35c1ad(0x1f1)][_0x35c1ad(0x2e9)]['code']!==G['OK']?_0x35c1ad(0x207):_0x6ab2ed[_0x35c1ad(0x1f1)]['result'];}catch{return'Failed';}}},exports[_0x2a0d4e(0x302)]=Ss([fe(0x0,a[_0x2a0d4e(0x340)]),fe(0x1,a['Inject'](x[_0x2a0d4e(0x344)])),fe(0x2,a[_0x2a0d4e(0x2d6)])],exports[_0x2a0d4e(0x302)]);const we=0x7530,ye=_0x2a0d4e(0x3a7);class fs extends a[_0x2a0d4e(0x1e1)]{constructor(){const _0x4af51e=_0x2a0d4e;super(),_(this,_0x4af51e(0x248),a[_0x4af51e(0x237)]()),_(this,_0x4af51e(0x1eb),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x4af51e(0x1d7),null),_(this,_0x4af51e(0x371),new Map()),_(this,_0x4af51e(0x148),new Map()),this[_0x4af51e(0x3cb)]();}[_0x2a0d4e(0x17c)](){const _0x31b1ec=_0x2a0d4e;super[_0x31b1ec(0x17c)](),this['_clearOtherTimers'][_0x31b1ec(0x38a)]((_0x286762,_0x305e68)=>this[_0x31b1ec(0x289)](_0x305e68)),this['_heartbeatTimer']&&window[_0x31b1ec(0x173)](this[_0x31b1ec(0x1d7)]);}[_0x2a0d4e(0x239)](_0x1659fc){const _0x7f18cd=_0x2a0d4e;return this[_0x7f18cd(0x1fe)](_0x1659fc)[_0x7f18cd(0x1df)](I['distinctUntilChanged']());}[_0x2a0d4e(0x15f)](_0x22ba12){const _0x364db2=_0x2a0d4e;this[_0x364db2(0x1eb)][_0x364db2(0x2b3)]===0x0&&this[_0x364db2(0x31e)](),this[_0x364db2(0x1eb)][_0x364db2(0x205)](_0x22ba12),this[_0x364db2(0x249)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x22ba12],'isForwarded':!0x1});}[_0x2a0d4e(0x155)](_0x2c4cae){const _0x13e77c=_0x2a0d4e;this['_selfUnitIDs'][_0x13e77c(0x233)](_0x2c4cae),this['_selfUnitIDs'][_0x13e77c(0x2b3)]===0x0&&this['_heartbeatTimer']&&window[_0x13e77c(0x173)](this['_heartbeatTimer']);}['_init'](){const _0x40adee=_0x2a0d4e;this[_0x40adee(0x1b0)](a[_0x40adee(0x20d)](I['fromEvent'](window,_0x40adee(0x37c))[_0x40adee(0x2f9)](_0xbdec9b=>{const _0x1338b6=_0x40adee;if(_0xbdec9b[_0x1338b6(0x39a)]!==ye||!_0xbdec9b[_0x1338b6(0x142)])return;const _0x2fe9a3=JSON[_0x1338b6(0x389)](_0xbdec9b[_0x1338b6(0x142)]);this['_handleEvent'](_0x2fe9a3);}))),window[_0x40adee(0x18a)](_0x40adee(0x2a5),()=>this[_0x40adee(0x249)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x40adee(0x2cb)](this[_0x40adee(0x1eb)])}));}[_0x2a0d4e(0x19a)](_0x1a9ccb){const _0x572921=_0x2a0d4e;switch(_0x1a9ccb[_0x572921(0x123)]){case 0x0:this[_0x572921(0x36b)](_0x1a9ccb);break;case 0x1:this['_handleLeaveEvent'](_0x1a9ccb);break;case 0x2:this['_handleHeartbeatEvent'](_0x1a9ccb);break;}}[_0x2a0d4e(0x36b)](_0x238315){const _0x2b25eb=_0x2a0d4e,{unitIDs:_0x3e9e6a,memberID:_0xb6a440,isForwarded:_0x4f8c17}=_0x238315;_0x3e9e6a[_0x2b25eb(0x38a)](_0x84e8=>{const _0x508788=_0x2b25eb;if(!_0x4f8c17&&this[_0x508788(0x23c)]['has'](_0x84e8)&&this['_ensureSubject'](_0x84e8)[_0x508788(0x28b)](u[_0x508788(0x2b8)][_0x508788(0x3d5)]),!this['_unitOnClients'][_0x508788(0x3d9)](_0x84e8)||!this[_0x508788(0x23c)]['get'](_0x84e8)['has'](_0xb6a440)){const _0x321c02=this[_0x508788(0x23c)]['get'](_0x84e8)||new Set();_0x321c02[_0x508788(0x205)](_0xb6a440),this[_0x508788(0x23c)][_0x508788(0x1f9)](_0x84e8,_0x321c02),this[_0x508788(0x301)](_0xb6a440);}}),_0x4f8c17||this[_0x2b25eb(0x249)]({'type':0x0,'memberID':this[_0x2b25eb(0x248)],'unitIDs':[...this[_0x2b25eb(0x1eb)]],'isForwarded':!0x0});}[_0x2a0d4e(0x301)](_0x1ed1a8){const _0x389999=_0x2a0d4e;this[_0x389999(0x289)](_0x1ed1a8);const _0x1c05da=window[_0x389999(0x285)](()=>{const _0x3b48b4=_0x389999;this['_unitOnClients'][_0x3b48b4(0x38a)](_0xfd1ff0=>{const _0x4569fd=_0x3b48b4;_0xfd1ff0[_0x4569fd(0x233)](_0x1ed1a8);});},we*0x2);this[_0x389999(0x371)][_0x389999(0x1f9)](_0x1ed1a8,_0x1c05da);}[_0x2a0d4e(0x289)](_0x2679a5){const _0x541497=_0x2a0d4e;if(this[_0x541497(0x371)][_0x541497(0x3d9)](_0x2679a5)){const _0x381bb0=this[_0x541497(0x371)][_0x541497(0x276)](_0x2679a5);_0x381bb0&&window[_0x541497(0x24a)](_0x381bb0),this[_0x541497(0x371)][_0x541497(0x1f9)](_0x2679a5,null);}}[_0x2a0d4e(0x343)](_0x1da317){const _0x32d1bc=_0x2a0d4e,{memberID:_0x464ee2,unitIDs:_0x23884b}=_0x1da317;_0x23884b['forEach'](_0x17a28d=>{const _0x43e883=_0x463e;var _0x53c004;const _0x388f11=this[_0x43e883(0x23c)][_0x43e883(0x276)](_0x17a28d);_0x388f11&&(_0x388f11[_0x43e883(0x233)](_0x464ee2),(_0x53c004=this[_0x43e883(0x1fe)](_0x17a28d))==null||_0x53c004[_0x43e883(0x28b)](_0x388f11[_0x43e883(0x2b3)]===0x0?u[_0x43e883(0x2b8)][_0x43e883(0x22c)]:u[_0x43e883(0x2b8)][_0x43e883(0x3d5)]));}),this[_0x32d1bc(0x289)](_0x464ee2);}[_0x2a0d4e(0x2e6)](_0x52e72e){const _0x1ae167=_0x2a0d4e;this[_0x1ae167(0x301)](_0x52e72e[_0x1ae167(0x225)]);}[_0x2a0d4e(0x249)](_0x35f107){const _0x413d03=_0x2a0d4e;localStorage[_0x413d03(0x1fc)](ye,JSON[_0x413d03(0x288)](_0x35f107));}[_0x2a0d4e(0x31e)](){const _0x436236=_0x2a0d4e;this[_0x436236(0x1d7)]=window[_0x436236(0x36d)](()=>{const _0x12133d=_0x436236;this[_0x12133d(0x249)]({'type':0x2,'memberID':this[_0x12133d(0x248)]});},we);}[_0x2a0d4e(0x1fe)](_0x1ce328){const _0x522cf9=_0x2a0d4e;return this[_0x522cf9(0x148)][_0x522cf9(0x3d9)](_0x1ce328)||this[_0x522cf9(0x148)][_0x522cf9(0x1f9)](_0x1ce328,new I[(_0x522cf9(0x14b))](u[_0x522cf9(0x2b8)][_0x522cf9(0x22c)])),this[_0x522cf9(0x148)][_0x522cf9(0x276)](_0x1ce328);}}exports[_0x2a0d4e(0x388)]=Oe,exports['SheetCollabCursorShape']=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x2a0d4e(0x256)]=ke;function _0x18b8(){const _0x1859ed=['error','_drawRectRange','limitInfo','getValue','round','yellow.400','debounce','SetSelectionsOperation','setAlpha','_collabCursorController','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','YUUMI_UNABLE_LOAD_URL','filter','CollaborationUIEventService','shift','assignAColorForMemberID','subscribe','SessionStatus','CURRENT_STATUS_CANNOT_OPERATE','AWAITING','_hovered','releaseFormulaLimitUrl','getCellPositionByOffset','_saveTaskMap','_scheduleClearOtherTimer','RemoteUniscriptService','getUniverSheetInstance','ERROR_AGAIN','PENDING','univer-flex\x20univer-items-center','_doCreateSocket','_memberService','getDocRanges','_collaborationUIEventService','dispose$','catch','MUTATION','session.will-retry','message','_online','_revisionService','runRefRangeMutations','handleInsertRangeMoveRight','isTransformMutationFailure','_beforeCloseService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','fromEventSubject','RECT','40wpCEtt','#FFF','DependentOn','USERS_LEAVE','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_scheduleHeartbeat','show','transformRemoteChangeset','purple.300','Injector','parseInt','ENTITLE_DUP_SUBSCRIPTION','functionsExecutedState','InsertRangeMoveRightCommandId','OFFLINE','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','_initWindowErrorListener','YUUMI_NO_CUBOID_FOR_QUESTION','endColumn','UniverCollaborationClientUIPlugin','_getMergeRange','currentTheme$','off-line-icon_clip0_910_343','getOffsetConfig','permission.content','jsxs','7440mcUUCX','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','clsx','setParam','DocSelectionManagerService','mapTo','formula.calculation.waiting','APPLY_PERMISSION_DENIED','unshift','REDEMPTION_CODE_FULLY_REDEEMED','status$','range','CommandType','IUniverInstanceService','then','/run/','_handleLeaveEvent','HTTPService','Tooltip','_taskIds','cursorInfo','INotificationService','_collabSessionService','_notificationService','_scheduleSaving','EMAIL_VERIFY_CODE_MISMATCH','NOT_COLLAB','Subject','_handleHover','undoState','/universer-api/license/formula/limit/start','1215324lhRAbc','href','contains','engine','_initEvent','onRendered','switchMap','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','defIds','getRenderById','cursorInfo$','tag','filename','COLORS','on-line-icon','REDEMPTION_USER_REDEEM_TIMES_EXCEED','removeParam','CollaborationSocketService','params','CHANGESET_REVISION_CONFILICT','reason','max','handleInsertRow','searchParams','YUUMI_RATE_OVER_LIMIT','_handleJoinEvent','IBeforeCloseService','setInterval','IDocClipboardService','use','_transformService','_clearOtherTimers','lineno','handleInsertRangeMoveDown','collabStatus.notCollab','getConfig','mutations','onCommandExecuted','DataLoaderService','isEditing','_transformPreviousActiveRange','OTHER_CLIENT_EDITING','storage','REDEMPTION_USER_NOT_ELIGIBLE','getMergeData','colorChannel1','saveTaskMap','registerRefRange','forwardRef','_getSessionTicket','symbol','replace','session.connection-failed','getCoordByCell','IURLService','parse','forEach','SetTextSelectionsOperation','_cachedData','_getScale','totalFormulasToCalculate','_cursorShapes','Inject','ENTITLE_CAN_NOT_BUY_LOWER_OTP','save','ICommandService','CollaborationDataLoaderController','_collaborationController','_range','InsertRowCommandId','_config','getOwnPropertyDescriptor','key','currentSkeleton$','handleIRemoveCol','getCollabCursors$','SNAPSHOT_INVALID_SNAPSHOT','USER_NOT_INVITED_CODE','data','div','_saveCache','_initCommandInterceptor','START_CALCULATION','collab-text-range-','Plugin','ACTIVE_UNIT_EVENT_CHANNEL','Error','takeUntil','subscribeEvent','collab-client.tooltip.reconnect','_imageIoService','onMouseMove','TRANSFORM_CHANGE_OBSERVABLE_TYPE','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','SheetsSelectionsService','sessionStatus$','_registerDependencies','combineLatest','push','rgba(255,\x20255,\x20255,\x200.01)','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','EMAIL_HAS_BEEN_BOUND','onStarting','throttleTime','_getFormulaLimitStatus','_docSkeletonManagerService','unhandledrejection','LICENSE_EXPORT_SIZE_EXCEEDED','merge','connectInjector','_monkeyPatchLogService','top','executeCommand','collaboration-client-ui.config','_clearPolling','_cursor','defs','urlChange$','_getSheetObject','INVALID_ARGUMENT','trim','_init','SUBMIT_CHANGESET_TIMEOUT','collabStatus.syncing','ISocketService','_initUnhandledRejectionListener','transformIMECache','_getSaveTimeout','formula.calculation.unable','_lastPointer','getLocalCacheKey','OTHER_CLIENTS_EDITING','getUnit','UNAUTHENTICATED','backgroundColor','has','createSocket','_commandService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','mask','onPointerEnter$','_onCursorDelete','ColorKit','setConfig','_releaseCalculationLimit','createElement','entityInit$','_assignedColors','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','displayName','onPointerLeave$','url(#$1','blue.400','getRangePointData','selections','split','startFormulaLimitUrl','72Ddfjnn','_createSocketURL','shareReplay','m1Prime','[CollaborationDataLoaderController]','YUUMI_AI_RUN_FAILED','RxDisposable','type','sheetId','ITransformService','roomMembers$','transformMutation','COMPLETION_FINISHED','replaceDocRanges','SYNCED','skeleton','ranges','_applyCommand','RefRangeService','HEADER_MENU','getRelativeToViewportCoord','registerDependencies','init','lineTo','CanceledError','collab-rect-range-','_updateLocalCursor','_httpService','runId','_urlService','WECHAT_HAS_BEEN_BOUND','getUnitId','EffectRefRangId','map','xlink:href','imageSourceType','text','_setupSubUnitSync','newValue','wsSessionTicketUrl','[LogService\x20Error]:\x20','requireSession','collabStatus.conflict','subunit','_unitStatus','transform','_updateCollabCursors','BehaviorSubject','white','unit','permission.title','MessageType','_onCursorUpdate','url(#on-line-icon_clip0_910_349)','_transformHistoryAndStateStack','getTypeOfUnitDisposed$','FromArray','disposeUnit','_localStorageService','makeDirty','registerBeforeClose','send','LOGIN_TOKEN_PROCESSING_FAILED','bottom','hovered','code','all','editingUnit','getCurrent','addObject','OnLineIcon','Vector2','_session','_startSheetCollabCursor','?taskId=','doc.mutation.rich-text-editing','getAncestorScale','_updateSubUnitFromURLParams','transformSelections','path','APPLY_DUPLICATED','addObjects','closePath','getStateCache','http://www.w3.org/2000/svg','[RemoteUniscriptService]:\x20no\x20focused\x20unit','find','clearInterval','dirtyRanges','transformByState','1494BPaKzV','_hasFormulaInDirtyRanges','FormulaExecutedStateType','DisposableCollection','OffLineIcon','SUCCESS','dispose','_anchor','touchDependencies','Loading','getVpScrollXYInfoByPosToVp','UNIVER_DOC','ThemeService','_updateURLWithCurrentState','drawWith','some','removeEventListener','Warning','_render','width','addEventListener','_setupBeforeClosingHandler','popstate','_drawAnchor','AWAITING_WITH_PENDING','name','registerRenderModule','pushState','textRanges','getSkeleton','_initStatusListener','current','InsertColCommandId','handleDeleteRangeMoveLeft','_instanceService','actions','_handleEvent','getTypeOfUnitAdded$','YUUMI_SUBSCRIPTION_NOT_FOUND','with','RemoveRowCommandId','collaboration.closeRoom','_localeService','PAYMENT_CHANNEL_NOT_SUPPORT','DocSkeletonManagerService','now','evenodd','M0\x200H16V16H0z','SHEET_VIEWPORT_KEY','entries','asObservable','setStateCache','YUUMI_CONNECTOR_URL_NOT_FOUND','SOCKET_FAILED','_logService','DATA_SOURCE_TOO_LARGE','DocCollaborationEntity','_configService','disposeWithMe','BuiltInUIPart','DeleteRangeMoveUpCommandId','Unknown\x20user','LICENSE_MAX_UNITS_EXCEEDED','_cursors','ENTITLE_NEED_BILLING_ADDRESS','_collabCursorState$','m2Prime','setShapeProps','UNDEFINED','jiqing.500','_entities','_eventUnsubscribe','LocaleService','collabStatus.fetchMiss','UNIVER_SHEET','fillStyle','useRef','createIdentifier','roomMembers','location','debug','_dataLoaderService','_lastResponseTimestamp','LICENSE_DISTRO_REJECTED','green.600','executionId','_textBubble','enableLocalCache','findNodePositionByCharIndex','NodePositionConvertToCursor','_context','toStringTag','_setFormulaLimitStatus','_initEntityListener','defineProperty','deepClone','getCurrentRevOfUnit','_heartbeatTimer','disableLocalCache','/universer-api/license/formula/limit/done','resize','on-line-icon_clip0_910_349','runOnServer','YUUMI_TABLE_NOT_FOUND_IN_UNIT','InsertRangeMoveDownCommandId','pipe','1776800CuQLVC','Disposable','pluginName','triggerDblclick','LOCAL_CACHE_INTERVAL','getCurrentSelections','_colorAssignService','measureText','_startDocCollabCursor','INVITE_CODE_ALREADY_BOUND','transformStateCache','_selfUnitIDs','_backgroundColor','_cursorInfo$','_docStateChangeManagerService','transformMutationsWithChangeset','saveImage','body','join','random','unitId','serializeRangeWithSheet','REDEMPTION_CODE_NOT_STARTED','_docSkeleton','redoState','set','_localCacheService','ONLINE','setItem','IRemoteInstanceService','_ensureSubject','REDEMPTION_CODE_HAS_BEEN_CREATED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','history','sheetID','activeSheet$','font','add','LICENSE_IMPORT_SIZE_EXCEEDED','Failed','_disabled','string','IUIPartsService','_checkCalculationAvailable','AUTHORIZE_CODE_ILLEGAL','toDisposable','clipPath','_name','/universer-api/license/formula/limit/status','YUUMI_ASYNCIO_CANCELLED','getSheetObject','idSuffix','_onRefRangeChange','_toggleOffline','restore','_docTransformSelectionsService','_docTransformIMECacheService','FETCH_MISS','docStateChange$','SOCKET_FAILED_RETRY','YUUMI_URL_COL_OUT_OF_RANGE','min','selection','MemberService','APPLY_REJECT','MOBILE_HAS_BEEN_BOUND','isArray','DEFAULT_WS_SESSION_TICKET_URL','useDependency','memberID','_shapes','replaceState','_roomMembers$','2MmSLvF','CollaborationUIEventId','UPDATE_CURSOR','NO_OTHER_CLIENTS_EDITING','getColorFromTheme','event$','off-line-icon','APPLY_NON_SEQUENTIAL_REVISION','RegularPolygon','_colorIndex','delete','INVALID_INVITE_CODE','1302501uPzRBA','focused$','generateRandomId','SetWorksheetActivateCommand','getUnitStatus$','REDEMPTION_INVALID_CODE','CONFLICT','_unitOnClients','_themeService','NOT_FOUND','attrs','_injector','getColor','SheetSkeletonManagerService','_hover','[Unhandled\x20Rejection]:\x20','socket$','_docClipboardService','none','_id','_send','clearTimeout','INTERNAL_ERROR','_draw','REDEMPTION_CODE_INACTIVE','updateOfflineData','arc','TEXT','fill','getActiveRange','APPLY_REVISION_CONFILICT','_renderManagerService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','WebURLService','invokeId','NodePositionConvertToRectRange','beforeCommandExecuted','Rect','post','search','MOBILE_VERIFY_CODE_MISMATCH','bind','getParam','includes','DocStateChangeManagerService','IRenderManagerService','0\x200\x2016\x2016','DocIMEInputManagerService','CollaborationEvent','_entityInit$','toRgbString','_showGuardMessage','_transformUndoRedoStack','PERMISSION_DENIED','CollaborationSessionService','saveOfflineData','_memberID','SNAPSHOT_HAS_BEEN_REMOVED','getMemberID','getMember','INVITE_CODE_HAS_BEEN_UES','USER_IS_ANONYMOUS','mergeOverrideWithDependencies','_initCommandExecutedListener','moveTo','get','Tools','CollaborationController','_pollingInterval','debounceTime','getFocusedUnit','_sheetSkeletonManagerService','_uploadLog','syncEditingCollabCursor','ILocalCacheService','formula.calculation.started','IImageIoService','_initUserListener','0\x200\x2017\x2016','stageInfo','setTimeout','_syncEditingCollabCursorService','_currentUsage','stringify','_removeClearOtherTimer','...','next','/universer-api/frontend/logs','children','_toggleOnline','column','DesktopCollaborationStatusDisplayController','ENSURE_SNAPSHOT_EXECUTION','isTransformMutationsWithChangesetSuccess','LOGIN_FAILED','ALREADY_EXISTS','exhaustSavingTask','addHandlerCallback','_hideTimer','_removeCollabCursors','addClipboardHook','ILogService','getSheetBySheetId','_checkAndWaitForCalculationPermission','enableFrontendLog','useCallback','_labelPosition','TOO_MANY_REQUESTS','_drawTextRange','USER_NOT_FOUND','jsx','_getAnchorBounding','unload','_registerRenderDependencies','fillText','unsubscribe','complete','isFormulaId','row','useObservable','getCurrentUnitForType','_startCalculationLimit','CollaborationStatus','getSheetId','currentColor','UniverIcon','size','subUnitId','getCellMatrix','source','_initResize','UnitStatus','isActive','_anchorDot','IMessageService','267848qhagHv','_initDependencies','toString','TEXT_RANGE_LAYER_INDEX','654951OnUocd','endRow','reconnect','createInstance','fillRule','PY_RUNTIME_SCRIPT_ERROR','startRow','1em','length','_maxFormulaLimit','onTransformChange$','from','startColumn','values','collab-text-anchor-','SetFormulaCalculationNotificationMutation','hide','DOC_RANGE_TYPE','stack','black','getUnhiddenWorksheets','_collaborationSessionService','IConfigService','collabCursorState$','UniverInstanceType','unitID','loadOfflineData','color','Workbook','555749uQfBmD','CLOSE_ROOM','_scene','_initStatusComponent','_univerInstanceService','VIEW_MAIN','_refreshCollabCursors','_refRangeService','_color','_handleHeartbeatEvent','INVITE_CODE_REQUIRED','_messageService'];_0x18b8=function(){return _0x1859ed;};return _0x18b8();}
|
|
1
|
+
'use strict';const _0x4c4685=_0x1c17;(function(_0x1050a7,_0x4201e3){const _0x24a91b=_0x1c17,_0x12e674=_0x1050a7();while(!![]){try{const _0x3c22c9=parseInt(_0x24a91b(0x3d1))/0x1*(parseInt(_0x24a91b(0x3fa))/0x2)+-parseInt(_0x24a91b(0x1a8))/0x3*(-parseInt(_0x24a91b(0x23f))/0x4)+-parseInt(_0x24a91b(0x27d))/0x5*(parseInt(_0x24a91b(0x235))/0x6)+parseInt(_0x24a91b(0x404))/0x7+-parseInt(_0x24a91b(0x257))/0x8*(parseInt(_0x24a91b(0x369))/0x9)+parseInt(_0x24a91b(0x27e))/0xa+-parseInt(_0x24a91b(0x1a6))/0xb*(parseInt(_0x24a91b(0x2a2))/0xc);if(_0x3c22c9===_0x4201e3)break;else _0x12e674['push'](_0x12e674['shift']());}catch(_0x5f33d3){_0x12e674['push'](_0x12e674['shift']());}}}(_0x392f,0x84764));var Xe=Object[_0x4c4685(0x1f3)],Ke=(_0xa4edc9,_0x25c41c,_0x5ef9c5)=>_0x25c41c in _0xa4edc9?Xe(_0xa4edc9,_0x25c41c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ef9c5}):_0xa4edc9[_0x25c41c]=_0x5ef9c5,_=(_0x2fde65,_0x49602e,_0x2511b6)=>Ke(_0x2fde65,typeof _0x49602e!=_0x4c4685(0x1ad)?_0x49602e+'':_0x49602e,_0x2511b6);Object[_0x4c4685(0x1f3)](exports,Symbol[_0x4c4685(0x214)],{'value':_0x4c4685(0x2c4)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x30dec1,..._0x22af3a}){const _0x3262ed=_0x4c4685,{icon:_0x53a361,id:_0x11f80d,className:_0x5ee08a,extend:_0x17f146,..._0xf06b4f}=_0x22af3a,_0x47dcdc=(_0x3262ed(0x34b)+_0x11f80d+'\x20'+(_0x5ee08a||''))[_0x3262ed(0x375)](),_0x2df801=A['useRef']('_'+Qe());return $e(_0x53a361,''+_0x11f80d,{'defIds':_0x53a361[_0x3262ed(0x413)],'idSuffix':_0x2df801[_0x3262ed(0x3d4)]},{'ref':_0x30dec1,'className':_0x47dcdc,..._0xf06b4f},_0x17f146);}function $e(_0x46a1d6,_0x132bb1,_0x3138e4,_0x2c7542,_0x5d0c8c){const _0xf65714=_0x4c4685;return A[_0xf65714(0x1d1)](_0x46a1d6[_0xf65714(0x3cc)],{'key':_0x132bb1,...Je(_0x46a1d6,_0x3138e4,_0x5d0c8c),..._0x2c7542},(Ze(_0x46a1d6,_0x3138e4)[_0xf65714(0x2c3)]||[])['map']((_0x5b6d9a,_0xec6570)=>$e(_0x5b6d9a,_0x132bb1+'-'+_0x46a1d6[_0xf65714(0x3cc)]+'-'+_0xec6570,_0x3138e4,void 0x0,_0x5d0c8c)));}function Je(_0x8a7df4,_0x53aefe,_0x41a827){const _0x33dd11=_0x4c4685,_0x5c9026={..._0x8a7df4[_0x33dd11(0x200)]};_0x41a827!=null&&_0x41a827['colorChannel1']&&_0x5c9026['fill']===_0x33dd11(0x22e)&&(_0x5c9026['fill']=_0x41a827[_0x33dd11(0x22e)]),_0x8a7df4['tag']===_0x33dd11(0x2f4)&&_0x5c9026['id']&&(_0x5c9026['id']=_0x5c9026['id']+_0x53aefe['idSuffix']),Object[_0x33dd11(0x231)](_0x5c9026)[_0x33dd11(0x258)](([_0xf90380,_0x251b7e])=>{const _0x4f8568=_0x33dd11;_0xf90380===_0x4f8568(0x2f4)&&typeof _0x251b7e==_0x4f8568(0x30b)&&(_0x5c9026[_0xf90380]=_0x251b7e['replace'](/url\(#(.*)\)/,_0x4f8568(0x29e)+_0x53aefe['idSuffix']+')'));});const {defIds:_0x3a76fe}=_0x53aefe;return!_0x3a76fe||_0x3a76fe[_0x33dd11(0x393)]===0x0||(_0x8a7df4[_0x33dd11(0x3cc)]==='use'&&_0x5c9026[_0x33dd11(0x246)]&&(_0x5c9026[_0x33dd11(0x246)]=_0x5c9026[_0x33dd11(0x246)]+_0x53aefe[_0x33dd11(0x3c4)]),Object['entries'](_0x5c9026)['forEach'](([_0x4489e1,_0x4aa347])=>{const _0x47d1a1=_0x33dd11;typeof _0x4aa347=='string'&&(_0x5c9026[_0x4489e1]=_0x4aa347[_0x47d1a1(0x3f8)](/url\(#(.*)\)/,_0x47d1a1(0x29e)+_0x53aefe['idSuffix']+')'));})),_0x5c9026;}function Ze(_0x1ef044,_0x2677ea){const _0x2eb629=_0x4c4685;var _0x21cd08;const {defIds:_0x2c72a1}=_0x2677ea;return!_0x2c72a1||_0x2c72a1[_0x2eb629(0x393)]===0x0?_0x1ef044:_0x1ef044[_0x2eb629(0x3cc)]===_0x2eb629(0x3e7)&&((_0x21cd08=_0x1ef044[_0x2eb629(0x2c3)])!=null&&_0x21cd08[_0x2eb629(0x393)])?{..._0x1ef044,'children':_0x1ef044[_0x2eb629(0x2c3)][_0x2eb629(0x36a)](_0x29c5d5=>typeof _0x29c5d5[_0x2eb629(0x200)]['id']=='string'&&_0x2c72a1&&_0x2c72a1[_0x2eb629(0x34c)](_0x29c5d5[_0x2eb629(0x200)]['id'])?{..._0x29c5d5,'attrs':{..._0x29c5d5[_0x2eb629(0x200)],'id':_0x29c5d5[_0x2eb629(0x200)]['id']+_0x2677ea[_0x2eb629(0x3c4)]}}:_0x29c5d5)}:_0x1ef044;}function Qe(){const _0x3bc14e=_0x4c4685;return Math['random']()[_0x3bc14e(0x173)](0x24)[_0x3bc14e(0x429)](0x2,0x8);}Te[_0x4c4685(0x209)]=_0x4c4685(0x283);const et={'tag':_0x4c4685(0x337),'attrs':{'xmlns':_0x4c4685(0x1e6),'fill':_0x4c4685(0x41c),'viewBox':_0x4c4685(0x376),'width':_0x4c4685(0x3c7),'height':_0x4c4685(0x3c7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'stroke':_0x4c4685(0x1ff),'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':_0x4c4685(0x3d8),'strokeLinejoin':_0x4c4685(0x3d8),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'fill':_0x4c4685(0x3eb),'d':_0x4c4685(0x317)}}]}]}],'defIds':[_0x4c4685(0x342)]},xe=A['forwardRef'](function(_0x2e674f,_0x486c6e){const _0x5c4c29=_0x4c4685;return A[_0x5c4c29(0x1d1)](Te,Object[_0x5c4c29(0x2e0)]({},_0x2e674f,{'id':'off-line-icon','ref':_0x486c6e,'icon':et}));});xe['displayName']=_0x4c4685(0x426);const tt={'tag':_0x4c4685(0x337),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4c4685(0x41c),'viewBox':_0x4c4685(0x33e),'width':_0x4c4685(0x3c7),'height':_0x4c4685(0x3c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c4685(0x3b5)},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'stroke':_0x4c4685(0x1ff),'d':_0x4c4685(0x2f8),'strokeLinecap':_0x4c4685(0x3d8),'strokeLinejoin':_0x4c4685(0x3d8),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4c4685(0x386),'attrs':{'id':_0x4c4685(0x25d)},'children':[{'tag':_0x4c4685(0x2c1),'attrs':{'fill':_0x4c4685(0x3eb),'d':_0x4c4685(0x317),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4c4685(0x25d)]},Be=A[_0x4c4685(0x261)](function(_0x5655f3,_0x3cd5d0){const _0x459190=_0x4c4685;return A[_0x459190(0x1d1)](Te,Object[_0x459190(0x2e0)]({},_0x5655f3,{'id':_0x459190(0x22a),'ref':_0x3cd5d0,'icon':tt}));});Be[_0x4c4685(0x209)]=_0x4c4685(0x198);function st(_0x34751f){const _0x1032ac=_0x4c4685;switch(_0x34751f){case u['CollaborationStatus'][_0x1032ac(0x30a)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x1032ac(0x38f)]:return _0x1032ac(0x2ed);case u['CollaborationStatus'][_0x1032ac(0x219)]:return _0x1032ac(0x37e);case u[_0x1032ac(0x27f)][_0x1032ac(0x1d5)]:return _0x1032ac(0x19c);case u[_0x1032ac(0x27f)]['AWAITING']:case u[_0x1032ac(0x27f)][_0x1032ac(0x2d0)]:return _0x1032ac(0x2a0);case u[_0x1032ac(0x27f)]['SYNCED']:case u[_0x1032ac(0x27f)][_0x1032ac(0x359)]:return _0x1032ac(0x30f);}}function it(_0x22aca9){const _0x4e2b06=_0x4c4685,{status$:_0x47d4f0}=_0x22aca9,_0x9afe17=O[_0x4e2b06(0x221)](_0x47d4f0,u[_0x4e2b06(0x27f)][_0x4e2b06(0x1d5)]),_0x2c23a5=O[_0x4e2b06(0x183)](a[_0x4e2b06(0x394)]),_0x50c49d=O[_0x4e2b06(0x183)](u[_0x4e2b06(0x35f)]),_0x5b1638=_0x9afe17!==u['CollaborationStatus']['OFFLINE'],_0x45469b=_0x2c23a5['t'](st(_0x9afe17)),_0x2f5a27=_0x5b1638?M[_0x4e2b06(0x296)](Be,{}):M[_0x4e2b06(0x296)](xe,{}),_0x3a8722=A[_0x4e2b06(0x31f)](()=>{const _0x26b2a1=_0x4e2b06;_0x5b1638||_0x50c49d[_0x26b2a1(0x31d)]();},[_0x5b1638,_0x50c49d]);function _0x3d36e0(){const _0x44eb59=_0x4e2b06;return M[_0x44eb59(0x23e)](_0x44eb59(0x3f6),{'className':_0x44eb59(0x1e0),'onClick':_0x3a8722,'children':[M[_0x44eb59(0x296)]('div',{'className':T[_0x44eb59(0x1f9)](_0x44eb59(0x270),{'univer-text-green-500':_0x5b1638,'univer-text-red-500':!_0x5b1638}),'children':_0x2f5a27}),M[_0x44eb59(0x296)](_0x44eb59(0x3f6),{'className':_0x44eb59(0x38a),'children':_0x45469b})]});}return _0x5b1638?_0x3d36e0():M[_0x4e2b06(0x296)](T[_0x4e2b06(0x39c)],{'title':_0x2c23a5['t'](_0x4e2b06(0x3f5)),'children':_0x3d36e0()});}var nt=Object[_0x4c4685(0x1b0)],rt=(_0x3f9460,_0x46d2e9,_0x3ac6b3,_0x260998)=>{const _0x2f8428=_0x4c4685;for(var _0x3cd047=_0x260998>0x1?void 0x0:_0x260998?nt(_0x46d2e9,_0x3ac6b3):_0x46d2e9,_0x296e22=_0x3f9460[_0x2f8428(0x393)]-0x1,_0x441ce9;_0x296e22>=0x0;_0x296e22--)(_0x441ce9=_0x3f9460[_0x296e22])&&(_0x3cd047=_0x441ce9(_0x3cd047)||_0x3cd047);return _0x3cd047;},K=(_0x4c4f6a,_0x3ceb73)=>(_0xa23399,_0x5068be)=>_0x3ceb73(_0xa23399,_0x5068be,_0x4c4f6a);exports[_0x4c4685(0x340)]=class extends a['Disposable']{constructor(_0x34a69a,_0x43882b,_0x2b70e0,_0x356444){const _0xecd485=_0x4c4685;super(),_(this,_0xecd485(0x384),new I[(_0xecd485(0x37d))](u[_0xecd485(0x27f)][_0xecd485(0x1d5)])),(this[_0xecd485(0x175)]=_0x34a69a,this['_injector']=_0x43882b,this['_collaborationController']=_0x2b70e0,this[_0xecd485(0x34e)]=_0x356444,this['_initStatusComponent'](),this[_0xecd485(0x313)]());}[_0x4c4685(0x313)](){const _0x552858=_0x4c4685;this[_0x552858(0x1c2)](this[_0x552858(0x175)][_0x552858(0x2b3)][_0x552858(0x249)](I[_0x552858(0x225)](()=>{const _0xc701b3=_0x552858,_0x246c10=this[_0xc701b3(0x175)][_0xc701b3(0x2e6)]();return _0x246c10?this[_0xc701b3(0x362)]['getCollabEntity$'](_0x246c10[_0xc701b3(0x1ca)]()):I['of'](null);}),I[_0x552858(0x225)](_0x424cf5=>_0x424cf5?_0x424cf5['status$']:I['of'](u[_0x552858(0x27f)][_0x552858(0x1d5)])))['subscribe'](_0x38c236=>{const _0x5952b2=_0x552858;this['_status$'][_0x5952b2(0x215)](_0x38c236);}));}[_0x4c4685(0x336)](){const _0x21403d=_0x4c4685;this[_0x21403d(0x1c2)](this['_uiPartsService'][_0x21403d(0x37b)](O[_0x21403d(0x2b4)][_0x21403d(0x1db)],()=>O[_0x21403d(0x213)](ot({'status$':this[_0x21403d(0x384)][_0x21403d(0x3d0)]()}),this[_0x21403d(0x28a)])));}},exports[_0x4c4685(0x340)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),K(0x2,a[_0x4c4685(0x414)](u[_0x4c4685(0x1f2)])),K(0x3,O[_0x4c4685(0x230)])],exports[_0x4c4685(0x340)]);function ot(_0x4287eb){const {status$:_0x4297f1}=_0x4287eb;return function(){const _0x31ff1f=_0x1c17;return M[_0x31ff1f(0x296)](it,{'status$':_0x4297f1});};}const Oe=a[_0x4c4685(0x276)]('uni.network.url-service');var at=Object[_0x4c4685(0x1b0)],ct=(_0x16fb93,_0x65d475,_0x3e8bdd,_0x208a83)=>{const _0x2766a5=_0x4c4685;for(var _0x466214=_0x208a83>0x1?void 0x0:_0x208a83?at(_0x65d475,_0x3e8bdd):_0x65d475,_0x55dfd0=_0x16fb93[_0x2766a5(0x393)]-0x1,_0x19df76;_0x55dfd0>=0x0;_0x55dfd0--)(_0x19df76=_0x16fb93[_0x55dfd0])&&(_0x466214=_0x19df76(_0x466214)||_0x466214);return _0x466214;},Y=(_0x4aa573,_0x1ed546)=>(_0x315e30,_0x179963)=>_0x1ed546(_0x315e30,_0x179963,_0x4aa573);exports[_0x4c4685(0x1ec)]=class extends a[_0x4c4685(0x303)]{constructor(_0x1d9ae8,_0x504ce5,_0xe15e0,_0x4dd06e,_0x54dbde){const _0x1b3dde=_0x4c4685;super(),this[_0x1b3dde(0x347)]=_0x1d9ae8,this[_0x1b3dde(0x228)]=_0x504ce5,this['_commandService']=_0xe15e0,this[_0x1b3dde(0x24f)]=_0x4dd06e,_0x54dbde?_0x54dbde==null||_0x54dbde[_0x1b3dde(0x3b9)]()[_0x1b3dde(0x382)](()=>this[_0x1b3dde(0x16e)]()):(this['_logService']['debug'](_0x1b3dde(0x354),_0x1b3dde(0x2b5)),this[_0x1b3dde(0x16e)]());}async[_0x4c4685(0x16e)](){const _0x5ef6bb=_0x4c4685,_0x3ba6f3=this[_0x5ef6bb(0x347)][_0x5ef6bb(0x42b)](_0x5ef6bb(0x2ad)),_0x4672c0=this['_urlService'][_0x5ef6bb(0x42b)]('type'),_0x2e5fd1=this[_0x5ef6bb(0x347)][_0x5ef6bb(0x42b)]('subunit');if(!_0x3ba6f3||!_0x4672c0){this[_0x5ef6bb(0x228)][_0x5ef6bb(0x2a7)](_0x5ef6bb(0x354),_0x5ef6bb(0x35b));return;}const _0x1486fe=await this['_dataLoaderService'][_0x5ef6bb(0x1fd)](_0x3ba6f3,Number(_0x4672c0),_0x2e5fd1);_0x1486fe&&_0x1486fe instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x1486fe);}async[_0x4c4685(0x267)](_0x79950c){const _0x540de1=_0x4c4685;await this['_updateSubUnitFromURLParams'](_0x79950c),_0x79950c[_0x540de1(0x360)][_0x540de1(0x249)](I[_0x540de1(0x206)](this['dispose$']))[_0x540de1(0x2e5)](_0x20f653=>{const _0x53a153=_0x540de1;_0x20f653&&this[_0x53a153(0x40b)](_0x20f653);}),this[_0x540de1(0x347)][_0x540de1(0x30d)][_0x540de1(0x249)](I[_0x540de1(0x206)](this[_0x540de1(0x374)]))['subscribe'](()=>this[_0x540de1(0x38c)](_0x79950c));}[_0x4c4685(0x40b)](_0x450f98,_0xc2bef9=!0x1){const _0x1453bd=_0x4c4685,_0x530f98=this['_urlService'][_0x1453bd(0x42b)](_0x1453bd(0x1cb));_0x450f98[_0x1453bd(0x1a9)]()!==_0x530f98&&this[_0x1453bd(0x347)][_0x1453bd(0x1b3)](_0x1453bd(0x1cb),_0x450f98['getSheetId'](),_0xc2bef9);}async['_updateSubUnitFromURLParams'](_0x4421d){const _0x2819b8=_0x4c4685;var _0x32a786;const _0x502f1a=this[_0x2819b8(0x347)][_0x2819b8(0x42b)]('subunit');if(!_0x502f1a||!_0x4421d[_0x2819b8(0x226)](_0x502f1a)){const _0x5ace54=_0x4421d['getUnhiddenWorksheets']()[0x0],_0x5ed48d=_0x4421d[_0x2819b8(0x226)](_0x5ace54);if(!_0x5ed48d)return;this[_0x2819b8(0x40b)](_0x5ed48d,!0x0),await this['_commandService'][_0x2819b8(0x18b)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4421d[_0x2819b8(0x1ca)](),'subUnitId':_0x5ace54});return;}((_0x32a786=_0x4421d['getActiveSheet']())==null?void 0x0:_0x32a786[_0x2819b8(0x1a9)]())!==_0x502f1a&&await this['_commandService']['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4421d[_0x2819b8(0x1ca)](),'subUnitId':_0x502f1a});}},exports[_0x4c4685(0x1ec)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4c4685(0x259)]),Y(0x2,a[_0x4c4685(0x3c5)]),Y(0x3,a['Inject'](u[_0x4c4685(0x3d2)])),Y(0x4,a[_0x4c4685(0x326)](qe[_0x4c4685(0x207)]))],exports[_0x4c4685(0x1ec)]);var lt=Object[_0x4c4685(0x1b0)],_t=(_0x1c22d6,_0x1f7474,_0xd67b35,_0x36d377)=>{const _0x53f2b0=_0x4c4685;for(var _0x1bdc9b=_0x36d377>0x1?void 0x0:_0x36d377?lt(_0x1f7474,_0xd67b35):_0x1f7474,_0x109fbd=_0x1c22d6[_0x53f2b0(0x393)]-0x1,_0x1959fa;_0x109fbd>=0x0;_0x109fbd--)(_0x1959fa=_0x1c22d6[_0x109fbd])&&(_0x1bdc9b=_0x1959fa(_0x1bdc9b)||_0x1bdc9b);return _0x1bdc9b;},De=(_0x2a2465,_0x527c1f)=>(_0x12c7aa,_0x58f4d7)=>_0x527c1f(_0x12c7aa,_0x58f4d7,_0x2a2465);let me=class extends a[_0x4c4685(0x303)]{constructor(_0x1dce7e,_0x2b7bf6){const _0x57cba8=_0x4c4685;super(),this[_0x57cba8(0x40c)]=_0x1dce7e,this[_0x57cba8(0x31c)]=_0x2b7bf6,this[_0x57cba8(0x16e)]();}[_0x4c4685(0x16e)](){const _0x49ef6f=_0x4c4685,_0x41725=this;this[_0x49ef6f(0x1c2)](this[_0x49ef6f(0x40c)][_0x49ef6f(0x3ab)]({'onBeforePasteImage':async _0x2dc4dd=>{const _0x38132a=_0x49ef6f,_0x584e67=await _0x41725[_0x38132a(0x31c)][_0x38132a(0x178)](_0x2dc4dd);return _0x584e67?{'source':_0x584e67['source'],'imageSourceType':_0x584e67[_0x38132a(0x2ba)]}:null;}}));}};me=_t([De(0x0,p[_0x4c4685(0x26f)]),De(0x1,ze[_0x4c4685(0x3aa)])],me);const Ne=[_0x4c4685(0x363),_0x4c4685(0x28e),'green.600',_0x4c4685(0x1b5),_0x4c4685(0x39e),_0x4c4685(0x1e1)];class Re extends a[_0x4c4685(0x25e)]{constructor(){const _0x3a7def=_0x4c4685;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x3a7def(0x31a),0x0);}[_0x4c4685(0x21d)](_0x27e2f0){const _0x230b10=_0x4c4685;if(this[_0x230b10(0x23c)][_0x230b10(0x39b)](_0x27e2f0))return this[_0x230b10(0x23c)][_0x230b10(0x418)](_0x27e2f0);const _0x178ddf=Ne[this[_0x230b10(0x31a)]];return this[_0x230b10(0x31a)]=(this['_colorIndex']+0x1)%Ne[_0x230b10(0x393)],this[_0x230b10(0x23c)][_0x230b10(0x1d4)](_0x27e2f0,_0x178ddf),_0x178ddf;}}function Fe(_0x103de2){const _0x2db1a8=_0x4c4685;let _0x1f78de='';for(const _0x14426d of _0x103de2){const {startOffset:_0x1e485f,endOffset:_0x4abcf5,isActive:_0x301300,rangeType:_0x1d40a2,segmentId:_0x1ab3c4,segmentPage:_0x4f1f11}=_0x14426d;_0x1f78de[_0x2db1a8(0x393)]&&(_0x1f78de+=','),_0x1f78de+=_0x1e485f+':'+_0x4abcf5+':'+(_0x301300?'1':'0')+':'+_0x1d40a2+':'+_0x1ab3c4+':'+_0x4f1f11;}return _0x1f78de;}function ht(_0x4a3bc4){const _0x143983=_0x4c4685,_0x198ead=_0x4a3bc4[_0x143983(0x32d)](','),_0x1ea64b=[];for(const _0x7e6ce0 of _0x198ead){const [_0x347cc8,_0x2fba98,_0x406b68,_0x496dcb,_0x15e0a2,_0x100c97]=_0x7e6ce0['split'](':');_0x1ea64b[_0x143983(0x2cc)]({'startOffset':Number(_0x347cc8),'endOffset':Number(_0x2fba98),'collapsed':_0x347cc8===_0x2fba98,'isActive':_0x406b68==='1','rangeType':_0x496dcb===a['DOC_RANGE_TYPE'][_0x143983(0x1d8)]?a['DOC_RANGE_TYPE'][_0x143983(0x1d8)]:a[_0x143983(0x38d)]['RECT'],'segmentId':typeof _0x15e0a2==_0x143983(0x30b)?String(_0x15e0a2):'','segmentPage':Number(_0x100c97!=null?_0x100c97:-0x1)});}return _0x1ea64b[_0x143983(0x3ff)](_0x4b0154=>_0x4b0154[_0x143983(0x3de)])||(_0x1ea64b[0x0][_0x143983(0x3de)]=!0x0),_0x1ea64b;}class be extends a[_0x4c4685(0x303)]{constructor(){const _0x4e6111=_0x4c4685;super(...arguments),_(this,_0x4e6111(0x344),new I[(_0x4e6111(0x37d))](null)),_(this,_0x4e6111(0x3bf),this[_0x4e6111(0x344)][_0x4e6111(0x3d0)]());}[_0x4c4685(0x1b7)](_0x17de45){const _0x5df2f1=_0x4c4685,{unitID:_0x4a2e23,memberID:_0x472eb4,textRanges:_0x161eb8}=_0x17de45,_0x4ffc95=Fe(_0x161eb8);if(_0x4ffc95==='')return;const _0x1db795={'unitID':_0x4a2e23,'memberID':_0x472eb4,'selection':_0x4ffc95};this[_0x5df2f1(0x344)]['next'](_0x1db795);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x55c343,_0x19e5a8,_0x3a9060,_0x2b49e5)=>{for(var _0x48c2c2=_0x2b49e5>0x1?void 0x0:_0x2b49e5?ut(_0x19e5a8,_0x3a9060):_0x19e5a8,_0x379ebd=_0x55c343['length']-0x1,_0x1103f0;_0x379ebd>=0x0;_0x379ebd--)(_0x1103f0=_0x55c343[_0x379ebd])&&(_0x48c2c2=_0x1103f0(_0x48c2c2)||_0x48c2c2);return _0x48c2c2;},U=(_0x5aa6c4,_0x301fc3)=>(_0x3fb83a,_0x53add2)=>_0x301fc3(_0x3fb83a,_0x53add2,_0x5aa6c4);const dt=0x12c,St=0x64;let ve=class extends a[_0x4c4685(0x303)]{constructor(_0x1b57f0,_0x17a2cc,_0xad4e61,_0x2da9c5,_0x78b4a0,_0x1275da,_0x747fa0,_0xbc2919,_0x3bd5c2){const _0x4242bf=_0x4c4685;super(),_(this,_0x4242bf(0x2a5),!0x1),_(this,_0x4242bf(0x16e),!0x1),_(this,_0x4242bf(0x1fa),new I['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this[_0x4242bf(0x1fa)][_0x4242bf(0x3d0)]()),_(this,_0x4242bf(0x3e0),new I[(_0x4242bf(0x37d))]([])),_(this,'roomMembers$',this[_0x4242bf(0x3e0)][_0x4242bf(0x249)](I[_0x4242bf(0x2b8)](dt))),_(this,'_updateLocalCursor',a[_0x4242bf(0x3d9)](_0xeaef88=>{const _0x20cb1b=_0x4242bf,_0x6a1632={'eventID':g[_0x20cb1b(0x319)][_0x20cb1b(0x390)],'data':{'unitID':this[_0x20cb1b(0x179)],'memberID':this[_0x20cb1b(0x1d2)]['getMemberID'](),'selection':Fe(_0xeaef88)}};this[_0x20cb1b(0x1d2)][_0x20cb1b(0x39d)](_0x6a1632,this[_0x20cb1b(0x179)]);},St)),(this[_0x4242bf(0x179)]=_0x1b57f0,this[_0x4242bf(0x1d2)]=_0x17a2cc,this[_0x4242bf(0x28a)]=_0xad4e61,this[_0x4242bf(0x1b6)]=_0x2da9c5,this[_0x4242bf(0x403)]=_0x78b4a0,this[_0x4242bf(0x381)]=_0x1275da,this[_0x4242bf(0x2f6)]=_0x747fa0,this['_univerInstanceService']=_0xbc2919,this[_0x4242bf(0x25a)]=_0x3bd5c2);}get[_0x4c4685(0x297)](){const _0x10f0d0=_0x4c4685;return this[_0x10f0d0(0x1fa)][_0x10f0d0(0x2f1)]();}get[_0x4c4685(0x341)](){const _0xe54ff2=_0x4c4685;return this[_0xe54ff2(0x3e0)][_0xe54ff2(0x2f1)]();}[_0x4c4685(0x3d3)](){const _0x5712e8=_0x4c4685;super['dispose'](),this['_cursorInfo$'][_0x5712e8(0x215)](new Map()),this['_cursorInfo$']['complete'](),this[_0x5712e8(0x3e0)][_0x5712e8(0x215)]([]),this['_roomMembers$'][_0x5712e8(0x27b)]();}['init'](){const _0x5e7853=_0x4c4685;this['_init']||(this[_0x5e7853(0x16e)]=!0x0,this[_0x5e7853(0x1d2)][_0x5e7853(0x332)][_0x5e7853(0x249)](I[_0x5e7853(0x206)](this[_0x5e7853(0x374)]))[_0x5e7853(0x2e5)](_0x3731fa=>{const _0xcf8a32=_0x5e7853;_0x3731fa===u[_0xcf8a32(0x2cf)][_0xcf8a32(0x1ef)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x5e7853(0x1d2)][_0x5e7853(0x2dd)][_0x5e7853(0x249)](I['takeUntil'](this[_0x5e7853(0x374)]))['subscribe'](_0x1989aa=>{const _0x257870=_0x5e7853,_0xd4b5aa=_0x1989aa['eventID'];_0xd4b5aa===g[_0x257870(0x319)][_0x257870(0x390)]&&this[_0x257870(0x24b)](_0x1989aa),_0xd4b5aa===g[_0x257870(0x319)]['USERS_LEAVE']&&this[_0x257870(0x34d)](_0x1989aa);}),this[_0x5e7853(0x1c2)](this[_0x5e7853(0x25a)][_0x5e7853(0x17a)](_0x3e9489=>{const _0x44e2d7=_0x5e7853,_0x3b8127=_0x3e9489[_0x44e2d7(0x18a)];_0x3b8127!=null&&this[_0x44e2d7(0x2a5)]&&_0x3e9489['id']===V['SetTextSelectionsOperation']['id']&&_0x3b8127[_0x44e2d7(0x1a1)]===this[_0x44e2d7(0x179)]&&_0x3b8127['isEditing']===!0x1&&_0x3b8127[_0x44e2d7(0x1df)][_0x44e2d7(0x393)]>0x0&&this['_updateLocalCursor'](_0x3b8127[_0x44e2d7(0x1df)]);})),this[_0x5e7853(0x381)][_0x5e7853(0x3bf)][_0x5e7853(0x249)](I[_0x5e7853(0x206)](this[_0x5e7853(0x374)]))['subscribe'](_0x46f691=>{const _0x232013=_0x5e7853;if((_0x46f691==null?void 0x0:_0x46f691[_0x232013(0x179)])!==this[_0x232013(0x179)])return;const _0xf67cc={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x46f691};this[_0x232013(0x24b)](_0xf67cc);}),this[_0x5e7853(0x1c2)](this[_0x5e7853(0x25a)]['onCommandExecuted'](_0x32f516=>{const _0x57dc7e=_0x5e7853;if(_0x32f516[_0x57dc7e(0x18a)]==null)return;const _0x373edd=_0x32f516[_0x57dc7e(0x18a)];if(_0x32f516['id']!==V[_0x57dc7e(0x2fb)]['id']||_0x373edd['unitId']!==this[_0x57dc7e(0x179)])return;const _0x3c8a1a={'id':_0x57dc7e(0x3b3),'params':_0x373edd},_0x4dc5a9=this[_0x57dc7e(0x297)];for(const [_0x227916,_0x34b384]of _0x4dc5a9){const _0xccf91f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x57dc7e(0x179)],'actions':null,'textRanges':_0x34b384['ranges']}},_0x4d002d=this[_0x57dc7e(0x2f6)][_0x57dc7e(0x42f)](_0x3c8a1a,_0xccf91f,!0x1);if(g[_0x57dc7e(0x2c0)](_0x4d002d))throw _0x4d002d[_0x57dc7e(0x2c2)];_0x4dc5a9['set'](_0x227916,{..._0x34b384,'ranges':_0x4d002d[_0x57dc7e(0x411)][_0x57dc7e(0x18a)][_0x57dc7e(0x220)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x4dc5a9);});})));}[_0x4c4685(0x24b)](_0x2b3318){const _0x8023d0=_0x4c4685;var _0x5e1b4d,_0x1309a9;const {memberID:_0x2c8450,selection:_0x38fa1b}=_0x2b3318[_0x8023d0(0x339)],_0x567ca1=ht(_0x38fa1b),_0x200858=(_0x1309a9=(_0x5e1b4d=this['_memberService'][_0x8023d0(0x2bc)](this[_0x8023d0(0x179)],_0x2c8450))==null?void 0x0:_0x5e1b4d[_0x8023d0(0x2c8)])!=null?_0x1309a9:'Unknown\x20user',_0x4fa293={'color':this[_0x8023d0(0x1b6)]['assignAColorForMemberID'](_0x2c8450),'name':_0x200858,'ranges':_0x567ca1},_0x3dca90=this[_0x8023d0(0x297)];_0x3dca90['set'](_0x2c8450,_0x4fa293),this[_0x8023d0(0x1fa)][_0x8023d0(0x215)](_0x3dca90);}[_0x4c4685(0x34d)](_0x37cd76){const _0x2a1f06=_0x4c4685,{memberID:_0x2df331}=_0x37cd76[_0x2a1f06(0x339)],_0x213988=this['cursorInfo'];_0x213988[_0x2a1f06(0x1be)](_0x2df331),this[_0x2a1f06(0x1fa)][_0x2a1f06(0x215)](_0x213988);}[_0x4c4685(0x1ee)](){const _0x2ce5c1=_0x4c4685;var _0x542f91;if(this[_0x2ce5c1(0x2a5)]=!0x0,((_0x542f91=this[_0x2ce5c1(0x175)][_0x2ce5c1(0x2e6)]())==null?void 0x0:_0x542f91[_0x2ce5c1(0x1ca)]())!==this[_0x2ce5c1(0x179)])return;const _0x179ff8=this[_0x2ce5c1(0x28a)][_0x2ce5c1(0x418)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x2ce5c1(0x2bf)](_0x179ff8)&&_0x179ff8[_0x2ce5c1(0x393)]>0x0&&this[_0x2ce5c1(0x19b)](_0x179ff8);}[_0x4c4685(0x329)](){const _0x15c2f2=_0x4c4685;this[_0x15c2f2(0x2a5)]=!0x1;}};ve=It([U(0x2,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),U(0x3,a[_0x4c4685(0x414)](Re)),U(0x4,a[_0x4c4685(0x414)](u[_0x4c4685(0x2e4)])),U(0x5,a[_0x4c4685(0x414)](be)),U(0x6,g[_0x4c4685(0x279)]),U(0x7,a[_0x4c4685(0x19d)]),U(0x8,a[_0x4c4685(0x3c5)])],ve);function _0x1c17(_0x202f99,_0x4d8bc4){const _0x392f0e=_0x392f();return _0x1c17=function(_0x1c1723,_0x559fc1){_0x1c1723=_0x1c1723-0x16c;let _0x4329d6=_0x392f0e[_0x1c1723];return _0x4329d6;},_0x1c17(_0x202f99,_0x4d8bc4);}var ft=Object[_0x4c4685(0x1b0)],mt=(_0x43f72e,_0x59622a,_0x70278,_0x51b49f)=>{const _0x54ea5c=_0x4c4685;for(var _0x27dbd6=_0x51b49f>0x1?void 0x0:_0x51b49f?ft(_0x59622a,_0x70278):_0x59622a,_0x4fc14d=_0x43f72e[_0x54ea5c(0x393)]-0x1,_0x3203b2;_0x4fc14d>=0x0;_0x4fc14d--)(_0x3203b2=_0x43f72e[_0x4fc14d])&&(_0x27dbd6=_0x3203b2(_0x27dbd6)||_0x27dbd6);return _0x27dbd6;},w=(_0x2b2a9e,_0x4aaff0)=>(_0x56c7d9,_0x5ac920)=>_0x4aaff0(_0x56c7d9,_0x5ac920,_0x2b2a9e);const vt=0x12c,gt=0x64,Et=()=>{let _0x327b39=[],_0x5cae23=!0x1;return _0x3cd75d=>{_0x327b39['push'](_0x3cd75d),_0x5cae23||(_0x5cae23=!0x0,setTimeout(()=>{const _0x54f6b1=_0x1c17;_0x327b39[_0x54f6b1(0x258)](_0x3612aa=>_0x3612aa()),_0x327b39=[],_0x5cae23=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x244741,_0x13b9b4,_0x5c59db,_0x2c15bb,_0x1d7afa,_0x102d0e,_0xd4349b,_0x278806){const _0x1c9b9a=_0x4c4685;super(),_(this,_0x1c9b9a(0x2a5),!0x1),_(this,'_init',!0x1),_(this,_0x1c9b9a(0x1fa),new I[(_0x1c9b9a(0x37d))](new Map())),_(this,_0x1c9b9a(0x2aa),this[_0x1c9b9a(0x1fa)]['asObservable']()),_(this,_0x1c9b9a(0x3e0),new I[(_0x1c9b9a(0x37d))]([])),_(this,_0x1c9b9a(0x3ec),this[_0x1c9b9a(0x3e0)][_0x1c9b9a(0x249)](I[_0x1c9b9a(0x2b8)](vt))),_(this,_0x1c9b9a(0x19b),a[_0x1c9b9a(0x3d9)]((_0x53c6fb,_0x1dac1b)=>{const _0x3a34d7=_0x1c9b9a,_0x2d24cc={'eventID':g[_0x3a34d7(0x319)][_0x3a34d7(0x390)],'data':{'unitID':this[_0x3a34d7(0x179)],'memberID':this[_0x3a34d7(0x1d2)][_0x3a34d7(0x41f)](),'selection':B['serializeRangeWithSheet'](_0x53c6fb,_0x1dac1b[_0x3a34d7(0x20b)])}};this['_session'][_0x3a34d7(0x39d)](_0x2d24cc,this[_0x3a34d7(0x179)]);},gt)),(this[_0x1c9b9a(0x179)]=_0x244741,this['_session']=_0x13b9b4,this[_0x1c9b9a(0x28a)]=_0x5c59db,this[_0x1c9b9a(0x1b6)]=_0x2c15bb,this[_0x1c9b9a(0x403)]=_0x1d7afa,this[_0x1c9b9a(0x175)]=_0x102d0e,this[_0x1c9b9a(0x25a)]=_0xd4349b,this[_0x1c9b9a(0x17d)]=_0x278806);}get[_0x4c4685(0x297)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x5d017c=_0x4c4685;return this[_0x5d017c(0x3e0)][_0x5d017c(0x2f1)]();}['dispose'](){const _0x497d0d=_0x4c4685;super[_0x497d0d(0x3d3)](),this[_0x497d0d(0x1fa)][_0x497d0d(0x215)](new Map()),this[_0x497d0d(0x1fa)][_0x497d0d(0x27b)](),this[_0x497d0d(0x3e0)]['next']([]),this[_0x497d0d(0x3e0)][_0x497d0d(0x27b)]();}[_0x4c4685(0x2f7)](){const _0x151de9=_0x4c4685;this['_init']||(this['_init']=!0x0,this[_0x151de9(0x1d2)][_0x151de9(0x332)]['pipe'](I[_0x151de9(0x206)](this[_0x151de9(0x374)]))['subscribe'](_0x461757=>{const _0x3219fd=_0x151de9;_0x461757===u[_0x3219fd(0x2cf)][_0x3219fd(0x1ef)]?this[_0x3219fd(0x1ee)]():this[_0x3219fd(0x329)]();}),this['_session'][_0x151de9(0x2dd)][_0x151de9(0x249)](I['takeUntil'](this[_0x151de9(0x374)]))[_0x151de9(0x2e5)](_0x380670=>{const _0x377bfa=_0x151de9,_0x46f7ff=_0x380670[_0x377bfa(0x2c6)];_0x46f7ff===g[_0x377bfa(0x319)][_0x377bfa(0x390)]&&this[_0x377bfa(0x24b)](_0x380670),_0x46f7ff===g[_0x377bfa(0x319)][_0x377bfa(0x33a)]&&this[_0x377bfa(0x34d)](_0x380670);}),this['_onRefRangeChange'](),this[_0x151de9(0x1c2)](this[_0x151de9(0x25a)][_0x151de9(0x17a)](_0x12953e=>{const _0x5bb3ef=_0x151de9;if(this[_0x5bb3ef(0x2a5)]&&_0x12953e['id']===v[_0x5bb3ef(0x2fc)]['id']&&_0x12953e['params']['unitId']===this[_0x5bb3ef(0x179)]){const _0x4734de=_0x12953e[_0x5bb3ef(0x18a)];this['_updateLocalCursor'](_0x4734de[_0x5bb3ef(0x2d1)],_0x4734de[_0x5bb3ef(0x2b2)][0x0]);}})));}['_onCursorUpdate'](_0x2cfc1d){const _0x5c4b24=_0x4c4685;var _0x18c12a,_0x4e4dc1;const {memberID:_0xf24bdf,selection:_0x521700}=_0x2cfc1d['data'],{sheetName:_0x538689,range:_0x2a3612}=B['deserializeRangeWithSheet'](_0x521700),_0x3399a1={'name':(_0x4e4dc1=(_0x18c12a=this[_0x5c4b24(0x403)][_0x5c4b24(0x2bc)](this['unitID'],_0xf24bdf))==null?void 0x0:_0x18c12a[_0x5c4b24(0x2c8)])!=null?_0x4e4dc1:'Unknown\x20user','range':this[_0x5c4b24(0x24a)](_0x538689,_0x2a3612),'sheetID':_0x538689,'color':this['_colorAssignService']['assignAColorForMemberID'](_0xf24bdf),'selection':_0x521700},_0x226ac8=this[_0x5c4b24(0x297)];_0x226ac8['set'](_0xf24bdf,_0x3399a1),this['_cursorInfo$'][_0x5c4b24(0x215)](_0x226ac8);}[_0x4c4685(0x34d)](_0x21f87e){const _0x4d5fd3=_0x4c4685,{memberID:_0x2163cb}=_0x21f87e[_0x4d5fd3(0x339)],_0x2c8870=this['cursorInfo'];_0x2c8870['delete'](_0x2163cb),this[_0x4d5fd3(0x1fa)][_0x4d5fd3(0x215)](_0x2c8870);}[_0x4c4685(0x24a)](_0x420652,_0x50668e){const _0x5317f4=_0x4c4685;var _0x52cf91,_0x4866f4;const _0x34eaca=(_0x4866f4=(_0x52cf91=this[_0x5317f4(0x175)][_0x5317f4(0x3e8)](this['unitID']))==null?void 0x0:_0x52cf91['getSheetBySheetId'](_0x420652))==null?void 0x0:_0x4866f4[_0x5317f4(0x17f)]();return(_0x34eaca==null?void 0x0:_0x34eaca[_0x5317f4(0x211)](_0x22d904=>a[_0x5317f4(0x19e)]['contains'](_0x22d904,_0x50668e)))||_0x50668e;}['_onRefRangeChange'](){const _0x41b44f=_0x4c4685,_0x5290b6=new a[(_0x41b44f(0x3a2))](),_0x118907=Et(),_0x11c68a=()=>{const _0x1e047f=_0x41b44f;_0x5290b6[_0x1e047f(0x3d3)]();const _0x21cd48=(_0x278d3b,_0x21a103,_0x2329a5,_0x20237c)=>{const _0x3c6671=_0x1e047f;let _0x570bf4=[];switch(_0x278d3b['id']){case v['EffectRefRangId'][_0x3c6671(0x316)]:{_0x570bf4=v[_0x3c6671(0x192)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)]['DeleteRangeMoveUpCommandId']:{_0x570bf4=v[_0x3c6671(0x2b1)](_0x278d3b,_0x20237c);break;}case v['EffectRefRangId'][_0x3c6671(0x2eb)]:{_0x570bf4=v[_0x3c6671(0x1f6)](_0x278d3b,_0x20237c);break;}case v['EffectRefRangId'][_0x3c6671(0x42c)]:{_0x570bf4=v[_0x3c6671(0x424)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)]['InsertRangeMoveRightCommandId']:{_0x570bf4=v[_0x3c6671(0x262)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)][_0x3c6671(0x1fc)]:{_0x570bf4=v[_0x3c6671(0x20d)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)][_0x3c6671(0x3af)]:{_0x570bf4=v['handleMoveRange'](_0x278d3b,_0x20237c);break;}case v['EffectRefRangId'][_0x3c6671(0x3b2)]:{_0x570bf4=v[_0x3c6671(0x33b)](_0x278d3b,_0x20237c);break;}case v[_0x3c6671(0x2b7)][_0x3c6671(0x402)]:{_0x570bf4=v['handleIRemoveRow'](_0x278d3b,_0x20237c);break;}}const _0x5cfdce=v[_0x3c6671(0x23d)](_0x570bf4,_0x20237c),_0x343505=this['cursorInfo'][_0x3c6671(0x418)](_0x21a103);if(_0x343505&&_0x5cfdce){const _0x2e1188={..._0x343505,'range':_0x5cfdce};this[_0x3c6671(0x297)][_0x3c6671(0x1d4)](_0x21a103,_0x2e1188),_0x118907(()=>{const _0x548dc7=_0x3c6671,_0x3c124c=this[_0x548dc7(0x17d)][_0x548dc7(0x320)](_0x5cfdce,_0x2f3192=>(_0x3c124c[_0x548dc7(0x3d3)](),_0x21cd48(_0x2f3192,_0x21a103,_0x2329a5,_0x5cfdce)));_0x5290b6[_0x548dc7(0x1c9)](_0x3c124c);});}return{'redos':[],'undos':[]};};this[_0x1e047f(0x297)][_0x1e047f(0x258)]((_0x180d57,_0x29aca8)=>{const _0x59bc1c=_0x1e047f,{range:_0x4ef2b0,sheetID:_0x22d96b}=_0x180d57,_0x568273=this[_0x59bc1c(0x17d)]['registerRefRange'](_0x4ef2b0,_0x22cc89=>(_0x568273[_0x59bc1c(0x3d3)](),_0x21cd48(_0x22cc89,_0x29aca8,_0x22d96b,_0x4ef2b0)));_0x5290b6[_0x59bc1c(0x1c9)](_0x568273);});};this['disposeWithMe'](a[_0x41b44f(0x356)](this[_0x41b44f(0x1fa)][_0x41b44f(0x2e5)](()=>{_0x11c68a();})));}[_0x4c4685(0x1ee)](){const _0x2bfbdb=_0x4c4685;var _0x5e0d16,_0x2d7c94;if(this['_online']=!0x0,((_0x5e0d16=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x5e0d16['getUnitId']())!==this[_0x2bfbdb(0x179)])return;const _0x5c097f=(_0x2d7c94=this[_0x2bfbdb(0x28a)][_0x2bfbdb(0x418)](v[_0x2bfbdb(0x302)])[_0x2bfbdb(0x2ca)]())==null?void 0x0:_0x2d7c94[0x0],_0x2d9ad1=this[_0x2bfbdb(0x175)]['getCurrentUnitForType'](a[_0x2bfbdb(0x323)][_0x2bfbdb(0x2a6)])[_0x2bfbdb(0x2ae)]();_0x5c097f&&_0x2d9ad1&&this[_0x2bfbdb(0x19b)](_0x2d9ad1[_0x2bfbdb(0x1a9)](),_0x5c097f);}[_0x4c4685(0x329)](){const _0x26177d=_0x4c4685;this[_0x26177d(0x2a5)]=!0x1;}};ge=mt([w(0x2,a[_0x4c4685(0x414)](a['Injector'])),w(0x3,a[_0x4c4685(0x414)](Re)),w(0x4,a[_0x4c4685(0x414)](u[_0x4c4685(0x2e4)])),w(0x5,a[_0x4c4685(0x19d)]),w(0x6,a[_0x4c4685(0x3c5)]),w(0x7,a[_0x4c4685(0x414)](v[_0x4c4685(0x3e9)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x1b0fc3,_0x5b2272,_0x18b41e,_0x3b8e93)=>{for(var _0x2581b5=_0x3b8e93>0x1?void 0x0:_0x3b8e93?Ct(_0x5b2272,_0x18b41e):_0x5b2272,_0xeb87b1=_0x1b0fc3['length']-0x1,_0x5190ec;_0xeb87b1>=0x0;_0xeb87b1--)(_0x5190ec=_0x1b0fc3[_0xeb87b1])&&(_0x2581b5=_0x5190ec(_0x2581b5)||_0x2581b5);return _0x2581b5;},ce=(_0x4df2c9,_0x29be0e)=>(_0x12da03,_0x200e67)=>_0x29be0e(_0x12da03,_0x200e67,_0x4df2c9);let F=class extends a[_0x4c4685(0x303)]{constructor(_0x3f47e6,_0xfd5737,_0x3c0b7d){const _0x172f62=_0x4c4685;super(),_(this,_0x172f62(0x274),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x172f62(0x175)]=_0x3f47e6,this[_0x172f62(0x28a)]=_0xfd5737,this[_0x172f62(0x289)]=_0x3c0b7d,this[_0x172f62(0x16e)]());}[_0x4c4685(0x3d3)](){const _0x2c8553=_0x4c4685;super[_0x2c8553(0x3d3)](),this['_entityInit$']['complete'](),this[_0x2c8553(0x274)][_0x2c8553(0x258)](_0x148de0=>_0x148de0['dispose']());}[_0x4c4685(0x16c)](_0x7a59ab){const _0x4f548d=_0x4c4685;return this[_0x4f548d(0x274)]['has'](_0x7a59ab)?this[_0x4f548d(0x274)][_0x4f548d(0x418)](_0x7a59ab)[_0x4f548d(0x2aa)]:this[_0x4f548d(0x2d6)][_0x4f548d(0x249)](I[_0x4f548d(0x190)](_0x1694a3=>_0x1694a3[_0x4f548d(0x179)]===_0x7a59ab),I[_0x4f548d(0x225)](_0x2d8b4f=>_0x2d8b4f[_0x4f548d(0x2aa)]));}[_0x4c4685(0x16e)](){const _0x2e8bfa=_0x4c4685;this[_0x2e8bfa(0x175)][_0x2e8bfa(0x41b)](a[_0x2e8bfa(0x323)][_0x2e8bfa(0x2a6)])[_0x2e8bfa(0x249)](I['takeUntil'](this[_0x2e8bfa(0x374)]))[_0x2e8bfa(0x2e5)](async _0x349494=>{const _0x494c53=_0x2e8bfa,_0x10c7d8=_0x349494[_0x494c53(0x1ca)](),_0x5479f5=await this[_0x494c53(0x366)](_0x10c7d8);this[_0x494c53(0x2d6)][_0x494c53(0x215)](_0x5479f5),this[_0x494c53(0x274)][_0x494c53(0x1d4)](_0x10c7d8,_0x5479f5);}),this[_0x2e8bfa(0x175)][_0x2e8bfa(0x41b)](a[_0x2e8bfa(0x323)][_0x2e8bfa(0x227)])['pipe'](I[_0x2e8bfa(0x206)](this[_0x2e8bfa(0x374)]))['pipe'](I[_0x2e8bfa(0x190)](_0x57225a=>!_0x57225a['getUnitId']()[_0x2e8bfa(0x365)]('__')))[_0x2e8bfa(0x2e5)](async _0x51ba14=>{const _0x3fa97d=_0x2e8bfa,_0x1b2289=_0x51ba14[_0x3fa97d(0x1ca)](),_0x1aec34=await this['_startDocCollabCursor'](_0x1b2289);this[_0x3fa97d(0x2d6)][_0x3fa97d(0x215)](_0x1aec34),this[_0x3fa97d(0x274)][_0x3fa97d(0x1d4)](_0x1b2289,_0x1aec34);}),I[_0x2e8bfa(0x2d3)](this[_0x2e8bfa(0x175)][_0x2e8bfa(0x333)](a['UniverInstanceType'][_0x2e8bfa(0x227)]),this[_0x2e8bfa(0x175)][_0x2e8bfa(0x333)](a[_0x2e8bfa(0x323)][_0x2e8bfa(0x2a6)]))[_0x2e8bfa(0x249)](I['takeUntil'](this['dispose$']))['subscribe'](_0x48a370=>{const _0x2b04bf=_0x2e8bfa,_0x1bbe3e=_0x48a370[_0x2b04bf(0x1ca)](),_0x2d0723=this['_entities'][_0x2b04bf(0x418)](_0x1bbe3e);_0x2d0723&&(_0x2d0723['dispose'](),this['_entities'][_0x2b04bf(0x1be)](_0x1bbe3e));});}async[_0x4c4685(0x366)](_0x503c58){const _0x3abaea=_0x4c4685,_0x2a9e44=await this[_0x3abaea(0x289)]['requireSession'](_0x503c58),_0x55aef1=this['_injector'][_0x3abaea(0x2d5)](ge,_0x503c58,_0x2a9e44);return _0x55aef1['init'](),_0x55aef1;}async['_startDocCollabCursor'](_0x57563e){const _0x3e6660=_0x4c4685,_0x1c53ba=await this['_collabSessionService'][_0x3e6660(0x21f)](_0x57563e),_0x2c0a4b=this[_0x3e6660(0x28a)]['createInstance'](ve,_0x57563e,_0x1c53ba);return _0x2c0a4b['init'](),_0x2c0a4b;}};F=pt([ce(0x0,a[_0x4c4685(0x19d)]),ce(0x1,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),ce(0x2,a[_0x4c4685(0x414)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x20ee22,_0x4cf533){const _0x1594de=_0x4c4685;let {radius:_0x127a4a,width:_0xaeedbf,height:_0x1b8e4d}=_0x4cf533;_0x127a4a=_0x127a4a!=null?_0x127a4a:0x0,_0xaeedbf=_0xaeedbf!=null?_0xaeedbf:0x1e,_0x1b8e4d=_0x1b8e4d!=null?_0x1b8e4d:0x1e;let _0x31c4e8=0x0,_0x668f7b=0x0,_0x31b20c=0x0;_0x31c4e8=_0x668f7b=_0x31b20c=Math[_0x1594de(0x2f9)](_0x127a4a,_0xaeedbf/0x2,_0x1b8e4d/0x2),_0x20ee22[_0x1594de(0x3b8)](),_0x20ee22['moveTo'](_0x31c4e8,0x0),_0x20ee22[_0x1594de(0x286)](_0xaeedbf-_0x668f7b,0x0),_0x20ee22['arc'](_0xaeedbf-_0x668f7b,_0x668f7b,_0x668f7b,Math['PI']*0x3/0x2,0x0,!0x1),_0x20ee22['lineTo'](_0xaeedbf,_0x1b8e4d-_0x31b20c),_0x20ee22['arc'](_0xaeedbf-_0x31b20c,_0x1b8e4d-_0x31b20c,_0x31b20c,0x0,Math['PI']/0x2,!0x1),_0x20ee22[_0x1594de(0x286)](0x0,_0x1b8e4d),_0x20ee22[_0x1594de(0x286)](0x0,_0x31c4e8),_0x20ee22['arc'](_0x31c4e8,_0x31c4e8,_0x31c4e8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x20ee22[_0x1594de(0x1a5)](),_0x4cf533[_0x1594de(0x194)]&&(_0x20ee22['save'](),_0x20ee22['fillStyle']=_0x4cf533[_0x1594de(0x194)],_0x4cf533[_0x1594de(0x1ab)]===_0x1594de(0x324)?_0x20ee22[_0x1594de(0x194)]('evenodd'):_0x20ee22[_0x1594de(0x194)](),_0x20ee22[_0x1594de(0x17e)]());}class re extends C[_0x4c4685(0x3cd)]{constructor(_0x69d8f0,_0x2b7073){const _0x20792e=_0x4c4685;super(_0x69d8f0,_0x2b7073),_(this,_0x20792e(0x240)),_(this,'text'),(this[_0x20792e(0x240)]=_0x2b7073==null?void 0x0:_0x2b7073[_0x20792e(0x240)],this[_0x20792e(0x222)]=_0x2b7073==null?void 0x0:_0x2b7073[_0x20792e(0x222)]);}static[_0x4c4685(0x40f)](_0x1f7d12,_0xd19539){const _0x45d7b0=_0x4c4685,{text:_0x1ff86b,color:_0x2cefce}=_0xd19539;_0x1f7d12[_0x45d7b0(0x3c6)](),_0x1f7d12[_0x45d7b0(0x1d7)]=_0x45d7b0(0x3ea);const _0x47540f=_0x1f7d12[_0x45d7b0(0x3be)](_0x1ff86b)[_0x45d7b0(0x217)],_0x2fb17f=Math[_0x45d7b0(0x2f9)](_0x47540f+0x2*le,Ue);Ot(_0x1f7d12,{'height':X,'radius':0x4,'width':_0x2fb17f,'fill':_0x2cefce}),_0x1f7d12[_0x45d7b0(0x392)]=_0x45d7b0(0x16f);const _0x28c122=le,_0x306ccc=X-Tt,_0x1cb767=Ue-0x2*le;if(_0x47540f>_0x1cb767){let _0x5bdbfa='',_0x4c299a=0x0;for(const _0x13ddcd of _0x1ff86b){const _0x4dc036=_0x1f7d12[_0x45d7b0(0x3be)](_0x13ddcd)[_0x45d7b0(0x217)];if(_0x4c299a+_0x4dc036<=_0x1cb767-_0x1f7d12[_0x45d7b0(0x3be)](_0x45d7b0(0x29c))['width'])_0x5bdbfa+=_0x13ddcd,_0x4c299a+=_0x4dc036;else{_0x5bdbfa+=_0x45d7b0(0x29c);break;}}_0x1f7d12[_0x45d7b0(0x2d7)](_0x5bdbfa,_0x28c122,_0x306ccc);}else _0x1f7d12[_0x45d7b0(0x2d7)](_0x1ff86b,_0x28c122,_0x306ccc);_0x1f7d12['restore']();}[_0x4c4685(0x229)](_0x4534c4){const _0x55c468=_0x4c4685;re[_0x55c468(0x40f)](_0x4534c4,this);}}const _e='collab-text-anchor-',Rt='collab-text-range-',bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x54bc93,_0x32f7b8,_0x49a407,_0x55e971){const _0x52cca2=_0x4c4685;_(this,_0x52cca2(0x3ac),[]),_(this,'_anchor',null),_(this,_0x52cca2(0x3e2),null),_(this,_0x52cca2(0x3a4),null),_(this,_0x52cca2(0x21b),null),_(this,_0x52cca2(0x3a7),null),(this[_0x52cca2(0x3cb)]=_0x54bc93,this[_0x52cca2(0x32f)]=_0x32f7b8,this['_docSkeleton']=_0x49a407,this[_0x52cca2(0x377)]=_0x55e971,this[_0x52cca2(0x299)]());}set['_hover'](_0x91936a){const _0xbbde22=_0x4c4685;_0x91936a?(this['_anchorDot']&&this[_0xbbde22(0x3a4)][_0xbbde22(0x406)](),this[_0xbbde22(0x3e2)]&&this['_textBubble'][_0xbbde22(0x22b)]()):(this[_0xbbde22(0x3a4)]&&this[_0xbbde22(0x3a4)][_0xbbde22(0x22b)](),this['_textBubble']&&this[_0xbbde22(0x3e2)]['hide']());}[_0x4c4685(0x3d3)](){const _0x24b4a1=_0x4c4685;for(const _0x9ff930 of this[_0x24b4a1(0x3ac)])_0x9ff930['dispose']();this[_0x24b4a1(0x3e2)]&&this[_0x24b4a1(0x3e2)][_0x24b4a1(0x3d3)](),this[_0x24b4a1(0x3a4)]&&this['_anchorDot'][_0x24b4a1(0x3d3)](),this[_0x24b4a1(0x38e)]&&this[_0x24b4a1(0x38e)]['dispose'](),this[_0x24b4a1(0x3a7)]&&this[_0x24b4a1(0x3a7)]();}[_0x4c4685(0x299)](){const _0x47da9b=_0x4c4685;var _0x3bfcfa;const {_docSkeleton:_0x2885a1,_document:_0x12f12a}=this,{color:_0x4e2f29,name:_0x4ab08a,ranges:_0x4f216e}=this[_0x47da9b(0x3cb)],_0x5adfe1=_0x12f12a[_0x47da9b(0x195)](),{docsLeft:_0x3b6ba5,docsTop:_0x51f8bd}=_0x5adfe1,_0x1faa35=new p[(_0x47da9b(0x3cf))](_0x5adfe1,_0x2885a1);for(const {startOffset:_0x3b8bd4,endOffset:_0x455ad4,rangeType:_0x3762e2,segmentId:_0x360ed3,segmentPage:_0x574798,collapsed:_0x155652,isActive:_0x1e2060}of _0x4f216e){const _0x6dabde=_0x2885a1[_0x47da9b(0x1ce)](_0x3b8bd4,!0x0,_0x360ed3,_0x574798);let _0x4c56b6=_0x2885a1['findNodePositionByCharIndex'](_0x455ad4,!0x0,_0x360ed3,_0x574798);if(_0x4c56b6==null&&(_0x4c56b6=_0x2885a1[_0x47da9b(0x1ce)](_0x455ad4-0x1,!0x1,_0x360ed3,_0x574798)),_0x1e2060){const {contentBoxPointGroup:_0x27b974}=_0x1faa35['getRangePointData'](_0x4c56b6,_0x4c56b6);if(_0x27b974[_0x47da9b(0x393)]===0x0)continue;this[_0x47da9b(0x1e2)](_0x4e2f29,_0x27b974,_0x3b6ba5,_0x51f8bd,_0x4ab08a),this[_0x47da9b(0x3a7)]=this['_handleHover']();}if(_0x6dabde&&_0x4c56b6){if(_0x3762e2===a[_0x47da9b(0x38d)][_0x47da9b(0x391)]){const _0x2dc92c=new p['NodePositionConvertToRectRange'](_0x5adfe1,_0x2885a1),{pointGroup:_0x2a0617}=(_0x3bfcfa=_0x2dc92c[_0x47da9b(0x36e)](_0x6dabde,_0x4c56b6))!=null?_0x3bfcfa:{};if(_0x2a0617==null||_0x2a0617[_0x47da9b(0x393)]===0x0)continue;this[_0x47da9b(0x405)](_0x4e2f29,_0x2a0617,_0x3b6ba5,_0x51f8bd);}else{if(!_0x155652){const {borderBoxPointGroup:_0x3a0d13}=_0x1faa35['getRangePointData'](_0x6dabde,_0x4c56b6);if(_0x3a0d13[_0x47da9b(0x393)]===0x0)continue;this[_0x47da9b(0x20e)](_0x4e2f29,_0x3a0d13,_0x3b6ba5,_0x51f8bd);}}}}}[_0x4c4685(0x1e2)](_0x2cb1ed,_0x4a479e,_0x131ebd,_0x1c7c8d,_0x7a0618){const _0x99e054=_0x4c4685,_0x517f21=this[_0x99e054(0x16d)](_0x4a479e),{left:_0x5af54c,top:_0x1f0184,height:_0x12c63a}=_0x517f21,_0x44550e=this[_0x99e054(0x348)](),_0x875220=Nt/_0x44550e,_0xe8958c=new C[(_0x99e054(0x242))](_e+a[_0x99e054(0x331)](H),{'left':_0x5af54c+_0x131ebd-_0x875220,'top':_0x1f0184+_0x1c7c8d,'height':_0x12c63a,'width':Dt,'fill':_0x2cb1ed||C[_0x99e054(0x428)](a['COLORS'][_0x99e054(0x1f4)],0x0),'strokeWidth':_0x875220,'stroke':Ut,'evented':!0x0});this[_0x99e054(0x38e)]=_0xe8958c,this['_scene'][_0x99e054(0x3a6)](_0xe8958c,p[_0x99e054(0x1b1)]);const _0x2e637f=new C['Rect'](_e+a[_0x99e054(0x331)](H),{'left':_0x5af54c+_0x131ebd-_0x875220,'top':_0x1f0184+_0x1c7c8d-he/0x2,'height':he,'width':he,'fill':_0x2cb1ed||C[_0x99e054(0x428)](a[_0x99e054(0x3ed)][_0x99e054(0x1f4)],0x0),'strokeWidth':0x0,'stroke':_0x2cb1ed||C[_0x99e054(0x428)](a[_0x99e054(0x3ed)]['black'],0x0),'evented':!0x1});this[_0x99e054(0x3a4)]=_0x2e637f,this[_0x99e054(0x32f)]['addObject'](_0x2e637f,p['TEXT_RANGE_LAYER_INDEX']);const _0x10d2fd=new re(_e+a['generateRandomId'](H),{'left':_0x5af54c+_0x131ebd-_0x875220,'top':_0x1f0184+_0x1c7c8d-X,'text':_0x7a0618,'color':_0x2cb1ed});this[_0x99e054(0x3e2)]=_0x10d2fd,this[_0x99e054(0x32f)][_0x99e054(0x3a6)](_0x10d2fd,p[_0x99e054(0x1b1)]),this['_hover']=!0x1;}[_0x4c4685(0x1dd)](){const _0x345a1d=_0x4c4685,_0x479046=this[_0x345a1d(0x38e)][_0x345a1d(0x1d3)][_0x345a1d(0x3a5)](()=>{const _0x124167=_0x345a1d;this[_0x124167(0x310)]=!0x0;}),_0x4ec05b=this[_0x345a1d(0x38e)][_0x345a1d(0x293)][_0x345a1d(0x3a5)](()=>{const _0x58cb41=_0x345a1d;this[_0x58cb41(0x21b)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x58263c=_0x58cb41;this[_0x58263c(0x310)]=!0x1;},0x7d0);});return()=>{const _0xe45b21=_0x345a1d;_0x479046[_0xe45b21(0x1c7)](),_0x4ec05b[_0xe45b21(0x1c7)]();};}[_0x4c4685(0x20e)](_0x56fa60,_0xdb75e6,_0x26a953,_0x5dd604){const _0x9bb654=_0x4c4685,_0x5d0a5e=new a['ColorKit'](_0x56fa60)['setAlpha'](0.2)[_0x9bb654(0x349)](),_0x1f5dd4=new C['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0xdb75e6,'fill':_0x5d0a5e||C[_0x9bb654(0x428)](a[_0x9bb654(0x3ed)]['black'],0.2),'left':_0x26a953,'top':_0x5dd604,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1f5dd4),this['_scene'][_0x9bb654(0x3a6)](_0x1f5dd4,p[_0x9bb654(0x1b1)]);}[_0x4c4685(0x405)](_0xcc002b,_0x3eb25a,_0x51f29f,_0x5f2211){const _0x26ffb7=_0x4c4685,_0x33a559=new a[(_0x26ffb7(0x2c9))](_0xcc002b)[_0x26ffb7(0x3ce)](0.2)['toRgbString'](),_0x342792=new C[(_0x26ffb7(0x282))](bt+a[_0x26ffb7(0x331)](H),{'pointsGroup':_0x3eb25a,'fill':_0x33a559||C[_0x26ffb7(0x428)](a[_0x26ffb7(0x3ed)][_0x26ffb7(0x1f4)],0.2),'left':_0x51f29f,'top':_0x5f2211,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x26ffb7(0x3ac)][_0x26ffb7(0x2cc)](_0x342792),this[_0x26ffb7(0x32f)][_0x26ffb7(0x3a6)](_0x342792,p['TEXT_RANGE_LAYER_INDEX']);}[_0x4c4685(0x16d)](_0x155c15){const _0x87ad99=_0x155c15[0x0],_0x314b90=_0x87ad99[0x0],_0x7a96a0=_0x87ad99[0x2],{x:_0x3fd276,y:_0x37488f}=_0x314b90,{x:_0x313b33,y:_0xcadaa8}=_0x7a96a0;return{'left':_0x3fd276,'top':_0x37488f,'width':_0x313b33-_0x3fd276,'height':_0xcadaa8-_0x37488f};}[_0x4c4685(0x348)](){const _0x45ed4b=_0x4c4685,{scaleX:_0x2b148b,scaleY:_0x32ca50}=this['_scene']['getAncestorScale']();return Math[_0x45ed4b(0x26c)](_0x2b148b,_0x32ca50);}}var Lt=Object[_0x4c4685(0x1b0)],Mt=(_0x46ee2b,_0x3f064a,_0x505cbc,_0x319534)=>{const _0x4232d4=_0x4c4685;for(var _0x1b6f1a=_0x319534>0x1?void 0x0:_0x319534?Lt(_0x3f064a,_0x505cbc):_0x3f064a,_0x12dba7=_0x46ee2b[_0x4232d4(0x393)]-0x1,_0x4dd60b;_0x12dba7>=0x0;_0x12dba7--)(_0x4dd60b=_0x46ee2b[_0x12dba7])&&(_0x1b6f1a=_0x4dd60b(_0x1b6f1a)||_0x1b6f1a);return _0x1b6f1a;},q=(_0x18efbb,_0xe107d1)=>(_0x38ef95,_0x232a8a)=>_0xe107d1(_0x38ef95,_0x232a8a,_0x18efbb);let Ee=class extends a[_0x4c4685(0x303)]{constructor(_0x2469e5,_0x2d072a,_0x572da0,_0x323a26,_0x7133f2){const _0x1952ff=_0x4c4685;super(),_(this,_0x1952ff(0x311),[]),_(this,'_cursors',[]),(this[_0x1952ff(0x288)]=_0x2469e5,this[_0x1952ff(0x3f1)]=_0x2d072a,this[_0x1952ff(0x3ad)]=_0x572da0,this['_commandService']=_0x323a26,this[_0x1952ff(0x2db)]=_0x7133f2,this[_0x1952ff(0x16e)]());}['_init'](){const _0x44fbe9=_0x4c4685,_0x1f8719=this[_0x44fbe9(0x288)][_0x44fbe9(0x1a1)],_0x11a6f0=this['_docSkeletonManagerService'];this[_0x44fbe9(0x1c2)](I['combineLatest']([this[_0x44fbe9(0x3ad)][_0x44fbe9(0x16c)](_0x1f8719),this[_0x44fbe9(0x2db)][_0x44fbe9(0x28d)]])[_0x44fbe9(0x249)]($[_0x44fbe9(0x36a)](([_0x2accaa,_0x16f86b])=>({'skeleton':_0x11a6f0[_0x44fbe9(0x2df)](),'cursors':[..._0x2accaa[_0x44fbe9(0x335)]()][_0x44fbe9(0x36d)](_0x31185e=>({..._0x31185e,'color':this[_0x44fbe9(0x2db)][_0x44fbe9(0x40a)](_0x31185e[_0x44fbe9(0x240)])}))})))[_0x44fbe9(0x2e5)](_0x488b52=>{const _0xbd6fbb=_0x44fbe9;if(this[_0xbd6fbb(0x415)](),_0x488b52){const {skeleton:_0x4cfd28,cursors:_0x12ee21}=_0x488b52;this['_updateCollabCursors'](_0x4cfd28,_0x12ee21);}})),this[_0x44fbe9(0x264)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x263e4c,_0x52ec7c){const _0x273894=_0x4c4685,{scene:_0x4824dd,mainComponent:_0xd43a01}=this[_0x273894(0x288)],_0x4466f7=_0x52ec7c[_0x273894(0x36a)](_0x1caf00=>new Le(_0x1caf00,_0x4824dd,_0x263e4c,_0xd43a01));this[_0x273894(0x311)]=_0x4466f7,this[_0x273894(0x2ab)]=_0x52ec7c;}[_0x4c4685(0x181)](){const _0x5ced05=_0x4c4685;this[_0x5ced05(0x415)]();const {scene:_0x463007,mainComponent:_0x50263e}=this[_0x5ced05(0x288)],_0x3d3f8a=this[_0x5ced05(0x3f1)][_0x5ced05(0x2df)](),_0xb75985=this[_0x5ced05(0x2ab)]['map'](_0x562ebc=>new Le(_0x562ebc,_0x463007,_0x3d3f8a,_0x50263e));this[_0x5ced05(0x311)]=_0xb75985;}[_0x4c4685(0x415)](){const _0x1b73e2=_0x4c4685;this['_cursorShapes'][_0x1b73e2(0x258)](_0x3d9798=>_0x3d9798['dispose']()),this['_cursorShapes']=[];}[_0x4c4685(0x1d6)](){const _0x2d8941=_0x4c4685,_0x12915d=[p[_0x2d8941(0x37c)]['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x316a50=>{const _0x5a3cef=_0x2d8941;_0x12915d['includes'](_0x316a50['id'])&&_0x316a50[_0x5a3cef(0x18a)][_0x5a3cef(0x1a1)]===this[_0x5a3cef(0x288)][_0x5a3cef(0x1a1)]&&this[_0x5a3cef(0x181)]();}));}[_0x4c4685(0x264)](){const _0x25a756=_0x4c4685;this[_0x25a756(0x1c2)](a['fromEventSubject'](this['_context'][_0x25a756(0x1e4)][_0x25a756(0x427)])[_0x25a756(0x249)]($['filter'](_0x509a11=>_0x509a11[_0x25a756(0x180)]===C[_0x25a756(0x3e1)][_0x25a756(0x2d9)]),$['throttleTime'](0x10))[_0x25a756(0x2e5)](()=>{const _0x34e27d=_0x25a756;this[_0x34e27d(0x181)]();}));}};Ee=Mt([q(0x1,a[_0x4c4685(0x414)](V[_0x4c4685(0x380)])),q(0x2,a[_0x4c4685(0x414)](F)),q(0x3,a[_0x4c4685(0x3c5)]),q(0x4,a[_0x4c4685(0x414)](a[_0x4c4685(0x422)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4c4685(0x3cd)]{constructor(_0x1029ff,_0x1748c4){const _0x4bb5fa=_0x4c4685;super(_0x1029ff,_0x1748c4),_(this,_0x4bb5fa(0x256)),_(this,_0x4bb5fa(0x2d2),!0x1),_(this,'_range'),_(this,_0x4bb5fa(0x234),''),_(this,_0x4bb5fa(0x23a),'top'),_(this,_0x4bb5fa(0x3f0)),(_0x1748c4&&this[_0x4bb5fa(0x352)](_0x1748c4),this[_0x4bb5fa(0x1d3)][_0x4bb5fa(0x3a5)](()=>this[_0x4bb5fa(0x352)]({'hovered':!0x0})),this[_0x4bb5fa(0x293)][_0x4bb5fa(0x3a5)](()=>this[_0x4bb5fa(0x352)]({'hovered':!0x1})));}[_0x4c4685(0x352)](_0x2828cf){const _0xe1874=_0x4c4685;var _0x4caacf,_0x435b7b,_0x4562bb,_0x4c74f5,_0x25ba5d,_0x4801f4;this[_0xe1874(0x256)]=(_0x4caacf=_0x2828cf['color'])!=null?_0x4caacf:this[_0xe1874(0x256)],this['_hovered']=(_0x435b7b=_0x2828cf['hovered'])!=null?_0x435b7b:this[_0xe1874(0x2d2)],this[_0xe1874(0x2e3)]=(_0x4562bb=_0x2828cf['range'])!=null?_0x4562bb:this[_0xe1874(0x2e3)],this[_0xe1874(0x234)]=(_0x4c74f5=_0x2828cf[_0xe1874(0x2c8)])!=null?_0x4c74f5:this[_0xe1874(0x234)],this[_0xe1874(0x23a)]=(_0x25ba5d=_0x2828cf[_0xe1874(0x3b6)])!=null?_0x25ba5d:this[_0xe1874(0x23a)],this[_0xe1874(0x3f0)]=(_0x4801f4=_0x2828cf[_0xe1874(0x3b4)])!=null?_0x4801f4:this[_0xe1874(0x3f0)],this[_0xe1874(0x170)]({'width':_0x2828cf['width'],'height':_0x2828cf[_0xe1874(0x24d)]});}[_0x4c4685(0x298)](_0x176d55){const _0x3e469f=_0x4c4685,{row:_0x326fcd,column:_0x29607a}=_0x176d55;if(_0x326fcd>=this[_0x3e469f(0x2e3)][_0x3e469f(0x1f1)]&&_0x326fcd<=this[_0x3e469f(0x2e3)][_0x3e469f(0x315)]&&_0x29607a>=this[_0x3e469f(0x2e3)][_0x3e469f(0x253)]&&_0x29607a<=this[_0x3e469f(0x2e3)][_0x3e469f(0x345)]){this[_0x3e469f(0x352)]({'hovered':!0x0});return;}this[_0x3e469f(0x352)]({'hovered':!0x1});}[_0x4c4685(0x33d)](_0x3ca065){return!0x1;}[_0x4c4685(0x229)](_0x574ac8){const _0x2cb406=_0x4c4685;C[_0x2cb406(0x242)]['drawWith'](_0x574ac8,{'width':this['width'],'height':this[_0x2cb406(0x24d)],'strokeWidth':Pt,'stroke':this[_0x2cb406(0x256)],'evented':!0x1,'fill':this[_0x2cb406(0x3f0)]}),this['_hovered']&&(_0x574ac8[_0x2cb406(0x3c6)](),_0x574ac8['transform'](0x1,0x0,0x0,0x1,this[_0x2cb406(0x217)],this[_0x2cb406(0x23a)]===_0x2cb406(0x39f)?0x0:-X),re[_0x2cb406(0x40f)](_0x574ac8,{'text':this[_0x2cb406(0x234)],'color':this[_0x2cb406(0x256)]}),_0x574ac8['restore']());}}var wt=Object[_0x4c4685(0x1b0)],yt=(_0x25f305,_0x16625b,_0x8eba49,_0x328d0e)=>{const _0x5de6b7=_0x4c4685;for(var _0x5e2de7=_0x328d0e>0x1?void 0x0:_0x328d0e?wt(_0x16625b,_0x8eba49):_0x16625b,_0x49a9eb=_0x25f305[_0x5de6b7(0x393)]-0x1,_0x1fd9fb;_0x49a9eb>=0x0;_0x49a9eb--)(_0x1fd9fb=_0x25f305[_0x49a9eb])&&(_0x5e2de7=_0x1fd9fb(_0x5e2de7)||_0x5e2de7);return _0x5e2de7;},ue=(_0x23d3ef,_0x54a2cd)=>(_0x54a94c,_0x43743d)=>_0x54a2cd(_0x54a94c,_0x43743d,_0x23d3ef);const $t=0x1389;let Ce=class extends a[_0x4c4685(0x303)]{constructor(_0x252cc6,_0x516e89,_0x3bd50b,_0x28c05f){const _0x416674=_0x4c4685;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this[_0x416674(0x288)]=_0x252cc6,this[_0x416674(0x17b)]=_0x516e89,this[_0x416674(0x3ad)]=_0x3bd50b,this[_0x416674(0x2db)]=_0x28c05f,this['_init']());}[_0x4c4685(0x16e)](){const _0x4c6cbc=_0x4c4685;this[_0x4c6cbc(0x17b)]['currentSkeleton$'][_0x4c6cbc(0x249)]($[_0x4c6cbc(0x206)](this['dispose$']),$['switchMap'](_0xe2b4f1=>{const _0x172142=_0x4c6cbc;if(_0xe2b4f1){const _0x326dd6=_0xe2b4f1[_0x172142(0x266)];return I[_0x172142(0x1fb)](this[_0x172142(0x3ad)][_0x172142(0x16c)](this[_0x172142(0x288)]['unitId']),this[_0x172142(0x2db)]['currentTheme$'])[_0x172142(0x249)]($[_0x172142(0x36a)](([_0x3283f3,_0x5ea659])=>{const _0x3ae483=_0x172142,_0x1f86ff=new Map();return _0x3283f3[_0x3ae483(0x258)]((_0x462df8,_0x2e0e43)=>{const _0x4437db=_0x3ae483;if(_0x462df8['sheetID']===_0x326dd6){const _0xc24d={..._0x462df8};_0xc24d[_0x4437db(0x240)]=this[_0x4437db(0x2db)][_0x4437db(0x40a)](_0x462df8[_0x4437db(0x240)]),_0x1f86ff[_0x4437db(0x1d4)](_0x2e0e43,_0xc24d);}}),{'skeleton':_0xe2b4f1,'cursors':_0x1f86ff};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x4c6cbc(0x2e5)](({skeleton:_0x29d58d,cursors:_0x3c1a80})=>{const _0x30b61b=_0x4c6cbc;this[_0x30b61b(0x415)](),_0x29d58d&&this['_updateCollabCursors'](_0x29d58d,_0x3c1a80);}),this[_0x4c6cbc(0x17b)][_0x4c6cbc(0x2c5)]['subscribe'](_0x271524=>{const _0x543541=_0x4c6cbc;if(_0x271524==null)return;const {skeleton:_0x3caaac}=_0x271524,{scene:_0x14ea54}=this[_0x543541(0x288)];_0x14ea54[_0x543541(0x3bb)]['subscribeEvent'](a[_0x543541(0x3d9)](_0x235f62=>{const _0x5c2417=_0x543541;var _0x39ab5a,_0x5e0365;const {offsetX:_0x320059,offsetY:_0x43a826}=_0x235f62,{x:_0x37c4fc,y:_0x1a007f}=_0x14ea54[_0x5c2417(0x35c)](C['Vector2'][_0x5c2417(0x3e6)]([_0x320059,_0x43a826])),{scaleX:_0x3daf86,scaleY:_0x1c900c}=_0x14ea54[_0x5c2417(0x408)](),_0xd20d53=_0x14ea54[_0x5c2417(0x2a8)](C[_0x5c2417(0x396)][_0x5c2417(0x32b)]),_0x3b4baf=_0x14ea54[_0x5c2417(0x22d)](C['Vector2'][_0x5c2417(0x3e6)]([_0x37c4fc,_0x1a007f]),_0xd20d53),_0x19d7d2=_0x3caaac['getCellPositionByOffset'](_0x320059,_0x43a826,_0x3daf86,_0x1c900c,_0x3b4baf);((_0x39ab5a=this[_0x5c2417(0x312)])==null?void 0x0:_0x39ab5a[_0x5c2417(0x41d)])===_0x19d7d2['column']&&((_0x5e0365=this[_0x5c2417(0x312)])==null?void 0x0:_0x5e0365[_0x5c2417(0x236)])===_0x19d7d2[_0x5c2417(0x236)]||this[_0x5c2417(0x2ab)][_0x5c2417(0x258)](_0x2c1f50=>{const _0x4ff316=_0x5c2417;_0x2c1f50[_0x4ff316(0x298)](_0x19d7d2);});},0x64));});}[_0x4c4685(0x35e)](_0x2c1ed2,_0x5c7e49){const _0x5428bc=_0x4c4685;var _0x4deaf6;const _0x54ca78=(_0x4deaf6=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x4deaf6[_0x5428bc(0x255)];if(!_0x54ca78)return;const _0x2f17ab=this[_0x5428bc(0x1bb)]();if(!_0x2f17ab)return;this[_0x5428bc(0x2ab)]['forEach'](_0x2ca5f0=>{const _0x22084a=_0x5428bc;_0x2ca5f0[_0x22084a(0x32c)]();});const {scene:_0x42b529}=_0x2f17ab,_0x51f528=xt(Array[_0x5428bc(0x2f2)](_0x5c7e49[_0x5428bc(0x335)]()))[_0x5428bc(0x36a)](_0x369ac1=>{const _0x5c441e=_0x5428bc,{color:_0x1e8963,range:_0x2c44aa,name:_0xf74140,selection:_0x3a547a,sheetID:_0x1745d6}=_0x369ac1,{startColumn:_0x15c87e,startRow:_0x5516c7,endColumn:_0x33c7cf,endRow:_0x52e185}=_0x2c44aa,_0x1e2f6b=J[_0x5c441e(0x2be)](_0x5516c7,_0x15c87e,_0x42b529,_0x54ca78),_0x13776c=J[_0x5c441e(0x2be)](_0x52e185,_0x33c7cf,_0x42b529,_0x54ca78),{columnHeaderHeightAndMarginTop:_0x346c78}=_0x54ca78,{startX:_0x3459da,startY:_0x1f96a2}=_0x1e2f6b,{endX:_0x25847a,endY:_0x41f59b}=_0x13776c,_0x40555d=_0x25847a-_0x3459da,_0x1a133b=_0x41f59b-_0x1f96a2,_0x1fd42b={'labelPosition':_0x1f96a2-_0x346c78>=X?'top':_0x5c441e(0x39f),'sheetID':_0x1745d6,'range':_0x2c44aa,'color':_0x1e8963,'name':_0xf74140,'selection':_0x3a547a,'left':_0x3459da,'top':_0x1f96a2,'width':_0x40555d,'height':_0x1a133b,'evented':!0x1,'zIndex':$t};return new je(_0xf74140,_0x1fd42b);});_0x42b529['addObjects'](_0x51f528,At),this[_0x5428bc(0x2ab)]=new Set(_0x51f528);}[_0x4c4685(0x415)](){const _0x46c7c7=_0x4c4685;var _0x1e6863;(_0x1e6863=this[_0x46c7c7(0x2ab)])==null||_0x1e6863[_0x46c7c7(0x258)](_0x469aff=>_0x469aff[_0x46c7c7(0x3d3)]());}[_0x4c4685(0x1bb)](){const _0x11382d=_0x4c4685;return J[_0x11382d(0x22c)](this['_context'][_0x11382d(0x2ad)],this[_0x11382d(0x288)]);}};Ce=yt([ue(0x1,a['Inject'](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x4c4685(0x414)](F)),ue(0x3,a[_0x4c4685(0x414)](a[_0x4c4685(0x422)]))],Ce);function xt(_0x990ef8){const _0x3e2205=_0x4c4685,_0x38f4ca=new Map();return _0x990ef8[_0x3e2205(0x258)](_0x73036c=>{const _0x2c7a48=_0x3e2205;if(_0x38f4ca[_0x2c7a48(0x39b)](_0x73036c[_0x2c7a48(0x208)])){const _0x5663c3=_0x38f4ca['get'](_0x73036c[_0x2c7a48(0x208)]);_0x5663c3[_0x2c7a48(0x2c8)]+=',\x20'+_0x73036c[_0x2c7a48(0x2c8)];}else _0x38f4ca['set'](_0x73036c[_0x2c7a48(0x208)],_0x73036c);}),Array[_0x3e2205(0x2f2)](_0x38f4ca[_0x3e2205(0x335)]());}var Bt=Object[_0x4c4685(0x1b0)],Ft=(_0x188c7e,_0x49eda4,_0x346b0c,_0x5357d2)=>{const _0x2d1fcf=_0x4c4685;for(var _0x137b31=_0x5357d2>0x1?void 0x0:_0x5357d2?Bt(_0x49eda4,_0x346b0c):_0x49eda4,_0x302979=_0x188c7e[_0x2d1fcf(0x393)]-0x1,_0x556528;_0x302979>=0x0;_0x302979--)(_0x556528=_0x188c7e[_0x302979])&&(_0x137b31=_0x556528(_0x137b31)||_0x137b31);return _0x137b31;},y=(_0x3ddf31,_0x4c1a62)=>(_0x35683d,_0x374c4f)=>_0x4c1a62(_0x35683d,_0x374c4f,_0x3ddf31);function _0x392f(){const _0xf7fbb1=['_initStatusComponent','svg','_taskIds','data','USERS_LEAVE','handleIRemoveCol','_hasFormulaInDirtyRanges','triggerDblclick','0\x200\x2017\x2016','REDEMPTION_USER_NOT_ELIGIBLE','DesktopCollaborationStatusDisplayController','roomMembers','off-line-icon_clip0_910_343','_transformUndoRedoStack','_collabCursorState$','endColumn','YUUMI_CONNECTOR_URL_NOT_FOUND','_urlService','_getScale','toRgbString','popstate','univerjs-icon\x20univerjs-icon-','includes','_onCursorDelete','_uiPartsService','_messageService','setConfig','currentUsage','setShapeProps','_clearOtherTimers','[CollaborationDataLoaderController]','transformRemoteChangeset','toDisposable','_ensureSubject','IURLService','PENDING','_unitOnClients','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getRelativeToViewportCoord','SetFormulaCalculationNotificationMutation','_updateCollabCursors','CollaborationSessionService','activeSheet$','APPLY_REJECT','_collaborationController','purple.300','unshift','startsWith','_startSheetCollabCursor','_cachedData','CHANGESET_REVISION_CONFILICT','189261lOdiUw','map','WECHAT_HAS_BEEN_BOUND','CLOSE_ROOM','flatMap','getRangePointData','YUUMI_ASYNCIO_CANCELLED','registerBeforeClose','_scheduleHeartbeat','updateOfflineData','enableLocalCache','dispose$','trim','0\x200\x2016\x2016','_document','_httpService','loadOfflineData','ENTITLE_INSUFFICIENT_QUOTA','registerComponent','SetDocZoomRatioOperation','BehaviorSubject','collabStatus.fetchMiss','_registerDependencies','DocSkeletonManagerService','_syncEditingCollabCursorService','then','lineno','_status$','_docTransformIMECacheService','clipPath','filename','USER_NOT_INVITED_CODE','touchDependencies','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','YUUMI_SUBSCRIPTION_NOT_FOUND','_updateSubUnitFromURLParams','DOC_RANGE_TYPE','_anchor','CONFLICT','UPDATE_CURSOR','RECT','fillStyle','length','LocaleService','YUUMI_NO_CUBOID_FOR_QUESTION','SHEET_VIEWPORT_KEY','_disabled','YUUMI_URL_COL_OUT_OF_RANGE','UNAUTHENTICATED','onStarting','has','Tooltip','send','blue.400','bottom','totalFormulasToCalculate','EMAIL_VERIFY_CODE_MISMATCH','DisposableCollection','YUUMI_AI_RUN_FAILED','_anchorDot','subscribeEvent','addObject','_eventUnsubscribe','ENTITLE_DUP_SUBSCRIPTION','_checkCalculationAvailable','IImageIoService','addClipboardHook','_shapes','_collabCursorController','Tools','MoveRangeCommandId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','WebSocketService','RemoveColCommandId','doc.mutation.rich-text-editing','backgroundColor','url(#on-line-icon_clip0_910_349)','labelPosition','_send','beginPath','whenReady','ACTIVE_UNIT_EVENT_CHANNEL','onPointerMove$','_currentUsage','saveOfflineData','measureText','collabCursorState$','undoState','_collaborationUIEventService','session.connection-failed','REDEMPTION_CODE_FULLY_REDEEMED','idSuffix','ICommandService','save','1em','pushState','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','stage','_cursor','tag','Shape','setAlpha','NodePositionConvertToCursor','asObservable','3MYvDGu','DataLoaderService','dispose','current','dirtyRanges','deepClone','BrowserCollaborationSocketService','round','debounce','isTransformMutationsWithChangesetSuccess','START_CALCULATION','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ALREADY_EXISTS','isActive','_transformPreviousActiveRange','_roomMembers$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_textBubble','/universer-api/license/formula/limit/done','FormulaExecutedStateType','invokeId','FromArray','defs','getUniverSheetInstance','RefRangeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','white','roomMembers$','COLORS','join','result','_backgroundColor','_docSkeletonManagerService','ENTITLE_REPORT_LIMIT_EXCEED','SetFormulaCalculationStartMutation','Loading','collab-client.tooltip.reconnect','div','location','replace','shareReplay','78266eeyTjC','runId','AUTHORIZE_CODE_ILLEGAL','setUndoRedoMutationParamsCache','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','some','stringify','_docSyncEditingCollabCursorService','RemoveRowCommandId','_memberService','2405375llODjl','_drawRectRange','hide','DATA_SOURCE_TOO_LARGE','getAncestorScale','_scheduleSaving','getColorFromTheme','_updateURLWithCurrentState','_docClipboardService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','UniverCollaborationClientUIPlugin','drawWith','_configService','m2Prime','override','defIds','Inject','_removeCollabCursors','_renderManagerService','Warning','get','_selfUnitIDs','_localStorageService','getTypeOfUnitAdded$','none','column','SUBMIT_CHANGESET_TIMEOUT','getMemberID','registerRenderModule','DEFAULT_WS_SESSION_TICKET_URL','ThemeService','getDocRanges','handleInsertRangeMoveDown','ENTITLE_CHAT_LIMIT_EXCEED','OffLineIcon','onTransformChange$','getColor','substring','body','getParam','InsertRangeMoveDownCommandId','YUUMI_UNABLE_LOAD_URL','FormulaExecuteStageType','transformMutation','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getCollabCursors$','_getAnchorBounding','_init','#FFF','transformByState','INVITE_CODE_HAS_BEEN_UES','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','toString','SOCKET_FAILED_RETRY','_univerInstanceService','SNAPSHOT_INVALID_SNAPSHOT','unhandledrejection','saveImage','unitID','onCommandExecuted','_sheetSkeletonManagerService','PAYMENT_CHANNEL_NOT_SUPPORT','_refRangeService','restore','getMergeData','type','_refreshCollabCursors','entityInit$','useDependency','getConfig','_doCreateSocket','INVITE_CODE_REQUIRED','CollaborationUIEventId','saveTaskMap','history','params','executeCommand','redoState','parseInt','_localeService','NO_OTHER_CLIENTS_EDITING','filter','transformIMECache','handleDeleteRangeMoveLeft','_handleHeartbeatEvent','fill','getOffsetConfig','Failed','sessionTicket','OnLineIcon','startFormulaLimitUrl','ENSURE_SNAPSHOT_EXECUTION','_updateLocalCursor','collabStatus.notCollab','IUniverInstanceService','Rectangle','docStateChange$','ENTITLE_CAN_NOT_BUY_LOWER_OTP','unitId','_removeClearOtherTimer','session.collaboration-timeout','[LogService\x20Error]:\x20','closePath','96371lYlCSw','href','339255nEISXB','getSheetId','_getSaveTimeout','fillRule','now','symbol','pluginName','ENTITLE_NEED_BILLING_ADDRESS','getOwnPropertyDescriptor','TEXT_RANGE_LAYER_INDEX','session.will-retry','setParam','_applyCommand','red.300','_colorAssignService','syncEditingCollabCursor','PY_RUNTIME_SCRIPT_ERROR','with','formula.calculation.unable','_getSheetObject','_heartbeatTimer','[Window\x20Error]:\x20','delete','UniverCollaborationClientPlugin','removeEventListener','NOT_FOUND','disposeWithMe','UNDEFINED','setItem','WebURLService','IConfigService','unsubscribe','LICENSE_DISTRO_REJECTED','add','getUnitId','subunit','collaboration.single-unit.warning','application/json','findNodePositionByCharIndex','getUnit','YUUMI_RATE_OVER_LIMIT','createElement','_session','onPointerEnter$','set','NOT_COLLAB','_initCommandExecutedListener','font','TEXT','_saveTaskMap','getRenderById','HEADER_MENU','MOBILE_VERIFY_CODE_MISMATCH','_handleHover','_lastResponseTimestamp','ranges','univer-flex\x20univer-items-center','yellow.400','_drawAnchor','memberID','engine','exhaustSavingTask','http://www.w3.org/2000/svg','stageInfo','_scheduleClearOtherTimer','executionId','IMessageService','_setupBeforeClosingHandler','CollaborationDataLoaderController','MOBILE_HAS_BEEN_BOUND','_toggleOnline','ONLINE','REDEMPTION_INVALID_CODE','startRow','CollaborationController','defineProperty','black','_pollingInterval','handleInsertCol','APPLY_NON_SEQUENTIAL_REVISION','_docTransformStateCacheService','clsx','_cursorInfo$','combineLatest','InsertRowCommandId','loadUnit','searchParams','currentColor','attrs','size','catch','message','MessageType','storage','takeUntil','IRemoteInstanceService','selection','displayName','APPLY_PERMISSION_DENIED','range','transformStateCache','handleInsertRow','_drawTextRange','clearTimeout','HTTPService','find','formula.calculation.started','connectInjector','toStringTag','next','collaboration.closeRoom','width','INVITE_CODE_ALREADY_BOUND','FETCH_MISS','WebBrowserSingleActiveUnitService','_hideTimer','mutations','assignAColorForMemberID','_config','requireSession','textRanges','useObservable','text','setActiveRange','INTERNAL_ERROR','switchMap','getSheetBySheetId','UNIVER_DOC','_logService','_draw','on-line-icon','show','getSheetObject','getVpScrollXYInfoByPosToVp','colorChannel1','getLocalCacheKey','IUIPartsService','entries','unload','OTHER_CLIENTS_EDITING','_name','6DGScoQ','row','mergeOverrideWithDependencies','APPLY_REVISION_CONFILICT','_docTransformSelectionsService','_labelPosition','_initUserListener','_assignedColors','runRefRangeMutations','jsxs','20gLLuCi','color','Error','Rect','replaceState','_clearPolling','_createSocketURL','xlink:href','_beforeCloseService','_initEvent','pipe','_getMergeRange','_onCursorUpdate','addEventListener','height','_uploadLog','_dataLoaderService','_instanceService','YUUMI_ALL_TABLES_IS_INVALID','[RemoteUniscriptService]:\x20no\x20focused\x20unit','startColumn','INVALID_ARGUMENT','skeleton','_color','248PutQtk','forEach','ILogService','_commandService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','SNAPSHOT_HAS_BEEN_REMOVED','on-line-icon_clip0_910_349','Disposable','_getSessionTicket','_getFormulaLimitStatus','forwardRef','handleInsertRangeMoveRight','LICENSE_IMPORT_SIZE_EXCEEDED','_initResize','permission.content','sheetId','_setupSubUnitSync','DocIMEInputManagerService','origin','permission.title','DocStateChangeManagerService','max','registerDependencies','getCurrentRevOfUnit','IDocClipboardService','univer-mr-2\x20univer-flex\x20univer-text-xl','editingUnit','PERMISSION_DENIED','SheetCollabCursorShape','_entities','_initUnhandledRejectionListener','createIdentifier','getActiveRange','Injector','ITransformService','CURRENT_STATUS_CANNOT_OPERATE','complete','_docStateChangeManagerService','743165FTpJom','7459360gdALWG','CollaborationStatus','/universer-api/frontend/logs','transformMutationsWithChangeset','RegularPolygon','UniverIcon','_initWindowErrorListener','newValue','lineTo','m1Prime','_context','_collabSessionService','_injector','_localCacheService','APPLY_DUPLICATED','currentTheme$','jiqing.500','_initCommandInterceptor','getUnitStatus$','/universer-api/license/formula/limit/start','EMAIL_HAS_BEEN_BOUND','onPointerLeave$','JOIN_ROOM_FAILED','UnitStatus','jsx','cursorInfo','onMouseMove','_render','LICENSE_MAX_UNITS_EXCEEDED','_showGuardMessage','...','collaboration-client.offline-data-not-saved','url(#$1','LICENSE_EXPORT_SIZE_EXCEEDED','collabStatus.syncing','RevisionService','588GaooRa','_revisionService','isFormulaId','_online','UNIVER_SHEET','debug','getViewport','ERROR_AGAIN','cursorInfo$','_cursors','_setFormulaLimitStatus','unit','getActiveSheet','USER_IS_ANONYMOUS','_initDependencies','handleDeleteRangeMoveUp','selections','focused$','BuiltInUIPart','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_notificationService','EffectRefRangId','debounceTime','isFormulaString','imageSourceType','CommandType','getMember','RemoteUniscriptService','getCoordByCell','isArray','isTransformMutationFailure','path','error','children','Module','currentSkeleton$','eventID','_checkAndWaitForCalculationPermission','name','ColorKit','getCurrentSelections','\x20at\x20','push','SOCKET_FAILED','_saveCache','SessionStatus','AWAITING_WITH_PENDING','subUnitId','_hovered','merge','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','createInstance','_entityInit$','fillText','setStateCache','resize','_maxFormulaLimit','_themeService','ILocalCacheService','event$','_registerRenderDependencies','getSkeleton','assign','_memberID','_handleEvent','_range','MemberService','subscribe','getFocusedUnit','stack','onLocalMutation','getItem','LOGIN_TOKEN_PROCESSING_FAILED','InsertColCommandId','DependentOn','collabStatus.conflict','REDEMPTION_CODE_NOT_STARTED','createSocket','UNRECOGNIZED','getValue','from','_transformHistoryAndStateStack','mask','runOnServer','_transformService','init','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','min','_unitStatus','RichTextEditingMutation','SetSelectionsOperation','USER_NOT_FOUND','setTimeout','colno','post','MUTATION','SheetsSelectionsService','RxDisposable','DocSelectionManagerService','limitInfo','_monkeyPatchLogService','wsSessionTicketUrl','_handleJoinEvent','CanceledError','OFFLINE','string','TOO_MANY_REQUESTS','urlChange$','OTHER_CLIENT_EDITING','collabStatus.synced','_hover','_cursorShapes','_lastPointer','_initStatusListener','releaseFormulaLimitUrl','endRow','DeleteRangeMoveLeftCommandId','M0\x200H16V16H0z','_startCalculationLimit','CollaborationEvent','_colorIndex','_id','_imageIoService','reconnect','code','useCallback','registerRefRange','LOGIN_FAILED','getCellMatrix','UniverInstanceType','evenodd','disposeUnit','Optional','shift','COMPLETION_FINISHED','_toggleOffline','IRenderManagerService','VIEW_MAIN','makeDirty','split','ILocalStorageService','_scene','?taskId=','generateRandomId','sessionStatus$','getTypeOfUnitDisposed$','CONNECTOR_DATA_TOO_LARGE','values'];_0x392f=function(){return _0xf7fbb1;};return _0x392f();}let Z=class extends a['Disposable']{constructor(_0x437a74,_0x8e68ec,_0x7d7056,_0x5159d3,_0x2e9397,_0x1526b2){const _0x160571=_0x4c4685;super(),this[_0x160571(0x247)]=_0x437a74,this[_0x160571(0x28b)]=_0x8e68ec,this[_0x160571(0x3c1)]=_0x7d7056,this[_0x160571(0x34f)]=_0x5159d3,this[_0x160571(0x2b6)]=_0x2e9397,this['_localeService']=_0x1526b2,this[_0x160571(0x1eb)](),this[_0x160571(0x248)]();}[_0x4c4685(0x1eb)](){const _0x44c47e=_0x4c4685;this[_0x44c47e(0x1c2)](this['_beforeCloseService'][_0x44c47e(0x370)](()=>{const _0x5a7411=_0x44c47e;if(this[_0x5a7411(0x28b)][_0x5a7411(0x188)][_0x5a7411(0x201)])return this[_0x5a7411(0x18e)]['t'](_0x5a7411(0x29d));}));}['_initEvent'](){const _0x51cfb9=_0x4c4685;this[_0x51cfb9(0x1c2)](this[_0x51cfb9(0x3c1)][_0x51cfb9(0x2dd)][_0x51cfb9(0x2e5)](_0x1420f4=>{const _0x8a5f1a=_0x51cfb9;_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x30e)]&&this[_0x8a5f1a(0x34f)][_0x8a5f1a(0x22b)]({'type':T[_0x8a5f1a(0x204)][_0x8a5f1a(0x417)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x1cc))}),_0x1420f4['id']===u['CollaborationUIEventId'][_0x8a5f1a(0x36c)]&&this['_messageService'][_0x8a5f1a(0x22b)]({'type':T['MessageType'][_0x8a5f1a(0x417)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x216))}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x272)]&&this['_notificationService']['show']({'title':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x26a)),'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x265)),'type':_0x8a5f1a(0x2c2),'duration':0x0}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x38f)]&&this[_0x8a5f1a(0x34f)][_0x8a5f1a(0x22b)]({'type':T['MessageType'][_0x8a5f1a(0x241)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x216))+'('+_0x1420f4['data']+')'}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x294)]&&this['_messageService'][_0x8a5f1a(0x22b)]({'type':T[_0x8a5f1a(0x204)][_0x8a5f1a(0x417)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x1420f4['data']||'')}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x174)]&&this[_0x8a5f1a(0x34f)][_0x8a5f1a(0x22b)]({'type':T['MessageType']['Warning'],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x1b2))}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x2cd)]&&this[_0x8a5f1a(0x34f)]['show']({'type':T['MessageType'][_0x8a5f1a(0x241)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x3c2))}),_0x1420f4['id']===u[_0x8a5f1a(0x187)][_0x8a5f1a(0x41e)]&&this['_messageService'][_0x8a5f1a(0x22b)]({'type':T[_0x8a5f1a(0x204)][_0x8a5f1a(0x241)],'content':this[_0x8a5f1a(0x18e)]['t'](_0x8a5f1a(0x1a3))});}));}};Z=Ft([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x4c4685(0x2dc)]),y(0x2,a[_0x4c4685(0x414)](u['CollaborationUIEventService'])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x4c4685(0x414)](a['LocaleService']))],Z);var jt=Object[_0x4c4685(0x1b0)],kt=(_0x34a69f,_0x334105,_0x28d2d7,_0x5d28ed)=>{const _0x3077ae=_0x4c4685;for(var _0x283cea=_0x5d28ed>0x1?void 0x0:_0x5d28ed?jt(_0x334105,_0x28d2d7):_0x334105,_0x413029=_0x34a69f[_0x3077ae(0x393)]-0x1,_0x3e2c46;_0x413029>=0x0;_0x413029--)(_0x3e2c46=_0x34a69f[_0x413029])&&(_0x283cea=_0x3e2c46(_0x283cea)||_0x283cea);return _0x283cea;},z=(_0x550353,_0x5ad412)=>(_0x2f9ca7,_0x1c2ad0)=>_0x5ad412(_0x2f9ca7,_0x1c2ad0,_0x550353);let Q=class extends a[_0x4c4685(0x25e)]{constructor(_0x54706f,_0xc18274,_0x1bba59,_0x354d7a){const _0x49007f=_0x4c4685;super(),_(this,_0x49007f(0x2e1)),(this[_0x49007f(0x28a)]=_0x54706f,this[_0x49007f(0x378)]=_0xc18274,this['_logService']=_0x1bba59,this['_collaborationSessionService']=_0x354d7a,this[_0x49007f(0x16e)]());}[_0x4c4685(0x16e)](){const _0x3f0af5=_0x4c4685;this[_0x3f0af5(0x284)](),this[_0x3f0af5(0x275)](),this[_0x3f0af5(0x306)](),this[_0x3f0af5(0x23b)]();}[_0x4c4685(0x23b)](){const _0x4822f1=_0x4c4685;this['disposeWithMe'](this['_collaborationSessionService']['socket$'][_0x4822f1(0x2e5)](_0x4b7448=>{const _0x4c31be=_0x4822f1;this[_0x4c31be(0x2e1)]=_0x4b7448==null?void 0x0:_0x4b7448[_0x4c31be(0x1e3)];}));}['_initWindowErrorListener'](){const _0x141928=_0x4c4685,_0x2d3303=_0x82716b=>{const _0x44fb6a=_0x1c17;var _0x2421c0;this[_0x44fb6a(0x24e)](_0x44fb6a(0x2c2),_0x44fb6a(0x1bd)+_0x82716b[_0x44fb6a(0x203)]+_0x44fb6a(0x2cb)+_0x82716b[_0x44fb6a(0x387)]+':'+_0x82716b[_0x44fb6a(0x383)]+':'+_0x82716b[_0x44fb6a(0x2ff)]+'\x0a'+(((_0x2421c0=_0x82716b[_0x44fb6a(0x2c2)])==null?void 0x0:_0x2421c0[_0x44fb6a(0x2e7)])||''));};window[_0x141928(0x24c)](_0x141928(0x2c2),_0x2d3303),this[_0x141928(0x1c2)](()=>{const _0x7253b7=_0x141928;window[_0x7253b7(0x1c0)](_0x7253b7(0x2c2),_0x2d3303);});}[_0x4c4685(0x275)](){const _0xbb7d0c=_0x4c4685,_0x526dfa=_0x745564=>{const _0x45d7b2=_0x1c17;this['_uploadLog'](_0x45d7b2(0x2c2),'[Unhandled\x20Rejection]:\x20'+_0x745564['reason']);};window[_0xbb7d0c(0x24c)]('unhandledrejection',_0x526dfa),this['disposeWithMe'](()=>{const _0x5ba9ca=_0xbb7d0c;window['removeEventListener'](_0x5ba9ca(0x177),_0x526dfa);});}[_0x4c4685(0x306)](){const _0x7e2bac=_0x4c4685,_0x495662=this[_0x7e2bac(0x228)][_0x7e2bac(0x2c2)]['bind'](this[_0x7e2bac(0x228)]);this[_0x7e2bac(0x228)][_0x7e2bac(0x2c2)]=(..._0x5c63ed)=>{const _0xb71aa9=_0x7e2bac,_0x4a4faf=_0x5c63ed[_0xb71aa9(0x36a)](_0x1a3b5a=>_0x1a3b5a instanceof Error?_0x1a3b5a[_0xb71aa9(0x203)]+'\x0a'+_0x1a3b5a['stack']:String(_0x1a3b5a))[_0xb71aa9(0x3ee)]('\x20');this[_0xb71aa9(0x24e)](_0xb71aa9(0x2c2),_0xb71aa9(0x1a4)+_0x4a4faf),_0x495662(..._0x5c63ed);},this[_0x7e2bac(0x1c2)](()=>{const _0x2fbc04=_0x7e2bac;this[_0x2fbc04(0x228)][_0x2fbc04(0x2c2)]=_0x495662;});}['_uploadLog'](_0x44fac8,_0x2056cb){const _0x442559=_0x4c4685;try{const _0x2b53ed={'userId':this['_memberID'],'logLabel':_0x44fac8,'content':_0x2056cb};this['_httpService'][_0x442559(0x300)](_0x442559(0x280),{'body':_0x2b53ed})[_0x442559(0x202)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x4c4685(0x278)])),z(0x1,a[_0x4c4685(0x414)](x[_0x4c4685(0x210)])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u[_0x4c4685(0x35f)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x4c4685(0x1b0)],Wt=(_0x3a48dc,_0x2733fe,_0x269583,_0x3a7dce)=>{const _0x26c15d=_0x4c4685;for(var _0x10baf7=_0x3a7dce>0x1?void 0x0:_0x3a7dce?Ht(_0x2733fe,_0x269583):_0x2733fe,_0xff3bcd=_0x3a48dc[_0x26c15d(0x393)]-0x1,_0x92d108;_0xff3bcd>=0x0;_0xff3bcd--)(_0x92d108=_0x3a48dc[_0xff3bcd])&&(_0x10baf7=_0x92d108(_0x10baf7)||_0x10baf7);return _0x10baf7;},Ae=(_0x1adee0,_0x4cf90d)=>(_0x74760c,_0x36bf2f)=>_0x4cf90d(_0x74760c,_0x36bf2f,_0x1adee0);let ee=class{constructor(_0x19961e,_0x145061){const _0x326589=_0x4c4685;this[_0x326589(0x2f6)]=_0x19961e,this[_0x326589(0x416)]=_0x145061;}[_0x4c4685(0x191)](_0x3551b0){const _0x107c9b=_0x4c4685;this[_0x107c9b(0x343)](_0x3551b0),this[_0x107c9b(0x3df)](_0x3551b0);}[_0x4c4685(0x355)](_0x3d5c84){const _0x35d86d=_0x4c4685,{unitID:_0x59f981}=_0x3d5c84,_0xfc7717=this[_0x35d86d(0x416)][_0x35d86d(0x1da)](_0x59f981)['with'](p[_0x35d86d(0x268)]),{redoCache:_0x5293c8}=_0xfc7717['getUndoRedoMutationParamsCache']();if(_0x5293c8[_0x35d86d(0x393)]===0x0)return _0x3d5c84;let _0x172a5a=a[_0x35d86d(0x3ae)]['deepClone'](_0x3d5c84[_0x35d86d(0x21c)][0x0]);for(let _0x33c478=0x0;_0x33c478<_0x5293c8[_0x35d86d(0x393)];_0x33c478++){const _0xfe962b={'id':_0x35d86d(0x3b3),'params':{..._0x5293c8[_0x33c478]}},_0x56ec62=this[_0x35d86d(0x2f6)][_0x35d86d(0x42f)](_0x172a5a,_0xfe962b,!0x1);if(g[_0x35d86d(0x2c0)](_0x56ec62))throw _0x56ec62['error'];_0x172a5a=_0x56ec62['m1Prime'];}return{...a[_0x35d86d(0x3ae)][_0x35d86d(0x3d6)](_0x3d5c84),'mutations':[_0x172a5a]};}[_0x4c4685(0x343)](_0x51b561){const _0x1d0acc=_0x4c4685,{unitID:_0x3920a5}=_0x51b561,_0x1bae3d=this[_0x1d0acc(0x416)][_0x1d0acc(0x1da)](_0x3920a5)[_0x1d0acc(0x1b9)](p[_0x1d0acc(0x268)]),{undoCache:_0x4b7da8,redoCache:_0x4c5970}=_0x1bae3d['getUndoRedoMutationParamsCache']();if(_0x4b7da8[_0x1d0acc(0x393)]===0x0||_0x4c5970[_0x1d0acc(0x393)]===0x0)return;const _0x3644a6=[],_0x411a5e=[];let _0x122be3=a[_0x1d0acc(0x3ae)]['deepClone'](_0x51b561[_0x1d0acc(0x21c)][0x0]),_0x8d22d0=a['Tools'][_0x1d0acc(0x3d6)](_0x51b561[_0x1d0acc(0x21c)][0x0]);for(let _0x292601=_0x4b7da8[_0x1d0acc(0x393)]-0x1;_0x292601>=0x0;_0x292601--){const _0x4c0651={'id':_0x1d0acc(0x3b3),'params':{..._0x4b7da8[_0x292601]}},_0x153b62={'id':_0x1d0acc(0x3b3),'params':{..._0x4c5970[_0x292601]}},_0x4e4d12=this['_transformService']['transformMutation'](_0x122be3,_0x4c0651,!0x1),_0x1cc7da=this[_0x1d0acc(0x2f6)][_0x1d0acc(0x42f)](_0x8d22d0,_0x153b62,!0x1);if(g[_0x1d0acc(0x2c0)](_0x4e4d12))throw _0x4e4d12[_0x1d0acc(0x2c2)];if(g['isTransformMutationFailure'](_0x1cc7da))throw _0x1cc7da[_0x1d0acc(0x2c2)];_0x3644a6[_0x1d0acc(0x364)](_0x4e4d12[_0x1d0acc(0x411)][_0x1d0acc(0x18a)]),_0x411a5e[_0x1d0acc(0x364)](_0x1cc7da[_0x1d0acc(0x411)]['params']),_0x122be3=_0x4e4d12[_0x1d0acc(0x287)],_0x8d22d0=_0x1cc7da['m1Prime'];}_0x1bae3d[_0x1d0acc(0x3fd)]({'undoCache':_0x3644a6,'redoCache':_0x411a5e});}[_0x4c4685(0x3df)](_0x585aa5){const _0x1faab9=_0x4c4685,{unitID:_0x15cde8}=_0x585aa5,_0x5c4a9b=this[_0x1faab9(0x416)][_0x1faab9(0x1da)](_0x15cde8)[_0x1faab9(0x1b9)](p['DocIMEInputManagerService']),_0x3caa90=_0x5c4a9b[_0x1faab9(0x277)]();if(_0x3caa90==null)return;const _0x58c383=[{'id':_0x1faab9(0x3b3),'params':{'unitId':_0x585aa5[_0x1faab9(0x179)],'actions':null,'textRanges':[_0x3caa90]}}],_0x244255=this['_transformService'][_0x1faab9(0x281)](_0x585aa5,_0x58c383);if(!g[_0x1faab9(0x3da)](_0x244255))throw _0x244255[_0x1faab9(0x2c2)];const _0x33a05c=_0x244255[_0x1faab9(0x411)][0x0][_0x1faab9(0x18a)][_0x1faab9(0x220)];Array[_0x1faab9(0x2bf)](_0x33a05c)&&_0x33a05c[_0x1faab9(0x393)]&&_0x5c4a9b[_0x1faab9(0x223)](_0x33a05c[0x0]);}};ee=Wt([Ae(0x0,g[_0x4c4685(0x279)]),Ae(0x1,C[_0x4c4685(0x32a)])],ee);var Vt=Object[_0x4c4685(0x1b0)],Gt=(_0x3900ae,_0x312431,_0x5a417a,_0x4e337d)=>{const _0x344c44=_0x4c4685;for(var _0xacb919=_0x4e337d>0x1?void 0x0:_0x4e337d?Vt(_0x312431,_0x5a417a):_0x312431,_0x2dfe9f=_0x3900ae[_0x344c44(0x393)]-0x1,_0x45a471;_0x2dfe9f>=0x0;_0x2dfe9f--)(_0x45a471=_0x3900ae[_0x2dfe9f])&&(_0xacb919=_0x45a471(_0xacb919)||_0xacb919);return _0xacb919;},Ie=(_0x41c2b5,_0xef05d1)=>(_0x5b1d67,_0x3bfd23)=>_0xef05d1(_0x5b1d67,_0x3bfd23,_0x41c2b5);let te=class{constructor(_0x3fcd65,_0x24028f,_0xb0e614){const _0x65976f=_0x4c4685;this[_0x65976f(0x28a)]=_0x3fcd65,this['_transformService']=_0x24028f,this['_docStateChangeManagerService']=_0xb0e614;}[_0x4c4685(0x20c)](_0x352248){const _0xfe326=_0x4c4685;this[_0xfe326(0x2f3)](_0x352248);}[_0x4c4685(0x355)](_0x92f78){const _0x560b1c=_0x4c4685,{unitID:_0x17bdac}=_0x92f78,{collaboration:_0x403af7}=this[_0x560b1c(0x27c)]['getStateCache'](_0x17bdac);if(_0x403af7['length']===0x0)return _0x92f78;let _0x74723=a['Tools'][_0x560b1c(0x3d6)](_0x92f78['mutations'][0x0]);for(let _0x3fad5=0x0;_0x3fad5<_0x403af7[_0x560b1c(0x393)];_0x3fad5++){const _0x92a7f8={'id':_0x560b1c(0x3b3),'params':{'unitId':_0x403af7[_0x3fad5]['unitId'],..._0x403af7[_0x3fad5][_0x560b1c(0x18c)]}},_0x17a6ca=this[_0x560b1c(0x2f6)]['transformMutation'](_0x74723,_0x92a7f8,!0x1);if(g[_0x560b1c(0x2c0)](_0x17a6ca))throw _0x17a6ca['error'];_0x74723=_0x17a6ca[_0x560b1c(0x287)];}return{...a['Tools'][_0x560b1c(0x3d6)](_0x92f78),'mutations':[_0x74723]};}[_0x4c4685(0x2f3)](_0x1d6e72){const _0x50fed2=_0x4c4685,{unitID:_0x2fb507}=_0x1d6e72,{history:_0x34973b,collaboration:_0xd16b7b}=this[_0x50fed2(0x27c)]['getStateCache'](_0x2fb507);if(_0x34973b['length']===0x0&&_0xd16b7b[_0x50fed2(0x393)]===0x0)return;const _0x26961c=[],_0x1cfd89=[];let _0x9d38ce=a[_0x50fed2(0x3ae)][_0x50fed2(0x3d6)](_0x1d6e72[_0x50fed2(0x21c)][0x0]),_0x3ef2c6=a[_0x50fed2(0x3ae)][_0x50fed2(0x3d6)](_0x1d6e72[_0x50fed2(0x21c)][0x0]);for(let _0x4226e0=_0x34973b[_0x50fed2(0x393)]-0x1;_0x4226e0>=0x0;_0x4226e0--){const _0x205e06={'id':_0x50fed2(0x3b3),'params':{'unitId':_0x34973b[_0x4226e0][_0x50fed2(0x1a1)],..._0x34973b[_0x4226e0][_0x50fed2(0x3c0)]}},_0x3220c0={'id':_0x50fed2(0x3b3),'params':{'unitId':_0x34973b[_0x4226e0]['unitId'],..._0x34973b[_0x4226e0][_0x50fed2(0x18c)]}},_0x3fd758=this[_0x50fed2(0x2f6)][_0x50fed2(0x42f)](_0x9d38ce,_0x205e06,!0x1),_0x203cac=this['_transformService']['transformMutation'](_0x3ef2c6,_0x3220c0,!0x1);if(g[_0x50fed2(0x2c0)](_0x3fd758))throw _0x3fd758[_0x50fed2(0x2c2)];if(g[_0x50fed2(0x2c0)](_0x203cac))throw _0x203cac['error'];_0x26961c[_0x50fed2(0x364)]({..._0x34973b[_0x4226e0],'undoState':_0x3fd758['m2Prime']['params'],'redoState':_0x203cac[_0x50fed2(0x411)][_0x50fed2(0x18a)]}),_0x9d38ce=_0x3fd758[_0x50fed2(0x287)],_0x3ef2c6=_0x203cac[_0x50fed2(0x287)];}_0x9d38ce=a[_0x50fed2(0x3ae)]['deepClone'](_0x1d6e72[_0x50fed2(0x21c)][0x0]),_0x3ef2c6=a[_0x50fed2(0x3ae)]['deepClone'](_0x1d6e72[_0x50fed2(0x21c)][0x0]);for(let _0x59c98a=_0xd16b7b['length']-0x1;_0x59c98a>=0x0;_0x59c98a--){const _0xbfeab9={'id':_0x50fed2(0x3b3),'params':{'unitId':_0xd16b7b[_0x59c98a]['unitId'],..._0xd16b7b[_0x59c98a][_0x50fed2(0x3c0)]}},_0x57274f={'id':_0x50fed2(0x3b3),'params':{'unitId':_0xd16b7b[_0x59c98a][_0x50fed2(0x1a1)],..._0xd16b7b[_0x59c98a][_0x50fed2(0x18c)]}},_0x49f7e0=this[_0x50fed2(0x2f6)][_0x50fed2(0x42f)](_0x9d38ce,_0xbfeab9,!0x1),_0x2c3ab1=this[_0x50fed2(0x2f6)][_0x50fed2(0x42f)](_0x3ef2c6,_0x57274f,!0x1);if(g[_0x50fed2(0x2c0)](_0x49f7e0))throw _0x49f7e0['error'];if(g[_0x50fed2(0x2c0)](_0x2c3ab1))throw _0x2c3ab1[_0x50fed2(0x2c2)];_0x1cfd89[_0x50fed2(0x364)]({..._0xd16b7b[_0x59c98a],'undoState':_0x49f7e0[_0x50fed2(0x411)]['params'],'redoState':_0x2c3ab1[_0x50fed2(0x411)]['params']}),_0x9d38ce=_0x49f7e0[_0x50fed2(0x287)],_0x3ef2c6=_0x2c3ab1[_0x50fed2(0x287)];}this[_0x50fed2(0x27c)][_0x50fed2(0x2d8)](_0x2fb507,{'history':_0x26961c,'collaboration':_0x1cfd89});}};te=Gt([Ie(0x0,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),Ie(0x1,g[_0x4c4685(0x279)]),Ie(0x2,a[_0x4c4685(0x414)](p[_0x4c4685(0x26b)]))],te);var Xt=Object[_0x4c4685(0x1b0)],Kt=(_0x3550cf,_0x444c41,_0x5a5dea,_0x465e2a)=>{const _0x3a254f=_0x4c4685;for(var _0x35edbc=_0x465e2a>0x1?void 0x0:_0x465e2a?Xt(_0x444c41,_0x5a5dea):_0x444c41,_0x4afa58=_0x3550cf[_0x3a254f(0x393)]-0x1,_0x37eed9;_0x4afa58>=0x0;_0x4afa58--)(_0x37eed9=_0x3550cf[_0x4afa58])&&(_0x35edbc=_0x37eed9(_0x35edbc)||_0x35edbc);return _0x35edbc;},Pe=(_0x392316,_0x2b5e19)=>(_0x496312,_0x144e1d)=>_0x2b5e19(_0x496312,_0x144e1d,_0x392316);let se=class{constructor(_0x54006f,_0x193a66){const _0x257308=_0x4c4685;this[_0x257308(0x28a)]=_0x54006f,this[_0x257308(0x2f6)]=_0x193a66;}['transformSelections'](_0x4c5b4c){const _0x595ad4=_0x4c4685;var _0x51cef1;const _0x5aa7ad=this[_0x595ad4(0x28a)]['get'](V[_0x595ad4(0x304)]),_0x59ec6c=(_0x51cef1=_0x5aa7ad[_0x595ad4(0x423)]())!=null?_0x51cef1:[];if(_0x59ec6c[_0x595ad4(0x393)]===0x0)return;const _0x4b9aca=_0x4c5b4c[_0x595ad4(0x179)],_0xfaa9e9=[{'id':_0x595ad4(0x3b3),'params':{'unitId':_0x4b9aca,'actions':null,'textRanges':_0x59ec6c}}],_0x30cbcd=this[_0x595ad4(0x2f6)][_0x595ad4(0x281)](_0x4c5b4c,_0xfaa9e9);if(!g[_0x595ad4(0x3da)](_0x30cbcd))throw _0x30cbcd[_0x595ad4(0x2c2)];const _0x42469b=_0x30cbcd[_0x595ad4(0x411)][0x0]['params'][_0x595ad4(0x220)];Array[_0x595ad4(0x2bf)](_0x42469b)&&_0x42469b[_0x595ad4(0x393)]&&_0x5aa7ad['replaceDocRanges'](_0x42469b,{'unitId':_0x4b9aca,'subUnitId':_0x4b9aca},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x4c4685(0x278)])),Pe(0x1,g[_0x4c4685(0x279)])],se);var qt=Object[_0x4c4685(0x1b0)],zt=(_0x35d0ea,_0x1c5d3c,_0x99175f,_0xc11653)=>{const _0x2ea0ae=_0x4c4685;for(var _0x285878=_0xc11653>0x1?void 0x0:_0xc11653?qt(_0x1c5d3c,_0x99175f):_0x1c5d3c,_0x413b01=_0x35d0ea[_0x2ea0ae(0x393)]-0x1,_0x48d31c;_0x413b01>=0x0;_0x413b01--)(_0x48d31c=_0x35d0ea[_0x413b01])&&(_0x285878=_0x48d31c(_0x285878)||_0x285878);return _0x285878;},N=(_0x41f033,_0x279de5)=>(_0x116c45,_0x255bbf)=>_0x279de5(_0x116c45,_0x255bbf,_0x41f033);let ie=class extends a[_0x4c4685(0x25e)]{constructor(_0x88715e,_0x4e60d7,_0x38741c,_0x26319a,_0x3bf44f,_0x3f9a3b,_0x231cf3,_0x521fed){const _0x1181b6=_0x4c4685;super(),_(this,'_status$',new I[(_0x1181b6(0x37d))](u[_0x1181b6(0x27f)]['NOT_COLLAB'])),(this[_0x1181b6(0x27c)]=_0x88715e,this[_0x1181b6(0x362)]=_0x4e60d7,this[_0x1181b6(0x385)]=_0x38741c,this[_0x1181b6(0x1f8)]=_0x26319a,this['_docTransformSelectionsService']=_0x3bf44f,this['_docSyncEditingCollabCursorService']=_0x3f9a3b,this['_messageService']=_0x231cf3,this['_localeService']=_0x521fed,this['_initEntityListener']());}['_initEntityListener'](){const _0x493359=_0x4c4685;this[_0x493359(0x1c2)](this[_0x493359(0x362)][_0x493359(0x182)][_0x493359(0x2e5)](_0x29b14f=>{const _0x37fa86=_0x493359,_0x2c9be4=this[_0x37fa86(0x27c)][_0x37fa86(0x19f)][_0x37fa86(0x2e5)](_0x541272=>{const _0x30751d=_0x37fa86;if(_0x541272==null)return;const {unitId:_0x43c335,redoState:_0x22e31d,commandId:_0x39d57a}=_0x541272;if(_0x43c335!==_0x29b14f[_0x30751d(0x179)])return;const _0x5737f4={'id':_0x39d57a,'type':a[_0x30751d(0x2bb)][_0x30751d(0x301)],'params':{'unitId':_0x43c335,'actions':_0x22e31d['actions'],'textRanges':null}};_0x29b14f[_0x30751d(0x2e8)](_0x5737f4);});if(_0x29b14f[_0x37fa86(0x1c2)](_0x2c9be4),_0x29b14f instanceof u['DocCollaborationEntity']){const _0x16555e={'onTransformIME':_0x1c7f4c=>this['_docTransformIMECacheService']['transformIMECache'](_0x1c7f4c),'onTransformState':_0x5e4ce4=>this[_0x37fa86(0x1f8)][_0x37fa86(0x20c)](_0x5e4ce4),'onTransformSelections':_0x3b4ee1=>this[_0x37fa86(0x239)]['transformSelections'](_0x3b4ee1),'onSyncEditingCollabCursor':_0x290485=>this[_0x37fa86(0x401)][_0x37fa86(0x1b7)](_0x290485),'onTransformRemoteChangesetByIMECache':_0x6bff8b=>this[_0x37fa86(0x385)]['transformRemoteChangeset'](_0x6bff8b),'onTransformRemoteChangesetByStateCache':_0xc6eb1a=>this[_0x37fa86(0x1f8)][_0x37fa86(0x355)](_0xc6eb1a)};_0x29b14f['addHandlerCallback'](_0x16555e);}}));}};ie=zt([N(0x0,a[_0x4c4685(0x414)](p[_0x4c4685(0x26b)])),N(0x1,a[_0x4c4685(0x414)](u[_0x4c4685(0x1f2)])),N(0x2,a[_0x4c4685(0x414)](ee)),N(0x3,a[_0x4c4685(0x414)](te)),N(0x4,a['Inject'](se)),N(0x5,a[_0x4c4685(0x414)](be)),N(0x6,O[_0x4c4685(0x1ea)]),N(0x7,a[_0x4c4685(0x414)](a[_0x4c4685(0x394)]))],ie);var G=(_0x3ebc51=>(_0x3ebc51[_0x3ebc51[_0x4c4685(0x1c3)]=0x0]='UNDEFINED',_0x3ebc51[_0x3ebc51['OK']=0x1]='OK',_0x3ebc51[_0x3ebc51['INTERNAL_ERROR']=0x2]=_0x4c4685(0x224),_0x3ebc51[_0x3ebc51[_0x4c4685(0x272)]=0x3]=_0x4c4685(0x272),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1c1)]=0x4]=_0x4c4685(0x1c1),_0x3ebc51[_0x3ebc51[_0x4c4685(0x399)]=0x5]=_0x4c4685(0x399),_0x3ebc51[_0x3ebc51['ALREADY_EXISTS']=0x6]=_0x4c4685(0x3dd),_0x3ebc51[_0x3ebc51['INVALID_ARGUMENT']=0x7]=_0x4c4685(0x254),_0x3ebc51[_0x3ebc51[_0x4c4685(0x30c)]=0x8]=_0x4c4685(0x30c),_0x3ebc51[_0x3ebc51[_0x4c4685(0x328)]=0x9]=_0x4c4685(0x328),_0x3ebc51[_0x3ebc51[_0x4c4685(0x321)]=0xa]=_0x4c4685(0x321),_0x3ebc51[_0x3ebc51['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x4c4685(0x1dc),_0x3ebc51[_0x3ebc51[_0x4c4685(0x430)]=0xc]=_0x4c4685(0x430),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3a1)]=0xd]=_0x4c4685(0x3a1),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3dc)]=0xe]=_0x4c4685(0x3dc),_0x3ebc51[_0x3ebc51['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x4c4685(0x3fc),_0x3ebc51[_0x3ebc51['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x4c4685(0x2ea),_0x3ebc51[_0x3ebc51['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x4c4685(0x27a),_0x3ebc51[_0x3ebc51['ERROR_AGAIN']=0x65]=_0x4c4685(0x2a9),_0x3ebc51[_0x3ebc51[_0x4c4685(0x2fd)]=0xc9]=_0x4c4685(0x2fd),_0x3ebc51[_0x3ebc51[_0x4c4685(0x2af)]=0xca]='USER_IS_ANONYMOUS',_0x3ebc51[_0x3ebc51[_0x4c4685(0x368)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3ebc51[_0x3ebc51[_0x4c4685(0x176)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3ebc51[_0x3ebc51['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4c4685(0x25c),_0x3ebc51[_0x3ebc51['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x4c4685(0x19a),_0x3ebc51[_0x3ebc51['APPLY_REJECT']=0x1b59]=_0x4c4685(0x361),_0x3ebc51[_0x3ebc51['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4c4685(0x1f7),_0x3ebc51[_0x3ebc51[_0x4c4685(0x238)]=0x1b5b]=_0x4c4685(0x238),_0x3ebc51[_0x3ebc51[_0x4c4685(0x20a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3ebc51[_0x3ebc51['APPLY_DUPLICATED']=0x1b5d]=_0x4c4685(0x28c),_0x3ebc51[_0x3ebc51[_0x4c4685(0x334)]=0x1f41]=_0x4c4685(0x334),_0x3ebc51[_0x3ebc51[_0x4c4685(0x29a)]=0x2329]=_0x4c4685(0x29a),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3c9)]=0x232a]=_0x4c4685(0x3c9),_0x3ebc51[_0x3ebc51[_0x4c4685(0x263)]=0x232b]=_0x4c4685(0x263),_0x3ebc51[_0x3ebc51[_0x4c4685(0x29f)]=0x232c]=_0x4c4685(0x29f),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1c8)]=0x232d]=_0x4c4685(0x1c8),_0x3ebc51[_0x3ebc51[_0x4c4685(0x42d)]=0x2711]=_0x4c4685(0x42d),_0x3ebc51[_0x3ebc51[_0x4c4685(0x398)]=0x2712]=_0x4c4685(0x398),_0x3ebc51[_0x3ebc51['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4c4685(0x1d0),_0x3ebc51[_0x3ebc51[_0x4c4685(0x38b)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3ebc51[_0x3ebc51[_0x4c4685(0x395)]=0x271a]=_0x4c4685(0x395),_0x3ebc51[_0x3ebc51[_0x4c4685(0x36f)]=0x271b]=_0x4c4685(0x36f),_0x3ebc51[_0x3ebc51['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x3ebc51[_0x3ebc51[_0x4c4685(0x251)]=0x271d]=_0x4c4685(0x251),_0x3ebc51[_0x3ebc51[_0x4c4685(0x25b)]=0x271e]=_0x4c4685(0x25b),_0x3ebc51[_0x3ebc51['YUUMI_AI_RUN_FAILED']=0x271f]=_0x4c4685(0x3a3),_0x3ebc51[_0x3ebc51['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x4c4685(0x346),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1b8)]=0x2af9]=_0x4c4685(0x1b8),_0x3ebc51[_0x3ebc51['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x4c4685(0x171),_0x3ebc51[_0x3ebc51['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x3ebc51[_0x3ebc51['INVITE_CODE_REQUIRED']=0x2ee3]=_0x4c4685(0x186),_0x3ebc51[_0x3ebc51[_0x4c4685(0x388)]=0x2ee4]=_0x4c4685(0x388),_0x3ebc51[_0x3ebc51['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x4c4685(0x218),_0x3ebc51[_0x3ebc51[_0x4c4685(0x36b)]=0x32c9]=_0x4c4685(0x36b),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1ed)]=0x32ca]=_0x4c4685(0x1ed),_0x3ebc51[_0x3ebc51[_0x4c4685(0x292)]=0x32cb]=_0x4c4685(0x292),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1a0)]=0x36b1]=_0x4c4685(0x1a0),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3fe)]=0x36b2]=_0x4c4685(0x3fe),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3a8)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x3ebc51[_0x3ebc51[_0x4c4685(0x17c)]=0x36b4]=_0x4c4685(0x17c),_0x3ebc51[_0x3ebc51[_0x4c4685(0x425)]=0x3715]=_0x4c4685(0x425),_0x3ebc51[_0x3ebc51[_0x4c4685(0x3f2)]=0x3716]=_0x4c4685(0x3f2),_0x3ebc51[_0x3ebc51[_0x4c4685(0x37a)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x3ebc51[_0x3ebc51[_0x4c4685(0x1af)]=0x37dd]=_0x4c4685(0x1af),_0x3ebc51[_0x3ebc51[_0x4c4685(0x1f0)]=0x3a99]=_0x4c4685(0x1f0),_0x3ebc51[_0x3ebc51['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x3ebc51[_0x3ebc51[_0x4c4685(0x3c3)]=0x3a9b]=_0x4c4685(0x3c3),_0x3ebc51[_0x3ebc51['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x4c4685(0x2ee),_0x3ebc51[_0x3ebc51[_0x4c4685(0x33f)]=0x3a9d]=_0x4c4685(0x33f),_0x3ebc51[_0x3ebc51[_0x4c4685(0x40d)]=0x3a9e]=_0x4c4685(0x40d),_0x3ebc51[_0x3ebc51['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x3ebc51[_0x3ebc51[_0x4c4685(0x407)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x3ebc51[_0x3ebc51['UNRECOGNIZED']=-0x1]=_0x4c4685(0x2f0),_0x3ebc51))(G||{});function Jt(_0x13c5b9){const _0x357038=_0x4c4685;var _0x443b19,_0x340705;const _0x57fa38=(_0x443b19=_0x13c5b9[_0x357038(0x1e7)])==null?void 0x0:_0x443b19[_0x357038(0x3ca)],_0x296294=((_0x340705=_0x13c5b9['stageInfo'])==null?void 0x0:_0x340705[_0x357038(0x3a0)])||0x0;return _0x57fa38===B[_0x357038(0x42e)][_0x357038(0x3db)]&&_0x296294>0x0;}function Zt(_0x51a0a8){const _0x3fdfa5=_0x4c4685;return _0x51a0a8['functionsExecutedState']===B[_0x3fdfa5(0x3e4)]['SUCCESS'];}var Qt=Object[_0x4c4685(0x1b0)],es=(_0x4954e3,_0x630055,_0xbcc942,_0x3ae3a1)=>{const _0x3f7a01=_0x4c4685;for(var _0x3fbcde=_0x3ae3a1>0x1?void 0x0:_0x3ae3a1?Qt(_0x630055,_0xbcc942):_0x630055,_0x308289=_0x4954e3[_0x3f7a01(0x393)]-0x1,_0x56e58e;_0x308289>=0x0;_0x308289--)(_0x56e58e=_0x4954e3[_0x308289])&&(_0x3fbcde=_0x56e58e(_0x3fbcde)||_0x3fbcde);return _0x3fbcde;},L=(_0x357d94,_0x2a41cc)=>(_0x354998,_0xfa5f5d)=>_0x2a41cc(_0x354998,_0xfa5f5d,_0x357d94);const ts='/universer-api/license/formula/limit/status',ss=_0x4c4685(0x291),is=_0x4c4685(0x3e3);let ne=class extends a[_0x4c4685(0x25e)]{constructor(_0x32f097,_0x8830d1,_0x342266,_0x14268b,_0x49c1a8,_0x98431b,_0x3ae846){const _0x34a75a=_0x4c4685;super(),_(this,_0x34a75a(0x1f5),null),_(this,_0x34a75a(0x2da),0x0),_(this,_0x34a75a(0x3bc),0x0),_(this,'_taskIds',[]),_(this,_0x34a75a(0x1de),0x0),(this[_0x34a75a(0x34f)]=_0x32f097,this[_0x34a75a(0x25a)]=_0x8830d1,this[_0x34a75a(0x410)]=_0x342266,this[_0x34a75a(0x378)]=_0x14268b,this[_0x34a75a(0x175)]=_0x49c1a8,this[_0x34a75a(0x228)]=_0x98431b,this[_0x34a75a(0x18e)]=_0x3ae846,this[_0x34a75a(0x28f)]());}['_initCommandInterceptor'](){const _0x4dc0b8=_0x4c4685;this['disposeWithMe'](this[_0x4dc0b8(0x25a)]['beforeCommandExecuted']((_0x8f5048,_0x3aacf8)=>{const _0x476173=_0x4dc0b8;var _0x298323;if(_0x8f5048['id']!==B[_0x476173(0x3f3)]['id'])return;const _0x3c4d89=_0x8f5048[_0x476173(0x18a)];if(!this[_0x476173(0x33c)]((_0x298323=_0x3c4d89[_0x476173(0x3d5)])!=null?_0x298323:[]))return;if(!this[_0x476173(0x3a9)]())throw this[_0x476173(0x2c7)](_0x8f5048,_0x3aacf8),this[_0x476173(0x29b)](),new a[(_0x476173(0x309))]();})),this[_0x4dc0b8(0x1c2)](this[_0x4dc0b8(0x25a)]['onCommandExecuted']((_0x1b620f,_0x157e16)=>{const _0x1590a7=_0x4dc0b8;if(_0x1b620f['id']!==B[_0x1590a7(0x35d)]['id'])return;const _0x1215cf=_0x1b620f[_0x1590a7(0x18a)];if(Jt(_0x1215cf)){const _0x1a7add=a['generateRandomId']();this[_0x1590a7(0x338)][_0x1590a7(0x2cc)](_0x1a7add),this[_0x1590a7(0x318)](_0x1a7add);}else{if(Zt(_0x1215cf)&&this[_0x1590a7(0x338)][_0x1590a7(0x393)]>0x0){const _0x7d2308=this['_taskIds'][_0x1590a7(0x327)]();this['_releaseCalculationLimit'](_0x7d2308);}}}));}['dispose'](){const _0x3b9d41=_0x4c4685;super[_0x3b9d41(0x3d3)](),this[_0x3b9d41(0x244)](),this['_taskIds']=[],this[_0x3b9d41(0x3bc)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x4c4685(0x2c7)](_0x1fa218,_0xfa889f){const _0x5a9d54=_0x4c4685;for(let _0x3e2354=0x0;_0x3e2354<0x1e;_0x3e2354++)try{if(await this[_0x5a9d54(0x260)](),this[_0x5a9d54(0x3a9)]()){this[_0x5a9d54(0x1b4)](_0x1fa218,_0xfa889f),this[_0x5a9d54(0x34f)][_0x5a9d54(0x22b)]({'content':this[_0x5a9d54(0x18e)]['t'](_0x5a9d54(0x212)),'type':T['MessageType']['Success']});return;}await new Promise(_0x1584b4=>{const _0x12213c=_0x5a9d54;this['_pollingInterval']=window[_0x12213c(0x2fe)](_0x1584b4,0x3e8);});}catch(_0x89674){this[_0x5a9d54(0x228)][_0x5a9d54(0x2c2)](_0x89674);}this['_messageService']['show']({'content':this[_0x5a9d54(0x18e)]['t'](_0x5a9d54(0x1ba)),'type':T[_0x5a9d54(0x204)][_0x5a9d54(0x241)]});}[_0x4c4685(0x1b4)](_0x1b6009,_0x5a2d17){const _0x47e45a=_0x4c4685;try{this['_commandService'][_0x47e45a(0x18b)](_0x1b6009['id'],_0x1b6009['params'],_0x5a2d17);}catch(_0x885c23){this[_0x47e45a(0x228)][_0x47e45a(0x2c2)](_0x885c23);}}[_0x4c4685(0x2ac)](_0x23ce11,_0xe32def){const _0x157972=_0x4c4685;_0xe32def<this[_0x157972(0x1de)]||(this['_lastResponseTimestamp']=_0xe32def,this['_maxFormulaLimit']=Number[_0x157972(0x18d)](_0x23ce11['maxFormulaLimit']),this[_0x157972(0x3bc)]=Number['parseInt'](_0x23ce11[_0x157972(0x351)]));}async[_0x4c4685(0x318)](_0x6abdd1){const _0x408131=_0x4c4685;var _0x1e305f,_0x17d78a;const _0x1643f2=Date['now']();try{const _0x5ebf44=((_0x1e305f=this[_0x408131(0x410)][_0x408131(0x184)](u[_0x408131(0x3b0)]))==null?void 0x0:_0x1e305f[_0x408131(0x199)])||ss,_0x1c5961=(await this[_0x408131(0x378)][_0x408131(0x300)](_0x5ebf44,{'body':JSON['stringify']({'taskId':_0x6abdd1})}))[_0x408131(0x42a)];if(((_0x17d78a=_0x1c5961['error'])==null?void 0x0:_0x17d78a[_0x408131(0x31e)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x1c5961[_0x408131(0x305)],_0x1643f2);}catch(_0x5e3079){this[_0x408131(0x228)][_0x408131(0x2c2)](_0x5e3079);}}async[_0x4c4685(0x260)](_0x3c7203){const _0xd31e9e=_0x4c4685;var _0x1c1768,_0x166504;const _0x40a2aa=Date['now']();try{const _0x201791=((_0x1c1768=this['_configService'][_0xd31e9e(0x184)](u[_0xd31e9e(0x3b0)]))==null?void 0x0:_0x1c1768['getformulaLimitStatusUrl'])||ts,_0x143e0a=_0x3c7203?_0x201791+_0xd31e9e(0x330)+encodeURIComponent(_0x3c7203):_0x201791,_0x206cef=(await this['_httpService'][_0xd31e9e(0x418)](_0x143e0a))['body'];if(((_0x166504=_0x206cef[_0xd31e9e(0x2c2)])==null?void 0x0:_0x166504[_0xd31e9e(0x31e)])!==G['OK'])return;this[_0xd31e9e(0x2ac)](_0x206cef[_0xd31e9e(0x305)],_0x40a2aa);}catch(_0x2dd34e){this[_0xd31e9e(0x228)][_0xd31e9e(0x2c2)](_0x2dd34e);}}async['_releaseCalculationLimit'](_0x44a819){const _0x157d42=_0x4c4685;var _0x1980fd,_0x16f2e0;const _0x19e039=Date[_0x157d42(0x1ac)]();try{const _0x5ec7ff=((_0x1980fd=this[_0x157d42(0x410)][_0x157d42(0x184)](u[_0x157d42(0x3b0)]))==null?void 0x0:_0x1980fd[_0x157d42(0x314)])||is,_0x24812f=(await this[_0x157d42(0x378)][_0x157d42(0x300)](_0x5ec7ff,{'body':JSON[_0x157d42(0x400)]({'taskId':_0x44a819})}))[_0x157d42(0x42a)];if(((_0x16f2e0=_0x24812f['error'])==null?void 0x0:_0x16f2e0[_0x157d42(0x31e)])!==G['OK'])return;this[_0x157d42(0x2ac)](_0x24812f[_0x157d42(0x305)],_0x19e039);}catch(_0x21607a){this[_0x157d42(0x228)][_0x157d42(0x2c2)](_0x21607a);}}[_0x4c4685(0x3a9)](){const _0x2e354d=_0x4c4685;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x2e354d(0x3bc)]>0x0;}[_0x4c4685(0x244)](){const _0x2b1822=_0x4c4685;this['_pollingInterval']&&(clearTimeout(this[_0x2b1822(0x1f5)]),this[_0x2b1822(0x1f5)]=null);}[_0x4c4685(0x29b)](){const _0x313c3d=_0x4c4685;this[_0x313c3d(0x34f)]['show']({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':T[_0x313c3d(0x204)][_0x313c3d(0x3f4)]});}[_0x4c4685(0x33c)](_0x4971bf){const _0x219306=_0x4c4685;for(const _0x3d46d1 of _0x4971bf){const {unitId:_0x33bdc9,sheetId:_0x386390,range:_0x4d87df}=_0x3d46d1,_0x43b4e8=this['_univerInstanceService'][_0x219306(0x1cf)](_0x33bdc9);if(!_0x43b4e8)continue;const _0x176333=_0x43b4e8['getSheetBySheetId'](_0x386390);if(!_0x176333)continue;const _0x194f32=_0x176333[_0x219306(0x322)]();for(let _0x445071=_0x4d87df[_0x219306(0x1f1)];_0x445071<=_0x4d87df[_0x219306(0x315)];_0x445071++)for(let _0x1c5edf=_0x4d87df[_0x219306(0x253)];_0x1c5edf<=_0x4d87df[_0x219306(0x345)];_0x1c5edf++){const _0x26bd01=_0x194f32[_0x219306(0x2f1)](_0x445071,_0x1c5edf);if(_0x26bd01&&(a[_0x219306(0x2b9)](_0x26bd01['f'])||a[_0x219306(0x2a4)](_0x26bd01['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4c4685(0x414)](O[_0x4c4685(0x1ea)])),L(0x1,a['ICommandService']),L(0x2,a[_0x4c4685(0x1c6)]),L(0x3,a[_0x4c4685(0x414)](x['HTTPService'])),L(0x4,a[_0x4c4685(0x19d)]),L(0x5,a[_0x4c4685(0x259)]),L(0x6,a[_0x4c4685(0x414)](a[_0x4c4685(0x394)]))],ne);var ns=Object[_0x4c4685(0x1b0)],rs=(_0x594aac,_0x1d52c0,_0x3905df,_0x55aaf8)=>{const _0x545b74=_0x4c4685;for(var _0x3b0ef7=_0x55aaf8>0x1?void 0x0:_0x55aaf8?ns(_0x1d52c0,_0x3905df):_0x1d52c0,_0x4e877b=_0x594aac[_0x545b74(0x393)]-0x1,_0x58cb26;_0x4e877b>=0x0;_0x4e877b--)(_0x58cb26=_0x594aac[_0x4e877b])&&(_0x3b0ef7=_0x58cb26(_0x3b0ef7)||_0x3b0ef7);return _0x3b0ef7;},de=(_0x1ec492,_0x4634c2)=>(_0x3565c7,_0x22affe)=>_0x4634c2(_0x3565c7,_0x22affe,_0x1ec492);let pe=class extends a[_0x4c4685(0x25e)]{constructor(_0x36c9ef,_0x27a80c,_0x37e3fb){const _0x3af825=_0x4c4685;super(),_(this,'_cachedData',new Map()),_(this,_0x3af825(0x1d9),new Map()),_(this,'_disabled',!0x1),(this[_0x3af825(0x410)]=_0x36c9ef,this[_0x3af825(0x41a)]=_0x27a80c,this['_revisionService']=_0x37e3fb);}['disableLocalCache'](){const _0x5a9530=_0x4c4685;this[_0x5a9530(0x397)]=!0x0;}[_0x4c4685(0x373)](){this['_disabled']=!0x1;}get[_0x4c4685(0x188)](){const _0x51184a=_0x4c4685;return this[_0x51184a(0x1d9)];}[_0x4c4685(0x3d3)](){const _0x4202dd=_0x4c4685;this[_0x4202dd(0x1e5)]()[_0x4202dd(0x382)](()=>super[_0x4202dd(0x3d3)]());}async[_0x4c4685(0x379)](_0x43f3bb){const _0x50cd05=_0x4c4685;return this[_0x50cd05(0x397)]?null:this[_0x50cd05(0x41a)][_0x50cd05(0x2e9)](u[_0x50cd05(0x22f)](_0x43f3bb));}async[_0x4c4685(0x3bd)](_0x32c048,_0x586860){const _0x44fde9=_0x4c4685;return!!this[_0x44fde9(0x41a)]['setItem'](_0x32c048,_0x586860);}[_0x4c4685(0x372)](_0x1fcefe,_0x3d49ec,_0x4414e1,_0x3b3a32){const _0x32ac6e=_0x4c4685,_0x20804a=this[_0x32ac6e(0x2a3)][_0x32ac6e(0x26e)](_0x1fcefe);this['_cachedData'][_0x32ac6e(0x1d4)](_0x1fcefe,{'unitID':_0x1fcefe,'type':_0x3d49ec,'awaitingChangeset':_0x4414e1,'mutations':_0x3b3a32,'rev':_0x20804a}),this['_saveTaskMap'][_0x32ac6e(0x39b)](_0x1fcefe)||this[_0x32ac6e(0x409)](_0x1fcefe);}[_0x4c4685(0x409)](_0x2c0c39){const _0x5a89b8=_0x4c4685,_0xf0c260=this[_0x5a89b8(0x1aa)]();_0xf0c260===0x0?this['_saveCache'](_0x2c0c39):this[_0x5a89b8(0x1d9)][_0x5a89b8(0x1d4)](_0x2c0c39,setTimeout(()=>this['_saveCache'](_0x2c0c39),_0xf0c260));}['_getSaveTimeout'](){const _0x47f840=_0x4c4685;var _0x3e7b4c;return(_0x3e7b4c=this['_configService'][_0x47f840(0x184)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x3e7b4c:u['LOCAL_CACHE_INTERVAL'];}[_0x4c4685(0x2ce)](_0x124423){const _0x868585=_0x4c4685,_0x188980=this[_0x868585(0x1d9)]['get'](_0x124423);return _0x188980!==void 0x0&&window[_0x868585(0x20f)](_0x188980),this[_0x868585(0x41a)]['setItem'](u[_0x868585(0x22f)](_0x124423),this[_0x868585(0x367)]['get'](_0x124423))[_0x868585(0x382)](()=>this[_0x868585(0x1d9)][_0x868585(0x1be)](_0x124423));}async['exhaustSavingTask'](){const _0x4793c4=_0x4c4685,_0x1b3c51=[];this[_0x4793c4(0x1d9)][_0x4793c4(0x258)]((_0x45d30a,_0xae4c68)=>{const _0x1d6b6a=_0x4793c4;window[_0x1d6b6a(0x20f)](_0x45d30a),_0x1b3c51['push'](this[_0x1d6b6a(0x2ce)](_0xae4c68)[_0x1d6b6a(0x382)](()=>{const _0x580f13=_0x1d6b6a;this[_0x580f13(0x1d9)][_0x580f13(0x1be)](_0xae4c68);}));}),await Promise['all'](_0x1b3c51);}};pe=rs([de(0x0,a[_0x4c4685(0x1c6)]),de(0x1,a[_0x4c4685(0x32e)]),de(0x2,a[_0x4c4685(0x414)](g[_0x4c4685(0x2a1)]))],pe);class ke extends a['RxDisposable']{constructor(){const _0x577e48=_0x4c4685;super(),_(this,_0x577e48(0x30d)),this[_0x577e48(0x30d)]=I['fromEvent'](window,_0x577e48(0x34a))[_0x577e48(0x249)](I['takeUntil'](this[_0x577e48(0x374)]),I[_0x577e48(0x3f9)](0x1),I['mapTo'](void 0x0));}['setParam'](_0x4b7d35,_0x8d7936,_0x381267=!0x1){const _0x4f65b2=_0x4c4685,_0x423cfd=new URL(window[_0x4f65b2(0x3f7)][_0x4f65b2(0x1a7)]);_0x423cfd[_0x4f65b2(0x1fe)][_0x4f65b2(0x1d4)](_0x4b7d35,_0x8d7936),_0x381267?window[_0x4f65b2(0x189)][_0x4f65b2(0x243)]('','',_0x423cfd[_0x4f65b2(0x173)]()):window['history'][_0x4f65b2(0x3c8)]('','',_0x423cfd[_0x4f65b2(0x173)]());}['removeParam'](_0x3d4f64,_0x134029=!0x1){const _0x597ff5=_0x4c4685,_0x440cc2=new URL(window[_0x597ff5(0x3f7)]['href']);_0x440cc2[_0x597ff5(0x1fe)][_0x597ff5(0x1be)](_0x3d4f64),_0x134029?window['history'][_0x597ff5(0x243)]('','',_0x440cc2[_0x597ff5(0x173)]()):window['history'][_0x597ff5(0x3c8)]('','',_0x440cc2[_0x597ff5(0x173)]());}[_0x4c4685(0x42b)](_0x1e1136){const _0x19c6c9=_0x4c4685;var _0x4f84e0;return(_0x4f84e0=new URL(window['location'][_0x19c6c9(0x1a7)])[_0x19c6c9(0x1fe)][_0x19c6c9(0x418)](_0x1e1136))!=null?_0x4f84e0:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x4c4685(0x1b0)],cs=(_0x2a5d1f,_0x42fd8e,_0x4943db)=>_0x42fd8e in _0x2a5d1f?os(_0x2a5d1f,_0x42fd8e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4943db}):_0x2a5d1f[_0x42fd8e]=_0x4943db,ls=(_0x286e42,_0x3f9d56,_0x39a43f,_0x381625)=>{const _0x33da02=_0x4c4685;for(var _0xb60e87=_0x381625>0x1?void 0x0:_0x381625?as(_0x3f9d56,_0x39a43f):_0x3f9d56,_0x37805d=_0x286e42[_0x33da02(0x393)]-0x1,_0x13534e;_0x37805d>=0x0;_0x37805d--)(_0x13534e=_0x286e42[_0x37805d])&&(_0xb60e87=_0x13534e(_0xb60e87)||_0xb60e87);return _0xb60e87;},Se=(_0x2ede0b,_0x396e47)=>(_0x3a5f57,_0x5bec7f)=>_0x396e47(_0x3a5f57,_0x5bec7f,_0x2ede0b),_s=(_0x3225a9,_0x3a995e,_0x1fd040)=>cs(_0x3225a9,_0x3a995e+'',_0x1fd040);const hs=_0x4c4685(0x172);exports[_0x4c4685(0x40e)]=class extends a['Plugin']{constructor(_0x20ad9a=Me,_0x3e5f8d,_0x3b8a62,_0x16493b){const _0x2f3174=_0x4c4685;super(),this[_0x2f3174(0x21e)]=_0x20ad9a,this[_0x2f3174(0x416)]=_0x3e5f8d,this[_0x2f3174(0x28a)]=_0x3b8a62,this['_configService']=_0x16493b;const {..._0x57801a}=a[_0x2f3174(0x2d3)]({},Me,this[_0x2f3174(0x21e)]);this[_0x2f3174(0x410)][_0x2f3174(0x350)](Yt,_0x57801a);}[_0x4c4685(0x39a)](){const _0x36ce3d=_0x4c4685;this[_0x36ce3d(0x37f)](),this[_0x36ce3d(0x2b0)]();}['onRendered'](){const _0xc003b3=_0x4c4685;this[_0xc003b3(0x2de)]();}[_0x4c4685(0x37f)](){const _0x29b859=_0x4c4685;var _0x518178;const _0x4a897e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x29b859(0x3b1)]}],[u[_0x29b859(0x2dc)],{'useClass':pe}],[exports[_0x29b859(0x340)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this['_config']['enableFrontendLog']&&_0x4a897e['push']([Q]),a[_0x29b859(0x26d)](this[_0x29b859(0x28a)],a[_0x29b859(0x237)](_0x4a897e,(_0x518178=this[_0x29b859(0x21e)])==null?void 0x0:_0x518178[_0x29b859(0x412)]));}['_registerRenderDependencies'](){const _0x1b8063=_0x4c4685;this[_0x1b8063(0x1c2)](this[_0x1b8063(0x416)][_0x1b8063(0x420)](a[_0x1b8063(0x323)]['UNIVER_DOC'],[Ee])),this[_0x1b8063(0x1c2)](this[_0x1b8063(0x416)][_0x1b8063(0x420)](a[_0x1b8063(0x323)][_0x1b8063(0x2a6)],[Ce]));}[_0x4c4685(0x2b0)](){const _0x1f78a0=_0x4c4685;a[_0x1f78a0(0x389)](this['_injector'],[[F],[exports[_0x1f78a0(0x340)]],[ie],[Z],[exports[_0x1f78a0(0x1ec)]],[ne]]),this['_config']['enableFrontendLog']&&a[_0x1f78a0(0x389)](this['_injector'],[[Q]]);}},_s(exports[_0x4c4685(0x40e)],_0x4c4685(0x1ae),hs),exports[_0x4c4685(0x40e)]=ls([a[_0x4c4685(0x2ec)](u[_0x4c4685(0x1bf)]),Se(0x1,C[_0x4c4685(0x32a)]),Se(0x2,a[_0x4c4685(0x414)](a[_0x4c4685(0x278)])),Se(0x3,a[_0x4c4685(0x1c6)])],exports[_0x4c4685(0x40e)]);var us=Object[_0x4c4685(0x1b0)],Is=(_0x5787dd,_0x2d1f1a,_0x5c7bd2,_0x19b80a)=>{const _0x4c3e6c=_0x4c4685;for(var _0x1da02a=_0x19b80a>0x1?void 0x0:_0x19b80a?us(_0x2d1f1a,_0x5c7bd2):_0x2d1f1a,_0x1d1d3c=_0x5787dd[_0x4c3e6c(0x393)]-0x1,_0xae99ba;_0x1d1d3c>=0x0;_0x1d1d3c--)(_0xae99ba=_0x5787dd[_0x1d1d3c])&&(_0x1da02a=_0xae99ba(_0x1da02a)||_0x1da02a);return _0x1da02a;},W=(_0x473b0a,_0x498512)=>(_0x4075d3,_0x2ef55b)=>_0x498512(_0x4075d3,_0x2ef55b,_0x473b0a);exports[_0x4c4685(0x3d7)]=class extends u['CollaborationSocketService']{constructor(_0x3dfd0c,_0x31c4b1,_0x2c35fc,_0x4f9509,_0x32355f){super(_0x3dfd0c,_0x31c4b1,_0x2c35fc,_0x4f9509,_0x32355f);}async[_0x4c4685(0x2ef)](_0x35b542){const _0x25b000=_0x4c4685,_0x1b0270=await this[_0x25b000(0x25f)](),_0x501217=this[_0x25b000(0x245)](_0x35b542,_0x1b0270);return this[_0x25b000(0x185)](_0x501217);}[_0x4c4685(0x245)](_0x563783,_0x546699){const _0x29f942=_0x4c4685,_0x1cae02=typeof window>'u'?new URL(_0x563783):new URL(_0x563783,window['location'][_0x29f942(0x269)]);_0x1cae02[_0x29f942(0x1fe)][_0x29f942(0x1d4)](_0x29f942(0x197),_0x546699);const _0x162c2f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x29f942(0x3f7)]['search']);return _0x162c2f[_0x29f942(0x418)]('runId')&&_0x1cae02[_0x29f942(0x1fe)][_0x29f942(0x1d4)](_0x29f942(0x3fb),_0x162c2f[_0x29f942(0x418)](_0x29f942(0x3fb))),_0x1cae02[_0x29f942(0x173)]();}async[_0x4c4685(0x25f)](){const _0x48b537=_0x4c4685;var _0x216087,_0x5a93ec,_0x27af6a;const _0x144930=this[_0x48b537(0x410)][_0x48b537(0x184)](u[_0x48b537(0x3b0)]),_0x5069e3=(_0x216087=_0x144930==null?void 0x0:_0x144930[_0x48b537(0x307)])!=null?_0x216087:u[_0x48b537(0x421)];return(_0x27af6a=(_0x5a93ec=(await this[_0x48b537(0x378)][_0x48b537(0x418)](_0x5069e3,{'headers':{'Content-Type':_0x48b537(0x1cd)}}))['body'])==null?void 0x0:_0x5a93ec['ticket'])!=null?_0x27af6a:'';}},exports[_0x4c4685(0x3d7)]=Is([W(0x0,a[_0x4c4685(0x414)](a['Injector'])),W(0x1,a[_0x4c4685(0x414)](x['HTTPService'])),W(0x2,a[_0x4c4685(0x1c6)]),W(0x3,a[_0x4c4685(0x259)]),W(0x4,g['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);var ds=Object[_0x4c4685(0x1b0)],Ss=(_0x4ca050,_0x600c7e,_0x4eb890,_0x5bda1f)=>{for(var _0x252486=_0x5bda1f>0x1?void 0x0:_0x5bda1f?ds(_0x600c7e,_0x4eb890):_0x600c7e,_0x589710=_0x4ca050['length']-0x1,_0x31b892;_0x589710>=0x0;_0x589710--)(_0x31b892=_0x4ca050[_0x589710])&&(_0x252486=_0x31b892(_0x252486)||_0x252486);return _0x252486;},fe=(_0x10236b,_0xe76a13)=>(_0xa5e19a,_0x30e39d)=>_0xe76a13(_0xa5e19a,_0x30e39d,_0x10236b);exports[_0x4c4685(0x2bd)]=class extends a['Disposable']{constructor(_0x44aee5,_0x40d448,_0x254842){const _0x2eff4b=_0x4c4685;super(),this[_0x2eff4b(0x250)]=_0x44aee5,this['_httpService']=_0x40d448,this[_0x2eff4b(0x410)]=_0x254842;}async[_0x4c4685(0x2f5)](_0x1ffe67,_0x58943d,_0x201270,..._0x218439){const _0x3dc466=_0x4c4685;var _0x51a21c,_0xef59f9,_0x2deba0,_0x27224a;const _0x5e9cea=this[_0x3dc466(0x250)][_0x3dc466(0x2e6)]();if(!_0x5e9cea)throw new Error(_0x3dc466(0x252));const _0x17593f=((_0x51a21c=this[_0x3dc466(0x410)][_0x3dc466(0x184)](u[_0x3dc466(0x2d4)]))!=null?_0x51a21c:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1ffe67+'/run/'+_0x58943d,_0x454303=new URL(window['location']['href']),_0x24fe35={'scriptId':_0x1ffe67,'runId':(_0xef59f9=_0x454303[_0x3dc466(0x1fe)][_0x3dc466(0x418)]('runId'))!=null?_0xef59f9:'','function':_0x58943d,'unitId':_0x5e9cea[_0x3dc466(0x1ca)](),'argsOfFunction':JSON['stringify'](_0x218439),'invokeId':(_0x2deba0=_0x201270[_0x3dc466(0x3e5)])!=null?_0x2deba0:'','executionId':(_0x27224a=_0x201270[_0x3dc466(0x1e9)])!=null?_0x27224a:''};try{const _0x6415b5=await this['_httpService'][_0x3dc466(0x300)](_0x17593f,{'body':_0x24fe35});return _0x6415b5[_0x3dc466(0x42a)][_0x3dc466(0x2c2)]&&_0x6415b5[_0x3dc466(0x42a)][_0x3dc466(0x2c2)][_0x3dc466(0x31e)]!==G['OK']?_0x3dc466(0x196):_0x6415b5[_0x3dc466(0x42a)][_0x3dc466(0x3ef)];}catch{return _0x3dc466(0x196);}}},exports[_0x4c4685(0x2bd)]=Ss([fe(0x0,a['IUniverInstanceService']),fe(0x1,a[_0x4c4685(0x414)](x[_0x4c4685(0x210)])),fe(0x2,a[_0x4c4685(0x1c6)])],exports[_0x4c4685(0x2bd)]);const we=0x7530,ye=_0x4c4685(0x3ba);class fs extends a[_0x4c4685(0x25e)]{constructor(){const _0x59b96f=_0x4c4685;super(),_(this,'_id',a[_0x59b96f(0x331)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x59b96f(0x35a),new Map()),_(this,_0x59b96f(0x1bc),null),_(this,_0x59b96f(0x353),new Map()),_(this,_0x59b96f(0x2fa),new Map()),this['_init']();}[_0x4c4685(0x3d3)](){const _0x1c9fdb=_0x4c4685;super['dispose'](),this[_0x1c9fdb(0x353)]['forEach']((_0x43dae4,_0x46cff5)=>this[_0x1c9fdb(0x1a2)](_0x46cff5)),this[_0x1c9fdb(0x1bc)]&&window['clearInterval'](this[_0x1c9fdb(0x1bc)]);}[_0x4c4685(0x290)](_0x4c32f9){const _0x299410=_0x4c4685;return this['_ensureSubject'](_0x4c32f9)[_0x299410(0x249)](I['distinctUntilChanged']());}[_0x4c4685(0x271)](_0x120bcb){const _0xc26a50=_0x4c4685;this['_selfUnitIDs']['size']===0x0&&this[_0xc26a50(0x371)](),this[_0xc26a50(0x419)]['add'](_0x120bcb),this[_0xc26a50(0x3b7)]({'type':0x0,'memberID':this[_0xc26a50(0x31b)],'unitIDs':[_0x120bcb],'isForwarded':!0x1});}[_0x4c4685(0x325)](_0x18ca02){const _0x2b82c2=_0x4c4685;this[_0x2b82c2(0x419)][_0x2b82c2(0x1be)](_0x18ca02),this[_0x2b82c2(0x419)][_0x2b82c2(0x201)]===0x0&&this[_0x2b82c2(0x1bc)]&&window['clearInterval'](this[_0x2b82c2(0x1bc)]);}['_init'](){const _0x21c9c6=_0x4c4685;this[_0x21c9c6(0x1c2)](a[_0x21c9c6(0x356)](I['fromEvent'](window,_0x21c9c6(0x205))[_0x21c9c6(0x2e5)](_0x24b647=>{const _0x357254=_0x21c9c6;if(_0x24b647['key']!==ye||!_0x24b647[_0x357254(0x285)])return;const _0x5a4420=JSON['parse'](_0x24b647[_0x357254(0x285)]);this[_0x357254(0x2e2)](_0x5a4420);}))),window[_0x21c9c6(0x24c)](_0x21c9c6(0x232),()=>this[_0x21c9c6(0x3b7)]({'type':0x1,'memberID':this[_0x21c9c6(0x31b)],'unitIDs':Array[_0x21c9c6(0x2f2)](this['_selfUnitIDs'])}));}[_0x4c4685(0x2e2)](_0x42c1cc){const _0x31a736=_0x4c4685;switch(_0x42c1cc[_0x31a736(0x180)]){case 0x0:this[_0x31a736(0x308)](_0x42c1cc);break;case 0x1:this['_handleLeaveEvent'](_0x42c1cc);break;case 0x2:this[_0x31a736(0x193)](_0x42c1cc);break;}}[_0x4c4685(0x308)](_0x5b52f7){const _0x4e36c7=_0x4c4685,{unitIDs:_0x2b9155,memberID:_0x354e7b,isForwarded:_0x3e5fae}=_0x5b52f7;_0x2b9155[_0x4e36c7(0x258)](_0x56d129=>{const _0x2c2235=_0x4e36c7;if(!_0x3e5fae&&this[_0x2c2235(0x35a)][_0x2c2235(0x39b)](_0x56d129)&&this[_0x2c2235(0x357)](_0x56d129)[_0x2c2235(0x215)](u[_0x2c2235(0x295)][_0x2c2235(0x233)]),!this[_0x2c2235(0x35a)][_0x2c2235(0x39b)](_0x56d129)||!this['_unitOnClients'][_0x2c2235(0x418)](_0x56d129)[_0x2c2235(0x39b)](_0x354e7b)){const _0x5472b7=this[_0x2c2235(0x35a)]['get'](_0x56d129)||new Set();_0x5472b7[_0x2c2235(0x1c9)](_0x354e7b),this[_0x2c2235(0x35a)][_0x2c2235(0x1d4)](_0x56d129,_0x5472b7),this[_0x2c2235(0x1e8)](_0x354e7b);}}),_0x3e5fae||this[_0x4e36c7(0x3b7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4c4685(0x1e8)](_0x318ca1){const _0x1f997b=_0x4c4685;this[_0x1f997b(0x1a2)](_0x318ca1);const _0x150e83=window[_0x1f997b(0x2fe)](()=>{const _0x2eeb56=_0x1f997b;this[_0x2eeb56(0x35a)][_0x2eeb56(0x258)](_0x204777=>{_0x204777['delete'](_0x318ca1);});},we*0x2);this[_0x1f997b(0x353)][_0x1f997b(0x1d4)](_0x318ca1,_0x150e83);}[_0x4c4685(0x1a2)](_0x259210){const _0x410923=_0x4c4685;if(this[_0x410923(0x353)][_0x410923(0x39b)](_0x259210)){const _0x52f4d0=this[_0x410923(0x353)][_0x410923(0x418)](_0x259210);_0x52f4d0&&window['clearTimeout'](_0x52f4d0),this[_0x410923(0x353)][_0x410923(0x1d4)](_0x259210,null);}}['_handleLeaveEvent'](_0x437d38){const _0x4cd720=_0x4c4685,{memberID:_0x4e68c3,unitIDs:_0x39cf1f}=_0x437d38;_0x39cf1f[_0x4cd720(0x258)](_0xe7cbca=>{const _0x1342ff=_0x4cd720;var _0x3d2f16;const _0x175af3=this['_unitOnClients']['get'](_0xe7cbca);_0x175af3&&(_0x175af3[_0x1342ff(0x1be)](_0x4e68c3),(_0x3d2f16=this['_ensureSubject'](_0xe7cbca))==null||_0x3d2f16[_0x1342ff(0x215)](_0x175af3['size']===0x0?u['UnitStatus'][_0x1342ff(0x18f)]:u[_0x1342ff(0x295)][_0x1342ff(0x233)]));}),this[_0x4cd720(0x1a2)](_0x4e68c3);}['_handleHeartbeatEvent'](_0x233f87){this['_scheduleClearOtherTimer'](_0x233f87['memberID']);}[_0x4c4685(0x3b7)](_0x4e3c25){const _0x5a945d=_0x4c4685;localStorage[_0x5a945d(0x1c4)](ye,JSON['stringify'](_0x4e3c25));}[_0x4c4685(0x371)](){const _0xfe4f1a=_0x4c4685;this[_0xfe4f1a(0x1bc)]=window['setInterval'](()=>{const _0x537f21=_0xfe4f1a;this[_0x537f21(0x3b7)]({'type':0x2,'memberID':this[_0x537f21(0x31b)]});},we);}[_0x4c4685(0x357)](_0x3bfe58){const _0xa709c1=_0x4c4685;return this[_0xa709c1(0x2fa)][_0xa709c1(0x39b)](_0x3bfe58)||this[_0xa709c1(0x2fa)][_0xa709c1(0x1d4)](_0x3bfe58,new I[(_0xa709c1(0x37d))](u[_0xa709c1(0x295)][_0xa709c1(0x18f)])),this[_0xa709c1(0x2fa)]['get'](_0x3bfe58);}}exports[_0x4c4685(0x358)]=Oe,exports[_0x4c4685(0x273)]=je,exports[_0x4c4685(0x21a)]=fs,exports[_0x4c4685(0x1c5)]=ke;
|