@univerjs-pro/collaboration-client-ui 0.12.4-experimental.20251210-d708bff → 0.12.4-experimental.20251211-e01e32a

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 +15 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4a1f29=_0x1f3f;(function(_0x4aa17e,_0xf3e641){const _0x48f861=_0x1f3f,_0x58617b=_0x4aa17e();while(!![]){try{const _0x582f50=-parseInt(_0x48f861(0x22d))/0x1+-parseInt(_0x48f861(0x237))/0x2+-parseInt(_0x48f861(0x2d2))/0x3+-parseInt(_0x48f861(0x16b))/0x4+-parseInt(_0x48f861(0x257))/0x5*(parseInt(_0x48f861(0x215))/0x6)+parseInt(_0x48f861(0x241))/0x7*(parseInt(_0x48f861(0x109))/0x8)+parseInt(_0x48f861(0xc5))/0x9;if(_0x582f50===_0xf3e641)break;else _0x58617b['push'](_0x58617b['shift']());}catch(_0x115e3f){_0x58617b['push'](_0x58617b['shift']());}}}(_0x30c0,0xf3ae2));var Xe=Object[_0x4a1f29(0x253)],Ke=(_0x130da0,_0x55d62e,_0x2c8840)=>_0x55d62e in _0x130da0?Xe(_0x130da0,_0x55d62e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c8840}):_0x130da0[_0x55d62e]=_0x2c8840,_=(_0xb9a073,_0x24e060,_0x4f0897)=>Ke(_0xb9a073,typeof _0x24e060!='symbol'?_0x24e060+'':_0x24e060,_0x4f0897);Object['defineProperty'](exports,Symbol[_0x4a1f29(0x1ba)],{'value':_0x4a1f29(0x2ad)});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:_0x32fbf9,..._0x3c7aa9}){const _0x21f811=_0x4a1f29,{icon:_0x48f816,id:_0x48877f,className:_0x26b86d,extend:_0x4bd3c0,..._0x23f56c}=_0x3c7aa9,_0x3fec3e=('univerjs-icon\x20univerjs-icon-'+_0x48877f+'\x20'+(_0x26b86d||''))[_0x21f811(0x1e8)](),_0x5f091e=A[_0x21f811(0x21b)]('_'+Qe());return $e(_0x48f816,''+_0x48877f,{'defIds':_0x48f816[_0x21f811(0x382)],'idSuffix':_0x5f091e[_0x21f811(0x28e)]},{'ref':_0x32fbf9,'className':_0x3fec3e,..._0x23f56c},_0x4bd3c0);}function $e(_0x209125,_0x12e201,_0x20b381,_0x1e8c6b,_0x5b1798){const _0x2ece24=_0x4a1f29;return A[_0x2ece24(0x170)](_0x209125[_0x2ece24(0x37f)],{'key':_0x12e201,...Je(_0x209125,_0x20b381,_0x5b1798),..._0x1e8c6b},(Ze(_0x209125,_0x20b381)['children']||[])['map']((_0x20153c,_0x107d7b)=>$e(_0x20153c,_0x12e201+'-'+_0x209125[_0x2ece24(0x37f)]+'-'+_0x107d7b,_0x20b381,void 0x0,_0x5b1798)));}function Je(_0x35e957,_0x5cb02f,_0x4011bc){const _0x1f0eda=_0x4a1f29,_0x4bf5a9={..._0x35e957['attrs']};_0x4011bc!=null&&_0x4011bc['colorChannel1']&&_0x4bf5a9[_0x1f0eda(0x136)]===_0x1f0eda(0x1c4)&&(_0x4bf5a9['fill']=_0x4011bc[_0x1f0eda(0x1c4)]),_0x35e957['tag']===_0x1f0eda(0x118)&&_0x4bf5a9['id']&&(_0x4bf5a9['id']=_0x4bf5a9['id']+_0x5cb02f['idSuffix']),Object[_0x1f0eda(0x28d)](_0x4bf5a9)['forEach'](([_0x8e87,_0x3d2f67])=>{const _0x5576af=_0x1f0eda;_0x8e87===_0x5576af(0x118)&&typeof _0x3d2f67=='string'&&(_0x4bf5a9[_0x8e87]=_0x3d2f67['replace'](/url\(#(.*)\)/,_0x5576af(0x250)+_0x5cb02f[_0x5576af(0x38f)]+')'));});const {defIds:_0x2b326d}=_0x5cb02f;return!_0x2b326d||_0x2b326d[_0x1f0eda(0x191)]===0x0||(_0x35e957['tag']===_0x1f0eda(0x32f)&&_0x4bf5a9['xlink:href']&&(_0x4bf5a9['xlink:href']=_0x4bf5a9[_0x1f0eda(0x194)]+_0x5cb02f[_0x1f0eda(0x38f)]),Object['entries'](_0x4bf5a9)[_0x1f0eda(0x1fb)](([_0x56f25b,_0x485524])=>{const _0x3b4fab=_0x1f0eda;typeof _0x485524==_0x3b4fab(0x258)&&(_0x4bf5a9[_0x56f25b]=_0x485524['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5cb02f[_0x3b4fab(0x38f)]+')'));})),_0x4bf5a9;}function Ze(_0x1945c2,_0x4373a7){const _0xaba978=_0x4a1f29;var _0x503987;const {defIds:_0x2b085c}=_0x4373a7;return!_0x2b085c||_0x2b085c[_0xaba978(0x191)]===0x0?_0x1945c2:_0x1945c2[_0xaba978(0x37f)]===_0xaba978(0x35f)&&((_0x503987=_0x1945c2[_0xaba978(0x140)])!=null&&_0x503987[_0xaba978(0x191)])?{..._0x1945c2,'children':_0x1945c2[_0xaba978(0x140)][_0xaba978(0x167)](_0x41be46=>typeof _0x41be46[_0xaba978(0xed)]['id']=='string'&&_0x2b085c&&_0x2b085c[_0xaba978(0x2b0)](_0x41be46[_0xaba978(0xed)]['id'])?{..._0x41be46,'attrs':{..._0x41be46['attrs'],'id':_0x41be46['attrs']['id']+_0x4373a7[_0xaba978(0x38f)]}}:_0x41be46)}:_0x1945c2;}function Qe(){const _0x24e862=_0x4a1f29;return Math[_0x24e862(0x383)]()[_0x24e862(0xe7)](0x24)[_0x24e862(0x329)](0x2,0x8);}pe[_0x4a1f29(0x314)]=_0x4a1f29(0x38e);const et={'tag':_0x4a1f29(0x2de),'attrs':{'xmlns':_0x4a1f29(0x1f1),'fill':_0x4a1f29(0x18b),'viewBox':_0x4a1f29(0xec),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4a1f29(0x129),'attrs':{'stroke':_0x4a1f29(0xe6),'d':_0x4a1f29(0x2da),'strokeLinecap':_0x4a1f29(0xcb),'strokeLinejoin':_0x4a1f29(0xcb),'strokeWidth':1.2}}]},{'tag':_0x4a1f29(0x35f),'attrs':{},'children':[{'tag':_0x4a1f29(0x18f),'attrs':{'id':_0x4a1f29(0x1b1)},'children':[{'tag':'path','attrs':{'fill':_0x4a1f29(0x135),'d':_0x4a1f29(0x1ca)}}]}]}],'defIds':[_0x4a1f29(0x1b1)]},xe=A[_0x4a1f29(0x247)](function(_0x370d09,_0x2367f2){const _0x541172=_0x4a1f29;return A[_0x541172(0x170)](pe,Object[_0x541172(0x1d5)]({},_0x370d09,{'id':_0x541172(0x14e),'ref':_0x2367f2,'icon':et}));});xe['displayName']=_0x4a1f29(0x126);const tt={'tag':_0x4a1f29(0x2de),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4a1f29(0x18b),'viewBox':_0x4a1f29(0x2e6),'width':_0x4a1f29(0x1f7),'height':_0x4a1f29(0x1f7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x4a1f29(0x129),'attrs':{'stroke':_0x4a1f29(0xe6),'d':_0x4a1f29(0x15b),'strokeLinecap':_0x4a1f29(0xcb),'strokeLinejoin':_0x4a1f29(0xcb),'strokeWidth':1.2}}]},{'tag':_0x4a1f29(0x35f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4a1f29(0x15e)},'children':[{'tag':_0x4a1f29(0x129),'attrs':{'fill':_0x4a1f29(0x135),'d':_0x4a1f29(0x1ca),'transform':_0x4a1f29(0x177)}}]}]}],'defIds':[_0x4a1f29(0x15e)]},Be=A['forwardRef'](function(_0x43dca3,_0x2ad62a){const _0x1d951f=_0x4a1f29;return A['createElement'](pe,Object[_0x1d951f(0x1d5)]({},_0x43dca3,{'id':_0x1d951f(0x209),'ref':_0x2ad62a,'icon':tt}));});Be[_0x4a1f29(0x314)]=_0x4a1f29(0x141);function st(_0x121056){const _0x2563bc=_0x4a1f29;switch(_0x121056){case u[_0x2563bc(0x2b7)][_0x2563bc(0x211)]:return _0x2563bc(0x32d);case u[_0x2563bc(0x2b7)]['CONFLICT']:return'collabStatus.conflict';case u['CollaborationStatus'][_0x2563bc(0x24d)]:return'collabStatus.fetchMiss';case u[_0x2563bc(0x2b7)][_0x2563bc(0x276)]:return _0x2563bc(0x26d);case u[_0x2563bc(0x2b7)][_0x2563bc(0x362)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x2563bc(0x1e4);case u[_0x2563bc(0x2b7)]['SYNCED']:case u[_0x2563bc(0x2b7)][_0x2563bc(0x1de)]:return _0x2563bc(0xea);}}function it(_0x4002ec){const _0x15e83a=_0x4a1f29,{status$:_0x2311f1}=_0x4002ec,_0xca8921=O[_0x15e83a(0x2e7)](_0x2311f1,u['CollaborationStatus'][_0x15e83a(0x276)]),_0x5607bc=O[_0x15e83a(0x2e4)](a[_0x15e83a(0xee)]),_0x347d5f=O[_0x15e83a(0x2e4)](u['CollaborationSessionService']),_0x47f34f=_0xca8921!==u[_0x15e83a(0x2b7)][_0x15e83a(0x211)],_0x457d9c=_0x5607bc['t'](st(_0xca8921)),_0x3df09c=_0x47f34f?M[_0x15e83a(0xd4)](Be,{}):M[_0x15e83a(0xd4)](xe,{}),_0x7b92e2=A[_0x15e83a(0x298)](()=>{const _0x25c879=_0x15e83a;_0x47f34f||_0x347d5f[_0x25c879(0x18d)]();},[_0x47f34f,_0x347d5f]);function _0xf7a62b(){const _0x379cc8=_0x15e83a;return M[_0x379cc8(0x17e)]('div',{'className':_0x379cc8(0x12e),'onClick':_0x7b92e2,'children':[M['jsx'](_0x379cc8(0x1c2),{'className':p[_0x379cc8(0x267)](_0x379cc8(0x21a),{'univer-text-green-500':_0x47f34f,'univer-text-red-500':!_0x47f34f}),'children':_0x3df09c}),M[_0x379cc8(0xd4)](_0x379cc8(0x1c2),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x457d9c})]});}return _0x47f34f?_0xf7a62b():M[_0x15e83a(0xd4)](p['Tooltip'],{'title':_0x5607bc['t'](_0x15e83a(0x2b8)),'children':_0xf7a62b()});}var nt=Object[_0x4a1f29(0xef)],rt=(_0x49e953,_0x2e9db8,_0x292612,_0x43354d)=>{const _0x4e4712=_0x4a1f29;for(var _0x41a8c5=_0x43354d>0x1?void 0x0:_0x43354d?nt(_0x2e9db8,_0x292612):_0x2e9db8,_0x348115=_0x49e953[_0x4e4712(0x191)]-0x1,_0x420122;_0x348115>=0x0;_0x348115--)(_0x420122=_0x49e953[_0x348115])&&(_0x41a8c5=_0x420122(_0x41a8c5)||_0x41a8c5);return _0x41a8c5;},K=(_0x75fe49,_0xce955d)=>(_0x45f32c,_0x4dae91)=>_0xce955d(_0x45f32c,_0x4dae91,_0x75fe49);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x163ec9,_0xe93991,_0x4066f7,_0x49f072){const _0x18ef23=_0x4a1f29;super(),_(this,_0x18ef23(0x205),new I[(_0x18ef23(0x2a0))](u[_0x18ef23(0x2b7)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x163ec9,this['_injector']=_0xe93991,this[_0x18ef23(0x18e)]=_0x4066f7,this[_0x18ef23(0x24b)]=_0x49f072,this[_0x18ef23(0x186)](),this[_0x18ef23(0x350)]());}['_initStatusListener'](){const _0x2c9d76=_0x4a1f29;this['disposeWithMe'](this['_univerInstanceService'][_0x2c9d76(0xf7)][_0x2c9d76(0x2e0)](I[_0x2c9d76(0x102)](()=>{const _0x50f781=_0x2c9d76,_0x2f236c=this['_univerInstanceService'][_0x50f781(0x2b9)]();return _0x2f236c?this['_collaborationController'][_0x50f781(0x1ec)](_0x2f236c[_0x50f781(0x317)]()):I['of'](null);}),I[_0x2c9d76(0x102)](_0x3121f7=>_0x3121f7?_0x3121f7['status$']:I['of'](u[_0x2c9d76(0x2b7)]['NOT_COLLAB'])))[_0x2c9d76(0x31a)](_0x8df8fa=>{const _0x5ebaba=_0x2c9d76;this[_0x5ebaba(0x205)][_0x5ebaba(0x293)](_0x8df8fa);}));}['_initStatusComponent'](){const _0x596744=_0x4a1f29;this[_0x596744(0x344)](this[_0x596744(0x24b)][_0x596744(0x150)](O[_0x596744(0x139)]['HEADER_MENU'],()=>O['connectInjector'](ot({'status$':this[_0x596744(0x205)][_0x596744(0x156)]()}),this[_0x596744(0x1eb)])));}},exports[_0x4a1f29(0x142)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x4a1f29(0x20d)](a['Injector'])),K(0x2,a[_0x4a1f29(0x20d)](u[_0x4a1f29(0x281)])),K(0x3,O[_0x4a1f29(0x15a)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x1b131a){const {status$:_0x3cfc45}=_0x1b131a;return function(){return M['jsx'](it,{'status$':_0x3cfc45});};}const Oe=a[_0x4a1f29(0x31e)](_0x4a1f29(0x22b));var at=Object['getOwnPropertyDescriptor'],ct=(_0x117bd2,_0x43da35,_0x49c712,_0x3874a2)=>{const _0x446e97=_0x4a1f29;for(var _0x116148=_0x3874a2>0x1?void 0x0:_0x3874a2?at(_0x43da35,_0x49c712):_0x43da35,_0x3390ee=_0x117bd2[_0x446e97(0x191)]-0x1,_0x23baad;_0x3390ee>=0x0;_0x3390ee--)(_0x23baad=_0x117bd2[_0x3390ee])&&(_0x116148=_0x23baad(_0x116148)||_0x116148);return _0x116148;},Y=(_0x5a84cf,_0x5ec11d)=>(_0x221c3b,_0x417b46)=>_0x5ec11d(_0x221c3b,_0x417b46,_0x5a84cf);exports[_0x4a1f29(0x334)]=class extends a[_0x4a1f29(0x27c)]{constructor(_0x26e371,_0x3ae72f,_0x4b003a,_0x35d19b,_0x64230c){const _0x597416=_0x4a1f29;super(),this['_urlService']=_0x26e371,this[_0x597416(0x300)]=_0x3ae72f,this[_0x597416(0x1ee)]=_0x4b003a,this[_0x597416(0x296)]=_0x35d19b,_0x64230c?_0x64230c==null||_0x64230c['whenReady']()[_0x597416(0x332)](()=>this[_0x597416(0x280)]()):(this[_0x597416(0x300)][_0x597416(0x270)]('[CollaborationDataLoaderController]',_0x597416(0xe9)),this[_0x597416(0x280)]());}async[_0x4a1f29(0x280)](){const _0xaaa0fe=_0x4a1f29,_0x1e3b9a=this[_0xaaa0fe(0x2e9)][_0xaaa0fe(0x319)](_0xaaa0fe(0x386)),_0x550229=this[_0xaaa0fe(0x2e9)][_0xaaa0fe(0x319)](_0xaaa0fe(0x275)),_0x13d46f=this[_0xaaa0fe(0x2e9)][_0xaaa0fe(0x319)](_0xaaa0fe(0x165));if(!_0x1e3b9a||!_0x550229){this[_0xaaa0fe(0x300)]['debug'](_0xaaa0fe(0x297),_0xaaa0fe(0x2a5));return;}const _0x227927=await this[_0xaaa0fe(0x296)]['loadUnit'](_0x1e3b9a,Number(_0x550229),_0x13d46f);_0x227927&&_0x227927 instanceof a['Workbook']&&this[_0xaaa0fe(0x244)](_0x227927);}async['_setupSubUnitSync'](_0x2100aa){const _0x92961d=_0x4a1f29;await this[_0x92961d(0x2d5)](_0x2100aa),_0x2100aa[_0x92961d(0x1c3)][_0x92961d(0x2e0)](I['takeUntil'](this['dispose$']))['subscribe'](_0x39f57c=>{_0x39f57c&&this['_updateURLWithCurrentState'](_0x39f57c);}),this[_0x92961d(0x2e9)][_0x92961d(0x29d)]['pipe'](I[_0x92961d(0x23b)](this['dispose$']))[_0x92961d(0x31a)](()=>this['_updateSubUnitFromURLParams'](_0x2100aa));}[_0x4a1f29(0x2ce)](_0x19ea05,_0x112bcf=!0x1){const _0x311e80=_0x4a1f29,_0x11976a=this[_0x311e80(0x2e9)][_0x311e80(0x319)]('subunit');_0x19ea05[_0x311e80(0x1c7)]()!==_0x11976a&&this['_urlService']['setParam']('subunit',_0x19ea05[_0x311e80(0x1c7)](),_0x112bcf);}async['_updateSubUnitFromURLParams'](_0x4b5c57){const _0x45a308=_0x4a1f29;var _0x2ac441;const _0x3f589a=this[_0x45a308(0x2e9)]['getParam'](_0x45a308(0x165));if(!_0x3f589a||!_0x4b5c57[_0x45a308(0x1f5)](_0x3f589a)){const _0x5eb63d=_0x4b5c57[_0x45a308(0x340)]()[0x0],_0x502175=_0x4b5c57[_0x45a308(0x1f5)](_0x5eb63d);if(!_0x502175)return;this[_0x45a308(0x2ce)](_0x502175,!0x0),await this[_0x45a308(0x1ee)][_0x45a308(0x26b)](v[_0x45a308(0x119)]['id'],{'unitId':_0x4b5c57[_0x45a308(0x317)](),'subUnitId':_0x5eb63d});return;}((_0x2ac441=_0x4b5c57[_0x45a308(0x2d9)]())==null?void 0x0:_0x2ac441[_0x45a308(0x1c7)]())!==_0x3f589a&&await this['_commandService'][_0x45a308(0x26b)](v[_0x45a308(0x119)]['id'],{'unitId':_0x4b5c57[_0x45a308(0x317)](),'subUnitId':_0x3f589a});}},exports[_0x4a1f29(0x334)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4a1f29(0xcc)]),Y(0x2,a[_0x4a1f29(0x1e6)]),Y(0x3,a[_0x4a1f29(0x20d)](u[_0x4a1f29(0x2e3)])),Y(0x4,a[_0x4a1f29(0x1d8)](qe[_0x4a1f29(0x24f)]))],exports[_0x4a1f29(0x334)]);var lt=Object[_0x4a1f29(0xef)],_t=(_0x230d98,_0x107e28,_0xbc77e1,_0x51f891)=>{const _0x251ede=_0x4a1f29;for(var _0x3f27da=_0x51f891>0x1?void 0x0:_0x51f891?lt(_0x107e28,_0xbc77e1):_0x107e28,_0x944f57=_0x230d98[_0x251ede(0x191)]-0x1,_0x343b28;_0x944f57>=0x0;_0x944f57--)(_0x343b28=_0x230d98[_0x944f57])&&(_0x3f27da=_0x343b28(_0x3f27da)||_0x3f27da);return _0x3f27da;},De=(_0x22e8cf,_0x3594db)=>(_0x28bb6e,_0x3e9d98)=>_0x3594db(_0x28bb6e,_0x3e9d98,_0x22e8cf);function _0x30c0(){const _0x51eb33=['RxDisposable','fromEventSubject','_cursors','_onCursorDelete','_init','CollaborationController','DocIMEInputManagerService','get','releaseFormulaLimitUrl','session.will-retry','_range','transformMutationsWithChangeset','_showGuardMessage','_scheduleClearOtherTimer','_docTransformStateCacheService','searchParams','deepClone','entries','current','ENTITLE_CAN_NOT_BUY_LOWER_OTP','CURRENT_STATUS_CANNOT_OPERATE','cursorInfo','_taskIds','next','formula.calculation.waiting','ENTITLE_COUPON_EXPIRED','_dataLoaderService','[CollaborationDataLoaderController]','useCallback','selections','width','PAYMENT_CHANNEL_NOT_SUPPORT','removeParam','urlChange$','onPointerEnter$','transformRemoteChangeset','BehaviorSubject','_docClipboardService','permission.content','[LogService\x20Error]:\x20','handleInsertCol','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','TEXT','imageSourceType','_pollingInterval','UNAUTHENTICATED','_color','measureText','setShapeProps','Module','ONLINE','_cursor','includes','APPLY_PERMISSION_DENIED','now','_anchorDot','clearTimeout','unitId','entityInit$','CollaborationStatus','collab-client.tooltip.reconnect','getFocusedUnit','_transformPreviousActiveRange','split','blue.400','_memberService','_monkeyPatchLogService','LOGIN_TOKEN_PROCESSING_FAILED','SUBMIT_CHANGESET_TIMEOUT','_handleEvent','getCellMatrix','roomMembers','MUTATION','PERMISSION_DENIED','resize','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_roomMembers$','YUUMI_URL_COL_OUT_OF_RANGE','distinctUntilChanged','LICENSE_IMPORT_SIZE_EXCEEDED','onMouseMove','LICENSE_EXPORT_SIZE_EXCEEDED','_updateURLWithCurrentState','DATA_SOURCE_TOO_LARGE','origin','_unitOnClients','1043490qgRpMd','_lastResponseTimestamp','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_updateSubUnitFromURLParams','setItem','ENTITLE_INSUFFICIENT_QUOTA','_collabSessionService','getActiveSheet','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','_httpService','INVITE_CODE_ALREADY_BOUND','LICENSE_DISTRO_REJECTED','svg','FromArray','pipe','toRgbString','IImageIoService','DataLoaderService','useDependency','runOnServer','0\x200\x2017\x2016','useObservable','_onRefRangeChange','_urlService','LOGIN_FAILED','ENTITLE_NEED_BILLING_ADDRESS','_shapes','some','ThemeService','_univerInstanceService','getCurrentUnitForType','currentSkeleton$','collaboration.offline-data-not-saved','sessionStatus$','_handleHeartbeatEvent','_revisionService','color','_registerRenderDependencies','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_docSkeletonManagerService','INVITE_CODE_HAS_BEEN_UES','_initUnhandledRejectionListener','CLOSE_ROOM','removeEventListener','delete','Injector','_logService','NOT_FOUND','bind','row','UNIVER_SHEET','ENTITLE_REPORT_LIMIT_EXCEED','_collaborationSessionService','memberID','fillStyle','getUnit','generateRandomId','setParam','MOBILE_VERIFY_CODE_MISMATCH','INTERNAL_ERROR','isActive','newValue','_handleHover','getTypeOfUnitAdded$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','dispose','displayName','_getSaveTimeout','LOCAL_CACHE_INTERVAL_KEY','getUnitId','_removeCollabCursors','getParam','subscribe','Rectangle','_sheetSkeletonManagerService','/universer-api/license/formula/limit/status','createIdentifier','getVpScrollXYInfoByPosToVp','docStateChange$','collaboration.closeRoom','_colorAssignService','key','setInterval','_doCreateSocket','YUUMI_NO_CUBOID_FOR_QUESTION','history','stage','substring','lineno','range','createInstance','collabStatus.offline','_transformHistoryAndStateStack','use','_textBubble','collab-text-anchor-','then','IRenderManagerService','CollaborationDataLoaderController','syncEditingCollabCursor','enableFrontendLog','REDEMPTION_USER_NOT_ELIGIBLE','_session','EMAIL_VERIFY_CODE_MISMATCH','_toggleOffline','ENTITLE_DUP_SUBSCRIPTION','join','engine','_getAnchorBounding','send','getUnhiddenWorksheets','DocCollaborationEntity','transformStateCache','getCellPositionByOffset','disposeWithMe','Shape','handleMoveRange','IConfigService','_name','addEventListener','_localeService','updateOfflineData','_cursorShapes','saveTaskMap','_docStateChangeManagerService','hide','_initStatusListener','_getMergeRange','restore','saveImage','_localStorageService','_removeClearOtherTimer','_docSyncEditingCollabCursorService','_getScale','_heartbeatTimer','addObject','parseInt','setTimeout','UnitStatus','_entities','getCollabCursors$','defs','getCurrentRevOfUnit','closePath','AWAITING','ISnapshotServerService','subUnitId','merge','AUTHORIZE_CODE_ILLEGAL','_transformService','_config','location','backgroundColor','m2Prime','pushState','APPLY_REJECT','COMPLETION_FINISHED','ENTITLE_INVALID_COUPON_CODE','handleDeleteRangeMoveUp','pluginName','_checkCalculationAvailable','with','getTypeOfUnitDisposed$','_renderManagerService','DependentOn','serializeRangeWithSheet','#FFF','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UniverCollaborationClientUIPlugin','_notificationService','unsubscribe','_configService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','tag','_refreshCollabCursors','sessionTicket','defIds','random','_registerDependencies','_initCommandInterceptor','unit','_initDependencies','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','executionId','onTransformChange$','RevisionService','YUUMI_AI_RUN_FAILED','registerRenderModule','UniverIcon','idSuffix','INVALID_INVITE_CODE','_docTransformIMECacheService','_hover','OTHER_CLIENT_EDITING','debounce','SetTextSelectionsOperation','_createSocketURL','_beforeCloseService','ERROR_AGAIN','44379648bKergz','ranges','getMemberID','addClipboardHook','EMAIL_HAS_BEEN_BOUND','redoState','round','ILogService','NO_OTHER_CLIENTS_EDITING','handleIRemoveRow','_unitStatus','RECT','filter','find','YUUMI_UNABLE_LOAD_URL','jsx','/universer-api/license/formula/limit/start','NodePositionConvertToRectRange','SetSelectionsOperation','USER_IS_ANONYMOUS','RemoveColCommandId','undoState','SOCKET_FAILED_RETRY','formula.calculation.started','_getSessionTicket','stageInfo','Unknown\x20user','Plugin','socket$','EffectRefRangId','drawWith','_id','_colorIndex','currentColor','toString','save','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.synced','YUUMI_RATE_OVER_LIMIT','0\x200\x2016\x2016','attrs','LocaleService','getOwnPropertyDescriptor','getRenderById','stringify','_cursorInfo$','all','invokeId','href','ENSURE_SNAPSHOT_EXECUTION','focused$','_entityInit$','throttleTime','max','getValue','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SNAPSHOT_HAS_BEEN_REMOVED','UPDATE_CURSOR','Rect','runId','_startDocCollabCursor','switchMap','popstate','message','collab-text-range-','ALREADY_EXISTS','fillText','_currentUsage','56gdlCDz','getCoordByCell','_context','IMessageService','event$','_messageService','YUUMI_CONNECTOR_URL_NOT_FOUND','/universer-api/frontend/logs','getSkeleton','stack','reason','has','_clearOtherTimers','_docSkeleton','CONNECTOR_DATA_TOO_LARGE','mask','SetWorksheetActivateCommand','ENTITLE_CHAT_LIMIT_EXCEED','PY_RUNTIME_SCRIPT_ERROR','DEFAULT_WS_SESSION_TICKET_URL','COLORS','rgba(255,\x20255,\x20255,\x200.01)','name','_collaborationUIEventService','handleInsertRangeMoveDown','CollaborationUIEventService','textRanges','_setupBeforeClosingHandler','sheetID','OffLineIcon','ILocalCacheService','_checkAndWaitForCalculationPermission','path','SetFormulaCalculationNotificationMutation','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','subscribeEvent','saveOfflineData','univer-flex\x20univer-items-center','USER_NOT_INVITED_CODE','setUndoRedoMutationParamsCache','ITransformService','_labelPosition','_collabCursorState$','add','white','fill','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_collabCursorController','BuiltInUIPart','limitInfo','/run/','UniverCollaborationClientPlugin','getColorFromTheme','\x20at\x20','size','children','OnLineIcon','DesktopCollaborationStatusDisplayController','DeleteRangeMoveLeftCommandId','triggerDblclick','result','WECHAT_HAS_BEEN_BOUND','APPLY_DUPLICATED','INVITE_CODE_REQUIRED','labelPosition','APPLY_REVISION_CONFILICT','doc.mutation.rich-text-editing','VIEW_MAIN','MessageType','off-line-icon','Disposable','registerComponent','DocSelectionManagerService','CanceledError','getUndoRedoMutationParamsCache','IURLService','_document','asObservable','clearInterval','_getFormulaLimitStatus','ACTIVE_UNIT_EVENT_CHANNEL','IUIPartsService','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','setAlpha','_drawTextRange','on-line-icon_clip0_910_349','CommandType','WebURLService','show','_assignedColors','isTransformMutationFailure','unshift','subunit','transformIMECache','map','INotificationService','Tools','DOC_RANGE_TYPE','2054428pksMcV','shareReplay','_hasFormulaInDirtyRanges','REDEMPTION_INVALID_CODE','isTransformMutationsWithChangesetSuccess','createElement','loadOfflineData','startRow','override','_saveTaskMap','text','getCurrentSelections','translate(.97)','currentUsage','SessionStatus','mapTo','_saveCache','toDisposable','registerRefRange','jsxs','getStateCache','_maxFormulaLimit','handleInsertRangeMoveRight','_anchor','push','beginPath','Warning','_initStatusComponent','_scene','ENTITLE_USE_COUPON_NOT_1ST_TRADE','onRendered','jiqing.500','none','post','reconnect','_collaborationController','clipPath','values','length','transformMutation','set','xlink:href','Error','InsertRangeMoveDownCommandId','IUniverInstanceService','REDEMPTION_CODE_HAS_BEEN_CREATED','_updateCollabCursors','onPointerLeave$','getColor','MemberService','error','SHEET_VIEWPORT_KEY','ISocketService','_setFormulaLimitStatus','code','_getSheetObject','complete','requireSession','getRelativeToViewportCoord','YUUMI_SUBSCRIPTION_NOT_FOUND','session.collaboration-timeout','LICENSE_MAX_UNITS_EXCEEDED','getConfig','REDEMPTION_CODE_FULLY_REDEEMED','BrowserCollaborationSocketService','_scheduleSaving','findNodePositionByCharIndex','SOCKET_FAILED','UNIVER_DOC','column','off-line-icon_clip0_910_343','JOIN_ROOM_FAILED','CollaborationSocketService','_scheduleHeartbeat','unhandledrejection','wsSessionTicketUrl','addObjects','MOBILE_HAS_BEEN_BOUND','_initEntityListener','toStringTag','unitID','WebBrowserSingleActiveUnitService','DocStateChangeManagerService','REDEMPTION_CODE_INACTIVE','RegularPolygon','_transformUndoRedoStack','_syncEditingCollabCursorService','div','activeSheet$','colorChannel1','colno','_render','getSheetId','combineLatest','evenodd','M0\x200H16V16H0z','exhaustSavingTask','params','UNRECOGNIZED','_lastPointer','parse','[Unhandled\x20Rejection]:\x20','disableLocalCache','addHandlerCallback','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','permission.title','assign','enableLocalCache','formula.calculation.unable','Optional','green.600','getUniverSheetInstance','CollaborationUIEventId','fromEvent','disposeUnit','PENDING','getAncestorScale','NodePositionConvertToCursor','lineTo','ColorKit','_initResize','collabStatus.syncing','_onCursorUpdate','ICommandService','_initCommandExecutedListener','trim','HTTPService','_send','_injector','getCollabEntity$','from','_commandService','getMember','data','http://www.w3.org/2000/svg','START_CALCULATION','YUUMI_ASYNCIO_CANCELLED','_instanceService','getSheetBySheetId','_backgroundColor','1em','_toggleOnline','_docTransformSelectionsService','functionsExecutedState','forEach','black','getRangePointData','_handleJoinEvent','_cachedData','skeleton','SNAPSHOT_INVALID_SNAPSHOT','_refRangeService','UNDEFINED','_selfUnitIDs','_status$','TOO_MANY_REQUESTS','body','RemoteUniscriptService','on-line-icon','font','INVALID_ARGUMENT','_updateLocalCursor','Inject','IDocClipboardService','SUCCESS','height','OFFLINE','SheetCollabCursorShape','REDEMPTION_CODE_NOT_STARTED','_online','426wzoXsB','startColumn','dispose$','onLocalMutation','deserializeRangeWithSheet','univer-mr-2\x20univer-flex\x20univer-text-xl','useRef','handleDeleteRangeMoveLeft','_disabled','_draw','cursorInfo$','_eventUnsubscribe','_imageIoService','mutations','arc','init','contains','_uploadLog','USER_NOT_FOUND','onCommandExecuted','setStateCache','_clearPolling','uni.network.url-service','_releaseCalculationLimit','1155308mWhiQT','moveTo','collabCursorState$','sheetId','SheetSkeletonManagerService','_localCacheService','isFormulaString','onStarting','ticket','_memberID','1904608VNjPqY','_drawAnchor','eventID','FormulaExecuteStageType','takeUntil','Success','_startCalculationLimit','endColumn','USERS_LEAVE','CollaborationSessionService','8862khbMYW','replaceDocRanges','...','_setupSubUnitSync','_ensureSubject','OTHER_CLIENTS_EDITING','forwardRef','transformByState','debounceTime','CHANGESET_REVISION_CONFILICT','_uiPartsService','unload','FETCH_MISS','session.connection-failed','IRemoteInstanceService','url(#$1','makeDirty','_initEvent','defineProperty','_initWindowErrorListener','_hideTimer','beforeCommandExecuted','68505lpiWOH','string','FormulaExecutedStateType','setActiveRange','_hovered','ENTITLE_COUPON_USED_UP','Loading','UniverInstanceType','transform','getDocRanges','TEXT_RANGE_LAYER_INDEX','storage','currentTheme$','selection','m1Prime','CollaborationEvent','clsx','WebSocketService','isArray','_applyCommand','executeCommand','getUnitStatus$','collabStatus.notCollab','roomMembers$','createSocket','debug','Vector2','_themeService','_initUserListener','[Window\x20Error]:\x20','type','NOT_COLLAB','bottom','_startSheetCollabCursor','Failed','setConfig','YUUMI_ALL_TABLES_IS_INVALID'];_0x30c0=function(){return _0x51eb33;};return _0x30c0();}let me=class extends a[_0x4a1f29(0x27c)]{constructor(_0x441cfa,_0x2da13d){const _0x16059b=_0x4a1f29;super(),this[_0x16059b(0x2a1)]=_0x441cfa,this[_0x16059b(0x221)]=_0x2da13d,this['_init']();}['_init'](){const _0x2edabf=_0x4a1f29,_0x1ee742=this;this[_0x2edabf(0x344)](this[_0x2edabf(0x2a1)][_0x2edabf(0xc8)]({'onBeforePasteImage':async _0x555dd5=>{const _0x44d601=_0x2edabf,_0x3a5833=await _0x1ee742[_0x44d601(0x221)][_0x44d601(0x353)](_0x555dd5);return _0x3a5833?{'source':_0x3a5833['source'],'imageSourceType':_0x3a5833[_0x44d601(0x2a7)]}:null;}}));}};me=_t([De(0x0,T[_0x4a1f29(0x20e)]),De(0x1,ze[_0x4a1f29(0x2e2)])],me);const Ne=['purple.300',_0x4a1f29(0x18a),_0x4a1f29(0x1d9),'red.300',_0x4a1f29(0x2bc),'yellow.400'];class Re extends a[_0x4a1f29(0x14f)]{constructor(){const _0x3276ad=_0x4a1f29;super(...arguments),_(this,_0x3276ad(0x162),new Map()),_(this,_0x3276ad(0xe5),0x0);}['assignAColorForMemberID'](_0x5e343d){const _0x13e490=_0x4a1f29;if(this['_assignedColors'][_0x13e490(0x114)](_0x5e343d))return this[_0x13e490(0x162)]['get'](_0x5e343d);const _0x14960a=Ne[this[_0x13e490(0xe5)]];return this['_colorIndex']=(this[_0x13e490(0xe5)]+0x1)%Ne[_0x13e490(0x191)],this['_assignedColors'][_0x13e490(0x193)](_0x5e343d,_0x14960a),_0x14960a;}}function Fe(_0x5e716e){let _0x4bfc06='';for(const _0x2fac25 of _0x5e716e){const {startOffset:_0x595cb9,endOffset:_0x5aa64a,isActive:_0x33e507,rangeType:_0x3f4490,segmentId:_0x17759c,segmentPage:_0x532210}=_0x2fac25;_0x4bfc06['length']&&(_0x4bfc06+=','),_0x4bfc06+=_0x595cb9+':'+_0x5aa64a+':'+(_0x33e507?'1':'0')+':'+_0x3f4490+':'+_0x17759c+':'+_0x532210;}return _0x4bfc06;}function ht(_0x10a021){const _0x393a01=_0x4a1f29,_0x57787a=_0x10a021[_0x393a01(0x2bb)](','),_0x58b933=[];for(const _0x4b090b of _0x57787a){const [_0x40f113,_0x142916,_0x4f489a,_0x214330,_0x3050ce,_0x3ddab8]=_0x4b090b[_0x393a01(0x2bb)](':');_0x58b933[_0x393a01(0x183)]({'startOffset':Number(_0x40f113),'endOffset':Number(_0x142916),'collapsed':_0x40f113===_0x142916,'isActive':_0x4f489a==='1','rangeType':_0x214330===a['DOC_RANGE_TYPE'][_0x393a01(0x2a6)]?a[_0x393a01(0x16a)][_0x393a01(0x2a6)]:a[_0x393a01(0x16a)][_0x393a01(0xd0)],'segmentId':typeof _0x3050ce==_0x393a01(0x258)?String(_0x3050ce):'','segmentPage':Number(_0x3ddab8!=null?_0x3ddab8:-0x1)});}return _0x58b933[_0x393a01(0x2ed)](_0x411f71=>_0x411f71[_0x393a01(0x30e)])||(_0x58b933[0x0][_0x393a01(0x30e)]=!0x0),_0x58b933;}class be extends a['RxDisposable']{constructor(){const _0x30f871=_0x4a1f29;super(...arguments),_(this,_0x30f871(0x133),new I[(_0x30f871(0x2a0))](null)),_(this,_0x30f871(0x22f),this[_0x30f871(0x133)][_0x30f871(0x156)]());}[_0x4a1f29(0x335)](_0x25c818){const _0x25eaf5=_0x4a1f29,{unitID:_0xdef078,memberID:_0x2b8269,textRanges:_0x39d15e}=_0x25c818,_0x2cbe49=Fe(_0x39d15e);if(_0x2cbe49==='')return;const _0x3123b3={'unitID':_0xdef078,'memberID':_0x2b8269,'selection':_0x2cbe49};this[_0x25eaf5(0x133)]['next'](_0x3123b3);}}var ut=Object[_0x4a1f29(0xef)],It=(_0x554bd9,_0x4fe099,_0x4c0288,_0x9da521)=>{for(var _0x52befa=_0x9da521>0x1?void 0x0:_0x9da521?ut(_0x4fe099,_0x4c0288):_0x4fe099,_0x2b3c59=_0x554bd9['length']-0x1,_0x7b3d63;_0x2b3c59>=0x0;_0x2b3c59--)(_0x7b3d63=_0x554bd9[_0x2b3c59])&&(_0x52befa=_0x7b3d63(_0x52befa)||_0x52befa);return _0x52befa;},U=(_0x4fb573,_0x58b0f0)=>(_0x5c6486,_0x3ee0b2)=>_0x58b0f0(_0x5c6486,_0x3ee0b2,_0x4fb573);const St=0x12c,dt=0x64;function _0x1f3f(_0x4ed2d7,_0x5c3f6c){_0x4ed2d7=_0x4ed2d7-0xbf;const _0x30c084=_0x30c0();let _0x1f3f1b=_0x30c084[_0x4ed2d7];return _0x1f3f1b;}let ve=class extends a[_0x4a1f29(0x27c)]{constructor(_0x377048,_0x195a69,_0x1c04d7,_0x1e0ba1,_0x244ef2,_0x41e1e5,_0x31caaf,_0x354567,_0x338d41){const _0x573281=_0x4a1f29;super(),_(this,_0x573281(0x214),!0x1),_(this,_0x573281(0x280),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x573281(0x21f),this[_0x573281(0xf2)]['asObservable']()),_(this,_0x573281(0x2c8),new I[(_0x573281(0x2a0))]([])),_(this,_0x573281(0x26e),this['_roomMembers$'][_0x573281(0x2e0)](I['debounceTime'](St))),_(this,_0x573281(0x20c),a[_0x573281(0xc0)](_0x1f1759=>{const _0x3a0184=_0x573281,_0xa3bdb2={'eventID':g['CollaborationEvent'][_0x3a0184(0xfe)],'data':{'unitID':this[_0x3a0184(0x1bb)],'memberID':this[_0x3a0184(0x338)]['getMemberID'](),'selection':Fe(_0x1f1759)}};this[_0x3a0184(0x338)][_0x3a0184(0x33f)](_0xa3bdb2,this['unitID']);},dt)),(this['unitID']=_0x377048,this[_0x573281(0x338)]=_0x195a69,this[_0x573281(0x1eb)]=_0x1c04d7,this['_colorAssignService']=_0x1e0ba1,this[_0x573281(0x2bd)]=_0x244ef2,this[_0x573281(0x1c1)]=_0x41e1e5,this[_0x573281(0x367)]=_0x31caaf,this[_0x573281(0x2ef)]=_0x354567,this[_0x573281(0x1ee)]=_0x338d41);}get[_0x4a1f29(0x291)](){const _0xb5a81e=_0x4a1f29;return this[_0xb5a81e(0xf2)][_0xb5a81e(0xfb)]();}get[_0x4a1f29(0x2c3)](){const _0x1aa0bb=_0x4a1f29;return this[_0x1aa0bb(0x2c8)][_0x1aa0bb(0xfb)]();}[_0x4a1f29(0x313)](){const _0x59c804=_0x4a1f29;super['dispose'](),this[_0x59c804(0xf2)][_0x59c804(0x293)](new Map()),this[_0x59c804(0xf2)][_0x59c804(0x1a3)](),this[_0x59c804(0x2c8)][_0x59c804(0x293)]([]),this[_0x59c804(0x2c8)]['complete']();}[_0x4a1f29(0x224)](){const _0x428e62=_0x4a1f29;this[_0x428e62(0x280)]||(this['_init']=!0x0,this[_0x428e62(0x338)][_0x428e62(0x2f3)][_0x428e62(0x2e0)](I[_0x428e62(0x23b)](this['dispose$']))['subscribe'](_0x13863f=>{const _0x3a0eda=_0x428e62;_0x13863f===u[_0x3a0eda(0x179)]['ONLINE']?this[_0x3a0eda(0x1f8)]():this[_0x3a0eda(0x33a)]();}),this[_0x428e62(0x338)][_0x428e62(0x10d)][_0x428e62(0x2e0)](I[_0x428e62(0x23b)](this[_0x428e62(0x217)]))[_0x428e62(0x31a)](_0x3590b4=>{const _0x292a3e=_0x428e62,_0x4d2e9b=_0x3590b4[_0x292a3e(0x239)];_0x4d2e9b===g[_0x292a3e(0x266)][_0x292a3e(0xfe)]&&this[_0x292a3e(0x1e5)](_0x3590b4),_0x4d2e9b===g[_0x292a3e(0x266)]['USERS_LEAVE']&&this[_0x292a3e(0x27f)](_0x3590b4);}),this['disposeWithMe'](this[_0x428e62(0x1ee)][_0x428e62(0x228)](_0x501755=>{const _0x5d13c9=_0x428e62,_0x466a88=_0x501755[_0x5d13c9(0x1cc)];_0x466a88!=null&&this[_0x5d13c9(0x214)]&&_0x501755['id']===V[_0x5d13c9(0xc1)]['id']&&_0x466a88[_0x5d13c9(0x2b5)]===this[_0x5d13c9(0x1bb)]&&_0x466a88['isEditing']===!0x1&&_0x466a88[_0x5d13c9(0xc6)]['length']>0x0&&this[_0x5d13c9(0x20c)](_0x466a88[_0x5d13c9(0xc6)]);})),this[_0x428e62(0x1c1)][_0x428e62(0x22f)]['pipe'](I[_0x428e62(0x23b)](this['dispose$']))[_0x428e62(0x31a)](_0x5f0411=>{const _0x591108=_0x428e62;if((_0x5f0411==null?void 0x0:_0x5f0411['unitID'])!==this[_0x591108(0x1bb)])return;const _0x882a12={'eventID':g[_0x591108(0x266)][_0x591108(0xfe)],'data':_0x5f0411};this['_onCursorUpdate'](_0x882a12);}),this[_0x428e62(0x344)](this[_0x428e62(0x1ee)][_0x428e62(0x228)](_0x552d78=>{const _0x588962=_0x428e62;if(_0x552d78['params']==null)return;const _0x6f21e=_0x552d78['params'];if(_0x552d78['id']!==V['RichTextEditingMutation']['id']||_0x6f21e['unitId']!==this['unitID'])return;const _0x48396a={'id':_0x588962(0x14b),'params':_0x6f21e},_0x4be689=this[_0x588962(0x291)];for(const [_0x5b4893,_0x5ed912]of _0x4be689){const _0x5e8602={'id':_0x588962(0x14b),'params':{'unitId':this[_0x588962(0x1bb)],'actions':null,'textRanges':_0x5ed912[_0x588962(0xc6)]}},_0x3d5056=this['_transformService'][_0x588962(0x192)](_0x48396a,_0x5e8602,!0x1);if(g[_0x588962(0x163)](_0x3d5056))throw _0x3d5056[_0x588962(0x19d)];_0x4be689[_0x588962(0x193)](_0x5b4893,{..._0x5ed912,'ranges':_0x3d5056['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0x27aef3=_0x588962;this[_0x27aef3(0xf2)]['next'](_0x4be689);});})));}[_0x4a1f29(0x1e5)](_0xc67a97){const _0x27ee51=_0x4a1f29;var _0x2b0934,_0x35486e;const {memberID:_0x238001,selection:_0x11f539}=_0xc67a97['data'],_0x589027=ht(_0x11f539),_0xe82dbc=(_0x35486e=(_0x2b0934=this[_0x27ee51(0x2bd)][_0x27ee51(0x1ef)](this[_0x27ee51(0x1bb)],_0x238001))==null?void 0x0:_0x2b0934[_0x27ee51(0x11f)])!=null?_0x35486e:_0x27ee51(0xdf),_0x13a01a={'color':this[_0x27ee51(0x322)]['assignAColorForMemberID'](_0x238001),'name':_0xe82dbc,'ranges':_0x589027},_0xf9f086=this[_0x27ee51(0x291)];_0xf9f086[_0x27ee51(0x193)](_0x238001,_0x13a01a),this[_0x27ee51(0xf2)][_0x27ee51(0x293)](_0xf9f086);}[_0x4a1f29(0x27f)](_0x455c6a){const _0x34024b=_0x4a1f29,{memberID:_0xcf7e52}=_0x455c6a[_0x34024b(0x1f0)],_0x1f0b95=this[_0x34024b(0x291)];_0x1f0b95['delete'](_0xcf7e52),this['_cursorInfo$']['next'](_0x1f0b95);}['_toggleOnline'](){const _0x209721=_0x4a1f29;var _0x150727;if(this[_0x209721(0x214)]=!0x0,((_0x150727=this[_0x209721(0x2ef)]['getFocusedUnit']())==null?void 0x0:_0x150727[_0x209721(0x317)]())!==this[_0x209721(0x1bb)])return;const _0x44486a=this[_0x209721(0x1eb)]['get'](V[_0x209721(0x151)])[_0x209721(0x260)]();Array[_0x209721(0x269)](_0x44486a)&&_0x44486a[_0x209721(0x191)]>0x0&&this[_0x209721(0x20c)](_0x44486a);}[_0x4a1f29(0x33a)](){const _0x2dda58=_0x4a1f29;this[_0x2dda58(0x214)]=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x4a1f29(0x2ff)])),U(0x3,a[_0x4a1f29(0x20d)](Re)),U(0x4,a['Inject'](u[_0x4a1f29(0x19c)])),U(0x5,a[_0x4a1f29(0x20d)](be)),U(0x6,g[_0x4a1f29(0x131)]),U(0x7,a[_0x4a1f29(0x197)]),U(0x8,a[_0x4a1f29(0x1e6)])],ve);var ft=Object[_0x4a1f29(0xef)],mt=(_0x6441e1,_0x1935f7,_0x141453,_0x4a5393)=>{const _0x3ef17e=_0x4a1f29;for(var _0x5630b5=_0x4a5393>0x1?void 0x0:_0x4a5393?ft(_0x1935f7,_0x141453):_0x1935f7,_0x365ccc=_0x6441e1[_0x3ef17e(0x191)]-0x1,_0x2b05df;_0x365ccc>=0x0;_0x365ccc--)(_0x2b05df=_0x6441e1[_0x365ccc])&&(_0x5630b5=_0x2b05df(_0x5630b5)||_0x5630b5);return _0x5630b5;},w=(_0x9a7015,_0x546c56)=>(_0x35291c,_0x861561)=>_0x546c56(_0x35291c,_0x861561,_0x9a7015);const vt=0x12c,gt=0x64,Et=()=>{let _0x263292=[],_0x2d899a=!0x1;return _0x885c65=>{_0x263292['push'](_0x885c65),_0x2d899a||(_0x2d899a=!0x0,setTimeout(()=>{const _0x14bb3d=_0x1f3f;_0x263292[_0x14bb3d(0x1fb)](_0x9ce0fd=>_0x9ce0fd()),_0x263292=[],_0x2d899a=!0x1;}));};};let ge=class extends a[_0x4a1f29(0x27c)]{constructor(_0x389104,_0x3feb72,_0x12e368,_0x588ad8,_0x50f4ae,_0x572206,_0x4d0e11,_0x5f0a80){const _0x10d60c=_0x4a1f29;super(),_(this,_0x10d60c(0x214),!0x1),_(this,'_init',!0x1),_(this,_0x10d60c(0xf2),new I[(_0x10d60c(0x2a0))](new Map())),_(this,'cursorInfo$',this[_0x10d60c(0xf2)]['asObservable']()),_(this,_0x10d60c(0x2c8),new I[(_0x10d60c(0x2a0))]([])),_(this,'roomMembers$',this['_roomMembers$'][_0x10d60c(0x2e0)](I[_0x10d60c(0x249)](vt))),_(this,'_updateLocalCursor',a[_0x10d60c(0xc0)]((_0x47f60b,_0x4a9738)=>{const _0x543299=_0x10d60c,_0x9732e9={'eventID':g[_0x543299(0x266)][_0x543299(0xfe)],'data':{'unitID':this[_0x543299(0x1bb)],'memberID':this[_0x543299(0x338)][_0x543299(0xc7)](),'selection':B[_0x543299(0x377)](_0x47f60b,_0x4a9738[_0x543299(0x32b)])}};this[_0x543299(0x338)]['send'](_0x9732e9,this[_0x543299(0x1bb)]);},gt)),(this[_0x10d60c(0x1bb)]=_0x389104,this[_0x10d60c(0x338)]=_0x3feb72,this[_0x10d60c(0x1eb)]=_0x12e368,this[_0x10d60c(0x322)]=_0x588ad8,this[_0x10d60c(0x2bd)]=_0x50f4ae,this['_univerInstanceService']=_0x572206,this[_0x10d60c(0x1ee)]=_0x4d0e11,this[_0x10d60c(0x202)]=_0x5f0a80);}get[_0x4a1f29(0x291)](){const _0x47a859=_0x4a1f29;return this[_0x47a859(0xf2)]['getValue']();}get['roomMembers'](){const _0x21318f=_0x4a1f29;return this[_0x21318f(0x2c8)]['getValue']();}[_0x4a1f29(0x313)](){const _0x52d4ed=_0x4a1f29;super[_0x52d4ed(0x313)](),this['_cursorInfo$'][_0x52d4ed(0x293)](new Map()),this['_cursorInfo$'][_0x52d4ed(0x1a3)](),this[_0x52d4ed(0x2c8)][_0x52d4ed(0x293)]([]),this[_0x52d4ed(0x2c8)]['complete']();}[_0x4a1f29(0x224)](){const _0x2f0e70=_0x4a1f29;this['_init']||(this[_0x2f0e70(0x280)]=!0x0,this[_0x2f0e70(0x338)][_0x2f0e70(0x2f3)][_0x2f0e70(0x2e0)](I[_0x2f0e70(0x23b)](this['dispose$']))[_0x2f0e70(0x31a)](_0x117413=>{const _0x293b22=_0x2f0e70;_0x117413===u[_0x293b22(0x179)][_0x293b22(0x2ae)]?this[_0x293b22(0x1f8)]():this[_0x293b22(0x33a)]();}),this['_session'][_0x2f0e70(0x10d)]['pipe'](I[_0x2f0e70(0x23b)](this[_0x2f0e70(0x217)]))[_0x2f0e70(0x31a)](_0x15a9d7=>{const _0x9327de=_0x2f0e70,_0x19ea00=_0x15a9d7[_0x9327de(0x239)];_0x19ea00===g['CollaborationEvent'][_0x9327de(0xfe)]&&this[_0x9327de(0x1e5)](_0x15a9d7),_0x19ea00===g[_0x9327de(0x266)][_0x9327de(0x23f)]&&this[_0x9327de(0x27f)](_0x15a9d7);}),this[_0x2f0e70(0x2e8)](),this[_0x2f0e70(0x344)](this[_0x2f0e70(0x1ee)][_0x2f0e70(0x228)](_0x54ea55=>{const _0x736028=_0x2f0e70;if(this[_0x736028(0x214)]&&_0x54ea55['id']===v[_0x736028(0xd7)]['id']&&_0x54ea55[_0x736028(0x1cc)]['unitId']===this[_0x736028(0x1bb)]){const _0x1a27a2=_0x54ea55[_0x736028(0x1cc)];this[_0x736028(0x20c)](_0x1a27a2[_0x736028(0x364)],_0x1a27a2[_0x736028(0x299)][0x0]);}})));}['_onCursorUpdate'](_0x418fcf){const _0x2cb659=_0x4a1f29;var _0x2f7c44,_0x307a67;const {memberID:_0x116de2,selection:_0x1b4efd}=_0x418fcf[_0x2cb659(0x1f0)],{sheetName:_0x5388c9,range:_0x1de47b}=B[_0x2cb659(0x219)](_0x1b4efd),_0x4f2f0f={'name':(_0x307a67=(_0x2f7c44=this[_0x2cb659(0x2bd)][_0x2cb659(0x1ef)](this['unitID'],_0x116de2))==null?void 0x0:_0x2f7c44[_0x2cb659(0x11f)])!=null?_0x307a67:_0x2cb659(0xdf),'range':this[_0x2cb659(0x351)](_0x5388c9,_0x1de47b),'sheetID':_0x5388c9,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x116de2),'selection':_0x1b4efd},_0x4ed647=this[_0x2cb659(0x291)];_0x4ed647[_0x2cb659(0x193)](_0x116de2,_0x4f2f0f),this[_0x2cb659(0xf2)][_0x2cb659(0x293)](_0x4ed647);}[_0x4a1f29(0x27f)](_0x36f545){const _0x2174af=_0x4a1f29,{memberID:_0x136267}=_0x36f545[_0x2174af(0x1f0)],_0x4af075=this[_0x2174af(0x291)];_0x4af075[_0x2174af(0x2fe)](_0x136267),this[_0x2174af(0xf2)][_0x2174af(0x293)](_0x4af075);}[_0x4a1f29(0x351)](_0x211b12,_0x26f113){const _0x270e5a=_0x4a1f29;var _0x3c853e,_0x3f6ccd;const _0x279906=(_0x3f6ccd=(_0x3c853e=this['_univerInstanceService'][_0x270e5a(0x1da)](this[_0x270e5a(0x1bb)]))==null?void 0x0:_0x3c853e['getSheetBySheetId'](_0x211b12))==null?void 0x0:_0x3f6ccd['getMergeData']();return(_0x279906==null?void 0x0:_0x279906[_0x270e5a(0xd2)](_0x35e0e1=>a[_0x270e5a(0x31b)][_0x270e5a(0x225)](_0x35e0e1,_0x26f113)))||_0x26f113;}[_0x4a1f29(0x2e8)](){const _0x2a6fe5=_0x4a1f29,_0x381933=new a['DisposableCollection'](),_0x2ced39=Et(),_0x3bd696=()=>{const _0x11a6ef=_0x1f3f;_0x381933[_0x11a6ef(0x313)]();const _0x3d276e=(_0x305f88,_0xa90154,_0x163b70,_0x582027)=>{const _0x4ca771=_0x11a6ef;let _0x3d304d=[];switch(_0x305f88['id']){case v[_0x4ca771(0xe2)][_0x4ca771(0x143)]:{_0x3d304d=v[_0x4ca771(0x21c)](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)]['DeleteRangeMoveUpCommandId']:{_0x3d304d=v[_0x4ca771(0x370)](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)]['InsertColCommandId']:{_0x3d304d=v[_0x4ca771(0x2a4)](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)][_0x4ca771(0x196)]:{_0x3d304d=v[_0x4ca771(0x121)](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)]['InsertRangeMoveRightCommandId']:{_0x3d304d=v[_0x4ca771(0x181)](_0x305f88,_0x582027);break;}case v['EffectRefRangId']['InsertRowCommandId']:{_0x3d304d=v['handleInsertRow'](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)]['MoveRangeCommandId']:{_0x3d304d=v[_0x4ca771(0x346)](_0x305f88,_0x582027);break;}case v['EffectRefRangId'][_0x4ca771(0xd9)]:{_0x3d304d=v['handleIRemoveCol'](_0x305f88,_0x582027);break;}case v[_0x4ca771(0xe2)]['RemoveRowCommandId']:{_0x3d304d=v[_0x4ca771(0xce)](_0x305f88,_0x582027);break;}}const _0x7f76e5=v['runRefRangeMutations'](_0x3d304d,_0x582027),_0x533e0a=this[_0x4ca771(0x291)][_0x4ca771(0x283)](_0xa90154);if(_0x533e0a&&_0x7f76e5){const _0x314576={..._0x533e0a,'range':_0x7f76e5};this['cursorInfo'][_0x4ca771(0x193)](_0xa90154,_0x314576),_0x2ced39(()=>{const _0x5ad463=_0x4ca771,_0x94ee=this['_refRangeService'][_0x5ad463(0x17d)](_0x7f76e5,_0x14b22d=>(_0x94ee[_0x5ad463(0x313)](),_0x3d276e(_0x14b22d,_0xa90154,_0x163b70,_0x7f76e5)));_0x381933['add'](_0x94ee);});}return{'redos':[],'undos':[]};};this[_0x11a6ef(0x291)]['forEach']((_0x45c495,_0x4cf915)=>{const _0x1ea7e8=_0x11a6ef,{range:_0x2922d5,sheetID:_0x46de81}=_0x45c495,_0x2bcdc4=this[_0x1ea7e8(0x202)][_0x1ea7e8(0x17d)](_0x2922d5,_0x7a2ff5=>(_0x2bcdc4[_0x1ea7e8(0x313)](),_0x3d276e(_0x7a2ff5,_0x4cf915,_0x46de81,_0x2922d5)));_0x381933['add'](_0x2bcdc4);});};this[_0x2a6fe5(0x344)](a[_0x2a6fe5(0x17c)](this[_0x2a6fe5(0xf2)][_0x2a6fe5(0x31a)](()=>{_0x3bd696();})));}['_toggleOnline'](){const _0x4c788b=_0x4a1f29;var _0x18e88d,_0x3aa767;if(this[_0x4c788b(0x214)]=!0x0,((_0x18e88d=this['_univerInstanceService'][_0x4c788b(0x2b9)]())==null?void 0x0:_0x18e88d[_0x4c788b(0x317)]())!==this[_0x4c788b(0x1bb)])return;const _0x56bba2=(_0x3aa767=this['_injector'][_0x4c788b(0x283)](v['SheetsSelectionsService'])[_0x4c788b(0x176)]())==null?void 0x0:_0x3aa767[0x0],_0x282ac2=this[_0x4c788b(0x2ef)][_0x4c788b(0x2f0)](a[_0x4c788b(0x25e)][_0x4c788b(0x304)])[_0x4c788b(0x2d9)]();_0x56bba2&&_0x282ac2&&this[_0x4c788b(0x20c)](_0x282ac2['getSheetId'](),_0x56bba2);}[_0x4a1f29(0x33a)](){const _0x2b7860=_0x4a1f29;this[_0x2b7860(0x214)]=!0x1;}};ge=mt([w(0x2,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ff)])),w(0x3,a[_0x4a1f29(0x20d)](Re)),w(0x4,a['Inject'](u[_0x4a1f29(0x19c)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x4a1f29(0x1e6)]),w(0x7,a[_0x4a1f29(0x20d)](v['RefRangeService']))],ge);var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x2a0beb,_0x1b2551,_0x4a7207,_0x516aaf)=>{const _0xd91eaf=_0x4a1f29;for(var _0x225c69=_0x516aaf>0x1?void 0x0:_0x516aaf?Ct(_0x1b2551,_0x4a7207):_0x1b2551,_0x331689=_0x2a0beb[_0xd91eaf(0x191)]-0x1,_0x5d70c6;_0x331689>=0x0;_0x331689--)(_0x5d70c6=_0x2a0beb[_0x331689])&&(_0x225c69=_0x5d70c6(_0x225c69)||_0x225c69);return _0x225c69;},ce=(_0x49d3fe,_0x2cc438)=>(_0x50d16b,_0x196f57)=>_0x2cc438(_0x50d16b,_0x196f57,_0x49d3fe);let F=class extends a[_0x4a1f29(0x27c)]{constructor(_0x3e19a3,_0x190323,_0x6ed97f){const _0x2481c0=_0x4a1f29;super(),_(this,_0x2481c0(0x35d),new Map()),_(this,_0x2481c0(0xf8),new I['Subject']()),(this[_0x2481c0(0x2ef)]=_0x3e19a3,this['_injector']=_0x190323,this[_0x2481c0(0x2d8)]=_0x6ed97f,this['_init']());}[_0x4a1f29(0x313)](){const _0x55d41d=_0x4a1f29;super[_0x55d41d(0x313)](),this[_0x55d41d(0xf8)][_0x55d41d(0x1a3)](),this[_0x55d41d(0x35d)]['forEach'](_0x41fd76=>_0x41fd76[_0x55d41d(0x313)]());}[_0x4a1f29(0x35e)](_0xcf7239){const _0x542168=_0x4a1f29;return this[_0x542168(0x35d)][_0x542168(0x114)](_0xcf7239)?this[_0x542168(0x35d)]['get'](_0xcf7239)['cursorInfo$']:this['_entityInit$'][_0x542168(0x2e0)](I['filter'](_0x105de1=>_0x105de1[_0x542168(0x1bb)]===_0xcf7239),I[_0x542168(0x102)](_0x222aec=>_0x222aec[_0x542168(0x21f)]));}[_0x4a1f29(0x280)](){const _0x18a6a5=_0x4a1f29;this[_0x18a6a5(0x2ef)][_0x18a6a5(0x311)](a[_0x18a6a5(0x25e)][_0x18a6a5(0x304)])['pipe'](I[_0x18a6a5(0x23b)](this[_0x18a6a5(0x217)]))['subscribe'](async _0x5a7310=>{const _0x18f1ea=_0x18a6a5,_0x4e3322=_0x5a7310['getUnitId'](),_0x2820ee=await this[_0x18f1ea(0x278)](_0x4e3322);this[_0x18f1ea(0xf8)][_0x18f1ea(0x293)](_0x2820ee),this[_0x18f1ea(0x35d)][_0x18f1ea(0x193)](_0x4e3322,_0x2820ee);}),this['_univerInstanceService'][_0x18a6a5(0x311)](a[_0x18a6a5(0x25e)][_0x18a6a5(0x1af)])[_0x18a6a5(0x2e0)](I[_0x18a6a5(0x23b)](this[_0x18a6a5(0x217)]))[_0x18a6a5(0x2e0)](I[_0x18a6a5(0xd1)](_0x3461fe=>!_0x3461fe[_0x18a6a5(0x317)]()['startsWith']('__')))[_0x18a6a5(0x31a)](async _0x2be5e7=>{const _0x126e0c=_0x18a6a5,_0x3c23c2=_0x2be5e7[_0x126e0c(0x317)](),_0x567c5b=await this['_startDocCollabCursor'](_0x3c23c2);this['_entityInit$'][_0x126e0c(0x293)](_0x567c5b),this['_entities']['set'](_0x3c23c2,_0x567c5b);}),I[_0x18a6a5(0x365)](this[_0x18a6a5(0x2ef)]['getTypeOfUnitDisposed$'](a[_0x18a6a5(0x25e)][_0x18a6a5(0x1af)]),this[_0x18a6a5(0x2ef)][_0x18a6a5(0x374)](a[_0x18a6a5(0x25e)][_0x18a6a5(0x304)]))[_0x18a6a5(0x2e0)](I[_0x18a6a5(0x23b)](this[_0x18a6a5(0x217)]))[_0x18a6a5(0x31a)](_0x2327c9=>{const _0x2c3a35=_0x18a6a5,_0x11facf=_0x2327c9[_0x2c3a35(0x317)](),_0x3d0d1d=this[_0x2c3a35(0x35d)][_0x2c3a35(0x283)](_0x11facf);_0x3d0d1d&&(_0x3d0d1d['dispose'](),this[_0x2c3a35(0x35d)][_0x2c3a35(0x2fe)](_0x11facf));});}async[_0x4a1f29(0x278)](_0x1bf05f){const _0x505d1e=_0x4a1f29,_0x5ab332=await this[_0x505d1e(0x2d8)][_0x505d1e(0x1a4)](_0x1bf05f),_0x53dc26=this[_0x505d1e(0x1eb)][_0x505d1e(0x32c)](ge,_0x1bf05f,_0x5ab332);return _0x53dc26[_0x505d1e(0x224)](),_0x53dc26;}async[_0x4a1f29(0x101)](_0xcc3772){const _0x15fc4d=_0x4a1f29,_0x5838ad=await this[_0x15fc4d(0x2d8)][_0x15fc4d(0x1a4)](_0xcc3772),_0x486796=this[_0x15fc4d(0x1eb)][_0x15fc4d(0x32c)](ve,_0xcc3772,_0x5838ad);return _0x486796['init'](),_0x486796;}};F=Tt([ce(0x0,a[_0x4a1f29(0x197)]),ce(0x1,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ff)])),ce(0x2,a[_0x4a1f29(0x20d)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x4981ea,_0x5e2f34){const _0x35f993=_0x4a1f29;let {radius:_0x3b2834,width:_0x2070d1,height:_0x16fc26}=_0x5e2f34;_0x3b2834=_0x3b2834!=null?_0x3b2834:0x0,_0x2070d1=_0x2070d1!=null?_0x2070d1:0x1e,_0x16fc26=_0x16fc26!=null?_0x16fc26:0x1e;let _0x4de188=0x0,_0x2e3653=0x0,_0x68b7a9=0x0;_0x4de188=_0x2e3653=_0x68b7a9=Math['min'](_0x3b2834,_0x2070d1/0x2,_0x16fc26/0x2),_0x4981ea[_0x35f993(0x184)](),_0x4981ea[_0x35f993(0x22e)](_0x4de188,0x0),_0x4981ea[_0x35f993(0x1e1)](_0x2070d1-_0x2e3653,0x0),_0x4981ea[_0x35f993(0x223)](_0x2070d1-_0x2e3653,_0x2e3653,_0x2e3653,Math['PI']*0x3/0x2,0x0,!0x1),_0x4981ea[_0x35f993(0x1e1)](_0x2070d1,_0x16fc26-_0x68b7a9),_0x4981ea['arc'](_0x2070d1-_0x68b7a9,_0x16fc26-_0x68b7a9,_0x68b7a9,0x0,Math['PI']/0x2,!0x1),_0x4981ea[_0x35f993(0x1e1)](0x0,_0x16fc26),_0x4981ea['lineTo'](0x0,_0x4de188),_0x4981ea['arc'](_0x4de188,_0x4de188,_0x4de188,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4981ea[_0x35f993(0x361)](),_0x5e2f34[_0x35f993(0x136)]&&(_0x4981ea[_0x35f993(0xe8)](),_0x4981ea[_0x35f993(0x308)]=_0x5e2f34[_0x35f993(0x136)],_0x5e2f34['fillRule']===_0x35f993(0x1c9)?_0x4981ea['fill'](_0x35f993(0x1c9)):_0x4981ea[_0x35f993(0x136)](),_0x4981ea['restore']());}class re extends C[_0x4a1f29(0x345)]{constructor(_0x496cca,_0x5b4410){const _0x233742=_0x4a1f29;super(_0x496cca,_0x5b4410),_(this,_0x233742(0x2f6)),_(this,_0x233742(0x175)),(this[_0x233742(0x2f6)]=_0x5b4410==null?void 0x0:_0x5b4410[_0x233742(0x2f6)],this[_0x233742(0x175)]=_0x5b4410==null?void 0x0:_0x5b4410[_0x233742(0x175)]);}static['drawWith'](_0x478e1b,_0x30f5d5){const _0x129d86=_0x4a1f29,{text:_0x188f81,color:_0x1d9fff}=_0x30f5d5;_0x478e1b[_0x129d86(0xe8)](),_0x478e1b[_0x129d86(0x20a)]=_0x129d86(0x388);const _0x5549b5=_0x478e1b['measureText'](_0x188f81)[_0x129d86(0x29a)],_0x3c81f1=Math['min'](_0x5549b5+0x2*le,Ue);Ot(_0x478e1b,{'height':X,'radius':0x4,'width':_0x3c81f1,'fill':_0x1d9fff}),_0x478e1b[_0x129d86(0x308)]=_0x129d86(0x378);const _0x298b99=le,_0x4ff1d5=X-pt,_0x3a48b0=Ue-0x2*le;if(_0x5549b5>_0x3a48b0){let _0x2e2c0e='',_0x4b6585=0x0;for(const _0x387097 of _0x188f81){const _0x5cb43b=_0x478e1b['measureText'](_0x387097)[_0x129d86(0x29a)];if(_0x4b6585+_0x5cb43b<=_0x3a48b0-_0x478e1b[_0x129d86(0x2ab)](_0x129d86(0x243))[_0x129d86(0x29a)])_0x2e2c0e+=_0x387097,_0x4b6585+=_0x5cb43b;else{_0x2e2c0e+=_0x129d86(0x243);break;}}_0x478e1b[_0x129d86(0x107)](_0x2e2c0e,_0x298b99,_0x4ff1d5);}else _0x478e1b[_0x129d86(0x107)](_0x188f81,_0x298b99,_0x4ff1d5);_0x478e1b[_0x129d86(0x352)]();}['_draw'](_0x1a9b11){const _0x2d27ad=_0x4a1f29;re[_0x2d27ad(0xe3)](_0x1a9b11,this);}}const _e=_0x4a1f29(0x331),Rt=_0x4a1f29(0x105),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4a1f29(0x11e);class Le{constructor(_0x4e8fff,_0x1aded3,_0x15fa83,_0x4f37b9){const _0x1458fc=_0x4a1f29;_(this,'_shapes',[]),_(this,_0x1458fc(0x182),null),_(this,_0x1458fc(0x330),null),_(this,'_anchorDot',null),_(this,_0x1458fc(0x255),null),_(this,_0x1458fc(0x220),null),(this[_0x1458fc(0x2af)]=_0x4e8fff,this[_0x1458fc(0x187)]=_0x1aded3,this[_0x1458fc(0x116)]=_0x15fa83,this[_0x1458fc(0x155)]=_0x4f37b9,this[_0x1458fc(0x1c6)]());}set[_0x4a1f29(0x392)](_0x2f81dc){const _0x54ef17=_0x4a1f29;_0x2f81dc?(this[_0x54ef17(0x2b3)]&&this['_anchorDot'][_0x54ef17(0x34f)](),this['_textBubble']&&this[_0x54ef17(0x330)][_0x54ef17(0x161)]()):(this['_anchorDot']&&this[_0x54ef17(0x2b3)][_0x54ef17(0x161)](),this[_0x54ef17(0x330)]&&this[_0x54ef17(0x330)]['hide']());}['dispose'](){const _0x3dfdc2=_0x4a1f29;for(const _0x5234e8 of this['_shapes'])_0x5234e8['dispose']();this[_0x3dfdc2(0x330)]&&this[_0x3dfdc2(0x330)]['dispose'](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this[_0x3dfdc2(0x182)]&&this[_0x3dfdc2(0x182)][_0x3dfdc2(0x313)](),this[_0x3dfdc2(0x220)]&&this[_0x3dfdc2(0x220)]();}[_0x4a1f29(0x1c6)](){const _0x182401=_0x4a1f29;var _0x515622;const {_docSkeleton:_0x48cc9c,_document:_0x5e5f72}=this,{color:_0x2f9e9b,name:_0x314a03,ranges:_0xc5a54}=this['_cursor'],_0x23d920=_0x5e5f72['getOffsetConfig'](),{docsLeft:_0x27347f,docsTop:_0x11d9b4}=_0x23d920,_0x59aed0=new T[(_0x182401(0x1e0))](_0x23d920,_0x48cc9c);for(const {startOffset:_0x4848eb,endOffset:_0x11c853,rangeType:_0xb50096,segmentId:_0x184ce9,segmentPage:_0x507140,collapsed:_0x544f68,isActive:_0xdf9997}of _0xc5a54){const _0x36669b=_0x48cc9c[_0x182401(0x1ad)](_0x4848eb,!0x0,_0x184ce9,_0x507140);let _0x39807c=_0x48cc9c[_0x182401(0x1ad)](_0x11c853,!0x0,_0x184ce9,_0x507140);if(_0x39807c==null&&(_0x39807c=_0x48cc9c[_0x182401(0x1ad)](_0x11c853-0x1,!0x1,_0x184ce9,_0x507140)),_0xdf9997){const {contentBoxPointGroup:_0x362a8d}=_0x59aed0[_0x182401(0x1fd)](_0x39807c,_0x39807c);if(_0x362a8d[_0x182401(0x191)]===0x0)continue;this[_0x182401(0x238)](_0x2f9e9b,_0x362a8d,_0x27347f,_0x11d9b4,_0x314a03),this['_eventUnsubscribe']=this[_0x182401(0x310)]();}if(_0x36669b&&_0x39807c){if(_0xb50096===a[_0x182401(0x16a)]['RECT']){const _0x5aa2b7=new T[(_0x182401(0xd6))](_0x23d920,_0x48cc9c),{pointGroup:_0x35f04b}=(_0x515622=_0x5aa2b7[_0x182401(0x1fd)](_0x36669b,_0x39807c))!=null?_0x515622:{};if(_0x35f04b==null||_0x35f04b['length']===0x0)continue;this['_drawRectRange'](_0x2f9e9b,_0x35f04b,_0x27347f,_0x11d9b4);}else{if(!_0x544f68){const {borderBoxPointGroup:_0x4f6a4c}=_0x59aed0[_0x182401(0x1fd)](_0x36669b,_0x39807c);if(_0x4f6a4c['length']===0x0)continue;this[_0x182401(0x15d)](_0x2f9e9b,_0x4f6a4c,_0x27347f,_0x11d9b4);}}}}}[_0x4a1f29(0x238)](_0x147857,_0x363dcd,_0x2aad2c,_0x1b6468,_0x5b9865){const _0x163266=_0x4a1f29,_0x2377e9=this[_0x163266(0x33e)](_0x363dcd),{left:_0x38421b,top:_0x409749,height:_0x5d241f}=_0x2377e9,_0x2c1edc=this[_0x163266(0x357)](),_0x2a689e=Nt/_0x2c1edc,_0x7af836=new C[(_0x163266(0xff))](_e+a[_0x163266(0x30a)](H),{'left':_0x38421b+_0x2aad2c-_0x2a689e,'top':_0x409749+_0x1b6468,'height':_0x5d241f,'width':Dt,'fill':_0x147857||C[_0x163266(0x19b)](a['COLORS'][_0x163266(0x1fc)],0x0),'strokeWidth':_0x2a689e,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x7af836,this[_0x163266(0x187)][_0x163266(0x359)](_0x7af836,T[_0x163266(0x261)]);const _0x43086e=new C['Rect'](_e+a[_0x163266(0x30a)](H),{'left':_0x38421b+_0x2aad2c-_0x2a689e,'top':_0x409749+_0x1b6468-he/0x2,'height':he,'width':he,'fill':_0x147857||C[_0x163266(0x19b)](a['COLORS'][_0x163266(0x1fc)],0x0),'strokeWidth':0x0,'stroke':_0x147857||C[_0x163266(0x19b)](a[_0x163266(0x11d)][_0x163266(0x1fc)],0x0),'evented':!0x1});this[_0x163266(0x2b3)]=_0x43086e,this['_scene'][_0x163266(0x359)](_0x43086e,T[_0x163266(0x261)]);const _0x3cb6f5=new re(_e+a[_0x163266(0x30a)](H),{'left':_0x38421b+_0x2aad2c-_0x2a689e,'top':_0x409749+_0x1b6468-X,'text':_0x5b9865,'color':_0x147857});this['_textBubble']=_0x3cb6f5,this[_0x163266(0x187)][_0x163266(0x359)](_0x3cb6f5,T[_0x163266(0x261)]),this[_0x163266(0x392)]=!0x1;}[_0x4a1f29(0x310)](){const _0x2ef9fe=_0x4a1f29,_0x96386c=this['_anchor'][_0x2ef9fe(0x29e)][_0x2ef9fe(0x12c)](()=>{const _0x1ff9c7=_0x2ef9fe;this[_0x1ff9c7(0x392)]=!0x0;}),_0x423a2b=this['_anchor']['onPointerLeave$'][_0x2ef9fe(0x12c)](()=>{const _0x45cdf8=_0x2ef9fe;this['_hideTimer']&&clearTimeout(this[_0x45cdf8(0x255)]),this[_0x45cdf8(0x255)]=setTimeout(()=>{const _0x4fb9af=_0x45cdf8;this[_0x4fb9af(0x392)]=!0x1;},0x7d0);});return()=>{const _0x3b2352=_0x2ef9fe;_0x96386c[_0x3b2352(0x37c)](),_0x423a2b[_0x3b2352(0x37c)]();};}['_drawTextRange'](_0x351511,_0x58fbd0,_0x2b7904,_0x5addb5){const _0x2a3cb4=_0x4a1f29,_0x2c0362=new a[(_0x2a3cb4(0x1e2))](_0x351511)[_0x2a3cb4(0x15c)](0.2)[_0x2a3cb4(0x2e1)](),_0x1a861d=new C['RegularPolygon'](Rt+a[_0x2a3cb4(0x30a)](H),{'pointsGroup':_0x58fbd0,'fill':_0x2c0362||C[_0x2a3cb4(0x19b)](a[_0x2a3cb4(0x11d)]['black'],0.2),'left':_0x2b7904,'top':_0x5addb5,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2a3cb4(0x183)](_0x1a861d),this['_scene']['addObject'](_0x1a861d,T[_0x2a3cb4(0x261)]);}['_drawRectRange'](_0x5483ee,_0x8698ab,_0x20c3b1,_0x46e620){const _0x41ff09=_0x4a1f29,_0x586133=new a[(_0x41ff09(0x1e2))](_0x5483ee)[_0x41ff09(0x15c)](0.2)[_0x41ff09(0x2e1)](),_0x1224c9=new C[(_0x41ff09(0x1bf))](bt+a[_0x41ff09(0x30a)](H),{'pointsGroup':_0x8698ab,'fill':_0x586133||C[_0x41ff09(0x19b)](a[_0x41ff09(0x11d)][_0x41ff09(0x1fc)],0.2),'left':_0x20c3b1,'top':_0x46e620,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x41ff09(0x2ec)][_0x41ff09(0x183)](_0x1224c9),this[_0x41ff09(0x187)][_0x41ff09(0x359)](_0x1224c9,T[_0x41ff09(0x261)]);}[_0x4a1f29(0x33e)](_0x55478e){const _0x24594b=_0x55478e[0x0],_0x25ec8b=_0x24594b[0x0],_0x3ba76d=_0x24594b[0x2],{x:_0x4c5240,y:_0x2b404b}=_0x25ec8b,{x:_0x27459a,y:_0xd04bc5}=_0x3ba76d;return{'left':_0x4c5240,'top':_0x2b404b,'width':_0x27459a-_0x4c5240,'height':_0xd04bc5-_0x2b404b};}[_0x4a1f29(0x357)](){const _0x276e8f=_0x4a1f29,{scaleX:_0x60e552,scaleY:_0xc75ba2}=this[_0x276e8f(0x187)]['getAncestorScale']();return Math[_0x276e8f(0xfa)](_0x60e552,_0xc75ba2);}}var Lt=Object[_0x4a1f29(0xef)],Mt=(_0x561426,_0x36cdc2,_0x1d6882,_0x3191f6)=>{const _0x187fd6=_0x4a1f29;for(var _0xf59d2c=_0x3191f6>0x1?void 0x0:_0x3191f6?Lt(_0x36cdc2,_0x1d6882):_0x36cdc2,_0x34b279=_0x561426[_0x187fd6(0x191)]-0x1,_0x536a8e;_0x34b279>=0x0;_0x34b279--)(_0x536a8e=_0x561426[_0x34b279])&&(_0xf59d2c=_0x536a8e(_0xf59d2c)||_0xf59d2c);return _0xf59d2c;},q=(_0x181798,_0x4afc26)=>(_0x10b0d2,_0x4a04c7)=>_0x4afc26(_0x10b0d2,_0x4a04c7,_0x181798);let Ee=class extends a[_0x4a1f29(0x27c)]{constructor(_0x5d2d5d,_0x1c5c7f,_0xeafdc3,_0x246273,_0x236ca2){const _0x5c363d=_0x4a1f29;super(),_(this,'_cursorShapes',[]),_(this,_0x5c363d(0x27e),[]),(this[_0x5c363d(0x10b)]=_0x5d2d5d,this[_0x5c363d(0x2f9)]=_0x1c5c7f,this['_collabCursorController']=_0xeafdc3,this[_0x5c363d(0x1ee)]=_0x246273,this['_themeService']=_0x236ca2,this[_0x5c363d(0x280)]());}['_init'](){const _0x2ef3d7=_0x4a1f29,_0x86253d=this['_context']['unitId'],_0x1ddd8f=this['_docSkeletonManagerService'];this['disposeWithMe'](I[_0x2ef3d7(0x1c8)]([this[_0x2ef3d7(0x138)]['getCollabCursors$'](_0x86253d),this[_0x2ef3d7(0x272)][_0x2ef3d7(0x263)]])['pipe']($[_0x2ef3d7(0x167)](([_0x37e837,_0x13615b])=>({'skeleton':_0x1ddd8f['getSkeleton'](),'cursors':[..._0x37e837['values']()]['flatMap'](_0x52479a=>({..._0x52479a,'color':this[_0x2ef3d7(0x272)]['getColorFromTheme'](_0x52479a[_0x2ef3d7(0x2f6)])}))})))[_0x2ef3d7(0x31a)](_0x527d65=>{const _0x1d1daf=_0x2ef3d7;if(this[_0x1d1daf(0x318)](),_0x527d65){const {skeleton:_0x28c9e9,cursors:_0x5132cb}=_0x527d65;this['_updateCollabCursors'](_0x28c9e9,_0x5132cb);}})),this[_0x2ef3d7(0x1e3)](),this[_0x2ef3d7(0x1e7)]();}['_updateCollabCursors'](_0x4a5f30,_0x319c11){const _0x4cf48d=_0x4a1f29,{scene:_0xfc7070,mainComponent:_0x16034d}=this['_context'],_0x4bef77=_0x319c11[_0x4cf48d(0x167)](_0x3c0947=>new Le(_0x3c0947,_0xfc7070,_0x4a5f30,_0x16034d));this[_0x4cf48d(0x34c)]=_0x4bef77,this[_0x4cf48d(0x27e)]=_0x319c11;}['_refreshCollabCursors'](){const _0x302288=_0x4a1f29;this['_removeCollabCursors']();const {scene:_0x55a70f,mainComponent:_0x5c3c30}=this[_0x302288(0x10b)],_0x44de2e=this[_0x302288(0x2f9)][_0x302288(0x111)](),_0x5519d8=this[_0x302288(0x27e)][_0x302288(0x167)](_0x22e6b6=>new Le(_0x22e6b6,_0x55a70f,_0x44de2e,_0x5c3c30));this['_cursorShapes']=_0x5519d8;}[_0x4a1f29(0x318)](){const _0x3ab66a=_0x4a1f29;this[_0x3ab66a(0x34c)][_0x3ab66a(0x1fb)](_0x16fa9c=>_0x16fa9c[_0x3ab66a(0x313)]()),this[_0x3ab66a(0x34c)]=[];}[_0x4a1f29(0x1e7)](){const _0x5b4d21=_0x4a1f29,_0x22ff77=[T['SetDocZoomRatioOperation']['id']];this[_0x5b4d21(0x344)](this[_0x5b4d21(0x1ee)][_0x5b4d21(0x228)](_0x219a26=>{const _0x43b79e=_0x5b4d21;_0x22ff77[_0x43b79e(0x2b0)](_0x219a26['id'])&&_0x219a26[_0x43b79e(0x1cc)][_0x43b79e(0x2b5)]===this[_0x43b79e(0x10b)][_0x43b79e(0x2b5)]&&this[_0x43b79e(0x380)]();}));}['_initResize'](){const _0x2c4da7=_0x4a1f29;this[_0x2c4da7(0x344)](a[_0x2c4da7(0x27d)](this[_0x2c4da7(0x10b)][_0x2c4da7(0x33d)][_0x2c4da7(0x38a)])[_0x2c4da7(0x2e0)]($[_0x2c4da7(0xd1)](_0x490905=>_0x490905[_0x2c4da7(0x275)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x2c4da7(0x2c6)]),$[_0x2c4da7(0xf9)](0x10))[_0x2c4da7(0x31a)](()=>{const _0x217e65=_0x2c4da7;this[_0x217e65(0x380)]();}));}};Ee=Mt([q(0x1,a['Inject'](V['DocSkeletonManagerService'])),q(0x2,a[_0x4a1f29(0x20d)](F)),q(0x3,a[_0x4a1f29(0x1e6)]),q(0x4,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ee)]))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0x25ae5e,_0x33692f){const _0x1b7cda=_0x4a1f29;super(_0x25ae5e,_0x33692f),_(this,_0x1b7cda(0x2aa)),_(this,_0x1b7cda(0x25b),!0x1),_(this,'_range'),_(this,_0x1b7cda(0x348),''),_(this,'_labelPosition','top'),_(this,_0x1b7cda(0x1f6)),(_0x33692f&&this[_0x1b7cda(0x2ac)](_0x33692f),this['onPointerEnter$'][_0x1b7cda(0x12c)](()=>this[_0x1b7cda(0x2ac)]({'hovered':!0x0})),this[_0x1b7cda(0x19a)][_0x1b7cda(0x12c)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4a1f29(0x2ac)](_0x27f73d){const _0x3757da=_0x4a1f29;var _0x4ffeca,_0x287004,_0x40d9e8,_0x378be5,_0x577d5b,_0x196517;this[_0x3757da(0x2aa)]=(_0x4ffeca=_0x27f73d[_0x3757da(0x2f6)])!=null?_0x4ffeca:this[_0x3757da(0x2aa)],this[_0x3757da(0x25b)]=(_0x287004=_0x27f73d['hovered'])!=null?_0x287004:this['_hovered'],this[_0x3757da(0x286)]=(_0x40d9e8=_0x27f73d['range'])!=null?_0x40d9e8:this[_0x3757da(0x286)],this[_0x3757da(0x348)]=(_0x378be5=_0x27f73d[_0x3757da(0x11f)])!=null?_0x378be5:this[_0x3757da(0x348)],this['_labelPosition']=(_0x577d5b=_0x27f73d[_0x3757da(0x149)])!=null?_0x577d5b:this[_0x3757da(0x132)],this[_0x3757da(0x1f6)]=(_0x196517=_0x27f73d[_0x3757da(0x36a)])!=null?_0x196517:this['_backgroundColor'],this[_0x3757da(0x248)]({'width':_0x27f73d[_0x3757da(0x29a)],'height':_0x27f73d[_0x3757da(0x210)]});}[_0x4a1f29(0x2cc)](_0x174be9){const _0x5316d9=_0x4a1f29,{row:_0xa2dee4,column:_0x39f2f3}=_0x174be9;if(_0xa2dee4>=this[_0x5316d9(0x286)][_0x5316d9(0x172)]&&_0xa2dee4<=this['_range']['endRow']&&_0x39f2f3>=this['_range']['startColumn']&&_0x39f2f3<=this[_0x5316d9(0x286)][_0x5316d9(0x23e)]){this[_0x5316d9(0x2ac)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x4a1f29(0x144)](_0x431352){return!0x1;}[_0x4a1f29(0x21e)](_0x10ef72){const _0x2a0a4a=_0x4a1f29;C[_0x2a0a4a(0xff)]['drawWith'](_0x10ef72,{'width':this['width'],'height':this['height'],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2a0a4a(0x1f6)]}),this[_0x2a0a4a(0x25b)]&&(_0x10ef72[_0x2a0a4a(0xe8)](),_0x10ef72[_0x2a0a4a(0x25f)](0x1,0x0,0x0,0x1,this['width'],this[_0x2a0a4a(0x132)]===_0x2a0a4a(0x277)?0x0:-X),re[_0x2a0a4a(0xe3)](_0x10ef72,{'text':this['_name'],'color':this[_0x2a0a4a(0x2aa)]}),_0x10ef72[_0x2a0a4a(0x352)]());}}var wt=Object[_0x4a1f29(0xef)],yt=(_0x4f936d,_0x52244d,_0x1620e1,_0x33bf47)=>{const _0xc30b2d=_0x4a1f29;for(var _0x374cc3=_0x33bf47>0x1?void 0x0:_0x33bf47?wt(_0x52244d,_0x1620e1):_0x52244d,_0x53adc7=_0x4f936d[_0xc30b2d(0x191)]-0x1,_0xfd0fa2;_0x53adc7>=0x0;_0x53adc7--)(_0xfd0fa2=_0x4f936d[_0x53adc7])&&(_0x374cc3=_0xfd0fa2(_0x374cc3)||_0x374cc3);return _0x374cc3;},ue=(_0x4f3b1b,_0x5ae32f)=>(_0x2c122a,_0x3006d5)=>_0x5ae32f(_0x2c122a,_0x3006d5,_0x4f3b1b);const $t=0x1389;let Ce=class extends a[_0x4a1f29(0x27c)]{constructor(_0x369aac,_0x3b1263,_0x55e9f6,_0x20edf0){const _0x3d1e33=_0x4a1f29;super(),_(this,_0x3d1e33(0x27e),new Set()),_(this,_0x3d1e33(0x1ce),null),(this[_0x3d1e33(0x10b)]=_0x369aac,this['_sheetSkeletonManagerService']=_0x3b1263,this[_0x3d1e33(0x138)]=_0x55e9f6,this[_0x3d1e33(0x272)]=_0x20edf0,this[_0x3d1e33(0x280)]());}[_0x4a1f29(0x280)](){const _0x371d10=_0x4a1f29;this[_0x371d10(0x31c)][_0x371d10(0x2f1)][_0x371d10(0x2e0)]($[_0x371d10(0x23b)](this[_0x371d10(0x217)]),$[_0x371d10(0x102)](_0x4ec4eb=>{const _0x3d3bd3=_0x371d10;if(_0x4ec4eb){const _0x101348=_0x4ec4eb[_0x3d3bd3(0x230)];return I[_0x3d3bd3(0x1c8)](this[_0x3d3bd3(0x138)][_0x3d3bd3(0x35e)](this[_0x3d3bd3(0x10b)][_0x3d3bd3(0x2b5)]),this[_0x3d3bd3(0x272)][_0x3d3bd3(0x263)])[_0x3d3bd3(0x2e0)]($[_0x3d3bd3(0x167)](([_0x152fe9,_0x590b89])=>{const _0x4a3352=_0x3d3bd3,_0x15b8ba=new Map();return _0x152fe9[_0x4a3352(0x1fb)]((_0x5caee9,_0x328693)=>{const _0x7990fd=_0x4a3352;if(_0x5caee9[_0x7990fd(0x125)]===_0x101348){const _0x70fd22={..._0x5caee9};_0x70fd22[_0x7990fd(0x2f6)]=this[_0x7990fd(0x272)][_0x7990fd(0x13d)](_0x5caee9[_0x7990fd(0x2f6)]),_0x15b8ba[_0x7990fd(0x193)](_0x328693,_0x70fd22);}}),{'skeleton':_0x4ec4eb,'cursors':_0x15b8ba};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x371d10(0x31a)](({skeleton:_0x2343d7,cursors:_0x47729a})=>{const _0x5dd955=_0x371d10;this[_0x5dd955(0x318)](),_0x2343d7&&this[_0x5dd955(0x199)](_0x2343d7,_0x47729a);}),this[_0x371d10(0x31c)]['currentSkeleton$'][_0x371d10(0x31a)](_0x4e12d3=>{const _0x277794=_0x371d10;if(_0x4e12d3==null)return;const {skeleton:_0x194e21}=_0x4e12d3,{scene:_0x3f17e1}=this[_0x277794(0x10b)];_0x3f17e1['onPointerMove$'][_0x277794(0x12c)](a[_0x277794(0xc0)](_0x2e743d=>{const _0x3a8c1b=_0x277794;var _0x2dae53,_0x1fa9d3;const {offsetX:_0x9e28b9,offsetY:_0x395969}=_0x2e743d,{x:_0x37aa6e,y:_0x4a4ba4}=_0x3f17e1[_0x3a8c1b(0x1a5)](C[_0x3a8c1b(0x271)][_0x3a8c1b(0x2df)]([_0x9e28b9,_0x395969])),{scaleX:_0x5a7180,scaleY:_0x577860}=_0x3f17e1[_0x3a8c1b(0x1df)](),_0x52150=_0x3f17e1['getViewport'](C[_0x3a8c1b(0x19e)][_0x3a8c1b(0x14c)]),_0x2d0727=_0x3f17e1[_0x3a8c1b(0x31f)](C['Vector2']['FromArray']([_0x37aa6e,_0x4a4ba4]),_0x52150),_0x575e7a=_0x194e21[_0x3a8c1b(0x343)](_0x9e28b9,_0x395969,_0x5a7180,_0x577860,_0x2d0727);((_0x2dae53=this['_lastPointer'])==null?void 0x0:_0x2dae53[_0x3a8c1b(0x1b0)])===_0x575e7a[_0x3a8c1b(0x1b0)]&&((_0x1fa9d3=this[_0x3a8c1b(0x1ce)])==null?void 0x0:_0x1fa9d3[_0x3a8c1b(0x303)])===_0x575e7a[_0x3a8c1b(0x303)]||this[_0x3a8c1b(0x27e)][_0x3a8c1b(0x1fb)](_0x1bd3d3=>{const _0x575c34=_0x3a8c1b;_0x1bd3d3[_0x575c34(0x2cc)](_0x575e7a);});},0x64));});}[_0x4a1f29(0x199)](_0x4684b8,_0x5311ed){const _0x178f4a=_0x4a1f29;var _0x1b2200;const _0x3bdf9e=(_0x1b2200=this[_0x178f4a(0x31c)]['getCurrent']())==null?void 0x0:_0x1b2200[_0x178f4a(0x200)];if(!_0x3bdf9e)return;const _0x1cc708=this[_0x178f4a(0x1a2)]();if(!_0x1cc708)return;this[_0x178f4a(0x27e)]['forEach'](_0x405233=>{const _0x5a6ffa=_0x178f4a;_0x405233[_0x5a6ffa(0x251)]();});const {scene:_0x41baed}=_0x1cc708,_0x1f6065=xt(Array[_0x178f4a(0x1ed)](_0x5311ed[_0x178f4a(0x190)]()))[_0x178f4a(0x167)](_0xea51b1=>{const _0x131ad6=_0x178f4a,{color:_0x5bcfe0,range:_0x3dae39,name:_0x26e8e4,selection:_0x5a25d8,sheetID:_0x4e2237}=_0xea51b1,{startColumn:_0x2d71bb,startRow:_0x55286d,endColumn:_0x434bb9,endRow:_0x19366a}=_0x3dae39,_0x32ea6e=J[_0x131ad6(0x10a)](_0x55286d,_0x2d71bb,_0x41baed,_0x3bdf9e),_0x37bdd6=J[_0x131ad6(0x10a)](_0x19366a,_0x434bb9,_0x41baed,_0x3bdf9e),{columnHeaderHeightAndMarginTop:_0xac11f9}=_0x3bdf9e,{startX:_0x25ce17,startY:_0x2e3505}=_0x32ea6e,{endX:_0x2b646f,endY:_0x264c88}=_0x37bdd6,_0x4b89b3=_0x2b646f-_0x25ce17,_0x518351=_0x264c88-_0x2e3505,_0x196b2c={'labelPosition':_0x2e3505-_0xac11f9>=X?'top':_0x131ad6(0x277),'sheetID':_0x4e2237,'range':_0x3dae39,'color':_0x5bcfe0,'name':_0x26e8e4,'selection':_0x5a25d8,'left':_0x25ce17,'top':_0x2e3505,'width':_0x4b89b3,'height':_0x518351,'evented':!0x1,'zIndex':$t};return new je(_0x26e8e4,_0x196b2c);});_0x41baed[_0x178f4a(0x1b7)](_0x1f6065,At),this[_0x178f4a(0x27e)]=new Set(_0x1f6065);}[_0x4a1f29(0x318)](){const _0x398479=_0x4a1f29;var _0xd4a278;(_0xd4a278=this[_0x398479(0x27e)])==null||_0xd4a278['forEach'](_0x58abad=>_0x58abad[_0x398479(0x313)]());}[_0x4a1f29(0x1a2)](){const _0x4d015d=_0x4a1f29;return J['getSheetObject'](this[_0x4d015d(0x10b)]['unit'],this['_context']);}};Ce=yt([ue(0x1,a[_0x4a1f29(0x20d)](J[_0x4a1f29(0x231)])),ue(0x2,a[_0x4a1f29(0x20d)](F)),ue(0x3,a[_0x4a1f29(0x20d)](a['ThemeService']))],Ce);function xt(_0x1dc2ff){const _0x51d06a=_0x4a1f29,_0x19ddc5=new Map();return _0x1dc2ff['forEach'](_0x4cea47=>{const _0x31ab31=_0x1f3f;if(_0x19ddc5[_0x31ab31(0x114)](_0x4cea47[_0x31ab31(0x264)])){const _0x16d221=_0x19ddc5[_0x31ab31(0x283)](_0x4cea47['selection']);_0x16d221[_0x31ab31(0x11f)]+=',\x20'+_0x4cea47[_0x31ab31(0x11f)];}else _0x19ddc5[_0x31ab31(0x193)](_0x4cea47[_0x31ab31(0x264)],_0x4cea47);}),Array[_0x51d06a(0x1ed)](_0x19ddc5['values']());}var Bt=Object[_0x4a1f29(0xef)],Ft=(_0x40b84e,_0x325552,_0x5ab1f7,_0x64dc80)=>{const _0x1814b5=_0x4a1f29;for(var _0x1c7158=_0x64dc80>0x1?void 0x0:_0x64dc80?Bt(_0x325552,_0x5ab1f7):_0x325552,_0x5dcd27=_0x40b84e[_0x1814b5(0x191)]-0x1,_0x11ae69;_0x5dcd27>=0x0;_0x5dcd27--)(_0x11ae69=_0x40b84e[_0x5dcd27])&&(_0x1c7158=_0x11ae69(_0x1c7158)||_0x1c7158);return _0x1c7158;},y=(_0x53cff1,_0x248d3f)=>(_0xfcb011,_0x510e4a)=>_0x248d3f(_0xfcb011,_0x510e4a,_0x53cff1);let Z=class extends a['Disposable']{constructor(_0x45d95f,_0x154a2f,_0x23d07e,_0x23ed74,_0xb0e68,_0x269e91){const _0x45dbf2=_0x4a1f29;super(),this['_beforeCloseService']=_0x45d95f,this[_0x45dbf2(0x232)]=_0x154a2f,this[_0x45dbf2(0x120)]=_0x23d07e,this[_0x45dbf2(0x10e)]=_0x23ed74,this[_0x45dbf2(0x37b)]=_0xb0e68,this[_0x45dbf2(0x34a)]=_0x269e91,this[_0x45dbf2(0x124)](),this[_0x45dbf2(0x252)]();}[_0x4a1f29(0x124)](){const _0x1cfa40=_0x4a1f29;this['disposeWithMe'](this[_0x1cfa40(0xc3)]['registerBeforeClose'](()=>{const _0x37e458=_0x1cfa40;if(this[_0x37e458(0x232)][_0x37e458(0x34d)][_0x37e458(0x13f)])return this[_0x37e458(0x34a)]['t'](_0x37e458(0x2f2));}));}[_0x4a1f29(0x252)](){const _0x505225=_0x4a1f29;this[_0x505225(0x344)](this[_0x505225(0x120)][_0x505225(0x10d)]['subscribe'](_0x1fb1eb=>{const _0x52ffd6=_0x505225;_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0xbf)]&&this[_0x52ffd6(0x10e)][_0x52ffd6(0x161)]({'type':p[_0x52ffd6(0x14d)]['Warning'],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0x2fc)]&&this[_0x52ffd6(0x10e)][_0x52ffd6(0x161)]({'type':p[_0x52ffd6(0x14d)][_0x52ffd6(0x185)],'content':this['_localeService']['t'](_0x52ffd6(0x321))}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0x2c5)]&&this[_0x52ffd6(0x37b)][_0x52ffd6(0x161)]({'title':this['_localeService']['t'](_0x52ffd6(0x1d4)),'content':this['_localeService']['t'](_0x52ffd6(0x2a2)),'type':_0x52ffd6(0x19d),'duration':0x0}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)]['CONFLICT']&&this[_0x52ffd6(0x10e)]['show']({'type':p[_0x52ffd6(0x14d)]['Error'],'content':this[_0x52ffd6(0x34a)]['t'](_0x52ffd6(0x321))+'('+_0x1fb1eb[_0x52ffd6(0x1f0)]+')'}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0x1b2)]&&this['_messageService'][_0x52ffd6(0x161)]({'type':p['MessageType'][_0x52ffd6(0x185)],'content':this[_0x52ffd6(0x34a)]['t'](_0x1fb1eb[_0x52ffd6(0x1f0)]||'')}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0xdb)]&&this[_0x52ffd6(0x10e)][_0x52ffd6(0x161)]({'type':p[_0x52ffd6(0x14d)]['Warning'],'content':this[_0x52ffd6(0x34a)]['t'](_0x52ffd6(0x285))}),_0x1fb1eb['id']===u[_0x52ffd6(0x1db)][_0x52ffd6(0x1ae)]&&this[_0x52ffd6(0x10e)][_0x52ffd6(0x161)]({'type':p[_0x52ffd6(0x14d)][_0x52ffd6(0x195)],'content':this[_0x52ffd6(0x34a)]['t'](_0x52ffd6(0x24e))}),_0x1fb1eb['id']===u['CollaborationUIEventId'][_0x52ffd6(0x2c0)]&&this['_messageService'][_0x52ffd6(0x161)]({'type':p[_0x52ffd6(0x14d)][_0x52ffd6(0x195)],'content':this['_localeService']['t'](_0x52ffd6(0x1a7))});}));}};Z=Ft([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x4a1f29(0x127)]),y(0x2,a[_0x4a1f29(0x20d)](u[_0x4a1f29(0x122)])),y(0x3,O[_0x4a1f29(0x10c)]),y(0x4,O[_0x4a1f29(0x168)]),y(0x5,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0xee)]))],Z);var jt=Object[_0x4a1f29(0xef)],kt=(_0x2e6e15,_0x17eb6e,_0x3acdb1,_0x23a9db)=>{for(var _0x110278=_0x23a9db>0x1?void 0x0:_0x23a9db?jt(_0x17eb6e,_0x3acdb1):_0x17eb6e,_0x3ed91d=_0x2e6e15['length']-0x1,_0x392238;_0x3ed91d>=0x0;_0x3ed91d--)(_0x392238=_0x2e6e15[_0x3ed91d])&&(_0x110278=_0x392238(_0x110278)||_0x110278);return _0x110278;},z=(_0x246676,_0x190c82)=>(_0x9cb75,_0x3fb8ba)=>_0x190c82(_0x9cb75,_0x3fb8ba,_0x246676);let Q=class extends a[_0x4a1f29(0x14f)]{constructor(_0x15db52,_0xc55cd2,_0x4900ee,_0x4cdf79){const _0x2e32a0=_0x4a1f29;super(),_(this,_0x2e32a0(0x236)),(this[_0x2e32a0(0x1eb)]=_0x15db52,this[_0x2e32a0(0x2db)]=_0xc55cd2,this['_logService']=_0x4900ee,this[_0x2e32a0(0x306)]=_0x4cdf79,this[_0x2e32a0(0x280)]());}[_0x4a1f29(0x280)](){const _0x7298ae=_0x4a1f29;this[_0x7298ae(0x254)](),this[_0x7298ae(0x2fb)](),this[_0x7298ae(0x2be)](),this[_0x7298ae(0x273)]();}['_initUserListener'](){const _0x1c0276=_0x4a1f29;this['disposeWithMe'](this['_collaborationSessionService'][_0x1c0276(0xe1)][_0x1c0276(0x31a)](_0x2ea602=>{const _0x488f4a=_0x1c0276;this[_0x488f4a(0x236)]=_0x2ea602==null?void 0x0:_0x2ea602[_0x488f4a(0x307)];}));}[_0x4a1f29(0x254)](){const _0x558b1f=_0x4a1f29,_0x5a716b=_0x1467ac=>{const _0x114bff=_0x1f3f;var _0x4026b1;this[_0x114bff(0x226)](_0x114bff(0x19d),_0x114bff(0x274)+_0x1467ac[_0x114bff(0x104)]+_0x114bff(0x13e)+_0x1467ac['filename']+':'+_0x1467ac[_0x114bff(0x32a)]+':'+_0x1467ac[_0x114bff(0x1c5)]+'\x0a'+(((_0x4026b1=_0x1467ac[_0x114bff(0x19d)])==null?void 0x0:_0x4026b1[_0x114bff(0x112)])||''));};window[_0x558b1f(0x349)](_0x558b1f(0x19d),_0x5a716b),this['disposeWithMe'](()=>{const _0x4c73cb=_0x558b1f;window[_0x4c73cb(0x2fd)](_0x4c73cb(0x19d),_0x5a716b);});}[_0x4a1f29(0x2fb)](){const _0x42c631=_0x4a1f29,_0x51b21c=_0x2c72e0=>{const _0x46b0c0=_0x1f3f;this['_uploadLog']('error',_0x46b0c0(0x1d0)+_0x2c72e0[_0x46b0c0(0x113)]);};window['addEventListener'](_0x42c631(0x1b5),_0x51b21c),this['disposeWithMe'](()=>{const _0x311139=_0x42c631;window[_0x311139(0x2fd)](_0x311139(0x1b5),_0x51b21c);});}[_0x4a1f29(0x2be)](){const _0x93a14c=_0x4a1f29,_0x245b36=this[_0x93a14c(0x300)][_0x93a14c(0x19d)][_0x93a14c(0x302)](this['_logService']);this['_logService'][_0x93a14c(0x19d)]=(..._0x19b1e3)=>{const _0x8b3f8b=_0x93a14c,_0x5d794e=_0x19b1e3[_0x8b3f8b(0x167)](_0x17a830=>_0x17a830 instanceof Error?_0x17a830[_0x8b3f8b(0x104)]+'\x0a'+_0x17a830[_0x8b3f8b(0x112)]:String(_0x17a830))[_0x8b3f8b(0x33c)]('\x20');this[_0x8b3f8b(0x226)](_0x8b3f8b(0x19d),_0x8b3f8b(0x2a3)+_0x5d794e),_0x245b36(..._0x19b1e3);},this['disposeWithMe'](()=>{this['_logService']['error']=_0x245b36;});}[_0x4a1f29(0x226)](_0x3a6cd3,_0x311f4d){const _0x1dc877=_0x4a1f29;try{const _0xebc7dc={'userId':this['_memberID'],'logLabel':_0x3a6cd3,'content':_0x311f4d};this['_httpService'][_0x1dc877(0x18c)](_0x1dc877(0x110),{'body':_0xebc7dc})['catch'](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ff)])),z(0x1,a[_0x4a1f29(0x20d)](x[_0x4a1f29(0x1e9)])),z(0x2,a[_0x4a1f29(0xcc)]),z(0x3,a[_0x4a1f29(0x20d)](u[_0x4a1f29(0x240)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x28ac78,_0x3aa5b2,_0xb48328,_0x43f2f0)=>{const _0x41a44f=_0x4a1f29;for(var _0x4b22aa=_0x43f2f0>0x1?void 0x0:_0x43f2f0?Ht(_0x3aa5b2,_0xb48328):_0x3aa5b2,_0x16388f=_0x28ac78[_0x41a44f(0x191)]-0x1,_0xe55d89;_0x16388f>=0x0;_0x16388f--)(_0xe55d89=_0x28ac78[_0x16388f])&&(_0x4b22aa=_0xe55d89(_0x4b22aa)||_0x4b22aa);return _0x4b22aa;},Ae=(_0x492303,_0x4d2dc2)=>(_0x3a57eb,_0xc2d68e)=>_0x4d2dc2(_0x3a57eb,_0xc2d68e,_0x492303);let ee=class{constructor(_0x500a31,_0xfb4fde){const _0x15c7fc=_0x4a1f29;this['_transformService']=_0x500a31,this[_0x15c7fc(0x375)]=_0xfb4fde;}[_0x4a1f29(0x166)](_0x523b97){const _0x427148=_0x4a1f29;this['_transformUndoRedoStack'](_0x523b97),this[_0x427148(0x2ba)](_0x523b97);}[_0x4a1f29(0x29f)](_0x201ad0){const _0xa62c89=_0x4a1f29,{unitID:_0x46e1e1}=_0x201ad0,_0x1102f9=this[_0xa62c89(0x375)][_0xa62c89(0xf0)](_0x46e1e1)[_0xa62c89(0x373)](T[_0xa62c89(0x282)]),{redoCache:_0x2069ed}=_0x1102f9['getUndoRedoMutationParamsCache']();if(_0x2069ed[_0xa62c89(0x191)]===0x0)return _0x201ad0;let _0x3410b5=a[_0xa62c89(0x169)]['deepClone'](_0x201ad0[_0xa62c89(0x222)][0x0]);for(let _0xc7fb1=0x0;_0xc7fb1<_0x2069ed[_0xa62c89(0x191)];_0xc7fb1++){const _0x19eb2d={'id':_0xa62c89(0x14b),'params':{..._0x2069ed[_0xc7fb1]}},_0x2aaf9e=this['_transformService'][_0xa62c89(0x192)](_0x3410b5,_0x19eb2d,!0x1);if(g['isTransformMutationFailure'](_0x2aaf9e))throw _0x2aaf9e[_0xa62c89(0x19d)];_0x3410b5=_0x2aaf9e['m1Prime'];}return{...a[_0xa62c89(0x169)][_0xa62c89(0x28c)](_0x201ad0),'mutations':[_0x3410b5]};}[_0x4a1f29(0x1c0)](_0x5190f2){const _0x3a63b6=_0x4a1f29,{unitID:_0x19f5c9}=_0x5190f2,_0x490d3f=this[_0x3a63b6(0x375)]['getRenderById'](_0x19f5c9)['with'](T[_0x3a63b6(0x282)]),{undoCache:_0x4a1abc,redoCache:_0x55f41f}=_0x490d3f[_0x3a63b6(0x153)]();if(_0x4a1abc[_0x3a63b6(0x191)]===0x0||_0x55f41f['length']===0x0)return;const _0x1dfe86=[],_0x401928=[];let _0x3c767a=a[_0x3a63b6(0x169)]['deepClone'](_0x5190f2[_0x3a63b6(0x222)][0x0]),_0x641e10=a[_0x3a63b6(0x169)][_0x3a63b6(0x28c)](_0x5190f2[_0x3a63b6(0x222)][0x0]);for(let _0x584b4c=_0x4a1abc['length']-0x1;_0x584b4c>=0x0;_0x584b4c--){const _0x4d0d04={'id':_0x3a63b6(0x14b),'params':{..._0x4a1abc[_0x584b4c]}},_0x15b1fd={'id':_0x3a63b6(0x14b),'params':{..._0x55f41f[_0x584b4c]}},_0xad8681=this[_0x3a63b6(0x367)]['transformMutation'](_0x3c767a,_0x4d0d04,!0x1),_0x320b3a=this[_0x3a63b6(0x367)][_0x3a63b6(0x192)](_0x641e10,_0x15b1fd,!0x1);if(g[_0x3a63b6(0x163)](_0xad8681))throw _0xad8681[_0x3a63b6(0x19d)];if(g[_0x3a63b6(0x163)](_0x320b3a))throw _0x320b3a['error'];_0x1dfe86['unshift'](_0xad8681[_0x3a63b6(0x36b)][_0x3a63b6(0x1cc)]),_0x401928[_0x3a63b6(0x164)](_0x320b3a[_0x3a63b6(0x36b)][_0x3a63b6(0x1cc)]),_0x3c767a=_0xad8681['m1Prime'],_0x641e10=_0x320b3a[_0x3a63b6(0x265)];}_0x490d3f[_0x3a63b6(0x130)]({'undoCache':_0x1dfe86,'redoCache':_0x401928});}[_0x4a1f29(0x2ba)](_0x4376be){const _0x384397=_0x4a1f29,{unitID:_0x35fae7}=_0x4376be,_0x17c8a9=this[_0x384397(0x375)][_0x384397(0xf0)](_0x35fae7)[_0x384397(0x373)](T[_0x384397(0x282)]),_0x4ce911=_0x17c8a9['getActiveRange']();if(_0x4ce911==null)return;const _0x3f7cf3=[{'id':_0x384397(0x14b),'params':{'unitId':_0x4376be[_0x384397(0x1bb)],'actions':null,'textRanges':[_0x4ce911]}}],_0x259629=this[_0x384397(0x367)][_0x384397(0x287)](_0x4376be,_0x3f7cf3);if(!g[_0x384397(0x16f)](_0x259629))throw _0x259629[_0x384397(0x19d)];const _0x46ba3b=_0x259629[_0x384397(0x36b)][0x0]['params']['textRanges'];Array[_0x384397(0x269)](_0x46ba3b)&&_0x46ba3b[_0x384397(0x191)]&&_0x17c8a9[_0x384397(0x25a)](_0x46ba3b[0x0]);}};ee=Wt([Ae(0x0,g[_0x4a1f29(0x131)]),Ae(0x1,C[_0x4a1f29(0x333)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x129342,_0x471cf9,_0x7cf657,_0x2035a8)=>{const _0x5ca106=_0x4a1f29;for(var _0x1bcd43=_0x2035a8>0x1?void 0x0:_0x2035a8?Vt(_0x471cf9,_0x7cf657):_0x471cf9,_0x5e2b30=_0x129342[_0x5ca106(0x191)]-0x1,_0x2b116c;_0x5e2b30>=0x0;_0x5e2b30--)(_0x2b116c=_0x129342[_0x5e2b30])&&(_0x1bcd43=_0x2b116c(_0x1bcd43)||_0x1bcd43);return _0x1bcd43;},Ie=(_0xb55936,_0x4e937f)=>(_0x1716c3,_0x1e5852)=>_0x4e937f(_0x1716c3,_0x1e5852,_0xb55936);let te=class{constructor(_0x2cf39b,_0x2b4ba8,_0x1e81e1){const _0x3afa0d=_0x4a1f29;this['_injector']=_0x2cf39b,this['_transformService']=_0x2b4ba8,this[_0x3afa0d(0x34e)]=_0x1e81e1;}[_0x4a1f29(0x342)](_0xca596a){const _0x3dbb30=_0x4a1f29;this[_0x3dbb30(0x32e)](_0xca596a);}[_0x4a1f29(0x29f)](_0x364722){const _0x305cb2=_0x4a1f29,{unitID:_0x388702}=_0x364722,{collaboration:_0x59beef}=this[_0x305cb2(0x34e)][_0x305cb2(0x17f)](_0x388702);if(_0x59beef[_0x305cb2(0x191)]===0x0)return _0x364722;let _0x46417f=a['Tools'][_0x305cb2(0x28c)](_0x364722[_0x305cb2(0x222)][0x0]);for(let _0x52e34d=0x0;_0x52e34d<_0x59beef[_0x305cb2(0x191)];_0x52e34d++){const _0x38fef6={'id':_0x305cb2(0x14b),'params':{'unitId':_0x59beef[_0x52e34d][_0x305cb2(0x2b5)],..._0x59beef[_0x52e34d][_0x305cb2(0xca)]}},_0x226a48=this[_0x305cb2(0x367)][_0x305cb2(0x192)](_0x46417f,_0x38fef6,!0x1);if(g[_0x305cb2(0x163)](_0x226a48))throw _0x226a48[_0x305cb2(0x19d)];_0x46417f=_0x226a48['m1Prime'];}return{...a[_0x305cb2(0x169)][_0x305cb2(0x28c)](_0x364722),'mutations':[_0x46417f]};}[_0x4a1f29(0x32e)](_0xbe6e45){const _0x197694=_0x4a1f29,{unitID:_0x5afc41}=_0xbe6e45,{history:_0x1f50c8,collaboration:_0x4d1ba4}=this[_0x197694(0x34e)][_0x197694(0x17f)](_0x5afc41);if(_0x1f50c8['length']===0x0&&_0x4d1ba4[_0x197694(0x191)]===0x0)return;const _0x50f55a=[],_0x3b5cde=[];let _0x8f012f=a[_0x197694(0x169)][_0x197694(0x28c)](_0xbe6e45['mutations'][0x0]),_0x41686f=a[_0x197694(0x169)][_0x197694(0x28c)](_0xbe6e45['mutations'][0x0]);for(let _0x3813ef=_0x1f50c8[_0x197694(0x191)]-0x1;_0x3813ef>=0x0;_0x3813ef--){const _0xdda119={'id':_0x197694(0x14b),'params':{'unitId':_0x1f50c8[_0x3813ef][_0x197694(0x2b5)],..._0x1f50c8[_0x3813ef][_0x197694(0xda)]}},_0x3dce33={'id':_0x197694(0x14b),'params':{'unitId':_0x1f50c8[_0x3813ef][_0x197694(0x2b5)],..._0x1f50c8[_0x3813ef]['redoState']}},_0x1b3886=this[_0x197694(0x367)][_0x197694(0x192)](_0x8f012f,_0xdda119,!0x1),_0x50092a=this[_0x197694(0x367)][_0x197694(0x192)](_0x41686f,_0x3dce33,!0x1);if(g[_0x197694(0x163)](_0x1b3886))throw _0x1b3886[_0x197694(0x19d)];if(g[_0x197694(0x163)](_0x50092a))throw _0x50092a['error'];_0x50f55a['unshift']({..._0x1f50c8[_0x3813ef],'undoState':_0x1b3886['m2Prime'][_0x197694(0x1cc)],'redoState':_0x50092a['m2Prime'][_0x197694(0x1cc)]}),_0x8f012f=_0x1b3886[_0x197694(0x265)],_0x41686f=_0x50092a[_0x197694(0x265)];}_0x8f012f=a['Tools'][_0x197694(0x28c)](_0xbe6e45['mutations'][0x0]),_0x41686f=a[_0x197694(0x169)][_0x197694(0x28c)](_0xbe6e45[_0x197694(0x222)][0x0]);for(let _0x4a89c4=_0x4d1ba4['length']-0x1;_0x4a89c4>=0x0;_0x4a89c4--){const _0x36f6b6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4d1ba4[_0x4a89c4][_0x197694(0x2b5)],..._0x4d1ba4[_0x4a89c4][_0x197694(0xda)]}},_0x229707={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4d1ba4[_0x4a89c4][_0x197694(0x2b5)],..._0x4d1ba4[_0x4a89c4]['redoState']}},_0x218396=this['_transformService'][_0x197694(0x192)](_0x8f012f,_0x36f6b6,!0x1),_0x118766=this['_transformService'][_0x197694(0x192)](_0x41686f,_0x229707,!0x1);if(g[_0x197694(0x163)](_0x218396))throw _0x218396['error'];if(g['isTransformMutationFailure'](_0x118766))throw _0x118766[_0x197694(0x19d)];_0x3b5cde[_0x197694(0x164)]({..._0x4d1ba4[_0x4a89c4],'undoState':_0x218396[_0x197694(0x36b)][_0x197694(0x1cc)],'redoState':_0x118766[_0x197694(0x36b)][_0x197694(0x1cc)]}),_0x8f012f=_0x218396[_0x197694(0x265)],_0x41686f=_0x118766['m1Prime'];}this[_0x197694(0x34e)][_0x197694(0x229)](_0x5afc41,{'history':_0x50f55a,'collaboration':_0x3b5cde});}};te=Gt([Ie(0x0,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ff)])),Ie(0x1,g[_0x4a1f29(0x131)]),Ie(0x2,a[_0x4a1f29(0x20d)](T[_0x4a1f29(0x1bd)]))],te);var Xt=Object[_0x4a1f29(0xef)],Kt=(_0x265ff7,_0x57fe73,_0x42fc25,_0x18f8a0)=>{for(var _0x335a61=_0x18f8a0>0x1?void 0x0:_0x18f8a0?Xt(_0x57fe73,_0x42fc25):_0x57fe73,_0x51a421=_0x265ff7['length']-0x1,_0x2e8aed;_0x51a421>=0x0;_0x51a421--)(_0x2e8aed=_0x265ff7[_0x51a421])&&(_0x335a61=_0x2e8aed(_0x335a61)||_0x335a61);return _0x335a61;},Pe=(_0x3ed64a,_0x476fff)=>(_0x20f944,_0x3bbe89)=>_0x476fff(_0x20f944,_0x3bbe89,_0x3ed64a);let se=class{constructor(_0x476f8d,_0x23a064){const _0x78e016=_0x4a1f29;this[_0x78e016(0x1eb)]=_0x476f8d,this[_0x78e016(0x367)]=_0x23a064;}['transformSelections'](_0xfa68ed){const _0x4c6d27=_0x4a1f29;var _0x384241;const _0x37de77=this['_injector'][_0x4c6d27(0x283)](V['DocSelectionManagerService']),_0x45c840=(_0x384241=_0x37de77[_0x4c6d27(0x260)]())!=null?_0x384241:[];if(_0x45c840[_0x4c6d27(0x191)]===0x0)return;const _0x35ad23=_0xfa68ed[_0x4c6d27(0x1bb)],_0x10949e=[{'id':_0x4c6d27(0x14b),'params':{'unitId':_0x35ad23,'actions':null,'textRanges':_0x45c840}}],_0x531ab4=this[_0x4c6d27(0x367)][_0x4c6d27(0x287)](_0xfa68ed,_0x10949e);if(!g[_0x4c6d27(0x16f)](_0x531ab4))throw _0x531ab4['error'];const _0x152264=_0x531ab4[_0x4c6d27(0x36b)][0x0][_0x4c6d27(0x1cc)][_0x4c6d27(0x123)];Array['isArray'](_0x152264)&&_0x152264['length']&&_0x37de77[_0x4c6d27(0x242)](_0x152264,{'unitId':_0x35ad23,'subUnitId':_0x35ad23},!0x1);}};se=Kt([Pe(0x0,a[_0x4a1f29(0x20d)](a[_0x4a1f29(0x2ff)])),Pe(0x1,g[_0x4a1f29(0x131)])],se);var qt=Object[_0x4a1f29(0xef)],zt=(_0x306e0b,_0x344972,_0x18c3be,_0x1c336e)=>{const _0x56277d=_0x4a1f29;for(var _0x6a41ab=_0x1c336e>0x1?void 0x0:_0x1c336e?qt(_0x344972,_0x18c3be):_0x344972,_0x4e89f0=_0x306e0b[_0x56277d(0x191)]-0x1,_0x856866;_0x4e89f0>=0x0;_0x4e89f0--)(_0x856866=_0x306e0b[_0x4e89f0])&&(_0x6a41ab=_0x856866(_0x6a41ab)||_0x6a41ab);return _0x6a41ab;},N=(_0xcf307a,_0x490b39)=>(_0xdfcf57,_0x5f1ddc)=>_0x490b39(_0xdfcf57,_0x5f1ddc,_0xcf307a);let ie=class extends a[_0x4a1f29(0x14f)]{constructor(_0x34b73c,_0x2532e9,_0x1d52e4,_0x4881cb,_0x42d553,_0x349f75,_0x40f937,_0x3f7f9f){const _0x2af40a=_0x4a1f29;super(),_(this,_0x2af40a(0x205),new I[(_0x2af40a(0x2a0))](u['CollaborationStatus'][_0x2af40a(0x276)])),(this[_0x2af40a(0x34e)]=_0x34b73c,this[_0x2af40a(0x18e)]=_0x2532e9,this[_0x2af40a(0x391)]=_0x1d52e4,this[_0x2af40a(0x28a)]=_0x4881cb,this[_0x2af40a(0x1f9)]=_0x42d553,this[_0x2af40a(0x356)]=_0x349f75,this[_0x2af40a(0x10e)]=_0x40f937,this[_0x2af40a(0x34a)]=_0x3f7f9f,this[_0x2af40a(0x1b9)]());}[_0x4a1f29(0x1b9)](){const _0x191804=_0x4a1f29;this['disposeWithMe'](this[_0x191804(0x18e)][_0x191804(0x2b6)]['subscribe'](_0x565a68=>{const _0x2830db=_0x191804,_0x41194=this['_docStateChangeManagerService'][_0x2830db(0x320)][_0x2830db(0x31a)](_0x45a350=>{const _0x258ed1=_0x2830db;if(_0x45a350==null)return;const {unitId:_0x49e9e9,redoState:_0x2a9f33,commandId:_0x41a577}=_0x45a350;if(_0x49e9e9!==_0x565a68[_0x258ed1(0x1bb)])return;const _0x3d8be5={'id':_0x41a577,'type':a[_0x258ed1(0x15f)][_0x258ed1(0x2c4)],'params':{'unitId':_0x49e9e9,'actions':_0x2a9f33['actions'],'textRanges':null}};_0x565a68[_0x258ed1(0x218)](_0x3d8be5);});if(_0x565a68[_0x2830db(0x344)](_0x41194),_0x565a68 instanceof u[_0x2830db(0x341)]){const _0x30ce03={'onTransformIME':_0xfec380=>this['_docTransformIMECacheService']['transformIMECache'](_0xfec380),'onTransformState':_0x5a90be=>this['_docTransformStateCacheService'][_0x2830db(0x342)](_0x5a90be),'onTransformSelections':_0x2053b1=>this[_0x2830db(0x1f9)]['transformSelections'](_0x2053b1),'onSyncEditingCollabCursor':_0x12592a=>this['_docSyncEditingCollabCursorService'][_0x2830db(0x335)](_0x12592a),'onTransformRemoteChangesetByIMECache':_0x2adf50=>this[_0x2830db(0x391)]['transformRemoteChangeset'](_0x2adf50),'onTransformRemoteChangesetByStateCache':_0x2560f8=>this['_docTransformStateCacheService'][_0x2830db(0x29f)](_0x2560f8)};_0x565a68[_0x2830db(0x1d2)](_0x30ce03);}}));}};ie=zt([N(0x0,a[_0x4a1f29(0x20d)](T['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0x4a1f29(0x281)])),N(0x2,a[_0x4a1f29(0x20d)](ee)),N(0x3,a[_0x4a1f29(0x20d)](te)),N(0x4,a[_0x4a1f29(0x20d)](se)),N(0x5,a[_0x4a1f29(0x20d)](be)),N(0x6,O[_0x4a1f29(0x10c)]),N(0x7,a['Inject'](a[_0x4a1f29(0xee)]))],ie);var G=(_0xd58c56=>(_0xd58c56[_0xd58c56[_0x4a1f29(0x203)]=0x0]=_0x4a1f29(0x203),_0xd58c56[_0xd58c56['OK']=0x1]='OK',_0xd58c56[_0xd58c56[_0x4a1f29(0x30d)]=0x2]=_0x4a1f29(0x30d),_0xd58c56[_0xd58c56[_0x4a1f29(0x2c5)]=0x3]=_0x4a1f29(0x2c5),_0xd58c56[_0xd58c56[_0x4a1f29(0x301)]=0x4]=_0x4a1f29(0x301),_0xd58c56[_0xd58c56[_0x4a1f29(0x2a9)]=0x5]=_0x4a1f29(0x2a9),_0xd58c56[_0xd58c56[_0x4a1f29(0x106)]=0x6]=_0x4a1f29(0x106),_0xd58c56[_0xd58c56[_0x4a1f29(0x20b)]=0x7]=_0x4a1f29(0x20b),_0xd58c56[_0xd58c56[_0x4a1f29(0x206)]=0x8]='TOO_MANY_REQUESTS',_0xd58c56[_0xd58c56['COMPLETION_FINISHED']=0x9]=_0x4a1f29(0x36e),_0xd58c56[_0xd58c56[_0x4a1f29(0x2ea)]=0xa]=_0x4a1f29(0x2ea),_0xd58c56[_0xd58c56[_0x4a1f29(0x30c)]=0xb]=_0x4a1f29(0x30c),_0xd58c56[_0xd58c56['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x4a1f29(0x1d3),_0xd58c56[_0xd58c56['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x4a1f29(0x339),_0xd58c56[_0xd58c56[_0x4a1f29(0x37e)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xd58c56[_0xd58c56[_0x4a1f29(0x366)]=0xf]=_0x4a1f29(0x366),_0xd58c56[_0xd58c56[_0x4a1f29(0x2bf)]=0x10]=_0x4a1f29(0x2bf),_0xd58c56[_0xd58c56[_0x4a1f29(0x290)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0xd58c56[_0xd58c56[_0x4a1f29(0xc4)]=0x65]=_0x4a1f29(0xc4),_0xd58c56[_0xd58c56['USER_NOT_FOUND']=0xc9]=_0x4a1f29(0x227),_0xd58c56[_0xd58c56[_0x4a1f29(0xd8)]=0xca]='USER_IS_ANONYMOUS',_0xd58c56[_0xd58c56['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4a1f29(0x24a),_0xd58c56[_0xd58c56[_0x4a1f29(0x201)]=0x1771]=_0x4a1f29(0x201),_0xd58c56[_0xd58c56['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4a1f29(0xfd),_0xd58c56[_0xd58c56[_0x4a1f29(0xf6)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0xd58c56[_0xd58c56[_0x4a1f29(0x36d)]=0x1b59]=_0x4a1f29(0x36d),_0xd58c56[_0xd58c56['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0xd58c56[_0xd58c56[_0x4a1f29(0x14a)]=0x1b5b]=_0x4a1f29(0x14a),_0xd58c56[_0xd58c56[_0x4a1f29(0x2b1)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xd58c56[_0xd58c56[_0x4a1f29(0x147)]=0x1b5d]=_0x4a1f29(0x147),_0xd58c56[_0xd58c56['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4a1f29(0x117),_0xd58c56[_0xd58c56[_0x4a1f29(0x1a8)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xd58c56[_0xd58c56[_0x4a1f29(0x379)]=0x232a]=_0x4a1f29(0x379),_0xd58c56[_0xd58c56[_0x4a1f29(0x2cb)]=0x232b]=_0x4a1f29(0x2cb),_0xd58c56[_0xd58c56[_0x4a1f29(0x2cd)]=0x232c]=_0x4a1f29(0x2cd),_0xd58c56[_0xd58c56[_0x4a1f29(0x2dd)]=0x232d]=_0x4a1f29(0x2dd),_0xd58c56[_0xd58c56[_0x4a1f29(0xd3)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xd58c56[_0xd58c56[_0x4a1f29(0x2c9)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0xd58c56[_0xd58c56[_0x4a1f29(0xeb)]=0x2713]=_0x4a1f29(0xeb),_0xd58c56[_0xd58c56[_0x4a1f29(0x1a6)]=0x2714]=_0x4a1f29(0x1a6),_0xd58c56[_0xd58c56[_0x4a1f29(0x326)]=0x271a]=_0x4a1f29(0x326),_0xd58c56[_0xd58c56[_0x4a1f29(0x1f3)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0xd58c56[_0xd58c56['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x4a1f29(0xfc),_0xd58c56[_0xd58c56['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4a1f29(0x27b),_0xd58c56[_0xd58c56['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x4a1f29(0x312),_0xd58c56[_0xd58c56[_0x4a1f29(0x38c)]=0x271f]=_0x4a1f29(0x38c),_0xd58c56[_0xd58c56['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x4a1f29(0x10f),_0xd58c56[_0xd58c56[_0x4a1f29(0x11b)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xd58c56[_0xd58c56[_0x4a1f29(0x2fa)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0xd58c56[_0xd58c56['INVALID_INVITE_CODE']=0x2ee2]=_0x4a1f29(0x390),_0xd58c56[_0xd58c56[_0x4a1f29(0x148)]=0x2ee3]=_0x4a1f29(0x148),_0xd58c56[_0xd58c56[_0x4a1f29(0x12f)]=0x2ee4]=_0x4a1f29(0x12f),_0xd58c56[_0xd58c56[_0x4a1f29(0x2dc)]=0x2ee5]=_0x4a1f29(0x2dc),_0xd58c56[_0xd58c56[_0x4a1f29(0x146)]=0x32c9]=_0x4a1f29(0x146),_0xd58c56[_0xd58c56[_0x4a1f29(0x1b8)]=0x32ca]=_0x4a1f29(0x1b8),_0xd58c56[_0xd58c56[_0x4a1f29(0xc9)]=0x32cb]=_0x4a1f29(0xc9),_0xd58c56[_0xd58c56[_0x4a1f29(0x28f)]=0x36b1]=_0x4a1f29(0x28f),_0xd58c56[_0xd58c56['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x4a1f29(0x2d4),_0xd58c56[_0xd58c56['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x4a1f29(0x33b),_0xd58c56[_0xd58c56[_0x4a1f29(0x29b)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0xd58c56[_0xd58c56[_0x4a1f29(0x36f)]=0x36b5]=_0x4a1f29(0x36f),_0xd58c56[_0xd58c56[_0x4a1f29(0x295)]=0x36b6]=_0x4a1f29(0x295),_0xd58c56[_0xd58c56[_0x4a1f29(0x25c)]=0x36b7]=_0x4a1f29(0x25c),_0xd58c56[_0xd58c56[_0x4a1f29(0x188)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0xd58c56[_0xd58c56[_0x4a1f29(0x11a)]=0x3715]=_0x4a1f29(0x11a),_0xd58c56[_0xd58c56[_0x4a1f29(0x305)]=0x3716]=_0x4a1f29(0x305),_0xd58c56[_0xd58c56[_0x4a1f29(0x2d7)]=0x3717]=_0x4a1f29(0x2d7),_0xd58c56[_0xd58c56[_0x4a1f29(0x2eb)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0xd58c56[_0xd58c56[_0x4a1f29(0x16e)]=0x3a99]='REDEMPTION_INVALID_CODE',_0xd58c56[_0xd58c56[_0x4a1f29(0x1be)]=0x3a9a]=_0x4a1f29(0x1be),_0xd58c56[_0xd58c56[_0x4a1f29(0x1aa)]=0x3a9b]=_0x4a1f29(0x1aa),_0xd58c56[_0xd58c56[_0x4a1f29(0x213)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0xd58c56[_0xd58c56[_0x4a1f29(0x337)]=0x3a9d]=_0x4a1f29(0x337),_0xd58c56[_0xd58c56[_0x4a1f29(0x2f8)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0xd58c56[_0xd58c56[_0x4a1f29(0x198)]=0x3a9f]=_0x4a1f29(0x198),_0xd58c56[_0xd58c56['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x4a1f29(0x2cf),_0xd58c56[_0xd58c56[_0x4a1f29(0x1cd)]=-0x1]=_0x4a1f29(0x1cd),_0xd58c56))(G||{});function Jt(_0x569e3c){const _0x37f95c=_0x4a1f29;var _0x56c11f,_0x507b56;const _0x49071f=(_0x56c11f=_0x569e3c['stageInfo'])==null?void 0x0:_0x56c11f[_0x37f95c(0x328)],_0x26bd91=((_0x507b56=_0x569e3c[_0x37f95c(0xde)])==null?void 0x0:_0x507b56['totalFormulasToCalculate'])||0x0;return _0x49071f===B[_0x37f95c(0x23a)][_0x37f95c(0x1f2)]&&_0x26bd91>0x0;}function Zt(_0x1c8b5a){const _0x2967b7=_0x4a1f29;return _0x1c8b5a[_0x2967b7(0x1fa)]===B[_0x2967b7(0x259)][_0x2967b7(0x20f)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x1b3752,_0x490f21,_0x3779b2,_0x364d14)=>{const _0x37fd87=_0x4a1f29;for(var _0x5e0ef3=_0x364d14>0x1?void 0x0:_0x364d14?Qt(_0x490f21,_0x3779b2):_0x490f21,_0xc4894a=_0x1b3752[_0x37fd87(0x191)]-0x1,_0x5510eb;_0xc4894a>=0x0;_0xc4894a--)(_0x5510eb=_0x1b3752[_0xc4894a])&&(_0x5e0ef3=_0x5510eb(_0x5e0ef3)||_0x5e0ef3);return _0x5e0ef3;},L=(_0x1a1193,_0x37722b)=>(_0x202490,_0xf0b43e)=>_0x37722b(_0x202490,_0xf0b43e,_0x1a1193);const ts=_0x4a1f29(0x31d),ss=_0x4a1f29(0xd5),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0x4a1f29(0x14f)]{constructor(_0x3bef8b,_0x53b22b,_0x2ddf46,_0x310d80,_0x337969,_0x3f5f6d,_0x5c9065){const _0x5a4406=_0x4a1f29;super(),_(this,_0x5a4406(0x2a8),null),_(this,_0x5a4406(0x180),0x0),_(this,_0x5a4406(0x108),0x0),_(this,_0x5a4406(0x292),[]),_(this,_0x5a4406(0x2d3),0x0),(this['_messageService']=_0x3bef8b,this[_0x5a4406(0x1ee)]=_0x53b22b,this[_0x5a4406(0x37d)]=_0x2ddf46,this[_0x5a4406(0x2db)]=_0x310d80,this[_0x5a4406(0x2ef)]=_0x337969,this[_0x5a4406(0x300)]=_0x3f5f6d,this[_0x5a4406(0x34a)]=_0x5c9065,this[_0x5a4406(0x385)]());}[_0x4a1f29(0x385)](){const _0x45336d=_0x4a1f29;this[_0x45336d(0x344)](this[_0x45336d(0x1ee)][_0x45336d(0x256)]((_0x26543f,_0x5d1e38)=>{const _0x4f2d1e=_0x45336d;var _0x4d0717;if(_0x26543f['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x4838e0=_0x26543f[_0x4f2d1e(0x1cc)];if(!this[_0x4f2d1e(0x16d)]((_0x4d0717=_0x4838e0['dirtyRanges'])!=null?_0x4d0717:[]))return;if(!this[_0x4f2d1e(0x372)]())throw this[_0x4f2d1e(0x128)](_0x26543f,_0x5d1e38),this[_0x4f2d1e(0x288)](),new a[(_0x4f2d1e(0x152))]();})),this['disposeWithMe'](this['_commandService'][_0x45336d(0x228)]((_0x1f1e77,_0x184656)=>{const _0x1778f1=_0x45336d;if(_0x1f1e77['id']!==B[_0x1778f1(0x12a)]['id'])return;const _0x6411be=_0x1f1e77[_0x1778f1(0x1cc)];if(Jt(_0x6411be)){const _0x38f1a3=a['generateRandomId']();this[_0x1778f1(0x292)][_0x1778f1(0x183)](_0x38f1a3),this[_0x1778f1(0x23d)](_0x38f1a3);}else{if(Zt(_0x6411be)&&this[_0x1778f1(0x292)][_0x1778f1(0x191)]>0x0){const _0x3238a4=this['_taskIds']['shift']();this[_0x1778f1(0x22c)](_0x3238a4);}}}));}[_0x4a1f29(0x313)](){const _0x2158b8=_0x4a1f29;super[_0x2158b8(0x313)](),this[_0x2158b8(0x22a)](),this[_0x2158b8(0x292)]=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x28970,_0xa516a7){const _0x216f52=_0x4a1f29;for(let _0x22fd36=0x0;_0x22fd36<0x1e;_0x22fd36++)try{if(await this[_0x216f52(0x158)](),this[_0x216f52(0x372)]()){this[_0x216f52(0x26a)](_0x28970,_0xa516a7),this[_0x216f52(0x10e)][_0x216f52(0x161)]({'content':this['_localeService']['t'](_0x216f52(0xdc)),'type':p[_0x216f52(0x14d)][_0x216f52(0x23c)]});return;}await new Promise(_0x29058d=>{const _0x2623aa=_0x216f52;this['_pollingInterval']=window[_0x2623aa(0x35b)](_0x29058d,0x3e8);});}catch(_0x56ced4){this[_0x216f52(0x300)][_0x216f52(0x19d)](_0x56ced4);}this[_0x216f52(0x10e)][_0x216f52(0x161)]({'content':this['_localeService']['t'](_0x216f52(0x1d7)),'type':p['MessageType'][_0x216f52(0x195)]});}[_0x4a1f29(0x26a)](_0x2ab8da,_0x323f8c){const _0x18a667=_0x4a1f29;try{this['_commandService'][_0x18a667(0x26b)](_0x2ab8da['id'],_0x2ab8da[_0x18a667(0x1cc)],_0x323f8c);}catch(_0x2dbff8){this[_0x18a667(0x300)]['error'](_0x2dbff8);}}[_0x4a1f29(0x1a0)](_0x1cf568,_0x1076f1){const _0x3b2eca=_0x4a1f29;_0x1076f1<this['_lastResponseTimestamp']||(this[_0x3b2eca(0x2d3)]=_0x1076f1,this['_maxFormulaLimit']=Number[_0x3b2eca(0x35a)](_0x1cf568['maxFormulaLimit']),this[_0x3b2eca(0x108)]=Number[_0x3b2eca(0x35a)](_0x1cf568[_0x3b2eca(0x178)]));}async['_startCalculationLimit'](_0x18710c){const _0x361bd2=_0x4a1f29;var _0x3b12dd,_0x30a524;const _0x107e73=Date['now']();try{const _0x2f9180=((_0x3b12dd=this[_0x361bd2(0x37d)][_0x361bd2(0x1a9)](u[_0x361bd2(0x12b)]))==null?void 0x0:_0x3b12dd['startFormulaLimitUrl'])||ss,_0x29458f=(await this[_0x361bd2(0x2db)][_0x361bd2(0x18c)](_0x2f9180,{'body':JSON[_0x361bd2(0xf1)]({'taskId':_0x18710c})}))[_0x361bd2(0x207)];if(((_0x30a524=_0x29458f[_0x361bd2(0x19d)])==null?void 0x0:_0x30a524[_0x361bd2(0x1a1)])!==G['OK'])return;this[_0x361bd2(0x1a0)](_0x29458f['limitInfo'],_0x107e73);}catch(_0x2a1584){this[_0x361bd2(0x300)][_0x361bd2(0x19d)](_0x2a1584);}}async[_0x4a1f29(0x158)](_0x44a575){const _0x4c4816=_0x4a1f29;var _0xdb8f3a,_0x3b2646;const _0x116607=Date['now']();try{const _0x3033cc=((_0xdb8f3a=this[_0x4c4816(0x37d)]['getConfig'](u[_0x4c4816(0x12b)]))==null?void 0x0:_0xdb8f3a['getformulaLimitStatusUrl'])||ts,_0x4bd1b4=_0x44a575?_0x3033cc+'?taskId='+encodeURIComponent(_0x44a575):_0x3033cc,_0x4c049a=(await this[_0x4c4816(0x2db)][_0x4c4816(0x283)](_0x4bd1b4))['body'];if(((_0x3b2646=_0x4c049a[_0x4c4816(0x19d)])==null?void 0x0:_0x3b2646[_0x4c4816(0x1a1)])!==G['OK'])return;this[_0x4c4816(0x1a0)](_0x4c049a[_0x4c4816(0x13a)],_0x116607);}catch(_0x28831b){this[_0x4c4816(0x300)][_0x4c4816(0x19d)](_0x28831b);}}async[_0x4a1f29(0x22c)](_0x59a640){const _0x2327d5=_0x4a1f29;var _0xcb03f3,_0x4259d5;const _0x13213d=Date[_0x2327d5(0x2b2)]();try{const _0x4c046d=((_0xcb03f3=this['_configService'][_0x2327d5(0x1a9)](u[_0x2327d5(0x12b)]))==null?void 0x0:_0xcb03f3[_0x2327d5(0x284)])||is,_0x3762c3=(await this[_0x2327d5(0x2db)][_0x2327d5(0x18c)](_0x4c046d,{'body':JSON[_0x2327d5(0xf1)]({'taskId':_0x59a640})}))[_0x2327d5(0x207)];if(((_0x4259d5=_0x3762c3['error'])==null?void 0x0:_0x4259d5[_0x2327d5(0x1a1)])!==G['OK'])return;this[_0x2327d5(0x1a0)](_0x3762c3['limitInfo'],_0x13213d);}catch(_0x1daf55){this['_logService'][_0x2327d5(0x19d)](_0x1daf55);}}['_checkCalculationAvailable'](){const _0x47c835=_0x4a1f29;return this[_0x47c835(0x180)]===0x0?!0x0:this[_0x47c835(0x180)]-this[_0x47c835(0x108)]>0x0;}['_clearPolling'](){const _0x49462f=_0x4a1f29;this['_pollingInterval']&&(clearTimeout(this[_0x49462f(0x2a8)]),this[_0x49462f(0x2a8)]=null);}[_0x4a1f29(0x288)](){const _0x5b95dc=_0x4a1f29;this['_messageService'][_0x5b95dc(0x161)]({'content':this[_0x5b95dc(0x34a)]['t'](_0x5b95dc(0x294)),'type':p['MessageType'][_0x5b95dc(0x25d)]});}[_0x4a1f29(0x16d)](_0xa46436){const _0x19a42b=_0x4a1f29;for(const _0x1f3533 of _0xa46436){const {unitId:_0x135f1,sheetId:_0x2283db,range:_0x4f835a}=_0x1f3533,_0x4f42fe=this[_0x19a42b(0x2ef)][_0x19a42b(0x309)](_0x135f1);if(!_0x4f42fe)continue;const _0x163962=_0x4f42fe[_0x19a42b(0x1f5)](_0x2283db);if(!_0x163962)continue;const _0x30dcf1=_0x163962[_0x19a42b(0x2c2)]();for(let _0x254de9=_0x4f835a[_0x19a42b(0x172)];_0x254de9<=_0x4f835a['endRow'];_0x254de9++)for(let _0x1082f7=_0x4f835a[_0x19a42b(0x216)];_0x1082f7<=_0x4f835a['endColumn'];_0x1082f7++){const _0x513ecc=_0x30dcf1[_0x19a42b(0xfb)](_0x254de9,_0x1082f7);if(_0x513ecc&&(a[_0x19a42b(0x233)](_0x513ecc['f'])||a['isFormulaId'](_0x513ecc['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4a1f29(0x20d)](O[_0x4a1f29(0x10c)])),L(0x1,a[_0x4a1f29(0x1e6)]),L(0x2,a['IConfigService']),L(0x3,a['Inject'](x[_0x4a1f29(0x1e9)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x4a1f29(0xcc)]),L(0x6,a[_0x4a1f29(0x20d)](a['LocaleService']))],ne);var ns=Object[_0x4a1f29(0xef)],rs=(_0x154db2,_0x503648,_0x12e093,_0x5d0108)=>{const _0x35117d=_0x4a1f29;for(var _0x16f170=_0x5d0108>0x1?void 0x0:_0x5d0108?ns(_0x503648,_0x12e093):_0x503648,_0x93f45b=_0x154db2[_0x35117d(0x191)]-0x1,_0x20c805;_0x93f45b>=0x0;_0x93f45b--)(_0x20c805=_0x154db2[_0x93f45b])&&(_0x16f170=_0x20c805(_0x16f170)||_0x16f170);return _0x16f170;},Se=(_0x5487fb,_0x48f7d0)=>(_0x193e0e,_0xa51853)=>_0x48f7d0(_0x193e0e,_0xa51853,_0x5487fb);let Te=class extends a['Disposable']{constructor(_0x1bdaab,_0x2115cf,_0xf946f9){const _0x446ea8=_0x4a1f29;super(),_(this,_0x446ea8(0x1ff),new Map()),_(this,_0x446ea8(0x174),new Map()),_(this,_0x446ea8(0x21d),!0x1),(this[_0x446ea8(0x37d)]=_0x1bdaab,this[_0x446ea8(0x354)]=_0x2115cf,this[_0x446ea8(0x2f5)]=_0xf946f9);}[_0x4a1f29(0x1d1)](){const _0x1e2486=_0x4a1f29;this[_0x1e2486(0x21d)]=!0x0;}[_0x4a1f29(0x1d6)](){const _0x1eb2e5=_0x4a1f29;this[_0x1eb2e5(0x21d)]=!0x1;}get['saveTaskMap'](){const _0x3f10cc=_0x4a1f29;return this[_0x3f10cc(0x174)];}[_0x4a1f29(0x313)](){const _0xed704c=_0x4a1f29;this[_0xed704c(0x1cb)]()[_0xed704c(0x332)](()=>super[_0xed704c(0x313)]());}async[_0x4a1f29(0x171)](_0x3fff74){return this['_disabled']?null:this['_localStorageService']['getItem'](u['getLocalCacheKey'](_0x3fff74));}async[_0x4a1f29(0x12d)](_0x142c30,_0x47a8fe){return!!this['_localStorageService']['setItem'](_0x142c30,_0x47a8fe);}[_0x4a1f29(0x34b)](_0x4104a9,_0x2a9eda,_0x1b8a7e,_0x25fde5){const _0x5a68d9=_0x4a1f29,_0x42223d=this['_revisionService'][_0x5a68d9(0x360)](_0x4104a9);this['_cachedData'][_0x5a68d9(0x193)](_0x4104a9,{'unitID':_0x4104a9,'type':_0x2a9eda,'awaitingChangeset':_0x1b8a7e,'mutations':_0x25fde5,'rev':_0x42223d}),this[_0x5a68d9(0x174)][_0x5a68d9(0x114)](_0x4104a9)||this[_0x5a68d9(0x1ac)](_0x4104a9);}[_0x4a1f29(0x1ac)](_0x5b3eaa){const _0x36de93=_0x4a1f29,_0x3d6926=this[_0x36de93(0x315)]();_0x3d6926===0x0?this['_saveCache'](_0x5b3eaa):this[_0x36de93(0x174)][_0x36de93(0x193)](_0x5b3eaa,setTimeout(()=>this[_0x36de93(0x17b)](_0x5b3eaa),_0x3d6926));}[_0x4a1f29(0x315)](){const _0xf05d73=_0x4a1f29;var _0x130ed7;return(_0x130ed7=this[_0xf05d73(0x37d)][_0xf05d73(0x1a9)](u[_0xf05d73(0x316)]))!=null?_0x130ed7:u['LOCAL_CACHE_INTERVAL'];}[_0x4a1f29(0x17b)](_0xd60edc){const _0x8c6a0e=_0x4a1f29,_0x542fa6=this[_0x8c6a0e(0x174)][_0x8c6a0e(0x283)](_0xd60edc);return _0x542fa6!==void 0x0&&window[_0x8c6a0e(0x2b4)](_0x542fa6),this[_0x8c6a0e(0x354)][_0x8c6a0e(0x2d6)](u['getLocalCacheKey'](_0xd60edc),this[_0x8c6a0e(0x1ff)]['get'](_0xd60edc))[_0x8c6a0e(0x332)](()=>this[_0x8c6a0e(0x174)][_0x8c6a0e(0x2fe)](_0xd60edc));}async['exhaustSavingTask'](){const _0x5ce8be=_0x4a1f29,_0x25f38b=[];this['_saveTaskMap'][_0x5ce8be(0x1fb)]((_0x3665b3,_0x1a74bc)=>{const _0x2d763a=_0x5ce8be;window[_0x2d763a(0x2b4)](_0x3665b3),_0x25f38b[_0x2d763a(0x183)](this['_saveCache'](_0x1a74bc)[_0x2d763a(0x332)](()=>{const _0x2eb1a1=_0x2d763a;this[_0x2eb1a1(0x174)][_0x2eb1a1(0x2fe)](_0x1a74bc);}));}),await Promise[_0x5ce8be(0xf3)](_0x25f38b);}};Te=rs([Se(0x0,a[_0x4a1f29(0x347)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x4a1f29(0x20d)](g[_0x4a1f29(0x38b)]))],Te);class ke extends a[_0x4a1f29(0x27c)]{constructor(){const _0x500e03=_0x4a1f29;super(),_(this,_0x500e03(0x29d)),this[_0x500e03(0x29d)]=I[_0x500e03(0x1dc)](window,_0x500e03(0x103))['pipe'](I[_0x500e03(0x23b)](this[_0x500e03(0x217)]),I[_0x500e03(0x16c)](0x1),I[_0x500e03(0x17a)](void 0x0));}[_0x4a1f29(0x30b)](_0x20e722,_0x329f98,_0x393f29=!0x1){const _0x2181fb=_0x4a1f29,_0x12864e=new URL(window['location'][_0x2181fb(0xf5)]);_0x12864e[_0x2181fb(0x28b)][_0x2181fb(0x193)](_0x20e722,_0x329f98),_0x393f29?window[_0x2181fb(0x327)]['replaceState']('','',_0x12864e[_0x2181fb(0xe7)]()):window[_0x2181fb(0x327)][_0x2181fb(0x36c)]('','',_0x12864e[_0x2181fb(0xe7)]());}[_0x4a1f29(0x29c)](_0x297843,_0x236851=!0x1){const _0x2cb18c=_0x4a1f29,_0x2fa2c5=new URL(window[_0x2cb18c(0x369)][_0x2cb18c(0xf5)]);_0x2fa2c5['searchParams']['delete'](_0x297843),_0x236851?window['history']['replaceState']('','',_0x2fa2c5[_0x2cb18c(0xe7)]()):window[_0x2cb18c(0x327)]['pushState']('','',_0x2fa2c5[_0x2cb18c(0xe7)]());}[_0x4a1f29(0x319)](_0x595ad0){const _0x18b409=_0x4a1f29;var _0x1d55a9;return(_0x1d55a9=new URL(window['location'][_0x18b409(0xf5)])[_0x18b409(0x28b)]['get'](_0x595ad0))!=null?_0x1d55a9:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x4a1f29(0xef)],cs=(_0x47292a,_0x51b3f0,_0x5eecbf)=>_0x51b3f0 in _0x47292a?os(_0x47292a,_0x51b3f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5eecbf}):_0x47292a[_0x51b3f0]=_0x5eecbf,ls=(_0x47a284,_0x24496b,_0x3d0799,_0x1acc25)=>{const _0x517d37=_0x4a1f29;for(var _0x2076d1=_0x1acc25>0x1?void 0x0:_0x1acc25?as(_0x24496b,_0x3d0799):_0x24496b,_0x4c712c=_0x47a284[_0x517d37(0x191)]-0x1,_0x48572b;_0x4c712c>=0x0;_0x4c712c--)(_0x48572b=_0x47a284[_0x4c712c])&&(_0x2076d1=_0x48572b(_0x2076d1)||_0x2076d1);return _0x2076d1;},de=(_0x1dd810,_0x5c0fb5)=>(_0x1af1a0,_0x2db058)=>_0x5c0fb5(_0x1af1a0,_0x2db058,_0x1dd810),_s=(_0x12b608,_0x2c380c,_0x4c916c)=>cs(_0x12b608,_0x2c380c+'',_0x4c916c);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x4a1f29(0x37a)]=class extends a[_0x4a1f29(0xe0)]{constructor(_0x57f9b7=Me,_0x31397b,_0x59c7b3,_0x2ee4b3){const _0x6cc849=_0x4a1f29;super(),this['_config']=_0x57f9b7,this[_0x6cc849(0x375)]=_0x31397b,this[_0x6cc849(0x1eb)]=_0x59c7b3,this[_0x6cc849(0x37d)]=_0x2ee4b3;const {..._0x68dbb2}=a['merge']({},Me,this[_0x6cc849(0x368)]);this['_configService'][_0x6cc849(0x27a)](Yt,_0x68dbb2);}[_0x4a1f29(0x234)](){const _0x175bce=_0x4a1f29;this[_0x175bce(0x384)](),this[_0x175bce(0x387)]();}[_0x4a1f29(0x189)](){const _0x3f383e=_0x4a1f29;this[_0x3f383e(0x2f7)]();}[_0x4a1f29(0x384)](){const _0x4caf82=_0x4a1f29;var _0x1ad0f9;const _0x115c7c=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x4caf82(0x19f)],{'useClass':x[_0x4caf82(0x268)]}],[u[_0x4caf82(0x127)],{'useClass':Te}],[exports[_0x4caf82(0x142)]],[ie],[Z],[F],[me],[exports[_0x4caf82(0x334)]]];this[_0x4caf82(0x368)][_0x4caf82(0x336)]&&_0x115c7c['push']([Q]),a['registerDependencies'](this[_0x4caf82(0x1eb)],a['mergeOverrideWithDependencies'](_0x115c7c,(_0x1ad0f9=this[_0x4caf82(0x368)])==null?void 0x0:_0x1ad0f9[_0x4caf82(0x173)]));}[_0x4a1f29(0x2f7)](){const _0x4388f7=_0x4a1f29;this[_0x4388f7(0x344)](this[_0x4388f7(0x375)][_0x4388f7(0x38d)](a[_0x4388f7(0x25e)][_0x4388f7(0x1af)],[Ee])),this['disposeWithMe'](this[_0x4388f7(0x375)]['registerRenderModule'](a['UniverInstanceType'][_0x4388f7(0x304)],[Ce]));}[_0x4a1f29(0x387)](){const _0x156495=_0x4a1f29;a['touchDependencies'](this[_0x156495(0x1eb)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x156495(0x334)]],[ne]]),this[_0x156495(0x368)]['enableFrontendLog']&&a['touchDependencies'](this[_0x156495(0x1eb)],[[Q]]);}},_s(exports[_0x4a1f29(0x37a)],_0x4a1f29(0x371),hs),exports[_0x4a1f29(0x37a)]=ls([a[_0x4a1f29(0x376)](u[_0x4a1f29(0x13c)]),de(0x1,C[_0x4a1f29(0x333)]),de(0x2,a[_0x4a1f29(0x20d)](a['Injector'])),de(0x3,a[_0x4a1f29(0x347)])],exports[_0x4a1f29(0x37a)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x1e0920,_0x1513e5,_0xf35a81,_0x51b508)=>{const _0x585d38=_0x4a1f29;for(var _0x59a3a2=_0x51b508>0x1?void 0x0:_0x51b508?us(_0x1513e5,_0xf35a81):_0x1513e5,_0x99ea92=_0x1e0920[_0x585d38(0x191)]-0x1,_0x14480c;_0x99ea92>=0x0;_0x99ea92--)(_0x14480c=_0x1e0920[_0x99ea92])&&(_0x59a3a2=_0x14480c(_0x59a3a2)||_0x59a3a2);return _0x59a3a2;},W=(_0x348a8c,_0x1525e5)=>(_0x4cd4f5,_0x3b4513)=>_0x1525e5(_0x4cd4f5,_0x3b4513,_0x348a8c);exports['BrowserCollaborationSocketService']=class extends u[_0x4a1f29(0x1b3)]{constructor(_0x3895be,_0x5a2987,_0x47efc2,_0x98c63b,_0x3329bc){super(_0x3895be,_0x5a2987,_0x47efc2,_0x98c63b,_0x3329bc);}async[_0x4a1f29(0x26f)](_0x54f527){const _0x49860f=_0x4a1f29,_0x1bb948=await this[_0x49860f(0xdd)](),_0x541f76=this[_0x49860f(0xc2)](_0x54f527,_0x1bb948);return this[_0x49860f(0x325)](_0x541f76);}['_createSocketURL'](_0x5d2cff,_0x180f02){const _0x5876cf=_0x4a1f29,_0x470b58=typeof window>'u'?new URL(_0x5d2cff):new URL(_0x5d2cff,window[_0x5876cf(0x369)][_0x5876cf(0x2d0)]);_0x470b58[_0x5876cf(0x28b)][_0x5876cf(0x193)](_0x5876cf(0x381),_0x180f02);const _0x213f7b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5876cf(0x369)]['search']);return _0x213f7b['get'](_0x5876cf(0x100))&&_0x470b58[_0x5876cf(0x28b)][_0x5876cf(0x193)]('runId',_0x213f7b['get']('runId')),_0x470b58['toString']();}async[_0x4a1f29(0xdd)](){const _0x3027d5=_0x4a1f29;var _0x3cd45b,_0x2d3968,_0x5a603e;const _0xef9f77=this['_configService'][_0x3027d5(0x1a9)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x159e23=(_0x3cd45b=_0xef9f77==null?void 0x0:_0xef9f77[_0x3027d5(0x1b6)])!=null?_0x3cd45b:u[_0x3027d5(0x11c)];return(_0x5a603e=(_0x2d3968=(await this[_0x3027d5(0x2db)][_0x3027d5(0x283)](_0x159e23,{'headers':{'Content-Type':'application/json'}}))[_0x3027d5(0x207)])==null?void 0x0:_0x2d3968[_0x3027d5(0x235)])!=null?_0x5a603e:'';}},exports[_0x4a1f29(0x1ab)]=Is([W(0x0,a['Inject'](a['Injector'])),W(0x1,a[_0x4a1f29(0x20d)](x['HTTPService'])),W(0x2,a[_0x4a1f29(0x347)]),W(0x3,a['ILogService']),W(0x4,g[_0x4a1f29(0x363)])],exports[_0x4a1f29(0x1ab)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x11ca64,_0x2916ab,_0xea76c6,_0x721861)=>{for(var _0x544d5b=_0x721861>0x1?void 0x0:_0x721861?Ss(_0x2916ab,_0xea76c6):_0x2916ab,_0x27d958=_0x11ca64['length']-0x1,_0x2c8ca7;_0x27d958>=0x0;_0x27d958--)(_0x2c8ca7=_0x11ca64[_0x27d958])&&(_0x544d5b=_0x2c8ca7(_0x544d5b)||_0x544d5b);return _0x544d5b;},fe=(_0x4773f5,_0x17877e)=>(_0x23a258,_0x892f9b)=>_0x17877e(_0x23a258,_0x892f9b,_0x4773f5);exports[_0x4a1f29(0x208)]=class extends a['Disposable']{constructor(_0x105ea5,_0x24c86f,_0x3be3d0){const _0x417905=_0x4a1f29;super(),this[_0x417905(0x1f4)]=_0x105ea5,this[_0x417905(0x2db)]=_0x24c86f,this['_configService']=_0x3be3d0;}async[_0x4a1f29(0x2e5)](_0x4b7fcc,_0x46d696,_0x5f3f92,..._0x2adb40){const _0x203fcd=_0x4a1f29;var _0x4f4f88,_0x25bef5,_0x789c81,_0x19f20a;const _0x461b9f=this[_0x203fcd(0x1f4)][_0x203fcd(0x2b9)]();if(!_0x461b9f)throw new Error(_0x203fcd(0x2c7));const _0x4db17a=((_0x4f4f88=this[_0x203fcd(0x37d)][_0x203fcd(0x1a9)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x4f4f88:u[_0x203fcd(0x137)])+'/'+_0x4b7fcc+_0x203fcd(0x13b)+_0x46d696,_0xec70ff=new URL(window[_0x203fcd(0x369)][_0x203fcd(0xf5)]),_0x5ef22c={'scriptId':_0x4b7fcc,'runId':(_0x25bef5=_0xec70ff[_0x203fcd(0x28b)][_0x203fcd(0x283)](_0x203fcd(0x100)))!=null?_0x25bef5:'','function':_0x46d696,'unitId':_0x461b9f[_0x203fcd(0x317)](),'argsOfFunction':JSON[_0x203fcd(0xf1)](_0x2adb40),'invokeId':(_0x789c81=_0x5f3f92[_0x203fcd(0xf4)])!=null?_0x789c81:'','executionId':(_0x19f20a=_0x5f3f92[_0x203fcd(0x389)])!=null?_0x19f20a:''};try{const _0xf48fd9=await this[_0x203fcd(0x2db)][_0x203fcd(0x18c)](_0x4db17a,{'body':_0x5ef22c});return _0xf48fd9[_0x203fcd(0x207)]['error']&&_0xf48fd9['body'][_0x203fcd(0x19d)][_0x203fcd(0x1a1)]!==G['OK']?_0x203fcd(0x279):_0xf48fd9[_0x203fcd(0x207)][_0x203fcd(0x145)];}catch{return _0x203fcd(0x279);}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x4a1f29(0x197)]),fe(0x1,a['Inject'](x[_0x4a1f29(0x1e9)])),fe(0x2,a[_0x4a1f29(0x347)])],exports[_0x4a1f29(0x208)]);const we=0x7530,ye=_0x4a1f29(0x159);class fs extends a['Disposable']{constructor(){const _0x3e459d=_0x4a1f29;super(),_(this,_0x3e459d(0xe4),a[_0x3e459d(0x30a)]()),_(this,_0x3e459d(0x204),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x3e459d(0x358),null),_(this,_0x3e459d(0x115),new Map()),_(this,_0x3e459d(0xcf),new Map()),this[_0x3e459d(0x280)]();}[_0x4a1f29(0x313)](){const _0x1f4b62=_0x4a1f29;super[_0x1f4b62(0x313)](),this[_0x1f4b62(0x115)][_0x1f4b62(0x1fb)]((_0x44bf86,_0x7fb6fe)=>this[_0x1f4b62(0x355)](_0x7fb6fe)),this[_0x1f4b62(0x358)]&&window[_0x1f4b62(0x157)](this[_0x1f4b62(0x358)]);}[_0x4a1f29(0x26c)](_0x37b3ad){const _0x4bc8ef=_0x4a1f29;return this['_ensureSubject'](_0x37b3ad)[_0x4bc8ef(0x2e0)](I[_0x4bc8ef(0x2ca)]());}['editingUnit'](_0x25489e){const _0x5e1cfe=_0x4a1f29;this[_0x5e1cfe(0x204)][_0x5e1cfe(0x13f)]===0x0&&this['_scheduleHeartbeat'](),this[_0x5e1cfe(0x204)][_0x5e1cfe(0x134)](_0x25489e),this[_0x5e1cfe(0x1ea)]({'type':0x0,'memberID':this[_0x5e1cfe(0xe4)],'unitIDs':[_0x25489e],'isForwarded':!0x1});}[_0x4a1f29(0x1dd)](_0x45426d){const _0x167f6a=_0x4a1f29;this[_0x167f6a(0x204)][_0x167f6a(0x2fe)](_0x45426d),this[_0x167f6a(0x204)][_0x167f6a(0x13f)]===0x0&&this[_0x167f6a(0x358)]&&window[_0x167f6a(0x157)](this[_0x167f6a(0x358)]);}[_0x4a1f29(0x280)](){const _0x40e992=_0x4a1f29;this[_0x40e992(0x344)](a[_0x40e992(0x17c)](I['fromEvent'](window,_0x40e992(0x262))[_0x40e992(0x31a)](_0x4f4742=>{const _0x39a02f=_0x40e992;if(_0x4f4742[_0x39a02f(0x323)]!==ye||!_0x4f4742['newValue'])return;const _0x29a9d7=JSON[_0x39a02f(0x1cf)](_0x4f4742[_0x39a02f(0x30f)]);this['_handleEvent'](_0x29a9d7);}))),window[_0x40e992(0x349)](_0x40e992(0x24c),()=>this[_0x40e992(0x1ea)]({'type':0x1,'memberID':this[_0x40e992(0xe4)],'unitIDs':Array[_0x40e992(0x1ed)](this[_0x40e992(0x204)])}));}[_0x4a1f29(0x2c1)](_0x18ea22){const _0x545087=_0x4a1f29;switch(_0x18ea22[_0x545087(0x275)]){case 0x0:this[_0x545087(0x1fe)](_0x18ea22);break;case 0x1:this['_handleLeaveEvent'](_0x18ea22);break;case 0x2:this[_0x545087(0x2f4)](_0x18ea22);break;}}[_0x4a1f29(0x1fe)](_0x521f07){const _0x4c95d6=_0x4a1f29,{unitIDs:_0x92606c,memberID:_0x240988,isForwarded:_0x34d029}=_0x521f07;_0x92606c[_0x4c95d6(0x1fb)](_0x311ad0=>{const _0x3a398d=_0x4c95d6;if(!_0x34d029&&this[_0x3a398d(0x2d1)][_0x3a398d(0x114)](_0x311ad0)&&this[_0x3a398d(0x245)](_0x311ad0)[_0x3a398d(0x293)](u[_0x3a398d(0x35c)][_0x3a398d(0x246)]),!this[_0x3a398d(0x2d1)][_0x3a398d(0x114)](_0x311ad0)||!this[_0x3a398d(0x2d1)]['get'](_0x311ad0)[_0x3a398d(0x114)](_0x240988)){const _0x1ff0f4=this['_unitOnClients'][_0x3a398d(0x283)](_0x311ad0)||new Set();_0x1ff0f4['add'](_0x240988),this[_0x3a398d(0x2d1)][_0x3a398d(0x193)](_0x311ad0,_0x1ff0f4),this[_0x3a398d(0x289)](_0x240988);}}),_0x34d029||this['_send']({'type':0x0,'memberID':this[_0x4c95d6(0xe4)],'unitIDs':[...this[_0x4c95d6(0x204)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x545549){const _0x22d4c8=_0x4a1f29;this[_0x22d4c8(0x355)](_0x545549);const _0x5377b9=window[_0x22d4c8(0x35b)](()=>{const _0x1b889c=_0x22d4c8;this[_0x1b889c(0x2d1)][_0x1b889c(0x1fb)](_0x3c70ec=>{_0x3c70ec['delete'](_0x545549);});},we*0x2);this[_0x22d4c8(0x115)]['set'](_0x545549,_0x5377b9);}[_0x4a1f29(0x355)](_0x26f1e8){const _0x3a5def=_0x4a1f29;if(this[_0x3a5def(0x115)][_0x3a5def(0x114)](_0x26f1e8)){const _0x5db379=this[_0x3a5def(0x115)][_0x3a5def(0x283)](_0x26f1e8);_0x5db379&&window[_0x3a5def(0x2b4)](_0x5db379),this[_0x3a5def(0x115)][_0x3a5def(0x193)](_0x26f1e8,null);}}['_handleLeaveEvent'](_0x4b9b3d){const _0x921199=_0x4a1f29,{memberID:_0x16c7f3,unitIDs:_0x575e4d}=_0x4b9b3d;_0x575e4d[_0x921199(0x1fb)](_0x93c54a=>{const _0x3ea997=_0x921199;var _0x542bad;const _0x306c57=this[_0x3ea997(0x2d1)]['get'](_0x93c54a);_0x306c57&&(_0x306c57[_0x3ea997(0x2fe)](_0x16c7f3),(_0x542bad=this['_ensureSubject'](_0x93c54a))==null||_0x542bad[_0x3ea997(0x293)](_0x306c57[_0x3ea997(0x13f)]===0x0?u[_0x3ea997(0x35c)][_0x3ea997(0xcd)]:u[_0x3ea997(0x35c)][_0x3ea997(0x246)]));}),this[_0x921199(0x355)](_0x16c7f3);}['_handleHeartbeatEvent'](_0xf3fdb0){this['_scheduleClearOtherTimer'](_0xf3fdb0['memberID']);}[_0x4a1f29(0x1ea)](_0x3771a9){const _0x141ff3=_0x4a1f29;localStorage[_0x141ff3(0x2d6)](ye,JSON[_0x141ff3(0xf1)](_0x3771a9));}[_0x4a1f29(0x1b4)](){const _0x258fe6=_0x4a1f29;this[_0x258fe6(0x358)]=window[_0x258fe6(0x324)](()=>{const _0x9f6c5b=_0x258fe6;this[_0x9f6c5b(0x1ea)]({'type':0x2,'memberID':this['_id']});},we);}[_0x4a1f29(0x245)](_0x5c20f5){const _0x58e022=_0x4a1f29;return this[_0x58e022(0xcf)][_0x58e022(0x114)](_0x5c20f5)||this[_0x58e022(0xcf)][_0x58e022(0x193)](_0x5c20f5,new I[(_0x58e022(0x2a0))](u[_0x58e022(0x35c)][_0x58e022(0xcd)])),this[_0x58e022(0xcf)][_0x58e022(0x283)](_0x5c20f5);}}exports[_0x4a1f29(0x154)]=Oe,exports[_0x4a1f29(0x212)]=je,exports[_0x4a1f29(0x1bc)]=fs,exports[_0x4a1f29(0x160)]=ke;
1
+ 'use strict';const _0x37525a=_0x415c;(function(_0x280de2,_0x302f18){const _0x4abcea=_0x415c,_0x503524=_0x280de2();while(!![]){try{const _0x180716=-parseInt(_0x4abcea(0x22f))/0x1+-parseInt(_0x4abcea(0x379))/0x2*(parseInt(_0x4abcea(0x354))/0x3)+-parseInt(_0x4abcea(0x3aa))/0x4+parseInt(_0x4abcea(0x1d8))/0x5*(-parseInt(_0x4abcea(0x33e))/0x6)+parseInt(_0x4abcea(0x223))/0x7*(-parseInt(_0x4abcea(0x2ce))/0x8)+parseInt(_0x4abcea(0x1e9))/0x9*(-parseInt(_0x4abcea(0x32f))/0xa)+parseInt(_0x4abcea(0x39e))/0xb;if(_0x180716===_0x302f18)break;else _0x503524['push'](_0x503524['shift']());}catch(_0x36eee){_0x503524['push'](_0x503524['shift']());}}}(_0x5977,0x3c71e));var Xe=Object['defineProperty'],Ke=(_0x4d4164,_0x1ac913,_0x148c6b)=>_0x1ac913 in _0x4d4164?Xe(_0x4d4164,_0x1ac913,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x148c6b}):_0x4d4164[_0x1ac913]=_0x148c6b,_=(_0x52a1c1,_0x591fb7,_0x3b3a07)=>Ke(_0x52a1c1,typeof _0x591fb7!=_0x37525a(0x311)?_0x591fb7+'':_0x591fb7,_0x3b3a07);Object[_0x37525a(0x3ae)](exports,Symbol['toStringTag'],{'value':_0x37525a(0x394)});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:_0x29afe1,..._0x1e6952}){const _0x48df80=_0x37525a,{icon:_0x56818a,id:_0x4913ff,className:_0x34f6e6,extend:_0x18b2a9,..._0x3c9560}=_0x1e6952,_0x800307=(_0x48df80(0x288)+_0x4913ff+'\x20'+(_0x34f6e6||''))['trim'](),_0x1427db=A[_0x48df80(0x1c2)]('_'+Qe());return $e(_0x56818a,''+_0x4913ff,{'defIds':_0x56818a['defIds'],'idSuffix':_0x1427db[_0x48df80(0x21a)]},{'ref':_0x29afe1,'className':_0x800307,..._0x3c9560},_0x18b2a9);}function $e(_0x1f8608,_0x3b4df5,_0x26cf9f,_0x5f5431,_0x2609e7){const _0x5adbe6=_0x37525a;return A[_0x5adbe6(0x426)](_0x1f8608[_0x5adbe6(0x1bf)],{'key':_0x3b4df5,...Je(_0x1f8608,_0x26cf9f,_0x2609e7),..._0x5f5431},(Ze(_0x1f8608,_0x26cf9f)['children']||[])['map']((_0x39b38e,_0x2e811f)=>$e(_0x39b38e,_0x3b4df5+'-'+_0x1f8608[_0x5adbe6(0x1bf)]+'-'+_0x2e811f,_0x26cf9f,void 0x0,_0x2609e7)));}function Je(_0x175a41,_0x588593,_0x59d491){const _0x2d4061=_0x37525a,_0x12a6d7={..._0x175a41[_0x2d4061(0x40d)]};_0x59d491!=null&&_0x59d491[_0x2d4061(0x2d0)]&&_0x12a6d7[_0x2d4061(0x401)]===_0x2d4061(0x2d0)&&(_0x12a6d7['fill']=_0x59d491[_0x2d4061(0x2d0)]),_0x175a41['tag']===_0x2d4061(0x334)&&_0x12a6d7['id']&&(_0x12a6d7['id']=_0x12a6d7['id']+_0x588593['idSuffix']),Object[_0x2d4061(0x1cf)](_0x12a6d7)[_0x2d4061(0x34f)](([_0x5adb7d,_0x4cc314])=>{const _0x5b6d2e=_0x2d4061;_0x5adb7d===_0x5b6d2e(0x334)&&typeof _0x4cc314==_0x5b6d2e(0x211)&&(_0x12a6d7[_0x5adb7d]=_0x4cc314[_0x5b6d2e(0x2c4)](/url\(#(.*)\)/,_0x5b6d2e(0x2e8)+_0x588593[_0x5b6d2e(0x336)]+')'));});const {defIds:_0x452f6b}=_0x588593;return!_0x452f6b||_0x452f6b[_0x2d4061(0x1cd)]===0x0||(_0x175a41[_0x2d4061(0x1bf)]===_0x2d4061(0x1b4)&&_0x12a6d7['xlink:href']&&(_0x12a6d7[_0x2d4061(0x1e2)]=_0x12a6d7[_0x2d4061(0x1e2)]+_0x588593[_0x2d4061(0x336)]),Object['entries'](_0x12a6d7)['forEach'](([_0x95c177,_0x344df2])=>{const _0x28f4ee=_0x2d4061;typeof _0x344df2==_0x28f4ee(0x211)&&(_0x12a6d7[_0x95c177]=_0x344df2[_0x28f4ee(0x2c4)](/url\(#(.*)\)/,_0x28f4ee(0x2e8)+_0x588593[_0x28f4ee(0x336)]+')'));})),_0x12a6d7;}function Ze(_0x3341ee,_0x4e1359){const _0x136073=_0x37525a;var _0x2dfe35;const {defIds:_0x5a8ac5}=_0x4e1359;return!_0x5a8ac5||_0x5a8ac5[_0x136073(0x1cd)]===0x0?_0x3341ee:_0x3341ee['tag']===_0x136073(0x2c0)&&((_0x2dfe35=_0x3341ee[_0x136073(0x289)])!=null&&_0x2dfe35[_0x136073(0x1cd)])?{..._0x3341ee,'children':_0x3341ee[_0x136073(0x289)][_0x136073(0x372)](_0x12bf7e=>typeof _0x12bf7e[_0x136073(0x40d)]['id']=='string'&&_0x5a8ac5&&_0x5a8ac5[_0x136073(0x252)](_0x12bf7e['attrs']['id'])?{..._0x12bf7e,'attrs':{..._0x12bf7e[_0x136073(0x40d)],'id':_0x12bf7e[_0x136073(0x40d)]['id']+_0x4e1359[_0x136073(0x336)]}}:_0x12bf7e)}:_0x3341ee;}function Qe(){const _0x563b7f=_0x37525a;return Math[_0x563b7f(0x385)]()[_0x563b7f(0x38d)](0x24)[_0x563b7f(0x388)](0x2,0x8);}pe[_0x37525a(0x24b)]='UniverIcon';const et={'tag':_0x37525a(0x31c),'attrs':{'xmlns':_0x37525a(0x1b7),'fill':_0x37525a(0x3a2),'viewBox':_0x37525a(0x1de),'width':_0x37525a(0x411),'height':_0x37525a(0x411)},'children':[{'tag':'g','attrs':{'clipPath':_0x37525a(0x2ac)},'children':[{'tag':_0x37525a(0x285),'attrs':{'stroke':_0x37525a(0x314),'d':_0x37525a(0x2ca),'strokeLinecap':_0x37525a(0x37d),'strokeLinejoin':_0x37525a(0x37d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x37525a(0x1fe),'attrs':{'id':_0x37525a(0x319)},'children':[{'tag':'path','attrs':{'fill':_0x37525a(0x273),'d':_0x37525a(0x340)}}]}]}],'defIds':[_0x37525a(0x319)]},xe=A[_0x37525a(0x2f9)](function(_0x229271,_0x1e81a0){const _0x2a486b=_0x37525a;return A[_0x2a486b(0x426)](pe,Object[_0x2a486b(0x20a)]({},_0x229271,{'id':_0x2a486b(0x357),'ref':_0x1e81a0,'icon':et}));});xe['displayName']=_0x37525a(0x244);const tt={'tag':_0x37525a(0x31c),'attrs':{'xmlns':_0x37525a(0x1b7),'fill':_0x37525a(0x3a2),'viewBox':_0x37525a(0x2b3),'width':_0x37525a(0x411),'height':_0x37525a(0x411)},'children':[{'tag':'g','attrs':{'clipPath':_0x37525a(0x2c5)},'children':[{'tag':_0x37525a(0x285),'attrs':{'stroke':_0x37525a(0x314),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x37525a(0x37d),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x37525a(0x2c0),'attrs':{},'children':[{'tag':_0x37525a(0x1fe),'attrs':{'id':_0x37525a(0x383)},'children':[{'tag':_0x37525a(0x285),'attrs':{'fill':'white','d':_0x37525a(0x340),'transform':_0x37525a(0x42d)}}]}]}],'defIds':[_0x37525a(0x383)]},Be=A[_0x37525a(0x2f9)](function(_0x17466a,_0x407758){const _0x3ead7e=_0x37525a;return A[_0x3ead7e(0x426)](pe,Object['assign']({},_0x17466a,{'id':_0x3ead7e(0x2e2),'ref':_0x407758,'icon':tt}));});Be[_0x37525a(0x24b)]=_0x37525a(0x1af);function st(_0x377e79){const _0x1a131f=_0x37525a;switch(_0x377e79){case u['CollaborationStatus'][_0x1a131f(0x455)]:return'collabStatus.offline';case u[_0x1a131f(0x348)][_0x1a131f(0x298)]:return _0x1a131f(0x2e1);case u[_0x1a131f(0x348)][_0x1a131f(0x24d)]:return _0x1a131f(0x430);case u[_0x1a131f(0x348)]['NOT_COLLAB']:return _0x1a131f(0x37f);case u[_0x1a131f(0x348)][_0x1a131f(0x416)]:case u[_0x1a131f(0x348)][_0x1a131f(0x1a7)]:return'collabStatus.syncing';case u[_0x1a131f(0x348)]['SYNCED']:case u[_0x1a131f(0x348)][_0x1a131f(0x3b4)]:return'collabStatus.synced';}}function it(_0x126098){const _0x310fd7=_0x37525a,{status$:_0x318b43}=_0x126098,_0x5cbcd3=O[_0x310fd7(0x23b)](_0x318b43,u[_0x310fd7(0x348)][_0x310fd7(0x245)]),_0x443dc8=O[_0x310fd7(0x428)](a[_0x310fd7(0x1fb)]),_0x5026d3=O[_0x310fd7(0x428)](u[_0x310fd7(0x2f2)]),_0x4c7f64=_0x5cbcd3!==u[_0x310fd7(0x348)][_0x310fd7(0x455)],_0x4b5de3=_0x443dc8['t'](st(_0x5cbcd3)),_0x2e5d11=_0x4c7f64?M['jsx'](Be,{}):M[_0x310fd7(0x26f)](xe,{}),_0x349de8=A[_0x310fd7(0x238)](()=>{const _0x3ee7fe=_0x310fd7;_0x4c7f64||_0x5026d3[_0x3ee7fe(0x1dd)]();},[_0x4c7f64,_0x5026d3]);function _0x21f474(){const _0x30d80e=_0x310fd7;return M[_0x30d80e(0x1ac)](_0x30d80e(0x3e3),{'className':_0x30d80e(0x3b3),'onClick':_0x349de8,'children':[M[_0x30d80e(0x26f)]('div',{'className':p[_0x30d80e(0x327)](_0x30d80e(0x2bc),{'univer-text-green-500':_0x4c7f64,'univer-text-red-500':!_0x4c7f64}),'children':_0x2e5d11}),M[_0x30d80e(0x26f)]('div',{'className':_0x30d80e(0x1b1),'children':_0x4b5de3})]});}return _0x4c7f64?_0x21f474():M[_0x310fd7(0x26f)](p[_0x310fd7(0x33c)],{'title':_0x443dc8['t']('collab-client.tooltip.reconnect'),'children':_0x21f474()});}var nt=Object[_0x37525a(0x268)],rt=(_0x3166e0,_0x1b4b74,_0x16000e,_0x273d7e)=>{const _0xd26704=_0x37525a;for(var _0x5ee4d3=_0x273d7e>0x1?void 0x0:_0x273d7e?nt(_0x1b4b74,_0x16000e):_0x1b4b74,_0x44d155=_0x3166e0[_0xd26704(0x1cd)]-0x1,_0x2a13a7;_0x44d155>=0x0;_0x44d155--)(_0x2a13a7=_0x3166e0[_0x44d155])&&(_0x5ee4d3=_0x2a13a7(_0x5ee4d3)||_0x5ee4d3);return _0x5ee4d3;},K=(_0x4122a4,_0x91f2b7)=>(_0x500488,_0x65cbcc)=>_0x91f2b7(_0x500488,_0x65cbcc,_0x4122a4);exports[_0x37525a(0x3bf)]=class extends a[_0x37525a(0x3cb)]{constructor(_0x294f6b,_0x81d8c1,_0x5dd9ab,_0x3c334e){const _0x2646a3=_0x37525a;super(),_(this,_0x2646a3(0x380),new I[(_0x2646a3(0x40f))](u['CollaborationStatus']['NOT_COLLAB'])),(this[_0x2646a3(0x3cf)]=_0x294f6b,this[_0x2646a3(0x277)]=_0x81d8c1,this[_0x2646a3(0x3c9)]=_0x5dd9ab,this['_uiPartsService']=_0x3c334e,this[_0x2646a3(0x43a)](),this[_0x2646a3(0x259)]());}[_0x37525a(0x259)](){const _0x29bc2c=_0x37525a;this[_0x29bc2c(0x1ad)](this[_0x29bc2c(0x3cf)]['focused$']['pipe'](I['switchMap'](()=>{const _0x3316da=_0x29bc2c,_0x207143=this[_0x3316da(0x3cf)][_0x3316da(0x3c5)]();return _0x207143?this[_0x3316da(0x3c9)][_0x3316da(0x363)](_0x207143[_0x3316da(0x212)]()):I['of'](null);}),I['switchMap'](_0x101602=>_0x101602?_0x101602['status$']:I['of'](u[_0x29bc2c(0x348)][_0x29bc2c(0x245)])))[_0x29bc2c(0x375)](_0x45128f=>{const _0x15791b=_0x29bc2c;this[_0x15791b(0x380)][_0x15791b(0x19d)](_0x45128f);}));}[_0x37525a(0x43a)](){const _0x5eab06=_0x37525a;this['disposeWithMe'](this[_0x5eab06(0x2c3)][_0x5eab06(0x1a6)](O['BuiltInUIPart'][_0x5eab06(0x229)],()=>O['connectInjector'](ot({'status$':this[_0x5eab06(0x380)][_0x5eab06(0x255)]()}),this[_0x5eab06(0x277)])));}},exports[_0x37525a(0x3bf)]=rt([K(0x0,a[_0x37525a(0x2d4)]),K(0x1,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),K(0x2,a[_0x37525a(0x221)](u['CollaborationController'])),K(0x3,O['IUIPartsService'])],exports[_0x37525a(0x3bf)]);function ot(_0x18f4f2){const {status$:_0x9f0c88}=_0x18f4f2;return function(){return M['jsx'](it,{'status$':_0x9f0c88});};}const Oe=a[_0x37525a(0x234)](_0x37525a(0x26b));var at=Object[_0x37525a(0x268)],ct=(_0x53606f,_0x5d245b,_0x22d1e3,_0x56204e)=>{const _0x45e876=_0x37525a;for(var _0x21444f=_0x56204e>0x1?void 0x0:_0x56204e?at(_0x5d245b,_0x22d1e3):_0x5d245b,_0x205247=_0x53606f[_0x45e876(0x1cd)]-0x1,_0x331bd4;_0x205247>=0x0;_0x205247--)(_0x331bd4=_0x53606f[_0x205247])&&(_0x21444f=_0x331bd4(_0x21444f)||_0x21444f);return _0x21444f;},Y=(_0x5cbe4c,_0x29092c)=>(_0x2a15ed,_0xfa0e1b)=>_0x29092c(_0x2a15ed,_0xfa0e1b,_0x5cbe4c);exports[_0x37525a(0x31b)]=class extends a['RxDisposable']{constructor(_0x108bb7,_0x58778f,_0x2937a4,_0x5bcf41,_0x464b44){const _0x12dfdd=_0x37525a;super(),this[_0x12dfdd(0x31e)]=_0x108bb7,this['_logService']=_0x58778f,this['_commandService']=_0x2937a4,this[_0x12dfdd(0x2de)]=_0x5bcf41,_0x464b44?_0x464b44==null||_0x464b44['whenReady']()[_0x12dfdd(0x213)](()=>this[_0x12dfdd(0x41c)]()):(this[_0x12dfdd(0x1ae)]['debug'](_0x12dfdd(0x355),_0x12dfdd(0x264)),this[_0x12dfdd(0x41c)]());}async[_0x37525a(0x41c)](){const _0x3c2907=_0x37525a,_0x40ddcf=this[_0x3c2907(0x31e)][_0x3c2907(0x29f)](_0x3c2907(0x1e1)),_0x5c5545=this[_0x3c2907(0x31e)][_0x3c2907(0x29f)](_0x3c2907(0x236)),_0x5a4132=this[_0x3c2907(0x31e)][_0x3c2907(0x29f)](_0x3c2907(0x30c));if(!_0x40ddcf||!_0x5c5545){this[_0x3c2907(0x1ae)][_0x3c2907(0x413)](_0x3c2907(0x355),_0x3c2907(0x41d));return;}const _0xaf74aa=await this[_0x3c2907(0x2de)][_0x3c2907(0x36f)](_0x40ddcf,Number(_0x5c5545),_0x5a4132);_0xaf74aa&&_0xaf74aa instanceof a[_0x3c2907(0x33b)]&&this[_0x3c2907(0x25a)](_0xaf74aa);}async[_0x37525a(0x25a)](_0x16ad61){const _0x19a1c2=_0x37525a;await this[_0x19a1c2(0x3f3)](_0x16ad61),_0x16ad61[_0x19a1c2(0x2a8)][_0x19a1c2(0x1a0)](I[_0x19a1c2(0x382)](this[_0x19a1c2(0x3b6)]))['subscribe'](_0x3e4049=>{const _0x541ba9=_0x19a1c2;_0x3e4049&&this[_0x541ba9(0x417)](_0x3e4049);}),this[_0x19a1c2(0x31e)][_0x19a1c2(0x233)][_0x19a1c2(0x1a0)](I['takeUntil'](this[_0x19a1c2(0x3b6)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x16ad61));}[_0x37525a(0x417)](_0x37e8bd,_0x35b07b=!0x1){const _0x21d232=_0x37525a,_0x367780=this[_0x21d232(0x31e)][_0x21d232(0x29f)]('subunit');_0x37e8bd[_0x21d232(0x3ec)]()!==_0x367780&&this['_urlService']['setParam'](_0x21d232(0x30c),_0x37e8bd[_0x21d232(0x3ec)](),_0x35b07b);}async[_0x37525a(0x3f3)](_0x429d22){const _0x5bafec=_0x37525a;var _0x301f58;const _0x28efa9=this[_0x5bafec(0x31e)][_0x5bafec(0x29f)](_0x5bafec(0x30c));if(!_0x28efa9||!_0x429d22['getSheetBySheetId'](_0x28efa9)){const _0x3fe148=_0x429d22[_0x5bafec(0x1fd)]()[0x0],_0x4e9423=_0x429d22['getSheetBySheetId'](_0x3fe148);if(!_0x4e9423)return;this[_0x5bafec(0x417)](_0x4e9423,!0x0),await this[_0x5bafec(0x40e)]['executeCommand'](v[_0x5bafec(0x295)]['id'],{'unitId':_0x429d22[_0x5bafec(0x212)](),'subUnitId':_0x3fe148});return;}((_0x301f58=_0x429d22[_0x5bafec(0x3fc)]())==null?void 0x0:_0x301f58[_0x5bafec(0x3ec)]())!==_0x28efa9&&await this[_0x5bafec(0x40e)]['executeCommand'](v[_0x5bafec(0x295)]['id'],{'unitId':_0x429d22['getUnitId'](),'subUnitId':_0x28efa9});}},exports[_0x37525a(0x31b)]=ct([Y(0x0,Oe),Y(0x1,a[_0x37525a(0x1a3)]),Y(0x2,a[_0x37525a(0x37b)]),Y(0x3,a[_0x37525a(0x221)](u[_0x37525a(0x2ef)])),Y(0x4,a[_0x37525a(0x291)](qe[_0x37525a(0x3f0)]))],exports[_0x37525a(0x31b)]);var lt=Object[_0x37525a(0x268)],_t=(_0x277838,_0x24fd2d,_0x395b37,_0x3ffa4e)=>{const _0x1ca8f6=_0x37525a;for(var _0x247967=_0x3ffa4e>0x1?void 0x0:_0x3ffa4e?lt(_0x24fd2d,_0x395b37):_0x24fd2d,_0x34647a=_0x277838[_0x1ca8f6(0x1cd)]-0x1,_0x5b05d6;_0x34647a>=0x0;_0x34647a--)(_0x5b05d6=_0x277838[_0x34647a])&&(_0x247967=_0x5b05d6(_0x247967)||_0x247967);return _0x247967;},De=(_0x2d1fc5,_0x35b576)=>(_0x2c780f,_0x1f34b7)=>_0x35b576(_0x2c780f,_0x1f34b7,_0x2d1fc5);let me=class extends a[_0x37525a(0x38a)]{constructor(_0x14f0e9,_0x281c89){const _0x35fea5=_0x37525a;super(),this['_docClipboardService']=_0x14f0e9,this[_0x35fea5(0x282)]=_0x281c89,this['_init']();}[_0x37525a(0x41c)](){const _0x56e894=_0x37525a,_0x837a63=this;this['disposeWithMe'](this[_0x56e894(0x369)][_0x56e894(0x43e)]({'onBeforePasteImage':async _0x56e619=>{const _0x344bcb=_0x56e894,_0x466516=await _0x837a63[_0x344bcb(0x282)][_0x344bcb(0x2bb)](_0x56e619);return _0x466516?{'source':_0x466516[_0x344bcb(0x359)],'imageSourceType':_0x466516[_0x344bcb(0x192)]}:null;}}));}};me=_t([De(0x0,T[_0x37525a(0x3db)]),De(0x1,ze[_0x37525a(0x20d)])],me);const Ne=['purple.300',_0x37525a(0x347),'green.600','red.300',_0x37525a(0x1ff),'yellow.400'];class Re extends a[_0x37525a(0x3cb)]{constructor(){const _0x4022a4=_0x37525a;super(...arguments),_(this,_0x4022a4(0x25d),new Map()),_(this,_0x4022a4(0x3ef),0x0);}['assignAColorForMemberID'](_0x3a1e76){const _0x363e85=_0x37525a;if(this[_0x363e85(0x25d)][_0x363e85(0x3fa)](_0x3a1e76))return this[_0x363e85(0x25d)][_0x363e85(0x2e7)](_0x3a1e76);const _0x4878fe=Ne[this[_0x363e85(0x3ef)]];return this['_colorIndex']=(this[_0x363e85(0x3ef)]+0x1)%Ne[_0x363e85(0x1cd)],this[_0x363e85(0x25d)]['set'](_0x3a1e76,_0x4878fe),_0x4878fe;}}function Fe(_0x1f7acb){let _0x5e1299='';for(const _0x1374b1 of _0x1f7acb){const {startOffset:_0x36d72f,endOffset:_0x5cf125,isActive:_0x3a6b35,rangeType:_0x35f5d7,segmentId:_0x202c54,segmentPage:_0x1be4a4}=_0x1374b1;_0x5e1299['length']&&(_0x5e1299+=','),_0x5e1299+=_0x36d72f+':'+_0x5cf125+':'+(_0x3a6b35?'1':'0')+':'+_0x35f5d7+':'+_0x202c54+':'+_0x1be4a4;}return _0x5e1299;}function ht(_0x4fd39c){const _0x42b479=_0x37525a,_0x553f8c=_0x4fd39c[_0x42b479(0x1d3)](','),_0x511c8f=[];for(const _0x599f87 of _0x553f8c){const [_0x25ff4d,_0x1fab2b,_0xc9f29,_0x2dd56b,_0x43e7e0,_0x28de77]=_0x599f87[_0x42b479(0x1d3)](':');_0x511c8f[_0x42b479(0x2b7)]({'startOffset':Number(_0x25ff4d),'endOffset':Number(_0x1fab2b),'collapsed':_0x25ff4d===_0x1fab2b,'isActive':_0xc9f29==='1','rangeType':_0x2dd56b===a['DOC_RANGE_TYPE'][_0x42b479(0x20f)]?a['DOC_RANGE_TYPE'][_0x42b479(0x20f)]:a[_0x42b479(0x2ff)][_0x42b479(0x374)],'segmentId':typeof _0x43e7e0==_0x42b479(0x211)?String(_0x43e7e0):'','segmentPage':Number(_0x28de77!=null?_0x28de77:-0x1)});}return _0x511c8f['some'](_0x5bc78f=>_0x5bc78f['isActive'])||(_0x511c8f[0x0][_0x42b479(0x389)]=!0x0),_0x511c8f;}class be extends a[_0x37525a(0x38a)]{constructor(){const _0x2799a8=_0x37525a;super(...arguments),_(this,_0x2799a8(0x41a),new I[(_0x2799a8(0x40f))](null)),_(this,'collabCursorState$',this[_0x2799a8(0x41a)][_0x2799a8(0x255)]());}[_0x37525a(0x294)](_0xbd7b3b){const _0x556f50=_0x37525a,{unitID:_0x2a1434,memberID:_0x37fe1e,textRanges:_0x29cdaf}=_0xbd7b3b,_0x2017d9=Fe(_0x29cdaf);if(_0x2017d9==='')return;const _0xe2f718={'unitID':_0x2a1434,'memberID':_0x37fe1e,'selection':_0x2017d9};this[_0x556f50(0x41a)][_0x556f50(0x19d)](_0xe2f718);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x38bd88,_0xf059d7,_0x3d5dea,_0x25d5bb)=>{const _0x57747a=_0x37525a;for(var _0x7c7e2f=_0x25d5bb>0x1?void 0x0:_0x25d5bb?ut(_0xf059d7,_0x3d5dea):_0xf059d7,_0x1d938f=_0x38bd88[_0x57747a(0x1cd)]-0x1,_0x2d6b86;_0x1d938f>=0x0;_0x1d938f--)(_0x2d6b86=_0x38bd88[_0x1d938f])&&(_0x7c7e2f=_0x2d6b86(_0x7c7e2f)||_0x7c7e2f);return _0x7c7e2f;},U=(_0x1f2c87,_0x50fe8f)=>(_0x48d783,_0x230079)=>_0x50fe8f(_0x48d783,_0x230079,_0x1f2c87);const St=0x12c,dt=0x64;let ve=class extends a[_0x37525a(0x38a)]{constructor(_0x210663,_0x605bf3,_0x19d9e6,_0x566f69,_0x484553,_0xa195b9,_0x5d2ddb,_0x25953c,_0x22f4cd){const _0x4eccfa=_0x37525a;super(),_(this,'_online',!0x1),_(this,_0x4eccfa(0x41c),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this[_0x4eccfa(0x422)][_0x4eccfa(0x255)]()),_(this,_0x4eccfa(0x1ca),new I[(_0x4eccfa(0x40f))]([])),_(this,_0x4eccfa(0x222),this[_0x4eccfa(0x1ca)][_0x4eccfa(0x1a0)](I['debounceTime'](St))),_(this,_0x4eccfa(0x365),a[_0x4eccfa(0x3f6)](_0x5822fa=>{const _0x210f64=_0x4eccfa,_0x2034d8={'eventID':g[_0x210f64(0x1b5)][_0x210f64(0x3c0)],'data':{'unitID':this[_0x210f64(0x42f)],'memberID':this[_0x210f64(0x3ac)][_0x210f64(0x30d)](),'selection':Fe(_0x5822fa)}};this[_0x210f64(0x3ac)]['send'](_0x2034d8,this[_0x210f64(0x42f)]);},dt)),(this[_0x4eccfa(0x42f)]=_0x210663,this['_session']=_0x605bf3,this[_0x4eccfa(0x277)]=_0x19d9e6,this[_0x4eccfa(0x393)]=_0x566f69,this['_memberService']=_0x484553,this[_0x4eccfa(0x263)]=_0xa195b9,this['_transformService']=_0x5d2ddb,this[_0x4eccfa(0x3cf)]=_0x25953c,this[_0x4eccfa(0x40e)]=_0x22f4cd);}get[_0x37525a(0x34a)](){const _0x5bc85d=_0x37525a;return this[_0x5bc85d(0x422)]['getValue']();}get['roomMembers'](){const _0x570150=_0x37525a;return this[_0x570150(0x1ca)][_0x570150(0x243)]();}['dispose'](){const _0x2939a3=_0x37525a;super['dispose'](),this[_0x2939a3(0x422)][_0x2939a3(0x19d)](new Map()),this[_0x2939a3(0x422)][_0x2939a3(0x24f)](),this[_0x2939a3(0x1ca)]['next']([]),this['_roomMembers$'][_0x2939a3(0x24f)]();}[_0x37525a(0x3b8)](){const _0x4a4418=_0x37525a;this[_0x4a4418(0x41c)]||(this[_0x4a4418(0x41c)]=!0x0,this['_session'][_0x4a4418(0x2a9)][_0x4a4418(0x1a0)](I[_0x4a4418(0x382)](this[_0x4a4418(0x3b6)]))[_0x4a4418(0x375)](_0x44e111=>{const _0x5d6cac=_0x4a4418;_0x44e111===u[_0x5d6cac(0x302)][_0x5d6cac(0x281)]?this[_0x5d6cac(0x3d7)]():this[_0x5d6cac(0x454)]();}),this['_session'][_0x4a4418(0x2f5)][_0x4a4418(0x1a0)](I[_0x4a4418(0x382)](this['dispose$']))[_0x4a4418(0x375)](_0x164af7=>{const _0x576df7=_0x4a4418,_0x5124de=_0x164af7[_0x576df7(0x30f)];_0x5124de===g[_0x576df7(0x1b5)][_0x576df7(0x3c0)]&&this['_onCursorUpdate'](_0x164af7),_0x5124de===g[_0x576df7(0x1b5)][_0x576df7(0x2f1)]&&this[_0x576df7(0x18c)](_0x164af7);}),this['disposeWithMe'](this['_commandService'][_0x4a4418(0x1ba)](_0x88f14b=>{const _0x4db939=_0x4a4418,_0x577e90=_0x88f14b[_0x4db939(0x1db)];_0x577e90!=null&&this[_0x4db939(0x360)]&&_0x88f14b['id']===V[_0x4db939(0x250)]['id']&&_0x577e90['unitId']===this[_0x4db939(0x42f)]&&_0x577e90[_0x4db939(0x18b)]===!0x1&&_0x577e90[_0x4db939(0x299)][_0x4db939(0x1cd)]>0x0&&this['_updateLocalCursor'](_0x577e90[_0x4db939(0x299)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x4a4418(0x1a0)](I['takeUntil'](this[_0x4a4418(0x3b6)]))[_0x4a4418(0x375)](_0x330a2e=>{const _0x7fe610=_0x4a4418;if((_0x330a2e==null?void 0x0:_0x330a2e['unitID'])!==this['unitID'])return;const _0x109975={'eventID':g[_0x7fe610(0x1b5)][_0x7fe610(0x3c0)],'data':_0x330a2e};this['_onCursorUpdate'](_0x109975);}),this[_0x4a4418(0x1ad)](this['_commandService']['onCommandExecuted'](_0x35a927=>{const _0x407b2b=_0x4a4418;if(_0x35a927['params']==null)return;const _0x14b281=_0x35a927[_0x407b2b(0x1db)];if(_0x35a927['id']!==V['RichTextEditingMutation']['id']||_0x14b281[_0x407b2b(0x1c7)]!==this['unitID'])return;const _0x4b2215={'id':'doc.mutation.rich-text-editing','params':_0x14b281},_0x2c8989=this[_0x407b2b(0x34a)];for(const [_0x5ef6cf,_0x474fa9]of _0x2c8989){const _0x391ac8={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x407b2b(0x42f)],'actions':null,'textRanges':_0x474fa9[_0x407b2b(0x299)]}},_0x20bf0e=this[_0x407b2b(0x1fa)][_0x407b2b(0x225)](_0x4b2215,_0x391ac8,!0x1);if(g[_0x407b2b(0x308)](_0x20bf0e))throw _0x20bf0e[_0x407b2b(0x262)];_0x2c8989['set'](_0x5ef6cf,{..._0x474fa9,'ranges':_0x20bf0e['m2Prime'][_0x407b2b(0x1db)][_0x407b2b(0x349)]});}queueMicrotask(()=>{const _0x233659=_0x407b2b;this[_0x233659(0x422)][_0x233659(0x19d)](_0x2c8989);});})));}[_0x37525a(0x3ca)](_0x27711d){const _0x46add2=_0x37525a;var _0x130ab,_0x35a2ef;const {memberID:_0xe465e9,selection:_0x6f41c4}=_0x27711d[_0x46add2(0x284)],_0x3a4a32=ht(_0x6f41c4),_0x2332f1=(_0x35a2ef=(_0x130ab=this[_0x46add2(0x242)][_0x46add2(0x2d5)](this[_0x46add2(0x42f)],_0xe465e9))==null?void 0x0:_0x130ab[_0x46add2(0x358)])!=null?_0x35a2ef:'Unknown\x20user',_0x24459b={'color':this[_0x46add2(0x393)][_0x46add2(0x19e)](_0xe465e9),'name':_0x2332f1,'ranges':_0x3a4a32},_0x2829d5=this[_0x46add2(0x34a)];_0x2829d5[_0x46add2(0x3d1)](_0xe465e9,_0x24459b),this[_0x46add2(0x422)][_0x46add2(0x19d)](_0x2829d5);}[_0x37525a(0x18c)](_0x40b152){const _0x3efb5d=_0x37525a,{memberID:_0x15ac6e}=_0x40b152['data'],_0x2ba300=this['cursorInfo'];_0x2ba300[_0x3efb5d(0x3ed)](_0x15ac6e),this[_0x3efb5d(0x422)]['next'](_0x2ba300);}[_0x37525a(0x3d7)](){const _0x28269e=_0x37525a;var _0x16cb22;if(this[_0x28269e(0x360)]=!0x0,((_0x16cb22=this['_univerInstanceService'][_0x28269e(0x3c5)]())==null?void 0x0:_0x16cb22[_0x28269e(0x212)]())!==this['unitID'])return;const _0x1d93b3=this[_0x28269e(0x277)][_0x28269e(0x2e7)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x28269e(0x412)](_0x1d93b3)&&_0x1d93b3[_0x28269e(0x1cd)]>0x0&&this['_updateLocalCursor'](_0x1d93b3);}['_toggleOffline'](){const _0x1a0e41=_0x37525a;this[_0x1a0e41(0x360)]=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x37525a(0x300)])),U(0x3,a[_0x37525a(0x221)](Re)),U(0x4,a[_0x37525a(0x221)](u['MemberService'])),U(0x5,a[_0x37525a(0x221)](be)),U(0x6,g['ITransformService']),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x37525a(0x37b)])],ve);var ft=Object[_0x37525a(0x268)],mt=(_0x563701,_0x5ef1c9,_0x225f5e,_0x3e01ae)=>{for(var _0x35b776=_0x3e01ae>0x1?void 0x0:_0x3e01ae?ft(_0x5ef1c9,_0x225f5e):_0x5ef1c9,_0x3f187a=_0x563701['length']-0x1,_0xfedc09;_0x3f187a>=0x0;_0x3f187a--)(_0xfedc09=_0x563701[_0x3f187a])&&(_0x35b776=_0xfedc09(_0x35b776)||_0x35b776);return _0x35b776;},w=(_0x24c892,_0x4df508)=>(_0x2b7749,_0xccac64)=>_0x4df508(_0x2b7749,_0xccac64,_0x24c892);const vt=0x12c,gt=0x64,Et=()=>{let _0x23d70a=[],_0x5b23d2=!0x1;return _0x37f986=>{const _0x112f90=_0x415c;_0x23d70a[_0x112f90(0x2b7)](_0x37f986),_0x5b23d2||(_0x5b23d2=!0x0,setTimeout(()=>{const _0x7ee10a=_0x112f90;_0x23d70a[_0x7ee10a(0x34f)](_0x17c67b=>_0x17c67b()),_0x23d70a=[],_0x5b23d2=!0x1;}));};};function _0x415c(_0x3c8c58,_0x54dda3){_0x3c8c58=_0x3c8c58-0x189;const _0x5977a8=_0x5977();let _0x415c72=_0x5977a8[_0x3c8c58];return _0x415c72;}let ge=class extends a[_0x37525a(0x38a)]{constructor(_0x94fa7,_0x27f377,_0x190505,_0x139089,_0x261139,_0x4c67c9,_0x341345,_0x18ca0f){const _0x7e7bb8=_0x37525a;super(),_(this,'_online',!0x1),_(this,_0x7e7bb8(0x41c),!0x1),_(this,'_cursorInfo$',new I[(_0x7e7bb8(0x40f))](new Map())),_(this,'cursorInfo$',this[_0x7e7bb8(0x422)]['asObservable']()),_(this,_0x7e7bb8(0x1ca),new I[(_0x7e7bb8(0x40f))]([])),_(this,_0x7e7bb8(0x222),this[_0x7e7bb8(0x1ca)][_0x7e7bb8(0x1a0)](I[_0x7e7bb8(0x3ad)](vt))),_(this,_0x7e7bb8(0x365),a[_0x7e7bb8(0x3f6)]((_0x54d963,_0xe17fc2)=>{const _0x1799cb=_0x7e7bb8,_0x25f003={'eventID':g[_0x1799cb(0x1b5)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1799cb(0x42f)],'memberID':this['_session'][_0x1799cb(0x30d)](),'selection':B[_0x1799cb(0x3e4)](_0x54d963,_0xe17fc2['range'])}};this['_session'][_0x1799cb(0x267)](_0x25f003,this[_0x1799cb(0x42f)]);},gt)),(this[_0x7e7bb8(0x42f)]=_0x94fa7,this[_0x7e7bb8(0x3ac)]=_0x27f377,this[_0x7e7bb8(0x277)]=_0x190505,this['_colorAssignService']=_0x139089,this[_0x7e7bb8(0x242)]=_0x261139,this[_0x7e7bb8(0x3cf)]=_0x4c67c9,this[_0x7e7bb8(0x40e)]=_0x341345,this[_0x7e7bb8(0x2b9)]=_0x18ca0f);}get[_0x37525a(0x34a)](){const _0x21c034=_0x37525a;return this[_0x21c034(0x422)][_0x21c034(0x243)]();}get[_0x37525a(0x21b)](){const _0x1c7666=_0x37525a;return this[_0x1c7666(0x1ca)][_0x1c7666(0x243)]();}[_0x37525a(0x37c)](){const _0x4e5624=_0x37525a;super[_0x4e5624(0x37c)](),this[_0x4e5624(0x422)][_0x4e5624(0x19d)](new Map()),this[_0x4e5624(0x422)][_0x4e5624(0x24f)](),this[_0x4e5624(0x1ca)]['next']([]),this[_0x4e5624(0x1ca)][_0x4e5624(0x24f)]();}[_0x37525a(0x3b8)](){const _0x22b8a=_0x37525a;this[_0x22b8a(0x41c)]||(this[_0x22b8a(0x41c)]=!0x0,this['_session'][_0x22b8a(0x2a9)][_0x22b8a(0x1a0)](I[_0x22b8a(0x382)](this[_0x22b8a(0x3b6)]))['subscribe'](_0x45a9a6=>{const _0x55b37a=_0x22b8a;_0x45a9a6===u[_0x55b37a(0x302)]['ONLINE']?this['_toggleOnline']():this[_0x55b37a(0x454)]();}),this[_0x22b8a(0x3ac)]['event$'][_0x22b8a(0x1a0)](I[_0x22b8a(0x382)](this[_0x22b8a(0x3b6)]))[_0x22b8a(0x375)](_0x13ad3c=>{const _0x5cc2e7=_0x22b8a,_0x2f703b=_0x13ad3c['eventID'];_0x2f703b===g[_0x5cc2e7(0x1b5)][_0x5cc2e7(0x3c0)]&&this[_0x5cc2e7(0x3ca)](_0x13ad3c),_0x2f703b===g[_0x5cc2e7(0x1b5)][_0x5cc2e7(0x2f1)]&&this['_onCursorDelete'](_0x13ad3c);}),this[_0x22b8a(0x2a1)](),this[_0x22b8a(0x1ad)](this['_commandService'][_0x22b8a(0x1ba)](_0x34de5f=>{const _0x533fca=_0x22b8a;if(this[_0x533fca(0x360)]&&_0x34de5f['id']===v[_0x533fca(0x1e7)]['id']&&_0x34de5f['params'][_0x533fca(0x1c7)]===this['unitID']){const _0x3faf1b=_0x34de5f[_0x533fca(0x1db)];this[_0x533fca(0x365)](_0x3faf1b[_0x533fca(0x405)],_0x3faf1b[_0x533fca(0x3ce)][0x0]);}})));}['_onCursorUpdate'](_0x2bf38e){const _0x34534f=_0x37525a;var _0x3dd103,_0x179b48;const {memberID:_0x3c5f74,selection:_0x1ba7c1}=_0x2bf38e[_0x34534f(0x284)],{sheetName:_0x1f1ece,range:_0x1a2a68}=B[_0x34534f(0x42b)](_0x1ba7c1),_0x9a2d13={'name':(_0x179b48=(_0x3dd103=this[_0x34534f(0x242)]['getMember'](this[_0x34534f(0x42f)],_0x3c5f74))==null?void 0x0:_0x3dd103[_0x34534f(0x358)])!=null?_0x179b48:_0x34534f(0x36c),'range':this[_0x34534f(0x384)](_0x1f1ece,_0x1a2a68),'sheetID':_0x1f1ece,'color':this[_0x34534f(0x393)][_0x34534f(0x19e)](_0x3c5f74),'selection':_0x1ba7c1},_0xaa0c6c=this['cursorInfo'];_0xaa0c6c[_0x34534f(0x3d1)](_0x3c5f74,_0x9a2d13),this[_0x34534f(0x422)][_0x34534f(0x19d)](_0xaa0c6c);}[_0x37525a(0x18c)](_0x25a00b){const _0x4b2a53=_0x37525a,{memberID:_0x5ed0bc}=_0x25a00b[_0x4b2a53(0x284)],_0x18d8ea=this[_0x4b2a53(0x34a)];_0x18d8ea[_0x4b2a53(0x3ed)](_0x5ed0bc),this[_0x4b2a53(0x422)][_0x4b2a53(0x19d)](_0x18d8ea);}[_0x37525a(0x384)](_0x4ac0bc,_0x253a0d){const _0x826dbd=_0x37525a;var _0x1a714f,_0xf064e2;const _0x587dfb=(_0xf064e2=(_0x1a714f=this['_univerInstanceService'][_0x826dbd(0x32b)](this[_0x826dbd(0x42f)]))==null?void 0x0:_0x1a714f[_0x826dbd(0x333)](_0x4ac0bc))==null?void 0x0:_0xf064e2[_0x826dbd(0x35e)]();return(_0x587dfb==null?void 0x0:_0x587dfb[_0x826dbd(0x414)](_0x21c2fe=>a[_0x826dbd(0x304)][_0x826dbd(0x3d8)](_0x21c2fe,_0x253a0d)))||_0x253a0d;}[_0x37525a(0x2a1)](){const _0x5a914a=_0x37525a,_0x55fb3b=new a[(_0x5a914a(0x283))](),_0x539da1=Et(),_0x3cd634=()=>{const _0x25728=_0x5a914a;_0x55fb3b[_0x25728(0x37c)]();const _0x8fff0a=(_0x5ead4e,_0x891534,_0x27fcd0,_0x2aae8d)=>{const _0x325722=_0x25728;let _0x13e9d3=[];switch(_0x5ead4e['id']){case v[_0x325722(0x3ee)][_0x325722(0x1c9)]:{_0x13e9d3=v[_0x325722(0x27f)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x3d2)]:{_0x13e9d3=v[_0x325722(0x421)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)]['InsertColCommandId']:{_0x13e9d3=v[_0x325722(0x215)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x1be)]:{_0x13e9d3=v[_0x325722(0x3a6)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x214)]:{_0x13e9d3=v[_0x325722(0x256)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x1e8)]:{_0x13e9d3=v[_0x325722(0x2d2)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x3cc)]:{_0x13e9d3=v[_0x325722(0x2fe)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x3ff)]:{_0x13e9d3=v['handleIRemoveCol'](_0x5ead4e,_0x2aae8d);break;}case v['EffectRefRangId'][_0x325722(0x39a)]:{_0x13e9d3=v['handleIRemoveRow'](_0x5ead4e,_0x2aae8d);break;}}const _0x5e158c=v['runRefRangeMutations'](_0x13e9d3,_0x2aae8d),_0x1d6e1b=this[_0x325722(0x34a)]['get'](_0x891534);if(_0x1d6e1b&&_0x5e158c){const _0x3e14e7={..._0x1d6e1b,'range':_0x5e158c};this[_0x325722(0x34a)][_0x325722(0x3d1)](_0x891534,_0x3e14e7),_0x539da1(()=>{const _0x49e07a=_0x325722,_0x2d3b42=this[_0x49e07a(0x2b9)][_0x49e07a(0x3c1)](_0x5e158c,_0x3e5914=>(_0x2d3b42[_0x49e07a(0x37c)](),_0x8fff0a(_0x3e5914,_0x891534,_0x27fcd0,_0x5e158c)));_0x55fb3b[_0x49e07a(0x276)](_0x2d3b42);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x25728(0x34f)]((_0x570cba,_0x2b9863)=>{const _0x289366=_0x25728,{range:_0x4688ab,sheetID:_0x4046f1}=_0x570cba,_0x26cccf=this[_0x289366(0x2b9)][_0x289366(0x3c1)](_0x4688ab,_0x220752=>(_0x26cccf[_0x289366(0x37c)](),_0x8fff0a(_0x220752,_0x2b9863,_0x4046f1,_0x4688ab)));_0x55fb3b['add'](_0x26cccf);});};this['disposeWithMe'](a[_0x5a914a(0x1cb)](this['_cursorInfo$']['subscribe'](()=>{_0x3cd634();})));}['_toggleOnline'](){const _0x57a2ac=_0x37525a;var _0x106b34,_0x450bfd;if(this[_0x57a2ac(0x360)]=!0x0,((_0x106b34=this[_0x57a2ac(0x3cf)][_0x57a2ac(0x3c5)]())==null?void 0x0:_0x106b34[_0x57a2ac(0x212)]())!==this['unitID'])return;const _0x29a8c2=(_0x450bfd=this[_0x57a2ac(0x277)][_0x57a2ac(0x2e7)](v['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x450bfd[0x0],_0x1e25ee=this['_univerInstanceService'][_0x57a2ac(0x1ed)](a['UniverInstanceType'][_0x57a2ac(0x22d)])[_0x57a2ac(0x3fc)]();_0x29a8c2&&_0x1e25ee&&this[_0x57a2ac(0x365)](_0x1e25ee[_0x57a2ac(0x3ec)](),_0x29a8c2);}[_0x37525a(0x454)](){const _0x350b76=_0x37525a;this[_0x350b76(0x360)]=!0x1;}};ge=mt([w(0x2,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),w(0x3,a[_0x37525a(0x221)](Re)),w(0x4,a[_0x37525a(0x221)](u[_0x37525a(0x1b9)])),w(0x5,a[_0x37525a(0x2d4)]),w(0x6,a[_0x37525a(0x37b)]),w(0x7,a[_0x37525a(0x221)](v[_0x37525a(0x191)]))],ge);var Ct=Object[_0x37525a(0x268)],Tt=(_0x15c7c0,_0x50c2d5,_0x8a92b6,_0x2abf82)=>{const _0x4cfa2d=_0x37525a;for(var _0x25bf86=_0x2abf82>0x1?void 0x0:_0x2abf82?Ct(_0x50c2d5,_0x8a92b6):_0x50c2d5,_0x11d7eb=_0x15c7c0[_0x4cfa2d(0x1cd)]-0x1,_0x248589;_0x11d7eb>=0x0;_0x11d7eb--)(_0x248589=_0x15c7c0[_0x11d7eb])&&(_0x25bf86=_0x248589(_0x25bf86)||_0x25bf86);return _0x25bf86;},ce=(_0x2b18fd,_0x5c4f22)=>(_0x571852,_0x1895f7)=>_0x5c4f22(_0x571852,_0x1895f7,_0x2b18fd);let F=class extends a['RxDisposable']{constructor(_0x46b271,_0x520a77,_0x32153f){const _0x332db9=_0x37525a;super(),_(this,_0x332db9(0x23a),new Map()),_(this,_0x332db9(0x34d),new I[(_0x332db9(0x397))]()),(this[_0x332db9(0x3cf)]=_0x46b271,this['_injector']=_0x520a77,this[_0x332db9(0x246)]=_0x32153f,this[_0x332db9(0x41c)]());}['dispose'](){const _0x5ce422=_0x37525a;super[_0x5ce422(0x37c)](),this[_0x5ce422(0x34d)][_0x5ce422(0x24f)](),this[_0x5ce422(0x23a)][_0x5ce422(0x34f)](_0x4a3f7e=>_0x4a3f7e['dispose']());}[_0x37525a(0x3c6)](_0x2d703d){const _0x46ba8c=_0x37525a;return this[_0x46ba8c(0x23a)]['has'](_0x2d703d)?this['_entities']['get'](_0x2d703d)['cursorInfo$']:this[_0x46ba8c(0x34d)][_0x46ba8c(0x1a0)](I[_0x46ba8c(0x307)](_0x2bf9e5=>_0x2bf9e5[_0x46ba8c(0x42f)]===_0x2d703d),I[_0x46ba8c(0x3dc)](_0x3a8e6c=>_0x3a8e6c['cursorInfo$']));}[_0x37525a(0x41c)](){const _0x3228ce=_0x37525a;this['_univerInstanceService'][_0x3228ce(0x248)](a[_0x3228ce(0x409)]['UNIVER_SHEET'])[_0x3228ce(0x1a0)](I[_0x3228ce(0x382)](this['dispose$']))[_0x3228ce(0x375)](async _0x1f720e=>{const _0x824662=_0x3228ce,_0x349893=_0x1f720e[_0x824662(0x212)](),_0x2ad450=await this['_startSheetCollabCursor'](_0x349893);this[_0x824662(0x34d)][_0x824662(0x19d)](_0x2ad450),this['_entities']['set'](_0x349893,_0x2ad450);}),this[_0x3228ce(0x3cf)][_0x3228ce(0x248)](a[_0x3228ce(0x409)]['UNIVER_DOC'])['pipe'](I[_0x3228ce(0x382)](this[_0x3228ce(0x3b6)]))[_0x3228ce(0x1a0)](I['filter'](_0x3b4a01=>!_0x3b4a01[_0x3228ce(0x212)]()['startsWith']('__')))[_0x3228ce(0x375)](async _0x35d97d=>{const _0x48935c=_0x3228ce,_0x3a9201=_0x35d97d[_0x48935c(0x212)](),_0x2e1969=await this['_startDocCollabCursor'](_0x3a9201);this[_0x48935c(0x34d)][_0x48935c(0x19d)](_0x2e1969),this['_entities'][_0x48935c(0x3d1)](_0x3a9201,_0x2e1969);}),I[_0x3228ce(0x270)](this['_univerInstanceService'][_0x3228ce(0x353)](a[_0x3228ce(0x409)][_0x3228ce(0x279)]),this[_0x3228ce(0x3cf)][_0x3228ce(0x353)](a[_0x3228ce(0x409)]['UNIVER_SHEET']))[_0x3228ce(0x1a0)](I[_0x3228ce(0x382)](this[_0x3228ce(0x3b6)]))[_0x3228ce(0x375)](_0x3ebda5=>{const _0x641482=_0x3228ce,_0x2ac63f=_0x3ebda5['getUnitId'](),_0x19d4cd=this['_entities'][_0x641482(0x2e7)](_0x2ac63f);_0x19d4cd&&(_0x19d4cd['dispose'](),this[_0x641482(0x23a)][_0x641482(0x3ed)](_0x2ac63f));});}async[_0x37525a(0x1b0)](_0xc24040){const _0xc3e5cf=_0x37525a,_0x3c5751=await this[_0xc3e5cf(0x246)][_0xc3e5cf(0x32d)](_0xc24040),_0x253788=this[_0xc3e5cf(0x277)]['createInstance'](ge,_0xc24040,_0x3c5751);return _0x253788[_0xc3e5cf(0x3b8)](),_0x253788;}async['_startDocCollabCursor'](_0x185a90){const _0x4f9628=_0x37525a,_0x395596=await this[_0x4f9628(0x246)][_0x4f9628(0x32d)](_0x185a90),_0x486038=this[_0x4f9628(0x277)][_0x4f9628(0x447)](ve,_0x185a90,_0x395596);return _0x486038[_0x4f9628(0x3b8)](),_0x486038;}};F=Tt([ce(0x0,a[_0x37525a(0x2d4)]),ce(0x1,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),ce(0x2,a['Inject'](u[_0x37525a(0x2f2)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x1c17d6,_0x2cc56e){const _0x1cb406=_0x37525a;let {radius:_0xcb8c91,width:_0x972596,height:_0x219a37}=_0x2cc56e;_0xcb8c91=_0xcb8c91!=null?_0xcb8c91:0x0,_0x972596=_0x972596!=null?_0x972596:0x1e,_0x219a37=_0x219a37!=null?_0x219a37:0x1e;let _0x4c6f17=0x0,_0x27247d=0x0,_0x56e505=0x0;_0x4c6f17=_0x27247d=_0x56e505=Math[_0x1cb406(0x351)](_0xcb8c91,_0x972596/0x2,_0x219a37/0x2),_0x1c17d6[_0x1cb406(0x292)](),_0x1c17d6[_0x1cb406(0x3d5)](_0x4c6f17,0x0),_0x1c17d6['lineTo'](_0x972596-_0x27247d,0x0),_0x1c17d6[_0x1cb406(0x356)](_0x972596-_0x27247d,_0x27247d,_0x27247d,Math['PI']*0x3/0x2,0x0,!0x1),_0x1c17d6['lineTo'](_0x972596,_0x219a37-_0x56e505),_0x1c17d6[_0x1cb406(0x356)](_0x972596-_0x56e505,_0x219a37-_0x56e505,_0x56e505,0x0,Math['PI']/0x2,!0x1),_0x1c17d6[_0x1cb406(0x2f6)](0x0,_0x219a37),_0x1c17d6[_0x1cb406(0x2f6)](0x0,_0x4c6f17),_0x1c17d6[_0x1cb406(0x356)](_0x4c6f17,_0x4c6f17,_0x4c6f17,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1c17d6[_0x1cb406(0x38f)](),_0x2cc56e[_0x1cb406(0x401)]&&(_0x1c17d6[_0x1cb406(0x193)](),_0x1c17d6[_0x1cb406(0x445)]=_0x2cc56e[_0x1cb406(0x401)],_0x2cc56e[_0x1cb406(0x21e)]==='evenodd'?_0x1c17d6['fill'](_0x1cb406(0x366)):_0x1c17d6[_0x1cb406(0x401)](),_0x1c17d6[_0x1cb406(0x440)]());}class re extends C['Shape']{constructor(_0x13c7c8,_0x435d72){const _0x1ecc11=_0x37525a;super(_0x13c7c8,_0x435d72),_(this,_0x1ecc11(0x23c)),_(this,_0x1ecc11(0x437)),(this[_0x1ecc11(0x23c)]=_0x435d72==null?void 0x0:_0x435d72[_0x1ecc11(0x23c)],this['text']=_0x435d72==null?void 0x0:_0x435d72[_0x1ecc11(0x437)]);}static['drawWith'](_0x473f50,_0x12ea36){const _0x3552f0=_0x37525a,{text:_0x17876a,color:_0x2aba2f}=_0x12ea36;_0x473f50[_0x3552f0(0x193)](),_0x473f50['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1b9463=_0x473f50[_0x3552f0(0x361)](_0x17876a)[_0x3552f0(0x24a)],_0x5d2ec6=Math['min'](_0x1b9463+0x2*le,Ue);Ot(_0x473f50,{'height':X,'radius':0x4,'width':_0x5d2ec6,'fill':_0x2aba2f}),_0x473f50['fillStyle']=_0x3552f0(0x23d);const _0x5ab6c3=le,_0x5475d7=X-pt,_0x5750eb=Ue-0x2*le;if(_0x1b9463>_0x5750eb){let _0x72d774='',_0x4b4e24=0x0;for(const _0x5ebeea of _0x17876a){const _0x528547=_0x473f50[_0x3552f0(0x361)](_0x5ebeea)[_0x3552f0(0x24a)];if(_0x4b4e24+_0x528547<=_0x5750eb-_0x473f50[_0x3552f0(0x361)]('...')['width'])_0x72d774+=_0x5ebeea,_0x4b4e24+=_0x528547;else{_0x72d774+=_0x3552f0(0x2e9);break;}}_0x473f50[_0x3552f0(0x2e5)](_0x72d774,_0x5ab6c3,_0x5475d7);}else _0x473f50[_0x3552f0(0x2e5)](_0x17876a,_0x5ab6c3,_0x5475d7);_0x473f50['restore']();}[_0x37525a(0x3a3)](_0x1f7e71){re['drawWith'](_0x1f7e71,this);}}const _e=_0x37525a(0x1f1),Rt='collab-text-range-',bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x37525a(0x438);class Le{constructor(_0x40ca13,_0x5cb355,_0x3f8f9d,_0x45ada0){const _0x45e8b9=_0x37525a;_(this,_0x45e8b9(0x3d6),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x45e8b9(0x44a),null),_(this,'_hideTimer',null),_(this,_0x45e8b9(0x439),null),(this[_0x45e8b9(0x345)]=_0x40ca13,this['_scene']=_0x5cb355,this[_0x45e8b9(0x19a)]=_0x3f8f9d,this[_0x45e8b9(0x3d0)]=_0x45ada0,this[_0x45e8b9(0x429)]());}set[_0x37525a(0x3f4)](_0x16e6fd){const _0xdca589=_0x37525a;_0x16e6fd?(this['_anchorDot']&&this[_0xdca589(0x44a)][_0xdca589(0x42e)](),this['_textBubble']&&this[_0xdca589(0x404)][_0xdca589(0x1f0)]()):(this[_0xdca589(0x44a)]&&this['_anchorDot'][_0xdca589(0x1f0)](),this['_textBubble']&&this[_0xdca589(0x404)]['hide']());}[_0x37525a(0x37c)](){const _0xcc5126=_0x37525a;for(const _0x5494b8 of this[_0xcc5126(0x3d6)])_0x5494b8[_0xcc5126(0x37c)]();this['_textBubble']&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this[_0xcc5126(0x1d2)]&&this['_anchor'][_0xcc5126(0x37c)](),this[_0xcc5126(0x439)]&&this[_0xcc5126(0x439)]();}[_0x37525a(0x429)](){const _0x281f12=_0x37525a;var _0x3f813c;const {_docSkeleton:_0x16be20,_document:_0x428c11}=this,{color:_0x90a0ad,name:_0x3b6f20,ranges:_0x4d6b93}=this['_cursor'],_0x1cb62c=_0x428c11[_0x281f12(0x231)](),{docsLeft:_0x173e19,docsTop:_0x1f4a1f}=_0x1cb62c,_0x500ddb=new T[(_0x281f12(0x418))](_0x1cb62c,_0x16be20);for(const {startOffset:_0x541582,endOffset:_0x983536,rangeType:_0x9e02e8,segmentId:_0x4f6e8e,segmentPage:_0x16e592,collapsed:_0x18858d,isActive:_0x3430f9}of _0x4d6b93){const _0x39b479=_0x16be20[_0x281f12(0x2f7)](_0x541582,!0x0,_0x4f6e8e,_0x16e592);let _0x30f914=_0x16be20[_0x281f12(0x2f7)](_0x983536,!0x0,_0x4f6e8e,_0x16e592);if(_0x30f914==null&&(_0x30f914=_0x16be20[_0x281f12(0x2f7)](_0x983536-0x1,!0x1,_0x4f6e8e,_0x16e592)),_0x3430f9){const {contentBoxPointGroup:_0x53a820}=_0x500ddb['getRangePointData'](_0x30f914,_0x30f914);if(_0x53a820[_0x281f12(0x1cd)]===0x0)continue;this[_0x281f12(0x362)](_0x90a0ad,_0x53a820,_0x173e19,_0x1f4a1f,_0x3b6f20),this[_0x281f12(0x439)]=this[_0x281f12(0x21f)]();}if(_0x39b479&&_0x30f914){if(_0x9e02e8===a[_0x281f12(0x2ff)][_0x281f12(0x374)]){const _0x5c8113=new T['NodePositionConvertToRectRange'](_0x1cb62c,_0x16be20),{pointGroup:_0x4e3bbf}=(_0x3f813c=_0x5c8113[_0x281f12(0x330)](_0x39b479,_0x30f914))!=null?_0x3f813c:{};if(_0x4e3bbf==null||_0x4e3bbf[_0x281f12(0x1cd)]===0x0)continue;this[_0x281f12(0x2f4)](_0x90a0ad,_0x4e3bbf,_0x173e19,_0x1f4a1f);}else{if(!_0x18858d){const {borderBoxPointGroup:_0x4a4c9f}=_0x500ddb[_0x281f12(0x330)](_0x39b479,_0x30f914);if(_0x4a4c9f[_0x281f12(0x1cd)]===0x0)continue;this['_drawTextRange'](_0x90a0ad,_0x4a4c9f,_0x173e19,_0x1f4a1f);}}}}}[_0x37525a(0x362)](_0x835e11,_0x4969d9,_0x2428a2,_0x48f004,_0xeb4ddb){const _0x21ec8d=_0x37525a,_0x47b923=this[_0x21ec8d(0x338)](_0x4969d9),{left:_0x15f379,top:_0x20998e,height:_0x532324}=_0x47b923,_0x13b4b3=this['_getScale'](),_0x42b138=Nt/_0x13b4b3,_0x5138d9=new C['Rect'](_e+a[_0x21ec8d(0x198)](H),{'left':_0x15f379+_0x2428a2-_0x42b138,'top':_0x20998e+_0x48f004,'height':_0x532324,'width':Dt,'fill':_0x835e11||C['getColor'](a[_0x21ec8d(0x29c)][_0x21ec8d(0x2cf)],0x0),'strokeWidth':_0x42b138,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x5138d9,this[_0x21ec8d(0x2bf)][_0x21ec8d(0x30a)](_0x5138d9,T[_0x21ec8d(0x239)]);const _0x4489a0=new C[(_0x21ec8d(0x2b8))](_e+a[_0x21ec8d(0x198)](H),{'left':_0x15f379+_0x2428a2-_0x42b138,'top':_0x20998e+_0x48f004-he/0x2,'height':he,'width':he,'fill':_0x835e11||C[_0x21ec8d(0x1c4)](a[_0x21ec8d(0x29c)][_0x21ec8d(0x2cf)],0x0),'strokeWidth':0x0,'stroke':_0x835e11||C['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x21ec8d(0x44a)]=_0x4489a0,this[_0x21ec8d(0x2bf)][_0x21ec8d(0x30a)](_0x4489a0,T[_0x21ec8d(0x239)]);const _0x32d574=new re(_e+a[_0x21ec8d(0x198)](H),{'left':_0x15f379+_0x2428a2-_0x42b138,'top':_0x20998e+_0x48f004-X,'text':_0xeb4ddb,'color':_0x835e11});this[_0x21ec8d(0x404)]=_0x32d574,this['_scene'][_0x21ec8d(0x30a)](_0x32d574,T[_0x21ec8d(0x239)]),this[_0x21ec8d(0x3f4)]=!0x1;}[_0x37525a(0x21f)](){const _0x25d2c0=_0x37525a,_0x55582d=this['_anchor'][_0x25d2c0(0x3a9)][_0x25d2c0(0x441)](()=>{const _0x987790=_0x25d2c0;this[_0x987790(0x3f4)]=!0x0;}),_0x539e53=this[_0x25d2c0(0x1d2)][_0x25d2c0(0x40c)]['subscribeEvent'](()=>{const _0x10b29f=_0x25d2c0;this[_0x10b29f(0x425)]&&clearTimeout(this[_0x10b29f(0x425)]),this[_0x10b29f(0x425)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x2f5eb4=_0x25d2c0;_0x55582d[_0x2f5eb4(0x2ab)](),_0x539e53[_0x2f5eb4(0x2ab)]();};}[_0x37525a(0x207)](_0x109bef,_0x7ae132,_0x5b5fa1,_0x431f29){const _0x5f0ff9=_0x37525a,_0x35e8d8=new a['ColorKit'](_0x109bef)[_0x5f0ff9(0x274)](0.2)[_0x5f0ff9(0x1f6)](),_0x5c00ac=new C['RegularPolygon'](Rt+a[_0x5f0ff9(0x198)](H),{'pointsGroup':_0x7ae132,'fill':_0x35e8d8||C[_0x5f0ff9(0x1c4)](a[_0x5f0ff9(0x29c)][_0x5f0ff9(0x2cf)],0.2),'left':_0x5b5fa1,'top':_0x431f29,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f0ff9(0x3d6)]['push'](_0x5c00ac),this[_0x5f0ff9(0x2bf)][_0x5f0ff9(0x30a)](_0x5c00ac,T['TEXT_RANGE_LAYER_INDEX']);}[_0x37525a(0x2f4)](_0x6bc36e,_0x116069,_0x5eca70,_0x4a0755){const _0x101b7f=_0x37525a,_0x2a351b=new a['ColorKit'](_0x6bc36e)[_0x101b7f(0x274)](0.2)['toRgbString'](),_0x77a966=new C['RegularPolygon'](bt+a[_0x101b7f(0x198)](H),{'pointsGroup':_0x116069,'fill':_0x2a351b||C[_0x101b7f(0x1c4)](a['COLORS'][_0x101b7f(0x2cf)],0.2),'left':_0x5eca70,'top':_0x4a0755,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x101b7f(0x3d6)]['push'](_0x77a966),this[_0x101b7f(0x2bf)][_0x101b7f(0x30a)](_0x77a966,T['TEXT_RANGE_LAYER_INDEX']);}[_0x37525a(0x338)](_0x488da1){const _0x3eeacc=_0x488da1[0x0],_0x2824e4=_0x3eeacc[0x0],_0x4a6c08=_0x3eeacc[0x2],{x:_0x343522,y:_0x2efc4f}=_0x2824e4,{x:_0x302e55,y:_0x2abcef}=_0x4a6c08;return{'left':_0x343522,'top':_0x2efc4f,'width':_0x302e55-_0x343522,'height':_0x2abcef-_0x2efc4f};}[_0x37525a(0x1a2)](){const _0x1ade69=_0x37525a,{scaleX:_0x48d6e1,scaleY:_0x2b1ceb}=this[_0x1ade69(0x2bf)]['getAncestorScale']();return Math['max'](_0x48d6e1,_0x2b1ceb);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x43058d,_0x1001f3,_0x3d9bbc,_0x399455)=>{for(var _0x54c817=_0x399455>0x1?void 0x0:_0x399455?Lt(_0x1001f3,_0x3d9bbc):_0x1001f3,_0x3795ce=_0x43058d['length']-0x1,_0x3591dc;_0x3795ce>=0x0;_0x3795ce--)(_0x3591dc=_0x43058d[_0x3795ce])&&(_0x54c817=_0x3591dc(_0x54c817)||_0x54c817);return _0x54c817;},q=(_0x47caa8,_0x584f23)=>(_0x547c87,_0x510601)=>_0x584f23(_0x547c87,_0x510601,_0x47caa8);let Ee=class extends a[_0x37525a(0x38a)]{constructor(_0x591dad,_0x1c9d29,_0x320261,_0x2d315a,_0x28b697){const _0x11fc0b=_0x37525a;super(),_(this,_0x11fc0b(0x1eb),[]),_(this,_0x11fc0b(0x247),[]),(this[_0x11fc0b(0x1e6)]=_0x591dad,this[_0x11fc0b(0x3e2)]=_0x1c9d29,this['_collabCursorController']=_0x320261,this[_0x11fc0b(0x40e)]=_0x2d315a,this['_themeService']=_0x28b697,this[_0x11fc0b(0x41c)]());}[_0x37525a(0x41c)](){const _0x27a986=_0x37525a,_0x3a2bd3=this[_0x27a986(0x1e6)][_0x27a986(0x1c7)],_0x127ebe=this[_0x27a986(0x3e2)];this[_0x27a986(0x1ad)](I[_0x27a986(0x2f8)]([this[_0x27a986(0x217)]['getCollabCursors$'](_0x3a2bd3),this['_themeService']['currentTheme$']])['pipe']($[_0x27a986(0x372)](([_0x37e0cd,_0x74fd45])=>({'skeleton':_0x127ebe[_0x27a986(0x1b2)](),'cursors':[..._0x37e0cd[_0x27a986(0x3ab)]()][_0x27a986(0x36e)](_0x518ee8=>({..._0x518ee8,'color':this[_0x27a986(0x371)]['getColorFromTheme'](_0x518ee8[_0x27a986(0x23c)])}))})))[_0x27a986(0x375)](_0x386b8c=>{const _0x5687e0=_0x27a986;if(this['_removeCollabCursors'](),_0x386b8c){const {skeleton:_0x45e7b1,cursors:_0x493455}=_0x386b8c;this[_0x5687e0(0x377)](_0x45e7b1,_0x493455);}})),this[_0x27a986(0x410)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x43896d,_0x48751f){const _0x246df8=_0x37525a,{scene:_0xd9676e,mainComponent:_0x3bbd0e}=this[_0x246df8(0x1e6)],_0x56429e=_0x48751f['map'](_0x1a8ac1=>new Le(_0x1a8ac1,_0xd9676e,_0x43896d,_0x3bbd0e));this['_cursorShapes']=_0x56429e,this[_0x246df8(0x247)]=_0x48751f;}[_0x37525a(0x1bb)](){const _0x2293ab=_0x37525a;this['_removeCollabCursors']();const {scene:_0x1a6458,mainComponent:_0x25298c}=this['_context'],_0x19e98b=this['_docSkeletonManagerService'][_0x2293ab(0x1b2)](),_0x58829c=this[_0x2293ab(0x247)][_0x2293ab(0x372)](_0x3eae43=>new Le(_0x3eae43,_0x1a6458,_0x19e98b,_0x25298c));this[_0x2293ab(0x1eb)]=_0x58829c;}[_0x37525a(0x28c)](){const _0x306eef=_0x37525a;this[_0x306eef(0x1eb)][_0x306eef(0x34f)](_0x29525c=>_0x29525c[_0x306eef(0x37c)]()),this['_cursorShapes']=[];}[_0x37525a(0x2a6)](){const _0x561ebe=_0x37525a,_0x3c754e=[T[_0x561ebe(0x364)]['id']];this[_0x561ebe(0x1ad)](this[_0x561ebe(0x40e)][_0x561ebe(0x1ba)](_0x1cce59=>{const _0x4142d9=_0x561ebe;_0x3c754e['includes'](_0x1cce59['id'])&&_0x1cce59[_0x4142d9(0x1db)][_0x4142d9(0x1c7)]===this[_0x4142d9(0x1e6)][_0x4142d9(0x1c7)]&&this['_refreshCollabCursors']();}));}[_0x37525a(0x410)](){const _0x48915d=_0x37525a;this[_0x48915d(0x1ad)](a[_0x48915d(0x3bc)](this[_0x48915d(0x1e6)]['engine']['onTransformChange$'])[_0x48915d(0x1a0)]($[_0x48915d(0x307)](_0x3b9365=>_0x3b9365[_0x48915d(0x236)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x48915d(0x309)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x37525a(0x221)](V[_0x37525a(0x2be)])),q(0x2,a[_0x37525a(0x221)](F)),q(0x3,a[_0x37525a(0x37b)]),q(0x4,a[_0x37525a(0x221)](a[_0x37525a(0x312)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x37525a(0x29d)]{constructor(_0xf5c5ca,_0x31ee6c){const _0x5f6c0=_0x37525a;super(_0xf5c5ca,_0x31ee6c),_(this,_0x5f6c0(0x237)),_(this,_0x5f6c0(0x33d),!0x1),_(this,_0x5f6c0(0x1cc)),_(this,_0x5f6c0(0x2b4),''),_(this,_0x5f6c0(0x22b),_0x5f6c0(0x280)),_(this,'_backgroundColor'),(_0x31ee6c&&this[_0x5f6c0(0x3f5)](_0x31ee6c),this['onPointerEnter$'][_0x5f6c0(0x441)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5f6c0(0x40c)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x37525a(0x3f5)](_0x5d8e31){const _0x1cf414=_0x37525a;var _0x445e1d,_0xd586db,_0x58ab7d,_0x3c4de5,_0x520c1e,_0x147169;this['_color']=(_0x445e1d=_0x5d8e31[_0x1cf414(0x23c)])!=null?_0x445e1d:this[_0x1cf414(0x237)],this[_0x1cf414(0x33d)]=(_0xd586db=_0x5d8e31[_0x1cf414(0x433)])!=null?_0xd586db:this[_0x1cf414(0x33d)],this[_0x1cf414(0x1cc)]=(_0x58ab7d=_0x5d8e31[_0x1cf414(0x2aa)])!=null?_0x58ab7d:this[_0x1cf414(0x1cc)],this[_0x1cf414(0x2b4)]=(_0x3c4de5=_0x5d8e31[_0x1cf414(0x358)])!=null?_0x3c4de5:this[_0x1cf414(0x2b4)],this['_labelPosition']=(_0x520c1e=_0x5d8e31[_0x1cf414(0x395)])!=null?_0x520c1e:this[_0x1cf414(0x22b)],this['_backgroundColor']=(_0x147169=_0x5d8e31['backgroundColor'])!=null?_0x147169:this['_backgroundColor'],this[_0x1cf414(0x442)]({'width':_0x5d8e31[_0x1cf414(0x24a)],'height':_0x5d8e31['height']});}[_0x37525a(0x2f0)](_0x4f8fe6){const _0xce91a4=_0x37525a,{row:_0x2e5f92,column:_0x5cfac6}=_0x4f8fe6;if(_0x2e5f92>=this[_0xce91a4(0x1cc)][_0xce91a4(0x20e)]&&_0x2e5f92<=this[_0xce91a4(0x1cc)]['endRow']&&_0x5cfac6>=this[_0xce91a4(0x1cc)][_0xce91a4(0x2c7)]&&_0x5cfac6<=this[_0xce91a4(0x1cc)][_0xce91a4(0x3e9)]){this[_0xce91a4(0x3f5)]({'hovered':!0x0});return;}this[_0xce91a4(0x3f5)]({'hovered':!0x1});}[_0x37525a(0x3e0)](_0x19f748){return!0x1;}[_0x37525a(0x3a3)](_0x1680bc){const _0x51cbab=_0x37525a;C['Rect'][_0x51cbab(0x392)](_0x1680bc,{'width':this[_0x51cbab(0x24a)],'height':this[_0x51cbab(0x205)],'strokeWidth':Pt,'stroke':this[_0x51cbab(0x237)],'evented':!0x1,'fill':this[_0x51cbab(0x189)]}),this['_hovered']&&(_0x1680bc[_0x51cbab(0x193)](),_0x1680bc[_0x51cbab(0x194)](0x1,0x0,0x0,0x1,this[_0x51cbab(0x24a)],this[_0x51cbab(0x22b)]===_0x51cbab(0x28b)?0x0:-X),re[_0x51cbab(0x392)](_0x1680bc,{'text':this[_0x51cbab(0x2b4)],'color':this[_0x51cbab(0x237)]}),_0x1680bc[_0x51cbab(0x440)]());}}var wt=Object[_0x37525a(0x268)],yt=(_0x28f369,_0x280fd1,_0xff0d39,_0x3b84b0)=>{const _0x3ee433=_0x37525a;for(var _0x27e1f7=_0x3b84b0>0x1?void 0x0:_0x3b84b0?wt(_0x280fd1,_0xff0d39):_0x280fd1,_0x2962ea=_0x28f369[_0x3ee433(0x1cd)]-0x1,_0x543b2b;_0x2962ea>=0x0;_0x2962ea--)(_0x543b2b=_0x28f369[_0x2962ea])&&(_0x27e1f7=_0x543b2b(_0x27e1f7)||_0x27e1f7);return _0x27e1f7;},ue=(_0x5e76c4,_0x4cb0ff)=>(_0x7cbbd9,_0x57e68b)=>_0x4cb0ff(_0x7cbbd9,_0x57e68b,_0x5e76c4);const $t=0x1389;let Ce=class extends a[_0x37525a(0x38a)]{constructor(_0x56e747,_0xb8b70b,_0x4a4053,_0x3cffc4){const _0x4d0c9c=_0x37525a;super(),_(this,_0x4d0c9c(0x247),new Set()),_(this,_0x4d0c9c(0x2db),null),(this['_context']=_0x56e747,this[_0x4d0c9c(0x18a)]=_0xb8b70b,this[_0x4d0c9c(0x217)]=_0x4a4053,this[_0x4d0c9c(0x371)]=_0x3cffc4,this[_0x4d0c9c(0x41c)]());}[_0x37525a(0x41c)](){const _0x44b492=_0x37525a;this[_0x44b492(0x18a)][_0x44b492(0x1bc)][_0x44b492(0x1a0)]($[_0x44b492(0x382)](this[_0x44b492(0x3b6)]),$[_0x44b492(0x3dc)](_0x59618e=>{const _0x27e320=_0x44b492;if(_0x59618e){const _0x532539=_0x59618e[_0x27e320(0x18f)];return I[_0x27e320(0x2f8)](this[_0x27e320(0x217)][_0x27e320(0x3c6)](this[_0x27e320(0x1e6)][_0x27e320(0x1c7)]),this[_0x27e320(0x371)][_0x27e320(0x2e3)])['pipe']($['map'](([_0x3fce27,_0x17db92])=>{const _0x18bf25=_0x27e320,_0x30f8fa=new Map();return _0x3fce27[_0x18bf25(0x34f)]((_0x44950f,_0x234c4f)=>{const _0x5ce60e=_0x18bf25;if(_0x44950f[_0x5ce60e(0x2f3)]===_0x532539){const _0x353365={..._0x44950f};_0x353365[_0x5ce60e(0x23c)]=this[_0x5ce60e(0x371)][_0x5ce60e(0x2ae)](_0x44950f['color']),_0x30f8fa[_0x5ce60e(0x3d1)](_0x234c4f,_0x353365);}}),{'skeleton':_0x59618e,'cursors':_0x30f8fa};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x44b492(0x375)](({skeleton:_0x45a8e8,cursors:_0x296886})=>{const _0x509735=_0x44b492;this[_0x509735(0x28c)](),_0x45a8e8&&this[_0x509735(0x377)](_0x45a8e8,_0x296886);}),this['_sheetSkeletonManagerService'][_0x44b492(0x1bc)][_0x44b492(0x375)](_0xfc8dfe=>{const _0x365e6c=_0x44b492;if(_0xfc8dfe==null)return;const {skeleton:_0x1cc708}=_0xfc8dfe,{scene:_0x2c84c0}=this['_context'];_0x2c84c0[_0x365e6c(0x41e)]['subscribeEvent'](a[_0x365e6c(0x3f6)](_0x3575e1=>{const _0x36da49=_0x365e6c;var _0x598445,_0x4c5ab5;const {offsetX:_0x2f9f71,offsetY:_0x2436de}=_0x3575e1,{x:_0x44072f,y:_0x5d4736}=_0x2c84c0[_0x36da49(0x451)](C[_0x36da49(0x1f9)][_0x36da49(0x321)]([_0x2f9f71,_0x2436de])),{scaleX:_0x548288,scaleY:_0x2a36fc}=_0x2c84c0[_0x36da49(0x1ce)](),_0x42b9ca=_0x2c84c0[_0x36da49(0x39b)](C['SHEET_VIEWPORT_KEY'][_0x36da49(0x43f)]),_0x5d5c4d=_0x2c84c0['getVpScrollXYInfoByPosToVp'](C[_0x36da49(0x1f9)][_0x36da49(0x321)]([_0x44072f,_0x5d4736]),_0x42b9ca),_0x2775fd=_0x1cc708[_0x36da49(0x443)](_0x2f9f71,_0x2436de,_0x548288,_0x2a36fc,_0x5d5c4d);((_0x598445=this[_0x36da49(0x2db)])==null?void 0x0:_0x598445[_0x36da49(0x286)])===_0x2775fd[_0x36da49(0x286)]&&((_0x4c5ab5=this['_lastPointer'])==null?void 0x0:_0x4c5ab5[_0x36da49(0x34b)])===_0x2775fd[_0x36da49(0x34b)]||this['_cursors'][_0x36da49(0x34f)](_0x195892=>{const _0x560a24=_0x36da49;_0x195892[_0x560a24(0x2f0)](_0x2775fd);});},0x64));});}[_0x37525a(0x377)](_0x56bab2,_0x26bffc){const _0x160a2b=_0x37525a;var _0x2d773b;const _0x2cc1c8=(_0x2d773b=this['_sheetSkeletonManagerService'][_0x160a2b(0x32c)]())==null?void 0x0:_0x2d773b[_0x160a2b(0x42a)];if(!_0x2cc1c8)return;const _0x25b5e0=this['_getSheetObject']();if(!_0x25b5e0)return;this[_0x160a2b(0x247)][_0x160a2b(0x34f)](_0x1d0c12=>{const _0x40eafa=_0x160a2b;_0x1d0c12[_0x40eafa(0x3d4)]();});const {scene:_0x59e1a6}=_0x25b5e0,_0x45e332=xt(Array[_0x160a2b(0x3a7)](_0x26bffc[_0x160a2b(0x3ab)]()))['map'](_0x58eb16=>{const _0x3f10a8=_0x160a2b,{color:_0xc705ed,range:_0x44d5e4,name:_0x1246ec,selection:_0x46d8c4,sheetID:_0x40afe6}=_0x58eb16,{startColumn:_0xce91ca,startRow:_0x9ab2ae,endColumn:_0x2dcf3d,endRow:_0x51be99}=_0x44d5e4,_0x15f08b=J[_0x3f10a8(0x2ea)](_0x9ab2ae,_0xce91ca,_0x59e1a6,_0x2cc1c8),_0x1210ef=J[_0x3f10a8(0x2ea)](_0x51be99,_0x2dcf3d,_0x59e1a6,_0x2cc1c8),{columnHeaderHeightAndMarginTop:_0xf603a0}=_0x2cc1c8,{startX:_0x2f2ee3,startY:_0x38f188}=_0x15f08b,{endX:_0x2f7df2,endY:_0x4e4e54}=_0x1210ef,_0x5111f3=_0x2f7df2-_0x2f2ee3,_0x31cb03=_0x4e4e54-_0x38f188,_0x41a22c={'labelPosition':_0x38f188-_0xf603a0>=X?_0x3f10a8(0x280):'bottom','sheetID':_0x40afe6,'range':_0x44d5e4,'color':_0xc705ed,'name':_0x1246ec,'selection':_0x46d8c4,'left':_0x2f2ee3,'top':_0x38f188,'width':_0x5111f3,'height':_0x31cb03,'evented':!0x1,'zIndex':$t};return new je(_0x1246ec,_0x41a22c);});_0x59e1a6[_0x160a2b(0x2c9)](_0x45e332,At),this[_0x160a2b(0x247)]=new Set(_0x45e332);}['_removeCollabCursors'](){const _0x2c187a=_0x37525a;var _0x4d1ffd;(_0x4d1ffd=this[_0x2c187a(0x247)])==null||_0x4d1ffd[_0x2c187a(0x34f)](_0x439bc9=>_0x439bc9[_0x2c187a(0x37c)]());}[_0x37525a(0x444)](){const _0x4f78c9=_0x37525a;return J['getSheetObject'](this[_0x4f78c9(0x1e6)][_0x4f78c9(0x1e1)],this['_context']);}};Ce=yt([ue(0x1,a[_0x37525a(0x221)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x37525a(0x221)](F)),ue(0x3,a[_0x37525a(0x221)](a[_0x37525a(0x312)]))],Ce);function xt(_0x304e89){const _0x3f1658=_0x37525a,_0x274a02=new Map();return _0x304e89[_0x3f1658(0x34f)](_0x5b3c82=>{const _0x43b635=_0x3f1658;if(_0x274a02[_0x43b635(0x3fa)](_0x5b3c82[_0x43b635(0x3cd)])){const _0xca059b=_0x274a02[_0x43b635(0x2e7)](_0x5b3c82[_0x43b635(0x3cd)]);_0xca059b[_0x43b635(0x358)]+=',\x20'+_0x5b3c82[_0x43b635(0x358)];}else _0x274a02[_0x43b635(0x3d1)](_0x5b3c82[_0x43b635(0x3cd)],_0x5b3c82);}),Array[_0x3f1658(0x3a7)](_0x274a02['values']());}var Bt=Object[_0x37525a(0x268)],Ft=(_0x12b0a5,_0x9eeeb,_0x49418e,_0x3a965e)=>{const _0x46dea3=_0x37525a;for(var _0x356778=_0x3a965e>0x1?void 0x0:_0x3a965e?Bt(_0x9eeeb,_0x49418e):_0x9eeeb,_0x3f4867=_0x12b0a5[_0x46dea3(0x1cd)]-0x1,_0x5056ff;_0x3f4867>=0x0;_0x3f4867--)(_0x5056ff=_0x12b0a5[_0x3f4867])&&(_0x356778=_0x5056ff(_0x356778)||_0x356778);return _0x356778;},y=(_0x415d15,_0x1ffd75)=>(_0x587db8,_0x168989)=>_0x1ffd75(_0x587db8,_0x168989,_0x415d15);let Z=class extends a[_0x37525a(0x3cb)]{constructor(_0x585f1d,_0x169ab9,_0x4c232d,_0x14d24d,_0x55bc38,_0x4bdab2){const _0xa5b23f=_0x37525a;super(),this[_0xa5b23f(0x33f)]=_0x585f1d,this['_localCacheService']=_0x169ab9,this[_0xa5b23f(0x2ba)]=_0x4c232d,this[_0xa5b23f(0x44b)]=_0x14d24d,this['_notificationService']=_0x55bc38,this['_localeService']=_0x4bdab2,this['_setupBeforeClosingHandler'](),this[_0xa5b23f(0x316)]();}[_0x37525a(0x310)](){const _0x434643=_0x37525a;this['disposeWithMe'](this[_0x434643(0x33f)][_0x434643(0x2fc)](()=>{const _0x289265=_0x434643;if(this[_0x289265(0x3a1)][_0x289265(0x38e)][_0x289265(0x227)])return this[_0x289265(0x43c)]['t'](_0x289265(0x204));}));}[_0x37525a(0x316)](){const _0x2c68cc=_0x37525a;this[_0x2c68cc(0x1ad)](this[_0x2c68cc(0x2ba)][_0x2c68cc(0x2f5)][_0x2c68cc(0x375)](_0x285977=>{const _0x4c914a=_0x2c68cc;_0x285977['id']===u['CollaborationUIEventId'][_0x4c914a(0x43b)]&&this[_0x4c914a(0x44b)][_0x4c914a(0x1f0)]({'type':p[_0x4c914a(0x224)][_0x4c914a(0x41b)],'content':this[_0x4c914a(0x43c)]['t'](_0x4c914a(0x2fd))}),_0x285977['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x4c914a(0x44b)][_0x4c914a(0x1f0)]({'type':p[_0x4c914a(0x224)][_0x4c914a(0x41b)],'content':this[_0x4c914a(0x43c)]['t'](_0x4c914a(0x3f1))}),_0x285977['id']===u[_0x4c914a(0x3a5)][_0x4c914a(0x34e)]&&this[_0x4c914a(0x315)][_0x4c914a(0x1f0)]({'title':this['_localeService']['t'](_0x4c914a(0x220)),'content':this[_0x4c914a(0x43c)]['t'](_0x4c914a(0x2ec)),'type':'error','duration':0x0}),_0x285977['id']===u[_0x4c914a(0x3a5)][_0x4c914a(0x298)]&&this[_0x4c914a(0x44b)]['show']({'type':p[_0x4c914a(0x224)][_0x4c914a(0x3df)],'content':this[_0x4c914a(0x43c)]['t']('collaboration.closeRoom')+'('+_0x285977[_0x4c914a(0x284)]+')'}),_0x285977['id']===u[_0x4c914a(0x3a5)][_0x4c914a(0x209)]&&this[_0x4c914a(0x44b)]['show']({'type':p[_0x4c914a(0x224)]['Warning'],'content':this[_0x4c914a(0x43c)]['t'](_0x285977[_0x4c914a(0x284)]||'')}),_0x285977['id']===u[_0x4c914a(0x3a5)][_0x4c914a(0x326)]&&this['_messageService'][_0x4c914a(0x1f0)]({'type':p[_0x4c914a(0x224)][_0x4c914a(0x41b)],'content':this[_0x4c914a(0x43c)]['t'](_0x4c914a(0x23e))}),_0x285977['id']===u[_0x4c914a(0x3a5)]['SOCKET_FAILED']&&this['_messageService']['show']({'type':p['MessageType']['Error'],'content':this[_0x4c914a(0x43c)]['t']('session.connection-failed')}),_0x285977['id']===u[_0x4c914a(0x3a5)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4c914a(0x44b)][_0x4c914a(0x1f0)]({'type':p[_0x4c914a(0x224)][_0x4c914a(0x3df)],'content':this[_0x4c914a(0x43c)]['t'](_0x4c914a(0x44c))});}));}};Z=Ft([y(0x0,O[_0x37525a(0x27b)]),y(0x1,u[_0x37525a(0x1ab)]),y(0x2,a['Inject'](u[_0x37525a(0x2cd)])),y(0x3,O[_0x37525a(0x2b2)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x37525a(0x1fb)]))],Z);var jt=Object[_0x37525a(0x268)],kt=(_0x6ce135,_0x4ca09f,_0x2251b5,_0x1a3fda)=>{const _0x554519=_0x37525a;for(var _0xb2b31a=_0x1a3fda>0x1?void 0x0:_0x1a3fda?jt(_0x4ca09f,_0x2251b5):_0x4ca09f,_0x50865a=_0x6ce135[_0x554519(0x1cd)]-0x1,_0x148693;_0x50865a>=0x0;_0x50865a--)(_0x148693=_0x6ce135[_0x50865a])&&(_0xb2b31a=_0x148693(_0xb2b31a)||_0xb2b31a);return _0xb2b31a;},z=(_0xbe9405,_0x50b959)=>(_0x3f9604,_0x4cf8ea)=>_0x50b959(_0x3f9604,_0x4cf8ea,_0xbe9405);let Q=class extends a[_0x37525a(0x3cb)]{constructor(_0x5a4ce6,_0x182221,_0x35da2b,_0x4bda3b){const _0x2a7084=_0x37525a;super(),_(this,_0x2a7084(0x2d8)),(this['_injector']=_0x5a4ce6,this[_0x2a7084(0x1c1)]=_0x182221,this[_0x2a7084(0x1ae)]=_0x35da2b,this[_0x2a7084(0x3b2)]=_0x4bda3b,this[_0x2a7084(0x41c)]());}[_0x37525a(0x41c)](){const _0x1d4238=_0x37525a;this[_0x1d4238(0x1f3)](),this[_0x1d4238(0x24e)](),this[_0x1d4238(0x2d9)](),this[_0x1d4238(0x19c)]();}['_initUserListener'](){const _0x2dc8e8=_0x37525a;this[_0x2dc8e8(0x1ad)](this[_0x2dc8e8(0x3b2)]['socket$'][_0x2dc8e8(0x375)](_0x727c61=>{const _0x2a793c=_0x2dc8e8;this['_memberID']=_0x727c61==null?void 0x0:_0x727c61[_0x2a793c(0x1b6)];}));}['_initWindowErrorListener'](){const _0x4dcd04=_0x37525a,_0x10d4a2=_0x22f3c8=>{const _0x9061dc=_0x415c;var _0x507817;this[_0x9061dc(0x1c8)](_0x9061dc(0x262),'[Window\x20Error]:\x20'+_0x22f3c8[_0x9061dc(0x1d7)]+_0x9061dc(0x344)+_0x22f3c8[_0x9061dc(0x1a1)]+':'+_0x22f3c8[_0x9061dc(0x2a5)]+':'+_0x22f3c8[_0x9061dc(0x2a0)]+'\x0a'+(((_0x507817=_0x22f3c8[_0x9061dc(0x262)])==null?void 0x0:_0x507817[_0x9061dc(0x2e6)])||''));};window['addEventListener'](_0x4dcd04(0x262),_0x10d4a2),this[_0x4dcd04(0x1ad)](()=>{const _0x4327e3=_0x4dcd04;window[_0x4327e3(0x3fb)](_0x4327e3(0x262),_0x10d4a2);});}[_0x37525a(0x24e)](){const _0x148242=_0x37525a,_0x3a8fb=_0x3cce8c=>{const _0x594098=_0x415c;this[_0x594098(0x1c8)](_0x594098(0x262),_0x594098(0x424)+_0x3cce8c['reason']);};window['addEventListener'](_0x148242(0x376),_0x3a8fb),this['disposeWithMe'](()=>{const _0x2217ab=_0x148242;window['removeEventListener'](_0x2217ab(0x376),_0x3a8fb);});}[_0x37525a(0x2d9)](){const _0x2cb977=_0x37525a,_0x48b56a=this[_0x2cb977(0x1ae)][_0x2cb977(0x262)]['bind'](this[_0x2cb977(0x1ae)]);this[_0x2cb977(0x1ae)][_0x2cb977(0x262)]=(..._0x387a78)=>{const _0x1cf9a7=_0x2cb977,_0xef5979=_0x387a78['map'](_0x46de8b=>_0x46de8b instanceof Error?_0x46de8b[_0x1cf9a7(0x1d7)]+'\x0a'+_0x46de8b[_0x1cf9a7(0x2e6)]:String(_0x46de8b))[_0x1cf9a7(0x28d)]('\x20');this[_0x1cf9a7(0x1c8)]('error',_0x1cf9a7(0x290)+_0xef5979),_0x48b56a(..._0x387a78);},this['disposeWithMe'](()=>{const _0x37bcd9=_0x2cb977;this['_logService'][_0x37bcd9(0x262)]=_0x48b56a;});}[_0x37525a(0x1c8)](_0x1fa7b4,_0x2b0cee){const _0x1a33be=_0x37525a;try{const _0x1d2bee={'userId':this[_0x1a33be(0x2d8)],'logLabel':_0x1fa7b4,'content':_0x2b0cee};this['_httpService']['post'](_0x1a33be(0x323),{'body':_0x1d2bee})[_0x1a33be(0x201)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),z(0x1,a[_0x37525a(0x221)](x[_0x37525a(0x2d7)])),z(0x2,a[_0x37525a(0x1a3)]),z(0x3,a[_0x37525a(0x221)](u[_0x37525a(0x2f2)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x37525a(0x268)],Wt=(_0x11ae83,_0x2d9004,_0x30d596,_0x18ebf7)=>{for(var _0x3bc8eb=_0x18ebf7>0x1?void 0x0:_0x18ebf7?Ht(_0x2d9004,_0x30d596):_0x2d9004,_0x4b2940=_0x11ae83['length']-0x1,_0x42f682;_0x4b2940>=0x0;_0x4b2940--)(_0x42f682=_0x11ae83[_0x4b2940])&&(_0x3bc8eb=_0x42f682(_0x3bc8eb)||_0x3bc8eb);return _0x3bc8eb;},Ae=(_0x22a71a,_0x16ef7d)=>(_0x20b699,_0x56823a)=>_0x16ef7d(_0x20b699,_0x56823a,_0x22a71a);let ee=class{constructor(_0xd37807,_0x57eaed){const _0xd999f1=_0x37525a;this[_0xd999f1(0x1fa)]=_0xd37807,this[_0xd999f1(0x339)]=_0x57eaed;}[_0x37525a(0x38c)](_0x3b5420){const _0x1a567b=_0x37525a;this[_0x1a567b(0x44d)](_0x3b5420),this[_0x1a567b(0x2b1)](_0x3b5420);}[_0x37525a(0x303)](_0x416f4b){const _0x54216a=_0x37525a,{unitID:_0x46a150}=_0x416f4b,_0x1ee9ac=this[_0x54216a(0x339)][_0x54216a(0x434)](_0x46a150)['with'](T[_0x54216a(0x208)]),{redoCache:_0x274083}=_0x1ee9ac[_0x54216a(0x449)]();if(_0x274083[_0x54216a(0x1cd)]===0x0)return _0x416f4b;let _0x11cd37=a[_0x54216a(0x346)][_0x54216a(0x22a)](_0x416f4b['mutations'][0x0]);for(let _0x3addd0=0x0;_0x3addd0<_0x274083[_0x54216a(0x1cd)];_0x3addd0++){const _0x1b4447={'id':_0x54216a(0x2d6),'params':{..._0x274083[_0x3addd0]}},_0x131ab5=this[_0x54216a(0x1fa)][_0x54216a(0x225)](_0x11cd37,_0x1b4447,!0x1);if(g[_0x54216a(0x308)](_0x131ab5))throw _0x131ab5['error'];_0x11cd37=_0x131ab5[_0x54216a(0x3fd)];}return{...a[_0x54216a(0x346)][_0x54216a(0x22a)](_0x416f4b),'mutations':[_0x11cd37]};}[_0x37525a(0x44d)](_0x3b6db3){const _0x7dda50=_0x37525a,{unitID:_0x3ec353}=_0x3b6db3,_0xef8f5e=this[_0x7dda50(0x339)][_0x7dda50(0x434)](_0x3ec353)['with'](T[_0x7dda50(0x208)]),{undoCache:_0x1fa943,redoCache:_0x2f42ee}=_0xef8f5e[_0x7dda50(0x449)]();if(_0x1fa943[_0x7dda50(0x1cd)]===0x0||_0x2f42ee[_0x7dda50(0x1cd)]===0x0)return;const _0x5c816c=[],_0x4ed219=[];let _0x3ff296=a[_0x7dda50(0x346)][_0x7dda50(0x22a)](_0x3b6db3[_0x7dda50(0x3a0)][0x0]),_0xdb5c64=a[_0x7dda50(0x346)][_0x7dda50(0x22a)](_0x3b6db3[_0x7dda50(0x3a0)][0x0]);for(let _0x46637b=_0x1fa943[_0x7dda50(0x1cd)]-0x1;_0x46637b>=0x0;_0x46637b--){const _0x5acbb4={'id':_0x7dda50(0x2d6),'params':{..._0x1fa943[_0x46637b]}},_0x191655={'id':'doc.mutation.rich-text-editing','params':{..._0x2f42ee[_0x46637b]}},_0x27b57b=this['_transformService'][_0x7dda50(0x225)](_0x3ff296,_0x5acbb4,!0x1),_0x2e4bf0=this['_transformService']['transformMutation'](_0xdb5c64,_0x191655,!0x1);if(g[_0x7dda50(0x308)](_0x27b57b))throw _0x27b57b[_0x7dda50(0x262)];if(g['isTransformMutationFailure'](_0x2e4bf0))throw _0x2e4bf0['error'];_0x5c816c[_0x7dda50(0x1c5)](_0x27b57b['m2Prime']['params']),_0x4ed219[_0x7dda50(0x1c5)](_0x2e4bf0['m2Prime'][_0x7dda50(0x1db)]),_0x3ff296=_0x27b57b[_0x7dda50(0x3fd)],_0xdb5c64=_0x2e4bf0[_0x7dda50(0x3fd)];}_0xef8f5e[_0x7dda50(0x352)]({'undoCache':_0x5c816c,'redoCache':_0x4ed219});}[_0x37525a(0x2b1)](_0x24b64b){const _0x1219ba=_0x37525a,{unitID:_0x512d3e}=_0x24b64b,_0x4f2837=this[_0x1219ba(0x339)]['getRenderById'](_0x512d3e)[_0x1219ba(0x29b)](T[_0x1219ba(0x208)]),_0x433346=_0x4f2837['getActiveRange']();if(_0x433346==null)return;const _0x3c4004=[{'id':_0x1219ba(0x2d6),'params':{'unitId':_0x24b64b['unitID'],'actions':null,'textRanges':[_0x433346]}}],_0x46d991=this['_transformService'][_0x1219ba(0x2da)](_0x24b64b,_0x3c4004);if(!g[_0x1219ba(0x296)](_0x46d991))throw _0x46d991[_0x1219ba(0x262)];const _0x4bdd2c=_0x46d991[_0x1219ba(0x423)][0x0][_0x1219ba(0x1db)]['textRanges'];Array['isArray'](_0x4bdd2c)&&_0x4bdd2c[_0x1219ba(0x1cd)]&&_0x4f2837[_0x1219ba(0x1bd)](_0x4bdd2c[0x0]);}};function _0x5977(){const _0x100158=['Tooltip','_hovered','9186CoIdFC','_beforeCloseService','M0\x200H16V16H0z','removeParam','INVITE_CODE_HAS_BEEN_UES','key','\x20at\x20','_cursor','Tools','jiqing.500','CollaborationStatus','textRanges','cursorInfo','row','_removeClearOtherTimer','_entityInit$','PERMISSION_DENIED','forEach','registerRenderModule','min','setUndoRedoMutationParamsCache','getTypeOfUnitDisposed$','1277163AMtDXx','[CollaborationDataLoaderController]','arc','off-line-icon','name','source','mergeOverrideWithDependencies','_getSaveTimeout','_docTransformIMECacheService','currentUsage','getMergeData','getUnitStatus$','_online','measureText','_drawAnchor','getCollabEntity$','SetDocZoomRatioOperation','_updateLocalCursor','evenodd','_localStorageService','getItem','_docClipboardService','YUUMI_ASYNCIO_CANCELLED','_handleJoinEvent','Unknown\x20user','YUUMI_UNABLE_LOAD_URL','flatMap','loadUnit','ENTITLE_CHAT_LIMIT_EXCEED','_themeService','map','USER_IS_ANONYMOUS','RECT','subscribe','unhandledrejection','_updateCollabCursors','FormulaExecutedStateType','2WFsCjE','DEFAULT_WS_SESSION_TICKET_URL','ICommandService','dispose','round','_initEntityListener','collabStatus.notCollab','_status$','application/json','takeUntil','on-line-icon_clip0_910_349','_getMergeRange','random','setConfig','_getFormulaLimitStatus','substring','isActive','RxDisposable','_initCommandInterceptor','transformIMECache','toString','saveTaskMap','closePath','INTERNAL_ERROR','Success','drawWith','_colorAssignService','Module','labelPosition','_currentUsage','Subject','_pollingInterval','EMAIL_HAS_BEEN_BOUND','RemoveRowCommandId','getViewport','_cachedData','WebURLService','21670451SVoTQm','WECHAT_HAS_BEEN_BOUND','mutations','_localCacheService','none','_draw','ENTITLE_INSUFFICIENT_QUOTA','CollaborationUIEventId','handleInsertRangeMoveDown','from','USER_NOT_FOUND','onPointerEnter$','1280848gQMbdX','values','_session','debounceTime','defineProperty','DocSelectionManagerService','_transformHistoryAndStateStack','YUUMI_NO_CUBOID_FOR_QUESTION','_collaborationSessionService','univer-flex\x20univer-items-center','PENDING','popstate','dispose$','PY_RUNTIME_SCRIPT_ERROR','init','getDocRanges','INVITE_CODE_REQUIRED','executeCommand','fromEventSubject','SNAPSHOT_INVALID_SNAPSHOT','ITransformService','DesktopCollaborationStatusDisplayController','UPDATE_CURSOR','registerRefRange','maxFormulaLimit','wsSessionTicketUrl','runId','getFocusedUnit','getCollabCursors$','INVALID_ARGUMENT','dirtyRanges','_collaborationController','_onCursorUpdate','Disposable','MoveRangeCommandId','selection','selections','_univerInstanceService','_document','set','DeleteRangeMoveUpCommandId','location','makeDirty','moveTo','_shapes','_toggleOnline','contains','REDEMPTION_USER_NOT_ELIGIBLE','CollaborationSocketService','IDocClipboardService','switchMap','all','ENTITLE_USE_COUPON_NOT_1ST_TRADE','Error','triggerDblclick','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_docSkeletonManagerService','div','serializeRangeWithSheet','clearTimeout','storage','setItem','_scheduleSaving','endColumn','YUUMI_ALL_TABLES_IS_INVALID','YUUMI_RATE_OVER_LIMIT','getSheetId','delete','EffectRefRangId','_colorIndex','IRemoteInstanceService','collaboration.closeRoom','BrowserCollaborationSocketService','_updateSubUnitFromURLParams','_hover','setShapeProps','debounce','LICENSE_MAX_UNITS_EXCEEDED','sessionTicket','IConfigService','has','removeEventListener','getActiveSheet','m1Prime','NOT_FOUND','RemoveColCommandId','clearInterval','fill','IRenderManagerService','_disabled','_textBubble','subUnitId','stage','_scheduleHeartbeat','_releaseCalculationLimit','UniverInstanceType','LOCAL_CACHE_INTERVAL_KEY','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','onPointerLeave$','attrs','_commandService','BehaviorSubject','_initResize','1em','isArray','debug','find','CanceledError','AWAITING','_updateURLWithCurrentState','NodePositionConvertToCursor','UNRECOGNIZED','_collabCursorState$','Warning','_init','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','onPointerMove$','newValue','ENSURE_SNAPSHOT_EXECUTION','handleDeleteRangeMoveUp','_cursorInfo$','m2Prime','[Unhandled\x20Rejection]:\x20','_hideTimer','createElement','replaceState','useDependency','_render','skeleton','deserializeRangeWithSheet','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','translate(.97)','hide','unitID','collabStatus.fetchMiss','docStateChange$','code','hovered','getRenderById','_heartbeatTimer','onStarting','text','rgba(255,\x20255,\x20255,\x200.01)','_eventUnsubscribe','_initStatusComponent','OTHER_CLIENT_EDITING','_localeService','setTimeout','addClipboardHook','VIEW_MAIN','restore','subscribeEvent','transformByState','getCellPositionByOffset','_getSheetObject','fillStyle','parse','createInstance','UniverCollaborationClientPlugin','getUndoRedoMutationParamsCache','_anchorDot','_messageService','session.collaboration-timeout','_transformUndoRedoStack','saveOfflineData','YUUMI_CONNECTOR_URL_NOT_FOUND','/universer-api/license/formula/limit/status','getRelativeToViewportCoord','UnitStatus','ACTIVE_UNIT_EVENT_CHANNEL','_toggleOffline','OFFLINE','APPLY_DUPLICATED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_backgroundColor','_sheetSkeletonManagerService','isEditing','_onCursorDelete','ENTITLE_DUP_SUBSCRIPTION','getCurrentRevOfUnit','sheetId','YUUMI_TABLE_NOT_FOUND_IN_UNIT','RefRangeService','imageSourceType','save','transform','post','ISnapshotServerService','origin','generateRandomId','DependentOn','_docSkeleton','_clearPolling','_initUserListener','next','assignAColorForMemberID','search','pipe','filename','_getScale','ILogService','_applyCommand','UNDEFINED','registerComponent','AWAITING_WITH_PENDING','EMAIL_VERIFY_CODE_MISMATCH','now','UniverCollaborationClientUIPlugin','ILocalCacheService','jsxs','disposeWithMe','_logService','OnLineIcon','_startSheetCollabCursor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getSkeleton','LICENSE_EXPORT_SIZE_EXCEEDED','use','CollaborationEvent','memberID','http://www.w3.org/2000/svg','setStateCache','MemberService','onCommandExecuted','_refreshCollabCursors','currentSkeleton$','setActiveRange','InsertRangeMoveDownCommandId','tag','_doCreateSocket','_httpService','useRef','ALREADY_EXISTS','getColor','unshift','_showGuardMessage','unitId','_uploadLog','DeleteRangeMoveLeftCommandId','_roomMembers$','toDisposable','_range','length','getAncestorScale','entries','CURRENT_STATUS_CANNOT_OPERATE','result','_anchor','split','RemoteUniscriptService','_handleLeaveEvent','_unitStatus','message','1245UCadAV','parseInt','SNAPSHOT_HAS_BEEN_REMOVED','params','updateOfflineData','reconnect','0\x200\x2016\x2016','limitInfo','REDEMPTION_USER_REDEEM_TIMES_EXCEED','unit','xlink:href','_scheduleClearOtherTimer','ticket','SheetCollabCursorShape','_context','SetSelectionsOperation','InsertRowCommandId','306Xiohkw','addEventListener','_cursorShapes','entityInit$','getCurrentUnitForType','_revisionService','transformStateCache','show','collab-text-anchor-','WebSocketService','_initWindowErrorListener','disableLocalCache','_registerDependencies','toRgbString','LICENSE_IMPORT_SIZE_EXCEEDED','body','Vector2','_transformService','LocaleService','_createSocketURL','getUnhiddenWorksheets','clipPath','blue.400','_saveTaskMap','catch','invokeId','OTHER_CLIENTS_EDITING','collaboration.offline-data-not-saved','height','getStateCache','_drawTextRange','DocIMEInputManagerService','JOIN_ROOM_FAILED','assign','_instanceService','_docSyncEditingCollabCursorService','IImageIoService','startRow','TEXT','START_CALCULATION','string','getUnitId','then','InsertRangeMoveRightCommandId','handleInsertCol','replaceDocRanges','_collabCursorController','APPLY_PERMISSION_DENIED','PAYMENT_CHANNEL_NOT_SUPPORT','current','roomMembers','addHandlerCallback','ILocalStorageService','fillRule','_handleHover','permission.title','Inject','roomMembers$','7TjSpPN','MessageType','transformMutation','enableLocalCache','size','_handleHeartbeatEvent','HEADER_MENU','deepClone','_labelPosition','DocStateChangeManagerService','UNIVER_SHEET','_configService','317421uwHmwP','formula.calculation.waiting','getOffsetConfig','distinctUntilChanged','urlChange$','createIdentifier','pluginName','type','_color','useCallback','TEXT_RANGE_LAYER_INDEX','_entities','useObservable','color','#FFF','session.will-retry','_lastResponseTimestamp','LICENSE_DISTRO_REJECTED','_config','_memberService','getValue','OffLineIcon','NOT_COLLAB','_collabSessionService','_cursors','getTypeOfUnitAdded$','redoState','width','displayName','NO_OTHER_CLIENTS_EDITING','FETCH_MISS','_initUnhandledRejectionListener','complete','SetTextSelectionsOperation','touchDependencies','includes','history','UNAUTHENTICATED','asObservable','handleInsertRangeMoveRight','ERROR_AGAIN','INVALID_INVITE_CODE','_initStatusListener','_setupSubUnitSync','beforeCommandExecuted','undoState','_assignedColors','APPLY_REJECT','FormulaExecuteStageType','_docTransformStateCacheService','registerDependencies','error','_syncEditingCollabCursorService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_clearOtherTimers','REDEMPTION_INVALID_CODE','send','getOwnPropertyDescriptor','REDEMPTION_CODE_FULLY_REDEEMED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','uni.network.url-service','?taskId=','DATA_SOURCE_TOO_LARGE','SetFormulaCalculationStartMutation','jsx','merge','CHANGESET_REVISION_CONFILICT','_maxFormulaLimit','white','setAlpha','isFormulaId','add','_injector','ENTITLE_COUPON_EXPIRED','UNIVER_DOC','releaseFormulaLimitUrl','IBeforeCloseService','_startCalculationLimit','_docStateChangeManagerService','searchParams','handleDeleteRangeMoveLeft','top','ONLINE','_imageIoService','DisposableCollection','data','path','column','YUUMI_AI_RUN_FAILED','univerjs-icon\x20univerjs-icon-','children','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','bottom','_removeCollabCursors','join','exhaustSavingTask','transformSelections','[LogService\x20Error]:\x20','Optional','beginPath','_registerRenderDependencies','syncEditingCollabCursor','SetWorksheetActivateCommand','isTransformMutationsWithChangesetSuccess','_getSessionTicket','CONFLICT','ranges','getformulaLimitStatusUrl','with','COLORS','Shape','/universer-api/license/formula/limit/done','getParam','colno','_onRefRangeChange','REDEMPTION_CODE_HAS_BEEN_CREATED','setInterval','href','lineno','_initCommandExecutedListener','enableFrontendLog','activeSheet$','sessionStatus$','range','unsubscribe','url(#off-line-icon_clip0_910_343)','actions','getColorFromTheme','ENTITLE_INVALID_COUPON_CODE','ENTITLE_COUPON_USED_UP','_transformPreviousActiveRange','IMessageService','0\x200\x2017\x2016','_name','_taskIds','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','push','Rect','_refRangeService','_collaborationUIEventService','saveImage','univer-mr-2\x20univer-flex\x20univer-text-xl','_setFormulaLimitStatus','DocSkeletonManagerService','_scene','defs','_ensureSubject','_send','_uiPartsService','replace','url(#on-line-icon_clip0_910_349)','LOCAL_CACHE_INTERVAL','startColumn','fromEvent','addObjects','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','_saveCache','onLocalMutation','CollaborationUIEventService','683024OCIDib','black','colorChannel1','_handleEvent','handleInsertRow','functionsExecutedState','IUniverInstanceService','getMember','doc.mutation.rich-text-editing','HTTPService','_memberID','_monkeyPatchLogService','transformMutationsWithChangeset','_lastPointer','_unitOnClients','IURLService','_dataLoaderService','MOBILE_HAS_BEEN_BOUND','MOBILE_VERIFY_CODE_MISMATCH','collabStatus.conflict','on-line-icon','currentTheme$','_checkAndWaitForCalculationPermission','fillText','stack','get','url(#$1','...','getCoordByCell','TOO_MANY_REQUESTS','permission.content','CONNECTOR_DATA_TOO_LARGE','_checkCalculationAvailable','DataLoaderService','onMouseMove','USERS_LEAVE','CollaborationSessionService','sheetID','_drawRectRange','event$','lineTo','findNodePositionByCharIndex','combineLatest','forwardRef','COMPLETION_FINISHED','formula.calculation.unable','registerBeforeClose','collaboration.single-unit.warning','handleMoveRange','DOC_RANGE_TYPE','Injector','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SessionStatus','transformRemoteChangeset','Rectangle','shareReplay','stageInfo','filter','isTransformMutationFailure','resize','addObject','LOGIN_TOKEN_PROCESSING_FAILED','subunit','getMemberID','_id','eventID','_setupBeforeClosingHandler','symbol','ThemeService','_initDependencies','currentColor','_notificationService','_initEvent','pushState','loadOfflineData','off-line-icon_clip0_910_343','AUTHORIZE_CODE_ILLEGAL','CollaborationDataLoaderController','svg','getLocalCacheKey','_urlService','_hasFormulaInDirtyRanges','YUUMI_URL_COL_OUT_OF_RANGE','FromArray','_selfUnitIDs','/universer-api/frontend/logs','APPLY_REVISION_CONFILICT','SUCCESS','SOCKET_FAILED_RETRY','clsx','YUUMI_SUBSCRIPTION_NOT_FOUND','_docTransformSelectionsService','SetFormulaCalculationNotificationMutation','getUniverSheetInstance','getCurrent','requireSession','createSocket','56620eLEqZe','getRangePointData','REDEMPTION_CODE_INACTIVE','getConfig','getSheetBySheetId','mask','stringify','idSuffix','ENTITLE_REPORT_LIMIT_EXCEED','_getAnchorBounding','_renderManagerService','USER_NOT_INVITED_CODE','Workbook'];_0x5977=function(){return _0x100158;};return _0x5977();}ee=Wt([Ae(0x0,g[_0x37525a(0x3be)]),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x37525a(0x268)],Gt=(_0x4ea5d1,_0xb1d138,_0x1b34d7,_0x345747)=>{const _0x27787a=_0x37525a;for(var _0x46b563=_0x345747>0x1?void 0x0:_0x345747?Vt(_0xb1d138,_0x1b34d7):_0xb1d138,_0x16d9b5=_0x4ea5d1[_0x27787a(0x1cd)]-0x1,_0x42b480;_0x16d9b5>=0x0;_0x16d9b5--)(_0x42b480=_0x4ea5d1[_0x16d9b5])&&(_0x46b563=_0x42b480(_0x46b563)||_0x46b563);return _0x46b563;},Ie=(_0x445320,_0x7c6340)=>(_0x43c97f,_0x12f1b2)=>_0x7c6340(_0x43c97f,_0x12f1b2,_0x445320);let te=class{constructor(_0x5e2e02,_0x1f8256,_0x5b7ebe){const _0x406adb=_0x37525a;this[_0x406adb(0x277)]=_0x5e2e02,this[_0x406adb(0x1fa)]=_0x1f8256,this['_docStateChangeManagerService']=_0x5b7ebe;}['transformStateCache'](_0x489446){const _0x4c3853=_0x37525a;this[_0x4c3853(0x3b0)](_0x489446);}[_0x37525a(0x303)](_0x41d1df){const _0x15af55=_0x37525a,{unitID:_0x997943}=_0x41d1df,{collaboration:_0x49dc00}=this[_0x15af55(0x27d)][_0x15af55(0x206)](_0x997943);if(_0x49dc00[_0x15af55(0x1cd)]===0x0)return _0x41d1df;let _0x178daf=a[_0x15af55(0x346)][_0x15af55(0x22a)](_0x41d1df[_0x15af55(0x3a0)][0x0]);for(let _0x11b39c=0x0;_0x11b39c<_0x49dc00['length'];_0x11b39c++){const _0x888d72={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x49dc00[_0x11b39c][_0x15af55(0x1c7)],..._0x49dc00[_0x11b39c]['redoState']}},_0xe60b80=this[_0x15af55(0x1fa)][_0x15af55(0x225)](_0x178daf,_0x888d72,!0x1);if(g[_0x15af55(0x308)](_0xe60b80))throw _0xe60b80[_0x15af55(0x262)];_0x178daf=_0xe60b80[_0x15af55(0x3fd)];}return{...a[_0x15af55(0x346)]['deepClone'](_0x41d1df),'mutations':[_0x178daf]};}[_0x37525a(0x3b0)](_0x230526){const _0x5e7dad=_0x37525a,{unitID:_0x2cd86a}=_0x230526,{history:_0x4a1760,collaboration:_0x22b179}=this[_0x5e7dad(0x27d)][_0x5e7dad(0x206)](_0x2cd86a);if(_0x4a1760[_0x5e7dad(0x1cd)]===0x0&&_0x22b179[_0x5e7dad(0x1cd)]===0x0)return;const _0x2e09f1=[],_0x273444=[];let _0xc3eaf3=a['Tools']['deepClone'](_0x230526[_0x5e7dad(0x3a0)][0x0]),_0x3ff9b1=a[_0x5e7dad(0x346)][_0x5e7dad(0x22a)](_0x230526[_0x5e7dad(0x3a0)][0x0]);for(let _0x4a8a2b=_0x4a1760[_0x5e7dad(0x1cd)]-0x1;_0x4a8a2b>=0x0;_0x4a8a2b--){const _0x10b673={'id':_0x5e7dad(0x2d6),'params':{'unitId':_0x4a1760[_0x4a8a2b][_0x5e7dad(0x1c7)],..._0x4a1760[_0x4a8a2b][_0x5e7dad(0x25c)]}},_0x59fbf9={'id':_0x5e7dad(0x2d6),'params':{'unitId':_0x4a1760[_0x4a8a2b][_0x5e7dad(0x1c7)],..._0x4a1760[_0x4a8a2b][_0x5e7dad(0x249)]}},_0x92f5c8=this['_transformService']['transformMutation'](_0xc3eaf3,_0x10b673,!0x1),_0x5aeb46=this[_0x5e7dad(0x1fa)][_0x5e7dad(0x225)](_0x3ff9b1,_0x59fbf9,!0x1);if(g['isTransformMutationFailure'](_0x92f5c8))throw _0x92f5c8[_0x5e7dad(0x262)];if(g[_0x5e7dad(0x308)](_0x5aeb46))throw _0x5aeb46[_0x5e7dad(0x262)];_0x2e09f1['unshift']({..._0x4a1760[_0x4a8a2b],'undoState':_0x92f5c8[_0x5e7dad(0x423)][_0x5e7dad(0x1db)],'redoState':_0x5aeb46[_0x5e7dad(0x423)][_0x5e7dad(0x1db)]}),_0xc3eaf3=_0x92f5c8[_0x5e7dad(0x3fd)],_0x3ff9b1=_0x5aeb46[_0x5e7dad(0x3fd)];}_0xc3eaf3=a[_0x5e7dad(0x346)][_0x5e7dad(0x22a)](_0x230526['mutations'][0x0]),_0x3ff9b1=a[_0x5e7dad(0x346)][_0x5e7dad(0x22a)](_0x230526[_0x5e7dad(0x3a0)][0x0]);for(let _0x1f406c=_0x22b179[_0x5e7dad(0x1cd)]-0x1;_0x1f406c>=0x0;_0x1f406c--){const _0x538118={'id':_0x5e7dad(0x2d6),'params':{'unitId':_0x22b179[_0x1f406c][_0x5e7dad(0x1c7)],..._0x22b179[_0x1f406c]['undoState']}},_0x308545={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x22b179[_0x1f406c][_0x5e7dad(0x1c7)],..._0x22b179[_0x1f406c]['redoState']}},_0x57bff5=this[_0x5e7dad(0x1fa)][_0x5e7dad(0x225)](_0xc3eaf3,_0x538118,!0x1),_0x24a0bf=this[_0x5e7dad(0x1fa)][_0x5e7dad(0x225)](_0x3ff9b1,_0x308545,!0x1);if(g[_0x5e7dad(0x308)](_0x57bff5))throw _0x57bff5[_0x5e7dad(0x262)];if(g[_0x5e7dad(0x308)](_0x24a0bf))throw _0x24a0bf[_0x5e7dad(0x262)];_0x273444[_0x5e7dad(0x1c5)]({..._0x22b179[_0x1f406c],'undoState':_0x57bff5[_0x5e7dad(0x423)][_0x5e7dad(0x1db)],'redoState':_0x24a0bf['m2Prime'][_0x5e7dad(0x1db)]}),_0xc3eaf3=_0x57bff5[_0x5e7dad(0x3fd)],_0x3ff9b1=_0x24a0bf[_0x5e7dad(0x3fd)];}this[_0x5e7dad(0x27d)][_0x5e7dad(0x1b8)](_0x2cd86a,{'history':_0x2e09f1,'collaboration':_0x273444});}};te=Gt([Ie(0x0,a[_0x37525a(0x221)](a['Injector'])),Ie(0x1,g[_0x37525a(0x3be)]),Ie(0x2,a[_0x37525a(0x221)](T[_0x37525a(0x22c)]))],te);var Xt=Object[_0x37525a(0x268)],Kt=(_0x23aba5,_0x27d325,_0x187382,_0x49bd4b)=>{const _0x1bf4a8=_0x37525a;for(var _0x56a1da=_0x49bd4b>0x1?void 0x0:_0x49bd4b?Xt(_0x27d325,_0x187382):_0x27d325,_0x443d4a=_0x23aba5[_0x1bf4a8(0x1cd)]-0x1,_0x58a41c;_0x443d4a>=0x0;_0x443d4a--)(_0x58a41c=_0x23aba5[_0x443d4a])&&(_0x56a1da=_0x58a41c(_0x56a1da)||_0x56a1da);return _0x56a1da;},Pe=(_0x302624,_0x4b8085)=>(_0x404fa6,_0xd0ef20)=>_0x4b8085(_0x404fa6,_0xd0ef20,_0x302624);let se=class{constructor(_0x3f5398,_0x492622){const _0x55c901=_0x37525a;this[_0x55c901(0x277)]=_0x3f5398,this[_0x55c901(0x1fa)]=_0x492622;}[_0x37525a(0x28f)](_0x20cfb1){const _0x1942c0=_0x37525a;var _0x4fb77b;const _0x2b00f7=this[_0x1942c0(0x277)]['get'](V[_0x1942c0(0x3af)]),_0x25a4e2=(_0x4fb77b=_0x2b00f7[_0x1942c0(0x3b9)]())!=null?_0x4fb77b:[];if(_0x25a4e2[_0x1942c0(0x1cd)]===0x0)return;const _0x104bbf=_0x20cfb1[_0x1942c0(0x42f)],_0x5dd6a1=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x104bbf,'actions':null,'textRanges':_0x25a4e2}}],_0x30d607=this[_0x1942c0(0x1fa)][_0x1942c0(0x2da)](_0x20cfb1,_0x5dd6a1);if(!g[_0x1942c0(0x296)](_0x30d607))throw _0x30d607[_0x1942c0(0x262)];const _0xeca9fe=_0x30d607[_0x1942c0(0x423)][0x0]['params'][_0x1942c0(0x349)];Array[_0x1942c0(0x412)](_0xeca9fe)&&_0xeca9fe['length']&&_0x2b00f7[_0x1942c0(0x216)](_0xeca9fe,{'unitId':_0x104bbf,'subUnitId':_0x104bbf},!0x1);}};se=Kt([Pe(0x0,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),Pe(0x1,g[_0x37525a(0x3be)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x1509e3,_0x1b2db9,_0x99ad89,_0x3696f9)=>{const _0x286861=_0x37525a;for(var _0x49663a=_0x3696f9>0x1?void 0x0:_0x3696f9?qt(_0x1b2db9,_0x99ad89):_0x1b2db9,_0x4218fb=_0x1509e3[_0x286861(0x1cd)]-0x1,_0x341593;_0x4218fb>=0x0;_0x4218fb--)(_0x341593=_0x1509e3[_0x4218fb])&&(_0x49663a=_0x341593(_0x49663a)||_0x49663a);return _0x49663a;},N=(_0x168d69,_0x565f8b)=>(_0x124a32,_0x4fffdf)=>_0x565f8b(_0x124a32,_0x4fffdf,_0x168d69);let ie=class extends a[_0x37525a(0x3cb)]{constructor(_0xa0eca6,_0x506045,_0x313118,_0x31fed1,_0x305ebd,_0xa506b4,_0x2918e3,_0x359cb3){const _0x154efd=_0x37525a;super(),_(this,_0x154efd(0x380),new I[(_0x154efd(0x40f))](u[_0x154efd(0x348)][_0x154efd(0x245)])),(this[_0x154efd(0x27d)]=_0xa0eca6,this['_collaborationController']=_0x506045,this[_0x154efd(0x35c)]=_0x313118,this['_docTransformStateCacheService']=_0x31fed1,this['_docTransformSelectionsService']=_0x305ebd,this[_0x154efd(0x20c)]=_0xa506b4,this['_messageService']=_0x2918e3,this['_localeService']=_0x359cb3,this[_0x154efd(0x37e)]());}['_initEntityListener'](){const _0x154e60=_0x37525a;this['disposeWithMe'](this['_collaborationController'][_0x154e60(0x1ec)][_0x154e60(0x375)](_0x4ca89b=>{const _0x4d16b8=_0x154e60,_0xaacb14=this[_0x4d16b8(0x27d)][_0x4d16b8(0x431)][_0x4d16b8(0x375)](_0x44728a=>{const _0x426411=_0x4d16b8;if(_0x44728a==null)return;const {unitId:_0x1e3056,redoState:_0x2f7d85,commandId:_0x3ae1a3}=_0x44728a;if(_0x1e3056!==_0x4ca89b[_0x426411(0x42f)])return;const _0x2ce847={'id':_0x3ae1a3,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x1e3056,'actions':_0x2f7d85[_0x426411(0x2ad)],'textRanges':null}};_0x4ca89b[_0x426411(0x2cc)](_0x2ce847);});if(_0x4ca89b['disposeWithMe'](_0xaacb14),_0x4ca89b instanceof u['DocCollaborationEntity']){const _0x341003={'onTransformIME':_0x531e28=>this[_0x4d16b8(0x35c)][_0x4d16b8(0x38c)](_0x531e28),'onTransformState':_0x5a7640=>this[_0x4d16b8(0x260)][_0x4d16b8(0x1ef)](_0x5a7640),'onTransformSelections':_0xdcf4d9=>this[_0x4d16b8(0x329)][_0x4d16b8(0x28f)](_0xdcf4d9),'onSyncEditingCollabCursor':_0x4cce7d=>this['_docSyncEditingCollabCursorService'][_0x4d16b8(0x294)](_0x4cce7d),'onTransformRemoteChangesetByIMECache':_0x21b121=>this[_0x4d16b8(0x35c)][_0x4d16b8(0x303)](_0x21b121),'onTransformRemoteChangesetByStateCache':_0x57a549=>this[_0x4d16b8(0x260)][_0x4d16b8(0x303)](_0x57a549)};_0x4ca89b[_0x4d16b8(0x21c)](_0x341003);}}));}};ie=zt([N(0x0,a[_0x37525a(0x221)](T[_0x37525a(0x22c)])),N(0x1,a[_0x37525a(0x221)](u['CollaborationController'])),N(0x2,a['Inject'](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x37525a(0x221)](se)),N(0x5,a[_0x37525a(0x221)](be)),N(0x6,O[_0x37525a(0x2b2)]),N(0x7,a[_0x37525a(0x221)](a[_0x37525a(0x1fb)]))],ie);var G=(_0x5e571a=>(_0x5e571a[_0x5e571a[_0x37525a(0x1a5)]=0x0]=_0x37525a(0x1a5),_0x5e571a[_0x5e571a['OK']=0x1]='OK',_0x5e571a[_0x5e571a[_0x37525a(0x390)]=0x2]=_0x37525a(0x390),_0x5e571a[_0x5e571a[_0x37525a(0x34e)]=0x3]=_0x37525a(0x34e),_0x5e571a[_0x5e571a[_0x37525a(0x3fe)]=0x4]=_0x37525a(0x3fe),_0x5e571a[_0x5e571a[_0x37525a(0x254)]=0x5]=_0x37525a(0x254),_0x5e571a[_0x5e571a[_0x37525a(0x1c3)]=0x6]=_0x37525a(0x1c3),_0x5e571a[_0x5e571a[_0x37525a(0x3c7)]=0x7]=_0x37525a(0x3c7),_0x5e571a[_0x5e571a[_0x37525a(0x2eb)]=0x8]=_0x37525a(0x2eb),_0x5e571a[_0x5e571a[_0x37525a(0x2fa)]=0x9]=_0x37525a(0x2fa),_0x5e571a[_0x5e571a['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x5e571a[_0x5e571a[_0x37525a(0x2e0)]=0xb]=_0x37525a(0x2e0),_0x5e571a[_0x5e571a[_0x37525a(0x3e1)]=0xc]=_0x37525a(0x3e1),_0x5e571a[_0x5e571a[_0x37525a(0x1a8)]=0xd]=_0x37525a(0x1a8),_0x5e571a[_0x5e571a[_0x37525a(0x28a)]=0xe]=_0x37525a(0x28a),_0x5e571a[_0x5e571a[_0x37525a(0x31a)]=0xf]=_0x37525a(0x31a),_0x5e571a[_0x5e571a[_0x37525a(0x30b)]=0x10]=_0x37525a(0x30b),_0x5e571a[_0x5e571a[_0x37525a(0x1d0)]=0x64]=_0x37525a(0x1d0),_0x5e571a[_0x5e571a[_0x37525a(0x257)]=0x65]=_0x37525a(0x257),_0x5e571a[_0x5e571a[_0x37525a(0x3a8)]=0xc9]='USER_NOT_FOUND',_0x5e571a[_0x5e571a[_0x37525a(0x373)]=0xca]='USER_IS_ANONYMOUS',_0x5e571a[_0x5e571a['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x37525a(0x271),_0x5e571a[_0x5e571a[_0x37525a(0x3bd)]=0x1771]=_0x37525a(0x3bd),_0x5e571a[_0x5e571a[_0x37525a(0x1da)]=0x1772]=_0x37525a(0x1da),_0x5e571a[_0x5e571a['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x37525a(0x420),_0x5e571a[_0x5e571a['APPLY_REJECT']=0x1b59]=_0x37525a(0x25e),_0x5e571a[_0x5e571a['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5e571a[_0x5e571a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x37525a(0x324),_0x5e571a[_0x5e571a['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x37525a(0x218),_0x5e571a[_0x5e571a[_0x37525a(0x456)]=0x1b5d]='APPLY_DUPLICATED',_0x5e571a[_0x5e571a[_0x37525a(0x2ed)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5e571a[_0x5e571a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x37525a(0x3f7),_0x5e571a[_0x5e571a[_0x37525a(0x301)]=0x232a]=_0x37525a(0x301),_0x5e571a[_0x5e571a[_0x37525a(0x1f7)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5e571a[_0x5e571a[_0x37525a(0x1b3)]=0x232c]=_0x37525a(0x1b3),_0x5e571a[_0x5e571a[_0x37525a(0x240)]=0x232d]=_0x37525a(0x240),_0x5e571a[_0x5e571a[_0x37525a(0x36d)]=0x2711]=_0x37525a(0x36d),_0x5e571a[_0x5e571a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x37525a(0x320),_0x5e571a[_0x5e571a[_0x37525a(0x3eb)]=0x2713]=_0x37525a(0x3eb),_0x5e571a[_0x5e571a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x37525a(0x328),_0x5e571a[_0x5e571a['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x37525a(0x3b1),_0x5e571a[_0x5e571a[_0x37525a(0x36a)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5e571a[_0x5e571a[_0x37525a(0x190)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x5e571a[_0x5e571a[_0x37525a(0x3ea)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5e571a[_0x5e571a[_0x37525a(0x2b6)]=0x271e]=_0x37525a(0x2b6),_0x5e571a[_0x5e571a[_0x37525a(0x287)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x5e571a[_0x5e571a[_0x37525a(0x44f)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x5e571a[_0x5e571a['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x37525a(0x3b7),_0x5e571a[_0x5e571a[_0x37525a(0x342)]=0x2ee1]=_0x37525a(0x342),_0x5e571a[_0x5e571a[_0x37525a(0x258)]=0x2ee2]='INVALID_INVITE_CODE',_0x5e571a[_0x5e571a[_0x37525a(0x3ba)]=0x2ee3]=_0x37525a(0x3ba),_0x5e571a[_0x5e571a['USER_NOT_INVITED_CODE']=0x2ee4]=_0x37525a(0x33a),_0x5e571a[_0x5e571a['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5e571a[_0x5e571a['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x37525a(0x39f),_0x5e571a[_0x5e571a['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x37525a(0x2df),_0x5e571a[_0x5e571a[_0x37525a(0x399)]=0x32cb]=_0x37525a(0x399),_0x5e571a[_0x5e571a[_0x37525a(0x457)]=0x36b1]=_0x37525a(0x457),_0x5e571a[_0x5e571a['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x5e571a[_0x5e571a['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x37525a(0x18d),_0x5e571a[_0x5e571a['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x37525a(0x219),_0x5e571a[_0x5e571a[_0x37525a(0x2af)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x5e571a[_0x5e571a[_0x37525a(0x278)]=0x36b6]=_0x37525a(0x278),_0x5e571a[_0x5e571a[_0x37525a(0x2b0)]=0x36b7]=_0x37525a(0x2b0),_0x5e571a[_0x5e571a[_0x37525a(0x3de)]=0x36b8]=_0x37525a(0x3de),_0x5e571a[_0x5e571a['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x37525a(0x370),_0x5e571a[_0x5e571a[_0x37525a(0x337)]=0x3716]=_0x37525a(0x337),_0x5e571a[_0x5e571a['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x37525a(0x3a4),_0x5e571a[_0x5e571a['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5e571a[_0x5e571a[_0x37525a(0x266)]=0x3a99]=_0x37525a(0x266),_0x5e571a[_0x5e571a['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x37525a(0x331),_0x5e571a[_0x5e571a['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x37525a(0x269),_0x5e571a[_0x5e571a['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x5e571a[_0x5e571a[_0x37525a(0x3d9)]=0x3a9d]=_0x37525a(0x3d9),_0x5e571a[_0x5e571a[_0x37525a(0x1e0)]=0x3a9e]=_0x37525a(0x1e0),_0x5e571a[_0x5e571a[_0x37525a(0x2a2)]=0x3a9f]=_0x37525a(0x2a2),_0x5e571a[_0x5e571a['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x37525a(0x26d),_0x5e571a[_0x5e571a[_0x37525a(0x419)]=-0x1]='UNRECOGNIZED',_0x5e571a))(G||{});function Jt(_0x2a7090){const _0x911566=_0x37525a;var _0x5c0fcd,_0x1d498f;const _0x10ba83=(_0x5c0fcd=_0x2a7090[_0x911566(0x306)])==null?void 0x0:_0x5c0fcd[_0x911566(0x406)],_0x465c88=((_0x1d498f=_0x2a7090[_0x911566(0x306)])==null?void 0x0:_0x1d498f['totalFormulasToCalculate'])||0x0;return _0x10ba83===B[_0x911566(0x25f)][_0x911566(0x210)]&&_0x465c88>0x0;}function Zt(_0x9aada6){const _0x3dfa86=_0x37525a;return _0x9aada6[_0x3dfa86(0x2d3)]===B[_0x3dfa86(0x378)][_0x3dfa86(0x325)];}var Qt=Object[_0x37525a(0x268)],es=(_0x31af90,_0x9ad093,_0x58b5a9,_0x3f1979)=>{const _0x2e6ff3=_0x37525a;for(var _0x459b5b=_0x3f1979>0x1?void 0x0:_0x3f1979?Qt(_0x9ad093,_0x58b5a9):_0x9ad093,_0x4b1330=_0x31af90[_0x2e6ff3(0x1cd)]-0x1,_0x3e328c;_0x4b1330>=0x0;_0x4b1330--)(_0x3e328c=_0x31af90[_0x4b1330])&&(_0x459b5b=_0x3e328c(_0x459b5b)||_0x459b5b);return _0x459b5b;},L=(_0x901e35,_0x4bf09)=>(_0x368b43,_0x143b15)=>_0x4bf09(_0x368b43,_0x143b15,_0x901e35);const ts=_0x37525a(0x450),ss='/universer-api/license/formula/limit/start',is=_0x37525a(0x29e);let ne=class extends a[_0x37525a(0x3cb)]{constructor(_0x5e5dbb,_0x5c283b,_0x42eafb,_0x5bfa62,_0x3dc16b,_0x5045c2,_0x572f5d){const _0x3af3aa=_0x37525a;super(),_(this,_0x3af3aa(0x398),null),_(this,_0x3af3aa(0x272),0x0),_(this,_0x3af3aa(0x396),0x0),_(this,_0x3af3aa(0x2b5),[]),_(this,_0x3af3aa(0x23f),0x0),(this[_0x3af3aa(0x44b)]=_0x5e5dbb,this['_commandService']=_0x5c283b,this[_0x3af3aa(0x22e)]=_0x42eafb,this[_0x3af3aa(0x1c1)]=_0x5bfa62,this[_0x3af3aa(0x3cf)]=_0x3dc16b,this['_logService']=_0x5045c2,this[_0x3af3aa(0x43c)]=_0x572f5d,this[_0x3af3aa(0x38b)]());}['_initCommandInterceptor'](){const _0x48e411=_0x37525a;this['disposeWithMe'](this[_0x48e411(0x40e)][_0x48e411(0x25b)]((_0x1242eb,_0x2cc877)=>{const _0xd29114=_0x48e411;var _0x1376f8;if(_0x1242eb['id']!==B[_0xd29114(0x26e)]['id'])return;const _0x2274aa=_0x1242eb['params'];if(!this[_0xd29114(0x31f)]((_0x1376f8=_0x2274aa[_0xd29114(0x3c8)])!=null?_0x1376f8:[]))return;if(!this[_0xd29114(0x2ee)]())throw this[_0xd29114(0x2e4)](_0x1242eb,_0x2cc877),this[_0xd29114(0x1c6)](),new a[(_0xd29114(0x415))]();})),this[_0x48e411(0x1ad)](this[_0x48e411(0x40e)][_0x48e411(0x1ba)]((_0x25b164,_0x4fecbc)=>{const _0x632242=_0x48e411;if(_0x25b164['id']!==B[_0x632242(0x32a)]['id'])return;const _0x10a8dd=_0x25b164['params'];if(Jt(_0x10a8dd)){const _0x359eda=a['generateRandomId']();this[_0x632242(0x2b5)][_0x632242(0x2b7)](_0x359eda),this[_0x632242(0x27c)](_0x359eda);}else{if(Zt(_0x10a8dd)&&this[_0x632242(0x2b5)][_0x632242(0x1cd)]>0x0){const _0x2f0c1f=this[_0x632242(0x2b5)]['shift']();this['_releaseCalculationLimit'](_0x2f0c1f);}}}));}[_0x37525a(0x37c)](){const _0x339d87=_0x37525a;super[_0x339d87(0x37c)](),this[_0x339d87(0x19b)](),this['_taskIds']=[],this[_0x339d87(0x396)]=0x0,this[_0x339d87(0x272)]=0x0,this[_0x339d87(0x23f)]=0x0;}async[_0x37525a(0x2e4)](_0xe83df4,_0x454862){const _0x1420ea=_0x37525a;for(let _0x1493b7=0x0;_0x1493b7<0x1e;_0x1493b7++)try{if(await this['_getFormulaLimitStatus'](),this[_0x1420ea(0x2ee)]()){this[_0x1420ea(0x1a4)](_0xe83df4,_0x454862),this[_0x1420ea(0x44b)][_0x1420ea(0x1f0)]({'content':this[_0x1420ea(0x43c)]['t']('formula.calculation.started'),'type':p[_0x1420ea(0x224)][_0x1420ea(0x391)]});return;}await new Promise(_0x913bf3=>{const _0x4c2cd5=_0x1420ea;this[_0x4c2cd5(0x398)]=window[_0x4c2cd5(0x43d)](_0x913bf3,0x3e8);});}catch(_0x2acb08){this[_0x1420ea(0x1ae)][_0x1420ea(0x262)](_0x2acb08);}this['_messageService'][_0x1420ea(0x1f0)]({'content':this[_0x1420ea(0x43c)]['t'](_0x1420ea(0x2fb)),'type':p[_0x1420ea(0x224)][_0x1420ea(0x3df)]});}[_0x37525a(0x1a4)](_0x4112ad,_0x491ba0){const _0x185f31=_0x37525a;try{this[_0x185f31(0x40e)][_0x185f31(0x3bb)](_0x4112ad['id'],_0x4112ad[_0x185f31(0x1db)],_0x491ba0);}catch(_0x2f3120){this['_logService'][_0x185f31(0x262)](_0x2f3120);}}[_0x37525a(0x2bd)](_0x39fec3,_0x364c68){const _0x50c52d=_0x37525a;_0x364c68<this[_0x50c52d(0x23f)]||(this[_0x50c52d(0x23f)]=_0x364c68,this['_maxFormulaLimit']=Number[_0x50c52d(0x1d9)](_0x39fec3[_0x50c52d(0x3c2)]),this[_0x50c52d(0x396)]=Number[_0x50c52d(0x1d9)](_0x39fec3[_0x50c52d(0x35d)]));}async[_0x37525a(0x27c)](_0x1ebda7){const _0x455d6f=_0x37525a;var _0x1f7567,_0xe887ca;const _0x462d06=Date[_0x455d6f(0x1a9)]();try{const _0xe04a40=((_0x1f7567=this['_configService'][_0x455d6f(0x332)](u[_0x455d6f(0x40b)]))==null?void 0x0:_0x1f7567['startFormulaLimitUrl'])||ss,_0x21ff13=(await this[_0x455d6f(0x1c1)][_0x455d6f(0x195)](_0xe04a40,{'body':JSON[_0x455d6f(0x335)]({'taskId':_0x1ebda7})}))['body'];if(((_0xe887ca=_0x21ff13[_0x455d6f(0x262)])==null?void 0x0:_0xe887ca[_0x455d6f(0x432)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x21ff13[_0x455d6f(0x1df)],_0x462d06);}catch(_0x2facdd){this['_logService'][_0x455d6f(0x262)](_0x2facdd);}}async[_0x37525a(0x387)](_0x2f2744){const _0x2032d6=_0x37525a;var _0x279a37,_0x2653d3;const _0xc964c7=Date[_0x2032d6(0x1a9)]();try{const _0x12e1ae=((_0x279a37=this[_0x2032d6(0x22e)][_0x2032d6(0x332)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x279a37[_0x2032d6(0x29a)])||ts,_0x3946a7=_0x2f2744?_0x12e1ae+_0x2032d6(0x26c)+encodeURIComponent(_0x2f2744):_0x12e1ae,_0x15ad18=(await this['_httpService'][_0x2032d6(0x2e7)](_0x3946a7))[_0x2032d6(0x1f8)];if(((_0x2653d3=_0x15ad18['error'])==null?void 0x0:_0x2653d3[_0x2032d6(0x432)])!==G['OK'])return;this[_0x2032d6(0x2bd)](_0x15ad18[_0x2032d6(0x1df)],_0xc964c7);}catch(_0x355b59){this[_0x2032d6(0x1ae)][_0x2032d6(0x262)](_0x355b59);}}async[_0x37525a(0x408)](_0xa9f890){const _0x4ac6ea=_0x37525a;var _0x432047,_0x4cbd3b;const _0x3af812=Date[_0x4ac6ea(0x1a9)]();try{const _0x11d105=((_0x432047=this[_0x4ac6ea(0x22e)][_0x4ac6ea(0x332)](u[_0x4ac6ea(0x40b)]))==null?void 0x0:_0x432047[_0x4ac6ea(0x27a)])||is,_0x21ab63=(await this['_httpService'][_0x4ac6ea(0x195)](_0x11d105,{'body':JSON[_0x4ac6ea(0x335)]({'taskId':_0xa9f890})}))[_0x4ac6ea(0x1f8)];if(((_0x4cbd3b=_0x21ab63[_0x4ac6ea(0x262)])==null?void 0x0:_0x4cbd3b[_0x4ac6ea(0x432)])!==G['OK'])return;this[_0x4ac6ea(0x2bd)](_0x21ab63[_0x4ac6ea(0x1df)],_0x3af812);}catch(_0x4f1b13){this[_0x4ac6ea(0x1ae)][_0x4ac6ea(0x262)](_0x4f1b13);}}[_0x37525a(0x2ee)](){const _0x1d9ce7=_0x37525a;return this[_0x1d9ce7(0x272)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x1d9ce7(0x396)]>0x0;}[_0x37525a(0x19b)](){const _0x4dd312=_0x37525a;this[_0x4dd312(0x398)]&&(clearTimeout(this[_0x4dd312(0x398)]),this[_0x4dd312(0x398)]=null);}[_0x37525a(0x1c6)](){const _0xa2aa71=_0x37525a;this[_0xa2aa71(0x44b)]['show']({'content':this[_0xa2aa71(0x43c)]['t'](_0xa2aa71(0x230)),'type':p[_0xa2aa71(0x224)]['Loading']});}['_hasFormulaInDirtyRanges'](_0x5e696b){const _0x320bdd=_0x37525a;for(const _0x4ce1ed of _0x5e696b){const {unitId:_0x25a254,sheetId:_0x1776c5,range:_0x8fb33f}=_0x4ce1ed,_0x211d9c=this[_0x320bdd(0x3cf)]['getUnit'](_0x25a254);if(!_0x211d9c)continue;const _0x571b0c=_0x211d9c[_0x320bdd(0x333)](_0x1776c5);if(!_0x571b0c)continue;const _0xacd8f8=_0x571b0c['getCellMatrix']();for(let _0x59332a=_0x8fb33f[_0x320bdd(0x20e)];_0x59332a<=_0x8fb33f['endRow'];_0x59332a++)for(let _0x2909ef=_0x8fb33f[_0x320bdd(0x2c7)];_0x2909ef<=_0x8fb33f['endColumn'];_0x2909ef++){const _0x296304=_0xacd8f8[_0x320bdd(0x243)](_0x59332a,_0x2909ef);if(_0x296304&&(a['isFormulaString'](_0x296304['f'])||a[_0x320bdd(0x275)](_0x296304['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x37525a(0x221)](O[_0x37525a(0x2b2)])),L(0x1,a['ICommandService']),L(0x2,a[_0x37525a(0x3f9)]),L(0x3,a[_0x37525a(0x221)](x['HTTPService'])),L(0x4,a[_0x37525a(0x2d4)]),L(0x5,a['ILogService']),L(0x6,a[_0x37525a(0x221)](a[_0x37525a(0x1fb)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x5cbe89,_0x4bf6af,_0x14f1e1,_0x51e76c)=>{const _0x45a613=_0x37525a;for(var _0x31d60d=_0x51e76c>0x1?void 0x0:_0x51e76c?ns(_0x4bf6af,_0x14f1e1):_0x4bf6af,_0x181262=_0x5cbe89[_0x45a613(0x1cd)]-0x1,_0x13d04f;_0x181262>=0x0;_0x181262--)(_0x13d04f=_0x5cbe89[_0x181262])&&(_0x31d60d=_0x13d04f(_0x31d60d)||_0x31d60d);return _0x31d60d;},Se=(_0x5091f7,_0x121b05)=>(_0x39d602,_0x285e17)=>_0x121b05(_0x39d602,_0x285e17,_0x5091f7);let Te=class extends a[_0x37525a(0x3cb)]{constructor(_0x28a4ec,_0x4fb214,_0x477119){const _0x1f4f11=_0x37525a;super(),_(this,_0x1f4f11(0x39c),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x1f4f11(0x403),!0x1),(this[_0x1f4f11(0x22e)]=_0x28a4ec,this[_0x1f4f11(0x367)]=_0x4fb214,this[_0x1f4f11(0x1ee)]=_0x477119);}[_0x37525a(0x1f4)](){this['_disabled']=!0x0;}[_0x37525a(0x226)](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x37525a(0x37c)](){const _0x4ed106=_0x37525a;this[_0x4ed106(0x28e)]()[_0x4ed106(0x213)](()=>super['dispose']());}async[_0x37525a(0x318)](_0xc62251){const _0x484e5a=_0x37525a;return this[_0x484e5a(0x403)]?null:this[_0x484e5a(0x367)][_0x484e5a(0x368)](u[_0x484e5a(0x31d)](_0xc62251));}async[_0x37525a(0x44e)](_0xc84b6d,_0x5a7a99){const _0x4b2668=_0x37525a;return!!this[_0x4b2668(0x367)][_0x4b2668(0x3e7)](_0xc84b6d,_0x5a7a99);}[_0x37525a(0x1dc)](_0x1a93e6,_0x1fe9ea,_0x523449,_0x3583ec){const _0x55de24=_0x37525a,_0x49f22a=this[_0x55de24(0x1ee)][_0x55de24(0x18e)](_0x1a93e6);this[_0x55de24(0x39c)]['set'](_0x1a93e6,{'unitID':_0x1a93e6,'type':_0x1fe9ea,'awaitingChangeset':_0x523449,'mutations':_0x3583ec,'rev':_0x49f22a}),this['_saveTaskMap'][_0x55de24(0x3fa)](_0x1a93e6)||this[_0x55de24(0x3e8)](_0x1a93e6);}[_0x37525a(0x3e8)](_0x488419){const _0x1275ce=_0x37525a,_0x4050a1=this['_getSaveTimeout']();_0x4050a1===0x0?this['_saveCache'](_0x488419):this[_0x1275ce(0x200)][_0x1275ce(0x3d1)](_0x488419,setTimeout(()=>this['_saveCache'](_0x488419),_0x4050a1));}[_0x37525a(0x35b)](){const _0x4cd066=_0x37525a;var _0x32a428;return(_0x32a428=this[_0x4cd066(0x22e)][_0x4cd066(0x332)](u[_0x4cd066(0x40a)]))!=null?_0x32a428:u[_0x4cd066(0x2c6)];}[_0x37525a(0x2cb)](_0x47cbbe){const _0x5ebc96=_0x37525a,_0x5a870f=this['_saveTaskMap'][_0x5ebc96(0x2e7)](_0x47cbbe);return _0x5a870f!==void 0x0&&window[_0x5ebc96(0x3e5)](_0x5a870f),this[_0x5ebc96(0x367)][_0x5ebc96(0x3e7)](u['getLocalCacheKey'](_0x47cbbe),this[_0x5ebc96(0x39c)][_0x5ebc96(0x2e7)](_0x47cbbe))[_0x5ebc96(0x213)](()=>this['_saveTaskMap'][_0x5ebc96(0x3ed)](_0x47cbbe));}async[_0x37525a(0x28e)](){const _0x5556de=_0x37525a,_0x217ebb=[];this[_0x5556de(0x200)][_0x5556de(0x34f)]((_0x2de8ec,_0x5f292c)=>{const _0x187297=_0x5556de;window[_0x187297(0x3e5)](_0x2de8ec),_0x217ebb[_0x187297(0x2b7)](this[_0x187297(0x2cb)](_0x5f292c)[_0x187297(0x213)](()=>{const _0x2acef5=_0x187297;this['_saveTaskMap'][_0x2acef5(0x3ed)](_0x5f292c);}));}),await Promise[_0x5556de(0x3dd)](_0x217ebb);}};Te=rs([Se(0x0,a[_0x37525a(0x3f9)]),Se(0x1,a[_0x37525a(0x21d)]),Se(0x2,a['Inject'](g['RevisionService']))],Te);class ke extends a[_0x37525a(0x38a)]{constructor(){const _0x3da702=_0x37525a;super(),_(this,_0x3da702(0x233)),this[_0x3da702(0x233)]=I[_0x3da702(0x2c8)](window,_0x3da702(0x3b5))[_0x3da702(0x1a0)](I[_0x3da702(0x382)](this[_0x3da702(0x3b6)]),I[_0x3da702(0x305)](0x1),I['mapTo'](void 0x0));}['setParam'](_0x4e2ba0,_0x164546,_0x185ced=!0x1){const _0x387a1f=_0x37525a,_0x54b2ee=new URL(window['location'][_0x387a1f(0x2a4)]);_0x54b2ee[_0x387a1f(0x27e)][_0x387a1f(0x3d1)](_0x4e2ba0,_0x164546),_0x185ced?window['history'][_0x387a1f(0x427)]('','',_0x54b2ee['toString']()):window[_0x387a1f(0x253)]['pushState']('','',_0x54b2ee[_0x387a1f(0x38d)]());}[_0x37525a(0x341)](_0x678e49,_0x4615fc=!0x1){const _0x5ee676=_0x37525a,_0x592154=new URL(window['location'][_0x5ee676(0x2a4)]);_0x592154[_0x5ee676(0x27e)]['delete'](_0x678e49),_0x4615fc?window[_0x5ee676(0x253)][_0x5ee676(0x427)]('','',_0x592154[_0x5ee676(0x38d)]()):window['history'][_0x5ee676(0x317)]('','',_0x592154['toString']());}[_0x37525a(0x29f)](_0xc23746){const _0xa8bd8e=_0x37525a;var _0x17ce13;return(_0x17ce13=new URL(window[_0xa8bd8e(0x3d3)]['href'])[_0xa8bd8e(0x27e)][_0xa8bd8e(0x2e7)](_0xc23746))!=null?_0x17ce13:void 0x0;}}var os=Object[_0x37525a(0x3ae)],as=Object[_0x37525a(0x268)],cs=(_0x5e4440,_0x4f02e8,_0x3db1ae)=>_0x4f02e8 in _0x5e4440?os(_0x5e4440,_0x4f02e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3db1ae}):_0x5e4440[_0x4f02e8]=_0x3db1ae,ls=(_0x2ce15e,_0x3a3e68,_0x1b41af,_0x2785a5)=>{const _0x29eb39=_0x37525a;for(var _0x5e5616=_0x2785a5>0x1?void 0x0:_0x2785a5?as(_0x3a3e68,_0x1b41af):_0x3a3e68,_0x4845cd=_0x2ce15e[_0x29eb39(0x1cd)]-0x1,_0x9c3483;_0x4845cd>=0x0;_0x4845cd--)(_0x9c3483=_0x2ce15e[_0x4845cd])&&(_0x5e5616=_0x9c3483(_0x5e5616)||_0x5e5616);return _0x5e5616;},de=(_0x1d106f,_0x3631fb)=>(_0x21e6bb,_0x34e45d)=>_0x3631fb(_0x21e6bb,_0x34e45d,_0x1d106f),_s=(_0x12670d,_0x46356d,_0x4ef6ea)=>cs(_0x12670d,_0x46356d+'',_0x4ef6ea);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x424250=Me,_0x341a99,_0x4573bc,_0x14cba1){const _0x380002=_0x37525a;super(),this[_0x380002(0x241)]=_0x424250,this[_0x380002(0x339)]=_0x341a99,this[_0x380002(0x277)]=_0x4573bc,this[_0x380002(0x22e)]=_0x14cba1;const {..._0x525ffe}=a[_0x380002(0x270)]({},Me,this[_0x380002(0x241)]);this[_0x380002(0x22e)][_0x380002(0x386)](Yt,_0x525ffe);}[_0x37525a(0x436)](){const _0x17a46f=_0x37525a;this[_0x17a46f(0x1f5)](),this[_0x17a46f(0x313)]();}['onRendered'](){const _0x1a358e=_0x37525a;this[_0x1a358e(0x293)]();}['_registerDependencies'](){const _0x1431b1=_0x37525a;var _0x3b5a90;const _0x45f1dd=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x1431b1(0x1f2)]}],[u[_0x1431b1(0x1ab)],{'useClass':Te}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x1431b1(0x31b)]]];this[_0x1431b1(0x241)][_0x1431b1(0x2a7)]&&_0x45f1dd[_0x1431b1(0x2b7)]([Q]),a[_0x1431b1(0x261)](this['_injector'],a[_0x1431b1(0x35a)](_0x45f1dd,(_0x3b5a90=this['_config'])==null?void 0x0:_0x3b5a90['override']));}[_0x37525a(0x293)](){const _0x533645=_0x37525a;this[_0x533645(0x1ad)](this[_0x533645(0x339)][_0x533645(0x350)](a['UniverInstanceType'][_0x533645(0x279)],[Ee])),this[_0x533645(0x1ad)](this[_0x533645(0x339)][_0x533645(0x350)](a[_0x533645(0x409)]['UNIVER_SHEET'],[Ce]));}[_0x37525a(0x313)](){const _0x3ac9f0=_0x37525a;a[_0x3ac9f0(0x251)](this[_0x3ac9f0(0x277)],[[F],[exports[_0x3ac9f0(0x3bf)]],[ie],[Z],[exports[_0x3ac9f0(0x31b)]],[ne]]),this['_config']['enableFrontendLog']&&a[_0x3ac9f0(0x251)](this[_0x3ac9f0(0x277)],[[Q]]);}},_s(exports[_0x37525a(0x1aa)],_0x37525a(0x235),hs),exports[_0x37525a(0x1aa)]=ls([a[_0x37525a(0x199)](u[_0x37525a(0x448)]),de(0x1,C[_0x37525a(0x402)]),de(0x2,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),de(0x3,a[_0x37525a(0x3f9)])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x37525a(0x268)],Is=(_0xe5cb79,_0x5e80f1,_0x4bf071,_0x48f84b)=>{const _0x4d4727=_0x37525a;for(var _0x2b367a=_0x48f84b>0x1?void 0x0:_0x48f84b?us(_0x5e80f1,_0x4bf071):_0x5e80f1,_0x3b1fd8=_0xe5cb79[_0x4d4727(0x1cd)]-0x1,_0x13c148;_0x3b1fd8>=0x0;_0x3b1fd8--)(_0x13c148=_0xe5cb79[_0x3b1fd8])&&(_0x2b367a=_0x13c148(_0x2b367a)||_0x2b367a);return _0x2b367a;},W=(_0x31242e,_0x14d6f0)=>(_0x4f44b4,_0x10645e)=>_0x14d6f0(_0x4f44b4,_0x10645e,_0x31242e);exports['BrowserCollaborationSocketService']=class extends u[_0x37525a(0x3da)]{constructor(_0x58abb4,_0x850268,_0x168dfc,_0x4ccb45,_0x47977d){super(_0x58abb4,_0x850268,_0x168dfc,_0x4ccb45,_0x47977d);}async[_0x37525a(0x32e)](_0x14cd41){const _0x23e195=_0x37525a,_0x5e8583=await this[_0x23e195(0x297)](),_0x586b5d=this[_0x23e195(0x1fc)](_0x14cd41,_0x5e8583);return this[_0x23e195(0x1c0)](_0x586b5d);}[_0x37525a(0x1fc)](_0x5047d3,_0x1f8163){const _0x4d9947=_0x37525a,_0x11d3a5=typeof window>'u'?new URL(_0x5047d3):new URL(_0x5047d3,window[_0x4d9947(0x3d3)][_0x4d9947(0x197)]);_0x11d3a5[_0x4d9947(0x27e)][_0x4d9947(0x3d1)](_0x4d9947(0x3f8),_0x1f8163);const _0x499dc2=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4d9947(0x3d3)][_0x4d9947(0x19f)]);return _0x499dc2[_0x4d9947(0x2e7)](_0x4d9947(0x3c4))&&_0x11d3a5[_0x4d9947(0x27e)][_0x4d9947(0x3d1)](_0x4d9947(0x3c4),_0x499dc2[_0x4d9947(0x2e7)](_0x4d9947(0x3c4))),_0x11d3a5[_0x4d9947(0x38d)]();}async['_getSessionTicket'](){const _0x26b9e4=_0x37525a;var _0x1353fb,_0xde3826,_0x1653aa;const _0x256e25=this[_0x26b9e4(0x22e)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x101325=(_0x1353fb=_0x256e25==null?void 0x0:_0x256e25[_0x26b9e4(0x3c3)])!=null?_0x1353fb:u[_0x26b9e4(0x37a)];return(_0x1653aa=(_0xde3826=(await this[_0x26b9e4(0x1c1)]['get'](_0x101325,{'headers':{'Content-Type':_0x26b9e4(0x381)}}))[_0x26b9e4(0x1f8)])==null?void 0x0:_0xde3826[_0x26b9e4(0x1e4)])!=null?_0x1653aa:'';}},exports[_0x37525a(0x3f2)]=Is([W(0x0,a['Inject'](a['Injector'])),W(0x1,a[_0x37525a(0x221)](x[_0x37525a(0x2d7)])),W(0x2,a[_0x37525a(0x3f9)]),W(0x3,a[_0x37525a(0x1a3)]),W(0x4,g[_0x37525a(0x196)])],exports[_0x37525a(0x3f2)]);var Ss=Object[_0x37525a(0x268)],ds=(_0x255a12,_0x19c346,_0x2b43cf,_0x1e68ac)=>{for(var _0x4e0c68=_0x1e68ac>0x1?void 0x0:_0x1e68ac?Ss(_0x19c346,_0x2b43cf):_0x19c346,_0x40850f=_0x255a12['length']-0x1,_0x3c638b;_0x40850f>=0x0;_0x40850f--)(_0x3c638b=_0x255a12[_0x40850f])&&(_0x4e0c68=_0x3c638b(_0x4e0c68)||_0x4e0c68);return _0x4e0c68;},fe=(_0x24087d,_0x5a0639)=>(_0x271435,_0x54d0dd)=>_0x5a0639(_0x271435,_0x54d0dd,_0x24087d);exports[_0x37525a(0x1d4)]=class extends a[_0x37525a(0x3cb)]{constructor(_0x50b210,_0x1e6595,_0x4ea723){const _0x2b4e65=_0x37525a;super(),this['_instanceService']=_0x50b210,this['_httpService']=_0x1e6595,this[_0x2b4e65(0x22e)]=_0x4ea723;}async['runOnServer'](_0x3c69d8,_0x2c7f25,_0x520ee1,..._0x117808){const _0x21a83f=_0x37525a;var _0x4e791b,_0x2a81a2,_0x2aaa61,_0x52e02b;const _0x4be222=this[_0x21a83f(0x20b)][_0x21a83f(0x3c5)]();if(!_0x4be222)throw new Error(_0x21a83f(0x26a));const _0x433f95=((_0x4e791b=this[_0x21a83f(0x22e)][_0x21a83f(0x332)](u[_0x21a83f(0x42c)]))!=null?_0x4e791b:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x3c69d8+'/run/'+_0x2c7f25,_0x27ea46=new URL(window['location'][_0x21a83f(0x2a4)]),_0x33ae93={'scriptId':_0x3c69d8,'runId':(_0x2a81a2=_0x27ea46[_0x21a83f(0x27e)][_0x21a83f(0x2e7)](_0x21a83f(0x3c4)))!=null?_0x2a81a2:'','function':_0x2c7f25,'unitId':_0x4be222[_0x21a83f(0x212)](),'argsOfFunction':JSON[_0x21a83f(0x335)](_0x117808),'invokeId':(_0x2aaa61=_0x520ee1[_0x21a83f(0x202)])!=null?_0x2aaa61:'','executionId':(_0x52e02b=_0x520ee1['executionId'])!=null?_0x52e02b:''};try{const _0x56eab1=await this[_0x21a83f(0x1c1)][_0x21a83f(0x195)](_0x433f95,{'body':_0x33ae93});return _0x56eab1[_0x21a83f(0x1f8)]['error']&&_0x56eab1[_0x21a83f(0x1f8)][_0x21a83f(0x262)]['code']!==G['OK']?'Failed':_0x56eab1[_0x21a83f(0x1f8)][_0x21a83f(0x1d1)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x37525a(0x2d4)]),fe(0x1,a[_0x37525a(0x221)](x['HTTPService'])),fe(0x2,a[_0x37525a(0x3f9)])],exports[_0x37525a(0x1d4)]);const we=0x7530,ye=_0x37525a(0x453);class fs extends a['Disposable']{constructor(){const _0x377c9f=_0x37525a;super(),_(this,_0x377c9f(0x30e),a['generateRandomId']()),_(this,_0x377c9f(0x322),new Set()),_(this,_0x377c9f(0x2dc),new Map()),_(this,_0x377c9f(0x435),null),_(this,_0x377c9f(0x265),new Map()),_(this,_0x377c9f(0x1d6),new Map()),this[_0x377c9f(0x41c)]();}['dispose'](){const _0x467ee0=_0x37525a;super['dispose'](),this[_0x467ee0(0x265)][_0x467ee0(0x34f)]((_0x415f76,_0x55347d)=>this[_0x467ee0(0x34c)](_0x55347d)),this[_0x467ee0(0x435)]&&window[_0x467ee0(0x400)](this['_heartbeatTimer']);}[_0x37525a(0x35f)](_0x2b37dd){const _0x2e808a=_0x37525a;return this[_0x2e808a(0x2c1)](_0x2b37dd)['pipe'](I[_0x2e808a(0x232)]());}['editingUnit'](_0x338b45){const _0x100868=_0x37525a;this[_0x100868(0x322)][_0x100868(0x227)]===0x0&&this['_scheduleHeartbeat'](),this[_0x100868(0x322)][_0x100868(0x276)](_0x338b45),this[_0x100868(0x2c2)]({'type':0x0,'memberID':this[_0x100868(0x30e)],'unitIDs':[_0x338b45],'isForwarded':!0x1});}['disposeUnit'](_0x554b7e){const _0x584a3c=_0x37525a;this[_0x584a3c(0x322)]['delete'](_0x554b7e),this[_0x584a3c(0x322)][_0x584a3c(0x227)]===0x0&&this['_heartbeatTimer']&&window[_0x584a3c(0x400)](this['_heartbeatTimer']);}[_0x37525a(0x41c)](){const _0x372574=_0x37525a;this['disposeWithMe'](a['toDisposable'](I[_0x372574(0x2c8)](window,_0x372574(0x3e6))[_0x372574(0x375)](_0x3ef02e=>{const _0x43f48e=_0x372574;if(_0x3ef02e[_0x43f48e(0x343)]!==ye||!_0x3ef02e[_0x43f48e(0x41f)])return;const _0x170777=JSON[_0x43f48e(0x446)](_0x3ef02e['newValue']);this['_handleEvent'](_0x170777);}))),window[_0x372574(0x1ea)]('unload',()=>this[_0x372574(0x2c2)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x372574(0x3a7)](this['_selfUnitIDs'])}));}[_0x37525a(0x2d1)](_0x2c819e){const _0x51f3fa=_0x37525a;switch(_0x2c819e['type']){case 0x0:this[_0x51f3fa(0x36b)](_0x2c819e);break;case 0x1:this['_handleLeaveEvent'](_0x2c819e);break;case 0x2:this[_0x51f3fa(0x228)](_0x2c819e);break;}}[_0x37525a(0x36b)](_0x4245a8){const _0x1dd4a0=_0x37525a,{unitIDs:_0x4b388a,memberID:_0x2cb488,isForwarded:_0x8009c3}=_0x4245a8;_0x4b388a[_0x1dd4a0(0x34f)](_0xae5e95=>{const _0x165574=_0x1dd4a0;if(!_0x8009c3&&this['_unitOnClients'][_0x165574(0x3fa)](_0xae5e95)&&this['_ensureSubject'](_0xae5e95)[_0x165574(0x19d)](u[_0x165574(0x452)][_0x165574(0x203)]),!this[_0x165574(0x2dc)]['has'](_0xae5e95)||!this[_0x165574(0x2dc)][_0x165574(0x2e7)](_0xae5e95)[_0x165574(0x3fa)](_0x2cb488)){const _0x3ad8ef=this[_0x165574(0x2dc)]['get'](_0xae5e95)||new Set();_0x3ad8ef[_0x165574(0x276)](_0x2cb488),this[_0x165574(0x2dc)][_0x165574(0x3d1)](_0xae5e95,_0x3ad8ef),this[_0x165574(0x1e3)](_0x2cb488);}}),_0x8009c3||this['_send']({'type':0x0,'memberID':this[_0x1dd4a0(0x30e)],'unitIDs':[...this[_0x1dd4a0(0x322)]],'isForwarded':!0x0});}[_0x37525a(0x1e3)](_0x2b323c){const _0x1fdf4b=_0x37525a;this[_0x1fdf4b(0x34c)](_0x2b323c);const _0x60d108=window['setTimeout'](()=>{const _0x258828=_0x1fdf4b;this['_unitOnClients'][_0x258828(0x34f)](_0x178c3a=>{const _0x97229=_0x258828;_0x178c3a[_0x97229(0x3ed)](_0x2b323c);});},we*0x2);this[_0x1fdf4b(0x265)]['set'](_0x2b323c,_0x60d108);}[_0x37525a(0x34c)](_0x2e50cf){const _0x321bef=_0x37525a;if(this[_0x321bef(0x265)]['has'](_0x2e50cf)){const _0x3e3721=this[_0x321bef(0x265)][_0x321bef(0x2e7)](_0x2e50cf);_0x3e3721&&window[_0x321bef(0x3e5)](_0x3e3721),this[_0x321bef(0x265)][_0x321bef(0x3d1)](_0x2e50cf,null);}}[_0x37525a(0x1d5)](_0x4067a7){const _0x4d1fb0=_0x37525a,{memberID:_0x59e151,unitIDs:_0x30b704}=_0x4067a7;_0x30b704[_0x4d1fb0(0x34f)](_0x5dcdd8=>{const _0x341249=_0x4d1fb0;var _0x4ccc1c;const _0x1ca1a9=this[_0x341249(0x2dc)]['get'](_0x5dcdd8);_0x1ca1a9&&(_0x1ca1a9[_0x341249(0x3ed)](_0x59e151),(_0x4ccc1c=this[_0x341249(0x2c1)](_0x5dcdd8))==null||_0x4ccc1c[_0x341249(0x19d)](_0x1ca1a9['size']===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x341249(0x452)][_0x341249(0x203)]));}),this['_removeClearOtherTimer'](_0x59e151);}['_handleHeartbeatEvent'](_0x92dc43){const _0x3a0df7=_0x37525a;this[_0x3a0df7(0x1e3)](_0x92dc43[_0x3a0df7(0x1b6)]);}[_0x37525a(0x2c2)](_0x13cb98){const _0x50ebc8=_0x37525a;localStorage[_0x50ebc8(0x3e7)](ye,JSON['stringify'](_0x13cb98));}[_0x37525a(0x407)](){const _0x3b4e69=_0x37525a;this['_heartbeatTimer']=window[_0x3b4e69(0x2a3)](()=>{const _0x493714=_0x3b4e69;this['_send']({'type':0x2,'memberID':this[_0x493714(0x30e)]});},we);}[_0x37525a(0x2c1)](_0x645e85){const _0xd1e1d9=_0x37525a;return this[_0xd1e1d9(0x1d6)][_0xd1e1d9(0x3fa)](_0x645e85)||this[_0xd1e1d9(0x1d6)][_0xd1e1d9(0x3d1)](_0x645e85,new I[(_0xd1e1d9(0x40f))](u['UnitStatus'][_0xd1e1d9(0x24c)])),this[_0xd1e1d9(0x1d6)][_0xd1e1d9(0x2e7)](_0x645e85);}}exports[_0x37525a(0x2dd)]=Oe,exports[_0x37525a(0x1e5)]=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x37525a(0x39d)]=ke;