@univerjs-pro/collaboration-client-ui 1.0.0-rc.0 → 1.0.1

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 (90) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/controllers/collaboration-client-ui.controller.d.ts +7 -0
  65. package/lib/types/locale/en-US.d.ts +3 -7
  66. package/lib/types/services/local-cache/web-local-cache.service.d.ts +3 -0
  67. package/lib/umd/facade.js +1 -1
  68. package/lib/umd/index.js +1 -1
  69. package/lib/umd/locale/ar-SA.js +1 -1
  70. package/lib/umd/locale/ca-ES.js +1 -1
  71. package/lib/umd/locale/de-DE.js +1 -1
  72. package/lib/umd/locale/en-US.js +1 -1
  73. package/lib/umd/locale/es-ES.js +1 -1
  74. package/lib/umd/locale/fa-IR.js +1 -1
  75. package/lib/umd/locale/fr-FR.js +1 -1
  76. package/lib/umd/locale/id-ID.js +1 -1
  77. package/lib/umd/locale/it-IT.js +1 -1
  78. package/lib/umd/locale/ja-JP.js +1 -1
  79. package/lib/umd/locale/ko-KR.js +1 -1
  80. package/lib/umd/locale/pl-PL.js +1 -1
  81. package/lib/umd/locale/pt-BR.js +1 -1
  82. package/lib/umd/locale/ru-RU.js +1 -1
  83. package/lib/umd/locale/sk-SK.js +1 -1
  84. package/lib/umd/locale/vi-VN.js +1 -1
  85. package/lib/umd/locale/zh-CN.js +1 -1
  86. package/lib/umd/locale/zh-HK.js +1 -1
  87. package/lib/umd/locale/zh-TW.js +1 -1
  88. package/package.json +19 -19
  89. package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +0 -38
  90. package/lib/types/services/formula-calculation-guard/util.d.ts +0 -11
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x76d160=_0x5e85;(function(_0x53334e,_0x44b256){const _0x1a9818=_0x5e85,_0x2b4d23=_0x53334e();while(!![]){try{const _0x50bbad=parseInt(_0x1a9818(0x2c7))/0x1*(parseInt(_0x1a9818(0x41b))/0x2)+-parseInt(_0x1a9818(0x2b0))/0x3+-parseInt(_0x1a9818(0x462))/0x4*(parseInt(_0x1a9818(0x33c))/0x5)+parseInt(_0x1a9818(0x268))/0x6*(-parseInt(_0x1a9818(0x2d8))/0x7)+-parseInt(_0x1a9818(0x2ec))/0x8*(parseInt(_0x1a9818(0x200))/0x9)+-parseInt(_0x1a9818(0x47b))/0xa+parseInt(_0x1a9818(0x404))/0xb*(parseInt(_0x1a9818(0x3f6))/0xc);if(_0x50bbad===_0x44b256)break;else _0x2b4d23['push'](_0x2b4d23['shift']());}catch(_0xf53c0f){_0x2b4d23['push'](_0x2b4d23['shift']());}}}(_0xc3aa,0xa4a27),Object[_0x76d160(0x32b)](exports,Symbol[_0x76d160(0x203)],{'value':_0x76d160(0x1e7)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x4ff84d){const _0x863beb=_0x76d160;switch(_0x4ff84d){case e['CollaborationStatus'][_0x863beb(0x4ae)]:return{'icon':(0x0,c[_0x863beb(0x1cc)])(o[_0x863beb(0x488)],{}),'colorClass':_0x863beb(0x1cf),'i18nKey':_0x863beb(0x410),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x863beb(0x340)};case e[_0x863beb(0x3bd)][_0x863beb(0x49a)]:return{'icon':(0x0,c[_0x863beb(0x1cc)])(o[_0x863beb(0x488)],{}),'colorClass':_0x863beb(0x2ae),'i18nKey':_0x863beb(0x20e),'clickable':!0x1,'indicator':_0x863beb(0x340)};case e[_0x863beb(0x3bd)][_0x863beb(0x313)]:return{'icon':(0x0,c['jsx'])(o[_0x863beb(0x308)],{}),'colorClass':_0x863beb(0x284),'i18nKey':_0x863beb(0x1dc),'clickable':!0x1,'indicator':_0x863beb(0x3b0)};case e[_0x863beb(0x3bd)][_0x863beb(0x2bd)]:return{'icon':(0x0,c[_0x863beb(0x1cc)])(o['OnLineIcon'],{}),'colorClass':_0x863beb(0x2d9),'i18nKey':_0x863beb(0x42d),'clickable':!0x1,'indicator':_0x863beb(0x340)};case e['CollaborationStatus'][_0x863beb(0x3dd)]:case e['CollaborationStatus'][_0x863beb(0x2f5)]:return{'icon':(0x0,c[_0x863beb(0x1cc)])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x863beb(0x361),'clickable':!0x1,'indicator':_0x863beb(0x3b0)};case e[_0x863beb(0x3bd)]['PENDING']:return{'icon':(0x0,c[_0x863beb(0x1cc)])(o[_0x863beb(0x308)],{}),'colorClass':_0x863beb(0x284),'i18nKey':_0x863beb(0x361),'clickable':!0x1,'indicator':'spin'};case e[_0x863beb(0x3bd)]['SYNCED']:return{'icon':(0x0,c['jsx'])(o[_0x863beb(0x201)],{}),'colorClass':_0x863beb(0x30a),'i18nKey':_0x863beb(0x27e),'clickable':!0x1,'indicator':'static'};}}function y(_0x1fc923){const _0x5e4c01=_0x76d160;let {status$:_0x28c612}=_0x1fc923,_0x44a66f=(0x0,n[_0x5e4c01(0x333)])(_0x28c612,e['CollaborationStatus']['NOT_COLLAB']),_0x11b0a0=(0x0,n[_0x5e4c01(0x319)])(t['LocaleService']),_0x3967a1=(0x0,n[_0x5e4c01(0x319)])(e['CollaborationSessionService']),_0x4aa566=(0x0,s[_0x5e4c01(0x406)])(()=>ee(_0x44a66f),[_0x44a66f]),_0x158ec3=_0x44a66f!==e[_0x5e4c01(0x3bd)][_0x5e4c01(0x4ae)],_0x64e1dc=_0x11b0a0['t'](_0x4aa566[_0x5e4c01(0x3f8)]),_0xa26d9b=_0x4aa566[_0x5e4c01(0x40e)]?_0x11b0a0['t'](_0x4aa566[_0x5e4c01(0x40e)]):_0x64e1dc,_0x306575=(0x0,s[_0x5e4c01(0x24a)])(()=>{_0x158ec3||_0x3967a1['reconnect']();},[_0x158ec3,_0x3967a1]),_0x4d0c94=(0x0,s['useCallback'])(_0x12fa73=>{const _0x316ddc=_0x5e4c01;!_0x158ec3&&(_0x12fa73['key']===_0x316ddc(0x412)||_0x12fa73['key']==='\x20')&&(_0x12fa73[_0x316ddc(0x401)](),_0x3967a1[_0x316ddc(0x3af)]());},[_0x158ec3,_0x3967a1]),_0x3ad878=(0x0,c[_0x5e4c01(0x1cc)])(_0x5e4c01(0x470),{'className':(0x0,a[_0x5e4c01(0x27a)])(_0x5e4c01(0x2e0),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x4aa566[_0x5e4c01(0x213)],{'univer-animate-spin':_0x4aa566['indicator']===_0x5e4c01(0x3b0),'univer-animate-pulse':_0x4aa566[_0x5e4c01(0x3c7)]===_0x5e4c01(0x217)}),'aria-hidden':_0x5e4c01(0x4b2),'children':_0x4aa566['icon']}),_0x4828f5=(0x0,c[_0x5e4c01(0x1cc)])(_0x5e4c01(0x470),{'className':(0x0,a[_0x5e4c01(0x27a)])(_0x5e4c01(0x2e0),_0x5e4c01(0x1f6),_0x5e4c01(0x34c),_0x5e4c01(0x1e8),_0x5e4c01(0x23a),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x4aa566[_0x5e4c01(0x31a)],'univer-cursor-default':!_0x4aa566['clickable']}),'children':_0x3ad878});return _0x4aa566['clickable']?(0x0,c['jsx'])(a[_0x5e4c01(0x224)],{'title':_0xa26d9b,'placement':_0x5e4c01(0x26d),'children':(0x0,c[_0x5e4c01(0x1cc)])(_0x5e4c01(0x3ae),{'type':'button','onClick':_0x306575,'onKeyDown':_0x4d0c94,'className':(0x0,a[_0x5e4c01(0x27a)])(_0x5e4c01(0x2d5),_0x5e4c01(0x1ee),_0x5e4c01(0x49b),_0x5e4c01(0x21c)),'aria-label':_0x64e1dc+_0x5e4c01(0x377)+_0xa26d9b,'role':_0x5e4c01(0x3db),'aria-live':'polite','aria-atomic':_0x5e4c01(0x4b2),'children':_0x4828f5})}):(0x0,c[_0x5e4c01(0x1cc)])(a[_0x5e4c01(0x224)],{'title':_0xa26d9b,'placement':'bottom','children':(0x0,c['jsx'])('div',{'className':(0x0,a[_0x5e4c01(0x27a)])(_0x5e4c01(0x2d5),'univer-border-none\x20univer-bg-transparent','univer-m-0\x20univer-p-0'),'aria-label':_0x64e1dc,'role':_0x5e4c01(0x3db),'aria-live':_0x5e4c01(0x297),'aria-atomic':_0x5e4c01(0x4b2),'children':_0x4828f5})});}function b(_0x425949){'@babel/helpers - typeof';const _0x1dfa78=_0x76d160;return b=typeof Symbol==_0x1dfa78(0x444)&&typeof Symbol[_0x1dfa78(0x33b)]=='symbol'?function(_0x1caada){return typeof _0x1caada;}:function(_0x56675d){const _0x1663ab=_0x1dfa78;return _0x56675d&&typeof Symbol==_0x1663ab(0x444)&&_0x56675d[_0x1663ab(0x492)]===Symbol&&_0x56675d!==Symbol[_0x1663ab(0x3b4)]?_0x1663ab(0x3e3):typeof _0x56675d;},b(_0x425949);}function te(_0x2d2e1f,_0x4f32cd){const _0x3df62e=_0x76d160;if(b(_0x2d2e1f)!=_0x3df62e(0x3ce)||!_0x2d2e1f)return _0x2d2e1f;var _0x4aa3df=_0x2d2e1f[Symbol[_0x3df62e(0x47f)]];if(_0x4aa3df!==void 0x0){var _0x29579c=_0x4aa3df[_0x3df62e(0x39b)](_0x2d2e1f,_0x4f32cd||_0x3df62e(0x2ea));if(b(_0x29579c)!=_0x3df62e(0x3ce))return _0x29579c;throw TypeError(_0x3df62e(0x1ed));}return(_0x4f32cd==='string'?String:Number)(_0x2d2e1f);}function ne(_0x4c772b){const _0xa03a3b=_0x76d160;var _0x1b2682=te(_0x4c772b,_0xa03a3b(0x44f));return b(_0x1b2682)==_0xa03a3b(0x3e3)?_0x1b2682:_0x1b2682+'';}function x(_0x615ec3,_0x465d0d,_0x246d3d){const _0x2d19f=_0x76d160;return(_0x465d0d=ne(_0x465d0d))in _0x615ec3?Object[_0x2d19f(0x32b)](_0x615ec3,_0x465d0d,{'value':_0x246d3d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x615ec3[_0x465d0d]=_0x246d3d,_0x615ec3;}function S(_0x3170c0,_0x41aba5){return function(_0x2424aa,_0x2b7409){_0x41aba5(_0x2424aa,_0x2b7409,_0x3170c0);};}function C(_0x4faa8b,_0x49c891,_0x2b776c,_0x26fecd){const _0x2884b7=_0x76d160;var _0x2ec362=arguments[_0x2884b7(0x1c4)],_0x5e0e9e=_0x2ec362<0x3?_0x49c891:_0x26fecd===null?_0x26fecd=Object[_0x2884b7(0x1fd)](_0x49c891,_0x2b776c):_0x26fecd,_0x2ab20f;if(typeof Reflect==_0x2884b7(0x3ce)&&typeof Reflect[_0x2884b7(0x3ab)]==_0x2884b7(0x444))_0x5e0e9e=Reflect['decorate'](_0x4faa8b,_0x49c891,_0x2b776c,_0x26fecd);else{for(var _0x471367=_0x4faa8b[_0x2884b7(0x1c4)]-0x1;_0x471367>=0x0;_0x471367--)(_0x2ab20f=_0x4faa8b[_0x471367])&&(_0x5e0e9e=(_0x2ec362<0x3?_0x2ab20f(_0x5e0e9e):_0x2ec362>0x3?_0x2ab20f(_0x49c891,_0x2b776c,_0x5e0e9e):_0x2ab20f(_0x49c891,_0x2b776c))||_0x5e0e9e);}return _0x2ec362>0x3&&_0x5e0e9e&&Object['defineProperty'](_0x49c891,_0x2b776c,_0x5e0e9e),_0x5e0e9e;}let w=class extends t[_0x76d160(0x2e7)]{constructor(_0x436e4f,_0x5067d8,_0x551c7e,_0x477280,_0x1f3173){const _0x3e8692=_0x76d160;super(),this[_0x3e8692(0x24b)]=_0x436e4f,this[_0x3e8692(0x2fa)]=_0x5067d8,this[_0x3e8692(0x448)]=_0x551c7e,this[_0x3e8692(0x3b7)]=_0x477280,this[_0x3e8692(0x32d)]=_0x1f3173,x(this,_0x3e8692(0x237),new r[(_0x3e8692(0x4bd))](e[_0x3e8692(0x3bd)]['NOT_COLLAB'])),x(this,_0x3e8692(0x420),new Map()),this[_0x3e8692(0x48b)](),this[_0x3e8692(0x445)](),this['_initPresenceStatusComponents']();}['dispose'](){const _0x137889=_0x76d160;this[_0x137889(0x420)][_0x137889(0x39c)](_0x381a87=>_0x381a87[_0x137889(0x35c)]()),this[_0x137889(0x420)][_0x137889(0x3da)](),this[_0x137889(0x237)][_0x137889(0x259)](),super[_0x137889(0x35c)]();}[_0x76d160(0x445)](){const _0x31e2a8=_0x76d160;this['disposeWithMe']((0x0,r[_0x31e2a8(0x228)])(this['_univerInstanceService']['focused$'],this[_0x31e2a8(0x24b)][_0x31e2a8(0x346)](t[_0x31e2a8(0x23e)][_0x31e2a8(0x3f1)]),this[_0x31e2a8(0x24b)][_0x31e2a8(0x346)](t['UniverInstanceType']['UNIVER_SHEET']))[_0x31e2a8(0x4c8)]((0x0,i[_0x31e2a8(0x1b5)])(()=>re(this[_0x31e2a8(0x24b)])),(0x0,i[_0x31e2a8(0x3a7)])(),(0x0,r[_0x31e2a8(0x315)])(_0x4ccfb8=>_0x4ccfb8?this[_0x31e2a8(0x448)][_0x31e2a8(0x326)](_0x4ccfb8):(0x0,r['of'])(null)),(0x0,r[_0x31e2a8(0x315)])(_0x195cfb=>_0x195cfb?_0x195cfb[_0x31e2a8(0x24e)]:(0x0,r['of'])(e[_0x31e2a8(0x3bd)][_0x31e2a8(0x2bd)])))[_0x31e2a8(0x2b8)](_0x42c027=>{const _0xd2f957=_0x31e2a8;this[_0xd2f957(0x237)][_0xd2f957(0x220)](_0x42c027);}));}[_0x76d160(0x48b)](){const _0x40edbc=_0x76d160;this[_0x40edbc(0x2d1)](this[_0x40edbc(0x3b7)][_0x40edbc(0x3e7)](n[_0x40edbc(0x26f)]['HEADER_MENU'],()=>(0x0,n[_0x40edbc(0x32a)])(T({'status$':this[_0x40edbc(0x237)][_0x40edbc(0x3bb)]()}),this[_0x40edbc(0x2fa)])));}['_initPresenceStatusComponents'](){const _0x574ccd=_0x76d160;let _0x50001a=this[_0x574ccd(0x32d)]['adapters$'][_0x574ccd(0x2b8)](_0x30a8b8=>{this['_syncPresenceStatusComponents'](_0x30a8b8);});this[_0x574ccd(0x2d1)]((0x0,t[_0x574ccd(0x4bf)])(()=>_0x50001a[_0x574ccd(0x2c8)]()));}[_0x76d160(0x2ac)](_0x8f3aee){const _0x264438=_0x76d160;let _0x302d92=new Map(_0x8f3aee[_0x264438(0x1fa)](_0x4e6147=>_0x4e6147[_0x264438(0x1fe)]!=null)[_0x264438(0x1b5)](_0x41b304=>[_0x41b304['unitType'],_0x41b304]));this[_0x264438(0x420)]['forEach']((_0x38f8c6,_0x5237f4)=>{const _0x4a79da=_0x264438;_0x302d92[_0x4a79da(0x1f1)](_0x5237f4)||(_0x38f8c6['dispose'](),this[_0x4a79da(0x420)][_0x4a79da(0x371)](_0x5237f4));}),_0x302d92['forEach']((_0x5f94c3,_0xd82aa9)=>{const _0x5796c2=_0x264438;this[_0x5796c2(0x420)]['has'](_0xd82aa9)||this['_registerPresenceStatusComponent'](_0x5f94c3);});}[_0x76d160(0x443)](_0x58ebb6){const _0x2a64c1=_0x76d160;let _0x4a0915=_0x58ebb6[_0x2a64c1(0x1fe)];if(!_0x4a0915)return;let _0xcd503a=new t[(_0x2a64c1(0x1f3))](),_0x1bda71=new r[(_0x2a64c1(0x4bd))](e[_0x2a64c1(0x3bd)]['NOT_COLLAB']);_0xcd503a[_0x2a64c1(0x2ce)]((0x0,t[_0x2a64c1(0x4bf)])(()=>_0x1bda71[_0x2a64c1(0x259)]())),_0xcd503a['add'](this['_uiPartsService'][_0x2a64c1(0x3e7)](_0x4a0915,()=>(0x0,n[_0x2a64c1(0x32a)])(T({'status$':_0x1bda71[_0x2a64c1(0x3bb)]()}),this[_0x2a64c1(0x2fa)])));let _0x2d8111=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x58ebb6[_0x2a64c1(0x2f8)])[_0x2a64c1(0x4c8)]((0x0,i[_0x2a64c1(0x1b5)])(_0x3b95d2=>(_0x3b95d2==null?void 0x0:_0x3b95d2['getUnitId']())??null),(0x0,i['distinctUntilChanged'])(),(0x0,r['switchMap'])(_0x49f145=>_0x49f145?this['_collaborationController'][_0x2a64c1(0x326)](_0x49f145):(0x0,r['of'])(null)),(0x0,r[_0x2a64c1(0x315)])(_0x5a7319=>(_0x5a7319==null?void 0x0:_0x5a7319[_0x2a64c1(0x24e)])??(0x0,r['of'])(e['CollaborationStatus'][_0x2a64c1(0x2bd)])))[_0x2a64c1(0x2b8)](_0x37f3ea=>_0x1bda71['next'](_0x37f3ea));_0xcd503a[_0x2a64c1(0x2ce)]((0x0,t[_0x2a64c1(0x4bf)])(()=>_0x2d8111[_0x2a64c1(0x2c8)]())),this[_0x2a64c1(0x420)][_0x2a64c1(0x27c)](_0x58ebb6[_0x2a64c1(0x2f8)],_0xcd503a);}};w=C([S(0x0,t[_0x76d160(0x275)]),S(0x1,(0x0,t[_0x76d160(0x36b)])(t['Injector'])),S(0x2,(0x0,t[_0x76d160(0x36b)])(e['CollaborationController'])),S(0x3,n['IUIPartsService']),S(0x4,(0x0,t[_0x76d160(0x36b)])(n[_0x76d160(0x3a4)]))],w);function re(_0x3eb950){const _0x50d765=_0x76d160;let _0x429e16=_0x3eb950[_0x50d765(0x355)](),_0x22cf3c=_0x429e16==null?void 0x0:_0x429e16[_0x50d765(0x4c4)]();if(_0x22cf3c&&!(0x0,t[_0x50d765(0x4b6)])(_0x22cf3c))return _0x22cf3c;let _0x58ef44=_0x3eb950[_0x50d765(0x233)](t['UniverInstanceType'][_0x50d765(0x3f1)]),_0x48a1c8=_0x58ef44==null?void 0x0:_0x58ef44['getUnitId']();if(_0x48a1c8&&!(0x0,t[_0x50d765(0x4b6)])(_0x48a1c8))return _0x48a1c8;let _0x11ecf2=_0x3eb950['getCurrentUnitOfType'](t[_0x50d765(0x23e)]['UNIVER_SHEET']);if(_0x11ecf2)return _0x11ecf2['getUnitId']();let _0x567ba9=_0x3eb950[_0x50d765(0x473)](t['UniverInstanceType']['UNIVER_DOC'])[_0x50d765(0x31b)](_0x313fd8=>!(0x0,t[_0x50d765(0x4b6)])(_0x313fd8[_0x50d765(0x4c4)]()));return _0x567ba9?_0x567ba9[_0x50d765(0x4c4)]():null;}function T(_0x1125e3){let {status$:_0x2e976c}=_0x1125e3;return function(){const _0x84c6ab=_0x5e85;return(0x0,c[_0x84c6ab(0x1cc)])(y,{'status$':_0x2e976c});};}var ie='@univerjs-pro/collaboration-client-ui',ae='1.0.0-rc.0';const E={'id':_0x76d160(0x36f),'type':t[_0x76d160(0x31f)][_0x76d160(0x4a0)],'handler':(_0xaee2e1,_0x2d030b)=>{const _0x5bacf0=_0x76d160;let _0xcead95=_0xaee2e1[_0x5bacf0(0x4ad)](n[_0x5bacf0(0x3a4)])[_0x5bacf0(0x4ad)](_0x2d030b['unitType']);if(!_0xcead95)return!0x1;switch(_0x2d030b[_0x5bacf0(0x28a)][_0x5bacf0(0x3b6)]){case'set':return _0xcead95[_0x5bacf0(0x352)](_0x2d030b[_0x5bacf0(0x28a)]['state']),!0x0;case'remove':return _0xcead95[_0x5bacf0(0x330)](_0x2d030b[_0x5bacf0(0x28a)]['unitId'],_0x2d030b[_0x5bacf0(0x28a)]['memberId']),!0x0;case _0x5bacf0(0x3da):return _0xcead95[_0x5bacf0(0x3c6)](_0x2d030b[_0x5bacf0(0x28a)][_0x5bacf0(0x2e4)]),!0x0;default:return!0x1;}}},oe={};let D=class extends t[_0x76d160(0x2ad)]{constructor(_0x166227,_0x5a1e9f){const _0x1032e8=_0x76d160;super(),this[_0x1032e8(0x306)]=_0x166227,this[_0x1032e8(0x49d)]=_0x5a1e9f,this[_0x1032e8(0x419)]();}[_0x76d160(0x419)](){const _0x1b6ee9=_0x76d160;let _0x510201=this;this[_0x1b6ee9(0x2d1)](this['_docClipboardService'][_0x1b6ee9(0x2e1)]({'onBeforePasteImage':async _0x3871ef=>{const _0x58e964=_0x1b6ee9;let _0x11c7bc=await _0x510201[_0x58e964(0x49d)]['saveImage'](_0x3871ef);return _0x11c7bc?{'source':_0x11c7bc[_0x58e964(0x49f)],'imageSourceType':_0x11c7bc[_0x58e964(0x486)]}:null;}}));}};D=C([S(0x0,f['IDocClipboardService']),S(0x1,t[_0x76d160(0x468)])],D);const se=[_0x76d160(0x272),_0x76d160(0x388),_0x76d160(0x439),'red.300',_0x76d160(0x241),'yellow.400'];var O=class extends t[_0x76d160(0x2e7)]{constructor(..._0x2a4c7f){const _0x5686f4=_0x76d160;super(..._0x2a4c7f),x(this,_0x5686f4(0x249),new Map()),x(this,'_colorIndex',0x0);}[_0x76d160(0x29c)](_0xb280d7){const _0x20f7a6=_0x76d160;if(this[_0x20f7a6(0x249)][_0x20f7a6(0x1f1)](_0xb280d7))return this[_0x20f7a6(0x249)][_0x20f7a6(0x4ad)](_0xb280d7);let _0xc6633e=se[this[_0x20f7a6(0x4c9)]];return this[_0x20f7a6(0x4c9)]=(this[_0x20f7a6(0x4c9)]+0x1)%se[_0x20f7a6(0x1c4)],this[_0x20f7a6(0x249)][_0x20f7a6(0x27c)](_0xb280d7,_0xc6633e),_0xc6633e;}};function ce(_0x5b145a){const _0x31fc11=_0x76d160;let _0x289eb2='';for(let _0x508a65 of _0x5b145a){let {startOffset:_0x1d34e6,endOffset:_0x393df3,isActive:_0x4180fe,rangeType:_0x544e1d,segmentId:_0x451dc2,segmentPage:_0x3737d6}=_0x508a65;_0x289eb2[_0x31fc11(0x1c4)]&&(_0x289eb2+=','),_0x289eb2+=_0x1d34e6+':'+_0x393df3+':'+(_0x4180fe?'1':'0')+':'+_0x544e1d+':'+_0x451dc2+':'+_0x3737d6;}return _0x289eb2;}function le(_0x1176e5){const _0x57e82e=_0x76d160;let _0x300fcb=_0x1176e5[_0x57e82e(0x23f)](','),_0x2e8ffe=[];for(let _0x24166b of _0x300fcb){let [_0x5e2387,_0x12f8b7,_0x221bc3,_0x1e91b9,_0x3857ee,_0x5f059d]=_0x24166b['split'](':');_0x2e8ffe[_0x57e82e(0x281)]({'startOffset':Number(_0x5e2387),'endOffset':Number(_0x12f8b7),'collapsed':_0x5e2387===_0x12f8b7,'isActive':_0x221bc3==='1','rangeType':_0x1e91b9===t['DOC_RANGE_TYPE'][_0x57e82e(0x465)]?t[_0x57e82e(0x331)][_0x57e82e(0x465)]:t['DOC_RANGE_TYPE'][_0x57e82e(0x27b)],'segmentId':typeof _0x3857ee==_0x57e82e(0x44f)?String(_0x3857ee):'','segmentPage':Number(_0x5f059d??-0x1)});}return _0x2e8ffe[_0x57e82e(0x48f)](_0x1521eb=>_0x1521eb[_0x57e82e(0x277)])||(_0x2e8ffe[0x0][_0x57e82e(0x277)]=!0x0),_0x2e8ffe;}var k=class extends t['RxDisposable']{constructor(..._0x1d1c13){const _0x2f8ce3=_0x76d160;super(..._0x1d1c13),x(this,_0x2f8ce3(0x477),new r['BehaviorSubject'](null)),x(this,'collabCursorState$',this[_0x2f8ce3(0x477)]['asObservable']());}[_0x76d160(0x324)](_0x2c1dc9){const _0x2efee3=_0x76d160;let {unitID:_0x3873ee,memberID:_0x14e5b4,textRanges:_0x560ee8}=_0x2c1dc9,_0x940565=ce(_0x560ee8);if(_0x940565==='')return;let _0x5b0827={'unitID':_0x3873ee,'memberID':_0x14e5b4,'selection':_0x940565};this[_0x2efee3(0x477)][_0x2efee3(0x220)](_0x5b0827);}};let A=class extends t['RxDisposable']{get[_0x76d160(0x4b9)](){const _0x2ffc5f=_0x76d160;return this['_cursorInfo$'][_0x2ffc5f(0x3c4)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}constructor(_0x5109a0,_0x31d4f1,_0x514e1d,_0x12a42b,_0x4efbdf,_0x518d06,_0x11b003,_0x2a90e1,_0x213ac5){const _0x4f6f37=_0x76d160;super(),this['unitID']=_0x5109a0,this[_0x4f6f37(0x3d4)]=_0x31d4f1,this['_injector']=_0x514e1d,this[_0x4f6f37(0x258)]=_0x12a42b,this['_memberService']=_0x4efbdf,this[_0x4f6f37(0x480)]=_0x518d06,this['_transformService']=_0x11b003,this['_univerInstanceService']=_0x2a90e1,this[_0x4f6f37(0x293)]=_0x213ac5,x(this,_0x4f6f37(0x3e8),!0x1),x(this,_0x4f6f37(0x419),!0x1),x(this,_0x4f6f37(0x34a),new r['BehaviorSubject'](new Map())),x(this,_0x4f6f37(0x29e),this[_0x4f6f37(0x34a)][_0x4f6f37(0x3bb)]()),x(this,'_roomMembers$',new r[(_0x4f6f37(0x4bd))]([])),x(this,_0x4f6f37(0x285),this['_roomMembers$'][_0x4f6f37(0x4c8)]((0x0,r['debounceTime'])(0x12c))),x(this,_0x4f6f37(0x1db),(0x0,t[_0x4f6f37(0x4ab)])(_0x536a31=>{const _0x50f910=_0x4f6f37;let _0x307c23={'eventID':l[_0x50f910(0x21f)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x50f910(0x456)],'memberID':this[_0x50f910(0x3d4)][_0x50f910(0x205)](),'selection':ce(_0x536a31)}};this[_0x50f910(0x3d4)][_0x50f910(0x29a)](_0x307c23,this[_0x50f910(0x456)]);},0x64));}[_0x76d160(0x35c)](){const _0x2ff4fb=_0x76d160;super[_0x2ff4fb(0x35c)](),this[_0x2ff4fb(0x34a)][_0x2ff4fb(0x220)](new Map()),this[_0x2ff4fb(0x34a)]['complete'](),this['_roomMembers$'][_0x2ff4fb(0x220)]([]),this['_roomMembers$'][_0x2ff4fb(0x259)]();}[_0x76d160(0x230)](){const _0xe511b1=_0x76d160;this['_init']||(this[_0xe511b1(0x419)]=!0x0,this['_session'][_0xe511b1(0x28f)]['pipe']((0x0,r[_0xe511b1(0x1d9)])(this[_0xe511b1(0x1dd)]))[_0xe511b1(0x2b8)](_0x3a064c=>{const _0x37fb73=_0xe511b1;_0x3a064c===e['SessionStatus']['ONLINE']?this[_0x37fb73(0x365)]():this[_0x37fb73(0x1e5)]();}),this[_0xe511b1(0x3d4)][_0xe511b1(0x2e9)][_0xe511b1(0x4c8)]((0x0,r[_0xe511b1(0x1d9)])(this[_0xe511b1(0x1dd)]))[_0xe511b1(0x2b8)](_0x5d21ff=>{const _0x4d5f45=_0xe511b1;let _0x538b76=_0x5d21ff[_0x4d5f45(0x246)];_0x538b76===l[_0x4d5f45(0x21f)][_0x4d5f45(0x359)]&&this[_0x4d5f45(0x2ff)](_0x5d21ff),_0x538b76===l[_0x4d5f45(0x21f)][_0x4d5f45(0x37f)]&&this[_0x4d5f45(0x48e)](_0x5d21ff);}),this[_0xe511b1(0x2d1)](this[_0xe511b1(0x293)][_0xe511b1(0x4a5)](_0x214dc5=>{const _0x3697fa=_0xe511b1;let _0x240d13=_0x214dc5['params'];_0x240d13!=null&&this['_online']&&_0x214dc5['id']===d[_0x3697fa(0x3d5)]['id']&&_0x240d13[_0x3697fa(0x2e4)]===this[_0x3697fa(0x456)]&&_0x240d13[_0x3697fa(0x494)]===!0x1&&_0x240d13[_0x3697fa(0x335)][_0x3697fa(0x1c4)]>0x0&&this[_0x3697fa(0x1db)](_0x240d13['ranges']);})),this[_0xe511b1(0x480)]['collabCursorState$'][_0xe511b1(0x4c8)]((0x0,r[_0xe511b1(0x1d9)])(this[_0xe511b1(0x1dd)]))[_0xe511b1(0x2b8)](_0x1673e0=>{const _0x2f5ae8=_0xe511b1;if((_0x1673e0==null?void 0x0:_0x1673e0[_0x2f5ae8(0x456)])!==this[_0x2f5ae8(0x456)])return;let _0x40ce1f={'eventID':l['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x1673e0};this[_0x2f5ae8(0x2ff)](_0x40ce1f);}),this[_0xe511b1(0x2d1)](this[_0xe511b1(0x293)]['onCommandExecuted'](_0x4f750f=>{const _0x5ce173=_0xe511b1;if(_0x4f750f[_0x5ce173(0x25b)]==null)return;let _0xfe26d=_0x4f750f[_0x5ce173(0x25b)];if(_0x4f750f['id']!==d[_0x5ce173(0x20a)]['id']||_0xfe26d[_0x5ce173(0x2e4)]!==this[_0x5ce173(0x456)])return;let _0x4993ce={'id':_0x5ce173(0x45f),'params':_0xfe26d},_0x2686bf=this['cursorInfo'];for(let [_0x19c159,_0x56c558]of _0x2686bf){let _0x21c2d9={'id':_0x5ce173(0x45f),'params':{'unitId':this[_0x5ce173(0x456)],'actions':null,'textRanges':_0x56c558[_0x5ce173(0x335)]}},_0xf8de60=this[_0x5ce173(0x22f)]['transformMutation'](_0x4993ce,_0x21c2d9,!0x1);if((0x0,l[_0x5ce173(0x33d)])(_0xf8de60))throw _0xf8de60[_0x5ce173(0x350)];_0x2686bf['set'](_0x19c159,{..._0x56c558,'ranges':_0xf8de60['m2Prime'][_0x5ce173(0x25b)][_0x5ce173(0x44d)]});}queueMicrotask(()=>{const _0x58c508=_0x5ce173;this[_0x58c508(0x34a)]['next'](_0x2686bf);});})));}[_0x76d160(0x2ff)](_0xece24d){const _0x2c818a=_0x76d160;var _0x1cf591;let {memberID:_0x44f3b9,selection:_0x5e18c5}=_0xece24d[_0x2c818a(0x2a9)],_0x19703f=le(_0x5e18c5),_0x33ac9d=((_0x1cf591=this[_0x2c818a(0x232)][_0x2c818a(0x35a)](this[_0x2c818a(0x456)],_0x44f3b9))==null?void 0x0:_0x1cf591['name'])??_0x2c818a(0x4a8),_0x180c58={'color':this['_colorAssignService'][_0x2c818a(0x29c)](_0x44f3b9),'name':_0x33ac9d,'ranges':_0x19703f},_0x2e0bc5=this['cursorInfo'];_0x2e0bc5[_0x2c818a(0x27c)](_0x44f3b9,_0x180c58),this[_0x2c818a(0x34a)][_0x2c818a(0x220)](_0x2e0bc5);}[_0x76d160(0x48e)](_0x10b6b8){const _0x29cacb=_0x76d160;let {memberID:_0x5612d3}=_0x10b6b8[_0x29cacb(0x2a9)],_0x3eec02=this['cursorInfo'];_0x3eec02['delete'](_0x5612d3),this[_0x29cacb(0x34a)][_0x29cacb(0x220)](_0x3eec02);}[_0x76d160(0x365)](){const _0x4f565b=_0x76d160;var _0x5f32d7;if(this[_0x4f565b(0x3e8)]=!0x0,((_0x5f32d7=this['_univerInstanceService'][_0x4f565b(0x355)]())==null?void 0x0:_0x5f32d7[_0x4f565b(0x4c4)]())!==this[_0x4f565b(0x456)])return;let _0x359c11=this['_injector'][_0x4f565b(0x4ad)](d['DocSelectionManagerService'])[_0x4f565b(0x415)]();Array['isArray'](_0x359c11)&&_0x359c11[_0x4f565b(0x1c4)]>0x0&&this[_0x4f565b(0x1db)](_0x359c11);}[_0x76d160(0x1e5)](){const _0x53ac28=_0x76d160;this[_0x53ac28(0x3e8)]=!0x1;}};A=C([S(0x2,(0x0,t[_0x76d160(0x36b)])(t[_0x76d160(0x345)])),S(0x3,(0x0,t[_0x76d160(0x36b)])(O)),S(0x4,(0x0,t['Inject'])(e[_0x76d160(0x396)])),S(0x5,(0x0,t[_0x76d160(0x36b)])(k)),S(0x6,l[_0x76d160(0x2e6)]),S(0x7,t[_0x76d160(0x275)]),S(0x8,t[_0x76d160(0x1ba)])],A);const ue=()=>{let _0x3c45c3=[],_0xa971a5=!0x1;return _0x4fd80e=>{const _0x43c4e6=_0x5e85;_0x3c45c3[_0x43c4e6(0x281)](_0x4fd80e),_0xa971a5||(_0xa971a5=!0x0,setTimeout(()=>{const _0x224462=_0x43c4e6;_0x3c45c3[_0x224462(0x39c)](_0x4a9608=>_0x4a9608()),_0x3c45c3=[],_0xa971a5=!0x1;}));};};let j=class extends t[_0x76d160(0x2ad)]{get[_0x76d160(0x4b9)](){const _0x177bad=_0x76d160;return this['_cursorInfo$'][_0x177bad(0x3c4)]();}get['roomMembers'](){const _0x2769f3=_0x76d160;return this[_0x2769f3(0x291)][_0x2769f3(0x3c4)]();}constructor(_0x3d7e14,_0x1d7c6c,_0x3e2571,_0x42a764,_0x5d1bff,_0x1d1651,_0x21a48a,_0x418e09){const _0x5804a2=_0x76d160;super(),this[_0x5804a2(0x456)]=_0x3d7e14,this[_0x5804a2(0x3d4)]=_0x1d7c6c,this['_injector']=_0x3e2571,this['_colorAssignService']=_0x42a764,this[_0x5804a2(0x232)]=_0x5d1bff,this[_0x5804a2(0x24b)]=_0x1d1651,this[_0x5804a2(0x293)]=_0x21a48a,this[_0x5804a2(0x22d)]=_0x418e09,x(this,'_online',!0x1),x(this,_0x5804a2(0x419),!0x1),x(this,_0x5804a2(0x34a),new r[(_0x5804a2(0x4bd))](new Map())),x(this,'cursorInfo$',this['_cursorInfo$'][_0x5804a2(0x3bb)]()),x(this,_0x5804a2(0x291),new r[(_0x5804a2(0x4bd))]([])),x(this,_0x5804a2(0x285),this['_roomMembers$'][_0x5804a2(0x4c8)]((0x0,r[_0x5804a2(0x1c0)])(0x12c))),x(this,'_updateLocalCursor',(0x0,t[_0x5804a2(0x4ab)])((_0x17f1ac,_0x401a48)=>{const _0x250a25=_0x5804a2;let _0x57f120={'eventID':l[_0x250a25(0x21f)][_0x250a25(0x359)],'data':{'unitID':this['unitID'],'memberID':this[_0x250a25(0x3d4)]['getMemberID'](),'selection':(0x0,h[_0x250a25(0x1eb)])(_0x17f1ac,_0x401a48[_0x250a25(0x490)])}};this['_session']['send'](_0x57f120,this[_0x250a25(0x456)]);},0x64));}[_0x76d160(0x35c)](){const _0x87a45c=_0x76d160;super['dispose'](),this[_0x87a45c(0x34a)][_0x87a45c(0x220)](new Map()),this['_cursorInfo$'][_0x87a45c(0x259)](),this[_0x87a45c(0x291)][_0x87a45c(0x220)]([]),this[_0x87a45c(0x291)]['complete']();}['init'](){const _0x53e724=_0x76d160;this['_init']||(this[_0x53e724(0x419)]=!0x0,this[_0x53e724(0x3d4)][_0x53e724(0x28f)][_0x53e724(0x4c8)]((0x0,r['takeUntil'])(this[_0x53e724(0x1dd)]))[_0x53e724(0x2b8)](_0x35d7c6=>{const _0x47584a=_0x53e724;_0x35d7c6===e['SessionStatus']['ONLINE']?this[_0x47584a(0x365)]():this[_0x47584a(0x1e5)]();}),this['_session'][_0x53e724(0x2e9)][_0x53e724(0x4c8)]((0x0,r[_0x53e724(0x1d9)])(this[_0x53e724(0x1dd)]))[_0x53e724(0x2b8)](_0x493ef2=>{const _0x3d23b6=_0x53e724;let _0x593376=_0x493ef2[_0x3d23b6(0x246)];_0x593376===l[_0x3d23b6(0x21f)][_0x3d23b6(0x359)]&&this[_0x3d23b6(0x2ff)](_0x493ef2),_0x593376===l['CollaborationEvent'][_0x3d23b6(0x37f)]&&this[_0x3d23b6(0x48e)](_0x493ef2);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x53e724(0x293)][_0x53e724(0x4a5)](_0x85a123=>{const _0x2f80f8=_0x53e724;if(this[_0x2f80f8(0x3e8)]&&_0x85a123['id']===g[_0x2f80f8(0x43c)]['id']&&_0x85a123['params'][_0x2f80f8(0x2e4)]===this['unitID']){let _0x5c7f5c=_0x85a123[_0x2f80f8(0x25b)];this['_updateLocalCursor'](_0x5c7f5c['subUnitId'],_0x5c7f5c['selections'][0x0]);}})));}[_0x76d160(0x2ff)](_0x3c6cac){const _0x45311=_0x76d160;var _0x13f05c;let {memberID:_0x3d2ad3,selection:_0x1e760c}=_0x3c6cac[_0x45311(0x2a9)],{sheetName:_0x2fd365,range:_0x3f9e32}=(0x0,h[_0x45311(0x2b2)])(_0x1e760c),_0x493222={'name':((_0x13f05c=this[_0x45311(0x232)]['getMember'](this[_0x45311(0x456)],_0x3d2ad3))==null?void 0x0:_0x13f05c[_0x45311(0x400)])??_0x45311(0x4a8),'range':this['_getMergeRange'](_0x2fd365,_0x3f9e32),'sheetID':_0x2fd365,'color':this[_0x45311(0x258)][_0x45311(0x29c)](_0x3d2ad3),'selection':_0x1e760c},_0x311f86=this[_0x45311(0x4b9)];_0x311f86[_0x45311(0x27c)](_0x3d2ad3,_0x493222),this[_0x45311(0x34a)][_0x45311(0x220)](_0x311f86);}[_0x76d160(0x48e)](_0x3512c1){const _0x19ec48=_0x76d160;let {memberID:_0x27d8f1}=_0x3512c1['data'],_0x245a4e=this[_0x19ec48(0x4b9)];_0x245a4e[_0x19ec48(0x371)](_0x27d8f1),this[_0x19ec48(0x34a)][_0x19ec48(0x220)](_0x245a4e);}['_getMergeRange'](_0x5d7bd9,_0x22ea95){const _0x141001=_0x76d160;var _0x39461f;let _0x2b7c80=(_0x39461f=this['_univerInstanceService']['getUnit'](this[_0x141001(0x456)],t[_0x141001(0x23e)][_0x141001(0x375)]))==null||(_0x39461f=_0x39461f[_0x141001(0x22b)](_0x5d7bd9))==null?void 0x0:_0x39461f['getMergeData']();return(_0x2b7c80==null?void 0x0:_0x2b7c80['find'](_0x269417=>t[_0x141001(0x41c)][_0x141001(0x389)](_0x269417,_0x22ea95)))||_0x22ea95;}[_0x76d160(0x4ba)](){const _0xe218aa=_0x76d160;let _0xcff357=new t[(_0xe218aa(0x1f3))](),_0x5b2b20=ue(),_0x5583fe=()=>{const _0x1e05e6=_0xe218aa;_0xcff357[_0x1e05e6(0x35c)]();let _0x5b9c7a=(_0x95b98,_0x23c74f,_0x11c808,_0x19d882)=>{const _0x4855ab=_0x1e05e6;let _0x15ffe4=[];switch(_0x95b98['id']){case g[_0x4855ab(0x453)][_0x4855ab(0x3b2)]:_0x15ffe4=(0x0,g[_0x4855ab(0x299)])(_0x95b98,_0x19d882);break;case g[_0x4855ab(0x453)][_0x4855ab(0x372)]:_0x15ffe4=(0x0,g[_0x4855ab(0x399)])(_0x95b98,_0x19d882);break;case g['EffectRefRangId'][_0x4855ab(0x49e)]:_0x15ffe4=(0x0,g[_0x4855ab(0x316)])(_0x95b98,_0x19d882);break;case g[_0x4855ab(0x453)][_0x4855ab(0x405)]:_0x15ffe4=(0x0,g[_0x4855ab(0x28d)])(_0x95b98,_0x19d882);break;case g[_0x4855ab(0x453)][_0x4855ab(0x362)]:_0x15ffe4=(0x0,g[_0x4855ab(0x430)])(_0x95b98,_0x19d882);break;case g[_0x4855ab(0x453)][_0x4855ab(0x421)]:_0x15ffe4=(0x0,g['handleInsertRow'])(_0x95b98,_0x19d882);break;case g['EffectRefRangId'][_0x4855ab(0x4a7)]:_0x15ffe4=(0x0,g[_0x4855ab(0x1b4)])(_0x95b98,_0x19d882);break;case g[_0x4855ab(0x453)]['RemoveColCommandId']:_0x15ffe4=(0x0,g[_0x4855ab(0x343)])(_0x95b98,_0x19d882);break;case g['EffectRefRangId'][_0x4855ab(0x3ca)]:_0x15ffe4=(0x0,g['handleIRemoveRow'])(_0x95b98,_0x19d882);break;}let _0x304cbd=(0x0,g[_0x4855ab(0x221)])(_0x15ffe4,_0x19d882),_0x4b5db3=this[_0x4855ab(0x4b9)][_0x4855ab(0x4ad)](_0x23c74f);if(_0x4b5db3&&_0x304cbd){let _0x429d6f={..._0x4b5db3,'range':_0x304cbd};this[_0x4855ab(0x4b9)][_0x4855ab(0x27c)](_0x23c74f,_0x429d6f),_0x5b2b20(()=>{const _0xcb68a1=_0x4855ab;let _0x2c7e83=this['_refRangeService'][_0xcb68a1(0x431)](_0x304cbd,_0xf539b1=>(_0x2c7e83['dispose'](),_0x5b9c7a(_0xf539b1,_0x23c74f,_0x11c808,_0x304cbd)));_0xcff357[_0xcb68a1(0x2ce)](_0x2c7e83);});}return{'redos':[],'undos':[]};};this[_0x1e05e6(0x4b9)][_0x1e05e6(0x39c)]((_0x3f1a62,_0x32f09d)=>{const _0x3f57eb=_0x1e05e6;let {range:_0x36f401,sheetID:_0x557e41}=_0x3f1a62,_0x492c1f=this[_0x3f57eb(0x22d)][_0x3f57eb(0x431)](_0x36f401,_0x35f6fe=>(_0x492c1f[_0x3f57eb(0x35c)](),_0x5b9c7a(_0x35f6fe,_0x32f09d,_0x557e41,_0x36f401)));_0xcff357[_0x3f57eb(0x2ce)](_0x492c1f);});};this[_0xe218aa(0x2d1)]((0x0,t[_0xe218aa(0x4bf)])(this['_cursorInfo$'][_0xe218aa(0x2b8)](()=>{_0x5583fe();})));}[_0x76d160(0x365)](){const _0x229c2f=_0x76d160;var _0x27e53b,_0x2c353b;if(this['_online']=!0x0,((_0x27e53b=this[_0x229c2f(0x24b)][_0x229c2f(0x355)]())==null?void 0x0:_0x27e53b[_0x229c2f(0x4c4)]())!==this[_0x229c2f(0x456)])return;let _0x53693c=(_0x2c353b=this[_0x229c2f(0x2fa)]['get'](g[_0x229c2f(0x43d)])['getCurrentSelections']())==null?void 0x0:_0x2c353b[0x0],_0x252a75=this[_0x229c2f(0x24b)]['getCurrentUnitOfType'](t['UniverInstanceType'][_0x229c2f(0x375)])[_0x229c2f(0x3c5)]();_0x53693c&&_0x252a75&&this['_updateLocalCursor'](_0x252a75['getSheetId'](),_0x53693c);}[_0x76d160(0x1e5)](){const _0x304303=_0x76d160;this[_0x304303(0x3e8)]=!0x1;}};j=C([S(0x2,(0x0,t[_0x76d160(0x36b)])(t[_0x76d160(0x345)])),S(0x3,(0x0,t['Inject'])(O)),S(0x4,(0x0,t[_0x76d160(0x36b)])(e['MemberService'])),S(0x5,t[_0x76d160(0x275)]),S(0x6,t[_0x76d160(0x1ba)]),S(0x7,(0x0,t['Inject'])(g['RefRangeService']))],j);function _0x5e85(_0x21d379,_0x1d1d7d){_0x21d379=_0x21d379-0x1b4;const _0xc3aa2a=_0xc3aa();let _0x5e859f=_0xc3aa2a[_0x21d379];return _0x5e859f;}let M=class extends t[_0x76d160(0x2ad)]{constructor(_0x3fff57,_0x4cda13,_0xbd225){const _0x2b33ac=_0x76d160;super(),this['_univerInstanceService']=_0x3fff57,this[_0x2b33ac(0x2fa)]=_0x4cda13,this[_0x2b33ac(0x317)]=_0xbd225,x(this,_0x2b33ac(0x454),new Map()),x(this,'_entityInit$',new r[(_0x2b33ac(0x1c8))]()),this[_0x2b33ac(0x419)]();}['dispose'](){const _0x12f041=_0x76d160;super[_0x12f041(0x35c)](),this[_0x12f041(0x447)][_0x12f041(0x259)](),this['_entities'][_0x12f041(0x39c)](_0x4d0505=>_0x4d0505[_0x12f041(0x35c)]());}[_0x76d160(0x3b9)](_0x170d60){const _0x1c780d=_0x76d160;let _0xc8700b=this[_0x1c780d(0x454)][_0x1c780d(0x4ad)](_0x170d60);return _0xc8700b?_0xc8700b[_0x1c780d(0x29e)]:this['_entityInit$']['pipe']((0x0,r['filter'])(_0x4cb3ea=>_0x4cb3ea[_0x1c780d(0x456)]===_0x170d60),(0x0,r[_0x1c780d(0x315)])(_0x125337=>_0x125337[_0x1c780d(0x29e)]));}[_0x76d160(0x419)](){const _0x277343=_0x76d160;this[_0x277343(0x24b)][_0x277343(0x1fc)](t[_0x277343(0x23e)][_0x277343(0x375)])[_0x277343(0x4c8)]((0x0,r[_0x277343(0x1d9)])(this[_0x277343(0x1dd)]))[_0x277343(0x2b8)](async _0x452b7d=>{const _0x1e42a9=_0x277343;let _0x4b6e37=_0x452b7d[_0x1e42a9(0x214)][_0x1e42a9(0x4c4)](),_0x499010=await this[_0x1e42a9(0x366)](_0x4b6e37);this[_0x1e42a9(0x447)][_0x1e42a9(0x220)](_0x499010),this[_0x1e42a9(0x454)][_0x1e42a9(0x27c)](_0x4b6e37,_0x499010);}),this[_0x277343(0x24b)][_0x277343(0x1fc)](t['UniverInstanceType'][_0x277343(0x3f1)])[_0x277343(0x4c8)]((0x0,r['takeUntil'])(this[_0x277343(0x1dd)]))[_0x277343(0x4c8)]((0x0,r['filter'])(_0x25f0c3=>!_0x25f0c3[_0x277343(0x214)][_0x277343(0x4c4)]()[_0x277343(0x1d5)]('__')))[_0x277343(0x2b8)](async _0x3f0e62=>{const _0x28c636=_0x277343;let {unit:_0x54e575}=_0x3f0e62,_0xd216db=_0x54e575[_0x28c636(0x4c4)](),_0x5a3411=await this['_startDocCollabCursor'](_0xd216db);this[_0x28c636(0x447)][_0x28c636(0x220)](_0x5a3411),this[_0x28c636(0x454)][_0x28c636(0x27c)](_0xd216db,_0x5a3411);}),(0x0,r[_0x277343(0x228)])(this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x277343(0x23e)][_0x277343(0x3f1)]),this[_0x277343(0x24b)][_0x277343(0x34f)](t[_0x277343(0x23e)][_0x277343(0x375)]))['pipe']((0x0,r[_0x277343(0x1d9)])(this['dispose$']))['subscribe'](_0x1fc337=>{const _0x28055a=_0x277343;let _0xefdac3=_0x1fc337[_0x28055a(0x4c4)](),_0x2dbeb2=this[_0x28055a(0x454)][_0x28055a(0x4ad)](_0xefdac3);_0x2dbeb2&&(_0x2dbeb2[_0x28055a(0x35c)](),this[_0x28055a(0x454)][_0x28055a(0x371)](_0xefdac3));});}async[_0x76d160(0x366)](_0x325edb){const _0x4fc313=_0x76d160;let _0x3b40ca=await this['_collabSessionService'][_0x4fc313(0x4a2)](_0x325edb),_0xf9c44d=this[_0x4fc313(0x2fa)][_0x4fc313(0x3ba)](j,_0x325edb,_0x3b40ca);return _0xf9c44d[_0x4fc313(0x230)](),_0xf9c44d;}async['_startDocCollabCursor'](_0x1317a1){const _0x44d15c=_0x76d160;let _0x5ab72b=await this[_0x44d15c(0x317)][_0x44d15c(0x4a2)](_0x1317a1),_0xdc06c4=this[_0x44d15c(0x2fa)]['createInstance'](A,_0x1317a1,_0x5ab72b);return _0xdc06c4[_0x44d15c(0x230)](),_0xdc06c4;}};M=C([S(0x0,t[_0x76d160(0x275)]),S(0x1,(0x0,t['Inject'])(t[_0x76d160(0x345)])),S(0x2,(0x0,t[_0x76d160(0x36b)])(e['CollaborationSessionService']))],M);function de(_0x13fae0,_0x4be558){const _0x3cb90a=_0x76d160;_0x13fae0[_0x3cb90a(0x264)](),_0x13fae0[_0x3cb90a(0x226)]=_0x3cb90a(0x3e5);let _0x5b1060=_0x13fae0[_0x3cb90a(0x4a9)](_0x4be558)[_0x3cb90a(0x461)];return _0x13fae0[_0x3cb90a(0x41d)](),Math[_0x3cb90a(0x1e1)](_0x5b1060+0x8,0xc8);}function fe(_0x221d65,_0x9ba4f){const _0x247587=_0x76d160;let {radius:_0x1f467,width:_0x1c6afe,height:_0x566cf4}=_0x9ba4f;_0x1f467??=0x0,_0x1c6afe??=0x1e,_0x566cf4??=0x1e;let _0x435c54=0x0,_0x4ee11c=0x0,_0x40b0f1=0x0;_0x435c54=_0x4ee11c=_0x40b0f1=Math[_0x247587(0x1e1)](_0x1f467,_0x1c6afe/0x2,_0x566cf4/0x2),_0x221d65[_0x247587(0x38d)](),_0x221d65[_0x247587(0x3ef)](_0x435c54,0x0),_0x221d65[_0x247587(0x33e)](_0x1c6afe-_0x4ee11c,0x0),_0x221d65[_0x247587(0x459)](_0x1c6afe-_0x4ee11c,_0x4ee11c,_0x4ee11c,Math['PI']*0x3/0x2,0x0,!0x1),_0x221d65[_0x247587(0x33e)](_0x1c6afe,_0x566cf4-_0x40b0f1),_0x221d65[_0x247587(0x459)](_0x1c6afe-_0x40b0f1,_0x566cf4-_0x40b0f1,_0x40b0f1,0x0,Math['PI']/0x2,!0x1),_0x221d65[_0x247587(0x33e)](0x0,_0x566cf4),_0x221d65[_0x247587(0x33e)](0x0,_0x435c54),_0x221d65[_0x247587(0x459)](_0x435c54,_0x435c54,_0x435c54,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x221d65[_0x247587(0x207)](),_0x9ba4f[_0x247587(0x3de)]&&(_0x221d65[_0x247587(0x264)](),_0x221d65[_0x247587(0x271)]=_0x9ba4f['fill'],_0x9ba4f[_0x247587(0x2d0)]===_0x247587(0x4b7)?_0x221d65[_0x247587(0x3de)](_0x247587(0x4b7)):_0x221d65[_0x247587(0x3de)](),_0x221d65[_0x247587(0x41d)]());}var pe=class e extends p['Shape']{constructor(_0x1595c7,_0x3c1532){const _0x1bbaab=_0x76d160;super(_0x1595c7,_0x3c1532),x(this,'color',void 0x0),x(this,'text',void 0x0),this[_0x1bbaab(0x23c)]=_0x3c1532==null?void 0x0:_0x3c1532[_0x1bbaab(0x23c)],this['text']=_0x3c1532==null?void 0x0:_0x3c1532['text'];}static['drawWith'](_0x17cfb3,_0x1fb44e){const _0x62ac51=_0x76d160;let {text:_0x5edd0f,color:_0xd4816e}=_0x1fb44e;_0x17cfb3[_0x62ac51(0x264)](),_0x17cfb3[_0x62ac51(0x226)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x396ab9=_0x17cfb3['measureText'](_0x5edd0f)[_0x62ac51(0x461)];if(fe(_0x17cfb3,{'height':0x14,'radius':0x4,'width':de(_0x17cfb3,_0x5edd0f),'fill':_0xd4816e,'evented':!0x1}),_0x17cfb3[_0x62ac51(0x271)]='#FFF',_0x396ab9>0xc0){let _0x2abe4e='',_0x3db6dd=0x0;for(let _0x543f77 of _0x5edd0f){let _0x16821d=_0x17cfb3[_0x62ac51(0x4a9)](_0x543f77)[_0x62ac51(0x461)];if(_0x3db6dd+_0x16821d<=0xc0-_0x17cfb3[_0x62ac51(0x4a9)](_0x62ac51(0x4c6))[_0x62ac51(0x461)])_0x2abe4e+=_0x543f77,_0x3db6dd+=_0x16821d;else{_0x2abe4e+=_0x62ac51(0x4c6);break;}}_0x17cfb3[_0x62ac51(0x206)](_0x2abe4e,0x4,0xf);}else _0x17cfb3[_0x62ac51(0x206)](_0x5edd0f,0x4,0xf);_0x17cfb3[_0x62ac51(0x41d)]();}[_0x76d160(0x337)](_0x2ffe72){const _0x4e136e=_0x76d160;e[_0x4e136e(0x2d4)](_0x2ffe72,this);}};const N=_0x76d160(0x4c1);var me=class{constructor(_0x1b686f,_0x3cafb2,_0x4a20ba,_0x6d5259){const _0xf1af58=_0x76d160;this[_0xf1af58(0x2a0)]=_0x1b686f,this['_scene']=_0x3cafb2,this['_docSkeleton']=_0x4a20ba,this[_0xf1af58(0x2c0)]=_0x6d5259,x(this,_0xf1af58(0x3fe),[]),x(this,_0xf1af58(0x40a),null),x(this,_0xf1af58(0x27d),null),x(this,_0xf1af58(0x260),null),x(this,_0xf1af58(0x314),null),x(this,_0xf1af58(0x2f1),null),this[_0xf1af58(0x467)]();}set[_0x76d160(0x341)](_0x246ba8){const _0xf2ff8a=_0x76d160;_0x246ba8?(this[_0xf2ff8a(0x260)]&&this[_0xf2ff8a(0x260)][_0xf2ff8a(0x1f0)](),this[_0xf2ff8a(0x27d)]&&this[_0xf2ff8a(0x27d)][_0xf2ff8a(0x23b)]()):(this[_0xf2ff8a(0x260)]&&this['_anchorDot']['show'](),this[_0xf2ff8a(0x27d)]&&this[_0xf2ff8a(0x27d)][_0xf2ff8a(0x1f0)]());}[_0x76d160(0x35c)](){const _0x257c07=_0x76d160;for(let _0x4471d2 of this[_0x257c07(0x3fe)])_0x4471d2['dispose']();this[_0x257c07(0x27d)]&&this[_0x257c07(0x27d)][_0x257c07(0x35c)](),this['_anchorDot']&&this[_0x257c07(0x260)][_0x257c07(0x35c)](),this[_0x257c07(0x40a)]&&this[_0x257c07(0x40a)][_0x257c07(0x35c)](),this[_0x257c07(0x2f1)]&&this[_0x257c07(0x2f1)]();}[_0x76d160(0x467)](){const _0x5eb46c=_0x76d160;let {_docSkeleton:_0x41cc69,_document:_0x267290}=this,{color:_0x541357,name:_0x421b96,ranges:_0x113ef4}=this[_0x5eb46c(0x2a0)],_0x2869fd=_0x267290[_0x5eb46c(0x398)](),{docsLeft:_0x4df7db,docsTop:_0x1f8ad5}=_0x2869fd,_0x1ba584=new f[(_0x5eb46c(0x2a6))](_0x2869fd,_0x41cc69);for(let {startOffset:_0x594d5f,endOffset:_0x2d696f,rangeType:_0xd71f31,segmentId:_0x5fd089,segmentPage:_0x57e1ee,collapsed:_0x3e8155,isActive:_0x1c93ef}of _0x113ef4){let _0x2ce303=_0x41cc69[_0x5eb46c(0x274)](_0x594d5f,!0x0,_0x5fd089,_0x57e1ee),_0x38c9df=_0x41cc69[_0x5eb46c(0x274)](_0x2d696f,!0x0,_0x5fd089,_0x57e1ee);_0x38c9df??=_0x41cc69[_0x5eb46c(0x274)](_0x2d696f-0x1,!0x1,_0x5fd089,_0x57e1ee);let _0x48a96d=he(_0x2ce303,_0x38c9df);if(_0x1c93ef&&_0x48a96d['canRenderAnchor']){let {contentBoxPointGroup:_0xa61fad}=_0x1ba584[_0x5eb46c(0x4c0)](_0x38c9df,_0x38c9df);if(_0xa61fad['length']===0x0)continue;this[_0x5eb46c(0x3cc)](_0x541357,_0xa61fad,_0x4df7db,_0x1f8ad5,_0x421b96),this[_0x5eb46c(0x2f1)]=this[_0x5eb46c(0x1d7)]();}if(_0x2ce303&&_0x38c9df){if(_0xd71f31===t[_0x5eb46c(0x331)][_0x5eb46c(0x27b)]){let {pointGroup:_0x5bb872}=new f[(_0x5eb46c(0x46b))](_0x2869fd,_0x41cc69)[_0x5eb46c(0x4c0)](_0x2ce303,_0x38c9df)??{};if(_0x5bb872==null||_0x5bb872[_0x5eb46c(0x1c4)]===0x0)continue;this[_0x5eb46c(0x2db)](_0x541357,_0x5bb872,_0x4df7db,_0x1f8ad5);}else{if(!_0x3e8155&&_0x48a96d[_0x5eb46c(0x48c)]){let {borderBoxPointGroup:_0x525c12}=_0x1ba584[_0x5eb46c(0x4c0)](_0x2ce303,_0x38c9df);if(_0x525c12[_0x5eb46c(0x1c4)]===0x0)continue;this[_0x5eb46c(0x417)](_0x541357,_0x525c12,_0x4df7db,_0x1f8ad5);}}}}}[_0x76d160(0x3cc)](_0x2cb181,_0x54547d,_0x3ee415,_0x50255c,_0x231a58){const _0x27a380=_0x76d160;let {left:_0x27460c,top:_0x4979ae,height:_0x3e3db6}=this['_getAnchorBounding'](_0x54547d),_0x2bbc37=1.5/this[_0x27a380(0x283)](),_0x145c97=new p[(_0x27a380(0x1ca))](N+(0x0,t[_0x27a380(0x3c9)])(0x6),{'left':_0x27460c+_0x3ee415-_0x2bbc37,'top':_0x4979ae+_0x50255c,'height':_0x3e3db6,'width':1.5,'fill':_0x2cb181||(0x0,p['getColor'])(t[_0x27a380(0x3bf)][_0x27a380(0x435)],0x0),'strokeWidth':_0x2bbc37,'stroke':_0x27a380(0x457),'evented':!0x0});this[_0x27a380(0x40a)]=_0x145c97,this[_0x27a380(0x42c)][_0x27a380(0x239)](_0x145c97,f[_0x27a380(0x245)]);let _0x4114bf=new p[(_0x27a380(0x1ca))](N+(0x0,t[_0x27a380(0x3c9)])(0x6),{'left':_0x27460c+_0x3ee415-_0x2bbc37,'top':_0x4979ae+_0x50255c-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x2cb181||(0x0,p['getColor'])(t[_0x27a380(0x3bf)][_0x27a380(0x435)],0x0),'strokeWidth':0x0,'stroke':_0x2cb181||(0x0,p['getColor'])(t[_0x27a380(0x3bf)][_0x27a380(0x435)],0x0),'evented':!0x1});this[_0x27a380(0x260)]=_0x4114bf,this[_0x27a380(0x42c)][_0x27a380(0x239)](_0x4114bf,f[_0x27a380(0x245)]);let _0x59cb5b=new pe(N+(0x0,t[_0x27a380(0x3c9)])(0x6),{'left':_0x27460c+_0x3ee415-_0x2bbc37,'top':_0x4979ae+_0x50255c-0x14,'text':_0x231a58,'color':_0x2cb181});this[_0x27a380(0x27d)]=_0x59cb5b,this['_scene'][_0x27a380(0x239)](_0x59cb5b,f[_0x27a380(0x245)]),this['_hover']=!0x1;}['_handleHover'](){const _0x3653bc=_0x76d160;let _0x824137=this[_0x3653bc(0x40a)][_0x3653bc(0x407)][_0x3653bc(0x4c7)](()=>{this['_hover']=!0x0;}),_0xe3b64b=this[_0x3653bc(0x40a)][_0x3653bc(0x2c1)][_0x3653bc(0x4c7)](()=>{const _0x3caff7=_0x3653bc;this[_0x3caff7(0x314)]&&clearTimeout(this[_0x3caff7(0x314)]),this['_hideTimer']=setTimeout(()=>{const _0x5eaec6=_0x3caff7;this[_0x5eaec6(0x341)]=!0x1;},0x7d0);});return()=>{const _0x3399fd=_0x3653bc;_0x824137[_0x3399fd(0x2c8)](),_0xe3b64b[_0x3399fd(0x2c8)]();};}[_0x76d160(0x417)](_0x52fd0c,_0x432785,_0x4efe68,_0x422553){const _0x1acfeb=_0x76d160;let _0x173f8a=0.2,_0xb237f5=new t['ColorKit'](_0x52fd0c)[_0x1acfeb(0x2fe)](_0x173f8a)['toRgbString'](),_0x5bcdac=new p['RegularPolygon'](_0x1acfeb(0x469)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x432785,'fill':_0xb237f5||(0x0,p[_0x1acfeb(0x1b8)])(t['COLORS'][_0x1acfeb(0x435)],_0x173f8a),'left':_0x4efe68,'top':_0x422553,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1acfeb(0x3fe)]['push'](_0x5bcdac),this['_scene']['addObject'](_0x5bcdac,f[_0x1acfeb(0x245)]);}[_0x76d160(0x2db)](_0x9ac026,_0x228b90,_0x44990f,_0x9ab200){const _0x58357e=_0x76d160;let _0x2c9901=0.2,_0x1cd4b0=new t[(_0x58357e(0x20b))](_0x9ac026)[_0x58357e(0x2fe)](_0x2c9901)['toRgbString'](),_0x4fefaa=new p[(_0x58357e(0x46f))](_0x58357e(0x2a1)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x228b90,'fill':_0x1cd4b0||(0x0,p[_0x58357e(0x1b8)])(t['COLORS'][_0x58357e(0x435)],_0x2c9901),'left':_0x44990f,'top':_0x9ab200,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x58357e(0x3fe)][_0x58357e(0x281)](_0x4fefaa),this[_0x58357e(0x42c)][_0x58357e(0x239)](_0x4fefaa,f[_0x58357e(0x245)]);}[_0x76d160(0x2c2)](_0x36d85f){let _0x4f5d34=_0x36d85f[0x0],_0xb1c23=_0x4f5d34[0x0],_0x34e7b1=_0x4f5d34[0x2],{x:_0x2716e1,y:_0x29b3ec}=_0xb1c23,{x:_0x495899,y:_0x3ad2bd}=_0x34e7b1;return{'left':_0x2716e1,'top':_0x29b3ec,'width':_0x495899-_0x2716e1,'height':_0x3ad2bd-_0x29b3ec};}[_0x76d160(0x283)](){const _0x13b838=_0x76d160;let {scaleX:_0x260471,scaleY:_0xbb530f}=this['_scene'][_0x13b838(0x250)]();return Math[_0x13b838(0x2f4)](_0x260471,_0xbb530f);}};function he(_0x34d22e,_0x3e2241){const _0x21c26d=_0x76d160;if(!_0x3e2241)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x34d22e||_0x34d22e[_0x21c26d(0x2d6)]!==_0x3e2241[_0x21c26d(0x2d6)]||(_0x34d22e['pageType']===p[_0x21c26d(0x379)][_0x21c26d(0x2b1)]||_0x34d22e['pageType']===p[_0x21c26d(0x379)]['FOOTER'])&&_0x34d22e['segmentPage']!==_0x3e2241['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x4536a7=(0x0,p[_0x21c26d(0x35e)])(_0x34d22e),_0x5db062=(0x0,p[_0x21c26d(0x35e)])(_0x3e2241);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x4536a7==null||_0x5db062==null?_0x4536a7==null&&_0x5db062==null:_0x4536a7['pageIndex']===_0x5db062[_0x21c26d(0x21a)]&&_0x4536a7['columnGroupId']===_0x5db062[_0x21c26d(0x46c)]&&_0x4536a7[_0x21c26d(0x2a8)]===_0x5db062['columnIndex']};}let P=class extends t[_0x76d160(0x2ad)]{constructor(_0x56e665,_0x58c42c,_0x579a08,_0x2c0abb,_0x2e8c34){const _0x2f3e22=_0x76d160;super(),this[_0x2f3e22(0x378)]=_0x56e665,this[_0x2f3e22(0x2dd)]=_0x58c42c,this[_0x2f3e22(0x1cd)]=_0x579a08,this[_0x2f3e22(0x293)]=_0x2c0abb,this[_0x2f3e22(0x2b4)]=_0x2e8c34,x(this,'_cursorShapes',[]),x(this,_0x2f3e22(0x4b8),[]),this[_0x2f3e22(0x419)]();}[_0x76d160(0x419)](){const _0x5e310b=_0x76d160;let _0x595c3d=this[_0x5e310b(0x378)][_0x5e310b(0x2e4)],_0x104f4b=this['_docSkeletonManagerService'];this['disposeWithMe']((0x0,r['combineLatest'])([this['_collabCursorController'][_0x5e310b(0x3b9)](_0x595c3d),this[_0x5e310b(0x2b4)][_0x5e310b(0x46e)]])[_0x5e310b(0x4c8)]((0x0,i[_0x5e310b(0x1b5)])(([_0x5c758d,_0x3d31d3])=>({'skeleton':_0x104f4b[_0x5e310b(0x1c3)](),'cursors':[..._0x5c758d[_0x5e310b(0x489)]()][_0x5e310b(0x2f9)](_0x416468=>({..._0x416468,'color':this[_0x5e310b(0x2b4)][_0x5e310b(0x481)](_0x416468[_0x5e310b(0x23c)])}))})))[_0x5e310b(0x2b8)](_0x24cce9=>{const _0x23c425=_0x5e310b;if(this[_0x23c425(0x32f)](),_0x24cce9){let {skeleton:_0x43c1b1,cursors:_0x4ef82e}=_0x24cce9;this[_0x23c425(0x2fd)](_0x43c1b1,_0x4ef82e);}})),this[_0x5e310b(0x334)](),this[_0x5e310b(0x38a)]();}[_0x76d160(0x2fd)](_0x572f55,_0x625f50){const _0x25efdc=_0x76d160;let {scene:_0x1b6483,mainComponent:_0x496ba5}=this[_0x25efdc(0x378)],_0x473091=_0x625f50[_0x25efdc(0x1b5)](_0x23fda2=>new me(_0x23fda2,_0x1b6483,_0x572f55,_0x496ba5));this['_cursorShapes']=_0x473091,this[_0x25efdc(0x4b8)]=_0x625f50;}[_0x76d160(0x425)](){const _0x4d595a=_0x76d160;this[_0x4d595a(0x32f)]();let {scene:_0x3a4dab,mainComponent:_0x3ad9a3}=this['_context'],_0x226673=this[_0x4d595a(0x2dd)][_0x4d595a(0x1c3)](),_0x5dd1ab=this[_0x4d595a(0x4b8)][_0x4d595a(0x1b5)](_0xe4ac9e=>new me(_0xe4ac9e,_0x3a4dab,_0x226673,_0x3ad9a3));this['_cursorShapes']=_0x5dd1ab;}[_0x76d160(0x32f)](){const _0x9c3f40=_0x76d160;this[_0x9c3f40(0x234)][_0x9c3f40(0x39c)](_0x25f65e=>_0x25f65e[_0x9c3f40(0x35c)]()),this['_cursorShapes']=[];}[_0x76d160(0x38a)](){const _0x3c69fb=_0x76d160;let _0x2db169=[f['SetDocZoomRatioOperation']['id']];this[_0x3c69fb(0x2d1)](this[_0x3c69fb(0x293)][_0x3c69fb(0x4a5)](_0x4ef6db=>{const _0x226376=_0x3c69fb;_0x2db169['includes'](_0x4ef6db['id'])&&_0x4ef6db[_0x226376(0x25b)][_0x226376(0x2e4)]===this['_context'][_0x226376(0x2e4)]&&this[_0x226376(0x425)]();}));}[_0x76d160(0x334)](){const _0x316bc4=_0x76d160;this[_0x316bc4(0x2d1)]((0x0,t[_0x316bc4(0x2eb)])(this['_context'][_0x316bc4(0x2cd)][_0x316bc4(0x38b)])[_0x316bc4(0x4c8)]((0x0,i['filter'])(_0x143ac6=>_0x143ac6['type']===p[_0x316bc4(0x211)][_0x316bc4(0x320)]),(0x0,i[_0x316bc4(0x2d3)])(0x10))[_0x316bc4(0x2b8)](()=>{this['_refreshCollabCursors']();}));}};P=C([S(0x1,(0x0,t[_0x76d160(0x36b)])(d[_0x76d160(0x45c)])),S(0x2,(0x0,t[_0x76d160(0x36b)])(M)),S(0x3,t[_0x76d160(0x1ba)]),S(0x4,(0x0,t[_0x76d160(0x36b)])(t[_0x76d160(0x1de)]))],P);var ge=class extends p[_0x76d160(0x3f5)]{constructor(_0x1a2853,_0xe6367){const _0x434eec=_0x76d160;super(_0x1a2853,_0xe6367),x(this,_0x434eec(0x4ac),void 0x0),x(this,_0x434eec(0x31e),!0x1),x(this,'_range',void 0x0),x(this,_0x434eec(0x497),''),x(this,_0x434eec(0x2e8),'top'),x(this,_0x434eec(0x1c6),void 0x0),x(this,_0x434eec(0x303),void 0x0),x(this,'_highlight',void 0x0),x(this,_0x434eec(0x455),0x4),x(this,_0x434eec(0x25a),void 0x0),x(this,_0x434eec(0x3ff),void 0x0),x(this,_0x434eec(0x351),!0x0),x(this,'_offsetY',0x0),x(this,_0x434eec(0x4a4),_0x434eec(0x276)),_0xe6367&&(this[_0x434eec(0x2e5)](_0xe6367),_0xe6367[_0x434eec(0x476)]&&(_0xe6367['highlightSecond']??this[_0x434eec(0x455)])&&this[_0x434eec(0x242)](_0xe6367[_0x434eec(0x36a)]??this[_0x434eec(0x455)])),this[_0x434eec(0x407)][_0x434eec(0x4c7)](()=>this[_0x434eec(0x2e5)]({'hovered':!0x0})),this[_0x434eec(0x2c1)][_0x434eec(0x4c7)](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x76d160(0x282)](_0x3f4936){const _0x506c09=_0x76d160;this[_0x506c09(0x34d)]=_0x3f4936;}[_0x76d160(0x2e5)](_0x47ba48){const _0x234af2=_0x76d160;this[_0x234af2(0x4ac)]=_0x47ba48[_0x234af2(0x23c)]??this[_0x234af2(0x4ac)],this[_0x234af2(0x31e)]=_0x47ba48[_0x234af2(0x292)]??this[_0x234af2(0x31e)],this[_0x234af2(0x254)]=_0x47ba48[_0x234af2(0x490)]??this['_range'],this[_0x234af2(0x497)]=_0x47ba48[_0x234af2(0x400)]??this[_0x234af2(0x497)],this[_0x234af2(0x2e8)]=_0x47ba48['labelPosition']??this['_labelPosition'],this[_0x234af2(0x1c6)]=_0x47ba48[_0x234af2(0x289)]??this[_0x234af2(0x1c6)],this['_showText']=_0x47ba48[_0x234af2(0x384)]??this[_0x234af2(0x303)],this[_0x234af2(0x4a4)]=_0x47ba48[_0x234af2(0x255)]??this[_0x234af2(0x4a4)],_0x47ba48[_0x234af2(0x36a)]!==void 0x0&&(this['_highlightSecond']=_0x47ba48['highlightSecond']),_0x47ba48[_0x234af2(0x476)]!==void 0x0&&(this[_0x234af2(0x451)]=_0x47ba48[_0x234af2(0x476)]),_0x47ba48[_0x234af2(0x458)]!==void 0x0&&(this[_0x234af2(0x34d)]=_0x47ba48[_0x234af2(0x458)]),this[_0x234af2(0x37d)]({'width':_0x47ba48[_0x234af2(0x461)],'height':_0x47ba48[_0x234af2(0x440)]});}[_0x76d160(0x46a)](_0x258af5){const _0x12fe26=_0x76d160;let {row:_0x1c9344,column:_0x1b2958}=_0x258af5;if(_0x1c9344>=this[_0x12fe26(0x254)][_0x12fe26(0x26b)]&&_0x1c9344<=this[_0x12fe26(0x254)][_0x12fe26(0x41e)]&&_0x1b2958>=this['_range'][_0x12fe26(0x3a5)]&&_0x1b2958<=this[_0x12fe26(0x254)][_0x12fe26(0x212)]){this[_0x12fe26(0x2e5)]({'hovered':!0x0});return;}this[_0x12fe26(0x2e5)]({'hovered':!0x1});}[_0x76d160(0x242)](_0x230aae){const _0x308aca=_0x76d160;this[_0x308aca(0x2be)](),this[_0x308aca(0x351)]=!0x0,this[_0x308aca(0x3ff)]=window[_0x308aca(0x43f)](()=>{const _0x5778ba=_0x308aca;this[_0x5778ba(0x351)]=!this['_isBlinkVisible'],this['makeDirty'](!0x0);},0x1f4),this[_0x308aca(0x25a)]=window[_0x308aca(0x3f0)](()=>{const _0x37cd8d=_0x308aca;this['_stopBlinking'](),this[_0x37cd8d(0x351)]=!0x0,this['makeDirty'](!0x0);},_0x230aae*0x3e8);}[_0x76d160(0x2be)](){const _0x133d3c=_0x76d160;this[_0x133d3c(0x3ff)]&&=(window[_0x133d3c(0x3c2)](this[_0x133d3c(0x3ff)]),void 0x0),this[_0x133d3c(0x25a)]&&=(window['clearTimeout'](this[_0x133d3c(0x25a)]),void 0x0);}[_0x76d160(0x4ca)](_0x4ff913){return!0x1;}[_0x76d160(0x35c)](){this['_stopBlinking'](),super['dispose']();}[_0x76d160(0x337)](_0x570512){const _0x312213=_0x76d160;let _0x4c869b=this[_0x312213(0x4ac)],_0x3f340c=this[_0x312213(0x1c6)];if(this[_0x312213(0x451)]&&!this['_isBlinkVisible']&&(_0x4c869b=this['_getLighterColor'](this[_0x312213(0x4ac)]),_0x3f340c=this['_backgroundColor']?this[_0x312213(0x433)](this[_0x312213(0x1c6)]):void 0x0),p[_0x312213(0x1ca)][_0x312213(0x2d4)](_0x570512,{'width':this[_0x312213(0x461)],'height':this[_0x312213(0x440)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x4c869b,'evented':!0x1,'fill':_0x3f340c}),this[_0x312213(0x31e)]||this['_showText']){_0x570512[_0x312213(0x264)]();let _0x33d863=this[_0x312213(0x4a4)]==='left'?-de(_0x570512,this[_0x312213(0x497)]):this[_0x312213(0x461)];_0x570512[_0x312213(0x2bb)](0x1,0x0,0x0,0x1,_0x33d863,(this['_labelPosition']===_0x312213(0x26d)?0x0:-0x14)+(this[_0x312213(0x34d)]??0x0)),pe[_0x312213(0x2d4)](_0x570512,{'text':this[_0x312213(0x497)],'color':_0x4c869b}),_0x570512[_0x312213(0x41d)]();}}[_0x76d160(0x433)](_0x554f70){const _0x5f0e28=_0x76d160;return _0x554f70[_0x5f0e28(0x1d5)]('#')?_0x5f0e28(0x364)+Number[_0x5f0e28(0x4b5)](_0x554f70[_0x5f0e28(0x383)](0x1,0x3),0x10)+',\x20'+Number[_0x5f0e28(0x4b5)](_0x554f70[_0x5f0e28(0x383)](0x3,0x5),0x10)+',\x20'+Number[_0x5f0e28(0x4b5)](_0x554f70[_0x5f0e28(0x383)](0x5,0x7),0x10)+',\x200.2)':_0x554f70[_0x5f0e28(0x1d5)](_0x5f0e28(0x23d))?_0x554f70['replace'](/[\d.]+\)$/g,'0.2)'):_0x554f70[_0x5f0e28(0x1d5)](_0x5f0e28(0x21d))?_0x554f70[_0x5f0e28(0x358)](_0x5f0e28(0x21d),_0x5f0e28(0x23d))[_0x5f0e28(0x358)](')',_0x5f0e28(0x1b7)):_0x554f70;}};let F=class extends t['RxDisposable']{constructor(_0x287ffb,_0x137f59,_0x332775,_0x4e871f){const _0x51b7bb=_0x76d160;super(),this[_0x51b7bb(0x378)]=_0x287ffb,this[_0x51b7bb(0x3ea)]=_0x137f59,this[_0x51b7bb(0x1cd)]=_0x332775,this[_0x51b7bb(0x2b4)]=_0x4e871f,x(this,_0x51b7bb(0x4b8),new Set()),x(this,_0x51b7bb(0x2da),null),x(this,_0x51b7bb(0x353),null),this[_0x51b7bb(0x419)]();}[_0x76d160(0x419)](){const _0x48d38c=_0x76d160;this[_0x48d38c(0x3ea)][_0x48d38c(0x28b)][_0x48d38c(0x4c8)]((0x0,i[_0x48d38c(0x1d9)])(this[_0x48d38c(0x1dd)]),(0x0,i[_0x48d38c(0x315)])(_0x5bde39=>{const _0x53f1c2=_0x48d38c;if(_0x5bde39){let _0x32cb22=_0x5bde39[_0x53f1c2(0x31c)];return(0x0,r[_0x53f1c2(0x26c)])(this['_collabCursorController'][_0x53f1c2(0x3b9)](this[_0x53f1c2(0x378)][_0x53f1c2(0x2e4)]),this['_themeService'][_0x53f1c2(0x46e)])['pipe']((0x0,i[_0x53f1c2(0x1b5)])(([_0x16bc9c,_0x4fbe36])=>{let _0x291e1c=new Map();return _0x16bc9c['forEach']((_0x4c1455,_0x4cb39c)=>{const _0x139d46=_0x5e85;if(_0x4c1455[_0x139d46(0x312)]===_0x32cb22){let _0x399658={..._0x4c1455};_0x399658['color']=this[_0x139d46(0x2b4)][_0x139d46(0x481)](_0x4c1455[_0x139d46(0x23c)]),_0x291e1c[_0x139d46(0x27c)](_0x4cb39c,_0x399658);}}),{'skeleton':_0x5bde39,'cursors':_0x291e1c};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x9f8b62,cursors:_0x2ecffb})=>{const _0x45271d=_0x48d38c;this[_0x45271d(0x32f)](),_0x9f8b62&&this[_0x45271d(0x2fd)](_0x9f8b62,_0x2ecffb);}),this[_0x48d38c(0x2d1)](this[_0x48d38c(0x3ea)]['currentSkeleton$'][_0x48d38c(0x4c8)]((0x0,i['takeUntil'])(this[_0x48d38c(0x1dd)]))[_0x48d38c(0x2b8)](_0x397163=>{const _0x26ec1b=_0x48d38c;var _0x1085fa;if(_0x397163==null)return;(_0x1085fa=this['_pointerMoveDisposable'])==null||_0x1085fa['unsubscribe'](),this[_0x26ec1b(0x353)]=null;let {skeleton:_0x18d8a9}=_0x397163,{scene:_0x54a0e9}=this['_context'];this[_0x26ec1b(0x353)]=_0x54a0e9[_0x26ec1b(0x2dc)]['subscribeEvent']((0x0,t['debounce'])(_0x435e1b=>{const _0x110efa=_0x26ec1b;var _0x172780,_0x37d89a;let {offsetX:_0x67823e,offsetY:_0x18bdd4}=_0x435e1b,{x:_0xa55f06,y:_0x2ffb96}=_0x54a0e9[_0x110efa(0x426)](p['Vector2'][_0x110efa(0x3bc)]([_0x67823e,_0x18bdd4])),{scaleX:_0x5d8323,scaleY:_0x3f79ad}=_0x54a0e9[_0x110efa(0x250)](),_0x1e762b=_0x54a0e9[_0x110efa(0x1f2)](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x378770=_0x54a0e9[_0x110efa(0x253)](p['Vector2']['FromArray']([_0xa55f06,_0x2ffb96]),_0x1e762b),_0x3c9350=_0x18d8a9[_0x110efa(0x472)](_0x67823e,_0x18bdd4,_0x5d8323,_0x3f79ad,_0x378770);(((_0x172780=this[_0x110efa(0x2da)])==null?void 0x0:_0x172780[_0x110efa(0x38c)])!==_0x3c9350['column']||((_0x37d89a=this[_0x110efa(0x2da)])==null?void 0x0:_0x37d89a[_0x110efa(0x464)])!==_0x3c9350['row'])&&this['_cursors'][_0x110efa(0x39c)](_0x3b851c=>{const _0x4916d2=_0x110efa;_0x3b851c[_0x4916d2(0x46a)](_0x3c9350);});},0x64));})),this[_0x48d38c(0x2d1)]((0x0,t[_0x48d38c(0x4bf)])(()=>{const _0x587859=_0x48d38c;var _0x4d8964;(_0x4d8964=this[_0x587859(0x353)])==null||_0x4d8964[_0x587859(0x2c8)](),this[_0x587859(0x353)]=null;}));}[_0x76d160(0x2fd)](_0x5ba46a,_0x5d574d){const _0x10a304=_0x76d160;let _0x97394f=this[_0x10a304(0x3ea)][_0x10a304(0x374)]();if(!_0x97394f)return;let _0x24061a=this['_getSheetObject']();if(!_0x24061a)return;this[_0x10a304(0x4b8)]['forEach'](_0x407918=>{const _0x466a6f=_0x10a304;_0x407918[_0x466a6f(0x3e2)]();});let {scene:_0x39d5fa}=_0x24061a,_0xff2b86=_e(Array['from'](_0x5d574d['values']()))[_0x10a304(0x1b5)](_0x4a5e45=>{const _0x23b513=_0x10a304;let {color:_0x5c396d,range:_0x197ab1,name:_0x54108d,selection:_0x5152c0,sheetID:_0x5df67d}=_0x4a5e45,{startColumn:_0x4a2862,startRow:_0xe04e69,endColumn:_0xc2fa1d,endRow:_0x3f69bb}=_0x197ab1,_0x1096a7=(0x0,_[_0x23b513(0x304)])(_0xe04e69,_0x4a2862,_0x39d5fa,_0x97394f),_0x123927=(0x0,_[_0x23b513(0x304)])(_0x3f69bb,_0xc2fa1d,_0x39d5fa,_0x97394f),{columnHeaderHeightAndMarginTop:_0x1b3351}=_0x97394f,{startX:_0x45b3d4,startY:_0x3ca323}=_0x1096a7,{endX:_0x3c7f57,endY:_0x1ad634}=_0x123927,_0x3cb180=_0x3c7f57-_0x45b3d4,_0x85c171=_0x1ad634-_0x3ca323;return new ge(_0x54108d,{'labelPosition':_0x3ca323-_0x1b3351>=0x14?_0x23b513(0x2ba):_0x23b513(0x26d),'sheetID':_0x5df67d,'range':_0x197ab1,'color':_0x5c396d,'name':_0x54108d,'selection':_0x5152c0,'left':_0x45b3d4,'top':_0x3ca323,'width':_0x3cb180,'height':_0x85c171,'evented':!0x1,'zIndex':0x1389});});_0x39d5fa[_0x10a304(0x39e)](_0xff2b86,0x1),this[_0x10a304(0x4b8)]=new Set(_0xff2b86);}[_0x76d160(0x32f)](){const _0x2467c1=_0x76d160;var _0x2d9fdc;(_0x2d9fdc=this[_0x2467c1(0x4b8)])==null||_0x2d9fdc[_0x2467c1(0x39c)](_0x3da812=>_0x3da812[_0x2467c1(0x35c)]());}[_0x76d160(0x414)](){const _0x3a9024=_0x76d160;return(0x0,_['getSheetObject'])(this[_0x3a9024(0x378)][_0x3a9024(0x214)],this[_0x3a9024(0x378)]);}};F=C([S(0x1,(0x0,t['Inject'])(_[_0x76d160(0x1ec)])),S(0x2,(0x0,t['Inject'])(M)),S(0x3,(0x0,t[_0x76d160(0x36b)])(t[_0x76d160(0x1de)]))],F);function _e(_0x51eefe){const _0x14fd31=_0x76d160;let _0xea0a5f=new Map();return _0x51eefe[_0x14fd31(0x39c)](_0x43e280=>{const _0x10514f=_0x14fd31;if(_0xea0a5f[_0x10514f(0x1f1)](_0x43e280[_0x10514f(0x3fd)])){let _0x3e7f62=_0xea0a5f[_0x10514f(0x4ad)](_0x43e280[_0x10514f(0x3fd)]);_0x3e7f62[_0x10514f(0x400)]+=',\x20'+_0x43e280[_0x10514f(0x400)];}else _0xea0a5f[_0x10514f(0x27c)](_0x43e280[_0x10514f(0x3fd)],_0x43e280);}),Array['from'](_0xea0a5f[_0x14fd31(0x489)]());}function I(_0x4f077c){return typeof _0x4f077c=='object'&&!!_0x4f077c;}function ve(_0xeb5b96){const _0x51f45c=_0x76d160;return _0xeb5b96[_0x51f45c(0x246)]===l['CollaborationEvent'][_0x51f45c(0x359)]&&_0x51f45c(0x2a9)in _0xeb5b96&&I(_0xeb5b96[_0x51f45c(0x2a9)])&&typeof _0xeb5b96[_0x51f45c(0x2a9)][_0x51f45c(0x36c)]==_0x51f45c(0x44f)&&typeof _0xeb5b96['data']['selection']=='string';}function ye(_0x487f3c){const _0x149121=_0x76d160;return _0x487f3c[_0x149121(0x246)]===l[_0x149121(0x21f)]['USERS_LEAVE']&&_0x149121(0x2a9)in _0x487f3c&&I(_0x487f3c[_0x149121(0x2a9)])&&typeof _0x487f3c[_0x149121(0x2a9)][_0x149121(0x36c)]==_0x149121(0x44f);}function be(_0x3186e4,_0x2a5a0a){const _0x14e6f7=_0x76d160;let _0x17dbe9;try{_0x17dbe9=JSON[_0x14e6f7(0x322)](_0x3186e4);}catch{return null;}if(!I(_0x17dbe9)||typeof _0x17dbe9[_0x14e6f7(0x394)]!='string'||typeof _0x17dbe9[_0x14e6f7(0x2e4)]!=_0x14e6f7(0x44f)||typeof _0x17dbe9[_0x14e6f7(0x386)]!=_0x14e6f7(0x44f))return null;let _0x4a9637=typeof _0x17dbe9[_0x14e6f7(0x2f8)]=='number'?_0x17dbe9[_0x14e6f7(0x2f8)]:_0x2a5a0a;if(_0x4a9637==null)return null;let _0x4c31e3=I(_0x17dbe9[_0x14e6f7(0x1e4)])&&typeof _0x17dbe9[_0x14e6f7(0x1e4)]['x']==_0x14e6f7(0x422)&&Number['isFinite'](_0x17dbe9['pointer']['x'])&&typeof _0x17dbe9[_0x14e6f7(0x1e4)]['y']==_0x14e6f7(0x422)&&Number[_0x14e6f7(0x363)](_0x17dbe9[_0x14e6f7(0x1e4)]['y'])?{'x':_0x17dbe9['pointer']['x'],'y':_0x17dbe9[_0x14e6f7(0x1e4)]['y']}:null;return{'kind':_0x17dbe9['kind'],'unitType':_0x4a9637,'unitId':_0x17dbe9['unitId'],'subUnitId':_0x17dbe9[_0x14e6f7(0x386)],'selectedIds':Array[_0x14e6f7(0x1d1)](_0x17dbe9[_0x14e6f7(0x4c5)])?_0x17dbe9[_0x14e6f7(0x4c5)][_0x14e6f7(0x1fa)](_0x77e8cc=>typeof _0x77e8cc==_0x14e6f7(0x44f)):[],'focusedId':typeof _0x17dbe9['focusedId']==_0x14e6f7(0x44f)?_0x17dbe9[_0x14e6f7(0x2b5)]:null,'pointer':_0x4c31e3};}function xe(_0x715efd,_0x474f26,_0x4ebb00){const _0x4ad341=_0x76d160;return{'kind':_0x474f26,'unitType':_0x715efd,'unitId':_0x4ebb00[_0x4ad341(0x2e4)],'subUnitId':_0x4ebb00[_0x4ad341(0x386)],'selectedIds':Array[_0x4ad341(0x339)](_0x4ebb00[_0x4ad341(0x4c5)]),'focusedId':_0x4ebb00['focusedId'],'pointer':_0x4ebb00['pointer']?{..._0x4ebb00[_0x4ad341(0x1e4)]}:null};}let L=class extends t[_0x76d160(0x2ad)]{constructor(_0x57d171,_0x28a39b,_0x22d6e9,_0x5d73e3,_0x1ec7a4,_0x765b63){const _0x559ae1=_0x76d160;super(),this[_0x559ae1(0x2e4)]=_0x57d171,this['_session']=_0x28a39b,this[_0x559ae1(0x301)]=_0x22d6e9,this[_0x559ae1(0x258)]=_0x5d73e3,this[_0x559ae1(0x232)]=_0x1ec7a4,this[_0x559ae1(0x293)]=_0x765b63,x(this,_0x559ae1(0x3e8),!0x1),x(this,_0x559ae1(0x38e),!0x1);}get[_0x76d160(0x2f8)](){const _0x36a796=_0x76d160;return this[_0x36a796(0x301)]['unitType'];}['dispose'](){const _0x3c549a=_0x76d160;this[_0x3c549a(0x1ff)](),super[_0x3c549a(0x35c)]();}[_0x76d160(0x230)](){const _0x3582dc=_0x76d160;this[_0x3582dc(0x38e)]||(this['_initialized']=!0x0,this[_0x3582dc(0x3d4)]['sessionStatus$'][_0x3582dc(0x4c8)]((0x0,r[_0x3582dc(0x1d9)])(this[_0x3582dc(0x1dd)]))[_0x3582dc(0x2b8)](_0x17c8d6=>{const _0x693363=_0x3582dc;if(_0x17c8d6===e['SessionStatus'][_0x693363(0x20d)]){this[_0x693363(0x3e8)]=!0x0;let _0x22bdee=this[_0x693363(0x301)][_0x693363(0x3ec)](this[_0x693363(0x2e4)]);_0x22bdee&&this['_sendLocalPresence'](_0x22bdee);return;}this[_0x693363(0x3e8)]=!0x1,this[_0x693363(0x1ff)]();}),this['_session'][_0x3582dc(0x2e9)][_0x3582dc(0x4c8)]((0x0,r[_0x3582dc(0x1d9)])(this[_0x3582dc(0x1dd)]))['subscribe'](_0xcd02fd=>{const _0x38f0cb=_0x3582dc;ve(_0xcd02fd)?this[_0x38f0cb(0x22e)](_0xcd02fd):ye(_0xcd02fd)&&this[_0x38f0cb(0x411)](_0xcd02fd[_0x38f0cb(0x2a9)]['memberID']);}),this[_0x3582dc(0x301)][_0x3582dc(0x1bb)][_0x3582dc(0x4c8)]((0x0,r[_0x3582dc(0x1fa)])(_0x3b9f10=>this[_0x3582dc(0x3e8)]&&_0x3b9f10[_0x3582dc(0x2e4)]===this['unitId']),(0x0,r[_0x3582dc(0x471)])(_0x2c0662=>(0x0,r[_0x3582dc(0x290)])(_0x2c0662[_0x3582dc(0x36d)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r['takeUntil'])(this[_0x3582dc(0x1dd)]))[_0x3582dc(0x2b8)](_0x200b9b=>this[_0x3582dc(0x2df)](_0x200b9b)));}[_0x76d160(0x2df)](_0x419654){const _0x17081c=_0x76d160;let _0x46c60e=this[_0x17081c(0x3d4)]['getMemberID']();if(!_0x46c60e||!this[_0x17081c(0x3e8)])return;let _0x326068={'eventID':l[_0x17081c(0x21f)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x17081c(0x2e4)],'memberID':_0x46c60e,'selection':JSON[_0x17081c(0x4af)](xe(this[_0x17081c(0x2f8)],this[_0x17081c(0x301)][_0x17081c(0x368)],_0x419654))}};this['_session'][_0x17081c(0x29a)](_0x326068,this[_0x17081c(0x2e4)])[_0x17081c(0x2cc)](()=>void 0x0);}[_0x76d160(0x22e)](_0x5ebde9){const _0x36c49b=_0x76d160;let {memberID:_0x1856cc,selection:_0x1c61e5}=_0x5ebde9['data'];if(_0x1856cc===this[_0x36c49b(0x3d4)][_0x36c49b(0x205)]())return;let _0x4d9783=be(_0x1c61e5,this[_0x36c49b(0x2f8)]);if(!_0x4d9783||_0x4d9783['kind']!==this[_0x36c49b(0x301)][_0x36c49b(0x368)]||_0x4d9783[_0x36c49b(0x2f8)]!==this['unitType']||_0x4d9783[_0x36c49b(0x2e4)]!==this[_0x36c49b(0x2e4)])return;let _0x57b77b=this[_0x36c49b(0x232)]['getMember'](this[_0x36c49b(0x2e4)],_0x1856cc),_0x56f757={'unitId':_0x4d9783['unitId'],'subUnitId':_0x4d9783[_0x36c49b(0x386)],'selectedIds':_0x4d9783[_0x36c49b(0x4c5)],'focusedId':_0x4d9783[_0x36c49b(0x2b5)],'pointer':_0x4d9783['pointer'],'memberId':_0x1856cc,'color':this[_0x36c49b(0x258)][_0x36c49b(0x29c)](_0x1856cc),'name':(_0x57b77b==null?void 0x0:_0x57b77b[_0x36c49b(0x400)])??_0x1856cc};this[_0x36c49b(0x293)][_0x36c49b(0x2c9)](E['id'],{'unitType':this[_0x36c49b(0x2f8)],'update':{'type':'set','state':_0x56f757}})['catch'](()=>void 0x0);}[_0x76d160(0x411)](_0x13a641){const _0x7ae100=_0x76d160;this['_commandService']['executeCommand'](E['id'],{'unitType':this[_0x7ae100(0x2f8)],'update':{'type':_0x7ae100(0x42a),'unitId':this['unitId'],'memberId':_0x13a641}})[_0x7ae100(0x2cc)](()=>void 0x0);}[_0x76d160(0x1ff)](){const _0x596afe=_0x76d160;this[_0x596afe(0x293)]['executeCommand'](E['id'],{'unitType':this[_0x596afe(0x2f8)],'update':{'type':'clear','unitId':this['unitId']}})['catch'](()=>void 0x0);}};L=C([S(0x3,(0x0,t['Inject'])(O)),S(0x4,(0x0,t[_0x76d160(0x36b)])(e['MemberService'])),S(0x5,(0x0,t['Inject'])(t[_0x76d160(0x1ba)]))],L);let R=class extends t['RxDisposable']{constructor(_0x26db67,_0x36ae92,_0x356ae5,_0x562c1f){const _0x38a2fe=_0x76d160;super(),this['_univerInstanceService']=_0x26db67,this[_0x38a2fe(0x2fa)]=_0x36ae92,this[_0x38a2fe(0x317)]=_0x356ae5,this[_0x38a2fe(0x24f)]=_0x562c1f,x(this,_0x38a2fe(0x427),!0x1),x(this,_0x38a2fe(0x454),new Map()),x(this,_0x38a2fe(0x42f),new Map()),x(this,_0x38a2fe(0x42e),new Map()),this[_0x38a2fe(0x419)]();}[_0x76d160(0x35c)](){const _0xde7d8f=_0x76d160;this['_isDisposed']=!0x0,this['_adapterDisposables'][_0xde7d8f(0x39c)](_0x359476=>_0x359476['dispose']()),this[_0xde7d8f(0x42e)]['clear'](),this[_0xde7d8f(0x454)][_0xde7d8f(0x39c)](_0x59981a=>_0x59981a[_0xde7d8f(0x35c)]()),this[_0xde7d8f(0x454)][_0xde7d8f(0x3da)](),this[_0xde7d8f(0x42f)][_0xde7d8f(0x3da)](),super['dispose']();}[_0x76d160(0x419)](){const _0x1ae070=_0x76d160;this[_0x1ae070(0x24f)][_0x1ae070(0x43e)][_0x1ae070(0x4c8)]((0x0,r[_0x1ae070(0x1d9)])(this[_0x1ae070(0x1dd)]))[_0x1ae070(0x2b8)](_0x46ed61=>this['_syncAdapters'](_0x46ed61));}[_0x76d160(0x356)](_0x20c212){const _0x5af466=_0x76d160;let _0x5d1064=new Set(_0x20c212[_0x5af466(0x1b5)](_0x234e62=>_0x234e62[_0x5af466(0x2f8)]));this[_0x5af466(0x42e)][_0x5af466(0x39c)]((_0x3cbe98,_0x14bc1d)=>{const _0x483c9f=_0x5af466;_0x5d1064['has'](_0x14bc1d)||(_0x3cbe98['dispose'](),this[_0x483c9f(0x42e)][_0x483c9f(0x371)](_0x14bc1d),this[_0x483c9f(0x47a)](_0x14bc1d));}),_0x20c212['forEach'](_0x6c2f5e=>{const _0x1f8483=_0x5af466;this['_adapterDisposables']['has'](_0x6c2f5e[_0x1f8483(0x2f8)])||this[_0x1f8483(0x1d4)](_0x6c2f5e);});}[_0x76d160(0x1d4)](_0x3689e1){const _0x3d730e=_0x76d160;let _0x54c08b=new t[(_0x3d730e(0x1f3))]();this['_adapterDisposables']['set'](_0x3689e1[_0x3d730e(0x2f8)],_0x54c08b),_0x54c08b[_0x3d730e(0x2ce)](_0x3689e1[_0x3d730e(0x20c)]()),this['_univerInstanceService'][_0x3d730e(0x473)](_0x3689e1[_0x3d730e(0x2f8)])[_0x3d730e(0x39c)](_0x4e7576=>this[_0x3d730e(0x3fb)](_0x4e7576[_0x3d730e(0x4c4)](),_0x3689e1)[_0x3d730e(0x2cc)](()=>void 0x0));let _0x1f3266=this[_0x3d730e(0x24b)]['getTypeOfUnitAdded$'](_0x3689e1[_0x3d730e(0x2f8)])[_0x3d730e(0x2b8)](({unit:_0x4a7fb0})=>this['_startEntity'](_0x4a7fb0[_0x3d730e(0x4c4)](),_0x3689e1)['catch'](()=>void 0x0));_0x54c08b[_0x3d730e(0x2ce)]((0x0,t[_0x3d730e(0x4bf)])(()=>_0x1f3266[_0x3d730e(0x2c8)]()));let _0x20f56d=this['_univerInstanceService'][_0x3d730e(0x34f)](_0x3689e1[_0x3d730e(0x2f8)])[_0x3d730e(0x2b8)](_0x177e24=>this[_0x3d730e(0x47d)](_0x177e24[_0x3d730e(0x4c4)]()));_0x54c08b['add']((0x0,t[_0x3d730e(0x4bf)])(()=>_0x20f56d[_0x3d730e(0x2c8)]()));}async[_0x76d160(0x3fb)](_0x4f5dd2,_0x1a3e2b){const _0xd7ab91=_0x76d160;if(this[_0xd7ab91(0x454)][_0xd7ab91(0x1f1)](_0x4f5dd2)||this[_0xd7ab91(0x42f)][_0xd7ab91(0x1f1)](_0x4f5dd2))return;let _0x584685={};this['_pendingEntities']['set'](_0x4f5dd2,_0x584685);let _0x51b175=await this['_collabSessionService'][_0xd7ab91(0x4a2)](_0x4f5dd2)[_0xd7ab91(0x2cc)](_0x38e6fc=>{const _0x1c094a=_0xd7ab91;throw this[_0x1c094a(0x42f)][_0x1c094a(0x4ad)](_0x4f5dd2)===_0x584685&&this['_pendingEntities'][_0x1c094a(0x371)](_0x4f5dd2),_0x38e6fc;});if(this['_isDisposed']||this[_0xd7ab91(0x42f)][_0xd7ab91(0x4ad)](_0x4f5dd2)!==_0x584685||this[_0xd7ab91(0x24f)][_0xd7ab91(0x4ad)](_0x1a3e2b[_0xd7ab91(0x2f8)])!==_0x1a3e2b){this['_pendingEntities'][_0xd7ab91(0x4ad)](_0x4f5dd2)===_0x584685&&this[_0xd7ab91(0x42f)][_0xd7ab91(0x371)](_0x4f5dd2);return;}let _0x415777=this['_injector']['createInstance'](L,_0x4f5dd2,_0x51b175,_0x1a3e2b);_0x415777[_0xd7ab91(0x230)](),this[_0xd7ab91(0x42f)][_0xd7ab91(0x371)](_0x4f5dd2),this['_entities']['set'](_0x4f5dd2,_0x415777);}['_disposeEntity'](_0x17d522){const _0x557406=_0x76d160;this['_pendingEntities']['delete'](_0x17d522);let _0x266553=this[_0x557406(0x454)][_0x557406(0x4ad)](_0x17d522);_0x266553&&(_0x266553[_0x557406(0x35c)](),this['_entities'][_0x557406(0x371)](_0x17d522));}[_0x76d160(0x47a)](_0x2c3855){const _0x2dffc8=_0x76d160;this[_0x2dffc8(0x24b)][_0x2dffc8(0x473)](_0x2c3855)[_0x2dffc8(0x39c)](_0x3e0906=>this[_0x2dffc8(0x42f)][_0x2dffc8(0x371)](_0x3e0906[_0x2dffc8(0x4c4)]())),Array['from'](this['_entities'][_0x2dffc8(0x41f)]())[_0x2dffc8(0x39c)](([_0x4e60a0,_0x2730e7])=>{const _0x42d1b2=_0x2dffc8;_0x2730e7[_0x42d1b2(0x2f8)]===_0x2c3855&&this['_disposeEntity'](_0x4e60a0);});}};R=C([S(0x0,t['IUniverInstanceService']),S(0x1,(0x0,t[_0x76d160(0x36b)])(t[_0x76d160(0x345)])),S(0x2,(0x0,t['Inject'])(e[_0x76d160(0x247)])),S(0x3,(0x0,t[_0x76d160(0x36b)])(n[_0x76d160(0x3a4)]))],R);let z=class extends t[_0x76d160(0x2e7)]{constructor(_0x1e1353,_0x1b643b,_0x3cf5af,_0x965d0,_0x2823dc,_0xbbfa9f){const _0x3fa1f2=_0x76d160;super(),this['_beforeCloseService']=_0x1e1353,this[_0x3fa1f2(0x4c3)]=_0x1b643b,this['_collaborationUIEventService']=_0x3cf5af,this[_0x3fa1f2(0x41a)]=_0x965d0,this['_notificationService']=_0x2823dc,this['_localeService']=_0xbbfa9f,this[_0x3fa1f2(0x413)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x656e51=_0x76d160;this[_0x656e51(0x2d1)](this[_0x656e51(0x2aa)][_0x656e51(0x27f)](()=>{const _0x2e7109=_0x656e51;if(this[_0x2e7109(0x4c3)][_0x2e7109(0x1da)]['size'])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x76d160(0x487)](){const _0x3a6412=_0x76d160;this['disposeWithMe'](this['_collaborationUIEventService']['event$'][_0x3a6412(0x2b8)](_0x152e2e=>{const _0x1742cd=_0x3a6412;_0x152e2e['id']===e['CollaborationUIEventId'][_0x1742cd(0x2f6)]&&this[_0x1742cd(0x41a)][_0x1742cd(0x23b)]({'type':a[_0x1742cd(0x1cb)][_0x1742cd(0x3f3)],'content':this[_0x1742cd(0x1d2)]['t'](_0x1742cd(0x393))}),_0x152e2e['id']===e[_0x1742cd(0x1ea)][_0x1742cd(0x3e9)]&&this[_0x1742cd(0x41a)][_0x1742cd(0x23b)]({'type':a[_0x1742cd(0x1cb)][_0x1742cd(0x3f3)],'content':this['_localeService']['t'](_0x1742cd(0x295))}),_0x152e2e['id']===e[_0x1742cd(0x1ea)][_0x1742cd(0x1e9)]&&this[_0x1742cd(0x25c)][_0x1742cd(0x23b)]({'title':this[_0x1742cd(0x1d2)]['t'](_0x1742cd(0x3d8)),'content':this[_0x1742cd(0x1d2)]['t']('collaboration-client-ui.permission.content'),'type':_0x1742cd(0x350),'duration':0x0}),_0x152e2e['id']===e[_0x1742cd(0x1ea)][_0x1742cd(0x49a)]&&this[_0x1742cd(0x25c)][_0x1742cd(0x23b)]({'title':this[_0x1742cd(0x1d2)]['t'](_0x1742cd(0x2c4)),'content':this[_0x1742cd(0x1d2)]['t']('collaboration-client-ui.conflict.content'),'type':_0x1742cd(0x350),'duration':0x0}),_0x152e2e['id']===e['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x1742cd(0x41a)][_0x1742cd(0x23b)]({'type':a['MessageType']['Warning'],'content':this[_0x1742cd(0x1d2)]['t'](_0x152e2e[_0x1742cd(0x2a9)]||'')}),_0x152e2e['id']===e[_0x1742cd(0x1ea)]['SOCKET_FAILED_RETRY']&&this[_0x1742cd(0x41a)][_0x1742cd(0x23b)]({'type':a[_0x1742cd(0x1cb)]['Warning'],'content':this[_0x1742cd(0x1d2)]['t'](_0x1742cd(0x1b6))}),_0x152e2e['id']===e[_0x1742cd(0x1ea)]['SOCKET_FAILED']&&this[_0x1742cd(0x41a)][_0x1742cd(0x23b)]({'type':a[_0x1742cd(0x1cb)][_0x1742cd(0x218)],'content':this[_0x1742cd(0x1d2)]['t']('collaboration-client-ui.session.connection-failed')}),_0x152e2e['id']===e[_0x1742cd(0x1ea)][_0x1742cd(0x3b8)]&&this[_0x1742cd(0x41a)][_0x1742cd(0x23b)]({'type':a[_0x1742cd(0x1cb)][_0x1742cd(0x218)],'content':this[_0x1742cd(0x1d2)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};z=C([S(0x0,n[_0x76d160(0x3aa)]),S(0x1,e[_0x76d160(0x30f)]),S(0x2,(0x0,t[_0x76d160(0x36b)])(e[_0x76d160(0x3c3)])),S(0x3,n[_0x76d160(0x4bc)]),S(0x4,n[_0x76d160(0x42b)]),S(0x5,(0x0,t['Inject'])(t['LocaleService']))],z);const B=(0x0,t[_0x76d160(0x2a4)])(_0x76d160(0x332));let V=class extends t[_0x76d160(0x2ad)]{constructor(_0x3086d8,_0x3fe70b,_0x2161b6,_0x2c2b43){const _0x1d7526=_0x76d160;super(),this[_0x1d7526(0x428)]=_0x3086d8,this[_0x1d7526(0x1e3)]=_0x3fe70b,this[_0x1d7526(0x293)]=_0x2161b6,this[_0x1d7526(0x328)]=_0x2c2b43,this[_0x1d7526(0x419)]()[_0x1d7526(0x2cc)](_0x2d24b5=>this[_0x1d7526(0x1e3)][_0x1d7526(0x350)](_0x1d7526(0x4a6),_0x2d24b5));}async[_0x76d160(0x419)](){const _0x320376=_0x76d160;let _0x220a60=this['_urlService'][_0x320376(0x474)]('unit'),_0x2aca56=this[_0x320376(0x428)][_0x320376(0x474)](_0x320376(0x3b6)),_0x18d817=this[_0x320376(0x428)][_0x320376(0x474)](_0x320376(0x3ac));if(!_0x220a60||!_0x2aca56){this['_logService'][_0x320376(0x28e)](_0x320376(0x4a6),_0x320376(0x4b1));return;}let _0x16c8f1=await this[_0x320376(0x328)][_0x320376(0x3df)](_0x220a60,Number(_0x2aca56),_0x18d817);this['_disposed']||_0x16c8f1&&_0x16c8f1 instanceof t[_0x320376(0x3e4)]&&await this[_0x320376(0x2e3)](_0x16c8f1);}async[_0x76d160(0x2e3)](_0x36e2be){const _0x179d8b=_0x76d160;await this[_0x179d8b(0x1bc)](_0x36e2be),!this[_0x179d8b(0x3d6)]&&(_0x36e2be[_0x179d8b(0x463)][_0x179d8b(0x4c8)]((0x0,r[_0x179d8b(0x1d9)])(this[_0x179d8b(0x1dd)]))[_0x179d8b(0x2b8)](_0x4e8cad=>{_0x4e8cad&&this['_updateURLWithCurrentState'](_0x4e8cad);}),this[_0x179d8b(0x428)]['urlChange$'][_0x179d8b(0x4c8)]((0x0,r[_0x179d8b(0x1d9)])(this['dispose$']))[_0x179d8b(0x2b8)](()=>{const _0x249253=_0x179d8b;this['_updateSubUnitFromURLParams'](_0x36e2be)[_0x249253(0x2cc)](_0x2b845a=>this[_0x249253(0x1e3)][_0x249253(0x350)]('[CollaborationDataLoaderController]',_0x2b845a));}));}['_updateURLWithCurrentState'](_0x4659b1,_0x1c70b1=!0x1){const _0x20fa1a=_0x76d160;let _0x4201bc=this[_0x20fa1a(0x428)][_0x20fa1a(0x474)](_0x20fa1a(0x3ac));_0x4659b1[_0x20fa1a(0x381)]()!==_0x4201bc&&this['_urlService']['setParam'](_0x20fa1a(0x3ac),_0x4659b1[_0x20fa1a(0x381)](),_0x1c70b1);}async[_0x76d160(0x1bc)](_0x1f70f5){const _0x152be9=_0x76d160;var _0x21b1cd;let _0x447151=this[_0x152be9(0x428)][_0x152be9(0x474)]('subunit');if(!_0x447151||!_0x1f70f5[_0x152be9(0x22b)](_0x447151)){let _0x1d87c6=_0x1f70f5[_0x152be9(0x296)]()[0x0],_0x56fe79=_0x1f70f5[_0x152be9(0x22b)](_0x1d87c6);if(!_0x56fe79||(this[_0x152be9(0x423)](_0x56fe79,!0x0),this[_0x152be9(0x3d6)]))return;await this[_0x152be9(0x293)][_0x152be9(0x2c9)](g[_0x152be9(0x222)]['id'],{'unitId':_0x1f70f5[_0x152be9(0x4c4)](),'subUnitId':_0x1d87c6});return;}((_0x21b1cd=_0x1f70f5['getActiveSheet']())==null?void 0x0:_0x21b1cd[_0x152be9(0x381)]())!==_0x447151&&await this[_0x152be9(0x293)][_0x152be9(0x2c9)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x1f70f5[_0x152be9(0x4c4)](),'subUnitId':_0x447151});}};V=C([S(0x0,B),S(0x1,t[_0x76d160(0x44a)]),S(0x2,t['ICommandService']),S(0x3,(0x0,t['Inject'])(e[_0x76d160(0x4b0)]))],V);let H=class{constructor(_0x5ae4e4,_0x1f6def){const _0x1acc15=_0x76d160;this[_0x1acc15(0x22f)]=_0x5ae4e4,this[_0x1acc15(0x1f5)]=_0x1f6def;}['transformIMECache'](_0x3a414f){const _0x485a4c=_0x76d160;this[_0x485a4c(0x3e1)](_0x3a414f),this['_transformPreviousActiveRange'](_0x3a414f);}['transformRemoteChangeset'](_0x3dfcdd){const _0x45e247=_0x76d160;let {unitID:_0x185681}=_0x3dfcdd,{redoCache:_0x578485}=this[_0x45e247(0x1f5)][_0x45e247(0x44b)](_0x185681)[_0x45e247(0x3eb)](f[_0x45e247(0x3fc)])[_0x45e247(0x46d)]();if(_0x578485['length']===0x0)return _0x3dfcdd;let _0x3bb0cd=t['Tools'][_0x45e247(0x437)](_0x3dfcdd[_0x45e247(0x270)][0x0]);for(let _0x59c7ca=0x0;_0x59c7ca<_0x578485['length'];_0x59c7ca++){let _0x358c5e={'id':_0x45e247(0x45f),'params':{..._0x578485[_0x59c7ca]}},_0x4c4b60=this['_transformService'][_0x45e247(0x3ee)](_0x3bb0cd,_0x358c5e,!0x1);if((0x0,l[_0x45e247(0x33d)])(_0x4c4b60))throw _0x4c4b60[_0x45e247(0x350)];_0x3bb0cd=_0x4c4b60[_0x45e247(0x3fa)];}return{...t[_0x45e247(0x325)][_0x45e247(0x437)](_0x3dfcdd),'mutations':[_0x3bb0cd]};}['_transformUndoRedoStack'](_0x412c5c){const _0x3519d3=_0x76d160;let {unitID:_0x341a70}=_0x412c5c,_0x4f663f=this[_0x3519d3(0x1f5)][_0x3519d3(0x44b)](_0x341a70)[_0x3519d3(0x3eb)](f[_0x3519d3(0x3fc)]),{undoCache:_0xc62497,redoCache:_0x4005d0}=_0x4f663f[_0x3519d3(0x46d)]();if(_0xc62497[_0x3519d3(0x1c4)]===0x0||_0x4005d0['length']===0x0)return;let _0x1a2039=[],_0x260f29=[],_0x4b5e14=t[_0x3519d3(0x325)][_0x3519d3(0x437)](_0x412c5c[_0x3519d3(0x270)][0x0]),_0x2b0964=t[_0x3519d3(0x325)]['deepClone'](_0x412c5c[_0x3519d3(0x270)][0x0]);for(let _0x262c3d=_0xc62497[_0x3519d3(0x1c4)]-0x1;_0x262c3d>=0x0;_0x262c3d--){let _0x288689={'id':_0x3519d3(0x45f),'params':{..._0xc62497[_0x262c3d]}},_0x40191f={'id':_0x3519d3(0x45f),'params':{..._0x4005d0[_0x262c3d]}},_0x5f0b6c=this[_0x3519d3(0x22f)][_0x3519d3(0x3ee)](_0x4b5e14,_0x288689,!0x1),_0x181a93=this['_transformService']['transformMutation'](_0x2b0964,_0x40191f,!0x1);if((0x0,l[_0x3519d3(0x33d)])(_0x5f0b6c))throw _0x5f0b6c[_0x3519d3(0x350)];if((0x0,l[_0x3519d3(0x33d)])(_0x181a93))throw _0x181a93['error'];_0x1a2039[_0x3519d3(0x269)](_0x5f0b6c[_0x3519d3(0x302)][_0x3519d3(0x25b)]),_0x260f29[_0x3519d3(0x269)](_0x181a93[_0x3519d3(0x302)][_0x3519d3(0x25b)]),_0x4b5e14=_0x5f0b6c[_0x3519d3(0x3fa)],_0x2b0964=_0x181a93[_0x3519d3(0x3fa)];}_0x4f663f[_0x3519d3(0x493)]({'undoCache':_0x1a2039,'redoCache':_0x260f29});}[_0x76d160(0x29f)](_0x54ae6d){const _0x9969ee=_0x76d160;let {unitID:_0xc79dbe}=_0x54ae6d,_0x415ca0=this['_renderManagerService'][_0x9969ee(0x44b)](_0xc79dbe)[_0x9969ee(0x3eb)](f[_0x9969ee(0x3fc)]),_0x22f54a=_0x415ca0['getActiveRange']();if(_0x22f54a==null)return;let _0x364922=[{'id':_0x9969ee(0x45f),'params':{'unitId':_0x54ae6d['unitID'],'actions':null,'textRanges':[_0x22f54a]}}],_0x16021a=this[_0x9969ee(0x22f)][_0x9969ee(0x382)](_0x54ae6d,_0x364922);if(!(0x0,l[_0x9969ee(0x336)])(_0x16021a))throw _0x16021a['error'];let _0x58dc01=_0x16021a[_0x9969ee(0x302)][0x0][_0x9969ee(0x25b)][_0x9969ee(0x44d)];Array['isArray'](_0x58dc01)&&_0x58dc01[_0x9969ee(0x1c4)]&&_0x415ca0['setActiveRange'](_0x58dc01[0x0]);}};H=C([S(0x0,l[_0x76d160(0x2e6)]),S(0x1,p['IRenderManagerService'])],H);let U=class{constructor(_0x187070,_0x321bdd,_0x4b0af2){const _0x352ff6=_0x76d160;this[_0x352ff6(0x2fa)]=_0x187070,this[_0x352ff6(0x22f)]=_0x321bdd,this[_0x352ff6(0x265)]=_0x4b0af2;}[_0x76d160(0x35f)](_0x1798de){const _0x29a085=_0x76d160;this[_0x29a085(0x210)](_0x1798de);}[_0x76d160(0x327)](_0x56e0cc){const _0x25c0c2=_0x76d160;let {unitID:_0x2efa35}=_0x56e0cc,{collaboration:_0x2f8c6d}=this[_0x25c0c2(0x265)][_0x25c0c2(0x300)](_0x2efa35);if(_0x2f8c6d[_0x25c0c2(0x1c4)]===0x0)return _0x56e0cc;let _0x1afca3=t[_0x25c0c2(0x325)][_0x25c0c2(0x437)](_0x56e0cc['mutations'][0x0]);for(let _0x5bf2a0=0x0;_0x5bf2a0<_0x2f8c6d[_0x25c0c2(0x1c4)];_0x5bf2a0++){let _0x39659c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f8c6d[_0x5bf2a0]['unitId'],..._0x2f8c6d[_0x5bf2a0][_0x25c0c2(0x34b)]}},_0x5c90d7=this[_0x25c0c2(0x22f)]['transformMutation'](_0x1afca3,_0x39659c,!0x1);if((0x0,l[_0x25c0c2(0x33d)])(_0x5c90d7))throw _0x5c90d7['error'];_0x1afca3=_0x5c90d7['m1Prime'];}return{...t[_0x25c0c2(0x325)][_0x25c0c2(0x437)](_0x56e0cc),'mutations':[_0x1afca3]};}[_0x76d160(0x210)](_0x7b413d){const _0x523d31=_0x76d160;let {unitID:_0x2c5d76}=_0x7b413d,{history:_0x4ebbfb,collaboration:_0xa4a4af}=this[_0x523d31(0x265)]['getStateCache'](_0x2c5d76);if(_0x4ebbfb[_0x523d31(0x1c4)]===0x0&&_0xa4a4af[_0x523d31(0x1c4)]===0x0)return;let _0x501266=[],_0x5974ac=[],_0x4c6813=t[_0x523d31(0x325)][_0x523d31(0x437)](_0x7b413d[_0x523d31(0x270)][0x0]),_0x345ab8=t[_0x523d31(0x325)][_0x523d31(0x437)](_0x7b413d[_0x523d31(0x270)][0x0]);for(let _0x36cbb2=_0x4ebbfb['length']-0x1;_0x36cbb2>=0x0;_0x36cbb2--){let _0x59e263={'id':_0x523d31(0x45f),'params':{'unitId':_0x4ebbfb[_0x36cbb2][_0x523d31(0x2e4)],..._0x4ebbfb[_0x36cbb2][_0x523d31(0x261)]}},_0x9dad37={'id':_0x523d31(0x45f),'params':{'unitId':_0x4ebbfb[_0x36cbb2][_0x523d31(0x2e4)],..._0x4ebbfb[_0x36cbb2][_0x523d31(0x34b)]}},_0x2c7cd9=this['_transformService'][_0x523d31(0x3ee)](_0x4c6813,_0x59e263,!0x1),_0x189c4f=this[_0x523d31(0x22f)][_0x523d31(0x3ee)](_0x345ab8,_0x9dad37,!0x1);if((0x0,l[_0x523d31(0x33d)])(_0x2c7cd9))throw _0x2c7cd9[_0x523d31(0x350)];if((0x0,l[_0x523d31(0x33d)])(_0x189c4f))throw _0x189c4f[_0x523d31(0x350)];_0x501266['unshift']({..._0x4ebbfb[_0x36cbb2],'undoState':_0x2c7cd9[_0x523d31(0x302)][_0x523d31(0x25b)],'redoState':_0x189c4f[_0x523d31(0x302)][_0x523d31(0x25b)]}),_0x4c6813=_0x2c7cd9[_0x523d31(0x3fa)],_0x345ab8=_0x189c4f[_0x523d31(0x3fa)];}_0x4c6813=t['Tools'][_0x523d31(0x437)](_0x7b413d[_0x523d31(0x270)][0x0]),_0x345ab8=t[_0x523d31(0x325)][_0x523d31(0x437)](_0x7b413d[_0x523d31(0x270)][0x0]);for(let _0x437e06=_0xa4a4af[_0x523d31(0x1c4)]-0x1;_0x437e06>=0x0;_0x437e06--){let _0x5b16a9={'id':_0x523d31(0x45f),'params':{'unitId':_0xa4a4af[_0x437e06][_0x523d31(0x2e4)],..._0xa4a4af[_0x437e06][_0x523d31(0x261)]}},_0x371435={'id':_0x523d31(0x45f),'params':{'unitId':_0xa4a4af[_0x437e06][_0x523d31(0x2e4)],..._0xa4a4af[_0x437e06]['redoState']}},_0x1ae991=this['_transformService'][_0x523d31(0x3ee)](_0x4c6813,_0x5b16a9,!0x1),_0x36fdbd=this[_0x523d31(0x22f)][_0x523d31(0x3ee)](_0x345ab8,_0x371435,!0x1);if((0x0,l[_0x523d31(0x33d)])(_0x1ae991))throw _0x1ae991[_0x523d31(0x350)];if((0x0,l[_0x523d31(0x33d)])(_0x36fdbd))throw _0x36fdbd['error'];_0x5974ac[_0x523d31(0x269)]({..._0xa4a4af[_0x437e06],'undoState':_0x1ae991[_0x523d31(0x302)][_0x523d31(0x25b)],'redoState':_0x36fdbd[_0x523d31(0x302)][_0x523d31(0x25b)]}),_0x4c6813=_0x1ae991[_0x523d31(0x3fa)],_0x345ab8=_0x36fdbd[_0x523d31(0x3fa)];}this[_0x523d31(0x265)][_0x523d31(0x1d8)](_0x2c5d76,{'history':_0x501266,'collaboration':_0x5974ac});}};U=C([S(0x0,(0x0,t['Inject'])(t[_0x76d160(0x345)])),S(0x1,l['ITransformService']),S(0x2,(0x0,t[_0x76d160(0x36b)])(d[_0x76d160(0x3a1)]))],U);let W=class{constructor(_0x3c4873,_0x1cac15){const _0x2f3fbf=_0x76d160;this['_docSelectionManagerService']=_0x3c4873,this[_0x2f3fbf(0x22f)]=_0x1cac15;}['prepareTransformSelections'](_0x1f1a79){const _0x7e0665=_0x76d160;var _0x50924f;let _0x455293=this[_0x7e0665(0x273)][_0x7e0665(0x415)]()??[],_0x31cbad=this[_0x7e0665(0x273)][_0x7e0665(0x408)]();if(_0x455293[_0x7e0665(0x1c4)]===0x0||_0x31cbad==null)return null;let _0x2ee995=_0x1f1a79[_0x7e0665(0x456)],_0x32827b=[{'id':_0x7e0665(0x45f),'params':{'unitId':_0x2ee995,'actions':null,'textRanges':_0x455293}}],_0x4c27a1=this['_transformService']['transformMutationsWithChangeset'](_0x1f1a79,_0x32827b);if(!(0x0,l[_0x7e0665(0x336)])(_0x4c27a1))throw _0x4c27a1[_0x7e0665(0x350)];let _0x2475af=(_0x50924f=_0x4c27a1[_0x7e0665(0x302)][0x0])==null?void 0x0:_0x50924f[_0x7e0665(0x25b)],_0x1a924e=_0x2475af&&typeof _0x2475af==_0x7e0665(0x3ce)&&_0x7e0665(0x44d)in _0x2475af?_0x2475af[_0x7e0665(0x44d)]:null;if(!we(_0x1a924e))return null;let _0x11a3b7=Se(_0x1f1a79['mutations'][_0x7e0665(0x48f)](_0x2e93aa=>G(_0x2e93aa[_0x7e0665(0x25b)]))?_0x1a924e['filter'](_0x3a6710=>!(_0x7e0665(0x47c)in _0x3a6710)):_0x1a924e,{..._0x31cbad,'options':_0x31cbad[_0x7e0665(0x3b3)]?{..._0x31cbad[_0x7e0665(0x3b3)],'wholeDocument':!0x1}:void 0x0}),_0x200416={'unitId':_0x2ee995,'subUnitId':_0x2ee995};this[_0x7e0665(0x273)][_0x7e0665(0x25f)](_0x11a3b7,_0x200416);let _0x23d7f5=!0x0;return{'commit':()=>{_0x23d7f5=!0x1;},'rollback':()=>{const _0x2ea769=_0x7e0665;_0x23d7f5&&(_0x23d7f5=!0x1,this[_0x2ea769(0x273)][_0x2ea769(0x25f)](_0x31cbad,_0x200416));}};}};W=C([S(0x0,(0x0,t['Inject'])(d[_0x76d160(0x267)])),S(0x1,l['ITransformService'])],W);function Se(_0xfee4a5,_0x51a90f){const _0x2af6b9=_0x76d160;let _0x445fe7=[],_0x42aed2=[];for(let _0x249277 of _0xfee4a5)Ce(_0x249277)?_0x42aed2[_0x2af6b9(0x281)](_0x249277):_0x445fe7[_0x2af6b9(0x281)](_0x249277);return{..._0x51a90f,'textRanges':_0x445fe7,'rectRanges':_0x42aed2};}function Ce(_0x264c94){return'tableId'in _0x264c94;}function we(_0x131ac0){const _0xa6e451=_0x76d160;return Array['isArray'](_0x131ac0)&&_0x131ac0[_0xa6e451(0x1d0)](_0x34ac34=>typeof _0x34ac34==_0xa6e451(0x3ce)&&!!_0x34ac34&&'startOffset'in _0x34ac34&&'endOffset'in _0x34ac34);}function G(_0x4e4aaa){const _0x2dab1b=_0x76d160;return _0x4e4aaa==='tableSource'?!0x0:Array[_0x2dab1b(0x1d1)](_0x4e4aaa)?_0x4e4aaa[_0x2dab1b(0x48f)](_0x2083d0=>G(_0x2083d0)):!_0x4e4aaa||typeof _0x4e4aaa!=_0x2dab1b(0x3ce)?!0x1:Object[_0x2dab1b(0x489)](_0x4e4aaa)[_0x2dab1b(0x48f)](_0x5016b1=>G(_0x5016b1));}let K=class extends t[_0x76d160(0x2e7)]{constructor(_0x1d2307,_0x305c20,_0x5e6387,_0x56eb33,_0x48336e,_0x123e85,_0x5bd373){const _0x2ee2d5=_0x76d160;super(),this['_collaborationController']=_0x1d2307,this[_0x2ee2d5(0x3a8)]=_0x305c20,this[_0x2ee2d5(0x390)]=_0x5e6387,this['_docTransformSelectionsService']=_0x56eb33,this[_0x2ee2d5(0x4bb)]=_0x48336e,this['_messageService']=_0x123e85,this[_0x2ee2d5(0x1d2)]=_0x5bd373,x(this,_0x2ee2d5(0x237),new r['BehaviorSubject'](e[_0x2ee2d5(0x3bd)][_0x2ee2d5(0x2bd)])),this['_initEntityListener']();}[_0x76d160(0x2ee)](){const _0x19d7ba=_0x76d160;this[_0x19d7ba(0x2d1)](this[_0x19d7ba(0x448)][_0x19d7ba(0x4a3)][_0x19d7ba(0x2b8)](_0x3e4764=>{const _0x148af1=_0x19d7ba;_0x3e4764 instanceof e[_0x148af1(0x4c2)]&&_0x3e4764[_0x148af1(0x29d)]({'onTransformIME':_0x2925cc=>this[_0x148af1(0x3a8)][_0x148af1(0x1fb)](_0x2925cc),'onTransformState':_0x2ca29c=>this[_0x148af1(0x390)]['transformStateCache'](_0x2ca29c),'onPrepareTransformSelections':_0x35c662=>this[_0x148af1(0x32e)][_0x148af1(0x1be)](_0x35c662),'onSyncEditingCollabCursor':_0x5cd54b=>this[_0x148af1(0x4bb)][_0x148af1(0x324)](_0x5cd54b),'onTransformRemoteChangesetByIMECache':_0xbce8b2=>this[_0x148af1(0x3a8)][_0x148af1(0x327)](_0xbce8b2),'onTransformRemoteChangesetByStateCache':_0xcccd3d=>this[_0x148af1(0x390)]['transformRemoteChangeset'](_0xcccd3d)});}));}};K=C([S(0x0,(0x0,t['Inject'])(e[_0x76d160(0x2f0)])),S(0x1,(0x0,t[_0x76d160(0x36b)])(H)),S(0x2,(0x0,t[_0x76d160(0x36b)])(U)),S(0x3,(0x0,t[_0x76d160(0x36b)])(W)),S(0x4,(0x0,t['Inject'])(k)),S(0x5,n[_0x76d160(0x4bc)]),S(0x6,(0x0,t[_0x76d160(0x36b)])(t[_0x76d160(0x40d)]))],K);let q=class extends t[_0x76d160(0x2e7)]{constructor(_0x180e4d,_0x5d73d2,_0x4301c7,_0x556536){const _0x5d0cbd=_0x76d160;super(),this[_0x5d0cbd(0x2fa)]=_0x180e4d,this[_0x5d0cbd(0x1c2)]=_0x5d73d2,this[_0x5d0cbd(0x1e3)]=_0x4301c7,this[_0x5d0cbd(0x287)]=_0x556536,x(this,_0x5d0cbd(0x380),void 0x0),this['_init']();}['_init'](){const _0x162ade=_0x76d160;this['_initWindowErrorListener'](),this[_0x162ade(0x32c)](),this[_0x162ade(0x395)](),this[_0x162ade(0x2d7)]();}[_0x76d160(0x2d7)](){const _0x585939=_0x76d160;this[_0x585939(0x2d1)](this[_0x585939(0x287)][_0x585939(0x438)]['subscribe'](_0x251b84=>{const _0x2f6a14=_0x585939;this[_0x2f6a14(0x380)]=_0x251b84==null?void 0x0:_0x251b84['memberID'];}));}[_0x76d160(0x3cb)](){const _0x2b37cb=_0x76d160;let _0x446171=_0x366544=>{const _0x594c3a=_0x5e85;var _0x283304;this[_0x594c3a(0x3f7)](_0x594c3a(0x350),_0x594c3a(0x37e)+_0x366544['message']+'\x20at\x20'+_0x366544[_0x594c3a(0x229)]+':'+_0x366544[_0x594c3a(0x33a)]+':'+_0x366544[_0x594c3a(0x449)]+'\x0a'+(((_0x283304=_0x366544[_0x594c3a(0x350)])==null?void 0x0:_0x283304[_0x594c3a(0x1f9)])||''));};window[_0x2b37cb(0x30b)]('error',_0x446171),this[_0x2b37cb(0x2d1)](()=>{const _0x5efaa2=_0x2b37cb;window[_0x5efaa2(0x305)](_0x5efaa2(0x350),_0x446171);});}[_0x76d160(0x32c)](){const _0x3d92d6=_0x76d160;let _0x44b203=_0x20bd80=>{const _0xb131c4=_0x5e85;this[_0xb131c4(0x3f7)]('error',_0xb131c4(0x279)+_0x20bd80[_0xb131c4(0x2b3)]);};window[_0x3d92d6(0x30b)]('unhandledrejection',_0x44b203),this['disposeWithMe'](()=>{const _0x32f328=_0x3d92d6;window[_0x32f328(0x305)]('unhandledrejection',_0x44b203);});}[_0x76d160(0x395)](){const _0x2c36dc=_0x76d160;let _0x57fbb8=this[_0x2c36dc(0x1e3)][_0x2c36dc(0x350)][_0x2c36dc(0x2de)](this[_0x2c36dc(0x1e3)]);this[_0x2c36dc(0x1e3)][_0x2c36dc(0x350)]=(..._0x4efd68)=>{const _0x446bbd=_0x2c36dc;let _0x3050a6=_0x4efd68[_0x446bbd(0x1b5)](_0x5f389b=>_0x5f389b instanceof Error?_0x5f389b[_0x446bbd(0x387)]+'\x0a'+_0x5f389b[_0x446bbd(0x1f9)]:String(_0x5f389b))[_0x446bbd(0x40c)]('\x20');this[_0x446bbd(0x3f7)](_0x446bbd(0x350),'[LogService\x20Error]:\x20'+_0x3050a6),_0x57fbb8(..._0x4efd68);},this[_0x2c36dc(0x2d1)](()=>{const _0x4e7b71=_0x2c36dc;this[_0x4e7b71(0x1e3)][_0x4e7b71(0x350)]=_0x57fbb8;});}[_0x76d160(0x3f7)](_0x46c0a7,_0x5ac085){const _0x2af7bf=_0x76d160;try{let _0x5bf7bf={'userId':this[_0x2af7bf(0x380)],'logLabel':_0x46c0a7,'content':_0x5ac085};this['_httpService'][_0x2af7bf(0x4be)](_0x2af7bf(0x3d7),{'body':_0x5bf7bf})[_0x2af7bf(0x2cc)](()=>{});}catch{}}};q=C([S(0x0,(0x0,t['Inject'])(t[_0x76d160(0x345)])),S(0x1,(0x0,t['Inject'])(m[_0x76d160(0x1e0)])),S(0x2,t[_0x76d160(0x44a)]),S(0x3,(0x0,t[_0x76d160(0x36b)])(e[_0x76d160(0x247)]))],q);function Te({state$:_0x16046f}){const _0x57b4df=_0x76d160;let _0x38e1c6=(0x0,n[_0x57b4df(0x333)])(_0x16046f,null,!0x0);return _0x38e1c6?(0x0,c[_0x57b4df(0x1d6)])(_0x57b4df(0x3d1),{'data-u-comp':_0x57b4df(0x35d),'role':_0x57b4df(0x236),'className':_0x57b4df(0x3cf),'children':[(0x0,c['jsx'])(o[_0x57b4df(0x278)],{'className':_0x57b4df(0x2a5)}),(0x0,c[_0x57b4df(0x1cc)])(_0x57b4df(0x470),{'children':_0x38e1c6[_0x57b4df(0x342)]}),(0x0,c[_0x57b4df(0x1cc)])(a[_0x57b4df(0x310)],{'size':_0x57b4df(0x1c7),'variant':'primary','onClick':()=>window['location'][_0x57b4df(0x39a)](),'children':_0x38e1c6[_0x57b4df(0x248)]})]}):null;}const Ee='snapshot-loading-';let J=class extends t[_0x76d160(0x2e7)]{constructor(_0x1f7b0b,_0x3510d0,_0x236c1d,_0x24c069,_0x5f317c,_0x1602e3){const _0x210e7d=_0x76d160;super(),this[_0x210e7d(0x1df)]=_0x1f7b0b,this[_0x210e7d(0x41a)]=_0x3510d0,this['_localeService']=_0x236c1d,this['_injector']=_0x24c069,this[_0x210e7d(0x428)]=_0x1602e3,x(this,_0x210e7d(0x2ed),new r[(_0x210e7d(0x4bd))](null)),x(this,_0x210e7d(0x1d3),new Set()),x(this,_0x210e7d(0x3d9),new Map()),x(this,_0x210e7d(0x499),new Map()),x(this,_0x210e7d(0x2bc),this[_0x210e7d(0x2ed)][_0x210e7d(0x3bb)]());let _0x1d7170=()=>(0x0,s[_0x210e7d(0x1c1)])(Te,{'state$':this[_0x210e7d(0x2bc)]});this[_0x210e7d(0x2d1)](_0x5f317c[_0x210e7d(0x3e7)](n['BuiltInUIPart']['GLOBAL'],()=>(0x0,n['connectInjector'])(_0x1d7170,this[_0x210e7d(0x2fa)]))),this[_0x210e7d(0x2d1)](this[_0x210e7d(0x1df)][_0x210e7d(0x392)][_0x210e7d(0x2b8)](_0x544cfc=>{const _0x3c3cac=_0x210e7d;this[_0x3c3cac(0x499)]=_0x544cfc,_0x544cfc['forEach'](_0x5d88b9=>this[_0x3c3cac(0x436)](_0x5d88b9));})),this[_0x210e7d(0x2d1)](this[_0x210e7d(0x428)]['urlChange$'][_0x210e7d(0x2b8)](()=>{const _0x16b665=_0x210e7d;this['_latestStates'][_0x16b665(0x39c)](_0x4ea6dd=>this[_0x16b665(0x436)](_0x4ea6dd));}));}[_0x76d160(0x35c)](){const _0x20cccb=_0x76d160;this['_messageIds'][_0x20cccb(0x39c)](_0x141b93=>this[_0x20cccb(0x41a)]['remove'](_0x141b93)),this[_0x20cccb(0x1d3)][_0x20cccb(0x3da)](),this['_blockProgressWatches'][_0x20cccb(0x39c)](({timeoutId:_0x53fde4})=>clearTimeout(_0x53fde4)),this[_0x20cccb(0x3d9)][_0x20cccb(0x3da)](),this[_0x20cccb(0x2ed)]['complete'](),super[_0x20cccb(0x35c)]();}['_updateMessage'](_0x4536d1){const _0xab3675=_0x76d160;let _0x5ee7cf=''+Ee+_0x4536d1[_0xab3675(0x2e4)];if(_0x4536d1[_0xab3675(0x223)]===l['SnapshotLoadStage'][_0xab3675(0x2b9)]){this[_0xab3675(0x491)](_0x4536d1[_0xab3675(0x2e4)]),this[_0xab3675(0x409)](_0x4536d1['unitId']),this['_messageService']['remove'](_0x5ee7cf),this[_0xab3675(0x1d3)][_0xab3675(0x371)](_0x5ee7cf);return;}if(!this[_0xab3675(0x30d)](_0x4536d1[_0xab3675(0x2e4)])){this[_0xab3675(0x491)](_0x4536d1[_0xab3675(0x2e4)]),this[_0xab3675(0x409)](_0x4536d1[_0xab3675(0x2e4)]),this[_0xab3675(0x41a)][_0xab3675(0x42a)](_0x5ee7cf),this[_0xab3675(0x1d3)][_0xab3675(0x371)](_0x5ee7cf);return;}if(_0x4536d1['stage']===l[_0xab3675(0x36e)][_0xab3675(0x216)]){this[_0xab3675(0x491)](_0x4536d1[_0xab3675(0x2e4)]),this[_0xab3675(0x409)](_0x4536d1[_0xab3675(0x2e4)]),this[_0xab3675(0x41a)][_0xab3675(0x23b)]({'id':_0x5ee7cf,'type':a[_0xab3675(0x1cb)][_0xab3675(0x218)],'content':this[_0xab3675(0x1d2)]['t'](_0xab3675(0x307))}),this[_0xab3675(0x1d3)][_0xab3675(0x371)](_0x5ee7cf);return;}if(_0x4536d1[_0xab3675(0x223)]!==l[_0xab3675(0x36e)][_0xab3675(0x311)]||_0x4536d1[_0xab3675(0x244)]<=0xa){this['_clearBlockProgressWatch'](_0x4536d1[_0xab3675(0x2e4)]),this[_0xab3675(0x41a)][_0xab3675(0x42a)](_0x5ee7cf),this[_0xab3675(0x1d3)]['delete'](_0x5ee7cf);return;}this[_0xab3675(0x235)](_0x4536d1)||(this[_0xab3675(0x41a)]['show']({'id':_0x5ee7cf,'type':a[_0xab3675(0x1cb)][_0xab3675(0x44c)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0xab3675(0x1dc))+'\x20'+_0x4536d1[_0xab3675(0x385)]+'/'+_0x4536d1[_0xab3675(0x244)]}),this[_0xab3675(0x1d3)][_0xab3675(0x2ce)](_0x5ee7cf));}[_0x76d160(0x235)](_0x478216){const _0xf64f02=_0x76d160;let _0x179148=this[_0xf64f02(0x3d9)][_0xf64f02(0x4ad)](_0x478216[_0xf64f02(0x2e4)]);if((_0x179148==null?void 0x0:_0x179148['loadedBlocks'])===_0x478216[_0xf64f02(0x385)])return _0x179148[_0xf64f02(0x318)];this[_0xf64f02(0x491)](_0x478216['unitId']);let _0xcd8e75=setTimeout(()=>{const _0x1a1e3f=_0xf64f02;let _0xf82004=this[_0x1a1e3f(0x3d9)][_0x1a1e3f(0x4ad)](_0x478216[_0x1a1e3f(0x2e4)]);if(!_0xf82004||_0xf82004[_0x1a1e3f(0x354)]!==_0xcd8e75)return;_0xf82004['timedOut']=!0x0;let _0x32cc92=''+Ee+_0x478216[_0x1a1e3f(0x2e4)];this[_0x1a1e3f(0x41a)][_0x1a1e3f(0x42a)](_0x32cc92),this[_0x1a1e3f(0x1d3)][_0x1a1e3f(0x371)](_0x32cc92),this[_0x1a1e3f(0x2ed)][_0x1a1e3f(0x220)]({'unitId':_0x478216['unitId'],'content':this[_0x1a1e3f(0x1d2)]['t'](_0x1a1e3f(0x209),String(_0x478216[_0x1a1e3f(0x385)]),String(_0x478216['totalBlocks'])),'refreshLabel':this[_0x1a1e3f(0x1d2)]['t'](_0x1a1e3f(0x344))});},0xea60);return this[_0xf64f02(0x3d9)]['set'](_0x478216[_0xf64f02(0x2e4)],{'loadedBlocks':_0x478216[_0xf64f02(0x385)],'timedOut':!0x1,'timeoutId':_0xcd8e75}),!0x1;}[_0x76d160(0x491)](_0x3331a0){const _0x1c334b=_0x76d160;let _0x1d2ce8=this['_blockProgressWatches'][_0x1c334b(0x4ad)](_0x3331a0);_0x1d2ce8&&(clearTimeout(_0x1d2ce8[_0x1c334b(0x354)]),this[_0x1c334b(0x3d9)]['delete'](_0x3331a0),this['_clearTimeoutState'](_0x3331a0));}[_0x76d160(0x409)](_0x110b3d){const _0x1ec2fa=_0x76d160;var _0x3211f5;((_0x3211f5=this[_0x1ec2fa(0x2ed)][_0x1ec2fa(0x1ce)])==null?void 0x0:_0x3211f5['unitId'])===_0x110b3d&&this['_timeoutState$'][_0x1ec2fa(0x220)](null);}[_0x76d160(0x30d)](_0xe66cd){const _0x4b11e4=_0x76d160;let _0x1637c7=this[_0x4b11e4(0x428)][_0x4b11e4(0x474)](_0x4b11e4(0x214));return!_0x1637c7||_0x1637c7===_0xe66cd;}};J=C([S(0x0,(0x0,t[_0x76d160(0x36b)])(l[_0x76d160(0x2cf)])),S(0x1,n[_0x76d160(0x4bc)]),S(0x2,(0x0,t[_0x76d160(0x36b)])(t[_0x76d160(0x40d)])),S(0x3,(0x0,t['Inject'])(t[_0x76d160(0x345)])),S(0x4,n[_0x76d160(0x329)]),S(0x5,B)],J);function De(_0x3fdc0f){const _0x2dcb98=_0x76d160;var _0x9657c6,_0x5571ca;let _0x48592e=(_0x9657c6=_0x3fdc0f[_0x2dcb98(0x280)])==null?void 0x0:_0x9657c6[_0x2dcb98(0x223)],_0x4f5279=((_0x5571ca=_0x3fdc0f[_0x2dcb98(0x280)])==null?void 0x0:_0x5571ca[_0x2dcb98(0x3d0)])||0x0;return _0x48592e===h['FormulaExecuteStageType'][_0x2dcb98(0x479)]&&_0x4f5279>0x0;}function Oe(_0x5a0388){const _0xef51bd=_0x76d160;return _0x5a0388['functionsExecutedState']===h['FormulaExecutedStateType'][_0xef51bd(0x39f)];}let Y=class extends t['Disposable']{constructor(_0x4e69fc,_0x5e8999,_0x24a356,_0xccbed2,_0x3edfa0,_0x579686,_0x253a4d){const _0x302dc9=_0x76d160;super(),this[_0x302dc9(0x41a)]=_0x4e69fc,this['_commandService']=_0x5e8999,this[_0x302dc9(0x288)]=_0x24a356,this[_0x302dc9(0x1c2)]=_0xccbed2,this['_univerInstanceService']=_0x3edfa0,this['_logService']=_0x579686,this[_0x302dc9(0x1d2)]=_0x253a4d,x(this,_0x302dc9(0x369),null),x(this,_0x302dc9(0x3b1),0x0),x(this,_0x302dc9(0x357),0x0),x(this,'_taskIds',[]),x(this,'_lastResponseTimestamp',0x0),this[_0x302dc9(0x266)]();}[_0x76d160(0x266)](){const _0x3becfe=_0x76d160;this[_0x3becfe(0x2d1)](this['_commandService']['beforeCommandExecuted']((_0x455776,_0x31b4d0)=>{const _0x2a4738=_0x3becfe;if(_0x455776['id']!==h[_0x2a4738(0x483)]['id'])return;let _0x1aeeff=_0x455776[_0x2a4738(0x25b)];if(this[_0x2a4738(0x40f)](_0x1aeeff[_0x2a4738(0x251)]??[])&&!this[_0x2a4738(0x391)]())throw this[_0x2a4738(0x360)](_0x455776,_0x31b4d0),this[_0x2a4738(0x2f2)](),new t[(_0x2a4738(0x37a))]();})),this['disposeWithMe'](this[_0x3becfe(0x293)][_0x3becfe(0x4a5)]((_0x3eebde,_0x5c32d8)=>{const _0x1a83b5=_0x3becfe;if(_0x3eebde['id']!==h['SetFormulaCalculationNotificationMutation']['id'])return;let _0x5d88e1=_0x3eebde[_0x1a83b5(0x25b)];if(De(_0x5d88e1)){let _0x3fa8ba=(0x0,t[_0x1a83b5(0x3c9)])();this['_taskIds'][_0x1a83b5(0x281)](_0x3fa8ba),this[_0x1a83b5(0x2c6)](_0x3fa8ba);}else{if(Oe(_0x5d88e1)&&this['_taskIds'][_0x1a83b5(0x1c4)]>0x0){let _0x180fb3=this[_0x1a83b5(0x2a2)][_0x1a83b5(0x30e)]();this['_releaseCalculationLimit'](_0x180fb3);}}}));}[_0x76d160(0x35c)](){const _0x317bfd=_0x76d160;super[_0x317bfd(0x35c)](),this['_clearPolling'](),this[_0x317bfd(0x2a2)]=[],this[_0x317bfd(0x357)]=0x0,this[_0x317bfd(0x3b1)]=0x0,this[_0x317bfd(0x373)]=0x0;}async[_0x76d160(0x360)](_0x35c795,_0x5f32e7){const _0x18207b=_0x76d160;for(let _0x321a5b=0x0;_0x321a5b<0x1e;_0x321a5b++)try{if(await this[_0x18207b(0x43a)](),this[_0x18207b(0x391)]()){this[_0x18207b(0x48a)](_0x35c795,_0x5f32e7),this['_messageService'][_0x18207b(0x23b)]({'content':this['_localeService']['t'](_0x18207b(0x2ca)),'type':a[_0x18207b(0x1cb)][_0x18207b(0x402)]});return;}await new Promise(_0x303040=>{const _0x59ad96=_0x18207b;this[_0x59ad96(0x369)]=window[_0x59ad96(0x3f0)](_0x303040,0x3e8);});}catch(_0x2754a1){this[_0x18207b(0x1e3)][_0x18207b(0x350)](_0x2754a1);}this['_messageService'][_0x18207b(0x23b)]({'content':this[_0x18207b(0x1d2)]['t']('collaboration-client-ui.formula.calculation.unable'),'type':a[_0x18207b(0x1cb)][_0x18207b(0x218)]});}[_0x76d160(0x48a)](_0x2dc200,_0x55330d){const _0x18e81d=_0x76d160;try{this[_0x18e81d(0x293)][_0x18e81d(0x2c9)](_0x2dc200['id'],_0x2dc200[_0x18e81d(0x25b)],_0x55330d);}catch(_0x41fa17){this[_0x18e81d(0x1e3)][_0x18e81d(0x350)](_0x41fa17);}}[_0x76d160(0x3e6)](_0xc0d73,_0x40f9e8){const _0xe2603f=_0x76d160;_0x40f9e8<this[_0xe2603f(0x373)]||(this['_lastResponseTimestamp']=_0x40f9e8,this[_0xe2603f(0x3b1)]=Number[_0xe2603f(0x4b5)](_0xc0d73[_0xe2603f(0x309)]),this[_0xe2603f(0x357)]=Number[_0xe2603f(0x4b5)](_0xc0d73[_0xe2603f(0x446)]));}async['_startCalculationLimit'](_0x11be6c){const _0x35f86f=_0x76d160;let _0x361eae=Date['now']();try{var _0x298190,_0x3d194d;let _0x3182ac=((_0x298190=this[_0x35f86f(0x288)][_0x35f86f(0x25d)](e[_0x35f86f(0x321)]))==null?void 0x0:_0x298190[_0x35f86f(0x429)])||'/universer-api/license/formula/limit/start',_0x148683=(await this[_0x35f86f(0x1c2)][_0x35f86f(0x4be)](_0x3182ac,{'body':JSON[_0x35f86f(0x4af)]({'taskId':_0x11be6c})}))['body'];if(((_0x3d194d=_0x148683[_0x35f86f(0x350)])==null?void 0x0:_0x3d194d[_0x35f86f(0x1c9)])!==v['ErrorCode']['OK'])return;this[_0x35f86f(0x3e6)](_0x148683[_0x35f86f(0x240)],_0x361eae);}catch(_0x3fb001){this[_0x35f86f(0x1e3)][_0x35f86f(0x350)](_0x3fb001);}}async[_0x76d160(0x43a)](_0xaa027f){const _0x3b9a1a=_0x76d160;let _0x8f9325=Date[_0x3b9a1a(0x434)]();try{var _0x32efa1,_0xe309c6;let _0x33a12c=((_0x32efa1=this[_0x3b9a1a(0x288)][_0x3b9a1a(0x25d)](e[_0x3b9a1a(0x321)]))==null?void 0x0:_0x32efa1['getFormulaLimitStatusUrl'])||_0x3b9a1a(0x1f4),_0x3d569d=_0xaa027f?_0x33a12c+_0x3b9a1a(0x34e)+encodeURIComponent(_0xaa027f):_0x33a12c,_0x580b19=(await this[_0x3b9a1a(0x1c2)][_0x3b9a1a(0x4ad)](_0x3d569d))[_0x3b9a1a(0x298)];if(((_0xe309c6=_0x580b19[_0x3b9a1a(0x350)])==null?void 0x0:_0xe309c6['code'])!==v[_0x3b9a1a(0x24d)]['OK'])return;this['_setFormulaLimitStatus'](_0x580b19['limitInfo'],_0x8f9325);}catch(_0x5a3a01){this['_logService'][_0x3b9a1a(0x350)](_0x5a3a01);}}async[_0x76d160(0x45b)](_0x7f5545){const _0x1a4afe=_0x76d160;let _0x15f9d4=Date[_0x1a4afe(0x434)]();try{var _0x398576,_0x30bd69;let _0x2a5274=((_0x398576=this['_configService'][_0x1a4afe(0x25d)](e[_0x1a4afe(0x321)]))==null?void 0x0:_0x398576[_0x1a4afe(0x3a9)])||_0x1a4afe(0x418),_0x7f5bd0=(await this[_0x1a4afe(0x1c2)][_0x1a4afe(0x4be)](_0x2a5274,{'body':JSON['stringify']({'taskId':_0x7f5545})}))[_0x1a4afe(0x298)];if(((_0x30bd69=_0x7f5bd0[_0x1a4afe(0x350)])==null?void 0x0:_0x30bd69[_0x1a4afe(0x1c9)])!==v['ErrorCode']['OK'])return;this[_0x1a4afe(0x3e6)](_0x7f5bd0[_0x1a4afe(0x240)],_0x15f9d4);}catch(_0x14df9f){this[_0x1a4afe(0x1e3)][_0x1a4afe(0x350)](_0x14df9f);}}[_0x76d160(0x391)](){const _0x3bf395=_0x76d160;return this[_0x3bf395(0x3b1)]===0x0||this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x76d160(0x256)](){const _0x154f06=_0x76d160;this[_0x154f06(0x369)]&&=(clearTimeout(this[_0x154f06(0x369)]),null);}[_0x76d160(0x2f2)](){const _0x5cb300=_0x76d160;this[_0x5cb300(0x41a)][_0x5cb300(0x23b)]({'content':this[_0x5cb300(0x1d2)]['t'](_0x5cb300(0x225)),'type':a[_0x5cb300(0x1cb)][_0x5cb300(0x44c)]});}[_0x76d160(0x40f)](_0xf9f2d0){const _0x24f984=_0x76d160;for(let _0x44777b of _0xf9f2d0){let {unitId:_0x37037a,sheetId:_0x28a7d9,range:_0x5755de}=_0x44777b,_0x4c602a=this['_univerInstanceService'][_0x24f984(0x39d)](_0x37037a,t[_0x24f984(0x23e)]['UNIVER_SHEET']);if(!_0x4c602a)continue;let _0x185d24=_0x4c602a[_0x24f984(0x22b)](_0x28a7d9);if(!_0x185d24)continue;let _0x5ec5d0=_0x185d24[_0x24f984(0x2e2)]();for(let _0xb76fa2=_0x5755de['startRow'];_0xb76fa2<=_0x5755de[_0x24f984(0x41e)];_0xb76fa2++)for(let _0x245adf=_0x5755de['startColumn'];_0x245adf<=_0x5755de['endColumn'];_0x245adf++){let _0x36d9e7=_0x5ec5d0[_0x24f984(0x3c4)](_0xb76fa2,_0x245adf);if(_0x36d9e7&&((0x0,t[_0x24f984(0x22a)])(_0x36d9e7['f'])||(0x0,t[_0x24f984(0x21b)])(_0x36d9e7['si'])))return!0x0;}}return!0x1;}};Y=C([S(0x0,(0x0,t[_0x76d160(0x36b)])(n[_0x76d160(0x4bc)])),S(0x1,t[_0x76d160(0x1ba)]),S(0x2,t[_0x76d160(0x2f3)]),S(0x3,(0x0,t[_0x76d160(0x36b)])(m[_0x76d160(0x1e0)])),S(0x4,t[_0x76d160(0x275)]),S(0x5,t[_0x76d160(0x44a)]),S(0x6,(0x0,t[_0x76d160(0x36b)])(t[_0x76d160(0x40d)]))],Y);function _0xc3aa(){const _0x2c1a65=['unitId','setShapeProps','ITransformService','Disposable','_labelPosition','event$','default','fromEventSubject','15848Xcaksg','_timeoutState$','_initEntityListener','location','CollaborationController','_eventUnsubscribe','_showGuardMessage','IConfigService','max','AWAITING_WITH_PENDING','OTHER_CLIENT_EDITING','_scheduleClearOtherTimer','unitType','flatMap','_injector','_clearOtherTimers','_handleHeartbeatEvent','_updateCollabCursors','setAlpha','_onCursorUpdate','getStateCache','_adapter','m2Prime','_showText','getCoordByCell','removeEventListener','_docClipboardService','collaboration-client-ui.session.connection-failed','LoadingMultiIcon','maxFormulaLimit','univer-text-green-500','addEventListener','executionId','_isVisibleUnit','shift','ILocalCacheService','Button','LOADING_BLOCKS','sheetID','FETCH_MISS','_hideTimer','switchMap','handleInsertCol','_collabSessionService','timedOut','useDependency','clickable','find','sheetId','searchParams','_hovered','CommandType','resize','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','parse','setItem','syncEditingCollabCursor','Tools','getCollabEntity$','transformRemoteChangeset','_dataLoaderService','IUIPartsService','connectInjector','defineProperty','_initUnhandledRejectionListener','_presenceAdapterRegistry','_docTransformSelectionsService','_removeCollabCursors','removeRemotePresence','DOC_RANGE_TYPE','uni.network.url-service','useObservable','_initResize','ranges','isTransformMutationsWithChangesetSuccess','_draw','_registerDependencies','from','lineno','iterator','15WsJBHG','isTransformMutationFailure','lineTo','RemoteUniscriptService','static','_hover','content','handleIRemoveCol','collaboration-client-ui.snapshotLoading.refresh','Injector','getCurrentTypeOfUnit$','_scheduleSaving','invokeId','getLocalCacheKey','_cursorInfo$','redoState','univer-transition-all\x20univer-duration-200','_offsetY','?taskId=','getTypeOfUnitDisposed$','error','_isBlinkVisible','setRemotePresence','_pointerMoveDisposable','timeoutId','getFocusedUnit','_syncAdapters','_currentUsage','replace','UPDATE_CURSOR','getMember','_removeClearOtherTimer','dispose','snapshot-loading-timeout','getDocumentSkeletonColumnPagePathInfo','transformStateCache','_checkAndWaitForCalculationPermission','collaboration-client-ui.collabStatus.syncing','InsertRangeMoveRightCommandId','isFinite','rgba(','_toggleOnline','_startSheetCollabCursor','enableDocumentCollaborationUI','presenceKind','_pollingInterval','highlightSecond','Inject','memberID','shareInterval','SnapshotLoadStage','collaboration-client-ui.operation.update-remote-unit-presence','Failed','delete','DeleteRangeMoveUpCommandId','_lastResponseTimestamp','getCurrentSkeleton','UNIVER_SHEET','getItem','\x20-\x20','_context','DocumentSkeletonPageType','CanceledError','key','mapTo','transformByState','[Window\x20Error]:\x20','USERS_LEAVE','_memberID','getSheetId','transformMutationsWithChangeset','slice','showText','loadedBlocks','subUnitId','message','jiqing.500','contains','_initCommandExecutedListener','onTransformChange$','column','beginPath','_initialized',':backup:','_docTransformStateCacheService','_checkCalculationAvailable','state$','collaboration-client-ui.collaboration.single-unit.warning','kind','_monkeyPatchLogService','MemberService','_handleJoinEvent','getOffsetConfig','handleDeleteRangeMoveUp','reload','call','forEach','getUnit','addObjects','SUCCESS','search','DocStateChangeManagerService','packageName','DesktopCollaborationStatusDisplayController','IUnitPresenceUIAdapterRegistry','startColumn','UniverDocsPlugin','distinctUntilChanged','_docTransformIMECacheService','releaseFormulaLimitUrl','IBeforeCloseService','decorate','subunit','sessionTicket','button','reconnect','spin','_maxFormulaLimit','DeleteRangeMoveLeftCommandId','options','prototype','_localStorageService','type','_uiPartsService','SUBMIT_CHANGESET_TIMEOUT','getCollabCursors$','createInstance','asObservable','FromArray','CollaborationStatus','storage','COLORS','_getSaveTimeout','_saveTaskMap','clearInterval','CollaborationUIEventService','getValue','getActiveSheet','clearRemotePresences','indicator','wsSessionTicketUrl','generateRandomId','RemoveRowCommandId','_initWindowErrorListener','_drawAnchor','IRenderManagerService','object','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','totalFormulasToCalculate','div','CollaborationSocketService','_unitStatus','_session','SetTextSelectionsOperation','_disposed','/universer-api/frontend/logs','collaboration-client-ui.permission.title','_blockProgressWatches','clear','status','DependentOn','AWAITING','fill','loadUnit','touchDependencies','_transformUndoRedoStack','makeDirty','symbol','Workbook','bold\x2013px\x20Arial,\x20sans-serif','_setFormulaLimitStatus','registerComponent','_online','CLOSE_ROOM','_sheetSkeletonManagerService','with','getLocalPresence','mergeOverrideWithDependencies','transformMutation','moveTo','setTimeout','UNIVER_DOC','_unitOnClients','Warning','ISnapshotServerService','Shape','1380tHbXCF','_uploadLog','i18nKey','all','m1Prime','_startEntity','DocIMEInputManagerService','selection','_shapes','_blinkIntervalTimer','name','preventDefault','Success','removeParam','427999cShghT','InsertRangeMoveDownCommandId','useMemo','onPointerEnter$','getSelectionInfo','_clearTimeoutState','_anchor','_initDependencies','join','LocaleService','tooltipKey','_hasFormulaInDirtyRanges','collaboration-client-ui.collabStatus.offline','_removeRemotePresence','Enter','_setupBeforeClosingHandler','_getSheetObject','getDocRanges','exhaustSavingTask','_drawTextRange','/universer-api/license/formula/limit/done','_init','_messageService','9244OvDZQj','Rectangle','restore','endRow','entries','_presenceStatusRegistrations','InsertRowCommandId','number','_updateURLWithCurrentState','_ensureSubject','_refreshCollabCursors','getCoordRelativeToViewport','_isDisposed','_urlService','startFormulaLimitUrl','remove','INotificationService','_scene','collaboration-client-ui.collabStatus.notCollab','_adapterDisposables','_pendingEntities','handleInsertRangeMoveRight','registerRefRange','_scheduleHeartbeat','_getLighterColor','now','black','_updateMessage','deepClone','socket$','green.600','_getFormulaLimitStatus','ACTIVE_UNIT_EVENT_CHANNEL','SetSelectionsOperation','SheetsSelectionsService','adapters$','setInterval','height','toISOString','registerCommand','_registerPresenceStatusComponent','function','_initStatusListener','currentUsage','_entityInit$','_collaborationController','colno','ILogService','getRenderUnitById','Loading','textRanges','disableLocalCache','string','LOCAL_CACHE_INTERVAL_KEY','_highlight','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','EffectRefRangId','_entities','_highlightSecond','unitID','rgba(255,\x20255,\x20255,\x200.01)','offsetY','arc','setConfig','_releaseCalculationLimit','DocSkeletonManagerService','UniverNetworkPlugin','_getSessionTicket','doc.mutation.rich-text-editing','_disabled','width','1624516cdxnPo','activeSheet$','row','TEXT','DEFAULT_WS_SESSION_TICKET_URL','_render','IImageIoService','collab-text-range-','onMouseMove','NodePositionConvertToRectRange','columnGroupId','getUndoRedoMutationParamsCache','currentTheme$','RegularPolygon','span','throttle','getCellIndexByOffset','getAllUnitsForType','getParam','href','highlight','_collabCursorState$','_id','START_CALCULATION','_disposeEntitiesForType','4301110jMJhJV','tableId','_disposeEntity','_saveCache','toPrimitive','_syncEditingCollabCursorService','getColorFromTheme','_instanceService','SetFormulaCalculationStartMutation','origin','urlChange$','imageSourceType','_initEvent','OffLineIcon','values','_applyCommand','_initStatusComponent','canRenderSelection','fromEvent','_onCursorDelete','some','range','_clearBlockProgressWatch','constructor','setUndoRedoMutationParamsCache','isEditing','shareReplay','enableLocalCache','_name','history','_latestStates','CONFLICT','univer-m-0\x20univer-p-0','SheetCollabCursorShape','_imageIoService','InsertColCommandId','source','OPERATION','runId','requireSession','entityInit$','_labelHorizontalPosition','onCommandExecuted','[CollaborationDataLoaderController]','MoveRangeCommandId','Unknown\x20user','measureText','registerRenderModule','debounce','_color','get','OFFLINE','stringify','DataLoaderService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','true','newValue','_registerRenderDependencies','parseInt','isInternalEditorID','evenodd','_cursors','cursorInfo','_onRefRangeChange','_docSyncEditingCollabCursorService','IMessageService','BehaviorSubject','post','toDisposable','getRangePointData','collab-text-anchor-','DocCollaborationEntity','_localCacheService','getUnitId','selectedIds','...','subscribeEvent','pipe','_colorIndex','triggerDblclick','handleMoveRange','map','collaboration-client-ui.session.will-retry',',\x200.2)','getColor','Plugin','ICommandService','localPresence$','_updateSubUnitFromURLParams','UniverCollaborationPlugin','prepareTransformSelections','onRendered','debounceTime','createElement','_httpService','getSkeleton','length','BrowserCollaborationSocketService','_backgroundColor','small','Subject','code','Rect','MessageType','jsx','_collabCursorController','value','univer-text-red-500','every','isArray','_localeService','_messageIds','_bindAdapter','startsWith','jsxs','_handleHover','setStateCache','takeUntil','saveTaskMap','_updateLocalCursor','collaboration-client-ui.collabStatus.fetchMiss','dispose$','ThemeService','_snapshotLoadingService','HTTPService','min','pushState','_logService','pointer','_toggleOffline','size','Module','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','PERMISSION_DENIED','CollaborationUIEventId','serializeRangeWithSheet','SheetSkeletonManagerService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','univer-border-none\x20univer-bg-transparent','_handleEvent','hide','has','getViewport','DisposableCollection','/universer-api/license/formula/limit/status','_renderManagerService','univer-h-8\x20univer-w-8\x20univer-rounded-lg','/run/','version','stack','filter','transformIMECache','getTypeOfUnitAdded$','getOwnPropertyDescriptor','statusUIPart','_clearRemotePresences','5724BGqHou','OnLineIcon','onStarting','toStringTag','toString','getMemberID','fillText','closePath','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collaboration-client-ui.snapshotLoading.timeout','RichTextEditingMutation','ColorKit','activate','ONLINE','collaboration-client-ui.collabStatus.conflict','enableFrontendLog','_transformHistoryAndStateStack','TRANSFORM_CHANGE_OBSERVABLE_TYPE','endColumn','colorClass','unit','_heartbeatTimer','ERROR','pulse','Error','_cachedData','pageIndex','isFormulaId','univer-appearance-none','rgb','then','CollaborationEvent','next','runRefRangeMutations','SetWorksheetActivateCommand','stage','Tooltip','collaboration-client-ui.formula.calculation.waiting','font','collaboration-client-ui.config','merge','filename','isFormulaString','getSheetBySheetId','saveOfflineData','_refRangeService','_handleCursorUpdate','_transformService','init','pluginName','_memberService','getCurrentUnitOfType','_cursorShapes','_watchBlockProgress','alert','_status$','UnitStatus','addObject','dark:focus:!univer-ring-offset-gray-800','show','color','rgba','UniverInstanceType','split','limitInfo','blue.400','_startBlinking','[RemoteUniscriptService]:\x20no\x20focused\x20unit','totalBlocks','TEXT_RANGE_LAYER_INDEX','eventID','CollaborationSessionService','refreshLabel','_assignedColors','useCallback','_univerInstanceService','getUnitStatus$','ErrorCode','status$','_adapterRegistry','getAncestorScale','dirtyRanges','setParam','getScrollXYInfoByViewport','_range','labelHorizontalPosition','_clearPolling','backupOfflineData','_colorAssignService','complete','_blinkTimer','params','_notificationService','getConfig','getCurrentRevOfUnit','replaceSelectionInfoWithoutRefresh','_anchorDot','undoState','_send','UniverLicensePlugin','save','_docStateChangeManagerService','_initCommandInterceptor','DocSelectionManagerService','6zQEMER','unshift','ticket','startRow','combineLatest','bottom','runOnServer','BuiltInUIPart','mutations','fillStyle','purple.300','_docSelectionManagerService','findNodePositionByCharIndex','IUniverInstanceService','right','isActive','WarningIcon','[Unhandled\x20Rejection]:\x20','clsx','RECT','set','_textBubble','collaboration-client-ui.collabStatus.synced','registerBeforeClose','stageInfo','push','setOffsetY','_getScale','univer-text-blue-500','roomMembers$','replaceState','_collaborationSessionService','_configService','backgroundColor','update','currentSkeleton$','updateOfflineData','handleInsertRangeMoveDown','debug','sessionStatus$','timer','_roomMembers$','hovered','_commandService','loadOfflineData','collaboration-client-ui.collaboration.closeRoom','getUnhiddenWorksheets','polite','body','handleDeleteRangeMoveLeft','send','result','assignAColorForMemberID','addHandlerCallback','cursorInfo$','_transformPreviousActiveRange','_cursor','collab-rect-range-','_taskIds','_revisionService','createIdentifier','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','NodePositionConvertToCursor','NO_OTHER_CLIENTS_EDITING','columnIndex','data','_beforeCloseService','OTHER_CLIENTS_EDITING','_syncPresenceStatusComponents','RxDisposable','univer-text-orange-500','_config','3419889qCeUZy','HEADER','deserializeRangeWithSheet','reason','_themeService','focusedId','registerDependencies','RevisionService','subscribe','COMPLETE','top','transform','timeoutState$','NOT_COLLAB','_stopBlinking','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_document','onPointerLeave$','_getAnchorBounding','_handleLeaveEvent','collaboration-client-ui.conflict.title','_selfUnitIDs','_startCalculationLimit','246JZGssw','unsubscribe','executeCommand','collaboration-client-ui.formula.calculation.started','clearTimeout','catch','engine','add','SnapshotLoadingService','fillRule','disposeWithMe','application/json','throttleTime','drawWith','univer-inline-flex\x20univer-items-center\x20univer-justify-center','pageType','_initUserListener','6221789jXUNqo','univer-text-gray-400','_lastPointer','_drawRectRange','onPointerMove$','_docSkeletonManagerService','bind','_sendLocalPresence','univer-flex\x20univer-items-center\x20univer-justify-center','addClipboardHook','getCellMatrix','_setupSubUnitSync'];_0xc3aa=function(){return _0x2c1a65;};return _0xc3aa();}let X=class extends t[_0x76d160(0x2e7)]{constructor(_0x1e562e,_0x227640,_0x6a53d){const _0x20c8ff=_0x76d160;super(),this[_0x20c8ff(0x288)]=_0x1e562e,this['_localStorageService']=_0x227640,this[_0x20c8ff(0x2a3)]=_0x6a53d,x(this,_0x20c8ff(0x219),new Map()),x(this,_0x20c8ff(0x3c1),new Map()),x(this,_0x20c8ff(0x460),!0x1);}[_0x76d160(0x44e)](){this['_disabled']=!0x0;}[_0x76d160(0x496)](){this['_disabled']=!0x1;}get[_0x76d160(0x1da)](){const _0x487693=_0x76d160;return this[_0x487693(0x3c1)];}[_0x76d160(0x35c)](){const _0x2a11b5=_0x76d160;this[_0x2a11b5(0x416)]()[_0x2a11b5(0x21e)](()=>super['dispose']());}async[_0x76d160(0x294)](_0x1f7045){const _0x20979a=_0x76d160;return this[_0x20979a(0x460)]?null:this['_localStorageService'][_0x20979a(0x376)]((0x0,e[_0x20979a(0x349)])(_0x1f7045));}async[_0x76d160(0x22c)](_0x129dba,_0x43d939){const _0x5668f3=_0x76d160;return!!this[_0x5668f3(0x3b5)][_0x5668f3(0x323)]((0x0,e[_0x5668f3(0x349)])(_0x129dba),_0x43d939);}async[_0x76d160(0x257)](_0xfb286a,_0x2f32ac){const _0x250f75=_0x76d160;let _0x429859=this['_cachedData'][_0x250f75(0x4ad)](_0xfb286a)??await this[_0x250f75(0x3b5)]['getItem']((0x0,e[_0x250f75(0x349)])(_0xfb286a));if(!_0x429859)return;let _0x20c6ca=Date['now'](),_0x6ba9dd=new Date(_0x20c6ca)[_0x250f75(0x441)]();await this['_localStorageService'][_0x250f75(0x323)]((0x0,e[_0x250f75(0x349)])(_0xfb286a)+_0x250f75(0x38f)+_0x20c6ca,{'reason':_0x2f32ac,'createdAt':_0x6ba9dd,'data':_0x429859});}[_0x76d160(0x28c)](_0x327459,_0xce1d75,_0x3a9058,_0x11ca2e){const _0x2a5910=_0x76d160;let _0x1b26f1=this[_0x2a5910(0x2a3)][_0x2a5910(0x25e)](_0x327459);this[_0x2a5910(0x219)]['set'](_0x327459,{'unitID':_0x327459,'type':_0xce1d75,'awaitingChangeset':_0x3a9058,'mutations':_0x11ca2e,'rev':_0x1b26f1}),this['_saveTaskMap'][_0x2a5910(0x1f1)](_0x327459)||this[_0x2a5910(0x347)](_0x327459);}['_scheduleSaving'](_0x3dbefe){const _0x6e2aab=_0x76d160;let _0xb31b96=this['_getSaveTimeout']();_0xb31b96===0x0?this['_saveCache'](_0x3dbefe):this['_saveTaskMap'][_0x6e2aab(0x27c)](_0x3dbefe,window[_0x6e2aab(0x3f0)](()=>this['_saveCache'](_0x3dbefe),_0xb31b96));}[_0x76d160(0x3c0)](){const _0x53aaf1=_0x76d160;return this[_0x53aaf1(0x288)][_0x53aaf1(0x25d)](e[_0x53aaf1(0x450)])??e['LOCAL_CACHE_INTERVAL'];}[_0x76d160(0x47e)](_0x1664c3){const _0x15604e=_0x76d160;let _0x5f30df=this['_saveTaskMap'][_0x15604e(0x4ad)](_0x1664c3);return _0x5f30df!==void 0x0&&window[_0x15604e(0x2cb)](_0x5f30df),this['_localStorageService'][_0x15604e(0x323)]((0x0,e[_0x15604e(0x349)])(_0x1664c3),this[_0x15604e(0x219)][_0x15604e(0x4ad)](_0x1664c3))[_0x15604e(0x21e)](()=>this[_0x15604e(0x3c1)]['delete'](_0x1664c3));}async[_0x76d160(0x416)](){const _0x44d4c4=_0x76d160;let _0x4ebbc9=[];this['_saveTaskMap'][_0x44d4c4(0x39c)]((_0x5682de,_0x493a63)=>{const _0x38f915=_0x44d4c4;window[_0x38f915(0x2cb)](_0x5682de),_0x4ebbc9['push'](this['_saveCache'](_0x493a63)[_0x38f915(0x21e)](()=>{const _0x2938c7=_0x38f915;this['_saveTaskMap'][_0x2938c7(0x371)](_0x493a63);}));}),await Promise[_0x44d4c4(0x3f9)](_0x4ebbc9);}};X=C([S(0x0,t[_0x76d160(0x2f3)]),S(0x1,t['ILocalStorageService']),S(0x2,(0x0,t['Inject'])(l[_0x76d160(0x2b7)]))],X);var ke=class extends t[_0x76d160(0x2ad)]{constructor(){const _0x1e50ee=_0x76d160;super(),x(this,'urlChange$',void 0x0),this[_0x1e50ee(0x485)]=(0x0,r[_0x1e50ee(0x48d)])(window,'popstate')[_0x1e50ee(0x4c8)]((0x0,r[_0x1e50ee(0x1d9)])(this[_0x1e50ee(0x1dd)]),(0x0,r[_0x1e50ee(0x495)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x1e50ee(0x37c)])(void 0x0));}[_0x76d160(0x252)](_0x57322a,_0x4772a7,_0x1a8051=!0x1){const _0x43b153=_0x76d160;let _0x2e906b=new URL(window[_0x43b153(0x2ef)][_0x43b153(0x475)]);_0x2e906b['searchParams'][_0x43b153(0x27c)](_0x57322a,_0x4772a7),_0x1a8051?window[_0x43b153(0x498)][_0x43b153(0x286)]('','',_0x2e906b[_0x43b153(0x204)]()):window[_0x43b153(0x498)][_0x43b153(0x1e2)]('','',_0x2e906b[_0x43b153(0x204)]());}[_0x76d160(0x403)](_0xcec52f,_0x155afe=!0x1){const _0x4ca2da=_0x76d160;let _0x82ab60=new URL(window[_0x4ca2da(0x2ef)][_0x4ca2da(0x475)]);_0x82ab60[_0x4ca2da(0x31d)][_0x4ca2da(0x371)](_0xcec52f),_0x155afe?window[_0x4ca2da(0x498)][_0x4ca2da(0x286)]('','',_0x82ab60[_0x4ca2da(0x204)]()):window[_0x4ca2da(0x498)][_0x4ca2da(0x1e2)]('','',_0x82ab60[_0x4ca2da(0x204)]());}[_0x76d160(0x474)](_0x59b049){const _0x5c18d2=_0x76d160;return new URL(window[_0x5c18d2(0x2ef)][_0x5c18d2(0x475)])['searchParams']['get'](_0x59b049)??void 0x0;}};let Z=class extends t[_0x76d160(0x1b9)]{constructor(_0x1338d6=oe,_0x14a903,_0x46821b,_0x4422ea,_0x56f27f){const _0x5cc75f=_0x76d160;super(),this[_0x5cc75f(0x2af)]=_0x1338d6,this[_0x5cc75f(0x1f5)]=_0x14a903,this['_injector']=_0x46821b,this[_0x5cc75f(0x288)]=_0x4422ea,this[_0x5cc75f(0x293)]=_0x56f27f;let {..._0x5ad6dc}=(0x0,t[_0x5cc75f(0x228)])({},oe,this['_config']);this[_0x5cc75f(0x288)][_0x5cc75f(0x45a)](_0x5cc75f(0x227),_0x5ad6dc);}[_0x76d160(0x202)](){const _0x5cc711=_0x76d160;this[_0x5cc711(0x338)](),this['disposeWithMe'](this[_0x5cc711(0x293)][_0x5cc711(0x442)](E)),this[_0x5cc711(0x40b)]();}[_0x76d160(0x1bf)](){this['_registerRenderDependencies']();}[_0x76d160(0x338)](){const _0x166452=_0x76d160;var _0x54e7a3;let _0x26394e=[[O],[Y],[B,{'useClass':ke}],[m['ISocketService'],{'useClass':m['WebSocketService']}],[e[_0x166452(0x30f)],{'useClass':X}],[w],[z],[M],[R],[V],[J]];this[_0x166452(0x2af)][_0x166452(0x367)]!==!0x1&&_0x26394e['push']([W],[H],[U],[k],[K],[D]),this[_0x166452(0x2af)][_0x166452(0x20f)]&&_0x26394e[_0x166452(0x281)]([q]),(0x0,t[_0x166452(0x2b6)])(this[_0x166452(0x2fa)],(0x0,t[_0x166452(0x3ed)])(_0x26394e,(_0x54e7a3=this['_config'])==null?void 0x0:_0x54e7a3['override']));}[_0x76d160(0x4b4)](){const _0x34cf8c=_0x76d160;this[_0x34cf8c(0x2af)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x34cf8c(0x2d1)](this[_0x34cf8c(0x1f5)][_0x34cf8c(0x4aa)](t[_0x34cf8c(0x23e)][_0x34cf8c(0x3f1)],[P])),this['disposeWithMe'](this[_0x34cf8c(0x1f5)][_0x34cf8c(0x4aa)](t[_0x34cf8c(0x23e)][_0x34cf8c(0x375)],[F]));}[_0x76d160(0x40b)](){const _0x4419ee=_0x76d160;(0x0,t[_0x4419ee(0x3e0)])(this[_0x4419ee(0x2fa)],[[M],[R],[w],[z],[V],[Y],[J]]),this[_0x4419ee(0x2af)]['enableDocumentCollaborationUI']!==!0x1&&(0x0,t[_0x4419ee(0x3e0)])(this[_0x4419ee(0x2fa)],[[K],[D]]),this['_config'][_0x4419ee(0x20f)]&&(0x0,t[_0x4419ee(0x3e0)])(this[_0x4419ee(0x2fa)],[[q]]);}};x(Z,_0x76d160(0x231),_0x76d160(0x208)),x(Z,_0x76d160(0x3a2),ie),x(Z,_0x76d160(0x1f8),ae),Z=C([(0x0,t[_0x76d160(0x3dc)])(u[_0x76d160(0x263)],d[_0x76d160(0x3a6)],p['UniverRenderEnginePlugin'],m[_0x76d160(0x45d)],l[_0x76d160(0x1bd)],f['UniverDocsUIPlugin'],e['UniverCollaborationClientPlugin']),S(0x1,p[_0x76d160(0x3cd)]),S(0x2,(0x0,t['Inject'])(t[_0x76d160(0x345)])),S(0x3,t[_0x76d160(0x2f3)]),S(0x4,t[_0x76d160(0x1ba)])],Z);let Q=class extends e[_0x76d160(0x3d2)]{constructor(_0x40ba98,_0xdb8715,_0x4b5727,_0x265536,_0x14d0b4){super(_0x40ba98,_0xdb8715,_0x4b5727,_0x265536,_0x14d0b4);}async['createSocket'](_0x585de8){const _0x4bdfc5=_0x76d160;let _0x2f047a=await this[_0x4bdfc5(0x45e)](),_0x5d8957=this['_createSocketURL'](_0x585de8,_0x2f047a);return this['_doCreateSocket'](_0x5d8957);}['_createSocketURL'](_0x4adbab,_0x3cd6a8){const _0x770994=_0x76d160;let _0x158a96=typeof window>'u'?new URL(_0x4adbab):new URL(_0x4adbab,window['location'][_0x770994(0x484)]);_0x158a96[_0x770994(0x31d)][_0x770994(0x27c)](_0x770994(0x3ad),_0x3cd6a8);let _0xca15b9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x770994(0x2ef)][_0x770994(0x3a0)]);return _0xca15b9[_0x770994(0x4ad)](_0x770994(0x4a1))&&_0x158a96[_0x770994(0x31d)][_0x770994(0x27c)](_0x770994(0x4a1),_0xca15b9['get'](_0x770994(0x4a1))),_0x158a96['toString']();}async['_getSessionTicket'](){const _0x28029a=_0x76d160;var _0x4552a5;let _0x46dd54=this[_0x28029a(0x288)][_0x28029a(0x25d)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x5aadc1=(_0x46dd54==null?void 0x0:_0x46dd54[_0x28029a(0x3c8)])??e[_0x28029a(0x466)];return((_0x4552a5=(await this[_0x28029a(0x1c2)][_0x28029a(0x4ad)](_0x5aadc1,{'headers':{'Content-Type':_0x28029a(0x2d2)}}))[_0x28029a(0x298)])==null?void 0x0:_0x4552a5[_0x28029a(0x26a)])??'';}};Q=C([S(0x0,(0x0,t['Inject'])(t[_0x76d160(0x345)])),S(0x1,(0x0,t[_0x76d160(0x36b)])(m[_0x76d160(0x1e0)])),S(0x2,t[_0x76d160(0x2f3)]),S(0x3,t['ILogService']),S(0x4,l[_0x76d160(0x3f4)])],Q);let $=class extends t['Disposable']{constructor(_0x369aaa,_0x5b681f,_0x14d19f){const _0x462024=_0x76d160;super(),this[_0x462024(0x482)]=_0x369aaa,this[_0x462024(0x1c2)]=_0x5b681f,this[_0x462024(0x288)]=_0x14d19f;}async[_0x76d160(0x26e)](_0x83c683,_0x259da8,_0x4723c6,..._0x411aae){const _0x2fa942=_0x76d160;let _0x1c5f7e=this[_0x2fa942(0x482)][_0x2fa942(0x355)]();if(!_0x1c5f7e)throw Error(_0x2fa942(0x243));let _0x2175d2=(this[_0x2fa942(0x288)][_0x2fa942(0x25d)](e[_0x2fa942(0x2bf)])??e[_0x2fa942(0x452)])+'/'+_0x83c683+_0x2fa942(0x1f7)+_0x259da8,_0x30abd2={'scriptId':_0x83c683,'runId':new URL(window['location'][_0x2fa942(0x475)])['searchParams'][_0x2fa942(0x4ad)](_0x2fa942(0x4a1))??'','function':_0x259da8,'unitId':_0x1c5f7e[_0x2fa942(0x4c4)](),'argsOfFunction':JSON[_0x2fa942(0x4af)](_0x411aae),'invokeId':_0x4723c6[_0x2fa942(0x348)]??'','executionId':_0x4723c6[_0x2fa942(0x30c)]??''};try{let _0x56cb52=await this['_httpService'][_0x2fa942(0x4be)](_0x2175d2,{'body':_0x30abd2});return _0x56cb52[_0x2fa942(0x298)][_0x2fa942(0x350)]&&_0x56cb52[_0x2fa942(0x298)][_0x2fa942(0x350)][_0x2fa942(0x1c9)]!==v['ErrorCode']['OK']?_0x2fa942(0x370):_0x56cb52[_0x2fa942(0x298)][_0x2fa942(0x29b)];}catch{return _0x2fa942(0x370);}}};$=C([S(0x0,t[_0x76d160(0x275)]),S(0x1,(0x0,t[_0x76d160(0x36b)])(m['HTTPService'])),S(0x2,t[_0x76d160(0x2f3)])],$);const Ae=0x7530,je=_0x76d160(0x43b);var Me=class extends t[_0x76d160(0x2e7)]{constructor(){const _0x4546e7=_0x76d160;super(),x(this,'_id',(0x0,t[_0x4546e7(0x3c9)])()),x(this,_0x4546e7(0x2c5),new Set()),x(this,_0x4546e7(0x3f2),new Map()),x(this,_0x4546e7(0x215),null),x(this,_0x4546e7(0x2fb),new Map()),x(this,'_unitStatus',new Map()),this[_0x4546e7(0x419)]();}[_0x76d160(0x35c)](){const _0xddb6a5=_0x76d160;super['dispose'](),this[_0xddb6a5(0x2fb)]['forEach']((_0x187dd7,_0xffec2c)=>this[_0xddb6a5(0x35b)](_0xffec2c)),this[_0xddb6a5(0x215)]&&window[_0xddb6a5(0x3c2)](this['_heartbeatTimer']);}[_0x76d160(0x24c)](_0x825b5f){const _0x558e1e=_0x76d160;return this[_0x558e1e(0x424)](_0x825b5f)[_0x558e1e(0x4c8)]((0x0,r[_0x558e1e(0x3a7)])());}['editingUnit'](_0x17f0ec){const _0xa753c0=_0x76d160;this[_0xa753c0(0x2c5)][_0xa753c0(0x1e6)]===0x0&&this[_0xa753c0(0x432)](),this[_0xa753c0(0x2c5)][_0xa753c0(0x2ce)](_0x17f0ec),this[_0xa753c0(0x262)]({'type':0x0,'memberID':this[_0xa753c0(0x478)],'unitIDs':[_0x17f0ec],'isForwarded':!0x1});}['disposeUnit'](_0x579a5d){const _0x44e9e1=_0x76d160;this[_0x44e9e1(0x2c5)][_0x44e9e1(0x371)](_0x579a5d),this[_0x44e9e1(0x2c5)]['size']===0x0&&this[_0x44e9e1(0x215)]&&window[_0x44e9e1(0x3c2)](this['_heartbeatTimer']);}['_init'](){const _0x5da192=_0x76d160;this['disposeWithMe']((0x0,t[_0x5da192(0x4bf)])((0x0,r[_0x5da192(0x48d)])(window,_0x5da192(0x3be))[_0x5da192(0x2b8)](_0x17d027=>{const _0x4ca30e=_0x5da192;if(_0x17d027[_0x4ca30e(0x37b)]!==je||!_0x17d027[_0x4ca30e(0x4b3)])return;let _0x585a71=JSON['parse'](_0x17d027[_0x4ca30e(0x4b3)]);this[_0x4ca30e(0x1ef)](_0x585a71);}))),window[_0x5da192(0x30b)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x5da192(0x478)],'unitIDs':Array[_0x5da192(0x339)](this[_0x5da192(0x2c5)])}));}[_0x76d160(0x1ef)](_0x1cd8bd){const _0x393691=_0x76d160;switch(_0x1cd8bd[_0x393691(0x3b6)]){case 0x0:this[_0x393691(0x397)](_0x1cd8bd);break;case 0x1:this[_0x393691(0x2c3)](_0x1cd8bd);break;case 0x2:this[_0x393691(0x2fc)](_0x1cd8bd);break;}}[_0x76d160(0x397)](_0x2c454b){const _0x29fcbd=_0x76d160;let {unitIDs:_0xbd72b7,memberID:_0x5d85e9,isForwarded:_0x2141fb}=_0x2c454b;_0xbd72b7[_0x29fcbd(0x39c)](_0x1f45e6=>{const _0x29f4a7=_0x29fcbd;if(!_0x2141fb&&this[_0x29f4a7(0x3f2)][_0x29f4a7(0x1f1)](_0x1f45e6)&&this['_ensureSubject'](_0x1f45e6)[_0x29f4a7(0x220)](e['UnitStatus'][_0x29f4a7(0x2ab)]),!this[_0x29f4a7(0x3f2)][_0x29f4a7(0x1f1)](_0x1f45e6)||!this[_0x29f4a7(0x3f2)]['get'](_0x1f45e6)[_0x29f4a7(0x1f1)](_0x5d85e9)){let _0x4afc64=this[_0x29f4a7(0x3f2)][_0x29f4a7(0x4ad)](_0x1f45e6)||new Set();_0x4afc64[_0x29f4a7(0x2ce)](_0x5d85e9),this[_0x29f4a7(0x3f2)][_0x29f4a7(0x27c)](_0x1f45e6,_0x4afc64),this[_0x29f4a7(0x2f7)](_0x5d85e9);}}),_0x2141fb||this[_0x29fcbd(0x262)]({'type':0x0,'memberID':this[_0x29fcbd(0x478)],'unitIDs':[...this[_0x29fcbd(0x2c5)]],'isForwarded':!0x0});}[_0x76d160(0x2f7)](_0x528468){const _0xc8e910=_0x76d160;this[_0xc8e910(0x35b)](_0x528468);let _0x1431ae=window['setTimeout'](()=>{const _0x33bce8=_0xc8e910;this[_0x33bce8(0x3f2)][_0x33bce8(0x39c)](_0x1f79bc=>{const _0xde5eef=_0x33bce8;_0x1f79bc[_0xde5eef(0x371)](_0x528468);});},Ae*0x2);this[_0xc8e910(0x2fb)]['set'](_0x528468,_0x1431ae);}['_removeClearOtherTimer'](_0x8864a6){const _0x3774a9=_0x76d160;if(this['_clearOtherTimers']['has'](_0x8864a6)){let _0x4f47af=this[_0x3774a9(0x2fb)]['get'](_0x8864a6);_0x4f47af&&window[_0x3774a9(0x2cb)](_0x4f47af),this[_0x3774a9(0x2fb)][_0x3774a9(0x27c)](_0x8864a6,null);}}[_0x76d160(0x2c3)](_0x3e901f){const _0x46de4e=_0x76d160;let {memberID:_0x9a0b7c,unitIDs:_0x38dc11}=_0x3e901f;_0x38dc11['forEach'](_0x2b58bd=>{const _0x37aff5=_0x5e85;var _0x30cb1f;let _0x3256ba=this['_unitOnClients'][_0x37aff5(0x4ad)](_0x2b58bd);_0x3256ba&&(_0x3256ba['delete'](_0x9a0b7c),(_0x30cb1f=this[_0x37aff5(0x424)](_0x2b58bd))==null||_0x30cb1f['next'](_0x3256ba[_0x37aff5(0x1e6)]===0x0?e[_0x37aff5(0x238)][_0x37aff5(0x2a7)]:e[_0x37aff5(0x238)][_0x37aff5(0x2ab)]));}),this[_0x46de4e(0x35b)](_0x9a0b7c);}[_0x76d160(0x2fc)](_0x417002){const _0x1d3ca4=_0x76d160;this[_0x1d3ca4(0x2f7)](_0x417002[_0x1d3ca4(0x36c)]);}[_0x76d160(0x262)](_0x3171a6){const _0xde39ba=_0x76d160;localStorage['setItem'](je,JSON[_0xde39ba(0x4af)](_0x3171a6));}[_0x76d160(0x432)](){const _0x2a77bb=_0x76d160;this[_0x2a77bb(0x215)]=window['setInterval'](()=>{const _0x8e99d4=_0x2a77bb;this['_send']({'type':0x2,'memberID':this[_0x8e99d4(0x478)]});},Ae);}[_0x76d160(0x424)](_0x2a8d17){const _0x30f5dd=_0x76d160;return this[_0x30f5dd(0x3d3)][_0x30f5dd(0x1f1)](_0x2a8d17)||this[_0x30f5dd(0x3d3)][_0x30f5dd(0x27c)](_0x2a8d17,new r['BehaviorSubject'](e[_0x30f5dd(0x238)][_0x30f5dd(0x2a7)])),this[_0x30f5dd(0x3d3)]['get'](_0x2a8d17);}};Object['defineProperty'](exports,_0x76d160(0x1c5),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x76d160(0x32b)](exports,_0x76d160(0x3a3),{'enumerable':!0x0,'get':function(){return w;}}),exports['IURLService']=B,Object['defineProperty'](exports,_0x76d160(0x33f),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x76d160(0x49c)]=ge,Object[_0x76d160(0x32b)](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return Z;}}),exports['WebBrowserSingleActiveUnitService']=Me;
1
+ const _0x409fb3=_0x4188;(function(_0x28836f,_0x1f47d1){const _0x1b7e66=_0x4188,_0x34962c=_0x28836f();while(!![]){try{const _0x1fe9ac=parseInt(_0x1b7e66(0x15f))/0x1+parseInt(_0x1b7e66(0x3fc))/0x2*(parseInt(_0x1b7e66(0x301))/0x3)+parseInt(_0x1b7e66(0x396))/0x4*(parseInt(_0x1b7e66(0x38f))/0x5)+parseInt(_0x1b7e66(0x261))/0x6+parseInt(_0x1b7e66(0x382))/0x7*(-parseInt(_0x1b7e66(0x211))/0x8)+parseInt(_0x1b7e66(0x2ad))/0x9+parseInt(_0x1b7e66(0x331))/0xa*(-parseInt(_0x1b7e66(0x1ba))/0xb);if(_0x1fe9ac===_0x1f47d1)break;else _0x34962c['push'](_0x34962c['shift']());}catch(_0x17114e){_0x34962c['push'](_0x34962c['shift']());}}}(_0x5cc2,0xbfca4),Object['defineProperty'](exports,Symbol[_0x409fb3(0x2eb)],{'value':_0x409fb3(0x399)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x47d830){const _0x598c40=_0x409fb3;switch(_0x47d830){case e['CollaborationStatus'][_0x598c40(0x321)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o['OffLineIcon'],{}),'colorClass':_0x598c40(0x420),'i18nKey':_0x598c40(0x315),'tooltipKey':_0x598c40(0x1de),'clickable':!0x0,'indicator':_0x598c40(0x22b)};case e[_0x598c40(0x373)][_0x598c40(0x1dc)]:return{'icon':(0x0,c['jsx'])(o['OffLineIcon'],{}),'colorClass':_0x598c40(0x21a),'i18nKey':_0x598c40(0x1ea),'clickable':!0x1,'indicator':_0x598c40(0x22b)};case e[_0x598c40(0x373)][_0x598c40(0x253)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x19c)],{}),'colorClass':_0x598c40(0x18d),'i18nKey':_0x598c40(0x2e7),'clickable':!0x1,'indicator':_0x598c40(0x2bd)};case e['CollaborationStatus'][_0x598c40(0x34b)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o['OnLineIcon'],{}),'colorClass':_0x598c40(0x1c7),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x598c40(0x22b)};case e[_0x598c40(0x373)][_0x598c40(0x40e)]:case e['CollaborationStatus']['AWAITING_WITH_PENDING']:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x19c)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case e[_0x598c40(0x373)][_0x598c40(0x37a)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x19c)],{}),'colorClass':_0x598c40(0x18d),'i18nKey':_0x598c40(0x40f),'clickable':!0x1,'indicator':_0x598c40(0x2bd)};case e[_0x598c40(0x373)][_0x598c40(0x419)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x406)],{}),'colorClass':_0x598c40(0x385),'i18nKey':_0x598c40(0x177),'clickable':!0x1,'indicator':_0x598c40(0x22b)};}}function te(_0x5c8da1){const _0x5cf26d=_0x409fb3;let {status$:_0x3810fc}=_0x5c8da1,_0x4986d2=(0x0,n[_0x5cf26d(0x297)])(_0x3810fc,e['CollaborationStatus'][_0x5cf26d(0x34b)]),_0x545831=(0x0,n[_0x5cf26d(0x37c)])(t[_0x5cf26d(0x292)]),_0x10009f=(0x0,n[_0x5cf26d(0x37c)])(e['CollaborationSessionService']),_0x362f7d=(0x0,s[_0x5cf26d(0x39c)])(()=>ee(_0x4986d2),[_0x4986d2]),_0x4ba7b8=_0x4986d2!==e[_0x5cf26d(0x373)][_0x5cf26d(0x321)],_0xb9b984=_0x545831['t'](_0x362f7d[_0x5cf26d(0x3e4)]),_0x9d41c1=_0x362f7d[_0x5cf26d(0x345)]?_0x545831['t'](_0x362f7d[_0x5cf26d(0x345)]):_0xb9b984,_0x5149bd=(0x0,s[_0x5cf26d(0x2b1)])(()=>{_0x4ba7b8||_0x10009f['reconnect']();},[_0x4ba7b8,_0x10009f]),_0x296d79=(0x0,s[_0x5cf26d(0x2b1)])(_0x403eb2=>{const _0x450b51=_0x5cf26d;!_0x4ba7b8&&(_0x403eb2[_0x450b51(0x146)]==='Enter'||_0x403eb2[_0x450b51(0x146)]==='\x20')&&(_0x403eb2[_0x450b51(0x3fd)](),_0x10009f[_0x450b51(0x375)]());},[_0x4ba7b8,_0x10009f]),_0x5169e4=(0x0,c[_0x5cf26d(0x350)])(_0x5cf26d(0x1af),{'className':(0x0,a[_0x5cf26d(0x16a)])(_0x5cf26d(0x304),_0x5cf26d(0x2d9),_0x362f7d[_0x5cf26d(0x1d5)],{'univer-animate-spin':_0x362f7d[_0x5cf26d(0x1c0)]===_0x5cf26d(0x2bd),'univer-animate-pulse':_0x362f7d[_0x5cf26d(0x1c0)]==='pulse'}),'aria-hidden':'true','children':_0x362f7d[_0x5cf26d(0x348)]}),_0x1813a7=(0x0,c['jsx'])(_0x5cf26d(0x1af),{'className':(0x0,a['clsx'])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x5cf26d(0x282),_0x5cf26d(0x1f4),_0x5cf26d(0x169),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x362f7d[_0x5cf26d(0x337)],'univer-cursor-default':!_0x362f7d[_0x5cf26d(0x337)]}),'children':_0x5169e4});return _0x362f7d[_0x5cf26d(0x337)]?(0x0,c['jsx'])(a[_0x5cf26d(0x183)],{'title':_0x9d41c1,'placement':_0x5cf26d(0x132),'children':(0x0,c[_0x5cf26d(0x350)])(_0x5cf26d(0x358),{'type':_0x5cf26d(0x358),'onClick':_0x5149bd,'onKeyDown':_0x296d79,'className':(0x0,a[_0x5cf26d(0x16a)])(_0x5cf26d(0x1e6),_0x5cf26d(0x408),'univer-m-0\x20univer-p-0','univer-appearance-none'),'aria-label':_0xb9b984+_0x5cf26d(0x3cb)+_0x9d41c1,'role':_0x5cf26d(0x171),'aria-live':_0x5cf26d(0x28c),'aria-atomic':_0x5cf26d(0x3dd),'children':_0x1813a7})}):(0x0,c['jsx'])(a[_0x5cf26d(0x183)],{'title':_0x9d41c1,'placement':_0x5cf26d(0x132),'children':(0x0,c[_0x5cf26d(0x350)])(_0x5cf26d(0x1cf),{'className':(0x0,a['clsx'])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x5cf26d(0x408),_0x5cf26d(0x32a)),'aria-label':_0xb9b984,'role':_0x5cf26d(0x171),'aria-live':_0x5cf26d(0x28c),'aria-atomic':_0x5cf26d(0x3dd),'children':_0x1813a7})});}function y(_0x3c2bba){'@babel/helpers - typeof';const _0x3ddaf4=_0x409fb3;return y=typeof Symbol==_0x3ddaf4(0x221)&&typeof Symbol[_0x3ddaf4(0x157)]==_0x3ddaf4(0x338)?function(_0xfb5b98){return typeof _0xfb5b98;}:function(_0x183499){const _0x44f966=_0x3ddaf4;return _0x183499&&typeof Symbol==_0x44f966(0x221)&&_0x183499[_0x44f966(0x1f8)]===Symbol&&_0x183499!==Symbol[_0x44f966(0x233)]?_0x44f966(0x338):typeof _0x183499;},y(_0x3c2bba);}function ne(_0x501bd7,_0x453f52){const _0x9e33b9=_0x409fb3;if(y(_0x501bd7)!=_0x9e33b9(0x198)||!_0x501bd7)return _0x501bd7;var _0x58b473=_0x501bd7[Symbol[_0x9e33b9(0x3a2)]];if(_0x58b473!==void 0x0){var _0xca5572=_0x58b473[_0x9e33b9(0x2e0)](_0x501bd7,_0x453f52||_0x9e33b9(0x404));if(y(_0xca5572)!=_0x9e33b9(0x198))return _0xca5572;throw TypeError(_0x9e33b9(0x1b5));}return(_0x453f52===_0x9e33b9(0x437)?String:Number)(_0x501bd7);}function re(_0x3c6a62){const _0x4d4fa1=_0x409fb3;var _0x214ee9=ne(_0x3c6a62,_0x4d4fa1(0x437));return y(_0x214ee9)==_0x4d4fa1(0x338)?_0x214ee9:_0x214ee9+'';}function b(_0x64eb6e,_0x579ded,_0x413a90){const _0x2b07b8=_0x409fb3;return(_0x579ded=re(_0x579ded))in _0x64eb6e?Object[_0x2b07b8(0x170)](_0x64eb6e,_0x579ded,{'value':_0x413a90,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x64eb6e[_0x579ded]=_0x413a90,_0x64eb6e;}function x(_0x1bbcc8,_0x5b5abc){return function(_0x4c6f22,_0x536678){_0x5b5abc(_0x4c6f22,_0x536678,_0x1bbcc8);};}function S(_0x11c49b,_0x427af1,_0x35d798,_0x2453a1){const _0x2b8dcd=_0x409fb3;var _0x23488c=arguments['length'],_0x3a65ed=_0x23488c<0x3?_0x427af1:_0x2453a1===null?_0x2453a1=Object[_0x2b8dcd(0x1ab)](_0x427af1,_0x35d798):_0x2453a1,_0x20e3ff;if(typeof Reflect==_0x2b8dcd(0x198)&&typeof Reflect[_0x2b8dcd(0x3dc)]==_0x2b8dcd(0x221))_0x3a65ed=Reflect['decorate'](_0x11c49b,_0x427af1,_0x35d798,_0x2453a1);else{for(var _0x46276f=_0x11c49b['length']-0x1;_0x46276f>=0x0;_0x46276f--)(_0x20e3ff=_0x11c49b[_0x46276f])&&(_0x3a65ed=(_0x23488c<0x3?_0x20e3ff(_0x3a65ed):_0x23488c>0x3?_0x20e3ff(_0x427af1,_0x35d798,_0x3a65ed):_0x20e3ff(_0x427af1,_0x35d798))||_0x3a65ed);}return _0x23488c>0x3&&_0x3a65ed&&Object[_0x2b8dcd(0x170)](_0x427af1,_0x35d798,_0x3a65ed),_0x3a65ed;}let C=class extends t[_0x409fb3(0x277)]{constructor(_0x4b65cd,_0x247679,_0x517744,_0x5ad4b5,_0x16f87f){const _0x489ec3=_0x409fb3;super(),this[_0x489ec3(0x1ce)]=_0x4b65cd,this['_injector']=_0x247679,this[_0x489ec3(0x1e4)]=_0x517744,this[_0x489ec3(0x42d)]=_0x5ad4b5,this[_0x489ec3(0x19b)]=_0x16f87f,b(this,_0x489ec3(0x390),new r[(_0x489ec3(0x392))](e[_0x489ec3(0x373)][_0x489ec3(0x34b)])),b(this,_0x489ec3(0x434),new Map()),this[_0x489ec3(0x27f)](),this['_initStatusListener'](),this[_0x489ec3(0x162)]();}[_0x409fb3(0x2c8)](){const _0x2b1aa3=_0x409fb3;this[_0x2b1aa3(0x434)][_0x2b1aa3(0x2e3)](_0x52b0d5=>_0x52b0d5['dispose']()),this[_0x2b1aa3(0x434)][_0x2b1aa3(0x365)](),this['_status$']['complete'](),super['dispose']();}[_0x409fb3(0x33d)](){const _0x516b4f=_0x409fb3;this[_0x516b4f(0x415)]((0x0,r[_0x516b4f(0x245)])(this[_0x516b4f(0x1ce)][_0x516b4f(0x1ff)],this[_0x516b4f(0x1ce)][_0x516b4f(0x186)](t[_0x516b4f(0x24d)][_0x516b4f(0x296)]),this[_0x516b4f(0x1ce)][_0x516b4f(0x186)](t['UniverInstanceType'][_0x516b4f(0x3bf)]))[_0x516b4f(0x423)]((0x0,i[_0x516b4f(0x3c9)])(()=>ie(this[_0x516b4f(0x1ce)])),(0x0,i[_0x516b4f(0x40b)])(),(0x0,r[_0x516b4f(0x37e)])(_0x2155dc=>_0x2155dc?this['_collaborationController'][_0x516b4f(0x32c)](_0x2155dc):(0x0,r['of'])(null)),(0x0,r['switchMap'])(_0x340917=>_0x340917?_0x340917[_0x516b4f(0x389)]:(0x0,r['of'])(e[_0x516b4f(0x373)]['NOT_COLLAB'])))['subscribe'](_0x52b0dc=>{const _0x48ef98=_0x516b4f;this[_0x48ef98(0x390)][_0x48ef98(0x1a1)](_0x52b0dc);}));}[_0x409fb3(0x27f)](){const _0x32cfd1=_0x409fb3;this['disposeWithMe'](this[_0x32cfd1(0x42d)]['registerComponent'](n[_0x32cfd1(0x37f)][_0x32cfd1(0x1ed)],()=>(0x0,n[_0x32cfd1(0x1f5)])(ae({'status$':this['_status$']['asObservable']()}),this['_injector'])));}[_0x409fb3(0x162)](){const _0x717e7a=_0x409fb3;let _0x56de38=this[_0x717e7a(0x19b)][_0x717e7a(0x306)][_0x717e7a(0x1ac)](_0x1e3e70=>{const _0x5beb1b=_0x717e7a;this[_0x5beb1b(0x202)](_0x1e3e70);});this['disposeWithMe']((0x0,t[_0x717e7a(0x19e)])(()=>_0x56de38[_0x717e7a(0x343)]()));}['_syncPresenceStatusComponents'](_0x2ede2e){const _0x4a94ab=_0x409fb3;let _0x28d62b=new Map(_0x2ede2e[_0x4a94ab(0x232)](_0x759064=>_0x759064['statusUIPart']!=null)[_0x4a94ab(0x3c9)](_0x5dbc73=>[_0x5dbc73[_0x4a94ab(0x2c9)],_0x5dbc73]));this[_0x4a94ab(0x434)][_0x4a94ab(0x2e3)]((_0x5b377b,_0x3716eb)=>{const _0x31abe1=_0x4a94ab;_0x28d62b[_0x31abe1(0x1e0)](_0x3716eb)||(_0x5b377b[_0x31abe1(0x2c8)](),this[_0x31abe1(0x434)][_0x31abe1(0x205)](_0x3716eb));}),_0x28d62b[_0x4a94ab(0x2e3)]((_0x568124,_0x317a6a)=>{const _0x196b2d=_0x4a94ab;this[_0x196b2d(0x434)][_0x196b2d(0x1e0)](_0x317a6a)||this[_0x196b2d(0x1a7)](_0x568124);});}['_registerPresenceStatusComponent'](_0x3ea45a){const _0x5806f6=_0x409fb3;let _0x173948=_0x3ea45a[_0x5806f6(0x303)];if(!_0x173948)return;let _0x3d4897=new t[(_0x5806f6(0x353))](),_0x2d0b7f=new r[(_0x5806f6(0x392))](e[_0x5806f6(0x373)][_0x5806f6(0x34b)]);_0x3d4897[_0x5806f6(0x2ce)]((0x0,t[_0x5806f6(0x19e)])(()=>_0x2d0b7f[_0x5806f6(0x27b)]())),_0x3d4897['add'](this['_uiPartsService']['registerComponent'](_0x173948,()=>(0x0,n['connectInjector'])(ae({'status$':_0x2d0b7f[_0x5806f6(0x1c2)]()}),this['_injector'])));let _0x53b495=this[_0x5806f6(0x1ce)][_0x5806f6(0x186)](_0x3ea45a[_0x5806f6(0x2c9)])[_0x5806f6(0x423)]((0x0,i[_0x5806f6(0x3c9)])(_0x4a9b7d=>(_0x4a9b7d==null?void 0x0:_0x4a9b7d[_0x5806f6(0x3ba)]())??null),(0x0,i['distinctUntilChanged'])(),(0x0,r['switchMap'])(_0x3a3ee8=>_0x3a3ee8?this['_collaborationController'][_0x5806f6(0x32c)](_0x3a3ee8):(0x0,r['of'])(null)),(0x0,r[_0x5806f6(0x37e)])(_0x34fbab=>(_0x34fbab==null?void 0x0:_0x34fbab['status$'])??(0x0,r['of'])(e[_0x5806f6(0x373)][_0x5806f6(0x34b)])))[_0x5806f6(0x1ac)](_0xe1b3b0=>_0x2d0b7f[_0x5806f6(0x1a1)](_0xe1b3b0));_0x3d4897['add']((0x0,t[_0x5806f6(0x19e)])(()=>_0x53b495[_0x5806f6(0x343)]())),this['_presenceStatusRegistrations'][_0x5806f6(0x16b)](_0x3ea45a[_0x5806f6(0x2c9)],_0x3d4897);}};C=S([x(0x0,t[_0x409fb3(0x21b)]),x(0x1,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x2,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x2fe)])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t['Inject'])(n[_0x409fb3(0x275)]))],C);function ie(_0x2b8249){const _0x290982=_0x409fb3;let _0x4f5a78=_0x2b8249[_0x290982(0x23e)](),_0x2f93da=_0x4f5a78==null?void 0x0:_0x4f5a78['getUnitId']();if(_0x2f93da&&!(0x0,t['isInternalEditorID'])(_0x2f93da))return _0x2f93da;let _0x444dfe=_0x2b8249[_0x290982(0x380)](t['UniverInstanceType'][_0x290982(0x296)]),_0x5b5809=_0x444dfe==null?void 0x0:_0x444dfe['getUnitId']();if(_0x5b5809&&!(0x0,t[_0x290982(0x2c6)])(_0x5b5809))return _0x5b5809;let _0x28df85=_0x2b8249[_0x290982(0x380)](t[_0x290982(0x24d)]['UNIVER_SHEET']);if(_0x28df85)return _0x28df85[_0x290982(0x3ba)]();let _0x4441fc=_0x2b8249[_0x290982(0x2b9)](t[_0x290982(0x24d)][_0x290982(0x296)])[_0x290982(0x1d9)](_0xd94b4=>!(0x0,t[_0x290982(0x2c6)])(_0xd94b4[_0x290982(0x3ba)]()));return _0x4441fc?_0x4441fc[_0x290982(0x3ba)]():null;}function _0x5cc2(){const _0x5f14ef=['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getColor','_initDependencies','_getScale','colno','removeRemotePresence','type','_selfUnitIDs','_blinkIntervalTimer','getUnitId','startRow','SheetSkeletonManagerService','dispose$','_textBubble','UNIVER_SHEET','_getLighterColor','pageIndex','searchParams','getSelectionInfo','[LogService\x20Error]:\x20','m2Prime','_scene','toRgbString','toISOString','map','post','\x20-\x20','_pointerMoveDisposable','getSheetObject','DocIMEInputManagerService','fillStyle','setUndoRedoMutationParamsCache','triggerDblclick','getTypeOfUnitDisposed$','handleInsertCol','[CollaborationDataLoaderController]','CollaborationSocketService','getMemberID','_toggleOffline','_stopBlinking','EffectRefRangId','getDocumentSkeletonColumnPagePathInfo','CommandType','decorate','true','/universer-api/frontend/logs','_pendingEntities','registerCommand','memberId','join','_collaborationUIEventService','i18nKey','[RemoteUniscriptService]:\x20no\x20focused\x20unit','disableLocalCache','bold\x2013px\x20Arial,\x20sans-serif','_initWindowErrorListener','primary','columnGroupId','parse','_handleHeartbeatEvent','OPERATION','urlChange$','InsertRangeMoveDownCommandId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','IMessageService','registerRefRange','fromEventSubject','currentTheme$','getCurrentRevOfUnit','loadOfflineData',':backup:','_id','IConfigService','COLORS','_startEntity','386GmkWyx','preventDefault','UniverCollaborationClientUIPlugin','error','font','entries','SetSelectionsOperation','_timeoutState$','default','_name','OnLineIcon','_unitStatus','univer-border-none\x20univer-bg-transparent','SHEET_VIEWPORT_KEY','socket$','distinctUntilChanged','isEditing','_bindAdapter','AWAITING','collaboration-client-ui.collabStatus.syncing','_disposeEntitiesForType','OTHER_CLIENT_EDITING','replace','purple.300','_revisionService','disposeWithMe','from','getStateCache','code','SYNCED','_lastPointer','throttle','drawWith','_updateSubUnitFromURLParams','getConfig','_drawAnchor','univer-text-red-500','labelHorizontalPosition','_labelHorizontalPosition','pipe','get','InsertRangeMoveRightCommandId','measureText','OTHER_CLIENTS_EDITING','WebBrowserSingleActiveUnitService','_localeService','handleInsertRangeMoveRight','_sheetSkeletonManagerService','FOOTER','_uiPartsService','transformMutationsWithChangeset','throttleTime','RECT','_highlight','_docStateChangeManagerService','isFinite','_presenceStatusRegistrations','collaboration-client-ui.collaboration.single-unit.warning','BrowserCollaborationSocketService','string','bottom','handleInsertRow','collaboration-client-ui.session.collaboration-timeout','collaboration-client-ui.session.connection-failed','_sendLocalPresence','@univerjs-pro/collaboration-client-ui','message','restore','_toggleOnline','send','endColumn','_initialized','isTransformMutationFailure','getUnit','invokeId','_cursors','_messageIds','getParam','getLocalCacheKey','shareInterval','key','ONLINE','currentSkeleton$','_memberID','left','_shapes','ILocalCacheService','UniverDocsPlugin','SetWorksheetActivateCommand','_cursor','UPDATE_CURSOR','WebSocketService','ACTIVE_UNIT_EVENT_CHANNEL','size','reload','RegularPolygon','VIEW_MAIN','iterator','timeoutState$','touchDependencies','enableLocalCache','moveTo','_entities','#FFF','_getSessionTicket','1368304PVXFZj','NodePositionConvertToRectRange','_backgroundColor','_initPresenceStatusComponents','setAlpha','_memberService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','split','onCommandExecuted','dark:focus:!univer-ring-offset-gray-800','clsx','set','_syncAdapters','setTimeout','filename','catch','defineProperty','status','unitID','contains','collabCursorState$','UniverCollaborationPlugin','UniverLicensePlugin','collaboration-client-ui.collabStatus.synced','_messageService','transformStateCache','requireSession','stage','_collaborationSessionService','_onCursorUpdate','backupOfflineData','_localCacheService','DependentOn','init','body','Tooltip','RxDisposable','debug','getCurrentTypeOfUnit$','onPointerLeave$','ThemeService','Shape','_uploadLog','_isBlinkVisible','TRANSFORM_CHANGE_OBSERVABLE_TYPE','univer-text-blue-500','_clearOtherTimers','application/json','handleInsertRangeMoveDown','allSettled','_getAnchorBounding','loadedBlocks','SUBMIT_CHANGESET_TIMEOUT','range','_collabCursorController','_transformUndoRedoStack','object','width','handleIRemoveCol','_presenceAdapterRegistry','LoadingMultiIcon','/run/','toDisposable','handleIRemoveRow','NO_OTHER_CLIENTS_EDITING','next','_heartbeatTimer','_eventUnsubscribe','rgba','update','getCellIndexByOffset','_registerPresenceStatusComponent','_handleEvent','now','finally','getOwnPropertyDescriptor','subscribe','DocumentSkeletonPageType','pluginName','span','isArray','_onCursorDelete','getActiveSheet','fill','collaboration-client-ui.snapshotLoading.timeout','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_docTransformSelectionsService','executeCommand','getCurrentSkeleton','_urlService','17861833oZvSBh','isActive','ColorKit','_adapter','roomMembers','collaboration-client-ui.conflict.processing','indicator','exhaustSavingTask','asObservable','lineTo','DataLoaderService','_online','_init','univer-text-gray-400','removeEventListener','_handleJoinEvent','height','RefRangeService','canRenderAnchor','includes','_univerInstanceService','div','unhandledrejection','clearInterval','location','toString','TEXT_RANGE_LAYER_INDEX','colorClass','then','NodePositionConvertToCursor','_draw','find','RevisionService','redoState','CONFLICT','getAncestorScale','collaboration-client-ui.collabClient.tooltip.reconnect','getCoordByCell','has','addObject','_clearRemotePresences','IUIPartsService','_collaborationController','_activeSaveTaskMap','univer-inline-flex\x20univer-items-center\x20univer-justify-center','deepClone','_handleHover','_removeRemotePresence','collaboration-client-ui.collabStatus.conflict','getMergeData','_updateCollabCursors','HEADER_MENU','params','Error','event$','replaceSelectionInfoWithoutRefresh','_themeService','ILogService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','connectInjector','_colorIndex','setConfig','constructor','registerRenderModule','length','UnitStatus','startsWith','_anchorDot','m1Prime','focused$','clearOfflineData',',\x200.2)','_syncPresenceStatusComponents','options','Loading','delete','IURLService','CollaborationSessionService','generateRandomId','_conflictNotification','replaceState','timer','CONFLICT_PROCESSING','_registerRenderDependencies','CONFLICT_CACHE_CLEAR_FAILED','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','IRenderManagerService','111184fxoDwQ','_transformService','_adapterDisposables','pageType','setActiveRange','subUnitId','content','_transformHistoryAndStateStack','handleMoveRange','univer-text-orange-500','IUniverInstanceService','UniverNetworkPlugin','showText','_drawTextRange','_setupBeforeClosingHandler','_hovered','function','_disabled','_setupSubUnitSync','row','FromArray','registerDependencies','debounce','ICommandService','tableSource','collaboration-client-ui.permission.title','static','getRangePointData','runId','segmentPage','mapTo','_initUserListener','pointer','filter','prototype','blue.400','ITransformService','number','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','HTTPService','Rect','_beforeCloseService','IImageIoService','_entityInit$','black','getFocusedUnit','CollaborationUIEventService','HEADER','collaboration-client-ui.permission.content','_send','red.300','undoState','merge','resize','max','getValue','_docTransformStateCacheService','_offsetY','_isDisposed','takeUntil','UniverInstanceType','focusedId','onMouseMove','getRenderUnitById','RemoteUniscriptService','_logService','FETCH_MISS','sessionStatus$','collab-rect-range-','loadUnit','MemberService','registerComponent','pushState','_labelPosition','SheetsSelectionsService','values','IBeforeCloseService','Injector','tableId','transformByState','2945808QbKkwu','getSkeleton','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','saveOfflineData','save','_clearBlockProgressWatch','mutations','_initUnhandledRejectionListener','setItem','_commandService','unshift','alert','_initEvent','unit','enableDocumentCollaborationUI','all','_assignedColors','sheetId','1.0.1','arc','IUnitPresenceUIAdapterRegistry','data','Disposable','_disposed','_configService','history','complete','_cachedData','highlightSecond','_docTransformIMECacheService','_initStatusComponent','_onRefRangeChange','state','univer-transition-all\x20univer-duration-200','ISnapshotServerService','_docSelectionManagerService','enableFrontendLog','getCollabCursors$','UniverRenderEnginePlugin','_transformPreviousActiveRange','onPointerEnter$','loading','canRenderSelection','polite','setOffsetY','roomMembers$','_doCreateSocket','rgba(255,\x20255,\x20255,\x200.01)','SOCKET_FAILED_RETRY','LocaleService','getDocRanges','SnapshotLoadStage','deserializeRangeWithSheet','UNIVER_DOC','useObservable','getItem','CollaborationEvent','search','DOC_RANGE_TYPE','transformRemoteChangeset','activate','Tools','_showText','strokeWidth','Button','entityInit$','show','_renderManagerService','LOCAL_CACHE_INTERVAL','_initEntityListener','DocSelectionManagerService','UniverDocsUIPlugin','_collabCursorState$','presenceKind','green.600','setShapeProps','8358669FquBUZ','wsSessionTicketUrl','rgb','_range','useCallback','popstate','slice','clearTimeout','_replaceConflictNotification','stack','_roomMembers$','PERMISSION_DENIED','getAllUnitsForType','doc.mutation.rich-text-editing','memberID','source','spin','highlight','Subject','endOffset','MoveRangeCommandId','prepareTransformSelections','Vector2','_removeCollabCursors','evenodd','isInternalEditorID','GLOBAL','dispose','unitType','getSheetBySheetId','_imageIoService','RemoveColCommandId','getMember','add','_retryConflictCacheClear','combineLatest','lineno','addClipboardHook','activeSheet$','getColorFromTheme','bind','packageName','isTransformMutationsWithChangesetSuccess','_trackActiveSaveTask','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_getSheetObject','min','collaboration-client-ui.snapshotLoading.refresh','_latestStates','backgroundColor','push','call','RemoveRowCommandId','TEXT','forEach','Plugin','_colorAssignService','UniverCollaborationClientPlugin','collaboration-client-ui.collabStatus.fetchMiss','disposeUnit','setStateCache','Unknown\x20user','toStringTag','_render','every','_getSaveTimeout','_collabSessionService','DesktopCollaborationStatusDisplayController','columnIndex','collaboration-client-ui.conflict.clearFailed','jsxs','_session','_docSkeletonManagerService','_localStorageService','clearRemotePresences','_getMergeRange','getLocalPresence','offsetY','registerBeforeClose','version','_startBlinking','CollaborationController','hide','_httpService','17856FskrLF','_anchor','statusUIPart','univer-flex\x20univer-items-center\x20univer-justify-center','LOCAL_CACHE_INTERVAL_KEY','adapters$','remove','textRanges','parseInt','assignAColorForMemberID','origin','flatMap','state$','_createSocketURL','collaboration-client-ui.collaboration.closeRoom','_docSyncEditingCollabCursorService','setInterval','unitId','createElement','setParam','collaboration-client-ui.collabStatus.offline','_initCommandExecutedListener','_context','getTypeOfUnitAdded$','_cursorShapes','CLOSE_ROOM','result','saveImage','ISocketService','yellow.400','endRow','USERS_LEAVE','OFFLINE','_isVisibleUnit','_updateMessage','handleDeleteRangeMoveUp','Warning','_unitOnClients','_clearTimeoutState','subunit','Inject','univer-m-0\x20univer-p-0','_document','getCollabEntity$','top','_handleLeaveEvent','stringify','Rectangle','20UTzjRh','_ensureSubject','_startSheetCollabCursor','Workbook','_saveCache','_notificationService','clickable','symbol','_watchBlockProgress','WarningIcon','color','ILocalStorageService','_initStatusListener','DEFAULT_WS_SESSION_TICKET_URL','text','collab-text-anchor-','timeoutId','kind','unsubscribe','ranges','tooltipKey','saveTaskMap','findNodePositionByCharIndex','icon','small','collab-text-range-','NOT_COLLAB','SetTextSelectionsOperation','_scheduleHeartbeat','getActiveRange','_hover','jsx','getViewport','cursorInfo$','DisposableCollection','_scheduleClearOtherTimer','SessionStatus','fillText','_color','button','selectedIds','column','createSocket','collaboration-client-ui.conflict.title','removeItem','startOffset','Failed','_adapterRegistry','InsertRowCommandId','labelPosition','onTransformChange$','SetDocZoomRatioOperation','clear','_startDocCollabCursor','CollaborationUIEventId','sessionTicket','SheetCollabCursorShape','_drawRectRange','storage','addEventListener','createInstance','_blockProgressWatches','_cursorInfo$','snapshot-loading-timeout','getUndoRedoMutationParamsCache','makeDirty','CollaborationStatus','_showConflictProcessingNotification','reconnect','_instanceService','[Unhandled\x20Rejection]:\x20','_updateLocalCursor','removeParam','PENDING','refreshLabel','useDependency','_refreshCollabCursors','switchMap','BuiltInUIPart','getCurrentUnitOfType','_injector','154fmWhiC','with','_dataLoaderService','univer-text-green-500','INotificationService','some','SOCKET_FAILED','status$','transformMutation','_snapshotLoadingService','subscribeEvent','getSheetId','href','2010925OGRUJR','_status$','RichTextEditingMutation','BehaviorSubject','_monkeyPatchLogService','runRefRangeMutations','timedOut','4wPNIVx','cursorInfo','addObjects','Module','transformIMECache','_removeClearOtherTimer','useMemo','selection','MessageType','_scheduleSaving','_hideTimer','collaboration-client-ui.session.will-retry','toPrimitive','uni.network.url-service','handleDeleteRangeMoveLeft','_saveTaskMap','_retryingConflictCacheUnitIDs','_config','...','_refRangeService','addHandlerCallback','_highlightSecond','eventID','_registerDependencies','jiqing.500','_blinkTimer','_disposeEntity'];_0x5cc2=function(){return _0x5f14ef;};return _0x5cc2();}function ae(_0x2f0da4){let {status$:_0x9e3572}=_0x2f0da4;return function(){const _0x5be08a=_0x4188;return(0x0,c[_0x5be08a(0x350)])(te,{'status$':_0x9e3572});};}var oe=_0x409fb3(0x137),se=_0x409fb3(0x273);const w={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':t[_0x409fb3(0x3db)][_0x409fb3(0x3ed)],'handler':(_0x58f932,_0x416eaa)=>{const _0xa9c624=_0x409fb3;let _0x18a758=_0x58f932[_0xa9c624(0x424)](n[_0xa9c624(0x275)])[_0xa9c624(0x424)](_0x416eaa[_0xa9c624(0x2c9)]);if(!_0x18a758)return!0x1;switch(_0x416eaa['update'][_0xa9c624(0x3b7)]){case _0xa9c624(0x16b):return _0x18a758['setRemotePresence'](_0x416eaa[_0xa9c624(0x1a5)][_0xa9c624(0x281)]),!0x0;case _0xa9c624(0x307):return _0x18a758[_0xa9c624(0x3b6)](_0x416eaa[_0xa9c624(0x1a5)][_0xa9c624(0x312)],_0x416eaa['update'][_0xa9c624(0x3e1)]),!0x0;case _0xa9c624(0x365):return _0x18a758[_0xa9c624(0x2f7)](_0x416eaa[_0xa9c624(0x1a5)][_0xa9c624(0x312)]),!0x0;default:return!0x1;}}},ce={};let T=class extends t[_0x409fb3(0x184)]{constructor(_0x4e8d58,_0x1f9c0f){const _0x3f359c=_0x409fb3;super(),this['_docClipboardService']=_0x4e8d58,this[_0x3f359c(0x2cb)]=_0x1f9c0f,this[_0x3f359c(0x1c6)]();}['_init'](){const _0x5d7db6=_0x409fb3;let _0xa1b01d=this;this['disposeWithMe'](this['_docClipboardService'][_0x5d7db6(0x2d2)]({'onBeforePasteImage':async _0x12bc03=>{const _0x305b72=_0x5d7db6;let _0x25f454=await _0xa1b01d['_imageIoService'][_0x305b72(0x31c)](_0x12bc03);return _0x25f454?{'source':_0x25f454[_0x305b72(0x2bc)],'imageSourceType':_0x25f454['imageSourceType']}:null;}}));}};T=S([x(0x0,f['IDocClipboardService']),x(0x1,t[_0x409fb3(0x23b)])],T);const le=[_0x409fb3(0x413),_0x409fb3(0x3ae),_0x409fb3(0x2ab),_0x409fb3(0x243),_0x409fb3(0x234),_0x409fb3(0x31e)];var E=class extends t[_0x409fb3(0x277)]{constructor(..._0x109793){const _0x298cca=_0x409fb3;super(..._0x109793),b(this,_0x298cca(0x271),new Map()),b(this,_0x298cca(0x1f6),0x0);}['assignAColorForMemberID'](_0x242c62){const _0x31b13b=_0x409fb3;if(this['_assignedColors'][_0x31b13b(0x1e0)](_0x242c62))return this[_0x31b13b(0x271)][_0x31b13b(0x424)](_0x242c62);let _0x391022=le[this[_0x31b13b(0x1f6)]];return this[_0x31b13b(0x1f6)]=(this[_0x31b13b(0x1f6)]+0x1)%le[_0x31b13b(0x1fa)],this[_0x31b13b(0x271)]['set'](_0x242c62,_0x391022),_0x391022;}};function ue(_0x2119e5){let _0x3428ed='';for(let _0x389fef of _0x2119e5){let {startOffset:_0xaafc21,endOffset:_0x5cb2fd,isActive:_0x389a3b,rangeType:_0xf1f980,segmentId:_0x272dc0,segmentPage:_0x3b749e}=_0x389fef;_0x3428ed['length']&&(_0x3428ed+=','),_0x3428ed+=_0xaafc21+':'+_0x5cb2fd+':'+(_0x389a3b?'1':'0')+':'+_0xf1f980+':'+_0x272dc0+':'+_0x3b749e;}return _0x3428ed;}function de(_0xa3baa7){const _0x5e4b47=_0x409fb3;let _0x24a03b=_0xa3baa7[_0x5e4b47(0x167)](','),_0x25fa00=[];for(let _0x30cf59 of _0x24a03b){let [_0x5d2ec7,_0x48c888,_0x32f52e,_0x402974,_0x15b823,_0x1735fd]=_0x30cf59[_0x5e4b47(0x167)](':');_0x25fa00[_0x5e4b47(0x2df)]({'startOffset':Number(_0x5d2ec7),'endOffset':Number(_0x48c888),'collapsed':_0x5d2ec7===_0x48c888,'isActive':_0x32f52e==='1','rangeType':_0x402974===t[_0x5e4b47(0x29b)][_0x5e4b47(0x2e2)]?t[_0x5e4b47(0x29b)][_0x5e4b47(0x2e2)]:t[_0x5e4b47(0x29b)][_0x5e4b47(0x430)],'segmentId':typeof _0x15b823==_0x5e4b47(0x437)?String(_0x15b823):'','segmentPage':Number(_0x1735fd??-0x1)});}return _0x25fa00[_0x5e4b47(0x387)](_0x122ce8=>_0x122ce8[_0x5e4b47(0x1bb)])||(_0x25fa00[0x0][_0x5e4b47(0x1bb)]=!0x0),_0x25fa00;}var D=class extends t[_0x409fb3(0x184)]{constructor(..._0x16e418){const _0x1838f5=_0x409fb3;super(..._0x16e418),b(this,'_collabCursorState$',new r[(_0x1838f5(0x392))](null)),b(this,_0x1838f5(0x174),this['_collabCursorState$'][_0x1838f5(0x1c2)]());}['syncEditingCollabCursor'](_0x3fa979){const _0x16c3ff=_0x409fb3;let {unitID:_0x45f7ca,memberID:_0x4972b0,textRanges:_0x351a3f}=_0x3fa979,_0x7035d8=ue(_0x351a3f);if(_0x7035d8==='')return;let _0x105038={'unitID':_0x45f7ca,'memberID':_0x4972b0,'selection':_0x7035d8};this[_0x16c3ff(0x2a9)]['next'](_0x105038);}};let O=class extends t[_0x409fb3(0x184)]{get['cursorInfo'](){const _0x1f87a0=_0x409fb3;return this['_cursorInfo$'][_0x1f87a0(0x248)]();}get[_0x409fb3(0x1be)](){const _0x17e50b=_0x409fb3;return this[_0x17e50b(0x2b7)]['getValue']();}constructor(_0x47fa32,_0x2cb6c4,_0x127da6,_0x40125c,_0x55314d,_0x5e5b41,_0x4e2d43,_0x56d24a,_0x44e45e){const _0x55fe88=_0x409fb3;super(),this['unitID']=_0x47fa32,this[_0x55fe88(0x2f4)]=_0x2cb6c4,this['_injector']=_0x127da6,this[_0x55fe88(0x2e5)]=_0x40125c,this[_0x55fe88(0x164)]=_0x55314d,this['_syncEditingCollabCursorService']=_0x5e5b41,this['_transformService']=_0x4e2d43,this['_univerInstanceService']=_0x56d24a,this['_commandService']=_0x44e45e,b(this,_0x55fe88(0x1c5),!0x1),b(this,'_init',!0x1),b(this,_0x55fe88(0x36f),new r[(_0x55fe88(0x392))](new Map())),b(this,_0x55fe88(0x352),this[_0x55fe88(0x36f)][_0x55fe88(0x1c2)]()),b(this,_0x55fe88(0x2b7),new r[(_0x55fe88(0x392))]([])),b(this,_0x55fe88(0x28e),this['_roomMembers$'][_0x55fe88(0x423)]((0x0,r['debounceTime'])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x55fe88(0x227)])(_0x2c7461=>{const _0xdf8c58=_0x55fe88;let _0x14f4e1={'eventID':l[_0xdf8c58(0x299)][_0xdf8c58(0x150)],'data':{'unitID':this[_0xdf8c58(0x172)],'memberID':this[_0xdf8c58(0x2f4)][_0xdf8c58(0x3d6)](),'selection':ue(_0x2c7461)}};this['_session'][_0xdf8c58(0x13b)](_0x14f4e1,this[_0xdf8c58(0x172)]);},0x64));}[_0x409fb3(0x2c8)](){const _0x3d0203=_0x409fb3;super[_0x3d0203(0x2c8)](),this[_0x3d0203(0x36f)][_0x3d0203(0x1a1)](new Map()),this[_0x3d0203(0x36f)][_0x3d0203(0x27b)](),this[_0x3d0203(0x2b7)][_0x3d0203(0x1a1)]([]),this['_roomMembers$'][_0x3d0203(0x27b)]();}[_0x409fb3(0x181)](){const _0x463f33=_0x409fb3;this['_init']||(this[_0x463f33(0x1c6)]=!0x0,this[_0x463f33(0x2f4)][_0x463f33(0x254)][_0x463f33(0x423)]((0x0,r[_0x463f33(0x24c)])(this[_0x463f33(0x3bd)]))[_0x463f33(0x1ac)](_0x14946a=>{const _0x132da6=_0x463f33;_0x14946a===e[_0x132da6(0x355)][_0x132da6(0x147)]?this['_toggleOnline']():this[_0x132da6(0x3d7)]();}),this[_0x463f33(0x2f4)]['event$'][_0x463f33(0x423)]((0x0,r[_0x463f33(0x24c)])(this[_0x463f33(0x3bd)]))[_0x463f33(0x1ac)](_0x4e5bb4=>{const _0x3a196e=_0x463f33;let _0x192499=_0x4e5bb4[_0x3a196e(0x3ac)];_0x192499===l[_0x3a196e(0x299)][_0x3a196e(0x150)]&&this[_0x3a196e(0x17d)](_0x4e5bb4),_0x192499===l['CollaborationEvent'][_0x3a196e(0x320)]&&this['_onCursorDelete'](_0x4e5bb4);}),this[_0x463f33(0x415)](this['_commandService'][_0x463f33(0x168)](_0x4aff72=>{const _0x2cd217=_0x463f33;let _0x2e1188=_0x4aff72[_0x2cd217(0x1ee)];_0x2e1188!=null&&this[_0x2cd217(0x1c5)]&&_0x4aff72['id']===d[_0x2cd217(0x34c)]['id']&&_0x2e1188['unitId']===this[_0x2cd217(0x172)]&&_0x2e1188[_0x2cd217(0x40c)]===!0x1&&_0x2e1188[_0x2cd217(0x344)][_0x2cd217(0x1fa)]>0x0&&this[_0x2cd217(0x378)](_0x2e1188[_0x2cd217(0x344)]);})),this['_syncEditingCollabCursorService'][_0x463f33(0x174)][_0x463f33(0x423)]((0x0,r['takeUntil'])(this[_0x463f33(0x3bd)]))[_0x463f33(0x1ac)](_0x53cc36=>{const _0x3dc3e2=_0x463f33;if((_0x53cc36==null?void 0x0:_0x53cc36[_0x3dc3e2(0x172)])!==this[_0x3dc3e2(0x172)])return;let _0x2546e4={'eventID':l[_0x3dc3e2(0x299)][_0x3dc3e2(0x150)],'data':_0x53cc36};this[_0x3dc3e2(0x17d)](_0x2546e4);}),this['disposeWithMe'](this[_0x463f33(0x26a)]['onCommandExecuted'](_0xee5b60=>{const _0x416581=_0x463f33;if(_0xee5b60[_0x416581(0x1ee)]==null)return;let _0x4cf3d4=_0xee5b60[_0x416581(0x1ee)];if(_0xee5b60['id']!==d[_0x416581(0x391)]['id']||_0x4cf3d4[_0x416581(0x312)]!==this[_0x416581(0x172)])return;let _0x56d0cf={'id':'doc.mutation.rich-text-editing','params':_0x4cf3d4},_0x56d4f0=this[_0x416581(0x397)];for(let [_0x1166d2,_0x397b8b]of _0x56d4f0){let _0x3fb6a2={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x416581(0x172)],'actions':null,'textRanges':_0x397b8b[_0x416581(0x344)]}},_0x481133=this[_0x416581(0x212)]['transformMutation'](_0x56d0cf,_0x3fb6a2,!0x1);if((0x0,l[_0x416581(0x13e)])(_0x481133))throw _0x481133[_0x416581(0x3ff)];_0x56d4f0[_0x416581(0x16b)](_0x1166d2,{..._0x397b8b,'ranges':_0x481133['m2Prime'][_0x416581(0x1ee)][_0x416581(0x308)]});}queueMicrotask(()=>{const _0x4a6363=_0x416581;this[_0x4a6363(0x36f)]['next'](_0x56d4f0);});})));}[_0x409fb3(0x17d)](_0x34e37c){const _0x28758a=_0x409fb3;var _0x23ac38;let {memberID:_0x4195f3,selection:_0x4a7495}=_0x34e37c[_0x28758a(0x276)],_0x17e562=de(_0x4a7495),_0x39e306=((_0x23ac38=this[_0x28758a(0x164)]['getMember'](this[_0x28758a(0x172)],_0x4195f3))==null?void 0x0:_0x23ac38[_0x28758a(0x166)])??_0x28758a(0x2ea),_0x1cf863={'color':this[_0x28758a(0x2e5)][_0x28758a(0x30a)](_0x4195f3),'name':_0x39e306,'ranges':_0x17e562},_0x1c2f87=this[_0x28758a(0x397)];_0x1c2f87[_0x28758a(0x16b)](_0x4195f3,_0x1cf863),this['_cursorInfo$']['next'](_0x1c2f87);}[_0x409fb3(0x1b1)](_0x5e220d){const _0x18f5c0=_0x409fb3;let {memberID:_0x87201a}=_0x5e220d[_0x18f5c0(0x276)],_0x56fda5=this[_0x18f5c0(0x397)];_0x56fda5['delete'](_0x87201a),this[_0x18f5c0(0x36f)][_0x18f5c0(0x1a1)](_0x56fda5);}[_0x409fb3(0x13a)](){const _0x54c480=_0x409fb3;var _0x33b384;if(this['_online']=!0x0,((_0x33b384=this[_0x54c480(0x1ce)][_0x54c480(0x23e)]())==null?void 0x0:_0x33b384[_0x54c480(0x3ba)]())!==this[_0x54c480(0x172)])return;let _0x26493f=this[_0x54c480(0x381)][_0x54c480(0x424)](d[_0x54c480(0x2a7)])[_0x54c480(0x293)]();Array[_0x54c480(0x1b0)](_0x26493f)&&_0x26493f[_0x54c480(0x1fa)]>0x0&&this[_0x54c480(0x378)](_0x26493f);}['_toggleOffline'](){const _0xe130e0=_0x409fb3;this[_0xe130e0(0x1c5)]=!0x1;}};O=S([x(0x2,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x3,(0x0,t[_0x409fb3(0x329)])(E)),x(0x4,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x257)])),x(0x5,(0x0,t[_0x409fb3(0x329)])(D)),x(0x6,l[_0x409fb3(0x235)]),x(0x7,t[_0x409fb3(0x21b)]),x(0x8,t['ICommandService'])],O);const fe=()=>{let _0x36cb51=[],_0x3c1e22=!0x1;return _0x505aed=>{const _0x52127e=_0x4188;_0x36cb51[_0x52127e(0x2df)](_0x505aed),_0x3c1e22||(_0x3c1e22=!0x0,setTimeout(()=>{const _0x752665=_0x52127e;_0x36cb51[_0x752665(0x2e3)](_0x3deb61=>_0x3deb61()),_0x36cb51=[],_0x3c1e22=!0x1;}));};};let k=class extends t[_0x409fb3(0x184)]{get['cursorInfo'](){const _0x3a62ad=_0x409fb3;return this['_cursorInfo$'][_0x3a62ad(0x248)]();}get['roomMembers'](){const _0x41a7c7=_0x409fb3;return this[_0x41a7c7(0x2b7)][_0x41a7c7(0x248)]();}constructor(_0x2aca04,_0x129727,_0x47779d,_0x4c5617,_0x234a53,_0x2ec5e1,_0x1e23dd,_0x14c609){const _0x55cccf=_0x409fb3;super(),this[_0x55cccf(0x172)]=_0x2aca04,this[_0x55cccf(0x2f4)]=_0x129727,this[_0x55cccf(0x381)]=_0x47779d,this[_0x55cccf(0x2e5)]=_0x4c5617,this[_0x55cccf(0x164)]=_0x234a53,this[_0x55cccf(0x1ce)]=_0x2ec5e1,this[_0x55cccf(0x26a)]=_0x1e23dd,this[_0x55cccf(0x3a9)]=_0x14c609,b(this,'_online',!0x1),b(this,_0x55cccf(0x1c6),!0x1),b(this,_0x55cccf(0x36f),new r[(_0x55cccf(0x392))](new Map())),b(this,_0x55cccf(0x352),this[_0x55cccf(0x36f)][_0x55cccf(0x1c2)]()),b(this,'_roomMembers$',new r[(_0x55cccf(0x392))]([])),b(this,'roomMembers$',this[_0x55cccf(0x2b7)][_0x55cccf(0x423)]((0x0,r['debounceTime'])(0x12c))),b(this,_0x55cccf(0x378),(0x0,t[_0x55cccf(0x227)])((_0xa2fa0,_0x57a253)=>{const _0x54f356=_0x55cccf;let _0x24f5b6={'eventID':l['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x54f356(0x2f4)]['getMemberID'](),'selection':(0x0,h['serializeRangeWithSheet'])(_0xa2fa0,_0x57a253['range'])}};this[_0x54f356(0x2f4)][_0x54f356(0x13b)](_0x24f5b6,this['unitID']);},0x64));}[_0x409fb3(0x2c8)](){const _0x330700=_0x409fb3;super[_0x330700(0x2c8)](),this[_0x330700(0x36f)][_0x330700(0x1a1)](new Map()),this[_0x330700(0x36f)]['complete'](),this['_roomMembers$'][_0x330700(0x1a1)]([]),this[_0x330700(0x2b7)][_0x330700(0x27b)]();}[_0x409fb3(0x181)](){const _0x51c8ba=_0x409fb3;this['_init']||(this[_0x51c8ba(0x1c6)]=!0x0,this[_0x51c8ba(0x2f4)]['sessionStatus$'][_0x51c8ba(0x423)]((0x0,r[_0x51c8ba(0x24c)])(this[_0x51c8ba(0x3bd)]))[_0x51c8ba(0x1ac)](_0x69ed12=>{const _0x2c31ec=_0x51c8ba;_0x69ed12===e['SessionStatus'][_0x2c31ec(0x147)]?this['_toggleOnline']():this[_0x2c31ec(0x3d7)]();}),this[_0x51c8ba(0x2f4)][_0x51c8ba(0x1f0)][_0x51c8ba(0x423)]((0x0,r[_0x51c8ba(0x24c)])(this[_0x51c8ba(0x3bd)]))[_0x51c8ba(0x1ac)](_0x283324=>{const _0x41eb8c=_0x51c8ba;let _0x197739=_0x283324[_0x41eb8c(0x3ac)];_0x197739===l['CollaborationEvent'][_0x41eb8c(0x150)]&&this[_0x41eb8c(0x17d)](_0x283324),_0x197739===l[_0x41eb8c(0x299)][_0x41eb8c(0x320)]&&this['_onCursorDelete'](_0x283324);}),this[_0x51c8ba(0x280)](),this[_0x51c8ba(0x415)](this[_0x51c8ba(0x26a)][_0x51c8ba(0x168)](_0x3f874a=>{const _0x55551c=_0x51c8ba;if(this[_0x55551c(0x1c5)]&&_0x3f874a['id']===g[_0x55551c(0x402)]['id']&&_0x3f874a['params'][_0x55551c(0x312)]===this[_0x55551c(0x172)]){let _0x145347=_0x3f874a[_0x55551c(0x1ee)];this[_0x55551c(0x378)](_0x145347[_0x55551c(0x216)],_0x145347['selections'][0x0]);}})));}['_onCursorUpdate'](_0x3314a8){const _0xa5c5c4=_0x409fb3;var _0x1e1174;let {memberID:_0x1f4e62,selection:_0x286b32}=_0x3314a8[_0xa5c5c4(0x276)],{sheetName:_0xf59a35,range:_0x44bc6d}=(0x0,h[_0xa5c5c4(0x295)])(_0x286b32),_0x5d6cab={'name':((_0x1e1174=this[_0xa5c5c4(0x164)][_0xa5c5c4(0x2cd)](this['unitID'],_0x1f4e62))==null?void 0x0:_0x1e1174['name'])??_0xa5c5c4(0x2ea),'range':this[_0xa5c5c4(0x2f8)](_0xf59a35,_0x44bc6d),'sheetID':_0xf59a35,'color':this[_0xa5c5c4(0x2e5)]['assignAColorForMemberID'](_0x1f4e62),'selection':_0x286b32},_0x534f19=this[_0xa5c5c4(0x397)];_0x534f19[_0xa5c5c4(0x16b)](_0x1f4e62,_0x5d6cab),this[_0xa5c5c4(0x36f)][_0xa5c5c4(0x1a1)](_0x534f19);}[_0x409fb3(0x1b1)](_0x60718c){const _0x37b1f6=_0x409fb3;let {memberID:_0x36206f}=_0x60718c[_0x37b1f6(0x276)],_0x481bb8=this[_0x37b1f6(0x397)];_0x481bb8[_0x37b1f6(0x205)](_0x36206f),this[_0x37b1f6(0x36f)][_0x37b1f6(0x1a1)](_0x481bb8);}[_0x409fb3(0x2f8)](_0x32c9c1,_0x5ecf1f){const _0x341ee5=_0x409fb3;var _0x11412d;let _0x1fa156=(_0x11412d=this[_0x341ee5(0x1ce)][_0x341ee5(0x13f)](this[_0x341ee5(0x172)],t[_0x341ee5(0x24d)]['UNIVER_SHEET']))==null||(_0x11412d=_0x11412d['getSheetBySheetId'](_0x32c9c1))==null?void 0x0:_0x11412d[_0x341ee5(0x1eb)]();return(_0x1fa156==null?void 0x0:_0x1fa156[_0x341ee5(0x1d9)](_0x16ea25=>t[_0x341ee5(0x330)][_0x341ee5(0x173)](_0x16ea25,_0x5ecf1f)))||_0x5ecf1f;}[_0x409fb3(0x280)](){const _0x65a9cc=_0x409fb3;let _0x2ceef1=new t[(_0x65a9cc(0x353))](),_0xce91e4=fe(),_0x2f280a=()=>{const _0x4c7613=_0x65a9cc;_0x2ceef1[_0x4c7613(0x2c8)]();let _0x1adc44=(_0x316ef6,_0x5cb986,_0x450686,_0x3e7d97)=>{const _0x74a9d8=_0x4c7613;let _0x391a33=[];switch(_0x316ef6['id']){case g[_0x74a9d8(0x3d9)]['DeleteRangeMoveLeftCommandId']:_0x391a33=(0x0,g[_0x74a9d8(0x3a4)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)]['DeleteRangeMoveUpCommandId']:_0x391a33=(0x0,g[_0x74a9d8(0x324)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)]['InsertColCommandId']:_0x391a33=(0x0,g[_0x74a9d8(0x3d3)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x3ef)]:_0x391a33=(0x0,g[_0x74a9d8(0x190)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x425)]:_0x391a33=(0x0,g[_0x74a9d8(0x42a)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x361)]:_0x391a33=(0x0,g[_0x74a9d8(0x133)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x2c1)]:_0x391a33=(0x0,g[_0x74a9d8(0x219)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x2cc)]:_0x391a33=(0x0,g[_0x74a9d8(0x19a)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x2e1)]:_0x391a33=(0x0,g[_0x74a9d8(0x19f)])(_0x316ef6,_0x3e7d97);}let _0x41e04a=(0x0,g[_0x74a9d8(0x394)])(_0x391a33,_0x3e7d97),_0x379894=this['cursorInfo'][_0x74a9d8(0x424)](_0x5cb986);if(_0x379894&&_0x41e04a){let _0x175d88={..._0x379894,'range':_0x41e04a};this[_0x74a9d8(0x397)][_0x74a9d8(0x16b)](_0x5cb986,_0x175d88),_0xce91e4(()=>{const _0x32cc92=_0x74a9d8;let _0x280083=this[_0x32cc92(0x3a9)]['registerRefRange'](_0x41e04a,_0x304b86=>(_0x280083[_0x32cc92(0x2c8)](),_0x1adc44(_0x304b86,_0x5cb986,_0x450686,_0x41e04a)));_0x2ceef1['add'](_0x280083);});}return{'redos':[],'undos':[]};};this[_0x4c7613(0x397)][_0x4c7613(0x2e3)]((_0xc6c29c,_0x4ac658)=>{const _0x12c817=_0x4c7613;let {range:_0x532503,sheetID:_0x5e1bcd}=_0xc6c29c,_0xe5cb11=this[_0x12c817(0x3a9)][_0x12c817(0x3f2)](_0x532503,_0x3c4f9f=>(_0xe5cb11[_0x12c817(0x2c8)](),_0x1adc44(_0x3c4f9f,_0x4ac658,_0x5e1bcd,_0x532503)));_0x2ceef1[_0x12c817(0x2ce)](_0xe5cb11);});};this['disposeWithMe']((0x0,t[_0x65a9cc(0x19e)])(this[_0x65a9cc(0x36f)][_0x65a9cc(0x1ac)](()=>{_0x2f280a();})));}[_0x409fb3(0x13a)](){const _0x5bcb95=_0x409fb3;var _0x2a4007,_0x29411d;if(this[_0x5bcb95(0x1c5)]=!0x0,((_0x2a4007=this[_0x5bcb95(0x1ce)][_0x5bcb95(0x23e)]())==null?void 0x0:_0x2a4007[_0x5bcb95(0x3ba)]())!==this[_0x5bcb95(0x172)])return;let _0x3a4183=(_0x29411d=this[_0x5bcb95(0x381)][_0x5bcb95(0x424)](g[_0x5bcb95(0x25b)])['getCurrentSelections']())==null?void 0x0:_0x29411d[0x0],_0x27080d=this[_0x5bcb95(0x1ce)][_0x5bcb95(0x380)](t[_0x5bcb95(0x24d)][_0x5bcb95(0x3bf)])['getActiveSheet']();_0x3a4183&&_0x27080d&&this['_updateLocalCursor'](_0x27080d[_0x5bcb95(0x38d)](),_0x3a4183);}[_0x409fb3(0x3d7)](){const _0x9eaba6=_0x409fb3;this[_0x9eaba6(0x1c5)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x409fb3(0x329)])(t['Injector'])),x(0x3,(0x0,t[_0x409fb3(0x329)])(E)),x(0x4,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x257)])),x(0x5,t[_0x409fb3(0x21b)]),x(0x6,t['ICommandService']),x(0x7,(0x0,t['Inject'])(g[_0x409fb3(0x1cb)]))],k);let A=class extends t['RxDisposable']{constructor(_0x2c1c97,_0x4bd595,_0x1f9bb5){const _0x496059=_0x409fb3;super(),this[_0x496059(0x1ce)]=_0x2c1c97,this['_injector']=_0x4bd595,this['_collabSessionService']=_0x1f9bb5,b(this,_0x496059(0x15c),new Map()),b(this,_0x496059(0x23c),new r[(_0x496059(0x2bf))]()),this[_0x496059(0x1c6)]();}[_0x409fb3(0x2c8)](){const _0x2c13fc=_0x409fb3;super[_0x2c13fc(0x2c8)](),this[_0x2c13fc(0x23c)]['complete'](),this[_0x2c13fc(0x15c)]['forEach'](_0x467b7c=>_0x467b7c[_0x2c13fc(0x2c8)]());}[_0x409fb3(0x286)](_0x501a87){const _0x900d71=_0x409fb3;let _0x74255c=this['_entities']['get'](_0x501a87);return _0x74255c?_0x74255c[_0x900d71(0x352)]:this[_0x900d71(0x23c)][_0x900d71(0x423)]((0x0,r[_0x900d71(0x232)])(_0x54f2a8=>_0x54f2a8[_0x900d71(0x172)]===_0x501a87),(0x0,r['switchMap'])(_0x298064=>_0x298064['cursorInfo$']));}[_0x409fb3(0x1c6)](){const _0x1ef5df=_0x409fb3;this[_0x1ef5df(0x1ce)][_0x1ef5df(0x318)](t[_0x1ef5df(0x24d)][_0x1ef5df(0x3bf)])['pipe']((0x0,r[_0x1ef5df(0x24c)])(this[_0x1ef5df(0x3bd)]))[_0x1ef5df(0x1ac)](async _0x15e493=>{const _0x6b87bb=_0x1ef5df;let _0x5a75b4=_0x15e493[_0x6b87bb(0x26e)][_0x6b87bb(0x3ba)](),_0x3ee952=await this[_0x6b87bb(0x333)](_0x5a75b4);this[_0x6b87bb(0x23c)][_0x6b87bb(0x1a1)](_0x3ee952),this[_0x6b87bb(0x15c)][_0x6b87bb(0x16b)](_0x5a75b4,_0x3ee952);}),this[_0x1ef5df(0x1ce)][_0x1ef5df(0x318)](t['UniverInstanceType']['UNIVER_DOC'])['pipe']((0x0,r[_0x1ef5df(0x24c)])(this[_0x1ef5df(0x3bd)]))[_0x1ef5df(0x423)]((0x0,r['filter'])(_0x42020c=>!_0x42020c[_0x1ef5df(0x26e)][_0x1ef5df(0x3ba)]()['startsWith']('__')))[_0x1ef5df(0x1ac)](async _0x4ff66a=>{const _0x96b5b2=_0x1ef5df;let {unit:_0x49f201}=_0x4ff66a,_0x3cc4a2=_0x49f201['getUnitId'](),_0x189243=await this[_0x96b5b2(0x366)](_0x3cc4a2);this[_0x96b5b2(0x23c)][_0x96b5b2(0x1a1)](_0x189243),this[_0x96b5b2(0x15c)][_0x96b5b2(0x16b)](_0x3cc4a2,_0x189243);}),(0x0,r['merge'])(this['_univerInstanceService'][_0x1ef5df(0x3d2)](t[_0x1ef5df(0x24d)][_0x1ef5df(0x296)]),this[_0x1ef5df(0x1ce)]['getTypeOfUnitDisposed$'](t[_0x1ef5df(0x24d)][_0x1ef5df(0x3bf)]))[_0x1ef5df(0x423)]((0x0,r['takeUntil'])(this[_0x1ef5df(0x3bd)]))['subscribe'](_0x5ae836=>{const _0x45f4d5=_0x1ef5df;let _0x5bf0dc=_0x5ae836[_0x45f4d5(0x3ba)](),_0x1c4499=this[_0x45f4d5(0x15c)][_0x45f4d5(0x424)](_0x5bf0dc);_0x1c4499&&(_0x1c4499[_0x45f4d5(0x2c8)](),this[_0x45f4d5(0x15c)][_0x45f4d5(0x205)](_0x5bf0dc));});}async[_0x409fb3(0x333)](_0x108c8c){const _0x2e3d39=_0x409fb3;let _0x4d40ae=await this[_0x2e3d39(0x2ef)][_0x2e3d39(0x17a)](_0x108c8c),_0x9b9d15=this[_0x2e3d39(0x381)][_0x2e3d39(0x36d)](k,_0x108c8c,_0x4d40ae);return _0x9b9d15[_0x2e3d39(0x181)](),_0x9b9d15;}async[_0x409fb3(0x366)](_0x14a9e8){const _0x1f086e=_0x409fb3;let _0x42ea9a=await this[_0x1f086e(0x2ef)][_0x1f086e(0x17a)](_0x14a9e8),_0x1226f7=this[_0x1f086e(0x381)]['createInstance'](O,_0x14a9e8,_0x42ea9a);return _0x1226f7[_0x1f086e(0x181)](),_0x1226f7;}};A=S([x(0x0,t[_0x409fb3(0x21b)]),x(0x1,(0x0,t[_0x409fb3(0x329)])(t['Injector'])),x(0x2,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x207)]))],A);function j(_0x51a1e5,_0x5333fe){const _0x193c83=_0x409fb3;_0x51a1e5[_0x193c83(0x265)](),_0x51a1e5['font']=_0x193c83(0x3e7);let _0x54d900=_0x51a1e5[_0x193c83(0x426)](_0x5333fe)[_0x193c83(0x199)];return _0x51a1e5[_0x193c83(0x139)](),Math[_0x193c83(0x2db)](_0x54d900+0x8,0xc8);}function pe(_0x3a8605,_0x243b1b){const _0x3e84ba=_0x409fb3;let {radius:_0x305bc8,width:_0x4bdb78,height:_0xc2a844}=_0x243b1b;_0x305bc8??=0x0,_0x4bdb78??=0x1e,_0xc2a844??=0x1e;let _0x511090=0x0,_0x1fe5d2=0x0,_0x46082e=0x0;_0x511090=_0x1fe5d2=_0x46082e=Math['min'](_0x305bc8,_0x4bdb78/0x2,_0xc2a844/0x2),_0x3a8605['beginPath'](),_0x3a8605[_0x3e84ba(0x15b)](_0x511090,0x0),_0x3a8605[_0x3e84ba(0x1c3)](_0x4bdb78-_0x1fe5d2,0x0),_0x3a8605[_0x3e84ba(0x274)](_0x4bdb78-_0x1fe5d2,_0x1fe5d2,_0x1fe5d2,Math['PI']*0x3/0x2,0x0,!0x1),_0x3a8605[_0x3e84ba(0x1c3)](_0x4bdb78,_0xc2a844-_0x46082e),_0x3a8605['arc'](_0x4bdb78-_0x46082e,_0xc2a844-_0x46082e,_0x46082e,0x0,Math['PI']/0x2,!0x1),_0x3a8605[_0x3e84ba(0x1c3)](0x0,_0xc2a844),_0x3a8605[_0x3e84ba(0x1c3)](0x0,_0x511090),_0x3a8605['arc'](_0x511090,_0x511090,_0x511090,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3a8605['closePath'](),_0x243b1b[_0x3e84ba(0x1b3)]&&(_0x3a8605[_0x3e84ba(0x265)](),_0x3a8605[_0x3e84ba(0x3cf)]=_0x243b1b[_0x3e84ba(0x1b3)],_0x243b1b['fillRule']===_0x3e84ba(0x2c5)?_0x3a8605['fill'](_0x3e84ba(0x2c5)):_0x3a8605[_0x3e84ba(0x1b3)](),_0x3a8605[_0x3e84ba(0x139)]());}var M=class e extends p[_0x409fb3(0x189)]{constructor(_0x44a398,_0x57cfa6){const _0x5b4c9d=_0x409fb3;super(_0x44a398,_0x57cfa6),b(this,_0x5b4c9d(0x33b),void 0x0),b(this,_0x5b4c9d(0x33f),void 0x0),this['color']=_0x57cfa6==null?void 0x0:_0x57cfa6['color'],this[_0x5b4c9d(0x33f)]=_0x57cfa6==null?void 0x0:_0x57cfa6[_0x5b4c9d(0x33f)];}static[_0x409fb3(0x41c)](_0xacd188,_0x33e533){const _0x1ab1c8=_0x409fb3;let {text:_0x2b1b34,color:_0x31b47a}=_0x33e533;_0xacd188['save'](),_0xacd188[_0x1ab1c8(0x400)]=_0x1ab1c8(0x263);let _0x5b5fa7=_0xacd188[_0x1ab1c8(0x426)](_0x2b1b34)[_0x1ab1c8(0x199)];if(pe(_0xacd188,{'height':0x14,'radius':0x4,'width':j(_0xacd188,_0x2b1b34),'fill':_0x31b47a,'evented':!0x1}),_0xacd188['fillStyle']=_0x1ab1c8(0x15d),_0x5b5fa7>0xc0){let _0x137d8e='',_0x575495=0x0;for(let _0x3d90b5 of _0x2b1b34){let _0x1569c5=_0xacd188[_0x1ab1c8(0x426)](_0x3d90b5)['width'];if(_0x575495+_0x1569c5<=0xc0-_0xacd188[_0x1ab1c8(0x426)](_0x1ab1c8(0x3a8))['width'])_0x137d8e+=_0x3d90b5,_0x575495+=_0x1569c5;else{_0x137d8e+='...';break;}}_0xacd188[_0x1ab1c8(0x356)](_0x137d8e,0x4,0xf);}else _0xacd188['fillText'](_0x2b1b34,0x4,0xf);_0xacd188[_0x1ab1c8(0x139)]();}['_draw'](_0x1fc49f){const _0x5775ae=_0x409fb3;e[_0x5775ae(0x41c)](_0x1fc49f,this);}};function _0x4188(_0x512c88,_0x17071b){_0x512c88=_0x512c88-0x132;const _0x5cc24d=_0x5cc2();let _0x418882=_0x5cc24d[_0x512c88];return _0x418882;}const N=_0x409fb3(0x340);var P=class{constructor(_0x22a8ee,_0x353377,_0x167ede,_0x5c0f2d){const _0x1abde5=_0x409fb3;this[_0x1abde5(0x14f)]=_0x22a8ee,this[_0x1abde5(0x3c6)]=_0x353377,this['_docSkeleton']=_0x167ede,this[_0x1abde5(0x32b)]=_0x5c0f2d,b(this,_0x1abde5(0x14b),[]),b(this,_0x1abde5(0x302),null),b(this,_0x1abde5(0x3be),null),b(this,'_anchorDot',null),b(this,_0x1abde5(0x3a0),null),b(this,_0x1abde5(0x1a3),null),this['_render']();}set['_hover'](_0x3df37e){const _0x434fb6=_0x409fb3;_0x3df37e?(this[_0x434fb6(0x1fd)]&&this[_0x434fb6(0x1fd)][_0x434fb6(0x2ff)](),this[_0x434fb6(0x3be)]&&this[_0x434fb6(0x3be)][_0x434fb6(0x2a3)]()):(this[_0x434fb6(0x1fd)]&&this[_0x434fb6(0x1fd)][_0x434fb6(0x2a3)](),this['_textBubble']&&this[_0x434fb6(0x3be)][_0x434fb6(0x2ff)]());}[_0x409fb3(0x2c8)](){const _0xdf653f=_0x409fb3;for(let _0x4e8966 of this[_0xdf653f(0x14b)])_0x4e8966[_0xdf653f(0x2c8)]();this[_0xdf653f(0x3be)]&&this[_0xdf653f(0x3be)]['dispose'](),this[_0xdf653f(0x1fd)]&&this['_anchorDot'][_0xdf653f(0x2c8)](),this[_0xdf653f(0x302)]&&this[_0xdf653f(0x302)][_0xdf653f(0x2c8)](),this[_0xdf653f(0x1a3)]&&this[_0xdf653f(0x1a3)]();}[_0x409fb3(0x2ec)](){const _0x320770=_0x409fb3;let {_docSkeleton:_0x57eebf,_document:_0x3a233d}=this,{color:_0xfcc4a9,name:_0x358a58,ranges:_0x18837c}=this[_0x320770(0x14f)],_0x4111d2=_0x3a233d['getOffsetConfig'](),{docsLeft:_0x6a1d24,docsTop:_0x11d869}=_0x4111d2,_0x60b3e=new f[(_0x320770(0x1d7))](_0x4111d2,_0x57eebf);for(let {startOffset:_0x31a016,endOffset:_0x1c1990,rangeType:_0x43a405,segmentId:_0x21a494,segmentPage:_0xb8aecc,collapsed:_0x561c09,isActive:_0x376341}of _0x18837c){let _0x54c496=_0x57eebf[_0x320770(0x347)](_0x31a016,!0x0,_0x21a494,_0xb8aecc),_0x368eac=_0x57eebf[_0x320770(0x347)](_0x1c1990,!0x0,_0x21a494,_0xb8aecc);_0x368eac??=_0x57eebf[_0x320770(0x347)](_0x1c1990-0x1,!0x1,_0x21a494,_0xb8aecc);let _0x5ebee5=me(_0x54c496,_0x368eac);if(_0x376341&&_0x5ebee5[_0x320770(0x1cc)]){let {contentBoxPointGroup:_0x359416}=_0x60b3e[_0x320770(0x22c)](_0x368eac,_0x368eac);if(_0x359416[_0x320770(0x1fa)]===0x0)continue;this[_0x320770(0x41f)](_0xfcc4a9,_0x359416,_0x6a1d24,_0x11d869,_0x358a58),this['_eventUnsubscribe']=this[_0x320770(0x1e8)]();}if(_0x54c496&&_0x368eac){if(_0x43a405===t['DOC_RANGE_TYPE']['RECT']){let {pointGroup:_0x1a9dbd}=new f[(_0x320770(0x160))](_0x4111d2,_0x57eebf)[_0x320770(0x22c)](_0x54c496,_0x368eac)??{};if(_0x1a9dbd==null||_0x1a9dbd['length']===0x0)continue;this[_0x320770(0x36a)](_0xfcc4a9,_0x1a9dbd,_0x6a1d24,_0x11d869);}else{if(!_0x561c09&&_0x5ebee5[_0x320770(0x28b)]){let {borderBoxPointGroup:_0x255a1a}=_0x60b3e[_0x320770(0x22c)](_0x54c496,_0x368eac);if(_0x255a1a['length']===0x0)continue;this['_drawTextRange'](_0xfcc4a9,_0x255a1a,_0x6a1d24,_0x11d869);}}}}}[_0x409fb3(0x41f)](_0xbed086,_0x1ec43d,_0x27ce9f,_0x1d1918,_0x55137b){const _0x4de5d3=_0x409fb3;let {left:_0x58c383,top:_0x328f2a,height:_0x73fde0}=this[_0x4de5d3(0x192)](_0x1ec43d),_0x2d77cc=1.5/this[_0x4de5d3(0x3b4)](),_0x2857fa=new p['Rect'](N+(0x0,t['generateRandomId'])(0x6),{'left':_0x58c383+_0x27ce9f-_0x2d77cc,'top':_0x328f2a+_0x1d1918,'height':_0x73fde0,'width':1.5,'fill':_0xbed086||(0x0,p[_0x4de5d3(0x3b2)])(t[_0x4de5d3(0x3fa)][_0x4de5d3(0x23d)],0x0),'strokeWidth':_0x2d77cc,'stroke':_0x4de5d3(0x290),'evented':!0x0});this[_0x4de5d3(0x302)]=_0x2857fa,this[_0x4de5d3(0x3c6)][_0x4de5d3(0x1e1)](_0x2857fa,f[_0x4de5d3(0x1d4)]);let _0xf80d3c=new p[(_0x4de5d3(0x239))](N+(0x0,t[_0x4de5d3(0x208)])(0x6),{'left':_0x58c383+_0x27ce9f-_0x2d77cc,'top':_0x328f2a+_0x1d1918-0x2,'height':0x4,'width':0x4,'fill':_0xbed086||(0x0,p['getColor'])(t['COLORS'][_0x4de5d3(0x23d)],0x0),'strokeWidth':0x0,'stroke':_0xbed086||(0x0,p[_0x4de5d3(0x3b2)])(t[_0x4de5d3(0x3fa)]['black'],0x0),'evented':!0x1});this[_0x4de5d3(0x1fd)]=_0xf80d3c,this[_0x4de5d3(0x3c6)]['addObject'](_0xf80d3c,f[_0x4de5d3(0x1d4)]);let _0x488d57=new M(N+(0x0,t[_0x4de5d3(0x208)])(0x6),{'left':_0x58c383+_0x27ce9f-_0x2d77cc,'top':_0x328f2a+_0x1d1918-0x14,'text':_0x55137b,'color':_0xbed086});this[_0x4de5d3(0x3be)]=_0x488d57,this[_0x4de5d3(0x3c6)][_0x4de5d3(0x1e1)](_0x488d57,f[_0x4de5d3(0x1d4)]),this['_hover']=!0x1;}['_handleHover'](){const _0x1f5f23=_0x409fb3;let _0x32d7fb=this['_anchor'][_0x1f5f23(0x289)][_0x1f5f23(0x38c)](()=>{const _0x2cfa7d=_0x1f5f23;this[_0x2cfa7d(0x34f)]=!0x0;}),_0xcd8ddd=this[_0x1f5f23(0x302)]['onPointerLeave$'][_0x1f5f23(0x38c)](()=>{const _0xaf6f51=_0x1f5f23;this[_0xaf6f51(0x3a0)]&&clearTimeout(this[_0xaf6f51(0x3a0)]),this[_0xaf6f51(0x3a0)]=setTimeout(()=>{const _0x37a71a=_0xaf6f51;this[_0x37a71a(0x34f)]=!0x1;},0x7d0);});return()=>{const _0x4e961f=_0x1f5f23;_0x32d7fb['unsubscribe'](),_0xcd8ddd[_0x4e961f(0x343)]();};}[_0x409fb3(0x21e)](_0xa42bb4,_0x1e4d07,_0x12905f,_0x360bf2){const _0x3e4b92=_0x409fb3;let _0xe093aa=0.2,_0x5e269f=new t[(_0x3e4b92(0x1bc))](_0xa42bb4)[_0x3e4b92(0x163)](_0xe093aa)[_0x3e4b92(0x3c7)](),_0x59f7fe=new p[(_0x3e4b92(0x155))](_0x3e4b92(0x34a)+(0x0,t[_0x3e4b92(0x208)])(0x6),{'pointsGroup':_0x1e4d07,'fill':_0x5e269f||(0x0,p['getColor'])(t[_0x3e4b92(0x3fa)]['black'],_0xe093aa),'left':_0x12905f,'top':_0x360bf2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3e4b92(0x14b)][_0x3e4b92(0x2df)](_0x59f7fe),this[_0x3e4b92(0x3c6)]['addObject'](_0x59f7fe,f[_0x3e4b92(0x1d4)]);}[_0x409fb3(0x36a)](_0x1f7a23,_0x1ea991,_0x10178c,_0x15ffe0){const _0x52ccbe=_0x409fb3;let _0x2e4e09=0.2,_0x7041b4=new t[(_0x52ccbe(0x1bc))](_0x1f7a23)[_0x52ccbe(0x163)](_0x2e4e09)[_0x52ccbe(0x3c7)](),_0x10ae25=new p[(_0x52ccbe(0x155))](_0x52ccbe(0x255)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x1ea991,'fill':_0x7041b4||(0x0,p[_0x52ccbe(0x3b2)])(t['COLORS']['black'],_0x2e4e09),'left':_0x10178c,'top':_0x15ffe0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52ccbe(0x14b)][_0x52ccbe(0x2df)](_0x10ae25),this['_scene'][_0x52ccbe(0x1e1)](_0x10ae25,f[_0x52ccbe(0x1d4)]);}[_0x409fb3(0x192)](_0x2b54d9){let _0x44fb6a=_0x2b54d9[0x0],_0x2bf42b=_0x44fb6a[0x0],_0x41cd7f=_0x44fb6a[0x2],{x:_0xe8ba32,y:_0x1fc72a}=_0x2bf42b,{x:_0x189c5a,y:_0x5c837d}=_0x41cd7f;return{'left':_0xe8ba32,'top':_0x1fc72a,'width':_0x189c5a-_0xe8ba32,'height':_0x5c837d-_0x1fc72a};}[_0x409fb3(0x3b4)](){const _0xf6f64f=_0x409fb3;let {scaleX:_0x3027f6,scaleY:_0x38ff63}=this[_0xf6f64f(0x3c6)]['getAncestorScale']();return Math[_0xf6f64f(0x247)](_0x3027f6,_0x38ff63);}};function me(_0x3a6a66,_0x48ba76){const _0x40f8ef=_0x409fb3;if(!_0x48ba76)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x3a6a66||_0x3a6a66[_0x40f8ef(0x214)]!==_0x48ba76[_0x40f8ef(0x214)]||(_0x3a6a66[_0x40f8ef(0x214)]===p[_0x40f8ef(0x1ad)][_0x40f8ef(0x240)]||_0x3a6a66[_0x40f8ef(0x214)]===p[_0x40f8ef(0x1ad)][_0x40f8ef(0x42c)])&&_0x3a6a66[_0x40f8ef(0x22e)]!==_0x48ba76[_0x40f8ef(0x22e)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x3d48ec=(0x0,p[_0x40f8ef(0x3da)])(_0x3a6a66),_0x191bae=(0x0,p[_0x40f8ef(0x3da)])(_0x48ba76);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x3d48ec==null||_0x191bae==null?_0x3d48ec==null&&_0x191bae==null:_0x3d48ec[_0x40f8ef(0x3c1)]===_0x191bae[_0x40f8ef(0x3c1)]&&_0x3d48ec[_0x40f8ef(0x3ea)]===_0x191bae[_0x40f8ef(0x3ea)]&&_0x3d48ec[_0x40f8ef(0x2f1)]===_0x191bae['columnIndex']};}let F=class extends t[_0x409fb3(0x184)]{constructor(_0x3ac280,_0x340fcc,_0x371ce9,_0x2078e5,_0x3bcc5d){const _0x2c7f27=_0x409fb3;super(),this[_0x2c7f27(0x317)]=_0x3ac280,this[_0x2c7f27(0x2f5)]=_0x340fcc,this[_0x2c7f27(0x196)]=_0x371ce9,this[_0x2c7f27(0x26a)]=_0x2078e5,this[_0x2c7f27(0x1f2)]=_0x3bcc5d,b(this,_0x2c7f27(0x319),[]),b(this,'_cursors',[]),this['_init']();}[_0x409fb3(0x1c6)](){const _0x486a47=_0x409fb3;let _0x5b313a=this[_0x486a47(0x317)][_0x486a47(0x312)],_0x4052c7=this[_0x486a47(0x2f5)];this[_0x486a47(0x415)]((0x0,r[_0x486a47(0x2d0)])([this[_0x486a47(0x196)][_0x486a47(0x286)](_0x5b313a),this[_0x486a47(0x1f2)][_0x486a47(0x3f4)]])[_0x486a47(0x423)]((0x0,i[_0x486a47(0x3c9)])(([_0x48dcb6,_0x28dc9f])=>({'skeleton':_0x4052c7[_0x486a47(0x262)](),'cursors':[..._0x48dcb6[_0x486a47(0x25c)]()][_0x486a47(0x30c)](_0x2bac29=>({..._0x2bac29,'color':this['_themeService'][_0x486a47(0x2d4)](_0x2bac29['color'])}))})))[_0x486a47(0x1ac)](_0x34f29c=>{const _0x538ce5=_0x486a47;if(this[_0x538ce5(0x2c4)](),_0x34f29c){let {skeleton:_0x517002,cursors:_0x4d89e0}=_0x34f29c;this[_0x538ce5(0x1ec)](_0x517002,_0x4d89e0);}})),this['_initResize'](),this[_0x486a47(0x316)]();}[_0x409fb3(0x1ec)](_0x27d318,_0xabef82){const _0x252a32=_0x409fb3;let {scene:_0x5bf0aa,mainComponent:_0x548990}=this['_context'],_0x335fb7=_0xabef82[_0x252a32(0x3c9)](_0xf47d4d=>new P(_0xf47d4d,_0x5bf0aa,_0x27d318,_0x548990));this['_cursorShapes']=_0x335fb7,this[_0x252a32(0x141)]=_0xabef82;}['_refreshCollabCursors'](){const _0x25084=_0x409fb3;this[_0x25084(0x2c4)]();let {scene:_0x1e0e17,mainComponent:_0x3a624d}=this[_0x25084(0x317)],_0x1c14bb=this[_0x25084(0x2f5)][_0x25084(0x262)](),_0x29f6c7=this['_cursors'][_0x25084(0x3c9)](_0x4613cf=>new P(_0x4613cf,_0x1e0e17,_0x1c14bb,_0x3a624d));this[_0x25084(0x319)]=_0x29f6c7;}[_0x409fb3(0x2c4)](){const _0x39cda1=_0x409fb3;this[_0x39cda1(0x319)][_0x39cda1(0x2e3)](_0x1eab44=>_0x1eab44[_0x39cda1(0x2c8)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x2f7e73=_0x409fb3;let _0xaed8f7=[f[_0x2f7e73(0x364)]['id']];this[_0x2f7e73(0x415)](this[_0x2f7e73(0x26a)]['onCommandExecuted'](_0x546807=>{const _0x42467b=_0x2f7e73;_0xaed8f7[_0x42467b(0x1cd)](_0x546807['id'])&&_0x546807['params'][_0x42467b(0x312)]===this['_context'][_0x42467b(0x312)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x240160=_0x409fb3;this[_0x240160(0x415)]((0x0,t[_0x240160(0x3f3)])(this[_0x240160(0x317)]['engine'][_0x240160(0x363)])[_0x240160(0x423)]((0x0,i['filter'])(_0x21d813=>_0x21d813[_0x240160(0x3b7)]===p[_0x240160(0x18c)][_0x240160(0x246)]),(0x0,i[_0x240160(0x42f)])(0x10))[_0x240160(0x1ac)](()=>{const _0x1855c5=_0x240160;this[_0x1855c5(0x37d)]();}));}};F=S([x(0x1,(0x0,t[_0x409fb3(0x329)])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t['Inject'])(A)),x(0x3,t[_0x409fb3(0x228)]),x(0x4,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x188)]))],F);var he=class extends p['Shape']{constructor(_0xd034b,_0x5e7534){const _0xbe23d1=_0x409fb3;super(_0xd034b,_0x5e7534),b(this,_0xbe23d1(0x357),void 0x0),b(this,_0xbe23d1(0x220),!0x1),b(this,'_range',void 0x0),b(this,_0xbe23d1(0x405),''),b(this,_0xbe23d1(0x25a),_0xbe23d1(0x32d)),b(this,'_backgroundColor',void 0x0),b(this,_0xbe23d1(0x29f),void 0x0),b(this,_0xbe23d1(0x431),void 0x0),b(this,_0xbe23d1(0x3ab),0x4),b(this,_0xbe23d1(0x3af),void 0x0),b(this,'_blinkIntervalTimer',void 0x0),b(this,'_isBlinkVisible',!0x0),b(this,_0xbe23d1(0x24a),0x0),b(this,'_labelHorizontalPosition','right'),_0x5e7534&&(this['setShapeProps'](_0x5e7534),_0x5e7534[_0xbe23d1(0x2be)]&&(_0x5e7534[_0xbe23d1(0x27d)]??this['_highlightSecond'])&&this[_0xbe23d1(0x2fd)](_0x5e7534[_0xbe23d1(0x27d)]??this[_0xbe23d1(0x3ab)])),this['onPointerEnter$']['subscribeEvent'](()=>this[_0xbe23d1(0x2ac)]({'hovered':!0x0})),this[_0xbe23d1(0x187)][_0xbe23d1(0x38c)](()=>this[_0xbe23d1(0x2ac)]({'hovered':!0x1}));}[_0x409fb3(0x28d)](_0x587663){const _0x315f74=_0x409fb3;this[_0x315f74(0x24a)]=_0x587663;}[_0x409fb3(0x2ac)](_0x30fa4f){const _0x31e712=_0x409fb3;this[_0x31e712(0x357)]=_0x30fa4f['color']??this[_0x31e712(0x357)],this[_0x31e712(0x220)]=_0x30fa4f['hovered']??this['_hovered'],this[_0x31e712(0x2b0)]=_0x30fa4f[_0x31e712(0x195)]??this[_0x31e712(0x2b0)],this[_0x31e712(0x405)]=_0x30fa4f[_0x31e712(0x166)]??this[_0x31e712(0x405)],this[_0x31e712(0x25a)]=_0x30fa4f[_0x31e712(0x362)]??this[_0x31e712(0x25a)],this['_backgroundColor']=_0x30fa4f[_0x31e712(0x2de)]??this[_0x31e712(0x161)],this[_0x31e712(0x29f)]=_0x30fa4f[_0x31e712(0x21d)]??this[_0x31e712(0x29f)],this['_labelHorizontalPosition']=_0x30fa4f[_0x31e712(0x421)]??this['_labelHorizontalPosition'],_0x30fa4f[_0x31e712(0x27d)]!==void 0x0&&(this[_0x31e712(0x3ab)]=_0x30fa4f[_0x31e712(0x27d)]),_0x30fa4f[_0x31e712(0x2be)]!==void 0x0&&(this[_0x31e712(0x431)]=_0x30fa4f[_0x31e712(0x2be)]),_0x30fa4f[_0x31e712(0x2fa)]!==void 0x0&&(this['_offsetY']=_0x30fa4f[_0x31e712(0x2fa)]),this[_0x31e712(0x260)]({'width':_0x30fa4f[_0x31e712(0x199)],'height':_0x30fa4f[_0x31e712(0x1ca)]});}[_0x409fb3(0x24f)](_0x15f710){const _0x48e231=_0x409fb3;let {row:_0x821840,column:_0x57ea5f}=_0x15f710;if(_0x821840>=this[_0x48e231(0x2b0)][_0x48e231(0x3bb)]&&_0x821840<=this[_0x48e231(0x2b0)][_0x48e231(0x31f)]&&_0x57ea5f>=this[_0x48e231(0x2b0)]['startColumn']&&_0x57ea5f<=this[_0x48e231(0x2b0)][_0x48e231(0x13c)]){this[_0x48e231(0x2ac)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x51dbc8){const _0x234551=_0x409fb3;this[_0x234551(0x3d8)](),this[_0x234551(0x18b)]=!0x0,this[_0x234551(0x3b9)]=window[_0x234551(0x311)](()=>{const _0x5ba3e4=_0x234551;this[_0x5ba3e4(0x18b)]=!this['_isBlinkVisible'],this[_0x5ba3e4(0x372)](!0x0);},0x1f4),this[_0x234551(0x3af)]=window[_0x234551(0x16d)](()=>{const _0x853a5=_0x234551;this[_0x853a5(0x3d8)](),this[_0x853a5(0x18b)]=!0x0,this[_0x853a5(0x372)](!0x0);},_0x51dbc8*0x3e8);}[_0x409fb3(0x3d8)](){const _0x173dd5=_0x409fb3;this['_blinkIntervalTimer']&&=(window[_0x173dd5(0x1d1)](this['_blinkIntervalTimer']),void 0x0),this['_blinkTimer']&&=(window[_0x173dd5(0x2b4)](this[_0x173dd5(0x3af)]),void 0x0);}[_0x409fb3(0x3d1)](_0x42569d){return!0x1;}[_0x409fb3(0x2c8)](){const _0x52f226=_0x409fb3;this[_0x52f226(0x3d8)](),super['dispose']();}[_0x409fb3(0x1d8)](_0x3cb587){const _0x5e6afd=_0x409fb3;let _0x24050f=this[_0x5e6afd(0x357)],_0x15a4c1=this['_backgroundColor'];if(this['_highlight']&&!this[_0x5e6afd(0x18b)]&&(_0x24050f=this[_0x5e6afd(0x3c0)](this[_0x5e6afd(0x357)]),_0x15a4c1=this[_0x5e6afd(0x161)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),p[_0x5e6afd(0x239)]['drawWith'](_0x3cb587,{'width':this[_0x5e6afd(0x199)],'height':this[_0x5e6afd(0x1ca)],'strokeWidth':this[_0x5e6afd(0x2a0)]||1.5,'stroke':_0x24050f,'evented':!0x1,'fill':_0x15a4c1}),this[_0x5e6afd(0x220)]||this[_0x5e6afd(0x29f)]){_0x3cb587['save']();let _0x355af0=this[_0x5e6afd(0x422)]===_0x5e6afd(0x14a)?-j(_0x3cb587,this['_name']):this[_0x5e6afd(0x199)];_0x3cb587['transform'](0x1,0x0,0x0,0x1,_0x355af0,(this['_labelPosition']===_0x5e6afd(0x132)?0x0:-0x14)+(this['_offsetY']??0x0)),M[_0x5e6afd(0x41c)](_0x3cb587,{'text':this['_name'],'color':_0x24050f}),_0x3cb587[_0x5e6afd(0x139)]();}}[_0x409fb3(0x3c0)](_0x22036d){const _0x236124=_0x409fb3;return _0x22036d[_0x236124(0x1fc)]('#')?'rgba('+Number[_0x236124(0x309)](_0x22036d['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x236124(0x309)](_0x22036d[_0x236124(0x2b3)](0x3,0x5),0x10)+',\x20'+Number[_0x236124(0x309)](_0x22036d[_0x236124(0x2b3)](0x5,0x7),0x10)+',\x200.2)':_0x22036d['startsWith'](_0x236124(0x1a4))?_0x22036d['replace'](/[\d.]+\)$/g,'0.2)'):_0x22036d['startsWith'](_0x236124(0x2af))?_0x22036d[_0x236124(0x412)](_0x236124(0x2af),_0x236124(0x1a4))[_0x236124(0x412)](')',_0x236124(0x201)):_0x22036d;}};let I=class extends t['RxDisposable']{constructor(_0x5c784f,_0xad703e,_0x340d52,_0x5bcd90){const _0x1899bc=_0x409fb3;super(),this['_context']=_0x5c784f,this[_0x1899bc(0x42b)]=_0xad703e,this[_0x1899bc(0x196)]=_0x340d52,this['_themeService']=_0x5bcd90,b(this,'_cursors',new Set()),b(this,_0x1899bc(0x41a),null),b(this,_0x1899bc(0x3cc),null),this[_0x1899bc(0x1c6)]();}[_0x409fb3(0x1c6)](){const _0x390753=_0x409fb3;this[_0x390753(0x42b)][_0x390753(0x148)][_0x390753(0x423)]((0x0,i[_0x390753(0x24c)])(this['dispose$']),(0x0,i['switchMap'])(_0x428e51=>{const _0x1cc886=_0x390753;if(_0x428e51){let _0x554d17=_0x428e51[_0x1cc886(0x272)];return(0x0,r[_0x1cc886(0x2d0)])(this['_collabCursorController']['getCollabCursors$'](this['_context'][_0x1cc886(0x312)]),this[_0x1cc886(0x1f2)][_0x1cc886(0x3f4)])[_0x1cc886(0x423)]((0x0,i[_0x1cc886(0x3c9)])(([_0x486f03,_0x1a5bf8])=>{const _0x4971dc=_0x1cc886;let _0x1a8e07=new Map();return _0x486f03[_0x4971dc(0x2e3)]((_0x5f1bf3,_0xf84010)=>{const _0x5643d6=_0x4971dc;if(_0x5f1bf3['sheetID']===_0x554d17){let _0x14bf4e={..._0x5f1bf3};_0x14bf4e[_0x5643d6(0x33b)]=this['_themeService'][_0x5643d6(0x2d4)](_0x5f1bf3['color']),_0x1a8e07['set'](_0xf84010,_0x14bf4e);}}),{'skeleton':_0x428e51,'cursors':_0x1a8e07};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x390753(0x1ac)](({skeleton:_0x109a8d,cursors:_0x56bad3})=>{const _0xb6535f=_0x390753;this[_0xb6535f(0x2c4)](),_0x109a8d&&this[_0xb6535f(0x1ec)](_0x109a8d,_0x56bad3);}),this[_0x390753(0x415)](this[_0x390753(0x42b)]['currentSkeleton$']['pipe']((0x0,i[_0x390753(0x24c)])(this[_0x390753(0x3bd)]))[_0x390753(0x1ac)](_0x3cd65f=>{const _0x599aed=_0x390753;var _0x292593;if(_0x3cd65f==null)return;(_0x292593=this['_pointerMoveDisposable'])==null||_0x292593[_0x599aed(0x343)](),this[_0x599aed(0x3cc)]=null;let {skeleton:_0x623570}=_0x3cd65f,{scene:_0x521af7}=this[_0x599aed(0x317)];this[_0x599aed(0x3cc)]=_0x521af7['onPointerMove$'][_0x599aed(0x38c)]((0x0,t['debounce'])(_0x5c6166=>{const _0x23f722=_0x599aed;var _0x2860a0,_0x5949d0;let {offsetX:_0x4c4cb1,offsetY:_0x345a26}=_0x5c6166,{x:_0x8ad58f,y:_0x241ae6}=_0x521af7['getCoordRelativeToViewport'](p[_0x23f722(0x2c3)]['FromArray']([_0x4c4cb1,_0x345a26])),{scaleX:_0x10dfe7,scaleY:_0x5b778c}=_0x521af7[_0x23f722(0x1dd)](),_0x4b766e=_0x521af7[_0x23f722(0x351)](p[_0x23f722(0x409)][_0x23f722(0x156)]),_0x1f4b9b=_0x521af7['getScrollXYInfoByViewport'](p['Vector2'][_0x23f722(0x225)]([_0x8ad58f,_0x241ae6]),_0x4b766e),_0x54924d=_0x623570[_0x23f722(0x1a6)](_0x4c4cb1,_0x345a26,_0x10dfe7,_0x5b778c,_0x1f4b9b);(((_0x2860a0=this['_lastPointer'])==null?void 0x0:_0x2860a0['column'])!==_0x54924d[_0x23f722(0x35a)]||((_0x5949d0=this[_0x23f722(0x41a)])==null?void 0x0:_0x5949d0['row'])!==_0x54924d[_0x23f722(0x224)])&&this[_0x23f722(0x141)][_0x23f722(0x2e3)](_0x50b74f=>{const _0x4c2afb=_0x23f722;_0x50b74f[_0x4c2afb(0x24f)](_0x54924d);});},0x64));})),this[_0x390753(0x415)]((0x0,t[_0x390753(0x19e)])(()=>{const _0xfc104a=_0x390753;var _0x77b16f;(_0x77b16f=this[_0xfc104a(0x3cc)])==null||_0x77b16f[_0xfc104a(0x343)](),this[_0xfc104a(0x3cc)]=null;}));}[_0x409fb3(0x1ec)](_0x1a39d9,_0x250242){const _0x3da0bc=_0x409fb3;let _0x25e265=this[_0x3da0bc(0x42b)][_0x3da0bc(0x1b8)]();if(!_0x25e265)return;let _0x28cca0=this[_0x3da0bc(0x2da)]();if(!_0x28cca0)return;this[_0x3da0bc(0x141)][_0x3da0bc(0x2e3)](_0x50698a=>{const _0x437509=_0x3da0bc;_0x50698a[_0x437509(0x372)]();});let {scene:_0x5a5f1a}=_0x28cca0,_0x6401b2=ge(Array[_0x3da0bc(0x416)](_0x250242[_0x3da0bc(0x25c)]()))[_0x3da0bc(0x3c9)](_0x54c14b=>{const _0x448e8a=_0x3da0bc;let {color:_0x44e699,range:_0xde05ac,name:_0xdb3156,selection:_0x31d09b,sheetID:_0xc8d5e3}=_0x54c14b,{startColumn:_0x1784b0,startRow:_0x4ceb30,endColumn:_0x279538,endRow:_0x25f9d2}=_0xde05ac,_0x52f06e=(0x0,_[_0x448e8a(0x1df)])(_0x4ceb30,_0x1784b0,_0x5a5f1a,_0x25e265),_0x632add=(0x0,_[_0x448e8a(0x1df)])(_0x25f9d2,_0x279538,_0x5a5f1a,_0x25e265),{columnHeaderHeightAndMarginTop:_0x1ca623}=_0x25e265,{startX:_0x2e1498,startY:_0x3eef64}=_0x52f06e,{endX:_0x480aed,endY:_0x36f0e5}=_0x632add,_0x2eb005=_0x480aed-_0x2e1498,_0x51e611=_0x36f0e5-_0x3eef64;return new he(_0xdb3156,{'labelPosition':_0x3eef64-_0x1ca623>=0x14?_0x448e8a(0x32d):'bottom','sheetID':_0xc8d5e3,'range':_0xde05ac,'color':_0x44e699,'name':_0xdb3156,'selection':_0x31d09b,'left':_0x2e1498,'top':_0x3eef64,'width':_0x2eb005,'height':_0x51e611,'evented':!0x1,'zIndex':0x1389});});_0x5a5f1a[_0x3da0bc(0x398)](_0x6401b2,0x1),this[_0x3da0bc(0x141)]=new Set(_0x6401b2);}[_0x409fb3(0x2c4)](){const _0x1cf1bf=_0x409fb3;var _0x4b7fa3;(_0x4b7fa3=this[_0x1cf1bf(0x141)])==null||_0x4b7fa3[_0x1cf1bf(0x2e3)](_0x248ea0=>_0x248ea0[_0x1cf1bf(0x2c8)]());}[_0x409fb3(0x2da)](){const _0x583d2b=_0x409fb3;return(0x0,_[_0x583d2b(0x3cd)])(this[_0x583d2b(0x317)]['unit'],this['_context']);}};I=S([x(0x1,(0x0,t[_0x409fb3(0x329)])(_[_0x409fb3(0x3bc)])),x(0x2,(0x0,t['Inject'])(A)),x(0x3,(0x0,t['Inject'])(t[_0x409fb3(0x188)]))],I);function ge(_0x1df6cb){const _0x2b19c5=_0x409fb3;let _0x2d3c80=new Map();return _0x1df6cb[_0x2b19c5(0x2e3)](_0x16d649=>{const _0x4dcbf0=_0x2b19c5;if(_0x2d3c80[_0x4dcbf0(0x1e0)](_0x16d649[_0x4dcbf0(0x39d)])){let _0x3d36f2=_0x2d3c80['get'](_0x16d649[_0x4dcbf0(0x39d)]);_0x3d36f2[_0x4dcbf0(0x166)]+=',\x20'+_0x16d649[_0x4dcbf0(0x166)];}else _0x2d3c80[_0x4dcbf0(0x16b)](_0x16d649[_0x4dcbf0(0x39d)],_0x16d649);}),Array[_0x2b19c5(0x416)](_0x2d3c80['values']());}function L(_0x1eaaba){return typeof _0x1eaaba=='object'&&!!_0x1eaaba;}function _e(_0x3f6cc8){const _0x2fd744=_0x409fb3;return _0x3f6cc8[_0x2fd744(0x3ac)]===l[_0x2fd744(0x299)][_0x2fd744(0x150)]&&_0x2fd744(0x276)in _0x3f6cc8&&L(_0x3f6cc8[_0x2fd744(0x276)])&&typeof _0x3f6cc8[_0x2fd744(0x276)][_0x2fd744(0x2bb)]==_0x2fd744(0x437)&&typeof _0x3f6cc8[_0x2fd744(0x276)]['selection']==_0x2fd744(0x437);}function ve(_0x1d7823){const _0x27172a=_0x409fb3;return _0x1d7823[_0x27172a(0x3ac)]===l['CollaborationEvent'][_0x27172a(0x320)]&&_0x27172a(0x276)in _0x1d7823&&L(_0x1d7823['data'])&&typeof _0x1d7823[_0x27172a(0x276)]['memberID']==_0x27172a(0x437);}function ye(_0xc911ab,_0x5e7bde){const _0x55e422=_0x409fb3;let _0x28b8b1;try{_0x28b8b1=JSON[_0x55e422(0x3eb)](_0xc911ab);}catch{return null;}if(!L(_0x28b8b1)||typeof _0x28b8b1[_0x55e422(0x342)]!=_0x55e422(0x437)||typeof _0x28b8b1[_0x55e422(0x312)]!=_0x55e422(0x437)||typeof _0x28b8b1[_0x55e422(0x216)]!=_0x55e422(0x437))return null;let _0x232994=typeof _0x28b8b1[_0x55e422(0x2c9)]==_0x55e422(0x236)?_0x28b8b1[_0x55e422(0x2c9)]:_0x5e7bde;if(_0x232994==null)return null;let _0x42f4b0=L(_0x28b8b1[_0x55e422(0x231)])&&typeof _0x28b8b1[_0x55e422(0x231)]['x']==_0x55e422(0x236)&&Number[_0x55e422(0x433)](_0x28b8b1[_0x55e422(0x231)]['x'])&&typeof _0x28b8b1['pointer']['y']==_0x55e422(0x236)&&Number[_0x55e422(0x433)](_0x28b8b1[_0x55e422(0x231)]['y'])?{'x':_0x28b8b1[_0x55e422(0x231)]['x'],'y':_0x28b8b1[_0x55e422(0x231)]['y']}:null;return{'kind':_0x28b8b1['kind'],'unitType':_0x232994,'unitId':_0x28b8b1[_0x55e422(0x312)],'subUnitId':_0x28b8b1['subUnitId'],'selectedIds':Array[_0x55e422(0x1b0)](_0x28b8b1[_0x55e422(0x359)])?_0x28b8b1['selectedIds'][_0x55e422(0x232)](_0x504e2a=>typeof _0x504e2a=='string'):[],'focusedId':typeof _0x28b8b1['focusedId']==_0x55e422(0x437)?_0x28b8b1['focusedId']:null,'pointer':_0x42f4b0};}function be(_0x58a7e4,_0x8966b9,_0x41b18b){const _0x5337d0=_0x409fb3;return{'kind':_0x8966b9,'unitType':_0x58a7e4,'unitId':_0x41b18b[_0x5337d0(0x312)],'subUnitId':_0x41b18b[_0x5337d0(0x216)],'selectedIds':Array[_0x5337d0(0x416)](_0x41b18b[_0x5337d0(0x359)]),'focusedId':_0x41b18b[_0x5337d0(0x24e)],'pointer':_0x41b18b[_0x5337d0(0x231)]?{..._0x41b18b[_0x5337d0(0x231)]}:null};}let R=class extends t[_0x409fb3(0x184)]{constructor(_0x421800,_0x49924b,_0x28b8d6,_0x4e9ceb,_0x4db2ed,_0x40ea27){const _0xb010be=_0x409fb3;super(),this[_0xb010be(0x312)]=_0x421800,this[_0xb010be(0x2f4)]=_0x49924b,this['_adapter']=_0x28b8d6,this[_0xb010be(0x2e5)]=_0x4e9ceb,this[_0xb010be(0x164)]=_0x4db2ed,this[_0xb010be(0x26a)]=_0x40ea27,b(this,_0xb010be(0x1c5),!0x1),b(this,_0xb010be(0x13d),!0x1);}get[_0x409fb3(0x2c9)](){const _0x276a7c=_0x409fb3;return this[_0x276a7c(0x1bd)][_0x276a7c(0x2c9)];}[_0x409fb3(0x2c8)](){const _0x1ef759=_0x409fb3;this[_0x1ef759(0x1e2)](),super[_0x1ef759(0x2c8)]();}[_0x409fb3(0x181)](){const _0x8900f9=_0x409fb3;this[_0x8900f9(0x13d)]||(this[_0x8900f9(0x13d)]=!0x0,this['_session'][_0x8900f9(0x254)][_0x8900f9(0x423)]((0x0,r[_0x8900f9(0x24c)])(this[_0x8900f9(0x3bd)]))[_0x8900f9(0x1ac)](_0x181038=>{const _0xf75330=_0x8900f9;if(_0x181038===e[_0xf75330(0x355)][_0xf75330(0x147)]){this[_0xf75330(0x1c5)]=!0x0;let _0x2e64a1=this[_0xf75330(0x1bd)][_0xf75330(0x2f9)](this[_0xf75330(0x312)]);_0x2e64a1&&this['_sendLocalPresence'](_0x2e64a1);return;}this[_0xf75330(0x1c5)]=!0x1,this[_0xf75330(0x1e2)]();}),this[_0x8900f9(0x2f4)]['event$']['pipe']((0x0,r[_0x8900f9(0x24c)])(this[_0x8900f9(0x3bd)]))['subscribe'](_0xe714f8=>{const _0x4b6719=_0x8900f9;_e(_0xe714f8)?this['_handleCursorUpdate'](_0xe714f8):ve(_0xe714f8)&&this[_0x4b6719(0x1e9)](_0xe714f8['data'][_0x4b6719(0x2bb)]);}),this[_0x8900f9(0x1bd)]['localPresence$'][_0x8900f9(0x423)]((0x0,r['filter'])(_0x6a806e=>this[_0x8900f9(0x1c5)]&&_0x6a806e[_0x8900f9(0x312)]===this[_0x8900f9(0x312)]),(0x0,r[_0x8900f9(0x41b)])(_0x548676=>(0x0,r[_0x8900f9(0x20b)])(_0x548676[_0x8900f9(0x145)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x8900f9(0x24c)])(this[_0x8900f9(0x3bd)]))[_0x8900f9(0x1ac)](_0x301be5=>this[_0x8900f9(0x136)](_0x301be5)));}[_0x409fb3(0x136)](_0x105c98){const _0x470811=_0x409fb3;let _0x417524=this['_session']['getMemberID']();if(!_0x417524||!this['_online'])return;let _0x5190c9={'eventID':l[_0x470811(0x299)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x470811(0x312)],'memberID':_0x417524,'selection':JSON[_0x470811(0x32f)](be(this[_0x470811(0x2c9)],this[_0x470811(0x1bd)][_0x470811(0x2aa)],_0x105c98))}};this[_0x470811(0x2f4)][_0x470811(0x13b)](_0x5190c9,this['unitId'])[_0x470811(0x16f)](()=>void 0x0);}['_handleCursorUpdate'](_0x28e539){const _0x24074a=_0x409fb3;let {memberID:_0x26434d,selection:_0x1ce414}=_0x28e539[_0x24074a(0x276)];if(_0x26434d===this['_session'][_0x24074a(0x3d6)]())return;let _0x157473=ye(_0x1ce414,this['unitType']);if(!_0x157473||_0x157473[_0x24074a(0x342)]!==this['_adapter'][_0x24074a(0x2aa)]||_0x157473[_0x24074a(0x2c9)]!==this[_0x24074a(0x2c9)]||_0x157473[_0x24074a(0x312)]!==this[_0x24074a(0x312)])return;let _0xc8321b=this[_0x24074a(0x164)][_0x24074a(0x2cd)](this[_0x24074a(0x312)],_0x26434d),_0x36cc88={'unitId':_0x157473[_0x24074a(0x312)],'subUnitId':_0x157473[_0x24074a(0x216)],'selectedIds':_0x157473['selectedIds'],'focusedId':_0x157473[_0x24074a(0x24e)],'pointer':_0x157473[_0x24074a(0x231)],'memberId':_0x26434d,'color':this['_colorAssignService'][_0x24074a(0x30a)](_0x26434d),'name':(_0xc8321b==null?void 0x0:_0xc8321b[_0x24074a(0x166)])??_0x26434d};this[_0x24074a(0x26a)][_0x24074a(0x1b7)](w['id'],{'unitType':this[_0x24074a(0x2c9)],'update':{'type':_0x24074a(0x16b),'state':_0x36cc88}})[_0x24074a(0x16f)](()=>void 0x0);}[_0x409fb3(0x1e9)](_0x52b013){const _0x53f3b7=_0x409fb3;this['_commandService']['executeCommand'](w['id'],{'unitType':this['unitType'],'update':{'type':_0x53f3b7(0x307),'unitId':this[_0x53f3b7(0x312)],'memberId':_0x52b013}})[_0x53f3b7(0x16f)](()=>void 0x0);}[_0x409fb3(0x1e2)](){const _0xc5ae82=_0x409fb3;this['_commandService'][_0xc5ae82(0x1b7)](w['id'],{'unitType':this[_0xc5ae82(0x2c9)],'update':{'type':'clear','unitId':this[_0xc5ae82(0x312)]}})[_0xc5ae82(0x16f)](()=>void 0x0);}};R=S([x(0x3,(0x0,t['Inject'])(E)),x(0x4,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x257)])),x(0x5,(0x0,t[_0x409fb3(0x329)])(t['ICommandService']))],R);let z=class extends t[_0x409fb3(0x184)]{constructor(_0x273c65,_0x1c6dc0,_0x461be2,_0x1dac29){const _0x568193=_0x409fb3;super(),this[_0x568193(0x1ce)]=_0x273c65,this[_0x568193(0x381)]=_0x1c6dc0,this[_0x568193(0x2ef)]=_0x461be2,this['_adapterRegistry']=_0x1dac29,b(this,_0x568193(0x24b),!0x1),b(this,_0x568193(0x15c),new Map()),b(this,_0x568193(0x3df),new Map()),b(this,'_adapterDisposables',new Map()),this[_0x568193(0x1c6)]();}['dispose'](){const _0x26be80=_0x409fb3;this[_0x26be80(0x24b)]=!0x0,this[_0x26be80(0x213)][_0x26be80(0x2e3)](_0x4f62e0=>_0x4f62e0[_0x26be80(0x2c8)]()),this['_adapterDisposables'][_0x26be80(0x365)](),this[_0x26be80(0x15c)]['forEach'](_0x5328e8=>_0x5328e8[_0x26be80(0x2c8)]()),this[_0x26be80(0x15c)][_0x26be80(0x365)](),this[_0x26be80(0x3df)]['clear'](),super['dispose']();}['_init'](){const _0x531630=_0x409fb3;this[_0x531630(0x360)][_0x531630(0x306)]['pipe']((0x0,r['takeUntil'])(this['dispose$']))['subscribe'](_0xf65dfc=>this[_0x531630(0x16c)](_0xf65dfc));}[_0x409fb3(0x16c)](_0x1b17ee){const _0xd9b927=_0x409fb3;let _0x380b3d=new Set(_0x1b17ee['map'](_0x9ea3c0=>_0x9ea3c0[_0xd9b927(0x2c9)]));this['_adapterDisposables'][_0xd9b927(0x2e3)]((_0x15f222,_0x412ed5)=>{const _0x19ebc5=_0xd9b927;_0x380b3d['has'](_0x412ed5)||(_0x15f222[_0x19ebc5(0x2c8)](),this[_0x19ebc5(0x213)][_0x19ebc5(0x205)](_0x412ed5),this[_0x19ebc5(0x410)](_0x412ed5));}),_0x1b17ee[_0xd9b927(0x2e3)](_0x112cd5=>{const _0xdb2c21=_0xd9b927;this[_0xdb2c21(0x213)][_0xdb2c21(0x1e0)](_0x112cd5[_0xdb2c21(0x2c9)])||this[_0xdb2c21(0x40d)](_0x112cd5);});}[_0x409fb3(0x40d)](_0x5c333f){const _0x1f0c7a=_0x409fb3;let _0x3952ec=new t['DisposableCollection']();this[_0x1f0c7a(0x213)][_0x1f0c7a(0x16b)](_0x5c333f[_0x1f0c7a(0x2c9)],_0x3952ec),_0x3952ec[_0x1f0c7a(0x2ce)](_0x5c333f[_0x1f0c7a(0x29d)]()),this['_univerInstanceService'][_0x1f0c7a(0x2b9)](_0x5c333f[_0x1f0c7a(0x2c9)])[_0x1f0c7a(0x2e3)](_0x1c1d1d=>this[_0x1f0c7a(0x3fb)](_0x1c1d1d[_0x1f0c7a(0x3ba)](),_0x5c333f)[_0x1f0c7a(0x16f)](()=>void 0x0));let _0x4ed4df=this[_0x1f0c7a(0x1ce)]['getTypeOfUnitAdded$'](_0x5c333f[_0x1f0c7a(0x2c9)])[_0x1f0c7a(0x1ac)](({unit:_0x3ec3b2})=>this[_0x1f0c7a(0x3fb)](_0x3ec3b2[_0x1f0c7a(0x3ba)](),_0x5c333f)[_0x1f0c7a(0x16f)](()=>void 0x0));_0x3952ec['add']((0x0,t['toDisposable'])(()=>_0x4ed4df[_0x1f0c7a(0x343)]()));let _0x2c6349=this['_univerInstanceService'][_0x1f0c7a(0x3d2)](_0x5c333f[_0x1f0c7a(0x2c9)])['subscribe'](_0x3f115c=>this['_disposeEntity'](_0x3f115c[_0x1f0c7a(0x3ba)]()));_0x3952ec['add']((0x0,t['toDisposable'])(()=>_0x2c6349[_0x1f0c7a(0x343)]()));}async[_0x409fb3(0x3fb)](_0x2d0bda,_0x3a812e){const _0x50d18b=_0x409fb3;if(this[_0x50d18b(0x15c)][_0x50d18b(0x1e0)](_0x2d0bda)||this['_pendingEntities'][_0x50d18b(0x1e0)](_0x2d0bda))return;let _0x1de1db={};this[_0x50d18b(0x3df)]['set'](_0x2d0bda,_0x1de1db);let _0x1b9a57=await this['_collabSessionService'][_0x50d18b(0x17a)](_0x2d0bda)[_0x50d18b(0x16f)](_0x2804d2=>{const _0x4fff72=_0x50d18b;throw this[_0x4fff72(0x3df)][_0x4fff72(0x424)](_0x2d0bda)===_0x1de1db&&this[_0x4fff72(0x3df)][_0x4fff72(0x205)](_0x2d0bda),_0x2804d2;});if(this[_0x50d18b(0x24b)]||this[_0x50d18b(0x3df)][_0x50d18b(0x424)](_0x2d0bda)!==_0x1de1db||this[_0x50d18b(0x360)][_0x50d18b(0x424)](_0x3a812e[_0x50d18b(0x2c9)])!==_0x3a812e){this[_0x50d18b(0x3df)][_0x50d18b(0x424)](_0x2d0bda)===_0x1de1db&&this[_0x50d18b(0x3df)][_0x50d18b(0x205)](_0x2d0bda);return;}let _0x2f888d=this[_0x50d18b(0x381)][_0x50d18b(0x36d)](R,_0x2d0bda,_0x1b9a57,_0x3a812e);_0x2f888d[_0x50d18b(0x181)](),this[_0x50d18b(0x3df)][_0x50d18b(0x205)](_0x2d0bda),this[_0x50d18b(0x15c)]['set'](_0x2d0bda,_0x2f888d);}[_0x409fb3(0x3b0)](_0x12ad85){const _0x75ee8f=_0x409fb3;this[_0x75ee8f(0x3df)][_0x75ee8f(0x205)](_0x12ad85);let _0x4d4a46=this[_0x75ee8f(0x15c)]['get'](_0x12ad85);_0x4d4a46&&(_0x4d4a46[_0x75ee8f(0x2c8)](),this['_entities'][_0x75ee8f(0x205)](_0x12ad85));}[_0x409fb3(0x410)](_0x49205d){const _0x42a2b2=_0x409fb3;this[_0x42a2b2(0x1ce)][_0x42a2b2(0x2b9)](_0x49205d)[_0x42a2b2(0x2e3)](_0x529510=>this[_0x42a2b2(0x3df)]['delete'](_0x529510[_0x42a2b2(0x3ba)]())),Array[_0x42a2b2(0x416)](this[_0x42a2b2(0x15c)][_0x42a2b2(0x401)]())[_0x42a2b2(0x2e3)](([_0x9886ec,_0x1cf626])=>{const _0x14a5f8=_0x42a2b2;_0x1cf626[_0x14a5f8(0x2c9)]===_0x49205d&&this['_disposeEntity'](_0x9886ec);});}};z=S([x(0x0,t[_0x409fb3(0x21b)]),x(0x1,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x2,(0x0,t['Inject'])(e[_0x409fb3(0x207)])),x(0x3,(0x0,t[_0x409fb3(0x329)])(n[_0x409fb3(0x275)]))],z);let B=class extends t[_0x409fb3(0x277)]{constructor(_0x12b23e,_0x292aca,_0x376f4f,_0x284576,_0x269959,_0x234a74){const _0x343774=_0x409fb3;super(),this[_0x343774(0x23a)]=_0x12b23e,this[_0x343774(0x17f)]=_0x292aca,this[_0x343774(0x3e3)]=_0x376f4f,this[_0x343774(0x178)]=_0x284576,this['_notificationService']=_0x269959,this[_0x343774(0x429)]=_0x234a74,b(this,_0x343774(0x209),null),b(this,_0x343774(0x3a6),new Set()),this[_0x343774(0x21f)](),this['_initEvent']();}[_0x409fb3(0x2c8)](){const _0x592149=_0x409fb3;var _0x3a42b3;(_0x3a42b3=this[_0x592149(0x209)])==null||_0x3a42b3[_0x592149(0x2c8)](),this[_0x592149(0x209)]=null,super['dispose']();}['_setupBeforeClosingHandler'](){const _0x22331e=_0x409fb3;this['disposeWithMe'](this[_0x22331e(0x23a)][_0x22331e(0x2fb)](()=>{const _0x1ac3ba=_0x22331e;if(this[_0x1ac3ba(0x17f)][_0x1ac3ba(0x346)][_0x1ac3ba(0x153)])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x409fb3(0x26d)](){const _0x48f1fe=_0x409fb3;this[_0x48f1fe(0x415)](this[_0x48f1fe(0x3e3)]['event$'][_0x48f1fe(0x1ac)](_0x2d12bb=>{const _0x3edfe1=_0x48f1fe;_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x411)]&&this[_0x3edfe1(0x178)]['show']({'type':a[_0x3edfe1(0x39e)]['Warning'],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x435))}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x31a)]&&this[_0x3edfe1(0x178)][_0x3edfe1(0x2a3)]({'type':a[_0x3edfe1(0x39e)]['Warning'],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x30f))}),_0x2d12bb['id']===e['CollaborationUIEventId'][_0x3edfe1(0x2b8)]&&this[_0x3edfe1(0x2b5)]({'title':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x22a)),'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x241)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x2dc)),'onClick':_0x2fd5be=>{const _0x361cb7=_0x3edfe1;_0x2fd5be['preventDefault'](),window['location'][_0x361cb7(0x154)]();}}}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x20c)]&&this[_0x3edfe1(0x374)](),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x20e)]&&_0x2d12bb[_0x3edfe1(0x172)]&&this['_showConflictCacheClearFailedNotification'](_0x2d12bb[_0x3edfe1(0x172)]),_0x2d12bb['id']===e['CollaborationUIEventId'][_0x3edfe1(0x1dc)]&&this[_0x3edfe1(0x2b5)]({'title':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x35c)),'content':this[_0x3edfe1(0x429)]['t']('collaboration-client-ui.conflict.content'),'type':_0x3edfe1(0x3ff),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x2dc)),'onClick':_0x3c3c28=>{const _0x563654=_0x3edfe1;_0x3c3c28[_0x563654(0x3fd)](),window[_0x563654(0x1d2)][_0x563654(0x154)]();}}}),_0x2d12bb['id']===e[_0x3edfe1(0x367)]['JOIN_ROOM_FAILED']&&this[_0x3edfe1(0x178)][_0x3edfe1(0x2a3)]({'type':a[_0x3edfe1(0x39e)][_0x3edfe1(0x325)],'content':this[_0x3edfe1(0x429)]['t'](_0x2d12bb[_0x3edfe1(0x276)]||'')}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x291)]&&this[_0x3edfe1(0x178)][_0x3edfe1(0x2a3)]({'type':a[_0x3edfe1(0x39e)]['Warning'],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x3a1))}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x388)]&&this[_0x3edfe1(0x178)]['show']({'type':a['MessageType'][_0x3edfe1(0x1ef)],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x135))}),_0x2d12bb['id']===e['CollaborationUIEventId'][_0x3edfe1(0x194)]&&this['_messageService']['show']({'type':a[_0x3edfe1(0x39e)][_0x3edfe1(0x1ef)],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x134))});}));}[_0x409fb3(0x374)](){const _0x2a9697=_0x409fb3;this[_0x2a9697(0x2b5)]({'title':this[_0x2a9697(0x429)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x2a9697(0x429)]['t'](_0x2a9697(0x1bf)),'type':_0x2a9697(0x28a),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x27914f){const _0x2c1d36=_0x409fb3;this[_0x2c1d36(0x2b5)]({'title':this[_0x2c1d36(0x429)]['t']('collaboration-client-ui.conflict.title'),'content':this['_localeService']['t'](_0x2c1d36(0x2f2)),'type':_0x2c1d36(0x3ff),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x2a56bc=>{const _0x18a2dd=_0x2c1d36;_0x2a56bc[_0x18a2dd(0x3fd)](),this[_0x18a2dd(0x2cf)](_0x27914f);}}});}['_retryConflictCacheClear'](_0x3bd307){const _0x5a3047=_0x409fb3;this['_retryingConflictCacheUnitIDs'][_0x5a3047(0x1e0)](_0x3bd307)||(this[_0x5a3047(0x3a6)]['add'](_0x3bd307),this[_0x5a3047(0x374)](),this[_0x5a3047(0x17f)][_0x5a3047(0x200)](_0x3bd307)[_0x5a3047(0x1d6)](()=>window[_0x5a3047(0x1d2)][_0x5a3047(0x154)]())[_0x5a3047(0x16f)](()=>this['_showConflictCacheClearFailedNotification'](_0x3bd307))[_0x5a3047(0x1aa)](()=>this[_0x5a3047(0x3a6)][_0x5a3047(0x205)](_0x3bd307)));}[_0x409fb3(0x2b5)](_0xa80e6c){const _0x585094=_0x409fb3;var _0x36040c;(_0x36040c=this[_0x585094(0x209)])==null||_0x36040c[_0x585094(0x2c8)](),this[_0x585094(0x209)]=this[_0x585094(0x336)]['show'](_0xa80e6c);}};B=S([x(0x0,n[_0x409fb3(0x25d)]),x(0x1,e[_0x409fb3(0x14c)]),x(0x2,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x23f)])),x(0x3,n[_0x409fb3(0x3f1)]),x(0x4,n[_0x409fb3(0x386)]),x(0x5,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x292)]))],B);const V=(0x0,t['createIdentifier'])(_0x409fb3(0x3a3));let H=class extends t[_0x409fb3(0x184)]{constructor(_0x109ad0,_0x438ed5,_0x3bc153,_0x47af16){const _0x2166ab=_0x409fb3;super(),this[_0x2166ab(0x1b9)]=_0x109ad0,this[_0x2166ab(0x252)]=_0x438ed5,this[_0x2166ab(0x26a)]=_0x3bc153,this[_0x2166ab(0x384)]=_0x47af16,this[_0x2166ab(0x1c6)]()[_0x2166ab(0x16f)](_0x543dd9=>this[_0x2166ab(0x252)][_0x2166ab(0x3ff)]('[CollaborationDataLoaderController]',_0x543dd9));}async[_0x409fb3(0x1c6)](){const _0x5d240d=_0x409fb3;let _0x5baa62=this[_0x5d240d(0x1b9)]['getParam']('unit'),_0x29e066=this[_0x5d240d(0x1b9)][_0x5d240d(0x143)](_0x5d240d(0x3b7)),_0x54976d=this[_0x5d240d(0x1b9)][_0x5d240d(0x143)](_0x5d240d(0x328));if(!_0x5baa62||!_0x29e066){this[_0x5d240d(0x252)][_0x5d240d(0x185)](_0x5d240d(0x3d4),_0x5d240d(0x165));return;}let _0x180fca=await this[_0x5d240d(0x384)][_0x5d240d(0x256)](_0x5baa62,Number(_0x29e066),_0x54976d);this['_disposed']||_0x180fca&&_0x180fca instanceof t[_0x5d240d(0x334)]&&await this[_0x5d240d(0x223)](_0x180fca);}async[_0x409fb3(0x223)](_0x1f62c7){const _0x14611c=_0x409fb3;await this[_0x14611c(0x41d)](_0x1f62c7,!0x0),!this[_0x14611c(0x278)]&&(_0x1f62c7[_0x14611c(0x2d3)][_0x14611c(0x423)]((0x0,r[_0x14611c(0x24c)])(this[_0x14611c(0x3bd)]))[_0x14611c(0x1ac)](_0x23219d=>{_0x23219d&&this['_updateURLWithCurrentState'](_0x23219d);}),this[_0x14611c(0x1b9)][_0x14611c(0x3ee)][_0x14611c(0x423)]((0x0,r[_0x14611c(0x24c)])(this[_0x14611c(0x3bd)]))[_0x14611c(0x1ac)](()=>{const _0x5a59d6=_0x14611c;this[_0x5a59d6(0x41d)](_0x1f62c7)['catch'](_0x263e53=>this[_0x5a59d6(0x252)][_0x5a59d6(0x3ff)](_0x5a59d6(0x3d4),_0x263e53));}));}['_updateURLWithCurrentState'](_0x362f11,_0x1fa104=!0x1){const _0x3b3dbf=_0x409fb3;let _0x22a0c8=this[_0x3b3dbf(0x1b9)][_0x3b3dbf(0x143)]('subunit');_0x362f11[_0x3b3dbf(0x38d)]()!==_0x22a0c8&&this[_0x3b3dbf(0x1b9)]['setParam'](_0x3b3dbf(0x328),_0x362f11[_0x3b3dbf(0x38d)](),_0x1fa104);}async[_0x409fb3(0x41d)](_0x2ec84f,_0x3d1f49=!0x1){const _0x32eeca=_0x409fb3;var _0xeb3130;let _0x18d9ad=this[_0x32eeca(0x1b9)][_0x32eeca(0x143)](_0x32eeca(0x328));if(!_0x18d9ad||!_0x2ec84f[_0x32eeca(0x2ca)](_0x18d9ad)){let _0x4c21a4=_0x2ec84f['getUnhiddenWorksheets']()[0x0],_0x25408b=_0x2ec84f[_0x32eeca(0x2ca)](_0x4c21a4);if(!_0x25408b||(this['_updateURLWithCurrentState'](_0x25408b,!0x0),this['_disposed']))return;await this[_0x32eeca(0x26a)][_0x32eeca(0x1b7)](g[_0x32eeca(0x14e)]['id'],{'unitId':_0x2ec84f[_0x32eeca(0x3ba)](),'subUnitId':_0x4c21a4});return;}(_0x3d1f49||((_0xeb3130=_0x2ec84f[_0x32eeca(0x1b2)]())==null?void 0x0:_0xeb3130[_0x32eeca(0x38d)]())!==_0x18d9ad)&&await this[_0x32eeca(0x26a)][_0x32eeca(0x1b7)](g[_0x32eeca(0x14e)]['id'],{'unitId':_0x2ec84f[_0x32eeca(0x3ba)](),'subUnitId':_0x18d9ad});}};H=S([x(0x0,V),x(0x1,t['ILogService']),x(0x2,t[_0x409fb3(0x228)]),x(0x3,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x1c4)]))],H);let U=class{constructor(_0x4b13f1,_0x2c0448){const _0x4a0c17=_0x409fb3;this['_transformService']=_0x4b13f1,this[_0x4a0c17(0x2a4)]=_0x2c0448;}[_0x409fb3(0x39a)](_0x4b2fba){const _0x17de12=_0x409fb3;this[_0x17de12(0x197)](_0x4b2fba),this[_0x17de12(0x288)](_0x4b2fba);}['transformRemoteChangeset'](_0x186957){const _0x442b9c=_0x409fb3;let {unitID:_0x24afac}=_0x186957,{redoCache:_0x2ccb7a}=this[_0x442b9c(0x2a4)][_0x442b9c(0x250)](_0x24afac)['with'](f[_0x442b9c(0x3ce)])[_0x442b9c(0x371)]();if(_0x2ccb7a[_0x442b9c(0x1fa)]===0x0)return _0x186957;let _0x33cb5c=t[_0x442b9c(0x29e)][_0x442b9c(0x1e7)](_0x186957[_0x442b9c(0x267)][0x0]);for(let _0x275911=0x0;_0x275911<_0x2ccb7a[_0x442b9c(0x1fa)];_0x275911++){let _0x3147e0={'id':'doc.mutation.rich-text-editing','params':{..._0x2ccb7a[_0x275911]}},_0x3ba285=this[_0x442b9c(0x212)][_0x442b9c(0x38a)](_0x33cb5c,_0x3147e0,!0x1);if((0x0,l[_0x442b9c(0x13e)])(_0x3ba285))throw _0x3ba285[_0x442b9c(0x3ff)];_0x33cb5c=_0x3ba285[_0x442b9c(0x1fe)];}return{...t[_0x442b9c(0x29e)][_0x442b9c(0x1e7)](_0x186957),'mutations':[_0x33cb5c]};}['_transformUndoRedoStack'](_0x36fb77){const _0x1f0b20=_0x409fb3;let {unitID:_0x57763c}=_0x36fb77,_0x55ba36=this['_renderManagerService'][_0x1f0b20(0x250)](_0x57763c)[_0x1f0b20(0x383)](f[_0x1f0b20(0x3ce)]),{undoCache:_0x269249,redoCache:_0x49eb59}=_0x55ba36[_0x1f0b20(0x371)]();if(_0x269249[_0x1f0b20(0x1fa)]===0x0||_0x49eb59[_0x1f0b20(0x1fa)]===0x0)return;let _0x40e62=[],_0x47d26c=[],_0x318793=t[_0x1f0b20(0x29e)][_0x1f0b20(0x1e7)](_0x36fb77[_0x1f0b20(0x267)][0x0]),_0x293928=t['Tools']['deepClone'](_0x36fb77[_0x1f0b20(0x267)][0x0]);for(let _0x828de0=_0x269249[_0x1f0b20(0x1fa)]-0x1;_0x828de0>=0x0;_0x828de0--){let _0x4c62d1={'id':_0x1f0b20(0x2ba),'params':{..._0x269249[_0x828de0]}},_0x3ee23c={'id':_0x1f0b20(0x2ba),'params':{..._0x49eb59[_0x828de0]}},_0x13e940=this[_0x1f0b20(0x212)][_0x1f0b20(0x38a)](_0x318793,_0x4c62d1,!0x1),_0x393f8d=this['_transformService']['transformMutation'](_0x293928,_0x3ee23c,!0x1);if((0x0,l[_0x1f0b20(0x13e)])(_0x13e940))throw _0x13e940[_0x1f0b20(0x3ff)];if((0x0,l[_0x1f0b20(0x13e)])(_0x393f8d))throw _0x393f8d['error'];_0x40e62[_0x1f0b20(0x26b)](_0x13e940['m2Prime'][_0x1f0b20(0x1ee)]),_0x47d26c[_0x1f0b20(0x26b)](_0x393f8d[_0x1f0b20(0x3c5)][_0x1f0b20(0x1ee)]),_0x318793=_0x13e940['m1Prime'],_0x293928=_0x393f8d[_0x1f0b20(0x1fe)];}_0x55ba36[_0x1f0b20(0x3d0)]({'undoCache':_0x40e62,'redoCache':_0x47d26c});}[_0x409fb3(0x288)](_0x1bb4f0){const _0x184462=_0x409fb3;let {unitID:_0x2feb49}=_0x1bb4f0,_0x5abcf4=this[_0x184462(0x2a4)]['getRenderUnitById'](_0x2feb49)[_0x184462(0x383)](f[_0x184462(0x3ce)]),_0x4226dd=_0x5abcf4[_0x184462(0x34e)]();if(_0x4226dd==null)return;let _0x5079c7=[{'id':_0x184462(0x2ba),'params':{'unitId':_0x1bb4f0[_0x184462(0x172)],'actions':null,'textRanges':[_0x4226dd]}}],_0x4574f5=this[_0x184462(0x212)][_0x184462(0x42e)](_0x1bb4f0,_0x5079c7);if(!(0x0,l[_0x184462(0x2d7)])(_0x4574f5))throw _0x4574f5[_0x184462(0x3ff)];let _0x57ea83=_0x4574f5[_0x184462(0x3c5)][0x0][_0x184462(0x1ee)][_0x184462(0x308)];Array[_0x184462(0x1b0)](_0x57ea83)&&_0x57ea83['length']&&_0x5abcf4[_0x184462(0x215)](_0x57ea83[0x0]);}};U=S([x(0x0,l['ITransformService']),x(0x1,p[_0x409fb3(0x210)])],U);let W=class{constructor(_0x2ee770,_0x5bf84c,_0x219fbf){const _0x47eaac=_0x409fb3;this[_0x47eaac(0x381)]=_0x2ee770,this['_transformService']=_0x5bf84c,this['_docStateChangeManagerService']=_0x219fbf;}[_0x409fb3(0x179)](_0x14373b){this['_transformHistoryAndStateStack'](_0x14373b);}[_0x409fb3(0x29c)](_0x19b1b4){const _0xfefb9e=_0x409fb3;let {unitID:_0x375b65}=_0x19b1b4,{collaboration:_0x3ab8ca}=this['_docStateChangeManagerService'][_0xfefb9e(0x417)](_0x375b65);if(_0x3ab8ca[_0xfefb9e(0x1fa)]===0x0)return _0x19b1b4;let _0x175400=t[_0xfefb9e(0x29e)][_0xfefb9e(0x1e7)](_0x19b1b4[_0xfefb9e(0x267)][0x0]);for(let _0x1d2fb9=0x0;_0x1d2fb9<_0x3ab8ca[_0xfefb9e(0x1fa)];_0x1d2fb9++){let _0x23187d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3ab8ca[_0x1d2fb9][_0xfefb9e(0x312)],..._0x3ab8ca[_0x1d2fb9][_0xfefb9e(0x1db)]}},_0x28bae7=this[_0xfefb9e(0x212)][_0xfefb9e(0x38a)](_0x175400,_0x23187d,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x28bae7))throw _0x28bae7[_0xfefb9e(0x3ff)];_0x175400=_0x28bae7['m1Prime'];}return{...t[_0xfefb9e(0x29e)]['deepClone'](_0x19b1b4),'mutations':[_0x175400]};}[_0x409fb3(0x218)](_0x374003){const _0x5325c8=_0x409fb3;let {unitID:_0x34999d}=_0x374003,{history:_0x35a81b,collaboration:_0x118966}=this[_0x5325c8(0x432)][_0x5325c8(0x417)](_0x34999d);if(_0x35a81b['length']===0x0&&_0x118966[_0x5325c8(0x1fa)]===0x0)return;let _0x4ffb64=[],_0x3f6c19=[],_0x1ddfb3=t['Tools'][_0x5325c8(0x1e7)](_0x374003[_0x5325c8(0x267)][0x0]),_0x4b9049=t[_0x5325c8(0x29e)][_0x5325c8(0x1e7)](_0x374003[_0x5325c8(0x267)][0x0]);for(let _0x82cb63=_0x35a81b[_0x5325c8(0x1fa)]-0x1;_0x82cb63>=0x0;_0x82cb63--){let _0x2452a8={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x35a81b[_0x82cb63][_0x5325c8(0x312)],..._0x35a81b[_0x82cb63][_0x5325c8(0x244)]}},_0x30a50a={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x35a81b[_0x82cb63][_0x5325c8(0x312)],..._0x35a81b[_0x82cb63]['redoState']}},_0x3f6210=this[_0x5325c8(0x212)][_0x5325c8(0x38a)](_0x1ddfb3,_0x2452a8,!0x1),_0x734fa9=this[_0x5325c8(0x212)][_0x5325c8(0x38a)](_0x4b9049,_0x30a50a,!0x1);if((0x0,l[_0x5325c8(0x13e)])(_0x3f6210))throw _0x3f6210['error'];if((0x0,l[_0x5325c8(0x13e)])(_0x734fa9))throw _0x734fa9['error'];_0x4ffb64[_0x5325c8(0x26b)]({..._0x35a81b[_0x82cb63],'undoState':_0x3f6210[_0x5325c8(0x3c5)]['params'],'redoState':_0x734fa9['m2Prime'][_0x5325c8(0x1ee)]}),_0x1ddfb3=_0x3f6210[_0x5325c8(0x1fe)],_0x4b9049=_0x734fa9[_0x5325c8(0x1fe)];}_0x1ddfb3=t['Tools']['deepClone'](_0x374003[_0x5325c8(0x267)][0x0]),_0x4b9049=t[_0x5325c8(0x29e)][_0x5325c8(0x1e7)](_0x374003[_0x5325c8(0x267)][0x0]);for(let _0x8bcf50=_0x118966[_0x5325c8(0x1fa)]-0x1;_0x8bcf50>=0x0;_0x8bcf50--){let _0x254157={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x118966[_0x8bcf50]['unitId'],..._0x118966[_0x8bcf50][_0x5325c8(0x244)]}},_0x51611b={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x118966[_0x8bcf50][_0x5325c8(0x312)],..._0x118966[_0x8bcf50]['redoState']}},_0x1779b9=this[_0x5325c8(0x212)][_0x5325c8(0x38a)](_0x1ddfb3,_0x254157,!0x1),_0x5dff59=this[_0x5325c8(0x212)]['transformMutation'](_0x4b9049,_0x51611b,!0x1);if((0x0,l[_0x5325c8(0x13e)])(_0x1779b9))throw _0x1779b9[_0x5325c8(0x3ff)];if((0x0,l[_0x5325c8(0x13e)])(_0x5dff59))throw _0x5dff59[_0x5325c8(0x3ff)];_0x3f6c19[_0x5325c8(0x26b)]({..._0x118966[_0x8bcf50],'undoState':_0x1779b9['m2Prime'][_0x5325c8(0x1ee)],'redoState':_0x5dff59[_0x5325c8(0x3c5)][_0x5325c8(0x1ee)]}),_0x1ddfb3=_0x1779b9[_0x5325c8(0x1fe)],_0x4b9049=_0x5dff59[_0x5325c8(0x1fe)];}this['_docStateChangeManagerService'][_0x5325c8(0x2e9)](_0x34999d,{'history':_0x4ffb64,'collaboration':_0x3f6c19});}};W=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(t['Injector'])),x(0x1,l[_0x409fb3(0x235)]),x(0x2,(0x0,t['Inject'])(d['DocStateChangeManagerService']))],W);let G=class{constructor(_0x1a46c9,_0x287cd3){const _0x2bc0ae=_0x409fb3;this['_docSelectionManagerService']=_0x1a46c9,this[_0x2bc0ae(0x212)]=_0x287cd3;}[_0x409fb3(0x2c2)](_0x863a30){const _0x549c93=_0x409fb3;var _0x3c4c89;let _0x3f6e7e=this[_0x549c93(0x284)][_0x549c93(0x293)]()??[],_0x26a8f7=this[_0x549c93(0x284)][_0x549c93(0x3c3)]();if(_0x3f6e7e[_0x549c93(0x1fa)]===0x0||_0x26a8f7==null)return null;let _0x47f106=_0x863a30['unitID'],_0x262dd3=[{'id':_0x549c93(0x2ba),'params':{'unitId':_0x47f106,'actions':null,'textRanges':_0x3f6e7e}}],_0x5b8598=this[_0x549c93(0x212)]['transformMutationsWithChangeset'](_0x863a30,_0x262dd3);if(!(0x0,l[_0x549c93(0x2d7)])(_0x5b8598))throw _0x5b8598[_0x549c93(0x3ff)];let _0x147bdc=(_0x3c4c89=_0x5b8598['m2Prime'][0x0])==null?void 0x0:_0x3c4c89[_0x549c93(0x1ee)],_0x375070=_0x147bdc&&typeof _0x147bdc==_0x549c93(0x198)&&_0x549c93(0x308)in _0x147bdc?_0x147bdc['textRanges']:null;if(!Ce(_0x375070))return null;let _0x271e71=xe(_0x863a30[_0x549c93(0x267)][_0x549c93(0x387)](_0x236674=>K(_0x236674[_0x549c93(0x1ee)]))?_0x375070[_0x549c93(0x232)](_0x10421b=>!('tableId'in _0x10421b)):_0x375070,{..._0x26a8f7,'options':_0x26a8f7['options']?{..._0x26a8f7[_0x549c93(0x203)],'wholeDocument':!0x1}:void 0x0}),_0x56c923={'unitId':_0x47f106,'subUnitId':_0x47f106};this[_0x549c93(0x284)]['replaceSelectionInfoWithoutRefresh'](_0x271e71,_0x56c923);let _0xcdf38b=!0x0;return{'commit':()=>{_0xcdf38b=!0x1;},'rollback':()=>{const _0x5577c5=_0x549c93;_0xcdf38b&&(_0xcdf38b=!0x1,this[_0x5577c5(0x284)][_0x5577c5(0x1f1)](_0x26a8f7,_0x56c923));}};}};G=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(d['DocSelectionManagerService'])),x(0x1,l[_0x409fb3(0x235)])],G);function xe(_0x58a09c,_0x5aaffd){const _0x1e0d0f=_0x409fb3;let _0x8f69bc=[],_0x30cee6=[];for(let _0x35bc43 of _0x58a09c)Se(_0x35bc43)?_0x30cee6[_0x1e0d0f(0x2df)](_0x35bc43):_0x8f69bc[_0x1e0d0f(0x2df)](_0x35bc43);return{..._0x5aaffd,'textRanges':_0x8f69bc,'rectRanges':_0x30cee6};}function Se(_0x240832){const _0x367e1d=_0x409fb3;return _0x367e1d(0x25f)in _0x240832;}function Ce(_0x3bb4fb){const _0xa652a5=_0x409fb3;return Array['isArray'](_0x3bb4fb)&&_0x3bb4fb[_0xa652a5(0x2ed)](_0x584dbf=>typeof _0x584dbf=='object'&&!!_0x584dbf&&_0xa652a5(0x35e)in _0x584dbf&&_0xa652a5(0x2c0)in _0x584dbf);}function K(_0x17550f){const _0x1bc4da=_0x409fb3;return _0x17550f===_0x1bc4da(0x229)?!0x0:Array[_0x1bc4da(0x1b0)](_0x17550f)?_0x17550f[_0x1bc4da(0x387)](_0xd10956=>K(_0xd10956)):!_0x17550f||typeof _0x17550f!=_0x1bc4da(0x198)?!0x1:Object[_0x1bc4da(0x25c)](_0x17550f)[_0x1bc4da(0x387)](_0x107028=>K(_0x107028));}let q=class extends t[_0x409fb3(0x277)]{constructor(_0x5c4ecc,_0x240c14,_0x1a2e17,_0x376e64,_0x3e3b2f,_0x16eecf,_0x3990d1){const _0x531835=_0x409fb3;super(),this[_0x531835(0x1e4)]=_0x5c4ecc,this['_docTransformIMECacheService']=_0x240c14,this[_0x531835(0x249)]=_0x1a2e17,this[_0x531835(0x1b6)]=_0x376e64,this['_docSyncEditingCollabCursorService']=_0x3e3b2f,this['_messageService']=_0x16eecf,this[_0x531835(0x429)]=_0x3990d1,b(this,'_status$',new r[(_0x531835(0x392))](e[_0x531835(0x373)]['NOT_COLLAB'])),this[_0x531835(0x2a6)]();}[_0x409fb3(0x2a6)](){const _0x59ffcb=_0x409fb3;this[_0x59ffcb(0x415)](this[_0x59ffcb(0x1e4)][_0x59ffcb(0x2a2)][_0x59ffcb(0x1ac)](_0x60ea54=>{const _0x1aeaff=_0x59ffcb;_0x60ea54 instanceof e['DocCollaborationEntity']&&_0x60ea54[_0x1aeaff(0x3aa)]({'onTransformIME':_0x260ef7=>this['_docTransformIMECacheService'][_0x1aeaff(0x39a)](_0x260ef7),'onTransformState':_0x301b0c=>this[_0x1aeaff(0x249)][_0x1aeaff(0x179)](_0x301b0c),'onPrepareTransformSelections':_0x993ee6=>this[_0x1aeaff(0x1b6)][_0x1aeaff(0x2c2)](_0x993ee6),'onSyncEditingCollabCursor':_0x3dbe36=>this[_0x1aeaff(0x310)]['syncEditingCollabCursor'](_0x3dbe36),'onTransformRemoteChangesetByIMECache':_0x6d0ebb=>this[_0x1aeaff(0x27e)][_0x1aeaff(0x29c)](_0x6d0ebb),'onTransformRemoteChangesetByStateCache':_0x2f2fe2=>this[_0x1aeaff(0x249)][_0x1aeaff(0x29c)](_0x2f2fe2)});}));}};q=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(e['CollaborationController'])),x(0x1,(0x0,t[_0x409fb3(0x329)])(U)),x(0x2,(0x0,t[_0x409fb3(0x329)])(W)),x(0x3,(0x0,t[_0x409fb3(0x329)])(G)),x(0x4,(0x0,t['Inject'])(D)),x(0x5,n['IMessageService']),x(0x6,(0x0,t[_0x409fb3(0x329)])(t['LocaleService']))],q);let J=class extends t[_0x409fb3(0x277)]{constructor(_0xf34c07,_0x823349,_0x49a594,_0xc812bf){const _0x48bd00=_0x409fb3;super(),this[_0x48bd00(0x381)]=_0xf34c07,this['_httpService']=_0x823349,this[_0x48bd00(0x252)]=_0x49a594,this[_0x48bd00(0x17c)]=_0xc812bf,b(this,'_memberID',void 0x0),this[_0x48bd00(0x1c6)]();}[_0x409fb3(0x1c6)](){const _0x48e3bb=_0x409fb3;this[_0x48e3bb(0x3e8)](),this[_0x48e3bb(0x268)](),this['_monkeyPatchLogService'](),this[_0x48e3bb(0x230)]();}[_0x409fb3(0x230)](){const _0x90b71d=_0x409fb3;this['disposeWithMe'](this['_collaborationSessionService'][_0x90b71d(0x40a)][_0x90b71d(0x1ac)](_0x55ee62=>{const _0x539662=_0x90b71d;this[_0x539662(0x149)]=_0x55ee62==null?void 0x0:_0x55ee62[_0x539662(0x2bb)];}));}[_0x409fb3(0x3e8)](){const _0x5e9a54=_0x409fb3;let _0x193abf=_0x3c485a=>{const _0x13d14d=_0x4188;var _0x5327ec;this[_0x13d14d(0x18a)]('error','[Window\x20Error]:\x20'+_0x3c485a['message']+'\x20at\x20'+_0x3c485a[_0x13d14d(0x16e)]+':'+_0x3c485a[_0x13d14d(0x2d1)]+':'+_0x3c485a[_0x13d14d(0x3b5)]+'\x0a'+(((_0x5327ec=_0x3c485a[_0x13d14d(0x3ff)])==null?void 0x0:_0x5327ec[_0x13d14d(0x2b6)])||''));};window[_0x5e9a54(0x36c)](_0x5e9a54(0x3ff),_0x193abf),this[_0x5e9a54(0x415)](()=>{const _0x286c5e=_0x5e9a54;window[_0x286c5e(0x1c8)](_0x286c5e(0x3ff),_0x193abf);});}['_initUnhandledRejectionListener'](){const _0x8a77be=_0x409fb3;let _0x9bdb9=_0x476f96=>{const _0x2b4942=_0x4188;this[_0x2b4942(0x18a)]('error',_0x2b4942(0x377)+_0x476f96['reason']);};window[_0x8a77be(0x36c)]('unhandledrejection',_0x9bdb9),this[_0x8a77be(0x415)](()=>{const _0x56c73d=_0x8a77be;window[_0x56c73d(0x1c8)](_0x56c73d(0x1d0),_0x9bdb9);});}[_0x409fb3(0x393)](){const _0x439d36=_0x409fb3;let _0x9f7952=this[_0x439d36(0x252)][_0x439d36(0x3ff)][_0x439d36(0x2d5)](this[_0x439d36(0x252)]);this[_0x439d36(0x252)][_0x439d36(0x3ff)]=(..._0x235155)=>{const _0x5a671b=_0x439d36;let _0x3bbe99=_0x235155[_0x5a671b(0x3c9)](_0x31b9e7=>_0x31b9e7 instanceof Error?_0x31b9e7[_0x5a671b(0x138)]+'\x0a'+_0x31b9e7[_0x5a671b(0x2b6)]:String(_0x31b9e7))[_0x5a671b(0x3e2)]('\x20');this[_0x5a671b(0x18a)](_0x5a671b(0x3ff),_0x5a671b(0x3c4)+_0x3bbe99),_0x9f7952(..._0x235155);},this[_0x439d36(0x415)](()=>{const _0x5de369=_0x439d36;this['_logService'][_0x5de369(0x3ff)]=_0x9f7952;});}[_0x409fb3(0x18a)](_0x1dcf84,_0x33acfc){const _0xadd02=_0x409fb3;try{let _0x513766={'userId':this[_0xadd02(0x149)],'logLabel':_0x1dcf84,'content':_0x33acfc};this[_0xadd02(0x300)]['post'](_0xadd02(0x3de),{'body':_0x513766})[_0xadd02(0x16f)](()=>{});}catch{}}};J=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x1,(0x0,t['Inject'])(m[_0x409fb3(0x238)])),x(0x2,t[_0x409fb3(0x1f3)]),x(0x3,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x207)]))],J);function we({state$:_0x9d4606}){const _0x116e0b=_0x409fb3;let _0x3e2652=(0x0,n[_0x116e0b(0x297)])(_0x9d4606,null,!0x0);return _0x3e2652?(0x0,c[_0x116e0b(0x2f3)])(_0x116e0b(0x1cf),{'data-u-comp':_0x116e0b(0x370),'role':_0x116e0b(0x26c),'className':_0x116e0b(0x20f),'children':[(0x0,c[_0x116e0b(0x350)])(o[_0x116e0b(0x33a)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,c['jsx'])(_0x116e0b(0x1af),{'children':_0x3e2652[_0x116e0b(0x217)]}),(0x0,c['jsx'])(a[_0x116e0b(0x2a1)],{'size':_0x116e0b(0x349),'variant':_0x116e0b(0x3e9),'onClick':()=>window[_0x116e0b(0x1d2)][_0x116e0b(0x154)](),'children':_0x3e2652[_0x116e0b(0x37b)]})]}):null;}const Te='snapshot-loading-';let Y=class extends t[_0x409fb3(0x277)]{constructor(_0x27fcca,_0x4cba95,_0x2291a1,_0x3c21d4,_0x7faef1,_0x130b41){const _0xbe0b83=_0x409fb3;super(),this[_0xbe0b83(0x38b)]=_0x27fcca,this[_0xbe0b83(0x178)]=_0x4cba95,this[_0xbe0b83(0x429)]=_0x2291a1,this['_injector']=_0x3c21d4,this[_0xbe0b83(0x1b9)]=_0x130b41,b(this,_0xbe0b83(0x403),new r['BehaviorSubject'](null)),b(this,_0xbe0b83(0x142),new Set()),b(this,_0xbe0b83(0x36e),new Map()),b(this,_0xbe0b83(0x2dd),new Map()),b(this,_0xbe0b83(0x158),this[_0xbe0b83(0x403)][_0xbe0b83(0x1c2)]());let _0x229677=()=>(0x0,s[_0xbe0b83(0x313)])(we,{'state$':this['timeoutState$']});this[_0xbe0b83(0x415)](_0x7faef1[_0xbe0b83(0x258)](n[_0xbe0b83(0x37f)][_0xbe0b83(0x2c7)],()=>(0x0,n['connectInjector'])(_0x229677,this['_injector']))),this[_0xbe0b83(0x415)](this['_snapshotLoadingService'][_0xbe0b83(0x30d)][_0xbe0b83(0x1ac)](_0x45b853=>{const _0x55ab9b=_0xbe0b83;this[_0x55ab9b(0x2dd)]=_0x45b853,_0x45b853['forEach'](_0xdf8344=>this[_0x55ab9b(0x323)](_0xdf8344));})),this[_0xbe0b83(0x415)](this[_0xbe0b83(0x1b9)]['urlChange$'][_0xbe0b83(0x1ac)](()=>{const _0x16d4d4=_0xbe0b83;this[_0x16d4d4(0x2dd)][_0x16d4d4(0x2e3)](_0x3f7054=>this['_updateMessage'](_0x3f7054));}));}['dispose'](){const _0x447fa0=_0x409fb3;this[_0x447fa0(0x142)][_0x447fa0(0x2e3)](_0x34dbfa=>this[_0x447fa0(0x178)][_0x447fa0(0x307)](_0x34dbfa)),this['_messageIds'][_0x447fa0(0x365)](),this[_0x447fa0(0x36e)][_0x447fa0(0x2e3)](({timeoutId:_0x48cc84})=>clearTimeout(_0x48cc84)),this[_0x447fa0(0x36e)]['clear'](),this[_0x447fa0(0x403)]['complete'](),super[_0x447fa0(0x2c8)]();}[_0x409fb3(0x323)](_0x2262b7){const _0xc36fde=_0x409fb3;let _0x2c1a00=''+Te+_0x2262b7['unitId'];if(_0x2262b7[_0xc36fde(0x17b)]===l[_0xc36fde(0x294)]['COMPLETE']){this['_clearBlockProgressWatch'](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x327)](_0x2262b7['unitId']),this[_0xc36fde(0x178)][_0xc36fde(0x307)](_0x2c1a00),this[_0xc36fde(0x142)][_0xc36fde(0x205)](_0x2c1a00);return;}if(!this[_0xc36fde(0x322)](_0x2262b7[_0xc36fde(0x312)])){this[_0xc36fde(0x266)](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x327)](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x178)][_0xc36fde(0x307)](_0x2c1a00),this['_messageIds'][_0xc36fde(0x205)](_0x2c1a00);return;}if(_0x2262b7[_0xc36fde(0x17b)]===l[_0xc36fde(0x294)]['ERROR']){this[_0xc36fde(0x266)](_0x2262b7['unitId']),this[_0xc36fde(0x327)](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x178)][_0xc36fde(0x2a3)]({'id':_0x2c1a00,'type':a[_0xc36fde(0x39e)]['Error'],'content':this['_localeService']['t'](_0xc36fde(0x135))}),this[_0xc36fde(0x142)][_0xc36fde(0x205)](_0x2c1a00);return;}if(_0x2262b7[_0xc36fde(0x17b)]!==l['SnapshotLoadStage']['LOADING_BLOCKS']||_0x2262b7['totalBlocks']<=0xa){this['_clearBlockProgressWatch'](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x178)][_0xc36fde(0x307)](_0x2c1a00),this[_0xc36fde(0x142)][_0xc36fde(0x205)](_0x2c1a00);return;}this['_watchBlockProgress'](_0x2262b7)||(this[_0xc36fde(0x178)]['show']({'id':_0x2c1a00,'type':a[_0xc36fde(0x39e)][_0xc36fde(0x204)],'duration':0x1/0x0,'content':this[_0xc36fde(0x429)]['t'](_0xc36fde(0x2e7))+'\x20'+_0x2262b7['loadedBlocks']+'/'+_0x2262b7['totalBlocks']}),this[_0xc36fde(0x142)][_0xc36fde(0x2ce)](_0x2c1a00));}[_0x409fb3(0x339)](_0xebf371){const _0x1a5093=_0x409fb3;let _0xa47f76=this[_0x1a5093(0x36e)][_0x1a5093(0x424)](_0xebf371[_0x1a5093(0x312)]);if((_0xa47f76==null?void 0x0:_0xa47f76[_0x1a5093(0x193)])===_0xebf371[_0x1a5093(0x193)])return _0xa47f76[_0x1a5093(0x395)];this[_0x1a5093(0x266)](_0xebf371[_0x1a5093(0x312)]);let _0xd48808=setTimeout(()=>{const _0x1af5cc=_0x1a5093;let _0x3caa69=this[_0x1af5cc(0x36e)][_0x1af5cc(0x424)](_0xebf371[_0x1af5cc(0x312)]);if(!_0x3caa69||_0x3caa69[_0x1af5cc(0x341)]!==_0xd48808)return;_0x3caa69[_0x1af5cc(0x395)]=!0x0;let _0x1144fa=''+Te+_0xebf371['unitId'];this['_messageService'][_0x1af5cc(0x307)](_0x1144fa),this['_messageIds'][_0x1af5cc(0x205)](_0x1144fa),this[_0x1af5cc(0x403)]['next']({'unitId':_0xebf371[_0x1af5cc(0x312)],'content':this['_localeService']['t'](_0x1af5cc(0x1b4),String(_0xebf371[_0x1af5cc(0x193)]),String(_0xebf371['totalBlocks'])),'refreshLabel':this['_localeService']['t'](_0x1af5cc(0x2dc))});},0xea60);return this[_0x1a5093(0x36e)]['set'](_0xebf371[_0x1a5093(0x312)],{'loadedBlocks':_0xebf371[_0x1a5093(0x193)],'timedOut':!0x1,'timeoutId':_0xd48808}),!0x1;}['_clearBlockProgressWatch'](_0x4268ce){const _0x247ecb=_0x409fb3;let _0x38bee3=this[_0x247ecb(0x36e)]['get'](_0x4268ce);_0x38bee3&&(clearTimeout(_0x38bee3[_0x247ecb(0x341)]),this[_0x247ecb(0x36e)][_0x247ecb(0x205)](_0x4268ce),this[_0x247ecb(0x327)](_0x4268ce));}[_0x409fb3(0x327)](_0x459046){const _0x2159e4=_0x409fb3;var _0x383215;((_0x383215=this[_0x2159e4(0x403)]['value'])==null?void 0x0:_0x383215[_0x2159e4(0x312)])===_0x459046&&this['_timeoutState$'][_0x2159e4(0x1a1)](null);}['_isVisibleUnit'](_0x118fb3){const _0x5ebc9c=_0x409fb3;let _0x37f057=this[_0x5ebc9c(0x1b9)][_0x5ebc9c(0x143)]('unit');return!_0x37f057||_0x37f057===_0x118fb3;}};Y=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(l['SnapshotLoadingService'])),x(0x1,n[_0x409fb3(0x3f1)]),x(0x2,(0x0,t['Inject'])(t[_0x409fb3(0x292)])),x(0x3,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x4,n[_0x409fb3(0x1e3)]),x(0x5,V)],Y);let X=class extends t[_0x409fb3(0x277)]{constructor(_0x4eedcd,_0x2a18ae,_0x52fcc4){const _0x49e624=_0x409fb3;super(),this[_0x49e624(0x279)]=_0x4eedcd,this[_0x49e624(0x2f6)]=_0x2a18ae,this[_0x49e624(0x414)]=_0x52fcc4,b(this,_0x49e624(0x27c),new Map()),b(this,_0x49e624(0x3a5),new Map()),b(this,_0x49e624(0x1e5),new Map()),b(this,_0x49e624(0x222),!0x1);}[_0x409fb3(0x3e6)](){const _0x42e8cb=_0x409fb3;this[_0x42e8cb(0x222)]=!0x0;}[_0x409fb3(0x15a)](){this['_disabled']=!0x1;}get[_0x409fb3(0x346)](){const _0x3d41d4=_0x409fb3;return this[_0x3d41d4(0x3a5)];}[_0x409fb3(0x2c8)](){const _0x3ba01e=_0x409fb3;this[_0x3ba01e(0x1c1)]()['then'](()=>super[_0x3ba01e(0x2c8)]());}async[_0x409fb3(0x3f6)](_0x312b58){const _0x2d9d18=_0x409fb3;return this[_0x2d9d18(0x222)]?null:this[_0x2d9d18(0x2f6)][_0x2d9d18(0x298)]((0x0,e['getLocalCacheKey'])(_0x312b58));}async[_0x409fb3(0x264)](_0x26e310,_0x4f1818){const _0x8cf77a=_0x409fb3;let _0x301282=this[_0x8cf77a(0x2f6)][_0x8cf77a(0x269)]((0x0,e[_0x8cf77a(0x144)])(_0x26e310),_0x4f1818);return this['_trackActiveSaveTask'](_0x26e310,_0x301282),!!await _0x301282;}async[_0x409fb3(0x17e)](_0x5a531f,_0x30bdb2){const _0x34718b=_0x409fb3;let _0xb431fe=this[_0x34718b(0x27c)]['get'](_0x5a531f)??await this[_0x34718b(0x2f6)]['getItem']((0x0,e[_0x34718b(0x144)])(_0x5a531f));if(!_0xb431fe)return;let _0x17de67=Date[_0x34718b(0x1a9)](),_0x4bc3bd=new Date(_0x17de67)[_0x34718b(0x3c8)]();await this[_0x34718b(0x2f6)]['setItem']((0x0,e[_0x34718b(0x144)])(_0x5a531f)+_0x34718b(0x3f7)+_0x17de67,{'reason':_0x30bdb2,'createdAt':_0x4bc3bd,'data':_0xb431fe});}async['clearOfflineData'](_0x2bec0d){const _0xc95bb2=_0x409fb3;let _0x787411=this[_0xc95bb2(0x3a5)][_0xc95bb2(0x424)](_0x2bec0d);_0x787411!==void 0x0&&(window[_0xc95bb2(0x2b4)](_0x787411),this['_saveTaskMap'][_0xc95bb2(0x205)](_0x2bec0d));let _0x314770=this[_0xc95bb2(0x1e5)][_0xc95bb2(0x424)](_0x2bec0d);_0x314770&&await Promise[_0xc95bb2(0x191)](_0x314770),this[_0xc95bb2(0x27c)][_0xc95bb2(0x205)](_0x2bec0d),await this[_0xc95bb2(0x2f6)][_0xc95bb2(0x35d)]((0x0,e[_0xc95bb2(0x144)])(_0x2bec0d));}['updateOfflineData'](_0x2eafb1,_0x30160f,_0x23ed49,_0x3cf457){const _0x80ceb4=_0x409fb3;let _0x190208=this['_revisionService'][_0x80ceb4(0x3f5)](_0x2eafb1);this['_cachedData'][_0x80ceb4(0x16b)](_0x2eafb1,{'unitID':_0x2eafb1,'type':_0x30160f,'awaitingChangeset':_0x23ed49,'mutations':_0x3cf457,'rev':_0x190208}),this['_saveTaskMap']['has'](_0x2eafb1)||this[_0x80ceb4(0x39f)](_0x2eafb1);}[_0x409fb3(0x39f)](_0x5ef7b1){const _0x32ee9b=_0x409fb3;let _0x5e5a3b=this[_0x32ee9b(0x2ee)]();_0x5e5a3b===0x0?this[_0x32ee9b(0x335)](_0x5ef7b1):this[_0x32ee9b(0x3a5)]['set'](_0x5ef7b1,window[_0x32ee9b(0x16d)](()=>this[_0x32ee9b(0x335)](_0x5ef7b1),_0x5e5a3b));}[_0x409fb3(0x2ee)](){const _0x5b4af5=_0x409fb3;return this[_0x5b4af5(0x279)][_0x5b4af5(0x41e)](e[_0x5b4af5(0x305)])??e[_0x5b4af5(0x2a5)];}[_0x409fb3(0x335)](_0x275261){const _0x2f3dc2=_0x409fb3;let _0x213565=this[_0x2f3dc2(0x3a5)]['get'](_0x275261);_0x213565!==void 0x0&&window[_0x2f3dc2(0x2b4)](_0x213565);let _0x260cc7=this['_localStorageService'][_0x2f3dc2(0x269)]((0x0,e[_0x2f3dc2(0x144)])(_0x275261),this[_0x2f3dc2(0x27c)]['get'](_0x275261))[_0x2f3dc2(0x1d6)](()=>this['_saveTaskMap'][_0x2f3dc2(0x205)](_0x275261));return this[_0x2f3dc2(0x2d8)](_0x275261,_0x260cc7),_0x260cc7;}[_0x409fb3(0x2d8)](_0x5a014d,_0x183446){const _0x559f07=_0x409fb3;let _0x3935e3=this[_0x559f07(0x1e5)][_0x559f07(0x424)](_0x5a014d);_0x3935e3||(_0x3935e3=new Set(),this['_activeSaveTaskMap'][_0x559f07(0x16b)](_0x5a014d,_0x3935e3)),_0x3935e3[_0x559f07(0x2ce)](_0x183446);let _0x29f453=()=>{const _0x493390=_0x559f07;_0x3935e3[_0x493390(0x205)](_0x183446),_0x3935e3['size']===0x0&&this[_0x493390(0x1e5)][_0x493390(0x205)](_0x5a014d);};_0x183446[_0x559f07(0x1d6)](_0x29f453,_0x29f453);}async[_0x409fb3(0x1c1)](){const _0x354623=_0x409fb3;let _0x31a784=[];this[_0x354623(0x3a5)]['forEach']((_0x62da9a,_0x2777b1)=>{const _0x4f372f=_0x354623;window['clearTimeout'](_0x62da9a),_0x31a784[_0x4f372f(0x2df)](this['_saveCache'](_0x2777b1)[_0x4f372f(0x1d6)](()=>{const _0x3adbe5=_0x4f372f;this['_saveTaskMap'][_0x3adbe5(0x205)](_0x2777b1);}));}),await Promise[_0x354623(0x270)](_0x31a784);}};X=S([x(0x0,t[_0x409fb3(0x3f9)]),x(0x1,t[_0x409fb3(0x33c)]),x(0x2,(0x0,t[_0x409fb3(0x329)])(l[_0x409fb3(0x1da)]))],X);var Ee=class extends t['RxDisposable']{constructor(){const _0x37df32=_0x409fb3;super(),b(this,_0x37df32(0x3ee),void 0x0),this[_0x37df32(0x3ee)]=(0x0,r['fromEvent'])(window,_0x37df32(0x2b2))[_0x37df32(0x423)]((0x0,r[_0x37df32(0x24c)])(this['dispose$']),(0x0,r['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x37df32(0x22f)])(void 0x0));}[_0x409fb3(0x314)](_0x3aba45,_0x285bab,_0x114a2b=!0x1){const _0x447be9=_0x409fb3;let _0x576f06=new URL(window['location'][_0x447be9(0x38e)]);_0x576f06[_0x447be9(0x3c2)][_0x447be9(0x16b)](_0x3aba45,_0x285bab),_0x114a2b?window[_0x447be9(0x27a)][_0x447be9(0x20a)]('','',_0x576f06['toString']()):window[_0x447be9(0x27a)]['pushState']('','',_0x576f06['toString']());}[_0x409fb3(0x379)](_0x37e6df,_0x396094=!0x1){const _0x5c4453=_0x409fb3;let _0x1ad6ca=new URL(window[_0x5c4453(0x1d2)][_0x5c4453(0x38e)]);_0x1ad6ca['searchParams'][_0x5c4453(0x205)](_0x37e6df),_0x396094?window[_0x5c4453(0x27a)][_0x5c4453(0x20a)]('','',_0x1ad6ca[_0x5c4453(0x1d3)]()):window[_0x5c4453(0x27a)][_0x5c4453(0x259)]('','',_0x1ad6ca[_0x5c4453(0x1d3)]());}[_0x409fb3(0x143)](_0x5890fa){const _0x3b013f=_0x409fb3;return new URL(window[_0x3b013f(0x1d2)]['href'])[_0x3b013f(0x3c2)]['get'](_0x5890fa)??void 0x0;}};let Z=class extends t[_0x409fb3(0x2e4)]{constructor(_0x341817=ce,_0x2f2c64,_0x8ce742,_0x51fd3f,_0x3bfcbc){const _0x24efae=_0x409fb3;super(),this[_0x24efae(0x3a7)]=_0x341817,this['_renderManagerService']=_0x2f2c64,this[_0x24efae(0x381)]=_0x8ce742,this[_0x24efae(0x279)]=_0x51fd3f,this[_0x24efae(0x26a)]=_0x3bfcbc;let {..._0x480e77}=(0x0,t[_0x24efae(0x245)])({},ce,this['_config']);this[_0x24efae(0x279)][_0x24efae(0x1f7)]('collaboration-client-ui.config',_0x480e77);}['onStarting'](){const _0x3b9583=_0x409fb3;this[_0x3b9583(0x3ad)](),this[_0x3b9583(0x415)](this[_0x3b9583(0x26a)][_0x3b9583(0x3e0)](w)),this[_0x3b9583(0x3b3)]();}['onRendered'](){const _0x54efde=_0x409fb3;this[_0x54efde(0x20d)]();}[_0x409fb3(0x3ad)](){const _0x247c16=_0x409fb3;var _0x359132;let _0x4ac020=[[E],[V,{'useClass':Ee}],[m[_0x247c16(0x31d)],{'useClass':m[_0x247c16(0x151)]}],[e['ILocalCacheService'],{'useClass':X}],[C],[B],[A],[z],[H],[Y]];this[_0x247c16(0x3a7)][_0x247c16(0x26f)]!==!0x1&&_0x4ac020['push']([G],[U],[W],[D],[q],[T]),this[_0x247c16(0x3a7)][_0x247c16(0x285)]&&_0x4ac020['push']([J]),(0x0,t[_0x247c16(0x226)])(this[_0x247c16(0x381)],(0x0,t['mergeOverrideWithDependencies'])(_0x4ac020,(_0x359132=this[_0x247c16(0x3a7)])==null?void 0x0:_0x359132['override']));}['_registerRenderDependencies'](){const _0x186609=_0x409fb3;this[_0x186609(0x3a7)][_0x186609(0x26f)]!==!0x1&&this['disposeWithMe'](this['_renderManagerService'][_0x186609(0x1f9)](t['UniverInstanceType']['UNIVER_DOC'],[F])),this['disposeWithMe'](this[_0x186609(0x2a4)][_0x186609(0x1f9)](t[_0x186609(0x24d)]['UNIVER_SHEET'],[I]));}[_0x409fb3(0x3b3)](){const _0x1957e6=_0x409fb3;(0x0,t[_0x1957e6(0x159)])(this['_injector'],[[A],[z],[C],[B],[H],[Y]]),this[_0x1957e6(0x3a7)][_0x1957e6(0x26f)]!==!0x1&&(0x0,t[_0x1957e6(0x159)])(this[_0x1957e6(0x381)],[[q],[T]]),this['_config']['enableFrontendLog']&&(0x0,t[_0x1957e6(0x159)])(this[_0x1957e6(0x381)],[[J]]);}};b(Z,_0x409fb3(0x1ae),_0x409fb3(0x3f0)),b(Z,_0x409fb3(0x2d6),oe),b(Z,_0x409fb3(0x2fc),se),Z=S([(0x0,t[_0x409fb3(0x180)])(u[_0x409fb3(0x176)],d[_0x409fb3(0x14d)],p[_0x409fb3(0x287)],m[_0x409fb3(0x21c)],l[_0x409fb3(0x175)],f[_0x409fb3(0x2a8)],e[_0x409fb3(0x2e6)]),x(0x1,p[_0x409fb3(0x210)]),x(0x2,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x3,t[_0x409fb3(0x3f9)]),x(0x4,t[_0x409fb3(0x228)])],Z);let Q=class extends e[_0x409fb3(0x3d5)]{constructor(_0x1a81b9,_0x507cd0,_0x129985,_0x55aa72,_0x140afa){super(_0x1a81b9,_0x507cd0,_0x129985,_0x55aa72,_0x140afa);}async[_0x409fb3(0x35b)](_0x117f6f){const _0x4930f6=_0x409fb3;let _0xcf3eb6=await this[_0x4930f6(0x15e)](),_0x275963=this[_0x4930f6(0x30e)](_0x117f6f,_0xcf3eb6);return this[_0x4930f6(0x28f)](_0x275963);}[_0x409fb3(0x30e)](_0x5540c0,_0x17ba74){const _0x1e50d9=_0x409fb3;let _0x5bc4fc=typeof window>'u'?new URL(_0x5540c0):new URL(_0x5540c0,window['location'][_0x1e50d9(0x30b)]);_0x5bc4fc[_0x1e50d9(0x3c2)][_0x1e50d9(0x16b)](_0x1e50d9(0x368),_0x17ba74);let _0xd8edd9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1e50d9(0x1d2)][_0x1e50d9(0x29a)]);return _0xd8edd9[_0x1e50d9(0x424)]('runId')&&_0x5bc4fc[_0x1e50d9(0x3c2)]['set']('runId',_0xd8edd9[_0x1e50d9(0x424)](_0x1e50d9(0x22d))),_0x5bc4fc['toString']();}async[_0x409fb3(0x15e)](){const _0x5f065c=_0x409fb3;var _0x563616;let _0x7532dc=this['_configService']['getConfig'](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x13ebed=(_0x7532dc==null?void 0x0:_0x7532dc[_0x5f065c(0x2ae)])??e[_0x5f065c(0x33e)];return((_0x563616=(await this[_0x5f065c(0x300)][_0x5f065c(0x424)](_0x13ebed,{'headers':{'Content-Type':_0x5f065c(0x18f)}}))[_0x5f065c(0x182)])==null?void 0x0:_0x563616['ticket'])??'';}};Q=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x1,(0x0,t['Inject'])(m[_0x409fb3(0x238)])),x(0x2,t[_0x409fb3(0x3f9)]),x(0x3,t[_0x409fb3(0x1f3)]),x(0x4,l[_0x409fb3(0x283)])],Q);let $=class extends t['Disposable']{constructor(_0x42cfc0,_0x2063bf,_0x2d8aa0){const _0x4d2ddb=_0x409fb3;super(),this[_0x4d2ddb(0x376)]=_0x42cfc0,this[_0x4d2ddb(0x300)]=_0x2063bf,this['_configService']=_0x2d8aa0;}async['runOnServer'](_0x35c058,_0x5b6beb,_0x756792,..._0x18119a){const _0x20bd43=_0x409fb3;let _0x1d88a9=this[_0x20bd43(0x376)]['getFocusedUnit']();if(!_0x1d88a9)throw Error(_0x20bd43(0x3e5));let _0x3d7523=(this[_0x20bd43(0x279)][_0x20bd43(0x41e)](e[_0x20bd43(0x237)])??e[_0x20bd43(0x3b1)])+'/'+_0x35c058+_0x20bd43(0x19d)+_0x5b6beb,_0xb65e77={'scriptId':_0x35c058,'runId':new URL(window[_0x20bd43(0x1d2)][_0x20bd43(0x38e)])['searchParams'][_0x20bd43(0x424)](_0x20bd43(0x22d))??'','function':_0x5b6beb,'unitId':_0x1d88a9[_0x20bd43(0x3ba)](),'argsOfFunction':JSON[_0x20bd43(0x32f)](_0x18119a),'invokeId':_0x756792[_0x20bd43(0x140)]??'','executionId':_0x756792['executionId']??''};try{let _0x242860=await this[_0x20bd43(0x300)][_0x20bd43(0x3ca)](_0x3d7523,{'body':_0xb65e77});return _0x242860[_0x20bd43(0x182)][_0x20bd43(0x3ff)]&&_0x242860[_0x20bd43(0x182)]['error'][_0x20bd43(0x418)]!==v['ErrorCode']['OK']?_0x20bd43(0x35f):_0x242860[_0x20bd43(0x182)][_0x20bd43(0x31b)];}catch{return _0x20bd43(0x35f);}}};$=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x409fb3(0x329)])(m[_0x409fb3(0x238)])),x(0x2,t['IConfigService'])],$);const De=0x7530,Oe=_0x409fb3(0x152);var ke=class extends t[_0x409fb3(0x277)]{constructor(){const _0x49002c=_0x409fb3;super(),b(this,'_id',(0x0,t[_0x49002c(0x208)])()),b(this,_0x49002c(0x3b8),new Set()),b(this,_0x49002c(0x326),new Map()),b(this,_0x49002c(0x1a2),null),b(this,_0x49002c(0x18e),new Map()),b(this,_0x49002c(0x407),new Map()),this[_0x49002c(0x1c6)]();}[_0x409fb3(0x2c8)](){const _0x172f9b=_0x409fb3;super[_0x172f9b(0x2c8)](),this[_0x172f9b(0x18e)][_0x172f9b(0x2e3)]((_0x838992,_0xe0fa92)=>this[_0x172f9b(0x39b)](_0xe0fa92)),this[_0x172f9b(0x1a2)]&&window['clearInterval'](this[_0x172f9b(0x1a2)]);}['getUnitStatus$'](_0x5eded4){const _0x56f906=_0x409fb3;return this[_0x56f906(0x332)](_0x5eded4)['pipe']((0x0,r[_0x56f906(0x40b)])());}['editingUnit'](_0x17e71d){const _0x163fbd=_0x409fb3;this['_selfUnitIDs'][_0x163fbd(0x153)]===0x0&&this['_scheduleHeartbeat'](),this[_0x163fbd(0x3b8)][_0x163fbd(0x2ce)](_0x17e71d),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x17e71d],'isForwarded':!0x1});}[_0x409fb3(0x2e8)](_0x3736f7){const _0x1a5b51=_0x409fb3;this[_0x1a5b51(0x3b8)][_0x1a5b51(0x205)](_0x3736f7),this['_selfUnitIDs']['size']===0x0&&this[_0x1a5b51(0x1a2)]&&window[_0x1a5b51(0x1d1)](this[_0x1a5b51(0x1a2)]);}[_0x409fb3(0x1c6)](){const _0x5ea1af=_0x409fb3;this[_0x5ea1af(0x415)]((0x0,t[_0x5ea1af(0x19e)])((0x0,r['fromEvent'])(window,_0x5ea1af(0x36b))['subscribe'](_0x50fa1b=>{const _0x2853e9=_0x5ea1af;if(_0x50fa1b[_0x2853e9(0x146)]!==Oe||!_0x50fa1b['newValue'])return;let _0x1f7260=JSON['parse'](_0x50fa1b['newValue']);this[_0x2853e9(0x1a8)](_0x1f7260);}))),window[_0x5ea1af(0x36c)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x5ea1af(0x3f8)],'unitIDs':Array[_0x5ea1af(0x416)](this[_0x5ea1af(0x3b8)])}));}[_0x409fb3(0x1a8)](_0x343509){const _0x374b21=_0x409fb3;switch(_0x343509[_0x374b21(0x3b7)]){case 0x0:this[_0x374b21(0x1c9)](_0x343509);break;case 0x1:this[_0x374b21(0x32e)](_0x343509);break;case 0x2:this[_0x374b21(0x3ec)](_0x343509);}}[_0x409fb3(0x1c9)](_0x38c17b){const _0x3eb04f=_0x409fb3;let {unitIDs:_0xfd97f7,memberID:_0x5df061,isForwarded:_0x3154ac}=_0x38c17b;_0xfd97f7[_0x3eb04f(0x2e3)](_0x3f7c20=>{const _0x2b303f=_0x3eb04f;if(!_0x3154ac&&this['_unitOnClients'][_0x2b303f(0x1e0)](_0x3f7c20)&&this[_0x2b303f(0x332)](_0x3f7c20)[_0x2b303f(0x1a1)](e[_0x2b303f(0x1fb)][_0x2b303f(0x427)]),!this[_0x2b303f(0x326)][_0x2b303f(0x1e0)](_0x3f7c20)||!this[_0x2b303f(0x326)][_0x2b303f(0x424)](_0x3f7c20)[_0x2b303f(0x1e0)](_0x5df061)){let _0x42f57c=this[_0x2b303f(0x326)][_0x2b303f(0x424)](_0x3f7c20)||new Set();_0x42f57c[_0x2b303f(0x2ce)](_0x5df061),this[_0x2b303f(0x326)][_0x2b303f(0x16b)](_0x3f7c20,_0x42f57c),this['_scheduleClearOtherTimer'](_0x5df061);}}),_0x3154ac||this[_0x3eb04f(0x242)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3eb04f(0x3b8)]],'isForwarded':!0x0});}[_0x409fb3(0x354)](_0x305993){const _0x42bb22=_0x409fb3;this[_0x42bb22(0x39b)](_0x305993);let _0x92dfce=window[_0x42bb22(0x16d)](()=>{const _0x40281c=_0x42bb22;this['_unitOnClients'][_0x40281c(0x2e3)](_0x29fb53=>{const _0x3c0b4a=_0x40281c;_0x29fb53[_0x3c0b4a(0x205)](_0x305993);});},De*0x2);this['_clearOtherTimers']['set'](_0x305993,_0x92dfce);}[_0x409fb3(0x39b)](_0x1ddfd1){const _0x35117b=_0x409fb3;if(this[_0x35117b(0x18e)]['has'](_0x1ddfd1)){let _0x27f586=this[_0x35117b(0x18e)][_0x35117b(0x424)](_0x1ddfd1);_0x27f586&&window[_0x35117b(0x2b4)](_0x27f586),this['_clearOtherTimers'][_0x35117b(0x16b)](_0x1ddfd1,null);}}[_0x409fb3(0x32e)](_0x90a958){let {memberID:_0x3c2f41,unitIDs:_0x21a317}=_0x90a958;_0x21a317['forEach'](_0xbd90ef=>{const _0x22330c=_0x4188;var _0x6244cd;let _0x36860d=this['_unitOnClients'][_0x22330c(0x424)](_0xbd90ef);_0x36860d&&(_0x36860d[_0x22330c(0x205)](_0x3c2f41),(_0x6244cd=this['_ensureSubject'](_0xbd90ef))==null||_0x6244cd['next'](_0x36860d['size']===0x0?e[_0x22330c(0x1fb)][_0x22330c(0x1a0)]:e['UnitStatus'][_0x22330c(0x427)]));}),this['_removeClearOtherTimer'](_0x3c2f41);}[_0x409fb3(0x3ec)](_0x4bb305){const _0x1c520d=_0x409fb3;this[_0x1c520d(0x354)](_0x4bb305[_0x1c520d(0x2bb)]);}['_send'](_0x1ba59e){localStorage['setItem'](Oe,JSON['stringify'](_0x1ba59e));}[_0x409fb3(0x34d)](){const _0x102ff1=_0x409fb3;this[_0x102ff1(0x1a2)]=window[_0x102ff1(0x311)](()=>{const _0x17f245=_0x102ff1;this[_0x17f245(0x242)]({'type':0x2,'memberID':this[_0x17f245(0x3f8)]});},De);}[_0x409fb3(0x332)](_0x295a1f){const _0x5a5b1c=_0x409fb3;return this[_0x5a5b1c(0x407)][_0x5a5b1c(0x1e0)](_0x295a1f)||this['_unitStatus'][_0x5a5b1c(0x16b)](_0x295a1f,new r[(_0x5a5b1c(0x392))](e['UnitStatus'][_0x5a5b1c(0x1a0)])),this[_0x5a5b1c(0x407)]['get'](_0x295a1f);}};Object[_0x409fb3(0x170)](exports,_0x409fb3(0x436),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x409fb3(0x170)](exports,_0x409fb3(0x2f0),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x409fb3(0x206)]=V,Object[_0x409fb3(0x170)](exports,_0x409fb3(0x251),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x409fb3(0x369)]=he,Object['defineProperty'](exports,_0x409fb3(0x3fe),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x409fb3(0x428)]=ke;