@univerjs-pro/collaboration-client-ui 0.12.4 → 0.13.0-insiders.20251215-64041bb

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 +17 -17
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x108f61=_0x5f13;(function(_0x4825a9,_0x18eefb){const _0x4ce012=_0x5f13,_0x3f0042=_0x4825a9();while(!![]){try{const _0x55e198=parseInt(_0x4ce012(0x11b))/0x1*(-parseInt(_0x4ce012(0x38d))/0x2)+parseInt(_0x4ce012(0x15b))/0x3+parseInt(_0x4ce012(0x30a))/0x4+parseInt(_0x4ce012(0x119))/0x5+parseInt(_0x4ce012(0x32f))/0x6+-parseInt(_0x4ce012(0x3aa))/0x7+-parseInt(_0x4ce012(0x132))/0x8*(parseInt(_0x4ce012(0x2ad))/0x9);if(_0x55e198===_0x18eefb)break;else _0x3f0042['push'](_0x3f0042['shift']());}catch(_0x52e5ce){_0x3f0042['push'](_0x3f0042['shift']());}}}(_0xe0ef,0x343d2));var Xe=Object[_0x108f61(0x1d2)],Ke=(_0x47b080,_0x57a3e8,_0x5f1f18)=>_0x57a3e8 in _0x47b080?Xe(_0x47b080,_0x57a3e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f1f18}):_0x47b080[_0x57a3e8]=_0x5f1f18,_=(_0x285588,_0x4b9c0b,_0x356fe6)=>Ke(_0x285588,typeof _0x4b9c0b!=_0x108f61(0x135)?_0x4b9c0b+'':_0x4b9c0b,_0x356fe6);Object[_0x108f61(0x1d2)](exports,Symbol['toStringTag'],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),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:_0x698f10,..._0x2a5746}){const _0x27cb7e=_0x108f61,{icon:_0x5d2977,id:_0x4c8363,className:_0x24bad6,extend:_0x25c842,..._0x25403d}=_0x2a5746,_0x38a336=(_0x27cb7e(0x176)+_0x4c8363+'\x20'+(_0x24bad6||''))[_0x27cb7e(0x31c)](),_0x1b01ec=A['useRef']('_'+Qe());return $e(_0x5d2977,''+_0x4c8363,{'defIds':_0x5d2977['defIds'],'idSuffix':_0x1b01ec['current']},{'ref':_0x698f10,'className':_0x38a336,..._0x25403d},_0x25c842);}function $e(_0x5c26fe,_0x19a1f7,_0x38303d,_0x44c78b,_0x5212d1){const _0x41fc16=_0x108f61;return A['createElement'](_0x5c26fe['tag'],{'key':_0x19a1f7,...Je(_0x5c26fe,_0x38303d,_0x5212d1),..._0x44c78b},(Ze(_0x5c26fe,_0x38303d)[_0x41fc16(0x22a)]||[])['map']((_0x59dae2,_0x19560c)=>$e(_0x59dae2,_0x19a1f7+'-'+_0x5c26fe[_0x41fc16(0x2d7)]+'-'+_0x19560c,_0x38303d,void 0x0,_0x5212d1)));}function Je(_0x52305e,_0x15954,_0x3cb210){const _0x261bb7=_0x108f61,_0x4539a3={..._0x52305e[_0x261bb7(0x247)]};_0x3cb210!=null&&_0x3cb210[_0x261bb7(0x1a4)]&&_0x4539a3[_0x261bb7(0x303)]===_0x261bb7(0x1a4)&&(_0x4539a3[_0x261bb7(0x303)]=_0x3cb210['colorChannel1']),_0x52305e['tag']===_0x261bb7(0x11c)&&_0x4539a3['id']&&(_0x4539a3['id']=_0x4539a3['id']+_0x15954[_0x261bb7(0x3b9)]),Object[_0x261bb7(0x351)](_0x4539a3)[_0x261bb7(0xf8)](([_0x221d66,_0x1fc39e])=>{const _0x3d0104=_0x261bb7;_0x221d66===_0x3d0104(0x11c)&&typeof _0x1fc39e==_0x3d0104(0x149)&&(_0x4539a3[_0x221d66]=_0x1fc39e['replace'](/url\(#(.*)\)/,_0x3d0104(0x368)+_0x15954[_0x3d0104(0x3b9)]+')'));});const {defIds:_0x1f3826}=_0x15954;return!_0x1f3826||_0x1f3826[_0x261bb7(0x14d)]===0x0||(_0x52305e[_0x261bb7(0x2d7)]===_0x261bb7(0x1e3)&&_0x4539a3[_0x261bb7(0x13c)]&&(_0x4539a3['xlink:href']=_0x4539a3[_0x261bb7(0x13c)]+_0x15954[_0x261bb7(0x3b9)]),Object[_0x261bb7(0x351)](_0x4539a3)[_0x261bb7(0xf8)](([_0x6a186c,_0x294ca2])=>{const _0x2a8c0a=_0x261bb7;typeof _0x294ca2==_0x2a8c0a(0x149)&&(_0x4539a3[_0x6a186c]=_0x294ca2[_0x2a8c0a(0x272)](/url\(#(.*)\)/,_0x2a8c0a(0x368)+_0x15954[_0x2a8c0a(0x3b9)]+')'));})),_0x4539a3;}function Ze(_0x2c0b50,_0x188470){const _0x5c53ed=_0x108f61;var _0x64b96a;const {defIds:_0x4ff903}=_0x188470;return!_0x4ff903||_0x4ff903['length']===0x0?_0x2c0b50:_0x2c0b50[_0x5c53ed(0x2d7)]==='defs'&&((_0x64b96a=_0x2c0b50[_0x5c53ed(0x22a)])!=null&&_0x64b96a[_0x5c53ed(0x14d)])?{..._0x2c0b50,'children':_0x2c0b50[_0x5c53ed(0x22a)]['map'](_0x49500a=>typeof _0x49500a[_0x5c53ed(0x247)]['id']==_0x5c53ed(0x149)&&_0x4ff903&&_0x4ff903[_0x5c53ed(0x36c)](_0x49500a[_0x5c53ed(0x247)]['id'])?{..._0x49500a,'attrs':{..._0x49500a[_0x5c53ed(0x247)],'id':_0x49500a[_0x5c53ed(0x247)]['id']+_0x188470[_0x5c53ed(0x3b9)]}}:_0x49500a)}:_0x2c0b50;}function Qe(){const _0x3896f3=_0x108f61;return Math[_0x3896f3(0x2cb)]()[_0x3896f3(0x26c)](0x24)[_0x3896f3(0x34a)](0x2,0x8);}pe['displayName']=_0x108f61(0x223);const et={'tag':_0x108f61(0x123),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x108f61(0x19f),'viewBox':_0x108f61(0x2b4),'width':_0x108f61(0x129),'height':_0x108f61(0x129)},'children':[{'tag':'g','attrs':{'clipPath':_0x108f61(0x36e)},'children':[{'tag':_0x108f61(0x313),'attrs':{'stroke':_0x108f61(0x1ef),'d':_0x108f61(0x159),'strokeLinecap':_0x108f61(0x289),'strokeLinejoin':_0x108f61(0x289),'strokeWidth':1.2}}]},{'tag':_0x108f61(0x1e4),'attrs':{},'children':[{'tag':_0x108f61(0x34e),'attrs':{'id':_0x108f61(0x2db)},'children':[{'tag':'path','attrs':{'fill':_0x108f61(0x226),'d':_0x108f61(0x203)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x108f61(0x312)](function(_0x2186d1,_0x49ba56){const _0x185f1d=_0x108f61;return A[_0x185f1d(0x205)](pe,Object[_0x185f1d(0x30e)]({},_0x2186d1,{'id':_0x185f1d(0x2b5),'ref':_0x49ba56,'icon':et}));});xe[_0x108f61(0x173)]=_0x108f61(0x1aa);const tt={'tag':'svg','attrs':{'xmlns':_0x108f61(0x1e9),'fill':_0x108f61(0x19f),'viewBox':_0x108f61(0x2a4),'width':_0x108f61(0x129),'height':_0x108f61(0x129)},'children':[{'tag':'g','attrs':{'clipPath':_0x108f61(0x38b)},'children':[{'tag':'path','attrs':{'stroke':_0x108f61(0x1ef),'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':_0x108f61(0x289),'strokeLinejoin':_0x108f61(0x289),'strokeWidth':1.2}}]},{'tag':_0x108f61(0x1e4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x108f61(0x2d1)},'children':[{'tag':'path','attrs':{'fill':_0x108f61(0x226),'d':_0x108f61(0x203),'transform':_0x108f61(0x1f5)}}]}]}],'defIds':[_0x108f61(0x2d1)]},Be=A[_0x108f61(0x312)](function(_0xc3664f,_0x9b771c){const _0x233337=_0x108f61;return A[_0x233337(0x205)](pe,Object[_0x233337(0x30e)]({},_0xc3664f,{'id':'on-line-icon','ref':_0x9b771c,'icon':tt}));});Be[_0x108f61(0x173)]=_0x108f61(0x363);function st(_0x24b25f){const _0x22d033=_0x108f61;switch(_0x24b25f){case u[_0x22d033(0x32d)][_0x22d033(0x3c0)]:return _0x22d033(0x322);case u[_0x22d033(0x32d)]['CONFLICT']:return _0x22d033(0x19c);case u[_0x22d033(0x32d)][_0x22d033(0x1bc)]:return'collabStatus.fetchMiss';case u[_0x22d033(0x32d)][_0x22d033(0x162)]:return _0x22d033(0x3a6);case u[_0x22d033(0x32d)][_0x22d033(0x240)]:case u[_0x22d033(0x32d)][_0x22d033(0x2e7)]:return'collabStatus.syncing';case u[_0x22d033(0x32d)][_0x22d033(0x1f7)]:case u[_0x22d033(0x32d)][_0x22d033(0x116)]:return _0x22d033(0xf7);}}function it(_0x260db4){const _0x350b18=_0x108f61,{status$:_0xb84a58}=_0x260db4,_0xedea4d=O['useObservable'](_0xb84a58,u[_0x350b18(0x32d)][_0x350b18(0x162)]),_0x1bb666=O['useDependency'](a[_0x350b18(0x179)]),_0x4d179f=O['useDependency'](u[_0x350b18(0x2af)]),_0x4c8d14=_0xedea4d!==u['CollaborationStatus']['OFFLINE'],_0x55403a=_0x1bb666['t'](st(_0xedea4d)),_0x204bd3=_0x4c8d14?M[_0x350b18(0x33c)](Be,{}):M[_0x350b18(0x33c)](xe,{}),_0x11bf33=A[_0x350b18(0x284)](()=>{const _0x35efe5=_0x350b18;_0x4c8d14||_0x4d179f[_0x35efe5(0x2d5)]();},[_0x4c8d14,_0x4d179f]);function _0x25afd7(){const _0xc5ed77=_0x350b18;return M[_0xc5ed77(0x2e4)](_0xc5ed77(0x17c),{'className':_0xc5ed77(0x222),'onClick':_0x11bf33,'children':[M[_0xc5ed77(0x33c)](_0xc5ed77(0x17c),{'className':p[_0xc5ed77(0x339)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x4c8d14,'univer-text-red-500':!_0x4c8d14}),'children':_0x204bd3}),M[_0xc5ed77(0x33c)](_0xc5ed77(0x17c),{'className':_0xc5ed77(0x178),'children':_0x55403a})]});}return _0x4c8d14?_0x25afd7():M[_0x350b18(0x33c)](p[_0x350b18(0x263)],{'title':_0x1bb666['t'](_0x350b18(0x2e2)),'children':_0x25afd7()});}var nt=Object[_0x108f61(0x37b)],rt=(_0x3bc869,_0x380c20,_0x2fb23d,_0x324ba9)=>{const _0x21870a=_0x108f61;for(var _0x1a9b1e=_0x324ba9>0x1?void 0x0:_0x324ba9?nt(_0x380c20,_0x2fb23d):_0x380c20,_0x6a6ad4=_0x3bc869[_0x21870a(0x14d)]-0x1,_0x55cb87;_0x6a6ad4>=0x0;_0x6a6ad4--)(_0x55cb87=_0x3bc869[_0x6a6ad4])&&(_0x1a9b1e=_0x55cb87(_0x1a9b1e)||_0x1a9b1e);return _0x1a9b1e;},K=(_0x3423fd,_0x23c7f6)=>(_0x55ee09,_0x4f4a18)=>_0x23c7f6(_0x55ee09,_0x4f4a18,_0x3423fd);exports[_0x108f61(0x256)]=class extends a[_0x108f61(0x3b6)]{constructor(_0x19f17a,_0x419c8c,_0x1e8c29,_0x34ca69){const _0x347f09=_0x108f61;super(),_(this,_0x347f09(0x286),new I[(_0x347f09(0x391))](u[_0x347f09(0x32d)]['NOT_COLLAB'])),(this[_0x347f09(0x311)]=_0x19f17a,this[_0x347f09(0x266)]=_0x419c8c,this[_0x347f09(0x246)]=_0x1e8c29,this[_0x347f09(0x35e)]=_0x34ca69,this[_0x347f09(0x1cb)](),this['_initStatusListener']());}[_0x108f61(0x2d8)](){const _0x257e1c=_0x108f61;this[_0x257e1c(0x1d6)](this['_univerInstanceService']['focused$']['pipe'](I[_0x257e1c(0x1c1)](()=>{const _0x493b18=_0x257e1c,_0xadc6e6=this[_0x493b18(0x311)]['getFocusedUnit']();return _0xadc6e6?this[_0x493b18(0x246)][_0x493b18(0x2dc)](_0xadc6e6[_0x493b18(0xf9)]()):I['of'](null);}),I['switchMap'](_0x25ac35=>_0x25ac35?_0x25ac35[_0x257e1c(0x16a)]:I['of'](u[_0x257e1c(0x32d)]['NOT_COLLAB'])))[_0x257e1c(0x346)](_0x4f0c36=>{const _0x51abc4=_0x257e1c;this[_0x51abc4(0x286)][_0x51abc4(0x120)](_0x4f0c36);}));}[_0x108f61(0x1cb)](){const _0x1fecd3=_0x108f61;this[_0x1fecd3(0x1d6)](this[_0x1fecd3(0x35e)][_0x1fecd3(0x1ab)](O['BuiltInUIPart']['HEADER_MENU'],()=>O['connectInjector'](ot({'status$':this['_status$']['asObservable']()}),this[_0x1fecd3(0x266)])));}},exports[_0x108f61(0x256)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x108f61(0x230)](a[_0x108f61(0x1e8)])),K(0x2,a[_0x108f61(0x230)](u[_0x108f61(0x328)])),K(0x3,O[_0x108f61(0x356)])],exports[_0x108f61(0x256)]);function ot(_0x55405b){const {status$:_0x399dff}=_0x55405b;return function(){const _0x59fe28=_0x5f13;return M[_0x59fe28(0x33c)](it,{'status$':_0x399dff});};}const Oe=a[_0x108f61(0x3a7)]('uni.network.url-service');var at=Object[_0x108f61(0x37b)],ct=(_0x19eb31,_0x515f73,_0x45c1df,_0x238279)=>{for(var _0x3ed935=_0x238279>0x1?void 0x0:_0x238279?at(_0x515f73,_0x45c1df):_0x515f73,_0x3ab679=_0x19eb31['length']-0x1,_0x5bc710;_0x3ab679>=0x0;_0x3ab679--)(_0x5bc710=_0x19eb31[_0x3ab679])&&(_0x3ed935=_0x5bc710(_0x3ed935)||_0x3ed935);return _0x3ed935;},Y=(_0x2a6caf,_0x57e78e)=>(_0x276451,_0x16b076)=>_0x57e78e(_0x276451,_0x16b076,_0x2a6caf);exports['CollaborationDataLoaderController']=class extends a[_0x108f61(0x217)]{constructor(_0x445e97,_0x51a0bf,_0x272d69,_0x4e3970,_0x5cc0a2){const _0x31a8ed=_0x108f61;super(),this[_0x31a8ed(0x260)]=_0x445e97,this[_0x31a8ed(0x214)]=_0x51a0bf,this[_0x31a8ed(0x34d)]=_0x272d69,this[_0x31a8ed(0x25f)]=_0x4e3970,_0x5cc0a2?_0x5cc0a2==null||_0x5cc0a2['whenReady']()[_0x31a8ed(0x3af)](()=>this[_0x31a8ed(0x239)]()):(this[_0x31a8ed(0x214)]['debug'](_0x31a8ed(0x136),_0x31a8ed(0x17a)),this[_0x31a8ed(0x239)]());}async['_init'](){const _0x38bcaa=_0x108f61,_0xec07fa=this[_0x38bcaa(0x260)]['getParam'](_0x38bcaa(0x291)),_0x144615=this['_urlService'][_0x38bcaa(0xed)]('type'),_0x6fa555=this['_urlService'][_0x38bcaa(0xed)](_0x38bcaa(0x23b));if(!_0xec07fa||!_0x144615){this[_0x38bcaa(0x214)][_0x38bcaa(0x318)](_0x38bcaa(0x136),_0x38bcaa(0x105));return;}const _0x5d138b=await this[_0x38bcaa(0x25f)]['loadUnit'](_0xec07fa,Number(_0x144615),_0x6fa555);_0x5d138b&&_0x5d138b instanceof a[_0x38bcaa(0x153)]&&this[_0x38bcaa(0x326)](_0x5d138b);}async[_0x108f61(0x326)](_0x26e3df){const _0x29830f=_0x108f61;await this[_0x29830f(0x33a)](_0x26e3df),_0x26e3df[_0x29830f(0x2a0)][_0x29830f(0x143)](I['takeUntil'](this[_0x29830f(0x251)]))[_0x29830f(0x346)](_0x5b5b9f=>{_0x5b5b9f&&this['_updateURLWithCurrentState'](_0x5b5b9f);}),this[_0x29830f(0x260)][_0x29830f(0x29a)][_0x29830f(0x143)](I['takeUntil'](this['dispose$']))['subscribe'](()=>this[_0x29830f(0x33a)](_0x26e3df));}['_updateURLWithCurrentState'](_0x21d4eb,_0x3f4222=!0x1){const _0x3f717f=_0x108f61,_0x85d7d4=this[_0x3f717f(0x260)]['getParam'](_0x3f717f(0x23b));_0x21d4eb[_0x3f717f(0xff)]()!==_0x85d7d4&&this['_urlService'][_0x3f717f(0x122)](_0x3f717f(0x23b),_0x21d4eb[_0x3f717f(0xff)](),_0x3f4222);}async[_0x108f61(0x33a)](_0x1eb89f){const _0x5f0f31=_0x108f61;var _0x103394;const _0x5f1d40=this[_0x5f0f31(0x260)]['getParam'](_0x5f0f31(0x23b));if(!_0x5f1d40||!_0x1eb89f[_0x5f0f31(0x236)](_0x5f1d40)){const _0x2721b3=_0x1eb89f[_0x5f0f31(0x1b8)]()[0x0],_0x271e0e=_0x1eb89f[_0x5f0f31(0x236)](_0x2721b3);if(!_0x271e0e)return;this[_0x5f0f31(0x33e)](_0x271e0e,!0x0),await this[_0x5f0f31(0x34d)][_0x5f0f31(0x28d)](v[_0x5f0f31(0x161)]['id'],{'unitId':_0x1eb89f[_0x5f0f31(0xf9)](),'subUnitId':_0x2721b3});return;}((_0x103394=_0x1eb89f[_0x5f0f31(0x2e5)]())==null?void 0x0:_0x103394[_0x5f0f31(0xff)]())!==_0x5f1d40&&await this['_commandService'][_0x5f0f31(0x28d)](v[_0x5f0f31(0x161)]['id'],{'unitId':_0x1eb89f['getUnitId'](),'subUnitId':_0x5f1d40});}},exports[_0x108f61(0x374)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x108f61(0x225)]),Y(0x3,a['Inject'](u['DataLoaderService'])),Y(0x4,a[_0x108f61(0x21a)](qe[_0x108f61(0x106)]))],exports[_0x108f61(0x374)]);function _0x5f13(_0x5005e2,_0x35bee5){_0x5005e2=_0x5005e2-0xed;const _0xe0ef0c=_0xe0ef();let _0x5f13f3=_0xe0ef0c[_0x5005e2];return _0x5f13f3;}var lt=Object[_0x108f61(0x37b)],_t=(_0x51d365,_0x3097c7,_0xf81b33,_0x5bb8e1)=>{const _0x375f8d=_0x108f61;for(var _0x101f17=_0x5bb8e1>0x1?void 0x0:_0x5bb8e1?lt(_0x3097c7,_0xf81b33):_0x3097c7,_0x3de52c=_0x51d365[_0x375f8d(0x14d)]-0x1,_0x19c6b3;_0x3de52c>=0x0;_0x3de52c--)(_0x19c6b3=_0x51d365[_0x3de52c])&&(_0x101f17=_0x19c6b3(_0x101f17)||_0x101f17);return _0x101f17;},De=(_0x301019,_0x297c36)=>(_0x857e6c,_0x47e458)=>_0x297c36(_0x857e6c,_0x47e458,_0x301019);let me=class extends a[_0x108f61(0x217)]{constructor(_0x4742d1,_0x3d65a2){const _0x293509=_0x108f61;super(),this[_0x293509(0x257)]=_0x4742d1,this['_imageIoService']=_0x3d65a2,this[_0x293509(0x239)]();}[_0x108f61(0x239)](){const _0x33e14a=_0x108f61,_0x4e4016=this;this[_0x33e14a(0x1d6)](this[_0x33e14a(0x257)][_0x33e14a(0x1eb)]({'onBeforePasteImage':async _0x2e7c0b=>{const _0xedfaf5=_0x33e14a,_0x3710f9=await _0x4e4016[_0xedfaf5(0x1ba)][_0xedfaf5(0x145)](_0x2e7c0b);return _0x3710f9?{'source':_0x3710f9['source'],'imageSourceType':_0x3710f9[_0xedfaf5(0x304)]}:null;}}));}};me=_t([De(0x0,T[_0x108f61(0x2ab)]),De(0x1,ze[_0x108f61(0x198)])],me);const Ne=[_0x108f61(0x294),_0x108f61(0x30c),_0x108f61(0x19b),_0x108f61(0x359),_0x108f61(0x16e),_0x108f61(0x26a)];class Re extends a[_0x108f61(0x3b6)]{constructor(){const _0x2457da=_0x108f61;super(...arguments),_(this,_0x2457da(0x30f),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xffcbc1){const _0x1f062f=_0x108f61;if(this[_0x1f062f(0x30f)][_0x1f062f(0x369)](_0xffcbc1))return this[_0x1f062f(0x30f)]['get'](_0xffcbc1);const _0x5a285d=Ne[this[_0x1f062f(0x2f7)]];return this[_0x1f062f(0x2f7)]=(this[_0x1f062f(0x2f7)]+0x1)%Ne[_0x1f062f(0x14d)],this[_0x1f062f(0x30f)][_0x1f062f(0x187)](_0xffcbc1,_0x5a285d),_0x5a285d;}}function Fe(_0x24e31e){let _0x52bc95='';for(const _0x33e5bf of _0x24e31e){const {startOffset:_0x4873f6,endOffset:_0x57fadb,isActive:_0x4c7828,rangeType:_0x21b439,segmentId:_0x3cee71,segmentPage:_0xf3eb15}=_0x33e5bf;_0x52bc95['length']&&(_0x52bc95+=','),_0x52bc95+=_0x4873f6+':'+_0x57fadb+':'+(_0x4c7828?'1':'0')+':'+_0x21b439+':'+_0x3cee71+':'+_0xf3eb15;}return _0x52bc95;}function ht(_0x3cad12){const _0x43282f=_0x108f61,_0x8dd4a5=_0x3cad12['split'](','),_0x1fbda5=[];for(const _0x11e257 of _0x8dd4a5){const [_0x6d03cb,_0x283bf2,_0x21eedf,_0x359607,_0x21f6e1,_0x459c7f]=_0x11e257[_0x43282f(0x11d)](':');_0x1fbda5['push']({'startOffset':Number(_0x6d03cb),'endOffset':Number(_0x283bf2),'collapsed':_0x6d03cb===_0x283bf2,'isActive':_0x21eedf==='1','rangeType':_0x359607===a[_0x43282f(0x130)][_0x43282f(0x36a)]?a[_0x43282f(0x130)][_0x43282f(0x36a)]:a[_0x43282f(0x130)][_0x43282f(0x107)],'segmentId':typeof _0x21f6e1=='string'?String(_0x21f6e1):'','segmentPage':Number(_0x459c7f!=null?_0x459c7f:-0x1)});}return _0x1fbda5[_0x43282f(0x1ee)](_0x25baaa=>_0x25baaa[_0x43282f(0x306)])||(_0x1fbda5[0x0][_0x43282f(0x306)]=!0x0),_0x1fbda5;}class be extends a[_0x108f61(0x217)]{constructor(){const _0x62f1f6=_0x108f61;super(...arguments),_(this,_0x62f1f6(0x397),new I[(_0x62f1f6(0x391))](null)),_(this,_0x62f1f6(0x24c),this['_collabCursorState$'][_0x62f1f6(0x169)]());}[_0x108f61(0x19d)](_0x2580f7){const _0x333fad=_0x108f61,{unitID:_0x6e080f,memberID:_0x35c4f7,textRanges:_0x10d843}=_0x2580f7,_0x195671=Fe(_0x10d843);if(_0x195671==='')return;const _0x29ce92={'unitID':_0x6e080f,'memberID':_0x35c4f7,'selection':_0x195671};this[_0x333fad(0x397)][_0x333fad(0x120)](_0x29ce92);}}var ut=Object[_0x108f61(0x37b)],It=(_0x2d3b8b,_0x368b40,_0x497057,_0x30ef8b)=>{const _0x2d71e5=_0x108f61;for(var _0x1ecea9=_0x30ef8b>0x1?void 0x0:_0x30ef8b?ut(_0x368b40,_0x497057):_0x368b40,_0x226480=_0x2d3b8b[_0x2d71e5(0x14d)]-0x1,_0x170a59;_0x226480>=0x0;_0x226480--)(_0x170a59=_0x2d3b8b[_0x226480])&&(_0x1ecea9=_0x170a59(_0x1ecea9)||_0x1ecea9);return _0x1ecea9;},U=(_0x266918,_0x587a4e)=>(_0x1564e7,_0x1d8d5a)=>_0x587a4e(_0x1564e7,_0x1d8d5a,_0x266918);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x3a12d8,_0x2bcf17,_0x109533,_0x5c6f1e,_0x3d06be,_0x46c4a8,_0x10d40d,_0x4882c3,_0x27ea08){const _0x55b80c=_0x108f61;super(),_(this,'_online',!0x1),_(this,_0x55b80c(0x239),!0x1),_(this,_0x55b80c(0x124),new I[(_0x55b80c(0x391))](new Map())),_(this,_0x55b80c(0x221),this['_cursorInfo$'][_0x55b80c(0x169)]()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0x55b80c(0x1b9),this[_0x55b80c(0x112)][_0x55b80c(0x143)](I[_0x55b80c(0x21c)](St))),_(this,'_updateLocalCursor',a[_0x55b80c(0x18b)](_0x56bf41=>{const _0x2ecc10=_0x55b80c,_0x4fdb03={'eventID':g[_0x2ecc10(0x2ae)][_0x2ecc10(0x2a3)],'data':{'unitID':this['unitID'],'memberID':this[_0x2ecc10(0x1ed)]['getMemberID'](),'selection':Fe(_0x56bf41)}};this['_session'][_0x2ecc10(0x2f2)](_0x4fdb03,this['unitID']);},dt)),(this[_0x55b80c(0x24b)]=_0x3a12d8,this[_0x55b80c(0x1ed)]=_0x2bcf17,this['_injector']=_0x109533,this[_0x55b80c(0x2b0)]=_0x5c6f1e,this[_0x55b80c(0x15a)]=_0x3d06be,this['_syncEditingCollabCursorService']=_0x46c4a8,this[_0x55b80c(0x111)]=_0x10d40d,this[_0x55b80c(0x311)]=_0x4882c3,this[_0x55b80c(0x34d)]=_0x27ea08);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x3ff9d9=_0x108f61;return this[_0x3ff9d9(0x112)][_0x3ff9d9(0x1d9)]();}[_0x108f61(0x1a6)](){const _0x5b2480=_0x108f61;super[_0x5b2480(0x1a6)](),this[_0x5b2480(0x124)]['next'](new Map()),this[_0x5b2480(0x124)][_0x5b2480(0x133)](),this[_0x5b2480(0x112)][_0x5b2480(0x120)]([]),this[_0x5b2480(0x112)][_0x5b2480(0x133)]();}[_0x108f61(0x350)](){const _0x5420d9=_0x108f61;this['_init']||(this[_0x5420d9(0x239)]=!0x0,this[_0x5420d9(0x1ed)]['sessionStatus$']['pipe'](I[_0x5420d9(0x1fd)](this[_0x5420d9(0x251)]))['subscribe'](_0x4374ad=>{const _0x1c3bb6=_0x5420d9;_0x4374ad===u[_0x1c3bb6(0x342)][_0x1c3bb6(0x276)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x5420d9(0x1ed)][_0x5420d9(0xfa)]['pipe'](I['takeUntil'](this[_0x5420d9(0x251)]))[_0x5420d9(0x346)](_0x513473=>{const _0x4f5c79=_0x5420d9,_0x39d380=_0x513473['eventID'];_0x39d380===g[_0x4f5c79(0x2ae)]['UPDATE_CURSOR']&&this[_0x4f5c79(0x2f5)](_0x513473),_0x39d380===g[_0x4f5c79(0x2ae)][_0x4f5c79(0x365)]&&this['_onCursorDelete'](_0x513473);}),this[_0x5420d9(0x1d6)](this[_0x5420d9(0x34d)][_0x5420d9(0x1c7)](_0x43c774=>{const _0x9dc824=_0x5420d9,_0x1c9cee=_0x43c774['params'];_0x1c9cee!=null&&this[_0x9dc824(0xf1)]&&_0x43c774['id']===V[_0x9dc824(0x243)]['id']&&_0x1c9cee[_0x9dc824(0x2aa)]===this[_0x9dc824(0x24b)]&&_0x1c9cee['isEditing']===!0x1&&_0x1c9cee[_0x9dc824(0x117)][_0x9dc824(0x14d)]>0x0&&this[_0x9dc824(0x2b3)](_0x1c9cee[_0x9dc824(0x117)]);})),this[_0x5420d9(0x1f1)]['collabCursorState$']['pipe'](I['takeUntil'](this[_0x5420d9(0x251)]))['subscribe'](_0x3e03d7=>{const _0x20c6ae=_0x5420d9;if((_0x3e03d7==null?void 0x0:_0x3e03d7['unitID'])!==this[_0x20c6ae(0x24b)])return;const _0x3b1e51={'eventID':g[_0x20c6ae(0x2ae)]['UPDATE_CURSOR'],'data':_0x3e03d7};this[_0x20c6ae(0x2f5)](_0x3b1e51);}),this[_0x5420d9(0x1d6)](this['_commandService'][_0x5420d9(0x1c7)](_0x26ea75=>{const _0x1e7107=_0x5420d9;if(_0x26ea75[_0x1e7107(0x39e)]==null)return;const _0x548bc5=_0x26ea75['params'];if(_0x26ea75['id']!==V['RichTextEditingMutation']['id']||_0x548bc5['unitId']!==this['unitID'])return;const _0x1cb124={'id':_0x1e7107(0x325),'params':_0x548bc5},_0x20a674=this[_0x1e7107(0x191)];for(const [_0x595f2d,_0x34bb2d]of _0x20a674){const _0x79d726={'id':_0x1e7107(0x325),'params':{'unitId':this[_0x1e7107(0x24b)],'actions':null,'textRanges':_0x34bb2d['ranges']}},_0x528232=this[_0x1e7107(0x111)][_0x1e7107(0x10c)](_0x1cb124,_0x79d726,!0x1);if(g[_0x1e7107(0x35f)](_0x528232))throw _0x528232[_0x1e7107(0x29b)];_0x20a674[_0x1e7107(0x187)](_0x595f2d,{..._0x34bb2d,'ranges':_0x528232['m2Prime'][_0x1e7107(0x39e)][_0x1e7107(0x23d)]});}queueMicrotask(()=>{const _0x407300=_0x1e7107;this['_cursorInfo$'][_0x407300(0x120)](_0x20a674);});})));}[_0x108f61(0x2f5)](_0x1d708e){const _0x534058=_0x108f61;var _0x42fb60,_0x576c50;const {memberID:_0x449399,selection:_0xfc455f}=_0x1d708e['data'],_0x41900c=ht(_0xfc455f),_0x454de7=(_0x576c50=(_0x42fb60=this[_0x534058(0x15a)][_0x534058(0x172)](this['unitID'],_0x449399))==null?void 0x0:_0x42fb60[_0x534058(0x21e)])!=null?_0x576c50:_0x534058(0x253),_0x47bba9={'color':this[_0x534058(0x2b0)][_0x534058(0x245)](_0x449399),'name':_0x454de7,'ranges':_0x41900c},_0x1626d5=this['cursorInfo'];_0x1626d5[_0x534058(0x187)](_0x449399,_0x47bba9),this[_0x534058(0x124)][_0x534058(0x120)](_0x1626d5);}[_0x108f61(0x2a5)](_0x4b73c4){const _0x517f50=_0x108f61,{memberID:_0x58d00a}=_0x4b73c4[_0x517f50(0x184)],_0x2ff350=this[_0x517f50(0x191)];_0x2ff350['delete'](_0x58d00a),this[_0x517f50(0x124)][_0x517f50(0x120)](_0x2ff350);}[_0x108f61(0x144)](){const _0x20b0fe=_0x108f61;var _0xebdf7c;if(this['_online']=!0x0,((_0xebdf7c=this['_univerInstanceService'][_0x20b0fe(0x277)]())==null?void 0x0:_0xebdf7c[_0x20b0fe(0xf9)]())!==this['unitID'])return;const _0x5b7e91=this[_0x20b0fe(0x266)]['get'](V[_0x20b0fe(0x131)])['getDocRanges']();Array['isArray'](_0x5b7e91)&&_0x5b7e91[_0x20b0fe(0x14d)]>0x0&&this['_updateLocalCursor'](_0x5b7e91);}[_0x108f61(0x213)](){const _0x21d5e8=_0x108f61;this[_0x21d5e8(0xf1)]=!0x1;}};ve=It([U(0x2,a[_0x108f61(0x230)](a[_0x108f61(0x1e8)])),U(0x3,a[_0x108f61(0x230)](Re)),U(0x4,a[_0x108f61(0x230)](u['MemberService'])),U(0x5,a[_0x108f61(0x230)](be)),U(0x6,g[_0x108f61(0x12b)]),U(0x7,a[_0x108f61(0x163)]),U(0x8,a[_0x108f61(0x225)])],ve);var ft=Object[_0x108f61(0x37b)],mt=(_0x151e56,_0x4e215c,_0x3fe4ad,_0xeae300)=>{const _0x14a59e=_0x108f61;for(var _0x7a2532=_0xeae300>0x1?void 0x0:_0xeae300?ft(_0x4e215c,_0x3fe4ad):_0x4e215c,_0x216f01=_0x151e56[_0x14a59e(0x14d)]-0x1,_0x598018;_0x216f01>=0x0;_0x216f01--)(_0x598018=_0x151e56[_0x216f01])&&(_0x7a2532=_0x598018(_0x7a2532)||_0x7a2532);return _0x7a2532;},w=(_0x11436b,_0x3facf1)=>(_0x3ad3a2,_0x1315e5)=>_0x3facf1(_0x3ad3a2,_0x1315e5,_0x11436b);const vt=0x12c,gt=0x64,Et=()=>{let _0x4a4741=[],_0x2a44d2=!0x1;return _0x2a7327=>{const _0x36dff1=_0x5f13;_0x4a4741[_0x36dff1(0x1cd)](_0x2a7327),_0x2a44d2||(_0x2a44d2=!0x0,setTimeout(()=>{const _0x1b8579=_0x36dff1;_0x4a4741[_0x1b8579(0xf8)](_0xcf9b73=>_0xcf9b73()),_0x4a4741=[],_0x2a44d2=!0x1;}));};};let ge=class extends a[_0x108f61(0x217)]{constructor(_0x3bb0ce,_0x42e20c,_0x2a0a8a,_0x324e48,_0x201a7d,_0x2dd10a,_0x17180d,_0x463551){const _0x3866c9=_0x108f61;super(),_(this,_0x3866c9(0xf1),!0x1),_(this,_0x3866c9(0x239),!0x1),_(this,'_cursorInfo$',new I[(_0x3866c9(0x391))](new Map())),_(this,_0x3866c9(0x221),this[_0x3866c9(0x124)][_0x3866c9(0x169)]()),_(this,_0x3866c9(0x112),new I[(_0x3866c9(0x391))]([])),_(this,_0x3866c9(0x1b9),this[_0x3866c9(0x112)]['pipe'](I[_0x3866c9(0x21c)](vt))),_(this,_0x3866c9(0x2b3),a['debounce']((_0x16aba5,_0x1ee750)=>{const _0x279aa5=_0x3866c9,_0x3edff1={'eventID':g['CollaborationEvent'][_0x279aa5(0x2a3)],'data':{'unitID':this[_0x279aa5(0x24b)],'memberID':this[_0x279aa5(0x1ed)]['getMemberID'](),'selection':B['serializeRangeWithSheet'](_0x16aba5,_0x1ee750[_0x279aa5(0x1fb)])}};this['_session'][_0x279aa5(0x2f2)](_0x3edff1,this[_0x279aa5(0x24b)]);},gt)),(this[_0x3866c9(0x24b)]=_0x3bb0ce,this[_0x3866c9(0x1ed)]=_0x42e20c,this[_0x3866c9(0x266)]=_0x2a0a8a,this[_0x3866c9(0x2b0)]=_0x324e48,this[_0x3866c9(0x15a)]=_0x201a7d,this['_univerInstanceService']=_0x2dd10a,this[_0x3866c9(0x34d)]=_0x17180d,this['_refRangeService']=_0x463551);}get[_0x108f61(0x191)](){const _0x4d527f=_0x108f61;return this[_0x4d527f(0x124)][_0x4d527f(0x1d9)]();}get[_0x108f61(0x2ef)](){const _0xa79368=_0x108f61;return this[_0xa79368(0x112)][_0xa79368(0x1d9)]();}['dispose'](){const _0x577965=_0x108f61;super[_0x577965(0x1a6)](),this[_0x577965(0x124)][_0x577965(0x120)](new Map()),this['_cursorInfo$']['complete'](),this[_0x577965(0x112)][_0x577965(0x120)]([]),this[_0x577965(0x112)][_0x577965(0x133)]();}['init'](){const _0x3c17a6=_0x108f61;this[_0x3c17a6(0x239)]||(this['_init']=!0x0,this[_0x3c17a6(0x1ed)][_0x3c17a6(0x26b)]['pipe'](I[_0x3c17a6(0x1fd)](this['dispose$']))[_0x3c17a6(0x346)](_0x3b1362=>{const _0x40157e=_0x3c17a6;_0x3b1362===u[_0x40157e(0x342)][_0x40157e(0x276)]?this['_toggleOnline']():this[_0x40157e(0x213)]();}),this[_0x3c17a6(0x1ed)][_0x3c17a6(0xfa)][_0x3c17a6(0x143)](I[_0x3c17a6(0x1fd)](this[_0x3c17a6(0x251)]))[_0x3c17a6(0x346)](_0x12c717=>{const _0x59b93d=_0x3c17a6,_0x5e5549=_0x12c717['eventID'];_0x5e5549===g[_0x59b93d(0x2ae)][_0x59b93d(0x2a3)]&&this['_onCursorUpdate'](_0x12c717),_0x5e5549===g[_0x59b93d(0x2ae)][_0x59b93d(0x365)]&&this['_onCursorDelete'](_0x12c717);}),this[_0x3c17a6(0x24a)](),this[_0x3c17a6(0x1d6)](this['_commandService']['onCommandExecuted'](_0x3a38a4=>{const _0x3349b1=_0x3c17a6;if(this[_0x3349b1(0xf1)]&&_0x3a38a4['id']===v[_0x3349b1(0x336)]['id']&&_0x3a38a4[_0x3349b1(0x39e)]['unitId']===this[_0x3349b1(0x24b)]){const _0x5e43b5=_0x3a38a4[_0x3349b1(0x39e)];this[_0x3349b1(0x2b3)](_0x5e43b5[_0x3349b1(0x10e)],_0x5e43b5[_0x3349b1(0x1f4)][0x0]);}})));}[_0x108f61(0x2f5)](_0x28e5dc){const _0x40809a=_0x108f61;var _0x205ffb,_0x2a61cd;const {memberID:_0x206ed2,selection:_0x586f18}=_0x28e5dc['data'],{sheetName:_0x3384f5,range:_0x178070}=B[_0x40809a(0x1b6)](_0x586f18),_0x4cc5e9={'name':(_0x2a61cd=(_0x205ffb=this[_0x40809a(0x15a)][_0x40809a(0x172)](this[_0x40809a(0x24b)],_0x206ed2))==null?void 0x0:_0x205ffb[_0x40809a(0x21e)])!=null?_0x2a61cd:_0x40809a(0x253),'range':this['_getMergeRange'](_0x3384f5,_0x178070),'sheetID':_0x3384f5,'color':this[_0x40809a(0x2b0)][_0x40809a(0x245)](_0x206ed2),'selection':_0x586f18},_0x3097e7=this[_0x40809a(0x191)];_0x3097e7[_0x40809a(0x187)](_0x206ed2,_0x4cc5e9),this[_0x40809a(0x124)][_0x40809a(0x120)](_0x3097e7);}['_onCursorDelete'](_0xc4b26d){const _0x4ec810=_0x108f61,{memberID:_0x55f8ca}=_0xc4b26d[_0x4ec810(0x184)],_0x54b9bf=this['cursorInfo'];_0x54b9bf[_0x4ec810(0x233)](_0x55f8ca),this[_0x4ec810(0x124)]['next'](_0x54b9bf);}[_0x108f61(0x296)](_0x1a0e3e,_0x3d754d){const _0x4a6684=_0x108f61;var _0x5239d0,_0x91e06e;const _0x3995c4=(_0x91e06e=(_0x5239d0=this[_0x4a6684(0x311)]['getUniverSheetInstance'](this[_0x4a6684(0x24b)]))==null?void 0x0:_0x5239d0[_0x4a6684(0x236)](_0x1a0e3e))==null?void 0x0:_0x91e06e[_0x4a6684(0x103)]();return(_0x3995c4==null?void 0x0:_0x3995c4['find'](_0x22bc9a=>a[_0x4a6684(0x3a9)][_0x4a6684(0x195)](_0x22bc9a,_0x3d754d)))||_0x3d754d;}[_0x108f61(0x24a)](){const _0x575969=_0x108f61,_0x49b48b=new a[(_0x575969(0x1de))](),_0x340fd2=Et(),_0x2f87cb=()=>{const _0x1e7481=_0x575969;_0x49b48b['dispose']();const _0x157c40=(_0x4760f3,_0x5805f6,_0x445049,_0x50393a)=>{const _0x5d18b9=_0x5f13;let _0x5bb220=[];switch(_0x4760f3['id']){case v['EffectRefRangId'][_0x5d18b9(0x3a0)]:{_0x5bb220=v[_0x5d18b9(0x1f6)](_0x4760f3,_0x50393a);break;}case v['EffectRefRangId'][_0x5d18b9(0x36b)]:{_0x5bb220=v[_0x5d18b9(0x151)](_0x4760f3,_0x50393a);break;}case v[_0x5d18b9(0x241)][_0x5d18b9(0x366)]:{_0x5bb220=v[_0x5d18b9(0x37c)](_0x4760f3,_0x50393a);break;}case v[_0x5d18b9(0x241)][_0x5d18b9(0x14c)]:{_0x5bb220=v[_0x5d18b9(0x1c6)](_0x4760f3,_0x50393a);break;}case v[_0x5d18b9(0x241)][_0x5d18b9(0x3bc)]:{_0x5bb220=v[_0x5d18b9(0x353)](_0x4760f3,_0x50393a);break;}case v[_0x5d18b9(0x241)]['InsertRowCommandId']:{_0x5bb220=v[_0x5d18b9(0x249)](_0x4760f3,_0x50393a);break;}case v['EffectRefRangId'][_0x5d18b9(0x24e)]:{_0x5bb220=v[_0x5d18b9(0x21f)](_0x4760f3,_0x50393a);break;}case v[_0x5d18b9(0x241)][_0x5d18b9(0x101)]:{_0x5bb220=v[_0x5d18b9(0x2b6)](_0x4760f3,_0x50393a);break;}case v[_0x5d18b9(0x241)][_0x5d18b9(0x274)]:{_0x5bb220=v['handleIRemoveRow'](_0x4760f3,_0x50393a);break;}}const _0x55b6f4=v[_0x5d18b9(0x1e6)](_0x5bb220,_0x50393a),_0x587271=this['cursorInfo'][_0x5d18b9(0x1e2)](_0x5805f6);if(_0x587271&&_0x55b6f4){const _0x2d3abb={..._0x587271,'range':_0x55b6f4};this['cursorInfo'][_0x5d18b9(0x187)](_0x5805f6,_0x2d3abb),_0x340fd2(()=>{const _0x1d5abc=_0x5d18b9,_0x8dbd9a=this[_0x1d5abc(0x197)]['registerRefRange'](_0x55b6f4,_0x395831=>(_0x8dbd9a[_0x1d5abc(0x1a6)](),_0x157c40(_0x395831,_0x5805f6,_0x445049,_0x55b6f4)));_0x49b48b[_0x1d5abc(0xf0)](_0x8dbd9a);});}return{'redos':[],'undos':[]};};this[_0x1e7481(0x191)][_0x1e7481(0xf8)]((_0x345c7f,_0x3e049c)=>{const _0x238ef1=_0x1e7481,{range:_0xa92576,sheetID:_0x113ad0}=_0x345c7f,_0x1c39ba=this[_0x238ef1(0x197)][_0x238ef1(0x3b1)](_0xa92576,_0x17195c=>(_0x1c39ba[_0x238ef1(0x1a6)](),_0x157c40(_0x17195c,_0x3e049c,_0x113ad0,_0xa92576)));_0x49b48b[_0x238ef1(0xf0)](_0x1c39ba);});};this[_0x575969(0x1d6)](a[_0x575969(0x317)](this[_0x575969(0x124)][_0x575969(0x346)](()=>{_0x2f87cb();})));}[_0x108f61(0x144)](){const _0x3f7c23=_0x108f61;var _0x285a09,_0x397c07;if(this[_0x3f7c23(0xf1)]=!0x0,((_0x285a09=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x285a09['getUnitId']())!==this[_0x3f7c23(0x24b)])return;const _0x408367=(_0x397c07=this[_0x3f7c23(0x266)][_0x3f7c23(0x1e2)](v[_0x3f7c23(0x17b)])[_0x3f7c23(0x24f)]())==null?void 0x0:_0x397c07[0x0],_0xaac103=this['_univerInstanceService'][_0x3f7c23(0x267)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3f7c23(0x2e5)]();_0x408367&&_0xaac103&&this['_updateLocalCursor'](_0xaac103[_0x3f7c23(0xff)](),_0x408367);}[_0x108f61(0x213)](){const _0x5c0fa0=_0x108f61;this[_0x5c0fa0(0xf1)]=!0x1;}};ge=mt([w(0x2,a['Inject'](a[_0x108f61(0x1e8)])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x108f61(0x230)](u[_0x108f61(0x16d)])),w(0x5,a[_0x108f61(0x163)]),w(0x6,a['ICommandService']),w(0x7,a[_0x108f61(0x230)](v[_0x108f61(0x1ad)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x2f6526,_0x3262fb,_0x2760c2,_0x5ed66a)=>{for(var _0x32b3c5=_0x5ed66a>0x1?void 0x0:_0x5ed66a?Ct(_0x3262fb,_0x2760c2):_0x3262fb,_0x228c2c=_0x2f6526['length']-0x1,_0x1c0744;_0x228c2c>=0x0;_0x228c2c--)(_0x1c0744=_0x2f6526[_0x228c2c])&&(_0x32b3c5=_0x1c0744(_0x32b3c5)||_0x32b3c5);return _0x32b3c5;},ce=(_0x32dda0,_0x4fc223)=>(_0x287874,_0x46bb95)=>_0x4fc223(_0x287874,_0x46bb95,_0x32dda0);let F=class extends a[_0x108f61(0x217)]{constructor(_0x4b7852,_0x411b6b,_0x557a3c){const _0x4c26dc=_0x108f61;super(),_(this,_0x4c26dc(0x282),new Map()),_(this,'_entityInit$',new I[(_0x4c26dc(0x399))]()),(this[_0x4c26dc(0x311)]=_0x4b7852,this[_0x4c26dc(0x266)]=_0x411b6b,this[_0x4c26dc(0xfd)]=_0x557a3c,this[_0x4c26dc(0x239)]());}[_0x108f61(0x1a6)](){const _0x2555da=_0x108f61;super['dispose'](),this[_0x2555da(0x196)][_0x2555da(0x133)](),this[_0x2555da(0x282)]['forEach'](_0x44fcba=>_0x44fcba['dispose']());}[_0x108f61(0x271)](_0x1489f7){const _0x270624=_0x108f61;return this[_0x270624(0x282)][_0x270624(0x369)](_0x1489f7)?this[_0x270624(0x282)][_0x270624(0x1e2)](_0x1489f7)['cursorInfo$']:this[_0x270624(0x196)]['pipe'](I[_0x270624(0x229)](_0x20f9d1=>_0x20f9d1[_0x270624(0x24b)]===_0x1489f7),I[_0x270624(0x1c1)](_0x55575a=>_0x55575a[_0x270624(0x221)]));}[_0x108f61(0x239)](){const _0x578b72=_0x108f61;this[_0x578b72(0x311)]['getTypeOfUnitAdded$'](a[_0x578b72(0x234)][_0x578b72(0x2c7)])['pipe'](I['takeUntil'](this['dispose$']))[_0x578b72(0x346)](async _0x31db62=>{const _0x385bd4=_0x578b72,_0x27c434=_0x31db62[_0x385bd4(0xf9)](),_0x4c227c=await this[_0x385bd4(0x32b)](_0x27c434);this[_0x385bd4(0x196)][_0x385bd4(0x120)](_0x4c227c),this[_0x385bd4(0x282)][_0x385bd4(0x187)](_0x27c434,_0x4c227c);}),this[_0x578b72(0x311)][_0x578b72(0x18a)](a[_0x578b72(0x234)]['UNIVER_DOC'])[_0x578b72(0x143)](I[_0x578b72(0x1fd)](this[_0x578b72(0x251)]))['pipe'](I[_0x578b72(0x229)](_0x1ed8bc=>!_0x1ed8bc[_0x578b72(0xf9)]()[_0x578b72(0x2ec)]('__')))[_0x578b72(0x346)](async _0x5ca396=>{const _0x1b6f65=_0x578b72,_0x59a6cf=_0x5ca396['getUnitId'](),_0x514e83=await this['_startDocCollabCursor'](_0x59a6cf);this[_0x1b6f65(0x196)]['next'](_0x514e83),this['_entities'][_0x1b6f65(0x187)](_0x59a6cf,_0x514e83);}),I['merge'](this[_0x578b72(0x311)][_0x578b72(0x12f)](a[_0x578b72(0x234)][_0x578b72(0x16b)]),this[_0x578b72(0x311)][_0x578b72(0x12f)](a[_0x578b72(0x234)][_0x578b72(0x2c7)]))[_0x578b72(0x143)](I[_0x578b72(0x1fd)](this[_0x578b72(0x251)]))[_0x578b72(0x346)](_0x4d68d7=>{const _0x10aba7=_0x578b72,_0x3be56d=_0x4d68d7[_0x10aba7(0xf9)](),_0x4906c6=this[_0x10aba7(0x282)][_0x10aba7(0x1e2)](_0x3be56d);_0x4906c6&&(_0x4906c6[_0x10aba7(0x1a6)](),this['_entities'][_0x10aba7(0x233)](_0x3be56d));});}async[_0x108f61(0x32b)](_0x441f35){const _0x34e9be=_0x108f61,_0x12c3cb=await this[_0x34e9be(0xfd)][_0x34e9be(0x29c)](_0x441f35),_0x575d23=this[_0x34e9be(0x266)][_0x34e9be(0x11f)](ge,_0x441f35,_0x12c3cb);return _0x575d23['init'](),_0x575d23;}async['_startDocCollabCursor'](_0x16053e){const _0x930ee3=_0x108f61,_0x3ed332=await this[_0x930ee3(0xfd)][_0x930ee3(0x29c)](_0x16053e),_0x4ad60a=this[_0x930ee3(0x266)]['createInstance'](ve,_0x16053e,_0x3ed332);return _0x4ad60a[_0x930ee3(0x350)](),_0x4ad60a;}};F=Tt([ce(0x0,a[_0x108f61(0x163)]),ce(0x1,a[_0x108f61(0x230)](a[_0x108f61(0x1e8)])),ce(0x2,a[_0x108f61(0x230)](u[_0x108f61(0x2af)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x34903e,_0x38a78c){const _0x11acdd=_0x108f61;let {radius:_0x4cbf9f,width:_0x34ab8a,height:_0x402c5c}=_0x38a78c;_0x4cbf9f=_0x4cbf9f!=null?_0x4cbf9f:0x0,_0x34ab8a=_0x34ab8a!=null?_0x34ab8a:0x1e,_0x402c5c=_0x402c5c!=null?_0x402c5c:0x1e;let _0x19adad=0x0,_0x883e98=0x0,_0x2a1bfa=0x0;_0x19adad=_0x883e98=_0x2a1bfa=Math['min'](_0x4cbf9f,_0x34ab8a/0x2,_0x402c5c/0x2),_0x34903e[_0x11acdd(0x1dd)](),_0x34903e[_0x11acdd(0x1e5)](_0x19adad,0x0),_0x34903e[_0x11acdd(0x273)](_0x34ab8a-_0x883e98,0x0),_0x34903e[_0x11acdd(0x340)](_0x34ab8a-_0x883e98,_0x883e98,_0x883e98,Math['PI']*0x3/0x2,0x0,!0x1),_0x34903e[_0x11acdd(0x273)](_0x34ab8a,_0x402c5c-_0x2a1bfa),_0x34903e[_0x11acdd(0x340)](_0x34ab8a-_0x2a1bfa,_0x402c5c-_0x2a1bfa,_0x2a1bfa,0x0,Math['PI']/0x2,!0x1),_0x34903e[_0x11acdd(0x273)](0x0,_0x402c5c),_0x34903e[_0x11acdd(0x273)](0x0,_0x19adad),_0x34903e[_0x11acdd(0x340)](_0x19adad,_0x19adad,_0x19adad,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x34903e[_0x11acdd(0x361)](),_0x38a78c[_0x11acdd(0x303)]&&(_0x34903e['save'](),_0x34903e[_0x11acdd(0x28a)]=_0x38a78c[_0x11acdd(0x303)],_0x38a78c[_0x11acdd(0x275)]===_0x11acdd(0x156)?_0x34903e[_0x11acdd(0x303)](_0x11acdd(0x156)):_0x34903e[_0x11acdd(0x303)](),_0x34903e[_0x11acdd(0x3ba)]());}class re extends C[_0x108f61(0x28c)]{constructor(_0x320aa1,_0x2206ea){const _0x3172ba=_0x108f61;super(_0x320aa1,_0x2206ea),_(this,'color'),_(this,_0x3172ba(0x2df)),(this[_0x3172ba(0x385)]=_0x2206ea==null?void 0x0:_0x2206ea[_0x3172ba(0x385)],this[_0x3172ba(0x2df)]=_0x2206ea==null?void 0x0:_0x2206ea[_0x3172ba(0x2df)]);}static[_0x108f61(0x2d0)](_0x2ee14e,_0x26c85c){const _0x50a105=_0x108f61,{text:_0x3babd0,color:_0x4730fc}=_0x26c85c;_0x2ee14e[_0x50a105(0x31a)](),_0x2ee14e[_0x50a105(0x387)]=_0x50a105(0x301);const _0x3d4510=_0x2ee14e[_0x50a105(0x2e3)](_0x3babd0)[_0x50a105(0x37d)],_0x5a16b0=Math[_0x50a105(0x396)](_0x3d4510+0x2*le,Ue);Ot(_0x2ee14e,{'height':X,'radius':0x4,'width':_0x5a16b0,'fill':_0x4730fc}),_0x2ee14e['fillStyle']=_0x50a105(0x383);const _0x12dfa3=le,_0x5bcad2=X-pt,_0x4c9863=Ue-0x2*le;if(_0x3d4510>_0x4c9863){let _0x15237b='',_0x2d0758=0x0;for(const _0x33e089 of _0x3babd0){const _0x4a39af=_0x2ee14e[_0x50a105(0x2e3)](_0x33e089)[_0x50a105(0x37d)];if(_0x2d0758+_0x4a39af<=_0x4c9863-_0x2ee14e[_0x50a105(0x2e3)]('...')[_0x50a105(0x37d)])_0x15237b+=_0x33e089,_0x2d0758+=_0x4a39af;else{_0x15237b+='...';break;}}_0x2ee14e[_0x50a105(0x2a7)](_0x15237b,_0x12dfa3,_0x5bcad2);}else _0x2ee14e[_0x50a105(0x2a7)](_0x3babd0,_0x12dfa3,_0x5bcad2);_0x2ee14e[_0x50a105(0x3ba)]();}[_0x108f61(0x100)](_0x26b25e){const _0x5b4e2a=_0x108f61;re[_0x5b4e2a(0x2d0)](_0x26b25e,this);}}const _e=_0x108f61(0xf6),Rt=_0x108f61(0x3be),bt=_0x108f61(0x23f),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x108f61(0x183);class Le{constructor(_0x437116,_0x5496a6,_0x512eb1,_0x28ed03){const _0x5deda2=_0x108f61;_(this,_0x5deda2(0x19e),[]),_(this,_0x5deda2(0x231),null),_(this,_0x5deda2(0x29f),null),_(this,'_anchorDot',null),_(this,_0x5deda2(0x1e0),null),_(this,_0x5deda2(0x26f),null),(this[_0x5deda2(0x343)]=_0x437116,this['_scene']=_0x5496a6,this['_docSkeleton']=_0x512eb1,this[_0x5deda2(0x3b0)]=_0x28ed03,this[_0x5deda2(0x25c)]());}set[_0x108f61(0x38c)](_0x56514f){const _0x45ef5a=_0x108f61;_0x56514f?(this[_0x45ef5a(0xfb)]&&this[_0x45ef5a(0xfb)][_0x45ef5a(0x188)](),this['_textBubble']&&this[_0x45ef5a(0x29f)][_0x45ef5a(0x146)]()):(this[_0x45ef5a(0xfb)]&&this[_0x45ef5a(0xfb)]['show'](),this[_0x45ef5a(0x29f)]&&this[_0x45ef5a(0x29f)]['hide']());}[_0x108f61(0x1a6)](){const _0x148c12=_0x108f61;for(const _0xeb2b0 of this[_0x148c12(0x19e)])_0xeb2b0[_0x148c12(0x1a6)]();this[_0x148c12(0x29f)]&&this['_textBubble'][_0x148c12(0x1a6)](),this['_anchorDot']&&this[_0x148c12(0xfb)][_0x148c12(0x1a6)](),this['_anchor']&&this['_anchor'][_0x148c12(0x1a6)](),this[_0x148c12(0x26f)]&&this[_0x148c12(0x26f)]();}[_0x108f61(0x25c)](){const _0x442008=_0x108f61;var _0x4f1501;const {_docSkeleton:_0x52f569,_document:_0x3232d5}=this,{color:_0x369797,name:_0xa2491b,ranges:_0x2a5e95}=this[_0x442008(0x343)],_0x723ab3=_0x3232d5[_0x442008(0x208)](),{docsLeft:_0x2b06e8,docsTop:_0x4e485c}=_0x723ab3,_0x319dbc=new T[(_0x442008(0x125))](_0x723ab3,_0x52f569);for(const {startOffset:_0x34dea9,endOffset:_0x2e6769,rangeType:_0x5c061d,segmentId:_0xfd279b,segmentPage:_0x46600b,collapsed:_0x2911f0,isActive:_0x5d702d}of _0x2a5e95){const _0x2eafdd=_0x52f569['findNodePositionByCharIndex'](_0x34dea9,!0x0,_0xfd279b,_0x46600b);let _0x192969=_0x52f569[_0x442008(0x33f)](_0x2e6769,!0x0,_0xfd279b,_0x46600b);if(_0x192969==null&&(_0x192969=_0x52f569[_0x442008(0x33f)](_0x2e6769-0x1,!0x1,_0xfd279b,_0x46600b)),_0x5d702d){const {contentBoxPointGroup:_0x5c6269}=_0x319dbc[_0x442008(0x39f)](_0x192969,_0x192969);if(_0x5c6269[_0x442008(0x14d)]===0x0)continue;this[_0x442008(0x31f)](_0x369797,_0x5c6269,_0x2b06e8,_0x4e485c,_0xa2491b),this['_eventUnsubscribe']=this[_0x442008(0x29e)]();}if(_0x2eafdd&&_0x192969){if(_0x5c061d===a[_0x442008(0x130)][_0x442008(0x107)]){const _0xddb25b=new T[(_0x442008(0x259))](_0x723ab3,_0x52f569),{pointGroup:_0x4ec6b2}=(_0x4f1501=_0xddb25b[_0x442008(0x39f)](_0x2eafdd,_0x192969))!=null?_0x4f1501:{};if(_0x4ec6b2==null||_0x4ec6b2['length']===0x0)continue;this[_0x442008(0x393)](_0x369797,_0x4ec6b2,_0x2b06e8,_0x4e485c);}else{if(!_0x2911f0){const {borderBoxPointGroup:_0x8c5bc5}=_0x319dbc[_0x442008(0x39f)](_0x2eafdd,_0x192969);if(_0x8c5bc5['length']===0x0)continue;this['_drawTextRange'](_0x369797,_0x8c5bc5,_0x2b06e8,_0x4e485c);}}}}}[_0x108f61(0x31f)](_0xc2b42e,_0x1816f2,_0x3889a0,_0x52ccd2,_0x34c395){const _0x513214=_0x108f61,_0x54b6b3=this[_0x513214(0x34c)](_0x1816f2),{left:_0x1253be,top:_0x1c3964,height:_0x15c9a9}=_0x54b6b3,_0x571451=this[_0x513214(0x31e)](),_0x9d91ba=Nt/_0x571451,_0xa800e6=new C[(_0x513214(0x398))](_e+a[_0x513214(0x23c)](H),{'left':_0x1253be+_0x3889a0-_0x9d91ba,'top':_0x1c3964+_0x52ccd2,'height':_0x15c9a9,'width':Dt,'fill':_0xc2b42e||C['getColor'](a[_0x513214(0x26d)][_0x513214(0x362)],0x0),'strokeWidth':_0x9d91ba,'stroke':Ut,'evented':!0x0});this['_anchor']=_0xa800e6,this[_0x513214(0x23e)][_0x513214(0x2b2)](_0xa800e6,T[_0x513214(0x3b8)]);const _0xdf82d5=new C[(_0x513214(0x398))](_e+a[_0x513214(0x23c)](H),{'left':_0x1253be+_0x3889a0-_0x9d91ba,'top':_0x1c3964+_0x52ccd2-he/0x2,'height':he,'width':he,'fill':_0xc2b42e||C['getColor'](a[_0x513214(0x26d)][_0x513214(0x362)],0x0),'strokeWidth':0x0,'stroke':_0xc2b42e||C[_0x513214(0x297)](a['COLORS'][_0x513214(0x362)],0x0),'evented':!0x1});this['_anchorDot']=_0xdf82d5,this[_0x513214(0x23e)][_0x513214(0x2b2)](_0xdf82d5,T[_0x513214(0x3b8)]);const _0x39a5fa=new re(_e+a['generateRandomId'](H),{'left':_0x1253be+_0x3889a0-_0x9d91ba,'top':_0x1c3964+_0x52ccd2-X,'text':_0x34c395,'color':_0xc2b42e});this[_0x513214(0x29f)]=_0x39a5fa,this[_0x513214(0x23e)][_0x513214(0x2b2)](_0x39a5fa,T[_0x513214(0x3b8)]),this[_0x513214(0x38c)]=!0x1;}[_0x108f61(0x29e)](){const _0x26a063=_0x108f61,_0x3c9822=this[_0x26a063(0x231)][_0x26a063(0x20e)][_0x26a063(0x2fe)](()=>{const _0x5d06e9=_0x26a063;this[_0x5d06e9(0x38c)]=!0x0;}),_0x1fc53b=this['_anchor'][_0x26a063(0x14a)]['subscribeEvent'](()=>{const _0x50b734=_0x26a063;this['_hideTimer']&&clearTimeout(this[_0x50b734(0x1e0)]),this[_0x50b734(0x1e0)]=setTimeout(()=>{const _0xfac21b=_0x50b734;this[_0xfac21b(0x38c)]=!0x1;},0x7d0);});return()=>{_0x3c9822['unsubscribe'](),_0x1fc53b['unsubscribe']();};}[_0x108f61(0x39c)](_0x733f26,_0x3ea2c8,_0x56d028,_0x686f1c){const _0x4412a2=_0x108f61,_0x1373ab=new a['ColorKit'](_0x733f26)[_0x4412a2(0x250)](0.2)[_0x4412a2(0x35b)](),_0x763079=new C[(_0x4412a2(0x199))](Rt+a[_0x4412a2(0x23c)](H),{'pointsGroup':_0x3ea2c8,'fill':_0x1373ab||C[_0x4412a2(0x297)](a[_0x4412a2(0x26d)][_0x4412a2(0x362)],0.2),'left':_0x56d028,'top':_0x686f1c,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4412a2(0x1cd)](_0x763079),this[_0x4412a2(0x23e)][_0x4412a2(0x2b2)](_0x763079,T[_0x4412a2(0x3b8)]);}[_0x108f61(0x393)](_0x4c708f,_0x59988d,_0x198c66,_0x3deb90){const _0x496353=_0x108f61,_0x200e79=new a[(_0x496353(0x232))](_0x4c708f)[_0x496353(0x250)](0.2)['toRgbString'](),_0x39a454=new C[(_0x496353(0x199))](bt+a[_0x496353(0x23c)](H),{'pointsGroup':_0x59988d,'fill':_0x200e79||C[_0x496353(0x297)](a[_0x496353(0x26d)][_0x496353(0x362)],0.2),'left':_0x198c66,'top':_0x3deb90,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x496353(0x1cd)](_0x39a454),this['_scene'][_0x496353(0x2b2)](_0x39a454,T['TEXT_RANGE_LAYER_INDEX']);}[_0x108f61(0x34c)](_0x4af14c){const _0x56e4f5=_0x4af14c[0x0],_0x464552=_0x56e4f5[0x0],_0x45174e=_0x56e4f5[0x2],{x:_0x3167c5,y:_0x308abc}=_0x464552,{x:_0x127393,y:_0x3a9543}=_0x45174e;return{'left':_0x3167c5,'top':_0x308abc,'width':_0x127393-_0x3167c5,'height':_0x3a9543-_0x308abc};}['_getScale'](){const _0x5f044c=_0x108f61,{scaleX:_0x266826,scaleY:_0x446890}=this[_0x5f044c(0x23e)][_0x5f044c(0x381)]();return Math['max'](_0x266826,_0x446890);}}var Lt=Object[_0x108f61(0x37b)],Mt=(_0x494ca6,_0x305910,_0x41ef2d,_0x1b519f)=>{for(var _0x2dd5ab=_0x1b519f>0x1?void 0x0:_0x1b519f?Lt(_0x305910,_0x41ef2d):_0x305910,_0x5227c2=_0x494ca6['length']-0x1,_0x326ff3;_0x5227c2>=0x0;_0x5227c2--)(_0x326ff3=_0x494ca6[_0x5227c2])&&(_0x2dd5ab=_0x326ff3(_0x2dd5ab)||_0x2dd5ab);return _0x2dd5ab;},q=(_0x26cbb9,_0x355491)=>(_0x140e74,_0x1c4bb0)=>_0x355491(_0x140e74,_0x1c4bb0,_0x26cbb9);let Ee=class extends a['RxDisposable']{constructor(_0x5d72dc,_0x15309d,_0x1876b4,_0x255541,_0x8ef8d){const _0x55a40b=_0x108f61;super(),_(this,_0x55a40b(0x27c),[]),_(this,'_cursors',[]),(this[_0x55a40b(0x17e)]=_0x5d72dc,this[_0x55a40b(0xee)]=_0x15309d,this[_0x55a40b(0x193)]=_0x1876b4,this[_0x55a40b(0x34d)]=_0x255541,this[_0x55a40b(0x2f3)]=_0x8ef8d,this[_0x55a40b(0x239)]());}[_0x108f61(0x239)](){const _0x34a9bb=_0x108f61,_0x2d291f=this[_0x34a9bb(0x17e)]['unitId'],_0x2b7a60=this['_docSkeletonManagerService'];this[_0x34a9bb(0x1d6)](I[_0x34a9bb(0x1df)]([this['_collabCursorController']['getCollabCursors$'](_0x2d291f),this[_0x34a9bb(0x2f3)]['currentTheme$']])[_0x34a9bb(0x143)]($[_0x34a9bb(0x17f)](([_0x3064a6,_0x3ad5d8])=>({'skeleton':_0x2b7a60[_0x34a9bb(0x35c)](),'cursors':[..._0x3064a6[_0x34a9bb(0x1a2)]()][_0x34a9bb(0x1b3)](_0x3e1a2d=>({..._0x3e1a2d,'color':this[_0x34a9bb(0x2f3)][_0x34a9bb(0x142)](_0x3e1a2d[_0x34a9bb(0x385)])}))})))[_0x34a9bb(0x346)](_0x5aea98=>{const _0x137272=_0x34a9bb;if(this[_0x137272(0x378)](),_0x5aea98){const {skeleton:_0x5561af,cursors:_0x167e10}=_0x5aea98;this['_updateCollabCursors'](_0x5561af,_0x167e10);}})),this[_0x34a9bb(0x373)](),this[_0x34a9bb(0x2f0)]();}[_0x108f61(0x28b)](_0x4595d2,_0x26dd0a){const _0x444440=_0x108f61,{scene:_0xc9d1fa,mainComponent:_0x34c07d}=this['_context'],_0x462dcd=_0x26dd0a[_0x444440(0x17f)](_0x5b3a80=>new Le(_0x5b3a80,_0xc9d1fa,_0x4595d2,_0x34c07d));this[_0x444440(0x27c)]=_0x462dcd,this[_0x444440(0x10f)]=_0x26dd0a;}['_refreshCollabCursors'](){const _0x5133ec=_0x108f61;this[_0x5133ec(0x378)]();const {scene:_0x346077,mainComponent:_0x7b623e}=this[_0x5133ec(0x17e)],_0x4733a3=this[_0x5133ec(0xee)]['getSkeleton'](),_0x151401=this['_cursors'][_0x5133ec(0x17f)](_0x1103b9=>new Le(_0x1103b9,_0x346077,_0x4733a3,_0x7b623e));this[_0x5133ec(0x27c)]=_0x151401;}[_0x108f61(0x378)](){const _0x844e36=_0x108f61;this[_0x844e36(0x27c)][_0x844e36(0xf8)](_0x471a57=>_0x471a57[_0x844e36(0x1a6)]()),this['_cursorShapes']=[];}[_0x108f61(0x2f0)](){const _0x4d8e13=_0x108f61,_0x4b07f0=[T[_0x4d8e13(0x281)]['id']];this[_0x4d8e13(0x1d6)](this['_commandService'][_0x4d8e13(0x1c7)](_0x7eedc9=>{const _0xad0465=_0x4d8e13;_0x4b07f0[_0xad0465(0x36c)](_0x7eedc9['id'])&&_0x7eedc9[_0xad0465(0x39e)][_0xad0465(0x2aa)]===this[_0xad0465(0x17e)][_0xad0465(0x2aa)]&&this[_0xad0465(0x394)]();}));}[_0x108f61(0x373)](){const _0x124df6=_0x108f61;this[_0x124df6(0x1d6)](a[_0x124df6(0x2f9)](this[_0x124df6(0x17e)][_0x124df6(0x2c3)]['onTransformChange$'])['pipe']($[_0x124df6(0x229)](_0x509ad2=>_0x509ad2['type']===C[_0x124df6(0x392)][_0x124df6(0x202)]),$[_0x124df6(0x126)](0x10))['subscribe'](()=>{const _0x179950=_0x124df6;this[_0x179950(0x394)]();}));}};Ee=Mt([q(0x1,a[_0x108f61(0x230)](V[_0x108f61(0x1fe)])),q(0x2,a[_0x108f61(0x230)](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x108f61(0x230)](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x108f61(0x28c)]{constructor(_0x4b001e,_0x1be8de){const _0xdfa8f1=_0x108f61;super(_0x4b001e,_0x1be8de),_(this,_0xdfa8f1(0x261)),_(this,_0xdfa8f1(0x1a5),!0x1),_(this,_0xdfa8f1(0x2bd)),_(this,_0xdfa8f1(0x262),''),_(this,_0xdfa8f1(0x118),_0xdfa8f1(0x305)),_(this,_0xdfa8f1(0x18e)),(_0x1be8de&&this['setShapeProps'](_0x1be8de),this[_0xdfa8f1(0x20e)][_0xdfa8f1(0x2fe)](()=>this[_0xdfa8f1(0x2f6)]({'hovered':!0x0})),this[_0xdfa8f1(0x14a)]['subscribeEvent'](()=>this[_0xdfa8f1(0x2f6)]({'hovered':!0x1})));}['setShapeProps'](_0x172ed1){const _0x70336b=_0x108f61;var _0x5027ef,_0x13cece,_0xdeb6e9,_0x26c52c,_0x4e3068,_0x2e98be;this['_color']=(_0x5027ef=_0x172ed1[_0x70336b(0x385)])!=null?_0x5027ef:this[_0x70336b(0x261)],this[_0x70336b(0x1a5)]=(_0x13cece=_0x172ed1[_0x70336b(0x2fb)])!=null?_0x13cece:this['_hovered'],this[_0x70336b(0x2bd)]=(_0xdeb6e9=_0x172ed1[_0x70336b(0x1fb)])!=null?_0xdeb6e9:this[_0x70336b(0x2bd)],this['_name']=(_0x26c52c=_0x172ed1['name'])!=null?_0x26c52c:this[_0x70336b(0x262)],this[_0x70336b(0x118)]=(_0x4e3068=_0x172ed1[_0x70336b(0x32a)])!=null?_0x4e3068:this['_labelPosition'],this['_backgroundColor']=(_0x2e98be=_0x172ed1[_0x70336b(0x18d)])!=null?_0x2e98be:this[_0x70336b(0x18e)],this[_0x70336b(0x2c8)]({'width':_0x172ed1['width'],'height':_0x172ed1[_0x70336b(0x332)]});}[_0x108f61(0x14b)](_0x5d6185){const _0x4b37f2=_0x108f61,{row:_0x51e21e,column:_0x3ba2c4}=_0x5d6185;if(_0x51e21e>=this[_0x4b37f2(0x2bd)][_0x4b37f2(0x1b7)]&&_0x51e21e<=this['_range'][_0x4b37f2(0x237)]&&_0x3ba2c4>=this[_0x4b37f2(0x2bd)][_0x4b37f2(0x389)]&&_0x3ba2c4<=this[_0x4b37f2(0x2bd)][_0x4b37f2(0x25e)]){this[_0x4b37f2(0x2f6)]({'hovered':!0x0});return;}this[_0x4b37f2(0x2f6)]({'hovered':!0x1});}['triggerDblclick'](_0x17284a){return!0x1;}[_0x108f61(0x100)](_0x6f6f1e){const _0x371231=_0x108f61;C[_0x371231(0x398)][_0x371231(0x2d0)](_0x6f6f1e,{'width':this[_0x371231(0x37d)],'height':this[_0x371231(0x332)],'strokeWidth':Pt,'stroke':this[_0x371231(0x261)],'evented':!0x1,'fill':this[_0x371231(0x18e)]}),this['_hovered']&&(_0x6f6f1e['save'](),_0x6f6f1e[_0x371231(0x207)](0x1,0x0,0x0,0x1,this[_0x371231(0x37d)],this[_0x371231(0x118)]===_0x371231(0x382)?0x0:-X),re[_0x371231(0x2d0)](_0x6f6f1e,{'text':this[_0x371231(0x262)],'color':this[_0x371231(0x261)]}),_0x6f6f1e['restore']());}}var wt=Object[_0x108f61(0x37b)],yt=(_0x5885b5,_0xd9712b,_0xea856d,_0x64e683)=>{const _0xb0fd14=_0x108f61;for(var _0x1a3acc=_0x64e683>0x1?void 0x0:_0x64e683?wt(_0xd9712b,_0xea856d):_0xd9712b,_0x2643d4=_0x5885b5[_0xb0fd14(0x14d)]-0x1,_0x3e82e2;_0x2643d4>=0x0;_0x2643d4--)(_0x3e82e2=_0x5885b5[_0x2643d4])&&(_0x1a3acc=_0x3e82e2(_0x1a3acc)||_0x1a3acc);return _0x1a3acc;},ue=(_0x3f9446,_0x407706)=>(_0x1e3c70,_0x4cd3ee)=>_0x407706(_0x1e3c70,_0x4cd3ee,_0x3f9446);const $t=0x1389;let Ce=class extends a['RxDisposable']{constructor(_0x45b13e,_0x302adb,_0x55ddca,_0x502607){const _0x25395a=_0x108f61;super(),_(this,_0x25395a(0x10f),new Set()),_(this,_0x25395a(0x1a1),null),(this[_0x25395a(0x17e)]=_0x45b13e,this[_0x25395a(0x2eb)]=_0x302adb,this[_0x25395a(0x193)]=_0x55ddca,this[_0x25395a(0x2f3)]=_0x502607,this['_init']());}[_0x108f61(0x239)](){const _0x28b8bc=_0x108f61;this[_0x28b8bc(0x2eb)][_0x28b8bc(0x228)][_0x28b8bc(0x143)]($[_0x28b8bc(0x1fd)](this[_0x28b8bc(0x251)]),$[_0x28b8bc(0x1c1)](_0x26121c=>{const _0x4263fb=_0x28b8bc;if(_0x26121c){const _0x424740=_0x26121c['sheetId'];return I['combineLatest'](this[_0x4263fb(0x193)][_0x4263fb(0x271)](this[_0x4263fb(0x17e)]['unitId']),this[_0x4263fb(0x2f3)]['currentTheme$'])[_0x4263fb(0x143)]($['map'](([_0x44f9e5,_0x4fb36a])=>{const _0x5e4dee=_0x4263fb,_0x195ac1=new Map();return _0x44f9e5[_0x5e4dee(0xf8)]((_0xb932d7,_0x5da238)=>{const _0x5e858b=_0x5e4dee;if(_0xb932d7['sheetID']===_0x424740){const _0x1ba439={..._0xb932d7};_0x1ba439['color']=this[_0x5e858b(0x2f3)][_0x5e858b(0x142)](_0xb932d7[_0x5e858b(0x385)]),_0x195ac1[_0x5e858b(0x187)](_0x5da238,_0x1ba439);}}),{'skeleton':_0x26121c,'cursors':_0x195ac1};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x28b8bc(0x346)](({skeleton:_0x13f4ff,cursors:_0x35eae9})=>{const _0x46ad90=_0x28b8bc;this[_0x46ad90(0x378)](),_0x13f4ff&&this[_0x46ad90(0x28b)](_0x13f4ff,_0x35eae9);}),this[_0x28b8bc(0x2eb)]['currentSkeleton$'][_0x28b8bc(0x346)](_0x1e9ea5=>{const _0x13f9fc=_0x28b8bc;if(_0x1e9ea5==null)return;const {skeleton:_0x57e7a6}=_0x1e9ea5,{scene:_0x1c69ef}=this[_0x13f9fc(0x17e)];_0x1c69ef[_0x13f9fc(0x167)][_0x13f9fc(0x2fe)](a['debounce'](_0xf0297c=>{const _0x4e9bba=_0x13f9fc;var _0xa7cd06,_0x5c50ff;const {offsetX:_0x1e4874,offsetY:_0x23b93f}=_0xf0297c,{x:_0x1e5e42,y:_0x4a5be1}=_0x1c69ef['getRelativeToViewportCoord'](C[_0x4e9bba(0x186)][_0x4e9bba(0x39a)]([_0x1e4874,_0x23b93f])),{scaleX:_0x196eb9,scaleY:_0x762cb4}=_0x1c69ef[_0x4e9bba(0x381)](),_0x203e14=_0x1c69ef[_0x4e9bba(0x1ff)](C[_0x4e9bba(0x121)][_0x4e9bba(0x299)]),_0x4a3256=_0x1c69ef[_0x4e9bba(0x204)](C[_0x4e9bba(0x186)][_0x4e9bba(0x39a)]([_0x1e5e42,_0x4a5be1]),_0x203e14),_0x5b0ea8=_0x57e7a6[_0x4e9bba(0x354)](_0x1e4874,_0x23b93f,_0x196eb9,_0x762cb4,_0x4a3256);((_0xa7cd06=this[_0x4e9bba(0x1a1)])==null?void 0x0:_0xa7cd06[_0x4e9bba(0x171)])===_0x5b0ea8[_0x4e9bba(0x171)]&&((_0x5c50ff=this[_0x4e9bba(0x1a1)])==null?void 0x0:_0x5c50ff[_0x4e9bba(0x3b2)])===_0x5b0ea8['row']||this[_0x4e9bba(0x10f)][_0x4e9bba(0xf8)](_0x5043b9=>{const _0x489aff=_0x4e9bba;_0x5043b9[_0x489aff(0x14b)](_0x5b0ea8);});},0x64));});}[_0x108f61(0x28b)](_0x2a0422,_0x4a0c7b){const _0x20e2b9=_0x108f61;var _0x33f454;const _0x5205fe=(_0x33f454=this[_0x20e2b9(0x2eb)]['getCurrent']())==null?void 0x0:_0x33f454[_0x20e2b9(0x2c1)];if(!_0x5205fe)return;const _0x343421=this[_0x20e2b9(0x1f2)]();if(!_0x343421)return;this[_0x20e2b9(0x10f)]['forEach'](_0x3e23c9=>{const _0x4dd9e3=_0x20e2b9;_0x3e23c9[_0x4dd9e3(0x2e6)]();});const {scene:_0x156026}=_0x343421,_0xe35ba=xt(Array[_0x20e2b9(0x3b3)](_0x4a0c7b[_0x20e2b9(0x1a2)]()))[_0x20e2b9(0x17f)](_0x46a589=>{const _0x248000=_0x20e2b9,{color:_0x38dfad,range:_0x190342,name:_0x519bc1,selection:_0x1d2122,sheetID:_0x4af6ea}=_0x46a589,{startColumn:_0x534b8c,startRow:_0xd341bc,endColumn:_0x344ae4,endRow:_0x5f5845}=_0x190342,_0x400141=J[_0x248000(0x341)](_0xd341bc,_0x534b8c,_0x156026,_0x5205fe),_0x1a9e23=J['getCoordByCell'](_0x5f5845,_0x344ae4,_0x156026,_0x5205fe),{columnHeaderHeightAndMarginTop:_0x5ddd4e}=_0x5205fe,{startX:_0x36447a,startY:_0x46e607}=_0x400141,{endX:_0x5dd5b9,endY:_0x1bf8b1}=_0x1a9e23,_0x5ca1dc=_0x5dd5b9-_0x36447a,_0x21d1b9=_0x1bf8b1-_0x46e607,_0xdd8db={'labelPosition':_0x46e607-_0x5ddd4e>=X?'top':_0x248000(0x382),'sheetID':_0x4af6ea,'range':_0x190342,'color':_0x38dfad,'name':_0x519bc1,'selection':_0x1d2122,'left':_0x36447a,'top':_0x46e607,'width':_0x5ca1dc,'height':_0x21d1b9,'evented':!0x1,'zIndex':$t};return new je(_0x519bc1,_0xdd8db);});_0x156026[_0x20e2b9(0x270)](_0xe35ba,At),this[_0x20e2b9(0x10f)]=new Set(_0xe35ba);}[_0x108f61(0x378)](){const _0x16ad39=_0x108f61;var _0x47b49f;(_0x47b49f=this['_cursors'])==null||_0x47b49f[_0x16ad39(0xf8)](_0x22c6cd=>_0x22c6cd[_0x16ad39(0x1a6)]());}[_0x108f61(0x1f2)](){const _0x331b98=_0x108f61;return J[_0x331b98(0x113)](this[_0x331b98(0x17e)][_0x331b98(0x291)],this['_context']);}};Ce=yt([ue(0x1,a['Inject'](J[_0x108f61(0x1ea)])),ue(0x2,a['Inject'](F)),ue(0x3,a[_0x108f61(0x230)](a[_0x108f61(0x108)]))],Ce);function xt(_0x224bfa){const _0x347d1f=_0x108f61,_0x4d4b4c=new Map();return _0x224bfa['forEach'](_0x2158a7=>{const _0x58a2c7=_0x5f13;if(_0x4d4b4c[_0x58a2c7(0x369)](_0x2158a7[_0x58a2c7(0x1a0)])){const _0x58465b=_0x4d4b4c[_0x58a2c7(0x1e2)](_0x2158a7[_0x58a2c7(0x1a0)]);_0x58465b[_0x58a2c7(0x21e)]+=',\x20'+_0x2158a7[_0x58a2c7(0x21e)];}else _0x4d4b4c[_0x58a2c7(0x187)](_0x2158a7[_0x58a2c7(0x1a0)],_0x2158a7);}),Array[_0x347d1f(0x3b3)](_0x4d4b4c[_0x347d1f(0x1a2)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x47a1d0,_0x2dc721,_0x16b744,_0x3d85b9)=>{const _0x12d83d=_0x108f61;for(var _0xc671a1=_0x3d85b9>0x1?void 0x0:_0x3d85b9?Bt(_0x2dc721,_0x16b744):_0x2dc721,_0x328c67=_0x47a1d0[_0x12d83d(0x14d)]-0x1,_0x338161;_0x328c67>=0x0;_0x328c67--)(_0x338161=_0x47a1d0[_0x328c67])&&(_0xc671a1=_0x338161(_0xc671a1)||_0xc671a1);return _0xc671a1;},y=(_0x2c7a71,_0x375bfd)=>(_0x12e8a2,_0x20812b)=>_0x375bfd(_0x12e8a2,_0x20812b,_0x2c7a71);let Z=class extends a[_0x108f61(0x3b6)]{constructor(_0xddce23,_0xdeb5e4,_0x40ee08,_0x271085,_0x3581d1,_0x16d8b8){const _0x5d09fa=_0x108f61;super(),this[_0x5d09fa(0x37f)]=_0xddce23,this[_0x5d09fa(0x104)]=_0xdeb5e4,this[_0x5d09fa(0x12d)]=_0x40ee08,this[_0x5d09fa(0x300)]=_0x271085,this[_0x5d09fa(0x3a1)]=_0x3581d1,this[_0x5d09fa(0x1ae)]=_0x16d8b8,this['_setupBeforeClosingHandler'](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x2a600f=_0x108f61;this[_0x2a600f(0x1d6)](this[_0x2a600f(0x37f)][_0x2a600f(0x2c5)](()=>{const _0x2da64a=_0x2a600f;if(this[_0x2da64a(0x104)][_0x2da64a(0x2cd)][_0x2da64a(0x22e)])return this['_localeService']['t']('collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x7805bf=_0x108f61;this[_0x7805bf(0x1d6)](this[_0x7805bf(0x12d)][_0x7805bf(0xfa)]['subscribe'](_0x5cc0be=>{const _0x3ecc37=_0x7805bf;_0x5cc0be['id']===u[_0x3ecc37(0x35a)][_0x3ecc37(0x181)]&&this[_0x3ecc37(0x300)]['show']({'type':p['MessageType'][_0x3ecc37(0x1c0)],'content':this[_0x3ecc37(0x1ae)]['t'](_0x3ecc37(0x1a8))}),_0x5cc0be['id']===u[_0x3ecc37(0x35a)][_0x3ecc37(0x39b)]&&this[_0x3ecc37(0x300)]['show']({'type':p[_0x3ecc37(0x1af)][_0x3ecc37(0x1c0)],'content':this[_0x3ecc37(0x1ae)]['t'](_0x3ecc37(0x349))}),_0x5cc0be['id']===u[_0x3ecc37(0x35a)]['PERMISSION_DENIED']&&this['_notificationService'][_0x3ecc37(0x146)]({'title':this[_0x3ecc37(0x1ae)]['t'](_0x3ecc37(0x1a3)),'content':this[_0x3ecc37(0x1ae)]['t'](_0x3ecc37(0x264)),'type':_0x3ecc37(0x29b),'duration':0x0}),_0x5cc0be['id']===u[_0x3ecc37(0x35a)]['CONFLICT']&&this[_0x3ecc37(0x300)][_0x3ecc37(0x146)]({'type':p['MessageType'][_0x3ecc37(0x1b4)],'content':this[_0x3ecc37(0x1ae)]['t']('collaboration.closeRoom')+'('+_0x5cc0be[_0x3ecc37(0x184)]+')'}),_0x5cc0be['id']===u[_0x3ecc37(0x35a)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x3ecc37(0x146)]({'type':p['MessageType'][_0x3ecc37(0x1c0)],'content':this[_0x3ecc37(0x1ae)]['t'](_0x5cc0be['data']||'')}),_0x5cc0be['id']===u[_0x3ecc37(0x35a)][_0x3ecc37(0x307)]&&this[_0x3ecc37(0x300)][_0x3ecc37(0x146)]({'type':p[_0x3ecc37(0x1af)][_0x3ecc37(0x1c0)],'content':this['_localeService']['t']('session.will-retry')}),_0x5cc0be['id']===u['CollaborationUIEventId'][_0x3ecc37(0x30d)]&&this[_0x3ecc37(0x300)]['show']({'type':p[_0x3ecc37(0x1af)][_0x3ecc37(0x1b4)],'content':this['_localeService']['t'](_0x3ecc37(0x25a))}),_0x5cc0be['id']===u[_0x3ecc37(0x35a)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x3ecc37(0x300)][_0x3ecc37(0x146)]({'type':p['MessageType'][_0x3ecc37(0x1b4)],'content':this['_localeService']['t'](_0x3ecc37(0x180))});}));}};Z=Ft([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x108f61(0x1d8)]),y(0x2,a[_0x108f61(0x230)](u[_0x108f61(0xf5)])),y(0x3,O[_0x108f61(0x1c5)]),y(0x4,O[_0x108f61(0x158)]),y(0x5,a[_0x108f61(0x230)](a[_0x108f61(0x179)]))],Z);var jt=Object[_0x108f61(0x37b)],kt=(_0x4672c3,_0xb8a3c8,_0x154422,_0x271b63)=>{const _0x18dfb9=_0x108f61;for(var _0x56ecb7=_0x271b63>0x1?void 0x0:_0x271b63?jt(_0xb8a3c8,_0x154422):_0xb8a3c8,_0xa38866=_0x4672c3[_0x18dfb9(0x14d)]-0x1,_0x3320d9;_0xa38866>=0x0;_0xa38866--)(_0x3320d9=_0x4672c3[_0xa38866])&&(_0x56ecb7=_0x3320d9(_0x56ecb7)||_0x56ecb7);return _0x56ecb7;},z=(_0x4a32dd,_0x4a61e2)=>(_0x36f19d,_0x42ebd9)=>_0x4a61e2(_0x36f19d,_0x42ebd9,_0x4a32dd);let Q=class extends a[_0x108f61(0x3b6)]{constructor(_0x208bb3,_0x20b824,_0x593774,_0x229cbd){const _0x3d20e4=_0x108f61;super(),_(this,_0x3d20e4(0x30b)),(this[_0x3d20e4(0x266)]=_0x208bb3,this[_0x3d20e4(0x182)]=_0x20b824,this[_0x3d20e4(0x214)]=_0x593774,this[_0x3d20e4(0x160)]=_0x229cbd,this[_0x3d20e4(0x239)]());}['_init'](){const _0x18e24b=_0x108f61;this[_0x18e24b(0x114)](),this[_0x18e24b(0x168)](),this['_monkeyPatchLogService'](),this[_0x18e24b(0x31b)]();}[_0x108f61(0x31b)](){const _0x489a46=_0x108f61;this[_0x489a46(0x1d6)](this[_0x489a46(0x160)][_0x489a46(0x1a9)]['subscribe'](_0x1457cf=>{const _0x5f28fe=_0x489a46;this[_0x5f28fe(0x30b)]=_0x1457cf==null?void 0x0:_0x1457cf[_0x5f28fe(0x201)];}));}[_0x108f61(0x114)](){const _0x521bef=_0x108f61,_0x3d6f78=_0x1477c0=>{const _0x564ef5=_0x5f13;var _0x3392e8;this[_0x564ef5(0x1f8)]('error',_0x564ef5(0x10a)+_0x1477c0[_0x564ef5(0x1ac)]+'\x20at\x20'+_0x1477c0[_0x564ef5(0x290)]+':'+_0x1477c0[_0x564ef5(0x16c)]+':'+_0x1477c0[_0x564ef5(0x20d)]+'\x0a'+(((_0x3392e8=_0x1477c0['error'])==null?void 0x0:_0x3392e8['stack'])||''));};window[_0x521bef(0x321)]('error',_0x3d6f78),this[_0x521bef(0x1d6)](()=>{const _0x57a278=_0x521bef;window['removeEventListener'](_0x57a278(0x29b),_0x3d6f78);});}[_0x108f61(0x168)](){const _0x1c59ab=_0x108f61,_0x18afb3=_0x2ffffe=>{const _0x281dd7=_0x5f13;this['_uploadLog'](_0x281dd7(0x29b),_0x281dd7(0x1fa)+_0x2ffffe[_0x281dd7(0x192)]);};window[_0x1c59ab(0x321)](_0x1c59ab(0x395),_0x18afb3),this[_0x1c59ab(0x1d6)](()=>{const _0x432af0=_0x1c59ab;window[_0x432af0(0x309)](_0x432af0(0x395),_0x18afb3);});}[_0x108f61(0x1e1)](){const _0x5c38da=_0x108f61,_0x66a9be=this[_0x5c38da(0x214)]['error']['bind'](this['_logService']);this[_0x5c38da(0x214)][_0x5c38da(0x29b)]=(..._0x4b62e8)=>{const _0xb20673=_0x5c38da,_0x3f78f9=_0x4b62e8['map'](_0x1c8527=>_0x1c8527 instanceof Error?_0x1c8527[_0xb20673(0x1ac)]+'\x0a'+_0x1c8527[_0xb20673(0x15f)]:String(_0x1c8527))[_0xb20673(0x1d0)]('\x20');this[_0xb20673(0x1f8)](_0xb20673(0x29b),'[LogService\x20Error]:\x20'+_0x3f78f9),_0x66a9be(..._0x4b62e8);},this[_0x5c38da(0x1d6)](()=>{const _0x589d02=_0x5c38da;this[_0x589d02(0x214)]['error']=_0x66a9be;});}[_0x108f61(0x1f8)](_0x1ca26e,_0x35aa71){const _0x25380e=_0x108f61;try{const _0x5bade0={'userId':this[_0x25380e(0x30b)],'logLabel':_0x1ca26e,'content':_0x35aa71};this[_0x25380e(0x182)]['post']('/universer-api/frontend/logs',{'body':_0x5bade0})[_0x25380e(0x11e)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x108f61(0x230)](a['Injector'])),z(0x1,a[_0x108f61(0x230)](x[_0x108f61(0x2de)])),z(0x2,a['ILogService']),z(0x3,a[_0x108f61(0x230)](u[_0x108f61(0x2af)]))],Q);const Yt=_0x108f61(0x12a),Me={};var Ht=Object[_0x108f61(0x37b)],Wt=(_0x3a19ee,_0x3f8d05,_0x314b71,_0x45b9f3)=>{for(var _0xe66453=_0x45b9f3>0x1?void 0x0:_0x45b9f3?Ht(_0x3f8d05,_0x314b71):_0x3f8d05,_0x3cd972=_0x3a19ee['length']-0x1,_0x4141e8;_0x3cd972>=0x0;_0x3cd972--)(_0x4141e8=_0x3a19ee[_0x3cd972])&&(_0xe66453=_0x4141e8(_0xe66453)||_0xe66453);return _0xe66453;},Ae=(_0x3e2791,_0x4e99b3)=>(_0x38daac,_0x53f15c)=>_0x4e99b3(_0x38daac,_0x53f15c,_0x3e2791);let ee=class{constructor(_0x1e175d,_0x236665){const _0x544bb1=_0x108f61;this[_0x544bb1(0x111)]=_0x1e175d,this[_0x544bb1(0x10b)]=_0x236665;}[_0x108f61(0x211)](_0x422007){const _0x24c86b=_0x108f61;this['_transformUndoRedoStack'](_0x422007),this[_0x24c86b(0x2bb)](_0x422007);}['transformRemoteChangeset'](_0x1573f7){const _0x9d2706=_0x108f61,{unitID:_0x1e8bc4}=_0x1573f7,_0x3deab9=this[_0x9d2706(0x10b)][_0x9d2706(0x330)](_0x1e8bc4)[_0x9d2706(0x216)](T['DocIMEInputManagerService']),{redoCache:_0x3263fa}=_0x3deab9['getUndoRedoMutationParamsCache']();if(_0x3263fa[_0x9d2706(0x14d)]===0x0)return _0x1573f7;let _0xb2697d=a['Tools'][_0x9d2706(0x2e0)](_0x1573f7[_0x9d2706(0x1d5)][0x0]);for(let _0x5259e1=0x0;_0x5259e1<_0x3263fa[_0x9d2706(0x14d)];_0x5259e1++){const _0x454a03={'id':_0x9d2706(0x325),'params':{..._0x3263fa[_0x5259e1]}},_0xb3fb0c=this['_transformService']['transformMutation'](_0xb2697d,_0x454a03,!0x1);if(g['isTransformMutationFailure'](_0xb3fb0c))throw _0xb3fb0c[_0x9d2706(0x29b)];_0xb2697d=_0xb3fb0c['m1Prime'];}return{...a[_0x9d2706(0x139)][_0x9d2706(0x2e0)](_0x1573f7),'mutations':[_0xb2697d]};}['_transformUndoRedoStack'](_0x1087b0){const _0x1545a4=_0x108f61,{unitID:_0x53e782}=_0x1087b0,_0x199fa6=this[_0x1545a4(0x10b)]['getRenderById'](_0x53e782)[_0x1545a4(0x216)](T[_0x1545a4(0x1d7)]),{undoCache:_0x27a146,redoCache:_0x468238}=_0x199fa6[_0x1545a4(0x3b5)]();if(_0x27a146[_0x1545a4(0x14d)]===0x0||_0x468238[_0x1545a4(0x14d)]===0x0)return;const _0x58fec4=[],_0x2fedc8=[];let _0x2de1d6=a['Tools'][_0x1545a4(0x2e0)](_0x1087b0['mutations'][0x0]),_0x289f9e=a[_0x1545a4(0x139)][_0x1545a4(0x2e0)](_0x1087b0[_0x1545a4(0x1d5)][0x0]);for(let _0x1378d3=_0x27a146[_0x1545a4(0x14d)]-0x1;_0x1378d3>=0x0;_0x1378d3--){const _0x59b4ce={'id':_0x1545a4(0x325),'params':{..._0x27a146[_0x1378d3]}},_0x541704={'id':_0x1545a4(0x325),'params':{..._0x468238[_0x1378d3]}},_0x4b5609=this[_0x1545a4(0x111)][_0x1545a4(0x10c)](_0x2de1d6,_0x59b4ce,!0x1),_0x609566=this[_0x1545a4(0x111)]['transformMutation'](_0x289f9e,_0x541704,!0x1);if(g['isTransformMutationFailure'](_0x4b5609))throw _0x4b5609[_0x1545a4(0x29b)];if(g[_0x1545a4(0x35f)](_0x609566))throw _0x609566['error'];_0x58fec4[_0x1545a4(0x147)](_0x4b5609['m2Prime'][_0x1545a4(0x39e)]),_0x2fedc8[_0x1545a4(0x147)](_0x609566[_0x1545a4(0x1bf)]['params']),_0x2de1d6=_0x4b5609[_0x1545a4(0x384)],_0x289f9e=_0x609566[_0x1545a4(0x384)];}_0x199fa6[_0x1545a4(0x140)]({'undoCache':_0x58fec4,'redoCache':_0x2fedc8});}[_0x108f61(0x2bb)](_0x23eb85){const _0x4854b2=_0x108f61,{unitID:_0x65ef0e}=_0x23eb85,_0x19779b=this[_0x4854b2(0x10b)][_0x4854b2(0x330)](_0x65ef0e)[_0x4854b2(0x216)](T[_0x4854b2(0x1d7)]),_0xf3e36c=_0x19779b[_0x4854b2(0x20f)]();if(_0xf3e36c==null)return;const _0x1f6549=[{'id':_0x4854b2(0x325),'params':{'unitId':_0x23eb85['unitID'],'actions':null,'textRanges':[_0xf3e36c]}}],_0x1772b5=this[_0x4854b2(0x111)][_0x4854b2(0x1be)](_0x23eb85,_0x1f6549);if(!g[_0x4854b2(0x10d)](_0x1772b5))throw _0x1772b5['error'];const _0x41ee1a=_0x1772b5[_0x4854b2(0x1bf)][0x0]['params'][_0x4854b2(0x23d)];Array[_0x4854b2(0x280)](_0x41ee1a)&&_0x41ee1a[_0x4854b2(0x14d)]&&_0x19779b[_0x4854b2(0x367)](_0x41ee1a[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x108f61(0x1cf)])],ee);var Vt=Object[_0x108f61(0x37b)],Gt=(_0x38d197,_0x32fee0,_0x26434c,_0x3aba73)=>{const _0x438923=_0x108f61;for(var _0x5f4ac4=_0x3aba73>0x1?void 0x0:_0x3aba73?Vt(_0x32fee0,_0x26434c):_0x32fee0,_0x3ea13f=_0x38d197[_0x438923(0x14d)]-0x1,_0x2d7d53;_0x3ea13f>=0x0;_0x3ea13f--)(_0x2d7d53=_0x38d197[_0x3ea13f])&&(_0x5f4ac4=_0x2d7d53(_0x5f4ac4)||_0x5f4ac4);return _0x5f4ac4;},Ie=(_0x21c55e,_0x43d932)=>(_0xc8748f,_0x467fbd)=>_0x43d932(_0xc8748f,_0x467fbd,_0x21c55e);let te=class{constructor(_0x5e5cbc,_0x49494c,_0x579c88){const _0x52dc41=_0x108f61;this[_0x52dc41(0x266)]=_0x5e5cbc,this['_transformService']=_0x49494c,this[_0x52dc41(0x2e8)]=_0x579c88;}[_0x108f61(0x2bf)](_0x29a21c){const _0x5ba2cc=_0x108f61;this[_0x5ba2cc(0x37a)](_0x29a21c);}[_0x108f61(0x379)](_0xdfa8a){const _0x4debf2=_0x108f61,{unitID:_0x4268ed}=_0xdfa8a,{collaboration:_0x2a38e2}=this[_0x4debf2(0x2e8)][_0x4debf2(0x2a1)](_0x4268ed);if(_0x2a38e2[_0x4debf2(0x14d)]===0x0)return _0xdfa8a;let _0x5ad3ad=a[_0x4debf2(0x139)][_0x4debf2(0x2e0)](_0xdfa8a[_0x4debf2(0x1d5)][0x0]);for(let _0x55a576=0x0;_0x55a576<_0x2a38e2[_0x4debf2(0x14d)];_0x55a576++){const _0x4b8275={'id':_0x4debf2(0x325),'params':{'unitId':_0x2a38e2[_0x55a576][_0x4debf2(0x2aa)],..._0x2a38e2[_0x55a576][_0x4debf2(0x23a)]}},_0x45bd95=this['_transformService'][_0x4debf2(0x10c)](_0x5ad3ad,_0x4b8275,!0x1);if(g[_0x4debf2(0x35f)](_0x45bd95))throw _0x45bd95['error'];_0x5ad3ad=_0x45bd95[_0x4debf2(0x384)];}return{...a[_0x4debf2(0x139)][_0x4debf2(0x2e0)](_0xdfa8a),'mutations':[_0x5ad3ad]};}[_0x108f61(0x37a)](_0xb3d9a7){const _0x48c062=_0x108f61,{unitID:_0x4e9381}=_0xb3d9a7,{history:_0x14dbb4,collaboration:_0x2ed722}=this[_0x48c062(0x2e8)][_0x48c062(0x2a1)](_0x4e9381);if(_0x14dbb4[_0x48c062(0x14d)]===0x0&&_0x2ed722[_0x48c062(0x14d)]===0x0)return;const _0x14a52a=[],_0x155fff=[];let _0xe7161d=a['Tools'][_0x48c062(0x2e0)](_0xb3d9a7[_0x48c062(0x1d5)][0x0]),_0x12bf3d=a[_0x48c062(0x139)][_0x48c062(0x2e0)](_0xb3d9a7[_0x48c062(0x1d5)][0x0]);for(let _0x5b2da8=_0x14dbb4[_0x48c062(0x14d)]-0x1;_0x5b2da8>=0x0;_0x5b2da8--){const _0x4dbf94={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x14dbb4[_0x5b2da8][_0x48c062(0x2aa)],..._0x14dbb4[_0x5b2da8][_0x48c062(0x2da)]}},_0x198484={'id':_0x48c062(0x325),'params':{'unitId':_0x14dbb4[_0x5b2da8]['unitId'],..._0x14dbb4[_0x5b2da8][_0x48c062(0x23a)]}},_0x3e1654=this[_0x48c062(0x111)][_0x48c062(0x10c)](_0xe7161d,_0x4dbf94,!0x1),_0x571bec=this[_0x48c062(0x111)][_0x48c062(0x10c)](_0x12bf3d,_0x198484,!0x1);if(g[_0x48c062(0x35f)](_0x3e1654))throw _0x3e1654[_0x48c062(0x29b)];if(g[_0x48c062(0x35f)](_0x571bec))throw _0x571bec[_0x48c062(0x29b)];_0x14a52a['unshift']({..._0x14dbb4[_0x5b2da8],'undoState':_0x3e1654[_0x48c062(0x1bf)][_0x48c062(0x39e)],'redoState':_0x571bec[_0x48c062(0x1bf)][_0x48c062(0x39e)]}),_0xe7161d=_0x3e1654['m1Prime'],_0x12bf3d=_0x571bec['m1Prime'];}_0xe7161d=a[_0x48c062(0x139)][_0x48c062(0x2e0)](_0xb3d9a7[_0x48c062(0x1d5)][0x0]),_0x12bf3d=a[_0x48c062(0x139)]['deepClone'](_0xb3d9a7[_0x48c062(0x1d5)][0x0]);for(let _0xb034a1=_0x2ed722[_0x48c062(0x14d)]-0x1;_0xb034a1>=0x0;_0xb034a1--){const _0x39a26f={'id':_0x48c062(0x325),'params':{'unitId':_0x2ed722[_0xb034a1]['unitId'],..._0x2ed722[_0xb034a1][_0x48c062(0x2da)]}},_0xbf49ea={'id':_0x48c062(0x325),'params':{'unitId':_0x2ed722[_0xb034a1]['unitId'],..._0x2ed722[_0xb034a1][_0x48c062(0x23a)]}},_0x14715e=this['_transformService']['transformMutation'](_0xe7161d,_0x39a26f,!0x1),_0x585583=this[_0x48c062(0x111)][_0x48c062(0x10c)](_0x12bf3d,_0xbf49ea,!0x1);if(g[_0x48c062(0x35f)](_0x14715e))throw _0x14715e['error'];if(g[_0x48c062(0x35f)](_0x585583))throw _0x585583[_0x48c062(0x29b)];_0x155fff[_0x48c062(0x147)]({..._0x2ed722[_0xb034a1],'undoState':_0x14715e[_0x48c062(0x1bf)][_0x48c062(0x39e)],'redoState':_0x585583[_0x48c062(0x1bf)][_0x48c062(0x39e)]}),_0xe7161d=_0x14715e[_0x48c062(0x384)],_0x12bf3d=_0x585583[_0x48c062(0x384)];}this[_0x48c062(0x2e8)][_0x48c062(0x3a2)](_0x4e9381,{'history':_0x14a52a,'collaboration':_0x155fff});}};te=Gt([Ie(0x0,a[_0x108f61(0x230)](a[_0x108f61(0x1e8)])),Ie(0x1,g[_0x108f61(0x12b)]),Ie(0x2,a[_0x108f61(0x230)](T['DocStateChangeManagerService']))],te);var Xt=Object[_0x108f61(0x37b)],Kt=(_0x53364f,_0x132b05,_0x196759,_0x1ae082)=>{const _0x3ad9fb=_0x108f61;for(var _0x4c1c74=_0x1ae082>0x1?void 0x0:_0x1ae082?Xt(_0x132b05,_0x196759):_0x132b05,_0x2c9774=_0x53364f[_0x3ad9fb(0x14d)]-0x1,_0x47a22b;_0x2c9774>=0x0;_0x2c9774--)(_0x47a22b=_0x53364f[_0x2c9774])&&(_0x4c1c74=_0x47a22b(_0x4c1c74)||_0x4c1c74);return _0x4c1c74;},Pe=(_0x36bdf7,_0x7dd84e)=>(_0x373974,_0xad49e3)=>_0x7dd84e(_0x373974,_0xad49e3,_0x36bdf7);let se=class{constructor(_0x5bb846,_0x1f108f){const _0x2d0027=_0x108f61;this['_injector']=_0x5bb846,this[_0x2d0027(0x111)]=_0x1f108f;}['transformSelections'](_0x34cdcb){const _0x29ddc0=_0x108f61;var _0x5984be;const _0x582e30=this[_0x29ddc0(0x266)][_0x29ddc0(0x1e2)](V[_0x29ddc0(0x131)]),_0x5807bb=(_0x5984be=_0x582e30[_0x29ddc0(0x344)]())!=null?_0x5984be:[];if(_0x5807bb[_0x29ddc0(0x14d)]===0x0)return;const _0x4e5e22=_0x34cdcb[_0x29ddc0(0x24b)],_0x5a5634=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4e5e22,'actions':null,'textRanges':_0x5807bb}}],_0x425016=this[_0x29ddc0(0x111)]['transformMutationsWithChangeset'](_0x34cdcb,_0x5a5634);if(!g[_0x29ddc0(0x10d)](_0x425016))throw _0x425016['error'];const _0x2f96be=_0x425016['m2Prime'][0x0][_0x29ddc0(0x39e)][_0x29ddc0(0x23d)];Array['isArray'](_0x2f96be)&&_0x2f96be['length']&&_0x582e30[_0x29ddc0(0x1c8)](_0x2f96be,{'unitId':_0x4e5e22,'subUnitId':_0x4e5e22},!0x1);}};se=Kt([Pe(0x0,a[_0x108f61(0x230)](a['Injector'])),Pe(0x1,g[_0x108f61(0x12b)])],se);var qt=Object[_0x108f61(0x37b)],zt=(_0x1e3459,_0x170142,_0x33e4e7,_0x2bed96)=>{const _0x224359=_0x108f61;for(var _0x32df13=_0x2bed96>0x1?void 0x0:_0x2bed96?qt(_0x170142,_0x33e4e7):_0x170142,_0x21484e=_0x1e3459[_0x224359(0x14d)]-0x1,_0x4e2f2d;_0x21484e>=0x0;_0x21484e--)(_0x4e2f2d=_0x1e3459[_0x21484e])&&(_0x32df13=_0x4e2f2d(_0x32df13)||_0x32df13);return _0x32df13;},N=(_0x37ac06,_0x299d11)=>(_0x4a4623,_0x221265)=>_0x299d11(_0x4a4623,_0x221265,_0x37ac06);let ie=class extends a['Disposable']{constructor(_0x5e042b,_0x54edf6,_0x16e426,_0x5a0aca,_0x326de5,_0x5a9fa1,_0x1d33d0,_0x3efbee){const _0x12443e=_0x108f61;super(),_(this,_0x12443e(0x286),new I[(_0x12443e(0x391))](u['CollaborationStatus'][_0x12443e(0x162)])),(this[_0x12443e(0x2e8)]=_0x5e042b,this[_0x12443e(0x246)]=_0x54edf6,this[_0x12443e(0x2a9)]=_0x16e426,this[_0x12443e(0x128)]=_0x5a0aca,this[_0x12443e(0x2f8)]=_0x326de5,this[_0x12443e(0x320)]=_0x5a9fa1,this[_0x12443e(0x300)]=_0x1d33d0,this['_localeService']=_0x3efbee,this['_initEntityListener']());}[_0x108f61(0x1ca)](){const _0x606963=_0x108f61;this[_0x606963(0x1d6)](this[_0x606963(0x246)]['entityInit$'][_0x606963(0x346)](_0x392752=>{const _0x477142=_0x606963,_0x3ff0d8=this[_0x477142(0x2e8)][_0x477142(0x215)][_0x477142(0x346)](_0xa2746=>{const _0x366447=_0x477142;if(_0xa2746==null)return;const {unitId:_0x435d00,redoState:_0x429c31,commandId:_0x301934}=_0xa2746;if(_0x435d00!==_0x392752['unitID'])return;const _0x5c8077={'id':_0x301934,'type':a[_0x366447(0x164)][_0x366447(0x33d)],'params':{'unitId':_0x435d00,'actions':_0x429c31['actions'],'textRanges':null}};_0x392752[_0x366447(0x2e9)](_0x5c8077);});if(_0x392752[_0x477142(0x1d6)](_0x3ff0d8),_0x392752 instanceof u[_0x477142(0xfe)]){const _0x567d27={'onTransformIME':_0x58c47a=>this[_0x477142(0x2a9)][_0x477142(0x211)](_0x58c47a),'onTransformState':_0x1db9de=>this[_0x477142(0x128)][_0x477142(0x2bf)](_0x1db9de),'onTransformSelections':_0x1c0f7e=>this[_0x477142(0x2f8)][_0x477142(0x134)](_0x1c0f7e),'onSyncEditingCollabCursor':_0xacdc51=>this['_docSyncEditingCollabCursorService'][_0x477142(0x19d)](_0xacdc51),'onTransformRemoteChangesetByIMECache':_0x59d223=>this[_0x477142(0x2a9)][_0x477142(0x379)](_0x59d223),'onTransformRemoteChangesetByStateCache':_0x4829ca=>this[_0x477142(0x128)]['transformRemoteChangeset'](_0x4829ca)};_0x392752[_0x477142(0x2e1)](_0x567d27);}}));}};ie=zt([N(0x0,a[_0x108f61(0x230)](T['DocStateChangeManagerService'])),N(0x1,a[_0x108f61(0x230)](u[_0x108f61(0x328)])),N(0x2,a[_0x108f61(0x230)](ee)),N(0x3,a[_0x108f61(0x230)](te)),N(0x4,a['Inject'](se)),N(0x5,a[_0x108f61(0x230)](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x108f61(0x230)](a[_0x108f61(0x179)]))],ie);var G=(_0x24e22c=>(_0x24e22c[_0x24e22c[_0x108f61(0x1c9)]=0x0]=_0x108f61(0x1c9),_0x24e22c[_0x24e22c['OK']=0x1]='OK',_0x24e22c[_0x24e22c[_0x108f61(0x1a7)]=0x2]=_0x108f61(0x1a7),_0x24e22c[_0x24e22c[_0x108f61(0x338)]=0x3]=_0x108f61(0x338),_0x24e22c[_0x24e22c[_0x108f61(0x352)]=0x4]=_0x108f61(0x352),_0x24e22c[_0x24e22c[_0x108f61(0x269)]=0x5]=_0x108f61(0x269),_0x24e22c[_0x24e22c[_0x108f61(0x150)]=0x6]=_0x108f61(0x150),_0x24e22c[_0x24e22c[_0x108f61(0x1b1)]=0x7]=_0x108f61(0x1b1),_0x24e22c[_0x24e22c[_0x108f61(0x255)]=0x8]=_0x108f61(0x255),_0x24e22c[_0x24e22c[_0x108f61(0x110)]=0x9]=_0x108f61(0x110),_0x24e22c[_0x24e22c[_0x108f61(0x17d)]=0xa]=_0x108f61(0x17d),_0x24e22c[_0x24e22c['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x108f61(0x39d),_0x24e22c[_0x24e22c[_0x108f61(0x12c)]=0xc]=_0x108f61(0x12c),_0x24e22c[_0x24e22c[_0x108f61(0x345)]=0xd]=_0x108f61(0x345),_0x24e22c[_0x24e22c[_0x108f61(0x2ee)]=0xe]=_0x108f61(0x2ee),_0x24e22c[_0x24e22c[_0x108f61(0x2fa)]=0xf]=_0x108f61(0x2fa),_0x24e22c[_0x24e22c['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x108f61(0x29d),_0x24e22c[_0x24e22c[_0x108f61(0x27f)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x24e22c[_0x24e22c[_0x108f61(0x19a)]=0x65]=_0x108f61(0x19a),_0x24e22c[_0x24e22c['USER_NOT_FOUND']=0xc9]=_0x108f61(0x20c),_0x24e22c[_0x24e22c[_0x108f61(0x18c)]=0xca]=_0x108f61(0x18c),_0x24e22c[_0x24e22c[_0x108f61(0x279)]=0x1389]=_0x108f61(0x279),_0x24e22c[_0x24e22c[_0x108f61(0x218)]=0x1771]=_0x108f61(0x218),_0x24e22c[_0x24e22c[_0x108f61(0x36d)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x24e22c[_0x24e22c[_0x108f61(0x35d)]=0x1773]=_0x108f61(0x35d),_0x24e22c[_0x24e22c[_0x108f61(0x1da)]=0x1b59]='APPLY_REJECT',_0x24e22c[_0x24e22c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x24e22c[_0x24e22c[_0x108f61(0x334)]=0x1b5b]=_0x108f61(0x334),_0x24e22c[_0x24e22c[_0x108f61(0x227)]=0x1b5c]=_0x108f61(0x227),_0x24e22c[_0x24e22c[_0x108f61(0x265)]=0x1b5d]=_0x108f61(0x265),_0x24e22c[_0x24e22c[_0x108f61(0x314)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x24e22c[_0x24e22c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x108f61(0x22c),_0x24e22c[_0x24e22c[_0x108f61(0x209)]=0x232a]=_0x108f61(0x209),_0x24e22c[_0x24e22c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x108f61(0xf2),_0x24e22c[_0x24e22c[_0x108f61(0x13e)]=0x232c]=_0x108f61(0x13e),_0x24e22c[_0x24e22c['LICENSE_DISTRO_REJECTED']=0x232d]=_0x108f61(0x1b5),_0x24e22c[_0x24e22c[_0x108f61(0x331)]=0x2711]=_0x108f61(0x331),_0x24e22c[_0x24e22c[_0x108f61(0x375)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x24e22c[_0x24e22c['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x24e22c[_0x24e22c[_0x108f61(0x376)]=0x2714]=_0x108f61(0x376),_0x24e22c[_0x24e22c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x108f61(0x20a),_0x24e22c[_0x24e22c[_0x108f61(0x13a)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x24e22c[_0x24e22c['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x24e22c[_0x24e22c[_0x108f61(0x15d)]=0x271d]=_0x108f61(0x15d),_0x24e22c[_0x24e22c[_0x108f61(0x2c0)]=0x271e]=_0x108f61(0x2c0),_0x24e22c[_0x24e22c[_0x108f61(0x175)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x24e22c[_0x24e22c[_0x108f61(0x333)]=0x2720]=_0x108f61(0x333),_0x24e22c[_0x24e22c[_0x108f61(0x1dc)]=0x2af9]=_0x108f61(0x1dc),_0x24e22c[_0x24e22c[_0x108f61(0x380)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x24e22c[_0x24e22c['INVALID_INVITE_CODE']=0x2ee2]=_0x108f61(0x324),_0x24e22c[_0x24e22c[_0x108f61(0x2d2)]=0x2ee3]=_0x108f61(0x2d2),_0x24e22c[_0x24e22c[_0x108f61(0x21d)]=0x2ee4]=_0x108f61(0x21d),_0x24e22c[_0x24e22c[_0x108f61(0x148)]=0x2ee5]=_0x108f61(0x148),_0x24e22c[_0x24e22c[_0x108f61(0x138)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x24e22c[_0x24e22c['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x108f61(0x25d),_0x24e22c[_0x24e22c[_0x108f61(0x2b8)]=0x32cb]=_0x108f61(0x2b8),_0x24e22c[_0x24e22c[_0x108f61(0x3ac)]=0x36b1]=_0x108f61(0x3ac),_0x24e22c[_0x24e22c[_0x108f61(0x3b4)]=0x36b2]=_0x108f61(0x3b4),_0x24e22c[_0x24e22c[_0x108f61(0x364)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x24e22c[_0x24e22c[_0x108f61(0x154)]=0x36b4]=_0x108f61(0x154),_0x24e22c[_0x24e22c[_0x108f61(0x152)]=0x36b5]=_0x108f61(0x152),_0x24e22c[_0x24e22c[_0x108f61(0x26e)]=0x36b6]=_0x108f61(0x26e),_0x24e22c[_0x24e22c['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x108f61(0x329),_0x24e22c[_0x24e22c[_0x108f61(0x1d3)]=0x36b8]=_0x108f61(0x1d3),_0x24e22c[_0x24e22c[_0x108f61(0x2a2)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x24e22c[_0x24e22c[_0x108f61(0x194)]=0x3716]=_0x108f61(0x194),_0x24e22c[_0x24e22c[_0x108f61(0x32c)]=0x3717]=_0x108f61(0x32c),_0x24e22c[_0x24e22c['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x108f61(0x252),_0x24e22c[_0x24e22c[_0x108f61(0x323)]=0x3a99]=_0x108f61(0x323),_0x24e22c[_0x24e22c[_0x108f61(0x2d6)]=0x3a9a]=_0x108f61(0x2d6),_0x24e22c[_0x24e22c['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x108f61(0x177),_0x24e22c[_0x24e22c['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x24e22c[_0x24e22c[_0x108f61(0x1f9)]=0x3a9d]=_0x108f61(0x1f9),_0x24e22c[_0x24e22c['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x24e22c[_0x24e22c[_0x108f61(0x127)]=0x3a9f]=_0x108f61(0x127),_0x24e22c[_0x24e22c[_0x108f61(0x372)]=0x3e81]=_0x108f61(0x372),_0x24e22c[_0x24e22c[_0x108f61(0x2bc)]=-0x1]=_0x108f61(0x2bc),_0x24e22c))(G||{});function Jt(_0x234e9f){const _0x1c2a4e=_0x108f61;var _0x11dab2,_0x19cd63;const _0x5f475c=(_0x11dab2=_0x234e9f[_0x1c2a4e(0x235)])==null?void 0x0:_0x11dab2[_0x1c2a4e(0x38a)],_0x23ab9f=((_0x19cd63=_0x234e9f[_0x1c2a4e(0x235)])==null?void 0x0:_0x19cd63['totalFormulasToCalculate'])||0x0;return _0x5f475c===B[_0x1c2a4e(0x157)][_0x1c2a4e(0x190)]&&_0x23ab9f>0x0;}function _0xe0ef(){const _0x1ab415=['CanceledError','drawWith','on-line-icon_clip0_910_349','INVITE_CODE_REQUIRED','sessionTicket','IConfigService','reconnect','REDEMPTION_CODE_INACTIVE','tag','_initStatusListener','_send','undoState','off-line-icon_clip0_910_343','getCollabEntity$','distinctUntilChanged','HTTPService','text','deepClone','addHandlerCallback','collab-client.tooltip.reconnect','measureText','jsxs','getActiveSheet','makeDirty','AWAITING_WITH_PENDING','_docStateChangeManagerService','onLocalMutation','_scheduleHeartbeat','_sheetSkeletonManagerService','startsWith','origin','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','roomMembers','_initCommandExecutedListener','_selfUnitIDs','send','_themeService','parseInt','_onCursorUpdate','setShapeProps','_colorIndex','_docTransformSelectionsService','fromEventSubject','AUTHORIZE_CODE_ILLEGAL','hovered','touchDependencies','?taskId=','subscribeEvent','search','_messageService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','LOCAL_CACHE_INTERVAL','fill','imageSourceType','top','isActive','SOCKET_FAILED_RETRY','_saveCache','removeEventListener','1577312OUreHy','_memberID','jiqing.500','SOCKET_FAILED','assign','_assignedColors','_cachedData','_univerInstanceService','forwardRef','path','CONNECTOR_DATA_TOO_LARGE','getUnitStatus$','SheetCollabCursorShape','toDisposable','debug','_lastResponseTimestamp','save','_initUserListener','trim','beforeCommandExecuted','_getScale','_drawAnchor','_docSyncEditingCollabCursorService','addEventListener','collabStatus.offline','REDEMPTION_INVALID_CODE','INVALID_INVITE_CODE','doc.mutation.rich-text-editing','_setupSubUnitSync','getCurrentRevOfUnit','CollaborationController','ENTITLE_COUPON_USED_UP','labelPosition','_startSheetCollabCursor','ENTITLE_INSUFFICIENT_QUOTA','CollaborationStatus','_applyCommand','1400466pdricv','getRenderById','YUUMI_UNABLE_LOAD_URL','height','YUUMI_CONNECTOR_URL_NOT_FOUND','APPLY_REVISION_CONFILICT','startFormulaLimitUrl','SetSelectionsOperation','_unitOnClients','PERMISSION_DENIED','clsx','_updateSubUnitFromURLParams','_scheduleClearOtherTimer','jsx','MUTATION','_updateURLWithCurrentState','findNodePositionByCharIndex','arc','getCoordByCell','SessionStatus','_cursor','getDocRanges','EMAIL_VERIFY_CODE_MISMATCH','subscribe','_config','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','collaboration.closeRoom','substring','Plugin','_getAnchorBounding','_commandService','clipPath','SetFormulaCalculationNotificationMutation','init','entries','NOT_FOUND','handleInsertRangeMoveRight','getCellPositionByOffset','FormulaExecutedStateType','IUIPartsService','BrowserCollaborationSocketService','_hasFormulaInDirtyRanges','red.300','CollaborationUIEventId','toRgbString','getSkeleton','ENSURE_SNAPSHOT_EXECUTION','_uiPartsService','isTransformMutationFailure','disableLocalCache','closePath','black','OnLineIcon','ENTITLE_DUP_SUBSCRIPTION','USERS_LEAVE','InsertColCommandId','setActiveRange','url(#$1','has','TEXT','DeleteRangeMoveUpCommandId','includes','SNAPSHOT_HAS_BEEN_REMOVED','url(#off-line-icon_clip0_910_343)','releaseFormulaLimitUrl','shareReplay','_removeClearOtherTimer','DATA_SOURCE_TOO_LARGE','_initResize','CollaborationDataLoaderController','YUUMI_URL_COL_OUT_OF_RANGE','YUUMI_SUBSCRIPTION_NOT_FOUND','formula.calculation.unable','_removeCollabCursors','transformRemoteChangeset','_transformHistoryAndStateStack','getOwnPropertyDescriptor','handleInsertCol','width','_startCalculationLimit','_beforeCloseService','INVITE_CODE_HAS_BEEN_UES','getAncestorScale','bottom','#FFF','m1Prime','color','fromEvent','font','_disabled','startColumn','stage','url(#on-line-icon_clip0_910_349)','_hover','18822xujula','_createSocketURL','_localStorageService','getCellMatrix','BehaviorSubject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_drawRectRange','_refreshCollabCursors','unhandledrejection','min','_collabCursorState$','Rect','Subject','FromArray','CLOSE_ROOM','_drawTextRange','MOBILE_VERIFY_CODE_MISMATCH','params','getRangePointData','DeleteRangeMoveLeftCommandId','_notificationService','setStateCache','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_maxFormulaLimit','ticket','collabStatus.notCollab','createIdentifier','/run/','Rectangle','2257675WhJPqv','executionId','ENTITLE_CAN_NOT_BUY_LOWER_OTP','exhaustSavingTask','_handleLeaveEvent','then','_document','registerRefRange','row','from','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','getUndoRedoMutationParamsCache','Disposable','_heartbeatTimer','TEXT_RANGE_LAYER_INDEX','idSuffix','restore','stringify','InsertRangeMoveRightCommandId','/universer-api/license/formula/limit/start','collab-text-range-','updateOfflineData','OFFLINE','getParam','_docSkeletonManagerService','WebBrowserSingleActiveUnitService','add','_online','LICENSE_IMPORT_SIZE_EXCEEDED','type','formula.calculation.started','CollaborationUIEventService','collab-text-anchor-','collabStatus.synced','forEach','getUnitId','event$','_anchorDot','result','_collabSessionService','DocCollaborationEntity','getSheetId','_draw','RemoveColCommandId','functionsExecutedState','getMergeData','_localCacheService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','IRemoteInstanceService','RECT','ThemeService','_getFormulaLimitStatus','[Window\x20Error]:\x20','_renderManagerService','transformMutation','isTransformMutationsWithChangesetSuccess','subUnitId','_cursors','COMPLETION_FINISHED','_transformService','_roomMembers$','getSheetObject','_initWindowErrorListener','setInterval','PENDING','ranges','_labelPosition','1178880kmjvDp','dirtyRanges','6tyTvIM','mask','split','catch','createInstance','next','SHEET_VIEWPORT_KEY','setParam','svg','_cursorInfo$','NodePositionConvertToCursor','throttleTime','REDEMPTION_CODE_HAS_BEEN_CREATED','_docTransformStateCacheService','1em','collaboration-client-ui.config','ITransformService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_collaborationUIEventService','UniverCollaborationClientUIPlugin','getTypeOfUnitDisposed$','DOC_RANGE_TYPE','DocSelectionManagerService','1222048eySyCp','complete','transformSelections','symbol','[CollaborationDataLoaderController]','location','WECHAT_HAS_BEEN_BOUND','Tools','YUUMI_ASYNCIO_CANCELLED','/universer-api/license/formula/limit/done','xlink:href','ILogService','LICENSE_EXPORT_SIZE_EXCEEDED','SetFormulaCalculationStartMutation','setUndoRedoMutationParamsCache','onRendered','getColorFromTheme','pipe','_toggleOnline','saveImage','show','unshift','INVITE_CODE_ALREADY_BOUND','string','onPointerLeave$','onMouseMove','InsertRangeMoveDownCommandId','length','setTimeout','_handleEvent','ALREADY_EXISTS','handleDeleteRangeMoveUp','ENTITLE_INVALID_COUPON_CODE','Workbook','PAYMENT_CHANNEL_NOT_SUPPORT','history','evenodd','FormulaExecuteStageType','INotificationService','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','_memberService','104874GuJBZM','now','YUUMI_ALL_TABLES_IS_INVALID','setConfig','stack','_collaborationSessionService','SetWorksheetActivateCommand','NOT_COLLAB','IUniverInstanceService','CommandType','href','Loading','onPointerMove$','_initUnhandledRejectionListener','asObservable','status$','UNIVER_DOC','lineno','MemberService','blue.400','clearTimeout','_instanceService','column','getMember','displayName','_doCreateSocket','YUUMI_AI_RUN_FAILED','univerjs-icon\x20univerjs-icon-','REDEMPTION_CODE_FULLY_REDEEMED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','LocaleService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','SheetsSelectionsService','div','LOGIN_FAILED','_context','map','session.collaboration-timeout','OTHER_CLIENT_EDITING','_httpService','rgba(255,\x20255,\x20255,\x200.01)','data','createSocket','Vector2','set','hide','limitInfo','getTypeOfUnitAdded$','debounce','USER_IS_ANONYMOUS','backgroundColor','_backgroundColor','_configService','START_CALCULATION','cursorInfo','reason','_collabCursorController','ENTITLE_REPORT_LIMIT_EXCEED','contains','_entityInit$','_refRangeService','IImageIoService','RegularPolygon','ERROR_AGAIN','green.600','collabStatus.conflict','syncEditingCollabCursor','_shapes','none','selection','_lastPointer','values','permission.title','colorChannel1','_hovered','dispose','INTERNAL_ERROR','collaboration.single-unit.warning','socket$','OffLineIcon','registerComponent','message','RefRangeService','_localeService','MessageType','_getSessionTicket','INVALID_ARGUMENT','_showGuardMessage','flatMap','Error','LICENSE_DISTRO_REJECTED','deserializeRangeWithSheet','startRow','getUnhiddenWorksheets','roomMembers$','_imageIoService','WebSocketService','FETCH_MISS','RemoteUniscriptService','transformMutationsWithChangeset','m2Prime','Warning','switchMap','storage','UnitStatus','removeParam','IMessageService','handleInsertRangeMoveDown','onCommandExecuted','replaceDocRanges','UNDEFINED','_initEntityListener','_initStatusComponent','_getSaveTimeout','push','_taskIds','IRenderManagerService','join','/universer-api/license/formula/limit/status','defineProperty','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_initCommandInterceptor','mutations','disposeWithMe','DocIMEInputManagerService','ILocalCacheService','getValue','APPLY_REJECT','_scheduleSaving','PY_RUNTIME_SCRIPT_ERROR','beginPath','DisposableCollection','combineLatest','_hideTimer','_monkeyPatchLogService','get','use','defs','moveTo','runRefRangeMutations','_unitStatus','Injector','http://www.w3.org/2000/svg','SheetSkeletonManagerService','addClipboardHook','newValue','_session','some','currentColor','LOCAL_CACHE_INTERVAL_KEY','_syncEditingCollabCursorService','_getSheetObject','override','selections','translate(.97)','handleDeleteRangeMoveLeft','SYNCED','_uploadLog','REDEMPTION_USER_NOT_ELIGIBLE','[Unhandled\x20Rejection]:\x20','range','merge','takeUntil','DocSkeletonManagerService','getViewport','setItem','memberID','resize','M0\x200H16V16H0z','getVpScrollXYInfoByPosToVp','createElement','_registerDependencies','transform','getOffsetConfig','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_NO_CUBOID_FOR_QUESTION','loadOfflineData','USER_NOT_FOUND','colno','onPointerEnter$','getActiveRange','[RemoteUniscriptService]:\x20no\x20focused\x20unit','transformIMECache','onStarting','_toggleOffline','_logService','docStateChange$','with','RxDisposable','SNAPSHOT_INVALID_SNAPSHOT','DEFAULT_WS_SESSION_TICKET_URL','Optional','_id','debounceTime','USER_NOT_INVITED_CODE','name','handleMoveRange','searchParams','cursorInfo$','univer-flex\x20univer-items-center','UniverIcon','isFormulaId','ICommandService','white','APPLY_PERMISSION_DENIED','currentSkeleton$','filter','children','enableFrontendLog','LICENSE_MAX_UNITS_EXCEEDED','IURLService','size','getConfig','Inject','_anchor','ColorKit','delete','UniverInstanceType','stageInfo','getSheetBySheetId','endRow','ILocalStorageService','_init','redoState','subunit','generateRandomId','textRanges','_scene','collab-rect-range-','AWAITING','EffectRefRangId','_handleJoinEvent','SetTextSelectionsOperation','_setFormulaLimitStatus','assignAColorForMemberID','_collaborationController','attrs','RevisionService','handleInsertRow','_onRefRangeChange','unitID','collabCursorState$','enableLocalCache','MoveRangeCommandId','getCurrentSelections','setAlpha','dispose$','ENTITLE_NEED_BILLING_ADDRESS','Unknown\x20user','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','TOO_MANY_REQUESTS','DesktopCollaborationStatusDisplayController','_docClipboardService','getLocalCacheKey','NodePositionConvertToRectRange','session.connection-failed','Success','_render','MOBILE_HAS_BEEN_BOUND','endColumn','_dataLoaderService','_urlService','_color','_name','Tooltip','permission.content','APPLY_DUPLICATED','_injector','getCurrentUnitForType','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','UNAUTHENTICATED','yellow.400','sessionStatus$','toString','COLORS','ENTITLE_COUPON_EXPIRED','_eventUnsubscribe','addObjects','getCollabCursors$','replace','lineTo','RemoveRowCommandId','fillRule','ONLINE','getFocusedUnit','clearInterval','CHANGESET_REVISION_CONFILICT','_clearOtherTimers','pluginName','_cursorShapes','getformulaLimitStatusUrl','_ensureSubject','CURRENT_STATUS_CANNOT_OPERATE','isArray','SetDocZoomRatioOperation','_entities','code','useCallback','pushState','_status$','all','_pollingInterval','round','fillStyle','_updateCollabCursors','Shape','executeCommand','_clearPolling','editingUnit','filename','unit','_registerRenderDependencies','wsSessionTicketUrl','purple.300','invokeId','_getMergeRange','getColor','_checkCalculationAvailable','VIEW_MAIN','urlChange$','error','requireSession','LOGIN_TOKEN_PROCESSING_FAILED','_handleHover','_textBubble','activeSheet$','getStateCache','ENTITLE_CHAT_LIMIT_EXCEED','UPDATE_CURSOR','0\x200\x2017\x2016','_onCursorDelete','OTHER_CLIENTS_EDITING','fillText','_releaseCalculationLimit','_docTransformIMECacheService','unitId','IDocClipboardService','saveOfflineData','18uNqnGO','CollaborationEvent','CollaborationSessionService','_colorAssignService','formula.calculation.waiting','addObject','_updateLocalCursor','0\x200\x2016\x2016','off-line-icon','handleIRemoveCol','maxFormulaLimit','EMAIL_HAS_BEEN_BOUND','isFormulaString','_currentUsage','_transformPreviousActiveRange','UNRECOGNIZED','_range','body','transformStateCache','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','skeleton','mergeOverrideWithDependencies','engine','ACTIVE_UNIT_EVENT_CHANNEL','registerBeforeClose','_saveTaskMap','UNIVER_SHEET','transformByState','ISocketService','_initDependencies','random','NO_OTHER_CLIENTS_EDITING','saveTaskMap','_revisionService'];_0xe0ef=function(){return _0x1ab415;};return _0xe0ef();}function Zt(_0x5e6ab0){const _0x4b405d=_0x108f61;return _0x5e6ab0[_0x4b405d(0x102)]===B[_0x4b405d(0x355)]['SUCCESS'];}var Qt=Object[_0x108f61(0x37b)],es=(_0x4f9ebb,_0x22a5de,_0x1d5c5b,_0xa6e66d)=>{for(var _0x2b74b0=_0xa6e66d>0x1?void 0x0:_0xa6e66d?Qt(_0x22a5de,_0x1d5c5b):_0x22a5de,_0x4d1623=_0x4f9ebb['length']-0x1,_0x46f4f9;_0x4d1623>=0x0;_0x4d1623--)(_0x46f4f9=_0x4f9ebb[_0x4d1623])&&(_0x2b74b0=_0x46f4f9(_0x2b74b0)||_0x2b74b0);return _0x2b74b0;},L=(_0x3610bc,_0x49948b)=>(_0x12c0ca,_0x55576c)=>_0x49948b(_0x12c0ca,_0x55576c,_0x3610bc);const ts=_0x108f61(0x1d1),ss=_0x108f61(0x3bd),is=_0x108f61(0x13b);let ne=class extends a[_0x108f61(0x3b6)]{constructor(_0xfbfea,_0x10fc2d,_0x3f6394,_0x17cf13,_0x2bdc56,_0x51d2cf,_0x1cf07a){const _0xa2892e=_0x108f61;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,_0xa2892e(0x2ba),0x0),_(this,_0xa2892e(0x1ce),[]),_(this,_0xa2892e(0x319),0x0),(this[_0xa2892e(0x300)]=_0xfbfea,this['_commandService']=_0x10fc2d,this[_0xa2892e(0x18f)]=_0x3f6394,this['_httpService']=_0x17cf13,this['_univerInstanceService']=_0x2bdc56,this[_0xa2892e(0x214)]=_0x51d2cf,this[_0xa2892e(0x1ae)]=_0x1cf07a,this['_initCommandInterceptor']());}[_0x108f61(0x1d4)](){const _0x20892e=_0x108f61;this[_0x20892e(0x1d6)](this[_0x20892e(0x34d)][_0x20892e(0x31d)]((_0x3ef0a2,_0x21fea5)=>{const _0x23b52c=_0x20892e;var _0x538915;if(_0x3ef0a2['id']!==B[_0x23b52c(0x13f)]['id'])return;const _0x1076b6=_0x3ef0a2[_0x23b52c(0x39e)];if(!this[_0x23b52c(0x358)]((_0x538915=_0x1076b6[_0x23b52c(0x11a)])!=null?_0x538915:[]))return;if(!this[_0x23b52c(0x298)]())throw this['_checkAndWaitForCalculationPermission'](_0x3ef0a2,_0x21fea5),this[_0x23b52c(0x1b2)](),new a[(_0x23b52c(0x2cf))]();})),this['disposeWithMe'](this[_0x20892e(0x34d)][_0x20892e(0x1c7)]((_0x30e7d0,_0xe081a1)=>{const _0x37f6e5=_0x20892e;if(_0x30e7d0['id']!==B[_0x37f6e5(0x34f)]['id'])return;const _0x32f7e1=_0x30e7d0[_0x37f6e5(0x39e)];if(Jt(_0x32f7e1)){const _0x5d0757=a['generateRandomId']();this[_0x37f6e5(0x1ce)][_0x37f6e5(0x1cd)](_0x5d0757),this[_0x37f6e5(0x37e)](_0x5d0757);}else{if(Zt(_0x32f7e1)&&this[_0x37f6e5(0x1ce)]['length']>0x0){const _0x3d0247=this[_0x37f6e5(0x1ce)]['shift']();this[_0x37f6e5(0x2a8)](_0x3d0247);}}}));}[_0x108f61(0x1a6)](){const _0x2a2913=_0x108f61;super[_0x2a2913(0x1a6)](),this[_0x2a2913(0x28e)](),this[_0x2a2913(0x1ce)]=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this[_0x2a2913(0x319)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x379cfb,_0x3d1bba){const _0x2b2731=_0x108f61;for(let _0x48df5a=0x0;_0x48df5a<0x1e;_0x48df5a++)try{if(await this[_0x2b2731(0x109)](),this[_0x2b2731(0x298)]()){this['_applyCommand'](_0x379cfb,_0x3d1bba),this[_0x2b2731(0x300)][_0x2b2731(0x146)]({'content':this[_0x2b2731(0x1ae)]['t'](_0x2b2731(0xf4)),'type':p[_0x2b2731(0x1af)][_0x2b2731(0x25b)]});return;}await new Promise(_0x3a6174=>{const _0x34fce9=_0x2b2731;this[_0x34fce9(0x288)]=window[_0x34fce9(0x14e)](_0x3a6174,0x3e8);});}catch(_0xd9b959){this['_logService'][_0x2b2731(0x29b)](_0xd9b959);}this['_messageService'][_0x2b2731(0x146)]({'content':this[_0x2b2731(0x1ae)]['t'](_0x2b2731(0x377)),'type':p[_0x2b2731(0x1af)][_0x2b2731(0x1b4)]});}[_0x108f61(0x32e)](_0x395d76,_0x267533){const _0x539fac=_0x108f61;try{this[_0x539fac(0x34d)][_0x539fac(0x28d)](_0x395d76['id'],_0x395d76[_0x539fac(0x39e)],_0x267533);}catch(_0x3be3d8){this[_0x539fac(0x214)][_0x539fac(0x29b)](_0x3be3d8);}}[_0x108f61(0x244)](_0x274a6d,_0x346f4b){const _0x30a3a6=_0x108f61;_0x346f4b<this[_0x30a3a6(0x319)]||(this[_0x30a3a6(0x319)]=_0x346f4b,this[_0x30a3a6(0x3a4)]=Number[_0x30a3a6(0x2f4)](_0x274a6d[_0x30a3a6(0x2b7)]),this[_0x30a3a6(0x2ba)]=Number['parseInt'](_0x274a6d['currentUsage']));}async[_0x108f61(0x37e)](_0x2b9af8){const _0xf42b82=_0x108f61;var _0x481959,_0x1f98d5;const _0x44aff6=Date['now']();try{const _0x42eef6=((_0x481959=this[_0xf42b82(0x18f)][_0xf42b82(0x22f)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x481959[_0xf42b82(0x335)])||ss,_0x2a1810=(await this['_httpService']['post'](_0x42eef6,{'body':JSON[_0xf42b82(0x3bb)]({'taskId':_0x2b9af8})}))[_0xf42b82(0x2be)];if(((_0x1f98d5=_0x2a1810['error'])==null?void 0x0:_0x1f98d5[_0xf42b82(0x283)])!==G['OK'])return;this[_0xf42b82(0x244)](_0x2a1810[_0xf42b82(0x189)],_0x44aff6);}catch(_0x1dd398){this[_0xf42b82(0x214)][_0xf42b82(0x29b)](_0x1dd398);}}async[_0x108f61(0x109)](_0x1bb12e){const _0x427e5a=_0x108f61;var _0x5012ac,_0x4f90c4;const _0x381264=Date['now']();try{const _0x42a666=((_0x5012ac=this['_configService'][_0x427e5a(0x22f)](u[_0x427e5a(0x348)]))==null?void 0x0:_0x5012ac[_0x427e5a(0x27d)])||ts,_0x1450eb=_0x1bb12e?_0x42a666+_0x427e5a(0x2fd)+encodeURIComponent(_0x1bb12e):_0x42a666,_0x1997f3=(await this[_0x427e5a(0x182)][_0x427e5a(0x1e2)](_0x1450eb))[_0x427e5a(0x2be)];if(((_0x4f90c4=_0x1997f3[_0x427e5a(0x29b)])==null?void 0x0:_0x4f90c4[_0x427e5a(0x283)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x1997f3['limitInfo'],_0x381264);}catch(_0x82aad8){this[_0x427e5a(0x214)][_0x427e5a(0x29b)](_0x82aad8);}}async[_0x108f61(0x2a8)](_0x50639d){const _0x55df40=_0x108f61;var _0xfb12a7,_0x4780cf;const _0x270a22=Date[_0x55df40(0x15c)]();try{const _0x9d169b=((_0xfb12a7=this[_0x55df40(0x18f)][_0x55df40(0x22f)](u[_0x55df40(0x348)]))==null?void 0x0:_0xfb12a7[_0x55df40(0x36f)])||is,_0x3e6f83=(await this['_httpService']['post'](_0x9d169b,{'body':JSON[_0x55df40(0x3bb)]({'taskId':_0x50639d})}))['body'];if(((_0x4780cf=_0x3e6f83[_0x55df40(0x29b)])==null?void 0x0:_0x4780cf[_0x55df40(0x283)])!==G['OK'])return;this[_0x55df40(0x244)](_0x3e6f83['limitInfo'],_0x270a22);}catch(_0x31aed3){this[_0x55df40(0x214)][_0x55df40(0x29b)](_0x31aed3);}}[_0x108f61(0x298)](){const _0x1776f6=_0x108f61;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x1776f6(0x3a4)]-this[_0x1776f6(0x2ba)]>0x0;}[_0x108f61(0x28e)](){const _0x4b6419=_0x108f61;this[_0x4b6419(0x288)]&&(clearTimeout(this[_0x4b6419(0x288)]),this['_pollingInterval']=null);}[_0x108f61(0x1b2)](){const _0x429f39=_0x108f61;this[_0x429f39(0x300)][_0x429f39(0x146)]({'content':this['_localeService']['t'](_0x429f39(0x2b1)),'type':p[_0x429f39(0x1af)][_0x429f39(0x166)]});}['_hasFormulaInDirtyRanges'](_0x581543){const _0x442489=_0x108f61;for(const _0x2ad060 of _0x581543){const {unitId:_0xf28786,sheetId:_0x475c43,range:_0x99c8a4}=_0x2ad060,_0x1273cf=this[_0x442489(0x311)]['getUnit'](_0xf28786);if(!_0x1273cf)continue;const _0x1b5f0e=_0x1273cf['getSheetBySheetId'](_0x475c43);if(!_0x1b5f0e)continue;const _0x189947=_0x1b5f0e[_0x442489(0x390)]();for(let _0x4e6df0=_0x99c8a4[_0x442489(0x1b7)];_0x4e6df0<=_0x99c8a4[_0x442489(0x237)];_0x4e6df0++)for(let _0x26a61a=_0x99c8a4[_0x442489(0x389)];_0x26a61a<=_0x99c8a4[_0x442489(0x25e)];_0x26a61a++){const _0x41b2b8=_0x189947[_0x442489(0x1d9)](_0x4e6df0,_0x26a61a);if(_0x41b2b8&&(a[_0x442489(0x2b9)](_0x41b2b8['f'])||a[_0x442489(0x224)](_0x41b2b8['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x108f61(0x230)](O['IMessageService'])),L(0x1,a[_0x108f61(0x225)]),L(0x2,a['IConfigService']),L(0x3,a[_0x108f61(0x230)](x[_0x108f61(0x2de)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x108f61(0x13d)]),L(0x6,a['Inject'](a[_0x108f61(0x179)]))],ne);var ns=Object[_0x108f61(0x37b)],rs=(_0x5a8d56,_0x233c03,_0xa685c4,_0x4693a5)=>{const _0x3cff3b=_0x108f61;for(var _0x14db6d=_0x4693a5>0x1?void 0x0:_0x4693a5?ns(_0x233c03,_0xa685c4):_0x233c03,_0x3741f1=_0x5a8d56[_0x3cff3b(0x14d)]-0x1,_0x7b3a49;_0x3741f1>=0x0;_0x3741f1--)(_0x7b3a49=_0x5a8d56[_0x3741f1])&&(_0x14db6d=_0x7b3a49(_0x14db6d)||_0x14db6d);return _0x14db6d;},Se=(_0x2eb90,_0x285184)=>(_0x405892,_0x1d101d)=>_0x285184(_0x405892,_0x1d101d,_0x2eb90);let Te=class extends a[_0x108f61(0x3b6)]{constructor(_0x41594f,_0x125592,_0x4d9950){const _0x11368f=_0x108f61;super(),_(this,_0x11368f(0x310),new Map()),_(this,_0x11368f(0x2c6),new Map()),_(this,_0x11368f(0x388),!0x1),(this['_configService']=_0x41594f,this[_0x11368f(0x38f)]=_0x125592,this['_revisionService']=_0x4d9950);}[_0x108f61(0x360)](){this['_disabled']=!0x0;}[_0x108f61(0x24d)](){const _0x2e5deb=_0x108f61;this[_0x2e5deb(0x388)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x108f61(0x1a6)](){const _0x5cc3d2=_0x108f61;this[_0x5cc3d2(0x3ad)]()['then'](()=>super['dispose']());}async[_0x108f61(0x20b)](_0x316882){const _0x5a0ece=_0x108f61;return this[_0x5a0ece(0x388)]?null:this[_0x5a0ece(0x38f)]['getItem'](u[_0x5a0ece(0x258)](_0x316882));}async[_0x108f61(0x2ac)](_0x314969,_0x5651dc){const _0x250190=_0x108f61;return!!this[_0x250190(0x38f)][_0x250190(0x200)](_0x314969,_0x5651dc);}[_0x108f61(0x3bf)](_0x37f08e,_0x541fe1,_0xfd4548,_0x57dc84){const _0x1df25f=_0x108f61,_0x1b5273=this[_0x1df25f(0x2ce)][_0x1df25f(0x327)](_0x37f08e);this['_cachedData'][_0x1df25f(0x187)](_0x37f08e,{'unitID':_0x37f08e,'type':_0x541fe1,'awaitingChangeset':_0xfd4548,'mutations':_0x57dc84,'rev':_0x1b5273}),this['_saveTaskMap'][_0x1df25f(0x369)](_0x37f08e)||this[_0x1df25f(0x1db)](_0x37f08e);}[_0x108f61(0x1db)](_0x28092f){const _0x19d5a6=_0x108f61,_0x4eefcd=this[_0x19d5a6(0x1cc)]();_0x4eefcd===0x0?this[_0x19d5a6(0x308)](_0x28092f):this[_0x19d5a6(0x2c6)][_0x19d5a6(0x187)](_0x28092f,setTimeout(()=>this[_0x19d5a6(0x308)](_0x28092f),_0x4eefcd));}[_0x108f61(0x1cc)](){const _0x2dc557=_0x108f61;var _0x5abb2d;return(_0x5abb2d=this[_0x2dc557(0x18f)]['getConfig'](u[_0x2dc557(0x1f0)]))!=null?_0x5abb2d:u[_0x2dc557(0x302)];}[_0x108f61(0x308)](_0x3d59a9){const _0x2e7d16=_0x108f61,_0xec034b=this[_0x2e7d16(0x2c6)][_0x2e7d16(0x1e2)](_0x3d59a9);return _0xec034b!==void 0x0&&window[_0x2e7d16(0x16f)](_0xec034b),this['_localStorageService'][_0x2e7d16(0x200)](u['getLocalCacheKey'](_0x3d59a9),this['_cachedData'][_0x2e7d16(0x1e2)](_0x3d59a9))[_0x2e7d16(0x3af)](()=>this[_0x2e7d16(0x2c6)][_0x2e7d16(0x233)](_0x3d59a9));}async[_0x108f61(0x3ad)](){const _0x27d0a3=_0x108f61,_0x245030=[];this[_0x27d0a3(0x2c6)][_0x27d0a3(0xf8)]((_0x489d0f,_0x24f519)=>{const _0x1504de=_0x27d0a3;window[_0x1504de(0x16f)](_0x489d0f),_0x245030[_0x1504de(0x1cd)](this[_0x1504de(0x308)](_0x24f519)[_0x1504de(0x3af)](()=>{const _0x364002=_0x1504de;this[_0x364002(0x2c6)][_0x364002(0x233)](_0x24f519);}));}),await Promise[_0x27d0a3(0x287)](_0x245030);}};Te=rs([Se(0x0,a[_0x108f61(0x2d4)]),Se(0x1,a[_0x108f61(0x238)]),Se(0x2,a[_0x108f61(0x230)](g[_0x108f61(0x248)]))],Te);class ke extends a[_0x108f61(0x217)]{constructor(){const _0x26fa9c=_0x108f61;super(),_(this,_0x26fa9c(0x29a)),this[_0x26fa9c(0x29a)]=I[_0x26fa9c(0x386)](window,'popstate')['pipe'](I['takeUntil'](this[_0x26fa9c(0x251)]),I[_0x26fa9c(0x370)](0x1),I['mapTo'](void 0x0));}[_0x108f61(0x122)](_0x467d5f,_0x469fb7,_0x23bd4d=!0x1){const _0x48f668=_0x108f61,_0x4b1255=new URL(window[_0x48f668(0x137)][_0x48f668(0x165)]);_0x4b1255[_0x48f668(0x220)][_0x48f668(0x187)](_0x467d5f,_0x469fb7),_0x23bd4d?window['history']['replaceState']('','',_0x4b1255[_0x48f668(0x26c)]()):window[_0x48f668(0x155)][_0x48f668(0x285)]('','',_0x4b1255[_0x48f668(0x26c)]());}[_0x108f61(0x1c4)](_0x33e303,_0x2ea3a4=!0x1){const _0x330e23=_0x108f61,_0x21b1f0=new URL(window[_0x330e23(0x137)][_0x330e23(0x165)]);_0x21b1f0[_0x330e23(0x220)][_0x330e23(0x233)](_0x33e303),_0x2ea3a4?window[_0x330e23(0x155)]['replaceState']('','',_0x21b1f0[_0x330e23(0x26c)]()):window[_0x330e23(0x155)][_0x330e23(0x285)]('','',_0x21b1f0[_0x330e23(0x26c)]());}['getParam'](_0x4b5dd6){const _0x1fbe08=_0x108f61;var _0x8d66a;return(_0x8d66a=new URL(window[_0x1fbe08(0x137)][_0x1fbe08(0x165)])[_0x1fbe08(0x220)][_0x1fbe08(0x1e2)](_0x4b5dd6))!=null?_0x8d66a:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x108f61(0x37b)],cs=(_0x3d01b8,_0x3a367c,_0x463c7b)=>_0x3a367c in _0x3d01b8?os(_0x3d01b8,_0x3a367c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x463c7b}):_0x3d01b8[_0x3a367c]=_0x463c7b,ls=(_0x4863eb,_0x291a75,_0x32022a,_0x192099)=>{const _0x30a6b7=_0x108f61;for(var _0x1a6920=_0x192099>0x1?void 0x0:_0x192099?as(_0x291a75,_0x32022a):_0x291a75,_0x1165b3=_0x4863eb[_0x30a6b7(0x14d)]-0x1,_0x20a14a;_0x1165b3>=0x0;_0x1165b3--)(_0x20a14a=_0x4863eb[_0x1165b3])&&(_0x1a6920=_0x20a14a(_0x1a6920)||_0x1a6920);return _0x1a6920;},de=(_0x345ac1,_0xb2ec2c)=>(_0x58cb4f,_0x538c83)=>_0xb2ec2c(_0x58cb4f,_0x538c83,_0x345ac1),_s=(_0x524da0,_0x1e9017,_0x3496f0)=>cs(_0x524da0,_0x1e9017+'',_0x3496f0);const hs=_0x108f61(0x3a3);exports[_0x108f61(0x12e)]=class extends a[_0x108f61(0x34b)]{constructor(_0x41df82=Me,_0x4b0091,_0x5337ac,_0x5241c8){const _0x2d1db1=_0x108f61;super(),this[_0x2d1db1(0x347)]=_0x41df82,this[_0x2d1db1(0x10b)]=_0x4b0091,this[_0x2d1db1(0x266)]=_0x5337ac,this[_0x2d1db1(0x18f)]=_0x5241c8;const {..._0x3eb701}=a[_0x2d1db1(0x1fc)]({},Me,this[_0x2d1db1(0x347)]);this['_configService'][_0x2d1db1(0x15e)](Yt,_0x3eb701);}[_0x108f61(0x212)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x108f61(0x141)](){const _0x1bcadc=_0x108f61;this[_0x1bcadc(0x292)]();}[_0x108f61(0x206)](){const _0x4b786d=_0x108f61;var _0x1596ab;const _0x15178e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x4b786d(0x2c9)],{'useClass':x[_0x4b786d(0x1bb)]}],[u[_0x4b786d(0x1d8)],{'useClass':Te}],[exports[_0x4b786d(0x256)]],[ie],[Z],[F],[me],[exports[_0x4b786d(0x374)]]];this['_config'][_0x4b786d(0x22b)]&&_0x15178e['push']([Q]),a['registerDependencies'](this[_0x4b786d(0x266)],a[_0x4b786d(0x2c2)](_0x15178e,(_0x1596ab=this[_0x4b786d(0x347)])==null?void 0x0:_0x1596ab[_0x4b786d(0x1f3)]));}[_0x108f61(0x292)](){const _0x1568d8=_0x108f61;this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a['UniverInstanceType'][_0x1568d8(0x16b)],[Ee])),this['disposeWithMe'](this[_0x1568d8(0x10b)]['registerRenderModule'](a[_0x1568d8(0x234)][_0x1568d8(0x2c7)],[Ce]));}[_0x108f61(0x2ca)](){const _0x25cefd=_0x108f61;a[_0x25cefd(0x2fc)](this[_0x25cefd(0x266)],[[F],[exports[_0x25cefd(0x256)]],[ie],[Z],[exports[_0x25cefd(0x374)]],[ne]]),this[_0x25cefd(0x347)][_0x25cefd(0x22b)]&&a['touchDependencies'](this['_injector'],[[Q]]);}},_s(exports[_0x108f61(0x12e)],_0x108f61(0x27b),hs),exports[_0x108f61(0x12e)]=ls([a['DependentOn'](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x108f61(0x1cf)]),de(0x2,a[_0x108f61(0x230)](a['Injector'])),de(0x3,a[_0x108f61(0x2d4)])],exports[_0x108f61(0x12e)]);var us=Object[_0x108f61(0x37b)],Is=(_0x490a3c,_0x5a1789,_0x3e578f,_0x244a36)=>{const _0x5425ea=_0x108f61;for(var _0x202e55=_0x244a36>0x1?void 0x0:_0x244a36?us(_0x5a1789,_0x3e578f):_0x5a1789,_0x1c5156=_0x490a3c[_0x5425ea(0x14d)]-0x1,_0x513fbc;_0x1c5156>=0x0;_0x1c5156--)(_0x513fbc=_0x490a3c[_0x1c5156])&&(_0x202e55=_0x513fbc(_0x202e55)||_0x202e55);return _0x202e55;},W=(_0x5d13cf,_0x4e51c)=>(_0x1b736c,_0x26fa0f)=>_0x4e51c(_0x1b736c,_0x26fa0f,_0x5d13cf);exports[_0x108f61(0x357)]=class extends u['CollaborationSocketService']{constructor(_0x1d3749,_0x1a5558,_0xfdfdbe,_0x4a3338,_0x11edc1){super(_0x1d3749,_0x1a5558,_0xfdfdbe,_0x4a3338,_0x11edc1);}async[_0x108f61(0x185)](_0x7f976b){const _0x56c0bb=_0x108f61,_0x6b0575=await this['_getSessionTicket'](),_0x3dd0d1=this['_createSocketURL'](_0x7f976b,_0x6b0575);return this[_0x56c0bb(0x174)](_0x3dd0d1);}[_0x108f61(0x38e)](_0x2228a7,_0x59e7ee){const _0x77bec4=_0x108f61,_0x589661=typeof window>'u'?new URL(_0x2228a7):new URL(_0x2228a7,window[_0x77bec4(0x137)][_0x77bec4(0x2ed)]);_0x589661[_0x77bec4(0x220)][_0x77bec4(0x187)](_0x77bec4(0x2d3),_0x59e7ee);const _0x2dcfe1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x77bec4(0x2ff)]);return _0x2dcfe1['get']('runId')&&_0x589661['searchParams'][_0x77bec4(0x187)]('runId',_0x2dcfe1[_0x77bec4(0x1e2)]('runId')),_0x589661[_0x77bec4(0x26c)]();}async[_0x108f61(0x1b0)](){const _0x596d99=_0x108f61;var _0x5904d2,_0x35e3fc,_0x3f09d5;const _0xcac446=this['_configService']['getConfig'](u[_0x596d99(0x348)]),_0x50e3a4=(_0x5904d2=_0xcac446==null?void 0x0:_0xcac446[_0x596d99(0x293)])!=null?_0x5904d2:u[_0x596d99(0x219)];return(_0x3f09d5=(_0x35e3fc=(await this[_0x596d99(0x182)][_0x596d99(0x1e2)](_0x50e3a4,{'headers':{'Content-Type':'application/json'}}))[_0x596d99(0x2be)])==null?void 0x0:_0x35e3fc[_0x596d99(0x3a5)])!=null?_0x3f09d5:'';}},exports[_0x108f61(0x357)]=Is([W(0x0,a[_0x108f61(0x230)](a[_0x108f61(0x1e8)])),W(0x1,a[_0x108f61(0x230)](x[_0x108f61(0x2de)])),W(0x2,a[_0x108f61(0x2d4)]),W(0x3,a[_0x108f61(0x13d)]),W(0x4,g['ISnapshotServerService'])],exports[_0x108f61(0x357)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x1e579b,_0x2267ba,_0x5838ed,_0x578286)=>{for(var _0x4478af=_0x578286>0x1?void 0x0:_0x578286?Ss(_0x2267ba,_0x5838ed):_0x2267ba,_0x1babc7=_0x1e579b['length']-0x1,_0xdc9b9a;_0x1babc7>=0x0;_0x1babc7--)(_0xdc9b9a=_0x1e579b[_0x1babc7])&&(_0x4478af=_0xdc9b9a(_0x4478af)||_0x4478af);return _0x4478af;},fe=(_0x3e183b,_0x223882)=>(_0x16ead5,_0x13ac85)=>_0x223882(_0x16ead5,_0x13ac85,_0x3e183b);exports[_0x108f61(0x1bd)]=class extends a['Disposable']{constructor(_0x22fd7d,_0x14a078,_0x20636b){const _0x20b470=_0x108f61;super(),this[_0x20b470(0x170)]=_0x22fd7d,this[_0x20b470(0x182)]=_0x14a078,this['_configService']=_0x20636b;}async['runOnServer'](_0x2470e6,_0x2133c4,_0xf7aa18,..._0xa3f90b){const _0x4a38e9=_0x108f61;var _0x3f10e7,_0x10192a,_0x3c6bed,_0x411f1e;const _0x337dc8=this[_0x4a38e9(0x170)][_0x4a38e9(0x277)]();if(!_0x337dc8)throw new Error(_0x4a38e9(0x210));const _0x5106b2=((_0x3f10e7=this[_0x4a38e9(0x18f)]['getConfig'](u[_0x4a38e9(0x268)]))!=null?_0x3f10e7:u[_0x4a38e9(0x254)])+'/'+_0x2470e6+_0x4a38e9(0x3a8)+_0x2133c4,_0x36ecb5=new URL(window[_0x4a38e9(0x137)][_0x4a38e9(0x165)]),_0x56bb1c={'scriptId':_0x2470e6,'runId':(_0x10192a=_0x36ecb5[_0x4a38e9(0x220)]['get']('runId'))!=null?_0x10192a:'','function':_0x2133c4,'unitId':_0x337dc8[_0x4a38e9(0xf9)](),'argsOfFunction':JSON[_0x4a38e9(0x3bb)](_0xa3f90b),'invokeId':(_0x3c6bed=_0xf7aa18[_0x4a38e9(0x295)])!=null?_0x3c6bed:'','executionId':(_0x411f1e=_0xf7aa18[_0x4a38e9(0x3ab)])!=null?_0x411f1e:''};try{const _0x253192=await this[_0x4a38e9(0x182)]['post'](_0x5106b2,{'body':_0x56bb1c});return _0x253192[_0x4a38e9(0x2be)]['error']&&_0x253192['body'][_0x4a38e9(0x29b)][_0x4a38e9(0x283)]!==G['OK']?'Failed':_0x253192[_0x4a38e9(0x2be)][_0x4a38e9(0xfc)];}catch{return'Failed';}}},exports[_0x108f61(0x1bd)]=ds([fe(0x0,a['IUniverInstanceService']),fe(0x1,a[_0x108f61(0x230)](x[_0x108f61(0x2de)])),fe(0x2,a[_0x108f61(0x2d4)])],exports[_0x108f61(0x1bd)]);const we=0x7530,ye=_0x108f61(0x2c4);class fs extends a[_0x108f61(0x3b6)]{constructor(){const _0x1a3016=_0x108f61;super(),_(this,_0x1a3016(0x21b),a['generateRandomId']()),_(this,_0x1a3016(0x2f1),new Set()),_(this,_0x1a3016(0x337),new Map()),_(this,_0x1a3016(0x3b7),null),_(this,_0x1a3016(0x27a),new Map()),_(this,'_unitStatus',new Map()),this[_0x1a3016(0x239)]();}[_0x108f61(0x1a6)](){const _0x5877ea=_0x108f61;super['dispose'](),this[_0x5877ea(0x27a)][_0x5877ea(0xf8)]((_0x233ba3,_0x21e24f)=>this['_removeClearOtherTimer'](_0x21e24f)),this[_0x5877ea(0x3b7)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x108f61(0x315)](_0x4015ea){const _0x17ad47=_0x108f61;return this[_0x17ad47(0x27e)](_0x4015ea)['pipe'](I[_0x17ad47(0x2dd)]());}[_0x108f61(0x28f)](_0x262b2a){const _0x22edef=_0x108f61;this[_0x22edef(0x2f1)][_0x22edef(0x22e)]===0x0&&this[_0x22edef(0x2ea)](),this[_0x22edef(0x2f1)][_0x22edef(0xf0)](_0x262b2a),this[_0x22edef(0x2d9)]({'type':0x0,'memberID':this[_0x22edef(0x21b)],'unitIDs':[_0x262b2a],'isForwarded':!0x1});}['disposeUnit'](_0x382677){const _0xfe2818=_0x108f61;this[_0xfe2818(0x2f1)][_0xfe2818(0x233)](_0x382677),this[_0xfe2818(0x2f1)][_0xfe2818(0x22e)]===0x0&&this[_0xfe2818(0x3b7)]&&window[_0xfe2818(0x278)](this[_0xfe2818(0x3b7)]);}[_0x108f61(0x239)](){const _0x44d7dd=_0x108f61;this['disposeWithMe'](a['toDisposable'](I[_0x44d7dd(0x386)](window,_0x44d7dd(0x1c2))[_0x44d7dd(0x346)](_0x101897=>{const _0x1a4a09=_0x44d7dd;if(_0x101897['key']!==ye||!_0x101897[_0x1a4a09(0x1ec)])return;const _0x429ffb=JSON['parse'](_0x101897[_0x1a4a09(0x1ec)]);this[_0x1a4a09(0x14f)](_0x429ffb);}))),window[_0x44d7dd(0x321)]('unload',()=>this[_0x44d7dd(0x2d9)]({'type':0x1,'memberID':this[_0x44d7dd(0x21b)],'unitIDs':Array[_0x44d7dd(0x3b3)](this[_0x44d7dd(0x2f1)])}));}[_0x108f61(0x14f)](_0x328df7){const _0x4df10e=_0x108f61;switch(_0x328df7[_0x4df10e(0xf3)]){case 0x0:this['_handleJoinEvent'](_0x328df7);break;case 0x1:this['_handleLeaveEvent'](_0x328df7);break;case 0x2:this['_handleHeartbeatEvent'](_0x328df7);break;}}[_0x108f61(0x242)](_0x230b04){const _0x253846=_0x108f61,{unitIDs:_0x82b0eb,memberID:_0x4a2b4f,isForwarded:_0x21e8b2}=_0x230b04;_0x82b0eb['forEach'](_0x4fbd36=>{const _0x38e8e2=_0x5f13;if(!_0x21e8b2&&this[_0x38e8e2(0x337)][_0x38e8e2(0x369)](_0x4fbd36)&&this[_0x38e8e2(0x27e)](_0x4fbd36)[_0x38e8e2(0x120)](u['UnitStatus'][_0x38e8e2(0x2a6)]),!this[_0x38e8e2(0x337)][_0x38e8e2(0x369)](_0x4fbd36)||!this[_0x38e8e2(0x337)][_0x38e8e2(0x1e2)](_0x4fbd36)[_0x38e8e2(0x369)](_0x4a2b4f)){const _0x4d43f1=this[_0x38e8e2(0x337)][_0x38e8e2(0x1e2)](_0x4fbd36)||new Set();_0x4d43f1[_0x38e8e2(0xf0)](_0x4a2b4f),this['_unitOnClients'][_0x38e8e2(0x187)](_0x4fbd36,_0x4d43f1),this[_0x38e8e2(0x33b)](_0x4a2b4f);}}),_0x21e8b2||this[_0x253846(0x2d9)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x253846(0x2f1)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x21a717){const _0x335388=_0x108f61;this[_0x335388(0x371)](_0x21a717);const _0x3a4c01=window[_0x335388(0x14e)](()=>{const _0x5a7606=_0x335388;this[_0x5a7606(0x337)][_0x5a7606(0xf8)](_0x33b608=>{_0x33b608['delete'](_0x21a717);});},we*0x2);this[_0x335388(0x27a)][_0x335388(0x187)](_0x21a717,_0x3a4c01);}[_0x108f61(0x371)](_0x4a826c){const _0x52334e=_0x108f61;if(this['_clearOtherTimers'][_0x52334e(0x369)](_0x4a826c)){const _0x1ecc7a=this['_clearOtherTimers'][_0x52334e(0x1e2)](_0x4a826c);_0x1ecc7a&&window['clearTimeout'](_0x1ecc7a),this[_0x52334e(0x27a)][_0x52334e(0x187)](_0x4a826c,null);}}[_0x108f61(0x3ae)](_0x2a2727){const _0x29e87e=_0x108f61,{memberID:_0x304d46,unitIDs:_0x32cf8b}=_0x2a2727;_0x32cf8b['forEach'](_0x4cb06f=>{const _0x5b814a=_0x5f13;var _0x2dc706;const _0x1b81ae=this['_unitOnClients'][_0x5b814a(0x1e2)](_0x4cb06f);_0x1b81ae&&(_0x1b81ae['delete'](_0x304d46),(_0x2dc706=this[_0x5b814a(0x27e)](_0x4cb06f))==null||_0x2dc706[_0x5b814a(0x120)](_0x1b81ae[_0x5b814a(0x22e)]===0x0?u[_0x5b814a(0x1c3)][_0x5b814a(0x2cc)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x29e87e(0x371)](_0x304d46);}['_handleHeartbeatEvent'](_0x42188d){const _0x5e506a=_0x108f61;this[_0x5e506a(0x33b)](_0x42188d[_0x5e506a(0x201)]);}[_0x108f61(0x2d9)](_0x15a5c8){const _0x2caa62=_0x108f61;localStorage['setItem'](ye,JSON[_0x2caa62(0x3bb)](_0x15a5c8));}[_0x108f61(0x2ea)](){const _0x542245=_0x108f61;this[_0x542245(0x3b7)]=window[_0x542245(0x115)](()=>{const _0x3dc3ea=_0x542245;this[_0x3dc3ea(0x2d9)]({'type':0x2,'memberID':this[_0x3dc3ea(0x21b)]});},we);}[_0x108f61(0x27e)](_0x269dc1){const _0x340cbc=_0x108f61;return this[_0x340cbc(0x1e7)][_0x340cbc(0x369)](_0x269dc1)||this['_unitStatus'][_0x340cbc(0x187)](_0x269dc1,new I[(_0x340cbc(0x391))](u[_0x340cbc(0x1c3)][_0x340cbc(0x2cc)])),this[_0x340cbc(0x1e7)]['get'](_0x269dc1);}}exports[_0x108f61(0x22d)]=Oe,exports[_0x108f61(0x316)]=je,exports[_0x108f61(0xef)]=fs,exports['WebURLService']=ke;
1
+ 'use strict';const _0x15b5c6=_0x31d6;(function(_0x1f7d07,_0x4c3001){const _0x248e9b=_0x31d6,_0x1eceea=_0x1f7d07();while(!![]){try{const _0x521017=parseInt(_0x248e9b(0x363))/0x1+-parseInt(_0x248e9b(0x233))/0x2+-parseInt(_0x248e9b(0x34b))/0x3+parseInt(_0x248e9b(0x2bf))/0x4+-parseInt(_0x248e9b(0x34c))/0x5*(parseInt(_0x248e9b(0x2c0))/0x6)+-parseInt(_0x248e9b(0x20e))/0x7*(parseInt(_0x248e9b(0x277))/0x8)+-parseInt(_0x248e9b(0x43e))/0x9*(-parseInt(_0x248e9b(0x218))/0xa);if(_0x521017===_0x4c3001)break;else _0x1eceea['push'](_0x1eceea['shift']());}catch(_0x134a74){_0x1eceea['push'](_0x1eceea['shift']());}}}(_0x2c56,0xac265));var Xe=Object[_0x15b5c6(0x443)],Ke=(_0x28f704,_0x488b08,_0x5dfca5)=>_0x488b08 in _0x28f704?Xe(_0x28f704,_0x488b08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dfca5}):_0x28f704[_0x488b08]=_0x5dfca5,_=(_0x58a3bb,_0x100e07,_0x3376ef)=>Ke(_0x58a3bb,typeof _0x100e07!=_0x15b5c6(0x2e2)?_0x100e07+'':_0x100e07,_0x3376ef);function _0x2c56(){const _0x26ae5b=['_context','onPointerEnter$','updateOfflineData','_initCommandExecutedListener','_startDocCollabCursor','_themeService','docStateChange$','sessionTicket','_onRefRangeChange','memberID','red.300','useCallback','_updateCollabCursors','CURRENT_STATUS_CANNOT_OPERATE','DeleteRangeMoveUpCommandId','error','triggerDblclick','restore','runId','transformStateCache','RevisionService','_updateURLWithCurrentState','getSheetBySheetId','session.connection-failed','subscribe','ENTITLE_COUPON_EXPIRED','defs','REDEMPTION_INVALID_CODE','name','ColorKit','all','HTTPService','findNodePositionByCharIndex','_handleHover','exhaustSavingTask','_showGuardMessage','_setupBeforeClosingHandler','ENTITLE_REPORT_LIMIT_EXCEED','popstate','addClipboardHook','getParam','pluginName','dirtyRanges','Workbook','AWAITING_WITH_PENDING','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[CollaborationDataLoaderController]','_onCursorDelete','getColor','mutations','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','APPLY_REJECT','init','IImageIoService','DocSkeletonManagerService','_backgroundColor','_docTransformStateCacheService','data','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_configService','registerBeforeClose','assign','...','_hasFormulaInDirtyRanges','save','disposeWithMe','UNAUTHENTICATED','hide','Vector2','currentColor','distinctUntilChanged','loadUnit','transformSelections','OTHER_CLIENTS_EDITING','MoveRangeCommandId','use','onLocalMutation','Failed','asObservable','BehaviorSubject','ILogService','_memberID','_initUserListener','NOT_COLLAB','_checkAndWaitForCalculationPermission','CanceledError','useDependency','AUTHORIZE_CODE_ILLEGAL','DeleteRangeMoveLeftCommandId','getOwnPropertyDescriptor','63JrXHbU','univer-flex\x20univer-items-center','_onCursorUpdate','getValue','attrs','defineProperty','NodePositionConvertToCursor','handleIRemoveCol','_maxFormulaLimit','beginPath','_collaborationSessionService','forEach','jsx','replaceDocRanges','TEXT_RANGE_LAYER_INDEX','handleInsertRow','Disposable','REDEMPTION_CODE_FULLY_REDEEMED','_memberService','NOT_FOUND','column','#FFF','debounceTime','handleInsertCol','pushState','CHANGESET_REVISION_CONFILICT','_refreshCollabCursors','LICENSE_EXPORT_SIZE_EXCEEDED','registerRenderModule','WebURLService','length','COLORS','_drawTextRange','imageSourceType','filename','isActive','_init','catch','set','subUnitId','DataLoaderService','/universer-api/license/formula/limit/status','path','_transformHistoryAndStateStack','SetSelectionsOperation','setTimeout','then','_getFormulaLimitStatus','engine','ACTIVE_UNIT_EVENT_CHANNEL','SHEET_VIEWPORT_KEY','_send','newValue','getColorFromTheme','JOIN_ROOM_FAILED','EffectRefRangId','START_CALCULATION','endColumn','SYNCED','_imageIoService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','values','_docSkeletonManagerService','getOffsetConfig','getUniverSheetInstance','_initResize','_taskIds','jsxs','syncEditingCollabCursor','roomMembers','onPointerMove$','Tooltip','1em','_anchorDot','getUnit','mask','bottom','permission.title','jiqing.500','onPointerLeave$','_sheetSkeletonManagerService','useObservable','_range','RemoveColCommandId','setShapeProps','complete','INVALID_INVITE_CODE','currentTheme$','Injector','?taskId=','getMemberID','rgba(255,\x20255,\x20255,\x200.01)','_disabled','fill','NodePositionConvertToRectRange','endRow','handleDeleteRangeMoveLeft','getViewport','includes','_checkCalculationAvailable','unitID','_logService','CONNECTOR_DATA_TOO_LARGE','0\x200\x2017\x2016','getCellPositionByOffset','createInstance','_getSheetObject','override','roomMembers$','generateRandomId','has','split','USER_NOT_INVITED_CODE','transformIMECache','round','getCollabCursors$','MOBILE_HAS_BEEN_BOUND','PENDING','disableLocalCache','IRenderManagerService','_cachedData','_scene','_transformService','getTypeOfUnitAdded$','_refRangeService','closePath','useRef','INVITE_CODE_HAS_BEEN_UES','getCellMatrix','_lastPointer','_id','executionId','entries','sheetID','white','clsx','TEXT','resize','_textBubble','Plugin','getSkeleton','_unitStatus','setItem','getUnitStatus$','MemberService','_injector','row','LOCAL_CACHE_INTERVAL','YUUMI_TABLE_NOT_FOUND_IN_UNIT','post','_monkeyPatchLogService','merge','IUIPartsService','_uiPartsService','RECT','makeDirty','DesktopCollaborationStatusDisplayController','MOBILE_VERIFY_CODE_MISMATCH','385DxYwmt','maxFormulaLimit','_eventUnsubscribe','addEventListener','CollaborationUIEventService','saveOfflineData','flatMap','unload','registerDependencies','uni.network.url-service','2662610wyttlp','blue.400','Shape','subunit','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','functionsExecutedState','_localeService','_messageService','PY_RUNTIME_SCRIPT_ERROR','LICENSE_IMPORT_SIZE_EXCEEDED','DocCollaborationEntity','_startSheetCollabCursor','ticket','sheetId','parseInt','/run/','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','FromArray','message','black','_ensureSubject','SetFormulaCalculationNotificationMutation','SetFormulaCalculationStartMutation','send','_initUnhandledRejectionListener','addObject','INVALID_ARGUMENT','2388962LpbDDS','_localStorageService','UniverIcon','SessionStatus','REDEMPTION_CODE_HAS_BEEN_CREATED','collabCursorState$','WECHAT_HAS_BEEN_BOUND','_hovered','div','onTransformChange$','enableLocalCache','ALREADY_EXISTS','_roomMembers$','doc.mutation.rich-text-editing','handleMoveRange','setConfig','current','BrowserCollaborationSocketService','transform','min','_color','evenodd','VIEW_MAIN','pipe','toRgbString','APPLY_PERMISSION_DENIED','RemoteUniscriptService','DocStateChangeManagerService','WebSocketService','collabStatus.notCollab','measureText','setStateCache','REDEMPTION_CODE_NOT_STARTED','_scheduleSaving','_toggleOffline','_registerRenderDependencies','Loading','FormulaExecutedStateType','ENSURE_SNAPSHOT_EXECUTION','search','ERROR_AGAIN','clearInterval','clipPath','RefRangeService','SetWorksheetActivateCommand','editingUnit','isEditing','InsertRowCommandId','transformByState','DependentOn','getMember','debug','IBeforeCloseService','unsubscribe','_removeClearOtherTimer','_saveCache','_cursorInfo$','eventID','TOO_MANY_REQUESTS','_cursors','_updateSubUnitFromURLParams','startRow','CONFLICT','ENTITLE_CAN_NOT_BUY_LOWER_OTP','stage','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','session.collaboration-timeout','_setFormulaLimitStatus','176216ycPngL','_entityInit$','disposeUnit','random','SUBMIT_CHANGESET_TIMEOUT','getStateCache','toString','handleDeleteRangeMoveUp','_beforeCloseService','_renderManagerService','source','requireSession','SetTextSelectionsOperation','getCurrentRevOfUnit','ICommandService','getUndoRedoMutationParamsCache','ONLINE','SUCCESS','deepClone','assignAColorForMemberID','_heartbeatTimer','executeCommand','subscribeEvent','UNIVER_DOC','_clearOtherTimers','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','children','MessageType','params','_config','UniverInstanceType','_initEntityListener','FormulaExecuteStageType','CollaborationDataLoaderController','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','_clearPolling','text','unitId','range','_initCommandInterceptor','unhandledrejection','_initStatusComponent','body','_collabCursorState$','throttleTime','translate(.97)','collabStatus.fetchMiss','m2Prime','_draw','onCommandExecuted','_getAnchorBounding','getTypeOfUnitDisposed$','getLocalCacheKey','ENTITLE_NEED_BILLING_ADDRESS','_collaborationController','UNIVER_SHEET','Success','idSuffix','addHandlerCallback','UniverCollaborationClientPlugin','_shapes','_initWindowErrorListener','_hover','font','collabStatus.conflict','_applyCommand','getVpScrollXYInfoByPosToVp','DATA_SOURCE_TOO_LARGE','_notificationService','collaboration-client-ui.config','startFormulaLimitUrl','FETCH_MISS','2920016UAWuBw','199236qMTgYf','ENTITLE_INSUFFICIENT_QUOTA','_handleLeaveEvent','_getSessionTicket','stageInfo','off-line-icon_clip0_910_343','Warning','INVITE_CODE_REQUIRED','UNRECOGNIZED','get','unit','_saveTaskMap','_lastResponseTimestamp','_transformPreviousActiveRange','application/json','url(#$1','event$','_docStateChangeManagerService','_hideTimer','getRangePointData','getCollabEntity$','currentUsage','REDEMPTION_USER_NOT_ELIGIBLE','switchMap','shareReplay','_selfUnitIDs','YUUMI_SUBSCRIPTION_NOT_FOUND','fillText','_dataLoaderService','isFormulaString','height','IConfigService','ILocalStorageService','APPLY_NON_SEQUENTIAL_REVISION','symbol','find','_docTransformSelectionsService','_cursorShapes','Optional','sessionStatus$','debounce','transformMutationsWithChangeset','_drawRectRange','YUUMI_UNABLE_LOAD_URL','collab-text-anchor-','permission.content','stringify','type','SheetsSelectionsService','_scheduleClearOtherTimer','toDisposable','OFFLINE','Error','M0\x200H16V16H0z','transformMutation','combineLatest','_pollingInterval','mergeOverrideWithDependencies','clearTimeout','ENTITLE_INVALID_COUPON_CODE','_univerInstanceService','_entities','width','loadOfflineData','socket$','cursorInfo$','limitInfo','SheetCollabCursorShape','purple.300','_handleEvent','_syncEditingCollabCursorService','YUUMI_ASYNCIO_CANCELLED','_online','PAYMENT_CHANNEL_NOT_SUPPORT','totalFormulasToCalculate','[Unhandled\x20Rejection]:\x20','UNDEFINED','RxDisposable','getSheetObject','textRanges','CollaborationSocketService','storage','ENTITLE_DUP_SUBSCRIPTION','drawWith','_createSocketURL','USER_IS_ANONYMOUS','colorChannel1','green.600','arc','key','lineno','replace','LICENSE_DISTRO_REJECTED','EMAIL_VERIFY_CODE_MISMATCH','_anchor','_name','push','_handleHeartbeatEvent','bind','trim','_getMergeRange','NO_OTHER_CLIENTS_EDITING','tag','dispose','releaseFormulaLimitUrl','delete','with','fromEvent','UnitStatus','YUUMI_AI_RUN_FAILED','unshift','redoState','fromEventSubject','OTHER_CLIENT_EDITING','size','IUniverInstanceService','collaboration.closeRoom','_updateLocalCursor','DocIMEInputManagerService','next','urlChange$','_currentUsage','now','setActiveRange','startColumn','CollaborationEvent','_instanceService','YUUMI_NO_CUBOID_FOR_QUESTION','_commandService','getConfig','code','map','takeUntil','getSheetId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','location','_transformUndoRedoStack','ThemeService','setAlpha','1301313ezTmsd','10jrSqOL','USERS_LEAVE','dispose$','getFocusedUnit','YUUMI_ALL_TABLES_IS_INVALID','/universer-api/license/formula/limit/start','svg','_session','SOCKET_FAILED_RETRY','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','some','fillStyle','collabStatus.synced','_docTransformIMECacheService','stack','fillRule','DOC_RANGE_TYPE','collabStatus.offline','_revisionService','collab-rect-range-','max','WebBrowserSingleActiveUnitService','isTransformMutationsWithChangesetSuccess','1017443qYLTFM','CollaborationStatus','getCurrentUnitForType','saveImage','getCoordByCell','_getSaveTimeout','_render','string','top','onMouseMove','collaboration.offline-data-not-saved','color','getUnitId','cursorInfo','_getScale','shift','displayName','PERMISSION_DENIED','REDEMPTION_CODE_INACTIVE','LocaleService','m1Prime','CommandType','LICENSE_MAX_UNITS_EXCEEDED','_setupSubUnitSync','show','_document','UniverCollaborationClientUIPlugin','onStarting','createElement','lineTo','xlink:href','focused$','enableFrontendLog','transformRemoteChangeset','_doCreateSocket','APPLY_DUPLICATED','startsWith','http://www.w3.org/2000/svg','_initStatusListener','getActiveSheet','getRenderById','CollaborationSessionService','from','_handleJoinEvent','_scheduleHeartbeat','collaboration.single-unit.warning','filter','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_collabSessionService','serializeRangeWithSheet','ENTITLE_USE_COUPON_NOT_1ST_TRADE','Tools','selection','_urlService','touchDependencies','IRemoteInstanceService','_colorAssignService','LOGIN_FAILED','[LogService\x20Error]:\x20','EMAIL_HAS_BEEN_BOUND','/universer-api/frontend/logs','Unknown\x20user','getMergeData','_unitOnClients','on-line-icon_clip0_910_349','isTransformMutationFailure','_registerDependencies','SOCKET_FAILED','ENTITLE_CHAT_LIMIT_EXCEED','Subject','isArray','none','_collabCursorController','ranges','selections','getRelativeToViewportCoord','CollaborationController','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','Rect','DocSelectionManagerService','IURLService','_httpService','\x20at\x20','beforeCommandExecuted','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_status$','removeEventListener','ILocalCacheService','Inject','getAncestorScale','_toggleOnline','YUUMI_CONNECTOR_URL_NOT_FOUND','add','getDocRanges','getUnhiddenWorksheets','LOGIN_TOKEN_PROCESSING_FAILED','history','USER_NOT_FOUND','INVITE_CODE_ALREADY_BOUND','registerRefRange','status$','off-line-icon','IDocClipboardService','_uploadLog','_startCalculationLimit','collab-text-range-','APPLY_REVISION_CONFILICT','UPDATE_CURSOR','_assignedColors','SNAPSHOT_INVALID_SNAPSHOT','CLOSE_ROOM','_docClipboardService','_cursor','saveTaskMap','_collaborationUIEventService','_colorIndex','activeSheet$','searchParams','forwardRef','handleInsertRangeMoveDown','href','handleInsertRangeMoveRight','join','formula.calculation.unable','labelPosition','_removeCollabCursors','getItem','ITransformService','CollaborationUIEventId'];_0x2c56=function(){return _0x26ae5b;};return _0x2c56();}Object[_0x15b5c6(0x443)](exports,Symbol['toStringTag'],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),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:_0x29a45c,..._0x413b1b}){const _0x1483d2=_0x15b5c6,{icon:_0x39b288,id:_0xe703b0,className:_0x371fa2,extend:_0x109b4e,..._0x42c9f7}=_0x413b1b,_0x903ccc=('univerjs-icon\x20univerjs-icon-'+_0xe703b0+'\x20'+(_0x371fa2||''))[_0x1483d2(0x323)](),_0x1e6246=A[_0x1483d2(0x1ee)]('_'+Qe());return $e(_0x39b288,''+_0xe703b0,{'defIds':_0x39b288['defIds'],'idSuffix':_0x1e6246[_0x1483d2(0x243)]},{'ref':_0x29a45c,'className':_0x903ccc,..._0x42c9f7},_0x109b4e);}function $e(_0x31ae1d,_0x5631d1,_0x1f68ce,_0x4b0dd6,_0x4af934){const _0xbbd233=_0x15b5c6;return A[_0xbbd233(0x37f)](_0x31ae1d['tag'],{'key':_0x5631d1,...Je(_0x31ae1d,_0x1f68ce,_0x4af934),..._0x4b0dd6},(Ze(_0x31ae1d,_0x1f68ce)[_0xbbd233(0x291)]||[])[_0xbbd233(0x343)]((_0x3683ec,_0x246347)=>$e(_0x3683ec,_0x5631d1+'-'+_0x31ae1d[_0xbbd233(0x326)]+'-'+_0x246347,_0x1f68ce,void 0x0,_0x4af934)));}function Je(_0x1d7e87,_0x123b08,_0x3f12c3){const _0x512af1=_0x15b5c6,_0x1a6a15={..._0x1d7e87['attrs']};_0x3f12c3!=null&&_0x3f12c3[_0x512af1(0x316)]&&_0x1a6a15['fill']==='colorChannel1'&&(_0x1a6a15[_0x512af1(0x1cd)]=_0x3f12c3['colorChannel1']),_0x1d7e87[_0x512af1(0x326)]===_0x512af1(0x1bb)&&_0x1a6a15['id']&&(_0x1a6a15['id']=_0x1a6a15['id']+_0x123b08['idSuffix']),Object[_0x512af1(0x1f4)](_0x1a6a15)[_0x512af1(0x449)](([_0x1ec492,_0x1ff426])=>{const _0x445416=_0x512af1;_0x1ec492===_0x445416(0x1bb)&&typeof _0x1ff426==_0x445416(0x36a)&&(_0x1a6a15[_0x1ec492]=_0x1ff426[_0x445416(0x31b)](/url\(#(.*)\)/,_0x445416(0x2cf)+_0x123b08['idSuffix']+')'));});const {defIds:_0x4e5b5b}=_0x123b08;return!_0x4e5b5b||_0x4e5b5b[_0x512af1(0x45c)]===0x0||(_0x1d7e87[_0x512af1(0x326)]===_0x512af1(0x42f)&&_0x1a6a15[_0x512af1(0x381)]&&(_0x1a6a15['xlink:href']=_0x1a6a15[_0x512af1(0x381)]+_0x123b08['idSuffix']),Object[_0x512af1(0x1f4)](_0x1a6a15)['forEach'](([_0x290815,_0x3e4e43])=>{typeof _0x3e4e43=='string'&&(_0x1a6a15[_0x290815]=_0x3e4e43['replace'](/url\(#(.*)\)/,'url(#$1'+_0x123b08['idSuffix']+')'));})),_0x1a6a15;}function Ze(_0x242c7c,_0x4fc55a){const _0x3cac89=_0x15b5c6;var _0x530b75;const {defIds:_0x10a597}=_0x4fc55a;return!_0x10a597||_0x10a597[_0x3cac89(0x45c)]===0x0?_0x242c7c:_0x242c7c[_0x3cac89(0x326)]===_0x3cac89(0x3fe)&&((_0x530b75=_0x242c7c[_0x3cac89(0x291)])!=null&&_0x530b75[_0x3cac89(0x45c)])?{..._0x242c7c,'children':_0x242c7c[_0x3cac89(0x291)][_0x3cac89(0x343)](_0x2af1fc=>typeof _0x2af1fc[_0x3cac89(0x442)]['id']==_0x3cac89(0x36a)&&_0x10a597&&_0x10a597[_0x3cac89(0x1d2)](_0x2af1fc[_0x3cac89(0x442)]['id'])?{..._0x2af1fc,'attrs':{..._0x2af1fc[_0x3cac89(0x442)],'id':_0x2af1fc['attrs']['id']+_0x4fc55a[_0x3cac89(0x2b0)]}}:_0x2af1fc)}:_0x242c7c;}function Qe(){const _0x43d053=_0x15b5c6;return Math[_0x43d053(0x27a)]()[_0x43d053(0x27d)](0x24)['substring'](0x2,0x8);}pe['displayName']=_0x15b5c6(0x235);const et={'tag':_0x15b5c6(0x352),'attrs':{'xmlns':_0x15b5c6(0x388),'fill':_0x15b5c6(0x3aa),'viewBox':'0\x200\x2016\x2016','width':_0x15b5c6(0x1b8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x15b5c6(0x19a),'attrs':{'stroke':'currentColor','d':_0x15b5c6(0x299),'strokeLinecap':_0x15b5c6(0x1e2),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x15b5c6(0x3fe),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x15b5c6(0x2c5)},'children':[{'tag':_0x15b5c6(0x19a),'attrs':{'fill':_0x15b5c6(0x1f6),'d':_0x15b5c6(0x2f5)}}]}]}],'defIds':[_0x15b5c6(0x2c5)]},xe=A[_0x15b5c6(0x3d9)](function(_0x4b5a14,_0x5a8b63){const _0x1d733e=_0x15b5c6;return A['createElement'](pe,Object[_0x1d733e(0x421)]({},_0x4b5a14,{'id':_0x1d733e(0x3c8),'ref':_0x5a8b63,'icon':et}));});xe[_0x15b5c6(0x373)]='OffLineIcon';const tt={'tag':'svg','attrs':{'xmlns':_0x15b5c6(0x388),'fill':_0x15b5c6(0x3aa),'viewBox':_0x15b5c6(0x1d7),'width':_0x15b5c6(0x1b8),'height':_0x15b5c6(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x15b5c6(0x429),'d':_0x15b5c6(0x274),'strokeLinecap':_0x15b5c6(0x1e2),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x15b5c6(0x3fe),'attrs':{},'children':[{'tag':_0x15b5c6(0x25d),'attrs':{'id':_0x15b5c6(0x3a3)},'children':[{'tag':'path','attrs':{'fill':_0x15b5c6(0x1f6),'d':_0x15b5c6(0x2f5),'transform':_0x15b5c6(0x2a4)}}]}]}],'defIds':[_0x15b5c6(0x3a3)]},Be=A[_0x15b5c6(0x3d9)](function(_0x499a61,_0x248937){const _0xea2fb3=_0x15b5c6;return A[_0xea2fb3(0x37f)](pe,Object[_0xea2fb3(0x421)]({},_0x499a61,{'id':'on-line-icon','ref':_0x248937,'icon':tt}));});Be[_0x15b5c6(0x373)]='OnLineIcon';function st(_0x153167){const _0x3862d7=_0x15b5c6;switch(_0x153167){case u[_0x3862d7(0x364)][_0x3862d7(0x2f3)]:return _0x3862d7(0x35d);case u[_0x3862d7(0x364)][_0x3862d7(0x271)]:return _0x3862d7(0x2b7);case u['CollaborationStatus'][_0x3862d7(0x2be)]:return _0x3862d7(0x2a5);case u['CollaborationStatus']['NOT_COLLAB']:return _0x3862d7(0x250);case u[_0x3862d7(0x364)]['AWAITING']:case u['CollaborationStatus'][_0x3862d7(0x410)]:return'collabStatus.syncing';case u[_0x3862d7(0x364)][_0x3862d7(0x1aa)]:case u[_0x3862d7(0x364)][_0x3862d7(0x1e5)]:return _0x3862d7(0x358);}}function it(_0x39cfca){const _0x58d760=_0x15b5c6,{status$:_0x3ae539}=_0x39cfca,_0x27e36f=O[_0x58d760(0x1c1)](_0x3ae539,u[_0x58d760(0x364)][_0x58d760(0x437)]),_0x262cb6=O[_0x58d760(0x43a)](a[_0x58d760(0x376)]),_0x2f9efe=O['useDependency'](u[_0x58d760(0x38c)]),_0x540ee0=_0x27e36f!==u[_0x58d760(0x364)]['OFFLINE'],_0x1570ba=_0x262cb6['t'](st(_0x27e36f)),_0x146f0f=_0x540ee0?M[_0x58d760(0x44a)](Be,{}):M[_0x58d760(0x44a)](xe,{}),_0x888d48=A[_0x58d760(0x3ef)](()=>{_0x540ee0||_0x2f9efe['reconnect']();},[_0x540ee0,_0x2f9efe]);function _0x414690(){const _0x4d059d=_0x58d760;return M[_0x4d059d(0x1b3)](_0x4d059d(0x23b),{'className':_0x4d059d(0x43f),'onClick':_0x888d48,'children':[M['jsx'](_0x4d059d(0x23b),{'className':p[_0x4d059d(0x1f7)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x540ee0,'univer-text-red-500':!_0x540ee0}),'children':_0x146f0f}),M[_0x4d059d(0x44a)](_0x4d059d(0x23b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1570ba})]});}return _0x540ee0?_0x414690():M[_0x58d760(0x44a)](p[_0x58d760(0x1b7)],{'title':_0x262cb6['t']('collab-client.tooltip.reconnect'),'children':_0x414690()});}var nt=Object[_0x15b5c6(0x43d)],rt=(_0x4e86e6,_0x371205,_0x2fcbd6,_0x32daad)=>{const _0x2ad883=_0x15b5c6;for(var _0x3371dd=_0x32daad>0x1?void 0x0:_0x32daad?nt(_0x371205,_0x2fcbd6):_0x371205,_0x58969d=_0x4e86e6[_0x2ad883(0x45c)]-0x1,_0x39659a;_0x58969d>=0x0;_0x58969d--)(_0x39659a=_0x4e86e6[_0x58969d])&&(_0x3371dd=_0x39659a(_0x3371dd)||_0x3371dd);return _0x3371dd;},K=(_0x3fac2e,_0x1d4f24)=>(_0x634f23,_0x3d286d)=>_0x1d4f24(_0x634f23,_0x3d286d,_0x3fac2e);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x15b5c6(0x44e)]{constructor(_0x4badaa,_0x456e24,_0x4a5e5f,_0x17648c){const _0x7de1f8=_0x15b5c6;super(),_(this,_0x7de1f8(0x3b8),new I[(_0x7de1f8(0x433))](u[_0x7de1f8(0x364)][_0x7de1f8(0x437)])),(this[_0x7de1f8(0x2fc)]=_0x4badaa,this[_0x7de1f8(0x201)]=_0x456e24,this[_0x7de1f8(0x2ad)]=_0x4a5e5f,this[_0x7de1f8(0x209)]=_0x17648c,this['_initStatusComponent'](),this[_0x7de1f8(0x389)]());}[_0x15b5c6(0x389)](){const _0x4bbf05=_0x15b5c6;this['disposeWithMe'](this['_univerInstanceService'][_0x4bbf05(0x382)][_0x4bbf05(0x24a)](I[_0x4bbf05(0x2d7)](()=>{const _0x144f5b=_0x4bbf05,_0x53c13e=this[_0x144f5b(0x2fc)][_0x144f5b(0x34f)]();return _0x53c13e?this[_0x144f5b(0x2ad)][_0x144f5b(0x2d4)](_0x53c13e[_0x144f5b(0x36f)]()):I['of'](null);}),I['switchMap'](_0x53492a=>_0x53492a?_0x53492a[_0x4bbf05(0x3c7)]:I['of'](u[_0x4bbf05(0x364)][_0x4bbf05(0x437)])))[_0x4bbf05(0x3fc)](_0x5ee996=>{const _0x26586e=_0x4bbf05;this[_0x26586e(0x3b8)]['next'](_0x5ee996);}));}[_0x15b5c6(0x2a0)](){const _0x25db2f=_0x15b5c6;this[_0x25db2f(0x425)](this[_0x25db2f(0x209)]['registerComponent'](O['BuiltInUIPart']['HEADER_MENU'],()=>O['connectInjector'](ot({'status$':this['_status$'][_0x25db2f(0x432)]()}),this['_injector'])));}},exports[_0x15b5c6(0x20c)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a['Inject'](a[_0x15b5c6(0x1c8)])),K(0x2,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x3af)])),K(0x3,O[_0x15b5c6(0x208)])],exports[_0x15b5c6(0x20c)]);function ot(_0x18927d){const {status$:_0x3eb1cc}=_0x18927d;return function(){const _0x2dff4f=_0x31d6;return M[_0x2dff4f(0x44a)](it,{'status$':_0x3eb1cc});};}const Oe=a['createIdentifier'](_0x15b5c6(0x217));var at=Object[_0x15b5c6(0x43d)],ct=(_0x220b8b,_0x3b3fc6,_0x38b0ce,_0x57c6f3)=>{const _0x1ea34e=_0x15b5c6;for(var _0x3b43cf=_0x57c6f3>0x1?void 0x0:_0x57c6f3?at(_0x3b3fc6,_0x38b0ce):_0x3b3fc6,_0x416fa5=_0x220b8b[_0x1ea34e(0x45c)]-0x1,_0x12d188;_0x416fa5>=0x0;_0x416fa5--)(_0x12d188=_0x220b8b[_0x416fa5])&&(_0x3b43cf=_0x12d188(_0x3b43cf)||_0x3b43cf);return _0x3b43cf;},Y=(_0x4cbbcc,_0x16ae75)=>(_0x196bf8,_0x2920bb)=>_0x16ae75(_0x196bf8,_0x2920bb,_0x4cbbcc);exports['CollaborationDataLoaderController']=class extends a[_0x15b5c6(0x30d)]{constructor(_0x17d532,_0x321697,_0x4409fd,_0x1d58b2,_0x4e6d4c){const _0x496d78=_0x15b5c6;super(),this['_urlService']=_0x17d532,this['_logService']=_0x321697,this[_0x496d78(0x340)]=_0x4409fd,this[_0x496d78(0x2dc)]=_0x1d58b2,_0x4e6d4c?_0x4e6d4c==null||_0x4e6d4c['whenReady']()[_0x496d78(0x19e)](()=>this[_0x496d78(0x462)]()):(this[_0x496d78(0x1d5)][_0x496d78(0x266)](_0x496d78(0x412),_0x496d78(0x21c)),this[_0x496d78(0x462)]());}async[_0x15b5c6(0x462)](){const _0x2d4ec9=_0x15b5c6,_0x1ed6ed=this['_urlService'][_0x2d4ec9(0x40c)](_0x2d4ec9(0x2ca)),_0x44f7f5=this[_0x2d4ec9(0x398)][_0x2d4ec9(0x40c)](_0x2d4ec9(0x2ef)),_0x293ef4=this[_0x2d4ec9(0x398)]['getParam'](_0x2d4ec9(0x21b));if(!_0x1ed6ed||!_0x44f7f5){this[_0x2d4ec9(0x1d5)][_0x2d4ec9(0x266)]('[CollaborationDataLoaderController]',_0x2d4ec9(0x41e));return;}const _0x537c46=await this[_0x2d4ec9(0x2dc)][_0x2d4ec9(0x42b)](_0x1ed6ed,Number(_0x44f7f5),_0x293ef4);_0x537c46&&_0x537c46 instanceof a[_0x2d4ec9(0x40f)]&&this['_setupSubUnitSync'](_0x537c46);}async[_0x15b5c6(0x37a)](_0x2a71c2){const _0x14fa6e=_0x15b5c6;await this[_0x14fa6e(0x26f)](_0x2a71c2),_0x2a71c2[_0x14fa6e(0x3d7)][_0x14fa6e(0x24a)](I['takeUntil'](this[_0x14fa6e(0x34e)]))[_0x14fa6e(0x3fc)](_0x113eaa=>{const _0x983af8=_0x14fa6e;_0x113eaa&&this[_0x983af8(0x3f9)](_0x113eaa);}),this[_0x14fa6e(0x398)]['urlChange$']['pipe'](I['takeUntil'](this[_0x14fa6e(0x34e)]))[_0x14fa6e(0x3fc)](()=>this[_0x14fa6e(0x26f)](_0x2a71c2));}[_0x15b5c6(0x3f9)](_0x3a95ae,_0x258f50=!0x1){const _0x589f69=_0x15b5c6,_0x21e38c=this['_urlService'][_0x589f69(0x40c)](_0x589f69(0x21b));_0x3a95ae[_0x589f69(0x345)]()!==_0x21e38c&&this['_urlService']['setParam'](_0x589f69(0x21b),_0x3a95ae[_0x589f69(0x345)](),_0x258f50);}async['_updateSubUnitFromURLParams'](_0x41ec4b){const _0x2b7670=_0x15b5c6;var _0x57f93f;const _0x9b485c=this['_urlService'][_0x2b7670(0x40c)](_0x2b7670(0x21b));if(!_0x9b485c||!_0x41ec4b['getSheetBySheetId'](_0x9b485c)){const _0x2c4cfd=_0x41ec4b[_0x2b7670(0x3c1)]()[0x0],_0x18765b=_0x41ec4b[_0x2b7670(0x3fa)](_0x2c4cfd);if(!_0x18765b)return;this[_0x2b7670(0x3f9)](_0x18765b,!0x0),await this[_0x2b7670(0x340)][_0x2b7670(0x28c)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x41ec4b[_0x2b7670(0x36f)](),'subUnitId':_0x2c4cfd});return;}((_0x57f93f=_0x41ec4b[_0x2b7670(0x38a)]())==null?void 0x0:_0x57f93f[_0x2b7670(0x345)]())!==_0x9b485c&&await this[_0x2b7670(0x340)][_0x2b7670(0x28c)](v[_0x2b7670(0x25f)]['id'],{'unitId':_0x41ec4b[_0x2b7670(0x36f)](),'subUnitId':_0x9b485c});}},exports[_0x15b5c6(0x298)]=ct([Y(0x0,Oe),Y(0x1,a[_0x15b5c6(0x434)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x198)])),Y(0x4,a[_0x15b5c6(0x2e6)](qe[_0x15b5c6(0x39a)]))],exports[_0x15b5c6(0x298)]);var lt=Object[_0x15b5c6(0x43d)],_t=(_0x1d3a6d,_0x12592e,_0x426c50,_0x56f606)=>{const _0x5dd811=_0x15b5c6;for(var _0x5aec8b=_0x56f606>0x1?void 0x0:_0x56f606?lt(_0x12592e,_0x426c50):_0x12592e,_0x111f83=_0x1d3a6d[_0x5dd811(0x45c)]-0x1,_0x406509;_0x111f83>=0x0;_0x111f83--)(_0x406509=_0x1d3a6d[_0x111f83])&&(_0x5aec8b=_0x406509(_0x5aec8b)||_0x5aec8b);return _0x5aec8b;},De=(_0x49fb38,_0x2bd745)=>(_0x141bd7,_0x480d9a)=>_0x2bd745(_0x141bd7,_0x480d9a,_0x49fb38);let me=class extends a['RxDisposable']{constructor(_0xf6a411,_0x362c7c){const _0x12df5c=_0x15b5c6;super(),this[_0x12df5c(0x3d2)]=_0xf6a411,this['_imageIoService']=_0x362c7c,this[_0x12df5c(0x462)]();}['_init'](){const _0x172b19=_0x15b5c6,_0x3cf2e4=this;this['disposeWithMe'](this[_0x172b19(0x3d2)][_0x172b19(0x40b)]({'onBeforePasteImage':async _0x505bd4=>{const _0x751a17=_0x172b19,_0x5f0277=await _0x3cf2e4[_0x751a17(0x1ab)][_0x751a17(0x366)](_0x505bd4);return _0x5f0277?{'source':_0x5f0277[_0x751a17(0x281)],'imageSourceType':_0x5f0277[_0x751a17(0x45f)]}:null;}}));}};me=_t([De(0x0,T[_0x15b5c6(0x3c9)]),De(0x1,ze[_0x15b5c6(0x419)])],me);const Ne=[_0x15b5c6(0x304),_0x15b5c6(0x1be),_0x15b5c6(0x317),_0x15b5c6(0x3ee),_0x15b5c6(0x219),'yellow.400'];class Re extends a['Disposable']{constructor(){const _0x8f5ae0=_0x15b5c6;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x8f5ae0(0x3d6),0x0);}[_0x15b5c6(0x28a)](_0x21000e){const _0x16376e=_0x15b5c6;if(this['_assignedColors'][_0x16376e(0x1de)](_0x21000e))return this[_0x16376e(0x3cf)][_0x16376e(0x2c9)](_0x21000e);const _0x42f451=Ne[this['_colorIndex']];return this[_0x16376e(0x3d6)]=(this[_0x16376e(0x3d6)]+0x1)%Ne[_0x16376e(0x45c)],this[_0x16376e(0x3cf)][_0x16376e(0x196)](_0x21000e,_0x42f451),_0x42f451;}}function Fe(_0x148472){let _0xef8e43='';for(const _0x386a65 of _0x148472){const {startOffset:_0x545688,endOffset:_0x2d704c,isActive:_0x375a9e,rangeType:_0x16a7d1,segmentId:_0x58b03b,segmentPage:_0x587939}=_0x386a65;_0xef8e43['length']&&(_0xef8e43+=','),_0xef8e43+=_0x545688+':'+_0x2d704c+':'+(_0x375a9e?'1':'0')+':'+_0x16a7d1+':'+_0x58b03b+':'+_0x587939;}return _0xef8e43;}function ht(_0x3de447){const _0x8ee5c5=_0x15b5c6,_0x213ddb=_0x3de447['split'](','),_0x51fe30=[];for(const _0x8c77f0 of _0x213ddb){const [_0x398067,_0xd57744,_0x219f6c,_0x53cdbf,_0x25f064,_0x28e34c]=_0x8c77f0[_0x8ee5c5(0x1df)](':');_0x51fe30[_0x8ee5c5(0x320)]({'startOffset':Number(_0x398067),'endOffset':Number(_0xd57744),'collapsed':_0x398067===_0xd57744,'isActive':_0x219f6c==='1','rangeType':_0x53cdbf===a[_0x8ee5c5(0x35c)][_0x8ee5c5(0x1f8)]?a[_0x8ee5c5(0x35c)][_0x8ee5c5(0x1f8)]:a[_0x8ee5c5(0x35c)][_0x8ee5c5(0x20a)],'segmentId':typeof _0x25f064==_0x8ee5c5(0x36a)?String(_0x25f064):'','segmentPage':Number(_0x28e34c!=null?_0x28e34c:-0x1)});}return _0x51fe30[_0x8ee5c5(0x356)](_0x429df2=>_0x429df2[_0x8ee5c5(0x461)])||(_0x51fe30[0x0]['isActive']=!0x0),_0x51fe30;}class be extends a[_0x15b5c6(0x30d)]{constructor(){const _0x25eee7=_0x15b5c6;super(...arguments),_(this,_0x25eee7(0x2a2),new I[(_0x25eee7(0x433))](null)),_(this,_0x25eee7(0x238),this[_0x25eee7(0x2a2)][_0x25eee7(0x432)]());}[_0x15b5c6(0x1b4)](_0x4ce908){const _0x1a7a00=_0x15b5c6,{unitID:_0x4bda4a,memberID:_0x5b047d,textRanges:_0x34c864}=_0x4ce908,_0x520538=Fe(_0x34c864);if(_0x520538==='')return;const _0x4fa53a={'unitID':_0x4bda4a,'memberID':_0x5b047d,'selection':_0x520538};this['_collabCursorState$'][_0x1a7a00(0x337)](_0x4fa53a);}}var ut=Object[_0x15b5c6(0x43d)],It=(_0x3d587d,_0x2f6a2c,_0x1dd5aa,_0x2cbe76)=>{const _0x5572f3=_0x15b5c6;for(var _0x117ef5=_0x2cbe76>0x1?void 0x0:_0x2cbe76?ut(_0x2f6a2c,_0x1dd5aa):_0x2f6a2c,_0xe59b12=_0x3d587d[_0x5572f3(0x45c)]-0x1,_0x47e69b;_0xe59b12>=0x0;_0xe59b12--)(_0x47e69b=_0x3d587d[_0xe59b12])&&(_0x117ef5=_0x47e69b(_0x117ef5)||_0x117ef5);return _0x117ef5;},U=(_0x526e78,_0x1c2b9a)=>(_0x39cd1e,_0x2b8b39)=>_0x1c2b9a(_0x39cd1e,_0x2b8b39,_0x526e78);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x37f403,_0x8a2dd0,_0x270710,_0x39a7bf,_0x2c61f1,_0xf107ee,_0x3d2ede,_0x1d3d39,_0xf4eae1){const _0x3bf391=_0x15b5c6;super(),_(this,_0x3bf391(0x308),!0x1),_(this,_0x3bf391(0x462),!0x1),_(this,'_cursorInfo$',new I[(_0x3bf391(0x433))](new Map())),_(this,_0x3bf391(0x301),this['_cursorInfo$'][_0x3bf391(0x432)]()),_(this,_0x3bf391(0x23f),new I[(_0x3bf391(0x433))]([])),_(this,_0x3bf391(0x1dc),this[_0x3bf391(0x23f)][_0x3bf391(0x24a)](I[_0x3bf391(0x454)](St))),_(this,_0x3bf391(0x335),a[_0x3bf391(0x2e8)](_0x4090d1=>{const _0x5a4614=_0x3bf391,_0x5b0384={'eventID':g[_0x5a4614(0x33d)][_0x5a4614(0x3ce)],'data':{'unitID':this[_0x5a4614(0x1d4)],'memberID':this[_0x5a4614(0x353)][_0x5a4614(0x1ca)](),'selection':Fe(_0x4090d1)}};this['_session']['send'](_0x5b0384,this[_0x5a4614(0x1d4)]);},dt)),(this[_0x3bf391(0x1d4)]=_0x37f403,this[_0x3bf391(0x353)]=_0x8a2dd0,this[_0x3bf391(0x201)]=_0x270710,this[_0x3bf391(0x39b)]=_0x39a7bf,this[_0x3bf391(0x450)]=_0x2c61f1,this[_0x3bf391(0x306)]=_0xf107ee,this['_transformService']=_0x3d2ede,this[_0x3bf391(0x2fc)]=_0x1d3d39,this[_0x3bf391(0x340)]=_0xf4eae1);}get[_0x15b5c6(0x370)](){return this['_cursorInfo$']['getValue']();}get[_0x15b5c6(0x1b5)](){const _0x273b73=_0x15b5c6;return this['_roomMembers$'][_0x273b73(0x441)]();}[_0x15b5c6(0x327)](){const _0x186f58=_0x15b5c6;super[_0x186f58(0x327)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x186f58(0x1c5)](),this[_0x186f58(0x23f)][_0x186f58(0x337)]([]),this[_0x186f58(0x23f)][_0x186f58(0x1c5)]();}[_0x15b5c6(0x418)](){const _0x516d2f=_0x15b5c6;this[_0x516d2f(0x462)]||(this[_0x516d2f(0x462)]=!0x0,this[_0x516d2f(0x353)][_0x516d2f(0x2e7)][_0x516d2f(0x24a)](I[_0x516d2f(0x344)](this[_0x516d2f(0x34e)]))['subscribe'](_0x22b838=>{const _0x15f22f=_0x516d2f;_0x22b838===u[_0x15f22f(0x236)][_0x15f22f(0x287)]?this[_0x15f22f(0x3bd)]():this[_0x15f22f(0x255)]();}),this['_session'][_0x516d2f(0x2d0)][_0x516d2f(0x24a)](I[_0x516d2f(0x344)](this['dispose$']))[_0x516d2f(0x3fc)](_0x155aac=>{const _0x1558de=_0x516d2f,_0x355454=_0x155aac['eventID'];_0x355454===g[_0x1558de(0x33d)][_0x1558de(0x3ce)]&&this['_onCursorUpdate'](_0x155aac),_0x355454===g[_0x1558de(0x33d)][_0x1558de(0x34d)]&&this[_0x1558de(0x413)](_0x155aac);}),this[_0x516d2f(0x425)](this['_commandService'][_0x516d2f(0x2a8)](_0x48a70f=>{const _0xdc5abe=_0x516d2f,_0x436943=_0x48a70f[_0xdc5abe(0x293)];_0x436943!=null&&this[_0xdc5abe(0x308)]&&_0x48a70f['id']===V[_0xdc5abe(0x283)]['id']&&_0x436943['unitId']===this[_0xdc5abe(0x1d4)]&&_0x436943[_0xdc5abe(0x261)]===!0x1&&_0x436943[_0xdc5abe(0x3ac)][_0xdc5abe(0x45c)]>0x0&&this['_updateLocalCursor'](_0x436943['ranges']);})),this[_0x516d2f(0x306)][_0x516d2f(0x238)][_0x516d2f(0x24a)](I[_0x516d2f(0x344)](this['dispose$']))[_0x516d2f(0x3fc)](_0x4f6f32=>{const _0x6e0b53=_0x516d2f;if((_0x4f6f32==null?void 0x0:_0x4f6f32[_0x6e0b53(0x1d4)])!==this['unitID'])return;const _0xf95a71={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x4f6f32};this[_0x6e0b53(0x440)](_0xf95a71);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x4b5d2c=>{const _0x1c81c2=_0x516d2f;if(_0x4b5d2c[_0x1c81c2(0x293)]==null)return;const _0x1f97f1=_0x4b5d2c[_0x1c81c2(0x293)];if(_0x4b5d2c['id']!==V['RichTextEditingMutation']['id']||_0x1f97f1[_0x1c81c2(0x29c)]!==this[_0x1c81c2(0x1d4)])return;const _0x4bdd73={'id':'doc.mutation.rich-text-editing','params':_0x1f97f1},_0x3614d5=this[_0x1c81c2(0x370)];for(const [_0x22836c,_0x53b247]of _0x3614d5){const _0x332685={'id':_0x1c81c2(0x240),'params':{'unitId':this[_0x1c81c2(0x1d4)],'actions':null,'textRanges':_0x53b247[_0x1c81c2(0x3ac)]}},_0x29bed4=this[_0x1c81c2(0x1ea)][_0x1c81c2(0x2f6)](_0x4bdd73,_0x332685,!0x1);if(g[_0x1c81c2(0x3a4)](_0x29bed4))throw _0x29bed4[_0x1c81c2(0x3f3)];_0x3614d5[_0x1c81c2(0x196)](_0x22836c,{..._0x53b247,'ranges':_0x29bed4['m2Prime'][_0x1c81c2(0x293)][_0x1c81c2(0x30f)]});}queueMicrotask(()=>{const _0x2bac56=_0x1c81c2;this[_0x2bac56(0x26b)][_0x2bac56(0x337)](_0x3614d5);});})));}['_onCursorUpdate'](_0x5a9cf5){const _0x2f6d96=_0x15b5c6;var _0x3d886b,_0x108ad7;const {memberID:_0x487d9e,selection:_0x2191ac}=_0x5a9cf5['data'],_0x43d4f4=ht(_0x2191ac),_0x323684=(_0x108ad7=(_0x3d886b=this[_0x2f6d96(0x450)][_0x2f6d96(0x265)](this[_0x2f6d96(0x1d4)],_0x487d9e))==null?void 0x0:_0x3d886b[_0x2f6d96(0x400)])!=null?_0x108ad7:'Unknown\x20user',_0x47d3b7={'color':this[_0x2f6d96(0x39b)][_0x2f6d96(0x28a)](_0x487d9e),'name':_0x323684,'ranges':_0x43d4f4},_0x4f0de8=this['cursorInfo'];_0x4f0de8[_0x2f6d96(0x196)](_0x487d9e,_0x47d3b7),this[_0x2f6d96(0x26b)]['next'](_0x4f0de8);}[_0x15b5c6(0x413)](_0x4c168e){const _0x30fc9c=_0x15b5c6,{memberID:_0x556979}=_0x4c168e[_0x30fc9c(0x41d)],_0x5e6f9d=this['cursorInfo'];_0x5e6f9d[_0x30fc9c(0x329)](_0x556979),this[_0x30fc9c(0x26b)]['next'](_0x5e6f9d);}['_toggleOnline'](){const _0x15c4d9=_0x15b5c6;var _0x3147b3;if(this[_0x15c4d9(0x308)]=!0x0,((_0x3147b3=this[_0x15c4d9(0x2fc)]['getFocusedUnit']())==null?void 0x0:_0x3147b3[_0x15c4d9(0x36f)]())!==this['unitID'])return;const _0x2a68c8=this[_0x15c4d9(0x201)]['get'](V[_0x15c4d9(0x3b2)])['getDocRanges']();Array[_0x15c4d9(0x3a9)](_0x2a68c8)&&_0x2a68c8[_0x15c4d9(0x45c)]>0x0&&this[_0x15c4d9(0x335)](_0x2a68c8);}['_toggleOffline'](){const _0x390a3b=_0x15b5c6;this[_0x390a3b(0x308)]=!0x1;}};ve=It([U(0x2,a[_0x15b5c6(0x3bb)](a['Injector'])),U(0x3,a[_0x15b5c6(0x3bb)](Re)),U(0x4,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x200)])),U(0x5,a[_0x15b5c6(0x3bb)](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x15b5c6(0x333)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x15b5c6(0x43d)],mt=(_0x5c25ef,_0x3cf3e4,_0x56dbef,_0x2b1c28)=>{const _0x3155a7=_0x15b5c6;for(var _0x1101f8=_0x2b1c28>0x1?void 0x0:_0x2b1c28?ft(_0x3cf3e4,_0x56dbef):_0x3cf3e4,_0x21841f=_0x5c25ef[_0x3155a7(0x45c)]-0x1,_0x1f186a;_0x21841f>=0x0;_0x21841f--)(_0x1f186a=_0x5c25ef[_0x21841f])&&(_0x1101f8=_0x1f186a(_0x1101f8)||_0x1101f8);return _0x1101f8;},w=(_0x3180c0,_0x1a385b)=>(_0x392ac2,_0x384cf)=>_0x1a385b(_0x392ac2,_0x384cf,_0x3180c0);const vt=0x12c,gt=0x64,Et=()=>{let _0x164e6b=[],_0x583df8=!0x1;return _0x381c0b=>{_0x164e6b['push'](_0x381c0b),_0x583df8||(_0x583df8=!0x0,setTimeout(()=>{_0x164e6b['forEach'](_0x12df78=>_0x12df78()),_0x164e6b=[],_0x583df8=!0x1;}));};};let ge=class extends a[_0x15b5c6(0x30d)]{constructor(_0x2c8dd1,_0x38d2e5,_0x3acbd9,_0x181956,_0x9ad81e,_0x19b750,_0xbdb62f,_0x9bb0df){const _0x191e8d=_0x15b5c6;super(),_(this,_0x191e8d(0x308),!0x1),_(this,_0x191e8d(0x462),!0x1),_(this,_0x191e8d(0x26b),new I[(_0x191e8d(0x433))](new Map())),_(this,_0x191e8d(0x301),this[_0x191e8d(0x26b)][_0x191e8d(0x432)]()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,'roomMembers$',this[_0x191e8d(0x23f)][_0x191e8d(0x24a)](I[_0x191e8d(0x454)](vt))),_(this,_0x191e8d(0x335),a[_0x191e8d(0x2e8)]((_0x4dc75d,_0x77614)=>{const _0x41ce2b=_0x191e8d,_0x2244cd={'eventID':g[_0x41ce2b(0x33d)][_0x41ce2b(0x3ce)],'data':{'unitID':this[_0x41ce2b(0x1d4)],'memberID':this[_0x41ce2b(0x353)][_0x41ce2b(0x1ca)](),'selection':B[_0x41ce2b(0x394)](_0x4dc75d,_0x77614['range'])}};this['_session'][_0x41ce2b(0x22f)](_0x2244cd,this[_0x41ce2b(0x1d4)]);},gt)),(this[_0x191e8d(0x1d4)]=_0x2c8dd1,this['_session']=_0x38d2e5,this[_0x191e8d(0x201)]=_0x3acbd9,this[_0x191e8d(0x39b)]=_0x181956,this[_0x191e8d(0x450)]=_0x9ad81e,this[_0x191e8d(0x2fc)]=_0x19b750,this[_0x191e8d(0x340)]=_0xbdb62f,this['_refRangeService']=_0x9bb0df);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x15b5c6(0x1b5)](){const _0x3e0a0e=_0x15b5c6;return this[_0x3e0a0e(0x23f)][_0x3e0a0e(0x441)]();}['dispose'](){const _0x340d4d=_0x15b5c6;super[_0x340d4d(0x327)](),this[_0x340d4d(0x26b)]['next'](new Map()),this['_cursorInfo$'][_0x340d4d(0x1c5)](),this['_roomMembers$'][_0x340d4d(0x337)]([]),this[_0x340d4d(0x23f)][_0x340d4d(0x1c5)]();}[_0x15b5c6(0x418)](){const _0x3a8022=_0x15b5c6;this[_0x3a8022(0x462)]||(this[_0x3a8022(0x462)]=!0x0,this[_0x3a8022(0x353)][_0x3a8022(0x2e7)][_0x3a8022(0x24a)](I['takeUntil'](this[_0x3a8022(0x34e)]))[_0x3a8022(0x3fc)](_0x26b628=>{const _0x8c7752=_0x3a8022;_0x26b628===u[_0x8c7752(0x236)][_0x8c7752(0x287)]?this[_0x8c7752(0x3bd)]():this[_0x8c7752(0x255)]();}),this[_0x3a8022(0x353)][_0x3a8022(0x2d0)][_0x3a8022(0x24a)](I[_0x3a8022(0x344)](this[_0x3a8022(0x34e)]))['subscribe'](_0xd03d55=>{const _0x334c44=_0x3a8022,_0x559663=_0xd03d55[_0x334c44(0x26c)];_0x559663===g[_0x334c44(0x33d)][_0x334c44(0x3ce)]&&this[_0x334c44(0x440)](_0xd03d55),_0x559663===g['CollaborationEvent'][_0x334c44(0x34d)]&&this['_onCursorDelete'](_0xd03d55);}),this[_0x3a8022(0x3ec)](),this[_0x3a8022(0x425)](this[_0x3a8022(0x340)]['onCommandExecuted'](_0x1152b4=>{const _0x2968e5=_0x3a8022;if(this[_0x2968e5(0x308)]&&_0x1152b4['id']===v[_0x2968e5(0x19c)]['id']&&_0x1152b4[_0x2968e5(0x293)][_0x2968e5(0x29c)]===this[_0x2968e5(0x1d4)]){const _0x33b8ea=_0x1152b4[_0x2968e5(0x293)];this['_updateLocalCursor'](_0x33b8ea[_0x2968e5(0x197)],_0x33b8ea[_0x2968e5(0x3ad)][0x0]);}})));}['_onCursorUpdate'](_0x3dae9c){const _0x39a663=_0x15b5c6;var _0x590d98,_0x137605;const {memberID:_0x236414,selection:_0x16ae88}=_0x3dae9c[_0x39a663(0x41d)],{sheetName:_0x5ca47a,range:_0x13bfa8}=B['deserializeRangeWithSheet'](_0x16ae88),_0x3bf8d0={'name':(_0x137605=(_0x590d98=this[_0x39a663(0x450)][_0x39a663(0x265)](this['unitID'],_0x236414))==null?void 0x0:_0x590d98[_0x39a663(0x400)])!=null?_0x137605:_0x39a663(0x3a0),'range':this['_getMergeRange'](_0x5ca47a,_0x13bfa8),'sheetID':_0x5ca47a,'color':this[_0x39a663(0x39b)][_0x39a663(0x28a)](_0x236414),'selection':_0x16ae88},_0x5c9c97=this[_0x39a663(0x370)];_0x5c9c97['set'](_0x236414,_0x3bf8d0),this[_0x39a663(0x26b)][_0x39a663(0x337)](_0x5c9c97);}['_onCursorDelete'](_0x5bf54e){const _0x179146=_0x15b5c6,{memberID:_0x5bde33}=_0x5bf54e['data'],_0x137589=this[_0x179146(0x370)];_0x137589[_0x179146(0x329)](_0x5bde33),this['_cursorInfo$'][_0x179146(0x337)](_0x137589);}[_0x15b5c6(0x324)](_0xf91878,_0x14a1a9){const _0x151ecd=_0x15b5c6;var _0xdf69cd,_0x5ad7d4;const _0x31c8f2=(_0x5ad7d4=(_0xdf69cd=this[_0x151ecd(0x2fc)][_0x151ecd(0x1b0)](this['unitID']))==null?void 0x0:_0xdf69cd[_0x151ecd(0x3fa)](_0xf91878))==null?void 0x0:_0x5ad7d4[_0x151ecd(0x3a1)]();return(_0x31c8f2==null?void 0x0:_0x31c8f2[_0x151ecd(0x2e3)](_0xe4aba7=>a['Rectangle']['contains'](_0xe4aba7,_0x14a1a9)))||_0x14a1a9;}['_onRefRangeChange'](){const _0x5491c4=_0x15b5c6,_0x469439=new a['DisposableCollection'](),_0x6f6f3f=Et(),_0x4a4355=()=>{const _0x41bba5=_0x31d6;_0x469439['dispose']();const _0xd92e80=(_0x55f8ed,_0x36a099,_0x5cae67,_0x43553c)=>{const _0x18b613=_0x31d6;let _0x4ea7ab=[];switch(_0x55f8ed['id']){case v[_0x18b613(0x1a7)][_0x18b613(0x43c)]:{_0x4ea7ab=v[_0x18b613(0x1d0)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)][_0x18b613(0x3f2)]:{_0x4ea7ab=v[_0x18b613(0x27e)](_0x55f8ed,_0x43553c);break;}case v['EffectRefRangId']['InsertColCommandId']:{_0x4ea7ab=v[_0x18b613(0x455)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)]['InsertRangeMoveDownCommandId']:{_0x4ea7ab=v[_0x18b613(0x3da)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)]['InsertRangeMoveRightCommandId']:{_0x4ea7ab=v[_0x18b613(0x3dc)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)][_0x18b613(0x262)]:{_0x4ea7ab=v[_0x18b613(0x44d)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)][_0x18b613(0x42e)]:{_0x4ea7ab=v[_0x18b613(0x241)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)][_0x18b613(0x1c3)]:{_0x4ea7ab=v[_0x18b613(0x445)](_0x55f8ed,_0x43553c);break;}case v[_0x18b613(0x1a7)]['RemoveRowCommandId']:{_0x4ea7ab=v['handleIRemoveRow'](_0x55f8ed,_0x43553c);break;}}const _0x2dde6a=v['runRefRangeMutations'](_0x4ea7ab,_0x43553c),_0x5178c4=this[_0x18b613(0x370)][_0x18b613(0x2c9)](_0x36a099);if(_0x5178c4&&_0x2dde6a){const _0x59fe32={..._0x5178c4,'range':_0x2dde6a};this[_0x18b613(0x370)]['set'](_0x36a099,_0x59fe32),_0x6f6f3f(()=>{const _0x23d6f3=_0x18b613,_0x52422b=this['_refRangeService']['registerRefRange'](_0x2dde6a,_0x3679d6=>(_0x52422b[_0x23d6f3(0x327)](),_0xd92e80(_0x3679d6,_0x36a099,_0x5cae67,_0x2dde6a)));_0x469439[_0x23d6f3(0x3bf)](_0x52422b);});}return{'redos':[],'undos':[]};};this[_0x41bba5(0x370)][_0x41bba5(0x449)]((_0x3998ae,_0x1fff79)=>{const _0x171114=_0x41bba5,{range:_0x298c53,sheetID:_0x230ac3}=_0x3998ae,_0x497d10=this[_0x171114(0x1ec)][_0x171114(0x3c6)](_0x298c53,_0x1b5488=>(_0x497d10[_0x171114(0x327)](),_0xd92e80(_0x1b5488,_0x1fff79,_0x230ac3,_0x298c53)));_0x469439[_0x171114(0x3bf)](_0x497d10);});};this[_0x5491c4(0x425)](a[_0x5491c4(0x2f2)](this[_0x5491c4(0x26b)]['subscribe'](()=>{_0x4a4355();})));}[_0x15b5c6(0x3bd)](){const _0x42570c=_0x15b5c6;var _0x1a60bf,_0x53853c;if(this[_0x42570c(0x308)]=!0x0,((_0x1a60bf=this['_univerInstanceService'][_0x42570c(0x34f)]())==null?void 0x0:_0x1a60bf[_0x42570c(0x36f)]())!==this[_0x42570c(0x1d4)])return;const _0x11b0fc=(_0x53853c=this[_0x42570c(0x201)][_0x42570c(0x2c9)](v[_0x42570c(0x2f0)])['getCurrentSelections']())==null?void 0x0:_0x53853c[0x0],_0x387f1b=this[_0x42570c(0x2fc)][_0x42570c(0x365)](a[_0x42570c(0x295)][_0x42570c(0x2ae)])['getActiveSheet']();_0x11b0fc&&_0x387f1b&&this[_0x42570c(0x335)](_0x387f1b[_0x42570c(0x345)](),_0x11b0fc);}[_0x15b5c6(0x255)](){const _0x3aeecc=_0x15b5c6;this[_0x3aeecc(0x308)]=!0x1;}};ge=mt([w(0x2,a['Inject'](a[_0x15b5c6(0x1c8)])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x200)])),w(0x5,a[_0x15b5c6(0x333)]),w(0x6,a[_0x15b5c6(0x285)]),w(0x7,a[_0x15b5c6(0x3bb)](v[_0x15b5c6(0x25e)]))],ge);var Ct=Object[_0x15b5c6(0x43d)],Tt=(_0x5627d8,_0x509d44,_0x48295c,_0x261de5)=>{for(var _0x497ba0=_0x261de5>0x1?void 0x0:_0x261de5?Ct(_0x509d44,_0x48295c):_0x509d44,_0x3ba843=_0x5627d8['length']-0x1,_0x2ab133;_0x3ba843>=0x0;_0x3ba843--)(_0x2ab133=_0x5627d8[_0x3ba843])&&(_0x497ba0=_0x2ab133(_0x497ba0)||_0x497ba0);return _0x497ba0;},ce=(_0x3f3bd0,_0xb933fc)=>(_0x415c60,_0x4db606)=>_0xb933fc(_0x415c60,_0x4db606,_0x3f3bd0);let F=class extends a[_0x15b5c6(0x30d)]{constructor(_0x579e7e,_0x110220,_0x35e8ec){const _0x56f075=_0x15b5c6;super(),_(this,'_entities',new Map()),_(this,_0x56f075(0x278),new I[(_0x56f075(0x3a8))]()),(this[_0x56f075(0x2fc)]=_0x579e7e,this[_0x56f075(0x201)]=_0x110220,this[_0x56f075(0x393)]=_0x35e8ec,this[_0x56f075(0x462)]());}[_0x15b5c6(0x327)](){const _0x5fdd82=_0x15b5c6;super[_0x5fdd82(0x327)](),this[_0x5fdd82(0x278)][_0x5fdd82(0x1c5)](),this[_0x5fdd82(0x2fd)][_0x5fdd82(0x449)](_0x287985=>_0x287985[_0x5fdd82(0x327)]());}[_0x15b5c6(0x1e3)](_0x552334){const _0x195ce6=_0x15b5c6;return this['_entities'][_0x195ce6(0x1de)](_0x552334)?this[_0x195ce6(0x2fd)][_0x195ce6(0x2c9)](_0x552334)[_0x195ce6(0x301)]:this[_0x195ce6(0x278)][_0x195ce6(0x24a)](I[_0x195ce6(0x391)](_0x37a86f=>_0x37a86f['unitID']===_0x552334),I[_0x195ce6(0x2d7)](_0x3c5254=>_0x3c5254[_0x195ce6(0x301)]));}[_0x15b5c6(0x462)](){const _0x546a65=_0x15b5c6;this['_univerInstanceService'][_0x546a65(0x1eb)](a[_0x546a65(0x295)]['UNIVER_SHEET'])['pipe'](I['takeUntil'](this[_0x546a65(0x34e)]))[_0x546a65(0x3fc)](async _0x41b0e1=>{const _0x2db410=_0x546a65,_0xe95314=_0x41b0e1[_0x2db410(0x36f)](),_0x25652b=await this['_startSheetCollabCursor'](_0xe95314);this[_0x2db410(0x278)][_0x2db410(0x337)](_0x25652b),this['_entities'][_0x2db410(0x196)](_0xe95314,_0x25652b);}),this[_0x546a65(0x2fc)][_0x546a65(0x1eb)](a['UniverInstanceType'][_0x546a65(0x28e)])[_0x546a65(0x24a)](I[_0x546a65(0x344)](this[_0x546a65(0x34e)]))[_0x546a65(0x24a)](I[_0x546a65(0x391)](_0xd79f97=>!_0xd79f97[_0x546a65(0x36f)]()[_0x546a65(0x387)]('__')))['subscribe'](async _0x252227=>{const _0x3ea298=_0x546a65,_0x1c3ad6=_0x252227[_0x3ea298(0x36f)](),_0x3b826a=await this[_0x3ea298(0x3e8)](_0x1c3ad6);this[_0x3ea298(0x278)]['next'](_0x3b826a),this['_entities'][_0x3ea298(0x196)](_0x1c3ad6,_0x3b826a);}),I[_0x546a65(0x207)](this[_0x546a65(0x2fc)][_0x546a65(0x2aa)](a[_0x546a65(0x295)][_0x546a65(0x28e)]),this[_0x546a65(0x2fc)][_0x546a65(0x2aa)](a[_0x546a65(0x295)][_0x546a65(0x2ae)]))[_0x546a65(0x24a)](I[_0x546a65(0x344)](this[_0x546a65(0x34e)]))[_0x546a65(0x3fc)](_0x2720c2=>{const _0x573e0b=_0x546a65,_0x238d73=_0x2720c2[_0x573e0b(0x36f)](),_0x1c53ad=this[_0x573e0b(0x2fd)][_0x573e0b(0x2c9)](_0x238d73);_0x1c53ad&&(_0x1c53ad[_0x573e0b(0x327)](),this[_0x573e0b(0x2fd)]['delete'](_0x238d73));});}async[_0x15b5c6(0x223)](_0x51c68){const _0x36d468=_0x15b5c6,_0x30a29a=await this['_collabSessionService']['requireSession'](_0x51c68),_0x112b1b=this['_injector']['createInstance'](ge,_0x51c68,_0x30a29a);return _0x112b1b[_0x36d468(0x418)](),_0x112b1b;}async[_0x15b5c6(0x3e8)](_0x3c163c){const _0x2f87bb=_0x15b5c6,_0x2fe1ee=await this[_0x2f87bb(0x393)][_0x2f87bb(0x282)](_0x3c163c),_0x599c2e=this[_0x2f87bb(0x201)][_0x2f87bb(0x1d9)](ve,_0x3c163c,_0x2fe1ee);return _0x599c2e[_0x2f87bb(0x418)](),_0x599c2e;}};F=Tt([ce(0x0,a[_0x15b5c6(0x333)]),ce(0x1,a[_0x15b5c6(0x3bb)](a['Injector'])),ce(0x2,a['Inject'](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x40ef9e,_0x365878){const _0x2589a4=_0x15b5c6;let {radius:_0x31bcdb,width:_0x4ad7ae,height:_0x1f74a6}=_0x365878;_0x31bcdb=_0x31bcdb!=null?_0x31bcdb:0x0,_0x4ad7ae=_0x4ad7ae!=null?_0x4ad7ae:0x1e,_0x1f74a6=_0x1f74a6!=null?_0x1f74a6:0x1e;let _0x39ff56=0x0,_0x55f79b=0x0,_0x5b8489=0x0;_0x39ff56=_0x55f79b=_0x5b8489=Math[_0x2589a4(0x246)](_0x31bcdb,_0x4ad7ae/0x2,_0x1f74a6/0x2),_0x40ef9e[_0x2589a4(0x447)](),_0x40ef9e['moveTo'](_0x39ff56,0x0),_0x40ef9e[_0x2589a4(0x380)](_0x4ad7ae-_0x55f79b,0x0),_0x40ef9e[_0x2589a4(0x318)](_0x4ad7ae-_0x55f79b,_0x55f79b,_0x55f79b,Math['PI']*0x3/0x2,0x0,!0x1),_0x40ef9e['lineTo'](_0x4ad7ae,_0x1f74a6-_0x5b8489),_0x40ef9e[_0x2589a4(0x318)](_0x4ad7ae-_0x5b8489,_0x1f74a6-_0x5b8489,_0x5b8489,0x0,Math['PI']/0x2,!0x1),_0x40ef9e[_0x2589a4(0x380)](0x0,_0x1f74a6),_0x40ef9e[_0x2589a4(0x380)](0x0,_0x39ff56),_0x40ef9e[_0x2589a4(0x318)](_0x39ff56,_0x39ff56,_0x39ff56,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x40ef9e[_0x2589a4(0x1ed)](),_0x365878[_0x2589a4(0x1cd)]&&(_0x40ef9e[_0x2589a4(0x424)](),_0x40ef9e['fillStyle']=_0x365878[_0x2589a4(0x1cd)],_0x365878[_0x2589a4(0x35b)]===_0x2589a4(0x248)?_0x40ef9e[_0x2589a4(0x1cd)](_0x2589a4(0x248)):_0x40ef9e[_0x2589a4(0x1cd)](),_0x40ef9e[_0x2589a4(0x3f5)]());}class re extends C[_0x15b5c6(0x21a)]{constructor(_0x4005f0,_0xddfb12){const _0x5601f5=_0x15b5c6;super(_0x4005f0,_0xddfb12),_(this,'color'),_(this,'text'),(this['color']=_0xddfb12==null?void 0x0:_0xddfb12['color'],this[_0x5601f5(0x29b)]=_0xddfb12==null?void 0x0:_0xddfb12[_0x5601f5(0x29b)]);}static[_0x15b5c6(0x313)](_0x16eca2,_0x2298df){const _0x52ecdc=_0x15b5c6,{text:_0x224bf5,color:_0x249aaa}=_0x2298df;_0x16eca2[_0x52ecdc(0x424)](),_0x16eca2[_0x52ecdc(0x2b6)]=_0x52ecdc(0x355);const _0x320d5b=_0x16eca2['measureText'](_0x224bf5)[_0x52ecdc(0x2fe)],_0x52f550=Math[_0x52ecdc(0x246)](_0x320d5b+0x2*le,Ue);Ot(_0x16eca2,{'height':X,'radius':0x4,'width':_0x52f550,'fill':_0x249aaa}),_0x16eca2[_0x52ecdc(0x357)]=_0x52ecdc(0x453);const _0x1b3573=le,_0x4b5bb3=X-pt,_0x3996f6=Ue-0x2*le;if(_0x320d5b>_0x3996f6){let _0x500bab='',_0x1875f9=0x0;for(const _0x5a66a5 of _0x224bf5){const _0x47f2ec=_0x16eca2['measureText'](_0x5a66a5)['width'];if(_0x1875f9+_0x47f2ec<=_0x3996f6-_0x16eca2[_0x52ecdc(0x251)]('...')[_0x52ecdc(0x2fe)])_0x500bab+=_0x5a66a5,_0x1875f9+=_0x47f2ec;else{_0x500bab+=_0x52ecdc(0x422);break;}}_0x16eca2[_0x52ecdc(0x2db)](_0x500bab,_0x1b3573,_0x4b5bb3);}else _0x16eca2[_0x52ecdc(0x2db)](_0x224bf5,_0x1b3573,_0x4b5bb3);_0x16eca2[_0x52ecdc(0x3f5)]();}[_0x15b5c6(0x2a7)](_0x3759a3){const _0x194c3a=_0x15b5c6;re[_0x194c3a(0x313)](_0x3759a3,this);}}const _e=_0x15b5c6(0x2ec),Rt=_0x15b5c6(0x3cc),bt=_0x15b5c6(0x35f),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x15b5c6(0x1cb);class Le{constructor(_0x433c6a,_0x4a87f1,_0x2cffa0,_0x4e0b37){const _0x2680c9=_0x15b5c6;_(this,_0x2680c9(0x2b3),[]),_(this,_0x2680c9(0x31e),null),_(this,_0x2680c9(0x1fa),null),_(this,_0x2680c9(0x1b9),null),_(this,_0x2680c9(0x2d2),null),_(this,_0x2680c9(0x210),null),(this['_cursor']=_0x433c6a,this[_0x2680c9(0x1e9)]=_0x4a87f1,this['_docSkeleton']=_0x2cffa0,this[_0x2680c9(0x37c)]=_0x4e0b37,this[_0x2680c9(0x369)]());}set[_0x15b5c6(0x2b5)](_0x3ac85e){const _0x18e9ad=_0x15b5c6;_0x3ac85e?(this['_anchorDot']&&this[_0x18e9ad(0x1b9)][_0x18e9ad(0x427)](),this[_0x18e9ad(0x1fa)]&&this[_0x18e9ad(0x1fa)][_0x18e9ad(0x37b)]()):(this[_0x18e9ad(0x1b9)]&&this[_0x18e9ad(0x1b9)]['show'](),this[_0x18e9ad(0x1fa)]&&this[_0x18e9ad(0x1fa)][_0x18e9ad(0x427)]());}['dispose'](){const _0x211ee0=_0x15b5c6;for(const _0xd39722 of this[_0x211ee0(0x2b3)])_0xd39722[_0x211ee0(0x327)]();this[_0x211ee0(0x1fa)]&&this[_0x211ee0(0x1fa)][_0x211ee0(0x327)](),this[_0x211ee0(0x1b9)]&&this[_0x211ee0(0x1b9)]['dispose'](),this[_0x211ee0(0x31e)]&&this[_0x211ee0(0x31e)][_0x211ee0(0x327)](),this[_0x211ee0(0x210)]&&this['_eventUnsubscribe']();}[_0x15b5c6(0x369)](){const _0x47c8aa=_0x15b5c6;var _0x4246b5;const {_docSkeleton:_0x5619e6,_document:_0x59779c}=this,{color:_0x5207fd,name:_0x1a831c,ranges:_0x20519b}=this[_0x47c8aa(0x3d3)],_0xb259f4=_0x59779c[_0x47c8aa(0x1af)](),{docsLeft:_0x34cb08,docsTop:_0x52c418}=_0xb259f4,_0x1996f8=new T[(_0x47c8aa(0x444))](_0xb259f4,_0x5619e6);for(const {startOffset:_0x5e525c,endOffset:_0x212204,rangeType:_0x91fe2,segmentId:_0x471613,segmentPage:_0x27b26d,collapsed:_0x5fd79,isActive:_0x2ed171}of _0x20519b){const _0x467ce4=_0x5619e6['findNodePositionByCharIndex'](_0x5e525c,!0x0,_0x471613,_0x27b26d);let _0x43eb63=_0x5619e6['findNodePositionByCharIndex'](_0x212204,!0x0,_0x471613,_0x27b26d);if(_0x43eb63==null&&(_0x43eb63=_0x5619e6[_0x47c8aa(0x404)](_0x212204-0x1,!0x1,_0x471613,_0x27b26d)),_0x2ed171){const {contentBoxPointGroup:_0x5b0a53}=_0x1996f8[_0x47c8aa(0x2d3)](_0x43eb63,_0x43eb63);if(_0x5b0a53[_0x47c8aa(0x45c)]===0x0)continue;this['_drawAnchor'](_0x5207fd,_0x5b0a53,_0x34cb08,_0x52c418,_0x1a831c),this['_eventUnsubscribe']=this[_0x47c8aa(0x405)]();}if(_0x467ce4&&_0x43eb63){if(_0x91fe2===a[_0x47c8aa(0x35c)]['RECT']){const _0x41d045=new T[(_0x47c8aa(0x1ce))](_0xb259f4,_0x5619e6),{pointGroup:_0x54a4d6}=(_0x4246b5=_0x41d045[_0x47c8aa(0x2d3)](_0x467ce4,_0x43eb63))!=null?_0x4246b5:{};if(_0x54a4d6==null||_0x54a4d6['length']===0x0)continue;this['_drawRectRange'](_0x5207fd,_0x54a4d6,_0x34cb08,_0x52c418);}else{if(!_0x5fd79){const {borderBoxPointGroup:_0x30d6ca}=_0x1996f8[_0x47c8aa(0x2d3)](_0x467ce4,_0x43eb63);if(_0x30d6ca[_0x47c8aa(0x45c)]===0x0)continue;this[_0x47c8aa(0x45e)](_0x5207fd,_0x30d6ca,_0x34cb08,_0x52c418);}}}}}['_drawAnchor'](_0x5d6f30,_0x1ea417,_0x54e091,_0x35f6a2,_0x117aeb){const _0x2833b8=_0x15b5c6,_0x51e728=this[_0x2833b8(0x2a9)](_0x1ea417),{left:_0x58f0f0,top:_0x586c99,height:_0x2c0611}=_0x51e728,_0x47af4b=this[_0x2833b8(0x371)](),_0x2cc658=Nt/_0x47af4b,_0x42eb71=new C[(_0x2833b8(0x3b1))](_e+a[_0x2833b8(0x1dd)](H),{'left':_0x58f0f0+_0x54e091-_0x2cc658,'top':_0x586c99+_0x35f6a2,'height':_0x2c0611,'width':Dt,'fill':_0x5d6f30||C[_0x2833b8(0x414)](a[_0x2833b8(0x45d)][_0x2833b8(0x22b)],0x0),'strokeWidth':_0x2cc658,'stroke':Ut,'evented':!0x0});this[_0x2833b8(0x31e)]=_0x42eb71,this[_0x2833b8(0x1e9)][_0x2833b8(0x231)](_0x42eb71,T[_0x2833b8(0x44c)]);const _0x3bf46a=new C['Rect'](_e+a[_0x2833b8(0x1dd)](H),{'left':_0x58f0f0+_0x54e091-_0x2cc658,'top':_0x586c99+_0x35f6a2-he/0x2,'height':he,'width':he,'fill':_0x5d6f30||C['getColor'](a[_0x2833b8(0x45d)][_0x2833b8(0x22b)],0x0),'strokeWidth':0x0,'stroke':_0x5d6f30||C['getColor'](a[_0x2833b8(0x45d)]['black'],0x0),'evented':!0x1});this[_0x2833b8(0x1b9)]=_0x3bf46a,this[_0x2833b8(0x1e9)]['addObject'](_0x3bf46a,T[_0x2833b8(0x44c)]);const _0x20e64f=new re(_e+a[_0x2833b8(0x1dd)](H),{'left':_0x58f0f0+_0x54e091-_0x2cc658,'top':_0x586c99+_0x35f6a2-X,'text':_0x117aeb,'color':_0x5d6f30});this['_textBubble']=_0x20e64f,this[_0x2833b8(0x1e9)]['addObject'](_0x20e64f,T['TEXT_RANGE_LAYER_INDEX']),this[_0x2833b8(0x2b5)]=!0x1;}['_handleHover'](){const _0x5144d9=_0x15b5c6,_0x15e276=this['_anchor']['onPointerEnter$'][_0x5144d9(0x28d)](()=>{this['_hover']=!0x0;}),_0x501a36=this[_0x5144d9(0x31e)][_0x5144d9(0x1bf)][_0x5144d9(0x28d)](()=>{const _0x3c6b4b=_0x5144d9;this[_0x3c6b4b(0x2d2)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x19d349=_0x3c6b4b;this[_0x19d349(0x2b5)]=!0x1;},0x7d0);});return()=>{const _0x292d4c=_0x5144d9;_0x15e276[_0x292d4c(0x268)](),_0x501a36['unsubscribe']();};}['_drawTextRange'](_0x2928ce,_0x194158,_0x342660,_0xe34014){const _0xe28a52=_0x15b5c6,_0x293243=new a[(_0xe28a52(0x401))](_0x2928ce)['setAlpha'](0.2)[_0xe28a52(0x24b)](),_0xbfd6d=new C['RegularPolygon'](Rt+a[_0xe28a52(0x1dd)](H),{'pointsGroup':_0x194158,'fill':_0x293243||C[_0xe28a52(0x414)](a[_0xe28a52(0x45d)][_0xe28a52(0x22b)],0.2),'left':_0x342660,'top':_0xe34014,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe28a52(0x2b3)][_0xe28a52(0x320)](_0xbfd6d),this[_0xe28a52(0x1e9)][_0xe28a52(0x231)](_0xbfd6d,T[_0xe28a52(0x44c)]);}[_0x15b5c6(0x2ea)](_0x2a408d,_0x1428b9,_0x4652d3,_0x1d750c){const _0x25db0b=_0x15b5c6,_0x2fcd44=new a['ColorKit'](_0x2a408d)[_0x25db0b(0x34a)](0.2)[_0x25db0b(0x24b)](),_0xb27167=new C['RegularPolygon'](bt+a[_0x25db0b(0x1dd)](H),{'pointsGroup':_0x1428b9,'fill':_0x2fcd44||C[_0x25db0b(0x414)](a[_0x25db0b(0x45d)]['black'],0.2),'left':_0x4652d3,'top':_0x1d750c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25db0b(0x2b3)][_0x25db0b(0x320)](_0xb27167),this[_0x25db0b(0x1e9)][_0x25db0b(0x231)](_0xb27167,T[_0x25db0b(0x44c)]);}[_0x15b5c6(0x2a9)](_0x3ff748){const _0xa4e7b1=_0x3ff748[0x0],_0x37023e=_0xa4e7b1[0x0],_0x235203=_0xa4e7b1[0x2],{x:_0x21bf77,y:_0x474481}=_0x37023e,{x:_0x56018f,y:_0x59d683}=_0x235203;return{'left':_0x21bf77,'top':_0x474481,'width':_0x56018f-_0x21bf77,'height':_0x59d683-_0x474481};}[_0x15b5c6(0x371)](){const _0x322b4f=_0x15b5c6,{scaleX:_0x7e457b,scaleY:_0x40db02}=this[_0x322b4f(0x1e9)][_0x322b4f(0x3bc)]();return Math[_0x322b4f(0x360)](_0x7e457b,_0x40db02);}}var Lt=Object[_0x15b5c6(0x43d)],Mt=(_0x4c8029,_0x57f753,_0x3cbe8e,_0x273717)=>{const _0x30d8cf=_0x15b5c6;for(var _0x953a61=_0x273717>0x1?void 0x0:_0x273717?Lt(_0x57f753,_0x3cbe8e):_0x57f753,_0x1cdb6b=_0x4c8029[_0x30d8cf(0x45c)]-0x1,_0x588075;_0x1cdb6b>=0x0;_0x1cdb6b--)(_0x588075=_0x4c8029[_0x1cdb6b])&&(_0x953a61=_0x588075(_0x953a61)||_0x953a61);return _0x953a61;},q=(_0x322a7d,_0x43d78c)=>(_0x18bdce,_0x522948)=>_0x43d78c(_0x18bdce,_0x522948,_0x322a7d);let Ee=class extends a[_0x15b5c6(0x30d)]{constructor(_0x32d79d,_0x489830,_0xf63f7c,_0x249cd7,_0x381529){const _0xf6a307=_0x15b5c6;super(),_(this,_0xf6a307(0x2e5),[]),_(this,_0xf6a307(0x26e),[]),(this[_0xf6a307(0x3e4)]=_0x32d79d,this['_docSkeletonManagerService']=_0x489830,this[_0xf6a307(0x3ab)]=_0xf63f7c,this[_0xf6a307(0x340)]=_0x249cd7,this[_0xf6a307(0x3e9)]=_0x381529,this[_0xf6a307(0x462)]());}[_0x15b5c6(0x462)](){const _0xdd1e8b=_0x15b5c6,_0x27ce5e=this[_0xdd1e8b(0x3e4)][_0xdd1e8b(0x29c)],_0x5a93f8=this[_0xdd1e8b(0x1ae)];this[_0xdd1e8b(0x425)](I[_0xdd1e8b(0x2f7)]([this[_0xdd1e8b(0x3ab)][_0xdd1e8b(0x1e3)](_0x27ce5e),this[_0xdd1e8b(0x3e9)][_0xdd1e8b(0x1c7)]])[_0xdd1e8b(0x24a)]($[_0xdd1e8b(0x343)](([_0x532384,_0x33be41])=>({'skeleton':_0x5a93f8[_0xdd1e8b(0x1fc)](),'cursors':[..._0x532384[_0xdd1e8b(0x1ad)]()][_0xdd1e8b(0x214)](_0x58e649=>({..._0x58e649,'color':this['_themeService'][_0xdd1e8b(0x1a5)](_0x58e649[_0xdd1e8b(0x36e)])}))})))[_0xdd1e8b(0x3fc)](_0x33440c=>{const _0x31c5af=_0xdd1e8b;if(this['_removeCollabCursors'](),_0x33440c){const {skeleton:_0x4eb1d1,cursors:_0x5efa97}=_0x33440c;this[_0x31c5af(0x3f0)](_0x4eb1d1,_0x5efa97);}})),this[_0xdd1e8b(0x1b1)](),this[_0xdd1e8b(0x3e7)]();}[_0x15b5c6(0x3f0)](_0x2bc467,_0x44c491){const _0x40eacf=_0x15b5c6,{scene:_0x3a71b1,mainComponent:_0x5ea39d}=this[_0x40eacf(0x3e4)],_0x4d19e0=_0x44c491['map'](_0x4c5e11=>new Le(_0x4c5e11,_0x3a71b1,_0x2bc467,_0x5ea39d));this[_0x40eacf(0x2e5)]=_0x4d19e0,this['_cursors']=_0x44c491;}[_0x15b5c6(0x458)](){const _0x29e5db=_0x15b5c6;this['_removeCollabCursors']();const {scene:_0x52e92e,mainComponent:_0xefbaab}=this['_context'],_0x50df88=this['_docSkeletonManagerService'][_0x29e5db(0x1fc)](),_0x12ad2d=this[_0x29e5db(0x26e)][_0x29e5db(0x343)](_0x78b075=>new Le(_0x78b075,_0x52e92e,_0x50df88,_0xefbaab));this[_0x29e5db(0x2e5)]=_0x12ad2d;}['_removeCollabCursors'](){const _0x718bfb=_0x15b5c6;this[_0x718bfb(0x2e5)][_0x718bfb(0x449)](_0x1c342b=>_0x1c342b[_0x718bfb(0x327)]()),this[_0x718bfb(0x2e5)]=[];}['_initCommandExecutedListener'](){const _0x110bfd=_0x15b5c6,_0x4b100f=[T['SetDocZoomRatioOperation']['id']];this[_0x110bfd(0x425)](this[_0x110bfd(0x340)][_0x110bfd(0x2a8)](_0x46f632=>{const _0x5b2e95=_0x110bfd;_0x4b100f[_0x5b2e95(0x1d2)](_0x46f632['id'])&&_0x46f632['params']['unitId']===this[_0x5b2e95(0x3e4)][_0x5b2e95(0x29c)]&&this[_0x5b2e95(0x458)]();}));}[_0x15b5c6(0x1b1)](){const _0x43ad20=_0x15b5c6;this[_0x43ad20(0x425)](a[_0x43ad20(0x330)](this['_context'][_0x43ad20(0x1a0)][_0x43ad20(0x23c)])[_0x43ad20(0x24a)]($['filter'](_0x2878e0=>_0x2878e0['type']===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x43ad20(0x1f9)]),$[_0x43ad20(0x2a3)](0x10))['subscribe'](()=>{const _0x5be0f6=_0x43ad20;this[_0x5be0f6(0x458)]();}));}};Ee=Mt([q(0x1,a[_0x15b5c6(0x3bb)](V[_0x15b5c6(0x41a)])),q(0x2,a[_0x15b5c6(0x3bb)](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x15b5c6(0x3bb)](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x15b5c6(0x21a)]{constructor(_0x3aa5d6,_0x36b0f){const _0x112411=_0x15b5c6;super(_0x3aa5d6,_0x36b0f),_(this,_0x112411(0x247)),_(this,_0x112411(0x23a),!0x1),_(this,_0x112411(0x1c2)),_(this,'_name',''),_(this,'_labelPosition',_0x112411(0x36b)),_(this,'_backgroundColor'),(_0x36b0f&&this[_0x112411(0x1c4)](_0x36b0f),this[_0x112411(0x3e5)][_0x112411(0x28d)](()=>this[_0x112411(0x1c4)]({'hovered':!0x0})),this[_0x112411(0x1bf)]['subscribeEvent'](()=>this[_0x112411(0x1c4)]({'hovered':!0x1})));}[_0x15b5c6(0x1c4)](_0x4c5883){const _0x25b6de=_0x15b5c6;var _0x144311,_0x4c9290,_0xc9f030,_0x13f236,_0x212d1b,_0x23b88a;this[_0x25b6de(0x247)]=(_0x144311=_0x4c5883['color'])!=null?_0x144311:this[_0x25b6de(0x247)],this[_0x25b6de(0x23a)]=(_0x4c9290=_0x4c5883['hovered'])!=null?_0x4c9290:this['_hovered'],this[_0x25b6de(0x1c2)]=(_0xc9f030=_0x4c5883[_0x25b6de(0x29d)])!=null?_0xc9f030:this[_0x25b6de(0x1c2)],this[_0x25b6de(0x31f)]=(_0x13f236=_0x4c5883['name'])!=null?_0x13f236:this['_name'],this['_labelPosition']=(_0x212d1b=_0x4c5883[_0x25b6de(0x3df)])!=null?_0x212d1b:this['_labelPosition'],this['_backgroundColor']=(_0x23b88a=_0x4c5883['backgroundColor'])!=null?_0x23b88a:this[_0x25b6de(0x41b)],this[_0x25b6de(0x263)]({'width':_0x4c5883[_0x25b6de(0x2fe)],'height':_0x4c5883['height']});}['onMouseMove'](_0x362987){const _0x12b1dc=_0x15b5c6,{row:_0x46b564,column:_0x309183}=_0x362987;if(_0x46b564>=this['_range']['startRow']&&_0x46b564<=this['_range']['endRow']&&_0x309183>=this[_0x12b1dc(0x1c2)][_0x12b1dc(0x33c)]&&_0x309183<=this[_0x12b1dc(0x1c2)][_0x12b1dc(0x1a9)]){this[_0x12b1dc(0x1c4)]({'hovered':!0x0});return;}this[_0x12b1dc(0x1c4)]({'hovered':!0x1});}[_0x15b5c6(0x3f4)](_0x10d9cf){return!0x1;}[_0x15b5c6(0x2a7)](_0x3a95cc){const _0x414b1f=_0x15b5c6;C[_0x414b1f(0x3b1)][_0x414b1f(0x313)](_0x3a95cc,{'width':this[_0x414b1f(0x2fe)],'height':this[_0x414b1f(0x2de)],'strokeWidth':Pt,'stroke':this[_0x414b1f(0x247)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x3a95cc[_0x414b1f(0x424)](),_0x3a95cc[_0x414b1f(0x245)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x414b1f(0x1bc)?0x0:-X),re['drawWith'](_0x3a95cc,{'text':this[_0x414b1f(0x31f)],'color':this[_0x414b1f(0x247)]}),_0x3a95cc[_0x414b1f(0x3f5)]());}}var wt=Object[_0x15b5c6(0x43d)],yt=(_0x19b1ef,_0x34afc0,_0x5a5cb3,_0x1ba911)=>{const _0x194d82=_0x15b5c6;for(var _0x58a10c=_0x1ba911>0x1?void 0x0:_0x1ba911?wt(_0x34afc0,_0x5a5cb3):_0x34afc0,_0x59afe8=_0x19b1ef[_0x194d82(0x45c)]-0x1,_0xa9aeae;_0x59afe8>=0x0;_0x59afe8--)(_0xa9aeae=_0x19b1ef[_0x59afe8])&&(_0x58a10c=_0xa9aeae(_0x58a10c)||_0x58a10c);return _0x58a10c;},ue=(_0xf1e2ee,_0x4c19e7)=>(_0x4a48ca,_0x50d73b)=>_0x4c19e7(_0x4a48ca,_0x50d73b,_0xf1e2ee);const $t=0x1389;let Ce=class extends a[_0x15b5c6(0x30d)]{constructor(_0x2e2755,_0x107957,_0x36b16a,_0x522a8b){const _0x37c4b4=_0x15b5c6;super(),_(this,_0x37c4b4(0x26e),new Set()),_(this,_0x37c4b4(0x1f1),null),(this[_0x37c4b4(0x3e4)]=_0x2e2755,this[_0x37c4b4(0x1c0)]=_0x107957,this[_0x37c4b4(0x3ab)]=_0x36b16a,this[_0x37c4b4(0x3e9)]=_0x522a8b,this[_0x37c4b4(0x462)]());}[_0x15b5c6(0x462)](){const _0x34a278=_0x15b5c6;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x34a278(0x24a)]($[_0x34a278(0x344)](this['dispose$']),$[_0x34a278(0x2d7)](_0x28303b=>{const _0x38527f=_0x34a278;if(_0x28303b){const _0x3d0fdd=_0x28303b[_0x38527f(0x225)];return I[_0x38527f(0x2f7)](this['_collabCursorController'][_0x38527f(0x1e3)](this[_0x38527f(0x3e4)]['unitId']),this['_themeService'][_0x38527f(0x1c7)])['pipe']($['map'](([_0x4df80c,_0x2886e1])=>{const _0x2e5d09=new Map();return _0x4df80c['forEach']((_0x5ce296,_0x536fb7)=>{const _0x20c431=_0x31d6;if(_0x5ce296[_0x20c431(0x1f5)]===_0x3d0fdd){const _0x149f71={..._0x5ce296};_0x149f71[_0x20c431(0x36e)]=this[_0x20c431(0x3e9)][_0x20c431(0x1a5)](_0x5ce296['color']),_0x2e5d09[_0x20c431(0x196)](_0x536fb7,_0x149f71);}}),{'skeleton':_0x28303b,'cursors':_0x2e5d09};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x9574e3,cursors:_0x48a515})=>{const _0x43ea56=_0x34a278;this[_0x43ea56(0x3e0)](),_0x9574e3&&this[_0x43ea56(0x3f0)](_0x9574e3,_0x48a515);}),this[_0x34a278(0x1c0)]['currentSkeleton$'][_0x34a278(0x3fc)](_0x563d16=>{const _0x5978e8=_0x34a278;if(_0x563d16==null)return;const {skeleton:_0x5ac063}=_0x563d16,{scene:_0x5b9407}=this['_context'];_0x5b9407[_0x5978e8(0x1b6)][_0x5978e8(0x28d)](a[_0x5978e8(0x2e8)](_0x4d9c5c=>{const _0x32caed=_0x5978e8;var _0x4c0d45,_0x5b13ff;const {offsetX:_0x404d0b,offsetY:_0x7d3a19}=_0x4d9c5c,{x:_0x34bd9e,y:_0x5580df}=_0x5b9407[_0x32caed(0x3ae)](C[_0x32caed(0x428)][_0x32caed(0x229)]([_0x404d0b,_0x7d3a19])),{scaleX:_0x5b5db1,scaleY:_0x26e2bb}=_0x5b9407['getAncestorScale'](),_0x4d48e5=_0x5b9407[_0x32caed(0x1d1)](C[_0x32caed(0x1a2)][_0x32caed(0x249)]),_0x422c6d=_0x5b9407[_0x32caed(0x2b9)](C[_0x32caed(0x428)][_0x32caed(0x229)]([_0x34bd9e,_0x5580df]),_0x4d48e5),_0x5061a1=_0x5ac063[_0x32caed(0x1d8)](_0x404d0b,_0x7d3a19,_0x5b5db1,_0x26e2bb,_0x422c6d);((_0x4c0d45=this[_0x32caed(0x1f1)])==null?void 0x0:_0x4c0d45[_0x32caed(0x452)])===_0x5061a1[_0x32caed(0x452)]&&((_0x5b13ff=this[_0x32caed(0x1f1)])==null?void 0x0:_0x5b13ff[_0x32caed(0x202)])===_0x5061a1[_0x32caed(0x202)]||this[_0x32caed(0x26e)][_0x32caed(0x449)](_0x59c65d=>{const _0x2535bb=_0x32caed;_0x59c65d[_0x2535bb(0x36c)](_0x5061a1);});},0x64));});}[_0x15b5c6(0x3f0)](_0x367d35,_0x5d08ae){const _0x345e72=_0x15b5c6;var _0x14c350;const _0x3dc05b=(_0x14c350=this[_0x345e72(0x1c0)]['getCurrent']())==null?void 0x0:_0x14c350['skeleton'];if(!_0x3dc05b)return;const _0x336574=this[_0x345e72(0x1da)]();if(!_0x336574)return;this[_0x345e72(0x26e)][_0x345e72(0x449)](_0x5f261c=>{const _0x4df14a=_0x345e72;_0x5f261c[_0x4df14a(0x20b)]();});const {scene:_0x49b696}=_0x336574,_0x11b21a=xt(Array['from'](_0x5d08ae[_0x345e72(0x1ad)]()))[_0x345e72(0x343)](_0x364a15=>{const _0x562d76=_0x345e72,{color:_0x18f479,range:_0x2637cf,name:_0x17439b,selection:_0x1a2806,sheetID:_0x4af727}=_0x364a15,{startColumn:_0x1add9c,startRow:_0x54ef59,endColumn:_0x15ebee,endRow:_0x109910}=_0x2637cf,_0xd82f9=J[_0x562d76(0x367)](_0x54ef59,_0x1add9c,_0x49b696,_0x3dc05b),_0x5f3990=J['getCoordByCell'](_0x109910,_0x15ebee,_0x49b696,_0x3dc05b),{columnHeaderHeightAndMarginTop:_0x37a770}=_0x3dc05b,{startX:_0xd1c6a1,startY:_0x1f9dc4}=_0xd82f9,{endX:_0x45f2a9,endY:_0x4cb9ce}=_0x5f3990,_0x7169a=_0x45f2a9-_0xd1c6a1,_0x2b9d3c=_0x4cb9ce-_0x1f9dc4,_0x1a8a41={'labelPosition':_0x1f9dc4-_0x37a770>=X?_0x562d76(0x36b):_0x562d76(0x1bc),'sheetID':_0x4af727,'range':_0x2637cf,'color':_0x18f479,'name':_0x17439b,'selection':_0x1a2806,'left':_0xd1c6a1,'top':_0x1f9dc4,'width':_0x7169a,'height':_0x2b9d3c,'evented':!0x1,'zIndex':$t};return new je(_0x17439b,_0x1a8a41);});_0x49b696['addObjects'](_0x11b21a,At),this[_0x345e72(0x26e)]=new Set(_0x11b21a);}['_removeCollabCursors'](){const _0x3cc5ef=_0x15b5c6;var _0x1c4432;(_0x1c4432=this[_0x3cc5ef(0x26e)])==null||_0x1c4432[_0x3cc5ef(0x449)](_0x41fdaf=>_0x41fdaf[_0x3cc5ef(0x327)]());}['_getSheetObject'](){const _0x22c107=_0x15b5c6;return J[_0x22c107(0x30e)](this[_0x22c107(0x3e4)]['unit'],this[_0x22c107(0x3e4)]);}};Ce=yt([ue(0x1,a[_0x15b5c6(0x3bb)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x15b5c6(0x3bb)](F)),ue(0x3,a[_0x15b5c6(0x3bb)](a[_0x15b5c6(0x349)]))],Ce);function xt(_0x4930aa){const _0x1a8315=_0x15b5c6,_0x372ae1=new Map();return _0x4930aa[_0x1a8315(0x449)](_0x19aa47=>{const _0x4e6e93=_0x1a8315;if(_0x372ae1[_0x4e6e93(0x1de)](_0x19aa47[_0x4e6e93(0x397)])){const _0x2f5300=_0x372ae1[_0x4e6e93(0x2c9)](_0x19aa47['selection']);_0x2f5300[_0x4e6e93(0x400)]+=',\x20'+_0x19aa47[_0x4e6e93(0x400)];}else _0x372ae1[_0x4e6e93(0x196)](_0x19aa47[_0x4e6e93(0x397)],_0x19aa47);}),Array[_0x1a8315(0x38d)](_0x372ae1['values']());}var Bt=Object[_0x15b5c6(0x43d)],Ft=(_0x4ad450,_0x534189,_0xff0639,_0x220e5a)=>{for(var _0x5d75ea=_0x220e5a>0x1?void 0x0:_0x220e5a?Bt(_0x534189,_0xff0639):_0x534189,_0x21a9e1=_0x4ad450['length']-0x1,_0x3c7ab8;_0x21a9e1>=0x0;_0x21a9e1--)(_0x3c7ab8=_0x4ad450[_0x21a9e1])&&(_0x5d75ea=_0x3c7ab8(_0x5d75ea)||_0x5d75ea);return _0x5d75ea;},y=(_0x49d43e,_0x18bfdd)=>(_0x46ae90,_0x5acb48)=>_0x18bfdd(_0x46ae90,_0x5acb48,_0x49d43e);let Z=class extends a[_0x15b5c6(0x44e)]{constructor(_0x380eef,_0x47ffe9,_0x3dc0b6,_0x2f8b52,_0x25478f,_0xbe166f){const _0x530c08=_0x15b5c6;super(),this['_beforeCloseService']=_0x380eef,this['_localCacheService']=_0x47ffe9,this['_collaborationUIEventService']=_0x3dc0b6,this[_0x530c08(0x21f)]=_0x2f8b52,this[_0x530c08(0x2bb)]=_0x25478f,this[_0x530c08(0x21e)]=_0xbe166f,this[_0x530c08(0x408)](),this['_initEvent']();}[_0x15b5c6(0x408)](){const _0x1b4e5e=_0x15b5c6;this['disposeWithMe'](this[_0x1b4e5e(0x27f)][_0x1b4e5e(0x420)](()=>{const _0x373da6=_0x1b4e5e;if(this['_localCacheService']['saveTaskMap'][_0x373da6(0x332)])return this[_0x373da6(0x21e)]['t'](_0x373da6(0x36d));}));}['_initEvent'](){const _0x54cf90=_0x15b5c6;this['disposeWithMe'](this[_0x54cf90(0x3d5)][_0x54cf90(0x2d0)]['subscribe'](_0x3179f1=>{const _0x488497=_0x54cf90;_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x331)]&&this[_0x488497(0x21f)][_0x488497(0x37b)]({'type':p[_0x488497(0x292)][_0x488497(0x2c6)],'content':this[_0x488497(0x21e)]['t'](_0x488497(0x390))}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x3d1)]&&this[_0x488497(0x21f)]['show']({'type':p[_0x488497(0x292)][_0x488497(0x2c6)],'content':this[_0x488497(0x21e)]['t'](_0x488497(0x334))}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x374)]&&this[_0x488497(0x2bb)]['show']({'title':this[_0x488497(0x21e)]['t'](_0x488497(0x1bd)),'content':this['_localeService']['t'](_0x488497(0x2ed)),'type':_0x488497(0x3f3),'duration':0x0}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x271)]&&this[_0x488497(0x21f)][_0x488497(0x37b)]({'type':p[_0x488497(0x292)][_0x488497(0x2f4)],'content':this[_0x488497(0x21e)]['t'](_0x488497(0x334))+'('+_0x3179f1[_0x488497(0x41d)]+')'}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x1a6)]&&this[_0x488497(0x21f)][_0x488497(0x37b)]({'type':p[_0x488497(0x292)]['Warning'],'content':this['_localeService']['t'](_0x3179f1[_0x488497(0x41d)]||'')}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x354)]&&this['_messageService'][_0x488497(0x37b)]({'type':p['MessageType']['Warning'],'content':this[_0x488497(0x21e)]['t']('session.will-retry')}),_0x3179f1['id']===u['CollaborationUIEventId'][_0x488497(0x3a6)]&&this[_0x488497(0x21f)]['show']({'type':p[_0x488497(0x292)][_0x488497(0x2f4)],'content':this[_0x488497(0x21e)]['t'](_0x488497(0x3fb))}),_0x3179f1['id']===u[_0x488497(0x3e3)][_0x488497(0x27b)]&&this[_0x488497(0x21f)][_0x488497(0x37b)]({'type':p[_0x488497(0x292)][_0x488497(0x2f4)],'content':this['_localeService']['t'](_0x488497(0x275))});}));}};Z=Ft([y(0x0,O[_0x15b5c6(0x267)]),y(0x1,u[_0x15b5c6(0x3ba)]),y(0x2,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x212)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x15b5c6(0x3bb)](a[_0x15b5c6(0x376)]))],Z);var jt=Object[_0x15b5c6(0x43d)],kt=(_0x1a1662,_0x153466,_0x560e8c,_0x14095b)=>{const _0x4f4337=_0x15b5c6;for(var _0x5b3f23=_0x14095b>0x1?void 0x0:_0x14095b?jt(_0x153466,_0x560e8c):_0x153466,_0x4b88f0=_0x1a1662[_0x4f4337(0x45c)]-0x1,_0x59b52d;_0x4b88f0>=0x0;_0x4b88f0--)(_0x59b52d=_0x1a1662[_0x4b88f0])&&(_0x5b3f23=_0x59b52d(_0x5b3f23)||_0x5b3f23);return _0x5b3f23;},z=(_0x3c362a,_0x229788)=>(_0x12d3f6,_0x245938)=>_0x229788(_0x12d3f6,_0x245938,_0x3c362a);let Q=class extends a[_0x15b5c6(0x44e)]{constructor(_0x41498f,_0xe2d40e,_0x444a9f,_0x5f55a8){const _0x1a9ff8=_0x15b5c6;super(),_(this,_0x1a9ff8(0x435)),(this[_0x1a9ff8(0x201)]=_0x41498f,this[_0x1a9ff8(0x3b4)]=_0xe2d40e,this[_0x1a9ff8(0x1d5)]=_0x444a9f,this[_0x1a9ff8(0x448)]=_0x5f55a8,this[_0x1a9ff8(0x462)]());}[_0x15b5c6(0x462)](){const _0x5acad9=_0x15b5c6;this[_0x5acad9(0x2b4)](),this[_0x5acad9(0x230)](),this['_monkeyPatchLogService'](),this[_0x5acad9(0x436)]();}[_0x15b5c6(0x436)](){const _0x1f3269=_0x15b5c6;this[_0x1f3269(0x425)](this[_0x1f3269(0x448)][_0x1f3269(0x300)]['subscribe'](_0x2586ad=>{const _0x21344d=_0x1f3269;this[_0x21344d(0x435)]=_0x2586ad==null?void 0x0:_0x2586ad[_0x21344d(0x3ed)];}));}[_0x15b5c6(0x2b4)](){const _0x485feb=_0x15b5c6,_0x50a1b7=_0x1ffbaa=>{const _0x4b212e=_0x31d6;var _0x378058;this[_0x4b212e(0x3ca)](_0x4b212e(0x3f3),'[Window\x20Error]:\x20'+_0x1ffbaa['message']+_0x4b212e(0x3b5)+_0x1ffbaa[_0x4b212e(0x460)]+':'+_0x1ffbaa[_0x4b212e(0x31a)]+':'+_0x1ffbaa['colno']+'\x0a'+(((_0x378058=_0x1ffbaa[_0x4b212e(0x3f3)])==null?void 0x0:_0x378058[_0x4b212e(0x35a)])||''));};window[_0x485feb(0x211)](_0x485feb(0x3f3),_0x50a1b7),this['disposeWithMe'](()=>{const _0x1d37a9=_0x485feb;window[_0x1d37a9(0x3b9)](_0x1d37a9(0x3f3),_0x50a1b7);});}[_0x15b5c6(0x230)](){const _0x322900=_0x15b5c6,_0x320b48=_0x28d87d=>{const _0x22097f=_0x31d6;this[_0x22097f(0x3ca)]('error',_0x22097f(0x30b)+_0x28d87d['reason']);};window[_0x322900(0x211)](_0x322900(0x29f),_0x320b48),this[_0x322900(0x425)](()=>{const _0x5db047=_0x322900;window[_0x5db047(0x3b9)](_0x5db047(0x29f),_0x320b48);});}[_0x15b5c6(0x206)](){const _0x1d9c5a=_0x15b5c6,_0x288029=this[_0x1d9c5a(0x1d5)][_0x1d9c5a(0x3f3)][_0x1d9c5a(0x322)](this[_0x1d9c5a(0x1d5)]);this['_logService'][_0x1d9c5a(0x3f3)]=(..._0x40f93d)=>{const _0x47e332=_0x1d9c5a,_0x41de9b=_0x40f93d[_0x47e332(0x343)](_0x130091=>_0x130091 instanceof Error?_0x130091[_0x47e332(0x22a)]+'\x0a'+_0x130091[_0x47e332(0x35a)]:String(_0x130091))[_0x47e332(0x3dd)]('\x20');this['_uploadLog'](_0x47e332(0x3f3),_0x47e332(0x39d)+_0x41de9b),_0x288029(..._0x40f93d);},this['disposeWithMe'](()=>{const _0x5528d2=_0x1d9c5a;this[_0x5528d2(0x1d5)][_0x5528d2(0x3f3)]=_0x288029;});}['_uploadLog'](_0x29c9f5,_0x4ef14b){const _0x178cc7=_0x15b5c6;try{const _0x2f6bea={'userId':this[_0x178cc7(0x435)],'logLabel':_0x29c9f5,'content':_0x4ef14b};this[_0x178cc7(0x3b4)]['post'](_0x178cc7(0x39f),{'body':_0x2f6bea})[_0x178cc7(0x195)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x15b5c6(0x3bb)](a['Injector'])),z(0x1,a[_0x15b5c6(0x3bb)](x[_0x15b5c6(0x403)])),z(0x2,a[_0x15b5c6(0x434)]),z(0x3,a[_0x15b5c6(0x3bb)](u[_0x15b5c6(0x38c)]))],Q);const Yt=_0x15b5c6(0x2bc),Me={};var Ht=Object[_0x15b5c6(0x43d)],Wt=(_0x4d59de,_0x426218,_0x248f4d,_0x3f0395)=>{const _0x32cbf9=_0x15b5c6;for(var _0x1dfd23=_0x3f0395>0x1?void 0x0:_0x3f0395?Ht(_0x426218,_0x248f4d):_0x426218,_0x2da76c=_0x4d59de[_0x32cbf9(0x45c)]-0x1,_0x3bf56f;_0x2da76c>=0x0;_0x2da76c--)(_0x3bf56f=_0x4d59de[_0x2da76c])&&(_0x1dfd23=_0x3bf56f(_0x1dfd23)||_0x1dfd23);return _0x1dfd23;},Ae=(_0x4c253b,_0x553e43)=>(_0x2abb81,_0x5f4b37)=>_0x553e43(_0x2abb81,_0x5f4b37,_0x4c253b);function _0x31d6(_0x339782,_0x5062cf){_0x339782=_0x339782-0x195;const _0x2c5675=_0x2c56();let _0x31d685=_0x2c5675[_0x339782];return _0x31d685;}let ee=class{constructor(_0x2586ae,_0x1caac0){const _0x5996fc=_0x15b5c6;this[_0x5996fc(0x1ea)]=_0x2586ae,this['_renderManagerService']=_0x1caac0;}[_0x15b5c6(0x1e1)](_0x51a37f){const _0x5d7530=_0x15b5c6;this['_transformUndoRedoStack'](_0x51a37f),this[_0x5d7530(0x2cd)](_0x51a37f);}[_0x15b5c6(0x384)](_0x4e0546){const _0x5d821a=_0x15b5c6,{unitID:_0x3f7e06}=_0x4e0546,_0x5f5637=this[_0x5d821a(0x280)][_0x5d821a(0x38b)](_0x3f7e06)[_0x5d821a(0x32a)](T[_0x5d821a(0x336)]),{redoCache:_0xb083ff}=_0x5f5637[_0x5d821a(0x286)]();if(_0xb083ff[_0x5d821a(0x45c)]===0x0)return _0x4e0546;let _0x417e5a=a[_0x5d821a(0x396)][_0x5d821a(0x289)](_0x4e0546[_0x5d821a(0x415)][0x0]);for(let _0x500047=0x0;_0x500047<_0xb083ff[_0x5d821a(0x45c)];_0x500047++){const _0x421c53={'id':'doc.mutation.rich-text-editing','params':{..._0xb083ff[_0x500047]}},_0x553fb6=this[_0x5d821a(0x1ea)][_0x5d821a(0x2f6)](_0x417e5a,_0x421c53,!0x1);if(g['isTransformMutationFailure'](_0x553fb6))throw _0x553fb6[_0x5d821a(0x3f3)];_0x417e5a=_0x553fb6[_0x5d821a(0x377)];}return{...a[_0x5d821a(0x396)][_0x5d821a(0x289)](_0x4e0546),'mutations':[_0x417e5a]};}[_0x15b5c6(0x348)](_0x20b026){const _0x2bfd74=_0x15b5c6,{unitID:_0x13cf99}=_0x20b026,_0x36361c=this[_0x2bfd74(0x280)][_0x2bfd74(0x38b)](_0x13cf99)[_0x2bfd74(0x32a)](T[_0x2bfd74(0x336)]),{undoCache:_0x1f6eaa,redoCache:_0x1de6e8}=_0x36361c[_0x2bfd74(0x286)]();if(_0x1f6eaa[_0x2bfd74(0x45c)]===0x0||_0x1de6e8['length']===0x0)return;const _0x1498ce=[],_0x47aa5e=[];let _0x3930e5=a[_0x2bfd74(0x396)][_0x2bfd74(0x289)](_0x20b026[_0x2bfd74(0x415)][0x0]),_0x26ecb2=a[_0x2bfd74(0x396)][_0x2bfd74(0x289)](_0x20b026[_0x2bfd74(0x415)][0x0]);for(let _0x3bd9ef=_0x1f6eaa[_0x2bfd74(0x45c)]-0x1;_0x3bd9ef>=0x0;_0x3bd9ef--){const _0x125952={'id':_0x2bfd74(0x240),'params':{..._0x1f6eaa[_0x3bd9ef]}},_0x2c016b={'id':_0x2bfd74(0x240),'params':{..._0x1de6e8[_0x3bd9ef]}},_0x52ca5f=this[_0x2bfd74(0x1ea)][_0x2bfd74(0x2f6)](_0x3930e5,_0x125952,!0x1),_0xba129d=this[_0x2bfd74(0x1ea)]['transformMutation'](_0x26ecb2,_0x2c016b,!0x1);if(g[_0x2bfd74(0x3a4)](_0x52ca5f))throw _0x52ca5f[_0x2bfd74(0x3f3)];if(g[_0x2bfd74(0x3a4)](_0xba129d))throw _0xba129d[_0x2bfd74(0x3f3)];_0x1498ce['unshift'](_0x52ca5f[_0x2bfd74(0x2a6)][_0x2bfd74(0x293)]),_0x47aa5e[_0x2bfd74(0x32e)](_0xba129d[_0x2bfd74(0x2a6)][_0x2bfd74(0x293)]),_0x3930e5=_0x52ca5f[_0x2bfd74(0x377)],_0x26ecb2=_0xba129d[_0x2bfd74(0x377)];}_0x36361c['setUndoRedoMutationParamsCache']({'undoCache':_0x1498ce,'redoCache':_0x47aa5e});}['_transformPreviousActiveRange'](_0x2515f8){const _0x594af0=_0x15b5c6,{unitID:_0x5c3ce0}=_0x2515f8,_0x5e6cac=this[_0x594af0(0x280)]['getRenderById'](_0x5c3ce0)[_0x594af0(0x32a)](T[_0x594af0(0x336)]),_0x5c0cbc=_0x5e6cac['getActiveRange']();if(_0x5c0cbc==null)return;const _0x4173fa=[{'id':_0x594af0(0x240),'params':{'unitId':_0x2515f8['unitID'],'actions':null,'textRanges':[_0x5c0cbc]}}],_0x51274b=this[_0x594af0(0x1ea)][_0x594af0(0x2e9)](_0x2515f8,_0x4173fa);if(!g[_0x594af0(0x362)](_0x51274b))throw _0x51274b[_0x594af0(0x3f3)];const _0x5c5933=_0x51274b[_0x594af0(0x2a6)][0x0]['params'][_0x594af0(0x30f)];Array['isArray'](_0x5c5933)&&_0x5c5933['length']&&_0x5e6cac[_0x594af0(0x33b)](_0x5c5933[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x15b5c6(0x1e7)])],ee);var Vt=Object[_0x15b5c6(0x43d)],Gt=(_0x23aa58,_0x221996,_0x1cbf6e,_0xb083ba)=>{const _0x5a422b=_0x15b5c6;for(var _0x1daf34=_0xb083ba>0x1?void 0x0:_0xb083ba?Vt(_0x221996,_0x1cbf6e):_0x221996,_0x29fb99=_0x23aa58[_0x5a422b(0x45c)]-0x1,_0x56f78d;_0x29fb99>=0x0;_0x29fb99--)(_0x56f78d=_0x23aa58[_0x29fb99])&&(_0x1daf34=_0x56f78d(_0x1daf34)||_0x1daf34);return _0x1daf34;},Ie=(_0x5e4036,_0x3bc665)=>(_0x53a5e2,_0x61e328)=>_0x3bc665(_0x53a5e2,_0x61e328,_0x5e4036);let te=class{constructor(_0x2e3d1a,_0x15a74e,_0x399b7f){const _0x3a5595=_0x15b5c6;this[_0x3a5595(0x201)]=_0x2e3d1a,this[_0x3a5595(0x1ea)]=_0x15a74e,this['_docStateChangeManagerService']=_0x399b7f;}['transformStateCache'](_0x5dc025){const _0x585301=_0x15b5c6;this[_0x585301(0x19b)](_0x5dc025);}['transformRemoteChangeset'](_0x58b8ae){const _0x39f361=_0x15b5c6,{unitID:_0x2a7453}=_0x58b8ae,{collaboration:_0x3ee22b}=this[_0x39f361(0x2d1)][_0x39f361(0x27c)](_0x2a7453);if(_0x3ee22b[_0x39f361(0x45c)]===0x0)return _0x58b8ae;let _0x5e17f5=a[_0x39f361(0x396)]['deepClone'](_0x58b8ae[_0x39f361(0x415)][0x0]);for(let _0xf88f92=0x0;_0xf88f92<_0x3ee22b['length'];_0xf88f92++){const _0xa07782={'id':_0x39f361(0x240),'params':{'unitId':_0x3ee22b[_0xf88f92][_0x39f361(0x29c)],..._0x3ee22b[_0xf88f92][_0x39f361(0x32f)]}},_0x2e9b2c=this[_0x39f361(0x1ea)][_0x39f361(0x2f6)](_0x5e17f5,_0xa07782,!0x1);if(g[_0x39f361(0x3a4)](_0x2e9b2c))throw _0x2e9b2c[_0x39f361(0x3f3)];_0x5e17f5=_0x2e9b2c[_0x39f361(0x377)];}return{...a['Tools'][_0x39f361(0x289)](_0x58b8ae),'mutations':[_0x5e17f5]};}[_0x15b5c6(0x19b)](_0x2fbb14){const _0x42811e=_0x15b5c6,{unitID:_0x44cd5d}=_0x2fbb14,{history:_0x9b021a,collaboration:_0x2ce0ba}=this[_0x42811e(0x2d1)]['getStateCache'](_0x44cd5d);if(_0x9b021a[_0x42811e(0x45c)]===0x0&&_0x2ce0ba[_0x42811e(0x45c)]===0x0)return;const _0x14bad3=[],_0x430e24=[];let _0x5bcf7d=a[_0x42811e(0x396)]['deepClone'](_0x2fbb14['mutations'][0x0]),_0x1ca309=a['Tools']['deepClone'](_0x2fbb14['mutations'][0x0]);for(let _0x1dbb13=_0x9b021a[_0x42811e(0x45c)]-0x1;_0x1dbb13>=0x0;_0x1dbb13--){const _0x5b3a15={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x9b021a[_0x1dbb13][_0x42811e(0x29c)],..._0x9b021a[_0x1dbb13]['undoState']}},_0x1e1b35={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x9b021a[_0x1dbb13][_0x42811e(0x29c)],..._0x9b021a[_0x1dbb13]['redoState']}},_0x354c5d=this[_0x42811e(0x1ea)][_0x42811e(0x2f6)](_0x5bcf7d,_0x5b3a15,!0x1),_0x5d591d=this['_transformService'][_0x42811e(0x2f6)](_0x1ca309,_0x1e1b35,!0x1);if(g[_0x42811e(0x3a4)](_0x354c5d))throw _0x354c5d[_0x42811e(0x3f3)];if(g[_0x42811e(0x3a4)](_0x5d591d))throw _0x5d591d[_0x42811e(0x3f3)];_0x14bad3['unshift']({..._0x9b021a[_0x1dbb13],'undoState':_0x354c5d[_0x42811e(0x2a6)]['params'],'redoState':_0x5d591d[_0x42811e(0x2a6)]['params']}),_0x5bcf7d=_0x354c5d['m1Prime'],_0x1ca309=_0x5d591d[_0x42811e(0x377)];}_0x5bcf7d=a['Tools'][_0x42811e(0x289)](_0x2fbb14[_0x42811e(0x415)][0x0]),_0x1ca309=a[_0x42811e(0x396)][_0x42811e(0x289)](_0x2fbb14[_0x42811e(0x415)][0x0]);for(let _0x4667e1=_0x2ce0ba[_0x42811e(0x45c)]-0x1;_0x4667e1>=0x0;_0x4667e1--){const _0x36e558={'id':_0x42811e(0x240),'params':{'unitId':_0x2ce0ba[_0x4667e1][_0x42811e(0x29c)],..._0x2ce0ba[_0x4667e1]['undoState']}},_0x4e8604={'id':_0x42811e(0x240),'params':{'unitId':_0x2ce0ba[_0x4667e1][_0x42811e(0x29c)],..._0x2ce0ba[_0x4667e1]['redoState']}},_0x22c5ca=this[_0x42811e(0x1ea)][_0x42811e(0x2f6)](_0x5bcf7d,_0x36e558,!0x1),_0x3e914f=this[_0x42811e(0x1ea)][_0x42811e(0x2f6)](_0x1ca309,_0x4e8604,!0x1);if(g[_0x42811e(0x3a4)](_0x22c5ca))throw _0x22c5ca[_0x42811e(0x3f3)];if(g['isTransformMutationFailure'](_0x3e914f))throw _0x3e914f['error'];_0x430e24[_0x42811e(0x32e)]({..._0x2ce0ba[_0x4667e1],'undoState':_0x22c5ca[_0x42811e(0x2a6)][_0x42811e(0x293)],'redoState':_0x3e914f[_0x42811e(0x2a6)][_0x42811e(0x293)]}),_0x5bcf7d=_0x22c5ca['m1Prime'],_0x1ca309=_0x3e914f['m1Prime'];}this[_0x42811e(0x2d1)][_0x42811e(0x252)](_0x44cd5d,{'history':_0x14bad3,'collaboration':_0x430e24});}};te=Gt([Ie(0x0,a['Inject'](a[_0x15b5c6(0x1c8)])),Ie(0x1,g[_0x15b5c6(0x3e2)]),Ie(0x2,a[_0x15b5c6(0x3bb)](T['DocStateChangeManagerService']))],te);var Xt=Object[_0x15b5c6(0x43d)],Kt=(_0x4c0568,_0xa43728,_0x13a254,_0x3ebfa4)=>{const _0x26cd40=_0x15b5c6;for(var _0x44559c=_0x3ebfa4>0x1?void 0x0:_0x3ebfa4?Xt(_0xa43728,_0x13a254):_0xa43728,_0x384787=_0x4c0568[_0x26cd40(0x45c)]-0x1,_0x1a4168;_0x384787>=0x0;_0x384787--)(_0x1a4168=_0x4c0568[_0x384787])&&(_0x44559c=_0x1a4168(_0x44559c)||_0x44559c);return _0x44559c;},Pe=(_0x362b97,_0x4d219c)=>(_0x15df47,_0x3a8076)=>_0x4d219c(_0x15df47,_0x3a8076,_0x362b97);let se=class{constructor(_0x47f918,_0x556b62){const _0x20f3ff=_0x15b5c6;this[_0x20f3ff(0x201)]=_0x47f918,this[_0x20f3ff(0x1ea)]=_0x556b62;}[_0x15b5c6(0x42c)](_0x55dec0){const _0x121c93=_0x15b5c6;var _0x16e1c5;const _0x43609e=this[_0x121c93(0x201)]['get'](V['DocSelectionManagerService']),_0x26f791=(_0x16e1c5=_0x43609e[_0x121c93(0x3c0)]())!=null?_0x16e1c5:[];if(_0x26f791[_0x121c93(0x45c)]===0x0)return;const _0x10c0ad=_0x55dec0[_0x121c93(0x1d4)],_0x463009=[{'id':_0x121c93(0x240),'params':{'unitId':_0x10c0ad,'actions':null,'textRanges':_0x26f791}}],_0x2ad0ca=this['_transformService']['transformMutationsWithChangeset'](_0x55dec0,_0x463009);if(!g[_0x121c93(0x362)](_0x2ad0ca))throw _0x2ad0ca[_0x121c93(0x3f3)];const _0x3b483e=_0x2ad0ca[_0x121c93(0x2a6)][0x0][_0x121c93(0x293)][_0x121c93(0x30f)];Array[_0x121c93(0x3a9)](_0x3b483e)&&_0x3b483e['length']&&_0x43609e[_0x121c93(0x44b)](_0x3b483e,{'unitId':_0x10c0ad,'subUnitId':_0x10c0ad},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x15b5c6(0x1c8)])),Pe(0x1,g[_0x15b5c6(0x3e2)])],se);var qt=Object[_0x15b5c6(0x43d)],zt=(_0x233b80,_0xa35027,_0x53f99e,_0x1cc0a2)=>{const _0x24bd1d=_0x15b5c6;for(var _0x253506=_0x1cc0a2>0x1?void 0x0:_0x1cc0a2?qt(_0xa35027,_0x53f99e):_0xa35027,_0x4879d6=_0x233b80[_0x24bd1d(0x45c)]-0x1,_0x3dc2b1;_0x4879d6>=0x0;_0x4879d6--)(_0x3dc2b1=_0x233b80[_0x4879d6])&&(_0x253506=_0x3dc2b1(_0x253506)||_0x253506);return _0x253506;},N=(_0x29f32d,_0x9f9c97)=>(_0x466f8e,_0xcfb1df)=>_0x9f9c97(_0x466f8e,_0xcfb1df,_0x29f32d);let ie=class extends a[_0x15b5c6(0x44e)]{constructor(_0x535ffa,_0x102925,_0x50953a,_0xdb17f,_0x567963,_0x562423,_0x5754b0,_0x328e58){const _0x11cb12=_0x15b5c6;super(),_(this,'_status$',new I[(_0x11cb12(0x433))](u[_0x11cb12(0x364)][_0x11cb12(0x437)])),(this[_0x11cb12(0x2d1)]=_0x535ffa,this[_0x11cb12(0x2ad)]=_0x102925,this[_0x11cb12(0x359)]=_0x50953a,this[_0x11cb12(0x41c)]=_0xdb17f,this[_0x11cb12(0x2e4)]=_0x567963,this['_docSyncEditingCollabCursorService']=_0x562423,this['_messageService']=_0x5754b0,this[_0x11cb12(0x21e)]=_0x328e58,this[_0x11cb12(0x296)]());}['_initEntityListener'](){const _0x12e8a1=_0x15b5c6;this[_0x12e8a1(0x425)](this[_0x12e8a1(0x2ad)]['entityInit$'][_0x12e8a1(0x3fc)](_0x87d6c6=>{const _0xafd880=_0x12e8a1,_0x349176=this[_0xafd880(0x2d1)][_0xafd880(0x3ea)][_0xafd880(0x3fc)](_0x5b84d5=>{const _0xaceb0e=_0xafd880;if(_0x5b84d5==null)return;const {unitId:_0x3e1e13,redoState:_0xf52de4,commandId:_0x57f02a}=_0x5b84d5;if(_0x3e1e13!==_0x87d6c6[_0xaceb0e(0x1d4)])return;const _0x1bbf2c={'id':_0x57f02a,'type':a[_0xaceb0e(0x378)]['MUTATION'],'params':{'unitId':_0x3e1e13,'actions':_0xf52de4['actions'],'textRanges':null}};_0x87d6c6[_0xaceb0e(0x430)](_0x1bbf2c);});if(_0x87d6c6[_0xafd880(0x425)](_0x349176),_0x87d6c6 instanceof u[_0xafd880(0x222)]){const _0x26ce20={'onTransformIME':_0x35654a=>this[_0xafd880(0x359)]['transformIMECache'](_0x35654a),'onTransformState':_0x3b40b8=>this[_0xafd880(0x41c)][_0xafd880(0x3f7)](_0x3b40b8),'onTransformSelections':_0xb69ec5=>this['_docTransformSelectionsService'][_0xafd880(0x42c)](_0xb69ec5),'onSyncEditingCollabCursor':_0x43abe0=>this['_docSyncEditingCollabCursorService'][_0xafd880(0x1b4)](_0x43abe0),'onTransformRemoteChangesetByIMECache':_0x53e284=>this[_0xafd880(0x359)][_0xafd880(0x384)](_0x53e284),'onTransformRemoteChangesetByStateCache':_0x31ae96=>this[_0xafd880(0x41c)][_0xafd880(0x384)](_0x31ae96)};_0x87d6c6[_0xafd880(0x2b1)](_0x26ce20);}}));}};ie=zt([N(0x0,a[_0x15b5c6(0x3bb)](T[_0x15b5c6(0x24e)])),N(0x1,a['Inject'](u[_0x15b5c6(0x3af)])),N(0x2,a[_0x15b5c6(0x3bb)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x15b5c6(0x3bb)](se)),N(0x5,a[_0x15b5c6(0x3bb)](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x15b5c6(0x3bb)](a[_0x15b5c6(0x376)]))],ie);var G=(_0x1afcba=>(_0x1afcba[_0x1afcba[_0x15b5c6(0x30c)]=0x0]=_0x15b5c6(0x30c),_0x1afcba[_0x1afcba['OK']=0x1]='OK',_0x1afcba[_0x1afcba['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x1afcba[_0x1afcba[_0x15b5c6(0x374)]=0x3]=_0x15b5c6(0x374),_0x1afcba[_0x1afcba[_0x15b5c6(0x451)]=0x4]=_0x15b5c6(0x451),_0x1afcba[_0x1afcba[_0x15b5c6(0x426)]=0x5]=_0x15b5c6(0x426),_0x1afcba[_0x1afcba[_0x15b5c6(0x23e)]=0x6]='ALREADY_EXISTS',_0x1afcba[_0x1afcba[_0x15b5c6(0x232)]=0x7]='INVALID_ARGUMENT',_0x1afcba[_0x1afcba[_0x15b5c6(0x26d)]=0x8]='TOO_MANY_REQUESTS',_0x1afcba[_0x1afcba['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x1afcba[_0x1afcba[_0x15b5c6(0x39c)]=0xa]=_0x15b5c6(0x39c),_0x1afcba[_0x1afcba[_0x15b5c6(0x20d)]=0xb]=_0x15b5c6(0x20d),_0x1afcba[_0x1afcba[_0x15b5c6(0x1ac)]=0xc]=_0x15b5c6(0x1ac),_0x1afcba[_0x1afcba[_0x15b5c6(0x31d)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x1afcba[_0x1afcba[_0x15b5c6(0x416)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x1afcba[_0x1afcba[_0x15b5c6(0x43b)]=0xf]=_0x15b5c6(0x43b),_0x1afcba[_0x1afcba[_0x15b5c6(0x3c2)]=0x10]=_0x15b5c6(0x3c2),_0x1afcba[_0x1afcba[_0x15b5c6(0x3f1)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x1afcba[_0x1afcba[_0x15b5c6(0x25b)]=0x65]=_0x15b5c6(0x25b),_0x1afcba[_0x1afcba[_0x15b5c6(0x3c4)]=0xc9]=_0x15b5c6(0x3c4),_0x1afcba[_0x1afcba[_0x15b5c6(0x315)]=0xca]=_0x15b5c6(0x315),_0x1afcba[_0x1afcba[_0x15b5c6(0x457)]=0x1389]=_0x15b5c6(0x457),_0x1afcba[_0x1afcba['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x15b5c6(0x3d0),_0x1afcba[_0x1afcba['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1afcba[_0x1afcba['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x15b5c6(0x259),_0x1afcba[_0x1afcba[_0x15b5c6(0x417)]=0x1b59]='APPLY_REJECT',_0x1afcba[_0x1afcba[_0x15b5c6(0x2e1)]=0x1b5a]=_0x15b5c6(0x2e1),_0x1afcba[_0x1afcba[_0x15b5c6(0x3cd)]=0x1b5b]=_0x15b5c6(0x3cd),_0x1afcba[_0x1afcba['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x15b5c6(0x24c),_0x1afcba[_0x1afcba[_0x15b5c6(0x386)]=0x1b5d]=_0x15b5c6(0x386),_0x1afcba[_0x1afcba[_0x15b5c6(0x1d6)]=0x1f41]=_0x15b5c6(0x1d6),_0x1afcba[_0x1afcba[_0x15b5c6(0x379)]=0x2329]=_0x15b5c6(0x379),_0x1afcba[_0x1afcba[_0x15b5c6(0x290)]=0x232a]=_0x15b5c6(0x290),_0x1afcba[_0x1afcba[_0x15b5c6(0x221)]=0x232b]=_0x15b5c6(0x221),_0x1afcba[_0x1afcba[_0x15b5c6(0x459)]=0x232c]=_0x15b5c6(0x459),_0x1afcba[_0x1afcba[_0x15b5c6(0x31c)]=0x232d]=_0x15b5c6(0x31c),_0x1afcba[_0x1afcba[_0x15b5c6(0x2eb)]=0x2711]=_0x15b5c6(0x2eb),_0x1afcba[_0x1afcba['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1afcba[_0x1afcba['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1afcba[_0x1afcba[_0x15b5c6(0x2da)]=0x2714]=_0x15b5c6(0x2da),_0x1afcba[_0x1afcba[_0x15b5c6(0x33f)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x1afcba[_0x1afcba[_0x15b5c6(0x307)]=0x271b]=_0x15b5c6(0x307),_0x1afcba[_0x1afcba[_0x15b5c6(0x204)]=0x271c]=_0x15b5c6(0x204),_0x1afcba[_0x1afcba['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x15b5c6(0x350),_0x1afcba[_0x1afcba[_0x15b5c6(0x346)]=0x271e]=_0x15b5c6(0x346),_0x1afcba[_0x1afcba['YUUMI_AI_RUN_FAILED']=0x271f]=_0x15b5c6(0x32d),_0x1afcba[_0x1afcba[_0x15b5c6(0x3be)]=0x2720]=_0x15b5c6(0x3be),_0x1afcba[_0x1afcba['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x15b5c6(0x220),_0x1afcba[_0x1afcba['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x15b5c6(0x1ef),_0x1afcba[_0x1afcba[_0x15b5c6(0x1c6)]=0x2ee2]='INVALID_INVITE_CODE',_0x1afcba[_0x1afcba[_0x15b5c6(0x2c7)]=0x2ee3]=_0x15b5c6(0x2c7),_0x1afcba[_0x1afcba[_0x15b5c6(0x1e0)]=0x2ee4]=_0x15b5c6(0x1e0),_0x1afcba[_0x1afcba['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x15b5c6(0x3c5),_0x1afcba[_0x1afcba[_0x15b5c6(0x239)]=0x32c9]=_0x15b5c6(0x239),_0x1afcba[_0x1afcba[_0x15b5c6(0x1e4)]=0x32ca]=_0x15b5c6(0x1e4),_0x1afcba[_0x1afcba[_0x15b5c6(0x39e)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x1afcba[_0x1afcba[_0x15b5c6(0x272)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x1afcba[_0x1afcba[_0x15b5c6(0x392)]=0x36b2]=_0x15b5c6(0x392),_0x1afcba[_0x1afcba[_0x15b5c6(0x312)]=0x36b3]=_0x15b5c6(0x312),_0x1afcba[_0x1afcba['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x15b5c6(0x309),_0x1afcba[_0x1afcba[_0x15b5c6(0x2fb)]=0x36b5]=_0x15b5c6(0x2fb),_0x1afcba[_0x1afcba[_0x15b5c6(0x3fd)]=0x36b6]=_0x15b5c6(0x3fd),_0x1afcba[_0x1afcba['ENTITLE_COUPON_USED_UP']=0x36b7]='ENTITLE_COUPON_USED_UP',_0x1afcba[_0x1afcba[_0x15b5c6(0x395)]=0x36b8]=_0x15b5c6(0x395),_0x1afcba[_0x1afcba[_0x15b5c6(0x3a7)]=0x3715]=_0x15b5c6(0x3a7),_0x1afcba[_0x1afcba[_0x15b5c6(0x409)]=0x3716]=_0x15b5c6(0x409),_0x1afcba[_0x1afcba[_0x15b5c6(0x2c1)]=0x3717]=_0x15b5c6(0x2c1),_0x1afcba[_0x1afcba[_0x15b5c6(0x2ac)]=0x37dd]=_0x15b5c6(0x2ac),_0x1afcba[_0x1afcba[_0x15b5c6(0x3ff)]=0x3a99]=_0x15b5c6(0x3ff),_0x1afcba[_0x1afcba[_0x15b5c6(0x375)]=0x3a9a]=_0x15b5c6(0x375),_0x1afcba[_0x1afcba['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x15b5c6(0x44f),_0x1afcba[_0x1afcba['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x15b5c6(0x253),_0x1afcba[_0x1afcba[_0x15b5c6(0x2d6)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x1afcba[_0x1afcba['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x1afcba[_0x1afcba[_0x15b5c6(0x237)]=0x3a9f]=_0x15b5c6(0x237),_0x1afcba[_0x1afcba['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x15b5c6(0x2ba),_0x1afcba[_0x1afcba[_0x15b5c6(0x2c8)]=-0x1]=_0x15b5c6(0x2c8),_0x1afcba))(G||{});function Jt(_0x3cb16c){const _0x1b7b2b=_0x15b5c6;var _0x52d354,_0x30cc31;const _0x1f3a37=(_0x52d354=_0x3cb16c[_0x1b7b2b(0x2c4)])==null?void 0x0:_0x52d354[_0x1b7b2b(0x273)],_0x48d57d=((_0x30cc31=_0x3cb16c[_0x1b7b2b(0x2c4)])==null?void 0x0:_0x30cc31[_0x1b7b2b(0x30a)])||0x0;return _0x1f3a37===B[_0x1b7b2b(0x297)][_0x1b7b2b(0x1a8)]&&_0x48d57d>0x0;}function Zt(_0x17fe05){const _0x2badfa=_0x15b5c6;return _0x17fe05[_0x2badfa(0x21d)]===B[_0x2badfa(0x258)][_0x2badfa(0x288)];}var Qt=Object[_0x15b5c6(0x43d)],es=(_0xb390de,_0x1ffbf3,_0x2288e8,_0x4b44fd)=>{const _0x3f7833=_0x15b5c6;for(var _0x5c43be=_0x4b44fd>0x1?void 0x0:_0x4b44fd?Qt(_0x1ffbf3,_0x2288e8):_0x1ffbf3,_0x1ecb87=_0xb390de[_0x3f7833(0x45c)]-0x1,_0xe98548;_0x1ecb87>=0x0;_0x1ecb87--)(_0xe98548=_0xb390de[_0x1ecb87])&&(_0x5c43be=_0xe98548(_0x5c43be)||_0x5c43be);return _0x5c43be;},L=(_0x553398,_0x5437ee)=>(_0x5291f1,_0x561f2b)=>_0x5437ee(_0x5291f1,_0x561f2b,_0x553398);const ts=_0x15b5c6(0x199),ss=_0x15b5c6(0x351),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0x15b5c6(0x44e)]{constructor(_0x3da072,_0x33dc82,_0x12a6db,_0x10b2ef,_0x523b38,_0x315dc0,_0x2c7f22){const _0x8bef5a=_0x15b5c6;super(),_(this,'_pollingInterval',null),_(this,_0x8bef5a(0x446),0x0),_(this,'_currentUsage',0x0),_(this,_0x8bef5a(0x1b2),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x8bef5a(0x21f)]=_0x3da072,this[_0x8bef5a(0x340)]=_0x33dc82,this[_0x8bef5a(0x41f)]=_0x12a6db,this['_httpService']=_0x10b2ef,this[_0x8bef5a(0x2fc)]=_0x523b38,this['_logService']=_0x315dc0,this[_0x8bef5a(0x21e)]=_0x2c7f22,this[_0x8bef5a(0x29e)]());}[_0x15b5c6(0x29e)](){const _0x2cc104=_0x15b5c6;this[_0x2cc104(0x425)](this[_0x2cc104(0x340)][_0x2cc104(0x3b6)]((_0x463f46,_0x5c5a84)=>{const _0x39f237=_0x2cc104;var _0x1deca9;if(_0x463f46['id']!==B[_0x39f237(0x22e)]['id'])return;const _0x38f16f=_0x463f46[_0x39f237(0x293)];if(!this['_hasFormulaInDirtyRanges']((_0x1deca9=_0x38f16f[_0x39f237(0x40e)])!=null?_0x1deca9:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x39f237(0x438)](_0x463f46,_0x5c5a84),this['_showGuardMessage'](),new a[(_0x39f237(0x439))]();})),this[_0x2cc104(0x425)](this[_0x2cc104(0x340)][_0x2cc104(0x2a8)]((_0x4bf1f5,_0x5caef2)=>{const _0x45ff97=_0x2cc104;if(_0x4bf1f5['id']!==B[_0x45ff97(0x22d)]['id'])return;const _0x7a14c2=_0x4bf1f5['params'];if(Jt(_0x7a14c2)){const _0x4dd776=a[_0x45ff97(0x1dd)]();this['_taskIds'][_0x45ff97(0x320)](_0x4dd776),this[_0x45ff97(0x3cb)](_0x4dd776);}else{if(Zt(_0x7a14c2)&&this['_taskIds'][_0x45ff97(0x45c)]>0x0){const _0x1abc6d=this['_taskIds'][_0x45ff97(0x372)]();this['_releaseCalculationLimit'](_0x1abc6d);}}}));}[_0x15b5c6(0x327)](){const _0x345fb8=_0x15b5c6;super[_0x345fb8(0x327)](),this[_0x345fb8(0x29a)](),this['_taskIds']=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x15b5c6(0x438)](_0x487213,_0x3dcca9){const _0x2fefda=_0x15b5c6;for(let _0x5abd62=0x0;_0x5abd62<0x1e;_0x5abd62++)try{if(await this[_0x2fefda(0x19f)](),this[_0x2fefda(0x1d3)]()){this[_0x2fefda(0x2b8)](_0x487213,_0x3dcca9),this[_0x2fefda(0x21f)]['show']({'content':this['_localeService']['t']('formula.calculation.started'),'type':p[_0x2fefda(0x292)][_0x2fefda(0x2af)]});return;}await new Promise(_0x15dde2=>{const _0x220a94=_0x2fefda;this[_0x220a94(0x2f8)]=window[_0x220a94(0x19d)](_0x15dde2,0x3e8);});}catch(_0xdc813){this['_logService'][_0x2fefda(0x3f3)](_0xdc813);}this[_0x2fefda(0x21f)][_0x2fefda(0x37b)]({'content':this[_0x2fefda(0x21e)]['t'](_0x2fefda(0x3de)),'type':p['MessageType'][_0x2fefda(0x2f4)]});}[_0x15b5c6(0x2b8)](_0x25780b,_0x366cff){const _0x290b2c=_0x15b5c6;try{this[_0x290b2c(0x340)][_0x290b2c(0x28c)](_0x25780b['id'],_0x25780b[_0x290b2c(0x293)],_0x366cff);}catch(_0x5796de){this[_0x290b2c(0x1d5)]['error'](_0x5796de);}}[_0x15b5c6(0x276)](_0x2641f1,_0x7d023e){const _0x5a5a9a=_0x15b5c6;_0x7d023e<this['_lastResponseTimestamp']||(this[_0x5a5a9a(0x2cc)]=_0x7d023e,this['_maxFormulaLimit']=Number[_0x5a5a9a(0x226)](_0x2641f1[_0x5a5a9a(0x20f)]),this[_0x5a5a9a(0x339)]=Number[_0x5a5a9a(0x226)](_0x2641f1[_0x5a5a9a(0x2d5)]));}async['_startCalculationLimit'](_0x465ce2){const _0xfc4a12=_0x15b5c6;var _0x26e3ef,_0x3bd11c;const _0x34cc58=Date[_0xfc4a12(0x33a)]();try{const _0x47e46a=((_0x26e3ef=this['_configService'][_0xfc4a12(0x341)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x26e3ef[_0xfc4a12(0x2bd)])||ss,_0x1cc4dc=(await this[_0xfc4a12(0x3b4)]['post'](_0x47e46a,{'body':JSON[_0xfc4a12(0x2ee)]({'taskId':_0x465ce2})}))[_0xfc4a12(0x2a1)];if(((_0x3bd11c=_0x1cc4dc[_0xfc4a12(0x3f3)])==null?void 0x0:_0x3bd11c['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x1cc4dc['limitInfo'],_0x34cc58);}catch(_0x22d3b8){this[_0xfc4a12(0x1d5)][_0xfc4a12(0x3f3)](_0x22d3b8);}}async[_0x15b5c6(0x19f)](_0x4c9089){const _0x5b612c=_0x15b5c6;var _0x35ea60,_0x2e5171;const _0x3b91a9=Date[_0x5b612c(0x33a)]();try{const _0x40425d=((_0x35ea60=this[_0x5b612c(0x41f)]['getConfig'](u[_0x5b612c(0x228)]))==null?void 0x0:_0x35ea60['getformulaLimitStatusUrl'])||ts,_0x5d23d6=_0x4c9089?_0x40425d+_0x5b612c(0x1c9)+encodeURIComponent(_0x4c9089):_0x40425d,_0x25f22f=(await this[_0x5b612c(0x3b4)][_0x5b612c(0x2c9)](_0x5d23d6))[_0x5b612c(0x2a1)];if(((_0x2e5171=_0x25f22f[_0x5b612c(0x3f3)])==null?void 0x0:_0x2e5171[_0x5b612c(0x342)])!==G['OK'])return;this[_0x5b612c(0x276)](_0x25f22f[_0x5b612c(0x302)],_0x3b91a9);}catch(_0x2c2128){this[_0x5b612c(0x1d5)][_0x5b612c(0x3f3)](_0x2c2128);}}async['_releaseCalculationLimit'](_0x491251){const _0x4bf6d2=_0x15b5c6;var _0x368513,_0x53b702;const _0x362a4f=Date[_0x4bf6d2(0x33a)]();try{const _0x4208e3=((_0x368513=this[_0x4bf6d2(0x41f)][_0x4bf6d2(0x341)](u[_0x4bf6d2(0x228)]))==null?void 0x0:_0x368513[_0x4bf6d2(0x328)])||is,_0x5aa17e=(await this[_0x4bf6d2(0x3b4)][_0x4bf6d2(0x205)](_0x4208e3,{'body':JSON['stringify']({'taskId':_0x491251})}))[_0x4bf6d2(0x2a1)];if(((_0x53b702=_0x5aa17e[_0x4bf6d2(0x3f3)])==null?void 0x0:_0x53b702['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x5aa17e['limitInfo'],_0x362a4f);}catch(_0xad191c){this[_0x4bf6d2(0x1d5)][_0x4bf6d2(0x3f3)](_0xad191c);}}[_0x15b5c6(0x1d3)](){const _0x2bcf03=_0x15b5c6;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x2bcf03(0x339)]>0x0;}[_0x15b5c6(0x29a)](){const _0xb778c8=_0x15b5c6;this[_0xb778c8(0x2f8)]&&(clearTimeout(this[_0xb778c8(0x2f8)]),this['_pollingInterval']=null);}[_0x15b5c6(0x407)](){const _0x405dff=_0x15b5c6;this[_0x405dff(0x21f)][_0x405dff(0x37b)]({'content':this[_0x405dff(0x21e)]['t']('formula.calculation.waiting'),'type':p[_0x405dff(0x292)][_0x405dff(0x257)]});}[_0x15b5c6(0x423)](_0x2cc9fa){const _0x23d868=_0x15b5c6;for(const _0xd6c0ff of _0x2cc9fa){const {unitId:_0x2a0923,sheetId:_0x2eb941,range:_0x21f421}=_0xd6c0ff,_0x5cc0bb=this[_0x23d868(0x2fc)][_0x23d868(0x1ba)](_0x2a0923);if(!_0x5cc0bb)continue;const _0xa7a579=_0x5cc0bb[_0x23d868(0x3fa)](_0x2eb941);if(!_0xa7a579)continue;const _0x268abc=_0xa7a579[_0x23d868(0x1f0)]();for(let _0x37b93f=_0x21f421[_0x23d868(0x270)];_0x37b93f<=_0x21f421[_0x23d868(0x1cf)];_0x37b93f++)for(let _0x40c7dc=_0x21f421[_0x23d868(0x33c)];_0x40c7dc<=_0x21f421[_0x23d868(0x1a9)];_0x40c7dc++){const _0x1fbb00=_0x268abc[_0x23d868(0x441)](_0x37b93f,_0x40c7dc);if(_0x1fbb00&&(a[_0x23d868(0x2dd)](_0x1fbb00['f'])||a['isFormulaId'](_0x1fbb00['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x15b5c6(0x3bb)](O['IMessageService'])),L(0x1,a[_0x15b5c6(0x285)]),L(0x2,a['IConfigService']),L(0x3,a[_0x15b5c6(0x3bb)](x[_0x15b5c6(0x403)])),L(0x4,a[_0x15b5c6(0x333)]),L(0x5,a['ILogService']),L(0x6,a[_0x15b5c6(0x3bb)](a['LocaleService']))],ne);var ns=Object[_0x15b5c6(0x43d)],rs=(_0x421763,_0x408496,_0x2d10e3,_0x4be742)=>{const _0x23d364=_0x15b5c6;for(var _0x1a0232=_0x4be742>0x1?void 0x0:_0x4be742?ns(_0x408496,_0x2d10e3):_0x408496,_0x145db7=_0x421763[_0x23d364(0x45c)]-0x1,_0x371a62;_0x145db7>=0x0;_0x145db7--)(_0x371a62=_0x421763[_0x145db7])&&(_0x1a0232=_0x371a62(_0x1a0232)||_0x1a0232);return _0x1a0232;},Se=(_0xb6df78,_0x56c92d)=>(_0x1a521b,_0x3580d6)=>_0x56c92d(_0x1a521b,_0x3580d6,_0xb6df78);let Te=class extends a[_0x15b5c6(0x44e)]{constructor(_0x2901fa,_0x299e27,_0x5de06f){const _0x356052=_0x15b5c6;super(),_(this,_0x356052(0x1e8),new Map()),_(this,_0x356052(0x2cb),new Map()),_(this,_0x356052(0x1cc),!0x1),(this[_0x356052(0x41f)]=_0x2901fa,this[_0x356052(0x234)]=_0x299e27,this[_0x356052(0x35e)]=_0x5de06f);}[_0x15b5c6(0x1e6)](){const _0x457167=_0x15b5c6;this[_0x457167(0x1cc)]=!0x0;}[_0x15b5c6(0x23d)](){const _0x34f227=_0x15b5c6;this[_0x34f227(0x1cc)]=!0x1;}get[_0x15b5c6(0x3d4)](){const _0x3b6749=_0x15b5c6;return this[_0x3b6749(0x2cb)];}[_0x15b5c6(0x327)](){const _0x2ffbae=_0x15b5c6;this['exhaustSavingTask']()[_0x2ffbae(0x19e)](()=>super[_0x2ffbae(0x327)]());}async[_0x15b5c6(0x2ff)](_0x62053e){const _0x4b6a40=_0x15b5c6;return this[_0x4b6a40(0x1cc)]?null:this['_localStorageService'][_0x4b6a40(0x3e1)](u[_0x4b6a40(0x2ab)](_0x62053e));}async[_0x15b5c6(0x213)](_0x2c0054,_0x912131){const _0x456009=_0x15b5c6;return!!this[_0x456009(0x234)][_0x456009(0x1fe)](_0x2c0054,_0x912131);}[_0x15b5c6(0x3e6)](_0x2621e1,_0x544d44,_0x50523d,_0x5d5d85){const _0x3468cd=_0x15b5c6,_0x543509=this['_revisionService'][_0x3468cd(0x284)](_0x2621e1);this[_0x3468cd(0x1e8)][_0x3468cd(0x196)](_0x2621e1,{'unitID':_0x2621e1,'type':_0x544d44,'awaitingChangeset':_0x50523d,'mutations':_0x5d5d85,'rev':_0x543509}),this[_0x3468cd(0x2cb)]['has'](_0x2621e1)||this[_0x3468cd(0x254)](_0x2621e1);}[_0x15b5c6(0x254)](_0x1d54b6){const _0x167a1c=_0x15b5c6,_0x5ce4a1=this[_0x167a1c(0x368)]();_0x5ce4a1===0x0?this['_saveCache'](_0x1d54b6):this['_saveTaskMap'][_0x167a1c(0x196)](_0x1d54b6,setTimeout(()=>this[_0x167a1c(0x26a)](_0x1d54b6),_0x5ce4a1));}[_0x15b5c6(0x368)](){const _0x325ba2=_0x15b5c6;var _0x4f9718;return(_0x4f9718=this['_configService'][_0x325ba2(0x341)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x4f9718:u[_0x325ba2(0x203)];}[_0x15b5c6(0x26a)](_0x4401c9){const _0x2c0b85=_0x15b5c6,_0x3f201e=this['_saveTaskMap'][_0x2c0b85(0x2c9)](_0x4401c9);return _0x3f201e!==void 0x0&&window[_0x2c0b85(0x2fa)](_0x3f201e),this[_0x2c0b85(0x234)][_0x2c0b85(0x1fe)](u['getLocalCacheKey'](_0x4401c9),this['_cachedData']['get'](_0x4401c9))[_0x2c0b85(0x19e)](()=>this[_0x2c0b85(0x2cb)][_0x2c0b85(0x329)](_0x4401c9));}async[_0x15b5c6(0x406)](){const _0x238fe4=_0x15b5c6,_0x166e41=[];this['_saveTaskMap'][_0x238fe4(0x449)]((_0x3ec297,_0x240ad9)=>{const _0x33314b=_0x238fe4;window['clearTimeout'](_0x3ec297),_0x166e41[_0x33314b(0x320)](this[_0x33314b(0x26a)](_0x240ad9)['then'](()=>{const _0x31061b=_0x33314b;this['_saveTaskMap'][_0x31061b(0x329)](_0x240ad9);}));}),await Promise[_0x238fe4(0x402)](_0x166e41);}};Te=rs([Se(0x0,a[_0x15b5c6(0x2df)]),Se(0x1,a[_0x15b5c6(0x2e0)]),Se(0x2,a[_0x15b5c6(0x3bb)](g[_0x15b5c6(0x3f8)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x3834d4=_0x15b5c6;super(),_(this,_0x3834d4(0x338)),this['urlChange$']=I[_0x3834d4(0x32b)](window,_0x3834d4(0x40a))[_0x3834d4(0x24a)](I['takeUntil'](this[_0x3834d4(0x34e)]),I[_0x3834d4(0x2d8)](0x1),I['mapTo'](void 0x0));}['setParam'](_0x42f4fa,_0x51d85b,_0x59c368=!0x1){const _0x525fba=_0x15b5c6,_0x24e933=new URL(window['location'][_0x525fba(0x3db)]);_0x24e933[_0x525fba(0x3d8)][_0x525fba(0x196)](_0x42f4fa,_0x51d85b),_0x59c368?window[_0x525fba(0x3c3)]['replaceState']('','',_0x24e933[_0x525fba(0x27d)]()):window[_0x525fba(0x3c3)][_0x525fba(0x456)]('','',_0x24e933[_0x525fba(0x27d)]());}['removeParam'](_0x37220d,_0x4b4c9b=!0x1){const _0x4bb8fb=_0x15b5c6,_0x19224f=new URL(window[_0x4bb8fb(0x347)][_0x4bb8fb(0x3db)]);_0x19224f[_0x4bb8fb(0x3d8)][_0x4bb8fb(0x329)](_0x37220d),_0x4b4c9b?window['history']['replaceState']('','',_0x19224f['toString']()):window['history'][_0x4bb8fb(0x456)]('','',_0x19224f[_0x4bb8fb(0x27d)]());}[_0x15b5c6(0x40c)](_0x189366){const _0x521ffe=_0x15b5c6;var _0x1bde5e;return(_0x1bde5e=new URL(window[_0x521ffe(0x347)][_0x521ffe(0x3db)])[_0x521ffe(0x3d8)][_0x521ffe(0x2c9)](_0x189366))!=null?_0x1bde5e:void 0x0;}}var os=Object[_0x15b5c6(0x443)],as=Object[_0x15b5c6(0x43d)],cs=(_0x51778e,_0x55ca57,_0x41d5b8)=>_0x55ca57 in _0x51778e?os(_0x51778e,_0x55ca57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41d5b8}):_0x51778e[_0x55ca57]=_0x41d5b8,ls=(_0x259750,_0x352383,_0x2e91b2,_0x672c17)=>{const _0x224756=_0x15b5c6;for(var _0x3e73ac=_0x672c17>0x1?void 0x0:_0x672c17?as(_0x352383,_0x2e91b2):_0x352383,_0x4ad25f=_0x259750[_0x224756(0x45c)]-0x1,_0x20aa65;_0x4ad25f>=0x0;_0x4ad25f--)(_0x20aa65=_0x259750[_0x4ad25f])&&(_0x3e73ac=_0x20aa65(_0x3e73ac)||_0x3e73ac);return _0x3e73ac;},de=(_0x44daa7,_0x2daa25)=>(_0x42a767,_0xc0378e)=>_0x2daa25(_0x42a767,_0xc0378e,_0x44daa7),_s=(_0x2afd77,_0x592ef3,_0x554462)=>cs(_0x2afd77,_0x592ef3+'',_0x554462);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x15b5c6(0x1fb)]{constructor(_0x52cc50=Me,_0x54b006,_0x1371c9,_0x5c8fe4){const _0x17a3c6=_0x15b5c6;super(),this[_0x17a3c6(0x294)]=_0x52cc50,this[_0x17a3c6(0x280)]=_0x54b006,this[_0x17a3c6(0x201)]=_0x1371c9,this[_0x17a3c6(0x41f)]=_0x5c8fe4;const {..._0x4891a7}=a[_0x17a3c6(0x207)]({},Me,this[_0x17a3c6(0x294)]);this['_configService'][_0x17a3c6(0x242)](Yt,_0x4891a7);}[_0x15b5c6(0x37e)](){const _0x4259d9=_0x15b5c6;this[_0x4259d9(0x3a5)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x55b537=_0x15b5c6;var _0x626ca0;const _0x4cd872=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x55b537(0x24f)]}],[u[_0x55b537(0x3ba)],{'useClass':Te}],[exports[_0x55b537(0x20c)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x55b537(0x294)][_0x55b537(0x383)]&&_0x4cd872[_0x55b537(0x320)]([Q]),a[_0x55b537(0x216)](this[_0x55b537(0x201)],a[_0x55b537(0x2f9)](_0x4cd872,(_0x626ca0=this[_0x55b537(0x294)])==null?void 0x0:_0x626ca0[_0x55b537(0x1db)]));}[_0x15b5c6(0x256)](){const _0x3e9d95=_0x15b5c6;this['disposeWithMe'](this[_0x3e9d95(0x280)][_0x3e9d95(0x45a)](a[_0x3e9d95(0x295)][_0x3e9d95(0x28e)],[Ee])),this['disposeWithMe'](this[_0x3e9d95(0x280)]['registerRenderModule'](a[_0x3e9d95(0x295)][_0x3e9d95(0x2ae)],[Ce]));}['_initDependencies'](){const _0x52a2c8=_0x15b5c6;a[_0x52a2c8(0x399)](this[_0x52a2c8(0x201)],[[F],[exports[_0x52a2c8(0x20c)]],[ie],[Z],[exports[_0x52a2c8(0x298)]],[ne]]),this[_0x52a2c8(0x294)][_0x52a2c8(0x383)]&&a[_0x52a2c8(0x399)](this['_injector'],[[Q]]);}},_s(exports[_0x15b5c6(0x37d)],_0x15b5c6(0x40d),hs),exports[_0x15b5c6(0x37d)]=ls([a[_0x15b5c6(0x264)](u[_0x15b5c6(0x2b2)]),de(0x1,C[_0x15b5c6(0x1e7)]),de(0x2,a['Inject'](a['Injector'])),de(0x3,a[_0x15b5c6(0x2df)])],exports[_0x15b5c6(0x37d)]);var us=Object[_0x15b5c6(0x43d)],Is=(_0x4e35b3,_0x3885ff,_0x50b906,_0x17f535)=>{const _0x12dbb8=_0x15b5c6;for(var _0x1a57f3=_0x17f535>0x1?void 0x0:_0x17f535?us(_0x3885ff,_0x50b906):_0x3885ff,_0x3b07f9=_0x4e35b3[_0x12dbb8(0x45c)]-0x1,_0x2a2af2;_0x3b07f9>=0x0;_0x3b07f9--)(_0x2a2af2=_0x4e35b3[_0x3b07f9])&&(_0x1a57f3=_0x2a2af2(_0x1a57f3)||_0x1a57f3);return _0x1a57f3;},W=(_0x41ad22,_0x40157d)=>(_0x24dd53,_0xc31374)=>_0x40157d(_0x24dd53,_0xc31374,_0x41ad22);exports['BrowserCollaborationSocketService']=class extends u[_0x15b5c6(0x310)]{constructor(_0x4d96d6,_0x337691,_0x366f44,_0x43dfdb,_0x2237c6){super(_0x4d96d6,_0x337691,_0x366f44,_0x43dfdb,_0x2237c6);}async['createSocket'](_0x175959){const _0xb90d43=_0x15b5c6,_0x4352a6=await this[_0xb90d43(0x2c3)](),_0x5810c3=this[_0xb90d43(0x314)](_0x175959,_0x4352a6);return this[_0xb90d43(0x385)](_0x5810c3);}[_0x15b5c6(0x314)](_0x3a2559,_0x6c0db3){const _0x4a11e5=_0x15b5c6,_0x59f8e3=typeof window>'u'?new URL(_0x3a2559):new URL(_0x3a2559,window[_0x4a11e5(0x347)]['origin']);_0x59f8e3[_0x4a11e5(0x3d8)][_0x4a11e5(0x196)](_0x4a11e5(0x3eb),_0x6c0db3);const _0x16bdf6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4a11e5(0x347)][_0x4a11e5(0x25a)]);return _0x16bdf6[_0x4a11e5(0x2c9)](_0x4a11e5(0x3f6))&&_0x59f8e3[_0x4a11e5(0x3d8)][_0x4a11e5(0x196)]('runId',_0x16bdf6[_0x4a11e5(0x2c9)]('runId')),_0x59f8e3[_0x4a11e5(0x27d)]();}async['_getSessionTicket'](){const _0x59050b=_0x15b5c6;var _0x4d3928,_0x2d7f0,_0x4d4abc;const _0x5a06a8=this[_0x59050b(0x41f)][_0x59050b(0x341)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x3ac534=(_0x4d3928=_0x5a06a8==null?void 0x0:_0x5a06a8['wsSessionTicketUrl'])!=null?_0x4d3928:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x4d4abc=(_0x2d7f0=(await this[_0x59050b(0x3b4)][_0x59050b(0x2c9)](_0x3ac534,{'headers':{'Content-Type':_0x59050b(0x2ce)}}))[_0x59050b(0x2a1)])==null?void 0x0:_0x2d7f0[_0x59050b(0x224)])!=null?_0x4d4abc:'';}},exports[_0x15b5c6(0x244)]=Is([W(0x0,a[_0x15b5c6(0x3bb)](a[_0x15b5c6(0x1c8)])),W(0x1,a[_0x15b5c6(0x3bb)](x['HTTPService'])),W(0x2,a['IConfigService']),W(0x3,a[_0x15b5c6(0x434)]),W(0x4,g['ISnapshotServerService'])],exports[_0x15b5c6(0x244)]);var Ss=Object[_0x15b5c6(0x43d)],ds=(_0x1300c8,_0x4cfd4b,_0x377a6f,_0x456530)=>{const _0xa44c56=_0x15b5c6;for(var _0x51dce5=_0x456530>0x1?void 0x0:_0x456530?Ss(_0x4cfd4b,_0x377a6f):_0x4cfd4b,_0x5600af=_0x1300c8[_0xa44c56(0x45c)]-0x1,_0x2b44da;_0x5600af>=0x0;_0x5600af--)(_0x2b44da=_0x1300c8[_0x5600af])&&(_0x51dce5=_0x2b44da(_0x51dce5)||_0x51dce5);return _0x51dce5;},fe=(_0x39e1b9,_0x408376)=>(_0x5a2b0d,_0x5c0bec)=>_0x408376(_0x5a2b0d,_0x5c0bec,_0x39e1b9);exports[_0x15b5c6(0x24d)]=class extends a[_0x15b5c6(0x44e)]{constructor(_0x2600f7,_0x4087ee,_0x2e8ec6){const _0x23c957=_0x15b5c6;super(),this[_0x23c957(0x33e)]=_0x2600f7,this[_0x23c957(0x3b4)]=_0x4087ee,this['_configService']=_0x2e8ec6;}async['runOnServer'](_0x582cc1,_0x1e03f2,_0x2c9a2a,..._0x3e9ef5){const _0x45204b=_0x15b5c6;var _0x58e0bc,_0x269d3d,_0x2fbc5b,_0x3b2b6a;const _0x1c638b=this['_instanceService'][_0x45204b(0x34f)]();if(!_0x1c638b)throw new Error(_0x45204b(0x3b7));const _0x1ac821=((_0x58e0bc=this[_0x45204b(0x41f)][_0x45204b(0x341)](u[_0x45204b(0x3b0)]))!=null?_0x58e0bc:u[_0x45204b(0x411)])+'/'+_0x582cc1+_0x45204b(0x227)+_0x1e03f2,_0x134926=new URL(window[_0x45204b(0x347)][_0x45204b(0x3db)]),_0x2e9911={'scriptId':_0x582cc1,'runId':(_0x269d3d=_0x134926[_0x45204b(0x3d8)][_0x45204b(0x2c9)](_0x45204b(0x3f6)))!=null?_0x269d3d:'','function':_0x1e03f2,'unitId':_0x1c638b[_0x45204b(0x36f)](),'argsOfFunction':JSON['stringify'](_0x3e9ef5),'invokeId':(_0x2fbc5b=_0x2c9a2a['invokeId'])!=null?_0x2fbc5b:'','executionId':(_0x3b2b6a=_0x2c9a2a[_0x45204b(0x1f3)])!=null?_0x3b2b6a:''};try{const _0x577225=await this[_0x45204b(0x3b4)][_0x45204b(0x205)](_0x1ac821,{'body':_0x2e9911});return _0x577225[_0x45204b(0x2a1)][_0x45204b(0x3f3)]&&_0x577225['body'][_0x45204b(0x3f3)][_0x45204b(0x342)]!==G['OK']?_0x45204b(0x431):_0x577225['body']['result'];}catch{return _0x45204b(0x431);}}},exports[_0x15b5c6(0x24d)]=ds([fe(0x0,a[_0x15b5c6(0x333)]),fe(0x1,a[_0x15b5c6(0x3bb)](x[_0x15b5c6(0x403)])),fe(0x2,a[_0x15b5c6(0x2df)])],exports['RemoteUniscriptService']);const we=0x7530,ye=_0x15b5c6(0x1a1);class fs extends a[_0x15b5c6(0x44e)]{constructor(){const _0x12ff51=_0x15b5c6;super(),_(this,_0x12ff51(0x1f2),a['generateRandomId']()),_(this,_0x12ff51(0x2d9),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x12ff51(0x28b),null),_(this,_0x12ff51(0x28f),new Map()),_(this,_0x12ff51(0x1fd),new Map()),this[_0x12ff51(0x462)]();}[_0x15b5c6(0x327)](){const _0x2249c3=_0x15b5c6;super[_0x2249c3(0x327)](),this['_clearOtherTimers'][_0x2249c3(0x449)]((_0x4a1bfc,_0x4c5c89)=>this[_0x2249c3(0x269)](_0x4c5c89)),this['_heartbeatTimer']&&window[_0x2249c3(0x25c)](this[_0x2249c3(0x28b)]);}[_0x15b5c6(0x1ff)](_0x3f51e0){const _0xf28826=_0x15b5c6;return this[_0xf28826(0x22c)](_0x3f51e0)['pipe'](I[_0xf28826(0x42a)]());}[_0x15b5c6(0x260)](_0x418c07){const _0x1286fd=_0x15b5c6;this[_0x1286fd(0x2d9)][_0x1286fd(0x332)]===0x0&&this[_0x1286fd(0x38f)](),this['_selfUnitIDs']['add'](_0x418c07),this[_0x1286fd(0x1a3)]({'type':0x0,'memberID':this[_0x1286fd(0x1f2)],'unitIDs':[_0x418c07],'isForwarded':!0x1});}[_0x15b5c6(0x279)](_0x583786){const _0x7e7b5e=_0x15b5c6;this[_0x7e7b5e(0x2d9)][_0x7e7b5e(0x329)](_0x583786),this[_0x7e7b5e(0x2d9)][_0x7e7b5e(0x332)]===0x0&&this[_0x7e7b5e(0x28b)]&&window[_0x7e7b5e(0x25c)](this[_0x7e7b5e(0x28b)]);}[_0x15b5c6(0x462)](){const _0x3ffa4e=_0x15b5c6;this[_0x3ffa4e(0x425)](a['toDisposable'](I[_0x3ffa4e(0x32b)](window,_0x3ffa4e(0x311))[_0x3ffa4e(0x3fc)](_0x174370=>{const _0x2281dd=_0x3ffa4e;if(_0x174370[_0x2281dd(0x319)]!==ye||!_0x174370['newValue'])return;const _0x2a30f3=JSON['parse'](_0x174370[_0x2281dd(0x1a4)]);this[_0x2281dd(0x305)](_0x2a30f3);}))),window[_0x3ffa4e(0x211)](_0x3ffa4e(0x215),()=>this['_send']({'type':0x1,'memberID':this[_0x3ffa4e(0x1f2)],'unitIDs':Array['from'](this[_0x3ffa4e(0x2d9)])}));}[_0x15b5c6(0x305)](_0x439265){const _0x227e49=_0x15b5c6;switch(_0x439265['type']){case 0x0:this['_handleJoinEvent'](_0x439265);break;case 0x1:this[_0x227e49(0x2c2)](_0x439265);break;case 0x2:this['_handleHeartbeatEvent'](_0x439265);break;}}[_0x15b5c6(0x38e)](_0x43fdf6){const _0x2869fe=_0x15b5c6,{unitIDs:_0xf82f49,memberID:_0x5cf691,isForwarded:_0x10290d}=_0x43fdf6;_0xf82f49[_0x2869fe(0x449)](_0x555439=>{const _0x167126=_0x2869fe;if(!_0x10290d&&this['_unitOnClients'][_0x167126(0x1de)](_0x555439)&&this['_ensureSubject'](_0x555439)['next'](u[_0x167126(0x32c)][_0x167126(0x42d)]),!this[_0x167126(0x3a2)]['has'](_0x555439)||!this['_unitOnClients'][_0x167126(0x2c9)](_0x555439)[_0x167126(0x1de)](_0x5cf691)){const _0x1e884a=this[_0x167126(0x3a2)][_0x167126(0x2c9)](_0x555439)||new Set();_0x1e884a[_0x167126(0x3bf)](_0x5cf691),this[_0x167126(0x3a2)]['set'](_0x555439,_0x1e884a),this[_0x167126(0x2f1)](_0x5cf691);}}),_0x10290d||this[_0x2869fe(0x1a3)]({'type':0x0,'memberID':this[_0x2869fe(0x1f2)],'unitIDs':[...this[_0x2869fe(0x2d9)]],'isForwarded':!0x0});}[_0x15b5c6(0x2f1)](_0xb1ab63){const _0x1c8abd=_0x15b5c6;this[_0x1c8abd(0x269)](_0xb1ab63);const _0x11e58f=window['setTimeout'](()=>{const _0x5c9b88=_0x1c8abd;this[_0x5c9b88(0x3a2)][_0x5c9b88(0x449)](_0x35613d=>{_0x35613d['delete'](_0xb1ab63);});},we*0x2);this[_0x1c8abd(0x28f)][_0x1c8abd(0x196)](_0xb1ab63,_0x11e58f);}[_0x15b5c6(0x269)](_0x236d9c){const _0x553c7e=_0x15b5c6;if(this[_0x553c7e(0x28f)]['has'](_0x236d9c)){const _0x280e87=this['_clearOtherTimers']['get'](_0x236d9c);_0x280e87&&window[_0x553c7e(0x2fa)](_0x280e87),this[_0x553c7e(0x28f)]['set'](_0x236d9c,null);}}['_handleLeaveEvent'](_0xc5bdb4){const _0x2aa22f=_0x15b5c6,{memberID:_0x376aa2,unitIDs:_0x2ea100}=_0xc5bdb4;_0x2ea100[_0x2aa22f(0x449)](_0x3181a4=>{const _0x3d34ab=_0x2aa22f;var _0x43e381;const _0x270356=this[_0x3d34ab(0x3a2)][_0x3d34ab(0x2c9)](_0x3181a4);_0x270356&&(_0x270356['delete'](_0x376aa2),(_0x43e381=this[_0x3d34ab(0x22c)](_0x3181a4))==null||_0x43e381[_0x3d34ab(0x337)](_0x270356[_0x3d34ab(0x332)]===0x0?u[_0x3d34ab(0x32c)][_0x3d34ab(0x325)]:u[_0x3d34ab(0x32c)][_0x3d34ab(0x42d)]));}),this[_0x2aa22f(0x269)](_0x376aa2);}[_0x15b5c6(0x321)](_0x71b0b5){const _0x332ad1=_0x15b5c6;this[_0x332ad1(0x2f1)](_0x71b0b5['memberID']);}[_0x15b5c6(0x1a3)](_0x35f204){const _0x45dd93=_0x15b5c6;localStorage[_0x45dd93(0x1fe)](ye,JSON[_0x45dd93(0x2ee)](_0x35f204));}[_0x15b5c6(0x38f)](){const _0x52d43e=_0x15b5c6;this[_0x52d43e(0x28b)]=window['setInterval'](()=>{const _0x25ba50=_0x52d43e;this[_0x25ba50(0x1a3)]({'type':0x2,'memberID':this['_id']});},we);}[_0x15b5c6(0x22c)](_0x1f8cd1){const _0x2467f4=_0x15b5c6;return this['_unitStatus']['has'](_0x1f8cd1)||this['_unitStatus'][_0x2467f4(0x196)](_0x1f8cd1,new I[(_0x2467f4(0x433))](u[_0x2467f4(0x32c)][_0x2467f4(0x325)])),this[_0x2467f4(0x1fd)][_0x2467f4(0x2c9)](_0x1f8cd1);}}exports[_0x15b5c6(0x3b3)]=Oe,exports[_0x15b5c6(0x303)]=je,exports[_0x15b5c6(0x361)]=fs,exports[_0x15b5c6(0x45b)]=ke;