@univerjs-pro/collaboration-client-ui 0.15.1 → 0.15.2-insiders.20260122-b1556b1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3a7f8d=_0x19d3;(function(_0x3a692b,_0x100987){const _0x18243b=_0x19d3,_0x47d2d4=_0x3a692b();while(!![]){try{const _0x29e50b=parseInt(_0x18243b(0x1e4))/0x1+parseInt(_0x18243b(0x2fe))/0x2+parseInt(_0x18243b(0x1db))/0x3+parseInt(_0x18243b(0x1ec))/0x4*(-parseInt(_0x18243b(0x317))/0x5)+parseInt(_0x18243b(0x1d5))/0x6*(parseInt(_0x18243b(0x422))/0x7)+parseInt(_0x18243b(0x420))/0x8*(parseInt(_0x18243b(0x16d))/0x9)+parseInt(_0x18243b(0x3fd))/0xa*(-parseInt(_0x18243b(0x331))/0xb);if(_0x29e50b===_0x100987)break;else _0x47d2d4['push'](_0x47d2d4['shift']());}catch(_0x5f1186){_0x47d2d4['push'](_0x47d2d4['shift']());}}}(_0x368b,0x387f0));var Xe=Object[_0x3a7f8d(0x37e)],Ke=(_0x4e40a5,_0x10c912,_0x261b73)=>_0x10c912 in _0x4e40a5?Xe(_0x4e40a5,_0x10c912,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x261b73}):_0x4e40a5[_0x10c912]=_0x261b73,_=(_0x943346,_0x4c2119,_0xebb9ca)=>Ke(_0x943346,typeof _0x4c2119!='symbol'?_0x4c2119+'':_0x4c2119,_0xebb9ca);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x3a7f8d(0x266)});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:_0x11e2d4,..._0xca5a9}){const _0x3d9923=_0x3a7f8d,{icon:_0x35a1ae,id:_0x310dc8,className:_0x202303,extend:_0x265e04,..._0x13a632}=_0xca5a9,_0x20cf0e=(_0x3d9923(0x3b0)+_0x310dc8+'\x20'+(_0x202303||''))['trim'](),_0x57ae99=A['useRef']('_'+Qe());return $e(_0x35a1ae,''+_0x310dc8,{'defIds':_0x35a1ae[_0x3d9923(0x21a)],'idSuffix':_0x57ae99[_0x3d9923(0x378)]},{'ref':_0x11e2d4,'className':_0x20cf0e,..._0x13a632},_0x265e04);}function $e(_0x1f0be6,_0x51a48d,_0x4db2ca,_0x57d726,_0x5e919b){const _0x5f43ad=_0x3a7f8d;return A['createElement'](_0x1f0be6[_0x5f43ad(0x2d2)],{'key':_0x51a48d,...Je(_0x1f0be6,_0x4db2ca,_0x5e919b),..._0x57d726},(Ze(_0x1f0be6,_0x4db2ca)[_0x5f43ad(0x341)]||[])[_0x5f43ad(0x19c)]((_0xbf8c15,_0x25e774)=>$e(_0xbf8c15,_0x51a48d+'-'+_0x1f0be6[_0x5f43ad(0x2d2)]+'-'+_0x25e774,_0x4db2ca,void 0x0,_0x5e919b)));}function Je(_0x257da9,_0x5cb15c,_0x1160c3){const _0x593780=_0x3a7f8d,_0x195032={..._0x257da9[_0x593780(0x238)]};_0x1160c3!=null&&_0x1160c3[_0x593780(0x320)]&&_0x195032[_0x593780(0x382)]===_0x593780(0x320)&&(_0x195032[_0x593780(0x382)]=_0x1160c3['colorChannel1']),_0x257da9[_0x593780(0x2d2)]===_0x593780(0x192)&&_0x195032['id']&&(_0x195032['id']=_0x195032['id']+_0x5cb15c['idSuffix']),Object['entries'](_0x195032)[_0x593780(0x3f4)](([_0x5db95b,_0x17caca])=>{const _0x4ff311=_0x593780;_0x5db95b===_0x4ff311(0x192)&&typeof _0x17caca=='string'&&(_0x195032[_0x5db95b]=_0x17caca[_0x4ff311(0x29e)](/url\(#(.*)\)/,_0x4ff311(0x3f8)+_0x5cb15c['idSuffix']+')'));});const {defIds:_0x4606f9}=_0x5cb15c;return!_0x4606f9||_0x4606f9[_0x593780(0x355)]===0x0||(_0x257da9[_0x593780(0x2d2)]==='use'&&_0x195032[_0x593780(0x1f9)]&&(_0x195032[_0x593780(0x1f9)]=_0x195032[_0x593780(0x1f9)]+_0x5cb15c['idSuffix']),Object['entries'](_0x195032)[_0x593780(0x3f4)](([_0x480615,_0x1dd60b])=>{const _0x2b4d19=_0x593780;typeof _0x1dd60b=='string'&&(_0x195032[_0x480615]=_0x1dd60b[_0x2b4d19(0x29e)](/url\(#(.*)\)/,_0x2b4d19(0x3f8)+_0x5cb15c[_0x2b4d19(0x20f)]+')'));})),_0x195032;}function Ze(_0x495d2e,_0x26d295){const _0x50833f=_0x3a7f8d;var _0x388155;const {defIds:_0x92fe46}=_0x26d295;return!_0x92fe46||_0x92fe46[_0x50833f(0x355)]===0x0?_0x495d2e:_0x495d2e[_0x50833f(0x2d2)]==='defs'&&((_0x388155=_0x495d2e['children'])!=null&&_0x388155['length'])?{..._0x495d2e,'children':_0x495d2e[_0x50833f(0x341)][_0x50833f(0x19c)](_0x58c4ad=>typeof _0x58c4ad[_0x50833f(0x238)]['id']==_0x50833f(0x211)&&_0x92fe46&&_0x92fe46[_0x50833f(0x215)](_0x58c4ad[_0x50833f(0x238)]['id'])?{..._0x58c4ad,'attrs':{..._0x58c4ad[_0x50833f(0x238)],'id':_0x58c4ad['attrs']['id']+_0x26d295['idSuffix']}}:_0x58c4ad)}:_0x495d2e;}function Qe(){const _0x2887de=_0x3a7f8d;return Math[_0x2887de(0x371)]()['toString'](0x24)[_0x2887de(0x287)](0x2,0x8);}pe[_0x3a7f8d(0x220)]=_0x3a7f8d(0x358);const et={'tag':_0x3a7f8d(0x329),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3a7f8d(0x340),'viewBox':'0\x200\x2016\x2016','width':_0x3a7f8d(0x391),'height':_0x3a7f8d(0x391)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a7f8d(0x1b1)},'children':[{'tag':_0x3a7f8d(0x298),'attrs':{'stroke':_0x3a7f8d(0x1ed),'d':_0x3a7f8d(0x2d0),'strokeLinecap':'round','strokeLinejoin':_0x3a7f8d(0x240),'strokeWidth':1.2}}]},{'tag':_0x3a7f8d(0x38f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3a7f8d(0x298),'attrs':{'fill':_0x3a7f8d(0x1e9),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3a7f8d(0x271)]},xe=A[_0x3a7f8d(0x2de)](function(_0x332067,_0x1be081){const _0x5e3e27=_0x3a7f8d;return A[_0x5e3e27(0x352)](pe,Object[_0x5e3e27(0x237)]({},_0x332067,{'id':_0x5e3e27(0x401),'ref':_0x1be081,'icon':et}));});function _0x19d3(_0x325878,_0xd74f8f){_0x325878=_0x325878-0x167;const _0x368be4=_0x368b();let _0x19d3c1=_0x368be4[_0x325878];return _0x19d3c1;}xe['displayName']=_0x3a7f8d(0x290);const tt={'tag':'svg','attrs':{'xmlns':_0x3a7f8d(0x32c),'fill':_0x3a7f8d(0x340),'viewBox':_0x3a7f8d(0x336),'width':_0x3a7f8d(0x391),'height':_0x3a7f8d(0x391)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a7f8d(0x3d5)},'children':[{'tag':_0x3a7f8d(0x298),'attrs':{'stroke':_0x3a7f8d(0x1ed),'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':_0x3a7f8d(0x240),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3a7f8d(0x38f),'attrs':{},'children':[{'tag':_0x3a7f8d(0x3f6),'attrs':{'id':_0x3a7f8d(0x2ae)},'children':[{'tag':'path','attrs':{'fill':_0x3a7f8d(0x1e9),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x3a7f8d(0x2de)](function(_0x3f80ed,_0x48430a){const _0xb2b470=_0x3a7f8d;return A[_0xb2b470(0x352)](pe,Object[_0xb2b470(0x237)]({},_0x3f80ed,{'id':_0xb2b470(0x3c0),'ref':_0x48430a,'icon':tt}));});Be[_0x3a7f8d(0x220)]=_0x3a7f8d(0x200);function st(_0x391d2e){const _0x5274ea=_0x3a7f8d;switch(_0x391d2e){case u[_0x5274ea(0x22c)]['OFFLINE']:return'collabStatus.offline';case u[_0x5274ea(0x22c)]['CONFLICT']:return _0x5274ea(0x1df);case u[_0x5274ea(0x22c)][_0x5274ea(0x1c8)]:return _0x5274ea(0x346);case u[_0x5274ea(0x22c)][_0x5274ea(0x1a4)]:return _0x5274ea(0x1f7);case u[_0x5274ea(0x22c)][_0x5274ea(0x233)]:case u[_0x5274ea(0x22c)][_0x5274ea(0x3ed)]:return _0x5274ea(0x3c7);case u[_0x5274ea(0x22c)][_0x5274ea(0x347)]:case u['CollaborationStatus'][_0x5274ea(0x30d)]:return _0x5274ea(0x393);}}function it(_0x2ad2d8){const _0x37160a=_0x3a7f8d,{status$:_0x5d8fff}=_0x2ad2d8,_0x5856fd=O[_0x37160a(0x414)](_0x5d8fff,u[_0x37160a(0x22c)][_0x37160a(0x1a4)]),_0x3726f2=O['useDependency'](a[_0x37160a(0x2bb)]),_0x8a2cdb=O[_0x37160a(0x239)](u[_0x37160a(0x28f)]),_0x1b9c2c=_0x5856fd!==u[_0x37160a(0x22c)][_0x37160a(0x295)],_0x211f89=_0x3726f2['t'](st(_0x5856fd)),_0xa064cc=_0x1b9c2c?M[_0x37160a(0x407)](Be,{}):M['jsx'](xe,{}),_0x16d39a=A['useCallback'](()=>{const _0x3083c8=_0x37160a;_0x1b9c2c||_0x8a2cdb[_0x3083c8(0x373)]();},[_0x1b9c2c,_0x8a2cdb]);function _0x8e21f5(){const _0x3c2d6b=_0x37160a;return M[_0x3c2d6b(0x272)](_0x3c2d6b(0x41f),{'className':'univer-flex\x20univer-items-center','onClick':_0x16d39a,'children':[M[_0x3c2d6b(0x407)](_0x3c2d6b(0x41f),{'className':p[_0x3c2d6b(0x312)](_0x3c2d6b(0x2cd),{'univer-text-green-500':_0x1b9c2c,'univer-text-red-500':!_0x1b9c2c}),'children':_0xa064cc}),M['jsx'](_0x3c2d6b(0x41f),{'className':_0x3c2d6b(0x3a9),'children':_0x211f89})]});}return _0x1b9c2c?_0x8e21f5():M[_0x37160a(0x407)](p[_0x37160a(0x20b)],{'title':_0x3726f2['t'](_0x37160a(0x3ac)),'children':_0x8e21f5()});}var nt=Object[_0x3a7f8d(0x28c)],rt=(_0x5b99c6,_0x2cee74,_0x2ea3c7,_0x215e10)=>{const _0x21c234=_0x3a7f8d;for(var _0x3b90ce=_0x215e10>0x1?void 0x0:_0x215e10?nt(_0x2cee74,_0x2ea3c7):_0x2cee74,_0x546079=_0x5b99c6[_0x21c234(0x355)]-0x1,_0x5ee49e;_0x546079>=0x0;_0x546079--)(_0x5ee49e=_0x5b99c6[_0x546079])&&(_0x3b90ce=_0x5ee49e(_0x3b90ce)||_0x3b90ce);return _0x3b90ce;},K=(_0x2fa515,_0x3916c7)=>(_0x214c78,_0x292f7f)=>_0x3916c7(_0x214c78,_0x292f7f,_0x2fa515);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3a7f8d(0x404)]{constructor(_0x28b65e,_0x2ad2aa,_0x9301db,_0x237be5){const _0x22ec91=_0x3a7f8d;super(),_(this,'_status$',new I[(_0x22ec91(0x32b))](u[_0x22ec91(0x22c)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x28b65e,this[_0x22ec91(0x41e)]=_0x2ad2aa,this['_collaborationController']=_0x9301db,this['_uiPartsService']=_0x237be5,this[_0x22ec91(0x3cc)](),this[_0x22ec91(0x236)]());}[_0x3a7f8d(0x236)](){const _0x2775a1=_0x3a7f8d;this[_0x2775a1(0x20e)](this[_0x2775a1(0x2f0)]['focused$'][_0x2775a1(0x30f)](I[_0x2775a1(0x2fa)](()=>{const _0x37f919=_0x2775a1,_0xca2382=this[_0x37f919(0x2f0)][_0x37f919(0x199)]();return _0xca2382?this[_0x37f919(0x183)][_0x37f919(0x390)](_0xca2382[_0x37f919(0x3c1)]()):I['of'](null);}),I[_0x2775a1(0x2fa)](_0x83570=>_0x83570?_0x83570['status$']:I['of'](u[_0x2775a1(0x22c)][_0x2775a1(0x1a4)])))[_0x2775a1(0x205)](_0x3e91ba=>{const _0x266250=_0x2775a1;this[_0x266250(0x25f)][_0x266250(0x419)](_0x3e91ba);}));}['_initStatusComponent'](){const _0x521c59=_0x3a7f8d;this[_0x521c59(0x20e)](this[_0x521c59(0x348)]['registerComponent'](O['BuiltInUIPart'][_0x521c59(0x360)],()=>O[_0x521c59(0x34a)](ot({'status$':this['_status$'][_0x521c59(0x208)]()}),this[_0x521c59(0x41e)])));}},exports[_0x3a7f8d(0x1a7)]=rt([K(0x0,a[_0x3a7f8d(0x2c5)]),K(0x1,a[_0x3a7f8d(0x3e3)](a['Injector'])),K(0x2,a[_0x3a7f8d(0x3e3)](u[_0x3a7f8d(0x28a)])),K(0x3,O[_0x3a7f8d(0x35d)])],exports[_0x3a7f8d(0x1a7)]);function ot(_0x319ff8){const {status$:_0x5be492}=_0x319ff8;return function(){const _0x52d308=_0x19d3;return M[_0x52d308(0x407)](it,{'status$':_0x5be492});};}const Oe=a['createIdentifier'](_0x3a7f8d(0x385));var at=Object[_0x3a7f8d(0x28c)],ct=(_0x8a760a,_0x119834,_0x7186e0,_0x401d35)=>{const _0x5ce36c=_0x3a7f8d;for(var _0x59864c=_0x401d35>0x1?void 0x0:_0x401d35?at(_0x119834,_0x7186e0):_0x119834,_0x280b29=_0x8a760a[_0x5ce36c(0x355)]-0x1,_0x4dd179;_0x280b29>=0x0;_0x280b29--)(_0x4dd179=_0x8a760a[_0x280b29])&&(_0x59864c=_0x4dd179(_0x59864c)||_0x59864c);return _0x59864c;},Y=(_0x5c5c6a,_0x2e0adf)=>(_0x36051e,_0x17682d)=>_0x2e0adf(_0x36051e,_0x17682d,_0x5c5c6a);exports[_0x3a7f8d(0x3ce)]=class extends a[_0x3a7f8d(0x270)]{constructor(_0x317d00,_0x25812f,_0x46a914,_0x20ffb7,_0x4f20b0){const _0x113624=_0x3a7f8d;super(),this['_urlService']=_0x317d00,this[_0x113624(0x339)]=_0x25812f,this[_0x113624(0x308)]=_0x46a914,this[_0x113624(0x219)]=_0x20ffb7,_0x4f20b0?_0x4f20b0==null||_0x4f20b0[_0x113624(0x178)]()[_0x113624(0x284)](()=>this[_0x113624(0x34d)]()):(this[_0x113624(0x339)][_0x113624(0x32d)](_0x113624(0x3f3),_0x113624(0x16f)),this[_0x113624(0x34d)]());}async[_0x3a7f8d(0x34d)](){const _0x4c267b=_0x3a7f8d,_0x521f32=this['_urlService'][_0x4c267b(0x310)](_0x4c267b(0x374)),_0x568783=this['_urlService'][_0x4c267b(0x310)](_0x4c267b(0x397)),_0x382f2c=this[_0x4c267b(0x1c2)][_0x4c267b(0x310)](_0x4c267b(0x384));if(!_0x521f32||!_0x568783){this[_0x4c267b(0x339)]['debug'](_0x4c267b(0x3f3),_0x4c267b(0x372));return;}const _0x21a989=await this['_dataLoaderService'][_0x4c267b(0x244)](_0x521f32,Number(_0x568783),_0x382f2c);_0x21a989&&_0x21a989 instanceof a[_0x4c267b(0x421)]&&this[_0x4c267b(0x2c9)](_0x21a989);}async['_setupSubUnitSync'](_0x2955a9){const _0x2d235c=_0x3a7f8d;await this['_updateSubUnitFromURLParams'](_0x2955a9),_0x2955a9[_0x2d235c(0x29c)][_0x2d235c(0x30f)](I[_0x2d235c(0x202)](this[_0x2d235c(0x18e)]))[_0x2d235c(0x205)](_0x5f4eff=>{const _0x86d3e7=_0x2d235c;_0x5f4eff&&this[_0x86d3e7(0x1dc)](_0x5f4eff);}),this[_0x2d235c(0x1c2)][_0x2d235c(0x223)][_0x2d235c(0x30f)](I[_0x2d235c(0x202)](this[_0x2d235c(0x18e)]))[_0x2d235c(0x205)](()=>this[_0x2d235c(0x1cb)](_0x2955a9));}[_0x3a7f8d(0x1dc)](_0x369e7b,_0x2fadc7=!0x1){const _0x9aad7c=_0x3a7f8d,_0x27f167=this[_0x9aad7c(0x1c2)][_0x9aad7c(0x310)](_0x9aad7c(0x384));_0x369e7b[_0x9aad7c(0x25e)]()!==_0x27f167&&this['_urlService']['setParam'](_0x9aad7c(0x384),_0x369e7b[_0x9aad7c(0x25e)](),_0x2fadc7);}async[_0x3a7f8d(0x1cb)](_0x37ed03){const _0x5b9bce=_0x3a7f8d;var _0x208b6c;const _0x2ecd0b=this['_urlService'][_0x5b9bce(0x310)]('subunit');if(!_0x2ecd0b||!_0x37ed03[_0x5b9bce(0x26c)](_0x2ecd0b)){const _0xd5f4be=_0x37ed03[_0x5b9bce(0x3db)]()[0x0],_0x2ac42c=_0x37ed03[_0x5b9bce(0x26c)](_0xd5f4be);if(!_0x2ac42c)return;this[_0x5b9bce(0x1dc)](_0x2ac42c,!0x0),await this[_0x5b9bce(0x308)][_0x5b9bce(0x2e9)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x37ed03[_0x5b9bce(0x3c1)](),'subUnitId':_0xd5f4be});return;}((_0x208b6c=_0x37ed03[_0x5b9bce(0x377)]())==null?void 0x0:_0x208b6c[_0x5b9bce(0x25e)]())!==_0x2ecd0b&&await this[_0x5b9bce(0x308)][_0x5b9bce(0x2e9)](v[_0x5b9bce(0x1f3)]['id'],{'unitId':_0x37ed03[_0x5b9bce(0x3c1)](),'subUnitId':_0x2ecd0b});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x3a7f8d(0x321)]),Y(0x2,a[_0x3a7f8d(0x3cd)]),Y(0x3,a[_0x3a7f8d(0x3e3)](u[_0x3a7f8d(0x18c)])),Y(0x4,a['Optional'](qe[_0x3a7f8d(0x40a)]))],exports[_0x3a7f8d(0x3ce)]);var lt=Object[_0x3a7f8d(0x28c)],_t=(_0xd9b7d9,_0x316789,_0xc2a5a7,_0xd2288c)=>{const _0x46a537=_0x3a7f8d;for(var _0x4ea8d3=_0xd2288c>0x1?void 0x0:_0xd2288c?lt(_0x316789,_0xc2a5a7):_0x316789,_0x5e0bbe=_0xd9b7d9[_0x46a537(0x355)]-0x1,_0x29ccf3;_0x5e0bbe>=0x0;_0x5e0bbe--)(_0x29ccf3=_0xd9b7d9[_0x5e0bbe])&&(_0x4ea8d3=_0x29ccf3(_0x4ea8d3)||_0x4ea8d3);return _0x4ea8d3;},De=(_0x30f7e3,_0x2eb875)=>(_0xa8cb1b,_0x206c00)=>_0x2eb875(_0xa8cb1b,_0x206c00,_0x30f7e3);let me=class extends a[_0x3a7f8d(0x270)]{constructor(_0x39b82f,_0x4e702f){const _0x42ba53=_0x3a7f8d;super(),this[_0x42ba53(0x416)]=_0x39b82f,this[_0x42ba53(0x283)]=_0x4e702f,this[_0x42ba53(0x34d)]();}[_0x3a7f8d(0x34d)](){const _0x4be42c=_0x3a7f8d,_0x2ac3b1=this;this[_0x4be42c(0x20e)](this[_0x4be42c(0x416)]['addClipboardHook']({'onBeforePasteImage':async _0x94233f=>{const _0x5c4153=_0x4be42c,_0x14186d=await _0x2ac3b1[_0x5c4153(0x283)][_0x5c4153(0x2ed)](_0x94233f);return _0x14186d?{'source':_0x14186d[_0x5c4153(0x19e)],'imageSourceType':_0x14186d[_0x5c4153(0x23d)]}:null;}}));}};me=_t([De(0x0,T[_0x3a7f8d(0x17e)]),De(0x1,ze[_0x3a7f8d(0x417)])],me);const Ne=[_0x3a7f8d(0x36b),_0x3a7f8d(0x356),'green.600',_0x3a7f8d(0x29f),_0x3a7f8d(0x3bc),'yellow.400'];class Re extends a[_0x3a7f8d(0x404)]{constructor(){const _0x37de8a=_0x3a7f8d;super(...arguments),_(this,_0x37de8a(0x365),new Map()),_(this,_0x37de8a(0x338),0x0);}[_0x3a7f8d(0x246)](_0x2fb5fd){const _0x56edcc=_0x3a7f8d;if(this['_assignedColors']['has'](_0x2fb5fd))return this[_0x56edcc(0x365)][_0x56edcc(0x3af)](_0x2fb5fd);const _0x163a95=Ne[this[_0x56edcc(0x338)]];return this['_colorIndex']=(this[_0x56edcc(0x338)]+0x1)%Ne[_0x56edcc(0x355)],this[_0x56edcc(0x365)][_0x56edcc(0x23b)](_0x2fb5fd,_0x163a95),_0x163a95;}}function Fe(_0x55a98d){const _0x3b0f98=_0x3a7f8d;let _0x2f60a7='';for(const _0x2db03a of _0x55a98d){const {startOffset:_0x2f28bc,endOffset:_0x482c51,isActive:_0x3223af,rangeType:_0x34e4ab,segmentId:_0x2eb3c4,segmentPage:_0x1d3240}=_0x2db03a;_0x2f60a7[_0x3b0f98(0x355)]&&(_0x2f60a7+=','),_0x2f60a7+=_0x2f28bc+':'+_0x482c51+':'+(_0x3223af?'1':'0')+':'+_0x34e4ab+':'+_0x2eb3c4+':'+_0x1d3240;}return _0x2f60a7;}function ht(_0x2ad7b0){const _0x7e82f5=_0x3a7f8d,_0x1622e6=_0x2ad7b0[_0x7e82f5(0x232)](','),_0x233997=[];for(const _0x121d0e of _0x1622e6){const [_0x2c5a1d,_0x304504,_0x2bf476,_0x33259d,_0x459d73,_0x1685c0]=_0x121d0e['split'](':');_0x233997[_0x7e82f5(0x201)]({'startOffset':Number(_0x2c5a1d),'endOffset':Number(_0x304504),'collapsed':_0x2c5a1d===_0x304504,'isActive':_0x2bf476==='1','rangeType':_0x33259d===a[_0x7e82f5(0x31b)][_0x7e82f5(0x3c2)]?a[_0x7e82f5(0x31b)][_0x7e82f5(0x3c2)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x459d73=='string'?String(_0x459d73):'','segmentPage':Number(_0x1685c0!=null?_0x1685c0:-0x1)});}return _0x233997[_0x7e82f5(0x2ec)](_0x11df0e=>_0x11df0e['isActive'])||(_0x233997[0x0][_0x7e82f5(0x1d6)]=!0x0),_0x233997;}class be extends a[_0x3a7f8d(0x270)]{constructor(){const _0x27ad66=_0x3a7f8d;super(...arguments),_(this,_0x27ad66(0x282),new I['BehaviorSubject'](null)),_(this,'collabCursorState$',this[_0x27ad66(0x282)][_0x27ad66(0x208)]());}[_0x3a7f8d(0x28b)](_0x1d1f85){const _0xb945b2=_0x3a7f8d,{unitID:_0x5d595e,memberID:_0x5da7c7,textRanges:_0x3c2d7f}=_0x1d1f85,_0x17e874=Fe(_0x3c2d7f);if(_0x17e874==='')return;const _0x2dd9c3={'unitID':_0x5d595e,'memberID':_0x5da7c7,'selection':_0x17e874};this[_0xb945b2(0x282)][_0xb945b2(0x419)](_0x2dd9c3);}}var ut=Object[_0x3a7f8d(0x28c)],It=(_0xd85f8,_0x58f1d8,_0xbb7895,_0xfca057)=>{const _0x161223=_0x3a7f8d;for(var _0x39ea99=_0xfca057>0x1?void 0x0:_0xfca057?ut(_0x58f1d8,_0xbb7895):_0x58f1d8,_0x38a501=_0xd85f8[_0x161223(0x355)]-0x1,_0x191ab9;_0x38a501>=0x0;_0x38a501--)(_0x191ab9=_0xd85f8[_0x38a501])&&(_0x39ea99=_0x191ab9(_0x39ea99)||_0x39ea99);return _0x39ea99;},U=(_0x1f7277,_0xd2c849)=>(_0x25a886,_0x4e6193)=>_0xd2c849(_0x25a886,_0x4e6193,_0x1f7277);const St=0x12c,dt=0x64;let ve=class extends a[_0x3a7f8d(0x270)]{constructor(_0x524e8b,_0x125ab3,_0x3ebacf,_0x32a44e,_0x31ab96,_0x569570,_0x471be9,_0x537d4f,_0x53b95a){const _0x3b6485=_0x3a7f8d;super(),_(this,'_online',!0x1),_(this,_0x3b6485(0x34d),!0x1),_(this,'_cursorInfo$',new I[(_0x3b6485(0x32b))](new Map())),_(this,_0x3b6485(0x3a6),this[_0x3b6485(0x1eb)][_0x3b6485(0x208)]()),_(this,'_roomMembers$',new I[(_0x3b6485(0x32b))]([])),_(this,_0x3b6485(0x1ce),this[_0x3b6485(0x23c)][_0x3b6485(0x30f)](I[_0x3b6485(0x37a)](St))),_(this,'_updateLocalCursor',a[_0x3b6485(0x33c)](_0x2e7f14=>{const _0x2f6b91=_0x3b6485,_0xb6269f={'eventID':g[_0x2f6b91(0x1b0)][_0x2f6b91(0x3d2)],'data':{'unitID':this[_0x2f6b91(0x228)],'memberID':this[_0x2f6b91(0x2d8)]['getMemberID'](),'selection':Fe(_0x2e7f14)}};this[_0x2f6b91(0x2d8)][_0x2f6b91(0x409)](_0xb6269f,this[_0x2f6b91(0x228)]);},dt)),(this['unitID']=_0x524e8b,this['_session']=_0x125ab3,this[_0x3b6485(0x41e)]=_0x3ebacf,this[_0x3b6485(0x3ca)]=_0x32a44e,this[_0x3b6485(0x3b8)]=_0x31ab96,this[_0x3b6485(0x2d7)]=_0x569570,this[_0x3b6485(0x327)]=_0x471be9,this[_0x3b6485(0x2f0)]=_0x537d4f,this['_commandService']=_0x53b95a);}get[_0x3a7f8d(0x2df)](){const _0x1eaadf=_0x3a7f8d;return this[_0x1eaadf(0x1eb)][_0x1eaadf(0x2ca)]();}get[_0x3a7f8d(0x22f)](){const _0x1a8811=_0x3a7f8d;return this['_roomMembers$'][_0x1a8811(0x2ca)]();}[_0x3a7f8d(0x221)](){const _0x49fb6f=_0x3a7f8d;super[_0x49fb6f(0x221)](),this[_0x49fb6f(0x1eb)]['next'](new Map()),this['_cursorInfo$'][_0x49fb6f(0x33b)](),this[_0x49fb6f(0x23c)][_0x49fb6f(0x419)]([]),this[_0x49fb6f(0x23c)][_0x49fb6f(0x33b)]();}['init'](){const _0x2ae54d=_0x3a7f8d;this['_init']||(this[_0x2ae54d(0x34d)]=!0x0,this[_0x2ae54d(0x2d8)][_0x2ae54d(0x3e6)]['pipe'](I[_0x2ae54d(0x202)](this[_0x2ae54d(0x18e)]))[_0x2ae54d(0x205)](_0x24137d=>{const _0x4a9be2=_0x2ae54d;_0x24137d===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x4a9be2(0x1bf)]();}),this[_0x2ae54d(0x2d8)][_0x2ae54d(0x269)][_0x2ae54d(0x30f)](I[_0x2ae54d(0x202)](this[_0x2ae54d(0x18e)]))[_0x2ae54d(0x205)](_0x227be5=>{const _0x1fb5e1=_0x2ae54d,_0x2813b7=_0x227be5[_0x1fb5e1(0x400)];_0x2813b7===g['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x227be5),_0x2813b7===g[_0x1fb5e1(0x1b0)][_0x1fb5e1(0x2ef)]&&this['_onCursorDelete'](_0x227be5);}),this[_0x2ae54d(0x20e)](this[_0x2ae54d(0x308)]['onCommandExecuted'](_0x368c7f=>{const _0x2e4063=_0x2ae54d,_0x5458d3=_0x368c7f[_0x2e4063(0x2ea)];_0x5458d3!=null&&this['_online']&&_0x368c7f['id']===V[_0x2e4063(0x1ba)]['id']&&_0x5458d3['unitId']===this[_0x2e4063(0x228)]&&_0x5458d3[_0x2e4063(0x22e)]===!0x1&&_0x5458d3[_0x2e4063(0x3f2)][_0x2e4063(0x355)]>0x0&&this[_0x2e4063(0x2ee)](_0x5458d3[_0x2e4063(0x3f2)]);})),this[_0x2ae54d(0x2d7)][_0x2ae54d(0x1f2)][_0x2ae54d(0x30f)](I['takeUntil'](this[_0x2ae54d(0x18e)]))['subscribe'](_0xebbb17=>{const _0x2e154f=_0x2ae54d;if((_0xebbb17==null?void 0x0:_0xebbb17['unitID'])!==this[_0x2e154f(0x228)])return;const _0x38327e={'eventID':g[_0x2e154f(0x1b0)]['UPDATE_CURSOR'],'data':_0xebbb17};this[_0x2e154f(0x318)](_0x38327e);}),this[_0x2ae54d(0x20e)](this[_0x2ae54d(0x308)][_0x2ae54d(0x265)](_0x2319e7=>{const _0x4a18c8=_0x2ae54d;if(_0x2319e7[_0x4a18c8(0x2ea)]==null)return;const _0x1ab465=_0x2319e7['params'];if(_0x2319e7['id']!==V[_0x4a18c8(0x36e)]['id']||_0x1ab465[_0x4a18c8(0x3eb)]!==this[_0x4a18c8(0x228)])return;const _0x2128eb={'id':_0x4a18c8(0x171),'params':_0x1ab465},_0x548da4=this[_0x4a18c8(0x2df)];for(const [_0x4a44ef,_0x5593d5]of _0x548da4){const _0x110659={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x4a18c8(0x228)],'actions':null,'textRanges':_0x5593d5[_0x4a18c8(0x3f2)]}},_0x1884b6=this[_0x4a18c8(0x327)][_0x4a18c8(0x1d2)](_0x2128eb,_0x110659,!0x1);if(g[_0x4a18c8(0x2fc)](_0x1884b6))throw _0x1884b6['error'];_0x548da4[_0x4a18c8(0x23b)](_0x4a44ef,{..._0x5593d5,'ranges':_0x1884b6[_0x4a18c8(0x309)][_0x4a18c8(0x2ea)][_0x4a18c8(0x3cb)]});}queueMicrotask(()=>{const _0x247b3c=_0x4a18c8;this[_0x247b3c(0x1eb)][_0x247b3c(0x419)](_0x548da4);});})));}[_0x3a7f8d(0x318)](_0x8eb22f){const _0x1a0d86=_0x3a7f8d;var _0xfa4e67,_0x451e31;const {memberID:_0x536f2f,selection:_0x5ccfb5}=_0x8eb22f[_0x1a0d86(0x363)],_0x28299f=ht(_0x5ccfb5),_0x2486aa=(_0x451e31=(_0xfa4e67=this[_0x1a0d86(0x3b8)]['getMember'](this['unitID'],_0x536f2f))==null?void 0x0:_0xfa4e67[_0x1a0d86(0x3df)])!=null?_0x451e31:'Unknown\x20user',_0x58f507={'color':this[_0x1a0d86(0x3ca)][_0x1a0d86(0x246)](_0x536f2f),'name':_0x2486aa,'ranges':_0x28299f},_0x39fc78=this[_0x1a0d86(0x2df)];_0x39fc78[_0x1a0d86(0x23b)](_0x536f2f,_0x58f507),this[_0x1a0d86(0x1eb)][_0x1a0d86(0x419)](_0x39fc78);}[_0x3a7f8d(0x34e)](_0x1ced14){const _0x54564d=_0x3a7f8d,{memberID:_0x3c8bd1}=_0x1ced14[_0x54564d(0x363)],_0x105b59=this[_0x54564d(0x2df)];_0x105b59[_0x54564d(0x41b)](_0x3c8bd1),this[_0x54564d(0x1eb)][_0x54564d(0x419)](_0x105b59);}[_0x3a7f8d(0x3da)](){const _0x2d325c=_0x3a7f8d;var _0x46ad86;if(this[_0x2d325c(0x2f8)]=!0x0,((_0x46ad86=this[_0x2d325c(0x2f0)][_0x2d325c(0x199)]())==null?void 0x0:_0x46ad86[_0x2d325c(0x3c1)]())!==this[_0x2d325c(0x228)])return;const _0x2c46f7=this[_0x2d325c(0x41e)][_0x2d325c(0x3af)](V[_0x2d325c(0x3c8)])[_0x2d325c(0x217)]();Array[_0x2d325c(0x399)](_0x2c46f7)&&_0x2c46f7[_0x2d325c(0x355)]>0x0&&this['_updateLocalCursor'](_0x2c46f7);}[_0x3a7f8d(0x1bf)](){const _0x5a9828=_0x3a7f8d;this[_0x5a9828(0x2f8)]=!0x1;}};ve=It([U(0x2,a[_0x3a7f8d(0x3e3)](a['Injector'])),U(0x3,a[_0x3a7f8d(0x3e3)](Re)),U(0x4,a[_0x3a7f8d(0x3e3)](u['MemberService'])),U(0x5,a[_0x3a7f8d(0x3e3)](be)),U(0x6,g[_0x3a7f8d(0x323)]),U(0x7,a[_0x3a7f8d(0x2c5)]),U(0x8,a[_0x3a7f8d(0x3cd)])],ve);var ft=Object[_0x3a7f8d(0x28c)],mt=(_0x3f0f59,_0xa77435,_0x557fbe,_0x2c7e92)=>{for(var _0x39ee8e=_0x2c7e92>0x1?void 0x0:_0x2c7e92?ft(_0xa77435,_0x557fbe):_0xa77435,_0x5c9025=_0x3f0f59['length']-0x1,_0x1911bf;_0x5c9025>=0x0;_0x5c9025--)(_0x1911bf=_0x3f0f59[_0x5c9025])&&(_0x39ee8e=_0x1911bf(_0x39ee8e)||_0x39ee8e);return _0x39ee8e;},w=(_0x366a2f,_0x4d76f5)=>(_0x28cd08,_0x5a6d3b)=>_0x4d76f5(_0x28cd08,_0x5a6d3b,_0x366a2f);const vt=0x12c,gt=0x64,Et=()=>{let _0xf4bed2=[],_0x58b818=!0x1;return _0x523c0=>{const _0x179d3d=_0x19d3;_0xf4bed2[_0x179d3d(0x201)](_0x523c0),_0x58b818||(_0x58b818=!0x0,setTimeout(()=>{const _0x3d826c=_0x179d3d;_0xf4bed2[_0x3d826c(0x3f4)](_0x2efcc8=>_0x2efcc8()),_0xf4bed2=[],_0x58b818=!0x1;}));};};let ge=class extends a[_0x3a7f8d(0x270)]{constructor(_0xa3df8b,_0x5cf2f4,_0x36e810,_0x4f11d1,_0x117866,_0x1291c3,_0x504323,_0xadbf59){const _0x34b034=_0x3a7f8d;super(),_(this,'_online',!0x1),_(this,_0x34b034(0x34d),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x34b034(0x3a6),this['_cursorInfo$'][_0x34b034(0x208)]()),_(this,_0x34b034(0x23c),new I[(_0x34b034(0x32b))]([])),_(this,_0x34b034(0x1ce),this[_0x34b034(0x23c)][_0x34b034(0x30f)](I[_0x34b034(0x37a)](vt))),_(this,_0x34b034(0x2ee),a['debounce']((_0x4f7883,_0x315208)=>{const _0x5adf6d=_0x34b034,_0x395052={'eventID':g[_0x5adf6d(0x1b0)][_0x5adf6d(0x3d2)],'data':{'unitID':this[_0x5adf6d(0x228)],'memberID':this[_0x5adf6d(0x2d8)][_0x5adf6d(0x2f7)](),'selection':B[_0x5adf6d(0x3a1)](_0x4f7883,_0x315208[_0x5adf6d(0x38b)])}};this[_0x5adf6d(0x2d8)][_0x5adf6d(0x409)](_0x395052,this['unitID']);},gt)),(this[_0x34b034(0x228)]=_0xa3df8b,this[_0x34b034(0x2d8)]=_0x5cf2f4,this['_injector']=_0x36e810,this[_0x34b034(0x3ca)]=_0x4f11d1,this['_memberService']=_0x117866,this[_0x34b034(0x2f0)]=_0x1291c3,this[_0x34b034(0x308)]=_0x504323,this[_0x34b034(0x281)]=_0xadbf59);}get[_0x3a7f8d(0x2df)](){const _0x47f081=_0x3a7f8d;return this[_0x47f081(0x1eb)]['getValue']();}get[_0x3a7f8d(0x22f)](){const _0x419aa2=_0x3a7f8d;return this[_0x419aa2(0x23c)][_0x419aa2(0x2ca)]();}[_0x3a7f8d(0x221)](){const _0x187635=_0x3a7f8d;super['dispose'](),this[_0x187635(0x1eb)][_0x187635(0x419)](new Map()),this[_0x187635(0x1eb)]['complete'](),this[_0x187635(0x23c)][_0x187635(0x419)]([]),this[_0x187635(0x23c)]['complete']();}['init'](){const _0x27c664=_0x3a7f8d;this[_0x27c664(0x34d)]||(this[_0x27c664(0x34d)]=!0x0,this['_session']['sessionStatus$'][_0x27c664(0x30f)](I[_0x27c664(0x202)](this[_0x27c664(0x18e)]))[_0x27c664(0x205)](_0x4f4058=>{const _0x8b7b3c=_0x27c664;_0x4f4058===u['SessionStatus'][_0x8b7b3c(0x26d)]?this[_0x8b7b3c(0x3da)]():this['_toggleOffline']();}),this[_0x27c664(0x2d8)][_0x27c664(0x269)][_0x27c664(0x30f)](I['takeUntil'](this[_0x27c664(0x18e)]))[_0x27c664(0x205)](_0x580a76=>{const _0x172252=_0x27c664,_0x4c7b03=_0x580a76[_0x172252(0x400)];_0x4c7b03===g[_0x172252(0x1b0)][_0x172252(0x3d2)]&&this[_0x172252(0x318)](_0x580a76),_0x4c7b03===g[_0x172252(0x1b0)][_0x172252(0x2ef)]&&this['_onCursorDelete'](_0x580a76);}),this[_0x27c664(0x38e)](),this[_0x27c664(0x20e)](this[_0x27c664(0x308)]['onCommandExecuted'](_0x1bb6c9=>{const _0x24151d=_0x27c664;if(this[_0x24151d(0x2f8)]&&_0x1bb6c9['id']===v[_0x24151d(0x203)]['id']&&_0x1bb6c9[_0x24151d(0x2ea)][_0x24151d(0x3eb)]===this[_0x24151d(0x228)]){const _0xfbf0e4=_0x1bb6c9[_0x24151d(0x2ea)];this[_0x24151d(0x2ee)](_0xfbf0e4[_0x24151d(0x1d1)],_0xfbf0e4['selections'][0x0]);}})));}[_0x3a7f8d(0x318)](_0x52e2f3){const _0x4d4a6a=_0x3a7f8d;var _0x15ef4e,_0x1c0ad3;const {memberID:_0x56ab75,selection:_0x522851}=_0x52e2f3[_0x4d4a6a(0x363)],{sheetName:_0x573f7f,range:_0x1b3e71}=B[_0x4d4a6a(0x2a1)](_0x522851),_0x52eeb8={'name':(_0x1c0ad3=(_0x15ef4e=this['_memberService']['getMember'](this[_0x4d4a6a(0x228)],_0x56ab75))==null?void 0x0:_0x15ef4e[_0x4d4a6a(0x3df)])!=null?_0x1c0ad3:_0x4d4a6a(0x36a),'range':this[_0x4d4a6a(0x3be)](_0x573f7f,_0x1b3e71),'sheetID':_0x573f7f,'color':this[_0x4d4a6a(0x3ca)][_0x4d4a6a(0x246)](_0x56ab75),'selection':_0x522851},_0x473b8c=this[_0x4d4a6a(0x2df)];_0x473b8c[_0x4d4a6a(0x23b)](_0x56ab75,_0x52eeb8),this[_0x4d4a6a(0x1eb)][_0x4d4a6a(0x419)](_0x473b8c);}['_onCursorDelete'](_0x478825){const _0x526482=_0x3a7f8d,{memberID:_0x39d049}=_0x478825[_0x526482(0x363)],_0x295c3e=this['cursorInfo'];_0x295c3e[_0x526482(0x41b)](_0x39d049),this[_0x526482(0x1eb)][_0x526482(0x419)](_0x295c3e);}['_getMergeRange'](_0x5d3bd0,_0x52708d){const _0x484fc7=_0x3a7f8d;var _0xdc6844,_0x55ea3e;const _0x7f326f=(_0x55ea3e=(_0xdc6844=this[_0x484fc7(0x2f0)][_0x484fc7(0x198)](this[_0x484fc7(0x228)]))==null?void 0x0:_0xdc6844[_0x484fc7(0x26c)](_0x5d3bd0))==null?void 0x0:_0x55ea3e[_0x484fc7(0x1d8)]();return(_0x7f326f==null?void 0x0:_0x7f326f[_0x484fc7(0x314)](_0x115e85=>a['Rectangle']['contains'](_0x115e85,_0x52708d)))||_0x52708d;}[_0x3a7f8d(0x38e)](){const _0x3aaea0=_0x3a7f8d,_0x501635=new a[(_0x3aaea0(0x2a4))](),_0x3cf7f0=Et(),_0x5d758c=()=>{const _0x44de52=_0x3aaea0;_0x501635[_0x44de52(0x221)]();const _0x5ff9e7=(_0x47ada0,_0x4ce1fe,_0x4fff38,_0x385995)=>{const _0x2ab682=_0x44de52;let _0x3a1a65=[];switch(_0x47ada0['id']){case v[_0x2ab682(0x40c)][_0x2ab682(0x418)]:{_0x3a1a65=v[_0x2ab682(0x1b2)](_0x47ada0,_0x385995);break;}case v['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x3a1a65=v['handleDeleteRangeMoveUp'](_0x47ada0,_0x385995);break;}case v[_0x2ab682(0x40c)][_0x2ab682(0x306)]:{_0x3a1a65=v['handleInsertCol'](_0x47ada0,_0x385995);break;}case v[_0x2ab682(0x40c)][_0x2ab682(0x41a)]:{_0x3a1a65=v[_0x2ab682(0x349)](_0x47ada0,_0x385995);break;}case v[_0x2ab682(0x40c)][_0x2ab682(0x1ea)]:{_0x3a1a65=v[_0x2ab682(0x1c4)](_0x47ada0,_0x385995);break;}case v[_0x2ab682(0x40c)]['InsertRowCommandId']:{_0x3a1a65=v[_0x2ab682(0x3e8)](_0x47ada0,_0x385995);break;}case v[_0x2ab682(0x40c)]['MoveRangeCommandId']:{_0x3a1a65=v[_0x2ab682(0x324)](_0x47ada0,_0x385995);break;}case v[_0x2ab682(0x40c)]['RemoveColCommandId']:{_0x3a1a65=v['handleIRemoveCol'](_0x47ada0,_0x385995);break;}case v['EffectRefRangId'][_0x2ab682(0x213)]:{_0x3a1a65=v['handleIRemoveRow'](_0x47ada0,_0x385995);break;}}const _0x279a6e=v['runRefRangeMutations'](_0x3a1a65,_0x385995),_0x26bc58=this[_0x2ab682(0x2df)][_0x2ab682(0x3af)](_0x4ce1fe);if(_0x26bc58&&_0x279a6e){const _0x3ee403={..._0x26bc58,'range':_0x279a6e};this['cursorInfo'][_0x2ab682(0x23b)](_0x4ce1fe,_0x3ee403),_0x3cf7f0(()=>{const _0x569c0d=_0x2ab682,_0x119d0d=this['_refRangeService'][_0x569c0d(0x190)](_0x279a6e,_0x22a2e3=>(_0x119d0d[_0x569c0d(0x221)](),_0x5ff9e7(_0x22a2e3,_0x4ce1fe,_0x4fff38,_0x279a6e)));_0x501635[_0x569c0d(0x383)](_0x119d0d);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x44de52(0x3f4)]((_0x23f4fd,_0x411579)=>{const _0x268486=_0x44de52,{range:_0x333b9f,sheetID:_0x54eed9}=_0x23f4fd,_0x1b54cb=this[_0x268486(0x281)][_0x268486(0x190)](_0x333b9f,_0xd90248=>(_0x1b54cb[_0x268486(0x221)](),_0x5ff9e7(_0xd90248,_0x411579,_0x54eed9,_0x333b9f)));_0x501635[_0x268486(0x383)](_0x1b54cb);});};this['disposeWithMe'](a[_0x3aaea0(0x1a3)](this[_0x3aaea0(0x1eb)][_0x3aaea0(0x205)](()=>{_0x5d758c();})));}['_toggleOnline'](){const _0x4578b4=_0x3a7f8d;var _0x4e8f35,_0x524b19;if(this[_0x4578b4(0x2f8)]=!0x0,((_0x4e8f35=this['_univerInstanceService'][_0x4578b4(0x199)]())==null?void 0x0:_0x4e8f35[_0x4578b4(0x3c1)]())!==this[_0x4578b4(0x228)])return;const _0x104913=(_0x524b19=this[_0x4578b4(0x41e)][_0x4578b4(0x3af)](v[_0x4578b4(0x31d)])[_0x4578b4(0x1af)]())==null?void 0x0:_0x524b19[0x0],_0x4eedb3=this['_univerInstanceService']['getCurrentUnitForType'](a['UniverInstanceType'][_0x4578b4(0x289)])['getActiveSheet']();_0x104913&&_0x4eedb3&&this[_0x4578b4(0x2ee)](_0x4eedb3[_0x4578b4(0x25e)](),_0x104913);}[_0x3a7f8d(0x1bf)](){const _0x2b0b1e=_0x3a7f8d;this[_0x2b0b1e(0x2f8)]=!0x1;}};ge=mt([w(0x2,a[_0x3a7f8d(0x3e3)](a[_0x3a7f8d(0x2e1)])),w(0x3,a[_0x3a7f8d(0x3e3)](Re)),w(0x4,a[_0x3a7f8d(0x3e3)](u[_0x3a7f8d(0x3f0)])),w(0x5,a[_0x3a7f8d(0x2c5)]),w(0x6,a[_0x3a7f8d(0x3cd)]),w(0x7,a[_0x3a7f8d(0x3e3)](v[_0x3a7f8d(0x209)]))],ge);var Ct=Object[_0x3a7f8d(0x28c)],Tt=(_0x19ca10,_0x985ca0,_0x312fa6,_0x486a32)=>{const _0x410f8d=_0x3a7f8d;for(var _0x8f0531=_0x486a32>0x1?void 0x0:_0x486a32?Ct(_0x985ca0,_0x312fa6):_0x985ca0,_0x58af8c=_0x19ca10[_0x410f8d(0x355)]-0x1,_0x40e8ad;_0x58af8c>=0x0;_0x58af8c--)(_0x40e8ad=_0x19ca10[_0x58af8c])&&(_0x8f0531=_0x40e8ad(_0x8f0531)||_0x8f0531);return _0x8f0531;},ce=(_0x2cb83b,_0x585d8e)=>(_0x382921,_0x14b692)=>_0x585d8e(_0x382921,_0x14b692,_0x2cb83b);let F=class extends a[_0x3a7f8d(0x270)]{constructor(_0x2b5f26,_0x3a2f21,_0x24ee68){const _0x3dca67=_0x3a7f8d;super(),_(this,'_entities',new Map()),_(this,_0x3dca67(0x2c8),new I[(_0x3dca67(0x20c))]()),(this[_0x3dca67(0x2f0)]=_0x2b5f26,this[_0x3dca67(0x41e)]=_0x3a2f21,this[_0x3dca67(0x1fd)]=_0x24ee68,this[_0x3dca67(0x34d)]());}[_0x3a7f8d(0x221)](){const _0x4791f7=_0x3a7f8d;super[_0x4791f7(0x221)](),this['_entityInit$'][_0x4791f7(0x33b)](),this[_0x4791f7(0x2dd)][_0x4791f7(0x3f4)](_0x505ac6=>_0x505ac6['dispose']());}['getCollabCursors$'](_0x21b80b){const _0x1711ff=_0x3a7f8d;return this[_0x1711ff(0x2dd)][_0x1711ff(0x255)](_0x21b80b)?this['_entities']['get'](_0x21b80b)['cursorInfo$']:this[_0x1711ff(0x2c8)]['pipe'](I['filter'](_0x3098d0=>_0x3098d0[_0x1711ff(0x228)]===_0x21b80b),I[_0x1711ff(0x2fa)](_0x4a843e=>_0x4a843e[_0x1711ff(0x3a6)]));}['_init'](){const _0xc9d8b1=_0x3a7f8d;this[_0xc9d8b1(0x2f0)][_0xc9d8b1(0x3e1)](a['UniverInstanceType'][_0xc9d8b1(0x289)])[_0xc9d8b1(0x30f)](I['takeUntil'](this[_0xc9d8b1(0x18e)]))['subscribe'](async _0x23c6ad=>{const _0x1aef6e=_0xc9d8b1,_0x253100=_0x23c6ad['getUnitId'](),_0x282dd0=await this[_0x1aef6e(0x315)](_0x253100);this[_0x1aef6e(0x2c8)][_0x1aef6e(0x419)](_0x282dd0),this[_0x1aef6e(0x2dd)][_0x1aef6e(0x23b)](_0x253100,_0x282dd0);}),this[_0xc9d8b1(0x2f0)]['getTypeOfUnitAdded$'](a[_0xc9d8b1(0x1c7)][_0xc9d8b1(0x3dd)])['pipe'](I[_0xc9d8b1(0x202)](this[_0xc9d8b1(0x18e)]))[_0xc9d8b1(0x30f)](I[_0xc9d8b1(0x175)](_0x4f7f69=>!_0x4f7f69[_0xc9d8b1(0x3c1)]()['startsWith']('__')))[_0xc9d8b1(0x205)](async _0x7a8ea9=>{const _0x5d7e86=_0xc9d8b1,_0x52515e=_0x7a8ea9[_0x5d7e86(0x3c1)](),_0xc81784=await this['_startDocCollabCursor'](_0x52515e);this[_0x5d7e86(0x2c8)][_0x5d7e86(0x419)](_0xc81784),this['_entities'][_0x5d7e86(0x23b)](_0x52515e,_0xc81784);}),I[_0xc9d8b1(0x1a5)](this[_0xc9d8b1(0x2f0)]['getTypeOfUnitDisposed$'](a[_0xc9d8b1(0x1c7)][_0xc9d8b1(0x3dd)]),this[_0xc9d8b1(0x2f0)]['getTypeOfUnitDisposed$'](a[_0xc9d8b1(0x1c7)][_0xc9d8b1(0x289)]))[_0xc9d8b1(0x30f)](I[_0xc9d8b1(0x202)](this['dispose$']))[_0xc9d8b1(0x205)](_0x3e3f9c=>{const _0x94f313=_0xc9d8b1,_0x275b77=_0x3e3f9c['getUnitId'](),_0xd46b76=this[_0x94f313(0x2dd)][_0x94f313(0x3af)](_0x275b77);_0xd46b76&&(_0xd46b76[_0x94f313(0x221)](),this[_0x94f313(0x2dd)][_0x94f313(0x41b)](_0x275b77));});}async[_0x3a7f8d(0x315)](_0x16fb21){const _0x8bed8c=_0x3a7f8d,_0x16d4b1=await this['_collabSessionService']['requireSession'](_0x16fb21),_0x239ff3=this[_0x8bed8c(0x41e)]['createInstance'](ge,_0x16fb21,_0x16d4b1);return _0x239ff3[_0x8bed8c(0x230)](),_0x239ff3;}async['_startDocCollabCursor'](_0x49be3d){const _0x5aec68=_0x3a7f8d,_0x45ee2b=await this[_0x5aec68(0x1fd)][_0x5aec68(0x1d4)](_0x49be3d),_0xdc0473=this[_0x5aec68(0x41e)][_0x5aec68(0x31e)](ve,_0x49be3d,_0x45ee2b);return _0xdc0473[_0x5aec68(0x230)](),_0xdc0473;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a['Inject'](a['Injector'])),ce(0x2,a['Inject'](u[_0x3a7f8d(0x28f)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x50b504,_0xf133dd){const _0x32d354=_0x3a7f8d;let {radius:_0x1871c5,width:_0x5777d1,height:_0x4c331d}=_0xf133dd;_0x1871c5=_0x1871c5!=null?_0x1871c5:0x0,_0x5777d1=_0x5777d1!=null?_0x5777d1:0x1e,_0x4c331d=_0x4c331d!=null?_0x4c331d:0x1e;let _0x27a1d8=0x0,_0x2bc3b9=0x0,_0x11f443=0x0;_0x27a1d8=_0x2bc3b9=_0x11f443=Math[_0x32d354(0x402)](_0x1871c5,_0x5777d1/0x2,_0x4c331d/0x2),_0x50b504['beginPath'](),_0x50b504[_0x32d354(0x24f)](_0x27a1d8,0x0),_0x50b504[_0x32d354(0x254)](_0x5777d1-_0x2bc3b9,0x0),_0x50b504[_0x32d354(0x210)](_0x5777d1-_0x2bc3b9,_0x2bc3b9,_0x2bc3b9,Math['PI']*0x3/0x2,0x0,!0x1),_0x50b504['lineTo'](_0x5777d1,_0x4c331d-_0x11f443),_0x50b504['arc'](_0x5777d1-_0x11f443,_0x4c331d-_0x11f443,_0x11f443,0x0,Math['PI']/0x2,!0x1),_0x50b504['lineTo'](0x0,_0x4c331d),_0x50b504[_0x32d354(0x254)](0x0,_0x27a1d8),_0x50b504[_0x32d354(0x210)](_0x27a1d8,_0x27a1d8,_0x27a1d8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x50b504[_0x32d354(0x3bb)](),_0xf133dd[_0x32d354(0x382)]&&(_0x50b504[_0x32d354(0x2b4)](),_0x50b504[_0x32d354(0x333)]=_0xf133dd['fill'],_0xf133dd['fillRule']===_0x32d354(0x168)?_0x50b504[_0x32d354(0x382)](_0x32d354(0x168)):_0x50b504[_0x32d354(0x382)](),_0x50b504[_0x32d354(0x280)]());}class re extends C[_0x3a7f8d(0x16c)]{constructor(_0x53d648,_0x1804b6){const _0x5cf634=_0x3a7f8d;super(_0x53d648,_0x1804b6),_(this,_0x5cf634(0x3fa)),_(this,_0x5cf634(0x188)),(this[_0x5cf634(0x3fa)]=_0x1804b6==null?void 0x0:_0x1804b6[_0x5cf634(0x3fa)],this[_0x5cf634(0x188)]=_0x1804b6==null?void 0x0:_0x1804b6[_0x5cf634(0x188)]);}static['drawWith'](_0x266743,_0x2e63ba){const _0x449ed5=_0x3a7f8d,{text:_0x3382cc,color:_0x1f50c9}=_0x2e63ba;_0x266743['save'](),_0x266743['font']=_0x449ed5(0x252);const _0x2a3ef9=_0x266743[_0x449ed5(0x3d3)](_0x3382cc)[_0x449ed5(0x2fd)],_0x494b15=Math[_0x449ed5(0x402)](_0x2a3ef9+0x2*le,Ue);Ot(_0x266743,{'height':X,'radius':0x4,'width':_0x494b15,'fill':_0x1f50c9}),_0x266743[_0x449ed5(0x333)]=_0x449ed5(0x1b7);const _0x44f043=le,_0x47c51a=X-pt,_0x2d7c3f=Ue-0x2*le;if(_0x2a3ef9>_0x2d7c3f){let _0x21aa4e='',_0x4cf1c4=0x0;for(const _0x56c1af of _0x3382cc){const _0xfef8c2=_0x266743['measureText'](_0x56c1af)[_0x449ed5(0x2fd)];if(_0x4cf1c4+_0xfef8c2<=_0x2d7c3f-_0x266743['measureText'](_0x449ed5(0x361))[_0x449ed5(0x2fd)])_0x21aa4e+=_0x56c1af,_0x4cf1c4+=_0xfef8c2;else{_0x21aa4e+='...';break;}}_0x266743['fillText'](_0x21aa4e,_0x44f043,_0x47c51a);}else _0x266743[_0x449ed5(0x426)](_0x3382cc,_0x44f043,_0x47c51a);_0x266743[_0x449ed5(0x280)]();}[_0x3a7f8d(0x1e8)](_0x58b520){const _0xd26c31=_0x3a7f8d;re[_0xd26c31(0x2eb)](_0x58b520,this);}}const _e='collab-text-anchor-',Rt='collab-text-range-',bt=_0x3a7f8d(0x3d1),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x3a7f8d(0x1d0);class Le{constructor(_0x55ce64,_0x49d6f7,_0x5a4164,_0xbab5e6){const _0x103799=_0x3a7f8d;_(this,_0x103799(0x235),[]),_(this,_0x103799(0x2c1),null),_(this,_0x103799(0x20d),null),_(this,_0x103799(0x3ff),null),_(this,_0x103799(0x412),null),_(this,_0x103799(0x395),null),(this['_cursor']=_0x55ce64,this[_0x103799(0x278)]=_0x49d6f7,this['_docSkeleton']=_0x5a4164,this[_0x103799(0x1bc)]=_0xbab5e6,this['_render']());}set[_0x3a7f8d(0x2bd)](_0x28a120){const _0x13e3e8=_0x3a7f8d;_0x28a120?(this['_anchorDot']&&this['_anchorDot']['hide'](),this[_0x13e3e8(0x20d)]&&this['_textBubble'][_0x13e3e8(0x389)]()):(this['_anchorDot']&&this[_0x13e3e8(0x3ff)]['show'](),this['_textBubble']&&this[_0x13e3e8(0x20d)]['hide']());}[_0x3a7f8d(0x221)](){const _0x203219=_0x3a7f8d;for(const _0x2a03ad of this[_0x203219(0x235)])_0x2a03ad[_0x203219(0x221)]();this[_0x203219(0x20d)]&&this[_0x203219(0x20d)][_0x203219(0x221)](),this[_0x203219(0x3ff)]&&this[_0x203219(0x3ff)][_0x203219(0x221)](),this[_0x203219(0x2c1)]&&this[_0x203219(0x2c1)][_0x203219(0x221)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x373170=_0x3a7f8d;var _0x30a5e8;const {_docSkeleton:_0x1319ad,_document:_0x1d2354}=this,{color:_0x585947,name:_0x20b3cc,ranges:_0x342835}=this['_cursor'],_0x1dc796=_0x1d2354[_0x373170(0x1e2)](),{docsLeft:_0x1d7a9d,docsTop:_0x35d072}=_0x1dc796,_0x3d632b=new T['NodePositionConvertToCursor'](_0x1dc796,_0x1319ad);for(const {startOffset:_0x20ea0e,endOffset:_0x458f0e,rangeType:_0x45e032,segmentId:_0xc1fd17,segmentPage:_0x15b961,collapsed:_0x42e3d6,isActive:_0x5f0e33}of _0x342835){const _0x293a0b=_0x1319ad['findNodePositionByCharIndex'](_0x20ea0e,!0x0,_0xc1fd17,_0x15b961);let _0x2a3e28=_0x1319ad[_0x373170(0x2c7)](_0x458f0e,!0x0,_0xc1fd17,_0x15b961);if(_0x2a3e28==null&&(_0x2a3e28=_0x1319ad['findNodePositionByCharIndex'](_0x458f0e-0x1,!0x1,_0xc1fd17,_0x15b961)),_0x5f0e33){const {contentBoxPointGroup:_0x4a7b02}=_0x3d632b[_0x373170(0x398)](_0x2a3e28,_0x2a3e28);if(_0x4a7b02[_0x373170(0x355)]===0x0)continue;this[_0x373170(0x1de)](_0x585947,_0x4a7b02,_0x1d7a9d,_0x35d072,_0x20b3cc),this[_0x373170(0x395)]=this['_handleHover']();}if(_0x293a0b&&_0x2a3e28){if(_0x45e032===a['DOC_RANGE_TYPE'][_0x373170(0x19b)]){const _0x2a9867=new T['NodePositionConvertToRectRange'](_0x1dc796,_0x1319ad),{pointGroup:_0x2db490}=(_0x30a5e8=_0x2a9867[_0x373170(0x398)](_0x293a0b,_0x2a3e28))!=null?_0x30a5e8:{};if(_0x2db490==null||_0x2db490['length']===0x0)continue;this[_0x373170(0x3c3)](_0x585947,_0x2db490,_0x1d7a9d,_0x35d072);}else{if(!_0x42e3d6){const {borderBoxPointGroup:_0x14a7c4}=_0x3d632b['getRangePointData'](_0x293a0b,_0x2a3e28);if(_0x14a7c4[_0x373170(0x355)]===0x0)continue;this[_0x373170(0x2aa)](_0x585947,_0x14a7c4,_0x1d7a9d,_0x35d072);}}}}}['_drawAnchor'](_0x130649,_0x168918,_0x427e9c,_0x1f3afb,_0xf813a9){const _0x2636d2=_0x3a7f8d,_0x4683e0=this[_0x2636d2(0x38c)](_0x168918),{left:_0x44f843,top:_0x492207,height:_0x19b757}=_0x4683e0,_0x2dc96d=this['_getScale'](),_0x5d0236=Nt/_0x2dc96d,_0x20485b=new C[(_0x2636d2(0x27d))](_e+a[_0x2636d2(0x29a)](H),{'left':_0x44f843+_0x427e9c-_0x5d0236,'top':_0x492207+_0x1f3afb,'height':_0x19b757,'width':Dt,'fill':_0x130649||C[_0x2636d2(0x381)](a[_0x2636d2(0x2e7)][_0x2636d2(0x3f1)],0x0),'strokeWidth':_0x5d0236,'stroke':Ut,'evented':!0x0});this[_0x2636d2(0x2c1)]=_0x20485b,this[_0x2636d2(0x278)][_0x2636d2(0x307)](_0x20485b,T[_0x2636d2(0x3d8)]);const _0x5f4e6a=new C['Rect'](_e+a['generateRandomId'](H),{'left':_0x44f843+_0x427e9c-_0x5d0236,'top':_0x492207+_0x1f3afb-he/0x2,'height':he,'width':he,'fill':_0x130649||C[_0x2636d2(0x381)](a[_0x2636d2(0x2e7)][_0x2636d2(0x3f1)],0x0),'strokeWidth':0x0,'stroke':_0x130649||C['getColor'](a[_0x2636d2(0x2e7)][_0x2636d2(0x3f1)],0x0),'evented':!0x1});this[_0x2636d2(0x3ff)]=_0x5f4e6a,this[_0x2636d2(0x278)][_0x2636d2(0x307)](_0x5f4e6a,T['TEXT_RANGE_LAYER_INDEX']);const _0x22d4ce=new re(_e+a[_0x2636d2(0x29a)](H),{'left':_0x44f843+_0x427e9c-_0x5d0236,'top':_0x492207+_0x1f3afb-X,'text':_0xf813a9,'color':_0x130649});this[_0x2636d2(0x20d)]=_0x22d4ce,this[_0x2636d2(0x278)][_0x2636d2(0x307)](_0x22d4ce,T['TEXT_RANGE_LAYER_INDEX']),this[_0x2636d2(0x2bd)]=!0x1;}[_0x3a7f8d(0x23e)](){const _0x129a6b=_0x3a7f8d,_0xfbe1dd=this[_0x129a6b(0x2c1)][_0x129a6b(0x34c)][_0x129a6b(0x387)](()=>{this['_hover']=!0x0;}),_0xaa9636=this['_anchor'][_0x129a6b(0x40d)][_0x129a6b(0x387)](()=>{const _0x57157c=_0x129a6b;this[_0x57157c(0x412)]&&clearTimeout(this[_0x57157c(0x412)]),this[_0x57157c(0x412)]=setTimeout(()=>{const _0x4cd74c=_0x57157c;this[_0x4cd74c(0x2bd)]=!0x1;},0x7d0);});return()=>{const _0x1e390f=_0x129a6b;_0xfbe1dd[_0x1e390f(0x31f)](),_0xaa9636[_0x1e390f(0x31f)]();};}[_0x3a7f8d(0x2aa)](_0xba3d0d,_0x3afe6a,_0x36a1d6,_0x17bf02){const _0x38264=_0x3a7f8d,_0x171114=new a[(_0x38264(0x22b))](_0xba3d0d)['setAlpha'](0.2)[_0x38264(0x1f4)](),_0x55840b=new C[(_0x38264(0x293))](Rt+a[_0x38264(0x29a)](H),{'pointsGroup':_0x3afe6a,'fill':_0x171114||C[_0x38264(0x381)](a[_0x38264(0x2e7)][_0x38264(0x3f1)],0.2),'left':_0x36a1d6,'top':_0x17bf02,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x38264(0x201)](_0x55840b),this[_0x38264(0x278)]['addObject'](_0x55840b,T[_0x38264(0x3d8)]);}[_0x3a7f8d(0x3c3)](_0x2456ea,_0x4911bb,_0x1a2650,_0x540104){const _0x29e6ad=_0x3a7f8d,_0xc9a7df=new a[(_0x29e6ad(0x22b))](_0x2456ea)[_0x29e6ad(0x18b)](0.2)[_0x29e6ad(0x1f4)](),_0x11e7da=new C[(_0x29e6ad(0x293))](bt+a['generateRandomId'](H),{'pointsGroup':_0x4911bb,'fill':_0xc9a7df||C['getColor'](a[_0x29e6ad(0x2e7)][_0x29e6ad(0x3f1)],0.2),'left':_0x1a2650,'top':_0x540104,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x29e6ad(0x235)][_0x29e6ad(0x201)](_0x11e7da),this[_0x29e6ad(0x278)][_0x29e6ad(0x307)](_0x11e7da,T[_0x29e6ad(0x3d8)]);}[_0x3a7f8d(0x38c)](_0x3fc8ef){const _0x161a37=_0x3fc8ef[0x0],_0x54b08c=_0x161a37[0x0],_0x3489de=_0x161a37[0x2],{x:_0x460662,y:_0x43b267}=_0x54b08c,{x:_0x3c3cb6,y:_0x8dc1b7}=_0x3489de;return{'left':_0x460662,'top':_0x43b267,'width':_0x3c3cb6-_0x460662,'height':_0x8dc1b7-_0x43b267};}['_getScale'](){const _0x33d403=_0x3a7f8d,{scaleX:_0x56a259,scaleY:_0x1147a8}=this[_0x33d403(0x278)][_0x33d403(0x2d9)]();return Math['max'](_0x56a259,_0x1147a8);}}var Lt=Object[_0x3a7f8d(0x28c)],Mt=(_0xa96051,_0x465e62,_0x280c07,_0x4a8098)=>{const _0x4a08a6=_0x3a7f8d;for(var _0x3a4515=_0x4a8098>0x1?void 0x0:_0x4a8098?Lt(_0x465e62,_0x280c07):_0x465e62,_0x4350a3=_0xa96051[_0x4a08a6(0x355)]-0x1,_0x4f38e0;_0x4350a3>=0x0;_0x4350a3--)(_0x4f38e0=_0xa96051[_0x4350a3])&&(_0x3a4515=_0x4f38e0(_0x3a4515)||_0x3a4515);return _0x3a4515;},q=(_0x154102,_0x326330)=>(_0x1699ce,_0x337225)=>_0x326330(_0x1699ce,_0x337225,_0x154102);let Ee=class extends a[_0x3a7f8d(0x270)]{constructor(_0x85f7fb,_0x19e9d7,_0x361c5a,_0x47d7c6,_0x51d27c){const _0xb56d06=_0x3a7f8d;super(),_(this,_0xb56d06(0x343),[]),_(this,_0xb56d06(0x2e0),[]),(this[_0xb56d06(0x229)]=_0x85f7fb,this[_0xb56d06(0x27b)]=_0x19e9d7,this[_0xb56d06(0x1e1)]=_0x361c5a,this[_0xb56d06(0x308)]=_0x47d7c6,this[_0xb56d06(0x247)]=_0x51d27c,this[_0xb56d06(0x34d)]());}[_0x3a7f8d(0x34d)](){const _0x536a70=_0x3a7f8d,_0x2a6769=this[_0x536a70(0x229)]['unitId'],_0xce71a1=this[_0x536a70(0x27b)];this[_0x536a70(0x20e)](I[_0x536a70(0x3fe)]([this[_0x536a70(0x1e1)][_0x536a70(0x18d)](_0x2a6769),this[_0x536a70(0x247)][_0x536a70(0x3ba)]])[_0x536a70(0x30f)]($[_0x536a70(0x19c)](([_0x5b05f2,_0x2f63e2])=>({'skeleton':_0xce71a1['getSkeleton'](),'cursors':[..._0x5b05f2[_0x536a70(0x2be)]()]['flatMap'](_0x18fe9d=>({..._0x18fe9d,'color':this['_themeService'][_0x536a70(0x248)](_0x18fe9d[_0x536a70(0x3fa)])}))})))[_0x536a70(0x205)](_0x2f060e=>{const _0x1fd2e9=_0x536a70;if(this[_0x1fd2e9(0x35e)](),_0x2f060e){const {skeleton:_0x4e3750,cursors:_0x278a6f}=_0x2f060e;this[_0x1fd2e9(0x170)](_0x4e3750,_0x278a6f);}})),this['_initResize'](),this[_0x536a70(0x345)]();}[_0x3a7f8d(0x170)](_0x71ab9c,_0x294d80){const _0x6ce9b3=_0x3a7f8d,{scene:_0x5b00b0,mainComponent:_0x4ac007}=this[_0x6ce9b3(0x229)],_0x1f5594=_0x294d80[_0x6ce9b3(0x19c)](_0x4dd635=>new Le(_0x4dd635,_0x5b00b0,_0x71ab9c,_0x4ac007));this['_cursorShapes']=_0x1f5594,this[_0x6ce9b3(0x2e0)]=_0x294d80;}[_0x3a7f8d(0x2d3)](){const _0x4939ea=_0x3a7f8d;this[_0x4939ea(0x35e)]();const {scene:_0x57e05a,mainComponent:_0x37ea6b}=this[_0x4939ea(0x229)],_0x3efe63=this[_0x4939ea(0x27b)][_0x4939ea(0x1ae)](),_0x5ee6b2=this[_0x4939ea(0x2e0)][_0x4939ea(0x19c)](_0x9125b9=>new Le(_0x9125b9,_0x57e05a,_0x3efe63,_0x37ea6b));this[_0x4939ea(0x343)]=_0x5ee6b2;}[_0x3a7f8d(0x35e)](){const _0x1e5250=_0x3a7f8d;this['_cursorShapes']['forEach'](_0x28b7b8=>_0x28b7b8[_0x1e5250(0x221)]()),this[_0x1e5250(0x343)]=[];}[_0x3a7f8d(0x345)](){const _0x2d1c88=_0x3a7f8d,_0x28a527=[T[_0x2d1c88(0x368)]['id']];this['disposeWithMe'](this[_0x2d1c88(0x308)]['onCommandExecuted'](_0x38819d=>{const _0x36f7b6=_0x2d1c88;_0x28a527[_0x36f7b6(0x215)](_0x38819d['id'])&&_0x38819d[_0x36f7b6(0x2ea)][_0x36f7b6(0x3eb)]===this[_0x36f7b6(0x229)][_0x36f7b6(0x3eb)]&&this[_0x36f7b6(0x2d3)]();}));}[_0x3a7f8d(0x214)](){const _0x3a2922=_0x3a7f8d;this[_0x3a2922(0x20e)](a['fromEventSubject'](this[_0x3a2922(0x229)]['engine'][_0x3a2922(0x3fb)])[_0x3a2922(0x30f)]($[_0x3a2922(0x175)](_0x2ff722=>_0x2ff722[_0x3a2922(0x397)]===C[_0x3a2922(0x2ac)][_0x3a2922(0x413)]),$[_0x3a2922(0x37c)](0x10))[_0x3a2922(0x205)](()=>{const _0x2c3cba=_0x3a2922;this[_0x2c3cba(0x2d3)]();}));}};Ee=Mt([q(0x1,a[_0x3a7f8d(0x3e3)](V[_0x3a7f8d(0x2db)])),q(0x2,a[_0x3a7f8d(0x3e3)](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x3a7f8d(0x3e3)](a[_0x3a7f8d(0x40f)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x3a7f8d(0x16c)]{constructor(_0x42f271,_0x5ec2db){const _0x43e729=_0x3a7f8d;super(_0x42f271,_0x5ec2db),_(this,'_color'),_(this,_0x43e729(0x1c9),!0x1),_(this,_0x43e729(0x25a)),_(this,_0x43e729(0x2ff),''),_(this,'_labelPosition',_0x43e729(0x35a)),_(this,_0x43e729(0x42b)),(_0x5ec2db&&this[_0x43e729(0x24c)](_0x5ec2db),this[_0x43e729(0x34c)][_0x43e729(0x387)](()=>this[_0x43e729(0x24c)]({'hovered':!0x0})),this[_0x43e729(0x40d)][_0x43e729(0x387)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x285d85){const _0x4b9428=_0x3a7f8d;var _0x2e25fa,_0x450301,_0x4702a8,_0x3f14cb,_0x561613,_0x206d4c;this[_0x4b9428(0x396)]=(_0x2e25fa=_0x285d85[_0x4b9428(0x3fa)])!=null?_0x2e25fa:this[_0x4b9428(0x396)],this[_0x4b9428(0x1c9)]=(_0x450301=_0x285d85['hovered'])!=null?_0x450301:this[_0x4b9428(0x1c9)],this[_0x4b9428(0x25a)]=(_0x4702a8=_0x285d85[_0x4b9428(0x38b)])!=null?_0x4702a8:this[_0x4b9428(0x25a)],this['_name']=(_0x3f14cb=_0x285d85[_0x4b9428(0x3df)])!=null?_0x3f14cb:this[_0x4b9428(0x2ff)],this[_0x4b9428(0x364)]=(_0x561613=_0x285d85[_0x4b9428(0x1e5)])!=null?_0x561613:this['_labelPosition'],this[_0x4b9428(0x42b)]=(_0x206d4c=_0x285d85[_0x4b9428(0x3fc)])!=null?_0x206d4c:this['_backgroundColor'],this[_0x4b9428(0x39b)]({'width':_0x285d85[_0x4b9428(0x2fd)],'height':_0x285d85['height']});}[_0x3a7f8d(0x3bf)](_0x4264f3){const _0x33dff1=_0x3a7f8d,{row:_0x53a583,column:_0x2bdb0b}=_0x4264f3;if(_0x53a583>=this['_range'][_0x33dff1(0x2cc)]&&_0x53a583<=this['_range'][_0x33dff1(0x337)]&&_0x2bdb0b>=this[_0x33dff1(0x25a)][_0x33dff1(0x2a0)]&&_0x2bdb0b<=this['_range'][_0x33dff1(0x231)]){this[_0x33dff1(0x24c)]({'hovered':!0x0});return;}this[_0x33dff1(0x24c)]({'hovered':!0x1});}[_0x3a7f8d(0x274)](_0xb927a0){return!0x1;}[_0x3a7f8d(0x1e8)](_0x3ca58d){const _0xfbd804=_0x3a7f8d;C['Rect']['drawWith'](_0x3ca58d,{'width':this['width'],'height':this[_0xfbd804(0x367)],'strokeWidth':Pt,'stroke':this[_0xfbd804(0x396)],'evented':!0x1,'fill':this[_0xfbd804(0x42b)]}),this[_0xfbd804(0x1c9)]&&(_0x3ca58d[_0xfbd804(0x2b4)](),_0x3ca58d[_0xfbd804(0x17b)](0x1,0x0,0x0,0x1,this[_0xfbd804(0x2fd)],this[_0xfbd804(0x364)]==='bottom'?0x0:-X),re[_0xfbd804(0x2eb)](_0x3ca58d,{'text':this[_0xfbd804(0x2ff)],'color':this[_0xfbd804(0x396)]}),_0x3ca58d[_0xfbd804(0x280)]());}}var wt=Object[_0x3a7f8d(0x28c)],yt=(_0x5c8775,_0x2d37da,_0x424b89,_0x31d6ec)=>{const _0xe8f7bd=_0x3a7f8d;for(var _0x157da9=_0x31d6ec>0x1?void 0x0:_0x31d6ec?wt(_0x2d37da,_0x424b89):_0x2d37da,_0x1b2093=_0x5c8775[_0xe8f7bd(0x355)]-0x1,_0x30e985;_0x1b2093>=0x0;_0x1b2093--)(_0x30e985=_0x5c8775[_0x1b2093])&&(_0x157da9=_0x30e985(_0x157da9)||_0x157da9);return _0x157da9;},ue=(_0x1cbff3,_0x47cda8)=>(_0x4008be,_0x11ba0a)=>_0x47cda8(_0x4008be,_0x11ba0a,_0x1cbff3);const $t=0x1389;let Ce=class extends a[_0x3a7f8d(0x270)]{constructor(_0x4b1c48,_0x381b21,_0x128e25,_0x249a6e){const _0x58b2d6=_0x3a7f8d;super(),_(this,_0x58b2d6(0x2e0),new Set()),_(this,_0x58b2d6(0x332),null),(this[_0x58b2d6(0x229)]=_0x4b1c48,this[_0x58b2d6(0x2b1)]=_0x381b21,this[_0x58b2d6(0x1e1)]=_0x128e25,this['_themeService']=_0x249a6e,this[_0x58b2d6(0x34d)]());}['_init'](){const _0x35dc63=_0x3a7f8d;this['_sheetSkeletonManagerService'][_0x35dc63(0x2e3)]['pipe']($[_0x35dc63(0x202)](this[_0x35dc63(0x18e)]),$[_0x35dc63(0x2fa)](_0x3b6841=>{const _0x53b1d8=_0x35dc63;if(_0x3b6841){const _0x4c7681=_0x3b6841[_0x53b1d8(0x1a2)];return I[_0x53b1d8(0x3fe)](this['_collabCursorController'][_0x53b1d8(0x18d)](this[_0x53b1d8(0x229)]['unitId']),this[_0x53b1d8(0x247)]['currentTheme$'])[_0x53b1d8(0x30f)]($['map'](([_0x6cd2ec,_0x187468])=>{const _0x57c6b5=_0x53b1d8,_0x37b38=new Map();return _0x6cd2ec[_0x57c6b5(0x3f4)]((_0x103b8d,_0x4b19a5)=>{const _0x11a707=_0x57c6b5;if(_0x103b8d['sheetID']===_0x4c7681){const _0x164ec7={..._0x103b8d};_0x164ec7['color']=this['_themeService'][_0x11a707(0x248)](_0x103b8d[_0x11a707(0x3fa)]),_0x37b38[_0x11a707(0x23b)](_0x4b19a5,_0x164ec7);}}),{'skeleton':_0x3b6841,'cursors':_0x37b38};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x35dc63(0x205)](({skeleton:_0x12384a,cursors:_0x336750})=>{this['_removeCollabCursors'](),_0x12384a&&this['_updateCollabCursors'](_0x12384a,_0x336750);}),this[_0x35dc63(0x2b1)][_0x35dc63(0x2e3)][_0x35dc63(0x205)](_0x137836=>{const _0x301d58=_0x35dc63;if(_0x137836==null)return;const {skeleton:_0x32912}=_0x137836,{scene:_0x169190}=this[_0x301d58(0x229)];_0x169190['onPointerMove$'][_0x301d58(0x387)](a['debounce'](_0x3cb6b3=>{const _0x35ec04=_0x301d58;var _0x58b023,_0x166d33;const {offsetX:_0x14c1ec,offsetY:_0x18012b}=_0x3cb6b3,{x:_0x5bd611,y:_0x476445}=_0x169190[_0x35ec04(0x424)](C[_0x35ec04(0x2d1)][_0x35ec04(0x1b3)]([_0x14c1ec,_0x18012b])),{scaleX:_0x22fbae,scaleY:_0x21cf87}=_0x169190['getAncestorScale'](),_0x410999=_0x169190['getViewport'](C[_0x35ec04(0x41c)][_0x35ec04(0x302)]),_0xa02487=_0x169190['getVpScrollXYInfoByPosToVp'](C[_0x35ec04(0x2d1)]['FromArray']([_0x5bd611,_0x476445]),_0x410999),_0x1f9fd9=_0x32912['getCellPositionByOffset'](_0x14c1ec,_0x18012b,_0x22fbae,_0x21cf87,_0xa02487);((_0x58b023=this[_0x35ec04(0x332)])==null?void 0x0:_0x58b023[_0x35ec04(0x1ca)])===_0x1f9fd9[_0x35ec04(0x1ca)]&&((_0x166d33=this[_0x35ec04(0x332)])==null?void 0x0:_0x166d33[_0x35ec04(0x342)])===_0x1f9fd9[_0x35ec04(0x342)]||this[_0x35ec04(0x2e0)][_0x35ec04(0x3f4)](_0x485b10=>{const _0x1c26ea=_0x35ec04;_0x485b10[_0x1c26ea(0x3bf)](_0x1f9fd9);});},0x64));});}['_updateCollabCursors'](_0x5ee13c,_0x407225){const _0x1b5590=_0x3a7f8d;var _0x288c76;const _0x1e0028=(_0x288c76=this['_sheetSkeletonManagerService'][_0x1b5590(0x33f)]())==null?void 0x0:_0x288c76[_0x1b5590(0x311)];if(!_0x1e0028)return;const _0x24a255=this[_0x1b5590(0x328)]();if(!_0x24a255)return;this['_cursors'][_0x1b5590(0x3f4)](_0xe8acf=>{_0xe8acf['makeDirty']();});const {scene:_0xe0a67c}=_0x24a255,_0x107d55=xt(Array[_0x1b5590(0x18a)](_0x407225[_0x1b5590(0x2be)]()))[_0x1b5590(0x19c)](_0x3899e7=>{const _0x349ad1=_0x1b5590,{color:_0x421acc,range:_0xc6661b,name:_0xd9c954,selection:_0x4d901d,sheetID:_0x28a659}=_0x3899e7,{startColumn:_0x592669,startRow:_0x1626c6,endColumn:_0x4d3d7f,endRow:_0xe890bc}=_0xc6661b,_0x1982f1=J[_0x349ad1(0x1f8)](_0x1626c6,_0x592669,_0xe0a67c,_0x1e0028),_0x558165=J[_0x349ad1(0x1f8)](_0xe890bc,_0x4d3d7f,_0xe0a67c,_0x1e0028),{columnHeaderHeightAndMarginTop:_0x5b4044}=_0x1e0028,{startX:_0x2f905d,startY:_0x5a84a5}=_0x1982f1,{endX:_0x2ff14b,endY:_0x3c78e6}=_0x558165,_0x514c18=_0x2ff14b-_0x2f905d,_0x5c035b=_0x3c78e6-_0x5a84a5,_0x53782e={'labelPosition':_0x5a84a5-_0x5b4044>=X?'top':'bottom','sheetID':_0x28a659,'range':_0xc6661b,'color':_0x421acc,'name':_0xd9c954,'selection':_0x4d901d,'left':_0x2f905d,'top':_0x5a84a5,'width':_0x514c18,'height':_0x5c035b,'evented':!0x1,'zIndex':$t};return new je(_0xd9c954,_0x53782e);});_0xe0a67c[_0x1b5590(0x3c4)](_0x107d55,At),this[_0x1b5590(0x2e0)]=new Set(_0x107d55);}[_0x3a7f8d(0x35e)](){var _0x3f3c77;(_0x3f3c77=this['_cursors'])==null||_0x3f3c77['forEach'](_0x15968c=>_0x15968c['dispose']());}['_getSheetObject'](){const _0x5d6b18=_0x3a7f8d;return J[_0x5d6b18(0x1b9)](this[_0x5d6b18(0x229)][_0x5d6b18(0x374)],this['_context']);}};Ce=yt([ue(0x1,a[_0x3a7f8d(0x3e3)](J[_0x3a7f8d(0x1ee)])),ue(0x2,a[_0x3a7f8d(0x3e3)](F)),ue(0x3,a[_0x3a7f8d(0x3e3)](a[_0x3a7f8d(0x40f)]))],Ce);function xt(_0x67ee1f){const _0x3b1e31=_0x3a7f8d,_0x545489=new Map();return _0x67ee1f[_0x3b1e31(0x3f4)](_0xcf8560=>{const _0x15bf01=_0x3b1e31;if(_0x545489[_0x15bf01(0x255)](_0xcf8560[_0x15bf01(0x394)])){const _0x52a1a6=_0x545489[_0x15bf01(0x3af)](_0xcf8560[_0x15bf01(0x394)]);_0x52a1a6[_0x15bf01(0x3df)]+=',\x20'+_0xcf8560[_0x15bf01(0x3df)];}else _0x545489[_0x15bf01(0x23b)](_0xcf8560['selection'],_0xcf8560);}),Array[_0x3b1e31(0x18a)](_0x545489[_0x3b1e31(0x2be)]());}var Bt=Object[_0x3a7f8d(0x28c)],Ft=(_0x349024,_0x128067,_0x10afb3,_0x3f7c64)=>{const _0x5af31f=_0x3a7f8d;for(var _0x3ee99e=_0x3f7c64>0x1?void 0x0:_0x3f7c64?Bt(_0x128067,_0x10afb3):_0x128067,_0x4dc701=_0x349024[_0x5af31f(0x355)]-0x1,_0x3ef3e6;_0x4dc701>=0x0;_0x4dc701--)(_0x3ef3e6=_0x349024[_0x4dc701])&&(_0x3ee99e=_0x3ef3e6(_0x3ee99e)||_0x3ee99e);return _0x3ee99e;},y=(_0x3c0a1e,_0x79fcb4)=>(_0x3c8197,_0x3c5f23)=>_0x79fcb4(_0x3c8197,_0x3c5f23,_0x3c0a1e);let Z=class extends a[_0x3a7f8d(0x404)]{constructor(_0x58a503,_0x1a3ab8,_0xcaafdd,_0x52351a,_0x593539,_0x3ec84d){const _0x2f3107=_0x3a7f8d;super(),this['_beforeCloseService']=_0x58a503,this[_0x2f3107(0x34f)]=_0x1a3ab8,this['_collaborationUIEventService']=_0xcaafdd,this[_0x2f3107(0x1c0)]=_0x52351a,this[_0x2f3107(0x2f2)]=_0x593539,this[_0x2f3107(0x334)]=_0x3ec84d,this[_0x2f3107(0x26f)](),this['_initEvent']();}[_0x3a7f8d(0x26f)](){const _0x5b7360=_0x3a7f8d;this[_0x5b7360(0x20e)](this['_beforeCloseService'][_0x5b7360(0x1b8)](()=>{const _0x15966d=_0x5b7360;if(this[_0x15966d(0x34f)][_0x15966d(0x2b9)][_0x15966d(0x1c6)])return this[_0x15966d(0x334)]['t']('collaboration.offline-data-not-saved');}));}[_0x3a7f8d(0x36f)](){const _0x4f974d=_0x3a7f8d;this['disposeWithMe'](this[_0x4f974d(0x279)]['event$'][_0x4f974d(0x205)](_0x465e9b=>{const _0x4dc53d=_0x4f974d;_0x465e9b['id']===u[_0x4dc53d(0x392)][_0x4dc53d(0x2d6)]&&this[_0x4dc53d(0x1c0)]['show']({'type':p[_0x4dc53d(0x222)]['Warning'],'content':this[_0x4dc53d(0x334)]['t']('collaboration.single-unit.warning')}),_0x465e9b['id']===u[_0x4dc53d(0x392)][_0x4dc53d(0x30e)]&&this[_0x4dc53d(0x1c0)][_0x4dc53d(0x389)]({'type':p[_0x4dc53d(0x222)][_0x4dc53d(0x195)],'content':this[_0x4dc53d(0x334)]['t'](_0x4dc53d(0x23a))}),_0x465e9b['id']===u[_0x4dc53d(0x392)][_0x4dc53d(0x2e2)]&&this[_0x4dc53d(0x2f2)][_0x4dc53d(0x389)]({'title':this[_0x4dc53d(0x334)]['t'](_0x4dc53d(0x185)),'content':this[_0x4dc53d(0x334)]['t'](_0x4dc53d(0x379)),'type':_0x4dc53d(0x21f),'duration':0x0}),_0x465e9b['id']===u['CollaborationUIEventId'][_0x4dc53d(0x300)]&&this[_0x4dc53d(0x1c0)]['show']({'type':p[_0x4dc53d(0x222)][_0x4dc53d(0x251)],'content':this['_localeService']['t'](_0x4dc53d(0x23a))+'('+_0x465e9b[_0x4dc53d(0x363)]+')'}),_0x465e9b['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x4dc53d(0x1c0)][_0x4dc53d(0x389)]({'type':p[_0x4dc53d(0x222)][_0x4dc53d(0x195)],'content':this['_localeService']['t'](_0x465e9b[_0x4dc53d(0x363)]||'')}),_0x465e9b['id']===u[_0x4dc53d(0x392)][_0x4dc53d(0x3bd)]&&this[_0x4dc53d(0x1c0)][_0x4dc53d(0x389)]({'type':p[_0x4dc53d(0x222)][_0x4dc53d(0x195)],'content':this[_0x4dc53d(0x334)]['t']('session.will-retry')}),_0x465e9b['id']===u[_0x4dc53d(0x392)][_0x4dc53d(0x35b)]&&this[_0x4dc53d(0x1c0)]['show']({'type':p['MessageType'][_0x4dc53d(0x251)],'content':this[_0x4dc53d(0x334)]['t'](_0x4dc53d(0x16e))}),_0x465e9b['id']===u[_0x4dc53d(0x392)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4dc53d(0x1c0)][_0x4dc53d(0x389)]({'type':p[_0x4dc53d(0x222)][_0x4dc53d(0x251)],'content':this[_0x4dc53d(0x334)]['t'](_0x4dc53d(0x31c))});}));}};Z=Ft([y(0x0,O[_0x3a7f8d(0x173)]),y(0x1,u[_0x3a7f8d(0x242)]),y(0x2,a[_0x3a7f8d(0x3e3)](u[_0x3a7f8d(0x3b5)])),y(0x3,O[_0x3a7f8d(0x1d9)]),y(0x4,O['INotificationService']),y(0x5,a[_0x3a7f8d(0x3e3)](a['LocaleService']))],Z);var jt=Object[_0x3a7f8d(0x28c)],kt=(_0x5966f0,_0x13e9a8,_0x200c3f,_0x3d8228)=>{const _0x4ef792=_0x3a7f8d;for(var _0x34e65d=_0x3d8228>0x1?void 0x0:_0x3d8228?jt(_0x13e9a8,_0x200c3f):_0x13e9a8,_0x347517=_0x5966f0[_0x4ef792(0x355)]-0x1,_0x58541e;_0x347517>=0x0;_0x347517--)(_0x58541e=_0x5966f0[_0x347517])&&(_0x34e65d=_0x58541e(_0x34e65d)||_0x34e65d);return _0x34e65d;},z=(_0x13c3e2,_0x57df1d)=>(_0x588b37,_0x2a1a0e)=>_0x57df1d(_0x588b37,_0x2a1a0e,_0x13c3e2);let Q=class extends a[_0x3a7f8d(0x404)]{constructor(_0x2ec576,_0x59a879,_0x3dad47,_0x33a17a){const _0x3fe82f=_0x3a7f8d;super(),_(this,_0x3fe82f(0x376)),(this['_injector']=_0x2ec576,this[_0x3fe82f(0x2ce)]=_0x59a879,this['_logService']=_0x3dad47,this[_0x3fe82f(0x1a9)]=_0x33a17a,this[_0x3fe82f(0x34d)]());}['_init'](){const _0x1f2a04=_0x3a7f8d;this[_0x1f2a04(0x1fe)](),this[_0x1f2a04(0x241)](),this[_0x1f2a04(0x38d)](),this[_0x1f2a04(0x366)]();}[_0x3a7f8d(0x366)](){const _0x4f8c0c=_0x3a7f8d;this['disposeWithMe'](this[_0x4f8c0c(0x1a9)]['socket$'][_0x4f8c0c(0x205)](_0x2e359d=>{const _0x11cf40=_0x4f8c0c;this[_0x11cf40(0x376)]=_0x2e359d==null?void 0x0:_0x2e359d[_0x11cf40(0x182)];}));}['_initWindowErrorListener'](){const _0x18c608=_0x3a7f8d,_0xb6a75=_0x4d0663=>{const _0x3029d3=_0x19d3;var _0x51e9a8;this[_0x3029d3(0x1d3)]('error',_0x3029d3(0x2f6)+_0x4d0663[_0x3029d3(0x2f5)]+_0x3029d3(0x1fc)+_0x4d0663[_0x3029d3(0x3b2)]+':'+_0x4d0663[_0x3029d3(0x1be)]+':'+_0x4d0663[_0x3029d3(0x196)]+'\x0a'+(((_0x51e9a8=_0x4d0663[_0x3029d3(0x21f)])==null?void 0x0:_0x51e9a8[_0x3029d3(0x39a)])||''));};window[_0x18c608(0x2fb)]('error',_0xb6a75),this[_0x18c608(0x20e)](()=>{const _0x3c801d=_0x18c608;window[_0x3c801d(0x261)]('error',_0xb6a75);});}[_0x3a7f8d(0x241)](){const _0x2c0668=_0x3a7f8d,_0x8ef0b=_0x111069=>{const _0x132ec8=_0x19d3;this[_0x132ec8(0x1d3)](_0x132ec8(0x21f),_0x132ec8(0x297)+_0x111069[_0x132ec8(0x2c3)]);};window[_0x2c0668(0x2fb)](_0x2c0668(0x30c),_0x8ef0b),this[_0x2c0668(0x20e)](()=>{const _0x1d59ce=_0x2c0668;window[_0x1d59ce(0x261)](_0x1d59ce(0x30c),_0x8ef0b);});}[_0x3a7f8d(0x38d)](){const _0x379e6c=_0x3a7f8d,_0x719e2a=this[_0x379e6c(0x339)][_0x379e6c(0x21f)][_0x379e6c(0x3a8)](this[_0x379e6c(0x339)]);this[_0x379e6c(0x339)][_0x379e6c(0x21f)]=(..._0x2f4533)=>{const _0x3c197b=_0x379e6c,_0x200256=_0x2f4533[_0x3c197b(0x19c)](_0x4fed3a=>_0x4fed3a instanceof Error?_0x4fed3a[_0x3c197b(0x2f5)]+'\x0a'+_0x4fed3a[_0x3c197b(0x39a)]:String(_0x4fed3a))[_0x3c197b(0x3ef)]('\x20');this[_0x3c197b(0x1d3)](_0x3c197b(0x21f),_0x3c197b(0x1e3)+_0x200256),_0x719e2a(..._0x2f4533);},this[_0x379e6c(0x20e)](()=>{const _0x4d403f=_0x379e6c;this['_logService'][_0x4d403f(0x21f)]=_0x719e2a;});}[_0x3a7f8d(0x1d3)](_0x55b26a,_0x1c09fd){const _0x221cca=_0x3a7f8d;try{const _0x441eba={'userId':this['_memberID'],'logLabel':_0x55b26a,'content':_0x1c09fd};this[_0x221cca(0x2ce)][_0x221cca(0x249)](_0x221cca(0x23f),{'body':_0x441eba})['catch'](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x3a7f8d(0x3e3)](a['Injector'])),z(0x1,a[_0x3a7f8d(0x3e3)](x[_0x3a7f8d(0x37f)])),z(0x2,a[_0x3a7f8d(0x321)]),z(0x3,a['Inject'](u[_0x3a7f8d(0x28f)]))],Q);const Yt=_0x3a7f8d(0x350),Me={};var Ht=Object[_0x3a7f8d(0x28c)],Wt=(_0x3052d6,_0x4887ad,_0x60f624,_0x19dac6)=>{for(var _0x5be3a9=_0x19dac6>0x1?void 0x0:_0x19dac6?Ht(_0x4887ad,_0x60f624):_0x4887ad,_0xbac493=_0x3052d6['length']-0x1,_0x3bc00b;_0xbac493>=0x0;_0xbac493--)(_0x3bc00b=_0x3052d6[_0xbac493])&&(_0x5be3a9=_0x3bc00b(_0x5be3a9)||_0x5be3a9);return _0x5be3a9;},Ae=(_0x48e11d,_0x27a5c3)=>(_0x104670,_0x1a4f6c)=>_0x27a5c3(_0x104670,_0x1a4f6c,_0x48e11d);let ee=class{constructor(_0x766d6f,_0x35d46a){const _0x402015=_0x3a7f8d;this[_0x402015(0x327)]=_0x766d6f,this[_0x402015(0x245)]=_0x35d46a;}[_0x3a7f8d(0x177)](_0x254ff4){this['_transformUndoRedoStack'](_0x254ff4),this['_transformPreviousActiveRange'](_0x254ff4);}[_0x3a7f8d(0x3b9)](_0x2ed332){const _0xff8b5d=_0x3a7f8d,{unitID:_0x5eba4a}=_0x2ed332,_0x2c0f88=this[_0xff8b5d(0x245)][_0xff8b5d(0x253)](_0x5eba4a)['with'](T[_0xff8b5d(0x292)]),{redoCache:_0x1dcc7f}=_0x2c0f88[_0xff8b5d(0x37b)]();if(_0x1dcc7f[_0xff8b5d(0x355)]===0x0)return _0x2ed332;let _0x760bb3=a[_0xff8b5d(0x19f)][_0xff8b5d(0x2e8)](_0x2ed332[_0xff8b5d(0x206)][0x0]);for(let _0x33ce3e=0x0;_0x33ce3e<_0x1dcc7f[_0xff8b5d(0x355)];_0x33ce3e++){const _0x2e13a1={'id':_0xff8b5d(0x171),'params':{..._0x1dcc7f[_0x33ce3e]}},_0x46f384=this[_0xff8b5d(0x327)][_0xff8b5d(0x1d2)](_0x760bb3,_0x2e13a1,!0x1);if(g[_0xff8b5d(0x2fc)](_0x46f384))throw _0x46f384['error'];_0x760bb3=_0x46f384['m1Prime'];}return{...a['Tools']['deepClone'](_0x2ed332),'mutations':[_0x760bb3]};}['_transformUndoRedoStack'](_0x56faec){const _0x499aa1=_0x3a7f8d,{unitID:_0x17d807}=_0x56faec,_0x1dea9c=this[_0x499aa1(0x245)][_0x499aa1(0x253)](_0x17d807)['with'](T['DocIMEInputManagerService']),{undoCache:_0x3ceae0,redoCache:_0x5cbf2f}=_0x1dea9c['getUndoRedoMutationParamsCache']();if(_0x3ceae0[_0x499aa1(0x355)]===0x0||_0x5cbf2f[_0x499aa1(0x355)]===0x0)return;const _0x478f20=[],_0x5507fe=[];let _0x3ac8f8=a[_0x499aa1(0x19f)][_0x499aa1(0x2e8)](_0x56faec[_0x499aa1(0x206)][0x0]),_0xe91f59=a[_0x499aa1(0x19f)][_0x499aa1(0x2e8)](_0x56faec['mutations'][0x0]);for(let _0x56ea9b=_0x3ceae0[_0x499aa1(0x355)]-0x1;_0x56ea9b>=0x0;_0x56ea9b--){const _0x35379e={'id':'doc.mutation.rich-text-editing','params':{..._0x3ceae0[_0x56ea9b]}},_0x2e19ea={'id':_0x499aa1(0x171),'params':{..._0x5cbf2f[_0x56ea9b]}},_0x231bd7=this[_0x499aa1(0x327)][_0x499aa1(0x1d2)](_0x3ac8f8,_0x35379e,!0x1),_0x4a9034=this[_0x499aa1(0x327)][_0x499aa1(0x1d2)](_0xe91f59,_0x2e19ea,!0x1);if(g[_0x499aa1(0x2fc)](_0x231bd7))throw _0x231bd7[_0x499aa1(0x21f)];if(g[_0x499aa1(0x2fc)](_0x4a9034))throw _0x4a9034[_0x499aa1(0x21f)];_0x478f20['unshift'](_0x231bd7[_0x499aa1(0x309)][_0x499aa1(0x2ea)]),_0x5507fe['unshift'](_0x4a9034[_0x499aa1(0x309)][_0x499aa1(0x2ea)]),_0x3ac8f8=_0x231bd7['m1Prime'],_0xe91f59=_0x4a9034[_0x499aa1(0x1c1)];}_0x1dea9c[_0x499aa1(0x2cb)]({'undoCache':_0x478f20,'redoCache':_0x5507fe});}[_0x3a7f8d(0x3ad)](_0x759062){const _0x42f718=_0x3a7f8d,{unitID:_0x211d75}=_0x759062,_0x898127=this[_0x42f718(0x245)][_0x42f718(0x253)](_0x211d75)['with'](T[_0x42f718(0x292)]),_0x4afe9a=_0x898127[_0x42f718(0x256)]();if(_0x4afe9a==null)return;const _0x5c441e=[{'id':_0x42f718(0x171),'params':{'unitId':_0x759062[_0x42f718(0x228)],'actions':null,'textRanges':[_0x4afe9a]}}],_0x11540a=this['_transformService'][_0x42f718(0x2b2)](_0x759062,_0x5c441e);if(!g[_0x42f718(0x30a)](_0x11540a))throw _0x11540a[_0x42f718(0x21f)];const _0x35f381=_0x11540a[_0x42f718(0x309)][0x0][_0x42f718(0x2ea)][_0x42f718(0x3cb)];Array[_0x42f718(0x399)](_0x35f381)&&_0x35f381[_0x42f718(0x355)]&&_0x898127[_0x42f718(0x3e9)](_0x35f381[0x0]);}};ee=Wt([Ae(0x0,g[_0x3a7f8d(0x323)]),Ae(0x1,C[_0x3a7f8d(0x408)])],ee);var Vt=Object[_0x3a7f8d(0x28c)],Gt=(_0x25b71d,_0x1c4e9a,_0x50accf,_0x22c46c)=>{for(var _0x44c998=_0x22c46c>0x1?void 0x0:_0x22c46c?Vt(_0x1c4e9a,_0x50accf):_0x1c4e9a,_0x38be8f=_0x25b71d['length']-0x1,_0x2cda87;_0x38be8f>=0x0;_0x38be8f--)(_0x2cda87=_0x25b71d[_0x38be8f])&&(_0x44c998=_0x2cda87(_0x44c998)||_0x44c998);return _0x44c998;},Ie=(_0x36ca0e,_0x581ef1)=>(_0x13c5b8,_0x2a33f4)=>_0x581ef1(_0x13c5b8,_0x2a33f4,_0x36ca0e);let te=class{constructor(_0x1e4698,_0x68c764,_0x5309a5){const _0x81a6ea=_0x3a7f8d;this[_0x81a6ea(0x41e)]=_0x1e4698,this[_0x81a6ea(0x327)]=_0x68c764,this[_0x81a6ea(0x17f)]=_0x5309a5;}[_0x3a7f8d(0x386)](_0x2e7f61){const _0x249222=_0x3a7f8d;this[_0x249222(0x24d)](_0x2e7f61);}[_0x3a7f8d(0x3b9)](_0x1c9798){const _0x137baf=_0x3a7f8d,{unitID:_0x165505}=_0x1c9798,{collaboration:_0x8e2abe}=this['_docStateChangeManagerService'][_0x137baf(0x189)](_0x165505);if(_0x8e2abe['length']===0x0)return _0x1c9798;let _0x161f26=a[_0x137baf(0x19f)][_0x137baf(0x2e8)](_0x1c9798[_0x137baf(0x206)][0x0]);for(let _0x4476d0=0x0;_0x4476d0<_0x8e2abe['length'];_0x4476d0++){const _0x352778={'id':_0x137baf(0x171),'params':{'unitId':_0x8e2abe[_0x4476d0][_0x137baf(0x3eb)],..._0x8e2abe[_0x4476d0][_0x137baf(0x2e4)]}},_0x5b8602=this['_transformService'][_0x137baf(0x1d2)](_0x161f26,_0x352778,!0x1);if(g[_0x137baf(0x2fc)](_0x5b8602))throw _0x5b8602[_0x137baf(0x21f)];_0x161f26=_0x5b8602[_0x137baf(0x1c1)];}return{...a['Tools']['deepClone'](_0x1c9798),'mutations':[_0x161f26]};}[_0x3a7f8d(0x24d)](_0x1ab8a0){const _0x321b17=_0x3a7f8d,{unitID:_0x5b6057}=_0x1ab8a0,{history:_0x4e7ffb,collaboration:_0x5c3241}=this[_0x321b17(0x17f)]['getStateCache'](_0x5b6057);if(_0x4e7ffb[_0x321b17(0x355)]===0x0&&_0x5c3241[_0x321b17(0x355)]===0x0)return;const _0x3b66af=[],_0x3f5d4b=[];let _0x31d028=a[_0x321b17(0x19f)]['deepClone'](_0x1ab8a0[_0x321b17(0x206)][0x0]),_0x2eb6e3=a[_0x321b17(0x19f)][_0x321b17(0x2e8)](_0x1ab8a0[_0x321b17(0x206)][0x0]);for(let _0x26f228=_0x4e7ffb['length']-0x1;_0x26f228>=0x0;_0x26f228--){const _0x2867df={'id':_0x321b17(0x171),'params':{'unitId':_0x4e7ffb[_0x26f228][_0x321b17(0x3eb)],..._0x4e7ffb[_0x26f228]['undoState']}},_0xe306cf={'id':_0x321b17(0x171),'params':{'unitId':_0x4e7ffb[_0x26f228]['unitId'],..._0x4e7ffb[_0x26f228]['redoState']}},_0x2bf941=this[_0x321b17(0x327)][_0x321b17(0x1d2)](_0x31d028,_0x2867df,!0x1),_0x50aabe=this[_0x321b17(0x327)]['transformMutation'](_0x2eb6e3,_0xe306cf,!0x1);if(g[_0x321b17(0x2fc)](_0x2bf941))throw _0x2bf941[_0x321b17(0x21f)];if(g[_0x321b17(0x2fc)](_0x50aabe))throw _0x50aabe[_0x321b17(0x21f)];_0x3b66af[_0x321b17(0x32a)]({..._0x4e7ffb[_0x26f228],'undoState':_0x2bf941['m2Prime']['params'],'redoState':_0x50aabe[_0x321b17(0x309)][_0x321b17(0x2ea)]}),_0x31d028=_0x2bf941[_0x321b17(0x1c1)],_0x2eb6e3=_0x50aabe['m1Prime'];}_0x31d028=a[_0x321b17(0x19f)]['deepClone'](_0x1ab8a0[_0x321b17(0x206)][0x0]),_0x2eb6e3=a[_0x321b17(0x19f)]['deepClone'](_0x1ab8a0[_0x321b17(0x206)][0x0]);for(let _0x17aa63=_0x5c3241[_0x321b17(0x355)]-0x1;_0x17aa63>=0x0;_0x17aa63--){const _0xdd8dde={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5c3241[_0x17aa63]['unitId'],..._0x5c3241[_0x17aa63][_0x321b17(0x296)]}},_0x5f2209={'id':_0x321b17(0x171),'params':{'unitId':_0x5c3241[_0x17aa63][_0x321b17(0x3eb)],..._0x5c3241[_0x17aa63][_0x321b17(0x2e4)]}},_0xb5bb6c=this[_0x321b17(0x327)][_0x321b17(0x1d2)](_0x31d028,_0xdd8dde,!0x1),_0x5a46c0=this['_transformService'][_0x321b17(0x1d2)](_0x2eb6e3,_0x5f2209,!0x1);if(g['isTransformMutationFailure'](_0xb5bb6c))throw _0xb5bb6c[_0x321b17(0x21f)];if(g[_0x321b17(0x2fc)](_0x5a46c0))throw _0x5a46c0[_0x321b17(0x21f)];_0x3f5d4b[_0x321b17(0x32a)]({..._0x5c3241[_0x17aa63],'undoState':_0xb5bb6c[_0x321b17(0x309)][_0x321b17(0x2ea)],'redoState':_0x5a46c0['m2Prime'][_0x321b17(0x2ea)]}),_0x31d028=_0xb5bb6c[_0x321b17(0x1c1)],_0x2eb6e3=_0x5a46c0[_0x321b17(0x1c1)];}this[_0x321b17(0x17f)][_0x321b17(0x3e2)](_0x5b6057,{'history':_0x3b66af,'collaboration':_0x3f5d4b});}};te=Gt([Ie(0x0,a[_0x3a7f8d(0x3e3)](a[_0x3a7f8d(0x2e1)])),Ie(0x1,g[_0x3a7f8d(0x323)]),Ie(0x2,a[_0x3a7f8d(0x3e3)](T[_0x3a7f8d(0x1f0)]))],te);var Xt=Object[_0x3a7f8d(0x28c)],Kt=(_0x36356b,_0xe88595,_0x42efc4,_0x179628)=>{const _0x18260d=_0x3a7f8d;for(var _0x334082=_0x179628>0x1?void 0x0:_0x179628?Xt(_0xe88595,_0x42efc4):_0xe88595,_0x180609=_0x36356b[_0x18260d(0x355)]-0x1,_0x5cefc7;_0x180609>=0x0;_0x180609--)(_0x5cefc7=_0x36356b[_0x180609])&&(_0x334082=_0x5cefc7(_0x334082)||_0x334082);return _0x334082;},Pe=(_0x357a1b,_0x52363e)=>(_0x988f71,_0x1692cf)=>_0x52363e(_0x988f71,_0x1692cf,_0x357a1b);let se=class{constructor(_0x9237e4,_0xc74889){const _0xc051cc=_0x3a7f8d;this[_0xc051cc(0x41e)]=_0x9237e4,this[_0xc051cc(0x327)]=_0xc74889;}[_0x3a7f8d(0x303)](_0x34ce76){const _0x3e6570=_0x3a7f8d;var _0x209ea2;const _0x1b5a44=this['_injector'][_0x3e6570(0x3af)](V[_0x3e6570(0x3c8)]),_0x25d0df=(_0x209ea2=_0x1b5a44[_0x3e6570(0x217)]())!=null?_0x209ea2:[];if(_0x25d0df[_0x3e6570(0x355)]===0x0)return;const _0x500509=_0x34ce76[_0x3e6570(0x228)],_0x3f0eda=[{'id':_0x3e6570(0x171),'params':{'unitId':_0x500509,'actions':null,'textRanges':_0x25d0df}}],_0x30954f=this[_0x3e6570(0x327)][_0x3e6570(0x2b2)](_0x34ce76,_0x3f0eda);if(!g[_0x3e6570(0x30a)](_0x30954f))throw _0x30954f[_0x3e6570(0x21f)];const _0x6a99aa=_0x30954f[_0x3e6570(0x309)][0x0]['params']['textRanges'];Array[_0x3e6570(0x399)](_0x6a99aa)&&_0x6a99aa[_0x3e6570(0x355)]&&_0x1b5a44[_0x3e6570(0x3ee)](_0x6a99aa,{'unitId':_0x500509,'subUnitId':_0x500509},!0x1);}};se=Kt([Pe(0x0,a[_0x3a7f8d(0x3e3)](a[_0x3a7f8d(0x2e1)])),Pe(0x1,g[_0x3a7f8d(0x323)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x4cb9bc,_0x590180,_0x5caaba,_0xeca41d)=>{const _0x152d3d=_0x3a7f8d;for(var _0x525643=_0xeca41d>0x1?void 0x0:_0xeca41d?qt(_0x590180,_0x5caaba):_0x590180,_0x2e8f42=_0x4cb9bc[_0x152d3d(0x355)]-0x1,_0x1db5dd;_0x2e8f42>=0x0;_0x2e8f42--)(_0x1db5dd=_0x4cb9bc[_0x2e8f42])&&(_0x525643=_0x1db5dd(_0x525643)||_0x525643);return _0x525643;},N=(_0x45d5bf,_0x220012)=>(_0x4c81f1,_0x691240)=>_0x220012(_0x4c81f1,_0x691240,_0x45d5bf);let ie=class extends a['Disposable']{constructor(_0x1145ef,_0xb2cc67,_0xe493cd,_0x499659,_0x8b72e2,_0x99aa56,_0x2b0254,_0x5ea5fd){const _0x37daa1=_0x3a7f8d;super(),_(this,'_status$',new I[(_0x37daa1(0x32b))](u[_0x37daa1(0x22c)][_0x37daa1(0x1a4)])),(this[_0x37daa1(0x17f)]=_0x1145ef,this[_0x37daa1(0x183)]=_0xb2cc67,this[_0x37daa1(0x1f5)]=_0xe493cd,this[_0x37daa1(0x1f6)]=_0x499659,this[_0x37daa1(0x2f3)]=_0x8b72e2,this[_0x37daa1(0x2b6)]=_0x99aa56,this['_messageService']=_0x2b0254,this[_0x37daa1(0x334)]=_0x5ea5fd,this[_0x37daa1(0x359)]());}[_0x3a7f8d(0x359)](){const _0x10475e=_0x3a7f8d;this['disposeWithMe'](this[_0x10475e(0x183)][_0x10475e(0x305)][_0x10475e(0x205)](_0x4e9b78=>{const _0x395ce7=_0x10475e,_0x2426af=this['_docStateChangeManagerService'][_0x395ce7(0x294)][_0x395ce7(0x205)](_0x97d447=>{const _0x3f6d0b=_0x395ce7;if(_0x97d447==null)return;const {unitId:_0x174bed,redoState:_0xc2be5d,commandId:_0x1cf8c6}=_0x97d447;if(_0x174bed!==_0x4e9b78[_0x3f6d0b(0x228)])return;const _0x29f744={'id':_0x1cf8c6,'type':a[_0x3f6d0b(0x22d)]['MUTATION'],'params':{'unitId':_0x174bed,'actions':_0xc2be5d['actions'],'textRanges':null}};_0x4e9b78[_0x3f6d0b(0x3dc)](_0x29f744);});if(_0x4e9b78[_0x395ce7(0x20e)](_0x2426af),_0x4e9b78 instanceof u[_0x395ce7(0x2a7)]){const _0x48c1e2={'onTransformIME':_0x2444a5=>this[_0x395ce7(0x1f5)][_0x395ce7(0x177)](_0x2444a5),'onTransformState':_0x29cee7=>this[_0x395ce7(0x1f6)][_0x395ce7(0x386)](_0x29cee7),'onTransformSelections':_0x258263=>this[_0x395ce7(0x2f3)][_0x395ce7(0x303)](_0x258263),'onSyncEditingCollabCursor':_0x1c0bfa=>this[_0x395ce7(0x2b6)][_0x395ce7(0x28b)](_0x1c0bfa),'onTransformRemoteChangesetByIMECache':_0x5abc5d=>this[_0x395ce7(0x1f5)]['transformRemoteChangeset'](_0x5abc5d),'onTransformRemoteChangesetByStateCache':_0x372ea3=>this[_0x395ce7(0x1f6)]['transformRemoteChangeset'](_0x372ea3)};_0x4e9b78[_0x395ce7(0x2dc)](_0x48c1e2);}}));}};ie=zt([N(0x0,a[_0x3a7f8d(0x3e3)](T[_0x3a7f8d(0x1f0)])),N(0x1,a[_0x3a7f8d(0x3e3)](u[_0x3a7f8d(0x28a)])),N(0x2,a[_0x3a7f8d(0x3e3)](ee)),N(0x3,a[_0x3a7f8d(0x3e3)](te)),N(0x4,a[_0x3a7f8d(0x3e3)](se)),N(0x5,a[_0x3a7f8d(0x3e3)](be)),N(0x6,O[_0x3a7f8d(0x1d9)]),N(0x7,a[_0x3a7f8d(0x3e3)](a[_0x3a7f8d(0x2bb)]))],ie);var G=(_0x3a103=>(_0x3a103[_0x3a103[_0x3a7f8d(0x2c6)]=0x0]=_0x3a7f8d(0x2c6),_0x3a103[_0x3a103['OK']=0x1]='OK',_0x3a103[_0x3a103[_0x3a7f8d(0x354)]=0x2]=_0x3a7f8d(0x354),_0x3a103[_0x3a103[_0x3a7f8d(0x2e2)]=0x3]=_0x3a7f8d(0x2e2),_0x3a103[_0x3a103[_0x3a7f8d(0x2ad)]=0x4]=_0x3a7f8d(0x2ad),_0x3a103[_0x3a103['UNAUTHENTICATED']=0x5]=_0x3a7f8d(0x1e6),_0x3a103[_0x3a103['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x3a103[_0x3a103[_0x3a7f8d(0x179)]=0x7]=_0x3a7f8d(0x179),_0x3a103[_0x3a103['TOO_MANY_REQUESTS']=0x8]=_0x3a7f8d(0x2af),_0x3a103[_0x3a103[_0x3a7f8d(0x3a5)]=0x9]=_0x3a7f8d(0x3a5),_0x3a103[_0x3a103[_0x3a7f8d(0x1a6)]=0xa]=_0x3a7f8d(0x1a6),_0x3a103[_0x3a103[_0x3a7f8d(0x1aa)]=0xb]=_0x3a7f8d(0x1aa),_0x3a103[_0x3a103[_0x3a7f8d(0x2f9)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x3a103[_0x3a103[_0x3a7f8d(0x258)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x3a103[_0x3a103[_0x3a7f8d(0x276)]=0xe]=_0x3a7f8d(0x276),_0x3a103[_0x3a103[_0x3a7f8d(0x326)]=0xf]=_0x3a7f8d(0x326),_0x3a103[_0x3a103[_0x3a7f8d(0x33a)]=0x10]=_0x3a7f8d(0x33a),_0x3a103[_0x3a103[_0x3a7f8d(0x2d4)]=0x64]=_0x3a7f8d(0x2d4),_0x3a103[_0x3a103['ERROR_AGAIN']=0x65]=_0x3a7f8d(0x169),_0x3a103[_0x3a103['USER_NOT_FOUND']=0xc9]='USER_NOT_FOUND',_0x3a103[_0x3a103[_0x3a7f8d(0x428)]=0xca]=_0x3a7f8d(0x428),_0x3a103[_0x3a103[_0x3a7f8d(0x24e)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3a103[_0x3a103['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3a103[_0x3a103[_0x3a7f8d(0x2b7)]=0x1772]=_0x3a7f8d(0x2b7),_0x3a103[_0x3a103[_0x3a7f8d(0x32e)]=0x1773]=_0x3a7f8d(0x32e),_0x3a103[_0x3a103[_0x3a7f8d(0x24a)]=0x1b59]=_0x3a7f8d(0x24a),_0x3a103[_0x3a103[_0x3a7f8d(0x3e4)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3a103[_0x3a103[_0x3a7f8d(0x1da)]=0x1b5b]=_0x3a7f8d(0x1da),_0x3a103[_0x3a103[_0x3a7f8d(0x27a)]=0x1b5c]=_0x3a7f8d(0x27a),_0x3a103[_0x3a103[_0x3a7f8d(0x259)]=0x1b5d]=_0x3a7f8d(0x259),_0x3a103[_0x3a103['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3a7f8d(0x39c),_0x3a103[_0x3a103[_0x3a7f8d(0x277)]=0x2329]=_0x3a7f8d(0x277),_0x3a103[_0x3a103['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x3a7f8d(0x1e7),_0x3a103[_0x3a103[_0x3a7f8d(0x25d)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3a103[_0x3a103[_0x3a7f8d(0x330)]=0x232c]=_0x3a7f8d(0x330),_0x3a103[_0x3a103[_0x3a7f8d(0x26a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3a103[_0x3a103[_0x3a7f8d(0x2ba)]=0x2711]=_0x3a7f8d(0x2ba),_0x3a103[_0x3a103[_0x3a7f8d(0x260)]=0x2712]=_0x3a7f8d(0x260),_0x3a103[_0x3a103[_0x3a7f8d(0x22a)]=0x2713]=_0x3a7f8d(0x22a),_0x3a103[_0x3a103[_0x3a7f8d(0x40e)]=0x2714]=_0x3a7f8d(0x40e),_0x3a103[_0x3a103['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x3a7f8d(0x1cc),_0x3a103[_0x3a103[_0x3a7f8d(0x3aa)]=0x271b]=_0x3a7f8d(0x3aa),_0x3a103[_0x3a103[_0x3a7f8d(0x21b)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x3a103[_0x3a103[_0x3a7f8d(0x18f)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x3a103[_0x3a103[_0x3a7f8d(0x425)]=0x271e]=_0x3a7f8d(0x425),_0x3a103[_0x3a103[_0x3a7f8d(0x2bc)]=0x271f]=_0x3a7f8d(0x2bc),_0x3a103[_0x3a103[_0x3a7f8d(0x2a2)]=0x2720]=_0x3a7f8d(0x2a2),_0x3a103[_0x3a103['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x3a103[_0x3a103[_0x3a7f8d(0x406)]=0x2ee1]=_0x3a7f8d(0x406),_0x3a103[_0x3a103[_0x3a7f8d(0x2b5)]=0x2ee2]='INVALID_INVITE_CODE',_0x3a103[_0x3a103['INVITE_CODE_REQUIRED']=0x2ee3]=_0x3a7f8d(0x1fb),_0x3a103[_0x3a103[_0x3a7f8d(0x3b4)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x3a103[_0x3a103['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x3a7f8d(0x273),_0x3a103[_0x3a103[_0x3a7f8d(0x184)]=0x32c9]=_0x3a7f8d(0x184),_0x3a103[_0x3a103[_0x3a7f8d(0x1b6)]=0x32ca]=_0x3a7f8d(0x1b6),_0x3a103[_0x3a103['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3a7f8d(0x29d),_0x3a103[_0x3a103['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x3a7f8d(0x39f),_0x3a103[_0x3a103['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x3a7f8d(0x42a),_0x3a103[_0x3a103[_0x3a7f8d(0x2e6)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x3a103[_0x3a103['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x3a7f8d(0x3f7),_0x3a103[_0x3a103['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x3a7f8d(0x267),_0x3a103[_0x3a103[_0x3a7f8d(0x174)]=0x36b6]=_0x3a7f8d(0x174),_0x3a103[_0x3a103[_0x3a7f8d(0x3c6)]=0x36b7]=_0x3a7f8d(0x3c6),_0x3a103[_0x3a103[_0x3a7f8d(0x193)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x3a103[_0x3a103[_0x3a7f8d(0x427)]=0x3715]=_0x3a7f8d(0x427),_0x3a103[_0x3a103[_0x3a7f8d(0x313)]=0x3716]=_0x3a7f8d(0x313),_0x3a103[_0x3a103[_0x3a7f8d(0x172)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x3a103[_0x3a103[_0x3a7f8d(0x225)]=0x37dd]=_0x3a7f8d(0x225),_0x3a103[_0x3a103['REDEMPTION_INVALID_CODE']=0x3a99]=_0x3a7f8d(0x286),_0x3a103[_0x3a103[_0x3a7f8d(0x375)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x3a103[_0x3a103[_0x3a7f8d(0x176)]=0x3a9b]=_0x3a7f8d(0x176),_0x3a103[_0x3a103['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x3a7f8d(0x2a3),_0x3a103[_0x3a103[_0x3a7f8d(0x180)]=0x3a9d]=_0x3a7f8d(0x180),_0x3a103[_0x3a103[_0x3a7f8d(0x301)]=0x3a9e]=_0x3a7f8d(0x301),_0x3a103[_0x3a103[_0x3a7f8d(0x1fa)]=0x3a9f]=_0x3a7f8d(0x1fa),_0x3a103[_0x3a103[_0x3a7f8d(0x357)]=0x3e81]=_0x3a7f8d(0x357),_0x3a103[_0x3a103[_0x3a7f8d(0x369)]=-0x1]='UNRECOGNIZED',_0x3a103))(G||{});function Jt(_0x5a4fce){const _0x57209e=_0x3a7f8d;var _0x48d87f,_0x4d1d54;const _0x1bd01d=(_0x48d87f=_0x5a4fce[_0x57209e(0x2a6)])==null?void 0x0:_0x48d87f[_0x57209e(0x1a0)],_0x31654f=((_0x4d1d54=_0x5a4fce['stageInfo'])==null?void 0x0:_0x4d1d54[_0x57209e(0x234)])||0x0;return _0x1bd01d===B[_0x57209e(0x19d)]['START_CALCULATION']&&_0x31654f>0x0;}function Zt(_0x12d15e){const _0x155c76=_0x3a7f8d;return _0x12d15e[_0x155c76(0x24b)]===B['FormulaExecutedStateType'][_0x155c76(0x212)];}var Qt=Object[_0x3a7f8d(0x28c)],es=(_0x3d0422,_0x2e5540,_0x2d64c5,_0x34f3cc)=>{const _0xc73e9c=_0x3a7f8d;for(var _0x3f80a1=_0x34f3cc>0x1?void 0x0:_0x34f3cc?Qt(_0x2e5540,_0x2d64c5):_0x2e5540,_0x5ec6ce=_0x3d0422[_0xc73e9c(0x355)]-0x1,_0x35cd67;_0x5ec6ce>=0x0;_0x5ec6ce--)(_0x35cd67=_0x3d0422[_0x5ec6ce])&&(_0x3f80a1=_0x35cd67(_0x3f80a1)||_0x3f80a1);return _0x3f80a1;},L=(_0x39a21e,_0x53de6f)=>(_0x5246a3,_0x4fee68)=>_0x53de6f(_0x5246a3,_0x4fee68,_0x39a21e);const ts=_0x3a7f8d(0x3d9),ss=_0x3a7f8d(0x3d6),is=_0x3a7f8d(0x186);let ne=class extends a[_0x3a7f8d(0x404)]{constructor(_0x41387a,_0x27bc8a,_0x1c6bc0,_0x12d368,_0x47fa69,_0x290f76,_0x4b8e32){const _0x5080a0=_0x3a7f8d;super(),_(this,_0x5080a0(0x2a9),null),_(this,_0x5080a0(0x26e),0x0),_(this,_0x5080a0(0x299),0x0),_(this,_0x5080a0(0x2e5),[]),_(this,_0x5080a0(0x3f5),0x0),(this['_messageService']=_0x41387a,this[_0x5080a0(0x308)]=_0x27bc8a,this['_configService']=_0x1c6bc0,this[_0x5080a0(0x2ce)]=_0x12d368,this['_univerInstanceService']=_0x47fa69,this[_0x5080a0(0x339)]=_0x290f76,this[_0x5080a0(0x334)]=_0x4b8e32,this[_0x5080a0(0x204)]());}[_0x3a7f8d(0x204)](){const _0x9a1e0f=_0x3a7f8d;this[_0x9a1e0f(0x20e)](this[_0x9a1e0f(0x308)][_0x9a1e0f(0x2b0)]((_0x342e4d,_0x42abba)=>{const _0x54933e=_0x9a1e0f;var _0xe63ddc;if(_0x342e4d['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x1704b5=_0x342e4d[_0x54933e(0x2ea)];if(!this[_0x54933e(0x16a)]((_0xe63ddc=_0x1704b5['dirtyRanges'])!=null?_0xe63ddc:[]))return;if(!this[_0x54933e(0x2a8)]())throw this[_0x54933e(0x388)](_0x342e4d,_0x42abba),this[_0x54933e(0x2d5)](),new a['CanceledError']();})),this['disposeWithMe'](this['_commandService'][_0x9a1e0f(0x265)]((_0x2df4a3,_0xcbeb63)=>{const _0x36ffd1=_0x9a1e0f;if(_0x2df4a3['id']!==B[_0x36ffd1(0x1b4)]['id'])return;const _0xf5be91=_0x2df4a3[_0x36ffd1(0x2ea)];if(Jt(_0xf5be91)){const _0x43169a=a['generateRandomId']();this[_0x36ffd1(0x2e5)]['push'](_0x43169a),this[_0x36ffd1(0x2f4)](_0x43169a);}else{if(Zt(_0xf5be91)&&this[_0x36ffd1(0x2e5)][_0x36ffd1(0x355)]>0x0){const _0x3ce212=this[_0x36ffd1(0x2e5)]['shift']();this['_releaseCalculationLimit'](_0x3ce212);}}}));}[_0x3a7f8d(0x221)](){const _0xc83d11=_0x3a7f8d;super[_0xc83d11(0x221)](),this['_clearPolling'](),this[_0xc83d11(0x2e5)]=[],this[_0xc83d11(0x299)]=0x0,this[_0xc83d11(0x26e)]=0x0,this[_0xc83d11(0x3f5)]=0x0;}async[_0x3a7f8d(0x388)](_0xb0e488,_0x586358){const _0x193079=_0x3a7f8d;for(let _0x596904=0x0;_0x596904<0x1e;_0x596904++)try{if(await this['_getFormulaLimitStatus'](),this[_0x193079(0x2a8)]()){this['_applyCommand'](_0xb0e488,_0x586358),this[_0x193079(0x1c0)][_0x193079(0x389)]({'content':this[_0x193079(0x334)]['t'](_0x193079(0x1f1)),'type':p['MessageType'][_0x193079(0x3a3)]});return;}await new Promise(_0xec1530=>{const _0x3f7643=_0x193079;this[_0x3f7643(0x2a9)]=window[_0x3f7643(0x191)](_0xec1530,0x3e8);});}catch(_0x5b8f41){this[_0x193079(0x339)][_0x193079(0x21f)](_0x5b8f41);}this[_0x193079(0x1c0)][_0x193079(0x389)]({'content':this[_0x193079(0x334)]['t']('formula.calculation.unable'),'type':p[_0x193079(0x222)]['Error']});}['_applyCommand'](_0x4ab48e,_0xfb9e9d){const _0x4df740=_0x3a7f8d;try{this[_0x4df740(0x308)][_0x4df740(0x2e9)](_0x4ab48e['id'],_0x4ab48e[_0x4df740(0x2ea)],_0xfb9e9d);}catch(_0x4a508a){this[_0x4df740(0x339)]['error'](_0x4a508a);}}['_setFormulaLimitStatus'](_0x12d6f4,_0x3f3eb3){const _0x3896bf=_0x3a7f8d;_0x3f3eb3<this[_0x3896bf(0x3f5)]||(this[_0x3896bf(0x3f5)]=_0x3f3eb3,this[_0x3896bf(0x26e)]=Number[_0x3896bf(0x2c2)](_0x12d6f4[_0x3896bf(0x3b3)]),this['_currentUsage']=Number[_0x3896bf(0x2c2)](_0x12d6f4[_0x3896bf(0x33d)]));}async['_startCalculationLimit'](_0x4b8beb){const _0x56995e=_0x3a7f8d;var _0x3714e2,_0x3ebc59;const _0x531bcb=Date[_0x56995e(0x2bf)]();try{const _0x8f307=((_0x3714e2=this['_configService']['getConfig'](u[_0x56995e(0x3e5)]))==null?void 0x0:_0x3714e2[_0x56995e(0x3a2)])||ss,_0x422a9c=(await this[_0x56995e(0x2ce)][_0x56995e(0x249)](_0x8f307,{'body':JSON[_0x56995e(0x30b)]({'taskId':_0x4b8beb})}))['body'];if(((_0x3ebc59=_0x422a9c['error'])==null?void 0x0:_0x3ebc59[_0x56995e(0x32f)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x422a9c[_0x56995e(0x181)],_0x531bcb);}catch(_0x2d120a){this['_logService']['error'](_0x2d120a);}}async[_0x3a7f8d(0x36d)](_0x3a56f6){const _0x5f23d4=_0x3a7f8d;var _0x54919d,_0x2fa055;const _0x1d77b4=Date[_0x5f23d4(0x2bf)]();try{const _0x18a0b9=((_0x54919d=this['_configService']['getConfig'](u[_0x5f23d4(0x3e5)]))==null?void 0x0:_0x54919d[_0x5f23d4(0x187)])||ts,_0x1e2798=_0x3a56f6?_0x18a0b9+_0x5f23d4(0x28e)+encodeURIComponent(_0x3a56f6):_0x18a0b9,_0x313e3b=(await this[_0x5f23d4(0x2ce)][_0x5f23d4(0x3af)](_0x1e2798))[_0x5f23d4(0x1ac)];if(((_0x2fa055=_0x313e3b[_0x5f23d4(0x21f)])==null?void 0x0:_0x2fa055[_0x5f23d4(0x32f)])!==G['OK'])return;this[_0x5f23d4(0x194)](_0x313e3b['limitInfo'],_0x1d77b4);}catch(_0x55a444){this[_0x5f23d4(0x339)][_0x5f23d4(0x21f)](_0x55a444);}}async['_releaseCalculationLimit'](_0x5e9c99){const _0x324917=_0x3a7f8d;var _0x271ce5,_0x37b9cc;const _0x4656c2=Date[_0x324917(0x2bf)]();try{const _0x5da74b=((_0x271ce5=this[_0x324917(0x31a)][_0x324917(0x288)](u[_0x324917(0x3e5)]))==null?void 0x0:_0x271ce5[_0x324917(0x263)])||is,_0x31389f=(await this[_0x324917(0x2ce)][_0x324917(0x249)](_0x5da74b,{'body':JSON[_0x324917(0x30b)]({'taskId':_0x5e9c99})}))[_0x324917(0x1ac)];if(((_0x37b9cc=_0x31389f['error'])==null?void 0x0:_0x37b9cc[_0x324917(0x32f)])!==G['OK'])return;this[_0x324917(0x194)](_0x31389f[_0x324917(0x181)],_0x4656c2);}catch(_0x1a9524){this[_0x324917(0x339)][_0x324917(0x21f)](_0x1a9524);}}['_checkCalculationAvailable'](){const _0x4db5c2=_0x3a7f8d;return this[_0x4db5c2(0x26e)]===0x0?!0x0:this[_0x4db5c2(0x26e)]-this['_currentUsage']>0x0;}[_0x3a7f8d(0x243)](){const _0x14ccb9=_0x3a7f8d;this[_0x14ccb9(0x2a9)]&&(clearTimeout(this[_0x14ccb9(0x2a9)]),this[_0x14ccb9(0x2a9)]=null);}[_0x3a7f8d(0x2d5)](){const _0x556bf=_0x3a7f8d;this[_0x556bf(0x1c0)][_0x556bf(0x389)]({'content':this['_localeService']['t'](_0x556bf(0x1b5)),'type':p['MessageType'][_0x556bf(0x3e0)]});}[_0x3a7f8d(0x16a)](_0x11c24e){const _0x4df728=_0x3a7f8d;for(const _0x43d48c of _0x11c24e){const {unitId:_0x1966d6,sheetId:_0x3c2437,range:_0x1c48e7}=_0x43d48c,_0x301a7a=this['_univerInstanceService'][_0x4df728(0x264)](_0x1966d6);if(!_0x301a7a)continue;const _0x483204=_0x301a7a[_0x4df728(0x26c)](_0x3c2437);if(!_0x483204)continue;const _0x36f297=_0x483204[_0x4df728(0x3d4)]();for(let _0x3b8521=_0x1c48e7[_0x4df728(0x2cc)];_0x3b8521<=_0x1c48e7[_0x4df728(0x337)];_0x3b8521++)for(let _0x3980ee=_0x1c48e7['startColumn'];_0x3980ee<=_0x1c48e7[_0x4df728(0x231)];_0x3980ee++){const _0x24ccb8=_0x36f297[_0x4df728(0x2ca)](_0x3b8521,_0x3980ee);if(_0x24ccb8&&(a['isFormulaString'](_0x24ccb8['f'])||a[_0x4df728(0x403)](_0x24ccb8['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x3a7f8d(0x3e3)](O[_0x3a7f8d(0x1d9)])),L(0x1,a[_0x3a7f8d(0x3cd)]),L(0x2,a[_0x3a7f8d(0x344)]),L(0x3,a['Inject'](x[_0x3a7f8d(0x37f)])),L(0x4,a['IUniverInstanceService']),L(0x5,a['ILogService']),L(0x6,a['Inject'](a['LocaleService']))],ne);var ns=Object[_0x3a7f8d(0x28c)],rs=(_0x5ddd6b,_0x5e1737,_0x5d93ad,_0x179107)=>{const _0x35fca1=_0x3a7f8d;for(var _0xaa9ff9=_0x179107>0x1?void 0x0:_0x179107?ns(_0x5e1737,_0x5d93ad):_0x5e1737,_0x3f1110=_0x5ddd6b[_0x35fca1(0x355)]-0x1,_0x2734e1;_0x3f1110>=0x0;_0x3f1110--)(_0x2734e1=_0x5ddd6b[_0x3f1110])&&(_0xaa9ff9=_0x2734e1(_0xaa9ff9)||_0xaa9ff9);return _0xaa9ff9;},Se=(_0x5a559b,_0x29e9a7)=>(_0x1b388d,_0xbf9966)=>_0x29e9a7(_0x1b388d,_0xbf9966,_0x5a559b);let Te=class extends a[_0x3a7f8d(0x404)]{constructor(_0x1e2da3,_0x3c651b,_0x5bbe9b){const _0x123318=_0x3a7f8d;super(),_(this,_0x123318(0x262),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x123318(0x3a7),!0x1),(this['_configService']=_0x1e2da3,this['_localStorageService']=_0x3c651b,this[_0x123318(0x2c0)]=_0x5bbe9b);}[_0x3a7f8d(0x218)](){const _0x3a04af=_0x3a7f8d;this[_0x3a04af(0x3a7)]=!0x0;}[_0x3a7f8d(0x3ec)](){const _0x244eac=_0x3a7f8d;this[_0x244eac(0x3a7)]=!0x1;}get[_0x3a7f8d(0x2b9)](){const _0x3a334a=_0x3a7f8d;return this[_0x3a334a(0x1c5)];}[_0x3a7f8d(0x221)](){const _0xfb763b=_0x3a7f8d;this[_0xfb763b(0x226)]()[_0xfb763b(0x284)](()=>super[_0xfb763b(0x221)]());}async[_0x3a7f8d(0x380)](_0x20d120){const _0x2ba037=_0x3a7f8d;return this[_0x2ba037(0x3a7)]?null:this['_localStorageService'][_0x2ba037(0x216)](u[_0x2ba037(0x27c)](_0x20d120));}async[_0x3a7f8d(0x316)](_0xfc2f84,_0x33cacc){const _0x3c6a1b=_0x3a7f8d;return!!this[_0x3c6a1b(0x3ea)][_0x3c6a1b(0x2c4)](_0xfc2f84,_0x33cacc);}[_0x3a7f8d(0x3a4)](_0x2ce763,_0xf0e9b6,_0x455d06,_0x2fa111){const _0x177852=_0x3a7f8d,_0x3ad35d=this[_0x177852(0x2c0)]['getCurrentRevOfUnit'](_0x2ce763);this[_0x177852(0x262)][_0x177852(0x23b)](_0x2ce763,{'unitID':_0x2ce763,'type':_0xf0e9b6,'awaitingChangeset':_0x455d06,'mutations':_0x2fa111,'rev':_0x3ad35d}),this[_0x177852(0x1c5)][_0x177852(0x255)](_0x2ce763)||this[_0x177852(0x3cf)](_0x2ce763);}[_0x3a7f8d(0x3cf)](_0x23f960){const _0x5347dd=_0x3a7f8d,_0x18c89b=this[_0x5347dd(0x335)]();_0x18c89b===0x0?this[_0x5347dd(0x21c)](_0x23f960):this[_0x5347dd(0x1c5)][_0x5347dd(0x23b)](_0x23f960,setTimeout(()=>this[_0x5347dd(0x21c)](_0x23f960),_0x18c89b));}['_getSaveTimeout'](){const _0x3b5ba6=_0x3a7f8d;var _0x242885;return(_0x242885=this[_0x3b5ba6(0x31a)][_0x3b5ba6(0x288)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x242885:u['LOCAL_CACHE_INTERVAL'];}[_0x3a7f8d(0x21c)](_0x1ec720){const _0x491f5a=_0x3a7f8d,_0x672fd3=this[_0x491f5a(0x1c5)][_0x491f5a(0x3af)](_0x1ec720);return _0x672fd3!==void 0x0&&window['clearTimeout'](_0x672fd3),this[_0x491f5a(0x3ea)][_0x491f5a(0x2c4)](u['getLocalCacheKey'](_0x1ec720),this[_0x491f5a(0x262)][_0x491f5a(0x3af)](_0x1ec720))['then'](()=>this['_saveTaskMap'][_0x491f5a(0x41b)](_0x1ec720));}async[_0x3a7f8d(0x226)](){const _0x5deac4=_0x3a7f8d,_0x8fce78=[];this[_0x5deac4(0x1c5)][_0x5deac4(0x3f4)]((_0x4dc40d,_0xb326cc)=>{const _0x3e9333=_0x5deac4;window[_0x3e9333(0x319)](_0x4dc40d),_0x8fce78[_0x3e9333(0x201)](this[_0x3e9333(0x21c)](_0xb326cc)[_0x3e9333(0x284)](()=>{const _0x43f524=_0x3e9333;this[_0x43f524(0x1c5)]['delete'](_0xb326cc);}));}),await Promise['all'](_0x8fce78);}};Te=rs([Se(0x0,a[_0x3a7f8d(0x344)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a['Inject'](g[_0x3a7f8d(0x27f)]))],Te);class ke extends a[_0x3a7f8d(0x270)]{constructor(){const _0x51056f=_0x3a7f8d;super(),_(this,_0x51056f(0x223)),this['urlChange$']=I[_0x51056f(0x429)](window,_0x51056f(0x275))[_0x51056f(0x30f)](I[_0x51056f(0x202)](this['dispose$']),I[_0x51056f(0x411)](0x1),I['mapTo'](void 0x0));}[_0x3a7f8d(0x21d)](_0x541a1c,_0x16cd89,_0x110ae7=!0x1){const _0x46ac63=_0x3a7f8d,_0x316317=new URL(window['location'][_0x46ac63(0x3a0)]);_0x316317['searchParams']['set'](_0x541a1c,_0x16cd89),_0x110ae7?window['history'][_0x46ac63(0x38a)]('','',_0x316317[_0x46ac63(0x423)]()):window[_0x46ac63(0x2f1)][_0x46ac63(0x1a8)]('','',_0x316317[_0x46ac63(0x423)]());}[_0x3a7f8d(0x35f)](_0x26b01f,_0x17bb28=!0x1){const _0x3034cb=_0x3a7f8d,_0x687a5a=new URL(window[_0x3034cb(0x1dd)][_0x3034cb(0x3a0)]);_0x687a5a[_0x3034cb(0x291)][_0x3034cb(0x41b)](_0x26b01f),_0x17bb28?window['history'][_0x3034cb(0x38a)]('','',_0x687a5a['toString']()):window[_0x3034cb(0x2f1)][_0x3034cb(0x1a8)]('','',_0x687a5a[_0x3034cb(0x423)]());}['getParam'](_0x4b24c7){const _0x4ff0ed=_0x3a7f8d;var _0x2126c2;return(_0x2126c2=new URL(window[_0x4ff0ed(0x1dd)]['href'])[_0x4ff0ed(0x291)][_0x4ff0ed(0x3af)](_0x4b24c7))!=null?_0x2126c2:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x3a7f8d(0x28c)],cs=(_0x732416,_0x125929,_0xf4231f)=>_0x125929 in _0x732416?os(_0x732416,_0x125929,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf4231f}):_0x732416[_0x125929]=_0xf4231f,ls=(_0x57ee75,_0x383bfc,_0x3d2225,_0x18ee47)=>{const _0x44ffb8=_0x3a7f8d;for(var _0x409b87=_0x18ee47>0x1?void 0x0:_0x18ee47?as(_0x383bfc,_0x3d2225):_0x383bfc,_0x2b71aa=_0x57ee75[_0x44ffb8(0x355)]-0x1,_0x59ec4b;_0x2b71aa>=0x0;_0x2b71aa--)(_0x59ec4b=_0x57ee75[_0x2b71aa])&&(_0x409b87=_0x59ec4b(_0x409b87)||_0x409b87);return _0x409b87;},de=(_0x470c7f,_0x5340c4)=>(_0x11f2fe,_0xd67f9a)=>_0x5340c4(_0x11f2fe,_0xd67f9a,_0x470c7f),_s=(_0x48dbe5,_0x46cacf,_0x40c4fd)=>cs(_0x48dbe5,_0x46cacf+'',_0x40c4fd);const hs=_0x3a7f8d(0x410);exports[_0x3a7f8d(0x1ab)]=class extends a[_0x3a7f8d(0x1cf)]{constructor(_0x2ba196=Me,_0x446612,_0x4db3ce,_0x4168ae){const _0x51e811=_0x3a7f8d;super(),this[_0x51e811(0x3ab)]=_0x2ba196,this[_0x51e811(0x245)]=_0x446612,this[_0x51e811(0x41e)]=_0x4db3ce,this[_0x51e811(0x31a)]=_0x4168ae;const {..._0x3b80dc}=a[_0x51e811(0x1a5)]({},Me,this['_config']);this[_0x51e811(0x31a)]['setConfig'](Yt,_0x3b80dc);}[_0x3a7f8d(0x39d)](){const _0x2a675b=_0x3a7f8d;this[_0x2a675b(0x227)](),this[_0x2a675b(0x304)]();}['onRendered'](){const _0x7ad391=_0x3a7f8d;this[_0x7ad391(0x285)]();}[_0x3a7f8d(0x227)](){const _0x59beb8=_0x3a7f8d;var _0x10a578;const _0x54f2af=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x59beb8(0x20a)],{'useClass':x[_0x59beb8(0x257)]}],[u[_0x59beb8(0x242)],{'useClass':Te}],[exports[_0x59beb8(0x1a7)]],[ie],[Z],[F],[me],[exports[_0x59beb8(0x3ce)]]];this[_0x59beb8(0x3ab)][_0x59beb8(0x1a1)]&&_0x54f2af['push']([Q]),a[_0x59beb8(0x16b)](this[_0x59beb8(0x41e)],a[_0x59beb8(0x325)](_0x54f2af,(_0x10a578=this[_0x59beb8(0x3ab)])==null?void 0x0:_0x10a578['override']));}['_registerRenderDependencies'](){const _0x2cacbe=_0x3a7f8d;this[_0x2cacbe(0x20e)](this[_0x2cacbe(0x245)]['registerRenderModule'](a[_0x2cacbe(0x1c7)][_0x2cacbe(0x3dd)],[Ee])),this[_0x2cacbe(0x20e)](this[_0x2cacbe(0x245)][_0x2cacbe(0x3f9)](a[_0x2cacbe(0x1c7)][_0x2cacbe(0x289)],[Ce]));}[_0x3a7f8d(0x304)](){const _0x1b47f7=_0x3a7f8d;a[_0x1b47f7(0x1bb)](this[_0x1b47f7(0x41e)],[[F],[exports[_0x1b47f7(0x1a7)]],[ie],[Z],[exports[_0x1b47f7(0x3ce)]],[ne]]),this['_config'][_0x1b47f7(0x1a1)]&&a[_0x1b47f7(0x1bb)](this['_injector'],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x3a7f8d(0x28d),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x3a7f8d(0x405)](u[_0x3a7f8d(0x362)]),de(0x1,C[_0x3a7f8d(0x408)]),de(0x2,a[_0x3a7f8d(0x3e3)](a[_0x3a7f8d(0x2e1)])),de(0x3,a[_0x3a7f8d(0x344)])],exports[_0x3a7f8d(0x1ab)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x5cd46e,_0x47bef5,_0x324571,_0x209687)=>{for(var _0x4cd82e=_0x209687>0x1?void 0x0:_0x209687?us(_0x47bef5,_0x324571):_0x47bef5,_0x5733b2=_0x5cd46e['length']-0x1,_0x14f8e9;_0x5733b2>=0x0;_0x5733b2--)(_0x14f8e9=_0x5cd46e[_0x5733b2])&&(_0x4cd82e=_0x14f8e9(_0x4cd82e)||_0x4cd82e);return _0x4cd82e;},W=(_0x90f75d,_0x32c1ad)=>(_0x463f32,_0x459300)=>_0x32c1ad(_0x463f32,_0x459300,_0x90f75d);function _0x368b(){const _0x172095=['_initDependencies','entityInit$','InsertColCommandId','addObject','_commandService','m2Prime','isTransformMutationsWithChangesetSuccess','stringify','unhandledrejection','PENDING','CLOSE_ROOM','pipe','getParam','skeleton','clsx','ENTITLE_REPORT_LIMIT_EXCEED','find','_startSheetCollabCursor','saveOfflineData','69315ZUnrhi','_onCursorUpdate','clearTimeout','_configService','DOC_RANGE_TYPE','session.collaboration-timeout','SheetsSelectionsService','createInstance','unsubscribe','colorChannel1','ILogService','sessionTicket','ITransformService','handleMoveRange','mergeOverrideWithDependencies','AUTHORIZE_CODE_ILLEGAL','_transformService','_getSheetObject','svg','unshift','BehaviorSubject','http://www.w3.org/2000/svg','debug','ENSURE_SNAPSHOT_EXECUTION','code','LICENSE_EXPORT_SIZE_EXCEEDED','82973oVEWFP','_lastPointer','fillStyle','_localeService','_getSaveTimeout','0\x200\x2017\x2016','endRow','_colorIndex','_logService','LOGIN_TOKEN_PROCESSING_FAILED','complete','debounce','currentUsage','SheetCollabCursorShape','getCurrent','none','children','row','_cursorShapes','IConfigService','_initCommandExecutedListener','collabStatus.fetchMiss','SYNCED','_uiPartsService','handleInsertRangeMoveDown','connectInjector','NO_OTHER_CLIENTS_EDITING','onPointerEnter$','_init','_onCursorDelete','_localCacheService','collaboration-client-ui.config','_unitOnClients','createElement','_selfUnitIDs','INTERNAL_ERROR','length','jiqing.500','DATA_SOURCE_TOO_LARGE','UniverIcon','_initEntityListener','top','SOCKET_FAILED','ticket','IUIPartsService','_removeCollabCursors','removeParam','HEADER_MENU','...','UniverCollaborationClientPlugin','data','_labelPosition','_assignedColors','_initUserListener','height','SetDocZoomRatioOperation','UNRECOGNIZED','Unknown\x20user','purple.300','_ensureSubject','_getFormulaLimitStatus','RichTextEditingMutation','_initEvent','runId','random','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','reconnect','unit','REDEMPTION_CODE_INACTIVE','_memberID','getActiveSheet','current','permission.content','debounceTime','getUndoRedoMutationParamsCache','throttleTime','UnitStatus','defineProperty','HTTPService','loadOfflineData','getColor','fill','add','subunit','uni.network.url-service','transformStateCache','subscribeEvent','_checkAndWaitForCalculationPermission','show','replaceState','range','_getAnchorBounding','_monkeyPatchLogService','_onRefRangeChange','defs','getCollabEntity$','1em','CollaborationUIEventId','collabStatus.synced','selection','_eventUnsubscribe','_color','type','getRangePointData','isArray','stack','transformByState','CONNECTOR_DATA_TOO_LARGE','onStarting','Failed','ENTITLE_CAN_NOT_BUY_LOWER_OTP','href','serializeRangeWithSheet','startFormulaLimitUrl','Success','updateOfflineData','COMPLETION_FINISHED','cursorInfo$','_disabled','bind','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','YUUMI_ASYNCIO_CANCELLED','_config','collab-client.tooltip.reconnect','_transformPreviousActiveRange','disposeUnit','get','univerjs-icon\x20univerjs-icon-','_id','filename','maxFormulaLimit','USER_NOT_INVITED_CODE','CollaborationUIEventService','ACTIVE_UNIT_EVENT_CHANNEL','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_memberService','transformRemoteChangeset','currentTheme$','closePath','blue.400','SOCKET_FAILED_RETRY','_getMergeRange','onMouseMove','on-line-icon','getUnitId','TEXT','_drawRectRange','addObjects','key','ENTITLE_COUPON_USED_UP','collabStatus.syncing','DocSelectionManagerService','clearInterval','_colorAssignService','textRanges','_initStatusComponent','ICommandService','CollaborationDataLoaderController','_scheduleSaving','WebURLService','collab-rect-range-','UPDATE_CURSOR','measureText','getCellMatrix','url(#on-line-icon_clip0_910_349)','/universer-api/license/formula/limit/start','_handleJoinEvent','TEXT_RANGE_LAYER_INDEX','/universer-api/license/formula/limit/status','_toggleOnline','getUnhiddenWorksheets','onLocalMutation','UNIVER_DOC','_getSessionTicket','name','Loading','getTypeOfUnitAdded$','setStateCache','Inject','APPLY_NON_SEQUENTIAL_REVISION','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','sessionStatus$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','handleInsertRow','setActiveRange','_localStorageService','unitId','enableLocalCache','AWAITING_WITH_PENDING','replaceDocRanges','join','MemberService','black','ranges','[CollaborationDataLoaderController]','forEach','_lastResponseTimestamp','clipPath','PAYMENT_CHANNEL_NOT_SUPPORT','url(#$1','registerRenderModule','color','onTransformChange$','backgroundColor','820REecNB','combineLatest','_anchorDot','eventID','off-line-icon','min','isFormulaId','Disposable','DependentOn','INVITE_CODE_HAS_BEEN_UES','jsx','IRenderManagerService','send','IRemoteInstanceService','getUnitStatus$','EffectRefRangId','onPointerLeave$','YUUMI_SUBSCRIPTION_NOT_FOUND','ThemeService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','shareReplay','_hideTimer','resize','useObservable','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_docClipboardService','IImageIoService','DeleteRangeMoveLeftCommandId','next','InsertRangeMoveDownCommandId','delete','SHEET_VIEWPORT_KEY','search','_injector','div','430744KeZsEL','Workbook','63Pgypfy','toString','getRelativeToViewportCoord','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','fillText','ENTITLE_CHAT_LIMIT_EXCEED','USER_IS_ANONYMOUS','fromEvent','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_backgroundColor','wsSessionTicketUrl','evenodd','ERROR_AGAIN','_hasFormulaInDirtyRanges','registerDependencies','Shape','45HIScwt','session.connection-failed','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_updateCollabCursors','doc.mutation.rich-text-editing','ENTITLE_INSUFFICIENT_QUOTA','IBeforeCloseService','ENTITLE_COUPON_EXPIRED','filter','REDEMPTION_CODE_FULLY_REDEEMED','transformIMECache','whenReady','INVALID_ARGUMENT','_scheduleClearOtherTimer','transform','origin','IURLService','IDocClipboardService','_docStateChangeManagerService','REDEMPTION_USER_NOT_ELIGIBLE','limitInfo','memberID','_collaborationController','WECHAT_HAS_BEEN_BOUND','permission.title','/universer-api/license/formula/limit/done','getformulaLimitStatusUrl','text','getStateCache','from','setAlpha','DataLoaderService','getCollabCursors$','dispose$','YUUMI_ALL_TABLES_IS_INVALID','registerRefRange','setTimeout','mask','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_setFormulaLimitStatus','Warning','colno','_heartbeatTimer','getUniverSheetInstance','getFocusedUnit','distinctUntilChanged','RECT','map','FormulaExecuteStageType','source','Tools','stage','enableFrontendLog','sheetId','toDisposable','NOT_COLLAB','merge','LOGIN_FAILED','DesktopCollaborationStatusDisplayController','pushState','_collaborationSessionService','MOBILE_VERIFY_CODE_MISMATCH','UniverCollaborationClientUIPlugin','body','_doCreateSocket','getSkeleton','getCurrentSelections','CollaborationEvent','url(#off-line-icon_clip0_910_343)','handleDeleteRangeMoveLeft','FromArray','SetFormulaCalculationNotificationMutation','formula.calculation.waiting','MOBILE_HAS_BEEN_BOUND','#FFF','registerBeforeClose','getSheetObject','SetTextSelectionsOperation','touchDependencies','_document','_removeClearOtherTimer','lineno','_toggleOffline','_messageService','m1Prime','_urlService','WebBrowserSingleActiveUnitService','handleInsertRangeMoveRight','_saveTaskMap','size','UniverInstanceType','FETCH_MISS','_hovered','column','_updateSubUnitFromURLParams','YUUMI_NO_CUBOID_FOR_QUESTION','unload','roomMembers$','Plugin','rgba(255,\x20255,\x20255,\x200.01)','subUnitId','transformMutation','_uploadLog','requireSession','39768pIeQxI','isActive','setInterval','getMergeData','IMessageService','APPLY_REVISION_CONFILICT','597618DGGffk','_updateURLWithCurrentState','location','_drawAnchor','collabStatus.conflict','result','_collabCursorController','getOffsetConfig','[LogService\x20Error]:\x20','177890HETywB','labelPosition','UNAUTHENTICATED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_draw','white','InsertRangeMoveRightCommandId','_cursorInfo$','24OAttqj','currentColor','SheetSkeletonManagerService','parse','DocStateChangeManagerService','formula.calculation.started','collabCursorState$','SetWorksheetActivateCommand','toRgbString','_docTransformIMECacheService','_docTransformStateCacheService','collabStatus.notCollab','getCoordByCell','xlink:href','REDEMPTION_CODE_HAS_BEEN_CREATED','INVITE_CODE_REQUIRED','\x20at\x20','_collabSessionService','_initWindowErrorListener','newValue','OnLineIcon','push','takeUntil','SetSelectionsOperation','_initCommandInterceptor','subscribe','mutations','BrowserCollaborationSocketService','asObservable','RefRangeService','ISocketService','Tooltip','Subject','_textBubble','disposeWithMe','idSuffix','arc','string','SUCCESS','RemoveRowCommandId','_initResize','includes','getItem','getDocRanges','disableLocalCache','_dataLoaderService','defIds','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_saveCache','setParam','_unitStatus','error','displayName','dispose','MessageType','urlChange$','_handleHeartbeatEvent','ENTITLE_NEED_BILLING_ADDRESS','exhaustSavingTask','_registerDependencies','unitID','_context','YUUMI_RATE_OVER_LIMIT','ColorKit','CollaborationStatus','CommandType','isEditing','roomMembers','init','endColumn','split','AWAITING','totalFormulasToCalculate','_shapes','_initStatusListener','assign','attrs','useDependency','collaboration.closeRoom','set','_roomMembers$','imageSourceType','_handleHover','/universer-api/frontend/logs','round','_initUnhandledRejectionListener','ILocalCacheService','_clearPolling','loadUnit','_renderManagerService','assignAColorForMemberID','_themeService','getColorFromTheme','post','APPLY_REJECT','functionsExecutedState','setShapeProps','_transformHistoryAndStateStack','CHANGESET_REVISION_CONFILICT','moveTo','_clearOtherTimers','Error','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getRenderById','lineTo','has','getActiveRange','WebSocketService','EMAIL_VERIFY_CODE_MISMATCH','APPLY_DUPLICATED','_range','CollaborationSocketService','invokeId','LICENSE_IMPORT_SIZE_EXCEEDED','getSheetId','_status$','YUUMI_URL_COL_OUT_OF_RANGE','removeEventListener','_cachedData','releaseFormulaLimitUrl','getUnit','onCommandExecuted','Module','ENTITLE_INVALID_COUPON_CODE','ISnapshotServerService','event$','LICENSE_DISTRO_REJECTED','_handleEvent','getSheetBySheetId','ONLINE','_maxFormulaLimit','_setupBeforeClosingHandler','RxDisposable','off-line-icon_clip0_910_343','jsxs','INVITE_CODE_ALREADY_BOUND','triggerDblclick','popstate','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','LICENSE_MAX_UNITS_EXCEEDED','_scene','_collaborationUIEventService','APPLY_PERMISSION_DENIED','_docSkeletonManagerService','getLocalCacheKey','Rect','_createSocketURL','RevisionService','restore','_refRangeService','_collabCursorState$','_imageIoService','then','_registerRenderDependencies','REDEMPTION_INVALID_CODE','substring','getConfig','UNIVER_SHEET','CollaborationController','syncEditingCollabCursor','getOwnPropertyDescriptor','pluginName','?taskId=','CollaborationSessionService','OffLineIcon','searchParams','DocIMEInputManagerService','RegularPolygon','docStateChange$','OFFLINE','undoState','[Unhandled\x20Rejection]:\x20','path','_currentUsage','generateRandomId','_scheduleHeartbeat','activeSheet$','EMAIL_HAS_BEEN_BOUND','replace','red.300','startColumn','deserializeRangeWithSheet','YUUMI_CONNECTOR_URL_NOT_FOUND','REDEMPTION_CODE_NOT_STARTED','DisposableCollection','_instanceService','stageInfo','DocCollaborationEntity','_checkCalculationAvailable','_pollingInterval','_drawTextRange','createSocket','TRANSFORM_CHANGE_OBSERVABLE_TYPE','NOT_FOUND','on-line-icon_clip0_910_349','TOO_MANY_REQUESTS','beforeCommandExecuted','_sheetSkeletonManagerService','transformMutationsWithChangeset','_send','save','INVALID_INVITE_CODE','_docSyncEditingCollabCursorService','SNAPSHOT_HAS_BEEN_REMOVED','OTHER_CLIENTS_EDITING','saveTaskMap','YUUMI_UNABLE_LOAD_URL','LocaleService','YUUMI_AI_RUN_FAILED','_hover','values','now','_revisionService','_anchor','parseInt','reason','setItem','IUniverInstanceService','UNDEFINED','findNodePositionByCharIndex','_entityInit$','_setupSubUnitSync','getValue','setUndoRedoMutationParamsCache','startRow','univer-mr-2\x20univer-flex\x20univer-text-xl','_httpService','RemoteUniscriptService','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','Vector2','tag','_refreshCollabCursors','CURRENT_STATUS_CANNOT_OPERATE','_showGuardMessage','OTHER_CLIENT_EDITING','_syncEditingCollabCursorService','_session','getAncestorScale','_handleLeaveEvent','DocSkeletonManagerService','addHandlerCallback','_entities','forwardRef','cursorInfo','_cursors','Injector','PERMISSION_DENIED','currentSkeleton$','redoState','_taskIds','ENTITLE_DUP_SUBSCRIPTION','COLORS','deepClone','executeCommand','params','drawWith','some','saveImage','_updateLocalCursor','USERS_LEAVE','_univerInstanceService','history','_notificationService','_docTransformSelectionsService','_startCalculationLimit','message','[Window\x20Error]:\x20','getMemberID','_online','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','switchMap','addEventListener','isTransformMutationFailure','width','454298GoFzlr','_name','CONFLICT','REDEMPTION_USER_REDEEM_TIMES_EXCEED','VIEW_MAIN','transformSelections'];_0x368b=function(){return _0x172095;};return _0x368b();}exports['BrowserCollaborationSocketService']=class extends u[_0x3a7f8d(0x25b)]{constructor(_0x5a60dd,_0x1ca610,_0x1e0125,_0x13bbc4,_0x37fb3){super(_0x5a60dd,_0x1ca610,_0x1e0125,_0x13bbc4,_0x37fb3);}async[_0x3a7f8d(0x2ab)](_0x31e54b){const _0x4d5408=_0x3a7f8d,_0x2b1b6c=await this['_getSessionTicket'](),_0x5780b1=this[_0x4d5408(0x27e)](_0x31e54b,_0x2b1b6c);return this[_0x4d5408(0x1ad)](_0x5780b1);}['_createSocketURL'](_0xb71961,_0x3adf82){const _0x358dd3=_0x3a7f8d,_0x44309c=typeof window>'u'?new URL(_0xb71961):new URL(_0xb71961,window[_0x358dd3(0x1dd)][_0x358dd3(0x17c)]);_0x44309c[_0x358dd3(0x291)][_0x358dd3(0x23b)](_0x358dd3(0x322),_0x3adf82);const _0x9e87ee=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x358dd3(0x1dd)][_0x358dd3(0x41d)]);return _0x9e87ee[_0x358dd3(0x3af)]('runId')&&_0x44309c[_0x358dd3(0x291)]['set'](_0x358dd3(0x370),_0x9e87ee[_0x358dd3(0x3af)](_0x358dd3(0x370))),_0x44309c[_0x358dd3(0x423)]();}async[_0x3a7f8d(0x3de)](){const _0x5b1665=_0x3a7f8d;var _0x40ebf6,_0x56eeef,_0x2eb6c3;const _0xac987a=this[_0x5b1665(0x31a)][_0x5b1665(0x288)](u[_0x5b1665(0x3e5)]),_0x4a5550=(_0x40ebf6=_0xac987a==null?void 0x0:_0xac987a[_0x5b1665(0x167)])!=null?_0x40ebf6:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x2eb6c3=(_0x56eeef=(await this[_0x5b1665(0x2ce)]['get'](_0x4a5550,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x56eeef[_0x5b1665(0x35c)])!=null?_0x2eb6c3:'';}},exports[_0x3a7f8d(0x207)]=Is([W(0x0,a[_0x3a7f8d(0x3e3)](a['Injector'])),W(0x1,a[_0x3a7f8d(0x3e3)](x[_0x3a7f8d(0x37f)])),W(0x2,a['IConfigService']),W(0x3,a['ILogService']),W(0x4,g[_0x3a7f8d(0x268)])],exports[_0x3a7f8d(0x207)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x522bdd,_0x4daa69,_0x446dfc,_0x353d1e)=>{const _0x4fc718=_0x3a7f8d;for(var _0x42be82=_0x353d1e>0x1?void 0x0:_0x353d1e?Ss(_0x4daa69,_0x446dfc):_0x4daa69,_0x8953fd=_0x522bdd[_0x4fc718(0x355)]-0x1,_0x4be330;_0x8953fd>=0x0;_0x8953fd--)(_0x4be330=_0x522bdd[_0x8953fd])&&(_0x42be82=_0x4be330(_0x42be82)||_0x42be82);return _0x42be82;},fe=(_0x2556e2,_0x4e85ae)=>(_0x21c665,_0x35a6d3)=>_0x4e85ae(_0x21c665,_0x35a6d3,_0x2556e2);exports[_0x3a7f8d(0x2cf)]=class extends a['Disposable']{constructor(_0x314630,_0x4f1a10,_0x4e71fa){const _0x372fd6=_0x3a7f8d;super(),this[_0x372fd6(0x2a5)]=_0x314630,this[_0x372fd6(0x2ce)]=_0x4f1a10,this[_0x372fd6(0x31a)]=_0x4e71fa;}async['runOnServer'](_0x3b8c41,_0x360a84,_0x848d4b,..._0x42102a){const _0x20eeb0=_0x3a7f8d;var _0x2bbe5e,_0x596249,_0xb9d45c,_0x2e1f6f;const _0x4f4277=this[_0x20eeb0(0x2a5)][_0x20eeb0(0x199)]();if(!_0x4f4277)throw new Error(_0x20eeb0(0x3b7));const _0x11dd37=((_0x2bbe5e=this[_0x20eeb0(0x31a)][_0x20eeb0(0x288)](u[_0x20eeb0(0x3e7)]))!=null?_0x2bbe5e:u[_0x20eeb0(0x415)])+'/'+_0x3b8c41+'/run/'+_0x360a84,_0x5e6221=new URL(window[_0x20eeb0(0x1dd)][_0x20eeb0(0x3a0)]),_0x3aee8e={'scriptId':_0x3b8c41,'runId':(_0x596249=_0x5e6221[_0x20eeb0(0x291)][_0x20eeb0(0x3af)]('runId'))!=null?_0x596249:'','function':_0x360a84,'unitId':_0x4f4277['getUnitId'](),'argsOfFunction':JSON[_0x20eeb0(0x30b)](_0x42102a),'invokeId':(_0xb9d45c=_0x848d4b[_0x20eeb0(0x25c)])!=null?_0xb9d45c:'','executionId':(_0x2e1f6f=_0x848d4b['executionId'])!=null?_0x2e1f6f:''};try{const _0xeb9f77=await this['_httpService'][_0x20eeb0(0x249)](_0x11dd37,{'body':_0x3aee8e});return _0xeb9f77[_0x20eeb0(0x1ac)]['error']&&_0xeb9f77['body'][_0x20eeb0(0x21f)][_0x20eeb0(0x32f)]!==G['OK']?_0x20eeb0(0x39e):_0xeb9f77['body'][_0x20eeb0(0x1e0)];}catch{return'Failed';}}},exports[_0x3a7f8d(0x2cf)]=ds([fe(0x0,a[_0x3a7f8d(0x2c5)]),fe(0x1,a['Inject'](x['HTTPService'])),fe(0x2,a[_0x3a7f8d(0x344)])],exports[_0x3a7f8d(0x2cf)]);const we=0x7530,ye=_0x3a7f8d(0x3b6);class fs extends a[_0x3a7f8d(0x404)]{constructor(){const _0x45f5fa=_0x3a7f8d;super(),_(this,_0x45f5fa(0x3b1),a[_0x45f5fa(0x29a)]()),_(this,_0x45f5fa(0x353),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x45f5fa(0x197),null),_(this,_0x45f5fa(0x250),new Map()),_(this,'_unitStatus',new Map()),this[_0x45f5fa(0x34d)]();}[_0x3a7f8d(0x221)](){const _0x444f4b=_0x3a7f8d;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x1b3b49,_0x39a866)=>this['_removeClearOtherTimer'](_0x39a866)),this['_heartbeatTimer']&&window[_0x444f4b(0x3c9)](this['_heartbeatTimer']);}[_0x3a7f8d(0x40b)](_0x548db0){const _0x56b87f=_0x3a7f8d;return this[_0x56b87f(0x36c)](_0x548db0)[_0x56b87f(0x30f)](I[_0x56b87f(0x19a)]());}['editingUnit'](_0x1f27f4){const _0x487da2=_0x3a7f8d;this[_0x487da2(0x353)][_0x487da2(0x1c6)]===0x0&&this[_0x487da2(0x29b)](),this[_0x487da2(0x353)][_0x487da2(0x383)](_0x1f27f4),this[_0x487da2(0x2b3)]({'type':0x0,'memberID':this[_0x487da2(0x3b1)],'unitIDs':[_0x1f27f4],'isForwarded':!0x1});}[_0x3a7f8d(0x3ae)](_0x254b97){const _0x437eab=_0x3a7f8d;this[_0x437eab(0x353)][_0x437eab(0x41b)](_0x254b97),this[_0x437eab(0x353)][_0x437eab(0x1c6)]===0x0&&this['_heartbeatTimer']&&window[_0x437eab(0x3c9)](this[_0x437eab(0x197)]);}[_0x3a7f8d(0x34d)](){const _0x7816f2=_0x3a7f8d;this[_0x7816f2(0x20e)](a[_0x7816f2(0x1a3)](I['fromEvent'](window,'storage')[_0x7816f2(0x205)](_0x17e8e6=>{const _0x27c01a=_0x7816f2;if(_0x17e8e6[_0x27c01a(0x3c5)]!==ye||!_0x17e8e6[_0x27c01a(0x1ff)])return;const _0x4a2979=JSON[_0x27c01a(0x1ef)](_0x17e8e6[_0x27c01a(0x1ff)]);this['_handleEvent'](_0x4a2979);}))),window[_0x7816f2(0x2fb)](_0x7816f2(0x1cd),()=>this[_0x7816f2(0x2b3)]({'type':0x1,'memberID':this[_0x7816f2(0x3b1)],'unitIDs':Array[_0x7816f2(0x18a)](this[_0x7816f2(0x353)])}));}[_0x3a7f8d(0x26b)](_0x3b7288){const _0x243908=_0x3a7f8d;switch(_0x3b7288[_0x243908(0x397)]){case 0x0:this[_0x243908(0x3d7)](_0x3b7288);break;case 0x1:this[_0x243908(0x2da)](_0x3b7288);break;case 0x2:this[_0x243908(0x224)](_0x3b7288);break;}}[_0x3a7f8d(0x3d7)](_0x5a42a1){const _0x53e7ac=_0x3a7f8d,{unitIDs:_0x27da28,memberID:_0x5253ad,isForwarded:_0xf64f54}=_0x5a42a1;_0x27da28[_0x53e7ac(0x3f4)](_0xf3728e=>{const _0x602a82=_0x53e7ac;if(!_0xf64f54&&this[_0x602a82(0x351)][_0x602a82(0x255)](_0xf3728e)&&this[_0x602a82(0x36c)](_0xf3728e)[_0x602a82(0x419)](u['UnitStatus'][_0x602a82(0x2b8)]),!this[_0x602a82(0x351)][_0x602a82(0x255)](_0xf3728e)||!this[_0x602a82(0x351)][_0x602a82(0x3af)](_0xf3728e)['has'](_0x5253ad)){const _0x359304=this[_0x602a82(0x351)][_0x602a82(0x3af)](_0xf3728e)||new Set();_0x359304[_0x602a82(0x383)](_0x5253ad),this[_0x602a82(0x351)][_0x602a82(0x23b)](_0xf3728e,_0x359304),this['_scheduleClearOtherTimer'](_0x5253ad);}}),_0xf64f54||this['_send']({'type':0x0,'memberID':this[_0x53e7ac(0x3b1)],'unitIDs':[...this[_0x53e7ac(0x353)]],'isForwarded':!0x0});}[_0x3a7f8d(0x17a)](_0x22fc08){const _0x3b4bb8=_0x3a7f8d;this[_0x3b4bb8(0x1bd)](_0x22fc08);const _0x4ba02e=window[_0x3b4bb8(0x191)](()=>{const _0x541677=_0x3b4bb8;this['_unitOnClients'][_0x541677(0x3f4)](_0x3448f4=>{_0x3448f4['delete'](_0x22fc08);});},we*0x2);this[_0x3b4bb8(0x250)][_0x3b4bb8(0x23b)](_0x22fc08,_0x4ba02e);}[_0x3a7f8d(0x1bd)](_0x1ac6e9){const _0xf70285=_0x3a7f8d;if(this[_0xf70285(0x250)][_0xf70285(0x255)](_0x1ac6e9)){const _0x47817e=this[_0xf70285(0x250)][_0xf70285(0x3af)](_0x1ac6e9);_0x47817e&&window[_0xf70285(0x319)](_0x47817e),this['_clearOtherTimers'][_0xf70285(0x23b)](_0x1ac6e9,null);}}['_handleLeaveEvent'](_0x3b379a){const _0x208e32=_0x3a7f8d,{memberID:_0x2f1a15,unitIDs:_0xafa561}=_0x3b379a;_0xafa561[_0x208e32(0x3f4)](_0x15b72a=>{const _0x32e06a=_0x208e32;var _0x2f8ba2;const _0x379269=this[_0x32e06a(0x351)][_0x32e06a(0x3af)](_0x15b72a);_0x379269&&(_0x379269[_0x32e06a(0x41b)](_0x2f1a15),(_0x2f8ba2=this[_0x32e06a(0x36c)](_0x15b72a))==null||_0x2f8ba2[_0x32e06a(0x419)](_0x379269[_0x32e06a(0x1c6)]===0x0?u['UnitStatus'][_0x32e06a(0x34b)]:u[_0x32e06a(0x37d)][_0x32e06a(0x2b8)]));}),this[_0x208e32(0x1bd)](_0x2f1a15);}[_0x3a7f8d(0x224)](_0x173bf8){const _0x12a848=_0x3a7f8d;this['_scheduleClearOtherTimer'](_0x173bf8[_0x12a848(0x182)]);}['_send'](_0x378506){const _0x4e073b=_0x3a7f8d;localStorage[_0x4e073b(0x2c4)](ye,JSON[_0x4e073b(0x30b)](_0x378506));}[_0x3a7f8d(0x29b)](){const _0x339060=_0x3a7f8d;this[_0x339060(0x197)]=window[_0x339060(0x1d7)](()=>{const _0x30fa27=_0x339060;this[_0x30fa27(0x2b3)]({'type':0x2,'memberID':this[_0x30fa27(0x3b1)]});},we);}[_0x3a7f8d(0x36c)](_0x57debb){const _0x1bf961=_0x3a7f8d;return this['_unitStatus']['has'](_0x57debb)||this['_unitStatus']['set'](_0x57debb,new I['BehaviorSubject'](u[_0x1bf961(0x37d)][_0x1bf961(0x34b)])),this[_0x1bf961(0x21e)][_0x1bf961(0x3af)](_0x57debb);}}exports[_0x3a7f8d(0x17d)]=Oe,exports[_0x3a7f8d(0x33e)]=je,exports[_0x3a7f8d(0x1c3)]=fs,exports[_0x3a7f8d(0x3d0)]=ke;
1
+ 'use strict';const _0x322ca1=_0xd0d7;(function(_0x25c4b2,_0x37d0bb){const _0x1f0fa0=_0xd0d7,_0xdd225=_0x25c4b2();while(!![]){try{const _0x4b771f=-parseInt(_0x1f0fa0(0x400))/0x1*(-parseInt(_0x1f0fa0(0x36c))/0x2)+-parseInt(_0x1f0fa0(0x2b9))/0x3+-parseInt(_0x1f0fa0(0x239))/0x4*(-parseInt(_0x1f0fa0(0x48d))/0x5)+parseInt(_0x1f0fa0(0x3ea))/0x6*(-parseInt(_0x1f0fa0(0x322))/0x7)+-parseInt(_0x1f0fa0(0x300))/0x8*(-parseInt(_0x1f0fa0(0x205))/0x9)+parseInt(_0x1f0fa0(0x1d4))/0xa+-parseInt(_0x1f0fa0(0x460))/0xb*(-parseInt(_0x1f0fa0(0x35f))/0xc);if(_0x4b771f===_0x37d0bb)break;else _0xdd225['push'](_0xdd225['shift']());}catch(_0x1f391b){_0xdd225['push'](_0xdd225['shift']());}}}(_0x2ccd,0xc8aed));var Xe=Object[_0x322ca1(0x40b)],Ke=(_0x12c278,_0x203e68,_0x3aab14)=>_0x203e68 in _0x12c278?Xe(_0x12c278,_0x203e68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3aab14}):_0x12c278[_0x203e68]=_0x3aab14,_=(_0xeae37f,_0x1923b3,_0x25ff7e)=>Ke(_0xeae37f,typeof _0x1923b3!=_0x322ca1(0x3bd)?_0x1923b3+'':_0x1923b3,_0x25ff7e);Object[_0x322ca1(0x40b)](exports,Symbol['toStringTag'],{'value':_0x322ca1(0x27d)});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:_0x43a7d7,..._0x47c4c5}){const _0x2f06f3=_0x322ca1,{icon:_0x3f43db,id:_0x1ecb4a,className:_0x3ea233,extend:_0xec8748,..._0x77eb3e}=_0x47c4c5,_0x12fd76=('univerjs-icon\x20univerjs-icon-'+_0x1ecb4a+'\x20'+(_0x3ea233||''))['trim'](),_0x2b455e=A[_0x2f06f3(0x35a)]('_'+Qe());return $e(_0x3f43db,''+_0x1ecb4a,{'defIds':_0x3f43db[_0x2f06f3(0x3fb)],'idSuffix':_0x2b455e[_0x2f06f3(0x44d)]},{'ref':_0x43a7d7,'className':_0x12fd76,..._0x77eb3e},_0xec8748);}function $e(_0x18a4bf,_0x2548a7,_0x132b5e,_0xce4445,_0x2ff8c9){const _0x27fbce=_0x322ca1;return A[_0x27fbce(0x30e)](_0x18a4bf[_0x27fbce(0x225)],{'key':_0x2548a7,...Je(_0x18a4bf,_0x132b5e,_0x2ff8c9),..._0xce4445},(Ze(_0x18a4bf,_0x132b5e)[_0x27fbce(0x46e)]||[])[_0x27fbce(0x445)]((_0x457f8d,_0x2aed7e)=>$e(_0x457f8d,_0x2548a7+'-'+_0x18a4bf[_0x27fbce(0x225)]+'-'+_0x2aed7e,_0x132b5e,void 0x0,_0x2ff8c9)));}function Je(_0x4cbadb,_0x597279,_0x6f2177){const _0x3432ee=_0x322ca1,_0x33f3d4={..._0x4cbadb[_0x3432ee(0x289)]};_0x6f2177!=null&&_0x6f2177[_0x3432ee(0x345)]&&_0x33f3d4[_0x3432ee(0x404)]==='colorChannel1'&&(_0x33f3d4[_0x3432ee(0x404)]=_0x6f2177['colorChannel1']),_0x4cbadb['tag']===_0x3432ee(0x1cf)&&_0x33f3d4['id']&&(_0x33f3d4['id']=_0x33f3d4['id']+_0x597279[_0x3432ee(0x3dc)]),Object[_0x3432ee(0x353)](_0x33f3d4)[_0x3432ee(0x48e)](([_0x5bc353,_0x100c1c])=>{const _0x5b9d6e=_0x3432ee;_0x5bc353==='mask'&&typeof _0x100c1c==_0x5b9d6e(0x31e)&&(_0x33f3d4[_0x5bc353]=_0x100c1c['replace'](/url\(#(.*)\)/,_0x5b9d6e(0x3d6)+_0x597279[_0x5b9d6e(0x3dc)]+')'));});const {defIds:_0x4ee9ca}=_0x597279;return!_0x4ee9ca||_0x4ee9ca['length']===0x0||(_0x4cbadb[_0x3432ee(0x225)]===_0x3432ee(0x330)&&_0x33f3d4[_0x3432ee(0x44f)]&&(_0x33f3d4[_0x3432ee(0x44f)]=_0x33f3d4[_0x3432ee(0x44f)]+_0x597279[_0x3432ee(0x3dc)]),Object[_0x3432ee(0x353)](_0x33f3d4)['forEach'](([_0x2c43bb,_0x107664])=>{const _0x38ea04=_0x3432ee;typeof _0x107664==_0x38ea04(0x31e)&&(_0x33f3d4[_0x2c43bb]=_0x107664[_0x38ea04(0x398)](/url\(#(.*)\)/,_0x38ea04(0x3d6)+_0x597279[_0x38ea04(0x3dc)]+')'));})),_0x33f3d4;}function Ze(_0x5709e5,_0x54aa66){const _0x379fb3=_0x322ca1;var _0x2e721f;const {defIds:_0x2a102f}=_0x54aa66;return!_0x2a102f||_0x2a102f[_0x379fb3(0x3f6)]===0x0?_0x5709e5:_0x5709e5[_0x379fb3(0x225)]===_0x379fb3(0x3a0)&&((_0x2e721f=_0x5709e5[_0x379fb3(0x46e)])!=null&&_0x2e721f[_0x379fb3(0x3f6)])?{..._0x5709e5,'children':_0x5709e5['children'][_0x379fb3(0x445)](_0x22db19=>typeof _0x22db19[_0x379fb3(0x289)]['id']==_0x379fb3(0x31e)&&_0x2a102f&&_0x2a102f[_0x379fb3(0x352)](_0x22db19[_0x379fb3(0x289)]['id'])?{..._0x22db19,'attrs':{..._0x22db19[_0x379fb3(0x289)],'id':_0x22db19[_0x379fb3(0x289)]['id']+_0x54aa66[_0x379fb3(0x3dc)]}}:_0x22db19)}:_0x5709e5;}function Qe(){const _0x1e5041=_0x322ca1;return Math[_0x1e5041(0x2d4)]()['toString'](0x24)[_0x1e5041(0x21f)](0x2,0x8);}pe['displayName']='UniverIcon';const et={'tag':'svg','attrs':{'xmlns':_0x322ca1(0x23b),'fill':'none','viewBox':_0x322ca1(0x453),'width':_0x322ca1(0x25e),'height':_0x322ca1(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':_0x322ca1(0x1eb)},'children':[{'tag':_0x322ca1(0x306),'attrs':{'stroke':_0x322ca1(0x368),'d':_0x322ca1(0x334),'strokeLinecap':_0x322ca1(0x46f),'strokeLinejoin':_0x322ca1(0x46f),'strokeWidth':1.2}}]},{'tag':_0x322ca1(0x3a0),'attrs':{},'children':[{'tag':_0x322ca1(0x250),'attrs':{'id':_0x322ca1(0x26b)},'children':[{'tag':_0x322ca1(0x306),'attrs':{'fill':_0x322ca1(0x3a1),'d':_0x322ca1(0x2a7)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A['forwardRef'](function(_0x1266f5,_0x2c9c8b){const _0x306c23=_0x322ca1;return A[_0x306c23(0x30e)](pe,Object['assign']({},_0x1266f5,{'id':_0x306c23(0x266),'ref':_0x2c9c8b,'icon':et}));});xe['displayName']=_0x322ca1(0x22b);const tt={'tag':_0x322ca1(0x1ff),'attrs':{'xmlns':_0x322ca1(0x23b),'fill':_0x322ca1(0x2be),'viewBox':_0x322ca1(0x394),'width':_0x322ca1(0x25e),'height':_0x322ca1(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':_0x322ca1(0x40a)},'children':[{'tag':'path','attrs':{'stroke':_0x322ca1(0x368),'d':_0x322ca1(0x235),'strokeLinecap':_0x322ca1(0x46f),'strokeLinejoin':_0x322ca1(0x46f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x322ca1(0x250),'attrs':{'id':_0x322ca1(0x3fd)},'children':[{'tag':'path','attrs':{'fill':_0x322ca1(0x3a1),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x322ca1(0x42c)](function(_0x1a233d,_0x47d4bd){const _0x3b688c=_0x322ca1;return A[_0x3b688c(0x30e)](pe,Object[_0x3b688c(0x438)]({},_0x1a233d,{'id':_0x3b688c(0x26a),'ref':_0x47d4bd,'icon':tt}));});Be[_0x322ca1(0x471)]=_0x322ca1(0x356);function st(_0x3fff24){const _0x2e5d18=_0x322ca1;switch(_0x3fff24){case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x1cd)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x2e5d18(0x283)]:return _0x2e5d18(0x381);case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x270)]:return _0x2e5d18(0x24a);case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x1e2)]:return'collabStatus.notCollab';case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x2f8)]:case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x2ba)]:return'collabStatus.syncing';case u[_0x2e5d18(0x3ed)][_0x2e5d18(0x3b1)]:case u['CollaborationStatus'][_0x2e5d18(0x3b2)]:return _0x2e5d18(0x3c2);}}function it(_0x102ad9){const _0x58b6d8=_0x322ca1,{status$:_0x508457}=_0x102ad9,_0x21342f=O[_0x58b6d8(0x246)](_0x508457,u[_0x58b6d8(0x3ed)][_0x58b6d8(0x1e2)]),_0x284594=O[_0x58b6d8(0x321)](a['LocaleService']),_0x2d30e4=O[_0x58b6d8(0x321)](u[_0x58b6d8(0x238)]),_0x3e1b14=_0x21342f!==u[_0x58b6d8(0x3ed)][_0x58b6d8(0x1cd)],_0x15e6ab=_0x284594['t'](st(_0x21342f)),_0x4c494d=_0x3e1b14?M[_0x58b6d8(0x252)](Be,{}):M['jsx'](xe,{}),_0x534d4b=A[_0x58b6d8(0x202)](()=>{_0x3e1b14||_0x2d30e4['reconnect']();},[_0x3e1b14,_0x2d30e4]);function _0x50a30f(){const _0x57e094=_0x58b6d8;return M[_0x57e094(0x32c)](_0x57e094(0x248),{'className':_0x57e094(0x41d),'onClick':_0x534d4b,'children':[M[_0x57e094(0x252)](_0x57e094(0x248),{'className':p[_0x57e094(0x232)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x3e1b14,'univer-text-red-500':!_0x3e1b14}),'children':_0x4c494d}),M[_0x57e094(0x252)](_0x57e094(0x248),{'className':_0x57e094(0x20e),'children':_0x15e6ab})]});}return _0x3e1b14?_0x50a30f():M[_0x58b6d8(0x252)](p[_0x58b6d8(0x1c8)],{'title':_0x284594['t']('collab-client.tooltip.reconnect'),'children':_0x50a30f()});}var nt=Object[_0x322ca1(0x258)],rt=(_0x49c7f3,_0x28ae1d,_0x21ba6f,_0x3d98ea)=>{for(var _0x3e1586=_0x3d98ea>0x1?void 0x0:_0x3d98ea?nt(_0x28ae1d,_0x21ba6f):_0x28ae1d,_0xc154bc=_0x49c7f3['length']-0x1,_0xb192b4;_0xc154bc>=0x0;_0xc154bc--)(_0xb192b4=_0x49c7f3[_0xc154bc])&&(_0x3e1586=_0xb192b4(_0x3e1586)||_0x3e1586);return _0x3e1586;},K=(_0x1f828d,_0x502448)=>(_0x301092,_0x205e7c)=>_0x502448(_0x301092,_0x205e7c,_0x1f828d);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x322ca1(0x2c7)]{constructor(_0x1f1ba9,_0x2f98c6,_0x883094,_0x331ed7){const _0x24a499=_0x322ca1;super(),_(this,_0x24a499(0x45b),new I[(_0x24a499(0x3b4))](u[_0x24a499(0x3ed)][_0x24a499(0x1e2)])),(this[_0x24a499(0x234)]=_0x1f1ba9,this[_0x24a499(0x2bc)]=_0x2f98c6,this[_0x24a499(0x494)]=_0x883094,this[_0x24a499(0x25a)]=_0x331ed7,this[_0x24a499(0x2e6)](),this['_initStatusListener']());}[_0x322ca1(0x3c9)](){const _0xe1c66e=_0x322ca1;this[_0xe1c66e(0x2f4)](this[_0xe1c66e(0x234)][_0xe1c66e(0x327)][_0xe1c66e(0x22a)](I['switchMap'](()=>{const _0x1fdcd8=_0xe1c66e,_0x289a70=this['_univerInstanceService']['getFocusedUnit']();return _0x289a70?this[_0x1fdcd8(0x494)][_0x1fdcd8(0x253)](_0x289a70['getUnitId']()):I['of'](null);}),I[_0xe1c66e(0x32a)](_0x4a5b13=>_0x4a5b13?_0x4a5b13[_0xe1c66e(0x1ec)]:I['of'](u[_0xe1c66e(0x3ed)][_0xe1c66e(0x1e2)])))[_0xe1c66e(0x375)](_0x183139=>{const _0x94f9ef=_0xe1c66e;this[_0x94f9ef(0x45b)][_0x94f9ef(0x2b3)](_0x183139);}));}[_0x322ca1(0x2e6)](){const _0x2a10d0=_0x322ca1;this['disposeWithMe'](this[_0x2a10d0(0x25a)][_0x2a10d0(0x47e)](O['BuiltInUIPart'][_0x2a10d0(0x1ea)],()=>O[_0x2a10d0(0x3ca)](ot({'status$':this[_0x2a10d0(0x45b)][_0x2a10d0(0x452)]()}),this[_0x2a10d0(0x2bc)])));}},exports[_0x322ca1(0x387)]=rt([K(0x0,a[_0x322ca1(0x215)]),K(0x1,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),K(0x2,a[_0x322ca1(0x254)](u['CollaborationController'])),K(0x3,O['IUIPartsService'])],exports[_0x322ca1(0x387)]);function ot(_0x3a3331){const {status$:_0x1af8b3}=_0x3a3331;return function(){const _0x39b632=_0xd0d7;return M[_0x39b632(0x252)](it,{'status$':_0x1af8b3});};}const Oe=a[_0x322ca1(0x33a)]('uni.network.url-service');var at=Object[_0x322ca1(0x258)],ct=(_0x2df46b,_0x37db0f,_0x5de66f,_0x471e38)=>{for(var _0x357e30=_0x471e38>0x1?void 0x0:_0x471e38?at(_0x37db0f,_0x5de66f):_0x37db0f,_0x579057=_0x2df46b['length']-0x1,_0x16db7f;_0x579057>=0x0;_0x579057--)(_0x16db7f=_0x2df46b[_0x579057])&&(_0x357e30=_0x16db7f(_0x357e30)||_0x357e30);return _0x357e30;},Y=(_0x38db80,_0x1562b3)=>(_0x4e4978,_0x42a8f4)=>_0x1562b3(_0x4e4978,_0x42a8f4,_0x38db80);exports[_0x322ca1(0x2f7)]=class extends a[_0x322ca1(0x481)]{constructor(_0x5ce51c,_0x34aa26,_0x40f051,_0x43d183,_0x516e51){const _0x2ad2d8=_0x322ca1;super(),this[_0x2ad2d8(0x2f6)]=_0x5ce51c,this[_0x2ad2d8(0x319)]=_0x34aa26,this['_commandService']=_0x40f051,this[_0x2ad2d8(0x2ec)]=_0x43d183,_0x516e51?_0x516e51==null||_0x516e51[_0x2ad2d8(0x24c)]()[_0x2ad2d8(0x344)](()=>this['_init']()):(this[_0x2ad2d8(0x319)]['debug'](_0x2ad2d8(0x1ca),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2ad2d8(0x1c5)]());}async[_0x322ca1(0x1c5)](){const _0x277954=_0x322ca1,_0x700167=this[_0x277954(0x2f6)]['getParam']('unit'),_0x4caef8=this['_urlService']['getParam'](_0x277954(0x384)),_0x35b438=this[_0x277954(0x2f6)]['getParam'](_0x277954(0x314));if(!_0x700167||!_0x4caef8){this[_0x277954(0x319)][_0x277954(0x3e1)](_0x277954(0x1ca),_0x277954(0x285));return;}const _0x4bba23=await this[_0x277954(0x2ec)][_0x277954(0x3bc)](_0x700167,Number(_0x4caef8),_0x35b438);_0x4bba23&&_0x4bba23 instanceof a[_0x277954(0x329)]&&this[_0x277954(0x343)](_0x4bba23);}async[_0x322ca1(0x343)](_0xb59ff8){const _0x2bd61e=_0x322ca1;await this[_0x2bd61e(0x261)](_0xb59ff8),_0xb59ff8[_0x2bd61e(0x223)][_0x2bd61e(0x22a)](I[_0x2bd61e(0x309)](this[_0x2bd61e(0x2dd)]))[_0x2bd61e(0x375)](_0x8a41eb=>{const _0x5f174d=_0x2bd61e;_0x8a41eb&&this[_0x5f174d(0x486)](_0x8a41eb);}),this[_0x2bd61e(0x2f6)][_0x2bd61e(0x448)]['pipe'](I[_0x2bd61e(0x309)](this[_0x2bd61e(0x2dd)]))[_0x2bd61e(0x375)](()=>this[_0x2bd61e(0x261)](_0xb59ff8));}['_updateURLWithCurrentState'](_0x42f5d1,_0x272715=!0x1){const _0x50ec58=_0x322ca1,_0x22c56b=this[_0x50ec58(0x2f6)][_0x50ec58(0x274)](_0x50ec58(0x314));_0x42f5d1[_0x50ec58(0x27f)]()!==_0x22c56b&&this[_0x50ec58(0x2f6)]['setParam'](_0x50ec58(0x314),_0x42f5d1[_0x50ec58(0x27f)](),_0x272715);}async['_updateSubUnitFromURLParams'](_0x268bbd){const _0x531811=_0x322ca1;var _0x5b98a9;const _0x21fbdd=this[_0x531811(0x2f6)][_0x531811(0x274)](_0x531811(0x314));if(!_0x21fbdd||!_0x268bbd[_0x531811(0x418)](_0x21fbdd)){const _0x256c27=_0x268bbd[_0x531811(0x1e8)]()[0x0],_0x47afe4=_0x268bbd[_0x531811(0x418)](_0x256c27);if(!_0x47afe4)return;this[_0x531811(0x486)](_0x47afe4,!0x0),await this[_0x531811(0x38a)][_0x531811(0x2ce)](v[_0x531811(0x1e6)]['id'],{'unitId':_0x268bbd[_0x531811(0x429)](),'subUnitId':_0x256c27});return;}((_0x5b98a9=_0x268bbd[_0x531811(0x2ea)]())==null?void 0x0:_0x5b98a9[_0x531811(0x27f)]())!==_0x21fbdd&&await this[_0x531811(0x38a)]['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x268bbd[_0x531811(0x429)](),'subUnitId':_0x21fbdd});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x322ca1(0x1df)]),Y(0x2,a['ICommandService']),Y(0x3,a['Inject'](u[_0x322ca1(0x377)])),Y(0x4,a[_0x322ca1(0x3fe)](qe['IRemoteInstanceService']))],exports[_0x322ca1(0x2f7)]);var lt=Object[_0x322ca1(0x258)],_t=(_0xfbf9ba,_0x5a5555,_0x5764da,_0x452f9c)=>{const _0x516db0=_0x322ca1;for(var _0x61224e=_0x452f9c>0x1?void 0x0:_0x452f9c?lt(_0x5a5555,_0x5764da):_0x5a5555,_0x54da43=_0xfbf9ba[_0x516db0(0x3f6)]-0x1,_0xf4aed0;_0x54da43>=0x0;_0x54da43--)(_0xf4aed0=_0xfbf9ba[_0x54da43])&&(_0x61224e=_0xf4aed0(_0x61224e)||_0x61224e);return _0x61224e;},De=(_0x2758f5,_0x1696cf)=>(_0x52e470,_0x45dd57)=>_0x1696cf(_0x52e470,_0x45dd57,_0x2758f5);let me=class extends a[_0x322ca1(0x481)]{constructor(_0x124228,_0x46dd40){const _0x1f3012=_0x322ca1;super(),this[_0x1f3012(0x44e)]=_0x124228,this[_0x1f3012(0x303)]=_0x46dd40,this[_0x1f3012(0x1c5)]();}[_0x322ca1(0x1c5)](){const _0x3c8e77=_0x322ca1,_0x345240=this;this['disposeWithMe'](this['_docClipboardService'][_0x3c8e77(0x2c6)]({'onBeforePasteImage':async _0x58cde1=>{const _0x22dfe6=_0x3c8e77,_0x4401fb=await _0x345240['_imageIoService'][_0x22dfe6(0x490)](_0x58cde1);return _0x4401fb?{'source':_0x4401fb['source'],'imageSourceType':_0x4401fb[_0x22dfe6(0x1cc)]}:null;}}));}};me=_t([De(0x0,T[_0x322ca1(0x3ff)]),De(0x1,ze[_0x322ca1(0x2cc)])],me);const Ne=[_0x322ca1(0x2fc),_0x322ca1(0x3ab),'green.600','red.300',_0x322ca1(0x392),_0x322ca1(0x26f)];class Re extends a[_0x322ca1(0x2c7)]{constructor(){const _0x5c998d=_0x322ca1;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x5c998d(0x3cb),0x0);}['assignAColorForMemberID'](_0x3ea269){const _0xb93ee6=_0x322ca1;if(this[_0xb93ee6(0x34e)][_0xb93ee6(0x259)](_0x3ea269))return this[_0xb93ee6(0x34e)][_0xb93ee6(0x442)](_0x3ea269);const _0x47d060=Ne[this[_0xb93ee6(0x3cb)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Ne[_0xb93ee6(0x3f6)],this['_assignedColors'][_0xb93ee6(0x385)](_0x3ea269,_0x47d060),_0x47d060;}}function Fe(_0x419fba){let _0x5ba8ed='';for(const _0x165bb9 of _0x419fba){const {startOffset:_0x5c9f80,endOffset:_0x4aae37,isActive:_0x4b5646,rangeType:_0x49b32c,segmentId:_0x511f5c,segmentPage:_0x48d0c0}=_0x165bb9;_0x5ba8ed['length']&&(_0x5ba8ed+=','),_0x5ba8ed+=_0x5c9f80+':'+_0x4aae37+':'+(_0x4b5646?'1':'0')+':'+_0x49b32c+':'+_0x511f5c+':'+_0x48d0c0;}return _0x5ba8ed;}function ht(_0x5b364e){const _0x241160=_0x322ca1,_0x5e9150=_0x5b364e[_0x241160(0x436)](','),_0x4790ee=[];for(const _0x4ffccb of _0x5e9150){const [_0x3f2eeb,_0x4b8594,_0x4b762b,_0x44ce90,_0xa50856,_0x59bbdb]=_0x4ffccb['split'](':');_0x4790ee[_0x241160(0x47b)]({'startOffset':Number(_0x3f2eeb),'endOffset':Number(_0x4b8594),'collapsed':_0x3f2eeb===_0x4b8594,'isActive':_0x4b762b==='1','rangeType':_0x44ce90===a[_0x241160(0x226)][_0x241160(0x34c)]?a[_0x241160(0x226)][_0x241160(0x34c)]:a[_0x241160(0x226)][_0x241160(0x3b5)],'segmentId':typeof _0xa50856==_0x241160(0x31e)?String(_0xa50856):'','segmentPage':Number(_0x59bbdb!=null?_0x59bbdb:-0x1)});}return _0x4790ee[_0x241160(0x495)](_0x102381=>_0x102381[_0x241160(0x31d)])||(_0x4790ee[0x0][_0x241160(0x31d)]=!0x0),_0x4790ee;}class be extends a[_0x322ca1(0x481)]{constructor(){const _0x4f8e96=_0x322ca1;super(...arguments),_(this,_0x4f8e96(0x1d5),new I['BehaviorSubject'](null)),_(this,_0x4f8e96(0x36a),this[_0x4f8e96(0x1d5)][_0x4f8e96(0x452)]());}[_0x322ca1(0x3ae)](_0x404f22){const _0x2afdbb=_0x322ca1,{unitID:_0x4384f8,memberID:_0x1d0463,textRanges:_0x102785}=_0x404f22,_0x277281=Fe(_0x102785);if(_0x277281==='')return;const _0x171f95={'unitID':_0x4384f8,'memberID':_0x1d0463,'selection':_0x277281};this[_0x2afdbb(0x1d5)][_0x2afdbb(0x2b3)](_0x171f95);}}var ut=Object[_0x322ca1(0x258)],It=(_0x2eb144,_0x1ddb37,_0xd293c9,_0x121ce0)=>{const _0x1764c6=_0x322ca1;for(var _0x46845d=_0x121ce0>0x1?void 0x0:_0x121ce0?ut(_0x1ddb37,_0xd293c9):_0x1ddb37,_0x1d2a77=_0x2eb144[_0x1764c6(0x3f6)]-0x1,_0x1ea8af;_0x1d2a77>=0x0;_0x1d2a77--)(_0x1ea8af=_0x2eb144[_0x1d2a77])&&(_0x46845d=_0x1ea8af(_0x46845d)||_0x46845d);return _0x46845d;},U=(_0x4e3fb2,_0x1f659c)=>(_0xc825d5,_0x1bca31)=>_0x1f659c(_0xc825d5,_0x1bca31,_0x4e3fb2);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x46aefb,_0x2a7cb4,_0x5843d9,_0x32e91e,_0x4cf1e2,_0x32365b,_0x250ab6,_0x3f7539,_0x58048a){const _0x1e7816=_0x322ca1;super(),_(this,_0x1e7816(0x1fc),!0x1),_(this,_0x1e7816(0x1c5),!0x1),_(this,'_cursorInfo$',new I[(_0x1e7816(0x3b4))](new Map())),_(this,_0x1e7816(0x216),this[_0x1e7816(0x38f)][_0x1e7816(0x452)]()),_(this,_0x1e7816(0x307),new I[(_0x1e7816(0x3b4))]([])),_(this,_0x1e7816(0x3c5),this[_0x1e7816(0x307)]['pipe'](I[_0x1e7816(0x396)](St))),_(this,'_updateLocalCursor',a['debounce'](_0x59d694=>{const _0x4be651=_0x1e7816,_0x52fc1b={'eventID':g[_0x4be651(0x2a0)][_0x4be651(0x294)],'data':{'unitID':this[_0x4be651(0x383)],'memberID':this[_0x4be651(0x395)][_0x4be651(0x373)](),'selection':Fe(_0x59d694)}};this[_0x4be651(0x395)][_0x4be651(0x42e)](_0x52fc1b,this[_0x4be651(0x383)]);},dt)),(this[_0x1e7816(0x383)]=_0x46aefb,this[_0x1e7816(0x395)]=_0x2a7cb4,this[_0x1e7816(0x2bc)]=_0x5843d9,this[_0x1e7816(0x3a2)]=_0x32e91e,this['_memberService']=_0x4cf1e2,this['_syncEditingCollabCursorService']=_0x32365b,this[_0x1e7816(0x325)]=_0x250ab6,this[_0x1e7816(0x234)]=_0x3f7539,this['_commandService']=_0x58048a);}get[_0x322ca1(0x2bd)](){const _0x360488=_0x322ca1;return this[_0x360488(0x38f)][_0x360488(0x2e7)]();}get[_0x322ca1(0x1e4)](){const _0x2e0963=_0x322ca1;return this[_0x2e0963(0x307)][_0x2e0963(0x2e7)]();}[_0x322ca1(0x290)](){const _0x124c3f=_0x322ca1;super[_0x124c3f(0x290)](),this[_0x124c3f(0x38f)][_0x124c3f(0x2b3)](new Map()),this[_0x124c3f(0x38f)]['complete'](),this[_0x124c3f(0x307)]['next']([]),this['_roomMembers$']['complete']();}['init'](){const _0x22a6ca=_0x322ca1;this[_0x22a6ca(0x1c5)]||(this[_0x22a6ca(0x1c5)]=!0x0,this[_0x22a6ca(0x395)][_0x22a6ca(0x2d9)][_0x22a6ca(0x22a)](I[_0x22a6ca(0x309)](this[_0x22a6ca(0x2dd)]))[_0x22a6ca(0x375)](_0x34d679=>{const _0x4414e5=_0x22a6ca;_0x34d679===u[_0x4414e5(0x24d)]['ONLINE']?this['_toggleOnline']():this[_0x4414e5(0x2dc)]();}),this['_session'][_0x22a6ca(0x350)][_0x22a6ca(0x22a)](I['takeUntil'](this[_0x22a6ca(0x2dd)]))[_0x22a6ca(0x375)](_0x69a781=>{const _0x2596a1=_0x22a6ca,_0xa0ad2=_0x69a781[_0x2596a1(0x41a)];_0xa0ad2===g[_0x2596a1(0x2a0)]['UPDATE_CURSOR']&&this[_0x2596a1(0x28b)](_0x69a781),_0xa0ad2===g[_0x2596a1(0x2a0)][_0x2596a1(0x28f)]&&this[_0x2596a1(0x354)](_0x69a781);}),this['disposeWithMe'](this[_0x22a6ca(0x38a)][_0x22a6ca(0x3c6)](_0x273612=>{const _0x123157=_0x22a6ca,_0x598cb6=_0x273612[_0x123157(0x380)];_0x598cb6!=null&&this[_0x123157(0x1fc)]&&_0x273612['id']===V[_0x123157(0x304)]['id']&&_0x598cb6[_0x123157(0x318)]===this['unitID']&&_0x598cb6[_0x123157(0x3f8)]===!0x1&&_0x598cb6['ranges'][_0x123157(0x3f6)]>0x0&&this[_0x123157(0x26d)](_0x598cb6[_0x123157(0x3d3)]);})),this['_syncEditingCollabCursorService'][_0x22a6ca(0x36a)][_0x22a6ca(0x22a)](I[_0x22a6ca(0x309)](this[_0x22a6ca(0x2dd)]))[_0x22a6ca(0x375)](_0x309315=>{const _0x423e58=_0x22a6ca;if((_0x309315==null?void 0x0:_0x309315['unitID'])!==this[_0x423e58(0x383)])return;const _0x469aa5={'eventID':g[_0x423e58(0x2a0)]['UPDATE_CURSOR'],'data':_0x309315};this['_onCursorUpdate'](_0x469aa5);}),this[_0x22a6ca(0x2f4)](this[_0x22a6ca(0x38a)][_0x22a6ca(0x3c6)](_0x22f858=>{const _0x311427=_0x22a6ca;if(_0x22f858[_0x311427(0x380)]==null)return;const _0x7ee87c=_0x22f858[_0x311427(0x380)];if(_0x22f858['id']!==V[_0x311427(0x272)]['id']||_0x7ee87c[_0x311427(0x318)]!==this[_0x311427(0x383)])return;const _0x21e88f={'id':'doc.mutation.rich-text-editing','params':_0x7ee87c},_0x33fca7=this[_0x311427(0x2bd)];for(const [_0x596bca,_0x4183f4]of _0x33fca7){const _0x181122={'id':_0x311427(0x3ba),'params':{'unitId':this[_0x311427(0x383)],'actions':null,'textRanges':_0x4183f4[_0x311427(0x3d3)]}},_0x5925d6=this['_transformService'][_0x311427(0x388)](_0x21e88f,_0x181122,!0x1);if(g[_0x311427(0x361)](_0x5925d6))throw _0x5925d6[_0x311427(0x430)];_0x33fca7[_0x311427(0x385)](_0x596bca,{..._0x4183f4,'ranges':_0x5925d6[_0x311427(0x458)][_0x311427(0x380)][_0x311427(0x378)]});}queueMicrotask(()=>{const _0x14dc8c=_0x311427;this[_0x14dc8c(0x38f)]['next'](_0x33fca7);});})));}[_0x322ca1(0x28b)](_0x587846){const _0x130b06=_0x322ca1;var _0x2fbb37,_0x575aad;const {memberID:_0x25732a,selection:_0x2f96ae}=_0x587846['data'],_0x770dca=ht(_0x2f96ae),_0x1eebeb=(_0x575aad=(_0x2fbb37=this[_0x130b06(0x447)][_0x130b06(0x482)](this['unitID'],_0x25732a))==null?void 0x0:_0x2fbb37[_0x130b06(0x3f4)])!=null?_0x575aad:_0x130b06(0x1d2),_0x47f8bc={'color':this[_0x130b06(0x3a2)][_0x130b06(0x2b4)](_0x25732a),'name':_0x1eebeb,'ranges':_0x770dca},_0x5b7f5c=this[_0x130b06(0x2bd)];_0x5b7f5c[_0x130b06(0x385)](_0x25732a,_0x47f8bc),this[_0x130b06(0x38f)][_0x130b06(0x2b3)](_0x5b7f5c);}[_0x322ca1(0x354)](_0x1dd0e1){const _0x1c2b68=_0x322ca1,{memberID:_0x3a5295}=_0x1dd0e1['data'],_0x46af3b=this[_0x1c2b68(0x2bd)];_0x46af3b['delete'](_0x3a5295),this['_cursorInfo$'][_0x1c2b68(0x2b3)](_0x46af3b);}[_0x322ca1(0x434)](){const _0x138843=_0x322ca1;var _0x126098;if(this['_online']=!0x0,((_0x126098=this[_0x138843(0x234)][_0x138843(0x3bf)]())==null?void 0x0:_0x126098[_0x138843(0x429)]())!==this[_0x138843(0x383)])return;const _0x47f004=this[_0x138843(0x2bc)]['get'](V[_0x138843(0x206)])[_0x138843(0x308)]();Array['isArray'](_0x47f004)&&_0x47f004['length']>0x0&&this[_0x138843(0x26d)](_0x47f004);}[_0x322ca1(0x2dc)](){const _0x501551=_0x322ca1;this[_0x501551(0x1fc)]=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x322ca1(0x245)])),U(0x3,a[_0x322ca1(0x254)](Re)),U(0x4,a[_0x322ca1(0x254)](u[_0x322ca1(0x346)])),U(0x5,a[_0x322ca1(0x254)](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x322ca1(0x215)]),U(0x8,a[_0x322ca1(0x3b9)])],ve);var ft=Object[_0x322ca1(0x258)],mt=(_0x160688,_0x343922,_0x5f2717,_0x2b00aa)=>{const _0x13130d=_0x322ca1;for(var _0x8add03=_0x2b00aa>0x1?void 0x0:_0x2b00aa?ft(_0x343922,_0x5f2717):_0x343922,_0x4afce2=_0x160688[_0x13130d(0x3f6)]-0x1,_0x2af585;_0x4afce2>=0x0;_0x4afce2--)(_0x2af585=_0x160688[_0x4afce2])&&(_0x8add03=_0x2af585(_0x8add03)||_0x8add03);return _0x8add03;},w=(_0x1979c3,_0x278a8a)=>(_0x51cd4b,_0x136b0a)=>_0x278a8a(_0x51cd4b,_0x136b0a,_0x1979c3);const vt=0x12c,gt=0x64,Et=()=>{let _0x3782c0=[],_0x20f67d=!0x1;return _0x3b3b05=>{const _0x3a1d20=_0xd0d7;_0x3782c0[_0x3a1d20(0x47b)](_0x3b3b05),_0x20f67d||(_0x20f67d=!0x0,setTimeout(()=>{const _0x2df53d=_0x3a1d20;_0x3782c0[_0x2df53d(0x48e)](_0x14a08e=>_0x14a08e()),_0x3782c0=[],_0x20f67d=!0x1;}));};};let ge=class extends a[_0x322ca1(0x481)]{constructor(_0x1c6d8b,_0x3c9764,_0x2499cd,_0x5b19ea,_0x5dc89a,_0x17e194,_0x140c19,_0x170fb4){const _0x2f8d3f=_0x322ca1;super(),_(this,_0x2f8d3f(0x1fc),!0x1),_(this,'_init',!0x1),_(this,_0x2f8d3f(0x38f),new I['BehaviorSubject'](new Map())),_(this,_0x2f8d3f(0x216),this[_0x2f8d3f(0x38f)][_0x2f8d3f(0x452)]()),_(this,_0x2f8d3f(0x307),new I[(_0x2f8d3f(0x3b4))]([])),_(this,_0x2f8d3f(0x3c5),this[_0x2f8d3f(0x307)][_0x2f8d3f(0x22a)](I['debounceTime'](vt))),_(this,'_updateLocalCursor',a['debounce']((_0xc5a6be,_0xfe992d)=>{const _0x6f648b=_0x2f8d3f,_0x50e6e1={'eventID':g[_0x6f648b(0x2a0)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x6f648b(0x395)][_0x6f648b(0x373)](),'selection':B['serializeRangeWithSheet'](_0xc5a6be,_0xfe992d[_0x6f648b(0x263)])}};this[_0x6f648b(0x395)][_0x6f648b(0x42e)](_0x50e6e1,this[_0x6f648b(0x383)]);},gt)),(this[_0x2f8d3f(0x383)]=_0x1c6d8b,this['_session']=_0x3c9764,this[_0x2f8d3f(0x2bc)]=_0x2499cd,this['_colorAssignService']=_0x5b19ea,this[_0x2f8d3f(0x447)]=_0x5dc89a,this[_0x2f8d3f(0x234)]=_0x17e194,this['_commandService']=_0x140c19,this[_0x2f8d3f(0x31b)]=_0x170fb4);}get[_0x322ca1(0x2bd)](){const _0xe9b8e7=_0x322ca1;return this[_0xe9b8e7(0x38f)][_0xe9b8e7(0x2e7)]();}get[_0x322ca1(0x1e4)](){return this['_roomMembers$']['getValue']();}[_0x322ca1(0x290)](){const _0x89be03=_0x322ca1;super[_0x89be03(0x290)](),this[_0x89be03(0x38f)][_0x89be03(0x2b3)](new Map()),this[_0x89be03(0x38f)][_0x89be03(0x22d)](),this[_0x89be03(0x307)][_0x89be03(0x2b3)]([]),this['_roomMembers$'][_0x89be03(0x22d)]();}[_0x322ca1(0x1e1)](){const _0x4240c0=_0x322ca1;this[_0x4240c0(0x1c5)]||(this['_init']=!0x0,this[_0x4240c0(0x395)][_0x4240c0(0x2d9)][_0x4240c0(0x22a)](I[_0x4240c0(0x309)](this[_0x4240c0(0x2dd)]))['subscribe'](_0x32c0dd=>{const _0x3d218a=_0x4240c0;_0x32c0dd===u[_0x3d218a(0x24d)][_0x3d218a(0x2f3)]?this['_toggleOnline']():this[_0x3d218a(0x2dc)]();}),this[_0x4240c0(0x395)][_0x4240c0(0x350)][_0x4240c0(0x22a)](I[_0x4240c0(0x309)](this[_0x4240c0(0x2dd)]))['subscribe'](_0x3e67e2=>{const _0x30cc7f=_0x4240c0,_0x165e61=_0x3e67e2['eventID'];_0x165e61===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x30cc7f(0x28b)](_0x3e67e2),_0x165e61===g[_0x30cc7f(0x2a0)][_0x30cc7f(0x28f)]&&this[_0x30cc7f(0x354)](_0x3e67e2);}),this[_0x4240c0(0x28d)](),this[_0x4240c0(0x2f4)](this[_0x4240c0(0x38a)][_0x4240c0(0x3c6)](_0x2ca209=>{const _0x1b0506=_0x4240c0;if(this[_0x1b0506(0x1fc)]&&_0x2ca209['id']===v[_0x1b0506(0x3e5)]['id']&&_0x2ca209['params']['unitId']===this[_0x1b0506(0x383)]){const _0x356308=_0x2ca209[_0x1b0506(0x380)];this[_0x1b0506(0x26d)](_0x356308[_0x1b0506(0x26c)],_0x356308[_0x1b0506(0x1f1)][0x0]);}})));}[_0x322ca1(0x28b)](_0x41180a){const _0x39b3b4=_0x322ca1;var _0x111cb7,_0x4ccf53;const {memberID:_0x53146c,selection:_0x1668a5}=_0x41180a[_0x39b3b4(0x349)],{sheetName:_0x11574f,range:_0x33c142}=B[_0x39b3b4(0x213)](_0x1668a5),_0x1fd3ec={'name':(_0x4ccf53=(_0x111cb7=this[_0x39b3b4(0x447)][_0x39b3b4(0x482)](this[_0x39b3b4(0x383)],_0x53146c))==null?void 0x0:_0x111cb7[_0x39b3b4(0x3f4)])!=null?_0x4ccf53:_0x39b3b4(0x1d2),'range':this[_0x39b3b4(0x444)](_0x11574f,_0x33c142),'sheetID':_0x11574f,'color':this[_0x39b3b4(0x3a2)]['assignAColorForMemberID'](_0x53146c),'selection':_0x1668a5},_0x4192cb=this['cursorInfo'];_0x4192cb[_0x39b3b4(0x385)](_0x53146c,_0x1fd3ec),this[_0x39b3b4(0x38f)]['next'](_0x4192cb);}[_0x322ca1(0x354)](_0x398b34){const _0x294040=_0x322ca1,{memberID:_0x418679}=_0x398b34[_0x294040(0x349)],_0x19acfd=this['cursorInfo'];_0x19acfd[_0x294040(0x485)](_0x418679),this['_cursorInfo$']['next'](_0x19acfd);}[_0x322ca1(0x444)](_0x461529,_0x5d5154){const _0x4b5cd6=_0x322ca1;var _0x337079,_0x1089cb;const _0x58ce5e=(_0x1089cb=(_0x337079=this[_0x4b5cd6(0x234)][_0x4b5cd6(0x1f9)](this[_0x4b5cd6(0x383)]))==null?void 0x0:_0x337079[_0x4b5cd6(0x418)](_0x461529))==null?void 0x0:_0x1089cb[_0x4b5cd6(0x464)]();return(_0x58ce5e==null?void 0x0:_0x58ce5e[_0x4b5cd6(0x455)](_0x1603a1=>a['Rectangle'][_0x4b5cd6(0x459)](_0x1603a1,_0x5d5154)))||_0x5d5154;}[_0x322ca1(0x28d)](){const _0x4efe75=_0x322ca1,_0x314f2e=new a[(_0x4efe75(0x477))](),_0x2f1280=Et(),_0x5ad82b=()=>{const _0x453fbf=_0x4efe75;_0x314f2e['dispose']();const _0x534a83=(_0x4ef085,_0x5b08c6,_0x2c4473,_0x17ee37)=>{const _0xbaa862=_0xd0d7;let _0x1f43b8=[];switch(_0x4ef085['id']){case v[_0xbaa862(0x281)][_0xbaa862(0x437)]:{_0x1f43b8=v[_0xbaa862(0x1e7)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)]['DeleteRangeMoveUpCommandId']:{_0x1f43b8=v[_0xbaa862(0x48f)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)][_0xbaa862(0x478)]:{_0x1f43b8=v['handleInsertCol'](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)]['InsertRangeMoveDownCommandId']:{_0x1f43b8=v[_0xbaa862(0x3fc)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)][_0xbaa862(0x265)]:{_0x1f43b8=v[_0xbaa862(0x34a)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)]['InsertRowCommandId']:{_0x1f43b8=v[_0xbaa862(0x38c)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)][_0xbaa862(0x219)]:{_0x1f43b8=v[_0xbaa862(0x3b6)](_0x4ef085,_0x17ee37);break;}case v['EffectRefRangId'][_0xbaa862(0x386)]:{_0x1f43b8=v[_0xbaa862(0x28c)](_0x4ef085,_0x17ee37);break;}case v[_0xbaa862(0x281)][_0xbaa862(0x3d8)]:{_0x1f43b8=v['handleIRemoveRow'](_0x4ef085,_0x17ee37);break;}}const _0x30bf79=v[_0xbaa862(0x287)](_0x1f43b8,_0x17ee37),_0x59fe21=this[_0xbaa862(0x2bd)]['get'](_0x5b08c6);if(_0x59fe21&&_0x30bf79){const _0x58420d={..._0x59fe21,'range':_0x30bf79};this['cursorInfo'][_0xbaa862(0x385)](_0x5b08c6,_0x58420d),_0x2f1280(()=>{const _0x4fca8c=_0xbaa862,_0x3615d2=this[_0x4fca8c(0x31b)][_0x4fca8c(0x42a)](_0x30bf79,_0x85d991=>(_0x3615d2[_0x4fca8c(0x290)](),_0x534a83(_0x85d991,_0x5b08c6,_0x2c4473,_0x30bf79)));_0x314f2e[_0x4fca8c(0x269)](_0x3615d2);});}return{'redos':[],'undos':[]};};this[_0x453fbf(0x2bd)][_0x453fbf(0x48e)]((_0x20c3d4,_0x5aff9b)=>{const _0x3ef942=_0x453fbf,{range:_0x1911ee,sheetID:_0x142566}=_0x20c3d4,_0x30da4f=this[_0x3ef942(0x31b)][_0x3ef942(0x42a)](_0x1911ee,_0x48be2a=>(_0x30da4f[_0x3ef942(0x290)](),_0x534a83(_0x48be2a,_0x5aff9b,_0x142566,_0x1911ee)));_0x314f2e['add'](_0x30da4f);});};this['disposeWithMe'](a[_0x4efe75(0x1db)](this[_0x4efe75(0x38f)][_0x4efe75(0x375)](()=>{_0x5ad82b();})));}['_toggleOnline'](){const _0x2d5016=_0x322ca1;var _0x2d4129,_0x154d29;if(this[_0x2d5016(0x1fc)]=!0x0,((_0x2d4129=this[_0x2d5016(0x234)][_0x2d5016(0x3bf)]())==null?void 0x0:_0x2d4129['getUnitId']())!==this[_0x2d5016(0x383)])return;const _0x50cb2d=(_0x154d29=this[_0x2d5016(0x2bc)][_0x2d5016(0x442)](v['SheetsSelectionsService'])[_0x2d5016(0x3c4)]())==null?void 0x0:_0x154d29[0x0],_0x4cad9d=this[_0x2d5016(0x234)][_0x2d5016(0x48b)](a[_0x2d5016(0x2fa)][_0x2d5016(0x382)])[_0x2d5016(0x2ea)]();_0x50cb2d&&_0x4cad9d&&this[_0x2d5016(0x26d)](_0x4cad9d['getSheetId'](),_0x50cb2d);}[_0x322ca1(0x2dc)](){const _0x3794d1=_0x322ca1;this[_0x3794d1(0x1fc)]=!0x1;}};ge=mt([w(0x2,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),w(0x3,a[_0x322ca1(0x254)](Re)),w(0x4,a[_0x322ca1(0x254)](u[_0x322ca1(0x346)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x322ca1(0x3b9)]),w(0x7,a[_0x322ca1(0x254)](v[_0x322ca1(0x267)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x453bff,_0xc0f7ea,_0x428db5,_0x13ff7d)=>{for(var _0x46483a=_0x13ff7d>0x1?void 0x0:_0x13ff7d?Ct(_0xc0f7ea,_0x428db5):_0xc0f7ea,_0x1bd043=_0x453bff['length']-0x1,_0x345524;_0x1bd043>=0x0;_0x1bd043--)(_0x345524=_0x453bff[_0x1bd043])&&(_0x46483a=_0x345524(_0x46483a)||_0x46483a);return _0x46483a;},ce=(_0x367a19,_0x5ae7c3)=>(_0x2715e6,_0xa7737c)=>_0x5ae7c3(_0x2715e6,_0xa7737c,_0x367a19);let F=class extends a['RxDisposable']{constructor(_0x25f77d,_0x26d2ca,_0x3d486d){const _0x43c765=_0x322ca1;super(),_(this,_0x43c765(0x1e3),new Map()),_(this,_0x43c765(0x335),new I[(_0x43c765(0x1fe))]()),(this[_0x43c765(0x234)]=_0x25f77d,this[_0x43c765(0x2bc)]=_0x26d2ca,this[_0x43c765(0x28e)]=_0x3d486d,this['_init']());}[_0x322ca1(0x290)](){const _0x10de66=_0x322ca1;super[_0x10de66(0x290)](),this[_0x10de66(0x335)][_0x10de66(0x22d)](),this[_0x10de66(0x1e3)][_0x10de66(0x48e)](_0x40b3ed=>_0x40b3ed['dispose']());}[_0x322ca1(0x1ee)](_0x2a4948){const _0x2760f0=_0x322ca1;return this[_0x2760f0(0x1e3)]['has'](_0x2a4948)?this[_0x2760f0(0x1e3)]['get'](_0x2a4948)[_0x2760f0(0x216)]:this['_entityInit$'][_0x2760f0(0x22a)](I[_0x2760f0(0x1c9)](_0x2c37da=>_0x2c37da[_0x2760f0(0x383)]===_0x2a4948),I[_0x2760f0(0x32a)](_0x18c955=>_0x18c955[_0x2760f0(0x216)]));}[_0x322ca1(0x1c5)](){const _0x4eb6da=_0x322ca1;this[_0x4eb6da(0x234)][_0x4eb6da(0x493)](a['UniverInstanceType'][_0x4eb6da(0x382)])[_0x4eb6da(0x22a)](I['takeUntil'](this[_0x4eb6da(0x2dd)]))['subscribe'](async _0x6993a=>{const _0x21d6bb=_0x4eb6da,_0x3c22b6=_0x6993a['getUnitId'](),_0x2cbc1f=await this[_0x21d6bb(0x40d)](_0x3c22b6);this['_entityInit$'][_0x21d6bb(0x2b3)](_0x2cbc1f),this[_0x21d6bb(0x1e3)][_0x21d6bb(0x385)](_0x3c22b6,_0x2cbc1f);}),this['_univerInstanceService'][_0x4eb6da(0x493)](a[_0x4eb6da(0x2fa)][_0x4eb6da(0x24e)])[_0x4eb6da(0x22a)](I['takeUntil'](this['dispose$']))['pipe'](I[_0x4eb6da(0x1c9)](_0x626f89=>!_0x626f89[_0x4eb6da(0x429)]()[_0x4eb6da(0x3a5)]('__')))[_0x4eb6da(0x375)](async _0x48d399=>{const _0x51fb74=_0x4eb6da,_0x6eb84=_0x48d399[_0x51fb74(0x429)](),_0x253858=await this[_0x51fb74(0x2ff)](_0x6eb84);this[_0x51fb74(0x335)][_0x51fb74(0x2b3)](_0x253858),this[_0x51fb74(0x1e3)][_0x51fb74(0x385)](_0x6eb84,_0x253858);}),I['merge'](this[_0x4eb6da(0x234)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x4eb6da(0x24e)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x4eb6da(0x2fa)][_0x4eb6da(0x382)]))[_0x4eb6da(0x22a)](I[_0x4eb6da(0x309)](this[_0x4eb6da(0x2dd)]))[_0x4eb6da(0x375)](_0x11fabd=>{const _0xb9a274=_0x4eb6da,_0xc5b7b8=_0x11fabd[_0xb9a274(0x429)](),_0x5d97f3=this[_0xb9a274(0x1e3)][_0xb9a274(0x442)](_0xc5b7b8);_0x5d97f3&&(_0x5d97f3[_0xb9a274(0x290)](),this[_0xb9a274(0x1e3)][_0xb9a274(0x485)](_0xc5b7b8));});}async[_0x322ca1(0x40d)](_0x1989e5){const _0x5b3fcd=_0x322ca1,_0x551166=await this[_0x5b3fcd(0x28e)][_0x5b3fcd(0x33c)](_0x1989e5),_0x356db4=this[_0x5b3fcd(0x2bc)][_0x5b3fcd(0x282)](ge,_0x1989e5,_0x551166);return _0x356db4[_0x5b3fcd(0x1e1)](),_0x356db4;}async[_0x322ca1(0x2ff)](_0x22a988){const _0x50b7a6=_0x322ca1,_0x28e728=await this[_0x50b7a6(0x28e)]['requireSession'](_0x22a988),_0x5d0fc2=this[_0x50b7a6(0x2bc)]['createInstance'](ve,_0x22a988,_0x28e728);return _0x5d0fc2[_0x50b7a6(0x1e1)](),_0x5d0fc2;}};F=Tt([ce(0x0,a[_0x322ca1(0x215)]),ce(0x1,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),ce(0x2,a['Inject'](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x45f024,_0xee98cc){const _0x3f5383=_0x322ca1;let {radius:_0xbc3b24,width:_0x484212,height:_0xf710a6}=_0xee98cc;_0xbc3b24=_0xbc3b24!=null?_0xbc3b24:0x0,_0x484212=_0x484212!=null?_0x484212:0x1e,_0xf710a6=_0xf710a6!=null?_0xf710a6:0x1e;let _0x5d644e=0x0,_0x210096=0x0,_0x1ba1f4=0x0;_0x5d644e=_0x210096=_0x1ba1f4=Math[_0x3f5383(0x397)](_0xbc3b24,_0x484212/0x2,_0xf710a6/0x2),_0x45f024[_0x3f5383(0x347)](),_0x45f024[_0x3f5383(0x2f0)](_0x5d644e,0x0),_0x45f024[_0x3f5383(0x2b5)](_0x484212-_0x210096,0x0),_0x45f024['arc'](_0x484212-_0x210096,_0x210096,_0x210096,Math['PI']*0x3/0x2,0x0,!0x1),_0x45f024[_0x3f5383(0x2b5)](_0x484212,_0xf710a6-_0x1ba1f4),_0x45f024[_0x3f5383(0x210)](_0x484212-_0x1ba1f4,_0xf710a6-_0x1ba1f4,_0x1ba1f4,0x0,Math['PI']/0x2,!0x1),_0x45f024['lineTo'](0x0,_0xf710a6),_0x45f024[_0x3f5383(0x2b5)](0x0,_0x5d644e),_0x45f024['arc'](_0x5d644e,_0x5d644e,_0x5d644e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x45f024[_0x3f5383(0x3c0)](),_0xee98cc[_0x3f5383(0x404)]&&(_0x45f024[_0x3f5383(0x3d9)](),_0x45f024[_0x3f5383(0x2a2)]=_0xee98cc[_0x3f5383(0x404)],_0xee98cc['fillRule']===_0x3f5383(0x46a)?_0x45f024['fill'](_0x3f5383(0x46a)):_0x45f024[_0x3f5383(0x404)](),_0x45f024['restore']());}class re extends C[_0x322ca1(0x3dd)]{constructor(_0x4e6a2c,_0x5ae723){const _0x53da7f=_0x322ca1;super(_0x4e6a2c,_0x5ae723),_(this,_0x53da7f(0x204)),_(this,_0x53da7f(0x2f1)),(this[_0x53da7f(0x204)]=_0x5ae723==null?void 0x0:_0x5ae723[_0x53da7f(0x204)],this['text']=_0x5ae723==null?void 0x0:_0x5ae723[_0x53da7f(0x2f1)]);}static[_0x322ca1(0x472)](_0x5a02c9,_0x55a7f1){const _0x185e98=_0x322ca1,{text:_0x50efb1,color:_0x3d6274}=_0x55a7f1;_0x5a02c9[_0x185e98(0x3d9)](),_0x5a02c9['font']=_0x185e98(0x1fd);const _0x5df8bd=_0x5a02c9[_0x185e98(0x2e5)](_0x50efb1)['width'],_0x34d669=Math[_0x185e98(0x397)](_0x5df8bd+0x2*le,Ue);Ot(_0x5a02c9,{'height':X,'radius':0x4,'width':_0x34d669,'fill':_0x3d6274}),_0x5a02c9[_0x185e98(0x2a2)]=_0x185e98(0x3ac);const _0x1b1dc3=le,_0x2d3e94=X-pt,_0x3527bc=Ue-0x2*le;if(_0x5df8bd>_0x3527bc){let _0x572a3c='',_0x10184f=0x0;for(const _0x2a19c2 of _0x50efb1){const _0x5be333=_0x5a02c9[_0x185e98(0x2e5)](_0x2a19c2)[_0x185e98(0x470)];if(_0x10184f+_0x5be333<=_0x3527bc-_0x5a02c9[_0x185e98(0x2e5)](_0x185e98(0x497))['width'])_0x572a3c+=_0x2a19c2,_0x10184f+=_0x5be333;else{_0x572a3c+='...';break;}}_0x5a02c9[_0x185e98(0x474)](_0x572a3c,_0x1b1dc3,_0x2d3e94);}else _0x5a02c9[_0x185e98(0x474)](_0x50efb1,_0x1b1dc3,_0x2d3e94);_0x5a02c9['restore']();}['_draw'](_0x4bfd39){const _0x416b3c=_0x322ca1;re[_0x416b3c(0x472)](_0x4bfd39,this);}}const _e=_0x322ca1(0x489),Rt='collab-text-range-',bt=_0x322ca1(0x43a),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x40ae5f,_0x598a3e,_0xeef4d1,_0x5abc0b){const _0x2b168b=_0x322ca1;_(this,'_shapes',[]),_(this,_0x2b168b(0x31a),null),_(this,_0x2b168b(0x2c2),null),_(this,'_anchorDot',null),_(this,_0x2b168b(0x333),null),_(this,'_eventUnsubscribe',null),(this[_0x2b168b(0x1c6)]=_0x40ae5f,this[_0x2b168b(0x2d1)]=_0x598a3e,this[_0x2b168b(0x2ef)]=_0xeef4d1,this[_0x2b168b(0x1d8)]=_0x5abc0b,this[_0x2b168b(0x488)]());}set[_0x322ca1(0x278)](_0x52f939){const _0x2dfb6c=_0x322ca1;_0x52f939?(this['_anchorDot']&&this[_0x2dfb6c(0x3a9)][_0x2dfb6c(0x240)](),this[_0x2dfb6c(0x2c2)]&&this['_textBubble'][_0x2dfb6c(0x3c3)]()):(this[_0x2dfb6c(0x3a9)]&&this['_anchorDot'][_0x2dfb6c(0x3c3)](),this[_0x2dfb6c(0x2c2)]&&this[_0x2dfb6c(0x2c2)][_0x2dfb6c(0x240)]());}[_0x322ca1(0x290)](){const _0x1241b0=_0x322ca1;for(const _0x198377 of this[_0x1241b0(0x336)])_0x198377['dispose']();this[_0x1241b0(0x2c2)]&&this[_0x1241b0(0x2c2)][_0x1241b0(0x290)](),this[_0x1241b0(0x3a9)]&&this[_0x1241b0(0x3a9)][_0x1241b0(0x290)](),this['_anchor']&&this[_0x1241b0(0x31a)][_0x1241b0(0x290)](),this['_eventUnsubscribe']&&this[_0x1241b0(0x1d3)]();}['_render'](){const _0x547ab5=_0x322ca1;var _0x5166fc;const {_docSkeleton:_0x2d2291,_document:_0xd79dc9}=this,{color:_0x312a8d,name:_0x901d1c,ranges:_0x54665a}=this[_0x547ab5(0x1c6)],_0x1a7d8c=_0xd79dc9['getOffsetConfig'](),{docsLeft:_0x55200a,docsTop:_0x452966}=_0x1a7d8c,_0x4d651b=new T[(_0x547ab5(0x342))](_0x1a7d8c,_0x2d2291);for(const {startOffset:_0xaad909,endOffset:_0x839977,rangeType:_0x2d4075,segmentId:_0x4b2677,segmentPage:_0x1bfa60,collapsed:_0x5bd7fb,isActive:_0x300a86}of _0x54665a){const _0x1e1132=_0x2d2291[_0x547ab5(0x43e)](_0xaad909,!0x0,_0x4b2677,_0x1bfa60);let _0x3543d0=_0x2d2291[_0x547ab5(0x43e)](_0x839977,!0x0,_0x4b2677,_0x1bfa60);if(_0x3543d0==null&&(_0x3543d0=_0x2d2291[_0x547ab5(0x43e)](_0x839977-0x1,!0x1,_0x4b2677,_0x1bfa60)),_0x300a86){const {contentBoxPointGroup:_0x278f93}=_0x4d651b[_0x547ab5(0x443)](_0x3543d0,_0x3543d0);if(_0x278f93[_0x547ab5(0x3f6)]===0x0)continue;this[_0x547ab5(0x365)](_0x312a8d,_0x278f93,_0x55200a,_0x452966,_0x901d1c),this[_0x547ab5(0x1d3)]=this[_0x547ab5(0x364)]();}if(_0x1e1132&&_0x3543d0){if(_0x2d4075===a[_0x547ab5(0x226)][_0x547ab5(0x3b5)]){const _0x5611dd=new T['NodePositionConvertToRectRange'](_0x1a7d8c,_0x2d2291),{pointGroup:_0x35823a}=(_0x5166fc=_0x5611dd['getRangePointData'](_0x1e1132,_0x3543d0))!=null?_0x5166fc:{};if(_0x35823a==null||_0x35823a[_0x547ab5(0x3f6)]===0x0)continue;this['_drawRectRange'](_0x312a8d,_0x35823a,_0x55200a,_0x452966);}else{if(!_0x5bd7fb){const {borderBoxPointGroup:_0x36b9c0}=_0x4d651b[_0x547ab5(0x443)](_0x1e1132,_0x3543d0);if(_0x36b9c0[_0x547ab5(0x3f6)]===0x0)continue;this[_0x547ab5(0x35d)](_0x312a8d,_0x36b9c0,_0x55200a,_0x452966);}}}}}['_drawAnchor'](_0x1d8302,_0x321352,_0x420506,_0x5a269e,_0x38b77f){const _0xd3c883=_0x322ca1,_0x56fa36=this[_0xd3c883(0x3bb)](_0x321352),{left:_0x1b56d5,top:_0x4d1159,height:_0x5cf965}=_0x56fa36,_0x1715da=this[_0xd3c883(0x2ac)](),_0x2d92c5=Nt/_0x1715da,_0x1fb63e=new C[(_0xd3c883(0x32f))](_e+a['generateRandomId'](H),{'left':_0x1b56d5+_0x420506-_0x2d92c5,'top':_0x4d1159+_0x5a269e,'height':_0x5cf965,'width':Dt,'fill':_0x1d8302||C['getColor'](a[_0xd3c883(0x1f2)][_0xd3c883(0x3a6)],0x0),'strokeWidth':_0x2d92c5,'stroke':Ut,'evented':!0x0});this[_0xd3c883(0x31a)]=_0x1fb63e,this['_scene'][_0xd3c883(0x1d6)](_0x1fb63e,T[_0xd3c883(0x357)]);const _0x575279=new C[(_0xd3c883(0x32f))](_e+a['generateRandomId'](H),{'left':_0x1b56d5+_0x420506-_0x2d92c5,'top':_0x4d1159+_0x5a269e-he/0x2,'height':he,'width':he,'fill':_0x1d8302||C[_0xd3c883(0x251)](a[_0xd3c883(0x1f2)][_0xd3c883(0x3a6)],0x0),'strokeWidth':0x0,'stroke':_0x1d8302||C['getColor'](a[_0xd3c883(0x1f2)][_0xd3c883(0x3a6)],0x0),'evented':!0x1});this[_0xd3c883(0x3a9)]=_0x575279,this[_0xd3c883(0x2d1)][_0xd3c883(0x1d6)](_0x575279,T['TEXT_RANGE_LAYER_INDEX']);const _0x2a0bf6=new re(_e+a[_0xd3c883(0x25f)](H),{'left':_0x1b56d5+_0x420506-_0x2d92c5,'top':_0x4d1159+_0x5a269e-X,'text':_0x38b77f,'color':_0x1d8302});this[_0xd3c883(0x2c2)]=_0x2a0bf6,this['_scene']['addObject'](_0x2a0bf6,T[_0xd3c883(0x357)]),this[_0xd3c883(0x278)]=!0x1;}[_0x322ca1(0x364)](){const _0x5e7c02=_0x322ca1,_0xf56f1d=this['_anchor']['onPointerEnter$'][_0x5e7c02(0x402)](()=>{const _0x10ce9f=_0x5e7c02;this[_0x10ce9f(0x278)]=!0x0;}),_0x4ae7c1=this[_0x5e7c02(0x31a)]['onPointerLeave$'][_0x5e7c02(0x402)](()=>{const _0x55c5e1=_0x5e7c02;this[_0x55c5e1(0x333)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x47c81c=_0x55c5e1;this[_0x47c81c(0x278)]=!0x1;},0x7d0);});return()=>{const _0x269a3d=_0x5e7c02;_0xf56f1d[_0x269a3d(0x3ce)](),_0x4ae7c1[_0x269a3d(0x3ce)]();};}[_0x322ca1(0x35d)](_0x25822d,_0x55fdba,_0x186965,_0x40076a){const _0x4f4c87=_0x322ca1,_0xa757a=new a[(_0x4f4c87(0x293))](_0x25822d)[_0x4f4c87(0x45c)](0.2)[_0x4f4c87(0x3be)](),_0x42b047=new C[(_0x4f4c87(0x23a))](Rt+a[_0x4f4c87(0x25f)](H),{'pointsGroup':_0x55fdba,'fill':_0xa757a||C['getColor'](a[_0x4f4c87(0x1f2)]['black'],0.2),'left':_0x186965,'top':_0x40076a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f4c87(0x336)][_0x4f4c87(0x47b)](_0x42b047),this[_0x4f4c87(0x2d1)][_0x4f4c87(0x1d6)](_0x42b047,T['TEXT_RANGE_LAYER_INDEX']);}[_0x322ca1(0x2fb)](_0x48b657,_0x11174a,_0x515631,_0x416352){const _0x510888=_0x322ca1,_0x35a86d=new a['ColorKit'](_0x48b657)[_0x510888(0x45c)](0.2)[_0x510888(0x3be)](),_0x1ac8a8=new C[(_0x510888(0x23a))](bt+a[_0x510888(0x25f)](H),{'pointsGroup':_0x11174a,'fill':_0x35a86d||C[_0x510888(0x251)](a[_0x510888(0x1f2)][_0x510888(0x3a6)],0.2),'left':_0x515631,'top':_0x416352,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x510888(0x336)][_0x510888(0x47b)](_0x1ac8a8),this[_0x510888(0x2d1)]['addObject'](_0x1ac8a8,T['TEXT_RANGE_LAYER_INDEX']);}[_0x322ca1(0x3bb)](_0x1ac3b7){const _0x197596=_0x1ac3b7[0x0],_0x192e53=_0x197596[0x0],_0x570319=_0x197596[0x2],{x:_0x5dacab,y:_0x262bb9}=_0x192e53,{x:_0x101764,y:_0x54888d}=_0x570319;return{'left':_0x5dacab,'top':_0x262bb9,'width':_0x101764-_0x5dacab,'height':_0x54888d-_0x262bb9};}[_0x322ca1(0x2ac)](){const _0x9fdbc5=_0x322ca1,{scaleX:_0x1d7aed,scaleY:_0x50b9c9}=this[_0x9fdbc5(0x2d1)][_0x9fdbc5(0x315)]();return Math[_0x9fdbc5(0x38e)](_0x1d7aed,_0x50b9c9);}}var Lt=Object[_0x322ca1(0x258)],Mt=(_0x23a7c4,_0xc2c6f,_0x41e31a,_0x1b2e13)=>{const _0x9c1356=_0x322ca1;for(var _0x14cc7c=_0x1b2e13>0x1?void 0x0:_0x1b2e13?Lt(_0xc2c6f,_0x41e31a):_0xc2c6f,_0x49dd46=_0x23a7c4[_0x9c1356(0x3f6)]-0x1,_0x50ebc5;_0x49dd46>=0x0;_0x49dd46--)(_0x50ebc5=_0x23a7c4[_0x49dd46])&&(_0x14cc7c=_0x50ebc5(_0x14cc7c)||_0x14cc7c);return _0x14cc7c;},q=(_0xeafe2b,_0x34bfb8)=>(_0x1240eb,_0x227b43)=>_0x34bfb8(_0x1240eb,_0x227b43,_0xeafe2b);let Ee=class extends a[_0x322ca1(0x481)]{constructor(_0x39fb1b,_0x44318c,_0x1defb2,_0x3796de,_0xd2e1b1){const _0x2b26a6=_0x322ca1;super(),_(this,_0x2b26a6(0x414),[]),_(this,_0x2b26a6(0x2af),[]),(this[_0x2b26a6(0x20f)]=_0x39fb1b,this[_0x2b26a6(0x3f9)]=_0x44318c,this[_0x2b26a6(0x3e8)]=_0x1defb2,this[_0x2b26a6(0x38a)]=_0x3796de,this['_themeService']=_0xd2e1b1,this['_init']());}[_0x322ca1(0x1c5)](){const _0x1bfdfc=_0x322ca1,_0x2099e1=this[_0x1bfdfc(0x20f)]['unitId'],_0x264792=this[_0x1bfdfc(0x3f9)];this[_0x1bfdfc(0x2f4)](I['combineLatest']([this[_0x1bfdfc(0x3e8)][_0x1bfdfc(0x1ee)](_0x2099e1),this['_themeService'][_0x1bfdfc(0x2e4)]])[_0x1bfdfc(0x22a)]($[_0x1bfdfc(0x445)](([_0x248cb9,_0x8bfed])=>({'skeleton':_0x264792[_0x1bfdfc(0x3e7)](),'cursors':[..._0x248cb9[_0x1bfdfc(0x369)]()]['flatMap'](_0x3f2cd9=>({..._0x3f2cd9,'color':this[_0x1bfdfc(0x2f2)][_0x1bfdfc(0x280)](_0x3f2cd9[_0x1bfdfc(0x204)])}))})))[_0x1bfdfc(0x375)](_0x2fbcbc=>{const _0x293eb4=_0x1bfdfc;if(this[_0x293eb4(0x24f)](),_0x2fbcbc){const {skeleton:_0x50b61b,cursors:_0x15d57d}=_0x2fbcbc;this[_0x293eb4(0x2ee)](_0x50b61b,_0x15d57d);}})),this[_0x1bfdfc(0x302)](),this[_0x1bfdfc(0x1e0)]();}[_0x322ca1(0x2ee)](_0x1527c1,_0x553fee){const _0x46581b=_0x322ca1,{scene:_0x482cfa,mainComponent:_0x31d13e}=this[_0x46581b(0x20f)],_0x472f50=_0x553fee[_0x46581b(0x445)](_0x44d8ec=>new Le(_0x44d8ec,_0x482cfa,_0x1527c1,_0x31d13e));this[_0x46581b(0x414)]=_0x472f50,this['_cursors']=_0x553fee;}[_0x322ca1(0x3e3)](){const _0x913260=_0x322ca1;this[_0x913260(0x24f)]();const {scene:_0x1761a8,mainComponent:_0x39dce5}=this[_0x913260(0x20f)],_0x2e50b1=this[_0x913260(0x3f9)]['getSkeleton'](),_0x5cf2f0=this[_0x913260(0x2af)][_0x913260(0x445)](_0xed1569=>new Le(_0xed1569,_0x1761a8,_0x2e50b1,_0x39dce5));this[_0x913260(0x414)]=_0x5cf2f0;}[_0x322ca1(0x24f)](){const _0x358403=_0x322ca1;this[_0x358403(0x414)]['forEach'](_0x174159=>_0x174159['dispose']()),this['_cursorShapes']=[];}[_0x322ca1(0x1e0)](){const _0x1c340e=_0x322ca1,_0x3f502d=[T['SetDocZoomRatioOperation']['id']];this[_0x1c340e(0x2f4)](this['_commandService'][_0x1c340e(0x3c6)](_0x3b20a2=>{const _0x21e5ff=_0x1c340e;_0x3f502d[_0x21e5ff(0x352)](_0x3b20a2['id'])&&_0x3b20a2[_0x21e5ff(0x380)][_0x21e5ff(0x318)]===this['_context'][_0x21e5ff(0x318)]&&this[_0x21e5ff(0x3e3)]();}));}[_0x322ca1(0x302)](){const _0x5d86af=_0x322ca1;this[_0x5d86af(0x2f4)](a[_0x5d86af(0x32d)](this['_context'][_0x5d86af(0x279)][_0x5d86af(0x3ee)])['pipe']($[_0x5d86af(0x1c9)](_0x1dffb4=>_0x1dffb4[_0x5d86af(0x384)]===C[_0x5d86af(0x1f6)][_0x5d86af(0x409)]),$[_0x5d86af(0x422)](0x10))[_0x5d86af(0x375)](()=>{const _0x13c425=_0x5d86af;this[_0x13c425(0x3e3)]();}));}};Ee=Mt([q(0x1,a[_0x322ca1(0x254)](V[_0x322ca1(0x37d)])),q(0x2,a[_0x322ca1(0x254)](F)),q(0x3,a[_0x322ca1(0x3b9)]),q(0x4,a[_0x322ca1(0x254)](a[_0x322ca1(0x1f0)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x322ca1(0x3dd)]{constructor(_0x4cc32c,_0x5de4c6){const _0x7e19e2=_0x322ca1;super(_0x4cc32c,_0x5de4c6),_(this,'_color'),_(this,_0x7e19e2(0x405),!0x1),_(this,_0x7e19e2(0x341)),_(this,_0x7e19e2(0x44b),''),_(this,'_labelPosition',_0x7e19e2(0x2e1)),_(this,_0x7e19e2(0x454)),(_0x5de4c6&&this[_0x7e19e2(0x1e9)](_0x5de4c6),this[_0x7e19e2(0x399)][_0x7e19e2(0x402)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x7e19e2(0x1e9)]({'hovered':!0x1})));}[_0x322ca1(0x1e9)](_0x448e22){const _0x1b78d7=_0x322ca1;var _0x34a226,_0x39f88a,_0x365fdc,_0x320fc5,_0x44f0f5,_0x2245fa;this[_0x1b78d7(0x483)]=(_0x34a226=_0x448e22[_0x1b78d7(0x204)])!=null?_0x34a226:this[_0x1b78d7(0x483)],this[_0x1b78d7(0x405)]=(_0x39f88a=_0x448e22['hovered'])!=null?_0x39f88a:this[_0x1b78d7(0x405)],this['_range']=(_0x365fdc=_0x448e22[_0x1b78d7(0x263)])!=null?_0x365fdc:this[_0x1b78d7(0x341)],this['_name']=(_0x320fc5=_0x448e22['name'])!=null?_0x320fc5:this[_0x1b78d7(0x44b)],this['_labelPosition']=(_0x44f0f5=_0x448e22[_0x1b78d7(0x3eb)])!=null?_0x44f0f5:this['_labelPosition'],this['_backgroundColor']=(_0x2245fa=_0x448e22[_0x1b78d7(0x3d0)])!=null?_0x2245fa:this[_0x1b78d7(0x454)],this['transformByState']({'width':_0x448e22[_0x1b78d7(0x470)],'height':_0x448e22[_0x1b78d7(0x249)]});}[_0x322ca1(0x3c1)](_0x24a5c6){const _0x37777e=_0x322ca1,{row:_0x1a8465,column:_0x26bdc9}=_0x24a5c6;if(_0x1a8465>=this['_range'][_0x37777e(0x370)]&&_0x1a8465<=this[_0x37777e(0x341)][_0x37777e(0x3aa)]&&_0x26bdc9>=this[_0x37777e(0x341)][_0x37777e(0x237)]&&_0x26bdc9<=this['_range'][_0x37777e(0x37c)]){this[_0x37777e(0x1e9)]({'hovered':!0x0});return;}this[_0x37777e(0x1e9)]({'hovered':!0x1});}[_0x322ca1(0x358)](_0x13551f){return!0x1;}[_0x322ca1(0x33d)](_0x39a41b){const _0x59c04a=_0x322ca1;C[_0x59c04a(0x32f)]['drawWith'](_0x39a41b,{'width':this[_0x59c04a(0x470)],'height':this['height'],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x39a41b[_0x59c04a(0x3d9)](),_0x39a41b['transform'](0x1,0x0,0x0,0x1,this[_0x59c04a(0x470)],this[_0x59c04a(0x360)]==='bottom'?0x0:-X),re[_0x59c04a(0x472)](_0x39a41b,{'text':this[_0x59c04a(0x44b)],'color':this[_0x59c04a(0x483)]}),_0x39a41b[_0x59c04a(0x467)]());}}var wt=Object[_0x322ca1(0x258)],yt=(_0x3ad49c,_0x5f45a8,_0x146c37,_0x88aaf8)=>{const _0x57df0e=_0x322ca1;for(var _0x97aae6=_0x88aaf8>0x1?void 0x0:_0x88aaf8?wt(_0x5f45a8,_0x146c37):_0x5f45a8,_0x29a1f7=_0x3ad49c[_0x57df0e(0x3f6)]-0x1,_0x26c0fa;_0x29a1f7>=0x0;_0x29a1f7--)(_0x26c0fa=_0x3ad49c[_0x29a1f7])&&(_0x97aae6=_0x26c0fa(_0x97aae6)||_0x97aae6);return _0x97aae6;},ue=(_0x2998c,_0x2f09ba)=>(_0x428a6e,_0x20de08)=>_0x2f09ba(_0x428a6e,_0x20de08,_0x2998c);function _0x2ccd(){const _0x394a10=['save','LOCAL_CACHE_INTERVAL','_initEntityListener','idSuffix','Shape','JOIN_ROOM_FAILED','sheetID','_unitOnClients','debug','CollaborationController','_refreshCollabCursors','_docSyncEditingCollabCursorService','SetSelectionsOperation','saveOfflineData','getSkeleton','_collabCursorController','popstate','72Rhjxdj','labelPosition','_cachedData','CollaborationStatus','onTransformChange$','from','setParam','_httpService','pluginName','formula.calculation.unable','name','DocCollaborationEntity','length','ILocalCacheService','isEditing','_docSkeletonManagerService','REDEMPTION_CODE_FULLY_REDEEMED','defIds','handleInsertRangeMoveDown','on-line-icon_clip0_910_349','Optional','IDocClipboardService','1109fjpwZt','INVALID_INVITE_CODE','subscribeEvent','isFormulaString','fill','_hovered','m1Prime','shareReplay','_sheetSkeletonManagerService','resize','url(#on-line-icon_clip0_910_349)','defineProperty','parseInt','_startSheetCollabCursor','_pollingInterval','_disabled','YUUMI_SUBSCRIPTION_NOT_FOUND','TOO_MANY_REQUESTS','fromEvent','ENTITLE_DUP_SUBSCRIPTION','_cursorShapes','setStateCache','INVITE_CODE_REQUIRED','CommandType','getSheetBySheetId','transformMutationsWithChangeset','eventID','_createSocketURL','YUUMI_NO_CUBOID_FOR_QUESTION','univer-flex\x20univer-items-center','clearTimeout','[Window\x20Error]:\x20','COMPLETION_FINISHED','/universer-api/frontend/logs','throttleTime','REDEMPTION_INVALID_CODE','transformRemoteChangeset','toString','registerRenderModule','_collaborationUIEventService','ENTITLE_REPORT_LIMIT_EXCEED','getUnitId','registerRefRange','PAYMENT_CHANNEL_NOT_SUPPORT','forwardRef','FromArray','send','YUUMI_ALL_TABLES_IS_INVALID','error','MOBILE_HAS_BEEN_BOUND','_removeClearOtherTimer','stageInfo','_toggleOnline','all','split','DeleteRangeMoveLeftCommandId','assign','_transformPreviousActiveRange','collab-rect-range-','_saveCache','LICENSE_IMPORT_SIZE_EXCEEDED','_initDependencies','findNodePositionByCharIndex','HTTPService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_setupBeforeClosingHandler','get','getRangePointData','_getMergeRange','map','combineLatest','_memberService','urlChange$','history','isTransformMutationsWithChangesetSuccess','_name','unshift','current','_docClipboardService','xlink:href','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Tools','asObservable','0\x200\x2016\x2016','_backgroundColor','find','_handleEvent','REDEMPTION_CODE_HAS_BEEN_CREATED','m2Prime','contains','bottom','_status$','setAlpha','invokeId','deepClone','YUUMI_CONNECTOR_URL_NOT_FOUND','3266373amqJjg','DATA_SOURCE_TOO_LARGE','APPLY_REVISION_CONFILICT','code','getMergeData','START_CALCULATION','_maxFormulaLimit','restore','unload','LICENSE_DISTRO_REJECTED','evenodd','_lastResponseTimestamp','body','UNDEFINED','children','round','width','displayName','drawWith','RevisionService','fillText','YUUMI_RATE_OVER_LIMIT','registerBeforeClose','DisposableCollection','InsertColCommandId','_configService','ERROR_AGAIN','push','_doCreateSocket','getConfig','registerComponent','maxFormulaLimit','SNAPSHOT_INVALID_SNAPSHOT','RxDisposable','getMember','_color','reason','delete','_updateURLWithCurrentState','_docTransformStateCacheService','_render','collab-text-anchor-','editingUnit','getCurrentUnitForType','LOGIN_TOKEN_PROCESSING_FAILED','3050295bnDbPV','forEach','handleDeleteRangeMoveUp','saveImage','_handleHeartbeatEvent','_checkCalculationAvailable','getTypeOfUnitAdded$','_collaborationController','some','_getFormulaLimitStatus','...','setUndoRedoMutationParamsCache','_init','_cursor','_clearOtherTimers','Tooltip','filter','[CollaborationDataLoaderController]','exhaustSavingTask','imageSourceType','OFFLINE','IMessageService','mask','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_docTransformSelectionsService','Unknown\x20user','_eventUnsubscribe','10955070oxRzda','_collabCursorState$','addObject','executionId','_document','_config','Loading','toDisposable','unit','_transformHistoryAndStateStack','APPLY_NON_SEQUENTIAL_REVISION','ILogService','_initCommandExecutedListener','init','NOT_COLLAB','_entities','roomMembers','onLocalMutation','SetWorksheetActivateCommand','handleDeleteRangeMoveLeft','getUnhiddenWorksheets','setShapeProps','HEADER_MENU','url(#off-line-icon_clip0_910_343)','status$','getLocalCacheKey','getCollabCursors$','_transformUndoRedoStack','ThemeService','selections','COLORS','LICENSE_MAX_UNITS_EXCEEDED','WECHAT_HAS_BEEN_BOUND','UNRECOGNIZED','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getCellMatrix','YUUMI_URL_COL_OUT_OF_RANGE','getUniverSheetInstance','_id','newValue','_online','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Subject','svg','_docStateChangeManagerService','?taskId=','useCallback','INVITE_CODE_ALREADY_BOUND','color','7803yDJjEq','DocSelectionManagerService','_ensureSubject','setInterval','_registerDependencies','replaceState','makeDirty','ILocalStorageService','_registerRenderDependencies','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_context','arc','actions','REDEMPTION_USER_NOT_ELIGIBLE','deserializeRangeWithSheet','_localeService','IUniverInstanceService','cursorInfo$','currentSkeleton$','Warning','MoveRangeCommandId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LOGIN_FAILED','mapTo','NO_OTHER_CLIENTS_EDITING','_heartbeatTimer','substring','getCellPositionByOffset','enableFrontendLog','WebSocketService','activeSheet$','USER_IS_ANONYMOUS','tag','DOC_RANGE_TYPE','origin','BrowserCollaborationSocketService','YUUMI_ASYNCIO_CANCELLED','pipe','OffLineIcon','REDEMPTION_CODE_INACTIVE','complete','sessionTicket','_docTransformIMECacheService','session.will-retry','row','clsx','socket$','_univerInstanceService','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','catch','startColumn','CollaborationSessionService','4trbISL','RegularPolygon','http://www.w3.org/2000/svg','SNAPSHOT_HAS_BEEN_REMOVED','getUnitStatus$','PY_RUNTIME_SCRIPT_ERROR','_hasFormulaInDirtyRanges','hide','IURLService','permission.content','_messageService','isArray','Injector','useObservable','DocStateChangeManagerService','div','height','collabStatus.fetchMiss','docStateChange$','whenReady','SessionStatus','UNIVER_DOC','_removeCollabCursors','clipPath','getColor','jsx','getCollabEntity$','Inject','unhandledrejection','IBeforeCloseService','MUTATION','getOwnPropertyDescriptor','has','_uiPartsService','EMAIL_VERIFY_CODE_MISMATCH','_getSheetObject','override','1em','generateRandomId','addEventListener','_updateSubUnitFromURLParams','mutations','range','beforeCommandExecuted','InsertRangeMoveRightCommandId','off-line-icon','RefRangeService','addObjects','add','on-line-icon','off-line-icon_clip0_910_343','subUnitId','_updateLocalCursor','_clearPolling','yellow.400','FETCH_MISS','LOCAL_CACHE_INTERVAL_KEY','RichTextEditingMutation','_setFormulaLimitStatus','getParam','post','_initUnhandledRejectionListener','REDEMPTION_CODE_NOT_STARTED','_hover','engine','getViewport','stringify','replaceDocRanges','Module','getCurrent','getSheetId','getColorFromTheme','EffectRefRangId','createInstance','CONFLICT','transformStateCache','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_send','runRefRangeMutations','_currentUsage','attrs','CanceledError','_onCursorUpdate','handleIRemoveCol','_onRefRangeChange','_collabSessionService','USERS_LEAVE','dispose','currentUsage','CollaborationUIEventId','ColorKit','UPDATE_CURSOR','setItem','_localCacheService','_uploadLog','collaboration.offline-data-not-saved','_initUserListener','limitInfo','_handleLeaveEvent','/run/','APPLY_REJECT','APPLY_DUPLICATED','_collaborationSessionService','CollaborationEvent','PERMISSION_DENIED','fillStyle','_selfUnitIDs','IConfigService','searchParams','href','M0\x200H16V16H0z','Plugin','debounce','loadOfflineData','FormulaExecuteStageType','_getScale','now','collaboration.closeRoom','_cursors','_taskIds','LICENSE_EXPORT_SIZE_EXCEEDED','_initEvent','next','assignAColorForMemberID','lineTo','formula.calculation.waiting','WebURLService','size','4454133eusHWW','AWAITING_WITH_PENDING','redoState','_injector','cursorInfo','none','getFormulaLimitStatusUrl','storage','OTHER_CLIENTS_EDITING','_textBubble','_notificationService','MessageType','permission.title','addClipboardHook','Disposable','Failed','SOCKET_FAILED','undoState','UNAUTHENTICATED','IImageIoService','APPLY_PERMISSION_DENIED','executeCommand','[Unhandled\x20Rejection]:\x20','totalFormulasToCalculate','_scene','IRenderManagerService','location','random','ENTITLE_COUPON_EXPIRED','mergeOverrideWithDependencies','_instanceService','[LogService\x20Error]:\x20','sessionStatus$','setConfig','UniverCollaborationClientUIPlugin','_toggleOffline','dispose$','getCurrentRevOfUnit','ISocketService','functionsExecutedState','top','column','saveTaskMap','currentTheme$','measureText','_initStatusComponent','getValue','NOT_FOUND','ENTITLE_INSUFFICIENT_QUOTA','getActiveSheet','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_dataLoaderService','runOnServer','_updateCollabCursors','_docSkeleton','moveTo','text','_themeService','ONLINE','disposeWithMe','_scheduleHeartbeat','_urlService','CollaborationDataLoaderController','AWAITING','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','UniverInstanceType','_drawRectRange','purple.300','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','USER_NOT_FOUND','_startDocCollabCursor','936gPBbaB','with','_initResize','_imageIoService','SetTextSelectionsOperation','application/json','path','_roomMembers$','getDocRanges','takeUntil','removeEventListener','setTimeout','ENSURE_SNAPSHOT_EXECUTION','result','createElement','EMAIL_HAS_BEEN_BOUND','_scheduleSaving','AUTHORIZE_CODE_ILLEGAL','CollaborationSocketService','_releaseCalculationLimit','subunit','getAncestorScale','createSocket','getVpScrollXYInfoByPosToVp','unitId','_logService','_anchor','_refRangeService','runId','isActive','string','_handleJoinEvent','Error','useDependency','848883ZLSqbt','INVALID_ARGUMENT','_unitStatus','_transformService','ENTITLE_CHAT_LIMIT_EXCEED','focused$','SUCCESS','Workbook','switchMap','getStateCache','jsxs','fromEventSubject','transformIMECache','Rect','use','_getSessionTicket','getActiveRange','_hideTimer','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','_entityInit$','_shapes','_initWindowErrorListener','session.connection-failed','INotificationService','createIdentifier','/universer-api/license/formula/limit/status','requireSession','_draw','_localStorageService','onStarting','VIEW_MAIN','_range','NodePositionConvertToCursor','_setupSubUnitSync','then','colorChannel1','MemberService','beginPath','INVITE_CODE_HAS_BEEN_UES','data','handleInsertRangeMoveRight','RemoteUniscriptService','TEXT','\x20at\x20','_assignedColors','[RemoteUniscriptService]:\x20no\x20focused\x20unit','event$','_saveTaskMap','includes','entries','_onCursorDelete','message','OnLineIcon','TEXT_RANGE_LAYER_INDEX','triggerDblclick','stage','useRef','ALREADY_EXISTS','key','_drawTextRange','_applyCommand','60gDYZgN','_labelPosition','isTransformMutationFailure','lineno','CHANGESET_REVISION_CONFILICT','_handleHover','_drawAnchor','join','_getSaveTimeout','currentColor','values','collabCursorState$','memberID','848BzTZNF','USER_NOT_INVITED_CODE','_lastPointer','REDEMPTION_USER_REDEEM_TIMES_EXCEED','startRow','getRelativeToViewportCoord','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getMemberID','search','subscribe','_beforeCloseService','DataLoaderService','textRanges','getItem','selection','setActiveRange','endColumn','DocSkeletonManagerService','onPointerMove$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','params','collabStatus.conflict','UNIVER_SHEET','unitID','type','set','RemoveColCommandId','DesktopCollaborationStatusDisplayController','transformMutation','isFormulaId','_commandService','ENTITLE_COUPON_USED_UP','handleInsertRow','DocIMEInputManagerService','max','_cursorInfo$','pushState','_checkAndWaitForCalculationPermission','blue.400','INTERNAL_ERROR','0\x200\x2017\x2016','_session','debounceTime','min','replace','onPointerEnter$','_revisionService','enableLocalCache','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ISnapshotServerService','sheetId','_renderManagerService','defs','white','_colorAssignService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getRenderById','startsWith','black','merge','UnitStatus','_anchorDot','endRow','jiqing.500','#FFF','YUUMI_AI_RUN_FAILED','syncEditingCollabCursor','bind','CURRENT_STATUS_CANNOT_OPERATE','SYNCED','PENDING','disposeUnit','BehaviorSubject','RECT','handleMoveRange','ITransformService','ENTITLE_NEED_BILLING_ADDRESS','ICommandService','doc.mutation.rich-text-editing','_getAnchorBounding','loadUnit','symbol','toRgbString','getFocusedUnit','closePath','onMouseMove','collabStatus.synced','show','getCurrentSelections','roomMembers$','onCommandExecuted','DEFAULT_WS_SESSION_TICKET_URL','touchDependencies','_initStatusListener','connectInjector','_colorIndex','SetFormulaCalculationStartMutation','_scheduleClearOtherTimer','unsubscribe','LocaleService','backgroundColor','_showGuardMessage','Vector2','ranges','ACTIVE_UNIT_EVENT_CHANNEL','transformSelections','url(#$1','_memberID','RemoveRowCommandId'];_0x2ccd=function(){return _0x394a10;};return _0x2ccd();}const $t=0x1389;let Ce=class extends a[_0x322ca1(0x481)]{constructor(_0x44b763,_0x30820f,_0x47f95d,_0x1d6625){const _0x584a49=_0x322ca1;super(),_(this,'_cursors',new Set()),_(this,_0x584a49(0x36e),null),(this[_0x584a49(0x20f)]=_0x44b763,this['_sheetSkeletonManagerService']=_0x30820f,this['_collabCursorController']=_0x47f95d,this[_0x584a49(0x2f2)]=_0x1d6625,this[_0x584a49(0x1c5)]());}['_init'](){const _0x12a459=_0x322ca1;this[_0x12a459(0x408)][_0x12a459(0x217)][_0x12a459(0x22a)]($[_0x12a459(0x309)](this[_0x12a459(0x2dd)]),$[_0x12a459(0x32a)](_0x18e399=>{const _0x3b65a9=_0x12a459;if(_0x18e399){const _0x4de8b3=_0x18e399[_0x3b65a9(0x39e)];return I[_0x3b65a9(0x446)](this[_0x3b65a9(0x3e8)][_0x3b65a9(0x1ee)](this[_0x3b65a9(0x20f)][_0x3b65a9(0x318)]),this['_themeService'][_0x3b65a9(0x2e4)])[_0x3b65a9(0x22a)]($[_0x3b65a9(0x445)](([_0x48c2e7,_0x2546b5])=>{const _0x2412bc=new Map();return _0x48c2e7['forEach']((_0x1dc77c,_0x77df63)=>{const _0x5ce29a=_0xd0d7;if(_0x1dc77c[_0x5ce29a(0x3df)]===_0x4de8b3){const _0x56aa0c={..._0x1dc77c};_0x56aa0c[_0x5ce29a(0x204)]=this['_themeService'][_0x5ce29a(0x280)](_0x1dc77c[_0x5ce29a(0x204)]),_0x2412bc[_0x5ce29a(0x385)](_0x77df63,_0x56aa0c);}}),{'skeleton':_0x18e399,'cursors':_0x2412bc};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x12a459(0x375)](({skeleton:_0x4000ae,cursors:_0x28fa43})=>{const _0x42a7af=_0x12a459;this['_removeCollabCursors'](),_0x4000ae&&this[_0x42a7af(0x2ee)](_0x4000ae,_0x28fa43);}),this[_0x12a459(0x408)]['currentSkeleton$'][_0x12a459(0x375)](_0x890441=>{const _0x4b9792=_0x12a459;if(_0x890441==null)return;const {skeleton:_0x507eb4}=_0x890441,{scene:_0x48c65b}=this[_0x4b9792(0x20f)];_0x48c65b[_0x4b9792(0x37e)][_0x4b9792(0x402)](a[_0x4b9792(0x2a9)](_0xa8f5c0=>{const _0x3bfc74=_0x4b9792;var _0x30064,_0x58912a;const {offsetX:_0xc6a2d6,offsetY:_0x37e390}=_0xa8f5c0,{x:_0xb09264,y:_0x3c3d69}=_0x48c65b[_0x3bfc74(0x371)](C[_0x3bfc74(0x3d2)][_0x3bfc74(0x42d)]([_0xc6a2d6,_0x37e390])),{scaleX:_0x2da13f,scaleY:_0x2e00f7}=_0x48c65b[_0x3bfc74(0x315)](),_0x3380f4=_0x48c65b[_0x3bfc74(0x27a)](C['SHEET_VIEWPORT_KEY'][_0x3bfc74(0x340)]),_0x24e79e=_0x48c65b[_0x3bfc74(0x317)](C[_0x3bfc74(0x3d2)]['FromArray']([_0xb09264,_0x3c3d69]),_0x3380f4),_0x131e4b=_0x507eb4[_0x3bfc74(0x220)](_0xc6a2d6,_0x37e390,_0x2da13f,_0x2e00f7,_0x24e79e);((_0x30064=this[_0x3bfc74(0x36e)])==null?void 0x0:_0x30064[_0x3bfc74(0x2e2)])===_0x131e4b['column']&&((_0x58912a=this[_0x3bfc74(0x36e)])==null?void 0x0:_0x58912a[_0x3bfc74(0x231)])===_0x131e4b[_0x3bfc74(0x231)]||this[_0x3bfc74(0x2af)][_0x3bfc74(0x48e)](_0x5ee8df=>{const _0x1e7fd6=_0x3bfc74;_0x5ee8df[_0x1e7fd6(0x3c1)](_0x131e4b);});},0x64));});}['_updateCollabCursors'](_0x55c020,_0x207bdd){const _0xc02142=_0x322ca1;var _0x4c13a8;const _0x3a6f7d=(_0x4c13a8=this[_0xc02142(0x408)][_0xc02142(0x27e)]())==null?void 0x0:_0x4c13a8['skeleton'];if(!_0x3a6f7d)return;const _0x35da93=this['_getSheetObject']();if(!_0x35da93)return;this['_cursors'][_0xc02142(0x48e)](_0x27fcd2=>{const _0x5a8eff=_0xc02142;_0x27fcd2[_0x5a8eff(0x20b)]();});const {scene:_0x3a24b0}=_0x35da93,_0x68be14=xt(Array[_0xc02142(0x3ef)](_0x207bdd[_0xc02142(0x369)]()))[_0xc02142(0x445)](_0x32ecd7=>{const _0x326aa5=_0xc02142,{color:_0x42f819,range:_0x15a185,name:_0x161029,selection:_0x39837b,sheetID:_0x197ad4}=_0x32ecd7,{startColumn:_0x470088,startRow:_0xa17658,endColumn:_0x29ae5d,endRow:_0x48c418}=_0x15a185,_0x1e27eb=J['getCoordByCell'](_0xa17658,_0x470088,_0x3a24b0,_0x3a6f7d),_0x442c81=J['getCoordByCell'](_0x48c418,_0x29ae5d,_0x3a24b0,_0x3a6f7d),{columnHeaderHeightAndMarginTop:_0x57a4a9}=_0x3a6f7d,{startX:_0x479852,startY:_0x229d2d}=_0x1e27eb,{endX:_0x43963d,endY:_0x3422cb}=_0x442c81,_0x382d69=_0x43963d-_0x479852,_0x2d11f7=_0x3422cb-_0x229d2d,_0x34cfae={'labelPosition':_0x229d2d-_0x57a4a9>=X?_0x326aa5(0x2e1):_0x326aa5(0x45a),'sheetID':_0x197ad4,'range':_0x15a185,'color':_0x42f819,'name':_0x161029,'selection':_0x39837b,'left':_0x479852,'top':_0x229d2d,'width':_0x382d69,'height':_0x2d11f7,'evented':!0x1,'zIndex':$t};return new je(_0x161029,_0x34cfae);});_0x3a24b0[_0xc02142(0x268)](_0x68be14,At),this['_cursors']=new Set(_0x68be14);}[_0x322ca1(0x24f)](){const _0x474f11=_0x322ca1;var _0x35954c;(_0x35954c=this[_0x474f11(0x2af)])==null||_0x35954c['forEach'](_0x364f8d=>_0x364f8d[_0x474f11(0x290)]());}[_0x322ca1(0x25c)](){const _0x3b90d9=_0x322ca1;return J['getSheetObject'](this['_context'][_0x3b90d9(0x1dc)],this[_0x3b90d9(0x20f)]);}};Ce=yt([ue(0x1,a[_0x322ca1(0x254)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x322ca1(0x254)](F)),ue(0x3,a['Inject'](a['ThemeService']))],Ce);function xt(_0x16f0d4){const _0x419616=_0x322ca1,_0x5a4057=new Map();return _0x16f0d4[_0x419616(0x48e)](_0x2f8111=>{const _0x3189a2=_0x419616;if(_0x5a4057[_0x3189a2(0x259)](_0x2f8111[_0x3189a2(0x37a)])){const _0xa0cdbf=_0x5a4057['get'](_0x2f8111[_0x3189a2(0x37a)]);_0xa0cdbf[_0x3189a2(0x3f4)]+=',\x20'+_0x2f8111[_0x3189a2(0x3f4)];}else _0x5a4057['set'](_0x2f8111['selection'],_0x2f8111);}),Array[_0x419616(0x3ef)](_0x5a4057[_0x419616(0x369)]());}var Bt=Object[_0x322ca1(0x258)],Ft=(_0x46f431,_0x51e693,_0x58b068,_0x2d2bfa)=>{const _0xcecc6b=_0x322ca1;for(var _0x97b183=_0x2d2bfa>0x1?void 0x0:_0x2d2bfa?Bt(_0x51e693,_0x58b068):_0x51e693,_0x8db54e=_0x46f431[_0xcecc6b(0x3f6)]-0x1,_0x1e8456;_0x8db54e>=0x0;_0x8db54e--)(_0x1e8456=_0x46f431[_0x8db54e])&&(_0x97b183=_0x1e8456(_0x97b183)||_0x97b183);return _0x97b183;},y=(_0x17b3de,_0x284cf3)=>(_0x30ead5,_0x59b9cb)=>_0x284cf3(_0x30ead5,_0x59b9cb,_0x17b3de);let Z=class extends a['Disposable']{constructor(_0x4c518e,_0xb5fbd2,_0x3fe1ef,_0x1e8700,_0x1899cb,_0x3687e3){const _0x363463=_0x322ca1;super(),this[_0x363463(0x376)]=_0x4c518e,this[_0x363463(0x296)]=_0xb5fbd2,this[_0x363463(0x427)]=_0x3fe1ef,this['_messageService']=_0x1e8700,this[_0x363463(0x2c3)]=_0x1899cb,this['_localeService']=_0x3687e3,this[_0x363463(0x441)](),this[_0x363463(0x2b2)]();}['_setupBeforeClosingHandler'](){const _0x3da365=_0x322ca1;this[_0x3da365(0x2f4)](this[_0x3da365(0x376)][_0x3da365(0x476)](()=>{const _0x1aa50b=_0x3da365;if(this[_0x1aa50b(0x296)][_0x1aa50b(0x2e3)][_0x1aa50b(0x2b8)])return this[_0x1aa50b(0x214)]['t'](_0x1aa50b(0x298));}));}[_0x322ca1(0x2b2)](){const _0x2eab2f=_0x322ca1;this[_0x2eab2f(0x2f4)](this[_0x2eab2f(0x427)]['event$'][_0x2eab2f(0x375)](_0x5a49a9=>{const _0x313cfb=_0x2eab2f;_0x5a49a9['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x313cfb(0x3c3)]({'type':p[_0x313cfb(0x2c4)]['Warning'],'content':this[_0x313cfb(0x214)]['t']('collaboration.single-unit.warning')}),_0x5a49a9['id']===u[_0x313cfb(0x292)]['CLOSE_ROOM']&&this[_0x313cfb(0x243)]['show']({'type':p['MessageType'][_0x313cfb(0x218)],'content':this[_0x313cfb(0x214)]['t']('collaboration.closeRoom')}),_0x5a49a9['id']===u[_0x313cfb(0x292)]['PERMISSION_DENIED']&&this['_notificationService'][_0x313cfb(0x3c3)]({'title':this[_0x313cfb(0x214)]['t'](_0x313cfb(0x2c5)),'content':this['_localeService']['t'](_0x313cfb(0x242)),'type':_0x313cfb(0x430),'duration':0x0}),_0x5a49a9['id']===u['CollaborationUIEventId'][_0x313cfb(0x283)]&&this['_messageService']['show']({'type':p['MessageType'][_0x313cfb(0x320)],'content':this['_localeService']['t'](_0x313cfb(0x2ae))+'('+_0x5a49a9[_0x313cfb(0x349)]+')'}),_0x5a49a9['id']===u['CollaborationUIEventId'][_0x313cfb(0x3de)]&&this[_0x313cfb(0x243)][_0x313cfb(0x3c3)]({'type':p[_0x313cfb(0x2c4)]['Warning'],'content':this[_0x313cfb(0x214)]['t'](_0x5a49a9[_0x313cfb(0x349)]||'')}),_0x5a49a9['id']===u[_0x313cfb(0x292)]['SOCKET_FAILED_RETRY']&&this[_0x313cfb(0x243)][_0x313cfb(0x3c3)]({'type':p['MessageType']['Warning'],'content':this[_0x313cfb(0x214)]['t'](_0x313cfb(0x230))}),_0x5a49a9['id']===u[_0x313cfb(0x292)][_0x313cfb(0x2c9)]&&this['_messageService'][_0x313cfb(0x3c3)]({'type':p[_0x313cfb(0x2c4)][_0x313cfb(0x320)],'content':this[_0x313cfb(0x214)]['t'](_0x313cfb(0x338))}),_0x5a49a9['id']===u[_0x313cfb(0x292)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x313cfb(0x243)]['show']({'type':p[_0x313cfb(0x2c4)][_0x313cfb(0x320)],'content':this[_0x313cfb(0x214)]['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x322ca1(0x256)]),y(0x1,u[_0x322ca1(0x3f7)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O[_0x322ca1(0x1ce)]),y(0x4,O[_0x322ca1(0x339)]),y(0x5,a['Inject'](a[_0x322ca1(0x3cf)]))],Z);var jt=Object[_0x322ca1(0x258)],kt=(_0x329036,_0x1a18ce,_0xd872aa,_0x1cafac)=>{const _0x150793=_0x322ca1;for(var _0x5b24d0=_0x1cafac>0x1?void 0x0:_0x1cafac?jt(_0x1a18ce,_0xd872aa):_0x1a18ce,_0xc93c54=_0x329036[_0x150793(0x3f6)]-0x1,_0x2aa485;_0xc93c54>=0x0;_0xc93c54--)(_0x2aa485=_0x329036[_0xc93c54])&&(_0x5b24d0=_0x2aa485(_0x5b24d0)||_0x5b24d0);return _0x5b24d0;},z=(_0x558f74,_0x30992d)=>(_0x1d49d8,_0x4e6932)=>_0x30992d(_0x1d49d8,_0x4e6932,_0x558f74);let Q=class extends a[_0x322ca1(0x2c7)]{constructor(_0x30fe22,_0x3695df,_0x5399cb,_0x42d1f4){const _0x19f751=_0x322ca1;super(),_(this,'_memberID'),(this[_0x19f751(0x2bc)]=_0x30fe22,this['_httpService']=_0x3695df,this[_0x19f751(0x319)]=_0x5399cb,this[_0x19f751(0x29f)]=_0x42d1f4,this[_0x19f751(0x1c5)]());}['_init'](){const _0x32f3f4=_0x322ca1;this[_0x32f3f4(0x337)](),this[_0x32f3f4(0x276)](),this['_monkeyPatchLogService'](),this[_0x32f3f4(0x299)]();}['_initUserListener'](){const _0x1cc625=_0x322ca1;this[_0x1cc625(0x2f4)](this[_0x1cc625(0x29f)][_0x1cc625(0x233)][_0x1cc625(0x375)](_0x47db8b=>{const _0x1c59ea=_0x1cc625;this[_0x1c59ea(0x3d7)]=_0x47db8b==null?void 0x0:_0x47db8b['memberID'];}));}['_initWindowErrorListener'](){const _0x4d5452=_0x322ca1,_0x82b8a0=_0x5abaac=>{const _0x1a2cdb=_0xd0d7;var _0x368c99;this['_uploadLog']('error',_0x1a2cdb(0x41f)+_0x5abaac[_0x1a2cdb(0x355)]+_0x1a2cdb(0x34d)+_0x5abaac['filename']+':'+_0x5abaac[_0x1a2cdb(0x362)]+':'+_0x5abaac['colno']+'\x0a'+(((_0x368c99=_0x5abaac[_0x1a2cdb(0x430)])==null?void 0x0:_0x368c99['stack'])||''));};window[_0x4d5452(0x260)](_0x4d5452(0x430),_0x82b8a0),this[_0x4d5452(0x2f4)](()=>{const _0x25aaf9=_0x4d5452;window[_0x25aaf9(0x30a)](_0x25aaf9(0x430),_0x82b8a0);});}[_0x322ca1(0x276)](){const _0x39372d=_0x322ca1,_0x129bc7=_0x11d7d7=>{const _0x285362=_0xd0d7;this['_uploadLog'](_0x285362(0x430),_0x285362(0x2cf)+_0x11d7d7[_0x285362(0x484)]);};window[_0x39372d(0x260)]('unhandledrejection',_0x129bc7),this['disposeWithMe'](()=>{const _0x5d673f=_0x39372d;window[_0x5d673f(0x30a)](_0x5d673f(0x255),_0x129bc7);});}['_monkeyPatchLogService'](){const _0xb2c458=_0x322ca1,_0x386445=this[_0xb2c458(0x319)]['error'][_0xb2c458(0x3af)](this[_0xb2c458(0x319)]);this[_0xb2c458(0x319)][_0xb2c458(0x430)]=(..._0x1b4219)=>{const _0x9ca4af=_0xb2c458,_0x1126d1=_0x1b4219[_0x9ca4af(0x445)](_0x221d32=>_0x221d32 instanceof Error?_0x221d32[_0x9ca4af(0x355)]+'\x0a'+_0x221d32['stack']:String(_0x221d32))[_0x9ca4af(0x366)]('\x20');this[_0x9ca4af(0x297)]('error',_0x9ca4af(0x2d8)+_0x1126d1),_0x386445(..._0x1b4219);},this[_0xb2c458(0x2f4)](()=>{const _0x240dfd=_0xb2c458;this[_0x240dfd(0x319)][_0x240dfd(0x430)]=_0x386445;});}['_uploadLog'](_0x599660,_0xb1b46){const _0x2f97b4=_0x322ca1;try{const _0x199b45={'userId':this[_0x2f97b4(0x3d7)],'logLabel':_0x599660,'content':_0xb1b46};this[_0x2f97b4(0x3f1)][_0x2f97b4(0x275)](_0x2f97b4(0x421),{'body':_0x199b45})[_0x2f97b4(0x236)](()=>{});}catch{}}};function _0xd0d7(_0x2a91f7,_0x27fb1c){_0x2a91f7=_0x2a91f7-0x1c5;const _0x2ccd05=_0x2ccd();let _0xd0d754=_0x2ccd05[_0x2a91f7];return _0xd0d754;}Q=kt([z(0x0,a[_0x322ca1(0x254)](a['Injector'])),z(0x1,a[_0x322ca1(0x254)](x['HTTPService'])),z(0x2,a[_0x322ca1(0x1df)]),z(0x3,a[_0x322ca1(0x254)](u[_0x322ca1(0x238)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x322ca1(0x258)],Wt=(_0x497f4f,_0x4551a2,_0x4a63e1,_0x56d98b)=>{const _0x4a101c=_0x322ca1;for(var _0x497a08=_0x56d98b>0x1?void 0x0:_0x56d98b?Ht(_0x4551a2,_0x4a63e1):_0x4551a2,_0x24e03b=_0x497f4f[_0x4a101c(0x3f6)]-0x1,_0x387dc3;_0x24e03b>=0x0;_0x24e03b--)(_0x387dc3=_0x497f4f[_0x24e03b])&&(_0x497a08=_0x387dc3(_0x497a08)||_0x497a08);return _0x497a08;},Ae=(_0x5d5f3a,_0x49ac1a)=>(_0x4a1f1f,_0x4134ce)=>_0x49ac1a(_0x4a1f1f,_0x4134ce,_0x5d5f3a);let ee=class{constructor(_0x57c3d5,_0x169e0c){const _0xa19ced=_0x322ca1;this[_0xa19ced(0x325)]=_0x57c3d5,this[_0xa19ced(0x39f)]=_0x169e0c;}[_0x322ca1(0x32e)](_0x4001fd){const _0x19cc1b=_0x322ca1;this[_0x19cc1b(0x1ef)](_0x4001fd),this['_transformPreviousActiveRange'](_0x4001fd);}[_0x322ca1(0x424)](_0x46e91f){const _0x10f7fa=_0x322ca1,{unitID:_0x203e63}=_0x46e91f,_0x20be6e=this[_0x10f7fa(0x39f)][_0x10f7fa(0x3a4)](_0x203e63)['with'](T[_0x10f7fa(0x38d)]),{redoCache:_0x151156}=_0x20be6e['getUndoRedoMutationParamsCache']();if(_0x151156[_0x10f7fa(0x3f6)]===0x0)return _0x46e91f;let _0x4b838e=a['Tools']['deepClone'](_0x46e91f['mutations'][0x0]);for(let _0x42f07e=0x0;_0x42f07e<_0x151156[_0x10f7fa(0x3f6)];_0x42f07e++){const _0x42b139={'id':_0x10f7fa(0x3ba),'params':{..._0x151156[_0x42f07e]}},_0x473b7f=this[_0x10f7fa(0x325)]['transformMutation'](_0x4b838e,_0x42b139,!0x1);if(g[_0x10f7fa(0x361)](_0x473b7f))throw _0x473b7f['error'];_0x4b838e=_0x473b7f[_0x10f7fa(0x406)];}return{...a['Tools'][_0x10f7fa(0x45e)](_0x46e91f),'mutations':[_0x4b838e]};}[_0x322ca1(0x1ef)](_0x1636ea){const _0x3207c1=_0x322ca1,{unitID:_0x5ec47d}=_0x1636ea,_0x2e7c72=this['_renderManagerService'][_0x3207c1(0x3a4)](_0x5ec47d)[_0x3207c1(0x301)](T[_0x3207c1(0x38d)]),{undoCache:_0x4d51d7,redoCache:_0x577f88}=_0x2e7c72['getUndoRedoMutationParamsCache']();if(_0x4d51d7[_0x3207c1(0x3f6)]===0x0||_0x577f88[_0x3207c1(0x3f6)]===0x0)return;const _0x3e6bb8=[],_0x31ae6d=[];let _0x3e89d1=a['Tools'][_0x3207c1(0x45e)](_0x1636ea['mutations'][0x0]),_0x5e2e62=a[_0x3207c1(0x451)][_0x3207c1(0x45e)](_0x1636ea['mutations'][0x0]);for(let _0x43261f=_0x4d51d7[_0x3207c1(0x3f6)]-0x1;_0x43261f>=0x0;_0x43261f--){const _0x445123={'id':_0x3207c1(0x3ba),'params':{..._0x4d51d7[_0x43261f]}},_0x291497={'id':_0x3207c1(0x3ba),'params':{..._0x577f88[_0x43261f]}},_0x5cf624=this[_0x3207c1(0x325)][_0x3207c1(0x388)](_0x3e89d1,_0x445123,!0x1),_0x3a60c4=this[_0x3207c1(0x325)][_0x3207c1(0x388)](_0x5e2e62,_0x291497,!0x1);if(g[_0x3207c1(0x361)](_0x5cf624))throw _0x5cf624[_0x3207c1(0x430)];if(g[_0x3207c1(0x361)](_0x3a60c4))throw _0x3a60c4[_0x3207c1(0x430)];_0x3e6bb8[_0x3207c1(0x44c)](_0x5cf624[_0x3207c1(0x458)][_0x3207c1(0x380)]),_0x31ae6d[_0x3207c1(0x44c)](_0x3a60c4['m2Prime']['params']),_0x3e89d1=_0x5cf624[_0x3207c1(0x406)],_0x5e2e62=_0x3a60c4[_0x3207c1(0x406)];}_0x2e7c72[_0x3207c1(0x498)]({'undoCache':_0x3e6bb8,'redoCache':_0x31ae6d});}[_0x322ca1(0x439)](_0x259e9e){const _0x32f015=_0x322ca1,{unitID:_0x5c780f}=_0x259e9e,_0x3a2717=this[_0x32f015(0x39f)][_0x32f015(0x3a4)](_0x5c780f)['with'](T[_0x32f015(0x38d)]),_0x5a3c06=_0x3a2717[_0x32f015(0x332)]();if(_0x5a3c06==null)return;const _0x37f7ba=[{'id':_0x32f015(0x3ba),'params':{'unitId':_0x259e9e[_0x32f015(0x383)],'actions':null,'textRanges':[_0x5a3c06]}}],_0x2f1897=this['_transformService'][_0x32f015(0x419)](_0x259e9e,_0x37f7ba);if(!g[_0x32f015(0x44a)](_0x2f1897))throw _0x2f1897['error'];const _0x576146=_0x2f1897[_0x32f015(0x458)][0x0][_0x32f015(0x380)][_0x32f015(0x378)];Array[_0x32f015(0x244)](_0x576146)&&_0x576146['length']&&_0x3a2717[_0x32f015(0x37b)](_0x576146[0x0]);}};ee=Wt([Ae(0x0,g[_0x322ca1(0x3b7)]),Ae(0x1,C[_0x322ca1(0x2d2)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x1b0939,_0xd68103,_0x30ae7a,_0x23b6f1)=>{const _0x17821a=_0x322ca1;for(var _0x505759=_0x23b6f1>0x1?void 0x0:_0x23b6f1?Vt(_0xd68103,_0x30ae7a):_0xd68103,_0x53a7d0=_0x1b0939[_0x17821a(0x3f6)]-0x1,_0x1e159f;_0x53a7d0>=0x0;_0x53a7d0--)(_0x1e159f=_0x1b0939[_0x53a7d0])&&(_0x505759=_0x1e159f(_0x505759)||_0x505759);return _0x505759;},Ie=(_0x113ff6,_0x111bdf)=>(_0x3a9cb3,_0x184b35)=>_0x111bdf(_0x3a9cb3,_0x184b35,_0x113ff6);let te=class{constructor(_0x213c60,_0x4c0daf,_0x577f3d){const _0x165a64=_0x322ca1;this[_0x165a64(0x2bc)]=_0x213c60,this[_0x165a64(0x325)]=_0x4c0daf,this[_0x165a64(0x200)]=_0x577f3d;}[_0x322ca1(0x284)](_0x529ea3){const _0x3c19a0=_0x322ca1;this[_0x3c19a0(0x1dd)](_0x529ea3);}['transformRemoteChangeset'](_0x22f785){const _0x10f617=_0x322ca1,{unitID:_0x4d4107}=_0x22f785,{collaboration:_0x1e2fd6}=this[_0x10f617(0x200)][_0x10f617(0x32b)](_0x4d4107);if(_0x1e2fd6[_0x10f617(0x3f6)]===0x0)return _0x22f785;let _0x2bec26=a[_0x10f617(0x451)][_0x10f617(0x45e)](_0x22f785[_0x10f617(0x262)][0x0]);for(let _0x2e7e57=0x0;_0x2e7e57<_0x1e2fd6['length'];_0x2e7e57++){const _0x59b0fe={'id':_0x10f617(0x3ba),'params':{'unitId':_0x1e2fd6[_0x2e7e57]['unitId'],..._0x1e2fd6[_0x2e7e57][_0x10f617(0x2bb)]}},_0x2ed2a5=this[_0x10f617(0x325)][_0x10f617(0x388)](_0x2bec26,_0x59b0fe,!0x1);if(g['isTransformMutationFailure'](_0x2ed2a5))throw _0x2ed2a5[_0x10f617(0x430)];_0x2bec26=_0x2ed2a5[_0x10f617(0x406)];}return{...a[_0x10f617(0x451)][_0x10f617(0x45e)](_0x22f785),'mutations':[_0x2bec26]};}[_0x322ca1(0x1dd)](_0x2b3b79){const _0x52fd8a=_0x322ca1,{unitID:_0x4174de}=_0x2b3b79,{history:_0x505662,collaboration:_0x35e03a}=this[_0x52fd8a(0x200)]['getStateCache'](_0x4174de);if(_0x505662[_0x52fd8a(0x3f6)]===0x0&&_0x35e03a[_0x52fd8a(0x3f6)]===0x0)return;const _0xa31b2b=[],_0x42f2b5=[];let _0x40c4eb=a[_0x52fd8a(0x451)]['deepClone'](_0x2b3b79[_0x52fd8a(0x262)][0x0]),_0x843784=a[_0x52fd8a(0x451)][_0x52fd8a(0x45e)](_0x2b3b79[_0x52fd8a(0x262)][0x0]);for(let _0x7b4cd0=_0x505662[_0x52fd8a(0x3f6)]-0x1;_0x7b4cd0>=0x0;_0x7b4cd0--){const _0x34b902={'id':_0x52fd8a(0x3ba),'params':{'unitId':_0x505662[_0x7b4cd0][_0x52fd8a(0x318)],..._0x505662[_0x7b4cd0][_0x52fd8a(0x2ca)]}},_0x4fca44={'id':_0x52fd8a(0x3ba),'params':{'unitId':_0x505662[_0x7b4cd0][_0x52fd8a(0x318)],..._0x505662[_0x7b4cd0][_0x52fd8a(0x2bb)]}},_0x490179=this['_transformService'][_0x52fd8a(0x388)](_0x40c4eb,_0x34b902,!0x1),_0x1e597e=this[_0x52fd8a(0x325)][_0x52fd8a(0x388)](_0x843784,_0x4fca44,!0x1);if(g['isTransformMutationFailure'](_0x490179))throw _0x490179[_0x52fd8a(0x430)];if(g[_0x52fd8a(0x361)](_0x1e597e))throw _0x1e597e[_0x52fd8a(0x430)];_0xa31b2b[_0x52fd8a(0x44c)]({..._0x505662[_0x7b4cd0],'undoState':_0x490179[_0x52fd8a(0x458)][_0x52fd8a(0x380)],'redoState':_0x1e597e[_0x52fd8a(0x458)][_0x52fd8a(0x380)]}),_0x40c4eb=_0x490179[_0x52fd8a(0x406)],_0x843784=_0x1e597e[_0x52fd8a(0x406)];}_0x40c4eb=a[_0x52fd8a(0x451)]['deepClone'](_0x2b3b79['mutations'][0x0]),_0x843784=a[_0x52fd8a(0x451)][_0x52fd8a(0x45e)](_0x2b3b79[_0x52fd8a(0x262)][0x0]);for(let _0x3c3119=_0x35e03a['length']-0x1;_0x3c3119>=0x0;_0x3c3119--){const _0x2c71ac={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x35e03a[_0x3c3119]['unitId'],..._0x35e03a[_0x3c3119][_0x52fd8a(0x2ca)]}},_0x153b59={'id':_0x52fd8a(0x3ba),'params':{'unitId':_0x35e03a[_0x3c3119][_0x52fd8a(0x318)],..._0x35e03a[_0x3c3119]['redoState']}},_0x104630=this['_transformService'][_0x52fd8a(0x388)](_0x40c4eb,_0x2c71ac,!0x1),_0x2bed=this['_transformService'][_0x52fd8a(0x388)](_0x843784,_0x153b59,!0x1);if(g[_0x52fd8a(0x361)](_0x104630))throw _0x104630[_0x52fd8a(0x430)];if(g[_0x52fd8a(0x361)](_0x2bed))throw _0x2bed[_0x52fd8a(0x430)];_0x42f2b5['unshift']({..._0x35e03a[_0x3c3119],'undoState':_0x104630[_0x52fd8a(0x458)][_0x52fd8a(0x380)],'redoState':_0x2bed[_0x52fd8a(0x458)][_0x52fd8a(0x380)]}),_0x40c4eb=_0x104630[_0x52fd8a(0x406)],_0x843784=_0x2bed[_0x52fd8a(0x406)];}this[_0x52fd8a(0x200)][_0x52fd8a(0x415)](_0x4174de,{'history':_0xa31b2b,'collaboration':_0x42f2b5});}};te=Gt([Ie(0x0,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),Ie(0x1,g[_0x322ca1(0x3b7)]),Ie(0x2,a[_0x322ca1(0x254)](T[_0x322ca1(0x247)]))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x315140,_0x146693,_0x53639a,_0x20c2d3)=>{for(var _0x2b4074=_0x20c2d3>0x1?void 0x0:_0x20c2d3?Xt(_0x146693,_0x53639a):_0x146693,_0x3f2497=_0x315140['length']-0x1,_0x3047ba;_0x3f2497>=0x0;_0x3f2497--)(_0x3047ba=_0x315140[_0x3f2497])&&(_0x2b4074=_0x3047ba(_0x2b4074)||_0x2b4074);return _0x2b4074;},Pe=(_0x136633,_0x5edf77)=>(_0x2a1a61,_0x2efa2f)=>_0x5edf77(_0x2a1a61,_0x2efa2f,_0x136633);let se=class{constructor(_0x42bf04,_0x46334b){const _0x306eed=_0x322ca1;this[_0x306eed(0x2bc)]=_0x42bf04,this[_0x306eed(0x325)]=_0x46334b;}['transformSelections'](_0x1de8b7){const _0x176a49=_0x322ca1;var _0x23852d;const _0x6ba719=this[_0x176a49(0x2bc)][_0x176a49(0x442)](V[_0x176a49(0x206)]),_0x317971=(_0x23852d=_0x6ba719[_0x176a49(0x308)]())!=null?_0x23852d:[];if(_0x317971['length']===0x0)return;const _0x8f0a9=_0x1de8b7['unitID'],_0x16cd79=[{'id':_0x176a49(0x3ba),'params':{'unitId':_0x8f0a9,'actions':null,'textRanges':_0x317971}}],_0x5eced6=this[_0x176a49(0x325)][_0x176a49(0x419)](_0x1de8b7,_0x16cd79);if(!g[_0x176a49(0x44a)](_0x5eced6))throw _0x5eced6[_0x176a49(0x430)];const _0x4119ef=_0x5eced6[_0x176a49(0x458)][0x0][_0x176a49(0x380)]['textRanges'];Array[_0x176a49(0x244)](_0x4119ef)&&_0x4119ef[_0x176a49(0x3f6)]&&_0x6ba719[_0x176a49(0x27c)](_0x4119ef,{'unitId':_0x8f0a9,'subUnitId':_0x8f0a9},!0x1);}};se=Kt([Pe(0x0,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),Pe(0x1,g[_0x322ca1(0x3b7)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x158992,_0x3bfcc9,_0x17df07,_0x26ec08)=>{const _0x169d1f=_0x322ca1;for(var _0x778ac3=_0x26ec08>0x1?void 0x0:_0x26ec08?qt(_0x3bfcc9,_0x17df07):_0x3bfcc9,_0x47912d=_0x158992[_0x169d1f(0x3f6)]-0x1,_0x2ba3cb;_0x47912d>=0x0;_0x47912d--)(_0x2ba3cb=_0x158992[_0x47912d])&&(_0x778ac3=_0x2ba3cb(_0x778ac3)||_0x778ac3);return _0x778ac3;},N=(_0x2a9cba,_0x30e226)=>(_0x33454d,_0x58da64)=>_0x30e226(_0x33454d,_0x58da64,_0x2a9cba);let ie=class extends a[_0x322ca1(0x2c7)]{constructor(_0xc6025e,_0x4c4416,_0x293450,_0x2853a8,_0x481554,_0x454cdb,_0x119e92,_0x13a791){const _0x2c9677=_0x322ca1;super(),_(this,_0x2c9677(0x45b),new I[(_0x2c9677(0x3b4))](u[_0x2c9677(0x3ed)][_0x2c9677(0x1e2)])),(this['_docStateChangeManagerService']=_0xc6025e,this[_0x2c9677(0x494)]=_0x4c4416,this['_docTransformIMECacheService']=_0x293450,this['_docTransformStateCacheService']=_0x2853a8,this['_docTransformSelectionsService']=_0x481554,this[_0x2c9677(0x3e4)]=_0x454cdb,this[_0x2c9677(0x243)]=_0x119e92,this[_0x2c9677(0x214)]=_0x13a791,this[_0x2c9677(0x3db)]());}[_0x322ca1(0x3db)](){const _0x32c1a2=_0x322ca1;this[_0x32c1a2(0x2f4)](this[_0x32c1a2(0x494)]['entityInit$']['subscribe'](_0x1fe786=>{const _0x4ae079=_0x32c1a2,_0xbb3959=this[_0x4ae079(0x200)][_0x4ae079(0x24b)][_0x4ae079(0x375)](_0x587d7f=>{const _0x54e90e=_0x4ae079;if(_0x587d7f==null)return;const {unitId:_0x26ab32,redoState:_0xd6243f,commandId:_0x31b7aa}=_0x587d7f;if(_0x26ab32!==_0x1fe786[_0x54e90e(0x383)])return;const _0x5cd353={'id':_0x31b7aa,'type':a[_0x54e90e(0x417)][_0x54e90e(0x257)],'params':{'unitId':_0x26ab32,'actions':_0xd6243f[_0x54e90e(0x211)],'textRanges':null}};_0x1fe786[_0x54e90e(0x1e5)](_0x5cd353);});if(_0x1fe786[_0x4ae079(0x2f4)](_0xbb3959),_0x1fe786 instanceof u[_0x4ae079(0x3f5)]){const _0x2a5b07={'onTransformIME':_0x20a704=>this[_0x4ae079(0x22f)]['transformIMECache'](_0x20a704),'onTransformState':_0x16de7b=>this[_0x4ae079(0x487)][_0x4ae079(0x284)](_0x16de7b),'onTransformSelections':_0x502061=>this[_0x4ae079(0x1d1)][_0x4ae079(0x3d5)](_0x502061),'onSyncEditingCollabCursor':_0x480968=>this[_0x4ae079(0x3e4)]['syncEditingCollabCursor'](_0x480968),'onTransformRemoteChangesetByIMECache':_0x198fce=>this[_0x4ae079(0x22f)][_0x4ae079(0x424)](_0x198fce),'onTransformRemoteChangesetByStateCache':_0x379f13=>this['_docTransformStateCacheService'][_0x4ae079(0x424)](_0x379f13)};_0x1fe786['addHandlerCallback'](_0x2a5b07);}}));}};ie=zt([N(0x0,a[_0x322ca1(0x254)](T['DocStateChangeManagerService'])),N(0x1,a[_0x322ca1(0x254)](u[_0x322ca1(0x3e2)])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x322ca1(0x254)](te)),N(0x4,a['Inject'](se)),N(0x5,a[_0x322ca1(0x254)](be)),N(0x6,O[_0x322ca1(0x1ce)]),N(0x7,a[_0x322ca1(0x254)](a[_0x322ca1(0x3cf)]))],ie);var G=(_0x11f7ce=>(_0x11f7ce[_0x11f7ce['UNDEFINED']=0x0]=_0x322ca1(0x46d),_0x11f7ce[_0x11f7ce['OK']=0x1]='OK',_0x11f7ce[_0x11f7ce[_0x322ca1(0x393)]=0x2]=_0x322ca1(0x393),_0x11f7ce[_0x11f7ce['PERMISSION_DENIED']=0x3]=_0x322ca1(0x2a1),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2e8)]=0x4]=_0x322ca1(0x2e8),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2cb)]=0x5]=_0x322ca1(0x2cb),_0x11f7ce[_0x11f7ce[_0x322ca1(0x35b)]=0x6]=_0x322ca1(0x35b),_0x11f7ce[_0x11f7ce[_0x322ca1(0x323)]=0x7]=_0x322ca1(0x323),_0x11f7ce[_0x11f7ce['TOO_MANY_REQUESTS']=0x8]=_0x322ca1(0x411),_0x11f7ce[_0x11f7ce[_0x322ca1(0x420)]=0x9]=_0x322ca1(0x420),_0x11f7ce[_0x11f7ce[_0x322ca1(0x21b)]=0xa]=_0x322ca1(0x21b),_0x11f7ce[_0x11f7ce['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x11f7ce[_0x11f7ce[_0x322ca1(0x39c)]=0xc]=_0x322ca1(0x39c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x25b)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x11f7ce[_0x11f7ce['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x322ca1(0x2fd),_0x11f7ce[_0x11f7ce[_0x322ca1(0x311)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x11f7ce[_0x11f7ce[_0x322ca1(0x48c)]=0x10]=_0x322ca1(0x48c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x3b0)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x11f7ce[_0x11f7ce[_0x322ca1(0x47a)]=0x65]=_0x322ca1(0x47a),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2fe)]=0xc9]=_0x322ca1(0x2fe),_0x11f7ce[_0x11f7ce[_0x322ca1(0x224)]=0xca]=_0x322ca1(0x224),_0x11f7ce[_0x11f7ce[_0x322ca1(0x363)]=0x1389]=_0x322ca1(0x363),_0x11f7ce[_0x11f7ce[_0x322ca1(0x480)]=0x1771]=_0x322ca1(0x480),_0x11f7ce[_0x11f7ce[_0x322ca1(0x23c)]=0x1772]=_0x322ca1(0x23c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x30c)]=0x1773]=_0x322ca1(0x30c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x29d)]=0x1b59]=_0x322ca1(0x29d),_0x11f7ce[_0x11f7ce[_0x322ca1(0x1de)]=0x1b5a]=_0x322ca1(0x1de),_0x11f7ce[_0x11f7ce[_0x322ca1(0x462)]=0x1b5b]=_0x322ca1(0x462),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2cd)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x11f7ce[_0x11f7ce[_0x322ca1(0x29e)]=0x1b5d]=_0x322ca1(0x29e),_0x11f7ce[_0x11f7ce['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x11f7ce[_0x11f7ce[_0x322ca1(0x1f3)]=0x2329]=_0x322ca1(0x1f3),_0x11f7ce[_0x11f7ce[_0x322ca1(0x450)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x11f7ce[_0x11f7ce[_0x322ca1(0x43c)]=0x232b]=_0x322ca1(0x43c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2b1)]=0x232c]=_0x322ca1(0x2b1),_0x11f7ce[_0x11f7ce[_0x322ca1(0x469)]=0x232d]=_0x322ca1(0x469),_0x11f7ce[_0x11f7ce['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x11f7ce[_0x11f7ce[_0x322ca1(0x1f8)]=0x2712]=_0x322ca1(0x1f8),_0x11f7ce[_0x11f7ce[_0x322ca1(0x475)]=0x2713]=_0x322ca1(0x475),_0x11f7ce[_0x11f7ce[_0x322ca1(0x410)]=0x2714]=_0x322ca1(0x410),_0x11f7ce[_0x11f7ce['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x322ca1(0x41c),_0x11f7ce[_0x11f7ce['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x322ca1(0x229),_0x11f7ce[_0x11f7ce[_0x322ca1(0x3a3)]=0x271c]=_0x322ca1(0x3a3),_0x11f7ce[_0x11f7ce['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x322ca1(0x42f),_0x11f7ce[_0x11f7ce[_0x322ca1(0x440)]=0x271e]=_0x322ca1(0x440),_0x11f7ce[_0x11f7ce[_0x322ca1(0x3ad)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x11f7ce[_0x11f7ce[_0x322ca1(0x45f)]=0x2720]=_0x322ca1(0x45f),_0x11f7ce[_0x11f7ce[_0x322ca1(0x23e)]=0x2af9]=_0x322ca1(0x23e),_0x11f7ce[_0x11f7ce[_0x322ca1(0x348)]=0x2ee1]=_0x322ca1(0x348),_0x11f7ce[_0x11f7ce[_0x322ca1(0x401)]=0x2ee2]='INVALID_INVITE_CODE',_0x11f7ce[_0x11f7ce['INVITE_CODE_REQUIRED']=0x2ee3]=_0x322ca1(0x416),_0x11f7ce[_0x11f7ce['USER_NOT_INVITED_CODE']=0x2ee4]=_0x322ca1(0x36d),_0x11f7ce[_0x11f7ce[_0x322ca1(0x203)]=0x2ee5]=_0x322ca1(0x203),_0x11f7ce[_0x11f7ce[_0x322ca1(0x1f4)]=0x32c9]=_0x322ca1(0x1f4),_0x11f7ce[_0x11f7ce[_0x322ca1(0x431)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x11f7ce[_0x11f7ce[_0x322ca1(0x30f)]=0x32cb]=_0x322ca1(0x30f),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2eb)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x11f7ce[_0x11f7ce[_0x322ca1(0x2f9)]=0x36b2]=_0x322ca1(0x2f9),_0x11f7ce[_0x11f7ce[_0x322ca1(0x413)]=0x36b3]=_0x322ca1(0x413),_0x11f7ce[_0x11f7ce[_0x322ca1(0x42b)]=0x36b4]=_0x322ca1(0x42b),_0x11f7ce[_0x11f7ce['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x11f7ce[_0x11f7ce[_0x322ca1(0x2d5)]=0x36b6]=_0x322ca1(0x2d5),_0x11f7ce[_0x11f7ce[_0x322ca1(0x38b)]=0x36b7]=_0x322ca1(0x38b),_0x11f7ce[_0x11f7ce[_0x322ca1(0x1d0)]=0x36b8]=_0x322ca1(0x1d0),_0x11f7ce[_0x11f7ce['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x322ca1(0x326),_0x11f7ce[_0x11f7ce['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x322ca1(0x428),_0x11f7ce[_0x11f7ce[_0x322ca1(0x2e9)]=0x3717]=_0x322ca1(0x2e9),_0x11f7ce[_0x11f7ce[_0x322ca1(0x3b8)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x11f7ce[_0x11f7ce['REDEMPTION_INVALID_CODE']=0x3a99]=_0x322ca1(0x423),_0x11f7ce[_0x11f7ce['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x322ca1(0x22c),_0x11f7ce[_0x11f7ce[_0x322ca1(0x3fa)]=0x3a9b]=_0x322ca1(0x3fa),_0x11f7ce[_0x11f7ce[_0x322ca1(0x277)]=0x3a9c]=_0x322ca1(0x277),_0x11f7ce[_0x11f7ce['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x322ca1(0x212),_0x11f7ce[_0x11f7ce['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x322ca1(0x36f),_0x11f7ce[_0x11f7ce['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x322ca1(0x457),_0x11f7ce[_0x11f7ce[_0x322ca1(0x461)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x11f7ce[_0x11f7ce[_0x322ca1(0x1f5)]=-0x1]=_0x322ca1(0x1f5),_0x11f7ce))(G||{});function Jt(_0x218f04){const _0x1eb821=_0x322ca1;var _0x31a4a5,_0x45a0ff;const _0x247aaa=(_0x31a4a5=_0x218f04[_0x1eb821(0x433)])==null?void 0x0:_0x31a4a5[_0x1eb821(0x359)],_0x3d8791=((_0x45a0ff=_0x218f04[_0x1eb821(0x433)])==null?void 0x0:_0x45a0ff[_0x1eb821(0x2d0)])||0x0;return _0x247aaa===B[_0x1eb821(0x2ab)][_0x1eb821(0x465)]&&_0x3d8791>0x0;}function Zt(_0x55fa68){const _0x2a6c7f=_0x322ca1;return _0x55fa68[_0x2a6c7f(0x2e0)]===B['FormulaExecutedStateType'][_0x2a6c7f(0x328)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x456399,_0x3ab7c3,_0xb359e1,_0x1d780f)=>{const _0x890271=_0x322ca1;for(var _0x2b625b=_0x1d780f>0x1?void 0x0:_0x1d780f?Qt(_0x3ab7c3,_0xb359e1):_0x3ab7c3,_0x1f74c1=_0x456399[_0x890271(0x3f6)]-0x1,_0x599168;_0x1f74c1>=0x0;_0x1f74c1--)(_0x599168=_0x456399[_0x1f74c1])&&(_0x2b625b=_0x599168(_0x2b625b)||_0x2b625b);return _0x2b625b;},L=(_0xdb3890,_0xc7cdf)=>(_0x502be6,_0xd0b344)=>_0xc7cdf(_0x502be6,_0xd0b344,_0xdb3890);const ts=_0x322ca1(0x33b),ss='/universer-api/license/formula/limit/start',is='/universer-api/license/formula/limit/done';let ne=class extends a['Disposable']{constructor(_0x287789,_0x2981f5,_0x3d63ce,_0xb75f8e,_0x2daac4,_0x46b501,_0x269101){const _0x4d26fd=_0x322ca1;super(),_(this,_0x4d26fd(0x40e),null),_(this,_0x4d26fd(0x466),0x0),_(this,_0x4d26fd(0x288),0x0),_(this,_0x4d26fd(0x2b0),[]),_(this,_0x4d26fd(0x46b),0x0),(this['_messageService']=_0x287789,this[_0x4d26fd(0x38a)]=_0x2981f5,this[_0x4d26fd(0x479)]=_0x3d63ce,this[_0x4d26fd(0x3f1)]=_0xb75f8e,this[_0x4d26fd(0x234)]=_0x2daac4,this[_0x4d26fd(0x319)]=_0x46b501,this['_localeService']=_0x269101,this['_initCommandInterceptor']());}['_initCommandInterceptor'](){const _0x1fdab9=_0x322ca1;this[_0x1fdab9(0x2f4)](this['_commandService'][_0x1fdab9(0x264)]((_0x5c6ee0,_0x27f097)=>{const _0x53e87a=_0x1fdab9;var _0x1e5dd7;if(_0x5c6ee0['id']!==B[_0x53e87a(0x3cc)]['id'])return;const _0x627206=_0x5c6ee0[_0x53e87a(0x380)];if(!this['_hasFormulaInDirtyRanges']((_0x1e5dd7=_0x627206['dirtyRanges'])!=null?_0x1e5dd7:[]))return;if(!this[_0x53e87a(0x492)]())throw this[_0x53e87a(0x391)](_0x5c6ee0,_0x27f097),this[_0x53e87a(0x3d1)](),new a[(_0x53e87a(0x28a))]();})),this['disposeWithMe'](this[_0x1fdab9(0x38a)]['onCommandExecuted']((_0x5b9a16,_0x570639)=>{const _0x20201e=_0x1fdab9;if(_0x5b9a16['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x585a51=_0x5b9a16['params'];if(Jt(_0x585a51)){const _0x2466fa=a[_0x20201e(0x25f)]();this[_0x20201e(0x2b0)][_0x20201e(0x47b)](_0x2466fa),this['_startCalculationLimit'](_0x2466fa);}else{if(Zt(_0x585a51)&&this['_taskIds'][_0x20201e(0x3f6)]>0x0){const _0x1120db=this[_0x20201e(0x2b0)]['shift']();this[_0x20201e(0x313)](_0x1120db);}}}));}[_0x322ca1(0x290)](){const _0x202cf8=_0x322ca1;super[_0x202cf8(0x290)](),this[_0x202cf8(0x26e)](),this[_0x202cf8(0x2b0)]=[],this[_0x202cf8(0x288)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x14da92,_0x2c8df8){const _0x304b68=_0x322ca1;for(let _0x41b83d=0x0;_0x41b83d<0x1e;_0x41b83d++)try{if(await this[_0x304b68(0x496)](),this[_0x304b68(0x492)]()){this[_0x304b68(0x35e)](_0x14da92,_0x2c8df8),this[_0x304b68(0x243)]['show']({'content':this['_localeService']['t']('formula.calculation.started'),'type':p[_0x304b68(0x2c4)]['Success']});return;}await new Promise(_0x1b1696=>{const _0x44232c=_0x304b68;this['_pollingInterval']=window[_0x44232c(0x30b)](_0x1b1696,0x3e8);});}catch(_0x220433){this[_0x304b68(0x319)][_0x304b68(0x430)](_0x220433);}this[_0x304b68(0x243)]['show']({'content':this[_0x304b68(0x214)]['t'](_0x304b68(0x3f3)),'type':p[_0x304b68(0x2c4)][_0x304b68(0x320)]});}[_0x322ca1(0x35e)](_0x2ecfaa,_0x3e61f9){const _0x194eb1=_0x322ca1;try{this[_0x194eb1(0x38a)]['executeCommand'](_0x2ecfaa['id'],_0x2ecfaa[_0x194eb1(0x380)],_0x3e61f9);}catch(_0x1a84e1){this[_0x194eb1(0x319)]['error'](_0x1a84e1);}}[_0x322ca1(0x273)](_0x259604,_0x5baa62){const _0xbdc01e=_0x322ca1;_0x5baa62<this['_lastResponseTimestamp']||(this[_0xbdc01e(0x46b)]=_0x5baa62,this['_maxFormulaLimit']=Number[_0xbdc01e(0x40c)](_0x259604[_0xbdc01e(0x47f)]),this['_currentUsage']=Number[_0xbdc01e(0x40c)](_0x259604[_0xbdc01e(0x291)]));}async['_startCalculationLimit'](_0x592e66){const _0x452f7b=_0x322ca1;var _0x200445,_0x2b1ba2;const _0x3780c1=Date['now']();try{const _0x389f02=((_0x200445=this['_configService'][_0x452f7b(0x47d)](u[_0x452f7b(0x37f)]))==null?void 0x0:_0x200445['startFormulaLimitUrl'])||ss,_0x2c2125=(await this[_0x452f7b(0x3f1)][_0x452f7b(0x275)](_0x389f02,{'body':JSON[_0x452f7b(0x27b)]({'taskId':_0x592e66})}))[_0x452f7b(0x46c)];if(((_0x2b1ba2=_0x2c2125[_0x452f7b(0x430)])==null?void 0x0:_0x2b1ba2[_0x452f7b(0x463)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x2c2125[_0x452f7b(0x29a)],_0x3780c1);}catch(_0x1ff2de){this['_logService'][_0x452f7b(0x430)](_0x1ff2de);}}async[_0x322ca1(0x496)](_0x168a6e){const _0x194695=_0x322ca1;var _0x40ea22,_0x5be5dd;const _0xf5053b=Date[_0x194695(0x2ad)]();try{const _0x36306e=((_0x40ea22=this[_0x194695(0x479)][_0x194695(0x47d)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x40ea22[_0x194695(0x2bf)])||ts,_0x3b2579=_0x168a6e?_0x36306e+_0x194695(0x201)+encodeURIComponent(_0x168a6e):_0x36306e,_0x556293=(await this[_0x194695(0x3f1)][_0x194695(0x442)](_0x3b2579))['body'];if(((_0x5be5dd=_0x556293[_0x194695(0x430)])==null?void 0x0:_0x5be5dd[_0x194695(0x463)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x556293[_0x194695(0x29a)],_0xf5053b);}catch(_0x4fb988){this['_logService'][_0x194695(0x430)](_0x4fb988);}}async[_0x322ca1(0x313)](_0x475326){const _0x3c6a38=_0x322ca1;var _0xe44793,_0x1d1fcf;const _0x26e76c=Date[_0x3c6a38(0x2ad)]();try{const _0x825a7d=((_0xe44793=this['_configService']['getConfig'](u[_0x3c6a38(0x37f)]))==null?void 0x0:_0xe44793['releaseFormulaLimitUrl'])||is,_0x4d9514=(await this[_0x3c6a38(0x3f1)][_0x3c6a38(0x275)](_0x825a7d,{'body':JSON['stringify']({'taskId':_0x475326})}))[_0x3c6a38(0x46c)];if(((_0x1d1fcf=_0x4d9514['error'])==null?void 0x0:_0x1d1fcf['code'])!==G['OK'])return;this[_0x3c6a38(0x273)](_0x4d9514[_0x3c6a38(0x29a)],_0x26e76c);}catch(_0x253e47){this[_0x3c6a38(0x319)]['error'](_0x253e47);}}['_checkCalculationAvailable'](){const _0x567292=_0x322ca1;return this[_0x567292(0x466)]===0x0?!0x0:this[_0x567292(0x466)]-this[_0x567292(0x288)]>0x0;}[_0x322ca1(0x26e)](){const _0x267283=_0x322ca1;this[_0x267283(0x40e)]&&(clearTimeout(this['_pollingInterval']),this[_0x267283(0x40e)]=null);}[_0x322ca1(0x3d1)](){const _0x58b6bb=_0x322ca1;this['_messageService'][_0x58b6bb(0x3c3)]({'content':this['_localeService']['t'](_0x58b6bb(0x2b6)),'type':p['MessageType'][_0x58b6bb(0x1da)]});}[_0x322ca1(0x23f)](_0x43d3ec){const _0x12c42e=_0x322ca1;for(const _0x3c3c08 of _0x43d3ec){const {unitId:_0xeb7808,sheetId:_0x9ed4ff,range:_0x352ca9}=_0x3c3c08,_0x5504e1=this[_0x12c42e(0x234)]['getUnit'](_0xeb7808);if(!_0x5504e1)continue;const _0xce781b=_0x5504e1[_0x12c42e(0x418)](_0x9ed4ff);if(!_0xce781b)continue;const _0x2ae8e6=_0xce781b[_0x12c42e(0x1f7)]();for(let _0x41368b=_0x352ca9[_0x12c42e(0x370)];_0x41368b<=_0x352ca9[_0x12c42e(0x3aa)];_0x41368b++)for(let _0x20b11e=_0x352ca9[_0x12c42e(0x237)];_0x20b11e<=_0x352ca9['endColumn'];_0x20b11e++){const _0x2928ed=_0x2ae8e6[_0x12c42e(0x2e7)](_0x41368b,_0x20b11e);if(_0x2928ed&&(a[_0x12c42e(0x403)](_0x2928ed['f'])||a[_0x12c42e(0x389)](_0x2928ed['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x322ca1(0x1ce)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x322ca1(0x254)](x[_0x322ca1(0x43f)])),L(0x4,a[_0x322ca1(0x215)]),L(0x5,a[_0x322ca1(0x1df)]),L(0x6,a[_0x322ca1(0x254)](a['LocaleService']))],ne);var ns=Object[_0x322ca1(0x258)],rs=(_0x28f0ce,_0x54fae9,_0x5d4a29,_0x4a4853)=>{const _0x2c05c2=_0x322ca1;for(var _0x491ab0=_0x4a4853>0x1?void 0x0:_0x4a4853?ns(_0x54fae9,_0x5d4a29):_0x54fae9,_0x14c24d=_0x28f0ce[_0x2c05c2(0x3f6)]-0x1,_0x2f3cdb;_0x14c24d>=0x0;_0x14c24d--)(_0x2f3cdb=_0x28f0ce[_0x14c24d])&&(_0x491ab0=_0x2f3cdb(_0x491ab0)||_0x491ab0);return _0x491ab0;},Se=(_0x4a947c,_0x271c67)=>(_0x1f0fa9,_0x143d4e)=>_0x271c67(_0x1f0fa9,_0x143d4e,_0x4a947c);let Te=class extends a[_0x322ca1(0x2c7)]{constructor(_0x7b46e2,_0x57d2bd,_0x56161d){const _0x433dc5=_0x322ca1;super(),_(this,_0x433dc5(0x3ec),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x7b46e2,this[_0x433dc5(0x33e)]=_0x57d2bd,this[_0x433dc5(0x39a)]=_0x56161d);}['disableLocalCache'](){const _0x1b5038=_0x322ca1;this[_0x1b5038(0x40f)]=!0x0;}[_0x322ca1(0x39b)](){const _0x2c7028=_0x322ca1;this[_0x2c7028(0x40f)]=!0x1;}get[_0x322ca1(0x2e3)](){const _0x20448a=_0x322ca1;return this[_0x20448a(0x351)];}[_0x322ca1(0x290)](){const _0x5145b3=_0x322ca1;this[_0x5145b3(0x1cb)]()['then'](()=>super['dispose']());}async[_0x322ca1(0x2aa)](_0x32e660){const _0xa52316=_0x322ca1;return this['_disabled']?null:this[_0xa52316(0x33e)][_0xa52316(0x379)](u[_0xa52316(0x1ed)](_0x32e660));}async[_0x322ca1(0x3e6)](_0x331034,_0x25d93d){const _0x33912a=_0x322ca1;return!!this[_0x33912a(0x33e)]['setItem'](_0x331034,_0x25d93d);}['updateOfflineData'](_0xc61793,_0x316ec2,_0x693ef5,_0x4f0fc1){const _0x38b8a5=_0x322ca1,_0x1bcdd3=this['_revisionService'][_0x38b8a5(0x2de)](_0xc61793);this['_cachedData']['set'](_0xc61793,{'unitID':_0xc61793,'type':_0x316ec2,'awaitingChangeset':_0x693ef5,'mutations':_0x4f0fc1,'rev':_0x1bcdd3}),this[_0x38b8a5(0x351)][_0x38b8a5(0x259)](_0xc61793)||this[_0x38b8a5(0x310)](_0xc61793);}[_0x322ca1(0x310)](_0x3003ac){const _0xd3c249=_0x322ca1,_0x52c5fa=this[_0xd3c249(0x367)]();_0x52c5fa===0x0?this[_0xd3c249(0x43b)](_0x3003ac):this[_0xd3c249(0x351)][_0xd3c249(0x385)](_0x3003ac,setTimeout(()=>this['_saveCache'](_0x3003ac),_0x52c5fa));}['_getSaveTimeout'](){const _0xca67fe=_0x322ca1;var _0x2f084d;return(_0x2f084d=this[_0xca67fe(0x479)][_0xca67fe(0x47d)](u[_0xca67fe(0x271)]))!=null?_0x2f084d:u[_0xca67fe(0x3da)];}[_0x322ca1(0x43b)](_0x23c53c){const _0x18cf27=_0x322ca1,_0x594e84=this[_0x18cf27(0x351)][_0x18cf27(0x442)](_0x23c53c);return _0x594e84!==void 0x0&&window[_0x18cf27(0x41e)](_0x594e84),this[_0x18cf27(0x33e)][_0x18cf27(0x295)](u[_0x18cf27(0x1ed)](_0x23c53c),this[_0x18cf27(0x3ec)][_0x18cf27(0x442)](_0x23c53c))[_0x18cf27(0x344)](()=>this[_0x18cf27(0x351)][_0x18cf27(0x485)](_0x23c53c));}async[_0x322ca1(0x1cb)](){const _0x3cb733=_0x322ca1,_0x2934bf=[];this[_0x3cb733(0x351)][_0x3cb733(0x48e)]((_0x46e34f,_0x12098e)=>{const _0x2aa37d=_0x3cb733;window[_0x2aa37d(0x41e)](_0x46e34f),_0x2934bf[_0x2aa37d(0x47b)](this[_0x2aa37d(0x43b)](_0x12098e)[_0x2aa37d(0x344)](()=>{const _0x1df862=_0x2aa37d;this[_0x1df862(0x351)][_0x1df862(0x485)](_0x12098e);}));}),await Promise[_0x3cb733(0x435)](_0x2934bf);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0x322ca1(0x20c)]),Se(0x2,a['Inject'](g[_0x322ca1(0x473)]))],Te);class ke extends a[_0x322ca1(0x481)]{constructor(){const _0x5e21ec=_0x322ca1;super(),_(this,_0x5e21ec(0x448)),this[_0x5e21ec(0x448)]=I[_0x5e21ec(0x412)](window,_0x5e21ec(0x3e9))[_0x5e21ec(0x22a)](I[_0x5e21ec(0x309)](this[_0x5e21ec(0x2dd)]),I[_0x5e21ec(0x407)](0x1),I[_0x5e21ec(0x21c)](void 0x0));}[_0x322ca1(0x3f0)](_0x33dc84,_0x429262,_0x163d81=!0x1){const _0xf4dadd=_0x322ca1,_0x9d7bcd=new URL(window[_0xf4dadd(0x2d3)]['href']);_0x9d7bcd[_0xf4dadd(0x2a5)][_0xf4dadd(0x385)](_0x33dc84,_0x429262),_0x163d81?window[_0xf4dadd(0x449)]['replaceState']('','',_0x9d7bcd['toString']()):window[_0xf4dadd(0x449)][_0xf4dadd(0x390)]('','',_0x9d7bcd[_0xf4dadd(0x425)]());}['removeParam'](_0x3e6797,_0x57e50a=!0x1){const _0x135339=_0x322ca1,_0x4be172=new URL(window[_0x135339(0x2d3)][_0x135339(0x2a6)]);_0x4be172[_0x135339(0x2a5)][_0x135339(0x485)](_0x3e6797),_0x57e50a?window[_0x135339(0x449)][_0x135339(0x20a)]('','',_0x4be172[_0x135339(0x425)]()):window[_0x135339(0x449)][_0x135339(0x390)]('','',_0x4be172[_0x135339(0x425)]());}[_0x322ca1(0x274)](_0x1b8090){const _0x4e07b9=_0x322ca1;var _0x4b3d77;return(_0x4b3d77=new URL(window[_0x4e07b9(0x2d3)][_0x4e07b9(0x2a6)])[_0x4e07b9(0x2a5)][_0x4e07b9(0x442)](_0x1b8090))!=null?_0x4b3d77:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x322ca1(0x258)],cs=(_0x2e58be,_0x3d09a4,_0x2e69be)=>_0x3d09a4 in _0x2e58be?os(_0x2e58be,_0x3d09a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e69be}):_0x2e58be[_0x3d09a4]=_0x2e69be,ls=(_0x5b111c,_0x3c0edc,_0x229067,_0x1e0224)=>{const _0x556152=_0x322ca1;for(var _0x1698d1=_0x1e0224>0x1?void 0x0:_0x1e0224?as(_0x3c0edc,_0x229067):_0x3c0edc,_0x3a673b=_0x5b111c[_0x556152(0x3f6)]-0x1,_0x52638a;_0x3a673b>=0x0;_0x3a673b--)(_0x52638a=_0x5b111c[_0x3a673b])&&(_0x1698d1=_0x52638a(_0x1698d1)||_0x1698d1);return _0x1698d1;},de=(_0x1184db,_0x1af9aa)=>(_0x498da7,_0x16b20e)=>_0x1af9aa(_0x498da7,_0x16b20e,_0x1184db),_s=(_0x16979f,_0x5f1441,_0x514806)=>cs(_0x16979f,_0x5f1441+'',_0x514806);const hs=_0x322ca1(0x372);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x322ca1(0x2a8)]{constructor(_0x45ab4c=Me,_0x5afe81,_0x3d88e0,_0x176da7){const _0x2a7056=_0x322ca1;super(),this[_0x2a7056(0x1d9)]=_0x45ab4c,this[_0x2a7056(0x39f)]=_0x5afe81,this[_0x2a7056(0x2bc)]=_0x3d88e0,this[_0x2a7056(0x479)]=_0x176da7;const {..._0x153638}=a[_0x2a7056(0x3a7)]({},Me,this[_0x2a7056(0x1d9)]);this[_0x2a7056(0x479)][_0x2a7056(0x2da)](Yt,_0x153638);}[_0x322ca1(0x33f)](){const _0xcde408=_0x322ca1;this[_0xcde408(0x209)](),this[_0xcde408(0x43d)]();}['onRendered'](){const _0x1ac4f1=_0x322ca1;this[_0x1ac4f1(0x20d)]();}['_registerDependencies'](){const _0x21ac9e=_0x322ca1;var _0x1fb7a3;const _0x15a970=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x21ac9e(0x2df)],{'useClass':x[_0x21ac9e(0x222)]}],[u['ILocalCacheService'],{'useClass':Te}],[exports[_0x21ac9e(0x387)]],[ie],[Z],[F],[me],[exports[_0x21ac9e(0x2f7)]]];this['_config']['enableFrontendLog']&&_0x15a970[_0x21ac9e(0x47b)]([Q]),a['registerDependencies'](this[_0x21ac9e(0x2bc)],a[_0x21ac9e(0x2d6)](_0x15a970,(_0x1fb7a3=this[_0x21ac9e(0x1d9)])==null?void 0x0:_0x1fb7a3[_0x21ac9e(0x25d)]));}[_0x322ca1(0x20d)](){const _0x380268=_0x322ca1;this[_0x380268(0x2f4)](this['_renderManagerService'][_0x380268(0x426)](a['UniverInstanceType']['UNIVER_DOC'],[Ee])),this[_0x380268(0x2f4)](this[_0x380268(0x39f)][_0x380268(0x426)](a[_0x380268(0x2fa)][_0x380268(0x382)],[Ce]));}['_initDependencies'](){const _0x1cc4a7=_0x322ca1;a[_0x1cc4a7(0x3c8)](this[_0x1cc4a7(0x2bc)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x1cc4a7(0x2f7)]],[ne]]),this['_config'][_0x1cc4a7(0x221)]&&a[_0x1cc4a7(0x3c8)](this[_0x1cc4a7(0x2bc)],[[Q]]);}},_s(exports[_0x322ca1(0x2db)],_0x322ca1(0x3f2),hs),exports['UniverCollaborationClientUIPlugin']=ls([a['DependentOn'](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x322ca1(0x2d2)]),de(0x2,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),de(0x3,a[_0x322ca1(0x2a4)])],exports[_0x322ca1(0x2db)]);var us=Object[_0x322ca1(0x258)],Is=(_0x4f696a,_0x4f3905,_0x4d5f86,_0x278a59)=>{const _0xe28064=_0x322ca1;for(var _0x22cf43=_0x278a59>0x1?void 0x0:_0x278a59?us(_0x4f3905,_0x4d5f86):_0x4f3905,_0xd20124=_0x4f696a[_0xe28064(0x3f6)]-0x1,_0x246308;_0xd20124>=0x0;_0xd20124--)(_0x246308=_0x4f696a[_0xd20124])&&(_0x22cf43=_0x246308(_0x22cf43)||_0x22cf43);return _0x22cf43;},W=(_0x55c2d7,_0x15ba2f)=>(_0x46d500,_0xd485b2)=>_0x15ba2f(_0x46d500,_0xd485b2,_0x55c2d7);exports['BrowserCollaborationSocketService']=class extends u[_0x322ca1(0x312)]{constructor(_0x121fa0,_0xedb66f,_0x2e8b32,_0x2fc359,_0x3c122b){super(_0x121fa0,_0xedb66f,_0x2e8b32,_0x2fc359,_0x3c122b);}async[_0x322ca1(0x316)](_0x52629a){const _0x888cd5=_0x322ca1,_0x2b1002=await this[_0x888cd5(0x331)](),_0x366bbc=this['_createSocketURL'](_0x52629a,_0x2b1002);return this[_0x888cd5(0x47c)](_0x366bbc);}[_0x322ca1(0x41b)](_0x872144,_0x2f2118){const _0x2a0511=_0x322ca1,_0x3b61df=typeof window>'u'?new URL(_0x872144):new URL(_0x872144,window['location'][_0x2a0511(0x227)]);_0x3b61df[_0x2a0511(0x2a5)][_0x2a0511(0x385)](_0x2a0511(0x22e),_0x2f2118);const _0x15986c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2a0511(0x2d3)][_0x2a0511(0x374)]);return _0x15986c[_0x2a0511(0x442)](_0x2a0511(0x31c))&&_0x3b61df['searchParams'][_0x2a0511(0x385)](_0x2a0511(0x31c),_0x15986c[_0x2a0511(0x442)](_0x2a0511(0x31c))),_0x3b61df[_0x2a0511(0x425)]();}async[_0x322ca1(0x331)](){const _0x3f0d3c=_0x322ca1;var _0xd35ec5,_0x153524,_0x23b16f;const _0x2c2fc1=this[_0x3f0d3c(0x479)][_0x3f0d3c(0x47d)](u[_0x3f0d3c(0x37f)]),_0x562edb=(_0xd35ec5=_0x2c2fc1==null?void 0x0:_0x2c2fc1['wsSessionTicketUrl'])!=null?_0xd35ec5:u[_0x3f0d3c(0x3c7)];return(_0x23b16f=(_0x153524=(await this[_0x3f0d3c(0x3f1)][_0x3f0d3c(0x442)](_0x562edb,{'headers':{'Content-Type':_0x3f0d3c(0x305)}}))[_0x3f0d3c(0x46c)])==null?void 0x0:_0x153524['ticket'])!=null?_0x23b16f:'';}},exports[_0x322ca1(0x228)]=Is([W(0x0,a[_0x322ca1(0x254)](a[_0x322ca1(0x245)])),W(0x1,a[_0x322ca1(0x254)](x[_0x322ca1(0x43f)])),W(0x2,a[_0x322ca1(0x2a4)]),W(0x3,a[_0x322ca1(0x1df)]),W(0x4,g[_0x322ca1(0x39d)])],exports[_0x322ca1(0x228)]);var Ss=Object[_0x322ca1(0x258)],ds=(_0x49d239,_0x527c28,_0x5a5d21,_0x37b850)=>{const _0x13abed=_0x322ca1;for(var _0x35b9ab=_0x37b850>0x1?void 0x0:_0x37b850?Ss(_0x527c28,_0x5a5d21):_0x527c28,_0x4ce4ed=_0x49d239[_0x13abed(0x3f6)]-0x1,_0x1d6ef3;_0x4ce4ed>=0x0;_0x4ce4ed--)(_0x1d6ef3=_0x49d239[_0x4ce4ed])&&(_0x35b9ab=_0x1d6ef3(_0x35b9ab)||_0x35b9ab);return _0x35b9ab;},fe=(_0x537d5a,_0x1a9028)=>(_0x3eb0cd,_0x38850e)=>_0x1a9028(_0x3eb0cd,_0x38850e,_0x537d5a);exports[_0x322ca1(0x34b)]=class extends a[_0x322ca1(0x2c7)]{constructor(_0x345413,_0xb29ae7,_0x5c9617){const _0x364291=_0x322ca1;super(),this[_0x364291(0x2d7)]=_0x345413,this[_0x364291(0x3f1)]=_0xb29ae7,this[_0x364291(0x479)]=_0x5c9617;}async[_0x322ca1(0x2ed)](_0x14f672,_0x569015,_0x58aabd,..._0x2873e0){const _0x4ebeeb=_0x322ca1;var _0x409606,_0x49797d,_0x4ca7ae,_0x18713e;const _0x407bf7=this[_0x4ebeeb(0x2d7)][_0x4ebeeb(0x3bf)]();if(!_0x407bf7)throw new Error(_0x4ebeeb(0x34f));const _0x2331fb=((_0x409606=this['_configService'][_0x4ebeeb(0x47d)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x409606:u[_0x4ebeeb(0x21a)])+'/'+_0x14f672+_0x4ebeeb(0x29c)+_0x569015,_0x184ce2=new URL(window['location'][_0x4ebeeb(0x2a6)]),_0x20d6cc={'scriptId':_0x14f672,'runId':(_0x49797d=_0x184ce2[_0x4ebeeb(0x2a5)][_0x4ebeeb(0x442)]('runId'))!=null?_0x49797d:'','function':_0x569015,'unitId':_0x407bf7[_0x4ebeeb(0x429)](),'argsOfFunction':JSON[_0x4ebeeb(0x27b)](_0x2873e0),'invokeId':(_0x4ca7ae=_0x58aabd[_0x4ebeeb(0x45d)])!=null?_0x4ca7ae:'','executionId':(_0x18713e=_0x58aabd[_0x4ebeeb(0x1d7)])!=null?_0x18713e:''};try{const _0x3f1a33=await this[_0x4ebeeb(0x3f1)][_0x4ebeeb(0x275)](_0x2331fb,{'body':_0x20d6cc});return _0x3f1a33[_0x4ebeeb(0x46c)]['error']&&_0x3f1a33[_0x4ebeeb(0x46c)][_0x4ebeeb(0x430)][_0x4ebeeb(0x463)]!==G['OK']?'Failed':_0x3f1a33['body'][_0x4ebeeb(0x30d)];}catch{return _0x4ebeeb(0x2c8);}}},exports[_0x322ca1(0x34b)]=ds([fe(0x0,a[_0x322ca1(0x215)]),fe(0x1,a[_0x322ca1(0x254)](x[_0x322ca1(0x43f)])),fe(0x2,a[_0x322ca1(0x2a4)])],exports[_0x322ca1(0x34b)]);const we=0x7530,ye=_0x322ca1(0x3d4);class fs extends a[_0x322ca1(0x2c7)]{constructor(){const _0x5e6116=_0x322ca1;super(),_(this,_0x5e6116(0x1fa),a['generateRandomId']()),_(this,_0x5e6116(0x2a3),new Set()),_(this,_0x5e6116(0x3e0),new Map()),_(this,_0x5e6116(0x21e),null),_(this,_0x5e6116(0x1c7),new Map()),_(this,_0x5e6116(0x324),new Map()),this['_init']();}[_0x322ca1(0x290)](){const _0x130e08=_0x322ca1;super[_0x130e08(0x290)](),this[_0x130e08(0x1c7)][_0x130e08(0x48e)]((_0x369c19,_0x3862c2)=>this[_0x130e08(0x432)](_0x3862c2)),this[_0x130e08(0x21e)]&&window['clearInterval'](this[_0x130e08(0x21e)]);}[_0x322ca1(0x23d)](_0xa47a09){const _0x2022da=_0x322ca1;return this[_0x2022da(0x207)](_0xa47a09)['pipe'](I['distinctUntilChanged']());}[_0x322ca1(0x48a)](_0x4effa8){const _0xbd90d4=_0x322ca1;this[_0xbd90d4(0x2a3)][_0xbd90d4(0x2b8)]===0x0&&this['_scheduleHeartbeat'](),this[_0xbd90d4(0x2a3)][_0xbd90d4(0x269)](_0x4effa8),this[_0xbd90d4(0x286)]({'type':0x0,'memberID':this[_0xbd90d4(0x1fa)],'unitIDs':[_0x4effa8],'isForwarded':!0x1});}[_0x322ca1(0x3b3)](_0xefb4ec){const _0x46c6dd=_0x322ca1;this['_selfUnitIDs']['delete'](_0xefb4ec),this[_0x46c6dd(0x2a3)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x46c6dd(0x21e)]);}[_0x322ca1(0x1c5)](){const _0x218905=_0x322ca1;this[_0x218905(0x2f4)](a[_0x218905(0x1db)](I[_0x218905(0x412)](window,_0x218905(0x2c0))[_0x218905(0x375)](_0x19147a=>{const _0x17aeb3=_0x218905;if(_0x19147a[_0x17aeb3(0x35c)]!==ye||!_0x19147a[_0x17aeb3(0x1fb)])return;const _0x2222c0=JSON['parse'](_0x19147a['newValue']);this[_0x17aeb3(0x456)](_0x2222c0);}))),window[_0x218905(0x260)](_0x218905(0x468),()=>this[_0x218905(0x286)]({'type':0x1,'memberID':this[_0x218905(0x1fa)],'unitIDs':Array[_0x218905(0x3ef)](this[_0x218905(0x2a3)])}));}[_0x322ca1(0x456)](_0x440520){const _0x1ce112=_0x322ca1;switch(_0x440520[_0x1ce112(0x384)]){case 0x0:this[_0x1ce112(0x31f)](_0x440520);break;case 0x1:this[_0x1ce112(0x29b)](_0x440520);break;case 0x2:this[_0x1ce112(0x491)](_0x440520);break;}}[_0x322ca1(0x31f)](_0x2f4e4d){const _0xe9f212=_0x322ca1,{unitIDs:_0x51ab91,memberID:_0x277f49,isForwarded:_0x1836f6}=_0x2f4e4d;_0x51ab91['forEach'](_0x23d288=>{const _0x4d8571=_0xd0d7;if(!_0x1836f6&&this[_0x4d8571(0x3e0)][_0x4d8571(0x259)](_0x23d288)&&this[_0x4d8571(0x207)](_0x23d288)[_0x4d8571(0x2b3)](u[_0x4d8571(0x3a8)][_0x4d8571(0x2c1)]),!this[_0x4d8571(0x3e0)][_0x4d8571(0x259)](_0x23d288)||!this[_0x4d8571(0x3e0)]['get'](_0x23d288)['has'](_0x277f49)){const _0x30699f=this[_0x4d8571(0x3e0)][_0x4d8571(0x442)](_0x23d288)||new Set();_0x30699f[_0x4d8571(0x269)](_0x277f49),this[_0x4d8571(0x3e0)]['set'](_0x23d288,_0x30699f),this['_scheduleClearOtherTimer'](_0x277f49);}}),_0x1836f6||this[_0xe9f212(0x286)]({'type':0x0,'memberID':this[_0xe9f212(0x1fa)],'unitIDs':[...this[_0xe9f212(0x2a3)]],'isForwarded':!0x0});}[_0x322ca1(0x3cd)](_0x547efe){const _0x1867c1=_0x322ca1;this[_0x1867c1(0x432)](_0x547efe);const _0x5e8aea=window[_0x1867c1(0x30b)](()=>{const _0x52e71c=_0x1867c1;this[_0x52e71c(0x3e0)]['forEach'](_0x20c33f=>{_0x20c33f['delete'](_0x547efe);});},we*0x2);this[_0x1867c1(0x1c7)][_0x1867c1(0x385)](_0x547efe,_0x5e8aea);}[_0x322ca1(0x432)](_0x1b0ad2){const _0x8c056c=_0x322ca1;if(this[_0x8c056c(0x1c7)]['has'](_0x1b0ad2)){const _0x1d672c=this[_0x8c056c(0x1c7)][_0x8c056c(0x442)](_0x1b0ad2);_0x1d672c&&window[_0x8c056c(0x41e)](_0x1d672c),this[_0x8c056c(0x1c7)][_0x8c056c(0x385)](_0x1b0ad2,null);}}['_handleLeaveEvent'](_0x418db7){const _0x414290=_0x322ca1,{memberID:_0x259274,unitIDs:_0x1be53b}=_0x418db7;_0x1be53b['forEach'](_0x13fd46=>{const _0x4fe410=_0xd0d7;var _0x227ba5;const _0x42b964=this[_0x4fe410(0x3e0)]['get'](_0x13fd46);_0x42b964&&(_0x42b964[_0x4fe410(0x485)](_0x259274),(_0x227ba5=this[_0x4fe410(0x207)](_0x13fd46))==null||_0x227ba5[_0x4fe410(0x2b3)](_0x42b964[_0x4fe410(0x2b8)]===0x0?u[_0x4fe410(0x3a8)][_0x4fe410(0x21d)]:u[_0x4fe410(0x3a8)]['OTHER_CLIENTS_EDITING']));}),this[_0x414290(0x432)](_0x259274);}['_handleHeartbeatEvent'](_0x487163){const _0x3607f1=_0x322ca1;this['_scheduleClearOtherTimer'](_0x487163[_0x3607f1(0x36b)]);}[_0x322ca1(0x286)](_0x5ec141){const _0x5e9732=_0x322ca1;localStorage[_0x5e9732(0x295)](ye,JSON[_0x5e9732(0x27b)](_0x5ec141));}[_0x322ca1(0x2f5)](){const _0x2c5b0d=_0x322ca1;this[_0x2c5b0d(0x21e)]=window[_0x2c5b0d(0x208)](()=>{const _0x3d51b7=_0x2c5b0d;this['_send']({'type':0x2,'memberID':this[_0x3d51b7(0x1fa)]});},we);}[_0x322ca1(0x207)](_0x5e2149){const _0x4691bb=_0x322ca1;return this[_0x4691bb(0x324)][_0x4691bb(0x259)](_0x5e2149)||this[_0x4691bb(0x324)][_0x4691bb(0x385)](_0x5e2149,new I['BehaviorSubject'](u[_0x4691bb(0x3a8)][_0x4691bb(0x21d)])),this[_0x4691bb(0x324)]['get'](_0x5e2149);}}exports[_0x322ca1(0x241)]=Oe,exports['SheetCollabCursorShape']=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x322ca1(0x2b7)]=ke;