@univerjs-pro/collaboration-client-ui 0.10.14 → 0.11.0-nightly.202511151013

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 (54) 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 -0
  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 -0
  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 -0
  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/types/locale/ja-JP.d.ts +3 -0
  41. package/lib/umd/facade.js +1 -1
  42. package/lib/umd/index.js +1 -1
  43. package/lib/umd/locale/ca-ES.js +1 -1
  44. package/lib/umd/locale/en-US.js +1 -1
  45. package/lib/umd/locale/es-ES.js +1 -1
  46. package/lib/umd/locale/fa-IR.js +1 -1
  47. package/lib/umd/locale/fr-FR.js +1 -1
  48. package/lib/umd/locale/ja-JP.js +1 -0
  49. package/lib/umd/locale/ko-KR.js +1 -1
  50. package/lib/umd/locale/ru-RU.js +1 -1
  51. package/lib/umd/locale/vi-VN.js +1 -1
  52. package/lib/umd/locale/zh-CN.js +1 -1
  53. package/lib/umd/locale/zh-TW.js +1 -1
  54. package/package.json +17 -17
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x56cc55=_0x5cb8;(function(_0x1f753d,_0x3fe2f5){const _0x5e4edf=_0x5cb8,_0x53b6c2=_0x1f753d();while(!![]){try{const _0x149857=-parseInt(_0x5e4edf(0x1af))/0x1+-parseInt(_0x5e4edf(0x2dc))/0x2*(-parseInt(_0x5e4edf(0x2c8))/0x3)+-parseInt(_0x5e4edf(0x331))/0x4*(parseInt(_0x5e4edf(0x2af))/0x5)+parseInt(_0x5e4edf(0x377))/0x6+-parseInt(_0x5e4edf(0x11c))/0x7*(parseInt(_0x5e4edf(0x154))/0x8)+parseInt(_0x5e4edf(0x25c))/0x9*(parseInt(_0x5e4edf(0x183))/0xa)+parseInt(_0x5e4edf(0x114))/0xb*(-parseInt(_0x5e4edf(0x2e7))/0xc);if(_0x149857===_0x3fe2f5)break;else _0x53b6c2['push'](_0x53b6c2['shift']());}catch(_0x55e92b){_0x53b6c2['push'](_0x53b6c2['shift']());}}}(_0x2fa8,0x495ab));var Ve=Object['defineProperty'],Ge=(_0x16a59b,_0x46e14d,_0x2ed8ef)=>_0x46e14d in _0x16a59b?Ve(_0x16a59b,_0x46e14d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ed8ef}):_0x16a59b[_0x46e14d]=_0x2ed8ef,_=(_0x39a9b7,_0x1289a1,_0x5604cf)=>Ge(_0x39a9b7,typeof _0x1289a1!=_0x56cc55(0x27f)?_0x1289a1+'':_0x1289a1,_0x5604cf);Object['defineProperty'](exports,Symbol[_0x56cc55(0x34c)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),p=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x567ee1,..._0x24bf7b}){const _0x3faecc=_0x56cc55,{icon:_0x2105e8,id:_0x335f17,className:_0x3c9760,extend:_0x3a28e7,..._0x209fa6}=_0x24bf7b,_0x10c334=(_0x3faecc(0xf9)+_0x335f17+'\x20'+(_0x3c9760||''))[_0x3faecc(0x26a)](),_0xcb930e=A[_0x3faecc(0x2c1)]('_'+Je());return we(_0x2105e8,''+_0x335f17,{'defIds':_0x2105e8[_0x3faecc(0x266)],'idSuffix':_0xcb930e[_0x3faecc(0x2ac)]},{'ref':_0x567ee1,'className':_0x10c334,..._0x209fa6},_0x3a28e7);}function we(_0x2133d8,_0x1e659f,_0x1de5e0,_0x5de397,_0x4f4165){const _0x349b6a=_0x56cc55;return A[_0x349b6a(0x1c5)](_0x2133d8['tag'],{'key':_0x1e659f,...qe(_0x2133d8,_0x1de5e0,_0x4f4165),..._0x5de397},(ze(_0x2133d8,_0x1de5e0)[_0x349b6a(0x1ba)]||[])[_0x349b6a(0x195)]((_0x314fe0,_0x2c681f)=>we(_0x314fe0,_0x1e659f+'-'+_0x2133d8[_0x349b6a(0x11b)]+'-'+_0x2c681f,_0x1de5e0,void 0x0,_0x4f4165)));}function qe(_0x4afad1,_0xbf5959,_0x56b956){const _0x4bb9b3=_0x56cc55,_0x41c822={..._0x4afad1[_0x4bb9b3(0x33e)]};_0x56b956!=null&&_0x56b956[_0x4bb9b3(0x129)]&&_0x41c822['fill']===_0x4bb9b3(0x129)&&(_0x41c822[_0x4bb9b3(0x180)]=_0x56b956[_0x4bb9b3(0x129)]),_0x4afad1[_0x4bb9b3(0x11b)]===_0x4bb9b3(0x36f)&&_0x41c822['id']&&(_0x41c822['id']=_0x41c822['id']+_0xbf5959[_0x4bb9b3(0x208)]),Object['entries'](_0x41c822)['forEach'](([_0x53b3f7,_0x2fbc31])=>{const _0x51e23b=_0x4bb9b3;_0x53b3f7===_0x51e23b(0x36f)&&typeof _0x2fbc31==_0x51e23b(0x188)&&(_0x41c822[_0x53b3f7]=_0x2fbc31[_0x51e23b(0x240)](/url\(#(.*)\)/,_0x51e23b(0x1ac)+_0xbf5959[_0x51e23b(0x208)]+')'));});const {defIds:_0x45c94b}=_0xbf5959;return!_0x45c94b||_0x45c94b[_0x4bb9b3(0x38a)]===0x0||(_0x4afad1[_0x4bb9b3(0x11b)]===_0x4bb9b3(0x2c2)&&_0x41c822[_0x4bb9b3(0x19b)]&&(_0x41c822['xlink:href']=_0x41c822[_0x4bb9b3(0x19b)]+_0xbf5959[_0x4bb9b3(0x208)]),Object[_0x4bb9b3(0x2ad)](_0x41c822)[_0x4bb9b3(0x306)](([_0x36c921,_0x891988])=>{const _0x94abb2=_0x4bb9b3;typeof _0x891988==_0x94abb2(0x188)&&(_0x41c822[_0x36c921]=_0x891988[_0x94abb2(0x240)](/url\(#(.*)\)/,_0x94abb2(0x1ac)+_0xbf5959[_0x94abb2(0x208)]+')'));})),_0x41c822;}function ze(_0x5651fd,_0x56f7dc){const _0x55d2bf=_0x56cc55;var _0x164467;const {defIds:_0xba01a3}=_0x56f7dc;return!_0xba01a3||_0xba01a3[_0x55d2bf(0x38a)]===0x0?_0x5651fd:_0x5651fd[_0x55d2bf(0x11b)]===_0x55d2bf(0x2c3)&&((_0x164467=_0x5651fd[_0x55d2bf(0x1ba)])!=null&&_0x164467[_0x55d2bf(0x38a)])?{..._0x5651fd,'children':_0x5651fd['children']['map'](_0x4ebee4=>typeof _0x4ebee4['attrs']['id']==_0x55d2bf(0x188)&&_0xba01a3&&_0xba01a3[_0x55d2bf(0xfe)](_0x4ebee4[_0x55d2bf(0x33e)]['id'])?{..._0x4ebee4,'attrs':{..._0x4ebee4['attrs'],'id':_0x4ebee4[_0x55d2bf(0x33e)]['id']+_0x56f7dc[_0x55d2bf(0x208)]}}:_0x4ebee4)}:_0x5651fd;}function Je(){const _0x301ca5=_0x56cc55;return Math[_0x301ca5(0x231)]()[_0x301ca5(0x175)](0x24)[_0x301ca5(0x1a5)](0x2,0x8);}Ce[_0x56cc55(0x26b)]=_0x56cc55(0x38d);const Ze={'tag':_0x56cc55(0x2fa),'attrs':{'xmlns':_0x56cc55(0x376),'fill':_0x56cc55(0x2b3),'viewBox':'0\x200\x2016\x2016','width':_0x56cc55(0x123),'height':_0x56cc55(0x123)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x56cc55(0xe5),'d':_0x56cc55(0x1d7),'strokeLinecap':_0x56cc55(0x25e),'strokeLinejoin':_0x56cc55(0x25e),'strokeWidth':1.2}}]},{'tag':_0x56cc55(0x2c3),'attrs':{},'children':[{'tag':_0x56cc55(0x1d6),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x56cc55(0x10f)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=A[_0x56cc55(0x13e)](function(_0x3baac3,_0x2dd8d2){const _0x2f58fc=_0x56cc55;return A[_0x2f58fc(0x1c5)](Ce,Object[_0x2f58fc(0x15f)]({},_0x3baac3,{'id':_0x2f58fc(0x151),'ref':_0x2dd8d2,'icon':Ze}));});ye[_0x56cc55(0x26b)]=_0x56cc55(0x256);const Qe={'tag':_0x56cc55(0x2fa),'attrs':{'xmlns':_0x56cc55(0x376),'fill':'none','viewBox':_0x56cc55(0x33b),'width':_0x56cc55(0x123),'height':_0x56cc55(0x123)},'children':[{'tag':'g','attrs':{'clipPath':_0x56cc55(0x22b)},'children':[{'tag':_0x56cc55(0x31b),'attrs':{'stroke':_0x56cc55(0xe5),'d':_0x56cc55(0x1dc),'strokeLinecap':_0x56cc55(0x25e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x56cc55(0x2c3),'attrs':{},'children':[{'tag':_0x56cc55(0x1d6),'attrs':{'id':_0x56cc55(0x220)},'children':[{'tag':_0x56cc55(0x31b),'attrs':{'fill':_0x56cc55(0x179),'d':'M0\x200H16V16H0z','transform':_0x56cc55(0x1fe)}}]}]}],'defIds':[_0x56cc55(0x220)]},$e=A[_0x56cc55(0x13e)](function(_0x3faf9e,_0x2b5d11){const _0x4d3572=_0x56cc55;return A[_0x4d3572(0x1c5)](Ce,Object[_0x4d3572(0x15f)]({},_0x3faf9e,{'id':'on-line-icon','ref':_0x2b5d11,'icon':Qe}));});$e['displayName']=_0x56cc55(0x105);function _0x5cb8(_0x1dd51b,_0x59611f){const _0x2fa816=_0x2fa8();return _0x5cb8=function(_0x5cb81c,_0x36ff81){_0x5cb81c=_0x5cb81c-0xd2;let _0x2ff82a=_0x2fa816[_0x5cb81c];return _0x2ff82a;},_0x5cb8(_0x1dd51b,_0x59611f);}function et(_0x2d63ad){const _0x33d064=_0x56cc55;switch(_0x2d63ad){case u[_0x33d064(0x2ef)][_0x33d064(0x29d)]:return _0x33d064(0x14e);case u[_0x33d064(0x2ef)][_0x33d064(0x2b8)]:return _0x33d064(0x1c1);case u['CollaborationStatus'][_0x33d064(0x19f)]:return _0x33d064(0x23d);case u[_0x33d064(0x2ef)][_0x33d064(0x2ff)]:return _0x33d064(0xe2);case u[_0x33d064(0x2ef)][_0x33d064(0x336)]:case u[_0x33d064(0x2ef)][_0x33d064(0x275)]:return _0x33d064(0x362);case u[_0x33d064(0x2ef)][_0x33d064(0xef)]:case u['CollaborationStatus'][_0x33d064(0x176)]:return _0x33d064(0x159);}}function tt(_0x1ca1fa){const _0x54e4e4=_0x56cc55,{status$:_0x52b60a}=_0x1ca1fa,_0x2a8112=O[_0x54e4e4(0x141)](_0x52b60a,u['CollaborationStatus'][_0x54e4e4(0x2ff)]),_0x4e2b09=O[_0x54e4e4(0x143)](a[_0x54e4e4(0x1f2)]),_0x458cae=O['useDependency'](u['CollaborationSessionService']),_0x288deb=_0x2a8112!==u[_0x54e4e4(0x2ef)][_0x54e4e4(0x29d)],_0x2a79fa=_0x4e2b09['t'](et(_0x2a8112)),_0x1c97fa=_0x288deb?M[_0x54e4e4(0x134)]($e,{}):M[_0x54e4e4(0x134)](ye,{}),_0x398ca5=A[_0x54e4e4(0x1df)](()=>{_0x288deb||_0x458cae['reconnect']();},[_0x288deb,_0x458cae]);function _0x4e05a9(){const _0x1bf20e=_0x54e4e4;return M['jsxs'](_0x1bf20e(0x160),{'className':_0x1bf20e(0x34a),'onClick':_0x398ca5,'children':[M[_0x1bf20e(0x134)](_0x1bf20e(0x160),{'className':T['clsx'](_0x1bf20e(0x27e),{'univer-text-green-500':_0x288deb,'univer-text-red-500':!_0x288deb}),'children':_0x1c97fa}),M[_0x1bf20e(0x134)](_0x1bf20e(0x160),{'className':_0x1bf20e(0x37b),'children':_0x2a79fa})]});}return _0x288deb?_0x4e05a9():M[_0x54e4e4(0x134)](T[_0x54e4e4(0x29e)],{'title':_0x4e2b09['t'](_0x54e4e4(0x109)),'children':_0x4e05a9()});}var st=Object['getOwnPropertyDescriptor'],it=(_0x2301bc,_0x3f46b6,_0x5eda45,_0x13af4f)=>{const _0x1085d1=_0x56cc55;for(var _0x3728aa=_0x13af4f>0x1?void 0x0:_0x13af4f?st(_0x3f46b6,_0x5eda45):_0x3f46b6,_0x518302=_0x2301bc[_0x1085d1(0x38a)]-0x1,_0x2c1327;_0x518302>=0x0;_0x518302--)(_0x2c1327=_0x2301bc[_0x518302])&&(_0x3728aa=_0x2c1327(_0x3728aa)||_0x3728aa);return _0x3728aa;},K=(_0x3b860f,_0x28bb32)=>(_0x4a9a81,_0x14130e)=>_0x28bb32(_0x4a9a81,_0x14130e,_0x3b860f);exports[_0x56cc55(0x2fd)]=class extends a[_0x56cc55(0x30f)]{constructor(_0x2982e0,_0x3ab163,_0x57c1a3,_0x2b9d04){const _0x3f3896=_0x56cc55;super(),_(this,_0x3f3896(0x1ce),new I[(_0x3f3896(0x1b2))](u[_0x3f3896(0x2ef)][_0x3f3896(0x2ff)])),(this[_0x3f3896(0x389)]=_0x2982e0,this[_0x3f3896(0x18a)]=_0x3ab163,this[_0x3f3896(0x2fb)]=_0x57c1a3,this[_0x3f3896(0x305)]=_0x2b9d04,this[_0x3f3896(0x1ec)](),this['_initStatusListener']());}[_0x56cc55(0x117)](){const _0x1ccad9=_0x56cc55;this['disposeWithMe'](this['_univerInstanceService']['focused$']['pipe'](I[_0x1ccad9(0x261)](()=>{const _0x732b48=_0x1ccad9,_0x3e8e0d=this[_0x732b48(0x389)][_0x732b48(0x116)]();return _0x3e8e0d?this[_0x732b48(0x2fb)]['getCollabEntity$'](_0x3e8e0d['getUnitId']()):I['of'](null);}),I[_0x1ccad9(0x261)](_0x41d870=>_0x41d870?_0x41d870[_0x1ccad9(0x270)]:I['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x1ccad9(0xdc)](_0x56f4f4=>{const _0x5d6a7e=_0x1ccad9;this[_0x5d6a7e(0x1ce)]['next'](_0x56f4f4);}));}[_0x56cc55(0x1ec)](){const _0x2bb917=_0x56cc55;this['disposeWithMe'](this[_0x2bb917(0x305)][_0x2bb917(0x174)](O['BuiltInUIPart'][_0x2bb917(0x36c)],()=>O['connectInjector'](nt({'status$':this[_0x2bb917(0x1ce)][_0x2bb917(0x2a2)]()}),this['_injector'])));}},exports[_0x56cc55(0x2fd)]=it([K(0x0,a[_0x56cc55(0x211)]),K(0x1,a[_0x56cc55(0x32f)](a['Injector'])),K(0x2,a[_0x56cc55(0x32f)](u[_0x56cc55(0x198)])),K(0x3,O[_0x56cc55(0x269)])],exports[_0x56cc55(0x2fd)]);function nt(_0x2458db){const {status$:_0xe4eda8}=_0x2458db;return function(){return M['jsx'](tt,{'status$':_0xe4eda8});};}const pe=a[_0x56cc55(0x229)](_0x56cc55(0x247));var rt=Object['getOwnPropertyDescriptor'],ot=(_0x957279,_0x3068d8,_0x546018,_0xa99a3d)=>{const _0x26e2d4=_0x56cc55;for(var _0x2d2a33=_0xa99a3d>0x1?void 0x0:_0xa99a3d?rt(_0x3068d8,_0x546018):_0x3068d8,_0x5f28ca=_0x957279[_0x26e2d4(0x38a)]-0x1,_0x16d969;_0x5f28ca>=0x0;_0x5f28ca--)(_0x16d969=_0x957279[_0x5f28ca])&&(_0x2d2a33=_0x16d969(_0x2d2a33)||_0x2d2a33);return _0x2d2a33;},j=(_0x146338,_0x30c71b)=>(_0x180282,_0x580dd1)=>_0x30c71b(_0x180282,_0x580dd1,_0x146338);exports[_0x56cc55(0x12d)]=class extends a[_0x56cc55(0x19c)]{constructor(_0x27ce7e,_0x2b3645,_0x275d2c,_0x59403e,_0x223c8e){const _0x6a678=_0x56cc55;super(),this[_0x6a678(0xfa)]=_0x27ce7e,this[_0x6a678(0x36e)]=_0x2b3645,this[_0x6a678(0x226)]=_0x275d2c,this[_0x6a678(0x25d)]=_0x59403e,_0x223c8e?_0x223c8e==null||_0x223c8e[_0x6a678(0x350)]()['then'](()=>this['_init']()):(this[_0x6a678(0x36e)][_0x6a678(0x1dd)](_0x6a678(0x1b8),_0x6a678(0x283)),this[_0x6a678(0x10e)]());}async[_0x56cc55(0x10e)](){const _0x41484d=_0x56cc55,_0x31c1d4=this[_0x41484d(0xfa)][_0x41484d(0x259)](_0x41484d(0x2d7)),_0x1ebd26=this['_urlService'][_0x41484d(0x259)](_0x41484d(0x106)),_0x180795=this['_urlService'][_0x41484d(0x259)](_0x41484d(0x1fc));if(!_0x31c1d4||!_0x1ebd26){this[_0x41484d(0x36e)]['debug']('[CollaborationDataLoaderController]',_0x41484d(0x10c));return;}const _0x576952=await this[_0x41484d(0x25d)]['loadUnit'](_0x31c1d4,Number(_0x1ebd26),_0x180795);_0x576952&&_0x576952 instanceof a[_0x41484d(0x241)]&&this[_0x41484d(0xff)](_0x576952);}async[_0x56cc55(0xff)](_0x3391cb){const _0x555263=_0x56cc55;await this[_0x555263(0x32a)](_0x3391cb),_0x3391cb[_0x555263(0x29a)]['pipe'](I[_0x555263(0x2b9)](this[_0x555263(0x390)]))['subscribe'](_0x205091=>{_0x205091&&this['_updateURLWithCurrentState'](_0x205091);}),this[_0x555263(0xfa)][_0x555263(0x112)][_0x555263(0x1ad)](I[_0x555263(0x2b9)](this['dispose$']))[_0x555263(0xdc)](()=>this[_0x555263(0x32a)](_0x3391cb));}['_updateURLWithCurrentState'](_0x220132,_0x463c37=!0x1){const _0x11f75f=_0x56cc55,_0x35e2ff=this[_0x11f75f(0xfa)][_0x11f75f(0x259)](_0x11f75f(0x1fc));_0x220132['getSheetId']()!==_0x35e2ff&&this[_0x11f75f(0xfa)][_0x11f75f(0x1b6)]('subunit',_0x220132[_0x11f75f(0x343)](),_0x463c37);}async[_0x56cc55(0x32a)](_0x404b10){const _0x4e2209=_0x56cc55;var _0x288a52;const _0x84031=this['_urlService'][_0x4e2209(0x259)](_0x4e2209(0x1fc));if(!_0x84031||!_0x404b10[_0x4e2209(0x17c)](_0x84031)){const _0x33b7d1=_0x404b10[_0x4e2209(0x353)]()[0x0],_0x2f8282=_0x404b10[_0x4e2209(0x17c)](_0x33b7d1);if(!_0x2f8282)return;this[_0x4e2209(0x1d5)](_0x2f8282,!0x0),await this[_0x4e2209(0x226)]['executeCommand'](g[_0x4e2209(0x232)]['id'],{'unitId':_0x404b10[_0x4e2209(0x28b)](),'subUnitId':_0x33b7d1});return;}((_0x288a52=_0x404b10[_0x4e2209(0x2c7)]())==null?void 0x0:_0x288a52[_0x4e2209(0x343)]())!==_0x84031&&await this[_0x4e2209(0x226)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x404b10['getUnitId'](),'subUnitId':_0x84031});}},exports[_0x56cc55(0x12d)]=ot([j(0x0,pe),j(0x1,a['ILogService']),j(0x2,a[_0x56cc55(0x1d2)]),j(0x3,a[_0x56cc55(0x32f)](u[_0x56cc55(0x244)])),j(0x4,a[_0x56cc55(0x2e9)](Xe[_0x56cc55(0x291)]))],exports['CollaborationDataLoaderController']);var at=Object['getOwnPropertyDescriptor'],ct=(_0x3e81f0,_0x1e9ae1,_0x37bc0b,_0x52ff77)=>{const _0x40fd3c=_0x56cc55;for(var _0x2261e9=_0x52ff77>0x1?void 0x0:_0x52ff77?at(_0x1e9ae1,_0x37bc0b):_0x1e9ae1,_0x303e64=_0x3e81f0[_0x40fd3c(0x38a)]-0x1,_0x1ccc0f;_0x303e64>=0x0;_0x303e64--)(_0x1ccc0f=_0x3e81f0[_0x303e64])&&(_0x2261e9=_0x1ccc0f(_0x2261e9)||_0x2261e9);return _0x2261e9;},Re=(_0x39683d,_0x48b76c)=>(_0x4eb4d2,_0x521df8)=>_0x48b76c(_0x4eb4d2,_0x521df8,_0x39683d);let de=class extends a['RxDisposable']{constructor(_0x344b6f,_0x1bb258){const _0x30f0cf=_0x56cc55;super(),this[_0x30f0cf(0x126)]=_0x344b6f,this[_0x30f0cf(0x152)]=_0x1bb258,this[_0x30f0cf(0x10e)]();}['_init'](){const _0x1ada62=_0x56cc55,_0xe3460a=this;this[_0x1ada62(0x303)](this[_0x1ada62(0x126)][_0x1ada62(0x17a)]({'onBeforePasteImage':async _0x31cef4=>{const _0x285707=_0x1ada62,_0x237d99=await _0xe3460a[_0x285707(0x152)]['saveImage'](_0x31cef4);return _0x237d99?{'source':_0x237d99['source'],'imageSourceType':_0x237d99[_0x285707(0x260)]}:null;}}));}};de=ct([Re(0x0,p[_0x56cc55(0x280)]),Re(0x1,Ke['IImageIoService'])],de);const be=[_0x56cc55(0x37e),'jiqing.500',_0x56cc55(0x124),_0x56cc55(0x127),_0x56cc55(0x1b7),_0x56cc55(0x2f6)];class Te extends a[_0x56cc55(0x30f)]{constructor(){const _0x26641a=_0x56cc55;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x26641a(0x21a),0x0);}['assignAColorForMemberID'](_0x43d8a6){const _0x7d533d=_0x56cc55;if(this[_0x7d533d(0x323)]['has'](_0x43d8a6))return this[_0x7d533d(0x323)]['get'](_0x43d8a6);const _0x549259=be[this[_0x7d533d(0x21a)]];return this[_0x7d533d(0x21a)]=(this['_colorIndex']+0x1)%be[_0x7d533d(0x38a)],this[_0x7d533d(0x323)][_0x7d533d(0x22d)](_0x43d8a6,_0x549259),_0x549259;}}function xe(_0x28eeff){let _0x168abc='';for(const _0x2b7905 of _0x28eeff){const {startOffset:_0x25f6d6,endOffset:_0x4594d5,isActive:_0x4b89fb,rangeType:_0x44a41b,segmentId:_0x2dfe5e,segmentPage:_0x5d1f84}=_0x2b7905;_0x168abc['length']&&(_0x168abc+=','),_0x168abc+=_0x25f6d6+':'+_0x4594d5+':'+(_0x4b89fb?'1':'0')+':'+_0x44a41b+':'+_0x2dfe5e+':'+_0x5d1f84;}return _0x168abc;}function lt(_0x4a5441){const _0x1b9096=_0x56cc55,_0x4fb701=_0x4a5441[_0x1b9096(0x197)](','),_0x10b81b=[];for(const _0x869ec9 of _0x4fb701){const [_0x424762,_0x367550,_0x421da2,_0x1c77b4,_0x432e0b,_0x104d70]=_0x869ec9['split'](':');_0x10b81b['push']({'startOffset':Number(_0x424762),'endOffset':Number(_0x367550),'collapsed':_0x424762===_0x367550,'isActive':_0x421da2==='1','rangeType':_0x1c77b4===a[_0x1b9096(0x264)][_0x1b9096(0x1cf)]?a[_0x1b9096(0x264)][_0x1b9096(0x1cf)]:a[_0x1b9096(0x264)][_0x1b9096(0x147)],'segmentId':typeof _0x432e0b=='string'?String(_0x432e0b):'','segmentPage':Number(_0x104d70!=null?_0x104d70:-0x1)});}return _0x10b81b[_0x1b9096(0x30b)](_0x4a9c25=>_0x4a9c25['isActive'])||(_0x10b81b[0x0][_0x1b9096(0x2f0)]=!0x0),_0x10b81b;}class Oe extends a[_0x56cc55(0x19c)]{constructor(){const _0x243272=_0x56cc55;super(...arguments),_(this,_0x243272(0x2e5),new I[(_0x243272(0x1b2))](null)),_(this,'collabCursorState$',this[_0x243272(0x2e5)][_0x243272(0x2a2)]());}[_0x56cc55(0x2aa)](_0x1c09bd){const _0x23a927=_0x56cc55,{unitID:_0x3d7d21,memberID:_0xef2d20,textRanges:_0x4c520c}=_0x1c09bd,_0x193f3b=xe(_0x4c520c);if(_0x193f3b==='')return;const _0x546c4e={'unitID':_0x3d7d21,'memberID':_0xef2d20,'selection':_0x193f3b};this[_0x23a927(0x2e5)][_0x23a927(0x380)](_0x546c4e);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0x4c7e60,_0x61f445,_0xe5999,_0x27e812)=>{const _0x378bd4=_0x56cc55;for(var _0x1a4ea9=_0x27e812>0x1?void 0x0:_0x27e812?_t(_0x61f445,_0xe5999):_0x61f445,_0x5ede49=_0x4c7e60[_0x378bd4(0x38a)]-0x1,_0x2fe7e6;_0x5ede49>=0x0;_0x5ede49--)(_0x2fe7e6=_0x4c7e60[_0x5ede49])&&(_0x1a4ea9=_0x2fe7e6(_0x1a4ea9)||_0x1a4ea9);return _0x1a4ea9;},U=(_0xc7c3d4,_0x2a0ad9)=>(_0x57f7ab,_0x41d224)=>_0x2a0ad9(_0x57f7ab,_0x41d224,_0xc7c3d4);const ut=0x12c,It=0x64;let fe=class extends a[_0x56cc55(0x19c)]{constructor(_0xbba773,_0x500b59,_0x208eaa,_0x36b665,_0x98be77,_0x4933d6,_0x2a0f78,_0x1d3da9,_0x231fb1){const _0xa618aa=_0x56cc55;super(),_(this,_0xa618aa(0x2f4),!0x1),_(this,'_init',!0x1),_(this,_0xa618aa(0x18f),new I['BehaviorSubject'](new Map())),_(this,_0xa618aa(0x248),this['_cursorInfo$']['asObservable']()),_(this,_0xa618aa(0x153),new I['BehaviorSubject']([])),_(this,'roomMembers$',this['_roomMembers$'][_0xa618aa(0x1ad)](I['debounceTime'](ut))),_(this,_0xa618aa(0x18e),a['debounce'](_0x58a8e7=>{const _0x162ff5=_0xa618aa,_0x52a818={'eventID':v['CollaborationEvent'][_0x162ff5(0xf4)],'data':{'unitID':this[_0x162ff5(0x1ef)],'memberID':this[_0x162ff5(0x24e)][_0x162ff5(0x2e8)](),'selection':xe(_0x58a8e7)}};this['_session']['send'](_0x52a818,this[_0x162ff5(0x1ef)]);},It)),(this[_0xa618aa(0x1ef)]=_0xbba773,this[_0xa618aa(0x24e)]=_0x500b59,this[_0xa618aa(0x18a)]=_0x208eaa,this[_0xa618aa(0x2ba)]=_0x36b665,this['_memberService']=_0x98be77,this['_syncEditingCollabCursorService']=_0x4933d6,this[_0xa618aa(0x358)]=_0x2a0f78,this['_univerInstanceService']=_0x1d3da9,this['_commandService']=_0x231fb1);}get[_0x56cc55(0x1b9)](){const _0x40051c=_0x56cc55;return this[_0x40051c(0x18f)][_0x40051c(0x31d)]();}get[_0x56cc55(0x1aa)](){const _0x1cfb66=_0x56cc55;return this[_0x1cfb66(0x153)]['getValue']();}['dispose'](){const _0x45784f=_0x56cc55;super['dispose'](),this[_0x45784f(0x18f)][_0x45784f(0x380)](new Map()),this[_0x45784f(0x18f)][_0x45784f(0x36a)](),this[_0x45784f(0x153)][_0x45784f(0x380)]([]),this[_0x45784f(0x153)][_0x45784f(0x36a)]();}[_0x56cc55(0x101)](){const _0x303e1f=_0x56cc55;this['_init']||(this['_init']=!0x0,this[_0x303e1f(0x24e)][_0x303e1f(0x364)][_0x303e1f(0x1ad)](I[_0x303e1f(0x2b9)](this[_0x303e1f(0x390)]))[_0x303e1f(0xdc)](_0x13faa5=>{const _0x3e31ef=_0x303e1f;_0x13faa5===u['SessionStatus'][_0x3e31ef(0x2b1)]?this[_0x3e31ef(0x218)]():this[_0x3e31ef(0x16b)]();}),this[_0x303e1f(0x24e)][_0x303e1f(0x1ff)][_0x303e1f(0x1ad)](I['takeUntil'](this['dispose$']))[_0x303e1f(0xdc)](_0x1a60ef=>{const _0x566386=_0x303e1f,_0x50d283=_0x1a60ef[_0x566386(0x2cc)];_0x50d283===v[_0x566386(0x237)]['UPDATE_CURSOR']&&this[_0x566386(0x28d)](_0x1a60ef),_0x50d283===v['CollaborationEvent'][_0x566386(0x235)]&&this['_onCursorDelete'](_0x1a60ef);}),this[_0x303e1f(0x303)](this['_commandService'][_0x303e1f(0x11d)](_0xe31cdb=>{const _0x4f892b=_0x303e1f,_0x369604=_0xe31cdb[_0x4f892b(0x2d8)];_0x369604!=null&&this[_0x4f892b(0x2f4)]&&_0xe31cdb['id']===W[_0x4f892b(0x34d)]['id']&&_0x369604[_0x4f892b(0x1cb)]===this['unitID']&&_0x369604[_0x4f892b(0x1be)]===!0x1&&_0x369604[_0x4f892b(0x292)]['length']>0x0&&this['_updateLocalCursor'](_0x369604[_0x4f892b(0x292)]);})),this[_0x303e1f(0x28a)][_0x303e1f(0x1cc)]['pipe'](I[_0x303e1f(0x2b9)](this[_0x303e1f(0x390)]))[_0x303e1f(0xdc)](_0x55a09c=>{const _0x37354e=_0x303e1f;if((_0x55a09c==null?void 0x0:_0x55a09c[_0x37354e(0x1ef)])!==this[_0x37354e(0x1ef)])return;const _0x5befba={'eventID':v[_0x37354e(0x237)][_0x37354e(0xf4)],'data':_0x55a09c};this[_0x37354e(0x28d)](_0x5befba);}),this[_0x303e1f(0x303)](this[_0x303e1f(0x226)][_0x303e1f(0x11d)](_0x20d624=>{const _0x29645e=_0x303e1f;if(_0x20d624[_0x29645e(0x2d8)]==null)return;const _0x39d8d6=_0x20d624[_0x29645e(0x2d8)];if(_0x20d624['id']!==W[_0x29645e(0x341)]['id']||_0x39d8d6['unitId']!==this[_0x29645e(0x1ef)])return;const _0x4a1b33={'id':_0x29645e(0xf6),'params':_0x39d8d6},_0x364145=this[_0x29645e(0x1b9)];for(const [_0x30a080,_0x328969]of _0x364145){const _0x52ce5e={'id':_0x29645e(0xf6),'params':{'unitId':this[_0x29645e(0x1ef)],'actions':null,'textRanges':_0x328969['ranges']}},_0x312893=this['_transformService']['transformMutation'](_0x4a1b33,_0x52ce5e,!0x1);if(v[_0x29645e(0x1e1)](_0x312893))throw _0x312893['error'];_0x364145[_0x29645e(0x22d)](_0x30a080,{..._0x328969,'ranges':_0x312893[_0x29645e(0x2a3)]['params']['textRanges']});}queueMicrotask(()=>{const _0x22adaa=_0x29645e;this[_0x22adaa(0x18f)][_0x22adaa(0x380)](_0x364145);});})));}[_0x56cc55(0x28d)](_0x58396f){const _0x1186a4=_0x56cc55;var _0x47d08d,_0x4a39c7;const {memberID:_0x2bbfc1,selection:_0x2767ba}=_0x58396f[_0x1186a4(0x206)],_0x16a8b8=lt(_0x2767ba),_0x3c2b90=(_0x4a39c7=(_0x47d08d=this['_memberService'][_0x1186a4(0x31e)](this[_0x1186a4(0x1ef)],_0x2bbfc1))==null?void 0x0:_0x47d08d[_0x1186a4(0x1eb)])!=null?_0x4a39c7:_0x1186a4(0x304),_0x3ed852={'color':this[_0x1186a4(0x2ba)][_0x1186a4(0x16d)](_0x2bbfc1),'name':_0x3c2b90,'ranges':_0x16a8b8},_0x3b015e=this[_0x1186a4(0x1b9)];_0x3b015e[_0x1186a4(0x22d)](_0x2bbfc1,_0x3ed852),this[_0x1186a4(0x18f)][_0x1186a4(0x380)](_0x3b015e);}[_0x56cc55(0x30a)](_0x295553){const _0x36c405=_0x56cc55,{memberID:_0x2a2499}=_0x295553[_0x36c405(0x206)],_0x100181=this[_0x36c405(0x1b9)];_0x100181['delete'](_0x2a2499),this[_0x36c405(0x18f)][_0x36c405(0x380)](_0x100181);}['_toggleOnline'](){const _0x4dc84d=_0x56cc55;var _0x3db6d8;if(this[_0x4dc84d(0x2f4)]=!0x0,((_0x3db6d8=this[_0x4dc84d(0x389)]['getFocusedUnit']())==null?void 0x0:_0x3db6d8[_0x4dc84d(0x28b)]())!==this[_0x4dc84d(0x1ef)])return;const _0x12461b=this['_injector']['get'](W[_0x4dc84d(0x29f)])[_0x4dc84d(0x19d)]();Array['isArray'](_0x12461b)&&_0x12461b['length']>0x0&&this[_0x4dc84d(0x18e)](_0x12461b);}[_0x56cc55(0x16b)](){const _0x27fd8a=_0x56cc55;this[_0x27fd8a(0x2f4)]=!0x1;}};fe=ht([U(0x2,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),U(0x3,a[_0x56cc55(0x32f)](Te)),U(0x4,a[_0x56cc55(0x32f)](u[_0x56cc55(0x296)])),U(0x5,a[_0x56cc55(0x32f)](Oe)),U(0x6,v['ITransformService']),U(0x7,a[_0x56cc55(0x211)]),U(0x8,a[_0x56cc55(0x1d2)])],fe);var St=Object[_0x56cc55(0x369)],dt=(_0x39d90d,_0x22202c,_0x5792cf,_0x49e231)=>{const _0x24b86f=_0x56cc55;for(var _0x15056c=_0x49e231>0x1?void 0x0:_0x49e231?St(_0x22202c,_0x5792cf):_0x22202c,_0x50e975=_0x39d90d[_0x24b86f(0x38a)]-0x1,_0x45172e;_0x50e975>=0x0;_0x50e975--)(_0x45172e=_0x39d90d[_0x50e975])&&(_0x15056c=_0x45172e(_0x15056c)||_0x15056c);return _0x15056c;},w=(_0x3a8295,_0x50842d)=>(_0x2e3f87,_0x52ef06)=>_0x50842d(_0x2e3f87,_0x52ef06,_0x3a8295);const ft=0x12c,mt=0x64,gt=()=>{let _0x31cda9=[],_0x4f9744=!0x1;return _0x32866a=>{const _0x58601e=_0x5cb8;_0x31cda9[_0x58601e(0xf5)](_0x32866a),_0x4f9744||(_0x4f9744=!0x0,setTimeout(()=>{const _0x31d91c=_0x58601e;_0x31cda9[_0x31d91c(0x306)](_0x2fcbad=>_0x2fcbad()),_0x31cda9=[],_0x4f9744=!0x1;}));};};let me=class extends a[_0x56cc55(0x19c)]{constructor(_0x401acb,_0x203927,_0x2739f4,_0x1cb7cf,_0x2f71d1,_0x71301,_0x42c734,_0x5ba247){const _0x32bab2=_0x56cc55;super(),_(this,_0x32bab2(0x2f4),!0x1),_(this,_0x32bab2(0x10e),!0x1),_(this,_0x32bab2(0x18f),new I['BehaviorSubject'](new Map())),_(this,_0x32bab2(0x248),this['_cursorInfo$'][_0x32bab2(0x2a2)]()),_(this,'_roomMembers$',new I[(_0x32bab2(0x1b2))]([])),_(this,'roomMembers$',this[_0x32bab2(0x153)][_0x32bab2(0x1ad)](I[_0x32bab2(0x29b)](ft))),_(this,_0x32bab2(0x18e),a[_0x32bab2(0x140)]((_0x88b4a9,_0x31ec21)=>{const _0x2bd3a4=_0x32bab2,_0x1fabc2={'eventID':v[_0x2bd3a4(0x237)][_0x2bd3a4(0xf4)],'data':{'unitID':this[_0x2bd3a4(0x1ef)],'memberID':this[_0x2bd3a4(0x24e)][_0x2bd3a4(0x2e8)](),'selection':x[_0x2bd3a4(0x1e8)](_0x88b4a9,_0x31ec21[_0x2bd3a4(0x119)])}};this[_0x2bd3a4(0x24e)][_0x2bd3a4(0x285)](_0x1fabc2,this[_0x2bd3a4(0x1ef)]);},mt)),(this[_0x32bab2(0x1ef)]=_0x401acb,this[_0x32bab2(0x24e)]=_0x203927,this[_0x32bab2(0x18a)]=_0x2739f4,this[_0x32bab2(0x2ba)]=_0x1cb7cf,this[_0x32bab2(0x193)]=_0x2f71d1,this[_0x32bab2(0x389)]=_0x71301,this['_commandService']=_0x42c734,this[_0x32bab2(0x128)]=_0x5ba247);}get[_0x56cc55(0x1b9)](){const _0x5ddc7b=_0x56cc55;return this['_cursorInfo$'][_0x5ddc7b(0x31d)]();}get[_0x56cc55(0x1aa)](){const _0x4ae55d=_0x56cc55;return this[_0x4ae55d(0x153)][_0x4ae55d(0x31d)]();}[_0x56cc55(0x236)](){const _0x1b9267=_0x56cc55;super[_0x1b9267(0x236)](),this[_0x1b9267(0x18f)][_0x1b9267(0x380)](new Map()),this[_0x1b9267(0x18f)][_0x1b9267(0x36a)](),this['_roomMembers$'][_0x1b9267(0x380)]([]),this[_0x1b9267(0x153)][_0x1b9267(0x36a)]();}[_0x56cc55(0x101)](){const _0x5a712a=_0x56cc55;this[_0x5a712a(0x10e)]||(this[_0x5a712a(0x10e)]=!0x0,this[_0x5a712a(0x24e)]['sessionStatus$']['pipe'](I[_0x5a712a(0x2b9)](this[_0x5a712a(0x390)]))['subscribe'](_0x9c9f01=>{const _0x42ef7f=_0x5a712a;_0x9c9f01===u['SessionStatus']['ONLINE']?this[_0x42ef7f(0x218)]():this[_0x42ef7f(0x16b)]();}),this['_session']['event$'][_0x5a712a(0x1ad)](I[_0x5a712a(0x2b9)](this['dispose$']))[_0x5a712a(0xdc)](_0xc4ef01=>{const _0x1ff0dd=_0x5a712a,_0x27195f=_0xc4ef01[_0x1ff0dd(0x2cc)];_0x27195f===v[_0x1ff0dd(0x237)][_0x1ff0dd(0xf4)]&&this[_0x1ff0dd(0x28d)](_0xc4ef01),_0x27195f===v['CollaborationEvent'][_0x1ff0dd(0x235)]&&this[_0x1ff0dd(0x30a)](_0xc4ef01);}),this[_0x5a712a(0x2d1)](),this[_0x5a712a(0x303)](this[_0x5a712a(0x226)][_0x5a712a(0x11d)](_0x5c15c5=>{const _0x52e9ee=_0x5a712a;if(this[_0x52e9ee(0x2f4)]&&_0x5c15c5['id']===g[_0x52e9ee(0x32e)]['id']&&_0x5c15c5[_0x52e9ee(0x2d8)][_0x52e9ee(0x1cb)]===this[_0x52e9ee(0x1ef)]){const _0x420cb5=_0x5c15c5['params'];this[_0x52e9ee(0x18e)](_0x420cb5[_0x52e9ee(0x2e3)],_0x420cb5[_0x52e9ee(0x28e)][0x0]);}})));}[_0x56cc55(0x28d)](_0x2d6b39){const _0x4898d0=_0x56cc55;var _0x4a0a4b,_0x4617a2;const {memberID:_0x1d20fa,selection:_0x77cc90}=_0x2d6b39[_0x4898d0(0x206)],{sheetName:_0x5f357c,range:_0x48649a}=x['deserializeRangeWithSheet'](_0x77cc90),_0x43c392={'name':(_0x4617a2=(_0x4a0a4b=this[_0x4898d0(0x193)][_0x4898d0(0x31e)](this[_0x4898d0(0x1ef)],_0x1d20fa))==null?void 0x0:_0x4a0a4b['name'])!=null?_0x4617a2:_0x4898d0(0x304),'range':this[_0x4898d0(0x356)](_0x5f357c,_0x48649a),'sheetID':_0x5f357c,'color':this['_colorAssignService'][_0x4898d0(0x16d)](_0x1d20fa),'selection':_0x77cc90},_0x2d09a1=this[_0x4898d0(0x1b9)];_0x2d09a1[_0x4898d0(0x22d)](_0x1d20fa,_0x43c392),this[_0x4898d0(0x18f)]['next'](_0x2d09a1);}['_onCursorDelete'](_0x161bd8){const _0x1f0ae1=_0x56cc55,{memberID:_0x160210}=_0x161bd8[_0x1f0ae1(0x206)],_0x4fe450=this[_0x1f0ae1(0x1b9)];_0x4fe450['delete'](_0x160210),this[_0x1f0ae1(0x18f)][_0x1f0ae1(0x380)](_0x4fe450);}['_getMergeRange'](_0x38a3d2,_0x54910f){const _0x35d69d=_0x56cc55;var _0x685f3b,_0x34c01c;const _0x1f31e5=(_0x34c01c=(_0x685f3b=this[_0x35d69d(0x389)]['getUniverSheetInstance'](this[_0x35d69d(0x1ef)]))==null?void 0x0:_0x685f3b[_0x35d69d(0x17c)](_0x38a3d2))==null?void 0x0:_0x34c01c[_0x35d69d(0x10d)]();return(_0x1f31e5==null?void 0x0:_0x1f31e5[_0x35d69d(0x1e5)](_0x3933af=>a[_0x35d69d(0x1b3)][_0x35d69d(0x31a)](_0x3933af,_0x54910f)))||_0x54910f;}[_0x56cc55(0x2d1)](){const _0x31e983=_0x56cc55,_0x3c366c=new a[(_0x31e983(0x168))](),_0x5d1af9=gt(),_0x237cc6=()=>{const _0x21ec51=_0x31e983;_0x3c366c['dispose']();const _0x3e0a67=(_0x20c63e,_0x2f886d,_0x279249,_0x41be84)=>{const _0x5f13f7=_0x5cb8;let _0x421956=[];switch(_0x20c63e['id']){case g[_0x5f13f7(0x330)]['DeleteRangeMoveLeftCommandId']:{_0x421956=g[_0x5f13f7(0x14f)](_0x20c63e,_0x41be84);break;}case g['EffectRefRangId'][_0x5f13f7(0x2a5)]:{_0x421956=g[_0x5f13f7(0x251)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x166)]:{_0x421956=g[_0x5f13f7(0x15c)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x299)]:{_0x421956=g[_0x5f13f7(0x1c3)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x315)]:{_0x421956=g['handleInsertRangeMoveRight'](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x36d)]:{_0x421956=g[_0x5f13f7(0x111)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x1d1)]:{_0x421956=g[_0x5f13f7(0x249)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)]['RemoveColCommandId']:{_0x421956=g[_0x5f13f7(0x262)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x17d)]:{_0x421956=g[_0x5f13f7(0x20b)](_0x20c63e,_0x41be84);break;}}const _0x388515=g[_0x5f13f7(0x202)](_0x421956,_0x41be84),_0xa47d1c=this[_0x5f13f7(0x1b9)][_0x5f13f7(0x15d)](_0x2f886d);if(_0xa47d1c&&_0x388515){const _0x4848f2={..._0xa47d1c,'range':_0x388515};this[_0x5f13f7(0x1b9)]['set'](_0x2f886d,_0x4848f2),_0x5d1af9(()=>{const _0x1e508b=_0x5f13f7,_0x367b98=this['_refRangeService']['registerRefRange'](_0x388515,_0x387c4b=>(_0x367b98[_0x1e508b(0x236)](),_0x3e0a67(_0x387c4b,_0x2f886d,_0x279249,_0x388515)));_0x3c366c[_0x1e508b(0x35c)](_0x367b98);});}return{'redos':[],'undos':[]};};this[_0x21ec51(0x1b9)][_0x21ec51(0x306)]((_0x3d83a,_0x277777)=>{const _0x597d50=_0x21ec51,{range:_0x2b7395,sheetID:_0x537258}=_0x3d83a,_0x19348e=this[_0x597d50(0x128)][_0x597d50(0x131)](_0x2b7395,_0xb58d05=>(_0x19348e[_0x597d50(0x236)](),_0x3e0a67(_0xb58d05,_0x277777,_0x537258,_0x2b7395)));_0x3c366c[_0x597d50(0x35c)](_0x19348e);});};this[_0x31e983(0x303)](a['toDisposable'](this[_0x31e983(0x18f)]['subscribe'](()=>{_0x237cc6();})));}[_0x56cc55(0x218)](){const _0x3b2d8c=_0x56cc55;var _0x387963,_0x21cb4b;if(this[_0x3b2d8c(0x2f4)]=!0x0,((_0x387963=this[_0x3b2d8c(0x389)][_0x3b2d8c(0x116)]())==null?void 0x0:_0x387963[_0x3b2d8c(0x28b)]())!==this[_0x3b2d8c(0x1ef)])return;const _0x22c85c=(_0x21cb4b=this[_0x3b2d8c(0x18a)][_0x3b2d8c(0x15d)](g[_0x3b2d8c(0x178)])['getCurrentSelections']())==null?void 0x0:_0x21cb4b[0x0],_0x52b2c6=this['_univerInstanceService'][_0x3b2d8c(0x167)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3b2d8c(0x2c7)]();_0x22c85c&&_0x52b2c6&&this[_0x3b2d8c(0x18e)](_0x52b2c6[_0x3b2d8c(0x343)](),_0x22c85c);}[_0x56cc55(0x16b)](){const _0x2d1097=_0x56cc55;this[_0x2d1097(0x2f4)]=!0x1;}};me=dt([w(0x2,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),w(0x3,a[_0x56cc55(0x32f)](Te)),w(0x4,a['Inject'](u[_0x56cc55(0x296)])),w(0x5,a[_0x56cc55(0x211)]),w(0x6,a[_0x56cc55(0x1d2)]),w(0x7,a[_0x56cc55(0x32f)](g['RefRangeService']))],me);var vt=Object[_0x56cc55(0x369)],Et=(_0x3cdac2,_0x11f5e4,_0xa74810,_0x1ee72a)=>{for(var _0x146c16=_0x1ee72a>0x1?void 0x0:_0x1ee72a?vt(_0x11f5e4,_0xa74810):_0x11f5e4,_0x56b7c7=_0x3cdac2['length']-0x1,_0x1a538f;_0x56b7c7>=0x0;_0x56b7c7--)(_0x1a538f=_0x3cdac2[_0x56b7c7])&&(_0x146c16=_0x1a538f(_0x146c16)||_0x146c16);return _0x146c16;},oe=(_0x40690b,_0x2d7ee6)=>(_0x35e3d7,_0xeafeac)=>_0x2d7ee6(_0x35e3d7,_0xeafeac,_0x40690b);let B=class extends a[_0x56cc55(0x19c)]{constructor(_0x69c4e9,_0x4ff4ae,_0x5a4a71){const _0x3831f9=_0x56cc55;super(),_(this,_0x3831f9(0x2d2),new Map()),_(this,_0x3831f9(0x2b7),new I[(_0x3831f9(0x214))]()),(this[_0x3831f9(0x389)]=_0x69c4e9,this[_0x3831f9(0x18a)]=_0x4ff4ae,this[_0x3831f9(0x258)]=_0x5a4a71,this[_0x3831f9(0x10e)]());}['dispose'](){const _0x7c4f29=_0x56cc55;super[_0x7c4f29(0x236)](),this[_0x7c4f29(0x2b7)][_0x7c4f29(0x36a)](),this[_0x7c4f29(0x2d2)][_0x7c4f29(0x306)](_0x18c8fe=>_0x18c8fe[_0x7c4f29(0x236)]());}['getCollabCursors$'](_0x44865c){const _0x22fb2d=_0x56cc55;return this[_0x22fb2d(0x2d2)][_0x22fb2d(0x36b)](_0x44865c)?this['_entities'][_0x22fb2d(0x15d)](_0x44865c)['cursorInfo$']:this[_0x22fb2d(0x2b7)][_0x22fb2d(0x1ad)](I['filter'](_0x1cd880=>_0x1cd880[_0x22fb2d(0x1ef)]===_0x44865c),I['switchMap'](_0x2d2207=>_0x2d2207[_0x22fb2d(0x248)]));}[_0x56cc55(0x10e)](){const _0x364649=_0x56cc55;this[_0x364649(0x389)][_0x364649(0x2d6)](a[_0x364649(0x15a)][_0x364649(0x25f)])['pipe'](I['takeUntil'](this[_0x364649(0x390)]))[_0x364649(0xdc)](async _0x3086ce=>{const _0x40412d=_0x364649,_0x483328=_0x3086ce[_0x40412d(0x28b)](),_0x578a8c=await this[_0x40412d(0x1f8)](_0x483328);this['_entityInit$'][_0x40412d(0x380)](_0x578a8c),this[_0x40412d(0x2d2)][_0x40412d(0x22d)](_0x483328,_0x578a8c);}),this[_0x364649(0x389)]['getTypeOfUnitAdded$'](a[_0x364649(0x15a)][_0x364649(0x2ce)])[_0x364649(0x1ad)](I[_0x364649(0x2b9)](this[_0x364649(0x390)]))[_0x364649(0x1ad)](I[_0x364649(0x2a7)](_0x10954d=>!_0x10954d[_0x364649(0x28b)]()[_0x364649(0x34f)]('__')))['subscribe'](async _0x1d0abd=>{const _0x3eb6a7=_0x364649,_0x5643c8=_0x1d0abd['getUnitId'](),_0x56dc95=await this['_startDocCollabCursor'](_0x5643c8);this['_entityInit$']['next'](_0x56dc95),this['_entities'][_0x3eb6a7(0x22d)](_0x5643c8,_0x56dc95);}),I[_0x364649(0x19e)](this[_0x364649(0x389)][_0x364649(0x14c)](a[_0x364649(0x15a)][_0x364649(0x2ce)]),this[_0x364649(0x389)][_0x364649(0x14c)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](I[_0x364649(0x2b9)](this[_0x364649(0x390)]))[_0x364649(0xdc)](_0x434115=>{const _0x255085=_0x364649,_0x21e9fc=_0x434115[_0x255085(0x28b)](),_0xccb743=this['_entities'][_0x255085(0x15d)](_0x21e9fc);_0xccb743&&(_0xccb743[_0x255085(0x236)](),this[_0x255085(0x2d2)]['delete'](_0x21e9fc));});}async['_startSheetCollabCursor'](_0x14689e){const _0x57fb78=_0x56cc55,_0x124a8b=await this[_0x57fb78(0x258)][_0x57fb78(0x177)](_0x14689e),_0x53fd8f=this[_0x57fb78(0x18a)][_0x57fb78(0x219)](me,_0x14689e,_0x124a8b);return _0x53fd8f['init'](),_0x53fd8f;}async[_0x56cc55(0x38e)](_0x1f75d9){const _0x3aa008=_0x56cc55,_0x3a308a=await this[_0x3aa008(0x258)]['requireSession'](_0x1f75d9),_0x577c80=this['_injector'][_0x3aa008(0x219)](fe,_0x1f75d9,_0x3a308a);return _0x577c80[_0x3aa008(0x101)](),_0x577c80;}};B=Et([oe(0x0,a['IUniverInstanceService']),oe(0x1,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),oe(0x2,a[_0x56cc55(0x32f)](u['CollaborationSessionService']))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function pt(_0x5e2125,_0xa83df7){const _0x273302=_0x56cc55;let {radius:_0xec61a6,width:_0x2bd617,height:_0xd51bb5}=_0xa83df7;_0xec61a6=_0xec61a6!=null?_0xec61a6:0x0,_0x2bd617=_0x2bd617!=null?_0x2bd617:0x1e,_0xd51bb5=_0xd51bb5!=null?_0xd51bb5:0x1e;let _0x58f096=0x0,_0x43fcfb=0x0,_0x45413b=0x0;_0x58f096=_0x43fcfb=_0x45413b=Math[_0x273302(0x2cb)](_0xec61a6,_0x2bd617/0x2,_0xd51bb5/0x2),_0x5e2125['beginPath'](),_0x5e2125['moveTo'](_0x58f096,0x0),_0x5e2125[_0x273302(0x281)](_0x2bd617-_0x43fcfb,0x0),_0x5e2125[_0x273302(0x1bb)](_0x2bd617-_0x43fcfb,_0x43fcfb,_0x43fcfb,Math['PI']*0x3/0x2,0x0,!0x1),_0x5e2125[_0x273302(0x281)](_0x2bd617,_0xd51bb5-_0x45413b),_0x5e2125[_0x273302(0x1bb)](_0x2bd617-_0x45413b,_0xd51bb5-_0x45413b,_0x45413b,0x0,Math['PI']/0x2,!0x1),_0x5e2125[_0x273302(0x281)](0x0,_0xd51bb5),_0x5e2125[_0x273302(0x281)](0x0,_0x58f096),_0x5e2125[_0x273302(0x1bb)](_0x58f096,_0x58f096,_0x58f096,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5e2125[_0x273302(0x192)](),_0xa83df7[_0x273302(0x180)]&&(_0x5e2125[_0x273302(0x191)](),_0x5e2125['fillStyle']=_0xa83df7['fill'],_0xa83df7[_0x273302(0x30e)]===_0x273302(0x22f)?_0x5e2125['fill']('evenodd'):_0x5e2125[_0x273302(0x180)](),_0x5e2125['restore']());}class ie extends C[_0x56cc55(0x2f9)]{constructor(_0x2dd8f4,_0x3fe669){const _0x9867f0=_0x56cc55;super(_0x2dd8f4,_0x3fe669),_(this,_0x9867f0(0x35b)),_(this,_0x9867f0(0x344)),(this[_0x9867f0(0x35b)]=_0x3fe669==null?void 0x0:_0x3fe669[_0x9867f0(0x35b)],this[_0x9867f0(0x344)]=_0x3fe669==null?void 0x0:_0x3fe669[_0x9867f0(0x344)]);}static['drawWith'](_0x2ff3c7,_0x2f00fb){const _0x2aeb89=_0x56cc55,{text:_0x4c7969,color:_0x111f2d}=_0x2f00fb;_0x2ff3c7[_0x2aeb89(0x191)](),_0x2ff3c7[_0x2aeb89(0x212)]=_0x2aeb89(0x2bd);const _0x159a08=_0x2ff3c7['measureText'](_0x4c7969)[_0x2aeb89(0x1a9)],_0x2e953a=Math[_0x2aeb89(0x2cb)](_0x159a08+0x2*ae,De);pt(_0x2ff3c7,{'height':X,'radius':0x4,'width':_0x2e953a,'fill':_0x111f2d}),_0x2ff3c7['fillStyle']='#FFF';const _0x148cc4=ae,_0x4364b2=X-Ct,_0x247118=De-0x2*ae;if(_0x159a08>_0x247118){let _0x2c73bf='',_0x110a9d=0x0;for(const _0x55070f of _0x4c7969){const _0x24559b=_0x2ff3c7[_0x2aeb89(0x172)](_0x55070f)[_0x2aeb89(0x1a9)];if(_0x110a9d+_0x24559b<=_0x247118-_0x2ff3c7[_0x2aeb89(0x172)](_0x2aeb89(0x1a4))[_0x2aeb89(0x1a9)])_0x2c73bf+=_0x55070f,_0x110a9d+=_0x24559b;else{_0x2c73bf+=_0x2aeb89(0x1a4);break;}}_0x2ff3c7[_0x2aeb89(0x366)](_0x2c73bf,_0x148cc4,_0x4364b2);}else _0x2ff3c7[_0x2aeb89(0x366)](_0x4c7969,_0x148cc4,_0x4364b2);_0x2ff3c7[_0x2aeb89(0x181)]();}['_draw'](_0x28d8a6){const _0x4c7dc8=_0x56cc55;ie[_0x4c7dc8(0x132)](_0x28d8a6,this);}}const ce=_0x56cc55(0x144),Tt=_0x56cc55(0x2c6),Ot=_0x56cc55(0x34b),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt='rgba(255,\x20255,\x20255,\x200.01)';class Ne{constructor(_0x4086ba,_0x50f795,_0x2516b9,_0x217a5f){const _0x4d03e0=_0x56cc55;_(this,_0x4d03e0(0x23e),[]),_(this,'_anchor',null),_(this,_0x4d03e0(0x388),null),_(this,_0x4d03e0(0x338),null),_(this,_0x4d03e0(0x2ee),null),_(this,_0x4d03e0(0x2f5),null),(this[_0x4d03e0(0x156)]=_0x4086ba,this['_scene']=_0x50f795,this['_docSkeleton']=_0x2516b9,this[_0x4d03e0(0x253)]=_0x217a5f,this[_0x4d03e0(0x137)]());}set['_hover'](_0x3b12dc){const _0x4bcb4a=_0x56cc55;_0x3b12dc?(this[_0x4bcb4a(0x338)]&&this[_0x4bcb4a(0x338)][_0x4bcb4a(0x130)](),this[_0x4bcb4a(0x388)]&&this['_textBubble']['show']()):(this[_0x4bcb4a(0x338)]&&this[_0x4bcb4a(0x338)][_0x4bcb4a(0x357)](),this[_0x4bcb4a(0x388)]&&this['_textBubble'][_0x4bcb4a(0x130)]());}['dispose'](){const _0x2d0a8e=_0x56cc55;for(const _0x134bae of this[_0x2d0a8e(0x23e)])_0x134bae['dispose']();this[_0x2d0a8e(0x388)]&&this['_textBubble']['dispose'](),this[_0x2d0a8e(0x338)]&&this[_0x2d0a8e(0x338)]['dispose'](),this[_0x2d0a8e(0x27c)]&&this['_anchor'][_0x2d0a8e(0x236)](),this[_0x2d0a8e(0x2f5)]&&this['_eventUnsubscribe']();}[_0x56cc55(0x137)](){const _0x48d459=_0x56cc55;var _0x17a19c;const {_docSkeleton:_0x4247ca,_document:_0xf1e712}=this,{color:_0x1be5e7,name:_0x5bab2a,ranges:_0x3edcac}=this[_0x48d459(0x156)],_0x59b5a6=_0xf1e712[_0x48d459(0x35e)](),{docsLeft:_0xbee43e,docsTop:_0x258520}=_0x59b5a6,_0x43f468=new p['NodePositionConvertToCursor'](_0x59b5a6,_0x4247ca);for(const {startOffset:_0xd1c962,endOffset:_0xaf8a49,rangeType:_0x48bd85,segmentId:_0x135068,segmentPage:_0x349c98,collapsed:_0x59c0a9,isActive:_0x42b442}of _0x3edcac){const _0x2e18e3=_0x4247ca[_0x48d459(0x1db)](_0xd1c962,!0x0,_0x135068,_0x349c98);let _0x51e457=_0x4247ca[_0x48d459(0x1db)](_0xaf8a49,!0x0,_0x135068,_0x349c98);if(_0x51e457==null&&(_0x51e457=_0x4247ca[_0x48d459(0x1db)](_0xaf8a49-0x1,!0x1,_0x135068,_0x349c98)),_0x42b442){const {contentBoxPointGroup:_0x2bd518}=_0x43f468[_0x48d459(0x263)](_0x51e457,_0x51e457);if(_0x2bd518['length']===0x0)continue;this[_0x48d459(0xf7)](_0x1be5e7,_0x2bd518,_0xbee43e,_0x258520,_0x5bab2a),this[_0x48d459(0x2f5)]=this[_0x48d459(0x34e)]();}if(_0x2e18e3&&_0x51e457){if(_0x48bd85===a[_0x48d459(0x264)][_0x48d459(0x147)]){const _0x37b5da=new p[(_0x48d459(0x314))](_0x59b5a6,_0x4247ca),{pointGroup:_0x2905a0}=(_0x17a19c=_0x37b5da[_0x48d459(0x263)](_0x2e18e3,_0x51e457))!=null?_0x17a19c:{};if(_0x2905a0==null||_0x2905a0[_0x48d459(0x38a)]===0x0)continue;this[_0x48d459(0xe3)](_0x1be5e7,_0x2905a0,_0xbee43e,_0x258520);}else{if(!_0x59c0a9){const {borderBoxPointGroup:_0x517f6f}=_0x43f468[_0x48d459(0x263)](_0x2e18e3,_0x51e457);if(_0x517f6f['length']===0x0)continue;this[_0x48d459(0x349)](_0x1be5e7,_0x517f6f,_0xbee43e,_0x258520);}}}}}['_drawAnchor'](_0x33feb2,_0x5367d8,_0x426154,_0x369e43,_0x47329e){const _0x4e7c94=_0x56cc55,_0x4aa440=this['_getAnchorBounding'](_0x5367d8),{left:_0x46d7ba,top:_0x3e0858,height:_0x1f5018}=_0x4aa440,_0x3de523=this[_0x4e7c94(0x1e2)](),_0x1b00ef=bt/_0x3de523,_0x199996=new C[(_0x4e7c94(0x298))](ce+a[_0x4e7c94(0x368)](Y),{'left':_0x46d7ba+_0x426154-_0x1b00ef,'top':_0x3e0858+_0x369e43,'height':_0x1f5018,'width':Rt,'fill':_0x33feb2||C['getColor'](a[_0x4e7c94(0x340)][_0x4e7c94(0xea)],0x0),'strokeWidth':_0x1b00ef,'stroke':Dt,'evented':!0x0});this[_0x4e7c94(0x27c)]=_0x199996,this['_scene'][_0x4e7c94(0x1a8)](_0x199996,p[_0x4e7c94(0x155)]);const _0x5775db=new C[(_0x4e7c94(0x298))](ce+a['generateRandomId'](Y),{'left':_0x46d7ba+_0x426154-_0x1b00ef,'top':_0x3e0858+_0x369e43-le/0x2,'height':le,'width':le,'fill':_0x33feb2||C[_0x4e7c94(0x2a1)](a[_0x4e7c94(0x340)][_0x4e7c94(0xea)],0x0),'strokeWidth':0x0,'stroke':_0x33feb2||C['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x4e7c94(0x338)]=_0x5775db,this[_0x4e7c94(0x1e0)][_0x4e7c94(0x1a8)](_0x5775db,p[_0x4e7c94(0x155)]);const _0xfb44ce=new ie(ce+a[_0x4e7c94(0x368)](Y),{'left':_0x46d7ba+_0x426154-_0x1b00ef,'top':_0x3e0858+_0x369e43-X,'text':_0x47329e,'color':_0x33feb2});this[_0x4e7c94(0x388)]=_0xfb44ce,this[_0x4e7c94(0x1e0)][_0x4e7c94(0x1a8)](_0xfb44ce,p['TEXT_RANGE_LAYER_INDEX']),this[_0x4e7c94(0x289)]=!0x1;}[_0x56cc55(0x34e)](){const _0x156ad4=_0x56cc55,_0x4f23e7=this[_0x156ad4(0x27c)]['onPointerEnter$'][_0x156ad4(0x1bf)](()=>{const _0x260cd8=_0x156ad4;this[_0x260cd8(0x289)]=!0x0;}),_0x21424c=this[_0x156ad4(0x27c)]['onPointerLeave$'][_0x156ad4(0x1bf)](()=>{const _0x3ab504=_0x156ad4;this[_0x3ab504(0x2ee)]&&clearTimeout(this[_0x3ab504(0x2ee)]),this[_0x3ab504(0x2ee)]=setTimeout(()=>{const _0x2c272e=_0x3ab504;this[_0x2c272e(0x289)]=!0x1;},0x7d0);});return()=>{const _0x260e0f=_0x156ad4;_0x4f23e7[_0x260e0f(0x230)](),_0x21424c[_0x260e0f(0x230)]();};}[_0x56cc55(0x349)](_0x125d32,_0x12f71d,_0x2637c4,_0x1b14e1){const _0x18f833=_0x56cc55,_0xc415b3=new a[(_0x18f833(0x18d))](_0x125d32)[_0x18f833(0x328)](0.2)[_0x18f833(0x1fb)](),_0x30f59d=new C[(_0x18f833(0x2c5))](Tt+a['generateRandomId'](Y),{'pointsGroup':_0x12f71d,'fill':_0xc415b3||C[_0x18f833(0x2a1)](a[_0x18f833(0x340)][_0x18f833(0xea)],0.2),'left':_0x2637c4,'top':_0x1b14e1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x18f833(0xf5)](_0x30f59d),this[_0x18f833(0x1e0)]['addObject'](_0x30f59d,p[_0x18f833(0x155)]);}[_0x56cc55(0xe3)](_0x115cb2,_0x88bb0d,_0x4bf009,_0x5f3b71){const _0x3cf0dc=_0x56cc55,_0x1858b9=new a[(_0x3cf0dc(0x18d))](_0x115cb2)[_0x3cf0dc(0x328)](0.2)[_0x3cf0dc(0x1fb)](),_0x6397b7=new C[(_0x3cf0dc(0x2c5))](Ot+a[_0x3cf0dc(0x368)](Y),{'pointsGroup':_0x88bb0d,'fill':_0x1858b9||C[_0x3cf0dc(0x2a1)](a[_0x3cf0dc(0x340)]['black'],0.2),'left':_0x4bf009,'top':_0x5f3b71,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3cf0dc(0x23e)][_0x3cf0dc(0xf5)](_0x6397b7),this[_0x3cf0dc(0x1e0)][_0x3cf0dc(0x1a8)](_0x6397b7,p['TEXT_RANGE_LAYER_INDEX']);}[_0x56cc55(0x1c4)](_0x3ee4e7){const _0x487bb9=_0x3ee4e7[0x0],_0x579592=_0x487bb9[0x0],_0x1e868c=_0x487bb9[0x2],{x:_0x3d55b5,y:_0x1b7dd2}=_0x579592,{x:_0x2df388,y:_0x52d820}=_0x1e868c;return{'left':_0x3d55b5,'top':_0x1b7dd2,'width':_0x2df388-_0x3d55b5,'height':_0x52d820-_0x1b7dd2};}[_0x56cc55(0x1e2)](){const _0x53a17e=_0x56cc55,{scaleX:_0x4ae61f,scaleY:_0x444605}=this[_0x53a17e(0x1e0)][_0x53a17e(0x2b2)]();return Math['max'](_0x4ae61f,_0x444605);}}var Nt=Object['getOwnPropertyDescriptor'],Ut=(_0x51bfab,_0x45b68e,_0x313845,_0x316ce1)=>{const _0x48a772=_0x56cc55;for(var _0x59e35c=_0x316ce1>0x1?void 0x0:_0x316ce1?Nt(_0x45b68e,_0x313845):_0x45b68e,_0x4708d8=_0x51bfab[_0x48a772(0x38a)]-0x1,_0x3806c8;_0x4708d8>=0x0;_0x4708d8--)(_0x3806c8=_0x51bfab[_0x4708d8])&&(_0x59e35c=_0x3806c8(_0x59e35c)||_0x59e35c);return _0x59e35c;},q=(_0x1e7d55,_0x538494)=>(_0x245b28,_0x55b334)=>_0x538494(_0x245b28,_0x55b334,_0x1e7d55);let ge=class extends a[_0x56cc55(0x19c)]{constructor(_0x4a6d62,_0x54bde2,_0xf8b55a,_0x237a81,_0x418437){const _0x227c50=_0x56cc55;super(),_(this,_0x227c50(0x1e7),[]),_(this,_0x227c50(0x21b),[]),(this[_0x227c50(0x24f)]=_0x4a6d62,this[_0x227c50(0xda)]=_0x54bde2,this['_collabCursorController']=_0xf8b55a,this[_0x227c50(0x226)]=_0x237a81,this[_0x227c50(0x35d)]=_0x418437,this['_init']());}['_init'](){const _0x4fe3dc=_0x56cc55,_0x4d7f4e=this[_0x4fe3dc(0x24f)][_0x4fe3dc(0x1cb)],_0x517fd3=this[_0x4fe3dc(0xda)];this[_0x4fe3dc(0x303)](I['combineLatest']([this[_0x4fe3dc(0x2a4)][_0x4fe3dc(0x121)](_0x4d7f4e),this[_0x4fe3dc(0x35d)][_0x4fe3dc(0x10b)]])[_0x4fe3dc(0x1ad)]($[_0x4fe3dc(0x195)](([_0x3ac08e,_0x5eba2d])=>({'skeleton':_0x517fd3[_0x4fe3dc(0x26c)](),'cursors':[..._0x3ac08e[_0x4fe3dc(0x243)]()][_0x4fe3dc(0x205)](_0x498d87=>({..._0x498d87,'color':this[_0x4fe3dc(0x35d)][_0x4fe3dc(0x139)](_0x498d87['color'])}))})))[_0x4fe3dc(0xdc)](_0xb91ca=>{const _0x18b38c=_0x4fe3dc;if(this['_removeCollabCursors'](),_0xb91ca){const {skeleton:_0x223df0,cursors:_0x52cbaf}=_0xb91ca;this[_0x18b38c(0x24b)](_0x223df0,_0x52cbaf);}})),this[_0x4fe3dc(0x136)](),this['_initCommandExecutedListener']();}[_0x56cc55(0x24b)](_0x3fd865,_0x36ccbf){const _0x2ffabc=_0x56cc55,{scene:_0xcbde94,mainComponent:_0x259eda}=this['_context'],_0x1ac434=_0x36ccbf['map'](_0x28acd0=>new Ne(_0x28acd0,_0xcbde94,_0x3fd865,_0x259eda));this[_0x2ffabc(0x1e7)]=_0x1ac434,this['_cursors']=_0x36ccbf;}[_0x56cc55(0x37c)](){const _0x1efba3=_0x56cc55;this[_0x1efba3(0x342)]();const {scene:_0x2ec1fd,mainComponent:_0x579904}=this[_0x1efba3(0x24f)],_0x242678=this[_0x1efba3(0xda)][_0x1efba3(0x26c)](),_0x577f39=this[_0x1efba3(0x21b)][_0x1efba3(0x195)](_0x25fe13=>new Ne(_0x25fe13,_0x2ec1fd,_0x242678,_0x579904));this[_0x1efba3(0x1e7)]=_0x577f39;}[_0x56cc55(0x342)](){const _0x1c4ba3=_0x56cc55;this[_0x1c4ba3(0x1e7)][_0x1c4ba3(0x306)](_0x51db52=>_0x51db52[_0x1c4ba3(0x236)]()),this[_0x1c4ba3(0x1e7)]=[];}[_0x56cc55(0x32c)](){const _0x5d8a82=_0x56cc55,_0x4ab911=[p['SetDocZoomRatioOperation']['id']];this[_0x5d8a82(0x303)](this['_commandService'][_0x5d8a82(0x11d)](_0x48d827=>{const _0x9c0022=_0x5d8a82;_0x4ab911[_0x9c0022(0xfe)](_0x48d827['id'])&&_0x48d827[_0x9c0022(0x2d8)][_0x9c0022(0x1cb)]===this[_0x9c0022(0x24f)][_0x9c0022(0x1cb)]&&this['_refreshCollabCursors']();}));}[_0x56cc55(0x136)](){const _0x552ac6=_0x56cc55;this[_0x552ac6(0x303)](a[_0x552ac6(0x20a)](this[_0x552ac6(0x24f)]['engine'][_0x552ac6(0x102)])[_0x552ac6(0x1ad)]($[_0x552ac6(0x2a7)](_0x5015ee=>_0x5015ee[_0x552ac6(0x106)]===C[_0x552ac6(0x22a)]['resize']),$[_0x552ac6(0x1f6)](0x10))[_0x552ac6(0xdc)](()=>{const _0x242282=_0x552ac6;this[_0x242282(0x37c)]();}));}};ge=Ut([q(0x1,a[_0x56cc55(0x32f)](W[_0x56cc55(0x318)])),q(0x2,a['Inject'](B)),q(0x3,a['ICommandService']),q(0x4,a[_0x56cc55(0x32f)](a[_0x56cc55(0x2c4)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0x56cc55(0x2f9)]{constructor(_0x2cd7fe,_0x183cd6){const _0x2f94f4=_0x56cc55;super(_0x2cd7fe,_0x183cd6),_(this,_0x2f94f4(0x16f)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,'_name',''),_(this,'_labelPosition','top'),_(this,_0x2f94f4(0x2ec)),(_0x183cd6&&this[_0x2f94f4(0x2dd)](_0x183cd6),this[_0x2f94f4(0x2d0)][_0x2f94f4(0x1bf)](()=>this[_0x2f94f4(0x2dd)]({'hovered':!0x0})),this[_0x2f94f4(0x216)][_0x2f94f4(0x1bf)](()=>this[_0x2f94f4(0x2dd)]({'hovered':!0x1})));}[_0x56cc55(0x2dd)](_0x2ddced){const _0x468d15=_0x56cc55;var _0xd81638,_0x5ebbd5,_0x1e04d7,_0x4633c8,_0x581a6b,_0x279196;this[_0x468d15(0x16f)]=(_0xd81638=_0x2ddced[_0x468d15(0x35b)])!=null?_0xd81638:this[_0x468d15(0x16f)],this[_0x468d15(0x2bc)]=(_0x5ebbd5=_0x2ddced['hovered'])!=null?_0x5ebbd5:this[_0x468d15(0x2bc)],this[_0x468d15(0x12b)]=(_0x1e04d7=_0x2ddced[_0x468d15(0x119)])!=null?_0x1e04d7:this[_0x468d15(0x12b)],this['_name']=(_0x4633c8=_0x2ddced[_0x468d15(0x1eb)])!=null?_0x4633c8:this['_name'],this[_0x468d15(0x33a)]=(_0x581a6b=_0x2ddced[_0x468d15(0x293)])!=null?_0x581a6b:this['_labelPosition'],this[_0x468d15(0x2ec)]=(_0x279196=_0x2ddced[_0x468d15(0x2de)])!=null?_0x279196:this['_backgroundColor'],this[_0x468d15(0x173)]({'width':_0x2ddced[_0x468d15(0x1a9)],'height':_0x2ddced[_0x468d15(0x184)]});}[_0x56cc55(0x2cd)](_0x5ec357){const _0xa485e3=_0x56cc55,{row:_0x20098b,column:_0x586978}=_0x5ec357;if(_0x20098b>=this[_0xa485e3(0x12b)][_0xa485e3(0x239)]&&_0x20098b<=this[_0xa485e3(0x12b)][_0xa485e3(0x367)]&&_0x586978>=this[_0xa485e3(0x12b)][_0xa485e3(0x103)]&&_0x586978<=this[_0xa485e3(0x12b)][_0xa485e3(0x23c)]){this[_0xa485e3(0x2dd)]({'hovered':!0x0});return;}this[_0xa485e3(0x2dd)]({'hovered':!0x1});}[_0x56cc55(0x301)](_0x329cba){return!0x1;}[_0x56cc55(0x165)](_0x17f75b){const _0x51197d=_0x56cc55;C[_0x51197d(0x298)][_0x51197d(0x132)](_0x17f75b,{'width':this[_0x51197d(0x1a9)],'height':this[_0x51197d(0x184)],'strokeWidth':Mt,'stroke':this[_0x51197d(0x16f)],'evented':!0x1,'fill':this[_0x51197d(0x2ec)]}),this['_hovered']&&(_0x17f75b[_0x51197d(0x191)](),_0x17f75b['transform'](0x1,0x0,0x0,0x1,this[_0x51197d(0x1a9)],this[_0x51197d(0x33a)]==='bottom'?0x0:-X),ie[_0x51197d(0x132)](_0x17f75b,{'text':this[_0x51197d(0x273)],'color':this[_0x51197d(0x16f)]}),_0x17f75b['restore']());}}var At=Object['getOwnPropertyDescriptor'],Pt=(_0x4e59c6,_0x205df4,_0x4a1a76,_0x555e12)=>{const _0x286bcf=_0x56cc55;for(var _0x2cf357=_0x555e12>0x1?void 0x0:_0x555e12?At(_0x205df4,_0x4a1a76):_0x205df4,_0x3c4ba4=_0x4e59c6[_0x286bcf(0x38a)]-0x1,_0x45b42d;_0x3c4ba4>=0x0;_0x3c4ba4--)(_0x45b42d=_0x4e59c6[_0x3c4ba4])&&(_0x2cf357=_0x45b42d(_0x2cf357)||_0x2cf357);return _0x2cf357;},_e=(_0x3eb022,_0x3f1f3a)=>(_0x341190,_0xa09544)=>_0x3f1f3a(_0x341190,_0xa09544,_0x3eb022);const wt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x58e6c8,_0x2f1012,_0x121d8c,_0x4693fa){const _0x2be790=_0x56cc55;super(),_(this,'_cursors',new Set()),_(this,_0x2be790(0x1bd),null),(this['_context']=_0x58e6c8,this[_0x2be790(0x274)]=_0x2f1012,this['_collabCursorController']=_0x121d8c,this[_0x2be790(0x35d)]=_0x4693fa,this['_init']());}['_init'](){const _0x468a54=_0x56cc55;this[_0x468a54(0x274)][_0x468a54(0x20e)][_0x468a54(0x1ad)]($['takeUntil'](this[_0x468a54(0x390)]),$[_0x468a54(0x261)](_0x5301a1=>{const _0x18e388=_0x468a54;if(_0x5301a1){const _0x106bab=_0x5301a1['sheetId'];return I[_0x18e388(0x37a)](this[_0x18e388(0x2a4)][_0x18e388(0x121)](this[_0x18e388(0x24f)][_0x18e388(0x1cb)]),this['_themeService']['currentTheme$'])[_0x18e388(0x1ad)]($[_0x18e388(0x195)](([_0x39b021,_0x5a3c4b])=>{const _0x5c8bb0=_0x18e388,_0x28c2a0=new Map();return _0x39b021[_0x5c8bb0(0x306)]((_0x3f18ef,_0x23254e)=>{const _0x230f60=_0x5c8bb0;if(_0x3f18ef[_0x230f60(0x2b4)]===_0x106bab){const _0xd8aac3={..._0x3f18ef};_0xd8aac3[_0x230f60(0x35b)]=this[_0x230f60(0x35d)][_0x230f60(0x139)](_0x3f18ef[_0x230f60(0x35b)]),_0x28c2a0[_0x230f60(0x22d)](_0x23254e,_0xd8aac3);}}),{'skeleton':_0x5301a1,'cursors':_0x28c2a0};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x468a54(0xdc)](({skeleton:_0x23b8ed,cursors:_0x5d02de})=>{const _0x46a8d1=_0x468a54;this['_removeCollabCursors'](),_0x23b8ed&&this[_0x46a8d1(0x24b)](_0x23b8ed,_0x5d02de);}),this[_0x468a54(0x274)][_0x468a54(0x20e)][_0x468a54(0xdc)](_0x3dd763=>{const _0x3029a9=_0x468a54;if(_0x3dd763==null)return;const {skeleton:_0x3c9570}=_0x3dd763,{scene:_0xb01d61}=this[_0x3029a9(0x24f)];_0xb01d61[_0x3029a9(0x15b)][_0x3029a9(0x1bf)](a[_0x3029a9(0x140)](_0x39e942=>{const _0x1f0bf1=_0x3029a9;var _0x4a55aa,_0x499abd;const {offsetX:_0x42e1d4,offsetY:_0x2c947e}=_0x39e942,{x:_0x532f5c,y:_0xd1bc8c}=_0xb01d61[_0x1f0bf1(0x30c)](C[_0x1f0bf1(0x233)]['FromArray']([_0x42e1d4,_0x2c947e])),{scaleX:_0x50df8e,scaleY:_0x101652}=_0xb01d61[_0x1f0bf1(0x2b2)](),_0x468d49=_0xb01d61[_0x1f0bf1(0x1a1)](C[_0x1f0bf1(0x2a8)][_0x1f0bf1(0x158)]),_0x33fb9b=_0xb01d61[_0x1f0bf1(0x1f4)](C['Vector2'][_0x1f0bf1(0x382)]([_0x532f5c,_0xd1bc8c]),_0x468d49),_0x54779d=_0x3c9570[_0x1f0bf1(0x309)](_0x42e1d4,_0x2c947e,_0x50df8e,_0x101652,_0x33fb9b);((_0x4a55aa=this[_0x1f0bf1(0x1bd)])==null?void 0x0:_0x4a55aa[_0x1f0bf1(0x35f)])===_0x54779d['column']&&((_0x499abd=this[_0x1f0bf1(0x1bd)])==null?void 0x0:_0x499abd[_0x1f0bf1(0x333)])===_0x54779d[_0x1f0bf1(0x333)]||this[_0x1f0bf1(0x21b)]['forEach'](_0x4aaacc=>{const _0x673024=_0x1f0bf1;_0x4aaacc[_0x673024(0x2cd)](_0x54779d);});},0x64));});}[_0x56cc55(0x24b)](_0x329181,_0x2e594e){const _0x165cf6=_0x56cc55;var _0x2a9e0;const _0xe89968=(_0x2a9e0=this['_sheetSkeletonManagerService'][_0x165cf6(0x157)]())==null?void 0x0:_0x2a9e0[_0x165cf6(0x2d5)];if(!_0xe89968)return;const _0x2309ea=this[_0x165cf6(0x2c0)]();if(!_0x2309ea)return;this[_0x165cf6(0x21b)][_0x165cf6(0x306)](_0x1bb27f=>{_0x1bb27f['makeDirty']();});const {scene:_0x5d5000}=_0x2309ea,_0x25ae17=yt(Array[_0x165cf6(0x2e0)](_0x2e594e[_0x165cf6(0x243)]()))[_0x165cf6(0x195)](_0x4fff75=>{const _0x51a25d=_0x165cf6,{color:_0x524f8e,range:_0x5a819d,name:_0x127c88,selection:_0x59607b,sheetID:_0x12cd15}=_0x4fff75,{startColumn:_0x228688,startRow:_0x4f528c,endColumn:_0x34225d,endRow:_0x21d52a}=_0x5a819d,_0x5b8430=z['getCoordByCell'](_0x4f528c,_0x228688,_0x5d5000,_0xe89968),_0xce8c42=z[_0x51a25d(0x1b0)](_0x21d52a,_0x34225d,_0x5d5000,_0xe89968),{columnHeaderHeightAndMarginTop:_0x3ecea4}=_0xe89968,{startX:_0x3971a1,startY:_0x53a44c}=_0x5b8430,{endX:_0x2abffd,endY:_0x2c161a}=_0xce8c42,_0x4c49f8=_0x2abffd-_0x3971a1,_0x3a311d=_0x2c161a-_0x53a44c,_0xd443e8={'labelPosition':_0x53a44c-_0x3ecea4>=X?'top':_0x51a25d(0x1ee),'sheetID':_0x12cd15,'range':_0x5a819d,'color':_0x524f8e,'name':_0x127c88,'selection':_0x59607b,'left':_0x3971a1,'top':_0x53a44c,'width':_0x4c49f8,'height':_0x3a311d,'evented':!0x1,'zIndex':wt};return new Be(_0x127c88,_0xd443e8);});_0x5d5000[_0x165cf6(0x1b1)](_0x25ae17,Lt),this['_cursors']=new Set(_0x25ae17);}[_0x56cc55(0x342)](){const _0x184a7a=_0x56cc55;var _0x2c2e32;(_0x2c2e32=this[_0x184a7a(0x21b)])==null||_0x2c2e32[_0x184a7a(0x306)](_0x10ad7c=>_0x10ad7c[_0x184a7a(0x236)]());}[_0x56cc55(0x2c0)](){const _0x2eac81=_0x56cc55;return z[_0x2eac81(0x32d)](this['_context'][_0x2eac81(0x2d7)],this['_context']);}};ve=Pt([_e(0x1,a[_0x56cc55(0x32f)](z['SheetSkeletonManagerService'])),_e(0x2,a['Inject'](B)),_e(0x3,a['Inject'](a[_0x56cc55(0x2c4)]))],ve);function yt(_0x545bdb){const _0x2f37cb=_0x56cc55,_0x123f6a=new Map();return _0x545bdb[_0x2f37cb(0x306)](_0x17503e=>{const _0x3a5e6c=_0x2f37cb;if(_0x123f6a[_0x3a5e6c(0x36b)](_0x17503e[_0x3a5e6c(0x1d4)])){const _0xcba609=_0x123f6a[_0x3a5e6c(0x15d)](_0x17503e[_0x3a5e6c(0x1d4)]);_0xcba609[_0x3a5e6c(0x1eb)]+=',\x20'+_0x17503e[_0x3a5e6c(0x1eb)];}else _0x123f6a[_0x3a5e6c(0x22d)](_0x17503e[_0x3a5e6c(0x1d4)],_0x17503e);}),Array[_0x2f37cb(0x2e0)](_0x123f6a['values']());}var $t=Object[_0x56cc55(0x369)],xt=(_0x23b7d7,_0x4e7924,_0x39d54f,_0x12bbef)=>{for(var _0x4aa78e=_0x12bbef>0x1?void 0x0:_0x12bbef?$t(_0x4e7924,_0x39d54f):_0x4e7924,_0x7f7ade=_0x23b7d7['length']-0x1,_0x3e6f19;_0x7f7ade>=0x0;_0x7f7ade--)(_0x3e6f19=_0x23b7d7[_0x7f7ade])&&(_0x4aa78e=_0x3e6f19(_0x4aa78e)||_0x4aa78e);return _0x4aa78e;},y=(_0x13b472,_0x5b373f)=>(_0x509d06,_0x543a0f)=>_0x5b373f(_0x509d06,_0x543a0f,_0x13b472);let J=class extends a[_0x56cc55(0x30f)]{constructor(_0x96ad05,_0x11f006,_0x5a3221,_0x30723,_0x4d0552,_0x53dda6){const _0x3ca652=_0x56cc55;super(),this[_0x3ca652(0x13d)]=_0x96ad05,this[_0x3ca652(0x19a)]=_0x11f006,this[_0x3ca652(0xdb)]=_0x5a3221,this[_0x3ca652(0x217)]=_0x30723,this['_notificationService']=_0x4d0552,this[_0x3ca652(0xed)]=_0x53dda6,this[_0x3ca652(0x25a)](),this[_0x3ca652(0x238)]();}[_0x56cc55(0x25a)](){const _0x858822=_0x56cc55;this[_0x858822(0x303)](this[_0x858822(0x13d)][_0x858822(0x1e9)](()=>{const _0x30f8ee=_0x858822;if(this[_0x30f8ee(0x19a)]['saveTaskMap']['size'])return this[_0x30f8ee(0xed)]['t'](_0x30f8ee(0x24c));}));}[_0x56cc55(0x238)](){const _0x42dfb5=_0x56cc55;this['disposeWithMe'](this['_collaborationUIEventService']['event$'][_0x42dfb5(0xdc)](_0x1f046c=>{const _0x1c80ff=_0x42dfb5;_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x2ab)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0x108)],'content':this['_localeService']['t'](_0x1c80ff(0x372))}),_0x1f046c['id']===u[_0x1c80ff(0x329)]['CLOSE_ROOM']&&this['_messageService'][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0x108)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x204))}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x1f0)]&&this[_0x1c80ff(0x332)]['show']({'title':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x2a6)),'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x170)),'type':_0x1c80ff(0x1b4),'duration':0x0}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x2b8)]&&this[_0x1c80ff(0x217)]['show']({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0xd2)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x204))+'('+_0x1f046c[_0x1c80ff(0x206)]+')'}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0xd6)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)]['Warning'],'content':this[_0x1c80ff(0xed)]['t'](_0x1f046c[_0x1c80ff(0x206)]||'')}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x1a2)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0x108)],'content':this['_localeService']['t'](_0x1c80ff(0x2e6))}),_0x1f046c['id']===u[_0x1c80ff(0x329)]['SOCKET_FAILED']&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0xd2)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x224))}),_0x1f046c['id']===u['CollaborationUIEventId'][_0x1c80ff(0x38c)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0xd2)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x221))});}));}};function _0x2fa8(){const _0x499915=['_selfUnitIDs','disposeWithMe','Unknown\x20user','_uiPartsService','forEach','PY_RUNTIME_SCRIPT_ERROR','MOBILE_VERIFY_CODE_MISMATCH','getCellPositionByOffset','_onCursorDelete','some','getRelativeToViewportCoord','SUCCESS','fillRule','Disposable','application/json','disableLocalCache','IRenderManagerService','_lastResponseTimestamp','NodePositionConvertToRectRange','InsertRangeMoveRightCommandId','_saveTaskMap','getUndoRedoMutationParamsCache','DocSkeletonManagerService','sessionTicket','contains','path','RemoteUniscriptService','getValue','getMember','_getFormulaLimitStatus','YUUMI_TABLE_NOT_FOUND_IN_UNIT','YUUMI_ASYNCIO_CANCELLED','Failed','_assignedColors','_transformUndoRedoStack','fromEvent','then','disposeUnit','setAlpha','CollaborationUIEventId','_updateSubUnitFromURLParams','_registerDependencies','_initCommandExecutedListener','getSheetObject','SetSelectionsOperation','Inject','EffectRefRangId','147844tZdutA','_notificationService','row','Loading','delete','AWAITING','WebSocketService','_anchorDot','newValue','_labelPosition','0\x200\x2017\x2016','getConfig','ALREADY_EXISTS','attrs','INVALID_INVITE_CODE','COLORS','RichTextEditingMutation','_removeCollabCursors','getSheetId','text','transformRemoteChangeset','_transformHistoryAndStateStack','EMAIL_VERIFY_CODE_MISMATCH','isFormulaString','_drawTextRange','univer-flex\x20univer-items-center','collab-rect-range-','toStringTag','SetTextSelectionsOperation','_handleHover','startsWith','whenReady','YUUMI_SUBSCRIPTION_NOT_FOUND','ticket','getUnhiddenWorksheets','_id','releaseFormulaLimitUrl','_getMergeRange','show','_transformService','wsSessionTicketUrl','YUUMI_UNABLE_LOAD_URL','color','add','_themeService','getOffsetConfig','column','transformStateCache','beforeCommandExecuted','collabStatus.syncing','MessageType','sessionStatus$','storage','fillText','endRow','generateRandomId','getOwnPropertyDescriptor','complete','has','HEADER_MENU','InsertRowCommandId','_logService','mask','runId','CHANGESET_REVISION_CONFILICT','collaboration.single-unit.warning','INVITE_CODE_ALREADY_BOUND','deepClone','getCellMatrix','http://www.w3.org/2000/svg','773778OwPhTv','formula.calculation.unable','stringify','combineLatest','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_refreshCollabCursors','unshift','purple.300','unload','next','INVALID_ARGUMENT','FromArray','_scheduleClearOtherTimer','[RemoteUniscriptService]:\x20no\x20focused\x20unit','LICENSE_MAX_UNITS_EXCEEDED','_docTransformStateCacheService','_releaseCalculationLimit','_textBubble','_univerInstanceService','length','MOBILE_HAS_BEEN_BOUND','SUBMIT_CHANGESET_TIMEOUT','UniverIcon','_startDocCollabCursor','clearTimeout','dispose$','updateOfflineData','Error','transformMutation','setUndoRedoMutationParamsCache','createSocket','JOIN_ROOM_FAILED','toDisposable','REDEMPTION_USER_NOT_ELIGIBLE','addEventListener','_docSkeletonManagerService','_collaborationUIEventService','subscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','isArray','onStarting','entityInit$','body','collabStatus.notCollab','_drawRectRange','getActiveRange','currentColor','UnitStatus','USER_NOT_INVITED_CODE','functionsExecutedState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','black','memberID','_taskIds','_localeService','INVITE_CODE_HAS_BEEN_UES','SYNCED','_handleLeaveEvent','with','CommandType','mutations','UPDATE_CURSOR','push','doc.mutation.rich-text-editing','_drawAnchor','DocCollaborationEntity','univerjs-icon\x20univerjs-icon-','_urlService','actions','YUUMI_ALL_TABLES_IS_INVALID','parseInt','includes','_setupSubUnitSync','popstate','init','onTransformChange$','startColumn','_renderManagerService','OnLineIcon','type','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Warning','collab-client.tooltip.reconnect','setInterval','currentTheme$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getMergeData','_init','M0\x200H16V16H0z','LICENSE_DISTRO_REJECTED','handleInsertRow','urlChange$','loadOfflineData','3982gIQDoU','_handleJoinEvent','getFocusedUnit','_initStatusListener','INTERNAL_ERROR','range','APPLY_PERMISSION_DENIED','tag','21sOERFc','onCommandExecuted','UniverCollaborationClientUIPlugin','origin','_httpService','getCollabCursors$','_docStateChangeManagerService','1em','green.600','ENTITLE_DUP_SUBSCRIPTION','_docClipboardService','red.300','_refRangeService','colorChannel1','pluginName','_range','OTHER_CLIENTS_EDITING','CollaborationDataLoaderController','m1Prime','setActiveRange','hide','registerRefRange','drawWith','shift','jsx','_handleHeartbeatEvent','_initResize','_render','ACTIVE_UNIT_EVENT_CHANNEL','getColorFromTheme','pushState','setItem','HTTPService','_beforeCloseService','forwardRef','APPLY_REVISION_CONFILICT','debounce','useObservable','stage','useDependency','collab-text-anchor-','ENSURE_SNAPSHOT_EXECUTION','DEFAULT_WS_SESSION_TICKET_URL','RECT','exhaustSavingTask','IMessageService','SetFormulaCalculationStartMutation','limitInfo','getTypeOfUnitDisposed$','ENTITLE_NEED_BILLING_ADDRESS','collabStatus.offline','handleDeleteRangeMoveLeft','LOCAL_CACHE_INTERVAL_KEY','off-line-icon','_imageIoService','_roomMembers$','905768uJxuSf','TEXT_RANGE_LAYER_INDEX','_cursor','getCurrent','VIEW_MAIN','collabStatus.synced','UniverInstanceType','onPointerMove$','handleInsertCol','get','REDEMPTION_CODE_NOT_STARTED','assign','div','FormulaExecuteStageType','APPLY_REJECT','_hasFormulaInDirtyRanges','YUUMI_AI_RUN_FAILED','_draw','InsertColCommandId','getCurrentUnitForType','DisposableCollection','result','setStateCache','_toggleOffline','UniverCollaborationClientPlugin','assignAColorForMemberID','_createSocketURL','_color','permission.content','_getSaveTimeout','measureText','transformByState','registerComponent','toString','PENDING','requireSession','SheetsSelectionsService','white','addClipboardHook','CURRENT_STATUS_CANNOT_OPERATE','getSheetBySheetId','RemoveRowCommandId','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_ensureSubject','fill','restore','CollaborationSocketService','520MAEkpS','height','setTimeout','maxFormulaLimit','_currentUsage','string','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_injector','replaceDocRanges','_docTransformSelectionsService','ColorKit','_updateLocalCursor','_cursorInfo$','?taskId=','save','closePath','_memberService','getRenderById','map','stageInfo','split','CollaborationController','startFormulaLimitUrl','_localCacheService','xlink:href','RxDisposable','getDocRanges','merge','FETCH_MISS','_pollingInterval','getViewport','SOCKET_FAILED_RETRY','registerRenderModule','...','substring','mapTo','SheetCollabCursorShape','addObject','width','roomMembers','_checkCalculationAvailable','url(#$1','pipe','_config','39250eehMgH','getCoordByCell','addObjects','BehaviorSubject','Rectangle','error','code','setParam','blue.400','[CollaborationDataLoaderController]','cursorInfo','children','arc','YUUMI_URL_COL_OUT_OF_RANGE','_lastPointer','isEditing','subscribeEvent','_saveCache','collabStatus.conflict','_send','handleInsertRangeMoveDown','_getAnchorBounding','createElement','/universer-api/license/formula/limit/status','YUUMI_RATE_OVER_LIMIT','ISnapshotServerService','PAYMENT_CHANNEL_NOT_SUPPORT','totalFormulasToCalculate','unitId','collabCursorState$','_checkAndWaitForCalculationPermission','_status$','TEXT','_scheduleSaving','MoveRangeCommandId','ICommandService','registerDependencies','selection','_updateURLWithCurrentState','clipPath','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','_instanceService','enableLocalCache','formula.calculation.waiting','findNodePositionByCharIndex','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','debug','BrowserCollaborationSocketService','useCallback','_scene','isTransformMutationFailure','_getScale','START_CALCULATION','ILogService','find','WebBrowserSingleActiveUnitService','_cursorShapes','serializeRangeWithSheet','registerBeforeClose','_transformPreviousActiveRange','name','_initStatusComponent','location','bottom','unitID','PERMISSION_DENIED','CollaborationUIEventService','LocaleService','INVITE_CODE_REQUIRED','getVpScrollXYInfoByPosToVp','setConfig','throttleTime','addHandlerCallback','_startSheetCollabCursor','WebURLService','YUUMI_CONNECTOR_URL_NOT_FOUND','toRgbString','subunit','EMAIL_HAS_BEEN_BOUND','translate(.97)','event$','_unitOnClients','_unitStatus','runRefRangeMutations','IConfigService','collaboration.closeRoom','flatMap','data','LOGIN_FAILED','idSuffix','_startCalculationLimit','fromEventSubject','handleIRemoveRow','ERROR_AGAIN','_disabled','currentSkeleton$','NOT_FOUND','ENTITLE_CHAT_LIMIT_EXCEED','IUniverInstanceService','font','key','Subject','_configService','onPointerLeave$','_messageService','_toggleOnline','createInstance','_colorIndex','_cursors','_registerRenderDependencies','defineProperty','Plugin','_clearOtherTimers','on-line-icon_clip0_910_349','session.collaboration-timeout','editingUnit','APPLY_DUPLICATED','session.connection-failed','href','_commandService','distinctUntilChanged','Success','createIdentifier','TRANSFORM_CHANGE_OBSERVABLE_TYPE','url(#on-line-icon_clip0_910_349)','YUUMI_NO_CUBOID_FOR_QUESTION','set','AUTHORIZE_CODE_ILLEGAL','evenodd','unsubscribe','random','SetWorksheetActivateCommand','Vector2','runOnServer','USERS_LEAVE','dispose','CollaborationEvent','_initEvent','startRow','isFormulaId','_initCommandInterceptor','endColumn','collabStatus.fetchMiss','_shapes','REDEMPTION_CODE_HAS_BEEN_CREATED','replace','Workbook','_removeClearOtherTimer','values','DataLoaderService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_handleEvent','uni.network.url-service','cursorInfo$','handleMoveRange','Injector','_updateCollabCursors','collaboration-client.offline-data-not-saved','IURLService','_session','_context','_maxFormulaLimit','handleDeleteRangeMoveUp','UNAUTHENTICATED','_document','ITransformService','_cachedData','OffLineIcon','USER_NOT_FOUND','_collabSessionService','getParam','_setupBeforeClosingHandler','formula.calculation.started','103590MsKFnm','_dataLoaderService','round','UNIVER_SHEET','imageSourceType','switchMap','handleIRemoveCol','getRangePointData','DOC_RANGE_TYPE','all','defIds','redoState','transformIMECache','IUIPartsService','trim','displayName','getSkeleton','REDEMPTION_CODE_INACTIVE','LICENSE_EXPORT_SIZE_EXCEEDED','_doCreateSocket','status$','_showGuardMessage','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_name','_sheetSkeletonManagerService','AWAITING_WITH_PENDING','REDEMPTION_CODE_FULLY_REDEEMED','_initEntityListener','textRanges','clearInterval','onRendered','NO_OTHER_CLIENTS_EDITING','_anchor','LICENSE_IMPORT_SIZE_EXCEEDED','univer-mr-2\x20univer-flex\x20univer-text-xl','symbol','IDocClipboardService','lineTo','_applyCommand','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','transformSelections','send','override','undoState','_setFormulaLimitStatus','_hover','_syncEditingCollabCursorService','getUnitId','getStateCache','_onCursorUpdate','selections','now','DocStateChangeManagerService','IRemoteInstanceService','ranges','labelPosition','_localStorageService','_revisionService','MemberService','_docTransformIMECacheService','Rect','InsertRangeMoveDownCommandId','activeSheet$','debounceTime','isTransformMutationsWithChangesetSuccess','OFFLINE','Tooltip','DocSelectionManagerService','WECHAT_HAS_BEEN_BOUND','getColor','asObservable','m2Prime','_collabCursorController','DeleteRangeMoveUpCommandId','permission.title','filter','SHEET_VIEWPORT_KEY','LOGIN_TOKEN_PROCESSING_FAILED','syncEditingCollabCursor','OTHER_CLIENT_EDITING','current','entries','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','5zYlcjE','APPLY_NON_SEQUENTIAL_REVISION','ONLINE','getAncestorScale','none','sheetID','Tools','_docSyncEditingCollabCursorService','_entityInit$','CONFLICT','takeUntil','_colorAssignService','TOO_MANY_REQUESTS','_hovered','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','COMPLETION_FINISHED','_initDependencies','_getSheetObject','useRef','use','defs','ThemeService','RegularPolygon','collab-text-range-','getActiveSheet','726099YZyqeF','searchParams','DocIMEInputManagerService','min','eventID','onMouseMove','UNIVER_DOC','SNAPSHOT_HAS_BEEN_REMOVED','onPointerEnter$','_onRefRangeChange','_entities','history','replaceState','skeleton','getTypeOfUnitAdded$','unit','params','REDEMPTION_INVALID_CODE','_clearPolling','IBeforeCloseService','4YGAMzL','setShapeProps','backgroundColor','size','from','SetFormulaCalculationNotificationMutation','_heartbeatTimer','subUnitId','getCurrentRevOfUnit','_collabCursorState$','session.will-retry','16416ZmCRqo','getMemberID','Optional','touchDependencies','ILocalCacheService','_backgroundColor','LOCAL_CACHE_INTERVAL','_hideTimer','CollaborationStatus','isActive','ISocketService','post','executeCommand','_online','_eventUnsubscribe','yellow.400','getformulaLimitStatusUrl','UNDEFINED','Shape','svg','_collaborationController','_getSessionTicket','DesktopCollaborationStatusDisplayController','DependentOn','NOT_COLLAB','transformMutationsWithChangeset','triggerDblclick'];_0x2fa8=function(){return _0x499915;};return _0x2fa8();}J=xt([y(0x0,O[_0x56cc55(0x2db)]),y(0x1,u[_0x56cc55(0x2eb)]),y(0x2,a['Inject'](u[_0x56cc55(0x1f1)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x56cc55(0x32f)](a[_0x56cc55(0x1f2)]))],J);const Bt='collaboration-client-ui.config',Ue={};var Ft=Object[_0x56cc55(0x369)],kt=(_0x20ef38,_0x301a07,_0x441321,_0x1e0091)=>{const _0x205c4f=_0x56cc55;for(var _0x2e414c=_0x1e0091>0x1?void 0x0:_0x1e0091?Ft(_0x301a07,_0x441321):_0x301a07,_0x1ce739=_0x20ef38[_0x205c4f(0x38a)]-0x1,_0x53b2a0;_0x1ce739>=0x0;_0x1ce739--)(_0x53b2a0=_0x20ef38[_0x1ce739])&&(_0x2e414c=_0x53b2a0(_0x2e414c)||_0x2e414c);return _0x2e414c;},Le=(_0x33a93d,_0x23011b)=>(_0x371b88,_0x608b95)=>_0x23011b(_0x371b88,_0x608b95,_0x33a93d);let Z=class{constructor(_0x37acce,_0x71a6b3){const _0x414b33=_0x56cc55;this[_0x414b33(0x358)]=_0x37acce,this[_0x414b33(0x104)]=_0x71a6b3;}[_0x56cc55(0x268)](_0x1b686f){const _0x95b86a=_0x56cc55;this[_0x95b86a(0x324)](_0x1b686f),this[_0x95b86a(0x1ea)](_0x1b686f);}['transformRemoteChangeset'](_0x265eb4){const _0x2e108f=_0x56cc55,{unitID:_0x20c445}=_0x265eb4,_0x2b90e1=this[_0x2e108f(0x104)][_0x2e108f(0x194)](_0x20c445)[_0x2e108f(0xf1)](p[_0x2e108f(0x2ca)]),{redoCache:_0x32b4b2}=_0x2b90e1[_0x2e108f(0x317)]();if(_0x32b4b2[_0x2e108f(0x38a)]===0x0)return _0x265eb4;let _0x25ca7d=a['Tools'][_0x2e108f(0x374)](_0x265eb4['mutations'][0x0]);for(let _0x968d36=0x0;_0x968d36<_0x32b4b2['length'];_0x968d36++){const _0x243055={'id':_0x2e108f(0xf6),'params':{..._0x32b4b2[_0x968d36]}},_0x15fc88=this[_0x2e108f(0x358)]['transformMutation'](_0x25ca7d,_0x243055,!0x1);if(v[_0x2e108f(0x1e1)](_0x15fc88))throw _0x15fc88['error'];_0x25ca7d=_0x15fc88[_0x2e108f(0x12e)];}return{...a[_0x2e108f(0x2b5)][_0x2e108f(0x374)](_0x265eb4),'mutations':[_0x25ca7d]};}[_0x56cc55(0x324)](_0x4cd99b){const _0x71ab6e=_0x56cc55,{unitID:_0x1a53bd}=_0x4cd99b,_0xabf045=this[_0x71ab6e(0x104)][_0x71ab6e(0x194)](_0x1a53bd)['with'](p[_0x71ab6e(0x2ca)]),{undoCache:_0x23d1a3,redoCache:_0x316af2}=_0xabf045[_0x71ab6e(0x317)]();if(_0x23d1a3[_0x71ab6e(0x38a)]===0x0||_0x316af2[_0x71ab6e(0x38a)]===0x0)return;const _0x432bfc=[],_0x34cdf2=[];let _0x3fce3f=a[_0x71ab6e(0x2b5)][_0x71ab6e(0x374)](_0x4cd99b[_0x71ab6e(0xf3)][0x0]),_0x3444af=a[_0x71ab6e(0x2b5)][_0x71ab6e(0x374)](_0x4cd99b[_0x71ab6e(0xf3)][0x0]);for(let _0x5431b0=_0x23d1a3[_0x71ab6e(0x38a)]-0x1;_0x5431b0>=0x0;_0x5431b0--){const _0x33464a={'id':_0x71ab6e(0xf6),'params':{..._0x23d1a3[_0x5431b0]}},_0x1c1b6c={'id':_0x71ab6e(0xf6),'params':{..._0x316af2[_0x5431b0]}},_0x4477a2=this[_0x71ab6e(0x358)][_0x71ab6e(0xd3)](_0x3fce3f,_0x33464a,!0x1),_0x4db28a=this['_transformService'][_0x71ab6e(0xd3)](_0x3444af,_0x1c1b6c,!0x1);if(v['isTransformMutationFailure'](_0x4477a2))throw _0x4477a2[_0x71ab6e(0x1b4)];if(v[_0x71ab6e(0x1e1)](_0x4db28a))throw _0x4db28a[_0x71ab6e(0x1b4)];_0x432bfc[_0x71ab6e(0x37d)](_0x4477a2[_0x71ab6e(0x2a3)][_0x71ab6e(0x2d8)]),_0x34cdf2['unshift'](_0x4db28a[_0x71ab6e(0x2a3)][_0x71ab6e(0x2d8)]),_0x3fce3f=_0x4477a2[_0x71ab6e(0x12e)],_0x3444af=_0x4db28a[_0x71ab6e(0x12e)];}_0xabf045[_0x71ab6e(0xd4)]({'undoCache':_0x432bfc,'redoCache':_0x34cdf2});}[_0x56cc55(0x1ea)](_0x345255){const _0x37a9b3=_0x56cc55,{unitID:_0x2aa011}=_0x345255,_0xe757ac=this[_0x37a9b3(0x104)][_0x37a9b3(0x194)](_0x2aa011)['with'](p[_0x37a9b3(0x2ca)]),_0x18d711=_0xe757ac[_0x37a9b3(0xe4)]();if(_0x18d711==null)return;const _0x5059c0=[{'id':_0x37a9b3(0xf6),'params':{'unitId':_0x345255[_0x37a9b3(0x1ef)],'actions':null,'textRanges':[_0x18d711]}}],_0x17850c=this['_transformService'][_0x37a9b3(0x300)](_0x345255,_0x5059c0);if(!v[_0x37a9b3(0x29c)](_0x17850c))throw _0x17850c[_0x37a9b3(0x1b4)];const _0x49781c=_0x17850c[_0x37a9b3(0x2a3)][0x0]['params'][_0x37a9b3(0x278)];Array[_0x37a9b3(0xde)](_0x49781c)&&_0x49781c[_0x37a9b3(0x38a)]&&_0xe757ac[_0x37a9b3(0x12f)](_0x49781c[0x0]);}};Z=kt([Le(0x0,v[_0x56cc55(0x254)]),Le(0x1,C[_0x56cc55(0x312)])],Z);var jt=Object[_0x56cc55(0x369)],Yt=(_0x16a2cb,_0x5084d8,_0x43442c,_0x507ddb)=>{for(var _0x5738a3=_0x507ddb>0x1?void 0x0:_0x507ddb?jt(_0x5084d8,_0x43442c):_0x5084d8,_0x2240b2=_0x16a2cb['length']-0x1,_0x5f5388;_0x2240b2>=0x0;_0x2240b2--)(_0x5f5388=_0x16a2cb[_0x2240b2])&&(_0x5738a3=_0x5f5388(_0x5738a3)||_0x5738a3);return _0x5738a3;},he=(_0x258368,_0x560bc3)=>(_0x5960f7,_0x307029)=>_0x560bc3(_0x5960f7,_0x307029,_0x258368);let Q=class{constructor(_0x1502b4,_0x45f6a5,_0x448521){const _0x38c7a5=_0x56cc55;this[_0x38c7a5(0x18a)]=_0x1502b4,this[_0x38c7a5(0x358)]=_0x45f6a5,this[_0x38c7a5(0x122)]=_0x448521;}[_0x56cc55(0x360)](_0x5e4ab8){this['_transformHistoryAndStateStack'](_0x5e4ab8);}[_0x56cc55(0x345)](_0x275e05){const _0x4065b5=_0x56cc55,{unitID:_0x2a82b2}=_0x275e05,{collaboration:_0x39f1b2}=this[_0x4065b5(0x122)][_0x4065b5(0x28c)](_0x2a82b2);if(_0x39f1b2[_0x4065b5(0x38a)]===0x0)return _0x275e05;let _0x6b84=a[_0x4065b5(0x2b5)][_0x4065b5(0x374)](_0x275e05['mutations'][0x0]);for(let _0xc97646=0x0;_0xc97646<_0x39f1b2[_0x4065b5(0x38a)];_0xc97646++){const _0x2c96d7={'id':_0x4065b5(0xf6),'params':{'unitId':_0x39f1b2[_0xc97646]['unitId'],..._0x39f1b2[_0xc97646][_0x4065b5(0x267)]}},_0x339e41=this[_0x4065b5(0x358)][_0x4065b5(0xd3)](_0x6b84,_0x2c96d7,!0x1);if(v[_0x4065b5(0x1e1)](_0x339e41))throw _0x339e41[_0x4065b5(0x1b4)];_0x6b84=_0x339e41[_0x4065b5(0x12e)];}return{...a['Tools'][_0x4065b5(0x374)](_0x275e05),'mutations':[_0x6b84]};}[_0x56cc55(0x346)](_0x4e9181){const _0x2bb537=_0x56cc55,{unitID:_0x210cbe}=_0x4e9181,{history:_0x47bb1b,collaboration:_0x1107dd}=this[_0x2bb537(0x122)][_0x2bb537(0x28c)](_0x210cbe);if(_0x47bb1b[_0x2bb537(0x38a)]===0x0&&_0x1107dd[_0x2bb537(0x38a)]===0x0)return;const _0x708f0d=[],_0xcc5c1f=[];let _0x4f0af2=a[_0x2bb537(0x2b5)]['deepClone'](_0x4e9181[_0x2bb537(0xf3)][0x0]),_0x43396b=a['Tools'][_0x2bb537(0x374)](_0x4e9181[_0x2bb537(0xf3)][0x0]);for(let _0x37b8eb=_0x47bb1b[_0x2bb537(0x38a)]-0x1;_0x37b8eb>=0x0;_0x37b8eb--){const _0x3efdb6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x47bb1b[_0x37b8eb][_0x2bb537(0x1cb)],..._0x47bb1b[_0x37b8eb][_0x2bb537(0x287)]}},_0x1701ab={'id':_0x2bb537(0xf6),'params':{'unitId':_0x47bb1b[_0x37b8eb][_0x2bb537(0x1cb)],..._0x47bb1b[_0x37b8eb]['redoState']}},_0x2e9052=this[_0x2bb537(0x358)][_0x2bb537(0xd3)](_0x4f0af2,_0x3efdb6,!0x1),_0x3ef9f7=this['_transformService'][_0x2bb537(0xd3)](_0x43396b,_0x1701ab,!0x1);if(v[_0x2bb537(0x1e1)](_0x2e9052))throw _0x2e9052['error'];if(v[_0x2bb537(0x1e1)](_0x3ef9f7))throw _0x3ef9f7[_0x2bb537(0x1b4)];_0x708f0d[_0x2bb537(0x37d)]({..._0x47bb1b[_0x37b8eb],'undoState':_0x2e9052[_0x2bb537(0x2a3)]['params'],'redoState':_0x3ef9f7[_0x2bb537(0x2a3)][_0x2bb537(0x2d8)]}),_0x4f0af2=_0x2e9052[_0x2bb537(0x12e)],_0x43396b=_0x3ef9f7[_0x2bb537(0x12e)];}_0x4f0af2=a['Tools']['deepClone'](_0x4e9181[_0x2bb537(0xf3)][0x0]),_0x43396b=a[_0x2bb537(0x2b5)][_0x2bb537(0x374)](_0x4e9181[_0x2bb537(0xf3)][0x0]);for(let _0x261d28=_0x1107dd[_0x2bb537(0x38a)]-0x1;_0x261d28>=0x0;_0x261d28--){const _0x2818f6={'id':_0x2bb537(0xf6),'params':{'unitId':_0x1107dd[_0x261d28]['unitId'],..._0x1107dd[_0x261d28][_0x2bb537(0x287)]}},_0x1a20c2={'id':_0x2bb537(0xf6),'params':{'unitId':_0x1107dd[_0x261d28][_0x2bb537(0x1cb)],..._0x1107dd[_0x261d28]['redoState']}},_0x3767ed=this[_0x2bb537(0x358)][_0x2bb537(0xd3)](_0x4f0af2,_0x2818f6,!0x1),_0x1a53db=this[_0x2bb537(0x358)][_0x2bb537(0xd3)](_0x43396b,_0x1a20c2,!0x1);if(v['isTransformMutationFailure'](_0x3767ed))throw _0x3767ed[_0x2bb537(0x1b4)];if(v[_0x2bb537(0x1e1)](_0x1a53db))throw _0x1a53db[_0x2bb537(0x1b4)];_0xcc5c1f[_0x2bb537(0x37d)]({..._0x1107dd[_0x261d28],'undoState':_0x3767ed['m2Prime'][_0x2bb537(0x2d8)],'redoState':_0x1a53db['m2Prime']['params']}),_0x4f0af2=_0x3767ed[_0x2bb537(0x12e)],_0x43396b=_0x1a53db[_0x2bb537(0x12e)];}this[_0x2bb537(0x122)][_0x2bb537(0x16a)](_0x210cbe,{'history':_0x708f0d,'collaboration':_0xcc5c1f});}};Q=Yt([he(0x0,a[_0x56cc55(0x32f)](a['Injector'])),he(0x1,v[_0x56cc55(0x254)]),he(0x2,a[_0x56cc55(0x32f)](p[_0x56cc55(0x290)]))],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x471e43,_0x1d9ba7,_0x52d635,_0x5a4f76)=>{const _0x1e871c=_0x56cc55;for(var _0x5989f8=_0x5a4f76>0x1?void 0x0:_0x5a4f76?Ht(_0x1d9ba7,_0x52d635):_0x1d9ba7,_0x59cefd=_0x471e43[_0x1e871c(0x38a)]-0x1,_0x39851c;_0x59cefd>=0x0;_0x59cefd--)(_0x39851c=_0x471e43[_0x59cefd])&&(_0x5989f8=_0x39851c(_0x5989f8)||_0x5989f8);return _0x5989f8;},Me=(_0x1085e7,_0x118365)=>(_0x8b5068,_0x48e9c3)=>_0x118365(_0x8b5068,_0x48e9c3,_0x1085e7);let ee=class{constructor(_0x185deb,_0x3a1b07){const _0x46266c=_0x56cc55;this[_0x46266c(0x18a)]=_0x185deb,this[_0x46266c(0x358)]=_0x3a1b07;}['transformSelections'](_0x54dde7){const _0x28ee70=_0x56cc55;var _0x28817b;const _0x3faf38=this['_injector'][_0x28ee70(0x15d)](W['DocSelectionManagerService']),_0x515cc0=(_0x28817b=_0x3faf38[_0x28ee70(0x19d)]())!=null?_0x28817b:[];if(_0x515cc0[_0x28ee70(0x38a)]===0x0)return;const _0x924c4=_0x54dde7['unitID'],_0x3cea58=[{'id':_0x28ee70(0xf6),'params':{'unitId':_0x924c4,'actions':null,'textRanges':_0x515cc0}}],_0x1fc6cb=this[_0x28ee70(0x358)][_0x28ee70(0x300)](_0x54dde7,_0x3cea58);if(!v[_0x28ee70(0x29c)](_0x1fc6cb))throw _0x1fc6cb['error'];const _0x537c02=_0x1fc6cb['m2Prime'][0x0][_0x28ee70(0x2d8)][_0x28ee70(0x278)];Array[_0x28ee70(0xde)](_0x537c02)&&_0x537c02[_0x28ee70(0x38a)]&&_0x3faf38[_0x28ee70(0x18b)](_0x537c02,{'unitId':_0x924c4,'subUnitId':_0x924c4},!0x1);}};ee=Wt([Me(0x0,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),Me(0x1,v[_0x56cc55(0x254)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x5c02fe,_0x67e5c2,_0x3fdc44,_0x397d52)=>{const _0x44050c=_0x56cc55;for(var _0x1258db=_0x397d52>0x1?void 0x0:_0x397d52?Vt(_0x67e5c2,_0x3fdc44):_0x67e5c2,_0x536217=_0x5c02fe[_0x44050c(0x38a)]-0x1,_0x2ee370;_0x536217>=0x0;_0x536217--)(_0x2ee370=_0x5c02fe[_0x536217])&&(_0x1258db=_0x2ee370(_0x1258db)||_0x1258db);return _0x1258db;},N=(_0x238b48,_0x48cd77)=>(_0x562861,_0x3053b1)=>_0x48cd77(_0x562861,_0x3053b1,_0x238b48);let te=class extends a[_0x56cc55(0x30f)]{constructor(_0x20a009,_0x5c5b0a,_0xedaa61,_0x64f181,_0xea1139,_0x21f32b,_0x156a4c,_0x5a9458){const _0x1f21a9=_0x56cc55;super(),_(this,_0x1f21a9(0x1ce),new I[(_0x1f21a9(0x1b2))](u[_0x1f21a9(0x2ef)][_0x1f21a9(0x2ff)])),(this['_docStateChangeManagerService']=_0x20a009,this[_0x1f21a9(0x2fb)]=_0x5c5b0a,this[_0x1f21a9(0x297)]=_0xedaa61,this[_0x1f21a9(0x386)]=_0x64f181,this[_0x1f21a9(0x18c)]=_0xea1139,this[_0x1f21a9(0x2b6)]=_0x21f32b,this['_messageService']=_0x156a4c,this[_0x1f21a9(0xed)]=_0x5a9458,this[_0x1f21a9(0x277)]());}['_initEntityListener'](){const _0x55459a=_0x56cc55;this[_0x55459a(0x303)](this[_0x55459a(0x2fb)][_0x55459a(0xe0)]['subscribe'](_0x45cba7=>{const _0x24892d=_0x55459a,_0x1c0085=this[_0x24892d(0x122)]['docStateChange$']['subscribe'](_0xd28b01=>{const _0x4b4997=_0x24892d;if(_0xd28b01==null)return;const {unitId:_0x2fbf9e,redoState:_0x29c20b,commandId:_0x4d6e82}=_0xd28b01;if(_0x2fbf9e!==_0x45cba7['unitID'])return;const _0x574fd1={'id':_0x4d6e82,'type':a[_0x4b4997(0xf2)]['MUTATION'],'params':{'unitId':_0x2fbf9e,'actions':_0x29c20b[_0x4b4997(0xfb)],'textRanges':null}};_0x45cba7['onLocalMutation'](_0x574fd1);});if(_0x45cba7[_0x24892d(0x303)](_0x1c0085),_0x45cba7 instanceof u[_0x24892d(0xf8)]){const _0x27f936={'onTransformIME':_0xd2d6aa=>this[_0x24892d(0x297)][_0x24892d(0x268)](_0xd2d6aa),'onTransformState':_0xe16827=>this['_docTransformStateCacheService'][_0x24892d(0x360)](_0xe16827),'onTransformSelections':_0x4d9417=>this[_0x24892d(0x18c)][_0x24892d(0x284)](_0x4d9417),'onSyncEditingCollabCursor':_0x50303c=>this[_0x24892d(0x2b6)][_0x24892d(0x2aa)](_0x50303c),'onTransformRemoteChangesetByIMECache':_0x2428b5=>this[_0x24892d(0x297)][_0x24892d(0x345)](_0x2428b5),'onTransformRemoteChangesetByStateCache':_0x4d5926=>this[_0x24892d(0x386)][_0x24892d(0x345)](_0x4d5926)};_0x45cba7[_0x24892d(0x1f7)](_0x27f936);}}));}};te=Gt([N(0x0,a[_0x56cc55(0x32f)](p['DocStateChangeManagerService'])),N(0x1,a[_0x56cc55(0x32f)](u['CollaborationController'])),N(0x2,a[_0x56cc55(0x32f)](Z)),N(0x3,a['Inject'](Q)),N(0x4,a[_0x56cc55(0x32f)](ee)),N(0x5,a[_0x56cc55(0x32f)](Oe)),N(0x6,O[_0x56cc55(0x149)]),N(0x7,a[_0x56cc55(0x32f)](a['LocaleService']))],te);var V=(_0x4548e6=>(_0x4548e6[_0x4548e6[_0x56cc55(0x2f8)]=0x0]=_0x56cc55(0x2f8),_0x4548e6[_0x4548e6['OK']=0x1]='OK',_0x4548e6[_0x4548e6[_0x56cc55(0x118)]=0x2]=_0x56cc55(0x118),_0x4548e6[_0x4548e6[_0x56cc55(0x1f0)]=0x3]=_0x56cc55(0x1f0),_0x4548e6[_0x4548e6['NOT_FOUND']=0x4]=_0x56cc55(0x20f),_0x4548e6[_0x4548e6[_0x56cc55(0x252)]=0x5]=_0x56cc55(0x252),_0x4548e6[_0x4548e6['ALREADY_EXISTS']=0x6]=_0x56cc55(0x33d),_0x4548e6[_0x4548e6['INVALID_ARGUMENT']=0x7]=_0x56cc55(0x381),_0x4548e6[_0x4548e6[_0x56cc55(0x2bb)]=0x8]=_0x56cc55(0x2bb),_0x4548e6[_0x4548e6['COMPLETION_FINISHED']=0x9]=_0x56cc55(0x2be),_0x4548e6[_0x4548e6[_0x56cc55(0x207)]=0xa]=_0x56cc55(0x207),_0x4548e6[_0x4548e6[_0x56cc55(0x308)]=0xb]=_0x56cc55(0x308),_0x4548e6[_0x4548e6[_0x56cc55(0x107)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4548e6[_0x4548e6[_0x56cc55(0x347)]=0xd]=_0x56cc55(0x347),_0x4548e6[_0x4548e6['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4548e6[_0x4548e6['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x56cc55(0x22e),_0x4548e6[_0x4548e6[_0x56cc55(0x2a9)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x4548e6[_0x4548e6['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x56cc55(0x17b),_0x4548e6[_0x4548e6[_0x56cc55(0x20c)]=0x65]=_0x56cc55(0x20c),_0x4548e6[_0x4548e6[_0x56cc55(0x257)]=0xc9]=_0x56cc55(0x257),_0x4548e6[_0x4548e6['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x4548e6[_0x4548e6[_0x56cc55(0x371)]=0x1389]=_0x56cc55(0x371),_0x4548e6[_0x4548e6['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4548e6[_0x4548e6['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x56cc55(0x2cf),_0x4548e6[_0x4548e6[_0x56cc55(0x145)]=0x1773]=_0x56cc55(0x145),_0x4548e6[_0x4548e6[_0x56cc55(0x162)]=0x1b59]=_0x56cc55(0x162),_0x4548e6[_0x4548e6['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x56cc55(0x2b0),_0x4548e6[_0x4548e6[_0x56cc55(0x13f)]=0x1b5b]=_0x56cc55(0x13f),_0x4548e6[_0x4548e6[_0x56cc55(0x11a)]=0x1b5c]=_0x56cc55(0x11a),_0x4548e6[_0x4548e6['APPLY_DUPLICATED']=0x1b5d]=_0x56cc55(0x223),_0x4548e6[_0x4548e6['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4548e6[_0x4548e6[_0x56cc55(0x385)]=0x2329]=_0x56cc55(0x385),_0x4548e6[_0x4548e6[_0x56cc55(0xdd)]=0x232a]=_0x56cc55(0xdd),_0x4548e6[_0x4548e6[_0x56cc55(0x27d)]=0x232b]=_0x56cc55(0x27d),_0x4548e6[_0x4548e6[_0x56cc55(0x26e)]=0x232c]=_0x56cc55(0x26e),_0x4548e6[_0x4548e6[_0x56cc55(0x110)]=0x232d]=_0x56cc55(0x110),_0x4548e6[_0x4548e6[_0x56cc55(0x35a)]=0x2711]=_0x56cc55(0x35a),_0x4548e6[_0x4548e6[_0x56cc55(0x1bc)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4548e6[_0x4548e6[_0x56cc55(0x1c7)]=0x2713]=_0x56cc55(0x1c7),_0x4548e6[_0x4548e6[_0x56cc55(0x351)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4548e6[_0x4548e6[_0x56cc55(0x22c)]=0x271a]=_0x56cc55(0x22c),_0x4548e6[_0x4548e6['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x56cc55(0x321),_0x4548e6[_0x4548e6[_0x56cc55(0x320)]=0x271c]=_0x56cc55(0x320),_0x4548e6[_0x4548e6[_0x56cc55(0xfc)]=0x271d]=_0x56cc55(0xfc),_0x4548e6[_0x4548e6[_0x56cc55(0xe9)]=0x271e]=_0x56cc55(0xe9),_0x4548e6[_0x4548e6[_0x56cc55(0x164)]=0x271f]=_0x56cc55(0x164),_0x4548e6[_0x4548e6[_0x56cc55(0x1fa)]=0x2720]=_0x56cc55(0x1fa),_0x4548e6[_0x4548e6[_0x56cc55(0x307)]=0x2af9]=_0x56cc55(0x307),_0x4548e6[_0x4548e6['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x56cc55(0xee),_0x4548e6[_0x4548e6[_0x56cc55(0x33f)]=0x2ee2]='INVALID_INVITE_CODE',_0x4548e6[_0x4548e6[_0x56cc55(0x1f3)]=0x2ee3]=_0x56cc55(0x1f3),_0x4548e6[_0x4548e6['USER_NOT_INVITED_CODE']=0x2ee4]=_0x56cc55(0xe7),_0x4548e6[_0x4548e6[_0x56cc55(0x373)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4548e6[_0x4548e6[_0x56cc55(0x2a0)]=0x32c9]=_0x56cc55(0x2a0),_0x4548e6[_0x4548e6[_0x56cc55(0x38b)]=0x32ca]=_0x56cc55(0x38b),_0x4548e6[_0x4548e6[_0x56cc55(0x1fd)]=0x32cb]=_0x56cc55(0x1fd),_0x4548e6[_0x4548e6[_0x56cc55(0x189)]=0x36b1]=_0x56cc55(0x189),_0x4548e6[_0x4548e6['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x56cc55(0x17e),_0x4548e6[_0x4548e6[_0x56cc55(0x125)]=0x36b3]=_0x56cc55(0x125),_0x4548e6[_0x4548e6[_0x56cc55(0x1c9)]=0x36b4]=_0x56cc55(0x1c9),_0x4548e6[_0x4548e6[_0x56cc55(0x210)]=0x3715]=_0x56cc55(0x210),_0x4548e6[_0x4548e6['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x4548e6[_0x4548e6['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x56cc55(0x14d),_0x4548e6[_0x4548e6[_0x56cc55(0x2d9)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x4548e6[_0x4548e6[_0x56cc55(0x26d)]=0x3a9a]=_0x56cc55(0x26d),_0x4548e6[_0x4548e6[_0x56cc55(0x276)]=0x3a9b]=_0x56cc55(0x276),_0x4548e6[_0x4548e6[_0x56cc55(0x15e)]=0x3a9c]=_0x56cc55(0x15e),_0x4548e6[_0x4548e6['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x56cc55(0xd8),_0x4548e6[_0x4548e6[_0x56cc55(0x272)]=0x3a9e]=_0x56cc55(0x272),_0x4548e6[_0x4548e6[_0x56cc55(0x23f)]=0x3a9f]=_0x56cc55(0x23f),_0x4548e6[_0x4548e6['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x4548e6))(V||{});function Xt(_0x40348a){const _0x3eac2f=_0x56cc55;var _0x73ae58,_0x21a2da;const _0x18bd94=(_0x73ae58=_0x40348a['stageInfo'])==null?void 0x0:_0x73ae58[_0x3eac2f(0x142)],_0x43cc45=((_0x21a2da=_0x40348a[_0x3eac2f(0x196)])==null?void 0x0:_0x21a2da[_0x3eac2f(0x1ca)])||0x0;return _0x18bd94===x[_0x3eac2f(0x161)][_0x3eac2f(0x1e3)]&&_0x43cc45>0x0;}function Kt(_0x5b76dc){const _0x29e49a=_0x56cc55;return _0x5b76dc[_0x29e49a(0xe8)]===x['FormulaExecutedStateType'][_0x29e49a(0x30d)];}var qt=Object[_0x56cc55(0x369)],zt=(_0x4a7a7b,_0x3d3f7b,_0x30b09a,_0x2ca370)=>{for(var _0xb03445=_0x2ca370>0x1?void 0x0:_0x2ca370?qt(_0x3d3f7b,_0x30b09a):_0x3d3f7b,_0x52d641=_0x4a7a7b['length']-0x1,_0x3ced8c;_0x52d641>=0x0;_0x52d641--)(_0x3ced8c=_0x4a7a7b[_0x52d641])&&(_0xb03445=_0x3ced8c(_0xb03445)||_0xb03445);return _0xb03445;},L=(_0x164f15,_0x119056)=>(_0x479717,_0x35eae2)=>_0x119056(_0x479717,_0x35eae2,_0x164f15);const Jt=_0x56cc55(0x1c6),Zt='/universer-api/license/formula/limit/start',Qt='/universer-api/license/formula/limit/done';let se=class extends a[_0x56cc55(0x30f)]{constructor(_0x160954,_0x4ac40d,_0x241695,_0x32b613,_0x152973,_0xefe685,_0x2121ce){const _0x24be6d=_0x56cc55;super(),_(this,_0x24be6d(0x1a0),null),_(this,_0x24be6d(0x250),0x0),_(this,_0x24be6d(0x187),0x0),_(this,'_taskIds',[]),_(this,_0x24be6d(0x313),0x0),(this[_0x24be6d(0x217)]=_0x160954,this[_0x24be6d(0x226)]=_0x4ac40d,this[_0x24be6d(0x215)]=_0x241695,this[_0x24be6d(0x120)]=_0x32b613,this[_0x24be6d(0x389)]=_0x152973,this[_0x24be6d(0x36e)]=_0xefe685,this[_0x24be6d(0xed)]=_0x2121ce,this[_0x24be6d(0x23b)]());}['_initCommandInterceptor'](){const _0x359327=_0x56cc55;this[_0x359327(0x303)](this['_commandService'][_0x359327(0x361)]((_0x269653,_0x949ec0)=>{const _0x27e479=_0x359327;if(_0x269653['id']!==x[_0x27e479(0x14a)]['id'])return;const _0x946af0=_0x269653[_0x27e479(0x2d8)];if(!this[_0x27e479(0x163)](_0x946af0['dirtyRanges']))return;if(!this[_0x27e479(0x1ab)]())throw this[_0x27e479(0x1cd)](_0x269653,_0x949ec0),this[_0x27e479(0x271)](),new a['CanceledError']();})),this['disposeWithMe'](this[_0x359327(0x226)][_0x359327(0x11d)]((_0xa288b6,_0x2672db)=>{const _0x1bfd6a=_0x359327;if(_0xa288b6['id']!==x[_0x1bfd6a(0x2e1)]['id'])return;const _0xab9655=_0xa288b6[_0x1bfd6a(0x2d8)];if(Xt(_0xab9655)){const _0x413ad4=a[_0x1bfd6a(0x368)]();this[_0x1bfd6a(0xec)]['push'](_0x413ad4),this[_0x1bfd6a(0x209)](_0x413ad4);}else{if(Kt(_0xab9655)&&this[_0x1bfd6a(0xec)][_0x1bfd6a(0x38a)]>0x0){const _0x18af0e=this[_0x1bfd6a(0xec)][_0x1bfd6a(0x133)]();this[_0x1bfd6a(0x387)](_0x18af0e);}}}));}['dispose'](){const _0x397c4d=_0x56cc55;super['dispose'](),this[_0x397c4d(0x2da)](),this[_0x397c4d(0xec)]=[],this[_0x397c4d(0x187)]=0x0,this[_0x397c4d(0x250)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x56cc55(0x1cd)](_0x3ccb02,_0x47b7c8){const _0x39d72d=_0x56cc55;for(let _0x10f9d5=0x0;_0x10f9d5<0x1e;_0x10f9d5++)try{if(await this[_0x39d72d(0x31f)](),this['_checkCalculationAvailable']()){this[_0x39d72d(0x282)](_0x3ccb02,_0x47b7c8),this[_0x39d72d(0x217)][_0x39d72d(0x357)]({'content':this[_0x39d72d(0xed)]['t'](_0x39d72d(0x25b)),'type':T[_0x39d72d(0x363)][_0x39d72d(0x228)]});return;}await new Promise(_0x2217ab=>{const _0x401907=_0x39d72d;this[_0x401907(0x1a0)]=window[_0x401907(0x185)](_0x2217ab,0x3e8);});}catch(_0x240d0d){this[_0x39d72d(0x36e)][_0x39d72d(0x1b4)](_0x240d0d);}this[_0x39d72d(0x217)][_0x39d72d(0x357)]({'content':this['_localeService']['t'](_0x39d72d(0x378)),'type':T[_0x39d72d(0x363)]['Error']});}[_0x56cc55(0x282)](_0x42cd51,_0xb0dbee){const _0x371e03=_0x56cc55;try{this[_0x371e03(0x226)][_0x371e03(0x2f3)](_0x42cd51['id'],_0x42cd51['params'],_0xb0dbee);}catch(_0xb1a79e){this[_0x371e03(0x36e)]['error'](_0xb1a79e);}}[_0x56cc55(0x288)](_0x76d1f4,_0xdf4314){const _0xc7a898=_0x56cc55;_0xdf4314<this['_lastResponseTimestamp']||(this[_0xc7a898(0x313)]=_0xdf4314,this[_0xc7a898(0x250)]=Number['parseInt'](_0x76d1f4[_0xc7a898(0x186)]),this['_currentUsage']=Number[_0xc7a898(0xfd)](_0x76d1f4['currentUsage']));}async[_0x56cc55(0x209)](_0x4997bb){const _0x41431f=_0x56cc55;var _0x112e55,_0x2c94d4;const _0x596bec=Date[_0x41431f(0x28f)]();try{const _0x294007=((_0x112e55=this['_configService']['getConfig'](u[_0x41431f(0x245)]))==null?void 0x0:_0x112e55[_0x41431f(0x199)])||Zt,_0x21f53f=(await this[_0x41431f(0x120)]['post'](_0x294007,{'body':JSON[_0x41431f(0x379)]({'taskId':_0x4997bb})}))[_0x41431f(0xe1)];if(((_0x2c94d4=_0x21f53f[_0x41431f(0x1b4)])==null?void 0x0:_0x2c94d4[_0x41431f(0x1b5)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x21f53f[_0x41431f(0x14b)],_0x596bec);}catch(_0x5b4956){this[_0x41431f(0x36e)][_0x41431f(0x1b4)](_0x5b4956);}}async[_0x56cc55(0x31f)](_0x4fbe7c){const _0x3e89d0=_0x56cc55;var _0x4a68d7,_0x39a523;const _0x124aa0=Date[_0x3e89d0(0x28f)]();try{const _0x473930=((_0x4a68d7=this[_0x3e89d0(0x215)]['getConfig'](u[_0x3e89d0(0x245)]))==null?void 0x0:_0x4a68d7[_0x3e89d0(0x2f7)])||Jt,_0x4ef26d=_0x4fbe7c?_0x473930+_0x3e89d0(0x190)+encodeURIComponent(_0x4fbe7c):_0x473930,_0x5c0d0a=(await this[_0x3e89d0(0x120)][_0x3e89d0(0x15d)](_0x4ef26d))[_0x3e89d0(0xe1)];if(((_0x39a523=_0x5c0d0a['error'])==null?void 0x0:_0x39a523[_0x3e89d0(0x1b5)])!==V['OK'])return;this[_0x3e89d0(0x288)](_0x5c0d0a[_0x3e89d0(0x14b)],_0x124aa0);}catch(_0x4fbde5){this['_logService'][_0x3e89d0(0x1b4)](_0x4fbde5);}}async['_releaseCalculationLimit'](_0x5c30de){const _0x4be1e8=_0x56cc55;var _0x3414e8,_0x1bf618;const _0x2d437f=Date[_0x4be1e8(0x28f)]();try{const _0xe07242=((_0x3414e8=this[_0x4be1e8(0x215)][_0x4be1e8(0x33c)](u[_0x4be1e8(0x245)]))==null?void 0x0:_0x3414e8[_0x4be1e8(0x355)])||Qt,_0x11ace2=(await this['_httpService'][_0x4be1e8(0x2f2)](_0xe07242,{'body':JSON[_0x4be1e8(0x379)]({'taskId':_0x5c30de})}))['body'];if(((_0x1bf618=_0x11ace2['error'])==null?void 0x0:_0x1bf618[_0x4be1e8(0x1b5)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x11ace2[_0x4be1e8(0x14b)],_0x2d437f);}catch(_0x2b9b21){this[_0x4be1e8(0x36e)][_0x4be1e8(0x1b4)](_0x2b9b21);}}[_0x56cc55(0x1ab)](){const _0x1390f1=_0x56cc55;return this[_0x1390f1(0x250)]===0x0?!0x0:this[_0x1390f1(0x250)]-this[_0x1390f1(0x187)]>0x0;}[_0x56cc55(0x2da)](){const _0x3e2c90=_0x56cc55;this[_0x3e2c90(0x1a0)]&&(clearTimeout(this[_0x3e2c90(0x1a0)]),this[_0x3e2c90(0x1a0)]=null);}[_0x56cc55(0x271)](){const _0x472e88=_0x56cc55;this[_0x472e88(0x217)][_0x472e88(0x357)]({'content':this[_0x472e88(0xed)]['t'](_0x472e88(0x1da)),'type':T[_0x472e88(0x363)][_0x472e88(0x334)]});}[_0x56cc55(0x163)](_0x2ca328){const _0x593da1=_0x56cc55;for(const _0xa1dd56 of _0x2ca328){const {unitId:_0x22c1f8,sheetId:_0x15b664,range:_0x96a9d3}=_0xa1dd56,_0x21eecc=this[_0x593da1(0x389)]['getUnit'](_0x22c1f8);if(!_0x21eecc)continue;const _0x1903b2=_0x21eecc['getSheetBySheetId'](_0x15b664);if(!_0x1903b2)continue;const _0x228963=_0x1903b2[_0x593da1(0x375)]();for(let _0x1b0f13=_0x96a9d3[_0x593da1(0x239)];_0x1b0f13<=_0x96a9d3[_0x593da1(0x367)];_0x1b0f13++)for(let _0x5d1096=_0x96a9d3[_0x593da1(0x103)];_0x5d1096<=_0x96a9d3[_0x593da1(0x23c)];_0x5d1096++){const _0x5d5c72=_0x228963[_0x593da1(0x31d)](_0x1b0f13,_0x5d1096);if(_0x5d5c72&&(a[_0x593da1(0x348)](_0x5d5c72['f'])||a[_0x593da1(0x23a)](_0x5d5c72['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a['Inject'](O[_0x56cc55(0x149)])),L(0x1,a['ICommandService']),L(0x2,a[_0x56cc55(0x203)]),L(0x3,a[_0x56cc55(0x32f)](G['HTTPService'])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x56cc55(0x1e4)]),L(0x6,a[_0x56cc55(0x32f)](a[_0x56cc55(0x1f2)]))],se);var es=Object['getOwnPropertyDescriptor'],ts=(_0x437249,_0x4a6785,_0x46fbb5,_0x27a9ad)=>{for(var _0x170b9d=_0x27a9ad>0x1?void 0x0:_0x27a9ad?es(_0x4a6785,_0x46fbb5):_0x4a6785,_0x676606=_0x437249['length']-0x1,_0x32d60c;_0x676606>=0x0;_0x676606--)(_0x32d60c=_0x437249[_0x676606])&&(_0x170b9d=_0x32d60c(_0x170b9d)||_0x170b9d);return _0x170b9d;},ue=(_0x5608f9,_0x3c2683)=>(_0x5290fa,_0x14cf7e)=>_0x3c2683(_0x5290fa,_0x14cf7e,_0x5608f9);let Ee=class extends a[_0x56cc55(0x30f)]{constructor(_0xe803e9,_0x49f0f9,_0x474398){const _0x3f2d61=_0x56cc55;super(),_(this,_0x3f2d61(0x255),new Map()),_(this,_0x3f2d61(0x316),new Map()),_(this,_0x3f2d61(0x20d),!0x1),(this[_0x3f2d61(0x215)]=_0xe803e9,this[_0x3f2d61(0x294)]=_0x49f0f9,this[_0x3f2d61(0x295)]=_0x474398);}[_0x56cc55(0x311)](){this['_disabled']=!0x0;}[_0x56cc55(0x1d9)](){const _0x5f3acf=_0x56cc55;this[_0x5f3acf(0x20d)]=!0x1;}get['saveTaskMap'](){const _0x549eee=_0x56cc55;return this[_0x549eee(0x316)];}[_0x56cc55(0x236)](){const _0x26d3e7=_0x56cc55;this[_0x26d3e7(0x148)]()[_0x26d3e7(0x326)](()=>super['dispose']());}async[_0x56cc55(0x113)](_0x40dff5){const _0xeeaa30=_0x56cc55;return this[_0xeeaa30(0x20d)]?null:this['_localStorageService']['getItem'](u['getLocalCacheKey'](_0x40dff5));}async['saveOfflineData'](_0x8f5f01,_0x3a5f59){const _0x2bbe96=_0x56cc55;return!!this['_localStorageService'][_0x2bbe96(0x13b)](_0x8f5f01,_0x3a5f59);}[_0x56cc55(0x391)](_0x5e3196,_0x263216,_0x11f742,_0x280327){const _0x2a5337=_0x56cc55,_0x1442e4=this[_0x2a5337(0x295)][_0x2a5337(0x2e4)](_0x5e3196);this[_0x2a5337(0x255)]['set'](_0x5e3196,{'unitID':_0x5e3196,'type':_0x263216,'awaitingChangeset':_0x11f742,'mutations':_0x280327,'rev':_0x1442e4}),this[_0x2a5337(0x316)][_0x2a5337(0x36b)](_0x5e3196)||this['_scheduleSaving'](_0x5e3196);}[_0x56cc55(0x1d0)](_0x4bc332){const _0x44414c=_0x56cc55,_0x21cfde=this[_0x44414c(0x171)]();_0x21cfde===0x0?this[_0x44414c(0x1c0)](_0x4bc332):this[_0x44414c(0x316)]['set'](_0x4bc332,setTimeout(()=>this[_0x44414c(0x1c0)](_0x4bc332),_0x21cfde));}['_getSaveTimeout'](){const _0x526bd7=_0x56cc55;var _0xc01f06;return(_0xc01f06=this[_0x526bd7(0x215)][_0x526bd7(0x33c)](u[_0x526bd7(0x150)]))!=null?_0xc01f06:u[_0x526bd7(0x2ed)];}['_saveCache'](_0x9043d0){const _0x44df87=_0x56cc55,_0x14468e=this[_0x44df87(0x316)][_0x44df87(0x15d)](_0x9043d0);return _0x14468e!==void 0x0&&window[_0x44df87(0x38f)](_0x14468e),this[_0x44df87(0x294)][_0x44df87(0x13b)](u['getLocalCacheKey'](_0x9043d0),this[_0x44df87(0x255)]['get'](_0x9043d0))[_0x44df87(0x326)](()=>this[_0x44df87(0x316)][_0x44df87(0x335)](_0x9043d0));}async[_0x56cc55(0x148)](){const _0x446ab4=_0x56cc55,_0x5ee18d=[];this['_saveTaskMap'][_0x446ab4(0x306)]((_0xdff3f2,_0x141a45)=>{const _0xb33c55=_0x446ab4;window[_0xb33c55(0x38f)](_0xdff3f2),_0x5ee18d['push'](this[_0xb33c55(0x1c0)](_0x141a45)[_0xb33c55(0x326)](()=>{const _0x33795e=_0xb33c55;this[_0x33795e(0x316)]['delete'](_0x141a45);}));}),await Promise[_0x446ab4(0x265)](_0x5ee18d);}};Ee=ts([ue(0x0,a[_0x56cc55(0x203)]),ue(0x1,a['ILocalStorageService']),ue(0x2,a[_0x56cc55(0x32f)](v['RevisionService']))],Ee);class Fe extends a[_0x56cc55(0x19c)]{constructor(){const _0x2a1881=_0x56cc55;super(),_(this,_0x2a1881(0x112)),this[_0x2a1881(0x112)]=I[_0x2a1881(0x325)](window,_0x2a1881(0x100))[_0x2a1881(0x1ad)](I[_0x2a1881(0x2b9)](this[_0x2a1881(0x390)]),I['shareReplay'](0x1),I[_0x2a1881(0x1a6)](void 0x0));}[_0x56cc55(0x1b6)](_0x2892ab,_0x33ebc6,_0x2e07fc=!0x1){const _0x3d80f1=_0x56cc55,_0x25402f=new URL(window['location'][_0x3d80f1(0x225)]);_0x25402f[_0x3d80f1(0x2c9)]['set'](_0x2892ab,_0x33ebc6),_0x2e07fc?window[_0x3d80f1(0x2d3)][_0x3d80f1(0x2d4)]('','',_0x25402f[_0x3d80f1(0x175)]()):window['history'][_0x3d80f1(0x13a)]('','',_0x25402f['toString']());}['removeParam'](_0x19420a,_0x140d60=!0x1){const _0x1c74ed=_0x56cc55,_0x54761c=new URL(window[_0x1c74ed(0x1ed)]['href']);_0x54761c[_0x1c74ed(0x2c9)]['delete'](_0x19420a),_0x140d60?window['history'][_0x1c74ed(0x2d4)]('','',_0x54761c['toString']()):window[_0x1c74ed(0x2d3)][_0x1c74ed(0x13a)]('','',_0x54761c[_0x1c74ed(0x175)]());}['getParam'](_0xdceaac){const _0x2ce4c3=_0x56cc55;var _0x3fb0f7;return(_0x3fb0f7=new URL(window[_0x2ce4c3(0x1ed)][_0x2ce4c3(0x225)])[_0x2ce4c3(0x2c9)][_0x2ce4c3(0x15d)](_0xdceaac))!=null?_0x3fb0f7:void 0x0;}}var ss=Object[_0x56cc55(0x21d)],is=Object[_0x56cc55(0x369)],ns=(_0x523756,_0x52587d,_0x1c90ec)=>_0x52587d in _0x523756?ss(_0x523756,_0x52587d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c90ec}):_0x523756[_0x52587d]=_0x1c90ec,rs=(_0x99d77,_0x4074f6,_0xc6a9b5,_0x287b08)=>{const _0x320374=_0x56cc55;for(var _0x52079b=_0x287b08>0x1?void 0x0:_0x287b08?is(_0x4074f6,_0xc6a9b5):_0x4074f6,_0x41f5ef=_0x99d77[_0x320374(0x38a)]-0x1,_0x44751f;_0x41f5ef>=0x0;_0x41f5ef--)(_0x44751f=_0x99d77[_0x41f5ef])&&(_0x52079b=_0x44751f(_0x52079b)||_0x52079b);return _0x52079b;},Ie=(_0x3c383a,_0x223218)=>(_0x10d41d,_0x398284)=>_0x223218(_0x10d41d,_0x398284,_0x3c383a),os=(_0x406922,_0x235ec8,_0x1a9202)=>ns(_0x406922,_0x235ec8+'',_0x1a9202);const as='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x56cc55(0x11e)]=class extends a[_0x56cc55(0x21e)]{constructor(_0x222369=Ue,_0x415faf,_0x39658c,_0x2be249){const _0x17fc41=_0x56cc55;super(),this['_config']=_0x222369,this['_renderManagerService']=_0x415faf,this[_0x17fc41(0x18a)]=_0x39658c,this[_0x17fc41(0x215)]=_0x2be249;const {..._0x3404cb}=a['merge']({},Ue,this[_0x17fc41(0x1ae)]);this[_0x17fc41(0x215)][_0x17fc41(0x1f5)](Bt,_0x3404cb);}[_0x56cc55(0xdf)](){const _0x44bfdc=_0x56cc55;this['_registerDependencies'](),this[_0x44bfdc(0x2bf)]();}[_0x56cc55(0x27a)](){const _0x125459=_0x56cc55;this[_0x125459(0x21c)]();}[_0x56cc55(0x32b)](){const _0xfb43c7=_0x56cc55;var _0x46e10d;const _0x5e1c04=[[Te],[se],[ee],[Z],[Q],[Oe],[pe,{'useClass':Fe}],[G[_0xfb43c7(0x2f1)],{'useClass':G[_0xfb43c7(0x337)]}],[u['ILocalCacheService'],{'useClass':Ee}],[exports[_0xfb43c7(0x2fd)]],[te],[J],[B],[de],[exports[_0xfb43c7(0x12d)]]];a[_0xfb43c7(0x1d3)](this[_0xfb43c7(0x18a)],a['mergeOverrideWithDependencies'](_0x5e1c04,(_0x46e10d=this[_0xfb43c7(0x1ae)])==null?void 0x0:_0x46e10d[_0xfb43c7(0x286)]));}[_0x56cc55(0x21c)](){const _0x3548b6=_0x56cc55;this[_0x3548b6(0x303)](this[_0x3548b6(0x104)]['registerRenderModule'](a[_0x3548b6(0x15a)][_0x3548b6(0x2ce)],[ge])),this[_0x3548b6(0x303)](this[_0x3548b6(0x104)][_0x3548b6(0x1a3)](a['UniverInstanceType'][_0x3548b6(0x25f)],[ve]));}['_initDependencies'](){const _0x44da0f=_0x56cc55;a[_0x44da0f(0x2ea)](this[_0x44da0f(0x18a)],[[B],[exports[_0x44da0f(0x2fd)]],[te],[J],[exports['CollaborationDataLoaderController']],[se]]);}},os(exports[_0x56cc55(0x11e)],_0x56cc55(0x12a),as),exports['UniverCollaborationClientUIPlugin']=rs([a[_0x56cc55(0x2fe)](u[_0x56cc55(0x16c)]),Ie(0x1,C[_0x56cc55(0x312)]),Ie(0x2,a[_0x56cc55(0x32f)](a['Injector'])),Ie(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var cs=Object[_0x56cc55(0x369)],ls=(_0x273b64,_0x3a48a0,_0x65334a,_0x7fcc78)=>{const _0x20a0e4=_0x56cc55;for(var _0x1e0907=_0x7fcc78>0x1?void 0x0:_0x7fcc78?cs(_0x3a48a0,_0x65334a):_0x3a48a0,_0x1751d9=_0x273b64[_0x20a0e4(0x38a)]-0x1,_0xad8967;_0x1751d9>=0x0;_0x1751d9--)(_0xad8967=_0x273b64[_0x1751d9])&&(_0x1e0907=_0xad8967(_0x1e0907)||_0x1e0907);return _0x1e0907;},H=(_0x440b4d,_0xd4f43c)=>(_0x223793,_0x596f34)=>_0xd4f43c(_0x223793,_0x596f34,_0x440b4d);exports['BrowserCollaborationSocketService']=class extends u[_0x56cc55(0x182)]{constructor(_0x5119a1,_0x2de781,_0x1afed8,_0x52b363,_0x236d63){super(_0x5119a1,_0x2de781,_0x1afed8,_0x52b363,_0x236d63);}async[_0x56cc55(0xd5)](_0x3baa69){const _0x137454=_0x56cc55,_0x8369a=await this['_getSessionTicket'](),_0x5ef2fa=this[_0x137454(0x16e)](_0x3baa69,_0x8369a);return this[_0x137454(0x26f)](_0x5ef2fa);}['_createSocketURL'](_0x1e16ad,_0x59441d){const _0x8b989f=_0x56cc55,_0x1193da=typeof window>'u'?new URL(_0x1e16ad):new URL(_0x1e16ad,window[_0x8b989f(0x1ed)][_0x8b989f(0x11f)]);_0x1193da[_0x8b989f(0x2c9)][_0x8b989f(0x22d)](_0x8b989f(0x319),_0x59441d);const _0x40e805=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8b989f(0x1ed)]['search']);return _0x40e805[_0x8b989f(0x15d)](_0x8b989f(0x370))&&_0x1193da[_0x8b989f(0x2c9)][_0x8b989f(0x22d)]('runId',_0x40e805[_0x8b989f(0x15d)]('runId')),_0x1193da[_0x8b989f(0x175)]();}async[_0x56cc55(0x2fc)](){const _0x7b9c16=_0x56cc55;var _0x4ee30f,_0x26a6a4,_0x593ba4;const _0x4526a7=this['_configService'][_0x7b9c16(0x33c)](u[_0x7b9c16(0x245)]),_0x2729d4=(_0x4ee30f=_0x4526a7==null?void 0x0:_0x4526a7[_0x7b9c16(0x359)])!=null?_0x4ee30f:u[_0x7b9c16(0x146)];return(_0x593ba4=(_0x26a6a4=(await this['_httpService'][_0x7b9c16(0x15d)](_0x2729d4,{'headers':{'Content-Type':_0x7b9c16(0x310)}}))[_0x7b9c16(0xe1)])==null?void 0x0:_0x26a6a4[_0x7b9c16(0x352)])!=null?_0x593ba4:'';}},exports[_0x56cc55(0x1de)]=ls([H(0x0,a['Inject'](a[_0x56cc55(0x24a)])),H(0x1,a[_0x56cc55(0x32f)](G[_0x56cc55(0x13c)])),H(0x2,a[_0x56cc55(0x203)]),H(0x3,a[_0x56cc55(0x1e4)]),H(0x4,v[_0x56cc55(0x1c8)])],exports['BrowserCollaborationSocketService']);var _s=Object[_0x56cc55(0x369)],hs=(_0x30f13e,_0x463e08,_0x21d1dc,_0x596e75)=>{const _0x536a51=_0x56cc55;for(var _0x124c41=_0x596e75>0x1?void 0x0:_0x596e75?_s(_0x463e08,_0x21d1dc):_0x463e08,_0x3b5c9b=_0x30f13e[_0x536a51(0x38a)]-0x1,_0x3dfcbe;_0x3b5c9b>=0x0;_0x3b5c9b--)(_0x3dfcbe=_0x30f13e[_0x3b5c9b])&&(_0x124c41=_0x3dfcbe(_0x124c41)||_0x124c41);return _0x124c41;},Se=(_0x202622,_0x177f1e)=>(_0x397be8,_0x2185ea)=>_0x177f1e(_0x397be8,_0x2185ea,_0x202622);exports[_0x56cc55(0x31c)]=class extends a[_0x56cc55(0x30f)]{constructor(_0x5e5e05,_0x3031e4,_0x984499){const _0x298220=_0x56cc55;super(),this[_0x298220(0x1d8)]=_0x5e5e05,this[_0x298220(0x120)]=_0x3031e4,this[_0x298220(0x215)]=_0x984499;}async[_0x56cc55(0x234)](_0x364093,_0x5c905a,_0x29f96f,..._0x302041){const _0x5dcf7c=_0x56cc55;var _0x1666f2,_0x497629,_0x8a5cae,_0x3675cb;const _0x19bf8f=this[_0x5dcf7c(0x1d8)]['getFocusedUnit']();if(!_0x19bf8f)throw new Error(_0x5dcf7c(0x384));const _0x5a6565=((_0x1666f2=this[_0x5dcf7c(0x215)][_0x5dcf7c(0x33c)](u[_0x5dcf7c(0x2ae)]))!=null?_0x1666f2:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x364093+'/run/'+_0x5c905a,_0x3b3b73=new URL(window[_0x5dcf7c(0x1ed)][_0x5dcf7c(0x225)]),_0x1472c0={'scriptId':_0x364093,'runId':(_0x497629=_0x3b3b73[_0x5dcf7c(0x2c9)]['get'](_0x5dcf7c(0x370)))!=null?_0x497629:'','function':_0x5c905a,'unitId':_0x19bf8f[_0x5dcf7c(0x28b)](),'argsOfFunction':JSON[_0x5dcf7c(0x379)](_0x302041),'invokeId':(_0x8a5cae=_0x29f96f['invokeId'])!=null?_0x8a5cae:'','executionId':(_0x3675cb=_0x29f96f['executionId'])!=null?_0x3675cb:''};try{const _0x40830d=await this[_0x5dcf7c(0x120)][_0x5dcf7c(0x2f2)](_0x5a6565,{'body':_0x1472c0});return _0x40830d[_0x5dcf7c(0xe1)][_0x5dcf7c(0x1b4)]&&_0x40830d['body']['error'][_0x5dcf7c(0x1b5)]!==V['OK']?_0x5dcf7c(0x322):_0x40830d[_0x5dcf7c(0xe1)][_0x5dcf7c(0x169)];}catch{return _0x5dcf7c(0x322);}}},exports[_0x56cc55(0x31c)]=hs([Se(0x0,a[_0x56cc55(0x211)]),Se(0x1,a[_0x56cc55(0x32f)](G['HTTPService'])),Se(0x2,a[_0x56cc55(0x203)])],exports['RemoteUniscriptService']);const Ae=0x7530,Pe=_0x56cc55(0x138);class us extends a[_0x56cc55(0x30f)]{constructor(){const _0x465266=_0x56cc55;super(),_(this,_0x465266(0x354),a[_0x465266(0x368)]()),_(this,_0x465266(0x302),new Set()),_(this,_0x465266(0x200),new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,_0x465266(0x201),new Map()),this[_0x465266(0x10e)]();}['dispose'](){const _0x105e60=_0x56cc55;super[_0x105e60(0x236)](),this['_clearOtherTimers']['forEach']((_0x441809,_0x294c15)=>this['_removeClearOtherTimer'](_0x294c15)),this[_0x105e60(0x2e2)]&&window[_0x105e60(0x279)](this[_0x105e60(0x2e2)]);}['getUnitStatus$'](_0xb8ca7f){const _0x4f7b09=_0x56cc55;return this[_0x4f7b09(0x17f)](_0xb8ca7f)[_0x4f7b09(0x1ad)](I[_0x4f7b09(0x227)]());}[_0x56cc55(0x222)](_0x28fb04){const _0x77901f=_0x56cc55;this[_0x77901f(0x302)][_0x77901f(0x2df)]===0x0&&this['_scheduleHeartbeat'](),this[_0x77901f(0x302)][_0x77901f(0x35c)](_0x28fb04),this[_0x77901f(0x1c2)]({'type':0x0,'memberID':this[_0x77901f(0x354)],'unitIDs':[_0x28fb04],'isForwarded':!0x1});}[_0x56cc55(0x327)](_0x129779){const _0x546971=_0x56cc55;this[_0x546971(0x302)][_0x546971(0x335)](_0x129779),this[_0x546971(0x302)][_0x546971(0x2df)]===0x0&&this[_0x546971(0x2e2)]&&window['clearInterval'](this[_0x546971(0x2e2)]);}[_0x56cc55(0x10e)](){const _0x32721a=_0x56cc55;this[_0x32721a(0x303)](a[_0x32721a(0xd7)](I[_0x32721a(0x325)](window,_0x32721a(0x365))[_0x32721a(0xdc)](_0x44b049=>{const _0x550980=_0x32721a;if(_0x44b049[_0x550980(0x213)]!==Pe||!_0x44b049[_0x550980(0x339)])return;const _0x7e1fda=JSON['parse'](_0x44b049[_0x550980(0x339)]);this[_0x550980(0x246)](_0x7e1fda);}))),window[_0x32721a(0xd9)](_0x32721a(0x37f),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x32721a(0x2e0)](this[_0x32721a(0x302)])}));}[_0x56cc55(0x246)](_0xa0078b){const _0x2a1eb8=_0x56cc55;switch(_0xa0078b['type']){case 0x0:this[_0x2a1eb8(0x115)](_0xa0078b);break;case 0x1:this[_0x2a1eb8(0xf0)](_0xa0078b);break;case 0x2:this[_0x2a1eb8(0x135)](_0xa0078b);break;}}[_0x56cc55(0x115)](_0x1add46){const _0x461585=_0x56cc55,{unitIDs:_0x26ebaf,memberID:_0x2307fa,isForwarded:_0x2ec2af}=_0x1add46;_0x26ebaf[_0x461585(0x306)](_0xabb6b7=>{const _0x2412e1=_0x461585;if(!_0x2ec2af&&this[_0x2412e1(0x200)][_0x2412e1(0x36b)](_0xabb6b7)&&this[_0x2412e1(0x17f)](_0xabb6b7)['next'](u[_0x2412e1(0xe6)][_0x2412e1(0x12c)]),!this[_0x2412e1(0x200)][_0x2412e1(0x36b)](_0xabb6b7)||!this[_0x2412e1(0x200)][_0x2412e1(0x15d)](_0xabb6b7)[_0x2412e1(0x36b)](_0x2307fa)){const _0x324a46=this[_0x2412e1(0x200)][_0x2412e1(0x15d)](_0xabb6b7)||new Set();_0x324a46[_0x2412e1(0x35c)](_0x2307fa),this[_0x2412e1(0x200)][_0x2412e1(0x22d)](_0xabb6b7,_0x324a46),this[_0x2412e1(0x383)](_0x2307fa);}}),_0x2ec2af||this[_0x461585(0x1c2)]({'type':0x0,'memberID':this[_0x461585(0x354)],'unitIDs':[...this[_0x461585(0x302)]],'isForwarded':!0x0});}[_0x56cc55(0x383)](_0x30d398){const _0x4d8f45=_0x56cc55;this[_0x4d8f45(0x242)](_0x30d398);const _0x1bd2c4=window[_0x4d8f45(0x185)](()=>{const _0x527876=_0x4d8f45;this['_unitOnClients'][_0x527876(0x306)](_0x122f02=>{const _0x3ba601=_0x527876;_0x122f02[_0x3ba601(0x335)](_0x30d398);});},Ae*0x2);this[_0x4d8f45(0x21f)][_0x4d8f45(0x22d)](_0x30d398,_0x1bd2c4);}[_0x56cc55(0x242)](_0x558c03){const _0x53c8df=_0x56cc55;if(this[_0x53c8df(0x21f)][_0x53c8df(0x36b)](_0x558c03)){const _0xa33a2f=this[_0x53c8df(0x21f)][_0x53c8df(0x15d)](_0x558c03);_0xa33a2f&&window['clearTimeout'](_0xa33a2f),this[_0x53c8df(0x21f)]['set'](_0x558c03,null);}}[_0x56cc55(0xf0)](_0x559d06){const _0x20368b=_0x56cc55,{memberID:_0x1119dd,unitIDs:_0x2ddbf8}=_0x559d06;_0x2ddbf8['forEach'](_0x5c9d06=>{const _0x249515=_0x5cb8;var _0x2e6b37;const _0x4bf87e=this[_0x249515(0x200)]['get'](_0x5c9d06);_0x4bf87e&&(_0x4bf87e['delete'](_0x1119dd),(_0x2e6b37=this[_0x249515(0x17f)](_0x5c9d06))==null||_0x2e6b37['next'](_0x4bf87e[_0x249515(0x2df)]===0x0?u['UnitStatus'][_0x249515(0x27b)]:u[_0x249515(0xe6)]['OTHER_CLIENTS_EDITING']));}),this[_0x20368b(0x242)](_0x1119dd);}['_handleHeartbeatEvent'](_0xd35506){const _0x27373d=_0x56cc55;this[_0x27373d(0x383)](_0xd35506[_0x27373d(0xeb)]);}[_0x56cc55(0x1c2)](_0x2ccdd9){const _0x956666=_0x56cc55;localStorage[_0x956666(0x13b)](Pe,JSON[_0x956666(0x379)](_0x2ccdd9));}['_scheduleHeartbeat'](){const _0x4fe52d=_0x56cc55;this[_0x4fe52d(0x2e2)]=window[_0x4fe52d(0x10a)](()=>{const _0x23c930=_0x4fe52d;this[_0x23c930(0x1c2)]({'type':0x2,'memberID':this[_0x23c930(0x354)]});},Ae);}['_ensureSubject'](_0x211b01){const _0x4a92dc=_0x56cc55;return this['_unitStatus'][_0x4a92dc(0x36b)](_0x211b01)||this[_0x4a92dc(0x201)]['set'](_0x211b01,new I[(_0x4a92dc(0x1b2))](u[_0x4a92dc(0xe6)][_0x4a92dc(0x27b)])),this[_0x4a92dc(0x201)]['get'](_0x211b01);}}exports[_0x56cc55(0x24d)]=pe,exports[_0x56cc55(0x1a7)]=Be,exports[_0x56cc55(0x1e6)]=us,exports[_0x56cc55(0x1f9)]=Fe;
1
+ 'use strict';const _0x661f9=_0x33d9;(function(_0x29a9f1,_0x4fb28b){const _0x4e1df2=_0x33d9,_0x1c5b2c=_0x29a9f1();while(!![]){try{const _0x2af29c=parseInt(_0x4e1df2(0x22d))/0x1*(-parseInt(_0x4e1df2(0x36c))/0x2)+parseInt(_0x4e1df2(0x359))/0x3*(-parseInt(_0x4e1df2(0x3df))/0x4)+-parseInt(_0x4e1df2(0x342))/0x5*(-parseInt(_0x4e1df2(0x284))/0x6)+-parseInt(_0x4e1df2(0x307))/0x7+parseInt(_0x4e1df2(0x213))/0x8*(-parseInt(_0x4e1df2(0x3cc))/0x9)+parseInt(_0x4e1df2(0x2bd))/0xa+parseInt(_0x4e1df2(0x234))/0xb;if(_0x2af29c===_0x4fb28b)break;else _0x1c5b2c['push'](_0x1c5b2c['shift']());}catch(_0x5374a4){_0x1c5b2c['push'](_0x1c5b2c['shift']());}}}(_0x1d83,0x35dc9));var Ve=Object[_0x661f9(0x235)],Ge=(_0x155ec0,_0x33811d,_0x3b8fd0)=>_0x33811d in _0x155ec0?Ve(_0x155ec0,_0x33811d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b8fd0}):_0x155ec0[_0x33811d]=_0x3b8fd0,_=(_0x1e19be,_0x40e4bd,_0x482ee5)=>Ge(_0x1e19be,typeof _0x40e4bd!=_0x661f9(0x3e7)?_0x40e4bd+'':_0x40e4bd,_0x482ee5);Object[_0x661f9(0x235)](exports,Symbol[_0x661f9(0x259)],{'value':_0x661f9(0x29f)});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'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),T=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x177d4d,..._0x74668a}){const _0x30105f=_0x661f9,{icon:_0x2a8fd3,id:_0x352ec2,className:_0x422934,extend:_0x25865f,..._0x543710}=_0x74668a,_0x308708=('univerjs-icon\x20univerjs-icon-'+_0x352ec2+'\x20'+(_0x422934||''))[_0x30105f(0x203)](),_0x533fe7=A[_0x30105f(0x292)]('_'+Je());return we(_0x2a8fd3,''+_0x352ec2,{'defIds':_0x2a8fd3[_0x30105f(0x3c4)],'idSuffix':_0x533fe7[_0x30105f(0x361)]},{'ref':_0x177d4d,'className':_0x308708,..._0x543710},_0x25865f);}function we(_0xce301f,_0x20c450,_0xeba707,_0x103d5f,_0x5ef69c){const _0x4dd169=_0x661f9;return A['createElement'](_0xce301f[_0x4dd169(0x195)],{'key':_0x20c450,...qe(_0xce301f,_0xeba707,_0x5ef69c),..._0x103d5f},(ze(_0xce301f,_0xeba707)['children']||[])[_0x4dd169(0x38e)]((_0x5aff68,_0x4cfcf4)=>we(_0x5aff68,_0x20c450+'-'+_0xce301f[_0x4dd169(0x195)]+'-'+_0x4cfcf4,_0xeba707,void 0x0,_0x5ef69c)));}function qe(_0x56f4db,_0xe6996d,_0x11d52e){const _0x580dec=_0x661f9,_0x40dd16={..._0x56f4db[_0x580dec(0x420)]};_0x11d52e!=null&&_0x11d52e[_0x580dec(0x301)]&&_0x40dd16[_0x580dec(0x3e9)]===_0x580dec(0x301)&&(_0x40dd16[_0x580dec(0x3e9)]=_0x11d52e['colorChannel1']),_0x56f4db[_0x580dec(0x195)]===_0x580dec(0x31d)&&_0x40dd16['id']&&(_0x40dd16['id']=_0x40dd16['id']+_0xe6996d[_0x580dec(0x211)]),Object['entries'](_0x40dd16)[_0x580dec(0x30f)](([_0x539a97,_0x3ed1d8])=>{const _0x31669c=_0x580dec;_0x539a97===_0x31669c(0x31d)&&typeof _0x3ed1d8==_0x31669c(0x2df)&&(_0x40dd16[_0x539a97]=_0x3ed1d8[_0x31669c(0x1a5)](/url\(#(.*)\)/,_0x31669c(0x215)+_0xe6996d[_0x31669c(0x211)]+')'));});const {defIds:_0x476cdd}=_0xe6996d;return!_0x476cdd||_0x476cdd[_0x580dec(0x3e2)]===0x0||(_0x56f4db[_0x580dec(0x195)]===_0x580dec(0x201)&&_0x40dd16['xlink:href']&&(_0x40dd16['xlink:href']=_0x40dd16[_0x580dec(0x2d6)]+_0xe6996d[_0x580dec(0x211)]),Object[_0x580dec(0x1ad)](_0x40dd16)['forEach'](([_0x401865,_0x36de95])=>{const _0x334beb=_0x580dec;typeof _0x36de95==_0x334beb(0x2df)&&(_0x40dd16[_0x401865]=_0x36de95[_0x334beb(0x1a5)](/url\(#(.*)\)/,_0x334beb(0x215)+_0xe6996d[_0x334beb(0x211)]+')'));})),_0x40dd16;}function ze(_0x68ab87,_0x2e09ff){const _0x4e234d=_0x661f9;var _0x286357;const {defIds:_0x1c2457}=_0x2e09ff;return!_0x1c2457||_0x1c2457[_0x4e234d(0x3e2)]===0x0?_0x68ab87:_0x68ab87['tag']==='defs'&&((_0x286357=_0x68ab87['children'])!=null&&_0x286357[_0x4e234d(0x3e2)])?{..._0x68ab87,'children':_0x68ab87[_0x4e234d(0x1ea)][_0x4e234d(0x38e)](_0x3f3004=>typeof _0x3f3004['attrs']['id']==_0x4e234d(0x2df)&&_0x1c2457&&_0x1c2457['includes'](_0x3f3004[_0x4e234d(0x420)]['id'])?{..._0x3f3004,'attrs':{..._0x3f3004['attrs'],'id':_0x3f3004[_0x4e234d(0x420)]['id']+_0x2e09ff[_0x4e234d(0x211)]}}:_0x3f3004)}:_0x68ab87;}function Je(){const _0x7425f6=_0x661f9;return Math[_0x7425f6(0x3fb)]()[_0x7425f6(0x2c3)](0x24)[_0x7425f6(0x36b)](0x2,0x8);}Ce[_0x661f9(0x3c0)]='UniverIcon';function _0x1d83(){const _0x3a45a4=['getMemberID','getMergeData','startColumn','save','_registerDependencies','DEFAULT_WS_SESSION_TICKET_URL','_transformUndoRedoStack','session.will-retry','_docSyncEditingCollabCursorService','CURRENT_STATUS_CANNOT_OPERATE','subUnitId','_localeService','ThemeService','_unitOnClients','USER_NOT_FOUND','height','SetFormulaCalculationStartMutation','registerRenderModule','_status$','init','_drawRectRange','split','LICENSE_IMPORT_SIZE_EXCEEDED','OTHER_CLIENTS_EDITING','REDEMPTION_CODE_FULLY_REDEEMED','SOCKET_FAILED_RETRY','UniverCollaborationClientUIPlugin','2813030tcdoKE','jiqing.500','DesktopCollaborationStatusDisplayController','handleDeleteRangeMoveUp','_handleEvent','Inject','toString','width','bottom','_getScale','beginPath','UniverCollaborationClientPlugin','urlChange$','closePath','toRgbString','wsSessionTicketUrl','collabStatus.syncing','distinctUntilChanged','_registerRenderDependencies','_onCursorUpdate','UPDATE_CURSOR','_dataLoaderService','COMPLETION_FINISHED','shift','0\x200\x2016\x2016','xlink:href','replaceDocRanges','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_removeCollabCursors','addEventListener','findNodePositionByCharIndex','collaboration-client.offline-data-not-saved','YUUMI_CONNECTOR_URL_NOT_FOUND','connectInjector','string','_updateURLWithCurrentState','INVITE_CODE_ALREADY_BOUND','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_assignedColors','params','cursorInfo$','_docTransformSelectionsService','_ensureSubject','univer-mr-2\x20univer-flex\x20univer-text-xl','InsertRowCommandId','collaboration-client-ui.config','div','color','handleInsertCol','saveOfflineData','DocStateChangeManagerService','Workbook','CollaborationUIEventId','handleIRemoveCol','maxFormulaLimit','OFFLINE','_themeService','getCollabEntity$','setInterval','Injector','uni.network.url-service','get','APPLY_NON_SEQUENTIAL_REVISION','dirtyRanges','IMessageService','_renderManagerService','_lastPointer','Tools','colorChannel1','getRelativeToViewportCoord','_localStorageService','executionId','location','NodePositionConvertToRectRange','2232538dKgOxs','measureText','collab-rect-range-','column','subscribe','HEADER_MENU','loadOfflineData','_cursors','forEach','_heartbeatTimer','UniverInstanceType','_selfUnitIDs','SHEET_VIEWPORT_KEY','clearInterval','data','find','green.600','UNIVER_DOC','LOGIN_TOKEN_PROCESSING_FAILED','getConfig','hovered','fromEvent','mask','yellow.400','LOCAL_CACHE_INTERVAL_KEY','combineLatest','startRow','/universer-api/license/formula/limit/status','delete','ONLINE','CanceledError','dispose$','includes','makeDirty','_setupSubUnitSync','_messageService','IUniverInstanceService','moveTo','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','unload','_backgroundColor','isFormulaId','startFormulaLimitUrl','useDependency','contains','ColorKit','show','TEXT','_config','IURLService','collabStatus.fetchMiss','_setupBeforeClosingHandler','SheetCollabCursorShape','/run/','registerComponent','disableLocalCache','_docSkeleton','_entityInit$','getUndoRedoMutationParamsCache','10bwGihv','size','setStateCache','INotificationService','getSheetId','memberID','_taskIds','body','LOGIN_FAILED','InsertColCommandId','sessionStatus$','getOffsetConfig','stageInfo','currentTheme$','_range','ITransformService','_injector','getUnhiddenWorksheets','_onCursorDelete','_showGuardMessage','evenodd','getActiveRange','enableLocalCache','294ijPZHX','currentUsage','CLOSE_ROOM','getLocalCacheKey','restore','getColorFromTheme','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_color','current','pipe','_cursor','HTTPService','UNRECOGNIZED','BuiltInUIPart','ENTITLE_INSUFFICIENT_QUOTA','_collabCursorState$','ENTITLE_NEED_BILLING_ADDRESS','RECT','substring','783656XPEeJv','_id','YUUMI_ALL_TABLES_IS_INVALID','_applyCommand','mergeOverrideWithDependencies','EMAIL_HAS_BEEN_BOUND','removeParam','getSheetBySheetId','_startDocCollabCursor','http://www.w3.org/2000/svg','all','InsertRangeMoveDownCommandId','_getFormulaLimitStatus','UNAUTHENTICATED','disposeWithMe','AUTHORIZE_CODE_ILLEGAL','backgroundColor','merge','subunit','_checkAndWaitForCalculationPermission','getParam','releaseFormulaLimitUrl','LICENSE_MAX_UNITS_EXCEEDED','ISocketService','CommandType','_shapes','SUCCESS','OnLineIcon','name','onPointerEnter$','_checkCalculationAvailable','addClipboardHook','#FFF','shareReplay','map','_draw','_cachedData','pushState','_initEntityListener','source','docStateChange$','CollaborationStatus','key','setParam','setAlpha','_initStatusComponent','INTERNAL_ERROR','path','deepClone','_saveCache','_onRefRangeChange','executeCommand','touchDependencies','formula.calculation.started','endRow','isEditing','hide','_refreshCollabCursors','SOCKET_FAILED','permission.content','send','handleInsertRangeMoveDown','getTypeOfUnitDisposed$','onPointerMove$','LICENSE_DISTRO_REJECTED','values','runRefRangeMutations','collab-client.tooltip.reconnect','_render','START_CALCULATION','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','eventID','univer-flex\x20univer-items-center','ALREADY_EXISTS','setItem','Rect','_hasFormulaInDirtyRanges','_drawAnchor','_removeClearOtherTimer','_releaseCalculationLimit','_init','Warning','startsWith','REDEMPTION_INVALID_CODE','displayName','ENSURE_SNAPSHOT_EXECUTION','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','YUUMI_URL_COL_OUT_OF_RANGE','defIds','getValue','_initEvent','stringify','saveImage','on-line-icon_clip0_910_349','_saveTaskMap','_maxFormulaLimit','3195ueYGhh','SNAPSHOT_HAS_BEEN_REMOVED','m2Prime','ILogService','_updateLocalCursor','CollaborationUIEventService','asObservable','_localCacheService','NOT_FOUND','CONNECTOR_DATA_TOO_LARGE','on-line-icon','YUUMI_RATE_OVER_LIMIT','LICENSE_EXPORT_SIZE_EXCEEDED','_handleLeaveEvent','session.connection-failed','DocSelectionManagerService','_send','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','debounce','13496hQMUVu','FromArray','max','length','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','unsubscribe','_roomMembers$','_docStateChangeManagerService','symbol','roomMembers','fill','RemoteUniscriptService','takeUntil','none','_startCalculationLimit','DependentOn','getActiveSheet','getStateCache','PENDING','EffectRefRangId','Unknown\x20user','_scheduleClearOtherTimer','_commandService','transformMutation','text','_docTransformIMECacheService','_createSocketURL','exhaustSavingTask','random','getTypeOfUnitAdded$','assignAColorForMemberID','IConfigService','YUUMI_ASYNCIO_CANCELLED','ICommandService','url(#on-line-icon_clip0_910_349)','ranges','formula.calculation.unable','ENTITLE_REPORT_LIMIT_EXCEED','top','set','MOBILE_VERIFY_CODE_MISMATCH','APPLY_REVISION_CONFILICT','getFocusedUnit','APPLY_DUPLICATED','_labelPosition','_toggleOnline','clearTimeout','reconnect','SheetSkeletonManagerService','ENTITLE_DUP_SUBSCRIPTION','SetFormulaCalculationNotificationMutation','EMAIL_VERIFY_CODE_MISMATCH','LocaleService','drawWith','REDEMPTION_CODE_INACTIVE','unitId','getDocRanges','RevisionService','_docSkeletonManagerService','IDocClipboardService','_clearOtherTimers','setShapeProps','_drawTextRange','CONFLICT','svg','attrs','APPLY_PERMISSION_DENIED','DOC_RANGE_TYPE','purple.300','post','updateOfflineData','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','registerRefRange','transformIMECache','type','unit','USERS_LEAVE','getformulaLimitStatusUrl','ACTIVE_UNIT_EVENT_CHANNEL','1em','UNIVER_SHEET','addObjects','white','SheetsSelectionsService','RxDisposable','with','_univerInstanceService','_session','ISnapshotServerService','BehaviorSubject','_document','mutations','_initCommandInterceptor','debug','M0\x200H16V16H0z','switchMap','currentColor','_unitStatus','_lastResponseTimestamp','endColumn','createInstance','throttleTime','transformRemoteChangeset','clipPath','_transformService','now','_cursorShapes','black','_context','_anchorDot','_scheduleHeartbeat','font','/universer-api/license/formula/limit/done','_eventUnsubscribe','unshift','isArray','DataLoaderService','_toggleOffline','_httpService','labelPosition','handleInsertRow','tag','_initStatusListener','_configService','storage','registerBeforeClose','isTransformMutationFailure','getItem','searchParams','transform','_getSaveTimeout','from','Success','formula.calculation.waiting','YUUMI_SUBSCRIPTION_NOT_FOUND','INVALID_ARGUMENT','BrowserCollaborationSocketService','replace','getSkeleton','loadUnit','WebBrowserSingleActiveUnitService','_textBubble','REDEMPTION_CODE_HAS_BEEN_CREATED','_online','_transformPreviousActiveRange','entries','actions','unitID','FormulaExecuteStageType','getRangePointData','invokeId','textRanges','transformStateCache','SetWorksheetActivateCommand','parse','IBeforeCloseService','INVITE_CODE_HAS_BEEN_UES','editingUnit','collaboration.single-unit.warning','?taskId=','transformByState','_scene','WECHAT_HAS_BEEN_BOUND','MoveRangeCommandId','_collabCursorController','INVITE_CODE_REQUIRED','isTransformMutationsWithChangesetSuccess','Shape','RegularPolygon','_getSheetObject','error','parseInt','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_docTransformStateCacheService','registerDependencies','Error','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','FormulaExecutedStateType','transformSelections','_revisionService','then','SetSelectionsOperation','has','SUBMIT_CHANGESET_TIMEOUT','getViewport','_getMergeRange','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CollaborationSessionService','SYNCED','_collabSessionService','_docClipboardService','handleInsertRangeMoveRight','add','debounceTime','_updateCollabCursors','AWAITING_WITH_PENDING','fillStyle','DeleteRangeMoveUpCommandId','_beforeCloseService','serializeRangeWithSheet','fillText','redoState','code','TOO_MANY_REQUESTS','Failed','_pollingInterval','children','UnitStatus','InsertRangeMoveRightCommandId','forwardRef','Subject','Vector2','undoState','getVpScrollXYInfoByPosToVp','filter','NO_OTHER_CLIENTS_EDITING','SNAPSHOT_INVALID_SNAPSHOT','_instanceService','disposeUnit','defs','_sheetSkeletonManagerService','_getAnchorBounding','_updateSubUnitFromURLParams','RemoveColCommandId','_notificationService','selections','CollaborationEvent','dispose','doc.mutation.rich-text-editing','use','toDisposable','trim','getCurrentRevOfUnit','_collaborationUIEventService','popstate','RichTextEditingMutation','_colorIndex','row','range','_entities','IUIPartsService','selection','saveTaskMap','_urlService','[CollaborationDataLoaderController]','idSuffix','subscribeEvent','1824umNXmD','setTimeout','url(#$1','_initCommandExecutedListener','Rectangle','COLORS','ILocalCacheService','cursorInfo','syncEditingCollabCursor','VIEW_MAIN','_colorAssignService','_collaborationController','_initResize','CollaborationDataLoaderController','MOBILE_HAS_BEEN_BOUND','getCurrentUnitForType','getUnit','onMouseMove','createSocket','DisposableCollection','resize','_hideTimer','addObject','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','APPLY_REJECT','_uiPartsService','1LziXDt','OffLineIcon','_disabled','round','_setFormulaLimitStatus','currentSkeleton$','WebURLService','9754162uVSqlj','defineProperty','lineTo','permission.title','_refRangeService','newValue','getRenderById','CollaborationController','LOCAL_CACHE_INTERVAL','generateRandomId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getCellMatrix','_clearPolling','arc','CHANGESET_REVISION_CONFILICT','NOT_COLLAB','createElement','UNDEFINED','skeleton','YUUMI_AI_RUN_FAILED','getCurrentSelections','fromEventSubject','OTHER_CLIENT_EDITING','_handleJoinEvent','history','fillRule','_doCreateSocket','_name','m1Prime','_hover','getAncestorScale','IRenderManagerService','collaboration.closeRoom','clsx','_getSessionTicket','_hovered','DocIMEInputManagerService','toStringTag','getCollabCursors$','red.300','0\x200\x2017\x2016','whenReady','beforeCommandExecuted','_logService','SessionStatus','some','off-line-icon','onTransformChange$','PAYMENT_CHANNEL_NOT_SUPPORT','handleDeleteRangeMoveLeft','complete','getCellPositionByOffset','MUTATION','USER_IS_ANONYMOUS','Disposable','_handleHover','collabCursorState$','RemoveRowCommandId','PERMISSION_DENIED','NodePositionConvertToCursor','handleIRemoveRow','imageSourceType','getCoordByCell','functionsExecutedState','totalFormulasToCalculate','collabStatus.notCollab','PY_RUNTIME_SCRIPT_ERROR','_currentUsage','MessageType','YUUMI_UNABLE_LOAD_URL','setUndoRedoMutationParamsCache','getOwnPropertyDescriptor','getColor','USER_NOT_INVITED_CODE','isActive','application/json','assign','limitInfo','collabStatus.offline','event$','524778GNDrlH','_scheduleSaving','jsx','TEXT_RANGE_LAYER_INDEX','runId','activeSheet$','onCommandExecuted','getUnitId','MemberService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','href','push','_imageIoService','ILocalStorageService','useRef','getMember','entityInit$','REDEMPTION_CODE_NOT_STARTED','min','ENTITLE_CAN_NOT_BUY_LOWER_OTP','SetTextSelectionsOperation','search','replaceState','_anchor','_memberService','next','_initDependencies','Module','_cursorInfo$','onLocalMutation'];_0x1d83=function(){return _0x3a45a4;};return _0x1d83();}const Ze={'tag':_0x661f9(0x41f),'attrs':{'xmlns':_0x661f9(0x375),'fill':_0x661f9(0x3ec),'viewBox':_0x661f9(0x2d5),'width':_0x661f9(0x42e),'height':_0x661f9(0x42e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x661f9(0x39b),'attrs':{'stroke':_0x661f9(0x17c),'d':_0x661f9(0x3c2),'strokeLinecap':_0x661f9(0x230),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x661f9(0x1f7),'attrs':{},'children':[{'tag':_0x661f9(0x183),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x661f9(0x39b),'attrs':{'fill':_0x661f9(0x431),'d':_0x661f9(0x17a)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=A[_0x661f9(0x1ed)](function(_0x2c6009,_0x248792){const _0x2ef020=_0x661f9;return A[_0x2ef020(0x244)](Ce,Object[_0x2ef020(0x280)]({},_0x2c6009,{'id':_0x2ef020(0x262),'ref':_0x248792,'icon':Ze}));});ye['displayName']=_0x661f9(0x22e);const Qe={'tag':_0x661f9(0x41f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x661f9(0x3ec),'viewBox':_0x661f9(0x25c),'width':'1em','height':_0x661f9(0x42e)},'children':[{'tag':'g','attrs':{'clipPath':_0x661f9(0x401)},'children':[{'tag':_0x661f9(0x39b),'attrs':{'stroke':_0x661f9(0x17c),'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':_0x661f9(0x230),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x661f9(0x1f7),'attrs':{},'children':[{'tag':_0x661f9(0x183),'attrs':{'id':_0x661f9(0x3c9)},'children':[{'tag':_0x661f9(0x39b),'attrs':{'fill':_0x661f9(0x431),'d':_0x661f9(0x17a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x661f9(0x3c9)]},$e=A[_0x661f9(0x1ed)](function(_0x258783,_0x25ee40){const _0x5ef48b=_0x661f9;return A[_0x5ef48b(0x244)](Ce,Object[_0x5ef48b(0x280)]({},_0x258783,{'id':_0x5ef48b(0x3d6),'ref':_0x25ee40,'icon':Qe}));});$e['displayName']=_0x661f9(0x387);function et(_0x595931){const _0x16aeea=_0x661f9;switch(_0x595931){case u['CollaborationStatus'][_0x16aeea(0x2f4)]:return _0x16aeea(0x282);case u['CollaborationStatus']['CONFLICT']:return'collabStatus.conflict';case u[_0x16aeea(0x395)]['FETCH_MISS']:return _0x16aeea(0x339);case u[_0x16aeea(0x395)][_0x16aeea(0x243)]:return _0x16aeea(0x275);case u['CollaborationStatus']['AWAITING']:case u[_0x16aeea(0x395)][_0x16aeea(0x1df)]:return _0x16aeea(0x2cd);case u[_0x16aeea(0x395)][_0x16aeea(0x1d8)]:case u['CollaborationStatus'][_0x16aeea(0x3f1)]:return'collabStatus.synced';}}function tt(_0x3031cb){const _0x6f1371=_0x661f9,{status$:_0x4ca67}=_0x3031cb,_0xf0a218=O['useObservable'](_0x4ca67,u[_0x6f1371(0x395)][_0x6f1371(0x243)]),_0x486e9b=O['useDependency'](a[_0x6f1371(0x413)]),_0xe65329=O[_0x6f1371(0x332)](u['CollaborationSessionService']),_0x1a3753=_0xf0a218!==u['CollaborationStatus'][_0x6f1371(0x2f4)],_0x2f1d03=_0x486e9b['t'](et(_0xf0a218)),_0x139b11=_0x1a3753?M[_0x6f1371(0x286)]($e,{}):M[_0x6f1371(0x286)](ye,{}),_0x175ac5=A['useCallback'](()=>{const _0x14e389=_0x6f1371;_0x1a3753||_0xe65329[_0x14e389(0x40e)]();},[_0x1a3753,_0xe65329]);function _0x30d9b4(){const _0x336c2c=_0x6f1371;return M['jsxs'](_0x336c2c(0x2eb),{'className':_0x336c2c(0x3b4),'onClick':_0x175ac5,'children':[M[_0x336c2c(0x286)](_0x336c2c(0x2eb),{'className':p[_0x336c2c(0x255)](_0x336c2c(0x2e8),{'univer-text-green-500':_0x1a3753,'univer-text-red-500':!_0x1a3753}),'children':_0x139b11}),M['jsx'](_0x336c2c(0x2eb),{'className':_0x336c2c(0x22a),'children':_0x2f1d03})]});}return _0x1a3753?_0x30d9b4():M['jsx'](p['Tooltip'],{'title':_0x486e9b['t'](_0x6f1371(0x3af)),'children':_0x30d9b4()});}var st=Object[_0x661f9(0x27b)],it=(_0x5cbaf4,_0x5cc315,_0x487874,_0x3034e1)=>{for(var _0x541262=_0x3034e1>0x1?void 0x0:_0x3034e1?st(_0x5cc315,_0x487874):_0x5cc315,_0x2b0ad2=_0x5cbaf4['length']-0x1,_0x5fd8e5;_0x2b0ad2>=0x0;_0x2b0ad2--)(_0x5fd8e5=_0x5cbaf4[_0x2b0ad2])&&(_0x541262=_0x5fd8e5(_0x541262)||_0x541262);return _0x541262;},K=(_0x250346,_0x53ceb4)=>(_0x3b65f7,_0x4abfc4)=>_0x53ceb4(_0x3b65f7,_0x4abfc4,_0x250346);exports[_0x661f9(0x2bf)]=class extends a['Disposable']{constructor(_0x2b52a5,_0x206f47,_0x51b606,_0x2992b7){const _0x58469b=_0x661f9;super(),_(this,_0x58469b(0x2b4),new I[(_0x58469b(0x175))](u['CollaborationStatus'][_0x58469b(0x243)])),(this[_0x58469b(0x172)]=_0x2b52a5,this[_0x58469b(0x352)]=_0x206f47,this[_0x58469b(0x21e)]=_0x51b606,this[_0x58469b(0x22c)]=_0x2992b7,this[_0x58469b(0x399)](),this[_0x58469b(0x196)]());}[_0x661f9(0x196)](){const _0x3341e2=_0x661f9;this[_0x3341e2(0x37a)](this[_0x3341e2(0x172)]['focused$'][_0x3341e2(0x362)](I['switchMap'](()=>{const _0x299205=_0x3341e2,_0x36d3e8=this[_0x299205(0x172)][_0x299205(0x409)]();return _0x36d3e8?this[_0x299205(0x21e)][_0x299205(0x2f6)](_0x36d3e8[_0x299205(0x28b)]()):I['of'](null);}),I[_0x3341e2(0x17b)](_0xab8bf3=>_0xab8bf3?_0xab8bf3['status$']:I['of'](u['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x2d2bc6=>{const _0xdcac08=_0x3341e2;this[_0xdcac08(0x2b4)]['next'](_0x2d2bc6);}));}[_0x661f9(0x399)](){const _0x2370fd=_0x661f9;this[_0x2370fd(0x37a)](this[_0x2370fd(0x22c)][_0x2370fd(0x33d)](O[_0x2370fd(0x366)][_0x2370fd(0x30c)],()=>O[_0x2370fd(0x2de)](nt({'status$':this[_0x2370fd(0x2b4)][_0x2370fd(0x3d2)]()}),this['_injector'])));}},exports[_0x661f9(0x2bf)]=it([K(0x0,a[_0x661f9(0x32b)]),K(0x1,a[_0x661f9(0x2c2)](a['Injector'])),K(0x2,a['Inject'](u[_0x661f9(0x23b)])),K(0x3,O[_0x661f9(0x20c)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x365ab4){const {status$:_0x43f295}=_0x365ab4;return function(){const _0x5876fa=_0x33d9;return M[_0x5876fa(0x286)](tt,{'status$':_0x43f295});};}const Te=a['createIdentifier'](_0x661f9(0x2f9));var rt=Object[_0x661f9(0x27b)],ot=(_0x273dd0,_0x82efc7,_0x5065a7,_0x39b037)=>{const _0x53bcbb=_0x661f9;for(var _0x3f9eaa=_0x39b037>0x1?void 0x0:_0x39b037?rt(_0x82efc7,_0x5065a7):_0x82efc7,_0x54e26e=_0x273dd0[_0x53bcbb(0x3e2)]-0x1,_0x3ae339;_0x54e26e>=0x0;_0x54e26e--)(_0x3ae339=_0x273dd0[_0x54e26e])&&(_0x3f9eaa=_0x3ae339(_0x3f9eaa)||_0x3f9eaa);return _0x3f9eaa;},j=(_0xa4f6d0,_0x6d91a0)=>(_0x53248a,_0x217766)=>_0x6d91a0(_0x53248a,_0x217766,_0xa4f6d0);exports[_0x661f9(0x220)]=class extends a[_0x661f9(0x170)]{constructor(_0x1eb8cb,_0x366367,_0x5acf03,_0xb6dbde,_0x6c1b21){const _0x415f02=_0x661f9;super(),this[_0x415f02(0x20f)]=_0x1eb8cb,this[_0x415f02(0x25f)]=_0x366367,this[_0x415f02(0x3f5)]=_0x5acf03,this[_0x415f02(0x2d2)]=_0xb6dbde,_0x6c1b21?_0x6c1b21==null||_0x6c1b21[_0x415f02(0x25d)]()[_0x415f02(0x1d0)](()=>this[_0x415f02(0x3bc)]()):(this['_logService']['debug']('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x415f02(0x3bc)]());}async[_0x661f9(0x3bc)](){const _0x52585d=_0x661f9,_0x2c57ba=this[_0x52585d(0x20f)][_0x52585d(0x380)](_0x52585d(0x42a)),_0x294859=this['_urlService'][_0x52585d(0x380)]('type'),_0xf77063=this[_0x52585d(0x20f)][_0x52585d(0x380)](_0x52585d(0x37e));if(!_0x2c57ba||!_0x294859){this[_0x52585d(0x25f)][_0x52585d(0x179)](_0x52585d(0x210),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x5db015=await this[_0x52585d(0x2d2)][_0x52585d(0x1a7)](_0x2c57ba,Number(_0x294859),_0xf77063);_0x5db015&&_0x5db015 instanceof a[_0x52585d(0x2f0)]&&this[_0x52585d(0x329)](_0x5db015);}async['_setupSubUnitSync'](_0x3fad64){const _0xb69b63=_0x661f9;await this['_updateSubUnitFromURLParams'](_0x3fad64),_0x3fad64[_0xb69b63(0x289)][_0xb69b63(0x362)](I[_0xb69b63(0x3eb)](this['dispose$']))[_0xb69b63(0x30b)](_0x4f5283=>{_0x4f5283&&this['_updateURLWithCurrentState'](_0x4f5283);}),this[_0xb69b63(0x20f)]['urlChange$'][_0xb69b63(0x362)](I[_0xb69b63(0x3eb)](this[_0xb69b63(0x326)]))[_0xb69b63(0x30b)](()=>this[_0xb69b63(0x1fa)](_0x3fad64));}[_0x661f9(0x2e0)](_0x2f0f4c,_0x15a5f4=!0x1){const _0xf29fcb=_0x661f9,_0x47f853=this[_0xf29fcb(0x20f)][_0xf29fcb(0x380)](_0xf29fcb(0x37e));_0x2f0f4c[_0xf29fcb(0x346)]()!==_0x47f853&&this[_0xf29fcb(0x20f)][_0xf29fcb(0x397)](_0xf29fcb(0x37e),_0x2f0f4c['getSheetId'](),_0x15a5f4);}async[_0x661f9(0x1fa)](_0x5e428d){const _0x23a86a=_0x661f9;var _0x13736c;const _0x1f51bc=this['_urlService'][_0x23a86a(0x380)]('subunit');if(!_0x1f51bc||!_0x5e428d['getSheetBySheetId'](_0x1f51bc)){const _0x19947c=_0x5e428d[_0x23a86a(0x353)]()[0x0],_0x744e9c=_0x5e428d['getSheetBySheetId'](_0x19947c);if(!_0x744e9c)return;this[_0x23a86a(0x2e0)](_0x744e9c,!0x0),await this['_commandService'][_0x23a86a(0x39f)](g[_0x23a86a(0x1b5)]['id'],{'unitId':_0x5e428d[_0x23a86a(0x28b)](),'subUnitId':_0x19947c});return;}((_0x13736c=_0x5e428d[_0x23a86a(0x3ef)]())==null?void 0x0:_0x13736c['getSheetId']())!==_0x1f51bc&&await this[_0x23a86a(0x3f5)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5e428d[_0x23a86a(0x28b)](),'subUnitId':_0x1f51bc});}},exports[_0x661f9(0x220)]=ot([j(0x0,Te),j(0x1,a[_0x661f9(0x3cf)]),j(0x2,a[_0x661f9(0x400)]),j(0x3,a['Inject'](u[_0x661f9(0x190)])),j(0x4,a['Optional'](Xe['IRemoteInstanceService']))],exports[_0x661f9(0x220)]);var at=Object['getOwnPropertyDescriptor'],ct=(_0x29ec62,_0x1cf74a,_0x1425b1,_0x33d7a8)=>{const _0x4db9e4=_0x661f9;for(var _0x2d40b1=_0x33d7a8>0x1?void 0x0:_0x33d7a8?at(_0x1cf74a,_0x1425b1):_0x1cf74a,_0x3752a9=_0x29ec62[_0x4db9e4(0x3e2)]-0x1,_0x52d01c;_0x3752a9>=0x0;_0x3752a9--)(_0x52d01c=_0x29ec62[_0x3752a9])&&(_0x2d40b1=_0x52d01c(_0x2d40b1)||_0x2d40b1);return _0x2d40b1;},Re=(_0x5b9631,_0x1ed0d4)=>(_0x361a80,_0xcefafa)=>_0x1ed0d4(_0x361a80,_0xcefafa,_0x5b9631);let de=class extends a['RxDisposable']{constructor(_0x4daf76,_0x3a4ea5){const _0x4a67be=_0x661f9;super(),this[_0x4a67be(0x1da)]=_0x4daf76,this[_0x4a67be(0x290)]=_0x3a4ea5,this[_0x4a67be(0x3bc)]();}[_0x661f9(0x3bc)](){const _0x4c6057=_0x661f9,_0x384a04=this;this['disposeWithMe'](this[_0x4c6057(0x1da)][_0x4c6057(0x38b)]({'onBeforePasteImage':async _0x151174=>{const _0x42cd8c=_0x4c6057,_0x153b0b=await _0x384a04[_0x42cd8c(0x290)][_0x42cd8c(0x3c8)](_0x151174);return _0x153b0b?{'source':_0x153b0b[_0x42cd8c(0x393)],'imageSourceType':_0x153b0b[_0x42cd8c(0x271)]}:null;}}));}};de=ct([Re(0x0,T[_0x661f9(0x41a)]),Re(0x1,Ke['IImageIoService'])],de);const be=[_0x661f9(0x423),_0x661f9(0x2be),_0x661f9(0x317),_0x661f9(0x25b),'blue.400',_0x661f9(0x31e)];class pe extends a['Disposable']{constructor(){const _0x358b8a=_0x661f9;super(...arguments),_(this,_0x358b8a(0x2e3),new Map()),_(this,_0x358b8a(0x208),0x0);}['assignAColorForMemberID'](_0x21ca9c){const _0x533c37=_0x661f9;if(this['_assignedColors'][_0x533c37(0x1d2)](_0x21ca9c))return this[_0x533c37(0x2e3)][_0x533c37(0x2fa)](_0x21ca9c);const _0x5b33a2=be[this[_0x533c37(0x208)]];return this[_0x533c37(0x208)]=(this[_0x533c37(0x208)]+0x1)%be[_0x533c37(0x3e2)],this[_0x533c37(0x2e3)][_0x533c37(0x406)](_0x21ca9c,_0x5b33a2),_0x5b33a2;}}function xe(_0x5a0b44){const _0x4be8ed=_0x661f9;let _0x42d685='';for(const _0x17db2f of _0x5a0b44){const {startOffset:_0xe6e88e,endOffset:_0x2007d4,isActive:_0x9e4f39,rangeType:_0x4fe2f3,segmentId:_0x47e3a3,segmentPage:_0x3ccf54}=_0x17db2f;_0x42d685[_0x4be8ed(0x3e2)]&&(_0x42d685+=','),_0x42d685+=_0xe6e88e+':'+_0x2007d4+':'+(_0x9e4f39?'1':'0')+':'+_0x4fe2f3+':'+_0x47e3a3+':'+_0x3ccf54;}return _0x42d685;}function lt(_0x3f56ac){const _0x110703=_0x661f9,_0x33e628=_0x3f56ac['split'](','),_0x319071=[];for(const _0x31952b of _0x33e628){const [_0x5475c5,_0x181a15,_0xbbc8bc,_0x4b44ba,_0x153622,_0x32ca26]=_0x31952b[_0x110703(0x2b7)](':');_0x319071[_0x110703(0x28f)]({'startOffset':Number(_0x5475c5),'endOffset':Number(_0x181a15),'collapsed':_0x5475c5===_0x181a15,'isActive':_0xbbc8bc==='1','rangeType':_0x4b44ba===a[_0x110703(0x422)]['TEXT']?a[_0x110703(0x422)][_0x110703(0x336)]:a[_0x110703(0x422)]['RECT'],'segmentId':typeof _0x153622==_0x110703(0x2df)?String(_0x153622):'','segmentPage':Number(_0x32ca26!=null?_0x32ca26:-0x1)});}return _0x319071[_0x110703(0x261)](_0x36c1bc=>_0x36c1bc[_0x110703(0x27e)])||(_0x319071[0x0][_0x110703(0x27e)]=!0x0),_0x319071;}class Oe extends a[_0x661f9(0x170)]{constructor(){const _0x6a12af=_0x661f9;super(...arguments),_(this,_0x6a12af(0x368),new I[(_0x6a12af(0x175))](null)),_(this,'collabCursorState$',this[_0x6a12af(0x368)][_0x6a12af(0x3d2)]());}[_0x661f9(0x21b)](_0x220905){const _0x2a9c00=_0x661f9,{unitID:_0x4daf9d,memberID:_0x1e512a,textRanges:_0x5d3246}=_0x220905,_0x3ebdb5=xe(_0x5d3246);if(_0x3ebdb5==='')return;const _0x428005={'unitID':_0x4daf9d,'memberID':_0x1e512a,'selection':_0x3ebdb5};this[_0x2a9c00(0x368)][_0x2a9c00(0x29d)](_0x428005);}}var _t=Object[_0x661f9(0x27b)],ht=(_0x51b26e,_0xba8331,_0x5a8f37,_0x178e17)=>{const _0x177ab5=_0x661f9;for(var _0x4a9315=_0x178e17>0x1?void 0x0:_0x178e17?_t(_0xba8331,_0x5a8f37):_0xba8331,_0xc38c1d=_0x51b26e[_0x177ab5(0x3e2)]-0x1,_0x5b62c7;_0xc38c1d>=0x0;_0xc38c1d--)(_0x5b62c7=_0x51b26e[_0xc38c1d])&&(_0x4a9315=_0x5b62c7(_0x4a9315)||_0x4a9315);return _0x4a9315;},U=(_0x7d4eb8,_0x4a3a10)=>(_0x22b7ac,_0x13c164)=>_0x4a3a10(_0x22b7ac,_0x13c164,_0x7d4eb8);const ut=0x12c,It=0x64;let fe=class extends a[_0x661f9(0x170)]{constructor(_0x31657e,_0x9353c7,_0x73f4c1,_0x20c27d,_0xb623f8,_0xe83ddf,_0x51886a,_0x2bbbd1,_0x1db289){const _0x33ba6c=_0x661f9;super(),_(this,_0x33ba6c(0x1ab),!0x1),_(this,_0x33ba6c(0x3bc),!0x1),_(this,_0x33ba6c(0x2a0),new I['BehaviorSubject'](new Map())),_(this,_0x33ba6c(0x2e5),this[_0x33ba6c(0x2a0)][_0x33ba6c(0x3d2)]()),_(this,_0x33ba6c(0x3e5),new I[(_0x33ba6c(0x175))]([])),_(this,'roomMembers$',this[_0x33ba6c(0x3e5)][_0x33ba6c(0x362)](I[_0x33ba6c(0x1dd)](ut))),_(this,_0x33ba6c(0x3d0),a[_0x33ba6c(0x3de)](_0x11e4a8=>{const _0x4792f0=_0x33ba6c,_0x20e2d8={'eventID':v[_0x4792f0(0x1fe)][_0x4792f0(0x2d1)],'data':{'unitID':this[_0x4792f0(0x1af)],'memberID':this[_0x4792f0(0x173)][_0x4792f0(0x2a2)](),'selection':xe(_0x11e4a8)}};this['_session'][_0x4792f0(0x3a8)](_0x20e2d8,this[_0x4792f0(0x1af)]);},It)),(this[_0x33ba6c(0x1af)]=_0x31657e,this[_0x33ba6c(0x173)]=_0x9353c7,this[_0x33ba6c(0x352)]=_0x73f4c1,this[_0x33ba6c(0x21d)]=_0x20c27d,this[_0x33ba6c(0x29c)]=_0xb623f8,this['_syncEditingCollabCursorService']=_0xe83ddf,this[_0x33ba6c(0x184)]=_0x51886a,this[_0x33ba6c(0x172)]=_0x2bbbd1,this[_0x33ba6c(0x3f5)]=_0x1db289);}get['cursorInfo'](){const _0x44fbea=_0x661f9;return this[_0x44fbea(0x2a0)][_0x44fbea(0x3c5)]();}get[_0x661f9(0x3e8)](){const _0x223085=_0x661f9;return this[_0x223085(0x3e5)]['getValue']();}[_0x661f9(0x1ff)](){const _0x515d9f=_0x661f9;super[_0x515d9f(0x1ff)](),this[_0x515d9f(0x2a0)][_0x515d9f(0x29d)](new Map()),this[_0x515d9f(0x2a0)]['complete'](),this[_0x515d9f(0x3e5)]['next']([]),this[_0x515d9f(0x3e5)][_0x515d9f(0x266)]();}[_0x661f9(0x2b5)](){const _0x20b645=_0x661f9;this[_0x20b645(0x3bc)]||(this[_0x20b645(0x3bc)]=!0x0,this[_0x20b645(0x173)][_0x20b645(0x34c)][_0x20b645(0x362)](I[_0x20b645(0x3eb)](this[_0x20b645(0x326)]))['subscribe'](_0xd4b02f=>{const _0x502ddf=_0x20b645;_0xd4b02f===u[_0x502ddf(0x260)][_0x502ddf(0x324)]?this[_0x502ddf(0x40c)]():this[_0x502ddf(0x191)]();}),this[_0x20b645(0x173)][_0x20b645(0x283)][_0x20b645(0x362)](I[_0x20b645(0x3eb)](this['dispose$']))[_0x20b645(0x30b)](_0x31ca42=>{const _0x29f772=_0x20b645,_0x1a27ba=_0x31ca42['eventID'];_0x1a27ba===v[_0x29f772(0x1fe)][_0x29f772(0x2d1)]&&this[_0x29f772(0x2d0)](_0x31ca42),_0x1a27ba===v[_0x29f772(0x1fe)]['USERS_LEAVE']&&this[_0x29f772(0x354)](_0x31ca42);}),this[_0x20b645(0x37a)](this[_0x20b645(0x3f5)][_0x20b645(0x28a)](_0xb24004=>{const _0x2b4ca6=_0x20b645,_0x376f35=_0xb24004[_0x2b4ca6(0x2e4)];_0x376f35!=null&&this[_0x2b4ca6(0x1ab)]&&_0xb24004['id']===W[_0x2b4ca6(0x298)]['id']&&_0x376f35[_0x2b4ca6(0x416)]===this[_0x2b4ca6(0x1af)]&&_0x376f35[_0x2b4ca6(0x3a3)]===!0x1&&_0x376f35[_0x2b4ca6(0x402)][_0x2b4ca6(0x3e2)]>0x0&&this[_0x2b4ca6(0x3d0)](_0x376f35['ranges']);})),this['_syncEditingCollabCursorService'][_0x20b645(0x26c)][_0x20b645(0x362)](I['takeUntil'](this[_0x20b645(0x326)]))[_0x20b645(0x30b)](_0x48a7ae=>{const _0x3cf914=_0x20b645;if((_0x48a7ae==null?void 0x0:_0x48a7ae[_0x3cf914(0x1af)])!==this['unitID'])return;const _0x481895={'eventID':v[_0x3cf914(0x1fe)][_0x3cf914(0x2d1)],'data':_0x48a7ae};this['_onCursorUpdate'](_0x481895);}),this[_0x20b645(0x37a)](this[_0x20b645(0x3f5)]['onCommandExecuted'](_0x454f1a=>{const _0xe59fa7=_0x20b645;if(_0x454f1a[_0xe59fa7(0x2e4)]==null)return;const _0x599bce=_0x454f1a['params'];if(_0x454f1a['id']!==W[_0xe59fa7(0x207)]['id']||_0x599bce[_0xe59fa7(0x416)]!==this[_0xe59fa7(0x1af)])return;const _0x4f20ce={'id':_0xe59fa7(0x200),'params':_0x599bce},_0x595e2f=this[_0xe59fa7(0x21a)];for(const [_0x6ea366,_0x15e4a9]of _0x595e2f){const _0x31404d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x15e4a9[_0xe59fa7(0x402)]}},_0x46a2f4=this['_transformService']['transformMutation'](_0x4f20ce,_0x31404d,!0x1);if(v[_0xe59fa7(0x19a)](_0x46a2f4))throw _0x46a2f4['error'];_0x595e2f[_0xe59fa7(0x406)](_0x6ea366,{..._0x15e4a9,'ranges':_0x46a2f4['m2Prime']['params'][_0xe59fa7(0x1b3)]});}queueMicrotask(()=>{const _0x421014=_0xe59fa7;this[_0x421014(0x2a0)][_0x421014(0x29d)](_0x595e2f);});})));}[_0x661f9(0x2d0)](_0x1572fa){const _0x5af920=_0x661f9;var _0x444e32,_0x2b0011;const {memberID:_0x42726b,selection:_0x3371e4}=_0x1572fa['data'],_0x4eb3ad=lt(_0x3371e4),_0x20bbb0=(_0x2b0011=(_0x444e32=this[_0x5af920(0x29c)]['getMember'](this['unitID'],_0x42726b))==null?void 0x0:_0x444e32[_0x5af920(0x388)])!=null?_0x2b0011:_0x5af920(0x3f3),_0x403611={'color':this[_0x5af920(0x21d)][_0x5af920(0x3fd)](_0x42726b),'name':_0x20bbb0,'ranges':_0x4eb3ad},_0xb94940=this[_0x5af920(0x21a)];_0xb94940[_0x5af920(0x406)](_0x42726b,_0x403611),this['_cursorInfo$'][_0x5af920(0x29d)](_0xb94940);}['_onCursorDelete'](_0x316e5b){const _0x45d2a0=_0x661f9,{memberID:_0x4e3de1}=_0x316e5b[_0x45d2a0(0x315)],_0x345862=this[_0x45d2a0(0x21a)];_0x345862[_0x45d2a0(0x323)](_0x4e3de1),this[_0x45d2a0(0x2a0)][_0x45d2a0(0x29d)](_0x345862);}[_0x661f9(0x40c)](){const _0x41a801=_0x661f9;var _0xc589e9;if(this['_online']=!0x0,((_0xc589e9=this[_0x41a801(0x172)][_0x41a801(0x409)]())==null?void 0x0:_0xc589e9['getUnitId']())!==this[_0x41a801(0x1af)])return;const _0x80dd62=this[_0x41a801(0x352)][_0x41a801(0x2fa)](W['DocSelectionManagerService'])[_0x41a801(0x417)]();Array[_0x41a801(0x18f)](_0x80dd62)&&_0x80dd62[_0x41a801(0x3e2)]>0x0&&this['_updateLocalCursor'](_0x80dd62);}[_0x661f9(0x191)](){const _0x25ee71=_0x661f9;this[_0x25ee71(0x1ab)]=!0x1;}};function _0x33d9(_0x4cb6d4,_0x4faa6a){const _0x1d839e=_0x1d83();return _0x33d9=function(_0x33d99d,_0x87e99b){_0x33d99d=_0x33d99d-0x170;let _0x23a7df=_0x1d839e[_0x33d99d];return _0x23a7df;},_0x33d9(_0x4cb6d4,_0x4faa6a);}fe=ht([U(0x2,a[_0x661f9(0x2c2)](a[_0x661f9(0x2f8)])),U(0x3,a['Inject'](pe)),U(0x4,a[_0x661f9(0x2c2)](u[_0x661f9(0x28c)])),U(0x5,a[_0x661f9(0x2c2)](Oe)),U(0x6,v[_0x661f9(0x351)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x661f9(0x400)])],fe);var St=Object[_0x661f9(0x27b)],dt=(_0x26d57d,_0x455df0,_0x3af723,_0x235b70)=>{const _0x36c35d=_0x661f9;for(var _0x7f7914=_0x235b70>0x1?void 0x0:_0x235b70?St(_0x455df0,_0x3af723):_0x455df0,_0x2624ee=_0x26d57d[_0x36c35d(0x3e2)]-0x1,_0x1b836e;_0x2624ee>=0x0;_0x2624ee--)(_0x1b836e=_0x26d57d[_0x2624ee])&&(_0x7f7914=_0x1b836e(_0x7f7914)||_0x7f7914);return _0x7f7914;},w=(_0x4cde97,_0x6c333f)=>(_0x4aa201,_0x50d447)=>_0x6c333f(_0x4aa201,_0x50d447,_0x4cde97);const ft=0x12c,mt=0x64,gt=()=>{let _0x1d8cb7=[],_0x3ae239=!0x1;return _0xe544ba=>{_0x1d8cb7['push'](_0xe544ba),_0x3ae239||(_0x3ae239=!0x0,setTimeout(()=>{const _0x1c6919=_0x33d9;_0x1d8cb7[_0x1c6919(0x30f)](_0x3b9b8e=>_0x3b9b8e()),_0x1d8cb7=[],_0x3ae239=!0x1;}));};};let me=class extends a[_0x661f9(0x170)]{constructor(_0x15d007,_0x26907a,_0x4a5861,_0x405567,_0xc67a23,_0x178622,_0x142da1,_0x52d3d7){const _0x153957=_0x661f9;super(),_(this,_0x153957(0x1ab),!0x1),_(this,_0x153957(0x3bc),!0x1),_(this,'_cursorInfo$',new I[(_0x153957(0x175))](new Map())),_(this,_0x153957(0x2e5),this[_0x153957(0x2a0)]['asObservable']()),_(this,_0x153957(0x3e5),new I[(_0x153957(0x175))]([])),_(this,'roomMembers$',this[_0x153957(0x3e5)][_0x153957(0x362)](I[_0x153957(0x1dd)](ft))),_(this,_0x153957(0x3d0),a['debounce']((_0x18d8f9,_0x101f57)=>{const _0x43e488=_0x153957,_0x15a243={'eventID':v[_0x43e488(0x1fe)][_0x43e488(0x2d1)],'data':{'unitID':this[_0x43e488(0x1af)],'memberID':this[_0x43e488(0x173)]['getMemberID'](),'selection':x[_0x43e488(0x1e3)](_0x18d8f9,_0x101f57[_0x43e488(0x20a)])}};this['_session']['send'](_0x15a243,this['unitID']);},mt)),(this[_0x153957(0x1af)]=_0x15d007,this[_0x153957(0x173)]=_0x26907a,this[_0x153957(0x352)]=_0x4a5861,this['_colorAssignService']=_0x405567,this[_0x153957(0x29c)]=_0xc67a23,this[_0x153957(0x172)]=_0x178622,this[_0x153957(0x3f5)]=_0x142da1,this[_0x153957(0x238)]=_0x52d3d7);}get['cursorInfo'](){const _0x11220f=_0x661f9;return this[_0x11220f(0x2a0)][_0x11220f(0x3c5)]();}get[_0x661f9(0x3e8)](){const _0x15a6d9=_0x661f9;return this[_0x15a6d9(0x3e5)][_0x15a6d9(0x3c5)]();}[_0x661f9(0x1ff)](){const _0x2aa58f=_0x661f9;super['dispose'](),this[_0x2aa58f(0x2a0)][_0x2aa58f(0x29d)](new Map()),this[_0x2aa58f(0x2a0)][_0x2aa58f(0x266)](),this['_roomMembers$'][_0x2aa58f(0x29d)]([]),this[_0x2aa58f(0x3e5)][_0x2aa58f(0x266)]();}[_0x661f9(0x2b5)](){const _0x1424ac=_0x661f9;this[_0x1424ac(0x3bc)]||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x1424ac(0x362)](I['takeUntil'](this[_0x1424ac(0x326)]))['subscribe'](_0x3053cd=>{const _0x38182a=_0x1424ac;_0x3053cd===u[_0x38182a(0x260)][_0x38182a(0x324)]?this[_0x38182a(0x40c)]():this[_0x38182a(0x191)]();}),this[_0x1424ac(0x173)][_0x1424ac(0x283)][_0x1424ac(0x362)](I[_0x1424ac(0x3eb)](this[_0x1424ac(0x326)]))[_0x1424ac(0x30b)](_0x1c2b85=>{const _0x27721b=_0x1424ac,_0x418fc6=_0x1c2b85[_0x27721b(0x3b3)];_0x418fc6===v['CollaborationEvent'][_0x27721b(0x2d1)]&&this['_onCursorUpdate'](_0x1c2b85),_0x418fc6===v['CollaborationEvent'][_0x27721b(0x42b)]&&this[_0x27721b(0x354)](_0x1c2b85);}),this[_0x1424ac(0x39e)](),this['disposeWithMe'](this[_0x1424ac(0x3f5)][_0x1424ac(0x28a)](_0x34bf8d=>{const _0x57c5d8=_0x1424ac;if(this[_0x57c5d8(0x1ab)]&&_0x34bf8d['id']===g[_0x57c5d8(0x1d1)]['id']&&_0x34bf8d['params']['unitId']===this[_0x57c5d8(0x1af)]){const _0x3756a6=_0x34bf8d[_0x57c5d8(0x2e4)];this[_0x57c5d8(0x3d0)](_0x3756a6[_0x57c5d8(0x2ac)],_0x3756a6[_0x57c5d8(0x1fd)][0x0]);}})));}[_0x661f9(0x2d0)](_0x28937b){const _0x2dfc3c=_0x661f9;var _0x1d2ed9,_0x591396;const {memberID:_0x44160d,selection:_0x44bdba}=_0x28937b[_0x2dfc3c(0x315)],{sheetName:_0x9b944c,range:_0x3a9691}=x['deserializeRangeWithSheet'](_0x44bdba),_0x95f536={'name':(_0x591396=(_0x1d2ed9=this[_0x2dfc3c(0x29c)][_0x2dfc3c(0x293)](this[_0x2dfc3c(0x1af)],_0x44160d))==null?void 0x0:_0x1d2ed9[_0x2dfc3c(0x388)])!=null?_0x591396:_0x2dfc3c(0x3f3),'range':this[_0x2dfc3c(0x1d5)](_0x9b944c,_0x3a9691),'sheetID':_0x9b944c,'color':this[_0x2dfc3c(0x21d)][_0x2dfc3c(0x3fd)](_0x44160d),'selection':_0x44bdba},_0x1b8cf6=this['cursorInfo'];_0x1b8cf6[_0x2dfc3c(0x406)](_0x44160d,_0x95f536),this[_0x2dfc3c(0x2a0)][_0x2dfc3c(0x29d)](_0x1b8cf6);}[_0x661f9(0x354)](_0x4faf1a){const _0x3ccb06=_0x661f9,{memberID:_0x18f405}=_0x4faf1a['data'],_0x5c4114=this[_0x3ccb06(0x21a)];_0x5c4114[_0x3ccb06(0x323)](_0x18f405),this['_cursorInfo$'][_0x3ccb06(0x29d)](_0x5c4114);}['_getMergeRange'](_0x462762,_0x122fd8){const _0x3dbe9f=_0x661f9;var _0x2593b2,_0x35adb8;const _0x4fc93c=(_0x35adb8=(_0x2593b2=this[_0x3dbe9f(0x172)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x2593b2[_0x3dbe9f(0x373)](_0x462762))==null?void 0x0:_0x35adb8[_0x3dbe9f(0x2a3)]();return(_0x4fc93c==null?void 0x0:_0x4fc93c[_0x3dbe9f(0x316)](_0x17dae9=>a[_0x3dbe9f(0x217)][_0x3dbe9f(0x333)](_0x17dae9,_0x122fd8)))||_0x122fd8;}['_onRefRangeChange'](){const _0x27d041=_0x661f9,_0x46570a=new a[(_0x27d041(0x226))](),_0x584df8=gt(),_0x328f52=()=>{const _0x5e673b=_0x27d041;_0x46570a[_0x5e673b(0x1ff)]();const _0x48e1c1=(_0x5028e1,_0x1435ae,_0x354c0b,_0x125b06)=>{const _0x551fb0=_0x5e673b;let _0x2e649d=[];switch(_0x5028e1['id']){case g[_0x551fb0(0x3f2)]['DeleteRangeMoveLeftCommandId']:{_0x2e649d=g[_0x551fb0(0x265)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x1e1)]:{_0x2e649d=g[_0x551fb0(0x2c0)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x34b)]:{_0x2e649d=g[_0x551fb0(0x2ed)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x377)]:{_0x2e649d=g[_0x551fb0(0x3a9)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x1ec)]:{_0x2e649d=g[_0x551fb0(0x1db)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x2e9)]:{_0x2e649d=g[_0x551fb0(0x194)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x1bf)]:{_0x2e649d=g['handleMoveRange'](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x1fb)]:{_0x2e649d=g[_0x551fb0(0x2f2)](_0x5028e1,_0x125b06);break;}case g[_0x551fb0(0x3f2)][_0x551fb0(0x26d)]:{_0x2e649d=g[_0x551fb0(0x270)](_0x5028e1,_0x125b06);break;}}const _0x35a2ed=g[_0x551fb0(0x3ae)](_0x2e649d,_0x125b06),_0x5f5bc7=this[_0x551fb0(0x21a)][_0x551fb0(0x2fa)](_0x1435ae);if(_0x5f5bc7&&_0x35a2ed){const _0x2e2bf8={..._0x5f5bc7,'range':_0x35a2ed};this['cursorInfo']['set'](_0x1435ae,_0x2e2bf8),_0x584df8(()=>{const _0x11ec60=_0x551fb0,_0x8d0951=this[_0x11ec60(0x238)][_0x11ec60(0x427)](_0x35a2ed,_0x39dc3c=>(_0x8d0951[_0x11ec60(0x1ff)](),_0x48e1c1(_0x39dc3c,_0x1435ae,_0x354c0b,_0x35a2ed)));_0x46570a[_0x11ec60(0x1dc)](_0x8d0951);});}return{'redos':[],'undos':[]};};this[_0x5e673b(0x21a)][_0x5e673b(0x30f)]((_0x2a6eb,_0x1ef1d4)=>{const _0x28dc3d=_0x5e673b,{range:_0x2d51ba,sheetID:_0x57de81}=_0x2a6eb,_0x4d8cc4=this[_0x28dc3d(0x238)][_0x28dc3d(0x427)](_0x2d51ba,_0x47c14d=>(_0x4d8cc4[_0x28dc3d(0x1ff)](),_0x48e1c1(_0x47c14d,_0x1ef1d4,_0x57de81,_0x2d51ba)));_0x46570a[_0x28dc3d(0x1dc)](_0x4d8cc4);});};this[_0x27d041(0x37a)](a['toDisposable'](this[_0x27d041(0x2a0)][_0x27d041(0x30b)](()=>{_0x328f52();})));}[_0x661f9(0x40c)](){const _0x147481=_0x661f9;var _0x426f08,_0x1a0802;if(this[_0x147481(0x1ab)]=!0x0,((_0x426f08=this[_0x147481(0x172)][_0x147481(0x409)]())==null?void 0x0:_0x426f08[_0x147481(0x28b)]())!==this['unitID'])return;const _0x5312de=(_0x1a0802=this['_injector'][_0x147481(0x2fa)](g[_0x147481(0x432)])[_0x147481(0x248)]())==null?void 0x0:_0x1a0802[0x0],_0x168de0=this[_0x147481(0x172)][_0x147481(0x222)](a[_0x147481(0x311)][_0x147481(0x42f)])[_0x147481(0x3ef)]();_0x5312de&&_0x168de0&&this[_0x147481(0x3d0)](_0x168de0[_0x147481(0x346)](),_0x5312de);}['_toggleOffline'](){const _0x1058ca=_0x661f9;this[_0x1058ca(0x1ab)]=!0x1;}};me=dt([w(0x2,a[_0x661f9(0x2c2)](a[_0x661f9(0x2f8)])),w(0x3,a[_0x661f9(0x2c2)](pe)),w(0x4,a[_0x661f9(0x2c2)](u[_0x661f9(0x28c)])),w(0x5,a[_0x661f9(0x32b)]),w(0x6,a['ICommandService']),w(0x7,a[_0x661f9(0x2c2)](g['RefRangeService']))],me);var vt=Object[_0x661f9(0x27b)],Et=(_0x2ef660,_0x27d96c,_0x50e1a2,_0x347ead)=>{for(var _0x5d9904=_0x347ead>0x1?void 0x0:_0x347ead?vt(_0x27d96c,_0x50e1a2):_0x27d96c,_0x115f90=_0x2ef660['length']-0x1,_0x79d82f;_0x115f90>=0x0;_0x115f90--)(_0x79d82f=_0x2ef660[_0x115f90])&&(_0x5d9904=_0x79d82f(_0x5d9904)||_0x5d9904);return _0x5d9904;},oe=(_0x191ea8,_0x3e4dc9)=>(_0x29816f,_0x34ff37)=>_0x3e4dc9(_0x29816f,_0x34ff37,_0x191ea8);let B=class extends a['RxDisposable']{constructor(_0x4c9b63,_0x3a0616,_0x551386){const _0x92e287=_0x661f9;super(),_(this,'_entities',new Map()),_(this,_0x92e287(0x340),new I[(_0x92e287(0x1ee))]()),(this[_0x92e287(0x172)]=_0x4c9b63,this[_0x92e287(0x352)]=_0x3a0616,this[_0x92e287(0x1d9)]=_0x551386,this[_0x92e287(0x3bc)]());}['dispose'](){const _0x39104d=_0x661f9;super[_0x39104d(0x1ff)](),this[_0x39104d(0x340)][_0x39104d(0x266)](),this[_0x39104d(0x20b)][_0x39104d(0x30f)](_0x5ae4e1=>_0x5ae4e1[_0x39104d(0x1ff)]());}[_0x661f9(0x25a)](_0x19fa50){const _0x2923b9=_0x661f9;return this['_entities'][_0x2923b9(0x1d2)](_0x19fa50)?this[_0x2923b9(0x20b)][_0x2923b9(0x2fa)](_0x19fa50)[_0x2923b9(0x2e5)]:this[_0x2923b9(0x340)][_0x2923b9(0x362)](I['filter'](_0x5f2480=>_0x5f2480[_0x2923b9(0x1af)]===_0x19fa50),I[_0x2923b9(0x17b)](_0x4b1641=>_0x4b1641[_0x2923b9(0x2e5)]));}[_0x661f9(0x3bc)](){const _0x34472b=_0x661f9;this[_0x34472b(0x172)][_0x34472b(0x3fc)](a[_0x34472b(0x311)][_0x34472b(0x42f)])['pipe'](I[_0x34472b(0x3eb)](this[_0x34472b(0x326)]))['subscribe'](async _0xd37762=>{const _0x35d240=_0x34472b,_0x2668b1=_0xd37762['getUnitId'](),_0x22dece=await this['_startSheetCollabCursor'](_0x2668b1);this['_entityInit$']['next'](_0x22dece),this[_0x35d240(0x20b)][_0x35d240(0x406)](_0x2668b1,_0x22dece);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x34472b(0x311)][_0x34472b(0x318)])[_0x34472b(0x362)](I['takeUntil'](this[_0x34472b(0x326)]))[_0x34472b(0x362)](I[_0x34472b(0x1f2)](_0xce9f90=>!_0xce9f90[_0x34472b(0x28b)]()[_0x34472b(0x3be)]('__')))[_0x34472b(0x30b)](async _0x133d86=>{const _0x1f1d46=_0x34472b,_0x54584d=_0x133d86[_0x1f1d46(0x28b)](),_0x360844=await this[_0x1f1d46(0x374)](_0x54584d);this['_entityInit$'][_0x1f1d46(0x29d)](_0x360844),this['_entities']['set'](_0x54584d,_0x360844);}),I[_0x34472b(0x37d)](this['_univerInstanceService'][_0x34472b(0x3aa)](a[_0x34472b(0x311)]['UNIVER_DOC']),this['_univerInstanceService'][_0x34472b(0x3aa)](a[_0x34472b(0x311)][_0x34472b(0x42f)]))['pipe'](I[_0x34472b(0x3eb)](this[_0x34472b(0x326)]))['subscribe'](_0x378609=>{const _0x30e4e6=_0x34472b,_0x101710=_0x378609[_0x30e4e6(0x28b)](),_0x112fa4=this[_0x30e4e6(0x20b)][_0x30e4e6(0x2fa)](_0x101710);_0x112fa4&&(_0x112fa4[_0x30e4e6(0x1ff)](),this[_0x30e4e6(0x20b)]['delete'](_0x101710));});}async['_startSheetCollabCursor'](_0x4e91c7){const _0x5059b7=_0x661f9,_0x482b30=await this[_0x5059b7(0x1d9)]['requireSession'](_0x4e91c7),_0x113d9d=this[_0x5059b7(0x352)][_0x5059b7(0x180)](me,_0x4e91c7,_0x482b30);return _0x113d9d['init'](),_0x113d9d;}async['_startDocCollabCursor'](_0x17ef96){const _0x768199=_0x661f9,_0x2f74cd=await this[_0x768199(0x1d9)]['requireSession'](_0x17ef96),_0x3757ac=this[_0x768199(0x352)][_0x768199(0x180)](fe,_0x17ef96,_0x2f74cd);return _0x3757ac[_0x768199(0x2b5)](),_0x3757ac;}};B=Et([oe(0x0,a[_0x661f9(0x32b)]),oe(0x1,a[_0x661f9(0x2c2)](a[_0x661f9(0x2f8)])),oe(0x2,a[_0x661f9(0x2c2)](u[_0x661f9(0x1d7)]))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function Tt(_0x5b6e43,_0x5328d7){const _0x477189=_0x661f9;let {radius:_0x5c9823,width:_0x4e2f1d,height:_0x6161b9}=_0x5328d7;_0x5c9823=_0x5c9823!=null?_0x5c9823:0x0,_0x4e2f1d=_0x4e2f1d!=null?_0x4e2f1d:0x1e,_0x6161b9=_0x6161b9!=null?_0x6161b9:0x1e;let _0x1cec61=0x0,_0x3835ae=0x0,_0x42a089=0x0;_0x1cec61=_0x3835ae=_0x42a089=Math[_0x477189(0x296)](_0x5c9823,_0x4e2f1d/0x2,_0x6161b9/0x2),_0x5b6e43[_0x477189(0x2c7)](),_0x5b6e43[_0x477189(0x32c)](_0x1cec61,0x0),_0x5b6e43[_0x477189(0x236)](_0x4e2f1d-_0x3835ae,0x0),_0x5b6e43[_0x477189(0x241)](_0x4e2f1d-_0x3835ae,_0x3835ae,_0x3835ae,Math['PI']*0x3/0x2,0x0,!0x1),_0x5b6e43[_0x477189(0x236)](_0x4e2f1d,_0x6161b9-_0x42a089),_0x5b6e43[_0x477189(0x241)](_0x4e2f1d-_0x42a089,_0x6161b9-_0x42a089,_0x42a089,0x0,Math['PI']/0x2,!0x1),_0x5b6e43['lineTo'](0x0,_0x6161b9),_0x5b6e43[_0x477189(0x236)](0x0,_0x1cec61),_0x5b6e43[_0x477189(0x241)](_0x1cec61,_0x1cec61,_0x1cec61,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5b6e43[_0x477189(0x2ca)](),_0x5328d7[_0x477189(0x3e9)]&&(_0x5b6e43[_0x477189(0x2a5)](),_0x5b6e43[_0x477189(0x1e0)]=_0x5328d7[_0x477189(0x3e9)],_0x5328d7[_0x477189(0x24d)]===_0x477189(0x356)?_0x5b6e43[_0x477189(0x3e9)](_0x477189(0x356)):_0x5b6e43[_0x477189(0x3e9)](),_0x5b6e43[_0x477189(0x35d)]());}class ie extends C[_0x661f9(0x1c3)]{constructor(_0x515a0d,_0x2e4eea){const _0x1eece0=_0x661f9;super(_0x515a0d,_0x2e4eea),_(this,_0x1eece0(0x2ec)),_(this,_0x1eece0(0x3f7)),(this[_0x1eece0(0x2ec)]=_0x2e4eea==null?void 0x0:_0x2e4eea[_0x1eece0(0x2ec)],this[_0x1eece0(0x3f7)]=_0x2e4eea==null?void 0x0:_0x2e4eea[_0x1eece0(0x3f7)]);}static['drawWith'](_0x4cca21,_0x2a7747){const _0x60f28b=_0x661f9,{text:_0x24ec07,color:_0x12e7f4}=_0x2a7747;_0x4cca21[_0x60f28b(0x2a5)](),_0x4cca21[_0x60f28b(0x18b)]=_0x60f28b(0x3b2);const _0x407b19=_0x4cca21[_0x60f28b(0x308)](_0x24ec07)['width'],_0x4cb378=Math[_0x60f28b(0x296)](_0x407b19+0x2*ae,De);Tt(_0x4cca21,{'height':X,'radius':0x4,'width':_0x4cb378,'fill':_0x12e7f4}),_0x4cca21[_0x60f28b(0x1e0)]=_0x60f28b(0x38c);const _0x4b16f4=ae,_0x5a04bc=X-Ct,_0x13754e=De-0x2*ae;if(_0x407b19>_0x13754e){let _0x187af2='',_0x223270=0x0;for(const _0x51feec of _0x24ec07){const _0x58e7fc=_0x4cca21['measureText'](_0x51feec)[_0x60f28b(0x2c4)];if(_0x223270+_0x58e7fc<=_0x13754e-_0x4cca21['measureText']('...')[_0x60f28b(0x2c4)])_0x187af2+=_0x51feec,_0x223270+=_0x58e7fc;else{_0x187af2+='...';break;}}_0x4cca21[_0x60f28b(0x1e4)](_0x187af2,_0x4b16f4,_0x5a04bc);}else _0x4cca21[_0x60f28b(0x1e4)](_0x24ec07,_0x4b16f4,_0x5a04bc);_0x4cca21[_0x60f28b(0x35d)]();}[_0x661f9(0x38f)](_0x37c36f){ie['drawWith'](_0x37c36f,this);}}const ce='collab-text-anchor-',pt='collab-text-range-',Ot=_0x661f9(0x309),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt='rgba(255,\x20255,\x20255,\x200.01)';class Ne{constructor(_0x28b60b,_0x21c5ae,_0x4c2624,_0x2537a0){const _0xf9a857=_0x661f9;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0xf9a857(0x189),null),_(this,_0xf9a857(0x228),null),_(this,_0xf9a857(0x18d),null),(this[_0xf9a857(0x363)]=_0x28b60b,this[_0xf9a857(0x1bd)]=_0x21c5ae,this[_0xf9a857(0x33f)]=_0x4c2624,this[_0xf9a857(0x176)]=_0x2537a0,this[_0xf9a857(0x3b0)]());}set[_0x661f9(0x251)](_0x28ec34){const _0xfe3f80=_0x661f9;_0x28ec34?(this[_0xfe3f80(0x189)]&&this[_0xfe3f80(0x189)][_0xfe3f80(0x3a4)](),this[_0xfe3f80(0x1a9)]&&this['_textBubble']['show']()):(this['_anchorDot']&&this[_0xfe3f80(0x189)]['show'](),this[_0xfe3f80(0x1a9)]&&this[_0xfe3f80(0x1a9)][_0xfe3f80(0x3a4)]());}[_0x661f9(0x1ff)](){const _0x2c076b=_0x661f9;for(const _0x2f5400 of this['_shapes'])_0x2f5400['dispose']();this['_textBubble']&&this[_0x2c076b(0x1a9)][_0x2c076b(0x1ff)](),this[_0x2c076b(0x189)]&&this[_0x2c076b(0x189)][_0x2c076b(0x1ff)](),this['_anchor']&&this[_0x2c076b(0x29b)]['dispose'](),this[_0x2c076b(0x18d)]&&this[_0x2c076b(0x18d)]();}['_render'](){const _0x459adf=_0x661f9;var _0x4d3fd8;const {_docSkeleton:_0x58318a,_document:_0x25b64c}=this,{color:_0x5680a8,name:_0xe96291,ranges:_0x2a7d87}=this['_cursor'],_0x40df67=_0x25b64c[_0x459adf(0x34d)](),{docsLeft:_0x292460,docsTop:_0x27dea0}=_0x40df67,_0x46b1f9=new T[(_0x459adf(0x26f))](_0x40df67,_0x58318a);for(const {startOffset:_0x4c1374,endOffset:_0x4096ac,rangeType:_0x4c0883,segmentId:_0x14e807,segmentPage:_0x3b776e,collapsed:_0xf23fa4,isActive:_0x392d1d}of _0x2a7d87){const _0x2c0131=_0x58318a['findNodePositionByCharIndex'](_0x4c1374,!0x0,_0x14e807,_0x3b776e);let _0x2e0f5a=_0x58318a['findNodePositionByCharIndex'](_0x4096ac,!0x0,_0x14e807,_0x3b776e);if(_0x2e0f5a==null&&(_0x2e0f5a=_0x58318a[_0x459adf(0x2db)](_0x4096ac-0x1,!0x1,_0x14e807,_0x3b776e)),_0x392d1d){const {contentBoxPointGroup:_0x4636c0}=_0x46b1f9[_0x459adf(0x1b1)](_0x2e0f5a,_0x2e0f5a);if(_0x4636c0['length']===0x0)continue;this[_0x459adf(0x3b9)](_0x5680a8,_0x4636c0,_0x292460,_0x27dea0,_0xe96291),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x2c0131&&_0x2e0f5a){if(_0x4c0883===a[_0x459adf(0x422)][_0x459adf(0x36a)]){const _0x5358bb=new T[(_0x459adf(0x306))](_0x40df67,_0x58318a),{pointGroup:_0x272c8b}=(_0x4d3fd8=_0x5358bb[_0x459adf(0x1b1)](_0x2c0131,_0x2e0f5a))!=null?_0x4d3fd8:{};if(_0x272c8b==null||_0x272c8b[_0x459adf(0x3e2)]===0x0)continue;this[_0x459adf(0x2b6)](_0x5680a8,_0x272c8b,_0x292460,_0x27dea0);}else{if(!_0xf23fa4){const {borderBoxPointGroup:_0x27cfac}=_0x46b1f9[_0x459adf(0x1b1)](_0x2c0131,_0x2e0f5a);if(_0x27cfac[_0x459adf(0x3e2)]===0x0)continue;this['_drawTextRange'](_0x5680a8,_0x27cfac,_0x292460,_0x27dea0);}}}}}['_drawAnchor'](_0x5a466a,_0x586f2a,_0x39ad42,_0x1025ce,_0x166373){const _0x350d75=_0x661f9,_0x30ca52=this[_0x350d75(0x1f9)](_0x586f2a),{left:_0x243d3e,top:_0x2a1d59,height:_0x53a60a}=_0x30ca52,_0x1c1726=this[_0x350d75(0x2c6)](),_0x4e96a7=bt/_0x1c1726,_0x51912a=new C[(_0x350d75(0x3b7))](ce+a['generateRandomId'](Y),{'left':_0x243d3e+_0x39ad42-_0x4e96a7,'top':_0x2a1d59+_0x1025ce,'height':_0x53a60a,'width':Rt,'fill':_0x5a466a||C[_0x350d75(0x27c)](a[_0x350d75(0x218)][_0x350d75(0x187)],0x0),'strokeWidth':_0x4e96a7,'stroke':Dt,'evented':!0x0});this[_0x350d75(0x29b)]=_0x51912a,this[_0x350d75(0x1bd)][_0x350d75(0x229)](_0x51912a,T[_0x350d75(0x287)]);const _0x1f0408=new C[(_0x350d75(0x3b7))](ce+a[_0x350d75(0x23d)](Y),{'left':_0x243d3e+_0x39ad42-_0x4e96a7,'top':_0x2a1d59+_0x1025ce-le/0x2,'height':le,'width':le,'fill':_0x5a466a||C[_0x350d75(0x27c)](a['COLORS'][_0x350d75(0x187)],0x0),'strokeWidth':0x0,'stroke':_0x5a466a||C[_0x350d75(0x27c)](a[_0x350d75(0x218)]['black'],0x0),'evented':!0x1});this[_0x350d75(0x189)]=_0x1f0408,this[_0x350d75(0x1bd)][_0x350d75(0x229)](_0x1f0408,T[_0x350d75(0x287)]);const _0x2d2e99=new ie(ce+a[_0x350d75(0x23d)](Y),{'left':_0x243d3e+_0x39ad42-_0x4e96a7,'top':_0x2a1d59+_0x1025ce-X,'text':_0x166373,'color':_0x5a466a});this[_0x350d75(0x1a9)]=_0x2d2e99,this[_0x350d75(0x1bd)][_0x350d75(0x229)](_0x2d2e99,T[_0x350d75(0x287)]),this[_0x350d75(0x251)]=!0x1;}[_0x661f9(0x26b)](){const _0x54366b=_0x661f9,_0x3489c5=this[_0x54366b(0x29b)][_0x54366b(0x389)][_0x54366b(0x212)](()=>{this['_hover']=!0x0;}),_0x52aded=this[_0x54366b(0x29b)]['onPointerLeave$'][_0x54366b(0x212)](()=>{const _0x1e0734=_0x54366b;this[_0x1e0734(0x228)]&&clearTimeout(this['_hideTimer']),this[_0x1e0734(0x228)]=setTimeout(()=>{const _0x784f0f=_0x1e0734;this[_0x784f0f(0x251)]=!0x1;},0x7d0);});return()=>{const _0x4310ad=_0x54366b;_0x3489c5[_0x4310ad(0x3e4)](),_0x52aded[_0x4310ad(0x3e4)]();};}[_0x661f9(0x41d)](_0x4cb49d,_0xdbcc24,_0x3df097,_0x3e8c66){const _0x3e1a1b=_0x661f9,_0x1a0e0c=new a[(_0x3e1a1b(0x334))](_0x4cb49d)[_0x3e1a1b(0x398)](0.2)[_0x3e1a1b(0x2cb)](),_0x521fb6=new C[(_0x3e1a1b(0x1c4))](pt+a[_0x3e1a1b(0x23d)](Y),{'pointsGroup':_0xdbcc24,'fill':_0x1a0e0c||C[_0x3e1a1b(0x27c)](a['COLORS'][_0x3e1a1b(0x187)],0.2),'left':_0x3df097,'top':_0x3e8c66,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3e1a1b(0x28f)](_0x521fb6),this[_0x3e1a1b(0x1bd)]['addObject'](_0x521fb6,T[_0x3e1a1b(0x287)]);}[_0x661f9(0x2b6)](_0x5729ec,_0x374138,_0x194ea7,_0x41ef2c){const _0x385adf=_0x661f9,_0x2b41a9=new a['ColorKit'](_0x5729ec)[_0x385adf(0x398)](0.2)[_0x385adf(0x2cb)](),_0x5dff9a=new C[(_0x385adf(0x1c4))](Ot+a[_0x385adf(0x23d)](Y),{'pointsGroup':_0x374138,'fill':_0x2b41a9||C[_0x385adf(0x27c)](a[_0x385adf(0x218)][_0x385adf(0x187)],0.2),'left':_0x194ea7,'top':_0x41ef2c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x385adf(0x385)]['push'](_0x5dff9a),this['_scene'][_0x385adf(0x229)](_0x5dff9a,T['TEXT_RANGE_LAYER_INDEX']);}[_0x661f9(0x1f9)](_0x45a021){const _0x553283=_0x45a021[0x0],_0x2d825d=_0x553283[0x0],_0x3d6f50=_0x553283[0x2],{x:_0x341ef9,y:_0x14d582}=_0x2d825d,{x:_0x3eaffc,y:_0x3daee}=_0x3d6f50;return{'left':_0x341ef9,'top':_0x14d582,'width':_0x3eaffc-_0x341ef9,'height':_0x3daee-_0x14d582};}['_getScale'](){const _0x5bafb7=_0x661f9,{scaleX:_0x268eea,scaleY:_0x270f36}=this[_0x5bafb7(0x1bd)][_0x5bafb7(0x252)]();return Math[_0x5bafb7(0x3e1)](_0x268eea,_0x270f36);}}var Nt=Object['getOwnPropertyDescriptor'],Ut=(_0x3ccafe,_0x2981a1,_0x2c7c74,_0x51fb41)=>{const _0x5db47c=_0x661f9;for(var _0x3d9ba5=_0x51fb41>0x1?void 0x0:_0x51fb41?Nt(_0x2981a1,_0x2c7c74):_0x2981a1,_0x3ec2e9=_0x3ccafe[_0x5db47c(0x3e2)]-0x1,_0x3d1ee9;_0x3ec2e9>=0x0;_0x3ec2e9--)(_0x3d1ee9=_0x3ccafe[_0x3ec2e9])&&(_0x3d9ba5=_0x3d1ee9(_0x3d9ba5)||_0x3d9ba5);return _0x3d9ba5;},q=(_0x32da7c,_0x548e41)=>(_0x26efe5,_0x3fb3df)=>_0x548e41(_0x26efe5,_0x3fb3df,_0x32da7c);let ge=class extends a['RxDisposable']{constructor(_0x727cf,_0x41b9f5,_0x112ddf,_0x261895,_0x484bb0){const _0xe31a3d=_0x661f9;super(),_(this,_0xe31a3d(0x186),[]),_(this,'_cursors',[]),(this[_0xe31a3d(0x188)]=_0x727cf,this[_0xe31a3d(0x419)]=_0x41b9f5,this[_0xe31a3d(0x1c0)]=_0x112ddf,this['_commandService']=_0x261895,this[_0xe31a3d(0x2f5)]=_0x484bb0,this[_0xe31a3d(0x3bc)]());}[_0x661f9(0x3bc)](){const _0x833706=_0x661f9,_0x1c84a7=this['_context'][_0x833706(0x416)],_0xc8c858=this[_0x833706(0x419)];this['disposeWithMe'](I[_0x833706(0x320)]([this[_0x833706(0x1c0)][_0x833706(0x25a)](_0x1c84a7),this[_0x833706(0x2f5)][_0x833706(0x34f)]])['pipe']($['map'](([_0x2b3fd6,_0x49ffd6])=>({'skeleton':_0xc8c858[_0x833706(0x1a6)](),'cursors':[..._0x2b3fd6['values']()]['flatMap'](_0x5cce29=>({..._0x5cce29,'color':this[_0x833706(0x2f5)][_0x833706(0x35e)](_0x5cce29[_0x833706(0x2ec)])}))})))[_0x833706(0x30b)](_0x388dcb=>{const _0x2c783d=_0x833706;if(this[_0x2c783d(0x2d9)](),_0x388dcb){const {skeleton:_0x2ef2b7,cursors:_0x834781}=_0x388dcb;this['_updateCollabCursors'](_0x2ef2b7,_0x834781);}})),this[_0x833706(0x21f)](),this[_0x833706(0x216)]();}[_0x661f9(0x1de)](_0x45bb0d,_0x4da0e2){const _0x488d38=_0x661f9,{scene:_0x1741f4,mainComponent:_0x566b7d}=this['_context'],_0x45b7bc=_0x4da0e2['map'](_0x153986=>new Ne(_0x153986,_0x1741f4,_0x45bb0d,_0x566b7d));this['_cursorShapes']=_0x45b7bc,this[_0x488d38(0x30e)]=_0x4da0e2;}[_0x661f9(0x3a5)](){const _0x5ab374=_0x661f9;this['_removeCollabCursors']();const {scene:_0x529396,mainComponent:_0x4c5149}=this[_0x5ab374(0x188)],_0x3b7dca=this[_0x5ab374(0x419)]['getSkeleton'](),_0x2f2b1f=this[_0x5ab374(0x30e)]['map'](_0x4183db=>new Ne(_0x4183db,_0x529396,_0x3b7dca,_0x4c5149));this[_0x5ab374(0x186)]=_0x2f2b1f;}['_removeCollabCursors'](){const _0x2e4b88=_0x661f9;this[_0x2e4b88(0x186)][_0x2e4b88(0x30f)](_0xe10c1d=>_0xe10c1d['dispose']()),this[_0x2e4b88(0x186)]=[];}[_0x661f9(0x216)](){const _0x363f1f=_0x661f9,_0x3074be=[T['SetDocZoomRatioOperation']['id']];this[_0x363f1f(0x37a)](this[_0x363f1f(0x3f5)]['onCommandExecuted'](_0x5efa05=>{const _0x35e36c=_0x363f1f;_0x3074be[_0x35e36c(0x327)](_0x5efa05['id'])&&_0x5efa05['params'][_0x35e36c(0x416)]===this['_context'][_0x35e36c(0x416)]&&this[_0x35e36c(0x3a5)]();}));}[_0x661f9(0x21f)](){const _0x249c0c=_0x661f9;this[_0x249c0c(0x37a)](a[_0x249c0c(0x249)](this[_0x249c0c(0x188)]['engine'][_0x249c0c(0x263)])[_0x249c0c(0x362)]($[_0x249c0c(0x1f2)](_0x450679=>_0x450679[_0x249c0c(0x429)]===C[_0x249c0c(0x1c8)][_0x249c0c(0x227)]),$[_0x249c0c(0x181)](0x10))[_0x249c0c(0x30b)](()=>{const _0x31eb63=_0x249c0c;this[_0x31eb63(0x3a5)]();}));}};ge=Ut([q(0x1,a['Inject'](W['DocSkeletonManagerService'])),q(0x2,a['Inject'](B)),q(0x3,a[_0x661f9(0x400)]),q(0x4,a['Inject'](a[_0x661f9(0x2ae)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C['Shape']{constructor(_0x4672de,_0x229e09){const _0x1ae865=_0x661f9;super(_0x4672de,_0x229e09),_(this,_0x1ae865(0x360)),_(this,_0x1ae865(0x257),!0x1),_(this,'_range'),_(this,_0x1ae865(0x24f),''),_(this,_0x1ae865(0x40b),_0x1ae865(0x405)),_(this,_0x1ae865(0x32f)),(_0x229e09&&this[_0x1ae865(0x41c)](_0x229e09),this[_0x1ae865(0x389)][_0x1ae865(0x212)](()=>this[_0x1ae865(0x41c)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x1ae865(0x41c)]({'hovered':!0x1})));}[_0x661f9(0x41c)](_0x4d6793){const _0x3e910e=_0x661f9;var _0xe33504,_0x74eaab,_0x5b2ea9,_0x3f7ddb,_0x3ae307,_0x4c9d9d;this[_0x3e910e(0x360)]=(_0xe33504=_0x4d6793[_0x3e910e(0x2ec)])!=null?_0xe33504:this[_0x3e910e(0x360)],this[_0x3e910e(0x257)]=(_0x74eaab=_0x4d6793[_0x3e910e(0x31b)])!=null?_0x74eaab:this[_0x3e910e(0x257)],this['_range']=(_0x5b2ea9=_0x4d6793['range'])!=null?_0x5b2ea9:this[_0x3e910e(0x350)],this[_0x3e910e(0x24f)]=(_0x3f7ddb=_0x4d6793[_0x3e910e(0x388)])!=null?_0x3f7ddb:this[_0x3e910e(0x24f)],this[_0x3e910e(0x40b)]=(_0x3ae307=_0x4d6793[_0x3e910e(0x193)])!=null?_0x3ae307:this['_labelPosition'],this[_0x3e910e(0x32f)]=(_0x4c9d9d=_0x4d6793[_0x3e910e(0x37c)])!=null?_0x4c9d9d:this[_0x3e910e(0x32f)],this[_0x3e910e(0x1bc)]({'width':_0x4d6793[_0x3e910e(0x2c4)],'height':_0x4d6793[_0x3e910e(0x2b1)]});}[_0x661f9(0x224)](_0x4e23c6){const _0x21452a=_0x661f9,{row:_0x227b71,column:_0x10f8e9}=_0x4e23c6;if(_0x227b71>=this[_0x21452a(0x350)][_0x21452a(0x321)]&&_0x227b71<=this[_0x21452a(0x350)][_0x21452a(0x3a2)]&&_0x10f8e9>=this['_range'][_0x21452a(0x2a4)]&&_0x10f8e9<=this[_0x21452a(0x350)][_0x21452a(0x17f)]){this[_0x21452a(0x41c)]({'hovered':!0x0});return;}this[_0x21452a(0x41c)]({'hovered':!0x1});}['triggerDblclick'](_0x252304){return!0x1;}[_0x661f9(0x38f)](_0x11060b){const _0xbbba57=_0x661f9;C[_0xbbba57(0x3b7)]['drawWith'](_0x11060b,{'width':this[_0xbbba57(0x2c4)],'height':this[_0xbbba57(0x2b1)],'strokeWidth':Mt,'stroke':this[_0xbbba57(0x360)],'evented':!0x1,'fill':this[_0xbbba57(0x32f)]}),this[_0xbbba57(0x257)]&&(_0x11060b[_0xbbba57(0x2a5)](),_0x11060b[_0xbbba57(0x19d)](0x1,0x0,0x0,0x1,this[_0xbbba57(0x2c4)],this[_0xbbba57(0x40b)]==='bottom'?0x0:-X),ie[_0xbbba57(0x414)](_0x11060b,{'text':this[_0xbbba57(0x24f)],'color':this['_color']}),_0x11060b[_0xbbba57(0x35d)]());}}var At=Object['getOwnPropertyDescriptor'],Pt=(_0x23f528,_0x43e323,_0x2adad6,_0x536074)=>{const _0x478c5e=_0x661f9;for(var _0x58f11b=_0x536074>0x1?void 0x0:_0x536074?At(_0x43e323,_0x2adad6):_0x43e323,_0x3d8300=_0x23f528[_0x478c5e(0x3e2)]-0x1,_0x2dc1e3;_0x3d8300>=0x0;_0x3d8300--)(_0x2dc1e3=_0x23f528[_0x3d8300])&&(_0x58f11b=_0x2dc1e3(_0x58f11b)||_0x58f11b);return _0x58f11b;},_e=(_0x1045f6,_0x1e3515)=>(_0xa04961,_0x3506d4)=>_0x1e3515(_0xa04961,_0x3506d4,_0x1045f6);const wt=0x1389;let ve=class extends a[_0x661f9(0x170)]{constructor(_0xdc9570,_0x5bb875,_0x482258,_0x5effab){const _0x753fff=_0x661f9;super(),_(this,_0x753fff(0x30e),new Set()),_(this,'_lastPointer',null),(this['_context']=_0xdc9570,this['_sheetSkeletonManagerService']=_0x5bb875,this[_0x753fff(0x1c0)]=_0x482258,this[_0x753fff(0x2f5)]=_0x5effab,this[_0x753fff(0x3bc)]());}['_init'](){const _0x54048c=_0x661f9;this['_sheetSkeletonManagerService'][_0x54048c(0x232)]['pipe']($[_0x54048c(0x3eb)](this[_0x54048c(0x326)]),$['switchMap'](_0x49af86=>{const _0x271615=_0x54048c;if(_0x49af86){const _0x38bb60=_0x49af86['sheetId'];return I[_0x271615(0x320)](this[_0x271615(0x1c0)][_0x271615(0x25a)](this[_0x271615(0x188)][_0x271615(0x416)]),this[_0x271615(0x2f5)]['currentTheme$'])[_0x271615(0x362)]($[_0x271615(0x38e)](([_0x17c48d,_0x1892bd])=>{const _0x48a731=_0x271615,_0x21c068=new Map();return _0x17c48d[_0x48a731(0x30f)]((_0x28de8e,_0x3997de)=>{const _0x550e21=_0x48a731;if(_0x28de8e['sheetID']===_0x38bb60){const _0x425de8={..._0x28de8e};_0x425de8[_0x550e21(0x2ec)]=this[_0x550e21(0x2f5)][_0x550e21(0x35e)](_0x28de8e[_0x550e21(0x2ec)]),_0x21c068[_0x550e21(0x406)](_0x3997de,_0x425de8);}}),{'skeleton':_0x49af86,'cursors':_0x21c068};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x54048c(0x30b)](({skeleton:_0x50c1fc,cursors:_0x27202e})=>{const _0x3c6991=_0x54048c;this[_0x3c6991(0x2d9)](),_0x50c1fc&&this['_updateCollabCursors'](_0x50c1fc,_0x27202e);}),this[_0x54048c(0x1f8)][_0x54048c(0x232)][_0x54048c(0x30b)](_0x214dca=>{const _0x37ce67=_0x54048c;if(_0x214dca==null)return;const {skeleton:_0x153397}=_0x214dca,{scene:_0x326dad}=this[_0x37ce67(0x188)];_0x326dad[_0x37ce67(0x3ab)][_0x37ce67(0x212)](a[_0x37ce67(0x3de)](_0x1852d0=>{const _0x29f627=_0x37ce67;var _0x5ef739,_0x20a537;const {offsetX:_0x6b9805,offsetY:_0x4f168c}=_0x1852d0,{x:_0x40c7a6,y:_0x48614a}=_0x326dad[_0x29f627(0x302)](C[_0x29f627(0x1ef)][_0x29f627(0x3e0)]([_0x6b9805,_0x4f168c])),{scaleX:_0x51a0cf,scaleY:_0x3951b0}=_0x326dad[_0x29f627(0x252)](),_0x35f188=_0x326dad[_0x29f627(0x1d4)](C[_0x29f627(0x313)][_0x29f627(0x21c)]),_0x5a4995=_0x326dad[_0x29f627(0x1f1)](C[_0x29f627(0x1ef)][_0x29f627(0x3e0)]([_0x40c7a6,_0x48614a]),_0x35f188),_0x55420c=_0x153397[_0x29f627(0x267)](_0x6b9805,_0x4f168c,_0x51a0cf,_0x3951b0,_0x5a4995);((_0x5ef739=this[_0x29f627(0x2ff)])==null?void 0x0:_0x5ef739[_0x29f627(0x30a)])===_0x55420c['column']&&((_0x20a537=this[_0x29f627(0x2ff)])==null?void 0x0:_0x20a537[_0x29f627(0x209)])===_0x55420c[_0x29f627(0x209)]||this[_0x29f627(0x30e)][_0x29f627(0x30f)](_0x35fe61=>{const _0x709ffe=_0x29f627;_0x35fe61[_0x709ffe(0x224)](_0x55420c);});},0x64));});}[_0x661f9(0x1de)](_0x5b472b,_0x4c4c6d){const _0x439281=_0x661f9;var _0x346e79;const _0x187649=(_0x346e79=this[_0x439281(0x1f8)]['getCurrent']())==null?void 0x0:_0x346e79[_0x439281(0x246)];if(!_0x187649)return;const _0x1668ca=this[_0x439281(0x1c5)]();if(!_0x1668ca)return;this['_cursors'][_0x439281(0x30f)](_0x49d3c6=>{const _0x55a8b9=_0x439281;_0x49d3c6[_0x55a8b9(0x328)]();});const {scene:_0x4d53b8}=_0x1668ca,_0x1f406b=yt(Array[_0x439281(0x19f)](_0x4c4c6d['values']()))[_0x439281(0x38e)](_0x515334=>{const _0x107d3e=_0x439281,{color:_0x41951c,range:_0x4d4ec7,name:_0x26ac8e,selection:_0x4540a5,sheetID:_0x519ad3}=_0x515334,{startColumn:_0x4f0e89,startRow:_0x448ce3,endColumn:_0xca8b79,endRow:_0x3a8234}=_0x4d4ec7,_0x5f26c8=z[_0x107d3e(0x272)](_0x448ce3,_0x4f0e89,_0x4d53b8,_0x187649),_0x3de4a2=z[_0x107d3e(0x272)](_0x3a8234,_0xca8b79,_0x4d53b8,_0x187649),{columnHeaderHeightAndMarginTop:_0x29bcbe}=_0x187649,{startX:_0x3d8439,startY:_0x27fcdc}=_0x5f26c8,{endX:_0x18ca9b,endY:_0x1fee6b}=_0x3de4a2,_0x4bb51b=_0x18ca9b-_0x3d8439,_0x141fdb=_0x1fee6b-_0x27fcdc,_0x165719={'labelPosition':_0x27fcdc-_0x29bcbe>=X?_0x107d3e(0x405):_0x107d3e(0x2c5),'sheetID':_0x519ad3,'range':_0x4d4ec7,'color':_0x41951c,'name':_0x26ac8e,'selection':_0x4540a5,'left':_0x3d8439,'top':_0x27fcdc,'width':_0x4bb51b,'height':_0x141fdb,'evented':!0x1,'zIndex':wt};return new Be(_0x26ac8e,_0x165719);});_0x4d53b8[_0x439281(0x430)](_0x1f406b,Lt),this['_cursors']=new Set(_0x1f406b);}[_0x661f9(0x2d9)](){const _0x397ff4=_0x661f9;var _0x45f6d4;(_0x45f6d4=this[_0x397ff4(0x30e)])==null||_0x45f6d4[_0x397ff4(0x30f)](_0x4c94e0=>_0x4c94e0['dispose']());}[_0x661f9(0x1c5)](){const _0xf3a814=_0x661f9;return z['getSheetObject'](this[_0xf3a814(0x188)][_0xf3a814(0x42a)],this[_0xf3a814(0x188)]);}};ve=Pt([_e(0x1,a[_0x661f9(0x2c2)](z[_0x661f9(0x40f)])),_e(0x2,a[_0x661f9(0x2c2)](B)),_e(0x3,a[_0x661f9(0x2c2)](a[_0x661f9(0x2ae)]))],ve);function yt(_0x557352){const _0x2783bd=_0x661f9,_0x8fb0df=new Map();return _0x557352[_0x2783bd(0x30f)](_0x30af35=>{const _0x35c0ea=_0x2783bd;if(_0x8fb0df['has'](_0x30af35[_0x35c0ea(0x20d)])){const _0x483008=_0x8fb0df[_0x35c0ea(0x2fa)](_0x30af35['selection']);_0x483008['name']+=',\x20'+_0x30af35[_0x35c0ea(0x388)];}else _0x8fb0df[_0x35c0ea(0x406)](_0x30af35[_0x35c0ea(0x20d)],_0x30af35);}),Array[_0x2783bd(0x19f)](_0x8fb0df[_0x2783bd(0x3ad)]());}var $t=Object['getOwnPropertyDescriptor'],xt=(_0x1af9ae,_0x2ff5d3,_0x1fce48,_0x31249e)=>{const _0x437497=_0x661f9;for(var _0xedab14=_0x31249e>0x1?void 0x0:_0x31249e?$t(_0x2ff5d3,_0x1fce48):_0x2ff5d3,_0x36952d=_0x1af9ae[_0x437497(0x3e2)]-0x1,_0x4bd682;_0x36952d>=0x0;_0x36952d--)(_0x4bd682=_0x1af9ae[_0x36952d])&&(_0xedab14=_0x4bd682(_0xedab14)||_0xedab14);return _0xedab14;},y=(_0x16dc60,_0x2fb74a)=>(_0x349bcf,_0x227e8d)=>_0x2fb74a(_0x349bcf,_0x227e8d,_0x16dc60);let J=class extends a[_0x661f9(0x26a)]{constructor(_0x51367d,_0x342076,_0x2077a8,_0x1a9d70,_0x44e492,_0x2a0c7f){const _0x3cce2a=_0x661f9;super(),this[_0x3cce2a(0x1e2)]=_0x51367d,this['_localCacheService']=_0x342076,this['_collaborationUIEventService']=_0x2077a8,this[_0x3cce2a(0x32a)]=_0x1a9d70,this[_0x3cce2a(0x1fc)]=_0x44e492,this[_0x3cce2a(0x2ad)]=_0x2a0c7f,this['_setupBeforeClosingHandler'](),this[_0x3cce2a(0x3c6)]();}[_0x661f9(0x33a)](){const _0x2e25e7=_0x661f9;this['disposeWithMe'](this['_beforeCloseService'][_0x2e25e7(0x199)](()=>{const _0x5064f8=_0x2e25e7;if(this[_0x5064f8(0x3d3)][_0x5064f8(0x20e)][_0x5064f8(0x343)])return this['_localeService']['t'](_0x5064f8(0x2dc));}));}['_initEvent'](){const _0x182fa7=_0x661f9;this['disposeWithMe'](this[_0x182fa7(0x205)][_0x182fa7(0x283)][_0x182fa7(0x30b)](_0x275a73=>{const _0x28401b=_0x182fa7;_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x24a)]&&this[_0x28401b(0x32a)][_0x28401b(0x335)]({'type':p[_0x28401b(0x278)][_0x28401b(0x3bd)],'content':this[_0x28401b(0x2ad)]['t'](_0x28401b(0x1ba))}),_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x35b)]&&this[_0x28401b(0x32a)][_0x28401b(0x335)]({'type':p[_0x28401b(0x278)][_0x28401b(0x3bd)],'content':this[_0x28401b(0x2ad)]['t']('collaboration.closeRoom')}),_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x26e)]&&this[_0x28401b(0x1fc)][_0x28401b(0x335)]({'title':this['_localeService']['t'](_0x28401b(0x237)),'content':this[_0x28401b(0x2ad)]['t'](_0x28401b(0x3a7)),'type':_0x28401b(0x1c6),'duration':0x0}),_0x275a73['id']===u['CollaborationUIEventId'][_0x28401b(0x41e)]&&this[_0x28401b(0x32a)][_0x28401b(0x335)]({'type':p[_0x28401b(0x278)][_0x28401b(0x1cb)],'content':this[_0x28401b(0x2ad)]['t'](_0x28401b(0x254))+'('+_0x275a73[_0x28401b(0x315)]+')'}),_0x275a73['id']===u[_0x28401b(0x2f1)]['JOIN_ROOM_FAILED']&&this[_0x28401b(0x32a)][_0x28401b(0x335)]({'type':p[_0x28401b(0x278)][_0x28401b(0x3bd)],'content':this[_0x28401b(0x2ad)]['t'](_0x275a73[_0x28401b(0x315)]||'')}),_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x2bb)]&&this[_0x28401b(0x32a)]['show']({'type':p[_0x28401b(0x278)]['Warning'],'content':this[_0x28401b(0x2ad)]['t'](_0x28401b(0x2a9))}),_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x3a6)]&&this['_messageService']['show']({'type':p[_0x28401b(0x278)]['Error'],'content':this[_0x28401b(0x2ad)]['t'](_0x28401b(0x3da))}),_0x275a73['id']===u[_0x28401b(0x2f1)][_0x28401b(0x1d3)]&&this[_0x28401b(0x32a)][_0x28401b(0x335)]({'type':p['MessageType']['Error'],'content':this[_0x28401b(0x2ad)]['t']('session.collaboration-timeout')});}));}};J=xt([y(0x0,O[_0x661f9(0x1b7)]),y(0x1,u[_0x661f9(0x219)]),y(0x2,a[_0x661f9(0x2c2)](u[_0x661f9(0x3d1)])),y(0x3,O['IMessageService']),y(0x4,O[_0x661f9(0x345)]),y(0x5,a['Inject'](a[_0x661f9(0x413)]))],J);const Bt=_0x661f9(0x2ea),Ue={};var Ft=Object[_0x661f9(0x27b)],kt=(_0xec17ac,_0x5bc8a1,_0x195bab,_0x153113)=>{const _0x370ba3=_0x661f9;for(var _0x3af605=_0x153113>0x1?void 0x0:_0x153113?Ft(_0x5bc8a1,_0x195bab):_0x5bc8a1,_0x3affd0=_0xec17ac[_0x370ba3(0x3e2)]-0x1,_0xc14f91;_0x3affd0>=0x0;_0x3affd0--)(_0xc14f91=_0xec17ac[_0x3affd0])&&(_0x3af605=_0xc14f91(_0x3af605)||_0x3af605);return _0x3af605;},Le=(_0x5f5442,_0x2d398a)=>(_0x2c3156,_0x4c3cb6)=>_0x2d398a(_0x2c3156,_0x4c3cb6,_0x5f5442);let Z=class{constructor(_0x253efe,_0x42e2a2){const _0x36c2bd=_0x661f9;this[_0x36c2bd(0x184)]=_0x253efe,this[_0x36c2bd(0x2fe)]=_0x42e2a2;}['transformIMECache'](_0x45f23a){const _0x4866ff=_0x661f9;this['_transformUndoRedoStack'](_0x45f23a),this[_0x4866ff(0x1ac)](_0x45f23a);}['transformRemoteChangeset'](_0x4ecef7){const _0x3abbb3=_0x661f9,{unitID:_0x4b55c9}=_0x4ecef7,_0x11a2a3=this[_0x3abbb3(0x2fe)][_0x3abbb3(0x23a)](_0x4b55c9)[_0x3abbb3(0x171)](T[_0x3abbb3(0x258)]),{redoCache:_0x4000d5}=_0x11a2a3['getUndoRedoMutationParamsCache']();if(_0x4000d5[_0x3abbb3(0x3e2)]===0x0)return _0x4ecef7;let _0x368b80=a[_0x3abbb3(0x300)][_0x3abbb3(0x39c)](_0x4ecef7['mutations'][0x0]);for(let _0x25cfc3=0x0;_0x25cfc3<_0x4000d5[_0x3abbb3(0x3e2)];_0x25cfc3++){const _0x47a0bf={'id':_0x3abbb3(0x200),'params':{..._0x4000d5[_0x25cfc3]}},_0x4128fe=this['_transformService'][_0x3abbb3(0x3f6)](_0x368b80,_0x47a0bf,!0x1);if(v[_0x3abbb3(0x19a)](_0x4128fe))throw _0x4128fe['error'];_0x368b80=_0x4128fe[_0x3abbb3(0x250)];}return{...a['Tools'][_0x3abbb3(0x39c)](_0x4ecef7),'mutations':[_0x368b80]};}[_0x661f9(0x2a8)](_0x5e456e){const _0xe6e6b4=_0x661f9,{unitID:_0x499e04}=_0x5e456e,_0x52255c=this[_0xe6e6b4(0x2fe)]['getRenderById'](_0x499e04)[_0xe6e6b4(0x171)](T[_0xe6e6b4(0x258)]),{undoCache:_0xadfb9b,redoCache:_0xe7c80b}=_0x52255c[_0xe6e6b4(0x341)]();if(_0xadfb9b[_0xe6e6b4(0x3e2)]===0x0||_0xe7c80b[_0xe6e6b4(0x3e2)]===0x0)return;const _0x46914e=[],_0x5a7336=[];let _0x3e8298=a[_0xe6e6b4(0x300)][_0xe6e6b4(0x39c)](_0x5e456e[_0xe6e6b4(0x177)][0x0]),_0x17a1d0=a[_0xe6e6b4(0x300)]['deepClone'](_0x5e456e[_0xe6e6b4(0x177)][0x0]);for(let _0x11bd6c=_0xadfb9b[_0xe6e6b4(0x3e2)]-0x1;_0x11bd6c>=0x0;_0x11bd6c--){const _0x3bc3ec={'id':'doc.mutation.rich-text-editing','params':{..._0xadfb9b[_0x11bd6c]}},_0x1704d6={'id':'doc.mutation.rich-text-editing','params':{..._0xe7c80b[_0x11bd6c]}},_0x5e4dd1=this[_0xe6e6b4(0x184)][_0xe6e6b4(0x3f6)](_0x3e8298,_0x3bc3ec,!0x1),_0x18f30a=this[_0xe6e6b4(0x184)][_0xe6e6b4(0x3f6)](_0x17a1d0,_0x1704d6,!0x1);if(v[_0xe6e6b4(0x19a)](_0x5e4dd1))throw _0x5e4dd1[_0xe6e6b4(0x1c6)];if(v[_0xe6e6b4(0x19a)](_0x18f30a))throw _0x18f30a['error'];_0x46914e[_0xe6e6b4(0x18e)](_0x5e4dd1[_0xe6e6b4(0x3ce)][_0xe6e6b4(0x2e4)]),_0x5a7336['unshift'](_0x18f30a['m2Prime'][_0xe6e6b4(0x2e4)]),_0x3e8298=_0x5e4dd1[_0xe6e6b4(0x250)],_0x17a1d0=_0x18f30a[_0xe6e6b4(0x250)];}_0x52255c[_0xe6e6b4(0x27a)]({'undoCache':_0x46914e,'redoCache':_0x5a7336});}['_transformPreviousActiveRange'](_0x5197e9){const _0x4c3b64=_0x661f9,{unitID:_0x1ca365}=_0x5197e9,_0x17e96f=this[_0x4c3b64(0x2fe)][_0x4c3b64(0x23a)](_0x1ca365)[_0x4c3b64(0x171)](T[_0x4c3b64(0x258)]),_0x4655b6=_0x17e96f[_0x4c3b64(0x357)]();if(_0x4655b6==null)return;const _0x30920c=[{'id':_0x4c3b64(0x200),'params':{'unitId':_0x5197e9[_0x4c3b64(0x1af)],'actions':null,'textRanges':[_0x4655b6]}}],_0x552e6e=this[_0x4c3b64(0x184)]['transformMutationsWithChangeset'](_0x5197e9,_0x30920c);if(!v[_0x4c3b64(0x1c2)](_0x552e6e))throw _0x552e6e[_0x4c3b64(0x1c6)];const _0x264ae2=_0x552e6e[_0x4c3b64(0x3ce)][0x0][_0x4c3b64(0x2e4)][_0x4c3b64(0x1b3)];Array[_0x4c3b64(0x18f)](_0x264ae2)&&_0x264ae2[_0x4c3b64(0x3e2)]&&_0x17e96f['setActiveRange'](_0x264ae2[0x0]);}};Z=kt([Le(0x0,v[_0x661f9(0x351)]),Le(0x1,C[_0x661f9(0x253)])],Z);var jt=Object[_0x661f9(0x27b)],Yt=(_0x5771f4,_0x1e7c93,_0x2f9c1e,_0x514f67)=>{for(var _0x4ea7c7=_0x514f67>0x1?void 0x0:_0x514f67?jt(_0x1e7c93,_0x2f9c1e):_0x1e7c93,_0x20d290=_0x5771f4['length']-0x1,_0x4e6dbf;_0x20d290>=0x0;_0x20d290--)(_0x4e6dbf=_0x5771f4[_0x20d290])&&(_0x4ea7c7=_0x4e6dbf(_0x4ea7c7)||_0x4ea7c7);return _0x4ea7c7;},he=(_0x58de33,_0x167245)=>(_0x4949f8,_0x58f6d3)=>_0x167245(_0x4949f8,_0x58f6d3,_0x58de33);let Q=class{constructor(_0x5a53ed,_0x3372e7,_0x1978f7){const _0x4158a7=_0x661f9;this[_0x4158a7(0x352)]=_0x5a53ed,this['_transformService']=_0x3372e7,this[_0x4158a7(0x3e6)]=_0x1978f7;}[_0x661f9(0x1b4)](_0x281e93){this['_transformHistoryAndStateStack'](_0x281e93);}[_0x661f9(0x182)](_0x16e629){const _0x2946cd=_0x661f9,{unitID:_0x330690}=_0x16e629,{collaboration:_0x2cf09c}=this[_0x2946cd(0x3e6)]['getStateCache'](_0x330690);if(_0x2cf09c[_0x2946cd(0x3e2)]===0x0)return _0x16e629;let _0x41c832=a[_0x2946cd(0x300)][_0x2946cd(0x39c)](_0x16e629[_0x2946cd(0x177)][0x0]);for(let _0x254876=0x0;_0x254876<_0x2cf09c[_0x2946cd(0x3e2)];_0x254876++){const _0x49ba06={'id':_0x2946cd(0x200),'params':{'unitId':_0x2cf09c[_0x254876][_0x2946cd(0x416)],..._0x2cf09c[_0x254876]['redoState']}},_0x53ac05=this[_0x2946cd(0x184)][_0x2946cd(0x3f6)](_0x41c832,_0x49ba06,!0x1);if(v[_0x2946cd(0x19a)](_0x53ac05))throw _0x53ac05[_0x2946cd(0x1c6)];_0x41c832=_0x53ac05[_0x2946cd(0x250)];}return{...a[_0x2946cd(0x300)][_0x2946cd(0x39c)](_0x16e629),'mutations':[_0x41c832]};}['_transformHistoryAndStateStack'](_0x2faf10){const _0x3f19b8=_0x661f9,{unitID:_0x4105a9}=_0x2faf10,{history:_0xd4df68,collaboration:_0x6f6490}=this[_0x3f19b8(0x3e6)][_0x3f19b8(0x3f0)](_0x4105a9);if(_0xd4df68['length']===0x0&&_0x6f6490[_0x3f19b8(0x3e2)]===0x0)return;const _0x288574=[],_0x1b9edf=[];let _0x560e0f=a[_0x3f19b8(0x300)][_0x3f19b8(0x39c)](_0x2faf10[_0x3f19b8(0x177)][0x0]),_0x5b8bda=a['Tools']['deepClone'](_0x2faf10[_0x3f19b8(0x177)][0x0]);for(let _0x276041=_0xd4df68[_0x3f19b8(0x3e2)]-0x1;_0x276041>=0x0;_0x276041--){const _0x41aa80={'id':_0x3f19b8(0x200),'params':{'unitId':_0xd4df68[_0x276041][_0x3f19b8(0x416)],..._0xd4df68[_0x276041][_0x3f19b8(0x1f0)]}},_0x13a980={'id':_0x3f19b8(0x200),'params':{'unitId':_0xd4df68[_0x276041][_0x3f19b8(0x416)],..._0xd4df68[_0x276041][_0x3f19b8(0x1e5)]}},_0xcaf20e=this[_0x3f19b8(0x184)][_0x3f19b8(0x3f6)](_0x560e0f,_0x41aa80,!0x1),_0x1e4127=this[_0x3f19b8(0x184)][_0x3f19b8(0x3f6)](_0x5b8bda,_0x13a980,!0x1);if(v[_0x3f19b8(0x19a)](_0xcaf20e))throw _0xcaf20e[_0x3f19b8(0x1c6)];if(v[_0x3f19b8(0x19a)](_0x1e4127))throw _0x1e4127[_0x3f19b8(0x1c6)];_0x288574[_0x3f19b8(0x18e)]({..._0xd4df68[_0x276041],'undoState':_0xcaf20e['m2Prime'][_0x3f19b8(0x2e4)],'redoState':_0x1e4127[_0x3f19b8(0x3ce)][_0x3f19b8(0x2e4)]}),_0x560e0f=_0xcaf20e[_0x3f19b8(0x250)],_0x5b8bda=_0x1e4127[_0x3f19b8(0x250)];}_0x560e0f=a['Tools'][_0x3f19b8(0x39c)](_0x2faf10['mutations'][0x0]),_0x5b8bda=a['Tools']['deepClone'](_0x2faf10['mutations'][0x0]);for(let _0x586491=_0x6f6490[_0x3f19b8(0x3e2)]-0x1;_0x586491>=0x0;_0x586491--){const _0x3ae036={'id':_0x3f19b8(0x200),'params':{'unitId':_0x6f6490[_0x586491][_0x3f19b8(0x416)],..._0x6f6490[_0x586491][_0x3f19b8(0x1f0)]}},_0xc8ec5b={'id':_0x3f19b8(0x200),'params':{'unitId':_0x6f6490[_0x586491][_0x3f19b8(0x416)],..._0x6f6490[_0x586491][_0x3f19b8(0x1e5)]}},_0x272664=this['_transformService'][_0x3f19b8(0x3f6)](_0x560e0f,_0x3ae036,!0x1),_0x5b6ac6=this[_0x3f19b8(0x184)][_0x3f19b8(0x3f6)](_0x5b8bda,_0xc8ec5b,!0x1);if(v[_0x3f19b8(0x19a)](_0x272664))throw _0x272664[_0x3f19b8(0x1c6)];if(v[_0x3f19b8(0x19a)](_0x5b6ac6))throw _0x5b6ac6[_0x3f19b8(0x1c6)];_0x1b9edf['unshift']({..._0x6f6490[_0x586491],'undoState':_0x272664[_0x3f19b8(0x3ce)][_0x3f19b8(0x2e4)],'redoState':_0x5b6ac6['m2Prime']['params']}),_0x560e0f=_0x272664[_0x3f19b8(0x250)],_0x5b8bda=_0x5b6ac6[_0x3f19b8(0x250)];}this[_0x3f19b8(0x3e6)][_0x3f19b8(0x344)](_0x4105a9,{'history':_0x288574,'collaboration':_0x1b9edf});}};Q=Yt([he(0x0,a['Inject'](a['Injector'])),he(0x1,v[_0x661f9(0x351)]),he(0x2,a[_0x661f9(0x2c2)](T[_0x661f9(0x2ef)]))],Q);var Ht=Object[_0x661f9(0x27b)],Wt=(_0x524cd4,_0x2c4f7b,_0x1dbf6f,_0x371224)=>{const _0x3c77c1=_0x661f9;for(var _0x9decd9=_0x371224>0x1?void 0x0:_0x371224?Ht(_0x2c4f7b,_0x1dbf6f):_0x2c4f7b,_0x2e455d=_0x524cd4[_0x3c77c1(0x3e2)]-0x1,_0x1b9e97;_0x2e455d>=0x0;_0x2e455d--)(_0x1b9e97=_0x524cd4[_0x2e455d])&&(_0x9decd9=_0x1b9e97(_0x9decd9)||_0x9decd9);return _0x9decd9;},Me=(_0x165fb5,_0xb208a6)=>(_0xd28edd,_0x2173a2)=>_0xb208a6(_0xd28edd,_0x2173a2,_0x165fb5);let ee=class{constructor(_0x1894df,_0x5e6660){const _0x3cbfe0=_0x661f9;this[_0x3cbfe0(0x352)]=_0x1894df,this['_transformService']=_0x5e6660;}[_0x661f9(0x1ce)](_0x2c4b44){const _0x3d71ed=_0x661f9;var _0x2b8d4c;const _0x28d8f9=this['_injector'][_0x3d71ed(0x2fa)](W[_0x3d71ed(0x3db)]),_0x55327f=(_0x2b8d4c=_0x28d8f9['getDocRanges']())!=null?_0x2b8d4c:[];if(_0x55327f['length']===0x0)return;const _0x2b03ac=_0x2c4b44[_0x3d71ed(0x1af)],_0x3cdeaa=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b03ac,'actions':null,'textRanges':_0x55327f}}],_0x33d7f9=this[_0x3d71ed(0x184)]['transformMutationsWithChangeset'](_0x2c4b44,_0x3cdeaa);if(!v[_0x3d71ed(0x1c2)](_0x33d7f9))throw _0x33d7f9[_0x3d71ed(0x1c6)];const _0xfee209=_0x33d7f9[_0x3d71ed(0x3ce)][0x0][_0x3d71ed(0x2e4)][_0x3d71ed(0x1b3)];Array[_0x3d71ed(0x18f)](_0xfee209)&&_0xfee209['length']&&_0x28d8f9[_0x3d71ed(0x2d7)](_0xfee209,{'unitId':_0x2b03ac,'subUnitId':_0x2b03ac},!0x1);}};ee=Wt([Me(0x0,a[_0x661f9(0x2c2)](a[_0x661f9(0x2f8)])),Me(0x1,v[_0x661f9(0x351)])],ee);var Vt=Object[_0x661f9(0x27b)],Gt=(_0x16e14f,_0x522589,_0x5be6a9,_0x19605e)=>{for(var _0x1d15a6=_0x19605e>0x1?void 0x0:_0x19605e?Vt(_0x522589,_0x5be6a9):_0x522589,_0x399f48=_0x16e14f['length']-0x1,_0x20a3b7;_0x399f48>=0x0;_0x399f48--)(_0x20a3b7=_0x16e14f[_0x399f48])&&(_0x1d15a6=_0x20a3b7(_0x1d15a6)||_0x1d15a6);return _0x1d15a6;},N=(_0x371eae,_0x3d42be)=>(_0x57931c,_0x364d32)=>_0x3d42be(_0x57931c,_0x364d32,_0x371eae);let te=class extends a[_0x661f9(0x26a)]{constructor(_0x24d631,_0x3b1ee4,_0x4f47af,_0x591489,_0x133773,_0x3ec2de,_0x2fcd81,_0x17bb06){const _0xb36fa0=_0x661f9;super(),_(this,_0xb36fa0(0x2b4),new I[(_0xb36fa0(0x175))](u[_0xb36fa0(0x395)][_0xb36fa0(0x243)])),(this[_0xb36fa0(0x3e6)]=_0x24d631,this[_0xb36fa0(0x21e)]=_0x3b1ee4,this[_0xb36fa0(0x3f8)]=_0x4f47af,this['_docTransformStateCacheService']=_0x591489,this['_docTransformSelectionsService']=_0x133773,this[_0xb36fa0(0x2aa)]=_0x3ec2de,this[_0xb36fa0(0x32a)]=_0x2fcd81,this[_0xb36fa0(0x2ad)]=_0x17bb06,this[_0xb36fa0(0x392)]());}[_0x661f9(0x392)](){const _0x50d986=_0x661f9;this['disposeWithMe'](this[_0x50d986(0x21e)][_0x50d986(0x294)][_0x50d986(0x30b)](_0x14d1a3=>{const _0x3698ea=_0x50d986,_0x3197e9=this[_0x3698ea(0x3e6)][_0x3698ea(0x394)][_0x3698ea(0x30b)](_0x14d745=>{const _0xd752c5=_0x3698ea;if(_0x14d745==null)return;const {unitId:_0xa48556,redoState:_0x418caa,commandId:_0x31ad71}=_0x14d745;if(_0xa48556!==_0x14d1a3['unitID'])return;const _0x12fde6={'id':_0x31ad71,'type':a[_0xd752c5(0x384)][_0xd752c5(0x268)],'params':{'unitId':_0xa48556,'actions':_0x418caa[_0xd752c5(0x1ae)],'textRanges':null}};_0x14d1a3[_0xd752c5(0x2a1)](_0x12fde6);});if(_0x14d1a3[_0x3698ea(0x37a)](_0x3197e9),_0x14d1a3 instanceof u['DocCollaborationEntity']){const _0x3c4eba={'onTransformIME':_0x20e2aa=>this[_0x3698ea(0x3f8)][_0x3698ea(0x428)](_0x20e2aa),'onTransformState':_0x11e4a4=>this[_0x3698ea(0x1c9)][_0x3698ea(0x1b4)](_0x11e4a4),'onTransformSelections':_0x3dc624=>this[_0x3698ea(0x2e6)]['transformSelections'](_0x3dc624),'onSyncEditingCollabCursor':_0x45e04c=>this[_0x3698ea(0x2aa)][_0x3698ea(0x21b)](_0x45e04c),'onTransformRemoteChangesetByIMECache':_0x777e97=>this[_0x3698ea(0x3f8)][_0x3698ea(0x182)](_0x777e97),'onTransformRemoteChangesetByStateCache':_0x978282=>this['_docTransformStateCacheService'][_0x3698ea(0x182)](_0x978282)};_0x14d1a3['addHandlerCallback'](_0x3c4eba);}}));}};te=Gt([N(0x0,a[_0x661f9(0x2c2)](T[_0x661f9(0x2ef)])),N(0x1,a[_0x661f9(0x2c2)](u[_0x661f9(0x23b)])),N(0x2,a[_0x661f9(0x2c2)](Z)),N(0x3,a[_0x661f9(0x2c2)](Q)),N(0x4,a[_0x661f9(0x2c2)](ee)),N(0x5,a[_0x661f9(0x2c2)](Oe)),N(0x6,O['IMessageService']),N(0x7,a[_0x661f9(0x2c2)](a[_0x661f9(0x413)]))],te);var V=(_0x139da5=>(_0x139da5[_0x139da5['UNDEFINED']=0x0]=_0x661f9(0x245),_0x139da5[_0x139da5['OK']=0x1]='OK',_0x139da5[_0x139da5[_0x661f9(0x39a)]=0x2]=_0x661f9(0x39a),_0x139da5[_0x139da5[_0x661f9(0x26e)]=0x3]=_0x661f9(0x26e),_0x139da5[_0x139da5[_0x661f9(0x3d4)]=0x4]='NOT_FOUND',_0x139da5[_0x139da5[_0x661f9(0x379)]=0x5]=_0x661f9(0x379),_0x139da5[_0x139da5[_0x661f9(0x3b5)]=0x6]=_0x661f9(0x3b5),_0x139da5[_0x139da5[_0x661f9(0x1a3)]=0x7]=_0x661f9(0x1a3),_0x139da5[_0x139da5[_0x661f9(0x1e7)]=0x8]='TOO_MANY_REQUESTS',_0x139da5[_0x139da5[_0x661f9(0x2d3)]=0x9]=_0x661f9(0x2d3),_0x139da5[_0x139da5[_0x661f9(0x34a)]=0xa]=_0x661f9(0x34a),_0x139da5[_0x139da5[_0x661f9(0x407)]=0xb]=_0x661f9(0x407),_0x139da5[_0x139da5[_0x661f9(0x2d8)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x139da5[_0x139da5[_0x661f9(0x412)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x139da5[_0x139da5[_0x661f9(0x1d6)]=0xe]=_0x661f9(0x1d6),_0x139da5[_0x139da5[_0x661f9(0x37b)]=0xf]=_0x661f9(0x37b),_0x139da5[_0x139da5[_0x661f9(0x319)]=0x10]=_0x661f9(0x319),_0x139da5[_0x139da5[_0x661f9(0x2ab)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x139da5[_0x139da5['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x139da5[_0x139da5[_0x661f9(0x2b0)]=0xc9]=_0x661f9(0x2b0),_0x139da5[_0x139da5[_0x661f9(0x269)]=0xca]=_0x661f9(0x269),_0x139da5[_0x139da5['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x661f9(0x242),_0x139da5[_0x139da5[_0x661f9(0x1f4)]=0x1771]=_0x661f9(0x1f4),_0x139da5[_0x139da5[_0x661f9(0x3cd)]=0x1772]=_0x661f9(0x3cd),_0x139da5[_0x139da5[_0x661f9(0x3c1)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x139da5[_0x139da5[_0x661f9(0x22b)]=0x1b59]=_0x661f9(0x22b),_0x139da5[_0x139da5['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x661f9(0x2fb),_0x139da5[_0x139da5[_0x661f9(0x408)]=0x1b5b]=_0x661f9(0x408),_0x139da5[_0x139da5[_0x661f9(0x421)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x139da5[_0x139da5[_0x661f9(0x40a)]=0x1b5d]=_0x661f9(0x40a),_0x139da5[_0x139da5[_0x661f9(0x3d5)]=0x1f41]=_0x661f9(0x3d5),_0x139da5[_0x139da5[_0x661f9(0x382)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x139da5[_0x139da5[_0x661f9(0x1cc)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x139da5[_0x139da5['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x661f9(0x2b8),_0x139da5[_0x139da5[_0x661f9(0x3d8)]=0x232c]=_0x661f9(0x3d8),_0x139da5[_0x139da5[_0x661f9(0x3ac)]=0x232d]=_0x661f9(0x3ac),_0x139da5[_0x139da5['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x661f9(0x279),_0x139da5[_0x139da5['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x661f9(0x3c3),_0x139da5[_0x139da5[_0x661f9(0x3d7)]=0x2713]=_0x661f9(0x3d7),_0x139da5[_0x139da5[_0x661f9(0x1a2)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x139da5[_0x139da5['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x139da5[_0x139da5[_0x661f9(0x3ff)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x139da5[_0x139da5[_0x661f9(0x2e2)]=0x271c]=_0x661f9(0x2e2),_0x139da5[_0x139da5[_0x661f9(0x36e)]=0x271d]=_0x661f9(0x36e),_0x139da5[_0x139da5[_0x661f9(0x23e)]=0x271e]=_0x661f9(0x23e),_0x139da5[_0x139da5[_0x661f9(0x247)]=0x271f]=_0x661f9(0x247),_0x139da5[_0x139da5[_0x661f9(0x2dd)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x139da5[_0x139da5['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x661f9(0x276),_0x139da5[_0x139da5[_0x661f9(0x1b8)]=0x2ee1]=_0x661f9(0x1b8),_0x139da5[_0x139da5['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x139da5[_0x139da5[_0x661f9(0x1c1)]=0x2ee3]=_0x661f9(0x1c1),_0x139da5[_0x139da5[_0x661f9(0x27d)]=0x2ee4]=_0x661f9(0x27d),_0x139da5[_0x139da5[_0x661f9(0x2e1)]=0x2ee5]=_0x661f9(0x2e1),_0x139da5[_0x139da5[_0x661f9(0x1be)]=0x32c9]=_0x661f9(0x1be),_0x139da5[_0x139da5['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x661f9(0x221),_0x139da5[_0x139da5[_0x661f9(0x371)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x139da5[_0x139da5[_0x661f9(0x297)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x139da5[_0x139da5[_0x661f9(0x3dd)]=0x36b2]=_0x661f9(0x3dd),_0x139da5[_0x139da5['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x661f9(0x410),_0x139da5[_0x139da5[_0x661f9(0x264)]=0x36b4]=_0x661f9(0x264),_0x139da5[_0x139da5['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x139da5[_0x139da5['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x661f9(0x404),_0x139da5[_0x139da5[_0x661f9(0x367)]=0x3717]=_0x661f9(0x367),_0x139da5[_0x139da5['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x661f9(0x369),_0x139da5[_0x139da5['REDEMPTION_INVALID_CODE']=0x3a99]=_0x661f9(0x3bf),_0x139da5[_0x139da5['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x661f9(0x415),_0x139da5[_0x139da5[_0x661f9(0x2ba)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x139da5[_0x139da5[_0x661f9(0x295)]=0x3a9c]=_0x661f9(0x295),_0x139da5[_0x139da5['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x139da5[_0x139da5[_0x661f9(0x28d)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x139da5[_0x139da5['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x661f9(0x1aa),_0x139da5[_0x139da5['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x139da5[_0x139da5[_0x661f9(0x365)]=-0x1]=_0x661f9(0x365),_0x139da5))(V||{});function Xt(_0x40b752){const _0x194718=_0x661f9;var _0x19cc9d,_0x30149a;const _0x20037d=(_0x19cc9d=_0x40b752[_0x194718(0x34e)])==null?void 0x0:_0x19cc9d['stage'],_0x294d2a=((_0x30149a=_0x40b752[_0x194718(0x34e)])==null?void 0x0:_0x30149a[_0x194718(0x274)])||0x0;return _0x20037d===x[_0x194718(0x1b0)][_0x194718(0x3b1)]&&_0x294d2a>0x0;}function Kt(_0xdb746f){const _0x3df804=_0x661f9;return _0xdb746f[_0x3df804(0x273)]===x[_0x3df804(0x1cd)][_0x3df804(0x386)];}var qt=Object[_0x661f9(0x27b)],zt=(_0x3aefc4,_0x3cf52b,_0x2ba465,_0x4ccc20)=>{const _0x363d54=_0x661f9;for(var _0x2e4f10=_0x4ccc20>0x1?void 0x0:_0x4ccc20?qt(_0x3cf52b,_0x2ba465):_0x3cf52b,_0x2cf0e5=_0x3aefc4[_0x363d54(0x3e2)]-0x1,_0x3621e3;_0x2cf0e5>=0x0;_0x2cf0e5--)(_0x3621e3=_0x3aefc4[_0x2cf0e5])&&(_0x2e4f10=_0x3621e3(_0x2e4f10)||_0x2e4f10);return _0x2e4f10;},L=(_0x5b5738,_0x51ea48)=>(_0x425044,_0x745f27)=>_0x51ea48(_0x425044,_0x745f27,_0x5b5738);const Jt=_0x661f9(0x322),Zt='/universer-api/license/formula/limit/start',Qt=_0x661f9(0x18c);let se=class extends a['Disposable']{constructor(_0x3690ef,_0x160593,_0x3cd582,_0x2f0ecf,_0x1dfb69,_0x363d63,_0x1f2da0){const _0x4231c7=_0x661f9;super(),_(this,_0x4231c7(0x1e9),null),_(this,_0x4231c7(0x3cb),0x0),_(this,'_currentUsage',0x0),_(this,_0x4231c7(0x348),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x4231c7(0x32a)]=_0x3690ef,this[_0x4231c7(0x3f5)]=_0x160593,this['_configService']=_0x3cd582,this[_0x4231c7(0x192)]=_0x2f0ecf,this['_univerInstanceService']=_0x1dfb69,this[_0x4231c7(0x25f)]=_0x363d63,this[_0x4231c7(0x2ad)]=_0x1f2da0,this[_0x4231c7(0x178)]());}[_0x661f9(0x178)](){const _0x1efbfa=_0x661f9;this['disposeWithMe'](this['_commandService'][_0x1efbfa(0x25e)]((_0x483744,_0x358e18)=>{const _0x5263bd=_0x1efbfa;var _0x1458c6;if(_0x483744['id']!==x[_0x5263bd(0x2b2)]['id'])return;const _0x1751b4=_0x483744[_0x5263bd(0x2e4)];if(!this[_0x5263bd(0x3b8)]((_0x1458c6=_0x1751b4[_0x5263bd(0x2fc)])!=null?_0x1458c6:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x483744,_0x358e18),this[_0x5263bd(0x355)](),new a[(_0x5263bd(0x325))]();})),this[_0x1efbfa(0x37a)](this[_0x1efbfa(0x3f5)][_0x1efbfa(0x28a)]((_0xc24fb5,_0x555baf)=>{const _0x3a05a7=_0x1efbfa;if(_0xc24fb5['id']!==x[_0x3a05a7(0x411)]['id'])return;const _0x383af5=_0xc24fb5[_0x3a05a7(0x2e4)];if(Xt(_0x383af5)){const _0x3cac60=a[_0x3a05a7(0x23d)]();this['_taskIds'][_0x3a05a7(0x28f)](_0x3cac60),this['_startCalculationLimit'](_0x3cac60);}else{if(Kt(_0x383af5)&&this[_0x3a05a7(0x348)][_0x3a05a7(0x3e2)]>0x0){const _0x2c3905=this[_0x3a05a7(0x348)][_0x3a05a7(0x2d4)]();this[_0x3a05a7(0x3bb)](_0x2c3905);}}}));}[_0x661f9(0x1ff)](){const _0x39641b=_0x661f9;super[_0x39641b(0x1ff)](),this[_0x39641b(0x240)](),this[_0x39641b(0x348)]=[],this[_0x39641b(0x277)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x39641b(0x17e)]=0x0;}async[_0x661f9(0x37f)](_0x3d700d,_0x477c89){const _0x1a649f=_0x661f9;for(let _0x4d3c5a=0x0;_0x4d3c5a<0x1e;_0x4d3c5a++)try{if(await this[_0x1a649f(0x378)](),this['_checkCalculationAvailable']()){this[_0x1a649f(0x36f)](_0x3d700d,_0x477c89),this[_0x1a649f(0x32a)][_0x1a649f(0x335)]({'content':this['_localeService']['t'](_0x1a649f(0x3a1)),'type':p[_0x1a649f(0x278)][_0x1a649f(0x1a0)]});return;}await new Promise(_0x3844ae=>{const _0x3ed752=_0x1a649f;this[_0x3ed752(0x1e9)]=window['setTimeout'](_0x3844ae,0x3e8);});}catch(_0x370226){this[_0x1a649f(0x25f)][_0x1a649f(0x1c6)](_0x370226);}this['_messageService'][_0x1a649f(0x335)]({'content':this['_localeService']['t'](_0x1a649f(0x403)),'type':p[_0x1a649f(0x278)][_0x1a649f(0x1cb)]});}[_0x661f9(0x36f)](_0xc87abb,_0x39b82e){const _0x11bb6d=_0x661f9;try{this['_commandService'][_0x11bb6d(0x39f)](_0xc87abb['id'],_0xc87abb[_0x11bb6d(0x2e4)],_0x39b82e);}catch(_0x120942){this[_0x11bb6d(0x25f)][_0x11bb6d(0x1c6)](_0x120942);}}[_0x661f9(0x231)](_0x53a3c9,_0x2082f5){const _0x1d1218=_0x661f9;_0x2082f5<this[_0x1d1218(0x17e)]||(this['_lastResponseTimestamp']=_0x2082f5,this['_maxFormulaLimit']=Number[_0x1d1218(0x1c7)](_0x53a3c9[_0x1d1218(0x2f3)]),this[_0x1d1218(0x277)]=Number[_0x1d1218(0x1c7)](_0x53a3c9[_0x1d1218(0x35a)]));}async[_0x661f9(0x3ed)](_0x11aa86){const _0x5b99e1=_0x661f9;var _0x67d647,_0x1296c5;const _0x2ce35e=Date[_0x5b99e1(0x185)]();try{const _0x3fec71=((_0x67d647=this['_configService'][_0x5b99e1(0x31a)](u[_0x5b99e1(0x32d)]))==null?void 0x0:_0x67d647[_0x5b99e1(0x331)])||Zt,_0x47d82e=(await this['_httpService'][_0x5b99e1(0x424)](_0x3fec71,{'body':JSON[_0x5b99e1(0x3c7)]({'taskId':_0x11aa86})}))[_0x5b99e1(0x349)];if(((_0x1296c5=_0x47d82e['error'])==null?void 0x0:_0x1296c5[_0x5b99e1(0x1e6)])!==V['OK'])return;this[_0x5b99e1(0x231)](_0x47d82e[_0x5b99e1(0x281)],_0x2ce35e);}catch(_0x228bf3){this[_0x5b99e1(0x25f)]['error'](_0x228bf3);}}async[_0x661f9(0x378)](_0x186fc3){const _0x428c0d=_0x661f9;var _0x86b935,_0x2f60c5;const _0x299292=Date['now']();try{const _0x35cfd6=((_0x86b935=this[_0x428c0d(0x197)][_0x428c0d(0x31a)](u[_0x428c0d(0x32d)]))==null?void 0x0:_0x86b935[_0x428c0d(0x42c)])||Jt,_0x293b35=_0x186fc3?_0x35cfd6+_0x428c0d(0x1bb)+encodeURIComponent(_0x186fc3):_0x35cfd6,_0x3131db=(await this[_0x428c0d(0x192)]['get'](_0x293b35))[_0x428c0d(0x349)];if(((_0x2f60c5=_0x3131db[_0x428c0d(0x1c6)])==null?void 0x0:_0x2f60c5[_0x428c0d(0x1e6)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x3131db[_0x428c0d(0x281)],_0x299292);}catch(_0x38d3e1){this[_0x428c0d(0x25f)][_0x428c0d(0x1c6)](_0x38d3e1);}}async[_0x661f9(0x3bb)](_0x27805f){const _0x303c2e=_0x661f9;var _0x1dfd15,_0x42626d;const _0x136421=Date[_0x303c2e(0x185)]();try{const _0x5d3bfa=((_0x1dfd15=this[_0x303c2e(0x197)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x1dfd15[_0x303c2e(0x381)])||Qt,_0x4fb751=(await this[_0x303c2e(0x192)][_0x303c2e(0x424)](_0x5d3bfa,{'body':JSON[_0x303c2e(0x3c7)]({'taskId':_0x27805f})}))['body'];if(((_0x42626d=_0x4fb751[_0x303c2e(0x1c6)])==null?void 0x0:_0x42626d[_0x303c2e(0x1e6)])!==V['OK'])return;this[_0x303c2e(0x231)](_0x4fb751['limitInfo'],_0x136421);}catch(_0x3e7a0e){this[_0x303c2e(0x25f)][_0x303c2e(0x1c6)](_0x3e7a0e);}}[_0x661f9(0x38a)](){const _0x4bbf8c=_0x661f9;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x4bbf8c(0x277)]>0x0;}[_0x661f9(0x240)](){const _0x5a4ccd=_0x661f9;this[_0x5a4ccd(0x1e9)]&&(clearTimeout(this[_0x5a4ccd(0x1e9)]),this[_0x5a4ccd(0x1e9)]=null);}[_0x661f9(0x355)](){const _0x2f4851=_0x661f9;this[_0x2f4851(0x32a)][_0x2f4851(0x335)]({'content':this[_0x2f4851(0x2ad)]['t'](_0x2f4851(0x1a1)),'type':p[_0x2f4851(0x278)]['Loading']});}[_0x661f9(0x3b8)](_0x52999f){const _0x225ff6=_0x661f9;for(const _0x7bc043 of _0x52999f){const {unitId:_0x3218d2,sheetId:_0x145be5,range:_0x236f3b}=_0x7bc043,_0x44913c=this[_0x225ff6(0x172)][_0x225ff6(0x223)](_0x3218d2);if(!_0x44913c)continue;const _0x557eb7=_0x44913c['getSheetBySheetId'](_0x145be5);if(!_0x557eb7)continue;const _0xe1335=_0x557eb7[_0x225ff6(0x23f)]();for(let _0x37bd18=_0x236f3b['startRow'];_0x37bd18<=_0x236f3b[_0x225ff6(0x3a2)];_0x37bd18++)for(let _0x41d152=_0x236f3b[_0x225ff6(0x2a4)];_0x41d152<=_0x236f3b[_0x225ff6(0x17f)];_0x41d152++){const _0x514cc3=_0xe1335[_0x225ff6(0x3c5)](_0x37bd18,_0x41d152);if(_0x514cc3&&(a['isFormulaString'](_0x514cc3['f'])||a[_0x225ff6(0x330)](_0x514cc3['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a[_0x661f9(0x2c2)](O[_0x661f9(0x2fd)])),L(0x1,a[_0x661f9(0x400)]),L(0x2,a[_0x661f9(0x3fe)]),L(0x3,a[_0x661f9(0x2c2)](G[_0x661f9(0x364)])),L(0x4,a[_0x661f9(0x32b)]),L(0x5,a[_0x661f9(0x3cf)]),L(0x6,a[_0x661f9(0x2c2)](a['LocaleService']))],se);var es=Object[_0x661f9(0x27b)],ts=(_0x4e1730,_0x417d18,_0x3b3643,_0x15958a)=>{const _0x4eb368=_0x661f9;for(var _0x400166=_0x15958a>0x1?void 0x0:_0x15958a?es(_0x417d18,_0x3b3643):_0x417d18,_0xf39bbe=_0x4e1730[_0x4eb368(0x3e2)]-0x1,_0x4f7922;_0xf39bbe>=0x0;_0xf39bbe--)(_0x4f7922=_0x4e1730[_0xf39bbe])&&(_0x400166=_0x4f7922(_0x400166)||_0x400166);return _0x400166;},ue=(_0x162fe5,_0x5143bb)=>(_0x2bfbdc,_0x3470ba)=>_0x5143bb(_0x2bfbdc,_0x3470ba,_0x162fe5);let Ee=class extends a['Disposable']{constructor(_0x3b665c,_0x1d4f66,_0x3220c2){const _0x3d7de5=_0x661f9;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x3d7de5(0x22f),!0x1),(this[_0x3d7de5(0x197)]=_0x3b665c,this[_0x3d7de5(0x303)]=_0x1d4f66,this[_0x3d7de5(0x1cf)]=_0x3220c2);}[_0x661f9(0x33e)](){const _0xd1a9e1=_0x661f9;this[_0xd1a9e1(0x22f)]=!0x0;}[_0x661f9(0x358)](){this['_disabled']=!0x1;}get[_0x661f9(0x20e)](){return this['_saveTaskMap'];}[_0x661f9(0x1ff)](){const _0x53034a=_0x661f9;this[_0x53034a(0x3fa)]()[_0x53034a(0x1d0)](()=>super['dispose']());}async[_0x661f9(0x30d)](_0x4bea55){const _0x7569e3=_0x661f9;return this['_disabled']?null:this['_localStorageService'][_0x7569e3(0x19b)](u[_0x7569e3(0x35c)](_0x4bea55));}async[_0x661f9(0x2ee)](_0x4d0307,_0x79f4d2){const _0xbbb17f=_0x661f9;return!!this[_0xbbb17f(0x303)]['setItem'](_0x4d0307,_0x79f4d2);}[_0x661f9(0x425)](_0x3212bb,_0x17ff46,_0x4ee6c0,_0x904c1){const _0xc384ba=_0x661f9,_0x1b6c50=this[_0xc384ba(0x1cf)][_0xc384ba(0x204)](_0x3212bb);this['_cachedData']['set'](_0x3212bb,{'unitID':_0x3212bb,'type':_0x17ff46,'awaitingChangeset':_0x4ee6c0,'mutations':_0x904c1,'rev':_0x1b6c50}),this['_saveTaskMap'][_0xc384ba(0x1d2)](_0x3212bb)||this[_0xc384ba(0x285)](_0x3212bb);}[_0x661f9(0x285)](_0xea7895){const _0xe3989=_0x661f9,_0x1975a2=this[_0xe3989(0x19e)]();_0x1975a2===0x0?this[_0xe3989(0x39d)](_0xea7895):this[_0xe3989(0x3ca)][_0xe3989(0x406)](_0xea7895,setTimeout(()=>this['_saveCache'](_0xea7895),_0x1975a2));}[_0x661f9(0x19e)](){const _0x3f4e92=_0x661f9;var _0x4dec9e;return(_0x4dec9e=this[_0x3f4e92(0x197)][_0x3f4e92(0x31a)](u[_0x3f4e92(0x31f)]))!=null?_0x4dec9e:u[_0x3f4e92(0x23c)];}[_0x661f9(0x39d)](_0xa4c54){const _0x2cf1f6=_0x661f9,_0x28d1c9=this['_saveTaskMap'][_0x2cf1f6(0x2fa)](_0xa4c54);return _0x28d1c9!==void 0x0&&window['clearTimeout'](_0x28d1c9),this['_localStorageService'][_0x2cf1f6(0x3b6)](u[_0x2cf1f6(0x35c)](_0xa4c54),this[_0x2cf1f6(0x390)]['get'](_0xa4c54))[_0x2cf1f6(0x1d0)](()=>this[_0x2cf1f6(0x3ca)][_0x2cf1f6(0x323)](_0xa4c54));}async[_0x661f9(0x3fa)](){const _0x542309=_0x661f9,_0x24e8ed=[];this['_saveTaskMap'][_0x542309(0x30f)]((_0x1c5d76,_0x2ec56a)=>{const _0x2f9aaf=_0x542309;window[_0x2f9aaf(0x40d)](_0x1c5d76),_0x24e8ed[_0x2f9aaf(0x28f)](this[_0x2f9aaf(0x39d)](_0x2ec56a)['then'](()=>{const _0x4ae396=_0x2f9aaf;this[_0x4ae396(0x3ca)]['delete'](_0x2ec56a);}));}),await Promise[_0x542309(0x376)](_0x24e8ed);}};Ee=ts([ue(0x0,a['IConfigService']),ue(0x1,a[_0x661f9(0x291)]),ue(0x2,a['Inject'](v[_0x661f9(0x418)]))],Ee);class Fe extends a[_0x661f9(0x170)]{constructor(){const _0x52d1ef=_0x661f9;super(),_(this,'urlChange$'),this[_0x52d1ef(0x2c9)]=I[_0x52d1ef(0x31c)](window,_0x52d1ef(0x206))[_0x52d1ef(0x362)](I[_0x52d1ef(0x3eb)](this[_0x52d1ef(0x326)]),I[_0x52d1ef(0x38d)](0x1),I['mapTo'](void 0x0));}[_0x661f9(0x397)](_0x271ebc,_0x58a862,_0x295fea=!0x1){const _0x1e9f48=_0x661f9,_0x494d93=new URL(window[_0x1e9f48(0x305)][_0x1e9f48(0x28e)]);_0x494d93['searchParams']['set'](_0x271ebc,_0x58a862),_0x295fea?window['history'][_0x1e9f48(0x29a)]('','',_0x494d93[_0x1e9f48(0x2c3)]()):window[_0x1e9f48(0x24c)]['pushState']('','',_0x494d93[_0x1e9f48(0x2c3)]());}[_0x661f9(0x372)](_0x5b9446,_0x45bd08=!0x1){const _0x3f444f=_0x661f9,_0x2ffb6d=new URL(window['location'][_0x3f444f(0x28e)]);_0x2ffb6d[_0x3f444f(0x19c)][_0x3f444f(0x323)](_0x5b9446),_0x45bd08?window[_0x3f444f(0x24c)]['replaceState']('','',_0x2ffb6d[_0x3f444f(0x2c3)]()):window[_0x3f444f(0x24c)][_0x3f444f(0x391)]('','',_0x2ffb6d['toString']());}[_0x661f9(0x380)](_0x105f5b){const _0x5ea5c3=_0x661f9;var _0x301274;return(_0x301274=new URL(window[_0x5ea5c3(0x305)][_0x5ea5c3(0x28e)])[_0x5ea5c3(0x19c)][_0x5ea5c3(0x2fa)](_0x105f5b))!=null?_0x301274:void 0x0;}}var ss=Object[_0x661f9(0x235)],is=Object[_0x661f9(0x27b)],ns=(_0x5f375b,_0x5a767d,_0x2fe531)=>_0x5a767d in _0x5f375b?ss(_0x5f375b,_0x5a767d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fe531}):_0x5f375b[_0x5a767d]=_0x2fe531,rs=(_0x3dcfb9,_0x4d9359,_0x3142a9,_0x59c3ac)=>{const _0x550807=_0x661f9;for(var _0x425e14=_0x59c3ac>0x1?void 0x0:_0x59c3ac?is(_0x4d9359,_0x3142a9):_0x4d9359,_0x30aa9f=_0x3dcfb9[_0x550807(0x3e2)]-0x1,_0x363b7a;_0x30aa9f>=0x0;_0x30aa9f--)(_0x363b7a=_0x3dcfb9[_0x30aa9f])&&(_0x425e14=_0x363b7a(_0x425e14)||_0x425e14);return _0x425e14;},Ie=(_0x12059b,_0x20ca74)=>(_0x5581ec,_0x55e32f)=>_0x20ca74(_0x5581ec,_0x55e32f,_0x12059b),os=(_0x354138,_0x96ba3,_0x4bbab0)=>ns(_0x354138,_0x96ba3+'',_0x4bbab0);const as=_0x661f9(0x35f);exports[_0x661f9(0x2bc)]=class extends a['Plugin']{constructor(_0x27ec86=Ue,_0x36401e,_0x3ec487,_0x41e392){const _0x23b615=_0x661f9;super(),this[_0x23b615(0x337)]=_0x27ec86,this['_renderManagerService']=_0x36401e,this[_0x23b615(0x352)]=_0x3ec487,this[_0x23b615(0x197)]=_0x41e392;const {..._0x84d2a3}=a['merge']({},Ue,this[_0x23b615(0x337)]);this['_configService']['setConfig'](Bt,_0x84d2a3);}['onStarting'](){const _0x3a3a53=_0x661f9;this[_0x3a3a53(0x2a6)](),this[_0x3a3a53(0x29e)]();}['onRendered'](){const _0x521d4d=_0x661f9;this[_0x521d4d(0x2cf)]();}[_0x661f9(0x2a6)](){const _0x4e3e66=_0x661f9;var _0x4c7bce;const _0x501b04=[[pe],[se],[ee],[Z],[Q],[Oe],[Te,{'useClass':Fe}],[G[_0x4e3e66(0x383)],{'useClass':G['WebSocketService']}],[u[_0x4e3e66(0x219)],{'useClass':Ee}],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[B],[de],[exports[_0x4e3e66(0x220)]]];a[_0x4e3e66(0x1ca)](this[_0x4e3e66(0x352)],a[_0x4e3e66(0x370)](_0x501b04,(_0x4c7bce=this[_0x4e3e66(0x337)])==null?void 0x0:_0x4c7bce['override']));}[_0x661f9(0x2cf)](){const _0x33d5d4=_0x661f9;this[_0x33d5d4(0x37a)](this[_0x33d5d4(0x2fe)][_0x33d5d4(0x2b3)](a[_0x33d5d4(0x311)][_0x33d5d4(0x318)],[ge])),this[_0x33d5d4(0x37a)](this['_renderManagerService'][_0x33d5d4(0x2b3)](a['UniverInstanceType']['UNIVER_SHEET'],[ve]));}[_0x661f9(0x29e)](){const _0x42c5d3=_0x661f9;a[_0x42c5d3(0x3a0)](this[_0x42c5d3(0x352)],[[B],[exports[_0x42c5d3(0x2bf)]],[te],[J],[exports['CollaborationDataLoaderController']],[se]]);}},os(exports[_0x661f9(0x2bc)],'pluginName',as),exports['UniverCollaborationClientUIPlugin']=rs([a[_0x661f9(0x3ee)](u[_0x661f9(0x2c8)]),Ie(0x1,C[_0x661f9(0x253)]),Ie(0x2,a[_0x661f9(0x2c2)](a['Injector'])),Ie(0x3,a['IConfigService'])],exports[_0x661f9(0x2bc)]);var cs=Object['getOwnPropertyDescriptor'],ls=(_0x3bd46b,_0x4465b6,_0x5a88aa,_0x464ca3)=>{const _0x467b7a=_0x661f9;for(var _0x4f951e=_0x464ca3>0x1?void 0x0:_0x464ca3?cs(_0x4465b6,_0x5a88aa):_0x4465b6,_0x3b4f96=_0x3bd46b[_0x467b7a(0x3e2)]-0x1,_0x231df1;_0x3b4f96>=0x0;_0x3b4f96--)(_0x231df1=_0x3bd46b[_0x3b4f96])&&(_0x4f951e=_0x231df1(_0x4f951e)||_0x4f951e);return _0x4f951e;},H=(_0x1f2114,_0x48ddb9)=>(_0x43b12c,_0x1cb2ad)=>_0x48ddb9(_0x43b12c,_0x1cb2ad,_0x1f2114);exports[_0x661f9(0x1a4)]=class extends u['CollaborationSocketService']{constructor(_0x10483e,_0x9f832b,_0x287759,_0x494fef,_0x379d69){super(_0x10483e,_0x9f832b,_0x287759,_0x494fef,_0x379d69);}async[_0x661f9(0x225)](_0x398edc){const _0x5a3e83=_0x661f9,_0x58b335=await this['_getSessionTicket'](),_0x4113f6=this[_0x5a3e83(0x3f9)](_0x398edc,_0x58b335);return this[_0x5a3e83(0x24e)](_0x4113f6);}[_0x661f9(0x3f9)](_0x4d399e,_0x26616c){const _0xf57ad4=_0x661f9,_0x23e8a4=typeof window>'u'?new URL(_0x4d399e):new URL(_0x4d399e,window['location']['origin']);_0x23e8a4[_0xf57ad4(0x19c)][_0xf57ad4(0x406)]('sessionTicket',_0x26616c);const _0x2eb91c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xf57ad4(0x305)][_0xf57ad4(0x299)]);return _0x2eb91c[_0xf57ad4(0x2fa)](_0xf57ad4(0x288))&&_0x23e8a4['searchParams']['set'](_0xf57ad4(0x288),_0x2eb91c[_0xf57ad4(0x2fa)](_0xf57ad4(0x288))),_0x23e8a4[_0xf57ad4(0x2c3)]();}async[_0x661f9(0x256)](){const _0x4706fc=_0x661f9;var _0x50352e,_0x2fd737,_0x51212d;const _0x5a6fc5=this[_0x4706fc(0x197)]['getConfig'](u[_0x4706fc(0x32d)]),_0x1a72b3=(_0x50352e=_0x5a6fc5==null?void 0x0:_0x5a6fc5[_0x4706fc(0x2cc)])!=null?_0x50352e:u[_0x4706fc(0x2a7)];return(_0x51212d=(_0x2fd737=(await this['_httpService'][_0x4706fc(0x2fa)](_0x1a72b3,{'headers':{'Content-Type':_0x4706fc(0x27f)}}))['body'])==null?void 0x0:_0x2fd737['ticket'])!=null?_0x51212d:'';}},exports[_0x661f9(0x1a4)]=ls([H(0x0,a['Inject'](a['Injector'])),H(0x1,a[_0x661f9(0x2c2)](G[_0x661f9(0x364)])),H(0x2,a['IConfigService']),H(0x3,a[_0x661f9(0x3cf)]),H(0x4,v[_0x661f9(0x174)])],exports[_0x661f9(0x1a4)]);var _s=Object[_0x661f9(0x27b)],hs=(_0x3f9ad0,_0x5a6e4a,_0x58e607,_0x599c4b)=>{const _0x19b263=_0x661f9;for(var _0x3139d4=_0x599c4b>0x1?void 0x0:_0x599c4b?_s(_0x5a6e4a,_0x58e607):_0x5a6e4a,_0x501f0b=_0x3f9ad0[_0x19b263(0x3e2)]-0x1,_0x9ba024;_0x501f0b>=0x0;_0x501f0b--)(_0x9ba024=_0x3f9ad0[_0x501f0b])&&(_0x3139d4=_0x9ba024(_0x3139d4)||_0x3139d4);return _0x3139d4;},Se=(_0x3489e3,_0xd21ca7)=>(_0x40758e,_0xa9a4ea)=>_0xd21ca7(_0x40758e,_0xa9a4ea,_0x3489e3);exports[_0x661f9(0x3ea)]=class extends a[_0x661f9(0x26a)]{constructor(_0x20f8e0,_0x368d01,_0x508d8c){const _0x57f00a=_0x661f9;super(),this[_0x57f00a(0x1f5)]=_0x20f8e0,this[_0x57f00a(0x192)]=_0x368d01,this[_0x57f00a(0x197)]=_0x508d8c;}async['runOnServer'](_0xa1f8a1,_0x442725,_0x128359,..._0x4ef673){const _0xaeb488=_0x661f9;var _0x1da326,_0x69f5f8,_0x356348,_0x3f34a0;const _0x3efc2f=this[_0xaeb488(0x1f5)][_0xaeb488(0x409)]();if(!_0x3efc2f)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x52eea5=((_0x1da326=this['_configService'][_0xaeb488(0x31a)](u[_0xaeb488(0x426)]))!=null?_0x1da326:u[_0xaeb488(0x3e3)])+'/'+_0xa1f8a1+_0xaeb488(0x33c)+_0x442725,_0x426906=new URL(window[_0xaeb488(0x305)][_0xaeb488(0x28e)]),_0x2ebcac={'scriptId':_0xa1f8a1,'runId':(_0x69f5f8=_0x426906[_0xaeb488(0x19c)][_0xaeb488(0x2fa)](_0xaeb488(0x288)))!=null?_0x69f5f8:'','function':_0x442725,'unitId':_0x3efc2f['getUnitId'](),'argsOfFunction':JSON[_0xaeb488(0x3c7)](_0x4ef673),'invokeId':(_0x356348=_0x128359[_0xaeb488(0x1b2)])!=null?_0x356348:'','executionId':(_0x3f34a0=_0x128359[_0xaeb488(0x304)])!=null?_0x3f34a0:''};try{const _0x23fe83=await this[_0xaeb488(0x192)]['post'](_0x52eea5,{'body':_0x2ebcac});return _0x23fe83[_0xaeb488(0x349)]['error']&&_0x23fe83['body'][_0xaeb488(0x1c6)]['code']!==V['OK']?_0xaeb488(0x1e8):_0x23fe83['body']['result'];}catch{return _0xaeb488(0x1e8);}}},exports[_0x661f9(0x3ea)]=hs([Se(0x0,a[_0x661f9(0x32b)]),Se(0x1,a[_0x661f9(0x2c2)](G['HTTPService'])),Se(0x2,a[_0x661f9(0x3fe)])],exports['RemoteUniscriptService']);const Ae=0x7530,Pe=_0x661f9(0x42d);class us extends a['Disposable']{constructor(){const _0x4d9c40=_0x661f9;super(),_(this,_0x4d9c40(0x36d),a[_0x4d9c40(0x23d)]()),_(this,_0x4d9c40(0x312),new Set()),_(this,_0x4d9c40(0x2af),new Map()),_(this,_0x4d9c40(0x310),null),_(this,_0x4d9c40(0x41b),new Map()),_(this,'_unitStatus',new Map()),this[_0x4d9c40(0x3bc)]();}[_0x661f9(0x1ff)](){const _0x300a00=_0x661f9;super['dispose'](),this[_0x300a00(0x41b)][_0x300a00(0x30f)]((_0x6c717c,_0x420cb1)=>this[_0x300a00(0x3ba)](_0x420cb1)),this[_0x300a00(0x310)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x3092f1){const _0x3f1393=_0x661f9;return this[_0x3f1393(0x2e7)](_0x3092f1)[_0x3f1393(0x362)](I[_0x3f1393(0x2ce)]());}[_0x661f9(0x1b9)](_0x36fcf7){const _0x33431d=_0x661f9;this[_0x33431d(0x312)][_0x33431d(0x343)]===0x0&&this[_0x33431d(0x18a)](),this[_0x33431d(0x312)][_0x33431d(0x1dc)](_0x36fcf7),this[_0x33431d(0x3dc)]({'type':0x0,'memberID':this[_0x33431d(0x36d)],'unitIDs':[_0x36fcf7],'isForwarded':!0x1});}[_0x661f9(0x1f6)](_0x48b6cb){const _0x17f0a3=_0x661f9;this[_0x17f0a3(0x312)]['delete'](_0x48b6cb),this[_0x17f0a3(0x312)][_0x17f0a3(0x343)]===0x0&&this[_0x17f0a3(0x310)]&&window[_0x17f0a3(0x314)](this[_0x17f0a3(0x310)]);}['_init'](){const _0x3a1af0=_0x661f9;this[_0x3a1af0(0x37a)](a[_0x3a1af0(0x202)](I['fromEvent'](window,_0x3a1af0(0x198))['subscribe'](_0x1e552e=>{const _0x4cc8ca=_0x3a1af0;if(_0x1e552e[_0x4cc8ca(0x396)]!==Pe||!_0x1e552e[_0x4cc8ca(0x239)])return;const _0x26cff1=JSON[_0x4cc8ca(0x1b6)](_0x1e552e['newValue']);this[_0x4cc8ca(0x2c1)](_0x26cff1);}))),window[_0x3a1af0(0x2da)](_0x3a1af0(0x32e),()=>this[_0x3a1af0(0x3dc)]({'type':0x1,'memberID':this[_0x3a1af0(0x36d)],'unitIDs':Array[_0x3a1af0(0x19f)](this[_0x3a1af0(0x312)])}));}[_0x661f9(0x2c1)](_0x1fd10c){const _0x48eb2a=_0x661f9;switch(_0x1fd10c['type']){case 0x0:this[_0x48eb2a(0x24b)](_0x1fd10c);break;case 0x1:this['_handleLeaveEvent'](_0x1fd10c);break;case 0x2:this['_handleHeartbeatEvent'](_0x1fd10c);break;}}[_0x661f9(0x24b)](_0x5d7808){const _0x15522a=_0x661f9,{unitIDs:_0x586ee2,memberID:_0x3f0916,isForwarded:_0x4fd7f0}=_0x5d7808;_0x586ee2[_0x15522a(0x30f)](_0x421606=>{const _0x2d041b=_0x15522a;if(!_0x4fd7f0&&this['_unitOnClients'][_0x2d041b(0x1d2)](_0x421606)&&this['_ensureSubject'](_0x421606)['next'](u[_0x2d041b(0x1eb)][_0x2d041b(0x2b9)]),!this[_0x2d041b(0x2af)][_0x2d041b(0x1d2)](_0x421606)||!this[_0x2d041b(0x2af)]['get'](_0x421606)[_0x2d041b(0x1d2)](_0x3f0916)){const _0x3615df=this['_unitOnClients'][_0x2d041b(0x2fa)](_0x421606)||new Set();_0x3615df[_0x2d041b(0x1dc)](_0x3f0916),this[_0x2d041b(0x2af)][_0x2d041b(0x406)](_0x421606,_0x3615df),this[_0x2d041b(0x3f4)](_0x3f0916);}}),_0x4fd7f0||this['_send']({'type':0x0,'memberID':this[_0x15522a(0x36d)],'unitIDs':[...this[_0x15522a(0x312)]],'isForwarded':!0x0});}[_0x661f9(0x3f4)](_0x40d341){const _0x42aa2f=_0x661f9;this[_0x42aa2f(0x3ba)](_0x40d341);const _0x5894d5=window[_0x42aa2f(0x214)](()=>{this['_unitOnClients']['forEach'](_0x2fb06d=>{const _0xcdcce5=_0x33d9;_0x2fb06d[_0xcdcce5(0x323)](_0x40d341);});},Ae*0x2);this[_0x42aa2f(0x41b)]['set'](_0x40d341,_0x5894d5);}['_removeClearOtherTimer'](_0x47f980){const _0x367e4c=_0x661f9;if(this[_0x367e4c(0x41b)][_0x367e4c(0x1d2)](_0x47f980)){const _0x442c48=this[_0x367e4c(0x41b)][_0x367e4c(0x2fa)](_0x47f980);_0x442c48&&window[_0x367e4c(0x40d)](_0x442c48),this[_0x367e4c(0x41b)][_0x367e4c(0x406)](_0x47f980,null);}}[_0x661f9(0x3d9)](_0x5436e9){const _0xa63861=_0x661f9,{memberID:_0x190159,unitIDs:_0x53cbc6}=_0x5436e9;_0x53cbc6[_0xa63861(0x30f)](_0x25134a=>{const _0x2d3dca=_0xa63861;var _0x5dd58b;const _0xcfa307=this[_0x2d3dca(0x2af)][_0x2d3dca(0x2fa)](_0x25134a);_0xcfa307&&(_0xcfa307[_0x2d3dca(0x323)](_0x190159),(_0x5dd58b=this[_0x2d3dca(0x2e7)](_0x25134a))==null||_0x5dd58b[_0x2d3dca(0x29d)](_0xcfa307[_0x2d3dca(0x343)]===0x0?u['UnitStatus'][_0x2d3dca(0x1f3)]:u[_0x2d3dca(0x1eb)][_0x2d3dca(0x2b9)]));}),this[_0xa63861(0x3ba)](_0x190159);}['_handleHeartbeatEvent'](_0x247fce){const _0x322263=_0x661f9;this[_0x322263(0x3f4)](_0x247fce[_0x322263(0x347)]);}[_0x661f9(0x3dc)](_0x3f93bb){const _0x1151b4=_0x661f9;localStorage['setItem'](Pe,JSON[_0x1151b4(0x3c7)](_0x3f93bb));}[_0x661f9(0x18a)](){const _0x34f9dd=_0x661f9;this[_0x34f9dd(0x310)]=window[_0x34f9dd(0x2f7)](()=>{const _0x49b2b7=_0x34f9dd;this[_0x49b2b7(0x3dc)]({'type':0x2,'memberID':this[_0x49b2b7(0x36d)]});},Ae);}[_0x661f9(0x2e7)](_0x41853f){const _0x1096e3=_0x661f9;return this[_0x1096e3(0x17d)][_0x1096e3(0x1d2)](_0x41853f)||this['_unitStatus'][_0x1096e3(0x406)](_0x41853f,new I[(_0x1096e3(0x175))](u[_0x1096e3(0x1eb)][_0x1096e3(0x1f3)])),this[_0x1096e3(0x17d)]['get'](_0x41853f);}}exports[_0x661f9(0x338)]=Te,exports[_0x661f9(0x33b)]=Be,exports[_0x661f9(0x1a8)]=us,exports[_0x661f9(0x233)]=Fe;