@univerjs-pro/collaboration-client-ui 0.15.0-insiders.20260110-48b77c8 → 0.15.1-insiders.20260117-8ce4a01

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3c131d=_0x4b7f;(function(_0x5458ac,_0x223d73){const _0x1795cd=_0x4b7f,_0x20f85d=_0x5458ac();while(!![]){try{const _0x10c78e=-parseInt(_0x1795cd(0x29d))/0x1*(parseInt(_0x1795cd(0x369))/0x2)+parseInt(_0x1795cd(0x1dd))/0x3*(parseInt(_0x1795cd(0x19b))/0x4)+-parseInt(_0x1795cd(0x1b7))/0x5+parseInt(_0x1795cd(0x192))/0x6*(parseInt(_0x1795cd(0x2ba))/0x7)+-parseInt(_0x1795cd(0x2af))/0x8+parseInt(_0x1795cd(0x31a))/0x9+parseInt(_0x1795cd(0x23a))/0xa;if(_0x10c78e===_0x223d73)break;else _0x20f85d['push'](_0x20f85d['shift']());}catch(_0x12842c){_0x20f85d['push'](_0x20f85d['shift']());}}}(_0xd0ca,0xd19ee));function _0x4b7f(_0x5217fa,_0x16f4a8){_0x5217fa=_0x5217fa-0xe2;const _0xd0ca88=_0xd0ca();let _0x4b7feb=_0xd0ca88[_0x5217fa];return _0x4b7feb;}var Xe=Object[_0x3c131d(0x287)],Ke=(_0xb7c84b,_0x1ea573,_0x15c1b2)=>_0x1ea573 in _0xb7c84b?Xe(_0xb7c84b,_0x1ea573,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15c1b2}):_0xb7c84b[_0x1ea573]=_0x15c1b2,_=(_0x124165,_0x41782a,_0x11ad84)=>Ke(_0x124165,typeof _0x41782a!='symbol'?_0x41782a+'':_0x41782a,_0x11ad84);Object['defineProperty'](exports,Symbol[_0x3c131d(0x23b)],{'value':_0x3c131d(0x234)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=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 pe({ref:_0x54e704,..._0x29fe99}){const _0x208dc3=_0x3c131d,{icon:_0x400a97,id:_0x18856c,className:_0x55f042,extend:_0xb978c8,..._0x9530a7}=_0x29fe99,_0x397d48=(_0x208dc3(0x139)+_0x18856c+'\x20'+(_0x55f042||''))[_0x208dc3(0x27f)](),_0x67ff96=A[_0x208dc3(0x2ab)]('_'+Qe());return $e(_0x400a97,''+_0x18856c,{'defIds':_0x400a97['defIds'],'idSuffix':_0x67ff96[_0x208dc3(0x34c)]},{'ref':_0x54e704,'className':_0x397d48,..._0x9530a7},_0xb978c8);}function $e(_0x282647,_0x1ff818,_0x551d23,_0x12071b,_0xfe2b77){const _0x3ffd0a=_0x3c131d;return A['createElement'](_0x282647['tag'],{'key':_0x1ff818,...Je(_0x282647,_0x551d23,_0xfe2b77),..._0x12071b},(Ze(_0x282647,_0x551d23)[_0x3ffd0a(0x2f5)]||[])[_0x3ffd0a(0xf0)]((_0x445794,_0x116b04)=>$e(_0x445794,_0x1ff818+'-'+_0x282647['tag']+'-'+_0x116b04,_0x551d23,void 0x0,_0xfe2b77)));}function Je(_0x4de2af,_0x22eb7f,_0x4f5f74){const _0x4c04a5=_0x3c131d,_0x4ef742={..._0x4de2af[_0x4c04a5(0x298)]};_0x4f5f74!=null&&_0x4f5f74[_0x4c04a5(0x132)]&&_0x4ef742[_0x4c04a5(0x323)]==='colorChannel1'&&(_0x4ef742[_0x4c04a5(0x323)]=_0x4f5f74[_0x4c04a5(0x132)]),_0x4de2af[_0x4c04a5(0x304)]===_0x4c04a5(0x36f)&&_0x4ef742['id']&&(_0x4ef742['id']=_0x4ef742['id']+_0x22eb7f[_0x4c04a5(0x111)]),Object['entries'](_0x4ef742)[_0x4c04a5(0x1df)](([_0x58ed28,_0x2d9539])=>{const _0x2c5955=_0x4c04a5;_0x58ed28==='mask'&&typeof _0x2d9539==_0x2c5955(0x21a)&&(_0x4ef742[_0x58ed28]=_0x2d9539[_0x2c5955(0x2cf)](/url\(#(.*)\)/,_0x2c5955(0x203)+_0x22eb7f[_0x2c5955(0x111)]+')'));});const {defIds:_0x551d13}=_0x22eb7f;return!_0x551d13||_0x551d13[_0x4c04a5(0x29a)]===0x0||(_0x4de2af[_0x4c04a5(0x304)]===_0x4c04a5(0x2e1)&&_0x4ef742['xlink:href']&&(_0x4ef742[_0x4c04a5(0x1ed)]=_0x4ef742['xlink:href']+_0x22eb7f['idSuffix']),Object[_0x4c04a5(0x346)](_0x4ef742)[_0x4c04a5(0x1df)](([_0x21f162,_0x5ea594])=>{const _0x5cf568=_0x4c04a5;typeof _0x5ea594==_0x5cf568(0x21a)&&(_0x4ef742[_0x21f162]=_0x5ea594[_0x5cf568(0x2cf)](/url\(#(.*)\)/,_0x5cf568(0x203)+_0x22eb7f[_0x5cf568(0x111)]+')'));})),_0x4ef742;}function Ze(_0x31b7f4,_0x23da59){const _0x7afe2=_0x3c131d;var _0x2f2a56;const {defIds:_0x372f0e}=_0x23da59;return!_0x372f0e||_0x372f0e[_0x7afe2(0x29a)]===0x0?_0x31b7f4:_0x31b7f4[_0x7afe2(0x304)]===_0x7afe2(0x1a7)&&((_0x2f2a56=_0x31b7f4[_0x7afe2(0x2f5)])!=null&&_0x2f2a56[_0x7afe2(0x29a)])?{..._0x31b7f4,'children':_0x31b7f4[_0x7afe2(0x2f5)][_0x7afe2(0xf0)](_0x520c74=>typeof _0x520c74[_0x7afe2(0x298)]['id']==_0x7afe2(0x21a)&&_0x372f0e&&_0x372f0e[_0x7afe2(0x23e)](_0x520c74[_0x7afe2(0x298)]['id'])?{..._0x520c74,'attrs':{..._0x520c74[_0x7afe2(0x298)],'id':_0x520c74['attrs']['id']+_0x23da59['idSuffix']}}:_0x520c74)}:_0x31b7f4;}function Qe(){const _0x376ed5=_0x3c131d;return Math['random']()['toString'](0x24)[_0x376ed5(0x185)](0x2,0x8);}pe[_0x3c131d(0x2e3)]=_0x3c131d(0x27e);const et={'tag':'svg','attrs':{'xmlns':_0x3c131d(0x3a3),'fill':'none','viewBox':_0x3c131d(0x12a),'width':'1em','height':_0x3c131d(0x149)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3c131d(0x1ca),'attrs':{'stroke':'currentColor','d':_0x3c131d(0x105),'strokeLinecap':'round','strokeLinejoin':_0x3c131d(0x380),'strokeWidth':1.2}}]},{'tag':_0x3c131d(0x1a7),'attrs':{},'children':[{'tag':_0x3c131d(0x354),'attrs':{'id':_0x3c131d(0x29f)},'children':[{'tag':_0x3c131d(0x1ca),'attrs':{'fill':_0x3c131d(0x232),'d':_0x3c131d(0x2b9)}}]}]}],'defIds':[_0x3c131d(0x29f)]},xe=A[_0x3c131d(0x385)](function(_0x274922,_0x126de6){const _0x482350=_0x3c131d;return A[_0x482350(0x2f6)](pe,Object[_0x482350(0xe4)]({},_0x274922,{'id':_0x482350(0x2d4),'ref':_0x126de6,'icon':et}));});xe['displayName']=_0x3c131d(0x103);const tt={'tag':_0x3c131d(0x282),'attrs':{'xmlns':_0x3c131d(0x3a3),'fill':'none','viewBox':_0x3c131d(0x30b),'width':_0x3c131d(0x149),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3c131d(0x233)},'children':[{'tag':_0x3c131d(0x1ca),'attrs':{'stroke':_0x3c131d(0x1ac),'d':_0x3c131d(0x10f),'strokeLinecap':_0x3c131d(0x380),'strokeLinejoin':_0x3c131d(0x380),'strokeWidth':1.2}}]},{'tag':_0x3c131d(0x1a7),'attrs':{},'children':[{'tag':_0x3c131d(0x354),'attrs':{'id':_0x3c131d(0x2ca)},'children':[{'tag':'path','attrs':{'fill':_0x3c131d(0x232),'d':_0x3c131d(0x2b9),'transform':_0x3c131d(0x28f)}}]}]}],'defIds':[_0x3c131d(0x2ca)]},Be=A['forwardRef'](function(_0x1d5116,_0x5bc1fd){const _0x5ae732=_0x3c131d;return A[_0x5ae732(0x2f6)](pe,Object[_0x5ae732(0xe4)]({},_0x1d5116,{'id':_0x5ae732(0x36a),'ref':_0x5bc1fd,'icon':tt}));});Be['displayName']='OnLineIcon';function st(_0x40cfe9){const _0x244cf2=_0x3c131d;switch(_0x40cfe9){case u[_0x244cf2(0x30f)][_0x244cf2(0x199)]:return'collabStatus.offline';case u[_0x244cf2(0x30f)][_0x244cf2(0x140)]:return _0x244cf2(0x16f);case u[_0x244cf2(0x30f)]['FETCH_MISS']:return _0x244cf2(0x1c7);case u['CollaborationStatus']['NOT_COLLAB']:return _0x244cf2(0x1bd);case u[_0x244cf2(0x30f)][_0x244cf2(0x155)]:case u[_0x244cf2(0x30f)][_0x244cf2(0x209)]:return _0x244cf2(0x311);case u[_0x244cf2(0x30f)][_0x244cf2(0x30a)]:case u[_0x244cf2(0x30f)][_0x244cf2(0x332)]:return _0x244cf2(0x259);}}function it(_0xf5f947){const _0x94033d=_0x3c131d,{status$:_0xbc329d}=_0xf5f947,_0x14d0ef=O[_0x94033d(0x1e6)](_0xbc329d,u[_0x94033d(0x30f)][_0x94033d(0x2c1)]),_0x9e92bc=O['useDependency'](a[_0x94033d(0x29e)]),_0x19dc44=O['useDependency'](u[_0x94033d(0x1e7)]),_0x225bec=_0x14d0ef!==u[_0x94033d(0x30f)][_0x94033d(0x199)],_0x4c0a42=_0x9e92bc['t'](st(_0x14d0ef)),_0x5d8f2b=_0x225bec?M[_0x94033d(0x16a)](Be,{}):M['jsx'](xe,{}),_0x452fa5=A[_0x94033d(0x1fa)](()=>{_0x225bec||_0x19dc44['reconnect']();},[_0x225bec,_0x19dc44]);function _0xaed499(){const _0x138190=_0x94033d;return M[_0x138190(0x24a)](_0x138190(0x38e),{'className':'univer-flex\x20univer-items-center','onClick':_0x452fa5,'children':[M['jsx'](_0x138190(0x38e),{'className':p[_0x138190(0x374)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x225bec,'univer-text-red-500':!_0x225bec}),'children':_0x5d8f2b}),M['jsx'](_0x138190(0x38e),{'className':_0x138190(0x2a8),'children':_0x4c0a42})]});}return _0x225bec?_0xaed499():M['jsx'](p[_0x94033d(0x28a)],{'title':_0x9e92bc['t']('collab-client.tooltip.reconnect'),'children':_0xaed499()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0xedcd6d,_0x3d3873,_0x485449,_0x2c2458)=>{for(var _0x5a975a=_0x2c2458>0x1?void 0x0:_0x2c2458?nt(_0x3d3873,_0x485449):_0x3d3873,_0xafc73a=_0xedcd6d['length']-0x1,_0x487679;_0xafc73a>=0x0;_0xafc73a--)(_0x487679=_0xedcd6d[_0xafc73a])&&(_0x5a975a=_0x487679(_0x5a975a)||_0x5a975a);return _0x5a975a;},K=(_0x26deab,_0x55333a)=>(_0x3f83df,_0x1298d2)=>_0x55333a(_0x3f83df,_0x1298d2,_0x26deab);exports[_0x3c131d(0xe5)]=class extends a['Disposable']{constructor(_0x4509d4,_0x1caec5,_0x127f78,_0x55eb37){const _0x149f24=_0x3c131d;super(),_(this,_0x149f24(0x224),new I[(_0x149f24(0x301))](u[_0x149f24(0x30f)][_0x149f24(0x2c1)])),(this[_0x149f24(0x24c)]=_0x4509d4,this[_0x149f24(0x2ef)]=_0x1caec5,this[_0x149f24(0x159)]=_0x127f78,this[_0x149f24(0x166)]=_0x55eb37,this[_0x149f24(0x1ec)](),this[_0x149f24(0x204)]());}['_initStatusListener'](){const _0x330729=_0x3c131d;this[_0x330729(0x3a7)](this[_0x330729(0x24c)][_0x330729(0x18f)]['pipe'](I[_0x330729(0x31d)](()=>{const _0x157b8f=_0x330729,_0x12b91a=this[_0x157b8f(0x24c)][_0x157b8f(0x15c)]();return _0x12b91a?this[_0x157b8f(0x159)][_0x157b8f(0x3a4)](_0x12b91a[_0x157b8f(0x247)]()):I['of'](null);}),I[_0x330729(0x31d)](_0xca2a56=>_0xca2a56?_0xca2a56['status$']:I['of'](u[_0x330729(0x30f)]['NOT_COLLAB'])))[_0x330729(0x330)](_0x57a64c=>{const _0x3b0f1a=_0x330729;this[_0x3b0f1a(0x224)][_0x3b0f1a(0x1cf)](_0x57a64c);}));}['_initStatusComponent'](){const _0x387d9f=_0x3c131d;this[_0x387d9f(0x3a7)](this[_0x387d9f(0x166)]['registerComponent'](O[_0x387d9f(0x1e8)]['HEADER_MENU'],()=>O['connectInjector'](ot({'status$':this[_0x387d9f(0x224)][_0x387d9f(0x26c)]()}),this[_0x387d9f(0x2ef)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a['Inject'](a[_0x3c131d(0x146)])),K(0x2,a[_0x3c131d(0x1fd)](u['CollaborationController'])),K(0x3,O[_0x3c131d(0x1e3)])],exports[_0x3c131d(0xe5)]);function ot(_0x1410dc){const {status$:_0x12c25e}=_0x1410dc;return function(){const _0x4ed952=_0x4b7f;return M[_0x4ed952(0x16a)](it,{'status$':_0x12c25e});};}const Oe=a[_0x3c131d(0x356)](_0x3c131d(0x14e));var at=Object[_0x3c131d(0x196)],ct=(_0x5eba21,_0x3bddd8,_0x1ad0b9,_0x447cec)=>{const _0x254e59=_0x3c131d;for(var _0x5c5ede=_0x447cec>0x1?void 0x0:_0x447cec?at(_0x3bddd8,_0x1ad0b9):_0x3bddd8,_0x17c542=_0x5eba21[_0x254e59(0x29a)]-0x1,_0x864259;_0x17c542>=0x0;_0x17c542--)(_0x864259=_0x5eba21[_0x17c542])&&(_0x5c5ede=_0x864259(_0x5c5ede)||_0x5c5ede);return _0x5c5ede;},Y=(_0x4387f6,_0x1bd3af)=>(_0x161323,_0x743553)=>_0x1bd3af(_0x161323,_0x743553,_0x4387f6);exports[_0x3c131d(0x263)]=class extends a[_0x3c131d(0x141)]{constructor(_0x1d32bc,_0x29472e,_0x1e2d9f,_0x5a617c,_0x4427ee){const _0x22f2a3=_0x3c131d;super(),this['_urlService']=_0x1d32bc,this[_0x22f2a3(0x25a)]=_0x29472e,this['_commandService']=_0x1e2d9f,this[_0x22f2a3(0x164)]=_0x5a617c,_0x4427ee?_0x4427ee==null||_0x4427ee[_0x22f2a3(0x16d)]()['then'](()=>this[_0x22f2a3(0x11a)]()):(this[_0x22f2a3(0x25a)][_0x22f2a3(0x20b)](_0x22f2a3(0x1b8),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x22f2a3(0x11a)]());}async[_0x3c131d(0x11a)](){const _0x3492e5=_0x3c131d,_0x23c540=this[_0x3492e5(0x1a4)]['getParam'](_0x3492e5(0x268)),_0x41ee2a=this[_0x3492e5(0x1a4)][_0x3492e5(0x102)](_0x3492e5(0x24d)),_0x1b6e85=this[_0x3492e5(0x1a4)][_0x3492e5(0x102)]('subunit');if(!_0x23c540||!_0x41ee2a){this[_0x3492e5(0x25a)][_0x3492e5(0x20b)](_0x3492e5(0x1b8),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1945df=await this['_dataLoaderService']['loadUnit'](_0x23c540,Number(_0x41ee2a),_0x1b6e85);_0x1945df&&_0x1945df instanceof a[_0x3492e5(0x2df)]&&this[_0x3492e5(0x2b6)](_0x1945df);}async['_setupSubUnitSync'](_0x36407e){const _0x3c29cb=_0x3c131d;await this['_updateSubUnitFromURLParams'](_0x36407e),_0x36407e['activeSheet$']['pipe'](I[_0x3c29cb(0x2e6)](this[_0x3c29cb(0x2f9)]))[_0x3c29cb(0x330)](_0xfe5eb2=>{const _0x3e0284=_0x3c29cb;_0xfe5eb2&&this[_0x3e0284(0x33c)](_0xfe5eb2);}),this['_urlService'][_0x3c29cb(0x289)][_0x3c29cb(0x14f)](I[_0x3c29cb(0x2e6)](this['dispose$']))['subscribe'](()=>this[_0x3c29cb(0x377)](_0x36407e));}['_updateURLWithCurrentState'](_0x2c930c,_0x2d8019=!0x1){const _0x2ba6e5=_0x3c131d,_0x3a7938=this[_0x2ba6e5(0x1a4)][_0x2ba6e5(0x102)](_0x2ba6e5(0x1d2));_0x2c930c[_0x2ba6e5(0x339)]()!==_0x3a7938&&this[_0x2ba6e5(0x1a4)]['setParam'](_0x2ba6e5(0x1d2),_0x2c930c[_0x2ba6e5(0x339)](),_0x2d8019);}async['_updateSubUnitFromURLParams'](_0x416904){const _0x1dbbae=_0x3c131d;var _0x84e230;const _0x329ba0=this[_0x1dbbae(0x1a4)][_0x1dbbae(0x102)](_0x1dbbae(0x1d2));if(!_0x329ba0||!_0x416904['getSheetBySheetId'](_0x329ba0)){const _0x49bbfc=_0x416904['getUnhiddenWorksheets']()[0x0],_0x1b7b1f=_0x416904[_0x1dbbae(0x277)](_0x49bbfc);if(!_0x1b7b1f)return;this[_0x1dbbae(0x33c)](_0x1b7b1f,!0x0),await this[_0x1dbbae(0x25e)][_0x1dbbae(0x1c9)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x416904[_0x1dbbae(0x247)](),'subUnitId':_0x49bbfc});return;}((_0x84e230=_0x416904['getActiveSheet']())==null?void 0x0:_0x84e230[_0x1dbbae(0x339)]())!==_0x329ba0&&await this[_0x1dbbae(0x25e)][_0x1dbbae(0x1c9)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x416904[_0x1dbbae(0x247)](),'subUnitId':_0x329ba0});}},exports[_0x3c131d(0x263)]=ct([Y(0x0,Oe),Y(0x1,a[_0x3c131d(0x2b4)]),Y(0x2,a[_0x3c131d(0x33d)]),Y(0x3,a[_0x3c131d(0x1fd)](u[_0x3c131d(0x206)])),Y(0x4,a[_0x3c131d(0x303)](qe['IRemoteInstanceService']))],exports[_0x3c131d(0x263)]);var lt=Object[_0x3c131d(0x196)],_t=(_0x4704ea,_0x26f27d,_0xb5f7ad,_0xb23402)=>{const _0x5193b1=_0x3c131d;for(var _0x2fc5ce=_0xb23402>0x1?void 0x0:_0xb23402?lt(_0x26f27d,_0xb5f7ad):_0x26f27d,_0x4f397c=_0x4704ea[_0x5193b1(0x29a)]-0x1,_0x31973d;_0x4f397c>=0x0;_0x4f397c--)(_0x31973d=_0x4704ea[_0x4f397c])&&(_0x2fc5ce=_0x31973d(_0x2fc5ce)||_0x2fc5ce);return _0x2fc5ce;},De=(_0x444cb6,_0x216d35)=>(_0x2c8412,_0xdb4d61)=>_0x216d35(_0x2c8412,_0xdb4d61,_0x444cb6);let me=class extends a[_0x3c131d(0x141)]{constructor(_0x17fd40,_0x41bb32){const _0x1c5c96=_0x3c131d;super(),this[_0x1c5c96(0x210)]=_0x17fd40,this[_0x1c5c96(0x297)]=_0x41bb32,this[_0x1c5c96(0x11a)]();}[_0x3c131d(0x11a)](){const _0x111a9f=_0x3c131d,_0x4e5e2c=this;this[_0x111a9f(0x3a7)](this[_0x111a9f(0x210)][_0x111a9f(0xfc)]({'onBeforePasteImage':async _0x5113ee=>{const _0x3e04c=_0x111a9f,_0x533a4f=await _0x4e5e2c[_0x3e04c(0x297)][_0x3e04c(0x329)](_0x5113ee);return _0x533a4f?{'source':_0x533a4f[_0x3e04c(0x2d5)],'imageSourceType':_0x533a4f[_0x3e04c(0x1cd)]}:null;}}));}};me=_t([De(0x0,T[_0x3c131d(0x2cb)]),De(0x1,ze[_0x3c131d(0x14c)])],me);const Ne=['purple.300','jiqing.500',_0x3c131d(0x12c),_0x3c131d(0xf6),'blue.400','yellow.400'];class Re extends a['Disposable']{constructor(){const _0x142f97=_0x3c131d;super(...arguments),_(this,_0x142f97(0x230),new Map()),_(this,_0x142f97(0x187),0x0);}[_0x3c131d(0x1e9)](_0x3ca445){const _0x3d4dcc=_0x3c131d;if(this[_0x3d4dcc(0x230)]['has'](_0x3ca445))return this[_0x3d4dcc(0x230)]['get'](_0x3ca445);const _0x3ffaf9=Ne[this[_0x3d4dcc(0x187)]];return this['_colorIndex']=(this[_0x3d4dcc(0x187)]+0x1)%Ne['length'],this[_0x3d4dcc(0x230)]['set'](_0x3ca445,_0x3ffaf9),_0x3ffaf9;}}function Fe(_0x130914){let _0xc754a5='';for(const _0x2113d5 of _0x130914){const {startOffset:_0x2ca6bf,endOffset:_0x95da31,isActive:_0xb4d1b,rangeType:_0x515316,segmentId:_0x35a42e,segmentPage:_0x379328}=_0x2113d5;_0xc754a5['length']&&(_0xc754a5+=','),_0xc754a5+=_0x2ca6bf+':'+_0x95da31+':'+(_0xb4d1b?'1':'0')+':'+_0x515316+':'+_0x35a42e+':'+_0x379328;}return _0xc754a5;}function ht(_0x1ce7ad){const _0x24fc3c=_0x3c131d,_0xbbe2e0=_0x1ce7ad['split'](','),_0x56283f=[];for(const _0x4ea4c0 of _0xbbe2e0){const [_0x1f36e3,_0x88720b,_0x49c2d6,_0x277d23,_0x58c8e9,_0x239fb4]=_0x4ea4c0[_0x24fc3c(0xf7)](':');_0x56283f[_0x24fc3c(0x2ad)]({'startOffset':Number(_0x1f36e3),'endOffset':Number(_0x88720b),'collapsed':_0x1f36e3===_0x88720b,'isActive':_0x49c2d6==='1','rangeType':_0x277d23===a[_0x24fc3c(0x1de)]['TEXT']?a[_0x24fc3c(0x1de)][_0x24fc3c(0x351)]:a[_0x24fc3c(0x1de)]['RECT'],'segmentId':typeof _0x58c8e9==_0x24fc3c(0x21a)?String(_0x58c8e9):'','segmentPage':Number(_0x239fb4!=null?_0x239fb4:-0x1)});}return _0x56283f[_0x24fc3c(0x281)](_0x1bb8bb=>_0x1bb8bb[_0x24fc3c(0x11f)])||(_0x56283f[0x0][_0x24fc3c(0x11f)]=!0x0),_0x56283f;}function _0xd0ca(){const _0x1960c0=['RevisionService','limitInfo','_getSessionTicket','string','_collaborationSessionService','handleMoveRange','column','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_scene','INVITE_CODE_ALREADY_BOUND','_drawTextRange','SNAPSHOT_HAS_BEEN_REMOVED','Shape','_status$','_refRangeService','COMPLETION_FINISHED','application/json','_getAnchorBounding','post','_initDependencies','_beforeCloseService','_saveTaskMap','_docStateChangeManagerService','UniverInstanceType','selection','_assignedColors','startsWith','white','url(#on-line-icon_clip0_910_349)','Module','getTypeOfUnitAdded$','fillStyle','parse','LICENSE_DISTRO_REJECTED','YUUMI_RATE_OVER_LIMIT','16271410FmlzxM','toStringTag','_docTransformStateCacheService','_textBubble','includes','INTERNAL_ERROR','history','_setupBeforeClosingHandler','getActiveRange','filename','fillRule','DisposableCollection','_unitOnClients','getUnitId','getSheetObject','hovered','jsxs','getCoordByCell','_univerInstanceService','type','_clearPolling','/universer-api/frontend/logs','SessionStatus','row','measureText','_roomMembers$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_backgroundColor','_draw','ONLINE','collabStatus.synced','_logService','CollaborationSocketService','height','findNodePositionByCharIndex','_commandService','has','_context','_eventUnsubscribe','_renderManagerService','CollaborationDataLoaderController','sheetId','ENSURE_SNAPSHOT_EXECUTION','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','handleDeleteRangeMoveUp','unit','WebBrowserSingleActiveUnitService','sessionStatus$','_toggleOffline','asObservable','OTHER_CLIENTS_EDITING','YUUMI_ALL_TABLES_IS_INVALID','key','_getScale','subscribeEvent','_localeService','NOT_FOUND','_selfUnitIDs','setAlpha','handleIRemoveRow','getSheetBySheetId','registerRefRange','Plugin','getMember','onStarting','startFormulaLimitUrl','ISnapshotServerService','UniverIcon','trim','transformMutation','some','svg','InsertColCommandId','_config','searchParams','m1Prime','defineProperty','shareReplay','urlChange$','Tooltip','_refreshCollabCursors','IUniverInstanceService','serializeRangeWithSheet','event$','translate(.97)','beforeCommandExecuted','enableFrontendLog','from','maxFormulaLimit','max','RemoveRowCommandId','Disposable','_imageIoService','attrs','setInterval','length','CommandType','_httpService','5ycBouM','LocaleService','off-line-icon_clip0_910_343','/universer-api/license/formula/limit/status','DependentOn','disposeUnit','USER_NOT_FOUND','stringify','eventID','_onCursorDelete','RemoveColCommandId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','REDEMPTION_USER_REDEEM_TIMES_EXCEED','replaceDocRanges','useRef','save','push','REDEMPTION_CODE_NOT_STARTED','6154504RXgjFt','newValue','_docTransformIMECacheService','TOO_MANY_REQUESTS','_registerDependencies','ILogService','getTypeOfUnitDisposed$','_setupSubUnitSync','params','_colorAssignService','M0\x200H16V16H0z','630LKFkMT','_doCreateSocket','_collabCursorState$','IURLService','/universer-api/license/formula/limit/done','_lastPointer','code','NOT_COLLAB','SetFormulaCalculationStartMutation','createSocket','Error','DocSelectionManagerService','_updateCollabCursors','Success','values','getCurrent','on-line-icon_clip0_910_349','IDocClipboardService','RefRangeService','_localStorageService','_handleLeaveEvent','replace','entityInit$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getMergeData','_setFormulaLimitStatus','off-line-icon','source','stage','color','_collabCursorController','INVALID_ARGUMENT','addHandlerCallback','_clearOtherTimers','_docSyncEditingCollabCursorService','_entityInit$','collab-text-range-','Workbook','UNIVER_SHEET','use','ILocalCacheService','displayName','generateRandomId','throttleTime','takeUntil','combineLatest','_session','Unknown\x20user','delete','wsSessionTicketUrl','_initWindowErrorListener','send','unload','_injector','labelPosition','YUUMI_AI_RUN_FAILED','then','_getMergeRange','unitID','children','createElement','setActiveRange','top','dispose$','m2Prime','_initEvent','dispose','toString','handleInsertRangeMoveRight','reason','getSkeleton','BehaviorSubject','APPLY_REJECT','Optional','tag','registerBeforeClose','EMAIL_VERIFY_CODE_MISMATCH','_cursorShapes','ColorKit','getUndoRedoMutationParamsCache','SYNCED','0\x200\x2017\x2016','distinctUntilChanged','filter','SHEET_VIEWPORT_KEY','CollaborationStatus','sheetID','collabStatus.syncing','text','setParam','_memberID','contains','EMAIL_HAS_BEEN_BOUND','_localCacheService','bind','_docSkeletonManagerService','7455483UyLaDp','isEditing','UNRECOGNIZED','switchMap','rgba(255,\x20255,\x20255,\x200.01)','ranges','_transformHistoryAndStateStack','YUUMI_NO_CUBOID_FOR_QUESTION','IConfigService','fill','ENTITLE_CHAT_LIMIT_EXCEED','INVITE_CODE_HAS_BEEN_UES','_anchorDot','getRenderById','setShapeProps','saveImage','isArray','getColor','resize','isTransformMutationsWithChangesetSuccess','ILocalStorageService','redoState','subscribe','IRenderManagerService','PENDING','INotificationService','Tools','_name','collaboration.single-unit.warning','TEXT_RANGE_LAYER_INDEX','onCommandExecuted','getSheetId','permission.content','JOIN_ROOM_FAILED','_updateURLWithCurrentState','ICommandService','_getFormulaLimitStatus','registerRenderModule','drawWith','_initCommandExecutedListener','UNAUTHENTICATED','NO_OTHER_CLIENTS_EDITING','InsertRangeMoveDownCommandId','merge','entries','getLocalCacheKey','getRelativeToViewportCoord','_startCalculationLimit','_applyCommand','evenodd','current','USERS_LEAVE','updateOfflineData','transformRemoteChangeset','getStateCache','TEXT','handleInsertRangeMoveDown','ENTITLE_COUPON_EXPIRED','clipPath','unshift','createIdentifier','_currentUsage','_hideTimer','SheetSkeletonManagerService','textRanges','SheetsSelectionsService','onTransformChange$','hide','_removeCollabCursors','getCollabCursors$','actions','_checkAndWaitForCalculationPermission','with','clearInterval','_online','_hasFormulaInDirtyRanges','MemberService','onRendered','[RemoteUniscriptService]:\x20no\x20focused\x20unit','243766xihuYJ','on-line-icon','REDEMPTION_CODE_HAS_BEEN_CREATED','YUUMI_UNABLE_LOAD_URL','unhandledrejection','getCurrentSelections','mask','Warning','/universer-api/license/formula/limit/start','isTransformMutationFailure','getAncestorScale','clsx','setStateCache','syncEditingCollabCursor','_updateSubUnitFromURLParams','SetTextSelectionsOperation','parseInt','complete','setItem','collaboration-client-ui.config','mutations','HTTPService','...','round','origin','INVITE_CODE_REQUIRED','_transformPreviousActiveRange','collab-rect-range-','forwardRef','DocStateChangeManagerService','AUTHORIZE_CODE_ILLEGAL','join','arc','_scheduleSaving','find','skeleton','_collaborationUIEventService','div','exhaustSavingTask','MoveRangeCommandId','_themeService','invokeId','CONNECTOR_DATA_TOO_LARGE','_scheduleHeartbeat','addEventListener','_handleHeartbeatEvent','_entities','YUUMI_ASYNCIO_CANCELLED','runId','getConfig','clearTimeout','PY_RUNTIME_SCRIPT_ERROR','FromArray','APPLY_PERMISSION_DENIED','_uploadLog','cursorInfo$','LICENSE_IMPORT_SIZE_EXCEEDED','saveTaskMap','http://www.w3.org/2000/svg','getCollabEntity$','setUndoRedoMutationParamsCache','CLOSE_ROOM','disposeWithMe','_id','LOGIN_FAILED','PAYMENT_CHANNEL_NOT_SUPPORT','session.collaboration-timeout','assign','DesktopCollaborationStatusDisplayController','doc.mutation.rich-text-editing','_labelPosition','UniverCollaborationClientPlugin','_memberService','CollaborationEvent','LOCAL_CACHE_INTERVAL','MUTATION','_color','getCellMatrix','now','map','cursorInfo','storage','CHANGESET_REVISION_CONFILICT','toDisposable','INVALID_INVITE_CODE','red.300','split','_registerRenderDependencies','size','COLORS','_revisionService','addClipboardHook','runRefRangeMutations','permission.title','unsubscribe','_configService','getDocRanges','getParam','OffLineIcon','formula.calculation.unable','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','onLocalMutation','createInstance','SetSelectionsOperation','_messageService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','collab-text-anchor-','Vector2','touchDependencies','name','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','init','idSuffix','getItem','_instanceService','SetFormulaCalculationNotificationMutation','IMessageService','currentSkeleton$','isFormulaString','_syncEditingCollabCursorService','/run/','_init','_cursors','UNDEFINED','_startSheetCollabCursor','REDEMPTION_CODE_FULLY_REDEEMED','isActive','roomMembers$','transformStateCache','_toggleOnline','YUUMI_CONNECTOR_URL_NOT_FOUND','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','SheetCollabCursorShape','_cursorInfo$','_onRefRangeChange','Subject','_hovered','0\x200\x2016\x2016','APPLY_REVISION_CONFILICT','green.600','WECHAT_HAS_BEEN_BOUND','collaboration.closeRoom','_lastResponseTimestamp','socket$','mapTo','colorChannel1','black','saveOfflineData','DATA_SOURCE_TOO_LARGE','endColumn','RegularPolygon','ENTITLE_USE_COUPON_NOT_1ST_TRADE','univerjs-icon\x20univerjs-icon-','_maxFormulaLimit','stack','addObjects','_scheduleClearOtherTimer','REDEMPTION_INVALID_CODE','_collabSessionService','CONFLICT','RxDisposable','ENTITLE_INVALID_COUPON_CODE','EffectRefRangId','setConfig','Rect','Injector','_initCommandInterceptor','font','1em','_taskIds','_initUserListener','IImageIoService','ISocketService','uni.network.url-service','pipe','LICENSE_EXPORT_SIZE_EXCEEDED','transformSelections','_onCursorUpdate','handleInsertRow','totalFormulasToCalculate','AWAITING','collabCursorState$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','DocIMEInputManagerService','_collaborationController','lineTo','_heartbeatTimer','getFocusedUnit','_docSkeleton','replaceState','getColorFromTheme','isFormulaId','debounce','releaseFormulaLimitUrl','_drawAnchor','_dataLoaderService','data','_uiPartsService','setTimeout','_saveCache','RECT','jsx','UPDATE_CURSOR','getRangePointData','whenReady','subUnitId','collabStatus.conflict','onPointerEnter$','_checkCalculationAvailable','href','_initEntityListener','_notificationService','USER_NOT_INVITED_CODE','_hover','startColumn','transform','addObject','debounceTime','_send','MOBILE_HAS_BEEN_BOUND','stageInfo','_docTransformSelectionsService','DocSkeletonManagerService','Loading','UniverCollaborationClientUIPlugin','_anchor','handleIRemoveCol','formula.calculation.waiting','substring','UnitStatus','_colorIndex','closePath','registerDependencies','ENTITLE_COUPON_USED_UP','onMouseMove','REDEMPTION_CODE_INACTIVE','WebURLService','override','focused$','_transformUndoRedoStack','ERROR_AGAIN','28698ECldZp','editingUnit','ITransformService','pluginName','getOwnPropertyDescriptor','location','transformByState','OFFLINE','fromEvent','19892tpuIdg','catch','flatMap','Failed','_cachedData','[Unhandled\x20Rejection]:\x20','ENTITLE_REPORT_LIMIT_EXCEED','removeEventListener','_cursor','_urlService','_updateLocalCursor','result','defs','deepClone','engine','error','_range','currentColor','startRow','_pollingInterval','range','getMemberID','body','_disabled','dirtyRanges','BrowserCollaborationSocketService','CURRENT_STATUS_CANNOT_OPERATE','_getSaveTimeout','6749285IZTHwz','[CollaborationDataLoaderController]','ALREADY_EXISTS','_transformService','LICENSE_MAX_UNITS_EXCEEDED','RemoteUniscriptService','collabStatus.notCollab','CollaborationController','SNAPSHOT_INVALID_SNAPSHOT','undoState','OTHER_CLIENT_EDITING','_showGuardMessage','backgroundColor','search','_render','InsertRowCommandId','collabStatus.fetchMiss','endRow','executeCommand','path','ENTITLE_INSUFFICIENT_QUOTA','_createSocketURL','imageSourceType','ENTITLE_DUP_SUBSCRIPTION','next','transformMutationsWithChangeset','mergeOverrideWithDependencies','subunit','_handleEvent','getActiveSheet','CanceledError','getViewport','_shapes','_ensureSubject','onPointerLeave$','MessageType','_initResize','set','423yZmOPu','DOC_RANGE_TYPE','forEach','ThemeService','getCurrentUnitForType','PERMISSION_DENIED','IUIPartsService','pushState','_handleJoinEvent','useObservable','CollaborationSessionService','BuiltInUIPart','assignAColorForMemberID','popstate','YUUMI_SUBSCRIPTION_NOT_FOUND','_initStatusComponent','xlink:href','fillText','loadOfflineData','fromEventSubject','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','all','_monkeyPatchLogService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_releaseCalculationLimit','getValue','_getSheetObject','memberID','MOBILE_VERIFY_CODE_MISMATCH','useCallback','UNIVER_DOC','add','Inject','YUUMI_URL_COL_OUT_OF_RANGE','show','restore','_sheetSkeletonManagerService','selections','url(#$1','_initStatusListener','roomMembers','DataLoaderService','LOGIN_TOKEN_PROCESSING_FAILED','transformIMECache','AWAITING_WITH_PENDING','width','debug','APPLY_NON_SEQUENTIAL_REVISION','get','moveTo','ENTITLE_NEED_BILLING_ADDRESS','_docClipboardService','_removeClearOtherTimer','triggerDblclick','unitId','_unitStatus','START_CALCULATION','min'];_0xd0ca=function(){return _0x1960c0;};return _0xd0ca();}class be extends a[_0x3c131d(0x141)]{constructor(){const _0x2c1eea=_0x3c131d;super(...arguments),_(this,'_collabCursorState$',new I[(_0x2c1eea(0x301))](null)),_(this,_0x2c1eea(0x156),this[_0x2c1eea(0x2bc)]['asObservable']());}['syncEditingCollabCursor'](_0x1c0dc3){const _0x494988=_0x3c131d,{unitID:_0x153e86,memberID:_0x5d9cf7,textRanges:_0x282a59}=_0x1c0dc3,_0x86f77d=Fe(_0x282a59);if(_0x86f77d==='')return;const _0x23addf={'unitID':_0x153e86,'memberID':_0x5d9cf7,'selection':_0x86f77d};this[_0x494988(0x2bc)][_0x494988(0x1cf)](_0x23addf);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x443c85,_0x2f40b3,_0x579581,_0x248cec)=>{const _0x2813ee=_0x3c131d;for(var _0x3961e4=_0x248cec>0x1?void 0x0:_0x248cec?ut(_0x2f40b3,_0x579581):_0x2f40b3,_0x213655=_0x443c85[_0x2813ee(0x29a)]-0x1,_0x42d9e9;_0x213655>=0x0;_0x213655--)(_0x42d9e9=_0x443c85[_0x213655])&&(_0x3961e4=_0x42d9e9(_0x3961e4)||_0x3961e4);return _0x3961e4;},U=(_0xb2da92,_0x175a14)=>(_0x4cf19a,_0x446c02)=>_0x175a14(_0x4cf19a,_0x446c02,_0xb2da92);const St=0x12c,dt=0x64;let ve=class extends a[_0x3c131d(0x141)]{constructor(_0x4eac66,_0x23e22c,_0xdd856c,_0x27c12b,_0x1de3e9,_0x4fa938,_0x29d991,_0x5c4d33,_0x5a8d28){const _0xb1bfe=_0x3c131d;super(),_(this,_0xb1bfe(0x364),!0x1),_(this,'_init',!0x1),_(this,_0xb1bfe(0x126),new I[(_0xb1bfe(0x301))](new Map())),_(this,_0xb1bfe(0x3a0),this[_0xb1bfe(0x126)][_0xb1bfe(0x26c)]()),_(this,_0xb1bfe(0x253),new I[(_0xb1bfe(0x301))]([])),_(this,_0xb1bfe(0x120),this[_0xb1bfe(0x253)]['pipe'](I[_0xb1bfe(0x17a)](St))),_(this,_0xb1bfe(0x1a5),a[_0xb1bfe(0x161)](_0x561e89=>{const _0x5afcb7=_0xb1bfe,_0x16c67c={'eventID':g[_0x5afcb7(0xea)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x5afcb7(0x2e8)][_0x5afcb7(0x1b0)](),'selection':Fe(_0x561e89)}};this[_0x5afcb7(0x2e8)][_0x5afcb7(0x2ed)](_0x16c67c,this['unitID']);},dt)),(this[_0xb1bfe(0x2f4)]=_0x4eac66,this['_session']=_0x23e22c,this['_injector']=_0xdd856c,this[_0xb1bfe(0x2b8)]=_0x27c12b,this[_0xb1bfe(0xe9)]=_0x1de3e9,this['_syncEditingCollabCursorService']=_0x4fa938,this[_0xb1bfe(0x1ba)]=_0x29d991,this[_0xb1bfe(0x24c)]=_0x5c4d33,this[_0xb1bfe(0x25e)]=_0x5a8d28);}get['cursorInfo'](){const _0x1a0aa5=_0x3c131d;return this[_0x1a0aa5(0x126)][_0x1a0aa5(0x1f6)]();}get['roomMembers'](){const _0x2ef460=_0x3c131d;return this[_0x2ef460(0x253)][_0x2ef460(0x1f6)]();}[_0x3c131d(0x2fc)](){const _0x121e8c=_0x3c131d;super['dispose'](),this[_0x121e8c(0x126)][_0x121e8c(0x1cf)](new Map()),this[_0x121e8c(0x126)][_0x121e8c(0x37a)](),this['_roomMembers$'][_0x121e8c(0x1cf)]([]),this['_roomMembers$'][_0x121e8c(0x37a)]();}['init'](){const _0x227c2d=_0x3c131d;this[_0x227c2d(0x11a)]||(this[_0x227c2d(0x11a)]=!0x0,this[_0x227c2d(0x2e8)][_0x227c2d(0x26a)][_0x227c2d(0x14f)](I[_0x227c2d(0x2e6)](this['dispose$']))[_0x227c2d(0x330)](_0x5e310c=>{const _0x396383=_0x227c2d;_0x5e310c===u[_0x396383(0x250)][_0x396383(0x258)]?this[_0x396383(0x122)]():this[_0x396383(0x26b)]();}),this[_0x227c2d(0x2e8)][_0x227c2d(0x28e)][_0x227c2d(0x14f)](I['takeUntil'](this[_0x227c2d(0x2f9)]))['subscribe'](_0x4ff9b6=>{const _0x73d26e=_0x227c2d,_0xf21c71=_0x4ff9b6[_0x73d26e(0x2a5)];_0xf21c71===g[_0x73d26e(0xea)]['UPDATE_CURSOR']&&this[_0x73d26e(0x152)](_0x4ff9b6),_0xf21c71===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x73d26e(0x2a6)](_0x4ff9b6);}),this[_0x227c2d(0x3a7)](this['_commandService'][_0x227c2d(0x338)](_0x33610e=>{const _0x281476=_0x227c2d,_0x573f27=_0x33610e[_0x281476(0x2b7)];_0x573f27!=null&&this[_0x281476(0x364)]&&_0x33610e['id']===V[_0x281476(0x378)]['id']&&_0x573f27[_0x281476(0x213)]===this[_0x281476(0x2f4)]&&_0x573f27[_0x281476(0x31b)]===!0x1&&_0x573f27[_0x281476(0x31f)][_0x281476(0x29a)]>0x0&&this[_0x281476(0x1a5)](_0x573f27['ranges']);})),this[_0x227c2d(0x118)][_0x227c2d(0x156)][_0x227c2d(0x14f)](I[_0x227c2d(0x2e6)](this[_0x227c2d(0x2f9)]))[_0x227c2d(0x330)](_0x19a209=>{const _0x31fcaf=_0x227c2d;if((_0x19a209==null?void 0x0:_0x19a209[_0x31fcaf(0x2f4)])!==this[_0x31fcaf(0x2f4)])return;const _0x1e8c43={'eventID':g[_0x31fcaf(0xea)][_0x31fcaf(0x16b)],'data':_0x19a209};this[_0x31fcaf(0x152)](_0x1e8c43);}),this['disposeWithMe'](this[_0x227c2d(0x25e)][_0x227c2d(0x338)](_0x181c71=>{const _0x293f84=_0x227c2d;if(_0x181c71[_0x293f84(0x2b7)]==null)return;const _0x3d6143=_0x181c71[_0x293f84(0x2b7)];if(_0x181c71['id']!==V['RichTextEditingMutation']['id']||_0x3d6143['unitId']!==this[_0x293f84(0x2f4)])return;const _0x5916d1={'id':'doc.mutation.rich-text-editing','params':_0x3d6143},_0xa53a73=this['cursorInfo'];for(const [_0x477205,_0x1c6e9c]of _0xa53a73){const _0x5ef484={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x293f84(0x2f4)],'actions':null,'textRanges':_0x1c6e9c['ranges']}},_0x58162d=this[_0x293f84(0x1ba)][_0x293f84(0x280)](_0x5916d1,_0x5ef484,!0x1);if(g['isTransformMutationFailure'](_0x58162d))throw _0x58162d[_0x293f84(0x1aa)];_0xa53a73[_0x293f84(0x1dc)](_0x477205,{..._0x1c6e9c,'ranges':_0x58162d[_0x293f84(0x2fa)]['params'][_0x293f84(0x35a)]});}queueMicrotask(()=>{const _0x46b51e=_0x293f84;this['_cursorInfo$'][_0x46b51e(0x1cf)](_0xa53a73);});})));}[_0x3c131d(0x152)](_0x5c4b37){const _0x1ebe7a=_0x3c131d;var _0x2c0a44,_0x1111ca;const {memberID:_0xa75df6,selection:_0x18af88}=_0x5c4b37['data'],_0x26743b=ht(_0x18af88),_0x4ff848=(_0x1111ca=(_0x2c0a44=this[_0x1ebe7a(0xe9)]['getMember'](this[_0x1ebe7a(0x2f4)],_0xa75df6))==null?void 0x0:_0x2c0a44[_0x1ebe7a(0x10e)])!=null?_0x1111ca:_0x1ebe7a(0x2e9),_0x43aee3={'color':this[_0x1ebe7a(0x2b8)]['assignAColorForMemberID'](_0xa75df6),'name':_0x4ff848,'ranges':_0x26743b},_0x51b223=this[_0x1ebe7a(0xf1)];_0x51b223[_0x1ebe7a(0x1dc)](_0xa75df6,_0x43aee3),this[_0x1ebe7a(0x126)][_0x1ebe7a(0x1cf)](_0x51b223);}[_0x3c131d(0x2a6)](_0x5e310d){const _0x4ed4f0=_0x3c131d,{memberID:_0x3cb816}=_0x5e310d[_0x4ed4f0(0x165)],_0x2735c2=this[_0x4ed4f0(0xf1)];_0x2735c2['delete'](_0x3cb816),this[_0x4ed4f0(0x126)][_0x4ed4f0(0x1cf)](_0x2735c2);}['_toggleOnline'](){const _0x37979f=_0x3c131d;var _0x25f6b5;if(this['_online']=!0x0,((_0x25f6b5=this[_0x37979f(0x24c)][_0x37979f(0x15c)]())==null?void 0x0:_0x25f6b5[_0x37979f(0x247)]())!==this[_0x37979f(0x2f4)])return;const _0x5cfb07=this[_0x37979f(0x2ef)][_0x37979f(0x20d)](V[_0x37979f(0x2c5)])[_0x37979f(0x101)]();Array[_0x37979f(0x32a)](_0x5cfb07)&&_0x5cfb07[_0x37979f(0x29a)]>0x0&&this[_0x37979f(0x1a5)](_0x5cfb07);}[_0x3c131d(0x26b)](){const _0x5d0233=_0x3c131d;this[_0x5d0233(0x364)]=!0x1;}};ve=It([U(0x2,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),U(0x3,a[_0x3c131d(0x1fd)](Re)),U(0x4,a['Inject'](u['MemberService'])),U(0x5,a[_0x3c131d(0x1fd)](be)),U(0x6,g[_0x3c131d(0x194)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x3c131d(0x33d)])],ve);var ft=Object[_0x3c131d(0x196)],mt=(_0x1c8c58,_0x106d38,_0x154540,_0x303f17)=>{const _0x14b0c5=_0x3c131d;for(var _0x3a3f64=_0x303f17>0x1?void 0x0:_0x303f17?ft(_0x106d38,_0x154540):_0x106d38,_0x588e2f=_0x1c8c58[_0x14b0c5(0x29a)]-0x1,_0x3a8de0;_0x588e2f>=0x0;_0x588e2f--)(_0x3a8de0=_0x1c8c58[_0x588e2f])&&(_0x3a3f64=_0x3a8de0(_0x3a3f64)||_0x3a3f64);return _0x3a3f64;},w=(_0x4c0630,_0x42eaa8)=>(_0x30dd86,_0x1d901b)=>_0x42eaa8(_0x30dd86,_0x1d901b,_0x4c0630);const vt=0x12c,gt=0x64,Et=()=>{let _0x28ea3a=[],_0x3870aa=!0x1;return _0x598730=>{_0x28ea3a['push'](_0x598730),_0x3870aa||(_0x3870aa=!0x0,setTimeout(()=>{const _0x1a1522=_0x4b7f;_0x28ea3a[_0x1a1522(0x1df)](_0x31c5d1=>_0x31c5d1()),_0x28ea3a=[],_0x3870aa=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x262152,_0x4537f8,_0x4f3c65,_0x510d65,_0x244072,_0x1b62db,_0x3ea0e3,_0x7b6cdc){const _0x5ac4fd=_0x3c131d;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x5ac4fd(0x126),new I[(_0x5ac4fd(0x301))](new Map())),_(this,'cursorInfo$',this[_0x5ac4fd(0x126)][_0x5ac4fd(0x26c)]()),_(this,_0x5ac4fd(0x253),new I[(_0x5ac4fd(0x301))]([])),_(this,_0x5ac4fd(0x120),this[_0x5ac4fd(0x253)]['pipe'](I['debounceTime'](vt))),_(this,_0x5ac4fd(0x1a5),a[_0x5ac4fd(0x161)]((_0x1a3ee9,_0x54f84a)=>{const _0x60947=_0x5ac4fd,_0x1f4093={'eventID':g[_0x60947(0xea)][_0x60947(0x16b)],'data':{'unitID':this[_0x60947(0x2f4)],'memberID':this['_session'][_0x60947(0x1b0)](),'selection':B[_0x60947(0x28d)](_0x1a3ee9,_0x54f84a[_0x60947(0x1af)])}};this[_0x60947(0x2e8)]['send'](_0x1f4093,this[_0x60947(0x2f4)]);},gt)),(this['unitID']=_0x262152,this[_0x5ac4fd(0x2e8)]=_0x4537f8,this[_0x5ac4fd(0x2ef)]=_0x4f3c65,this[_0x5ac4fd(0x2b8)]=_0x510d65,this[_0x5ac4fd(0xe9)]=_0x244072,this[_0x5ac4fd(0x24c)]=_0x1b62db,this[_0x5ac4fd(0x25e)]=_0x3ea0e3,this[_0x5ac4fd(0x225)]=_0x7b6cdc);}get[_0x3c131d(0xf1)](){const _0x494cdf=_0x3c131d;return this[_0x494cdf(0x126)][_0x494cdf(0x1f6)]();}get[_0x3c131d(0x205)](){const _0x310f01=_0x3c131d;return this[_0x310f01(0x253)][_0x310f01(0x1f6)]();}[_0x3c131d(0x2fc)](){const _0x1ffefd=_0x3c131d;super[_0x1ffefd(0x2fc)](),this['_cursorInfo$'][_0x1ffefd(0x1cf)](new Map()),this[_0x1ffefd(0x126)]['complete'](),this[_0x1ffefd(0x253)][_0x1ffefd(0x1cf)]([]),this[_0x1ffefd(0x253)]['complete']();}[_0x3c131d(0x110)](){const _0x1185d7=_0x3c131d;this[_0x1185d7(0x11a)]||(this[_0x1185d7(0x11a)]=!0x0,this['_session']['sessionStatus$'][_0x1185d7(0x14f)](I[_0x1185d7(0x2e6)](this[_0x1185d7(0x2f9)]))['subscribe'](_0x2f5c03=>{const _0x54bf01=_0x1185d7;_0x2f5c03===u['SessionStatus'][_0x54bf01(0x258)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x1185d7(0x2e8)]['event$'][_0x1185d7(0x14f)](I[_0x1185d7(0x2e6)](this['dispose$']))[_0x1185d7(0x330)](_0x996b72=>{const _0x5a8fba=_0x1185d7,_0x1bc18c=_0x996b72[_0x5a8fba(0x2a5)];_0x1bc18c===g[_0x5a8fba(0xea)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x996b72),_0x1bc18c===g['CollaborationEvent'][_0x5a8fba(0x34d)]&&this['_onCursorDelete'](_0x996b72);}),this[_0x1185d7(0x127)](),this['disposeWithMe'](this[_0x1185d7(0x25e)][_0x1185d7(0x338)](_0x5f2df3=>{const _0x18a278=_0x1185d7;if(this[_0x18a278(0x364)]&&_0x5f2df3['id']===v[_0x18a278(0x108)]['id']&&_0x5f2df3['params'][_0x18a278(0x213)]===this[_0x18a278(0x2f4)]){const _0x525489=_0x5f2df3[_0x18a278(0x2b7)];this[_0x18a278(0x1a5)](_0x525489[_0x18a278(0x16e)],_0x525489[_0x18a278(0x202)][0x0]);}})));}[_0x3c131d(0x152)](_0x32be4c){const _0x17b351=_0x3c131d;var _0x48b7b4,_0xafa2c9;const {memberID:_0x167704,selection:_0x4bd947}=_0x32be4c[_0x17b351(0x165)],{sheetName:_0x172172,range:_0x77405f}=B['deserializeRangeWithSheet'](_0x4bd947),_0x538140={'name':(_0xafa2c9=(_0x48b7b4=this['_memberService'][_0x17b351(0x27a)](this[_0x17b351(0x2f4)],_0x167704))==null?void 0x0:_0x48b7b4[_0x17b351(0x10e)])!=null?_0xafa2c9:_0x17b351(0x2e9),'range':this[_0x17b351(0x2f3)](_0x172172,_0x77405f),'sheetID':_0x172172,'color':this[_0x17b351(0x2b8)]['assignAColorForMemberID'](_0x167704),'selection':_0x4bd947},_0x439031=this[_0x17b351(0xf1)];_0x439031[_0x17b351(0x1dc)](_0x167704,_0x538140),this[_0x17b351(0x126)][_0x17b351(0x1cf)](_0x439031);}[_0x3c131d(0x2a6)](_0x1ec050){const _0x15c9b3=_0x3c131d,{memberID:_0x19bb8f}=_0x1ec050[_0x15c9b3(0x165)],_0x2ee633=this['cursorInfo'];_0x2ee633[_0x15c9b3(0x2ea)](_0x19bb8f),this[_0x15c9b3(0x126)][_0x15c9b3(0x1cf)](_0x2ee633);}['_getMergeRange'](_0x1aac4a,_0x1bd77a){const _0x3de8b6=_0x3c131d;var _0x5a3122,_0x555edf;const _0x279f3f=(_0x555edf=(_0x5a3122=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x3de8b6(0x2f4)]))==null?void 0x0:_0x5a3122['getSheetBySheetId'](_0x1aac4a))==null?void 0x0:_0x555edf[_0x3de8b6(0x2d2)]();return(_0x279f3f==null?void 0x0:_0x279f3f[_0x3de8b6(0x38b)](_0x11ce23=>a['Rectangle'][_0x3de8b6(0x315)](_0x11ce23,_0x1bd77a)))||_0x1bd77a;}[_0x3c131d(0x127)](){const _0x23cff2=_0x3c131d,_0x5104bb=new a[(_0x23cff2(0x245))](),_0xe518e2=Et(),_0x298eea=()=>{const _0x5cf812=_0x23cff2;_0x5104bb[_0x5cf812(0x2fc)]();const _0x6320e6=(_0x4be429,_0x596c1f,_0xff45a,_0x45225d)=>{const _0x5a3068=_0x5cf812;let _0x562611=[];switch(_0x4be429['id']){case v[_0x5a3068(0x143)]['DeleteRangeMoveLeftCommandId']:{_0x562611=v['handleDeleteRangeMoveLeft'](_0x4be429,_0x45225d);break;}case v['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x562611=v[_0x5a3068(0x267)](_0x4be429,_0x45225d);break;}case v['EffectRefRangId'][_0x5a3068(0x283)]:{_0x562611=v['handleInsertCol'](_0x4be429,_0x45225d);break;}case v['EffectRefRangId'][_0x5a3068(0x344)]:{_0x562611=v[_0x5a3068(0x352)](_0x4be429,_0x45225d);break;}case v[_0x5a3068(0x143)]['InsertRangeMoveRightCommandId']:{_0x562611=v[_0x5a3068(0x2fe)](_0x4be429,_0x45225d);break;}case v[_0x5a3068(0x143)][_0x5a3068(0x1c6)]:{_0x562611=v[_0x5a3068(0x153)](_0x4be429,_0x45225d);break;}case v[_0x5a3068(0x143)][_0x5a3068(0x390)]:{_0x562611=v[_0x5a3068(0x21c)](_0x4be429,_0x45225d);break;}case v[_0x5a3068(0x143)][_0x5a3068(0x2a7)]:{_0x562611=v[_0x5a3068(0x183)](_0x4be429,_0x45225d);break;}case v['EffectRefRangId'][_0x5a3068(0x295)]:{_0x562611=v[_0x5a3068(0x276)](_0x4be429,_0x45225d);break;}}const _0x4a7935=v[_0x5a3068(0xfd)](_0x562611,_0x45225d),_0x3e6085=this['cursorInfo']['get'](_0x596c1f);if(_0x3e6085&&_0x4a7935){const _0x240903={..._0x3e6085,'range':_0x4a7935};this[_0x5a3068(0xf1)][_0x5a3068(0x1dc)](_0x596c1f,_0x240903),_0xe518e2(()=>{const _0x3375a5=_0x5a3068,_0x29e485=this['_refRangeService']['registerRefRange'](_0x4a7935,_0x4e31fa=>(_0x29e485['dispose'](),_0x6320e6(_0x4e31fa,_0x596c1f,_0xff45a,_0x4a7935)));_0x5104bb[_0x3375a5(0x1fc)](_0x29e485);});}return{'redos':[],'undos':[]};};this[_0x5cf812(0xf1)][_0x5cf812(0x1df)]((_0x1a78eb,_0x3a4a3f)=>{const _0x17ac86=_0x5cf812,{range:_0x41b731,sheetID:_0x378033}=_0x1a78eb,_0x4911a2=this[_0x17ac86(0x225)][_0x17ac86(0x278)](_0x41b731,_0x426c57=>(_0x4911a2[_0x17ac86(0x2fc)](),_0x6320e6(_0x426c57,_0x3a4a3f,_0x378033,_0x41b731)));_0x5104bb['add'](_0x4911a2);});};this[_0x23cff2(0x3a7)](a[_0x23cff2(0xf4)](this['_cursorInfo$'][_0x23cff2(0x330)](()=>{_0x298eea();})));}[_0x3c131d(0x122)](){const _0x360a5d=_0x3c131d;var _0x21476d,_0x2a5108;if(this[_0x360a5d(0x364)]=!0x0,((_0x21476d=this['_univerInstanceService'][_0x360a5d(0x15c)]())==null?void 0x0:_0x21476d['getUnitId']())!==this[_0x360a5d(0x2f4)])return;const _0x100695=(_0x2a5108=this[_0x360a5d(0x2ef)][_0x360a5d(0x20d)](v[_0x360a5d(0x35b)])[_0x360a5d(0x36e)]())==null?void 0x0:_0x2a5108[0x0],_0x4508eb=this['_univerInstanceService'][_0x360a5d(0x1e1)](a[_0x360a5d(0x22e)][_0x360a5d(0x2e0)])[_0x360a5d(0x1d4)]();_0x100695&&_0x4508eb&&this['_updateLocalCursor'](_0x4508eb[_0x360a5d(0x339)](),_0x100695);}[_0x3c131d(0x26b)](){const _0x14e159=_0x3c131d;this[_0x14e159(0x364)]=!0x1;}};ge=mt([w(0x2,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),w(0x3,a[_0x3c131d(0x1fd)](Re)),w(0x4,a[_0x3c131d(0x1fd)](u[_0x3c131d(0x366)])),w(0x5,a[_0x3c131d(0x28c)]),w(0x6,a[_0x3c131d(0x33d)]),w(0x7,a[_0x3c131d(0x1fd)](v[_0x3c131d(0x2cc)]))],ge);var Ct=Object[_0x3c131d(0x196)],Tt=(_0x3cda2f,_0x2dc132,_0x42ad8f,_0x1de64b)=>{const _0x32cd13=_0x3c131d;for(var _0x1d9dc3=_0x1de64b>0x1?void 0x0:_0x1de64b?Ct(_0x2dc132,_0x42ad8f):_0x2dc132,_0x2d9569=_0x3cda2f[_0x32cd13(0x29a)]-0x1,_0x3fb9be;_0x2d9569>=0x0;_0x2d9569--)(_0x3fb9be=_0x3cda2f[_0x2d9569])&&(_0x1d9dc3=_0x3fb9be(_0x1d9dc3)||_0x1d9dc3);return _0x1d9dc3;},ce=(_0x178cb8,_0x3e47d0)=>(_0x323cae,_0x5448b3)=>_0x3e47d0(_0x323cae,_0x5448b3,_0x178cb8);let F=class extends a['RxDisposable']{constructor(_0x2f8ffa,_0x55a3b1,_0x25b422){const _0x508db4=_0x3c131d;super(),_(this,_0x508db4(0x397),new Map()),_(this,'_entityInit$',new I[(_0x508db4(0x128))]()),(this[_0x508db4(0x24c)]=_0x2f8ffa,this[_0x508db4(0x2ef)]=_0x55a3b1,this['_collabSessionService']=_0x25b422,this[_0x508db4(0x11a)]());}[_0x3c131d(0x2fc)](){const _0x33bd0e=_0x3c131d;super[_0x33bd0e(0x2fc)](),this[_0x33bd0e(0x2dd)][_0x33bd0e(0x37a)](),this['_entities'][_0x33bd0e(0x1df)](_0x1cd8c9=>_0x1cd8c9['dispose']());}['getCollabCursors$'](_0xc4148f){const _0x1ace26=_0x3c131d;return this[_0x1ace26(0x397)][_0x1ace26(0x25f)](_0xc4148f)?this[_0x1ace26(0x397)][_0x1ace26(0x20d)](_0xc4148f)[_0x1ace26(0x3a0)]:this['_entityInit$'][_0x1ace26(0x14f)](I[_0x1ace26(0x30d)](_0x4e5e5a=>_0x4e5e5a[_0x1ace26(0x2f4)]===_0xc4148f),I['switchMap'](_0xdf4a84=>_0xdf4a84[_0x1ace26(0x3a0)]));}[_0x3c131d(0x11a)](){const _0x509b96=_0x3c131d;this[_0x509b96(0x24c)][_0x509b96(0x235)](a[_0x509b96(0x22e)][_0x509b96(0x2e0)])[_0x509b96(0x14f)](I[_0x509b96(0x2e6)](this['dispose$']))[_0x509b96(0x330)](async _0x536e28=>{const _0x372f4b=_0x509b96,_0xc98545=_0x536e28[_0x372f4b(0x247)](),_0x5c747d=await this[_0x372f4b(0x11d)](_0xc98545);this[_0x372f4b(0x2dd)][_0x372f4b(0x1cf)](_0x5c747d),this[_0x372f4b(0x397)][_0x372f4b(0x1dc)](_0xc98545,_0x5c747d);}),this['_univerInstanceService'][_0x509b96(0x235)](a[_0x509b96(0x22e)][_0x509b96(0x1fb)])[_0x509b96(0x14f)](I[_0x509b96(0x2e6)](this['dispose$']))[_0x509b96(0x14f)](I[_0x509b96(0x30d)](_0x1b0307=>!_0x1b0307[_0x509b96(0x247)]()[_0x509b96(0x231)]('__')))['subscribe'](async _0x1fc089=>{const _0x5b9406=_0x509b96,_0x4e2707=_0x1fc089[_0x5b9406(0x247)](),_0x59fee8=await this['_startDocCollabCursor'](_0x4e2707);this['_entityInit$'][_0x5b9406(0x1cf)](_0x59fee8),this[_0x5b9406(0x397)][_0x5b9406(0x1dc)](_0x4e2707,_0x59fee8);}),I[_0x509b96(0x345)](this[_0x509b96(0x24c)][_0x509b96(0x2b5)](a[_0x509b96(0x22e)][_0x509b96(0x1fb)]),this[_0x509b96(0x24c)][_0x509b96(0x2b5)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](I[_0x509b96(0x2e6)](this['dispose$']))['subscribe'](_0x4badcb=>{const _0x132ace=_0x509b96,_0xf5589f=_0x4badcb[_0x132ace(0x247)](),_0x37e143=this[_0x132ace(0x397)][_0x132ace(0x20d)](_0xf5589f);_0x37e143&&(_0x37e143[_0x132ace(0x2fc)](),this[_0x132ace(0x397)][_0x132ace(0x2ea)](_0xf5589f));});}async['_startSheetCollabCursor'](_0x2fda0f){const _0x44b632=_0x3c131d,_0x42d7bc=await this[_0x44b632(0x13f)]['requireSession'](_0x2fda0f),_0x4233cf=this[_0x44b632(0x2ef)][_0x44b632(0x107)](ge,_0x2fda0f,_0x42d7bc);return _0x4233cf['init'](),_0x4233cf;}async['_startDocCollabCursor'](_0x145ee2){const _0xea5fcd=_0x3c131d,_0xc3f6c4=await this['_collabSessionService']['requireSession'](_0x145ee2),_0x1692b6=this['_injector'][_0xea5fcd(0x107)](ve,_0x145ee2,_0xc3f6c4);return _0x1692b6['init'](),_0x1692b6;}};F=Tt([ce(0x0,a[_0x3c131d(0x28c)]),ce(0x1,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),ce(0x2,a[_0x3c131d(0x1fd)](u[_0x3c131d(0x1e7)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0xccdb9d,_0x53078b){const _0x360ec5=_0x3c131d;let {radius:_0xb90f7e,width:_0x2410bd,height:_0x3f4cbd}=_0x53078b;_0xb90f7e=_0xb90f7e!=null?_0xb90f7e:0x0,_0x2410bd=_0x2410bd!=null?_0x2410bd:0x1e,_0x3f4cbd=_0x3f4cbd!=null?_0x3f4cbd:0x1e;let _0x4f8741=0x0,_0x57d2ff=0x0,_0x4c7c14=0x0;_0x4f8741=_0x57d2ff=_0x4c7c14=Math['min'](_0xb90f7e,_0x2410bd/0x2,_0x3f4cbd/0x2),_0xccdb9d['beginPath'](),_0xccdb9d[_0x360ec5(0x20e)](_0x4f8741,0x0),_0xccdb9d[_0x360ec5(0x15a)](_0x2410bd-_0x57d2ff,0x0),_0xccdb9d[_0x360ec5(0x389)](_0x2410bd-_0x57d2ff,_0x57d2ff,_0x57d2ff,Math['PI']*0x3/0x2,0x0,!0x1),_0xccdb9d[_0x360ec5(0x15a)](_0x2410bd,_0x3f4cbd-_0x4c7c14),_0xccdb9d['arc'](_0x2410bd-_0x4c7c14,_0x3f4cbd-_0x4c7c14,_0x4c7c14,0x0,Math['PI']/0x2,!0x1),_0xccdb9d[_0x360ec5(0x15a)](0x0,_0x3f4cbd),_0xccdb9d[_0x360ec5(0x15a)](0x0,_0x4f8741),_0xccdb9d[_0x360ec5(0x389)](_0x4f8741,_0x4f8741,_0x4f8741,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xccdb9d[_0x360ec5(0x188)](),_0x53078b[_0x360ec5(0x323)]&&(_0xccdb9d[_0x360ec5(0x2ac)](),_0xccdb9d['fillStyle']=_0x53078b[_0x360ec5(0x323)],_0x53078b[_0x360ec5(0x244)]===_0x360ec5(0x34b)?_0xccdb9d[_0x360ec5(0x323)](_0x360ec5(0x34b)):_0xccdb9d[_0x360ec5(0x323)](),_0xccdb9d['restore']());}class re extends C['Shape']{constructor(_0x2bba96,_0x2bdcc8){const _0x3eea8f=_0x3c131d;super(_0x2bba96,_0x2bdcc8),_(this,'color'),_(this,_0x3eea8f(0x312)),(this[_0x3eea8f(0x2d7)]=_0x2bdcc8==null?void 0x0:_0x2bdcc8[_0x3eea8f(0x2d7)],this[_0x3eea8f(0x312)]=_0x2bdcc8==null?void 0x0:_0x2bdcc8['text']);}static['drawWith'](_0x343baa,_0x120324){const _0x716ca5=_0x3c131d,{text:_0x3d92c2,color:_0x5b55ac}=_0x120324;_0x343baa[_0x716ca5(0x2ac)](),_0x343baa[_0x716ca5(0x148)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x3634f6=_0x343baa[_0x716ca5(0x252)](_0x3d92c2)['width'],_0x3bf6a0=Math[_0x716ca5(0x216)](_0x3634f6+0x2*le,Ue);Ot(_0x343baa,{'height':X,'radius':0x4,'width':_0x3bf6a0,'fill':_0x5b55ac}),_0x343baa[_0x716ca5(0x236)]='#FFF';const _0x58581c=le,_0xcc0c04=X-pt,_0x1458f6=Ue-0x2*le;if(_0x3634f6>_0x1458f6){let _0x1e3d4c='',_0x253382=0x0;for(const _0x561306 of _0x3d92c2){const _0x436f6a=_0x343baa['measureText'](_0x561306)['width'];if(_0x253382+_0x436f6a<=_0x1458f6-_0x343baa[_0x716ca5(0x252)](_0x716ca5(0x37f))['width'])_0x1e3d4c+=_0x561306,_0x253382+=_0x436f6a;else{_0x1e3d4c+=_0x716ca5(0x37f);break;}}_0x343baa[_0x716ca5(0x1ee)](_0x1e3d4c,_0x58581c,_0xcc0c04);}else _0x343baa[_0x716ca5(0x1ee)](_0x3d92c2,_0x58581c,_0xcc0c04);_0x343baa[_0x716ca5(0x200)]();}[_0x3c131d(0x257)](_0x579e11){re['drawWith'](_0x579e11,this);}}const _e=_0x3c131d(0x10b),Rt=_0x3c131d(0x2de),bt=_0x3c131d(0x384),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x3c131d(0x31e);class Le{constructor(_0x482ef8,_0x538c10,_0x30d8d0,_0x12b706){const _0x169ffd=_0x3c131d;_(this,_0x169ffd(0x1d7),[]),_(this,'_anchor',null),_(this,_0x169ffd(0x23d),null),_(this,_0x169ffd(0x326),null),_(this,_0x169ffd(0x358),null),_(this,_0x169ffd(0x261),null),(this[_0x169ffd(0x1a3)]=_0x482ef8,this[_0x169ffd(0x21f)]=_0x538c10,this[_0x169ffd(0x15d)]=_0x30d8d0,this['_document']=_0x12b706,this[_0x169ffd(0x1c5)]());}set[_0x3c131d(0x176)](_0x1ee2e1){const _0x23a6e3=_0x3c131d;_0x1ee2e1?(this['_anchorDot']&&this['_anchorDot'][_0x23a6e3(0x35d)](),this['_textBubble']&&this[_0x23a6e3(0x23d)]['show']()):(this[_0x23a6e3(0x326)]&&this[_0x23a6e3(0x326)][_0x23a6e3(0x1ff)](),this[_0x23a6e3(0x23d)]&&this[_0x23a6e3(0x23d)]['hide']());}[_0x3c131d(0x2fc)](){const _0x5239ff=_0x3c131d;for(const _0x26e658 of this[_0x5239ff(0x1d7)])_0x26e658['dispose']();this[_0x5239ff(0x23d)]&&this[_0x5239ff(0x23d)][_0x5239ff(0x2fc)](),this['_anchorDot']&&this[_0x5239ff(0x326)][_0x5239ff(0x2fc)](),this[_0x5239ff(0x182)]&&this[_0x5239ff(0x182)][_0x5239ff(0x2fc)](),this[_0x5239ff(0x261)]&&this[_0x5239ff(0x261)]();}[_0x3c131d(0x1c5)](){const _0x264f20=_0x3c131d;var _0x15d2dc;const {_docSkeleton:_0x14c342,_document:_0xc2209b}=this,{color:_0x3063c8,name:_0x3d9618,ranges:_0x53e36c}=this[_0x264f20(0x1a3)],_0x129102=_0xc2209b['getOffsetConfig'](),{docsLeft:_0x3f0db2,docsTop:_0x28b6bc}=_0x129102,_0x2de1b9=new T['NodePositionConvertToCursor'](_0x129102,_0x14c342);for(const {startOffset:_0x1d5be5,endOffset:_0x1eaac,rangeType:_0x85ceee,segmentId:_0x5736b1,segmentPage:_0x2decc1,collapsed:_0x6872cb,isActive:_0x52c73d}of _0x53e36c){const _0x3321c8=_0x14c342[_0x264f20(0x25d)](_0x1d5be5,!0x0,_0x5736b1,_0x2decc1);let _0x34d330=_0x14c342[_0x264f20(0x25d)](_0x1eaac,!0x0,_0x5736b1,_0x2decc1);if(_0x34d330==null&&(_0x34d330=_0x14c342['findNodePositionByCharIndex'](_0x1eaac-0x1,!0x1,_0x5736b1,_0x2decc1)),_0x52c73d){const {contentBoxPointGroup:_0x26c2dc}=_0x2de1b9[_0x264f20(0x16c)](_0x34d330,_0x34d330);if(_0x26c2dc[_0x264f20(0x29a)]===0x0)continue;this[_0x264f20(0x163)](_0x3063c8,_0x26c2dc,_0x3f0db2,_0x28b6bc,_0x3d9618),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x3321c8&&_0x34d330){if(_0x85ceee===a['DOC_RANGE_TYPE'][_0x264f20(0x169)]){const _0x179ce1=new T['NodePositionConvertToRectRange'](_0x129102,_0x14c342),{pointGroup:_0x4094f3}=(_0x15d2dc=_0x179ce1[_0x264f20(0x16c)](_0x3321c8,_0x34d330))!=null?_0x15d2dc:{};if(_0x4094f3==null||_0x4094f3[_0x264f20(0x29a)]===0x0)continue;this['_drawRectRange'](_0x3063c8,_0x4094f3,_0x3f0db2,_0x28b6bc);}else{if(!_0x6872cb){const {borderBoxPointGroup:_0x15063e}=_0x2de1b9[_0x264f20(0x16c)](_0x3321c8,_0x34d330);if(_0x15063e['length']===0x0)continue;this[_0x264f20(0x221)](_0x3063c8,_0x15063e,_0x3f0db2,_0x28b6bc);}}}}}[_0x3c131d(0x163)](_0x2413b4,_0x30eb75,_0x29d7ce,_0xf518fa,_0x4c341f){const _0x1eb012=_0x3c131d,_0x3cb14b=this[_0x1eb012(0x228)](_0x30eb75),{left:_0x148826,top:_0x570d00,height:_0xc305e2}=_0x3cb14b,_0x46093f=this[_0x1eb012(0x270)](),_0x5e923c=Nt/_0x46093f,_0x35e655=new C[(_0x1eb012(0x145))](_e+a[_0x1eb012(0x2e4)](H),{'left':_0x148826+_0x29d7ce-_0x5e923c,'top':_0x570d00+_0xf518fa,'height':_0xc305e2,'width':Dt,'fill':_0x2413b4||C[_0x1eb012(0x32b)](a[_0x1eb012(0xfa)]['black'],0x0),'strokeWidth':_0x5e923c,'stroke':Ut,'evented':!0x0});this[_0x1eb012(0x182)]=_0x35e655,this[_0x1eb012(0x21f)][_0x1eb012(0x179)](_0x35e655,T[_0x1eb012(0x337)]);const _0xe83882=new C[(_0x1eb012(0x145))](_e+a[_0x1eb012(0x2e4)](H),{'left':_0x148826+_0x29d7ce-_0x5e923c,'top':_0x570d00+_0xf518fa-he/0x2,'height':he,'width':he,'fill':_0x2413b4||C['getColor'](a[_0x1eb012(0xfa)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x2413b4||C['getColor'](a['COLORS'][_0x1eb012(0x133)],0x0),'evented':!0x1});this['_anchorDot']=_0xe83882,this[_0x1eb012(0x21f)][_0x1eb012(0x179)](_0xe83882,T[_0x1eb012(0x337)]);const _0x487753=new re(_e+a[_0x1eb012(0x2e4)](H),{'left':_0x148826+_0x29d7ce-_0x5e923c,'top':_0x570d00+_0xf518fa-X,'text':_0x4c341f,'color':_0x2413b4});this[_0x1eb012(0x23d)]=_0x487753,this[_0x1eb012(0x21f)][_0x1eb012(0x179)](_0x487753,T[_0x1eb012(0x337)]),this[_0x1eb012(0x176)]=!0x1;}['_handleHover'](){const _0x1fcd71=_0x3c131d,_0x50a932=this[_0x1fcd71(0x182)][_0x1fcd71(0x170)][_0x1fcd71(0x271)](()=>{const _0x272a11=_0x1fcd71;this[_0x272a11(0x176)]=!0x0;}),_0x1086cb=this[_0x1fcd71(0x182)]['onPointerLeave$'][_0x1fcd71(0x271)](()=>{const _0x437af6=_0x1fcd71;this[_0x437af6(0x358)]&&clearTimeout(this[_0x437af6(0x358)]),this[_0x437af6(0x358)]=setTimeout(()=>{const _0x26c7d6=_0x437af6;this[_0x26c7d6(0x176)]=!0x1;},0x7d0);});return()=>{const _0x4f1fba=_0x1fcd71;_0x50a932[_0x4f1fba(0xff)](),_0x1086cb[_0x4f1fba(0xff)]();};}[_0x3c131d(0x221)](_0x1922e8,_0x2498ca,_0x4e7ec9,_0x13304a){const _0x1d7ef4=_0x3c131d,_0xf6b3db=new a['ColorKit'](_0x1922e8)[_0x1d7ef4(0x275)](0.2)['toRgbString'](),_0x5c1e3a=new C['RegularPolygon'](Rt+a[_0x1d7ef4(0x2e4)](H),{'pointsGroup':_0x2498ca,'fill':_0xf6b3db||C[_0x1d7ef4(0x32b)](a['COLORS'][_0x1d7ef4(0x133)],0.2),'left':_0x4e7ec9,'top':_0x13304a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1d7ef4(0x1d7)][_0x1d7ef4(0x2ad)](_0x5c1e3a),this[_0x1d7ef4(0x21f)][_0x1d7ef4(0x179)](_0x5c1e3a,T[_0x1d7ef4(0x337)]);}['_drawRectRange'](_0x424907,_0x54b8d3,_0x1eae90,_0x309cf2){const _0x40ebf3=_0x3c131d,_0x3bef24=new a[(_0x40ebf3(0x308))](_0x424907)[_0x40ebf3(0x275)](0.2)['toRgbString'](),_0x4237bc=new C[(_0x40ebf3(0x137))](bt+a[_0x40ebf3(0x2e4)](H),{'pointsGroup':_0x54b8d3,'fill':_0x3bef24||C[_0x40ebf3(0x32b)](a['COLORS'][_0x40ebf3(0x133)],0.2),'left':_0x1eae90,'top':_0x309cf2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x40ebf3(0x2ad)](_0x4237bc),this[_0x40ebf3(0x21f)][_0x40ebf3(0x179)](_0x4237bc,T[_0x40ebf3(0x337)]);}['_getAnchorBounding'](_0xe9c5cc){const _0x564e39=_0xe9c5cc[0x0],_0x2a6b6a=_0x564e39[0x0],_0xc8f90b=_0x564e39[0x2],{x:_0x1b229f,y:_0x55601e}=_0x2a6b6a,{x:_0x467ec2,y:_0x1e1250}=_0xc8f90b;return{'left':_0x1b229f,'top':_0x55601e,'width':_0x467ec2-_0x1b229f,'height':_0x1e1250-_0x55601e};}[_0x3c131d(0x270)](){const _0x527434=_0x3c131d,{scaleX:_0x253465,scaleY:_0x219885}=this['_scene']['getAncestorScale']();return Math[_0x527434(0x294)](_0x253465,_0x219885);}}var Lt=Object[_0x3c131d(0x196)],Mt=(_0x1db88d,_0x14b9b1,_0xde2a1,_0x30d33a)=>{const _0x1f802b=_0x3c131d;for(var _0xa17050=_0x30d33a>0x1?void 0x0:_0x30d33a?Lt(_0x14b9b1,_0xde2a1):_0x14b9b1,_0x498d29=_0x1db88d[_0x1f802b(0x29a)]-0x1,_0x253d30;_0x498d29>=0x0;_0x498d29--)(_0x253d30=_0x1db88d[_0x498d29])&&(_0xa17050=_0x253d30(_0xa17050)||_0xa17050);return _0xa17050;},q=(_0x128298,_0x197f80)=>(_0x36a90e,_0x2455c4)=>_0x197f80(_0x36a90e,_0x2455c4,_0x128298);let Ee=class extends a[_0x3c131d(0x141)]{constructor(_0x2ed131,_0x3d8e65,_0x2ff335,_0x57e883,_0x27fda7){const _0x3c48db=_0x3c131d;super(),_(this,_0x3c48db(0x307),[]),_(this,'_cursors',[]),(this[_0x3c48db(0x260)]=_0x2ed131,this[_0x3c48db(0x319)]=_0x3d8e65,this[_0x3c48db(0x2d8)]=_0x2ff335,this[_0x3c48db(0x25e)]=_0x57e883,this[_0x3c48db(0x391)]=_0x27fda7,this[_0x3c48db(0x11a)]());}[_0x3c131d(0x11a)](){const _0x4f6d4d=_0x3c131d,_0xaac0ba=this[_0x4f6d4d(0x260)][_0x4f6d4d(0x213)],_0x3a62c0=this['_docSkeletonManagerService'];this[_0x4f6d4d(0x3a7)](I[_0x4f6d4d(0x2e7)]([this['_collabCursorController'][_0x4f6d4d(0x35f)](_0xaac0ba),this[_0x4f6d4d(0x391)]['currentTheme$']])[_0x4f6d4d(0x14f)]($[_0x4f6d4d(0xf0)](([_0x3b4fca,_0x537b19])=>({'skeleton':_0x3a62c0[_0x4f6d4d(0x300)](),'cursors':[..._0x3b4fca['values']()][_0x4f6d4d(0x19d)](_0x3c5a4b=>({..._0x3c5a4b,'color':this[_0x4f6d4d(0x391)][_0x4f6d4d(0x15f)](_0x3c5a4b[_0x4f6d4d(0x2d7)])}))})))[_0x4f6d4d(0x330)](_0x1ee82c=>{if(this['_removeCollabCursors'](),_0x1ee82c){const {skeleton:_0x4a489d,cursors:_0x1fccb4}=_0x1ee82c;this['_updateCollabCursors'](_0x4a489d,_0x1fccb4);}})),this[_0x4f6d4d(0x1db)](),this[_0x4f6d4d(0x341)]();}[_0x3c131d(0x2c6)](_0x3b7d27,_0x2f40b0){const _0x2b215c=_0x3c131d,{scene:_0x298ded,mainComponent:_0x58831c}=this[_0x2b215c(0x260)],_0x755c1b=_0x2f40b0[_0x2b215c(0xf0)](_0x54b7ce=>new Le(_0x54b7ce,_0x298ded,_0x3b7d27,_0x58831c));this[_0x2b215c(0x307)]=_0x755c1b,this[_0x2b215c(0x11b)]=_0x2f40b0;}[_0x3c131d(0x28b)](){const _0x24f29f=_0x3c131d;this[_0x24f29f(0x35e)]();const {scene:_0x32c4e2,mainComponent:_0x294ba8}=this['_context'],_0x5633d2=this[_0x24f29f(0x319)][_0x24f29f(0x300)](),_0x5b3610=this[_0x24f29f(0x11b)][_0x24f29f(0xf0)](_0x545aa7=>new Le(_0x545aa7,_0x32c4e2,_0x5633d2,_0x294ba8));this[_0x24f29f(0x307)]=_0x5b3610;}[_0x3c131d(0x35e)](){const _0x447f32=_0x3c131d;this[_0x447f32(0x307)]['forEach'](_0x4c710c=>_0x4c710c[_0x447f32(0x2fc)]()),this[_0x447f32(0x307)]=[];}[_0x3c131d(0x341)](){const _0x53395e=_0x3c131d,_0x2bb703=[T['SetDocZoomRatioOperation']['id']];this[_0x53395e(0x3a7)](this[_0x53395e(0x25e)]['onCommandExecuted'](_0x15729d=>{const _0x2dd0e7=_0x53395e;_0x2bb703[_0x2dd0e7(0x23e)](_0x15729d['id'])&&_0x15729d[_0x2dd0e7(0x2b7)][_0x2dd0e7(0x213)]===this[_0x2dd0e7(0x260)][_0x2dd0e7(0x213)]&&this[_0x2dd0e7(0x28b)]();}));}[_0x3c131d(0x1db)](){const _0x237f04=_0x3c131d;this[_0x237f04(0x3a7)](a[_0x237f04(0x1f0)](this[_0x237f04(0x260)][_0x237f04(0x1a9)][_0x237f04(0x35c)])[_0x237f04(0x14f)]($['filter'](_0x22a138=>_0x22a138[_0x237f04(0x24d)]===C[_0x237f04(0x21e)][_0x237f04(0x32c)]),$[_0x237f04(0x2e5)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x3c131d(0x1fd)](V[_0x3c131d(0x17f)])),q(0x2,a[_0x3c131d(0x1fd)](F)),q(0x3,a['ICommandService']),q(0x4,a['Inject'](a[_0x3c131d(0x1e0)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x3c131d(0x223)]{constructor(_0x2698ab,_0x4aa32c){const _0x118a41=_0x3c131d;super(_0x2698ab,_0x4aa32c),_(this,_0x118a41(0xed)),_(this,_0x118a41(0x129),!0x1),_(this,'_range'),_(this,_0x118a41(0x335),''),_(this,_0x118a41(0xe7),_0x118a41(0x2f8)),_(this,_0x118a41(0x256)),(_0x4aa32c&&this[_0x118a41(0x328)](_0x4aa32c),this['onPointerEnter$'][_0x118a41(0x271)](()=>this[_0x118a41(0x328)]({'hovered':!0x0})),this[_0x118a41(0x1d9)][_0x118a41(0x271)](()=>this[_0x118a41(0x328)]({'hovered':!0x1})));}[_0x3c131d(0x328)](_0x42a097){const _0x443c2e=_0x3c131d;var _0x56509a,_0x58eff7,_0x543c10,_0x1320b2,_0x16791f,_0x17a1ba;this[_0x443c2e(0xed)]=(_0x56509a=_0x42a097[_0x443c2e(0x2d7)])!=null?_0x56509a:this['_color'],this[_0x443c2e(0x129)]=(_0x58eff7=_0x42a097[_0x443c2e(0x249)])!=null?_0x58eff7:this[_0x443c2e(0x129)],this[_0x443c2e(0x1ab)]=(_0x543c10=_0x42a097[_0x443c2e(0x1af)])!=null?_0x543c10:this[_0x443c2e(0x1ab)],this[_0x443c2e(0x335)]=(_0x1320b2=_0x42a097['name'])!=null?_0x1320b2:this[_0x443c2e(0x335)],this[_0x443c2e(0xe7)]=(_0x16791f=_0x42a097[_0x443c2e(0x2f0)])!=null?_0x16791f:this[_0x443c2e(0xe7)],this[_0x443c2e(0x256)]=(_0x17a1ba=_0x42a097[_0x443c2e(0x1c3)])!=null?_0x17a1ba:this[_0x443c2e(0x256)],this[_0x443c2e(0x198)]({'width':_0x42a097[_0x443c2e(0x20a)],'height':_0x42a097[_0x443c2e(0x25c)]});}[_0x3c131d(0x18b)](_0x453380){const _0x379dd9=_0x3c131d,{row:_0x5373ae,column:_0x58ef4f}=_0x453380;if(_0x5373ae>=this[_0x379dd9(0x1ab)][_0x379dd9(0x1ad)]&&_0x5373ae<=this['_range']['endRow']&&_0x58ef4f>=this[_0x379dd9(0x1ab)][_0x379dd9(0x177)]&&_0x58ef4f<=this[_0x379dd9(0x1ab)][_0x379dd9(0x136)]){this[_0x379dd9(0x328)]({'hovered':!0x0});return;}this[_0x379dd9(0x328)]({'hovered':!0x1});}[_0x3c131d(0x212)](_0x32eb71){return!0x1;}['_draw'](_0x5cb10e){const _0x3a83ee=_0x3c131d;C[_0x3a83ee(0x145)][_0x3a83ee(0x340)](_0x5cb10e,{'width':this[_0x3a83ee(0x20a)],'height':this[_0x3a83ee(0x25c)],'strokeWidth':Pt,'stroke':this[_0x3a83ee(0xed)],'evented':!0x1,'fill':this[_0x3a83ee(0x256)]}),this['_hovered']&&(_0x5cb10e[_0x3a83ee(0x2ac)](),_0x5cb10e[_0x3a83ee(0x178)](0x1,0x0,0x0,0x1,this[_0x3a83ee(0x20a)],this[_0x3a83ee(0xe7)]==='bottom'?0x0:-X),re['drawWith'](_0x5cb10e,{'text':this['_name'],'color':this[_0x3a83ee(0xed)]}),_0x5cb10e['restore']());}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x349dcb,_0x1f450b,_0x17c9db,_0x38d5f3)=>{const _0x231577=_0x3c131d;for(var _0x4fdf88=_0x38d5f3>0x1?void 0x0:_0x38d5f3?wt(_0x1f450b,_0x17c9db):_0x1f450b,_0x38ca2f=_0x349dcb[_0x231577(0x29a)]-0x1,_0x377227;_0x38ca2f>=0x0;_0x38ca2f--)(_0x377227=_0x349dcb[_0x38ca2f])&&(_0x4fdf88=_0x377227(_0x4fdf88)||_0x4fdf88);return _0x4fdf88;},ue=(_0x2e80fa,_0x479ad4)=>(_0x15e677,_0x2c57c1)=>_0x479ad4(_0x15e677,_0x2c57c1,_0x2e80fa);const $t=0x1389;let Ce=class extends a[_0x3c131d(0x141)]{constructor(_0x1793f1,_0x15d9a9,_0x4879b3,_0x3b7782){const _0x2132f1=_0x3c131d;super(),_(this,'_cursors',new Set()),_(this,_0x2132f1(0x2bf),null),(this['_context']=_0x1793f1,this[_0x2132f1(0x201)]=_0x15d9a9,this[_0x2132f1(0x2d8)]=_0x4879b3,this[_0x2132f1(0x391)]=_0x3b7782,this[_0x2132f1(0x11a)]());}[_0x3c131d(0x11a)](){const _0x3fefea=_0x3c131d;this[_0x3fefea(0x201)][_0x3fefea(0x116)][_0x3fefea(0x14f)]($[_0x3fefea(0x2e6)](this[_0x3fefea(0x2f9)]),$['switchMap'](_0x5d136c=>{const _0x4b5e4d=_0x3fefea;if(_0x5d136c){const _0x41cc89=_0x5d136c[_0x4b5e4d(0x264)];return I['combineLatest'](this[_0x4b5e4d(0x2d8)][_0x4b5e4d(0x35f)](this[_0x4b5e4d(0x260)][_0x4b5e4d(0x213)]),this[_0x4b5e4d(0x391)]['currentTheme$'])[_0x4b5e4d(0x14f)]($['map'](([_0x43036f,_0x13273a])=>{const _0x4291fa=_0x4b5e4d,_0x20fa0c=new Map();return _0x43036f[_0x4291fa(0x1df)]((_0x1b5c13,_0x4b298b)=>{const _0x24bace=_0x4291fa;if(_0x1b5c13[_0x24bace(0x310)]===_0x41cc89){const _0x887ea={..._0x1b5c13};_0x887ea[_0x24bace(0x2d7)]=this[_0x24bace(0x391)][_0x24bace(0x15f)](_0x1b5c13['color']),_0x20fa0c[_0x24bace(0x1dc)](_0x4b298b,_0x887ea);}}),{'skeleton':_0x5d136c,'cursors':_0x20fa0c};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x3fefea(0x330)](({skeleton:_0x49d2a3,cursors:_0x23aacf})=>{const _0x16028a=_0x3fefea;this[_0x16028a(0x35e)](),_0x49d2a3&&this[_0x16028a(0x2c6)](_0x49d2a3,_0x23aacf);}),this[_0x3fefea(0x201)][_0x3fefea(0x116)][_0x3fefea(0x330)](_0x4bd683=>{const _0x172be7=_0x3fefea;if(_0x4bd683==null)return;const {skeleton:_0x34963e}=_0x4bd683,{scene:_0x3a9e0f}=this['_context'];_0x3a9e0f['onPointerMove$'][_0x172be7(0x271)](a['debounce'](_0x4adfc3=>{const _0x2d9f45=_0x172be7;var _0x1c3328,_0x8454bb;const {offsetX:_0x10ce56,offsetY:_0xa5606f}=_0x4adfc3,{x:_0x3210f7,y:_0xb7c419}=_0x3a9e0f[_0x2d9f45(0x348)](C[_0x2d9f45(0x10c)][_0x2d9f45(0x39d)]([_0x10ce56,_0xa5606f])),{scaleX:_0x391e15,scaleY:_0x3c0522}=_0x3a9e0f[_0x2d9f45(0x373)](),_0x3c6d45=_0x3a9e0f[_0x2d9f45(0x1d6)](C[_0x2d9f45(0x30e)]['VIEW_MAIN']),_0x2654bd=_0x3a9e0f['getVpScrollXYInfoByPosToVp'](C[_0x2d9f45(0x10c)][_0x2d9f45(0x39d)]([_0x3210f7,_0xb7c419]),_0x3c6d45),_0x1d7dc0=_0x34963e['getCellPositionByOffset'](_0x10ce56,_0xa5606f,_0x391e15,_0x3c0522,_0x2654bd);((_0x1c3328=this[_0x2d9f45(0x2bf)])==null?void 0x0:_0x1c3328[_0x2d9f45(0x21d)])===_0x1d7dc0['column']&&((_0x8454bb=this[_0x2d9f45(0x2bf)])==null?void 0x0:_0x8454bb[_0x2d9f45(0x251)])===_0x1d7dc0[_0x2d9f45(0x251)]||this[_0x2d9f45(0x11b)]['forEach'](_0x113370=>{const _0x3ad961=_0x2d9f45;_0x113370[_0x3ad961(0x18b)](_0x1d7dc0);});},0x64));});}[_0x3c131d(0x2c6)](_0x462304,_0xd447d7){const _0x26dd48=_0x3c131d;var _0x575257;const _0x3cf403=(_0x575257=this['_sheetSkeletonManagerService'][_0x26dd48(0x2c9)]())==null?void 0x0:_0x575257[_0x26dd48(0x38c)];if(!_0x3cf403)return;const _0x57c66d=this[_0x26dd48(0x1f7)]();if(!_0x57c66d)return;this[_0x26dd48(0x11b)][_0x26dd48(0x1df)](_0x269f46=>{_0x269f46['makeDirty']();});const {scene:_0x3fd024}=_0x57c66d,_0x2e33f2=xt(Array[_0x26dd48(0x292)](_0xd447d7[_0x26dd48(0x2c8)]()))[_0x26dd48(0xf0)](_0x5da407=>{const _0xdd6f42=_0x26dd48,{color:_0x5315dd,range:_0x437541,name:_0x582c51,selection:_0x57461f,sheetID:_0x3b6e19}=_0x5da407,{startColumn:_0x272140,startRow:_0x560e5c,endColumn:_0x4dbea4,endRow:_0x3132e9}=_0x437541,_0x307067=J[_0xdd6f42(0x24b)](_0x560e5c,_0x272140,_0x3fd024,_0x3cf403),_0x30d95c=J['getCoordByCell'](_0x3132e9,_0x4dbea4,_0x3fd024,_0x3cf403),{columnHeaderHeightAndMarginTop:_0x20918e}=_0x3cf403,{startX:_0x5b3d22,startY:_0x263c1d}=_0x307067,{endX:_0x23149d,endY:_0x3ecd8b}=_0x30d95c,_0x117be2=_0x23149d-_0x5b3d22,_0x94bb16=_0x3ecd8b-_0x263c1d,_0x4dada7={'labelPosition':_0x263c1d-_0x20918e>=X?'top':'bottom','sheetID':_0x3b6e19,'range':_0x437541,'color':_0x5315dd,'name':_0x582c51,'selection':_0x57461f,'left':_0x5b3d22,'top':_0x263c1d,'width':_0x117be2,'height':_0x94bb16,'evented':!0x1,'zIndex':$t};return new je(_0x582c51,_0x4dada7);});_0x3fd024[_0x26dd48(0x13c)](_0x2e33f2,At),this[_0x26dd48(0x11b)]=new Set(_0x2e33f2);}[_0x3c131d(0x35e)](){const _0x1a0841=_0x3c131d;var _0x240d8a;(_0x240d8a=this['_cursors'])==null||_0x240d8a[_0x1a0841(0x1df)](_0x41eaeb=>_0x41eaeb[_0x1a0841(0x2fc)]());}['_getSheetObject'](){const _0x4ac5ef=_0x3c131d;return J[_0x4ac5ef(0x248)](this[_0x4ac5ef(0x260)][_0x4ac5ef(0x268)],this[_0x4ac5ef(0x260)]);}};Ce=yt([ue(0x1,a['Inject'](J[_0x3c131d(0x359)])),ue(0x2,a[_0x3c131d(0x1fd)](F)),ue(0x3,a['Inject'](a[_0x3c131d(0x1e0)]))],Ce);function xt(_0x5bbc6d){const _0x12fb02=_0x3c131d,_0x4d7bbd=new Map();return _0x5bbc6d[_0x12fb02(0x1df)](_0x59e2e5=>{const _0x1499a6=_0x12fb02;if(_0x4d7bbd[_0x1499a6(0x25f)](_0x59e2e5['selection'])){const _0x494a0c=_0x4d7bbd['get'](_0x59e2e5[_0x1499a6(0x22f)]);_0x494a0c[_0x1499a6(0x10e)]+=',\x20'+_0x59e2e5[_0x1499a6(0x10e)];}else _0x4d7bbd[_0x1499a6(0x1dc)](_0x59e2e5[_0x1499a6(0x22f)],_0x59e2e5);}),Array[_0x12fb02(0x292)](_0x4d7bbd[_0x12fb02(0x2c8)]());}var Bt=Object[_0x3c131d(0x196)],Ft=(_0x2f9430,_0x4e26ee,_0x3a83f0,_0x309a5a)=>{const _0xfcf84=_0x3c131d;for(var _0x2078a2=_0x309a5a>0x1?void 0x0:_0x309a5a?Bt(_0x4e26ee,_0x3a83f0):_0x4e26ee,_0x51c9f0=_0x2f9430[_0xfcf84(0x29a)]-0x1,_0x233c78;_0x51c9f0>=0x0;_0x51c9f0--)(_0x233c78=_0x2f9430[_0x51c9f0])&&(_0x2078a2=_0x233c78(_0x2078a2)||_0x2078a2);return _0x2078a2;},y=(_0x5a08c4,_0x12b99c)=>(_0x2fe236,_0x108066)=>_0x12b99c(_0x2fe236,_0x108066,_0x5a08c4);let Z=class extends a[_0x3c131d(0x296)]{constructor(_0x11e00d,_0x53cc42,_0xf4364b,_0x414667,_0x193600,_0x542f8e){const _0x4f01ac=_0x3c131d;super(),this[_0x4f01ac(0x22b)]=_0x11e00d,this[_0x4f01ac(0x317)]=_0x53cc42,this[_0x4f01ac(0x38d)]=_0xf4364b,this[_0x4f01ac(0x109)]=_0x414667,this[_0x4f01ac(0x174)]=_0x193600,this[_0x4f01ac(0x272)]=_0x542f8e,this[_0x4f01ac(0x241)](),this[_0x4f01ac(0x2fb)]();}[_0x3c131d(0x241)](){const _0x302e65=_0x3c131d;this[_0x302e65(0x3a7)](this[_0x302e65(0x22b)][_0x302e65(0x305)](()=>{const _0x11656d=_0x302e65;if(this[_0x11656d(0x317)]['saveTaskMap'][_0x11656d(0xf9)])return this['_localeService']['t']('collaboration.offline-data-not-saved');}));}[_0x3c131d(0x2fb)](){const _0x1d74b7=_0x3c131d;this[_0x1d74b7(0x3a7)](this[_0x1d74b7(0x38d)][_0x1d74b7(0x28e)][_0x1d74b7(0x330)](_0x153a25=>{const _0x149eda=_0x1d74b7;_0x153a25['id']===u['CollaborationUIEventId'][_0x149eda(0x1c1)]&&this[_0x149eda(0x109)][_0x149eda(0x1ff)]({'type':p[_0x149eda(0x1da)][_0x149eda(0x370)],'content':this[_0x149eda(0x272)]['t'](_0x149eda(0x336))}),_0x153a25['id']===u['CollaborationUIEventId'][_0x149eda(0x3a6)]&&this['_messageService']['show']({'type':p[_0x149eda(0x1da)]['Warning'],'content':this['_localeService']['t'](_0x149eda(0x12e))}),_0x153a25['id']===u['CollaborationUIEventId'][_0x149eda(0x1e2)]&&this['_notificationService'][_0x149eda(0x1ff)]({'title':this[_0x149eda(0x272)]['t'](_0x149eda(0xfe)),'content':this[_0x149eda(0x272)]['t'](_0x149eda(0x33a)),'type':_0x149eda(0x1aa),'duration':0x0}),_0x153a25['id']===u['CollaborationUIEventId'][_0x149eda(0x140)]&&this['_messageService'][_0x149eda(0x1ff)]({'type':p[_0x149eda(0x1da)][_0x149eda(0x2c4)],'content':this['_localeService']['t'](_0x149eda(0x12e))+'('+_0x153a25[_0x149eda(0x165)]+')'}),_0x153a25['id']===u['CollaborationUIEventId'][_0x149eda(0x33b)]&&this[_0x149eda(0x109)][_0x149eda(0x1ff)]({'type':p[_0x149eda(0x1da)]['Warning'],'content':this['_localeService']['t'](_0x153a25[_0x149eda(0x165)]||'')}),_0x153a25['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x149eda(0x109)]['show']({'type':p[_0x149eda(0x1da)][_0x149eda(0x370)],'content':this['_localeService']['t']('session.will-retry')}),_0x153a25['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x149eda(0x1ff)]({'type':p[_0x149eda(0x1da)][_0x149eda(0x2c4)],'content':this['_localeService']['t']('session.connection-failed')}),_0x153a25['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x149eda(0x109)][_0x149eda(0x1ff)]({'type':p[_0x149eda(0x1da)][_0x149eda(0x2c4)],'content':this['_localeService']['t'](_0x149eda(0xe3))});}));}};Z=Ft([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x3c131d(0x1fd)](u['CollaborationUIEventService'])),y(0x3,O[_0x3c131d(0x115)]),y(0x4,O[_0x3c131d(0x333)]),y(0x5,a[_0x3c131d(0x1fd)](a['LocaleService']))],Z);var jt=Object[_0x3c131d(0x196)],kt=(_0x1922c7,_0x29737b,_0x4fc8e4,_0x3a4fc5)=>{const _0xa21aa5=_0x3c131d;for(var _0x482fb1=_0x3a4fc5>0x1?void 0x0:_0x3a4fc5?jt(_0x29737b,_0x4fc8e4):_0x29737b,_0x3bb80e=_0x1922c7[_0xa21aa5(0x29a)]-0x1,_0x3c1b49;_0x3bb80e>=0x0;_0x3bb80e--)(_0x3c1b49=_0x1922c7[_0x3bb80e])&&(_0x482fb1=_0x3c1b49(_0x482fb1)||_0x482fb1);return _0x482fb1;},z=(_0x2c4d19,_0x53f65a)=>(_0x5d84ee,_0x40fbe2)=>_0x53f65a(_0x5d84ee,_0x40fbe2,_0x2c4d19);let Q=class extends a['Disposable']{constructor(_0xaaf8ab,_0x5f3da9,_0x11d5ae,_0x55d717){const _0x4796ee=_0x3c131d;super(),_(this,_0x4796ee(0x314)),(this[_0x4796ee(0x2ef)]=_0xaaf8ab,this[_0x4796ee(0x29c)]=_0x5f3da9,this['_logService']=_0x11d5ae,this[_0x4796ee(0x21b)]=_0x55d717,this[_0x4796ee(0x11a)]());}[_0x3c131d(0x11a)](){const _0x2179e2=_0x3c131d;this[_0x2179e2(0x2ec)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x2179e2(0x14b)]();}[_0x3c131d(0x14b)](){const _0x142180=_0x3c131d;this[_0x142180(0x3a7)](this[_0x142180(0x21b)][_0x142180(0x130)]['subscribe'](_0x47b5f6=>{const _0x59a364=_0x142180;this['_memberID']=_0x47b5f6==null?void 0x0:_0x47b5f6[_0x59a364(0x1f8)];}));}[_0x3c131d(0x2ec)](){const _0x91c74b=_0x3c131d,_0x281674=_0x1cd92d=>{const _0x3b5929=_0x4b7f;var _0x2ebf61;this[_0x3b5929(0x39f)]('error','[Window\x20Error]:\x20'+_0x1cd92d['message']+'\x20at\x20'+_0x1cd92d[_0x3b5929(0x243)]+':'+_0x1cd92d['lineno']+':'+_0x1cd92d['colno']+'\x0a'+(((_0x2ebf61=_0x1cd92d['error'])==null?void 0x0:_0x2ebf61['stack'])||''));};window[_0x91c74b(0x395)]('error',_0x281674),this[_0x91c74b(0x3a7)](()=>{const _0x2aaaef=_0x91c74b;window[_0x2aaaef(0x1a2)]('error',_0x281674);});}['_initUnhandledRejectionListener'](){const _0x539f25=_0x3c131d,_0x2dc059=_0x4793c5=>{const _0x5a76ed=_0x4b7f;this[_0x5a76ed(0x39f)](_0x5a76ed(0x1aa),_0x5a76ed(0x1a0)+_0x4793c5[_0x5a76ed(0x2ff)]);};window['addEventListener'](_0x539f25(0x36d),_0x2dc059),this[_0x539f25(0x3a7)](()=>{const _0x2146a6=_0x539f25;window[_0x2146a6(0x1a2)](_0x2146a6(0x36d),_0x2dc059);});}[_0x3c131d(0x1f3)](){const _0x340ecb=_0x3c131d,_0x514bb3=this[_0x340ecb(0x25a)][_0x340ecb(0x1aa)][_0x340ecb(0x318)](this[_0x340ecb(0x25a)]);this['_logService'][_0x340ecb(0x1aa)]=(..._0x59620f)=>{const _0x16a20f=_0x340ecb,_0x3d2931=_0x59620f[_0x16a20f(0xf0)](_0x2bb237=>_0x2bb237 instanceof Error?_0x2bb237['message']+'\x0a'+_0x2bb237[_0x16a20f(0x13b)]:String(_0x2bb237))[_0x16a20f(0x388)]('\x20');this[_0x16a20f(0x39f)](_0x16a20f(0x1aa),'[LogService\x20Error]:\x20'+_0x3d2931),_0x514bb3(..._0x59620f);},this[_0x340ecb(0x3a7)](()=>{const _0x5abb4c=_0x340ecb;this[_0x5abb4c(0x25a)]['error']=_0x514bb3;});}['_uploadLog'](_0x4df30f,_0x1265cb){const _0x467192=_0x3c131d;try{const _0x3714a8={'userId':this[_0x467192(0x314)],'logLabel':_0x4df30f,'content':_0x1265cb};this[_0x467192(0x29c)][_0x467192(0x229)](_0x467192(0x24f),{'body':_0x3714a8})[_0x467192(0x19c)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),z(0x1,a[_0x3c131d(0x1fd)](x['HTTPService'])),z(0x2,a[_0x3c131d(0x2b4)]),z(0x3,a['Inject'](u[_0x3c131d(0x1e7)]))],Q);const Yt=_0x3c131d(0x37c),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x1fd038,_0x1a37f6,_0x3832c3,_0x3533fb)=>{const _0x1d4acf=_0x3c131d;for(var _0x5e8df2=_0x3533fb>0x1?void 0x0:_0x3533fb?Ht(_0x1a37f6,_0x3832c3):_0x1a37f6,_0x36026a=_0x1fd038[_0x1d4acf(0x29a)]-0x1,_0x19d6fc;_0x36026a>=0x0;_0x36026a--)(_0x19d6fc=_0x1fd038[_0x36026a])&&(_0x5e8df2=_0x19d6fc(_0x5e8df2)||_0x5e8df2);return _0x5e8df2;},Ae=(_0x197022,_0x111772)=>(_0x55fb7f,_0x286c8b)=>_0x111772(_0x55fb7f,_0x286c8b,_0x197022);let ee=class{constructor(_0x35f537,_0x49964a){const _0x3f012b=_0x3c131d;this[_0x3f012b(0x1ba)]=_0x35f537,this[_0x3f012b(0x262)]=_0x49964a;}[_0x3c131d(0x208)](_0x1b4d98){const _0x2aa8e7=_0x3c131d;this[_0x2aa8e7(0x190)](_0x1b4d98),this[_0x2aa8e7(0x383)](_0x1b4d98);}[_0x3c131d(0x34f)](_0x306812){const _0x843621=_0x3c131d,{unitID:_0x1a74bb}=_0x306812,_0x479301=this['_renderManagerService']['getRenderById'](_0x1a74bb)[_0x843621(0x362)](T[_0x843621(0x158)]),{redoCache:_0xc883e8}=_0x479301['getUndoRedoMutationParamsCache']();if(_0xc883e8['length']===0x0)return _0x306812;let _0x5232a2=a[_0x843621(0x334)][_0x843621(0x1a8)](_0x306812[_0x843621(0x37d)][0x0]);for(let _0x41a0f8=0x0;_0x41a0f8<_0xc883e8[_0x843621(0x29a)];_0x41a0f8++){const _0x14e04f={'id':_0x843621(0xe6),'params':{..._0xc883e8[_0x41a0f8]}},_0x5dbdde=this[_0x843621(0x1ba)][_0x843621(0x280)](_0x5232a2,_0x14e04f,!0x1);if(g[_0x843621(0x372)](_0x5dbdde))throw _0x5dbdde['error'];_0x5232a2=_0x5dbdde[_0x843621(0x286)];}return{...a[_0x843621(0x334)]['deepClone'](_0x306812),'mutations':[_0x5232a2]};}[_0x3c131d(0x190)](_0x36efb2){const _0x4518bf=_0x3c131d,{unitID:_0x294922}=_0x36efb2,_0xe2b165=this[_0x4518bf(0x262)]['getRenderById'](_0x294922)[_0x4518bf(0x362)](T[_0x4518bf(0x158)]),{undoCache:_0x2cec50,redoCache:_0x11827c}=_0xe2b165[_0x4518bf(0x309)]();if(_0x2cec50[_0x4518bf(0x29a)]===0x0||_0x11827c[_0x4518bf(0x29a)]===0x0)return;const _0x1e8315=[],_0x32a7b8=[];let _0x38f482=a[_0x4518bf(0x334)]['deepClone'](_0x36efb2[_0x4518bf(0x37d)][0x0]),_0x4ceaa6=a[_0x4518bf(0x334)]['deepClone'](_0x36efb2[_0x4518bf(0x37d)][0x0]);for(let _0x1cf94a=_0x2cec50[_0x4518bf(0x29a)]-0x1;_0x1cf94a>=0x0;_0x1cf94a--){const _0x3edf93={'id':'doc.mutation.rich-text-editing','params':{..._0x2cec50[_0x1cf94a]}},_0x2aec5c={'id':_0x4518bf(0xe6),'params':{..._0x11827c[_0x1cf94a]}},_0x569e7c=this[_0x4518bf(0x1ba)]['transformMutation'](_0x38f482,_0x3edf93,!0x1),_0x5175a4=this[_0x4518bf(0x1ba)][_0x4518bf(0x280)](_0x4ceaa6,_0x2aec5c,!0x1);if(g['isTransformMutationFailure'](_0x569e7c))throw _0x569e7c[_0x4518bf(0x1aa)];if(g['isTransformMutationFailure'](_0x5175a4))throw _0x5175a4[_0x4518bf(0x1aa)];_0x1e8315['unshift'](_0x569e7c['m2Prime']['params']),_0x32a7b8[_0x4518bf(0x355)](_0x5175a4[_0x4518bf(0x2fa)][_0x4518bf(0x2b7)]),_0x38f482=_0x569e7c[_0x4518bf(0x286)],_0x4ceaa6=_0x5175a4['m1Prime'];}_0xe2b165[_0x4518bf(0x3a5)]({'undoCache':_0x1e8315,'redoCache':_0x32a7b8});}[_0x3c131d(0x383)](_0x2f5dbd){const _0x1c0296=_0x3c131d,{unitID:_0x20b11b}=_0x2f5dbd,_0x766ad3=this[_0x1c0296(0x262)][_0x1c0296(0x327)](_0x20b11b)[_0x1c0296(0x362)](T['DocIMEInputManagerService']),_0x200400=_0x766ad3[_0x1c0296(0x242)]();if(_0x200400==null)return;const _0x1919f0=[{'id':_0x1c0296(0xe6),'params':{'unitId':_0x2f5dbd['unitID'],'actions':null,'textRanges':[_0x200400]}}],_0x2d4c26=this['_transformService'][_0x1c0296(0x1d0)](_0x2f5dbd,_0x1919f0);if(!g[_0x1c0296(0x32d)](_0x2d4c26))throw _0x2d4c26['error'];const _0x6ccd44=_0x2d4c26[_0x1c0296(0x2fa)][0x0][_0x1c0296(0x2b7)]['textRanges'];Array['isArray'](_0x6ccd44)&&_0x6ccd44[_0x1c0296(0x29a)]&&_0x766ad3[_0x1c0296(0x2f7)](_0x6ccd44[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x3c131d(0x331)])],ee);var Vt=Object[_0x3c131d(0x196)],Gt=(_0xfbf486,_0x429a4c,_0x49ec36,_0x54cbfa)=>{const _0x59cbd7=_0x3c131d;for(var _0x498891=_0x54cbfa>0x1?void 0x0:_0x54cbfa?Vt(_0x429a4c,_0x49ec36):_0x429a4c,_0x5629c7=_0xfbf486[_0x59cbd7(0x29a)]-0x1,_0x34cf94;_0x5629c7>=0x0;_0x5629c7--)(_0x34cf94=_0xfbf486[_0x5629c7])&&(_0x498891=_0x34cf94(_0x498891)||_0x498891);return _0x498891;},Ie=(_0x1fec6e,_0x3a812f)=>(_0x4dd42b,_0x2e547c)=>_0x3a812f(_0x4dd42b,_0x2e547c,_0x1fec6e);let te=class{constructor(_0x5312bf,_0x2f64ef,_0x5f10b8){const _0x49b657=_0x3c131d;this[_0x49b657(0x2ef)]=_0x5312bf,this[_0x49b657(0x1ba)]=_0x2f64ef,this['_docStateChangeManagerService']=_0x5f10b8;}[_0x3c131d(0x121)](_0x373905){this['_transformHistoryAndStateStack'](_0x373905);}[_0x3c131d(0x34f)](_0x212bcf){const _0x4e52d3=_0x3c131d,{unitID:_0x1cca62}=_0x212bcf,{collaboration:_0x1e78ea}=this[_0x4e52d3(0x22d)][_0x4e52d3(0x350)](_0x1cca62);if(_0x1e78ea[_0x4e52d3(0x29a)]===0x0)return _0x212bcf;let _0xde2ee=a[_0x4e52d3(0x334)][_0x4e52d3(0x1a8)](_0x212bcf[_0x4e52d3(0x37d)][0x0]);for(let _0x3da859=0x0;_0x3da859<_0x1e78ea[_0x4e52d3(0x29a)];_0x3da859++){const _0x28e535={'id':_0x4e52d3(0xe6),'params':{'unitId':_0x1e78ea[_0x3da859]['unitId'],..._0x1e78ea[_0x3da859][_0x4e52d3(0x32f)]}},_0x3df281=this[_0x4e52d3(0x1ba)]['transformMutation'](_0xde2ee,_0x28e535,!0x1);if(g[_0x4e52d3(0x372)](_0x3df281))throw _0x3df281['error'];_0xde2ee=_0x3df281['m1Prime'];}return{...a[_0x4e52d3(0x334)][_0x4e52d3(0x1a8)](_0x212bcf),'mutations':[_0xde2ee]};}[_0x3c131d(0x320)](_0x1b09dd){const _0x31311b=_0x3c131d,{unitID:_0x49f977}=_0x1b09dd,{history:_0x18e3f3,collaboration:_0x527230}=this[_0x31311b(0x22d)][_0x31311b(0x350)](_0x49f977);if(_0x18e3f3['length']===0x0&&_0x527230[_0x31311b(0x29a)]===0x0)return;const _0x362f55=[],_0xe39026=[];let _0x507d6d=a[_0x31311b(0x334)][_0x31311b(0x1a8)](_0x1b09dd[_0x31311b(0x37d)][0x0]),_0x1362fe=a[_0x31311b(0x334)][_0x31311b(0x1a8)](_0x1b09dd['mutations'][0x0]);for(let _0x5c7f29=_0x18e3f3[_0x31311b(0x29a)]-0x1;_0x5c7f29>=0x0;_0x5c7f29--){const _0x37c6d3={'id':_0x31311b(0xe6),'params':{'unitId':_0x18e3f3[_0x5c7f29][_0x31311b(0x213)],..._0x18e3f3[_0x5c7f29][_0x31311b(0x1c0)]}},_0x212151={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x18e3f3[_0x5c7f29][_0x31311b(0x213)],..._0x18e3f3[_0x5c7f29][_0x31311b(0x32f)]}},_0x2d3b47=this[_0x31311b(0x1ba)][_0x31311b(0x280)](_0x507d6d,_0x37c6d3,!0x1),_0x3c83ee=this[_0x31311b(0x1ba)]['transformMutation'](_0x1362fe,_0x212151,!0x1);if(g[_0x31311b(0x372)](_0x2d3b47))throw _0x2d3b47[_0x31311b(0x1aa)];if(g[_0x31311b(0x372)](_0x3c83ee))throw _0x3c83ee[_0x31311b(0x1aa)];_0x362f55[_0x31311b(0x355)]({..._0x18e3f3[_0x5c7f29],'undoState':_0x2d3b47['m2Prime'][_0x31311b(0x2b7)],'redoState':_0x3c83ee['m2Prime'][_0x31311b(0x2b7)]}),_0x507d6d=_0x2d3b47[_0x31311b(0x286)],_0x1362fe=_0x3c83ee[_0x31311b(0x286)];}_0x507d6d=a[_0x31311b(0x334)][_0x31311b(0x1a8)](_0x1b09dd['mutations'][0x0]),_0x1362fe=a[_0x31311b(0x334)][_0x31311b(0x1a8)](_0x1b09dd[_0x31311b(0x37d)][0x0]);for(let _0x2d04b4=_0x527230[_0x31311b(0x29a)]-0x1;_0x2d04b4>=0x0;_0x2d04b4--){const _0x1a305c={'id':_0x31311b(0xe6),'params':{'unitId':_0x527230[_0x2d04b4]['unitId'],..._0x527230[_0x2d04b4][_0x31311b(0x1c0)]}},_0x2f4c82={'id':_0x31311b(0xe6),'params':{'unitId':_0x527230[_0x2d04b4]['unitId'],..._0x527230[_0x2d04b4][_0x31311b(0x32f)]}},_0xbc1d69=this[_0x31311b(0x1ba)][_0x31311b(0x280)](_0x507d6d,_0x1a305c,!0x1),_0x16b101=this['_transformService'][_0x31311b(0x280)](_0x1362fe,_0x2f4c82,!0x1);if(g[_0x31311b(0x372)](_0xbc1d69))throw _0xbc1d69[_0x31311b(0x1aa)];if(g[_0x31311b(0x372)](_0x16b101))throw _0x16b101['error'];_0xe39026[_0x31311b(0x355)]({..._0x527230[_0x2d04b4],'undoState':_0xbc1d69[_0x31311b(0x2fa)][_0x31311b(0x2b7)],'redoState':_0x16b101[_0x31311b(0x2fa)][_0x31311b(0x2b7)]}),_0x507d6d=_0xbc1d69['m1Prime'],_0x1362fe=_0x16b101[_0x31311b(0x286)];}this[_0x31311b(0x22d)][_0x31311b(0x375)](_0x49f977,{'history':_0x362f55,'collaboration':_0xe39026});}};te=Gt([Ie(0x0,a['Inject'](a[_0x3c131d(0x146)])),Ie(0x1,g[_0x3c131d(0x194)]),Ie(0x2,a[_0x3c131d(0x1fd)](T['DocStateChangeManagerService']))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x20bf08,_0x5cf36c,_0x2713da,_0x5651fd)=>{for(var _0x5f498b=_0x5651fd>0x1?void 0x0:_0x5651fd?Xt(_0x5cf36c,_0x2713da):_0x5cf36c,_0x21c7fc=_0x20bf08['length']-0x1,_0x404915;_0x21c7fc>=0x0;_0x21c7fc--)(_0x404915=_0x20bf08[_0x21c7fc])&&(_0x5f498b=_0x404915(_0x5f498b)||_0x5f498b);return _0x5f498b;},Pe=(_0x342666,_0x425593)=>(_0x26c8ba,_0x5dd6d8)=>_0x425593(_0x26c8ba,_0x5dd6d8,_0x342666);let se=class{constructor(_0x2104c3,_0x4b6847){const _0x4c90a4=_0x3c131d;this[_0x4c90a4(0x2ef)]=_0x2104c3,this['_transformService']=_0x4b6847;}[_0x3c131d(0x151)](_0x30f88c){const _0x9bede5=_0x3c131d;var _0x50c83c;const _0x5c5fa7=this[_0x9bede5(0x2ef)][_0x9bede5(0x20d)](V['DocSelectionManagerService']),_0x1fc916=(_0x50c83c=_0x5c5fa7[_0x9bede5(0x101)]())!=null?_0x50c83c:[];if(_0x1fc916[_0x9bede5(0x29a)]===0x0)return;const _0x3979df=_0x30f88c[_0x9bede5(0x2f4)],_0x44a32a=[{'id':_0x9bede5(0xe6),'params':{'unitId':_0x3979df,'actions':null,'textRanges':_0x1fc916}}],_0x5926e6=this[_0x9bede5(0x1ba)][_0x9bede5(0x1d0)](_0x30f88c,_0x44a32a);if(!g[_0x9bede5(0x32d)](_0x5926e6))throw _0x5926e6[_0x9bede5(0x1aa)];const _0x19461a=_0x5926e6[_0x9bede5(0x2fa)][0x0][_0x9bede5(0x2b7)]['textRanges'];Array[_0x9bede5(0x32a)](_0x19461a)&&_0x19461a[_0x9bede5(0x29a)]&&_0x5c5fa7[_0x9bede5(0x2aa)](_0x19461a,{'unitId':_0x3979df,'subUnitId':_0x3979df},!0x1);}};se=Kt([Pe(0x0,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),Pe(0x1,g[_0x3c131d(0x194)])],se);var qt=Object[_0x3c131d(0x196)],zt=(_0x48aea5,_0x17fcd8,_0x4dbaa1,_0xc09171)=>{const _0x3f4161=_0x3c131d;for(var _0x3dd97a=_0xc09171>0x1?void 0x0:_0xc09171?qt(_0x17fcd8,_0x4dbaa1):_0x17fcd8,_0x2b0d25=_0x48aea5[_0x3f4161(0x29a)]-0x1,_0x53fb6c;_0x2b0d25>=0x0;_0x2b0d25--)(_0x53fb6c=_0x48aea5[_0x2b0d25])&&(_0x3dd97a=_0x53fb6c(_0x3dd97a)||_0x3dd97a);return _0x3dd97a;},N=(_0x2ca793,_0x27dab9)=>(_0x1a0f13,_0x29fdbe)=>_0x27dab9(_0x1a0f13,_0x29fdbe,_0x2ca793);let ie=class extends a[_0x3c131d(0x296)]{constructor(_0xcde9e2,_0x466cb5,_0x1929e1,_0x55a613,_0xc1c624,_0x3a9c72,_0x159a71,_0x93843a){const _0x4c5957=_0x3c131d;super(),_(this,_0x4c5957(0x224),new I[(_0x4c5957(0x301))](u[_0x4c5957(0x30f)][_0x4c5957(0x2c1)])),(this['_docStateChangeManagerService']=_0xcde9e2,this['_collaborationController']=_0x466cb5,this['_docTransformIMECacheService']=_0x1929e1,this[_0x4c5957(0x23c)]=_0x55a613,this['_docTransformSelectionsService']=_0xc1c624,this[_0x4c5957(0x2dc)]=_0x3a9c72,this['_messageService']=_0x159a71,this['_localeService']=_0x93843a,this['_initEntityListener']());}[_0x3c131d(0x173)](){const _0x512cf4=_0x3c131d;this['disposeWithMe'](this[_0x512cf4(0x159)][_0x512cf4(0x2d0)][_0x512cf4(0x330)](_0x3d98a7=>{const _0x26a2b4=_0x512cf4,_0x5d1932=this[_0x26a2b4(0x22d)]['docStateChange$'][_0x26a2b4(0x330)](_0x197383=>{const _0x3ae62c=_0x26a2b4;if(_0x197383==null)return;const {unitId:_0x543f77,redoState:_0x5a1f3c,commandId:_0x25985a}=_0x197383;if(_0x543f77!==_0x3d98a7[_0x3ae62c(0x2f4)])return;const _0x17779b={'id':_0x25985a,'type':a[_0x3ae62c(0x29b)][_0x3ae62c(0xec)],'params':{'unitId':_0x543f77,'actions':_0x5a1f3c[_0x3ae62c(0x360)],'textRanges':null}};_0x3d98a7[_0x3ae62c(0x106)](_0x17779b);});if(_0x3d98a7[_0x26a2b4(0x3a7)](_0x5d1932),_0x3d98a7 instanceof u['DocCollaborationEntity']){const _0xe4251c={'onTransformIME':_0x83e51=>this[_0x26a2b4(0x2b1)][_0x26a2b4(0x208)](_0x83e51),'onTransformState':_0x1b505d=>this[_0x26a2b4(0x23c)][_0x26a2b4(0x121)](_0x1b505d),'onTransformSelections':_0x58ce3e=>this[_0x26a2b4(0x17e)][_0x26a2b4(0x151)](_0x58ce3e),'onSyncEditingCollabCursor':_0x32451f=>this[_0x26a2b4(0x2dc)][_0x26a2b4(0x376)](_0x32451f),'onTransformRemoteChangesetByIMECache':_0x105a16=>this[_0x26a2b4(0x2b1)][_0x26a2b4(0x34f)](_0x105a16),'onTransformRemoteChangesetByStateCache':_0x527467=>this['_docTransformStateCacheService'][_0x26a2b4(0x34f)](_0x527467)};_0x3d98a7[_0x26a2b4(0x2da)](_0xe4251c);}}));}};ie=zt([N(0x0,a[_0x3c131d(0x1fd)](T[_0x3c131d(0x386)])),N(0x1,a[_0x3c131d(0x1fd)](u[_0x3c131d(0x1be)])),N(0x2,a[_0x3c131d(0x1fd)](ee)),N(0x3,a[_0x3c131d(0x1fd)](te)),N(0x4,a[_0x3c131d(0x1fd)](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x3c131d(0x115)]),N(0x7,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x29e)]))],ie);var G=(_0x1b5cc9=>(_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x11c)]=0x0]=_0x3c131d(0x11c),_0x1b5cc9[_0x1b5cc9['OK']=0x1]='OK',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x23f)]=0x2]=_0x3c131d(0x23f),_0x1b5cc9[_0x1b5cc9['PERMISSION_DENIED']=0x3]=_0x3c131d(0x1e2),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x273)]=0x4]=_0x3c131d(0x273),_0x1b5cc9[_0x1b5cc9['UNAUTHENTICATED']=0x5]=_0x3c131d(0x342),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1b9)]=0x6]='ALREADY_EXISTS',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x2d9)]=0x7]='INVALID_ARGUMENT',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x2b2)]=0x8]=_0x3c131d(0x2b2),_0x1b5cc9[_0x1b5cc9['COMPLETION_FINISHED']=0x9]=_0x3c131d(0x226),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x3a9)]=0xa]=_0x3c131d(0x3a9),_0x1b5cc9[_0x1b5cc9['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x3c131d(0x1f9),_0x1b5cc9[_0x1b5cc9['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x3c131d(0x1f1),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x306)]=0xd]=_0x3c131d(0x306),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x157)]=0xe]=_0x3c131d(0x157),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x387)]=0xf]=_0x3c131d(0x387),_0x1b5cc9[_0x1b5cc9['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x3c131d(0x207),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1b5)]=0x64]=_0x3c131d(0x1b5),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x191)]=0x65]='ERROR_AGAIN',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x2a3)]=0xc9]='USER_NOT_FOUND',_0x1b5cc9[_0x1b5cc9['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0xf3)]=0x1389]=_0x3c131d(0xf3),_0x1b5cc9[_0x1b5cc9['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3c131d(0x1bf),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x222)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x265)]=0x1773]=_0x3c131d(0x265),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x302)]=0x1b59]=_0x3c131d(0x302),_0x1b5cc9[_0x1b5cc9['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x3c131d(0x20c),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x12b)]=0x1b5b]=_0x3c131d(0x12b),_0x1b5cc9[_0x1b5cc9['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3c131d(0x39e),_0x1b5cc9[_0x1b5cc9['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x393)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1bb)]=0x2329]=_0x3c131d(0x1bb),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x254)]=0x232a]=_0x3c131d(0x254),_0x1b5cc9[_0x1b5cc9['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3c131d(0x3a1),_0x1b5cc9[_0x1b5cc9['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3c131d(0x150),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x238)]=0x232d]=_0x3c131d(0x238),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x36c)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1fe)]=0x2712]=_0x3c131d(0x1fe),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x239)]=0x2713]=_0x3c131d(0x239),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1eb)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1b5cc9[_0x1b5cc9['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x3c131d(0x321),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x398)]=0x271b]=_0x3c131d(0x398),_0x1b5cc9[_0x1b5cc9['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x3c131d(0x2d1),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x26e)]=0x271d]=_0x3c131d(0x26e),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x124)]=0x271e]=_0x3c131d(0x124),_0x1b5cc9[_0x1b5cc9['YUUMI_AI_RUN_FAILED']=0x271f]=_0x3c131d(0x2f1),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x123)]=0x2720]=_0x3c131d(0x123),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x39c)]=0x2af9]=_0x3c131d(0x39c),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x325)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0xf5)]=0x2ee2]=_0x3c131d(0xf5),_0x1b5cc9[_0x1b5cc9['INVITE_CODE_REQUIRED']=0x2ee3]=_0x3c131d(0x382),_0x1b5cc9[_0x1b5cc9['USER_NOT_INVITED_CODE']=0x2ee4]=_0x3c131d(0x175),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x220)]=0x2ee5]=_0x3c131d(0x220),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x12d)]=0x32c9]=_0x3c131d(0x12d),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x17c)]=0x32ca]=_0x3c131d(0x17c),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x316)]=0x32cb]=_0x3c131d(0x316),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x10a)]=0x36b1]=_0x3c131d(0x10a),_0x1b5cc9[_0x1b5cc9['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1ce)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x1b5cc9[_0x1b5cc9['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x3c131d(0xe2),_0x1b5cc9[_0x1b5cc9['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x3c131d(0x142),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x353)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x18a)]=0x36b7]=_0x3c131d(0x18a),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x138)]=0x36b8]=_0x3c131d(0x138),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x324)]=0x3715]=_0x3c131d(0x324),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1a1)]=0x3716]=_0x3c131d(0x1a1),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1cb)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x20f)]=0x37dd]=_0x3c131d(0x20f),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x13e)]=0x3a99]=_0x3c131d(0x13e),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x18c)]=0x3a9a]=_0x3c131d(0x18c),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x11e)]=0x3a9b]=_0x3c131d(0x11e),_0x1b5cc9[_0x1b5cc9['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x3c131d(0x2ae),_0x1b5cc9[_0x1b5cc9['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x2a9)]=0x3a9e]=_0x3c131d(0x2a9),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x36b)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x135)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x31c)]=-0x1]=_0x3c131d(0x31c),_0x1b5cc9))(G||{});function Jt(_0x56f931){const _0x25a20e=_0x3c131d;var _0x591cb7,_0xd1f071;const _0x5b6918=(_0x591cb7=_0x56f931[_0x25a20e(0x17d)])==null?void 0x0:_0x591cb7[_0x25a20e(0x2d6)],_0x13ba3a=((_0xd1f071=_0x56f931[_0x25a20e(0x17d)])==null?void 0x0:_0xd1f071[_0x25a20e(0x154)])||0x0;return _0x5b6918===B['FormulaExecuteStageType'][_0x25a20e(0x215)]&&_0x13ba3a>0x0;}function Zt(_0x213d3b){return _0x213d3b['functionsExecutedState']===B['FormulaExecutedStateType']['SUCCESS'];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x360bc3,_0x463000,_0x35ac52,_0x251f48)=>{const _0x53d852=_0x3c131d;for(var _0x145a9f=_0x251f48>0x1?void 0x0:_0x251f48?Qt(_0x463000,_0x35ac52):_0x463000,_0x1631a8=_0x360bc3[_0x53d852(0x29a)]-0x1,_0x56f503;_0x1631a8>=0x0;_0x1631a8--)(_0x56f503=_0x360bc3[_0x1631a8])&&(_0x145a9f=_0x56f503(_0x145a9f)||_0x145a9f);return _0x145a9f;},L=(_0x7f098e,_0x240e19)=>(_0x4178be,_0x3f4ee8)=>_0x240e19(_0x4178be,_0x3f4ee8,_0x7f098e);const ts=_0x3c131d(0x2a0),ss=_0x3c131d(0x371),is=_0x3c131d(0x2be);let ne=class extends a[_0x3c131d(0x296)]{constructor(_0x537c31,_0x165036,_0x5f1e9c,_0x525bce,_0x37b0ff,_0x35f8c7,_0x36ce7c){const _0x38e654=_0x3c131d;super(),_(this,_0x38e654(0x1ae),null),_(this,_0x38e654(0x13a),0x0),_(this,_0x38e654(0x357),0x0),_(this,'_taskIds',[]),_(this,_0x38e654(0x12f),0x0),(this[_0x38e654(0x109)]=_0x537c31,this[_0x38e654(0x25e)]=_0x165036,this[_0x38e654(0x100)]=_0x5f1e9c,this['_httpService']=_0x525bce,this[_0x38e654(0x24c)]=_0x37b0ff,this[_0x38e654(0x25a)]=_0x35f8c7,this[_0x38e654(0x272)]=_0x36ce7c,this['_initCommandInterceptor']());}[_0x3c131d(0x147)](){const _0x386b7a=_0x3c131d;this['disposeWithMe'](this[_0x386b7a(0x25e)][_0x386b7a(0x290)]((_0x958dd3,_0x23101d)=>{const _0xae5858=_0x386b7a;var _0x2fa407;if(_0x958dd3['id']!==B[_0xae5858(0x2c2)]['id'])return;const _0x217127=_0x958dd3[_0xae5858(0x2b7)];if(!this[_0xae5858(0x365)]((_0x2fa407=_0x217127[_0xae5858(0x1b3)])!=null?_0x2fa407:[]))return;if(!this[_0xae5858(0x171)]())throw this[_0xae5858(0x361)](_0x958dd3,_0x23101d),this[_0xae5858(0x1c2)](),new a[(_0xae5858(0x1d5))]();})),this[_0x386b7a(0x3a7)](this[_0x386b7a(0x25e)][_0x386b7a(0x338)]((_0xfa1df1,_0x40e7c5)=>{const _0x3e9903=_0x386b7a;if(_0xfa1df1['id']!==B[_0x3e9903(0x114)]['id'])return;const _0x515d6c=_0xfa1df1[_0x3e9903(0x2b7)];if(Jt(_0x515d6c)){const _0x43d253=a[_0x3e9903(0x2e4)]();this[_0x3e9903(0x14a)][_0x3e9903(0x2ad)](_0x43d253),this['_startCalculationLimit'](_0x43d253);}else{if(Zt(_0x515d6c)&&this[_0x3e9903(0x14a)][_0x3e9903(0x29a)]>0x0){const _0x38d182=this['_taskIds']['shift']();this[_0x3e9903(0x1f5)](_0x38d182);}}}));}[_0x3c131d(0x2fc)](){const _0x592d3e=_0x3c131d;super[_0x592d3e(0x2fc)](),this['_clearPolling'](),this[_0x592d3e(0x14a)]=[],this[_0x592d3e(0x357)]=0x0,this[_0x592d3e(0x13a)]=0x0,this[_0x592d3e(0x12f)]=0x0;}async[_0x3c131d(0x361)](_0x2f7e32,_0x2d7bd4){const _0x432898=_0x3c131d;for(let _0xc3efcd=0x0;_0xc3efcd<0x1e;_0xc3efcd++)try{if(await this[_0x432898(0x33e)](),this[_0x432898(0x171)]()){this[_0x432898(0x34a)](_0x2f7e32,_0x2d7bd4),this['_messageService'][_0x432898(0x1ff)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':p[_0x432898(0x1da)][_0x432898(0x2c7)]});return;}await new Promise(_0x385c23=>{const _0x2f9eb4=_0x432898;this[_0x2f9eb4(0x1ae)]=window[_0x2f9eb4(0x167)](_0x385c23,0x3e8);});}catch(_0x1e376f){this[_0x432898(0x25a)][_0x432898(0x1aa)](_0x1e376f);}this[_0x432898(0x109)][_0x432898(0x1ff)]({'content':this[_0x432898(0x272)]['t'](_0x432898(0x104)),'type':p[_0x432898(0x1da)][_0x432898(0x2c4)]});}[_0x3c131d(0x34a)](_0x3218c8,_0x1589a1){const _0x83bef=_0x3c131d;try{this['_commandService'][_0x83bef(0x1c9)](_0x3218c8['id'],_0x3218c8[_0x83bef(0x2b7)],_0x1589a1);}catch(_0x4e2fa4){this['_logService']['error'](_0x4e2fa4);}}[_0x3c131d(0x2d3)](_0x2610c0,_0x2040a4){const _0x3391bc=_0x3c131d;_0x2040a4<this[_0x3391bc(0x12f)]||(this['_lastResponseTimestamp']=_0x2040a4,this[_0x3391bc(0x13a)]=Number['parseInt'](_0x2610c0[_0x3391bc(0x293)]),this['_currentUsage']=Number[_0x3391bc(0x379)](_0x2610c0['currentUsage']));}async[_0x3c131d(0x349)](_0x4b8c72){const _0x3020cf=_0x3c131d;var _0x4d0213,_0x3cbe22;const _0x4c278b=Date['now']();try{const _0x3d8914=((_0x4d0213=this[_0x3020cf(0x100)][_0x3020cf(0x39a)](u[_0x3020cf(0x1f4)]))==null?void 0x0:_0x4d0213[_0x3020cf(0x27c)])||ss,_0x101523=(await this[_0x3020cf(0x29c)][_0x3020cf(0x229)](_0x3d8914,{'body':JSON[_0x3020cf(0x2a4)]({'taskId':_0x4b8c72})}))[_0x3020cf(0x1b1)];if(((_0x3cbe22=_0x101523[_0x3020cf(0x1aa)])==null?void 0x0:_0x3cbe22[_0x3020cf(0x2c0)])!==G['OK'])return;this[_0x3020cf(0x2d3)](_0x101523[_0x3020cf(0x218)],_0x4c278b);}catch(_0x1963b1){this[_0x3020cf(0x25a)]['error'](_0x1963b1);}}async[_0x3c131d(0x33e)](_0x12f9f4){const _0x3388a4=_0x3c131d;var _0x3407a6,_0x1d516e;const _0x55d4d5=Date['now']();try{const _0x5df69e=((_0x3407a6=this[_0x3388a4(0x100)][_0x3388a4(0x39a)](u[_0x3388a4(0x1f4)]))==null?void 0x0:_0x3407a6['getformulaLimitStatusUrl'])||ts,_0x598a33=_0x12f9f4?_0x5df69e+'?taskId='+encodeURIComponent(_0x12f9f4):_0x5df69e,_0x53fcca=(await this[_0x3388a4(0x29c)][_0x3388a4(0x20d)](_0x598a33))[_0x3388a4(0x1b1)];if(((_0x1d516e=_0x53fcca[_0x3388a4(0x1aa)])==null?void 0x0:_0x1d516e['code'])!==G['OK'])return;this[_0x3388a4(0x2d3)](_0x53fcca[_0x3388a4(0x218)],_0x55d4d5);}catch(_0x1e128c){this['_logService'][_0x3388a4(0x1aa)](_0x1e128c);}}async['_releaseCalculationLimit'](_0x500116){const _0x15fb37=_0x3c131d;var _0x397982,_0x22f7d5;const _0xfa70d1=Date[_0x15fb37(0xef)]();try{const _0x1cd1f6=((_0x397982=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x397982[_0x15fb37(0x162)])||is,_0x4b4689=(await this[_0x15fb37(0x29c)][_0x15fb37(0x229)](_0x1cd1f6,{'body':JSON[_0x15fb37(0x2a4)]({'taskId':_0x500116})}))[_0x15fb37(0x1b1)];if(((_0x22f7d5=_0x4b4689[_0x15fb37(0x1aa)])==null?void 0x0:_0x22f7d5[_0x15fb37(0x2c0)])!==G['OK'])return;this[_0x15fb37(0x2d3)](_0x4b4689[_0x15fb37(0x218)],_0xfa70d1);}catch(_0x4b7fab){this[_0x15fb37(0x25a)][_0x15fb37(0x1aa)](_0x4b7fab);}}[_0x3c131d(0x171)](){const _0x3f650b=_0x3c131d;return this[_0x3f650b(0x13a)]===0x0?!0x0:this[_0x3f650b(0x13a)]-this[_0x3f650b(0x357)]>0x0;}[_0x3c131d(0x24e)](){const _0x2564b0=_0x3c131d;this[_0x2564b0(0x1ae)]&&(clearTimeout(this[_0x2564b0(0x1ae)]),this[_0x2564b0(0x1ae)]=null);}[_0x3c131d(0x1c2)](){const _0x1f6629=_0x3c131d;this['_messageService']['show']({'content':this[_0x1f6629(0x272)]['t'](_0x1f6629(0x184)),'type':p[_0x1f6629(0x1da)][_0x1f6629(0x180)]});}[_0x3c131d(0x365)](_0x56a01b){const _0x40c067=_0x3c131d;for(const _0xb20061 of _0x56a01b){const {unitId:_0x1b4dba,sheetId:_0x1c4091,range:_0x7512}=_0xb20061,_0x12340d=this['_univerInstanceService']['getUnit'](_0x1b4dba);if(!_0x12340d)continue;const _0x44e566=_0x12340d[_0x40c067(0x277)](_0x1c4091);if(!_0x44e566)continue;const _0x13d7b9=_0x44e566[_0x40c067(0xee)]();for(let _0x4c92c2=_0x7512[_0x40c067(0x1ad)];_0x4c92c2<=_0x7512[_0x40c067(0x1c8)];_0x4c92c2++)for(let _0x2f5a64=_0x7512[_0x40c067(0x177)];_0x2f5a64<=_0x7512[_0x40c067(0x136)];_0x2f5a64++){const _0x2ba9c1=_0x13d7b9[_0x40c067(0x1f6)](_0x4c92c2,_0x2f5a64);if(_0x2ba9c1&&(a[_0x40c067(0x117)](_0x2ba9c1['f'])||a[_0x40c067(0x160)](_0x2ba9c1['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x3c131d(0x1fd)](O['IMessageService'])),L(0x1,a['ICommandService']),L(0x2,a[_0x3c131d(0x322)]),L(0x3,a[_0x3c131d(0x1fd)](x[_0x3c131d(0x37e)])),L(0x4,a[_0x3c131d(0x28c)]),L(0x5,a['ILogService']),L(0x6,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x29e)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x5067d5,_0x520830,_0xb90c00,_0x454189)=>{const _0x3ed299=_0x3c131d;for(var _0x290671=_0x454189>0x1?void 0x0:_0x454189?ns(_0x520830,_0xb90c00):_0x520830,_0x1b4c0e=_0x5067d5[_0x3ed299(0x29a)]-0x1,_0x2c2c56;_0x1b4c0e>=0x0;_0x1b4c0e--)(_0x2c2c56=_0x5067d5[_0x1b4c0e])&&(_0x290671=_0x2c2c56(_0x290671)||_0x290671);return _0x290671;},Se=(_0x397870,_0x9bcb96)=>(_0x5cd9de,_0x1651e8)=>_0x9bcb96(_0x5cd9de,_0x1651e8,_0x397870);let Te=class extends a['Disposable']{constructor(_0x385bd1,_0x425fd9,_0x3dada0){const _0x4cb313=_0x3c131d;super(),_(this,_0x4cb313(0x19f),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x385bd1,this[_0x4cb313(0x2cd)]=_0x425fd9,this[_0x4cb313(0xfb)]=_0x3dada0);}['disableLocalCache'](){const _0x10d5f6=_0x3c131d;this[_0x10d5f6(0x1b2)]=!0x0;}['enableLocalCache'](){const _0x432069=_0x3c131d;this[_0x432069(0x1b2)]=!0x1;}get[_0x3c131d(0x3a2)](){return this['_saveTaskMap'];}[_0x3c131d(0x2fc)](){const _0x5a6044=_0x3c131d;this['exhaustSavingTask']()[_0x5a6044(0x2f2)](()=>super[_0x5a6044(0x2fc)]());}async[_0x3c131d(0x1ef)](_0xe4a96c){const _0x3cfa2a=_0x3c131d;return this['_disabled']?null:this['_localStorageService'][_0x3cfa2a(0x112)](u[_0x3cfa2a(0x347)](_0xe4a96c));}async[_0x3c131d(0x134)](_0x558d60,_0x2c3620){const _0xc73c80=_0x3c131d;return!!this[_0xc73c80(0x2cd)][_0xc73c80(0x37b)](_0x558d60,_0x2c3620);}[_0x3c131d(0x34e)](_0x160b59,_0x251337,_0x293f3c,_0x29168f){const _0x349e58=_0x3c131d,_0x543859=this[_0x349e58(0xfb)]['getCurrentRevOfUnit'](_0x160b59);this[_0x349e58(0x19f)][_0x349e58(0x1dc)](_0x160b59,{'unitID':_0x160b59,'type':_0x251337,'awaitingChangeset':_0x293f3c,'mutations':_0x29168f,'rev':_0x543859}),this['_saveTaskMap'][_0x349e58(0x25f)](_0x160b59)||this['_scheduleSaving'](_0x160b59);}[_0x3c131d(0x38a)](_0x4461d9){const _0x320c5d=_0x3c131d,_0x1c466d=this[_0x320c5d(0x1b6)]();_0x1c466d===0x0?this[_0x320c5d(0x168)](_0x4461d9):this[_0x320c5d(0x22c)][_0x320c5d(0x1dc)](_0x4461d9,setTimeout(()=>this[_0x320c5d(0x168)](_0x4461d9),_0x1c466d));}[_0x3c131d(0x1b6)](){const _0xf396df=_0x3c131d;var _0x59f9f8;return(_0x59f9f8=this[_0xf396df(0x100)]['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x59f9f8:u[_0xf396df(0xeb)];}[_0x3c131d(0x168)](_0x5494d8){const _0xee9f5c=_0x3c131d,_0x287a2b=this[_0xee9f5c(0x22c)][_0xee9f5c(0x20d)](_0x5494d8);return _0x287a2b!==void 0x0&&window[_0xee9f5c(0x39b)](_0x287a2b),this['_localStorageService'][_0xee9f5c(0x37b)](u['getLocalCacheKey'](_0x5494d8),this[_0xee9f5c(0x19f)]['get'](_0x5494d8))[_0xee9f5c(0x2f2)](()=>this[_0xee9f5c(0x22c)][_0xee9f5c(0x2ea)](_0x5494d8));}async[_0x3c131d(0x38f)](){const _0x516549=_0x3c131d,_0x1984c9=[];this['_saveTaskMap'][_0x516549(0x1df)]((_0x3caa13,_0x2e5701)=>{const _0x3bf906=_0x516549;window[_0x3bf906(0x39b)](_0x3caa13),_0x1984c9[_0x3bf906(0x2ad)](this[_0x3bf906(0x168)](_0x2e5701)['then'](()=>{const _0x2f22dc=_0x3bf906;this['_saveTaskMap'][_0x2f22dc(0x2ea)](_0x2e5701);}));}),await Promise[_0x516549(0x1f2)](_0x1984c9);}};Te=rs([Se(0x0,a[_0x3c131d(0x322)]),Se(0x1,a[_0x3c131d(0x32e)]),Se(0x2,a[_0x3c131d(0x1fd)](g[_0x3c131d(0x217)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x5e5526=_0x3c131d;super(),_(this,_0x5e5526(0x289)),this['urlChange$']=I[_0x5e5526(0x19a)](window,_0x5e5526(0x1ea))[_0x5e5526(0x14f)](I['takeUntil'](this['dispose$']),I[_0x5e5526(0x288)](0x1),I[_0x5e5526(0x131)](void 0x0));}[_0x3c131d(0x313)](_0x3675ca,_0x52e068,_0x23d4e5=!0x1){const _0x25ca63=_0x3c131d,_0x227fee=new URL(window[_0x25ca63(0x197)][_0x25ca63(0x172)]);_0x227fee['searchParams'][_0x25ca63(0x1dc)](_0x3675ca,_0x52e068),_0x23d4e5?window[_0x25ca63(0x240)][_0x25ca63(0x15e)]('','',_0x227fee[_0x25ca63(0x2fd)]()):window[_0x25ca63(0x240)][_0x25ca63(0x1e4)]('','',_0x227fee[_0x25ca63(0x2fd)]());}['removeParam'](_0x507dc4,_0x139fbe=!0x1){const _0x26ac0c=_0x3c131d,_0x23a2a2=new URL(window[_0x26ac0c(0x197)][_0x26ac0c(0x172)]);_0x23a2a2[_0x26ac0c(0x285)]['delete'](_0x507dc4),_0x139fbe?window[_0x26ac0c(0x240)][_0x26ac0c(0x15e)]('','',_0x23a2a2[_0x26ac0c(0x2fd)]()):window['history'][_0x26ac0c(0x1e4)]('','',_0x23a2a2[_0x26ac0c(0x2fd)]());}[_0x3c131d(0x102)](_0x53e693){const _0xe919b9=_0x3c131d;var _0x4b3d5f;return(_0x4b3d5f=new URL(window[_0xe919b9(0x197)][_0xe919b9(0x172)])[_0xe919b9(0x285)][_0xe919b9(0x20d)](_0x53e693))!=null?_0x4b3d5f:void 0x0;}}var os=Object[_0x3c131d(0x287)],as=Object[_0x3c131d(0x196)],cs=(_0x3635bc,_0x4774bc,_0x4299d6)=>_0x4774bc in _0x3635bc?os(_0x3635bc,_0x4774bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4299d6}):_0x3635bc[_0x4774bc]=_0x4299d6,ls=(_0x37fd0e,_0x85fc93,_0x3bb5de,_0x524444)=>{for(var _0x38debd=_0x524444>0x1?void 0x0:_0x524444?as(_0x85fc93,_0x3bb5de):_0x85fc93,_0x16d3df=_0x37fd0e['length']-0x1,_0x452b1f;_0x16d3df>=0x0;_0x16d3df--)(_0x452b1f=_0x37fd0e[_0x16d3df])&&(_0x38debd=_0x452b1f(_0x38debd)||_0x38debd);return _0x38debd;},de=(_0x537057,_0x3e5bc1)=>(_0x4888b1,_0x46cb08)=>_0x3e5bc1(_0x4888b1,_0x46cb08,_0x537057),_s=(_0x9c3707,_0x153804,_0x4b7f00)=>cs(_0x9c3707,_0x153804+'',_0x4b7f00);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x3c131d(0x181)]=class extends a[_0x3c131d(0x279)]{constructor(_0x3c1789=Me,_0x387a39,_0x571246,_0x3a926c){const _0x3c729f=_0x3c131d;super(),this[_0x3c729f(0x284)]=_0x3c1789,this['_renderManagerService']=_0x387a39,this[_0x3c729f(0x2ef)]=_0x571246,this[_0x3c729f(0x100)]=_0x3a926c;const {..._0x4f43e2}=a[_0x3c729f(0x345)]({},Me,this[_0x3c729f(0x284)]);this[_0x3c729f(0x100)][_0x3c729f(0x144)](Yt,_0x4f43e2);}[_0x3c131d(0x27b)](){const _0x4a42d3=_0x3c131d;this[_0x4a42d3(0x2b3)](),this[_0x4a42d3(0x22a)]();}[_0x3c131d(0x367)](){const _0x23fbb1=_0x3c131d;this[_0x23fbb1(0xf8)]();}['_registerDependencies'](){const _0x26170d=_0x3c131d;var _0x56c80f;const _0x49b1bf=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x26170d(0x14d)],{'useClass':x['WebSocketService']}],[u[_0x26170d(0x2e2)],{'useClass':Te}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x26170d(0x263)]]];this[_0x26170d(0x284)][_0x26170d(0x291)]&&_0x49b1bf[_0x26170d(0x2ad)]([Q]),a[_0x26170d(0x189)](this[_0x26170d(0x2ef)],a[_0x26170d(0x1d1)](_0x49b1bf,(_0x56c80f=this[_0x26170d(0x284)])==null?void 0x0:_0x56c80f[_0x26170d(0x18e)]));}[_0x3c131d(0xf8)](){const _0x1efcd8=_0x3c131d;this[_0x1efcd8(0x3a7)](this[_0x1efcd8(0x262)][_0x1efcd8(0x33f)](a['UniverInstanceType'][_0x1efcd8(0x1fb)],[Ee])),this['disposeWithMe'](this[_0x1efcd8(0x262)][_0x1efcd8(0x33f)](a['UniverInstanceType']['UNIVER_SHEET'],[Ce]));}['_initDependencies'](){const _0x254ac7=_0x3c131d;a[_0x254ac7(0x10d)](this[_0x254ac7(0x2ef)],[[F],[exports[_0x254ac7(0xe5)]],[ie],[Z],[exports[_0x254ac7(0x263)]],[ne]]),this[_0x254ac7(0x284)]['enableFrontendLog']&&a['touchDependencies'](this[_0x254ac7(0x2ef)],[[Q]]);}},_s(exports[_0x3c131d(0x181)],_0x3c131d(0x195),hs),exports[_0x3c131d(0x181)]=ls([a[_0x3c131d(0x2a1)](u[_0x3c131d(0xe8)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),de(0x3,a[_0x3c131d(0x322)])],exports[_0x3c131d(0x181)]);var us=Object[_0x3c131d(0x196)],Is=(_0x4144e6,_0x1ccedc,_0x20aea1,_0x42fd4a)=>{const _0x4b83b5=_0x3c131d;for(var _0x7c6a6e=_0x42fd4a>0x1?void 0x0:_0x42fd4a?us(_0x1ccedc,_0x20aea1):_0x1ccedc,_0x411b98=_0x4144e6[_0x4b83b5(0x29a)]-0x1,_0x3a2b01;_0x411b98>=0x0;_0x411b98--)(_0x3a2b01=_0x4144e6[_0x411b98])&&(_0x7c6a6e=_0x3a2b01(_0x7c6a6e)||_0x7c6a6e);return _0x7c6a6e;},W=(_0x4f84f9,_0xa2b54)=>(_0x258ae3,_0x5ddb11)=>_0xa2b54(_0x258ae3,_0x5ddb11,_0x4f84f9);exports[_0x3c131d(0x1b4)]=class extends u[_0x3c131d(0x25b)]{constructor(_0x43a9d0,_0x275aa7,_0x2ebbaa,_0x2ec1f2,_0x3bf3b7){super(_0x43a9d0,_0x275aa7,_0x2ebbaa,_0x2ec1f2,_0x3bf3b7);}async[_0x3c131d(0x2c3)](_0x27d6ba){const _0x54e7b6=_0x3c131d,_0x2a0c44=await this[_0x54e7b6(0x219)](),_0x1c790f=this[_0x54e7b6(0x1cc)](_0x27d6ba,_0x2a0c44);return this[_0x54e7b6(0x2bb)](_0x1c790f);}[_0x3c131d(0x1cc)](_0x51b9ea,_0x3cfd68){const _0x35a10a=_0x3c131d,_0x53b4da=typeof window>'u'?new URL(_0x51b9ea):new URL(_0x51b9ea,window['location'][_0x35a10a(0x381)]);_0x53b4da['searchParams'][_0x35a10a(0x1dc)]('sessionTicket',_0x3cfd68);const _0x583ad9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x35a10a(0x197)][_0x35a10a(0x1c4)]);return _0x583ad9[_0x35a10a(0x20d)]('runId')&&_0x53b4da[_0x35a10a(0x285)]['set'](_0x35a10a(0x399),_0x583ad9[_0x35a10a(0x20d)]('runId')),_0x53b4da[_0x35a10a(0x2fd)]();}async['_getSessionTicket'](){const _0xffd887=_0x3c131d;var _0x4f1e88,_0x11ad28,_0x38d948;const _0x199f78=this[_0xffd887(0x100)][_0xffd887(0x39a)](u[_0xffd887(0x1f4)]),_0x5bd68e=(_0x4f1e88=_0x199f78==null?void 0x0:_0x199f78[_0xffd887(0x2eb)])!=null?_0x4f1e88:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x38d948=(_0x11ad28=(await this[_0xffd887(0x29c)][_0xffd887(0x20d)](_0x5bd68e,{'headers':{'Content-Type':_0xffd887(0x227)}}))[_0xffd887(0x1b1)])==null?void 0x0:_0x11ad28['ticket'])!=null?_0x38d948:'';}},exports[_0x3c131d(0x1b4)]=Is([W(0x0,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),W(0x1,a[_0x3c131d(0x1fd)](x[_0x3c131d(0x37e)])),W(0x2,a[_0x3c131d(0x322)]),W(0x3,a[_0x3c131d(0x2b4)]),W(0x4,g[_0x3c131d(0x27d)])],exports[_0x3c131d(0x1b4)]);var Ss=Object[_0x3c131d(0x196)],ds=(_0x594cd9,_0x4de0fe,_0x5dacd3,_0x280e8d)=>{const _0x3870fe=_0x3c131d;for(var _0x2ed2e2=_0x280e8d>0x1?void 0x0:_0x280e8d?Ss(_0x4de0fe,_0x5dacd3):_0x4de0fe,_0x2fd36a=_0x594cd9[_0x3870fe(0x29a)]-0x1,_0x3ab0bc;_0x2fd36a>=0x0;_0x2fd36a--)(_0x3ab0bc=_0x594cd9[_0x2fd36a])&&(_0x2ed2e2=_0x3ab0bc(_0x2ed2e2)||_0x2ed2e2);return _0x2ed2e2;},fe=(_0x20ca76,_0x5a1019)=>(_0x4f6ddd,_0x21d666)=>_0x5a1019(_0x4f6ddd,_0x21d666,_0x20ca76);exports[_0x3c131d(0x1bc)]=class extends a[_0x3c131d(0x296)]{constructor(_0xf6c248,_0x1df57f,_0x373a66){const _0x34ebbf=_0x3c131d;super(),this[_0x34ebbf(0x113)]=_0xf6c248,this[_0x34ebbf(0x29c)]=_0x1df57f,this[_0x34ebbf(0x100)]=_0x373a66;}async['runOnServer'](_0x419946,_0xb382b4,_0x32475c,..._0x3caee2){const _0x23c4bf=_0x3c131d;var _0x427106,_0x52bb0d,_0x1e0adc,_0x1033d3;const _0x3f852c=this[_0x23c4bf(0x113)][_0x23c4bf(0x15c)]();if(!_0x3f852c)throw new Error(_0x23c4bf(0x368));const _0x6182fa=((_0x427106=this[_0x23c4bf(0x100)][_0x23c4bf(0x39a)](u[_0x23c4bf(0x266)]))!=null?_0x427106:u[_0x23c4bf(0x255)])+'/'+_0x419946+_0x23c4bf(0x119)+_0xb382b4,_0x2b4432=new URL(window[_0x23c4bf(0x197)]['href']),_0x51681b={'scriptId':_0x419946,'runId':(_0x52bb0d=_0x2b4432[_0x23c4bf(0x285)][_0x23c4bf(0x20d)](_0x23c4bf(0x399)))!=null?_0x52bb0d:'','function':_0xb382b4,'unitId':_0x3f852c[_0x23c4bf(0x247)](),'argsOfFunction':JSON['stringify'](_0x3caee2),'invokeId':(_0x1e0adc=_0x32475c[_0x23c4bf(0x392)])!=null?_0x1e0adc:'','executionId':(_0x1033d3=_0x32475c['executionId'])!=null?_0x1033d3:''};try{const _0x39aff3=await this[_0x23c4bf(0x29c)][_0x23c4bf(0x229)](_0x6182fa,{'body':_0x51681b});return _0x39aff3[_0x23c4bf(0x1b1)][_0x23c4bf(0x1aa)]&&_0x39aff3[_0x23c4bf(0x1b1)][_0x23c4bf(0x1aa)][_0x23c4bf(0x2c0)]!==G['OK']?_0x23c4bf(0x19e):_0x39aff3[_0x23c4bf(0x1b1)][_0x23c4bf(0x1a6)];}catch{return _0x23c4bf(0x19e);}}},exports[_0x3c131d(0x1bc)]=ds([fe(0x0,a['IUniverInstanceService']),fe(0x1,a[_0x3c131d(0x1fd)](x['HTTPService'])),fe(0x2,a['IConfigService'])],exports[_0x3c131d(0x1bc)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x3c131d(0x296)]{constructor(){const _0x1eae6b=_0x3c131d;super(),_(this,_0x1eae6b(0x3a8),a[_0x1eae6b(0x2e4)]()),_(this,_0x1eae6b(0x274),new Set()),_(this,_0x1eae6b(0x246),new Map()),_(this,_0x1eae6b(0x15b),null),_(this,_0x1eae6b(0x2db),new Map()),_(this,'_unitStatus',new Map()),this[_0x1eae6b(0x11a)]();}[_0x3c131d(0x2fc)](){const _0xa38845=_0x3c131d;super[_0xa38845(0x2fc)](),this[_0xa38845(0x2db)][_0xa38845(0x1df)]((_0x2a16af,_0x2ed890)=>this[_0xa38845(0x211)](_0x2ed890)),this[_0xa38845(0x15b)]&&window[_0xa38845(0x363)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x3c798a){const _0x5c935c=_0x3c131d;return this['_ensureSubject'](_0x3c798a)[_0x5c935c(0x14f)](I[_0x5c935c(0x30c)]());}[_0x3c131d(0x193)](_0x54797d){const _0x46b969=_0x3c131d;this['_selfUnitIDs'][_0x46b969(0xf9)]===0x0&&this[_0x46b969(0x394)](),this[_0x46b969(0x274)][_0x46b969(0x1fc)](_0x54797d),this[_0x46b969(0x17b)]({'type':0x0,'memberID':this[_0x46b969(0x3a8)],'unitIDs':[_0x54797d],'isForwarded':!0x1});}[_0x3c131d(0x2a2)](_0x1746f3){const _0x5e8383=_0x3c131d;this[_0x5e8383(0x274)][_0x5e8383(0x2ea)](_0x1746f3),this['_selfUnitIDs'][_0x5e8383(0xf9)]===0x0&&this[_0x5e8383(0x15b)]&&window[_0x5e8383(0x363)](this['_heartbeatTimer']);}[_0x3c131d(0x11a)](){const _0x525d69=_0x3c131d;this[_0x525d69(0x3a7)](a[_0x525d69(0xf4)](I['fromEvent'](window,_0x525d69(0xf2))['subscribe'](_0x440da1=>{const _0x169afc=_0x525d69;if(_0x440da1[_0x169afc(0x26f)]!==ye||!_0x440da1[_0x169afc(0x2b0)])return;const _0x5c7770=JSON[_0x169afc(0x237)](_0x440da1[_0x169afc(0x2b0)]);this[_0x169afc(0x1d3)](_0x5c7770);}))),window['addEventListener'](_0x525d69(0x2ee),()=>this[_0x525d69(0x17b)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x525d69(0x292)](this[_0x525d69(0x274)])}));}[_0x3c131d(0x1d3)](_0x4e1b9c){const _0x25dee7=_0x3c131d;switch(_0x4e1b9c[_0x25dee7(0x24d)]){case 0x0:this['_handleJoinEvent'](_0x4e1b9c);break;case 0x1:this[_0x25dee7(0x2ce)](_0x4e1b9c);break;case 0x2:this[_0x25dee7(0x396)](_0x4e1b9c);break;}}[_0x3c131d(0x1e5)](_0x294f06){const _0x39c96f=_0x3c131d,{unitIDs:_0x42c46c,memberID:_0x907a05,isForwarded:_0x176a22}=_0x294f06;_0x42c46c[_0x39c96f(0x1df)](_0x5346e0=>{const _0x1cd2ac=_0x39c96f;if(!_0x176a22&&this[_0x1cd2ac(0x246)]['has'](_0x5346e0)&&this[_0x1cd2ac(0x1d8)](_0x5346e0)['next'](u[_0x1cd2ac(0x186)][_0x1cd2ac(0x26d)]),!this[_0x1cd2ac(0x246)][_0x1cd2ac(0x25f)](_0x5346e0)||!this[_0x1cd2ac(0x246)]['get'](_0x5346e0)['has'](_0x907a05)){const _0x2cd247=this[_0x1cd2ac(0x246)][_0x1cd2ac(0x20d)](_0x5346e0)||new Set();_0x2cd247[_0x1cd2ac(0x1fc)](_0x907a05),this[_0x1cd2ac(0x246)][_0x1cd2ac(0x1dc)](_0x5346e0,_0x2cd247),this[_0x1cd2ac(0x13d)](_0x907a05);}}),_0x176a22||this['_send']({'type':0x0,'memberID':this[_0x39c96f(0x3a8)],'unitIDs':[...this[_0x39c96f(0x274)]],'isForwarded':!0x0});}[_0x3c131d(0x13d)](_0x4ebf86){const _0x1f3b83=_0x3c131d;this[_0x1f3b83(0x211)](_0x4ebf86);const _0x3f97ee=window[_0x1f3b83(0x167)](()=>{const _0x4f1414=_0x1f3b83;this[_0x4f1414(0x246)]['forEach'](_0x32e3bd=>{const _0x128133=_0x4f1414;_0x32e3bd[_0x128133(0x2ea)](_0x4ebf86);});},we*0x2);this[_0x1f3b83(0x2db)][_0x1f3b83(0x1dc)](_0x4ebf86,_0x3f97ee);}[_0x3c131d(0x211)](_0x3798ab){const _0x1ff0cf=_0x3c131d;if(this['_clearOtherTimers'][_0x1ff0cf(0x25f)](_0x3798ab)){const _0x4734cb=this[_0x1ff0cf(0x2db)][_0x1ff0cf(0x20d)](_0x3798ab);_0x4734cb&&window[_0x1ff0cf(0x39b)](_0x4734cb),this[_0x1ff0cf(0x2db)]['set'](_0x3798ab,null);}}[_0x3c131d(0x2ce)](_0x525ef9){const _0x482cb1=_0x3c131d,{memberID:_0x502ce5,unitIDs:_0x3e80ad}=_0x525ef9;_0x3e80ad[_0x482cb1(0x1df)](_0x38aea6=>{const _0x4d36a3=_0x482cb1;var _0x534c2d;const _0x3fee84=this[_0x4d36a3(0x246)][_0x4d36a3(0x20d)](_0x38aea6);_0x3fee84&&(_0x3fee84['delete'](_0x502ce5),(_0x534c2d=this[_0x4d36a3(0x1d8)](_0x38aea6))==null||_0x534c2d[_0x4d36a3(0x1cf)](_0x3fee84['size']===0x0?u['UnitStatus'][_0x4d36a3(0x343)]:u[_0x4d36a3(0x186)][_0x4d36a3(0x26d)]));}),this[_0x482cb1(0x211)](_0x502ce5);}['_handleHeartbeatEvent'](_0x582834){const _0x3b346a=_0x3c131d;this[_0x3b346a(0x13d)](_0x582834[_0x3b346a(0x1f8)]);}[_0x3c131d(0x17b)](_0x31c09a){const _0x233d57=_0x3c131d;localStorage[_0x233d57(0x37b)](ye,JSON[_0x233d57(0x2a4)](_0x31c09a));}[_0x3c131d(0x394)](){const _0xe84778=_0x3c131d;this['_heartbeatTimer']=window[_0xe84778(0x299)](()=>{const _0x46a4c8=_0xe84778;this[_0x46a4c8(0x17b)]({'type':0x2,'memberID':this['_id']});},we);}['_ensureSubject'](_0x5b3bb4){const _0x514dff=_0x3c131d;return this[_0x514dff(0x214)][_0x514dff(0x25f)](_0x5b3bb4)||this[_0x514dff(0x214)][_0x514dff(0x1dc)](_0x5b3bb4,new I[(_0x514dff(0x301))](u[_0x514dff(0x186)][_0x514dff(0x343)])),this[_0x514dff(0x214)][_0x514dff(0x20d)](_0x5b3bb4);}}exports[_0x3c131d(0x2bd)]=Oe,exports[_0x3c131d(0x125)]=je,exports[_0x3c131d(0x269)]=fs,exports[_0x3c131d(0x18d)]=ke;
1
+ 'use strict';const _0x2737e4=_0x5521;(function(_0x5f04da,_0x2fe972){const _0x1a4f7c=_0x5521,_0xc309bd=_0x5f04da();while(!![]){try{const _0x34e136=-parseInt(_0x1a4f7c(0x2d5))/0x1*(-parseInt(_0x1a4f7c(0x23d))/0x2)+parseInt(_0x1a4f7c(0x425))/0x3*(-parseInt(_0x1a4f7c(0x2ce))/0x4)+-parseInt(_0x1a4f7c(0x1f4))/0x5+-parseInt(_0x1a4f7c(0x275))/0x6+-parseInt(_0x1a4f7c(0x359))/0x7+parseInt(_0x1a4f7c(0x3df))/0x8+parseInt(_0x1a4f7c(0x32d))/0x9;if(_0x34e136===_0x2fe972)break;else _0xc309bd['push'](_0xc309bd['shift']());}catch(_0x7292dd){_0xc309bd['push'](_0xc309bd['shift']());}}}(_0x570e,0x35f4d));var Xe=Object[_0x2737e4(0x247)],Ke=(_0x46df36,_0x315236,_0x2c9d8c)=>_0x315236 in _0x46df36?Xe(_0x46df36,_0x315236,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c9d8c}):_0x46df36[_0x315236]=_0x2c9d8c,_=(_0x2d2187,_0x2fb0ff,_0x1fccf2)=>Ke(_0x2d2187,typeof _0x2fb0ff!=_0x2737e4(0x233)?_0x2fb0ff+'':_0x2fb0ff,_0x1fccf2);Object[_0x2737e4(0x247)](exports,Symbol[_0x2737e4(0x3c7)],{'value':_0x2737e4(0x48f)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=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 pe({ref:_0x4d16c9,..._0x3edd67}){const _0xb93a0a=_0x2737e4,{icon:_0x171823,id:_0x57b540,className:_0x3694f3,extend:_0x243e16,..._0x43045d}=_0x3edd67,_0xc2fd84=(_0xb93a0a(0x407)+_0x57b540+'\x20'+(_0x3694f3||''))[_0xb93a0a(0x345)](),_0x591ba7=A[_0xb93a0a(0x4a9)]('_'+Qe());return $e(_0x171823,''+_0x57b540,{'defIds':_0x171823[_0xb93a0a(0x1dc)],'idSuffix':_0x591ba7[_0xb93a0a(0x268)]},{'ref':_0x4d16c9,'className':_0xc2fd84,..._0x43045d},_0x243e16);}function $e(_0xe5b5d1,_0x4eb955,_0x1d36f6,_0xe98fb,_0x175165){const _0x572ced=_0x2737e4;return A['createElement'](_0xe5b5d1[_0x572ced(0x354)],{'key':_0x4eb955,...Je(_0xe5b5d1,_0x1d36f6,_0x175165),..._0xe98fb},(Ze(_0xe5b5d1,_0x1d36f6)[_0x572ced(0x498)]||[])['map']((_0x5dba0d,_0x511c37)=>$e(_0x5dba0d,_0x4eb955+'-'+_0xe5b5d1[_0x572ced(0x354)]+'-'+_0x511c37,_0x1d36f6,void 0x0,_0x175165)));}function Je(_0x160ef6,_0x1ef0b6,_0x413e64){const _0x414fa1=_0x2737e4,_0xff2ce0={..._0x160ef6[_0x414fa1(0x3d9)]};_0x413e64!=null&&_0x413e64[_0x414fa1(0x328)]&&_0xff2ce0[_0x414fa1(0x446)]==='colorChannel1'&&(_0xff2ce0[_0x414fa1(0x446)]=_0x413e64[_0x414fa1(0x328)]),_0x160ef6['tag']===_0x414fa1(0x202)&&_0xff2ce0['id']&&(_0xff2ce0['id']=_0xff2ce0['id']+_0x1ef0b6[_0x414fa1(0x3f8)]),Object[_0x414fa1(0x228)](_0xff2ce0)[_0x414fa1(0x385)](([_0x378bf1,_0x395e12])=>{const _0xb653e6=_0x414fa1;_0x378bf1===_0xb653e6(0x202)&&typeof _0x395e12==_0xb653e6(0x264)&&(_0xff2ce0[_0x378bf1]=_0x395e12[_0xb653e6(0x466)](/url\(#(.*)\)/,'url(#$1'+_0x1ef0b6[_0xb653e6(0x3f8)]+')'));});const {defIds:_0x330f04}=_0x1ef0b6;return!_0x330f04||_0x330f04[_0x414fa1(0x2b2)]===0x0||(_0x160ef6['tag']===_0x414fa1(0x1f3)&&_0xff2ce0['xlink:href']&&(_0xff2ce0[_0x414fa1(0x371)]=_0xff2ce0[_0x414fa1(0x371)]+_0x1ef0b6[_0x414fa1(0x3f8)]),Object['entries'](_0xff2ce0)[_0x414fa1(0x385)](([_0x42d23c,_0x13c562])=>{const _0x407f46=_0x414fa1;typeof _0x13c562==_0x407f46(0x264)&&(_0xff2ce0[_0x42d23c]=_0x13c562[_0x407f46(0x466)](/url\(#(.*)\)/,_0x407f46(0x3b0)+_0x1ef0b6[_0x407f46(0x3f8)]+')'));})),_0xff2ce0;}function Ze(_0x2d69b9,_0x4565cf){const _0x5040af=_0x2737e4;var _0xc16be3;const {defIds:_0x198f53}=_0x4565cf;return!_0x198f53||_0x198f53['length']===0x0?_0x2d69b9:_0x2d69b9['tag']===_0x5040af(0x363)&&((_0xc16be3=_0x2d69b9[_0x5040af(0x498)])!=null&&_0xc16be3[_0x5040af(0x2b2)])?{..._0x2d69b9,'children':_0x2d69b9[_0x5040af(0x498)][_0x5040af(0x415)](_0x37da54=>typeof _0x37da54['attrs']['id']==_0x5040af(0x264)&&_0x198f53&&_0x198f53[_0x5040af(0x3de)](_0x37da54[_0x5040af(0x3d9)]['id'])?{..._0x37da54,'attrs':{..._0x37da54['attrs'],'id':_0x37da54[_0x5040af(0x3d9)]['id']+_0x4565cf[_0x5040af(0x3f8)]}}:_0x37da54)}:_0x2d69b9;}function _0x570e(){const _0x24ad25=['row','Vector2','formula.calculation.unable','_send','SNAPSHOT_HAS_BEEN_REMOVED','univerjs-icon\x20univerjs-icon-','OFFLINE','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_initResize','moveTo','post','hide','Injector','jsx','focused$','mapTo','_docSyncEditingCollabCursorService','_document','REDEMPTION_INVALID_CODE','map','DocIMEInputManagerService','LOCAL_CACHE_INTERVAL_KEY','...','_themeService','SetSelectionsOperation','setActiveRange','collabStatus.syncing','startRow','HTTPService','drawWith','_anchor','_heartbeatTimer','_getSaveTimeout','OffLineIcon','_renderManagerService','30pzNlJx','Inject','bottom','getformulaLimitStatusUrl','LICENSE_DISTRO_REJECTED','DeleteRangeMoveLeftCommandId','InsertRangeMoveDownCommandId','_docTransformStateCacheService','SetTextSelectionsOperation','getSheetObject','useCallback','_sheetSkeletonManagerService','ENTITLE_NEED_BILLING_ADDRESS','_disabled','sheetID','getUniverSheetInstance','ThemeService','docStateChange$','clearInterval','ALREADY_EXISTS','collaboration-client-ui.config','clsx','EMAIL_VERIFY_CODE_MISMATCH','Shape','DEFAULT_WS_SESSION_TICKET_URL','_removeCollabCursors','CollaborationUIEventService','transformMutationsWithChangeset','CanceledError','_pollingInterval','currentColor','useObservable','addClipboardHook','fill','EffectRefRangId','application/json','width','_monkeyPatchLogService','contains','_initStatusComponent','LICENSE_IMPORT_SIZE_EXCEEDED','_id','USERS_LEAVE','_initCommandExecutedListener','_collabSessionService','shift','ONLINE','selection','event$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','INotificationService','/universer-api/license/formula/limit/start','Tools','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','url(#off-line-icon_clip0_910_343)','NO_OTHER_CLIENTS_EDITING','VIEW_MAIN','ISocketService','FromArray','TOO_MANY_REQUESTS','addHandlerCallback','deserializeRangeWithSheet','CollaborationSessionService','_docTransformSelectionsService','YUUMI_CONNECTOR_URL_NOT_FOUND','replace','selections','CONFLICT','Failed','getItem','_cursorShapes','generateRandomId','svg','_refRangeService','_memberService','measureText','entityInit$','cursorInfo','pluginName','getSkeleton','_uploadLog','enableFrontendLog','unsubscribe','color','round','_range','_uiPartsService','IURLService','isTransformMutationFailure','REDEMPTION_USER_NOT_ELIGIBLE','values','_saveTaskMap','_removeClearOtherTimer','FormulaExecuteStageType','limitInfo','parse','Rect','unhandledrejection','DependentOn','ENSURE_SNAPSHOT_EXECUTION','ISnapshotServerService','APPLY_PERMISSION_DENIED','_config','has','_hovered','closePath','Module','CollaborationDataLoaderController','getCollabCursors$','setItem','WebURLService','setConfig','_handleHeartbeatEvent','getCellPositionByOffset','RemoteUniscriptService','children','replaceDocRanges','arc','CollaborationStatus','CollaborationSocketService','sessionStatus$','_scheduleClearOtherTimer','getActiveSheet','deepClone','_name','handleDeleteRangeMoveUp','join','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','startColumn','_unitStatus','skeleton','IMessageService','useRef','Success','YUUMI_ASYNCIO_CANCELLED','substring','_handleJoinEvent','removeParam','_cachedData','getCurrentRevOfUnit','unload','_anchorDot','_docSkeleton','defIds','ILogService','purple.300','delete','Subject','complete','runRefRangeMutations','getUnhiddenWorksheets','parseInt','?taskId=','_roomMembers$','syncEditingCollabCursor','SHEET_VIEWPORT_KEY','collabStatus.notCollab','IUIPartsService','MoveRangeCommandId','labelPosition','message','transform','beginPath','transformIMECache','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','ENTITLE_DUP_SUBSCRIPTION','use','120215ZlYdVf','_updateCollabCursors','hovered','_backgroundColor','getSheetId','DocStateChangeManagerService','getRelativeToViewportCoord','replaceState','\x20at\x20','_initUserListener','socket$','combineLatest','ACTIVE_UNIT_EVENT_CHANNEL','_memberID','mask','RemoveColCommandId','mergeOverrideWithDependencies','_applyCommand','stageInfo','_transformService','INTERNAL_ERROR','_collaborationSessionService','setAlpha','_updateURLWithCurrentState','getConfig','RemoveRowCommandId','REDEMPTION_CODE_FULLY_REDEEMED','_getScale','useDependency','mutations','getOffsetConfig','setShapeProps','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','AWAITING','getFocusedUnit','onPointerMove$','_commandService','filter','onPointerLeave$','sheetId','_localeService','whenReady','SUCCESS','_selfUnitIDs','stack','UnitStatus','random','_textBubble','functionsExecutedState','m2Prime','saveImage','entries','currentUsage','unitID','onRendered','INVITE_CODE_REQUIRED','onPointerEnter$','font','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','searchParams','split','getOwnPropertyDescriptor','symbol','SessionStatus','assignAColorForMemberID','getParam','_collaborationUIEventService','_getSheetObject','UniverCollaborationClientUIPlugin','START_CALCULATION','LOGIN_TOKEN_PROCESSING_FAILED','Disposable','1214QEksQs','onLocalMutation','memberID','InsertColCommandId','_taskIds','enableLocalCache','CollaborationEvent','HEADER_MENU','getTypeOfUnitDisposed$','Optional','defineProperty','DocCollaborationEntity','_localStorageService','code','CURRENT_STATUS_CANNOT_OPERATE','_onCursorUpdate','WECHAT_HAS_BEEN_BOUND','PAYMENT_CHANNEL_NOT_SUPPORT','dispose','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','COMPLETION_FINISHED','collab-client.tooltip.reconnect','_docClipboardService','_setupBeforeClosingHandler','RevisionService','EMAIL_HAS_BEEN_BOUND','_hideTimer','0\x200\x2016\x2016','_handleEvent','RxDisposable','InsertRangeMoveRightCommandId','getCurrentUnitForType','ranges','unitId','createElement','_initCommandInterceptor','createIdentifier','Rectangle','endColumn','string','_transformUndoRedoStack','_session','_drawAnchor','current','add','undoState','LocaleService','createInstance','transformStateCache','DeleteRangeMoveUpCommandId','lineTo','getCellMatrix','LICENSE_MAX_UNITS_EXCEEDED','UniverInstanceType','serializeRangeWithSheet','NOT_FOUND','1344858zLNgIv','_releaseCalculationLimit','toDisposable','getUnit','isFormulaString','SetWorksheetActivateCommand','_transformPreviousActiveRange','_toggleOnline','SOCKET_FAILED','MOBILE_VERIFY_CODE_MISMATCH','_scene','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','reason','univer-mr-2\x20univer-flex\x20univer-text-xl','_ensureSubject','IConfigService','_maxFormulaLimit','_setFormulaLimitStatus','_hover','black','DesktopCollaborationStatusDisplayController','onMouseMove','blue.400','subUnitId','SYNCED','collabCursorState$','reconnect','_online','WebSocketService','USER_IS_ANONYMOUS','APPLY_NON_SEQUENTIAL_REVISION','IRemoteInstanceService','YUUMI_NO_CUBOID_FOR_QUESTION','bind','_entities','addObject','fillText','throttleTime','handleIRemoveCol','getSheetBySheetId','ICommandService','USER_NOT_FOUND','transformRemoteChangeset','translate(.97)','RefRangeService','runOnServer','OTHER_CLIENTS_EDITING','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_imageIoService','SetDocZoomRatioOperation','_scheduleHeartbeat','SUBMIT_CHANGESET_TIMEOUT','getTypeOfUnitAdded$','disposeUnit','height','triggerDblclick','UNIVER_DOC','removeEventListener','uni.network.url-service','_registerDependencies','_injector','length','history','beforeCommandExecuted','UNRECOGNIZED','SOCKET_FAILED_RETRY','fillStyle','jsxs','cursorInfo$','push','error','_handleLeaveEvent','UniverCollaborationClientPlugin','roomMembers$','loadUnit','currentSkeleton$','1em','_collaborationController','Error','OTHER_CLIENT_EDITING','white','clearTimeout','getCollabEntity$','addEventListener','div','addObjects','getMember','executionId','getLocalCacheKey','101288CBoYiu','doc.mutation.rich-text-editing','CHANGESET_REVISION_CONFILICT','dispose$','_docStateChangeManagerService','onStarting','MOBILE_HAS_BEEN_BOUND','487OpHbzR','on-line-icon_clip0_910_349','_doCreateSocket','_clearPolling','getActiveRange','_updateSubUnitFromURLParams','transformSelections','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','CONNECTOR_DATA_TOO_LARGE','_labelPosition','colno','getCoordByCell','_lastResponseTimestamp','INVALID_INVITE_CODE','getMemberID','LOCAL_CACHE_INTERVAL','IUniverInstanceService','type','_revisionService','_saveCache','formula.calculation.waiting','getValue','releaseFormulaLimitUrl','_showGuardMessage','_checkCalculationAvailable','handleInsertCol','stringify','_setupSubUnitSync','wsSessionTicketUrl','Unknown\x20user','startsWith','FETCH_MISS','YUUMI_SUBSCRIPTION_NOT_FOUND','onTransformChange$','size','asObservable','OnLineIcon','_startCalculationLimit','UNDEFINED','saveTaskMap','ENTITLE_CHAT_LIMIT_EXCEED','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_collabCursorController','_getMergeRange','_univerInstanceService','subscribe','requireSession','onCommandExecuted','setStateCache','disposeWithMe','with','_shapes','DOC_RANGE_TYPE','_initStatusListener','_assignedColors','DisposableCollection','eventID','/run/','_startDocCollabCursor','getUnitId','Warning','YUUMI_TABLE_NOT_FOUND_IN_UNIT','DocSkeletonManagerService','ENTITLE_COUPON_USED_UP','name','getRenderById','PERMISSION_DENIED','UNAUTHENTICATED','path','unit','actions','APPLY_REJECT','_notificationService','_initUnhandledRejectionListener','Loading','PY_RUNTIME_SCRIPT_ERROR','_toggleOffline','[LogService\x20Error]:\x20','none','getVpScrollXYInfoByPosToVp','send','location','MUTATION','colorChannel1','_updateLocalCursor','_color','jiqing.500','IRenderManagerService','4578399mwljvB','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','min','ERROR_AGAIN','COLORS','permission.title','_logService','restore','_initWindowErrorListener','flatMap','next','CollaborationController','disableLocalCache','activeSheet$','debounce','editingUnit','_init','stage','range','formula.calculation.started','_configService','switchMap','NodePositionConvertToCursor','SheetSkeletonManagerService','trim','ITransformService','TEXT','_collabCursorState$','set','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_messageService','BrowserCollaborationSocketService','_initDependencies','_onRefRangeChange','IDocClipboardService','getColor','_colorAssignService','assign','subunit','tag','Tooltip','merge','_cursors','_scheduleSaving','1135939LFELPm','findNodePositionByCharIndex','takeUntil','PENDING','toString','createSocket','_createSocketURL','collaboration.single-unit.warning','0\x200\x2017\x2016','setTimeout','defs','AUTHORIZE_CODE_ILLEGAL','off-line-icon_clip0_910_343','_draw','_startSheetCollabCursor','redoState','ENTITLE_INSUFFICIENT_QUOTA','save','_currentUsage','endRow','displayName','_dataLoaderService','init','data','xlink:href','SNAPSHOT_INVALID_SNAPSHOT','unshift','handleDeleteRangeMoveLeft','_context','getViewport','[Unhandled\x20Rejection]:\x20','_refreshCollabCursors','getColorFromTheme','IBeforeCloseService','then','RegularPolygon','newValue','[CollaborationDataLoaderController]','pipe','resize','_cursor','_eventUnsubscribe','transformMutation','params','forEach','shareReplay','SetFormulaCalculationNotificationMutation','updateOfflineData','connectInjector','status$','sessionTicket','_checkAndWaitForCalculationPermission','url(#on-line-icon_clip0_910_349)','_clearOtherTimers','dirtyRanges','now','runId','isTransformMutationsWithChangesetSuccess','Plugin','text','_colorIndex','override','_initEntityListener','_onCursorDelete','ENTITLE_REPORT_LIMIT_EXCEED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','some','maxFormulaLimit','INVITE_CODE_ALREADY_BOUND','IImageIoService','ENTITLE_INVALID_COUPON_CODE','BehaviorSubject','NodePositionConvertToRectRange','from','session.connection-failed','Workbook','textRanges','TEXT_RANGE_LAYER_INDEX','registerBeforeClose','_drawTextRange','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','fromEvent','engine','UNIVER_SHEET','RECT','CollaborationUIEventId','_syncEditingCollabCursorService','url(#$1','USER_NOT_INVITED_CODE','LICENSE_EXPORT_SIZE_EXCEEDED','getUndoRedoMutationParamsCache','_getFormulaLimitStatus','_entityInit$','filename','isActive','SetFormulaCalculationStartMutation','YUUMI_UNABLE_LOAD_URL','collabStatus.synced','href','/universer-api/frontend/logs','exhaustSavingTask','http://www.w3.org/2000/svg','setParam','UPDATE_CURSOR','executeCommand','off-line-icon','debounceTime','YUUMI_URL_COL_OUT_OF_RANGE','getRangePointData','NOT_COLLAB','toStringTag','_cursorInfo$','handleIRemoveRow','_urlService','collaboration.closeRoom','get','YUUMI_AI_RUN_FAILED','YUUMI_ALL_TABLES_IS_INVALID','ENTITLE_COUPON_EXPIRED','subscribeEvent','REDEMPTION_CODE_INACTIVE','MemberService','DocSelectionManagerService','YUUMI_RATE_OVER_LIMIT','ILocalCacheService','_docSkeletonManagerService','_httpService','_drawRectRange','attrs','imageSourceType','_unitOnClients','body','_status$','includes','642944JcpxQL','source','M0\x200H16V16H0z','handleInsertRangeMoveRight','SheetsSelectionsService','INVALID_ARGUMENT','[Window\x20Error]:\x20','_handleHover','urlChange$','APPLY_DUPLICATED','handleInsertRangeMoveDown','collab-text-range-','show','_lastPointer','fromEventSubject','m1Prime','LOGIN_FAILED','saveOfflineData','getUnitStatus$','UniverIcon','MessageType','_localCacheService','evenodd','getAncestorScale','_transformHistoryAndStateStack','idSuffix','clipPath','DATA_SOURCE_TOO_LARGE','session.collaboration-timeout','isArray','_docTransformIMECacheService','WebBrowserSingleActiveUnitService','_getSessionTicket','registerRefRange','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'];_0x570e=function(){return _0x24ad25;};return _0x570e();}function Qe(){const _0x3162b2=_0x2737e4;return Math[_0x3162b2(0x223)]()['toString'](0x24)[_0x3162b2(0x4ac)](0x2,0x8);}pe[_0x2737e4(0x36d)]=_0x2737e4(0x3f2);const et={'tag':_0x2737e4(0x46d),'attrs':{'xmlns':_0x2737e4(0x3be),'fill':_0x2737e4(0x323),'viewBox':_0x2737e4(0x258),'width':'1em','height':_0x2737e4(0x2c1)},'children':[{'tag':'g','attrs':{'clipPath':_0x2737e4(0x45b)},'children':[{'tag':_0x2737e4(0x319),'attrs':{'stroke':'currentColor','d':_0x2737e4(0x250),'strokeLinecap':_0x2737e4(0x479),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2737e4(0x319),'attrs':{'fill':_0x2737e4(0x2c5),'d':_0x2737e4(0x3e1)}}]}]}],'defIds':[_0x2737e4(0x365)]},xe=A['forwardRef'](function(_0x2bf75e,_0x2c5969){const _0x12626b=_0x2737e4;return A[_0x12626b(0x25f)](pe,Object[_0x12626b(0x352)]({},_0x2bf75e,{'id':_0x12626b(0x3c2),'ref':_0x2c5969,'icon':et}));});xe[_0x2737e4(0x36d)]=_0x2737e4(0x423);const tt={'tag':_0x2737e4(0x46d),'attrs':{'xmlns':_0x2737e4(0x3be),'fill':_0x2737e4(0x323),'viewBox':_0x2737e4(0x361),'width':'1em','height':_0x2737e4(0x2c1)},'children':[{'tag':'g','attrs':{'clipPath':_0x2737e4(0x38d)},'children':[{'tag':'path','attrs':{'stroke':_0x2737e4(0x443),'d':_0x2737e4(0x401),'strokeLinecap':_0x2737e4(0x479),'strokeLinejoin':_0x2737e4(0x479),'strokeWidth':1.2}}]},{'tag':_0x2737e4(0x363),'attrs':{},'children':[{'tag':_0x2737e4(0x3f9),'attrs':{'id':_0x2737e4(0x2d6)},'children':[{'tag':_0x2737e4(0x319),'attrs':{'fill':'white','d':_0x2737e4(0x3e1),'transform':_0x2737e4(0x2a0)}}]}]}],'defIds':[_0x2737e4(0x2d6)]},Be=A['forwardRef'](function(_0xd43e,_0x15f81a){const _0x44b131=_0x2737e4;return A['createElement'](pe,Object[_0x44b131(0x352)]({},_0xd43e,{'id':'on-line-icon','ref':_0x15f81a,'icon':tt}));});Be[_0x2737e4(0x36d)]=_0x2737e4(0x2f9);function st(_0x3edd3e){const _0x2ab411=_0x2737e4;switch(_0x3edd3e){case u[_0x2ab411(0x49b)]['OFFLINE']:return'collabStatus.offline';case u[_0x2ab411(0x49b)][_0x2ab411(0x468)]:return'collabStatus.conflict';case u['CollaborationStatus'][_0x2ab411(0x2f4)]:return'collabStatus.fetchMiss';case u[_0x2ab411(0x49b)]['NOT_COLLAB']:return _0x2ab411(0x1e9);case u['CollaborationStatus'][_0x2ab411(0x216)]:case u[_0x2ab411(0x49b)]['AWAITING_WITH_PENDING']:return _0x2ab411(0x41c);case u[_0x2ab411(0x49b)][_0x2ab411(0x28d)]:case u[_0x2ab411(0x49b)][_0x2ab411(0x35c)]:return _0x2ab411(0x3ba);}}function it(_0x4811a7){const _0x10d54e=_0x2737e4,{status$:_0x19ea4e}=_0x4811a7,_0x2a3000=O[_0x10d54e(0x444)](_0x19ea4e,u['CollaborationStatus'][_0x10d54e(0x3c6)]),_0x37baf3=O[_0x10d54e(0x210)](a[_0x10d54e(0x26b)]),_0x39258d=O['useDependency'](u[_0x10d54e(0x463)]),_0x1df508=_0x2a3000!==u['CollaborationStatus'][_0x10d54e(0x408)],_0x115908=_0x37baf3['t'](st(_0x2a3000)),_0xcf4d8d=_0x1df508?M[_0x10d54e(0x40f)](Be,{}):M['jsx'](xe,{}),_0x1bbca8=A[_0x10d54e(0x42f)](()=>{const _0x5328a6=_0x10d54e;_0x1df508||_0x39258d[_0x5328a6(0x28f)]();},[_0x1df508,_0x39258d]);function _0x59b22d(){const _0x249575=_0x10d54e;return M[_0x249575(0x2b8)](_0x249575(0x2c9),{'className':'univer-flex\x20univer-items-center','onClick':_0x1bbca8,'children':[M['jsx'](_0x249575(0x2c9),{'className':p[_0x249575(0x43a)](_0x249575(0x282),{'univer-text-green-500':_0x1df508,'univer-text-red-500':!_0x1df508}),'children':_0xcf4d8d}),M['jsx'](_0x249575(0x2c9),{'className':_0x249575(0x45a),'children':_0x115908})]});}return _0x1df508?_0x59b22d():M[_0x10d54e(0x40f)](p[_0x10d54e(0x355)],{'title':_0x37baf3['t'](_0x10d54e(0x252)),'children':_0x59b22d()});}var nt=Object[_0x2737e4(0x232)],rt=(_0x13fbba,_0x4e6b22,_0x21ce0d,_0x3d0af2)=>{const _0x504c24=_0x2737e4;for(var _0x3b16cd=_0x3d0af2>0x1?void 0x0:_0x3d0af2?nt(_0x4e6b22,_0x21ce0d):_0x4e6b22,_0x396da1=_0x13fbba[_0x504c24(0x2b2)]-0x1,_0x27dd5d;_0x396da1>=0x0;_0x396da1--)(_0x27dd5d=_0x13fbba[_0x396da1])&&(_0x3b16cd=_0x27dd5d(_0x3b16cd)||_0x3b16cd);return _0x3b16cd;},K=(_0x3b1cc0,_0x3717c6)=>(_0x49bb6c,_0xdda6b5)=>_0x3717c6(_0x49bb6c,_0xdda6b5,_0x3b1cc0);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x506df9,_0xb68265,_0x487a9c,_0x2018b3){const _0x4960ef=_0x2737e4;super(),_(this,_0x4960ef(0x3dd),new I[(_0x4960ef(0x3a0))](u[_0x4960ef(0x49b)][_0x4960ef(0x3c6)])),(this['_univerInstanceService']=_0x506df9,this[_0x4960ef(0x2b1)]=_0xb68265,this[_0x4960ef(0x2c2)]=_0x487a9c,this[_0x4960ef(0x47b)]=_0x2018b3,this[_0x4960ef(0x44c)](),this['_initStatusListener']());}[_0x2737e4(0x30a)](){const _0x172a0b=_0x2737e4;this[_0x172a0b(0x306)](this[_0x172a0b(0x301)][_0x172a0b(0x410)][_0x172a0b(0x37f)](I['switchMap'](()=>{const _0x39f14e=_0x172a0b,_0x4eb688=this['_univerInstanceService'][_0x39f14e(0x217)]();return _0x4eb688?this[_0x39f14e(0x2c2)][_0x39f14e(0x2c7)](_0x4eb688[_0x39f14e(0x310)]()):I['of'](null);}),I[_0x172a0b(0x342)](_0x5d661f=>_0x5d661f?_0x5d661f[_0x172a0b(0x38a)]:I['of'](u[_0x172a0b(0x49b)]['NOT_COLLAB'])))[_0x172a0b(0x302)](_0x49efb6=>{const _0x398cd5=_0x172a0b;this[_0x398cd5(0x3dd)][_0x398cd5(0x337)](_0x49efb6);}));}['_initStatusComponent'](){const _0x573b3e=_0x2737e4;this[_0x573b3e(0x306)](this[_0x573b3e(0x47b)]['registerComponent'](O['BuiltInUIPart'][_0x573b3e(0x244)],()=>O[_0x573b3e(0x389)](ot({'status$':this[_0x573b3e(0x3dd)][_0x573b3e(0x2f8)]()}),this[_0x573b3e(0x2b1)])));}},exports[_0x2737e4(0x289)]=rt([K(0x0,a[_0x2737e4(0x2e5)]),K(0x1,a[_0x2737e4(0x426)](a[_0x2737e4(0x40e)])),K(0x2,a[_0x2737e4(0x426)](u['CollaborationController'])),K(0x3,O[_0x2737e4(0x1ea)])],exports[_0x2737e4(0x289)]);function ot(_0x6bfc9f){const {status$:_0x2249d8}=_0x6bfc9f;return function(){return M['jsx'](it,{'status$':_0x2249d8});};}const Oe=a[_0x2737e4(0x261)](_0x2737e4(0x2af));var at=Object[_0x2737e4(0x232)],ct=(_0x57b83d,_0x183532,_0x1e3f11,_0x4144d6)=>{const _0xdbdd4f=_0x2737e4;for(var _0x58e75b=_0x4144d6>0x1?void 0x0:_0x4144d6?at(_0x183532,_0x1e3f11):_0x183532,_0x324777=_0x57b83d[_0xdbdd4f(0x2b2)]-0x1,_0xebbc35;_0x324777>=0x0;_0x324777--)(_0xebbc35=_0x57b83d[_0x324777])&&(_0x58e75b=_0xebbc35(_0x58e75b)||_0x58e75b);return _0x58e75b;},Y=(_0x2d0f82,_0x4881b4)=>(_0x2bdb96,_0x435850)=>_0x4881b4(_0x2bdb96,_0x435850,_0x2d0f82);exports[_0x2737e4(0x490)]=class extends a[_0x2737e4(0x25a)]{constructor(_0x12e29c,_0x6fe256,_0xfc6131,_0x219210,_0x2aaae5){const _0x6d4fda=_0x2737e4;super(),this[_0x6d4fda(0x3ca)]=_0x12e29c,this[_0x6d4fda(0x333)]=_0x6fe256,this[_0x6d4fda(0x219)]=_0xfc6131,this[_0x6d4fda(0x36e)]=_0x219210,_0x2aaae5?_0x2aaae5==null||_0x2aaae5[_0x6d4fda(0x21e)]()[_0x6d4fda(0x37b)](()=>this[_0x6d4fda(0x33d)]()):(this[_0x6d4fda(0x333)]['debug'](_0x6d4fda(0x37e),_0x6d4fda(0x22f)),this[_0x6d4fda(0x33d)]());}async[_0x2737e4(0x33d)](){const _0x2d0815=_0x2737e4,_0x4183b1=this[_0x2d0815(0x3ca)][_0x2d0815(0x236)](_0x2d0815(0x31a)),_0x15974e=this[_0x2d0815(0x3ca)]['getParam'](_0x2d0815(0x2e6)),_0x3e0b42=this['_urlService'][_0x2d0815(0x236)](_0x2d0815(0x353));if(!_0x4183b1||!_0x15974e){this['_logService']['debug']('[CollaborationDataLoaderController]',_0x2d0815(0x215));return;}const _0xc78596=await this[_0x2d0815(0x36e)][_0x2d0815(0x2bf)](_0x4183b1,Number(_0x15974e),_0x3e0b42);_0xc78596&&_0xc78596 instanceof a[_0x2d0815(0x3a4)]&&this[_0x2d0815(0x2f0)](_0xc78596);}async[_0x2737e4(0x2f0)](_0x44b22f){const _0x2cfe52=_0x2737e4;await this[_0x2cfe52(0x2da)](_0x44b22f),_0x44b22f[_0x2cfe52(0x33a)]['pipe'](I[_0x2cfe52(0x35b)](this[_0x2cfe52(0x2d1)]))['subscribe'](_0x5b4064=>{const _0x3246fc=_0x2cfe52;_0x5b4064&&this[_0x3246fc(0x20b)](_0x5b4064);}),this['_urlService'][_0x2cfe52(0x3e7)][_0x2cfe52(0x37f)](I[_0x2cfe52(0x35b)](this['dispose$']))[_0x2cfe52(0x302)](()=>this[_0x2cfe52(0x2da)](_0x44b22f));}[_0x2737e4(0x20b)](_0x498fcf,_0x24ce11=!0x1){const _0x51cf04=_0x2737e4,_0x30f39f=this[_0x51cf04(0x3ca)][_0x51cf04(0x236)](_0x51cf04(0x353));_0x498fcf[_0x51cf04(0x1f8)]()!==_0x30f39f&&this[_0x51cf04(0x3ca)]['setParam']('subunit',_0x498fcf[_0x51cf04(0x1f8)](),_0x24ce11);}async[_0x2737e4(0x2da)](_0x2ed9c3){const _0x523c9c=_0x2737e4;var _0x120922;const _0x486692=this[_0x523c9c(0x3ca)][_0x523c9c(0x236)](_0x523c9c(0x353));if(!_0x486692||!_0x2ed9c3[_0x523c9c(0x29c)](_0x486692)){const _0x2c017a=_0x2ed9c3[_0x523c9c(0x1e3)]()[0x0],_0x16433c=_0x2ed9c3[_0x523c9c(0x29c)](_0x2c017a);if(!_0x16433c)return;this[_0x523c9c(0x20b)](_0x16433c,!0x0),await this[_0x523c9c(0x219)][_0x523c9c(0x3c1)](v[_0x523c9c(0x27a)]['id'],{'unitId':_0x2ed9c3[_0x523c9c(0x310)](),'subUnitId':_0x2c017a});return;}((_0x120922=_0x2ed9c3[_0x523c9c(0x49f)]())==null?void 0x0:_0x120922['getSheetId']())!==_0x486692&&await this[_0x523c9c(0x219)][_0x523c9c(0x3c1)](v[_0x523c9c(0x27a)]['id'],{'unitId':_0x2ed9c3[_0x523c9c(0x310)](),'subUnitId':_0x486692});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x2737e4(0x1dd)]),Y(0x2,a[_0x2737e4(0x29d)]),Y(0x3,a['Inject'](u['DataLoaderService'])),Y(0x4,a[_0x2737e4(0x246)](qe[_0x2737e4(0x294)]))],exports[_0x2737e4(0x490)]);var lt=Object[_0x2737e4(0x232)],_t=(_0x287e12,_0x11aa74,_0x44cc7e,_0x371704)=>{for(var _0x24bbcc=_0x371704>0x1?void 0x0:_0x371704?lt(_0x11aa74,_0x44cc7e):_0x11aa74,_0x5ee883=_0x287e12['length']-0x1,_0x1cd061;_0x5ee883>=0x0;_0x5ee883--)(_0x1cd061=_0x287e12[_0x5ee883])&&(_0x24bbcc=_0x1cd061(_0x24bbcc)||_0x24bbcc);return _0x24bbcc;},De=(_0x3c6dd8,_0x477760)=>(_0x5d582f,_0x1551c3)=>_0x477760(_0x5d582f,_0x1551c3,_0x3c6dd8);let me=class extends a['RxDisposable']{constructor(_0xd0b688,_0x2ce765){const _0x2655da=_0x2737e4;super(),this[_0x2655da(0x253)]=_0xd0b688,this['_imageIoService']=_0x2ce765,this[_0x2655da(0x33d)]();}[_0x2737e4(0x33d)](){const _0x690ca=_0x2737e4,_0x3ef7d6=this;this[_0x690ca(0x306)](this[_0x690ca(0x253)][_0x690ca(0x445)]({'onBeforePasteImage':async _0x3cd9a4=>{const _0x5de298=_0x690ca,_0x1d21bd=await _0x3ef7d6[_0x5de298(0x2a5)][_0x5de298(0x227)](_0x3cd9a4);return _0x1d21bd?{'source':_0x1d21bd[_0x5de298(0x3e0)],'imageSourceType':_0x1d21bd[_0x5de298(0x3da)]}:null;}}));}};me=_t([De(0x0,T[_0x2737e4(0x34f)]),De(0x1,ze[_0x2737e4(0x39e)])],me);const Ne=[_0x2737e4(0x1de),_0x2737e4(0x32b),'green.600','red.300',_0x2737e4(0x28b),'yellow.400'];class Re extends a['Disposable']{constructor(){const _0xf5790=_0x2737e4;super(...arguments),_(this,_0xf5790(0x30b),new Map()),_(this,_0xf5790(0x395),0x0);}[_0x2737e4(0x235)](_0x13099c){const _0x5d7421=_0x2737e4;if(this[_0x5d7421(0x30b)][_0x5d7421(0x48c)](_0x13099c))return this['_assignedColors']['get'](_0x13099c);const _0x28af6b=Ne[this[_0x5d7421(0x395)]];return this[_0x5d7421(0x395)]=(this[_0x5d7421(0x395)]+0x1)%Ne[_0x5d7421(0x2b2)],this[_0x5d7421(0x30b)]['set'](_0x13099c,_0x28af6b),_0x28af6b;}}function Fe(_0xb31be){const _0x163772=_0x2737e4;let _0x1e6d0b='';for(const _0x3f55e1 of _0xb31be){const {startOffset:_0x261357,endOffset:_0x44ff90,isActive:_0x1d4a1d,rangeType:_0x1d9b0b,segmentId:_0x1a5e7b,segmentPage:_0x3f18a2}=_0x3f55e1;_0x1e6d0b[_0x163772(0x2b2)]&&(_0x1e6d0b+=','),_0x1e6d0b+=_0x261357+':'+_0x44ff90+':'+(_0x1d4a1d?'1':'0')+':'+_0x1d9b0b+':'+_0x1a5e7b+':'+_0x3f18a2;}return _0x1e6d0b;}function ht(_0x159200){const _0x48f1da=_0x2737e4,_0xe2edea=_0x159200[_0x48f1da(0x231)](','),_0x58cd47=[];for(const _0x1089d2 of _0xe2edea){const [_0x3ac6f5,_0x212b7c,_0x4c7b62,_0x2c6220,_0x476658,_0x3cf65d]=_0x1089d2[_0x48f1da(0x231)](':');_0x58cd47['push']({'startOffset':Number(_0x3ac6f5),'endOffset':Number(_0x212b7c),'collapsed':_0x3ac6f5===_0x212b7c,'isActive':_0x4c7b62==='1','rangeType':_0x2c6220===a[_0x48f1da(0x309)][_0x48f1da(0x347)]?a[_0x48f1da(0x309)][_0x48f1da(0x347)]:a[_0x48f1da(0x309)][_0x48f1da(0x3ad)],'segmentId':typeof _0x476658==_0x48f1da(0x264)?String(_0x476658):'','segmentPage':Number(_0x3cf65d!=null?_0x3cf65d:-0x1)});}return _0x58cd47[_0x48f1da(0x39b)](_0x36dcab=>_0x36dcab[_0x48f1da(0x3b7)])||(_0x58cd47[0x0]['isActive']=!0x0),_0x58cd47;}class be extends a[_0x2737e4(0x25a)]{constructor(){const _0x1b9c54=_0x2737e4;super(...arguments),_(this,_0x1b9c54(0x348),new I[(_0x1b9c54(0x3a0))](null)),_(this,_0x1b9c54(0x28e),this[_0x1b9c54(0x348)]['asObservable']());}['syncEditingCollabCursor'](_0x2ac4a9){const _0x5db0a2=_0x2737e4,{unitID:_0x5da9db,memberID:_0x5c65a0,textRanges:_0x218d23}=_0x2ac4a9,_0x6f8398=Fe(_0x218d23);if(_0x6f8398==='')return;const _0x57feb4={'unitID':_0x5da9db,'memberID':_0x5c65a0,'selection':_0x6f8398};this['_collabCursorState$'][_0x5db0a2(0x337)](_0x57feb4);}}var ut=Object[_0x2737e4(0x232)],It=(_0x169993,_0x3e8891,_0x4fcb6a,_0x51bf22)=>{const _0x717b1=_0x2737e4;for(var _0x3b95a7=_0x51bf22>0x1?void 0x0:_0x51bf22?ut(_0x3e8891,_0x4fcb6a):_0x3e8891,_0x411d89=_0x169993[_0x717b1(0x2b2)]-0x1,_0x38c05c;_0x411d89>=0x0;_0x411d89--)(_0x38c05c=_0x169993[_0x411d89])&&(_0x3b95a7=_0x38c05c(_0x3b95a7)||_0x3b95a7);return _0x3b95a7;},U=(_0x386062,_0x1b284b)=>(_0x1c06e7,_0x4d9326)=>_0x1b284b(_0x1c06e7,_0x4d9326,_0x386062);const St=0x12c,dt=0x64;let ve=class extends a[_0x2737e4(0x25a)]{constructor(_0xf2f495,_0x285ec,_0x3824ba,_0x21098b,_0x4d8fcc,_0x430b45,_0x2c4f6e,_0xa33a26,_0x426a3b){const _0x1a003a=_0x2737e4;super(),_(this,_0x1a003a(0x290),!0x1),_(this,_0x1a003a(0x33d),!0x1),_(this,_0x1a003a(0x3c8),new I['BehaviorSubject'](new Map())),_(this,_0x1a003a(0x2b9),this[_0x1a003a(0x3c8)][_0x1a003a(0x2f8)]()),_(this,_0x1a003a(0x1e6),new I[(_0x1a003a(0x3a0))]([])),_(this,_0x1a003a(0x2be),this[_0x1a003a(0x1e6)][_0x1a003a(0x37f)](I['debounceTime'](St))),_(this,'_updateLocalCursor',a['debounce'](_0x295d27=>{const _0xc92ca8=_0x1a003a,_0x51d119={'eventID':g[_0xc92ca8(0x243)][_0xc92ca8(0x3c0)],'data':{'unitID':this[_0xc92ca8(0x22a)],'memberID':this['_session'][_0xc92ca8(0x2e3)](),'selection':Fe(_0x295d27)}};this[_0xc92ca8(0x266)][_0xc92ca8(0x325)](_0x51d119,this[_0xc92ca8(0x22a)]);},dt)),(this[_0x1a003a(0x22a)]=_0xf2f495,this[_0x1a003a(0x266)]=_0x285ec,this[_0x1a003a(0x2b1)]=_0x3824ba,this[_0x1a003a(0x351)]=_0x21098b,this[_0x1a003a(0x46f)]=_0x4d8fcc,this[_0x1a003a(0x3af)]=_0x430b45,this[_0x1a003a(0x207)]=_0x2c4f6e,this[_0x1a003a(0x301)]=_0xa33a26,this[_0x1a003a(0x219)]=_0x426a3b);}get[_0x2737e4(0x472)](){const _0x3954d7=_0x2737e4;return this[_0x3954d7(0x3c8)][_0x3954d7(0x2ea)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x2737e4(0x24f)](){const _0x4faa50=_0x2737e4;super[_0x4faa50(0x24f)](),this[_0x4faa50(0x3c8)][_0x4faa50(0x337)](new Map()),this[_0x4faa50(0x3c8)]['complete'](),this[_0x4faa50(0x1e6)][_0x4faa50(0x337)]([]),this['_roomMembers$']['complete']();}[_0x2737e4(0x36f)](){const _0x54c5a2=_0x2737e4;this[_0x54c5a2(0x33d)]||(this['_init']=!0x0,this[_0x54c5a2(0x266)]['sessionStatus$']['pipe'](I['takeUntil'](this[_0x54c5a2(0x2d1)]))[_0x54c5a2(0x302)](_0x230626=>{const _0x176f4a=_0x54c5a2;_0x230626===u[_0x176f4a(0x234)][_0x176f4a(0x453)]?this[_0x176f4a(0x27c)]():this[_0x176f4a(0x321)]();}),this[_0x54c5a2(0x266)]['event$']['pipe'](I['takeUntil'](this[_0x54c5a2(0x2d1)]))['subscribe'](_0x10a466=>{const _0x215760=_0x54c5a2,_0x1628f6=_0x10a466[_0x215760(0x30d)];_0x1628f6===g[_0x215760(0x243)][_0x215760(0x3c0)]&&this[_0x215760(0x24c)](_0x10a466),_0x1628f6===g['CollaborationEvent'][_0x215760(0x44f)]&&this[_0x215760(0x398)](_0x10a466);}),this['disposeWithMe'](this['_commandService'][_0x54c5a2(0x304)](_0x4cfc6f=>{const _0x214d4e=_0x54c5a2,_0x44b042=_0x4cfc6f['params'];_0x44b042!=null&&this[_0x214d4e(0x290)]&&_0x4cfc6f['id']===V[_0x214d4e(0x42d)]['id']&&_0x44b042[_0x214d4e(0x25e)]===this[_0x214d4e(0x22a)]&&_0x44b042['isEditing']===!0x1&&_0x44b042[_0x214d4e(0x25d)]['length']>0x0&&this[_0x214d4e(0x329)](_0x44b042[_0x214d4e(0x25d)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x54c5a2(0x37f)](I[_0x54c5a2(0x35b)](this[_0x54c5a2(0x2d1)]))[_0x54c5a2(0x302)](_0x414c44=>{const _0x592253=_0x54c5a2;if((_0x414c44==null?void 0x0:_0x414c44['unitID'])!==this[_0x592253(0x22a)])return;const _0x3c0a9b={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x414c44};this['_onCursorUpdate'](_0x3c0a9b);}),this['disposeWithMe'](this[_0x54c5a2(0x219)][_0x54c5a2(0x304)](_0x2088a7=>{const _0x3082a3=_0x54c5a2;if(_0x2088a7['params']==null)return;const _0xe7ffd9=_0x2088a7['params'];if(_0x2088a7['id']!==V['RichTextEditingMutation']['id']||_0xe7ffd9['unitId']!==this['unitID'])return;const _0x196b2f={'id':'doc.mutation.rich-text-editing','params':_0xe7ffd9},_0x35b0e9=this[_0x3082a3(0x472)];for(const [_0x477656,_0x17ed4c]of _0x35b0e9){const _0x1ce8fe={'id':_0x3082a3(0x2cf),'params':{'unitId':this[_0x3082a3(0x22a)],'actions':null,'textRanges':_0x17ed4c[_0x3082a3(0x25d)]}},_0x563905=this[_0x3082a3(0x207)][_0x3082a3(0x383)](_0x196b2f,_0x1ce8fe,!0x1);if(g[_0x3082a3(0x47d)](_0x563905))throw _0x563905[_0x3082a3(0x2bb)];_0x35b0e9[_0x3082a3(0x349)](_0x477656,{..._0x17ed4c,'ranges':_0x563905['m2Prime'][_0x3082a3(0x384)][_0x3082a3(0x3a5)]});}queueMicrotask(()=>{const _0x12d5ab=_0x3082a3;this[_0x12d5ab(0x3c8)]['next'](_0x35b0e9);});})));}[_0x2737e4(0x24c)](_0x2e6de7){const _0x2ea824=_0x2737e4;var _0x164261,_0x475de9;const {memberID:_0x49cff8,selection:_0x5cf82e}=_0x2e6de7[_0x2ea824(0x370)],_0x376968=ht(_0x5cf82e),_0x1fc297=(_0x475de9=(_0x164261=this[_0x2ea824(0x46f)][_0x2ea824(0x2cb)](this[_0x2ea824(0x22a)],_0x49cff8))==null?void 0x0:_0x164261[_0x2ea824(0x315)])!=null?_0x475de9:'Unknown\x20user',_0x30a6c7={'color':this[_0x2ea824(0x351)][_0x2ea824(0x235)](_0x49cff8),'name':_0x1fc297,'ranges':_0x376968},_0x3e9b73=this[_0x2ea824(0x472)];_0x3e9b73[_0x2ea824(0x349)](_0x49cff8,_0x30a6c7),this[_0x2ea824(0x3c8)][_0x2ea824(0x337)](_0x3e9b73);}['_onCursorDelete'](_0x2c0c37){const _0x4f7a85=_0x2737e4,{memberID:_0x311c6c}=_0x2c0c37[_0x4f7a85(0x370)],_0x1b6fc7=this[_0x4f7a85(0x472)];_0x1b6fc7[_0x4f7a85(0x1df)](_0x311c6c),this[_0x4f7a85(0x3c8)]['next'](_0x1b6fc7);}[_0x2737e4(0x27c)](){const _0x4a7b92=_0x2737e4;var _0x446425;if(this[_0x4a7b92(0x290)]=!0x0,((_0x446425=this[_0x4a7b92(0x301)][_0x4a7b92(0x217)]())==null?void 0x0:_0x446425[_0x4a7b92(0x310)]())!==this[_0x4a7b92(0x22a)])return;const _0x1f4364=this[_0x4a7b92(0x2b1)][_0x4a7b92(0x3cc)](V[_0x4a7b92(0x3d3)])['getDocRanges']();Array['isArray'](_0x1f4364)&&_0x1f4364['length']>0x0&&this[_0x4a7b92(0x329)](_0x1f4364);}[_0x2737e4(0x321)](){const _0x113f85=_0x2737e4;this[_0x113f85(0x290)]=!0x1;}};ve=It([U(0x2,a[_0x2737e4(0x426)](a[_0x2737e4(0x40e)])),U(0x3,a[_0x2737e4(0x426)](Re)),U(0x4,a[_0x2737e4(0x426)](u[_0x2737e4(0x3d2)])),U(0x5,a[_0x2737e4(0x426)](be)),U(0x6,g[_0x2737e4(0x346)]),U(0x7,a[_0x2737e4(0x2e5)]),U(0x8,a[_0x2737e4(0x29d)])],ve);var ft=Object[_0x2737e4(0x232)],mt=(_0x521cc1,_0x2bc575,_0x4c1da2,_0x1cd9d9)=>{const _0x45145f=_0x2737e4;for(var _0x4cd6d0=_0x1cd9d9>0x1?void 0x0:_0x1cd9d9?ft(_0x2bc575,_0x4c1da2):_0x2bc575,_0x36766f=_0x521cc1[_0x45145f(0x2b2)]-0x1,_0x134f37;_0x36766f>=0x0;_0x36766f--)(_0x134f37=_0x521cc1[_0x36766f])&&(_0x4cd6d0=_0x134f37(_0x4cd6d0)||_0x4cd6d0);return _0x4cd6d0;},w=(_0x2cabb5,_0x1c084e)=>(_0x52cede,_0x1e43d8)=>_0x1c084e(_0x52cede,_0x1e43d8,_0x2cabb5);const vt=0x12c,gt=0x64,Et=()=>{let _0x4f635b=[],_0x38b51c=!0x1;return _0x22a577=>{const _0x2ceb04=_0x5521;_0x4f635b[_0x2ceb04(0x2ba)](_0x22a577),_0x38b51c||(_0x38b51c=!0x0,setTimeout(()=>{const _0x21a894=_0x2ceb04;_0x4f635b[_0x21a894(0x385)](_0x115fb0=>_0x115fb0()),_0x4f635b=[],_0x38b51c=!0x1;}));};};let ge=class extends a[_0x2737e4(0x25a)]{constructor(_0x513eac,_0x4ed935,_0x26a706,_0x485536,_0x521f81,_0x362c10,_0x3e6606,_0x5dfd76){const _0x353201=_0x2737e4;super(),_(this,_0x353201(0x290),!0x1),_(this,_0x353201(0x33d),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x353201(0x2b9),this[_0x353201(0x3c8)][_0x353201(0x2f8)]()),_(this,_0x353201(0x1e6),new I[(_0x353201(0x3a0))]([])),_(this,_0x353201(0x2be),this[_0x353201(0x1e6)][_0x353201(0x37f)](I[_0x353201(0x3c3)](vt))),_(this,_0x353201(0x329),a['debounce']((_0x586e1f,_0x5a0e5b)=>{const _0x1384c8=_0x353201,_0x338d72={'eventID':g['CollaborationEvent'][_0x1384c8(0x3c0)],'data':{'unitID':this[_0x1384c8(0x22a)],'memberID':this[_0x1384c8(0x266)]['getMemberID'](),'selection':B[_0x1384c8(0x273)](_0x586e1f,_0x5a0e5b[_0x1384c8(0x33f)])}};this[_0x1384c8(0x266)]['send'](_0x338d72,this[_0x1384c8(0x22a)]);},gt)),(this[_0x353201(0x22a)]=_0x513eac,this[_0x353201(0x266)]=_0x4ed935,this[_0x353201(0x2b1)]=_0x26a706,this[_0x353201(0x351)]=_0x485536,this[_0x353201(0x46f)]=_0x521f81,this[_0x353201(0x301)]=_0x362c10,this[_0x353201(0x219)]=_0x3e6606,this['_refRangeService']=_0x5dfd76);}get['cursorInfo'](){const _0x1a9d63=_0x2737e4;return this['_cursorInfo$'][_0x1a9d63(0x2ea)]();}get['roomMembers'](){const _0x23d8b1=_0x2737e4;return this[_0x23d8b1(0x1e6)][_0x23d8b1(0x2ea)]();}[_0x2737e4(0x24f)](){const _0x15c45b=_0x2737e4;super['dispose'](),this[_0x15c45b(0x3c8)][_0x15c45b(0x337)](new Map()),this[_0x15c45b(0x3c8)][_0x15c45b(0x1e1)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x15c45b(0x1e1)]();}[_0x2737e4(0x36f)](){const _0x5b32d5=_0x2737e4;this[_0x5b32d5(0x33d)]||(this['_init']=!0x0,this['_session'][_0x5b32d5(0x49d)][_0x5b32d5(0x37f)](I[_0x5b32d5(0x35b)](this['dispose$']))[_0x5b32d5(0x302)](_0x45fccf=>{const _0x2538d1=_0x5b32d5;_0x45fccf===u[_0x2538d1(0x234)][_0x2538d1(0x453)]?this[_0x2538d1(0x27c)]():this[_0x2538d1(0x321)]();}),this['_session']['event$']['pipe'](I[_0x5b32d5(0x35b)](this[_0x5b32d5(0x2d1)]))[_0x5b32d5(0x302)](_0x3e279d=>{const _0x5c97c1=_0x5b32d5,_0x2591ff=_0x3e279d[_0x5c97c1(0x30d)];_0x2591ff===g[_0x5c97c1(0x243)][_0x5c97c1(0x3c0)]&&this[_0x5c97c1(0x24c)](_0x3e279d),_0x2591ff===g[_0x5c97c1(0x243)][_0x5c97c1(0x44f)]&&this[_0x5c97c1(0x398)](_0x3e279d);}),this['_onRefRangeChange'](),this[_0x5b32d5(0x306)](this[_0x5b32d5(0x219)]['onCommandExecuted'](_0x4586f4=>{const _0x20e47c=_0x5b32d5;if(this[_0x20e47c(0x290)]&&_0x4586f4['id']===v[_0x20e47c(0x41a)]['id']&&_0x4586f4[_0x20e47c(0x384)][_0x20e47c(0x25e)]===this[_0x20e47c(0x22a)]){const _0x18f45e=_0x4586f4[_0x20e47c(0x384)];this[_0x20e47c(0x329)](_0x18f45e[_0x20e47c(0x28c)],_0x18f45e[_0x20e47c(0x467)][0x0]);}})));}['_onCursorUpdate'](_0x27fd5c){const _0x35b966=_0x2737e4;var _0x136b1d,_0x279ce5;const {memberID:_0x7c5b44,selection:_0x45d97}=_0x27fd5c[_0x35b966(0x370)],{sheetName:_0x15e3d1,range:_0x5e555e}=B[_0x35b966(0x462)](_0x45d97),_0x820be1={'name':(_0x279ce5=(_0x136b1d=this[_0x35b966(0x46f)]['getMember'](this[_0x35b966(0x22a)],_0x7c5b44))==null?void 0x0:_0x136b1d[_0x35b966(0x315)])!=null?_0x279ce5:_0x35b966(0x2f2),'range':this[_0x35b966(0x300)](_0x15e3d1,_0x5e555e),'sheetID':_0x15e3d1,'color':this[_0x35b966(0x351)][_0x35b966(0x235)](_0x7c5b44),'selection':_0x45d97},_0x150125=this[_0x35b966(0x472)];_0x150125[_0x35b966(0x349)](_0x7c5b44,_0x820be1),this[_0x35b966(0x3c8)][_0x35b966(0x337)](_0x150125);}['_onCursorDelete'](_0x2482e0){const _0x50935d=_0x2737e4,{memberID:_0xb3a70}=_0x2482e0[_0x50935d(0x370)],_0x11266b=this[_0x50935d(0x472)];_0x11266b['delete'](_0xb3a70),this[_0x50935d(0x3c8)][_0x50935d(0x337)](_0x11266b);}[_0x2737e4(0x300)](_0x3e9571,_0x3bb4b3){const _0x3e5ab3=_0x2737e4;var _0x43964d,_0x38d552;const _0x43f80b=(_0x38d552=(_0x43964d=this[_0x3e5ab3(0x301)][_0x3e5ab3(0x434)](this[_0x3e5ab3(0x22a)]))==null?void 0x0:_0x43964d['getSheetBySheetId'](_0x3e9571))==null?void 0x0:_0x38d552['getMergeData']();return(_0x43f80b==null?void 0x0:_0x43f80b['find'](_0x3b48bc=>a[_0x3e5ab3(0x262)][_0x3e5ab3(0x44b)](_0x3b48bc,_0x3bb4b3)))||_0x3bb4b3;}[_0x2737e4(0x34e)](){const _0x4ca0a4=_0x2737e4,_0x16e804=new a[(_0x4ca0a4(0x30c))](),_0x5dd98b=Et(),_0x5b9a0f=()=>{const _0x242f45=_0x4ca0a4;_0x16e804['dispose']();const _0x138490=(_0x3dff95,_0x111d10,_0x572b82,_0x610fc3)=>{const _0x41c689=_0x5521;let _0x3a927c=[];switch(_0x3dff95['id']){case v[_0x41c689(0x447)][_0x41c689(0x42a)]:{_0x3a927c=v[_0x41c689(0x374)](_0x3dff95,_0x610fc3);break;}case v[_0x41c689(0x447)][_0x41c689(0x26e)]:{_0x3a927c=v[_0x41c689(0x4a2)](_0x3dff95,_0x610fc3);break;}case v[_0x41c689(0x447)][_0x41c689(0x240)]:{_0x3a927c=v[_0x41c689(0x2ee)](_0x3dff95,_0x610fc3);break;}case v[_0x41c689(0x447)][_0x41c689(0x42b)]:{_0x3a927c=v[_0x41c689(0x3e9)](_0x3dff95,_0x610fc3);break;}case v[_0x41c689(0x447)][_0x41c689(0x25b)]:{_0x3a927c=v[_0x41c689(0x3e2)](_0x3dff95,_0x610fc3);break;}case v[_0x41c689(0x447)]['InsertRowCommandId']:{_0x3a927c=v['handleInsertRow'](_0x3dff95,_0x610fc3);break;}case v['EffectRefRangId'][_0x41c689(0x1eb)]:{_0x3a927c=v['handleMoveRange'](_0x3dff95,_0x610fc3);break;}case v[_0x41c689(0x447)][_0x41c689(0x203)]:{_0x3a927c=v[_0x41c689(0x29b)](_0x3dff95,_0x610fc3);break;}case v[_0x41c689(0x447)][_0x41c689(0x20d)]:{_0x3a927c=v[_0x41c689(0x3c9)](_0x3dff95,_0x610fc3);break;}}const _0x1fbb77=v[_0x41c689(0x1e2)](_0x3a927c,_0x610fc3),_0x4f75c0=this[_0x41c689(0x472)]['get'](_0x111d10);if(_0x4f75c0&&_0x1fbb77){const _0x1bae30={..._0x4f75c0,'range':_0x1fbb77};this[_0x41c689(0x472)][_0x41c689(0x349)](_0x111d10,_0x1bae30),_0x5dd98b(()=>{const _0xba4811=_0x41c689,_0x4824a5=this[_0xba4811(0x46e)][_0xba4811(0x400)](_0x1fbb77,_0x3e01b5=>(_0x4824a5['dispose'](),_0x138490(_0x3e01b5,_0x111d10,_0x572b82,_0x1fbb77)));_0x16e804['add'](_0x4824a5);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x242f45(0x385)]((_0x3fc61a,_0x2ab71f)=>{const _0x55b471=_0x242f45,{range:_0x570d4d,sheetID:_0x17fa9c}=_0x3fc61a,_0x3ae5b2=this[_0x55b471(0x46e)][_0x55b471(0x400)](_0x570d4d,_0x28319c=>(_0x3ae5b2[_0x55b471(0x24f)](),_0x138490(_0x28319c,_0x2ab71f,_0x17fa9c,_0x570d4d)));_0x16e804[_0x55b471(0x269)](_0x3ae5b2);});};this[_0x4ca0a4(0x306)](a[_0x4ca0a4(0x277)](this['_cursorInfo$']['subscribe'](()=>{_0x5b9a0f();})));}['_toggleOnline'](){const _0x476a93=_0x2737e4;var _0xbddc08,_0x1f476a;if(this[_0x476a93(0x290)]=!0x0,((_0xbddc08=this['_univerInstanceService'][_0x476a93(0x217)]())==null?void 0x0:_0xbddc08['getUnitId']())!==this[_0x476a93(0x22a)])return;const _0x37f663=(_0x1f476a=this[_0x476a93(0x2b1)][_0x476a93(0x3cc)](v[_0x476a93(0x3e3)])['getCurrentSelections']())==null?void 0x0:_0x1f476a[0x0],_0x563f3e=this[_0x476a93(0x301)][_0x476a93(0x25c)](a['UniverInstanceType'][_0x476a93(0x3ac)])['getActiveSheet']();_0x37f663&&_0x563f3e&&this[_0x476a93(0x329)](_0x563f3e[_0x476a93(0x1f8)](),_0x37f663);}[_0x2737e4(0x321)](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x2737e4(0x426)](a[_0x2737e4(0x40e)])),w(0x3,a[_0x2737e4(0x426)](Re)),w(0x4,a[_0x2737e4(0x426)](u[_0x2737e4(0x3d2)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x2737e4(0x29d)]),w(0x7,a[_0x2737e4(0x426)](v[_0x2737e4(0x2a1)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x57e803,_0x20c22b,_0x26e534,_0xc859ef)=>{const _0x9966eb=_0x2737e4;for(var _0x3f4977=_0xc859ef>0x1?void 0x0:_0xc859ef?Ct(_0x20c22b,_0x26e534):_0x20c22b,_0x3281dc=_0x57e803[_0x9966eb(0x2b2)]-0x1,_0x48894c;_0x3281dc>=0x0;_0x3281dc--)(_0x48894c=_0x57e803[_0x3281dc])&&(_0x3f4977=_0x48894c(_0x3f4977)||_0x3f4977);return _0x3f4977;},ce=(_0x422ae6,_0x328215)=>(_0x23acef,_0x18a5b1)=>_0x328215(_0x23acef,_0x18a5b1,_0x422ae6);function _0x5521(_0x303ce5,_0x58689e){_0x303ce5=_0x303ce5-0x1d7;const _0x570e0e=_0x570e();let _0x5521c8=_0x570e0e[_0x303ce5];return _0x5521c8;}let F=class extends a[_0x2737e4(0x25a)]{constructor(_0x3285fa,_0x2547a5,_0x2ee80e){const _0x80daae=_0x2737e4;super(),_(this,_0x80daae(0x297),new Map()),_(this,_0x80daae(0x3b5),new I[(_0x80daae(0x1e0))]()),(this[_0x80daae(0x301)]=_0x3285fa,this[_0x80daae(0x2b1)]=_0x2547a5,this['_collabSessionService']=_0x2ee80e,this[_0x80daae(0x33d)]());}[_0x2737e4(0x24f)](){const _0x12220b=_0x2737e4;super['dispose'](),this[_0x12220b(0x3b5)]['complete'](),this[_0x12220b(0x297)][_0x12220b(0x385)](_0x177f04=>_0x177f04['dispose']());}[_0x2737e4(0x491)](_0x5a6681){const _0x2fe2ac=_0x2737e4;return this[_0x2fe2ac(0x297)][_0x2fe2ac(0x48c)](_0x5a6681)?this[_0x2fe2ac(0x297)][_0x2fe2ac(0x3cc)](_0x5a6681)[_0x2fe2ac(0x2b9)]:this['_entityInit$'][_0x2fe2ac(0x37f)](I[_0x2fe2ac(0x21a)](_0x551555=>_0x551555[_0x2fe2ac(0x22a)]===_0x5a6681),I[_0x2fe2ac(0x342)](_0x4a4472=>_0x4a4472[_0x2fe2ac(0x2b9)]));}[_0x2737e4(0x33d)](){const _0x2219f3=_0x2737e4;this['_univerInstanceService'][_0x2219f3(0x2a9)](a['UniverInstanceType'][_0x2219f3(0x3ac)])[_0x2219f3(0x37f)](I['takeUntil'](this[_0x2219f3(0x2d1)]))[_0x2219f3(0x302)](async _0x27cc6f=>{const _0x4cc3f7=_0x2219f3,_0x16884d=_0x27cc6f['getUnitId'](),_0x1fc9ea=await this[_0x4cc3f7(0x367)](_0x16884d);this[_0x4cc3f7(0x3b5)]['next'](_0x1fc9ea),this['_entities'][_0x4cc3f7(0x349)](_0x16884d,_0x1fc9ea);}),this[_0x2219f3(0x301)]['getTypeOfUnitAdded$'](a[_0x2219f3(0x272)][_0x2219f3(0x2ad)])[_0x2219f3(0x37f)](I['takeUntil'](this[_0x2219f3(0x2d1)]))['pipe'](I[_0x2219f3(0x21a)](_0x572e7b=>!_0x572e7b['getUnitId']()[_0x2219f3(0x2f3)]('__')))['subscribe'](async _0x56ae89=>{const _0x359897=_0x2219f3,_0xebdcfd=_0x56ae89[_0x359897(0x310)](),_0x5a5ff7=await this[_0x359897(0x30f)](_0xebdcfd);this[_0x359897(0x3b5)][_0x359897(0x337)](_0x5a5ff7),this[_0x359897(0x297)][_0x359897(0x349)](_0xebdcfd,_0x5a5ff7);}),I['merge'](this[_0x2219f3(0x301)][_0x2219f3(0x245)](a[_0x2219f3(0x272)][_0x2219f3(0x2ad)]),this[_0x2219f3(0x301)][_0x2219f3(0x245)](a[_0x2219f3(0x272)][_0x2219f3(0x3ac)]))['pipe'](I[_0x2219f3(0x35b)](this[_0x2219f3(0x2d1)]))[_0x2219f3(0x302)](_0x168ad5=>{const _0x578a47=_0x2219f3,_0x16c81b=_0x168ad5[_0x578a47(0x310)](),_0x72589e=this[_0x578a47(0x297)]['get'](_0x16c81b);_0x72589e&&(_0x72589e[_0x578a47(0x24f)](),this['_entities'][_0x578a47(0x1df)](_0x16c81b));});}async['_startSheetCollabCursor'](_0x4cf5b8){const _0x35ed3c=_0x2737e4,_0xb8091c=await this[_0x35ed3c(0x451)][_0x35ed3c(0x303)](_0x4cf5b8),_0x45694a=this[_0x35ed3c(0x2b1)][_0x35ed3c(0x26c)](ge,_0x4cf5b8,_0xb8091c);return _0x45694a['init'](),_0x45694a;}async[_0x2737e4(0x30f)](_0x4ba74a){const _0x1a1e63=_0x2737e4,_0x2d43e2=await this[_0x1a1e63(0x451)][_0x1a1e63(0x303)](_0x4ba74a),_0xbc52e5=this[_0x1a1e63(0x2b1)]['createInstance'](ve,_0x4ba74a,_0x2d43e2);return _0xbc52e5['init'](),_0xbc52e5;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x2737e4(0x426)](a['Injector'])),ce(0x2,a[_0x2737e4(0x426)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x389874,_0x1d1985){const _0x30153d=_0x2737e4;let {radius:_0xb47035,width:_0x22105e,height:_0x38ee72}=_0x1d1985;_0xb47035=_0xb47035!=null?_0xb47035:0x0,_0x22105e=_0x22105e!=null?_0x22105e:0x1e,_0x38ee72=_0x38ee72!=null?_0x38ee72:0x1e;let _0x2e3f30=0x0,_0x4829d5=0x0,_0x30f704=0x0;_0x2e3f30=_0x4829d5=_0x30f704=Math[_0x30153d(0x32f)](_0xb47035,_0x22105e/0x2,_0x38ee72/0x2),_0x389874[_0x30153d(0x1ef)](),_0x389874[_0x30153d(0x40b)](_0x2e3f30,0x0),_0x389874[_0x30153d(0x26f)](_0x22105e-_0x4829d5,0x0),_0x389874[_0x30153d(0x49a)](_0x22105e-_0x4829d5,_0x4829d5,_0x4829d5,Math['PI']*0x3/0x2,0x0,!0x1),_0x389874[_0x30153d(0x26f)](_0x22105e,_0x38ee72-_0x30f704),_0x389874[_0x30153d(0x49a)](_0x22105e-_0x30f704,_0x38ee72-_0x30f704,_0x30f704,0x0,Math['PI']/0x2,!0x1),_0x389874[_0x30153d(0x26f)](0x0,_0x38ee72),_0x389874[_0x30153d(0x26f)](0x0,_0x2e3f30),_0x389874[_0x30153d(0x49a)](_0x2e3f30,_0x2e3f30,_0x2e3f30,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x389874[_0x30153d(0x48e)](),_0x1d1985[_0x30153d(0x446)]&&(_0x389874[_0x30153d(0x36a)](),_0x389874['fillStyle']=_0x1d1985['fill'],_0x1d1985['fillRule']===_0x30153d(0x3f5)?_0x389874[_0x30153d(0x446)]('evenodd'):_0x389874[_0x30153d(0x446)](),_0x389874[_0x30153d(0x334)]());}class re extends C[_0x2737e4(0x43c)]{constructor(_0xe95aef,_0x6c350c){const _0x15a9f2=_0x2737e4;super(_0xe95aef,_0x6c350c),_(this,_0x15a9f2(0x478)),_(this,_0x15a9f2(0x394)),(this['color']=_0x6c350c==null?void 0x0:_0x6c350c[_0x15a9f2(0x478)],this[_0x15a9f2(0x394)]=_0x6c350c==null?void 0x0:_0x6c350c[_0x15a9f2(0x394)]);}static[_0x2737e4(0x41f)](_0x1a8cc1,_0x474241){const _0x4460c6=_0x2737e4,{text:_0x23b9fd,color:_0x2d3509}=_0x474241;_0x1a8cc1[_0x4460c6(0x36a)](),_0x1a8cc1[_0x4460c6(0x22e)]=_0x4460c6(0x280);const _0x20b99=_0x1a8cc1[_0x4460c6(0x470)](_0x23b9fd)[_0x4460c6(0x449)],_0x41044d=Math[_0x4460c6(0x32f)](_0x20b99+0x2*le,Ue);Ot(_0x1a8cc1,{'height':X,'radius':0x4,'width':_0x41044d,'fill':_0x2d3509}),_0x1a8cc1[_0x4460c6(0x2b7)]='#FFF';const _0x46712b=le,_0x46e860=X-pt,_0x1d6c0a=Ue-0x2*le;if(_0x20b99>_0x1d6c0a){let _0x2998bb='',_0x354f75=0x0;for(const _0x9b1dbb of _0x23b9fd){const _0x1dde76=_0x1a8cc1[_0x4460c6(0x470)](_0x9b1dbb)[_0x4460c6(0x449)];if(_0x354f75+_0x1dde76<=_0x1d6c0a-_0x1a8cc1[_0x4460c6(0x470)]('...')['width'])_0x2998bb+=_0x9b1dbb,_0x354f75+=_0x1dde76;else{_0x2998bb+=_0x4460c6(0x418);break;}}_0x1a8cc1[_0x4460c6(0x299)](_0x2998bb,_0x46712b,_0x46e860);}else _0x1a8cc1[_0x4460c6(0x299)](_0x23b9fd,_0x46712b,_0x46e860);_0x1a8cc1['restore']();}[_0x2737e4(0x366)](_0x223f93){re['drawWith'](_0x223f93,this);}}const _e='collab-text-anchor-',Rt=_0x2737e4(0x3ea),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x368f61,_0x4413a5,_0x21041b,_0x1a5262){const _0x23f507=_0x2737e4;_(this,'_shapes',[]),_(this,_0x23f507(0x420),null),_(this,'_textBubble',null),_(this,_0x23f507(0x1da),null),_(this,'_hideTimer',null),_(this,_0x23f507(0x382),null),(this[_0x23f507(0x381)]=_0x368f61,this[_0x23f507(0x27f)]=_0x4413a5,this[_0x23f507(0x1db)]=_0x21041b,this[_0x23f507(0x413)]=_0x1a5262,this['_render']());}set[_0x2737e4(0x287)](_0x4d25bb){const _0x19e754=_0x2737e4;_0x4d25bb?(this[_0x19e754(0x1da)]&&this[_0x19e754(0x1da)]['hide'](),this['_textBubble']&&this[_0x19e754(0x224)][_0x19e754(0x3eb)]()):(this[_0x19e754(0x1da)]&&this[_0x19e754(0x1da)][_0x19e754(0x3eb)](),this[_0x19e754(0x224)]&&this[_0x19e754(0x224)][_0x19e754(0x40d)]());}[_0x2737e4(0x24f)](){const _0xe7a24f=_0x2737e4;for(const _0x5d7ccb of this[_0xe7a24f(0x308)])_0x5d7ccb[_0xe7a24f(0x24f)]();this[_0xe7a24f(0x224)]&&this[_0xe7a24f(0x224)]['dispose'](),this[_0xe7a24f(0x1da)]&&this[_0xe7a24f(0x1da)][_0xe7a24f(0x24f)](),this[_0xe7a24f(0x420)]&&this[_0xe7a24f(0x420)][_0xe7a24f(0x24f)](),this[_0xe7a24f(0x382)]&&this[_0xe7a24f(0x382)]();}['_render'](){const _0x1938f5=_0x2737e4;var _0x571530;const {_docSkeleton:_0x185949,_document:_0x4aa62a}=this,{color:_0x4dccdb,name:_0x25ffa4,ranges:_0x5b6cb2}=this[_0x1938f5(0x381)],_0x4440cb=_0x4aa62a[_0x1938f5(0x212)](),{docsLeft:_0x52a36d,docsTop:_0xc105b}=_0x4440cb,_0x12141b=new T[(_0x1938f5(0x343))](_0x4440cb,_0x185949);for(const {startOffset:_0x11cd95,endOffset:_0x27d81a,rangeType:_0x41a393,segmentId:_0x18b050,segmentPage:_0x2b8d9f,collapsed:_0x33c461,isActive:_0x367994}of _0x5b6cb2){const _0x3a5530=_0x185949[_0x1938f5(0x35a)](_0x11cd95,!0x0,_0x18b050,_0x2b8d9f);let _0x24d2eb=_0x185949[_0x1938f5(0x35a)](_0x27d81a,!0x0,_0x18b050,_0x2b8d9f);if(_0x24d2eb==null&&(_0x24d2eb=_0x185949[_0x1938f5(0x35a)](_0x27d81a-0x1,!0x1,_0x18b050,_0x2b8d9f)),_0x367994){const {contentBoxPointGroup:_0x29cb47}=_0x12141b[_0x1938f5(0x3c5)](_0x24d2eb,_0x24d2eb);if(_0x29cb47['length']===0x0)continue;this[_0x1938f5(0x267)](_0x4dccdb,_0x29cb47,_0x52a36d,_0xc105b,_0x25ffa4),this[_0x1938f5(0x382)]=this[_0x1938f5(0x3e6)]();}if(_0x3a5530&&_0x24d2eb){if(_0x41a393===a[_0x1938f5(0x309)][_0x1938f5(0x3ad)]){const _0x1667e2=new T[(_0x1938f5(0x3a1))](_0x4440cb,_0x185949),{pointGroup:_0x1867f2}=(_0x571530=_0x1667e2[_0x1938f5(0x3c5)](_0x3a5530,_0x24d2eb))!=null?_0x571530:{};if(_0x1867f2==null||_0x1867f2[_0x1938f5(0x2b2)]===0x0)continue;this[_0x1938f5(0x3d8)](_0x4dccdb,_0x1867f2,_0x52a36d,_0xc105b);}else{if(!_0x33c461){const {borderBoxPointGroup:_0x1c9992}=_0x12141b[_0x1938f5(0x3c5)](_0x3a5530,_0x24d2eb);if(_0x1c9992[_0x1938f5(0x2b2)]===0x0)continue;this[_0x1938f5(0x3a8)](_0x4dccdb,_0x1c9992,_0x52a36d,_0xc105b);}}}}}[_0x2737e4(0x267)](_0x3d9efd,_0x97f555,_0x4dc401,_0x545f71,_0x1b0d71){const _0x3808d3=_0x2737e4,_0x43e880=this['_getAnchorBounding'](_0x97f555),{left:_0x56a84d,top:_0x4f57b8,height:_0x3df6f8}=_0x43e880,_0x21ae2b=this[_0x3808d3(0x20f)](),_0x428854=Nt/_0x21ae2b,_0x445390=new C[(_0x3808d3(0x485))](_e+a[_0x3808d3(0x46c)](H),{'left':_0x56a84d+_0x4dc401-_0x428854,'top':_0x4f57b8+_0x545f71,'height':_0x3df6f8,'width':Dt,'fill':_0x3d9efd||C[_0x3808d3(0x350)](a[_0x3808d3(0x331)][_0x3808d3(0x288)],0x0),'strokeWidth':_0x428854,'stroke':Ut,'evented':!0x0});this[_0x3808d3(0x420)]=_0x445390,this['_scene']['addObject'](_0x445390,T[_0x3808d3(0x3a6)]);const _0x5d03b=new C['Rect'](_e+a[_0x3808d3(0x46c)](H),{'left':_0x56a84d+_0x4dc401-_0x428854,'top':_0x4f57b8+_0x545f71-he/0x2,'height':he,'width':he,'fill':_0x3d9efd||C[_0x3808d3(0x350)](a[_0x3808d3(0x331)][_0x3808d3(0x288)],0x0),'strokeWidth':0x0,'stroke':_0x3d9efd||C['getColor'](a[_0x3808d3(0x331)]['black'],0x0),'evented':!0x1});this[_0x3808d3(0x1da)]=_0x5d03b,this[_0x3808d3(0x27f)][_0x3808d3(0x298)](_0x5d03b,T['TEXT_RANGE_LAYER_INDEX']);const _0x203ab7=new re(_e+a[_0x3808d3(0x46c)](H),{'left':_0x56a84d+_0x4dc401-_0x428854,'top':_0x4f57b8+_0x545f71-X,'text':_0x1b0d71,'color':_0x3d9efd});this[_0x3808d3(0x224)]=_0x203ab7,this['_scene']['addObject'](_0x203ab7,T[_0x3808d3(0x3a6)]),this['_hover']=!0x1;}['_handleHover'](){const _0x46ced5=_0x2737e4,_0x2e57e5=this[_0x46ced5(0x420)][_0x46ced5(0x22d)]['subscribeEvent'](()=>{const _0x23735e=_0x46ced5;this[_0x23735e(0x287)]=!0x0;}),_0x39b673=this[_0x46ced5(0x420)][_0x46ced5(0x21b)][_0x46ced5(0x3d0)](()=>{const _0x36490c=_0x46ced5;this[_0x36490c(0x257)]&&clearTimeout(this[_0x36490c(0x257)]),this[_0x36490c(0x257)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0xfdea49=_0x46ced5;_0x2e57e5[_0xfdea49(0x477)](),_0x39b673[_0xfdea49(0x477)]();};}[_0x2737e4(0x3a8)](_0x4bdd66,_0xee7936,_0x26aae0,_0x12b078){const _0x112e27=_0x2737e4,_0x45a0b8=new a['ColorKit'](_0x4bdd66)[_0x112e27(0x20a)](0.2)['toRgbString'](),_0x4b6f42=new C[(_0x112e27(0x37c))](Rt+a[_0x112e27(0x46c)](H),{'pointsGroup':_0xee7936,'fill':_0x45a0b8||C[_0x112e27(0x350)](a[_0x112e27(0x331)]['black'],0.2),'left':_0x26aae0,'top':_0x12b078,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4b6f42),this['_scene']['addObject'](_0x4b6f42,T[_0x112e27(0x3a6)]);}[_0x2737e4(0x3d8)](_0xdbd055,_0x2a89ce,_0x595bb1,_0x978381){const _0x3eb71b=_0x2737e4,_0x2a84ca=new a['ColorKit'](_0xdbd055)[_0x3eb71b(0x20a)](0.2)['toRgbString'](),_0x250462=new C[(_0x3eb71b(0x37c))](bt+a[_0x3eb71b(0x46c)](H),{'pointsGroup':_0x2a89ce,'fill':_0x2a84ca||C['getColor'](a['COLORS'][_0x3eb71b(0x288)],0.2),'left':_0x595bb1,'top':_0x978381,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3eb71b(0x308)][_0x3eb71b(0x2ba)](_0x250462),this[_0x3eb71b(0x27f)][_0x3eb71b(0x298)](_0x250462,T[_0x3eb71b(0x3a6)]);}['_getAnchorBounding'](_0x4a0389){const _0x4f273e=_0x4a0389[0x0],_0x247729=_0x4f273e[0x0],_0x360c59=_0x4f273e[0x2],{x:_0x2cd87f,y:_0x11401e}=_0x247729,{x:_0x5eacce,y:_0x3d4666}=_0x360c59;return{'left':_0x2cd87f,'top':_0x11401e,'width':_0x5eacce-_0x2cd87f,'height':_0x3d4666-_0x11401e};}['_getScale'](){const _0x28e748=_0x2737e4,{scaleX:_0x4bd41b,scaleY:_0x98a0d2}=this[_0x28e748(0x27f)][_0x28e748(0x3f6)]();return Math['max'](_0x4bd41b,_0x98a0d2);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x101a7b,_0x9096da,_0x31cb14,_0x111e89)=>{const _0x5e9d7f=_0x2737e4;for(var _0x1c0a29=_0x111e89>0x1?void 0x0:_0x111e89?Lt(_0x9096da,_0x31cb14):_0x9096da,_0x5d749e=_0x101a7b[_0x5e9d7f(0x2b2)]-0x1,_0x13c2b4;_0x5d749e>=0x0;_0x5d749e--)(_0x13c2b4=_0x101a7b[_0x5d749e])&&(_0x1c0a29=_0x13c2b4(_0x1c0a29)||_0x1c0a29);return _0x1c0a29;},q=(_0x39dec7,_0x4045ba)=>(_0x2b06ce,_0x1d8748)=>_0x4045ba(_0x2b06ce,_0x1d8748,_0x39dec7);let Ee=class extends a['RxDisposable']{constructor(_0x5b5960,_0x109ea5,_0x44a5de,_0x4abfef,_0x4ac754){const _0x5e6fe3=_0x2737e4;super(),_(this,_0x5e6fe3(0x46b),[]),_(this,_0x5e6fe3(0x357),[]),(this[_0x5e6fe3(0x375)]=_0x5b5960,this[_0x5e6fe3(0x3d6)]=_0x109ea5,this[_0x5e6fe3(0x2ff)]=_0x44a5de,this[_0x5e6fe3(0x219)]=_0x4abfef,this[_0x5e6fe3(0x419)]=_0x4ac754,this[_0x5e6fe3(0x33d)]());}[_0x2737e4(0x33d)](){const _0x41daa2=_0x2737e4,_0x3b8dbe=this[_0x41daa2(0x375)][_0x41daa2(0x25e)],_0x275670=this['_docSkeletonManagerService'];this[_0x41daa2(0x306)](I[_0x41daa2(0x1ff)]([this[_0x41daa2(0x2ff)]['getCollabCursors$'](_0x3b8dbe),this[_0x41daa2(0x419)]['currentTheme$']])['pipe']($[_0x41daa2(0x415)](([_0x2219e0,_0x27c024])=>({'skeleton':_0x275670[_0x41daa2(0x474)](),'cursors':[..._0x2219e0['values']()][_0x41daa2(0x336)](_0x381cfa=>({..._0x381cfa,'color':this[_0x41daa2(0x419)][_0x41daa2(0x379)](_0x381cfa[_0x41daa2(0x478)])}))})))[_0x41daa2(0x302)](_0x5685e0=>{const _0x44867e=_0x41daa2;if(this[_0x44867e(0x43e)](),_0x5685e0){const {skeleton:_0x2736cf,cursors:_0x239bd6}=_0x5685e0;this[_0x44867e(0x1f5)](_0x2736cf,_0x239bd6);}})),this[_0x41daa2(0x40a)](),this[_0x41daa2(0x450)]();}['_updateCollabCursors'](_0x1b01e9,_0x2120c0){const _0x582f57=_0x2737e4,{scene:_0x2b91f0,mainComponent:_0x59e521}=this[_0x582f57(0x375)],_0x54de69=_0x2120c0['map'](_0xc15814=>new Le(_0xc15814,_0x2b91f0,_0x1b01e9,_0x59e521));this['_cursorShapes']=_0x54de69,this[_0x582f57(0x357)]=_0x2120c0;}[_0x2737e4(0x378)](){const _0x1e28b6=_0x2737e4;this[_0x1e28b6(0x43e)]();const {scene:_0x5e5458,mainComponent:_0xa374b8}=this['_context'],_0x3300b4=this[_0x1e28b6(0x3d6)][_0x1e28b6(0x474)](),_0xb1d8a5=this[_0x1e28b6(0x357)][_0x1e28b6(0x415)](_0x3d194e=>new Le(_0x3d194e,_0x5e5458,_0x3300b4,_0xa374b8));this[_0x1e28b6(0x46b)]=_0xb1d8a5;}['_removeCollabCursors'](){const _0x51285a=_0x2737e4;this['_cursorShapes'][_0x51285a(0x385)](_0x38211b=>_0x38211b['dispose']()),this['_cursorShapes']=[];}[_0x2737e4(0x450)](){const _0x1e73f1=_0x2737e4,_0x16a604=[T[_0x1e73f1(0x2a6)]['id']];this[_0x1e73f1(0x306)](this[_0x1e73f1(0x219)][_0x1e73f1(0x304)](_0x3ab170=>{const _0x4fd37b=_0x1e73f1;_0x16a604[_0x4fd37b(0x3de)](_0x3ab170['id'])&&_0x3ab170[_0x4fd37b(0x384)][_0x4fd37b(0x25e)]===this[_0x4fd37b(0x375)][_0x4fd37b(0x25e)]&&this[_0x4fd37b(0x378)]();}));}[_0x2737e4(0x40a)](){const _0x40a957=_0x2737e4;this['disposeWithMe'](a[_0x40a957(0x3ed)](this[_0x40a957(0x375)][_0x40a957(0x3ab)][_0x40a957(0x2f6)])['pipe']($[_0x40a957(0x21a)](_0x2c61d1=>_0x2c61d1[_0x40a957(0x2e6)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x40a957(0x380)]),$[_0x40a957(0x29a)](0x10))[_0x40a957(0x302)](()=>{const _0x209e07=_0x40a957;this[_0x209e07(0x378)]();}));}};Ee=Mt([q(0x1,a[_0x2737e4(0x426)](V[_0x2737e4(0x313)])),q(0x2,a[_0x2737e4(0x426)](F)),q(0x3,a[_0x2737e4(0x29d)]),q(0x4,a['Inject'](a[_0x2737e4(0x435)]))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0x292317,_0x184528){const _0x299e3b=_0x2737e4;super(_0x292317,_0x184528),_(this,_0x299e3b(0x32a)),_(this,_0x299e3b(0x48d),!0x1),_(this,_0x299e3b(0x47a)),_(this,'_name',''),_(this,_0x299e3b(0x2de),'top'),_(this,_0x299e3b(0x1f7)),(_0x184528&&this[_0x299e3b(0x213)](_0x184528),this[_0x299e3b(0x22d)][_0x299e3b(0x3d0)](()=>this[_0x299e3b(0x213)]({'hovered':!0x0})),this[_0x299e3b(0x21b)][_0x299e3b(0x3d0)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2737e4(0x213)](_0x43e790){const _0x30918f=_0x2737e4;var _0x142494,_0x2961fe,_0x45cdf8,_0x29794a,_0x137a47,_0x24fac4;this['_color']=(_0x142494=_0x43e790[_0x30918f(0x478)])!=null?_0x142494:this['_color'],this['_hovered']=(_0x2961fe=_0x43e790[_0x30918f(0x1f6)])!=null?_0x2961fe:this[_0x30918f(0x48d)],this[_0x30918f(0x47a)]=(_0x45cdf8=_0x43e790[_0x30918f(0x33f)])!=null?_0x45cdf8:this[_0x30918f(0x47a)],this[_0x30918f(0x4a1)]=(_0x29794a=_0x43e790[_0x30918f(0x315)])!=null?_0x29794a:this[_0x30918f(0x4a1)],this[_0x30918f(0x2de)]=(_0x137a47=_0x43e790[_0x30918f(0x1ec)])!=null?_0x137a47:this[_0x30918f(0x2de)],this[_0x30918f(0x1f7)]=(_0x24fac4=_0x43e790['backgroundColor'])!=null?_0x24fac4:this[_0x30918f(0x1f7)],this['transformByState']({'width':_0x43e790['width'],'height':_0x43e790['height']});}[_0x2737e4(0x28a)](_0x4e3790){const _0x377289=_0x2737e4,{row:_0x540cce,column:_0x40838c}=_0x4e3790;if(_0x540cce>=this[_0x377289(0x47a)]['startRow']&&_0x540cce<=this['_range']['endRow']&&_0x40838c>=this[_0x377289(0x47a)]['startColumn']&&_0x40838c<=this[_0x377289(0x47a)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x377289(0x213)]({'hovered':!0x1});}[_0x2737e4(0x2ac)](_0x56c3dd){return!0x1;}[_0x2737e4(0x366)](_0xf0bfc3){const _0x1206cf=_0x2737e4;C[_0x1206cf(0x485)]['drawWith'](_0xf0bfc3,{'width':this[_0x1206cf(0x449)],'height':this[_0x1206cf(0x2ab)],'strokeWidth':Pt,'stroke':this[_0x1206cf(0x32a)],'evented':!0x1,'fill':this[_0x1206cf(0x1f7)]}),this['_hovered']&&(_0xf0bfc3[_0x1206cf(0x36a)](),_0xf0bfc3[_0x1206cf(0x1ee)](0x1,0x0,0x0,0x1,this[_0x1206cf(0x449)],this[_0x1206cf(0x2de)]===_0x1206cf(0x427)?0x0:-X),re[_0x1206cf(0x41f)](_0xf0bfc3,{'text':this[_0x1206cf(0x4a1)],'color':this[_0x1206cf(0x32a)]}),_0xf0bfc3[_0x1206cf(0x334)]());}}var wt=Object[_0x2737e4(0x232)],yt=(_0x29248b,_0x3bc042,_0x5bb500,_0x941e2b)=>{for(var _0x1138e9=_0x941e2b>0x1?void 0x0:_0x941e2b?wt(_0x3bc042,_0x5bb500):_0x3bc042,_0x4f580a=_0x29248b['length']-0x1,_0x44472a;_0x4f580a>=0x0;_0x4f580a--)(_0x44472a=_0x29248b[_0x4f580a])&&(_0x1138e9=_0x44472a(_0x1138e9)||_0x1138e9);return _0x1138e9;},ue=(_0x2b794c,_0x4822b9)=>(_0x9d6114,_0x304393)=>_0x4822b9(_0x9d6114,_0x304393,_0x2b794c);const $t=0x1389;let Ce=class extends a[_0x2737e4(0x25a)]{constructor(_0x32252c,_0x1fe67d,_0x5e0318,_0x534cd1){const _0x39562f=_0x2737e4;super(),_(this,_0x39562f(0x357),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x32252c,this['_sheetSkeletonManagerService']=_0x1fe67d,this['_collabCursorController']=_0x5e0318,this[_0x39562f(0x419)]=_0x534cd1,this[_0x39562f(0x33d)]());}[_0x2737e4(0x33d)](){const _0x2becc6=_0x2737e4;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2becc6(0x37f)]($[_0x2becc6(0x35b)](this[_0x2becc6(0x2d1)]),$['switchMap'](_0x4eb1ce=>{const _0x1698ef=_0x2becc6;if(_0x4eb1ce){const _0x3cfdba=_0x4eb1ce[_0x1698ef(0x21c)];return I[_0x1698ef(0x1ff)](this[_0x1698ef(0x2ff)][_0x1698ef(0x491)](this[_0x1698ef(0x375)]['unitId']),this[_0x1698ef(0x419)]['currentTheme$'])[_0x1698ef(0x37f)]($[_0x1698ef(0x415)](([_0x14410c,_0x3a52cb])=>{const _0x5e277e=_0x1698ef,_0xf5e914=new Map();return _0x14410c[_0x5e277e(0x385)]((_0x5a5a8b,_0x21db57)=>{const _0x375faa=_0x5e277e;if(_0x5a5a8b[_0x375faa(0x433)]===_0x3cfdba){const _0x5650fb={..._0x5a5a8b};_0x5650fb[_0x375faa(0x478)]=this[_0x375faa(0x419)][_0x375faa(0x379)](_0x5a5a8b[_0x375faa(0x478)]),_0xf5e914[_0x375faa(0x349)](_0x21db57,_0x5650fb);}}),{'skeleton':_0x4eb1ce,'cursors':_0xf5e914};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x2becc6(0x302)](({skeleton:_0x3a03c0,cursors:_0x503c51})=>{const _0x5216db=_0x2becc6;this[_0x5216db(0x43e)](),_0x3a03c0&&this[_0x5216db(0x1f5)](_0x3a03c0,_0x503c51);}),this[_0x2becc6(0x430)][_0x2becc6(0x2c0)][_0x2becc6(0x302)](_0x387ba8=>{const _0x3baa13=_0x2becc6;if(_0x387ba8==null)return;const {skeleton:_0x3b6bfc}=_0x387ba8,{scene:_0x3ac0c8}=this[_0x3baa13(0x375)];_0x3ac0c8[_0x3baa13(0x218)]['subscribeEvent'](a[_0x3baa13(0x33b)](_0x3baddb=>{const _0xaff7c8=_0x3baa13;var _0xf2fec5,_0x17e4bb;const {offsetX:_0x32dfd1,offsetY:_0x1cbcc2}=_0x3baddb,{x:_0x38bb1f,y:_0x3e7bca}=_0x3ac0c8[_0xaff7c8(0x1fa)](C[_0xaff7c8(0x403)][_0xaff7c8(0x45f)]([_0x32dfd1,_0x1cbcc2])),{scaleX:_0x3e195a,scaleY:_0x1815d3}=_0x3ac0c8[_0xaff7c8(0x3f6)](),_0x33d0d3=_0x3ac0c8[_0xaff7c8(0x376)](C[_0xaff7c8(0x1e8)][_0xaff7c8(0x45d)]),_0x2582d5=_0x3ac0c8[_0xaff7c8(0x324)](C[_0xaff7c8(0x403)][_0xaff7c8(0x45f)]([_0x38bb1f,_0x3e7bca]),_0x33d0d3),_0x32426d=_0x3b6bfc[_0xaff7c8(0x496)](_0x32dfd1,_0x1cbcc2,_0x3e195a,_0x1815d3,_0x2582d5);((_0xf2fec5=this[_0xaff7c8(0x3ec)])==null?void 0x0:_0xf2fec5['column'])===_0x32426d['column']&&((_0x17e4bb=this['_lastPointer'])==null?void 0x0:_0x17e4bb[_0xaff7c8(0x402)])===_0x32426d[_0xaff7c8(0x402)]||this[_0xaff7c8(0x357)][_0xaff7c8(0x385)](_0x33e0ca=>{const _0xc67c18=_0xaff7c8;_0x33e0ca[_0xc67c18(0x28a)](_0x32426d);});},0x64));});}[_0x2737e4(0x1f5)](_0x95d2f7,_0x11ac74){const _0x3138b9=_0x2737e4;var _0x2b58a9;const _0x584faa=(_0x2b58a9=this[_0x3138b9(0x430)]['getCurrent']())==null?void 0x0:_0x2b58a9[_0x3138b9(0x4a7)];if(!_0x584faa)return;const _0x4af18a=this[_0x3138b9(0x238)]();if(!_0x4af18a)return;this[_0x3138b9(0x357)][_0x3138b9(0x385)](_0x3d7b77=>{_0x3d7b77['makeDirty']();});const {scene:_0x1b531f}=_0x4af18a,_0x31e23d=xt(Array[_0x3138b9(0x3a2)](_0x11ac74[_0x3138b9(0x47f)]()))[_0x3138b9(0x415)](_0x3ac362=>{const _0x231865=_0x3138b9,{color:_0x172d28,range:_0x319e2d,name:_0x248a39,selection:_0x56180f,sheetID:_0x33e337}=_0x3ac362,{startColumn:_0x2ee583,startRow:_0x21ba5a,endColumn:_0x87ad96,endRow:_0x18b113}=_0x319e2d,_0x2c4c3a=J[_0x231865(0x2e0)](_0x21ba5a,_0x2ee583,_0x1b531f,_0x584faa),_0x2c67a1=J[_0x231865(0x2e0)](_0x18b113,_0x87ad96,_0x1b531f,_0x584faa),{columnHeaderHeightAndMarginTop:_0x1eb5c9}=_0x584faa,{startX:_0x5e35e8,startY:_0x10383e}=_0x2c4c3a,{endX:_0x362085,endY:_0x54eecc}=_0x2c67a1,_0x35d2fe=_0x362085-_0x5e35e8,_0x3eca4a=_0x54eecc-_0x10383e,_0x35f000={'labelPosition':_0x10383e-_0x1eb5c9>=X?'top':_0x231865(0x427),'sheetID':_0x33e337,'range':_0x319e2d,'color':_0x172d28,'name':_0x248a39,'selection':_0x56180f,'left':_0x5e35e8,'top':_0x10383e,'width':_0x35d2fe,'height':_0x3eca4a,'evented':!0x1,'zIndex':$t};return new je(_0x248a39,_0x35f000);});_0x1b531f[_0x3138b9(0x2ca)](_0x31e23d,At),this[_0x3138b9(0x357)]=new Set(_0x31e23d);}[_0x2737e4(0x43e)](){const _0x1ebbb5=_0x2737e4;var _0x2d23e6;(_0x2d23e6=this[_0x1ebbb5(0x357)])==null||_0x2d23e6[_0x1ebbb5(0x385)](_0x3ff826=>_0x3ff826['dispose']());}[_0x2737e4(0x238)](){const _0x26174d=_0x2737e4;return J[_0x26174d(0x42e)](this[_0x26174d(0x375)]['unit'],this['_context']);}};Ce=yt([ue(0x1,a['Inject'](J[_0x2737e4(0x344)])),ue(0x2,a[_0x2737e4(0x426)](F)),ue(0x3,a[_0x2737e4(0x426)](a[_0x2737e4(0x435)]))],Ce);function xt(_0x36ae05){const _0x471141=_0x2737e4,_0x266187=new Map();return _0x36ae05[_0x471141(0x385)](_0x17c14c=>{const _0x2cff97=_0x471141;if(_0x266187['has'](_0x17c14c[_0x2cff97(0x454)])){const _0x3633d7=_0x266187[_0x2cff97(0x3cc)](_0x17c14c[_0x2cff97(0x454)]);_0x3633d7[_0x2cff97(0x315)]+=',\x20'+_0x17c14c[_0x2cff97(0x315)];}else _0x266187[_0x2cff97(0x349)](_0x17c14c[_0x2cff97(0x454)],_0x17c14c);}),Array[_0x471141(0x3a2)](_0x266187[_0x471141(0x47f)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x52af64,_0x59be45,_0x4f7287,_0x2cbf4d)=>{const _0x53d182=_0x2737e4;for(var _0x4dd98e=_0x2cbf4d>0x1?void 0x0:_0x2cbf4d?Bt(_0x59be45,_0x4f7287):_0x59be45,_0x5db6fe=_0x52af64[_0x53d182(0x2b2)]-0x1,_0xc17fb;_0x5db6fe>=0x0;_0x5db6fe--)(_0xc17fb=_0x52af64[_0x5db6fe])&&(_0x4dd98e=_0xc17fb(_0x4dd98e)||_0x4dd98e);return _0x4dd98e;},y=(_0x1c6736,_0x25f7f9)=>(_0x320ea9,_0x401a6b)=>_0x25f7f9(_0x320ea9,_0x401a6b,_0x1c6736);let Z=class extends a['Disposable']{constructor(_0x2e6f8b,_0x5cfa37,_0x573786,_0x4cbc74,_0x1bfe4a,_0x113e68){const _0x3f13ad=_0x2737e4;super(),this['_beforeCloseService']=_0x2e6f8b,this['_localCacheService']=_0x5cfa37,this[_0x3f13ad(0x237)]=_0x573786,this[_0x3f13ad(0x34b)]=_0x4cbc74,this[_0x3f13ad(0x31d)]=_0x1bfe4a,this['_localeService']=_0x113e68,this[_0x3f13ad(0x254)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x21640e=_0x2737e4;this[_0x21640e(0x306)](this['_beforeCloseService'][_0x21640e(0x3a7)](()=>{const _0x5e9dbe=_0x21640e;if(this[_0x5e9dbe(0x3f4)]['saveTaskMap']['size'])return this[_0x5e9dbe(0x21d)]['t']('collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x10b74e=_0x2737e4;this['disposeWithMe'](this[_0x10b74e(0x237)][_0x10b74e(0x455)][_0x10b74e(0x302)](_0x472479=>{const _0x254738=_0x10b74e;_0x472479['id']===u[_0x254738(0x3ae)][_0x254738(0x2c4)]&&this['_messageService'][_0x254738(0x3eb)]({'type':p[_0x254738(0x3f3)]['Warning'],'content':this[_0x254738(0x21d)]['t'](_0x254738(0x360))}),_0x472479['id']===u[_0x254738(0x3ae)]['CLOSE_ROOM']&&this[_0x254738(0x34b)]['show']({'type':p[_0x254738(0x3f3)][_0x254738(0x311)],'content':this[_0x254738(0x21d)]['t'](_0x254738(0x3cb))}),_0x472479['id']===u['CollaborationUIEventId'][_0x254738(0x317)]&&this[_0x254738(0x31d)][_0x254738(0x3eb)]({'title':this[_0x254738(0x21d)]['t'](_0x254738(0x332)),'content':this['_localeService']['t']('permission.content'),'type':_0x254738(0x2bb),'duration':0x0}),_0x472479['id']===u[_0x254738(0x3ae)][_0x254738(0x468)]&&this['_messageService']['show']({'type':p[_0x254738(0x3f3)][_0x254738(0x2c3)],'content':this[_0x254738(0x21d)]['t'](_0x254738(0x3cb))+'('+_0x472479['data']+')'}),_0x472479['id']===u[_0x254738(0x3ae)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x254738(0x3eb)]({'type':p[_0x254738(0x3f3)]['Warning'],'content':this[_0x254738(0x21d)]['t'](_0x472479['data']||'')}),_0x472479['id']===u[_0x254738(0x3ae)][_0x254738(0x2b6)]&&this[_0x254738(0x34b)][_0x254738(0x3eb)]({'type':p['MessageType'][_0x254738(0x311)],'content':this[_0x254738(0x21d)]['t']('session.will-retry')}),_0x472479['id']===u[_0x254738(0x3ae)][_0x254738(0x27d)]&&this['_messageService'][_0x254738(0x3eb)]({'type':p[_0x254738(0x3f3)][_0x254738(0x2c3)],'content':this['_localeService']['t'](_0x254738(0x3a3))}),_0x472479['id']===u[_0x254738(0x3ae)][_0x254738(0x2a8)]&&this[_0x254738(0x34b)][_0x254738(0x3eb)]({'type':p[_0x254738(0x3f3)][_0x254738(0x2c3)],'content':this['_localeService']['t'](_0x254738(0x3fb))});}));}};Z=Ft([y(0x0,O[_0x2737e4(0x37a)]),y(0x1,u[_0x2737e4(0x3d5)]),y(0x2,a[_0x2737e4(0x426)](u[_0x2737e4(0x43f)])),y(0x3,O[_0x2737e4(0x4a8)]),y(0x4,O[_0x2737e4(0x457)]),y(0x5,a[_0x2737e4(0x426)](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x587913,_0x275dc6,_0x28ca60,_0x4025ba)=>{const _0x543cdc=_0x2737e4;for(var _0x4daf05=_0x4025ba>0x1?void 0x0:_0x4025ba?jt(_0x275dc6,_0x28ca60):_0x275dc6,_0x4ecf08=_0x587913[_0x543cdc(0x2b2)]-0x1,_0x130629;_0x4ecf08>=0x0;_0x4ecf08--)(_0x130629=_0x587913[_0x4ecf08])&&(_0x4daf05=_0x130629(_0x4daf05)||_0x4daf05);return _0x4daf05;},z=(_0x57f011,_0x278973)=>(_0x5852f4,_0x567acc)=>_0x278973(_0x5852f4,_0x567acc,_0x57f011);let Q=class extends a['Disposable']{constructor(_0x2b884c,_0x1ec7d0,_0x130fbb,_0x30791e){const _0x35e08f=_0x2737e4;super(),_(this,'_memberID'),(this[_0x35e08f(0x2b1)]=_0x2b884c,this['_httpService']=_0x1ec7d0,this[_0x35e08f(0x333)]=_0x130fbb,this[_0x35e08f(0x209)]=_0x30791e,this[_0x35e08f(0x33d)]());}[_0x2737e4(0x33d)](){const _0x187a94=_0x2737e4;this[_0x187a94(0x335)](),this['_initUnhandledRejectionListener'](),this[_0x187a94(0x44a)](),this[_0x187a94(0x1fd)]();}[_0x2737e4(0x1fd)](){const _0x4dbd83=_0x2737e4;this[_0x4dbd83(0x306)](this[_0x4dbd83(0x209)][_0x4dbd83(0x1fe)]['subscribe'](_0x2e1903=>{const _0x8fbd43=_0x4dbd83;this[_0x8fbd43(0x201)]=_0x2e1903==null?void 0x0:_0x2e1903[_0x8fbd43(0x23f)];}));}[_0x2737e4(0x335)](){const _0x193d48=_0x2737e4,_0x3348cb=_0x4e8875=>{const _0x1ef639=_0x5521;var _0x5e3073;this[_0x1ef639(0x475)](_0x1ef639(0x2bb),_0x1ef639(0x3e5)+_0x4e8875[_0x1ef639(0x1ed)]+_0x1ef639(0x1fc)+_0x4e8875[_0x1ef639(0x3b6)]+':'+_0x4e8875['lineno']+':'+_0x4e8875[_0x1ef639(0x2df)]+'\x0a'+(((_0x5e3073=_0x4e8875[_0x1ef639(0x2bb)])==null?void 0x0:_0x5e3073[_0x1ef639(0x221)])||''));};window['addEventListener'](_0x193d48(0x2bb),_0x3348cb),this[_0x193d48(0x306)](()=>{const _0x40da88=_0x193d48;window[_0x40da88(0x2ae)](_0x40da88(0x2bb),_0x3348cb);});}[_0x2737e4(0x31e)](){const _0x5967ca=_0x2737e4,_0x182797=_0x3b3524=>{const _0x5b1bae=_0x5521;this[_0x5b1bae(0x475)]('error',_0x5b1bae(0x377)+_0x3b3524[_0x5b1bae(0x281)]);};window[_0x5967ca(0x2c8)]('unhandledrejection',_0x182797),this[_0x5967ca(0x306)](()=>{const _0x12d4df=_0x5967ca;window[_0x12d4df(0x2ae)](_0x12d4df(0x486),_0x182797);});}[_0x2737e4(0x44a)](){const _0x11f9cf=_0x2737e4,_0x14c159=this[_0x11f9cf(0x333)][_0x11f9cf(0x2bb)][_0x11f9cf(0x296)](this['_logService']);this['_logService']['error']=(..._0x2127d3)=>{const _0x537c28=_0x11f9cf,_0x2ddcaf=_0x2127d3[_0x537c28(0x415)](_0x12fa4b=>_0x12fa4b instanceof Error?_0x12fa4b['message']+'\x0a'+_0x12fa4b[_0x537c28(0x221)]:String(_0x12fa4b))[_0x537c28(0x4a3)]('\x20');this[_0x537c28(0x475)](_0x537c28(0x2bb),_0x537c28(0x322)+_0x2ddcaf),_0x14c159(..._0x2127d3);},this[_0x11f9cf(0x306)](()=>{const _0x10111c=_0x11f9cf;this['_logService'][_0x10111c(0x2bb)]=_0x14c159;});}[_0x2737e4(0x475)](_0x4e3e6e,_0x5cced6){const _0x3576af=_0x2737e4;try{const _0x23302e={'userId':this[_0x3576af(0x201)],'logLabel':_0x4e3e6e,'content':_0x5cced6};this[_0x3576af(0x3d7)][_0x3576af(0x40c)](_0x3576af(0x3bc),{'body':_0x23302e})['catch'](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x2737e4(0x40e)])),z(0x1,a['Inject'](x['HTTPService'])),z(0x2,a['ILogService']),z(0x3,a[_0x2737e4(0x426)](u['CollaborationSessionService']))],Q);const Yt=_0x2737e4(0x439),Me={};var Ht=Object[_0x2737e4(0x232)],Wt=(_0x4d4160,_0x30ed53,_0x4a89a9,_0x2ed36e)=>{for(var _0x44ec7b=_0x2ed36e>0x1?void 0x0:_0x2ed36e?Ht(_0x30ed53,_0x4a89a9):_0x30ed53,_0x538ee7=_0x4d4160['length']-0x1,_0x366f7a;_0x538ee7>=0x0;_0x538ee7--)(_0x366f7a=_0x4d4160[_0x538ee7])&&(_0x44ec7b=_0x366f7a(_0x44ec7b)||_0x44ec7b);return _0x44ec7b;},Ae=(_0x5a4e8b,_0x479884)=>(_0x14b1cf,_0x1f2784)=>_0x479884(_0x14b1cf,_0x1f2784,_0x5a4e8b);let ee=class{constructor(_0x434a6a,_0x5a3e54){const _0x3c09ee=_0x2737e4;this[_0x3c09ee(0x207)]=_0x434a6a,this[_0x3c09ee(0x424)]=_0x5a3e54;}[_0x2737e4(0x1f0)](_0x3f8b53){const _0x28d8e8=_0x2737e4;this[_0x28d8e8(0x265)](_0x3f8b53),this[_0x28d8e8(0x27b)](_0x3f8b53);}[_0x2737e4(0x29f)](_0x2ea212){const _0x4f307c=_0x2737e4,{unitID:_0x570a39}=_0x2ea212,_0x536cc7=this[_0x4f307c(0x424)][_0x4f307c(0x316)](_0x570a39)['with'](T[_0x4f307c(0x416)]),{redoCache:_0x391feb}=_0x536cc7[_0x4f307c(0x3b3)]();if(_0x391feb[_0x4f307c(0x2b2)]===0x0)return _0x2ea212;let _0x465e5b=a['Tools'][_0x4f307c(0x4a0)](_0x2ea212[_0x4f307c(0x211)][0x0]);for(let _0x20d08b=0x0;_0x20d08b<_0x391feb['length'];_0x20d08b++){const _0x3d3518={'id':'doc.mutation.rich-text-editing','params':{..._0x391feb[_0x20d08b]}},_0x35ee01=this[_0x4f307c(0x207)][_0x4f307c(0x383)](_0x465e5b,_0x3d3518,!0x1);if(g[_0x4f307c(0x47d)](_0x35ee01))throw _0x35ee01[_0x4f307c(0x2bb)];_0x465e5b=_0x35ee01[_0x4f307c(0x3ee)];}return{...a['Tools'][_0x4f307c(0x4a0)](_0x2ea212),'mutations':[_0x465e5b]};}['_transformUndoRedoStack'](_0x3fff14){const _0x15e7aa=_0x2737e4,{unitID:_0x4efa16}=_0x3fff14,_0x37ab77=this[_0x15e7aa(0x424)]['getRenderById'](_0x4efa16)[_0x15e7aa(0x307)](T[_0x15e7aa(0x416)]),{undoCache:_0x54c936,redoCache:_0x405241}=_0x37ab77[_0x15e7aa(0x3b3)]();if(_0x54c936[_0x15e7aa(0x2b2)]===0x0||_0x405241[_0x15e7aa(0x2b2)]===0x0)return;const _0x4be646=[],_0x5d0f41=[];let _0x2baa46=a['Tools']['deepClone'](_0x3fff14['mutations'][0x0]),_0x4f3f77=a[_0x15e7aa(0x459)][_0x15e7aa(0x4a0)](_0x3fff14[_0x15e7aa(0x211)][0x0]);for(let _0x335cf0=_0x54c936[_0x15e7aa(0x2b2)]-0x1;_0x335cf0>=0x0;_0x335cf0--){const _0x25058c={'id':'doc.mutation.rich-text-editing','params':{..._0x54c936[_0x335cf0]}},_0x8a5c4d={'id':_0x15e7aa(0x2cf),'params':{..._0x405241[_0x335cf0]}},_0x5753ba=this[_0x15e7aa(0x207)][_0x15e7aa(0x383)](_0x2baa46,_0x25058c,!0x1),_0x5ce443=this['_transformService']['transformMutation'](_0x4f3f77,_0x8a5c4d,!0x1);if(g[_0x15e7aa(0x47d)](_0x5753ba))throw _0x5753ba[_0x15e7aa(0x2bb)];if(g['isTransformMutationFailure'](_0x5ce443))throw _0x5ce443['error'];_0x4be646[_0x15e7aa(0x373)](_0x5753ba[_0x15e7aa(0x226)][_0x15e7aa(0x384)]),_0x5d0f41[_0x15e7aa(0x373)](_0x5ce443[_0x15e7aa(0x226)][_0x15e7aa(0x384)]),_0x2baa46=_0x5753ba[_0x15e7aa(0x3ee)],_0x4f3f77=_0x5ce443[_0x15e7aa(0x3ee)];}_0x37ab77['setUndoRedoMutationParamsCache']({'undoCache':_0x4be646,'redoCache':_0x5d0f41});}[_0x2737e4(0x27b)](_0x8e423a){const _0x1e1bb5=_0x2737e4,{unitID:_0x3ea962}=_0x8e423a,_0x52c067=this[_0x1e1bb5(0x424)][_0x1e1bb5(0x316)](_0x3ea962)[_0x1e1bb5(0x307)](T[_0x1e1bb5(0x416)]),_0x4996ad=_0x52c067[_0x1e1bb5(0x2d9)]();if(_0x4996ad==null)return;const _0x486301=[{'id':_0x1e1bb5(0x2cf),'params':{'unitId':_0x8e423a['unitID'],'actions':null,'textRanges':[_0x4996ad]}}],_0x42e746=this[_0x1e1bb5(0x207)]['transformMutationsWithChangeset'](_0x8e423a,_0x486301);if(!g['isTransformMutationsWithChangesetSuccess'](_0x42e746))throw _0x42e746[_0x1e1bb5(0x2bb)];const _0x1ff6d4=_0x42e746[_0x1e1bb5(0x226)][0x0]['params'][_0x1e1bb5(0x3a5)];Array[_0x1e1bb5(0x3fc)](_0x1ff6d4)&&_0x1ff6d4[_0x1e1bb5(0x2b2)]&&_0x52c067[_0x1e1bb5(0x41b)](_0x1ff6d4[0x0]);}};ee=Wt([Ae(0x0,g[_0x2737e4(0x346)]),Ae(0x1,C[_0x2737e4(0x32c)])],ee);var Vt=Object[_0x2737e4(0x232)],Gt=(_0x5dfadf,_0x67b0a7,_0x1c896f,_0x4e4089)=>{const _0x193d35=_0x2737e4;for(var _0x2f3b5b=_0x4e4089>0x1?void 0x0:_0x4e4089?Vt(_0x67b0a7,_0x1c896f):_0x67b0a7,_0x4a9f68=_0x5dfadf[_0x193d35(0x2b2)]-0x1,_0x577569;_0x4a9f68>=0x0;_0x4a9f68--)(_0x577569=_0x5dfadf[_0x4a9f68])&&(_0x2f3b5b=_0x577569(_0x2f3b5b)||_0x2f3b5b);return _0x2f3b5b;},Ie=(_0xf1691c,_0x52513e)=>(_0x5458a1,_0x2ac5a1)=>_0x52513e(_0x5458a1,_0x2ac5a1,_0xf1691c);let te=class{constructor(_0x14915d,_0x5dda17,_0x192725){const _0x2563c7=_0x2737e4;this[_0x2563c7(0x2b1)]=_0x14915d,this[_0x2563c7(0x207)]=_0x5dda17,this[_0x2563c7(0x2d2)]=_0x192725;}[_0x2737e4(0x26d)](_0x5189f3){const _0x24a342=_0x2737e4;this[_0x24a342(0x3f7)](_0x5189f3);}[_0x2737e4(0x29f)](_0x3aaa85){const _0x1afbb1=_0x2737e4,{unitID:_0x34225a}=_0x3aaa85,{collaboration:_0x5bb8c8}=this[_0x1afbb1(0x2d2)]['getStateCache'](_0x34225a);if(_0x5bb8c8['length']===0x0)return _0x3aaa85;let _0x321f3b=a[_0x1afbb1(0x459)][_0x1afbb1(0x4a0)](_0x3aaa85[_0x1afbb1(0x211)][0x0]);for(let _0x504ad1=0x0;_0x504ad1<_0x5bb8c8['length'];_0x504ad1++){const _0xb826e={'id':_0x1afbb1(0x2cf),'params':{'unitId':_0x5bb8c8[_0x504ad1][_0x1afbb1(0x25e)],..._0x5bb8c8[_0x504ad1][_0x1afbb1(0x368)]}},_0x140024=this['_transformService'][_0x1afbb1(0x383)](_0x321f3b,_0xb826e,!0x1);if(g[_0x1afbb1(0x47d)](_0x140024))throw _0x140024[_0x1afbb1(0x2bb)];_0x321f3b=_0x140024['m1Prime'];}return{...a[_0x1afbb1(0x459)][_0x1afbb1(0x4a0)](_0x3aaa85),'mutations':[_0x321f3b]};}[_0x2737e4(0x3f7)](_0x3c5d66){const _0xacee83=_0x2737e4,{unitID:_0x16f630}=_0x3c5d66,{history:_0xa4d6d6,collaboration:_0x385b42}=this[_0xacee83(0x2d2)]['getStateCache'](_0x16f630);if(_0xa4d6d6[_0xacee83(0x2b2)]===0x0&&_0x385b42[_0xacee83(0x2b2)]===0x0)return;const _0x5ab97c=[],_0x184508=[];let _0x354ad4=a['Tools'][_0xacee83(0x4a0)](_0x3c5d66['mutations'][0x0]),_0x369c88=a['Tools'][_0xacee83(0x4a0)](_0x3c5d66[_0xacee83(0x211)][0x0]);for(let _0x110e10=_0xa4d6d6[_0xacee83(0x2b2)]-0x1;_0x110e10>=0x0;_0x110e10--){const _0xabf284={'id':_0xacee83(0x2cf),'params':{'unitId':_0xa4d6d6[_0x110e10][_0xacee83(0x25e)],..._0xa4d6d6[_0x110e10]['undoState']}},_0x34e13b={'id':_0xacee83(0x2cf),'params':{'unitId':_0xa4d6d6[_0x110e10][_0xacee83(0x25e)],..._0xa4d6d6[_0x110e10][_0xacee83(0x368)]}},_0x2f8ac0=this[_0xacee83(0x207)][_0xacee83(0x383)](_0x354ad4,_0xabf284,!0x1),_0x58470f=this[_0xacee83(0x207)][_0xacee83(0x383)](_0x369c88,_0x34e13b,!0x1);if(g[_0xacee83(0x47d)](_0x2f8ac0))throw _0x2f8ac0[_0xacee83(0x2bb)];if(g[_0xacee83(0x47d)](_0x58470f))throw _0x58470f['error'];_0x5ab97c[_0xacee83(0x373)]({..._0xa4d6d6[_0x110e10],'undoState':_0x2f8ac0[_0xacee83(0x226)][_0xacee83(0x384)],'redoState':_0x58470f[_0xacee83(0x226)][_0xacee83(0x384)]}),_0x354ad4=_0x2f8ac0['m1Prime'],_0x369c88=_0x58470f['m1Prime'];}_0x354ad4=a[_0xacee83(0x459)]['deepClone'](_0x3c5d66[_0xacee83(0x211)][0x0]),_0x369c88=a['Tools'][_0xacee83(0x4a0)](_0x3c5d66[_0xacee83(0x211)][0x0]);for(let _0x313e53=_0x385b42[_0xacee83(0x2b2)]-0x1;_0x313e53>=0x0;_0x313e53--){const _0x2db75a={'id':_0xacee83(0x2cf),'params':{'unitId':_0x385b42[_0x313e53][_0xacee83(0x25e)],..._0x385b42[_0x313e53][_0xacee83(0x26a)]}},_0x46c3a9={'id':_0xacee83(0x2cf),'params':{'unitId':_0x385b42[_0x313e53][_0xacee83(0x25e)],..._0x385b42[_0x313e53]['redoState']}},_0x484212=this[_0xacee83(0x207)]['transformMutation'](_0x354ad4,_0x2db75a,!0x1),_0x5e2b41=this[_0xacee83(0x207)][_0xacee83(0x383)](_0x369c88,_0x46c3a9,!0x1);if(g['isTransformMutationFailure'](_0x484212))throw _0x484212[_0xacee83(0x2bb)];if(g[_0xacee83(0x47d)](_0x5e2b41))throw _0x5e2b41[_0xacee83(0x2bb)];_0x184508[_0xacee83(0x373)]({..._0x385b42[_0x313e53],'undoState':_0x484212[_0xacee83(0x226)][_0xacee83(0x384)],'redoState':_0x5e2b41[_0xacee83(0x226)][_0xacee83(0x384)]}),_0x354ad4=_0x484212['m1Prime'],_0x369c88=_0x5e2b41['m1Prime'];}this[_0xacee83(0x2d2)][_0xacee83(0x305)](_0x16f630,{'history':_0x5ab97c,'collaboration':_0x184508});}};te=Gt([Ie(0x0,a[_0x2737e4(0x426)](a['Injector'])),Ie(0x1,g['ITransformService']),Ie(0x2,a['Inject'](T[_0x2737e4(0x1f9)]))],te);var Xt=Object[_0x2737e4(0x232)],Kt=(_0x59ad15,_0x44c685,_0x20b156,_0x1430c9)=>{const _0x193a48=_0x2737e4;for(var _0x4f481e=_0x1430c9>0x1?void 0x0:_0x1430c9?Xt(_0x44c685,_0x20b156):_0x44c685,_0xcb89f0=_0x59ad15[_0x193a48(0x2b2)]-0x1,_0x285095;_0xcb89f0>=0x0;_0xcb89f0--)(_0x285095=_0x59ad15[_0xcb89f0])&&(_0x4f481e=_0x285095(_0x4f481e)||_0x4f481e);return _0x4f481e;},Pe=(_0x31c36d,_0x58a142)=>(_0x186596,_0x38c255)=>_0x58a142(_0x186596,_0x38c255,_0x31c36d);let se=class{constructor(_0x38681e,_0x236026){this['_injector']=_0x38681e,this['_transformService']=_0x236026;}[_0x2737e4(0x2db)](_0xb6a691){const _0x500c03=_0x2737e4;var _0x3b0f2b;const _0x3bef57=this[_0x500c03(0x2b1)][_0x500c03(0x3cc)](V[_0x500c03(0x3d3)]),_0x353a5e=(_0x3b0f2b=_0x3bef57['getDocRanges']())!=null?_0x3b0f2b:[];if(_0x353a5e['length']===0x0)return;const _0x15b0cb=_0xb6a691[_0x500c03(0x22a)],_0xb4e22b=[{'id':_0x500c03(0x2cf),'params':{'unitId':_0x15b0cb,'actions':null,'textRanges':_0x353a5e}}],_0x39df1f=this['_transformService'][_0x500c03(0x440)](_0xb6a691,_0xb4e22b);if(!g[_0x500c03(0x392)](_0x39df1f))throw _0x39df1f[_0x500c03(0x2bb)];const _0x22cb85=_0x39df1f[_0x500c03(0x226)][0x0]['params'][_0x500c03(0x3a5)];Array['isArray'](_0x22cb85)&&_0x22cb85[_0x500c03(0x2b2)]&&_0x3bef57[_0x500c03(0x499)](_0x22cb85,{'unitId':_0x15b0cb,'subUnitId':_0x15b0cb},!0x1);}};se=Kt([Pe(0x0,a[_0x2737e4(0x426)](a['Injector'])),Pe(0x1,g[_0x2737e4(0x346)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x166efb,_0x11273f,_0x1e0231,_0x1661ee)=>{const _0x4999a3=_0x2737e4;for(var _0x34416b=_0x1661ee>0x1?void 0x0:_0x1661ee?qt(_0x11273f,_0x1e0231):_0x11273f,_0xca6d9f=_0x166efb[_0x4999a3(0x2b2)]-0x1,_0x533a4b;_0xca6d9f>=0x0;_0xca6d9f--)(_0x533a4b=_0x166efb[_0xca6d9f])&&(_0x34416b=_0x533a4b(_0x34416b)||_0x34416b);return _0x34416b;},N=(_0x27ee55,_0x311ebe)=>(_0x209f8b,_0x43cb5b)=>_0x311ebe(_0x209f8b,_0x43cb5b,_0x27ee55);let ie=class extends a['Disposable']{constructor(_0x2a71c1,_0x22d54c,_0x217459,_0x314af2,_0x5ac0c9,_0x1f5ca2,_0x1dafb5,_0x5ed26a){const _0x454c7c=_0x2737e4;super(),_(this,'_status$',new I['BehaviorSubject'](u['CollaborationStatus'][_0x454c7c(0x3c6)])),(this[_0x454c7c(0x2d2)]=_0x2a71c1,this[_0x454c7c(0x2c2)]=_0x22d54c,this[_0x454c7c(0x3fd)]=_0x217459,this[_0x454c7c(0x42c)]=_0x314af2,this['_docTransformSelectionsService']=_0x5ac0c9,this[_0x454c7c(0x412)]=_0x1f5ca2,this['_messageService']=_0x1dafb5,this[_0x454c7c(0x21d)]=_0x5ed26a,this[_0x454c7c(0x397)]());}['_initEntityListener'](){const _0xfe96d4=_0x2737e4;this[_0xfe96d4(0x306)](this[_0xfe96d4(0x2c2)][_0xfe96d4(0x471)][_0xfe96d4(0x302)](_0x3cc2cc=>{const _0x15754b=_0xfe96d4,_0x276c7b=this[_0x15754b(0x2d2)][_0x15754b(0x436)]['subscribe'](_0x40268e=>{const _0x5e3bda=_0x15754b;if(_0x40268e==null)return;const {unitId:_0x150016,redoState:_0x197899,commandId:_0x588bd6}=_0x40268e;if(_0x150016!==_0x3cc2cc['unitID'])return;const _0xf1c669={'id':_0x588bd6,'type':a['CommandType'][_0x5e3bda(0x327)],'params':{'unitId':_0x150016,'actions':_0x197899[_0x5e3bda(0x31b)],'textRanges':null}};_0x3cc2cc[_0x5e3bda(0x23e)](_0xf1c669);});if(_0x3cc2cc[_0x15754b(0x306)](_0x276c7b),_0x3cc2cc instanceof u[_0x15754b(0x248)]){const _0x34868c={'onTransformIME':_0x55d9f2=>this[_0x15754b(0x3fd)][_0x15754b(0x1f0)](_0x55d9f2),'onTransformState':_0xe13eb8=>this[_0x15754b(0x42c)][_0x15754b(0x26d)](_0xe13eb8),'onTransformSelections':_0x223685=>this[_0x15754b(0x464)][_0x15754b(0x2db)](_0x223685),'onSyncEditingCollabCursor':_0x438586=>this['_docSyncEditingCollabCursorService'][_0x15754b(0x1e7)](_0x438586),'onTransformRemoteChangesetByIMECache':_0x36f1ef=>this[_0x15754b(0x3fd)][_0x15754b(0x29f)](_0x36f1ef),'onTransformRemoteChangesetByStateCache':_0x531a0b=>this[_0x15754b(0x42c)]['transformRemoteChangeset'](_0x531a0b)};_0x3cc2cc[_0x15754b(0x461)](_0x34868c);}}));}};ie=zt([N(0x0,a[_0x2737e4(0x426)](T[_0x2737e4(0x1f9)])),N(0x1,a[_0x2737e4(0x426)](u[_0x2737e4(0x338)])),N(0x2,a[_0x2737e4(0x426)](ee)),N(0x3,a[_0x2737e4(0x426)](te)),N(0x4,a[_0x2737e4(0x426)](se)),N(0x5,a[_0x2737e4(0x426)](be)),N(0x6,O[_0x2737e4(0x4a8)]),N(0x7,a[_0x2737e4(0x426)](a[_0x2737e4(0x26b)]))],ie);var G=(_0x470ae2=>(_0x470ae2[_0x470ae2[_0x2737e4(0x2fb)]=0x0]=_0x2737e4(0x2fb),_0x470ae2[_0x470ae2['OK']=0x1]='OK',_0x470ae2[_0x470ae2['INTERNAL_ERROR']=0x2]=_0x2737e4(0x208),_0x470ae2[_0x470ae2['PERMISSION_DENIED']=0x3]=_0x2737e4(0x317),_0x470ae2[_0x470ae2[_0x2737e4(0x274)]=0x4]=_0x2737e4(0x274),_0x470ae2[_0x470ae2['UNAUTHENTICATED']=0x5]=_0x2737e4(0x318),_0x470ae2[_0x470ae2[_0x2737e4(0x438)]=0x6]=_0x2737e4(0x438),_0x470ae2[_0x470ae2[_0x2737e4(0x3e4)]=0x7]='INVALID_ARGUMENT',_0x470ae2[_0x470ae2['TOO_MANY_REQUESTS']=0x8]=_0x2737e4(0x460),_0x470ae2[_0x470ae2[_0x2737e4(0x251)]=0x9]=_0x2737e4(0x251),_0x470ae2[_0x470ae2[_0x2737e4(0x3ef)]=0xa]=_0x2737e4(0x3ef),_0x470ae2[_0x470ae2[_0x2737e4(0x27e)]=0xb]=_0x2737e4(0x27e),_0x470ae2[_0x470ae2['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x2737e4(0x214),_0x470ae2[_0x470ae2[_0x2737e4(0x43b)]=0xd]=_0x2737e4(0x43b),_0x470ae2[_0x470ae2['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x470ae2[_0x470ae2[_0x2737e4(0x364)]=0xf]=_0x2737e4(0x364),_0x470ae2[_0x470ae2[_0x2737e4(0x23b)]=0x10]=_0x2737e4(0x23b),_0x470ae2[_0x470ae2['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x2737e4(0x24b),_0x470ae2[_0x470ae2['ERROR_AGAIN']=0x65]=_0x2737e4(0x330),_0x470ae2[_0x470ae2[_0x2737e4(0x29e)]=0xc9]='USER_NOT_FOUND',_0x470ae2[_0x470ae2[_0x2737e4(0x292)]=0xca]=_0x2737e4(0x292),_0x470ae2[_0x470ae2[_0x2737e4(0x2d0)]=0x1389]=_0x2737e4(0x2d0),_0x470ae2[_0x470ae2[_0x2737e4(0x372)]=0x1771]=_0x2737e4(0x372),_0x470ae2[_0x470ae2[_0x2737e4(0x406)]=0x1772]=_0x2737e4(0x406),_0x470ae2[_0x470ae2[_0x2737e4(0x488)]=0x1773]=_0x2737e4(0x488),_0x470ae2[_0x470ae2[_0x2737e4(0x31c)]=0x1b59]=_0x2737e4(0x31c),_0x470ae2[_0x470ae2[_0x2737e4(0x293)]=0x1b5a]=_0x2737e4(0x293),_0x470ae2[_0x470ae2['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x470ae2[_0x470ae2[_0x2737e4(0x48a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x470ae2[_0x470ae2[_0x2737e4(0x3e8)]=0x1b5d]=_0x2737e4(0x3e8),_0x470ae2[_0x470ae2[_0x2737e4(0x2dd)]=0x1f41]=_0x2737e4(0x2dd),_0x470ae2[_0x470ae2['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x2737e4(0x271),_0x470ae2[_0x470ae2[_0x2737e4(0x32e)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x470ae2[_0x470ae2[_0x2737e4(0x44d)]=0x232b]=_0x2737e4(0x44d),_0x470ae2[_0x470ae2[_0x2737e4(0x3b2)]=0x232c]=_0x2737e4(0x3b2),_0x470ae2[_0x470ae2[_0x2737e4(0x429)]=0x232d]=_0x2737e4(0x429),_0x470ae2[_0x470ae2[_0x2737e4(0x3b9)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x470ae2[_0x470ae2['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2737e4(0x3c4),_0x470ae2[_0x470ae2[_0x2737e4(0x3d4)]=0x2713]=_0x2737e4(0x3d4),_0x470ae2[_0x470ae2[_0x2737e4(0x2f5)]=0x2714]=_0x2737e4(0x2f5),_0x470ae2[_0x470ae2[_0x2737e4(0x295)]=0x271a]=_0x2737e4(0x295),_0x470ae2[_0x470ae2[_0x2737e4(0x4ab)]=0x271b]=_0x2737e4(0x4ab),_0x470ae2[_0x470ae2[_0x2737e4(0x312)]=0x271c]=_0x2737e4(0x312),_0x470ae2[_0x470ae2[_0x2737e4(0x3ce)]=0x271d]=_0x2737e4(0x3ce),_0x470ae2[_0x470ae2[_0x2737e4(0x3a9)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x470ae2[_0x470ae2[_0x2737e4(0x3cd)]=0x271f]=_0x2737e4(0x3cd),_0x470ae2[_0x470ae2[_0x2737e4(0x465)]=0x2720]=_0x2737e4(0x465),_0x470ae2[_0x470ae2[_0x2737e4(0x320)]=0x2af9]=_0x2737e4(0x320),_0x470ae2[_0x470ae2['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x470ae2[_0x470ae2['INVALID_INVITE_CODE']=0x2ee2]=_0x2737e4(0x2e2),_0x470ae2[_0x470ae2['INVITE_CODE_REQUIRED']=0x2ee3]=_0x2737e4(0x22c),_0x470ae2[_0x470ae2[_0x2737e4(0x3b1)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x470ae2[_0x470ae2[_0x2737e4(0x39d)]=0x2ee5]=_0x2737e4(0x39d),_0x470ae2[_0x470ae2[_0x2737e4(0x24d)]=0x32c9]=_0x2737e4(0x24d),_0x470ae2[_0x470ae2[_0x2737e4(0x2d4)]=0x32ca]=_0x2737e4(0x2d4),_0x470ae2[_0x470ae2[_0x2737e4(0x256)]=0x32cb]=_0x2737e4(0x256),_0x470ae2[_0x470ae2['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x2737e4(0x39a),_0x470ae2[_0x470ae2['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x2737e4(0x34a),_0x470ae2[_0x470ae2[_0x2737e4(0x1f2)]=0x36b3]=_0x2737e4(0x1f2),_0x470ae2[_0x470ae2[_0x2737e4(0x24e)]=0x36b4]=_0x2737e4(0x24e),_0x470ae2[_0x470ae2[_0x2737e4(0x39f)]=0x36b5]=_0x2737e4(0x39f),_0x470ae2[_0x470ae2[_0x2737e4(0x3cf)]=0x36b6]=_0x2737e4(0x3cf),_0x470ae2[_0x470ae2[_0x2737e4(0x314)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x470ae2[_0x470ae2[_0x2737e4(0x2a4)]=0x36b8]=_0x2737e4(0x2a4),_0x470ae2[_0x470ae2[_0x2737e4(0x2fd)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x470ae2[_0x470ae2[_0x2737e4(0x399)]=0x3716]=_0x2737e4(0x399),_0x470ae2[_0x470ae2[_0x2737e4(0x369)]=0x3717]=_0x2737e4(0x369),_0x470ae2[_0x470ae2['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x2737e4(0x431),_0x470ae2[_0x470ae2[_0x2737e4(0x414)]=0x3a99]=_0x2737e4(0x414),_0x470ae2[_0x470ae2[_0x2737e4(0x3d1)]=0x3a9a]=_0x2737e4(0x3d1),_0x470ae2[_0x470ae2[_0x2737e4(0x20e)]=0x3a9b]=_0x2737e4(0x20e),_0x470ae2[_0x470ae2['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x470ae2[_0x470ae2[_0x2737e4(0x47e)]=0x3a9d]=_0x2737e4(0x47e),_0x470ae2[_0x470ae2[_0x2737e4(0x409)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x470ae2[_0x470ae2['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x470ae2[_0x470ae2[_0x2737e4(0x3fa)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x470ae2[_0x470ae2[_0x2737e4(0x2b5)]=-0x1]=_0x2737e4(0x2b5),_0x470ae2))(G||{});function Jt(_0x174a3d){const _0x4a0bc7=_0x2737e4;var _0x40bca6,_0x2a7446;const _0x1f323f=(_0x40bca6=_0x174a3d[_0x4a0bc7(0x206)])==null?void 0x0:_0x40bca6[_0x4a0bc7(0x33e)],_0xb2ecba=((_0x2a7446=_0x174a3d[_0x4a0bc7(0x206)])==null?void 0x0:_0x2a7446['totalFormulasToCalculate'])||0x0;return _0x1f323f===B[_0x4a0bc7(0x482)][_0x4a0bc7(0x23a)]&&_0xb2ecba>0x0;}function Zt(_0x46374c){const _0x4bea54=_0x2737e4;return _0x46374c[_0x4bea54(0x225)]===B['FormulaExecutedStateType'][_0x4bea54(0x21f)];}var Qt=Object[_0x2737e4(0x232)],es=(_0x4bbf17,_0xa40a76,_0x312bd9,_0x4112e1)=>{const _0x18c07b=_0x2737e4;for(var _0x53f552=_0x4112e1>0x1?void 0x0:_0x4112e1?Qt(_0xa40a76,_0x312bd9):_0xa40a76,_0x789a77=_0x4bbf17[_0x18c07b(0x2b2)]-0x1,_0x263257;_0x789a77>=0x0;_0x789a77--)(_0x263257=_0x4bbf17[_0x789a77])&&(_0x53f552=_0x263257(_0x53f552)||_0x53f552);return _0x53f552;},L=(_0x137784,_0x552bfd)=>(_0x470b73,_0x5397e8)=>_0x552bfd(_0x470b73,_0x5397e8,_0x137784);const ts='/universer-api/license/formula/limit/status',ss=_0x2737e4(0x458),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0x2737e4(0x23c)]{constructor(_0x4109d9,_0x5a7acd,_0x77a2e5,_0x405694,_0x499c93,_0xbb2e2f,_0x34cb2e){const _0x5e42e5=_0x2737e4;super(),_(this,_0x5e42e5(0x442),null),_(this,_0x5e42e5(0x285),0x0),_(this,_0x5e42e5(0x36b),0x0),_(this,_0x5e42e5(0x241),[]),_(this,_0x5e42e5(0x2e1),0x0),(this['_messageService']=_0x4109d9,this[_0x5e42e5(0x219)]=_0x5a7acd,this[_0x5e42e5(0x341)]=_0x77a2e5,this['_httpService']=_0x405694,this[_0x5e42e5(0x301)]=_0x499c93,this[_0x5e42e5(0x333)]=_0xbb2e2f,this['_localeService']=_0x34cb2e,this['_initCommandInterceptor']());}[_0x2737e4(0x260)](){const _0x22580b=_0x2737e4;this[_0x22580b(0x306)](this[_0x22580b(0x219)][_0x22580b(0x2b4)]((_0x2e3474,_0x52e332)=>{const _0x503ac8=_0x22580b;var _0x55c9eb;if(_0x2e3474['id']!==B[_0x503ac8(0x3b8)]['id'])return;const _0x456bb7=_0x2e3474[_0x503ac8(0x384)];if(!this['_hasFormulaInDirtyRanges']((_0x55c9eb=_0x456bb7[_0x503ac8(0x38f)])!=null?_0x55c9eb:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x503ac8(0x38c)](_0x2e3474,_0x52e332),this[_0x503ac8(0x2ec)](),new a[(_0x503ac8(0x441))]();})),this[_0x22580b(0x306)](this[_0x22580b(0x219)]['onCommandExecuted']((_0x526d8f,_0x3ecdb7)=>{const _0x4724b1=_0x22580b;if(_0x526d8f['id']!==B[_0x4724b1(0x387)]['id'])return;const _0x2bbe40=_0x526d8f['params'];if(Jt(_0x2bbe40)){const _0x320051=a['generateRandomId']();this[_0x4724b1(0x241)][_0x4724b1(0x2ba)](_0x320051),this[_0x4724b1(0x2fa)](_0x320051);}else{if(Zt(_0x2bbe40)&&this[_0x4724b1(0x241)][_0x4724b1(0x2b2)]>0x0){const _0x48aec9=this[_0x4724b1(0x241)][_0x4724b1(0x452)]();this[_0x4724b1(0x276)](_0x48aec9);}}}));}[_0x2737e4(0x24f)](){const _0x160aa7=_0x2737e4;super[_0x160aa7(0x24f)](),this[_0x160aa7(0x2d8)](),this[_0x160aa7(0x241)]=[],this[_0x160aa7(0x36b)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x160aa7(0x2e1)]=0x0;}async[_0x2737e4(0x38c)](_0x50b324,_0x155e79){const _0x1018d0=_0x2737e4;for(let _0x4c634a=0x0;_0x4c634a<0x1e;_0x4c634a++)try{if(await this[_0x1018d0(0x3b4)](),this[_0x1018d0(0x2ed)]()){this[_0x1018d0(0x205)](_0x50b324,_0x155e79),this['_messageService'][_0x1018d0(0x3eb)]({'content':this[_0x1018d0(0x21d)]['t'](_0x1018d0(0x340)),'type':p[_0x1018d0(0x3f3)][_0x1018d0(0x4aa)]});return;}await new Promise(_0x46c441=>{const _0x4f03d6=_0x1018d0;this[_0x4f03d6(0x442)]=window[_0x4f03d6(0x362)](_0x46c441,0x3e8);});}catch(_0x34f58){this[_0x1018d0(0x333)][_0x1018d0(0x2bb)](_0x34f58);}this[_0x1018d0(0x34b)]['show']({'content':this[_0x1018d0(0x21d)]['t'](_0x1018d0(0x404)),'type':p[_0x1018d0(0x3f3)][_0x1018d0(0x2c3)]});}[_0x2737e4(0x205)](_0x11fb3b,_0x40f2b7){const _0x1fb7e0=_0x2737e4;try{this[_0x1fb7e0(0x219)][_0x1fb7e0(0x3c1)](_0x11fb3b['id'],_0x11fb3b['params'],_0x40f2b7);}catch(_0x31db83){this[_0x1fb7e0(0x333)]['error'](_0x31db83);}}[_0x2737e4(0x286)](_0x10801c,_0x2b68b7){const _0x2ce46d=_0x2737e4;_0x2b68b7<this[_0x2ce46d(0x2e1)]||(this['_lastResponseTimestamp']=_0x2b68b7,this[_0x2ce46d(0x285)]=Number[_0x2ce46d(0x1e4)](_0x10801c[_0x2ce46d(0x39c)]),this[_0x2ce46d(0x36b)]=Number[_0x2ce46d(0x1e4)](_0x10801c[_0x2ce46d(0x229)]));}async[_0x2737e4(0x2fa)](_0x31ae6e){const _0x92e22a=_0x2737e4;var _0x1a50a9,_0x6ab253;const _0x2a52a6=Date[_0x92e22a(0x390)]();try{const _0x7adfd=((_0x1a50a9=this['_configService'][_0x92e22a(0x20c)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x1a50a9['startFormulaLimitUrl'])||ss,_0x565a43=(await this[_0x92e22a(0x3d7)][_0x92e22a(0x40c)](_0x7adfd,{'body':JSON[_0x92e22a(0x2ef)]({'taskId':_0x31ae6e})}))[_0x92e22a(0x3dc)];if(((_0x6ab253=_0x565a43['error'])==null?void 0x0:_0x6ab253[_0x92e22a(0x24a)])!==G['OK'])return;this[_0x92e22a(0x286)](_0x565a43[_0x92e22a(0x483)],_0x2a52a6);}catch(_0x1ac455){this[_0x92e22a(0x333)][_0x92e22a(0x2bb)](_0x1ac455);}}async[_0x2737e4(0x3b4)](_0x174d0f){const _0x26fbe0=_0x2737e4;var _0x105fe7,_0x164275;const _0x331f26=Date['now']();try{const _0x3161d6=((_0x105fe7=this['_configService'][_0x26fbe0(0x20c)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x105fe7[_0x26fbe0(0x428)])||ts,_0x495c80=_0x174d0f?_0x3161d6+_0x26fbe0(0x1e5)+encodeURIComponent(_0x174d0f):_0x3161d6,_0x18876e=(await this[_0x26fbe0(0x3d7)][_0x26fbe0(0x3cc)](_0x495c80))['body'];if(((_0x164275=_0x18876e[_0x26fbe0(0x2bb)])==null?void 0x0:_0x164275[_0x26fbe0(0x24a)])!==G['OK'])return;this[_0x26fbe0(0x286)](_0x18876e[_0x26fbe0(0x483)],_0x331f26);}catch(_0x57dcea){this['_logService'][_0x26fbe0(0x2bb)](_0x57dcea);}}async['_releaseCalculationLimit'](_0x1e68f2){const _0x12513b=_0x2737e4;var _0x30f0c6,_0x10d56f;const _0xf9bea7=Date[_0x12513b(0x390)]();try{const _0x35513c=((_0x30f0c6=this[_0x12513b(0x341)][_0x12513b(0x20c)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x30f0c6[_0x12513b(0x2eb)])||is,_0x2e8c8c=(await this[_0x12513b(0x3d7)][_0x12513b(0x40c)](_0x35513c,{'body':JSON[_0x12513b(0x2ef)]({'taskId':_0x1e68f2})}))[_0x12513b(0x3dc)];if(((_0x10d56f=_0x2e8c8c['error'])==null?void 0x0:_0x10d56f[_0x12513b(0x24a)])!==G['OK'])return;this[_0x12513b(0x286)](_0x2e8c8c[_0x12513b(0x483)],_0xf9bea7);}catch(_0x401d0b){this[_0x12513b(0x333)][_0x12513b(0x2bb)](_0x401d0b);}}[_0x2737e4(0x2ed)](){const _0x34d7c1=_0x2737e4;return this[_0x34d7c1(0x285)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x34d7c1(0x36b)]>0x0;}[_0x2737e4(0x2d8)](){const _0x585842=_0x2737e4;this[_0x585842(0x442)]&&(clearTimeout(this['_pollingInterval']),this[_0x585842(0x442)]=null);}[_0x2737e4(0x2ec)](){const _0x508875=_0x2737e4;this['_messageService'][_0x508875(0x3eb)]({'content':this[_0x508875(0x21d)]['t'](_0x508875(0x2e9)),'type':p[_0x508875(0x3f3)][_0x508875(0x31f)]});}['_hasFormulaInDirtyRanges'](_0x1c0c11){const _0x4e4e1e=_0x2737e4;for(const _0x5ef048 of _0x1c0c11){const {unitId:_0x1ff855,sheetId:_0x487cee,range:_0x418e3e}=_0x5ef048,_0x21c568=this['_univerInstanceService'][_0x4e4e1e(0x278)](_0x1ff855);if(!_0x21c568)continue;const _0x1f016f=_0x21c568[_0x4e4e1e(0x29c)](_0x487cee);if(!_0x1f016f)continue;const _0x2b16a6=_0x1f016f[_0x4e4e1e(0x270)]();for(let _0x5734a4=_0x418e3e[_0x4e4e1e(0x41d)];_0x5734a4<=_0x418e3e[_0x4e4e1e(0x36c)];_0x5734a4++)for(let _0x3fb081=_0x418e3e[_0x4e4e1e(0x4a5)];_0x3fb081<=_0x418e3e[_0x4e4e1e(0x263)];_0x3fb081++){const _0x16fbdc=_0x2b16a6[_0x4e4e1e(0x2ea)](_0x5734a4,_0x3fb081);if(_0x16fbdc&&(a[_0x4e4e1e(0x279)](_0x16fbdc['f'])||a['isFormulaId'](_0x16fbdc['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O['IMessageService'])),L(0x1,a[_0x2737e4(0x29d)]),L(0x2,a[_0x2737e4(0x284)]),L(0x3,a[_0x2737e4(0x426)](x[_0x2737e4(0x41e)])),L(0x4,a[_0x2737e4(0x2e5)]),L(0x5,a['ILogService']),L(0x6,a['Inject'](a[_0x2737e4(0x26b)]))],ne);var ns=Object[_0x2737e4(0x232)],rs=(_0x51c3fa,_0x25910e,_0x1a5c09,_0x1d80a5)=>{for(var _0x409a7f=_0x1d80a5>0x1?void 0x0:_0x1d80a5?ns(_0x25910e,_0x1a5c09):_0x25910e,_0x182627=_0x51c3fa['length']-0x1,_0x5e7693;_0x182627>=0x0;_0x182627--)(_0x5e7693=_0x51c3fa[_0x182627])&&(_0x409a7f=_0x5e7693(_0x409a7f)||_0x409a7f);return _0x409a7f;},Se=(_0x50bdc2,_0x5ca778)=>(_0x2da0ac,_0x4d3c19)=>_0x5ca778(_0x2da0ac,_0x4d3c19,_0x50bdc2);let Te=class extends a[_0x2737e4(0x23c)]{constructor(_0x448da7,_0x59f483,_0x5d0e49){const _0x4a1325=_0x2737e4;super(),_(this,_0x4a1325(0x1d7),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x4a1325(0x432),!0x1),(this['_configService']=_0x448da7,this['_localStorageService']=_0x59f483,this[_0x4a1325(0x2e7)]=_0x5d0e49);}[_0x2737e4(0x339)](){const _0x15a076=_0x2737e4;this[_0x15a076(0x432)]=!0x0;}[_0x2737e4(0x242)](){const _0x3e6aef=_0x2737e4;this[_0x3e6aef(0x432)]=!0x1;}get[_0x2737e4(0x2fc)](){const _0x50bdf6=_0x2737e4;return this[_0x50bdf6(0x480)];}[_0x2737e4(0x24f)](){const _0x579112=_0x2737e4;this[_0x579112(0x3bd)]()[_0x579112(0x37b)](()=>super[_0x579112(0x24f)]());}async['loadOfflineData'](_0x38234c){const _0x3630f5=_0x2737e4;return this[_0x3630f5(0x432)]?null:this['_localStorageService'][_0x3630f5(0x46a)](u['getLocalCacheKey'](_0x38234c));}async[_0x2737e4(0x3f0)](_0x2f2cc2,_0x449864){const _0x218aad=_0x2737e4;return!!this[_0x218aad(0x249)][_0x218aad(0x492)](_0x2f2cc2,_0x449864);}[_0x2737e4(0x388)](_0x3e9c6c,_0x3474b9,_0x1459a8,_0x9481f0){const _0x43a7e0=_0x2737e4,_0x4dcfb3=this[_0x43a7e0(0x2e7)][_0x43a7e0(0x1d8)](_0x3e9c6c);this[_0x43a7e0(0x1d7)]['set'](_0x3e9c6c,{'unitID':_0x3e9c6c,'type':_0x3474b9,'awaitingChangeset':_0x1459a8,'mutations':_0x9481f0,'rev':_0x4dcfb3}),this[_0x43a7e0(0x480)]['has'](_0x3e9c6c)||this[_0x43a7e0(0x358)](_0x3e9c6c);}[_0x2737e4(0x358)](_0x2b7564){const _0x574ac3=_0x2737e4,_0x290ecd=this[_0x574ac3(0x422)]();_0x290ecd===0x0?this[_0x574ac3(0x2e8)](_0x2b7564):this['_saveTaskMap'][_0x574ac3(0x349)](_0x2b7564,setTimeout(()=>this[_0x574ac3(0x2e8)](_0x2b7564),_0x290ecd));}['_getSaveTimeout'](){const _0x184503=_0x2737e4;var _0x27833d;return(_0x27833d=this[_0x184503(0x341)][_0x184503(0x20c)](u[_0x184503(0x417)]))!=null?_0x27833d:u[_0x184503(0x2e4)];}['_saveCache'](_0x2d581c){const _0x3dcda5=_0x2737e4,_0x1d05c2=this['_saveTaskMap'][_0x3dcda5(0x3cc)](_0x2d581c);return _0x1d05c2!==void 0x0&&window[_0x3dcda5(0x2c6)](_0x1d05c2),this[_0x3dcda5(0x249)]['setItem'](u[_0x3dcda5(0x2cd)](_0x2d581c),this[_0x3dcda5(0x1d7)][_0x3dcda5(0x3cc)](_0x2d581c))[_0x3dcda5(0x37b)](()=>this[_0x3dcda5(0x480)]['delete'](_0x2d581c));}async['exhaustSavingTask'](){const _0x25aae5=_0x2737e4,_0x1154c7=[];this[_0x25aae5(0x480)][_0x25aae5(0x385)]((_0x7dbd04,_0x1bd585)=>{const _0x53d306=_0x25aae5;window[_0x53d306(0x2c6)](_0x7dbd04),_0x1154c7[_0x53d306(0x2ba)](this[_0x53d306(0x2e8)](_0x1bd585)[_0x53d306(0x37b)](()=>{const _0x4774dd=_0x53d306;this[_0x4774dd(0x480)]['delete'](_0x1bd585);}));}),await Promise['all'](_0x1154c7);}};Te=rs([Se(0x0,a[_0x2737e4(0x284)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a['Inject'](g[_0x2737e4(0x255)]))],Te);class ke extends a[_0x2737e4(0x25a)]{constructor(){const _0x140d9a=_0x2737e4;super(),_(this,_0x140d9a(0x3e7)),this[_0x140d9a(0x3e7)]=I[_0x140d9a(0x3aa)](window,'popstate')['pipe'](I['takeUntil'](this[_0x140d9a(0x2d1)]),I[_0x140d9a(0x386)](0x1),I[_0x140d9a(0x411)](void 0x0));}[_0x2737e4(0x3bf)](_0x52b550,_0x2b2231,_0xe1e6a4=!0x1){const _0x3f8ff9=_0x2737e4,_0x44fcf2=new URL(window[_0x3f8ff9(0x326)][_0x3f8ff9(0x3bb)]);_0x44fcf2['searchParams'][_0x3f8ff9(0x349)](_0x52b550,_0x2b2231),_0xe1e6a4?window['history'][_0x3f8ff9(0x1fb)]('','',_0x44fcf2[_0x3f8ff9(0x35d)]()):window[_0x3f8ff9(0x2b3)]['pushState']('','',_0x44fcf2[_0x3f8ff9(0x35d)]());}[_0x2737e4(0x4ae)](_0x116b01,_0x17b66f=!0x1){const _0x1bf2e0=_0x2737e4,_0xc253f7=new URL(window[_0x1bf2e0(0x326)]['href']);_0xc253f7['searchParams']['delete'](_0x116b01),_0x17b66f?window['history'][_0x1bf2e0(0x1fb)]('','',_0xc253f7[_0x1bf2e0(0x35d)]()):window[_0x1bf2e0(0x2b3)]['pushState']('','',_0xc253f7[_0x1bf2e0(0x35d)]());}[_0x2737e4(0x236)](_0x196a5b){const _0x239356=_0x2737e4;var _0x474dc8;return(_0x474dc8=new URL(window[_0x239356(0x326)][_0x239356(0x3bb)])[_0x239356(0x230)][_0x239356(0x3cc)](_0x196a5b))!=null?_0x474dc8:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x2737e4(0x232)],cs=(_0x233e9b,_0x401447,_0xaaf940)=>_0x401447 in _0x233e9b?os(_0x233e9b,_0x401447,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xaaf940}):_0x233e9b[_0x401447]=_0xaaf940,ls=(_0x9c4255,_0x1190e8,_0x1b14ac,_0x4864a0)=>{const _0x181f78=_0x2737e4;for(var _0x4bc9ba=_0x4864a0>0x1?void 0x0:_0x4864a0?as(_0x1190e8,_0x1b14ac):_0x1190e8,_0x2f07af=_0x9c4255[_0x181f78(0x2b2)]-0x1,_0x342706;_0x2f07af>=0x0;_0x2f07af--)(_0x342706=_0x9c4255[_0x2f07af])&&(_0x4bc9ba=_0x342706(_0x4bc9ba)||_0x4bc9ba);return _0x4bc9ba;},de=(_0x51888f,_0x2cde1a)=>(_0x415a52,_0x31ec05)=>_0x2cde1a(_0x415a52,_0x31ec05,_0x51888f),_s=(_0x2999c7,_0x29f1dc,_0x3ac615)=>cs(_0x2999c7,_0x29f1dc+'',_0x3ac615);const hs=_0x2737e4(0x2dc);exports[_0x2737e4(0x239)]=class extends a[_0x2737e4(0x393)]{constructor(_0x29dbb4=Me,_0x5aa5a2,_0xcaa489,_0x156f2b){const _0x327624=_0x2737e4;super(),this[_0x327624(0x48b)]=_0x29dbb4,this['_renderManagerService']=_0x5aa5a2,this[_0x327624(0x2b1)]=_0xcaa489,this[_0x327624(0x341)]=_0x156f2b;const {..._0x3101ea}=a[_0x327624(0x356)]({},Me,this[_0x327624(0x48b)]);this['_configService'][_0x327624(0x494)](Yt,_0x3101ea);}[_0x2737e4(0x2d3)](){const _0xae530e=_0x2737e4;this[_0xae530e(0x2b0)](),this[_0xae530e(0x34d)]();}[_0x2737e4(0x22b)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x172bcc=_0x2737e4;var _0x1b44a3;const _0x5a897f=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x172bcc(0x45e)],{'useClass':x[_0x172bcc(0x291)]}],[u[_0x172bcc(0x3d5)],{'useClass':Te}],[exports[_0x172bcc(0x289)]],[ie],[Z],[F],[me],[exports[_0x172bcc(0x490)]]];this[_0x172bcc(0x48b)][_0x172bcc(0x476)]&&_0x5a897f[_0x172bcc(0x2ba)]([Q]),a['registerDependencies'](this[_0x172bcc(0x2b1)],a[_0x172bcc(0x204)](_0x5a897f,(_0x1b44a3=this['_config'])==null?void 0x0:_0x1b44a3[_0x172bcc(0x396)]));}['_registerRenderDependencies'](){const _0x1afb2d=_0x2737e4;this[_0x1afb2d(0x306)](this['_renderManagerService']['registerRenderModule'](a[_0x1afb2d(0x272)]['UNIVER_DOC'],[Ee])),this[_0x1afb2d(0x306)](this[_0x1afb2d(0x424)]['registerRenderModule'](a['UniverInstanceType'][_0x1afb2d(0x3ac)],[Ce]));}[_0x2737e4(0x34d)](){const _0x2e166c=_0x2737e4;a['touchDependencies'](this[_0x2e166c(0x2b1)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x2e166c(0x490)]],[ne]]),this[_0x2e166c(0x48b)][_0x2e166c(0x476)]&&a['touchDependencies'](this[_0x2e166c(0x2b1)],[[Q]]);}},_s(exports[_0x2737e4(0x239)],_0x2737e4(0x473),hs),exports[_0x2737e4(0x239)]=ls([a[_0x2737e4(0x487)](u[_0x2737e4(0x2bd)]),de(0x1,C[_0x2737e4(0x32c)]),de(0x2,a[_0x2737e4(0x426)](a['Injector'])),de(0x3,a['IConfigService'])],exports[_0x2737e4(0x239)]);var us=Object[_0x2737e4(0x232)],Is=(_0x18eca4,_0x4ffc4f,_0x361f7c,_0x2fe058)=>{for(var _0x3a2a07=_0x2fe058>0x1?void 0x0:_0x2fe058?us(_0x4ffc4f,_0x361f7c):_0x4ffc4f,_0x224bdc=_0x18eca4['length']-0x1,_0x39e290;_0x224bdc>=0x0;_0x224bdc--)(_0x39e290=_0x18eca4[_0x224bdc])&&(_0x3a2a07=_0x39e290(_0x3a2a07)||_0x3a2a07);return _0x3a2a07;},W=(_0x10a6f1,_0x54d03)=>(_0x4419b6,_0x2407d9)=>_0x54d03(_0x4419b6,_0x2407d9,_0x10a6f1);exports['BrowserCollaborationSocketService']=class extends u[_0x2737e4(0x49c)]{constructor(_0xa40a0a,_0x43ae26,_0x4e9999,_0x1d9c4e,_0x256ad6){super(_0xa40a0a,_0x43ae26,_0x4e9999,_0x1d9c4e,_0x256ad6);}async[_0x2737e4(0x35e)](_0x8f6b6c){const _0x344e4f=_0x2737e4,_0x3b3852=await this[_0x344e4f(0x3ff)](),_0x57c1dd=this[_0x344e4f(0x35f)](_0x8f6b6c,_0x3b3852);return this[_0x344e4f(0x2d7)](_0x57c1dd);}[_0x2737e4(0x35f)](_0xf11510,_0xd8ccb){const _0x83fd2c=_0x2737e4,_0x94525c=typeof window>'u'?new URL(_0xf11510):new URL(_0xf11510,window[_0x83fd2c(0x326)]['origin']);_0x94525c['searchParams'][_0x83fd2c(0x349)](_0x83fd2c(0x38b),_0xd8ccb);const _0x13b0fe=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x83fd2c(0x326)]['search']);return _0x13b0fe[_0x83fd2c(0x3cc)](_0x83fd2c(0x391))&&_0x94525c[_0x83fd2c(0x230)]['set']('runId',_0x13b0fe[_0x83fd2c(0x3cc)](_0x83fd2c(0x391))),_0x94525c[_0x83fd2c(0x35d)]();}async[_0x2737e4(0x3ff)](){const _0x3f1e5e=_0x2737e4;var _0x54ff15,_0x3d91df,_0x210119;const _0x158e8d=this[_0x3f1e5e(0x341)][_0x3f1e5e(0x20c)](u[_0x3f1e5e(0x2fe)]),_0x3ad845=(_0x54ff15=_0x158e8d==null?void 0x0:_0x158e8d[_0x3f1e5e(0x2f1)])!=null?_0x54ff15:u[_0x3f1e5e(0x43d)];return(_0x210119=(_0x3d91df=(await this[_0x3f1e5e(0x3d7)][_0x3f1e5e(0x3cc)](_0x3ad845,{'headers':{'Content-Type':_0x3f1e5e(0x448)}}))['body'])==null?void 0x0:_0x3d91df['ticket'])!=null?_0x210119:'';}},exports[_0x2737e4(0x34c)]=Is([W(0x0,a[_0x2737e4(0x426)](a[_0x2737e4(0x40e)])),W(0x1,a[_0x2737e4(0x426)](x[_0x2737e4(0x41e)])),W(0x2,a[_0x2737e4(0x284)]),W(0x3,a[_0x2737e4(0x1dd)]),W(0x4,g[_0x2737e4(0x489)])],exports[_0x2737e4(0x34c)]);var Ss=Object[_0x2737e4(0x232)],ds=(_0x1d14c9,_0x54eb23,_0x383749,_0x9f9574)=>{const _0x38132b=_0x2737e4;for(var _0x6f6a37=_0x9f9574>0x1?void 0x0:_0x9f9574?Ss(_0x54eb23,_0x383749):_0x54eb23,_0x49caa4=_0x1d14c9[_0x38132b(0x2b2)]-0x1,_0x23def2;_0x49caa4>=0x0;_0x49caa4--)(_0x23def2=_0x1d14c9[_0x49caa4])&&(_0x6f6a37=_0x23def2(_0x6f6a37)||_0x6f6a37);return _0x6f6a37;},fe=(_0xa07076,_0x7c8c3d)=>(_0x406c6f,_0x45fe5d)=>_0x7c8c3d(_0x406c6f,_0x45fe5d,_0xa07076);exports[_0x2737e4(0x497)]=class extends a[_0x2737e4(0x23c)]{constructor(_0x1031ac,_0x27d92c,_0x3c0533){super(),this['_instanceService']=_0x1031ac,this['_httpService']=_0x27d92c,this['_configService']=_0x3c0533;}async[_0x2737e4(0x2a2)](_0x186ef2,_0x1f4e2a,_0x40069f,..._0x27d05a){const _0x28481a=_0x2737e4;var _0xda49f1,_0xd4aecb,_0xbc1368,_0x121745;const _0x2ebdc3=this['_instanceService']['getFocusedUnit']();if(!_0x2ebdc3)throw new Error(_0x28481a(0x456));const _0x18dcb0=((_0xda49f1=this[_0x28481a(0x341)][_0x28481a(0x20c)](u[_0x28481a(0x4a4)]))!=null?_0xda49f1:u[_0x28481a(0x1f1)])+'/'+_0x186ef2+_0x28481a(0x30e)+_0x1f4e2a,_0x4a8e74=new URL(window[_0x28481a(0x326)]['href']),_0x2f7f8e={'scriptId':_0x186ef2,'runId':(_0xd4aecb=_0x4a8e74['searchParams'][_0x28481a(0x3cc)](_0x28481a(0x391)))!=null?_0xd4aecb:'','function':_0x1f4e2a,'unitId':_0x2ebdc3[_0x28481a(0x310)](),'argsOfFunction':JSON[_0x28481a(0x2ef)](_0x27d05a),'invokeId':(_0xbc1368=_0x40069f['invokeId'])!=null?_0xbc1368:'','executionId':(_0x121745=_0x40069f[_0x28481a(0x2cc)])!=null?_0x121745:''};try{const _0x47b006=await this[_0x28481a(0x3d7)][_0x28481a(0x40c)](_0x18dcb0,{'body':_0x2f7f8e});return _0x47b006[_0x28481a(0x3dc)][_0x28481a(0x2bb)]&&_0x47b006[_0x28481a(0x3dc)][_0x28481a(0x2bb)][_0x28481a(0x24a)]!==G['OK']?_0x28481a(0x469):_0x47b006[_0x28481a(0x3dc)]['result'];}catch{return'Failed';}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x2737e4(0x2e5)]),fe(0x1,a[_0x2737e4(0x426)](x[_0x2737e4(0x41e)])),fe(0x2,a['IConfigService'])],exports[_0x2737e4(0x497)]);const we=0x7530,ye=_0x2737e4(0x200);class fs extends a[_0x2737e4(0x23c)]{constructor(){const _0x4a79aa=_0x2737e4;super(),_(this,_0x4a79aa(0x44e),a[_0x4a79aa(0x46c)]()),_(this,_0x4a79aa(0x220),new Set()),_(this,_0x4a79aa(0x3db),new Map()),_(this,_0x4a79aa(0x421),null),_(this,_0x4a79aa(0x38e),new Map()),_(this,_0x4a79aa(0x4a6),new Map()),this[_0x4a79aa(0x33d)]();}[_0x2737e4(0x24f)](){const _0x2b4fe7=_0x2737e4;super[_0x2b4fe7(0x24f)](),this['_clearOtherTimers'][_0x2b4fe7(0x385)]((_0x426bc0,_0x4d5fae)=>this['_removeClearOtherTimer'](_0x4d5fae)),this[_0x2b4fe7(0x421)]&&window[_0x2b4fe7(0x437)](this[_0x2b4fe7(0x421)]);}[_0x2737e4(0x3f1)](_0x3ddf5f){return this['_ensureSubject'](_0x3ddf5f)['pipe'](I['distinctUntilChanged']());}[_0x2737e4(0x33c)](_0xb64ca9){const _0x4deb2a=_0x2737e4;this['_selfUnitIDs'][_0x4deb2a(0x2f7)]===0x0&&this[_0x4deb2a(0x2a7)](),this['_selfUnitIDs'][_0x4deb2a(0x269)](_0xb64ca9),this[_0x4deb2a(0x405)]({'type':0x0,'memberID':this[_0x4deb2a(0x44e)],'unitIDs':[_0xb64ca9],'isForwarded':!0x1});}[_0x2737e4(0x2aa)](_0x5eab22){const _0x58673d=_0x2737e4;this[_0x58673d(0x220)]['delete'](_0x5eab22),this['_selfUnitIDs'][_0x58673d(0x2f7)]===0x0&&this['_heartbeatTimer']&&window[_0x58673d(0x437)](this[_0x58673d(0x421)]);}['_init'](){const _0xf44cd2=_0x2737e4;this[_0xf44cd2(0x306)](a[_0xf44cd2(0x277)](I['fromEvent'](window,'storage')[_0xf44cd2(0x302)](_0x3715c4=>{const _0x387ad5=_0xf44cd2;if(_0x3715c4['key']!==ye||!_0x3715c4[_0x387ad5(0x37d)])return;const _0x1a1416=JSON[_0x387ad5(0x484)](_0x3715c4['newValue']);this[_0x387ad5(0x259)](_0x1a1416);}))),window[_0xf44cd2(0x2c8)](_0xf44cd2(0x1d9),()=>this[_0xf44cd2(0x405)]({'type':0x1,'memberID':this[_0xf44cd2(0x44e)],'unitIDs':Array[_0xf44cd2(0x3a2)](this[_0xf44cd2(0x220)])}));}[_0x2737e4(0x259)](_0x508def){const _0x1dc2b4=_0x2737e4;switch(_0x508def[_0x1dc2b4(0x2e6)]){case 0x0:this['_handleJoinEvent'](_0x508def);break;case 0x1:this[_0x1dc2b4(0x2bc)](_0x508def);break;case 0x2:this[_0x1dc2b4(0x495)](_0x508def);break;}}[_0x2737e4(0x4ad)](_0x32df6f){const _0x22d220=_0x2737e4,{unitIDs:_0x26620e,memberID:_0x37d025,isForwarded:_0x2541d4}=_0x32df6f;_0x26620e['forEach'](_0x5000e9=>{const _0x3e5fda=_0x5521;if(!_0x2541d4&&this[_0x3e5fda(0x3db)][_0x3e5fda(0x48c)](_0x5000e9)&&this[_0x3e5fda(0x283)](_0x5000e9)[_0x3e5fda(0x337)](u[_0x3e5fda(0x222)][_0x3e5fda(0x2a3)]),!this['_unitOnClients'][_0x3e5fda(0x48c)](_0x5000e9)||!this['_unitOnClients']['get'](_0x5000e9)[_0x3e5fda(0x48c)](_0x37d025)){const _0x4b44fc=this['_unitOnClients'][_0x3e5fda(0x3cc)](_0x5000e9)||new Set();_0x4b44fc['add'](_0x37d025),this[_0x3e5fda(0x3db)]['set'](_0x5000e9,_0x4b44fc),this[_0x3e5fda(0x49e)](_0x37d025);}}),_0x2541d4||this[_0x22d220(0x405)]({'type':0x0,'memberID':this[_0x22d220(0x44e)],'unitIDs':[...this[_0x22d220(0x220)]],'isForwarded':!0x0});}[_0x2737e4(0x49e)](_0x121f47){const _0x453941=_0x2737e4;this[_0x453941(0x481)](_0x121f47);const _0x36ab7f=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x27a5fa=>{const _0x13192f=_0x5521;_0x27a5fa[_0x13192f(0x1df)](_0x121f47);});},we*0x2);this[_0x453941(0x38e)][_0x453941(0x349)](_0x121f47,_0x36ab7f);}['_removeClearOtherTimer'](_0x29e973){const _0x2a6883=_0x2737e4;if(this[_0x2a6883(0x38e)][_0x2a6883(0x48c)](_0x29e973)){const _0x39cd3f=this['_clearOtherTimers']['get'](_0x29e973);_0x39cd3f&&window[_0x2a6883(0x2c6)](_0x39cd3f),this[_0x2a6883(0x38e)][_0x2a6883(0x349)](_0x29e973,null);}}[_0x2737e4(0x2bc)](_0x264330){const _0x320652=_0x2737e4,{memberID:_0x138008,unitIDs:_0x434d3d}=_0x264330;_0x434d3d[_0x320652(0x385)](_0x221f7c=>{const _0x2ed10e=_0x320652;var _0x1e8214;const _0x10be9=this[_0x2ed10e(0x3db)]['get'](_0x221f7c);_0x10be9&&(_0x10be9['delete'](_0x138008),(_0x1e8214=this['_ensureSubject'](_0x221f7c))==null||_0x1e8214['next'](_0x10be9['size']===0x0?u[_0x2ed10e(0x222)][_0x2ed10e(0x45c)]:u['UnitStatus'][_0x2ed10e(0x2a3)]));}),this[_0x320652(0x481)](_0x138008);}[_0x2737e4(0x495)](_0x3c0f8b){const _0x492c1d=_0x2737e4;this[_0x492c1d(0x49e)](_0x3c0f8b['memberID']);}['_send'](_0x1465f5){const _0x4d0b84=_0x2737e4;localStorage[_0x4d0b84(0x492)](ye,JSON['stringify'](_0x1465f5));}[_0x2737e4(0x2a7)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x44d553=_0x5521;this[_0x44d553(0x405)]({'type':0x2,'memberID':this[_0x44d553(0x44e)]});},we);}[_0x2737e4(0x283)](_0x1cf407){const _0x2c1714=_0x2737e4;return this[_0x2c1714(0x4a6)]['has'](_0x1cf407)||this[_0x2c1714(0x4a6)][_0x2c1714(0x349)](_0x1cf407,new I[(_0x2c1714(0x3a0))](u['UnitStatus'][_0x2c1714(0x45c)])),this[_0x2c1714(0x4a6)]['get'](_0x1cf407);}}exports[_0x2737e4(0x47c)]=Oe,exports['SheetCollabCursorShape']=je,exports[_0x2737e4(0x3fe)]=fs,exports[_0x2737e4(0x493)]=ke;