@univerjs-pro/collaboration-client-ui 1.0.0-alpha.4 → 1.0.0-alpha.5

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 (85) 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/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +20 -20
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x32171b=_0x4167;(function(_0x10903e,_0x498b25){const _0x5a2c16=_0x4167,_0x2a4a29=_0x10903e();while(!![]){try{const _0x322b16=parseInt(_0x5a2c16(0x494))/0x1+parseInt(_0x5a2c16(0x190))/0x2+-parseInt(_0x5a2c16(0x265))/0x3+parseInt(_0x5a2c16(0x2eb))/0x4*(-parseInt(_0x5a2c16(0x3f0))/0x5)+parseInt(_0x5a2c16(0x47b))/0x6+-parseInt(_0x5a2c16(0x43e))/0x7+parseInt(_0x5a2c16(0x3d1))/0x8;if(_0x322b16===_0x498b25)break;else _0x2a4a29['push'](_0x2a4a29['shift']());}catch(_0x5ddb2b){_0x2a4a29['push'](_0x2a4a29['shift']());}}}(_0x1765,0x9e0b5),Object[_0x32171b(0x1e6)](exports,Symbol[_0x32171b(0x395)],{'value':'Module'}));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/engine-render'),d=require('@univerjs/network'),f=require('@univerjs/docs-ui'),p=require('@univerjs-pro/collaboration'),m=require('@univerjs/docs'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs-pro/slides-ui'),v=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),y=require('@univerjs/protocol');function te(_0x3bab77){const _0xd3c162=_0x32171b;switch(_0x3bab77){case t[_0xd3c162(0x3a0)]['OFFLINE']:return{'icon':(0x0,l['jsx'])(s[_0xd3c162(0x201)],{}),'colorClass':_0xd3c162(0x23f),'i18nKey':_0xd3c162(0x37c),'tooltipKey':_0xd3c162(0x221),'clickable':!0x0,'indicator':'static'};case t[_0xd3c162(0x3a0)][_0xd3c162(0x480)]:return{'icon':(0x0,l[_0xd3c162(0x417)])(s[_0xd3c162(0x201)],{}),'colorClass':_0xd3c162(0x245),'i18nKey':_0xd3c162(0x338),'clickable':!0x1,'indicator':_0xd3c162(0x315)};case t[_0xd3c162(0x3a0)][_0xd3c162(0x43c)]:return{'icon':(0x0,l[_0xd3c162(0x417)])(s['LoadingMultiIcon'],{}),'colorClass':_0xd3c162(0x2a4),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':'spin'};case t[_0xd3c162(0x3a0)][_0xd3c162(0x229)]:return{'icon':(0x0,l[_0xd3c162(0x417)])(s['OnLineIcon'],{}),'colorClass':_0xd3c162(0x3d7),'i18nKey':_0xd3c162(0x1c1),'clickable':!0x1,'indicator':_0xd3c162(0x315)};case t[_0xd3c162(0x3a0)][_0xd3c162(0x2f8)]:case t[_0xd3c162(0x3a0)][_0xd3c162(0x17d)]:return{'icon':(0x0,l[_0xd3c162(0x417)])(s[_0xd3c162(0x2e8)],{}),'colorClass':_0xd3c162(0x2a4),'i18nKey':_0xd3c162(0x390),'clickable':!0x1,'indicator':'spin'};case t[_0xd3c162(0x3a0)][_0xd3c162(0x372)]:return{'icon':(0x0,l['jsx'])(s[_0xd3c162(0x2e8)],{}),'colorClass':_0xd3c162(0x2a4),'i18nKey':_0xd3c162(0x390),'clickable':!0x1,'indicator':_0xd3c162(0x3d8)};case t[_0xd3c162(0x3a0)]['SYNCED']:return{'icon':(0x0,l[_0xd3c162(0x417)])(s[_0xd3c162(0x485)],{}),'colorClass':_0xd3c162(0x24b),'i18nKey':_0xd3c162(0x349),'clickable':!0x1,'indicator':_0xd3c162(0x315)};}}function ne(_0x144295){const _0x51b637=_0x32171b;let {status$:_0xcb6cc3}=_0x144295,_0x33ad73=(0x0,r[_0x51b637(0x2af)])(_0xcb6cc3,t['CollaborationStatus'][_0x51b637(0x229)]),_0x2c366b=(0x0,r[_0x51b637(0x233)])(n[_0x51b637(0x227)]),_0x47ef93=(0x0,r['useDependency'])(t['CollaborationSessionService']),_0x19deae=(0x0,c[_0x51b637(0x3e8)])(()=>te(_0x33ad73),[_0x33ad73]),_0x536bf3=_0x33ad73!==t[_0x51b637(0x3a0)]['OFFLINE'],_0x500f9f=_0x2c366b['t'](_0x19deae[_0x51b637(0x1cb)]),_0x161458=_0x19deae[_0x51b637(0x28f)]?_0x2c366b['t'](_0x19deae[_0x51b637(0x28f)]):_0x500f9f,_0x20e24c=(0x0,c['useCallback'])(()=>{const _0xcf9e14=_0x51b637;_0x536bf3||_0x47ef93[_0xcf9e14(0x464)]();},[_0x536bf3,_0x47ef93]),_0x4a760b=(0x0,c[_0x51b637(0x333)])(_0x4a1033=>{const _0x422c4a=_0x51b637;!_0x536bf3&&(_0x4a1033['key']===_0x422c4a(0x450)||_0x4a1033[_0x422c4a(0x25f)]==='\x20')&&(_0x4a1033[_0x422c4a(0x313)](),_0x47ef93['reconnect']());},[_0x536bf3,_0x47ef93]),_0x4c3793=(0x0,l['jsx'])(_0x51b637(0x341),{'className':(0x0,o[_0x51b637(0x1ce)])(_0x51b637(0x1b2),_0x51b637(0x214),_0x19deae[_0x51b637(0x492)],{'univer-animate-spin':_0x19deae['indicator']===_0x51b637(0x3d8),'univer-animate-pulse':_0x19deae[_0x51b637(0x322)]==='pulse'}),'aria-hidden':'true','children':_0x19deae[_0x51b637(0x31e)]}),_0x403d18=(0x0,l['jsx'])(_0x51b637(0x341),{'className':(0x0,o[_0x51b637(0x1ce)])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x51b637(0x26a),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x51b637(0x3f6),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x19deae[_0x51b637(0x2bd)],'univer-cursor-default':!_0x19deae['clickable']}),'children':_0x4c3793});return _0x19deae[_0x51b637(0x2bd)]?(0x0,l[_0x51b637(0x417)])(o[_0x51b637(0x263)],{'title':_0x161458,'placement':_0x51b637(0x222),'children':(0x0,l[_0x51b637(0x417)])(_0x51b637(0x249),{'type':_0x51b637(0x249),'onClick':_0x20e24c,'onKeyDown':_0x4a760b,'className':(0x0,o[_0x51b637(0x1ce)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x51b637(0x238),'univer-m-0\x20univer-p-0',_0x51b637(0x2d7)),'aria-label':_0x500f9f+_0x51b637(0x3b3)+_0x161458,'role':'status','aria-live':_0x51b637(0x181),'aria-atomic':_0x51b637(0x3ce),'children':_0x403d18})}):(0x0,l[_0x51b637(0x417)])(o[_0x51b637(0x263)],{'title':_0x161458,'placement':_0x51b637(0x222),'children':(0x0,l['jsx'])(_0x51b637(0x277),{'className':(0x0,o['clsx'])(_0x51b637(0x3e2),_0x51b637(0x238),_0x51b637(0x45c)),'aria-label':_0x500f9f,'role':_0x51b637(0x403),'aria-live':_0x51b637(0x181),'aria-atomic':'true','children':_0x403d18})});}function b(_0x546bdf){'@babel/helpers - typeof';const _0x2ccc58=_0x32171b;return b=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x2ccc58(0x33a)?function(_0xd9fb4b){return typeof _0xd9fb4b;}:function(_0x5a4bff){const _0x4ab5e1=_0x2ccc58;return _0x5a4bff&&typeof Symbol=='function'&&_0x5a4bff[_0x4ab5e1(0x2bf)]===Symbol&&_0x5a4bff!==Symbol[_0x4ab5e1(0x18a)]?'symbol':typeof _0x5a4bff;},b(_0x546bdf);}function re(_0x23503b,_0x2eec68){const _0xaf5382=_0x32171b;if(b(_0x23503b)!=_0xaf5382(0x184)||!_0x23503b)return _0x23503b;var _0x430e9d=_0x23503b[Symbol[_0xaf5382(0x179)]];if(_0x430e9d!==void 0x0){var _0x24b557=_0x430e9d[_0xaf5382(0x425)](_0x23503b,_0x2eec68||_0xaf5382(0x32f));if(b(_0x24b557)!=_0xaf5382(0x184))return _0x24b557;throw TypeError(_0xaf5382(0x3d4));}return(_0x2eec68===_0xaf5382(0x3b2)?String:Number)(_0x23503b);}function ie(_0x263e30){const _0x54aa8a=_0x32171b;var _0x425633=re(_0x263e30,_0x54aa8a(0x3b2));return b(_0x425633)==_0x54aa8a(0x33a)?_0x425633:_0x425633+'';}function x(_0x5be5c2,_0x213bd2,_0x5757e4){const _0x5e0ee1=_0x32171b;return(_0x213bd2=ie(_0x213bd2))in _0x5be5c2?Object[_0x5e0ee1(0x1e6)](_0x5be5c2,_0x213bd2,{'value':_0x5757e4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5be5c2[_0x213bd2]=_0x5757e4,_0x5be5c2;}function S(_0x34150d,_0x51e3fa){return function(_0x4f9e52,_0x29a47c){_0x51e3fa(_0x4f9e52,_0x29a47c,_0x34150d);};}function C(_0x2f04ea,_0x5adc83,_0x4fffca,_0x24d0ff){const _0x7f3fd8=_0x32171b;var _0x158d0a=arguments[_0x7f3fd8(0x1f1)],_0x5b0a08=_0x158d0a<0x3?_0x5adc83:_0x24d0ff===null?_0x24d0ff=Object[_0x7f3fd8(0x292)](_0x5adc83,_0x4fffca):_0x24d0ff,_0x168b0f;if(typeof Reflect==_0x7f3fd8(0x184)&&typeof Reflect[_0x7f3fd8(0x2c5)]==_0x7f3fd8(0x2f0))_0x5b0a08=Reflect[_0x7f3fd8(0x2c5)](_0x2f04ea,_0x5adc83,_0x4fffca,_0x24d0ff);else{for(var _0x331333=_0x2f04ea['length']-0x1;_0x331333>=0x0;_0x331333--)(_0x168b0f=_0x2f04ea[_0x331333])&&(_0x5b0a08=(_0x158d0a<0x3?_0x168b0f(_0x5b0a08):_0x158d0a>0x3?_0x168b0f(_0x5adc83,_0x4fffca,_0x5b0a08):_0x168b0f(_0x5adc83,_0x4fffca))||_0x5b0a08);}return _0x158d0a>0x3&&_0x5b0a08&&Object[_0x7f3fd8(0x1e6)](_0x5adc83,_0x4fffca,_0x5b0a08),_0x5b0a08;}let w=class extends n[_0x32171b(0x45a)]{constructor(_0x53a18d,_0x199463,_0x4c5baa,_0x31f77e){const _0x1ae356=_0x32171b;super(),this[_0x1ae356(0x2c7)]=_0x53a18d,this['_injector']=_0x199463,this[_0x1ae356(0x471)]=_0x4c5baa,this[_0x1ae356(0x197)]=_0x31f77e,x(this,_0x1ae356(0x330),new i['BehaviorSubject'](t['CollaborationStatus'][_0x1ae356(0x229)])),this[_0x1ae356(0x404)](),this['_initStatusListener']();}['_initStatusListener'](){const _0x1c8de0=_0x32171b;this[_0x1c8de0(0x3ec)]((0x0,i['merge'])(this[_0x1c8de0(0x2c7)][_0x1c8de0(0x36a)],this[_0x1c8de0(0x2c7)][_0x1c8de0(0x24f)](n[_0x1c8de0(0x212)][_0x1c8de0(0x304)]),this['_univerInstanceService'][_0x1c8de0(0x24f)](n[_0x1c8de0(0x212)]['UNIVER_SHEET']))['pipe']((0x0,a[_0x1c8de0(0x2d4)])(()=>ae(this['_univerInstanceService'])),(0x0,a[_0x1c8de0(0x323)])(),(0x0,i[_0x1c8de0(0x374)])(_0x571a22=>_0x571a22?this[_0x1c8de0(0x471)][_0x1c8de0(0x3a7)](_0x571a22):(0x0,i['of'])(null)),(0x0,i[_0x1c8de0(0x374)])(_0x56a350=>_0x56a350?_0x56a350['status$']:(0x0,i['of'])(t[_0x1c8de0(0x3a0)][_0x1c8de0(0x229)])))['subscribe'](_0x4f3c84=>{const _0x5d29dd=_0x1c8de0;this[_0x5d29dd(0x330)][_0x5d29dd(0x1f5)](_0x4f3c84);}));}['_initStatusComponent'](){const _0x15f934=_0x32171b;this['disposeWithMe'](this[_0x15f934(0x197)][_0x15f934(0x24a)](r['BuiltInUIPart'][_0x15f934(0x189)],()=>(0x0,r['connectInjector'])(se({'status$':this[_0x15f934(0x330)][_0x15f934(0x1a4)]()}),this[_0x15f934(0x2e6)])));}};w=C([S(0x0,n[_0x32171b(0x289)]),S(0x1,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x25b)])),S(0x2,(0x0,n['Inject'])(t[_0x32171b(0x26e)])),S(0x3,r[_0x32171b(0x17f)])],w);let T=class extends n[_0x32171b(0x45a)]{constructor(_0xd1aa49,_0x581cfd,_0x296eac,_0x31df00){const _0x29707b=_0x32171b;super(),this[_0x29707b(0x2c7)]=_0xd1aa49,this[_0x29707b(0x2e6)]=_0x581cfd,this['_collaborationController']=_0x296eac,this[_0x29707b(0x197)]=_0x31df00,x(this,_0x29707b(0x330),new i[(_0x29707b(0x3fb))](t[_0x29707b(0x3a0)]['NOT_COLLAB'])),this['_initStatusComponent'](),this[_0x29707b(0x3b1)]();}[_0x32171b(0x3b1)](){const _0x37602a=_0x32171b;this[_0x37602a(0x3ec)]((0x0,i[_0x37602a(0x204)])((0x0,i['of'])(null),this[_0x37602a(0x2c7)][_0x37602a(0x24f)](n[_0x37602a(0x212)][_0x37602a(0x194)]))[_0x37602a(0x1fa)]((0x0,a[_0x37602a(0x2d4)])(()=>oe(this[_0x37602a(0x2c7)])),(0x0,a[_0x37602a(0x323)])(),(0x0,i['switchMap'])(_0x1c6c07=>_0x1c6c07?this[_0x37602a(0x471)]['getCollabEntity$'](_0x1c6c07):(0x0,i['of'])(null)),(0x0,i[_0x37602a(0x374)])(_0x12364c=>_0x12364c?_0x12364c[_0x37602a(0x1e7)]:(0x0,i['of'])(t[_0x37602a(0x3a0)][_0x37602a(0x229)])))[_0x37602a(0x2b4)](_0xc6e01a=>{const _0xe96c73=_0x37602a;this[_0xe96c73(0x330)][_0xe96c73(0x1f5)](_0xc6e01a);}));}[_0x32171b(0x404)](){const _0x17db51=_0x32171b;this[_0x17db51(0x3ec)](this[_0x17db51(0x197)]['registerComponent'](e[_0x17db51(0x46c)],()=>(0x0,r[_0x17db51(0x287)])(se({'status$':this['_status$'][_0x17db51(0x1a4)]()}),this[_0x17db51(0x2e6)])));}};T=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n[_0x32171b(0x329)])(n['Injector'])),S(0x2,(0x0,n['Inject'])(t[_0x32171b(0x26e)])),S(0x3,r[_0x32171b(0x17f)])],T);function ae(_0x537b4c){const _0x2a221e=_0x32171b;let _0x3a2d0d=_0x537b4c['getFocusedUnit'](),_0x6a05a0=_0x3a2d0d==null?void 0x0:_0x3a2d0d[_0x2a221e(0x261)]();if(_0x6a05a0&&!(0x0,n[_0x2a221e(0x1ad)])(_0x6a05a0))return _0x6a05a0;let _0x4be50c=_0x537b4c[_0x2a221e(0x45b)](n[_0x2a221e(0x212)][_0x2a221e(0x304)]),_0x2af973=_0x4be50c==null?void 0x0:_0x4be50c[_0x2a221e(0x261)]();if(_0x2af973&&!(0x0,n['isInternalEditorID'])(_0x2af973))return _0x2af973;let _0x34da94=_0x537b4c['getCurrentUnitOfType'](n[_0x2a221e(0x212)][_0x2a221e(0x370)]);if(_0x34da94)return _0x34da94[_0x2a221e(0x261)]();let _0x1b9ff9=_0x537b4c[_0x2a221e(0x3b5)](n[_0x2a221e(0x212)]['UNIVER_DOC'])[_0x2a221e(0x39f)](_0x10abcf=>!(0x0,n[_0x2a221e(0x1ad)])(_0x10abcf[_0x2a221e(0x261)]()));return _0x1b9ff9?_0x1b9ff9[_0x2a221e(0x261)]():null;}function oe(_0xc0d4ec){const _0x41ca7e=_0x32171b;var _0x149a93;let _0x173a2b=_0xc0d4ec[_0x41ca7e(0x45b)](n['UniverInstanceType'][_0x41ca7e(0x194)]);return(_0x149a93=_0x173a2b==null?void 0x0:_0x173a2b[_0x41ca7e(0x261)]())==null?null:_0x149a93;}function se(_0x150532){let {status$:_0x1b2e18}=_0x150532;return function(){return(0x0,l['jsx'])(ne,{'status$':_0x1b2e18});};}var ce='@univerjs-pro/collaboration-client-ui',le='1.0.0-alpha.4';const ue={};let E=class extends n['RxDisposable']{constructor(_0x39cc7a,_0x5227b8){const _0x562e6f=_0x32171b;super(),this[_0x562e6f(0x199)]=_0x39cc7a,this['_imageIoService']=_0x5227b8,this[_0x562e6f(0x35c)]();}[_0x32171b(0x35c)](){const _0x38a845=_0x32171b;let _0x47c69e=this;this['disposeWithMe'](this[_0x38a845(0x199)][_0x38a845(0x1d2)]({'onBeforePasteImage':async _0x2a23ed=>{const _0x440d7a=_0x38a845;let _0x1c9401=await _0x47c69e[_0x440d7a(0x215)][_0x440d7a(0x203)](_0x2a23ed);return _0x1c9401?{'source':_0x1c9401[_0x440d7a(0x217)],'imageSourceType':_0x1c9401[_0x440d7a(0x30d)]}:null;}}));}};E=C([S(0x0,f[_0x32171b(0x250)]),S(0x1,n[_0x32171b(0x2d0)])],E);function de(_0x23f339,_0x41ae52){const _0x1a88b0=_0x32171b;_0x23f339['save'](),_0x23f339['font']=_0x1a88b0(0x3d5);let _0x206564=_0x23f339[_0x1a88b0(0x455)](_0x41ae52)['width'];return _0x23f339['restore'](),Math['min'](_0x206564+0x8,0xc8);}function fe(_0x3821e0,_0x86a16d){const _0x5f586e=_0x32171b;var _0x4b2b1d,_0x45a877,_0x1e988e;let {radius:_0x3c9db2,width:_0x284e86,height:_0x32df2d}=_0x86a16d;_0x3c9db2=(_0x4b2b1d=_0x3c9db2)==null?0x0:_0x4b2b1d,_0x284e86=(_0x45a877=_0x284e86)==null?0x1e:_0x45a877,_0x32df2d=(_0x1e988e=_0x32df2d)==null?0x1e:_0x1e988e;let _0x1b6133=0x0,_0x1dd7e7=0x0,_0x51bb9e=0x0;_0x1b6133=_0x1dd7e7=_0x51bb9e=Math[_0x5f586e(0x1a1)](_0x3c9db2,_0x284e86/0x2,_0x32df2d/0x2),_0x3821e0[_0x5f586e(0x2fd)](),_0x3821e0[_0x5f586e(0x1d3)](_0x1b6133,0x0),_0x3821e0[_0x5f586e(0x357)](_0x284e86-_0x1dd7e7,0x0),_0x3821e0[_0x5f586e(0x19e)](_0x284e86-_0x1dd7e7,_0x1dd7e7,_0x1dd7e7,Math['PI']*0x3/0x2,0x0,!0x1),_0x3821e0['lineTo'](_0x284e86,_0x32df2d-_0x51bb9e),_0x3821e0[_0x5f586e(0x19e)](_0x284e86-_0x51bb9e,_0x32df2d-_0x51bb9e,_0x51bb9e,0x0,Math['PI']/0x2,!0x1),_0x3821e0[_0x5f586e(0x357)](0x0,_0x32df2d),_0x3821e0['lineTo'](0x0,_0x1b6133),_0x3821e0[_0x5f586e(0x19e)](_0x1b6133,_0x1b6133,_0x1b6133,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3821e0[_0x5f586e(0x18c)](),_0x86a16d['fill']&&(_0x3821e0[_0x5f586e(0x337)](),_0x3821e0[_0x5f586e(0x30e)]=_0x86a16d['fill'],_0x86a16d[_0x5f586e(0x38c)]===_0x5f586e(0x462)?_0x3821e0['fill'](_0x5f586e(0x462)):_0x3821e0[_0x5f586e(0x23a)](),_0x3821e0[_0x5f586e(0x416)]());}var D=class e extends u['Shape']{constructor(_0x1eca77,_0x1a2486){const _0x17ce7e=_0x32171b;super(_0x1eca77,_0x1a2486),x(this,_0x17ce7e(0x19a),void 0x0),x(this,_0x17ce7e(0x1c2),void 0x0),this[_0x17ce7e(0x19a)]=_0x1a2486==null?void 0x0:_0x1a2486[_0x17ce7e(0x19a)],this[_0x17ce7e(0x1c2)]=_0x1a2486==null?void 0x0:_0x1a2486[_0x17ce7e(0x1c2)];}static[_0x32171b(0x47e)](_0x1c0be1,_0x3c8897){const _0x21a4a3=_0x32171b;let {text:_0x21e43f,color:_0x5bb482}=_0x3c8897;_0x1c0be1[_0x21a4a3(0x337)](),_0x1c0be1[_0x21a4a3(0x1d4)]=_0x21a4a3(0x352);let _0xc2e9c7=_0x1c0be1[_0x21a4a3(0x455)](_0x21e43f)['width'];if(fe(_0x1c0be1,{'height':0x14,'radius':0x4,'width':de(_0x1c0be1,_0x21e43f),'fill':_0x5bb482,'evented':!0x1}),_0x1c0be1[_0x21a4a3(0x30e)]='#FFF',_0xc2e9c7>0xc0){let _0x48a33c='',_0x110b6e=0x0;for(let _0x59ce87 of _0x21e43f){let _0x77d983=_0x1c0be1[_0x21a4a3(0x455)](_0x59ce87)['width'];if(_0x110b6e+_0x77d983<=0xc0-_0x1c0be1[_0x21a4a3(0x455)](_0x21a4a3(0x298))[_0x21a4a3(0x33c)])_0x48a33c+=_0x59ce87,_0x110b6e+=_0x77d983;else{_0x48a33c+='...';break;}}_0x1c0be1[_0x21a4a3(0x282)](_0x48a33c,0x4,0xf);}else _0x1c0be1[_0x21a4a3(0x282)](_0x21e43f,0x4,0xf);_0x1c0be1[_0x21a4a3(0x416)]();}[_0x32171b(0x2aa)](_0x5c6a01){e['drawWith'](_0x5c6a01,this);}};const O=0x138a;var pe=class extends u[_0x32171b(0x2b2)]{constructor(_0x3e86ff,_0x5a948e){const _0x3725d1=_0x32171b;super(_0x3e86ff,{..._0x5a948e,'evented':!0x1}),x(this,_0x3725d1(0x185),_0x3725d1(0x210)),x(this,'_name',''),x(this,'_showText',!0x0),_0x5a948e&&this[_0x3725d1(0x1c6)](_0x5a948e);}['setShapeProps'](_0x5047fe){const _0xa870ef=_0x32171b;var _0xe52211,_0xadf93f,_0x43cfac,_0x3045d7,_0x5cd3fc,_0x57c63c,_0x28230e,_0x2e8b50;this[_0xa870ef(0x185)]=(_0xe52211=_0x5047fe[_0xa870ef(0x19a)])==null?this[_0xa870ef(0x185)]:_0xe52211,this[_0xa870ef(0x1eb)]=(_0xadf93f=_0x5047fe['name'])==null?this[_0xa870ef(0x1eb)]:_0xadf93f,this[_0xa870ef(0x44a)]=(_0x43cfac=_0x5047fe[_0xa870ef(0x1e8)])==null?this[_0xa870ef(0x44a)]:_0x43cfac,this['evented']=!0x1,this[_0xa870ef(0x434)]({'left':(_0x3045d7=_0x5047fe[_0xa870ef(0x41e)])==null?this[_0xa870ef(0x41e)]:_0x3045d7,'top':(_0x5cd3fc=_0x5047fe['top'])==null?this[_0xa870ef(0x3b4)]:_0x5cd3fc,'width':(_0x57c63c=_0x5047fe[_0xa870ef(0x33c)])==null?this[_0xa870ef(0x33c)]:_0x57c63c,'height':(_0x28230e=_0x5047fe['height'])==null?this[_0xa870ef(0x35a)]:_0x28230e,'angle':(_0x2e8b50=_0x5047fe[_0xa870ef(0x3e0)])==null?this[_0xa870ef(0x3e0)]:_0x2e8b50});}[_0x32171b(0x2aa)](_0xdfcdd2){const _0x114cb6=_0x32171b;_0xdfcdd2[_0x114cb6(0x337)](),_0xdfcdd2['strokeStyle']=this[_0x114cb6(0x185)],_0xdfcdd2[_0x114cb6(0x240)]=this[_0x114cb6(0x303)]||1.5,_0xdfcdd2[_0x114cb6(0x38a)]([0x6,0x4]),_0xdfcdd2[_0x114cb6(0x2a3)](0x0,0x0,this[_0x114cb6(0x33c)],this[_0x114cb6(0x35a)]),_0xdfcdd2[_0x114cb6(0x416)](),this[_0x114cb6(0x44a)]&&(_0xdfcdd2['save'](),_0xdfcdd2[_0x114cb6(0x2dd)](0x1,0x0,0x0,0x1,this[_0x114cb6(0x33c)],-0x14),D[_0x114cb6(0x47e)](_0xdfcdd2,{'text':this[_0x114cb6(0x1eb)],'color':this['_color']}),_0xdfcdd2[_0x114cb6(0x416)]());}};const me=[_0x32171b(0x2e2),_0x32171b(0x314),_0x32171b(0x3ca),_0x32171b(0x3af),_0x32171b(0x397),_0x32171b(0x1fd)];var k=class extends n[_0x32171b(0x45a)]{constructor(..._0x59fb6e){const _0x51c47e=_0x32171b;super(..._0x59fb6e),x(this,_0x51c47e(0x2ba),new Map()),x(this,_0x51c47e(0x30c),0x0);}[_0x32171b(0x448)](_0x226f81){const _0x5d36bd=_0x32171b;if(this[_0x5d36bd(0x2ba)][_0x5d36bd(0x41a)](_0x226f81))return this[_0x5d36bd(0x2ba)][_0x5d36bd(0x3e4)](_0x226f81);let _0x43530=me[this[_0x5d36bd(0x30c)]];return this['_colorIndex']=(this[_0x5d36bd(0x30c)]+0x1)%me['length'],this[_0x5d36bd(0x2ba)][_0x5d36bd(0x30a)](_0x226f81,_0x43530),_0x43530;}};function he(_0x2876b8){const _0x1a7c7b=_0x32171b;let _0x3a8075;try{_0x3a8075=JSON['parse'](_0x2876b8);}catch{return null;}if(typeof _0x3a8075!=_0x1a7c7b(0x184)||!_0x3a8075)return null;let _0xa9e447=_0x3a8075;if(_0xa9e447['kind']!==_0x1a7c7b(0x466)||typeof _0xa9e447['unitId']!='string'||typeof _0xa9e447[_0x1a7c7b(0x3d9)]!=_0x1a7c7b(0x3b2))return null;let _0x3bf6b1=Array[_0x1a7c7b(0x3c4)](_0xa9e447[_0x1a7c7b(0x488)])?_0xa9e447[_0x1a7c7b(0x488)][_0x1a7c7b(0x378)](_0x388f8e=>typeof _0x388f8e==_0x1a7c7b(0x3b2)):[],_0x407742=typeof _0xa9e447[_0x1a7c7b(0x40b)]==_0x1a7c7b(0x3b2)?_0xa9e447[_0x1a7c7b(0x40b)]:null;return{'kind':_0x1a7c7b(0x466),'unitId':_0xa9e447[_0x1a7c7b(0x3fc)],'subUnitId':_0xa9e447[_0x1a7c7b(0x3d9)],'selectedIds':_0x3bf6b1,'focusedId':_0x407742};}let A=class extends n['RxDisposable']{get[_0x32171b(0x1e0)](){const _0x5dc6df=_0x32171b;return this[_0x5dc6df(0x3df)][_0x5dc6df(0x2c8)]();}get[_0x32171b(0x2e4)](){const _0x33231c=_0x32171b;return this[_0x33231c(0x409)][_0x33231c(0x2c8)]();}constructor(_0x22ba4a,_0x42f68e,_0x59c1b1,_0xe03e86,_0x3df958){const _0x3ccf33=_0x32171b;super(),this[_0x3ccf33(0x486)]=_0x22ba4a,this[_0x3ccf33(0x340)]=_0x42f68e,this['_colorAssignService']=_0x59c1b1,this[_0x3ccf33(0x209)]=_0xe03e86,this[_0x3ccf33(0x40f)]=_0x3df958,x(this,_0x3ccf33(0x2c6),!0x1),x(this,'_init',!0x1),x(this,_0x3ccf33(0x3df),new i[(_0x3ccf33(0x3fb))](new Map())),x(this,'cursorInfo$',this['_cursorInfo$'][_0x3ccf33(0x1a4)]()),x(this,_0x3ccf33(0x409),new i['BehaviorSubject']([])),x(this,_0x3ccf33(0x251),this[_0x3ccf33(0x409)][_0x3ccf33(0x1fa)]((0x0,i[_0x3ccf33(0x35b)])(0x12c))),x(this,_0x3ccf33(0x444),(0x0,n[_0x3ccf33(0x442)])(_0x5982dc=>{const _0x5a774a=_0x3ccf33;let _0x332e15=_0x5982dc[_0x5a774a(0x366)];if(!_0x332e15||_0x332e15[_0x5a774a(0x3fc)]!==this[_0x5a774a(0x486)])return;let _0x392f87={'kind':_0x5a774a(0x466),'unitId':_0x332e15[_0x5a774a(0x3fc)],'subUnitId':_0x332e15[_0x5a774a(0x3d9)],'selectedIds':_0x5982dc[_0x5a774a(0x488)][_0x5a774a(0x378)](_0x2e4ad5=>typeof _0x2e4ad5==_0x5a774a(0x3b2)),'focusedId':_0x5982dc[_0x5a774a(0x40b)]},_0x34721a={'eventID':p[_0x5a774a(0x375)][_0x5a774a(0x484)],'data':{'unitID':this[_0x5a774a(0x486)],'memberID':this[_0x5a774a(0x340)]['getMemberID'](),'selection':JSON[_0x5a774a(0x242)](_0x392f87)}};this[_0x5a774a(0x340)]['send'](_0x34721a,this['unitID']);},0x64));}[_0x32171b(0x376)](){const _0x1a6535=_0x32171b;super[_0x1a6535(0x376)](),this[_0x1a6535(0x3df)][_0x1a6535(0x1f5)](new Map()),this['_cursorInfo$']['complete'](),this[_0x1a6535(0x409)][_0x1a6535(0x1f5)]([]),this['_roomMembers$'][_0x1a6535(0x3e9)]();}[_0x32171b(0x302)](){const _0x57794f=_0x32171b;this['_init']||(this[_0x57794f(0x35c)]=!0x0,this[_0x57794f(0x340)][_0x57794f(0x3eb)][_0x57794f(0x1fa)]((0x0,i[_0x57794f(0x38d)])(this[_0x57794f(0x273)]))[_0x57794f(0x2b4)](_0x2ca567=>{const _0x41503d=_0x57794f;_0x2ca567===t['SessionStatus'][_0x41503d(0x2e9)]?this['_toggleOnline']():this[_0x41503d(0x436)]();}),this['_session']['event$'][_0x57794f(0x1fa)]((0x0,i[_0x57794f(0x38d)])(this['dispose$']))[_0x57794f(0x2b4)](_0x516b44=>{const _0x4dc64d=_0x57794f;let _0x2faec1=_0x516b44[_0x4dc64d(0x48e)];_0x2faec1===p[_0x4dc64d(0x375)][_0x4dc64d(0x484)]&&this['_onCursorUpdate'](_0x516b44),_0x2faec1===p[_0x4dc64d(0x375)][_0x4dc64d(0x365)]&&this[_0x4dc64d(0x3a8)](_0x516b44);}),this['_boardElementStateService'][_0x57794f(0x460)][_0x57794f(0x1fa)]((0x0,i['takeUntil'])(this[_0x57794f(0x273)]))[_0x57794f(0x2b4)](_0x57b486=>{this['_online']&&this['_updateLocalCursor'](_0x57b486);}));}['_onCursorUpdate'](_0x569dec){const _0x4441e2=_0x32171b;var _0x3267db,_0x35b20f,_0x9c7eba,_0x1c63d5;let {memberID:_0x29efdb,selection:_0x4be7cd}=_0x569dec[_0x4441e2(0x274)];if(_0x29efdb===((_0x3267db=(_0x35b20f=this[_0x4441e2(0x340)])[_0x4441e2(0x3a5)])==null?void 0x0:_0x3267db[_0x4441e2(0x425)](_0x35b20f)))return;let _0x404083=he(_0x4be7cd);if(!_0x404083||_0x404083['unitId']!==this[_0x4441e2(0x486)])return;let _0x503696=(_0x9c7eba=(_0x1c63d5=this[_0x4441e2(0x209)][_0x4441e2(0x2b5)](this[_0x4441e2(0x486)],_0x29efdb))==null?void 0x0:_0x1c63d5[_0x4441e2(0x1c3)])==null?_0x4441e2(0x2df):_0x9c7eba,_0x5d5da8={'color':this[_0x4441e2(0x40e)][_0x4441e2(0x448)](_0x29efdb),'name':_0x503696,'unitId':_0x404083[_0x4441e2(0x3fc)],'subUnitId':_0x404083[_0x4441e2(0x3d9)],'selectedIds':_0x404083[_0x4441e2(0x488)],'focusedId':_0x404083[_0x4441e2(0x40b)],'selection':_0x4be7cd},_0x4b85c9=new Map(this[_0x4441e2(0x1e0)]);_0x4b85c9[_0x4441e2(0x30a)](_0x29efdb,_0x5d5da8),this[_0x4441e2(0x3df)]['next'](_0x4b85c9);}['_onCursorDelete'](_0x4f8d54){const _0x18f23a=_0x32171b;let {memberID:_0x472875}=_0x4f8d54[_0x18f23a(0x274)],_0x12c6fd=new Map(this[_0x18f23a(0x1e0)]);_0x12c6fd[_0x18f23a(0x37f)](_0x472875),this['_cursorInfo$'][_0x18f23a(0x1f5)](_0x12c6fd);}[_0x32171b(0x230)](){const _0x53a59a=_0x32171b;this[_0x53a59a(0x2c6)]=!0x0,this['_updateLocalCursor'](this[_0x53a59a(0x40f)][_0x53a59a(0x3b9)]());}[_0x32171b(0x436)](){const _0x3936b1=_0x32171b;this[_0x3936b1(0x2c6)]=!0x1;}};A=C([S(0x2,(0x0,n[_0x32171b(0x329)])(k)),S(0x3,(0x0,n['Inject'])(t['MemberService'])),S(0x4,(0x0,n[_0x32171b(0x329)])(e[_0x32171b(0x348)]))],A);function ge(_0x3dd074){const _0x4a7180=_0x32171b;let _0x5a3da4='';for(let _0x537202 of _0x3dd074){let {startOffset:_0x306913,endOffset:_0x21a24f,isActive:_0x411ab7,rangeType:_0x4af6c6,segmentId:_0x412a99,segmentPage:_0x158887}=_0x537202;_0x5a3da4[_0x4a7180(0x1f1)]&&(_0x5a3da4+=','),_0x5a3da4+=_0x306913+':'+_0x21a24f+':'+(_0x411ab7?'1':'0')+':'+_0x4af6c6+':'+_0x412a99+':'+_0x158887;}return _0x5a3da4;}function _e(_0x3342a3){const _0x511d84=_0x32171b;let _0x7d6ab1=_0x3342a3['split'](','),_0x31bbce=[];for(let _0x258a49 of _0x7d6ab1){let [_0x36b284,_0x5d1a65,_0x30c4ec,_0x108325,_0x3bebc1,_0x42918c]=_0x258a49[_0x511d84(0x2cb)](':');_0x31bbce[_0x511d84(0x18d)]({'startOffset':Number(_0x36b284),'endOffset':Number(_0x5d1a65),'collapsed':_0x36b284===_0x5d1a65,'isActive':_0x30c4ec==='1','rangeType':_0x108325===n[_0x511d84(0x3c8)][_0x511d84(0x2cd)]?n[_0x511d84(0x3c8)][_0x511d84(0x2cd)]:n['DOC_RANGE_TYPE'][_0x511d84(0x21e)],'segmentId':typeof _0x3bebc1=='string'?String(_0x3bebc1):'','segmentPage':Number(_0x42918c==null?-0x1:_0x42918c)});}return _0x31bbce[_0x511d84(0x458)](_0x4bb785=>_0x4bb785[_0x511d84(0x428)])||(_0x31bbce[0x0]['isActive']=!0x0),_0x31bbce;}var j=class extends n[_0x32171b(0x467)]{constructor(..._0x3744f6){const _0x170a55=_0x32171b;super(..._0x3744f6),x(this,_0x170a55(0x1f0),new i[(_0x170a55(0x3fb))](null)),x(this,'collabCursorState$',this[_0x170a55(0x1f0)][_0x170a55(0x1a4)]());}[_0x32171b(0x192)](_0x141d77){const _0x1b5d74=_0x32171b;let {unitID:_0x225455,memberID:_0x2c200b,textRanges:_0x8290fb}=_0x141d77,_0x176ce8=ge(_0x8290fb);if(_0x176ce8==='')return;let _0x1fbcc4={'unitID':_0x225455,'memberID':_0x2c200b,'selection':_0x176ce8};this[_0x1b5d74(0x1f0)][_0x1b5d74(0x1f5)](_0x1fbcc4);}};let M=class extends n[_0x32171b(0x467)]{get[_0x32171b(0x1e0)](){const _0x26c137=_0x32171b;return this[_0x26c137(0x3df)][_0x26c137(0x2c8)]();}get[_0x32171b(0x2e4)](){const _0x3e400f=_0x32171b;return this[_0x3e400f(0x409)][_0x3e400f(0x2c8)]();}constructor(_0x2d6584,_0x451552,_0x28c783,_0x185a29,_0x183ec2,_0x474289,_0x3768f9,_0x16c5a1,_0x3f09c3){const _0x8ef764=_0x32171b;super(),this[_0x8ef764(0x486)]=_0x2d6584,this[_0x8ef764(0x340)]=_0x451552,this[_0x8ef764(0x2e6)]=_0x28c783,this[_0x8ef764(0x40e)]=_0x185a29,this[_0x8ef764(0x209)]=_0x183ec2,this[_0x8ef764(0x232)]=_0x474289,this[_0x8ef764(0x360)]=_0x3768f9,this['_univerInstanceService']=_0x16c5a1,this['_commandService']=_0x3f09c3,x(this,'_online',!0x1),x(this,'_init',!0x1),x(this,'_cursorInfo$',new i[(_0x8ef764(0x3fb))](new Map())),x(this,_0x8ef764(0x202),this[_0x8ef764(0x3df)][_0x8ef764(0x1a4)]()),x(this,'_roomMembers$',new i['BehaviorSubject']([])),x(this,'roomMembers$',this[_0x8ef764(0x409)][_0x8ef764(0x1fa)]((0x0,i[_0x8ef764(0x35b)])(0x12c))),x(this,_0x8ef764(0x444),(0x0,n[_0x8ef764(0x442)])(_0x5864b7=>{const _0x1b3577=_0x8ef764;let _0x127b85={'eventID':p[_0x1b3577(0x375)][_0x1b3577(0x484)],'data':{'unitID':this[_0x1b3577(0x486)],'memberID':this[_0x1b3577(0x340)][_0x1b3577(0x3a5)](),'selection':ge(_0x5864b7)}};this['_session'][_0x1b3577(0x2c3)](_0x127b85,this[_0x1b3577(0x486)]);},0x64));}['dispose'](){const _0x2ba365=_0x32171b;super['dispose'](),this[_0x2ba365(0x3df)]['next'](new Map()),this['_cursorInfo$'][_0x2ba365(0x3e9)](),this[_0x2ba365(0x409)][_0x2ba365(0x1f5)]([]),this[_0x2ba365(0x409)]['complete']();}[_0x32171b(0x302)](){const _0x2e1cce=_0x32171b;this[_0x2e1cce(0x35c)]||(this[_0x2e1cce(0x35c)]=!0x0,this[_0x2e1cce(0x340)][_0x2e1cce(0x3eb)]['pipe']((0x0,i[_0x2e1cce(0x38d)])(this[_0x2e1cce(0x273)]))[_0x2e1cce(0x2b4)](_0x52db8b=>{const _0x3a5430=_0x2e1cce;_0x52db8b===t[_0x3a5430(0x31d)][_0x3a5430(0x2e9)]?this['_toggleOnline']():this[_0x3a5430(0x436)]();}),this[_0x2e1cce(0x340)][_0x2e1cce(0x1ae)][_0x2e1cce(0x1fa)]((0x0,i[_0x2e1cce(0x38d)])(this['dispose$']))[_0x2e1cce(0x2b4)](_0x5aa8a8=>{const _0x2089a7=_0x2e1cce;let _0xb550c5=_0x5aa8a8[_0x2089a7(0x48e)];_0xb550c5===p[_0x2089a7(0x375)]['UPDATE_CURSOR']&&this[_0x2089a7(0x42d)](_0x5aa8a8),_0xb550c5===p[_0x2089a7(0x375)]['USERS_LEAVE']&&this[_0x2089a7(0x3a8)](_0x5aa8a8);}),this[_0x2e1cce(0x3ec)](this[_0x2e1cce(0x465)][_0x2e1cce(0x363)](_0x16c1bc=>{const _0x5f2406=_0x2e1cce;let _0x4637d0=_0x16c1bc['params'];_0x4637d0!=null&&this[_0x5f2406(0x2c6)]&&_0x16c1bc['id']===m[_0x5f2406(0x321)]['id']&&_0x4637d0[_0x5f2406(0x3fc)]===this['unitID']&&_0x4637d0['isEditing']===!0x1&&_0x4637d0[_0x5f2406(0x3dc)][_0x5f2406(0x1f1)]>0x0&&this[_0x5f2406(0x444)](_0x4637d0[_0x5f2406(0x3dc)]);})),this['_syncEditingCollabCursorService'][_0x2e1cce(0x46f)][_0x2e1cce(0x1fa)]((0x0,i[_0x2e1cce(0x38d)])(this['dispose$']))['subscribe'](_0x144a5a=>{const _0x341223=_0x2e1cce;if((_0x144a5a==null?void 0x0:_0x144a5a[_0x341223(0x486)])!==this[_0x341223(0x486)])return;let _0x5dab4c={'eventID':p[_0x341223(0x375)][_0x341223(0x484)],'data':_0x144a5a};this[_0x341223(0x42d)](_0x5dab4c);}),this[_0x2e1cce(0x3ec)](this[_0x2e1cce(0x465)][_0x2e1cce(0x363)](_0x185643=>{const _0x239440=_0x2e1cce;if(_0x185643[_0x239440(0x219)]==null)return;let _0x78be81=_0x185643[_0x239440(0x219)];if(_0x185643['id']!==m[_0x239440(0x316)]['id']||_0x78be81[_0x239440(0x3fc)]!==this[_0x239440(0x486)])return;let _0xf562d5={'id':_0x239440(0x23e),'params':_0x78be81},_0x53ac5d=this[_0x239440(0x1e0)];for(let [_0x2b79b0,_0x33b9f5]of _0x53ac5d){let _0x13561b={'id':_0x239440(0x23e),'params':{'unitId':this[_0x239440(0x486)],'actions':null,'textRanges':_0x33b9f5[_0x239440(0x3dc)]}},_0x58cf4a=this[_0x239440(0x360)][_0x239440(0x1c7)](_0xf562d5,_0x13561b,!0x1);if((0x0,p[_0x239440(0x1dc)])(_0x58cf4a))throw _0x58cf4a['error'];_0x53ac5d[_0x239440(0x30a)](_0x2b79b0,{..._0x33b9f5,'ranges':_0x58cf4a[_0x239440(0x2b1)][_0x239440(0x219)][_0x239440(0x47d)]});}queueMicrotask(()=>{const _0x44fd78=_0x239440;this[_0x44fd78(0x3df)][_0x44fd78(0x1f5)](_0x53ac5d);});})));}['_onCursorUpdate'](_0x35dc28){const _0x3c50f8=_0x32171b;var _0xfc318,_0x48c549;let {memberID:_0x5ba064,selection:_0x532792}=_0x35dc28['data'],_0x2ba714=_e(_0x532792),_0x5ddabc=(_0xfc318=(_0x48c549=this['_memberService'][_0x3c50f8(0x2b5)](this[_0x3c50f8(0x486)],_0x5ba064))==null?void 0x0:_0x48c549[_0x3c50f8(0x1c3)])==null?'Unknown\x20user':_0xfc318,_0x343c88={'color':this[_0x3c50f8(0x40e)]['assignAColorForMemberID'](_0x5ba064),'name':_0x5ddabc,'ranges':_0x2ba714},_0x35b9e5=this[_0x3c50f8(0x1e0)];_0x35b9e5[_0x3c50f8(0x30a)](_0x5ba064,_0x343c88),this[_0x3c50f8(0x3df)][_0x3c50f8(0x1f5)](_0x35b9e5);}[_0x32171b(0x3a8)](_0x599475){const _0x1b172a=_0x32171b;let {memberID:_0x4d7efd}=_0x599475['data'],_0x1e4306=this[_0x1b172a(0x1e0)];_0x1e4306[_0x1b172a(0x37f)](_0x4d7efd),this[_0x1b172a(0x3df)][_0x1b172a(0x1f5)](_0x1e4306);}[_0x32171b(0x230)](){const _0x2c0a58=_0x32171b;var _0x204451;if(this[_0x2c0a58(0x2c6)]=!0x0,((_0x204451=this[_0x2c0a58(0x2c7)][_0x2c0a58(0x1a2)]())==null?void 0x0:_0x204451['getUnitId']())!==this[_0x2c0a58(0x486)])return;let _0x7f6cb6=this[_0x2c0a58(0x2e6)][_0x2c0a58(0x3e4)](m[_0x2c0a58(0x46d)])[_0x2c0a58(0x1ec)]();Array[_0x2c0a58(0x3c4)](_0x7f6cb6)&&_0x7f6cb6['length']>0x0&&this['_updateLocalCursor'](_0x7f6cb6);}[_0x32171b(0x436)](){const _0x148b06=_0x32171b;this[_0x148b06(0x2c6)]=!0x1;}};M=C([S(0x2,(0x0,n['Inject'])(n[_0x32171b(0x25b)])),S(0x3,(0x0,n[_0x32171b(0x329)])(k)),S(0x4,(0x0,n[_0x32171b(0x329)])(t[_0x32171b(0x26d)])),S(0x5,(0x0,n['Inject'])(j)),S(0x6,p[_0x32171b(0x2d6)]),S(0x7,n[_0x32171b(0x289)]),S(0x8,n[_0x32171b(0x2d2)])],M);const ve=()=>{let _0xb60a61=[],_0x9775df=!0x1;return _0x12b96d=>{const _0xecf1b9=_0x4167;_0xb60a61[_0xecf1b9(0x18d)](_0x12b96d),_0x9775df||(_0x9775df=!0x0,setTimeout(()=>{const _0x1089cf=_0xecf1b9;_0xb60a61[_0x1089cf(0x19f)](_0x17352a=>_0x17352a()),_0xb60a61=[],_0x9775df=!0x1;}));};};let N=class extends n[_0x32171b(0x467)]{get[_0x32171b(0x1e0)](){const _0x34bc3c=_0x32171b;return this[_0x34bc3c(0x3df)][_0x34bc3c(0x2c8)]();}get[_0x32171b(0x2e4)](){const _0x36028e=_0x32171b;return this[_0x36028e(0x409)]['getValue']();}constructor(_0xfaa698,_0x455997,_0x2dce9a,_0x4bd3b5,_0x4913fd,_0x1a70ce,_0x2b9856,_0x34c921){const _0x225bf9=_0x32171b;super(),this[_0x225bf9(0x486)]=_0xfaa698,this['_session']=_0x455997,this[_0x225bf9(0x2e6)]=_0x2dce9a,this[_0x225bf9(0x40e)]=_0x4bd3b5,this[_0x225bf9(0x209)]=_0x4913fd,this[_0x225bf9(0x2c7)]=_0x1a70ce,this[_0x225bf9(0x465)]=_0x2b9856,this[_0x225bf9(0x355)]=_0x34c921,x(this,'_online',!0x1),x(this,_0x225bf9(0x35c),!0x1),x(this,_0x225bf9(0x3df),new i[(_0x225bf9(0x3fb))](new Map())),x(this,_0x225bf9(0x202),this[_0x225bf9(0x3df)][_0x225bf9(0x1a4)]()),x(this,'_roomMembers$',new i[(_0x225bf9(0x3fb))]([])),x(this,_0x225bf9(0x251),this[_0x225bf9(0x409)]['pipe']((0x0,i[_0x225bf9(0x35b)])(0x12c))),x(this,_0x225bf9(0x444),(0x0,n[_0x225bf9(0x442)])((_0x4110fe,_0xd463c0)=>{const _0x3cbcaf=_0x225bf9;let _0x2a7d02={'eventID':p[_0x3cbcaf(0x375)][_0x3cbcaf(0x484)],'data':{'unitID':this['unitID'],'memberID':this[_0x3cbcaf(0x340)]['getMemberID'](),'selection':(0x0,h[_0x3cbcaf(0x283)])(_0x4110fe,_0xd463c0[_0x3cbcaf(0x3b6)])}};this[_0x3cbcaf(0x340)][_0x3cbcaf(0x2c3)](_0x2a7d02,this[_0x3cbcaf(0x486)]);},0x64));}[_0x32171b(0x376)](){const _0x3286f8=_0x32171b;super[_0x3286f8(0x376)](),this[_0x3286f8(0x3df)]['next'](new Map()),this[_0x3286f8(0x3df)]['complete'](),this[_0x3286f8(0x409)][_0x3286f8(0x1f5)]([]),this[_0x3286f8(0x409)][_0x3286f8(0x3e9)]();}[_0x32171b(0x302)](){const _0x63763=_0x32171b;this[_0x63763(0x35c)]||(this[_0x63763(0x35c)]=!0x0,this[_0x63763(0x340)]['sessionStatus$'][_0x63763(0x1fa)]((0x0,i[_0x63763(0x38d)])(this[_0x63763(0x273)]))['subscribe'](_0x52795d=>{const _0x2893d5=_0x63763;_0x52795d===t[_0x2893d5(0x31d)][_0x2893d5(0x2e9)]?this[_0x2893d5(0x230)]():this[_0x2893d5(0x436)]();}),this[_0x63763(0x340)][_0x63763(0x1ae)][_0x63763(0x1fa)]((0x0,i['takeUntil'])(this[_0x63763(0x273)]))[_0x63763(0x2b4)](_0x3c171c=>{const _0x269986=_0x63763;let _0x27f7f5=_0x3c171c[_0x269986(0x48e)];_0x27f7f5===p[_0x269986(0x375)][_0x269986(0x484)]&&this[_0x269986(0x42d)](_0x3c171c),_0x27f7f5===p[_0x269986(0x375)][_0x269986(0x365)]&&this['_onCursorDelete'](_0x3c171c);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x63763(0x363)](_0x5afca4=>{const _0x912600=_0x63763;if(this[_0x912600(0x2c6)]&&_0x5afca4['id']===g[_0x912600(0x2ac)]['id']&&_0x5afca4['params'][_0x912600(0x3fc)]===this['unitID']){let _0x1073b6=_0x5afca4[_0x912600(0x219)];this[_0x912600(0x444)](_0x1073b6[_0x912600(0x3d9)],_0x1073b6[_0x912600(0x31f)][0x0]);}})));}[_0x32171b(0x42d)](_0x7eb443){const _0x42f928=_0x32171b;var _0x527a9a,_0x23f001;let {memberID:_0x3790e0,selection:_0xb9231a}=_0x7eb443['data'],{sheetName:_0xb37221,range:_0x21f6bf}=(0x0,h[_0x42f928(0x211)])(_0xb9231a),_0x54c72a={'name':(_0x527a9a=(_0x23f001=this[_0x42f928(0x209)]['getMember'](this[_0x42f928(0x486)],_0x3790e0))==null?void 0x0:_0x23f001[_0x42f928(0x1c3)])==null?_0x42f928(0x2df):_0x527a9a,'range':this[_0x42f928(0x3d0)](_0xb37221,_0x21f6bf),'sheetID':_0xb37221,'color':this['_colorAssignService'][_0x42f928(0x448)](_0x3790e0),'selection':_0xb9231a},_0x1bfc19=this[_0x42f928(0x1e0)];_0x1bfc19[_0x42f928(0x30a)](_0x3790e0,_0x54c72a),this[_0x42f928(0x3df)]['next'](_0x1bfc19);}[_0x32171b(0x3a8)](_0x446d5e){const _0x20345d=_0x32171b;let {memberID:_0x4720bf}=_0x446d5e[_0x20345d(0x274)],_0x36b0c5=this['cursorInfo'];_0x36b0c5[_0x20345d(0x37f)](_0x4720bf),this['_cursorInfo$'][_0x20345d(0x1f5)](_0x36b0c5);}['_getMergeRange'](_0xa92788,_0x38767c){const _0x27cf46=_0x32171b;var _0x4ecf81;let _0x53faa4=(_0x4ecf81=this[_0x27cf46(0x2c7)]['getUniverSheetInstance'](this[_0x27cf46(0x486)]))==null||(_0x4ecf81=_0x4ecf81['getSheetBySheetId'](_0xa92788))==null?void 0x0:_0x4ecf81[_0x27cf46(0x347)]();return(_0x53faa4==null?void 0x0:_0x53faa4[_0x27cf46(0x39f)](_0x244de2=>n['Rectangle'][_0x27cf46(0x25e)](_0x244de2,_0x38767c)))||_0x38767c;}[_0x32171b(0x491)](){const _0x4178b2=_0x32171b;let _0x582afb=new n[(_0x4178b2(0x21a))](),_0x29ae4d=ve(),_0x332632=()=>{const _0x57601a=_0x4178b2;_0x582afb[_0x57601a(0x376)]();let _0x3ba058=(_0x2942f7,_0x39b57c,_0x50ec29,_0x3ade65)=>{const _0x19fe49=_0x57601a;let _0x100c2e=[];switch(_0x2942f7['id']){case g[_0x19fe49(0x186)][_0x19fe49(0x17c)]:_0x100c2e=(0x0,g['handleDeleteRangeMoveLeft'])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)][_0x19fe49(0x31c)]:_0x100c2e=(0x0,g['handleDeleteRangeMoveUp'])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)][_0x19fe49(0x258)]:_0x100c2e=(0x0,g[_0x19fe49(0x19b)])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)]['InsertRangeMoveDownCommandId']:_0x100c2e=(0x0,g[_0x19fe49(0x1b3)])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)][_0x19fe49(0x421)]:_0x100c2e=(0x0,g[_0x19fe49(0x22c)])(_0x2942f7,_0x3ade65);break;case g['EffectRefRangId'][_0x19fe49(0x38f)]:_0x100c2e=(0x0,g[_0x19fe49(0x244)])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)][_0x19fe49(0x418)]:_0x100c2e=(0x0,g[_0x19fe49(0x1d0)])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)][_0x19fe49(0x41f)]:_0x100c2e=(0x0,g[_0x19fe49(0x1fe)])(_0x2942f7,_0x3ade65);break;case g['EffectRefRangId'][_0x19fe49(0x1c4)]:_0x100c2e=(0x0,g[_0x19fe49(0x20a)])(_0x2942f7,_0x3ade65);break;}let _0xe80056=(0x0,g['runRefRangeMutations'])(_0x100c2e,_0x3ade65),_0x149f40=this[_0x19fe49(0x1e0)][_0x19fe49(0x3e4)](_0x39b57c);if(_0x149f40&&_0xe80056){let _0x5b0230={..._0x149f40,'range':_0xe80056};this['cursorInfo'][_0x19fe49(0x30a)](_0x39b57c,_0x5b0230),_0x29ae4d(()=>{const _0xb94f4f=_0x19fe49;let _0x3b3c8b=this[_0xb94f4f(0x355)][_0xb94f4f(0x413)](_0xe80056,_0x2005e2=>(_0x3b3c8b['dispose'](),_0x3ba058(_0x2005e2,_0x39b57c,_0x50ec29,_0xe80056)));_0x582afb[_0xb94f4f(0x3ac)](_0x3b3c8b);});}return{'redos':[],'undos':[]};};this[_0x57601a(0x1e0)][_0x57601a(0x19f)]((_0x868735,_0x5d69a7)=>{const _0x25dddb=_0x57601a;let {range:_0x12cb66,sheetID:_0x390497}=_0x868735,_0x43ee44=this[_0x25dddb(0x355)]['registerRefRange'](_0x12cb66,_0x42d88e=>(_0x43ee44[_0x25dddb(0x376)](),_0x3ba058(_0x42d88e,_0x5d69a7,_0x390497,_0x12cb66)));_0x582afb[_0x25dddb(0x3ac)](_0x43ee44);});};this[_0x4178b2(0x3ec)]((0x0,n['toDisposable'])(this[_0x4178b2(0x3df)]['subscribe'](()=>{_0x332632();})));}[_0x32171b(0x230)](){const _0x12d98f=_0x32171b;var _0x4ac20d,_0x26c5d4;if(this[_0x12d98f(0x2c6)]=!0x0,((_0x4ac20d=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4ac20d[_0x12d98f(0x261)]())!==this[_0x12d98f(0x486)])return;let _0x15946f=(_0x26c5d4=this['_injector']['get'](g[_0x12d98f(0x3aa)])[_0x12d98f(0x1db)]())==null?void 0x0:_0x26c5d4[0x0],_0x171892=this[_0x12d98f(0x2c7)][_0x12d98f(0x45b)](n['UniverInstanceType']['UNIVER_SHEET'])[_0x12d98f(0x48c)]();_0x15946f&&_0x171892&&this['_updateLocalCursor'](_0x171892[_0x12d98f(0x3de)](),_0x15946f);}['_toggleOffline'](){const _0x1a3bd1=_0x32171b;this[_0x1a3bd1(0x2c6)]=!0x1;}};N=C([S(0x2,(0x0,n['Inject'])(n[_0x32171b(0x25b)])),S(0x3,(0x0,n[_0x32171b(0x329)])(k)),S(0x4,(0x0,n['Inject'])(t[_0x32171b(0x26d)])),S(0x5,n['IUniverInstanceService']),S(0x6,n[_0x32171b(0x2d2)]),S(0x7,(0x0,n[_0x32171b(0x329)])(g['RefRangeService']))],N);function ye(_0x6e79cd){const _0x5ce23a=_0x32171b;let _0x585e8a;try{_0x585e8a=JSON[_0x5ce23a(0x46e)](_0x6e79cd);}catch{return null;}if(typeof _0x585e8a!='object'||!_0x585e8a)return null;let _0x18e8b5=_0x585e8a;if(_0x18e8b5['kind']!=='slide-element-selection'||typeof _0x18e8b5[_0x5ce23a(0x3fc)]!=_0x5ce23a(0x3b2)||typeof _0x18e8b5[_0x5ce23a(0x3d9)]!=_0x5ce23a(0x3b2))return null;let _0x372108=Array[_0x5ce23a(0x3c4)](_0x18e8b5[_0x5ce23a(0x488)])?_0x18e8b5[_0x5ce23a(0x488)]['filter'](_0xa41867=>typeof _0xa41867=='string'):[],_0x48e5db=typeof _0x18e8b5[_0x5ce23a(0x40b)]=='string'?_0x18e8b5[_0x5ce23a(0x40b)]:null;return{'kind':_0x5ce23a(0x36d),'unitId':_0x18e8b5['unitId'],'subUnitId':_0x18e8b5[_0x5ce23a(0x3d9)],'selectedIds':_0x372108,'focusedId':_0x48e5db};}let P=class extends n['RxDisposable']{get[_0x32171b(0x1e0)](){const _0x55fb79=_0x32171b;return this[_0x55fb79(0x3df)][_0x55fb79(0x2c8)]();}get[_0x32171b(0x2e4)](){const _0x314ab1=_0x32171b;return this[_0x314ab1(0x409)][_0x314ab1(0x2c8)]();}constructor(_0x3ed51e,_0x4308ef,_0x112b7a,_0x3a9434,_0x59bb1e){const _0x17326a=_0x32171b;super(),this[_0x17326a(0x486)]=_0x3ed51e,this[_0x17326a(0x340)]=_0x4308ef,this[_0x17326a(0x40e)]=_0x112b7a,this[_0x17326a(0x209)]=_0x3a9434,this['_slideDrawingStateService']=_0x59bb1e,x(this,_0x17326a(0x2c6),!0x1),x(this,_0x17326a(0x35c),!0x1),x(this,_0x17326a(0x3df),new i[(_0x17326a(0x3fb))](new Map())),x(this,_0x17326a(0x202),this[_0x17326a(0x3df)][_0x17326a(0x1a4)]()),x(this,_0x17326a(0x409),new i[(_0x17326a(0x3fb))]([])),x(this,_0x17326a(0x251),this[_0x17326a(0x409)][_0x17326a(0x1fa)]((0x0,i['debounceTime'])(0x12c))),x(this,_0x17326a(0x444),(0x0,n[_0x17326a(0x442)])(_0x1c97e8=>{const _0x277b69=_0x17326a;let _0x2eeab5=_0x1c97e8[_0x277b69(0x366)];if(!_0x2eeab5||_0x2eeab5['unitId']!==this['unitID'])return;let _0x25b7d4={'kind':_0x277b69(0x36d),'unitId':_0x2eeab5[_0x277b69(0x3fc)],'subUnitId':_0x2eeab5[_0x277b69(0x3d9)],'selectedIds':_0x1c97e8[_0x277b69(0x488)][_0x277b69(0x378)](_0x21aea0=>typeof _0x21aea0==_0x277b69(0x3b2)),'focusedId':_0x1c97e8['focusedId']},_0x3326a6={'eventID':p['CollaborationEvent'][_0x277b69(0x484)],'data':{'unitID':this['unitID'],'memberID':this[_0x277b69(0x340)][_0x277b69(0x3a5)](),'selection':JSON['stringify'](_0x25b7d4)}};this[_0x277b69(0x340)]['send'](_0x3326a6,this[_0x277b69(0x486)]);},0x64));}[_0x32171b(0x376)](){const _0x5e6f22=_0x32171b;super['dispose'](),this[_0x5e6f22(0x3df)][_0x5e6f22(0x1f5)](new Map()),this[_0x5e6f22(0x3df)][_0x5e6f22(0x3e9)](),this[_0x5e6f22(0x409)]['next']([]),this[_0x5e6f22(0x409)]['complete']();}['init'](){const _0x219ce3=_0x32171b;this[_0x219ce3(0x35c)]||(this['_init']=!0x0,this[_0x219ce3(0x340)]['sessionStatus$'][_0x219ce3(0x1fa)]((0x0,i['takeUntil'])(this[_0x219ce3(0x273)]))['subscribe'](_0xb6c010=>{const _0x12ace2=_0x219ce3;_0xb6c010===t[_0x12ace2(0x31d)][_0x12ace2(0x2e9)]?this[_0x12ace2(0x230)]():this[_0x12ace2(0x436)]();}),this[_0x219ce3(0x340)]['event$'][_0x219ce3(0x1fa)]((0x0,i[_0x219ce3(0x38d)])(this[_0x219ce3(0x273)]))[_0x219ce3(0x2b4)](_0x29e0e5=>{const _0x10bef1=_0x219ce3;let _0x59514c=_0x29e0e5['eventID'];_0x59514c===p[_0x10bef1(0x375)][_0x10bef1(0x484)]&&this['_onCursorUpdate'](_0x29e0e5),_0x59514c===p[_0x10bef1(0x375)][_0x10bef1(0x365)]&&this[_0x10bef1(0x3a8)](_0x29e0e5);}),this[_0x219ce3(0x46a)]['state$'][_0x219ce3(0x1fa)]((0x0,i[_0x219ce3(0x38d)])(this[_0x219ce3(0x273)]))[_0x219ce3(0x2b4)](_0x36fde7=>{const _0x24f816=_0x219ce3;this[_0x24f816(0x2c6)]&&this[_0x24f816(0x444)](_0x36fde7);}));}['_onCursorUpdate'](_0x18256e){const _0x1e4a14=_0x32171b;var _0x343fd1,_0x3979e7,_0x2c02d8,_0x324c76;let {memberID:_0x336a0d,selection:_0x56054a}=_0x18256e[_0x1e4a14(0x274)];if(_0x336a0d===((_0x343fd1=(_0x3979e7=this[_0x1e4a14(0x340)])['getMemberID'])==null?void 0x0:_0x343fd1[_0x1e4a14(0x425)](_0x3979e7)))return;let _0x26b3d0=ye(_0x56054a);if(!_0x26b3d0||_0x26b3d0['unitId']!==this['unitID'])return;let _0x14af78=(_0x2c02d8=(_0x324c76=this[_0x1e4a14(0x209)]['getMember'](this[_0x1e4a14(0x486)],_0x336a0d))==null?void 0x0:_0x324c76[_0x1e4a14(0x1c3)])==null?_0x1e4a14(0x2df):_0x2c02d8,_0x515899={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x336a0d),'name':_0x14af78,'unitId':_0x26b3d0['unitId'],'subUnitId':_0x26b3d0[_0x1e4a14(0x3d9)],'selectedIds':_0x26b3d0[_0x1e4a14(0x488)],'focusedId':_0x26b3d0['focusedId'],'selection':_0x56054a},_0x364073=new Map(this[_0x1e4a14(0x1e0)]);_0x364073['set'](_0x336a0d,_0x515899),this[_0x1e4a14(0x3df)][_0x1e4a14(0x1f5)](_0x364073);}[_0x32171b(0x3a8)](_0x2d859b){const _0x44a282=_0x32171b;let {memberID:_0x3838d2}=_0x2d859b['data'],_0x5f326b=new Map(this[_0x44a282(0x1e0)]);_0x5f326b[_0x44a282(0x37f)](_0x3838d2),this['_cursorInfo$'][_0x44a282(0x1f5)](_0x5f326b);}[_0x32171b(0x230)](){const _0x3ed4cc=_0x32171b;this[_0x3ed4cc(0x2c6)]=!0x0,this[_0x3ed4cc(0x444)](this['_slideDrawingStateService'][_0x3ed4cc(0x3b9)]());}['_toggleOffline'](){this['_online']=!0x1;}};P=C([S(0x2,(0x0,n[_0x32171b(0x329)])(k)),S(0x3,(0x0,n['Inject'])(t[_0x32171b(0x26d)])),S(0x4,(0x0,n[_0x32171b(0x329)])(_['ISlideDrawingStateService']))],P);let F=class extends n[_0x32171b(0x467)]{constructor(_0x188309,_0x50cf27,_0x242f6b){const _0x50a26e=_0x32171b;super(),this[_0x50a26e(0x2c7)]=_0x188309,this['_injector']=_0x50cf27,this[_0x50a26e(0x387)]=_0x242f6b,x(this,_0x50a26e(0x2d9),new Map()),x(this,_0x50a26e(0x48d),new i[(_0x50a26e(0x318))]()),this[_0x50a26e(0x35c)]();}['dispose'](){const _0x42a90d=_0x32171b;super[_0x42a90d(0x376)](),this['_entityInit$']['complete'](),this['_entities'][_0x42a90d(0x19f)](_0x2a53b8=>_0x2a53b8[_0x42a90d(0x376)]());}[_0x32171b(0x399)](_0x2a197e){const _0x43f2de=_0x32171b;return this[_0x43f2de(0x2d9)]['has'](_0x2a197e)?this[_0x43f2de(0x2d9)]['get'](_0x2a197e)['cursorInfo$']:this[_0x43f2de(0x48d)][_0x43f2de(0x1fa)]((0x0,i[_0x43f2de(0x378)])(_0x38fed3=>_0x38fed3['unitID']===_0x2a197e),(0x0,i[_0x43f2de(0x374)])(_0x58b55e=>_0x58b55e['cursorInfo$']));}[_0x32171b(0x35c)](){const _0x392f03=_0x32171b;this['_univerInstanceService'][_0x392f03(0x1c8)](n[_0x392f03(0x212)][_0x392f03(0x370)])[_0x392f03(0x1fa)]((0x0,i[_0x392f03(0x38d)])(this[_0x392f03(0x273)]))[_0x392f03(0x2b4)](async _0x549e4e=>{const _0x19b26=_0x392f03;let _0x23c184=_0x549e4e[_0x19b26(0x1e4)][_0x19b26(0x261)](),_0x2d1bbf=await this[_0x19b26(0x180)](_0x23c184);this['_entityInit$']['next'](_0x2d1bbf),this[_0x19b26(0x2d9)]['set'](_0x23c184,_0x2d1bbf);}),this[_0x392f03(0x2c7)][_0x392f03(0x1c8)](n[_0x392f03(0x212)][_0x392f03(0x304)])[_0x392f03(0x1fa)]((0x0,i[_0x392f03(0x38d)])(this[_0x392f03(0x273)]))['pipe']((0x0,i['filter'])(_0x50f971=>!_0x50f971[_0x392f03(0x1e4)][_0x392f03(0x261)]()['startsWith']('__')))['subscribe'](async _0x4469dd=>{const _0x4f9297=_0x392f03;let {unit:_0x2853ed}=_0x4469dd,_0x5c95c7=_0x2853ed['getUnitId'](),_0x3896a9=await this[_0x4f9297(0x1ac)](_0x5c95c7);this[_0x4f9297(0x48d)][_0x4f9297(0x1f5)](_0x3896a9),this[_0x4f9297(0x2d9)][_0x4f9297(0x30a)](_0x5c95c7,_0x3896a9);}),this['_univerInstanceService'][_0x392f03(0x1c8)](n[_0x392f03(0x212)][_0x392f03(0x452)])[_0x392f03(0x1fa)]((0x0,i['takeUntil'])(this[_0x392f03(0x273)]))[_0x392f03(0x2b4)](async _0x139009=>{const _0x2b1058=_0x392f03;let _0xaf651c=_0x139009[_0x2b1058(0x1e4)][_0x2b1058(0x261)](),_0x555b27=await this[_0x2b1058(0x401)](_0xaf651c);this[_0x2b1058(0x48d)]['next'](_0x555b27),this[_0x2b1058(0x2d9)][_0x2b1058(0x30a)](_0xaf651c,_0x555b27);}),this[_0x392f03(0x2c7)][_0x392f03(0x1c8)](n[_0x392f03(0x212)][_0x392f03(0x194)])[_0x392f03(0x1fa)]((0x0,i[_0x392f03(0x38d)])(this[_0x392f03(0x273)]))[_0x392f03(0x2b4)](async _0x243997=>{const _0x85f48c=_0x392f03;let _0x1ebf53=_0x243997[_0x85f48c(0x1e4)][_0x85f48c(0x261)](),_0x4078e7=await this[_0x85f48c(0x367)](_0x1ebf53);this[_0x85f48c(0x48d)][_0x85f48c(0x1f5)](_0x4078e7),this['_entities']['set'](_0x1ebf53,_0x4078e7);}),(0x0,i['merge'])(this['_univerInstanceService'][_0x392f03(0x1f9)](n['UniverInstanceType'][_0x392f03(0x304)]),this['_univerInstanceService'][_0x392f03(0x1f9)](n[_0x392f03(0x212)][_0x392f03(0x370)]),this[_0x392f03(0x2c7)][_0x392f03(0x1f9)](n[_0x392f03(0x212)][_0x392f03(0x452)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](n[_0x392f03(0x212)][_0x392f03(0x194)]))[_0x392f03(0x1fa)]((0x0,i[_0x392f03(0x38d)])(this['dispose$']))[_0x392f03(0x2b4)](_0x5b05ad=>{const _0x5da541=_0x392f03;let _0x2fa43c=_0x5b05ad[_0x5da541(0x261)](),_0x22dc23=this[_0x5da541(0x2d9)]['get'](_0x2fa43c);_0x22dc23&&(_0x22dc23[_0x5da541(0x376)](),this['_entities'][_0x5da541(0x37f)](_0x2fa43c));});}async['_startSheetCollabCursor'](_0x49f39a){const _0x2cdb3d=_0x32171b;let _0x458dba=await this[_0x2cdb3d(0x387)][_0x2cdb3d(0x2bb)](_0x49f39a),_0x30de64=this[_0x2cdb3d(0x2e6)][_0x2cdb3d(0x361)](N,_0x49f39a,_0x458dba);return _0x30de64['init'](),_0x30de64;}async[_0x32171b(0x1ac)](_0x30e5bf){const _0x666653=_0x32171b;let _0x210f89=await this['_collabSessionService'][_0x666653(0x2bb)](_0x30e5bf),_0x466434=this[_0x666653(0x2e6)][_0x666653(0x361)](M,_0x30e5bf,_0x210f89);return _0x466434[_0x666653(0x302)](),_0x466434;}async[_0x32171b(0x401)](_0x27ecc6){const _0x3bf132=_0x32171b;let _0x47529e=await this[_0x3bf132(0x387)][_0x3bf132(0x2bb)](_0x27ecc6),_0x328c3f=this[_0x3bf132(0x2e6)][_0x3bf132(0x361)](P,_0x27ecc6,_0x47529e);return _0x328c3f[_0x3bf132(0x302)](),_0x328c3f;}async[_0x32171b(0x367)](_0x1c4c0f){const _0xd7c30=_0x32171b;let _0x32208a=await this['_collabSessionService'][_0xd7c30(0x2bb)](_0x1c4c0f),_0x1a5c66=this[_0xd7c30(0x2e6)][_0xd7c30(0x361)](A,_0x1c4c0f,_0x32208a);return _0x1a5c66[_0xd7c30(0x302)](),_0x1a5c66;}};F=C([S(0x0,n[_0x32171b(0x289)]),S(0x1,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x25b)])),S(0x2,(0x0,n['Inject'])(t[_0x32171b(0x311)]))],F);let I=class extends n[_0x32171b(0x467)]{constructor(_0x50f566,_0x51b0d1,_0xa633ff){const _0xc91454=_0x32171b;super(),this[_0xc91454(0x427)]=_0x50f566,this[_0xc91454(0x38b)]=_0x51b0d1,this[_0xc91454(0x3b0)]=_0xa633ff,x(this,_0xc91454(0x33e),new Set()),x(this,_0xc91454(0x280),!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,_0xc91454(0x326),new Map()),this['_init']();}['dispose'](){const _0x13a04a=_0x32171b;this[_0x13a04a(0x2b3)](),super[_0x13a04a(0x376)]();}[_0x32171b(0x35c)](){const _0x101c69=_0x32171b;let _0x4689b8=this[_0x101c69(0x38b)]['getCollabCursors$'](this[_0x101c69(0x427)][_0x101c69(0x3fc)]);this[_0x101c69(0x3ec)]((0x0,n[_0x101c69(0x216)])((0x0,i[_0x101c69(0x3c1)])([_0x4689b8,this[_0x101c69(0x427)][_0x101c69(0x1e4)][_0x101c69(0x28e)],this[_0x101c69(0x3b0)][_0x101c69(0x1fc)]])[_0x101c69(0x1fa)]((0x0,i[_0x101c69(0x38d)])(this[_0x101c69(0x273)]))['subscribe'](([_0x1bc4dc])=>{const _0x4cac5d=_0x101c69;let _0x1ebcee=this['_context']['unit'][_0x4cac5d(0x39e)](),_0x5876a2=new Map();_0x1bc4dc[_0x4cac5d(0x19f)]((_0x309cd9,_0x481e77)=>{const _0x38f0ac=_0x4cac5d;_0x309cd9['subUnitId']===_0x1ebcee&&_0x5876a2[_0x38f0ac(0x30a)](_0x481e77,{..._0x309cd9,'color':this[_0x38f0ac(0x3b0)]['getColorFromTheme'](_0x309cd9[_0x38f0ac(0x19a)])});}),this['_latestCursors']=_0x5876a2,this['_scheduleRender']();})));let _0x1d78a1=this[_0x101c69(0x427)][_0x101c69(0x3e6)];this[_0x101c69(0x3ec)]((0x0,n[_0x101c69(0x216)])(_0x1d78a1[_0x101c69(0x1ea)][_0x101c69(0x1fa)]((0x0,i[_0x101c69(0x38d)])(this[_0x101c69(0x273)]))[_0x101c69(0x2b4)](()=>{const _0x53752a=_0x101c69;this[_0x53752a(0x419)]||this['_scheduleRender']();})));}['_scheduleRender'](){const _0x231b30=_0x32171b;this[_0x231b30(0x280)]||(this[_0x231b30(0x280)]=!0x0,Promise[_0x231b30(0x1ee)]()[_0x231b30(0x22f)](()=>{const _0x198499=_0x231b30;this[_0x198499(0x280)]=!0x1,this['_render']();}));}[_0x32171b(0x42f)](){const _0x33488e=_0x32171b;this[_0x33488e(0x2b3)]();let _0x155088=this[_0x33488e(0x427)][_0x33488e(0x1e4)]['getActivePageId'](),_0x1102ad=[];if(this[_0x33488e(0x326)][_0x33488e(0x19f)]((_0x3fb0d2,_0xf09216)=>{const _0x7e2b91=_0x33488e;_0x3fb0d2[_0x7e2b91(0x3d9)]===_0x155088&&_0x3fb0d2[_0x7e2b91(0x488)][_0x7e2b91(0x19f)](_0x26d837=>{const _0x291069=_0x7e2b91;let _0x225bac=(0x0,e[_0x291069(0x213)])(_0x3fb0d2[_0x291069(0x3fc)],_0x26d837),_0xf9bdce=this['_getSceneObjectByKey'](_0x225bac);if(!_0xf9bdce)return;let _0x48eae8=this[_0x291069(0x24d)](_0xf9bdce);_0x1102ad[_0x291069(0x18d)](new pe(_0x291069(0x331)+_0xf09216+'-'+_0x26d837,{..._0x3fb0d2,'left':_0x48eae8[_0x291069(0x41e)],'top':_0x48eae8[_0x291069(0x3b4)],'width':_0x48eae8[_0x291069(0x33c)],'height':_0x48eae8[_0x291069(0x35a)],'angle':_0xf9bdce[_0x291069(0x3e0)],'evented':!0x1,'zIndex':O}));});}),_0x1102ad[_0x33488e(0x1f1)]===0x0){this[_0x33488e(0x427)][_0x33488e(0x3e6)]['makeDirty'](!0x0);return;}this[_0x33488e(0x419)]=!0x0,this[_0x33488e(0x427)]['scene'][_0x33488e(0x332)](_0x1102ad,O),this['_isApplyingOverlays']=!0x1,this[_0x33488e(0x33e)]=new Set(_0x1102ad),this['_context']['scene'][_0x33488e(0x469)](!0x0);}[_0x32171b(0x2b3)](){const _0x67abd1=_0x32171b;let _0x3a0a85=Array[_0x67abd1(0x461)](this[_0x67abd1(0x33e)]);if(_0x3a0a85[_0x67abd1(0x1f1)]===0x0)return;let _0x4943a4=this[_0x67abd1(0x427)][_0x67abd1(0x3e6)];_0x67abd1(0x2c2)in _0x4943a4&&typeof _0x4943a4[_0x67abd1(0x2c2)]==_0x67abd1(0x2f0)?_0x4943a4[_0x67abd1(0x2c2)](_0x3a0a85):_0x3a0a85[_0x67abd1(0x19f)](_0x2fd736=>{const _0x24b904=_0x67abd1;_0x24b904(0x2a5)in _0x4943a4&&typeof _0x4943a4[_0x24b904(0x2a5)]==_0x24b904(0x2f0)?_0x4943a4[_0x24b904(0x2a5)](_0x2fd736):_0x2fd736[_0x24b904(0x376)]();}),this['_cursors']['clear'](),_0x4943a4[_0x67abd1(0x469)](!0x0);}[_0x32171b(0x296)](_0xeb5361){const _0x24d789=_0x32171b;var _0x50fe47,_0x5eb651,_0x5e2f12;let _0x270246=this[_0x24d789(0x427)][_0x24d789(0x3e6)];return(_0x50fe47=(_0x5eb651=(_0x5e2f12=_0x270246['getObjectIncludeInGroup'])==null?void 0x0:_0x5e2f12[_0x24d789(0x425)](_0x270246,_0xeb5361))==null?_0x270246['getObject'](_0xeb5361):_0x5eb651)==null?null:_0x50fe47;}[_0x32171b(0x24d)](_0x4518f9){const _0x25ac9e=_0x32171b;var _0x52a87b,_0x21a7b6;let _0x5f2d4c=_0x4518f9;return(_0x52a87b=(_0x21a7b6=_0x5f2d4c[_0x25ac9e(0x2a0)])==null?void 0x0:_0x21a7b6[_0x25ac9e(0x425)](_0x5f2d4c))==null?{'left':_0x4518f9[_0x25ac9e(0x41e)],'top':_0x4518f9['top'],'width':_0x4518f9[_0x25ac9e(0x33c)],'height':_0x4518f9[_0x25ac9e(0x35a)]}:_0x52a87b;}};I=C([S(0x1,(0x0,n[_0x32171b(0x329)])(F)),S(0x2,(0x0,n['Inject'])(n[_0x32171b(0x405)]))],I);const L=_0x32171b(0x3cc);var be=class{constructor(_0x2acad9,_0x59f3ee,_0x2c1363,_0x4bf5b7){const _0x354e55=_0x32171b;this[_0x354e55(0x382)]=_0x2acad9,this[_0x354e55(0x272)]=_0x59f3ee,this[_0x354e55(0x306)]=_0x2c1363,this[_0x354e55(0x398)]=_0x4bf5b7,x(this,_0x354e55(0x3c0),[]),x(this,'_anchor',null),x(this,_0x354e55(0x373),null),x(this,_0x354e55(0x327),null),x(this,'_hideTimer',null),x(this,_0x354e55(0x3bc),null),this[_0x354e55(0x42f)]();}set[_0x32171b(0x35e)](_0x554de3){const _0x2fefa6=_0x32171b;_0x554de3?(this[_0x2fefa6(0x327)]&&this['_anchorDot'][_0x2fefa6(0x3c9)](),this[_0x2fefa6(0x373)]&&this[_0x2fefa6(0x373)][_0x2fefa6(0x1d1)]()):(this[_0x2fefa6(0x327)]&&this[_0x2fefa6(0x327)][_0x2fefa6(0x1d1)](),this[_0x2fefa6(0x373)]&&this['_textBubble']['hide']());}['dispose'](){const _0x37f540=_0x32171b;for(let _0x196bb6 of this[_0x37f540(0x3c0)])_0x196bb6[_0x37f540(0x376)]();this[_0x37f540(0x373)]&&this['_textBubble'][_0x37f540(0x376)](),this[_0x37f540(0x327)]&&this['_anchorDot'][_0x37f540(0x376)](),this[_0x37f540(0x1e1)]&&this[_0x37f540(0x1e1)]['dispose'](),this[_0x37f540(0x3bc)]&&this[_0x37f540(0x3bc)]();}[_0x32171b(0x42f)](){const _0x508357=_0x32171b;let {_docSkeleton:_0x3cfd8b,_document:_0x1e220d}=this,{color:_0x5c3bfe,name:_0x4df4f0,ranges:_0x2671cf}=this['_cursor'],_0x5c75be=_0x1e220d['getOffsetConfig'](),{docsLeft:_0x1b4ae3,docsTop:_0x139a16}=_0x5c75be,_0x19cc00=new f[(_0x508357(0x324))](_0x5c75be,_0x3cfd8b);for(let {startOffset:_0x2cce2e,endOffset:_0x45603d,rangeType:_0x160e8e,segmentId:_0x4af7d4,segmentPage:_0x1fc005,collapsed:_0xed6beb,isActive:_0x30fff4}of _0x2671cf){let _0x4e2493=_0x3cfd8b[_0x508357(0x2ff)](_0x2cce2e,!0x0,_0x4af7d4,_0x1fc005),_0x4139ee=_0x3cfd8b[_0x508357(0x2ff)](_0x45603d,!0x0,_0x4af7d4,_0x1fc005);if(_0x4139ee==null&&(_0x4139ee=_0x3cfd8b['findNodePositionByCharIndex'](_0x45603d-0x1,!0x1,_0x4af7d4,_0x1fc005)),_0x30fff4){let {contentBoxPointGroup:_0x264a04}=_0x19cc00['getRangePointData'](_0x4139ee,_0x4139ee);if(_0x264a04['length']===0x0)continue;this['_drawAnchor'](_0x5c3bfe,_0x264a04,_0x1b4ae3,_0x139a16,_0x4df4f0),this['_eventUnsubscribe']=this[_0x508357(0x344)]();}if(_0x4e2493&&_0x4139ee){if(_0x160e8e===n['DOC_RANGE_TYPE'][_0x508357(0x21e)]){var _0x33e50b;let {pointGroup:_0x285715}=(_0x33e50b=new f[(_0x508357(0x447))](_0x5c75be,_0x3cfd8b)[_0x508357(0x354)](_0x4e2493,_0x4139ee))==null?{}:_0x33e50b;if(_0x285715==null||_0x285715[_0x508357(0x1f1)]===0x0)continue;this['_drawRectRange'](_0x5c3bfe,_0x285715,_0x1b4ae3,_0x139a16);}else{if(!_0xed6beb){let {borderBoxPointGroup:_0x131233}=_0x19cc00[_0x508357(0x354)](_0x4e2493,_0x4139ee);if(_0x131233[_0x508357(0x1f1)]===0x0)continue;this[_0x508357(0x34d)](_0x5c3bfe,_0x131233,_0x1b4ae3,_0x139a16);}}}}}['_drawAnchor'](_0x4bb73c,_0xff6c4,_0x28dd1f,_0x3c5b44,_0x484407){const _0x24cdae=_0x32171b;let {left:_0x58dddc,top:_0x290a01,height:_0x5d2534}=this[_0x24cdae(0x30b)](_0xff6c4),_0x408d08=1.5/this[_0x24cdae(0x247)](),_0x13dd86=new u[(_0x24cdae(0x305))](L+(0x0,n['generateRandomId'])(0x6),{'left':_0x58dddc+_0x28dd1f-_0x408d08,'top':_0x290a01+_0x3c5b44,'height':_0x5d2534,'width':1.5,'fill':_0x4bb73c||(0x0,u['getColor'])(n[_0x24cdae(0x435)][_0x24cdae(0x24c)],0x0),'strokeWidth':_0x408d08,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x24cdae(0x1e1)]=_0x13dd86,this[_0x24cdae(0x272)][_0x24cdae(0x264)](_0x13dd86,f[_0x24cdae(0x1f6)]);let _0x20fcfd=new u[(_0x24cdae(0x305))](L+(0x0,n[_0x24cdae(0x470)])(0x6),{'left':_0x58dddc+_0x28dd1f-_0x408d08,'top':_0x290a01+_0x3c5b44-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x4bb73c||(0x0,u[_0x24cdae(0x246)])(n[_0x24cdae(0x435)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x4bb73c||(0x0,u[_0x24cdae(0x246)])(n[_0x24cdae(0x435)][_0x24cdae(0x24c)],0x0),'evented':!0x1});this[_0x24cdae(0x327)]=_0x20fcfd,this['_scene'][_0x24cdae(0x264)](_0x20fcfd,f[_0x24cdae(0x1f6)]);let _0xf7b0c7=new D(L+(0x0,n[_0x24cdae(0x470)])(0x6),{'left':_0x58dddc+_0x28dd1f-_0x408d08,'top':_0x290a01+_0x3c5b44-0x14,'text':_0x484407,'color':_0x4bb73c});this['_textBubble']=_0xf7b0c7,this[_0x24cdae(0x272)][_0x24cdae(0x264)](_0xf7b0c7,f[_0x24cdae(0x1f6)]),this[_0x24cdae(0x35e)]=!0x1;}[_0x32171b(0x344)](){const _0xb9c20=_0x32171b;let _0x1ad28a=this[_0xb9c20(0x1e1)][_0xb9c20(0x3c2)][_0xb9c20(0x226)](()=>{this['_hover']=!0x0;}),_0x5d948d=this['_anchor'][_0xb9c20(0x218)][_0xb9c20(0x226)](()=>{const _0x13589f=_0xb9c20;this[_0x13589f(0x3e1)]&&clearTimeout(this[_0x13589f(0x3e1)]),this[_0x13589f(0x3e1)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0xc627d=_0xb9c20;_0x1ad28a['unsubscribe'](),_0x5d948d[_0xc627d(0x275)]();};}[_0x32171b(0x34d)](_0xd55b1e,_0x27daae,_0x8c7f69,_0x1672ff){const _0x566f57=_0x32171b;let _0x15a2d5=0.2,_0x4a419d=new n[(_0x566f57(0x30f))](_0xd55b1e)[_0x566f57(0x3ba)](_0x15a2d5)[_0x566f57(0x27c)](),_0x263229=new u[(_0x566f57(0x1b4))](_0x566f57(0x479)+(0x0,n[_0x566f57(0x470)])(0x6),{'pointsGroup':_0x27daae,'fill':_0x4a419d||(0x0,u[_0x566f57(0x246)])(n[_0x566f57(0x435)][_0x566f57(0x24c)],_0x15a2d5),'left':_0x8c7f69,'top':_0x1672ff,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x566f57(0x3c0)][_0x566f57(0x18d)](_0x263229),this['_scene'][_0x566f57(0x264)](_0x263229,f['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x2449fc,_0x3099bf,_0x6b5a3,_0x58cb6f){const _0xc82e9b=_0x32171b;let _0x1a1748=0.2,_0x4493fc=new n[(_0xc82e9b(0x30f))](_0x2449fc)[_0xc82e9b(0x3ba)](_0x1a1748)[_0xc82e9b(0x27c)](),_0x15dc33=new u[(_0xc82e9b(0x1b4))](_0xc82e9b(0x2ae)+(0x0,n[_0xc82e9b(0x470)])(0x6),{'pointsGroup':_0x3099bf,'fill':_0x4493fc||(0x0,u['getColor'])(n[_0xc82e9b(0x435)]['black'],_0x1a1748),'left':_0x6b5a3,'top':_0x58cb6f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xc82e9b(0x3c0)][_0xc82e9b(0x18d)](_0x15dc33),this[_0xc82e9b(0x272)][_0xc82e9b(0x264)](_0x15dc33,f[_0xc82e9b(0x1f6)]);}['_getAnchorBounding'](_0x167945){let _0x5609d4=_0x167945[0x0],_0x1c3489=_0x5609d4[0x0],_0x1db4d6=_0x5609d4[0x2],{x:_0x2a28ee,y:_0x12a2cf}=_0x1c3489,{x:_0x117585,y:_0x2dcca4}=_0x1db4d6;return{'left':_0x2a28ee,'top':_0x12a2cf,'width':_0x117585-_0x2a28ee,'height':_0x2dcca4-_0x12a2cf};}[_0x32171b(0x247)](){const _0x1a0041=_0x32171b;let {scaleX:_0x37ed5b,scaleY:_0x1d373f}=this[_0x1a0041(0x272)][_0x1a0041(0x3c3)]();return Math[_0x1a0041(0x3c5)](_0x37ed5b,_0x1d373f);}};let R=class extends n['RxDisposable']{constructor(_0x4b3baf,_0x206269,_0x1178f5,_0x15b3d4,_0x1c099f){const _0x4d543e=_0x32171b;super(),this[_0x4d543e(0x427)]=_0x4b3baf,this[_0x4d543e(0x47f)]=_0x206269,this['_collabCursorController']=_0x1178f5,this['_commandService']=_0x15b3d4,this[_0x4d543e(0x3b0)]=_0x1c099f,x(this,_0x4d543e(0x1cf),[]),x(this,_0x4d543e(0x33e),[]),this[_0x4d543e(0x35c)]();}[_0x32171b(0x35c)](){const _0x1b37e9=_0x32171b;let _0x223b67=this[_0x1b37e9(0x427)][_0x1b37e9(0x3fc)],_0x5f238e=this[_0x1b37e9(0x47f)];this[_0x1b37e9(0x3ec)]((0x0,i[_0x1b37e9(0x3c1)])([this['_collabCursorController'][_0x1b37e9(0x399)](_0x223b67),this[_0x1b37e9(0x3b0)][_0x1b37e9(0x1fc)]])[_0x1b37e9(0x1fa)]((0x0,a['map'])(([_0x10888d,_0x1a610f])=>({'skeleton':_0x5f238e['getSkeleton'](),'cursors':[..._0x10888d['values']()][_0x1b37e9(0x32c)](_0x1b613a=>({..._0x1b613a,'color':this['_themeService'][_0x1b37e9(0x1ca)](_0x1b613a[_0x1b37e9(0x19a)])}))})))['subscribe'](_0x106d56=>{const _0x17caba=_0x1b37e9;if(this[_0x17caba(0x2b3)](),_0x106d56){let {skeleton:_0x2dbb00,cursors:_0x90ef00}=_0x106d56;this['_updateCollabCursors'](_0x2dbb00,_0x90ef00);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x32171b(0x3cb)](_0x5e651e,_0x4161a2){const _0x521bfa=_0x32171b;let {scene:_0x55d91f,mainComponent:_0x37cccb}=this[_0x521bfa(0x427)],_0x58843f=_0x4161a2[_0x521bfa(0x2d4)](_0x93d93f=>new be(_0x93d93f,_0x55d91f,_0x5e651e,_0x37cccb));this[_0x521bfa(0x1cf)]=_0x58843f,this['_cursors']=_0x4161a2;}[_0x32171b(0x241)](){const _0x4ee823=_0x32171b;this[_0x4ee823(0x2b3)]();let {scene:_0x2eb311,mainComponent:_0x556272}=this[_0x4ee823(0x427)],_0x2feaea=this['_docSkeletonManagerService'][_0x4ee823(0x33f)](),_0x325c32=this['_cursors'][_0x4ee823(0x2d4)](_0x31702a=>new be(_0x31702a,_0x2eb311,_0x2feaea,_0x556272));this[_0x4ee823(0x1cf)]=_0x325c32;}['_removeCollabCursors'](){const _0x2dc1b1=_0x32171b;this['_cursorShapes']['forEach'](_0x95f09f=>_0x95f09f[_0x2dc1b1(0x376)]()),this[_0x2dc1b1(0x1cf)]=[];}[_0x32171b(0x266)](){const _0x5bf764=_0x32171b;let _0x23aa25=[f['SetDocZoomRatioOperation']['id']];this[_0x5bf764(0x3ec)](this[_0x5bf764(0x465)]['onCommandExecuted'](_0x3d0b9c=>{const _0x27a76c=_0x5bf764;_0x23aa25[_0x27a76c(0x32b)](_0x3d0b9c['id'])&&_0x3d0b9c[_0x27a76c(0x219)][_0x27a76c(0x3fc)]===this[_0x27a76c(0x427)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x32171b(0x431)](){const _0x481e36=_0x32171b;this[_0x481e36(0x3ec)]((0x0,n[_0x481e36(0x29d)])(this['_context']['engine'][_0x481e36(0x34f)])['pipe']((0x0,a[_0x481e36(0x378)])(_0x3ab02a=>_0x3ab02a[_0x481e36(0x1ef)]===u[_0x481e36(0x177)][_0x481e36(0x279)]),(0x0,a[_0x481e36(0x1a8)])(0x10))['subscribe'](()=>{const _0x653cb3=_0x481e36;this[_0x653cb3(0x241)]();}));}};R=C([S(0x1,(0x0,n[_0x32171b(0x329)])(m['DocSkeletonManagerService'])),S(0x2,(0x0,n[_0x32171b(0x329)])(F)),S(0x3,n[_0x32171b(0x2d2)]),S(0x4,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x405)]))],R);var xe=class extends u['Shape']{constructor(_0x2106c7,_0x263818){const _0x528456=_0x32171b;if(super(_0x2106c7,_0x263818),x(this,_0x528456(0x185),void 0x0),x(this,_0x528456(0x475),!0x1),x(this,_0x528456(0x3fa),void 0x0),x(this,_0x528456(0x1eb),''),x(this,_0x528456(0x3d3),'top'),x(this,_0x528456(0x1df),void 0x0),x(this,_0x528456(0x44a),void 0x0),x(this,'_highlight',void 0x0),x(this,_0x528456(0x237),0x4),x(this,'_blinkTimer',void 0x0),x(this,_0x528456(0x1bc),void 0x0),x(this,'_isBlinkVisible',!0x0),x(this,_0x528456(0x457),0x0),x(this,_0x528456(0x2dc),_0x528456(0x29f)),_0x263818){var _0x58d869;if(this[_0x528456(0x1c6)](_0x263818),_0x263818[_0x528456(0x456)]&&((_0x58d869=_0x263818[_0x528456(0x18e)])==null?this[_0x528456(0x237)]:_0x58d869)){var _0x177bec;this['_startBlinking']((_0x177bec=_0x263818[_0x528456(0x18e)])==null?this[_0x528456(0x237)]:_0x177bec);}}this[_0x528456(0x3c2)][_0x528456(0x226)](()=>this[_0x528456(0x1c6)]({'hovered':!0x0})),this['onPointerLeave$'][_0x528456(0x226)](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x32171b(0x234)](_0x5913da){this['_offsetY']=_0x5913da;}[_0x32171b(0x1c6)](_0x1f5dea){const _0x49ef0c=_0x32171b;var _0x5d2998,_0x29ed40,_0x1d5c52,_0x5abbdf,_0x1baf9f,_0x46025b,_0x934339,_0xd4b412;this[_0x49ef0c(0x185)]=(_0x5d2998=_0x1f5dea[_0x49ef0c(0x19a)])==null?this['_color']:_0x5d2998,this['_hovered']=(_0x29ed40=_0x1f5dea['hovered'])==null?this[_0x49ef0c(0x475)]:_0x29ed40,this['_range']=(_0x1d5c52=_0x1f5dea[_0x49ef0c(0x3b6)])==null?this['_range']:_0x1d5c52,this[_0x49ef0c(0x1eb)]=(_0x5abbdf=_0x1f5dea[_0x49ef0c(0x1c3)])==null?this['_name']:_0x5abbdf,this[_0x49ef0c(0x3d3)]=(_0x1baf9f=_0x1f5dea[_0x49ef0c(0x453)])==null?this[_0x49ef0c(0x3d3)]:_0x1baf9f,this[_0x49ef0c(0x1df)]=(_0x46025b=_0x1f5dea[_0x49ef0c(0x228)])==null?this[_0x49ef0c(0x1df)]:_0x46025b,this['_showText']=(_0x934339=_0x1f5dea[_0x49ef0c(0x1e8)])==null?this['_showText']:_0x934339,this[_0x49ef0c(0x2dc)]=(_0xd4b412=_0x1f5dea[_0x49ef0c(0x2c0)])==null?this['_labelHorizontalPosition']:_0xd4b412,_0x1f5dea['highlightSecond']!==void 0x0&&(this[_0x49ef0c(0x237)]=_0x1f5dea[_0x49ef0c(0x18e)]),_0x1f5dea['highlight']!==void 0x0&&(this[_0x49ef0c(0x42a)]=_0x1f5dea[_0x49ef0c(0x456)]),_0x1f5dea[_0x49ef0c(0x320)]!==void 0x0&&(this[_0x49ef0c(0x457)]=_0x1f5dea['offsetY']),this[_0x49ef0c(0x434)]({'width':_0x1f5dea[_0x49ef0c(0x33c)],'height':_0x1f5dea['height']});}['onMouseMove'](_0x173e62){const _0xf2f9e1=_0x32171b;let {row:_0x1eacc8,column:_0x3490d8}=_0x173e62;if(_0x1eacc8>=this[_0xf2f9e1(0x3fa)][_0xf2f9e1(0x358)]&&_0x1eacc8<=this[_0xf2f9e1(0x3fa)][_0xf2f9e1(0x26f)]&&_0x3490d8>=this[_0xf2f9e1(0x3fa)][_0xf2f9e1(0x22a)]&&_0x3490d8<=this[_0xf2f9e1(0x3fa)][_0xf2f9e1(0x41c)]){this[_0xf2f9e1(0x1c6)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x28b2e3){const _0xd58071=_0x32171b;this[_0xd58071(0x252)](),this['_isBlinkVisible']=!0x0,this[_0xd58071(0x1bc)]=window['setInterval'](()=>{const _0x1a3d81=_0xd58071;this[_0x1a3d81(0x178)]=!this[_0x1a3d81(0x178)],this[_0x1a3d81(0x469)](!0x0);},0x1f4),this[_0xd58071(0x42c)]=window['setTimeout'](()=>{const _0x5d1f67=_0xd58071;this[_0x5d1f67(0x252)](),this[_0x5d1f67(0x178)]=!0x0,this[_0x5d1f67(0x469)](!0x0);},_0x28b2e3*0x3e8);}[_0x32171b(0x252)](){const _0x598e03=_0x32171b;this[_0x598e03(0x1bc)]&&(window['clearInterval'](this[_0x598e03(0x1bc)]),this[_0x598e03(0x1bc)]=void 0x0),this[_0x598e03(0x42c)]&&(window[_0x598e03(0x393)](this['_blinkTimer']),this[_0x598e03(0x42c)]=void 0x0);}[_0x32171b(0x3a3)](_0x4d4ee1){return!0x1;}[_0x32171b(0x376)](){const _0x20f649=_0x32171b;this[_0x20f649(0x252)](),super['dispose']();}[_0x32171b(0x2aa)](_0x4abd0d){const _0x23cffd=_0x32171b;let _0x4edf43=this[_0x23cffd(0x185)],_0x582111=this[_0x23cffd(0x1df)];if(this['_highlight']&&!this[_0x23cffd(0x178)]&&(_0x4edf43=this[_0x23cffd(0x20d)](this[_0x23cffd(0x185)]),_0x582111=this[_0x23cffd(0x1df)]?this[_0x23cffd(0x20d)](this[_0x23cffd(0x1df)]):void 0x0),u['Rect']['drawWith'](_0x4abd0d,{'width':this[_0x23cffd(0x33c)],'height':this[_0x23cffd(0x35a)],'strokeWidth':this[_0x23cffd(0x303)]||1.5,'stroke':_0x4edf43,'evented':!0x1,'fill':_0x582111}),this[_0x23cffd(0x475)]||this['_showText']){var _0x394e4c;_0x4abd0d[_0x23cffd(0x337)]();let _0x56456f=this[_0x23cffd(0x2dc)]===_0x23cffd(0x41e)?-de(_0x4abd0d,this['_name']):this[_0x23cffd(0x33c)];_0x4abd0d[_0x23cffd(0x2dd)](0x1,0x0,0x0,0x1,_0x56456f,(this[_0x23cffd(0x3d3)]===_0x23cffd(0x222)?0x0:-0x14)+((_0x394e4c=this[_0x23cffd(0x457)])==null?0x0:_0x394e4c)),D[_0x23cffd(0x47e)](_0x4abd0d,{'text':this[_0x23cffd(0x1eb)],'color':_0x4edf43}),_0x4abd0d[_0x23cffd(0x416)]();}}[_0x32171b(0x20d)](_0x422ad0){const _0x50d6b7=_0x32171b;return _0x422ad0[_0x50d6b7(0x43d)]('#')?_0x50d6b7(0x44e)+Number[_0x50d6b7(0x1b7)](_0x422ad0[_0x50d6b7(0x383)](0x1,0x3),0x10)+',\x20'+Number[_0x50d6b7(0x1b7)](_0x422ad0['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x50d6b7(0x1b7)](_0x422ad0['slice'](0x5,0x7),0x10)+_0x50d6b7(0x1e3):_0x422ad0[_0x50d6b7(0x43d)](_0x50d6b7(0x43a))?_0x422ad0['replace'](/[\d.]+\)$/g,_0x50d6b7(0x1b1)):_0x422ad0['startsWith']('rgb')?_0x422ad0[_0x50d6b7(0x1af)](_0x50d6b7(0x48f),'rgba')[_0x50d6b7(0x1af)](')',',\x200.2)'):_0x422ad0;}};let z=class extends n[_0x32171b(0x467)]{constructor(_0x1e0838,_0x294424,_0x5ce1af,_0x59cdbe){const _0x49507e=_0x32171b;super(),this[_0x49507e(0x427)]=_0x1e0838,this['_sheetSkeletonManagerService']=_0x294424,this[_0x49507e(0x38b)]=_0x5ce1af,this[_0x49507e(0x3b0)]=_0x59cdbe,x(this,'_cursors',new Set()),x(this,_0x49507e(0x1ff),null),x(this,_0x49507e(0x391),null),this['_init']();}['_init'](){const _0x497833=_0x32171b;this[_0x497833(0x449)][_0x497833(0x2f3)]['pipe']((0x0,a['takeUntil'])(this[_0x497833(0x273)]),(0x0,a[_0x497833(0x374)])(_0x4afdb6=>{const _0x57e230=_0x497833;if(_0x4afdb6){let _0x2b8692=_0x4afdb6[_0x57e230(0x34a)];return(0x0,i[_0x57e230(0x3c1)])(this[_0x57e230(0x38b)][_0x57e230(0x399)](this[_0x57e230(0x427)][_0x57e230(0x3fc)]),this['_themeService']['currentTheme$'])[_0x57e230(0x1fa)]((0x0,a[_0x57e230(0x2d4)])(([_0x5898c8,_0xa7ccf4])=>{const _0x2ca684=_0x57e230;let _0x35d35f=new Map();return _0x5898c8[_0x2ca684(0x19f)]((_0xd61065,_0x3d8fae)=>{const _0x18c2d4=_0x2ca684;if(_0xd61065[_0x18c2d4(0x1fb)]===_0x2b8692){let _0x5f4150={..._0xd61065};_0x5f4150[_0x18c2d4(0x19a)]=this[_0x18c2d4(0x3b0)]['getColorFromTheme'](_0xd61065['color']),_0x35d35f[_0x18c2d4(0x30a)](_0x3d8fae,_0x5f4150);}}),{'skeleton':_0x4afdb6,'cursors':_0x35d35f};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))[_0x497833(0x2b4)](({skeleton:_0x9d8dce,cursors:_0x466174})=>{const _0x4080ce=_0x497833;this[_0x4080ce(0x2b3)](),_0x9d8dce&&this[_0x4080ce(0x3cb)](_0x9d8dce,_0x466174);}),this['disposeWithMe'](this[_0x497833(0x449)][_0x497833(0x2f3)][_0x497833(0x1fa)]((0x0,a['takeUntil'])(this[_0x497833(0x273)]))[_0x497833(0x2b4)](_0x56472a=>{const _0x44eabd=_0x497833;var _0x1d4de4;if(_0x56472a==null)return;(_0x1d4de4=this[_0x44eabd(0x391)])==null||_0x1d4de4[_0x44eabd(0x275)](),this[_0x44eabd(0x391)]=null;let {skeleton:_0x2e128c}=_0x56472a,{scene:_0x41d9ea}=this[_0x44eabd(0x427)];this[_0x44eabd(0x391)]=_0x41d9ea[_0x44eabd(0x22b)][_0x44eabd(0x226)]((0x0,n[_0x44eabd(0x442)])(_0xa193f2=>{const _0x402c6e=_0x44eabd;var _0x2959fb,_0x3985b9;let {offsetX:_0x47e858,offsetY:_0x63ecba}=_0xa193f2,{x:_0x26c391,y:_0x1fd9e5}=_0x41d9ea[_0x402c6e(0x476)](u[_0x402c6e(0x3ad)]['FromArray']([_0x47e858,_0x63ecba])),{scaleX:_0x1ba71c,scaleY:_0x576e9b}=_0x41d9ea[_0x402c6e(0x3c3)](),_0x334bb6=_0x41d9ea['getViewport'](u[_0x402c6e(0x39d)][_0x402c6e(0x1ba)]),_0x22727e=_0x41d9ea[_0x402c6e(0x478)](u[_0x402c6e(0x3ad)]['FromArray']([_0x26c391,_0x1fd9e5]),_0x334bb6),_0x37bbc7=_0x2e128c[_0x402c6e(0x446)](_0x47e858,_0x63ecba,_0x1ba71c,_0x576e9b,_0x22727e);((_0x2959fb=this[_0x402c6e(0x1ff)])==null?void 0x0:_0x2959fb[_0x402c6e(0x22e)])===_0x37bbc7['column']&&((_0x3985b9=this[_0x402c6e(0x1ff)])==null?void 0x0:_0x3985b9[_0x402c6e(0x27d)])===_0x37bbc7[_0x402c6e(0x27d)]||this[_0x402c6e(0x33e)][_0x402c6e(0x19f)](_0x3aecc9=>{const _0xde6849=_0x402c6e;_0x3aecc9[_0xde6849(0x29b)](_0x37bbc7);});},0x64));})),this['disposeWithMe']((0x0,n[_0x497833(0x216)])(()=>{const _0x1c0263=_0x497833;var _0xc8ac9f;(_0xc8ac9f=this[_0x1c0263(0x391)])==null||_0xc8ac9f['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}[_0x32171b(0x3cb)](_0x358b42,_0x3ef88f){const _0x4795c5=_0x32171b;let _0x157082=this[_0x4795c5(0x449)][_0x4795c5(0x183)]();if(!_0x157082)return;let _0x57bbfa=this[_0x4795c5(0x256)]();if(!_0x57bbfa)return;this['_cursors'][_0x4795c5(0x19f)](_0x5520d2=>{const _0x2bf329=_0x4795c5;_0x5520d2[_0x2bf329(0x469)]();});let {scene:_0x2a31b7}=_0x57bbfa,_0xa1b877=Se(Array[_0x4795c5(0x461)](_0x3ef88f[_0x4795c5(0x3c7)]()))[_0x4795c5(0x2d4)](_0x230886=>{const _0x11d999=_0x4795c5;let {color:_0x40b05f,range:_0x12a395,name:_0x571a75,selection:_0x2e16e9,sheetID:_0xcc1c36}=_0x230886,{startColumn:_0x3c9027,startRow:_0x34bb18,endColumn:_0x2770e7,endRow:_0x518954}=_0x12a395,_0x2023fc=(0x0,v[_0x11d999(0x356)])(_0x34bb18,_0x3c9027,_0x2a31b7,_0x157082),_0x3782ad=(0x0,v['getCoordByCell'])(_0x518954,_0x2770e7,_0x2a31b7,_0x157082),{columnHeaderHeightAndMarginTop:_0x7964dc}=_0x157082,{startX:_0x39e06a,startY:_0x27264c}=_0x2023fc,{endX:_0x1b791b,endY:_0x2dd23a}=_0x3782ad,_0x3b7c2b=_0x1b791b-_0x39e06a,_0x2a6ab8=_0x2dd23a-_0x27264c;return new xe(_0x571a75,{'labelPosition':_0x27264c-_0x7964dc>=0x14?_0x11d999(0x3b4):_0x11d999(0x222),'sheetID':_0xcc1c36,'range':_0x12a395,'color':_0x40b05f,'name':_0x571a75,'selection':_0x2e16e9,'left':_0x39e06a,'top':_0x27264c,'width':_0x3b7c2b,'height':_0x2a6ab8,'evented':!0x1,'zIndex':0x1389});});_0x2a31b7[_0x4795c5(0x332)](_0xa1b877,0x1),this[_0x4795c5(0x33e)]=new Set(_0xa1b877);}[_0x32171b(0x2b3)](){const _0x122ae9=_0x32171b;var _0x56495b;(_0x56495b=this[_0x122ae9(0x33e)])==null||_0x56495b[_0x122ae9(0x19f)](_0x3514a3=>_0x3514a3[_0x122ae9(0x376)]());}[_0x32171b(0x256)](){const _0x1d6331=_0x32171b;return(0x0,v[_0x1d6331(0x351)])(this[_0x1d6331(0x427)][_0x1d6331(0x1e4)],this['_context']);}};z=C([S(0x1,(0x0,n[_0x32171b(0x329)])(v['SheetSkeletonManagerService'])),S(0x2,(0x0,n['Inject'])(F)),S(0x3,(0x0,n['Inject'])(n[_0x32171b(0x405)]))],z);function Se(_0x4c3534){const _0x1ed01f=_0x32171b;let _0x16a7b4=new Map();return _0x4c3534[_0x1ed01f(0x19f)](_0x59514e=>{const _0x9906fa=_0x1ed01f;if(_0x16a7b4[_0x9906fa(0x41a)](_0x59514e['selection'])){let _0x3930af=_0x16a7b4[_0x9906fa(0x3e4)](_0x59514e[_0x9906fa(0x2ca)]);_0x3930af[_0x9906fa(0x1c3)]+=',\x20'+_0x59514e[_0x9906fa(0x1c3)];}else _0x16a7b4[_0x9906fa(0x30a)](_0x59514e['selection'],_0x59514e);}),Array[_0x1ed01f(0x461)](_0x16a7b4[_0x1ed01f(0x3c7)]());}let B=class extends n['RxDisposable']{constructor(_0x15f8a4,_0x4e7248,_0x31d5dd){const _0x3b1617=_0x32171b;super(),this['_context']=_0x15f8a4,this[_0x3b1617(0x38b)]=_0x4e7248,this[_0x3b1617(0x3b0)]=_0x31d5dd,x(this,_0x3b1617(0x33e),new Set()),x(this,_0x3b1617(0x280),!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,'_latestCursors',new Map()),this['_init']();}[_0x32171b(0x376)](){const _0x448278=_0x32171b;this[_0x448278(0x2b3)](),super[_0x448278(0x376)]();}[_0x32171b(0x35c)](){const _0x126661=_0x32171b;let _0x5d41e0=this[_0x126661(0x427)][_0x126661(0x1e4)][_0x126661(0x278)][_0x126661(0x208)],_0x260411=this['_collabCursorController']['getCollabCursors$'](this[_0x126661(0x427)]['unitId']);this[_0x126661(0x3ec)]((0x0,n[_0x126661(0x216)])((0x0,i[_0x126661(0x3c1)])([_0x260411,_0x5d41e0,this[_0x126661(0x3b0)][_0x126661(0x1fc)]])['pipe']((0x0,i[_0x126661(0x38d)])(this['dispose$']))[_0x126661(0x2b4)](([_0x3a74d2,_0x34f672])=>{const _0xbe520d=_0x126661;let _0x453f9a=new Map();_0x3a74d2['forEach']((_0xaf993e,_0x2c992f)=>{const _0x1dd8ae=_0x4167;_0xaf993e[_0x1dd8ae(0x3d9)]===_0x34f672&&_0x453f9a[_0x1dd8ae(0x30a)](_0x2c992f,{..._0xaf993e,'color':this[_0x1dd8ae(0x3b0)]['getColorFromTheme'](_0xaf993e[_0x1dd8ae(0x19a)])});}),this[_0xbe520d(0x326)]=_0x453f9a,this['_scheduleRender']();})));let _0x96e1a9=this[_0x126661(0x427)][_0x126661(0x3e6)];this['disposeWithMe']((0x0,n['toDisposable'])(_0x96e1a9['addObject$']['pipe']((0x0,i[_0x126661(0x38d)])(this[_0x126661(0x273)]))[_0x126661(0x2b4)](()=>{const _0x14ee75=_0x126661;this[_0x14ee75(0x419)]||this[_0x14ee75(0x17a)]();})));}['_scheduleRender'](){const _0x48ec9b=_0x32171b;this[_0x48ec9b(0x280)]||(this[_0x48ec9b(0x280)]=!0x0,Promise[_0x48ec9b(0x1ee)]()[_0x48ec9b(0x22f)](()=>{const _0x3eb166=_0x48ec9b;this['_renderScheduled']=!0x1,this[_0x3eb166(0x42f)]();}));}[_0x32171b(0x42f)](){const _0x44f4bc=_0x32171b;var _0x25a4f7;this[_0x44f4bc(0x2b3)]();let _0x2916bb=(_0x25a4f7=this['_context']['unit']['pageManager'][_0x44f4bc(0x33d)]())==null?void 0x0:_0x25a4f7[_0x44f4bc(0x23c)]();if(!_0x2916bb)return;let _0x264a2e=[];if(this[_0x44f4bc(0x326)]['forEach']((_0x135a66,_0x2fbbdb)=>{const _0x57eab6=_0x44f4bc;_0x135a66[_0x57eab6(0x3d9)]===_0x2916bb&&_0x135a66[_0x57eab6(0x488)][_0x57eab6(0x19f)](_0x9d5fbf=>{const _0x5ce3b6=_0x57eab6;let _0x140575=(0x0,_[_0x5ce3b6(0x3c6)])(_0x135a66[_0x5ce3b6(0x3fc)],_0x135a66[_0x5ce3b6(0x3d9)],_0x9d5fbf),_0x1aabce=this['_getSceneObjectByKey'](_0x140575);if(!_0x1aabce)return;let _0x150369=this[_0x5ce3b6(0x24d)](_0x1aabce);_0x264a2e[_0x5ce3b6(0x18d)](new pe(_0x5ce3b6(0x32d)+_0x2fbbdb+'-'+_0x9d5fbf,{..._0x135a66,'left':_0x150369[_0x5ce3b6(0x41e)],'top':_0x150369[_0x5ce3b6(0x3b4)],'width':_0x150369[_0x5ce3b6(0x33c)],'height':_0x150369[_0x5ce3b6(0x35a)],'angle':_0x1aabce[_0x5ce3b6(0x3e0)],'evented':!0x1,'zIndex':O}));});}),_0x264a2e[_0x44f4bc(0x1f1)]===0x0){this[_0x44f4bc(0x427)]['scene'][_0x44f4bc(0x469)](!0x0);return;}this['_isApplyingOverlays']=!0x0,this[_0x44f4bc(0x427)][_0x44f4bc(0x3e6)]['addObjects'](_0x264a2e,O),this[_0x44f4bc(0x419)]=!0x1,this[_0x44f4bc(0x33e)]=new Set(_0x264a2e),this[_0x44f4bc(0x427)][_0x44f4bc(0x3e6)][_0x44f4bc(0x469)](!0x0);}[_0x32171b(0x2b3)](){const _0x234a65=_0x32171b;let _0x3d0b5a=Array[_0x234a65(0x461)](this[_0x234a65(0x33e)]);if(_0x3d0b5a[_0x234a65(0x1f1)]===0x0)return;let _0x12aeea=this['_context'][_0x234a65(0x3e6)];_0x234a65(0x2c2)in _0x12aeea&&typeof _0x12aeea['removeObjects']==_0x234a65(0x2f0)?_0x12aeea[_0x234a65(0x2c2)](_0x3d0b5a):_0x3d0b5a[_0x234a65(0x19f)](_0x9c0a0d=>{const _0x10f253=_0x234a65;_0x10f253(0x2a5)in _0x12aeea&&typeof _0x12aeea[_0x10f253(0x2a5)]==_0x10f253(0x2f0)?_0x12aeea['removeObject'](_0x9c0a0d):_0x9c0a0d[_0x10f253(0x376)]();}),this[_0x234a65(0x33e)][_0x234a65(0x1da)](),_0x12aeea[_0x234a65(0x469)](!0x0);}['_getSceneObjectByKey'](_0x50ac7a){const _0x4ebece=_0x32171b;var _0x57dc4f,_0x536b51,_0x36befc;let _0x1478ae=this[_0x4ebece(0x427)]['scene'];return(_0x57dc4f=(_0x536b51=(_0x36befc=_0x1478ae[_0x4ebece(0x477)])==null?void 0x0:_0x36befc['call'](_0x1478ae,_0x50ac7a))==null?_0x1478ae[_0x4ebece(0x495)](_0x50ac7a):_0x536b51)==null?null:_0x57dc4f;}[_0x32171b(0x24d)](_0x545674){const _0x49420f=_0x32171b;var _0x4b4dcb,_0xa83b23;let _0x232b6d=_0x545674;return(_0x4b4dcb=(_0xa83b23=_0x232b6d[_0x49420f(0x2a0)])==null?void 0x0:_0xa83b23['call'](_0x232b6d))==null?{'left':_0x545674['left'],'top':_0x545674['top'],'width':_0x545674[_0x49420f(0x33c)],'height':_0x545674[_0x49420f(0x35a)]}:_0x4b4dcb;}};B=C([S(0x1,(0x0,n['Inject'])(F)),S(0x2,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x405)]))],B);let V=class extends n[_0x32171b(0x45a)]{constructor(_0x26ed56,_0xcdf09c,_0x379075,_0xc2371c,_0x43f08b,_0x3356cc){const _0x5b6b19=_0x32171b;super(),this['_beforeCloseService']=_0x26ed56,this['_localCacheService']=_0xcdf09c,this[_0x5b6b19(0x21b)]=_0x379075,this[_0x5b6b19(0x1bf)]=_0xc2371c,this[_0x5b6b19(0x308)]=_0x43f08b,this['_localeService']=_0x3356cc,this[_0x5b6b19(0x482)](),this[_0x5b6b19(0x22d)]();}[_0x32171b(0x482)](){const _0x182279=_0x32171b;this['disposeWithMe'](this[_0x182279(0x359)][_0x182279(0x339)](()=>{const _0x29d0c=_0x182279;if(this['_localCacheService']['saveTaskMap'][_0x29d0c(0x3a1)])return this[_0x29d0c(0x28a)]['t'](_0x29d0c(0x3e7));}));}[_0x32171b(0x22d)](){const _0x106a02=_0x32171b;this['disposeWithMe'](this['_collaborationUIEventService']['event$'][_0x106a02(0x2b4)](_0xf21373=>{const _0x288a20=_0x106a02;_0xf21373['id']===t[_0x288a20(0x2c9)][_0x288a20(0x25c)]&&this[_0x288a20(0x1bf)][_0x288a20(0x1d1)]({'type':o[_0x288a20(0x386)][_0x288a20(0x328)],'content':this['_localeService']['t'](_0x288a20(0x243))}),_0xf21373['id']===t[_0x288a20(0x2c9)][_0x288a20(0x2a7)]&&this['_messageService'][_0x288a20(0x1d1)]({'type':o[_0x288a20(0x386)][_0x288a20(0x328)],'content':this['_localeService']['t'](_0x288a20(0x3ae))}),_0xf21373['id']===t[_0x288a20(0x2c9)]['PERMISSION_DENIED']&&this['_notificationService'][_0x288a20(0x1d1)]({'title':this['_localeService']['t'](_0x288a20(0x270)),'content':this[_0x288a20(0x28a)]['t'](_0x288a20(0x371)),'type':_0x288a20(0x23d),'duration':0x0}),_0xf21373['id']===t[_0x288a20(0x2c9)]['CONFLICT']&&this['_notificationService'][_0x288a20(0x1d1)]({'title':this[_0x288a20(0x28a)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x288a20(0x28a)]['t'](_0x288a20(0x1e9)),'type':_0x288a20(0x23d),'duration':0x0}),_0xf21373['id']===t[_0x288a20(0x2c9)]['JOIN_ROOM_FAILED']&&this[_0x288a20(0x1bf)][_0x288a20(0x1d1)]({'type':o['MessageType'][_0x288a20(0x328)],'content':this[_0x288a20(0x28a)]['t'](_0xf21373[_0x288a20(0x274)]||'')}),_0xf21373['id']===t[_0x288a20(0x2c9)][_0x288a20(0x299)]&&this[_0x288a20(0x1bf)]['show']({'type':o[_0x288a20(0x386)][_0x288a20(0x328)],'content':this['_localeService']['t'](_0x288a20(0x3cf))}),_0xf21373['id']===t[_0x288a20(0x2c9)][_0x288a20(0x2f4)]&&this['_messageService'][_0x288a20(0x1d1)]({'type':o[_0x288a20(0x386)][_0x288a20(0x343)],'content':this[_0x288a20(0x28a)]['t'](_0x288a20(0x41d))}),_0xf21373['id']===t[_0x288a20(0x2c9)][_0x288a20(0x3b7)]&&this['_messageService'][_0x288a20(0x1d1)]({'type':o[_0x288a20(0x386)][_0x288a20(0x343)],'content':this[_0x288a20(0x28a)]['t'](_0x288a20(0x489))});}));}};V=C([S(0x0,r[_0x32171b(0x3ab)]),S(0x1,t[_0x32171b(0x3e3)]),S(0x2,(0x0,n[_0x32171b(0x329)])(t[_0x32171b(0x20c)])),S(0x3,r[_0x32171b(0x34e)]),S(0x4,r[_0x32171b(0x195)]),S(0x5,(0x0,n[_0x32171b(0x329)])(n['LocaleService']))],V);const H=(0x0,n[_0x32171b(0x36f)])(_0x32171b(0x336));let U=class extends n[_0x32171b(0x467)]{constructor(_0x31994d,_0x53a8b2,_0x92bfd1,_0x316204,_0x1eb1bb){const _0x4f4aaa=_0x32171b;super(),this['_urlService']=_0x31994d,this[_0x4f4aaa(0x335)]=_0x53a8b2,this['_commandService']=_0x92bfd1,this[_0x4f4aaa(0x1ed)]=_0x316204,_0x1eb1bb?_0x1eb1bb[_0x4f4aaa(0x182)]()['then'](()=>this[_0x4f4aaa(0x35c)]()):(this['_logService']['debug'](_0x4f4aaa(0x1d9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x32171b(0x35c)](){const _0x459d5e=_0x32171b;let _0x5e54ad=this['_urlService'][_0x459d5e(0x1cd)](_0x459d5e(0x1e4)),_0x278aa3=this[_0x459d5e(0x44b)][_0x459d5e(0x1cd)](_0x459d5e(0x1ef)),_0x5cd29f=this[_0x459d5e(0x44b)][_0x459d5e(0x1cd)](_0x459d5e(0x33b));if(!_0x5e54ad||!_0x278aa3){this[_0x459d5e(0x335)][_0x459d5e(0x2d5)](_0x459d5e(0x1d9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x73fc3b=await this[_0x459d5e(0x1ed)][_0x459d5e(0x2b0)](_0x5e54ad,Number(_0x278aa3),_0x5cd29f);_0x73fc3b&&_0x73fc3b instanceof n['Workbook']&&this[_0x459d5e(0x388)](_0x73fc3b);}async[_0x32171b(0x388)](_0x2cef6c){const _0x1f24dc=_0x32171b;await this[_0x1f24dc(0x239)](_0x2cef6c),_0x2cef6c[_0x1f24dc(0x2f7)][_0x1f24dc(0x1fa)]((0x0,i['takeUntil'])(this[_0x1f24dc(0x273)]))[_0x1f24dc(0x2b4)](_0x543d5c=>{const _0x56f5e6=_0x1f24dc;_0x543d5c&&this[_0x56f5e6(0x392)](_0x543d5c);}),this[_0x1f24dc(0x44b)]['urlChange$'][_0x1f24dc(0x1fa)]((0x0,i['takeUntil'])(this[_0x1f24dc(0x273)]))[_0x1f24dc(0x2b4)](()=>this['_updateSubUnitFromURLParams'](_0x2cef6c));}['_updateURLWithCurrentState'](_0x4bad00,_0x3ef606=!0x1){const _0x36011b=_0x32171b;let _0x5821d4=this[_0x36011b(0x44b)][_0x36011b(0x1cd)](_0x36011b(0x33b));_0x4bad00['getSheetId']()!==_0x5821d4&&this[_0x36011b(0x44b)][_0x36011b(0x319)]('subunit',_0x4bad00['getSheetId'](),_0x3ef606);}async[_0x32171b(0x239)](_0x1d8b9e){const _0x484465=_0x32171b;var _0x4c09ef;let _0x2d58ea=this[_0x484465(0x44b)][_0x484465(0x1cd)]('subunit');if(!_0x2d58ea||!_0x1d8b9e[_0x484465(0x432)](_0x2d58ea)){let _0x479149=_0x1d8b9e[_0x484465(0x1de)]()[0x0],_0xd6e01e=_0x1d8b9e['getSheetBySheetId'](_0x479149);if(!_0xd6e01e)return;this[_0x484465(0x392)](_0xd6e01e,!0x0),await this[_0x484465(0x465)][_0x484465(0x260)](g[_0x484465(0x48b)]['id'],{'unitId':_0x1d8b9e[_0x484465(0x261)](),'subUnitId':_0x479149});return;}((_0x4c09ef=_0x1d8b9e[_0x484465(0x48c)]())==null?void 0x0:_0x4c09ef[_0x484465(0x3de)]())!==_0x2d58ea&&await this[_0x484465(0x465)][_0x484465(0x260)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x1d8b9e[_0x484465(0x261)](),'subUnitId':_0x2d58ea});}};U=C([S(0x0,H),S(0x1,n[_0x32171b(0x1e2)]),S(0x2,n[_0x32171b(0x2d2)]),S(0x3,(0x0,n[_0x32171b(0x329)])(t[_0x32171b(0x415)])),S(0x4,(0x0,n[_0x32171b(0x2a9)])(ee['IRemoteInstanceService']))],U);let W=class{constructor(_0x543eed,_0x17796e){this['_transformService']=_0x543eed,this['_renderManagerService']=_0x17796e;}['transformIMECache'](_0x49643b){const _0x4aa231=_0x32171b;this[_0x4aa231(0x3bf)](_0x49643b),this[_0x4aa231(0x1bd)](_0x49643b);}['transformRemoteChangeset'](_0x44b356){const _0x3c2699=_0x32171b;let {unitID:_0x5668dc}=_0x44b356,{redoCache:_0x10f329}=this['_renderManagerService']['getRenderById'](_0x5668dc)['with'](f[_0x3c2699(0x1d7)])[_0x3c2699(0x47c)]();if(_0x10f329[_0x3c2699(0x1f1)]===0x0)return _0x44b356;let _0x4c756e=n[_0x3c2699(0x3dd)]['deepClone'](_0x44b356[_0x3c2699(0x1be)][0x0]);for(let _0x273930=0x0;_0x273930<_0x10f329[_0x3c2699(0x1f1)];_0x273930++){let _0x2c63f6={'id':_0x3c2699(0x23e),'params':{..._0x10f329[_0x273930]}},_0x22d4f2=this[_0x3c2699(0x360)][_0x3c2699(0x1c7)](_0x4c756e,_0x2c63f6,!0x1);if((0x0,p[_0x3c2699(0x1dc)])(_0x22d4f2))throw _0x22d4f2[_0x3c2699(0x23d)];_0x4c756e=_0x22d4f2[_0x3c2699(0x31b)];}return{...n['Tools']['deepClone'](_0x44b356),'mutations':[_0x4c756e]};}[_0x32171b(0x3bf)](_0x2a32e9){const _0x4ed093=_0x32171b;let {unitID:_0x2a41e5}=_0x2a32e9,_0x437be6=this[_0x4ed093(0x224)][_0x4ed093(0x389)](_0x2a41e5)[_0x4ed093(0x407)](f[_0x4ed093(0x1d7)]),{undoCache:_0x31eb67,redoCache:_0xa23910}=_0x437be6[_0x4ed093(0x47c)]();if(_0x31eb67[_0x4ed093(0x1f1)]===0x0||_0xa23910[_0x4ed093(0x1f1)]===0x0)return;let _0x2054b2=[],_0x27a8fe=[],_0x2b517a=n['Tools']['deepClone'](_0x2a32e9[_0x4ed093(0x1be)][0x0]),_0xb49cd3=n[_0x4ed093(0x3dd)]['deepClone'](_0x2a32e9[_0x4ed093(0x1be)][0x0]);for(let _0xdded77=_0x31eb67[_0x4ed093(0x1f1)]-0x1;_0xdded77>=0x0;_0xdded77--){let _0x53c3d1={'id':_0x4ed093(0x23e),'params':{..._0x31eb67[_0xdded77]}},_0x36e896={'id':'doc.mutation.rich-text-editing','params':{..._0xa23910[_0xdded77]}},_0x520491=this[_0x4ed093(0x360)][_0x4ed093(0x1c7)](_0x2b517a,_0x53c3d1,!0x1),_0x48fcd7=this[_0x4ed093(0x360)][_0x4ed093(0x1c7)](_0xb49cd3,_0x36e896,!0x1);if((0x0,p[_0x4ed093(0x1dc)])(_0x520491))throw _0x520491[_0x4ed093(0x23d)];if((0x0,p[_0x4ed093(0x1dc)])(_0x48fcd7))throw _0x48fcd7['error'];_0x2054b2[_0x4ed093(0x293)](_0x520491[_0x4ed093(0x2b1)][_0x4ed093(0x219)]),_0x27a8fe[_0x4ed093(0x293)](_0x48fcd7['m2Prime'][_0x4ed093(0x219)]),_0x2b517a=_0x520491[_0x4ed093(0x31b)],_0xb49cd3=_0x48fcd7[_0x4ed093(0x31b)];}_0x437be6['setUndoRedoMutationParamsCache']({'undoCache':_0x2054b2,'redoCache':_0x27a8fe});}[_0x32171b(0x1bd)](_0x124f25){const _0x39145a=_0x32171b;let {unitID:_0x34fd41}=_0x124f25,_0x3e2059=this[_0x39145a(0x224)][_0x39145a(0x389)](_0x34fd41)['with'](f[_0x39145a(0x1d7)]),_0x36c190=_0x3e2059[_0x39145a(0x3b8)]();if(_0x36c190==null)return;let _0x177126=[{'id':_0x39145a(0x23e),'params':{'unitId':_0x124f25[_0x39145a(0x486)],'actions':null,'textRanges':[_0x36c190]}}],_0x4e34da=this['_transformService'][_0x39145a(0x44d)](_0x124f25,_0x177126);if(!(0x0,p[_0x39145a(0x45e)])(_0x4e34da))throw _0x4e34da[_0x39145a(0x23d)];let _0x2973b8=_0x4e34da[_0x39145a(0x2b1)][0x0]['params'][_0x39145a(0x47d)];Array['isArray'](_0x2973b8)&&_0x2973b8[_0x39145a(0x1f1)]&&_0x3e2059[_0x39145a(0x429)](_0x2973b8[0x0]);}};W=C([S(0x0,p[_0x32171b(0x2d6)]),S(0x1,u[_0x32171b(0x28b)])],W);let G=class{constructor(_0x3d24a0,_0x41f97c,_0x420861){const _0x4b2373=_0x32171b;this[_0x4b2373(0x2e6)]=_0x3d24a0,this['_transformService']=_0x41f97c,this[_0x4b2373(0x312)]=_0x420861;}[_0x32171b(0x426)](_0x4915ba){const _0x13a114=_0x32171b;this[_0x13a114(0x1f8)](_0x4915ba);}['transformRemoteChangeset'](_0x9f27a){const _0x3b9159=_0x32171b;let {unitID:_0x36b481}=_0x9f27a,{collaboration:_0x85cae6}=this['_docStateChangeManagerService'][_0x3b9159(0x472)](_0x36b481);if(_0x85cae6['length']===0x0)return _0x9f27a;let _0x3c3ab7=n[_0x3b9159(0x3dd)][_0x3b9159(0x1bb)](_0x9f27a[_0x3b9159(0x1be)][0x0]);for(let _0x4e7b01=0x0;_0x4e7b01<_0x85cae6['length'];_0x4e7b01++){let _0x44f820={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x85cae6[_0x4e7b01]['unitId'],..._0x85cae6[_0x4e7b01][_0x3b9159(0x2da)]}},_0xfdb19d=this[_0x3b9159(0x360)][_0x3b9159(0x1c7)](_0x3c3ab7,_0x44f820,!0x1);if((0x0,p[_0x3b9159(0x1dc)])(_0xfdb19d))throw _0xfdb19d['error'];_0x3c3ab7=_0xfdb19d[_0x3b9159(0x31b)];}return{...n['Tools'][_0x3b9159(0x1bb)](_0x9f27a),'mutations':[_0x3c3ab7]};}[_0x32171b(0x1f8)](_0x356223){const _0x167e53=_0x32171b;let {unitID:_0x494c26}=_0x356223,{history:_0x1d1982,collaboration:_0x419508}=this['_docStateChangeManagerService']['getStateCache'](_0x494c26);if(_0x1d1982[_0x167e53(0x1f1)]===0x0&&_0x419508[_0x167e53(0x1f1)]===0x0)return;let _0x4a3929=[],_0x150048=[],_0xd8e09c=n['Tools'][_0x167e53(0x1bb)](_0x356223['mutations'][0x0]),_0x55d4d1=n[_0x167e53(0x3dd)][_0x167e53(0x1bb)](_0x356223[_0x167e53(0x1be)][0x0]);for(let _0x2a23cc=_0x1d1982[_0x167e53(0x1f1)]-0x1;_0x2a23cc>=0x0;_0x2a23cc--){let _0x7d7287={'id':_0x167e53(0x23e),'params':{'unitId':_0x1d1982[_0x2a23cc]['unitId'],..._0x1d1982[_0x2a23cc][_0x167e53(0x193)]}},_0x473b5e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d1982[_0x2a23cc]['unitId'],..._0x1d1982[_0x2a23cc][_0x167e53(0x2da)]}},_0xf3fe42=this['_transformService'][_0x167e53(0x1c7)](_0xd8e09c,_0x7d7287,!0x1),_0x334f1a=this[_0x167e53(0x360)][_0x167e53(0x1c7)](_0x55d4d1,_0x473b5e,!0x1);if((0x0,p[_0x167e53(0x1dc)])(_0xf3fe42))throw _0xf3fe42[_0x167e53(0x23d)];if((0x0,p[_0x167e53(0x1dc)])(_0x334f1a))throw _0x334f1a[_0x167e53(0x23d)];_0x4a3929['unshift']({..._0x1d1982[_0x2a23cc],'undoState':_0xf3fe42[_0x167e53(0x2b1)][_0x167e53(0x219)],'redoState':_0x334f1a[_0x167e53(0x2b1)][_0x167e53(0x219)]}),_0xd8e09c=_0xf3fe42[_0x167e53(0x31b)],_0x55d4d1=_0x334f1a[_0x167e53(0x31b)];}_0xd8e09c=n['Tools'][_0x167e53(0x1bb)](_0x356223[_0x167e53(0x1be)][0x0]),_0x55d4d1=n['Tools'][_0x167e53(0x1bb)](_0x356223[_0x167e53(0x1be)][0x0]);for(let _0x5f2a7b=_0x419508[_0x167e53(0x1f1)]-0x1;_0x5f2a7b>=0x0;_0x5f2a7b--){let _0x1db607={'id':_0x167e53(0x23e),'params':{'unitId':_0x419508[_0x5f2a7b]['unitId'],..._0x419508[_0x5f2a7b]['undoState']}},_0x33d8d1={'id':_0x167e53(0x23e),'params':{'unitId':_0x419508[_0x5f2a7b][_0x167e53(0x3fc)],..._0x419508[_0x5f2a7b][_0x167e53(0x2da)]}},_0x19690f=this[_0x167e53(0x360)][_0x167e53(0x1c7)](_0xd8e09c,_0x1db607,!0x1),_0x3d9e7b=this[_0x167e53(0x360)][_0x167e53(0x1c7)](_0x55d4d1,_0x33d8d1,!0x1);if((0x0,p[_0x167e53(0x1dc)])(_0x19690f))throw _0x19690f[_0x167e53(0x23d)];if((0x0,p[_0x167e53(0x1dc)])(_0x3d9e7b))throw _0x3d9e7b[_0x167e53(0x23d)];_0x150048[_0x167e53(0x293)]({..._0x419508[_0x5f2a7b],'undoState':_0x19690f[_0x167e53(0x2b1)][_0x167e53(0x219)],'redoState':_0x3d9e7b[_0x167e53(0x2b1)]['params']}),_0xd8e09c=_0x19690f[_0x167e53(0x31b)],_0x55d4d1=_0x3d9e7b['m1Prime'];}this[_0x167e53(0x312)]['setStateCache'](_0x494c26,{'history':_0x4a3929,'collaboration':_0x150048});}};G=C([S(0x0,(0x0,n[_0x32171b(0x329)])(n['Injector'])),S(0x1,p[_0x32171b(0x2d6)]),S(0x2,(0x0,n['Inject'])(m[_0x32171b(0x39b)]))],G);let K=class{constructor(_0x1ccbb0,_0x271cd4){const _0x3c6c4f=_0x32171b;this[_0x3c6c4f(0x2e6)]=_0x1ccbb0,this[_0x3c6c4f(0x360)]=_0x271cd4;}[_0x32171b(0x3f7)](_0x6a950c){const _0xb46d89=_0x32171b;var _0x451dcc;let _0x400a15=this[_0xb46d89(0x2e6)][_0xb46d89(0x3e4)](m[_0xb46d89(0x46d)]),_0x36d29a=(_0x451dcc=_0x400a15[_0xb46d89(0x1ec)]())==null?[]:_0x451dcc;if(_0x36d29a[_0xb46d89(0x1f1)]===0x0)return;let _0x355c0f=_0x6a950c[_0xb46d89(0x486)],_0x434209=[{'id':_0xb46d89(0x23e),'params':{'unitId':_0x355c0f,'actions':null,'textRanges':_0x36d29a}}],_0xcde900=this['_transformService'][_0xb46d89(0x44d)](_0x6a950c,_0x434209);if(!(0x0,p[_0xb46d89(0x45e)])(_0xcde900))throw _0xcde900[_0xb46d89(0x23d)];let _0x82cd2f=_0xcde900['m2Prime'][0x0]['params']['textRanges'];Array['isArray'](_0x82cd2f)&&_0x82cd2f[_0xb46d89(0x1f1)]&&_0x400a15[_0xb46d89(0x300)](_0x82cd2f,{'unitId':_0x355c0f,'subUnitId':_0x355c0f},!0x1);}};K=C([S(0x0,(0x0,n['Inject'])(n[_0x32171b(0x25b)])),S(0x1,p[_0x32171b(0x2d6)])],K);let q=class extends n[_0x32171b(0x45a)]{constructor(_0x4854b7,_0x4f14db,_0x26c905,_0x505075,_0x4b108a,_0x2c67d0,_0x29a0c8){const _0x3af69e=_0x32171b;super(),this[_0x3af69e(0x471)]=_0x4854b7,this[_0x3af69e(0x1d6)]=_0x4f14db,this['_docTransformStateCacheService']=_0x26c905,this[_0x3af69e(0x2e0)]=_0x505075,this['_docSyncEditingCollabCursorService']=_0x4b108a,this[_0x3af69e(0x1bf)]=_0x2c67d0,this[_0x3af69e(0x28a)]=_0x29a0c8,x(this,'_status$',new i['BehaviorSubject'](t[_0x3af69e(0x3a0)][_0x3af69e(0x229)])),this[_0x3af69e(0x223)]();}[_0x32171b(0x223)](){const _0x57b88d=_0x32171b;this[_0x57b88d(0x3ec)](this[_0x57b88d(0x471)][_0x57b88d(0x3f4)]['subscribe'](_0x1b9c27=>{const _0x11f6d3=_0x57b88d;_0x1b9c27 instanceof t['DocCollaborationEntity']&&_0x1b9c27[_0x11f6d3(0x410)]({'onTransformIME':_0x2a8fec=>this['_docTransformIMECacheService'][_0x11f6d3(0x225)](_0x2a8fec),'onTransformState':_0x37a836=>this[_0x11f6d3(0x411)][_0x11f6d3(0x426)](_0x37a836),'onTransformSelections':_0x10d1a3=>this[_0x11f6d3(0x2e0)]['transformSelections'](_0x10d1a3),'onSyncEditingCollabCursor':_0x562f06=>this[_0x11f6d3(0x1a0)][_0x11f6d3(0x192)](_0x562f06),'onTransformRemoteChangesetByIMECache':_0x226e05=>this['_docTransformIMECacheService'][_0x11f6d3(0x253)](_0x226e05),'onTransformRemoteChangesetByStateCache':_0x34e086=>this[_0x11f6d3(0x411)][_0x11f6d3(0x253)](_0x34e086)});}));}};q=C([S(0x0,(0x0,n[_0x32171b(0x329)])(t[_0x32171b(0x26e)])),S(0x1,(0x0,n['Inject'])(W)),S(0x2,(0x0,n[_0x32171b(0x329)])(G)),S(0x3,(0x0,n[_0x32171b(0x329)])(K)),S(0x4,(0x0,n[_0x32171b(0x329)])(j)),S(0x5,r[_0x32171b(0x34e)]),S(0x6,(0x0,n['Inject'])(n['LocaleService']))],q);let J=class extends n[_0x32171b(0x45a)]{constructor(_0x1a6b12,_0x572ff2,_0x3a15d7,_0x4790b3){const _0x190874=_0x32171b;super(),this[_0x190874(0x2e6)]=_0x1a6b12,this['_httpService']=_0x572ff2,this[_0x190874(0x335)]=_0x3a15d7,this[_0x190874(0x294)]=_0x4790b3,x(this,_0x190874(0x345),void 0x0),this[_0x190874(0x35c)]();}[_0x32171b(0x35c)](){const _0x2b472f=_0x32171b;this[_0x2b472f(0x3ee)](),this['_initUnhandledRejectionListener'](),this[_0x2b472f(0x3a4)](),this[_0x2b472f(0x2b7)]();}[_0x32171b(0x2b7)](){const _0x274757=_0x32171b;this[_0x274757(0x3ec)](this[_0x274757(0x294)][_0x274757(0x2ea)][_0x274757(0x2b4)](_0x2f48c5=>{const _0x26bd52=_0x274757;this['_memberID']=_0x2f48c5==null?void 0x0:_0x2f48c5[_0x26bd52(0x2fc)];}));}['_initWindowErrorListener'](){const _0x2a6000=_0x32171b;let _0x1b4ef7=_0x4e49ca=>{const _0x5f2843=_0x4167;var _0x480cdb;this[_0x5f2843(0x362)](_0x5f2843(0x23d),'[Window\x20Error]:\x20'+_0x4e49ca[_0x5f2843(0x1a6)]+_0x5f2843(0x21d)+_0x4e49ca['filename']+':'+_0x4e49ca['lineno']+':'+_0x4e49ca['colno']+'\x0a'+(((_0x480cdb=_0x4e49ca[_0x5f2843(0x23d)])==null?void 0x0:_0x480cdb[_0x5f2843(0x445)])||''));};window[_0x2a6000(0x490)](_0x2a6000(0x23d),_0x1b4ef7),this[_0x2a6000(0x3ec)](()=>{const _0x1c540a=_0x2a6000;window['removeEventListener'](_0x1c540a(0x23d),_0x1b4ef7);});}['_initUnhandledRejectionListener'](){const _0x3c3100=_0x32171b;let _0x4876b0=_0x228721=>{const _0x1f5564=_0x4167;this[_0x1f5564(0x362)](_0x1f5564(0x23d),_0x1f5564(0x284)+_0x228721[_0x1f5564(0x262)]);};window[_0x3c3100(0x490)](_0x3c3100(0x281),_0x4876b0),this[_0x3c3100(0x3ec)](()=>{const _0x44aca9=_0x3c3100;window[_0x44aca9(0x40d)](_0x44aca9(0x281),_0x4876b0);});}['_monkeyPatchLogService'](){const _0x3f280b=_0x32171b;let _0x2777af=this[_0x3f280b(0x335)][_0x3f280b(0x23d)][_0x3f280b(0x439)](this['_logService']);this[_0x3f280b(0x335)][_0x3f280b(0x23d)]=(..._0x368ccc)=>{const _0x56290c=_0x3f280b;let _0x426688=_0x368ccc[_0x56290c(0x2d4)](_0xac7637=>_0xac7637 instanceof Error?_0xac7637[_0x56290c(0x1a6)]+'\x0a'+_0xac7637[_0x56290c(0x445)]:String(_0xac7637))[_0x56290c(0x271)]('\x20');this[_0x56290c(0x362)](_0x56290c(0x23d),_0x56290c(0x290)+_0x426688),_0x2777af(..._0x368ccc);},this[_0x3f280b(0x3ec)](()=>{const _0x3ad3ca=_0x3f280b;this[_0x3ad3ca(0x335)]['error']=_0x2777af;});}[_0x32171b(0x362)](_0x2924ce,_0x3607fb){const _0x76fc99=_0x32171b;try{let _0x42143b={'userId':this[_0x76fc99(0x345)],'logLabel':_0x2924ce,'content':_0x3607fb};this[_0x76fc99(0x40c)][_0x76fc99(0x3a6)](_0x76fc99(0x19d),{'body':_0x42143b})[_0x76fc99(0x42e)](()=>{});}catch{}}};J=C([S(0x0,(0x0,n[_0x32171b(0x329)])(n['Injector'])),S(0x1,(0x0,n[_0x32171b(0x329)])(d['HTTPService'])),S(0x2,n['ILogService']),S(0x3,(0x0,n[_0x32171b(0x329)])(t[_0x32171b(0x311)]))],J);function Ce({state$:_0x5abbe6,interactionBlocked$:_0x5ab94b}){const _0x14210d=_0x32171b;return(0x0,l[_0x14210d(0x2a1)])(l[_0x14210d(0x459)],{'children':[(0x0,r[_0x14210d(0x2af)])(_0x5ab94b,!0x1,!0x0)&&(0x0,l[_0x14210d(0x417)])(_0x14210d(0x277),{'data-u-comp':'snapshot-loading-interaction-guard','aria-hidden':!0x0,'className':_0x14210d(0x34c)}),(0x0,l['jsx'])(we,{'state$':_0x5abbe6})]});}function we({state$:_0x5a4e01}){const _0xa44202=_0x32171b;let _0x15f8d7=(0x0,r['useObservable'])(_0x5a4e01,null,!0x0);return _0x15f8d7?(0x0,l[_0xa44202(0x2a1)])(_0xa44202(0x277),{'data-u-comp':'snapshot-loading-timeout','role':_0xa44202(0x3f5),'className':'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-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','children':[(0x0,l[_0xa44202(0x417)])(s[_0xa44202(0x423)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,l[_0xa44202(0x417)])('span',{'children':_0x15f8d7[_0xa44202(0x285)]}),(0x0,l[_0xa44202(0x417)])(o[_0xa44202(0x443)],{'size':_0xa44202(0x198),'variant':_0xa44202(0x32e),'onClick':()=>window[_0xa44202(0x3a9)][_0xa44202(0x2fa)](),'children':_0x15f8d7[_0xa44202(0x2f9)]})]}):null;}function _0x1765(){const _0x1d886d=['_blockProgressWatches','workbookShell','href','BrowserCollaborationSocketService','_startSlideCollabCursor','SetFormulaCalculationNotificationMutation','status','_initStatusComponent','ThemeService','getCellMatrix','with','timedOut','_roomMembers$','_isVisibleUnit','focusedId','_httpService','removeEventListener','_colorAssignService','_boardElementStateService','addHandlerCallback','_docTransformStateCacheService','ISheetLoadingRenderService','registerRefRange','_messageIds','DataLoaderService','restore','jsx','MoveRangeCommandId','_isApplyingOverlays','has','timeoutState$','endColumn','collaboration-client-ui.session.connection-failed','left','RemoveColCommandId','snapshot-loading-','InsertRangeMoveRightCommandId','RemoteUniscriptService','WarningIcon','_scheduleHeartbeat','call','transformStateCache','_context','isActive','setActiveRange','_highlight','_instanceService','_blinkTimer','_onCursorUpdate','catch','_render','toString','_initResize','getSheetBySheetId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','transformByState','COLORS','_toggleOffline','all','totalBlocks','bind','rgba','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','FETCH_MISS','startsWith','3943548DzjBYI','popstate','_updateSheetPreview','releaseFormulaLimitUrl','debounce','Button','_updateLocalCursor','stack','getCellPositionByOffset','NodePositionConvertToRectRange','assignAColorForMemberID','_sheetSkeletonManagerService','_showText','_urlService','_handleHeartbeatEvent','transformMutationsWithChangeset','rgba(','totalFormulasToCalculate','Enter','version','UNIVER_SLIDE','labelPosition','DependentOn','measureText','highlight','_offsetY','some','Fragment','Disposable','getCurrentUnitOfType','univer-m-0\x20univer-p-0','UnitStatus','isTransformMutationsWithChangesetSuccess','_revisionService','state$','from','evenodd','_previewUnitId','reconnect','_commandService','board-element-selection','RxDisposable','startPluginsForType','makeDirty','_slideDrawingStateService','_send','BOARD_TOP_RIGHT_MENU_LEADING_PART','DocSelectionManagerService','parse','collabCursorState$','generateRandomId','_collaborationController','getStateCache','runOnServer','_initDependencies','_hovered','getRelativeToViewportCoord','getObjectIncludeInGroup','getVpScrollXYInfoByPosToVp','collab-text-range-','_latestStates','1390044zMpXum','getUndoRedoMutationParamsCache','textRanges','drawWith','_docSkeletonManagerService','CONFLICT','_shortcutBlock','_setupBeforeClosingHandler','getConfig','UPDATE_CURSOR','OnLineIcon','unitID','registerRenderModule','selectedIds','collaboration-client-ui.session.collaboration-timeout','_snapshotLoadingService','SetWorksheetActivateCommand','getActiveSheet','_entityInit$','eventID','rgb','addEventListener','_onRefRangeChange','colorClass','_selfUnitIDs','358178DcSsob','getObject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_isBlinkVisible','toPrimitive','_scheduleRender','getCurrentRevOfUnit','DeleteRangeMoveLeftCommandId','AWAITING_WITH_PENDING','IURLService','IUIPartsService','_startSheetCollabCursor','polite','whenReady','getCurrentSkeleton','object','_color','EffectRefRangId','_clearOtherTimers','exhaustSavingTask','HEADER_MENU','prototype','saveOfflineData','closePath','push','highlightSecond','fromEvent','1391800MbIWoS','_handleJoinEvent','syncEditingCollabCursor','undoState','UNIVER_BOARD','INotificationService','_unitStatus','_uiPartsService','small','_docClipboardService','color','handleInsertCol','_getFormulaLimitStatus','/universer-api/frontend/logs','arc','forEach','_docSyncEditingCollabCursorService','min','getFocusedUnit','collaboration-client-ui.collabStatus.fetchMiss','asObservable','_ensureSubject','message','maxFormulaLimit','throttleTime','createSocket','RevisionService','LOADING_BLOCKS','_startDocCollabCursor','isInternalEditorID','event$','replace','_clearPolling','0.2)','univer-flex\x20univer-items-center\x20univer-justify-center','handleInsertRangeMoveDown','RegularPolygon','_removeClearOtherTimer','currentUsage','parseInt','setTimeout','_hidePreview','VIEW_MAIN','deepClone','_blinkIntervalTimer','_transformPreviousActiveRange','mutations','_messageService','clearInterval','collaboration-client-ui.collabStatus.notCollab','text','name','RemoveRowCommandId','_createSocketURL','setShapeProps','transformMutation','getTypeOfUnitAdded$','_setInteractionBlocked','getColorFromTheme','i18nKey','_config','getParam','clsx','_cursorShapes','handleMoveRange','show','addClipboardHook','moveTo','font','loadOfflineData','_docTransformIMECacheService','DocIMEInputManagerService','collaboration-client-ui.snapshotLoading.loadingSheet','[CollaborationDataLoaderController]','clear','getCurrentSelections','isTransformMutationFailure','_startCalculationLimit','getUnhiddenWorksheets','_backgroundColor','cursorInfo','_anchor','ILogService',',\x200.2)','unit','searchParams','defineProperty','status$','showText','collaboration-client-ui.conflict.content','addObject$','_name','getDocRanges','_dataLoaderService','resolve','type','_collabCursorState$','length','enableDocumentCollaborationUI','_applyCommand','LOADING_SNAPSHOT','next','TEXT_RANGE_LAYER_INDEX','_taskIds','_transformHistoryAndStateStack','getTypeOfUnitDisposed$','pipe','sheetID','currentTheme$','yellow.400','handleIRemoveCol','_lastPointer','_registerRenderDependencies','OffLineIcon','cursorInfo$','saveImage','merge','_interactionBlocked$','ERROR','FormulaExecuteStageType','activeSlideId$','_memberService','handleIRemoveRow','_maxFormulaLimit','CollaborationUIEventService','_getLighterColor','_scheduleClearOtherTimer','_configService','#4f46e5','deserializeRangeWithSheet','UniverInstanceType','getBoardElementRenderObjectKey','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_imageIoService','toDisposable','source','onPointerLeave$','params','DisposableCollection','_collaborationUIEventService','stage','\x20at\x20','RECT','_watchBlockProgress','SheetCollabCursorShape','collaboration-client-ui.collabClient.tooltip.reconnect','bottom','_initEntityListener','_renderManagerService','transformIMECache','subscribeEvent','LocaleService','backgroundColor','NOT_COLLAB','startColumn','onPointerMove$','handleInsertRangeMoveRight','_initEvent','column','then','_toggleOnline','remove','_syncEditingCollabCursorService','useDependency','setOffsetY','/universer-api/license/formula/limit/start','toISOString','_highlightSecond','univer-border-none\x20univer-bg-transparent','_updateSubUnitFromURLParams','fill','_getSaveTimeout','getId','error','doc.mutation.rich-text-editing','univer-text-red-500','lineWidth','_refreshCollabCursors','stringify','collaboration-client-ui.collaboration.single-unit.warning','handleInsertRow','univer-text-orange-500','getColor','_getScale','collaboration-client-ui.formula.calculation.unable','button','registerComponent','univer-text-green-500','black','_getObjectBounds','WebBrowserSingleActiveUnitService','getCurrentTypeOfUnit$','IDocClipboardService','roomMembers$','_stopBlinking','transformRemoteChangeset','disposeUnit','_doCreateSocket','_getSheetObject','GLOBAL','InsertColCommandId','_updateMessage','_unitOnClients','Injector','OTHER_CLIENT_EDITING','ErrorCode','contains','key','executeCommand','getUnitId','reason','Tooltip','addObject','1379904WbYtDC','_initCommandExecutedListener','IConfigService','previewReady','_lastResponseTimestamp','univer-transition-all\x20univer-duration-200','editingUnit','showSkeleton','MemberService','CollaborationController','endRow','collaboration-client-ui.permission.title','join','_scene','dispose$','data','unsubscribe','Failed','div','pageManager','resize','storage','newValue','toRgbString','row','ISocketService','_clearTimeoutState','_renderScheduled','unhandledrejection','fillText','serializeRangeWithSheet','[Unhandled\x20Rejection]:\x20','content','SnapshotLoadingService','connectInjector','_shortcutService','IUniverInstanceService','_localeService','IRenderManagerService','collaboration-client-ui.snapshotLoading.timeout','mapTo','theme$','tooltipKey','[LogService\x20Error]:\x20','loadedBlocks','getOwnPropertyDescriptor','unshift','_collaborationSessionService','_initCommandInterceptor','_getSceneObjectByKey','COMPLETE','...','SOCKET_FAILED_RETRY','runId','onMouseMove','timeoutId','fromEventSubject','_heartbeatTimer','right','getRealBound','jsxs','origin','strokeRect','univer-text-blue-500','removeObject','DesktopCollaborationStatusDisplayController','CLOSE_ROOM','shareReplay','Optional','_draw','OTHER_CLIENTS_EDITING','SetSelectionsOperation','_releaseCalculationLimit','collab-rect-range-','useObservable','loadUnit','m2Prime','Shape','_removeCollabCursors','subscribe','getMember','HTTPService','_initUserListener','collaboration-client-ui.formula.calculation.waiting','_currentUsage','_assignedColors','requireSession','_handleLeaveEvent','clickable','BuiltInUIPart','constructor','labelHorizontalPosition','_getSessionTicket','removeObjects','send','_localStorageService','decorate','_online','_univerInstanceService','getValue','CollaborationUIEventId','selection','split','replaceState','TEXT','setConfig','SnapshotLoadStage','IImageIoService','getUnit','ICommandService','?taskId=','map','debug','ITransformService','univer-appearance-none','_showGuardMessage','_entities','redoState','stageInfo','_labelHorizontalPosition','transform','_registerDependencies','Unknown\x20user','_docTransformSelectionsService','now','purple.300','_saveCache','roomMembers','SUCCESS','_injector','Plugin','LoadingMultiIcon','ONLINE','socket$','7456fVDwJs','_clearBlockProgressWatch','_timeoutState$','removeParam','invokeId','function','_checkAndWaitForCalculationPermission','_handoffPreview','currentSkeleton$','SOCKET_FAILED','_pluginService','getFormulaLimitStatusUrl','activeSheet$','AWAITING','refreshLabel','reload','PluginService','memberID','beginPath','code','findNodePositionByCharIndex','replaceDocRanges','limitInfo','init','strokeWidth','UNIVER_DOC','Rect','_docSkeleton','START_CALCULATION','_notificationService','value','set','_getAnchorBounding','_colorIndex','imageSourceType','fillStyle','ColorKit','UniverCollaborationClientUIPlugin','CollaborationSessionService','_docStateChangeManagerService','preventDefault','jiqing.500','static','RichTextEditingMutation','collaboration-client-ui.snapshotLoading.refresh','Subject','setParam','previewCellData','m1Prime','DeleteRangeMoveUpCommandId','SessionStatus','icon','selections','offsetY','SetTextSelectionsOperation','indicator','distinctUntilChanged','NodePositionConvertToCursor','_saveTaskMap','_latestCursors','_anchorDot','Warning','Inject','_pollingInterval','includes','flatMap','slide-collab-cursor-','primary','default','_status$','board-collab-cursor-','addObjects','useCallback','FormulaExecutedStateType','_logService','uni.network.url-service','save','collaboration-client-ui.collabStatus.conflict','registerBeforeClose','symbol','subunit','width','getActiveSlide','_cursors','getSkeleton','_session','span','DEFAULT_WS_SESSION_TICKET_URL','Error','_handleHover','_memberID','_hasFormulaInDirtyRanges','getMergeData','IBoardElementStateService','collaboration-client-ui.collabStatus.synced','sheetId','isFormulaId','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','_drawTextRange','IMessageService','onTransformChange$','_handoffUnitIds','getSheetObject','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','urlChange$','getRangePointData','_refRangeService','getCoordByCell','lineTo','startRow','_beforeCloseService','height','debounceTime','_init','forceDisable','_hover','_sheetLoadingRenderService','_transformService','createInstance','_uploadLog','onCommandExecuted','_id','USERS_LEAVE','context','_startBoardCollabCursor','activeSheetId','enableFrontendLog','focused$','override','getUnitStatus$','slide-element-selection','handoff','createIdentifier','UNIVER_SHEET','collaboration-client-ui.permission.content','PENDING','_textBubble','switchMap','CollaborationEvent','dispose','setItem','filter','collaboration-client-ui.formula.calculation.started','_cachedData','onStarting','collaboration-client-ui.collabStatus.offline','collaboration-client-ui.config','_getSheetLoadingRenderService','delete','getLocalCacheKey','createElement','_cursor','slice','SetFormulaCalculationStartMutation','saveTaskMap','MessageType','_collabSessionService','_setupSubUnitSync','getRenderById','setLineDash','_collabCursorController','fillRule','takeUntil','history','InsertRowCommandId','collaboration-client-ui.collabStatus.syncing','_pointerMoveDisposable','_updateURLWithCurrentState','clearTimeout','search','toStringTag','Loading','blue.400','_document','getCollabCursors$','unload','DocStateChangeManagerService','sessionTicket','SHEET_VIEWPORT_KEY','getActivePageId','find','CollaborationStatus','size','/universer-api/license/formula/limit/done','triggerDblclick','_monkeyPatchLogService','getMemberID','post','getCollabEntity$','_onCursorDelete','location','SheetsSelectionsService','IBeforeCloseService','add','Vector2','collaboration-client-ui.collaboration.closeRoom','red.300','_themeService','_initStatusListener','string','\x20-\x20','top','getAllUnitsForType','range','SUBMIT_CHANGESET_TIMEOUT','getActiveRange','getSnapshot','setAlpha','setInterval','_eventUnsubscribe','backupOfflineData','body','_transformUndoRedoStack','_shapes','combineLatest','onPointerEnter$','getAncestorScale','isArray','max','buildDrawingOKey','values','DOC_RANGE_TYPE','hide','green.600','_updateCollabCursors','collab-text-anchor-','startFormulaLimitUrl','true','collaboration-client-ui.session.will-retry','_getMergeRange','8074952AaTLtT','_checkCalculationAvailable','_labelPosition','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','bold\x2013px\x20Arial,\x20sans-serif','_setFormulaLimitStatus','univer-text-gray-400','spin','subUnitId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','mergeOverrideWithDependencies','ranges','Tools','getSheetId','_cursorInfo$','angle','_hideTimer','univer-inline-flex\x20univer-items-center\x20univer-justify-center','ILocalCacheService','get','pluginName','scene','collaboration-client-ui.collaboration.offline-data-not-saved','useMemo','complete','_handleEvent','sessionStatus$','disposeWithMe','pushState','_initWindowErrorListener','_disabled','1675wnblQh','wsSessionTicketUrl','beforeCommandExecuted','ISnapshotServerService','entityInit$','alert','dark:focus:!univer-ring-offset-gray-800','transformSelections','getItem','ACTIVE_UNIT_EVENT_CHANNEL','_range','BehaviorSubject','unitId'];_0x1765=function(){return _0x1d886d;};return _0x1765();}const Y=_0x32171b(0x420);let X=class extends n[_0x32171b(0x45a)]{constructor(_0x8feb5,_0x1c78aa,_0xe595c2,_0xc7f540,_0x4b565c,_0x1dfb19,_0x35e595,_0x204a11){const _0xac2c3c=_0x32171b;super(),this[_0xac2c3c(0x48a)]=_0x8feb5,this['_messageService']=_0x1c78aa,this[_0xac2c3c(0x28a)]=_0xe595c2,this[_0xac2c3c(0x2e6)]=_0xc7f540,this[_0xac2c3c(0x2f5)]=_0x4b565c,this[_0xac2c3c(0x288)]=_0x35e595,this[_0xac2c3c(0x44b)]=_0x204a11,x(this,'_timeoutState$',new i['BehaviorSubject'](null)),x(this,_0xac2c3c(0x205),new i[(_0xac2c3c(0x3fb))](!0x1)),x(this,'_messageIds',new Set()),x(this,'_blockProgressWatches',new Map()),x(this,_0xac2c3c(0x350),new Set()),x(this,_0xac2c3c(0x47a),new Map()),x(this,_0xac2c3c(0x463),void 0x0),x(this,_0xac2c3c(0x481),void 0x0),x(this,_0xac2c3c(0x35f),void 0x0),x(this,_0xac2c3c(0x41b),this[_0xac2c3c(0x2ed)][_0xac2c3c(0x1a4)]());let _0x5dd645=()=>(0x0,c[_0xac2c3c(0x381)])(Ce,{'state$':this[_0xac2c3c(0x41b)],'interactionBlocked$':this[_0xac2c3c(0x205)]});this[_0xac2c3c(0x3ec)](_0x1dfb19[_0xac2c3c(0x24a)](r[_0xac2c3c(0x2be)][_0xac2c3c(0x257)],()=>(0x0,r['connectInjector'])(_0x5dd645,this[_0xac2c3c(0x2e6)]))),this[_0xac2c3c(0x3ec)](this[_0xac2c3c(0x48a)]['state$'][_0xac2c3c(0x2b4)](_0x3a4195=>{const _0x2f6934=_0xac2c3c;this[_0x2f6934(0x47a)]=_0x3a4195,_0x3a4195[_0x2f6934(0x19f)](_0x1366a3=>{const _0x3cad5f=_0x2f6934;this[_0x3cad5f(0x259)](_0x1366a3),this[_0x3cad5f(0x440)](_0x1366a3);});})),this[_0xac2c3c(0x3ec)](this[_0xac2c3c(0x44b)][_0xac2c3c(0x353)][_0xac2c3c(0x2b4)](()=>{const _0x356e40=_0xac2c3c;this[_0x356e40(0x47a)][_0x356e40(0x19f)](_0x4f5ba2=>{const _0x1c2531=_0x356e40;this[_0x1c2531(0x259)](_0x4f5ba2),this[_0x1c2531(0x440)](_0x4f5ba2);});}));}[_0x32171b(0x376)](){const _0x258243=_0x32171b;var _0x1192e8;if(this[_0x258243(0x414)][_0x258243(0x19f)](_0x22bc24=>this[_0x258243(0x1bf)]['remove'](_0x22bc24)),this[_0x258243(0x414)][_0x258243(0x1da)](),this[_0x258243(0x463)]){var _0x19b25b;(_0x19b25b=this[_0x258243(0x35f)])==null||_0x19b25b[_0x258243(0x3c9)](this['_previewUnitId']);}this[_0x258243(0x463)]=void 0x0,this[_0x258243(0x3fd)][_0x258243(0x19f)](({timeoutId:_0x2d0f23})=>clearTimeout(_0x2d0f23)),this['_blockProgressWatches']['clear'](),(_0x1192e8=this[_0x258243(0x481)])==null||_0x1192e8[_0x258243(0x376)](),this[_0x258243(0x481)]=void 0x0,this[_0x258243(0x2ed)][_0x258243(0x3e9)](),this['_interactionBlocked$'][_0x258243(0x3e9)](),super[_0x258243(0x376)]();}[_0x32171b(0x259)](_0xa39e0d){const _0x711e94=_0x32171b;let _0x581ec7=''+Y+_0xa39e0d[_0x711e94(0x3fc)];if(_0xa39e0d[_0x711e94(0x21c)]===p['SnapshotLoadStage'][_0x711e94(0x297)]){if(this[_0x711e94(0x2ec)](_0xa39e0d[_0x711e94(0x3fc)]),this[_0x711e94(0x40a)](_0xa39e0d['unitId'])&&this[_0x711e94(0x463)]===_0xa39e0d[_0x711e94(0x3fc)]){this[_0x711e94(0x1bf)][_0x711e94(0x1d1)]({'id':_0x581ec7,'type':o['MessageType'][_0x711e94(0x396)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x711e94(0x1d8))}),this[_0x711e94(0x414)][_0x711e94(0x3ac)](_0x581ec7);return;}this['_clearTimeoutState'](_0xa39e0d[_0x711e94(0x3fc)]),this['_messageService'][_0x711e94(0x231)](_0x581ec7),this[_0x711e94(0x414)]['delete'](_0x581ec7);return;}if(!this['_isVisibleUnit'](_0xa39e0d[_0x711e94(0x3fc)])){this['_clearBlockProgressWatch'](_0xa39e0d[_0x711e94(0x3fc)]),this[_0x711e94(0x27f)](_0xa39e0d[_0x711e94(0x3fc)]),this['_messageService'][_0x711e94(0x231)](_0x581ec7),this['_messageIds'][_0x711e94(0x37f)](_0x581ec7);return;}if(_0xa39e0d['stage']===p[_0x711e94(0x2cf)][_0x711e94(0x206)]){this['_clearBlockProgressWatch'](_0xa39e0d[_0x711e94(0x3fc)]),this['_clearTimeoutState'](_0xa39e0d[_0x711e94(0x3fc)]),this[_0x711e94(0x1bf)][_0x711e94(0x1d1)]({'id':_0x581ec7,'type':o[_0x711e94(0x386)][_0x711e94(0x343)],'content':this[_0x711e94(0x28a)]['t'](_0x711e94(0x41d))}),this[_0x711e94(0x414)]['delete'](_0x581ec7);return;}if(_0xa39e0d[_0x711e94(0x21c)]!==p[_0x711e94(0x2cf)][_0x711e94(0x1ab)]||_0xa39e0d[_0x711e94(0x438)]<=0xa){this['_clearBlockProgressWatch'](_0xa39e0d[_0x711e94(0x3fc)]),this[_0x711e94(0x1bf)][_0x711e94(0x231)](_0x581ec7),this[_0x711e94(0x414)]['delete'](_0x581ec7);return;}this[_0x711e94(0x21f)](_0xa39e0d)||(this[_0x711e94(0x1bf)]['show']({'id':_0x581ec7,'type':o[_0x711e94(0x386)]['Loading'],'duration':0x1/0x0,'content':this[_0x711e94(0x28a)]['t'](_0x711e94(0x1a3))+'\x20'+_0xa39e0d['loadedBlocks']+'/'+_0xa39e0d[_0x711e94(0x438)]}),this[_0x711e94(0x414)][_0x711e94(0x3ac)](_0x581ec7));}['_watchBlockProgress'](_0x878397){const _0x2e2a80=_0x32171b;let _0x46fa46=this[_0x2e2a80(0x3fd)]['get'](_0x878397[_0x2e2a80(0x3fc)]);if((_0x46fa46==null?void 0x0:_0x46fa46[_0x2e2a80(0x291)])===_0x878397[_0x2e2a80(0x291)])return _0x46fa46[_0x2e2a80(0x408)];this[_0x2e2a80(0x2ec)](_0x878397[_0x2e2a80(0x3fc)]);let _0x4ae138=setTimeout(()=>{const _0xbec6c9=_0x2e2a80;let _0x1b3e83=this[_0xbec6c9(0x3fd)][_0xbec6c9(0x3e4)](_0x878397[_0xbec6c9(0x3fc)]);if(!_0x1b3e83||_0x1b3e83[_0xbec6c9(0x29c)]!==_0x4ae138)return;_0x1b3e83[_0xbec6c9(0x408)]=!0x0;let _0x2d0e3b=''+Y+_0x878397[_0xbec6c9(0x3fc)];this['_messageService'][_0xbec6c9(0x231)](_0x2d0e3b),this[_0xbec6c9(0x414)][_0xbec6c9(0x37f)](_0x2d0e3b),this['_timeoutState$'][_0xbec6c9(0x1f5)]({'unitId':_0x878397[_0xbec6c9(0x3fc)],'content':this[_0xbec6c9(0x28a)]['t'](_0xbec6c9(0x28c),String(_0x878397[_0xbec6c9(0x291)]),String(_0x878397[_0xbec6c9(0x438)])),'refreshLabel':this[_0xbec6c9(0x28a)]['t'](_0xbec6c9(0x317))});},0xea60);return this[_0x2e2a80(0x3fd)]['set'](_0x878397[_0x2e2a80(0x3fc)],{'loadedBlocks':_0x878397[_0x2e2a80(0x291)],'timedOut':!0x1,'timeoutId':_0x4ae138}),!0x1;}['_clearBlockProgressWatch'](_0x140c51){const _0x4015d0=_0x32171b;let _0x237eaf=this[_0x4015d0(0x3fd)][_0x4015d0(0x3e4)](_0x140c51);_0x237eaf&&(clearTimeout(_0x237eaf[_0x4015d0(0x29c)]),this[_0x4015d0(0x3fd)]['delete'](_0x140c51),this[_0x4015d0(0x27f)](_0x140c51));}[_0x32171b(0x27f)](_0x580d03){const _0x172efe=_0x32171b;var _0x3edcaa;((_0x3edcaa=this[_0x172efe(0x2ed)][_0x172efe(0x309)])==null?void 0x0:_0x3edcaa[_0x172efe(0x3fc)])===_0x580d03&&this['_timeoutState$'][_0x172efe(0x1f5)](null);}[_0x32171b(0x440)](_0x5bfdbf){const _0x3242ab=_0x32171b;if(_0x5bfdbf[_0x3242ab(0x21c)]===p[_0x3242ab(0x2cf)][_0x3242ab(0x1f4)]&&this[_0x3242ab(0x350)][_0x3242ab(0x37f)](_0x5bfdbf[_0x3242ab(0x3fc)]),!this[_0x3242ab(0x40a)](_0x5bfdbf['unitId'])){this[_0x3242ab(0x1b9)](_0x5bfdbf['unitId']);return;}if(_0x5bfdbf['stage']===p['SnapshotLoadStage']['ERROR']||_0x5bfdbf[_0x3242ab(0x438)]<=0xa){this[_0x3242ab(0x1b9)](_0x5bfdbf[_0x3242ab(0x3fc)]);return;}if(_0x5bfdbf[_0x3242ab(0x21c)]===p['SnapshotLoadStage'][_0x3242ab(0x297)]){this[_0x3242ab(0x2f2)](_0x5bfdbf[_0x3242ab(0x3fc)]);return;}if(_0x5bfdbf['stage']===p[_0x3242ab(0x2cf)][_0x3242ab(0x1ab)]&&_0x5bfdbf[_0x3242ab(0x3fe)]&&_0x5bfdbf[_0x3242ab(0x368)]){let _0x53a89e=this['_getSheetLoadingRenderService']();if(!_0x53a89e)return;this['_previewUnitId']&&this[_0x3242ab(0x463)]!==_0x5bfdbf['unitId']&&this[_0x3242ab(0x1b9)](this[_0x3242ab(0x463)]),_0x53a89e[_0x3242ab(0x26c)](_0x5bfdbf['workbookShell'],_0x5bfdbf[_0x3242ab(0x368)]),this[_0x3242ab(0x463)]=_0x5bfdbf[_0x3242ab(0x3fc)],this[_0x3242ab(0x1c9)](!0x0),_0x5bfdbf[_0x3242ab(0x268)]&&_0x53a89e[_0x3242ab(0x1d1)](_0x5bfdbf[_0x3242ab(0x3fe)],_0x5bfdbf[_0x3242ab(0x368)],_0x5bfdbf[_0x3242ab(0x31a)]);}}[_0x32171b(0x2f2)](_0x5c5afb){const _0x256fb8=_0x32171b;if(this[_0x256fb8(0x463)]!==_0x5c5afb||this['_handoffUnitIds'][_0x256fb8(0x41a)](_0x5c5afb))return;let _0x3eb47c=this['_sheetLoadingRenderService'];_0x3eb47c&&(this[_0x256fb8(0x350)][_0x256fb8(0x3ac)](_0x5c5afb),_0x3eb47c[_0x256fb8(0x36e)](_0x5c5afb,0x2710)[_0x256fb8(0x22f)](_0x54f0b9=>{const _0x434930=_0x256fb8;if(this[_0x434930(0x463)]!==_0x5c5afb)return;if(_0x54f0b9){let _0x29dcaa=''+Y+_0x5c5afb;this[_0x434930(0x1bf)][_0x434930(0x231)](_0x29dcaa),this[_0x434930(0x414)][_0x434930(0x37f)](_0x29dcaa),this[_0x434930(0x463)]=void 0x0,this['_setInteractionBlocked'](!0x1);return;}let _0x4774ca=''+Y+_0x5c5afb;this[_0x434930(0x1bf)][_0x434930(0x231)](_0x4774ca),this['_messageIds'][_0x434930(0x37f)](_0x4774ca),this[_0x434930(0x2ed)][_0x434930(0x1f5)]({'unitId':_0x5c5afb,'content':this['_localeService']['t']('collaboration-client-ui.session.connection-failed'),'refreshLabel':this[_0x434930(0x28a)]['t'](_0x434930(0x317))});}));}['_hidePreview'](_0xd3ba15){const _0x5a3efa=_0x32171b;var _0x3107e4;this[_0x5a3efa(0x463)]===_0xd3ba15&&((_0x3107e4=this[_0x5a3efa(0x35f)])==null||_0x3107e4[_0x5a3efa(0x3c9)](_0xd3ba15),this[_0x5a3efa(0x463)]=void 0x0,this[_0x5a3efa(0x1c9)](!0x1));}[_0x32171b(0x1c9)](_0x2c9965){const _0x4d5133=_0x32171b;if(_0x2c9965!==this['_interactionBlocked$']['value']){if(_0x2c9965)this[_0x4d5133(0x481)]=this[_0x4d5133(0x288)][_0x4d5133(0x35d)]();else{var _0x520d02;(_0x520d02=this[_0x4d5133(0x481)])==null||_0x520d02[_0x4d5133(0x376)](),this['_shortcutBlock']=void 0x0;}this[_0x4d5133(0x205)]['next'](_0x2c9965);}}[_0x32171b(0x40a)](_0x1e5011){const _0x1ba130=_0x32171b;let _0x1e2a25=this[_0x1ba130(0x44b)]['getParam']('unit');return!_0x1e2a25||_0x1e2a25===_0x1e5011;}[_0x32171b(0x37e)](){const _0x370cf5=_0x32171b;return this[_0x370cf5(0x35f)]?this[_0x370cf5(0x35f)]:(this[_0x370cf5(0x2f5)][_0x370cf5(0x468)](n['UniverInstanceType'][_0x370cf5(0x370)]),this[_0x370cf5(0x2e6)][_0x370cf5(0x41a)](v[_0x370cf5(0x412)])&&(this[_0x370cf5(0x35f)]=this[_0x370cf5(0x2e6)][_0x370cf5(0x3e4)](v['ISheetLoadingRenderService'])),this[_0x370cf5(0x35f)]);}};X=C([S(0x0,(0x0,n[_0x32171b(0x329)])(p[_0x32171b(0x286)])),S(0x1,r['IMessageService']),S(0x2,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x227)])),S(0x3,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x25b)])),S(0x4,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x2fb)])),S(0x5,r['IUIPartsService']),S(0x6,r['IShortcutService']),S(0x7,H)],X);function Te(_0x605bb8){const _0x491f1e=_0x32171b;var _0x35efc1,_0x5dce05;let _0x243714=(_0x35efc1=_0x605bb8[_0x491f1e(0x2db)])==null?void 0x0:_0x35efc1[_0x491f1e(0x21c)],_0x7192bb=((_0x5dce05=_0x605bb8['stageInfo'])==null?void 0x0:_0x5dce05[_0x491f1e(0x44f)])||0x0;return _0x243714===h[_0x491f1e(0x207)][_0x491f1e(0x307)]&&_0x7192bb>0x0;}function Ee(_0xe70454){const _0x59ecf2=_0x32171b;return _0xe70454['functionsExecutedState']===h[_0x59ecf2(0x334)][_0x59ecf2(0x2e5)];}let Z=class extends n['Disposable']{constructor(_0x55f177,_0x53ab11,_0x4c9448,_0x143dc5,_0x442afa,_0x1eb33c,_0x3afe47){const _0xa5d2d5=_0x32171b;super(),this[_0xa5d2d5(0x1bf)]=_0x55f177,this[_0xa5d2d5(0x465)]=_0x53ab11,this[_0xa5d2d5(0x20f)]=_0x4c9448,this[_0xa5d2d5(0x40c)]=_0x143dc5,this[_0xa5d2d5(0x2c7)]=_0x442afa,this['_logService']=_0x1eb33c,this[_0xa5d2d5(0x28a)]=_0x3afe47,x(this,_0xa5d2d5(0x32a),null),x(this,_0xa5d2d5(0x20b),0x0),x(this,'_currentUsage',0x0),x(this,_0xa5d2d5(0x1f7),[]),x(this,_0xa5d2d5(0x269),0x0),this[_0xa5d2d5(0x295)]();}[_0x32171b(0x295)](){const _0x2e71eb=_0x32171b;this['disposeWithMe'](this[_0x2e71eb(0x465)][_0x2e71eb(0x3f2)]((_0x5e1a09,_0x121101)=>{const _0x79873d=_0x2e71eb;var _0x28ec80;if(_0x5e1a09['id']!==h[_0x79873d(0x384)]['id'])return;let _0x69d933=_0x5e1a09[_0x79873d(0x219)];if(this[_0x79873d(0x346)]((_0x28ec80=_0x69d933['dirtyRanges'])==null?[]:_0x28ec80)&&!this[_0x79873d(0x3d2)]())throw this[_0x79873d(0x2f1)](_0x5e1a09,_0x121101),this[_0x79873d(0x2d8)](),new n['CanceledError']();})),this[_0x2e71eb(0x3ec)](this['_commandService'][_0x2e71eb(0x363)]((_0x263002,_0x42d102)=>{const _0xd7881e=_0x2e71eb;if(_0x263002['id']!==h[_0xd7881e(0x402)]['id'])return;let _0x10372c=_0x263002[_0xd7881e(0x219)];if(Te(_0x10372c)){let _0x472eab=(0x0,n[_0xd7881e(0x470)])();this['_taskIds'][_0xd7881e(0x18d)](_0x472eab),this[_0xd7881e(0x1dd)](_0x472eab);}else{if(Ee(_0x10372c)&&this[_0xd7881e(0x1f7)][_0xd7881e(0x1f1)]>0x0){let _0x146dce=this[_0xd7881e(0x1f7)]['shift']();this[_0xd7881e(0x2ad)](_0x146dce);}}}));}['dispose'](){const _0x1e4990=_0x32171b;super[_0x1e4990(0x376)](),this[_0x1e4990(0x1b0)](),this['_taskIds']=[],this[_0x1e4990(0x2b9)]=0x0,this[_0x1e4990(0x20b)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x32171b(0x2f1)](_0x23117b,_0x4b07cb){const _0x465d5b=_0x32171b;for(let _0x154c12=0x0;_0x154c12<0x1e;_0x154c12++)try{if(await this[_0x465d5b(0x19c)](),this[_0x465d5b(0x3d2)]()){this[_0x465d5b(0x1f3)](_0x23117b,_0x4b07cb),this[_0x465d5b(0x1bf)][_0x465d5b(0x1d1)]({'content':this[_0x465d5b(0x28a)]['t'](_0x465d5b(0x379)),'type':o[_0x465d5b(0x386)]['Success']});return;}await new Promise(_0x1ed54e=>{const _0x438c5a=_0x465d5b;this[_0x438c5a(0x32a)]=window[_0x438c5a(0x1b8)](_0x1ed54e,0x3e8);});}catch(_0x523684){this[_0x465d5b(0x335)]['error'](_0x523684);}this['_messageService'][_0x465d5b(0x1d1)]({'content':this[_0x465d5b(0x28a)]['t'](_0x465d5b(0x248)),'type':o[_0x465d5b(0x386)][_0x465d5b(0x343)]});}[_0x32171b(0x1f3)](_0x479120,_0x4772f3){const _0x24fb3a=_0x32171b;try{this[_0x24fb3a(0x465)]['executeCommand'](_0x479120['id'],_0x479120[_0x24fb3a(0x219)],_0x4772f3);}catch(_0x475634){this[_0x24fb3a(0x335)][_0x24fb3a(0x23d)](_0x475634);}}[_0x32171b(0x3d6)](_0x38bd03,_0x4b5eb2){const _0x1cbb9d=_0x32171b;_0x4b5eb2<this[_0x1cbb9d(0x269)]||(this[_0x1cbb9d(0x269)]=_0x4b5eb2,this['_maxFormulaLimit']=Number[_0x1cbb9d(0x1b7)](_0x38bd03[_0x1cbb9d(0x1a7)]),this['_currentUsage']=Number['parseInt'](_0x38bd03[_0x1cbb9d(0x1b6)]));}async[_0x32171b(0x1dd)](_0x218394){const _0x401a19=_0x32171b;let _0x2ba21f=Date[_0x401a19(0x2e1)]();try{var _0x126c27,_0x3bb88c;let _0x20bbd7=((_0x126c27=this[_0x401a19(0x20f)][_0x401a19(0x483)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x126c27[_0x401a19(0x3cd)])||_0x401a19(0x235),_0x2dc56d=(await this[_0x401a19(0x40c)]['post'](_0x20bbd7,{'body':JSON[_0x401a19(0x242)]({'taskId':_0x218394})}))[_0x401a19(0x3be)];if(((_0x3bb88c=_0x2dc56d[_0x401a19(0x23d)])==null?void 0x0:_0x3bb88c[_0x401a19(0x2fe)])!==y[_0x401a19(0x25d)]['OK'])return;this[_0x401a19(0x3d6)](_0x2dc56d[_0x401a19(0x301)],_0x2ba21f);}catch(_0x875699){this[_0x401a19(0x335)][_0x401a19(0x23d)](_0x875699);}}async['_getFormulaLimitStatus'](_0x48dc41){const _0x5e9759=_0x32171b;let _0x580b4a=Date[_0x5e9759(0x2e1)]();try{var _0x57ac56,_0x1f7753;let _0x27a980=((_0x57ac56=this[_0x5e9759(0x20f)]['getConfig'](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x57ac56[_0x5e9759(0x2f6)])||'/universer-api/license/formula/limit/status',_0x2fb410=_0x48dc41?_0x27a980+_0x5e9759(0x2d3)+encodeURIComponent(_0x48dc41):_0x27a980,_0x27b087=(await this['_httpService'][_0x5e9759(0x3e4)](_0x2fb410))[_0x5e9759(0x3be)];if(((_0x1f7753=_0x27b087[_0x5e9759(0x23d)])==null?void 0x0:_0x1f7753[_0x5e9759(0x2fe)])!==y['ErrorCode']['OK'])return;this[_0x5e9759(0x3d6)](_0x27b087[_0x5e9759(0x301)],_0x580b4a);}catch(_0x2987fc){this['_logService'][_0x5e9759(0x23d)](_0x2987fc);}}async[_0x32171b(0x2ad)](_0x55cd25){const _0x3ce607=_0x32171b;let _0x4f8a2d=Date[_0x3ce607(0x2e1)]();try{var _0x283c4c,_0x3b297d;let _0x4787f9=((_0x283c4c=this[_0x3ce607(0x20f)][_0x3ce607(0x483)](t[_0x3ce607(0x433)]))==null?void 0x0:_0x283c4c[_0x3ce607(0x441)])||_0x3ce607(0x3a2),_0x4e0c3b=(await this['_httpService'][_0x3ce607(0x3a6)](_0x4787f9,{'body':JSON[_0x3ce607(0x242)]({'taskId':_0x55cd25})}))[_0x3ce607(0x3be)];if(((_0x3b297d=_0x4e0c3b[_0x3ce607(0x23d)])==null?void 0x0:_0x3b297d[_0x3ce607(0x2fe)])!==y['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x4e0c3b[_0x3ce607(0x301)],_0x4f8a2d);}catch(_0x2c5a17){this[_0x3ce607(0x335)][_0x3ce607(0x23d)](_0x2c5a17);}}[_0x32171b(0x3d2)](){const _0xd34b01=_0x32171b;return this[_0xd34b01(0x20b)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0xd34b01(0x2b9)]>0x0;}[_0x32171b(0x1b0)](){const _0x59f39e=_0x32171b;this[_0x59f39e(0x32a)]&&(clearTimeout(this['_pollingInterval']),this[_0x59f39e(0x32a)]=null);}[_0x32171b(0x2d8)](){const _0x524be2=_0x32171b;this['_messageService'][_0x524be2(0x1d1)]({'content':this[_0x524be2(0x28a)]['t'](_0x524be2(0x2b8)),'type':o[_0x524be2(0x386)][_0x524be2(0x396)]});}[_0x32171b(0x346)](_0x46a65e){const _0x5eb922=_0x32171b;for(let _0x44ea70 of _0x46a65e){let {unitId:_0x836101,sheetId:_0xeb917d,range:_0x3150ec}=_0x44ea70,_0x621874=this['_univerInstanceService'][_0x5eb922(0x2d1)](_0x836101);if(!_0x621874)continue;let _0x57b9f4=_0x621874['getSheetBySheetId'](_0xeb917d);if(!_0x57b9f4)continue;let _0x2832b9=_0x57b9f4[_0x5eb922(0x406)]();for(let _0x2d8338=_0x3150ec[_0x5eb922(0x358)];_0x2d8338<=_0x3150ec['endRow'];_0x2d8338++)for(let _0x5f3f02=_0x3150ec[_0x5eb922(0x22a)];_0x5f3f02<=_0x3150ec['endColumn'];_0x5f3f02++){let _0x5b3fb4=_0x2832b9[_0x5eb922(0x2c8)](_0x2d8338,_0x5f3f02);if(_0x5b3fb4&&((0x0,n['isFormulaString'])(_0x5b3fb4['f'])||(0x0,n[_0x5eb922(0x34b)])(_0x5b3fb4['si'])))return!0x0;}}return!0x1;}};Z=C([S(0x0,(0x0,n[_0x32171b(0x329)])(r[_0x32171b(0x34e)])),S(0x1,n['ICommandService']),S(0x2,n['IConfigService']),S(0x3,(0x0,n[_0x32171b(0x329)])(d[_0x32171b(0x2b6)])),S(0x4,n[_0x32171b(0x289)]),S(0x5,n['ILogService']),S(0x6,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x227)]))],Z);let De=class extends n[_0x32171b(0x45a)]{constructor(_0x22ca89,_0x5c4c10,_0x580c8c){const _0x4780ef=_0x32171b;super(),this[_0x4780ef(0x20f)]=_0x22ca89,this['_localStorageService']=_0x5c4c10,this[_0x4780ef(0x45f)]=_0x580c8c,x(this,_0x4780ef(0x37a),new Map()),x(this,_0x4780ef(0x325),new Map()),x(this,_0x4780ef(0x3ef),!0x1);}['disableLocalCache'](){const _0x4cda10=_0x32171b;this[_0x4cda10(0x3ef)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x32171b(0x385)](){return this['_saveTaskMap'];}[_0x32171b(0x376)](){const _0x453c03=_0x32171b;this[_0x453c03(0x188)]()[_0x453c03(0x22f)](()=>super['dispose']());}async[_0x32171b(0x1d5)](_0x1f18ca){const _0x535fd3=_0x32171b;return this['_disabled']?null:this[_0x535fd3(0x2c4)]['getItem']((0x0,t['getLocalCacheKey'])(_0x1f18ca));}async[_0x32171b(0x18b)](_0x168851,_0x23096a){const _0x5a3917=_0x32171b;return!!this[_0x5a3917(0x2c4)][_0x5a3917(0x377)]((0x0,t[_0x5a3917(0x380)])(_0x168851),_0x23096a);}async[_0x32171b(0x3bd)](_0x1e8e6b,_0x53337f){const _0x58c72b=_0x32171b;var _0x57f5eb;let _0x465230=(_0x57f5eb=this['_cachedData'][_0x58c72b(0x3e4)](_0x1e8e6b))==null?await this[_0x58c72b(0x2c4)][_0x58c72b(0x3f8)]((0x0,t[_0x58c72b(0x380)])(_0x1e8e6b)):_0x57f5eb;if(!_0x465230)return;let _0x239aff=Date[_0x58c72b(0x2e1)](),_0x281480=new Date(_0x239aff)[_0x58c72b(0x236)]();await this[_0x58c72b(0x2c4)][_0x58c72b(0x377)]((0x0,t[_0x58c72b(0x380)])(_0x1e8e6b)+':backup:'+_0x239aff,{'reason':_0x53337f,'createdAt':_0x281480,'data':_0x465230});}['updateOfflineData'](_0x42d16f,_0x1d5f74,_0x1d1f9c,_0x3c0169){const _0xd2cc36=_0x32171b;let _0x174cc4=this[_0xd2cc36(0x45f)][_0xd2cc36(0x17b)](_0x42d16f);this['_cachedData'][_0xd2cc36(0x30a)](_0x42d16f,{'unitID':_0x42d16f,'type':_0x1d5f74,'awaitingChangeset':_0x1d1f9c,'mutations':_0x3c0169,'rev':_0x174cc4}),this[_0xd2cc36(0x325)]['has'](_0x42d16f)||this['_scheduleSaving'](_0x42d16f);}['_scheduleSaving'](_0x3b1d0a){const _0x5748cc=_0x32171b;let _0x3fb2a8=this[_0x5748cc(0x23b)]();_0x3fb2a8===0x0?this[_0x5748cc(0x2e3)](_0x3b1d0a):this['_saveTaskMap']['set'](_0x3b1d0a,window['setTimeout'](()=>this[_0x5748cc(0x2e3)](_0x3b1d0a),_0x3fb2a8));}['_getSaveTimeout'](){const _0x56a646=_0x32171b;var _0x4726a3;return(_0x4726a3=this[_0x56a646(0x20f)]['getConfig'](t['LOCAL_CACHE_INTERVAL_KEY']))==null?t['LOCAL_CACHE_INTERVAL']:_0x4726a3;}[_0x32171b(0x2e3)](_0x4019a8){const _0x431948=_0x32171b;let _0x2ebbef=this[_0x431948(0x325)][_0x431948(0x3e4)](_0x4019a8);return _0x2ebbef!==void 0x0&&window[_0x431948(0x393)](_0x2ebbef),this['_localStorageService'][_0x431948(0x377)]((0x0,t[_0x431948(0x380)])(_0x4019a8),this[_0x431948(0x37a)]['get'](_0x4019a8))[_0x431948(0x22f)](()=>this['_saveTaskMap']['delete'](_0x4019a8));}async[_0x32171b(0x188)](){const _0x3b9ef3=_0x32171b;let _0x4d9baf=[];this[_0x3b9ef3(0x325)][_0x3b9ef3(0x19f)]((_0x3b82c2,_0x57c1a7)=>{const _0x456a4a=_0x3b9ef3;window['clearTimeout'](_0x3b82c2),_0x4d9baf[_0x456a4a(0x18d)](this[_0x456a4a(0x2e3)](_0x57c1a7)[_0x456a4a(0x22f)](()=>{const _0x4fd85d=_0x456a4a;this[_0x4fd85d(0x325)]['delete'](_0x57c1a7);}));}),await Promise[_0x3b9ef3(0x437)](_0x4d9baf);}};De=C([S(0x0,n[_0x32171b(0x267)]),S(0x1,n['ILocalStorageService']),S(0x2,(0x0,n[_0x32171b(0x329)])(p[_0x32171b(0x1aa)]))],De);var Oe=class extends n[_0x32171b(0x467)]{constructor(){const _0x382fe8=_0x32171b;super(),x(this,_0x382fe8(0x353),void 0x0),this[_0x382fe8(0x353)]=(0x0,i[_0x382fe8(0x18f)])(window,_0x382fe8(0x43f))[_0x382fe8(0x1fa)]((0x0,i[_0x382fe8(0x38d)])(this[_0x382fe8(0x273)]),(0x0,i[_0x382fe8(0x2a8)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i[_0x382fe8(0x28d)])(void 0x0));}[_0x32171b(0x319)](_0x30d147,_0xac2a2f,_0x15366d=!0x1){const _0x5b3399=_0x32171b;let _0x245cdb=new URL(window['location'][_0x5b3399(0x3ff)]);_0x245cdb[_0x5b3399(0x1e5)][_0x5b3399(0x30a)](_0x30d147,_0xac2a2f),_0x15366d?window[_0x5b3399(0x38e)][_0x5b3399(0x2cc)]('','',_0x245cdb['toString']()):window[_0x5b3399(0x38e)][_0x5b3399(0x3ed)]('','',_0x245cdb[_0x5b3399(0x430)]());}[_0x32171b(0x2ee)](_0xea3a14,_0x242f31=!0x1){const _0x546b37=_0x32171b;let _0x3879b6=new URL(window[_0x546b37(0x3a9)]['href']);_0x3879b6[_0x546b37(0x1e5)][_0x546b37(0x37f)](_0xea3a14),_0x242f31?window[_0x546b37(0x38e)][_0x546b37(0x2cc)]('','',_0x3879b6[_0x546b37(0x430)]()):window[_0x546b37(0x38e)]['pushState']('','',_0x3879b6['toString']());}[_0x32171b(0x1cd)](_0x46908e){const _0x191dc4=_0x32171b;var _0x16773c;return(_0x16773c=new URL(window['location'][_0x191dc4(0x3ff)])[_0x191dc4(0x1e5)][_0x191dc4(0x3e4)](_0x46908e))==null?void 0x0:_0x16773c;}};let Q=class extends n[_0x32171b(0x2e7)]{constructor(_0x2b5f60=ue,_0x3056a6,_0x630ee1,_0xfee778){const _0x2272ed=_0x32171b;super(),this['_config']=_0x2b5f60,this['_renderManagerService']=_0x3056a6,this['_injector']=_0x630ee1,this[_0x2272ed(0x20f)]=_0xfee778;let {..._0x4c40fc}=(0x0,n[_0x2272ed(0x204)])({},ue,this['_config']);this[_0x2272ed(0x20f)][_0x2272ed(0x2ce)](_0x2272ed(0x37d),_0x4c40fc);}[_0x32171b(0x37b)](){const _0x13043e=_0x32171b;this[_0x13043e(0x2de)](),this['_initDependencies']();}['onRendered'](){const _0xb0fd3e=_0x32171b;this[_0xb0fd3e(0x200)]();}[_0x32171b(0x2de)](){const _0x39a115=_0x32171b;var _0x366875;let _0x111e64=[[k],[Z],[H,{'useClass':Oe}],[d[_0x39a115(0x27e)],{'useClass':d['WebSocketService']}],[t[_0x39a115(0x3e3)],{'useClass':De}],[w],[T],[V],[F],[U],[X]];this[_0x39a115(0x1cc)][_0x39a115(0x1f2)]!==!0x1&&_0x111e64['push']([K],[W],[G],[j],[q],[E]),this[_0x39a115(0x1cc)][_0x39a115(0x369)]&&_0x111e64[_0x39a115(0x18d)]([J]),(0x0,n['registerDependencies'])(this[_0x39a115(0x2e6)],(0x0,n[_0x39a115(0x3db)])(_0x111e64,(_0x366875=this[_0x39a115(0x1cc)])==null?void 0x0:_0x366875[_0x39a115(0x36b)]));}[_0x32171b(0x200)](){const _0x476250=_0x32171b;this['_config'][_0x476250(0x1f2)]!==!0x1&&this[_0x476250(0x3ec)](this[_0x476250(0x224)][_0x476250(0x487)](n[_0x476250(0x212)][_0x476250(0x304)],[R])),this[_0x476250(0x3ec)](this[_0x476250(0x224)][_0x476250(0x487)](n[_0x476250(0x212)]['UNIVER_SHEET'],[z])),this[_0x476250(0x3ec)](this[_0x476250(0x224)][_0x476250(0x487)](n[_0x476250(0x212)][_0x476250(0x452)],[B])),this[_0x476250(0x3ec)](this[_0x476250(0x224)][_0x476250(0x487)](n[_0x476250(0x212)]['UNIVER_BOARD'],[I]));}[_0x32171b(0x474)](){const _0x2ac83d=_0x32171b;(0x0,n['touchDependencies'])(this['_injector'],[[F],[w],[T],[V],[U],[Z],[X]]),this[_0x2ac83d(0x1cc)]['enableDocumentCollaborationUI']!==!0x1&&(0x0,n['touchDependencies'])(this[_0x2ac83d(0x2e6)],[[q],[E]]),this[_0x2ac83d(0x1cc)][_0x2ac83d(0x369)]&&(0x0,n['touchDependencies'])(this[_0x2ac83d(0x2e6)],[[J]]);}};x(Q,_0x32171b(0x3e5),_0x32171b(0x43b)),x(Q,'packageName',ce),x(Q,_0x32171b(0x451),le),Q=C([(0x0,n[_0x32171b(0x454)])(t['UniverCollaborationClientPlugin']),S(0x1,u[_0x32171b(0x28b)]),S(0x2,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x25b)])),S(0x3,n['IConfigService'])],Q);let ke=class extends t['CollaborationSocketService']{constructor(_0x13b297,_0x45b42d,_0x52bcf5,_0x190346,_0x1a0e39){super(_0x13b297,_0x45b42d,_0x52bcf5,_0x190346,_0x1a0e39);}async[_0x32171b(0x1a9)](_0x2e1622){const _0x23cf64=_0x32171b;let _0x929c6d=await this[_0x23cf64(0x2c1)](),_0x42e4cd=this[_0x23cf64(0x1c5)](_0x2e1622,_0x929c6d);return this[_0x23cf64(0x255)](_0x42e4cd);}[_0x32171b(0x1c5)](_0x5ec3bc,_0x3cca58){const _0x225847=_0x32171b;let _0xe74db6=typeof window>'u'?new URL(_0x5ec3bc):new URL(_0x5ec3bc,window[_0x225847(0x3a9)][_0x225847(0x2a2)]);_0xe74db6[_0x225847(0x1e5)][_0x225847(0x30a)](_0x225847(0x39c),_0x3cca58);let _0x23c64b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x225847(0x394)]);return _0x23c64b[_0x225847(0x3e4)](_0x225847(0x29a))&&_0xe74db6['searchParams']['set'](_0x225847(0x29a),_0x23c64b[_0x225847(0x3e4)](_0x225847(0x29a))),_0xe74db6[_0x225847(0x430)]();}async[_0x32171b(0x2c1)](){const _0x2ae430=_0x32171b;var _0x104e53,_0x49c6a4,_0xab6c87;let _0x5ec133=this[_0x2ae430(0x20f)][_0x2ae430(0x483)](t[_0x2ae430(0x433)]),_0x178a3b=(_0x104e53=_0x5ec133==null?void 0x0:_0x5ec133[_0x2ae430(0x3f1)])==null?t[_0x2ae430(0x342)]:_0x104e53;return(_0x49c6a4=(_0xab6c87=(await this[_0x2ae430(0x40c)]['get'](_0x178a3b,{'headers':{'Content-Type':'application/json'}}))[_0x2ae430(0x3be)])==null?void 0x0:_0xab6c87['ticket'])==null?'':_0x49c6a4;}};ke=C([S(0x0,(0x0,n[_0x32171b(0x329)])(n['Injector'])),S(0x1,(0x0,n[_0x32171b(0x329)])(d[_0x32171b(0x2b6)])),S(0x2,n[_0x32171b(0x267)]),S(0x3,n['ILogService']),S(0x4,p[_0x32171b(0x3f3)])],ke);let $=class extends n[_0x32171b(0x45a)]{constructor(_0x3573fe,_0x3bf11a,_0xf72f74){const _0x2ad35c=_0x32171b;super(),this[_0x2ad35c(0x42b)]=_0x3573fe,this[_0x2ad35c(0x40c)]=_0x3bf11a,this['_configService']=_0xf72f74;}async[_0x32171b(0x473)](_0x11067a,_0x15cccb,_0x27ad39,..._0x5e00b1){const _0x16a067=_0x32171b;var _0x165722,_0x4edefa,_0x4de7e1,_0x4b7f43;let _0x164f44=this['_instanceService'][_0x16a067(0x1a2)]();if(!_0x164f44)throw Error(_0x16a067(0x3da));let _0x2bb6f4=((_0x165722=this[_0x16a067(0x20f)][_0x16a067(0x483)](t['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))==null?t['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']:_0x165722)+'/'+_0x11067a+'/run/'+_0x15cccb,_0x138a3b={'scriptId':_0x11067a,'runId':(_0x4edefa=new URL(window['location'][_0x16a067(0x3ff)])[_0x16a067(0x1e5)][_0x16a067(0x3e4)]('runId'))==null?'':_0x4edefa,'function':_0x15cccb,'unitId':_0x164f44[_0x16a067(0x261)](),'argsOfFunction':JSON[_0x16a067(0x242)](_0x5e00b1),'invokeId':(_0x4de7e1=_0x27ad39[_0x16a067(0x2ef)])==null?'':_0x4de7e1,'executionId':(_0x4b7f43=_0x27ad39['executionId'])==null?'':_0x4b7f43};try{let _0x5cc54c=await this[_0x16a067(0x40c)][_0x16a067(0x3a6)](_0x2bb6f4,{'body':_0x138a3b});return _0x5cc54c[_0x16a067(0x3be)][_0x16a067(0x23d)]&&_0x5cc54c['body'][_0x16a067(0x23d)]['code']!==y[_0x16a067(0x25d)]['OK']?_0x16a067(0x276):_0x5cc54c[_0x16a067(0x3be)]['result'];}catch{return _0x16a067(0x276);}}};function _0x4167(_0x5ae485,_0x3f1dea){_0x5ae485=_0x5ae485-0x177;const _0x176518=_0x1765();let _0x4167d1=_0x176518[_0x5ae485];return _0x4167d1;}$=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n[_0x32171b(0x329)])(d[_0x32171b(0x2b6)])),S(0x2,n[_0x32171b(0x267)])],$);const Ae=0x7530,je=_0x32171b(0x3f9);var Me=class extends n[_0x32171b(0x45a)]{constructor(){const _0x588e93=_0x32171b;super(),x(this,_0x588e93(0x364),(0x0,n[_0x588e93(0x470)])()),x(this,_0x588e93(0x493),new Set()),x(this,_0x588e93(0x25a),new Map()),x(this,_0x588e93(0x29e),null),x(this,'_clearOtherTimers',new Map()),x(this,'_unitStatus',new Map()),this[_0x588e93(0x35c)]();}[_0x32171b(0x376)](){const _0x1548fd=_0x32171b;super[_0x1548fd(0x376)](),this[_0x1548fd(0x187)][_0x1548fd(0x19f)]((_0x121514,_0x3edbeb)=>this[_0x1548fd(0x1b5)](_0x3edbeb)),this[_0x1548fd(0x29e)]&&window[_0x1548fd(0x1c0)](this[_0x1548fd(0x29e)]);}[_0x32171b(0x36c)](_0x3c8cf9){const _0x1a11ad=_0x32171b;return this[_0x1a11ad(0x1a5)](_0x3c8cf9)[_0x1a11ad(0x1fa)]((0x0,i[_0x1a11ad(0x323)])());}[_0x32171b(0x26b)](_0x2f96f2){const _0x282362=_0x32171b;this[_0x282362(0x493)]['size']===0x0&&this[_0x282362(0x424)](),this[_0x282362(0x493)][_0x282362(0x3ac)](_0x2f96f2),this['_send']({'type':0x0,'memberID':this[_0x282362(0x364)],'unitIDs':[_0x2f96f2],'isForwarded':!0x1});}[_0x32171b(0x254)](_0x5a1e81){const _0x5923e6=_0x32171b;this[_0x5923e6(0x493)]['delete'](_0x5a1e81),this[_0x5923e6(0x493)]['size']===0x0&&this[_0x5923e6(0x29e)]&&window[_0x5923e6(0x1c0)](this[_0x5923e6(0x29e)]);}[_0x32171b(0x35c)](){const _0x5220ac=_0x32171b;this['disposeWithMe']((0x0,n[_0x5220ac(0x216)])((0x0,i[_0x5220ac(0x18f)])(window,_0x5220ac(0x27a))[_0x5220ac(0x2b4)](_0x297e2b=>{const _0x36425f=_0x5220ac;if(_0x297e2b[_0x36425f(0x25f)]!==je||!_0x297e2b['newValue'])return;let _0x238967=JSON[_0x36425f(0x46e)](_0x297e2b[_0x36425f(0x27b)]);this[_0x36425f(0x3ea)](_0x238967);}))),window[_0x5220ac(0x490)](_0x5220ac(0x39a),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5220ac(0x461)](this['_selfUnitIDs'])}));}[_0x32171b(0x3ea)](_0x5aa978){const _0x1a3400=_0x32171b;switch(_0x5aa978[_0x1a3400(0x1ef)]){case 0x0:this[_0x1a3400(0x191)](_0x5aa978);break;case 0x1:this[_0x1a3400(0x2bc)](_0x5aa978);break;case 0x2:this[_0x1a3400(0x44c)](_0x5aa978);break;}}[_0x32171b(0x191)](_0x3522c4){const _0x54135f=_0x32171b;let {unitIDs:_0x55a942,memberID:_0x41a340,isForwarded:_0x250995}=_0x3522c4;_0x55a942['forEach'](_0x593bde=>{const _0x239dba=_0x4167;if(!_0x250995&&this[_0x239dba(0x25a)][_0x239dba(0x41a)](_0x593bde)&&this[_0x239dba(0x1a5)](_0x593bde)[_0x239dba(0x1f5)](t[_0x239dba(0x45d)][_0x239dba(0x2ab)]),!this[_0x239dba(0x25a)]['has'](_0x593bde)||!this['_unitOnClients']['get'](_0x593bde)[_0x239dba(0x41a)](_0x41a340)){let _0x39ae3e=this[_0x239dba(0x25a)]['get'](_0x593bde)||new Set();_0x39ae3e[_0x239dba(0x3ac)](_0x41a340),this[_0x239dba(0x25a)][_0x239dba(0x30a)](_0x593bde,_0x39ae3e),this[_0x239dba(0x20e)](_0x41a340);}}),_0x250995||this[_0x54135f(0x46b)]({'type':0x0,'memberID':this[_0x54135f(0x364)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x32171b(0x20e)](_0x5af4ff){const _0xa863dc=_0x32171b;this['_removeClearOtherTimer'](_0x5af4ff);let _0x5699d9=window[_0xa863dc(0x1b8)](()=>{const _0xe63ca7=_0xa863dc;this[_0xe63ca7(0x25a)][_0xe63ca7(0x19f)](_0x46f8c9=>{const _0x472acd=_0xe63ca7;_0x46f8c9[_0x472acd(0x37f)](_0x5af4ff);});},Ae*0x2);this['_clearOtherTimers']['set'](_0x5af4ff,_0x5699d9);}[_0x32171b(0x1b5)](_0x5afdfb){const _0x288ecf=_0x32171b;if(this[_0x288ecf(0x187)][_0x288ecf(0x41a)](_0x5afdfb)){let _0xc8e057=this[_0x288ecf(0x187)]['get'](_0x5afdfb);_0xc8e057&&window['clearTimeout'](_0xc8e057),this['_clearOtherTimers']['set'](_0x5afdfb,null);}}[_0x32171b(0x2bc)](_0x472b16){let {memberID:_0x36158e,unitIDs:_0x17b8fb}=_0x472b16;_0x17b8fb['forEach'](_0x2351b7=>{const _0x2bd4ae=_0x4167;var _0x518aa1;let _0xc9d62=this[_0x2bd4ae(0x25a)][_0x2bd4ae(0x3e4)](_0x2351b7);_0xc9d62&&(_0xc9d62[_0x2bd4ae(0x37f)](_0x36158e),(_0x518aa1=this['_ensureSubject'](_0x2351b7))==null||_0x518aa1[_0x2bd4ae(0x1f5)](_0xc9d62[_0x2bd4ae(0x3a1)]===0x0?t[_0x2bd4ae(0x45d)]['NO_OTHER_CLIENTS_EDITING']:t[_0x2bd4ae(0x45d)][_0x2bd4ae(0x2ab)]));}),this['_removeClearOtherTimer'](_0x36158e);}[_0x32171b(0x44c)](_0xf778bf){const _0x41c09a=_0x32171b;this['_scheduleClearOtherTimer'](_0xf778bf[_0x41c09a(0x2fc)]);}[_0x32171b(0x46b)](_0x428978){const _0xf68d25=_0x32171b;localStorage[_0xf68d25(0x377)](je,JSON[_0xf68d25(0x242)](_0x428978));}[_0x32171b(0x424)](){const _0x486f96=_0x32171b;this[_0x486f96(0x29e)]=window[_0x486f96(0x3bb)](()=>{const _0x11a3be=_0x486f96;this[_0x11a3be(0x46b)]({'type':0x2,'memberID':this[_0x11a3be(0x364)]});},Ae);}['_ensureSubject'](_0x1e1498){const _0x3d7637=_0x32171b;return this['_unitStatus'][_0x3d7637(0x41a)](_0x1e1498)||this['_unitStatus'][_0x3d7637(0x30a)](_0x1e1498,new i['BehaviorSubject'](t[_0x3d7637(0x45d)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x3d7637(0x196)][_0x3d7637(0x3e4)](_0x1e1498);}};Object[_0x32171b(0x1e6)](exports,_0x32171b(0x400),{'enumerable':!0x0,'get':function(){return ke;}}),Object[_0x32171b(0x1e6)](exports,_0x32171b(0x2a6),{'enumerable':!0x0,'get':function(){return w;}}),exports[_0x32171b(0x17e)]=H,Object['defineProperty'](exports,_0x32171b(0x422),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x32171b(0x220)]=xe,Object[_0x32171b(0x1e6)](exports,_0x32171b(0x310),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x32171b(0x24e)]=Me;
1
+ const _0x4fde36=_0x4dee;(function(_0x276877,_0x639d91){const _0x37a9a5=_0x4dee,_0x54e0c3=_0x276877();while(!![]){try{const _0x17ccd1=parseInt(_0x37a9a5(0x248))/0x1+-parseInt(_0x37a9a5(0x2bd))/0x2*(-parseInt(_0x37a9a5(0x1a8))/0x3)+parseInt(_0x37a9a5(0x2d7))/0x4*(parseInt(_0x37a9a5(0x19d))/0x5)+-parseInt(_0x37a9a5(0x193))/0x6*(-parseInt(_0x37a9a5(0x301))/0x7)+-parseInt(_0x37a9a5(0x424))/0x8+-parseInt(_0x37a9a5(0x44f))/0x9*(-parseInt(_0x37a9a5(0x1c0))/0xa)+-parseInt(_0x37a9a5(0x362))/0xb*(parseInt(_0x37a9a5(0x1ee))/0xc);if(_0x17ccd1===_0x639d91)break;else _0x54e0c3['push'](_0x54e0c3['shift']());}catch(_0x4b9eb1){_0x54e0c3['push'](_0x54e0c3['shift']());}}}(_0x29fa,0x5ce08),Object[_0x4fde36(0x319)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/engine-render'),d=require('@univerjs/network'),f=require('@univerjs/docs-ui'),p=require('@univerjs-pro/collaboration'),m=require('@univerjs/docs'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs-pro/slides-ui'),v=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),y=require('@univerjs/protocol');function te(_0xe321b8){const _0x2c3b45=_0x4fde36;switch(_0xe321b8){case t[_0x2c3b45(0x45c)]['OFFLINE']:return{'icon':(0x0,l['jsx'])(s['OffLineIcon'],{}),'colorClass':_0x2c3b45(0x290),'i18nKey':_0x2c3b45(0x3e0),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x2c3b45(0x17d)};case t[_0x2c3b45(0x45c)]['CONFLICT']:return{'icon':(0x0,l[_0x2c3b45(0x307)])(s[_0x2c3b45(0x42b)],{}),'colorClass':'univer-text-orange-500','i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x2c3b45(0x17d)};case t['CollaborationStatus'][_0x2c3b45(0x247)]:return{'icon':(0x0,l[_0x2c3b45(0x307)])(s['LoadingMultiIcon'],{}),'colorClass':_0x2c3b45(0x200),'i18nKey':_0x2c3b45(0x3b9),'clickable':!0x1,'indicator':_0x2c3b45(0x311)};case t['CollaborationStatus'][_0x2c3b45(0x2eb)]:return{'icon':(0x0,l[_0x2c3b45(0x307)])(s[_0x2c3b45(0x1ca)],{}),'colorClass':_0x2c3b45(0x373),'i18nKey':_0x2c3b45(0x2e3),'clickable':!0x1,'indicator':_0x2c3b45(0x17d)};case t[_0x2c3b45(0x45c)]['AWAITING']:case t['CollaborationStatus'][_0x2c3b45(0x2a0)]:return{'icon':(0x0,l[_0x2c3b45(0x307)])(s['LoadingMultiIcon'],{}),'colorClass':_0x2c3b45(0x200),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x2c3b45(0x311)};case t[_0x2c3b45(0x45c)][_0x2c3b45(0x2c7)]:return{'icon':(0x0,l['jsx'])(s[_0x2c3b45(0x444)],{}),'colorClass':_0x2c3b45(0x200),'i18nKey':_0x2c3b45(0x268),'clickable':!0x1,'indicator':_0x2c3b45(0x311)};case t[_0x2c3b45(0x45c)][_0x2c3b45(0x3cd)]:return{'icon':(0x0,l['jsx'])(s[_0x2c3b45(0x1ca)],{}),'colorClass':_0x2c3b45(0x364),'i18nKey':_0x2c3b45(0x228),'clickable':!0x1,'indicator':'static'};}}function ne(_0x48b84a){const _0xb04f30=_0x4fde36;let {status$:_0x1f0c1f}=_0x48b84a,_0x33803b=(0x0,r[_0xb04f30(0x2be)])(_0x1f0c1f,t[_0xb04f30(0x45c)][_0xb04f30(0x2eb)]),_0x4eeadb=(0x0,r[_0xb04f30(0x443)])(n[_0xb04f30(0x1da)]),_0x2949d4=(0x0,r[_0xb04f30(0x443)])(t[_0xb04f30(0x289)]),_0xbe5474=(0x0,c[_0xb04f30(0x279)])(()=>te(_0x33803b),[_0x33803b]),_0x2e99f5=_0x33803b!==t['CollaborationStatus'][_0xb04f30(0x471)],_0x1a3b02=_0x4eeadb['t'](_0xbe5474['i18nKey']),_0x16a572=_0xbe5474[_0xb04f30(0x2da)]?_0x4eeadb['t'](_0xbe5474[_0xb04f30(0x2da)]):_0x1a3b02,_0x2bb6f3=(0x0,c[_0xb04f30(0x3c8)])(()=>{const _0x41a8a7=_0xb04f30;_0x2e99f5||_0x2949d4[_0x41a8a7(0x335)]();},[_0x2e99f5,_0x2949d4]),_0x49a622=(0x0,c[_0xb04f30(0x3c8)])(_0x3c2c67=>{const _0x3db5ac=_0xb04f30;!_0x2e99f5&&(_0x3c2c67['key']===_0x3db5ac(0x219)||_0x3c2c67[_0x3db5ac(0x377)]==='\x20')&&(_0x3c2c67[_0x3db5ac(0x458)](),_0x2949d4[_0x3db5ac(0x335)]());},[_0x2e99f5,_0x2949d4]),_0x3c669c=(0x0,l[_0xb04f30(0x307)])('span',{'className':(0x0,o[_0xb04f30(0x454)])(_0xb04f30(0x316),_0xb04f30(0x35b),_0xbe5474[_0xb04f30(0x2dd)],{'univer-animate-spin':_0xbe5474['indicator']===_0xb04f30(0x311),'univer-animate-pulse':_0xbe5474['indicator']===_0xb04f30(0x2b0)}),'aria-hidden':_0xb04f30(0x418),'children':_0xbe5474['icon']}),_0x3c2d5b=(0x0,l[_0xb04f30(0x307)])(_0xb04f30(0x303),{'className':(0x0,o[_0xb04f30(0x454)])(_0xb04f30(0x316),_0xb04f30(0x170),_0xb04f30(0x1f6),_0xb04f30(0x2a6),_0xb04f30(0x173),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0xbe5474[_0xb04f30(0x169)],'univer-cursor-default':!_0xbe5474[_0xb04f30(0x169)]}),'children':_0x3c669c});return _0xbe5474[_0xb04f30(0x169)]?(0x0,l['jsx'])(o[_0xb04f30(0x365)],{'title':_0x16a572,'placement':_0xb04f30(0x348),'children':(0x0,l[_0xb04f30(0x307)])(_0xb04f30(0x2b6),{'type':_0xb04f30(0x2b6),'onClick':_0x2bb6f3,'onKeyDown':_0x49a622,'className':(0x0,o[_0xb04f30(0x454)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0xb04f30(0x229),'univer-m-0\x20univer-p-0',_0xb04f30(0x274)),'aria-label':_0x1a3b02+'\x20-\x20'+_0x16a572,'role':_0xb04f30(0x32f),'aria-live':_0xb04f30(0x306),'aria-atomic':_0xb04f30(0x418),'children':_0x3c2d5b})}):(0x0,l[_0xb04f30(0x307)])(o['Tooltip'],{'title':_0x16a572,'placement':_0xb04f30(0x348),'children':(0x0,l[_0xb04f30(0x307)])(_0xb04f30(0x3b8),{'className':(0x0,o[_0xb04f30(0x454)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-border-none\x20univer-bg-transparent','univer-m-0\x20univer-p-0'),'aria-label':_0x1a3b02,'role':'status','aria-live':_0xb04f30(0x306),'aria-atomic':_0xb04f30(0x418),'children':_0x3c2d5b})});}function b(_0x3353e5){'@babel/helpers - typeof';return b=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x5e6711){return typeof _0x5e6711;}:function(_0x21d9d8){const _0x29e23d=_0x4dee;return _0x21d9d8&&typeof Symbol=='function'&&_0x21d9d8[_0x29e23d(0x42d)]===Symbol&&_0x21d9d8!==Symbol[_0x29e23d(0x321)]?_0x29e23d(0x341):typeof _0x21d9d8;},b(_0x3353e5);}function re(_0x482aea,_0x392218){const _0x5bd06e=_0x4fde36;if(b(_0x482aea)!='object'||!_0x482aea)return _0x482aea;var _0x1eefdc=_0x482aea[Symbol[_0x5bd06e(0x1fb)]];if(_0x1eefdc!==void 0x0){var _0x5a1942=_0x1eefdc['call'](_0x482aea,_0x392218||_0x5bd06e(0x468));if(b(_0x5a1942)!=_0x5bd06e(0x17a))return _0x5a1942;throw TypeError(_0x5bd06e(0x220));}return(_0x392218===_0x5bd06e(0x189)?String:Number)(_0x482aea);}function ie(_0x5d8f8c){const _0x466e96=_0x4fde36;var _0x1fc17b=re(_0x5d8f8c,_0x466e96(0x189));return b(_0x1fc17b)==_0x466e96(0x341)?_0x1fc17b:_0x1fc17b+'';}function x(_0xb45240,_0x43a720,_0x3a244e){const _0x36936d=_0x4fde36;return(_0x43a720=ie(_0x43a720))in _0xb45240?Object[_0x36936d(0x319)](_0xb45240,_0x43a720,{'value':_0x3a244e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb45240[_0x43a720]=_0x3a244e,_0xb45240;}function S(_0xdf52a8,_0x1f5cb8){return function(_0xb9d054,_0x3180e3){_0x1f5cb8(_0xb9d054,_0x3180e3,_0xdf52a8);};}function C(_0x668edf,_0x5d3dbc,_0x4bef8f,_0x46007a){const _0x113801=_0x4fde36;var _0x513441=arguments['length'],_0x7035bf=_0x513441<0x3?_0x5d3dbc:_0x46007a===null?_0x46007a=Object[_0x113801(0x20e)](_0x5d3dbc,_0x4bef8f):_0x46007a,_0x29d278;if(typeof Reflect==_0x113801(0x17a)&&typeof Reflect[_0x113801(0x31f)]=='function')_0x7035bf=Reflect['decorate'](_0x668edf,_0x5d3dbc,_0x4bef8f,_0x46007a);else{for(var _0x4d85f0=_0x668edf['length']-0x1;_0x4d85f0>=0x0;_0x4d85f0--)(_0x29d278=_0x668edf[_0x4d85f0])&&(_0x7035bf=(_0x513441<0x3?_0x29d278(_0x7035bf):_0x513441>0x3?_0x29d278(_0x5d3dbc,_0x4bef8f,_0x7035bf):_0x29d278(_0x5d3dbc,_0x4bef8f))||_0x7035bf);}return _0x513441>0x3&&_0x7035bf&&Object[_0x113801(0x319)](_0x5d3dbc,_0x4bef8f,_0x7035bf),_0x7035bf;}let w=class extends n[_0x4fde36(0x231)]{constructor(_0x5ac1cb,_0x6cc6d4,_0x2dfc3c,_0x36ca2b){const _0x2d9522=_0x4fde36;super(),this['_univerInstanceService']=_0x5ac1cb,this['_injector']=_0x6cc6d4,this[_0x2d9522(0x25c)]=_0x2dfc3c,this['_uiPartsService']=_0x36ca2b,x(this,_0x2d9522(0x2b2),new i[(_0x2d9522(0x299))](t[_0x2d9522(0x45c)][_0x2d9522(0x2eb)])),this['_initStatusComponent'](),this[_0x2d9522(0x281)]();}[_0x4fde36(0x281)](){const _0x3130ca=_0x4fde36;this[_0x3130ca(0x32d)]((0x0,i['merge'])(this[_0x3130ca(0x47b)][_0x3130ca(0x187)],this['_univerInstanceService'][_0x3130ca(0x474)](n[_0x3130ca(0x272)][_0x3130ca(0x370)]),this['_univerInstanceService'][_0x3130ca(0x474)](n[_0x3130ca(0x272)][_0x3130ca(0x47d)]))['pipe']((0x0,a['map'])(()=>ae(this[_0x3130ca(0x47b)])),(0x0,a[_0x3130ca(0x264)])(),(0x0,i['switchMap'])(_0x352598=>_0x352598?this['_collaborationController'][_0x3130ca(0x45d)](_0x352598):(0x0,i['of'])(null)),(0x0,i['switchMap'])(_0x4cb2cb=>_0x4cb2cb?_0x4cb2cb[_0x3130ca(0x2d8)]:(0x0,i['of'])(t[_0x3130ca(0x45c)][_0x3130ca(0x2eb)])))[_0x3130ca(0x18e)](_0x3679e9=>{this['_status$']['next'](_0x3679e9);}));}[_0x4fde36(0x33f)](){const _0x28941f=_0x4fde36;this['disposeWithMe'](this[_0x28941f(0x2c1)][_0x28941f(0x29f)](r[_0x28941f(0x3c0)][_0x28941f(0x27e)],()=>(0x0,r['connectInjector'])(se({'status$':this[_0x28941f(0x2b2)][_0x28941f(0x45f)]()}),this['_injector'])));}};w=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x2,(0x0,n['Inject'])(t['CollaborationController'])),S(0x3,r[_0x4fde36(0x25e)])],w);let T=class extends n[_0x4fde36(0x231)]{constructor(_0x28cd38,_0x5eaa0d,_0x4f71d0,_0x4f8a77){const _0x296918=_0x4fde36;super(),this['_univerInstanceService']=_0x28cd38,this[_0x296918(0x1df)]=_0x5eaa0d,this[_0x296918(0x25c)]=_0x4f71d0,this[_0x296918(0x2c1)]=_0x4f8a77,x(this,_0x296918(0x2b2),new i[(_0x296918(0x299))](t[_0x296918(0x45c)][_0x296918(0x2eb)])),this[_0x296918(0x33f)](),this['_initStatusListener']();}['_initStatusListener'](){const _0x37b600=_0x4fde36;this['disposeWithMe']((0x0,i['merge'])((0x0,i['of'])(null),this[_0x37b600(0x47b)][_0x37b600(0x474)](n[_0x37b600(0x272)][_0x37b600(0x367)]))[_0x37b600(0x19f)]((0x0,a[_0x37b600(0x42a)])(()=>oe(this[_0x37b600(0x47b)])),(0x0,a[_0x37b600(0x264)])(),(0x0,i['switchMap'])(_0x396166=>_0x396166?this[_0x37b600(0x25c)][_0x37b600(0x45d)](_0x396166):(0x0,i['of'])(null)),(0x0,i[_0x37b600(0x3e5)])(_0x4fee13=>_0x4fee13?_0x4fee13[_0x37b600(0x2d8)]:(0x0,i['of'])(t[_0x37b600(0x45c)][_0x37b600(0x2eb)])))[_0x37b600(0x18e)](_0x1b8879=>{const _0x2fd0de=_0x37b600;this[_0x2fd0de(0x2b2)][_0x2fd0de(0x345)](_0x1b8879);}));}[_0x4fde36(0x33f)](){const _0x26d511=_0x4fde36;this[_0x26d511(0x32d)](this['_uiPartsService'][_0x26d511(0x29f)](e['BOARD_TOP_RIGHT_MENU_LEADING_PART'],()=>(0x0,r[_0x26d511(0x3f0)])(se({'status$':this[_0x26d511(0x2b2)][_0x26d511(0x45f)]()}),this[_0x26d511(0x1df)])));}};T=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x21d)])),S(0x3,r[_0x4fde36(0x25e)])],T);function ae(_0x409971){const _0xa65632=_0x4fde36;let _0x6487d6=_0x409971['getFocusedUnit'](),_0x4d0033=_0x6487d6==null?void 0x0:_0x6487d6[_0xa65632(0x448)]();if(_0x4d0033&&!(0x0,n[_0xa65632(0x331)])(_0x4d0033))return _0x4d0033;let _0x62e140=_0x409971[_0xa65632(0x470)](n[_0xa65632(0x272)][_0xa65632(0x370)]),_0x40059d=_0x62e140==null?void 0x0:_0x62e140[_0xa65632(0x448)]();if(_0x40059d&&!(0x0,n[_0xa65632(0x331)])(_0x40059d))return _0x40059d;let _0x274e70=_0x409971[_0xa65632(0x470)](n[_0xa65632(0x272)][_0xa65632(0x47d)]);if(_0x274e70)return _0x274e70[_0xa65632(0x448)]();let _0x70e507=_0x409971[_0xa65632(0x3af)](n[_0xa65632(0x272)][_0xa65632(0x370)])[_0xa65632(0x2de)](_0x51875d=>!(0x0,n[_0xa65632(0x331)])(_0x51875d[_0xa65632(0x448)]()));return _0x70e507?_0x70e507[_0xa65632(0x448)]():null;}function oe(_0x145bbb){const _0x25bd60=_0x4fde36;var _0x348db0;let _0x294878=_0x145bbb['getCurrentUnitOfType'](n[_0x25bd60(0x272)]['UNIVER_BOARD']);return(_0x348db0=_0x294878==null?void 0x0:_0x294878[_0x25bd60(0x448)]())==null?null:_0x348db0;}function se(_0x4d2e8f){let {status$:_0x2fe1e1}=_0x4d2e8f;return function(){return(0x0,l['jsx'])(ne,{'status$':_0x2fe1e1});};}var ce=_0x4fde36(0x409),le=_0x4fde36(0x36a);const ue={};let E=class extends n['RxDisposable']{constructor(_0x3191e5,_0x1b28e2){const _0x1fd5a5=_0x4fde36;super(),this[_0x1fd5a5(0x217)]=_0x3191e5,this[_0x1fd5a5(0x3a5)]=_0x1b28e2,this[_0x1fd5a5(0x392)]();}['_init'](){const _0xa9b96b=_0x4fde36;let _0x370a04=this;this[_0xa9b96b(0x32d)](this['_docClipboardService'][_0xa9b96b(0x3b4)]({'onBeforePasteImage':async _0x38c58f=>{const _0x1fbfc7=_0xa9b96b;let _0xaf667f=await _0x370a04[_0x1fbfc7(0x3a5)][_0x1fbfc7(0x32b)](_0x38c58f);return _0xaf667f?{'source':_0xaf667f[_0x1fbfc7(0x236)],'imageSourceType':_0xaf667f[_0x1fbfc7(0x36f)]}:null;}}));}};E=C([S(0x0,f['IDocClipboardService']),S(0x1,n[_0x4fde36(0x3ed)])],E);function de(_0x2dcb24,_0x4bfe8f){const _0x7a143f=_0x4fde36;_0x2dcb24['save'](),_0x2dcb24[_0x7a143f(0x275)]='bold\x2013px\x20Arial,\x20sans-serif';let _0x57e0c5=_0x2dcb24[_0x7a143f(0x1d1)](_0x4bfe8f)[_0x7a143f(0x395)];return _0x2dcb24['restore'](),Math['min'](_0x57e0c5+0x8,0xc8);}function fe(_0x4aeff2,_0x191fe2){const _0x35cc0f=_0x4fde36;var _0xc11079,_0x548e42,_0x153d60;let {radius:_0x3a2255,width:_0x29fd22,height:_0xa27f68}=_0x191fe2;_0x3a2255=(_0xc11079=_0x3a2255)==null?0x0:_0xc11079,_0x29fd22=(_0x548e42=_0x29fd22)==null?0x1e:_0x548e42,_0xa27f68=(_0x153d60=_0xa27f68)==null?0x1e:_0x153d60;let _0x40d8b8=0x0,_0x3b41c7=0x0,_0x130eb3=0x0;_0x40d8b8=_0x3b41c7=_0x130eb3=Math[_0x35cc0f(0x18d)](_0x3a2255,_0x29fd22/0x2,_0xa27f68/0x2),_0x4aeff2[_0x35cc0f(0x442)](),_0x4aeff2[_0x35cc0f(0x43e)](_0x40d8b8,0x0),_0x4aeff2[_0x35cc0f(0x28e)](_0x29fd22-_0x3b41c7,0x0),_0x4aeff2[_0x35cc0f(0x479)](_0x29fd22-_0x3b41c7,_0x3b41c7,_0x3b41c7,Math['PI']*0x3/0x2,0x0,!0x1),_0x4aeff2[_0x35cc0f(0x28e)](_0x29fd22,_0xa27f68-_0x130eb3),_0x4aeff2[_0x35cc0f(0x479)](_0x29fd22-_0x130eb3,_0xa27f68-_0x130eb3,_0x130eb3,0x0,Math['PI']/0x2,!0x1),_0x4aeff2['lineTo'](0x0,_0xa27f68),_0x4aeff2[_0x35cc0f(0x28e)](0x0,_0x40d8b8),_0x4aeff2['arc'](_0x40d8b8,_0x40d8b8,_0x40d8b8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4aeff2[_0x35cc0f(0x3f5)](),_0x191fe2['fill']&&(_0x4aeff2[_0x35cc0f(0x277)](),_0x4aeff2[_0x35cc0f(0x2ac)]=_0x191fe2[_0x35cc0f(0x3cc)],_0x191fe2[_0x35cc0f(0x1cc)]===_0x35cc0f(0x2e4)?_0x4aeff2[_0x35cc0f(0x3cc)](_0x35cc0f(0x2e4)):_0x4aeff2[_0x35cc0f(0x3cc)](),_0x4aeff2[_0x35cc0f(0x396)]());}var D=class e extends u[_0x4fde36(0x3d2)]{constructor(_0x51e2ea,_0x237756){const _0x564ec7=_0x4fde36;super(_0x51e2ea,_0x237756),x(this,_0x564ec7(0x403),void 0x0),x(this,_0x564ec7(0x3de),void 0x0),this[_0x564ec7(0x403)]=_0x237756==null?void 0x0:_0x237756[_0x564ec7(0x403)],this['text']=_0x237756==null?void 0x0:_0x237756[_0x564ec7(0x3de)];}static['drawWith'](_0x143dcf,_0x1a83eb){const _0x2f78d9=_0x4fde36;let {text:_0x25d92e,color:_0x380c8a}=_0x1a83eb;_0x143dcf[_0x2f78d9(0x277)](),_0x143dcf[_0x2f78d9(0x275)]=_0x2f78d9(0x1cf);let _0x45918e=_0x143dcf[_0x2f78d9(0x1d1)](_0x25d92e)[_0x2f78d9(0x395)];if(fe(_0x143dcf,{'height':0x14,'radius':0x4,'width':de(_0x143dcf,_0x25d92e),'fill':_0x380c8a,'evented':!0x1}),_0x143dcf[_0x2f78d9(0x2ac)]=_0x2f78d9(0x401),_0x45918e>0xc0){let _0x32dd01='',_0x268276=0x0;for(let _0x288cdd of _0x25d92e){let _0x2abfca=_0x143dcf[_0x2f78d9(0x1d1)](_0x288cdd)[_0x2f78d9(0x395)];if(_0x268276+_0x2abfca<=0xc0-_0x143dcf['measureText'](_0x2f78d9(0x34a))['width'])_0x32dd01+=_0x288cdd,_0x268276+=_0x2abfca;else{_0x32dd01+=_0x2f78d9(0x34a);break;}}_0x143dcf[_0x2f78d9(0x190)](_0x32dd01,0x4,0xf);}else _0x143dcf[_0x2f78d9(0x190)](_0x25d92e,0x4,0xf);_0x143dcf[_0x2f78d9(0x396)]();}[_0x4fde36(0x3d9)](_0x276bbd){const _0x15d451=_0x4fde36;e[_0x15d451(0x2c9)](_0x276bbd,this);}};const O=0x138a;var pe=class extends u[_0x4fde36(0x3d2)]{constructor(_0x9e27c2,_0x15abdc){const _0x45c661=_0x4fde36;super(_0x9e27c2,{..._0x15abdc,'evented':!0x1}),x(this,_0x45c661(0x20c),'#4f46e5'),x(this,_0x45c661(0x215),''),x(this,_0x45c661(0x291),!0x0),_0x15abdc&&this['setShapeProps'](_0x15abdc);}[_0x4fde36(0x1be)](_0x51d9eb){const _0x4b2fc6=_0x4fde36;var _0x512528,_0x13eaca,_0x1af94f,_0x46e1b5,_0x2b56e2,_0xd567fa,_0x5e051e,_0x21d748;this[_0x4b2fc6(0x20c)]=(_0x512528=_0x51d9eb[_0x4b2fc6(0x403)])==null?this[_0x4b2fc6(0x20c)]:_0x512528,this[_0x4b2fc6(0x215)]=(_0x13eaca=_0x51d9eb['name'])==null?this[_0x4b2fc6(0x215)]:_0x13eaca,this[_0x4b2fc6(0x291)]=(_0x1af94f=_0x51d9eb['showText'])==null?this[_0x4b2fc6(0x291)]:_0x1af94f,this[_0x4b2fc6(0x30b)]=!0x1,this[_0x4b2fc6(0x460)]({'left':(_0x46e1b5=_0x51d9eb[_0x4b2fc6(0x3b6)])==null?this['left']:_0x46e1b5,'top':(_0x2b56e2=_0x51d9eb[_0x4b2fc6(0x2e1)])==null?this[_0x4b2fc6(0x2e1)]:_0x2b56e2,'width':(_0xd567fa=_0x51d9eb[_0x4b2fc6(0x395)])==null?this[_0x4b2fc6(0x395)]:_0xd567fa,'height':(_0x5e051e=_0x51d9eb[_0x4b2fc6(0x380)])==null?this[_0x4b2fc6(0x380)]:_0x5e051e,'angle':(_0x21d748=_0x51d9eb[_0x4b2fc6(0x244)])==null?this[_0x4b2fc6(0x244)]:_0x21d748});}[_0x4fde36(0x3d9)](_0x130a88){const _0x58007f=_0x4fde36;_0x130a88['save'](),_0x130a88[_0x58007f(0x302)]=this[_0x58007f(0x20c)],_0x130a88[_0x58007f(0x359)]=this[_0x58007f(0x27b)]||1.5,_0x130a88['setLineDash']([0x6,0x4]),_0x130a88[_0x58007f(0x393)](0x0,0x0,this[_0x58007f(0x395)],this[_0x58007f(0x380)]),_0x130a88['restore'](),this['_showText']&&(_0x130a88[_0x58007f(0x277)](),_0x130a88[_0x58007f(0x39f)](0x1,0x0,0x0,0x1,this['width'],-0x14),D[_0x58007f(0x2c9)](_0x130a88,{'text':this['_name'],'color':this[_0x58007f(0x20c)]}),_0x130a88[_0x58007f(0x396)]());}};const me=[_0x4fde36(0x22d),_0x4fde36(0x1bf),_0x4fde36(0x435),_0x4fde36(0x440),_0x4fde36(0x262),_0x4fde36(0x1f2)];var k=class extends n[_0x4fde36(0x231)]{constructor(..._0x4331ee){const _0x54c260=_0x4fde36;super(..._0x4331ee),x(this,'_assignedColors',new Map()),x(this,_0x54c260(0x2ae),0x0);}[_0x4fde36(0x284)](_0x3adf54){const _0x54cca5=_0x4fde36;if(this[_0x54cca5(0x288)][_0x54cca5(0x24d)](_0x3adf54))return this[_0x54cca5(0x288)][_0x54cca5(0x3bd)](_0x3adf54);let _0x44040b=me[this[_0x54cca5(0x2ae)]];return this[_0x54cca5(0x2ae)]=(this[_0x54cca5(0x2ae)]+0x1)%me['length'],this[_0x54cca5(0x288)]['set'](_0x3adf54,_0x44040b),_0x44040b;}};function he(_0x5bf4ad){const _0x1ab331=_0x4fde36;let _0x35e550;try{_0x35e550=JSON[_0x1ab331(0x3a1)](_0x5bf4ad);}catch{return null;}if(typeof _0x35e550!=_0x1ab331(0x17a)||!_0x35e550)return null;let _0x22aac7=_0x35e550;if(_0x22aac7[_0x1ab331(0x351)]!=='board-element-selection'||typeof _0x22aac7['unitId']!=_0x1ab331(0x189)||typeof _0x22aac7[_0x1ab331(0x21c)]!=_0x1ab331(0x189))return null;let _0x52e522=Array[_0x1ab331(0x343)](_0x22aac7['selectedIds'])?_0x22aac7[_0x1ab331(0x38f)][_0x1ab331(0x381)](_0x197d5c=>typeof _0x197d5c==_0x1ab331(0x189)):[],_0x7a32bd=typeof _0x22aac7['focusedId']==_0x1ab331(0x189)?_0x22aac7[_0x1ab331(0x178)]:null;return{'kind':_0x1ab331(0x203),'unitId':_0x22aac7[_0x1ab331(0x1e9)],'subUnitId':_0x22aac7[_0x1ab331(0x21c)],'selectedIds':_0x52e522,'focusedId':_0x7a32bd};}let A=class extends n[_0x4fde36(0x18c)]{get[_0x4fde36(0x23c)](){const _0x5169af=_0x4fde36;return this[_0x5169af(0x1ab)]['getValue']();}get[_0x4fde36(0x1d2)](){const _0x340853=_0x4fde36;return this[_0x340853(0x1d8)][_0x340853(0x1ec)]();}constructor(_0x11c0b6,_0x2bc115,_0x2909e4,_0x19e816,_0x5f21ae){const _0x31755e=_0x4fde36;super(),this[_0x31755e(0x478)]=_0x11c0b6,this[_0x31755e(0x1a2)]=_0x2bc115,this[_0x31755e(0x2fc)]=_0x2909e4,this[_0x31755e(0x36b)]=_0x19e816,this[_0x31755e(0x2a7)]=_0x5f21ae,x(this,'_online',!0x1),x(this,_0x31755e(0x392),!0x1),x(this,_0x31755e(0x1ab),new i[(_0x31755e(0x299))](new Map())),x(this,'cursorInfo$',this[_0x31755e(0x1ab)][_0x31755e(0x45f)]()),x(this,_0x31755e(0x1d8),new i['BehaviorSubject']([])),x(this,_0x31755e(0x280),this[_0x31755e(0x1d8)][_0x31755e(0x19f)]((0x0,i[_0x31755e(0x3c6)])(0x12c))),x(this,_0x31755e(0x2c0),(0x0,n[_0x31755e(0x2bb)])(_0x32c17b=>{const _0x1ffc68=_0x31755e;let _0x248226=_0x32c17b[_0x1ffc68(0x1a5)];if(!_0x248226||_0x248226[_0x1ffc68(0x1e9)]!==this[_0x1ffc68(0x478)])return;let _0x20579d={'kind':_0x1ffc68(0x203),'unitId':_0x248226[_0x1ffc68(0x1e9)],'subUnitId':_0x248226[_0x1ffc68(0x21c)],'selectedIds':_0x32c17b['selectedIds'][_0x1ffc68(0x381)](_0x28ea5f=>typeof _0x28ea5f==_0x1ffc68(0x189)),'focusedId':_0x32c17b[_0x1ffc68(0x178)]},_0x6beea4={'eventID':p[_0x1ffc68(0x426)][_0x1ffc68(0x1a1)],'data':{'unitID':this[_0x1ffc68(0x478)],'memberID':this[_0x1ffc68(0x1a2)]['getMemberID'](),'selection':JSON[_0x1ffc68(0x1e5)](_0x20579d)}};this[_0x1ffc68(0x1a2)][_0x1ffc68(0x1e0)](_0x6beea4,this[_0x1ffc68(0x478)]);},0x64));}[_0x4fde36(0x295)](){const _0x25ace8=_0x4fde36;super[_0x25ace8(0x295)](),this['_cursorInfo$'][_0x25ace8(0x345)](new Map()),this['_cursorInfo$']['complete'](),this[_0x25ace8(0x1d8)][_0x25ace8(0x345)]([]),this[_0x25ace8(0x1d8)][_0x25ace8(0x20b)]();}[_0x4fde36(0x3e9)](){const _0x399fbe=_0x4fde36;this[_0x399fbe(0x392)]||(this['_init']=!0x0,this[_0x399fbe(0x1a2)][_0x399fbe(0x1b9)]['pipe']((0x0,i[_0x399fbe(0x328)])(this[_0x399fbe(0x2d2)]))['subscribe'](_0x5657ca=>{const _0x1d4ccf=_0x399fbe;_0x5657ca===t[_0x1d4ccf(0x42c)][_0x1d4ccf(0x31d)]?this['_toggleOnline']():this[_0x1d4ccf(0x181)]();}),this['_session']['event$'][_0x399fbe(0x19f)]((0x0,i[_0x399fbe(0x328)])(this[_0x399fbe(0x2d2)]))['subscribe'](_0x2add5e=>{const _0x113546=_0x399fbe;let _0x508dc3=_0x2add5e[_0x113546(0x16f)];_0x508dc3===p[_0x113546(0x426)][_0x113546(0x1a1)]&&this[_0x113546(0x3f7)](_0x2add5e),_0x508dc3===p[_0x113546(0x426)][_0x113546(0x31b)]&&this[_0x113546(0x47e)](_0x2add5e);}),this['_boardElementStateService'][_0x399fbe(0x225)][_0x399fbe(0x19f)]((0x0,i[_0x399fbe(0x328)])(this[_0x399fbe(0x2d2)]))[_0x399fbe(0x18e)](_0x24688f=>{const _0x4abb9e=_0x399fbe;this[_0x4abb9e(0x26b)]&&this[_0x4abb9e(0x2c0)](_0x24688f);}));}[_0x4fde36(0x3f7)](_0x4862b0){const _0xd7b2=_0x4fde36;var _0x34e9ca,_0x5261dd,_0x46c316,_0xa625b;let {memberID:_0xa87def,selection:_0xe4845e}=_0x4862b0[_0xd7b2(0x176)];if(_0xa87def===((_0x34e9ca=(_0x5261dd=this[_0xd7b2(0x1a2)])[_0xd7b2(0x356)])==null?void 0x0:_0x34e9ca[_0xd7b2(0x1bd)](_0x5261dd)))return;let _0x150de8=he(_0xe4845e);if(!_0x150de8||_0x150de8[_0xd7b2(0x1e9)]!==this[_0xd7b2(0x478)])return;let _0x52364b=(_0x46c316=(_0xa625b=this[_0xd7b2(0x36b)]['getMember'](this['unitID'],_0xa87def))==null?void 0x0:_0xa625b[_0xd7b2(0x1d4)])==null?'Unknown\x20user':_0x46c316,_0x3db213={'color':this[_0xd7b2(0x2fc)][_0xd7b2(0x284)](_0xa87def),'name':_0x52364b,'unitId':_0x150de8[_0xd7b2(0x1e9)],'subUnitId':_0x150de8[_0xd7b2(0x21c)],'selectedIds':_0x150de8['selectedIds'],'focusedId':_0x150de8[_0xd7b2(0x178)],'selection':_0xe4845e},_0x22b366=new Map(this[_0xd7b2(0x23c)]);_0x22b366[_0xd7b2(0x1a4)](_0xa87def,_0x3db213),this['_cursorInfo$'][_0xd7b2(0x345)](_0x22b366);}[_0x4fde36(0x47e)](_0x550142){const _0x380a65=_0x4fde36;let {memberID:_0x7f836e}=_0x550142[_0x380a65(0x176)],_0x3db312=new Map(this['cursorInfo']);_0x3db312[_0x380a65(0x3a7)](_0x7f836e),this[_0x380a65(0x1ab)][_0x380a65(0x345)](_0x3db312);}[_0x4fde36(0x445)](){const _0x35461f=_0x4fde36;this['_online']=!0x0,this[_0x35461f(0x2c0)](this[_0x35461f(0x2a7)][_0x35461f(0x1fc)]());}['_toggleOffline'](){this['_online']=!0x1;}};A=C([S(0x2,(0x0,n[_0x4fde36(0x2ff)])(k)),S(0x3,(0x0,n['Inject'])(t[_0x4fde36(0x405)])),S(0x4,(0x0,n['Inject'])(e[_0x4fde36(0x41c)]))],A);function ge(_0x5b7df4){let _0x4c5d71='';for(let _0x2f0052 of _0x5b7df4){let {startOffset:_0x4104bf,endOffset:_0x2e8d02,isActive:_0x2f8fad,rangeType:_0x1a67bd,segmentId:_0x2cb198,segmentPage:_0x5707af}=_0x2f0052;_0x4c5d71['length']&&(_0x4c5d71+=','),_0x4c5d71+=_0x4104bf+':'+_0x2e8d02+':'+(_0x2f8fad?'1':'0')+':'+_0x1a67bd+':'+_0x2cb198+':'+_0x5707af;}return _0x4c5d71;}function _e(_0x1b30d8){const _0x197fc3=_0x4fde36;let _0x362db1=_0x1b30d8[_0x197fc3(0x44b)](','),_0x15b75f=[];for(let _0x486ce5 of _0x362db1){let [_0x382775,_0x4ed35a,_0x5ef0dc,_0x26d62a,_0x20f521,_0x144fab]=_0x486ce5['split'](':');_0x15b75f[_0x197fc3(0x2e8)]({'startOffset':Number(_0x382775),'endOffset':Number(_0x4ed35a),'collapsed':_0x382775===_0x4ed35a,'isActive':_0x5ef0dc==='1','rangeType':_0x26d62a===n[_0x197fc3(0x45a)][_0x197fc3(0x3aa)]?n[_0x197fc3(0x45a)]['TEXT']:n[_0x197fc3(0x45a)][_0x197fc3(0x252)],'segmentId':typeof _0x20f521=='string'?String(_0x20f521):'','segmentPage':Number(_0x144fab==null?-0x1:_0x144fab)});}return _0x15b75f[_0x197fc3(0x237)](_0x5861cf=>_0x5861cf['isActive'])||(_0x15b75f[0x0][_0x197fc3(0x369)]=!0x0),_0x15b75f;}var j=class extends n[_0x4fde36(0x18c)]{constructor(..._0x4e66b5){const _0x30033c=_0x4fde36;super(..._0x4e66b5),x(this,_0x30033c(0x3d0),new i['BehaviorSubject'](null)),x(this,_0x30033c(0x253),this[_0x30033c(0x3d0)][_0x30033c(0x45f)]());}[_0x4fde36(0x40b)](_0x586101){const _0x2ce2ca=_0x4fde36;let {unitID:_0x3bfd0a,memberID:_0x415d4f,textRanges:_0x164237}=_0x586101,_0x479b03=ge(_0x164237);if(_0x479b03==='')return;let _0x25e47f={'unitID':_0x3bfd0a,'memberID':_0x415d4f,'selection':_0x479b03};this['_collabCursorState$'][_0x2ce2ca(0x345)](_0x25e47f);}};let M=class extends n['RxDisposable']{get['cursorInfo'](){const _0xc47d37=_0x4fde36;return this[_0xc47d37(0x1ab)][_0xc47d37(0x1ec)]();}get[_0x4fde36(0x1d2)](){const _0x575f77=_0x4fde36;return this[_0x575f77(0x1d8)][_0x575f77(0x1ec)]();}constructor(_0x496943,_0x9e53d7,_0x3b5001,_0x400dfb,_0x3df1e7,_0x124b57,_0x10be2a,_0x534c37,_0xdd297){const _0x57147f=_0x4fde36;super(),this[_0x57147f(0x478)]=_0x496943,this[_0x57147f(0x1a2)]=_0x9e53d7,this[_0x57147f(0x1df)]=_0x3b5001,this[_0x57147f(0x2fc)]=_0x400dfb,this['_memberService']=_0x3df1e7,this[_0x57147f(0x1d5)]=_0x124b57,this['_transformService']=_0x10be2a,this['_univerInstanceService']=_0x534c37,this['_commandService']=_0xdd297,x(this,_0x57147f(0x26b),!0x1),x(this,_0x57147f(0x392),!0x1),x(this,_0x57147f(0x1ab),new i[(_0x57147f(0x299))](new Map())),x(this,_0x57147f(0x259),this[_0x57147f(0x1ab)][_0x57147f(0x45f)]()),x(this,_0x57147f(0x1d8),new i[(_0x57147f(0x299))]([])),x(this,_0x57147f(0x280),this[_0x57147f(0x1d8)][_0x57147f(0x19f)]((0x0,i[_0x57147f(0x3c6)])(0x12c))),x(this,_0x57147f(0x2c0),(0x0,n['debounce'])(_0x55c23c=>{const _0x43013c=_0x57147f;let _0xe68162={'eventID':p[_0x43013c(0x426)][_0x43013c(0x1a1)],'data':{'unitID':this[_0x43013c(0x478)],'memberID':this[_0x43013c(0x1a2)][_0x43013c(0x356)](),'selection':ge(_0x55c23c)}};this[_0x43013c(0x1a2)][_0x43013c(0x1e0)](_0xe68162,this[_0x43013c(0x478)]);},0x64));}[_0x4fde36(0x295)](){const _0x36be38=_0x4fde36;super['dispose'](),this['_cursorInfo$'][_0x36be38(0x345)](new Map()),this[_0x36be38(0x1ab)][_0x36be38(0x20b)](),this[_0x36be38(0x1d8)][_0x36be38(0x345)]([]),this[_0x36be38(0x1d8)][_0x36be38(0x20b)]();}[_0x4fde36(0x3e9)](){const _0x591b37=_0x4fde36;this[_0x591b37(0x392)]||(this[_0x591b37(0x392)]=!0x0,this[_0x591b37(0x1a2)]['sessionStatus$'][_0x591b37(0x19f)]((0x0,i[_0x591b37(0x328)])(this[_0x591b37(0x2d2)]))[_0x591b37(0x18e)](_0x5c74f4=>{const _0x260cb2=_0x591b37;_0x5c74f4===t[_0x260cb2(0x42c)][_0x260cb2(0x31d)]?this[_0x260cb2(0x445)]():this[_0x260cb2(0x181)]();}),this[_0x591b37(0x1a2)][_0x591b37(0x41a)][_0x591b37(0x19f)]((0x0,i[_0x591b37(0x328)])(this[_0x591b37(0x2d2)]))[_0x591b37(0x18e)](_0x52c8e2=>{const _0x1e4003=_0x591b37;let _0x19041b=_0x52c8e2[_0x1e4003(0x16f)];_0x19041b===p[_0x1e4003(0x426)][_0x1e4003(0x1a1)]&&this[_0x1e4003(0x3f7)](_0x52c8e2),_0x19041b===p[_0x1e4003(0x426)][_0x1e4003(0x31b)]&&this[_0x1e4003(0x47e)](_0x52c8e2);}),this[_0x591b37(0x32d)](this[_0x591b37(0x3fa)]['onCommandExecuted'](_0x43097a=>{const _0x3b2fb2=_0x591b37;let _0x3bb880=_0x43097a['params'];_0x3bb880!=null&&this['_online']&&_0x43097a['id']===m[_0x3b2fb2(0x1b2)]['id']&&_0x3bb880[_0x3b2fb2(0x1e9)]===this[_0x3b2fb2(0x478)]&&_0x3bb880['isEditing']===!0x1&&_0x3bb880[_0x3b2fb2(0x327)][_0x3b2fb2(0x2ee)]>0x0&&this[_0x3b2fb2(0x2c0)](_0x3bb880[_0x3b2fb2(0x327)]);})),this[_0x591b37(0x1d5)][_0x591b37(0x253)][_0x591b37(0x19f)]((0x0,i[_0x591b37(0x328)])(this[_0x591b37(0x2d2)]))[_0x591b37(0x18e)](_0x5f1512=>{const _0x5604bc=_0x591b37;if((_0x5f1512==null?void 0x0:_0x5f1512[_0x5604bc(0x478)])!==this[_0x5604bc(0x478)])return;let _0x4c63ba={'eventID':p[_0x5604bc(0x426)][_0x5604bc(0x1a1)],'data':_0x5f1512};this['_onCursorUpdate'](_0x4c63ba);}),this[_0x591b37(0x32d)](this[_0x591b37(0x3fa)][_0x591b37(0x376)](_0x1feab9=>{const _0x402e21=_0x591b37;if(_0x1feab9[_0x402e21(0x198)]==null)return;let _0x3be5cd=_0x1feab9[_0x402e21(0x198)];if(_0x1feab9['id']!==m['RichTextEditingMutation']['id']||_0x3be5cd[_0x402e21(0x1e9)]!==this[_0x402e21(0x478)])return;let _0x5a62c9={'id':'doc.mutation.rich-text-editing','params':_0x3be5cd},_0x1b3a80=this['cursorInfo'];for(let [_0x1aeed5,_0x229ca7]of _0x1b3a80){let _0x520033={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x229ca7[_0x402e21(0x327)]}},_0x55c158=this[_0x402e21(0x251)][_0x402e21(0x36e)](_0x5a62c9,_0x520033,!0x1);if((0x0,p[_0x402e21(0x3b7)])(_0x55c158))throw _0x55c158['error'];_0x1b3a80[_0x402e21(0x1a4)](_0x1aeed5,{..._0x229ca7,'ranges':_0x55c158[_0x402e21(0x22c)][_0x402e21(0x198)]['textRanges']});}queueMicrotask(()=>{const _0x325857=_0x402e21;this[_0x325857(0x1ab)][_0x325857(0x345)](_0x1b3a80);});})));}[_0x4fde36(0x3f7)](_0x7909d7){const _0x4d9fb4=_0x4fde36;var _0x373d46,_0x300864;let {memberID:_0x13ed07,selection:_0x545a53}=_0x7909d7['data'],_0x6f777c=_e(_0x545a53),_0x312b71=(_0x373d46=(_0x300864=this[_0x4d9fb4(0x36b)][_0x4d9fb4(0x1ba)](this[_0x4d9fb4(0x478)],_0x13ed07))==null?void 0x0:_0x300864[_0x4d9fb4(0x1d4)])==null?_0x4d9fb4(0x239):_0x373d46,_0x51ccbb={'color':this[_0x4d9fb4(0x2fc)][_0x4d9fb4(0x284)](_0x13ed07),'name':_0x312b71,'ranges':_0x6f777c},_0x175adf=this[_0x4d9fb4(0x23c)];_0x175adf[_0x4d9fb4(0x1a4)](_0x13ed07,_0x51ccbb),this[_0x4d9fb4(0x1ab)][_0x4d9fb4(0x345)](_0x175adf);}['_onCursorDelete'](_0x22ac70){const _0x1ba1aa=_0x4fde36;let {memberID:_0x411f4f}=_0x22ac70[_0x1ba1aa(0x176)],_0x51c7a7=this[_0x1ba1aa(0x23c)];_0x51c7a7[_0x1ba1aa(0x3a7)](_0x411f4f),this[_0x1ba1aa(0x1ab)][_0x1ba1aa(0x345)](_0x51c7a7);}[_0x4fde36(0x445)](){const _0x4cc431=_0x4fde36;var _0x13e817;if(this[_0x4cc431(0x26b)]=!0x0,((_0x13e817=this[_0x4cc431(0x47b)][_0x4cc431(0x206)]())==null?void 0x0:_0x13e817[_0x4cc431(0x448)]())!==this[_0x4cc431(0x478)])return;let _0x2dc1b0=this[_0x4cc431(0x1df)]['get'](m[_0x4cc431(0x2f5)])[_0x4cc431(0x387)]();Array[_0x4cc431(0x343)](_0x2dc1b0)&&_0x2dc1b0[_0x4cc431(0x2ee)]>0x0&&this[_0x4cc431(0x2c0)](_0x2dc1b0);}['_toggleOffline'](){const _0x352b98=_0x4fde36;this[_0x352b98(0x26b)]=!0x1;}};M=C([S(0x2,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x3,(0x0,n['Inject'])(k)),S(0x4,(0x0,n['Inject'])(t['MemberService'])),S(0x5,(0x0,n[_0x4fde36(0x2ff)])(j)),S(0x6,p['ITransformService']),S(0x7,n[_0x4fde36(0x260)]),S(0x8,n['ICommandService'])],M);const ve=()=>{let _0x4fb538=[],_0x3f86cf=!0x1;return _0x2cc3b2=>{const _0x1f24a3=_0x4dee;_0x4fb538[_0x1f24a3(0x2e8)](_0x2cc3b2),_0x3f86cf||(_0x3f86cf=!0x0,setTimeout(()=>{_0x4fb538['forEach'](_0x2b169d=>_0x2b169d()),_0x4fb538=[],_0x3f86cf=!0x1;}));};};let N=class extends n['RxDisposable']{get[_0x4fde36(0x23c)](){const _0x4f5248=_0x4fde36;return this[_0x4f5248(0x1ab)][_0x4f5248(0x1ec)]();}get['roomMembers'](){const _0x920e4=_0x4fde36;return this[_0x920e4(0x1d8)][_0x920e4(0x1ec)]();}constructor(_0x5f4d52,_0x26194d,_0x574375,_0x1fed89,_0x1442f2,_0x2673e3,_0x493236,_0x15e5f1){const _0x278559=_0x4fde36;super(),this[_0x278559(0x478)]=_0x5f4d52,this[_0x278559(0x1a2)]=_0x26194d,this['_injector']=_0x574375,this['_colorAssignService']=_0x1fed89,this['_memberService']=_0x1442f2,this[_0x278559(0x47b)]=_0x2673e3,this['_commandService']=_0x493236,this[_0x278559(0x368)]=_0x15e5f1,x(this,'_online',!0x1),x(this,_0x278559(0x392),!0x1),x(this,_0x278559(0x1ab),new i[(_0x278559(0x299))](new Map())),x(this,_0x278559(0x259),this['_cursorInfo$'][_0x278559(0x45f)]()),x(this,_0x278559(0x1d8),new i[(_0x278559(0x299))]([])),x(this,_0x278559(0x280),this[_0x278559(0x1d8)]['pipe']((0x0,i[_0x278559(0x3c6)])(0x12c))),x(this,_0x278559(0x2c0),(0x0,n['debounce'])((_0x5862f9,_0x548b20)=>{const _0x242d11=_0x278559;let _0x1de971={'eventID':p[_0x242d11(0x426)][_0x242d11(0x1a1)],'data':{'unitID':this[_0x242d11(0x478)],'memberID':this['_session'][_0x242d11(0x356)](),'selection':(0x0,h['serializeRangeWithSheet'])(_0x5862f9,_0x548b20[_0x242d11(0x2cc)])}};this[_0x242d11(0x1a2)][_0x242d11(0x1e0)](_0x1de971,this[_0x242d11(0x478)]);},0x64));}[_0x4fde36(0x295)](){const _0x3fdb26=_0x4fde36;super[_0x3fdb26(0x295)](),this['_cursorInfo$'][_0x3fdb26(0x345)](new Map()),this[_0x3fdb26(0x1ab)][_0x3fdb26(0x20b)](),this[_0x3fdb26(0x1d8)][_0x3fdb26(0x345)]([]),this[_0x3fdb26(0x1d8)][_0x3fdb26(0x20b)]();}['init'](){const _0x157c12=_0x4fde36;this[_0x157c12(0x392)]||(this[_0x157c12(0x392)]=!0x0,this[_0x157c12(0x1a2)][_0x157c12(0x1b9)][_0x157c12(0x19f)]((0x0,i[_0x157c12(0x328)])(this[_0x157c12(0x2d2)]))['subscribe'](_0x4a622d=>{const _0x44cabc=_0x157c12;_0x4a622d===t[_0x44cabc(0x42c)][_0x44cabc(0x31d)]?this[_0x44cabc(0x445)]():this[_0x44cabc(0x181)]();}),this[_0x157c12(0x1a2)]['event$'][_0x157c12(0x19f)]((0x0,i[_0x157c12(0x328)])(this[_0x157c12(0x2d2)]))['subscribe'](_0x1c6ef9=>{const _0x21992b=_0x157c12;let _0x5ced72=_0x1c6ef9[_0x21992b(0x16f)];_0x5ced72===p['CollaborationEvent'][_0x21992b(0x1a1)]&&this[_0x21992b(0x3f7)](_0x1c6ef9),_0x5ced72===p[_0x21992b(0x426)][_0x21992b(0x31b)]&&this[_0x21992b(0x47e)](_0x1c6ef9);}),this[_0x157c12(0x1dc)](),this[_0x157c12(0x32d)](this['_commandService']['onCommandExecuted'](_0x525572=>{const _0x65f667=_0x157c12;if(this[_0x65f667(0x26b)]&&_0x525572['id']===g['SetSelectionsOperation']['id']&&_0x525572['params']['unitId']===this['unitID']){let _0x50c741=_0x525572['params'];this[_0x65f667(0x2c0)](_0x50c741[_0x65f667(0x21c)],_0x50c741[_0x65f667(0x3bf)][0x0]);}})));}[_0x4fde36(0x3f7)](_0x3959b1){const _0x1b46ae=_0x4fde36;var _0x4d8fe6,_0xbb9a99;let {memberID:_0x311990,selection:_0x30051a}=_0x3959b1['data'],{sheetName:_0x367ee5,range:_0x2ad455}=(0x0,h[_0x1b46ae(0x32a)])(_0x30051a),_0x2b6e62={'name':(_0x4d8fe6=(_0xbb9a99=this[_0x1b46ae(0x36b)]['getMember'](this[_0x1b46ae(0x478)],_0x311990))==null?void 0x0:_0xbb9a99[_0x1b46ae(0x1d4)])==null?'Unknown\x20user':_0x4d8fe6,'range':this['_getMergeRange'](_0x367ee5,_0x2ad455),'sheetID':_0x367ee5,'color':this[_0x1b46ae(0x2fc)][_0x1b46ae(0x284)](_0x311990),'selection':_0x30051a},_0x114b3e=this[_0x1b46ae(0x23c)];_0x114b3e[_0x1b46ae(0x1a4)](_0x311990,_0x2b6e62),this['_cursorInfo$'][_0x1b46ae(0x345)](_0x114b3e);}[_0x4fde36(0x47e)](_0x34ee71){const _0x24fdb4=_0x4fde36;let {memberID:_0x22c717}=_0x34ee71[_0x24fdb4(0x176)],_0x4c9aa8=this['cursorInfo'];_0x4c9aa8['delete'](_0x22c717),this[_0x24fdb4(0x1ab)][_0x24fdb4(0x345)](_0x4c9aa8);}['_getMergeRange'](_0x58982a,_0x280c08){const _0x1a8c57=_0x4fde36;var _0x3b9a93;let _0x546dd4=(_0x3b9a93=this[_0x1a8c57(0x47b)][_0x1a8c57(0x406)](this[_0x1a8c57(0x478)]))==null||(_0x3b9a93=_0x3b9a93[_0x1a8c57(0x20f)](_0x58982a))==null?void 0x0:_0x3b9a93[_0x1a8c57(0x33b)]();return(_0x546dd4==null?void 0x0:_0x546dd4[_0x1a8c57(0x2de)](_0x2000e4=>n[_0x1a8c57(0x22a)][_0x1a8c57(0x1de)](_0x2000e4,_0x280c08)))||_0x280c08;}['_onRefRangeChange'](){const _0x4494b4=_0x4fde36;let _0x534f36=new n[(_0x4494b4(0x22f))](),_0x8706ef=ve(),_0x42db4c=()=>{const _0x539b24=_0x4494b4;_0x534f36[_0x539b24(0x295)]();let _0x397220=(_0x4376b0,_0x4faa45,_0xa5f0b5,_0x483ddb)=>{const _0x1a1a5f=_0x539b24;let _0x1e6967=[];switch(_0x4376b0['id']){case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x342)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x1b5)])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x27c)]:_0x1e6967=(0x0,g['handleDeleteRangeMoveUp'])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)]['InsertColCommandId']:_0x1e6967=(0x0,g['handleInsertCol'])(_0x4376b0,_0x483ddb);break;case g['EffectRefRangId'][_0x1a1a5f(0x414)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x21a)])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x36c)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x430)])(_0x4376b0,_0x483ddb);break;case g['EffectRefRangId'][_0x1a1a5f(0x3bc)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x404)])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x2ab)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x1c2)])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x2a1)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x1fe)])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x382)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x481)])(_0x4376b0,_0x483ddb);break;}let _0x2de991=(0x0,g[_0x1a1a5f(0x3e8)])(_0x1e6967,_0x483ddb),_0x55ebff=this[_0x1a1a5f(0x23c)][_0x1a1a5f(0x3bd)](_0x4faa45);if(_0x55ebff&&_0x2de991){let _0x2c63be={..._0x55ebff,'range':_0x2de991};this['cursorInfo'][_0x1a1a5f(0x1a4)](_0x4faa45,_0x2c63be),_0x8706ef(()=>{const _0x54d7ab=_0x1a1a5f;let _0x9697b3=this[_0x54d7ab(0x368)][_0x54d7ab(0x1a3)](_0x2de991,_0x460940=>(_0x9697b3[_0x54d7ab(0x295)](),_0x397220(_0x460940,_0x4faa45,_0xa5f0b5,_0x2de991)));_0x534f36[_0x54d7ab(0x46f)](_0x9697b3);});}return{'redos':[],'undos':[]};};this[_0x539b24(0x23c)][_0x539b24(0x19e)]((_0x214618,_0x17fe8a)=>{const _0x16d36d=_0x539b24;let {range:_0x42b3af,sheetID:_0x5df4db}=_0x214618,_0x360b4a=this[_0x16d36d(0x368)]['registerRefRange'](_0x42b3af,_0x42d80f=>(_0x360b4a['dispose'](),_0x397220(_0x42d80f,_0x17fe8a,_0x5df4db,_0x42b3af)));_0x534f36[_0x16d36d(0x46f)](_0x360b4a);});};this[_0x4494b4(0x32d)]((0x0,n['toDisposable'])(this[_0x4494b4(0x1ab)][_0x4494b4(0x18e)](()=>{_0x42db4c();})));}[_0x4fde36(0x445)](){const _0xe3c504=_0x4fde36;var _0x129281,_0x313dca;if(this[_0xe3c504(0x26b)]=!0x0,((_0x129281=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x129281[_0xe3c504(0x448)]())!==this[_0xe3c504(0x478)])return;let _0x5c0e7d=(_0x313dca=this['_injector'][_0xe3c504(0x3bd)](g['SheetsSelectionsService'])[_0xe3c504(0x39d)]())==null?void 0x0:_0x313dca[0x0],_0x2c7a0d=this[_0xe3c504(0x47b)][_0xe3c504(0x470)](n['UniverInstanceType'][_0xe3c504(0x47d)])[_0xe3c504(0x208)]();_0x5c0e7d&&_0x2c7a0d&&this[_0xe3c504(0x2c0)](_0x2c7a0d[_0xe3c504(0x39c)](),_0x5c0e7d);}['_toggleOffline'](){const _0xffcec4=_0x4fde36;this[_0xffcec4(0x26b)]=!0x1;}};N=C([S(0x2,(0x0,n['Inject'])(n[_0x4fde36(0x197)])),S(0x3,(0x0,n[_0x4fde36(0x2ff)])(k)),S(0x4,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x405)])),S(0x5,n[_0x4fde36(0x260)]),S(0x6,n[_0x4fde36(0x375)]),S(0x7,(0x0,n['Inject'])(g['RefRangeService']))],N);function ye(_0x5afb49){const _0xb031ef=_0x4fde36;let _0x486a6b;try{_0x486a6b=JSON['parse'](_0x5afb49);}catch{return null;}if(typeof _0x486a6b!='object'||!_0x486a6b)return null;let _0x79824b=_0x486a6b;if(_0x79824b[_0xb031ef(0x351)]!==_0xb031ef(0x2dc)||typeof _0x79824b[_0xb031ef(0x1e9)]!=_0xb031ef(0x189)||typeof _0x79824b[_0xb031ef(0x21c)]!=_0xb031ef(0x189))return null;let _0x3da76e=Array[_0xb031ef(0x343)](_0x79824b['selectedIds'])?_0x79824b['selectedIds'][_0xb031ef(0x381)](_0x2d58de=>typeof _0x2d58de==_0xb031ef(0x189)):[],_0x1da694=typeof _0x79824b[_0xb031ef(0x178)]==_0xb031ef(0x189)?_0x79824b[_0xb031ef(0x178)]:null;return{'kind':_0xb031ef(0x2dc),'unitId':_0x79824b['unitId'],'subUnitId':_0x79824b[_0xb031ef(0x21c)],'selectedIds':_0x3da76e,'focusedId':_0x1da694};}let P=class extends n[_0x4fde36(0x18c)]{get[_0x4fde36(0x23c)](){const _0x399e99=_0x4fde36;return this['_cursorInfo$'][_0x399e99(0x1ec)]();}get[_0x4fde36(0x1d2)](){return this['_roomMembers$']['getValue']();}constructor(_0x18516c,_0x3b3f52,_0x43b948,_0xc66490,_0x14f20d){const _0x4f5ead=_0x4fde36;super(),this[_0x4f5ead(0x478)]=_0x18516c,this[_0x4f5ead(0x1a2)]=_0x3b3f52,this[_0x4f5ead(0x2fc)]=_0x43b948,this['_memberService']=_0xc66490,this[_0x4f5ead(0x459)]=_0x14f20d,x(this,_0x4f5ead(0x26b),!0x1),x(this,_0x4f5ead(0x392),!0x1),x(this,_0x4f5ead(0x1ab),new i[(_0x4f5ead(0x299))](new Map())),x(this,_0x4f5ead(0x259),this[_0x4f5ead(0x1ab)][_0x4f5ead(0x45f)]()),x(this,_0x4f5ead(0x1d8),new i['BehaviorSubject']([])),x(this,'roomMembers$',this[_0x4f5ead(0x1d8)][_0x4f5ead(0x19f)]((0x0,i['debounceTime'])(0x12c))),x(this,_0x4f5ead(0x2c0),(0x0,n[_0x4f5ead(0x2bb)])(_0x489d41=>{const _0x50e62c=_0x4f5ead;let _0xd10a61=_0x489d41[_0x50e62c(0x1a5)];if(!_0xd10a61||_0xd10a61['unitId']!==this[_0x50e62c(0x478)])return;let _0x39b5b8={'kind':_0x50e62c(0x2dc),'unitId':_0xd10a61[_0x50e62c(0x1e9)],'subUnitId':_0xd10a61[_0x50e62c(0x21c)],'selectedIds':_0x489d41[_0x50e62c(0x38f)]['filter'](_0x44a2e3=>typeof _0x44a2e3==_0x50e62c(0x189)),'focusedId':_0x489d41[_0x50e62c(0x178)]},_0x9269cd={'eventID':p[_0x50e62c(0x426)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x50e62c(0x478)],'memberID':this['_session'][_0x50e62c(0x356)](),'selection':JSON[_0x50e62c(0x1e5)](_0x39b5b8)}};this[_0x50e62c(0x1a2)]['send'](_0x9269cd,this[_0x50e62c(0x478)]);},0x64));}[_0x4fde36(0x295)](){const _0x5bd499=_0x4fde36;super[_0x5bd499(0x295)](),this['_cursorInfo$'][_0x5bd499(0x345)](new Map()),this[_0x5bd499(0x1ab)][_0x5bd499(0x20b)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x5bd499(0x20b)]();}['init'](){const _0x10cc5a=_0x4fde36;this[_0x10cc5a(0x392)]||(this[_0x10cc5a(0x392)]=!0x0,this[_0x10cc5a(0x1a2)][_0x10cc5a(0x1b9)]['pipe']((0x0,i[_0x10cc5a(0x328)])(this[_0x10cc5a(0x2d2)]))[_0x10cc5a(0x18e)](_0x38a9ed=>{const _0x7c1fc1=_0x10cc5a;_0x38a9ed===t[_0x7c1fc1(0x42c)]['ONLINE']?this[_0x7c1fc1(0x445)]():this[_0x7c1fc1(0x181)]();}),this[_0x10cc5a(0x1a2)]['event$'][_0x10cc5a(0x19f)]((0x0,i['takeUntil'])(this[_0x10cc5a(0x2d2)]))[_0x10cc5a(0x18e)](_0x449137=>{const _0x2daa63=_0x10cc5a;let _0x242ea1=_0x449137[_0x2daa63(0x16f)];_0x242ea1===p[_0x2daa63(0x426)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x449137),_0x242ea1===p[_0x2daa63(0x426)][_0x2daa63(0x31b)]&&this[_0x2daa63(0x47e)](_0x449137);}),this['_slideDrawingStateService']['state$'][_0x10cc5a(0x19f)]((0x0,i[_0x10cc5a(0x328)])(this['dispose$']))['subscribe'](_0x1b22ad=>{const _0x1a6c4a=_0x10cc5a;this[_0x1a6c4a(0x26b)]&&this[_0x1a6c4a(0x2c0)](_0x1b22ad);}));}['_onCursorUpdate'](_0x32825f){const _0x21600a=_0x4fde36;var _0x4f83ae,_0x56e18b,_0x5b1f71,_0x5b38dc;let {memberID:_0x5ddf5f,selection:_0x994b9d}=_0x32825f[_0x21600a(0x176)];if(_0x5ddf5f===((_0x4f83ae=(_0x56e18b=this[_0x21600a(0x1a2)])[_0x21600a(0x356)])==null?void 0x0:_0x4f83ae[_0x21600a(0x1bd)](_0x56e18b)))return;let _0x3ef47a=ye(_0x994b9d);if(!_0x3ef47a||_0x3ef47a[_0x21600a(0x1e9)]!==this[_0x21600a(0x478)])return;let _0x1071d2=(_0x5b1f71=(_0x5b38dc=this['_memberService'][_0x21600a(0x1ba)](this[_0x21600a(0x478)],_0x5ddf5f))==null?void 0x0:_0x5b38dc[_0x21600a(0x1d4)])==null?_0x21600a(0x239):_0x5b1f71,_0x4d37ea={'color':this[_0x21600a(0x2fc)][_0x21600a(0x284)](_0x5ddf5f),'name':_0x1071d2,'unitId':_0x3ef47a['unitId'],'subUnitId':_0x3ef47a[_0x21600a(0x21c)],'selectedIds':_0x3ef47a[_0x21600a(0x38f)],'focusedId':_0x3ef47a[_0x21600a(0x178)],'selection':_0x994b9d},_0x6cea8a=new Map(this[_0x21600a(0x23c)]);_0x6cea8a[_0x21600a(0x1a4)](_0x5ddf5f,_0x4d37ea),this[_0x21600a(0x1ab)]['next'](_0x6cea8a);}[_0x4fde36(0x47e)](_0x7e74e0){const _0x8c3bc8=_0x4fde36;let {memberID:_0x5e150c}=_0x7e74e0['data'],_0x5eecd3=new Map(this[_0x8c3bc8(0x23c)]);_0x5eecd3['delete'](_0x5e150c),this[_0x8c3bc8(0x1ab)]['next'](_0x5eecd3);}[_0x4fde36(0x445)](){const _0x2c2e85=_0x4fde36;this[_0x2c2e85(0x26b)]=!0x0,this[_0x2c2e85(0x2c0)](this['_slideDrawingStateService'][_0x2c2e85(0x1fc)]());}['_toggleOffline'](){this['_online']=!0x1;}};P=C([S(0x2,(0x0,n[_0x4fde36(0x2ff)])(k)),S(0x3,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x405)])),S(0x4,(0x0,n['Inject'])(_[_0x4fde36(0x2e9)]))],P);let F=class extends n[_0x4fde36(0x18c)]{constructor(_0x437552,_0x5bd0e5,_0x579e51){const _0x2ea758=_0x4fde36;super(),this[_0x2ea758(0x47b)]=_0x437552,this['_injector']=_0x5bd0e5,this[_0x2ea758(0x192)]=_0x579e51,x(this,_0x2ea758(0x31e),new Map()),x(this,_0x2ea758(0x3a9),new i[(_0x2ea758(0x389))]()),this[_0x2ea758(0x392)]();}[_0x4fde36(0x295)](){const _0x4dd21d=_0x4fde36;super[_0x4dd21d(0x295)](),this['_entityInit$'][_0x4dd21d(0x20b)](),this[_0x4dd21d(0x31e)][_0x4dd21d(0x19e)](_0xd82c81=>_0xd82c81['dispose']());}[_0x4fde36(0x2cb)](_0x4e4c7a){const _0x3b1b95=_0x4fde36;return this['_entities'][_0x3b1b95(0x24d)](_0x4e4c7a)?this[_0x3b1b95(0x31e)][_0x3b1b95(0x3bd)](_0x4e4c7a)['cursorInfo$']:this[_0x3b1b95(0x3a9)][_0x3b1b95(0x19f)]((0x0,i['filter'])(_0x5e70e0=>_0x5e70e0[_0x3b1b95(0x478)]===_0x4e4c7a),(0x0,i[_0x3b1b95(0x3e5)])(_0x4fe65e=>_0x4fe65e[_0x3b1b95(0x259)]));}['_init'](){const _0x4a7361=_0x4fde36;this[_0x4a7361(0x47b)]['getTypeOfUnitAdded$'](n['UniverInstanceType'][_0x4a7361(0x47d)])['pipe']((0x0,i['takeUntil'])(this[_0x4a7361(0x2d2)]))[_0x4a7361(0x18e)](async _0x37c255=>{const _0xfa2433=_0x4a7361;let _0x21b87b=_0x37c255[_0xfa2433(0x40f)]['getUnitId'](),_0xb0861f=await this[_0xfa2433(0x344)](_0x21b87b);this[_0xfa2433(0x3a9)][_0xfa2433(0x345)](_0xb0861f),this['_entities']['set'](_0x21b87b,_0xb0861f);}),this[_0x4a7361(0x47b)][_0x4a7361(0x416)](n[_0x4a7361(0x272)]['UNIVER_DOC'])[_0x4a7361(0x19f)]((0x0,i[_0x4a7361(0x328)])(this[_0x4a7361(0x2d2)]))[_0x4a7361(0x19f)]((0x0,i['filter'])(_0x4f6984=>!_0x4f6984[_0x4a7361(0x40f)][_0x4a7361(0x448)]()[_0x4a7361(0x2ce)]('__')))[_0x4a7361(0x18e)](async _0xffd62b=>{const _0x446f24=_0x4a7361;let {unit:_0x581c3b}=_0xffd62b,_0x4e808a=_0x581c3b['getUnitId'](),_0x2577b0=await this[_0x446f24(0x3e2)](_0x4e808a);this[_0x446f24(0x3a9)][_0x446f24(0x345)](_0x2577b0),this[_0x446f24(0x31e)]['set'](_0x4e808a,_0x2577b0);}),this[_0x4a7361(0x47b)][_0x4a7361(0x416)](n[_0x4a7361(0x272)][_0x4a7361(0x2ec)])[_0x4a7361(0x19f)]((0x0,i[_0x4a7361(0x328)])(this['dispose$']))[_0x4a7361(0x18e)](async _0x4590c8=>{const _0x4b4210=_0x4a7361;let _0x1776af=_0x4590c8['unit'][_0x4b4210(0x448)](),_0x4d8bec=await this[_0x4b4210(0x355)](_0x1776af);this[_0x4b4210(0x3a9)][_0x4b4210(0x345)](_0x4d8bec),this[_0x4b4210(0x31e)][_0x4b4210(0x1a4)](_0x1776af,_0x4d8bec);}),this[_0x4a7361(0x47b)][_0x4a7361(0x416)](n[_0x4a7361(0x272)]['UNIVER_BOARD'])[_0x4a7361(0x19f)]((0x0,i[_0x4a7361(0x328)])(this[_0x4a7361(0x2d2)]))[_0x4a7361(0x18e)](async _0x561a85=>{const _0x13299d=_0x4a7361;let _0x22b4ec=_0x561a85[_0x13299d(0x40f)][_0x13299d(0x448)](),_0x14b8ca=await this[_0x13299d(0x336)](_0x22b4ec);this[_0x13299d(0x3a9)][_0x13299d(0x345)](_0x14b8ca),this[_0x13299d(0x31e)]['set'](_0x22b4ec,_0x14b8ca);}),(0x0,i[_0x4a7361(0x3ef)])(this[_0x4a7361(0x47b)][_0x4a7361(0x334)](n[_0x4a7361(0x272)][_0x4a7361(0x370)]),this[_0x4a7361(0x47b)][_0x4a7361(0x334)](n[_0x4a7361(0x272)]['UNIVER_SHEET']),this[_0x4a7361(0x47b)][_0x4a7361(0x334)](n[_0x4a7361(0x272)][_0x4a7361(0x2ec)]),this[_0x4a7361(0x47b)][_0x4a7361(0x334)](n[_0x4a7361(0x272)]['UNIVER_BOARD']))['pipe']((0x0,i[_0x4a7361(0x328)])(this[_0x4a7361(0x2d2)]))[_0x4a7361(0x18e)](_0x5c2fb3=>{const _0x18f008=_0x4a7361;let _0x58f5ba=_0x5c2fb3[_0x18f008(0x448)](),_0x78bf0d=this[_0x18f008(0x31e)][_0x18f008(0x3bd)](_0x58f5ba);_0x78bf0d&&(_0x78bf0d['dispose'](),this[_0x18f008(0x31e)][_0x18f008(0x3a7)](_0x58f5ba));});}async[_0x4fde36(0x344)](_0x99e736){const _0x137d96=_0x4fde36;let _0x411223=await this[_0x137d96(0x192)][_0x137d96(0x40a)](_0x99e736),_0x352809=this[_0x137d96(0x1df)][_0x137d96(0x434)](N,_0x99e736,_0x411223);return _0x352809[_0x137d96(0x3e9)](),_0x352809;}async[_0x4fde36(0x3e2)](_0x37c128){const _0x9c0cce=_0x4fde36;let _0x17c16d=await this[_0x9c0cce(0x192)][_0x9c0cce(0x40a)](_0x37c128),_0x29b6c5=this[_0x9c0cce(0x1df)][_0x9c0cce(0x434)](M,_0x37c128,_0x17c16d);return _0x29b6c5['init'](),_0x29b6c5;}async[_0x4fde36(0x355)](_0x6f9ff7){const _0x466cae=_0x4fde36;let _0x438ee3=await this[_0x466cae(0x192)]['requireSession'](_0x6f9ff7),_0x365813=this['_injector']['createInstance'](P,_0x6f9ff7,_0x438ee3);return _0x365813[_0x466cae(0x3e9)](),_0x365813;}async[_0x4fde36(0x336)](_0x589a4f){const _0x45e28e=_0x4fde36;let _0x29bd00=await this[_0x45e28e(0x192)][_0x45e28e(0x40a)](_0x589a4f),_0xe1deef=this[_0x45e28e(0x1df)][_0x45e28e(0x434)](A,_0x589a4f,_0x29bd00);return _0xe1deef[_0x45e28e(0x3e9)](),_0xe1deef;}};F=C([S(0x0,n[_0x4fde36(0x260)]),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(t['CollaborationSessionService']))],F);let I=class extends n[_0x4fde36(0x18c)]{constructor(_0x4d96e4,_0x44a593,_0x3b909f){const _0x12fdf7=_0x4fde36;super(),this[_0x12fdf7(0x46c)]=_0x4d96e4,this[_0x12fdf7(0x25a)]=_0x44a593,this[_0x12fdf7(0x21e)]=_0x3b909f,x(this,'_cursors',new Set()),x(this,'_renderScheduled',!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,'_latestCursors',new Map()),this['_init']();}['dispose'](){const _0x5dea7f=_0x4fde36;this['_removeCollabCursors'](),super[_0x5dea7f(0x295)]();}['_init'](){const _0x9332dc=_0x4fde36;let _0x1cf85a=this[_0x9332dc(0x25a)]['getCollabCursors$'](this[_0x9332dc(0x46c)][_0x9332dc(0x1e9)]);this[_0x9332dc(0x32d)]((0x0,n[_0x9332dc(0x292)])((0x0,i[_0x9332dc(0x2f7)])([_0x1cf85a,this[_0x9332dc(0x46c)][_0x9332dc(0x40f)][_0x9332dc(0x233)],this['_themeService'][_0x9332dc(0x3fe)]])[_0x9332dc(0x19f)]((0x0,i[_0x9332dc(0x328)])(this[_0x9332dc(0x2d2)]))[_0x9332dc(0x18e)](([_0x422f82])=>{const _0x47966a=_0x9332dc;let _0x5e812e=this[_0x47966a(0x46c)][_0x47966a(0x40f)][_0x47966a(0x3eb)](),_0x60a2b3=new Map();_0x422f82[_0x47966a(0x19e)]((_0xdd5d8,_0x3aa1b4)=>{const _0x4403b9=_0x47966a;_0xdd5d8[_0x4403b9(0x21c)]===_0x5e812e&&_0x60a2b3[_0x4403b9(0x1a4)](_0x3aa1b4,{..._0xdd5d8,'color':this[_0x4403b9(0x21e)][_0x4403b9(0x3b5)](_0xdd5d8['color'])});}),this['_latestCursors']=_0x60a2b3,this['_scheduleRender']();})));let _0x55e7e9=this[_0x9332dc(0x46c)]['scene'];this['disposeWithMe']((0x0,n[_0x9332dc(0x292)])(_0x55e7e9['addObject$'][_0x9332dc(0x19f)]((0x0,i[_0x9332dc(0x328)])(this['dispose$']))[_0x9332dc(0x18e)](()=>{const _0x4fe36f=_0x9332dc;this[_0x4fe36f(0x258)]||this['_scheduleRender']();})));}['_scheduleRender'](){const _0x18664b=_0x4fde36;this[_0x18664b(0x46a)]||(this[_0x18664b(0x46a)]=!0x0,Promise[_0x18664b(0x308)]()[_0x18664b(0x3fb)](()=>{const _0x35e051=_0x18664b;this[_0x35e051(0x46a)]=!0x1,this[_0x35e051(0x1c8)]();}));}[_0x4fde36(0x1c8)](){const _0x23fb9e=_0x4fde36;this[_0x23fb9e(0x349)]();let _0x1e919f=this[_0x23fb9e(0x46c)][_0x23fb9e(0x40f)][_0x23fb9e(0x3eb)](),_0x4b36f5=[];if(this[_0x23fb9e(0x357)]['forEach']((_0x34e681,_0x3d224c)=>{const _0x13876b=_0x23fb9e;_0x34e681['subUnitId']===_0x1e919f&&_0x34e681[_0x13876b(0x38f)]['forEach'](_0x3de001=>{const _0x4c2fe5=_0x13876b;let _0x290e79=(0x0,e[_0x4c2fe5(0x337)])(_0x34e681['unitId'],_0x3de001),_0x1d8341=this['_getSceneObjectByKey'](_0x290e79);if(!_0x1d8341)return;let _0x330022=this[_0x4c2fe5(0x3c1)](_0x1d8341);_0x4b36f5['push'](new pe('board-collab-cursor-'+_0x3d224c+'-'+_0x3de001,{..._0x34e681,'left':_0x330022['left'],'top':_0x330022['top'],'width':_0x330022[_0x4c2fe5(0x395)],'height':_0x330022['height'],'angle':_0x1d8341[_0x4c2fe5(0x244)],'evented':!0x1,'zIndex':O}));});}),_0x4b36f5[_0x23fb9e(0x2ee)]===0x0){this[_0x23fb9e(0x46c)][_0x23fb9e(0x1e3)][_0x23fb9e(0x17e)](!0x0);return;}this[_0x23fb9e(0x258)]=!0x0,this[_0x23fb9e(0x46c)][_0x23fb9e(0x1e3)][_0x23fb9e(0x3d6)](_0x4b36f5,O),this[_0x23fb9e(0x258)]=!0x1,this['_cursors']=new Set(_0x4b36f5),this[_0x23fb9e(0x46c)][_0x23fb9e(0x1e3)][_0x23fb9e(0x17e)](!0x0);}['_removeCollabCursors'](){const _0x29107f=_0x4fde36;let _0x430b8a=Array[_0x29107f(0x412)](this[_0x29107f(0x2ea)]);if(_0x430b8a['length']===0x0)return;let _0x1794dc=this[_0x29107f(0x46c)][_0x29107f(0x1e3)];_0x29107f(0x24e)in _0x1794dc&&typeof _0x1794dc['removeObjects']==_0x29107f(0x1f5)?_0x1794dc['removeObjects'](_0x430b8a):_0x430b8a[_0x29107f(0x19e)](_0x1d0058=>{const _0x43fd6b=_0x29107f;_0x43fd6b(0x296)in _0x1794dc&&typeof _0x1794dc['removeObject']==_0x43fd6b(0x1f5)?_0x1794dc['removeObject'](_0x1d0058):_0x1d0058['dispose']();}),this[_0x29107f(0x2ea)][_0x29107f(0x2ca)](),_0x1794dc['makeDirty'](!0x0);}[_0x4fde36(0x398)](_0x14e671){const _0x2f436a=_0x4fde36;var _0xb106b2,_0x489897,_0x58a954;let _0xe33175=this[_0x2f436a(0x46c)][_0x2f436a(0x1e3)];return(_0xb106b2=(_0x489897=(_0x58a954=_0xe33175['getObjectIncludeInGroup'])==null?void 0x0:_0x58a954[_0x2f436a(0x1bd)](_0xe33175,_0x14e671))==null?_0xe33175[_0x2f436a(0x1c5)](_0x14e671):_0x489897)==null?null:_0xb106b2;}['_getObjectBounds'](_0x37089b){const _0x1d54c3=_0x4fde36;var _0x1d7c4a,_0x491171;let _0x27bb84=_0x37089b;return(_0x1d7c4a=(_0x491171=_0x27bb84['getRealBound'])==null?void 0x0:_0x491171[_0x1d54c3(0x1bd)](_0x27bb84))==null?{'left':_0x37089b[_0x1d54c3(0x3b6)],'top':_0x37089b[_0x1d54c3(0x2e1)],'width':_0x37089b['width'],'height':_0x37089b[_0x1d54c3(0x380)]}:_0x1d7c4a;}};I=C([S(0x1,(0x0,n['Inject'])(F)),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(n['ThemeService']))],I);function _0x29fa(){const _0x575a27=['_transformUndoRedoStack','delete','uni.network.url-service','_entityInit$','TEXT','_sheetSkeletonManagerService','createElement','triggerDblclick','_registerRenderDependencies','getAllUnitsForType','body','SnapshotLoadStage','_isBlinkVisible','column','addClipboardHook','getColorFromTheme','left','isTransformMutationFailure','div','collaboration-client-ui.collabStatus.fetchMiss','activeSheetId','_getAnchorBounding','InsertRowCommandId','get','unload','selections','BuiltInUIPart','_getObjectBounds','_lastResponseTimestamp','now','_logService','DEFAULT_WS_SESSION_TICKET_URL','debounceTime','error','useCallback','getViewport','_messageIds','UniverCollaborationClientPlugin','fill','SYNCED','maxFormulaLimit','RegularPolygon','_collabCursorState$','onPointerMove$','Shape','_scheduleHeartbeat','highlight','collaboration-client-ui.conflict.content','addObjects','remove','collab-text-anchor-','_draw','row','_stopBlinking','code','unsubscribe','text','getOffsetConfig','collaboration-client-ui.collabStatus.offline','LOADING_SNAPSHOT','_startDocCollabCursor','_dataLoaderService','Tools','switchMap','getCurrentRevOfUnit','collaboration-client-ui.permission.title','runRefRangeMutations','init','transformIMECache','getActivePageId','getCellMatrix','IImageIoService','sheetId','merge','connectInjector','Button','getSheetObject','application/json','setConfig','closePath','getParam','_onCursorUpdate','CollaborationSocketService','collaboration-client-ui.conflict.title','_commandService','then','_pollingInterval','Failed','currentTheme$','all','getUnit','#FFF','Plugin','color','handleInsertRow','MemberService','getUniverSheetInstance','_docTransformStateCacheService','_applyCommand','@univerjs-pro/collaboration-client-ui','requireSession','syncEditingCollabCursor','undoState','values','location','unit','_docTransformIMECacheService','isTransformMutationsWithChangesetSuccess','from','endRow','InsertRangeMoveDownCommandId','_initEntityListener','getTypeOfUnitAdded$','getRenderById','true','/universer-api/license/formula/limit/start','event$','ThemeService','IBoardElementStateService','_notificationService','FromArray','_renderManagerService','EffectRefRangId','SnapshotLoadingService','RemoteUniscriptService','_getSessionTicket','652256pzDxXu','_startCalculationLimit','CollaborationEvent','getCellPositionByOffset','isFormulaId','beforeCommandExecuted','map','OffLineIcon','SessionStatus','constructor','collaboration-client-ui.session.will-retry','_latestStates','handleInsertRangeMoveRight','_backgroundColor','_updateSubUnitFromURLParams','_hover','createInstance','green.600','DocSkeletonManagerService','updateOfflineData','ISocketService','[Window\x20Error]:\x20','getLocalCacheKey','socket$','message','isFormulaString','moveTo','_shortcutBlock','red.300','_urlService','beginPath','useDependency','LoadingMultiIcon','_toggleOnline','mutations','m1Prime','getUnitId','transformSelections','unshift','split','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-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','snapshot-loading-timeout','_showGuardMessage','261UDuAHs','_blinkTimer','_hideTimer','getVpScrollXYInfoByPosToVp','labelHorizontalPosition','clsx','_shortcutService','_drawTextRange','_docStateChangeManagerService','preventDefault','_slideDrawingStateService','DOC_RANGE_TYPE','jsxs','CollaborationStatus','getCollabEntity$','collaboration-client-ui.session.connection-failed','asObservable','transformByState','getObjectIncludeInGroup',',\x200.2)','_clearTimeoutState','_uploadLog','collab-rect-range-','memberID','SUCCESS','default','_updateURLWithCurrentState','_renderScheduled','_localeService','_context','[CollaborationDataLoaderController]','disableLocalCache','add','getCurrentUnitOfType','OFFLINE','pluginName','getId','getCurrentTypeOfUnit$','_getSheetLoadingRenderService','transformRemoteChangeset','invokeId','unitID','arc','SUBMIT_CHANGESET_TIMEOUT','_univerInstanceService','createIdentifier','UNIVER_SHEET','_onCursorDelete','_updateCollabCursors','addEventListener','handleIRemoveRow','right','collaboration-client-ui.collaboration.closeRoom','loadUnit','UnitStatus','_previewUnitId','NodePositionConvertToRectRange','_watchBlockProgress','_checkCalculationAvailable','CollaborationUIEventId','clickable','_offsetY','Optional','_getLighterColor','_setFormulaLimitStatus','with','eventID','univer-h-8\x20univer-w-8\x20univer-rounded-lg','setTimeout','DocIMEInputManagerService','dark:focus:!univer-ring-offset-gray-800','_config','_initEvent','data','stack','focusedId','pushState','object','override','_httpService','static','makeDirty','timedOut','getRangePointData','_toggleOffline','_docSkeletonManagerService','_range','TEXT_RANGE_LAYER_INDEX','onPointerEnter$','_getSaveTimeout','focused$','_snapshotLoadingService','string','collaboration-client-ui.config','runId','RxDisposable','min','subscribe','_checkAndWaitForCalculationPermission','fillText','_refreshCollabCursors','_collabSessionService','12954lVfBpG','_handleHeartbeatEvent','small','onStarting','Injector','params','COMPLETE','replaceState','_releaseCalculationLimit','offsetY','5ylKUyP','forEach','pipe','_disabled','UPDATE_CURSOR','_session','registerRefRange','set','context','SetFormulaCalculationNotificationMutation','getUndoRedoMutationParamsCache','857481iFhZEe','enableFrontendLog','UniverCollaborationClientUIPlugin','_cursorInfo$','MessageType','showSkeleton','_interactionBlocked$','ILocalCacheService','_initWindowErrorListener','deepClone','SetTextSelectionsOperation','_getScale','replace','handleDeleteRangeMoveLeft','debug','_hidePreview','touchDependencies','sessionStatus$','getMember','toRgbString','workbookShell','call','setShapeProps','jiqing.500','94680stHsvq','getCoordByCell','handleMoveRange','_setupBeforeClosingHandler','DocStateChangeManagerService','getObject','_localCacheService','fromEventSubject','_render','forceDisable','OnLineIcon','startFormulaLimitUrl','fillRule','backgroundColor','ColorKit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','slide-collab-cursor-','measureText','roomMembers','setInterval','name','_syncEditingCollabCursorService','_drawRectRange','getUnhiddenWorksheets','_roomMembers$','loadOfflineData','LocaleService','_initCommandExecutedListener','_onRefRangeChange','toString','contains','_injector','send','collaboration-client-ui.formula.calculation.started','_scheduleRender','scene','post','stringify','INotificationService','LOADING_BLOCKS','executeCommand','unitId','Fragment','highlightSecond','getValue','OTHER_CLIENTS_EDITING','804gTWdeP','_sheetLoadingRenderService','_startBlinking','_ensureSubject','yellow.400','Vector2','_highlightSecond','function','univer-transition-all\x20univer-duration-200','getFormulaLimitStatusUrl','_docTransformSelectionsService','_setInteractionBlocked','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','toPrimitive','getSnapshot','_handleJoinEvent','handleIRemoveCol','_id','univer-text-blue-500','clearTimeout','slice','board-element-selection','getCurrentSkeleton','LOCAL_CACHE_INTERVAL_KEY','getFocusedUnit','ISheetLoadingRenderService','getActiveSheet','subscribeEvent','?taskId=','complete','_color','getRealBound','getOwnPropertyDescriptor','getSheetBySheetId','max','SetWorksheetActivateCommand','previewCellData','getAncestorScale','ILocalStorageService','_name','currentUsage','_docClipboardService','[Unhandled\x20Rejection]:\x20','Enter','handleInsertRangeMoveDown','getColor','subUnitId','CollaborationController','_themeService','_eventUnsubscribe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SheetSkeletonManagerService','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','_handleEvent','SOCKET_FAILED','state$','_labelPosition','findNodePositionByCharIndex','collaboration-client-ui.collabStatus.synced','univer-border-none\x20univer-bg-transparent','Rectangle','_initUnhandledRejectionListener','m2Prime','purple.300','colno','DisposableCollection','getSkeleton','Disposable','disposeUnit','theme$','START_CALCULATION','generateRandomId','source','some','collaboration-client-ui.snapshotLoading.refresh','Unknown\x20user','mergeOverrideWithDependencies','primary','cursorInfo','editingUnit','clearInterval','getRelativeToViewportCoord','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','flatMap','SHEET_VIEWPORT_KEY','PERMISSION_DENIED','angle','enableDocumentCollaborationUI','catch','FETCH_MISS','225654zwFTnf','functionsExecutedState','Rect','startPluginsForType','_scheduleClearOtherTimer','has','removeObjects','_drawAnchor','_labelHorizontalPosition','_transformService','RECT','collabCursorState$','onPointerLeave$','_cursorShapes','hovered','Error','_isApplyingOverlays','cursorInfo$','_collabCursorController','resize','_collaborationController','VIEW_MAIN','IUIPartsService','_configService','IUniverInstanceService','reason','blue.400','_updateSheetPreview','distinctUntilChanged','rgba(','registerRenderModule','_blockProgressWatches','collaboration-client-ui.collabStatus.syncing','_handoffUnitIds','_highlight','_online','timeoutState$','redoState','registerBeforeClose','reload','_isVisibleUnit','dirtyRanges','UniverInstanceType','_revisionService','univer-appearance-none','font','NO_OTHER_CLIENTS_EDITING','save','labelPosition','useMemo','removeEventListener','strokeWidth','DeleteRangeMoveUpCommandId','throttleTime','HEADER_MENU','\x20at\x20','roomMembers$','_initStatusListener','_memberID','transformStateCache','assignAColorForMemberID','_saveTaskMap','_hasFormulaInDirtyRanges','_maxFormulaLimit','_assignedColors','CollaborationSessionService','_currentUsage','COLORS','_shapes','_pluginService','lineTo','limitInfo','univer-text-red-500','_showText','toDisposable','IMessageService','rgb','dispose','removeObject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getActiveSlide','BehaviorSubject','filename','addHandlerCallback','exhaustSavingTask','Workbook','_clearOtherTimers','registerComponent','AWAITING_WITH_PENDING','RemoveColCommandId','collaboration-client-ui.snapshotLoading.timeout','_cachedData','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_send','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_boardElementStateService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','/universer-api/frontend/logs','shareReplay','MoveRangeCommandId','fillStyle','_anchor','_colorIndex','runOnServer','pulse','rgba','_status$','_createSocketURL','replaceDocRanges','PluginService','button','_transformPreviousActiveRange','newValue','CollaborationUIEventService','DesktopCollaborationStatusDisplayController','debounce','previewReady','2OefTnF','useObservable','_heartbeatTimer','_updateLocalCursor','_uiPartsService','_updateMessage','hide','getItem','_getSheetObject','saveTaskMap','PENDING','setUndoRedoMutationParamsCache','drawWith','clear','getCollabCursors$','range','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','startsWith','fromEvent','OTHER_CLIENT_EDITING','parseInt','dispose$','_scheduleSaving','ISnapshotServerService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collaboration-client-ui.collaboration.offline-data-not-saved','2426120iyyzaC','status$','IBeforeCloseService','tooltipKey','engine','slide-element-selection','colorClass','find','sessionTicket','SheetCollabCursorShape','top','HTTPService','collaboration-client-ui.collabStatus.notCollab','evenodd','type','rgba(255,\x20255,\x20255,\x200.01)','selection','push','ISlideDrawingStateService','_cursors','NOT_COLLAB','UNIVER_SLIDE','_collaborationUIEventService','length','setOffsetY','ITransformService','href','_timeoutState$','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_collaborationSessionService','DocSelectionManagerService','snapshot-loading-interaction-guard','combineLatest','show','_saveCache','stage','unhandledrejection','_colorAssignService','Loading','_messageService','Inject','backupOfflineData','1127Kgodly','strokeStyle','span','pageManager','black','polite','jsx','resolve','enableLocalCache','_localStorageService','evented','_clearPolling','_textBubble','handoff','FormulaExecuteStageType','_blinkIntervalTimer','spin','_anchorDot','currentSkeleton$','ILogService','LOCAL_CACHE_INTERVAL','univer-flex\x20univer-items-center\x20univer-justify-center','refreshLabel','subunit','defineProperty','showText','USERS_LEAVE','_initCommandInterceptor','ONLINE','_entities','decorate','SOCKET_FAILED_RETRY','prototype','version','_taskIds','buildDrawingOKey','_setupSubUnitSync','loadedBlocks','ranges','takeUntil','BrowserCollaborationSocketService','deserializeRangeWithSheet','saveImage','_cursor','disposeWithMe','transformMutationsWithChangeset','status','_instanceService','isInternalEditorID','onTransformChange$','_unitOnClients','getTypeOfUnitDisposed$','reconnect','_startBoardCollabCursor','getBoardElementRenderObjectKey','_handleLeaveEvent','_registerDependencies','_lastPointer','getMergeData','sheetID','RevisionService','searchParams','_initStatusComponent','removeParam','symbol','DeleteRangeMoveLeftCommandId','isArray','_startSheetCollabCursor','next','endColumn','textRanges','bottom','_removeCollabCursors','...','_hovered','ErrorCode','_selfUnitIDs','WebSocketService','ERROR','_monkeyPatchLogService','kind','IURLService','size','_scene','_startSlideCollabCursor','getMemberID','_latestCursors','_unitStatus','lineWidth','value','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','GLOBAL','whenReady','FormulaExecutedStateType','setActiveRange','startRow','WarningIcon','209858ZAirVh','_initUserListener','univer-text-green-500','Tooltip','_clearBlockProgressWatch','UNIVER_BOARD','_refRangeService','isActive','1.0.0-alpha.5','_memberService','InsertRangeMoveRightCommandId','onMouseMove','transformMutation','imageSourceType','UNIVER_DOC','_removeClearOtherTimer','setAlpha','univer-text-gray-400','IRenderManagerService','ICommandService','onCommandExecuted','key','activeSheet$','_initResize','getStateCache','_pointerMoveDisposable','history','/universer-api/license/formula/limit/status','[LogService\x20Error]:\x20','_initDependencies','height','filter','RemoveRowCommandId','startColumn','getUnitStatus$','IConfigService','urlChange$','getDocRanges','SetDocZoomRatioOperation','Subject','addObject','registerDependencies','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','executionId','setItem','selectedIds','totalBlocks','getConfig','_init','strokeRect','Warning','width','restore','includes','_getSceneObjectByKey','CONFLICT','_beforeCloseService','doc.mutation.rich-text-editing','getSheetId','getCurrentSelections','packageName','transform','setParam','parse','_getFormulaLimitStatus','_doCreateSocket','timeoutId','_imageIoService'];_0x29fa=function(){return _0x575a27;};return _0x29fa();}const L=_0x4fde36(0x3d8);var be=class{constructor(_0x26d784,_0x509b39,_0x480b1b,_0x783607){const _0x5406d4=_0x4fde36;this['_cursor']=_0x26d784,this['_scene']=_0x509b39,this['_docSkeleton']=_0x480b1b,this['_document']=_0x783607,x(this,_0x5406d4(0x28c),[]),x(this,_0x5406d4(0x2ad),null),x(this,'_textBubble',null),x(this,_0x5406d4(0x312),null),x(this,'_hideTimer',null),x(this,_0x5406d4(0x21f),null),this[_0x5406d4(0x1c8)]();}set[_0x4fde36(0x433)](_0xcab156){const _0x48e53b=_0x4fde36;_0xcab156?(this['_anchorDot']&&this[_0x48e53b(0x312)][_0x48e53b(0x2c3)](),this[_0x48e53b(0x30d)]&&this[_0x48e53b(0x30d)][_0x48e53b(0x2f8)]()):(this[_0x48e53b(0x312)]&&this['_anchorDot']['show'](),this[_0x48e53b(0x30d)]&&this[_0x48e53b(0x30d)]['hide']());}[_0x4fde36(0x295)](){const _0x5b15cc=_0x4fde36;for(let _0xf439e8 of this[_0x5b15cc(0x28c)])_0xf439e8['dispose']();this[_0x5b15cc(0x30d)]&&this['_textBubble'][_0x5b15cc(0x295)](),this[_0x5b15cc(0x312)]&&this[_0x5b15cc(0x312)][_0x5b15cc(0x295)](),this[_0x5b15cc(0x2ad)]&&this[_0x5b15cc(0x2ad)][_0x5b15cc(0x295)](),this['_eventUnsubscribe']&&this[_0x5b15cc(0x21f)]();}[_0x4fde36(0x1c8)](){const _0x138f67=_0x4fde36;let {_docSkeleton:_0x25b63f,_document:_0x50b0a0}=this,{color:_0x3b3cfc,name:_0x169586,ranges:_0x52fa10}=this[_0x138f67(0x32c)],_0x102193=_0x50b0a0[_0x138f67(0x3df)](),{docsLeft:_0x1302cb,docsTop:_0x1f83a4}=_0x102193,_0x30769d=new f['NodePositionConvertToCursor'](_0x102193,_0x25b63f);for(let {startOffset:_0x3dfe5e,endOffset:_0xd49b53,rangeType:_0x384dc1,segmentId:_0x26d775,segmentPage:_0x3ce9da,collapsed:_0x5db97c,isActive:_0x1ad1ba}of _0x52fa10){let _0x1525b3=_0x25b63f[_0x138f67(0x227)](_0x3dfe5e,!0x0,_0x26d775,_0x3ce9da),_0x4d5834=_0x25b63f['findNodePositionByCharIndex'](_0xd49b53,!0x0,_0x26d775,_0x3ce9da);if(_0x4d5834==null&&(_0x4d5834=_0x25b63f[_0x138f67(0x227)](_0xd49b53-0x1,!0x1,_0x26d775,_0x3ce9da)),_0x1ad1ba){let {contentBoxPointGroup:_0x2f0483}=_0x30769d[_0x138f67(0x180)](_0x4d5834,_0x4d5834);if(_0x2f0483[_0x138f67(0x2ee)]===0x0)continue;this[_0x138f67(0x24f)](_0x3b3cfc,_0x2f0483,_0x1302cb,_0x1f83a4,_0x169586),this[_0x138f67(0x21f)]=this['_handleHover']();}if(_0x1525b3&&_0x4d5834){if(_0x384dc1===n['DOC_RANGE_TYPE'][_0x138f67(0x252)]){var _0x502957;let {pointGroup:_0x5c7606}=(_0x502957=new f[(_0x138f67(0x165))](_0x102193,_0x25b63f)['getRangePointData'](_0x1525b3,_0x4d5834))==null?{}:_0x502957;if(_0x5c7606==null||_0x5c7606[_0x138f67(0x2ee)]===0x0)continue;this[_0x138f67(0x1d6)](_0x3b3cfc,_0x5c7606,_0x1302cb,_0x1f83a4);}else{if(!_0x5db97c){let {borderBoxPointGroup:_0x1be072}=_0x30769d[_0x138f67(0x180)](_0x1525b3,_0x4d5834);if(_0x1be072[_0x138f67(0x2ee)]===0x0)continue;this[_0x138f67(0x456)](_0x3b3cfc,_0x1be072,_0x1302cb,_0x1f83a4);}}}}}[_0x4fde36(0x24f)](_0x3e1fa8,_0x44fc8d,_0xc0639,_0x150580,_0x32fc90){const _0x544d53=_0x4fde36;let {left:_0x13629e,top:_0x456e8a,height:_0xd9d147}=this[_0x544d53(0x3bb)](_0x44fc8d),_0x1cde1d=1.5/this[_0x544d53(0x1b3)](),_0x175104=new u[(_0x544d53(0x24a))](L+(0x0,n['generateRandomId'])(0x6),{'left':_0x13629e+_0xc0639-_0x1cde1d,'top':_0x456e8a+_0x150580,'height':_0xd9d147,'width':1.5,'fill':_0x3e1fa8||(0x0,u[_0x544d53(0x21b)])(n[_0x544d53(0x28b)][_0x544d53(0x305)],0x0),'strokeWidth':_0x1cde1d,'stroke':_0x544d53(0x2e6),'evented':!0x0});this[_0x544d53(0x2ad)]=_0x175104,this[_0x544d53(0x354)][_0x544d53(0x38a)](_0x175104,f[_0x544d53(0x184)]);let _0x20141b=new u[(_0x544d53(0x24a))](L+(0x0,n['generateRandomId'])(0x6),{'left':_0x13629e+_0xc0639-_0x1cde1d,'top':_0x456e8a+_0x150580-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x3e1fa8||(0x0,u['getColor'])(n['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x3e1fa8||(0x0,u[_0x544d53(0x21b)])(n[_0x544d53(0x28b)]['black'],0x0),'evented':!0x1});this[_0x544d53(0x312)]=_0x20141b,this[_0x544d53(0x354)][_0x544d53(0x38a)](_0x20141b,f[_0x544d53(0x184)]);let _0x5e65eb=new D(L+(0x0,n[_0x544d53(0x235)])(0x6),{'left':_0x13629e+_0xc0639-_0x1cde1d,'top':_0x456e8a+_0x150580-0x14,'text':_0x32fc90,'color':_0x3e1fa8});this['_textBubble']=_0x5e65eb,this[_0x544d53(0x354)][_0x544d53(0x38a)](_0x5e65eb,f[_0x544d53(0x184)]),this[_0x544d53(0x433)]=!0x1;}['_handleHover'](){const _0x272f38=_0x4fde36;let _0x3d07c0=this[_0x272f38(0x2ad)][_0x272f38(0x185)][_0x272f38(0x209)](()=>{this['_hover']=!0x0;}),_0xbc96be=this[_0x272f38(0x2ad)][_0x272f38(0x254)][_0x272f38(0x209)](()=>{const _0x509d5d=_0x272f38;this['_hideTimer']&&clearTimeout(this[_0x509d5d(0x451)]),this[_0x509d5d(0x451)]=setTimeout(()=>{const _0x386815=_0x509d5d;this[_0x386815(0x433)]=!0x1;},0x7d0);});return()=>{const _0x1f8eef=_0x272f38;_0x3d07c0[_0x1f8eef(0x3dd)](),_0xbc96be[_0x1f8eef(0x3dd)]();};}[_0x4fde36(0x456)](_0x2b1a7a,_0x23d2c3,_0x4088d0,_0xa0c969){const _0xa15d47=_0x4fde36;let _0x46fe14=0.2,_0x1f9758=new n[(_0xa15d47(0x1ce))](_0x2b1a7a)['setAlpha'](_0x46fe14)[_0xa15d47(0x1bb)](),_0x144aea=new u[(_0xa15d47(0x3cf))]('collab-text-range-'+(0x0,n['generateRandomId'])(0x6),{'pointsGroup':_0x23d2c3,'fill':_0x1f9758||(0x0,u[_0xa15d47(0x21b)])(n[_0xa15d47(0x28b)][_0xa15d47(0x305)],_0x46fe14),'left':_0x4088d0,'top':_0xa0c969,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xa15d47(0x2e8)](_0x144aea),this['_scene'][_0xa15d47(0x38a)](_0x144aea,f[_0xa15d47(0x184)]);}[_0x4fde36(0x1d6)](_0x27cbf5,_0xf211cd,_0x55c693,_0x3061a1){const _0x31f233=_0x4fde36;let _0x5dba43=0.2,_0x44e93d=new n[(_0x31f233(0x1ce))](_0x27cbf5)[_0x31f233(0x372)](_0x5dba43)[_0x31f233(0x1bb)](),_0x54e3fb=new u[(_0x31f233(0x3cf))](_0x31f233(0x465)+(0x0,n[_0x31f233(0x235)])(0x6),{'pointsGroup':_0xf211cd,'fill':_0x44e93d||(0x0,u[_0x31f233(0x21b)])(n['COLORS'][_0x31f233(0x305)],_0x5dba43),'left':_0x55c693,'top':_0x3061a1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x54e3fb),this[_0x31f233(0x354)]['addObject'](_0x54e3fb,f[_0x31f233(0x184)]);}[_0x4fde36(0x3bb)](_0x1f0d43){let _0x386bba=_0x1f0d43[0x0],_0x31be09=_0x386bba[0x0],_0x37fa2b=_0x386bba[0x2],{x:_0x1e3918,y:_0x15c334}=_0x31be09,{x:_0x3efc7f,y:_0x3ed203}=_0x37fa2b;return{'left':_0x1e3918,'top':_0x15c334,'width':_0x3efc7f-_0x1e3918,'height':_0x3ed203-_0x15c334};}[_0x4fde36(0x1b3)](){const _0xdcce84=_0x4fde36;let {scaleX:_0x3ee531,scaleY:_0x1a1b99}=this[_0xdcce84(0x354)]['getAncestorScale']();return Math[_0xdcce84(0x210)](_0x3ee531,_0x1a1b99);}};let R=class extends n[_0x4fde36(0x18c)]{constructor(_0x2608f0,_0x4715c3,_0x474b81,_0x59751d,_0xbdaf59){const _0x382c41=_0x4fde36;super(),this['_context']=_0x2608f0,this[_0x382c41(0x182)]=_0x4715c3,this[_0x382c41(0x25a)]=_0x474b81,this['_commandService']=_0x59751d,this[_0x382c41(0x21e)]=_0xbdaf59,x(this,'_cursorShapes',[]),x(this,_0x382c41(0x2ea),[]),this[_0x382c41(0x392)]();}['_init'](){const _0x40e804=_0x4fde36;let _0x2f4310=this[_0x40e804(0x46c)]['unitId'],_0x1ac376=this['_docSkeletonManagerService'];this[_0x40e804(0x32d)]((0x0,i[_0x40e804(0x2f7)])([this[_0x40e804(0x25a)][_0x40e804(0x2cb)](_0x2f4310),this[_0x40e804(0x21e)][_0x40e804(0x3fe)]])[_0x40e804(0x19f)]((0x0,a[_0x40e804(0x42a)])(([_0x3a8c1a,_0xf1fa83])=>({'skeleton':_0x1ac376[_0x40e804(0x230)](),'cursors':[..._0x3a8c1a[_0x40e804(0x40d)]()][_0x40e804(0x241)](_0x363cae=>({..._0x363cae,'color':this[_0x40e804(0x21e)][_0x40e804(0x3b5)](_0x363cae[_0x40e804(0x403)])}))})))[_0x40e804(0x18e)](_0x17fb99=>{const _0x4e78ae=_0x40e804;if(this[_0x4e78ae(0x349)](),_0x17fb99){let {skeleton:_0xfb251c,cursors:_0x50ca2e}=_0x17fb99;this[_0x4e78ae(0x47f)](_0xfb251c,_0x50ca2e);}})),this[_0x40e804(0x379)](),this[_0x40e804(0x1db)]();}[_0x4fde36(0x47f)](_0xc0802e,_0x2f644d){const _0x68da6a=_0x4fde36;let {scene:_0x4daffe,mainComponent:_0x5c6dfa}=this[_0x68da6a(0x46c)],_0x448aa7=_0x2f644d[_0x68da6a(0x42a)](_0x48fa9c=>new be(_0x48fa9c,_0x4daffe,_0xc0802e,_0x5c6dfa));this[_0x68da6a(0x255)]=_0x448aa7,this[_0x68da6a(0x2ea)]=_0x2f644d;}[_0x4fde36(0x191)](){const _0x2a7f3f=_0x4fde36;this[_0x2a7f3f(0x349)]();let {scene:_0x28c6be,mainComponent:_0x5005dd}=this[_0x2a7f3f(0x46c)],_0x587878=this[_0x2a7f3f(0x182)][_0x2a7f3f(0x230)](),_0xc307a6=this[_0x2a7f3f(0x2ea)][_0x2a7f3f(0x42a)](_0x5b4e2e=>new be(_0x5b4e2e,_0x28c6be,_0x587878,_0x5005dd));this[_0x2a7f3f(0x255)]=_0xc307a6;}[_0x4fde36(0x349)](){const _0x1d30b3=_0x4fde36;this[_0x1d30b3(0x255)][_0x1d30b3(0x19e)](_0x2590b2=>_0x2590b2[_0x1d30b3(0x295)]()),this['_cursorShapes']=[];}[_0x4fde36(0x1db)](){const _0x2783c2=_0x4fde36;let _0x33c749=[f[_0x2783c2(0x388)]['id']];this[_0x2783c2(0x32d)](this[_0x2783c2(0x3fa)][_0x2783c2(0x376)](_0x13e632=>{const _0x1e2ebc=_0x2783c2;_0x33c749[_0x1e2ebc(0x397)](_0x13e632['id'])&&_0x13e632[_0x1e2ebc(0x198)]['unitId']===this[_0x1e2ebc(0x46c)][_0x1e2ebc(0x1e9)]&&this['_refreshCollabCursors']();}));}[_0x4fde36(0x379)](){const _0x1ee8ab=_0x4fde36;this[_0x1ee8ab(0x32d)]((0x0,n[_0x1ee8ab(0x1c7)])(this[_0x1ee8ab(0x46c)][_0x1ee8ab(0x2db)][_0x1ee8ab(0x332)])[_0x1ee8ab(0x19f)]((0x0,a[_0x1ee8ab(0x381)])(_0x5cba4b=>_0x5cba4b[_0x1ee8ab(0x2e5)]===u[_0x1ee8ab(0x297)][_0x1ee8ab(0x25b)]),(0x0,a[_0x1ee8ab(0x27d)])(0x10))[_0x1ee8ab(0x18e)](()=>{this['_refreshCollabCursors']();}));}};R=C([S(0x1,(0x0,n[_0x4fde36(0x2ff)])(m[_0x4fde36(0x436)])),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(F)),S(0x3,n[_0x4fde36(0x375)]),S(0x4,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x41b)]))],R);var xe=class extends u[_0x4fde36(0x3d2)]{constructor(_0x573e8b,_0x262b99){const _0x21c556=_0x4fde36;if(super(_0x573e8b,_0x262b99),x(this,'_color',void 0x0),x(this,_0x21c556(0x34b),!0x1),x(this,'_range',void 0x0),x(this,_0x21c556(0x215),''),x(this,'_labelPosition',_0x21c556(0x2e1)),x(this,_0x21c556(0x431),void 0x0),x(this,_0x21c556(0x291),void 0x0),x(this,_0x21c556(0x26a),void 0x0),x(this,_0x21c556(0x1f4),0x4),x(this,_0x21c556(0x450),void 0x0),x(this,_0x21c556(0x310),void 0x0),x(this,'_isBlinkVisible',!0x0),x(this,'_offsetY',0x0),x(this,_0x21c556(0x250),_0x21c556(0x482)),_0x262b99){var _0x2a78f3;if(this['setShapeProps'](_0x262b99),_0x262b99['highlight']&&((_0x2a78f3=_0x262b99[_0x21c556(0x1eb)])==null?this['_highlightSecond']:_0x2a78f3)){var _0x20ce25;this['_startBlinking']((_0x20ce25=_0x262b99[_0x21c556(0x1eb)])==null?this[_0x21c556(0x1f4)]:_0x20ce25);}}this[_0x21c556(0x185)][_0x21c556(0x209)](()=>this[_0x21c556(0x1be)]({'hovered':!0x0})),this[_0x21c556(0x254)][_0x21c556(0x209)](()=>this[_0x21c556(0x1be)]({'hovered':!0x1}));}[_0x4fde36(0x2ef)](_0x455cc1){this['_offsetY']=_0x455cc1;}['setShapeProps'](_0x25d42a){const _0x118723=_0x4fde36;var _0x5b087c,_0x35727,_0x78dbe4,_0x26782b,_0x5b725a,_0x3d4d57,_0x4d77f6,_0x5d5685;this['_color']=(_0x5b087c=_0x25d42a[_0x118723(0x403)])==null?this[_0x118723(0x20c)]:_0x5b087c,this[_0x118723(0x34b)]=(_0x35727=_0x25d42a[_0x118723(0x256)])==null?this[_0x118723(0x34b)]:_0x35727,this['_range']=(_0x78dbe4=_0x25d42a[_0x118723(0x2cc)])==null?this[_0x118723(0x183)]:_0x78dbe4,this[_0x118723(0x215)]=(_0x26782b=_0x25d42a[_0x118723(0x1d4)])==null?this[_0x118723(0x215)]:_0x26782b,this[_0x118723(0x226)]=(_0x5b725a=_0x25d42a[_0x118723(0x278)])==null?this[_0x118723(0x226)]:_0x5b725a,this[_0x118723(0x431)]=(_0x3d4d57=_0x25d42a[_0x118723(0x1cd)])==null?this['_backgroundColor']:_0x3d4d57,this['_showText']=(_0x4d77f6=_0x25d42a[_0x118723(0x31a)])==null?this[_0x118723(0x291)]:_0x4d77f6,this['_labelHorizontalPosition']=(_0x5d5685=_0x25d42a[_0x118723(0x453)])==null?this[_0x118723(0x250)]:_0x5d5685,_0x25d42a[_0x118723(0x1eb)]!==void 0x0&&(this[_0x118723(0x1f4)]=_0x25d42a[_0x118723(0x1eb)]),_0x25d42a[_0x118723(0x3d4)]!==void 0x0&&(this[_0x118723(0x26a)]=_0x25d42a[_0x118723(0x3d4)]),_0x25d42a[_0x118723(0x19c)]!==void 0x0&&(this[_0x118723(0x16a)]=_0x25d42a[_0x118723(0x19c)]),this[_0x118723(0x460)]({'width':_0x25d42a[_0x118723(0x395)],'height':_0x25d42a[_0x118723(0x380)]});}[_0x4fde36(0x36d)](_0x53cc5c){const _0x3e3fc0=_0x4fde36;let {row:_0x33162d,column:_0x3ea2f8}=_0x53cc5c;if(_0x33162d>=this[_0x3e3fc0(0x183)]['startRow']&&_0x33162d<=this['_range'][_0x3e3fc0(0x413)]&&_0x3ea2f8>=this[_0x3e3fc0(0x183)][_0x3e3fc0(0x383)]&&_0x3ea2f8<=this['_range'][_0x3e3fc0(0x346)]){this[_0x3e3fc0(0x1be)]({'hovered':!0x0});return;}this[_0x3e3fc0(0x1be)]({'hovered':!0x1});}[_0x4fde36(0x1f0)](_0x107be2){const _0x48731d=_0x4fde36;this[_0x48731d(0x3db)](),this[_0x48731d(0x3b2)]=!0x0,this['_blinkIntervalTimer']=window[_0x48731d(0x1d3)](()=>{const _0x56a9a3=_0x48731d;this[_0x56a9a3(0x3b2)]=!this['_isBlinkVisible'],this[_0x56a9a3(0x17e)](!0x0);},0x1f4),this[_0x48731d(0x450)]=window['setTimeout'](()=>{const _0x4d3384=_0x48731d;this[_0x4d3384(0x3db)](),this['_isBlinkVisible']=!0x0,this[_0x4d3384(0x17e)](!0x0);},_0x107be2*0x3e8);}['_stopBlinking'](){const _0x15564c=_0x4fde36;this['_blinkIntervalTimer']&&(window[_0x15564c(0x23e)](this[_0x15564c(0x310)]),this[_0x15564c(0x310)]=void 0x0),this['_blinkTimer']&&(window[_0x15564c(0x201)](this[_0x15564c(0x450)]),this['_blinkTimer']=void 0x0);}[_0x4fde36(0x3ad)](_0x1c263e){return!0x1;}[_0x4fde36(0x295)](){const _0x150b55=_0x4fde36;this[_0x150b55(0x3db)](),super[_0x150b55(0x295)]();}[_0x4fde36(0x3d9)](_0x39870b){const _0x16062e=_0x4fde36;let _0x5196f4=this[_0x16062e(0x20c)],_0x1fae74=this['_backgroundColor'];if(this['_highlight']&&!this[_0x16062e(0x3b2)]&&(_0x5196f4=this[_0x16062e(0x16c)](this['_color']),_0x1fae74=this[_0x16062e(0x431)]?this[_0x16062e(0x16c)](this[_0x16062e(0x431)]):void 0x0),u['Rect'][_0x16062e(0x2c9)](_0x39870b,{'width':this[_0x16062e(0x395)],'height':this[_0x16062e(0x380)],'strokeWidth':this[_0x16062e(0x27b)]||1.5,'stroke':_0x5196f4,'evented':!0x1,'fill':_0x1fae74}),this[_0x16062e(0x34b)]||this[_0x16062e(0x291)]){var _0x34323b;_0x39870b[_0x16062e(0x277)]();let _0x20ea5c=this[_0x16062e(0x250)]===_0x16062e(0x3b6)?-de(_0x39870b,this[_0x16062e(0x215)]):this['width'];_0x39870b[_0x16062e(0x39f)](0x1,0x0,0x0,0x1,_0x20ea5c,(this[_0x16062e(0x226)]===_0x16062e(0x348)?0x0:-0x14)+((_0x34323b=this[_0x16062e(0x16a)])==null?0x0:_0x34323b)),D['drawWith'](_0x39870b,{'text':this[_0x16062e(0x215)],'color':_0x5196f4}),_0x39870b[_0x16062e(0x396)]();}}[_0x4fde36(0x16c)](_0x15a761){const _0x73f13e=_0x4fde36;return _0x15a761[_0x73f13e(0x2ce)]('#')?_0x73f13e(0x265)+Number['parseInt'](_0x15a761['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x73f13e(0x2d1)](_0x15a761['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x73f13e(0x2d1)](_0x15a761[_0x73f13e(0x202)](0x5,0x7),0x10)+_0x73f13e(0x462):_0x15a761[_0x73f13e(0x2ce)](_0x73f13e(0x2b1))?_0x15a761['replace'](/[\d.]+\)$/g,'0.2)'):_0x15a761[_0x73f13e(0x2ce)](_0x73f13e(0x294))?_0x15a761[_0x73f13e(0x1b4)](_0x73f13e(0x294),_0x73f13e(0x2b1))[_0x73f13e(0x1b4)](')',_0x73f13e(0x462)):_0x15a761;}};let z=class extends n[_0x4fde36(0x18c)]{constructor(_0x56a967,_0x572c26,_0x55521d,_0x15d28b){const _0x491474=_0x4fde36;super(),this[_0x491474(0x46c)]=_0x56a967,this[_0x491474(0x3ab)]=_0x572c26,this[_0x491474(0x25a)]=_0x55521d,this[_0x491474(0x21e)]=_0x15d28b,x(this,_0x491474(0x2ea),new Set()),x(this,_0x491474(0x33a),null),x(this,_0x491474(0x37b),null),this[_0x491474(0x392)]();}[_0x4fde36(0x392)](){const _0x36c8a4=_0x4fde36;this['_sheetSkeletonManagerService'][_0x36c8a4(0x313)][_0x36c8a4(0x19f)]((0x0,a[_0x36c8a4(0x328)])(this[_0x36c8a4(0x2d2)]),(0x0,a[_0x36c8a4(0x3e5)])(_0x5d7de6=>{const _0x25eb5d=_0x36c8a4;if(_0x5d7de6){let _0x2f54c4=_0x5d7de6[_0x25eb5d(0x3ee)];return(0x0,i[_0x25eb5d(0x2f7)])(this[_0x25eb5d(0x25a)][_0x25eb5d(0x2cb)](this['_context'][_0x25eb5d(0x1e9)]),this[_0x25eb5d(0x21e)][_0x25eb5d(0x3fe)])['pipe']((0x0,a[_0x25eb5d(0x42a)])(([_0x280601,_0x24bc1b])=>{const _0x32d0fe=_0x25eb5d;let _0x54ebf6=new Map();return _0x280601[_0x32d0fe(0x19e)]((_0xca3ee7,_0x480a47)=>{const _0x4a99bc=_0x32d0fe;if(_0xca3ee7[_0x4a99bc(0x33c)]===_0x2f54c4){let _0xfd15c0={..._0xca3ee7};_0xfd15c0['color']=this[_0x4a99bc(0x21e)][_0x4a99bc(0x3b5)](_0xca3ee7['color']),_0x54ebf6[_0x4a99bc(0x1a4)](_0x480a47,_0xfd15c0);}}),{'skeleton':_0x5d7de6,'cursors':_0x54ebf6};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3f2814,cursors:_0x5603e6})=>{const _0x406f68=_0x36c8a4;this[_0x406f68(0x349)](),_0x3f2814&&this['_updateCollabCursors'](_0x3f2814,_0x5603e6);}),this[_0x36c8a4(0x32d)](this[_0x36c8a4(0x3ab)]['currentSkeleton$'][_0x36c8a4(0x19f)]((0x0,a[_0x36c8a4(0x328)])(this[_0x36c8a4(0x2d2)]))[_0x36c8a4(0x18e)](_0x2b4ef8=>{const _0x4617bc=_0x36c8a4;var _0xec044c;if(_0x2b4ef8==null)return;(_0xec044c=this['_pointerMoveDisposable'])==null||_0xec044c[_0x4617bc(0x3dd)](),this[_0x4617bc(0x37b)]=null;let {skeleton:_0x16c050}=_0x2b4ef8,{scene:_0x4b8ff7}=this[_0x4617bc(0x46c)];this[_0x4617bc(0x37b)]=_0x4b8ff7[_0x4617bc(0x3d1)][_0x4617bc(0x209)]((0x0,n['debounce'])(_0xcba12=>{const _0x5ca5db=_0x4617bc;var _0x12c789,_0x1291f6;let {offsetX:_0x4dc938,offsetY:_0x5c842d}=_0xcba12,{x:_0x227064,y:_0x17bf04}=_0x4b8ff7[_0x5ca5db(0x23f)](u['Vector2']['FromArray']([_0x4dc938,_0x5c842d])),{scaleX:_0x5ecb79,scaleY:_0x544069}=_0x4b8ff7[_0x5ca5db(0x213)](),_0x4917ce=_0x4b8ff7[_0x5ca5db(0x3c9)](u[_0x5ca5db(0x242)][_0x5ca5db(0x25d)]),_0x5cf358=_0x4b8ff7[_0x5ca5db(0x452)](u[_0x5ca5db(0x1f3)][_0x5ca5db(0x41e)]([_0x227064,_0x17bf04]),_0x4917ce),_0x53d373=_0x16c050[_0x5ca5db(0x427)](_0x4dc938,_0x5c842d,_0x5ecb79,_0x544069,_0x5cf358);((_0x12c789=this['_lastPointer'])==null?void 0x0:_0x12c789['column'])===_0x53d373[_0x5ca5db(0x3b3)]&&((_0x1291f6=this[_0x5ca5db(0x33a)])==null?void 0x0:_0x1291f6[_0x5ca5db(0x3da)])===_0x53d373[_0x5ca5db(0x3da)]||this[_0x5ca5db(0x2ea)][_0x5ca5db(0x19e)](_0x15c25=>{_0x15c25['onMouseMove'](_0x53d373);});},0x64));})),this['disposeWithMe']((0x0,n[_0x36c8a4(0x292)])(()=>{const _0x1dfe21=_0x36c8a4;var _0x48bb58;(_0x48bb58=this[_0x1dfe21(0x37b)])==null||_0x48bb58['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}['_updateCollabCursors'](_0x465160,_0x257cc5){const _0x39f2ce=_0x4fde36;let _0x5775d5=this[_0x39f2ce(0x3ab)][_0x39f2ce(0x204)]();if(!_0x5775d5)return;let _0x3c7c7a=this[_0x39f2ce(0x2c5)]();if(!_0x3c7c7a)return;this['_cursors'][_0x39f2ce(0x19e)](_0x5599e4=>{const _0x15dc0d=_0x39f2ce;_0x5599e4[_0x15dc0d(0x17e)]();});let {scene:_0x1f3321}=_0x3c7c7a,_0x23dd46=Se(Array[_0x39f2ce(0x412)](_0x257cc5[_0x39f2ce(0x40d)]()))[_0x39f2ce(0x42a)](_0x587a43=>{const _0x2c5d79=_0x39f2ce;let {color:_0x3b62a0,range:_0x310782,name:_0x21396d,selection:_0x5901ab,sheetID:_0x5426b5}=_0x587a43,{startColumn:_0xe2d080,startRow:_0x5cbe0c,endColumn:_0x18f629,endRow:_0x49107c}=_0x310782,_0x475c61=(0x0,v['getCoordByCell'])(_0x5cbe0c,_0xe2d080,_0x1f3321,_0x5775d5),_0x240b99=(0x0,v[_0x2c5d79(0x1c1)])(_0x49107c,_0x18f629,_0x1f3321,_0x5775d5),{columnHeaderHeightAndMarginTop:_0x7cf100}=_0x5775d5,{startX:_0x100bc7,startY:_0x23f08e}=_0x475c61,{endX:_0x5ba764,endY:_0x522126}=_0x240b99,_0x5af001=_0x5ba764-_0x100bc7,_0x513af3=_0x522126-_0x23f08e;return new xe(_0x21396d,{'labelPosition':_0x23f08e-_0x7cf100>=0x14?'top':_0x2c5d79(0x348),'sheetID':_0x5426b5,'range':_0x310782,'color':_0x3b62a0,'name':_0x21396d,'selection':_0x5901ab,'left':_0x100bc7,'top':_0x23f08e,'width':_0x5af001,'height':_0x513af3,'evented':!0x1,'zIndex':0x1389});});_0x1f3321['addObjects'](_0x23dd46,0x1),this['_cursors']=new Set(_0x23dd46);}['_removeCollabCursors'](){const _0x228f59=_0x4fde36;var _0x28f316;(_0x28f316=this['_cursors'])==null||_0x28f316[_0x228f59(0x19e)](_0x53293f=>_0x53293f[_0x228f59(0x295)]());}[_0x4fde36(0x2c5)](){const _0x43f89b=_0x4fde36;return(0x0,v[_0x43f89b(0x3f2)])(this[_0x43f89b(0x46c)]['unit'],this[_0x43f89b(0x46c)]);}};z=C([S(0x1,(0x0,n[_0x4fde36(0x2ff)])(v[_0x4fde36(0x221)])),S(0x2,(0x0,n['Inject'])(F)),S(0x3,(0x0,n['Inject'])(n['ThemeService']))],z);function Se(_0x2f0d5a){const _0x45403d=_0x4fde36;let _0x35f50d=new Map();return _0x2f0d5a[_0x45403d(0x19e)](_0x129a26=>{const _0x40e1d8=_0x45403d;if(_0x35f50d['has'](_0x129a26[_0x40e1d8(0x2e7)])){let _0xc82360=_0x35f50d[_0x40e1d8(0x3bd)](_0x129a26[_0x40e1d8(0x2e7)]);_0xc82360[_0x40e1d8(0x1d4)]+=',\x20'+_0x129a26[_0x40e1d8(0x1d4)];}else _0x35f50d[_0x40e1d8(0x1a4)](_0x129a26[_0x40e1d8(0x2e7)],_0x129a26);}),Array[_0x45403d(0x412)](_0x35f50d[_0x45403d(0x40d)]());}let B=class extends n[_0x4fde36(0x18c)]{constructor(_0x5bbec0,_0x5b2f1d,_0x26a215){const _0x2d1fb1=_0x4fde36;super(),this[_0x2d1fb1(0x46c)]=_0x5bbec0,this[_0x2d1fb1(0x25a)]=_0x5b2f1d,this[_0x2d1fb1(0x21e)]=_0x26a215,x(this,_0x2d1fb1(0x2ea),new Set()),x(this,_0x2d1fb1(0x46a),!0x1),x(this,_0x2d1fb1(0x258),!0x1),x(this,_0x2d1fb1(0x357),new Map()),this[_0x2d1fb1(0x392)]();}['dispose'](){const _0x45d2f0=_0x4fde36;this[_0x45d2f0(0x349)](),super[_0x45d2f0(0x295)]();}['_init'](){const _0x46f5a4=_0x4fde36;let _0x5b3b1c=this['_context']['unit'][_0x46f5a4(0x304)]['activeSlideId$'],_0x12a4e1=this[_0x46f5a4(0x25a)][_0x46f5a4(0x2cb)](this[_0x46f5a4(0x46c)]['unitId']);this[_0x46f5a4(0x32d)]((0x0,n[_0x46f5a4(0x292)])((0x0,i[_0x46f5a4(0x2f7)])([_0x12a4e1,_0x5b3b1c,this['_themeService']['currentTheme$']])['pipe']((0x0,i[_0x46f5a4(0x328)])(this[_0x46f5a4(0x2d2)]))[_0x46f5a4(0x18e)](([_0x286ebc,_0xe58cdc])=>{const _0x4953a2=_0x46f5a4;let _0xab2e2c=new Map();_0x286ebc[_0x4953a2(0x19e)]((_0x24368c,_0x4f564b)=>{const _0x2d7816=_0x4953a2;_0x24368c['subUnitId']===_0xe58cdc&&_0xab2e2c['set'](_0x4f564b,{..._0x24368c,'color':this[_0x2d7816(0x21e)][_0x2d7816(0x3b5)](_0x24368c[_0x2d7816(0x403)])});}),this['_latestCursors']=_0xab2e2c,this[_0x4953a2(0x1e2)]();})));let _0x55f1d4=this[_0x46f5a4(0x46c)]['scene'];this[_0x46f5a4(0x32d)]((0x0,n[_0x46f5a4(0x292)])(_0x55f1d4['addObject$'][_0x46f5a4(0x19f)]((0x0,i[_0x46f5a4(0x328)])(this[_0x46f5a4(0x2d2)]))['subscribe'](()=>{const _0x5472cd=_0x46f5a4;this[_0x5472cd(0x258)]||this[_0x5472cd(0x1e2)]();})));}[_0x4fde36(0x1e2)](){const _0x444f6a=_0x4fde36;this[_0x444f6a(0x46a)]||(this['_renderScheduled']=!0x0,Promise[_0x444f6a(0x308)]()[_0x444f6a(0x3fb)](()=>{const _0x1bf8b8=_0x444f6a;this[_0x1bf8b8(0x46a)]=!0x1,this[_0x1bf8b8(0x1c8)]();}));}[_0x4fde36(0x1c8)](){const _0x59e82b=_0x4fde36;var _0x476c2f;this[_0x59e82b(0x349)]();let _0x26bd06=(_0x476c2f=this['_context']['unit'][_0x59e82b(0x304)][_0x59e82b(0x298)]())==null?void 0x0:_0x476c2f[_0x59e82b(0x473)]();if(!_0x26bd06)return;let _0x4898ea=[];if(this[_0x59e82b(0x357)][_0x59e82b(0x19e)]((_0x521d96,_0x38f30c)=>{const _0x26d3d4=_0x59e82b;_0x521d96[_0x26d3d4(0x21c)]===_0x26bd06&&_0x521d96[_0x26d3d4(0x38f)][_0x26d3d4(0x19e)](_0x5716af=>{const _0x17d8ac=_0x26d3d4;let _0x1a6fe2=(0x0,_[_0x17d8ac(0x324)])(_0x521d96['unitId'],_0x521d96[_0x17d8ac(0x21c)],_0x5716af),_0x3975c9=this[_0x17d8ac(0x398)](_0x1a6fe2);if(!_0x3975c9)return;let _0x5437f9=this[_0x17d8ac(0x3c1)](_0x3975c9);_0x4898ea[_0x17d8ac(0x2e8)](new pe(_0x17d8ac(0x1d0)+_0x38f30c+'-'+_0x5716af,{..._0x521d96,'left':_0x5437f9[_0x17d8ac(0x3b6)],'top':_0x5437f9[_0x17d8ac(0x2e1)],'width':_0x5437f9[_0x17d8ac(0x395)],'height':_0x5437f9[_0x17d8ac(0x380)],'angle':_0x3975c9['angle'],'evented':!0x1,'zIndex':O}));});}),_0x4898ea[_0x59e82b(0x2ee)]===0x0){this[_0x59e82b(0x46c)][_0x59e82b(0x1e3)]['makeDirty'](!0x0);return;}this[_0x59e82b(0x258)]=!0x0,this[_0x59e82b(0x46c)]['scene'][_0x59e82b(0x3d6)](_0x4898ea,O),this[_0x59e82b(0x258)]=!0x1,this[_0x59e82b(0x2ea)]=new Set(_0x4898ea),this['_context'][_0x59e82b(0x1e3)][_0x59e82b(0x17e)](!0x0);}[_0x4fde36(0x349)](){const _0x4bf13e=_0x4fde36;let _0x286810=Array[_0x4bf13e(0x412)](this[_0x4bf13e(0x2ea)]);if(_0x286810['length']===0x0)return;let _0x2d775c=this[_0x4bf13e(0x46c)][_0x4bf13e(0x1e3)];_0x4bf13e(0x24e)in _0x2d775c&&typeof _0x2d775c['removeObjects']==_0x4bf13e(0x1f5)?_0x2d775c[_0x4bf13e(0x24e)](_0x286810):_0x286810[_0x4bf13e(0x19e)](_0x3303ef=>{const _0x59689f=_0x4bf13e;_0x59689f(0x296)in _0x2d775c&&typeof _0x2d775c[_0x59689f(0x296)]=='function'?_0x2d775c[_0x59689f(0x296)](_0x3303ef):_0x3303ef[_0x59689f(0x295)]();}),this[_0x4bf13e(0x2ea)]['clear'](),_0x2d775c[_0x4bf13e(0x17e)](!0x0);}[_0x4fde36(0x398)](_0x2ed7b9){const _0x5f59e3=_0x4fde36;var _0x5ae562,_0x26f4ec,_0x29aa64;let _0x1f6142=this[_0x5f59e3(0x46c)][_0x5f59e3(0x1e3)];return(_0x5ae562=(_0x26f4ec=(_0x29aa64=_0x1f6142[_0x5f59e3(0x461)])==null?void 0x0:_0x29aa64[_0x5f59e3(0x1bd)](_0x1f6142,_0x2ed7b9))==null?_0x1f6142['getObject'](_0x2ed7b9):_0x26f4ec)==null?null:_0x5ae562;}['_getObjectBounds'](_0xe0275b){const _0x15b0f3=_0x4fde36;var _0x1d9e00,_0x4e236;let _0x5e8ec2=_0xe0275b;return(_0x1d9e00=(_0x4e236=_0x5e8ec2[_0x15b0f3(0x20d)])==null?void 0x0:_0x4e236[_0x15b0f3(0x1bd)](_0x5e8ec2))==null?{'left':_0xe0275b[_0x15b0f3(0x3b6)],'top':_0xe0275b['top'],'width':_0xe0275b['width'],'height':_0xe0275b[_0x15b0f3(0x380)]}:_0x1d9e00;}};B=C([S(0x1,(0x0,n[_0x4fde36(0x2ff)])(F)),S(0x2,(0x0,n['Inject'])(n[_0x4fde36(0x41b)]))],B);let V=class extends n[_0x4fde36(0x231)]{constructor(_0x3b2f79,_0x13b519,_0x4886f3,_0x3bca51,_0x58c25f,_0x15760c){const _0x3e44a6=_0x4fde36;super(),this[_0x3e44a6(0x39a)]=_0x3b2f79,this[_0x3e44a6(0x1c6)]=_0x13b519,this[_0x3e44a6(0x2ed)]=_0x4886f3,this[_0x3e44a6(0x2fe)]=_0x3bca51,this[_0x3e44a6(0x41d)]=_0x58c25f,this[_0x3e44a6(0x46b)]=_0x15760c,this[_0x3e44a6(0x1c3)](),this[_0x3e44a6(0x175)]();}[_0x4fde36(0x1c3)](){const _0xac9bb4=_0x4fde36;this[_0xac9bb4(0x32d)](this[_0xac9bb4(0x39a)][_0xac9bb4(0x26e)](()=>{const _0xcac11=_0xac9bb4;if(this['_localCacheService'][_0xcac11(0x2c6)][_0xcac11(0x353)])return this['_localeService']['t'](_0xcac11(0x2d6));}));}[_0x4fde36(0x175)](){const _0x180216=_0x4fde36;this[_0x180216(0x32d)](this[_0x180216(0x2ed)][_0x180216(0x41a)][_0x180216(0x18e)](_0x3da6f2=>{const _0x34735c=_0x180216;_0x3da6f2['id']===t['CollaborationUIEventId'][_0x34735c(0x2d0)]&&this['_messageService'][_0x34735c(0x2f8)]({'type':o[_0x34735c(0x1ac)]['Warning'],'content':this[_0x34735c(0x46b)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x3da6f2['id']===t[_0x34735c(0x168)]['CLOSE_ROOM']&&this[_0x34735c(0x2fe)]['show']({'type':o['MessageType']['Warning'],'content':this['_localeService']['t'](_0x34735c(0x483))}),_0x3da6f2['id']===t[_0x34735c(0x168)][_0x34735c(0x243)]&&this[_0x34735c(0x41d)][_0x34735c(0x2f8)]({'title':this['_localeService']['t'](_0x34735c(0x3e7)),'content':this[_0x34735c(0x46b)]['t']('collaboration-client-ui.permission.content'),'type':_0x34735c(0x3c7),'duration':0x0}),_0x3da6f2['id']===t[_0x34735c(0x168)][_0x34735c(0x399)]&&this['_notificationService'][_0x34735c(0x2f8)]({'title':this[_0x34735c(0x46b)]['t'](_0x34735c(0x3f9)),'content':this['_localeService']['t'](_0x34735c(0x3d5)),'type':'error','duration':0x0}),_0x3da6f2['id']===t[_0x34735c(0x168)]['JOIN_ROOM_FAILED']&&this['_messageService']['show']({'type':o[_0x34735c(0x1ac)][_0x34735c(0x394)],'content':this['_localeService']['t'](_0x3da6f2['data']||'')}),_0x3da6f2['id']===t[_0x34735c(0x168)][_0x34735c(0x320)]&&this[_0x34735c(0x2fe)][_0x34735c(0x2f8)]({'type':o[_0x34735c(0x1ac)][_0x34735c(0x394)],'content':this['_localeService']['t'](_0x34735c(0x42e))}),_0x3da6f2['id']===t[_0x34735c(0x168)][_0x34735c(0x224)]&&this[_0x34735c(0x2fe)][_0x34735c(0x2f8)]({'type':o[_0x34735c(0x1ac)][_0x34735c(0x257)],'content':this[_0x34735c(0x46b)]['t'](_0x34735c(0x45e))}),_0x3da6f2['id']===t[_0x34735c(0x168)][_0x34735c(0x47a)]&&this[_0x34735c(0x2fe)][_0x34735c(0x2f8)]({'type':o[_0x34735c(0x1ac)][_0x34735c(0x257)],'content':this[_0x34735c(0x46b)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};V=C([S(0x0,r[_0x4fde36(0x2d9)]),S(0x1,t[_0x4fde36(0x1af)]),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x2b9)])),S(0x3,r[_0x4fde36(0x293)]),S(0x4,r[_0x4fde36(0x1e6)]),S(0x5,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x1da)]))],V);const H=(0x0,n[_0x4fde36(0x47c)])(_0x4fde36(0x3a8));let U=class extends n[_0x4fde36(0x18c)]{constructor(_0x3e53f6,_0x3840a6,_0x314008,_0x3e0252,_0x561413){const _0x371317=_0x4fde36;super(),this[_0x371317(0x441)]=_0x3e53f6,this[_0x371317(0x3c4)]=_0x3840a6,this[_0x371317(0x3fa)]=_0x314008,this[_0x371317(0x3e3)]=_0x3e0252,_0x561413?_0x561413[_0x371317(0x35d)]()[_0x371317(0x3fb)](()=>this['_init']()):(this[_0x371317(0x3c4)][_0x371317(0x1b6)](_0x371317(0x46d),_0x371317(0x1fa)),this[_0x371317(0x392)]());}async[_0x4fde36(0x392)](){const _0x3a1179=_0x4fde36;let _0x2dbb58=this[_0x3a1179(0x441)][_0x3a1179(0x3f6)](_0x3a1179(0x40f)),_0x6d66d9=this['_urlService'][_0x3a1179(0x3f6)](_0x3a1179(0x2e5)),_0x87f5bc=this[_0x3a1179(0x441)]['getParam'](_0x3a1179(0x318));if(!_0x2dbb58||!_0x6d66d9){this[_0x3a1179(0x3c4)][_0x3a1179(0x1b6)]('[CollaborationDataLoaderController]',_0x3a1179(0x2d5));return;}let _0x4d5fa0=await this[_0x3a1179(0x3e3)][_0x3a1179(0x484)](_0x2dbb58,Number(_0x6d66d9),_0x87f5bc);_0x4d5fa0&&_0x4d5fa0 instanceof n[_0x3a1179(0x29d)]&&this['_setupSubUnitSync'](_0x4d5fa0);}async[_0x4fde36(0x325)](_0x2b973f){const _0xbda23c=_0x4fde36;await this[_0xbda23c(0x432)](_0x2b973f),_0x2b973f[_0xbda23c(0x378)][_0xbda23c(0x19f)]((0x0,i[_0xbda23c(0x328)])(this[_0xbda23c(0x2d2)]))[_0xbda23c(0x18e)](_0x195e61=>{_0x195e61&&this['_updateURLWithCurrentState'](_0x195e61);}),this['_urlService'][_0xbda23c(0x386)][_0xbda23c(0x19f)]((0x0,i[_0xbda23c(0x328)])(this[_0xbda23c(0x2d2)]))['subscribe'](()=>this[_0xbda23c(0x432)](_0x2b973f));}[_0x4fde36(0x469)](_0x8b7358,_0x3b870f=!0x1){const _0x40d199=_0x4fde36;let _0x55df35=this[_0x40d199(0x441)][_0x40d199(0x3f6)](_0x40d199(0x318));_0x8b7358[_0x40d199(0x39c)]()!==_0x55df35&&this[_0x40d199(0x441)]['setParam'](_0x40d199(0x318),_0x8b7358['getSheetId'](),_0x3b870f);}async[_0x4fde36(0x432)](_0x47aeda){const _0x36d0f3=_0x4fde36;var _0x202584;let _0x105591=this[_0x36d0f3(0x441)]['getParam'](_0x36d0f3(0x318));if(!_0x105591||!_0x47aeda[_0x36d0f3(0x20f)](_0x105591)){let _0x5cc87e=_0x47aeda[_0x36d0f3(0x1d7)]()[0x0],_0x1d793f=_0x47aeda['getSheetBySheetId'](_0x5cc87e);if(!_0x1d793f)return;this[_0x36d0f3(0x469)](_0x1d793f,!0x0),await this[_0x36d0f3(0x3fa)][_0x36d0f3(0x1e8)](g[_0x36d0f3(0x211)]['id'],{'unitId':_0x47aeda[_0x36d0f3(0x448)](),'subUnitId':_0x5cc87e});return;}((_0x202584=_0x47aeda[_0x36d0f3(0x208)]())==null?void 0x0:_0x202584[_0x36d0f3(0x39c)]())!==_0x105591&&await this[_0x36d0f3(0x3fa)]['executeCommand'](g[_0x36d0f3(0x211)]['id'],{'unitId':_0x47aeda[_0x36d0f3(0x448)](),'subUnitId':_0x105591});}};U=C([S(0x0,H),S(0x1,n[_0x4fde36(0x314)]),S(0x2,n[_0x4fde36(0x375)]),S(0x3,(0x0,n[_0x4fde36(0x2ff)])(t['DataLoaderService'])),S(0x4,(0x0,n[_0x4fde36(0x16b)])(ee['IRemoteInstanceService']))],U);let W=class{constructor(_0x2050e6,_0x275fa8){const _0x1612f9=_0x4fde36;this['_transformService']=_0x2050e6,this[_0x1612f9(0x41f)]=_0x275fa8;}[_0x4fde36(0x3ea)](_0x235369){const _0x1e9bdf=_0x4fde36;this[_0x1e9bdf(0x3a6)](_0x235369),this[_0x1e9bdf(0x2b7)](_0x235369);}['transformRemoteChangeset'](_0x3f32de){const _0x3a2c08=_0x4fde36;let {unitID:_0x26e11b}=_0x3f32de,{redoCache:_0x1567a3}=this[_0x3a2c08(0x41f)][_0x3a2c08(0x417)](_0x26e11b)['with'](f[_0x3a2c08(0x172)])[_0x3a2c08(0x1a7)]();if(_0x1567a3[_0x3a2c08(0x2ee)]===0x0)return _0x3f32de;let _0x378d1d=n[_0x3a2c08(0x3e4)][_0x3a2c08(0x1b1)](_0x3f32de['mutations'][0x0]);for(let _0x2b9951=0x0;_0x2b9951<_0x1567a3[_0x3a2c08(0x2ee)];_0x2b9951++){let _0x537682={'id':_0x3a2c08(0x39b),'params':{..._0x1567a3[_0x2b9951]}},_0x3982f9=this[_0x3a2c08(0x251)][_0x3a2c08(0x36e)](_0x378d1d,_0x537682,!0x1);if((0x0,p[_0x3a2c08(0x3b7)])(_0x3982f9))throw _0x3982f9[_0x3a2c08(0x3c7)];_0x378d1d=_0x3982f9['m1Prime'];}return{...n['Tools'][_0x3a2c08(0x1b1)](_0x3f32de),'mutations':[_0x378d1d]};}[_0x4fde36(0x3a6)](_0x2473ef){const _0x2ac68e=_0x4fde36;let {unitID:_0x3d5a1e}=_0x2473ef,_0x2af178=this[_0x2ac68e(0x41f)][_0x2ac68e(0x417)](_0x3d5a1e)['with'](f[_0x2ac68e(0x172)]),{undoCache:_0x4371a7,redoCache:_0x3e773e}=_0x2af178['getUndoRedoMutationParamsCache']();if(_0x4371a7[_0x2ac68e(0x2ee)]===0x0||_0x3e773e[_0x2ac68e(0x2ee)]===0x0)return;let _0x495807=[],_0x40de4f=[],_0x14a8e1=n[_0x2ac68e(0x3e4)][_0x2ac68e(0x1b1)](_0x2473ef['mutations'][0x0]),_0x29870c=n[_0x2ac68e(0x3e4)][_0x2ac68e(0x1b1)](_0x2473ef['mutations'][0x0]);for(let _0x2301f8=_0x4371a7[_0x2ac68e(0x2ee)]-0x1;_0x2301f8>=0x0;_0x2301f8--){let _0x190788={'id':_0x2ac68e(0x39b),'params':{..._0x4371a7[_0x2301f8]}},_0x2bad1f={'id':_0x2ac68e(0x39b),'params':{..._0x3e773e[_0x2301f8]}},_0x16f102=this[_0x2ac68e(0x251)]['transformMutation'](_0x14a8e1,_0x190788,!0x1),_0xdbc3d3=this[_0x2ac68e(0x251)][_0x2ac68e(0x36e)](_0x29870c,_0x2bad1f,!0x1);if((0x0,p[_0x2ac68e(0x3b7)])(_0x16f102))throw _0x16f102['error'];if((0x0,p[_0x2ac68e(0x3b7)])(_0xdbc3d3))throw _0xdbc3d3[_0x2ac68e(0x3c7)];_0x495807[_0x2ac68e(0x44a)](_0x16f102['m2Prime'][_0x2ac68e(0x198)]),_0x40de4f['unshift'](_0xdbc3d3[_0x2ac68e(0x22c)][_0x2ac68e(0x198)]),_0x14a8e1=_0x16f102[_0x2ac68e(0x447)],_0x29870c=_0xdbc3d3[_0x2ac68e(0x447)];}_0x2af178[_0x2ac68e(0x2c8)]({'undoCache':_0x495807,'redoCache':_0x40de4f});}[_0x4fde36(0x2b7)](_0x3ba982){const _0x3f64e9=_0x4fde36;let {unitID:_0x241e8f}=_0x3ba982,_0x425f95=this[_0x3f64e9(0x41f)]['getRenderById'](_0x241e8f)[_0x3f64e9(0x16e)](f[_0x3f64e9(0x172)]),_0x4d74ea=_0x425f95['getActiveRange']();if(_0x4d74ea==null)return;let _0x11c2d5=[{'id':_0x3f64e9(0x39b),'params':{'unitId':_0x3ba982[_0x3f64e9(0x478)],'actions':null,'textRanges':[_0x4d74ea]}}],_0x52d80c=this['_transformService']['transformMutationsWithChangeset'](_0x3ba982,_0x11c2d5);if(!(0x0,p[_0x3f64e9(0x411)])(_0x52d80c))throw _0x52d80c['error'];let _0x37780a=_0x52d80c['m2Prime'][0x0][_0x3f64e9(0x198)][_0x3f64e9(0x347)];Array[_0x3f64e9(0x343)](_0x37780a)&&_0x37780a['length']&&_0x425f95[_0x3f64e9(0x35f)](_0x37780a[0x0]);}};W=C([S(0x0,p[_0x4fde36(0x2f0)]),S(0x1,u[_0x4fde36(0x374)])],W);let G=class{constructor(_0x2b7ccf,_0xec0204,_0x2ac3dc){const _0x6da006=_0x4fde36;this['_injector']=_0x2b7ccf,this[_0x6da006(0x251)]=_0xec0204,this[_0x6da006(0x457)]=_0x2ac3dc;}[_0x4fde36(0x283)](_0x54999b){this['_transformHistoryAndStateStack'](_0x54999b);}[_0x4fde36(0x476)](_0x216259){const _0x58e927=_0x4fde36;let {unitID:_0x1b93f3}=_0x216259,{collaboration:_0x56613d}=this[_0x58e927(0x457)][_0x58e927(0x37a)](_0x1b93f3);if(_0x56613d[_0x58e927(0x2ee)]===0x0)return _0x216259;let _0x285363=n[_0x58e927(0x3e4)]['deepClone'](_0x216259[_0x58e927(0x446)][0x0]);for(let _0x38882e=0x0;_0x38882e<_0x56613d[_0x58e927(0x2ee)];_0x38882e++){let _0x22223a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x56613d[_0x38882e][_0x58e927(0x1e9)],..._0x56613d[_0x38882e][_0x58e927(0x26d)]}},_0x16041b=this[_0x58e927(0x251)][_0x58e927(0x36e)](_0x285363,_0x22223a,!0x1);if((0x0,p[_0x58e927(0x3b7)])(_0x16041b))throw _0x16041b['error'];_0x285363=_0x16041b[_0x58e927(0x447)];}return{...n['Tools'][_0x58e927(0x1b1)](_0x216259),'mutations':[_0x285363]};}['_transformHistoryAndStateStack'](_0x14ba84){const _0x34a34a=_0x4fde36;let {unitID:_0x2e84b8}=_0x14ba84,{history:_0x2cc7ff,collaboration:_0x3703ec}=this['_docStateChangeManagerService'][_0x34a34a(0x37a)](_0x2e84b8);if(_0x2cc7ff[_0x34a34a(0x2ee)]===0x0&&_0x3703ec[_0x34a34a(0x2ee)]===0x0)return;let _0x53d23b=[],_0x34a8e6=[],_0x3ba63e=n['Tools'][_0x34a34a(0x1b1)](_0x14ba84['mutations'][0x0]),_0x10705a=n['Tools'][_0x34a34a(0x1b1)](_0x14ba84['mutations'][0x0]);for(let _0x438c0d=_0x2cc7ff[_0x34a34a(0x2ee)]-0x1;_0x438c0d>=0x0;_0x438c0d--){let _0x2bee92={'id':_0x34a34a(0x39b),'params':{'unitId':_0x2cc7ff[_0x438c0d][_0x34a34a(0x1e9)],..._0x2cc7ff[_0x438c0d][_0x34a34a(0x40c)]}},_0xedf592={'id':_0x34a34a(0x39b),'params':{'unitId':_0x2cc7ff[_0x438c0d][_0x34a34a(0x1e9)],..._0x2cc7ff[_0x438c0d]['redoState']}},_0x5d4a43=this['_transformService'][_0x34a34a(0x36e)](_0x3ba63e,_0x2bee92,!0x1),_0x35f07f=this['_transformService'][_0x34a34a(0x36e)](_0x10705a,_0xedf592,!0x1);if((0x0,p[_0x34a34a(0x3b7)])(_0x5d4a43))throw _0x5d4a43[_0x34a34a(0x3c7)];if((0x0,p[_0x34a34a(0x3b7)])(_0x35f07f))throw _0x35f07f[_0x34a34a(0x3c7)];_0x53d23b['unshift']({..._0x2cc7ff[_0x438c0d],'undoState':_0x5d4a43['m2Prime'][_0x34a34a(0x198)],'redoState':_0x35f07f['m2Prime'][_0x34a34a(0x198)]}),_0x3ba63e=_0x5d4a43[_0x34a34a(0x447)],_0x10705a=_0x35f07f[_0x34a34a(0x447)];}_0x3ba63e=n[_0x34a34a(0x3e4)][_0x34a34a(0x1b1)](_0x14ba84['mutations'][0x0]),_0x10705a=n[_0x34a34a(0x3e4)]['deepClone'](_0x14ba84['mutations'][0x0]);for(let _0x53749a=_0x3703ec[_0x34a34a(0x2ee)]-0x1;_0x53749a>=0x0;_0x53749a--){let _0x21412f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3703ec[_0x53749a][_0x34a34a(0x1e9)],..._0x3703ec[_0x53749a][_0x34a34a(0x40c)]}},_0x2ea4f5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3703ec[_0x53749a]['unitId'],..._0x3703ec[_0x53749a]['redoState']}},_0x2ee786=this[_0x34a34a(0x251)][_0x34a34a(0x36e)](_0x3ba63e,_0x21412f,!0x1),_0x53061f=this[_0x34a34a(0x251)][_0x34a34a(0x36e)](_0x10705a,_0x2ea4f5,!0x1);if((0x0,p[_0x34a34a(0x3b7)])(_0x2ee786))throw _0x2ee786[_0x34a34a(0x3c7)];if((0x0,p[_0x34a34a(0x3b7)])(_0x53061f))throw _0x53061f[_0x34a34a(0x3c7)];_0x34a8e6[_0x34a34a(0x44a)]({..._0x3703ec[_0x53749a],'undoState':_0x2ee786[_0x34a34a(0x22c)]['params'],'redoState':_0x53061f['m2Prime'][_0x34a34a(0x198)]}),_0x3ba63e=_0x2ee786[_0x34a34a(0x447)],_0x10705a=_0x53061f[_0x34a34a(0x447)];}this[_0x34a34a(0x457)]['setStateCache'](_0x2e84b8,{'history':_0x53d23b,'collaboration':_0x34a8e6});}};G=C([S(0x0,(0x0,n['Inject'])(n[_0x4fde36(0x197)])),S(0x1,p[_0x4fde36(0x2f0)]),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(m[_0x4fde36(0x1c4)]))],G);let K=class{constructor(_0xe4fc93,_0x33808e){const _0x325776=_0x4fde36;this['_injector']=_0xe4fc93,this[_0x325776(0x251)]=_0x33808e;}[_0x4fde36(0x449)](_0x31860c){const _0x4cd7d=_0x4fde36;var _0x1522c7;let _0x3470dc=this[_0x4cd7d(0x1df)][_0x4cd7d(0x3bd)](m[_0x4cd7d(0x2f5)]),_0xfd54e8=(_0x1522c7=_0x3470dc[_0x4cd7d(0x387)]())==null?[]:_0x1522c7;if(_0xfd54e8[_0x4cd7d(0x2ee)]===0x0)return;let _0x5410a8=_0x31860c[_0x4cd7d(0x478)],_0x36b04d=[{'id':_0x4cd7d(0x39b),'params':{'unitId':_0x5410a8,'actions':null,'textRanges':_0xfd54e8}}],_0x4619d6=this[_0x4cd7d(0x251)][_0x4cd7d(0x32e)](_0x31860c,_0x36b04d);if(!(0x0,p[_0x4cd7d(0x411)])(_0x4619d6))throw _0x4619d6[_0x4cd7d(0x3c7)];let _0x6cdf69=_0x4619d6[_0x4cd7d(0x22c)][0x0][_0x4cd7d(0x198)]['textRanges'];Array[_0x4cd7d(0x343)](_0x6cdf69)&&_0x6cdf69[_0x4cd7d(0x2ee)]&&_0x3470dc[_0x4cd7d(0x2b4)](_0x6cdf69,{'unitId':_0x5410a8,'subUnitId':_0x5410a8},!0x1);}};K=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x1,p['ITransformService'])],K);let q=class extends n[_0x4fde36(0x231)]{constructor(_0x5a7b80,_0x2e6d8e,_0x40b3d0,_0x22ab03,_0x5ac1a9,_0x509080,_0x386276){const _0xaa8e75=_0x4fde36;super(),this[_0xaa8e75(0x25c)]=_0x5a7b80,this[_0xaa8e75(0x410)]=_0x2e6d8e,this[_0xaa8e75(0x407)]=_0x40b3d0,this['_docTransformSelectionsService']=_0x22ab03,this['_docSyncEditingCollabCursorService']=_0x5ac1a9,this[_0xaa8e75(0x2fe)]=_0x509080,this[_0xaa8e75(0x46b)]=_0x386276,x(this,_0xaa8e75(0x2b2),new i['BehaviorSubject'](t[_0xaa8e75(0x45c)][_0xaa8e75(0x2eb)])),this[_0xaa8e75(0x415)]();}[_0x4fde36(0x415)](){const _0xa6539d=_0x4fde36;this[_0xa6539d(0x32d)](this[_0xa6539d(0x25c)]['entityInit$'][_0xa6539d(0x18e)](_0x56cbde=>{const _0xcd97dc=_0xa6539d;_0x56cbde instanceof t['DocCollaborationEntity']&&_0x56cbde[_0xcd97dc(0x29b)]({'onTransformIME':_0x58f59e=>this[_0xcd97dc(0x410)]['transformIMECache'](_0x58f59e),'onTransformState':_0x4f774f=>this['_docTransformStateCacheService'][_0xcd97dc(0x283)](_0x4f774f),'onTransformSelections':_0xad56ef=>this[_0xcd97dc(0x1f8)][_0xcd97dc(0x449)](_0xad56ef),'onSyncEditingCollabCursor':_0x10d5a0=>this['_docSyncEditingCollabCursorService'][_0xcd97dc(0x40b)](_0x10d5a0),'onTransformRemoteChangesetByIMECache':_0x1bbcb4=>this[_0xcd97dc(0x410)][_0xcd97dc(0x476)](_0x1bbcb4),'onTransformRemoteChangesetByStateCache':_0x3ce062=>this[_0xcd97dc(0x407)][_0xcd97dc(0x476)](_0x3ce062)});}));}};function _0x4dee(_0x27e75b,_0x410a0){_0x27e75b=_0x27e75b-0x163;const _0x29fa7c=_0x29fa();let _0x4dee3c=_0x29fa7c[_0x27e75b];return _0x4dee3c;}q=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x21d)])),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(W)),S(0x2,(0x0,n['Inject'])(G)),S(0x3,(0x0,n['Inject'])(K)),S(0x4,(0x0,n[_0x4fde36(0x2ff)])(j)),S(0x5,r['IMessageService']),S(0x6,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x1da)]))],q);let J=class extends n[_0x4fde36(0x231)]{constructor(_0x300226,_0x27574f,_0x2bf5b4,_0x2e44af){const _0x1d40ef=_0x4fde36;super(),this[_0x1d40ef(0x1df)]=_0x300226,this[_0x1d40ef(0x17c)]=_0x27574f,this['_logService']=_0x2bf5b4,this['_collaborationSessionService']=_0x2e44af,x(this,_0x1d40ef(0x282),void 0x0),this['_init']();}[_0x4fde36(0x392)](){const _0x846a8f=_0x4fde36;this[_0x846a8f(0x1b0)](),this[_0x846a8f(0x22b)](),this[_0x846a8f(0x350)](),this[_0x846a8f(0x363)]();}[_0x4fde36(0x363)](){const _0x46b5c6=_0x4fde36;this['disposeWithMe'](this[_0x46b5c6(0x2f4)][_0x46b5c6(0x43b)][_0x46b5c6(0x18e)](_0x20c9df=>{const _0x267b68=_0x46b5c6;this[_0x267b68(0x282)]=_0x20c9df==null?void 0x0:_0x20c9df[_0x267b68(0x466)];}));}[_0x4fde36(0x1b0)](){const _0x121647=_0x4fde36;let _0x511015=_0x398244=>{const _0x46ce72=_0x4dee;var _0x40eb39;this[_0x46ce72(0x464)](_0x46ce72(0x3c7),_0x46ce72(0x439)+_0x398244[_0x46ce72(0x43c)]+_0x46ce72(0x27f)+_0x398244[_0x46ce72(0x29a)]+':'+_0x398244['lineno']+':'+_0x398244[_0x46ce72(0x22e)]+'\x0a'+(((_0x40eb39=_0x398244[_0x46ce72(0x3c7)])==null?void 0x0:_0x40eb39[_0x46ce72(0x177)])||''));};window[_0x121647(0x480)](_0x121647(0x3c7),_0x511015),this[_0x121647(0x32d)](()=>{const _0x3210c5=_0x121647;window[_0x3210c5(0x27a)](_0x3210c5(0x3c7),_0x511015);});}[_0x4fde36(0x22b)](){const _0x81d00e=_0x4fde36;let _0x54bd7b=_0x24c621=>{const _0xe12f85=_0x4dee;this[_0xe12f85(0x464)](_0xe12f85(0x3c7),_0xe12f85(0x218)+_0x24c621[_0xe12f85(0x261)]);};window[_0x81d00e(0x480)](_0x81d00e(0x2fb),_0x54bd7b),this[_0x81d00e(0x32d)](()=>{const _0x2f648f=_0x81d00e;window['removeEventListener'](_0x2f648f(0x2fb),_0x54bd7b);});}['_monkeyPatchLogService'](){const _0x103bd1=_0x4fde36;let _0x52f71d=this['_logService']['error']['bind'](this['_logService']);this[_0x103bd1(0x3c4)]['error']=(..._0x5b9527)=>{const _0x13ddab=_0x103bd1;let _0x2c324a=_0x5b9527['map'](_0x14fd85=>_0x14fd85 instanceof Error?_0x14fd85[_0x13ddab(0x43c)]+'\x0a'+_0x14fd85[_0x13ddab(0x177)]:String(_0x14fd85))['join']('\x20');this['_uploadLog'](_0x13ddab(0x3c7),_0x13ddab(0x37e)+_0x2c324a),_0x52f71d(..._0x5b9527);},this[_0x103bd1(0x32d)](()=>{const _0x371c2a=_0x103bd1;this[_0x371c2a(0x3c4)]['error']=_0x52f71d;});}[_0x4fde36(0x464)](_0x3e45d6,_0x52097c){const _0x303f5c=_0x4fde36;try{let _0x40a22d={'userId':this[_0x303f5c(0x282)],'logLabel':_0x3e45d6,'content':_0x52097c};this[_0x303f5c(0x17c)][_0x303f5c(0x1e4)](_0x303f5c(0x2a9),{'body':_0x40a22d})[_0x303f5c(0x246)](()=>{});}catch{}}};J=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x1,(0x0,n['Inject'])(d[_0x4fde36(0x2e2)])),S(0x2,n[_0x4fde36(0x314)]),S(0x3,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x289)]))],J);function Ce({state$:_0x1e4969,interactionBlocked$:_0x4d7904}){const _0x8a4e83=_0x4fde36;return(0x0,l[_0x8a4e83(0x45b)])(l[_0x8a4e83(0x1ea)],{'children':[(0x0,r[_0x8a4e83(0x2be)])(_0x4d7904,!0x1,!0x0)&&(0x0,l[_0x8a4e83(0x307)])(_0x8a4e83(0x3b8),{'data-u-comp':_0x8a4e83(0x2f6),'aria-hidden':!0x0,'className':_0x8a4e83(0x222)}),(0x0,l[_0x8a4e83(0x307)])(we,{'state$':_0x1e4969})]});}function we({state$:_0xf912bd}){const _0x45a3d4=_0x4fde36;let _0x249409=(0x0,r[_0x45a3d4(0x2be)])(_0xf912bd,null,!0x0);return _0x249409?(0x0,l[_0x45a3d4(0x45b)])(_0x45a3d4(0x3b8),{'data-u-comp':_0x45a3d4(0x44d),'role':'alert','className':_0x45a3d4(0x44c),'children':[(0x0,l['jsx'])(s[_0x45a3d4(0x361)],{'className':_0x45a3d4(0x2f3)}),(0x0,l[_0x45a3d4(0x307)])('span',{'children':_0x249409['content']}),(0x0,l['jsx'])(o[_0x45a3d4(0x3f1)],{'size':_0x45a3d4(0x195),'variant':_0x45a3d4(0x23b),'onClick':()=>window[_0x45a3d4(0x40e)][_0x45a3d4(0x26f)](),'children':_0x249409[_0x45a3d4(0x317)]})]}):null;}const Y='snapshot-loading-';let X=class extends n[_0x4fde36(0x231)]{constructor(_0x991809,_0x6b53c8,_0x3e510d,_0x4da6e9,_0x796e4b,_0x224e13,_0x32d962,_0xadacb1){const _0x4ed81b=_0x4fde36;super(),this[_0x4ed81b(0x188)]=_0x991809,this[_0x4ed81b(0x2fe)]=_0x6b53c8,this[_0x4ed81b(0x46b)]=_0x3e510d,this[_0x4ed81b(0x1df)]=_0x4da6e9,this['_pluginService']=_0x796e4b,this[_0x4ed81b(0x455)]=_0x32d962,this[_0x4ed81b(0x441)]=_0xadacb1,x(this,_0x4ed81b(0x2f2),new i[(_0x4ed81b(0x299))](null)),x(this,_0x4ed81b(0x1ae),new i[(_0x4ed81b(0x299))](!0x1)),x(this,_0x4ed81b(0x3ca),new Set()),x(this,_0x4ed81b(0x267),new Map()),x(this,_0x4ed81b(0x269),new Set()),x(this,'_latestStates',new Map()),x(this,'_previewUnitId',void 0x0),x(this,_0x4ed81b(0x43f),void 0x0),x(this,_0x4ed81b(0x1ef),void 0x0),x(this,'timeoutState$',this[_0x4ed81b(0x2f2)][_0x4ed81b(0x45f)]());let _0x346dc9=()=>(0x0,c[_0x4ed81b(0x3ac)])(Ce,{'state$':this[_0x4ed81b(0x26c)],'interactionBlocked$':this[_0x4ed81b(0x1ae)]});this[_0x4ed81b(0x32d)](_0x224e13[_0x4ed81b(0x29f)](r[_0x4ed81b(0x3c0)][_0x4ed81b(0x35c)],()=>(0x0,r[_0x4ed81b(0x3f0)])(_0x346dc9,this['_injector']))),this[_0x4ed81b(0x32d)](this['_snapshotLoadingService'][_0x4ed81b(0x225)][_0x4ed81b(0x18e)](_0x56ddc7=>{const _0x15ca37=_0x4ed81b;this['_latestStates']=_0x56ddc7,_0x56ddc7[_0x15ca37(0x19e)](_0x1dcdde=>{const _0x3dca2d=_0x15ca37;this[_0x3dca2d(0x2c2)](_0x1dcdde),this[_0x3dca2d(0x263)](_0x1dcdde);});})),this['disposeWithMe'](this[_0x4ed81b(0x441)]['urlChange$'][_0x4ed81b(0x18e)](()=>{const _0x32f09e=_0x4ed81b;this[_0x32f09e(0x42f)][_0x32f09e(0x19e)](_0x349cb0=>{const _0x4a3206=_0x32f09e;this['_updateMessage'](_0x349cb0),this[_0x4a3206(0x263)](_0x349cb0);});}));}[_0x4fde36(0x295)](){const _0x2397ee=_0x4fde36;var _0x358e41;if(this[_0x2397ee(0x3ca)][_0x2397ee(0x19e)](_0xa3c041=>this[_0x2397ee(0x2fe)][_0x2397ee(0x3d7)](_0xa3c041)),this[_0x2397ee(0x3ca)][_0x2397ee(0x2ca)](),this['_previewUnitId']){var _0x44606a;(_0x44606a=this[_0x2397ee(0x1ef)])==null||_0x44606a[_0x2397ee(0x2c3)](this[_0x2397ee(0x164)]);}this[_0x2397ee(0x164)]=void 0x0,this['_blockProgressWatches']['forEach'](({timeoutId:_0x3f9797})=>clearTimeout(_0x3f9797)),this[_0x2397ee(0x267)][_0x2397ee(0x2ca)](),(_0x358e41=this[_0x2397ee(0x43f)])==null||_0x358e41[_0x2397ee(0x295)](),this[_0x2397ee(0x43f)]=void 0x0,this[_0x2397ee(0x2f2)][_0x2397ee(0x20b)](),this[_0x2397ee(0x1ae)][_0x2397ee(0x20b)](),super[_0x2397ee(0x295)]();}[_0x4fde36(0x2c2)](_0x5dfdba){const _0x38e171=_0x4fde36;let _0x3f88a1=''+Y+_0x5dfdba[_0x38e171(0x1e9)];if(_0x5dfdba[_0x38e171(0x2fa)]===p['SnapshotLoadStage'][_0x38e171(0x199)]){if(this[_0x38e171(0x366)](_0x5dfdba[_0x38e171(0x1e9)]),this['_isVisibleUnit'](_0x5dfdba[_0x38e171(0x1e9)])&&this[_0x38e171(0x164)]===_0x5dfdba[_0x38e171(0x1e9)]){this[_0x38e171(0x2fe)][_0x38e171(0x2f8)]({'id':_0x3f88a1,'type':o['MessageType'][_0x38e171(0x2fd)],'duration':0x1/0x0,'content':this[_0x38e171(0x46b)]['t']('collaboration-client-ui.snapshotLoading.loadingSheet')}),this[_0x38e171(0x3ca)][_0x38e171(0x46f)](_0x3f88a1);return;}this[_0x38e171(0x463)](_0x5dfdba[_0x38e171(0x1e9)]),this[_0x38e171(0x2fe)][_0x38e171(0x3d7)](_0x3f88a1),this[_0x38e171(0x3ca)]['delete'](_0x3f88a1);return;}if(!this['_isVisibleUnit'](_0x5dfdba['unitId'])){this[_0x38e171(0x366)](_0x5dfdba[_0x38e171(0x1e9)]),this[_0x38e171(0x463)](_0x5dfdba[_0x38e171(0x1e9)]),this[_0x38e171(0x2fe)][_0x38e171(0x3d7)](_0x3f88a1),this[_0x38e171(0x3ca)][_0x38e171(0x3a7)](_0x3f88a1);return;}if(_0x5dfdba[_0x38e171(0x2fa)]===p[_0x38e171(0x3b1)][_0x38e171(0x34f)]){this['_clearBlockProgressWatch'](_0x5dfdba[_0x38e171(0x1e9)]),this[_0x38e171(0x463)](_0x5dfdba[_0x38e171(0x1e9)]),this['_messageService']['show']({'id':_0x3f88a1,'type':o[_0x38e171(0x1ac)][_0x38e171(0x257)],'content':this[_0x38e171(0x46b)]['t'](_0x38e171(0x45e))}),this['_messageIds'][_0x38e171(0x3a7)](_0x3f88a1);return;}if(_0x5dfdba[_0x38e171(0x2fa)]!==p[_0x38e171(0x3b1)][_0x38e171(0x1e7)]||_0x5dfdba[_0x38e171(0x390)]<=0xa){this[_0x38e171(0x366)](_0x5dfdba[_0x38e171(0x1e9)]),this[_0x38e171(0x2fe)][_0x38e171(0x3d7)](_0x3f88a1),this[_0x38e171(0x3ca)][_0x38e171(0x3a7)](_0x3f88a1);return;}this[_0x38e171(0x166)](_0x5dfdba)||(this[_0x38e171(0x2fe)][_0x38e171(0x2f8)]({'id':_0x3f88a1,'type':o[_0x38e171(0x1ac)][_0x38e171(0x2fd)],'duration':0x1/0x0,'content':this[_0x38e171(0x46b)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x5dfdba[_0x38e171(0x326)]+'/'+_0x5dfdba[_0x38e171(0x390)]}),this[_0x38e171(0x3ca)][_0x38e171(0x46f)](_0x3f88a1));}[_0x4fde36(0x166)](_0x3e19f8){const _0xbd8631=_0x4fde36;let _0x527e41=this['_blockProgressWatches'][_0xbd8631(0x3bd)](_0x3e19f8[_0xbd8631(0x1e9)]);if((_0x527e41==null?void 0x0:_0x527e41[_0xbd8631(0x326)])===_0x3e19f8[_0xbd8631(0x326)])return _0x527e41['timedOut'];this[_0xbd8631(0x366)](_0x3e19f8[_0xbd8631(0x1e9)]);let _0x21bec7=setTimeout(()=>{const _0x37568c=_0xbd8631;let _0x52b9c9=this[_0x37568c(0x267)][_0x37568c(0x3bd)](_0x3e19f8[_0x37568c(0x1e9)]);if(!_0x52b9c9||_0x52b9c9[_0x37568c(0x3a4)]!==_0x21bec7)return;_0x52b9c9[_0x37568c(0x17f)]=!0x0;let _0x3d8675=''+Y+_0x3e19f8['unitId'];this[_0x37568c(0x2fe)][_0x37568c(0x3d7)](_0x3d8675),this[_0x37568c(0x3ca)][_0x37568c(0x3a7)](_0x3d8675),this[_0x37568c(0x2f2)][_0x37568c(0x345)]({'unitId':_0x3e19f8[_0x37568c(0x1e9)],'content':this[_0x37568c(0x46b)]['t'](_0x37568c(0x2a2),String(_0x3e19f8['loadedBlocks']),String(_0x3e19f8['totalBlocks'])),'refreshLabel':this[_0x37568c(0x46b)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this[_0xbd8631(0x267)][_0xbd8631(0x1a4)](_0x3e19f8[_0xbd8631(0x1e9)],{'loadedBlocks':_0x3e19f8[_0xbd8631(0x326)],'timedOut':!0x1,'timeoutId':_0x21bec7}),!0x1;}[_0x4fde36(0x366)](_0x218bd6){const _0x1170e6=_0x4fde36;let _0x2fd695=this['_blockProgressWatches'][_0x1170e6(0x3bd)](_0x218bd6);_0x2fd695&&(clearTimeout(_0x2fd695[_0x1170e6(0x3a4)]),this['_blockProgressWatches'][_0x1170e6(0x3a7)](_0x218bd6),this[_0x1170e6(0x463)](_0x218bd6));}[_0x4fde36(0x463)](_0x5a4cda){const _0x8b1905=_0x4fde36;var _0x379f70;((_0x379f70=this[_0x8b1905(0x2f2)][_0x8b1905(0x35a)])==null?void 0x0:_0x379f70[_0x8b1905(0x1e9)])===_0x5a4cda&&this[_0x8b1905(0x2f2)][_0x8b1905(0x345)](null);}[_0x4fde36(0x263)](_0x52df34){const _0x5df111=_0x4fde36;if(_0x52df34[_0x5df111(0x2fa)]===p[_0x5df111(0x3b1)][_0x5df111(0x3e1)]&&this[_0x5df111(0x269)][_0x5df111(0x3a7)](_0x52df34[_0x5df111(0x1e9)]),!this[_0x5df111(0x270)](_0x52df34['unitId'])){this[_0x5df111(0x1b7)](_0x52df34['unitId']);return;}if(_0x52df34[_0x5df111(0x2fa)]===p[_0x5df111(0x3b1)][_0x5df111(0x34f)]||_0x52df34[_0x5df111(0x390)]<=0xa){this[_0x5df111(0x1b7)](_0x52df34[_0x5df111(0x1e9)]);return;}if(_0x52df34[_0x5df111(0x2fa)]===p['SnapshotLoadStage'][_0x5df111(0x199)]){this['_handoffPreview'](_0x52df34[_0x5df111(0x1e9)]);return;}if(_0x52df34[_0x5df111(0x2fa)]===p['SnapshotLoadStage'][_0x5df111(0x1e7)]&&_0x52df34[_0x5df111(0x1bc)]&&_0x52df34[_0x5df111(0x3ba)]){let _0x52623b=this[_0x5df111(0x475)]();if(!_0x52623b)return;this[_0x5df111(0x164)]&&this[_0x5df111(0x164)]!==_0x52df34[_0x5df111(0x1e9)]&&this['_hidePreview'](this[_0x5df111(0x164)]),_0x52623b[_0x5df111(0x1ad)](_0x52df34['workbookShell'],_0x52df34[_0x5df111(0x3ba)]),this['_previewUnitId']=_0x52df34[_0x5df111(0x1e9)],this[_0x5df111(0x1f9)](!0x0),_0x52df34[_0x5df111(0x2bc)]&&_0x52623b['show'](_0x52df34['workbookShell'],_0x52df34['activeSheetId'],_0x52df34[_0x5df111(0x212)]);}}['_handoffPreview'](_0x309991){const _0x397a23=_0x4fde36;if(this[_0x397a23(0x164)]!==_0x309991||this[_0x397a23(0x269)][_0x397a23(0x24d)](_0x309991))return;let _0x4ca193=this['_sheetLoadingRenderService'];_0x4ca193&&(this[_0x397a23(0x269)]['add'](_0x309991),_0x4ca193[_0x397a23(0x30e)](_0x309991,0x2710)[_0x397a23(0x3fb)](_0x46eb88=>{const _0x143f1d=_0x397a23;if(this[_0x143f1d(0x164)]!==_0x309991)return;if(_0x46eb88){let _0x3290ad=''+Y+_0x309991;this[_0x143f1d(0x2fe)]['remove'](_0x3290ad),this[_0x143f1d(0x3ca)][_0x143f1d(0x3a7)](_0x3290ad),this[_0x143f1d(0x164)]=void 0x0,this[_0x143f1d(0x1f9)](!0x1);return;}let _0x3a93a7=''+Y+_0x309991;this[_0x143f1d(0x2fe)][_0x143f1d(0x3d7)](_0x3a93a7),this[_0x143f1d(0x3ca)][_0x143f1d(0x3a7)](_0x3a93a7),this[_0x143f1d(0x2f2)][_0x143f1d(0x345)]({'unitId':_0x309991,'content':this[_0x143f1d(0x46b)]['t'](_0x143f1d(0x45e)),'refreshLabel':this[_0x143f1d(0x46b)]['t'](_0x143f1d(0x238))});}));}[_0x4fde36(0x1b7)](_0x69ffa2){const _0x429889=_0x4fde36;var _0x3f05c9;this[_0x429889(0x164)]===_0x69ffa2&&((_0x3f05c9=this['_sheetLoadingRenderService'])==null||_0x3f05c9['hide'](_0x69ffa2),this['_previewUnitId']=void 0x0,this['_setInteractionBlocked'](!0x1));}[_0x4fde36(0x1f9)](_0x19d967){const _0x16f515=_0x4fde36;if(_0x19d967!==this[_0x16f515(0x1ae)][_0x16f515(0x35a)]){if(_0x19d967)this[_0x16f515(0x43f)]=this[_0x16f515(0x455)][_0x16f515(0x1c9)]();else{var _0x1c7355;(_0x1c7355=this[_0x16f515(0x43f)])==null||_0x1c7355[_0x16f515(0x295)](),this[_0x16f515(0x43f)]=void 0x0;}this[_0x16f515(0x1ae)][_0x16f515(0x345)](_0x19d967);}}[_0x4fde36(0x270)](_0x21fa64){const _0x396a53=_0x4fde36;let _0x25062f=this[_0x396a53(0x441)][_0x396a53(0x3f6)](_0x396a53(0x40f));return!_0x25062f||_0x25062f===_0x21fa64;}[_0x4fde36(0x475)](){const _0x4e4827=_0x4fde36;return this[_0x4e4827(0x1ef)]?this['_sheetLoadingRenderService']:(this[_0x4e4827(0x28d)][_0x4e4827(0x24b)](n[_0x4e4827(0x272)][_0x4e4827(0x47d)]),this['_injector'][_0x4e4827(0x24d)](v[_0x4e4827(0x207)])&&(this['_sheetLoadingRenderService']=this[_0x4e4827(0x1df)][_0x4e4827(0x3bd)](v['ISheetLoadingRenderService'])),this[_0x4e4827(0x1ef)]);}};X=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(p[_0x4fde36(0x421)])),S(0x1,r[_0x4fde36(0x293)]),S(0x2,(0x0,n['Inject'])(n['LocaleService'])),S(0x3,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x4,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x2b5)])),S(0x5,r[_0x4fde36(0x25e)]),S(0x6,r['IShortcutService']),S(0x7,H)],X);function Te(_0xd327be){const _0x144d03=_0x4fde36;var _0x51e1dd,_0x37811e;let _0x5e4fd9=(_0x51e1dd=_0xd327be['stageInfo'])==null?void 0x0:_0x51e1dd[_0x144d03(0x2fa)],_0x1635a2=((_0x37811e=_0xd327be['stageInfo'])==null?void 0x0:_0x37811e['totalFormulasToCalculate'])||0x0;return _0x5e4fd9===h[_0x144d03(0x30f)][_0x144d03(0x234)]&&_0x1635a2>0x0;}function Ee(_0x554ad8){const _0x10a3c5=_0x4fde36;return _0x554ad8[_0x10a3c5(0x249)]===h[_0x10a3c5(0x35e)][_0x10a3c5(0x467)];}let Z=class extends n[_0x4fde36(0x231)]{constructor(_0x20640b,_0x53a3aa,_0x1d6326,_0x3a7984,_0x5e1f5b,_0x238f62,_0x4d07a3){const _0x430580=_0x4fde36;super(),this['_messageService']=_0x20640b,this[_0x430580(0x3fa)]=_0x53a3aa,this[_0x430580(0x25f)]=_0x1d6326,this[_0x430580(0x17c)]=_0x3a7984,this[_0x430580(0x47b)]=_0x5e1f5b,this['_logService']=_0x238f62,this[_0x430580(0x46b)]=_0x4d07a3,x(this,_0x430580(0x3fc),null),x(this,_0x430580(0x287),0x0),x(this,'_currentUsage',0x0),x(this,_0x430580(0x323),[]),x(this,_0x430580(0x3c2),0x0),this[_0x430580(0x31c)]();}['_initCommandInterceptor'](){const _0x4d28f2=_0x4fde36;this[_0x4d28f2(0x32d)](this['_commandService'][_0x4d28f2(0x429)]((_0x32e560,_0x3f9962)=>{const _0x489946=_0x4d28f2;var _0x194c9e;if(_0x32e560['id']!==h['SetFormulaCalculationStartMutation']['id'])return;let _0x3308a1=_0x32e560['params'];if(this[_0x489946(0x286)]((_0x194c9e=_0x3308a1[_0x489946(0x271)])==null?[]:_0x194c9e)&&!this[_0x489946(0x167)]())throw this[_0x489946(0x18f)](_0x32e560,_0x3f9962),this[_0x489946(0x44e)](),new n['CanceledError']();})),this[_0x4d28f2(0x32d)](this[_0x4d28f2(0x3fa)][_0x4d28f2(0x376)]((_0x10cbe8,_0x1e6bd8)=>{const _0x4a449c=_0x4d28f2;if(_0x10cbe8['id']!==h[_0x4a449c(0x1a6)]['id'])return;let _0x5bce2d=_0x10cbe8[_0x4a449c(0x198)];if(Te(_0x5bce2d)){let _0x51ce10=(0x0,n[_0x4a449c(0x235)])();this[_0x4a449c(0x323)][_0x4a449c(0x2e8)](_0x51ce10),this[_0x4a449c(0x425)](_0x51ce10);}else{if(Ee(_0x5bce2d)&&this[_0x4a449c(0x323)][_0x4a449c(0x2ee)]>0x0){let _0x1de4b4=this[_0x4a449c(0x323)]['shift']();this[_0x4a449c(0x19b)](_0x1de4b4);}}}));}['dispose'](){const _0x41a821=_0x4fde36;super['dispose'](),this[_0x41a821(0x30c)](),this[_0x41a821(0x323)]=[],this[_0x41a821(0x28a)]=0x0,this[_0x41a821(0x287)]=0x0,this[_0x41a821(0x3c2)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x4864f2,_0x1750f1){const _0x4a9276=_0x4fde36;for(let _0x54a6b1=0x0;_0x54a6b1<0x1e;_0x54a6b1++)try{if(await this[_0x4a9276(0x3a2)](),this[_0x4a9276(0x167)]()){this[_0x4a9276(0x408)](_0x4864f2,_0x1750f1),this[_0x4a9276(0x2fe)][_0x4a9276(0x2f8)]({'content':this[_0x4a9276(0x46b)]['t'](_0x4a9276(0x1e1)),'type':o[_0x4a9276(0x1ac)]['Success']});return;}await new Promise(_0x518089=>{const _0x2a95b2=_0x4a9276;this[_0x2a95b2(0x3fc)]=window[_0x2a95b2(0x171)](_0x518089,0x3e8);});}catch(_0x379b29){this[_0x4a9276(0x3c4)][_0x4a9276(0x3c7)](_0x379b29);}this[_0x4a9276(0x2fe)][_0x4a9276(0x2f8)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.unable'),'type':o[_0x4a9276(0x1ac)]['Error']});}['_applyCommand'](_0xc5d388,_0x54e5db){const _0x18f9ed=_0x4fde36;try{this[_0x18f9ed(0x3fa)][_0x18f9ed(0x1e8)](_0xc5d388['id'],_0xc5d388[_0x18f9ed(0x198)],_0x54e5db);}catch(_0x100b2c){this[_0x18f9ed(0x3c4)][_0x18f9ed(0x3c7)](_0x100b2c);}}[_0x4fde36(0x16d)](_0x2a735a,_0x362e48){const _0x224243=_0x4fde36;_0x362e48<this[_0x224243(0x3c2)]||(this['_lastResponseTimestamp']=_0x362e48,this[_0x224243(0x287)]=Number[_0x224243(0x2d1)](_0x2a735a[_0x224243(0x3ce)]),this['_currentUsage']=Number['parseInt'](_0x2a735a[_0x224243(0x216)]));}async[_0x4fde36(0x425)](_0x5ea49c){const _0x560e97=_0x4fde36;let _0x432349=Date[_0x560e97(0x3c3)]();try{var _0x1fa4f4,_0x481e32;let _0x352d70=((_0x1fa4f4=this[_0x560e97(0x25f)][_0x560e97(0x391)](t[_0x560e97(0x240)]))==null?void 0x0:_0x1fa4f4[_0x560e97(0x1cb)])||_0x560e97(0x419),_0x20fd73=(await this[_0x560e97(0x17c)]['post'](_0x352d70,{'body':JSON[_0x560e97(0x1e5)]({'taskId':_0x5ea49c})}))[_0x560e97(0x3b0)];if(((_0x481e32=_0x20fd73['error'])==null?void 0x0:_0x481e32[_0x560e97(0x3dc)])!==y['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x20fd73[_0x560e97(0x28f)],_0x432349);}catch(_0x52f21d){this[_0x560e97(0x3c4)][_0x560e97(0x3c7)](_0x52f21d);}}async[_0x4fde36(0x3a2)](_0x5dfc02){const _0x29d5b4=_0x4fde36;let _0x3d18ff=Date['now']();try{var _0x300df1,_0x59de96;let _0x53194d=((_0x300df1=this[_0x29d5b4(0x25f)][_0x29d5b4(0x391)](t[_0x29d5b4(0x240)]))==null?void 0x0:_0x300df1[_0x29d5b4(0x1f7)])||_0x29d5b4(0x37d),_0x440391=_0x5dfc02?_0x53194d+_0x29d5b4(0x20a)+encodeURIComponent(_0x5dfc02):_0x53194d,_0x3bc0f2=(await this['_httpService'][_0x29d5b4(0x3bd)](_0x440391))[_0x29d5b4(0x3b0)];if(((_0x59de96=_0x3bc0f2['error'])==null?void 0x0:_0x59de96[_0x29d5b4(0x3dc)])!==y[_0x29d5b4(0x34c)]['OK'])return;this[_0x29d5b4(0x16d)](_0x3bc0f2[_0x29d5b4(0x28f)],_0x3d18ff);}catch(_0x319b97){this[_0x29d5b4(0x3c4)]['error'](_0x319b97);}}async[_0x4fde36(0x19b)](_0x431cf4){const _0x4a65c5=_0x4fde36;let _0x55697e=Date[_0x4a65c5(0x3c3)]();try{var _0xfb9bce,_0x568d4e;let _0x35d879=((_0xfb9bce=this[_0x4a65c5(0x25f)][_0x4a65c5(0x391)](t[_0x4a65c5(0x240)]))==null?void 0x0:_0xfb9bce['releaseFormulaLimitUrl'])||'/universer-api/license/formula/limit/done',_0x4816a5=(await this[_0x4a65c5(0x17c)][_0x4a65c5(0x1e4)](_0x35d879,{'body':JSON[_0x4a65c5(0x1e5)]({'taskId':_0x431cf4})}))[_0x4a65c5(0x3b0)];if(((_0x568d4e=_0x4816a5['error'])==null?void 0x0:_0x568d4e['code'])!==y[_0x4a65c5(0x34c)]['OK'])return;this[_0x4a65c5(0x16d)](_0x4816a5[_0x4a65c5(0x28f)],_0x55697e);}catch(_0x365844){this[_0x4a65c5(0x3c4)][_0x4a65c5(0x3c7)](_0x365844);}}['_checkCalculationAvailable'](){const _0x2ed8ec=_0x4fde36;return this[_0x2ed8ec(0x287)]===0x0?!0x0:this[_0x2ed8ec(0x287)]-this['_currentUsage']>0x0;}[_0x4fde36(0x30c)](){const _0x2b21fd=_0x4fde36;this[_0x2b21fd(0x3fc)]&&(clearTimeout(this['_pollingInterval']),this[_0x2b21fd(0x3fc)]=null);}['_showGuardMessage'](){const _0x3000e8=_0x4fde36;this[_0x3000e8(0x2fe)][_0x3000e8(0x2f8)]({'content':this[_0x3000e8(0x46b)]['t']('collaboration-client-ui.formula.calculation.waiting'),'type':o[_0x3000e8(0x1ac)][_0x3000e8(0x2fd)]});}[_0x4fde36(0x286)](_0x6660ec){const _0x3e01cb=_0x4fde36;for(let _0x60ba81 of _0x6660ec){let {unitId:_0x20f93e,sheetId:_0x35f664,range:_0x599452}=_0x60ba81,_0x3c60f3=this['_univerInstanceService'][_0x3e01cb(0x400)](_0x20f93e);if(!_0x3c60f3)continue;let _0x393e0e=_0x3c60f3[_0x3e01cb(0x20f)](_0x35f664);if(!_0x393e0e)continue;let _0x7f9446=_0x393e0e[_0x3e01cb(0x3ec)]();for(let _0x2d8238=_0x599452[_0x3e01cb(0x360)];_0x2d8238<=_0x599452['endRow'];_0x2d8238++)for(let _0x3ca66d=_0x599452[_0x3e01cb(0x383)];_0x3ca66d<=_0x599452['endColumn'];_0x3ca66d++){let _0x3bb816=_0x7f9446[_0x3e01cb(0x1ec)](_0x2d8238,_0x3ca66d);if(_0x3bb816&&((0x0,n[_0x3e01cb(0x43d)])(_0x3bb816['f'])||(0x0,n[_0x3e01cb(0x428)])(_0x3bb816['si'])))return!0x0;}}return!0x1;}};Z=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(r[_0x4fde36(0x293)])),S(0x1,n[_0x4fde36(0x375)]),S(0x2,n[_0x4fde36(0x385)]),S(0x3,(0x0,n['Inject'])(d['HTTPService'])),S(0x4,n[_0x4fde36(0x260)]),S(0x5,n[_0x4fde36(0x314)]),S(0x6,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x1da)]))],Z);let De=class extends n['Disposable']{constructor(_0x1704c2,_0x5a969c,_0xbb6e97){const _0x3d7601=_0x4fde36;super(),this[_0x3d7601(0x25f)]=_0x1704c2,this[_0x3d7601(0x30a)]=_0x5a969c,this[_0x3d7601(0x273)]=_0xbb6e97,x(this,_0x3d7601(0x2a3),new Map()),x(this,'_saveTaskMap',new Map()),x(this,'_disabled',!0x1);}[_0x4fde36(0x46e)](){this['_disabled']=!0x0;}[_0x4fde36(0x309)](){const _0x3c1ef5=_0x4fde36;this[_0x3c1ef5(0x1a0)]=!0x1;}get[_0x4fde36(0x2c6)](){return this['_saveTaskMap'];}['dispose'](){const _0x52d5b3=_0x4fde36;this[_0x52d5b3(0x29c)]()[_0x52d5b3(0x3fb)](()=>super[_0x52d5b3(0x295)]());}async[_0x4fde36(0x1d9)](_0x2b87b4){const _0x148eb1=_0x4fde36;return this[_0x148eb1(0x1a0)]?null:this[_0x148eb1(0x30a)][_0x148eb1(0x2c4)]((0x0,t['getLocalCacheKey'])(_0x2b87b4));}async['saveOfflineData'](_0x480884,_0x330683){const _0x220833=_0x4fde36;return!!this[_0x220833(0x30a)][_0x220833(0x38e)]((0x0,t[_0x220833(0x43a)])(_0x480884),_0x330683);}async[_0x4fde36(0x300)](_0x185dff,_0x202960){const _0x552fc6=_0x4fde36;var _0x1c9f73;let _0x3d9c61=(_0x1c9f73=this[_0x552fc6(0x2a3)][_0x552fc6(0x3bd)](_0x185dff))==null?await this['_localStorageService'][_0x552fc6(0x2c4)]((0x0,t[_0x552fc6(0x43a)])(_0x185dff)):_0x1c9f73;if(!_0x3d9c61)return;let _0x4f328b=Date[_0x552fc6(0x3c3)](),_0x5c79c5=new Date(_0x4f328b)['toISOString']();await this[_0x552fc6(0x30a)][_0x552fc6(0x38e)]((0x0,t['getLocalCacheKey'])(_0x185dff)+':backup:'+_0x4f328b,{'reason':_0x202960,'createdAt':_0x5c79c5,'data':_0x3d9c61});}[_0x4fde36(0x437)](_0x249cbb,_0xd03ab7,_0x12c598,_0x5509d3){const _0x28898a=_0x4fde36;let _0x19b9a6=this[_0x28898a(0x273)][_0x28898a(0x3e6)](_0x249cbb);this['_cachedData'][_0x28898a(0x1a4)](_0x249cbb,{'unitID':_0x249cbb,'type':_0xd03ab7,'awaitingChangeset':_0x12c598,'mutations':_0x5509d3,'rev':_0x19b9a6}),this[_0x28898a(0x285)][_0x28898a(0x24d)](_0x249cbb)||this[_0x28898a(0x2d3)](_0x249cbb);}[_0x4fde36(0x2d3)](_0x3d9fab){const _0x32f580=_0x4fde36;let _0x167a10=this[_0x32f580(0x186)]();_0x167a10===0x0?this['_saveCache'](_0x3d9fab):this[_0x32f580(0x285)][_0x32f580(0x1a4)](_0x3d9fab,window[_0x32f580(0x171)](()=>this[_0x32f580(0x2f9)](_0x3d9fab),_0x167a10));}[_0x4fde36(0x186)](){const _0x494a2a=_0x4fde36;var _0x47bfd9;return(_0x47bfd9=this[_0x494a2a(0x25f)][_0x494a2a(0x391)](t[_0x494a2a(0x205)]))==null?t[_0x494a2a(0x315)]:_0x47bfd9;}[_0x4fde36(0x2f9)](_0x545975){const _0x30abaa=_0x4fde36;let _0x490e13=this['_saveTaskMap'][_0x30abaa(0x3bd)](_0x545975);return _0x490e13!==void 0x0&&window[_0x30abaa(0x201)](_0x490e13),this['_localStorageService']['setItem']((0x0,t['getLocalCacheKey'])(_0x545975),this[_0x30abaa(0x2a3)][_0x30abaa(0x3bd)](_0x545975))[_0x30abaa(0x3fb)](()=>this[_0x30abaa(0x285)][_0x30abaa(0x3a7)](_0x545975));}async[_0x4fde36(0x29c)](){const _0x28f6f3=_0x4fde36;let _0x39e0f6=[];this[_0x28f6f3(0x285)][_0x28f6f3(0x19e)]((_0x36462a,_0x31970a)=>{const _0x2dc428=_0x28f6f3;window[_0x2dc428(0x201)](_0x36462a),_0x39e0f6[_0x2dc428(0x2e8)](this[_0x2dc428(0x2f9)](_0x31970a)[_0x2dc428(0x3fb)](()=>{const _0x4680f0=_0x2dc428;this['_saveTaskMap'][_0x4680f0(0x3a7)](_0x31970a);}));}),await Promise[_0x28f6f3(0x3ff)](_0x39e0f6);}};De=C([S(0x0,n[_0x4fde36(0x385)]),S(0x1,n[_0x4fde36(0x214)]),S(0x2,(0x0,n['Inject'])(p[_0x4fde36(0x33d)]))],De);var Oe=class extends n[_0x4fde36(0x18c)]{constructor(){const _0x41bdd7=_0x4fde36;super(),x(this,_0x41bdd7(0x386),void 0x0),this[_0x41bdd7(0x386)]=(0x0,i[_0x41bdd7(0x2cf)])(window,'popstate')['pipe']((0x0,i[_0x41bdd7(0x328)])(this[_0x41bdd7(0x2d2)]),(0x0,i[_0x41bdd7(0x2aa)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i['mapTo'])(void 0x0));}[_0x4fde36(0x3a0)](_0x4c8da4,_0x21f63a,_0x1f8eb9=!0x1){const _0x247476=_0x4fde36;let _0x3514d8=new URL(window[_0x247476(0x40e)][_0x247476(0x2f1)]);_0x3514d8[_0x247476(0x33e)][_0x247476(0x1a4)](_0x4c8da4,_0x21f63a),_0x1f8eb9?window[_0x247476(0x37c)][_0x247476(0x19a)]('','',_0x3514d8[_0x247476(0x1dd)]()):window['history'][_0x247476(0x179)]('','',_0x3514d8['toString']());}[_0x4fde36(0x340)](_0x5f3468,_0x2b08d5=!0x1){const _0x4af378=_0x4fde36;let _0xa6cc1=new URL(window[_0x4af378(0x40e)][_0x4af378(0x2f1)]);_0xa6cc1[_0x4af378(0x33e)]['delete'](_0x5f3468),_0x2b08d5?window[_0x4af378(0x37c)][_0x4af378(0x19a)]('','',_0xa6cc1['toString']()):window[_0x4af378(0x37c)][_0x4af378(0x179)]('','',_0xa6cc1[_0x4af378(0x1dd)]());}[_0x4fde36(0x3f6)](_0x5ba57c){const _0x28c911=_0x4fde36;var _0x24f225;return(_0x24f225=new URL(window[_0x28c911(0x40e)]['href'])['searchParams'][_0x28c911(0x3bd)](_0x5ba57c))==null?void 0x0:_0x24f225;}};let Q=class extends n[_0x4fde36(0x402)]{constructor(_0x4f4f12=ue,_0x21b721,_0x3f861e,_0x1ac066){const _0x59c2cc=_0x4fde36;super(),this[_0x59c2cc(0x174)]=_0x4f4f12,this['_renderManagerService']=_0x21b721,this[_0x59c2cc(0x1df)]=_0x3f861e,this[_0x59c2cc(0x25f)]=_0x1ac066;let {..._0x44b97d}=(0x0,n[_0x59c2cc(0x3ef)])({},ue,this[_0x59c2cc(0x174)]);this['_configService'][_0x59c2cc(0x3f4)](_0x59c2cc(0x18a),_0x44b97d);}[_0x4fde36(0x196)](){const _0x4032ad=_0x4fde36;this[_0x4032ad(0x339)](),this['_initDependencies']();}['onRendered'](){const _0x684f22=_0x4fde36;this[_0x684f22(0x3ae)]();}[_0x4fde36(0x339)](){const _0x53a0c6=_0x4fde36;var _0x1ddbd6;let _0x17bd0c=[[k],[Z],[H,{'useClass':Oe}],[d[_0x53a0c6(0x438)],{'useClass':d[_0x53a0c6(0x34e)]}],[t[_0x53a0c6(0x1af)],{'useClass':De}],[w],[T],[V],[F],[U],[X]];this[_0x53a0c6(0x174)][_0x53a0c6(0x245)]!==!0x1&&_0x17bd0c[_0x53a0c6(0x2e8)]([K],[W],[G],[j],[q],[E]),this[_0x53a0c6(0x174)][_0x53a0c6(0x1a9)]&&_0x17bd0c[_0x53a0c6(0x2e8)]([J]),(0x0,n[_0x53a0c6(0x38b)])(this[_0x53a0c6(0x1df)],(0x0,n[_0x53a0c6(0x23a)])(_0x17bd0c,(_0x1ddbd6=this['_config'])==null?void 0x0:_0x1ddbd6[_0x53a0c6(0x17b)]));}[_0x4fde36(0x3ae)](){const _0x547e75=_0x4fde36;this[_0x547e75(0x174)][_0x547e75(0x245)]!==!0x1&&this[_0x547e75(0x32d)](this['_renderManagerService']['registerRenderModule'](n[_0x547e75(0x272)][_0x547e75(0x370)],[R])),this['disposeWithMe'](this[_0x547e75(0x41f)][_0x547e75(0x266)](n[_0x547e75(0x272)][_0x547e75(0x47d)],[z])),this[_0x547e75(0x32d)](this[_0x547e75(0x41f)][_0x547e75(0x266)](n[_0x547e75(0x272)]['UNIVER_SLIDE'],[B])),this[_0x547e75(0x32d)](this[_0x547e75(0x41f)][_0x547e75(0x266)](n['UniverInstanceType'][_0x547e75(0x367)],[I]));}[_0x4fde36(0x37f)](){const _0x123b48=_0x4fde36;(0x0,n[_0x123b48(0x1b8)])(this[_0x123b48(0x1df)],[[F],[w],[T],[V],[U],[Z],[X]]),this[_0x123b48(0x174)][_0x123b48(0x245)]!==!0x1&&(0x0,n[_0x123b48(0x1b8)])(this[_0x123b48(0x1df)],[[q],[E]]),this[_0x123b48(0x174)][_0x123b48(0x1a9)]&&(0x0,n[_0x123b48(0x1b8)])(this[_0x123b48(0x1df)],[[J]]);}};x(Q,_0x4fde36(0x472),_0x4fde36(0x2a8)),x(Q,_0x4fde36(0x39e),ce),x(Q,_0x4fde36(0x322),le),Q=C([(0x0,n['DependentOn'])(t[_0x4fde36(0x3cb)]),S(0x1,u[_0x4fde36(0x374)]),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(n['Injector'])),S(0x3,n[_0x4fde36(0x385)])],Q);let ke=class extends t[_0x4fde36(0x3f8)]{constructor(_0x5b01bb,_0x34cafa,_0x4c575a,_0x487cca,_0x364b39){super(_0x5b01bb,_0x34cafa,_0x4c575a,_0x487cca,_0x364b39);}async['createSocket'](_0xfef03a){const _0x430ea5=_0x4fde36;let _0x5c82ed=await this[_0x430ea5(0x423)](),_0x120ce9=this[_0x430ea5(0x2b3)](_0xfef03a,_0x5c82ed);return this[_0x430ea5(0x3a3)](_0x120ce9);}[_0x4fde36(0x2b3)](_0x521f1d,_0x186f3a){const _0x3aa945=_0x4fde36;let _0xf86318=typeof window>'u'?new URL(_0x521f1d):new URL(_0x521f1d,window[_0x3aa945(0x40e)]['origin']);_0xf86318['searchParams'][_0x3aa945(0x1a4)](_0x3aa945(0x2df),_0x186f3a);let _0x2f1cf9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3aa945(0x40e)]['search']);return _0x2f1cf9['get'](_0x3aa945(0x18b))&&_0xf86318['searchParams'][_0x3aa945(0x1a4)](_0x3aa945(0x18b),_0x2f1cf9[_0x3aa945(0x3bd)]('runId')),_0xf86318[_0x3aa945(0x1dd)]();}async['_getSessionTicket'](){const _0x4c01fd=_0x4fde36;var _0x82af13,_0x557f0e,_0x1554cb;let _0x4a7894=this[_0x4c01fd(0x25f)][_0x4c01fd(0x391)](t[_0x4c01fd(0x240)]),_0x6d004=(_0x82af13=_0x4a7894==null?void 0x0:_0x4a7894['wsSessionTicketUrl'])==null?t[_0x4c01fd(0x3c5)]:_0x82af13;return(_0x557f0e=(_0x1554cb=(await this[_0x4c01fd(0x17c)]['get'](_0x6d004,{'headers':{'Content-Type':_0x4c01fd(0x3f3)}}))[_0x4c01fd(0x3b0)])==null?void 0x0:_0x1554cb['ticket'])==null?'':_0x557f0e;}};ke=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(d[_0x4fde36(0x2e2)])),S(0x2,n[_0x4fde36(0x385)]),S(0x3,n[_0x4fde36(0x314)]),S(0x4,p[_0x4fde36(0x2d4)])],ke);let $=class extends n[_0x4fde36(0x231)]{constructor(_0x2d0cd4,_0x21fce3,_0x3518bd){const _0x4fbd97=_0x4fde36;super(),this['_instanceService']=_0x2d0cd4,this[_0x4fbd97(0x17c)]=_0x21fce3,this['_configService']=_0x3518bd;}async[_0x4fde36(0x2af)](_0x418b83,_0x7927c0,_0x223e35,..._0x5d6612){const _0x4b6f03=_0x4fde36;var _0x36e417,_0x4517de,_0x1d3b6e,_0x678675;let _0x19632d=this[_0x4b6f03(0x330)][_0x4b6f03(0x206)]();if(!_0x19632d)throw Error(_0x4b6f03(0x2a4));let _0x415eb8=((_0x36e417=this[_0x4b6f03(0x25f)][_0x4b6f03(0x391)](t[_0x4b6f03(0x2cd)]))==null?t[_0x4b6f03(0x38c)]:_0x36e417)+'/'+_0x418b83+'/run/'+_0x7927c0,_0x53ffe5={'scriptId':_0x418b83,'runId':(_0x4517de=new URL(window['location'][_0x4b6f03(0x2f1)])[_0x4b6f03(0x33e)][_0x4b6f03(0x3bd)]('runId'))==null?'':_0x4517de,'function':_0x7927c0,'unitId':_0x19632d[_0x4b6f03(0x448)](),'argsOfFunction':JSON[_0x4b6f03(0x1e5)](_0x5d6612),'invokeId':(_0x1d3b6e=_0x223e35[_0x4b6f03(0x477)])==null?'':_0x1d3b6e,'executionId':(_0x678675=_0x223e35[_0x4b6f03(0x38d)])==null?'':_0x678675};try{let _0x4cf8b8=await this[_0x4b6f03(0x17c)][_0x4b6f03(0x1e4)](_0x415eb8,{'body':_0x53ffe5});return _0x4cf8b8[_0x4b6f03(0x3b0)][_0x4b6f03(0x3c7)]&&_0x4cf8b8[_0x4b6f03(0x3b0)][_0x4b6f03(0x3c7)]['code']!==y[_0x4b6f03(0x34c)]['OK']?'Failed':_0x4cf8b8['body']['result'];}catch{return _0x4b6f03(0x3fd);}}};$=C([S(0x0,n[_0x4fde36(0x260)]),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(d['HTTPService'])),S(0x2,n[_0x4fde36(0x385)])],$);const Ae=0x7530,je='ACTIVE_UNIT_EVENT_CHANNEL';var Me=class extends n['Disposable']{constructor(){const _0x30f29f=_0x4fde36;super(),x(this,_0x30f29f(0x1ff),(0x0,n[_0x30f29f(0x235)])()),x(this,_0x30f29f(0x34d),new Set()),x(this,'_unitOnClients',new Map()),x(this,_0x30f29f(0x2bf),null),x(this,'_clearOtherTimers',new Map()),x(this,_0x30f29f(0x358),new Map()),this['_init']();}[_0x4fde36(0x295)](){const _0x4b2f6c=_0x4fde36;super[_0x4b2f6c(0x295)](),this[_0x4b2f6c(0x29e)][_0x4b2f6c(0x19e)]((_0x2bb7c3,_0x3eccd2)=>this[_0x4b2f6c(0x371)](_0x3eccd2)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x4b2f6c(0x2bf)]);}[_0x4fde36(0x384)](_0x3f5f3c){const _0x296b5f=_0x4fde36;return this[_0x296b5f(0x1f1)](_0x3f5f3c)[_0x296b5f(0x19f)]((0x0,i[_0x296b5f(0x264)])());}[_0x4fde36(0x23d)](_0x3ad30b){const _0x7c554b=_0x4fde36;this[_0x7c554b(0x34d)][_0x7c554b(0x353)]===0x0&&this[_0x7c554b(0x3d3)](),this['_selfUnitIDs']['add'](_0x3ad30b),this[_0x7c554b(0x2a5)]({'type':0x0,'memberID':this[_0x7c554b(0x1ff)],'unitIDs':[_0x3ad30b],'isForwarded':!0x1});}[_0x4fde36(0x232)](_0x37856a){const _0x411819=_0x4fde36;this[_0x411819(0x34d)]['delete'](_0x37856a),this['_selfUnitIDs'][_0x411819(0x353)]===0x0&&this[_0x411819(0x2bf)]&&window[_0x411819(0x23e)](this[_0x411819(0x2bf)]);}[_0x4fde36(0x392)](){const _0x2a6c8d=_0x4fde36;this[_0x2a6c8d(0x32d)]((0x0,n['toDisposable'])((0x0,i['fromEvent'])(window,'storage')[_0x2a6c8d(0x18e)](_0x3fabe4=>{const _0x3bf0bf=_0x2a6c8d;if(_0x3fabe4['key']!==je||!_0x3fabe4[_0x3bf0bf(0x2b8)])return;let _0x527d9b=JSON[_0x3bf0bf(0x3a1)](_0x3fabe4[_0x3bf0bf(0x2b8)]);this['_handleEvent'](_0x527d9b);}))),window[_0x2a6c8d(0x480)](_0x2a6c8d(0x3be),()=>this[_0x2a6c8d(0x2a5)]({'type':0x1,'memberID':this[_0x2a6c8d(0x1ff)],'unitIDs':Array[_0x2a6c8d(0x412)](this[_0x2a6c8d(0x34d)])}));}[_0x4fde36(0x223)](_0x2839d4){const _0x15dcc4=_0x4fde36;switch(_0x2839d4[_0x15dcc4(0x2e5)]){case 0x0:this[_0x15dcc4(0x1fd)](_0x2839d4);break;case 0x1:this[_0x15dcc4(0x338)](_0x2839d4);break;case 0x2:this[_0x15dcc4(0x194)](_0x2839d4);break;}}[_0x4fde36(0x1fd)](_0xe8a514){const _0x21f26f=_0x4fde36;let {unitIDs:_0x3a6ade,memberID:_0x29d944,isForwarded:_0x1947e6}=_0xe8a514;_0x3a6ade[_0x21f26f(0x19e)](_0x33d1d7=>{const _0x1c6bc=_0x21f26f;if(!_0x1947e6&&this[_0x1c6bc(0x333)][_0x1c6bc(0x24d)](_0x33d1d7)&&this[_0x1c6bc(0x1f1)](_0x33d1d7)[_0x1c6bc(0x345)](t[_0x1c6bc(0x163)][_0x1c6bc(0x1ed)]),!this[_0x1c6bc(0x333)][_0x1c6bc(0x24d)](_0x33d1d7)||!this[_0x1c6bc(0x333)]['get'](_0x33d1d7)[_0x1c6bc(0x24d)](_0x29d944)){let _0x2d85fc=this[_0x1c6bc(0x333)][_0x1c6bc(0x3bd)](_0x33d1d7)||new Set();_0x2d85fc[_0x1c6bc(0x46f)](_0x29d944),this[_0x1c6bc(0x333)][_0x1c6bc(0x1a4)](_0x33d1d7,_0x2d85fc),this[_0x1c6bc(0x24c)](_0x29d944);}}),_0x1947e6||this[_0x21f26f(0x2a5)]({'type':0x0,'memberID':this[_0x21f26f(0x1ff)],'unitIDs':[...this[_0x21f26f(0x34d)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3c2377){const _0x1c51ba=_0x4fde36;this[_0x1c51ba(0x371)](_0x3c2377);let _0x581f54=window[_0x1c51ba(0x171)](()=>{const _0x5c5c65=_0x1c51ba;this[_0x5c5c65(0x333)][_0x5c5c65(0x19e)](_0x285144=>{const _0x347955=_0x5c5c65;_0x285144[_0x347955(0x3a7)](_0x3c2377);});},Ae*0x2);this['_clearOtherTimers']['set'](_0x3c2377,_0x581f54);}[_0x4fde36(0x371)](_0x198b40){const _0xfecb25=_0x4fde36;if(this[_0xfecb25(0x29e)][_0xfecb25(0x24d)](_0x198b40)){let _0x5668e8=this[_0xfecb25(0x29e)][_0xfecb25(0x3bd)](_0x198b40);_0x5668e8&&window[_0xfecb25(0x201)](_0x5668e8),this['_clearOtherTimers'][_0xfecb25(0x1a4)](_0x198b40,null);}}['_handleLeaveEvent'](_0x34692e){const _0x7eee26=_0x4fde36;let {memberID:_0x5f27d9,unitIDs:_0x53ee69}=_0x34692e;_0x53ee69['forEach'](_0x1a8505=>{const _0x4abaf8=_0x4dee;var _0x26283f;let _0x52c8f9=this[_0x4abaf8(0x333)]['get'](_0x1a8505);_0x52c8f9&&(_0x52c8f9['delete'](_0x5f27d9),(_0x26283f=this[_0x4abaf8(0x1f1)](_0x1a8505))==null||_0x26283f['next'](_0x52c8f9[_0x4abaf8(0x353)]===0x0?t[_0x4abaf8(0x163)][_0x4abaf8(0x276)]:t[_0x4abaf8(0x163)][_0x4abaf8(0x1ed)]));}),this[_0x7eee26(0x371)](_0x5f27d9);}[_0x4fde36(0x194)](_0x43c957){const _0x4fd600=_0x4fde36;this[_0x4fd600(0x24c)](_0x43c957[_0x4fd600(0x466)]);}['_send'](_0x2b284f){const _0x2836f9=_0x4fde36;localStorage[_0x2836f9(0x38e)](je,JSON[_0x2836f9(0x1e5)](_0x2b284f));}[_0x4fde36(0x3d3)](){const _0xdb16e7=_0x4fde36;this[_0xdb16e7(0x2bf)]=window[_0xdb16e7(0x1d3)](()=>{const _0x3d45ba=_0xdb16e7;this[_0x3d45ba(0x2a5)]({'type':0x2,'memberID':this['_id']});},Ae);}[_0x4fde36(0x1f1)](_0x3c2ca8){const _0x1fc517=_0x4fde36;return this[_0x1fc517(0x358)][_0x1fc517(0x24d)](_0x3c2ca8)||this[_0x1fc517(0x358)][_0x1fc517(0x1a4)](_0x3c2ca8,new i[(_0x1fc517(0x299))](t['UnitStatus'][_0x1fc517(0x276)])),this['_unitStatus'][_0x1fc517(0x3bd)](_0x3c2ca8);}};Object[_0x4fde36(0x319)](exports,_0x4fde36(0x329),{'enumerable':!0x0,'get':function(){return ke;}}),Object[_0x4fde36(0x319)](exports,_0x4fde36(0x2ba),{'enumerable':!0x0,'get':function(){return w;}}),exports[_0x4fde36(0x352)]=H,Object[_0x4fde36(0x319)](exports,_0x4fde36(0x422),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4fde36(0x2e0)]=xe,Object['defineProperty'](exports,_0x4fde36(0x1aa),{'enumerable':!0x0,'get':function(){return Q;}}),exports['WebBrowserSingleActiveUnitService']=Me;