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

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 (89) 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.css +87 -0
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +36 -0
  66. package/lib/types/locale/en-US.d.ts +5 -0
  67. package/lib/types/views/components/SnapshotLoadingTimeout.d.ts +15 -0
  68. package/lib/umd/facade.js +1 -1
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -1
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -1
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -1
  78. package/lib/umd/locale/it-IT.js +1 -1
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -1
  82. package/lib/umd/locale/pt-BR.js +1 -1
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -1
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +22 -22
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x437440=_0x30e6;(function(_0x51095f,_0xe8556c){const _0x423209=_0x30e6,_0x26b0dc=_0x51095f();while(!![]){try{const _0x221736=-parseInt(_0x423209(0x251))/0x1*(parseInt(_0x423209(0x2bc))/0x2)+parseInt(_0x423209(0x315))/0x3+parseInt(_0x423209(0x2ab))/0x4+parseInt(_0x423209(0x37f))/0x5*(-parseInt(_0x423209(0x334))/0x6)+parseInt(_0x423209(0x2f8))/0x7*(parseInt(_0x423209(0x28f))/0x8)+-parseInt(_0x423209(0x22a))/0x9*(-parseInt(_0x423209(0x19e))/0xa)+-parseInt(_0x423209(0x212))/0xb;if(_0x221736===_0xe8556c)break;else _0x26b0dc['push'](_0x26b0dc['shift']());}catch(_0x2289b8){_0x26b0dc['push'](_0x26b0dc['shift']());}}}(_0x184f,0xb42b4),Object[_0x437440(0x16a)](exports,Symbol['toStringTag'],{'value':_0x437440(0x28e)}));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(_0x50a557){const _0x2d0219=_0x437440;switch(_0x50a557){case t[_0x2d0219(0x361)][_0x2d0219(0x2e2)]:return{'icon':(0x0,l[_0x2d0219(0x41b)])(s[_0x2d0219(0x190)],{}),'colorClass':_0x2d0219(0x36a),'i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x2d0219(0x392),'clickable':!0x0,'indicator':_0x2d0219(0x29b)};case t['CollaborationStatus'][_0x2d0219(0x39e)]:return{'icon':(0x0,l[_0x2d0219(0x41b)])(s[_0x2d0219(0x190)],{}),'colorClass':_0x2d0219(0x20b),'i18nKey':_0x2d0219(0x180),'clickable':!0x1,'indicator':'static'};case t[_0x2d0219(0x361)][_0x2d0219(0x418)]:return{'icon':(0x0,l[_0x2d0219(0x41b)])(s[_0x2d0219(0x311)],{}),'colorClass':_0x2d0219(0x2ff),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x2d0219(0x162)};case t[_0x2d0219(0x361)]['NOT_COLLAB']:return{'icon':(0x0,l[_0x2d0219(0x41b)])(s['OnLineIcon'],{}),'colorClass':'univer-text-gray-400','i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x2d0219(0x29b)};case t[_0x2d0219(0x361)][_0x2d0219(0x29c)]:case t[_0x2d0219(0x361)][_0x2d0219(0x348)]:return{'icon':(0x0,l[_0x2d0219(0x41b)])(s[_0x2d0219(0x311)],{}),'colorClass':_0x2d0219(0x2ff),'i18nKey':_0x2d0219(0x1fa),'clickable':!0x1,'indicator':'spin'};case t[_0x2d0219(0x361)][_0x2d0219(0x1c7)]:return{'icon':(0x0,l[_0x2d0219(0x41b)])(s[_0x2d0219(0x311)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x2d0219(0x162)};case t[_0x2d0219(0x361)][_0x2d0219(0x25f)]:return{'icon':(0x0,l[_0x2d0219(0x41b)])(s[_0x2d0219(0x34a)],{}),'colorClass':_0x2d0219(0x1e3),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':'static'};}}function ne(_0x7b67b){const _0x25fdf9=_0x437440;let {status$:_0x5a173a}=_0x7b67b,_0x245dc7=(0x0,r[_0x25fdf9(0x325)])(_0x5a173a,t[_0x25fdf9(0x361)][_0x25fdf9(0x229)]),_0x383f89=(0x0,r['useDependency'])(n[_0x25fdf9(0x2f3)]),_0xa32d89=(0x0,r[_0x25fdf9(0x237)])(t[_0x25fdf9(0x369)]),_0x3d84a1=(0x0,c[_0x25fdf9(0x175)])(()=>te(_0x245dc7),[_0x245dc7]),_0x44c7bd=_0x245dc7!==t['CollaborationStatus'][_0x25fdf9(0x2e2)],_0x31b15a=_0x383f89['t'](_0x3d84a1[_0x25fdf9(0x1e6)]),_0x5edd65=_0x3d84a1[_0x25fdf9(0x193)]?_0x383f89['t'](_0x3d84a1[_0x25fdf9(0x193)]):_0x31b15a,_0x44fd55=(0x0,c['useCallback'])(()=>{_0x44c7bd||_0xa32d89['reconnect']();},[_0x44c7bd,_0xa32d89]),_0x2c38af=(0x0,c[_0x25fdf9(0x25c)])(_0x295179=>{const _0xc5f015=_0x25fdf9;!_0x44c7bd&&(_0x295179[_0xc5f015(0x149)]==='Enter'||_0x295179[_0xc5f015(0x149)]==='\x20')&&(_0x295179['preventDefault'](),_0xa32d89[_0xc5f015(0x31b)]());},[_0x44c7bd,_0xa32d89]),_0x1e4e8f=(0x0,l[_0x25fdf9(0x41b)])(_0x25fdf9(0x3f5),{'className':(0x0,o[_0x25fdf9(0x2f2)])(_0x25fdf9(0x1ba),_0x25fdf9(0x2df),_0x3d84a1[_0x25fdf9(0x1ef)],{'univer-animate-spin':_0x3d84a1[_0x25fdf9(0x3c4)]===_0x25fdf9(0x162),'univer-animate-pulse':_0x3d84a1[_0x25fdf9(0x3c4)]===_0x25fdf9(0x3c3)}),'aria-hidden':_0x25fdf9(0x198),'children':_0x3d84a1[_0x25fdf9(0x2f6)]}),_0x2cad5b=(0x0,l['jsx'])(_0x25fdf9(0x3f5),{'className':(0x0,o[_0x25fdf9(0x2f2)])(_0x25fdf9(0x1ba),_0x25fdf9(0x37e),_0x25fdf9(0x370),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x3d84a1[_0x25fdf9(0x3e1)],'univer-cursor-default':!_0x3d84a1[_0x25fdf9(0x3e1)]}),'children':_0x1e4e8f});return _0x3d84a1[_0x25fdf9(0x3e1)]?(0x0,l[_0x25fdf9(0x41b)])(o[_0x25fdf9(0x32d)],{'title':_0x5edd65,'placement':_0x25fdf9(0x2e5),'children':(0x0,l[_0x25fdf9(0x41b)])(_0x25fdf9(0x1b0),{'type':'button','onClick':_0x44fd55,'onKeyDown':_0x2c38af,'className':(0x0,o[_0x25fdf9(0x2f2)])(_0x25fdf9(0x371),_0x25fdf9(0x2a6),_0x25fdf9(0x2bd),_0x25fdf9(0x3ef)),'aria-label':_0x31b15a+_0x25fdf9(0x26a)+_0x5edd65,'role':_0x25fdf9(0x15c),'aria-live':_0x25fdf9(0x20a),'aria-atomic':_0x25fdf9(0x198),'children':_0x2cad5b})}):(0x0,l[_0x25fdf9(0x41b)])(o['Tooltip'],{'title':_0x5edd65,'placement':'bottom','children':(0x0,l[_0x25fdf9(0x41b)])('div',{'className':(0x0,o[_0x25fdf9(0x2f2)])(_0x25fdf9(0x371),_0x25fdf9(0x2a6),'univer-m-0\x20univer-p-0'),'aria-label':_0x31b15a,'role':_0x25fdf9(0x15c),'aria-live':'polite','aria-atomic':_0x25fdf9(0x198),'children':_0x2cad5b})});}function b(_0x385f8b){'@babel/helpers - typeof';const _0x516847=_0x437440;return b=typeof Symbol==_0x516847(0x16b)&&typeof Symbol[_0x516847(0x389)]=='symbol'?function(_0x4a9828){return typeof _0x4a9828;}:function(_0x3298af){const _0x3a1176=_0x516847;return _0x3298af&&typeof Symbol=='function'&&_0x3298af[_0x3a1176(0x1a3)]===Symbol&&_0x3298af!==Symbol[_0x3a1176(0x30b)]?_0x3a1176(0x22b):typeof _0x3298af;},b(_0x385f8b);}function re(_0x383102,_0x4bc261){const _0x3ea65b=_0x437440;if(b(_0x383102)!=_0x3ea65b(0x415)||!_0x383102)return _0x383102;var _0x330e29=_0x383102[Symbol[_0x3ea65b(0x27e)]];if(_0x330e29!==void 0x0){var _0x1fcd9b=_0x330e29[_0x3ea65b(0x1db)](_0x383102,_0x4bc261||_0x3ea65b(0x185));if(b(_0x1fcd9b)!=_0x3ea65b(0x415))return _0x1fcd9b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4bc261==='string'?String:Number)(_0x383102);}function ie(_0x3f8508){const _0x2d2b22=_0x437440;var _0x2f937a=re(_0x3f8508,_0x2d2b22(0x3ea));return b(_0x2f937a)=='symbol'?_0x2f937a:_0x2f937a+'';}function x(_0x3661e4,_0x31865d,_0x28d208){return(_0x31865d=ie(_0x31865d))in _0x3661e4?Object['defineProperty'](_0x3661e4,_0x31865d,{'value':_0x28d208,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3661e4[_0x31865d]=_0x28d208,_0x3661e4;}function S(_0x145d57,_0x572a75){return function(_0x122f23,_0x4af403){_0x572a75(_0x122f23,_0x4af403,_0x145d57);};}function C(_0x33c80c,_0x4e809d,_0x5579bd,_0x12f210){const _0x2c0d85=_0x437440;var _0x257eec=arguments[_0x2c0d85(0x346)],_0x594e25=_0x257eec<0x3?_0x4e809d:_0x12f210===null?_0x12f210=Object['getOwnPropertyDescriptor'](_0x4e809d,_0x5579bd):_0x12f210,_0x5cbdc6;if(typeof Reflect==_0x2c0d85(0x415)&&typeof Reflect[_0x2c0d85(0x352)]==_0x2c0d85(0x16b))_0x594e25=Reflect[_0x2c0d85(0x352)](_0x33c80c,_0x4e809d,_0x5579bd,_0x12f210);else{for(var _0x58657b=_0x33c80c['length']-0x1;_0x58657b>=0x0;_0x58657b--)(_0x5cbdc6=_0x33c80c[_0x58657b])&&(_0x594e25=(_0x257eec<0x3?_0x5cbdc6(_0x594e25):_0x257eec>0x3?_0x5cbdc6(_0x4e809d,_0x5579bd,_0x594e25):_0x5cbdc6(_0x4e809d,_0x5579bd))||_0x594e25);}return _0x257eec>0x3&&_0x594e25&&Object['defineProperty'](_0x4e809d,_0x5579bd,_0x594e25),_0x594e25;}let w=class extends n[_0x437440(0x2d0)]{constructor(_0xe4f110,_0x8d6df6,_0x50be6d,_0x262fd5){const _0x401712=_0x437440;super(),this[_0x401712(0x3ff)]=_0xe4f110,this[_0x401712(0x323)]=_0x8d6df6,this[_0x401712(0x1d1)]=_0x50be6d,this[_0x401712(0x209)]=_0x262fd5,x(this,'_status$',new i[(_0x401712(0x2e8))](t[_0x401712(0x361)]['NOT_COLLAB'])),this[_0x401712(0x19c)](),this[_0x401712(0x1b8)]();}[_0x437440(0x1b8)](){const _0x2fedfd=_0x437440;this['disposeWithMe']((0x0,i[_0x2fedfd(0x2b5)])(this[_0x2fedfd(0x3ff)][_0x2fedfd(0x205)],this[_0x2fedfd(0x3ff)][_0x2fedfd(0x2b3)](n[_0x2fedfd(0x24a)][_0x2fedfd(0x2ef)]),this[_0x2fedfd(0x3ff)][_0x2fedfd(0x2b3)](n['UniverInstanceType']['UNIVER_SHEET']))[_0x2fedfd(0x1a8)]((0x0,a[_0x2fedfd(0x2c5)])(()=>ae(this[_0x2fedfd(0x3ff)])),(0x0,a[_0x2fedfd(0x3cb)])(),(0x0,i[_0x2fedfd(0x2cf)])(_0x56cd27=>_0x56cd27?this[_0x2fedfd(0x1d1)][_0x2fedfd(0x174)](_0x56cd27):(0x0,i['of'])(null)),(0x0,i[_0x2fedfd(0x2cf)])(_0x493c80=>_0x493c80?_0x493c80[_0x2fedfd(0x2e3)]:(0x0,i['of'])(t['CollaborationStatus'][_0x2fedfd(0x229)])))[_0x2fedfd(0x1d4)](_0x4e7dd6=>{const _0x4e3594=_0x2fedfd;this['_status$'][_0x4e3594(0x2ee)](_0x4e7dd6);}));}[_0x437440(0x19c)](){const _0x54f7b7=_0x437440;this[_0x54f7b7(0x2cb)](this[_0x54f7b7(0x209)]['registerComponent'](r[_0x54f7b7(0x402)][_0x54f7b7(0x182)],()=>(0x0,r['connectInjector'])(se({'status$':this['_status$']['asObservable']()}),this['_injector'])));}};w=C([S(0x0,n[_0x437440(0x22f)]),S(0x1,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x217)])),S(0x2,(0x0,n[_0x437440(0x16c)])(t[_0x437440(0x416)])),S(0x3,r['IUIPartsService'])],w);let T=class extends n[_0x437440(0x2d0)]{constructor(_0x82fff,_0x445af0,_0x419d76,_0x25abca){const _0x18ddbc=_0x437440;super(),this[_0x18ddbc(0x3ff)]=_0x82fff,this[_0x18ddbc(0x323)]=_0x445af0,this[_0x18ddbc(0x1d1)]=_0x419d76,this[_0x18ddbc(0x209)]=_0x25abca,x(this,_0x18ddbc(0x183),new i[(_0x18ddbc(0x2e8))](t[_0x18ddbc(0x361)][_0x18ddbc(0x229)])),this[_0x18ddbc(0x19c)](),this[_0x18ddbc(0x1b8)]();}[_0x437440(0x1b8)](){const _0x240224=_0x437440;this[_0x240224(0x2cb)]((0x0,i[_0x240224(0x2b5)])((0x0,i['of'])(null),this[_0x240224(0x3ff)]['getCurrentTypeOfUnit$'](n[_0x240224(0x24a)][_0x240224(0x2dc)]))[_0x240224(0x1a8)]((0x0,a[_0x240224(0x2c5)])(()=>oe(this['_univerInstanceService'])),(0x0,a[_0x240224(0x3cb)])(),(0x0,i[_0x240224(0x2cf)])(_0x31b976=>_0x31b976?this[_0x240224(0x1d1)][_0x240224(0x174)](_0x31b976):(0x0,i['of'])(null)),(0x0,i[_0x240224(0x2cf)])(_0x3af4a8=>_0x3af4a8?_0x3af4a8[_0x240224(0x2e3)]:(0x0,i['of'])(t[_0x240224(0x361)][_0x240224(0x229)])))[_0x240224(0x1d4)](_0x3679a7=>{const _0x2e096b=_0x240224;this[_0x2e096b(0x183)][_0x2e096b(0x2ee)](_0x3679a7);}));}['_initStatusComponent'](){const _0x3e00c8=_0x437440;this[_0x3e00c8(0x2cb)](this[_0x3e00c8(0x209)][_0x3e00c8(0x358)](e[_0x3e00c8(0x39f)],()=>(0x0,r[_0x3e00c8(0x26e)])(se({'status$':this[_0x3e00c8(0x183)][_0x3e00c8(0x3d1)]()}),this[_0x3e00c8(0x323)])));}};T=C([S(0x0,n[_0x437440(0x22f)]),S(0x1,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x217)])),S(0x2,(0x0,n[_0x437440(0x16c)])(t[_0x437440(0x416)])),S(0x3,r[_0x437440(0x340)])],T);function ae(_0x2f8ff7){const _0x33a4fb=_0x437440;let _0x1db65d=_0x2f8ff7[_0x33a4fb(0x3ec)](),_0x4e0685=_0x1db65d==null?void 0x0:_0x1db65d[_0x33a4fb(0x161)]();if(_0x4e0685&&!(0x0,n[_0x33a4fb(0x1dd)])(_0x4e0685))return _0x4e0685;let _0x5577d9=_0x2f8ff7['getCurrentUnitOfType'](n['UniverInstanceType'][_0x33a4fb(0x2ef)]),_0x87a27f=_0x5577d9==null?void 0x0:_0x5577d9[_0x33a4fb(0x161)]();if(_0x87a27f&&!(0x0,n['isInternalEditorID'])(_0x87a27f))return _0x87a27f;let _0x35648d=_0x2f8ff7[_0x33a4fb(0x3f3)](n['UniverInstanceType'][_0x33a4fb(0x29a)]);if(_0x35648d)return _0x35648d[_0x33a4fb(0x161)]();let _0xa96488=_0x2f8ff7[_0x33a4fb(0x333)](n[_0x33a4fb(0x24a)]['UNIVER_DOC'])[_0x33a4fb(0x3dd)](_0x4cd1d9=>!(0x0,n[_0x33a4fb(0x1dd)])(_0x4cd1d9[_0x33a4fb(0x161)]()));return _0xa96488?_0xa96488['getUnitId']():null;}function oe(_0x36e07f){const _0x4e0709=_0x437440;var _0x51298e;let _0x54f952=_0x36e07f['getCurrentUnitOfType'](n[_0x4e0709(0x24a)][_0x4e0709(0x2dc)]);return(_0x51298e=_0x54f952==null?void 0x0:_0x54f952[_0x4e0709(0x161)]())==null?null:_0x51298e;}function se(_0x392a4a){let {status$:_0x5107e2}=_0x392a4a;return function(){const _0x529e24=_0x30e6;return(0x0,l[_0x529e24(0x41b)])(ne,{'status$':_0x5107e2});};}var ce=_0x437440(0x33b),le=_0x437440(0x222);const ue={};let E=class extends n[_0x437440(0x157)]{constructor(_0x573ed,_0x41b153){const _0x57047d=_0x437440;super(),this['_docClipboardService']=_0x573ed,this['_imageIoService']=_0x41b153,this[_0x57047d(0x329)]();}[_0x437440(0x329)](){const _0x591ed7=_0x437440;let _0x9db968=this;this['disposeWithMe'](this[_0x591ed7(0x23e)][_0x591ed7(0x3f4)]({'onBeforePasteImage':async _0x549b3e=>{const _0x544919=_0x591ed7;let _0x5664fe=await _0x9db968['_imageIoService'][_0x544919(0x2b4)](_0x549b3e);return _0x5664fe?{'source':_0x5664fe['source'],'imageSourceType':_0x5664fe[_0x544919(0x23d)]}:null;}}));}};E=C([S(0x0,f[_0x437440(0x28a)]),S(0x1,n['IImageIoService'])],E);function de(_0xe2af16,_0x4776af){const _0x2a4550=_0x437440;_0xe2af16[_0x2a4550(0x272)](),_0xe2af16[_0x2a4550(0x155)]='bold\x2013px\x20Arial,\x20sans-serif';let _0x4fae21=_0xe2af16['measureText'](_0x4776af)[_0x2a4550(0x2b0)];return _0xe2af16[_0x2a4550(0x292)](),Math[_0x2a4550(0x284)](_0x4fae21+0x8,0xc8);}function fe(_0xb8fa86,_0x139068){const _0x2e8239=_0x437440;var _0x27ebfb,_0x1ddcd2,_0x5f02db;let {radius:_0x1480af,width:_0x211631,height:_0x570c6c}=_0x139068;_0x1480af=(_0x27ebfb=_0x1480af)==null?0x0:_0x27ebfb,_0x211631=(_0x1ddcd2=_0x211631)==null?0x1e:_0x1ddcd2,_0x570c6c=(_0x5f02db=_0x570c6c)==null?0x1e:_0x5f02db;let _0x149a20=0x0,_0x5060c5=0x0,_0x13fbba=0x0;_0x149a20=_0x5060c5=_0x13fbba=Math[_0x2e8239(0x284)](_0x1480af,_0x211631/0x2,_0x570c6c/0x2),_0xb8fa86['beginPath'](),_0xb8fa86[_0x2e8239(0x1b1)](_0x149a20,0x0),_0xb8fa86[_0x2e8239(0x1c9)](_0x211631-_0x5060c5,0x0),_0xb8fa86[_0x2e8239(0x17d)](_0x211631-_0x5060c5,_0x5060c5,_0x5060c5,Math['PI']*0x3/0x2,0x0,!0x1),_0xb8fa86[_0x2e8239(0x1c9)](_0x211631,_0x570c6c-_0x13fbba),_0xb8fa86[_0x2e8239(0x17d)](_0x211631-_0x13fbba,_0x570c6c-_0x13fbba,_0x13fbba,0x0,Math['PI']/0x2,!0x1),_0xb8fa86['lineTo'](0x0,_0x570c6c),_0xb8fa86[_0x2e8239(0x1c9)](0x0,_0x149a20),_0xb8fa86[_0x2e8239(0x17d)](_0x149a20,_0x149a20,_0x149a20,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xb8fa86[_0x2e8239(0x35f)](),_0x139068[_0x2e8239(0x18c)]&&(_0xb8fa86[_0x2e8239(0x272)](),_0xb8fa86[_0x2e8239(0x2aa)]=_0x139068[_0x2e8239(0x18c)],_0x139068['fillRule']==='evenodd'?_0xb8fa86['fill']('evenodd'):_0xb8fa86[_0x2e8239(0x18c)](),_0xb8fa86['restore']());}var D=class e extends u[_0x437440(0x38c)]{constructor(_0x57f0a1,_0x494cd1){const _0x3591ca=_0x437440;super(_0x57f0a1,_0x494cd1),x(this,_0x3591ca(0x404),void 0x0),x(this,_0x3591ca(0x1fb),void 0x0),this[_0x3591ca(0x404)]=_0x494cd1==null?void 0x0:_0x494cd1[_0x3591ca(0x404)],this['text']=_0x494cd1==null?void 0x0:_0x494cd1['text'];}static[_0x437440(0x19f)](_0x3249a4,_0x587afa){const _0x528858=_0x437440;let {text:_0x2894ab,color:_0x538695}=_0x587afa;_0x3249a4[_0x528858(0x272)](),_0x3249a4[_0x528858(0x155)]=_0x528858(0x40c);let _0x26b3f5=_0x3249a4[_0x528858(0x2d2)](_0x2894ab)[_0x528858(0x2b0)];if(fe(_0x3249a4,{'height':0x14,'radius':0x4,'width':de(_0x3249a4,_0x2894ab),'fill':_0x538695,'evented':!0x1}),_0x3249a4[_0x528858(0x2aa)]=_0x528858(0x32a),_0x26b3f5>0xc0){let _0x31de15='',_0x383d0b=0x0;for(let _0x4f6548 of _0x2894ab){let _0x49e38f=_0x3249a4[_0x528858(0x2d2)](_0x4f6548)[_0x528858(0x2b0)];if(_0x383d0b+_0x49e38f<=0xc0-_0x3249a4[_0x528858(0x2d2)](_0x528858(0x211))[_0x528858(0x2b0)])_0x31de15+=_0x4f6548,_0x383d0b+=_0x49e38f;else{_0x31de15+=_0x528858(0x211);break;}}_0x3249a4[_0x528858(0x3c7)](_0x31de15,0x4,0xf);}else _0x3249a4[_0x528858(0x3c7)](_0x2894ab,0x4,0xf);_0x3249a4[_0x528858(0x292)]();}['_draw'](_0x514aa4){const _0x3cf768=_0x437440;e[_0x3cf768(0x19f)](_0x514aa4,this);}};const O=0x138a;var pe=class extends u[_0x437440(0x38c)]{constructor(_0x1fb22d,_0x4de1d5){const _0x55e18d=_0x437440;super(_0x1fb22d,{..._0x4de1d5,'evented':!0x1}),x(this,_0x55e18d(0x342),'#4f46e5'),x(this,_0x55e18d(0x3a8),''),x(this,_0x55e18d(0x40e),!0x0),_0x4de1d5&&this[_0x55e18d(0x15e)](_0x4de1d5);}[_0x437440(0x15e)](_0x1df374){const _0x422235=_0x437440;var _0x174819,_0x4d638a,_0x6b0642,_0x1cb293,_0x1e774a,_0x2ee610,_0x172053,_0x235786;this[_0x422235(0x342)]=(_0x174819=_0x1df374[_0x422235(0x404)])==null?this[_0x422235(0x342)]:_0x174819,this['_name']=(_0x4d638a=_0x1df374['name'])==null?this[_0x422235(0x3a8)]:_0x4d638a,this[_0x422235(0x40e)]=(_0x6b0642=_0x1df374[_0x422235(0x387)])==null?this['_showText']:_0x6b0642,this[_0x422235(0x3c2)]=!0x1,this['transformByState']({'left':(_0x1cb293=_0x1df374[_0x422235(0x2e0)])==null?this[_0x422235(0x2e0)]:_0x1cb293,'top':(_0x1e774a=_0x1df374[_0x422235(0x21a)])==null?this['top']:_0x1e774a,'width':(_0x2ee610=_0x1df374['width'])==null?this[_0x422235(0x2b0)]:_0x2ee610,'height':(_0x172053=_0x1df374['height'])==null?this[_0x422235(0x362)]:_0x172053,'angle':(_0x235786=_0x1df374[_0x422235(0x3d6)])==null?this[_0x422235(0x3d6)]:_0x235786});}[_0x437440(0x3d4)](_0x58b83c){const _0xf650c1=_0x437440;_0x58b83c[_0xf650c1(0x272)](),_0x58b83c[_0xf650c1(0x285)]=this[_0xf650c1(0x342)],_0x58b83c[_0xf650c1(0x280)]=this[_0xf650c1(0x1d6)]||1.5,_0x58b83c[_0xf650c1(0x31a)]([0x6,0x4]),_0x58b83c['strokeRect'](0x0,0x0,this['width'],this['height']),_0x58b83c[_0xf650c1(0x292)](),this[_0xf650c1(0x40e)]&&(_0x58b83c['save'](),_0x58b83c[_0xf650c1(0x257)](0x1,0x0,0x0,0x1,this['width'],-0x14),D[_0xf650c1(0x19f)](_0x58b83c,{'text':this[_0xf650c1(0x3a8)],'color':this[_0xf650c1(0x342)]}),_0x58b83c[_0xf650c1(0x292)]());}};const me=[_0x437440(0x36b),_0x437440(0x35e),_0x437440(0x31d),'red.300',_0x437440(0x2f9),_0x437440(0x3a2)];var k=class extends n['Disposable']{constructor(..._0x1a82c3){const _0x4c68a9=_0x437440;super(..._0x1a82c3),x(this,_0x4c68a9(0x2ce),new Map()),x(this,_0x4c68a9(0x22c),0x0);}['assignAColorForMemberID'](_0x1967dd){const _0x100146=_0x437440;if(this[_0x100146(0x2ce)][_0x100146(0x15d)](_0x1967dd))return this['_assignedColors'][_0x100146(0x226)](_0x1967dd);let _0xd3eeaf=me[this[_0x100146(0x22c)]];return this[_0x100146(0x22c)]=(this['_colorIndex']+0x1)%me[_0x100146(0x346)],this['_assignedColors'][_0x100146(0x18b)](_0x1967dd,_0xd3eeaf),_0xd3eeaf;}};function he(_0x4a85f9){const _0x5def9c=_0x437440;let _0x553f31;try{_0x553f31=JSON['parse'](_0x4a85f9);}catch{return null;}if(typeof _0x553f31!=_0x5def9c(0x415)||!_0x553f31)return null;let _0x806bc5=_0x553f31;if(_0x806bc5[_0x5def9c(0x287)]!==_0x5def9c(0x14f)||typeof _0x806bc5['unitId']!=_0x5def9c(0x3ea)||typeof _0x806bc5[_0x5def9c(0x364)]!=_0x5def9c(0x3ea))return null;let _0x50e5ed=Array[_0x5def9c(0x3aa)](_0x806bc5[_0x5def9c(0x274)])?_0x806bc5[_0x5def9c(0x274)][_0x5def9c(0x277)](_0x226b74=>typeof _0x226b74==_0x5def9c(0x3ea)):[],_0x40b84a=typeof _0x806bc5[_0x5def9c(0x396)]==_0x5def9c(0x3ea)?_0x806bc5[_0x5def9c(0x396)]:null;return{'kind':_0x5def9c(0x14f),'unitId':_0x806bc5[_0x5def9c(0x1a1)],'subUnitId':_0x806bc5[_0x5def9c(0x364)],'selectedIds':_0x50e5ed,'focusedId':_0x40b84a};}let A=class extends n['RxDisposable']{get['cursorInfo'](){const _0x826aa7=_0x437440;return this['_cursorInfo$'][_0x826aa7(0x1ee)]();}get['roomMembers'](){const _0x56c666=_0x437440;return this['_roomMembers$'][_0x56c666(0x1ee)]();}constructor(_0x2b8f27,_0x8d058b,_0x3ad9e5,_0x2b2049,_0x31268d){const _0x131de9=_0x437440;super(),this[_0x131de9(0x2b7)]=_0x2b8f27,this[_0x131de9(0x3bd)]=_0x8d058b,this['_colorAssignService']=_0x3ad9e5,this[_0x131de9(0x1ed)]=_0x2b2049,this[_0x131de9(0x337)]=_0x31268d,x(this,'_online',!0x1),x(this,_0x131de9(0x329),!0x1),x(this,'_cursorInfo$',new i['BehaviorSubject'](new Map())),x(this,_0x131de9(0x332),this['_cursorInfo$'][_0x131de9(0x3d1)]()),x(this,_0x131de9(0x246),new i[(_0x131de9(0x2e8))]([])),x(this,'roomMembers$',this[_0x131de9(0x246)][_0x131de9(0x1a8)]((0x0,i[_0x131de9(0x261)])(0x12c))),x(this,'_updateLocalCursor',(0x0,n[_0x131de9(0x3b4)])(_0x4e5db7=>{const _0xdb9420=_0x131de9;let _0x137f8c=_0x4e5db7[_0xdb9420(0x41d)];if(!_0x137f8c||_0x137f8c['unitId']!==this[_0xdb9420(0x2b7)])return;let _0x1c902b={'kind':_0xdb9420(0x14f),'unitId':_0x137f8c[_0xdb9420(0x1a1)],'subUnitId':_0x137f8c[_0xdb9420(0x364)],'selectedIds':_0x4e5db7['selectedIds']['filter'](_0x237367=>typeof _0x237367==_0xdb9420(0x3ea)),'focusedId':_0x4e5db7[_0xdb9420(0x396)]},_0x35bdc5={'eventID':p[_0xdb9420(0x21f)][_0xdb9420(0x345)],'data':{'unitID':this[_0xdb9420(0x2b7)],'memberID':this['_session']['getMemberID'](),'selection':JSON[_0xdb9420(0x3ac)](_0x1c902b)}};this[_0xdb9420(0x3bd)][_0xdb9420(0x30c)](_0x35bdc5,this['unitID']);},0x64));}[_0x437440(0x1c5)](){const _0x2fd38a=_0x437440;super['dispose'](),this[_0x2fd38a(0x1f7)][_0x2fd38a(0x2ee)](new Map()),this[_0x2fd38a(0x1f7)][_0x2fd38a(0x3a0)](),this[_0x2fd38a(0x246)][_0x2fd38a(0x2ee)]([]),this[_0x2fd38a(0x246)][_0x2fd38a(0x3a0)]();}[_0x437440(0x378)](){const _0x565355=_0x437440;this['_init']||(this[_0x565355(0x329)]=!0x0,this[_0x565355(0x3bd)][_0x565355(0x3e2)][_0x565355(0x1a8)]((0x0,i[_0x565355(0x316)])(this[_0x565355(0x20f)]))[_0x565355(0x1d4)](_0x3a907a=>{const _0x35b220=_0x565355;_0x3a907a===t['SessionStatus'][_0x35b220(0x200)]?this[_0x35b220(0x28b)]():this[_0x35b220(0x15a)]();}),this[_0x565355(0x3bd)][_0x565355(0x2c4)][_0x565355(0x1a8)]((0x0,i[_0x565355(0x316)])(this[_0x565355(0x20f)]))[_0x565355(0x1d4)](_0x43c7cb=>{const _0x16ce80=_0x565355;let _0x492bf4=_0x43c7cb[_0x16ce80(0x2c2)];_0x492bf4===p[_0x16ce80(0x21f)][_0x16ce80(0x345)]&&this['_onCursorUpdate'](_0x43c7cb),_0x492bf4===p[_0x16ce80(0x21f)][_0x16ce80(0x321)]&&this[_0x16ce80(0x1b9)](_0x43c7cb);}),this[_0x565355(0x337)][_0x565355(0x2fb)][_0x565355(0x1a8)]((0x0,i[_0x565355(0x316)])(this['dispose$']))[_0x565355(0x1d4)](_0xb7a951=>{const _0x584c2a=_0x565355;this[_0x584c2a(0x191)]&&this[_0x584c2a(0x23c)](_0xb7a951);}));}[_0x437440(0x154)](_0x4c4aeb){const _0x558be1=_0x437440;var _0x1c746d,_0x498403,_0x347eb0,_0xc3aeee;let {memberID:_0x3daae4,selection:_0x115707}=_0x4c4aeb[_0x558be1(0x2a5)];if(_0x3daae4===((_0x1c746d=(_0x498403=this[_0x558be1(0x3bd)])[_0x558be1(0x39b)])==null?void 0x0:_0x1c746d[_0x558be1(0x1db)](_0x498403)))return;let _0x156bbe=he(_0x115707);if(!_0x156bbe||_0x156bbe[_0x558be1(0x1a1)]!==this['unitID'])return;let _0x4ad6d9=(_0x347eb0=(_0xc3aeee=this[_0x558be1(0x1ed)][_0x558be1(0x3f7)](this[_0x558be1(0x2b7)],_0x3daae4))==null?void 0x0:_0xc3aeee['name'])==null?_0x558be1(0x397):_0x347eb0,_0x2f69f2={'color':this['_colorAssignService'][_0x558be1(0x16f)](_0x3daae4),'name':_0x4ad6d9,'unitId':_0x156bbe[_0x558be1(0x1a1)],'subUnitId':_0x156bbe[_0x558be1(0x364)],'selectedIds':_0x156bbe[_0x558be1(0x274)],'focusedId':_0x156bbe[_0x558be1(0x396)],'selection':_0x115707},_0x27427e=new Map(this[_0x558be1(0x16e)]);_0x27427e[_0x558be1(0x18b)](_0x3daae4,_0x2f69f2),this[_0x558be1(0x1f7)]['next'](_0x27427e);}[_0x437440(0x1b9)](_0x336ff7){const _0x5f3696=_0x437440;let {memberID:_0x56925d}=_0x336ff7[_0x5f3696(0x2a5)],_0x31ee7a=new Map(this[_0x5f3696(0x16e)]);_0x31ee7a['delete'](_0x56925d),this[_0x5f3696(0x1f7)]['next'](_0x31ee7a);}[_0x437440(0x28b)](){const _0xa89701=_0x437440;this[_0xa89701(0x191)]=!0x0,this[_0xa89701(0x23c)](this['_boardElementStateService'][_0xa89701(0x18a)]());}[_0x437440(0x15a)](){const _0x3d0bdb=_0x437440;this[_0x3d0bdb(0x191)]=!0x1;}};A=C([S(0x2,(0x0,n[_0x437440(0x16c)])(k)),S(0x3,(0x0,n[_0x437440(0x16c)])(t[_0x437440(0x23a)])),S(0x4,(0x0,n[_0x437440(0x16c)])(e[_0x437440(0x35d)]))],A);function ge(_0x1a880c){let _0x5cb9cd='';for(let _0x53a6c1 of _0x1a880c){let {startOffset:_0x21d83d,endOffset:_0x4f42d3,isActive:_0x298271,rangeType:_0x49900e,segmentId:_0x5b0daf,segmentPage:_0x2350c9}=_0x53a6c1;_0x5cb9cd['length']&&(_0x5cb9cd+=','),_0x5cb9cd+=_0x21d83d+':'+_0x4f42d3+':'+(_0x298271?'1':'0')+':'+_0x49900e+':'+_0x5b0daf+':'+_0x2350c9;}return _0x5cb9cd;}function _e(_0x51feeb){const _0x540aed=_0x437440;let _0x132253=_0x51feeb[_0x540aed(0x2d6)](','),_0x424b61=[];for(let _0x1f1f4a of _0x132253){let [_0x5c84c5,_0x1c2793,_0x28fa53,_0x65a67e,_0x670379,_0x28c41e]=_0x1f1f4a[_0x540aed(0x2d6)](':');_0x424b61['push']({'startOffset':Number(_0x5c84c5),'endOffset':Number(_0x1c2793),'collapsed':_0x5c84c5===_0x1c2793,'isActive':_0x28fa53==='1','rangeType':_0x65a67e===n[_0x540aed(0x1fd)][_0x540aed(0x26d)]?n[_0x540aed(0x1fd)]['TEXT']:n['DOC_RANGE_TYPE'][_0x540aed(0x1a9)],'segmentId':typeof _0x670379==_0x540aed(0x3ea)?String(_0x670379):'','segmentPage':Number(_0x28c41e==null?-0x1:_0x28c41e)});}return _0x424b61[_0x540aed(0x197)](_0x6859ee=>_0x6859ee['isActive'])||(_0x424b61[0x0][_0x540aed(0x1df)]=!0x0),_0x424b61;}var j=class extends n[_0x437440(0x157)]{constructor(..._0x2cedc7){const _0x5a1e48=_0x437440;super(..._0x2cedc7),x(this,_0x5a1e48(0x1aa),new i[(_0x5a1e48(0x2e8))](null)),x(this,_0x5a1e48(0x2d1),this[_0x5a1e48(0x1aa)][_0x5a1e48(0x3d1)]());}[_0x437440(0x33e)](_0xc927f4){const _0x23fafa=_0x437440;let {unitID:_0x5d9cad,memberID:_0x2d4e21,textRanges:_0x2fc0e6}=_0xc927f4,_0x3afc2d=ge(_0x2fc0e6);if(_0x3afc2d==='')return;let _0x5d7938={'unitID':_0x5d9cad,'memberID':_0x2d4e21,'selection':_0x3afc2d};this[_0x23fafa(0x1aa)][_0x23fafa(0x2ee)](_0x5d7938);}};let M=class extends n[_0x437440(0x157)]{get[_0x437440(0x16e)](){const _0x246a4e=_0x437440;return this[_0x246a4e(0x1f7)][_0x246a4e(0x1ee)]();}get[_0x437440(0x214)](){const _0xc6fde3=_0x437440;return this['_roomMembers$'][_0xc6fde3(0x1ee)]();}constructor(_0x7506e0,_0x196596,_0x59f6e6,_0x45245b,_0x27691c,_0x33401e,_0x55f62b,_0x194018,_0x53feea){const _0x17a95d=_0x437440;super(),this[_0x17a95d(0x2b7)]=_0x7506e0,this[_0x17a95d(0x3bd)]=_0x196596,this[_0x17a95d(0x323)]=_0x59f6e6,this[_0x17a95d(0x319)]=_0x45245b,this[_0x17a95d(0x1ed)]=_0x27691c,this[_0x17a95d(0x401)]=_0x33401e,this[_0x17a95d(0x312)]=_0x55f62b,this[_0x17a95d(0x3ff)]=_0x194018,this['_commandService']=_0x53feea,x(this,'_online',!0x1),x(this,_0x17a95d(0x329),!0x1),x(this,_0x17a95d(0x1f7),new i[(_0x17a95d(0x2e8))](new Map())),x(this,_0x17a95d(0x332),this['_cursorInfo$'][_0x17a95d(0x3d1)]()),x(this,'_roomMembers$',new i['BehaviorSubject']([])),x(this,_0x17a95d(0x408),this[_0x17a95d(0x246)][_0x17a95d(0x1a8)]((0x0,i[_0x17a95d(0x261)])(0x12c))),x(this,'_updateLocalCursor',(0x0,n['debounce'])(_0x131791=>{const _0x5048cc=_0x17a95d;let _0x2b1139={'eventID':p['CollaborationEvent'][_0x5048cc(0x345)],'data':{'unitID':this[_0x5048cc(0x2b7)],'memberID':this['_session']['getMemberID'](),'selection':ge(_0x131791)}};this[_0x5048cc(0x3bd)][_0x5048cc(0x30c)](_0x2b1139,this[_0x5048cc(0x2b7)]);},0x64));}[_0x437440(0x1c5)](){const _0x2ba0a2=_0x437440;super[_0x2ba0a2(0x1c5)](),this[_0x2ba0a2(0x1f7)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x2ba0a2(0x246)][_0x2ba0a2(0x2ee)]([]),this[_0x2ba0a2(0x246)][_0x2ba0a2(0x3a0)]();}[_0x437440(0x378)](){const _0x2e8934=_0x437440;this['_init']||(this[_0x2e8934(0x329)]=!0x0,this[_0x2e8934(0x3bd)][_0x2e8934(0x3e2)]['pipe']((0x0,i[_0x2e8934(0x316)])(this['dispose$']))['subscribe'](_0x534b96=>{const _0x353474=_0x2e8934;_0x534b96===t['SessionStatus'][_0x353474(0x200)]?this['_toggleOnline']():this[_0x353474(0x15a)]();}),this[_0x2e8934(0x3bd)][_0x2e8934(0x2c4)][_0x2e8934(0x1a8)]((0x0,i[_0x2e8934(0x316)])(this[_0x2e8934(0x20f)]))[_0x2e8934(0x1d4)](_0x41cd42=>{const _0x355ee0=_0x2e8934;let _0x20aa3d=_0x41cd42['eventID'];_0x20aa3d===p[_0x355ee0(0x21f)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x41cd42),_0x20aa3d===p['CollaborationEvent'][_0x355ee0(0x321)]&&this[_0x355ee0(0x1b9)](_0x41cd42);}),this[_0x2e8934(0x2cb)](this[_0x2e8934(0x3f2)][_0x2e8934(0x264)](_0x3cf630=>{const _0x358688=_0x2e8934;let _0x1be786=_0x3cf630[_0x358688(0x367)];_0x1be786!=null&&this[_0x358688(0x191)]&&_0x3cf630['id']===m[_0x358688(0x1da)]['id']&&_0x1be786[_0x358688(0x1a1)]===this['unitID']&&_0x1be786['isEditing']===!0x1&&_0x1be786[_0x358688(0x359)][_0x358688(0x346)]>0x0&&this[_0x358688(0x23c)](_0x1be786[_0x358688(0x359)]);})),this[_0x2e8934(0x401)][_0x2e8934(0x2d1)]['pipe']((0x0,i[_0x2e8934(0x316)])(this['dispose$']))[_0x2e8934(0x1d4)](_0x3706f2=>{const _0x23a7a6=_0x2e8934;if((_0x3706f2==null?void 0x0:_0x3706f2[_0x23a7a6(0x2b7)])!==this['unitID'])return;let _0x169a15={'eventID':p[_0x23a7a6(0x21f)][_0x23a7a6(0x345)],'data':_0x3706f2};this['_onCursorUpdate'](_0x169a15);}),this['disposeWithMe'](this['_commandService'][_0x2e8934(0x264)](_0x3aa970=>{const _0x93aa4b=_0x2e8934;if(_0x3aa970[_0x93aa4b(0x367)]==null)return;let _0x3e9521=_0x3aa970[_0x93aa4b(0x367)];if(_0x3aa970['id']!==m[_0x93aa4b(0x3df)]['id']||_0x3e9521[_0x93aa4b(0x1a1)]!==this[_0x93aa4b(0x2b7)])return;let _0x114c0f={'id':'doc.mutation.rich-text-editing','params':_0x3e9521},_0x44612c=this[_0x93aa4b(0x16e)];for(let [_0x32cf72,_0x6cd02d]of _0x44612c){let _0x38a359={'id':_0x93aa4b(0x242),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x6cd02d[_0x93aa4b(0x359)]}},_0x3b0e65=this[_0x93aa4b(0x312)][_0x93aa4b(0x365)](_0x114c0f,_0x38a359,!0x1);if((0x0,p[_0x93aa4b(0x3ab)])(_0x3b0e65))throw _0x3b0e65[_0x93aa4b(0x196)];_0x44612c[_0x93aa4b(0x18b)](_0x32cf72,{..._0x6cd02d,'ranges':_0x3b0e65['m2Prime']['params'][_0x93aa4b(0x22e)]});}queueMicrotask(()=>{const _0x267d32=_0x93aa4b;this[_0x267d32(0x1f7)][_0x267d32(0x2ee)](_0x44612c);});})));}[_0x437440(0x154)](_0x44d5f1){const _0x11ff28=_0x437440;var _0x2779d7,_0x2d8304;let {memberID:_0x569fa6,selection:_0x408d07}=_0x44d5f1[_0x11ff28(0x2a5)],_0x2c18f1=_e(_0x408d07),_0xb0b7aa=(_0x2779d7=(_0x2d8304=this['_memberService'][_0x11ff28(0x3f7)](this['unitID'],_0x569fa6))==null?void 0x0:_0x2d8304[_0x11ff28(0x159)])==null?_0x11ff28(0x397):_0x2779d7,_0x3f6972={'color':this[_0x11ff28(0x319)]['assignAColorForMemberID'](_0x569fa6),'name':_0xb0b7aa,'ranges':_0x2c18f1},_0x2e5854=this[_0x11ff28(0x16e)];_0x2e5854['set'](_0x569fa6,_0x3f6972),this['_cursorInfo$']['next'](_0x2e5854);}[_0x437440(0x1b9)](_0x273db8){const _0x4a0fd4=_0x437440;let {memberID:_0x23cf11}=_0x273db8[_0x4a0fd4(0x2a5)],_0x19639e=this[_0x4a0fd4(0x16e)];_0x19639e['delete'](_0x23cf11),this['_cursorInfo$'][_0x4a0fd4(0x2ee)](_0x19639e);}[_0x437440(0x28b)](){const _0x5e4efc=_0x437440;var _0x2516d6;if(this['_online']=!0x0,((_0x2516d6=this[_0x5e4efc(0x3ff)][_0x5e4efc(0x3ec)]())==null?void 0x0:_0x2516d6['getUnitId']())!==this[_0x5e4efc(0x2b7)])return;let _0x2a7213=this['_injector'][_0x5e4efc(0x226)](m[_0x5e4efc(0x2e1)])['getDocRanges']();Array['isArray'](_0x2a7213)&&_0x2a7213[_0x5e4efc(0x346)]>0x0&&this[_0x5e4efc(0x23c)](_0x2a7213);}[_0x437440(0x15a)](){const _0x9c10ca=_0x437440;this[_0x9c10ca(0x191)]=!0x1;}};M=C([S(0x2,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x217)])),S(0x3,(0x0,n[_0x437440(0x16c)])(k)),S(0x4,(0x0,n[_0x437440(0x16c)])(t[_0x437440(0x23a)])),S(0x5,(0x0,n['Inject'])(j)),S(0x6,p[_0x437440(0x295)]),S(0x7,n['IUniverInstanceService']),S(0x8,n[_0x437440(0x310)])],M);const ve=()=>{let _0x42eaed=[],_0xb7c651=!0x1;return _0x5b24cb=>{_0x42eaed['push'](_0x5b24cb),_0xb7c651||(_0xb7c651=!0x0,setTimeout(()=>{const _0x202b98=_0x30e6;_0x42eaed[_0x202b98(0x2ac)](_0x4bd94d=>_0x4bd94d()),_0x42eaed=[],_0xb7c651=!0x1;}));};};let N=class extends n[_0x437440(0x157)]{get[_0x437440(0x16e)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x3e17e7=_0x437440;return this[_0x3e17e7(0x246)]['getValue']();}constructor(_0x2307f0,_0x36e1f8,_0x3e2019,_0x3cf4f8,_0x56aed0,_0x303b3a,_0x47ead4,_0x6ef751){const _0x41a174=_0x437440;super(),this[_0x41a174(0x2b7)]=_0x2307f0,this[_0x41a174(0x3bd)]=_0x36e1f8,this[_0x41a174(0x323)]=_0x3e2019,this[_0x41a174(0x319)]=_0x3cf4f8,this[_0x41a174(0x1ed)]=_0x56aed0,this[_0x41a174(0x3ff)]=_0x303b3a,this[_0x41a174(0x3f2)]=_0x47ead4,this[_0x41a174(0x20d)]=_0x6ef751,x(this,'_online',!0x1),x(this,_0x41a174(0x329),!0x1),x(this,_0x41a174(0x1f7),new i['BehaviorSubject'](new Map())),x(this,_0x41a174(0x332),this[_0x41a174(0x1f7)][_0x41a174(0x3d1)]()),x(this,_0x41a174(0x246),new i[(_0x41a174(0x2e8))]([])),x(this,_0x41a174(0x408),this[_0x41a174(0x246)][_0x41a174(0x1a8)]((0x0,i[_0x41a174(0x261)])(0x12c))),x(this,_0x41a174(0x23c),(0x0,n[_0x41a174(0x3b4)])((_0x48db94,_0x610345)=>{const _0x49e9ee=_0x41a174;let _0x525470={'eventID':p['CollaborationEvent'][_0x49e9ee(0x345)],'data':{'unitID':this[_0x49e9ee(0x2b7)],'memberID':this[_0x49e9ee(0x3bd)][_0x49e9ee(0x39b)](),'selection':(0x0,h[_0x49e9ee(0x17c)])(_0x48db94,_0x610345[_0x49e9ee(0x2f5)])}};this[_0x49e9ee(0x3bd)][_0x49e9ee(0x30c)](_0x525470,this[_0x49e9ee(0x2b7)]);},0x64));}[_0x437440(0x1c5)](){const _0x93a945=_0x437440;super[_0x93a945(0x1c5)](),this[_0x93a945(0x1f7)][_0x93a945(0x2ee)](new Map()),this['_cursorInfo$'][_0x93a945(0x3a0)](),this['_roomMembers$'][_0x93a945(0x2ee)]([]),this[_0x93a945(0x246)][_0x93a945(0x3a0)]();}['init'](){const _0x3c4554=_0x437440;this[_0x3c4554(0x329)]||(this[_0x3c4554(0x329)]=!0x0,this['_session']['sessionStatus$'][_0x3c4554(0x1a8)]((0x0,i[_0x3c4554(0x316)])(this[_0x3c4554(0x20f)]))['subscribe'](_0x5c7a01=>{const _0x8ee7cc=_0x3c4554;_0x5c7a01===t[_0x8ee7cc(0x34f)]['ONLINE']?this[_0x8ee7cc(0x28b)]():this[_0x8ee7cc(0x15a)]();}),this['_session']['event$']['pipe']((0x0,i[_0x3c4554(0x316)])(this['dispose$']))[_0x3c4554(0x1d4)](_0x2c3cc6=>{const _0x425a8b=_0x3c4554;let _0x4bf77b=_0x2c3cc6['eventID'];_0x4bf77b===p[_0x425a8b(0x21f)][_0x425a8b(0x345)]&&this[_0x425a8b(0x154)](_0x2c3cc6),_0x4bf77b===p[_0x425a8b(0x21f)][_0x425a8b(0x321)]&&this[_0x425a8b(0x1b9)](_0x2c3cc6);}),this[_0x3c4554(0x1b7)](),this['disposeWithMe'](this[_0x3c4554(0x3f2)][_0x3c4554(0x264)](_0x10535e=>{const _0x504de0=_0x3c4554;if(this['_online']&&_0x10535e['id']===g['SetSelectionsOperation']['id']&&_0x10535e[_0x504de0(0x367)][_0x504de0(0x1a1)]===this[_0x504de0(0x2b7)]){let _0x38fa41=_0x10535e[_0x504de0(0x367)];this[_0x504de0(0x23c)](_0x38fa41['subUnitId'],_0x38fa41['selections'][0x0]);}})));}[_0x437440(0x154)](_0x1e8f4e){const _0x18dd6a=_0x437440;var _0x543c70,_0x1260cd;let {memberID:_0x5e3bd0,selection:_0xcd87bc}=_0x1e8f4e[_0x18dd6a(0x2a5)],{sheetName:_0x577cce,range:_0x149a70}=(0x0,h[_0x18dd6a(0x403)])(_0xcd87bc),_0x230d40={'name':(_0x543c70=(_0x1260cd=this['_memberService']['getMember'](this[_0x18dd6a(0x2b7)],_0x5e3bd0))==null?void 0x0:_0x1260cd[_0x18dd6a(0x159)])==null?'Unknown\x20user':_0x543c70,'range':this[_0x18dd6a(0x373)](_0x577cce,_0x149a70),'sheetID':_0x577cce,'color':this[_0x18dd6a(0x319)][_0x18dd6a(0x16f)](_0x5e3bd0),'selection':_0xcd87bc},_0x46b309=this[_0x18dd6a(0x16e)];_0x46b309[_0x18dd6a(0x18b)](_0x5e3bd0,_0x230d40),this[_0x18dd6a(0x1f7)][_0x18dd6a(0x2ee)](_0x46b309);}['_onCursorDelete'](_0x4a41de){const _0x37c8d5=_0x437440;let {memberID:_0x57b07e}=_0x4a41de[_0x37c8d5(0x2a5)],_0x229156=this[_0x37c8d5(0x16e)];_0x229156[_0x37c8d5(0x244)](_0x57b07e),this[_0x37c8d5(0x1f7)][_0x37c8d5(0x2ee)](_0x229156);}['_getMergeRange'](_0x534698,_0x40f374){const _0x5ed7bc=_0x437440;var _0x480ee0;let _0x56f604=(_0x480ee0=this[_0x5ed7bc(0x3ff)][_0x5ed7bc(0x3e7)](this[_0x5ed7bc(0x2b7)]))==null||(_0x480ee0=_0x480ee0[_0x5ed7bc(0x1f0)](_0x534698))==null?void 0x0:_0x480ee0[_0x5ed7bc(0x225)]();return(_0x56f604==null?void 0x0:_0x56f604['find'](_0xd9a9f2=>n[_0x5ed7bc(0x1d9)][_0x5ed7bc(0x3be)](_0xd9a9f2,_0x40f374)))||_0x40f374;}[_0x437440(0x1b7)](){const _0x94a234=_0x437440;let _0x1bef5b=new n[(_0x94a234(0x3ba))](),_0x256064=ve(),_0x4791f5=()=>{const _0x4b8bdf=_0x94a234;_0x1bef5b[_0x4b8bdf(0x1c5)]();let _0x46c038=(_0x21b1ea,_0x28e65b,_0x1a7e24,_0x4ab918)=>{const _0x288782=_0x4b8bdf;let _0x375816=[];switch(_0x21b1ea['id']){case g[_0x288782(0x3a6)][_0x288782(0x31f)]:_0x375816=(0x0,g[_0x288782(0x409)])(_0x21b1ea,_0x4ab918);break;case g['EffectRefRangId'][_0x288782(0x19a)]:_0x375816=(0x0,g[_0x288782(0x150)])(_0x21b1ea,_0x4ab918);break;case g[_0x288782(0x3a6)][_0x288782(0x21e)]:_0x375816=(0x0,g['handleInsertCol'])(_0x21b1ea,_0x4ab918);break;case g[_0x288782(0x3a6)][_0x288782(0x3f9)]:_0x375816=(0x0,g[_0x288782(0x2a9)])(_0x21b1ea,_0x4ab918);break;case g[_0x288782(0x3a6)][_0x288782(0x304)]:_0x375816=(0x0,g[_0x288782(0x253)])(_0x21b1ea,_0x4ab918);break;case g[_0x288782(0x3a6)][_0x288782(0x34e)]:_0x375816=(0x0,g[_0x288782(0x1b4)])(_0x21b1ea,_0x4ab918);break;case g[_0x288782(0x3a6)][_0x288782(0x34b)]:_0x375816=(0x0,g[_0x288782(0x1a6)])(_0x21b1ea,_0x4ab918);break;case g[_0x288782(0x3a6)]['RemoveColCommandId']:_0x375816=(0x0,g[_0x288782(0x353)])(_0x21b1ea,_0x4ab918);break;case g[_0x288782(0x3a6)]['RemoveRowCommandId']:_0x375816=(0x0,g[_0x288782(0x249)])(_0x21b1ea,_0x4ab918);break;}let _0x3a3d8d=(0x0,g[_0x288782(0x254)])(_0x375816,_0x4ab918),_0x1dc128=this['cursorInfo'][_0x288782(0x226)](_0x28e65b);if(_0x1dc128&&_0x3a3d8d){let _0x1c0a88={..._0x1dc128,'range':_0x3a3d8d};this['cursorInfo'][_0x288782(0x18b)](_0x28e65b,_0x1c0a88),_0x256064(()=>{const _0x1cee53=_0x288782;let _0x510adf=this[_0x1cee53(0x20d)][_0x1cee53(0x3dc)](_0x3a3d8d,_0x5c6c64=>(_0x510adf[_0x1cee53(0x1c5)](),_0x46c038(_0x5c6c64,_0x28e65b,_0x1a7e24,_0x3a3d8d)));_0x1bef5b[_0x1cee53(0x243)](_0x510adf);});}return{'redos':[],'undos':[]};};this[_0x4b8bdf(0x16e)][_0x4b8bdf(0x2ac)]((_0x5437e4,_0x36c5d2)=>{const _0x2b278d=_0x4b8bdf;let {range:_0x3792d7,sheetID:_0x314a2e}=_0x5437e4,_0x4e447b=this[_0x2b278d(0x20d)][_0x2b278d(0x3dc)](_0x3792d7,_0x277df0=>(_0x4e447b['dispose'](),_0x46c038(_0x277df0,_0x36c5d2,_0x314a2e,_0x3792d7)));_0x1bef5b[_0x2b278d(0x243)](_0x4e447b);});};this[_0x94a234(0x2cb)]((0x0,n[_0x94a234(0x3c0)])(this[_0x94a234(0x1f7)][_0x94a234(0x1d4)](()=>{_0x4791f5();})));}[_0x437440(0x28b)](){const _0x569f77=_0x437440;var _0x439984,_0x5efbbd;if(this[_0x569f77(0x191)]=!0x0,((_0x439984=this[_0x569f77(0x3ff)][_0x569f77(0x3ec)]())==null?void 0x0:_0x439984[_0x569f77(0x161)]())!==this['unitID'])return;let _0x213857=(_0x5efbbd=this[_0x569f77(0x323)][_0x569f77(0x226)](g[_0x569f77(0x148)])[_0x569f77(0x2a1)]())==null?void 0x0:_0x5efbbd[0x0],_0x49e0a1=this['_univerInstanceService'][_0x569f77(0x3f3)](n[_0x569f77(0x24a)][_0x569f77(0x29a)])[_0x569f77(0x2a4)]();_0x213857&&_0x49e0a1&&this[_0x569f77(0x23c)](_0x49e0a1['getSheetId'](),_0x213857);}[_0x437440(0x15a)](){const _0x5e15ae=_0x437440;this[_0x5e15ae(0x191)]=!0x1;}};N=C([S(0x2,(0x0,n['Inject'])(n[_0x437440(0x217)])),S(0x3,(0x0,n[_0x437440(0x16c)])(k)),S(0x4,(0x0,n['Inject'])(t[_0x437440(0x23a)])),S(0x5,n[_0x437440(0x22f)]),S(0x6,n['ICommandService']),S(0x7,(0x0,n[_0x437440(0x16c)])(g[_0x437440(0x207)]))],N);function ye(_0x540c15){const _0x35b698=_0x437440;let _0xd5c1db;try{_0xd5c1db=JSON[_0x35b698(0x360)](_0x540c15);}catch{return null;}if(typeof _0xd5c1db!=_0x35b698(0x415)||!_0xd5c1db)return null;let _0xe76b43=_0xd5c1db;if(_0xe76b43[_0x35b698(0x287)]!==_0x35b698(0x39a)||typeof _0xe76b43[_0x35b698(0x1a1)]!=_0x35b698(0x3ea)||typeof _0xe76b43[_0x35b698(0x364)]!=_0x35b698(0x3ea))return null;let _0x38565b=Array[_0x35b698(0x3aa)](_0xe76b43[_0x35b698(0x274)])?_0xe76b43[_0x35b698(0x274)][_0x35b698(0x277)](_0x2f18a2=>typeof _0x2f18a2==_0x35b698(0x3ea)):[],_0xdedd4e=typeof _0xe76b43[_0x35b698(0x396)]==_0x35b698(0x3ea)?_0xe76b43[_0x35b698(0x396)]:null;return{'kind':_0x35b698(0x39a),'unitId':_0xe76b43[_0x35b698(0x1a1)],'subUnitId':_0xe76b43['subUnitId'],'selectedIds':_0x38565b,'focusedId':_0xdedd4e};}let P=class extends n[_0x437440(0x157)]{get['cursorInfo'](){const _0x274161=_0x437440;return this[_0x274161(0x1f7)][_0x274161(0x1ee)]();}get[_0x437440(0x214)](){const _0x58c854=_0x437440;return this['_roomMembers$'][_0x58c854(0x1ee)]();}constructor(_0xc5530b,_0x250da0,_0x1749bb,_0x3ab784,_0x19a64a){const _0x971b3f=_0x437440;super(),this[_0x971b3f(0x2b7)]=_0xc5530b,this[_0x971b3f(0x3bd)]=_0x250da0,this[_0x971b3f(0x319)]=_0x1749bb,this['_memberService']=_0x3ab784,this[_0x971b3f(0x26f)]=_0x19a64a,x(this,_0x971b3f(0x191),!0x1),x(this,_0x971b3f(0x329),!0x1),x(this,_0x971b3f(0x1f7),new i[(_0x971b3f(0x2e8))](new Map())),x(this,_0x971b3f(0x332),this[_0x971b3f(0x1f7)][_0x971b3f(0x3d1)]()),x(this,'_roomMembers$',new i['BehaviorSubject']([])),x(this,_0x971b3f(0x408),this[_0x971b3f(0x246)][_0x971b3f(0x1a8)]((0x0,i[_0x971b3f(0x261)])(0x12c))),x(this,_0x971b3f(0x23c),(0x0,n[_0x971b3f(0x3b4)])(_0xe19d31=>{const _0x5826de=_0x971b3f;let _0x45b0b2=_0xe19d31[_0x5826de(0x41d)];if(!_0x45b0b2||_0x45b0b2['unitId']!==this[_0x5826de(0x2b7)])return;let _0x15147d={'kind':_0x5826de(0x39a),'unitId':_0x45b0b2[_0x5826de(0x1a1)],'subUnitId':_0x45b0b2[_0x5826de(0x364)],'selectedIds':_0xe19d31[_0x5826de(0x274)]['filter'](_0x656d3=>typeof _0x656d3==_0x5826de(0x3ea)),'focusedId':_0xe19d31[_0x5826de(0x396)]},_0x5a5962={'eventID':p[_0x5826de(0x21f)][_0x5826de(0x345)],'data':{'unitID':this[_0x5826de(0x2b7)],'memberID':this[_0x5826de(0x3bd)]['getMemberID'](),'selection':JSON[_0x5826de(0x3ac)](_0x15147d)}};this[_0x5826de(0x3bd)][_0x5826de(0x30c)](_0x5a5962,this[_0x5826de(0x2b7)]);},0x64));}[_0x437440(0x1c5)](){const _0x2b170d=_0x437440;super[_0x2b170d(0x1c5)](),this[_0x2b170d(0x1f7)][_0x2b170d(0x2ee)](new Map()),this['_cursorInfo$'][_0x2b170d(0x3a0)](),this[_0x2b170d(0x246)][_0x2b170d(0x2ee)]([]),this['_roomMembers$']['complete']();}[_0x437440(0x378)](){const _0x28726a=_0x437440;this[_0x28726a(0x329)]||(this[_0x28726a(0x329)]=!0x0,this[_0x28726a(0x3bd)][_0x28726a(0x3e2)][_0x28726a(0x1a8)]((0x0,i[_0x28726a(0x316)])(this[_0x28726a(0x20f)]))[_0x28726a(0x1d4)](_0x219fa6=>{const _0x5df49c=_0x28726a;_0x219fa6===t[_0x5df49c(0x34f)]['ONLINE']?this['_toggleOnline']():this[_0x5df49c(0x15a)]();}),this['_session']['event$'][_0x28726a(0x1a8)]((0x0,i['takeUntil'])(this[_0x28726a(0x20f)]))[_0x28726a(0x1d4)](_0x2d5ca2=>{const _0x43279d=_0x28726a;let _0x1f4fc7=_0x2d5ca2[_0x43279d(0x2c2)];_0x1f4fc7===p['CollaborationEvent'][_0x43279d(0x345)]&&this[_0x43279d(0x154)](_0x2d5ca2),_0x1f4fc7===p[_0x43279d(0x21f)][_0x43279d(0x321)]&&this[_0x43279d(0x1b9)](_0x2d5ca2);}),this[_0x28726a(0x26f)][_0x28726a(0x2fb)]['pipe']((0x0,i[_0x28726a(0x316)])(this[_0x28726a(0x20f)]))[_0x28726a(0x1d4)](_0x33fd87=>{const _0x252f4e=_0x28726a;this[_0x252f4e(0x191)]&&this[_0x252f4e(0x23c)](_0x33fd87);}));}[_0x437440(0x154)](_0xa9f9a1){const _0x3565e4=_0x437440;var _0x59eae6,_0x4f0fc9,_0xa7f415,_0x1037dc;let {memberID:_0x5eb2d9,selection:_0x31e18e}=_0xa9f9a1[_0x3565e4(0x2a5)];if(_0x5eb2d9===((_0x59eae6=(_0x4f0fc9=this[_0x3565e4(0x3bd)])[_0x3565e4(0x39b)])==null?void 0x0:_0x59eae6['call'](_0x4f0fc9)))return;let _0xdfb9fd=ye(_0x31e18e);if(!_0xdfb9fd||_0xdfb9fd[_0x3565e4(0x1a1)]!==this[_0x3565e4(0x2b7)])return;let _0x3ee697=(_0xa7f415=(_0x1037dc=this[_0x3565e4(0x1ed)][_0x3565e4(0x3f7)](this[_0x3565e4(0x2b7)],_0x5eb2d9))==null?void 0x0:_0x1037dc['name'])==null?'Unknown\x20user':_0xa7f415,_0x3b659a={'color':this[_0x3565e4(0x319)]['assignAColorForMemberID'](_0x5eb2d9),'name':_0x3ee697,'unitId':_0xdfb9fd[_0x3565e4(0x1a1)],'subUnitId':_0xdfb9fd[_0x3565e4(0x364)],'selectedIds':_0xdfb9fd[_0x3565e4(0x274)],'focusedId':_0xdfb9fd[_0x3565e4(0x396)],'selection':_0x31e18e},_0x3e4462=new Map(this[_0x3565e4(0x16e)]);_0x3e4462['set'](_0x5eb2d9,_0x3b659a),this[_0x3565e4(0x1f7)][_0x3565e4(0x2ee)](_0x3e4462);}[_0x437440(0x1b9)](_0x2fb756){const _0x51becf=_0x437440;let {memberID:_0x4880f9}=_0x2fb756[_0x51becf(0x2a5)],_0x4d7b3c=new Map(this[_0x51becf(0x16e)]);_0x4d7b3c[_0x51becf(0x244)](_0x4880f9),this['_cursorInfo$'][_0x51becf(0x2ee)](_0x4d7b3c);}[_0x437440(0x28b)](){const _0x387c1=_0x437440;this['_online']=!0x0,this[_0x387c1(0x23c)](this[_0x387c1(0x26f)][_0x387c1(0x18a)]());}[_0x437440(0x15a)](){const _0x396074=_0x437440;this[_0x396074(0x191)]=!0x1;}};P=C([S(0x2,(0x0,n[_0x437440(0x16c)])(k)),S(0x3,(0x0,n[_0x437440(0x16c)])(t['MemberService'])),S(0x4,(0x0,n[_0x437440(0x16c)])(_['ISlideDrawingStateService']))],P);let F=class extends n[_0x437440(0x157)]{constructor(_0x2b8425,_0x5df2d7,_0x2f79d0){const _0x35e1fd=_0x437440;super(),this['_univerInstanceService']=_0x2b8425,this[_0x35e1fd(0x323)]=_0x5df2d7,this[_0x35e1fd(0x2fc)]=_0x2f79d0,x(this,'_entities',new Map()),x(this,_0x35e1fd(0x2b8),new i['Subject']()),this[_0x35e1fd(0x329)]();}[_0x437440(0x1c5)](){const _0x9d1349=_0x437440;super['dispose'](),this[_0x9d1349(0x2b8)][_0x9d1349(0x3a0)](),this['_entities'][_0x9d1349(0x2ac)](_0x57128a=>_0x57128a[_0x9d1349(0x1c5)]());}['getCollabCursors$'](_0x399816){const _0x32db1d=_0x437440;return this['_entities'][_0x32db1d(0x15d)](_0x399816)?this[_0x32db1d(0x1dc)]['get'](_0x399816)[_0x32db1d(0x332)]:this[_0x32db1d(0x2b8)][_0x32db1d(0x1a8)]((0x0,i[_0x32db1d(0x277)])(_0x29e41d=>_0x29e41d[_0x32db1d(0x2b7)]===_0x399816),(0x0,i[_0x32db1d(0x2cf)])(_0x184a93=>_0x184a93[_0x32db1d(0x332)]));}['_init'](){const _0x771b37=_0x437440;this[_0x771b37(0x3ff)][_0x771b37(0x1cb)](n[_0x771b37(0x24a)][_0x771b37(0x29a)])['pipe']((0x0,i[_0x771b37(0x316)])(this[_0x771b37(0x20f)]))[_0x771b37(0x1d4)](async _0x5af3a7=>{const _0x42330c=_0x771b37;let _0x3ba651=_0x5af3a7['unit'][_0x42330c(0x161)](),_0x13ee68=await this[_0x42330c(0x2bf)](_0x3ba651);this[_0x42330c(0x2b8)][_0x42330c(0x2ee)](_0x13ee68),this[_0x42330c(0x1dc)][_0x42330c(0x18b)](_0x3ba651,_0x13ee68);}),this[_0x771b37(0x3ff)][_0x771b37(0x1cb)](n[_0x771b37(0x24a)][_0x771b37(0x2ef)])['pipe']((0x0,i['takeUntil'])(this['dispose$']))[_0x771b37(0x1a8)]((0x0,i[_0x771b37(0x277)])(_0x15247e=>!_0x15247e[_0x771b37(0x386)]['getUnitId']()['startsWith']('__')))['subscribe'](async _0x5c2ecf=>{const _0x56bdab=_0x771b37;let {unit:_0x258029}=_0x5c2ecf,_0x3afcde=_0x258029[_0x56bdab(0x161)](),_0x40f586=await this[_0x56bdab(0x216)](_0x3afcde);this[_0x56bdab(0x2b8)][_0x56bdab(0x2ee)](_0x40f586),this[_0x56bdab(0x1dc)][_0x56bdab(0x18b)](_0x3afcde,_0x40f586);}),this[_0x771b37(0x3ff)][_0x771b37(0x1cb)](n[_0x771b37(0x24a)][_0x771b37(0x335)])['pipe']((0x0,i[_0x771b37(0x316)])(this['dispose$']))[_0x771b37(0x1d4)](async _0x289a80=>{const _0x1d4f2a=_0x771b37;let _0x5d182a=_0x289a80[_0x1d4f2a(0x386)][_0x1d4f2a(0x161)](),_0xde21b9=await this[_0x1d4f2a(0x260)](_0x5d182a);this[_0x1d4f2a(0x2b8)][_0x1d4f2a(0x2ee)](_0xde21b9),this[_0x1d4f2a(0x1dc)][_0x1d4f2a(0x18b)](_0x5d182a,_0xde21b9);}),this[_0x771b37(0x3ff)][_0x771b37(0x1cb)](n[_0x771b37(0x24a)][_0x771b37(0x2dc)])[_0x771b37(0x1a8)]((0x0,i[_0x771b37(0x316)])(this[_0x771b37(0x20f)]))[_0x771b37(0x1d4)](async _0x48d48c=>{const _0x983833=_0x771b37;let _0x4f7bad=_0x48d48c['unit'][_0x983833(0x161)](),_0x2c595e=await this[_0x983833(0x31e)](_0x4f7bad);this['_entityInit$']['next'](_0x2c595e),this[_0x983833(0x1dc)][_0x983833(0x18b)](_0x4f7bad,_0x2c595e);}),(0x0,i[_0x771b37(0x2b5)])(this[_0x771b37(0x3ff)][_0x771b37(0x24f)](n['UniverInstanceType'][_0x771b37(0x2ef)]),this[_0x771b37(0x3ff)][_0x771b37(0x24f)](n[_0x771b37(0x24a)]['UNIVER_SHEET']),this[_0x771b37(0x3ff)][_0x771b37(0x24f)](n['UniverInstanceType']['UNIVER_SLIDE']),this[_0x771b37(0x3ff)]['getTypeOfUnitDisposed$'](n[_0x771b37(0x24a)][_0x771b37(0x2dc)]))[_0x771b37(0x1a8)]((0x0,i[_0x771b37(0x316)])(this[_0x771b37(0x20f)]))['subscribe'](_0x4a6897=>{const _0x6687d4=_0x771b37;let _0x42e353=_0x4a6897[_0x6687d4(0x161)](),_0x119f99=this[_0x6687d4(0x1dc)][_0x6687d4(0x226)](_0x42e353);_0x119f99&&(_0x119f99[_0x6687d4(0x1c5)](),this[_0x6687d4(0x1dc)][_0x6687d4(0x244)](_0x42e353));});}async[_0x437440(0x2bf)](_0x215402){const _0xa57fee=_0x437440;let _0x5d7ada=await this[_0xa57fee(0x2fc)][_0xa57fee(0x320)](_0x215402),_0x18c3ab=this[_0xa57fee(0x323)][_0xa57fee(0x1ec)](N,_0x215402,_0x5d7ada);return _0x18c3ab[_0xa57fee(0x378)](),_0x18c3ab;}async[_0x437440(0x216)](_0x51de1e){const _0x10caf6=_0x437440;let _0xdd9527=await this['_collabSessionService']['requireSession'](_0x51de1e),_0x53d884=this['_injector'][_0x10caf6(0x1ec)](M,_0x51de1e,_0xdd9527);return _0x53d884[_0x10caf6(0x378)](),_0x53d884;}async['_startSlideCollabCursor'](_0x4433){const _0x40fea5=_0x437440;let _0x1a2a28=await this[_0x40fea5(0x2fc)]['requireSession'](_0x4433),_0x194a7a=this[_0x40fea5(0x323)][_0x40fea5(0x1ec)](P,_0x4433,_0x1a2a28);return _0x194a7a[_0x40fea5(0x378)](),_0x194a7a;}async[_0x437440(0x31e)](_0x354d7e){const _0x32caf4=_0x437440;let _0x3f922e=await this[_0x32caf4(0x2fc)][_0x32caf4(0x320)](_0x354d7e),_0x466170=this[_0x32caf4(0x323)]['createInstance'](A,_0x354d7e,_0x3f922e);return _0x466170['init'](),_0x466170;}};F=C([S(0x0,n[_0x437440(0x22f)]),S(0x1,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x217)])),S(0x2,(0x0,n[_0x437440(0x16c)])(t['CollaborationSessionService']))],F);let I=class extends n[_0x437440(0x157)]{constructor(_0x5a6827,_0x50b185,_0x2c044b){const _0x53ce5e=_0x437440;super(),this[_0x53ce5e(0x176)]=_0x5a6827,this[_0x53ce5e(0x30e)]=_0x50b185,this[_0x53ce5e(0x32e)]=_0x2c044b,x(this,_0x53ce5e(0x3fa),new Set()),x(this,_0x53ce5e(0x407),!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,_0x53ce5e(0x366),new Map()),this[_0x53ce5e(0x329)]();}[_0x437440(0x1c5)](){const _0x1b546a=_0x437440;this['_removeCollabCursors'](),super[_0x1b546a(0x1c5)]();}[_0x437440(0x329)](){const _0x24162f=_0x437440;let _0x3657ad=this[_0x24162f(0x30e)][_0x24162f(0x34d)](this[_0x24162f(0x176)][_0x24162f(0x1a1)]);this['disposeWithMe']((0x0,n[_0x24162f(0x3c0)])((0x0,i['combineLatest'])([_0x3657ad,this[_0x24162f(0x176)][_0x24162f(0x386)][_0x24162f(0x390)],this[_0x24162f(0x32e)][_0x24162f(0x343)]])[_0x24162f(0x1a8)]((0x0,i[_0x24162f(0x316)])(this[_0x24162f(0x20f)]))[_0x24162f(0x1d4)](([_0x22af89])=>{const _0x1e19c5=_0x24162f;let _0x133a72=this[_0x1e19c5(0x176)]['unit']['getActivePageId'](),_0x461a32=new Map();_0x22af89['forEach']((_0xf66cbe,_0xd636aa)=>{const _0x1a3d7b=_0x1e19c5;_0xf66cbe[_0x1a3d7b(0x364)]===_0x133a72&&_0x461a32[_0x1a3d7b(0x18b)](_0xd636aa,{..._0xf66cbe,'color':this[_0x1a3d7b(0x32e)][_0x1a3d7b(0x2f1)](_0xf66cbe[_0x1a3d7b(0x404)])});}),this[_0x1e19c5(0x366)]=_0x461a32,this[_0x1e19c5(0x3c6)]();})));let _0x55f469=this[_0x24162f(0x176)]['scene'];this['disposeWithMe']((0x0,n['toDisposable'])(_0x55f469[_0x24162f(0x1bc)][_0x24162f(0x1a8)]((0x0,i[_0x24162f(0x316)])(this[_0x24162f(0x20f)]))['subscribe'](()=>{const _0x1ce065=_0x24162f;this['_isApplyingOverlays']||this[_0x1ce065(0x3c6)]();})));}[_0x437440(0x3c6)](){const _0x487a4b=_0x437440;this[_0x487a4b(0x407)]||(this['_renderScheduled']=!0x0,Promise['resolve']()[_0x487a4b(0x1e7)](()=>{const _0x32752c=_0x487a4b;this[_0x32752c(0x407)]=!0x1,this['_render']();}));}[_0x437440(0x2cc)](){const _0x2b6e56=_0x437440;this[_0x2b6e56(0x263)]();let _0x105f38=this[_0x2b6e56(0x176)][_0x2b6e56(0x386)][_0x2b6e56(0x22d)](),_0x25ab23=[];if(this[_0x2b6e56(0x366)][_0x2b6e56(0x2ac)]((_0x1af9c9,_0x300de7)=>{const _0x39e8bb=_0x2b6e56;_0x1af9c9[_0x39e8bb(0x364)]===_0x105f38&&_0x1af9c9[_0x39e8bb(0x274)][_0x39e8bb(0x2ac)](_0x1b9165=>{const _0x3ea263=_0x39e8bb;let _0x454be5=(0x0,e[_0x3ea263(0x231)])(_0x1af9c9['unitId'],_0x1b9165),_0x38f7c2=this[_0x3ea263(0x299)](_0x454be5);if(!_0x38f7c2)return;let _0x489b86=this['_getObjectBounds'](_0x38f7c2);_0x25ab23[_0x3ea263(0x3da)](new pe('board-collab-cursor-'+_0x300de7+'-'+_0x1b9165,{..._0x1af9c9,'left':_0x489b86[_0x3ea263(0x2e0)],'top':_0x489b86[_0x3ea263(0x21a)],'width':_0x489b86[_0x3ea263(0x2b0)],'height':_0x489b86[_0x3ea263(0x362)],'angle':_0x38f7c2[_0x3ea263(0x3d6)],'evented':!0x1,'zIndex':O}));});}),_0x25ab23[_0x2b6e56(0x346)]===0x0){this[_0x2b6e56(0x176)][_0x2b6e56(0x339)][_0x2b6e56(0x224)](!0x0);return;}this[_0x2b6e56(0x3d9)]=!0x0,this['_context'][_0x2b6e56(0x339)][_0x2b6e56(0x32b)](_0x25ab23,O),this[_0x2b6e56(0x3d9)]=!0x1,this['_cursors']=new Set(_0x25ab23),this['_context'][_0x2b6e56(0x339)][_0x2b6e56(0x224)](!0x0);}[_0x437440(0x263)](){const _0x58a211=_0x437440;let _0x6d4e5e=Array[_0x58a211(0x167)](this[_0x58a211(0x3fa)]);if(_0x6d4e5e[_0x58a211(0x346)]===0x0)return;let _0x238866=this[_0x58a211(0x176)][_0x58a211(0x339)];_0x58a211(0x3ed)in _0x238866&&typeof _0x238866[_0x58a211(0x3ed)]==_0x58a211(0x16b)?_0x238866[_0x58a211(0x3ed)](_0x6d4e5e):_0x6d4e5e['forEach'](_0x58be29=>{const _0x303176=_0x58a211;_0x303176(0x2b9)in _0x238866&&typeof _0x238866[_0x303176(0x2b9)]==_0x303176(0x16b)?_0x238866[_0x303176(0x2b9)](_0x58be29):_0x58be29[_0x303176(0x1c5)]();}),this[_0x58a211(0x3fa)][_0x58a211(0x204)](),_0x238866[_0x58a211(0x224)](!0x0);}['_getSceneObjectByKey'](_0x889fbd){const _0x891a58=_0x437440;var _0x51b8cf,_0x13ef71,_0x287786;let _0x514ebe=this[_0x891a58(0x176)][_0x891a58(0x339)];return(_0x51b8cf=(_0x13ef71=(_0x287786=_0x514ebe[_0x891a58(0x34c)])==null?void 0x0:_0x287786['call'](_0x514ebe,_0x889fbd))==null?_0x514ebe[_0x891a58(0x2d4)](_0x889fbd):_0x13ef71)==null?null:_0x51b8cf;}[_0x437440(0x302)](_0x390068){const _0x8b4ef9=_0x437440;var _0x909f65,_0x5789ec;let _0x53477a=_0x390068;return(_0x909f65=(_0x5789ec=_0x53477a[_0x8b4ef9(0x30d)])==null?void 0x0:_0x5789ec['call'](_0x53477a))==null?{'left':_0x390068['left'],'top':_0x390068[_0x8b4ef9(0x21a)],'width':_0x390068[_0x8b4ef9(0x2b0)],'height':_0x390068[_0x8b4ef9(0x362)]}:_0x909f65;}};I=C([S(0x1,(0x0,n[_0x437440(0x16c)])(F)),S(0x2,(0x0,n[_0x437440(0x16c)])(n['ThemeService']))],I);const L='collab-text-anchor-';var be=class{constructor(_0x5215f7,_0x25d55e,_0x1c4e20,_0x164527){const _0x3cf667=_0x437440;this['_cursor']=_0x5215f7,this['_scene']=_0x25d55e,this[_0x3cf667(0x1bb)]=_0x1c4e20,this[_0x3cf667(0x384)]=_0x164527,x(this,_0x3cf667(0x220),[]),x(this,'_anchor',null),x(this,_0x3cf667(0x2ed),null),x(this,_0x3cf667(0x290),null),x(this,_0x3cf667(0x3b6),null),x(this,'_eventUnsubscribe',null),this[_0x3cf667(0x2cc)]();}set[_0x437440(0x3eb)](_0x5e256a){const _0x180cad=_0x437440;_0x5e256a?(this[_0x180cad(0x290)]&&this[_0x180cad(0x290)][_0x180cad(0x195)](),this['_textBubble']&&this[_0x180cad(0x2ed)][_0x180cad(0x234)]()):(this[_0x180cad(0x290)]&&this[_0x180cad(0x290)][_0x180cad(0x234)](),this[_0x180cad(0x2ed)]&&this['_textBubble'][_0x180cad(0x195)]());}['dispose'](){const _0x5d68c5=_0x437440;for(let _0x3e0a02 of this[_0x5d68c5(0x220)])_0x3e0a02[_0x5d68c5(0x1c5)]();this[_0x5d68c5(0x2ed)]&&this[_0x5d68c5(0x2ed)][_0x5d68c5(0x1c5)](),this[_0x5d68c5(0x290)]&&this[_0x5d68c5(0x290)][_0x5d68c5(0x1c5)](),this[_0x5d68c5(0x35c)]&&this[_0x5d68c5(0x35c)][_0x5d68c5(0x1c5)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x1eb75e=_0x437440;let {_docSkeleton:_0x272306,_document:_0x2d78ff}=this,{color:_0x336c5e,name:_0x4de518,ranges:_0x10559b}=this['_cursor'],_0xdf67a8=_0x2d78ff[_0x1eb75e(0x1d3)](),{docsLeft:_0x52f79a,docsTop:_0x2fac2f}=_0xdf67a8,_0x2cb5d5=new f['NodePositionConvertToCursor'](_0xdf67a8,_0x272306);for(let {startOffset:_0x3767ea,endOffset:_0x4df9d8,rangeType:_0x5819b4,segmentId:_0x3e3c18,segmentPage:_0x17ddf9,collapsed:_0x42a69e,isActive:_0x18e5a6}of _0x10559b){let _0x4152e6=_0x272306[_0x1eb75e(0x164)](_0x3767ea,!0x0,_0x3e3c18,_0x17ddf9),_0x5177dc=_0x272306[_0x1eb75e(0x164)](_0x4df9d8,!0x0,_0x3e3c18,_0x17ddf9);if(_0x5177dc==null&&(_0x5177dc=_0x272306[_0x1eb75e(0x164)](_0x4df9d8-0x1,!0x1,_0x3e3c18,_0x17ddf9)),_0x18e5a6){let {contentBoxPointGroup:_0x29579c}=_0x2cb5d5['getRangePointData'](_0x5177dc,_0x5177dc);if(_0x29579c[_0x1eb75e(0x346)]===0x0)continue;this['_drawAnchor'](_0x336c5e,_0x29579c,_0x52f79a,_0x2fac2f,_0x4de518),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x4152e6&&_0x5177dc){if(_0x5819b4===n[_0x1eb75e(0x1fd)][_0x1eb75e(0x1a9)]){var _0x22265c;let {pointGroup:_0x46c6da}=(_0x22265c=new f[(_0x1eb75e(0x2ec))](_0xdf67a8,_0x272306)[_0x1eb75e(0x293)](_0x4152e6,_0x5177dc))==null?{}:_0x22265c;if(_0x46c6da==null||_0x46c6da[_0x1eb75e(0x346)]===0x0)continue;this[_0x1eb75e(0x172)](_0x336c5e,_0x46c6da,_0x52f79a,_0x2fac2f);}else{if(!_0x42a69e){let {borderBoxPointGroup:_0x59b4f2}=_0x2cb5d5[_0x1eb75e(0x293)](_0x4152e6,_0x5177dc);if(_0x59b4f2['length']===0x0)continue;this[_0x1eb75e(0x14a)](_0x336c5e,_0x59b4f2,_0x52f79a,_0x2fac2f);}}}}}[_0x437440(0x28c)](_0xc3a940,_0x2ae0e2,_0xc1b0c8,_0x20e969,_0x407ae5){const _0x211b35=_0x437440;let {left:_0x44f232,top:_0x17be24,height:_0x15e270}=this[_0x211b35(0x236)](_0x2ae0e2),_0x2e418e=1.5/this['_getScale'](),_0x3436bc=new u[(_0x211b35(0x3b9))](L+(0x0,n[_0x211b35(0x400)])(0x6),{'left':_0x44f232+_0xc1b0c8-_0x2e418e,'top':_0x17be24+_0x20e969,'height':_0x15e270,'width':1.5,'fill':_0xc3a940||(0x0,u['getColor'])(n[_0x211b35(0x296)][_0x211b35(0x3a4)],0x0),'strokeWidth':_0x2e418e,'stroke':_0x211b35(0x40f),'evented':!0x0});this[_0x211b35(0x35c)]=_0x3436bc,this[_0x211b35(0x1c4)][_0x211b35(0x2de)](_0x3436bc,f[_0x211b35(0x192)]);let _0x1feede=new u[(_0x211b35(0x3b9))](L+(0x0,n[_0x211b35(0x400)])(0x6),{'left':_0x44f232+_0xc1b0c8-_0x2e418e,'top':_0x17be24+_0x20e969-0x4/0x2,'height':0x4,'width':0x4,'fill':_0xc3a940||(0x0,u[_0x211b35(0x158)])(n[_0x211b35(0x296)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xc3a940||(0x0,u[_0x211b35(0x158)])(n[_0x211b35(0x296)]['black'],0x0),'evented':!0x1});this[_0x211b35(0x290)]=_0x1feede,this[_0x211b35(0x1c4)]['addObject'](_0x1feede,f['TEXT_RANGE_LAYER_INDEX']);let _0x318a86=new D(L+(0x0,n[_0x211b35(0x400)])(0x6),{'left':_0x44f232+_0xc1b0c8-_0x2e418e,'top':_0x17be24+_0x20e969-0x14,'text':_0x407ae5,'color':_0xc3a940});this['_textBubble']=_0x318a86,this[_0x211b35(0x1c4)][_0x211b35(0x2de)](_0x318a86,f[_0x211b35(0x192)]),this['_hover']=!0x1;}['_handleHover'](){const _0x58230a=_0x437440;let _0xbe5ba3=this[_0x58230a(0x35c)][_0x58230a(0x379)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x5c3e00=this[_0x58230a(0x35c)]['onPointerLeave$'][_0x58230a(0x24d)](()=>{const _0x515161=_0x58230a;this[_0x515161(0x3b6)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0xfece0f=_0x515161;this[_0xfece0f(0x3eb)]=!0x1;},0x7d0);});return()=>{const _0x2014f1=_0x58230a;_0xbe5ba3[_0x2014f1(0x219)](),_0x5c3e00['unsubscribe']();};}['_drawTextRange'](_0x2b1d27,_0x17fb7a,_0x1ea8f3,_0x87ccd0){const _0x38c995=_0x437440;let _0x5cf4b4=0.2,_0x51145c=new n[(_0x38c995(0x262))](_0x2b1d27)[_0x38c995(0x3a3)](_0x5cf4b4)[_0x38c995(0x410)](),_0x309af0=new u[(_0x38c995(0x181))](_0x38c995(0x239)+(0x0,n[_0x38c995(0x400)])(0x6),{'pointsGroup':_0x17fb7a,'fill':_0x51145c||(0x0,u[_0x38c995(0x158)])(n['COLORS']['black'],_0x5cf4b4),'left':_0x1ea8f3,'top':_0x87ccd0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x38c995(0x220)][_0x38c995(0x3da)](_0x309af0),this['_scene'][_0x38c995(0x2de)](_0x309af0,f[_0x38c995(0x192)]);}['_drawRectRange'](_0x16d45e,_0x5125af,_0x458549,_0x275fe5){const _0x56ed7a=_0x437440;let _0x5c9ed0=0.2,_0x4644c8=new n[(_0x56ed7a(0x262))](_0x16d45e)[_0x56ed7a(0x3a3)](_0x5c9ed0)['toRgbString'](),_0x39a811=new u[(_0x56ed7a(0x181))](_0x56ed7a(0x1af)+(0x0,n['generateRandomId'])(0x6),{'pointsGroup':_0x5125af,'fill':_0x4644c8||(0x0,u[_0x56ed7a(0x158)])(n[_0x56ed7a(0x296)][_0x56ed7a(0x3a4)],_0x5c9ed0),'left':_0x458549,'top':_0x275fe5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x56ed7a(0x220)]['push'](_0x39a811),this[_0x56ed7a(0x1c4)][_0x56ed7a(0x2de)](_0x39a811,f[_0x56ed7a(0x192)]);}[_0x437440(0x236)](_0x4e0ed2){let _0x325c77=_0x4e0ed2[0x0],_0x3f32b5=_0x325c77[0x0],_0x31af01=_0x325c77[0x2],{x:_0x3c4bda,y:_0x4d958b}=_0x3f32b5,{x:_0x4f69ce,y:_0x34c954}=_0x31af01;return{'left':_0x3c4bda,'top':_0x4d958b,'width':_0x4f69ce-_0x3c4bda,'height':_0x34c954-_0x4d958b};}[_0x437440(0x26b)](){const _0x1ee9c4=_0x437440;let {scaleX:_0x1671e0,scaleY:_0x247819}=this['_scene'][_0x1ee9c4(0x238)]();return Math[_0x1ee9c4(0x245)](_0x1671e0,_0x247819);}};let R=class extends n[_0x437440(0x157)]{constructor(_0x1bfc92,_0x46626c,_0x4586fd,_0x1117e0,_0x40f1a0){const _0x4f84b6=_0x437440;super(),this[_0x4f84b6(0x176)]=_0x1bfc92,this[_0x4f84b6(0x3cd)]=_0x46626c,this['_collabCursorController']=_0x4586fd,this[_0x4f84b6(0x3f2)]=_0x1117e0,this[_0x4f84b6(0x32e)]=_0x40f1a0,x(this,_0x4f84b6(0x3af),[]),x(this,_0x4f84b6(0x3fa),[]),this['_init']();}[_0x437440(0x329)](){const _0x6d59ea=_0x437440;let _0x3f2605=this[_0x6d59ea(0x176)]['unitId'],_0x58c58e=this['_docSkeletonManagerService'];this[_0x6d59ea(0x2cb)]((0x0,i[_0x6d59ea(0x1e9)])([this[_0x6d59ea(0x30e)][_0x6d59ea(0x34d)](_0x3f2605),this['_themeService'][_0x6d59ea(0x343)]])[_0x6d59ea(0x1a8)]((0x0,a[_0x6d59ea(0x2c5)])(([_0x2677f6,_0x44ea74])=>({'skeleton':_0x58c58e[_0x6d59ea(0x322)](),'cursors':[..._0x2677f6[_0x6d59ea(0x300)]()][_0x6d59ea(0x1c1)](_0x472321=>({..._0x472321,'color':this['_themeService'][_0x6d59ea(0x2f1)](_0x472321[_0x6d59ea(0x404)])}))})))[_0x6d59ea(0x1d4)](_0x1eb682=>{const _0x1d0bd0=_0x6d59ea;if(this[_0x1d0bd0(0x263)](),_0x1eb682){let {skeleton:_0xca860,cursors:_0x3c764e}=_0x1eb682;this[_0x1d0bd0(0x3e9)](_0xca860,_0x3c764e);}})),this[_0x6d59ea(0x269)](),this['_initCommandExecutedListener']();}[_0x437440(0x3e9)](_0x115c8a,_0x34a389){const _0x6de0b4=_0x437440;let {scene:_0x231c5e,mainComponent:_0x66791a}=this[_0x6de0b4(0x176)],_0x3beb26=_0x34a389[_0x6de0b4(0x2c5)](_0x5114d1=>new be(_0x5114d1,_0x231c5e,_0x115c8a,_0x66791a));this[_0x6de0b4(0x3af)]=_0x3beb26,this['_cursors']=_0x34a389;}[_0x437440(0x391)](){const _0xc8ce10=_0x437440;this[_0xc8ce10(0x263)]();let {scene:_0x187b90,mainComponent:_0x4175fc}=this[_0xc8ce10(0x176)],_0x4db070=this[_0xc8ce10(0x3cd)][_0xc8ce10(0x322)](),_0x493783=this[_0xc8ce10(0x3fa)][_0xc8ce10(0x2c5)](_0x4cc98d=>new be(_0x4cc98d,_0x187b90,_0x4db070,_0x4175fc));this['_cursorShapes']=_0x493783;}[_0x437440(0x263)](){const _0x1f76d3=_0x437440;this[_0x1f76d3(0x3af)][_0x1f76d3(0x2ac)](_0x32b2ca=>_0x32b2ca[_0x1f76d3(0x1c5)]()),this[_0x1f76d3(0x3af)]=[];}[_0x437440(0x2f4)](){const _0x164184=_0x437440;let _0x34175b=[f['SetDocZoomRatioOperation']['id']];this[_0x164184(0x2cb)](this['_commandService'][_0x164184(0x264)](_0x189656=>{const _0x560323=_0x164184;_0x34175b[_0x560323(0x2be)](_0x189656['id'])&&_0x189656[_0x560323(0x367)]['unitId']===this['_context'][_0x560323(0x1a1)]&&this[_0x560323(0x391)]();}));}[_0x437440(0x269)](){const _0x585266=_0x437440;this[_0x585266(0x2cb)]((0x0,n[_0x585266(0x40a)])(this[_0x585266(0x176)][_0x585266(0x2d7)][_0x585266(0x2cd)])[_0x585266(0x1a8)]((0x0,a[_0x585266(0x277)])(_0x4ed39f=>_0x4ed39f[_0x585266(0x349)]===u['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x585266(0x3f1)]),(0x0,a['throttleTime'])(0x10))['subscribe'](()=>{const _0x1e7b28=_0x585266;this[_0x1e7b28(0x391)]();}));}};R=C([S(0x1,(0x0,n['Inject'])(m['DocSkeletonManagerService'])),S(0x2,(0x0,n[_0x437440(0x16c)])(F)),S(0x3,n['ICommandService']),S(0x4,(0x0,n[_0x437440(0x16c)])(n['ThemeService']))],R);var xe=class extends u[_0x437440(0x38c)]{constructor(_0x1a7253,_0x563be4){const _0xe563d8=_0x437440;if(super(_0x1a7253,_0x563be4),x(this,'_color',void 0x0),x(this,'_hovered',!0x1),x(this,_0xe563d8(0x3fb),void 0x0),x(this,'_name',''),x(this,_0xe563d8(0x31c),_0xe563d8(0x21a)),x(this,'_backgroundColor',void 0x0),x(this,_0xe563d8(0x40e),void 0x0),x(this,'_highlight',void 0x0),x(this,_0xe563d8(0x179),0x4),x(this,_0xe563d8(0x328),void 0x0),x(this,'_blinkIntervalTimer',void 0x0),x(this,'_isBlinkVisible',!0x0),x(this,_0xe563d8(0x36c),0x0),x(this,_0xe563d8(0x39d),_0xe563d8(0x279)),_0x563be4){var _0x4ba218;if(this[_0xe563d8(0x15e)](_0x563be4),_0x563be4['highlight']&&((_0x4ba218=_0x563be4[_0xe563d8(0x368)])==null?this[_0xe563d8(0x179)]:_0x4ba218)){var _0x21933d;this[_0xe563d8(0x221)]((_0x21933d=_0x563be4['highlightSecond'])==null?this['_highlightSecond']:_0x21933d);}}this[_0xe563d8(0x379)][_0xe563d8(0x24d)](()=>this[_0xe563d8(0x15e)]({'hovered':!0x0})),this[_0xe563d8(0x188)][_0xe563d8(0x24d)](()=>this[_0xe563d8(0x15e)]({'hovered':!0x1}));}[_0x437440(0x3ee)](_0x386fd7){const _0x4a5377=_0x437440;this[_0x4a5377(0x36c)]=_0x386fd7;}[_0x437440(0x15e)](_0x20597b){const _0x3ed35d=_0x437440;var _0x4e5f68,_0x4411d2,_0x62d371,_0x367df4,_0x14b6e5,_0x1f66a4,_0x3d7838,_0x1214e8;this['_color']=(_0x4e5f68=_0x20597b['color'])==null?this[_0x3ed35d(0x342)]:_0x4e5f68,this[_0x3ed35d(0x173)]=(_0x4411d2=_0x20597b[_0x3ed35d(0x1c8)])==null?this[_0x3ed35d(0x173)]:_0x4411d2,this[_0x3ed35d(0x3fb)]=(_0x62d371=_0x20597b[_0x3ed35d(0x2f5)])==null?this['_range']:_0x62d371,this['_name']=(_0x367df4=_0x20597b[_0x3ed35d(0x159)])==null?this[_0x3ed35d(0x3a8)]:_0x367df4,this[_0x3ed35d(0x31c)]=(_0x14b6e5=_0x20597b[_0x3ed35d(0x2e4)])==null?this[_0x3ed35d(0x31c)]:_0x14b6e5,this[_0x3ed35d(0x417)]=(_0x1f66a4=_0x20597b[_0x3ed35d(0x1ae)])==null?this[_0x3ed35d(0x417)]:_0x1f66a4,this['_showText']=(_0x3d7838=_0x20597b[_0x3ed35d(0x387)])==null?this['_showText']:_0x3d7838,this['_labelHorizontalPosition']=(_0x1214e8=_0x20597b[_0x3ed35d(0x2ba)])==null?this['_labelHorizontalPosition']:_0x1214e8,_0x20597b[_0x3ed35d(0x368)]!==void 0x0&&(this[_0x3ed35d(0x179)]=_0x20597b[_0x3ed35d(0x368)]),_0x20597b['highlight']!==void 0x0&&(this[_0x3ed35d(0x2a0)]=_0x20597b['highlight']),_0x20597b[_0x3ed35d(0x14e)]!==void 0x0&&(this[_0x3ed35d(0x36c)]=_0x20597b[_0x3ed35d(0x14e)]),this['transformByState']({'width':_0x20597b[_0x3ed35d(0x2b0)],'height':_0x20597b[_0x3ed35d(0x362)]});}[_0x437440(0x267)](_0x113fbb){const _0x454538=_0x437440;let {row:_0x5e6aa1,column:_0x17c2f8}=_0x113fbb;if(_0x5e6aa1>=this[_0x454538(0x3fb)]['startRow']&&_0x5e6aa1<=this[_0x454538(0x3fb)][_0x454538(0x1ce)]&&_0x17c2f8>=this[_0x454538(0x3fb)][_0x454538(0x350)]&&_0x17c2f8<=this[_0x454538(0x3fb)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x454538(0x15e)]({'hovered':!0x1});}[_0x437440(0x221)](_0xa2e68d){const _0x32a75e=_0x437440;this[_0x32a75e(0x3c5)](),this['_isBlinkVisible']=!0x0,this['_blinkIntervalTimer']=window[_0x32a75e(0x163)](()=>{const _0x4dadb1=_0x32a75e;this[_0x4dadb1(0x307)]=!this[_0x4dadb1(0x307)],this[_0x4dadb1(0x224)](!0x0);},0x1f4),this[_0x32a75e(0x328)]=window['setTimeout'](()=>{const _0x4f2ed6=_0x32a75e;this[_0x4f2ed6(0x3c5)](),this[_0x4f2ed6(0x307)]=!0x0,this[_0x4f2ed6(0x224)](!0x0);},_0xa2e68d*0x3e8);}['_stopBlinking'](){const _0x3a2577=_0x437440;this['_blinkIntervalTimer']&&(window[_0x3a2577(0x16d)](this[_0x3a2577(0x3cf)]),this[_0x3a2577(0x3cf)]=void 0x0),this[_0x3a2577(0x328)]&&(window[_0x3a2577(0x28d)](this[_0x3a2577(0x328)]),this[_0x3a2577(0x328)]=void 0x0);}[_0x437440(0x3c9)](_0x14346d){return!0x1;}[_0x437440(0x1c5)](){const _0x771af9=_0x437440;this['_stopBlinking'](),super[_0x771af9(0x1c5)]();}[_0x437440(0x3d4)](_0x408a62){const _0x2801dc=_0x437440;let _0x392628=this[_0x2801dc(0x342)],_0x190e69=this[_0x2801dc(0x417)];if(this[_0x2801dc(0x2a0)]&&!this['_isBlinkVisible']&&(_0x392628=this['_getLighterColor'](this['_color']),_0x190e69=this[_0x2801dc(0x417)]?this[_0x2801dc(0x301)](this[_0x2801dc(0x417)]):void 0x0),u[_0x2801dc(0x3b9)][_0x2801dc(0x19f)](_0x408a62,{'width':this['width'],'height':this[_0x2801dc(0x362)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x392628,'evented':!0x1,'fill':_0x190e69}),this[_0x2801dc(0x173)]||this[_0x2801dc(0x40e)]){var _0x11ac04;_0x408a62[_0x2801dc(0x272)]();let _0x445c8e=this[_0x2801dc(0x39d)]===_0x2801dc(0x2e0)?-de(_0x408a62,this[_0x2801dc(0x3a8)]):this[_0x2801dc(0x2b0)];_0x408a62['transform'](0x1,0x0,0x0,0x1,_0x445c8e,(this['_labelPosition']===_0x2801dc(0x2e5)?0x0:-0x14)+((_0x11ac04=this[_0x2801dc(0x36c)])==null?0x0:_0x11ac04)),D[_0x2801dc(0x19f)](_0x408a62,{'text':this[_0x2801dc(0x3a8)],'color':_0x392628}),_0x408a62[_0x2801dc(0x292)]();}}['_getLighterColor'](_0x44f5d7){const _0x28e22b=_0x437440;return _0x44f5d7[_0x28e22b(0x38b)]('#')?_0x28e22b(0x273)+Number[_0x28e22b(0x26c)](_0x44f5d7[_0x28e22b(0x32f)](0x1,0x3),0x10)+',\x20'+Number[_0x28e22b(0x26c)](_0x44f5d7['slice'](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x44f5d7[_0x28e22b(0x32f)](0x5,0x7),0x10)+_0x28e22b(0x308):_0x44f5d7[_0x28e22b(0x38b)]('rgba')?_0x44f5d7[_0x28e22b(0x1ad)](/[\d.]+\)$/g,'0.2)'):_0x44f5d7[_0x28e22b(0x38b)]('rgb')?_0x44f5d7[_0x28e22b(0x1ad)](_0x28e22b(0x3c8),'rgba')['replace'](')',',\x200.2)'):_0x44f5d7;}};let z=class extends n[_0x437440(0x157)]{constructor(_0x3ba5fb,_0x452f03,_0x2aef66,_0x276c2a){const _0x1c65ab=_0x437440;super(),this['_context']=_0x3ba5fb,this[_0x1c65ab(0x17e)]=_0x452f03,this['_collabCursorController']=_0x2aef66,this[_0x1c65ab(0x32e)]=_0x276c2a,x(this,_0x1c65ab(0x3fa),new Set()),x(this,'_lastPointer',null),x(this,'_pointerMoveDisposable',null),this['_init']();}[_0x437440(0x329)](){const _0x51d86b=_0x437440;this[_0x51d86b(0x17e)][_0x51d86b(0x286)][_0x51d86b(0x1a8)]((0x0,a['takeUntil'])(this['dispose$']),(0x0,a['switchMap'])(_0x5710e5=>{const _0x44c40a=_0x51d86b;if(_0x5710e5){let _0x490f75=_0x5710e5[_0x44c40a(0x206)];return(0x0,i[_0x44c40a(0x1e9)])(this[_0x44c40a(0x30e)][_0x44c40a(0x34d)](this['_context'][_0x44c40a(0x1a1)]),this[_0x44c40a(0x32e)][_0x44c40a(0x343)])['pipe']((0x0,a[_0x44c40a(0x2c5)])(([_0x580de0,_0x563e8e])=>{const _0x4fce3d=_0x44c40a;let _0x157d26=new Map();return _0x580de0[_0x4fce3d(0x2ac)]((_0x5dbbf2,_0x515707)=>{const _0x341760=_0x4fce3d;if(_0x5dbbf2[_0x341760(0x187)]===_0x490f75){let _0x4e2d83={..._0x5dbbf2};_0x4e2d83[_0x341760(0x404)]=this[_0x341760(0x32e)]['getColorFromTheme'](_0x5dbbf2[_0x341760(0x404)]),_0x157d26['set'](_0x515707,_0x4e2d83);}}),{'skeleton':_0x5710e5,'cursors':_0x157d26};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))[_0x51d86b(0x1d4)](({skeleton:_0x2b89b2,cursors:_0xe6a5ba})=>{const _0x437cde=_0x51d86b;this['_removeCollabCursors'](),_0x2b89b2&&this[_0x437cde(0x3e9)](_0x2b89b2,_0xe6a5ba);}),this[_0x51d86b(0x2cb)](this[_0x51d86b(0x17e)]['currentSkeleton$'][_0x51d86b(0x1a8)]((0x0,a[_0x51d86b(0x316)])(this[_0x51d86b(0x20f)]))[_0x51d86b(0x1d4)](_0x373d25=>{const _0x4b7375=_0x51d86b;var _0x2d388f;if(_0x373d25==null)return;(_0x2d388f=this['_pointerMoveDisposable'])==null||_0x2d388f[_0x4b7375(0x219)](),this[_0x4b7375(0x3e3)]=null;let {skeleton:_0x3e4c5a}=_0x373d25,{scene:_0x131e52}=this[_0x4b7375(0x176)];this[_0x4b7375(0x3e3)]=_0x131e52[_0x4b7375(0x1c3)][_0x4b7375(0x24d)]((0x0,n[_0x4b7375(0x3b4)])(_0x1c5d79=>{const _0x146fd8=_0x4b7375;var _0xcb7476,_0x33e722;let {offsetX:_0xb0615d,offsetY:_0x3195e9}=_0x1c5d79,{x:_0x1c8bb8,y:_0x2203af}=_0x131e52['getRelativeToViewportCoord'](u[_0x146fd8(0x241)]['FromArray']([_0xb0615d,_0x3195e9])),{scaleX:_0x69ec11,scaleY:_0x51064b}=_0x131e52['getAncestorScale'](),_0x495913=_0x131e52['getViewport'](u['SHEET_VIEWPORT_KEY'][_0x146fd8(0x1d0)]),_0x173989=_0x131e52[_0x146fd8(0x218)](u['Vector2'][_0x146fd8(0x32c)]([_0x1c8bb8,_0x2203af]),_0x495913),_0x3645a9=_0x3e4c5a[_0x146fd8(0x298)](_0xb0615d,_0x3195e9,_0x69ec11,_0x51064b,_0x173989);((_0xcb7476=this[_0x146fd8(0x256)])==null?void 0x0:_0xcb7476[_0x146fd8(0x291)])===_0x3645a9[_0x146fd8(0x291)]&&((_0x33e722=this['_lastPointer'])==null?void 0x0:_0x33e722[_0x146fd8(0x36f)])===_0x3645a9['row']||this[_0x146fd8(0x3fa)]['forEach'](_0x486831=>{const _0x50c5bf=_0x146fd8;_0x486831[_0x50c5bf(0x267)](_0x3645a9);});},0x64));})),this[_0x51d86b(0x2cb)]((0x0,n[_0x51d86b(0x3c0)])(()=>{const _0x2f4a53=_0x51d86b;var _0x76658d;(_0x76658d=this['_pointerMoveDisposable'])==null||_0x76658d[_0x2f4a53(0x219)](),this[_0x2f4a53(0x3e3)]=null;}));}[_0x437440(0x3e9)](_0x5c76e6,_0x39c580){const _0x31b183=_0x437440;let _0x5554c6=this[_0x31b183(0x17e)][_0x31b183(0x395)]();if(!_0x5554c6)return;let _0xf3dfd5=this[_0x31b183(0x3e6)]();if(!_0xf3dfd5)return;this['_cursors']['forEach'](_0x17d746=>{const _0x43650d=_0x31b183;_0x17d746[_0x43650d(0x224)]();});let {scene:_0x1f014c}=_0xf3dfd5,_0x4a0f53=Se(Array[_0x31b183(0x167)](_0x39c580[_0x31b183(0x300)]()))[_0x31b183(0x2c5)](_0x51fe07=>{const _0x5624f5=_0x31b183;let {color:_0x2d08bf,range:_0x28473b,name:_0x44d36a,selection:_0x4c7be1,sheetID:_0xd5b8e5}=_0x51fe07,{startColumn:_0x251e92,startRow:_0xa29d04,endColumn:_0x3e653e,endRow:_0x1af29a}=_0x28473b,_0x459336=(0x0,v[_0x5624f5(0x38f)])(_0xa29d04,_0x251e92,_0x1f014c,_0x5554c6),_0xca94b2=(0x0,v['getCoordByCell'])(_0x1af29a,_0x3e653e,_0x1f014c,_0x5554c6),{columnHeaderHeightAndMarginTop:_0xe44fbe}=_0x5554c6,{startX:_0x278581,startY:_0xd5d5ac}=_0x459336,{endX:_0x3c21b9,endY:_0x3bbbb6}=_0xca94b2,_0x2af3fb=_0x3c21b9-_0x278581,_0x548746=_0x3bbbb6-_0xd5d5ac;return new xe(_0x44d36a,{'labelPosition':_0xd5d5ac-_0xe44fbe>=0x14?_0x5624f5(0x21a):'bottom','sheetID':_0xd5b8e5,'range':_0x28473b,'color':_0x2d08bf,'name':_0x44d36a,'selection':_0x4c7be1,'left':_0x278581,'top':_0xd5d5ac,'width':_0x2af3fb,'height':_0x548746,'evented':!0x1,'zIndex':0x1389});});_0x1f014c[_0x31b183(0x32b)](_0x4a0f53,0x1),this['_cursors']=new Set(_0x4a0f53);}['_removeCollabCursors'](){const _0x56ca63=_0x437440;var _0x5410b8;(_0x5410b8=this[_0x56ca63(0x3fa)])==null||_0x5410b8['forEach'](_0x532076=>_0x532076[_0x56ca63(0x1c5)]());}[_0x437440(0x3e6)](){const _0x2a275d=_0x437440;return(0x0,v[_0x2a275d(0x258)])(this[_0x2a275d(0x176)][_0x2a275d(0x386)],this[_0x2a275d(0x176)]);}};z=C([S(0x1,(0x0,n[_0x437440(0x16c)])(v[_0x437440(0x1ff)])),S(0x2,(0x0,n[_0x437440(0x16c)])(F)),S(0x3,(0x0,n['Inject'])(n[_0x437440(0x14c)]))],z);function Se(_0x50f047){const _0x3b1892=_0x437440;let _0x19105a=new Map();return _0x50f047['forEach'](_0x330483=>{const _0x146e38=_0x30e6;if(_0x19105a[_0x146e38(0x15d)](_0x330483[_0x146e38(0x2d3)])){let _0x3b47c5=_0x19105a[_0x146e38(0x226)](_0x330483[_0x146e38(0x2d3)]);_0x3b47c5[_0x146e38(0x159)]+=',\x20'+_0x330483[_0x146e38(0x159)];}else _0x19105a[_0x146e38(0x18b)](_0x330483[_0x146e38(0x2d3)],_0x330483);}),Array[_0x3b1892(0x167)](_0x19105a[_0x3b1892(0x300)]());}function _0x30e6(_0x6643ac,_0x3727b5){_0x6643ac=_0x6643ac-0x147;const _0x184f3e=_0x184f();let _0x30e653=_0x184f3e[_0x6643ac];return _0x30e653;}let B=class extends n[_0x437440(0x157)]{constructor(_0x251554,_0x2f549d,_0x1b137c){const _0x22cf5c=_0x437440;super(),this[_0x22cf5c(0x176)]=_0x251554,this['_collabCursorController']=_0x2f549d,this[_0x22cf5c(0x32e)]=_0x1b137c,x(this,'_cursors',new Set()),x(this,_0x22cf5c(0x407),!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,_0x22cf5c(0x366),new Map()),this[_0x22cf5c(0x329)]();}[_0x437440(0x1c5)](){const _0x2a1a4a=_0x437440;this[_0x2a1a4a(0x263)](),super['dispose']();}[_0x437440(0x329)](){const _0x16f24a=_0x437440;let _0x9bb75d=this[_0x16f24a(0x176)][_0x16f24a(0x386)][_0x16f24a(0x1bd)]['activeSlideId$'],_0x27486f=this[_0x16f24a(0x30e)][_0x16f24a(0x34d)](this[_0x16f24a(0x176)][_0x16f24a(0x1a1)]);this[_0x16f24a(0x2cb)]((0x0,n[_0x16f24a(0x3c0)])((0x0,i['combineLatest'])([_0x27486f,_0x9bb75d,this[_0x16f24a(0x32e)][_0x16f24a(0x343)]])[_0x16f24a(0x1a8)]((0x0,i[_0x16f24a(0x316)])(this[_0x16f24a(0x20f)]))[_0x16f24a(0x1d4)](([_0x5d5ddc,_0x115a11])=>{const _0x15316f=_0x16f24a;let _0x170f6f=new Map();_0x5d5ddc[_0x15316f(0x2ac)]((_0x4aeb9a,_0x25ea6c)=>{const _0x991a34=_0x15316f;_0x4aeb9a['subUnitId']===_0x115a11&&_0x170f6f['set'](_0x25ea6c,{..._0x4aeb9a,'color':this[_0x991a34(0x32e)][_0x991a34(0x2f1)](_0x4aeb9a[_0x991a34(0x404)])});}),this[_0x15316f(0x366)]=_0x170f6f,this['_scheduleRender']();})));let _0x5a79b6=this[_0x16f24a(0x176)][_0x16f24a(0x339)];this[_0x16f24a(0x2cb)]((0x0,n[_0x16f24a(0x3c0)])(_0x5a79b6[_0x16f24a(0x1bc)][_0x16f24a(0x1a8)]((0x0,i[_0x16f24a(0x316)])(this[_0x16f24a(0x20f)]))[_0x16f24a(0x1d4)](()=>{const _0x274e3c=_0x16f24a;this[_0x274e3c(0x3d9)]||this[_0x274e3c(0x3c6)]();})));}['_scheduleRender'](){const _0x17ffa4=_0x437440;this[_0x17ffa4(0x407)]||(this[_0x17ffa4(0x407)]=!0x0,Promise[_0x17ffa4(0x2b2)]()[_0x17ffa4(0x1e7)](()=>{const _0x25b737=_0x17ffa4;this[_0x25b737(0x407)]=!0x1,this[_0x25b737(0x2cc)]();}));}[_0x437440(0x2cc)](){const _0x429b9f=_0x437440;var _0x5cc8e8;this[_0x429b9f(0x263)]();let _0x3b4abf=(_0x5cc8e8=this[_0x429b9f(0x176)][_0x429b9f(0x386)][_0x429b9f(0x1bd)]['getActiveSlide']())==null?void 0x0:_0x5cc8e8[_0x429b9f(0x2ae)]();if(!_0x3b4abf)return;let _0xc5ff5d=[];if(this[_0x429b9f(0x366)]['forEach']((_0x1baee9,_0x1a97fa)=>{const _0x22710b=_0x429b9f;_0x1baee9['subUnitId']===_0x3b4abf&&_0x1baee9[_0x22710b(0x274)][_0x22710b(0x2ac)](_0x24f3b2=>{const _0x333d96=_0x22710b;let _0x43c051=(0x0,_['buildDrawingOKey'])(_0x1baee9['unitId'],_0x1baee9[_0x333d96(0x364)],_0x24f3b2),_0x2f3267=this[_0x333d96(0x299)](_0x43c051);if(!_0x2f3267)return;let _0x159449=this[_0x333d96(0x302)](_0x2f3267);_0xc5ff5d[_0x333d96(0x3da)](new pe(_0x333d96(0x250)+_0x1a97fa+'-'+_0x24f3b2,{..._0x1baee9,'left':_0x159449[_0x333d96(0x2e0)],'top':_0x159449['top'],'width':_0x159449['width'],'height':_0x159449[_0x333d96(0x362)],'angle':_0x2f3267[_0x333d96(0x3d6)],'evented':!0x1,'zIndex':O}));});}),_0xc5ff5d[_0x429b9f(0x346)]===0x0){this[_0x429b9f(0x176)][_0x429b9f(0x339)][_0x429b9f(0x224)](!0x0);return;}this['_isApplyingOverlays']=!0x0,this[_0x429b9f(0x176)]['scene']['addObjects'](_0xc5ff5d,O),this['_isApplyingOverlays']=!0x1,this['_cursors']=new Set(_0xc5ff5d),this[_0x429b9f(0x176)]['scene'][_0x429b9f(0x224)](!0x0);}['_removeCollabCursors'](){const _0x5b016c=_0x437440;let _0x5c26a9=Array[_0x5b016c(0x167)](this[_0x5b016c(0x3fa)]);if(_0x5c26a9[_0x5b016c(0x346)]===0x0)return;let _0x12eee7=this[_0x5b016c(0x176)][_0x5b016c(0x339)];_0x5b016c(0x3ed)in _0x12eee7&&typeof _0x12eee7['removeObjects']==_0x5b016c(0x16b)?_0x12eee7[_0x5b016c(0x3ed)](_0x5c26a9):_0x5c26a9['forEach'](_0xf7936a=>{const _0x19b984=_0x5b016c;_0x19b984(0x2b9)in _0x12eee7&&typeof _0x12eee7['removeObject']==_0x19b984(0x16b)?_0x12eee7[_0x19b984(0x2b9)](_0xf7936a):_0xf7936a[_0x19b984(0x1c5)]();}),this[_0x5b016c(0x3fa)]['clear'](),_0x12eee7['makeDirty'](!0x0);}[_0x437440(0x299)](_0x44fa39){const _0x44cd55=_0x437440;var _0x2f2d73,_0x330311,_0x4f2dd3;let _0x57019e=this[_0x44cd55(0x176)][_0x44cd55(0x339)];return(_0x2f2d73=(_0x330311=(_0x4f2dd3=_0x57019e[_0x44cd55(0x34c)])==null?void 0x0:_0x4f2dd3[_0x44cd55(0x1db)](_0x57019e,_0x44fa39))==null?_0x57019e[_0x44cd55(0x2d4)](_0x44fa39):_0x330311)==null?null:_0x2f2d73;}[_0x437440(0x302)](_0xed9139){const _0xde90cd=_0x437440;var _0x11b545,_0x3b1216;let _0x10b719=_0xed9139;return(_0x11b545=(_0x3b1216=_0x10b719[_0xde90cd(0x30d)])==null?void 0x0:_0x3b1216[_0xde90cd(0x1db)](_0x10b719))==null?{'left':_0xed9139[_0xde90cd(0x2e0)],'top':_0xed9139[_0xde90cd(0x21a)],'width':_0xed9139[_0xde90cd(0x2b0)],'height':_0xed9139[_0xde90cd(0x362)]}:_0x11b545;}};B=C([S(0x1,(0x0,n[_0x437440(0x16c)])(F)),S(0x2,(0x0,n[_0x437440(0x16c)])(n['ThemeService']))],B);let V=class extends n['Disposable']{constructor(_0x458ebc,_0x49acff,_0x17a8e3,_0x73f774,_0x24d560,_0x3b369f){const _0x340bdc=_0x437440;super(),this[_0x340bdc(0x3ae)]=_0x458ebc,this[_0x340bdc(0x1c2)]=_0x49acff,this[_0x340bdc(0x228)]=_0x17a8e3,this['_messageService']=_0x73f774,this[_0x340bdc(0x33a)]=_0x24d560,this[_0x340bdc(0x398)]=_0x3b369f,this[_0x340bdc(0x25d)](),this[_0x340bdc(0x3f6)]();}[_0x437440(0x25d)](){const _0x54e35d=_0x437440;this[_0x54e35d(0x2cb)](this[_0x54e35d(0x3ae)][_0x54e35d(0x344)](()=>{const _0x217c36=_0x54e35d;if(this['_localCacheService'][_0x217c36(0x1eb)][_0x217c36(0x2a2)])return this[_0x217c36(0x398)]['t'](_0x217c36(0x341));}));}[_0x437440(0x3f6)](){const _0x8540f9=_0x437440;this[_0x8540f9(0x2cb)](this['_collaborationUIEventService']['event$']['subscribe'](_0x1fb7ec=>{const _0x52c1d9=_0x8540f9;_0x1fb7ec['id']===t[_0x52c1d9(0x2c0)][_0x52c1d9(0x1e1)]&&this[_0x52c1d9(0x27b)][_0x52c1d9(0x234)]({'type':o[_0x52c1d9(0x3a1)][_0x52c1d9(0x3e8)],'content':this['_localeService']['t'](_0x52c1d9(0x41a))}),_0x1fb7ec['id']===t[_0x52c1d9(0x2c0)][_0x52c1d9(0x1a7)]&&this[_0x52c1d9(0x27b)][_0x52c1d9(0x234)]({'type':o['MessageType'][_0x52c1d9(0x3e8)],'content':this[_0x52c1d9(0x398)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x1fb7ec['id']===t[_0x52c1d9(0x2c0)]['PERMISSION_DENIED']&&this[_0x52c1d9(0x33a)][_0x52c1d9(0x234)]({'title':this[_0x52c1d9(0x398)]['t'](_0x52c1d9(0x37c)),'content':this['_localeService']['t'](_0x52c1d9(0x171)),'type':_0x52c1d9(0x196),'duration':0x0}),_0x1fb7ec['id']===t['CollaborationUIEventId'][_0x52c1d9(0x39e)]&&this['_notificationService'][_0x52c1d9(0x234)]({'title':this[_0x52c1d9(0x398)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x52c1d9(0x398)]['t'](_0x52c1d9(0x2d9)),'type':'error','duration':0x0}),_0x1fb7ec['id']===t[_0x52c1d9(0x2c0)][_0x52c1d9(0x294)]&&this['_messageService'][_0x52c1d9(0x234)]({'type':o[_0x52c1d9(0x3a1)][_0x52c1d9(0x3e8)],'content':this[_0x52c1d9(0x398)]['t'](_0x1fb7ec[_0x52c1d9(0x2a5)]||'')}),_0x1fb7ec['id']===t[_0x52c1d9(0x2c0)][_0x52c1d9(0x1a4)]&&this['_messageService'][_0x52c1d9(0x234)]({'type':o[_0x52c1d9(0x3a1)][_0x52c1d9(0x3e8)],'content':this['_localeService']['t'](_0x52c1d9(0x1b2))}),_0x1fb7ec['id']===t[_0x52c1d9(0x2c0)]['SOCKET_FAILED']&&this[_0x52c1d9(0x27b)]['show']({'type':o[_0x52c1d9(0x3a1)][_0x52c1d9(0x25a)],'content':this[_0x52c1d9(0x398)]['t'](_0x52c1d9(0x2ad))}),_0x1fb7ec['id']===t[_0x52c1d9(0x2c0)][_0x52c1d9(0x24e)]&&this['_messageService'][_0x52c1d9(0x234)]({'type':o['MessageType']['Error'],'content':this['_localeService']['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};V=C([S(0x0,r[_0x437440(0x2fd)]),S(0x1,t[_0x437440(0x388)]),S(0x2,(0x0,n[_0x437440(0x16c)])(t[_0x437440(0x1a5)])),S(0x3,r[_0x437440(0x1f5)]),S(0x4,r[_0x437440(0x168)]),S(0x5,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x2f3)]))],V);const H=(0x0,n['createIdentifier'])(_0x437440(0x151));let U=class extends n['RxDisposable']{constructor(_0x39c01a,_0x46bdf6,_0x1d463d,_0x41cf09,_0x293d2f){const _0x1b6fd8=_0x437440;super(),this[_0x1b6fd8(0x215)]=_0x39c01a,this[_0x1b6fd8(0x393)]=_0x46bdf6,this[_0x1b6fd8(0x3f2)]=_0x1d463d,this[_0x1b6fd8(0x29e)]=_0x41cf09,_0x293d2f?_0x293d2f==null||_0x293d2f[_0x1b6fd8(0x25b)]()[_0x1b6fd8(0x1e7)](()=>this['_init']()):(this[_0x1b6fd8(0x393)][_0x1b6fd8(0x282)](_0x1b6fd8(0x376),_0x1b6fd8(0x3fe)),this[_0x1b6fd8(0x329)]());}async[_0x437440(0x329)](){const _0x5c465d=_0x437440;let _0x394a8d=this['_urlService'][_0x5c465d(0x24c)](_0x5c465d(0x386)),_0x32d458=this[_0x5c465d(0x215)][_0x5c465d(0x24c)](_0x5c465d(0x349)),_0x1715dd=this[_0x5c465d(0x215)][_0x5c465d(0x24c)](_0x5c465d(0x288));if(!_0x394a8d||!_0x32d458){this['_logService'][_0x5c465d(0x282)](_0x5c465d(0x376),_0x5c465d(0x3d0));return;}let _0x68be79=await this['_dataLoaderService'][_0x5c465d(0x3d3)](_0x394a8d,Number(_0x32d458),_0x1715dd);_0x68be79&&_0x68be79 instanceof n[_0x5c465d(0x363)]&&this[_0x5c465d(0x275)](_0x68be79);}async[_0x437440(0x275)](_0x53105c){const _0x4a9c6b=_0x437440;await this[_0x4a9c6b(0x355)](_0x53105c),_0x53105c[_0x4a9c6b(0x289)]['pipe']((0x0,i[_0x4a9c6b(0x316)])(this[_0x4a9c6b(0x20f)]))[_0x4a9c6b(0x1d4)](_0xae631d=>{const _0x3c7dfe=_0x4a9c6b;_0xae631d&&this[_0x3c7dfe(0x1d5)](_0xae631d);}),this[_0x4a9c6b(0x215)]['urlChange$']['pipe']((0x0,i[_0x4a9c6b(0x316)])(this[_0x4a9c6b(0x20f)]))[_0x4a9c6b(0x1d4)](()=>this['_updateSubUnitFromURLParams'](_0x53105c));}[_0x437440(0x1d5)](_0x19484c,_0x3e4afa=!0x1){const _0x4e546b=_0x437440;let _0x1c29d9=this[_0x4e546b(0x215)][_0x4e546b(0x24c)](_0x4e546b(0x288));_0x19484c[_0x4e546b(0x33c)]()!==_0x1c29d9&&this[_0x4e546b(0x215)][_0x4e546b(0x309)](_0x4e546b(0x288),_0x19484c['getSheetId'](),_0x3e4afa);}async[_0x437440(0x355)](_0x16be77){const _0x63779a=_0x437440;var _0x520d7d;let _0x17d8d3=this[_0x63779a(0x215)][_0x63779a(0x24c)]('subunit');if(!_0x17d8d3||!_0x16be77[_0x63779a(0x1f0)](_0x17d8d3)){let _0x26bd63=_0x16be77[_0x63779a(0x1d8)]()[0x0],_0x11d062=_0x16be77[_0x63779a(0x1f0)](_0x26bd63);if(!_0x11d062)return;this[_0x63779a(0x1d5)](_0x11d062,!0x0),await this[_0x63779a(0x3f2)][_0x63779a(0x2da)](g[_0x63779a(0x2db)]['id'],{'unitId':_0x16be77['getUnitId'](),'subUnitId':_0x26bd63});return;}((_0x520d7d=_0x16be77[_0x63779a(0x2a4)]())==null?void 0x0:_0x520d7d[_0x63779a(0x33c)]())!==_0x17d8d3&&await this[_0x63779a(0x3f2)][_0x63779a(0x2da)](g[_0x63779a(0x2db)]['id'],{'unitId':_0x16be77[_0x63779a(0x161)](),'subUnitId':_0x17d8d3});}};U=C([S(0x0,H),S(0x1,n[_0x437440(0x306)]),S(0x2,n[_0x437440(0x310)]),S(0x3,(0x0,n['Inject'])(t['DataLoaderService'])),S(0x4,(0x0,n[_0x437440(0x326)])(ee[_0x437440(0x2e7)]))],U);let W=class{constructor(_0x44eaeb,_0x2b9735){const _0x4b9952=_0x437440;this[_0x4b9952(0x312)]=_0x44eaeb,this[_0x4b9952(0x414)]=_0x2b9735;}[_0x437440(0x17f)](_0x217447){const _0xb591db=_0x437440;this[_0xb591db(0x1c0)](_0x217447),this[_0xb591db(0x268)](_0x217447);}['transformRemoteChangeset'](_0x7405a3){const _0x52be1a=_0x437440;let {unitID:_0x3f4f13}=_0x7405a3,{redoCache:_0x21f867}=this['_renderManagerService']['getRenderById'](_0x3f4f13)[_0x52be1a(0x419)](f['DocIMEInputManagerService'])[_0x52be1a(0x35b)]();if(_0x21f867[_0x52be1a(0x346)]===0x0)return _0x7405a3;let _0x14ca5c=n[_0x52be1a(0x2fe)][_0x52be1a(0x2fa)](_0x7405a3[_0x52be1a(0x21b)][0x0]);for(let _0x460610=0x0;_0x460610<_0x21f867[_0x52be1a(0x346)];_0x460610++){let _0x1cd644={'id':'doc.mutation.rich-text-editing','params':{..._0x21f867[_0x460610]}},_0x4a201e=this[_0x52be1a(0x312)][_0x52be1a(0x365)](_0x14ca5c,_0x1cd644,!0x1);if((0x0,p[_0x52be1a(0x3ab)])(_0x4a201e))throw _0x4a201e['error'];_0x14ca5c=_0x4a201e[_0x52be1a(0x203)];}return{...n['Tools'][_0x52be1a(0x2fa)](_0x7405a3),'mutations':[_0x14ca5c]};}['_transformUndoRedoStack'](_0x1c45ee){const _0x5c7cb8=_0x437440;let {unitID:_0x32ea20}=_0x1c45ee,_0xb9ec03=this[_0x5c7cb8(0x414)][_0x5c7cb8(0x406)](_0x32ea20)[_0x5c7cb8(0x419)](f[_0x5c7cb8(0x18d)]),{undoCache:_0x1ecffb,redoCache:_0x2052d8}=_0xb9ec03[_0x5c7cb8(0x35b)]();if(_0x1ecffb[_0x5c7cb8(0x346)]===0x0||_0x2052d8[_0x5c7cb8(0x346)]===0x0)return;let _0x2916cd=[],_0x378261=[],_0x20378e=n[_0x5c7cb8(0x2fe)][_0x5c7cb8(0x2fa)](_0x1c45ee[_0x5c7cb8(0x21b)][0x0]),_0x14586c=n[_0x5c7cb8(0x2fe)][_0x5c7cb8(0x2fa)](_0x1c45ee['mutations'][0x0]);for(let _0xa9fc8b=_0x1ecffb['length']-0x1;_0xa9fc8b>=0x0;_0xa9fc8b--){let _0x597f7f={'id':_0x5c7cb8(0x242),'params':{..._0x1ecffb[_0xa9fc8b]}},_0x41095f={'id':'doc.mutation.rich-text-editing','params':{..._0x2052d8[_0xa9fc8b]}},_0xd3a308=this['_transformService'][_0x5c7cb8(0x365)](_0x20378e,_0x597f7f,!0x1),_0x268aa5=this['_transformService'][_0x5c7cb8(0x365)](_0x14586c,_0x41095f,!0x1);if((0x0,p[_0x5c7cb8(0x3ab)])(_0xd3a308))throw _0xd3a308[_0x5c7cb8(0x196)];if((0x0,p[_0x5c7cb8(0x3ab)])(_0x268aa5))throw _0x268aa5[_0x5c7cb8(0x196)];_0x2916cd[_0x5c7cb8(0x184)](_0xd3a308[_0x5c7cb8(0x3ca)][_0x5c7cb8(0x367)]),_0x378261['unshift'](_0x268aa5[_0x5c7cb8(0x3ca)][_0x5c7cb8(0x367)]),_0x20378e=_0xd3a308[_0x5c7cb8(0x203)],_0x14586c=_0x268aa5[_0x5c7cb8(0x203)];}_0xb9ec03[_0x5c7cb8(0x3c1)]({'undoCache':_0x2916cd,'redoCache':_0x378261});}[_0x437440(0x268)](_0x16497e){const _0x220fd6=_0x437440;let {unitID:_0x28aaa4}=_0x16497e,_0x348a7b=this[_0x220fd6(0x414)][_0x220fd6(0x406)](_0x28aaa4)[_0x220fd6(0x419)](f['DocIMEInputManagerService']),_0x4ce7f5=_0x348a7b[_0x220fd6(0x3a5)]();if(_0x4ce7f5==null)return;let _0x35d67d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x16497e[_0x220fd6(0x2b7)],'actions':null,'textRanges':[_0x4ce7f5]}}],_0x54a22c=this[_0x220fd6(0x312)][_0x220fd6(0x1b5)](_0x16497e,_0x35d67d);if(!(0x0,p[_0x220fd6(0x1e5)])(_0x54a22c))throw _0x54a22c[_0x220fd6(0x196)];let _0x473aaa=_0x54a22c[_0x220fd6(0x3ca)][0x0][_0x220fd6(0x367)][_0x220fd6(0x22e)];Array[_0x220fd6(0x3aa)](_0x473aaa)&&_0x473aaa['length']&&_0x348a7b['setActiveRange'](_0x473aaa[0x0]);}};W=C([S(0x0,p[_0x437440(0x295)]),S(0x1,u['IRenderManagerService'])],W);let G=class{constructor(_0xe1b6cd,_0x1d727f,_0x2cc222){const _0x37354e=_0x437440;this[_0x37354e(0x323)]=_0xe1b6cd,this[_0x37354e(0x312)]=_0x1d727f,this[_0x37354e(0x327)]=_0x2cc222;}['transformStateCache'](_0x34f2b2){const _0x5109da=_0x437440;this[_0x5109da(0x1d7)](_0x34f2b2);}[_0x437440(0x223)](_0x519964){const _0x57edc7=_0x437440;let {unitID:_0x48e1a3}=_0x519964,{collaboration:_0x15dd18}=this[_0x57edc7(0x327)][_0x57edc7(0x3d2)](_0x48e1a3);if(_0x15dd18['length']===0x0)return _0x519964;let _0x19fa60=n[_0x57edc7(0x2fe)][_0x57edc7(0x2fa)](_0x519964['mutations'][0x0]);for(let _0xb83087=0x0;_0xb83087<_0x15dd18[_0x57edc7(0x346)];_0xb83087++){let _0x131f67={'id':_0x57edc7(0x242),'params':{'unitId':_0x15dd18[_0xb83087][_0x57edc7(0x1a1)],..._0x15dd18[_0xb83087][_0x57edc7(0x3b3)]}},_0x56f206=this['_transformService'][_0x57edc7(0x365)](_0x19fa60,_0x131f67,!0x1);if((0x0,p['isTransformMutationFailure'])(_0x56f206))throw _0x56f206[_0x57edc7(0x196)];_0x19fa60=_0x56f206[_0x57edc7(0x203)];}return{...n[_0x57edc7(0x2fe)]['deepClone'](_0x519964),'mutations':[_0x19fa60]};}[_0x437440(0x1d7)](_0x40f125){const _0x4b95b6=_0x437440;let {unitID:_0x3da8d2}=_0x40f125,{history:_0xb83d47,collaboration:_0x2cd95b}=this[_0x4b95b6(0x327)][_0x4b95b6(0x3d2)](_0x3da8d2);if(_0xb83d47[_0x4b95b6(0x346)]===0x0&&_0x2cd95b[_0x4b95b6(0x346)]===0x0)return;let _0x53704b=[],_0xe604eb=[],_0x9e44db=n[_0x4b95b6(0x2fe)]['deepClone'](_0x40f125[_0x4b95b6(0x21b)][0x0]),_0x7bcea3=n[_0x4b95b6(0x2fe)][_0x4b95b6(0x2fa)](_0x40f125[_0x4b95b6(0x21b)][0x0]);for(let _0x21412e=_0xb83d47[_0x4b95b6(0x346)]-0x1;_0x21412e>=0x0;_0x21412e--){let _0x17b3a9={'id':_0x4b95b6(0x242),'params':{'unitId':_0xb83d47[_0x21412e][_0x4b95b6(0x1a1)],..._0xb83d47[_0x21412e][_0x4b95b6(0x3a9)]}},_0x258f8d={'id':_0x4b95b6(0x242),'params':{'unitId':_0xb83d47[_0x21412e][_0x4b95b6(0x1a1)],..._0xb83d47[_0x21412e][_0x4b95b6(0x3b3)]}},_0xb2fb00=this[_0x4b95b6(0x312)][_0x4b95b6(0x365)](_0x9e44db,_0x17b3a9,!0x1),_0x3f7fcd=this[_0x4b95b6(0x312)][_0x4b95b6(0x365)](_0x7bcea3,_0x258f8d,!0x1);if((0x0,p['isTransformMutationFailure'])(_0xb2fb00))throw _0xb2fb00[_0x4b95b6(0x196)];if((0x0,p[_0x4b95b6(0x3ab)])(_0x3f7fcd))throw _0x3f7fcd[_0x4b95b6(0x196)];_0x53704b[_0x4b95b6(0x184)]({..._0xb83d47[_0x21412e],'undoState':_0xb2fb00['m2Prime']['params'],'redoState':_0x3f7fcd['m2Prime'][_0x4b95b6(0x367)]}),_0x9e44db=_0xb2fb00[_0x4b95b6(0x203)],_0x7bcea3=_0x3f7fcd[_0x4b95b6(0x203)];}_0x9e44db=n[_0x4b95b6(0x2fe)][_0x4b95b6(0x2fa)](_0x40f125[_0x4b95b6(0x21b)][0x0]),_0x7bcea3=n[_0x4b95b6(0x2fe)][_0x4b95b6(0x2fa)](_0x40f125['mutations'][0x0]);for(let _0x22bf00=_0x2cd95b[_0x4b95b6(0x346)]-0x1;_0x22bf00>=0x0;_0x22bf00--){let _0x22f617={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2cd95b[_0x22bf00][_0x4b95b6(0x1a1)],..._0x2cd95b[_0x22bf00][_0x4b95b6(0x3a9)]}},_0x4a49da={'id':_0x4b95b6(0x242),'params':{'unitId':_0x2cd95b[_0x22bf00][_0x4b95b6(0x1a1)],..._0x2cd95b[_0x22bf00]['redoState']}},_0x29346c=this[_0x4b95b6(0x312)][_0x4b95b6(0x365)](_0x9e44db,_0x22f617,!0x1),_0x58fc6c=this[_0x4b95b6(0x312)][_0x4b95b6(0x365)](_0x7bcea3,_0x4a49da,!0x1);if((0x0,p['isTransformMutationFailure'])(_0x29346c))throw _0x29346c[_0x4b95b6(0x196)];if((0x0,p[_0x4b95b6(0x3ab)])(_0x58fc6c))throw _0x58fc6c['error'];_0xe604eb[_0x4b95b6(0x184)]({..._0x2cd95b[_0x22bf00],'undoState':_0x29346c[_0x4b95b6(0x3ca)][_0x4b95b6(0x367)],'redoState':_0x58fc6c[_0x4b95b6(0x3ca)][_0x4b95b6(0x367)]}),_0x9e44db=_0x29346c[_0x4b95b6(0x203)],_0x7bcea3=_0x58fc6c['m1Prime'];}this[_0x4b95b6(0x327)][_0x4b95b6(0x1b6)](_0x3da8d2,{'history':_0x53704b,'collaboration':_0xe604eb});}};G=C([S(0x0,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x217)])),S(0x1,p[_0x437440(0x295)]),S(0x2,(0x0,n['Inject'])(m[_0x437440(0x3ce)]))],G);let K=class{constructor(_0x3f1082,_0x31e5d1){const _0xd316a=_0x437440;this[_0xd316a(0x323)]=_0x3f1082,this['_transformService']=_0x31e5d1;}[_0x437440(0x21c)](_0x348da9){const _0x52d5c2=_0x437440;var _0x108cd0;let _0x17bab9=this['_injector'][_0x52d5c2(0x226)](m[_0x52d5c2(0x2e1)]),_0x204b59=(_0x108cd0=_0x17bab9[_0x52d5c2(0x33f)]())==null?[]:_0x108cd0;if(_0x204b59[_0x52d5c2(0x346)]===0x0)return;let _0x3b2c5f=_0x348da9[_0x52d5c2(0x2b7)],_0x2f6c8e=[{'id':_0x52d5c2(0x242),'params':{'unitId':_0x3b2c5f,'actions':null,'textRanges':_0x204b59}}],_0x21da5f=this[_0x52d5c2(0x312)][_0x52d5c2(0x1b5)](_0x348da9,_0x2f6c8e);if(!(0x0,p['isTransformMutationsWithChangesetSuccess'])(_0x21da5f))throw _0x21da5f[_0x52d5c2(0x196)];let _0x3d890f=_0x21da5f['m2Prime'][0x0][_0x52d5c2(0x367)]['textRanges'];Array[_0x52d5c2(0x3aa)](_0x3d890f)&&_0x3d890f[_0x52d5c2(0x346)]&&_0x17bab9[_0x52d5c2(0x405)](_0x3d890f,{'unitId':_0x3b2c5f,'subUnitId':_0x3b2c5f},!0x1);}};K=C([S(0x0,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x217)])),S(0x1,p[_0x437440(0x295)])],K);let q=class extends n[_0x437440(0x2d0)]{constructor(_0xb95054,_0x32cf2e,_0x362486,_0x1ebcac,_0x42f2c1,_0x352115,_0x108c25){const _0xa28ccd=_0x437440;super(),this[_0xa28ccd(0x1d1)]=_0xb95054,this[_0xa28ccd(0x1f3)]=_0x32cf2e,this[_0xa28ccd(0x3b5)]=_0x362486,this[_0xa28ccd(0x165)]=_0x1ebcac,this[_0xa28ccd(0x35a)]=_0x42f2c1,this[_0xa28ccd(0x27b)]=_0x352115,this['_localeService']=_0x108c25,x(this,_0xa28ccd(0x183),new i[(_0xa28ccd(0x2e8))](t[_0xa28ccd(0x361)][_0xa28ccd(0x229)])),this[_0xa28ccd(0x14b)]();}[_0x437440(0x14b)](){const _0x113bde=_0x437440;this[_0x113bde(0x2cb)](this[_0x113bde(0x1d1)][_0x113bde(0x3b2)][_0x113bde(0x1d4)](_0x6e87b6=>{const _0x4955d2=_0x113bde;_0x6e87b6 instanceof t[_0x4955d2(0x372)]&&_0x6e87b6[_0x4955d2(0x2f7)]({'onTransformIME':_0x1fce10=>this[_0x4955d2(0x1f3)]['transformIMECache'](_0x1fce10),'onTransformState':_0x565894=>this[_0x4955d2(0x3b5)][_0x4955d2(0x160)](_0x565894),'onTransformSelections':_0x45d884=>this[_0x4955d2(0x165)][_0x4955d2(0x21c)](_0x45d884),'onSyncEditingCollabCursor':_0x3245a8=>this[_0x4955d2(0x35a)][_0x4955d2(0x33e)](_0x3245a8),'onTransformRemoteChangesetByIMECache':_0x217327=>this['_docTransformIMECacheService'][_0x4955d2(0x223)](_0x217327),'onTransformRemoteChangesetByStateCache':_0x1c7b1e=>this[_0x4955d2(0x3b5)][_0x4955d2(0x223)](_0x1c7b1e)});}));}};q=C([S(0x0,(0x0,n[_0x437440(0x16c)])(t[_0x437440(0x416)])),S(0x1,(0x0,n[_0x437440(0x16c)])(W)),S(0x2,(0x0,n['Inject'])(G)),S(0x3,(0x0,n['Inject'])(K)),S(0x4,(0x0,n[_0x437440(0x16c)])(j)),S(0x5,r['IMessageService']),S(0x6,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x2f3)]))],q);let J=class extends n[_0x437440(0x2d0)]{constructor(_0xe96901,_0x462dc9,_0xf6e92,_0x32f9a6){const _0x2503a6=_0x437440;super(),this['_injector']=_0xe96901,this[_0x2503a6(0x152)]=_0x462dc9,this[_0x2503a6(0x393)]=_0xf6e92,this[_0x2503a6(0x297)]=_0x32f9a6,x(this,_0x2503a6(0x153),void 0x0),this[_0x2503a6(0x329)]();}[_0x437440(0x329)](){const _0x122aff=_0x437440;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this[_0x122aff(0x37a)](),this[_0x122aff(0x19b)]();}[_0x437440(0x19b)](){const _0x1ae1b5=_0x437440;this[_0x1ae1b5(0x2cb)](this[_0x1ae1b5(0x297)][_0x1ae1b5(0x240)]['subscribe'](_0x2433a2=>{const _0x41effb=_0x1ae1b5;this[_0x41effb(0x153)]=_0x2433a2==null?void 0x0:_0x2433a2[_0x41effb(0x413)];}));}[_0x437440(0x377)](){const _0x415bdf=_0x437440;let _0x4d9514=_0x3d67c9=>{const _0x13bb3b=_0x30e6;var _0x3f4cf9;this[_0x13bb3b(0x3bc)]('error',_0x13bb3b(0x2b1)+_0x3d67c9['message']+_0x13bb3b(0x21d)+_0x3d67c9[_0x13bb3b(0x30a)]+':'+_0x3d67c9[_0x13bb3b(0x324)]+':'+_0x3d67c9[_0x13bb3b(0x27f)]+'\x0a'+(((_0x3f4cf9=_0x3d67c9[_0x13bb3b(0x196)])==null?void 0x0:_0x3f4cf9[_0x13bb3b(0x15f)])||''));};window[_0x415bdf(0x233)](_0x415bdf(0x196),_0x4d9514),this[_0x415bdf(0x2cb)](()=>{const _0xb64880=_0x415bdf;window[_0xb64880(0x1a0)]('error',_0x4d9514);});}[_0x437440(0x194)](){const _0x2fbfa6=_0x437440;let _0x25f3e2=_0x147c8e=>{const _0x38b46c=_0x30e6;this[_0x38b46c(0x3bc)](_0x38b46c(0x196),_0x38b46c(0x331)+_0x147c8e[_0x38b46c(0x3e5)]);};window[_0x2fbfa6(0x233)]('unhandledrejection',_0x25f3e2),this[_0x2fbfa6(0x2cb)](()=>{const _0x574a38=_0x2fbfa6;window[_0x574a38(0x1a0)]('unhandledrejection',_0x25f3e2);});}['_monkeyPatchLogService'](){const _0x41b6d8=_0x437440;let _0x47ef5e=this[_0x41b6d8(0x393)][_0x41b6d8(0x196)]['bind'](this[_0x41b6d8(0x393)]);this[_0x41b6d8(0x393)][_0x41b6d8(0x196)]=(..._0x5ceb1b)=>{const _0xe182d9=_0x41b6d8;let _0x4dc2ec=_0x5ceb1b[_0xe182d9(0x2c5)](_0x20652a=>_0x20652a instanceof Error?_0x20652a[_0xe182d9(0x2a3)]+'\x0a'+_0x20652a[_0xe182d9(0x15f)]:String(_0x20652a))['join']('\x20');this[_0xe182d9(0x3bc)](_0xe182d9(0x196),_0xe182d9(0x24b)+_0x4dc2ec),_0x47ef5e(..._0x5ceb1b);},this[_0x41b6d8(0x2cb)](()=>{const _0x7fb6a6=_0x41b6d8;this[_0x7fb6a6(0x393)]['error']=_0x47ef5e;});}[_0x437440(0x3bc)](_0x4968fa,_0x22f0b7){const _0x206031=_0x437440;try{let _0x548faa={'userId':this['_memberID'],'logLabel':_0x4968fa,'content':_0x22f0b7};this[_0x206031(0x152)][_0x206031(0x1b3)](_0x206031(0x1c6),{'body':_0x548faa})[_0x206031(0x394)](()=>{});}catch{}}};J=C([S(0x0,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x217)])),S(0x1,(0x0,n[_0x437440(0x16c)])(d[_0x437440(0x1f6)])),S(0x2,n['ILogService']),S(0x3,(0x0,n[_0x437440(0x16c)])(t[_0x437440(0x369)]))],J);function Ce(_0x2a00b3){const _0x164053=_0x437440;var _0x4d0d5a,_0x39169b;let _0x344b1d=(_0x4d0d5a=_0x2a00b3[_0x164053(0x1d2)])==null?void 0x0:_0x4d0d5a[_0x164053(0x3b1)],_0x2c1072=((_0x39169b=_0x2a00b3[_0x164053(0x1d2)])==null?void 0x0:_0x39169b[_0x164053(0x252)])||0x0;return _0x344b1d===h[_0x164053(0x3f0)]['START_CALCULATION']&&_0x2c1072>0x0;}function we(_0x257dba){const _0x5add01=_0x437440;return _0x257dba[_0x5add01(0x29d)]===h['FormulaExecutedStateType']['SUCCESS'];}let Y=class extends n[_0x437440(0x2d0)]{constructor(_0x52f483,_0xe5424f,_0x28e0b1,_0x103d10,_0x1b41d2,_0x23ad4a,_0xddedf0){const _0x5c7aef=_0x437440;super(),this[_0x5c7aef(0x27b)]=_0x52f483,this['_commandService']=_0xe5424f,this[_0x5c7aef(0x39c)]=_0x28e0b1,this[_0x5c7aef(0x152)]=_0x103d10,this['_univerInstanceService']=_0x1b41d2,this[_0x5c7aef(0x393)]=_0x23ad4a,this[_0x5c7aef(0x398)]=_0xddedf0,x(this,_0x5c7aef(0x3d7),null),x(this,_0x5c7aef(0x1ac),0x0),x(this,_0x5c7aef(0x2eb),0x0),x(this,_0x5c7aef(0x259),[]),x(this,_0x5c7aef(0x2c9),0x0),this[_0x5c7aef(0x17a)]();}[_0x437440(0x17a)](){const _0x1e55dc=_0x437440;this['disposeWithMe'](this[_0x1e55dc(0x3f2)][_0x1e55dc(0x178)]((_0x39544c,_0x19eb30)=>{const _0x4142dc=_0x1e55dc;var _0x808890;if(_0x39544c['id']!==h['SetFormulaCalculationStartMutation']['id'])return;let _0x328c60=_0x39544c[_0x4142dc(0x367)];if(this['_hasFormulaInDirtyRanges']((_0x808890=_0x328c60[_0x4142dc(0x3de)])==null?[]:_0x808890)&&!this[_0x4142dc(0x1be)]())throw this['_checkAndWaitForCalculationPermission'](_0x39544c,_0x19eb30),this[_0x4142dc(0x36e)](),new n[(_0x4142dc(0x2bb))]();})),this[_0x1e55dc(0x2cb)](this[_0x1e55dc(0x3f2)][_0x1e55dc(0x264)]((_0x45dfb4,_0x35943d)=>{const _0x13f955=_0x1e55dc;if(_0x45dfb4['id']!==h[_0x13f955(0x338)]['id'])return;let _0x27c28d=_0x45dfb4['params'];if(Ce(_0x27c28d)){let _0x310774=(0x0,n[_0x13f955(0x400)])();this[_0x13f955(0x259)][_0x13f955(0x3da)](_0x310774),this[_0x13f955(0x33d)](_0x310774);}else{if(we(_0x27c28d)&&this[_0x13f955(0x259)][_0x13f955(0x346)]>0x0){let _0x2fd450=this[_0x13f955(0x259)][_0x13f955(0x30f)]();this[_0x13f955(0x266)](_0x2fd450);}}}));}[_0x437440(0x1c5)](){const _0x125856=_0x437440;super[_0x125856(0x1c5)](),this[_0x125856(0x25e)](),this[_0x125856(0x259)]=[],this[_0x125856(0x2eb)]=0x0,this[_0x125856(0x1ac)]=0x0,this[_0x125856(0x2c9)]=0x0;}async[_0x437440(0x1cd)](_0x4a1886,_0x449db0){const _0x52b748=_0x437440;for(let _0x18ef98=0x0;_0x18ef98<0x1e;_0x18ef98++)try{if(await this[_0x52b748(0x1f4)](),this[_0x52b748(0x1be)]()){this[_0x52b748(0x374)](_0x4a1886,_0x449db0),this[_0x52b748(0x27b)][_0x52b748(0x234)]({'content':this['_localeService']['t'](_0x52b748(0x3fc)),'type':o[_0x52b748(0x3a1)][_0x52b748(0x2c3)]});return;}await new Promise(_0x46ed2a=>{const _0x16d0f8=_0x52b748;this[_0x16d0f8(0x3d7)]=window[_0x16d0f8(0x208)](_0x46ed2a,0x3e8);});}catch(_0x4bf9e2){this['_logService']['error'](_0x4bf9e2);}this[_0x52b748(0x27b)][_0x52b748(0x234)]({'content':this[_0x52b748(0x398)]['t'](_0x52b748(0x40d)),'type':o[_0x52b748(0x3a1)]['Error']});}['_applyCommand'](_0x97e991,_0x24eb5c){const _0x3d049f=_0x437440;try{this[_0x3d049f(0x3f2)][_0x3d049f(0x2da)](_0x97e991['id'],_0x97e991['params'],_0x24eb5c);}catch(_0x62fa87){this[_0x3d049f(0x393)][_0x3d049f(0x196)](_0x62fa87);}}[_0x437440(0x38e)](_0x1620a1,_0x4231bb){const _0x43766f=_0x437440;_0x4231bb<this[_0x43766f(0x2c9)]||(this[_0x43766f(0x2c9)]=_0x4231bb,this[_0x43766f(0x1ac)]=Number['parseInt'](_0x1620a1[_0x43766f(0x1ab)]),this[_0x43766f(0x2eb)]=Number[_0x43766f(0x26c)](_0x1620a1[_0x43766f(0x23f)]));}async[_0x437440(0x33d)](_0x3bb6dc){const _0x5009f3=_0x437440;let _0x128085=Date[_0x5009f3(0x303)]();try{var _0x4fa48a,_0x59e6dd;let _0x41942c=((_0x4fa48a=this['_configService'][_0x5009f3(0x381)](t[_0x5009f3(0x2ca)]))==null?void 0x0:_0x4fa48a[_0x5009f3(0x3a7)])||'/universer-api/license/formula/limit/start',_0x40d697=(await this[_0x5009f3(0x152)][_0x5009f3(0x1b3)](_0x41942c,{'body':JSON[_0x5009f3(0x3ac)]({'taskId':_0x3bb6dc})}))[_0x5009f3(0x283)];if(((_0x59e6dd=_0x40d697[_0x5009f3(0x196)])==null?void 0x0:_0x59e6dd[_0x5009f3(0x2b6)])!==y[_0x5009f3(0x356)]['OK'])return;this[_0x5009f3(0x38e)](_0x40d697[_0x5009f3(0x199)],_0x128085);}catch(_0x451854){this[_0x5009f3(0x393)][_0x5009f3(0x196)](_0x451854);}}async['_getFormulaLimitStatus'](_0x247944){const _0x473a16=_0x437440;let _0x236d2d=Date[_0x473a16(0x303)]();try{var _0x57b8cf,_0x21bbb3;let _0x2a1a0e=((_0x57b8cf=this['_configService']['getConfig'](t[_0x473a16(0x2ca)]))==null?void 0x0:_0x57b8cf[_0x473a16(0x313)])||'/universer-api/license/formula/limit/status',_0x1c30eb=_0x247944?_0x2a1a0e+_0x473a16(0x1fe)+encodeURIComponent(_0x247944):_0x2a1a0e,_0x1c3f0d=(await this[_0x473a16(0x152)][_0x473a16(0x226)](_0x1c30eb))[_0x473a16(0x283)];if(((_0x21bbb3=_0x1c3f0d[_0x473a16(0x196)])==null?void 0x0:_0x21bbb3[_0x473a16(0x2b6)])!==y['ErrorCode']['OK'])return;this[_0x473a16(0x38e)](_0x1c3f0d['limitInfo'],_0x236d2d);}catch(_0x166e16){this[_0x473a16(0x393)][_0x473a16(0x196)](_0x166e16);}}async[_0x437440(0x266)](_0x91f659){const _0x283283=_0x437440;let _0x5b8617=Date[_0x283283(0x303)]();try{var _0x5469c6,_0x4f0964;let _0x1ae7d8=((_0x5469c6=this['_configService']['getConfig'](t[_0x283283(0x2ca)]))==null?void 0x0:_0x5469c6['releaseFormulaLimitUrl'])||_0x283283(0x255),_0x5b4be5=(await this[_0x283283(0x152)]['post'](_0x1ae7d8,{'body':JSON[_0x283283(0x3ac)]({'taskId':_0x91f659})}))['body'];if(((_0x4f0964=_0x5b4be5['error'])==null?void 0x0:_0x4f0964[_0x283283(0x2b6)])!==y[_0x283283(0x356)]['OK'])return;this[_0x283283(0x38e)](_0x5b4be5[_0x283283(0x199)],_0x5b8617);}catch(_0x32d215){this['_logService']['error'](_0x32d215);}}['_checkCalculationAvailable'](){const _0x4a6d16=_0x437440;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x4a6d16(0x1ac)]-this[_0x4a6d16(0x2eb)]>0x0;}[_0x437440(0x25e)](){const _0x101986=_0x437440;this[_0x101986(0x3d7)]&&(clearTimeout(this[_0x101986(0x3d7)]),this[_0x101986(0x3d7)]=null);}[_0x437440(0x36e)](){const _0x420dfe=_0x437440;this[_0x420dfe(0x27b)][_0x420dfe(0x234)]({'content':this[_0x420dfe(0x398)]['t'](_0x420dfe(0x305)),'type':o['MessageType']['Loading']});}[_0x437440(0x2a8)](_0x59778c){const _0x476cc2=_0x437440;for(let _0x4c0935 of _0x59778c){let {unitId:_0x54a7fa,sheetId:_0x4612cd,range:_0x4e6e6f}=_0x4c0935,_0x53112b=this['_univerInstanceService'][_0x476cc2(0x1f2)](_0x54a7fa);if(!_0x53112b)continue;let _0x274550=_0x53112b[_0x476cc2(0x1f0)](_0x4612cd);if(!_0x274550)continue;let _0x3763d5=_0x274550[_0x476cc2(0x1e8)]();for(let _0x4f59d2=_0x4e6e6f[_0x476cc2(0x3b8)];_0x4f59d2<=_0x4e6e6f[_0x476cc2(0x1ce)];_0x4f59d2++)for(let _0x4ac7bc=_0x4e6e6f[_0x476cc2(0x350)];_0x4ac7bc<=_0x4e6e6f[_0x476cc2(0x3d5)];_0x4ac7bc++){let _0x22366e=_0x3763d5[_0x476cc2(0x1ee)](_0x4f59d2,_0x4ac7bc);if(_0x22366e&&((0x0,n[_0x476cc2(0x336)])(_0x22366e['f'])||(0x0,n[_0x476cc2(0x330)])(_0x22366e['si'])))return!0x0;}}return!0x1;}};Y=C([S(0x0,(0x0,n['Inject'])(r[_0x437440(0x1f5)])),S(0x1,n[_0x437440(0x310)]),S(0x2,n[_0x437440(0x1a2)]),S(0x3,(0x0,n[_0x437440(0x16c)])(d[_0x437440(0x1f6)])),S(0x4,n[_0x437440(0x22f)]),S(0x5,n['ILogService']),S(0x6,(0x0,n['Inject'])(n[_0x437440(0x2f3)]))],Y);let X=class extends n[_0x437440(0x2d0)]{constructor(_0x144060,_0x19bb2f,_0x41d453){const _0x32e2f7=_0x437440;super(),this[_0x32e2f7(0x39c)]=_0x144060,this[_0x32e2f7(0x27d)]=_0x19bb2f,this[_0x32e2f7(0x1f8)]=_0x41d453,x(this,_0x32e2f7(0x2dd),new Map()),x(this,_0x32e2f7(0x351),new Map()),x(this,_0x32e2f7(0x156),!0x1);}['disableLocalCache'](){const _0x3d7434=_0x437440;this[_0x3d7434(0x156)]=!0x0;}['enableLocalCache'](){const _0x151074=_0x437440;this[_0x151074(0x156)]=!0x1;}get[_0x437440(0x1eb)](){return this['_saveTaskMap'];}[_0x437440(0x1c5)](){const _0x57c76c=_0x437440;this[_0x57c76c(0x1f1)]()['then'](()=>super[_0x57c76c(0x1c5)]());}async['loadOfflineData'](_0x2db5da){const _0x591e7d=_0x437440;return this[_0x591e7d(0x156)]?null:this[_0x591e7d(0x27d)][_0x591e7d(0x2c1)]((0x0,t[_0x591e7d(0x347)])(_0x2db5da));}async['saveOfflineData'](_0x3a25c4,_0x8ba07){const _0x587f20=_0x437440;return!!this['_localStorageService'][_0x587f20(0x189)]((0x0,t[_0x587f20(0x347)])(_0x3a25c4),_0x8ba07);}async[_0x437440(0x186)](_0x417e4a,_0x3af20b){const _0x31584d=_0x437440;var _0x4bf017;let _0x42ad1a=(_0x4bf017=this[_0x31584d(0x2dd)]['get'](_0x417e4a))==null?await this['_localStorageService'][_0x31584d(0x2c1)]((0x0,t[_0x31584d(0x347)])(_0x417e4a)):_0x4bf017;if(!_0x42ad1a)return;let _0x4f6791=Date[_0x31584d(0x303)](),_0x1f59a7=new Date(_0x4f6791)[_0x31584d(0x1ca)]();await this[_0x31584d(0x27d)]['setItem']((0x0,t[_0x31584d(0x347)])(_0x417e4a)+_0x31584d(0x17b)+_0x4f6791,{'reason':_0x3af20b,'createdAt':_0x1f59a7,'data':_0x42ad1a});}[_0x437440(0x383)](_0x27af29,_0x131a01,_0x477b04,_0x24f42d){const _0x20eb46=_0x437440;let _0x54af9d=this[_0x20eb46(0x1f8)]['getCurrentRevOfUnit'](_0x27af29);this[_0x20eb46(0x2dd)]['set'](_0x27af29,{'unitID':_0x27af29,'type':_0x131a01,'awaitingChangeset':_0x477b04,'mutations':_0x24f42d,'rev':_0x54af9d}),this[_0x20eb46(0x351)][_0x20eb46(0x15d)](_0x27af29)||this['_scheduleSaving'](_0x27af29);}['_scheduleSaving'](_0x1dc429){const _0x4fe5d9=_0x437440;let _0x3a122a=this[_0x4fe5d9(0x37d)]();_0x3a122a===0x0?this[_0x4fe5d9(0x147)](_0x1dc429):this[_0x4fe5d9(0x351)][_0x4fe5d9(0x18b)](_0x1dc429,window[_0x4fe5d9(0x208)](()=>this[_0x4fe5d9(0x147)](_0x1dc429),_0x3a122a));}['_getSaveTimeout'](){const _0x24d361=_0x437440;var _0xac37e7;return(_0xac37e7=this[_0x24d361(0x39c)][_0x24d361(0x381)](t[_0x24d361(0x271)]))==null?t[_0x24d361(0x40b)]:_0xac37e7;}[_0x437440(0x147)](_0x416c1f){const _0x5f104b=_0x437440;let _0x45b9d2=this[_0x5f104b(0x351)][_0x5f104b(0x226)](_0x416c1f);return _0x45b9d2!==void 0x0&&window[_0x5f104b(0x28d)](_0x45b9d2),this['_localStorageService']['setItem']((0x0,t[_0x5f104b(0x347)])(_0x416c1f),this[_0x5f104b(0x2dd)][_0x5f104b(0x226)](_0x416c1f))['then'](()=>this['_saveTaskMap'][_0x5f104b(0x244)](_0x416c1f));}async[_0x437440(0x1f1)](){const _0x20b9df=_0x437440;let _0x37e222=[];this[_0x20b9df(0x351)]['forEach']((_0xe88105,_0x280bef)=>{const _0xa34734=_0x20b9df;window[_0xa34734(0x28d)](_0xe88105),_0x37e222[_0xa34734(0x3da)](this[_0xa34734(0x147)](_0x280bef)[_0xa34734(0x1e7)](()=>{const _0x1e8943=_0xa34734;this[_0x1e8943(0x351)][_0x1e8943(0x244)](_0x280bef);}));}),await Promise[_0x20b9df(0x1ea)](_0x37e222);}};X=C([S(0x0,n[_0x437440(0x1a2)]),S(0x1,n[_0x437440(0x382)]),S(0x2,(0x0,n[_0x437440(0x16c)])(p[_0x437440(0x3db)]))],X);var Te=class extends n[_0x437440(0x157)]{constructor(){const _0x4a9709=_0x437440;super(),x(this,_0x4a9709(0x210),void 0x0),this[_0x4a9709(0x210)]=(0x0,i[_0x4a9709(0x38d)])(window,_0x4a9709(0x385))[_0x4a9709(0x1a8)]((0x0,i[_0x4a9709(0x316)])(this['dispose$']),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i[_0x4a9709(0x2a7)])(void 0x0));}[_0x437440(0x309)](_0x4d4c5e,_0x2421b3,_0x5bae94=!0x1){const _0x3304b3=_0x437440;let _0x2b8b25=new URL(window['location'][_0x3304b3(0x2d5)]);_0x2b8b25[_0x3304b3(0x1de)][_0x3304b3(0x18b)](_0x4d4c5e,_0x2421b3),_0x5bae94?window['history'][_0x3304b3(0x276)]('','',_0x2b8b25['toString']()):window[_0x3304b3(0x3b7)]['pushState']('','',_0x2b8b25['toString']());}[_0x437440(0x3cc)](_0x288ebf,_0xfca97a=!0x1){const _0x38efcf=_0x437440;let _0x2665b0=new URL(window[_0x38efcf(0x3b0)][_0x38efcf(0x2d5)]);_0x2665b0[_0x38efcf(0x1de)]['delete'](_0x288ebf),_0xfca97a?window[_0x38efcf(0x3b7)][_0x38efcf(0x276)]('','',_0x2665b0[_0x38efcf(0x1cf)]()):window[_0x38efcf(0x3b7)]['pushState']('','',_0x2665b0['toString']());}[_0x437440(0x24c)](_0x19484e){const _0x68e17b=_0x437440;var _0x195e05;return(_0x195e05=new URL(window['location']['href'])['searchParams'][_0x68e17b(0x226)](_0x19484e))==null?void 0x0:_0x195e05;}};let Z=class extends n[_0x437440(0x354)]{constructor(_0x2deeb3=ue,_0x2a95b0,_0xe9ab30,_0x2aa8f5){const _0x31b241=_0x437440;super(),this[_0x31b241(0x281)]=_0x2deeb3,this[_0x31b241(0x414)]=_0x2a95b0,this[_0x31b241(0x323)]=_0xe9ab30,this[_0x31b241(0x39c)]=_0x2aa8f5;let {..._0x21f610}=(0x0,n[_0x31b241(0x2b5)])({},ue,this[_0x31b241(0x281)]);this['_configService']['setConfig']('collaboration-client-ui.config',_0x21f610);}[_0x437440(0x15b)](){const _0x4f0053=_0x437440;this[_0x4f0053(0x227)](),this['_initDependencies']();}['onRendered'](){const _0x3c20e7=_0x437440;this[_0x3c20e7(0x38a)]();}[_0x437440(0x227)](){const _0x56bf41=_0x437440;var _0x31625d;let _0x5d33cc=[[k],[Y],[H,{'useClass':Te}],[d['ISocketService'],{'useClass':d[_0x56bf41(0x169)]}],[t['ILocalCacheService'],{'useClass':X}],[w],[T],[V],[F],[U]];this[_0x56bf41(0x281)][_0x56bf41(0x2c6)]!==!0x1&&_0x5d33cc[_0x56bf41(0x3da)]([K],[W],[G],[j],[q],[E]),this['_config'][_0x56bf41(0x2e6)]&&_0x5d33cc[_0x56bf41(0x3da)]([J]),(0x0,n[_0x56bf41(0x201)])(this[_0x56bf41(0x323)],(0x0,n[_0x56bf41(0x20c)])(_0x5d33cc,(_0x31625d=this['_config'])==null?void 0x0:_0x31625d[_0x56bf41(0x1f9)]));}[_0x437440(0x38a)](){const _0x24b7df=_0x437440;this[_0x24b7df(0x281)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x24b7df(0x2cb)](this[_0x24b7df(0x414)][_0x24b7df(0x3bb)](n[_0x24b7df(0x24a)]['UNIVER_DOC'],[R])),this['disposeWithMe'](this[_0x24b7df(0x414)][_0x24b7df(0x3bb)](n[_0x24b7df(0x24a)][_0x24b7df(0x29a)],[z])),this[_0x24b7df(0x2cb)](this[_0x24b7df(0x414)][_0x24b7df(0x3bb)](n['UniverInstanceType'][_0x24b7df(0x335)],[B])),this[_0x24b7df(0x2cb)](this[_0x24b7df(0x414)][_0x24b7df(0x3bb)](n[_0x24b7df(0x24a)][_0x24b7df(0x2dc)],[I]));}[_0x437440(0x399)](){const _0x4ab8bf=_0x437440;(0x0,n[_0x4ab8bf(0x19d)])(this[_0x4ab8bf(0x323)],[[F],[w],[T],[V],[U],[Y]]),this[_0x4ab8bf(0x281)][_0x4ab8bf(0x2c6)]!==!0x1&&(0x0,n[_0x4ab8bf(0x19d)])(this[_0x4ab8bf(0x323)],[[q],[E]]),this['_config'][_0x4ab8bf(0x2e6)]&&(0x0,n[_0x4ab8bf(0x19d)])(this[_0x4ab8bf(0x323)],[[J]]);}};x(Z,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),x(Z,_0x437440(0x170),ce),x(Z,'version',le),Z=C([(0x0,n[_0x437440(0x235)])(t['UniverCollaborationClientPlugin']),S(0x1,u['IRenderManagerService']),S(0x2,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x217)])),S(0x3,n[_0x437440(0x1a2)])],Z);function _0x184f(){const _0x2abbe4=['startsWith','Shape','fromEvent','_setFormulaLimitStatus','getCoordByCell','theme$','_refreshCollabCursors','collaboration-client-ui.collabClient.tooltip.reconnect','_logService','catch','getCurrentSkeleton','focusedId','Unknown\x20user','_localeService','_initDependencies','slide-element-selection','getMemberID','_configService','_labelHorizontalPosition','CONFLICT','BOARD_TOP_RIGHT_MENU_LEADING_PART','complete','MessageType','yellow.400','setAlpha','black','getActiveRange','EffectRefRangId','startFormulaLimitUrl','_name','undoState','isArray','isTransformMutationFailure','stringify','_createSocketURL','_beforeCloseService','_cursorShapes','location','stage','entityInit$','redoState','debounce','_docTransformStateCacheService','_hideTimer','history','startRow','Rect','DisposableCollection','registerRenderModule','_uploadLog','_session','contains','_unitOnClients','toDisposable','setUndoRedoMutationParamsCache','evented','pulse','indicator','_stopBlinking','_scheduleRender','fillText','rgb','triggerDblclick','m2Prime','distinctUntilChanged','removeParam','_docSkeletonManagerService','DocStateChangeManagerService','_blinkIntervalTimer','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','asObservable','getStateCache','loadUnit','_draw','endColumn','angle','_pollingInterval','createSocket','_isApplyingOverlays','push','RevisionService','registerRefRange','find','dirtyRanges','RichTextEditingMutation','Failed','clickable','sessionStatus$','_pointerMoveDisposable','application/json','reason','_getSheetObject','getUniverSheetInstance','Warning','_updateCollabCursors','string','_hover','getFocusedUnit','removeObjects','setOffsetY','univer-appearance-none','FormulaExecuteStageType','resize','_commandService','getCurrentUnitOfType','addClipboardHook','span','_initEvent','getMember','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','InsertRangeMoveDownCommandId','_cursors','_range','collaboration-client-ui.formula.calculation.started','_send','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_univerInstanceService','generateRandomId','_syncEditingCollabCursorService','BuiltInUIPart','deserializeRangeWithSheet','color','replaceDocRanges','getRenderById','_renderScheduled','roomMembers$','handleDeleteRangeMoveLeft','fromEventSubject','LOCAL_CACHE_INTERVAL','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','collaboration-client-ui.formula.calculation.unable','_showText','rgba(255,\x20255,\x20255,\x200.01)','toRgbString','OTHER_CLIENTS_EDITING','_id','memberID','_renderManagerService','object','CollaborationController','_backgroundColor','FETCH_MISS','with','collaboration-client-ui.collaboration.single-unit.warning','jsx','_doCreateSocket','context','_saveCache','SheetsSelectionsService','key','_drawTextRange','_initEntityListener','ThemeService','_unitStatus','offsetY','board-element-selection','handleDeleteRangeMoveUp','uni.network.url-service','_httpService','_memberID','_onCursorUpdate','font','_disabled','RxDisposable','getColor','name','_toggleOffline','onStarting','status','has','setShapeProps','stack','transformStateCache','getUnitId','spin','setInterval','findNodePositionByCharIndex','_docTransformSelectionsService','ticket','from','INotificationService','WebSocketService','defineProperty','function','Inject','clearInterval','cursorInfo','assignAColorForMemberID','packageName','collaboration-client-ui.permission.content','_drawRectRange','_hovered','getCollabEntity$','useMemo','_context','BrowserCollaborationSocketService','beforeCommandExecuted','_highlightSecond','_initCommandInterceptor',':backup:','serializeRangeWithSheet','arc','_sheetSkeletonManagerService','transformIMECache','collaboration-client-ui.collabStatus.conflict','RegularPolygon','HEADER_MENU','_status$','unshift','default','backupOfflineData','sheetID','onPointerLeave$','setItem','getSnapshot','set','fill','DocIMEInputManagerService','/run/','_heartbeatTimer','OffLineIcon','_online','TEXT_RANGE_LAYER_INDEX','tooltipKey','_initUnhandledRejectionListener','hide','error','some','true','limitInfo','DeleteRangeMoveUpCommandId','_initUserListener','_initStatusComponent','touchDependencies','10GTkeoz','drawWith','removeEventListener','unitId','IConfigService','constructor','SOCKET_FAILED_RETRY','CollaborationUIEventService','handleMoveRange','CLOSE_ROOM','pipe','RECT','_collabCursorState$','maxFormulaLimit','_maxFormulaLimit','replace','backgroundColor','collab-rect-range-','button','moveTo','collaboration-client-ui.session.will-retry','post','handleInsertRow','transformMutationsWithChangeset','setStateCache','_onRefRangeChange','_initStatusListener','_onCursorDelete','univer-flex\x20univer-items-center\x20univer-justify-center','_docSkeleton','addObject$','pageManager','_checkCalculationAvailable','origin','_transformUndoRedoStack','flatMap','_localCacheService','onPointerMove$','_scene','dispose','/universer-api/frontend/logs','PENDING','hovered','lineTo','toISOString','getTypeOfUnitAdded$','runOnServer','_checkAndWaitForCalculationPermission','endRow','toString','VIEW_MAIN','_collaborationController','stageInfo','getOffsetConfig','subscribe','_updateURLWithCurrentState','strokeWidth','_transformHistoryAndStateStack','getUnhiddenWorksheets','Rectangle','SetTextSelectionsOperation','call','_entities','isInternalEditorID','searchParams','isActive','_instanceService','OTHER_CLIENT_EDITING','IURLService','univer-text-green-500','UnitStatus','isTransformMutationsWithChangesetSuccess','i18nKey','then','getCellMatrix','combineLatest','all','saveTaskMap','createInstance','_memberService','getValue','colorClass','getSheetBySheetId','exhaustSavingTask','getUnit','_docTransformIMECacheService','_getFormulaLimitStatus','IMessageService','HTTPService','_cursorInfo$','_revisionService','override','collaboration-client-ui.collabStatus.syncing','text','DEFAULT_WS_SESSION_TICKET_URL','DOC_RANGE_TYPE','?taskId=','SheetSkeletonManagerService','ONLINE','registerDependencies','UniverCollaborationClientUIPlugin','m1Prime','clear','focused$','sheetId','RefRangeService','setTimeout','_uiPartsService','polite','univer-text-orange-500','mergeOverrideWithDependencies','_refRangeService','executionId','dispose$','urlChange$','...','9621623csctGh','_getSessionTicket','roomMembers','_urlService','_startDocCollabCursor','Injector','getVpScrollXYInfoByPosToVp','unsubscribe','top','mutations','transformSelections','\x20at\x20','InsertColCommandId','CollaborationEvent','_shapes','_startBlinking','1.0.0-alpha.3','transformRemoteChangeset','makeDirty','getMergeData','get','_registerDependencies','_collaborationUIEventService','NOT_COLLAB','1533159vZqVWb','symbol','_colorIndex','getActivePageId','textRanges','IUniverInstanceService','storage','getBoardElementRenderObjectKey','DesktopCollaborationStatusDisplayController','addEventListener','show','DependentOn','_getAnchorBounding','useDependency','getAncestorScale','collab-text-range-','MemberService','_handleEvent','_updateLocalCursor','imageSourceType','_docClipboardService','currentUsage','socket$','Vector2','doc.mutation.rich-text-editing','add','delete','max','_roomMembers$','getUnitStatus$','wsSessionTicketUrl','handleIRemoveRow','UniverInstanceType','[LogService\x20Error]:\x20','getParam','subscribeEvent','SUBMIT_CHANGESET_TIMEOUT','getTypeOfUnitDisposed$','slide-collab-cursor-','1pRuMrZ','totalFormulasToCalculate','handleInsertRangeMoveRight','runRefRangeMutations','/universer-api/license/formula/limit/done','_lastPointer','transform','getSheetObject','_taskIds','Error','whenReady','useCallback','_setupBeforeClosingHandler','_clearPolling','SYNCED','_startSlideCollabCursor','debounceTime','ColorKit','_removeCollabCursors','onCommandExecuted','SheetCollabCursorShape','_releaseCalculationLimit','onMouseMove','_transformPreviousActiveRange','_initResize','\x20-\x20','_getScale','parseInt','TEXT','connectInjector','_slideDrawingStateService','disposeUnit','LOCAL_CACHE_INTERVAL_KEY','save','rgba(','selectedIds','_setupSubUnitSync','replaceState','filter','WebBrowserSingleActiveUnitService','right','_handleLeaveEvent','_messageService','runId','_localStorageService','toPrimitive','colno','lineWidth','_config','debug','body','min','strokeStyle','currentSkeleton$','kind','subunit','activeSheet$','IDocClipboardService','_toggleOnline','_drawAnchor','clearTimeout','Module','8KrbOkU','_anchorDot','column','restore','getRangePointData','JOIN_ROOM_FAILED','ITransformService','COLORS','_collaborationSessionService','getCellPositionByOffset','_getSceneObjectByKey','UNIVER_SHEET','static','AWAITING','functionsExecutedState','_dataLoaderService','sessionTicket','_highlight','getCurrentSelections','size','message','getActiveSheet','data','univer-border-none\x20univer-bg-transparent','mapTo','_hasFormulaInDirtyRanges','handleInsertRangeMoveDown','fillStyle','4443936NUnnsl','forEach','collaboration-client-ui.session.connection-failed','getId','ACTIVE_UNIT_EVENT_CHANNEL','width','[Window\x20Error]:\x20','resolve','getCurrentTypeOfUnit$','saveImage','merge','code','unitID','_entityInit$','removeObject','labelHorizontalPosition','CanceledError','1803092cOnsui','univer-m-0\x20univer-p-0','includes','_startSheetCollabCursor','CollaborationUIEventId','getItem','eventID','Success','event$','map','enableDocumentCollaborationUI','_scheduleClearOtherTimer','search','_lastResponseTimestamp','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','disposeWithMe','_render','onTransformChange$','_assignedColors','switchMap','Disposable','collabCursorState$','measureText','selection','getObject','href','split','engine','invokeId','collaboration-client-ui.conflict.content','executeCommand','SetWorksheetActivateCommand','UNIVER_BOARD','_cachedData','addObject','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','left','DocSelectionManagerService','OFFLINE','status$','labelPosition','bottom','enableFrontendLog','IRemoteInstanceService','BehaviorSubject','NO_OTHER_CLIENTS_EDITING','_handleHeartbeatEvent','_currentUsage','NodePositionConvertToRectRange','_textBubble','next','UNIVER_DOC','_scheduleHeartbeat','getColorFromTheme','clsx','LocaleService','_initCommandExecutedListener','range','icon','addHandlerCallback','6321777vUKPwG','blue.400','deepClone','state$','_collabSessionService','IBeforeCloseService','Tools','univer-text-blue-500','values','_getLighterColor','_getObjectBounds','now','InsertRangeMoveRightCommandId','collaboration-client-ui.formula.calculation.waiting','ILogService','_isBlinkVisible',',\x200.2)','setParam','filename','prototype','send','getRealBound','_collabCursorController','shift','ICommandService','LoadingMultiIcon','_transformService','getFormulaLimitStatusUrl','_selfUnitIDs','3276303ZqCBWh','takeUntil','_clearOtherTimers','result','_colorAssignService','setLineDash','reconnect','_labelPosition','green.600','_startBoardCollabCursor','DeleteRangeMoveLeftCommandId','requireSession','USERS_LEAVE','getSkeleton','_injector','lineno','useObservable','Optional','_docStateChangeManagerService','_blinkTimer','_init','#FFF','addObjects','FromArray','Tooltip','_themeService','slice','isFormulaId','[Unhandled\x20Rejection]:\x20','cursorInfo$','getAllUnitsForType','190584EOTcBP','UNIVER_SLIDE','isFormulaString','_boardElementStateService','SetFormulaCalculationNotificationMutation','scene','_notificationService','@univerjs-pro/collaboration-client-ui','getSheetId','_startCalculationLimit','syncEditingCollabCursor','getDocRanges','IUIPartsService','collaboration-client-ui.collaboration.offline-data-not-saved','_color','currentTheme$','registerBeforeClose','UPDATE_CURSOR','length','getLocalCacheKey','AWAITING_WITH_PENDING','type','OnLineIcon','MoveRangeCommandId','getObjectIncludeInGroup','getCollabCursors$','InsertRowCommandId','SessionStatus','startColumn','_saveTaskMap','decorate','handleIRemoveCol','Plugin','_updateSubUnitFromURLParams','ErrorCode','_handleJoinEvent','registerComponent','ranges','_docSyncEditingCollabCursorService','getUndoRedoMutationParamsCache','_anchor','IBoardElementStateService','jiqing.500','closePath','parse','CollaborationStatus','height','Workbook','subUnitId','transformMutation','_latestCursors','params','highlightSecond','CollaborationSessionService','univer-text-red-500','purple.300','_offsetY','_ensureSubject','_showGuardMessage','row','univer-transition-all\x20univer-duration-200','univer-inline-flex\x20univer-items-center\x20univer-justify-center','DocCollaborationEntity','_getMergeRange','_applyCommand','newValue','[CollaborationDataLoaderController]','_initWindowErrorListener','init','onPointerEnter$','_monkeyPatchLogService','_removeClearOtherTimer','collaboration-client-ui.permission.title','_getSaveTimeout','univer-h-8\x20univer-w-8\x20univer-rounded-lg','120QMCeTy','CollaborationSocketService','getConfig','ILocalStorageService','updateOfflineData','_document','popstate','unit','showText','ILocalCacheService','iterator','_registerRenderDependencies'];_0x184f=function(){return _0x2abbe4;};return _0x184f();}let Q=class extends t[_0x437440(0x380)]{constructor(_0x1b150a,_0x474f3b,_0x50c9a0,_0x25be98,_0x4a3278){super(_0x1b150a,_0x474f3b,_0x50c9a0,_0x25be98,_0x4a3278);}async[_0x437440(0x3d8)](_0x9d65ce){const _0xa94320=_0x437440;let _0x50dbd6=await this[_0xa94320(0x213)](),_0x1c83cb=this[_0xa94320(0x3ad)](_0x9d65ce,_0x50dbd6);return this[_0xa94320(0x41c)](_0x1c83cb);}['_createSocketURL'](_0x2b1859,_0x3e9aae){const _0x103309=_0x437440;let _0x26c124=typeof window>'u'?new URL(_0x2b1859):new URL(_0x2b1859,window[_0x103309(0x3b0)][_0x103309(0x1bf)]);_0x26c124[_0x103309(0x1de)]['set'](_0x103309(0x29f),_0x3e9aae);let _0x16238d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x103309(0x2c8)]);return _0x16238d[_0x103309(0x226)](_0x103309(0x27c))&&_0x26c124[_0x103309(0x1de)][_0x103309(0x18b)](_0x103309(0x27c),_0x16238d['get']('runId')),_0x26c124[_0x103309(0x1cf)]();}async[_0x437440(0x213)](){const _0x10d2ed=_0x437440;var _0x4f7686,_0x794db7,_0x587d8d;let _0x1a6380=this['_configService']['getConfig'](t[_0x10d2ed(0x2ca)]),_0x1e9954=(_0x4f7686=_0x1a6380==null?void 0x0:_0x1a6380[_0x10d2ed(0x248)])==null?t[_0x10d2ed(0x1fc)]:_0x4f7686;return(_0x794db7=(_0x587d8d=(await this['_httpService'][_0x10d2ed(0x226)](_0x1e9954,{'headers':{'Content-Type':_0x10d2ed(0x3e4)}}))[_0x10d2ed(0x283)])==null?void 0x0:_0x587d8d[_0x10d2ed(0x166)])==null?'':_0x794db7;}};Q=C([S(0x0,(0x0,n[_0x437440(0x16c)])(n[_0x437440(0x217)])),S(0x1,(0x0,n[_0x437440(0x16c)])(d['HTTPService'])),S(0x2,n[_0x437440(0x1a2)]),S(0x3,n[_0x437440(0x306)]),S(0x4,p['ISnapshotServerService'])],Q);let $=class extends n[_0x437440(0x2d0)]{constructor(_0x32d731,_0x2d720f,_0x4ccd87){const _0x1b7aa0=_0x437440;super(),this['_instanceService']=_0x32d731,this[_0x1b7aa0(0x152)]=_0x2d720f,this[_0x1b7aa0(0x39c)]=_0x4ccd87;}async[_0x437440(0x1cc)](_0x24fbfa,_0x6db750,_0x55e311,..._0x22272a){const _0x5891bd=_0x437440;var _0x5456c0,_0x2e1a83,_0x3167f9,_0x5060b1;let _0x5a812a=this[_0x5891bd(0x1e0)][_0x5891bd(0x3ec)]();if(!_0x5a812a)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x370531=((_0x5456c0=this[_0x5891bd(0x39c)][_0x5891bd(0x381)](t[_0x5891bd(0x3f8)]))==null?t['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']:_0x5456c0)+'/'+_0x24fbfa+_0x5891bd(0x18e)+_0x6db750,_0x3bcbf9={'scriptId':_0x24fbfa,'runId':(_0x2e1a83=new URL(window[_0x5891bd(0x3b0)][_0x5891bd(0x2d5)])[_0x5891bd(0x1de)][_0x5891bd(0x226)](_0x5891bd(0x27c)))==null?'':_0x2e1a83,'function':_0x6db750,'unitId':_0x5a812a['getUnitId'](),'argsOfFunction':JSON[_0x5891bd(0x3ac)](_0x22272a),'invokeId':(_0x3167f9=_0x55e311[_0x5891bd(0x2d8)])==null?'':_0x3167f9,'executionId':(_0x5060b1=_0x55e311[_0x5891bd(0x20e)])==null?'':_0x5060b1};try{let _0x852c09=await this[_0x5891bd(0x152)][_0x5891bd(0x1b3)](_0x370531,{'body':_0x3bcbf9});return _0x852c09[_0x5891bd(0x283)][_0x5891bd(0x196)]&&_0x852c09[_0x5891bd(0x283)]['error'][_0x5891bd(0x2b6)]!==y[_0x5891bd(0x356)]['OK']?_0x5891bd(0x3e0):_0x852c09[_0x5891bd(0x283)][_0x5891bd(0x318)];}catch{return _0x5891bd(0x3e0);}}};$=C([S(0x0,n[_0x437440(0x22f)]),S(0x1,(0x0,n[_0x437440(0x16c)])(d[_0x437440(0x1f6)])),S(0x2,n[_0x437440(0x1a2)])],$);const Ee=0x7530,De=_0x437440(0x2af);var Oe=class extends n[_0x437440(0x2d0)]{constructor(){const _0x498c95=_0x437440;super(),x(this,_0x498c95(0x412),(0x0,n[_0x498c95(0x400)])()),x(this,'_selfUnitIDs',new Set()),x(this,_0x498c95(0x3bf),new Map()),x(this,'_heartbeatTimer',null),x(this,_0x498c95(0x317),new Map()),x(this,_0x498c95(0x14d),new Map()),this[_0x498c95(0x329)]();}[_0x437440(0x1c5)](){const _0x3b54b8=_0x437440;super[_0x3b54b8(0x1c5)](),this[_0x3b54b8(0x317)][_0x3b54b8(0x2ac)]((_0x531790,_0x6f3c7)=>this[_0x3b54b8(0x37b)](_0x6f3c7)),this[_0x3b54b8(0x18f)]&&window[_0x3b54b8(0x16d)](this[_0x3b54b8(0x18f)]);}[_0x437440(0x247)](_0x2d0709){const _0x708a0d=_0x437440;return this[_0x708a0d(0x36d)](_0x2d0709)['pipe']((0x0,i[_0x708a0d(0x3cb)])());}['editingUnit'](_0x1a45f0){const _0x523395=_0x437440;this[_0x523395(0x314)]['size']===0x0&&this[_0x523395(0x2f0)](),this[_0x523395(0x314)][_0x523395(0x243)](_0x1a45f0),this[_0x523395(0x3fd)]({'type':0x0,'memberID':this[_0x523395(0x412)],'unitIDs':[_0x1a45f0],'isForwarded':!0x1});}[_0x437440(0x270)](_0x40ad1d){const _0x47cb7a=_0x437440;this[_0x47cb7a(0x314)][_0x47cb7a(0x244)](_0x40ad1d),this[_0x47cb7a(0x314)][_0x47cb7a(0x2a2)]===0x0&&this[_0x47cb7a(0x18f)]&&window[_0x47cb7a(0x16d)](this['_heartbeatTimer']);}[_0x437440(0x329)](){const _0x188525=_0x437440;this[_0x188525(0x2cb)]((0x0,n[_0x188525(0x3c0)])((0x0,i[_0x188525(0x38d)])(window,_0x188525(0x230))[_0x188525(0x1d4)](_0x17e54e=>{const _0x5b70f8=_0x188525;if(_0x17e54e['key']!==De||!_0x17e54e['newValue'])return;let _0x3af656=JSON[_0x5b70f8(0x360)](_0x17e54e[_0x5b70f8(0x375)]);this[_0x5b70f8(0x23b)](_0x3af656);}))),window[_0x188525(0x233)]('unload',()=>this[_0x188525(0x3fd)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x188525(0x314)])}));}['_handleEvent'](_0x5ed6b3){const _0xbeb0b1=_0x437440;switch(_0x5ed6b3[_0xbeb0b1(0x349)]){case 0x0:this[_0xbeb0b1(0x357)](_0x5ed6b3);break;case 0x1:this[_0xbeb0b1(0x27a)](_0x5ed6b3);break;case 0x2:this[_0xbeb0b1(0x2ea)](_0x5ed6b3);break;}}['_handleJoinEvent'](_0x3e1f90){const _0xe5ce85=_0x437440;let {unitIDs:_0x4c5443,memberID:_0x5830d2,isForwarded:_0x180810}=_0x3e1f90;_0x4c5443['forEach'](_0x2ee68a=>{const _0x53c4e9=_0x30e6;if(!_0x180810&&this['_unitOnClients'][_0x53c4e9(0x15d)](_0x2ee68a)&&this[_0x53c4e9(0x36d)](_0x2ee68a)[_0x53c4e9(0x2ee)](t[_0x53c4e9(0x1e4)][_0x53c4e9(0x411)]),!this['_unitOnClients']['has'](_0x2ee68a)||!this[_0x53c4e9(0x3bf)][_0x53c4e9(0x226)](_0x2ee68a)[_0x53c4e9(0x15d)](_0x5830d2)){let _0x3521dc=this['_unitOnClients'][_0x53c4e9(0x226)](_0x2ee68a)||new Set();_0x3521dc[_0x53c4e9(0x243)](_0x5830d2),this[_0x53c4e9(0x3bf)][_0x53c4e9(0x18b)](_0x2ee68a,_0x3521dc),this[_0x53c4e9(0x2c7)](_0x5830d2);}}),_0x180810||this[_0xe5ce85(0x3fd)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x437440(0x2c7)](_0x2553c7){const _0x194de0=_0x437440;this['_removeClearOtherTimer'](_0x2553c7);let _0x14768d=window[_0x194de0(0x208)](()=>{const _0x574191=_0x194de0;this[_0x574191(0x3bf)][_0x574191(0x2ac)](_0x110faf=>{const _0x36a517=_0x574191;_0x110faf[_0x36a517(0x244)](_0x2553c7);});},Ee*0x2);this[_0x194de0(0x317)][_0x194de0(0x18b)](_0x2553c7,_0x14768d);}[_0x437440(0x37b)](_0x1dd95b){const _0x1fd2f7=_0x437440;if(this['_clearOtherTimers'][_0x1fd2f7(0x15d)](_0x1dd95b)){let _0x3c5b4e=this[_0x1fd2f7(0x317)]['get'](_0x1dd95b);_0x3c5b4e&&window[_0x1fd2f7(0x28d)](_0x3c5b4e),this[_0x1fd2f7(0x317)]['set'](_0x1dd95b,null);}}[_0x437440(0x27a)](_0x402b8d){const _0x5c4cdf=_0x437440;let {memberID:_0x5b8660,unitIDs:_0x238c74}=_0x402b8d;_0x238c74['forEach'](_0x52869e=>{const _0x12b474=_0x30e6;var _0x1e9f02;let _0x418e15=this['_unitOnClients']['get'](_0x52869e);_0x418e15&&(_0x418e15[_0x12b474(0x244)](_0x5b8660),(_0x1e9f02=this['_ensureSubject'](_0x52869e))==null||_0x1e9f02[_0x12b474(0x2ee)](_0x418e15[_0x12b474(0x2a2)]===0x0?t[_0x12b474(0x1e4)][_0x12b474(0x2e9)]:t[_0x12b474(0x1e4)][_0x12b474(0x411)]));}),this[_0x5c4cdf(0x37b)](_0x5b8660);}[_0x437440(0x2ea)](_0x469894){const _0x5c6a3e=_0x437440;this[_0x5c6a3e(0x2c7)](_0x469894['memberID']);}[_0x437440(0x3fd)](_0x2d73d6){const _0x3cd7dc=_0x437440;localStorage[_0x3cd7dc(0x189)](De,JSON[_0x3cd7dc(0x3ac)](_0x2d73d6));}[_0x437440(0x2f0)](){const _0x3e4810=_0x437440;this[_0x3e4810(0x18f)]=window[_0x3e4810(0x163)](()=>{const _0x57bbd1=_0x3e4810;this[_0x57bbd1(0x3fd)]({'type':0x2,'memberID':this['_id']});},Ee);}[_0x437440(0x36d)](_0x93dbc1){const _0x3ae231=_0x437440;return this[_0x3ae231(0x14d)][_0x3ae231(0x15d)](_0x93dbc1)||this[_0x3ae231(0x14d)][_0x3ae231(0x18b)](_0x93dbc1,new i[(_0x3ae231(0x2e8))](t['UnitStatus']['NO_OTHER_CLIENTS_EDITING'])),this[_0x3ae231(0x14d)][_0x3ae231(0x226)](_0x93dbc1);}};Object['defineProperty'](exports,_0x437440(0x177),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,_0x437440(0x232),{'enumerable':!0x0,'get':function(){return w;}}),exports[_0x437440(0x1e2)]=H,Object['defineProperty'](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x437440(0x265)]=xe,Object[_0x437440(0x16a)](exports,_0x437440(0x202),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x437440(0x278)]=Oe;
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;