@univerjs-pro/collaboration-client-ui 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +17 -17
  86. package/lib/types/controllers/config.schema.d.ts +0 -15
  87. package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +0 -38
  88. package/lib/types/services/formula-calculation-guard/util.d.ts +0 -11
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1af9b0=_0x1ff6;(function(_0xed773b,_0x2ed7ea){const _0x4c42f5=_0x1ff6,_0x14767b=_0xed773b();while(!![]){try{const _0x390547=-parseInt(_0x4c42f5(0x452))/0x1+-parseInt(_0x4c42f5(0x3cf))/0x2*(-parseInt(_0x4c42f5(0x3e1))/0x3)+-parseInt(_0x4c42f5(0x3a0))/0x4+parseInt(_0x4c42f5(0x2ea))/0x5+parseInt(_0x4c42f5(0x348))/0x6+parseInt(_0x4c42f5(0x1e7))/0x7*(-parseInt(_0x4c42f5(0x3d3))/0x8)+parseInt(_0x4c42f5(0x214))/0x9;if(_0x390547===_0x2ed7ea)break;else _0x14767b['push'](_0x14767b['shift']());}catch(_0x3490dc){_0x14767b['push'](_0x14767b['shift']());}}}(_0x48f5,0x2c0c5),Object[_0x1af9b0(0x302)](exports,Symbol['toStringTag'],{'value':_0x1af9b0(0x1b0)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0xb7bfa8){const _0x104f9d=_0x1af9b0;switch(_0xb7bfa8){case e[_0x104f9d(0x251)][_0x104f9d(0x448)]:return{'icon':(0x0,c[_0x104f9d(0x468)])(o['OffLineIcon'],{}),'colorClass':_0x104f9d(0x2ab),'i18nKey':_0x104f9d(0x305),'tooltipKey':_0x104f9d(0x2d8),'clickable':!0x0,'indicator':_0x104f9d(0x1f6)};case e[_0x104f9d(0x251)][_0x104f9d(0x332)]:return{'icon':(0x0,c[_0x104f9d(0x468)])(o['OffLineIcon'],{}),'colorClass':_0x104f9d(0x1f7),'i18nKey':_0x104f9d(0x243),'clickable':!0x1,'indicator':'static'};case e[_0x104f9d(0x251)][_0x104f9d(0x3ae)]:return{'icon':(0x0,c[_0x104f9d(0x468)])(o['LoadingMultiIcon'],{}),'colorClass':_0x104f9d(0x1fa),'i18nKey':_0x104f9d(0x38f),'clickable':!0x1,'indicator':'spin'};case e[_0x104f9d(0x251)][_0x104f9d(0x471)]:return{'icon':(0x0,c[_0x104f9d(0x468)])(o[_0x104f9d(0x1fc)],{}),'colorClass':_0x104f9d(0x18f),'i18nKey':_0x104f9d(0x1be),'clickable':!0x1,'indicator':_0x104f9d(0x1f6)};case e[_0x104f9d(0x251)]['AWAITING']:case e['CollaborationStatus'][_0x104f9d(0x38b)]:return{'icon':(0x0,c[_0x104f9d(0x468)])(o[_0x104f9d(0x1f2)],{}),'colorClass':_0x104f9d(0x1fa),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x104f9d(0x312)};case e[_0x104f9d(0x251)][_0x104f9d(0x237)]:return{'icon':(0x0,c[_0x104f9d(0x468)])(o['LoadingMultiIcon'],{}),'colorClass':_0x104f9d(0x1fa),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case e[_0x104f9d(0x251)]['SYNCED']:return{'icon':(0x0,c['jsx'])(o[_0x104f9d(0x1fc)],{}),'colorClass':_0x104f9d(0x1da),'i18nKey':_0x104f9d(0x1a0),'clickable':!0x1,'indicator':'static'};}}function te(_0x136a43){const _0x528771=_0x1af9b0;let {status$:_0x4f66db}=_0x136a43,_0x4b1c13=(0x0,n[_0x528771(0x1ff)])(_0x4f66db,e[_0x528771(0x251)][_0x528771(0x471)]),_0x375c97=(0x0,n[_0x528771(0x424)])(t['LocaleService']),_0x52880c=(0x0,n[_0x528771(0x424)])(e['CollaborationSessionService']),_0x39401a=(0x0,s[_0x528771(0x441)])(()=>ee(_0x4b1c13),[_0x4b1c13]),_0x5a0427=_0x4b1c13!==e[_0x528771(0x251)][_0x528771(0x448)],_0x9868c8=_0x375c97['t'](_0x39401a[_0x528771(0x35b)]),_0x14bdba=_0x39401a[_0x528771(0x401)]?_0x375c97['t'](_0x39401a[_0x528771(0x401)]):_0x9868c8,_0x314a5e=(0x0,s['useCallback'])(()=>{const _0x1ab526=_0x528771;_0x5a0427||_0x52880c[_0x1ab526(0x2f4)]();},[_0x5a0427,_0x52880c]),_0x51d2ed=(0x0,s[_0x528771(0x257)])(_0xf3af52=>{const _0x5a16f7=_0x528771;!_0x5a0427&&(_0xf3af52[_0x5a16f7(0x206)]===_0x5a16f7(0x2d6)||_0xf3af52[_0x5a16f7(0x206)]==='\x20')&&(_0xf3af52[_0x5a16f7(0x42b)](),_0x52880c[_0x5a16f7(0x2f4)]());},[_0x5a0427,_0x52880c]),_0x1095f2=(0x0,c[_0x528771(0x468)])(_0x528771(0x31b),{'className':(0x0,a[_0x528771(0x3f6)])(_0x528771(0x1b2),_0x528771(0x351),_0x39401a[_0x528771(0x411)],{'univer-animate-spin':_0x39401a[_0x528771(0x216)]===_0x528771(0x312),'univer-animate-pulse':_0x39401a[_0x528771(0x216)]===_0x528771(0x35e)}),'aria-hidden':_0x528771(0x1c1),'children':_0x39401a[_0x528771(0x469)]}),_0x441a6c=(0x0,c[_0x528771(0x468)])('span',{'className':(0x0,a[_0x528771(0x3f6)])(_0x528771(0x1b2),_0x528771(0x437),_0x528771(0x1b8),_0x528771(0x22f),_0x528771(0x1dc),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x39401a[_0x528771(0x1db)],'univer-cursor-default':!_0x39401a[_0x528771(0x1db)]}),'children':_0x1095f2});return _0x39401a[_0x528771(0x1db)]?(0x0,c[_0x528771(0x468)])(a['Tooltip'],{'title':_0x14bdba,'placement':_0x528771(0x414),'children':(0x0,c[_0x528771(0x468)])(_0x528771(0x420),{'type':'button','onClick':_0x314a5e,'onKeyDown':_0x51d2ed,'className':(0x0,a[_0x528771(0x3f6)])(_0x528771(0x2b1),_0x528771(0x3eb),'univer-m-0\x20univer-p-0',_0x528771(0x475)),'aria-label':_0x9868c8+_0x528771(0x45c)+_0x14bdba,'role':_0x528771(0x382),'aria-live':'polite','aria-atomic':_0x528771(0x1c1),'children':_0x441a6c})}):(0x0,c[_0x528771(0x468)])(a['Tooltip'],{'title':_0x14bdba,'placement':_0x528771(0x414),'children':(0x0,c[_0x528771(0x468)])(_0x528771(0x446),{'className':(0x0,a[_0x528771(0x3f6)])(_0x528771(0x2b1),_0x528771(0x3eb),'univer-m-0\x20univer-p-0'),'aria-label':_0x9868c8,'role':_0x528771(0x382),'aria-live':_0x528771(0x2a0),'aria-atomic':_0x528771(0x1c1),'children':_0x441a6c})});}function y(_0x1edb7d){'@babel/helpers - typeof';const _0x496cbe=_0x1af9b0;return y=typeof Symbol==_0x496cbe(0x3a8)&&typeof Symbol[_0x496cbe(0x25d)]==_0x496cbe(0x2e2)?function(_0x4110da){return typeof _0x4110da;}:function(_0x36b03e){const _0x56732=_0x496cbe;return _0x36b03e&&typeof Symbol==_0x56732(0x3a8)&&_0x36b03e[_0x56732(0x27c)]===Symbol&&_0x36b03e!==Symbol[_0x56732(0x19d)]?_0x56732(0x2e2):typeof _0x36b03e;},y(_0x1edb7d);}function ne(_0x193769,_0x4250c3){const _0xd11860=_0x1af9b0;if(y(_0x193769)!=_0xd11860(0x18b)||!_0x193769)return _0x193769;var _0x266d1d=_0x193769[Symbol[_0xd11860(0x264)]];if(_0x266d1d!==void 0x0){var _0x4cb9b9=_0x266d1d[_0xd11860(0x247)](_0x193769,_0x4250c3||_0xd11860(0x3f4));if(y(_0x4cb9b9)!=_0xd11860(0x18b))return _0x4cb9b9;throw TypeError(_0xd11860(0x1a3));}return(_0x4250c3===_0xd11860(0x3c4)?String:Number)(_0x193769);}function re(_0x140f13){const _0xe6e95e=_0x1af9b0;var _0x291c14=ne(_0x140f13,_0xe6e95e(0x3c4));return y(_0x291c14)=='symbol'?_0x291c14:_0x291c14+'';}function b(_0xde81be,_0x36a01f,_0x26f13b){const _0xc13b11=_0x1af9b0;return(_0x36a01f=re(_0x36a01f))in _0xde81be?Object[_0xc13b11(0x302)](_0xde81be,_0x36a01f,{'value':_0x26f13b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xde81be[_0x36a01f]=_0x26f13b,_0xde81be;}function x(_0x3efbfb,_0x76d5d5){return function(_0x5e6a7c,_0x4a4333){_0x76d5d5(_0x5e6a7c,_0x4a4333,_0x3efbfb);};}function S(_0x3de981,_0x580405,_0x53f265,_0x469be8){const _0x521327=_0x1af9b0;var _0x37f61a=arguments[_0x521327(0x23e)],_0x1883d5=_0x37f61a<0x3?_0x580405:_0x469be8===null?_0x469be8=Object[_0x521327(0x290)](_0x580405,_0x53f265):_0x469be8,_0xe042bb;if(typeof Reflect=='object'&&typeof Reflect[_0x521327(0x24c)]=='function')_0x1883d5=Reflect[_0x521327(0x24c)](_0x3de981,_0x580405,_0x53f265,_0x469be8);else{for(var _0x4b094f=_0x3de981[_0x521327(0x23e)]-0x1;_0x4b094f>=0x0;_0x4b094f--)(_0xe042bb=_0x3de981[_0x4b094f])&&(_0x1883d5=(_0x37f61a<0x3?_0xe042bb(_0x1883d5):_0x37f61a>0x3?_0xe042bb(_0x580405,_0x53f265,_0x1883d5):_0xe042bb(_0x580405,_0x53f265))||_0x1883d5);}return _0x37f61a>0x3&&_0x1883d5&&Object['defineProperty'](_0x580405,_0x53f265,_0x1883d5),_0x1883d5;}let C=class extends t['Disposable']{constructor(_0x123301,_0x50ca9a,_0x12a4d9,_0x31a363,_0x148296){const _0xbafccf=_0x1af9b0;super(),this['_univerInstanceService']=_0x123301,this[_0xbafccf(0x39e)]=_0x50ca9a,this[_0xbafccf(0x26f)]=_0x12a4d9,this['_uiPartsService']=_0x31a363,this[_0xbafccf(0x3b6)]=_0x148296,b(this,'_status$',new r[(_0xbafccf(0x21f))](e[_0xbafccf(0x251)]['NOT_COLLAB'])),b(this,'_presenceStatusRegistrations',new Map()),this['_initStatusComponent'](),this['_initStatusListener'](),this[_0xbafccf(0x3ce)]();}[_0x1af9b0(0x3d4)](){const _0x489ffa=_0x1af9b0;this[_0x489ffa(0x2f9)][_0x489ffa(0x477)](_0x184457=>_0x184457[_0x489ffa(0x3d4)]()),this[_0x489ffa(0x2f9)][_0x489ffa(0x36e)](),this[_0x489ffa(0x20a)][_0x489ffa(0x1d9)](),super[_0x489ffa(0x3d4)]();}[_0x1af9b0(0x2be)](){const _0x5a3edb=_0x1af9b0;this['disposeWithMe']((0x0,r[_0x5a3edb(0x2dc)])(this[_0x5a3edb(0x1c9)][_0x5a3edb(0x3c1)],this[_0x5a3edb(0x1c9)]['getCurrentTypeOfUnit$'](t[_0x5a3edb(0x326)]['UNIVER_DOC']),this[_0x5a3edb(0x1c9)]['getCurrentTypeOfUnit$'](t[_0x5a3edb(0x326)][_0x5a3edb(0x347)]))[_0x5a3edb(0x183)]((0x0,i['map'])(()=>ie(this['_univerInstanceService'])),(0x0,i[_0x5a3edb(0x37c)])(),(0x0,r[_0x5a3edb(0x218)])(_0x31b1de=>_0x31b1de?this[_0x5a3edb(0x26f)][_0x5a3edb(0x309)](_0x31b1de):(0x0,r['of'])(null)),(0x0,r[_0x5a3edb(0x218)])(_0x510692=>_0x510692?_0x510692[_0x5a3edb(0x1bd)]:(0x0,r['of'])(e[_0x5a3edb(0x251)][_0x5a3edb(0x471)])))[_0x5a3edb(0x3aa)](_0x347ac1=>{const _0x9f4461=_0x5a3edb;this[_0x9f4461(0x20a)][_0x9f4461(0x3d5)](_0x347ac1);}));}[_0x1af9b0(0x354)](){const _0x1710be=_0x1af9b0;this[_0x1710be(0x2e5)](this['_uiPartsService']['registerComponent'](n['BuiltInUIPart'][_0x1710be(0x30d)],()=>(0x0,n[_0x1710be(0x320)])(ae({'status$':this['_status$'][_0x1710be(0x466)]()}),this['_injector'])));}[_0x1af9b0(0x3ce)](){const _0x27c1bf=_0x1af9b0;let _0x5df2fe=this['_presenceAdapterRegistry'][_0x27c1bf(0x3c3)][_0x27c1bf(0x3aa)](_0x41b3d3=>{const _0x4918ff=_0x27c1bf;this[_0x4918ff(0x427)](_0x41b3d3);});this[_0x27c1bf(0x2e5)]((0x0,t[_0x27c1bf(0x1f1)])(()=>_0x5df2fe[_0x27c1bf(0x2df)]()));}[_0x1af9b0(0x427)](_0x1ac91a){const _0x1555a8=_0x1af9b0;let _0x288a84=new Map(_0x1ac91a[_0x1555a8(0x1c8)](_0x5ec6ac=>_0x5ec6ac['statusUIPart']!=null)[_0x1555a8(0x184)](_0x1b69fa=>[_0x1b69fa[_0x1555a8(0x36d)],_0x1b69fa]));this[_0x1555a8(0x2f9)]['forEach']((_0x53adc9,_0x8e9980)=>{const _0x2e5e1e=_0x1555a8;_0x288a84['has'](_0x8e9980)||(_0x53adc9[_0x2e5e1e(0x3d4)](),this[_0x2e5e1e(0x2f9)][_0x2e5e1e(0x31c)](_0x8e9980));}),_0x288a84[_0x1555a8(0x477)]((_0x55ef43,_0x38daac)=>{const _0x412573=_0x1555a8;this[_0x412573(0x2f9)][_0x412573(0x2eb)](_0x38daac)||this[_0x412573(0x2b4)](_0x55ef43);});}[_0x1af9b0(0x2b4)](_0x1fe17a){const _0x4a5ff4=_0x1af9b0;let _0x14ccc4=_0x1fe17a[_0x4a5ff4(0x249)];if(!_0x14ccc4)return;let _0x5d5286=new t[(_0x4a5ff4(0x2b5))](),_0x140453=new r[(_0x4a5ff4(0x21f))](e[_0x4a5ff4(0x251)]['NOT_COLLAB']);_0x5d5286['add']((0x0,t[_0x4a5ff4(0x1f1)])(()=>_0x140453[_0x4a5ff4(0x1d9)]())),_0x5d5286[_0x4a5ff4(0x2a3)](this[_0x4a5ff4(0x26a)][_0x4a5ff4(0x473)](_0x14ccc4,()=>(0x0,n[_0x4a5ff4(0x320)])(ae({'status$':_0x140453[_0x4a5ff4(0x466)]()}),this[_0x4a5ff4(0x39e)])));let _0x5651dc=this['_univerInstanceService'][_0x4a5ff4(0x384)](_0x1fe17a[_0x4a5ff4(0x36d)])[_0x4a5ff4(0x183)]((0x0,i[_0x4a5ff4(0x184)])(_0x355ef3=>(_0x355ef3==null?void 0x0:_0x355ef3['getUnitId']())??null),(0x0,i[_0x4a5ff4(0x37c)])(),(0x0,r['switchMap'])(_0x328bd0=>_0x328bd0?this[_0x4a5ff4(0x26f)]['getCollabEntity$'](_0x328bd0):(0x0,r['of'])(null)),(0x0,r[_0x4a5ff4(0x218)])(_0x52e672=>(_0x52e672==null?void 0x0:_0x52e672['status$'])??(0x0,r['of'])(e[_0x4a5ff4(0x251)][_0x4a5ff4(0x471)])))[_0x4a5ff4(0x3aa)](_0x58dbf6=>_0x140453[_0x4a5ff4(0x3d5)](_0x58dbf6));_0x5d5286[_0x4a5ff4(0x2a3)]((0x0,t['toDisposable'])(()=>_0x5651dc[_0x4a5ff4(0x2df)]())),this[_0x4a5ff4(0x2f9)][_0x4a5ff4(0x195)](_0x1fe17a['unitType'],_0x5d5286);}};C=S([x(0x0,t[_0x1af9b0(0x423)]),x(0x1,(0x0,t[_0x1af9b0(0x242)])(t[_0x1af9b0(0x20d)])),x(0x2,(0x0,t[_0x1af9b0(0x242)])(e[_0x1af9b0(0x23f)])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t['Inject'])(n[_0x1af9b0(0x349)]))],C);function ie(_0x496d52){const _0x55aec0=_0x1af9b0;let _0x1d2ad4=_0x496d52[_0x55aec0(0x3df)](),_0x52d44e=_0x1d2ad4==null?void 0x0:_0x1d2ad4[_0x55aec0(0x46e)]();if(_0x52d44e&&!(0x0,t[_0x55aec0(0x1f8)])(_0x52d44e))return _0x52d44e;let _0x211290=_0x496d52[_0x55aec0(0x3c2)](t[_0x55aec0(0x326)][_0x55aec0(0x405)]),_0x195a4f=_0x211290==null?void 0x0:_0x211290[_0x55aec0(0x46e)]();if(_0x195a4f&&!(0x0,t[_0x55aec0(0x1f8)])(_0x195a4f))return _0x195a4f;let _0x396736=_0x496d52['getCurrentUnitOfType'](t[_0x55aec0(0x326)]['UNIVER_SHEET']);if(_0x396736)return _0x396736[_0x55aec0(0x46e)]();let _0x3efe0a=_0x496d52[_0x55aec0(0x215)](t['UniverInstanceType'][_0x55aec0(0x405)])['find'](_0x44d993=>!(0x0,t['isInternalEditorID'])(_0x44d993[_0x55aec0(0x46e)]()));return _0x3efe0a?_0x3efe0a['getUnitId']():null;}function ae(_0x2e0692){let {status$:_0x2d354d}=_0x2e0692;return function(){const _0x2ec5b0=_0x1ff6;return(0x0,c[_0x2ec5b0(0x468)])(te,{'status$':_0x2d354d});};}var oe=_0x1af9b0(0x2c6),se=_0x1af9b0(0x186);const w={'id':_0x1af9b0(0x36a),'type':t[_0x1af9b0(0x266)][_0x1af9b0(0x1e8)],'handler':(_0x4a9d2c,_0x1f00a0)=>{const _0x127558=_0x1af9b0;let _0x5d0df8=_0x4a9d2c[_0x127558(0x3d1)](n[_0x127558(0x349)])[_0x127558(0x3d1)](_0x1f00a0[_0x127558(0x36d)]);if(!_0x5d0df8)return!0x1;switch(_0x1f00a0['update'][_0x127558(0x1cc)]){case'set':return _0x5d0df8[_0x127558(0x3a5)](_0x1f00a0['update']['state']),!0x0;case _0x127558(0x3b9):return _0x5d0df8[_0x127558(0x232)](_0x1f00a0[_0x127558(0x32b)]['unitId'],_0x1f00a0['update'][_0x127558(0x1d6)]),!0x0;case _0x127558(0x36e):return _0x5d0df8[_0x127558(0x2c1)](_0x1f00a0['update'][_0x127558(0x41a)]),!0x0;default:return!0x1;}}},ce={};let T=class extends t[_0x1af9b0(0x36c)]{constructor(_0xf5d310,_0x5594b6){const _0x4ebdf6=_0x1af9b0;super(),this['_docClipboardService']=_0xf5d310,this[_0x4ebdf6(0x256)]=_0x5594b6,this[_0x4ebdf6(0x29f)]();}['_init'](){const _0x547aff=_0x1af9b0;let _0x3daca1=this;this['disposeWithMe'](this[_0x547aff(0x3af)][_0x547aff(0x3cb)]({'onBeforePasteImage':async _0x18d670=>{const _0x425fc4=_0x547aff;let _0x23e8ed=await _0x3daca1[_0x425fc4(0x256)][_0x425fc4(0x1ea)](_0x18d670);return _0x23e8ed?{'source':_0x23e8ed['source'],'imageSourceType':_0x23e8ed['imageSourceType']}:null;}}));}};T=S([x(0x0,f[_0x1af9b0(0x1ca)]),x(0x1,t[_0x1af9b0(0x28e)])],T);const le=[_0x1af9b0(0x2c9),_0x1af9b0(0x1a6),'green.600',_0x1af9b0(0x327),_0x1af9b0(0x324),_0x1af9b0(0x368)];var E=class extends t[_0x1af9b0(0x41c)]{constructor(..._0x185293){const _0x23bbea=_0x1af9b0;super(..._0x185293),b(this,_0x23bbea(0x439),new Map()),b(this,_0x23bbea(0x2db),0x0);}[_0x1af9b0(0x1df)](_0x330ec0){const _0x342efe=_0x1af9b0;if(this[_0x342efe(0x439)][_0x342efe(0x2eb)](_0x330ec0))return this[_0x342efe(0x439)][_0x342efe(0x3d1)](_0x330ec0);let _0x1f0a8=le[this['_colorIndex']];return this[_0x342efe(0x2db)]=(this['_colorIndex']+0x1)%le[_0x342efe(0x23e)],this[_0x342efe(0x439)]['set'](_0x330ec0,_0x1f0a8),_0x1f0a8;}};function ue(_0x49a593){const _0x3fdb7f=_0x1af9b0;let _0x901586='';for(let _0x4b8415 of _0x49a593){let {startOffset:_0x30b4c0,endOffset:_0x2e4287,isActive:_0x2bc713,rangeType:_0x131f62,segmentId:_0x1ad4bb,segmentPage:_0x468297}=_0x4b8415;_0x901586[_0x3fdb7f(0x23e)]&&(_0x901586+=','),_0x901586+=_0x30b4c0+':'+_0x2e4287+':'+(_0x2bc713?'1':'0')+':'+_0x131f62+':'+_0x1ad4bb+':'+_0x468297;}return _0x901586;}function de(_0x4d2589){const _0x2146d1=_0x1af9b0;let _0x20c9aa=_0x4d2589[_0x2146d1(0x316)](','),_0x5f5aa7=[];for(let _0xb65a37 of _0x20c9aa){let [_0x393660,_0x55e6ab,_0x50b2c7,_0x1e423b,_0x227be8,_0x36df29]=_0xb65a37[_0x2146d1(0x316)](':');_0x5f5aa7['push']({'startOffset':Number(_0x393660),'endOffset':Number(_0x55e6ab),'collapsed':_0x393660===_0x55e6ab,'isActive':_0x50b2c7==='1','rangeType':_0x1e423b===t[_0x2146d1(0x1c7)]['TEXT']?t[_0x2146d1(0x1c7)][_0x2146d1(0x41d)]:t[_0x2146d1(0x1c7)]['RECT'],'segmentId':typeof _0x227be8=='string'?String(_0x227be8):'','segmentPage':Number(_0x36df29??-0x1)});}return _0x5f5aa7['some'](_0xc1a897=>_0xc1a897['isActive'])||(_0x5f5aa7[0x0][_0x2146d1(0x372)]=!0x0),_0x5f5aa7;}var D=class extends t[_0x1af9b0(0x36c)]{constructor(..._0x3bdb3c){const _0x3aac61=_0x1af9b0;super(..._0x3bdb3c),b(this,_0x3aac61(0x17a),new r[(_0x3aac61(0x21f))](null)),b(this,'collabCursorState$',this['_collabCursorState$'][_0x3aac61(0x466)]());}['syncEditingCollabCursor'](_0x1f28ae){const _0x597f2e=_0x1af9b0;let {unitID:_0x8efdbd,memberID:_0x597ca2,textRanges:_0xdbbd99}=_0x1f28ae,_0x212a7c=ue(_0xdbbd99);if(_0x212a7c==='')return;let _0x3cdb99={'unitID':_0x8efdbd,'memberID':_0x597ca2,'selection':_0x212a7c};this[_0x597f2e(0x17a)][_0x597f2e(0x3d5)](_0x3cdb99);}};let O=class extends t['RxDisposable']{get[_0x1af9b0(0x2e3)](){const _0x33dda1=_0x1af9b0;return this[_0x33dda1(0x286)]['getValue']();}get[_0x1af9b0(0x3b3)](){const _0x3a4c66=_0x1af9b0;return this['_roomMembers$'][_0x3a4c66(0x17f)]();}constructor(_0xee991,_0x4254c1,_0xc8e87e,_0x4b56ea,_0x168d45,_0x2e724b,_0x384aa9,_0x1e0f5b,_0x1a1143){const _0x54665b=_0x1af9b0;super(),this['unitID']=_0xee991,this[_0x54665b(0x228)]=_0x4254c1,this[_0x54665b(0x39e)]=_0xc8e87e,this['_colorAssignService']=_0x4b56ea,this['_memberService']=_0x168d45,this['_syncEditingCollabCursorService']=_0x2e724b,this['_transformService']=_0x384aa9,this['_univerInstanceService']=_0x1e0f5b,this[_0x54665b(0x438)]=_0x1a1143,b(this,'_online',!0x1),b(this,_0x54665b(0x29f),!0x1),b(this,_0x54665b(0x286),new r[(_0x54665b(0x21f))](new Map())),b(this,_0x54665b(0x380),this[_0x54665b(0x286)][_0x54665b(0x466)]()),b(this,_0x54665b(0x283),new r[(_0x54665b(0x21f))]([])),b(this,_0x54665b(0x1a9),this['_roomMembers$'][_0x54665b(0x183)]((0x0,r['debounceTime'])(0x12c))),b(this,_0x54665b(0x2bf),(0x0,t[_0x54665b(0x33d)])(_0xf95f5=>{const _0x32be8a=_0x54665b;let _0x1d9c38={'eventID':l['CollaborationEvent'][_0x32be8a(0x2ee)],'data':{'unitID':this['unitID'],'memberID':this[_0x32be8a(0x228)][_0x32be8a(0x3e7)](),'selection':ue(_0xf95f5)}};this['_session'][_0x32be8a(0x191)](_0x1d9c38,this['unitID']);},0x64));}[_0x1af9b0(0x3d4)](){const _0x3bb64a=_0x1af9b0;super[_0x3bb64a(0x3d4)](),this[_0x3bb64a(0x286)]['next'](new Map()),this['_cursorInfo$'][_0x3bb64a(0x1d9)](),this[_0x3bb64a(0x283)][_0x3bb64a(0x3d5)]([]),this[_0x3bb64a(0x283)][_0x3bb64a(0x1d9)]();}[_0x1af9b0(0x203)](){const _0x22414c=_0x1af9b0;this[_0x22414c(0x29f)]||(this['_init']=!0x0,this['_session'][_0x22414c(0x250)][_0x22414c(0x183)]((0x0,r[_0x22414c(0x3b5)])(this[_0x22414c(0x3ab)]))[_0x22414c(0x3aa)](_0x29a409=>{const _0x223681=_0x22414c;_0x29a409===e[_0x223681(0x1cd)]['ONLINE']?this[_0x223681(0x360)]():this[_0x223681(0x1d8)]();}),this[_0x22414c(0x228)][_0x22414c(0x299)]['pipe']((0x0,r[_0x22414c(0x3b5)])(this[_0x22414c(0x3ab)]))[_0x22414c(0x3aa)](_0x5aff5c=>{const _0x582f30=_0x22414c;let _0x36efbd=_0x5aff5c[_0x582f30(0x342)];_0x36efbd===l['CollaborationEvent'][_0x582f30(0x2ee)]&&this['_onCursorUpdate'](_0x5aff5c),_0x36efbd===l[_0x582f30(0x291)]['USERS_LEAVE']&&this[_0x582f30(0x230)](_0x5aff5c);}),this[_0x22414c(0x2e5)](this['_commandService'][_0x22414c(0x43f)](_0x458433=>{const _0x4005d1=_0x22414c;let _0x51adda=_0x458433[_0x4005d1(0x337)];_0x51adda!=null&&this[_0x4005d1(0x38a)]&&_0x458433['id']===d[_0x4005d1(0x17c)]['id']&&_0x51adda[_0x4005d1(0x41a)]===this[_0x4005d1(0x274)]&&_0x51adda[_0x4005d1(0x22b)]===!0x1&&_0x51adda['ranges'][_0x4005d1(0x23e)]>0x0&&this[_0x4005d1(0x2bf)](_0x51adda['ranges']);})),this[_0x22414c(0x294)][_0x22414c(0x210)]['pipe']((0x0,r[_0x22414c(0x3b5)])(this[_0x22414c(0x3ab)]))[_0x22414c(0x3aa)](_0x45f7cb=>{const _0xc754b6=_0x22414c;if((_0x45f7cb==null?void 0x0:_0x45f7cb[_0xc754b6(0x274)])!==this['unitID'])return;let _0x5ae58c={'eventID':l['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x45f7cb};this['_onCursorUpdate'](_0x5ae58c);}),this[_0x22414c(0x2e5)](this[_0x22414c(0x438)][_0x22414c(0x43f)](_0x27f708=>{const _0x1140ef=_0x22414c;if(_0x27f708[_0x1140ef(0x337)]==null)return;let _0x5e87de=_0x27f708['params'];if(_0x27f708['id']!==d[_0x1140ef(0x2e9)]['id']||_0x5e87de['unitId']!==this[_0x1140ef(0x274)])return;let _0x37c7c4={'id':_0x1140ef(0x273),'params':_0x5e87de},_0xb247a4=this[_0x1140ef(0x2e3)];for(let [_0x39f04e,_0x549290]of _0xb247a4){let _0x3ab229={'id':_0x1140ef(0x273),'params':{'unitId':this[_0x1140ef(0x274)],'actions':null,'textRanges':_0x549290[_0x1140ef(0x3b2)]}},_0x584e0e=this[_0x1140ef(0x44c)][_0x1140ef(0x1ed)](_0x37c7c4,_0x3ab229,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x584e0e))throw _0x584e0e[_0x1140ef(0x338)];_0xb247a4['set'](_0x39f04e,{..._0x549290,'ranges':_0x584e0e[_0x1140ef(0x279)]['params']['textRanges']});}queueMicrotask(()=>{const _0x524bc5=_0x1140ef;this[_0x524bc5(0x286)][_0x524bc5(0x3d5)](_0xb247a4);});})));}[_0x1af9b0(0x19b)](_0x8eda05){const _0x10ca6b=_0x1af9b0;var _0x1eb86d;let {memberID:_0x51a3c4,selection:_0x3a4eb5}=_0x8eda05['data'],_0x183432=de(_0x3a4eb5),_0x1bbfd0=((_0x1eb86d=this['_memberService']['getMember'](this[_0x10ca6b(0x274)],_0x51a3c4))==null?void 0x0:_0x1eb86d[_0x10ca6b(0x467)])??_0x10ca6b(0x42f),_0xf06640={'color':this[_0x10ca6b(0x208)][_0x10ca6b(0x1df)](_0x51a3c4),'name':_0x1bbfd0,'ranges':_0x183432},_0xe5500a=this[_0x10ca6b(0x2e3)];_0xe5500a[_0x10ca6b(0x195)](_0x51a3c4,_0xf06640),this['_cursorInfo$'][_0x10ca6b(0x3d5)](_0xe5500a);}[_0x1af9b0(0x230)](_0x4997fc){const _0x84006e=_0x1af9b0;let {memberID:_0x54981f}=_0x4997fc['data'],_0xfd232a=this[_0x84006e(0x2e3)];_0xfd232a[_0x84006e(0x31c)](_0x54981f),this[_0x84006e(0x286)]['next'](_0xfd232a);}[_0x1af9b0(0x360)](){const _0x56acf4=_0x1af9b0;var _0x69ab98;if(this['_online']=!0x0,((_0x69ab98=this[_0x56acf4(0x1c9)][_0x56acf4(0x3df)]())==null?void 0x0:_0x69ab98[_0x56acf4(0x46e)]())!==this[_0x56acf4(0x274)])return;let _0x351fa7=this[_0x56acf4(0x39e)][_0x56acf4(0x3d1)](d[_0x56acf4(0x357)])[_0x56acf4(0x30a)]();Array[_0x56acf4(0x20f)](_0x351fa7)&&_0x351fa7['length']>0x0&&this[_0x56acf4(0x2bf)](_0x351fa7);}[_0x1af9b0(0x1d8)](){const _0x409cf7=_0x1af9b0;this[_0x409cf7(0x38a)]=!0x1;}};O=S([x(0x2,(0x0,t['Inject'])(t[_0x1af9b0(0x20d)])),x(0x3,(0x0,t[_0x1af9b0(0x242)])(E)),x(0x4,(0x0,t['Inject'])(e[_0x1af9b0(0x44d)])),x(0x5,(0x0,t[_0x1af9b0(0x242)])(D)),x(0x6,l[_0x1af9b0(0x400)]),x(0x7,t[_0x1af9b0(0x423)]),x(0x8,t['ICommandService'])],O);const fe=()=>{let _0x57d2e4=[],_0x5b2fbb=!0x1;return _0x5b648f=>{const _0x2f099e=_0x1ff6;_0x57d2e4[_0x2f099e(0x352)](_0x5b648f),_0x5b2fbb||(_0x5b2fbb=!0x0,setTimeout(()=>{const _0x193537=_0x2f099e;_0x57d2e4[_0x193537(0x477)](_0x1ab7ee=>_0x1ab7ee()),_0x57d2e4=[],_0x5b2fbb=!0x1;}));};};let k=class extends t[_0x1af9b0(0x36c)]{get[_0x1af9b0(0x2e3)](){return this['_cursorInfo$']['getValue']();}get[_0x1af9b0(0x3b3)](){const _0x17ab37=_0x1af9b0;return this[_0x17ab37(0x283)]['getValue']();}constructor(_0x49975c,_0x2a1ce2,_0x4d3e00,_0x55bf3a,_0x40635e,_0x90705b,_0x430043,_0x24b9d5){const _0xb1c99b=_0x1af9b0;super(),this['unitID']=_0x49975c,this['_session']=_0x2a1ce2,this['_injector']=_0x4d3e00,this[_0xb1c99b(0x208)]=_0x55bf3a,this[_0xb1c99b(0x2d2)]=_0x40635e,this[_0xb1c99b(0x1c9)]=_0x90705b,this['_commandService']=_0x430043,this[_0xb1c99b(0x3ea)]=_0x24b9d5,b(this,'_online',!0x1),b(this,_0xb1c99b(0x29f),!0x1),b(this,_0xb1c99b(0x286),new r[(_0xb1c99b(0x21f))](new Map())),b(this,_0xb1c99b(0x380),this['_cursorInfo$'][_0xb1c99b(0x466)]()),b(this,_0xb1c99b(0x283),new r[(_0xb1c99b(0x21f))]([])),b(this,_0xb1c99b(0x1a9),this[_0xb1c99b(0x283)][_0xb1c99b(0x183)]((0x0,r[_0xb1c99b(0x21e)])(0x12c))),b(this,'_updateLocalCursor',(0x0,t['debounce'])((_0x3e3da7,_0x5a21cb)=>{const _0x37dfaf=_0xb1c99b;let _0x3eb1bb={'eventID':l[_0x37dfaf(0x291)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x37dfaf(0x228)]['getMemberID'](),'selection':(0x0,h[_0x37dfaf(0x318)])(_0x3e3da7,_0x5a21cb['range'])}};this[_0x37dfaf(0x228)][_0x37dfaf(0x191)](_0x3eb1bb,this[_0x37dfaf(0x274)]);},0x64));}[_0x1af9b0(0x3d4)](){const _0x2401bb=_0x1af9b0;super[_0x2401bb(0x3d4)](),this[_0x2401bb(0x286)][_0x2401bb(0x3d5)](new Map()),this['_cursorInfo$'][_0x2401bb(0x1d9)](),this[_0x2401bb(0x283)][_0x2401bb(0x3d5)]([]),this[_0x2401bb(0x283)][_0x2401bb(0x1d9)]();}[_0x1af9b0(0x203)](){const _0x564136=_0x1af9b0;this[_0x564136(0x29f)]||(this[_0x564136(0x29f)]=!0x0,this[_0x564136(0x228)][_0x564136(0x250)]['pipe']((0x0,r['takeUntil'])(this[_0x564136(0x3ab)]))[_0x564136(0x3aa)](_0x4adb39=>{const _0x320574=_0x564136;_0x4adb39===e[_0x320574(0x1cd)][_0x320574(0x363)]?this[_0x320574(0x360)]():this[_0x320574(0x1d8)]();}),this[_0x564136(0x228)][_0x564136(0x299)]['pipe']((0x0,r[_0x564136(0x3b5)])(this['dispose$']))['subscribe'](_0x538ca7=>{const _0x11d676=_0x564136;let _0x1f694c=_0x538ca7[_0x11d676(0x342)];_0x1f694c===l[_0x11d676(0x291)][_0x11d676(0x2ee)]&&this['_onCursorUpdate'](_0x538ca7),_0x1f694c===l['CollaborationEvent'][_0x11d676(0x1eb)]&&this[_0x11d676(0x230)](_0x538ca7);}),this['_onRefRangeChange'](),this[_0x564136(0x2e5)](this['_commandService'][_0x564136(0x43f)](_0x551460=>{const _0xe84d53=_0x564136;if(this['_online']&&_0x551460['id']===g[_0xe84d53(0x418)]['id']&&_0x551460[_0xe84d53(0x337)][_0xe84d53(0x41a)]===this['unitID']){let _0x5a20a5=_0x551460[_0xe84d53(0x337)];this[_0xe84d53(0x2bf)](_0x5a20a5['subUnitId'],_0x5a20a5[_0xe84d53(0x2d9)][0x0]);}})));}[_0x1af9b0(0x19b)](_0x856d43){const _0x1f78ae=_0x1af9b0;var _0x2c8759;let {memberID:_0x4cee87,selection:_0x28ddd6}=_0x856d43[_0x1f78ae(0x3db)],{sheetName:_0x561aaa,range:_0x2010a9}=(0x0,h[_0x1f78ae(0x3b8)])(_0x28ddd6),_0x4e72c4={'name':((_0x2c8759=this[_0x1f78ae(0x2d2)][_0x1f78ae(0x1bc)](this[_0x1f78ae(0x274)],_0x4cee87))==null?void 0x0:_0x2c8759[_0x1f78ae(0x467)])??_0x1f78ae(0x42f),'range':this[_0x1f78ae(0x46f)](_0x561aaa,_0x2010a9),'sheetID':_0x561aaa,'color':this['_colorAssignService'][_0x1f78ae(0x1df)](_0x4cee87),'selection':_0x28ddd6},_0x4c8d7f=this['cursorInfo'];_0x4c8d7f['set'](_0x4cee87,_0x4e72c4),this[_0x1f78ae(0x286)]['next'](_0x4c8d7f);}[_0x1af9b0(0x230)](_0x3cf698){const _0x2cb52b=_0x1af9b0;let {memberID:_0x4dbb7a}=_0x3cf698['data'],_0x2a2381=this[_0x2cb52b(0x2e3)];_0x2a2381[_0x2cb52b(0x31c)](_0x4dbb7a),this[_0x2cb52b(0x286)][_0x2cb52b(0x3d5)](_0x2a2381);}[_0x1af9b0(0x46f)](_0x34c702,_0x30c333){const _0x1dbde1=_0x1af9b0;var _0xa348f9;let _0x1cb940=(_0xa348f9=this[_0x1dbde1(0x1c9)][_0x1dbde1(0x336)](this['unitID'],t[_0x1dbde1(0x326)][_0x1dbde1(0x347)]))==null||(_0xa348f9=_0xa348f9[_0x1dbde1(0x3a6)](_0x34c702))==null?void 0x0:_0xa348f9[_0x1dbde1(0x333)]();return(_0x1cb940==null?void 0x0:_0x1cb940[_0x1dbde1(0x234)](_0x476976=>t['Rectangle'][_0x1dbde1(0x457)](_0x476976,_0x30c333)))||_0x30c333;}[_0x1af9b0(0x27f)](){const _0xc6f754=_0x1af9b0;let _0x4c35d5=new t[(_0xc6f754(0x2b5))](),_0x1240c7=fe(),_0x5b2aa4=()=>{const _0x3ba8a7=_0xc6f754;_0x4c35d5['dispose']();let _0x5787e5=(_0x5dffaf,_0x33b2eb,_0x347a57,_0x55862a)=>{const _0x51d9fb=_0x1ff6;let _0x4dde51=[];switch(_0x5dffaf['id']){case g['EffectRefRangId'][_0x51d9fb(0x3ed)]:_0x4dde51=(0x0,g['handleDeleteRangeMoveLeft'])(_0x5dffaf,_0x55862a);break;case g['EffectRefRangId'][_0x51d9fb(0x474)]:_0x4dde51=(0x0,g[_0x51d9fb(0x334)])(_0x5dffaf,_0x55862a);break;case g[_0x51d9fb(0x3cc)][_0x51d9fb(0x379)]:_0x4dde51=(0x0,g[_0x51d9fb(0x1ba)])(_0x5dffaf,_0x55862a);break;case g[_0x51d9fb(0x3cc)][_0x51d9fb(0x3ba)]:_0x4dde51=(0x0,g[_0x51d9fb(0x194)])(_0x5dffaf,_0x55862a);break;case g[_0x51d9fb(0x3cc)][_0x51d9fb(0x289)]:_0x4dde51=(0x0,g['handleInsertRangeMoveRight'])(_0x5dffaf,_0x55862a);break;case g[_0x51d9fb(0x3cc)][_0x51d9fb(0x1f0)]:_0x4dde51=(0x0,g[_0x51d9fb(0x373)])(_0x5dffaf,_0x55862a);break;case g[_0x51d9fb(0x3cc)][_0x51d9fb(0x451)]:_0x4dde51=(0x0,g['handleMoveRange'])(_0x5dffaf,_0x55862a);break;case g['EffectRefRangId'][_0x51d9fb(0x28b)]:_0x4dde51=(0x0,g[_0x51d9fb(0x2e6)])(_0x5dffaf,_0x55862a);break;case g[_0x51d9fb(0x3cc)][_0x51d9fb(0x3c6)]:_0x4dde51=(0x0,g[_0x51d9fb(0x187)])(_0x5dffaf,_0x55862a);}let _0xf5efee=(0x0,g[_0x51d9fb(0x3b7)])(_0x4dde51,_0x55862a),_0x19ae3d=this[_0x51d9fb(0x2e3)]['get'](_0x33b2eb);if(_0x19ae3d&&_0xf5efee){let _0x107e36={..._0x19ae3d,'range':_0xf5efee};this[_0x51d9fb(0x2e3)][_0x51d9fb(0x195)](_0x33b2eb,_0x107e36),_0x1240c7(()=>{const _0x48ee2e=_0x51d9fb;let _0x8bacc1=this[_0x48ee2e(0x3ea)]['registerRefRange'](_0xf5efee,_0x38f909=>(_0x8bacc1[_0x48ee2e(0x3d4)](),_0x5787e5(_0x38f909,_0x33b2eb,_0x347a57,_0xf5efee)));_0x4c35d5[_0x48ee2e(0x2a3)](_0x8bacc1);});}return{'redos':[],'undos':[]};};this[_0x3ba8a7(0x2e3)][_0x3ba8a7(0x477)]((_0x21fa19,_0x35ed58)=>{const _0x197f77=_0x3ba8a7;let {range:_0x2d0588,sheetID:_0xadd336}=_0x21fa19,_0x567670=this[_0x197f77(0x3ea)][_0x197f77(0x233)](_0x2d0588,_0x2151fd=>(_0x567670[_0x197f77(0x3d4)](),_0x5787e5(_0x2151fd,_0x35ed58,_0xadd336,_0x2d0588)));_0x4c35d5[_0x197f77(0x2a3)](_0x567670);});};this['disposeWithMe']((0x0,t[_0xc6f754(0x1f1)])(this[_0xc6f754(0x286)][_0xc6f754(0x3aa)](()=>{_0x5b2aa4();})));}[_0x1af9b0(0x360)](){const _0x3fd44f=_0x1af9b0;var _0xdbc7e8,_0x373b42;if(this['_online']=!0x0,((_0xdbc7e8=this['_univerInstanceService'][_0x3fd44f(0x3df)]())==null?void 0x0:_0xdbc7e8[_0x3fd44f(0x46e)]())!==this[_0x3fd44f(0x274)])return;let _0x2d61e3=(_0x373b42=this[_0x3fd44f(0x39e)][_0x3fd44f(0x3d1)](g[_0x3fd44f(0x442)])[_0x3fd44f(0x23d)]())==null?void 0x0:_0x373b42[0x0],_0x4d7db2=this['_univerInstanceService']['getCurrentUnitOfType'](t[_0x3fd44f(0x326)][_0x3fd44f(0x347)])[_0x3fd44f(0x29b)]();_0x2d61e3&&_0x4d7db2&&this['_updateLocalCursor'](_0x4d7db2[_0x3fd44f(0x2d7)](),_0x2d61e3);}['_toggleOffline'](){const _0x466910=_0x1af9b0;this[_0x466910(0x38a)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x1af9b0(0x242)])(t[_0x1af9b0(0x20d)])),x(0x3,(0x0,t[_0x1af9b0(0x242)])(E)),x(0x4,(0x0,t['Inject'])(e[_0x1af9b0(0x44d)])),x(0x5,t['IUniverInstanceService']),x(0x6,t[_0x1af9b0(0x412)]),x(0x7,(0x0,t[_0x1af9b0(0x242)])(g[_0x1af9b0(0x248)]))],k);let A=class extends t[_0x1af9b0(0x36c)]{constructor(_0x3ffcbe,_0x4db5f4,_0x589756){const _0x2ae222=_0x1af9b0;super(),this['_univerInstanceService']=_0x3ffcbe,this[_0x2ae222(0x39e)]=_0x4db5f4,this['_collabSessionService']=_0x589756,b(this,_0x2ae222(0x356),new Map()),b(this,'_entityInit$',new r[(_0x2ae222(0x2fc))]()),this[_0x2ae222(0x29f)]();}[_0x1af9b0(0x3d4)](){const _0x9e8979=_0x1af9b0;super[_0x9e8979(0x3d4)](),this[_0x9e8979(0x45f)][_0x9e8979(0x1d9)](),this['_entities']['forEach'](_0x5efdfa=>_0x5efdfa[_0x9e8979(0x3d4)]());}['getCollabCursors$'](_0x172dd4){const _0x412ddc=_0x1af9b0;let _0x3384e6=this['_entities'][_0x412ddc(0x3d1)](_0x172dd4);return _0x3384e6?_0x3384e6['cursorInfo$']:this[_0x412ddc(0x45f)][_0x412ddc(0x183)]((0x0,r[_0x412ddc(0x1c8)])(_0x57a11e=>_0x57a11e[_0x412ddc(0x274)]===_0x172dd4),(0x0,r[_0x412ddc(0x218)])(_0x4dbc9f=>_0x4dbc9f['cursorInfo$']));}[_0x1af9b0(0x29f)](){const _0x5e1181=_0x1af9b0;this[_0x5e1181(0x1c9)][_0x5e1181(0x1d3)](t[_0x5e1181(0x326)][_0x5e1181(0x347)])[_0x5e1181(0x183)]((0x0,r[_0x5e1181(0x3b5)])(this['dispose$']))[_0x5e1181(0x3aa)](async _0x29f70a=>{const _0x2754a7=_0x5e1181;let _0x54ea61=_0x29f70a[_0x2754a7(0x3c8)][_0x2754a7(0x46e)](),_0x54b221=await this[_0x2754a7(0x3f8)](_0x54ea61);this[_0x2754a7(0x45f)]['next'](_0x54b221),this[_0x2754a7(0x356)][_0x2754a7(0x195)](_0x54ea61,_0x54b221);}),this[_0x5e1181(0x1c9)]['getTypeOfUnitAdded$'](t[_0x5e1181(0x326)]['UNIVER_DOC'])[_0x5e1181(0x183)]((0x0,r[_0x5e1181(0x3b5)])(this[_0x5e1181(0x3ab)]))['pipe']((0x0,r[_0x5e1181(0x1c8)])(_0xae4e57=>!_0xae4e57[_0x5e1181(0x3c8)][_0x5e1181(0x46e)]()[_0x5e1181(0x2f3)]('__')))[_0x5e1181(0x3aa)](async _0x51ce75=>{const _0x37759c=_0x5e1181;let {unit:_0x4b6316}=_0x51ce75,_0x40af0f=_0x4b6316[_0x37759c(0x46e)](),_0x1ff9e6=await this[_0x37759c(0x223)](_0x40af0f);this[_0x37759c(0x45f)][_0x37759c(0x3d5)](_0x1ff9e6),this[_0x37759c(0x356)]['set'](_0x40af0f,_0x1ff9e6);}),(0x0,r[_0x5e1181(0x2dc)])(this[_0x5e1181(0x1c9)]['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x5e1181(0x405)]),this[_0x5e1181(0x1c9)][_0x5e1181(0x45d)](t[_0x5e1181(0x326)]['UNIVER_SHEET']))[_0x5e1181(0x183)]((0x0,r[_0x5e1181(0x3b5)])(this[_0x5e1181(0x3ab)]))['subscribe'](_0x2b9905=>{const _0x2a74f5=_0x5e1181;let _0x16c5ec=_0x2b9905['getUnitId'](),_0x38129b=this[_0x2a74f5(0x356)][_0x2a74f5(0x3d1)](_0x16c5ec);_0x38129b&&(_0x38129b['dispose'](),this[_0x2a74f5(0x356)][_0x2a74f5(0x31c)](_0x16c5ec));});}async[_0x1af9b0(0x3f8)](_0xd6362f){const _0x2f834e=_0x1af9b0;let _0x5a8bbb=await this[_0x2f834e(0x202)][_0x2f834e(0x25b)](_0xd6362f),_0x39f22b=this[_0x2f834e(0x39e)][_0x2f834e(0x2f0)](k,_0xd6362f,_0x5a8bbb);return _0x39f22b[_0x2f834e(0x203)](),_0x39f22b;}async[_0x1af9b0(0x223)](_0x54bffd){const _0x10ed3e=_0x1af9b0;let _0x4e4dca=await this[_0x10ed3e(0x202)][_0x10ed3e(0x25b)](_0x54bffd),_0x500db2=this[_0x10ed3e(0x39e)][_0x10ed3e(0x2f0)](O,_0x54bffd,_0x4e4dca);return _0x500db2['init'](),_0x500db2;}};A=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x1af9b0(0x242)])(t['Injector'])),x(0x2,(0x0,t[_0x1af9b0(0x242)])(e[_0x1af9b0(0x196)]))],A);function j(_0x9c62e9,_0x1295e1){const _0x50e84a=_0x1af9b0;_0x9c62e9[_0x50e84a(0x222)](),_0x9c62e9[_0x50e84a(0x231)]=_0x50e84a(0x2aa);let _0xf0c7e0=_0x9c62e9[_0x50e84a(0x42d)](_0x1295e1)[_0x50e84a(0x350)];return _0x9c62e9[_0x50e84a(0x240)](),Math[_0x50e84a(0x36b)](_0xf0c7e0+0x8,0xc8);}function pe(_0x49fc9f,_0x33cfdd){const _0x5d91c3=_0x1af9b0;let {radius:_0xb89138,width:_0x4bfd1f,height:_0x49742a}=_0x33cfdd;_0xb89138??=0x0,_0x4bfd1f??=0x1e,_0x49742a??=0x1e;let _0x504384=0x0,_0x2e1a3f=0x0,_0x7591e9=0x0;_0x504384=_0x2e1a3f=_0x7591e9=Math[_0x5d91c3(0x36b)](_0xb89138,_0x4bfd1f/0x2,_0x49742a/0x2),_0x49fc9f[_0x5d91c3(0x2d1)](),_0x49fc9f[_0x5d91c3(0x27b)](_0x504384,0x0),_0x49fc9f[_0x5d91c3(0x1c2)](_0x4bfd1f-_0x2e1a3f,0x0),_0x49fc9f[_0x5d91c3(0x217)](_0x4bfd1f-_0x2e1a3f,_0x2e1a3f,_0x2e1a3f,Math['PI']*0x3/0x2,0x0,!0x1),_0x49fc9f[_0x5d91c3(0x1c2)](_0x4bfd1f,_0x49742a-_0x7591e9),_0x49fc9f[_0x5d91c3(0x217)](_0x4bfd1f-_0x7591e9,_0x49742a-_0x7591e9,_0x7591e9,0x0,Math['PI']/0x2,!0x1),_0x49fc9f['lineTo'](0x0,_0x49742a),_0x49fc9f[_0x5d91c3(0x1c2)](0x0,_0x504384),_0x49fc9f['arc'](_0x504384,_0x504384,_0x504384,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x49fc9f['closePath'](),_0x33cfdd[_0x5d91c3(0x23c)]&&(_0x49fc9f[_0x5d91c3(0x222)](),_0x49fc9f[_0x5d91c3(0x272)]=_0x33cfdd[_0x5d91c3(0x23c)],_0x33cfdd[_0x5d91c3(0x25a)]===_0x5d91c3(0x40e)?_0x49fc9f[_0x5d91c3(0x23c)]('evenodd'):_0x49fc9f['fill'](),_0x49fc9f[_0x5d91c3(0x240)]());}var M=class e extends p['Shape']{constructor(_0x75b70e,_0x54301b){const _0x2e1bd3=_0x1af9b0;super(_0x75b70e,_0x54301b),b(this,_0x2e1bd3(0x31e),void 0x0),b(this,'text',void 0x0),this[_0x2e1bd3(0x31e)]=_0x54301b==null?void 0x0:_0x54301b[_0x2e1bd3(0x31e)],this[_0x2e1bd3(0x238)]=_0x54301b==null?void 0x0:_0x54301b['text'];}static['drawWith'](_0x450caa,_0x355aae){const _0x7a3882=_0x1af9b0;let {text:_0x4bae1d,color:_0x53c029}=_0x355aae;_0x450caa[_0x7a3882(0x222)](),_0x450caa['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x2caba0=_0x450caa[_0x7a3882(0x42d)](_0x4bae1d)['width'];if(pe(_0x450caa,{'height':0x14,'radius':0x4,'width':j(_0x450caa,_0x4bae1d),'fill':_0x53c029,'evented':!0x1}),_0x450caa[_0x7a3882(0x272)]=_0x7a3882(0x3cd),_0x2caba0>0xc0){let _0x455cf0='',_0x54bc71=0x0;for(let _0x17e0d8 of _0x4bae1d){let _0x5b50d3=_0x450caa[_0x7a3882(0x42d)](_0x17e0d8)[_0x7a3882(0x350)];if(_0x54bc71+_0x5b50d3<=0xc0-_0x450caa['measureText'](_0x7a3882(0x331))[_0x7a3882(0x350)])_0x455cf0+=_0x17e0d8,_0x54bc71+=_0x5b50d3;else{_0x455cf0+=_0x7a3882(0x331);break;}}_0x450caa[_0x7a3882(0x329)](_0x455cf0,0x4,0xf);}else _0x450caa[_0x7a3882(0x329)](_0x4bae1d,0x4,0xf);_0x450caa[_0x7a3882(0x240)]();}[_0x1af9b0(0x42a)](_0x7fa238){const _0x483db7=_0x1af9b0;e[_0x483db7(0x440)](_0x7fa238,this);}};function _0x1ff6(_0x7e8d6b,_0x18ae62){_0x7e8d6b=_0x7e8d6b-0x177;const _0x48f598=_0x48f5();let _0x1ff68b=_0x48f598[_0x7e8d6b];return _0x1ff68b;}const N='collab-text-anchor-';var P=class{constructor(_0x12338f,_0x3b9e19,_0x2467cb,_0x532ae4){const _0x587496=_0x1af9b0;this[_0x587496(0x39a)]=_0x12338f,this[_0x587496(0x303)]=_0x3b9e19,this[_0x587496(0x2a5)]=_0x2467cb,this[_0x587496(0x182)]=_0x532ae4,b(this,_0x587496(0x3e2),[]),b(this,_0x587496(0x1a2),null),b(this,_0x587496(0x178),null),b(this,'_anchorDot',null),b(this,_0x587496(0x221),null),b(this,_0x587496(0x177),null),this[_0x587496(0x2b7)]();}set[_0x1af9b0(0x317)](_0x5f2ff0){const _0x234c02=_0x1af9b0;_0x5f2ff0?(this[_0x234c02(0x1ae)]&&this['_anchorDot'][_0x234c02(0x397)](),this[_0x234c02(0x178)]&&this[_0x234c02(0x178)][_0x234c02(0x19a)]()):(this[_0x234c02(0x1ae)]&&this['_anchorDot'][_0x234c02(0x19a)](),this['_textBubble']&&this[_0x234c02(0x178)][_0x234c02(0x397)]());}['dispose'](){const _0x920546=_0x1af9b0;for(let _0x1605b8 of this[_0x920546(0x3e2)])_0x1605b8[_0x920546(0x3d4)]();this[_0x920546(0x178)]&&this[_0x920546(0x178)]['dispose'](),this[_0x920546(0x1ae)]&&this[_0x920546(0x1ae)][_0x920546(0x3d4)](),this[_0x920546(0x1a2)]&&this[_0x920546(0x1a2)]['dispose'](),this[_0x920546(0x177)]&&this[_0x920546(0x177)]();}[_0x1af9b0(0x2b7)](){const _0xc71277=_0x1af9b0;let {_docSkeleton:_0x20ec2f,_document:_0xb98b4}=this,{color:_0x21cfa1,name:_0x2fbfbb,ranges:_0x51cd4d}=this['_cursor'],_0x3c1204=_0xb98b4['getOffsetConfig'](),{docsLeft:_0x328c9a,docsTop:_0x31fb88}=_0x3c1204,_0x4d9c1e=new f['NodePositionConvertToCursor'](_0x3c1204,_0x20ec2f);for(let {startOffset:_0x5d4ece,endOffset:_0x49ac6b,rangeType:_0x80222a,segmentId:_0x29b7b8,segmentPage:_0x2e1443,collapsed:_0x2c232e,isActive:_0x209906}of _0x51cd4d){let _0x3850e3=_0x20ec2f[_0xc71277(0x1b1)](_0x5d4ece,!0x0,_0x29b7b8,_0x2e1443),_0x10e61=_0x20ec2f[_0xc71277(0x1b1)](_0x49ac6b,!0x0,_0x29b7b8,_0x2e1443);_0x10e61??=_0x20ec2f[_0xc71277(0x1b1)](_0x49ac6b-0x1,!0x1,_0x29b7b8,_0x2e1443);let _0x4fca4c=me(_0x3850e3,_0x10e61);if(_0x209906&&_0x4fca4c[_0xc71277(0x433)]){let {contentBoxPointGroup:_0x2d2f49}=_0x4d9c1e[_0xc71277(0x185)](_0x10e61,_0x10e61);if(_0x2d2f49[_0xc71277(0x23e)]===0x0)continue;this['_drawAnchor'](_0x21cfa1,_0x2d2f49,_0x328c9a,_0x31fb88,_0x2fbfbb),this[_0xc71277(0x177)]=this[_0xc71277(0x2bd)]();}if(_0x3850e3&&_0x10e61){if(_0x80222a===t[_0xc71277(0x1c7)]['RECT']){let {pointGroup:_0x1c6331}=new f[(_0xc71277(0x270))](_0x3c1204,_0x20ec2f)[_0xc71277(0x185)](_0x3850e3,_0x10e61)??{};if(_0x1c6331==null||_0x1c6331[_0xc71277(0x23e)]===0x0)continue;this[_0xc71277(0x362)](_0x21cfa1,_0x1c6331,_0x328c9a,_0x31fb88);}else{if(!_0x2c232e&&_0x4fca4c[_0xc71277(0x2a7)]){let {borderBoxPointGroup:_0x129695}=_0x4d9c1e[_0xc71277(0x185)](_0x3850e3,_0x10e61);if(_0x129695[_0xc71277(0x23e)]===0x0)continue;this['_drawTextRange'](_0x21cfa1,_0x129695,_0x328c9a,_0x31fb88);}}}}}[_0x1af9b0(0x1dd)](_0x56774c,_0x25384e,_0x268679,_0xa5610c,_0x8ac56b){const _0x5ae5c4=_0x1af9b0;let {left:_0x21a008,top:_0x18966d,height:_0x36c4d6}=this[_0x5ae5c4(0x2ae)](_0x25384e),_0x1c002c=1.5/this[_0x5ae5c4(0x3a7)](),_0x2ba584=new p[(_0x5ae5c4(0x472))](N+(0x0,t[_0x5ae5c4(0x226)])(0x6),{'left':_0x21a008+_0x268679-_0x1c002c,'top':_0x18966d+_0xa5610c,'height':_0x36c4d6,'width':1.5,'fill':_0x56774c||(0x0,p[_0x5ae5c4(0x1d7)])(t[_0x5ae5c4(0x180)][_0x5ae5c4(0x20c)],0x0),'strokeWidth':_0x1c002c,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x5ae5c4(0x1a2)]=_0x2ba584,this['_scene'][_0x5ae5c4(0x383)](_0x2ba584,f[_0x5ae5c4(0x2a6)]);let _0x1c96a8=new p[(_0x5ae5c4(0x472))](N+(0x0,t[_0x5ae5c4(0x226)])(0x6),{'left':_0x21a008+_0x268679-_0x1c002c,'top':_0x18966d+_0xa5610c-0x2,'height':0x4,'width':0x4,'fill':_0x56774c||(0x0,p[_0x5ae5c4(0x1d7)])(t[_0x5ae5c4(0x180)][_0x5ae5c4(0x20c)],0x0),'strokeWidth':0x0,'stroke':_0x56774c||(0x0,p[_0x5ae5c4(0x1d7)])(t[_0x5ae5c4(0x180)][_0x5ae5c4(0x20c)],0x0),'evented':!0x1});this[_0x5ae5c4(0x1ae)]=_0x1c96a8,this[_0x5ae5c4(0x303)]['addObject'](_0x1c96a8,f[_0x5ae5c4(0x2a6)]);let _0x3988cd=new M(N+(0x0,t[_0x5ae5c4(0x226)])(0x6),{'left':_0x21a008+_0x268679-_0x1c002c,'top':_0x18966d+_0xa5610c-0x14,'text':_0x8ac56b,'color':_0x56774c});this['_textBubble']=_0x3988cd,this[_0x5ae5c4(0x303)][_0x5ae5c4(0x383)](_0x3988cd,f['TEXT_RANGE_LAYER_INDEX']),this[_0x5ae5c4(0x317)]=!0x1;}[_0x1af9b0(0x2bd)](){const _0x38a8d6=_0x1af9b0;let _0x2323cb=this[_0x38a8d6(0x1a2)]['onPointerEnter$'][_0x38a8d6(0x259)](()=>{const _0x64d0cb=_0x38a8d6;this[_0x64d0cb(0x317)]=!0x0;}),_0x29fb63=this[_0x38a8d6(0x1a2)][_0x38a8d6(0x265)]['subscribeEvent'](()=>{const _0x27465b=_0x38a8d6;this[_0x27465b(0x221)]&&clearTimeout(this[_0x27465b(0x221)]),this[_0x27465b(0x221)]=setTimeout(()=>{const _0x31c8cf=_0x27465b;this[_0x31c8cf(0x317)]=!0x1;},0x7d0);});return()=>{const _0x131bd7=_0x38a8d6;_0x2323cb[_0x131bd7(0x2df)](),_0x29fb63['unsubscribe']();};}[_0x1af9b0(0x1bb)](_0x901703,_0x427e8c,_0xb54927,_0x2ea5a1){const _0x35df9a=_0x1af9b0;let _0x4f3f01=0.2,_0x3184a2=new t['ColorKit'](_0x901703)[_0x35df9a(0x3e3)](_0x4f3f01)[_0x35df9a(0x1b6)](),_0x4850e1=new p[(_0x35df9a(0x235))](_0x35df9a(0x22c)+(0x0,t[_0x35df9a(0x226)])(0x6),{'pointsGroup':_0x427e8c,'fill':_0x3184a2||(0x0,p[_0x35df9a(0x1d7)])(t['COLORS'][_0x35df9a(0x20c)],_0x4f3f01),'left':_0xb54927,'top':_0x2ea5a1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x35df9a(0x3e2)][_0x35df9a(0x352)](_0x4850e1),this[_0x35df9a(0x303)][_0x35df9a(0x383)](_0x4850e1,f[_0x35df9a(0x2a6)]);}[_0x1af9b0(0x362)](_0x19e6cc,_0x12efe5,_0x3ac4d2,_0x3f22c5){const _0x426327=_0x1af9b0;let _0x41d14b=0.2,_0x377787=new t[(_0x426327(0x301))](_0x19e6cc)[_0x426327(0x3e3)](_0x41d14b)[_0x426327(0x1b6)](),_0x316da3=new p[(_0x426327(0x235))](_0x426327(0x45b)+(0x0,t[_0x426327(0x226)])(0x6),{'pointsGroup':_0x12efe5,'fill':_0x377787||(0x0,p['getColor'])(t['COLORS'][_0x426327(0x20c)],_0x41d14b),'left':_0x3ac4d2,'top':_0x3f22c5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x426327(0x3e2)]['push'](_0x316da3),this[_0x426327(0x303)][_0x426327(0x383)](_0x316da3,f[_0x426327(0x2a6)]);}[_0x1af9b0(0x2ae)](_0x472a5c){let _0x291021=_0x472a5c[0x0],_0x30852b=_0x291021[0x0],_0x7e7011=_0x291021[0x2],{x:_0x252d7d,y:_0x12fe35}=_0x30852b,{x:_0x2a6f54,y:_0x17a9bd}=_0x7e7011;return{'left':_0x252d7d,'top':_0x12fe35,'width':_0x2a6f54-_0x252d7d,'height':_0x17a9bd-_0x12fe35};}[_0x1af9b0(0x3a7)](){const _0x34b78e=_0x1af9b0;let {scaleX:_0x23d220,scaleY:_0x10c7bc}=this[_0x34b78e(0x303)][_0x34b78e(0x399)]();return Math[_0x34b78e(0x212)](_0x23d220,_0x10c7bc);}};function me(_0xc951b6,_0x3db99c){const _0x24f453=_0x1af9b0;if(!_0x3db99c)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0xc951b6||_0xc951b6[_0x24f453(0x19f)]!==_0x3db99c[_0x24f453(0x19f)]||(_0xc951b6['pageType']===p[_0x24f453(0x2e8)][_0x24f453(0x41b)]||_0xc951b6[_0x24f453(0x19f)]===p[_0x24f453(0x2e8)][_0x24f453(0x207)])&&_0xc951b6[_0x24f453(0x2f7)]!==_0x3db99c['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x10f500=(0x0,p[_0x24f453(0x2de)])(_0xc951b6),_0x39c392=(0x0,p[_0x24f453(0x2de)])(_0x3db99c);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x10f500==null||_0x39c392==null?_0x10f500==null&&_0x39c392==null:_0x10f500['pageIndex']===_0x39c392[_0x24f453(0x3f2)]&&_0x10f500[_0x24f453(0x2b3)]===_0x39c392[_0x24f453(0x2b3)]&&_0x10f500[_0x24f453(0x2a8)]===_0x39c392[_0x24f453(0x2a8)]};}let F=class extends t[_0x1af9b0(0x36c)]{constructor(_0x5bb195,_0x1185d4,_0x5ce56a,_0x57ac8e,_0x4a5e44){const _0x3bed54=_0x1af9b0;super(),this[_0x3bed54(0x3ee)]=_0x5bb195,this['_docSkeletonManagerService']=_0x1185d4,this[_0x3bed54(0x361)]=_0x5ce56a,this[_0x3bed54(0x438)]=_0x57ac8e,this[_0x3bed54(0x1ac)]=_0x4a5e44,b(this,_0x3bed54(0x2e4),[]),b(this,_0x3bed54(0x46c),[]),this[_0x3bed54(0x29f)]();}[_0x1af9b0(0x29f)](){const _0x1bcccb=_0x1af9b0;let _0x4c3c54=this[_0x1bcccb(0x3ee)][_0x1bcccb(0x41a)],_0x4e9fd1=this['_docSkeletonManagerService'];this[_0x1bcccb(0x2e5)]((0x0,r[_0x1bcccb(0x22a)])([this['_collabCursorController']['getCollabCursors$'](_0x4c3c54),this[_0x1bcccb(0x1ac)][_0x1bcccb(0x34e)]])[_0x1bcccb(0x183)]((0x0,i[_0x1bcccb(0x184)])(([_0x29a138,_0x1f69c2])=>({'skeleton':_0x4e9fd1[_0x1bcccb(0x287)](),'cursors':[..._0x29a138[_0x1bcccb(0x1aa)]()][_0x1bcccb(0x193)](_0x66da3=>({..._0x66da3,'color':this[_0x1bcccb(0x1ac)]['getColorFromTheme'](_0x66da3['color'])}))})))[_0x1bcccb(0x3aa)](_0x268d34=>{const _0x1349c0=_0x1bcccb;if(this[_0x1349c0(0x1e4)](),_0x268d34){let {skeleton:_0x459992,cursors:_0x21b5e9}=_0x268d34;this['_updateCollabCursors'](_0x459992,_0x21b5e9);}})),this[_0x1bcccb(0x2f6)](),this[_0x1bcccb(0x26c)]();}[_0x1af9b0(0x39d)](_0x3d385,_0x2adf58){const _0xc26d97=_0x1af9b0;let {scene:_0x2511e3,mainComponent:_0x37ad34}=this['_context'],_0x33c126=_0x2adf58[_0xc26d97(0x184)](_0x21c3cb=>new P(_0x21c3cb,_0x2511e3,_0x3d385,_0x37ad34));this[_0xc26d97(0x2e4)]=_0x33c126,this['_cursors']=_0x2adf58;}[_0x1af9b0(0x40b)](){const _0x108b71=_0x1af9b0;this[_0x108b71(0x1e4)]();let {scene:_0x5bd0ea,mainComponent:_0x1e4774}=this[_0x108b71(0x3ee)],_0x15c15f=this['_docSkeletonManagerService'][_0x108b71(0x287)](),_0x5d4e87=this[_0x108b71(0x46c)][_0x108b71(0x184)](_0x3914ff=>new P(_0x3914ff,_0x5bd0ea,_0x15c15f,_0x1e4774));this['_cursorShapes']=_0x5d4e87;}[_0x1af9b0(0x1e4)](){const _0x23f3ce=_0x1af9b0;this[_0x23f3ce(0x2e4)][_0x23f3ce(0x477)](_0x511387=>_0x511387['dispose']()),this[_0x23f3ce(0x2e4)]=[];}[_0x1af9b0(0x26c)](){const _0x5476f6=_0x1af9b0;let _0x183b00=[f[_0x5476f6(0x321)]['id']];this[_0x5476f6(0x2e5)](this[_0x5476f6(0x438)][_0x5476f6(0x43f)](_0x561a80=>{const _0x3b3521=_0x5476f6;_0x183b00['includes'](_0x561a80['id'])&&_0x561a80[_0x3b3521(0x337)][_0x3b3521(0x41a)]===this[_0x3b3521(0x3ee)][_0x3b3521(0x41a)]&&this[_0x3b3521(0x40b)]();}));}[_0x1af9b0(0x2f6)](){const _0x38ab2f=_0x1af9b0;this[_0x38ab2f(0x2e5)]((0x0,t[_0x38ab2f(0x38e)])(this[_0x38ab2f(0x3ee)][_0x38ab2f(0x1ec)][_0x38ab2f(0x17b)])[_0x38ab2f(0x183)]((0x0,i[_0x38ab2f(0x1c8)])(_0x5c5a91=>_0x5c5a91['type']===p[_0x38ab2f(0x364)][_0x38ab2f(0x3fb)]),(0x0,i['throttleTime'])(0x10))[_0x38ab2f(0x3aa)](()=>{const _0x11741c=_0x38ab2f;this[_0x11741c(0x40b)]();}));}};F=S([x(0x1,(0x0,t['Inject'])(d[_0x1af9b0(0x1a5)])),x(0x2,(0x0,t[_0x1af9b0(0x242)])(A)),x(0x3,t[_0x1af9b0(0x412)]),x(0x4,(0x0,t['Inject'])(t['ThemeService']))],F);var he=class extends p[_0x1af9b0(0x197)]{constructor(_0xce8741,_0x2ba164){const _0x509eb4=_0x1af9b0;super(_0xce8741,_0x2ba164),b(this,'_color',void 0x0),b(this,_0x509eb4(0x2af),!0x1),b(this,_0x509eb4(0x3f5),void 0x0),b(this,_0x509eb4(0x1ab),''),b(this,_0x509eb4(0x38c),_0x509eb4(0x1d2)),b(this,'_backgroundColor',void 0x0),b(this,_0x509eb4(0x255),void 0x0),b(this,_0x509eb4(0x44f),void 0x0),b(this,_0x509eb4(0x393),0x4),b(this,_0x509eb4(0x35f),void 0x0),b(this,'_blinkIntervalTimer',void 0x0),b(this,_0x509eb4(0x2a2),!0x0),b(this,_0x509eb4(0x3d0),0x0),b(this,_0x509eb4(0x33c),_0x509eb4(0x1fe)),_0x2ba164&&(this[_0x509eb4(0x2e1)](_0x2ba164),_0x2ba164[_0x509eb4(0x1ee)]&&(_0x2ba164[_0x509eb4(0x2c8)]??this[_0x509eb4(0x393)])&&this[_0x509eb4(0x30e)](_0x2ba164[_0x509eb4(0x2c8)]??this[_0x509eb4(0x393)])),this[_0x509eb4(0x1a1)][_0x509eb4(0x259)](()=>this[_0x509eb4(0x2e1)]({'hovered':!0x0})),this[_0x509eb4(0x265)][_0x509eb4(0x259)](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x1af9b0(0x44e)](_0x5cacf7){this['_offsetY']=_0x5cacf7;}['setShapeProps'](_0x175baa){const _0x359184=_0x1af9b0;this['_color']=_0x175baa[_0x359184(0x31e)]??this[_0x359184(0x3ca)],this[_0x359184(0x2af)]=_0x175baa[_0x359184(0x1c0)]??this[_0x359184(0x2af)],this[_0x359184(0x3f5)]=_0x175baa[_0x359184(0x463)]??this[_0x359184(0x3f5)],this[_0x359184(0x1ab)]=_0x175baa[_0x359184(0x467)]??this[_0x359184(0x1ab)],this[_0x359184(0x38c)]=_0x175baa[_0x359184(0x3bc)]??this['_labelPosition'],this[_0x359184(0x39f)]=_0x175baa[_0x359184(0x33e)]??this[_0x359184(0x39f)],this['_showText']=_0x175baa[_0x359184(0x339)]??this[_0x359184(0x255)],this[_0x359184(0x33c)]=_0x175baa['labelHorizontalPosition']??this['_labelHorizontalPosition'],_0x175baa[_0x359184(0x2c8)]!==void 0x0&&(this[_0x359184(0x393)]=_0x175baa[_0x359184(0x2c8)]),_0x175baa[_0x359184(0x1ee)]!==void 0x0&&(this[_0x359184(0x44f)]=_0x175baa[_0x359184(0x1ee)]),_0x175baa[_0x359184(0x422)]!==void 0x0&&(this['_offsetY']=_0x175baa[_0x359184(0x422)]),this[_0x359184(0x3f9)]({'width':_0x175baa[_0x359184(0x350)],'height':_0x175baa['height']});}[_0x1af9b0(0x328)](_0x47a8ca){const _0x143a42=_0x1af9b0;let {row:_0x4c56d2,column:_0x40bfe8}=_0x47a8ca;if(_0x4c56d2>=this['_range'][_0x143a42(0x3e6)]&&_0x4c56d2<=this['_range'][_0x143a42(0x28c)]&&_0x40bfe8>=this['_range']['startColumn']&&_0x40bfe8<=this['_range'][_0x143a42(0x1c6)]){this[_0x143a42(0x2e1)]({'hovered':!0x0});return;}this[_0x143a42(0x2e1)]({'hovered':!0x1});}[_0x1af9b0(0x30e)](_0x285181){const _0x3654a8=_0x1af9b0;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this[_0x3654a8(0x281)]=window[_0x3654a8(0x436)](()=>{const _0x2df13f=_0x3654a8;this[_0x2df13f(0x2a2)]=!this[_0x2df13f(0x2a2)],this['makeDirty'](!0x0);},0x1f4),this[_0x3654a8(0x35f)]=window[_0x3654a8(0x40c)](()=>{const _0x261126=_0x3654a8;this['_stopBlinking'](),this[_0x261126(0x2a2)]=!0x0,this[_0x261126(0x1e5)](!0x0);},_0x285181*0x3e8);}['_stopBlinking'](){const _0x307feb=_0x1af9b0;this['_blinkIntervalTimer']&&=(window['clearInterval'](this[_0x307feb(0x281)]),void 0x0),this['_blinkTimer']&&=(window['clearTimeout'](this[_0x307feb(0x35f)]),void 0x0);}[_0x1af9b0(0x310)](_0x293778){return!0x1;}['dispose'](){const _0x395c43=_0x1af9b0;this[_0x395c43(0x192)](),super['dispose']();}[_0x1af9b0(0x42a)](_0x276e4b){const _0x48df9a=_0x1af9b0;let _0x442048=this[_0x48df9a(0x3ca)],_0x14247b=this['_backgroundColor'];if(this[_0x48df9a(0x44f)]&&!this[_0x48df9a(0x2a2)]&&(_0x442048=this[_0x48df9a(0x43b)](this[_0x48df9a(0x3ca)]),_0x14247b=this[_0x48df9a(0x39f)]?this[_0x48df9a(0x43b)](this[_0x48df9a(0x39f)]):void 0x0),p[_0x48df9a(0x472)][_0x48df9a(0x440)](_0x276e4b,{'width':this['width'],'height':this['height'],'strokeWidth':this[_0x48df9a(0x2b6)]||1.5,'stroke':_0x442048,'evented':!0x1,'fill':_0x14247b}),this[_0x48df9a(0x2af)]||this[_0x48df9a(0x255)]){_0x276e4b[_0x48df9a(0x222)]();let _0x412843=this['_labelHorizontalPosition']==='left'?-j(_0x276e4b,this['_name']):this[_0x48df9a(0x350)];_0x276e4b[_0x48df9a(0x319)](0x1,0x0,0x0,0x1,_0x412843,(this[_0x48df9a(0x38c)]===_0x48df9a(0x414)?0x0:-0x14)+(this[_0x48df9a(0x3d0)]??0x0)),M[_0x48df9a(0x440)](_0x276e4b,{'text':this[_0x48df9a(0x1ab)],'color':_0x442048}),_0x276e4b[_0x48df9a(0x240)]();}}[_0x1af9b0(0x43b)](_0x3ecdb5){const _0x6c9127=_0x1af9b0;return _0x3ecdb5[_0x6c9127(0x2f3)]('#')?'rgba('+Number[_0x6c9127(0x3fc)](_0x3ecdb5['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x6c9127(0x3fc)](_0x3ecdb5[_0x6c9127(0x32e)](0x3,0x5),0x10)+',\x20'+Number[_0x6c9127(0x3fc)](_0x3ecdb5[_0x6c9127(0x32e)](0x5,0x7),0x10)+_0x6c9127(0x24d):_0x3ecdb5[_0x6c9127(0x2f3)](_0x6c9127(0x288))?_0x3ecdb5[_0x6c9127(0x253)](/[\d.]+\)$/g,_0x6c9127(0x1e0)):_0x3ecdb5['startsWith'](_0x6c9127(0x1fb))?_0x3ecdb5[_0x6c9127(0x253)](_0x6c9127(0x1fb),_0x6c9127(0x288))[_0x6c9127(0x253)](')',_0x6c9127(0x24d)):_0x3ecdb5;}};let I=class extends t[_0x1af9b0(0x36c)]{constructor(_0x168ff8,_0x4151f6,_0x5ae593,_0x206260){const _0x30e94b=_0x1af9b0;super(),this[_0x30e94b(0x3ee)]=_0x168ff8,this[_0x30e94b(0x241)]=_0x4151f6,this[_0x30e94b(0x361)]=_0x5ae593,this['_themeService']=_0x206260,b(this,_0x30e94b(0x46c),new Set()),b(this,'_lastPointer',null),b(this,_0x30e94b(0x28f),null),this[_0x30e94b(0x29f)]();}[_0x1af9b0(0x29f)](){const _0x264743=_0x1af9b0;this[_0x264743(0x241)][_0x264743(0x37e)]['pipe']((0x0,i[_0x264743(0x3b5)])(this[_0x264743(0x3ab)]),(0x0,i['switchMap'])(_0x3dbb22=>{const _0x30a218=_0x264743;if(_0x3dbb22){let _0x4de42d=_0x3dbb22['sheetId'];return(0x0,r['combineLatest'])(this[_0x30a218(0x361)]['getCollabCursors$'](this['_context'][_0x30a218(0x41a)]),this[_0x30a218(0x1ac)][_0x30a218(0x34e)])['pipe']((0x0,i[_0x30a218(0x184)])(([_0x49a33e,_0x5cc39c])=>{const _0x178edd=_0x30a218;let _0x12aa12=new Map();return _0x49a33e[_0x178edd(0x477)]((_0x1600eb,_0x38a373)=>{const _0x1625c4=_0x178edd;if(_0x1600eb[_0x1625c4(0x1b9)]===_0x4de42d){let _0x5ecb46={..._0x1600eb};_0x5ecb46[_0x1625c4(0x31e)]=this[_0x1625c4(0x1ac)]['getColorFromTheme'](_0x1600eb['color']),_0x12aa12[_0x1625c4(0x195)](_0x38a373,_0x5ecb46);}}),{'skeleton':_0x3dbb22,'cursors':_0x12aa12};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x264743(0x3aa)](({skeleton:_0x3767d7,cursors:_0x554fdb})=>{const _0xc993e9=_0x264743;this[_0xc993e9(0x1e4)](),_0x3767d7&&this['_updateCollabCursors'](_0x3767d7,_0x554fdb);}),this['disposeWithMe'](this[_0x264743(0x241)][_0x264743(0x37e)]['pipe']((0x0,i['takeUntil'])(this[_0x264743(0x3ab)]))[_0x264743(0x3aa)](_0xded7c5=>{const _0x136197=_0x264743;var _0xc91537;if(_0xded7c5==null)return;(_0xc91537=this['_pointerMoveDisposable'])==null||_0xc91537[_0x136197(0x2df)](),this[_0x136197(0x28f)]=null;let {skeleton:_0x43ce68}=_0xded7c5,{scene:_0x262774}=this['_context'];this[_0x136197(0x28f)]=_0x262774[_0x136197(0x1d0)][_0x136197(0x259)]((0x0,t['debounce'])(_0x35408c=>{const _0x26d86d=_0x136197;var _0xa2cb9d,_0x3ebcb0;let {offsetX:_0x4b8ca0,offsetY:_0x34283d}=_0x35408c,{x:_0x278fd2,y:_0x851459}=_0x262774['getCoordRelativeToViewport'](p[_0x26d86d(0x2c4)][_0x26d86d(0x407)]([_0x4b8ca0,_0x34283d])),{scaleX:_0x1d4771,scaleY:_0x38155f}=_0x262774[_0x26d86d(0x399)](),_0x10e6c8=_0x262774[_0x26d86d(0x205)](p[_0x26d86d(0x282)][_0x26d86d(0x40f)]),_0x276221=_0x262774[_0x26d86d(0x284)](p[_0x26d86d(0x2c4)][_0x26d86d(0x407)]([_0x278fd2,_0x851459]),_0x10e6c8),_0x16c380=_0x43ce68[_0x26d86d(0x425)](_0x4b8ca0,_0x34283d,_0x1d4771,_0x38155f,_0x276221);(((_0xa2cb9d=this[_0x26d86d(0x2ad)])==null?void 0x0:_0xa2cb9d['column'])!==_0x16c380[_0x26d86d(0x45a)]||((_0x3ebcb0=this[_0x26d86d(0x2ad)])==null?void 0x0:_0x3ebcb0[_0x26d86d(0x22e)])!==_0x16c380[_0x26d86d(0x22e)])&&this[_0x26d86d(0x46c)]['forEach'](_0x1b707f=>{const _0x59169a=_0x26d86d;_0x1b707f[_0x59169a(0x328)](_0x16c380);});},0x64));})),this[_0x264743(0x2e5)]((0x0,t[_0x264743(0x1f1)])(()=>{const _0x38b792=_0x264743;var _0x2c2e61;(_0x2c2e61=this[_0x38b792(0x28f)])==null||_0x2c2e61[_0x38b792(0x2df)](),this['_pointerMoveDisposable']=null;}));}[_0x1af9b0(0x39d)](_0x286985,_0x22c8e1){const _0x1bd3f8=_0x1af9b0;let _0x153563=this[_0x1bd3f8(0x241)]['getCurrentSkeleton']();if(!_0x153563)return;let _0x146af5=this[_0x1bd3f8(0x224)]();if(!_0x146af5)return;this['_cursors'][_0x1bd3f8(0x477)](_0x3e7c25=>{const _0x40acc8=_0x1bd3f8;_0x3e7c25[_0x40acc8(0x1e5)]();});let {scene:_0x2e624f}=_0x146af5,_0x16754d=ge(Array['from'](_0x22c8e1[_0x1bd3f8(0x1aa)]()))[_0x1bd3f8(0x184)](_0x581e7c=>{const _0x134d73=_0x1bd3f8;let {color:_0x11bab7,range:_0x4d22a3,name:_0x2ec800,selection:_0x1e5612,sheetID:_0x359cae}=_0x581e7c,{startColumn:_0x385d67,startRow:_0x527c86,endColumn:_0x534b93,endRow:_0xbd670c}=_0x4d22a3,_0x4fb44a=(0x0,_[_0x134d73(0x189)])(_0x527c86,_0x385d67,_0x2e624f,_0x153563),_0x45044e=(0x0,_[_0x134d73(0x189)])(_0xbd670c,_0x534b93,_0x2e624f,_0x153563),{columnHeaderHeightAndMarginTop:_0x55ba92}=_0x153563,{startX:_0xc11dbc,startY:_0x3c5e19}=_0x4fb44a,{endX:_0x34cbbf,endY:_0x4098d1}=_0x45044e,_0x47abce=_0x34cbbf-_0xc11dbc,_0x4c384f=_0x4098d1-_0x3c5e19;return new he(_0x2ec800,{'labelPosition':_0x3c5e19-_0x55ba92>=0x14?_0x134d73(0x1d2):_0x134d73(0x414),'sheetID':_0x359cae,'range':_0x4d22a3,'color':_0x11bab7,'name':_0x2ec800,'selection':_0x1e5612,'left':_0xc11dbc,'top':_0x3c5e19,'width':_0x47abce,'height':_0x4c384f,'evented':!0x1,'zIndex':0x1389});});_0x2e624f[_0x1bd3f8(0x2d5)](_0x16754d,0x1),this[_0x1bd3f8(0x46c)]=new Set(_0x16754d);}['_removeCollabCursors'](){const _0x18859e=_0x1af9b0;var _0x1b809b;(_0x1b809b=this[_0x18859e(0x46c)])==null||_0x1b809b['forEach'](_0x580cdd=>_0x580cdd[_0x18859e(0x3d4)]());}[_0x1af9b0(0x224)](){const _0x1d6375=_0x1af9b0;return(0x0,_[_0x1d6375(0x458)])(this[_0x1d6375(0x3ee)][_0x1d6375(0x3c8)],this[_0x1d6375(0x3ee)]);}};I=S([x(0x1,(0x0,t['Inject'])(_[_0x1af9b0(0x2ca)])),x(0x2,(0x0,t[_0x1af9b0(0x242)])(A)),x(0x3,(0x0,t[_0x1af9b0(0x242)])(t[_0x1af9b0(0x268)]))],I);function ge(_0x49ce89){const _0x2370b7=_0x1af9b0;let _0x6e4979=new Map();return _0x49ce89[_0x2370b7(0x477)](_0x4f46f9=>{const _0x3863b0=_0x2370b7;if(_0x6e4979[_0x3863b0(0x2eb)](_0x4f46f9[_0x3863b0(0x1b4)])){let _0x5180e3=_0x6e4979[_0x3863b0(0x3d1)](_0x4f46f9[_0x3863b0(0x1b4)]);_0x5180e3[_0x3863b0(0x467)]+=',\x20'+_0x4f46f9[_0x3863b0(0x467)];}else _0x6e4979[_0x3863b0(0x195)](_0x4f46f9[_0x3863b0(0x1b4)],_0x4f46f9);}),Array[_0x2370b7(0x307)](_0x6e4979[_0x2370b7(0x1aa)]());}function L(_0x1984b8){const _0x58829f=_0x1af9b0;return typeof _0x1984b8==_0x58829f(0x18b)&&!!_0x1984b8;}function _e(_0x39afc2){const _0x5d8957=_0x1af9b0;return _0x39afc2[_0x5d8957(0x342)]===l[_0x5d8957(0x291)][_0x5d8957(0x2ee)]&&_0x5d8957(0x3db)in _0x39afc2&&L(_0x39afc2[_0x5d8957(0x3db)])&&typeof _0x39afc2['data'][_0x5d8957(0x213)]==_0x5d8957(0x3c4)&&typeof _0x39afc2['data'][_0x5d8957(0x1b4)]=='string';}function ve(_0x5bd07e){const _0x103f6d=_0x1af9b0;return _0x5bd07e['eventID']===l[_0x103f6d(0x291)][_0x103f6d(0x1eb)]&&_0x103f6d(0x3db)in _0x5bd07e&&L(_0x5bd07e[_0x103f6d(0x3db)])&&typeof _0x5bd07e[_0x103f6d(0x3db)][_0x103f6d(0x213)]==_0x103f6d(0x3c4);}function ye(_0x2b5df0,_0x3fcfcf){const _0x19ffec=_0x1af9b0;let _0x32a076;try{_0x32a076=JSON[_0x19ffec(0x2ba)](_0x2b5df0);}catch{return null;}if(!L(_0x32a076)||typeof _0x32a076['kind']!=_0x19ffec(0x3c4)||typeof _0x32a076['unitId']!=_0x19ffec(0x3c4)||typeof _0x32a076[_0x19ffec(0x2ef)]!='string')return null;let _0x11007b=typeof _0x32a076['unitType']==_0x19ffec(0x35c)?_0x32a076['unitType']:_0x3fcfcf;if(_0x11007b==null)return null;let _0x4824dc=L(_0x32a076[_0x19ffec(0x31f)])&&typeof _0x32a076[_0x19ffec(0x31f)]['x']==_0x19ffec(0x35c)&&Number['isFinite'](_0x32a076[_0x19ffec(0x31f)]['x'])&&typeof _0x32a076[_0x19ffec(0x31f)]['y']=='number'&&Number[_0x19ffec(0x39c)](_0x32a076[_0x19ffec(0x31f)]['y'])?{'x':_0x32a076[_0x19ffec(0x31f)]['x'],'y':_0x32a076['pointer']['y']}:null;return{'kind':_0x32a076[_0x19ffec(0x1c5)],'unitType':_0x11007b,'unitId':_0x32a076['unitId'],'subUnitId':_0x32a076[_0x19ffec(0x2ef)],'selectedIds':Array[_0x19ffec(0x20f)](_0x32a076[_0x19ffec(0x1d4)])?_0x32a076[_0x19ffec(0x1d4)][_0x19ffec(0x1c8)](_0x48ed67=>typeof _0x48ed67==_0x19ffec(0x3c4)):[],'focusedId':typeof _0x32a076[_0x19ffec(0x377)]==_0x19ffec(0x3c4)?_0x32a076[_0x19ffec(0x377)]:null,'pointer':_0x4824dc};}function be(_0x1250ae,_0x3adf2f,_0x59cc6e){const _0x468f0c=_0x1af9b0;return{'kind':_0x3adf2f,'unitType':_0x1250ae,'unitId':_0x59cc6e[_0x468f0c(0x41a)],'subUnitId':_0x59cc6e['subUnitId'],'selectedIds':Array[_0x468f0c(0x307)](_0x59cc6e[_0x468f0c(0x1d4)]),'focusedId':_0x59cc6e[_0x468f0c(0x377)],'pointer':_0x59cc6e['pointer']?{..._0x59cc6e['pointer']}:null};}let R=class extends t[_0x1af9b0(0x36c)]{constructor(_0x572072,_0x28f242,_0x2901d6,_0x4d1c37,_0xb03866,_0x475d48){const _0x54b800=_0x1af9b0;super(),this['unitId']=_0x572072,this[_0x54b800(0x228)]=_0x28f242,this[_0x54b800(0x3a2)]=_0x2901d6,this[_0x54b800(0x208)]=_0x4d1c37,this[_0x54b800(0x2d2)]=_0xb03866,this[_0x54b800(0x438)]=_0x475d48,b(this,'_online',!0x1),b(this,'_initialized',!0x1);}get[_0x1af9b0(0x36d)](){const _0x1b9fb3=_0x1af9b0;return this['_adapter'][_0x1b9fb3(0x36d)];}[_0x1af9b0(0x3d4)](){const _0x5df315=_0x1af9b0;this[_0x5df315(0x3bb)](),super[_0x5df315(0x3d4)]();}[_0x1af9b0(0x203)](){const _0x314702=_0x1af9b0;this[_0x314702(0x1cb)]||(this['_initialized']=!0x0,this[_0x314702(0x228)][_0x314702(0x250)][_0x314702(0x183)]((0x0,r[_0x314702(0x3b5)])(this[_0x314702(0x3ab)]))['subscribe'](_0x54f22c=>{const _0x487ba7=_0x314702;if(_0x54f22c===e[_0x487ba7(0x1cd)][_0x487ba7(0x363)]){this[_0x487ba7(0x38a)]=!0x0;let _0x11a56b=this[_0x487ba7(0x3a2)][_0x487ba7(0x304)](this[_0x487ba7(0x41a)]);_0x11a56b&&this[_0x487ba7(0x1ad)](_0x11a56b);return;}this['_online']=!0x1,this['_clearRemotePresences']();}),this['_session'][_0x314702(0x299)]['pipe']((0x0,r[_0x314702(0x3b5)])(this[_0x314702(0x3ab)]))[_0x314702(0x3aa)](_0x246540=>{const _0x307c9a=_0x314702;_e(_0x246540)?this[_0x307c9a(0x293)](_0x246540):ve(_0x246540)&&this[_0x307c9a(0x358)](_0x246540[_0x307c9a(0x3db)][_0x307c9a(0x213)]);}),this[_0x314702(0x3a2)]['localPresence$']['pipe']((0x0,r['filter'])(_0x643275=>this[_0x314702(0x38a)]&&_0x643275[_0x314702(0x41a)]===this[_0x314702(0x41a)]),(0x0,r[_0x314702(0x278)])(_0x517baf=>(0x0,r[_0x314702(0x3f7)])(_0x517baf[_0x314702(0x27d)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r['takeUntil'])(this['dispose$']))[_0x314702(0x3aa)](_0x3a7ac3=>this[_0x314702(0x1ad)](_0x3a7ac3)));}[_0x1af9b0(0x1ad)](_0x10603d){const _0x166381=_0x1af9b0;let _0x5822f9=this['_session'][_0x166381(0x3e7)]();if(!_0x5822f9||!this[_0x166381(0x38a)])return;let _0x3de92b={'eventID':l[_0x166381(0x291)][_0x166381(0x2ee)],'data':{'unitID':this['unitId'],'memberID':_0x5822f9,'selection':JSON[_0x166381(0x417)](be(this[_0x166381(0x36d)],this[_0x166381(0x3a2)][_0x166381(0x311)],_0x10603d))}};this[_0x166381(0x228)][_0x166381(0x191)](_0x3de92b,this[_0x166381(0x41a)])[_0x166381(0x200)](()=>void 0x0);}[_0x1af9b0(0x293)](_0x2f944e){const _0x1d7157=_0x1af9b0;let {memberID:_0x13fd1e,selection:_0x3317cd}=_0x2f944e[_0x1d7157(0x3db)];if(_0x13fd1e===this[_0x1d7157(0x228)][_0x1d7157(0x3e7)]())return;let _0x53ae20=ye(_0x3317cd,this[_0x1d7157(0x36d)]);if(!_0x53ae20||_0x53ae20[_0x1d7157(0x1c5)]!==this[_0x1d7157(0x3a2)]['presenceKind']||_0x53ae20[_0x1d7157(0x36d)]!==this[_0x1d7157(0x36d)]||_0x53ae20[_0x1d7157(0x41a)]!==this[_0x1d7157(0x41a)])return;let _0x8edfb5=this[_0x1d7157(0x2d2)][_0x1d7157(0x1bc)](this[_0x1d7157(0x41a)],_0x13fd1e),_0x142edb={'unitId':_0x53ae20[_0x1d7157(0x41a)],'subUnitId':_0x53ae20['subUnitId'],'selectedIds':_0x53ae20[_0x1d7157(0x1d4)],'focusedId':_0x53ae20[_0x1d7157(0x377)],'pointer':_0x53ae20['pointer'],'memberId':_0x13fd1e,'color':this[_0x1d7157(0x208)][_0x1d7157(0x1df)](_0x13fd1e),'name':(_0x8edfb5==null?void 0x0:_0x8edfb5[_0x1d7157(0x467)])??_0x13fd1e};this[_0x1d7157(0x438)][_0x1d7157(0x429)](w['id'],{'unitType':this[_0x1d7157(0x36d)],'update':{'type':_0x1d7157(0x195),'state':_0x142edb}})[_0x1d7157(0x200)](()=>void 0x0);}[_0x1af9b0(0x358)](_0x4075e9){const _0x3a3f14=_0x1af9b0;this['_commandService'][_0x3a3f14(0x429)](w['id'],{'unitType':this[_0x3a3f14(0x36d)],'update':{'type':_0x3a3f14(0x3b9),'unitId':this[_0x3a3f14(0x41a)],'memberId':_0x4075e9}})[_0x3a3f14(0x200)](()=>void 0x0);}[_0x1af9b0(0x3bb)](){const _0x22e0df=_0x1af9b0;this[_0x22e0df(0x438)][_0x22e0df(0x429)](w['id'],{'unitType':this[_0x22e0df(0x36d)],'update':{'type':'clear','unitId':this[_0x22e0df(0x41a)]}})[_0x22e0df(0x200)](()=>void 0x0);}};R=S([x(0x3,(0x0,t[_0x1af9b0(0x242)])(E)),x(0x4,(0x0,t[_0x1af9b0(0x242)])(e['MemberService'])),x(0x5,(0x0,t[_0x1af9b0(0x242)])(t['ICommandService']))],R);let z=class extends t[_0x1af9b0(0x36c)]{constructor(_0x5613d4,_0x5b5ced,_0x2fb31f,_0x3f0f18){const _0x4d3872=_0x1af9b0;super(),this[_0x4d3872(0x1c9)]=_0x5613d4,this[_0x4d3872(0x39e)]=_0x5b5ced,this[_0x4d3872(0x202)]=_0x2fb31f,this[_0x4d3872(0x1af)]=_0x3f0f18,b(this,_0x4d3872(0x464),!0x1),b(this,_0x4d3872(0x356),new Map()),b(this,'_pendingEntities',new Map()),b(this,_0x4d3872(0x22d),new Map()),this[_0x4d3872(0x29f)]();}[_0x1af9b0(0x3d4)](){const _0x4ce980=_0x1af9b0;this[_0x4ce980(0x464)]=!0x0,this[_0x4ce980(0x22d)][_0x4ce980(0x477)](_0x140eec=>_0x140eec[_0x4ce980(0x3d4)]()),this[_0x4ce980(0x22d)][_0x4ce980(0x36e)](),this[_0x4ce980(0x356)]['forEach'](_0x2fa538=>_0x2fa538[_0x4ce980(0x3d4)]()),this[_0x4ce980(0x356)][_0x4ce980(0x36e)](),this[_0x4ce980(0x24f)][_0x4ce980(0x36e)](),super[_0x4ce980(0x3d4)]();}['_init'](){const _0x3d5486=_0x1af9b0;this[_0x3d5486(0x1af)][_0x3d5486(0x3c3)][_0x3d5486(0x183)]((0x0,r[_0x3d5486(0x3b5)])(this['dispose$']))[_0x3d5486(0x3aa)](_0x10c18a=>this[_0x3d5486(0x2f1)](_0x10c18a));}[_0x1af9b0(0x2f1)](_0x2513a9){const _0x3f2ef3=_0x1af9b0;let _0x4efaec=new Set(_0x2513a9[_0x3f2ef3(0x184)](_0x5c6966=>_0x5c6966[_0x3f2ef3(0x36d)]));this['_adapterDisposables'][_0x3f2ef3(0x477)]((_0x8708c,_0x3052fc)=>{const _0x2d2a34=_0x3f2ef3;_0x4efaec[_0x2d2a34(0x2eb)](_0x3052fc)||(_0x8708c[_0x2d2a34(0x3d4)](),this[_0x2d2a34(0x22d)][_0x2d2a34(0x31c)](_0x3052fc),this[_0x2d2a34(0x330)](_0x3052fc));}),_0x2513a9[_0x3f2ef3(0x477)](_0x1e3cbb=>{const _0x3062d9=_0x3f2ef3;this[_0x3062d9(0x22d)][_0x3062d9(0x2eb)](_0x1e3cbb[_0x3062d9(0x36d)])||this[_0x3062d9(0x21c)](_0x1e3cbb);});}[_0x1af9b0(0x21c)](_0xc2b809){const _0x23094f=_0x1af9b0;let _0x19c088=new t[(_0x23094f(0x2b5))]();this['_adapterDisposables'][_0x23094f(0x195)](_0xc2b809[_0x23094f(0x36d)],_0x19c088),_0x19c088[_0x23094f(0x2a3)](_0xc2b809[_0x23094f(0x359)]()),this['_univerInstanceService']['getAllUnitsForType'](_0xc2b809[_0x23094f(0x36d)])['forEach'](_0x469dee=>this[_0x23094f(0x33a)](_0x469dee[_0x23094f(0x46e)](),_0xc2b809)[_0x23094f(0x200)](()=>void 0x0));let _0x141548=this['_univerInstanceService'][_0x23094f(0x1d3)](_0xc2b809['unitType'])[_0x23094f(0x3aa)](({unit:_0x41dfa2})=>this[_0x23094f(0x33a)](_0x41dfa2[_0x23094f(0x46e)](),_0xc2b809)[_0x23094f(0x200)](()=>void 0x0));_0x19c088[_0x23094f(0x2a3)]((0x0,t[_0x23094f(0x1f1)])(()=>_0x141548[_0x23094f(0x2df)]()));let _0xc635fd=this['_univerInstanceService'][_0x23094f(0x45d)](_0xc2b809[_0x23094f(0x36d)])[_0x23094f(0x3aa)](_0x2ea7c9=>this[_0x23094f(0x454)](_0x2ea7c9[_0x23094f(0x46e)]()));_0x19c088['add']((0x0,t[_0x23094f(0x1f1)])(()=>_0xc635fd['unsubscribe']()));}async[_0x1af9b0(0x33a)](_0x3046a6,_0x52a77a){const _0x5e879e=_0x1af9b0;if(this['_entities'][_0x5e879e(0x2eb)](_0x3046a6)||this[_0x5e879e(0x24f)][_0x5e879e(0x2eb)](_0x3046a6))return;let _0xf78524={};this['_pendingEntities'][_0x5e879e(0x195)](_0x3046a6,_0xf78524);let _0x34658f=await this[_0x5e879e(0x202)][_0x5e879e(0x25b)](_0x3046a6)['catch'](_0x60f689=>{const _0xa2fb03=_0x5e879e;throw this[_0xa2fb03(0x24f)][_0xa2fb03(0x3d1)](_0x3046a6)===_0xf78524&&this[_0xa2fb03(0x24f)]['delete'](_0x3046a6),_0x60f689;});if(this['_isDisposed']||this['_pendingEntities'][_0x5e879e(0x3d1)](_0x3046a6)!==_0xf78524||this[_0x5e879e(0x1af)][_0x5e879e(0x3d1)](_0x52a77a[_0x5e879e(0x36d)])!==_0x52a77a){this['_pendingEntities'][_0x5e879e(0x3d1)](_0x3046a6)===_0xf78524&&this[_0x5e879e(0x24f)][_0x5e879e(0x31c)](_0x3046a6);return;}let _0x1551e8=this[_0x5e879e(0x39e)][_0x5e879e(0x2f0)](R,_0x3046a6,_0x34658f,_0x52a77a);_0x1551e8['init'](),this[_0x5e879e(0x24f)][_0x5e879e(0x31c)](_0x3046a6),this[_0x5e879e(0x356)]['set'](_0x3046a6,_0x1551e8);}[_0x1af9b0(0x454)](_0x74bba8){const _0x3090c8=_0x1af9b0;this[_0x3090c8(0x24f)][_0x3090c8(0x31c)](_0x74bba8);let _0x3b4748=this['_entities'][_0x3090c8(0x3d1)](_0x74bba8);_0x3b4748&&(_0x3b4748[_0x3090c8(0x3d4)](),this[_0x3090c8(0x356)][_0x3090c8(0x31c)](_0x74bba8));}[_0x1af9b0(0x330)](_0x53c21d){const _0x511ec3=_0x1af9b0;this[_0x511ec3(0x1c9)][_0x511ec3(0x215)](_0x53c21d)[_0x511ec3(0x477)](_0x3fe11a=>this['_pendingEntities']['delete'](_0x3fe11a[_0x511ec3(0x46e)]())),Array[_0x511ec3(0x307)](this['_entities'][_0x511ec3(0x3c0)]())['forEach'](([_0xc9343a,_0x27d683])=>{_0x27d683['unitType']===_0x53c21d&&this['_disposeEntity'](_0xc9343a);});}};z=S([x(0x0,t[_0x1af9b0(0x423)]),x(0x1,(0x0,t[_0x1af9b0(0x242)])(t['Injector'])),x(0x2,(0x0,t[_0x1af9b0(0x242)])(e[_0x1af9b0(0x196)])),x(0x3,(0x0,t[_0x1af9b0(0x242)])(n['IUnitPresenceUIAdapterRegistry']))],z);let B=class extends t['Disposable']{constructor(_0x3b44c6,_0x2e0f9d,_0x5a2183,_0x5e078f,_0x24134a,_0xc46a5d){const _0x244a5e=_0x1af9b0;super(),this[_0x244a5e(0x396)]=_0x3b44c6,this[_0x244a5e(0x2bc)]=_0x2e0f9d,this[_0x244a5e(0x2d3)]=_0x5a2183,this[_0x244a5e(0x37b)]=_0x5e078f,this[_0x244a5e(0x225)]=_0x24134a,this['_localeService']=_0xc46a5d,b(this,'_conflictNotification',null),b(this,'_retryingConflictCacheUnitIDs',new Set()),this[_0x244a5e(0x31d)](),this[_0x244a5e(0x3bd)]();}[_0x1af9b0(0x3d4)](){const _0x42d702=_0x1af9b0;var _0x3aa1a2;(_0x3aa1a2=this[_0x42d702(0x370)])==null||_0x3aa1a2[_0x42d702(0x3d4)](),this[_0x42d702(0x370)]=null,super[_0x42d702(0x3d4)]();}['_setupBeforeClosingHandler'](){const _0x41027b=_0x1af9b0;this[_0x41027b(0x2e5)](this[_0x41027b(0x396)][_0x41027b(0x21d)](()=>{const _0x49a9be=_0x41027b;if(this[_0x49a9be(0x2bc)][_0x49a9be(0x2dd)][_0x49a9be(0x386)])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x1af9b0(0x3bd)](){const _0x23b41a=_0x1af9b0;this[_0x23b41a(0x2e5)](this[_0x23b41a(0x2d3)][_0x23b41a(0x299)][_0x23b41a(0x3aa)](_0x53a430=>{const _0x4d2b35=_0x23b41a;_0x53a430['id']===e[_0x4d2b35(0x392)][_0x4d2b35(0x1de)]&&this['_messageService'][_0x4d2b35(0x19a)]({'type':a[_0x4d2b35(0x2f8)][_0x4d2b35(0x3d2)],'content':this['_localeService']['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x53a430['id']===e['CollaborationUIEventId'][_0x4d2b35(0x35d)]&&this['_messageService'][_0x4d2b35(0x19a)]({'type':a[_0x4d2b35(0x2f8)][_0x4d2b35(0x3d2)],'content':this['_localeService']['t'](_0x4d2b35(0x271))}),_0x53a430['id']===e[_0x4d2b35(0x392)][_0x4d2b35(0x43c)]&&this[_0x4d2b35(0x3a3)]({'title':this['_localeService']['t'](_0x4d2b35(0x35a)),'content':this['_localeService']['t'](_0x4d2b35(0x188)),'type':_0x4d2b35(0x338),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x4d2b35(0x32d)]['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x241979=>{_0x241979['preventDefault'](),window['location']['reload']();}}}),_0x53a430['id']===e[_0x4d2b35(0x392)][_0x4d2b35(0x27e)]&&this['_showConflictProcessingNotification'](),_0x53a430['id']===e[_0x4d2b35(0x392)][_0x4d2b35(0x2a9)]&&_0x53a430['unitID']&&this[_0x4d2b35(0x2fa)](_0x53a430[_0x4d2b35(0x274)]),_0x53a430['id']===e['CollaborationUIEventId'][_0x4d2b35(0x332)]&&this[_0x4d2b35(0x3a3)]({'title':this[_0x4d2b35(0x32d)]['t'](_0x4d2b35(0x3ff)),'content':this[_0x4d2b35(0x32d)]['t']('collaboration-client-ui.conflict.content'),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x4d2b35(0x32d)]['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x4a2c97=>{const _0x22abc2=_0x4d2b35;_0x4a2c97[_0x22abc2(0x42b)](),window[_0x22abc2(0x3ad)][_0x22abc2(0x335)]();}}}),_0x53a430['id']===e[_0x4d2b35(0x392)]['JOIN_ROOM_FAILED']&&this[_0x4d2b35(0x37b)][_0x4d2b35(0x19a)]({'type':a['MessageType'][_0x4d2b35(0x3d2)],'content':this[_0x4d2b35(0x32d)]['t'](_0x53a430['data']||'')}),_0x53a430['id']===e[_0x4d2b35(0x392)][_0x4d2b35(0x3f0)]&&this[_0x4d2b35(0x37b)][_0x4d2b35(0x19a)]({'type':a['MessageType']['Warning'],'content':this[_0x4d2b35(0x32d)]['t'](_0x4d2b35(0x445))}),_0x53a430['id']===e[_0x4d2b35(0x392)]['SOCKET_FAILED']&&this[_0x4d2b35(0x37b)]['show']({'type':a['MessageType'][_0x4d2b35(0x2d4)],'content':this[_0x4d2b35(0x32d)]['t']('collaboration-client-ui.session.connection-failed')}),_0x53a430['id']===e[_0x4d2b35(0x392)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4d2b35(0x37b)]['show']({'type':a[_0x4d2b35(0x2f8)][_0x4d2b35(0x2d4)],'content':this[_0x4d2b35(0x32d)]['t'](_0x4d2b35(0x3ec))});}));}[_0x1af9b0(0x29a)](){const _0x264061=_0x1af9b0;this['_replaceConflictNotification']({'title':this[_0x264061(0x32d)]['t'](_0x264061(0x3ff)),'content':this[_0x264061(0x32d)]['t'](_0x264061(0x416)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x1af9b0(0x2fa)](_0x53daab){const _0x36b263=_0x1af9b0;this[_0x36b263(0x3a3)]({'title':this[_0x36b263(0x32d)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x36b263(0x32d)]['t'](_0x36b263(0x1b7)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x36b263(0x3da)),'onClick':_0x24189c=>{const _0x3f5462=_0x36b263;_0x24189c['preventDefault'](),this[_0x3f5462(0x18d)](_0x53daab);}}});}['_retryConflictCacheClear'](_0x1700c7){const _0x4eca46=_0x1af9b0;this['_retryingConflictCacheUnitIDs']['has'](_0x1700c7)||(this[_0x4eca46(0x3d9)]['add'](_0x1700c7),this[_0x4eca46(0x29a)](),this[_0x4eca46(0x2bc)][_0x4eca46(0x30b)](_0x1700c7)[_0x4eca46(0x37a)](()=>window[_0x4eca46(0x3ad)][_0x4eca46(0x335)]())[_0x4eca46(0x200)](()=>this['_showConflictCacheClearFailedNotification'](_0x1700c7))[_0x4eca46(0x2a4)](()=>this[_0x4eca46(0x3d9)][_0x4eca46(0x31c)](_0x1700c7)));}[_0x1af9b0(0x3a3)](_0x1b3929){const _0x567998=_0x1af9b0;var _0x23b208;(_0x23b208=this[_0x567998(0x370)])==null||_0x23b208['dispose'](),this['_conflictNotification']=this[_0x567998(0x225)]['show'](_0x1b3929);}};B=S([x(0x0,n[_0x1af9b0(0x456)]),x(0x1,e[_0x1af9b0(0x204)]),x(0x2,(0x0,t['Inject'])(e[_0x1af9b0(0x323)])),x(0x3,n[_0x1af9b0(0x33f)]),x(0x4,n[_0x1af9b0(0x254)]),x(0x5,(0x0,t[_0x1af9b0(0x242)])(t[_0x1af9b0(0x413)]))],B);const V=(0x0,t[_0x1af9b0(0x3fe)])('uni.network.url-service');let H=class extends t['RxDisposable']{constructor(_0x1f2f46,_0x51b92d,_0x38e65f,_0x35b531){const _0x43bda0=_0x1af9b0;super(),this['_urlService']=_0x1f2f46,this[_0x43bda0(0x43a)]=_0x51b92d,this[_0x43bda0(0x438)]=_0x38e65f,this[_0x43bda0(0x378)]=_0x35b531,this[_0x43bda0(0x29f)]()[_0x43bda0(0x200)](_0x5f1b89=>this[_0x43bda0(0x43a)][_0x43bda0(0x338)]('[CollaborationDataLoaderController]',_0x5f1b89));}async[_0x1af9b0(0x29f)](){const _0x212304=_0x1af9b0;let _0x4cb81c=this[_0x212304(0x34c)][_0x212304(0x371)](_0x212304(0x3c8)),_0x472335=this[_0x212304(0x34c)]['getParam']('type'),_0x308e0c=this[_0x212304(0x34c)]['getParam'](_0x212304(0x2cd));if(!_0x4cb81c||!_0x472335){this['_logService'][_0x212304(0x476)](_0x212304(0x25f),_0x212304(0x277));return;}let _0x24954c=await this['_dataLoaderService'][_0x212304(0x394)](_0x4cb81c,Number(_0x472335),_0x308e0c);this[_0x212304(0x29c)]||_0x24954c&&_0x24954c instanceof t[_0x212304(0x398)]&&await this[_0x212304(0x46b)](_0x24954c);}async[_0x1af9b0(0x46b)](_0x46c88b){const _0x2a52c0=_0x1af9b0;await this[_0x2a52c0(0x402)](_0x46c88b,!0x0),!this['_disposed']&&(_0x46c88b[_0x2a52c0(0x2ac)][_0x2a52c0(0x183)]((0x0,r['takeUntil'])(this[_0x2a52c0(0x3ab)]))[_0x2a52c0(0x3aa)](_0x18b3b9=>{const _0x5ab004=_0x2a52c0;_0x18b3b9&&this[_0x5ab004(0x3fa)](_0x18b3b9);}),this[_0x2a52c0(0x34c)]['urlChange$'][_0x2a52c0(0x183)]((0x0,r['takeUntil'])(this[_0x2a52c0(0x3ab)]))[_0x2a52c0(0x3aa)](()=>{const _0x274957=_0x2a52c0;this['_updateSubUnitFromURLParams'](_0x46c88b)['catch'](_0xcd5aed=>this[_0x274957(0x43a)][_0x274957(0x338)]('[CollaborationDataLoaderController]',_0xcd5aed));}));}[_0x1af9b0(0x3fa)](_0x2b57a0,_0x380313=!0x1){const _0x469036=_0x1af9b0;let _0x352e1a=this[_0x469036(0x34c)]['getParam']('subunit');_0x2b57a0[_0x469036(0x2d7)]()!==_0x352e1a&&this[_0x469036(0x34c)][_0x469036(0x3b4)](_0x469036(0x2cd),_0x2b57a0['getSheetId'](),_0x380313);}async[_0x1af9b0(0x402)](_0x4c34ca,_0x36ee70=!0x1){const _0x2868d3=_0x1af9b0;var _0x2b545a;let _0x893d11=this[_0x2868d3(0x34c)][_0x2868d3(0x371)](_0x2868d3(0x2cd));if(!_0x893d11||!_0x4c34ca['getSheetBySheetId'](_0x893d11)){let _0x347d1d=_0x4c34ca['getUnhiddenWorksheets']()[0x0],_0x2d747f=_0x4c34ca[_0x2868d3(0x3a6)](_0x347d1d);if(!_0x2d747f||(this[_0x2868d3(0x3fa)](_0x2d747f,!0x0),this[_0x2868d3(0x29c)]))return;await this[_0x2868d3(0x438)]['executeCommand'](g[_0x2868d3(0x267)]['id'],{'unitId':_0x4c34ca[_0x2868d3(0x46e)](),'subUnitId':_0x347d1d});return;}(_0x36ee70||((_0x2b545a=_0x4c34ca[_0x2868d3(0x29b)]())==null?void 0x0:_0x2b545a[_0x2868d3(0x2d7)]())!==_0x893d11)&&await this[_0x2868d3(0x438)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x4c34ca[_0x2868d3(0x46e)](),'subUnitId':_0x893d11});}};H=S([x(0x0,V),x(0x1,t['ILogService']),x(0x2,t[_0x1af9b0(0x412)]),x(0x3,(0x0,t[_0x1af9b0(0x242)])(e[_0x1af9b0(0x201)]))],H);let U=class{constructor(_0x1d0462,_0x31a677){const _0x16447e=_0x1af9b0;this[_0x16447e(0x44c)]=_0x1d0462,this[_0x16447e(0x263)]=_0x31a677;}[_0x1af9b0(0x385)](_0x417ddb){const _0x493f16=_0x1af9b0;this[_0x493f16(0x24a)](_0x417ddb),this['_transformPreviousActiveRange'](_0x417ddb);}['transformRemoteChangeset'](_0x46c3e5){const _0x509a9d=_0x1af9b0;let {unitID:_0x2c5ebc}=_0x46c3e5,{redoCache:_0x2d3767}=this[_0x509a9d(0x263)][_0x509a9d(0x1e6)](_0x2c5ebc)[_0x509a9d(0x462)](f[_0x509a9d(0x3bf)])[_0x509a9d(0x32c)]();if(_0x2d3767[_0x509a9d(0x23e)]===0x0)return _0x46c3e5;let _0x474d16=t[_0x509a9d(0x41e)][_0x509a9d(0x2c3)](_0x46c3e5[_0x509a9d(0x1a4)][0x0]);for(let _0x32ae38=0x0;_0x32ae38<_0x2d3767['length'];_0x32ae38++){let _0x5b35c4={'id':_0x509a9d(0x273),'params':{..._0x2d3767[_0x32ae38]}},_0x17eee2=this[_0x509a9d(0x44c)]['transformMutation'](_0x474d16,_0x5b35c4,!0x1);if((0x0,l[_0x509a9d(0x34f)])(_0x17eee2))throw _0x17eee2[_0x509a9d(0x338)];_0x474d16=_0x17eee2[_0x509a9d(0x453)];}return{...t['Tools']['deepClone'](_0x46c3e5),'mutations':[_0x474d16]};}[_0x1af9b0(0x24a)](_0x2e050c){const _0x510f70=_0x1af9b0;let {unitID:_0x277c0b}=_0x2e050c,_0x1bf524=this[_0x510f70(0x263)][_0x510f70(0x1e6)](_0x277c0b)[_0x510f70(0x462)](f[_0x510f70(0x3bf)]),{undoCache:_0x3d6199,redoCache:_0x203b60}=_0x1bf524[_0x510f70(0x32c)]();if(_0x3d6199[_0x510f70(0x23e)]===0x0||_0x203b60['length']===0x0)return;let _0xbb45e6=[],_0x197d47=[],_0x19d7ce=t['Tools'][_0x510f70(0x2c3)](_0x2e050c[_0x510f70(0x1a4)][0x0]),_0xb2d826=t[_0x510f70(0x41e)][_0x510f70(0x2c3)](_0x2e050c['mutations'][0x0]);for(let _0x516ac9=_0x3d6199[_0x510f70(0x23e)]-0x1;_0x516ac9>=0x0;_0x516ac9--){let _0x204b46={'id':_0x510f70(0x273),'params':{..._0x3d6199[_0x516ac9]}},_0x44e064={'id':_0x510f70(0x273),'params':{..._0x203b60[_0x516ac9]}},_0x81b659=this['_transformService'][_0x510f70(0x1ed)](_0x19d7ce,_0x204b46,!0x1),_0x38eaa0=this[_0x510f70(0x44c)][_0x510f70(0x1ed)](_0xb2d826,_0x44e064,!0x1);if((0x0,l[_0x510f70(0x34f)])(_0x81b659))throw _0x81b659['error'];if((0x0,l[_0x510f70(0x34f)])(_0x38eaa0))throw _0x38eaa0[_0x510f70(0x338)];_0xbb45e6[_0x510f70(0x244)](_0x81b659[_0x510f70(0x279)][_0x510f70(0x337)]),_0x197d47[_0x510f70(0x244)](_0x38eaa0['m2Prime'][_0x510f70(0x337)]),_0x19d7ce=_0x81b659['m1Prime'],_0xb2d826=_0x38eaa0[_0x510f70(0x453)];}_0x1bf524[_0x510f70(0x236)]({'undoCache':_0xbb45e6,'redoCache':_0x197d47});}[_0x1af9b0(0x3d8)](_0x56cc27){const _0x121ed9=_0x1af9b0;let {unitID:_0x596b56}=_0x56cc27,_0x3ee1fd=this[_0x121ed9(0x263)][_0x121ed9(0x1e6)](_0x596b56)[_0x121ed9(0x462)](f[_0x121ed9(0x3bf)]),_0x2a471f=_0x3ee1fd[_0x121ed9(0x404)]();if(_0x2a471f==null)return;let _0x3d44cc=[{'id':_0x121ed9(0x273),'params':{'unitId':_0x56cc27[_0x121ed9(0x274)],'actions':null,'textRanges':[_0x2a471f]}}],_0x1eab40=this[_0x121ed9(0x44c)][_0x121ed9(0x1f4)](_0x56cc27,_0x3d44cc);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x1eab40))throw _0x1eab40['error'];let _0x4925e8=_0x1eab40[_0x121ed9(0x279)][0x0][_0x121ed9(0x337)][_0x121ed9(0x2cc)];Array['isArray'](_0x4925e8)&&_0x4925e8[_0x121ed9(0x23e)]&&_0x3ee1fd[_0x121ed9(0x1c3)](_0x4925e8[0x0]);}};U=S([x(0x0,l[_0x1af9b0(0x400)]),x(0x1,p[_0x1af9b0(0x19c)])],U);let W=class{constructor(_0x296396,_0x576667,_0x30ff55){const _0x1854c6=_0x1af9b0;this[_0x1854c6(0x39e)]=_0x296396,this[_0x1854c6(0x44c)]=_0x576667,this[_0x1854c6(0x415)]=_0x30ff55;}['transformStateCache'](_0x36aa6b){const _0xb5a871=_0x1af9b0;this[_0xb5a871(0x390)](_0x36aa6b);}[_0x1af9b0(0x300)](_0x5f4db0){const _0x33483f=_0x1af9b0;let {unitID:_0x45e028}=_0x5f4db0,{collaboration:_0x5d31fa}=this[_0x33483f(0x415)][_0x33483f(0x455)](_0x45e028);if(_0x5d31fa['length']===0x0)return _0x5f4db0;let _0x24d7f8=t[_0x33483f(0x41e)][_0x33483f(0x2c3)](_0x5f4db0[_0x33483f(0x1a4)][0x0]);for(let _0x1548f2=0x0;_0x1548f2<_0x5d31fa[_0x33483f(0x23e)];_0x1548f2++){let _0x2a1079={'id':_0x33483f(0x273),'params':{'unitId':_0x5d31fa[_0x1548f2][_0x33483f(0x41a)],..._0x5d31fa[_0x1548f2][_0x33483f(0x2c5)]}},_0x44d41f=this[_0x33483f(0x44c)][_0x33483f(0x1ed)](_0x24d7f8,_0x2a1079,!0x1);if((0x0,l[_0x33483f(0x34f)])(_0x44d41f))throw _0x44d41f[_0x33483f(0x338)];_0x24d7f8=_0x44d41f[_0x33483f(0x453)];}return{...t[_0x33483f(0x41e)][_0x33483f(0x2c3)](_0x5f4db0),'mutations':[_0x24d7f8]};}[_0x1af9b0(0x390)](_0x46d218){const _0x46fbb9=_0x1af9b0;let {unitID:_0x64ca09}=_0x46d218,{history:_0x1a17d2,collaboration:_0x329e7e}=this[_0x46fbb9(0x415)][_0x46fbb9(0x455)](_0x64ca09);if(_0x1a17d2[_0x46fbb9(0x23e)]===0x0&&_0x329e7e[_0x46fbb9(0x23e)]===0x0)return;let _0x147c5b=[],_0x4b7c84=[],_0x6ecf71=t[_0x46fbb9(0x41e)]['deepClone'](_0x46d218[_0x46fbb9(0x1a4)][0x0]),_0x211dd4=t[_0x46fbb9(0x41e)][_0x46fbb9(0x2c3)](_0x46d218[_0x46fbb9(0x1a4)][0x0]);for(let _0xd623fb=_0x1a17d2[_0x46fbb9(0x23e)]-0x1;_0xd623fb>=0x0;_0xd623fb--){let _0x7f32b5={'id':_0x46fbb9(0x273),'params':{'unitId':_0x1a17d2[_0xd623fb][_0x46fbb9(0x41a)],..._0x1a17d2[_0xd623fb][_0x46fbb9(0x295)]}},_0x1e3602={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1a17d2[_0xd623fb][_0x46fbb9(0x41a)],..._0x1a17d2[_0xd623fb]['redoState']}},_0x428fdb=this[_0x46fbb9(0x44c)][_0x46fbb9(0x1ed)](_0x6ecf71,_0x7f32b5,!0x1),_0x44fdc2=this[_0x46fbb9(0x44c)][_0x46fbb9(0x1ed)](_0x211dd4,_0x1e3602,!0x1);if((0x0,l[_0x46fbb9(0x34f)])(_0x428fdb))throw _0x428fdb['error'];if((0x0,l[_0x46fbb9(0x34f)])(_0x44fdc2))throw _0x44fdc2[_0x46fbb9(0x338)];_0x147c5b[_0x46fbb9(0x244)]({..._0x1a17d2[_0xd623fb],'undoState':_0x428fdb[_0x46fbb9(0x279)][_0x46fbb9(0x337)],'redoState':_0x44fdc2[_0x46fbb9(0x279)]['params']}),_0x6ecf71=_0x428fdb[_0x46fbb9(0x453)],_0x211dd4=_0x44fdc2[_0x46fbb9(0x453)];}_0x6ecf71=t[_0x46fbb9(0x41e)][_0x46fbb9(0x2c3)](_0x46d218['mutations'][0x0]),_0x211dd4=t[_0x46fbb9(0x41e)]['deepClone'](_0x46d218[_0x46fbb9(0x1a4)][0x0]);for(let _0x312660=_0x329e7e['length']-0x1;_0x312660>=0x0;_0x312660--){let _0x187f53={'id':_0x46fbb9(0x273),'params':{'unitId':_0x329e7e[_0x312660][_0x46fbb9(0x41a)],..._0x329e7e[_0x312660][_0x46fbb9(0x295)]}},_0x58d66e={'id':_0x46fbb9(0x273),'params':{'unitId':_0x329e7e[_0x312660][_0x46fbb9(0x41a)],..._0x329e7e[_0x312660][_0x46fbb9(0x2c5)]}},_0x11ec89=this[_0x46fbb9(0x44c)][_0x46fbb9(0x1ed)](_0x6ecf71,_0x187f53,!0x1),_0xccae0a=this[_0x46fbb9(0x44c)]['transformMutation'](_0x211dd4,_0x58d66e,!0x1);if((0x0,l[_0x46fbb9(0x34f)])(_0x11ec89))throw _0x11ec89[_0x46fbb9(0x338)];if((0x0,l['isTransformMutationFailure'])(_0xccae0a))throw _0xccae0a[_0x46fbb9(0x338)];_0x4b7c84['unshift']({..._0x329e7e[_0x312660],'undoState':_0x11ec89['m2Prime'][_0x46fbb9(0x337)],'redoState':_0xccae0a['m2Prime'][_0x46fbb9(0x337)]}),_0x6ecf71=_0x11ec89[_0x46fbb9(0x453)],_0x211dd4=_0xccae0a[_0x46fbb9(0x453)];}this['_docStateChangeManagerService'][_0x46fbb9(0x260)](_0x64ca09,{'history':_0x147c5b,'collaboration':_0x4b7c84});}};W=S([x(0x0,(0x0,t[_0x1af9b0(0x242)])(t[_0x1af9b0(0x20d)])),x(0x1,l[_0x1af9b0(0x400)]),x(0x2,(0x0,t[_0x1af9b0(0x242)])(d[_0x1af9b0(0x43e)]))],W);let G=class{constructor(_0x474a79,_0x43b33e){const _0x242686=_0x1af9b0;this[_0x242686(0x28d)]=_0x474a79,this[_0x242686(0x44c)]=_0x43b33e;}[_0x1af9b0(0x447)](_0x106728){const _0x4fa8d1=_0x1af9b0;var _0x48fdb9;let _0x19791d=this[_0x4fa8d1(0x28d)]['getDocRanges']()??[],_0x520382=this[_0x4fa8d1(0x28d)]['getSelectionInfo']();if(_0x19791d[_0x4fa8d1(0x23e)]===0x0||_0x520382==null)return null;let _0x5e131f=_0x106728[_0x4fa8d1(0x274)],_0x39720f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5e131f,'actions':null,'textRanges':_0x19791d}}],_0x3c0cc4=this['_transformService']['transformMutationsWithChangeset'](_0x106728,_0x39720f);if(!(0x0,l[_0x4fa8d1(0x21b)])(_0x3c0cc4))throw _0x3c0cc4[_0x4fa8d1(0x338)];let _0x57ecd3=(_0x48fdb9=_0x3c0cc4[_0x4fa8d1(0x279)][0x0])==null?void 0x0:_0x48fdb9[_0x4fa8d1(0x337)],_0x135c48=_0x57ecd3&&typeof _0x57ecd3==_0x4fa8d1(0x18b)&&_0x4fa8d1(0x2cc)in _0x57ecd3?_0x57ecd3['textRanges']:null;if(!Ce(_0x135c48))return null;let _0xaef783=xe(_0x106728[_0x4fa8d1(0x1a4)]['some'](_0x26753c=>K(_0x26753c['params']))?_0x135c48[_0x4fa8d1(0x1c8)](_0x234a45=>!(_0x4fa8d1(0x3fd)in _0x234a45)):_0x135c48,{..._0x520382,'options':_0x520382[_0x4fa8d1(0x292)]?{..._0x520382[_0x4fa8d1(0x292)],'wholeDocument':!0x1}:void 0x0}),_0x4f80cc={'unitId':_0x5e131f,'subUnitId':_0x5e131f};this['_docSelectionManagerService']['replaceSelectionInfoWithoutRefresh'](_0xaef783,_0x4f80cc);let _0x224c98=!0x0;return{'commit':()=>{_0x224c98=!0x1;},'rollback':()=>{const _0x2950e9=_0x4fa8d1;_0x224c98&&(_0x224c98=!0x1,this[_0x2950e9(0x28d)][_0x2950e9(0x387)](_0x520382,_0x4f80cc));}};}};G=S([x(0x0,(0x0,t[_0x1af9b0(0x242)])(d[_0x1af9b0(0x357)])),x(0x1,l[_0x1af9b0(0x400)])],G);function xe(_0x30ad59,_0x13e442){const _0xf62c93=_0x1af9b0;let _0x36827f=[],_0x556d16=[];for(let _0x31c200 of _0x30ad59)Se(_0x31c200)?_0x556d16[_0xf62c93(0x352)](_0x31c200):_0x36827f[_0xf62c93(0x352)](_0x31c200);return{..._0x13e442,'textRanges':_0x36827f,'rectRanges':_0x556d16};}function Se(_0x1eb1ae){const _0x88dd19=_0x1af9b0;return _0x88dd19(0x3fd)in _0x1eb1ae;}function Ce(_0x14bd22){const _0xb54e14=_0x1af9b0;return Array[_0xb54e14(0x20f)](_0x14bd22)&&_0x14bd22[_0xb54e14(0x29d)](_0x20afc4=>typeof _0x20afc4==_0xb54e14(0x18b)&&!!_0x20afc4&&_0xb54e14(0x18a)in _0x20afc4&&'endOffset'in _0x20afc4);}function K(_0x1eccea){const _0x489e11=_0x1af9b0;return _0x1eccea===_0x489e11(0x1f9)?!0x0:Array[_0x489e11(0x20f)](_0x1eccea)?_0x1eccea[_0x489e11(0x2fb)](_0x4945b7=>K(_0x4945b7)):!_0x1eccea||typeof _0x1eccea!=_0x489e11(0x18b)?!0x1:Object[_0x489e11(0x1aa)](_0x1eccea)[_0x489e11(0x2fb)](_0x531c4a=>K(_0x531c4a));}let q=class extends t[_0x1af9b0(0x41c)]{constructor(_0x1fa1fb,_0x43b4fb,_0x30c24d,_0x321337,_0x5e4054,_0x298769,_0x730329){const _0x129760=_0x1af9b0;super(),this[_0x129760(0x26f)]=_0x1fa1fb,this[_0x129760(0x17d)]=_0x43b4fb,this[_0x129760(0x211)]=_0x30c24d,this[_0x129760(0x31a)]=_0x321337,this[_0x129760(0x2b0)]=_0x5e4054,this[_0x129760(0x37b)]=_0x298769,this[_0x129760(0x32d)]=_0x730329,b(this,'_status$',new r[(_0x129760(0x21f))](e['CollaborationStatus']['NOT_COLLAB'])),this[_0x129760(0x239)]();}[_0x1af9b0(0x239)](){const _0xe8b16f=_0x1af9b0;this[_0xe8b16f(0x2e5)](this[_0xe8b16f(0x26f)]['entityInit$'][_0xe8b16f(0x3aa)](_0x46a01d=>{const _0x36225f=_0xe8b16f;_0x46a01d instanceof e['DocCollaborationEntity']&&_0x46a01d[_0x36225f(0x21a)]({'onTransformIME':_0x12b783=>this[_0x36225f(0x17d)][_0x36225f(0x385)](_0x12b783),'onTransformState':_0x264d1c=>this[_0x36225f(0x211)][_0x36225f(0x1cf)](_0x264d1c),'onPrepareTransformSelections':_0x916e76=>this['_docTransformSelectionsService'][_0x36225f(0x447)](_0x916e76),'onSyncEditingCollabCursor':_0x1e49b5=>this[_0x36225f(0x2b0)]['syncEditingCollabCursor'](_0x1e49b5),'onTransformRemoteChangesetByIMECache':_0x28f2d0=>this[_0x36225f(0x17d)]['transformRemoteChangeset'](_0x28f2d0),'onTransformRemoteChangesetByStateCache':_0x1d3a53=>this['_docTransformStateCacheService'][_0x36225f(0x300)](_0x1d3a53)});}));}};q=S([x(0x0,(0x0,t[_0x1af9b0(0x242)])(e[_0x1af9b0(0x23f)])),x(0x1,(0x0,t['Inject'])(U)),x(0x2,(0x0,t['Inject'])(W)),x(0x3,(0x0,t[_0x1af9b0(0x242)])(G)),x(0x4,(0x0,t[_0x1af9b0(0x242)])(D)),x(0x5,n[_0x1af9b0(0x33f)]),x(0x6,(0x0,t['Inject'])(t[_0x1af9b0(0x413)]))],q);let J=class extends t[_0x1af9b0(0x41c)]{constructor(_0x4f528a,_0x14c91f,_0x1446ba,_0x3d78b7){const _0x2e9386=_0x1af9b0;super(),this[_0x2e9386(0x39e)]=_0x4f528a,this[_0x2e9386(0x296)]=_0x14c91f,this[_0x2e9386(0x43a)]=_0x1446ba,this[_0x2e9386(0x3b0)]=_0x3d78b7,b(this,_0x2e9386(0x2ff),void 0x0),this['_init']();}[_0x1af9b0(0x29f)](){const _0x2d1021=_0x1af9b0;this[_0x2d1021(0x42e)](),this[_0x2d1021(0x46a)](),this['_monkeyPatchLogService'](),this[_0x2d1021(0x1e2)]();}[_0x1af9b0(0x1e2)](){const _0x25fc8e=_0x1af9b0;this[_0x25fc8e(0x2e5)](this[_0x25fc8e(0x3b0)]['socket$']['subscribe'](_0xfd5d78=>{const _0x4a4789=_0x25fc8e;this[_0x4a4789(0x2ff)]=_0xfd5d78==null?void 0x0:_0xfd5d78[_0x4a4789(0x213)];}));}[_0x1af9b0(0x42e)](){const _0x184cb7=_0x1af9b0;let _0x45574f=_0x1bb723=>{const _0x51a6a9=_0x1ff6;var _0x169702;this[_0x51a6a9(0x280)](_0x51a6a9(0x338),_0x51a6a9(0x40d)+_0x1bb723['message']+_0x51a6a9(0x24e)+_0x1bb723['filename']+':'+_0x1bb723['lineno']+':'+_0x1bb723['colno']+'\x0a'+(((_0x169702=_0x1bb723['error'])==null?void 0x0:_0x169702['stack'])||''));};window[_0x184cb7(0x1b5)](_0x184cb7(0x338),_0x45574f),this[_0x184cb7(0x2e5)](()=>{const _0x5d28f9=_0x184cb7;window['removeEventListener'](_0x5d28f9(0x338),_0x45574f);});}[_0x1af9b0(0x46a)](){const _0x479e1d=_0x1af9b0;let _0x43b476=_0x4d52ad=>{const _0x43d6f3=_0x1ff6;this['_uploadLog'](_0x43d6f3(0x338),_0x43d6f3(0x460)+_0x4d52ad[_0x43d6f3(0x2fe)]);};window['addEventListener'](_0x479e1d(0x32f),_0x43b476),this[_0x479e1d(0x2e5)](()=>{const _0x20c405=_0x479e1d;window['removeEventListener'](_0x20c405(0x32f),_0x43b476);});}['_monkeyPatchLogService'](){const _0x39b59c=_0x1af9b0;let _0x5574cd=this[_0x39b59c(0x43a)][_0x39b59c(0x338)][_0x39b59c(0x2b9)](this[_0x39b59c(0x43a)]);this[_0x39b59c(0x43a)][_0x39b59c(0x338)]=(..._0x54a0c7)=>{const _0x352dda=_0x39b59c;let _0x22e0ab=_0x54a0c7[_0x352dda(0x184)](_0x1d4781=>_0x1d4781 instanceof Error?_0x1d4781['message']+'\x0a'+_0x1d4781[_0x352dda(0x419)]:String(_0x1d4781))['join']('\x20');this[_0x352dda(0x280)](_0x352dda(0x338),'[LogService\x20Error]:\x20'+_0x22e0ab),_0x5574cd(..._0x54a0c7);},this['disposeWithMe'](()=>{const _0x269433=_0x39b59c;this[_0x269433(0x43a)]['error']=_0x5574cd;});}[_0x1af9b0(0x280)](_0x2c3cc4,_0x3c8feb){const _0xb8fe55=_0x1af9b0;try{let _0x15ab9e={'userId':this[_0xb8fe55(0x2ff)],'logLabel':_0x2c3cc4,'content':_0x3c8feb};this[_0xb8fe55(0x296)][_0xb8fe55(0x26d)](_0xb8fe55(0x18e),{'body':_0x15ab9e})[_0xb8fe55(0x200)](()=>{});}catch{}}};J=S([x(0x0,(0x0,t['Inject'])(t['Injector'])),x(0x1,(0x0,t[_0x1af9b0(0x242)])(m[_0x1af9b0(0x2bb)])),x(0x2,t[_0x1af9b0(0x30f)]),x(0x3,(0x0,t['Inject'])(e[_0x1af9b0(0x196)]))],J);function we({state$:_0x44fd47}){const _0x11fba3=_0x1af9b0;let _0x3ccccf=(0x0,n['useObservable'])(_0x44fd47,null,!0x0);return _0x3ccccf?(0x0,c[_0x11fba3(0x2e7)])(_0x11fba3(0x446),{'data-u-comp':_0x11fba3(0x3dd),'role':_0x11fba3(0x179),'className':_0x11fba3(0x43d),'children':[(0x0,c[_0x11fba3(0x468)])(o['WarningIcon'],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,c[_0x11fba3(0x468)])(_0x11fba3(0x31b),{'children':_0x3ccccf[_0x11fba3(0x426)]}),(0x0,c[_0x11fba3(0x468)])(a[_0x11fba3(0x1bf)],{'size':'small','variant':_0x11fba3(0x2c2),'onClick':()=>window[_0x11fba3(0x3ad)][_0x11fba3(0x335)](),'children':_0x3ccccf[_0x11fba3(0x444)]})]}):null;}const Te=_0x1af9b0(0x430);let Y=class extends t['Disposable']{constructor(_0x3dd5ce,_0xbe096d,_0x1015dc,_0x1c594a,_0x1655ae,_0x3608ef){const _0x1a279a=_0x1af9b0;super(),this['_snapshotLoadingService']=_0x3dd5ce,this[_0x1a279a(0x37b)]=_0xbe096d,this[_0x1a279a(0x32d)]=_0x1015dc,this['_injector']=_0x1c594a,this['_urlService']=_0x3608ef,b(this,_0x1a279a(0x3ef),new r['BehaviorSubject'](null)),b(this,_0x1a279a(0x38d),new Set()),b(this,'_blockProgressWatches',new Map()),b(this,_0x1a279a(0x2c0),new Map()),b(this,_0x1a279a(0x23b),this['_timeoutState$'][_0x1a279a(0x466)]());let _0x42695f=()=>(0x0,s['createElement'])(we,{'state$':this['timeoutState$']});this['disposeWithMe'](_0x1655ae[_0x1a279a(0x473)](n['BuiltInUIPart'][_0x1a279a(0x20e)],()=>(0x0,n[_0x1a279a(0x320)])(_0x42695f,this[_0x1a279a(0x39e)]))),this[_0x1a279a(0x2e5)](this[_0x1a279a(0x32a)][_0x1a279a(0x340)][_0x1a279a(0x3aa)](_0x3067f6=>{const _0x163c52=_0x1a279a;this['_latestStates']=_0x3067f6,_0x3067f6[_0x163c52(0x477)](_0x58501a=>this['_updateMessage'](_0x58501a));})),this[_0x1a279a(0x2e5)](this[_0x1a279a(0x34c)][_0x1a279a(0x219)][_0x1a279a(0x3aa)](()=>{const _0x5a7aeb=_0x1a279a;this[_0x5a7aeb(0x2c0)][_0x5a7aeb(0x477)](_0x411b41=>this['_updateMessage'](_0x411b41));}));}[_0x1af9b0(0x3d4)](){const _0x4b9fc5=_0x1af9b0;this['_messageIds']['forEach'](_0x551fb5=>this['_messageService']['remove'](_0x551fb5)),this[_0x4b9fc5(0x38d)][_0x4b9fc5(0x36e)](),this[_0x4b9fc5(0x432)][_0x4b9fc5(0x477)](({timeoutId:_0x466f26})=>clearTimeout(_0x466f26)),this[_0x4b9fc5(0x432)][_0x4b9fc5(0x36e)](),this[_0x4b9fc5(0x3ef)][_0x4b9fc5(0x1d9)](),super['dispose']();}[_0x1af9b0(0x315)](_0x453a46){const _0x57f724=_0x1af9b0;let _0x4ed11=''+Te+_0x453a46[_0x57f724(0x41a)];if(_0x453a46[_0x57f724(0x33b)]===l[_0x57f724(0x40a)][_0x57f724(0x443)]){this['_clearBlockProgressWatch'](_0x453a46[_0x57f724(0x41a)]),this[_0x57f724(0x3d6)](_0x453a46['unitId']),this[_0x57f724(0x37b)][_0x57f724(0x3b9)](_0x4ed11),this[_0x57f724(0x38d)][_0x57f724(0x31c)](_0x4ed11);return;}if(!this[_0x57f724(0x322)](_0x453a46[_0x57f724(0x41a)])){this[_0x57f724(0x252)](_0x453a46[_0x57f724(0x41a)]),this[_0x57f724(0x3d6)](_0x453a46[_0x57f724(0x41a)]),this[_0x57f724(0x37b)]['remove'](_0x4ed11),this[_0x57f724(0x38d)][_0x57f724(0x31c)](_0x4ed11);return;}if(_0x453a46[_0x57f724(0x33b)]===l[_0x57f724(0x40a)]['ERROR']){this[_0x57f724(0x252)](_0x453a46['unitId']),this['_clearTimeoutState'](_0x453a46[_0x57f724(0x41a)]),this['_messageService']['show']({'id':_0x4ed11,'type':a[_0x57f724(0x2f8)]['Error'],'content':this['_localeService']['t'](_0x57f724(0x1f3))}),this['_messageIds'][_0x57f724(0x31c)](_0x4ed11);return;}if(_0x453a46['stage']!==l[_0x57f724(0x40a)][_0x57f724(0x261)]||_0x453a46[_0x57f724(0x1d1)]<=0xa){this[_0x57f724(0x252)](_0x453a46[_0x57f724(0x41a)]),this[_0x57f724(0x37b)][_0x57f724(0x3b9)](_0x4ed11),this[_0x57f724(0x38d)]['delete'](_0x4ed11);return;}this[_0x57f724(0x36f)](_0x453a46)||(this[_0x57f724(0x37b)]['show']({'id':_0x4ed11,'type':a[_0x57f724(0x2f8)]['Loading'],'duration':0x1/0x0,'content':this[_0x57f724(0x32d)]['t'](_0x57f724(0x38f))+'\x20'+_0x453a46[_0x57f724(0x190)]+'/'+_0x453a46[_0x57f724(0x1d1)]}),this[_0x57f724(0x38d)][_0x57f724(0x2a3)](_0x4ed11));}[_0x1af9b0(0x36f)](_0x2f74fb){const _0x36b1f8=_0x1af9b0;let _0xc1d376=this[_0x36b1f8(0x432)][_0x36b1f8(0x3d1)](_0x2f74fb['unitId']);if((_0xc1d376==null?void 0x0:_0xc1d376[_0x36b1f8(0x190)])===_0x2f74fb[_0x36b1f8(0x190)])return _0xc1d376[_0x36b1f8(0x431)];this[_0x36b1f8(0x252)](_0x2f74fb[_0x36b1f8(0x41a)]);let _0x2a5843=setTimeout(()=>{const _0x46ad0b=_0x36b1f8;let _0x22f46a=this['_blockProgressWatches'][_0x46ad0b(0x3d1)](_0x2f74fb['unitId']);if(!_0x22f46a||_0x22f46a['timeoutId']!==_0x2a5843)return;_0x22f46a[_0x46ad0b(0x431)]=!0x0;let _0x33a3c0=''+Te+_0x2f74fb[_0x46ad0b(0x41a)];this[_0x46ad0b(0x37b)]['remove'](_0x33a3c0),this['_messageIds'][_0x46ad0b(0x31c)](_0x33a3c0),this['_timeoutState$'][_0x46ad0b(0x3d5)]({'unitId':_0x2f74fb[_0x46ad0b(0x41a)],'content':this[_0x46ad0b(0x32d)]['t'](_0x46ad0b(0x229),String(_0x2f74fb[_0x46ad0b(0x190)]),String(_0x2f74fb[_0x46ad0b(0x1d1)])),'refreshLabel':this['_localeService']['t'](_0x46ad0b(0x269))});},0xea60);return this[_0x36b1f8(0x432)]['set'](_0x2f74fb['unitId'],{'loadedBlocks':_0x2f74fb['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x2a5843}),!0x1;}[_0x1af9b0(0x252)](_0x545804){const _0x1bed7d=_0x1af9b0;let _0x19ce57=this[_0x1bed7d(0x432)][_0x1bed7d(0x3d1)](_0x545804);_0x19ce57&&(clearTimeout(_0x19ce57['timeoutId']),this['_blockProgressWatches'][_0x1bed7d(0x31c)](_0x545804),this[_0x1bed7d(0x3d6)](_0x545804));}['_clearTimeoutState'](_0x20a53b){const _0x354000=_0x1af9b0;var _0x1bbe71;((_0x1bbe71=this[_0x354000(0x3ef)][_0x354000(0x306)])==null?void 0x0:_0x1bbe71['unitId'])===_0x20a53b&&this['_timeoutState$'][_0x354000(0x3d5)](null);}[_0x1af9b0(0x322)](_0x2bf5e6){const _0x593f15=_0x1af9b0;let _0x599107=this['_urlService'][_0x593f15(0x371)](_0x593f15(0x3c8));return!_0x599107||_0x599107===_0x2bf5e6;}};Y=S([x(0x0,(0x0,t[_0x1af9b0(0x242)])(l[_0x1af9b0(0x308)])),x(0x1,n['IMessageService']),x(0x2,(0x0,t['Inject'])(t['LocaleService'])),x(0x3,(0x0,t['Inject'])(t[_0x1af9b0(0x20d)])),x(0x4,n[_0x1af9b0(0x17e)]),x(0x5,V)],Y);let X=class extends t[_0x1af9b0(0x41c)]{constructor(_0x42c201,_0xc6e8d9,_0x593985){const _0xab1731=_0x1af9b0;super(),this[_0xab1731(0x3c7)]=_0x42c201,this[_0xab1731(0x37f)]=_0xc6e8d9,this[_0xab1731(0x353)]=_0x593985,b(this,_0xab1731(0x29e),new Map()),b(this,_0xab1731(0x2fd),new Map()),b(this,_0xab1731(0x2d0),new Map()),b(this,_0xab1731(0x374),!0x1);}[_0x1af9b0(0x34d)](){const _0x2522b8=_0x1af9b0;this[_0x2522b8(0x374)]=!0x0;}[_0x1af9b0(0x2cb)](){const _0x47d4db=_0x1af9b0;this[_0x47d4db(0x374)]=!0x1;}get[_0x1af9b0(0x2dd)](){const _0x3967f0=_0x1af9b0;return this[_0x3967f0(0x2fd)];}[_0x1af9b0(0x3d4)](){const _0x7a4124=_0x1af9b0;this[_0x7a4124(0x389)]()[_0x7a4124(0x37a)](()=>super[_0x7a4124(0x3d4)]());}async[_0x1af9b0(0x30c)](_0x28da8b){const _0x2a6600=_0x1af9b0;return this[_0x2a6600(0x374)]?null:this['_localStorageService'][_0x2a6600(0x26e)]((0x0,e['getLocalCacheKey'])(_0x28da8b));}async['saveOfflineData'](_0xadef56,_0x59459e){const _0x484475=_0x1af9b0;let _0x48c8c6=this[_0x484475(0x37f)][_0x484475(0x345)]((0x0,e[_0x484475(0x2c7)])(_0xadef56),_0x59459e);return this[_0x484475(0x2a1)](_0xadef56,_0x48c8c6),!!await _0x48c8c6;}async['backupOfflineData'](_0x59219f,_0x4cddb1){const _0x496bc9=_0x1af9b0;let _0x4699da=this['_cachedData'][_0x496bc9(0x3d1)](_0x59219f)??await this[_0x496bc9(0x37f)][_0x496bc9(0x26e)]((0x0,e[_0x496bc9(0x2c7)])(_0x59219f));if(!_0x4699da)return;let _0x5c27a4=Date[_0x496bc9(0x1e1)](),_0x2188dd=new Date(_0x5c27a4)[_0x496bc9(0x227)]();await this[_0x496bc9(0x37f)][_0x496bc9(0x345)]((0x0,e[_0x496bc9(0x2c7)])(_0x59219f)+_0x496bc9(0x2b2)+_0x5c27a4,{'reason':_0x4cddb1,'createdAt':_0x2188dd,'data':_0x4699da});}async[_0x1af9b0(0x30b)](_0x5d184d){const _0x116e59=_0x1af9b0;let _0x3c418b=this[_0x116e59(0x2fd)][_0x116e59(0x3d1)](_0x5d184d);_0x3c418b!==void 0x0&&(window[_0x116e59(0x2ce)](_0x3c418b),this[_0x116e59(0x2fd)][_0x116e59(0x31c)](_0x5d184d));let _0x492557=this[_0x116e59(0x2d0)][_0x116e59(0x3d1)](_0x5d184d);_0x492557&&await Promise[_0x116e59(0x1f5)](_0x492557),this[_0x116e59(0x29e)]['delete'](_0x5d184d),await this[_0x116e59(0x37f)][_0x116e59(0x403)]((0x0,e['getLocalCacheKey'])(_0x5d184d));}[_0x1af9b0(0x25e)](_0x140fea,_0x3c1db8,_0x3bde80,_0x128728){const _0x119ed4=_0x1af9b0;let _0x56c275=this[_0x119ed4(0x353)]['getCurrentRevOfUnit'](_0x140fea);this[_0x119ed4(0x29e)][_0x119ed4(0x195)](_0x140fea,{'unitID':_0x140fea,'type':_0x3c1db8,'awaitingChangeset':_0x3bde80,'mutations':_0x128728,'rev':_0x56c275}),this[_0x119ed4(0x2fd)][_0x119ed4(0x2eb)](_0x140fea)||this[_0x119ed4(0x2ed)](_0x140fea);}[_0x1af9b0(0x2ed)](_0x253447){const _0x1d32d4=_0x1af9b0;let _0x5e2ef6=this['_getSaveTimeout']();_0x5e2ef6===0x0?this[_0x1d32d4(0x3d7)](_0x253447):this[_0x1d32d4(0x2fd)][_0x1d32d4(0x195)](_0x253447,window[_0x1d32d4(0x40c)](()=>this[_0x1d32d4(0x3d7)](_0x253447),_0x5e2ef6));}[_0x1af9b0(0x199)](){const _0x99c055=_0x1af9b0;return this['_configService'][_0x99c055(0x26b)](e[_0x99c055(0x409)])??e[_0x99c055(0x42c)];}[_0x1af9b0(0x3d7)](_0x412ff0){const _0x17bc5b=_0x1af9b0;let _0x1d2279=this[_0x17bc5b(0x2fd)][_0x17bc5b(0x3d1)](_0x412ff0);_0x1d2279!==void 0x0&&window['clearTimeout'](_0x1d2279);let _0x386a35=this[_0x17bc5b(0x37f)][_0x17bc5b(0x345)]((0x0,e[_0x17bc5b(0x2c7)])(_0x412ff0),this[_0x17bc5b(0x29e)]['get'](_0x412ff0))[_0x17bc5b(0x37a)](()=>this[_0x17bc5b(0x2fd)]['delete'](_0x412ff0));return this[_0x17bc5b(0x2a1)](_0x412ff0,_0x386a35),_0x386a35;}['_trackActiveSaveTask'](_0x4c08c7,_0x4a4d01){const _0x4d8cf6=_0x1af9b0;let _0x421c77=this[_0x4d8cf6(0x2d0)][_0x4d8cf6(0x3d1)](_0x4c08c7);_0x421c77||(_0x421c77=new Set(),this[_0x4d8cf6(0x2d0)]['set'](_0x4c08c7,_0x421c77)),_0x421c77[_0x4d8cf6(0x2a3)](_0x4a4d01);let _0x33235b=()=>{const _0x5138d3=_0x4d8cf6;_0x421c77[_0x5138d3(0x31c)](_0x4a4d01),_0x421c77['size']===0x0&&this[_0x5138d3(0x2d0)][_0x5138d3(0x31c)](_0x4c08c7);};_0x4a4d01[_0x4d8cf6(0x37a)](_0x33235b,_0x33235b);}async[_0x1af9b0(0x389)](){const _0x24a330=_0x1af9b0;let _0x16f78b=[];this[_0x24a330(0x2fd)][_0x24a330(0x477)]((_0x815f33,_0x5c7257)=>{const _0x5e7a54=_0x24a330;window[_0x5e7a54(0x2ce)](_0x815f33),_0x16f78b[_0x5e7a54(0x352)](this[_0x5e7a54(0x3d7)](_0x5c7257)[_0x5e7a54(0x37a)](()=>{const _0x357d4d=_0x5e7a54;this[_0x357d4d(0x2fd)][_0x357d4d(0x31c)](_0x5c7257);}));}),await Promise[_0x24a330(0x198)](_0x16f78b);}};X=S([x(0x0,t['IConfigService']),x(0x1,t[_0x1af9b0(0x209)]),x(0x2,(0x0,t[_0x1af9b0(0x242)])(l[_0x1af9b0(0x346)]))],X);var Ee=class extends t[_0x1af9b0(0x36c)]{constructor(){const _0x56e4ff=_0x1af9b0;super(),b(this,'urlChange$',void 0x0),this[_0x56e4ff(0x219)]=(0x0,r[_0x56e4ff(0x1a7)])(window,_0x56e4ff(0x3e4))[_0x56e4ff(0x183)]((0x0,r['takeUntil'])(this['dispose$']),(0x0,r[_0x56e4ff(0x297)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x56e4ff(0x23a)])(void 0x0));}[_0x1af9b0(0x3b4)](_0x2fd091,_0x5c0663,_0x4b5ed8=!0x1){const _0x2b8866=_0x1af9b0;let _0x219c09=new URL(window['location'][_0x2b8866(0x46d)]);_0x219c09[_0x2b8866(0x388)][_0x2b8866(0x195)](_0x2fd091,_0x5c0663),_0x4b5ed8?window[_0x2b8866(0x3a4)][_0x2b8866(0x3e0)]('','',_0x219c09[_0x2b8866(0x465)]()):window['history']['pushState']('','',_0x219c09[_0x2b8866(0x465)]());}[_0x1af9b0(0x3ac)](_0x30ef9f,_0x598bcc=!0x1){const _0x2f9b24=_0x1af9b0;let _0x3c2903=new URL(window['location'][_0x2f9b24(0x46d)]);_0x3c2903['searchParams'][_0x2f9b24(0x31c)](_0x30ef9f),_0x598bcc?window[_0x2f9b24(0x3a4)][_0x2f9b24(0x3e0)]('','',_0x3c2903['toString']()):window[_0x2f9b24(0x3a4)][_0x2f9b24(0x314)]('','',_0x3c2903[_0x2f9b24(0x465)]());}[_0x1af9b0(0x371)](_0x1e6101){const _0x27fe29=_0x1af9b0;return new URL(window[_0x27fe29(0x3ad)][_0x27fe29(0x46d)])[_0x27fe29(0x388)]['get'](_0x1e6101)??void 0x0;}};let Z=class extends t[_0x1af9b0(0x375)]{constructor(_0x308a84=ce,_0x43b167,_0x43fbfe,_0x2fa8df,_0x523745){const _0x1f96c7=_0x1af9b0;super(),this[_0x1f96c7(0x1fd)]=_0x308a84,this[_0x1f96c7(0x263)]=_0x43b167,this[_0x1f96c7(0x39e)]=_0x43fbfe,this[_0x1f96c7(0x3c7)]=_0x2fa8df,this[_0x1f96c7(0x438)]=_0x523745;let {..._0x5c8f8c}=(0x0,t['merge'])({},ce,this[_0x1f96c7(0x1fd)]);this[_0x1f96c7(0x3c7)][_0x1f96c7(0x1a8)](_0x1f96c7(0x3e9),_0x5c8f8c);}[_0x1af9b0(0x421)](){const _0x531f3e=_0x1af9b0;this[_0x531f3e(0x470)](),this[_0x531f3e(0x2e5)](this[_0x531f3e(0x438)][_0x531f3e(0x3e8)](w)),this[_0x531f3e(0x365)]();}[_0x1af9b0(0x2cf)](){const _0x1796b8=_0x1af9b0;this[_0x1796b8(0x1c4)]();}['_registerDependencies'](){const _0x3b0c58=_0x1af9b0;var _0x5f0e00;let _0xd447ec=[[E],[V,{'useClass':Ee}],[m['ISocketService'],{'useClass':m[_0x3b0c58(0x325)]}],[e[_0x3b0c58(0x204)],{'useClass':X}],[C],[B],[A],[z],[H],[Y]];this[_0x3b0c58(0x1fd)][_0x3b0c58(0x376)]!==!0x1&&_0xd447ec[_0x3b0c58(0x352)]([G],[U],[W],[D],[q],[T]),this[_0x3b0c58(0x1fd)][_0x3b0c58(0x461)]&&_0xd447ec[_0x3b0c58(0x352)]([J]),(0x0,t[_0x3b0c58(0x2b8)])(this[_0x3b0c58(0x39e)],(0x0,t[_0x3b0c58(0x45e)])(_0xd447ec,(_0x5f0e00=this[_0x3b0c58(0x1fd)])==null?void 0x0:_0x5f0e00[_0x3b0c58(0x428)]));}[_0x1af9b0(0x1c4)](){const _0x574143=_0x1af9b0;this[_0x574143(0x1fd)][_0x574143(0x376)]!==!0x1&&this[_0x574143(0x2e5)](this[_0x574143(0x263)]['registerRenderModule'](t[_0x574143(0x326)][_0x574143(0x405)],[F])),this[_0x574143(0x2e5)](this['_renderManagerService'][_0x574143(0x3f1)](t['UniverInstanceType'][_0x574143(0x347)],[I]));}[_0x1af9b0(0x365)](){const _0x355646=_0x1af9b0;(0x0,t[_0x355646(0x343)])(this[_0x355646(0x39e)],[[A],[z],[C],[B],[H],[Y]]),this[_0x355646(0x1fd)][_0x355646(0x376)]!==!0x1&&(0x0,t[_0x355646(0x343)])(this[_0x355646(0x39e)],[[q],[T]]),this[_0x355646(0x1fd)][_0x355646(0x461)]&&(0x0,t[_0x355646(0x343)])(this[_0x355646(0x39e)],[[J]]);}};b(Z,_0x1af9b0(0x344),'UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),b(Z,_0x1af9b0(0x285),oe),b(Z,_0x1af9b0(0x366),se),Z=S([(0x0,t[_0x1af9b0(0x408)])(u[_0x1af9b0(0x406)],d['UniverDocsPlugin'],p['UniverRenderEnginePlugin'],m[_0x1af9b0(0x275)],l[_0x1af9b0(0x395)],f[_0x1af9b0(0x434)],e[_0x1af9b0(0x3de)]),x(0x1,p[_0x1af9b0(0x19c)]),x(0x2,(0x0,t[_0x1af9b0(0x242)])(t[_0x1af9b0(0x20d)])),x(0x3,t[_0x1af9b0(0x1b3)]),x(0x4,t[_0x1af9b0(0x412)])],Z);let Q=class extends e[_0x1af9b0(0x3a9)]{constructor(_0x5bdab6,_0x5ae75f,_0x52d7bf,_0x4479f1,_0x3151ce){super(_0x5bdab6,_0x5ae75f,_0x52d7bf,_0x4479f1,_0x3151ce);}async['createSocket'](_0x2b5473){const _0x3df48d=_0x1af9b0;let _0x1a9517=await this[_0x3df48d(0x34a)](),_0x11ab19=this[_0x3df48d(0x1ce)](_0x2b5473,_0x1a9517);return this['_doCreateSocket'](_0x11ab19);}[_0x1af9b0(0x1ce)](_0x3d8246,_0x2b71c8){const _0x2c41e3=_0x1af9b0;let _0x12b00f=typeof window>'u'?new URL(_0x3d8246):new URL(_0x3d8246,window[_0x2c41e3(0x3ad)][_0x2c41e3(0x3e5)]);_0x12b00f[_0x2c41e3(0x388)]['set'](_0x2c41e3(0x3c9),_0x2b71c8);let _0x20b7c8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2c41e3(0x3ad)][_0x2c41e3(0x450)]);return _0x20b7c8[_0x2c41e3(0x3d1)](_0x2c41e3(0x3c5))&&_0x12b00f[_0x2c41e3(0x388)][_0x2c41e3(0x195)](_0x2c41e3(0x3c5),_0x20b7c8[_0x2c41e3(0x3d1)](_0x2c41e3(0x3c5))),_0x12b00f[_0x2c41e3(0x465)]();}async[_0x1af9b0(0x34a)](){const _0x175a6d=_0x1af9b0;var _0x249a68;let _0x1f8f91=this[_0x175a6d(0x3c7)]['getConfig'](e[_0x175a6d(0x2ec)]),_0x2ea5b5=(_0x1f8f91==null?void 0x0:_0x1f8f91[_0x175a6d(0x298)])??e[_0x175a6d(0x410)];return((_0x249a68=(await this['_httpService']['get'](_0x2ea5b5,{'headers':{'Content-Type':_0x175a6d(0x355)}}))[_0x175a6d(0x44a)])==null?void 0x0:_0x249a68['ticket'])??'';}};function _0x48f5(){const _0x220f89=['collaboration-client-ui.collabStatus.offline','value','from','SnapshotLoadingService','getCollabEntity$','getDocRanges','clearOfflineData','loadOfflineData','HEADER_MENU','_startBlinking','ILogService','triggerDblclick','presenceKind','spin','WebBrowserSingleActiveUnitService','pushState','_updateMessage','split','_hover','serializeRangeWithSheet','transform','_docTransformSelectionsService','span','delete','_setupBeforeClosingHandler','color','pointer','connectInjector','SetDocZoomRatioOperation','_isVisibleUnit','CollaborationUIEventService','blue.400','WebSocketService','UniverInstanceType','red.300','onMouseMove','fillText','_snapshotLoadingService','update','getUndoRedoMutationParamsCache','_localeService','slice','unhandledrejection','_disposeEntitiesForType','...','CONFLICT','getMergeData','handleDeleteRangeMoveUp','reload','getUnit','params','error','showText','_startEntity','stage','_labelHorizontalPosition','debounce','backgroundColor','IMessageService','state$','_unitOnClients','eventID','touchDependencies','pluginName','setItem','RevisionService','UNIVER_SHEET','383532YOHYxn','IUnitPresenceUIAdapterRegistry','_getSessionTicket','_handleLeaveEvent','_urlService','disableLocalCache','currentTheme$','isTransformMutationFailure','width','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','push','_revisionService','_initStatusComponent','application/json','_entities','DocSelectionManagerService','_removeRemotePresence','activate','collaboration-client-ui.permission.title','i18nKey','number','CLOSE_ROOM','pulse','_blinkTimer','_toggleOnline','_collabCursorController','_drawRectRange','ONLINE','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_initDependencies','version','runOnServer','yellow.400','UnitStatus','collaboration-client-ui.operation.update-remote-unit-presence','min','RxDisposable','unitType','clear','_watchBlockProgress','_conflictNotification','getParam','isActive','handleInsertRow','_disabled','Plugin','enableDocumentCollaborationUI','focusedId','_dataLoaderService','InsertColCommandId','then','_messageService','distinctUntilChanged','executionId','currentSkeleton$','_localStorageService','cursorInfo$','_handleEvent','status','addObject','getCurrentTypeOfUnit$','transformIMECache','size','replaceSelectionInfoWithoutRefresh','searchParams','exhaustSavingTask','_online','AWAITING_WITH_PENDING','_labelPosition','_messageIds','fromEventSubject','collaboration-client-ui.collabStatus.fetchMiss','_transformHistoryAndStateStack','storage','CollaborationUIEventId','_highlightSecond','loadUnit','UniverCollaborationPlugin','_beforeCloseService','hide','Workbook','getAncestorScale','_cursor','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','isFinite','_updateCollabCursors','_injector','_backgroundColor','1346016ytYLmq','_handleJoinEvent','_adapter','_replaceConflictNotification','history','setRemotePresence','getSheetBySheetId','_getScale','function','CollaborationSocketService','subscribe','dispose$','removeParam','location','FETCH_MISS','_docClipboardService','_collaborationSessionService','_send','ranges','roomMembers','setParam','takeUntil','_presenceAdapterRegistry','runRefRangeMutations','deserializeRangeWithSheet','remove','InsertRangeMoveDownCommandId','_clearRemotePresences','labelPosition','_initEvent','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DocIMEInputManagerService','entries','focused$','getCurrentUnitOfType','adapters$','string','runId','RemoveRowCommandId','_configService','unit','sessionTicket','_color','addClipboardHook','EffectRefRangId','#FFF','_initPresenceStatusComponents','526654BUArRY','_offsetY','get','Warning','250072ivRSEl','dispose','next','_clearTimeoutState','_saveCache','_transformPreviousActiveRange','_retryingConflictCacheUnitIDs','collaboration-client-ui.conflict.retry','data','invokeId','snapshot-loading-timeout','UniverCollaborationClientPlugin','getFocusedUnit','replaceState','3LTovus','_shapes','setAlpha','popstate','origin','startRow','getMemberID','registerCommand','collaboration-client-ui.config','_refRangeService','univer-border-none\x20univer-bg-transparent','collaboration-client-ui.session.collaboration-timeout','DeleteRangeMoveLeftCommandId','_context','_timeoutState$','SOCKET_FAILED_RETRY','registerRenderModule','pageIndex','_scheduleHeartbeat','default','_range','clsx','timer','_startSheetCollabCursor','transformByState','_updateURLWithCurrentState','resize','parseInt','tableId','createIdentifier','collaboration-client-ui.conflict.title','ITransformService','tooltipKey','_updateSubUnitFromURLParams','removeItem','getActiveRange','UNIVER_DOC','UniverLicensePlugin','FromArray','DependentOn','LOCAL_CACHE_INTERVAL_KEY','SnapshotLoadStage','_refreshCollabCursors','setTimeout','[Window\x20Error]:\x20','evenodd','VIEW_MAIN','DEFAULT_WS_SESSION_TICKET_URL','colorClass','ICommandService','LocaleService','bottom','_docStateChangeManagerService','collaboration-client-ui.conflict.processing','stringify','SetSelectionsOperation','stack','unitId','HEADER','Disposable','TEXT','Tools','_instanceService','button','onStarting','offsetY','IUniverInstanceService','useDependency','getCellIndexByOffset','content','_syncPresenceStatusComponents','override','executeCommand','_draw','preventDefault','LOCAL_CACHE_INTERVAL','measureText','_initWindowErrorListener','Unknown\x20user','snapshot-loading-','timedOut','_blockProgressWatches','canRenderAnchor','UniverDocsUIPlugin','result','setInterval','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_commandService','_assignedColors','_logService','_getLighterColor','PERMISSION_DENIED','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','DocStateChangeManagerService','onCommandExecuted','drawWith','useMemo','SheetsSelectionsService','COMPLETE','refreshLabel','collaboration-client-ui.session.will-retry','div','prepareTransformSelections','OFFLINE','BrowserCollaborationSocketService','body','_selfUnitIDs','_transformService','MemberService','setOffsetY','_highlight','search','MoveRangeCommandId','262489KFQcDs','m1Prime','_disposeEntity','getStateCache','IBeforeCloseService','contains','getSheetObject','UniverCollaborationClientUIPlugin','column','collab-rect-range-','\x20-\x20','getTypeOfUnitDisposed$','mergeOverrideWithDependencies','_entityInit$','[Unhandled\x20Rejection]:\x20','enableFrontendLog','with','range','_isDisposed','toString','asObservable','name','jsx','icon','_initUnhandledRejectionListener','_setupSubUnitSync','_cursors','href','getUnitId','_getMergeRange','_registerDependencies','NOT_COLLAB','Rect','registerComponent','DeleteRangeMoveUpCommandId','univer-appearance-none','debug','forEach','_eventUnsubscribe','_textBubble','alert','_collabCursorState$','onTransformChange$','SetTextSelectionsOperation','_docTransformIMECacheService','IUIPartsService','getValue','COLORS','RemoteUniscriptService','_document','pipe','map','getRangePointData','1.0.0','handleIRemoveRow','collaboration-client-ui.permission.content','getCoordByCell','startOffset','object','_removeClearOtherTimer','_retryConflictCacheClear','/universer-api/frontend/logs','univer-text-gray-400','loadedBlocks','send','_stopBlinking','flatMap','handleInsertRangeMoveDown','set','CollaborationSessionService','Shape','all','_getSaveTimeout','show','_onCursorUpdate','IRenderManagerService','prototype','_heartbeatTimer','pageType','collaboration-client-ui.collabStatus.synced','onPointerEnter$','_anchor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','mutations','DocSkeletonManagerService','jiqing.500','fromEvent','setConfig','roomMembers$','values','_name','_themeService','_sendLocalPresence','_anchorDot','_adapterRegistry','Module','findNodePositionByCharIndex','univer-flex\x20univer-items-center\x20univer-justify-center','IConfigService','selection','addEventListener','toRgbString','collaboration-client-ui.conflict.clearFailed','univer-transition-all\x20univer-duration-200','sheetID','handleInsertCol','_drawTextRange','getMember','status$','collaboration-client-ui.collabStatus.notCollab','Button','hovered','true','lineTo','setActiveRange','_registerRenderDependencies','kind','endColumn','DOC_RANGE_TYPE','filter','_univerInstanceService','IDocClipboardService','_initialized','type','SessionStatus','_createSocketURL','transformStateCache','onPointerMove$','totalBlocks','top','getTypeOfUnitAdded$','selectedIds','unload','memberId','getColor','_toggleOffline','complete','univer-text-green-500','clickable','dark:focus:!univer-ring-offset-gray-800','_drawAnchor','OTHER_CLIENT_EDITING','assignAColorForMemberID','0.2)','now','_initUserListener','Failed','_removeCollabCursors','makeDirty','getRenderUnitById','77JaEEXb','OPERATION','OTHER_CLIENTS_EDITING','saveImage','USERS_LEAVE','engine','transformMutation','highlight','ISnapshotServerService','InsertRowCommandId','toDisposable','LoadingMultiIcon','collaboration-client-ui.session.connection-failed','transformMutationsWithChangeset','allSettled','static','univer-text-orange-500','isInternalEditorID','tableSource','univer-text-blue-500','rgb','OnLineIcon','_config','right','useObservable','catch','DataLoaderService','_collabSessionService','init','ILocalCacheService','getViewport','key','FOOTER','_colorAssignService','ILocalStorageService','_status$','_scheduleClearOtherTimer','black','Injector','GLOBAL','isArray','collabCursorState$','_docTransformStateCacheService','max','memberID','6876783GHzlMi','getAllUnitsForType','indicator','arc','switchMap','urlChange$','addHandlerCallback','isTransformMutationsWithChangesetSuccess','_bindAdapter','registerBeforeClose','debounceTime','BehaviorSubject','_id','_hideTimer','save','_startDocCollabCursor','_getSheetObject','_notificationService','generateRandomId','toISOString','_session','collaboration-client-ui.snapshotLoading.timeout','combineLatest','isEditing','collab-text-range-','_adapterDisposables','row','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_onCursorDelete','font','removeRemotePresence','registerRefRange','find','RegularPolygon','setUndoRedoMutationParamsCache','PENDING','text','_initEntityListener','mapTo','timeoutState$','fill','getCurrentSelections','length','CollaborationController','restore','_sheetSkeletonManagerService','Inject','collaboration-client-ui.collabStatus.conflict','unshift','clearInterval','_ensureSubject','call','RefRangeService','statusUIPart','_transformUndoRedoStack','_clearOtherTimers','decorate',',\x200.2)','\x20at\x20','_pendingEntities','sessionStatus$','CollaborationStatus','_clearBlockProgressWatch','replace','INotificationService','_showText','_imageIoService','useCallback','editingUnit','subscribeEvent','fillRule','requireSession','SheetCollabCursorShape','iterator','updateOfflineData','[CollaborationDataLoaderController]','setStateCache','LOADING_BLOCKS','/run/','_renderManagerService','toPrimitive','onPointerLeave$','CommandType','SetWorksheetActivateCommand','ThemeService','collaboration-client-ui.snapshotLoading.refresh','_uiPartsService','getConfig','_initCommandExecutedListener','post','getItem','_collaborationController','NodePositionConvertToRectRange','collaboration-client-ui.collaboration.closeRoom','fillStyle','doc.mutation.rich-text-editing','unitID','UniverNetworkPlugin','_handleHeartbeatEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','throttle','m2Prime','ErrorCode','moveTo','constructor','shareInterval','CONFLICT_PROCESSING','_onRefRangeChange','_uploadLog','_blinkIntervalTimer','SHEET_VIEWPORT_KEY','_roomMembers$','getScrollXYInfoByViewport','packageName','_cursorInfo$','getSkeleton','rgba','InsertRangeMoveRightCommandId','newValue','RemoveColCommandId','endRow','_docSelectionManagerService','IImageIoService','_pointerMoveDisposable','getOwnPropertyDescriptor','CollaborationEvent','options','_handleCursorUpdate','_syncEditingCollabCursorService','undoState','_httpService','shareReplay','wsSessionTicketUrl','event$','_showConflictProcessingNotification','getActiveSheet','_disposed','every','_cachedData','_init','polite','_trackActiveSaveTask','_isBlinkVisible','add','finally','_docSkeleton','TEXT_RANGE_LAYER_INDEX','canRenderSelection','columnIndex','CONFLICT_CACHE_CLEAR_FAILED','bold\x2013px\x20Arial,\x20sans-serif','univer-text-red-500','activeSheet$','_lastPointer','_getAnchorBounding','_hovered','_docSyncEditingCollabCursorService','univer-inline-flex\x20univer-items-center\x20univer-justify-center',':backup:','columnGroupId','_registerPresenceStatusComponent','DisposableCollection','strokeWidth','_render','registerDependencies','bind','parse','HTTPService','_localCacheService','_handleHover','_initStatusListener','_updateLocalCursor','_latestStates','clearRemotePresences','primary','deepClone','Vector2','redoState','@univerjs-pro/collaboration-client-ui','getLocalCacheKey','highlightSecond','purple.300','SheetSkeletonManagerService','enableLocalCache','textRanges','subunit','clearTimeout','onRendered','_activeSaveTaskMap','beginPath','_memberService','_collaborationUIEventService','Error','addObjects','Enter','getSheetId','collaboration-client-ui.collabClient.tooltip.reconnect','selections','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_colorIndex','merge','saveTaskMap','getDocumentSkeletonColumnPagePathInfo','unsubscribe','_unitStatus','setShapeProps','symbol','cursorInfo','_cursorShapes','disposeWithMe','handleIRemoveCol','jsxs','DocumentSkeletonPageType','RichTextEditingMutation','159635nZGarU','has','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_scheduleSaving','UPDATE_CURSOR','subUnitId','createInstance','_syncAdapters','NO_OTHER_CLIENTS_EDITING','startsWith','reconnect','ACTIVE_UNIT_EVENT_CHANNEL','_initResize','segmentPage','MessageType','_presenceStatusRegistrations','_showConflictCacheClearFailedNotification','some','Subject','_saveTaskMap','reason','_memberID','transformRemoteChangeset','ColorKit','defineProperty','_scene','getLocalPresence'];_0x48f5=function(){return _0x220f89;};return _0x48f5();}Q=S([x(0x0,(0x0,t['Inject'])(t[_0x1af9b0(0x20d)])),x(0x1,(0x0,t[_0x1af9b0(0x242)])(m[_0x1af9b0(0x2bb)])),x(0x2,t[_0x1af9b0(0x1b3)]),x(0x3,t[_0x1af9b0(0x30f)]),x(0x4,l[_0x1af9b0(0x1ef)])],Q);let $=class extends t[_0x1af9b0(0x41c)]{constructor(_0xe30373,_0x17a9de,_0x2a95a7){const _0x58e175=_0x1af9b0;super(),this[_0x58e175(0x41f)]=_0xe30373,this['_httpService']=_0x17a9de,this['_configService']=_0x2a95a7;}async[_0x1af9b0(0x367)](_0x2c8604,_0x226864,_0x2a8a36,..._0x3eaee4){const _0x1d5f58=_0x1af9b0;let _0xce71b6=this['_instanceService'][_0x1d5f58(0x3df)]();if(!_0xce71b6)throw Error(_0x1d5f58(0x2da));let _0x5e7d1c=(this['_configService']['getConfig'](e[_0x1d5f58(0x39b)])??e[_0x1d5f58(0x3be)])+'/'+_0x2c8604+_0x1d5f58(0x262)+_0x226864,_0x532fc5={'scriptId':_0x2c8604,'runId':new URL(window[_0x1d5f58(0x3ad)]['href'])[_0x1d5f58(0x388)][_0x1d5f58(0x3d1)]('runId')??'','function':_0x226864,'unitId':_0xce71b6['getUnitId'](),'argsOfFunction':JSON[_0x1d5f58(0x417)](_0x3eaee4),'invokeId':_0x2a8a36[_0x1d5f58(0x3dc)]??'','executionId':_0x2a8a36[_0x1d5f58(0x37d)]??''};try{let _0x1ea324=await this[_0x1d5f58(0x296)]['post'](_0x5e7d1c,{'body':_0x532fc5});return _0x1ea324[_0x1d5f58(0x44a)][_0x1d5f58(0x338)]&&_0x1ea324[_0x1d5f58(0x44a)][_0x1d5f58(0x338)]['code']!==v[_0x1d5f58(0x27a)]['OK']?_0x1d5f58(0x1e3):_0x1ea324[_0x1d5f58(0x44a)][_0x1d5f58(0x435)];}catch{return'Failed';}}};$=S([x(0x0,t[_0x1af9b0(0x423)]),x(0x1,(0x0,t['Inject'])(m[_0x1af9b0(0x2bb)])),x(0x2,t[_0x1af9b0(0x1b3)])],$);const De=0x7530,Oe=_0x1af9b0(0x2f5);var ke=class extends t[_0x1af9b0(0x41c)]{constructor(){const _0x31f6f4=_0x1af9b0;super(),b(this,_0x31f6f4(0x220),(0x0,t[_0x31f6f4(0x226)])()),b(this,_0x31f6f4(0x44b),new Set()),b(this,_0x31f6f4(0x341),new Map()),b(this,_0x31f6f4(0x19e),null),b(this,'_clearOtherTimers',new Map()),b(this,_0x31f6f4(0x2e0),new Map()),this[_0x31f6f4(0x29f)]();}[_0x1af9b0(0x3d4)](){const _0x3f2a54=_0x1af9b0;super['dispose'](),this[_0x3f2a54(0x24b)][_0x3f2a54(0x477)]((_0x139362,_0x5d2e98)=>this[_0x3f2a54(0x18c)](_0x5d2e98)),this[_0x3f2a54(0x19e)]&&window[_0x3f2a54(0x245)](this[_0x3f2a54(0x19e)]);}['getUnitStatus$'](_0xfd9703){const _0x42ac82=_0x1af9b0;return this[_0x42ac82(0x246)](_0xfd9703)[_0x42ac82(0x183)]((0x0,r['distinctUntilChanged'])());}[_0x1af9b0(0x258)](_0x2feb9b){const _0x517858=_0x1af9b0;this[_0x517858(0x44b)]['size']===0x0&&this[_0x517858(0x3f3)](),this[_0x517858(0x44b)][_0x517858(0x2a3)](_0x2feb9b),this[_0x517858(0x3b1)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2feb9b],'isForwarded':!0x1});}['disposeUnit'](_0x518370){const _0x5aaf2f=_0x1af9b0;this[_0x5aaf2f(0x44b)][_0x5aaf2f(0x31c)](_0x518370),this[_0x5aaf2f(0x44b)][_0x5aaf2f(0x386)]===0x0&&this['_heartbeatTimer']&&window[_0x5aaf2f(0x245)](this[_0x5aaf2f(0x19e)]);}[_0x1af9b0(0x29f)](){const _0x3bec6b=_0x1af9b0;this[_0x3bec6b(0x2e5)]((0x0,t[_0x3bec6b(0x1f1)])((0x0,r[_0x3bec6b(0x1a7)])(window,_0x3bec6b(0x391))[_0x3bec6b(0x3aa)](_0x9a73ae=>{const _0x4f8f22=_0x3bec6b;if(_0x9a73ae[_0x4f8f22(0x206)]!==Oe||!_0x9a73ae[_0x4f8f22(0x28a)])return;let _0x16f47d=JSON[_0x4f8f22(0x2ba)](_0x9a73ae[_0x4f8f22(0x28a)]);this[_0x4f8f22(0x381)](_0x16f47d);}))),window[_0x3bec6b(0x1b5)](_0x3bec6b(0x1d5),()=>this[_0x3bec6b(0x3b1)]({'type':0x1,'memberID':this[_0x3bec6b(0x220)],'unitIDs':Array[_0x3bec6b(0x307)](this[_0x3bec6b(0x44b)])}));}[_0x1af9b0(0x381)](_0x4f79c4){const _0x4086c5=_0x1af9b0;switch(_0x4f79c4[_0x4086c5(0x1cc)]){case 0x0:this[_0x4086c5(0x3a1)](_0x4f79c4);break;case 0x1:this[_0x4086c5(0x34b)](_0x4f79c4);break;case 0x2:this[_0x4086c5(0x276)](_0x4f79c4);}}[_0x1af9b0(0x3a1)](_0x1edaa7){const _0x9a25d5=_0x1af9b0;let {unitIDs:_0x4ab9cd,memberID:_0x4a9d15,isForwarded:_0x160a5c}=_0x1edaa7;_0x4ab9cd['forEach'](_0x370ede=>{const _0x3c5f2e=_0x1ff6;if(!_0x160a5c&&this[_0x3c5f2e(0x341)][_0x3c5f2e(0x2eb)](_0x370ede)&&this['_ensureSubject'](_0x370ede)['next'](e[_0x3c5f2e(0x369)][_0x3c5f2e(0x1e9)]),!this[_0x3c5f2e(0x341)][_0x3c5f2e(0x2eb)](_0x370ede)||!this[_0x3c5f2e(0x341)][_0x3c5f2e(0x3d1)](_0x370ede)[_0x3c5f2e(0x2eb)](_0x4a9d15)){let _0x392912=this[_0x3c5f2e(0x341)][_0x3c5f2e(0x3d1)](_0x370ede)||new Set();_0x392912[_0x3c5f2e(0x2a3)](_0x4a9d15),this['_unitOnClients']['set'](_0x370ede,_0x392912),this[_0x3c5f2e(0x20b)](_0x4a9d15);}}),_0x160a5c||this[_0x9a25d5(0x3b1)]({'type':0x0,'memberID':this[_0x9a25d5(0x220)],'unitIDs':[...this[_0x9a25d5(0x44b)]],'isForwarded':!0x0});}[_0x1af9b0(0x20b)](_0x56e3cb){const _0x7cc2d9=_0x1af9b0;this[_0x7cc2d9(0x18c)](_0x56e3cb);let _0x19e193=window[_0x7cc2d9(0x40c)](()=>{const _0x48f3e5=_0x7cc2d9;this[_0x48f3e5(0x341)][_0x48f3e5(0x477)](_0x5d125d=>{const _0x3a7546=_0x48f3e5;_0x5d125d[_0x3a7546(0x31c)](_0x56e3cb);});},De*0x2);this[_0x7cc2d9(0x24b)]['set'](_0x56e3cb,_0x19e193);}[_0x1af9b0(0x18c)](_0x35beda){const _0x299aa9=_0x1af9b0;if(this[_0x299aa9(0x24b)][_0x299aa9(0x2eb)](_0x35beda)){let _0xbc9abb=this['_clearOtherTimers'][_0x299aa9(0x3d1)](_0x35beda);_0xbc9abb&&window['clearTimeout'](_0xbc9abb),this[_0x299aa9(0x24b)]['set'](_0x35beda,null);}}[_0x1af9b0(0x34b)](_0x56496a){const _0x4e9975=_0x1af9b0;let {memberID:_0x18eb6a,unitIDs:_0x5713c3}=_0x56496a;_0x5713c3[_0x4e9975(0x477)](_0x4bdc23=>{const _0x4f4a17=_0x4e9975;var _0x247ca1;let _0x2a1944=this['_unitOnClients'][_0x4f4a17(0x3d1)](_0x4bdc23);_0x2a1944&&(_0x2a1944['delete'](_0x18eb6a),(_0x247ca1=this[_0x4f4a17(0x246)](_0x4bdc23))==null||_0x247ca1[_0x4f4a17(0x3d5)](_0x2a1944[_0x4f4a17(0x386)]===0x0?e[_0x4f4a17(0x369)][_0x4f4a17(0x2f2)]:e['UnitStatus'][_0x4f4a17(0x1e9)]));}),this['_removeClearOtherTimer'](_0x18eb6a);}[_0x1af9b0(0x276)](_0x376302){const _0x263463=_0x1af9b0;this['_scheduleClearOtherTimer'](_0x376302[_0x263463(0x213)]);}['_send'](_0x5050b3){const _0x5960fe=_0x1af9b0;localStorage[_0x5960fe(0x345)](Oe,JSON[_0x5960fe(0x417)](_0x5050b3));}[_0x1af9b0(0x3f3)](){const _0x5e4f3e=_0x1af9b0;this[_0x5e4f3e(0x19e)]=window[_0x5e4f3e(0x436)](()=>{const _0x486c8f=_0x5e4f3e;this[_0x486c8f(0x3b1)]({'type':0x2,'memberID':this[_0x486c8f(0x220)]});},De);}['_ensureSubject'](_0x43fea3){const _0x2038db=_0x1af9b0;return this[_0x2038db(0x2e0)][_0x2038db(0x2eb)](_0x43fea3)||this[_0x2038db(0x2e0)][_0x2038db(0x195)](_0x43fea3,new r[(_0x2038db(0x21f))](e[_0x2038db(0x369)][_0x2038db(0x2f2)])),this[_0x2038db(0x2e0)][_0x2038db(0x3d1)](_0x43fea3);}};Object[_0x1af9b0(0x302)](exports,_0x1af9b0(0x449),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,'DesktopCollaborationStatusDisplayController',{'enumerable':!0x0,'get':function(){return C;}}),exports['IURLService']=V,Object[_0x1af9b0(0x302)](exports,_0x1af9b0(0x181),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1af9b0(0x25c)]=he,Object[_0x1af9b0(0x302)](exports,_0x1af9b0(0x459),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x1af9b0(0x313)]=ke;
1
+ const _0x409fb3=_0x4188;(function(_0x28836f,_0x1f47d1){const _0x1b7e66=_0x4188,_0x34962c=_0x28836f();while(!![]){try{const _0x1fe9ac=parseInt(_0x1b7e66(0x15f))/0x1+parseInt(_0x1b7e66(0x3fc))/0x2*(parseInt(_0x1b7e66(0x301))/0x3)+parseInt(_0x1b7e66(0x396))/0x4*(parseInt(_0x1b7e66(0x38f))/0x5)+parseInt(_0x1b7e66(0x261))/0x6+parseInt(_0x1b7e66(0x382))/0x7*(-parseInt(_0x1b7e66(0x211))/0x8)+parseInt(_0x1b7e66(0x2ad))/0x9+parseInt(_0x1b7e66(0x331))/0xa*(-parseInt(_0x1b7e66(0x1ba))/0xb);if(_0x1fe9ac===_0x1f47d1)break;else _0x34962c['push'](_0x34962c['shift']());}catch(_0x17114e){_0x34962c['push'](_0x34962c['shift']());}}}(_0x5cc2,0xbfca4),Object['defineProperty'](exports,Symbol[_0x409fb3(0x2eb)],{'value':_0x409fb3(0x399)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x47d830){const _0x598c40=_0x409fb3;switch(_0x47d830){case e['CollaborationStatus'][_0x598c40(0x321)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o['OffLineIcon'],{}),'colorClass':_0x598c40(0x420),'i18nKey':_0x598c40(0x315),'tooltipKey':_0x598c40(0x1de),'clickable':!0x0,'indicator':_0x598c40(0x22b)};case e[_0x598c40(0x373)][_0x598c40(0x1dc)]:return{'icon':(0x0,c['jsx'])(o['OffLineIcon'],{}),'colorClass':_0x598c40(0x21a),'i18nKey':_0x598c40(0x1ea),'clickable':!0x1,'indicator':_0x598c40(0x22b)};case e[_0x598c40(0x373)][_0x598c40(0x253)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x19c)],{}),'colorClass':_0x598c40(0x18d),'i18nKey':_0x598c40(0x2e7),'clickable':!0x1,'indicator':_0x598c40(0x2bd)};case e['CollaborationStatus'][_0x598c40(0x34b)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o['OnLineIcon'],{}),'colorClass':_0x598c40(0x1c7),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x598c40(0x22b)};case e[_0x598c40(0x373)][_0x598c40(0x40e)]:case e['CollaborationStatus']['AWAITING_WITH_PENDING']:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x19c)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case e[_0x598c40(0x373)][_0x598c40(0x37a)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x19c)],{}),'colorClass':_0x598c40(0x18d),'i18nKey':_0x598c40(0x40f),'clickable':!0x1,'indicator':_0x598c40(0x2bd)};case e[_0x598c40(0x373)][_0x598c40(0x419)]:return{'icon':(0x0,c[_0x598c40(0x350)])(o[_0x598c40(0x406)],{}),'colorClass':_0x598c40(0x385),'i18nKey':_0x598c40(0x177),'clickable':!0x1,'indicator':_0x598c40(0x22b)};}}function te(_0x5c8da1){const _0x5cf26d=_0x409fb3;let {status$:_0x3810fc}=_0x5c8da1,_0x4986d2=(0x0,n[_0x5cf26d(0x297)])(_0x3810fc,e['CollaborationStatus'][_0x5cf26d(0x34b)]),_0x545831=(0x0,n[_0x5cf26d(0x37c)])(t[_0x5cf26d(0x292)]),_0x10009f=(0x0,n[_0x5cf26d(0x37c)])(e['CollaborationSessionService']),_0x362f7d=(0x0,s[_0x5cf26d(0x39c)])(()=>ee(_0x4986d2),[_0x4986d2]),_0x4ba7b8=_0x4986d2!==e[_0x5cf26d(0x373)][_0x5cf26d(0x321)],_0xb9b984=_0x545831['t'](_0x362f7d[_0x5cf26d(0x3e4)]),_0x9d41c1=_0x362f7d[_0x5cf26d(0x345)]?_0x545831['t'](_0x362f7d[_0x5cf26d(0x345)]):_0xb9b984,_0x5149bd=(0x0,s[_0x5cf26d(0x2b1)])(()=>{_0x4ba7b8||_0x10009f['reconnect']();},[_0x4ba7b8,_0x10009f]),_0x296d79=(0x0,s[_0x5cf26d(0x2b1)])(_0x403eb2=>{const _0x450b51=_0x5cf26d;!_0x4ba7b8&&(_0x403eb2[_0x450b51(0x146)]==='Enter'||_0x403eb2[_0x450b51(0x146)]==='\x20')&&(_0x403eb2[_0x450b51(0x3fd)](),_0x10009f[_0x450b51(0x375)]());},[_0x4ba7b8,_0x10009f]),_0x5169e4=(0x0,c[_0x5cf26d(0x350)])(_0x5cf26d(0x1af),{'className':(0x0,a[_0x5cf26d(0x16a)])(_0x5cf26d(0x304),_0x5cf26d(0x2d9),_0x362f7d[_0x5cf26d(0x1d5)],{'univer-animate-spin':_0x362f7d[_0x5cf26d(0x1c0)]===_0x5cf26d(0x2bd),'univer-animate-pulse':_0x362f7d[_0x5cf26d(0x1c0)]==='pulse'}),'aria-hidden':'true','children':_0x362f7d[_0x5cf26d(0x348)]}),_0x1813a7=(0x0,c['jsx'])(_0x5cf26d(0x1af),{'className':(0x0,a['clsx'])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x5cf26d(0x282),_0x5cf26d(0x1f4),_0x5cf26d(0x169),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x362f7d[_0x5cf26d(0x337)],'univer-cursor-default':!_0x362f7d[_0x5cf26d(0x337)]}),'children':_0x5169e4});return _0x362f7d[_0x5cf26d(0x337)]?(0x0,c['jsx'])(a[_0x5cf26d(0x183)],{'title':_0x9d41c1,'placement':_0x5cf26d(0x132),'children':(0x0,c[_0x5cf26d(0x350)])(_0x5cf26d(0x358),{'type':_0x5cf26d(0x358),'onClick':_0x5149bd,'onKeyDown':_0x296d79,'className':(0x0,a[_0x5cf26d(0x16a)])(_0x5cf26d(0x1e6),_0x5cf26d(0x408),'univer-m-0\x20univer-p-0','univer-appearance-none'),'aria-label':_0xb9b984+_0x5cf26d(0x3cb)+_0x9d41c1,'role':_0x5cf26d(0x171),'aria-live':_0x5cf26d(0x28c),'aria-atomic':_0x5cf26d(0x3dd),'children':_0x1813a7})}):(0x0,c['jsx'])(a[_0x5cf26d(0x183)],{'title':_0x9d41c1,'placement':_0x5cf26d(0x132),'children':(0x0,c[_0x5cf26d(0x350)])(_0x5cf26d(0x1cf),{'className':(0x0,a['clsx'])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x5cf26d(0x408),_0x5cf26d(0x32a)),'aria-label':_0xb9b984,'role':_0x5cf26d(0x171),'aria-live':_0x5cf26d(0x28c),'aria-atomic':_0x5cf26d(0x3dd),'children':_0x1813a7})});}function y(_0x3c2bba){'@babel/helpers - typeof';const _0x3ddaf4=_0x409fb3;return y=typeof Symbol==_0x3ddaf4(0x221)&&typeof Symbol[_0x3ddaf4(0x157)]==_0x3ddaf4(0x338)?function(_0xfb5b98){return typeof _0xfb5b98;}:function(_0x183499){const _0x44f966=_0x3ddaf4;return _0x183499&&typeof Symbol==_0x44f966(0x221)&&_0x183499[_0x44f966(0x1f8)]===Symbol&&_0x183499!==Symbol[_0x44f966(0x233)]?_0x44f966(0x338):typeof _0x183499;},y(_0x3c2bba);}function ne(_0x501bd7,_0x453f52){const _0x9e33b9=_0x409fb3;if(y(_0x501bd7)!=_0x9e33b9(0x198)||!_0x501bd7)return _0x501bd7;var _0x58b473=_0x501bd7[Symbol[_0x9e33b9(0x3a2)]];if(_0x58b473!==void 0x0){var _0xca5572=_0x58b473[_0x9e33b9(0x2e0)](_0x501bd7,_0x453f52||_0x9e33b9(0x404));if(y(_0xca5572)!=_0x9e33b9(0x198))return _0xca5572;throw TypeError(_0x9e33b9(0x1b5));}return(_0x453f52===_0x9e33b9(0x437)?String:Number)(_0x501bd7);}function re(_0x3c6a62){const _0x4d4fa1=_0x409fb3;var _0x214ee9=ne(_0x3c6a62,_0x4d4fa1(0x437));return y(_0x214ee9)==_0x4d4fa1(0x338)?_0x214ee9:_0x214ee9+'';}function b(_0x64eb6e,_0x579ded,_0x413a90){const _0x2b07b8=_0x409fb3;return(_0x579ded=re(_0x579ded))in _0x64eb6e?Object[_0x2b07b8(0x170)](_0x64eb6e,_0x579ded,{'value':_0x413a90,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x64eb6e[_0x579ded]=_0x413a90,_0x64eb6e;}function x(_0x1bbcc8,_0x5b5abc){return function(_0x4c6f22,_0x536678){_0x5b5abc(_0x4c6f22,_0x536678,_0x1bbcc8);};}function S(_0x11c49b,_0x427af1,_0x35d798,_0x2453a1){const _0x2b8dcd=_0x409fb3;var _0x23488c=arguments['length'],_0x3a65ed=_0x23488c<0x3?_0x427af1:_0x2453a1===null?_0x2453a1=Object[_0x2b8dcd(0x1ab)](_0x427af1,_0x35d798):_0x2453a1,_0x20e3ff;if(typeof Reflect==_0x2b8dcd(0x198)&&typeof Reflect[_0x2b8dcd(0x3dc)]==_0x2b8dcd(0x221))_0x3a65ed=Reflect['decorate'](_0x11c49b,_0x427af1,_0x35d798,_0x2453a1);else{for(var _0x46276f=_0x11c49b['length']-0x1;_0x46276f>=0x0;_0x46276f--)(_0x20e3ff=_0x11c49b[_0x46276f])&&(_0x3a65ed=(_0x23488c<0x3?_0x20e3ff(_0x3a65ed):_0x23488c>0x3?_0x20e3ff(_0x427af1,_0x35d798,_0x3a65ed):_0x20e3ff(_0x427af1,_0x35d798))||_0x3a65ed);}return _0x23488c>0x3&&_0x3a65ed&&Object[_0x2b8dcd(0x170)](_0x427af1,_0x35d798,_0x3a65ed),_0x3a65ed;}let C=class extends t[_0x409fb3(0x277)]{constructor(_0x4b65cd,_0x247679,_0x517744,_0x5ad4b5,_0x16f87f){const _0x489ec3=_0x409fb3;super(),this[_0x489ec3(0x1ce)]=_0x4b65cd,this['_injector']=_0x247679,this[_0x489ec3(0x1e4)]=_0x517744,this[_0x489ec3(0x42d)]=_0x5ad4b5,this[_0x489ec3(0x19b)]=_0x16f87f,b(this,_0x489ec3(0x390),new r[(_0x489ec3(0x392))](e[_0x489ec3(0x373)][_0x489ec3(0x34b)])),b(this,_0x489ec3(0x434),new Map()),this[_0x489ec3(0x27f)](),this['_initStatusListener'](),this[_0x489ec3(0x162)]();}[_0x409fb3(0x2c8)](){const _0x2b1aa3=_0x409fb3;this[_0x2b1aa3(0x434)][_0x2b1aa3(0x2e3)](_0x52b0d5=>_0x52b0d5['dispose']()),this[_0x2b1aa3(0x434)][_0x2b1aa3(0x365)](),this['_status$']['complete'](),super['dispose']();}[_0x409fb3(0x33d)](){const _0x516b4f=_0x409fb3;this[_0x516b4f(0x415)]((0x0,r[_0x516b4f(0x245)])(this[_0x516b4f(0x1ce)][_0x516b4f(0x1ff)],this[_0x516b4f(0x1ce)][_0x516b4f(0x186)](t[_0x516b4f(0x24d)][_0x516b4f(0x296)]),this[_0x516b4f(0x1ce)][_0x516b4f(0x186)](t['UniverInstanceType'][_0x516b4f(0x3bf)]))[_0x516b4f(0x423)]((0x0,i[_0x516b4f(0x3c9)])(()=>ie(this[_0x516b4f(0x1ce)])),(0x0,i[_0x516b4f(0x40b)])(),(0x0,r[_0x516b4f(0x37e)])(_0x2155dc=>_0x2155dc?this['_collaborationController'][_0x516b4f(0x32c)](_0x2155dc):(0x0,r['of'])(null)),(0x0,r['switchMap'])(_0x340917=>_0x340917?_0x340917[_0x516b4f(0x389)]:(0x0,r['of'])(e[_0x516b4f(0x373)]['NOT_COLLAB'])))['subscribe'](_0x52b0dc=>{const _0x48ef98=_0x516b4f;this[_0x48ef98(0x390)][_0x48ef98(0x1a1)](_0x52b0dc);}));}[_0x409fb3(0x27f)](){const _0x32cfd1=_0x409fb3;this['disposeWithMe'](this[_0x32cfd1(0x42d)]['registerComponent'](n[_0x32cfd1(0x37f)][_0x32cfd1(0x1ed)],()=>(0x0,n[_0x32cfd1(0x1f5)])(ae({'status$':this['_status$']['asObservable']()}),this['_injector'])));}[_0x409fb3(0x162)](){const _0x717e7a=_0x409fb3;let _0x56de38=this[_0x717e7a(0x19b)][_0x717e7a(0x306)][_0x717e7a(0x1ac)](_0x1e3e70=>{const _0x5beb1b=_0x717e7a;this[_0x5beb1b(0x202)](_0x1e3e70);});this['disposeWithMe']((0x0,t[_0x717e7a(0x19e)])(()=>_0x56de38[_0x717e7a(0x343)]()));}['_syncPresenceStatusComponents'](_0x2ede2e){const _0x4a94ab=_0x409fb3;let _0x28d62b=new Map(_0x2ede2e[_0x4a94ab(0x232)](_0x759064=>_0x759064['statusUIPart']!=null)[_0x4a94ab(0x3c9)](_0x5dbc73=>[_0x5dbc73[_0x4a94ab(0x2c9)],_0x5dbc73]));this[_0x4a94ab(0x434)][_0x4a94ab(0x2e3)]((_0x5b377b,_0x3716eb)=>{const _0x31abe1=_0x4a94ab;_0x28d62b[_0x31abe1(0x1e0)](_0x3716eb)||(_0x5b377b[_0x31abe1(0x2c8)](),this[_0x31abe1(0x434)][_0x31abe1(0x205)](_0x3716eb));}),_0x28d62b[_0x4a94ab(0x2e3)]((_0x568124,_0x317a6a)=>{const _0x196b2d=_0x4a94ab;this[_0x196b2d(0x434)][_0x196b2d(0x1e0)](_0x317a6a)||this[_0x196b2d(0x1a7)](_0x568124);});}['_registerPresenceStatusComponent'](_0x3ea45a){const _0x5806f6=_0x409fb3;let _0x173948=_0x3ea45a[_0x5806f6(0x303)];if(!_0x173948)return;let _0x3d4897=new t[(_0x5806f6(0x353))](),_0x2d0b7f=new r[(_0x5806f6(0x392))](e[_0x5806f6(0x373)][_0x5806f6(0x34b)]);_0x3d4897[_0x5806f6(0x2ce)]((0x0,t[_0x5806f6(0x19e)])(()=>_0x2d0b7f[_0x5806f6(0x27b)]())),_0x3d4897['add'](this['_uiPartsService']['registerComponent'](_0x173948,()=>(0x0,n['connectInjector'])(ae({'status$':_0x2d0b7f[_0x5806f6(0x1c2)]()}),this['_injector'])));let _0x53b495=this[_0x5806f6(0x1ce)][_0x5806f6(0x186)](_0x3ea45a[_0x5806f6(0x2c9)])[_0x5806f6(0x423)]((0x0,i[_0x5806f6(0x3c9)])(_0x4a9b7d=>(_0x4a9b7d==null?void 0x0:_0x4a9b7d[_0x5806f6(0x3ba)]())??null),(0x0,i['distinctUntilChanged'])(),(0x0,r['switchMap'])(_0x3a3ee8=>_0x3a3ee8?this['_collaborationController'][_0x5806f6(0x32c)](_0x3a3ee8):(0x0,r['of'])(null)),(0x0,r[_0x5806f6(0x37e)])(_0x34fbab=>(_0x34fbab==null?void 0x0:_0x34fbab['status$'])??(0x0,r['of'])(e[_0x5806f6(0x373)][_0x5806f6(0x34b)])))[_0x5806f6(0x1ac)](_0xe1b3b0=>_0x2d0b7f[_0x5806f6(0x1a1)](_0xe1b3b0));_0x3d4897['add']((0x0,t[_0x5806f6(0x19e)])(()=>_0x53b495[_0x5806f6(0x343)]())),this['_presenceStatusRegistrations'][_0x5806f6(0x16b)](_0x3ea45a[_0x5806f6(0x2c9)],_0x3d4897);}};C=S([x(0x0,t[_0x409fb3(0x21b)]),x(0x1,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x2,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x2fe)])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t['Inject'])(n[_0x409fb3(0x275)]))],C);function ie(_0x2b8249){const _0x290982=_0x409fb3;let _0x4f5a78=_0x2b8249[_0x290982(0x23e)](),_0x2f93da=_0x4f5a78==null?void 0x0:_0x4f5a78['getUnitId']();if(_0x2f93da&&!(0x0,t['isInternalEditorID'])(_0x2f93da))return _0x2f93da;let _0x444dfe=_0x2b8249[_0x290982(0x380)](t['UniverInstanceType'][_0x290982(0x296)]),_0x5b5809=_0x444dfe==null?void 0x0:_0x444dfe['getUnitId']();if(_0x5b5809&&!(0x0,t[_0x290982(0x2c6)])(_0x5b5809))return _0x5b5809;let _0x28df85=_0x2b8249[_0x290982(0x380)](t[_0x290982(0x24d)]['UNIVER_SHEET']);if(_0x28df85)return _0x28df85[_0x290982(0x3ba)]();let _0x4441fc=_0x2b8249[_0x290982(0x2b9)](t[_0x290982(0x24d)][_0x290982(0x296)])[_0x290982(0x1d9)](_0xd94b4=>!(0x0,t[_0x290982(0x2c6)])(_0xd94b4[_0x290982(0x3ba)]()));return _0x4441fc?_0x4441fc[_0x290982(0x3ba)]():null;}function _0x5cc2(){const _0x5f14ef=['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getColor','_initDependencies','_getScale','colno','removeRemotePresence','type','_selfUnitIDs','_blinkIntervalTimer','getUnitId','startRow','SheetSkeletonManagerService','dispose$','_textBubble','UNIVER_SHEET','_getLighterColor','pageIndex','searchParams','getSelectionInfo','[LogService\x20Error]:\x20','m2Prime','_scene','toRgbString','toISOString','map','post','\x20-\x20','_pointerMoveDisposable','getSheetObject','DocIMEInputManagerService','fillStyle','setUndoRedoMutationParamsCache','triggerDblclick','getTypeOfUnitDisposed$','handleInsertCol','[CollaborationDataLoaderController]','CollaborationSocketService','getMemberID','_toggleOffline','_stopBlinking','EffectRefRangId','getDocumentSkeletonColumnPagePathInfo','CommandType','decorate','true','/universer-api/frontend/logs','_pendingEntities','registerCommand','memberId','join','_collaborationUIEventService','i18nKey','[RemoteUniscriptService]:\x20no\x20focused\x20unit','disableLocalCache','bold\x2013px\x20Arial,\x20sans-serif','_initWindowErrorListener','primary','columnGroupId','parse','_handleHeartbeatEvent','OPERATION','urlChange$','InsertRangeMoveDownCommandId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','IMessageService','registerRefRange','fromEventSubject','currentTheme$','getCurrentRevOfUnit','loadOfflineData',':backup:','_id','IConfigService','COLORS','_startEntity','386GmkWyx','preventDefault','UniverCollaborationClientUIPlugin','error','font','entries','SetSelectionsOperation','_timeoutState$','default','_name','OnLineIcon','_unitStatus','univer-border-none\x20univer-bg-transparent','SHEET_VIEWPORT_KEY','socket$','distinctUntilChanged','isEditing','_bindAdapter','AWAITING','collaboration-client-ui.collabStatus.syncing','_disposeEntitiesForType','OTHER_CLIENT_EDITING','replace','purple.300','_revisionService','disposeWithMe','from','getStateCache','code','SYNCED','_lastPointer','throttle','drawWith','_updateSubUnitFromURLParams','getConfig','_drawAnchor','univer-text-red-500','labelHorizontalPosition','_labelHorizontalPosition','pipe','get','InsertRangeMoveRightCommandId','measureText','OTHER_CLIENTS_EDITING','WebBrowserSingleActiveUnitService','_localeService','handleInsertRangeMoveRight','_sheetSkeletonManagerService','FOOTER','_uiPartsService','transformMutationsWithChangeset','throttleTime','RECT','_highlight','_docStateChangeManagerService','isFinite','_presenceStatusRegistrations','collaboration-client-ui.collaboration.single-unit.warning','BrowserCollaborationSocketService','string','bottom','handleInsertRow','collaboration-client-ui.session.collaboration-timeout','collaboration-client-ui.session.connection-failed','_sendLocalPresence','@univerjs-pro/collaboration-client-ui','message','restore','_toggleOnline','send','endColumn','_initialized','isTransformMutationFailure','getUnit','invokeId','_cursors','_messageIds','getParam','getLocalCacheKey','shareInterval','key','ONLINE','currentSkeleton$','_memberID','left','_shapes','ILocalCacheService','UniverDocsPlugin','SetWorksheetActivateCommand','_cursor','UPDATE_CURSOR','WebSocketService','ACTIVE_UNIT_EVENT_CHANNEL','size','reload','RegularPolygon','VIEW_MAIN','iterator','timeoutState$','touchDependencies','enableLocalCache','moveTo','_entities','#FFF','_getSessionTicket','1368304PVXFZj','NodePositionConvertToRectRange','_backgroundColor','_initPresenceStatusComponents','setAlpha','_memberService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','name','split','onCommandExecuted','dark:focus:!univer-ring-offset-gray-800','clsx','set','_syncAdapters','setTimeout','filename','catch','defineProperty','status','unitID','contains','collabCursorState$','UniverCollaborationPlugin','UniverLicensePlugin','collaboration-client-ui.collabStatus.synced','_messageService','transformStateCache','requireSession','stage','_collaborationSessionService','_onCursorUpdate','backupOfflineData','_localCacheService','DependentOn','init','body','Tooltip','RxDisposable','debug','getCurrentTypeOfUnit$','onPointerLeave$','ThemeService','Shape','_uploadLog','_isBlinkVisible','TRANSFORM_CHANGE_OBSERVABLE_TYPE','univer-text-blue-500','_clearOtherTimers','application/json','handleInsertRangeMoveDown','allSettled','_getAnchorBounding','loadedBlocks','SUBMIT_CHANGESET_TIMEOUT','range','_collabCursorController','_transformUndoRedoStack','object','width','handleIRemoveCol','_presenceAdapterRegistry','LoadingMultiIcon','/run/','toDisposable','handleIRemoveRow','NO_OTHER_CLIENTS_EDITING','next','_heartbeatTimer','_eventUnsubscribe','rgba','update','getCellIndexByOffset','_registerPresenceStatusComponent','_handleEvent','now','finally','getOwnPropertyDescriptor','subscribe','DocumentSkeletonPageType','pluginName','span','isArray','_onCursorDelete','getActiveSheet','fill','collaboration-client-ui.snapshotLoading.timeout','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_docTransformSelectionsService','executeCommand','getCurrentSkeleton','_urlService','17861833oZvSBh','isActive','ColorKit','_adapter','roomMembers','collaboration-client-ui.conflict.processing','indicator','exhaustSavingTask','asObservable','lineTo','DataLoaderService','_online','_init','univer-text-gray-400','removeEventListener','_handleJoinEvent','height','RefRangeService','canRenderAnchor','includes','_univerInstanceService','div','unhandledrejection','clearInterval','location','toString','TEXT_RANGE_LAYER_INDEX','colorClass','then','NodePositionConvertToCursor','_draw','find','RevisionService','redoState','CONFLICT','getAncestorScale','collaboration-client-ui.collabClient.tooltip.reconnect','getCoordByCell','has','addObject','_clearRemotePresences','IUIPartsService','_collaborationController','_activeSaveTaskMap','univer-inline-flex\x20univer-items-center\x20univer-justify-center','deepClone','_handleHover','_removeRemotePresence','collaboration-client-ui.collabStatus.conflict','getMergeData','_updateCollabCursors','HEADER_MENU','params','Error','event$','replaceSelectionInfoWithoutRefresh','_themeService','ILogService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','connectInjector','_colorIndex','setConfig','constructor','registerRenderModule','length','UnitStatus','startsWith','_anchorDot','m1Prime','focused$','clearOfflineData',',\x200.2)','_syncPresenceStatusComponents','options','Loading','delete','IURLService','CollaborationSessionService','generateRandomId','_conflictNotification','replaceState','timer','CONFLICT_PROCESSING','_registerRenderDependencies','CONFLICT_CACHE_CLEAR_FAILED','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','IRenderManagerService','111184fxoDwQ','_transformService','_adapterDisposables','pageType','setActiveRange','subUnitId','content','_transformHistoryAndStateStack','handleMoveRange','univer-text-orange-500','IUniverInstanceService','UniverNetworkPlugin','showText','_drawTextRange','_setupBeforeClosingHandler','_hovered','function','_disabled','_setupSubUnitSync','row','FromArray','registerDependencies','debounce','ICommandService','tableSource','collaboration-client-ui.permission.title','static','getRangePointData','runId','segmentPage','mapTo','_initUserListener','pointer','filter','prototype','blue.400','ITransformService','number','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','HTTPService','Rect','_beforeCloseService','IImageIoService','_entityInit$','black','getFocusedUnit','CollaborationUIEventService','HEADER','collaboration-client-ui.permission.content','_send','red.300','undoState','merge','resize','max','getValue','_docTransformStateCacheService','_offsetY','_isDisposed','takeUntil','UniverInstanceType','focusedId','onMouseMove','getRenderUnitById','RemoteUniscriptService','_logService','FETCH_MISS','sessionStatus$','collab-rect-range-','loadUnit','MemberService','registerComponent','pushState','_labelPosition','SheetsSelectionsService','values','IBeforeCloseService','Injector','tableId','transformByState','2945808QbKkwu','getSkeleton','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','saveOfflineData','save','_clearBlockProgressWatch','mutations','_initUnhandledRejectionListener','setItem','_commandService','unshift','alert','_initEvent','unit','enableDocumentCollaborationUI','all','_assignedColors','sheetId','1.0.1','arc','IUnitPresenceUIAdapterRegistry','data','Disposable','_disposed','_configService','history','complete','_cachedData','highlightSecond','_docTransformIMECacheService','_initStatusComponent','_onRefRangeChange','state','univer-transition-all\x20univer-duration-200','ISnapshotServerService','_docSelectionManagerService','enableFrontendLog','getCollabCursors$','UniverRenderEnginePlugin','_transformPreviousActiveRange','onPointerEnter$','loading','canRenderSelection','polite','setOffsetY','roomMembers$','_doCreateSocket','rgba(255,\x20255,\x20255,\x200.01)','SOCKET_FAILED_RETRY','LocaleService','getDocRanges','SnapshotLoadStage','deserializeRangeWithSheet','UNIVER_DOC','useObservable','getItem','CollaborationEvent','search','DOC_RANGE_TYPE','transformRemoteChangeset','activate','Tools','_showText','strokeWidth','Button','entityInit$','show','_renderManagerService','LOCAL_CACHE_INTERVAL','_initEntityListener','DocSelectionManagerService','UniverDocsUIPlugin','_collabCursorState$','presenceKind','green.600','setShapeProps','8358669FquBUZ','wsSessionTicketUrl','rgb','_range','useCallback','popstate','slice','clearTimeout','_replaceConflictNotification','stack','_roomMembers$','PERMISSION_DENIED','getAllUnitsForType','doc.mutation.rich-text-editing','memberID','source','spin','highlight','Subject','endOffset','MoveRangeCommandId','prepareTransformSelections','Vector2','_removeCollabCursors','evenodd','isInternalEditorID','GLOBAL','dispose','unitType','getSheetBySheetId','_imageIoService','RemoveColCommandId','getMember','add','_retryConflictCacheClear','combineLatest','lineno','addClipboardHook','activeSheet$','getColorFromTheme','bind','packageName','isTransformMutationsWithChangesetSuccess','_trackActiveSaveTask','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_getSheetObject','min','collaboration-client-ui.snapshotLoading.refresh','_latestStates','backgroundColor','push','call','RemoveRowCommandId','TEXT','forEach','Plugin','_colorAssignService','UniverCollaborationClientPlugin','collaboration-client-ui.collabStatus.fetchMiss','disposeUnit','setStateCache','Unknown\x20user','toStringTag','_render','every','_getSaveTimeout','_collabSessionService','DesktopCollaborationStatusDisplayController','columnIndex','collaboration-client-ui.conflict.clearFailed','jsxs','_session','_docSkeletonManagerService','_localStorageService','clearRemotePresences','_getMergeRange','getLocalPresence','offsetY','registerBeforeClose','version','_startBlinking','CollaborationController','hide','_httpService','17856FskrLF','_anchor','statusUIPart','univer-flex\x20univer-items-center\x20univer-justify-center','LOCAL_CACHE_INTERVAL_KEY','adapters$','remove','textRanges','parseInt','assignAColorForMemberID','origin','flatMap','state$','_createSocketURL','collaboration-client-ui.collaboration.closeRoom','_docSyncEditingCollabCursorService','setInterval','unitId','createElement','setParam','collaboration-client-ui.collabStatus.offline','_initCommandExecutedListener','_context','getTypeOfUnitAdded$','_cursorShapes','CLOSE_ROOM','result','saveImage','ISocketService','yellow.400','endRow','USERS_LEAVE','OFFLINE','_isVisibleUnit','_updateMessage','handleDeleteRangeMoveUp','Warning','_unitOnClients','_clearTimeoutState','subunit','Inject','univer-m-0\x20univer-p-0','_document','getCollabEntity$','top','_handleLeaveEvent','stringify','Rectangle','20UTzjRh','_ensureSubject','_startSheetCollabCursor','Workbook','_saveCache','_notificationService','clickable','symbol','_watchBlockProgress','WarningIcon','color','ILocalStorageService','_initStatusListener','DEFAULT_WS_SESSION_TICKET_URL','text','collab-text-anchor-','timeoutId','kind','unsubscribe','ranges','tooltipKey','saveTaskMap','findNodePositionByCharIndex','icon','small','collab-text-range-','NOT_COLLAB','SetTextSelectionsOperation','_scheduleHeartbeat','getActiveRange','_hover','jsx','getViewport','cursorInfo$','DisposableCollection','_scheduleClearOtherTimer','SessionStatus','fillText','_color','button','selectedIds','column','createSocket','collaboration-client-ui.conflict.title','removeItem','startOffset','Failed','_adapterRegistry','InsertRowCommandId','labelPosition','onTransformChange$','SetDocZoomRatioOperation','clear','_startDocCollabCursor','CollaborationUIEventId','sessionTicket','SheetCollabCursorShape','_drawRectRange','storage','addEventListener','createInstance','_blockProgressWatches','_cursorInfo$','snapshot-loading-timeout','getUndoRedoMutationParamsCache','makeDirty','CollaborationStatus','_showConflictProcessingNotification','reconnect','_instanceService','[Unhandled\x20Rejection]:\x20','_updateLocalCursor','removeParam','PENDING','refreshLabel','useDependency','_refreshCollabCursors','switchMap','BuiltInUIPart','getCurrentUnitOfType','_injector','154fmWhiC','with','_dataLoaderService','univer-text-green-500','INotificationService','some','SOCKET_FAILED','status$','transformMutation','_snapshotLoadingService','subscribeEvent','getSheetId','href','2010925OGRUJR','_status$','RichTextEditingMutation','BehaviorSubject','_monkeyPatchLogService','runRefRangeMutations','timedOut','4wPNIVx','cursorInfo','addObjects','Module','transformIMECache','_removeClearOtherTimer','useMemo','selection','MessageType','_scheduleSaving','_hideTimer','collaboration-client-ui.session.will-retry','toPrimitive','uni.network.url-service','handleDeleteRangeMoveLeft','_saveTaskMap','_retryingConflictCacheUnitIDs','_config','...','_refRangeService','addHandlerCallback','_highlightSecond','eventID','_registerDependencies','jiqing.500','_blinkTimer','_disposeEntity'];_0x5cc2=function(){return _0x5f14ef;};return _0x5cc2();}function ae(_0x2f0da4){let {status$:_0x9e3572}=_0x2f0da4;return function(){const _0x5be08a=_0x4188;return(0x0,c[_0x5be08a(0x350)])(te,{'status$':_0x9e3572});};}var oe=_0x409fb3(0x137),se=_0x409fb3(0x273);const w={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':t[_0x409fb3(0x3db)][_0x409fb3(0x3ed)],'handler':(_0x58f932,_0x416eaa)=>{const _0xa9c624=_0x409fb3;let _0x18a758=_0x58f932[_0xa9c624(0x424)](n[_0xa9c624(0x275)])[_0xa9c624(0x424)](_0x416eaa[_0xa9c624(0x2c9)]);if(!_0x18a758)return!0x1;switch(_0x416eaa['update'][_0xa9c624(0x3b7)]){case _0xa9c624(0x16b):return _0x18a758['setRemotePresence'](_0x416eaa[_0xa9c624(0x1a5)][_0xa9c624(0x281)]),!0x0;case _0xa9c624(0x307):return _0x18a758[_0xa9c624(0x3b6)](_0x416eaa[_0xa9c624(0x1a5)][_0xa9c624(0x312)],_0x416eaa['update'][_0xa9c624(0x3e1)]),!0x0;case _0xa9c624(0x365):return _0x18a758[_0xa9c624(0x2f7)](_0x416eaa[_0xa9c624(0x1a5)][_0xa9c624(0x312)]),!0x0;default:return!0x1;}}},ce={};let T=class extends t[_0x409fb3(0x184)]{constructor(_0x4e8d58,_0x1f9c0f){const _0x3f359c=_0x409fb3;super(),this['_docClipboardService']=_0x4e8d58,this[_0x3f359c(0x2cb)]=_0x1f9c0f,this[_0x3f359c(0x1c6)]();}['_init'](){const _0x5d7db6=_0x409fb3;let _0xa1b01d=this;this['disposeWithMe'](this['_docClipboardService'][_0x5d7db6(0x2d2)]({'onBeforePasteImage':async _0x12bc03=>{const _0x305b72=_0x5d7db6;let _0x25f454=await _0xa1b01d['_imageIoService'][_0x305b72(0x31c)](_0x12bc03);return _0x25f454?{'source':_0x25f454[_0x305b72(0x2bc)],'imageSourceType':_0x25f454['imageSourceType']}:null;}}));}};T=S([x(0x0,f['IDocClipboardService']),x(0x1,t[_0x409fb3(0x23b)])],T);const le=[_0x409fb3(0x413),_0x409fb3(0x3ae),_0x409fb3(0x2ab),_0x409fb3(0x243),_0x409fb3(0x234),_0x409fb3(0x31e)];var E=class extends t[_0x409fb3(0x277)]{constructor(..._0x109793){const _0x298cca=_0x409fb3;super(..._0x109793),b(this,_0x298cca(0x271),new Map()),b(this,_0x298cca(0x1f6),0x0);}['assignAColorForMemberID'](_0x242c62){const _0x31b13b=_0x409fb3;if(this['_assignedColors'][_0x31b13b(0x1e0)](_0x242c62))return this[_0x31b13b(0x271)][_0x31b13b(0x424)](_0x242c62);let _0x391022=le[this[_0x31b13b(0x1f6)]];return this[_0x31b13b(0x1f6)]=(this[_0x31b13b(0x1f6)]+0x1)%le[_0x31b13b(0x1fa)],this[_0x31b13b(0x271)]['set'](_0x242c62,_0x391022),_0x391022;}};function ue(_0x2119e5){let _0x3428ed='';for(let _0x389fef of _0x2119e5){let {startOffset:_0xaafc21,endOffset:_0x5cb2fd,isActive:_0x389a3b,rangeType:_0xf1f980,segmentId:_0x272dc0,segmentPage:_0x3b749e}=_0x389fef;_0x3428ed['length']&&(_0x3428ed+=','),_0x3428ed+=_0xaafc21+':'+_0x5cb2fd+':'+(_0x389a3b?'1':'0')+':'+_0xf1f980+':'+_0x272dc0+':'+_0x3b749e;}return _0x3428ed;}function de(_0xa3baa7){const _0x5e4b47=_0x409fb3;let _0x24a03b=_0xa3baa7[_0x5e4b47(0x167)](','),_0x25fa00=[];for(let _0x30cf59 of _0x24a03b){let [_0x5d2ec7,_0x48c888,_0x32f52e,_0x402974,_0x15b823,_0x1735fd]=_0x30cf59[_0x5e4b47(0x167)](':');_0x25fa00[_0x5e4b47(0x2df)]({'startOffset':Number(_0x5d2ec7),'endOffset':Number(_0x48c888),'collapsed':_0x5d2ec7===_0x48c888,'isActive':_0x32f52e==='1','rangeType':_0x402974===t[_0x5e4b47(0x29b)][_0x5e4b47(0x2e2)]?t[_0x5e4b47(0x29b)][_0x5e4b47(0x2e2)]:t[_0x5e4b47(0x29b)][_0x5e4b47(0x430)],'segmentId':typeof _0x15b823==_0x5e4b47(0x437)?String(_0x15b823):'','segmentPage':Number(_0x1735fd??-0x1)});}return _0x25fa00[_0x5e4b47(0x387)](_0x122ce8=>_0x122ce8[_0x5e4b47(0x1bb)])||(_0x25fa00[0x0][_0x5e4b47(0x1bb)]=!0x0),_0x25fa00;}var D=class extends t[_0x409fb3(0x184)]{constructor(..._0x16e418){const _0x1838f5=_0x409fb3;super(..._0x16e418),b(this,'_collabCursorState$',new r[(_0x1838f5(0x392))](null)),b(this,_0x1838f5(0x174),this['_collabCursorState$'][_0x1838f5(0x1c2)]());}['syncEditingCollabCursor'](_0x3fa979){const _0x16c3ff=_0x409fb3;let {unitID:_0x45f7ca,memberID:_0x4972b0,textRanges:_0x351a3f}=_0x3fa979,_0x7035d8=ue(_0x351a3f);if(_0x7035d8==='')return;let _0x105038={'unitID':_0x45f7ca,'memberID':_0x4972b0,'selection':_0x7035d8};this[_0x16c3ff(0x2a9)]['next'](_0x105038);}};let O=class extends t[_0x409fb3(0x184)]{get['cursorInfo'](){const _0x1f87a0=_0x409fb3;return this['_cursorInfo$'][_0x1f87a0(0x248)]();}get[_0x409fb3(0x1be)](){const _0x17e50b=_0x409fb3;return this[_0x17e50b(0x2b7)]['getValue']();}constructor(_0x47fa32,_0x2cb6c4,_0x127da6,_0x40125c,_0x55314d,_0x5e5b41,_0x4e2d43,_0x56d24a,_0x44e45e){const _0x55fe88=_0x409fb3;super(),this['unitID']=_0x47fa32,this[_0x55fe88(0x2f4)]=_0x2cb6c4,this['_injector']=_0x127da6,this[_0x55fe88(0x2e5)]=_0x40125c,this[_0x55fe88(0x164)]=_0x55314d,this['_syncEditingCollabCursorService']=_0x5e5b41,this['_transformService']=_0x4e2d43,this['_univerInstanceService']=_0x56d24a,this['_commandService']=_0x44e45e,b(this,_0x55fe88(0x1c5),!0x1),b(this,'_init',!0x1),b(this,_0x55fe88(0x36f),new r[(_0x55fe88(0x392))](new Map())),b(this,_0x55fe88(0x352),this[_0x55fe88(0x36f)][_0x55fe88(0x1c2)]()),b(this,_0x55fe88(0x2b7),new r[(_0x55fe88(0x392))]([])),b(this,_0x55fe88(0x28e),this['_roomMembers$'][_0x55fe88(0x423)]((0x0,r['debounceTime'])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x55fe88(0x227)])(_0x2c7461=>{const _0xdf8c58=_0x55fe88;let _0x14f4e1={'eventID':l[_0xdf8c58(0x299)][_0xdf8c58(0x150)],'data':{'unitID':this[_0xdf8c58(0x172)],'memberID':this[_0xdf8c58(0x2f4)][_0xdf8c58(0x3d6)](),'selection':ue(_0x2c7461)}};this['_session'][_0xdf8c58(0x13b)](_0x14f4e1,this[_0xdf8c58(0x172)]);},0x64));}[_0x409fb3(0x2c8)](){const _0x3d0203=_0x409fb3;super[_0x3d0203(0x2c8)](),this[_0x3d0203(0x36f)][_0x3d0203(0x1a1)](new Map()),this[_0x3d0203(0x36f)][_0x3d0203(0x27b)](),this[_0x3d0203(0x2b7)][_0x3d0203(0x1a1)]([]),this['_roomMembers$'][_0x3d0203(0x27b)]();}[_0x409fb3(0x181)](){const _0x463f33=_0x409fb3;this['_init']||(this[_0x463f33(0x1c6)]=!0x0,this[_0x463f33(0x2f4)][_0x463f33(0x254)][_0x463f33(0x423)]((0x0,r[_0x463f33(0x24c)])(this[_0x463f33(0x3bd)]))[_0x463f33(0x1ac)](_0x14946a=>{const _0x132da6=_0x463f33;_0x14946a===e[_0x132da6(0x355)][_0x132da6(0x147)]?this['_toggleOnline']():this[_0x132da6(0x3d7)]();}),this[_0x463f33(0x2f4)]['event$'][_0x463f33(0x423)]((0x0,r[_0x463f33(0x24c)])(this[_0x463f33(0x3bd)]))[_0x463f33(0x1ac)](_0x4e5bb4=>{const _0x3a196e=_0x463f33;let _0x192499=_0x4e5bb4[_0x3a196e(0x3ac)];_0x192499===l[_0x3a196e(0x299)][_0x3a196e(0x150)]&&this[_0x3a196e(0x17d)](_0x4e5bb4),_0x192499===l['CollaborationEvent'][_0x3a196e(0x320)]&&this['_onCursorDelete'](_0x4e5bb4);}),this[_0x463f33(0x415)](this['_commandService'][_0x463f33(0x168)](_0x4aff72=>{const _0x2cd217=_0x463f33;let _0x2e1188=_0x4aff72[_0x2cd217(0x1ee)];_0x2e1188!=null&&this[_0x2cd217(0x1c5)]&&_0x4aff72['id']===d[_0x2cd217(0x34c)]['id']&&_0x2e1188['unitId']===this[_0x2cd217(0x172)]&&_0x2e1188[_0x2cd217(0x40c)]===!0x1&&_0x2e1188[_0x2cd217(0x344)][_0x2cd217(0x1fa)]>0x0&&this[_0x2cd217(0x378)](_0x2e1188[_0x2cd217(0x344)]);})),this['_syncEditingCollabCursorService'][_0x463f33(0x174)][_0x463f33(0x423)]((0x0,r['takeUntil'])(this[_0x463f33(0x3bd)]))[_0x463f33(0x1ac)](_0x53cc36=>{const _0x3dc3e2=_0x463f33;if((_0x53cc36==null?void 0x0:_0x53cc36[_0x3dc3e2(0x172)])!==this[_0x3dc3e2(0x172)])return;let _0x2546e4={'eventID':l[_0x3dc3e2(0x299)][_0x3dc3e2(0x150)],'data':_0x53cc36};this[_0x3dc3e2(0x17d)](_0x2546e4);}),this['disposeWithMe'](this[_0x463f33(0x26a)]['onCommandExecuted'](_0xee5b60=>{const _0x416581=_0x463f33;if(_0xee5b60[_0x416581(0x1ee)]==null)return;let _0x4cf3d4=_0xee5b60[_0x416581(0x1ee)];if(_0xee5b60['id']!==d[_0x416581(0x391)]['id']||_0x4cf3d4[_0x416581(0x312)]!==this[_0x416581(0x172)])return;let _0x56d0cf={'id':'doc.mutation.rich-text-editing','params':_0x4cf3d4},_0x56d4f0=this[_0x416581(0x397)];for(let [_0x1166d2,_0x397b8b]of _0x56d4f0){let _0x3fb6a2={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x416581(0x172)],'actions':null,'textRanges':_0x397b8b[_0x416581(0x344)]}},_0x481133=this[_0x416581(0x212)]['transformMutation'](_0x56d0cf,_0x3fb6a2,!0x1);if((0x0,l[_0x416581(0x13e)])(_0x481133))throw _0x481133[_0x416581(0x3ff)];_0x56d4f0[_0x416581(0x16b)](_0x1166d2,{..._0x397b8b,'ranges':_0x481133['m2Prime'][_0x416581(0x1ee)][_0x416581(0x308)]});}queueMicrotask(()=>{const _0x4a6363=_0x416581;this[_0x4a6363(0x36f)]['next'](_0x56d4f0);});})));}[_0x409fb3(0x17d)](_0x34e37c){const _0x28758a=_0x409fb3;var _0x23ac38;let {memberID:_0x4195f3,selection:_0x4a7495}=_0x34e37c[_0x28758a(0x276)],_0x17e562=de(_0x4a7495),_0x39e306=((_0x23ac38=this[_0x28758a(0x164)]['getMember'](this[_0x28758a(0x172)],_0x4195f3))==null?void 0x0:_0x23ac38[_0x28758a(0x166)])??_0x28758a(0x2ea),_0x1cf863={'color':this[_0x28758a(0x2e5)][_0x28758a(0x30a)](_0x4195f3),'name':_0x39e306,'ranges':_0x17e562},_0x1c2f87=this[_0x28758a(0x397)];_0x1c2f87[_0x28758a(0x16b)](_0x4195f3,_0x1cf863),this['_cursorInfo$']['next'](_0x1c2f87);}[_0x409fb3(0x1b1)](_0x5e220d){const _0x18f5c0=_0x409fb3;let {memberID:_0x87201a}=_0x5e220d[_0x18f5c0(0x276)],_0x56fda5=this[_0x18f5c0(0x397)];_0x56fda5['delete'](_0x87201a),this[_0x18f5c0(0x36f)][_0x18f5c0(0x1a1)](_0x56fda5);}[_0x409fb3(0x13a)](){const _0x54c480=_0x409fb3;var _0x33b384;if(this['_online']=!0x0,((_0x33b384=this[_0x54c480(0x1ce)][_0x54c480(0x23e)]())==null?void 0x0:_0x33b384[_0x54c480(0x3ba)]())!==this[_0x54c480(0x172)])return;let _0x26493f=this[_0x54c480(0x381)][_0x54c480(0x424)](d[_0x54c480(0x2a7)])[_0x54c480(0x293)]();Array[_0x54c480(0x1b0)](_0x26493f)&&_0x26493f[_0x54c480(0x1fa)]>0x0&&this[_0x54c480(0x378)](_0x26493f);}['_toggleOffline'](){const _0xe130e0=_0x409fb3;this[_0xe130e0(0x1c5)]=!0x1;}};O=S([x(0x2,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x3,(0x0,t[_0x409fb3(0x329)])(E)),x(0x4,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x257)])),x(0x5,(0x0,t[_0x409fb3(0x329)])(D)),x(0x6,l[_0x409fb3(0x235)]),x(0x7,t[_0x409fb3(0x21b)]),x(0x8,t['ICommandService'])],O);const fe=()=>{let _0x36cb51=[],_0x3c1e22=!0x1;return _0x505aed=>{const _0x52127e=_0x4188;_0x36cb51[_0x52127e(0x2df)](_0x505aed),_0x3c1e22||(_0x3c1e22=!0x0,setTimeout(()=>{const _0x752665=_0x52127e;_0x36cb51[_0x752665(0x2e3)](_0x3deb61=>_0x3deb61()),_0x36cb51=[],_0x3c1e22=!0x1;}));};};let k=class extends t[_0x409fb3(0x184)]{get['cursorInfo'](){const _0x3a62ad=_0x409fb3;return this['_cursorInfo$'][_0x3a62ad(0x248)]();}get['roomMembers'](){const _0x41a7c7=_0x409fb3;return this[_0x41a7c7(0x2b7)][_0x41a7c7(0x248)]();}constructor(_0x2aca04,_0x129727,_0x47779d,_0x4c5617,_0x234a53,_0x2ec5e1,_0x1e23dd,_0x14c609){const _0x55cccf=_0x409fb3;super(),this[_0x55cccf(0x172)]=_0x2aca04,this[_0x55cccf(0x2f4)]=_0x129727,this[_0x55cccf(0x381)]=_0x47779d,this[_0x55cccf(0x2e5)]=_0x4c5617,this[_0x55cccf(0x164)]=_0x234a53,this[_0x55cccf(0x1ce)]=_0x2ec5e1,this[_0x55cccf(0x26a)]=_0x1e23dd,this[_0x55cccf(0x3a9)]=_0x14c609,b(this,'_online',!0x1),b(this,_0x55cccf(0x1c6),!0x1),b(this,_0x55cccf(0x36f),new r[(_0x55cccf(0x392))](new Map())),b(this,_0x55cccf(0x352),this[_0x55cccf(0x36f)][_0x55cccf(0x1c2)]()),b(this,'_roomMembers$',new r[(_0x55cccf(0x392))]([])),b(this,'roomMembers$',this[_0x55cccf(0x2b7)][_0x55cccf(0x423)]((0x0,r['debounceTime'])(0x12c))),b(this,_0x55cccf(0x378),(0x0,t[_0x55cccf(0x227)])((_0xa2fa0,_0x57a253)=>{const _0x54f356=_0x55cccf;let _0x24f5b6={'eventID':l['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x54f356(0x2f4)]['getMemberID'](),'selection':(0x0,h['serializeRangeWithSheet'])(_0xa2fa0,_0x57a253['range'])}};this[_0x54f356(0x2f4)][_0x54f356(0x13b)](_0x24f5b6,this['unitID']);},0x64));}[_0x409fb3(0x2c8)](){const _0x330700=_0x409fb3;super[_0x330700(0x2c8)](),this[_0x330700(0x36f)][_0x330700(0x1a1)](new Map()),this[_0x330700(0x36f)]['complete'](),this['_roomMembers$'][_0x330700(0x1a1)]([]),this[_0x330700(0x2b7)][_0x330700(0x27b)]();}[_0x409fb3(0x181)](){const _0x51c8ba=_0x409fb3;this['_init']||(this[_0x51c8ba(0x1c6)]=!0x0,this[_0x51c8ba(0x2f4)]['sessionStatus$'][_0x51c8ba(0x423)]((0x0,r[_0x51c8ba(0x24c)])(this[_0x51c8ba(0x3bd)]))[_0x51c8ba(0x1ac)](_0x69ed12=>{const _0x2c31ec=_0x51c8ba;_0x69ed12===e['SessionStatus'][_0x2c31ec(0x147)]?this['_toggleOnline']():this[_0x2c31ec(0x3d7)]();}),this[_0x51c8ba(0x2f4)][_0x51c8ba(0x1f0)][_0x51c8ba(0x423)]((0x0,r[_0x51c8ba(0x24c)])(this[_0x51c8ba(0x3bd)]))[_0x51c8ba(0x1ac)](_0x283324=>{const _0x41eb8c=_0x51c8ba;let _0x197739=_0x283324[_0x41eb8c(0x3ac)];_0x197739===l['CollaborationEvent'][_0x41eb8c(0x150)]&&this[_0x41eb8c(0x17d)](_0x283324),_0x197739===l[_0x41eb8c(0x299)][_0x41eb8c(0x320)]&&this['_onCursorDelete'](_0x283324);}),this[_0x51c8ba(0x280)](),this[_0x51c8ba(0x415)](this[_0x51c8ba(0x26a)][_0x51c8ba(0x168)](_0x3f874a=>{const _0x55551c=_0x51c8ba;if(this[_0x55551c(0x1c5)]&&_0x3f874a['id']===g[_0x55551c(0x402)]['id']&&_0x3f874a['params'][_0x55551c(0x312)]===this[_0x55551c(0x172)]){let _0x145347=_0x3f874a[_0x55551c(0x1ee)];this[_0x55551c(0x378)](_0x145347[_0x55551c(0x216)],_0x145347['selections'][0x0]);}})));}['_onCursorUpdate'](_0x3314a8){const _0xa5c5c4=_0x409fb3;var _0x1e1174;let {memberID:_0x1f4e62,selection:_0x286b32}=_0x3314a8[_0xa5c5c4(0x276)],{sheetName:_0xf59a35,range:_0x44bc6d}=(0x0,h[_0xa5c5c4(0x295)])(_0x286b32),_0x5d6cab={'name':((_0x1e1174=this[_0xa5c5c4(0x164)][_0xa5c5c4(0x2cd)](this['unitID'],_0x1f4e62))==null?void 0x0:_0x1e1174['name'])??_0xa5c5c4(0x2ea),'range':this[_0xa5c5c4(0x2f8)](_0xf59a35,_0x44bc6d),'sheetID':_0xf59a35,'color':this[_0xa5c5c4(0x2e5)]['assignAColorForMemberID'](_0x1f4e62),'selection':_0x286b32},_0x534f19=this[_0xa5c5c4(0x397)];_0x534f19[_0xa5c5c4(0x16b)](_0x1f4e62,_0x5d6cab),this[_0xa5c5c4(0x36f)][_0xa5c5c4(0x1a1)](_0x534f19);}[_0x409fb3(0x1b1)](_0x60718c){const _0x37b1f6=_0x409fb3;let {memberID:_0x36206f}=_0x60718c[_0x37b1f6(0x276)],_0x481bb8=this[_0x37b1f6(0x397)];_0x481bb8[_0x37b1f6(0x205)](_0x36206f),this[_0x37b1f6(0x36f)][_0x37b1f6(0x1a1)](_0x481bb8);}[_0x409fb3(0x2f8)](_0x32c9c1,_0x5ecf1f){const _0x341ee5=_0x409fb3;var _0x11412d;let _0x1fa156=(_0x11412d=this[_0x341ee5(0x1ce)][_0x341ee5(0x13f)](this[_0x341ee5(0x172)],t[_0x341ee5(0x24d)]['UNIVER_SHEET']))==null||(_0x11412d=_0x11412d['getSheetBySheetId'](_0x32c9c1))==null?void 0x0:_0x11412d[_0x341ee5(0x1eb)]();return(_0x1fa156==null?void 0x0:_0x1fa156[_0x341ee5(0x1d9)](_0x16ea25=>t[_0x341ee5(0x330)][_0x341ee5(0x173)](_0x16ea25,_0x5ecf1f)))||_0x5ecf1f;}[_0x409fb3(0x280)](){const _0x65a9cc=_0x409fb3;let _0x2ceef1=new t[(_0x65a9cc(0x353))](),_0xce91e4=fe(),_0x2f280a=()=>{const _0x4c7613=_0x65a9cc;_0x2ceef1[_0x4c7613(0x2c8)]();let _0x1adc44=(_0x316ef6,_0x5cb986,_0x450686,_0x3e7d97)=>{const _0x74a9d8=_0x4c7613;let _0x391a33=[];switch(_0x316ef6['id']){case g[_0x74a9d8(0x3d9)]['DeleteRangeMoveLeftCommandId']:_0x391a33=(0x0,g[_0x74a9d8(0x3a4)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)]['DeleteRangeMoveUpCommandId']:_0x391a33=(0x0,g[_0x74a9d8(0x324)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)]['InsertColCommandId']:_0x391a33=(0x0,g[_0x74a9d8(0x3d3)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x3ef)]:_0x391a33=(0x0,g[_0x74a9d8(0x190)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x425)]:_0x391a33=(0x0,g[_0x74a9d8(0x42a)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x361)]:_0x391a33=(0x0,g[_0x74a9d8(0x133)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x2c1)]:_0x391a33=(0x0,g[_0x74a9d8(0x219)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x2cc)]:_0x391a33=(0x0,g[_0x74a9d8(0x19a)])(_0x316ef6,_0x3e7d97);break;case g[_0x74a9d8(0x3d9)][_0x74a9d8(0x2e1)]:_0x391a33=(0x0,g[_0x74a9d8(0x19f)])(_0x316ef6,_0x3e7d97);}let _0x41e04a=(0x0,g[_0x74a9d8(0x394)])(_0x391a33,_0x3e7d97),_0x379894=this['cursorInfo'][_0x74a9d8(0x424)](_0x5cb986);if(_0x379894&&_0x41e04a){let _0x175d88={..._0x379894,'range':_0x41e04a};this[_0x74a9d8(0x397)][_0x74a9d8(0x16b)](_0x5cb986,_0x175d88),_0xce91e4(()=>{const _0x32cc92=_0x74a9d8;let _0x280083=this[_0x32cc92(0x3a9)]['registerRefRange'](_0x41e04a,_0x304b86=>(_0x280083[_0x32cc92(0x2c8)](),_0x1adc44(_0x304b86,_0x5cb986,_0x450686,_0x41e04a)));_0x2ceef1['add'](_0x280083);});}return{'redos':[],'undos':[]};};this[_0x4c7613(0x397)][_0x4c7613(0x2e3)]((_0xc6c29c,_0x4ac658)=>{const _0x12c817=_0x4c7613;let {range:_0x532503,sheetID:_0x5e1bcd}=_0xc6c29c,_0xe5cb11=this[_0x12c817(0x3a9)][_0x12c817(0x3f2)](_0x532503,_0x3c4f9f=>(_0xe5cb11[_0x12c817(0x2c8)](),_0x1adc44(_0x3c4f9f,_0x4ac658,_0x5e1bcd,_0x532503)));_0x2ceef1[_0x12c817(0x2ce)](_0xe5cb11);});};this['disposeWithMe']((0x0,t[_0x65a9cc(0x19e)])(this[_0x65a9cc(0x36f)][_0x65a9cc(0x1ac)](()=>{_0x2f280a();})));}[_0x409fb3(0x13a)](){const _0x5bcb95=_0x409fb3;var _0x2a4007,_0x29411d;if(this[_0x5bcb95(0x1c5)]=!0x0,((_0x2a4007=this[_0x5bcb95(0x1ce)][_0x5bcb95(0x23e)]())==null?void 0x0:_0x2a4007[_0x5bcb95(0x3ba)]())!==this[_0x5bcb95(0x172)])return;let _0x3a4183=(_0x29411d=this[_0x5bcb95(0x381)][_0x5bcb95(0x424)](g[_0x5bcb95(0x25b)])['getCurrentSelections']())==null?void 0x0:_0x29411d[0x0],_0x27080d=this[_0x5bcb95(0x1ce)][_0x5bcb95(0x380)](t[_0x5bcb95(0x24d)][_0x5bcb95(0x3bf)])['getActiveSheet']();_0x3a4183&&_0x27080d&&this['_updateLocalCursor'](_0x27080d[_0x5bcb95(0x38d)](),_0x3a4183);}[_0x409fb3(0x3d7)](){const _0x9eaba6=_0x409fb3;this[_0x9eaba6(0x1c5)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x409fb3(0x329)])(t['Injector'])),x(0x3,(0x0,t[_0x409fb3(0x329)])(E)),x(0x4,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x257)])),x(0x5,t[_0x409fb3(0x21b)]),x(0x6,t['ICommandService']),x(0x7,(0x0,t['Inject'])(g[_0x409fb3(0x1cb)]))],k);let A=class extends t['RxDisposable']{constructor(_0x2c1c97,_0x4bd595,_0x1f9bb5){const _0x496059=_0x409fb3;super(),this[_0x496059(0x1ce)]=_0x2c1c97,this['_injector']=_0x4bd595,this['_collabSessionService']=_0x1f9bb5,b(this,_0x496059(0x15c),new Map()),b(this,_0x496059(0x23c),new r[(_0x496059(0x2bf))]()),this[_0x496059(0x1c6)]();}[_0x409fb3(0x2c8)](){const _0x2c13fc=_0x409fb3;super[_0x2c13fc(0x2c8)](),this[_0x2c13fc(0x23c)]['complete'](),this[_0x2c13fc(0x15c)]['forEach'](_0x467b7c=>_0x467b7c[_0x2c13fc(0x2c8)]());}[_0x409fb3(0x286)](_0x501a87){const _0x900d71=_0x409fb3;let _0x74255c=this['_entities']['get'](_0x501a87);return _0x74255c?_0x74255c[_0x900d71(0x352)]:this[_0x900d71(0x23c)][_0x900d71(0x423)]((0x0,r[_0x900d71(0x232)])(_0x54f2a8=>_0x54f2a8[_0x900d71(0x172)]===_0x501a87),(0x0,r['switchMap'])(_0x298064=>_0x298064['cursorInfo$']));}[_0x409fb3(0x1c6)](){const _0x1ef5df=_0x409fb3;this[_0x1ef5df(0x1ce)][_0x1ef5df(0x318)](t[_0x1ef5df(0x24d)][_0x1ef5df(0x3bf)])['pipe']((0x0,r[_0x1ef5df(0x24c)])(this[_0x1ef5df(0x3bd)]))[_0x1ef5df(0x1ac)](async _0x15e493=>{const _0x6b87bb=_0x1ef5df;let _0x5a75b4=_0x15e493[_0x6b87bb(0x26e)][_0x6b87bb(0x3ba)](),_0x3ee952=await this[_0x6b87bb(0x333)](_0x5a75b4);this[_0x6b87bb(0x23c)][_0x6b87bb(0x1a1)](_0x3ee952),this[_0x6b87bb(0x15c)][_0x6b87bb(0x16b)](_0x5a75b4,_0x3ee952);}),this[_0x1ef5df(0x1ce)][_0x1ef5df(0x318)](t['UniverInstanceType']['UNIVER_DOC'])['pipe']((0x0,r[_0x1ef5df(0x24c)])(this[_0x1ef5df(0x3bd)]))[_0x1ef5df(0x423)]((0x0,r['filter'])(_0x42020c=>!_0x42020c[_0x1ef5df(0x26e)][_0x1ef5df(0x3ba)]()['startsWith']('__')))[_0x1ef5df(0x1ac)](async _0x4ff66a=>{const _0x96b5b2=_0x1ef5df;let {unit:_0x49f201}=_0x4ff66a,_0x3cc4a2=_0x49f201['getUnitId'](),_0x189243=await this[_0x96b5b2(0x366)](_0x3cc4a2);this[_0x96b5b2(0x23c)][_0x96b5b2(0x1a1)](_0x189243),this[_0x96b5b2(0x15c)][_0x96b5b2(0x16b)](_0x3cc4a2,_0x189243);}),(0x0,r['merge'])(this['_univerInstanceService'][_0x1ef5df(0x3d2)](t[_0x1ef5df(0x24d)][_0x1ef5df(0x296)]),this[_0x1ef5df(0x1ce)]['getTypeOfUnitDisposed$'](t[_0x1ef5df(0x24d)][_0x1ef5df(0x3bf)]))[_0x1ef5df(0x423)]((0x0,r['takeUntil'])(this[_0x1ef5df(0x3bd)]))['subscribe'](_0x5ae836=>{const _0x45f4d5=_0x1ef5df;let _0x5bf0dc=_0x5ae836[_0x45f4d5(0x3ba)](),_0x1c4499=this[_0x45f4d5(0x15c)][_0x45f4d5(0x424)](_0x5bf0dc);_0x1c4499&&(_0x1c4499[_0x45f4d5(0x2c8)](),this[_0x45f4d5(0x15c)][_0x45f4d5(0x205)](_0x5bf0dc));});}async[_0x409fb3(0x333)](_0x108c8c){const _0x2e3d39=_0x409fb3;let _0x4d40ae=await this[_0x2e3d39(0x2ef)][_0x2e3d39(0x17a)](_0x108c8c),_0x9b9d15=this[_0x2e3d39(0x381)][_0x2e3d39(0x36d)](k,_0x108c8c,_0x4d40ae);return _0x9b9d15[_0x2e3d39(0x181)](),_0x9b9d15;}async[_0x409fb3(0x366)](_0x14a9e8){const _0x1f086e=_0x409fb3;let _0x42ea9a=await this[_0x1f086e(0x2ef)][_0x1f086e(0x17a)](_0x14a9e8),_0x1226f7=this[_0x1f086e(0x381)]['createInstance'](O,_0x14a9e8,_0x42ea9a);return _0x1226f7[_0x1f086e(0x181)](),_0x1226f7;}};A=S([x(0x0,t[_0x409fb3(0x21b)]),x(0x1,(0x0,t[_0x409fb3(0x329)])(t['Injector'])),x(0x2,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x207)]))],A);function j(_0x51a1e5,_0x5333fe){const _0x193c83=_0x409fb3;_0x51a1e5[_0x193c83(0x265)](),_0x51a1e5['font']=_0x193c83(0x3e7);let _0x54d900=_0x51a1e5[_0x193c83(0x426)](_0x5333fe)[_0x193c83(0x199)];return _0x51a1e5[_0x193c83(0x139)](),Math[_0x193c83(0x2db)](_0x54d900+0x8,0xc8);}function pe(_0x3a8605,_0x243b1b){const _0x3e84ba=_0x409fb3;let {radius:_0x305bc8,width:_0x4bdb78,height:_0xc2a844}=_0x243b1b;_0x305bc8??=0x0,_0x4bdb78??=0x1e,_0xc2a844??=0x1e;let _0x511090=0x0,_0x1fe5d2=0x0,_0x46082e=0x0;_0x511090=_0x1fe5d2=_0x46082e=Math['min'](_0x305bc8,_0x4bdb78/0x2,_0xc2a844/0x2),_0x3a8605['beginPath'](),_0x3a8605[_0x3e84ba(0x15b)](_0x511090,0x0),_0x3a8605[_0x3e84ba(0x1c3)](_0x4bdb78-_0x1fe5d2,0x0),_0x3a8605[_0x3e84ba(0x274)](_0x4bdb78-_0x1fe5d2,_0x1fe5d2,_0x1fe5d2,Math['PI']*0x3/0x2,0x0,!0x1),_0x3a8605[_0x3e84ba(0x1c3)](_0x4bdb78,_0xc2a844-_0x46082e),_0x3a8605['arc'](_0x4bdb78-_0x46082e,_0xc2a844-_0x46082e,_0x46082e,0x0,Math['PI']/0x2,!0x1),_0x3a8605[_0x3e84ba(0x1c3)](0x0,_0xc2a844),_0x3a8605[_0x3e84ba(0x1c3)](0x0,_0x511090),_0x3a8605['arc'](_0x511090,_0x511090,_0x511090,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3a8605['closePath'](),_0x243b1b[_0x3e84ba(0x1b3)]&&(_0x3a8605[_0x3e84ba(0x265)](),_0x3a8605[_0x3e84ba(0x3cf)]=_0x243b1b[_0x3e84ba(0x1b3)],_0x243b1b['fillRule']===_0x3e84ba(0x2c5)?_0x3a8605['fill'](_0x3e84ba(0x2c5)):_0x3a8605[_0x3e84ba(0x1b3)](),_0x3a8605[_0x3e84ba(0x139)]());}var M=class e extends p[_0x409fb3(0x189)]{constructor(_0x44a398,_0x57cfa6){const _0x5b4c9d=_0x409fb3;super(_0x44a398,_0x57cfa6),b(this,_0x5b4c9d(0x33b),void 0x0),b(this,_0x5b4c9d(0x33f),void 0x0),this['color']=_0x57cfa6==null?void 0x0:_0x57cfa6['color'],this[_0x5b4c9d(0x33f)]=_0x57cfa6==null?void 0x0:_0x57cfa6[_0x5b4c9d(0x33f)];}static[_0x409fb3(0x41c)](_0xacd188,_0x33e533){const _0x1ab1c8=_0x409fb3;let {text:_0x2b1b34,color:_0x31b47a}=_0x33e533;_0xacd188['save'](),_0xacd188[_0x1ab1c8(0x400)]=_0x1ab1c8(0x263);let _0x5b5fa7=_0xacd188[_0x1ab1c8(0x426)](_0x2b1b34)[_0x1ab1c8(0x199)];if(pe(_0xacd188,{'height':0x14,'radius':0x4,'width':j(_0xacd188,_0x2b1b34),'fill':_0x31b47a,'evented':!0x1}),_0xacd188['fillStyle']=_0x1ab1c8(0x15d),_0x5b5fa7>0xc0){let _0x137d8e='',_0x575495=0x0;for(let _0x3d90b5 of _0x2b1b34){let _0x1569c5=_0xacd188[_0x1ab1c8(0x426)](_0x3d90b5)['width'];if(_0x575495+_0x1569c5<=0xc0-_0xacd188[_0x1ab1c8(0x426)](_0x1ab1c8(0x3a8))['width'])_0x137d8e+=_0x3d90b5,_0x575495+=_0x1569c5;else{_0x137d8e+='...';break;}}_0xacd188[_0x1ab1c8(0x356)](_0x137d8e,0x4,0xf);}else _0xacd188['fillText'](_0x2b1b34,0x4,0xf);_0xacd188[_0x1ab1c8(0x139)]();}['_draw'](_0x1fc49f){const _0x5775ae=_0x409fb3;e[_0x5775ae(0x41c)](_0x1fc49f,this);}};function _0x4188(_0x512c88,_0x17071b){_0x512c88=_0x512c88-0x132;const _0x5cc24d=_0x5cc2();let _0x418882=_0x5cc24d[_0x512c88];return _0x418882;}const N=_0x409fb3(0x340);var P=class{constructor(_0x22a8ee,_0x353377,_0x167ede,_0x5c0f2d){const _0x1abde5=_0x409fb3;this[_0x1abde5(0x14f)]=_0x22a8ee,this[_0x1abde5(0x3c6)]=_0x353377,this['_docSkeleton']=_0x167ede,this[_0x1abde5(0x32b)]=_0x5c0f2d,b(this,_0x1abde5(0x14b),[]),b(this,_0x1abde5(0x302),null),b(this,_0x1abde5(0x3be),null),b(this,'_anchorDot',null),b(this,_0x1abde5(0x3a0),null),b(this,_0x1abde5(0x1a3),null),this['_render']();}set['_hover'](_0x3df37e){const _0x434fb6=_0x409fb3;_0x3df37e?(this[_0x434fb6(0x1fd)]&&this[_0x434fb6(0x1fd)][_0x434fb6(0x2ff)](),this[_0x434fb6(0x3be)]&&this[_0x434fb6(0x3be)][_0x434fb6(0x2a3)]()):(this[_0x434fb6(0x1fd)]&&this[_0x434fb6(0x1fd)][_0x434fb6(0x2a3)](),this['_textBubble']&&this[_0x434fb6(0x3be)][_0x434fb6(0x2ff)]());}[_0x409fb3(0x2c8)](){const _0xdf653f=_0x409fb3;for(let _0x4e8966 of this[_0xdf653f(0x14b)])_0x4e8966[_0xdf653f(0x2c8)]();this[_0xdf653f(0x3be)]&&this[_0xdf653f(0x3be)]['dispose'](),this[_0xdf653f(0x1fd)]&&this['_anchorDot'][_0xdf653f(0x2c8)](),this[_0xdf653f(0x302)]&&this[_0xdf653f(0x302)][_0xdf653f(0x2c8)](),this[_0xdf653f(0x1a3)]&&this[_0xdf653f(0x1a3)]();}[_0x409fb3(0x2ec)](){const _0x320770=_0x409fb3;let {_docSkeleton:_0x57eebf,_document:_0x3a233d}=this,{color:_0xfcc4a9,name:_0x358a58,ranges:_0x18837c}=this[_0x320770(0x14f)],_0x4111d2=_0x3a233d['getOffsetConfig'](),{docsLeft:_0x6a1d24,docsTop:_0x11d869}=_0x4111d2,_0x60b3e=new f[(_0x320770(0x1d7))](_0x4111d2,_0x57eebf);for(let {startOffset:_0x31a016,endOffset:_0x1c1990,rangeType:_0x43a405,segmentId:_0x21a494,segmentPage:_0xb8aecc,collapsed:_0x561c09,isActive:_0x376341}of _0x18837c){let _0x54c496=_0x57eebf[_0x320770(0x347)](_0x31a016,!0x0,_0x21a494,_0xb8aecc),_0x368eac=_0x57eebf[_0x320770(0x347)](_0x1c1990,!0x0,_0x21a494,_0xb8aecc);_0x368eac??=_0x57eebf[_0x320770(0x347)](_0x1c1990-0x1,!0x1,_0x21a494,_0xb8aecc);let _0x5ebee5=me(_0x54c496,_0x368eac);if(_0x376341&&_0x5ebee5[_0x320770(0x1cc)]){let {contentBoxPointGroup:_0x359416}=_0x60b3e[_0x320770(0x22c)](_0x368eac,_0x368eac);if(_0x359416[_0x320770(0x1fa)]===0x0)continue;this[_0x320770(0x41f)](_0xfcc4a9,_0x359416,_0x6a1d24,_0x11d869,_0x358a58),this['_eventUnsubscribe']=this[_0x320770(0x1e8)]();}if(_0x54c496&&_0x368eac){if(_0x43a405===t['DOC_RANGE_TYPE']['RECT']){let {pointGroup:_0x1a9dbd}=new f[(_0x320770(0x160))](_0x4111d2,_0x57eebf)[_0x320770(0x22c)](_0x54c496,_0x368eac)??{};if(_0x1a9dbd==null||_0x1a9dbd['length']===0x0)continue;this[_0x320770(0x36a)](_0xfcc4a9,_0x1a9dbd,_0x6a1d24,_0x11d869);}else{if(!_0x561c09&&_0x5ebee5[_0x320770(0x28b)]){let {borderBoxPointGroup:_0x255a1a}=_0x60b3e[_0x320770(0x22c)](_0x54c496,_0x368eac);if(_0x255a1a['length']===0x0)continue;this['_drawTextRange'](_0xfcc4a9,_0x255a1a,_0x6a1d24,_0x11d869);}}}}}[_0x409fb3(0x41f)](_0xbed086,_0x1ec43d,_0x27ce9f,_0x1d1918,_0x55137b){const _0x4de5d3=_0x409fb3;let {left:_0x58c383,top:_0x328f2a,height:_0x73fde0}=this[_0x4de5d3(0x192)](_0x1ec43d),_0x2d77cc=1.5/this[_0x4de5d3(0x3b4)](),_0x2857fa=new p['Rect'](N+(0x0,t['generateRandomId'])(0x6),{'left':_0x58c383+_0x27ce9f-_0x2d77cc,'top':_0x328f2a+_0x1d1918,'height':_0x73fde0,'width':1.5,'fill':_0xbed086||(0x0,p[_0x4de5d3(0x3b2)])(t[_0x4de5d3(0x3fa)][_0x4de5d3(0x23d)],0x0),'strokeWidth':_0x2d77cc,'stroke':_0x4de5d3(0x290),'evented':!0x0});this[_0x4de5d3(0x302)]=_0x2857fa,this[_0x4de5d3(0x3c6)][_0x4de5d3(0x1e1)](_0x2857fa,f[_0x4de5d3(0x1d4)]);let _0xf80d3c=new p[(_0x4de5d3(0x239))](N+(0x0,t[_0x4de5d3(0x208)])(0x6),{'left':_0x58c383+_0x27ce9f-_0x2d77cc,'top':_0x328f2a+_0x1d1918-0x2,'height':0x4,'width':0x4,'fill':_0xbed086||(0x0,p['getColor'])(t['COLORS'][_0x4de5d3(0x23d)],0x0),'strokeWidth':0x0,'stroke':_0xbed086||(0x0,p[_0x4de5d3(0x3b2)])(t[_0x4de5d3(0x3fa)]['black'],0x0),'evented':!0x1});this[_0x4de5d3(0x1fd)]=_0xf80d3c,this[_0x4de5d3(0x3c6)]['addObject'](_0xf80d3c,f[_0x4de5d3(0x1d4)]);let _0x488d57=new M(N+(0x0,t[_0x4de5d3(0x208)])(0x6),{'left':_0x58c383+_0x27ce9f-_0x2d77cc,'top':_0x328f2a+_0x1d1918-0x14,'text':_0x55137b,'color':_0xbed086});this[_0x4de5d3(0x3be)]=_0x488d57,this[_0x4de5d3(0x3c6)][_0x4de5d3(0x1e1)](_0x488d57,f[_0x4de5d3(0x1d4)]),this['_hover']=!0x1;}['_handleHover'](){const _0x1f5f23=_0x409fb3;let _0x32d7fb=this['_anchor'][_0x1f5f23(0x289)][_0x1f5f23(0x38c)](()=>{const _0x2cfa7d=_0x1f5f23;this[_0x2cfa7d(0x34f)]=!0x0;}),_0xcd8ddd=this[_0x1f5f23(0x302)]['onPointerLeave$'][_0x1f5f23(0x38c)](()=>{const _0xaf6f51=_0x1f5f23;this[_0xaf6f51(0x3a0)]&&clearTimeout(this[_0xaf6f51(0x3a0)]),this[_0xaf6f51(0x3a0)]=setTimeout(()=>{const _0x37a71a=_0xaf6f51;this[_0x37a71a(0x34f)]=!0x1;},0x7d0);});return()=>{const _0x4e961f=_0x1f5f23;_0x32d7fb['unsubscribe'](),_0xcd8ddd[_0x4e961f(0x343)]();};}[_0x409fb3(0x21e)](_0xa42bb4,_0x1e4d07,_0x12905f,_0x360bf2){const _0x3e4b92=_0x409fb3;let _0xe093aa=0.2,_0x5e269f=new t[(_0x3e4b92(0x1bc))](_0xa42bb4)[_0x3e4b92(0x163)](_0xe093aa)[_0x3e4b92(0x3c7)](),_0x59f7fe=new p[(_0x3e4b92(0x155))](_0x3e4b92(0x34a)+(0x0,t[_0x3e4b92(0x208)])(0x6),{'pointsGroup':_0x1e4d07,'fill':_0x5e269f||(0x0,p['getColor'])(t[_0x3e4b92(0x3fa)]['black'],_0xe093aa),'left':_0x12905f,'top':_0x360bf2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3e4b92(0x14b)][_0x3e4b92(0x2df)](_0x59f7fe),this[_0x3e4b92(0x3c6)]['addObject'](_0x59f7fe,f[_0x3e4b92(0x1d4)]);}[_0x409fb3(0x36a)](_0x1f7a23,_0x1ea991,_0x10178c,_0x15ffe0){const _0x52ccbe=_0x409fb3;let _0x2e4e09=0.2,_0x7041b4=new t[(_0x52ccbe(0x1bc))](_0x1f7a23)[_0x52ccbe(0x163)](_0x2e4e09)[_0x52ccbe(0x3c7)](),_0x10ae25=new p[(_0x52ccbe(0x155))](_0x52ccbe(0x255)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x1ea991,'fill':_0x7041b4||(0x0,p[_0x52ccbe(0x3b2)])(t['COLORS']['black'],_0x2e4e09),'left':_0x10178c,'top':_0x15ffe0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52ccbe(0x14b)][_0x52ccbe(0x2df)](_0x10ae25),this['_scene'][_0x52ccbe(0x1e1)](_0x10ae25,f[_0x52ccbe(0x1d4)]);}[_0x409fb3(0x192)](_0x2b54d9){let _0x44fb6a=_0x2b54d9[0x0],_0x2bf42b=_0x44fb6a[0x0],_0x41cd7f=_0x44fb6a[0x2],{x:_0xe8ba32,y:_0x1fc72a}=_0x2bf42b,{x:_0x189c5a,y:_0x5c837d}=_0x41cd7f;return{'left':_0xe8ba32,'top':_0x1fc72a,'width':_0x189c5a-_0xe8ba32,'height':_0x5c837d-_0x1fc72a};}[_0x409fb3(0x3b4)](){const _0xf6f64f=_0x409fb3;let {scaleX:_0x3027f6,scaleY:_0x38ff63}=this[_0xf6f64f(0x3c6)]['getAncestorScale']();return Math[_0xf6f64f(0x247)](_0x3027f6,_0x38ff63);}};function me(_0x3a6a66,_0x48ba76){const _0x40f8ef=_0x409fb3;if(!_0x48ba76)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x3a6a66||_0x3a6a66[_0x40f8ef(0x214)]!==_0x48ba76[_0x40f8ef(0x214)]||(_0x3a6a66[_0x40f8ef(0x214)]===p[_0x40f8ef(0x1ad)][_0x40f8ef(0x240)]||_0x3a6a66[_0x40f8ef(0x214)]===p[_0x40f8ef(0x1ad)][_0x40f8ef(0x42c)])&&_0x3a6a66[_0x40f8ef(0x22e)]!==_0x48ba76[_0x40f8ef(0x22e)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x3d48ec=(0x0,p[_0x40f8ef(0x3da)])(_0x3a6a66),_0x191bae=(0x0,p[_0x40f8ef(0x3da)])(_0x48ba76);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x3d48ec==null||_0x191bae==null?_0x3d48ec==null&&_0x191bae==null:_0x3d48ec[_0x40f8ef(0x3c1)]===_0x191bae[_0x40f8ef(0x3c1)]&&_0x3d48ec[_0x40f8ef(0x3ea)]===_0x191bae[_0x40f8ef(0x3ea)]&&_0x3d48ec[_0x40f8ef(0x2f1)]===_0x191bae['columnIndex']};}let F=class extends t[_0x409fb3(0x184)]{constructor(_0x3ac280,_0x340fcc,_0x371ce9,_0x2078e5,_0x3bcc5d){const _0x2c7f27=_0x409fb3;super(),this[_0x2c7f27(0x317)]=_0x3ac280,this[_0x2c7f27(0x2f5)]=_0x340fcc,this[_0x2c7f27(0x196)]=_0x371ce9,this[_0x2c7f27(0x26a)]=_0x2078e5,this[_0x2c7f27(0x1f2)]=_0x3bcc5d,b(this,_0x2c7f27(0x319),[]),b(this,'_cursors',[]),this['_init']();}[_0x409fb3(0x1c6)](){const _0x486a47=_0x409fb3;let _0x5b313a=this[_0x486a47(0x317)][_0x486a47(0x312)],_0x4052c7=this[_0x486a47(0x2f5)];this[_0x486a47(0x415)]((0x0,r[_0x486a47(0x2d0)])([this[_0x486a47(0x196)][_0x486a47(0x286)](_0x5b313a),this[_0x486a47(0x1f2)][_0x486a47(0x3f4)]])[_0x486a47(0x423)]((0x0,i[_0x486a47(0x3c9)])(([_0x48dcb6,_0x28dc9f])=>({'skeleton':_0x4052c7[_0x486a47(0x262)](),'cursors':[..._0x48dcb6[_0x486a47(0x25c)]()][_0x486a47(0x30c)](_0x2bac29=>({..._0x2bac29,'color':this['_themeService'][_0x486a47(0x2d4)](_0x2bac29['color'])}))})))[_0x486a47(0x1ac)](_0x34f29c=>{const _0x538ce5=_0x486a47;if(this[_0x538ce5(0x2c4)](),_0x34f29c){let {skeleton:_0x517002,cursors:_0x4d89e0}=_0x34f29c;this[_0x538ce5(0x1ec)](_0x517002,_0x4d89e0);}})),this['_initResize'](),this[_0x486a47(0x316)]();}[_0x409fb3(0x1ec)](_0x27d318,_0xabef82){const _0x252a32=_0x409fb3;let {scene:_0x5bf0aa,mainComponent:_0x548990}=this['_context'],_0x335fb7=_0xabef82[_0x252a32(0x3c9)](_0xf47d4d=>new P(_0xf47d4d,_0x5bf0aa,_0x27d318,_0x548990));this['_cursorShapes']=_0x335fb7,this[_0x252a32(0x141)]=_0xabef82;}['_refreshCollabCursors'](){const _0x25084=_0x409fb3;this[_0x25084(0x2c4)]();let {scene:_0x1e0e17,mainComponent:_0x3a624d}=this[_0x25084(0x317)],_0x1c14bb=this[_0x25084(0x2f5)][_0x25084(0x262)](),_0x29f6c7=this['_cursors'][_0x25084(0x3c9)](_0x4613cf=>new P(_0x4613cf,_0x1e0e17,_0x1c14bb,_0x3a624d));this[_0x25084(0x319)]=_0x29f6c7;}[_0x409fb3(0x2c4)](){const _0x39cda1=_0x409fb3;this[_0x39cda1(0x319)][_0x39cda1(0x2e3)](_0x1eab44=>_0x1eab44[_0x39cda1(0x2c8)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x2f7e73=_0x409fb3;let _0xaed8f7=[f[_0x2f7e73(0x364)]['id']];this[_0x2f7e73(0x415)](this[_0x2f7e73(0x26a)]['onCommandExecuted'](_0x546807=>{const _0x42467b=_0x2f7e73;_0xaed8f7[_0x42467b(0x1cd)](_0x546807['id'])&&_0x546807['params'][_0x42467b(0x312)]===this['_context'][_0x42467b(0x312)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x240160=_0x409fb3;this[_0x240160(0x415)]((0x0,t[_0x240160(0x3f3)])(this[_0x240160(0x317)]['engine'][_0x240160(0x363)])[_0x240160(0x423)]((0x0,i['filter'])(_0x21d813=>_0x21d813[_0x240160(0x3b7)]===p[_0x240160(0x18c)][_0x240160(0x246)]),(0x0,i[_0x240160(0x42f)])(0x10))[_0x240160(0x1ac)](()=>{const _0x1855c5=_0x240160;this[_0x1855c5(0x37d)]();}));}};F=S([x(0x1,(0x0,t[_0x409fb3(0x329)])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t['Inject'])(A)),x(0x3,t[_0x409fb3(0x228)]),x(0x4,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x188)]))],F);var he=class extends p['Shape']{constructor(_0xd034b,_0x5e7534){const _0xbe23d1=_0x409fb3;super(_0xd034b,_0x5e7534),b(this,_0xbe23d1(0x357),void 0x0),b(this,_0xbe23d1(0x220),!0x1),b(this,'_range',void 0x0),b(this,_0xbe23d1(0x405),''),b(this,_0xbe23d1(0x25a),_0xbe23d1(0x32d)),b(this,'_backgroundColor',void 0x0),b(this,_0xbe23d1(0x29f),void 0x0),b(this,_0xbe23d1(0x431),void 0x0),b(this,_0xbe23d1(0x3ab),0x4),b(this,_0xbe23d1(0x3af),void 0x0),b(this,'_blinkIntervalTimer',void 0x0),b(this,'_isBlinkVisible',!0x0),b(this,_0xbe23d1(0x24a),0x0),b(this,'_labelHorizontalPosition','right'),_0x5e7534&&(this['setShapeProps'](_0x5e7534),_0x5e7534[_0xbe23d1(0x2be)]&&(_0x5e7534[_0xbe23d1(0x27d)]??this['_highlightSecond'])&&this[_0xbe23d1(0x2fd)](_0x5e7534[_0xbe23d1(0x27d)]??this[_0xbe23d1(0x3ab)])),this['onPointerEnter$']['subscribeEvent'](()=>this[_0xbe23d1(0x2ac)]({'hovered':!0x0})),this[_0xbe23d1(0x187)][_0xbe23d1(0x38c)](()=>this[_0xbe23d1(0x2ac)]({'hovered':!0x1}));}[_0x409fb3(0x28d)](_0x587663){const _0x315f74=_0x409fb3;this[_0x315f74(0x24a)]=_0x587663;}[_0x409fb3(0x2ac)](_0x30fa4f){const _0x31e712=_0x409fb3;this[_0x31e712(0x357)]=_0x30fa4f['color']??this[_0x31e712(0x357)],this[_0x31e712(0x220)]=_0x30fa4f['hovered']??this['_hovered'],this[_0x31e712(0x2b0)]=_0x30fa4f[_0x31e712(0x195)]??this[_0x31e712(0x2b0)],this[_0x31e712(0x405)]=_0x30fa4f[_0x31e712(0x166)]??this[_0x31e712(0x405)],this[_0x31e712(0x25a)]=_0x30fa4f[_0x31e712(0x362)]??this[_0x31e712(0x25a)],this['_backgroundColor']=_0x30fa4f[_0x31e712(0x2de)]??this[_0x31e712(0x161)],this[_0x31e712(0x29f)]=_0x30fa4f[_0x31e712(0x21d)]??this[_0x31e712(0x29f)],this['_labelHorizontalPosition']=_0x30fa4f[_0x31e712(0x421)]??this['_labelHorizontalPosition'],_0x30fa4f[_0x31e712(0x27d)]!==void 0x0&&(this[_0x31e712(0x3ab)]=_0x30fa4f[_0x31e712(0x27d)]),_0x30fa4f[_0x31e712(0x2be)]!==void 0x0&&(this[_0x31e712(0x431)]=_0x30fa4f[_0x31e712(0x2be)]),_0x30fa4f[_0x31e712(0x2fa)]!==void 0x0&&(this['_offsetY']=_0x30fa4f[_0x31e712(0x2fa)]),this[_0x31e712(0x260)]({'width':_0x30fa4f[_0x31e712(0x199)],'height':_0x30fa4f[_0x31e712(0x1ca)]});}[_0x409fb3(0x24f)](_0x15f710){const _0x48e231=_0x409fb3;let {row:_0x821840,column:_0x57ea5f}=_0x15f710;if(_0x821840>=this[_0x48e231(0x2b0)][_0x48e231(0x3bb)]&&_0x821840<=this[_0x48e231(0x2b0)][_0x48e231(0x31f)]&&_0x57ea5f>=this[_0x48e231(0x2b0)]['startColumn']&&_0x57ea5f<=this[_0x48e231(0x2b0)][_0x48e231(0x13c)]){this[_0x48e231(0x2ac)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x51dbc8){const _0x234551=_0x409fb3;this[_0x234551(0x3d8)](),this[_0x234551(0x18b)]=!0x0,this[_0x234551(0x3b9)]=window[_0x234551(0x311)](()=>{const _0x5ba3e4=_0x234551;this[_0x5ba3e4(0x18b)]=!this['_isBlinkVisible'],this[_0x5ba3e4(0x372)](!0x0);},0x1f4),this[_0x234551(0x3af)]=window[_0x234551(0x16d)](()=>{const _0x853a5=_0x234551;this[_0x853a5(0x3d8)](),this[_0x853a5(0x18b)]=!0x0,this[_0x853a5(0x372)](!0x0);},_0x51dbc8*0x3e8);}[_0x409fb3(0x3d8)](){const _0x173dd5=_0x409fb3;this['_blinkIntervalTimer']&&=(window[_0x173dd5(0x1d1)](this['_blinkIntervalTimer']),void 0x0),this['_blinkTimer']&&=(window[_0x173dd5(0x2b4)](this[_0x173dd5(0x3af)]),void 0x0);}[_0x409fb3(0x3d1)](_0x42569d){return!0x1;}[_0x409fb3(0x2c8)](){const _0x52f226=_0x409fb3;this[_0x52f226(0x3d8)](),super['dispose']();}[_0x409fb3(0x1d8)](_0x3cb587){const _0x5e6afd=_0x409fb3;let _0x24050f=this[_0x5e6afd(0x357)],_0x15a4c1=this['_backgroundColor'];if(this['_highlight']&&!this[_0x5e6afd(0x18b)]&&(_0x24050f=this[_0x5e6afd(0x3c0)](this[_0x5e6afd(0x357)]),_0x15a4c1=this[_0x5e6afd(0x161)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),p[_0x5e6afd(0x239)]['drawWith'](_0x3cb587,{'width':this[_0x5e6afd(0x199)],'height':this[_0x5e6afd(0x1ca)],'strokeWidth':this[_0x5e6afd(0x2a0)]||1.5,'stroke':_0x24050f,'evented':!0x1,'fill':_0x15a4c1}),this[_0x5e6afd(0x220)]||this[_0x5e6afd(0x29f)]){_0x3cb587['save']();let _0x355af0=this[_0x5e6afd(0x422)]===_0x5e6afd(0x14a)?-j(_0x3cb587,this['_name']):this[_0x5e6afd(0x199)];_0x3cb587['transform'](0x1,0x0,0x0,0x1,_0x355af0,(this['_labelPosition']===_0x5e6afd(0x132)?0x0:-0x14)+(this['_offsetY']??0x0)),M[_0x5e6afd(0x41c)](_0x3cb587,{'text':this['_name'],'color':_0x24050f}),_0x3cb587[_0x5e6afd(0x139)]();}}[_0x409fb3(0x3c0)](_0x22036d){const _0x236124=_0x409fb3;return _0x22036d[_0x236124(0x1fc)]('#')?'rgba('+Number[_0x236124(0x309)](_0x22036d['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x236124(0x309)](_0x22036d[_0x236124(0x2b3)](0x3,0x5),0x10)+',\x20'+Number[_0x236124(0x309)](_0x22036d[_0x236124(0x2b3)](0x5,0x7),0x10)+',\x200.2)':_0x22036d['startsWith'](_0x236124(0x1a4))?_0x22036d['replace'](/[\d.]+\)$/g,'0.2)'):_0x22036d['startsWith'](_0x236124(0x2af))?_0x22036d[_0x236124(0x412)](_0x236124(0x2af),_0x236124(0x1a4))[_0x236124(0x412)](')',_0x236124(0x201)):_0x22036d;}};let I=class extends t['RxDisposable']{constructor(_0x5c784f,_0xad703e,_0x340d52,_0x5bcd90){const _0x1899bc=_0x409fb3;super(),this['_context']=_0x5c784f,this[_0x1899bc(0x42b)]=_0xad703e,this[_0x1899bc(0x196)]=_0x340d52,this['_themeService']=_0x5bcd90,b(this,'_cursors',new Set()),b(this,_0x1899bc(0x41a),null),b(this,_0x1899bc(0x3cc),null),this[_0x1899bc(0x1c6)]();}[_0x409fb3(0x1c6)](){const _0x390753=_0x409fb3;this[_0x390753(0x42b)][_0x390753(0x148)][_0x390753(0x423)]((0x0,i[_0x390753(0x24c)])(this['dispose$']),(0x0,i['switchMap'])(_0x428e51=>{const _0x1cc886=_0x390753;if(_0x428e51){let _0x554d17=_0x428e51[_0x1cc886(0x272)];return(0x0,r[_0x1cc886(0x2d0)])(this['_collabCursorController']['getCollabCursors$'](this['_context'][_0x1cc886(0x312)]),this[_0x1cc886(0x1f2)][_0x1cc886(0x3f4)])[_0x1cc886(0x423)]((0x0,i[_0x1cc886(0x3c9)])(([_0x486f03,_0x1a5bf8])=>{const _0x4971dc=_0x1cc886;let _0x1a8e07=new Map();return _0x486f03[_0x4971dc(0x2e3)]((_0x5f1bf3,_0xf84010)=>{const _0x5643d6=_0x4971dc;if(_0x5f1bf3['sheetID']===_0x554d17){let _0x14bf4e={..._0x5f1bf3};_0x14bf4e[_0x5643d6(0x33b)]=this['_themeService'][_0x5643d6(0x2d4)](_0x5f1bf3['color']),_0x1a8e07['set'](_0xf84010,_0x14bf4e);}}),{'skeleton':_0x428e51,'cursors':_0x1a8e07};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x390753(0x1ac)](({skeleton:_0x109a8d,cursors:_0x56bad3})=>{const _0xb6535f=_0x390753;this[_0xb6535f(0x2c4)](),_0x109a8d&&this[_0xb6535f(0x1ec)](_0x109a8d,_0x56bad3);}),this[_0x390753(0x415)](this[_0x390753(0x42b)]['currentSkeleton$']['pipe']((0x0,i[_0x390753(0x24c)])(this[_0x390753(0x3bd)]))[_0x390753(0x1ac)](_0x3cd65f=>{const _0x599aed=_0x390753;var _0x292593;if(_0x3cd65f==null)return;(_0x292593=this['_pointerMoveDisposable'])==null||_0x292593[_0x599aed(0x343)](),this[_0x599aed(0x3cc)]=null;let {skeleton:_0x623570}=_0x3cd65f,{scene:_0x521af7}=this[_0x599aed(0x317)];this[_0x599aed(0x3cc)]=_0x521af7['onPointerMove$'][_0x599aed(0x38c)]((0x0,t['debounce'])(_0x5c6166=>{const _0x23f722=_0x599aed;var _0x2860a0,_0x5949d0;let {offsetX:_0x4c4cb1,offsetY:_0x345a26}=_0x5c6166,{x:_0x8ad58f,y:_0x241ae6}=_0x521af7['getCoordRelativeToViewport'](p[_0x23f722(0x2c3)]['FromArray']([_0x4c4cb1,_0x345a26])),{scaleX:_0x10dfe7,scaleY:_0x5b778c}=_0x521af7[_0x23f722(0x1dd)](),_0x4b766e=_0x521af7[_0x23f722(0x351)](p[_0x23f722(0x409)][_0x23f722(0x156)]),_0x1f4b9b=_0x521af7['getScrollXYInfoByViewport'](p['Vector2'][_0x23f722(0x225)]([_0x8ad58f,_0x241ae6]),_0x4b766e),_0x54924d=_0x623570[_0x23f722(0x1a6)](_0x4c4cb1,_0x345a26,_0x10dfe7,_0x5b778c,_0x1f4b9b);(((_0x2860a0=this['_lastPointer'])==null?void 0x0:_0x2860a0['column'])!==_0x54924d[_0x23f722(0x35a)]||((_0x5949d0=this[_0x23f722(0x41a)])==null?void 0x0:_0x5949d0['row'])!==_0x54924d[_0x23f722(0x224)])&&this[_0x23f722(0x141)][_0x23f722(0x2e3)](_0x50b74f=>{const _0x4c2afb=_0x23f722;_0x50b74f[_0x4c2afb(0x24f)](_0x54924d);});},0x64));})),this[_0x390753(0x415)]((0x0,t[_0x390753(0x19e)])(()=>{const _0xfc104a=_0x390753;var _0x77b16f;(_0x77b16f=this[_0xfc104a(0x3cc)])==null||_0x77b16f[_0xfc104a(0x343)](),this[_0xfc104a(0x3cc)]=null;}));}[_0x409fb3(0x1ec)](_0x1a39d9,_0x250242){const _0x3da0bc=_0x409fb3;let _0x25e265=this[_0x3da0bc(0x42b)][_0x3da0bc(0x1b8)]();if(!_0x25e265)return;let _0x28cca0=this[_0x3da0bc(0x2da)]();if(!_0x28cca0)return;this[_0x3da0bc(0x141)][_0x3da0bc(0x2e3)](_0x50698a=>{const _0x437509=_0x3da0bc;_0x50698a[_0x437509(0x372)]();});let {scene:_0x5a5f1a}=_0x28cca0,_0x6401b2=ge(Array[_0x3da0bc(0x416)](_0x250242[_0x3da0bc(0x25c)]()))[_0x3da0bc(0x3c9)](_0x54c14b=>{const _0x448e8a=_0x3da0bc;let {color:_0x44e699,range:_0xde05ac,name:_0xdb3156,selection:_0x31d09b,sheetID:_0xc8d5e3}=_0x54c14b,{startColumn:_0x1784b0,startRow:_0x4ceb30,endColumn:_0x279538,endRow:_0x25f9d2}=_0xde05ac,_0x52f06e=(0x0,_[_0x448e8a(0x1df)])(_0x4ceb30,_0x1784b0,_0x5a5f1a,_0x25e265),_0x632add=(0x0,_[_0x448e8a(0x1df)])(_0x25f9d2,_0x279538,_0x5a5f1a,_0x25e265),{columnHeaderHeightAndMarginTop:_0x1ca623}=_0x25e265,{startX:_0x2e1498,startY:_0x3eef64}=_0x52f06e,{endX:_0x480aed,endY:_0x36f0e5}=_0x632add,_0x2eb005=_0x480aed-_0x2e1498,_0x51e611=_0x36f0e5-_0x3eef64;return new he(_0xdb3156,{'labelPosition':_0x3eef64-_0x1ca623>=0x14?_0x448e8a(0x32d):'bottom','sheetID':_0xc8d5e3,'range':_0xde05ac,'color':_0x44e699,'name':_0xdb3156,'selection':_0x31d09b,'left':_0x2e1498,'top':_0x3eef64,'width':_0x2eb005,'height':_0x51e611,'evented':!0x1,'zIndex':0x1389});});_0x5a5f1a[_0x3da0bc(0x398)](_0x6401b2,0x1),this[_0x3da0bc(0x141)]=new Set(_0x6401b2);}[_0x409fb3(0x2c4)](){const _0x1cf1bf=_0x409fb3;var _0x4b7fa3;(_0x4b7fa3=this[_0x1cf1bf(0x141)])==null||_0x4b7fa3[_0x1cf1bf(0x2e3)](_0x248ea0=>_0x248ea0[_0x1cf1bf(0x2c8)]());}[_0x409fb3(0x2da)](){const _0x583d2b=_0x409fb3;return(0x0,_[_0x583d2b(0x3cd)])(this[_0x583d2b(0x317)]['unit'],this['_context']);}};I=S([x(0x1,(0x0,t[_0x409fb3(0x329)])(_[_0x409fb3(0x3bc)])),x(0x2,(0x0,t['Inject'])(A)),x(0x3,(0x0,t['Inject'])(t[_0x409fb3(0x188)]))],I);function ge(_0x1df6cb){const _0x2b19c5=_0x409fb3;let _0x2d3c80=new Map();return _0x1df6cb[_0x2b19c5(0x2e3)](_0x16d649=>{const _0x4dcbf0=_0x2b19c5;if(_0x2d3c80[_0x4dcbf0(0x1e0)](_0x16d649[_0x4dcbf0(0x39d)])){let _0x3d36f2=_0x2d3c80['get'](_0x16d649[_0x4dcbf0(0x39d)]);_0x3d36f2[_0x4dcbf0(0x166)]+=',\x20'+_0x16d649[_0x4dcbf0(0x166)];}else _0x2d3c80[_0x4dcbf0(0x16b)](_0x16d649[_0x4dcbf0(0x39d)],_0x16d649);}),Array[_0x2b19c5(0x416)](_0x2d3c80['values']());}function L(_0x1eaaba){return typeof _0x1eaaba=='object'&&!!_0x1eaaba;}function _e(_0x3f6cc8){const _0x2fd744=_0x409fb3;return _0x3f6cc8[_0x2fd744(0x3ac)]===l[_0x2fd744(0x299)][_0x2fd744(0x150)]&&_0x2fd744(0x276)in _0x3f6cc8&&L(_0x3f6cc8[_0x2fd744(0x276)])&&typeof _0x3f6cc8[_0x2fd744(0x276)][_0x2fd744(0x2bb)]==_0x2fd744(0x437)&&typeof _0x3f6cc8[_0x2fd744(0x276)]['selection']==_0x2fd744(0x437);}function ve(_0x1d7823){const _0x27172a=_0x409fb3;return _0x1d7823[_0x27172a(0x3ac)]===l['CollaborationEvent'][_0x27172a(0x320)]&&_0x27172a(0x276)in _0x1d7823&&L(_0x1d7823['data'])&&typeof _0x1d7823[_0x27172a(0x276)]['memberID']==_0x27172a(0x437);}function ye(_0xc911ab,_0x5e7bde){const _0x55e422=_0x409fb3;let _0x28b8b1;try{_0x28b8b1=JSON[_0x55e422(0x3eb)](_0xc911ab);}catch{return null;}if(!L(_0x28b8b1)||typeof _0x28b8b1[_0x55e422(0x342)]!=_0x55e422(0x437)||typeof _0x28b8b1[_0x55e422(0x312)]!=_0x55e422(0x437)||typeof _0x28b8b1[_0x55e422(0x216)]!=_0x55e422(0x437))return null;let _0x232994=typeof _0x28b8b1[_0x55e422(0x2c9)]==_0x55e422(0x236)?_0x28b8b1[_0x55e422(0x2c9)]:_0x5e7bde;if(_0x232994==null)return null;let _0x42f4b0=L(_0x28b8b1[_0x55e422(0x231)])&&typeof _0x28b8b1[_0x55e422(0x231)]['x']==_0x55e422(0x236)&&Number[_0x55e422(0x433)](_0x28b8b1[_0x55e422(0x231)]['x'])&&typeof _0x28b8b1['pointer']['y']==_0x55e422(0x236)&&Number[_0x55e422(0x433)](_0x28b8b1[_0x55e422(0x231)]['y'])?{'x':_0x28b8b1[_0x55e422(0x231)]['x'],'y':_0x28b8b1[_0x55e422(0x231)]['y']}:null;return{'kind':_0x28b8b1['kind'],'unitType':_0x232994,'unitId':_0x28b8b1[_0x55e422(0x312)],'subUnitId':_0x28b8b1['subUnitId'],'selectedIds':Array[_0x55e422(0x1b0)](_0x28b8b1[_0x55e422(0x359)])?_0x28b8b1['selectedIds'][_0x55e422(0x232)](_0x504e2a=>typeof _0x504e2a=='string'):[],'focusedId':typeof _0x28b8b1['focusedId']==_0x55e422(0x437)?_0x28b8b1['focusedId']:null,'pointer':_0x42f4b0};}function be(_0x58a7e4,_0x8966b9,_0x41b18b){const _0x5337d0=_0x409fb3;return{'kind':_0x8966b9,'unitType':_0x58a7e4,'unitId':_0x41b18b[_0x5337d0(0x312)],'subUnitId':_0x41b18b[_0x5337d0(0x216)],'selectedIds':Array[_0x5337d0(0x416)](_0x41b18b[_0x5337d0(0x359)]),'focusedId':_0x41b18b[_0x5337d0(0x24e)],'pointer':_0x41b18b[_0x5337d0(0x231)]?{..._0x41b18b[_0x5337d0(0x231)]}:null};}let R=class extends t[_0x409fb3(0x184)]{constructor(_0x421800,_0x49924b,_0x28b8d6,_0x4e9ceb,_0x4db2ed,_0x40ea27){const _0xb010be=_0x409fb3;super(),this[_0xb010be(0x312)]=_0x421800,this[_0xb010be(0x2f4)]=_0x49924b,this['_adapter']=_0x28b8d6,this[_0xb010be(0x2e5)]=_0x4e9ceb,this[_0xb010be(0x164)]=_0x4db2ed,this[_0xb010be(0x26a)]=_0x40ea27,b(this,_0xb010be(0x1c5),!0x1),b(this,_0xb010be(0x13d),!0x1);}get[_0x409fb3(0x2c9)](){const _0x276a7c=_0x409fb3;return this[_0x276a7c(0x1bd)][_0x276a7c(0x2c9)];}[_0x409fb3(0x2c8)](){const _0x1ef759=_0x409fb3;this[_0x1ef759(0x1e2)](),super[_0x1ef759(0x2c8)]();}[_0x409fb3(0x181)](){const _0x8900f9=_0x409fb3;this[_0x8900f9(0x13d)]||(this[_0x8900f9(0x13d)]=!0x0,this['_session'][_0x8900f9(0x254)][_0x8900f9(0x423)]((0x0,r[_0x8900f9(0x24c)])(this[_0x8900f9(0x3bd)]))[_0x8900f9(0x1ac)](_0x181038=>{const _0xf75330=_0x8900f9;if(_0x181038===e[_0xf75330(0x355)][_0xf75330(0x147)]){this[_0xf75330(0x1c5)]=!0x0;let _0x2e64a1=this[_0xf75330(0x1bd)][_0xf75330(0x2f9)](this[_0xf75330(0x312)]);_0x2e64a1&&this['_sendLocalPresence'](_0x2e64a1);return;}this[_0xf75330(0x1c5)]=!0x1,this[_0xf75330(0x1e2)]();}),this[_0x8900f9(0x2f4)]['event$']['pipe']((0x0,r[_0x8900f9(0x24c)])(this[_0x8900f9(0x3bd)]))['subscribe'](_0xe714f8=>{const _0x4b6719=_0x8900f9;_e(_0xe714f8)?this['_handleCursorUpdate'](_0xe714f8):ve(_0xe714f8)&&this[_0x4b6719(0x1e9)](_0xe714f8['data'][_0x4b6719(0x2bb)]);}),this[_0x8900f9(0x1bd)]['localPresence$'][_0x8900f9(0x423)]((0x0,r['filter'])(_0x6a806e=>this[_0x8900f9(0x1c5)]&&_0x6a806e[_0x8900f9(0x312)]===this[_0x8900f9(0x312)]),(0x0,r[_0x8900f9(0x41b)])(_0x548676=>(0x0,r[_0x8900f9(0x20b)])(_0x548676[_0x8900f9(0x145)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x8900f9(0x24c)])(this[_0x8900f9(0x3bd)]))[_0x8900f9(0x1ac)](_0x301be5=>this[_0x8900f9(0x136)](_0x301be5)));}[_0x409fb3(0x136)](_0x105c98){const _0x470811=_0x409fb3;let _0x417524=this['_session']['getMemberID']();if(!_0x417524||!this['_online'])return;let _0x5190c9={'eventID':l[_0x470811(0x299)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x470811(0x312)],'memberID':_0x417524,'selection':JSON[_0x470811(0x32f)](be(this[_0x470811(0x2c9)],this[_0x470811(0x1bd)][_0x470811(0x2aa)],_0x105c98))}};this[_0x470811(0x2f4)][_0x470811(0x13b)](_0x5190c9,this['unitId'])[_0x470811(0x16f)](()=>void 0x0);}['_handleCursorUpdate'](_0x28e539){const _0x24074a=_0x409fb3;let {memberID:_0x26434d,selection:_0x1ce414}=_0x28e539[_0x24074a(0x276)];if(_0x26434d===this['_session'][_0x24074a(0x3d6)]())return;let _0x157473=ye(_0x1ce414,this['unitType']);if(!_0x157473||_0x157473[_0x24074a(0x342)]!==this['_adapter'][_0x24074a(0x2aa)]||_0x157473[_0x24074a(0x2c9)]!==this[_0x24074a(0x2c9)]||_0x157473[_0x24074a(0x312)]!==this[_0x24074a(0x312)])return;let _0xc8321b=this[_0x24074a(0x164)][_0x24074a(0x2cd)](this[_0x24074a(0x312)],_0x26434d),_0x36cc88={'unitId':_0x157473[_0x24074a(0x312)],'subUnitId':_0x157473[_0x24074a(0x216)],'selectedIds':_0x157473['selectedIds'],'focusedId':_0x157473[_0x24074a(0x24e)],'pointer':_0x157473[_0x24074a(0x231)],'memberId':_0x26434d,'color':this['_colorAssignService'][_0x24074a(0x30a)](_0x26434d),'name':(_0xc8321b==null?void 0x0:_0xc8321b[_0x24074a(0x166)])??_0x26434d};this[_0x24074a(0x26a)][_0x24074a(0x1b7)](w['id'],{'unitType':this[_0x24074a(0x2c9)],'update':{'type':_0x24074a(0x16b),'state':_0x36cc88}})[_0x24074a(0x16f)](()=>void 0x0);}[_0x409fb3(0x1e9)](_0x52b013){const _0x53f3b7=_0x409fb3;this['_commandService']['executeCommand'](w['id'],{'unitType':this['unitType'],'update':{'type':_0x53f3b7(0x307),'unitId':this[_0x53f3b7(0x312)],'memberId':_0x52b013}})[_0x53f3b7(0x16f)](()=>void 0x0);}[_0x409fb3(0x1e2)](){const _0xc5ae82=_0x409fb3;this['_commandService'][_0xc5ae82(0x1b7)](w['id'],{'unitType':this[_0xc5ae82(0x2c9)],'update':{'type':'clear','unitId':this[_0xc5ae82(0x312)]}})[_0xc5ae82(0x16f)](()=>void 0x0);}};R=S([x(0x3,(0x0,t['Inject'])(E)),x(0x4,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x257)])),x(0x5,(0x0,t[_0x409fb3(0x329)])(t['ICommandService']))],R);let z=class extends t[_0x409fb3(0x184)]{constructor(_0x273c65,_0x1c6dc0,_0x461be2,_0x1dac29){const _0x568193=_0x409fb3;super(),this[_0x568193(0x1ce)]=_0x273c65,this[_0x568193(0x381)]=_0x1c6dc0,this[_0x568193(0x2ef)]=_0x461be2,this['_adapterRegistry']=_0x1dac29,b(this,_0x568193(0x24b),!0x1),b(this,_0x568193(0x15c),new Map()),b(this,_0x568193(0x3df),new Map()),b(this,'_adapterDisposables',new Map()),this[_0x568193(0x1c6)]();}['dispose'](){const _0x26be80=_0x409fb3;this[_0x26be80(0x24b)]=!0x0,this[_0x26be80(0x213)][_0x26be80(0x2e3)](_0x4f62e0=>_0x4f62e0[_0x26be80(0x2c8)]()),this['_adapterDisposables'][_0x26be80(0x365)](),this[_0x26be80(0x15c)]['forEach'](_0x5328e8=>_0x5328e8[_0x26be80(0x2c8)]()),this[_0x26be80(0x15c)][_0x26be80(0x365)](),this[_0x26be80(0x3df)]['clear'](),super['dispose']();}['_init'](){const _0x531630=_0x409fb3;this[_0x531630(0x360)][_0x531630(0x306)]['pipe']((0x0,r['takeUntil'])(this['dispose$']))['subscribe'](_0xf65dfc=>this[_0x531630(0x16c)](_0xf65dfc));}[_0x409fb3(0x16c)](_0x1b17ee){const _0xd9b927=_0x409fb3;let _0x380b3d=new Set(_0x1b17ee['map'](_0x9ea3c0=>_0x9ea3c0[_0xd9b927(0x2c9)]));this['_adapterDisposables'][_0xd9b927(0x2e3)]((_0x15f222,_0x412ed5)=>{const _0x19ebc5=_0xd9b927;_0x380b3d['has'](_0x412ed5)||(_0x15f222[_0x19ebc5(0x2c8)](),this[_0x19ebc5(0x213)][_0x19ebc5(0x205)](_0x412ed5),this[_0x19ebc5(0x410)](_0x412ed5));}),_0x1b17ee[_0xd9b927(0x2e3)](_0x112cd5=>{const _0xdb2c21=_0xd9b927;this[_0xdb2c21(0x213)][_0xdb2c21(0x1e0)](_0x112cd5[_0xdb2c21(0x2c9)])||this[_0xdb2c21(0x40d)](_0x112cd5);});}[_0x409fb3(0x40d)](_0x5c333f){const _0x1f0c7a=_0x409fb3;let _0x3952ec=new t['DisposableCollection']();this[_0x1f0c7a(0x213)][_0x1f0c7a(0x16b)](_0x5c333f[_0x1f0c7a(0x2c9)],_0x3952ec),_0x3952ec[_0x1f0c7a(0x2ce)](_0x5c333f[_0x1f0c7a(0x29d)]()),this['_univerInstanceService'][_0x1f0c7a(0x2b9)](_0x5c333f[_0x1f0c7a(0x2c9)])[_0x1f0c7a(0x2e3)](_0x1c1d1d=>this[_0x1f0c7a(0x3fb)](_0x1c1d1d[_0x1f0c7a(0x3ba)](),_0x5c333f)[_0x1f0c7a(0x16f)](()=>void 0x0));let _0x4ed4df=this[_0x1f0c7a(0x1ce)]['getTypeOfUnitAdded$'](_0x5c333f[_0x1f0c7a(0x2c9)])[_0x1f0c7a(0x1ac)](({unit:_0x3ec3b2})=>this[_0x1f0c7a(0x3fb)](_0x3ec3b2[_0x1f0c7a(0x3ba)](),_0x5c333f)[_0x1f0c7a(0x16f)](()=>void 0x0));_0x3952ec['add']((0x0,t['toDisposable'])(()=>_0x4ed4df[_0x1f0c7a(0x343)]()));let _0x2c6349=this['_univerInstanceService'][_0x1f0c7a(0x3d2)](_0x5c333f[_0x1f0c7a(0x2c9)])['subscribe'](_0x3f115c=>this['_disposeEntity'](_0x3f115c[_0x1f0c7a(0x3ba)]()));_0x3952ec['add']((0x0,t['toDisposable'])(()=>_0x2c6349[_0x1f0c7a(0x343)]()));}async[_0x409fb3(0x3fb)](_0x2d0bda,_0x3a812e){const _0x50d18b=_0x409fb3;if(this[_0x50d18b(0x15c)][_0x50d18b(0x1e0)](_0x2d0bda)||this['_pendingEntities'][_0x50d18b(0x1e0)](_0x2d0bda))return;let _0x1de1db={};this[_0x50d18b(0x3df)]['set'](_0x2d0bda,_0x1de1db);let _0x1b9a57=await this['_collabSessionService'][_0x50d18b(0x17a)](_0x2d0bda)[_0x50d18b(0x16f)](_0x2804d2=>{const _0x4fff72=_0x50d18b;throw this[_0x4fff72(0x3df)][_0x4fff72(0x424)](_0x2d0bda)===_0x1de1db&&this[_0x4fff72(0x3df)][_0x4fff72(0x205)](_0x2d0bda),_0x2804d2;});if(this[_0x50d18b(0x24b)]||this[_0x50d18b(0x3df)][_0x50d18b(0x424)](_0x2d0bda)!==_0x1de1db||this[_0x50d18b(0x360)][_0x50d18b(0x424)](_0x3a812e[_0x50d18b(0x2c9)])!==_0x3a812e){this[_0x50d18b(0x3df)][_0x50d18b(0x424)](_0x2d0bda)===_0x1de1db&&this[_0x50d18b(0x3df)][_0x50d18b(0x205)](_0x2d0bda);return;}let _0x2f888d=this[_0x50d18b(0x381)][_0x50d18b(0x36d)](R,_0x2d0bda,_0x1b9a57,_0x3a812e);_0x2f888d[_0x50d18b(0x181)](),this[_0x50d18b(0x3df)][_0x50d18b(0x205)](_0x2d0bda),this[_0x50d18b(0x15c)]['set'](_0x2d0bda,_0x2f888d);}[_0x409fb3(0x3b0)](_0x12ad85){const _0x75ee8f=_0x409fb3;this[_0x75ee8f(0x3df)][_0x75ee8f(0x205)](_0x12ad85);let _0x4d4a46=this[_0x75ee8f(0x15c)]['get'](_0x12ad85);_0x4d4a46&&(_0x4d4a46[_0x75ee8f(0x2c8)](),this['_entities'][_0x75ee8f(0x205)](_0x12ad85));}[_0x409fb3(0x410)](_0x49205d){const _0x42a2b2=_0x409fb3;this[_0x42a2b2(0x1ce)][_0x42a2b2(0x2b9)](_0x49205d)[_0x42a2b2(0x2e3)](_0x529510=>this[_0x42a2b2(0x3df)]['delete'](_0x529510[_0x42a2b2(0x3ba)]())),Array[_0x42a2b2(0x416)](this[_0x42a2b2(0x15c)][_0x42a2b2(0x401)]())[_0x42a2b2(0x2e3)](([_0x9886ec,_0x1cf626])=>{const _0x14a5f8=_0x42a2b2;_0x1cf626[_0x14a5f8(0x2c9)]===_0x49205d&&this['_disposeEntity'](_0x9886ec);});}};z=S([x(0x0,t[_0x409fb3(0x21b)]),x(0x1,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x2,(0x0,t['Inject'])(e[_0x409fb3(0x207)])),x(0x3,(0x0,t[_0x409fb3(0x329)])(n[_0x409fb3(0x275)]))],z);let B=class extends t[_0x409fb3(0x277)]{constructor(_0x12b23e,_0x292aca,_0x376f4f,_0x284576,_0x269959,_0x234a74){const _0x343774=_0x409fb3;super(),this[_0x343774(0x23a)]=_0x12b23e,this[_0x343774(0x17f)]=_0x292aca,this[_0x343774(0x3e3)]=_0x376f4f,this[_0x343774(0x178)]=_0x284576,this['_notificationService']=_0x269959,this[_0x343774(0x429)]=_0x234a74,b(this,_0x343774(0x209),null),b(this,_0x343774(0x3a6),new Set()),this[_0x343774(0x21f)](),this['_initEvent']();}[_0x409fb3(0x2c8)](){const _0x592149=_0x409fb3;var _0x3a42b3;(_0x3a42b3=this[_0x592149(0x209)])==null||_0x3a42b3[_0x592149(0x2c8)](),this[_0x592149(0x209)]=null,super['dispose']();}['_setupBeforeClosingHandler'](){const _0x22331e=_0x409fb3;this['disposeWithMe'](this[_0x22331e(0x23a)][_0x22331e(0x2fb)](()=>{const _0x1ac3ba=_0x22331e;if(this[_0x1ac3ba(0x17f)][_0x1ac3ba(0x346)][_0x1ac3ba(0x153)])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x409fb3(0x26d)](){const _0x48f1fe=_0x409fb3;this[_0x48f1fe(0x415)](this[_0x48f1fe(0x3e3)]['event$'][_0x48f1fe(0x1ac)](_0x2d12bb=>{const _0x3edfe1=_0x48f1fe;_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x411)]&&this[_0x3edfe1(0x178)]['show']({'type':a[_0x3edfe1(0x39e)]['Warning'],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x435))}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x31a)]&&this[_0x3edfe1(0x178)][_0x3edfe1(0x2a3)]({'type':a[_0x3edfe1(0x39e)]['Warning'],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x30f))}),_0x2d12bb['id']===e['CollaborationUIEventId'][_0x3edfe1(0x2b8)]&&this[_0x3edfe1(0x2b5)]({'title':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x22a)),'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x241)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x2dc)),'onClick':_0x2fd5be=>{const _0x361cb7=_0x3edfe1;_0x2fd5be['preventDefault'](),window['location'][_0x361cb7(0x154)]();}}}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x20c)]&&this[_0x3edfe1(0x374)](),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x20e)]&&_0x2d12bb[_0x3edfe1(0x172)]&&this['_showConflictCacheClearFailedNotification'](_0x2d12bb[_0x3edfe1(0x172)]),_0x2d12bb['id']===e['CollaborationUIEventId'][_0x3edfe1(0x1dc)]&&this[_0x3edfe1(0x2b5)]({'title':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x35c)),'content':this[_0x3edfe1(0x429)]['t']('collaboration-client-ui.conflict.content'),'type':_0x3edfe1(0x3ff),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x2dc)),'onClick':_0x3c3c28=>{const _0x563654=_0x3edfe1;_0x3c3c28[_0x563654(0x3fd)](),window[_0x563654(0x1d2)][_0x563654(0x154)]();}}}),_0x2d12bb['id']===e[_0x3edfe1(0x367)]['JOIN_ROOM_FAILED']&&this[_0x3edfe1(0x178)][_0x3edfe1(0x2a3)]({'type':a[_0x3edfe1(0x39e)][_0x3edfe1(0x325)],'content':this[_0x3edfe1(0x429)]['t'](_0x2d12bb[_0x3edfe1(0x276)]||'')}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x291)]&&this[_0x3edfe1(0x178)][_0x3edfe1(0x2a3)]({'type':a[_0x3edfe1(0x39e)]['Warning'],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x3a1))}),_0x2d12bb['id']===e[_0x3edfe1(0x367)][_0x3edfe1(0x388)]&&this[_0x3edfe1(0x178)]['show']({'type':a['MessageType'][_0x3edfe1(0x1ef)],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x135))}),_0x2d12bb['id']===e['CollaborationUIEventId'][_0x3edfe1(0x194)]&&this['_messageService']['show']({'type':a[_0x3edfe1(0x39e)][_0x3edfe1(0x1ef)],'content':this[_0x3edfe1(0x429)]['t'](_0x3edfe1(0x134))});}));}[_0x409fb3(0x374)](){const _0x2a9697=_0x409fb3;this[_0x2a9697(0x2b5)]({'title':this[_0x2a9697(0x429)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x2a9697(0x429)]['t'](_0x2a9697(0x1bf)),'type':_0x2a9697(0x28a),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x27914f){const _0x2c1d36=_0x409fb3;this[_0x2c1d36(0x2b5)]({'title':this[_0x2c1d36(0x429)]['t']('collaboration-client-ui.conflict.title'),'content':this['_localeService']['t'](_0x2c1d36(0x2f2)),'type':_0x2c1d36(0x3ff),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x2a56bc=>{const _0x18a2dd=_0x2c1d36;_0x2a56bc[_0x18a2dd(0x3fd)](),this[_0x18a2dd(0x2cf)](_0x27914f);}}});}['_retryConflictCacheClear'](_0x3bd307){const _0x5a3047=_0x409fb3;this['_retryingConflictCacheUnitIDs'][_0x5a3047(0x1e0)](_0x3bd307)||(this[_0x5a3047(0x3a6)]['add'](_0x3bd307),this[_0x5a3047(0x374)](),this[_0x5a3047(0x17f)][_0x5a3047(0x200)](_0x3bd307)[_0x5a3047(0x1d6)](()=>window[_0x5a3047(0x1d2)][_0x5a3047(0x154)]())[_0x5a3047(0x16f)](()=>this['_showConflictCacheClearFailedNotification'](_0x3bd307))[_0x5a3047(0x1aa)](()=>this[_0x5a3047(0x3a6)][_0x5a3047(0x205)](_0x3bd307)));}[_0x409fb3(0x2b5)](_0xa80e6c){const _0x585094=_0x409fb3;var _0x36040c;(_0x36040c=this[_0x585094(0x209)])==null||_0x36040c[_0x585094(0x2c8)](),this[_0x585094(0x209)]=this[_0x585094(0x336)]['show'](_0xa80e6c);}};B=S([x(0x0,n[_0x409fb3(0x25d)]),x(0x1,e[_0x409fb3(0x14c)]),x(0x2,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x23f)])),x(0x3,n[_0x409fb3(0x3f1)]),x(0x4,n[_0x409fb3(0x386)]),x(0x5,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x292)]))],B);const V=(0x0,t['createIdentifier'])(_0x409fb3(0x3a3));let H=class extends t[_0x409fb3(0x184)]{constructor(_0x109ad0,_0x438ed5,_0x3bc153,_0x47af16){const _0x2166ab=_0x409fb3;super(),this[_0x2166ab(0x1b9)]=_0x109ad0,this[_0x2166ab(0x252)]=_0x438ed5,this[_0x2166ab(0x26a)]=_0x3bc153,this[_0x2166ab(0x384)]=_0x47af16,this[_0x2166ab(0x1c6)]()[_0x2166ab(0x16f)](_0x543dd9=>this[_0x2166ab(0x252)][_0x2166ab(0x3ff)]('[CollaborationDataLoaderController]',_0x543dd9));}async[_0x409fb3(0x1c6)](){const _0x5d240d=_0x409fb3;let _0x5baa62=this[_0x5d240d(0x1b9)]['getParam']('unit'),_0x29e066=this[_0x5d240d(0x1b9)][_0x5d240d(0x143)](_0x5d240d(0x3b7)),_0x54976d=this[_0x5d240d(0x1b9)][_0x5d240d(0x143)](_0x5d240d(0x328));if(!_0x5baa62||!_0x29e066){this[_0x5d240d(0x252)][_0x5d240d(0x185)](_0x5d240d(0x3d4),_0x5d240d(0x165));return;}let _0x180fca=await this[_0x5d240d(0x384)][_0x5d240d(0x256)](_0x5baa62,Number(_0x29e066),_0x54976d);this['_disposed']||_0x180fca&&_0x180fca instanceof t[_0x5d240d(0x334)]&&await this[_0x5d240d(0x223)](_0x180fca);}async[_0x409fb3(0x223)](_0x1f62c7){const _0x14611c=_0x409fb3;await this[_0x14611c(0x41d)](_0x1f62c7,!0x0),!this[_0x14611c(0x278)]&&(_0x1f62c7[_0x14611c(0x2d3)][_0x14611c(0x423)]((0x0,r[_0x14611c(0x24c)])(this[_0x14611c(0x3bd)]))[_0x14611c(0x1ac)](_0x23219d=>{_0x23219d&&this['_updateURLWithCurrentState'](_0x23219d);}),this[_0x14611c(0x1b9)][_0x14611c(0x3ee)][_0x14611c(0x423)]((0x0,r[_0x14611c(0x24c)])(this[_0x14611c(0x3bd)]))[_0x14611c(0x1ac)](()=>{const _0x5a59d6=_0x14611c;this[_0x5a59d6(0x41d)](_0x1f62c7)['catch'](_0x263e53=>this[_0x5a59d6(0x252)][_0x5a59d6(0x3ff)](_0x5a59d6(0x3d4),_0x263e53));}));}['_updateURLWithCurrentState'](_0x362f11,_0x1fa104=!0x1){const _0x3b3dbf=_0x409fb3;let _0x22a0c8=this[_0x3b3dbf(0x1b9)][_0x3b3dbf(0x143)]('subunit');_0x362f11[_0x3b3dbf(0x38d)]()!==_0x22a0c8&&this[_0x3b3dbf(0x1b9)]['setParam'](_0x3b3dbf(0x328),_0x362f11[_0x3b3dbf(0x38d)](),_0x1fa104);}async[_0x409fb3(0x41d)](_0x2ec84f,_0x3d1f49=!0x1){const _0x32eeca=_0x409fb3;var _0xeb3130;let _0x18d9ad=this[_0x32eeca(0x1b9)][_0x32eeca(0x143)](_0x32eeca(0x328));if(!_0x18d9ad||!_0x2ec84f[_0x32eeca(0x2ca)](_0x18d9ad)){let _0x4c21a4=_0x2ec84f['getUnhiddenWorksheets']()[0x0],_0x25408b=_0x2ec84f[_0x32eeca(0x2ca)](_0x4c21a4);if(!_0x25408b||(this['_updateURLWithCurrentState'](_0x25408b,!0x0),this['_disposed']))return;await this[_0x32eeca(0x26a)][_0x32eeca(0x1b7)](g[_0x32eeca(0x14e)]['id'],{'unitId':_0x2ec84f[_0x32eeca(0x3ba)](),'subUnitId':_0x4c21a4});return;}(_0x3d1f49||((_0xeb3130=_0x2ec84f[_0x32eeca(0x1b2)]())==null?void 0x0:_0xeb3130[_0x32eeca(0x38d)]())!==_0x18d9ad)&&await this[_0x32eeca(0x26a)][_0x32eeca(0x1b7)](g[_0x32eeca(0x14e)]['id'],{'unitId':_0x2ec84f[_0x32eeca(0x3ba)](),'subUnitId':_0x18d9ad});}};H=S([x(0x0,V),x(0x1,t['ILogService']),x(0x2,t[_0x409fb3(0x228)]),x(0x3,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x1c4)]))],H);let U=class{constructor(_0x4b13f1,_0x2c0448){const _0x4a0c17=_0x409fb3;this['_transformService']=_0x4b13f1,this[_0x4a0c17(0x2a4)]=_0x2c0448;}[_0x409fb3(0x39a)](_0x4b2fba){const _0x17de12=_0x409fb3;this[_0x17de12(0x197)](_0x4b2fba),this[_0x17de12(0x288)](_0x4b2fba);}['transformRemoteChangeset'](_0x186957){const _0x442b9c=_0x409fb3;let {unitID:_0x24afac}=_0x186957,{redoCache:_0x2ccb7a}=this[_0x442b9c(0x2a4)][_0x442b9c(0x250)](_0x24afac)['with'](f[_0x442b9c(0x3ce)])[_0x442b9c(0x371)]();if(_0x2ccb7a[_0x442b9c(0x1fa)]===0x0)return _0x186957;let _0x33cb5c=t[_0x442b9c(0x29e)][_0x442b9c(0x1e7)](_0x186957[_0x442b9c(0x267)][0x0]);for(let _0x275911=0x0;_0x275911<_0x2ccb7a[_0x442b9c(0x1fa)];_0x275911++){let _0x3147e0={'id':'doc.mutation.rich-text-editing','params':{..._0x2ccb7a[_0x275911]}},_0x3ba285=this[_0x442b9c(0x212)][_0x442b9c(0x38a)](_0x33cb5c,_0x3147e0,!0x1);if((0x0,l[_0x442b9c(0x13e)])(_0x3ba285))throw _0x3ba285[_0x442b9c(0x3ff)];_0x33cb5c=_0x3ba285[_0x442b9c(0x1fe)];}return{...t[_0x442b9c(0x29e)][_0x442b9c(0x1e7)](_0x186957),'mutations':[_0x33cb5c]};}['_transformUndoRedoStack'](_0x36fb77){const _0x1f0b20=_0x409fb3;let {unitID:_0x57763c}=_0x36fb77,_0x55ba36=this['_renderManagerService'][_0x1f0b20(0x250)](_0x57763c)[_0x1f0b20(0x383)](f[_0x1f0b20(0x3ce)]),{undoCache:_0x269249,redoCache:_0x49eb59}=_0x55ba36[_0x1f0b20(0x371)]();if(_0x269249[_0x1f0b20(0x1fa)]===0x0||_0x49eb59[_0x1f0b20(0x1fa)]===0x0)return;let _0x40e62=[],_0x47d26c=[],_0x318793=t[_0x1f0b20(0x29e)][_0x1f0b20(0x1e7)](_0x36fb77[_0x1f0b20(0x267)][0x0]),_0x293928=t['Tools']['deepClone'](_0x36fb77[_0x1f0b20(0x267)][0x0]);for(let _0x828de0=_0x269249[_0x1f0b20(0x1fa)]-0x1;_0x828de0>=0x0;_0x828de0--){let _0x4c62d1={'id':_0x1f0b20(0x2ba),'params':{..._0x269249[_0x828de0]}},_0x3ee23c={'id':_0x1f0b20(0x2ba),'params':{..._0x49eb59[_0x828de0]}},_0x13e940=this[_0x1f0b20(0x212)][_0x1f0b20(0x38a)](_0x318793,_0x4c62d1,!0x1),_0x393f8d=this['_transformService']['transformMutation'](_0x293928,_0x3ee23c,!0x1);if((0x0,l[_0x1f0b20(0x13e)])(_0x13e940))throw _0x13e940[_0x1f0b20(0x3ff)];if((0x0,l[_0x1f0b20(0x13e)])(_0x393f8d))throw _0x393f8d['error'];_0x40e62[_0x1f0b20(0x26b)](_0x13e940['m2Prime'][_0x1f0b20(0x1ee)]),_0x47d26c[_0x1f0b20(0x26b)](_0x393f8d[_0x1f0b20(0x3c5)][_0x1f0b20(0x1ee)]),_0x318793=_0x13e940['m1Prime'],_0x293928=_0x393f8d[_0x1f0b20(0x1fe)];}_0x55ba36[_0x1f0b20(0x3d0)]({'undoCache':_0x40e62,'redoCache':_0x47d26c});}[_0x409fb3(0x288)](_0x1bb4f0){const _0x184462=_0x409fb3;let {unitID:_0x2feb49}=_0x1bb4f0,_0x5abcf4=this[_0x184462(0x2a4)]['getRenderUnitById'](_0x2feb49)[_0x184462(0x383)](f[_0x184462(0x3ce)]),_0x4226dd=_0x5abcf4[_0x184462(0x34e)]();if(_0x4226dd==null)return;let _0x5079c7=[{'id':_0x184462(0x2ba),'params':{'unitId':_0x1bb4f0[_0x184462(0x172)],'actions':null,'textRanges':[_0x4226dd]}}],_0x4574f5=this[_0x184462(0x212)][_0x184462(0x42e)](_0x1bb4f0,_0x5079c7);if(!(0x0,l[_0x184462(0x2d7)])(_0x4574f5))throw _0x4574f5[_0x184462(0x3ff)];let _0x57ea83=_0x4574f5[_0x184462(0x3c5)][0x0][_0x184462(0x1ee)][_0x184462(0x308)];Array[_0x184462(0x1b0)](_0x57ea83)&&_0x57ea83['length']&&_0x5abcf4[_0x184462(0x215)](_0x57ea83[0x0]);}};U=S([x(0x0,l['ITransformService']),x(0x1,p[_0x409fb3(0x210)])],U);let W=class{constructor(_0x2ee770,_0x5bf84c,_0x219fbf){const _0x47eaac=_0x409fb3;this[_0x47eaac(0x381)]=_0x2ee770,this['_transformService']=_0x5bf84c,this['_docStateChangeManagerService']=_0x219fbf;}[_0x409fb3(0x179)](_0x14373b){this['_transformHistoryAndStateStack'](_0x14373b);}[_0x409fb3(0x29c)](_0x19b1b4){const _0xfefb9e=_0x409fb3;let {unitID:_0x375b65}=_0x19b1b4,{collaboration:_0x3ab8ca}=this['_docStateChangeManagerService'][_0xfefb9e(0x417)](_0x375b65);if(_0x3ab8ca[_0xfefb9e(0x1fa)]===0x0)return _0x19b1b4;let _0x175400=t[_0xfefb9e(0x29e)][_0xfefb9e(0x1e7)](_0x19b1b4[_0xfefb9e(0x267)][0x0]);for(let _0x1d2fb9=0x0;_0x1d2fb9<_0x3ab8ca[_0xfefb9e(0x1fa)];_0x1d2fb9++){let _0x23187d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3ab8ca[_0x1d2fb9][_0xfefb9e(0x312)],..._0x3ab8ca[_0x1d2fb9][_0xfefb9e(0x1db)]}},_0x28bae7=this[_0xfefb9e(0x212)][_0xfefb9e(0x38a)](_0x175400,_0x23187d,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x28bae7))throw _0x28bae7[_0xfefb9e(0x3ff)];_0x175400=_0x28bae7['m1Prime'];}return{...t[_0xfefb9e(0x29e)]['deepClone'](_0x19b1b4),'mutations':[_0x175400]};}[_0x409fb3(0x218)](_0x374003){const _0x5325c8=_0x409fb3;let {unitID:_0x34999d}=_0x374003,{history:_0x35a81b,collaboration:_0x118966}=this[_0x5325c8(0x432)][_0x5325c8(0x417)](_0x34999d);if(_0x35a81b['length']===0x0&&_0x118966[_0x5325c8(0x1fa)]===0x0)return;let _0x4ffb64=[],_0x3f6c19=[],_0x1ddfb3=t['Tools'][_0x5325c8(0x1e7)](_0x374003[_0x5325c8(0x267)][0x0]),_0x4b9049=t[_0x5325c8(0x29e)][_0x5325c8(0x1e7)](_0x374003[_0x5325c8(0x267)][0x0]);for(let _0x82cb63=_0x35a81b[_0x5325c8(0x1fa)]-0x1;_0x82cb63>=0x0;_0x82cb63--){let _0x2452a8={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x35a81b[_0x82cb63][_0x5325c8(0x312)],..._0x35a81b[_0x82cb63][_0x5325c8(0x244)]}},_0x30a50a={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x35a81b[_0x82cb63][_0x5325c8(0x312)],..._0x35a81b[_0x82cb63]['redoState']}},_0x3f6210=this[_0x5325c8(0x212)][_0x5325c8(0x38a)](_0x1ddfb3,_0x2452a8,!0x1),_0x734fa9=this[_0x5325c8(0x212)][_0x5325c8(0x38a)](_0x4b9049,_0x30a50a,!0x1);if((0x0,l[_0x5325c8(0x13e)])(_0x3f6210))throw _0x3f6210['error'];if((0x0,l[_0x5325c8(0x13e)])(_0x734fa9))throw _0x734fa9['error'];_0x4ffb64[_0x5325c8(0x26b)]({..._0x35a81b[_0x82cb63],'undoState':_0x3f6210[_0x5325c8(0x3c5)]['params'],'redoState':_0x734fa9['m2Prime'][_0x5325c8(0x1ee)]}),_0x1ddfb3=_0x3f6210[_0x5325c8(0x1fe)],_0x4b9049=_0x734fa9[_0x5325c8(0x1fe)];}_0x1ddfb3=t['Tools']['deepClone'](_0x374003[_0x5325c8(0x267)][0x0]),_0x4b9049=t[_0x5325c8(0x29e)][_0x5325c8(0x1e7)](_0x374003[_0x5325c8(0x267)][0x0]);for(let _0x8bcf50=_0x118966[_0x5325c8(0x1fa)]-0x1;_0x8bcf50>=0x0;_0x8bcf50--){let _0x254157={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x118966[_0x8bcf50]['unitId'],..._0x118966[_0x8bcf50][_0x5325c8(0x244)]}},_0x51611b={'id':_0x5325c8(0x2ba),'params':{'unitId':_0x118966[_0x8bcf50][_0x5325c8(0x312)],..._0x118966[_0x8bcf50]['redoState']}},_0x1779b9=this[_0x5325c8(0x212)][_0x5325c8(0x38a)](_0x1ddfb3,_0x254157,!0x1),_0x5dff59=this[_0x5325c8(0x212)]['transformMutation'](_0x4b9049,_0x51611b,!0x1);if((0x0,l[_0x5325c8(0x13e)])(_0x1779b9))throw _0x1779b9[_0x5325c8(0x3ff)];if((0x0,l[_0x5325c8(0x13e)])(_0x5dff59))throw _0x5dff59[_0x5325c8(0x3ff)];_0x3f6c19[_0x5325c8(0x26b)]({..._0x118966[_0x8bcf50],'undoState':_0x1779b9['m2Prime'][_0x5325c8(0x1ee)],'redoState':_0x5dff59[_0x5325c8(0x3c5)][_0x5325c8(0x1ee)]}),_0x1ddfb3=_0x1779b9[_0x5325c8(0x1fe)],_0x4b9049=_0x5dff59[_0x5325c8(0x1fe)];}this['_docStateChangeManagerService'][_0x5325c8(0x2e9)](_0x34999d,{'history':_0x4ffb64,'collaboration':_0x3f6c19});}};W=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(t['Injector'])),x(0x1,l[_0x409fb3(0x235)]),x(0x2,(0x0,t['Inject'])(d['DocStateChangeManagerService']))],W);let G=class{constructor(_0x1a46c9,_0x287cd3){const _0x2bc0ae=_0x409fb3;this['_docSelectionManagerService']=_0x1a46c9,this[_0x2bc0ae(0x212)]=_0x287cd3;}[_0x409fb3(0x2c2)](_0x863a30){const _0x549c93=_0x409fb3;var _0x3c4c89;let _0x3f6e7e=this[_0x549c93(0x284)][_0x549c93(0x293)]()??[],_0x26a8f7=this[_0x549c93(0x284)][_0x549c93(0x3c3)]();if(_0x3f6e7e[_0x549c93(0x1fa)]===0x0||_0x26a8f7==null)return null;let _0x47f106=_0x863a30['unitID'],_0x262dd3=[{'id':_0x549c93(0x2ba),'params':{'unitId':_0x47f106,'actions':null,'textRanges':_0x3f6e7e}}],_0x5b8598=this[_0x549c93(0x212)]['transformMutationsWithChangeset'](_0x863a30,_0x262dd3);if(!(0x0,l[_0x549c93(0x2d7)])(_0x5b8598))throw _0x5b8598[_0x549c93(0x3ff)];let _0x147bdc=(_0x3c4c89=_0x5b8598['m2Prime'][0x0])==null?void 0x0:_0x3c4c89[_0x549c93(0x1ee)],_0x375070=_0x147bdc&&typeof _0x147bdc==_0x549c93(0x198)&&_0x549c93(0x308)in _0x147bdc?_0x147bdc['textRanges']:null;if(!Ce(_0x375070))return null;let _0x271e71=xe(_0x863a30[_0x549c93(0x267)][_0x549c93(0x387)](_0x236674=>K(_0x236674[_0x549c93(0x1ee)]))?_0x375070[_0x549c93(0x232)](_0x10421b=>!('tableId'in _0x10421b)):_0x375070,{..._0x26a8f7,'options':_0x26a8f7['options']?{..._0x26a8f7[_0x549c93(0x203)],'wholeDocument':!0x1}:void 0x0}),_0x56c923={'unitId':_0x47f106,'subUnitId':_0x47f106};this[_0x549c93(0x284)]['replaceSelectionInfoWithoutRefresh'](_0x271e71,_0x56c923);let _0xcdf38b=!0x0;return{'commit':()=>{_0xcdf38b=!0x1;},'rollback':()=>{const _0x5577c5=_0x549c93;_0xcdf38b&&(_0xcdf38b=!0x1,this[_0x5577c5(0x284)][_0x5577c5(0x1f1)](_0x26a8f7,_0x56c923));}};}};G=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(d['DocSelectionManagerService'])),x(0x1,l[_0x409fb3(0x235)])],G);function xe(_0x58a09c,_0x5aaffd){const _0x1e0d0f=_0x409fb3;let _0x8f69bc=[],_0x30cee6=[];for(let _0x35bc43 of _0x58a09c)Se(_0x35bc43)?_0x30cee6[_0x1e0d0f(0x2df)](_0x35bc43):_0x8f69bc[_0x1e0d0f(0x2df)](_0x35bc43);return{..._0x5aaffd,'textRanges':_0x8f69bc,'rectRanges':_0x30cee6};}function Se(_0x240832){const _0x367e1d=_0x409fb3;return _0x367e1d(0x25f)in _0x240832;}function Ce(_0x3bb4fb){const _0xa652a5=_0x409fb3;return Array['isArray'](_0x3bb4fb)&&_0x3bb4fb[_0xa652a5(0x2ed)](_0x584dbf=>typeof _0x584dbf=='object'&&!!_0x584dbf&&_0xa652a5(0x35e)in _0x584dbf&&_0xa652a5(0x2c0)in _0x584dbf);}function K(_0x17550f){const _0x1bc4da=_0x409fb3;return _0x17550f===_0x1bc4da(0x229)?!0x0:Array[_0x1bc4da(0x1b0)](_0x17550f)?_0x17550f[_0x1bc4da(0x387)](_0xd10956=>K(_0xd10956)):!_0x17550f||typeof _0x17550f!=_0x1bc4da(0x198)?!0x1:Object[_0x1bc4da(0x25c)](_0x17550f)[_0x1bc4da(0x387)](_0x107028=>K(_0x107028));}let q=class extends t[_0x409fb3(0x277)]{constructor(_0x5c4ecc,_0x240c14,_0x1a2e17,_0x376e64,_0x3e3b2f,_0x16eecf,_0x3990d1){const _0x531835=_0x409fb3;super(),this[_0x531835(0x1e4)]=_0x5c4ecc,this['_docTransformIMECacheService']=_0x240c14,this[_0x531835(0x249)]=_0x1a2e17,this[_0x531835(0x1b6)]=_0x376e64,this['_docSyncEditingCollabCursorService']=_0x3e3b2f,this['_messageService']=_0x16eecf,this[_0x531835(0x429)]=_0x3990d1,b(this,'_status$',new r[(_0x531835(0x392))](e[_0x531835(0x373)]['NOT_COLLAB'])),this[_0x531835(0x2a6)]();}[_0x409fb3(0x2a6)](){const _0x59ffcb=_0x409fb3;this[_0x59ffcb(0x415)](this[_0x59ffcb(0x1e4)][_0x59ffcb(0x2a2)][_0x59ffcb(0x1ac)](_0x60ea54=>{const _0x1aeaff=_0x59ffcb;_0x60ea54 instanceof e['DocCollaborationEntity']&&_0x60ea54[_0x1aeaff(0x3aa)]({'onTransformIME':_0x260ef7=>this['_docTransformIMECacheService'][_0x1aeaff(0x39a)](_0x260ef7),'onTransformState':_0x301b0c=>this[_0x1aeaff(0x249)][_0x1aeaff(0x179)](_0x301b0c),'onPrepareTransformSelections':_0x993ee6=>this[_0x1aeaff(0x1b6)][_0x1aeaff(0x2c2)](_0x993ee6),'onSyncEditingCollabCursor':_0x3dbe36=>this[_0x1aeaff(0x310)]['syncEditingCollabCursor'](_0x3dbe36),'onTransformRemoteChangesetByIMECache':_0x6d0ebb=>this[_0x1aeaff(0x27e)][_0x1aeaff(0x29c)](_0x6d0ebb),'onTransformRemoteChangesetByStateCache':_0x2f2fe2=>this[_0x1aeaff(0x249)][_0x1aeaff(0x29c)](_0x2f2fe2)});}));}};q=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(e['CollaborationController'])),x(0x1,(0x0,t[_0x409fb3(0x329)])(U)),x(0x2,(0x0,t[_0x409fb3(0x329)])(W)),x(0x3,(0x0,t[_0x409fb3(0x329)])(G)),x(0x4,(0x0,t['Inject'])(D)),x(0x5,n['IMessageService']),x(0x6,(0x0,t[_0x409fb3(0x329)])(t['LocaleService']))],q);let J=class extends t[_0x409fb3(0x277)]{constructor(_0xf34c07,_0x823349,_0x49a594,_0xc812bf){const _0x48bd00=_0x409fb3;super(),this[_0x48bd00(0x381)]=_0xf34c07,this['_httpService']=_0x823349,this[_0x48bd00(0x252)]=_0x49a594,this[_0x48bd00(0x17c)]=_0xc812bf,b(this,'_memberID',void 0x0),this[_0x48bd00(0x1c6)]();}[_0x409fb3(0x1c6)](){const _0x48e3bb=_0x409fb3;this[_0x48e3bb(0x3e8)](),this[_0x48e3bb(0x268)](),this['_monkeyPatchLogService'](),this[_0x48e3bb(0x230)]();}[_0x409fb3(0x230)](){const _0x90b71d=_0x409fb3;this['disposeWithMe'](this['_collaborationSessionService'][_0x90b71d(0x40a)][_0x90b71d(0x1ac)](_0x55ee62=>{const _0x539662=_0x90b71d;this[_0x539662(0x149)]=_0x55ee62==null?void 0x0:_0x55ee62[_0x539662(0x2bb)];}));}[_0x409fb3(0x3e8)](){const _0x5e9a54=_0x409fb3;let _0x193abf=_0x3c485a=>{const _0x13d14d=_0x4188;var _0x5327ec;this[_0x13d14d(0x18a)]('error','[Window\x20Error]:\x20'+_0x3c485a['message']+'\x20at\x20'+_0x3c485a[_0x13d14d(0x16e)]+':'+_0x3c485a[_0x13d14d(0x2d1)]+':'+_0x3c485a[_0x13d14d(0x3b5)]+'\x0a'+(((_0x5327ec=_0x3c485a[_0x13d14d(0x3ff)])==null?void 0x0:_0x5327ec[_0x13d14d(0x2b6)])||''));};window[_0x5e9a54(0x36c)](_0x5e9a54(0x3ff),_0x193abf),this[_0x5e9a54(0x415)](()=>{const _0x286c5e=_0x5e9a54;window[_0x286c5e(0x1c8)](_0x286c5e(0x3ff),_0x193abf);});}['_initUnhandledRejectionListener'](){const _0x8a77be=_0x409fb3;let _0x9bdb9=_0x476f96=>{const _0x2b4942=_0x4188;this[_0x2b4942(0x18a)]('error',_0x2b4942(0x377)+_0x476f96['reason']);};window[_0x8a77be(0x36c)]('unhandledrejection',_0x9bdb9),this[_0x8a77be(0x415)](()=>{const _0x56c73d=_0x8a77be;window[_0x56c73d(0x1c8)](_0x56c73d(0x1d0),_0x9bdb9);});}[_0x409fb3(0x393)](){const _0x439d36=_0x409fb3;let _0x9f7952=this[_0x439d36(0x252)][_0x439d36(0x3ff)][_0x439d36(0x2d5)](this[_0x439d36(0x252)]);this[_0x439d36(0x252)][_0x439d36(0x3ff)]=(..._0x235155)=>{const _0x5a671b=_0x439d36;let _0x3bbe99=_0x235155[_0x5a671b(0x3c9)](_0x31b9e7=>_0x31b9e7 instanceof Error?_0x31b9e7[_0x5a671b(0x138)]+'\x0a'+_0x31b9e7[_0x5a671b(0x2b6)]:String(_0x31b9e7))[_0x5a671b(0x3e2)]('\x20');this[_0x5a671b(0x18a)](_0x5a671b(0x3ff),_0x5a671b(0x3c4)+_0x3bbe99),_0x9f7952(..._0x235155);},this[_0x439d36(0x415)](()=>{const _0x5de369=_0x439d36;this['_logService'][_0x5de369(0x3ff)]=_0x9f7952;});}[_0x409fb3(0x18a)](_0x1dcf84,_0x33acfc){const _0xadd02=_0x409fb3;try{let _0x513766={'userId':this[_0xadd02(0x149)],'logLabel':_0x1dcf84,'content':_0x33acfc};this[_0xadd02(0x300)]['post'](_0xadd02(0x3de),{'body':_0x513766})[_0xadd02(0x16f)](()=>{});}catch{}}};J=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x1,(0x0,t['Inject'])(m[_0x409fb3(0x238)])),x(0x2,t[_0x409fb3(0x1f3)]),x(0x3,(0x0,t[_0x409fb3(0x329)])(e[_0x409fb3(0x207)]))],J);function we({state$:_0x9d4606}){const _0x116e0b=_0x409fb3;let _0x3e2652=(0x0,n[_0x116e0b(0x297)])(_0x9d4606,null,!0x0);return _0x3e2652?(0x0,c[_0x116e0b(0x2f3)])(_0x116e0b(0x1cf),{'data-u-comp':_0x116e0b(0x370),'role':_0x116e0b(0x26c),'className':_0x116e0b(0x20f),'children':[(0x0,c[_0x116e0b(0x350)])(o[_0x116e0b(0x33a)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,c['jsx'])(_0x116e0b(0x1af),{'children':_0x3e2652[_0x116e0b(0x217)]}),(0x0,c['jsx'])(a[_0x116e0b(0x2a1)],{'size':_0x116e0b(0x349),'variant':_0x116e0b(0x3e9),'onClick':()=>window[_0x116e0b(0x1d2)][_0x116e0b(0x154)](),'children':_0x3e2652[_0x116e0b(0x37b)]})]}):null;}const Te='snapshot-loading-';let Y=class extends t[_0x409fb3(0x277)]{constructor(_0x27fcca,_0x4cba95,_0x2291a1,_0x3c21d4,_0x7faef1,_0x130b41){const _0xbe0b83=_0x409fb3;super(),this[_0xbe0b83(0x38b)]=_0x27fcca,this[_0xbe0b83(0x178)]=_0x4cba95,this[_0xbe0b83(0x429)]=_0x2291a1,this['_injector']=_0x3c21d4,this[_0xbe0b83(0x1b9)]=_0x130b41,b(this,_0xbe0b83(0x403),new r['BehaviorSubject'](null)),b(this,_0xbe0b83(0x142),new Set()),b(this,_0xbe0b83(0x36e),new Map()),b(this,_0xbe0b83(0x2dd),new Map()),b(this,_0xbe0b83(0x158),this[_0xbe0b83(0x403)][_0xbe0b83(0x1c2)]());let _0x229677=()=>(0x0,s[_0xbe0b83(0x313)])(we,{'state$':this['timeoutState$']});this[_0xbe0b83(0x415)](_0x7faef1[_0xbe0b83(0x258)](n[_0xbe0b83(0x37f)][_0xbe0b83(0x2c7)],()=>(0x0,n['connectInjector'])(_0x229677,this['_injector']))),this[_0xbe0b83(0x415)](this['_snapshotLoadingService'][_0xbe0b83(0x30d)][_0xbe0b83(0x1ac)](_0x45b853=>{const _0x55ab9b=_0xbe0b83;this[_0x55ab9b(0x2dd)]=_0x45b853,_0x45b853['forEach'](_0xdf8344=>this[_0x55ab9b(0x323)](_0xdf8344));})),this[_0xbe0b83(0x415)](this[_0xbe0b83(0x1b9)]['urlChange$'][_0xbe0b83(0x1ac)](()=>{const _0x16d4d4=_0xbe0b83;this[_0x16d4d4(0x2dd)][_0x16d4d4(0x2e3)](_0x3f7054=>this['_updateMessage'](_0x3f7054));}));}['dispose'](){const _0x447fa0=_0x409fb3;this[_0x447fa0(0x142)][_0x447fa0(0x2e3)](_0x34dbfa=>this[_0x447fa0(0x178)][_0x447fa0(0x307)](_0x34dbfa)),this['_messageIds'][_0x447fa0(0x365)](),this[_0x447fa0(0x36e)][_0x447fa0(0x2e3)](({timeoutId:_0x48cc84})=>clearTimeout(_0x48cc84)),this[_0x447fa0(0x36e)]['clear'](),this[_0x447fa0(0x403)]['complete'](),super[_0x447fa0(0x2c8)]();}[_0x409fb3(0x323)](_0x2262b7){const _0xc36fde=_0x409fb3;let _0x2c1a00=''+Te+_0x2262b7['unitId'];if(_0x2262b7[_0xc36fde(0x17b)]===l[_0xc36fde(0x294)]['COMPLETE']){this['_clearBlockProgressWatch'](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x327)](_0x2262b7['unitId']),this[_0xc36fde(0x178)][_0xc36fde(0x307)](_0x2c1a00),this[_0xc36fde(0x142)][_0xc36fde(0x205)](_0x2c1a00);return;}if(!this[_0xc36fde(0x322)](_0x2262b7[_0xc36fde(0x312)])){this[_0xc36fde(0x266)](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x327)](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x178)][_0xc36fde(0x307)](_0x2c1a00),this['_messageIds'][_0xc36fde(0x205)](_0x2c1a00);return;}if(_0x2262b7[_0xc36fde(0x17b)]===l[_0xc36fde(0x294)]['ERROR']){this[_0xc36fde(0x266)](_0x2262b7['unitId']),this[_0xc36fde(0x327)](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x178)][_0xc36fde(0x2a3)]({'id':_0x2c1a00,'type':a[_0xc36fde(0x39e)]['Error'],'content':this['_localeService']['t'](_0xc36fde(0x135))}),this[_0xc36fde(0x142)][_0xc36fde(0x205)](_0x2c1a00);return;}if(_0x2262b7[_0xc36fde(0x17b)]!==l['SnapshotLoadStage']['LOADING_BLOCKS']||_0x2262b7['totalBlocks']<=0xa){this['_clearBlockProgressWatch'](_0x2262b7[_0xc36fde(0x312)]),this[_0xc36fde(0x178)][_0xc36fde(0x307)](_0x2c1a00),this[_0xc36fde(0x142)][_0xc36fde(0x205)](_0x2c1a00);return;}this['_watchBlockProgress'](_0x2262b7)||(this[_0xc36fde(0x178)]['show']({'id':_0x2c1a00,'type':a[_0xc36fde(0x39e)][_0xc36fde(0x204)],'duration':0x1/0x0,'content':this[_0xc36fde(0x429)]['t'](_0xc36fde(0x2e7))+'\x20'+_0x2262b7['loadedBlocks']+'/'+_0x2262b7['totalBlocks']}),this[_0xc36fde(0x142)][_0xc36fde(0x2ce)](_0x2c1a00));}[_0x409fb3(0x339)](_0xebf371){const _0x1a5093=_0x409fb3;let _0xa47f76=this[_0x1a5093(0x36e)][_0x1a5093(0x424)](_0xebf371[_0x1a5093(0x312)]);if((_0xa47f76==null?void 0x0:_0xa47f76[_0x1a5093(0x193)])===_0xebf371[_0x1a5093(0x193)])return _0xa47f76[_0x1a5093(0x395)];this[_0x1a5093(0x266)](_0xebf371[_0x1a5093(0x312)]);let _0xd48808=setTimeout(()=>{const _0x1af5cc=_0x1a5093;let _0x3caa69=this[_0x1af5cc(0x36e)][_0x1af5cc(0x424)](_0xebf371[_0x1af5cc(0x312)]);if(!_0x3caa69||_0x3caa69[_0x1af5cc(0x341)]!==_0xd48808)return;_0x3caa69[_0x1af5cc(0x395)]=!0x0;let _0x1144fa=''+Te+_0xebf371['unitId'];this['_messageService'][_0x1af5cc(0x307)](_0x1144fa),this['_messageIds'][_0x1af5cc(0x205)](_0x1144fa),this[_0x1af5cc(0x403)]['next']({'unitId':_0xebf371[_0x1af5cc(0x312)],'content':this['_localeService']['t'](_0x1af5cc(0x1b4),String(_0xebf371[_0x1af5cc(0x193)]),String(_0xebf371['totalBlocks'])),'refreshLabel':this['_localeService']['t'](_0x1af5cc(0x2dc))});},0xea60);return this[_0x1a5093(0x36e)]['set'](_0xebf371[_0x1a5093(0x312)],{'loadedBlocks':_0xebf371[_0x1a5093(0x193)],'timedOut':!0x1,'timeoutId':_0xd48808}),!0x1;}['_clearBlockProgressWatch'](_0x4268ce){const _0x247ecb=_0x409fb3;let _0x38bee3=this[_0x247ecb(0x36e)]['get'](_0x4268ce);_0x38bee3&&(clearTimeout(_0x38bee3[_0x247ecb(0x341)]),this[_0x247ecb(0x36e)][_0x247ecb(0x205)](_0x4268ce),this[_0x247ecb(0x327)](_0x4268ce));}[_0x409fb3(0x327)](_0x459046){const _0x2159e4=_0x409fb3;var _0x383215;((_0x383215=this[_0x2159e4(0x403)]['value'])==null?void 0x0:_0x383215[_0x2159e4(0x312)])===_0x459046&&this['_timeoutState$'][_0x2159e4(0x1a1)](null);}['_isVisibleUnit'](_0x118fb3){const _0x5ebc9c=_0x409fb3;let _0x37f057=this[_0x5ebc9c(0x1b9)][_0x5ebc9c(0x143)]('unit');return!_0x37f057||_0x37f057===_0x118fb3;}};Y=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(l['SnapshotLoadingService'])),x(0x1,n[_0x409fb3(0x3f1)]),x(0x2,(0x0,t['Inject'])(t[_0x409fb3(0x292)])),x(0x3,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x4,n[_0x409fb3(0x1e3)]),x(0x5,V)],Y);let X=class extends t[_0x409fb3(0x277)]{constructor(_0x4eedcd,_0x2a18ae,_0x52fcc4){const _0x49e624=_0x409fb3;super(),this[_0x49e624(0x279)]=_0x4eedcd,this[_0x49e624(0x2f6)]=_0x2a18ae,this[_0x49e624(0x414)]=_0x52fcc4,b(this,_0x49e624(0x27c),new Map()),b(this,_0x49e624(0x3a5),new Map()),b(this,_0x49e624(0x1e5),new Map()),b(this,_0x49e624(0x222),!0x1);}[_0x409fb3(0x3e6)](){const _0x42e8cb=_0x409fb3;this[_0x42e8cb(0x222)]=!0x0;}[_0x409fb3(0x15a)](){this['_disabled']=!0x1;}get[_0x409fb3(0x346)](){const _0x3d41d4=_0x409fb3;return this[_0x3d41d4(0x3a5)];}[_0x409fb3(0x2c8)](){const _0x3ba01e=_0x409fb3;this[_0x3ba01e(0x1c1)]()['then'](()=>super[_0x3ba01e(0x2c8)]());}async[_0x409fb3(0x3f6)](_0x312b58){const _0x2d9d18=_0x409fb3;return this[_0x2d9d18(0x222)]?null:this[_0x2d9d18(0x2f6)][_0x2d9d18(0x298)]((0x0,e['getLocalCacheKey'])(_0x312b58));}async[_0x409fb3(0x264)](_0x26e310,_0x4f1818){const _0x8cf77a=_0x409fb3;let _0x301282=this[_0x8cf77a(0x2f6)][_0x8cf77a(0x269)]((0x0,e[_0x8cf77a(0x144)])(_0x26e310),_0x4f1818);return this['_trackActiveSaveTask'](_0x26e310,_0x301282),!!await _0x301282;}async[_0x409fb3(0x17e)](_0x5a531f,_0x30bdb2){const _0x34718b=_0x409fb3;let _0xb431fe=this[_0x34718b(0x27c)]['get'](_0x5a531f)??await this[_0x34718b(0x2f6)]['getItem']((0x0,e[_0x34718b(0x144)])(_0x5a531f));if(!_0xb431fe)return;let _0x17de67=Date[_0x34718b(0x1a9)](),_0x4bc3bd=new Date(_0x17de67)[_0x34718b(0x3c8)]();await this[_0x34718b(0x2f6)]['setItem']((0x0,e[_0x34718b(0x144)])(_0x5a531f)+_0x34718b(0x3f7)+_0x17de67,{'reason':_0x30bdb2,'createdAt':_0x4bc3bd,'data':_0xb431fe});}async['clearOfflineData'](_0x2bec0d){const _0xc95bb2=_0x409fb3;let _0x787411=this[_0xc95bb2(0x3a5)][_0xc95bb2(0x424)](_0x2bec0d);_0x787411!==void 0x0&&(window[_0xc95bb2(0x2b4)](_0x787411),this['_saveTaskMap'][_0xc95bb2(0x205)](_0x2bec0d));let _0x314770=this[_0xc95bb2(0x1e5)][_0xc95bb2(0x424)](_0x2bec0d);_0x314770&&await Promise[_0xc95bb2(0x191)](_0x314770),this[_0xc95bb2(0x27c)][_0xc95bb2(0x205)](_0x2bec0d),await this[_0xc95bb2(0x2f6)][_0xc95bb2(0x35d)]((0x0,e[_0xc95bb2(0x144)])(_0x2bec0d));}['updateOfflineData'](_0x2eafb1,_0x30160f,_0x23ed49,_0x3cf457){const _0x80ceb4=_0x409fb3;let _0x190208=this['_revisionService'][_0x80ceb4(0x3f5)](_0x2eafb1);this['_cachedData'][_0x80ceb4(0x16b)](_0x2eafb1,{'unitID':_0x2eafb1,'type':_0x30160f,'awaitingChangeset':_0x23ed49,'mutations':_0x3cf457,'rev':_0x190208}),this['_saveTaskMap']['has'](_0x2eafb1)||this[_0x80ceb4(0x39f)](_0x2eafb1);}[_0x409fb3(0x39f)](_0x5ef7b1){const _0x32ee9b=_0x409fb3;let _0x5e5a3b=this[_0x32ee9b(0x2ee)]();_0x5e5a3b===0x0?this[_0x32ee9b(0x335)](_0x5ef7b1):this[_0x32ee9b(0x3a5)]['set'](_0x5ef7b1,window[_0x32ee9b(0x16d)](()=>this[_0x32ee9b(0x335)](_0x5ef7b1),_0x5e5a3b));}[_0x409fb3(0x2ee)](){const _0x5b4af5=_0x409fb3;return this[_0x5b4af5(0x279)][_0x5b4af5(0x41e)](e[_0x5b4af5(0x305)])??e[_0x5b4af5(0x2a5)];}[_0x409fb3(0x335)](_0x275261){const _0x2f3dc2=_0x409fb3;let _0x213565=this[_0x2f3dc2(0x3a5)]['get'](_0x275261);_0x213565!==void 0x0&&window[_0x2f3dc2(0x2b4)](_0x213565);let _0x260cc7=this['_localStorageService'][_0x2f3dc2(0x269)]((0x0,e[_0x2f3dc2(0x144)])(_0x275261),this[_0x2f3dc2(0x27c)]['get'](_0x275261))[_0x2f3dc2(0x1d6)](()=>this['_saveTaskMap'][_0x2f3dc2(0x205)](_0x275261));return this[_0x2f3dc2(0x2d8)](_0x275261,_0x260cc7),_0x260cc7;}[_0x409fb3(0x2d8)](_0x5a014d,_0x183446){const _0x559f07=_0x409fb3;let _0x3935e3=this[_0x559f07(0x1e5)][_0x559f07(0x424)](_0x5a014d);_0x3935e3||(_0x3935e3=new Set(),this['_activeSaveTaskMap'][_0x559f07(0x16b)](_0x5a014d,_0x3935e3)),_0x3935e3[_0x559f07(0x2ce)](_0x183446);let _0x29f453=()=>{const _0x493390=_0x559f07;_0x3935e3[_0x493390(0x205)](_0x183446),_0x3935e3['size']===0x0&&this[_0x493390(0x1e5)][_0x493390(0x205)](_0x5a014d);};_0x183446[_0x559f07(0x1d6)](_0x29f453,_0x29f453);}async[_0x409fb3(0x1c1)](){const _0x354623=_0x409fb3;let _0x31a784=[];this[_0x354623(0x3a5)]['forEach']((_0x62da9a,_0x2777b1)=>{const _0x4f372f=_0x354623;window['clearTimeout'](_0x62da9a),_0x31a784[_0x4f372f(0x2df)](this['_saveCache'](_0x2777b1)[_0x4f372f(0x1d6)](()=>{const _0x3adbe5=_0x4f372f;this['_saveTaskMap'][_0x3adbe5(0x205)](_0x2777b1);}));}),await Promise[_0x354623(0x270)](_0x31a784);}};X=S([x(0x0,t[_0x409fb3(0x3f9)]),x(0x1,t[_0x409fb3(0x33c)]),x(0x2,(0x0,t[_0x409fb3(0x329)])(l[_0x409fb3(0x1da)]))],X);var Ee=class extends t['RxDisposable']{constructor(){const _0x37df32=_0x409fb3;super(),b(this,_0x37df32(0x3ee),void 0x0),this[_0x37df32(0x3ee)]=(0x0,r['fromEvent'])(window,_0x37df32(0x2b2))[_0x37df32(0x423)]((0x0,r[_0x37df32(0x24c)])(this['dispose$']),(0x0,r['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x37df32(0x22f)])(void 0x0));}[_0x409fb3(0x314)](_0x3aba45,_0x285bab,_0x114a2b=!0x1){const _0x447be9=_0x409fb3;let _0x576f06=new URL(window['location'][_0x447be9(0x38e)]);_0x576f06[_0x447be9(0x3c2)][_0x447be9(0x16b)](_0x3aba45,_0x285bab),_0x114a2b?window[_0x447be9(0x27a)][_0x447be9(0x20a)]('','',_0x576f06['toString']()):window[_0x447be9(0x27a)]['pushState']('','',_0x576f06['toString']());}[_0x409fb3(0x379)](_0x37e6df,_0x396094=!0x1){const _0x5c4453=_0x409fb3;let _0x1ad6ca=new URL(window[_0x5c4453(0x1d2)][_0x5c4453(0x38e)]);_0x1ad6ca['searchParams'][_0x5c4453(0x205)](_0x37e6df),_0x396094?window[_0x5c4453(0x27a)][_0x5c4453(0x20a)]('','',_0x1ad6ca[_0x5c4453(0x1d3)]()):window[_0x5c4453(0x27a)][_0x5c4453(0x259)]('','',_0x1ad6ca[_0x5c4453(0x1d3)]());}[_0x409fb3(0x143)](_0x5890fa){const _0x3b013f=_0x409fb3;return new URL(window[_0x3b013f(0x1d2)]['href'])[_0x3b013f(0x3c2)]['get'](_0x5890fa)??void 0x0;}};let Z=class extends t[_0x409fb3(0x2e4)]{constructor(_0x341817=ce,_0x2f2c64,_0x8ce742,_0x51fd3f,_0x3bfcbc){const _0x24efae=_0x409fb3;super(),this[_0x24efae(0x3a7)]=_0x341817,this['_renderManagerService']=_0x2f2c64,this[_0x24efae(0x381)]=_0x8ce742,this[_0x24efae(0x279)]=_0x51fd3f,this[_0x24efae(0x26a)]=_0x3bfcbc;let {..._0x480e77}=(0x0,t[_0x24efae(0x245)])({},ce,this['_config']);this[_0x24efae(0x279)][_0x24efae(0x1f7)]('collaboration-client-ui.config',_0x480e77);}['onStarting'](){const _0x3b9583=_0x409fb3;this[_0x3b9583(0x3ad)](),this[_0x3b9583(0x415)](this[_0x3b9583(0x26a)][_0x3b9583(0x3e0)](w)),this[_0x3b9583(0x3b3)]();}['onRendered'](){const _0x54efde=_0x409fb3;this[_0x54efde(0x20d)]();}[_0x409fb3(0x3ad)](){const _0x247c16=_0x409fb3;var _0x359132;let _0x4ac020=[[E],[V,{'useClass':Ee}],[m[_0x247c16(0x31d)],{'useClass':m[_0x247c16(0x151)]}],[e['ILocalCacheService'],{'useClass':X}],[C],[B],[A],[z],[H],[Y]];this[_0x247c16(0x3a7)][_0x247c16(0x26f)]!==!0x1&&_0x4ac020['push']([G],[U],[W],[D],[q],[T]),this[_0x247c16(0x3a7)][_0x247c16(0x285)]&&_0x4ac020['push']([J]),(0x0,t[_0x247c16(0x226)])(this[_0x247c16(0x381)],(0x0,t['mergeOverrideWithDependencies'])(_0x4ac020,(_0x359132=this[_0x247c16(0x3a7)])==null?void 0x0:_0x359132['override']));}['_registerRenderDependencies'](){const _0x186609=_0x409fb3;this[_0x186609(0x3a7)][_0x186609(0x26f)]!==!0x1&&this['disposeWithMe'](this['_renderManagerService'][_0x186609(0x1f9)](t['UniverInstanceType']['UNIVER_DOC'],[F])),this['disposeWithMe'](this[_0x186609(0x2a4)][_0x186609(0x1f9)](t[_0x186609(0x24d)]['UNIVER_SHEET'],[I]));}[_0x409fb3(0x3b3)](){const _0x1957e6=_0x409fb3;(0x0,t[_0x1957e6(0x159)])(this['_injector'],[[A],[z],[C],[B],[H],[Y]]),this[_0x1957e6(0x3a7)][_0x1957e6(0x26f)]!==!0x1&&(0x0,t[_0x1957e6(0x159)])(this[_0x1957e6(0x381)],[[q],[T]]),this['_config']['enableFrontendLog']&&(0x0,t[_0x1957e6(0x159)])(this[_0x1957e6(0x381)],[[J]]);}};b(Z,_0x409fb3(0x1ae),_0x409fb3(0x3f0)),b(Z,_0x409fb3(0x2d6),oe),b(Z,_0x409fb3(0x2fc),se),Z=S([(0x0,t[_0x409fb3(0x180)])(u[_0x409fb3(0x176)],d[_0x409fb3(0x14d)],p[_0x409fb3(0x287)],m[_0x409fb3(0x21c)],l[_0x409fb3(0x175)],f[_0x409fb3(0x2a8)],e[_0x409fb3(0x2e6)]),x(0x1,p[_0x409fb3(0x210)]),x(0x2,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x3,t[_0x409fb3(0x3f9)]),x(0x4,t[_0x409fb3(0x228)])],Z);let Q=class extends e[_0x409fb3(0x3d5)]{constructor(_0x1a81b9,_0x507cd0,_0x129985,_0x55aa72,_0x140afa){super(_0x1a81b9,_0x507cd0,_0x129985,_0x55aa72,_0x140afa);}async[_0x409fb3(0x35b)](_0x117f6f){const _0x4930f6=_0x409fb3;let _0xcf3eb6=await this[_0x4930f6(0x15e)](),_0x275963=this[_0x4930f6(0x30e)](_0x117f6f,_0xcf3eb6);return this[_0x4930f6(0x28f)](_0x275963);}[_0x409fb3(0x30e)](_0x5540c0,_0x17ba74){const _0x1e50d9=_0x409fb3;let _0x5bc4fc=typeof window>'u'?new URL(_0x5540c0):new URL(_0x5540c0,window['location'][_0x1e50d9(0x30b)]);_0x5bc4fc[_0x1e50d9(0x3c2)][_0x1e50d9(0x16b)](_0x1e50d9(0x368),_0x17ba74);let _0xd8edd9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1e50d9(0x1d2)][_0x1e50d9(0x29a)]);return _0xd8edd9[_0x1e50d9(0x424)]('runId')&&_0x5bc4fc[_0x1e50d9(0x3c2)]['set']('runId',_0xd8edd9[_0x1e50d9(0x424)](_0x1e50d9(0x22d))),_0x5bc4fc['toString']();}async[_0x409fb3(0x15e)](){const _0x5f065c=_0x409fb3;var _0x563616;let _0x7532dc=this['_configService']['getConfig'](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x13ebed=(_0x7532dc==null?void 0x0:_0x7532dc[_0x5f065c(0x2ae)])??e[_0x5f065c(0x33e)];return((_0x563616=(await this[_0x5f065c(0x300)][_0x5f065c(0x424)](_0x13ebed,{'headers':{'Content-Type':_0x5f065c(0x18f)}}))[_0x5f065c(0x182)])==null?void 0x0:_0x563616['ticket'])??'';}};Q=S([x(0x0,(0x0,t[_0x409fb3(0x329)])(t[_0x409fb3(0x25e)])),x(0x1,(0x0,t['Inject'])(m[_0x409fb3(0x238)])),x(0x2,t[_0x409fb3(0x3f9)]),x(0x3,t[_0x409fb3(0x1f3)]),x(0x4,l[_0x409fb3(0x283)])],Q);let $=class extends t['Disposable']{constructor(_0x42cfc0,_0x2063bf,_0x2d8aa0){const _0x4d2ddb=_0x409fb3;super(),this[_0x4d2ddb(0x376)]=_0x42cfc0,this[_0x4d2ddb(0x300)]=_0x2063bf,this['_configService']=_0x2d8aa0;}async['runOnServer'](_0x35c058,_0x5b6beb,_0x756792,..._0x18119a){const _0x20bd43=_0x409fb3;let _0x1d88a9=this[_0x20bd43(0x376)]['getFocusedUnit']();if(!_0x1d88a9)throw Error(_0x20bd43(0x3e5));let _0x3d7523=(this[_0x20bd43(0x279)][_0x20bd43(0x41e)](e[_0x20bd43(0x237)])??e[_0x20bd43(0x3b1)])+'/'+_0x35c058+_0x20bd43(0x19d)+_0x5b6beb,_0xb65e77={'scriptId':_0x35c058,'runId':new URL(window[_0x20bd43(0x1d2)][_0x20bd43(0x38e)])['searchParams'][_0x20bd43(0x424)](_0x20bd43(0x22d))??'','function':_0x5b6beb,'unitId':_0x1d88a9[_0x20bd43(0x3ba)](),'argsOfFunction':JSON[_0x20bd43(0x32f)](_0x18119a),'invokeId':_0x756792[_0x20bd43(0x140)]??'','executionId':_0x756792['executionId']??''};try{let _0x242860=await this[_0x20bd43(0x300)][_0x20bd43(0x3ca)](_0x3d7523,{'body':_0xb65e77});return _0x242860[_0x20bd43(0x182)][_0x20bd43(0x3ff)]&&_0x242860[_0x20bd43(0x182)]['error'][_0x20bd43(0x418)]!==v['ErrorCode']['OK']?_0x20bd43(0x35f):_0x242860[_0x20bd43(0x182)][_0x20bd43(0x31b)];}catch{return _0x20bd43(0x35f);}}};$=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x409fb3(0x329)])(m[_0x409fb3(0x238)])),x(0x2,t['IConfigService'])],$);const De=0x7530,Oe=_0x409fb3(0x152);var ke=class extends t[_0x409fb3(0x277)]{constructor(){const _0x49002c=_0x409fb3;super(),b(this,'_id',(0x0,t[_0x49002c(0x208)])()),b(this,_0x49002c(0x3b8),new Set()),b(this,_0x49002c(0x326),new Map()),b(this,_0x49002c(0x1a2),null),b(this,_0x49002c(0x18e),new Map()),b(this,_0x49002c(0x407),new Map()),this[_0x49002c(0x1c6)]();}[_0x409fb3(0x2c8)](){const _0x172f9b=_0x409fb3;super[_0x172f9b(0x2c8)](),this[_0x172f9b(0x18e)][_0x172f9b(0x2e3)]((_0x838992,_0xe0fa92)=>this[_0x172f9b(0x39b)](_0xe0fa92)),this[_0x172f9b(0x1a2)]&&window['clearInterval'](this[_0x172f9b(0x1a2)]);}['getUnitStatus$'](_0x5eded4){const _0x56f906=_0x409fb3;return this[_0x56f906(0x332)](_0x5eded4)['pipe']((0x0,r[_0x56f906(0x40b)])());}['editingUnit'](_0x17e71d){const _0x163fbd=_0x409fb3;this['_selfUnitIDs'][_0x163fbd(0x153)]===0x0&&this['_scheduleHeartbeat'](),this[_0x163fbd(0x3b8)][_0x163fbd(0x2ce)](_0x17e71d),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x17e71d],'isForwarded':!0x1});}[_0x409fb3(0x2e8)](_0x3736f7){const _0x1a5b51=_0x409fb3;this[_0x1a5b51(0x3b8)][_0x1a5b51(0x205)](_0x3736f7),this['_selfUnitIDs']['size']===0x0&&this[_0x1a5b51(0x1a2)]&&window[_0x1a5b51(0x1d1)](this[_0x1a5b51(0x1a2)]);}[_0x409fb3(0x1c6)](){const _0x5ea1af=_0x409fb3;this[_0x5ea1af(0x415)]((0x0,t[_0x5ea1af(0x19e)])((0x0,r['fromEvent'])(window,_0x5ea1af(0x36b))['subscribe'](_0x50fa1b=>{const _0x2853e9=_0x5ea1af;if(_0x50fa1b[_0x2853e9(0x146)]!==Oe||!_0x50fa1b['newValue'])return;let _0x1f7260=JSON['parse'](_0x50fa1b['newValue']);this[_0x2853e9(0x1a8)](_0x1f7260);}))),window[_0x5ea1af(0x36c)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x5ea1af(0x3f8)],'unitIDs':Array[_0x5ea1af(0x416)](this[_0x5ea1af(0x3b8)])}));}[_0x409fb3(0x1a8)](_0x343509){const _0x374b21=_0x409fb3;switch(_0x343509[_0x374b21(0x3b7)]){case 0x0:this[_0x374b21(0x1c9)](_0x343509);break;case 0x1:this[_0x374b21(0x32e)](_0x343509);break;case 0x2:this[_0x374b21(0x3ec)](_0x343509);}}[_0x409fb3(0x1c9)](_0x38c17b){const _0x3eb04f=_0x409fb3;let {unitIDs:_0xfd97f7,memberID:_0x5df061,isForwarded:_0x3154ac}=_0x38c17b;_0xfd97f7[_0x3eb04f(0x2e3)](_0x3f7c20=>{const _0x2b303f=_0x3eb04f;if(!_0x3154ac&&this['_unitOnClients'][_0x2b303f(0x1e0)](_0x3f7c20)&&this[_0x2b303f(0x332)](_0x3f7c20)[_0x2b303f(0x1a1)](e[_0x2b303f(0x1fb)][_0x2b303f(0x427)]),!this[_0x2b303f(0x326)][_0x2b303f(0x1e0)](_0x3f7c20)||!this[_0x2b303f(0x326)][_0x2b303f(0x424)](_0x3f7c20)[_0x2b303f(0x1e0)](_0x5df061)){let _0x42f57c=this[_0x2b303f(0x326)][_0x2b303f(0x424)](_0x3f7c20)||new Set();_0x42f57c[_0x2b303f(0x2ce)](_0x5df061),this[_0x2b303f(0x326)][_0x2b303f(0x16b)](_0x3f7c20,_0x42f57c),this['_scheduleClearOtherTimer'](_0x5df061);}}),_0x3154ac||this[_0x3eb04f(0x242)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3eb04f(0x3b8)]],'isForwarded':!0x0});}[_0x409fb3(0x354)](_0x305993){const _0x42bb22=_0x409fb3;this[_0x42bb22(0x39b)](_0x305993);let _0x92dfce=window[_0x42bb22(0x16d)](()=>{const _0x40281c=_0x42bb22;this['_unitOnClients'][_0x40281c(0x2e3)](_0x29fb53=>{const _0x3c0b4a=_0x40281c;_0x29fb53[_0x3c0b4a(0x205)](_0x305993);});},De*0x2);this['_clearOtherTimers']['set'](_0x305993,_0x92dfce);}[_0x409fb3(0x39b)](_0x1ddfd1){const _0x35117b=_0x409fb3;if(this[_0x35117b(0x18e)]['has'](_0x1ddfd1)){let _0x27f586=this[_0x35117b(0x18e)][_0x35117b(0x424)](_0x1ddfd1);_0x27f586&&window[_0x35117b(0x2b4)](_0x27f586),this['_clearOtherTimers'][_0x35117b(0x16b)](_0x1ddfd1,null);}}[_0x409fb3(0x32e)](_0x90a958){let {memberID:_0x3c2f41,unitIDs:_0x21a317}=_0x90a958;_0x21a317['forEach'](_0xbd90ef=>{const _0x22330c=_0x4188;var _0x6244cd;let _0x36860d=this['_unitOnClients'][_0x22330c(0x424)](_0xbd90ef);_0x36860d&&(_0x36860d[_0x22330c(0x205)](_0x3c2f41),(_0x6244cd=this['_ensureSubject'](_0xbd90ef))==null||_0x6244cd['next'](_0x36860d['size']===0x0?e[_0x22330c(0x1fb)][_0x22330c(0x1a0)]:e['UnitStatus'][_0x22330c(0x427)]));}),this['_removeClearOtherTimer'](_0x3c2f41);}[_0x409fb3(0x3ec)](_0x4bb305){const _0x1c520d=_0x409fb3;this[_0x1c520d(0x354)](_0x4bb305[_0x1c520d(0x2bb)]);}['_send'](_0x1ba59e){localStorage['setItem'](Oe,JSON['stringify'](_0x1ba59e));}[_0x409fb3(0x34d)](){const _0x102ff1=_0x409fb3;this[_0x102ff1(0x1a2)]=window[_0x102ff1(0x311)](()=>{const _0x17f245=_0x102ff1;this[_0x17f245(0x242)]({'type':0x2,'memberID':this[_0x17f245(0x3f8)]});},De);}[_0x409fb3(0x332)](_0x295a1f){const _0x5a5b1c=_0x409fb3;return this[_0x5a5b1c(0x407)][_0x5a5b1c(0x1e0)](_0x295a1f)||this['_unitStatus'][_0x5a5b1c(0x16b)](_0x295a1f,new r[(_0x5a5b1c(0x392))](e['UnitStatus'][_0x5a5b1c(0x1a0)])),this[_0x5a5b1c(0x407)]['get'](_0x295a1f);}};Object[_0x409fb3(0x170)](exports,_0x409fb3(0x436),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x409fb3(0x170)](exports,_0x409fb3(0x2f0),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x409fb3(0x206)]=V,Object[_0x409fb3(0x170)](exports,_0x409fb3(0x251),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x409fb3(0x369)]=he,Object['defineProperty'](exports,_0x409fb3(0x3fe),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x409fb3(0x428)]=ke;