@univerjs-pro/collaboration-client-ui 1.3.0 → 1.4.0
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +22 -22
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x43938c=_0x5041;(function(_0x3f75f5,_0x1cee42){const _0xbce0b0=_0x5041,_0x84514f=_0x3f75f5();while(!![]){try{const _0xc293a2=-parseInt(_0xbce0b0(0x1ac))/0x1*(parseInt(_0xbce0b0(0x295))/0x2)+-parseInt(_0xbce0b0(0x2c1))/0x3*(parseInt(_0xbce0b0(0x3b7))/0x4)+parseInt(_0xbce0b0(0x28f))/0x5*(parseInt(_0xbce0b0(0x36c))/0x6)+parseInt(_0xbce0b0(0x3ed))/0x7*(parseInt(_0xbce0b0(0x3a4))/0x8)+parseInt(_0xbce0b0(0x28c))/0x9+parseInt(_0xbce0b0(0x362))/0xa*(-parseInt(_0xbce0b0(0x451))/0xb)+parseInt(_0xbce0b0(0x443))/0xc*(parseInt(_0xbce0b0(0x3e1))/0xd);if(_0xc293a2===_0x1cee42)break;else _0x84514f['push'](_0x84514f['shift']());}catch(_0x59127c){_0x84514f['push'](_0x84514f['shift']());}}}(_0x52dc,0xda05e),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x43938c(0x1bd)}));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(_0x5173bd){const _0x3523b7=_0x43938c;switch(_0x5173bd){case e['CollaborationStatus'][_0x3523b7(0x3f4)]:return{'icon':(0x0,c[_0x3523b7(0x2b2)])(o[_0x3523b7(0x3e7)],{}),'colorClass':_0x3523b7(0x3d4),'i18nKey':_0x3523b7(0x350),'tooltipKey':_0x3523b7(0x407),'clickable':!0x0,'indicator':_0x3523b7(0x288)};case e[_0x3523b7(0x32f)][_0x3523b7(0x210)]:return{'icon':(0x0,c['jsx'])(o[_0x3523b7(0x3e7)],{}),'colorClass':_0x3523b7(0x44f),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x3523b7(0x288)};case e[_0x3523b7(0x32f)]['FETCH_MISS']:return{'icon':(0x0,c[_0x3523b7(0x2b2)])(o[_0x3523b7(0x392)],{}),'colorClass':_0x3523b7(0x185),'i18nKey':_0x3523b7(0x467),'clickable':!0x1,'indicator':_0x3523b7(0x34a)};case e[_0x3523b7(0x32f)][_0x3523b7(0x469)]:return{'icon':(0x0,c['jsx'])(o[_0x3523b7(0x46e)],{}),'colorClass':_0x3523b7(0x420),'i18nKey':_0x3523b7(0x335),'clickable':!0x1,'indicator':_0x3523b7(0x288)};case e[_0x3523b7(0x32f)]['AWAITING']:case e[_0x3523b7(0x32f)][_0x3523b7(0x3a5)]:return{'icon':(0x0,c[_0x3523b7(0x2b2)])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x3523b7(0x280),'clickable':!0x1,'indicator':_0x3523b7(0x34a)};case e[_0x3523b7(0x32f)][_0x3523b7(0x1bc)]:return{'icon':(0x0,c[_0x3523b7(0x2b2)])(o[_0x3523b7(0x392)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x3523b7(0x34a)};case e['CollaborationStatus']['SYNCED']:return{'icon':(0x0,c[_0x3523b7(0x2b2)])(o[_0x3523b7(0x46e)],{}),'colorClass':_0x3523b7(0x2b5),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x3523b7(0x288)};}}function te(_0x574254){const _0x55c7ec=_0x43938c;let {status$:_0xe805f}=_0x574254,_0x29ed2f=(0x0,n[_0x55c7ec(0x1f6)])(_0xe805f,e[_0x55c7ec(0x32f)][_0x55c7ec(0x469)]),_0x4439e0=(0x0,n[_0x55c7ec(0x418)])(t[_0x55c7ec(0x391)]),_0x3667db=(0x0,n['useDependency'])(e[_0x55c7ec(0x1a7)]),_0x5324eb=(0x0,s[_0x55c7ec(0x33f)])(()=>ee(_0x29ed2f),[_0x29ed2f]),_0x566b85=_0x29ed2f!==e[_0x55c7ec(0x32f)][_0x55c7ec(0x3f4)],_0x3afc46=_0x4439e0['t'](_0x5324eb['i18nKey']),_0xb5a17c=_0x5324eb[_0x55c7ec(0x448)]?_0x4439e0['t'](_0x5324eb[_0x55c7ec(0x448)]):_0x3afc46,_0x1d6b28=(0x0,s['useCallback'])(()=>{_0x566b85||_0x3667db['reconnect']();},[_0x566b85,_0x3667db]),_0x1bd184=(0x0,s[_0x55c7ec(0x2b9)])(_0x9f512=>{const _0x2b2301=_0x55c7ec;!_0x566b85&&(_0x9f512['key']==='Enter'||_0x9f512[_0x2b2301(0x38d)]==='\x20')&&(_0x9f512['preventDefault'](),_0x3667db[_0x2b2301(0x320)]());},[_0x566b85,_0x3667db]),_0x12f6e8=(0x0,c[_0x55c7ec(0x2b2)])(_0x55c7ec(0x38e),{'className':(0x0,a[_0x55c7ec(0x186)])(_0x55c7ec(0x293),_0x55c7ec(0x22b),_0x5324eb[_0x55c7ec(0x26c)],{'univer-animate-spin':_0x5324eb[_0x55c7ec(0x231)]===_0x55c7ec(0x34a),'univer-animate-pulse':_0x5324eb[_0x55c7ec(0x231)]===_0x55c7ec(0x2a1)}),'aria-hidden':_0x55c7ec(0x181),'children':_0x5324eb[_0x55c7ec(0x326)]}),_0x4c7198=(0x0,c['jsx'])('span',{'className':(0x0,a[_0x55c7ec(0x186)])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x55c7ec(0x2a3),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x5324eb['clickable'],'univer-cursor-default':!_0x5324eb['clickable']}),'children':_0x12f6e8});return _0x5324eb[_0x55c7ec(0x249)]?(0x0,c['jsx'])(a[_0x55c7ec(0x3ca)],{'title':_0xb5a17c,'placement':_0x55c7ec(0x25e),'children':(0x0,c[_0x55c7ec(0x2b2)])('button',{'type':_0x55c7ec(0x477),'onClick':_0x1d6b28,'onKeyDown':_0x1bd184,'className':(0x0,a[_0x55c7ec(0x186)])(_0x55c7ec(0x462),'univer-border-none\x20univer-bg-transparent',_0x55c7ec(0x331),_0x55c7ec(0x209)),'aria-label':_0x3afc46+_0x55c7ec(0x3ce)+_0xb5a17c,'role':_0x55c7ec(0x287),'aria-live':_0x55c7ec(0x28a),'aria-atomic':_0x55c7ec(0x181),'children':_0x4c7198})}):(0x0,c[_0x55c7ec(0x2b2)])(a[_0x55c7ec(0x3ca)],{'title':_0xb5a17c,'placement':_0x55c7ec(0x25e),'children':(0x0,c[_0x55c7ec(0x2b2)])('div',{'className':(0x0,a[_0x55c7ec(0x186)])(_0x55c7ec(0x462),_0x55c7ec(0x47c),_0x55c7ec(0x331)),'aria-label':_0x3afc46,'role':'status','aria-live':_0x55c7ec(0x28a),'aria-atomic':'true','children':_0x4c7198})});}function y(_0x34bb95){'@babel/helpers - typeof';const _0x36898d=_0x43938c;return y=typeof Symbol==_0x36898d(0x1c0)&&typeof Symbol[_0x36898d(0x23a)]=='symbol'?function(_0x5a354c){return typeof _0x5a354c;}:function(_0x291c3c){const _0x3f0ee5=_0x36898d;return _0x291c3c&&typeof Symbol=='function'&&_0x291c3c[_0x3f0ee5(0x3df)]===Symbol&&_0x291c3c!==Symbol[_0x3f0ee5(0x400)]?_0x3f0ee5(0x42c):typeof _0x291c3c;},y(_0x34bb95);}function ne(_0x526356,_0x221d5a){const _0x1bbae1=_0x43938c;if(y(_0x526356)!=_0x1bbae1(0x3a9)||!_0x526356)return _0x526356;var _0x42e03c=_0x526356[Symbol[_0x1bbae1(0x413)]];if(_0x42e03c!==void 0x0){var _0x283b36=_0x42e03c['call'](_0x526356,_0x221d5a||_0x1bbae1(0x3f9));if(y(_0x283b36)!='object')return _0x283b36;throw TypeError(_0x1bbae1(0x1f7));}return(_0x221d5a===_0x1bbae1(0x3b4)?String:Number)(_0x526356);}function re(_0x5f8237){const _0x13d34f=_0x43938c;var _0x133a6b=ne(_0x5f8237,_0x13d34f(0x3b4));return y(_0x133a6b)=='symbol'?_0x133a6b:_0x133a6b+'';}function b(_0x27c4a7,_0x1aa2d9,_0x2ea71a){const _0xdd4021=_0x43938c;return(_0x1aa2d9=re(_0x1aa2d9))in _0x27c4a7?Object[_0xdd4021(0x190)](_0x27c4a7,_0x1aa2d9,{'value':_0x2ea71a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27c4a7[_0x1aa2d9]=_0x2ea71a,_0x27c4a7;}function x(_0x20b566,_0x5f069c){return function(_0x3ff334,_0x39b542){_0x5f069c(_0x3ff334,_0x39b542,_0x20b566);};}function S(_0x2dd413,_0x59d244,_0x2d328a,_0xc0de3c){const _0x56ffb7=_0x43938c;var _0x190781=arguments[_0x56ffb7(0x25c)],_0x3c5958=_0x190781<0x3?_0x59d244:_0xc0de3c===null?_0xc0de3c=Object['getOwnPropertyDescriptor'](_0x59d244,_0x2d328a):_0xc0de3c,_0x4878ba;if(typeof Reflect=='object'&&typeof Reflect[_0x56ffb7(0x43a)]==_0x56ffb7(0x1c0))_0x3c5958=Reflect[_0x56ffb7(0x43a)](_0x2dd413,_0x59d244,_0x2d328a,_0xc0de3c);else{for(var _0x20f290=_0x2dd413['length']-0x1;_0x20f290>=0x0;_0x20f290--)(_0x4878ba=_0x2dd413[_0x20f290])&&(_0x3c5958=(_0x190781<0x3?_0x4878ba(_0x3c5958):_0x190781>0x3?_0x4878ba(_0x59d244,_0x2d328a,_0x3c5958):_0x4878ba(_0x59d244,_0x2d328a))||_0x3c5958);}return _0x190781>0x3&&_0x3c5958&&Object[_0x56ffb7(0x190)](_0x59d244,_0x2d328a,_0x3c5958),_0x3c5958;}let C=class extends t['Disposable']{constructor(_0x7927a7,_0x463a77,_0x204cd2,_0x2f8f50,_0x2746fe){const _0x151107=_0x43938c;super(),this[_0x151107(0x228)]=_0x7927a7,this[_0x151107(0x458)]=_0x463a77,this['_collaborationController']=_0x204cd2,this[_0x151107(0x257)]=_0x2f8f50,this[_0x151107(0x463)]=_0x2746fe,b(this,'_status$',new r[(_0x151107(0x325))](e[_0x151107(0x32f)][_0x151107(0x469)])),b(this,_0x151107(0x256),new Map()),this['_initStatusComponent'](),this[_0x151107(0x29d)](),this['_initPresenceStatusComponents']();}[_0x43938c(0x202)](){const _0x49b17f=_0x43938c;this[_0x49b17f(0x256)]['forEach'](_0x3f2e86=>_0x3f2e86['dispose']()),this[_0x49b17f(0x256)][_0x49b17f(0x270)](),this[_0x49b17f(0x40e)][_0x49b17f(0x183)](),super['dispose']();}['_initStatusListener'](){const _0x4ae013=_0x43938c;this[_0x4ae013(0x198)]((0x0,r[_0x4ae013(0x20f)])(this['_univerInstanceService']['focused$'],this[_0x4ae013(0x228)]['getCurrentTypeOfUnit$'](t[_0x4ae013(0x31f)][_0x4ae013(0x364)]),this[_0x4ae013(0x228)]['getCurrentTypeOfUnit$'](t[_0x4ae013(0x31f)]['UNIVER_SHEET']))[_0x4ae013(0x42a)]((0x0,i[_0x4ae013(0x1ef)])(()=>ie(this[_0x4ae013(0x228)])),(0x0,i[_0x4ae013(0x3a6)])(),(0x0,r['switchMap'])(_0x9cd40d=>_0x9cd40d?this[_0x4ae013(0x219)]['getCollabEntity$'](_0x9cd40d):(0x0,r['of'])(null)),(0x0,r[_0x4ae013(0x3cd)])(_0x4f8e98=>_0x4f8e98?_0x4f8e98[_0x4ae013(0x1e0)]:(0x0,r['of'])(e[_0x4ae013(0x32f)][_0x4ae013(0x469)])))['subscribe'](_0x44126b=>{const _0x556781=_0x4ae013;this[_0x556781(0x40e)]['next'](_0x44126b);}));}[_0x43938c(0x2d8)](){const _0x40caa1=_0x43938c;this['disposeWithMe'](this[_0x40caa1(0x257)][_0x40caa1(0x20c)](n[_0x40caa1(0x361)][_0x40caa1(0x35e)],()=>(0x0,n[_0x40caa1(0x1cd)])(w({'status$':this['_status$'][_0x40caa1(0x1a8)]()}),this[_0x40caa1(0x458)])));}[_0x43938c(0x47d)](){const _0x14c65e=_0x43938c;let _0x96c978=this[_0x14c65e(0x463)]['adapters$'][_0x14c65e(0x3a7)](_0xc5bdc0=>{const _0x2cdd69=_0x14c65e;this[_0x2cdd69(0x30a)](_0xc5bdc0);});this[_0x14c65e(0x198)]((0x0,t[_0x14c65e(0x189)])(()=>_0x96c978[_0x14c65e(0x294)]()));}[_0x43938c(0x30a)](_0xf6441){const _0x5e2d3a=_0x43938c;let _0x3ba201=new Map(_0xf6441[_0x5e2d3a(0x39f)](_0x49c134=>_0x49c134[_0x5e2d3a(0x3b0)]!=null)[_0x5e2d3a(0x1ef)](_0x44ab06=>[_0x44ab06[_0x5e2d3a(0x1ad)],_0x44ab06]));this[_0x5e2d3a(0x256)]['forEach']((_0x14efc9,_0x465aeb)=>{const _0x1620bf=_0x5e2d3a;_0x3ba201[_0x1620bf(0x29f)](_0x465aeb)||(_0x14efc9[_0x1620bf(0x202)](),this[_0x1620bf(0x256)][_0x1620bf(0x354)](_0x465aeb));}),_0x3ba201[_0x5e2d3a(0x28b)]((_0x779a56,_0x4781a3)=>{const _0xa2dba7=_0x5e2d3a;this['_presenceStatusRegistrations'][_0xa2dba7(0x29f)](_0x4781a3)||this['_registerPresenceStatusComponent'](_0x779a56);});}[_0x43938c(0x430)](_0x4904a5){const _0x4d5a58=_0x43938c;let _0x1e1f6f=_0x4904a5[_0x4d5a58(0x3b0)];if(!_0x1e1f6f)return;let _0x24958f=new t[(_0x4d5a58(0x278))](),_0xde530a=new r['BehaviorSubject'](e[_0x4d5a58(0x32f)][_0x4d5a58(0x469)]);_0x24958f[_0x4d5a58(0x315)]((0x0,t['toDisposable'])(()=>_0xde530a[_0x4d5a58(0x183)]())),_0x24958f[_0x4d5a58(0x315)](this[_0x4d5a58(0x257)][_0x4d5a58(0x20c)](_0x1e1f6f,()=>(0x0,n[_0x4d5a58(0x1cd)])(w({'status$':_0xde530a[_0x4d5a58(0x1a8)]()}),this['_injector'])));let _0x57e2de=this['_univerInstanceService'][_0x4d5a58(0x3fc)](_0x4904a5[_0x4d5a58(0x1ad)])[_0x4d5a58(0x42a)]((0x0,i[_0x4d5a58(0x1ef)])(_0x297b9d=>(_0x297b9d==null?void 0x0:_0x297b9d[_0x4d5a58(0x225)]())??null),(0x0,i[_0x4d5a58(0x3a6)])(),(0x0,r[_0x4d5a58(0x3cd)])(_0x3f678b=>_0x3f678b?this[_0x4d5a58(0x219)][_0x4d5a58(0x3f0)](_0x3f678b):(0x0,r['of'])(null)),(0x0,r[_0x4d5a58(0x3cd)])(_0x52e5fa=>(_0x52e5fa==null?void 0x0:_0x52e5fa['status$'])??(0x0,r['of'])(e['CollaborationStatus'][_0x4d5a58(0x469)])))[_0x4d5a58(0x3a7)](_0x79bc1a=>_0xde530a['next'](_0x79bc1a));_0x24958f['add']((0x0,t[_0x4d5a58(0x189)])(()=>_0x57e2de['unsubscribe']())),this[_0x4d5a58(0x256)][_0x4d5a58(0x478)](_0x4904a5['unitType'],_0x24958f);}};C=S([x(0x0,t[_0x43938c(0x201)]),x(0x1,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x2,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x303)])),x(0x3,n[_0x43938c(0x376)]),x(0x4,(0x0,t[_0x43938c(0x360)])(n[_0x43938c(0x2f4)]))],C);function ie(_0x2070a0){const _0x510fbe=_0x43938c;let _0x3f1762=_0x2070a0[_0x510fbe(0x2ce)](),_0x59735e=_0x3f1762==null?void 0x0:_0x3f1762['getUnitId']();if(_0x59735e&&!(0x0,t[_0x510fbe(0x3b2)])(_0x59735e))return _0x59735e;let _0x1f3b1a=_0x2070a0['getCurrentUnitOfType'](t[_0x510fbe(0x31f)][_0x510fbe(0x364)]),_0x421dd7=_0x1f3b1a==null?void 0x0:_0x1f3b1a[_0x510fbe(0x225)]();if(_0x421dd7&&!(0x0,t[_0x510fbe(0x3b2)])(_0x421dd7))return _0x421dd7;let _0x244bfc=_0x2070a0[_0x510fbe(0x3f5)](t[_0x510fbe(0x31f)][_0x510fbe(0x3cf)]);if(_0x244bfc)return _0x244bfc[_0x510fbe(0x225)]();let _0x6a3b37=_0x2070a0[_0x510fbe(0x19c)](t[_0x510fbe(0x31f)][_0x510fbe(0x364)])[_0x510fbe(0x474)](_0x5a4548=>!(0x0,t[_0x510fbe(0x3b2)])(_0x5a4548[_0x510fbe(0x225)]()));return _0x6a3b37?_0x6a3b37[_0x510fbe(0x225)]():null;}function w(_0x5ecc29){let {status$:_0x479d3c}=_0x5ecc29;return function(){return(0x0,c['jsx'])(te,{'status$':_0x479d3c});};}var ae='@univerjs-pro/collaboration-client-ui',oe=_0x43938c(0x39c);const T={'id':_0x43938c(0x30f),'type':t[_0x43938c(0x328)]['OPERATION'],'handler':(_0x32a3e0,_0x69be3f)=>{const _0x4fa69a=_0x43938c;let _0x526225=_0x32a3e0[_0x4fa69a(0x2b0)](n[_0x4fa69a(0x2f4)])[_0x4fa69a(0x2b0)](_0x69be3f[_0x4fa69a(0x1ad)]);if(!_0x526225)return!0x1;switch(_0x69be3f['update']['type']){case _0x4fa69a(0x478):return _0x526225[_0x4fa69a(0x1b8)](_0x69be3f['update'][_0x4fa69a(0x188)]),!0x0;case _0x4fa69a(0x254):return _0x526225['removeRemotePresence'](_0x69be3f['update']['unitId'],_0x69be3f[_0x4fa69a(0x23e)][_0x4fa69a(0x387)]),!0x0;case'clear':return _0x526225[_0x4fa69a(0x243)](_0x69be3f[_0x4fa69a(0x23e)][_0x4fa69a(0x410)]),!0x0;default:return!0x1;}}},se={};let E=class extends t[_0x43938c(0x1bf)]{constructor(_0x51f143,_0x24a549){const _0x5a06f8=_0x43938c;super(),this[_0x5a06f8(0x415)]=_0x51f143,this[_0x5a06f8(0x34f)]=_0x24a549,this[_0x5a06f8(0x42f)]();}[_0x43938c(0x42f)](){const _0x371077=_0x43938c;let _0x1c1e5f=this;this[_0x371077(0x198)](this[_0x371077(0x415)][_0x371077(0x32d)]({'onBeforePasteImage':async _0x36a037=>{const _0x47b04d=_0x371077;let _0x2c5c16=await _0x1c1e5f['_imageIoService'][_0x47b04d(0x2bf)](_0x36a037);return _0x2c5c16?{'source':_0x2c5c16[_0x47b04d(0x235)],'imageSourceType':_0x2c5c16[_0x47b04d(0x1c8)]}:null;}}));}};E=S([x(0x0,f[_0x43938c(0x2d7)]),x(0x1,t['IImageIoService'])],E);const ce=['purple.300',_0x43938c(0x33a),'green.600','red.300','blue.400','yellow.400'];var D=class extends t['Disposable']{constructor(..._0x5d1c53){const _0x2032bc=_0x43938c;super(..._0x5d1c53),b(this,'_assignedColors',new Map()),b(this,_0x2032bc(0x3da),0x0);}[_0x43938c(0x2f6)](_0x15a0f3){const _0x28d0fa=_0x43938c;if(this[_0x28d0fa(0x3a2)][_0x28d0fa(0x29f)](_0x15a0f3))return this[_0x28d0fa(0x3a2)]['get'](_0x15a0f3);let _0x27327f=ce[this[_0x28d0fa(0x3da)]];return this[_0x28d0fa(0x3da)]=(this[_0x28d0fa(0x3da)]+0x1)%ce['length'],this['_assignedColors'][_0x28d0fa(0x478)](_0x15a0f3,_0x27327f),_0x27327f;}};function le(_0x27c928){const _0x26e8b6=_0x43938c;let _0x2fde53='';for(let _0x49b626 of _0x27c928){let {startOffset:_0x3a0758,endOffset:_0x2f2c30,isActive:_0x5c6186,rangeType:_0x33ee23,segmentId:_0x596371,segmentPage:_0x12f3a0}=_0x49b626;_0x2fde53[_0x26e8b6(0x25c)]&&(_0x2fde53+=','),_0x2fde53+=_0x3a0758+':'+_0x2f2c30+':'+(_0x5c6186?'1':'0')+':'+_0x33ee23+':'+_0x596371+':'+_0x12f3a0;}return _0x2fde53;}function ue(_0x5ba81b){const _0x5bd246=_0x43938c;let _0x3cf339=_0x5ba81b['split'](','),_0x471853=[];for(let _0x59e3b2 of _0x3cf339){let [_0x5dc4e0,_0x299326,_0x575ceb,_0x1e1373,_0x1424ce,_0x3691a9]=_0x59e3b2[_0x5bd246(0x2eb)](':');_0x471853['push']({'startOffset':Number(_0x5dc4e0),'endOffset':Number(_0x299326),'collapsed':_0x5dc4e0===_0x299326,'isActive':_0x575ceb==='1','rangeType':_0x1e1373===t[_0x5bd246(0x432)][_0x5bd246(0x3f3)]?t[_0x5bd246(0x432)][_0x5bd246(0x3f3)]:t[_0x5bd246(0x432)][_0x5bd246(0x25f)],'segmentId':typeof _0x1424ce==_0x5bd246(0x3b4)?String(_0x1424ce):'','segmentPage':Number(_0x3691a9??-0x1)});}return _0x471853[_0x5bd246(0x2c7)](_0x28390a=>_0x28390a['isActive'])||(_0x471853[0x0][_0x5bd246(0x440)]=!0x0),_0x471853;}var O=class extends t[_0x43938c(0x1bf)]{constructor(..._0x819eb3){const _0x2badde=_0x43938c;super(..._0x819eb3),b(this,_0x2badde(0x3ab),new r['BehaviorSubject'](null)),b(this,'collabCursorState$',this[_0x2badde(0x3ab)]['asObservable']());}['syncEditingCollabCursor'](_0x580562){const _0x30122a=_0x43938c;let {unitID:_0x2ff49b,memberID:_0x483993,textRanges:_0x5dca64}=_0x580562,_0x12334b=le(_0x5dca64);if(_0x12334b==='')return;let _0xaeb4ca={'unitID':_0x2ff49b,'memberID':_0x483993,'selection':_0x12334b};this[_0x30122a(0x3ab)][_0x30122a(0x1a4)](_0xaeb4ca);}};let k=class extends t[_0x43938c(0x1bf)]{get['cursorInfo'](){const _0x3e9772=_0x43938c;return this['_cursorInfo$'][_0x3e9772(0x237)]();}get[_0x43938c(0x370)](){const _0x10d407=_0x43938c;return this[_0x10d407(0x351)][_0x10d407(0x237)]();}constructor(_0x12650a,_0x2316b5,_0x34dc0a,_0x209f45,_0x3e7898,_0x10d331,_0xc29388,_0x158a4b,_0x531e09){const _0x239613=_0x43938c;super(),this['unitID']=_0x12650a,this[_0x239613(0x265)]=_0x2316b5,this['_injector']=_0x34dc0a,this[_0x239613(0x452)]=_0x209f45,this[_0x239613(0x475)]=_0x3e7898,this[_0x239613(0x371)]=_0x10d331,this[_0x239613(0x240)]=_0xc29388,this['_univerInstanceService']=_0x158a4b,this['_commandService']=_0x531e09,b(this,_0x239613(0x34d),!0x1),b(this,'_init',!0x1),b(this,_0x239613(0x3ad),new r[(_0x239613(0x325))](new Map())),b(this,_0x239613(0x216),this[_0x239613(0x3ad)][_0x239613(0x1a8)]()),b(this,_0x239613(0x351),new r[(_0x239613(0x325))]([])),b(this,'roomMembers$',this[_0x239613(0x351)][_0x239613(0x42a)]((0x0,r[_0x239613(0x446)])(0x12c))),b(this,_0x239613(0x349),(0x0,t[_0x239613(0x2cc)])(_0x3dde86=>{const _0x4289d9=_0x239613;let _0x1e6df5={'eventID':l[_0x4289d9(0x1f2)][_0x4289d9(0x2fd)],'data':{'unitID':this[_0x4289d9(0x250)],'memberID':this['_session'][_0x4289d9(0x393)](),'selection':le(_0x3dde86)}};this[_0x4289d9(0x265)][_0x4289d9(0x251)](_0x1e6df5,this[_0x4289d9(0x250)]);},0x64));}[_0x43938c(0x202)](){const _0x588fbb=_0x43938c;super[_0x588fbb(0x202)](),this[_0x588fbb(0x3ad)][_0x588fbb(0x1a4)](new Map()),this['_cursorInfo$'][_0x588fbb(0x183)](),this[_0x588fbb(0x351)][_0x588fbb(0x1a4)]([]),this[_0x588fbb(0x351)][_0x588fbb(0x183)]();}[_0x43938c(0x427)](){const _0x380c2a=_0x43938c;this['_init']||(this[_0x380c2a(0x42f)]=!0x0,this[_0x380c2a(0x265)]['sessionStatus$'][_0x380c2a(0x42a)]((0x0,r[_0x380c2a(0x406)])(this[_0x380c2a(0x271)]))[_0x380c2a(0x3a7)](_0x47b5e3=>{const _0xda6e3a=_0x380c2a;_0x47b5e3===e[_0xda6e3a(0x3fe)][_0xda6e3a(0x34c)]?this[_0xda6e3a(0x479)]():this[_0xda6e3a(0x447)]();}),this[_0x380c2a(0x265)][_0x380c2a(0x2e8)][_0x380c2a(0x42a)]((0x0,r['takeUntil'])(this[_0x380c2a(0x271)]))['subscribe'](_0x41e102=>{const _0x189b4c=_0x380c2a;let _0x280295=_0x41e102['eventID'];_0x280295===l['CollaborationEvent'][_0x189b4c(0x2fd)]&&this['_onCursorUpdate'](_0x41e102),_0x280295===l[_0x189b4c(0x1f2)]['USERS_LEAVE']&&this[_0x189b4c(0x1cc)](_0x41e102);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2256cc=>{const _0x295018=_0x380c2a;let _0x2a4d8d=_0x2256cc[_0x295018(0x1c5)];_0x2a4d8d!=null&&this[_0x295018(0x34d)]&&_0x2256cc['id']===d[_0x295018(0x424)]['id']&&_0x2a4d8d[_0x295018(0x410)]===this['unitID']&&_0x2a4d8d[_0x295018(0x31a)]===!0x1&&_0x2a4d8d[_0x295018(0x17a)][_0x295018(0x25c)]>0x0&&this[_0x295018(0x349)](_0x2a4d8d[_0x295018(0x17a)]);})),this['_syncEditingCollabCursorService'][_0x380c2a(0x3b8)][_0x380c2a(0x42a)]((0x0,r[_0x380c2a(0x406)])(this[_0x380c2a(0x271)]))[_0x380c2a(0x3a7)](_0x307cdf=>{const _0x281626=_0x380c2a;if((_0x307cdf==null?void 0x0:_0x307cdf[_0x281626(0x250)])!==this[_0x281626(0x250)])return;let _0x105221={'eventID':l[_0x281626(0x1f2)]['UPDATE_CURSOR'],'data':_0x307cdf};this[_0x281626(0x1cf)](_0x105221);}),this[_0x380c2a(0x198)](this[_0x380c2a(0x1ee)]['onCommandExecuted'](_0x244413=>{const _0x5aa123=_0x380c2a;if(_0x244413[_0x5aa123(0x1c5)]==null)return;let _0x56cf2f=_0x244413[_0x5aa123(0x1c5)];if(_0x244413['id']!==d['RichTextEditingMutation']['id']||_0x56cf2f[_0x5aa123(0x410)]!==this['unitID'])return;let _0xe88c7c={'id':_0x5aa123(0x473),'params':_0x56cf2f},_0x23ae77=this['cursorInfo'];for(let [_0x528a8b,_0x261972]of _0x23ae77){let _0x38fee3={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x5aa123(0x250)],'actions':null,'textRanges':_0x261972[_0x5aa123(0x17a)]}},_0x3cc4a6=this['_transformService'][_0x5aa123(0x281)](_0xe88c7c,_0x38fee3,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x3cc4a6))throw _0x3cc4a6[_0x5aa123(0x22f)];_0x23ae77[_0x5aa123(0x478)](_0x528a8b,{..._0x261972,'ranges':_0x3cc4a6['m2Prime'][_0x5aa123(0x1c5)]['textRanges']});}queueMicrotask(()=>{const _0x1842c2=_0x5aa123;this['_cursorInfo$'][_0x1842c2(0x1a4)](_0x23ae77);});})));}['_onCursorUpdate'](_0x50d883){const _0x35e950=_0x43938c;var _0x3ce449;let {memberID:_0x5472ce,selection:_0x302543}=_0x50d883[_0x35e950(0x187)],_0x5cfcb5=ue(_0x302543),_0x5861d3=((_0x3ce449=this[_0x35e950(0x475)][_0x35e950(0x267)](this['unitID'],_0x5472ce))==null?void 0x0:_0x3ce449[_0x35e950(0x302)])??_0x35e950(0x348),_0x2a0830={'color':this['_colorAssignService'][_0x35e950(0x2f6)](_0x5472ce),'name':_0x5861d3,'ranges':_0x5cfcb5},_0x32ea8b=this[_0x35e950(0x1e9)];_0x32ea8b[_0x35e950(0x478)](_0x5472ce,_0x2a0830),this[_0x35e950(0x3ad)][_0x35e950(0x1a4)](_0x32ea8b);}[_0x43938c(0x1cc)](_0x44fb1a){const _0x33f969=_0x43938c;let {memberID:_0x13f6ac}=_0x44fb1a[_0x33f969(0x187)],_0xa3e558=this[_0x33f969(0x1e9)];_0xa3e558[_0x33f969(0x354)](_0x13f6ac),this[_0x33f969(0x3ad)]['next'](_0xa3e558);}['_toggleOnline'](){const _0x5e0d45=_0x43938c;var _0x5a86d2;if(this[_0x5e0d45(0x34d)]=!0x0,((_0x5a86d2=this[_0x5e0d45(0x228)]['getFocusedUnit']())==null?void 0x0:_0x5a86d2[_0x5e0d45(0x225)]())!==this[_0x5e0d45(0x250)])return;let _0x2eae7e=this['_injector'][_0x5e0d45(0x2b0)](d['DocSelectionManagerService'])[_0x5e0d45(0x3e8)]();Array[_0x5e0d45(0x244)](_0x2eae7e)&&_0x2eae7e[_0x5e0d45(0x25c)]>0x0&&this['_updateLocalCursor'](_0x2eae7e);}['_toggleOffline'](){const _0x1a5aee=_0x43938c;this[_0x1a5aee(0x34d)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x306)])),x(0x5,(0x0,t[_0x43938c(0x360)])(O)),x(0x6,l[_0x43938c(0x314)]),x(0x7,t[_0x43938c(0x201)]),x(0x8,t[_0x43938c(0x261)])],k);const de=()=>{let _0x122174=[],_0x23bb61=!0x1;return _0x5d3f75=>{const _0x660317=_0x5041;_0x122174[_0x660317(0x34e)](_0x5d3f75),_0x23bb61||(_0x23bb61=!0x0,setTimeout(()=>{const _0x3208c0=_0x660317;_0x122174[_0x3208c0(0x28b)](_0x41cb5e=>_0x41cb5e()),_0x122174=[],_0x23bb61=!0x1;}));};};let A=class extends t[_0x43938c(0x1bf)]{get['cursorInfo'](){const _0x3b5927=_0x43938c;return this[_0x3b5927(0x3ad)][_0x3b5927(0x237)]();}get[_0x43938c(0x370)](){const _0x1892b5=_0x43938c;return this[_0x1892b5(0x351)][_0x1892b5(0x237)]();}constructor(_0x4d1289,_0x14be8f,_0x235153,_0x39297d,_0x3da7fc,_0x372e12,_0x21ac2d,_0x4124de){const _0x4bc347=_0x43938c;super(),this[_0x4bc347(0x250)]=_0x4d1289,this['_session']=_0x14be8f,this[_0x4bc347(0x458)]=_0x235153,this[_0x4bc347(0x452)]=_0x39297d,this[_0x4bc347(0x475)]=_0x3da7fc,this[_0x4bc347(0x228)]=_0x372e12,this[_0x4bc347(0x1ee)]=_0x21ac2d,this[_0x4bc347(0x17e)]=_0x4124de,b(this,_0x4bc347(0x34d),!0x1),b(this,'_init',!0x1),b(this,_0x4bc347(0x3ad),new r[(_0x4bc347(0x325))](new Map())),b(this,'cursorInfo$',this[_0x4bc347(0x3ad)]['asObservable']()),b(this,_0x4bc347(0x351),new r['BehaviorSubject']([])),b(this,'roomMembers$',this[_0x4bc347(0x351)][_0x4bc347(0x42a)]((0x0,r['debounceTime'])(0x12c))),b(this,_0x4bc347(0x349),(0x0,t[_0x4bc347(0x2cc)])((_0x51baef,_0xab42e)=>{const _0x3ecd9c=_0x4bc347;let _0x506223={'eventID':l[_0x3ecd9c(0x1f2)][_0x3ecd9c(0x2fd)],'data':{'unitID':this[_0x3ecd9c(0x250)],'memberID':this[_0x3ecd9c(0x265)][_0x3ecd9c(0x393)](),'selection':(0x0,h[_0x3ecd9c(0x24e)])(_0x51baef,_0xab42e[_0x3ecd9c(0x355)])}};this[_0x3ecd9c(0x265)]['send'](_0x506223,this[_0x3ecd9c(0x250)]);},0x64));}[_0x43938c(0x202)](){const _0x34a35d=_0x43938c;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x34a35d(0x3ad)]['complete'](),this[_0x34a35d(0x351)]['next']([]),this['_roomMembers$'][_0x34a35d(0x183)]();}[_0x43938c(0x427)](){const _0xd7c584=_0x43938c;this['_init']||(this[_0xd7c584(0x42f)]=!0x0,this['_session']['sessionStatus$'][_0xd7c584(0x42a)]((0x0,r[_0xd7c584(0x406)])(this[_0xd7c584(0x271)]))[_0xd7c584(0x3a7)](_0x2366be=>{const _0x3e809c=_0xd7c584;_0x2366be===e[_0x3e809c(0x3fe)][_0x3e809c(0x34c)]?this[_0x3e809c(0x479)]():this['_toggleOffline']();}),this[_0xd7c584(0x265)][_0xd7c584(0x2e8)]['pipe']((0x0,r['takeUntil'])(this[_0xd7c584(0x271)]))[_0xd7c584(0x3a7)](_0x3a4a12=>{const _0x3d988c=_0xd7c584;let _0x6bad86=_0x3a4a12[_0x3d988c(0x20b)];_0x6bad86===l['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x3d988c(0x1cf)](_0x3a4a12),_0x6bad86===l['CollaborationEvent'][_0x3d988c(0x255)]&&this['_onCursorDelete'](_0x3a4a12);}),this['_onRefRangeChange'](),this[_0xd7c584(0x198)](this[_0xd7c584(0x1ee)]['onCommandExecuted'](_0x581212=>{const _0x4336a3=_0xd7c584;if(this[_0x4336a3(0x34d)]&&_0x581212['id']===g['SetSelectionsOperation']['id']&&_0x581212[_0x4336a3(0x1c5)][_0x4336a3(0x410)]===this[_0x4336a3(0x250)]){let _0x5cb7ff=_0x581212['params'];this['_updateLocalCursor'](_0x5cb7ff[_0x4336a3(0x3ac)],_0x5cb7ff[_0x4336a3(0x3d9)][0x0]);}})));}[_0x43938c(0x1cf)](_0x2a97a8){const _0x49797a=_0x43938c;var _0x4097a3;let {memberID:_0x205b48,selection:_0x29a9c8}=_0x2a97a8[_0x49797a(0x187)],{sheetName:_0x159d50,range:_0x2dfeee}=(0x0,h[_0x49797a(0x30b)])(_0x29a9c8),_0x25629c={'name':((_0x4097a3=this['_memberService'][_0x49797a(0x267)](this[_0x49797a(0x250)],_0x205b48))==null?void 0x0:_0x4097a3[_0x49797a(0x302)])??'Unknown\x20user','range':this[_0x49797a(0x44b)](_0x159d50,_0x2dfeee),'sheetID':_0x159d50,'color':this['_colorAssignService'][_0x49797a(0x2f6)](_0x205b48),'selection':_0x29a9c8},_0x41e70a=this[_0x49797a(0x1e9)];_0x41e70a[_0x49797a(0x478)](_0x205b48,_0x25629c),this['_cursorInfo$']['next'](_0x41e70a);}['_onCursorDelete'](_0x37ab66){const _0x5db6ef=_0x43938c;let {memberID:_0x44a6e9}=_0x37ab66[_0x5db6ef(0x187)],_0x18f08a=this[_0x5db6ef(0x1e9)];_0x18f08a[_0x5db6ef(0x354)](_0x44a6e9),this['_cursorInfo$']['next'](_0x18f08a);}[_0x43938c(0x44b)](_0x176fa1,_0x1f72fb){const _0x539234=_0x43938c;var _0x487874;let _0x2141fd=(_0x487874=this[_0x539234(0x228)]['getUnit'](this[_0x539234(0x250)],t['UniverInstanceType'][_0x539234(0x3cf)]))==null||(_0x487874=_0x487874['getSheetBySheetId'](_0x176fa1))==null?void 0x0:_0x487874[_0x539234(0x372)]();return(_0x2141fd==null?void 0x0:_0x2141fd[_0x539234(0x474)](_0x3526f6=>t[_0x539234(0x221)]['contains'](_0x3526f6,_0x1f72fb)))||_0x1f72fb;}[_0x43938c(0x3e9)](){const _0x188c28=_0x43938c;let _0x5f1d10=new t[(_0x188c28(0x278))](),_0x455d25=de(),_0x16f072=()=>{const _0x21539f=_0x188c28;_0x5f1d10[_0x21539f(0x202)]();let _0x161aae=(_0x32f681,_0x242ef8,_0x7d9782,_0x1a6bca)=>{const _0x4463fb=_0x21539f;let _0x2978c3=[];switch(_0x32f681['id']){case g['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:_0x2978c3=(0x0,g['handleDeleteRangeMoveLeft'])(_0x32f681,_0x1a6bca);break;case g['EffectRefRangId'][_0x4463fb(0x19f)]:_0x2978c3=(0x0,g['handleDeleteRangeMoveUp'])(_0x32f681,_0x1a6bca);break;case g['EffectRefRangId'][_0x4463fb(0x399)]:_0x2978c3=(0x0,g[_0x4463fb(0x33b)])(_0x32f681,_0x1a6bca);break;case g['EffectRefRangId'][_0x4463fb(0x3c6)]:_0x2978c3=(0x0,g[_0x4463fb(0x42b)])(_0x32f681,_0x1a6bca);break;case g[_0x4463fb(0x386)][_0x4463fb(0x1da)]:_0x2978c3=(0x0,g[_0x4463fb(0x2bd)])(_0x32f681,_0x1a6bca);break;case g['EffectRefRangId'][_0x4463fb(0x368)]:_0x2978c3=(0x0,g[_0x4463fb(0x36f)])(_0x32f681,_0x1a6bca);break;case g[_0x4463fb(0x386)][_0x4463fb(0x200)]:_0x2978c3=(0x0,g[_0x4463fb(0x43c)])(_0x32f681,_0x1a6bca);break;case g[_0x4463fb(0x386)][_0x4463fb(0x343)]:_0x2978c3=(0x0,g['handleIRemoveCol'])(_0x32f681,_0x1a6bca);break;case g[_0x4463fb(0x386)]['RemoveRowCommandId']:_0x2978c3=(0x0,g[_0x4463fb(0x2fe)])(_0x32f681,_0x1a6bca);}let _0x523fa0=(0x0,g['runRefRangeMutations'])(_0x2978c3,_0x1a6bca),_0xed01e4=this['cursorInfo'][_0x4463fb(0x2b0)](_0x242ef8);if(_0xed01e4&&_0x523fa0){let _0x3c31f4={..._0xed01e4,'range':_0x523fa0};this[_0x4463fb(0x1e9)][_0x4463fb(0x478)](_0x242ef8,_0x3c31f4),_0x455d25(()=>{const _0x572cb8=_0x4463fb;let _0x37ed6e=this['_refRangeService'][_0x572cb8(0x21d)](_0x523fa0,_0x4639a4=>(_0x37ed6e[_0x572cb8(0x202)](),_0x161aae(_0x4639a4,_0x242ef8,_0x7d9782,_0x523fa0)));_0x5f1d10[_0x572cb8(0x315)](_0x37ed6e);});}return{'redos':[],'undos':[]};};this[_0x21539f(0x1e9)][_0x21539f(0x28b)]((_0x2f7e12,_0xe3c3c7)=>{const _0x495609=_0x21539f;let {range:_0x1a69ef,sheetID:_0x2641fc}=_0x2f7e12,_0x156e47=this[_0x495609(0x17e)][_0x495609(0x21d)](_0x1a69ef,_0x325995=>(_0x156e47['dispose'](),_0x161aae(_0x325995,_0xe3c3c7,_0x2641fc,_0x1a69ef)));_0x5f1d10['add'](_0x156e47);});};this[_0x188c28(0x198)]((0x0,t[_0x188c28(0x189)])(this[_0x188c28(0x3ad)][_0x188c28(0x3a7)](()=>{_0x16f072();})));}[_0x43938c(0x479)](){const _0xfca70c=_0x43938c;var _0x4b423b,_0x12bdc0;if(this[_0xfca70c(0x34d)]=!0x0,((_0x4b423b=this['_univerInstanceService'][_0xfca70c(0x2ce)]())==null?void 0x0:_0x4b423b[_0xfca70c(0x225)]())!==this[_0xfca70c(0x250)])return;let _0x2dcea6=(_0x12bdc0=this[_0xfca70c(0x458)][_0xfca70c(0x2b0)](g['SheetsSelectionsService'])[_0xfca70c(0x1c6)]())==null?void 0x0:_0x12bdc0[0x0],_0x58b12f=this['_univerInstanceService'][_0xfca70c(0x3f5)](t[_0xfca70c(0x31f)]['UNIVER_SHEET'])[_0xfca70c(0x340)]();_0x2dcea6&&_0x58b12f&&this[_0xfca70c(0x349)](_0x58b12f['getSheetId'](),_0x2dcea6);}[_0x43938c(0x447)](){const _0x4856b7=_0x43938c;this[_0x4856b7(0x34d)]=!0x1;}};A=S([x(0x2,(0x0,t['Inject'])(t[_0x43938c(0x2c2)])),x(0x3,(0x0,t[_0x43938c(0x360)])(D)),x(0x4,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x306)])),x(0x5,t[_0x43938c(0x201)]),x(0x6,t[_0x43938c(0x261)]),x(0x7,(0x0,t[_0x43938c(0x360)])(g[_0x43938c(0x3f7)]))],A);let j=class extends t[_0x43938c(0x1bf)]{constructor(_0x1a5da7,_0x1fe885,_0x2061af){const _0x17dd88=_0x43938c;super(),this['_univerInstanceService']=_0x1a5da7,this[_0x17dd88(0x458)]=_0x1fe885,this[_0x17dd88(0x434)]=_0x2061af,b(this,'_entities',new Map()),b(this,'_entityInit$',new r[(_0x17dd88(0x429))]()),this[_0x17dd88(0x42f)]();}[_0x43938c(0x202)](){const _0x5bdfbc=_0x43938c;super[_0x5bdfbc(0x202)](),this[_0x5bdfbc(0x3fd)]['complete'](),this[_0x5bdfbc(0x2a7)][_0x5bdfbc(0x28b)](_0x1a1ad8=>_0x1a1ad8['dispose']());}[_0x43938c(0x28e)](_0x25aef3){const _0x31a3a7=_0x43938c;let _0x8bd794=this[_0x31a3a7(0x2a7)][_0x31a3a7(0x2b0)](_0x25aef3);return _0x8bd794?_0x8bd794[_0x31a3a7(0x216)]:this[_0x31a3a7(0x3fd)]['pipe']((0x0,r[_0x31a3a7(0x39f)])(_0x4d3036=>_0x4d3036['unitID']===_0x25aef3),(0x0,r[_0x31a3a7(0x3cd)])(_0x5d1e0e=>_0x5d1e0e['cursorInfo$']));}[_0x43938c(0x42f)](){const _0xcd3c74=_0x43938c;this[_0xcd3c74(0x228)][_0xcd3c74(0x1d0)](t[_0xcd3c74(0x31f)][_0xcd3c74(0x3cf)])['pipe']((0x0,r[_0xcd3c74(0x406)])(this[_0xcd3c74(0x271)]))[_0xcd3c74(0x3a7)](async _0x499274=>{const _0x2cabd5=_0xcd3c74;let _0x43e935=_0x499274[_0x2cabd5(0x37e)][_0x2cabd5(0x225)](),_0xe5772c=await this[_0x2cabd5(0x1e8)](_0x43e935);this[_0x2cabd5(0x3fd)]['next'](_0xe5772c),this[_0x2cabd5(0x2a7)]['set'](_0x43e935,_0xe5772c);}),this[_0xcd3c74(0x228)][_0xcd3c74(0x1d0)](t[_0xcd3c74(0x31f)]['UNIVER_DOC'])[_0xcd3c74(0x42a)]((0x0,r[_0xcd3c74(0x406)])(this[_0xcd3c74(0x271)]))['pipe']((0x0,r[_0xcd3c74(0x39f)])(_0x32dd8f=>!_0x32dd8f[_0xcd3c74(0x37e)]['getUnitId']()[_0xcd3c74(0x2ac)]('__')))[_0xcd3c74(0x3a7)](async _0xefe874=>{const _0x1b10a1=_0xcd3c74;let {unit:_0x648a51}=_0xefe874,_0x349610=_0x648a51[_0x1b10a1(0x225)](),_0x578e75=await this['_startDocCollabCursor'](_0x349610);this[_0x1b10a1(0x3fd)]['next'](_0x578e75),this[_0x1b10a1(0x2a7)]['set'](_0x349610,_0x578e75);}),(0x0,r['merge'])(this[_0xcd3c74(0x228)][_0xcd3c74(0x2e9)](t[_0xcd3c74(0x31f)][_0xcd3c74(0x364)]),this['_univerInstanceService'][_0xcd3c74(0x2e9)](t['UniverInstanceType'][_0xcd3c74(0x3cf)]))[_0xcd3c74(0x42a)]((0x0,r['takeUntil'])(this[_0xcd3c74(0x271)]))[_0xcd3c74(0x3a7)](_0x4f69e2=>{const _0x2b27ab=_0xcd3c74;let _0x333e48=_0x4f69e2[_0x2b27ab(0x225)](),_0x356a41=this['_entities']['get'](_0x333e48);_0x356a41&&(_0x356a41['dispose'](),this['_entities'][_0x2b27ab(0x354)](_0x333e48));});}async[_0x43938c(0x1e8)](_0x1db288){const _0x53c1f5=_0x43938c;let _0x9e9380=await this['_collabSessionService'][_0x53c1f5(0x2cf)](_0x1db288),_0x6d9519=this[_0x53c1f5(0x458)]['createInstance'](A,_0x1db288,_0x9e9380);return _0x6d9519[_0x53c1f5(0x427)](),_0x6d9519;}async[_0x43938c(0x2e4)](_0x53cd59){const _0x43c1be=_0x43938c;let _0x35c46c=await this[_0x43c1be(0x434)]['requireSession'](_0x53cd59),_0x3dfd37=this[_0x43c1be(0x458)][_0x43c1be(0x24a)](k,_0x53cd59,_0x35c46c);return _0x3dfd37[_0x43c1be(0x427)](),_0x3dfd37;}};j=S([x(0x0,t[_0x43938c(0x201)]),x(0x1,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x2,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x1a7)]))],j);function M(_0x5db5ee,_0xfb8b41){const _0x35ef88=_0x43938c;_0x5db5ee[_0x35ef88(0x3a0)](),_0x5db5ee[_0x35ef88(0x17d)]=_0x35ef88(0x333);let _0x5d0797=_0x5db5ee[_0x35ef88(0x41b)](_0xfb8b41)[_0x35ef88(0x1f1)];return _0x5db5ee[_0x35ef88(0x241)](),Math[_0x35ef88(0x2f0)](_0x5d0797+0x8,0xc8);}function fe(_0x440dba,_0x2b17e8){const _0x5ae3cc=_0x43938c;let {radius:_0x29d5cf,width:_0x4888f7,height:_0x1c7c2c}=_0x2b17e8;_0x29d5cf??=0x0,_0x4888f7??=0x1e,_0x1c7c2c??=0x1e;let _0x100949=0x0,_0x3c60a6=0x0,_0xd276af=0x0;_0x100949=_0x3c60a6=_0xd276af=Math['min'](_0x29d5cf,_0x4888f7/0x2,_0x1c7c2c/0x2),_0x440dba['beginPath'](),_0x440dba['moveTo'](_0x100949,0x0),_0x440dba[_0x5ae3cc(0x466)](_0x4888f7-_0x3c60a6,0x0),_0x440dba[_0x5ae3cc(0x2e7)](_0x4888f7-_0x3c60a6,_0x3c60a6,_0x3c60a6,Math['PI']*0x3/0x2,0x0,!0x1),_0x440dba[_0x5ae3cc(0x466)](_0x4888f7,_0x1c7c2c-_0xd276af),_0x440dba[_0x5ae3cc(0x2e7)](_0x4888f7-_0xd276af,_0x1c7c2c-_0xd276af,_0xd276af,0x0,Math['PI']/0x2,!0x1),_0x440dba[_0x5ae3cc(0x466)](0x0,_0x1c7c2c),_0x440dba[_0x5ae3cc(0x466)](0x0,_0x100949),_0x440dba['arc'](_0x100949,_0x100949,_0x100949,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x440dba['closePath'](),_0x2b17e8[_0x5ae3cc(0x268)]&&(_0x440dba['save'](),_0x440dba[_0x5ae3cc(0x1d7)]=_0x2b17e8[_0x5ae3cc(0x268)],_0x2b17e8[_0x5ae3cc(0x19a)]===_0x5ae3cc(0x419)?_0x440dba['fill'](_0x5ae3cc(0x419)):_0x440dba[_0x5ae3cc(0x268)](),_0x440dba[_0x5ae3cc(0x241)]());}var pe=class e extends p[_0x43938c(0x195)]{constructor(_0x43c24a,_0x9fcb8e){const _0x22d53d=_0x43938c;super(_0x43c24a,_0x9fcb8e),b(this,'color',void 0x0),b(this,'text',void 0x0),this['color']=_0x9fcb8e==null?void 0x0:_0x9fcb8e[_0x22d53d(0x1df)],this[_0x22d53d(0x2ef)]=_0x9fcb8e==null?void 0x0:_0x9fcb8e[_0x22d53d(0x2ef)];}static['drawWith'](_0x3294d6,_0x2752c2){const _0x5bc572=_0x43938c;let {text:_0x14a7e7,color:_0x4aed3b}=_0x2752c2;_0x3294d6[_0x5bc572(0x3a0)](),_0x3294d6[_0x5bc572(0x17d)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0xde6102=_0x3294d6[_0x5bc572(0x41b)](_0x14a7e7)[_0x5bc572(0x1f1)];if(fe(_0x3294d6,{'height':0x14,'radius':0x4,'width':M(_0x3294d6,_0x14a7e7),'fill':_0x4aed3b,'evented':!0x1}),_0x3294d6[_0x5bc572(0x1d7)]=_0x5bc572(0x1be),_0xde6102>0xc0){let _0x522e77='',_0x348c4f=0x0;for(let _0x4d7f78 of _0x14a7e7){let _0x52b648=_0x3294d6[_0x5bc572(0x41b)](_0x4d7f78)[_0x5bc572(0x1f1)];if(_0x348c4f+_0x52b648<=0xc0-_0x3294d6[_0x5bc572(0x41b)](_0x5bc572(0x1ba))['width'])_0x522e77+=_0x4d7f78,_0x348c4f+=_0x52b648;else{_0x522e77+='...';break;}}_0x3294d6[_0x5bc572(0x2db)](_0x522e77,0x4,0xf);}else _0x3294d6[_0x5bc572(0x2db)](_0x14a7e7,0x4,0xf);_0x3294d6[_0x5bc572(0x241)]();}[_0x43938c(0x1e4)](_0x347504){const _0x1b186a=_0x43938c;e[_0x1b186a(0x2f3)](_0x347504,this);}};const N=_0x43938c(0x22a);var me=class{constructor(_0xd0831d,_0x37adb8,_0x219ca4,_0x541320){const _0x4b4b26=_0x43938c;this[_0x4b4b26(0x22c)]=_0xd0831d,this[_0x4b4b26(0x1a9)]=_0x37adb8,this[_0x4b4b26(0x1af)]=_0x219ca4,this[_0x4b4b26(0x445)]=_0x541320,b(this,_0x4b4b26(0x277),[]),b(this,'_anchor',null),b(this,_0x4b4b26(0x356),null),b(this,'_anchorDot',null),b(this,_0x4b4b26(0x39b),null),b(this,_0x4b4b26(0x1f5),null),this[_0x4b4b26(0x27c)]();}set[_0x43938c(0x39e)](_0x1bd440){const _0x5a93ff=_0x43938c;_0x1bd440?(this['_anchorDot']&&this['_anchorDot']['hide'](),this[_0x5a93ff(0x356)]&&this['_textBubble'][_0x5a93ff(0x1f4)]()):(this[_0x5a93ff(0x423)]&&this[_0x5a93ff(0x423)][_0x5a93ff(0x1f4)](),this[_0x5a93ff(0x356)]&&this[_0x5a93ff(0x356)][_0x5a93ff(0x1b0)]());}[_0x43938c(0x202)](){const _0x107a32=_0x43938c;for(let _0x2c150f of this[_0x107a32(0x277)])_0x2c150f['dispose']();this[_0x107a32(0x356)]&&this[_0x107a32(0x356)]['dispose'](),this[_0x107a32(0x423)]&&this['_anchorDot'][_0x107a32(0x202)](),this[_0x107a32(0x1ca)]&&this['_anchor'][_0x107a32(0x202)](),this[_0x107a32(0x1f5)]&&this[_0x107a32(0x1f5)]();}[_0x43938c(0x27c)](){const _0x4b4b5b=_0x43938c;let {_docSkeleton:_0x31d0ff,_document:_0x548ab4}=this,{color:_0x1bbd24,name:_0x5f77b0,ranges:_0x4c4328}=this['_cursor'],_0x264823=_0x548ab4[_0x4b4b5b(0x3e0)](),{docsLeft:_0x4b4c12,docsTop:_0x32a272}=_0x264823,_0x257558=new f[(_0x4b4b5b(0x2cb))](_0x264823,_0x31d0ff);for(let {startOffset:_0x2d2b20,endOffset:_0x22501a,rangeType:_0x556a65,segmentId:_0x12481f,segmentPage:_0x450d55,collapsed:_0x5de371,isActive:_0x18cc57}of _0x4c4328){let _0x44e730=_0x31d0ff['findNodePositionByCharIndex'](_0x2d2b20,!0x0,_0x12481f,_0x450d55),_0xf3fd97=_0x31d0ff[_0x4b4b5b(0x246)](_0x22501a,!0x0,_0x12481f,_0x450d55);_0xf3fd97??=_0x31d0ff[_0x4b4b5b(0x246)](_0x22501a-0x1,!0x1,_0x12481f,_0x450d55);let _0x5d11a8=he(_0x44e730,_0xf3fd97);if(_0x18cc57&&_0x5d11a8[_0x4b4b5b(0x3d0)]){let {contentBoxPointGroup:_0x1bdde8}=_0x257558[_0x4b4b5b(0x3f1)](_0xf3fd97,_0xf3fd97);if(_0x1bdde8['length']===0x0)continue;this[_0x4b4b5b(0x365)](_0x1bbd24,_0x1bdde8,_0x4b4c12,_0x32a272,_0x5f77b0),this[_0x4b4b5b(0x1f5)]=this['_handleHover']();}if(_0x44e730&&_0xf3fd97){if(_0x556a65===t[_0x4b4b5b(0x432)][_0x4b4b5b(0x25f)]){let {pointGroup:_0x4c000e}=new f[(_0x4b4b5b(0x2d2))](_0x264823,_0x31d0ff)[_0x4b4b5b(0x3f1)](_0x44e730,_0xf3fd97)??{};if(_0x4c000e==null||_0x4c000e[_0x4b4b5b(0x25c)]===0x0)continue;this['_drawRectRange'](_0x1bbd24,_0x4c000e,_0x4b4c12,_0x32a272);}else{if(!_0x5de371&&_0x5d11a8['canRenderSelection']){let {borderBoxPointGroup:_0x4d6153}=_0x257558[_0x4b4b5b(0x3f1)](_0x44e730,_0xf3fd97);if(_0x4d6153[_0x4b4b5b(0x25c)]===0x0)continue;this['_drawTextRange'](_0x1bbd24,_0x4d6153,_0x4b4c12,_0x32a272);}}}}}[_0x43938c(0x365)](_0x407256,_0x3ad52a,_0x146c8a,_0x1c9f22,_0x26144){const _0x2b9b0e=_0x43938c;let {left:_0x4e3f7c,top:_0x4c957a,height:_0x5b1dbc}=this[_0x2b9b0e(0x2ae)](_0x3ad52a),_0x53cb5f=1.5/this[_0x2b9b0e(0x286)](),_0x54232d=new p[(_0x2b9b0e(0x1d5))](N+(0x0,t[_0x2b9b0e(0x3c8)])(0x6),{'left':_0x4e3f7c+_0x146c8a-_0x53cb5f,'top':_0x4c957a+_0x1c9f22,'height':_0x5b1dbc,'width':1.5,'fill':_0x407256||(0x0,p[_0x2b9b0e(0x2c9)])(t[_0x2b9b0e(0x220)]['black'],0x0),'strokeWidth':_0x53cb5f,'stroke':_0x2b9b0e(0x327),'evented':!0x0});this['_anchor']=_0x54232d,this[_0x2b9b0e(0x1a9)]['addObject'](_0x54232d,f['TEXT_RANGE_LAYER_INDEX']);let _0xd5a12=new p[(_0x2b9b0e(0x1d5))](N+(0x0,t[_0x2b9b0e(0x3c8)])(0x6),{'left':_0x4e3f7c+_0x146c8a-_0x53cb5f,'top':_0x4c957a+_0x1c9f22-0x2,'height':0x4,'width':0x4,'fill':_0x407256||(0x0,p[_0x2b9b0e(0x2c9)])(t[_0x2b9b0e(0x220)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x407256||(0x0,p['getColor'])(t['COLORS']['black'],0x0),'evented':!0x1});this[_0x2b9b0e(0x423)]=_0xd5a12,this[_0x2b9b0e(0x1a9)]['addObject'](_0xd5a12,f['TEXT_RANGE_LAYER_INDEX']);let _0x18ce9b=new pe(N+(0x0,t[_0x2b9b0e(0x3c8)])(0x6),{'left':_0x4e3f7c+_0x146c8a-_0x53cb5f,'top':_0x4c957a+_0x1c9f22-0x14,'text':_0x26144,'color':_0x407256});this[_0x2b9b0e(0x356)]=_0x18ce9b,this[_0x2b9b0e(0x1a9)][_0x2b9b0e(0x464)](_0x18ce9b,f[_0x2b9b0e(0x2d5)]),this[_0x2b9b0e(0x39e)]=!0x1;}[_0x43938c(0x426)](){const _0x5799c7=_0x43938c;let _0x821099=this[_0x5799c7(0x1ca)][_0x5799c7(0x26a)][_0x5799c7(0x2a8)](()=>{this['_hover']=!0x0;}),_0x46ee11=this['_anchor'][_0x5799c7(0x316)][_0x5799c7(0x2a8)](()=>{const _0x161a7d=_0x5799c7;this[_0x161a7d(0x39b)]&&clearTimeout(this[_0x161a7d(0x39b)]),this['_hideTimer']=setTimeout(()=>{const _0x494c09=_0x161a7d;this[_0x494c09(0x39e)]=!0x1;},0x7d0);});return()=>{const _0x26fda6=_0x5799c7;_0x821099[_0x26fda6(0x294)](),_0x46ee11[_0x26fda6(0x294)]();};}[_0x43938c(0x338)](_0x59812f,_0x395dcb,_0xa0e60c,_0x483414){const _0x2584c4=_0x43938c;let _0x6dd7e0=0.2,_0x36c442=new t[(_0x2584c4(0x3bf))](_0x59812f)[_0x2584c4(0x2de)](_0x6dd7e0)[_0x2584c4(0x2f5)](),_0x4eb73a=new p[(_0x2584c4(0x319))](_0x2584c4(0x2bc)+(0x0,t[_0x2584c4(0x3c8)])(0x6),{'pointsGroup':_0x395dcb,'fill':_0x36c442||(0x0,p[_0x2584c4(0x2c9)])(t[_0x2584c4(0x220)]['black'],_0x6dd7e0),'left':_0xa0e60c,'top':_0x483414,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2584c4(0x277)]['push'](_0x4eb73a),this['_scene'][_0x2584c4(0x464)](_0x4eb73a,f[_0x2584c4(0x2d5)]);}[_0x43938c(0x3db)](_0x2a1349,_0x3c455d,_0x544802,_0x4e273d){const _0x544f02=_0x43938c;let _0x4b5df8=0.2,_0x386ccc=new t[(_0x544f02(0x3bf))](_0x2a1349)[_0x544f02(0x2de)](_0x4b5df8)['toRgbString'](),_0x164cee=new p[(_0x544f02(0x319))](_0x544f02(0x3aa)+(0x0,t[_0x544f02(0x3c8)])(0x6),{'pointsGroup':_0x3c455d,'fill':_0x386ccc||(0x0,p[_0x544f02(0x2c9)])(t[_0x544f02(0x220)]['black'],_0x4b5df8),'left':_0x544802,'top':_0x4e273d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x544f02(0x34e)](_0x164cee),this[_0x544f02(0x1a9)][_0x544f02(0x464)](_0x164cee,f[_0x544f02(0x2d5)]);}[_0x43938c(0x2ae)](_0x4edd4a){let _0x34c86e=_0x4edd4a[0x0],_0x2c4c62=_0x34c86e[0x0],_0x52f75f=_0x34c86e[0x2],{x:_0x4032a8,y:_0x48f544}=_0x2c4c62,{x:_0x350a71,y:_0x13c600}=_0x52f75f;return{'left':_0x4032a8,'top':_0x48f544,'width':_0x350a71-_0x4032a8,'height':_0x13c600-_0x48f544};}[_0x43938c(0x286)](){const _0x13e874=_0x43938c;let {scaleX:_0x2d3005,scaleY:_0x52278a}=this[_0x13e874(0x1a9)][_0x13e874(0x3c7)]();return Math[_0x13e874(0x34b)](_0x2d3005,_0x52278a);}};function he(_0xca9735,_0x459355){const _0x3f967e=_0x43938c;if(!_0x459355)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0xca9735||_0xca9735[_0x3f967e(0x196)]!==_0x459355['pageType']||(_0xca9735[_0x3f967e(0x196)]===p[_0x3f967e(0x28d)]['HEADER']||_0xca9735[_0x3f967e(0x196)]===p[_0x3f967e(0x28d)][_0x3f967e(0x3be)])&&_0xca9735[_0x3f967e(0x22e)]!==_0x459355['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0xf51430=(0x0,p[_0x3f967e(0x3e5)])(_0xca9735),_0x5d9479=(0x0,p[_0x3f967e(0x3e5)])(_0x459355);return{'canRenderAnchor':!0x0,'canRenderSelection':_0xf51430==null||_0x5d9479==null?_0xf51430==null&&_0x5d9479==null:_0xf51430[_0x3f967e(0x363)]===_0x5d9479['pageIndex']&&_0xf51430[_0x3f967e(0x472)]===_0x5d9479[_0x3f967e(0x472)]&&_0xf51430['columnIndex']===_0x5d9479[_0x3f967e(0x1b3)]};}let P=class extends t[_0x43938c(0x1bf)]{constructor(_0x24ea7f,_0x4ad15c,_0x38c9ea,_0x3a4059,_0x106e55){const _0x4ab077=_0x43938c;super(),this[_0x4ab077(0x318)]=_0x24ea7f,this[_0x4ab077(0x37a)]=_0x4ad15c,this['_collabCursorController']=_0x38c9ea,this[_0x4ab077(0x1ee)]=_0x3a4059,this['_themeService']=_0x106e55,b(this,_0x4ab077(0x2df),[]),b(this,_0x4ab077(0x1ae),[]),this['_init']();}['_init'](){const _0x4d6df9=_0x43938c;let _0x3303dc=this['_context']['unitId'],_0x207f4e=this[_0x4d6df9(0x37a)];this[_0x4d6df9(0x198)]((0x0,r[_0x4d6df9(0x3d8)])([this['_collabCursorController'][_0x4d6df9(0x28e)](_0x3303dc),this[_0x4d6df9(0x441)][_0x4d6df9(0x421)]])[_0x4d6df9(0x42a)]((0x0,i[_0x4d6df9(0x1ef)])(([_0x5dc804,_0x1f6812])=>({'skeleton':_0x207f4e['getSkeleton'](),'cursors':[..._0x5dc804['values']()]['flatMap'](_0x683a18=>({..._0x683a18,'color':this['_themeService'][_0x4d6df9(0x1a1)](_0x683a18['color'])}))})))[_0x4d6df9(0x3a7)](_0x64fcb8=>{const _0x1fc8c9=_0x4d6df9;if(this['_removeCollabCursors'](),_0x64fcb8){let {skeleton:_0x40515a,cursors:_0x529309}=_0x64fcb8;this[_0x1fc8c9(0x398)](_0x40515a,_0x529309);}})),this[_0x4d6df9(0x24c)](),this[_0x4d6df9(0x44c)]();}[_0x43938c(0x398)](_0x247c2b,_0x2bdbd0){const _0x2bbd89=_0x43938c;let {scene:_0x567596,mainComponent:_0x365eae}=this['_context'],_0x192e5f=_0x2bdbd0[_0x2bbd89(0x1ef)](_0x369f04=>new me(_0x369f04,_0x567596,_0x247c2b,_0x365eae));this[_0x2bbd89(0x2df)]=_0x192e5f,this[_0x2bbd89(0x1ae)]=_0x2bdbd0;}[_0x43938c(0x279)](){const _0x19fc14=_0x43938c;this[_0x19fc14(0x305)]();let {scene:_0x59b435,mainComponent:_0x313a42}=this[_0x19fc14(0x318)],_0x105ad4=this[_0x19fc14(0x37a)][_0x19fc14(0x322)](),_0x5eba74=this[_0x19fc14(0x1ae)][_0x19fc14(0x1ef)](_0x30f04c=>new me(_0x30f04c,_0x59b435,_0x105ad4,_0x313a42));this['_cursorShapes']=_0x5eba74;}[_0x43938c(0x305)](){const _0x2586c5=_0x43938c;this[_0x2586c5(0x2df)][_0x2586c5(0x28b)](_0x6ea14a=>_0x6ea14a['dispose']()),this[_0x2586c5(0x2df)]=[];}[_0x43938c(0x44c)](){const _0x59a8f9=_0x43938c;let _0x2fa94a=[f[_0x59a8f9(0x3e3)]['id']];this[_0x59a8f9(0x198)](this[_0x59a8f9(0x1ee)][_0x59a8f9(0x476)](_0x26bb44=>{const _0x11f00c=_0x59a8f9;_0x2fa94a[_0x11f00c(0x29a)](_0x26bb44['id'])&&_0x26bb44['params'][_0x11f00c(0x410)]===this[_0x11f00c(0x318)][_0x11f00c(0x410)]&&this[_0x11f00c(0x279)]();}));}[_0x43938c(0x24c)](){const _0x3b06e1=_0x43938c;this[_0x3b06e1(0x198)]((0x0,t[_0x3b06e1(0x25a)])(this['_context'][_0x3b06e1(0x18e)][_0x3b06e1(0x317)])['pipe']((0x0,i['filter'])(_0x649680=>_0x649680['type']===p[_0x3b06e1(0x409)][_0x3b06e1(0x2c8)]),(0x0,i[_0x3b06e1(0x40f)])(0x10))[_0x3b06e1(0x3a7)](()=>{const _0x25f4aa=_0x3b06e1;this[_0x25f4aa(0x279)]();}));}};function _0x52dc(){const _0x554d4e=['removeEventListener','_getAnchorBounding','primary','get','_initUnhandledRejectionListener','jsx','_startEntity','resolve','univer-text-green-500','sheetId','executeCommand','storage','useCallback','collaboration-client-ui.collaboration.closeRoom','localPresence$','collab-text-range-','handleInsertRangeMoveRight','state$','saveImage','DesktopCollaborationStatusDisplayController','147CPTCkQ','Injector','changesetResend$','collaboration-client-ui.config','transformIMECache','enableFrontendLog','some','resize','getColor','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','NodePositionConvertToCursor','debounce','_registerDependencies','getFocusedUnit','requireSession','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','removeItem','NodePositionConvertToRectRange','_localCacheService','JOIN_ROOM_FAILED','TEXT_RANGE_LAYER_INDEX','_monkeyPatchLogService','IDocClipboardService','_initStatusComponent','_watchBlockProgress','startOffset','fillText','_onConflict','Response','setAlpha','_cursorShapes','_scheduleHeartbeat','_retryConflictCacheClear','parse','_docStateChangeManagerService','_startDocCollabCursor','stream','highlight','arc','event$','getTypeOfUnitDisposed$','finally','split','endRow','_removeAwaitingNotices','setInterval','text','min','_range','replace','drawWith','IUnitPresenceUIAdapterRegistry','toRgbString','assignAColorForMemberID',',\x200.2)','exhaustSavingTask','WebBrowserSingleActiveUnitService','cacheCleared','_config','deepClone','UPDATE_CURSOR','handleIRemoveRow','_transformHistoryAndStateStack','AWAITING','override','name','CollaborationController','_blinkIntervalTimer','_removeCollabCursors','MemberService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Plugin','runOnServer','_syncPresenceStatusComponents','deserializeRangeWithSheet','pointer','setTimeout','RevisionService','collaboration-client-ui.operation.update-remote-unit-presence','getStateCache','rgba','SOCKET_FAILED','getCellIndexByOffset','ITransformService','add','onPointerLeave$','onTransformChange$','_context','RegularPolygon','isEditing','backgroundColor','_removeClearOtherTimer','MessageType','NO_OTHER_CLIENTS_EDITING','UniverInstanceType','reconnect','_isBlinkVisible','getSkeleton','DocIMEInputManagerService','sessionStatus$','BehaviorSubject','icon','rgba(255,\x20255,\x20255,\x200.01)','CommandType','snapshot-loading-timeout','totalBlocks','disposeUnit','column','addClipboardHook','_highlight','CollaborationStatus','_getSheetObject','univer-m-0\x20univer-p-0','DEFAULT_WS_SESSION_TICKET_URL','bold\x2013px\x20Arial,\x20sans-serif','every','collaboration-client-ui.collabStatus.notCollab','catch','_revisionService','_drawTextRange','search','jiqing.500','handleInsertCol','_handleLeaveEvent','_retryingConflictCacheUnitIDs','timeout','useMemo','getActiveSheet','_collabCursorController','transformByState','RemoveColCommandId','updateOfflineData','_disposeEntity','ThemeService','SnapshotLoadStage','Unknown\x20user','_updateLocalCursor','spin','max','ONLINE','_online','push','_imageIoService','collaboration-client-ui.collabStatus.offline','_roomMembers$','/universer-api/frontend/logs','unload','delete','range','_textBubble','_beforeCloseService','firstValueFrom','collaboration-client-ui.session.connection-failed','_timeoutState$','_scheduleClearOtherTimer','DependentOn','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','HEADER_MENU','application/json','Inject','BuiltInUIPart','1480jYnTwM','pageIndex','UNIVER_DOC','_drawAnchor','_docSyncEditingCollabCursorService','entityInit$','InsertRowCommandId','stack','ILocalStorageService','_initEvent','4803348awaRwo','socket$','_showConflictProcessingNotification','handleInsertRow','roomMembers','_syncEditingCollabCursorService','getMergeData','setItem','_adapterRegistry','runId','IUIPartsService','small','labelHorizontalPosition','reason','_docSkeletonManagerService','selectedIds','_initialized','UserManagerService','unit','IMessageService','replaceSelectionInfoWithoutRefresh','fromEvent','transformStateCache','currentSkeleton$','userID','_docTransformSelectionsService','EffectRefRangId','memberId','INotificationService','getViewport','_setupBeforeClosingHandler','_saveTaskMap','parseInt','key','span','Failed','unhandledrejection','LocaleService','LoadingMultiIcon','getMemberID','HTTPEventType','_lastPointer','IConfigService','_localeService','_updateCollabCursors','InsertColCommandId','Loading','_hideTimer','1.3.0','triggerDblclick','_hover','filter','save','loadOfflineData','_assignedColors','setUndoRedoMutationParamsCache','368848wMtwln','AWAITING_WITH_PENDING','distinctUntilChanged','subscribe','title','object','collab-rect-range-','_collabCursorState$','subUnitId','_cursorInfo$','location','lineno','statusUIPart','labelPosition','isInternalEditorID','highlightSecond','string','ACTIVE_UNIT_EVENT_CHANNEL','_logService','58260CIPlwv','collabCursorState$','_transformUndoRedoStack','RemoteUniscriptService','_disposed','makeDirty','_doCreateSocket','FOOTER','ColorKit','registerRenderModule','Warning','_heartbeatTimer','addHandlerCallback','tableSource','startRow','InsertRangeMoveDownCommandId','getAncestorScale','generateRandomId','_sheetSkeletonManagerService','Tooltip','_httpService','presenceKind','switchMap','\x20-\x20','UNIVER_SHEET','canRenderAnchor','_uploadLog','reload','toString','univer-text-red-500','_color','addEventListener','editingUnit','combineLatest','selections','_colorIndex','_drawRectRange','collaboration-client-ui.conflict.title','_activeSaveTaskMap','collaboration-client-ui.conflict.content','constructor','getOffsetConfig','26iOJzdW','_startBlinking','SetDocZoomRatioOperation','collaboration-client-ui.session.will-retry','getDocumentSkeletonColumnPagePathInfo','UnitStatus','OffLineIcon','getDocRanges','_onRefRangeChange','_scheduleSaving','_selfUnitIDs','content','84uNwKFZ','shareInterval','allSettled','getCollabEntity$','getRangePointData','_adapter','TEXT','OFFLINE','getCurrentUnitOfType','collaboration-client-ui.snapshotLoading.timeout','RefRangeService','offsetY','default','LOADING_BLOCKS','_replaceConflictNotification','getCurrentTypeOfUnit$','_entityInit$','SessionStatus','_blinkTimer','prototype','origin','SnapshotLoadingService','DocSkeletonManagerService','_getUserId','_saveCache','takeUntil','collaboration-client-ui.collabClient.tooltip.reconnect','_unitOnClients','TRANSFORM_CHANGE_OBSERVABLE_TYPE','prepareTransformSelections','keys','_disabled','_listenToOnlineEvent','_status$','throttleTime','unitId','getRenderUnitById','elapsedMs','toPrimitive','createElement','_docClipboardService','clearOfflineData','_reloadPage','useDependency','evenodd','clearInterval','measureText','undoState','UniverCollaborationPlugin','_isDisposed','body','univer-text-gray-400','currentTheme$','getSelectionInfo','_anchorDot','SetTextSelectionsOperation','size','_handleHover','init','_id','Subject','pipe','handleInsertRangeMoveDown','symbol','searchParams','stage','_init','_registerPresenceStatusComponent','textRanges','DOC_RANGE_TYPE','_removeRemotePresence','_collabSessionService','_messageService','m1Prime','_unitStatus','_notificationService','_pendingEntities','decorate','getConfig','handleMoveRange','Disposable','getCoordRelativeToViewport','unshift','isActive','_themeService','_messageIds','2790552YmNeiO','LOCAL_CACHE_INTERVAL','_document','debounceTime','_toggleOffline','tooltipKey','transformRemoteChangeset','UniverCollaborationClientPlugin','_getMergeRange','_initCommandExecutedListener','_ensureSubject','mergeOverrideWithDependencies','univer-text-orange-500','getCurrentSkeleton','48785glbjkk','_colorAssignService','BrowserCollaborationSocketService','_highlightSecond','UniverRenderEnginePlugin','\x20at\x20','setStateCache','_injector','_trackActiveSaveTask','getCoordByCell','code','CLOSE_ROOM','onPointerMove$','join','INetworkConditionService','setConfig','enableOfflineEditing','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_presenceAdapterRegistry','addObject','Tools','lineTo','collaboration-client-ui.collabStatus.fetchMiss','WarningIcon','NOT_COLLAB','_adapterDisposables','_showText','Vector2','_snapshotLoadingService','OnLineIcon','collaboration-client-ui.collaboration.single-unit.warning','disableLocalCache','getItem','columnGroupId','doc.mutation.rich-text-editing','find','_memberService','onCommandExecuted','button','set','_toggleOnline','_clearRemotePresences','_blockProgressWatches','univer-border-none\x20univer-bg-transparent','_initPresenceStatusComponents','ranges','enableDefaultConflictUI','_dispose$','font','_refRangeService','loadedBlocks','collaboration-client-ui.license.editing-connections-exceeded','true','left','complete','clearTimeout','univer-text-blue-500','clsx','data','state','toDisposable','_initDependencies','IBeforeCloseService','_renderManagerService','_listenToOfflineEvent','engine','with','defineProperty','selection','OTHER_CLIENTS_EDITING','saveOfflineData','LICENSE_DOMAIN_REJECTED','Shape','pageType','_stopBlinking','disposeWithMe','collaboration-client-ui.permission.title','fillRule','getLocalCacheKey','getAllUnitsForType','_docSelectionManagerService','message','DeleteRangeMoveUpCommandId','IRenderManagerService','getColorFromTheme','getUnitStatus$','collaboration-client-ui.remoteRevert.title','next','_configService','_online$','CollaborationSessionService','asObservable','_scene','collaboration-client-ui.snapshotLoading.refresh','getActiveRange','9JgdNNp','unitType','_cursors','_docSkeleton','hide','getCollabEntities','setOffsetY','columnIndex','tableId','online$','_localStorageService','onLine','setRemotePresence','getUndoRedoMutationParamsCache','...','_getSessionTicket','PENDING','Module','#FFF','RxDisposable','function','jsxs','wsSessionTicketUrl','transformMutationsWithChangeset','post','params','getCurrentSelections','invokeId','imageSourceType','_initWindowErrorListener','_anchor','isFinite','_onCursorDelete','connectInjector','SheetCollabCursorShape','_onCursorUpdate','getTypeOfUnitAdded$','timedOut','_handleEvent','timeoutState$','ISocketService','Rect','_handleJoinEvent','fillStyle','isTransformMutationFailure','version','InsertRangeMoveRightCommandId','visibilitychange','from','_bindAdapter','_syncAdapters','color','status$','CollaborationUIEventId','values','collaboration-client-ui.remoteRevert.content','_draw','redoState','_normalizeUserId','DocSelectionManagerService','_startSheetCollabCursor','cursorInfo','_editingConnectionsExceededNotices','CONFLICT_PROCESSING','warning','_docTransformStateCacheService','_commandService','map','CollaborationSocketService','width','CollaborationEvent','_userManagerService','show','_eventUnsubscribe','useObservable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','memberID','_instanceService','userId','registerCommand','_registerRenderDependencies','row','snapshot-loading-','DocStateChangeManagerService','MoveRangeCommandId','IUniverInstanceService','dispose','onMouseMove','right','_clearBlockProgressWatch','_handleHeartbeatEvent','online','_initAwaitingNotices','univer-appearance-none','_hovered','eventID','registerComponent','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','_saveTimedOutNotices','merge','CONFLICT','_handleCursorUpdate','touchDependencies','GLOBAL','timeoutId','_labelHorizontalPosition','cursorInfo$','FromArray','visible','_collaborationController','SheetSkeletonManagerService','_getSaveTimeout','transform','registerRefRange','getSheetObject','registerBeforeClose','COLORS','Rectangle','getLocalPresence','getScrollXYInfoByViewport','_backgroundColor','getUnitId','addObjects','enableDocumentCollaborationUI','_univerInstanceService','setShapeProps','collab-text-anchor-','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_cursor','_name','segmentPage','error','showText','indicator','setActiveRange','UniverDocsPlugin','colno','source','_initUserListener','getValue','kind','[Window\x20Error]:\x20','iterator','executionId','newValue','options','update','collaboration-client-ui.permission.content','_transformService','restore','collaboration-client-ui.conflict.clearFailed','clearRemotePresences','isArray','_send','findNodePositionByCharIndex','_showConflictCacheClearFailedNotification','focus','clickable','createInstance','isTransformMutationsWithChangesetSuccess','_initResize','mutations','serializeRangeWithSheet','stringify','unitID','send','CollaborationUIEventService','_collaborationSessionService','remove','USERS_LEAVE','_presenceStatusRegistrations','_uiPartsService','_createSocketURL','_conflictNotification','fromEventSubject','license_editing_connections_exceeded','length','UniverNetworkPlugin','bottom','RECT','_disposeEntitiesForType','ICommandService','conflict$','refreshLabel','LOCAL_CACHE_INTERVAL_KEY','_session','_clearOtherTimers','getMember','fill','enableLocalCache','onPointerEnter$','saveTaskMap','colorClass','number','_clearTimeoutState','DocCollaborationEntity','clear','dispose$','syncEditingCollabCursor','_showAwaitingNotice','collaboration-client-ui.conflict.retry','_labelPosition','entries','_shapes','DisposableCollection','_refreshCollabCursors','ILogService','then','_render','_initConflictHandling','height','focusedId','collaboration-client-ui.collabStatus.syncing','transformMutation','result','m2Prime','_cachedData','_pointerMoveDisposable','_getScale','status','static','activate','polite','forEach','4561164mFHcuc','DocumentSkeletonPageType','getCollabCursors$','5EhOnSc','collaboration-client-ui.conflict.processing','WebSocketService','Error','univer-flex\x20univer-items-center\x20univer-justify-center','unsubscribe','13918YzmuNC','_offsetY','collaboration-client-ui.collaboration.offline-data-not-saved','SHEET_VIEWPORT_KEY','rgb','includes','getCurrentUser','slice','_initStatusListener','HTTPService','has','bind','pulse','sheetID','univer-transition-all\x20univer-duration-200','now','type','[LogService\x20Error]:\x20','_entities','subscribeEvent','_memberID','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','UniverDocsUIPlugin','startsWith'];_0x52dc=function(){return _0x554d4e;};return _0x52dc();}P=S([x(0x1,(0x0,t[_0x43938c(0x360)])(d[_0x43938c(0x403)])),x(0x2,(0x0,t['Inject'])(j)),x(0x3,t[_0x43938c(0x261)]),x(0x4,(0x0,t['Inject'])(t[_0x43938c(0x346)]))],P);var F=class extends p[_0x43938c(0x195)]{constructor(_0x4c02e4,_0x5b8212){const _0x3f8772=_0x43938c;super(_0x4c02e4,_0x5b8212),b(this,_0x3f8772(0x3d5),void 0x0),b(this,_0x3f8772(0x20a),!0x1),b(this,_0x3f8772(0x2f1),void 0x0),b(this,_0x3f8772(0x22d),''),b(this,_0x3f8772(0x275),'top'),b(this,'_backgroundColor',void 0x0),b(this,'_showText',void 0x0),b(this,_0x3f8772(0x32e),void 0x0),b(this,_0x3f8772(0x454),0x4),b(this,'_blinkTimer',void 0x0),b(this,_0x3f8772(0x304),void 0x0),b(this,_0x3f8772(0x321),!0x0),b(this,'_offsetY',0x0),b(this,_0x3f8772(0x215),_0x3f8772(0x204)),_0x5b8212&&(this[_0x3f8772(0x229)](_0x5b8212),_0x5b8212[_0x3f8772(0x2e6)]&&(_0x5b8212[_0x3f8772(0x3b3)]??this[_0x3f8772(0x454)])&&this[_0x3f8772(0x3e2)](_0x5b8212[_0x3f8772(0x3b3)]??this[_0x3f8772(0x454)])),this[_0x3f8772(0x26a)][_0x3f8772(0x2a8)](()=>this[_0x3f8772(0x229)]({'hovered':!0x0})),this[_0x3f8772(0x316)][_0x3f8772(0x2a8)](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x43938c(0x1b2)](_0x2a2c88){const _0x5f2d1a=_0x43938c;this[_0x5f2d1a(0x296)]=_0x2a2c88;}[_0x43938c(0x229)](_0x49abba){const _0x5f6414=_0x43938c;this[_0x5f6414(0x3d5)]=_0x49abba[_0x5f6414(0x1df)]??this[_0x5f6414(0x3d5)],this[_0x5f6414(0x20a)]=_0x49abba['hovered']??this[_0x5f6414(0x20a)],this[_0x5f6414(0x2f1)]=_0x49abba['range']??this[_0x5f6414(0x2f1)],this[_0x5f6414(0x22d)]=_0x49abba[_0x5f6414(0x302)]??this[_0x5f6414(0x22d)],this[_0x5f6414(0x275)]=_0x49abba[_0x5f6414(0x3b1)]??this[_0x5f6414(0x275)],this['_backgroundColor']=_0x49abba[_0x5f6414(0x31b)]??this[_0x5f6414(0x224)],this['_showText']=_0x49abba[_0x5f6414(0x230)]??this[_0x5f6414(0x46b)],this['_labelHorizontalPosition']=_0x49abba[_0x5f6414(0x378)]??this[_0x5f6414(0x215)],_0x49abba[_0x5f6414(0x3b3)]!==void 0x0&&(this['_highlightSecond']=_0x49abba[_0x5f6414(0x3b3)]),_0x49abba['highlight']!==void 0x0&&(this[_0x5f6414(0x32e)]=_0x49abba[_0x5f6414(0x2e6)]),_0x49abba[_0x5f6414(0x3f8)]!==void 0x0&&(this[_0x5f6414(0x296)]=_0x49abba[_0x5f6414(0x3f8)]),this[_0x5f6414(0x342)]({'width':_0x49abba[_0x5f6414(0x1f1)],'height':_0x49abba[_0x5f6414(0x27e)]});}[_0x43938c(0x203)](_0x248655){const _0x51a306=_0x43938c;let {row:_0x73a4ca,column:_0x11d6f9}=_0x248655;_0x73a4ca>=this[_0x51a306(0x2f1)][_0x51a306(0x3c5)]&&_0x73a4ca<=this[_0x51a306(0x2f1)][_0x51a306(0x2ec)]&&_0x11d6f9>=this['_range']['startColumn']&&_0x11d6f9<=this[_0x51a306(0x2f1)]['endColumn']?this[_0x51a306(0x229)]({'hovered':!0x0}):this[_0x51a306(0x229)]({'hovered':!0x1});}[_0x43938c(0x3e2)](_0xf445f3){const _0xcc6f5=_0x43938c;this[_0xcc6f5(0x197)](),this[_0xcc6f5(0x321)]=!0x0,this[_0xcc6f5(0x304)]=window[_0xcc6f5(0x2ee)](()=>{const _0x4cfffa=_0xcc6f5;this[_0x4cfffa(0x321)]=!this[_0x4cfffa(0x321)],this[_0x4cfffa(0x3bc)](!0x0);},0x1f4),this['_blinkTimer']=window[_0xcc6f5(0x30d)](()=>{const _0x455e2e=_0xcc6f5;this[_0x455e2e(0x197)](),this[_0x455e2e(0x321)]=!0x0,this[_0x455e2e(0x3bc)](!0x0);},_0xf445f3*0x3e8);}[_0x43938c(0x197)](){const _0x2b5225=_0x43938c;this[_0x2b5225(0x304)]&&=(window[_0x2b5225(0x41a)](this['_blinkIntervalTimer']),void 0x0),this['_blinkTimer']&&=(window[_0x2b5225(0x184)](this[_0x2b5225(0x3ff)]),void 0x0);}[_0x43938c(0x39d)](_0x4d5388){return!0x1;}['dispose'](){const _0x8b8c91=_0x43938c;this['_stopBlinking'](),super[_0x8b8c91(0x202)]();}[_0x43938c(0x1e4)](_0x4a6859){const _0x11f1d2=_0x43938c;let _0x3bcbd2=this[_0x11f1d2(0x3d5)],_0x389a69=this[_0x11f1d2(0x224)];if(this[_0x11f1d2(0x32e)]&&!this['_isBlinkVisible']&&(_0x3bcbd2=this['_getLighterColor'](this[_0x11f1d2(0x3d5)]),_0x389a69=this['_backgroundColor']?this['_getLighterColor'](this[_0x11f1d2(0x224)]):void 0x0),p[_0x11f1d2(0x1d5)][_0x11f1d2(0x2f3)](_0x4a6859,{'width':this[_0x11f1d2(0x1f1)],'height':this[_0x11f1d2(0x27e)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x3bcbd2,'evented':!0x1,'fill':_0x389a69}),this['_hovered']||this[_0x11f1d2(0x46b)]){_0x4a6859[_0x11f1d2(0x3a0)]();let _0x2d964d=this[_0x11f1d2(0x215)]===_0x11f1d2(0x182)?-M(_0x4a6859,this['_name']):this[_0x11f1d2(0x1f1)];_0x4a6859[_0x11f1d2(0x21c)](0x1,0x0,0x0,0x1,_0x2d964d,(this[_0x11f1d2(0x275)]===_0x11f1d2(0x25e)?0x0:-0x14)+(this[_0x11f1d2(0x296)]??0x0)),pe[_0x11f1d2(0x2f3)](_0x4a6859,{'text':this[_0x11f1d2(0x22d)],'color':_0x3bcbd2}),_0x4a6859[_0x11f1d2(0x241)]();}}['_getLighterColor'](_0x104c04){const _0x2fe925=_0x43938c;return _0x104c04[_0x2fe925(0x2ac)]('#')?'rgba('+Number[_0x2fe925(0x38c)](_0x104c04[_0x2fe925(0x29c)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x104c04[_0x2fe925(0x29c)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x104c04['slice'](0x5,0x7),0x10)+_0x2fe925(0x2f7):_0x104c04[_0x2fe925(0x2ac)]('rgba')?_0x104c04['replace'](/[\d.]+\)$/g,'0.2)'):_0x104c04[_0x2fe925(0x2ac)](_0x2fe925(0x299))?_0x104c04['replace'](_0x2fe925(0x299),_0x2fe925(0x311))[_0x2fe925(0x2f2)](')',',\x200.2)'):_0x104c04;}};let I=class extends t[_0x43938c(0x1bf)]{constructor(_0x443d56,_0x22a866,_0x27e333,_0x11e422){const _0x58c7a1=_0x43938c;super(),this[_0x58c7a1(0x318)]=_0x443d56,this[_0x58c7a1(0x3c9)]=_0x22a866,this[_0x58c7a1(0x341)]=_0x27e333,this[_0x58c7a1(0x441)]=_0x11e422,b(this,_0x58c7a1(0x1ae),new Set()),b(this,_0x58c7a1(0x395),null),b(this,'_pointerMoveDisposable',null),this[_0x58c7a1(0x42f)]();}[_0x43938c(0x42f)](){const _0x1c4a62=_0x43938c;this[_0x1c4a62(0x3c9)][_0x1c4a62(0x383)][_0x1c4a62(0x42a)]((0x0,i[_0x1c4a62(0x406)])(this[_0x1c4a62(0x271)]),(0x0,i[_0x1c4a62(0x3cd)])(_0x3a0c8e=>{const _0x3e9bd2=_0x1c4a62;if(_0x3a0c8e){let _0x50ada6=_0x3a0c8e[_0x3e9bd2(0x2b6)];return(0x0,r[_0x3e9bd2(0x3d8)])(this[_0x3e9bd2(0x341)]['getCollabCursors$'](this['_context'][_0x3e9bd2(0x410)]),this[_0x3e9bd2(0x441)][_0x3e9bd2(0x421)])['pipe']((0x0,i[_0x3e9bd2(0x1ef)])(([_0x336acb,_0x4480eb])=>{let _0x5169cc=new Map();return _0x336acb['forEach']((_0x4cae63,_0x2051c9)=>{const _0x4a9b64=_0x5041;if(_0x4cae63[_0x4a9b64(0x2a2)]===_0x50ada6){let _0x1ac3b4={..._0x4cae63};_0x1ac3b4[_0x4a9b64(0x1df)]=this[_0x4a9b64(0x441)]['getColorFromTheme'](_0x4cae63[_0x4a9b64(0x1df)]),_0x5169cc[_0x4a9b64(0x478)](_0x2051c9,_0x1ac3b4);}}),{'skeleton':_0x3a0c8e,'cursors':_0x5169cc};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x1c4a62(0x3a7)](({skeleton:_0x4fbbde,cursors:_0x3f0b1d})=>{this['_removeCollabCursors'](),_0x4fbbde&&this['_updateCollabCursors'](_0x4fbbde,_0x3f0b1d);}),this[_0x1c4a62(0x198)](this[_0x1c4a62(0x3c9)][_0x1c4a62(0x383)][_0x1c4a62(0x42a)]((0x0,i[_0x1c4a62(0x406)])(this[_0x1c4a62(0x271)]))[_0x1c4a62(0x3a7)](_0x49e148=>{const _0x571dd1=_0x1c4a62;var _0x497695;if(_0x49e148==null)return;(_0x497695=this[_0x571dd1(0x285)])==null||_0x497695[_0x571dd1(0x294)](),this[_0x571dd1(0x285)]=null;let {skeleton:_0x2337ee}=_0x49e148,{scene:_0x4b21da}=this[_0x571dd1(0x318)];this[_0x571dd1(0x285)]=_0x4b21da[_0x571dd1(0x45d)]['subscribeEvent']((0x0,t[_0x571dd1(0x2cc)])(_0x3b2c43=>{const _0xb7cbeb=_0x571dd1;var _0x5b9295,_0x4766a2;let {offsetX:_0x1b8c50,offsetY:_0x4d5dd6}=_0x3b2c43,{x:_0x6431e9,y:_0x4d1d3b}=_0x4b21da[_0xb7cbeb(0x43e)](p[_0xb7cbeb(0x46c)][_0xb7cbeb(0x217)]([_0x1b8c50,_0x4d5dd6])),{scaleX:_0x59f820,scaleY:_0xb2f326}=_0x4b21da[_0xb7cbeb(0x3c7)](),_0x5089e4=_0x4b21da[_0xb7cbeb(0x389)](p[_0xb7cbeb(0x298)]['VIEW_MAIN']),_0x4bc377=_0x4b21da[_0xb7cbeb(0x223)](p[_0xb7cbeb(0x46c)]['FromArray']([_0x6431e9,_0x4d1d3b]),_0x5089e4),_0x5fd4e0=_0x2337ee[_0xb7cbeb(0x313)](_0x1b8c50,_0x4d5dd6,_0x59f820,_0xb2f326,_0x4bc377);(((_0x5b9295=this['_lastPointer'])==null?void 0x0:_0x5b9295['column'])!==_0x5fd4e0[_0xb7cbeb(0x32c)]||((_0x4766a2=this['_lastPointer'])==null?void 0x0:_0x4766a2['row'])!==_0x5fd4e0[_0xb7cbeb(0x1fd)])&&this[_0xb7cbeb(0x1ae)][_0xb7cbeb(0x28b)](_0x108a54=>{const _0x570a89=_0xb7cbeb;_0x108a54[_0x570a89(0x203)](_0x5fd4e0);});},0x64));})),this[_0x1c4a62(0x198)]((0x0,t[_0x1c4a62(0x189)])(()=>{var _0x569308;(_0x569308=this['_pointerMoveDisposable'])==null||_0x569308['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}[_0x43938c(0x398)](_0x18056a,_0x1ecce6){const _0x390734=_0x43938c;let _0x56a5d1=this[_0x390734(0x3c9)][_0x390734(0x450)]();if(!_0x56a5d1)return;let _0x2556b8=this[_0x390734(0x330)]();if(!_0x2556b8)return;this['_cursors'][_0x390734(0x28b)](_0x3c9735=>{const _0x3ef202=_0x390734;_0x3c9735[_0x3ef202(0x3bc)]();});let {scene:_0x11ec60}=_0x2556b8,_0x3cedb3=ge(Array[_0x390734(0x1dc)](_0x1ecce6['values']()))[_0x390734(0x1ef)](_0x5b2ace=>{const _0x2a2dd1=_0x390734;let {color:_0x4e97b9,range:_0x38b14b,name:_0x5f238b,selection:_0x2c3a34,sheetID:_0x93d203}=_0x5b2ace,{startColumn:_0x14e238,startRow:_0x553f42,endColumn:_0xf4c9,endRow:_0x383dfa}=_0x38b14b,_0x2a44f1=(0x0,_[_0x2a2dd1(0x45a)])(_0x553f42,_0x14e238,_0x11ec60,_0x56a5d1),_0x4a0708=(0x0,_[_0x2a2dd1(0x45a)])(_0x383dfa,_0xf4c9,_0x11ec60,_0x56a5d1),{columnHeaderHeightAndMarginTop:_0x129a4a}=_0x56a5d1,{startX:_0x3edccb,startY:_0x1262c6}=_0x2a44f1,{endX:_0x335d57,endY:_0x1d42eb}=_0x4a0708,_0x1a9e7a=_0x335d57-_0x3edccb,_0x2d5861=_0x1d42eb-_0x1262c6;return new F(_0x5f238b,{'labelPosition':_0x1262c6-_0x129a4a>=0x14?'top':_0x2a2dd1(0x25e),'sheetID':_0x93d203,'range':_0x38b14b,'color':_0x4e97b9,'name':_0x5f238b,'selection':_0x2c3a34,'left':_0x3edccb,'top':_0x1262c6,'width':_0x1a9e7a,'height':_0x2d5861,'evented':!0x1,'zIndex':0x1389});});_0x11ec60[_0x390734(0x226)](_0x3cedb3,0x1),this['_cursors']=new Set(_0x3cedb3);}[_0x43938c(0x305)](){const _0x3a40a5=_0x43938c;var _0x424d73;(_0x424d73=this[_0x3a40a5(0x1ae)])==null||_0x424d73[_0x3a40a5(0x28b)](_0x10e9ae=>_0x10e9ae[_0x3a40a5(0x202)]());}['_getSheetObject'](){const _0x622bcc=_0x43938c;return(0x0,_[_0x622bcc(0x21e)])(this[_0x622bcc(0x318)]['unit'],this[_0x622bcc(0x318)]);}};I=S([x(0x1,(0x0,t[_0x43938c(0x360)])(_[_0x43938c(0x21a)])),x(0x2,(0x0,t['Inject'])(j)),x(0x3,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x346)]))],I);function ge(_0x5cf690){const _0x11b50c=_0x43938c;let _0x5125eb=new Map();return _0x5cf690[_0x11b50c(0x28b)](_0x5ae908=>{const _0x21e21e=_0x11b50c;if(_0x5125eb['has'](_0x5ae908[_0x21e21e(0x191)])){let _0x18f192=_0x5125eb[_0x21e21e(0x2b0)](_0x5ae908[_0x21e21e(0x191)]);_0x18f192[_0x21e21e(0x302)]+=',\x20'+_0x5ae908[_0x21e21e(0x302)];}else _0x5125eb[_0x21e21e(0x478)](_0x5ae908[_0x21e21e(0x191)],_0x5ae908);}),Array['from'](_0x5125eb['values']());}function L(_0x18a475){return typeof _0x18a475=='object'&&!!_0x18a475;}function _e(_0x4d39ab){const _0x444239=_0x43938c;return _0x4d39ab[_0x444239(0x20b)]===l[_0x444239(0x1f2)][_0x444239(0x2fd)]&&_0x444239(0x187)in _0x4d39ab&&L(_0x4d39ab['data'])&&typeof _0x4d39ab[_0x444239(0x187)]['memberID']=='string'&&typeof _0x4d39ab[_0x444239(0x187)]['selection']==_0x444239(0x3b4);}function ve(_0x1f2db2){const _0x5a18fc=_0x43938c;return _0x1f2db2[_0x5a18fc(0x20b)]===l[_0x5a18fc(0x1f2)][_0x5a18fc(0x255)]&&'data'in _0x1f2db2&&L(_0x1f2db2[_0x5a18fc(0x187)])&&typeof _0x1f2db2[_0x5a18fc(0x187)]['memberID']==_0x5a18fc(0x3b4);}function ye(_0x3cb864,_0x2137de){const _0x1573ae=_0x43938c;let _0xb4f49f;try{_0xb4f49f=JSON[_0x1573ae(0x2e2)](_0x3cb864);}catch{return null;}if(!L(_0xb4f49f)||typeof _0xb4f49f[_0x1573ae(0x238)]!=_0x1573ae(0x3b4)||typeof _0xb4f49f[_0x1573ae(0x410)]!=_0x1573ae(0x3b4)||typeof _0xb4f49f[_0x1573ae(0x3ac)]!=_0x1573ae(0x3b4))return null;let _0x482fe8=typeof _0xb4f49f[_0x1573ae(0x1ad)]==_0x1573ae(0x26d)?_0xb4f49f[_0x1573ae(0x1ad)]:_0x2137de;if(_0x482fe8==null)return null;let _0x38ff82=L(_0xb4f49f['pointer'])&&typeof _0xb4f49f['pointer']['x']=='number'&&Number[_0x1573ae(0x1cb)](_0xb4f49f[_0x1573ae(0x30c)]['x'])&&typeof _0xb4f49f[_0x1573ae(0x30c)]['y']==_0x1573ae(0x26d)&&Number[_0x1573ae(0x1cb)](_0xb4f49f[_0x1573ae(0x30c)]['y'])?{'x':_0xb4f49f[_0x1573ae(0x30c)]['x'],'y':_0xb4f49f['pointer']['y']}:null;return{'kind':_0xb4f49f[_0x1573ae(0x238)],'unitType':_0x482fe8,'unitId':_0xb4f49f[_0x1573ae(0x410)],'subUnitId':_0xb4f49f[_0x1573ae(0x3ac)],'selectedIds':Array[_0x1573ae(0x244)](_0xb4f49f[_0x1573ae(0x37b)])?_0xb4f49f[_0x1573ae(0x37b)][_0x1573ae(0x39f)](_0x2a385f=>typeof _0x2a385f==_0x1573ae(0x3b4)):[],'focusedId':typeof _0xb4f49f[_0x1573ae(0x27f)]==_0x1573ae(0x3b4)?_0xb4f49f['focusedId']:null,'pointer':_0x38ff82};}function be(_0x3478ae,_0x3e8c0e,_0xcc86ed){const _0x34cc3c=_0x43938c;return{'kind':_0x3e8c0e,'unitType':_0x3478ae,'unitId':_0xcc86ed['unitId'],'subUnitId':_0xcc86ed[_0x34cc3c(0x3ac)],'selectedIds':Array['from'](_0xcc86ed[_0x34cc3c(0x37b)]),'focusedId':_0xcc86ed[_0x34cc3c(0x27f)],'pointer':_0xcc86ed[_0x34cc3c(0x30c)]?{..._0xcc86ed[_0x34cc3c(0x30c)]}:null};}let R=class extends t[_0x43938c(0x1bf)]{constructor(_0x5af9b1,_0x46f18c,_0x2cf1de,_0x488c11,_0x42b0ab,_0x2872b8){const _0x1a32b2=_0x43938c;super(),this['unitId']=_0x5af9b1,this[_0x1a32b2(0x265)]=_0x46f18c,this[_0x1a32b2(0x3f2)]=_0x2cf1de,this[_0x1a32b2(0x452)]=_0x488c11,this[_0x1a32b2(0x475)]=_0x42b0ab,this[_0x1a32b2(0x1ee)]=_0x2872b8,b(this,'_online',!0x1),b(this,_0x1a32b2(0x37c),!0x1);}get[_0x43938c(0x1ad)](){const _0x6de24e=_0x43938c;return this[_0x6de24e(0x3f2)][_0x6de24e(0x1ad)];}[_0x43938c(0x202)](){const _0x3c01d9=_0x43938c;this['_clearRemotePresences'](),super[_0x3c01d9(0x202)]();}['init'](){const _0x16a98e=_0x43938c;this[_0x16a98e(0x37c)]||(this[_0x16a98e(0x37c)]=!0x0,this[_0x16a98e(0x265)][_0x16a98e(0x324)][_0x16a98e(0x42a)]((0x0,r['takeUntil'])(this[_0x16a98e(0x271)]))[_0x16a98e(0x3a7)](_0x486d36=>{const _0x45b711=_0x16a98e;if(_0x486d36===e[_0x45b711(0x3fe)][_0x45b711(0x34c)]){this[_0x45b711(0x34d)]=!0x0;let _0x2c194b=this[_0x45b711(0x3f2)][_0x45b711(0x222)](this[_0x45b711(0x410)]);_0x2c194b&&this['_sendLocalPresence'](_0x2c194b);}else this[_0x45b711(0x34d)]=!0x1,this['_clearRemotePresences']();}),this['_session'][_0x16a98e(0x2e8)][_0x16a98e(0x42a)]((0x0,r[_0x16a98e(0x406)])(this[_0x16a98e(0x271)]))['subscribe'](_0x117fd3=>{const _0x8ebe69=_0x16a98e;_e(_0x117fd3)?this['_handleCursorUpdate'](_0x117fd3):ve(_0x117fd3)&&this[_0x8ebe69(0x433)](_0x117fd3[_0x8ebe69(0x187)][_0x8ebe69(0x1f8)]);}),this[_0x16a98e(0x3f2)][_0x16a98e(0x2bb)]['pipe']((0x0,r[_0x16a98e(0x39f)])(_0x4439b3=>this[_0x16a98e(0x34d)]&&_0x4439b3[_0x16a98e(0x410)]===this[_0x16a98e(0x410)]),(0x0,r['throttle'])(_0x8dc304=>(0x0,r['timer'])(_0x8dc304[_0x16a98e(0x3ee)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x16a98e(0x406)])(this[_0x16a98e(0x271)]))[_0x16a98e(0x3a7)](_0x3132c1=>this['_sendLocalPresence'](_0x3132c1)));}['_sendLocalPresence'](_0x5c6275){const _0xb597ff=_0x43938c;let _0x1d845f=this['_session']['getMemberID']();if(!_0x1d845f||!this[_0xb597ff(0x34d)])return;let _0x5bfd8c={'eventID':l[_0xb597ff(0x1f2)][_0xb597ff(0x2fd)],'data':{'unitID':this[_0xb597ff(0x410)],'memberID':_0x1d845f,'selection':JSON['stringify'](be(this[_0xb597ff(0x1ad)],this[_0xb597ff(0x3f2)][_0xb597ff(0x3cc)],_0x5c6275))}};this[_0xb597ff(0x265)]['send'](_0x5bfd8c,this['unitId'])['catch'](()=>void 0x0);}[_0x43938c(0x211)](_0x25eaac){const _0x34835a=_0x43938c;let {memberID:_0x151149,selection:_0x36fc94}=_0x25eaac[_0x34835a(0x187)];if(_0x151149===this['_session'][_0x34835a(0x393)]())return;let _0x59f464=ye(_0x36fc94,this[_0x34835a(0x1ad)]);if(!_0x59f464||_0x59f464['kind']!==this[_0x34835a(0x3f2)][_0x34835a(0x3cc)]||_0x59f464[_0x34835a(0x1ad)]!==this[_0x34835a(0x1ad)]||_0x59f464['unitId']!==this['unitId'])return;let _0x26e1cf=this[_0x34835a(0x475)][_0x34835a(0x267)](this['unitId'],_0x151149),_0x493f82={'unitId':_0x59f464[_0x34835a(0x410)],'subUnitId':_0x59f464[_0x34835a(0x3ac)],'selectedIds':_0x59f464[_0x34835a(0x37b)],'focusedId':_0x59f464[_0x34835a(0x27f)],'pointer':_0x59f464[_0x34835a(0x30c)],'memberId':_0x151149,'color':this[_0x34835a(0x452)]['assignAColorForMemberID'](_0x151149),'name':(_0x26e1cf==null?void 0x0:_0x26e1cf[_0x34835a(0x302)])??_0x151149};this[_0x34835a(0x1ee)][_0x34835a(0x2b7)](T['id'],{'unitType':this[_0x34835a(0x1ad)],'update':{'type':_0x34835a(0x478),'state':_0x493f82}})[_0x34835a(0x336)](()=>void 0x0);}[_0x43938c(0x433)](_0x4bfcd9){const _0x3de69a=_0x43938c;this[_0x3de69a(0x1ee)][_0x3de69a(0x2b7)](T['id'],{'unitType':this[_0x3de69a(0x1ad)],'update':{'type':_0x3de69a(0x254),'unitId':this[_0x3de69a(0x410)],'memberId':_0x4bfcd9}})[_0x3de69a(0x336)](()=>void 0x0);}[_0x43938c(0x47a)](){const _0x4a3a4c=_0x43938c;this[_0x4a3a4c(0x1ee)]['executeCommand'](T['id'],{'unitType':this[_0x4a3a4c(0x1ad)],'update':{'type':_0x4a3a4c(0x270),'unitId':this[_0x4a3a4c(0x410)]}})[_0x4a3a4c(0x336)](()=>void 0x0);}};R=S([x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x306)])),x(0x5,(0x0,t['Inject'])(t[_0x43938c(0x261)]))],R);let z=class extends t[_0x43938c(0x1bf)]{constructor(_0x5c5f34,_0x31e8bb,_0x28f5fc,_0x2224c4){const _0x1b77ba=_0x43938c;super(),this[_0x1b77ba(0x228)]=_0x5c5f34,this['_injector']=_0x31e8bb,this[_0x1b77ba(0x434)]=_0x28f5fc,this[_0x1b77ba(0x374)]=_0x2224c4,b(this,'_isDisposed',!0x1),b(this,_0x1b77ba(0x2a7),new Map()),b(this,_0x1b77ba(0x439),new Map()),b(this,_0x1b77ba(0x46a),new Map()),this[_0x1b77ba(0x42f)]();}[_0x43938c(0x202)](){const _0x531421=_0x43938c;this[_0x531421(0x41e)]=!0x0,this[_0x531421(0x46a)][_0x531421(0x28b)](_0x66dab9=>_0x66dab9['dispose']()),this[_0x531421(0x46a)][_0x531421(0x270)](),this[_0x531421(0x2a7)]['forEach'](_0x12b8a9=>_0x12b8a9[_0x531421(0x202)]()),this['_entities']['clear'](),this['_pendingEntities'][_0x531421(0x270)](),super[_0x531421(0x202)]();}['_init'](){const _0x11d732=_0x43938c;this[_0x11d732(0x374)]['adapters$']['pipe']((0x0,r[_0x11d732(0x406)])(this[_0x11d732(0x271)]))[_0x11d732(0x3a7)](_0x254a18=>this['_syncAdapters'](_0x254a18));}[_0x43938c(0x1de)](_0xd30013){const _0x424dc9=_0x43938c;let _0x4e895a=new Set(_0xd30013[_0x424dc9(0x1ef)](_0x33a17e=>_0x33a17e['unitType']));this[_0x424dc9(0x46a)][_0x424dc9(0x28b)]((_0x57e512,_0x3eb00d)=>{const _0x1a38d3=_0x424dc9;_0x4e895a[_0x1a38d3(0x29f)](_0x3eb00d)||(_0x57e512[_0x1a38d3(0x202)](),this[_0x1a38d3(0x46a)]['delete'](_0x3eb00d),this[_0x1a38d3(0x260)](_0x3eb00d));}),_0xd30013[_0x424dc9(0x28b)](_0x4468f6=>{const _0x7b048=_0x424dc9;this[_0x7b048(0x46a)]['has'](_0x4468f6[_0x7b048(0x1ad)])||this[_0x7b048(0x1dd)](_0x4468f6);});}[_0x43938c(0x1dd)](_0x2618d5){const _0x43dcf5=_0x43938c;let _0x365887=new t[(_0x43dcf5(0x278))]();this[_0x43dcf5(0x46a)]['set'](_0x2618d5[_0x43dcf5(0x1ad)],_0x365887),_0x365887[_0x43dcf5(0x315)](_0x2618d5[_0x43dcf5(0x289)]()),this[_0x43dcf5(0x228)][_0x43dcf5(0x19c)](_0x2618d5[_0x43dcf5(0x1ad)])[_0x43dcf5(0x28b)](_0x510591=>this[_0x43dcf5(0x2b3)](_0x510591[_0x43dcf5(0x225)](),_0x2618d5)['catch'](()=>void 0x0));let _0x59b630=this[_0x43dcf5(0x228)][_0x43dcf5(0x1d0)](_0x2618d5[_0x43dcf5(0x1ad)])[_0x43dcf5(0x3a7)](({unit:_0x367738})=>this['_startEntity'](_0x367738[_0x43dcf5(0x225)](),_0x2618d5)[_0x43dcf5(0x336)](()=>void 0x0));_0x365887[_0x43dcf5(0x315)]((0x0,t[_0x43dcf5(0x189)])(()=>_0x59b630['unsubscribe']()));let _0x157610=this[_0x43dcf5(0x228)]['getTypeOfUnitDisposed$'](_0x2618d5[_0x43dcf5(0x1ad)])['subscribe'](_0x2cbe3f=>this[_0x43dcf5(0x345)](_0x2cbe3f[_0x43dcf5(0x225)]()));_0x365887['add']((0x0,t[_0x43dcf5(0x189)])(()=>_0x157610['unsubscribe']()));}async[_0x43938c(0x2b3)](_0x544498,_0x23940f){const _0x60caad=_0x43938c;if(this[_0x60caad(0x2a7)][_0x60caad(0x29f)](_0x544498)||this[_0x60caad(0x439)][_0x60caad(0x29f)](_0x544498))return;let _0x5b5fe2={};this[_0x60caad(0x439)]['set'](_0x544498,_0x5b5fe2);let _0x2ae677=await this['_collabSessionService'][_0x60caad(0x2cf)](_0x544498)['catch'](_0xe53f2e=>{const _0x2fa28d=_0x60caad;throw this['_pendingEntities'][_0x2fa28d(0x2b0)](_0x544498)===_0x5b5fe2&&this['_pendingEntities']['delete'](_0x544498),_0xe53f2e;});if(this['_isDisposed']||this[_0x60caad(0x439)][_0x60caad(0x2b0)](_0x544498)!==_0x5b5fe2||this[_0x60caad(0x374)][_0x60caad(0x2b0)](_0x23940f[_0x60caad(0x1ad)])!==_0x23940f){this[_0x60caad(0x439)][_0x60caad(0x2b0)](_0x544498)===_0x5b5fe2&&this[_0x60caad(0x439)][_0x60caad(0x354)](_0x544498);return;}let _0x131245=this[_0x60caad(0x458)][_0x60caad(0x24a)](R,_0x544498,_0x2ae677,_0x23940f);_0x131245[_0x60caad(0x427)](),this[_0x60caad(0x439)]['delete'](_0x544498),this[_0x60caad(0x2a7)]['set'](_0x544498,_0x131245);}[_0x43938c(0x345)](_0x396d3d){const _0x2c83c3=_0x43938c;this[_0x2c83c3(0x439)][_0x2c83c3(0x354)](_0x396d3d);let _0x426739=this[_0x2c83c3(0x2a7)][_0x2c83c3(0x2b0)](_0x396d3d);_0x426739&&(_0x426739[_0x2c83c3(0x202)](),this['_entities']['delete'](_0x396d3d));}[_0x43938c(0x260)](_0x5c4b0d){const _0x199f97=_0x43938c;this[_0x199f97(0x228)]['getAllUnitsForType'](_0x5c4b0d)['forEach'](_0x1805ab=>this[_0x199f97(0x439)]['delete'](_0x1805ab[_0x199f97(0x225)]())),Array[_0x199f97(0x1dc)](this['_entities'][_0x199f97(0x276)]())[_0x199f97(0x28b)](([_0x52b102,_0x53afe9])=>{const _0x5e998f=_0x199f97;_0x53afe9[_0x5e998f(0x1ad)]===_0x5c4b0d&&this[_0x5e998f(0x345)](_0x52b102);});}};z=S([x(0x0,t[_0x43938c(0x201)]),x(0x1,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x2,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x1a7)])),x(0x3,(0x0,t['Inject'])(n[_0x43938c(0x2f4)]))],z);const B={'toast':_0x43938c(0x2aa),'actionButton':_0x43938c(0x20d)},xe={'title':'collaboration-client-ui.conflict.title','content':_0x43938c(0x3de),'type':_0x43938c(0x22f)},Se={'permission_rejected':{'title':_0x43938c(0x199),'content':_0x43938c(0x23f),'type':_0x43938c(0x22f)},'license_unit_type_rejected':{'title':'collaboration-client-ui.license.title','content':'collaboration-client-ui.license.unit-type-rejected','type':_0x43938c(0x22f)},'remote_revert':{'title':_0x43938c(0x1a3),'content':_0x43938c(0x1e3),'type':_0x43938c(0x1ec)}};let V=class extends t[_0x43938c(0x43d)]{constructor(_0x3c9bf2,_0x15e3df,_0x4d3941,_0x1f30f7,_0x19052b,_0x28a87c,_0x2c06de,_0x166585){const _0x54aa99=_0x43938c;var _0x9fc412;super(),this[_0x54aa99(0x357)]=_0x3c9bf2,this[_0x54aa99(0x2d3)]=_0x15e3df,this['_collaborationUIEventService']=_0x4d3941,this['_messageService']=_0x1f30f7,this[_0x54aa99(0x438)]=_0x19052b,this[_0x54aa99(0x397)]=_0x28a87c,this['_collaborationController']=_0x2c06de,this[_0x54aa99(0x1a5)]=_0x166585,b(this,'_conflictNotification',null),b(this,_0x54aa99(0x33d),new Set()),b(this,'_saveTimedOutNotices',new Map()),b(this,_0x54aa99(0x1ea),new Map()),this[_0x54aa99(0x38a)](),this[_0x54aa99(0x36b)](),this[_0x54aa99(0x208)](),((_0x9fc412=this[_0x54aa99(0x1a5)][_0x54aa99(0x43b)](_0x54aa99(0x2c4)))==null?void 0x0:_0x9fc412[_0x54aa99(0x17b)])!==!0x1&&this[_0x54aa99(0x27d)]();}[_0x43938c(0x202)](){const _0x599b20=_0x43938c;var _0x5d23ee;(_0x5d23ee=this[_0x599b20(0x259)])==null||_0x5d23ee[_0x599b20(0x202)](),this['_conflictNotification']=null;for(let _0xc72b11 of[this[_0x599b20(0x20e)],this[_0x599b20(0x1ea)]])_0xc72b11[_0x599b20(0x28b)](_0x486c0b=>_0x486c0b['dispose']()),_0xc72b11['clear']();super[_0x599b20(0x202)]();}[_0x43938c(0x208)](){const _0x5262b3=_0x43938c;let _0x22d807=_0x43e1b8=>{const _0x4964bd=_0x5041;let _0x215994=new t['DisposableCollection']();_0x215994[_0x4964bd(0x315)]((0x0,t[_0x4964bd(0x189)])(_0x43e1b8[_0x4964bd(0x2c3)][_0x4964bd(0x3a7)]({'next':_0xb7c629=>{const _0x3986d0=_0x4964bd;_0xb7c629[_0x3986d0(0x412)]>=0x4e20&&this[_0x3986d0(0x273)](this[_0x3986d0(0x20e)],_0x43e1b8[_0x3986d0(0x250)],'collaboration-client-ui.session.collaboration-timeout'),_0xb7c629[_0x3986d0(0x379)]===_0x3986d0(0x25b)&&this[_0x3986d0(0x273)](this[_0x3986d0(0x1ea)],_0x43e1b8[_0x3986d0(0x250)],_0x3986d0(0x180));},'complete':()=>{const _0x4c9417=_0x4964bd;this[_0x4c9417(0x2ed)](_0x43e1b8[_0x4c9417(0x250)]),_0x215994[_0x4c9417(0x202)]();}}))),_0x215994[_0x4964bd(0x315)]((0x0,t['toDisposable'])(_0x43e1b8['status$'][_0x4964bd(0x3a7)](_0x15d604=>{const _0x3936df=_0x4964bd;_0x15d604!==e['CollaborationStatus'][_0x3936df(0x300)]&&_0x15d604!==e[_0x3936df(0x32f)][_0x3936df(0x3a5)]&&this[_0x3936df(0x2ed)](_0x43e1b8[_0x3936df(0x250)]);}))),this[_0x4964bd(0x198)](_0x215994);};this[_0x5262b3(0x219)][_0x5262b3(0x1b1)]()[_0x5262b3(0x28b)](_0x22d807),this[_0x5262b3(0x198)]((0x0,t['toDisposable'])(this[_0x5262b3(0x219)][_0x5262b3(0x367)][_0x5262b3(0x3a7)](_0x22d807)));}[_0x43938c(0x273)](_0x19187c,_0x145fee,_0x29b56b){const _0x478546=_0x43938c;_0x19187c[_0x478546(0x29f)](_0x145fee)||_0x19187c[_0x478546(0x478)](_0x145fee,this[_0x478546(0x438)]['show']({'title':this[_0x478546(0x397)]['t'](_0x29b56b),'type':_0x478546(0x1ec),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}['_removeAwaitingNotices'](_0x79e2fa){const _0x4ec0f7=_0x43938c;for(let _0xeb7062 of[this[_0x4ec0f7(0x20e)],this[_0x4ec0f7(0x1ea)]]){var _0x177735;(_0x177735=_0xeb7062['get'](_0x79e2fa))==null||_0x177735[_0x4ec0f7(0x202)](),_0xeb7062[_0x4ec0f7(0x354)](_0x79e2fa);}}[_0x43938c(0x38a)](){const _0xe19a59=_0x43938c;this[_0xe19a59(0x198)](this[_0xe19a59(0x357)][_0xe19a59(0x21f)](()=>{const _0x55712a=_0xe19a59;if(this['_localCacheService'][_0x55712a(0x26b)][_0x55712a(0x425)])return this[_0x55712a(0x397)]['t'](_0x55712a(0x297));}));}[_0x43938c(0x27d)](){const _0x4ad2b8=_0x43938c;let _0x5bbd78=_0x3df0d8=>{const _0x25174a=_0x5041;this[_0x25174a(0x198)]((0x0,t[_0x25174a(0x189)])(_0x3df0d8[_0x25174a(0x262)][_0x25174a(0x3a7)](_0x3c4e5b=>this[_0x25174a(0x2dc)](_0x3c4e5b))));};this[_0x4ad2b8(0x219)][_0x4ad2b8(0x1b1)]()[_0x4ad2b8(0x28b)](_0x5bbd78),this['disposeWithMe']((0x0,t['toDisposable'])(this['_collaborationController']['entityInit$'][_0x4ad2b8(0x3a7)](_0x5bbd78)));}[_0x43938c(0x2dc)](_0x28ba39){const _0x3807b0=_0x43938c;if(!_0x28ba39[_0x3807b0(0x2fa)])return;let _0x5d088f=Se[_0x28ba39['reason']]??xe;this[_0x3807b0(0x3fb)]({'title':this[_0x3807b0(0x397)]['t'](_0x5d088f[_0x3807b0(0x3a8)]),'content':this['_localeService']['t'](_0x5d088f[_0x3807b0(0x3ec)]),'type':_0x5d088f[_0x3807b0(0x2a5)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':B,'action':{'label':this['_localeService']['t'](_0x3807b0(0x1aa)),'onClick':_0x471898=>{const _0x367611=_0x3807b0;_0x471898['preventDefault'](),this[_0x367611(0x417)]();}}});}[_0x43938c(0x417)](){const _0x2e67e5=_0x43938c;window[_0x2e67e5(0x3ae)][_0x2e67e5(0x3d2)]();}[_0x43938c(0x36b)](){const _0x3fd614=_0x43938c;this['disposeWithMe'](this['_collaborationUIEventService'][_0x3fd614(0x2e8)]['subscribe'](_0x21f81d=>{const _0x3ef8f3=_0x3fd614;_0x21f81d['id']===e[_0x3ef8f3(0x1e1)]['OTHER_CLIENT_EDITING']&&this[_0x3ef8f3(0x435)][_0x3ef8f3(0x1f4)]({'type':a['MessageType'][_0x3ef8f3(0x3c1)],'content':this[_0x3ef8f3(0x397)]['t'](_0x3ef8f3(0x46f))}),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)][_0x3ef8f3(0x45c)]&&this[_0x3ef8f3(0x435)][_0x3ef8f3(0x1f4)]({'type':a[_0x3ef8f3(0x31d)][_0x3ef8f3(0x3c1)],'content':this[_0x3ef8f3(0x397)]['t'](_0x3ef8f3(0x2ba))}),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)][_0x3ef8f3(0x1eb)]&&this[_0x3ef8f3(0x36e)](),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)]['CONFLICT_CACHE_CLEAR_FAILED']&&_0x21f81d[_0x3ef8f3(0x250)]&&this['_showConflictCacheClearFailedNotification'](_0x21f81d[_0x3ef8f3(0x250)],_0x21f81d[_0x3ef8f3(0x1fa)]??''),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)][_0x3ef8f3(0x2d4)]&&this[_0x3ef8f3(0x435)][_0x3ef8f3(0x1f4)]({'type':a['MessageType'][_0x3ef8f3(0x3c1)],'content':this[_0x3ef8f3(0x397)]['t'](_0x21f81d[_0x3ef8f3(0x187)]||'')}),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)]['SOCKET_FAILED_RETRY']&&this[_0x3ef8f3(0x435)][_0x3ef8f3(0x1f4)]({'type':a[_0x3ef8f3(0x31d)][_0x3ef8f3(0x3c1)],'content':this[_0x3ef8f3(0x397)]['t'](_0x3ef8f3(0x3e4))}),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)][_0x3ef8f3(0x312)]&&this['_messageService'][_0x3ef8f3(0x1f4)]({'type':a[_0x3ef8f3(0x31d)]['Error'],'content':this[_0x3ef8f3(0x397)]['t'](_0x3ef8f3(0x359))}),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)][_0x3ef8f3(0x194)]&&this[_0x3ef8f3(0x435)][_0x3ef8f3(0x1f4)]({'type':a[_0x3ef8f3(0x31d)][_0x3ef8f3(0x292)],'content':this[_0x3ef8f3(0x397)]['t']('collaboration-client-ui.license.domain-rejected')});}));}[_0x43938c(0x36e)](){const _0x5edad8=_0x43938c;this['_replaceConflictNotification']({'title':this[_0x5edad8(0x397)]['t'](_0x5edad8(0x3dc)),'content':this[_0x5edad8(0x397)]['t'](_0x5edad8(0x290)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x25f7fd,_0x3a2138){const _0x2943f4=_0x43938c;this['_replaceConflictNotification']({'title':this[_0x2943f4(0x397)]['t'](_0x2943f4(0x3dc)),'content':this[_0x2943f4(0x397)]['t'](_0x2943f4(0x242)),'type':_0x2943f4(0x22f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':B,'action':{'label':this[_0x2943f4(0x397)]['t'](_0x2943f4(0x274)),'onClick':_0x15b9fd=>{const _0x4f3eff=_0x2943f4;_0x15b9fd['preventDefault'](),this[_0x4f3eff(0x2e1)](_0x25f7fd,_0x3a2138);}}});}[_0x43938c(0x2e1)](_0x42d9bb,_0x157b17){const _0x58a404=_0x43938c;let _0x36fa13=_0x42d9bb+':'+(_0x157b17??'');this['_retryingConflictCacheUnitIDs'][_0x58a404(0x29f)](_0x36fa13)||(this[_0x58a404(0x33d)][_0x58a404(0x315)](_0x36fa13),this[_0x58a404(0x36e)](),this[_0x58a404(0x2d3)][_0x58a404(0x416)](_0x42d9bb,_0x157b17)[_0x58a404(0x27b)](()=>this[_0x58a404(0x417)]())[_0x58a404(0x336)](()=>this[_0x58a404(0x247)](_0x42d9bb,_0x157b17))[_0x58a404(0x2ea)](()=>this['_retryingConflictCacheUnitIDs'][_0x58a404(0x354)](_0x36fa13)));}[_0x43938c(0x3fb)](_0x412347){const _0x5896f4=_0x43938c;var _0x3f4166;(_0x3f4166=this[_0x5896f4(0x259)])==null||_0x3f4166['dispose'](),this[_0x5896f4(0x259)]=this[_0x5896f4(0x438)][_0x5896f4(0x1f4)](_0x412347);}};V=S([x(0x0,n[_0x43938c(0x18b)]),x(0x1,e['ILocalCacheService']),x(0x2,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x252)])),x(0x3,n[_0x43938c(0x37f)]),x(0x4,n[_0x43938c(0x388)]),x(0x5,(0x0,t['Inject'])(t[_0x43938c(0x391)])),x(0x6,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x303)])),x(0x7,t['IConfigService'])],V);let H=class{constructor(_0x1011d5,_0x2a3cfb){const _0x4ad947=_0x43938c;this[_0x4ad947(0x240)]=_0x1011d5,this[_0x4ad947(0x18c)]=_0x2a3cfb;}[_0x43938c(0x2c5)](_0x39681e){const _0x3c0308=_0x43938c;this[_0x3c0308(0x3b9)](_0x39681e),this['_transformPreviousActiveRange'](_0x39681e);}[_0x43938c(0x449)](_0x4f10cd){const _0x2d66f6=_0x43938c;let {unitID:_0x548cb2}=_0x4f10cd,{redoCache:_0x412daa}=this[_0x2d66f6(0x18c)][_0x2d66f6(0x411)](_0x548cb2)[_0x2d66f6(0x18f)](f[_0x2d66f6(0x323)])[_0x2d66f6(0x1b9)]();if(_0x412daa[_0x2d66f6(0x25c)]===0x0)return _0x4f10cd;let _0x3584d7=t['Tools'][_0x2d66f6(0x2fc)](_0x4f10cd[_0x2d66f6(0x24d)][0x0]);for(let _0x534893=0x0;_0x534893<_0x412daa[_0x2d66f6(0x25c)];_0x534893++){let _0x21faad={'id':_0x2d66f6(0x473),'params':{..._0x412daa[_0x534893]}},_0x21a868=this[_0x2d66f6(0x240)][_0x2d66f6(0x281)](_0x3584d7,_0x21faad,!0x1);if((0x0,l[_0x2d66f6(0x1d8)])(_0x21a868))throw _0x21a868[_0x2d66f6(0x22f)];_0x3584d7=_0x21a868['m1Prime'];}return{...t[_0x2d66f6(0x465)][_0x2d66f6(0x2fc)](_0x4f10cd),'mutations':[_0x3584d7]};}['_transformUndoRedoStack'](_0x4d20f5){const _0x8efa06=_0x43938c;let {unitID:_0x132dab}=_0x4d20f5,_0x5ea702=this['_renderManagerService'][_0x8efa06(0x411)](_0x132dab)[_0x8efa06(0x18f)](f[_0x8efa06(0x323)]),{undoCache:_0x2c6e84,redoCache:_0x161201}=_0x5ea702[_0x8efa06(0x1b9)]();if(_0x2c6e84[_0x8efa06(0x25c)]===0x0||_0x161201['length']===0x0)return;let _0x255a33=[],_0x48343=[],_0x436a43=t[_0x8efa06(0x465)][_0x8efa06(0x2fc)](_0x4d20f5[_0x8efa06(0x24d)][0x0]),_0x2f8eb9=t['Tools'][_0x8efa06(0x2fc)](_0x4d20f5['mutations'][0x0]);for(let _0x4beb2e=_0x2c6e84[_0x8efa06(0x25c)]-0x1;_0x4beb2e>=0x0;_0x4beb2e--){let _0x2d9128={'id':'doc.mutation.rich-text-editing','params':{..._0x2c6e84[_0x4beb2e]}},_0x18c771={'id':_0x8efa06(0x473),'params':{..._0x161201[_0x4beb2e]}},_0x69933e=this[_0x8efa06(0x240)][_0x8efa06(0x281)](_0x436a43,_0x2d9128,!0x1),_0x3dd361=this[_0x8efa06(0x240)][_0x8efa06(0x281)](_0x2f8eb9,_0x18c771,!0x1);if((0x0,l[_0x8efa06(0x1d8)])(_0x69933e))throw _0x69933e['error'];if((0x0,l[_0x8efa06(0x1d8)])(_0x3dd361))throw _0x3dd361[_0x8efa06(0x22f)];_0x255a33[_0x8efa06(0x43f)](_0x69933e[_0x8efa06(0x283)][_0x8efa06(0x1c5)]),_0x48343[_0x8efa06(0x43f)](_0x3dd361[_0x8efa06(0x283)]['params']),_0x436a43=_0x69933e['m1Prime'],_0x2f8eb9=_0x3dd361[_0x8efa06(0x436)];}_0x5ea702[_0x8efa06(0x3a3)]({'undoCache':_0x255a33,'redoCache':_0x48343});}['_transformPreviousActiveRange'](_0x1c756f){const _0x476c44=_0x43938c;let {unitID:_0x58528a}=_0x1c756f,_0x512709=this[_0x476c44(0x18c)]['getRenderUnitById'](_0x58528a)[_0x476c44(0x18f)](f['DocIMEInputManagerService']),_0x253e34=_0x512709[_0x476c44(0x1ab)]();if(_0x253e34==null)return;let _0x14b6f8=[{'id':_0x476c44(0x473),'params':{'unitId':_0x1c756f[_0x476c44(0x250)],'actions':null,'textRanges':[_0x253e34]}}],_0x18c2ef=this[_0x476c44(0x240)]['transformMutationsWithChangeset'](_0x1c756f,_0x14b6f8);if(!(0x0,l[_0x476c44(0x24b)])(_0x18c2ef))throw _0x18c2ef[_0x476c44(0x22f)];let _0x57c432=_0x18c2ef[_0x476c44(0x283)][0x0][_0x476c44(0x1c5)][_0x476c44(0x431)];Array['isArray'](_0x57c432)&&_0x57c432[_0x476c44(0x25c)]&&_0x512709[_0x476c44(0x232)](_0x57c432[0x0]);}};H=S([x(0x0,l['ITransformService']),x(0x1,p[_0x43938c(0x1a0)])],H);let U=class{constructor(_0x270d38,_0x46333c,_0x6d2a94){const _0x2d849e=_0x43938c;this['_injector']=_0x270d38,this['_transformService']=_0x46333c,this[_0x2d849e(0x2e3)]=_0x6d2a94;}[_0x43938c(0x382)](_0xbbedc){const _0x1afeba=_0x43938c;this[_0x1afeba(0x2ff)](_0xbbedc);}[_0x43938c(0x449)](_0x46fbaa){const _0x150edb=_0x43938c;let {unitID:_0x251b9c}=_0x46fbaa,{collaboration:_0x4487bf}=this[_0x150edb(0x2e3)]['getStateCache'](_0x251b9c);if(_0x4487bf[_0x150edb(0x25c)]===0x0)return _0x46fbaa;let _0x55d8cf=t[_0x150edb(0x465)]['deepClone'](_0x46fbaa[_0x150edb(0x24d)][0x0]);for(let _0x41ac78=0x0;_0x41ac78<_0x4487bf[_0x150edb(0x25c)];_0x41ac78++){let _0x35906c={'id':_0x150edb(0x473),'params':{'unitId':_0x4487bf[_0x41ac78][_0x150edb(0x410)],..._0x4487bf[_0x41ac78][_0x150edb(0x1e5)]}},_0x24ecd5=this[_0x150edb(0x240)]['transformMutation'](_0x55d8cf,_0x35906c,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x24ecd5))throw _0x24ecd5['error'];_0x55d8cf=_0x24ecd5[_0x150edb(0x436)];}return{...t['Tools'][_0x150edb(0x2fc)](_0x46fbaa),'mutations':[_0x55d8cf]};}[_0x43938c(0x2ff)](_0x49f2b9){const _0x16a257=_0x43938c;let {unitID:_0xaf96ac}=_0x49f2b9,{history:_0xa4b5ec,collaboration:_0x3c7bad}=this[_0x16a257(0x2e3)][_0x16a257(0x310)](_0xaf96ac);if(_0xa4b5ec[_0x16a257(0x25c)]===0x0&&_0x3c7bad[_0x16a257(0x25c)]===0x0)return;let _0x34af9e=[],_0x38abfb=[],_0x2d2e2d=t['Tools'][_0x16a257(0x2fc)](_0x49f2b9[_0x16a257(0x24d)][0x0]),_0x134780=t[_0x16a257(0x465)]['deepClone'](_0x49f2b9[_0x16a257(0x24d)][0x0]);for(let _0x1bc516=_0xa4b5ec[_0x16a257(0x25c)]-0x1;_0x1bc516>=0x0;_0x1bc516--){let _0x3fc675={'id':_0x16a257(0x473),'params':{'unitId':_0xa4b5ec[_0x1bc516][_0x16a257(0x410)],..._0xa4b5ec[_0x1bc516]['undoState']}},_0x5695ae={'id':_0x16a257(0x473),'params':{'unitId':_0xa4b5ec[_0x1bc516][_0x16a257(0x410)],..._0xa4b5ec[_0x1bc516]['redoState']}},_0x46a912=this[_0x16a257(0x240)][_0x16a257(0x281)](_0x2d2e2d,_0x3fc675,!0x1),_0x3b9822=this[_0x16a257(0x240)][_0x16a257(0x281)](_0x134780,_0x5695ae,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x46a912))throw _0x46a912['error'];if((0x0,l['isTransformMutationFailure'])(_0x3b9822))throw _0x3b9822[_0x16a257(0x22f)];_0x34af9e[_0x16a257(0x43f)]({..._0xa4b5ec[_0x1bc516],'undoState':_0x46a912[_0x16a257(0x283)][_0x16a257(0x1c5)],'redoState':_0x3b9822[_0x16a257(0x283)][_0x16a257(0x1c5)]}),_0x2d2e2d=_0x46a912['m1Prime'],_0x134780=_0x3b9822[_0x16a257(0x436)];}_0x2d2e2d=t[_0x16a257(0x465)][_0x16a257(0x2fc)](_0x49f2b9[_0x16a257(0x24d)][0x0]),_0x134780=t[_0x16a257(0x465)][_0x16a257(0x2fc)](_0x49f2b9[_0x16a257(0x24d)][0x0]);for(let _0x39c045=_0x3c7bad[_0x16a257(0x25c)]-0x1;_0x39c045>=0x0;_0x39c045--){let _0x408e73={'id':_0x16a257(0x473),'params':{'unitId':_0x3c7bad[_0x39c045][_0x16a257(0x410)],..._0x3c7bad[_0x39c045][_0x16a257(0x41c)]}},_0x2a907b={'id':_0x16a257(0x473),'params':{'unitId':_0x3c7bad[_0x39c045][_0x16a257(0x410)],..._0x3c7bad[_0x39c045][_0x16a257(0x1e5)]}},_0x50b6f8=this['_transformService'][_0x16a257(0x281)](_0x2d2e2d,_0x408e73,!0x1),_0x78e47d=this['_transformService'][_0x16a257(0x281)](_0x134780,_0x2a907b,!0x1);if((0x0,l[_0x16a257(0x1d8)])(_0x50b6f8))throw _0x50b6f8[_0x16a257(0x22f)];if((0x0,l[_0x16a257(0x1d8)])(_0x78e47d))throw _0x78e47d[_0x16a257(0x22f)];_0x38abfb[_0x16a257(0x43f)]({..._0x3c7bad[_0x39c045],'undoState':_0x50b6f8[_0x16a257(0x283)]['params'],'redoState':_0x78e47d[_0x16a257(0x283)][_0x16a257(0x1c5)]}),_0x2d2e2d=_0x50b6f8[_0x16a257(0x436)],_0x134780=_0x78e47d['m1Prime'];}this[_0x16a257(0x2e3)][_0x16a257(0x457)](_0xaf96ac,{'history':_0x34af9e,'collaboration':_0x38abfb});}};function _0x5041(_0x7e5ee5,_0x6e81e2){_0x7e5ee5=_0x7e5ee5-0x17a;const _0x52dc8b=_0x52dc();let _0x5041e8=_0x52dc8b[_0x7e5ee5];return _0x5041e8;}U=S([x(0x0,(0x0,t['Inject'])(t['Injector'])),x(0x1,l[_0x43938c(0x314)]),x(0x2,(0x0,t['Inject'])(d[_0x43938c(0x1ff)]))],U);let W=class{constructor(_0xee8736,_0x394181){const _0x47f48f=_0x43938c;this[_0x47f48f(0x19d)]=_0xee8736,this[_0x47f48f(0x240)]=_0x394181;}['prepareTransformSelections'](_0x3865e1){const _0x56b649=_0x43938c;var _0x701638;let _0x17034c=this[_0x56b649(0x19d)][_0x56b649(0x3e8)]()??[],_0x42c27a=this[_0x56b649(0x19d)][_0x56b649(0x422)]();if(_0x17034c[_0x56b649(0x25c)]===0x0||_0x42c27a==null)return null;let _0x4d4b43=_0x3865e1[_0x56b649(0x250)],_0x10e2d7=[{'id':_0x56b649(0x473),'params':{'unitId':_0x4d4b43,'actions':null,'textRanges':_0x17034c}}],_0x4a28d2=this[_0x56b649(0x240)][_0x56b649(0x1c3)](_0x3865e1,_0x10e2d7);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x4a28d2))throw _0x4a28d2[_0x56b649(0x22f)];let _0x592fba=(_0x701638=_0x4a28d2[_0x56b649(0x283)][0x0])==null?void 0x0:_0x701638[_0x56b649(0x1c5)],_0x1e5625=_0x592fba&&typeof _0x592fba==_0x56b649(0x3a9)&&_0x56b649(0x431)in _0x592fba?_0x592fba['textRanges']:null;if(!Te(_0x1e5625))return null;let _0x304858=Ce(_0x3865e1[_0x56b649(0x24d)][_0x56b649(0x2c7)](_0x15c2b9=>G(_0x15c2b9[_0x56b649(0x1c5)]))?_0x1e5625[_0x56b649(0x39f)](_0x3f637b=>!(_0x56b649(0x1b4)in _0x3f637b)):_0x1e5625,{..._0x42c27a,'options':_0x42c27a[_0x56b649(0x23d)]?{..._0x42c27a[_0x56b649(0x23d)],'wholeDocument':!0x1}:void 0x0}),_0xb0c33c={'unitId':_0x4d4b43,'subUnitId':_0x4d4b43};this['_docSelectionManagerService'][_0x56b649(0x380)](_0x304858,_0xb0c33c);let _0x3b7684=!0x0;return{'commit':()=>{_0x3b7684=!0x1;},'rollback':()=>{const _0x4b0715=_0x56b649;_0x3b7684&&(_0x3b7684=!0x1,this[_0x4b0715(0x19d)][_0x4b0715(0x380)](_0x42c27a,_0xb0c33c));}};}};W=S([x(0x0,(0x0,t['Inject'])(d[_0x43938c(0x1e7)])),x(0x1,l['ITransformService'])],W);function Ce(_0x3f1896,_0x34affd){let _0x201ae9=[],_0x50e203=[];for(let _0x59a318 of _0x3f1896)we(_0x59a318)?_0x50e203['push'](_0x59a318):_0x201ae9['push'](_0x59a318);return{..._0x34affd,'textRanges':_0x201ae9,'rectRanges':_0x50e203};}function we(_0x44aea9){return'tableId'in _0x44aea9;}function Te(_0x351d6d){const _0x2e7085=_0x43938c;return Array['isArray'](_0x351d6d)&&_0x351d6d[_0x2e7085(0x334)](_0x12e2e8=>typeof _0x12e2e8==_0x2e7085(0x3a9)&&!!_0x12e2e8&&_0x2e7085(0x2da)in _0x12e2e8&&'endOffset'in _0x12e2e8);}function G(_0x1923a6){const _0x30b91b=_0x43938c;return _0x1923a6===_0x30b91b(0x3c4)?!0x0:Array['isArray'](_0x1923a6)?_0x1923a6[_0x30b91b(0x2c7)](_0x1f6c49=>G(_0x1f6c49)):!_0x1923a6||typeof _0x1923a6!=_0x30b91b(0x3a9)?!0x1:Object[_0x30b91b(0x1e2)](_0x1923a6)[_0x30b91b(0x2c7)](_0x331f3c=>G(_0x331f3c));}let K=class extends t['Disposable']{constructor(_0x486c54,_0x5d567b,_0x1b3018,_0x2e6594,_0x3c5103,_0x1b5a90,_0x51321c){const _0x5dc4fd=_0x43938c;super(),this[_0x5dc4fd(0x219)]=_0x486c54,this['_docTransformIMECacheService']=_0x5d567b,this[_0x5dc4fd(0x1ed)]=_0x1b3018,this[_0x5dc4fd(0x385)]=_0x2e6594,this[_0x5dc4fd(0x366)]=_0x3c5103,this['_messageService']=_0x1b5a90,this['_localeService']=_0x51321c,b(this,'_status$',new r[(_0x5dc4fd(0x325))](e[_0x5dc4fd(0x32f)][_0x5dc4fd(0x469)])),this['_initEntityListener']();}['_initEntityListener'](){const _0x5545d0=_0x43938c;this['disposeWithMe'](this['_collaborationController'][_0x5545d0(0x367)][_0x5545d0(0x3a7)](_0x4bbb5b=>{const _0x455b3d=_0x5545d0;_0x4bbb5b instanceof e[_0x455b3d(0x26f)]&&_0x4bbb5b[_0x455b3d(0x3c3)]({'onTransformIME':_0x28f2e2=>this['_docTransformIMECacheService'][_0x455b3d(0x2c5)](_0x28f2e2),'onTransformState':_0x4b0044=>this['_docTransformStateCacheService'][_0x455b3d(0x382)](_0x4b0044),'onPrepareTransformSelections':_0x1167ee=>this[_0x455b3d(0x385)][_0x455b3d(0x40a)](_0x1167ee),'onSyncEditingCollabCursor':_0x509583=>this[_0x455b3d(0x366)][_0x455b3d(0x272)](_0x509583),'onTransformRemoteChangesetByIMECache':_0x38293e=>this['_docTransformIMECacheService'][_0x455b3d(0x449)](_0x38293e),'onTransformRemoteChangesetByStateCache':_0x6477ed=>this[_0x455b3d(0x1ed)][_0x455b3d(0x449)](_0x6477ed)});}));}};K=S([x(0x0,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x303)])),x(0x1,(0x0,t[_0x43938c(0x360)])(H)),x(0x2,(0x0,t[_0x43938c(0x360)])(U)),x(0x3,(0x0,t[_0x43938c(0x360)])(W)),x(0x4,(0x0,t[_0x43938c(0x360)])(O)),x(0x5,n[_0x43938c(0x37f)]),x(0x6,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x391)]))],K);let q=class extends t[_0x43938c(0x43d)]{constructor(_0x10d384,_0x4dc61a,_0x506233,_0x5434e4){const _0x282e96=_0x43938c;super(),this[_0x282e96(0x458)]=_0x10d384,this[_0x282e96(0x3cb)]=_0x4dc61a,this['_logService']=_0x506233,this[_0x282e96(0x253)]=_0x5434e4,b(this,'_memberID',void 0x0),this[_0x282e96(0x42f)]();}['_init'](){const _0x3b6ea0=_0x43938c;this[_0x3b6ea0(0x1c9)](),this[_0x3b6ea0(0x2b1)](),this['_monkeyPatchLogService'](),this[_0x3b6ea0(0x236)]();}[_0x43938c(0x236)](){const _0x161f73=_0x43938c;this[_0x161f73(0x198)](this[_0x161f73(0x253)][_0x161f73(0x36d)][_0x161f73(0x3a7)](_0x1cb704=>{const _0x889fc2=_0x161f73;this[_0x889fc2(0x2a9)]=_0x1cb704==null?void 0x0:_0x1cb704['memberID'];}));}[_0x43938c(0x1c9)](){const _0x221ce1=_0x43938c;let _0x28fdb8=_0x37207c=>{const _0x24e3a2=_0x5041;var _0x431308;this[_0x24e3a2(0x3d1)](_0x24e3a2(0x22f),_0x24e3a2(0x239)+_0x37207c[_0x24e3a2(0x19e)]+_0x24e3a2(0x456)+_0x37207c['filename']+':'+_0x37207c[_0x24e3a2(0x3af)]+':'+_0x37207c[_0x24e3a2(0x234)]+'\x0a'+(((_0x431308=_0x37207c[_0x24e3a2(0x22f)])==null?void 0x0:_0x431308['stack'])||''));};window[_0x221ce1(0x3d6)]('error',_0x28fdb8),this[_0x221ce1(0x198)](()=>{const _0xfed1bc=_0x221ce1;window[_0xfed1bc(0x2ad)](_0xfed1bc(0x22f),_0x28fdb8);});}[_0x43938c(0x2b1)](){const _0x1a73ff=_0x43938c;let _0x86bab1=_0x3f00d0=>{const _0x5a361d=_0x5041;this[_0x5a361d(0x3d1)](_0x5a361d(0x22f),'[Unhandled\x20Rejection]:\x20'+_0x3f00d0[_0x5a361d(0x379)]);};window[_0x1a73ff(0x3d6)](_0x1a73ff(0x390),_0x86bab1),this['disposeWithMe'](()=>{const _0x7d124f=_0x1a73ff;window[_0x7d124f(0x2ad)]('unhandledrejection',_0x86bab1);});}[_0x43938c(0x2d6)](){const _0x2851fa=_0x43938c;let _0x355c96=this[_0x2851fa(0x3b6)][_0x2851fa(0x22f)][_0x2851fa(0x2a0)](this[_0x2851fa(0x3b6)]);this['_logService'][_0x2851fa(0x22f)]=(..._0x598f9e)=>{const _0x51cf5c=_0x2851fa;let _0x5cf209=_0x598f9e['map'](_0xb60cf3=>_0xb60cf3 instanceof Error?_0xb60cf3[_0x51cf5c(0x19e)]+'\x0a'+_0xb60cf3[_0x51cf5c(0x369)]:String(_0xb60cf3))[_0x51cf5c(0x45e)]('\x20');this[_0x51cf5c(0x3d1)](_0x51cf5c(0x22f),_0x51cf5c(0x2a6)+_0x5cf209),_0x355c96(..._0x598f9e);},this['disposeWithMe'](()=>{const _0x243850=_0x2851fa;this[_0x243850(0x3b6)][_0x243850(0x22f)]=_0x355c96;});}['_uploadLog'](_0x2c0972,_0x1e396f){const _0x34cd6f=_0x43938c;try{let _0x3440b6={'userId':this['_memberID'],'logLabel':_0x2c0972,'content':_0x1e396f};this[_0x34cd6f(0x3cb)][_0x34cd6f(0x1c4)](_0x34cd6f(0x352),{'body':_0x3440b6})[_0x34cd6f(0x336)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x1,(0x0,t[_0x43938c(0x360)])(m[_0x43938c(0x29e)])),x(0x2,t[_0x43938c(0x27a)]),x(0x3,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x1a7)]))],q);function Ee({state$:_0x28022d}){const _0x591cbc=_0x43938c;let _0xeebb6d=(0x0,n[_0x591cbc(0x1f6)])(_0x28022d,null,!0x0);return _0xeebb6d?(0x0,c[_0x591cbc(0x1c1)])('div',{'data-u-comp':_0x591cbc(0x329),'role':'alert','className':_0x591cbc(0x35d),'children':[(0x0,c[_0x591cbc(0x2b2)])(o[_0x591cbc(0x468)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,c[_0x591cbc(0x2b2)])(_0x591cbc(0x38e),{'children':_0xeebb6d[_0x591cbc(0x3ec)]}),(0x0,c[_0x591cbc(0x2b2)])(a['Button'],{'size':_0x591cbc(0x377),'variant':_0x591cbc(0x2af),'onClick':()=>window[_0x591cbc(0x3ae)]['reload'](),'children':_0xeebb6d[_0x591cbc(0x263)]})]}):null;}const De=_0x43938c(0x1fe);let J=class extends t[_0x43938c(0x43d)]{constructor(_0x8ea2f8,_0x425369,_0x16894c,_0xef6cf5,_0x52ed67){const _0x4a37f8=_0x43938c;super(),this[_0x4a37f8(0x46d)]=_0x8ea2f8,this['_messageService']=_0x425369,this[_0x4a37f8(0x397)]=_0x16894c,this['_injector']=_0xef6cf5,b(this,_0x4a37f8(0x35a),new r[(_0x4a37f8(0x325))](null)),b(this,'_messageIds',new Set()),b(this,_0x4a37f8(0x47b),new Map()),b(this,_0x4a37f8(0x1d3),this[_0x4a37f8(0x35a)][_0x4a37f8(0x1a8)]());let _0x5219b8=()=>(0x0,s[_0x4a37f8(0x414)])(Ee,{'state$':this[_0x4a37f8(0x1d3)]});this[_0x4a37f8(0x198)](_0x52ed67[_0x4a37f8(0x20c)](n[_0x4a37f8(0x361)][_0x4a37f8(0x213)],()=>(0x0,n[_0x4a37f8(0x1cd)])(_0x5219b8,this[_0x4a37f8(0x458)]))),this[_0x4a37f8(0x198)](this[_0x4a37f8(0x46d)][_0x4a37f8(0x2be)][_0x4a37f8(0x3a7)](_0x2bacc1=>{_0x2bacc1['forEach'](_0x1c0f35=>this['_updateMessage'](_0x1c0f35));}));}['dispose'](){const _0x51a12f=_0x43938c;this['_messageIds'][_0x51a12f(0x28b)](_0x483fdd=>this[_0x51a12f(0x435)]['remove'](_0x483fdd)),this[_0x51a12f(0x442)]['clear'](),this[_0x51a12f(0x47b)][_0x51a12f(0x28b)](({timeoutId:_0x2c21de})=>clearTimeout(_0x2c21de)),this['_blockProgressWatches'][_0x51a12f(0x270)](),this['_timeoutState$'][_0x51a12f(0x183)](),super[_0x51a12f(0x202)]();}['_updateMessage'](_0x117f63){const _0x444d83=_0x43938c;let _0x8d9417=''+De+_0x117f63[_0x444d83(0x410)];_0x117f63[_0x444d83(0x42e)]===l[_0x444d83(0x347)]['COMPLETE']?(this[_0x444d83(0x205)](_0x117f63['unitId']),this[_0x444d83(0x26e)](_0x117f63[_0x444d83(0x410)]),this[_0x444d83(0x435)][_0x444d83(0x254)](_0x8d9417),this[_0x444d83(0x442)][_0x444d83(0x354)](_0x8d9417)):_0x117f63[_0x444d83(0x42e)]===l['SnapshotLoadStage']['ERROR']?(this[_0x444d83(0x205)](_0x117f63[_0x444d83(0x410)]),this[_0x444d83(0x26e)](_0x117f63[_0x444d83(0x410)]),this[_0x444d83(0x435)][_0x444d83(0x1f4)]({'id':_0x8d9417,'type':a['MessageType'][_0x444d83(0x292)],'content':this[_0x444d83(0x397)]['t'](_0x444d83(0x359))}),this['_messageIds'][_0x444d83(0x354)](_0x8d9417)):_0x117f63['stage']!==l[_0x444d83(0x347)][_0x444d83(0x3fa)]||_0x117f63[_0x444d83(0x32a)]<=0xa?(this[_0x444d83(0x205)](_0x117f63[_0x444d83(0x410)]),this[_0x444d83(0x435)][_0x444d83(0x254)](_0x8d9417),this['_messageIds'][_0x444d83(0x354)](_0x8d9417)):this[_0x444d83(0x2d9)](_0x117f63)||(this['_messageService'][_0x444d83(0x1f4)]({'id':_0x8d9417,'type':a[_0x444d83(0x31d)][_0x444d83(0x39a)],'duration':0x1/0x0,'content':this[_0x444d83(0x397)]['t'](_0x444d83(0x467))+'\x20'+_0x117f63[_0x444d83(0x17f)]+'/'+_0x117f63['totalBlocks']}),this['_messageIds'][_0x444d83(0x315)](_0x8d9417));}[_0x43938c(0x2d9)](_0x1d31ba){const _0x4c5e5=_0x43938c;let _0x16aff4=this[_0x4c5e5(0x47b)][_0x4c5e5(0x2b0)](_0x1d31ba[_0x4c5e5(0x410)]);if((_0x16aff4==null?void 0x0:_0x16aff4[_0x4c5e5(0x17f)])===_0x1d31ba['loadedBlocks'])return _0x16aff4[_0x4c5e5(0x1d1)];this[_0x4c5e5(0x205)](_0x1d31ba[_0x4c5e5(0x410)]);let _0x2435c8=setTimeout(()=>{const _0x41b667=_0x4c5e5;let _0x3f07b9=this[_0x41b667(0x47b)]['get'](_0x1d31ba['unitId']);if(!_0x3f07b9||_0x3f07b9[_0x41b667(0x214)]!==_0x2435c8)return;_0x3f07b9[_0x41b667(0x1d1)]=!0x0;let _0x4df57f=''+De+_0x1d31ba['unitId'];this['_messageService'][_0x41b667(0x254)](_0x4df57f),this[_0x41b667(0x442)][_0x41b667(0x354)](_0x4df57f),this['_timeoutState$']['next']({'unitId':_0x1d31ba[_0x41b667(0x410)],'content':this[_0x41b667(0x397)]['t'](_0x41b667(0x3f6),String(_0x1d31ba['loadedBlocks']),String(_0x1d31ba['totalBlocks'])),'refreshLabel':this['_localeService']['t'](_0x41b667(0x1aa))});},0xea60);return this[_0x4c5e5(0x47b)][_0x4c5e5(0x478)](_0x1d31ba['unitId'],{'loadedBlocks':_0x1d31ba[_0x4c5e5(0x17f)],'timedOut':!0x1,'timeoutId':_0x2435c8}),!0x1;}['_clearBlockProgressWatch'](_0x53778a){const _0x3ce695=_0x43938c;let _0x3465bd=this[_0x3ce695(0x47b)][_0x3ce695(0x2b0)](_0x53778a);_0x3465bd&&(clearTimeout(_0x3465bd[_0x3ce695(0x214)]),this[_0x3ce695(0x47b)][_0x3ce695(0x354)](_0x53778a),this[_0x3ce695(0x26e)](_0x53778a));}[_0x43938c(0x26e)](_0xf78862){const _0x487e9f=_0x43938c;var _0x3edca1;((_0x3edca1=this[_0x487e9f(0x35a)]['value'])==null?void 0x0:_0x3edca1[_0x487e9f(0x410)])===_0xf78862&&this['_timeoutState$']['next'](null);}};J=S([x(0x0,(0x0,t[_0x43938c(0x360)])(l[_0x43938c(0x402)])),x(0x1,n['IMessageService']),x(0x2,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x391)])),x(0x3,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x4,n['IUIPartsService'])],J);let Y=class extends t[_0x43938c(0x43d)]{constructor(_0x563d46,_0x426050,_0x3df590,_0x34030b,_0x5a5bf9){const _0xd9179c=_0x43938c;var _0x45e5c2;super(),this['_configService']=_0x563d46,this[_0xd9179c(0x1b6)]=_0x426050,this[_0xd9179c(0x337)]=_0x3df590,this[_0xd9179c(0x3b6)]=_0x34030b,this[_0xd9179c(0x1f3)]=_0x5a5bf9,b(this,_0xd9179c(0x284),new Map()),b(this,_0xd9179c(0x38b),new Map()),b(this,_0xd9179c(0x3dd),new Map()),b(this,'_disabled',!0x1),this[_0xd9179c(0x40c)]=!((_0x45e5c2=this[_0xd9179c(0x1a5)][_0xd9179c(0x43b)](e[_0xd9179c(0x307)]))!=null&&_0x45e5c2[_0xd9179c(0x461)]);}[_0x43938c(0x470)](){const _0x4e92fe=_0x43938c;this[_0x4e92fe(0x40c)]=!0x0;}[_0x43938c(0x269)](){const _0x5b2a33=_0x43938c;this[_0x5b2a33(0x40c)]=!0x1;}get[_0x43938c(0x26b)](){const _0x9d3797=_0x43938c;let _0x3f8152=new Map(this[_0x9d3797(0x38b)]);return this[_0x9d3797(0x3dd)][_0x9d3797(0x28b)]((_0x54ae6a,_0x54e3e2)=>{const _0xb36192=_0x9d3797;_0x3f8152[_0xb36192(0x29f)](_0x54e3e2)||_0x3f8152['set'](_0x54e3e2,0x0);}),_0x3f8152;}[_0x43938c(0x202)](){const _0x3cad99=_0x43938c;this[_0x3cad99(0x3bb)]||(super[_0x3cad99(0x202)](),this[_0x3cad99(0x40c)]=!0x0,this[_0x3cad99(0x2f8)]()[_0x3cad99(0x336)](_0x598396=>this[_0x3cad99(0x3b6)][_0x3cad99(0x22f)](_0x598396)));}async[_0x43938c(0x3a1)](_0x233bde,_0x36d60a){const _0x703776=_0x43938c;if(this[_0x703776(0x40c)])return null;let _0x10067=this['_getUserId'](_0x36d60a),_0x4054c6=await this['_localStorageService'][_0x703776(0x471)]((0x0,e['getLocalCacheKey'])(_0x233bde,_0x10067));return(_0x4054c6==null?void 0x0:_0x4054c6[_0x703776(0x250)])===_0x233bde&&this['_normalizeUserId'](_0x4054c6[_0x703776(0x1fa)])===_0x10067?_0x4054c6:null;}async[_0x43938c(0x193)](_0x5a3032,_0x5db010,_0x26d69d){const _0x5405c6=_0x43938c;let _0x49a9f7=this['_getUserId'](_0x26d69d),_0x1c6938=(0x0,e[_0x5405c6(0x19b)])(_0x5a3032,_0x49a9f7),_0x1eedf8=this[_0x5405c6(0x1b6)][_0x5405c6(0x373)](_0x1c6938,{..._0x5db010,'unitID':_0x5a3032,'userId':_0x49a9f7});return this[_0x5405c6(0x459)](_0x1c6938,_0x1eedf8),!!await _0x1eedf8;}async['backupOfflineData'](_0x4302e9,_0x33ec8b,_0x42d064){const _0x238ae0=_0x43938c;let _0x304e36=this['_getUserId'](_0x42d064),_0x196b8c=(0x0,e['getLocalCacheKey'])(_0x4302e9,_0x304e36),_0x4b4eae=this['_cachedData'][_0x238ae0(0x2b0)](_0x196b8c)??await this[_0x238ae0(0x1b6)][_0x238ae0(0x471)](_0x196b8c);if(!_0x4b4eae||this[_0x238ae0(0x1e6)](_0x4b4eae['userId'])!==_0x304e36||_0x4b4eae[_0x238ae0(0x250)]!==_0x4302e9)return;let _0x15e86b=Date[_0x238ae0(0x2a4)](),_0x44446b=new Date(_0x15e86b)['toISOString']();await this[_0x238ae0(0x1b6)][_0x238ae0(0x373)](_0x196b8c+':backup:'+_0x15e86b,{'reason':_0x33ec8b,'createdAt':_0x44446b,'data':_0x4b4eae});}async[_0x43938c(0x416)](_0x43e131,_0x4adf65){const _0x4f6789=_0x43938c;let _0x2aebaa=this[_0x4f6789(0x404)](_0x4adf65),_0x186679=(0x0,e[_0x4f6789(0x19b)])(_0x43e131,_0x2aebaa),_0x55f40e=this[_0x4f6789(0x38b)][_0x4f6789(0x2b0)](_0x186679);_0x55f40e!==void 0x0&&(window[_0x4f6789(0x184)](_0x55f40e),this[_0x4f6789(0x38b)][_0x4f6789(0x354)](_0x186679));let _0x195aeb=this['_activeSaveTaskMap'][_0x4f6789(0x2b0)](_0x186679);_0x195aeb&&await Promise['allSettled'](_0x195aeb),this[_0x4f6789(0x284)][_0x4f6789(0x354)](_0x186679),await this[_0x4f6789(0x1b6)][_0x4f6789(0x2d1)](_0x186679);}[_0x43938c(0x344)](_0x1c36ab,_0x4fe8c0,_0x2e32d9,_0x5bb823,_0x31cd2d){const _0x1b71af=_0x43938c;if(this[_0x1b71af(0x3bb)])return;let _0x1324f9=this[_0x1b71af(0x404)](_0x31cd2d),_0x1b5d61=(0x0,e[_0x1b71af(0x19b)])(_0x1c36ab,_0x1324f9),_0x39f84c=this['_revisionService']['getCurrentRevOfUnit'](_0x1c36ab);this[_0x1b71af(0x284)][_0x1b71af(0x478)](_0x1b5d61,{'unitID':_0x1c36ab,'userId':_0x1324f9,'type':_0x4fe8c0,'awaitingChangeset':_0x2e32d9,'mutations':_0x5bb823,'rev':_0x39f84c}),this[_0x1b71af(0x38b)][_0x1b71af(0x29f)](_0x1b5d61)||this[_0x1b71af(0x3ea)](_0x1b5d61);}[_0x43938c(0x404)](_0x2ebe5e=((()=>{const _0x4fd363=_0x43938c;var _0xd6b43a;return(_0xd6b43a=this[_0x4fd363(0x1f3)][_0x4fd363(0x29b)]())==null?void 0x0:_0xd6b43a[_0x4fd363(0x384)];})())){const _0x11253b=_0x43938c;return this[_0x11253b(0x1e6)](_0x2ebe5e);}[_0x43938c(0x1e6)](_0xdb5806){return _0xdb5806===''||_0xdb5806==null?void 0x0:_0xdb5806;}[_0x43938c(0x3ea)](_0x2b9a08){const _0x115907=_0x43938c;let _0x2d80b3=this[_0x115907(0x21b)]();_0x2d80b3===0x0?this['_saveCache'](_0x2b9a08)[_0x115907(0x336)](_0x29caac=>this['_logService'][_0x115907(0x22f)](_0x29caac)):this[_0x115907(0x38b)][_0x115907(0x478)](_0x2b9a08,window[_0x115907(0x30d)](()=>{const _0x1b61d3=_0x115907;this[_0x1b61d3(0x405)](_0x2b9a08)['catch'](_0x46b6a1=>this[_0x1b61d3(0x3b6)][_0x1b61d3(0x22f)](_0x46b6a1));},_0x2d80b3));}[_0x43938c(0x21b)](){const _0x9fc03b=_0x43938c;return this[_0x9fc03b(0x1a5)][_0x9fc03b(0x43b)](e[_0x9fc03b(0x264)])??e[_0x9fc03b(0x444)];}[_0x43938c(0x405)](_0x65d8c0){const _0x16f7a8=_0x43938c;let _0x4266f2=this['_saveTaskMap']['get'](_0x65d8c0);_0x4266f2!==void 0x0&&window[_0x16f7a8(0x184)](_0x4266f2);let _0x197e19=this['_cachedData']['get'](_0x65d8c0);if(!_0x197e19)return Promise[_0x16f7a8(0x2b4)]();let _0x31e641=this[_0x16f7a8(0x3dd)][_0x16f7a8(0x2b0)](_0x65d8c0),_0x11739f=Promise[_0x16f7a8(0x3ef)](_0x31e641?[..._0x31e641]:[])[_0x16f7a8(0x27b)](()=>this[_0x16f7a8(0x1b6)][_0x16f7a8(0x373)](_0x65d8c0,_0x197e19))[_0x16f7a8(0x27b)](()=>{const _0x1ed2db=_0x16f7a8;_0x4266f2!==void 0x0&&this['_saveTaskMap'][_0x1ed2db(0x2b0)](_0x65d8c0)===_0x4266f2&&(this[_0x1ed2db(0x38b)]['delete'](_0x65d8c0),!this['_disposed']&&this['_cachedData'][_0x1ed2db(0x2b0)](_0x65d8c0)!==_0x197e19&&this['_scheduleSaving'](_0x65d8c0));});return this[_0x16f7a8(0x459)](_0x65d8c0,_0x11739f),_0x11739f;}[_0x43938c(0x459)](_0x163983,_0x3af777){const _0x4452f0=_0x43938c;let _0x53fddb=this[_0x4452f0(0x3dd)][_0x4452f0(0x2b0)](_0x163983);_0x53fddb||(_0x53fddb=new Set(),this['_activeSaveTaskMap'][_0x4452f0(0x478)](_0x163983,_0x53fddb)),_0x53fddb[_0x4452f0(0x315)](_0x3af777);let _0x2374cf=()=>{const _0x3375a0=_0x4452f0;_0x53fddb[_0x3375a0(0x354)](_0x3af777),_0x53fddb[_0x3375a0(0x425)]===0x0&&this[_0x3375a0(0x3dd)][_0x3375a0(0x354)](_0x163983);};_0x3af777[_0x4452f0(0x27b)](_0x2374cf,_0x2374cf);}async[_0x43938c(0x2f8)](){const _0x206baa=_0x43938c;let _0x505dae=[...this[_0x206baa(0x38b)][_0x206baa(0x40b)]()][_0x206baa(0x1ef)](_0x4dc292=>this[_0x206baa(0x405)](_0x4dc292));for(let _0x57fb6e of this[_0x206baa(0x3dd)][_0x206baa(0x1e2)]())_0x505dae[_0x206baa(0x34e)](...[..._0x57fb6e]['map'](_0x101d30=>_0x101d30['then'](()=>void 0x0)));await Promise['all'](_0x505dae);}};Y=S([x(0x0,t['IConfigService']),x(0x1,t[_0x43938c(0x36a)]),x(0x2,(0x0,t['Inject'])(l[_0x43938c(0x30e)])),x(0x3,t[_0x43938c(0x27a)]),x(0x4,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x37d)]))],Y);var Oe=class extends t[_0x43938c(0x43d)]{get['online'](){const _0x448df4=_0x43938c;return this[_0x448df4(0x1a6)]['getValue']();}constructor(){const _0x413355=_0x43938c;super(),b(this,_0x413355(0x1a6),new r['BehaviorSubject'](navigator[_0x413355(0x1b7)])),b(this,_0x413355(0x1b5),this[_0x413355(0x1a6)][_0x413355(0x1a8)]()),this[_0x413355(0x18d)](),this['_listenToOnlineEvent']();}[_0x43938c(0x202)](){const _0x3ebbec=_0x43938c;super[_0x3ebbec(0x202)](),this['_online$'][_0x3ebbec(0x183)]();}[_0x43938c(0x40d)](){const _0x3811f8=_0x43938c;this[_0x3811f8(0x198)]((0x0,r['merge'])((0x0,r[_0x3811f8(0x381)])(window,_0x3811f8(0x207)),(0x0,r[_0x3811f8(0x381)])(window,_0x3811f8(0x248)),(0x0,r['fromEvent'])(document,_0x3811f8(0x1db))[_0x3811f8(0x42a)]((0x0,r[_0x3811f8(0x1ef)])(()=>document['visibilityState']===_0x3811f8(0x218)),(0x0,r['filter'])(_0x39e971=>_0x39e971)))[_0x3811f8(0x42a)]((0x0,r[_0x3811f8(0x39f)])(()=>navigator[_0x3811f8(0x1b7)]))['subscribe'](()=>this['_online$'][_0x3811f8(0x1a4)](!0x0)));}['_listenToOfflineEvent'](){const _0x57877a=_0x43938c;this[_0x57877a(0x198)]((0x0,r[_0x57877a(0x381)])(window,'offline')[_0x57877a(0x3a7)](()=>this[_0x57877a(0x1a6)][_0x57877a(0x1a4)](!0x1)));}};let X=class extends t[_0x43938c(0x308)]{constructor(_0x1f571a=se,_0x5718ef,_0x1974b1,_0x40ba66,_0x1df2aa){const _0x1a9a9b=_0x43938c;super(),this[_0x1a9a9b(0x2fb)]=_0x1f571a,this[_0x1a9a9b(0x18c)]=_0x5718ef,this['_injector']=_0x1974b1,this['_configService']=_0x40ba66,this[_0x1a9a9b(0x1ee)]=_0x1df2aa;let {..._0x8b2325}=(0x0,t[_0x1a9a9b(0x20f)])({},se,this[_0x1a9a9b(0x2fb)]);this[_0x1a9a9b(0x1a5)][_0x1a9a9b(0x460)](_0x1a9a9b(0x2c4),_0x8b2325);}['onStarting'](){const _0x37ee71=_0x43938c;this['_registerDependencies'](),this[_0x37ee71(0x198)](this['_commandService'][_0x37ee71(0x1fb)](T)),this[_0x37ee71(0x18a)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x43938c(0x2cd)](){const _0x59f723=_0x43938c;var _0x3b48dc;let _0x35aadf=[[D],[m[_0x59f723(0x1d4)],{'useClass':m[_0x59f723(0x291)]}],[e['ILocalCacheService'],{'useClass':Y}],[e[_0x59f723(0x45f)],{'useClass':Oe}],[C],[V],[j],[z],[J]];this[_0x59f723(0x2fb)][_0x59f723(0x227)]!==!0x1&&_0x35aadf[_0x59f723(0x34e)]([W],[H],[U],[O],[K],[E]),this['_config'][_0x59f723(0x2c6)]&&_0x35aadf[_0x59f723(0x34e)]([q]),(0x0,t['registerDependencies'])(this[_0x59f723(0x458)],(0x0,t[_0x59f723(0x44e)])(_0x35aadf,(_0x3b48dc=this[_0x59f723(0x2fb)])==null?void 0x0:_0x3b48dc[_0x59f723(0x301)]));}[_0x43938c(0x1fc)](){const _0x502235=_0x43938c;this[_0x502235(0x2fb)][_0x502235(0x227)]!==!0x1&&this[_0x502235(0x198)](this['_renderManagerService'][_0x502235(0x3c0)](t[_0x502235(0x31f)][_0x502235(0x364)],[P])),this['disposeWithMe'](this[_0x502235(0x18c)]['registerRenderModule'](t[_0x502235(0x31f)][_0x502235(0x3cf)],[I]));}[_0x43938c(0x18a)](){const _0x3ff187=_0x43938c;(0x0,t[_0x3ff187(0x212)])(this[_0x3ff187(0x458)],[[j],[z],[C],[V],[J]]),this['_config'][_0x3ff187(0x227)]!==!0x1&&(0x0,t[_0x3ff187(0x212)])(this[_0x3ff187(0x458)],[[K],[E]]),this[_0x3ff187(0x2fb)][_0x3ff187(0x2c6)]&&(0x0,t[_0x3ff187(0x212)])(this[_0x3ff187(0x458)],[[q]]);}};b(X,'pluginName',_0x43938c(0x2d0)),b(X,'packageName',ae),b(X,_0x43938c(0x1d9),oe),X=S([(0x0,t[_0x43938c(0x35c)])(u['UniverLicensePlugin'],d[_0x43938c(0x233)],p[_0x43938c(0x455)],m[_0x43938c(0x25d)],l[_0x43938c(0x41d)],f[_0x43938c(0x2ab)],e[_0x43938c(0x44a)]),x(0x1,p['IRenderManagerService']),x(0x2,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x3,t['IConfigService']),x(0x4,t['ICommandService'])],X);let Z=class extends e[_0x43938c(0x1f0)]{constructor(_0x543377,_0x1ce1bd,_0x205430,_0x4ec441,_0x5bdda7){const _0x5cc910=_0x43938c;super(_0x543377,_0x1ce1bd,_0x205430,_0x4ec441,_0x5bdda7),b(this,_0x5cc910(0x17c),new r[(_0x5cc910(0x429))]()),this[_0x5cc910(0x198)](()=>{const _0x4d2d37=_0x5cc910;this['_dispose$']['next'](),this['_dispose$'][_0x4d2d37(0x183)]();});}async['createSocket'](_0x1b4ec0){const _0x1a2e9a=_0x43938c;let _0x34504d=await this[_0x1a2e9a(0x1bb)](),_0x31bc2a=this['_createSocketURL'](_0x1b4ec0,_0x34504d);return this[_0x1a2e9a(0x3bd)](_0x31bc2a);}[_0x43938c(0x258)](_0x26b8a1,_0x31ff7a){const _0x15f1b2=_0x43938c;let _0x291f87=typeof window>'u'?new URL(_0x26b8a1):new URL(_0x26b8a1,window[_0x15f1b2(0x3ae)][_0x15f1b2(0x401)]);_0x291f87[_0x15f1b2(0x42d)][_0x15f1b2(0x478)]('sessionTicket',_0x31ff7a);let _0xb9bc1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x15f1b2(0x3ae)][_0x15f1b2(0x339)]);return _0xb9bc1[_0x15f1b2(0x2b0)](_0x15f1b2(0x375))&&_0x291f87['searchParams']['set'](_0x15f1b2(0x375),_0xb9bc1[_0x15f1b2(0x2b0)](_0x15f1b2(0x375))),_0x291f87[_0x15f1b2(0x3d3)]();}async[_0x43938c(0x1bb)](){const _0x4e987c=_0x43938c;var _0x1730eb;let _0x507051=this[_0x4e987c(0x1a5)][_0x4e987c(0x43b)](e[_0x4e987c(0x307)]),_0x524dd6=(_0x507051==null?void 0x0:_0x507051[_0x4e987c(0x1c2)])??e[_0x4e987c(0x332)];return((_0x1730eb=(await(0x0,r[_0x4e987c(0x358)])(this[_0x4e987c(0x3cb)][_0x4e987c(0x2e5)]('GET',_0x524dd6,{'headers':{'Content-Type':_0x4e987c(0x35f)}})[_0x4e987c(0x42a)]((0x0,r[_0x4e987c(0x39f)])(_0x1275a1=>_0x1275a1['type']===m[_0x4e987c(0x394)][_0x4e987c(0x2dd)]),(0x0,r[_0x4e987c(0x33e)])(0x4e20),(0x0,r['takeUntil'])(this[_0x4e987c(0x17c)]))))[_0x4e987c(0x41f)])==null?void 0x0:_0x1730eb['ticket'])??'';}};Z=S([x(0x0,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x1,(0x0,t[_0x43938c(0x360)])(m[_0x43938c(0x29e)])),x(0x2,t[_0x43938c(0x396)]),x(0x3,t[_0x43938c(0x27a)]),x(0x4,l['ISnapshotServerService'])],Z);let Q=class extends t['Disposable']{constructor(_0x2e7a32,_0x303fa2,_0x50d35f){const _0x135021=_0x43938c;super(),this[_0x135021(0x1f9)]=_0x2e7a32,this['_httpService']=_0x303fa2,this[_0x135021(0x1a5)]=_0x50d35f;}async[_0x43938c(0x309)](_0x554037,_0xa46e07,_0x388b06,..._0x4ece44){const _0x530c6d=_0x43938c;let _0x51cd9d=this[_0x530c6d(0x1f9)][_0x530c6d(0x2ce)]();if(!_0x51cd9d)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x3fd392=(this[_0x530c6d(0x1a5)][_0x530c6d(0x43b)](e['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY'])??e[_0x530c6d(0x2ca)])+'/'+_0x554037+'/run/'+_0xa46e07,_0x2d2fff={'scriptId':_0x554037,'runId':new URL(window['location']['href'])['searchParams']['get']('runId')??'','function':_0xa46e07,'unitId':_0x51cd9d[_0x530c6d(0x225)](),'argsOfFunction':JSON['stringify'](_0x4ece44),'invokeId':_0x388b06[_0x530c6d(0x1c7)]??'','executionId':_0x388b06[_0x530c6d(0x23b)]??''};try{let _0x158545=await this['_httpService'][_0x530c6d(0x1c4)](_0x3fd392,{'body':_0x2d2fff});return _0x158545['body']['error']&&_0x158545[_0x530c6d(0x41f)][_0x530c6d(0x22f)][_0x530c6d(0x45b)]!==v['ErrorCode']['OK']?_0x530c6d(0x38f):_0x158545[_0x530c6d(0x41f)][_0x530c6d(0x282)];}catch{return'Failed';}}};Q=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t['Inject'])(m[_0x43938c(0x29e)])),x(0x2,t['IConfigService'])],Q);const ke=0x7530,$=_0x43938c(0x3b5);var Ae=class extends t['Disposable']{constructor(){const _0x3bdcab=_0x43938c;super(),b(this,'_id',(0x0,t[_0x3bdcab(0x3c8)])()),b(this,_0x3bdcab(0x3eb),new Set()),b(this,_0x3bdcab(0x408),new Map()),b(this,_0x3bdcab(0x3c2),null),b(this,_0x3bdcab(0x266),new Map()),b(this,'_unitStatus',new Map()),this[_0x3bdcab(0x42f)]();}[_0x43938c(0x202)](){const _0x33a508=_0x43938c;super['dispose'](),this[_0x33a508(0x266)][_0x33a508(0x28b)]((_0x109e7c,_0x50e050)=>this[_0x33a508(0x31c)](_0x50e050)),this[_0x33a508(0x3c2)]&&window[_0x33a508(0x41a)](this[_0x33a508(0x3c2)]);}[_0x43938c(0x1a2)](_0x19d19e){const _0x25c246=_0x43938c;return this['_ensureSubject'](_0x19d19e)[_0x25c246(0x42a)]((0x0,r[_0x25c246(0x3a6)])());}[_0x43938c(0x3d7)](_0x5bb4e2){const _0x31fc91=_0x43938c;this['_selfUnitIDs'][_0x31fc91(0x425)]===0x0&&this[_0x31fc91(0x2e0)](),this['_selfUnitIDs'][_0x31fc91(0x315)](_0x5bb4e2),this[_0x31fc91(0x245)]({'type':0x0,'memberID':this[_0x31fc91(0x428)],'unitIDs':[_0x5bb4e2],'isForwarded':!0x1});}[_0x43938c(0x32b)](_0x36ed80){const _0x29999b=_0x43938c;this[_0x29999b(0x3eb)][_0x29999b(0x354)](_0x36ed80),this[_0x29999b(0x3eb)][_0x29999b(0x425)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x43938c(0x42f)](){const _0x56bd19=_0x43938c;this[_0x56bd19(0x198)]((0x0,t[_0x56bd19(0x189)])((0x0,r[_0x56bd19(0x381)])(window,_0x56bd19(0x2b8))[_0x56bd19(0x3a7)](_0x16e472=>{const _0x346f9a=_0x56bd19;if(_0x16e472[_0x346f9a(0x38d)]!==$||!_0x16e472[_0x346f9a(0x23c)])return;let _0x6608ff=JSON[_0x346f9a(0x2e2)](_0x16e472[_0x346f9a(0x23c)]);this[_0x346f9a(0x1d2)](_0x6608ff);}))),window[_0x56bd19(0x3d6)](_0x56bd19(0x353),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x56bd19(0x1dc)](this['_selfUnitIDs'])}));}[_0x43938c(0x1d2)](_0x39dd33){const _0x15bd42=_0x43938c;switch(_0x39dd33[_0x15bd42(0x2a5)]){case 0x0:this[_0x15bd42(0x1d6)](_0x39dd33);break;case 0x1:this[_0x15bd42(0x33c)](_0x39dd33);break;case 0x2:this['_handleHeartbeatEvent'](_0x39dd33);}}[_0x43938c(0x1d6)](_0x312547){const _0x9b86c7=_0x43938c;let {unitIDs:_0x6643ce,memberID:_0x19acf2,isForwarded:_0x430bf3}=_0x312547;_0x6643ce['forEach'](_0x86598d=>{const _0xcc8397=_0x5041;if(!_0x430bf3&&this[_0xcc8397(0x408)][_0xcc8397(0x29f)](_0x86598d)&&this['_ensureSubject'](_0x86598d)['next'](e[_0xcc8397(0x3e6)]['OTHER_CLIENTS_EDITING']),!this[_0xcc8397(0x408)][_0xcc8397(0x29f)](_0x86598d)||!this[_0xcc8397(0x408)][_0xcc8397(0x2b0)](_0x86598d)[_0xcc8397(0x29f)](_0x19acf2)){let _0xc4a02b=this[_0xcc8397(0x408)][_0xcc8397(0x2b0)](_0x86598d)||new Set();_0xc4a02b[_0xcc8397(0x315)](_0x19acf2),this[_0xcc8397(0x408)]['set'](_0x86598d,_0xc4a02b),this[_0xcc8397(0x35b)](_0x19acf2);}}),_0x430bf3||this[_0x9b86c7(0x245)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x9b86c7(0x3eb)]],'isForwarded':!0x0});}[_0x43938c(0x35b)](_0x47af59){const _0x1335b1=_0x43938c;this[_0x1335b1(0x31c)](_0x47af59);let _0x2defad=window['setTimeout'](()=>{const _0x480372=_0x1335b1;this[_0x480372(0x408)][_0x480372(0x28b)](_0x28f9c1=>{const _0x7b9fb2=_0x480372;_0x28f9c1[_0x7b9fb2(0x354)](_0x47af59);});},ke*0x2);this[_0x1335b1(0x266)][_0x1335b1(0x478)](_0x47af59,_0x2defad);}[_0x43938c(0x31c)](_0x155512){const _0x2622a9=_0x43938c;if(this['_clearOtherTimers'][_0x2622a9(0x29f)](_0x155512)){let _0x22cc12=this['_clearOtherTimers'][_0x2622a9(0x2b0)](_0x155512);_0x22cc12&&window['clearTimeout'](_0x22cc12),this[_0x2622a9(0x266)][_0x2622a9(0x478)](_0x155512,null);}}['_handleLeaveEvent'](_0xea3a6f){const _0x4dff51=_0x43938c;let {memberID:_0x2f2954,unitIDs:_0x5905f6}=_0xea3a6f;_0x5905f6[_0x4dff51(0x28b)](_0x5b9782=>{const _0x3a0476=_0x4dff51;var _0x227691;let _0x365070=this[_0x3a0476(0x408)][_0x3a0476(0x2b0)](_0x5b9782);_0x365070&&(_0x365070[_0x3a0476(0x354)](_0x2f2954),(_0x227691=this['_ensureSubject'](_0x5b9782))==null||_0x227691[_0x3a0476(0x1a4)](_0x365070[_0x3a0476(0x425)]===0x0?e['UnitStatus'][_0x3a0476(0x31e)]:e[_0x3a0476(0x3e6)][_0x3a0476(0x192)]));}),this[_0x4dff51(0x31c)](_0x2f2954);}[_0x43938c(0x206)](_0x1d642a){const _0x323039=_0x43938c;this[_0x323039(0x35b)](_0x1d642a['memberID']);}[_0x43938c(0x245)](_0x117f74){const _0x28d47b=_0x43938c;localStorage[_0x28d47b(0x373)]($,JSON[_0x28d47b(0x24f)](_0x117f74));}['_scheduleHeartbeat'](){const _0x4f1fac=_0x43938c;this[_0x4f1fac(0x3c2)]=window[_0x4f1fac(0x2ee)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},ke);}[_0x43938c(0x44d)](_0x1ce244){const _0x444647=_0x43938c;return this[_0x444647(0x437)][_0x444647(0x29f)](_0x1ce244)||this[_0x444647(0x437)][_0x444647(0x478)](_0x1ce244,new r[(_0x444647(0x325))](e[_0x444647(0x3e6)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x444647(0x2b0)](_0x1ce244);}};Object[_0x43938c(0x190)](exports,_0x43938c(0x453),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x43938c(0x190)](exports,_0x43938c(0x2c0),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x43938c(0x190)](exports,_0x43938c(0x3ba),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x43938c(0x1ce)]=F,Object['defineProperty'](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x43938c(0x2f9)]=Ae;
|
|
1
|
+
const _0x5217db=_0x575d;(function(_0x2c0764,_0x5615f8){const _0x33cc25=_0x575d,_0x22905c=_0x2c0764();while(!![]){try{const _0x84029e=-parseInt(_0x33cc25(0x3a8))/0x1*(parseInt(_0x33cc25(0x488))/0x2)+-parseInt(_0x33cc25(0x36d))/0x3+-parseInt(_0x33cc25(0x1c0))/0x4*(-parseInt(_0x33cc25(0x2bb))/0x5)+-parseInt(_0x33cc25(0x421))/0x6*(-parseInt(_0x33cc25(0x48f))/0x7)+-parseInt(_0x33cc25(0x284))/0x8+-parseInt(_0x33cc25(0x202))/0x9+parseInt(_0x33cc25(0x475))/0xa*(parseInt(_0x33cc25(0x2cd))/0xb);if(_0x84029e===_0x5615f8)break;else _0x22905c['push'](_0x22905c['shift']());}catch(_0x4ffee5){_0x22905c['push'](_0x22905c['shift']());}}}(_0x1be8,0xe59ba),Object[_0x5217db(0x30b)](exports,Symbol[_0x5217db(0x2cf)],{'value':'Module'}));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(_0x4aabe7){const _0x3f97e0=_0x5217db;switch(_0x4aabe7){case e[_0x3f97e0(0x297)][_0x3f97e0(0x41f)]:return{'icon':(0x0,c[_0x3f97e0(0x360)])(o[_0x3f97e0(0x310)],{}),'colorClass':_0x3f97e0(0x454),'i18nKey':_0x3f97e0(0x1df),'tooltipKey':_0x3f97e0(0x3a1),'clickable':!0x0,'indicator':_0x3f97e0(0x4bd)};case e['CollaborationStatus'][_0x3f97e0(0x3b4)]:return{'icon':(0x0,c[_0x3f97e0(0x360)])(o[_0x3f97e0(0x310)],{}),'colorClass':_0x3f97e0(0x21f),'i18nKey':_0x3f97e0(0x349),'clickable':!0x1,'indicator':_0x3f97e0(0x4bd)};case e[_0x3f97e0(0x297)][_0x3f97e0(0x4c6)]:return{'icon':(0x0,c[_0x3f97e0(0x360)])(o['LoadingMultiIcon'],{}),'colorClass':_0x3f97e0(0x393),'i18nKey':_0x3f97e0(0x437),'clickable':!0x1,'indicator':_0x3f97e0(0x217)};case e[_0x3f97e0(0x297)][_0x3f97e0(0x3ef)]:return{'icon':(0x0,c[_0x3f97e0(0x360)])(o[_0x3f97e0(0x29b)],{}),'colorClass':'univer-text-gray-400','i18nKey':_0x3f97e0(0x236),'clickable':!0x1,'indicator':_0x3f97e0(0x4bd)};case e[_0x3f97e0(0x297)][_0x3f97e0(0x467)]:case e['CollaborationStatus'][_0x3f97e0(0x43b)]:return{'icon':(0x0,c[_0x3f97e0(0x360)])(o[_0x3f97e0(0x3ee)],{}),'colorClass':_0x3f97e0(0x393),'i18nKey':_0x3f97e0(0x2da),'clickable':!0x1,'indicator':_0x3f97e0(0x217)};case e['CollaborationStatus'][_0x3f97e0(0x483)]:return{'icon':(0x0,c[_0x3f97e0(0x360)])(o['LoadingMultiIcon'],{}),'colorClass':_0x3f97e0(0x393),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x3f97e0(0x217)};case e[_0x3f97e0(0x297)][_0x3f97e0(0x232)]:return{'icon':(0x0,c[_0x3f97e0(0x360)])(o['OnLineIcon'],{}),'colorClass':_0x3f97e0(0x264),'i18nKey':_0x3f97e0(0x256),'clickable':!0x1,'indicator':_0x3f97e0(0x4bd)};}}function te(_0x490982){const _0x54a6f8=_0x5217db;let {status$:_0x4652b1}=_0x490982,_0x1bb1f7=(0x0,n['useObservable'])(_0x4652b1,e[_0x54a6f8(0x297)][_0x54a6f8(0x3ef)]),_0x22abb0=(0x0,n[_0x54a6f8(0x336)])(t[_0x54a6f8(0x378)]),_0x25a8bf=(0x0,n[_0x54a6f8(0x336)])(e['CollaborationSessionService']),_0x42b348=(0x0,s[_0x54a6f8(0x21a)])(()=>ee(_0x1bb1f7),[_0x1bb1f7]),_0x4147c8=_0x1bb1f7!==e['CollaborationStatus'][_0x54a6f8(0x41f)],_0x451b0a=_0x22abb0['t'](_0x42b348[_0x54a6f8(0x3dc)]),_0x4c2f49=_0x42b348[_0x54a6f8(0x1dd)]?_0x22abb0['t'](_0x42b348[_0x54a6f8(0x1dd)]):_0x451b0a,_0x272bcd=(0x0,s['useCallback'])(()=>{const _0x169d73=_0x54a6f8;_0x4147c8||_0x25a8bf[_0x169d73(0x204)]();},[_0x4147c8,_0x25a8bf]),_0x53f0d7=(0x0,s[_0x54a6f8(0x430)])(_0x5ecfbb=>{const _0x2674a9=_0x54a6f8;_0x4147c8||_0x5ecfbb[_0x2674a9(0x3dd)]!=='Enter'&&_0x5ecfbb['key']!=='\x20'||(_0x5ecfbb[_0x2674a9(0x342)](),_0x25a8bf['reconnect']());},[_0x4147c8,_0x25a8bf]),_0x250775=(0x0,c[_0x54a6f8(0x360)])(_0x54a6f8(0x302),{'className':(0x0,a[_0x54a6f8(0x1e0)])(_0x54a6f8(0x24b),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x42b348[_0x54a6f8(0x354)],{'univer-animate-spin':_0x42b348[_0x54a6f8(0x1cd)]===_0x54a6f8(0x217),'univer-animate-pulse':_0x42b348[_0x54a6f8(0x1cd)]==='pulse'}),'aria-hidden':_0x54a6f8(0x4a6),'children':_0x42b348[_0x54a6f8(0x40c)]}),_0x1fb8e2=(0x0,c[_0x54a6f8(0x360)])(_0x54a6f8(0x302),{'className':(0x0,a[_0x54a6f8(0x1e0)])(_0x54a6f8(0x24b),_0x54a6f8(0x324),_0x54a6f8(0x2a6),_0x54a6f8(0x1e2),_0x54a6f8(0x2eb),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x42b348[_0x54a6f8(0x415)],'univer-cursor-default':!_0x42b348[_0x54a6f8(0x415)]}),'children':_0x250775});return _0x42b348[_0x54a6f8(0x415)]?(0x0,c[_0x54a6f8(0x360)])(a[_0x54a6f8(0x283)],{'title':_0x4c2f49,'placement':'bottom','children':(0x0,c[_0x54a6f8(0x360)])(_0x54a6f8(0x345),{'type':'button','onClick':_0x272bcd,'onKeyDown':_0x53f0d7,'className':(0x0,a[_0x54a6f8(0x1e0)])(_0x54a6f8(0x224),'univer-border-none\x20univer-bg-transparent',_0x54a6f8(0x449),_0x54a6f8(0x24a)),'aria-label':_0x451b0a+_0x54a6f8(0x329)+_0x4c2f49,'role':_0x54a6f8(0x31e),'aria-live':_0x54a6f8(0x39a),'aria-atomic':_0x54a6f8(0x4a6),'children':_0x1fb8e2})}):(0x0,c[_0x54a6f8(0x360)])(a[_0x54a6f8(0x283)],{'title':_0x4c2f49,'placement':'bottom','children':(0x0,c[_0x54a6f8(0x360)])('div',{'className':(0x0,a[_0x54a6f8(0x1e0)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x54a6f8(0x21d),_0x54a6f8(0x449)),'aria-label':_0x451b0a,'role':_0x54a6f8(0x31e),'aria-live':'polite','aria-atomic':_0x54a6f8(0x4a6),'children':_0x1fb8e2})});}function y(_0x4ff81e){'@babel/helpers - typeof';const _0x508ef0=_0x5217db;return y=typeof Symbol==_0x508ef0(0x47d)&&typeof Symbol[_0x508ef0(0x26d)]==_0x508ef0(0x20e)?function(_0x5aa0d4){return typeof _0x5aa0d4;}:function(_0x40ba28){const _0x1ab3c0=_0x508ef0;return _0x40ba28&&typeof Symbol==_0x1ab3c0(0x47d)&&_0x40ba28[_0x1ab3c0(0x3fb)]===Symbol&&_0x40ba28!==Symbol['prototype']?_0x1ab3c0(0x20e):typeof _0x40ba28;},y(_0x4ff81e);}function ne(_0xb50cc9,_0x652504){const _0x2158f8=_0x5217db;if(y(_0xb50cc9)!='object'||!_0xb50cc9)return _0xb50cc9;var _0x2da23e=_0xb50cc9[Symbol[_0x2158f8(0x252)]];if(_0x2da23e!==void 0x0){var _0xb69bd1=_0x2da23e[_0x2158f8(0x1ee)](_0xb50cc9,_0x652504||'default');if(y(_0xb69bd1)!=_0x2158f8(0x2b7))return _0xb69bd1;throw TypeError(_0x2158f8(0x247));}return(_0x652504===_0x2158f8(0x461)?String:Number)(_0xb50cc9);}function re(_0x49e1a1){const _0x39362c=_0x5217db;var _0x2e7e9b=ne(_0x49e1a1,_0x39362c(0x461));return y(_0x2e7e9b)=='symbol'?_0x2e7e9b:_0x2e7e9b+'';}function b(_0xa93b0a,_0x443cf1,_0x4311f2){return(_0x443cf1=re(_0x443cf1))in _0xa93b0a?Object['defineProperty'](_0xa93b0a,_0x443cf1,{'value':_0x4311f2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa93b0a[_0x443cf1]=_0x4311f2,_0xa93b0a;}function x(_0x2b4749,_0x355e4d){return function(_0xe1d62c,_0x50c302){_0x355e4d(_0xe1d62c,_0x50c302,_0x2b4749);};}function S(_0x371671,_0x1728e8,_0x147f53,_0x58b8b6){const _0x463a8a=_0x5217db;var _0x3c1ce9=arguments[_0x463a8a(0x29e)],_0x361648=_0x3c1ce9<0x3?_0x1728e8:_0x58b8b6===null?_0x58b8b6=Object[_0x463a8a(0x23a)](_0x1728e8,_0x147f53):_0x58b8b6,_0x22391c;if(typeof Reflect=='object'&&typeof Reflect[_0x463a8a(0x32b)]==_0x463a8a(0x47d))_0x361648=Reflect[_0x463a8a(0x32b)](_0x371671,_0x1728e8,_0x147f53,_0x58b8b6);else{for(var _0x23380a=_0x371671[_0x463a8a(0x29e)]-0x1;_0x23380a>=0x0;_0x23380a--)(_0x22391c=_0x371671[_0x23380a])&&(_0x361648=(_0x3c1ce9<0x3?_0x22391c(_0x361648):_0x3c1ce9>0x3?_0x22391c(_0x1728e8,_0x147f53,_0x361648):_0x22391c(_0x1728e8,_0x147f53))||_0x361648);}return _0x3c1ce9>0x3&&_0x361648&&Object[_0x463a8a(0x30b)](_0x1728e8,_0x147f53,_0x361648),_0x361648;}let C=class extends t['Disposable']{constructor(_0x496d1a,_0x3663d4,_0x4e0d65,_0x7e885,_0x1fca0f){const _0x3ad40=_0x5217db;super(),this[_0x3ad40(0x2ae)]=_0x496d1a,this['_injector']=_0x3663d4,this[_0x3ad40(0x2d4)]=_0x4e0d65,this[_0x3ad40(0x1f2)]=_0x7e885,this[_0x3ad40(0x1cf)]=_0x1fca0f,b(this,'_status$',new r[(_0x3ad40(0x286))](e[_0x3ad40(0x297)][_0x3ad40(0x3ef)])),b(this,'_presenceStatusRegistrations',new Map()),this[_0x3ad40(0x282)](),this[_0x3ad40(0x1d7)](),this[_0x3ad40(0x3e2)]();}[_0x5217db(0x249)](){const _0x63e6a0=_0x5217db;this['_presenceStatusRegistrations'][_0x63e6a0(0x309)](_0x36d331=>_0x36d331['dispose']()),this[_0x63e6a0(0x233)][_0x63e6a0(0x235)](),this[_0x63e6a0(0x3c4)][_0x63e6a0(0x416)](),super['dispose']();}[_0x5217db(0x1d7)](){const _0x4af03c=_0x5217db;this[_0x4af03c(0x219)]((0x0,r['merge'])(this[_0x4af03c(0x2ae)]['focused$'],this[_0x4af03c(0x2ae)]['getCurrentTypeOfUnit$'](t[_0x4af03c(0x239)][_0x4af03c(0x496)]),this[_0x4af03c(0x2ae)]['getCurrentTypeOfUnit$'](t[_0x4af03c(0x239)][_0x4af03c(0x478)]))[_0x4af03c(0x4a4)]((0x0,i[_0x4af03c(0x3fe)])(()=>ie(this[_0x4af03c(0x2ae)])),(0x0,i[_0x4af03c(0x3bc)])(),(0x0,r['switchMap'])(_0x5893a8=>_0x5893a8?this['_collaborationController'][_0x4af03c(0x498)](_0x5893a8):(0x0,r['of'])(null)),(0x0,r[_0x4af03c(0x2ff)])(_0x3ab4c1=>_0x3ab4c1?_0x3ab4c1['status$']:(0x0,r['of'])(e[_0x4af03c(0x297)]['NOT_COLLAB'])))[_0x4af03c(0x468)](_0x46c3e6=>{const _0x1733ee=_0x4af03c;this[_0x1733ee(0x3c4)][_0x1733ee(0x39d)](_0x46c3e6);}));}['_initStatusComponent'](){const _0x34b517=_0x5217db;this[_0x34b517(0x219)](this[_0x34b517(0x1f2)][_0x34b517(0x2f9)](n[_0x34b517(0x427)][_0x34b517(0x3a4)],()=>(0x0,n[_0x34b517(0x242)])(w({'status$':this['_status$'][_0x34b517(0x1c1)]()}),this['_injector'])));}['_initPresenceStatusComponents'](){const _0x5ecec1=_0x5217db;let _0x44a2c7=this[_0x5ecec1(0x1cf)][_0x5ecec1(0x2a9)]['subscribe'](_0xedb0f7=>{this['_syncPresenceStatusComponents'](_0xedb0f7);});this[_0x5ecec1(0x219)]((0x0,t[_0x5ecec1(0x3d9)])(()=>_0x44a2c7[_0x5ecec1(0x40e)]()));}[_0x5217db(0x2db)](_0x1bc387){const _0xef6dcf=_0x5217db;let _0x469527=new Map(_0x1bc387[_0xef6dcf(0x1d0)](_0x5f287b=>_0x5f287b[_0xef6dcf(0x3d0)]!=null)[_0xef6dcf(0x3fe)](_0x565ee7=>[_0x565ee7[_0xef6dcf(0x4b2)],_0x565ee7]));this[_0xef6dcf(0x233)][_0xef6dcf(0x309)]((_0x41f18c,_0x253bc7)=>{const _0x2fe1a6=_0xef6dcf;_0x469527[_0x2fe1a6(0x4ac)](_0x253bc7)||(_0x41f18c[_0x2fe1a6(0x249)](),this[_0x2fe1a6(0x233)]['delete'](_0x253bc7));}),_0x469527[_0xef6dcf(0x309)]((_0x2d8336,_0x42c667)=>{const _0x5e5bd3=_0xef6dcf;this[_0x5e5bd3(0x233)]['has'](_0x42c667)||this[_0x5e5bd3(0x1f9)](_0x2d8336);});}[_0x5217db(0x1f9)](_0xe0e4dd){const _0x3773ab=_0x5217db;let _0x3d7891=_0xe0e4dd[_0x3773ab(0x3d0)];if(!_0x3d7891)return;let _0x5340ca=new t['DisposableCollection'](),_0x2d6f35=new r[(_0x3773ab(0x286))](e['CollaborationStatus'][_0x3773ab(0x3ef)]);_0x5340ca['add']((0x0,t[_0x3773ab(0x3d9)])(()=>_0x2d6f35[_0x3773ab(0x416)]())),_0x5340ca[_0x3773ab(0x374)](this[_0x3773ab(0x1f2)][_0x3773ab(0x2f9)](_0x3d7891,()=>(0x0,n[_0x3773ab(0x242)])(w({'status$':_0x2d6f35[_0x3773ab(0x1c1)]()}),this[_0x3773ab(0x303)])));let _0x4e7aa8=this[_0x3773ab(0x2ae)]['getCurrentTypeOfUnit$'](_0xe0e4dd[_0x3773ab(0x4b2)])[_0x3773ab(0x4a4)]((0x0,i[_0x3773ab(0x3fe)])(_0x1ad09f=>(_0x1ad09f==null?void 0x0:_0x1ad09f[_0x3773ab(0x2c5)]())??null),(0x0,i[_0x3773ab(0x3bc)])(),(0x0,r[_0x3773ab(0x2ff)])(_0x4c137f=>_0x4c137f?this['_collaborationController']['getCollabEntity$'](_0x4c137f):(0x0,r['of'])(null)),(0x0,r[_0x3773ab(0x2ff)])(_0x2ddfdd=>(_0x2ddfdd==null?void 0x0:_0x2ddfdd[_0x3773ab(0x43d)])??(0x0,r['of'])(e[_0x3773ab(0x297)]['NOT_COLLAB'])))[_0x3773ab(0x468)](_0x4fd9dc=>_0x2d6f35[_0x3773ab(0x39d)](_0x4fd9dc));_0x5340ca[_0x3773ab(0x374)]((0x0,t[_0x3773ab(0x3d9)])(()=>_0x4e7aa8[_0x3773ab(0x40e)]())),this[_0x3773ab(0x233)][_0x3773ab(0x1ce)](_0xe0e4dd['unitType'],_0x5340ca);}};C=S([x(0x0,t[_0x5217db(0x49c)]),x(0x1,(0x0,t['Inject'])(t[_0x5217db(0x231)])),x(0x2,(0x0,t['Inject'])(e[_0x5217db(0x261)])),x(0x3,n[_0x5217db(0x230)]),x(0x4,(0x0,t[_0x5217db(0x298)])(n[_0x5217db(0x394)]))],C);function ie(_0x2f3d1e){const _0x2b03f6=_0x5217db;let _0x17ecb5=_0x2f3d1e['getFocusedUnit'](),_0x584b5b=_0x17ecb5==null?void 0x0:_0x17ecb5[_0x2b03f6(0x2c5)]();if(_0x584b5b&&!(0x0,t['isInternalEditorID'])(_0x584b5b))return _0x584b5b;let _0xa7eba6=_0x2f3d1e['getCurrentUnitOfType'](t[_0x2b03f6(0x239)][_0x2b03f6(0x496)]),_0x36cd0c=_0xa7eba6==null?void 0x0:_0xa7eba6[_0x2b03f6(0x2c5)]();if(_0x36cd0c&&!(0x0,t[_0x2b03f6(0x32e)])(_0x36cd0c))return _0x36cd0c;let _0x5cff6e=_0x2f3d1e[_0x2b03f6(0x44f)](t[_0x2b03f6(0x239)][_0x2b03f6(0x478)]);if(_0x5cff6e)return _0x5cff6e[_0x2b03f6(0x2c5)]();let _0x426ccd=_0x2f3d1e[_0x2b03f6(0x472)](t[_0x2b03f6(0x239)][_0x2b03f6(0x496)])[_0x2b03f6(0x343)](_0x20dcb4=>!(0x0,t[_0x2b03f6(0x32e)])(_0x20dcb4['getUnitId']()));return _0x426ccd?_0x426ccd[_0x2b03f6(0x2c5)]():null;}function w(_0x19835a){let {status$:_0xf5b5fe}=_0x19835a;return function(){const _0x5dc07e=_0x575d;return(0x0,c[_0x5dc07e(0x360)])(te,{'status$':_0xf5b5fe});};}var ae='@univerjs-pro/collaboration-client-ui',oe=_0x5217db(0x39b);const T={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':t['CommandType']['OPERATION'],'handler':(_0x10bda5,_0x5d7a8c)=>{const _0x440f52=_0x5217db;let _0x5db6a4=_0x10bda5[_0x440f52(0x438)](n['IUnitPresenceUIAdapterRegistry'])[_0x440f52(0x438)](_0x5d7a8c['unitType']);if(!_0x5db6a4)return!0x1;switch(_0x5d7a8c[_0x440f52(0x49f)][_0x440f52(0x2ad)]){case _0x440f52(0x1ce):return _0x5db6a4['setRemotePresence'](_0x5d7a8c[_0x440f52(0x49f)][_0x440f52(0x3e4)]),!0x0;case _0x440f52(0x2e9):return _0x5db6a4[_0x440f52(0x350)](_0x5d7a8c[_0x440f52(0x49f)][_0x440f52(0x452)],_0x5d7a8c[_0x440f52(0x49f)][_0x440f52(0x30a)]),!0x0;case _0x440f52(0x235):return _0x5db6a4[_0x440f52(0x216)](_0x5d7a8c[_0x440f52(0x49f)][_0x440f52(0x452)]),!0x0;default:return!0x1;}}},se={};let E=class extends t['RxDisposable']{constructor(_0x6ed378,_0x55c956){const _0x205622=_0x5217db;super(),this[_0x205622(0x262)]=_0x6ed378,this['_imageIoService']=_0x55c956,this[_0x205622(0x372)]();}['_init'](){const _0x25c920=_0x5217db;let _0x189ba2=this;this[_0x25c920(0x219)](this[_0x25c920(0x262)][_0x25c920(0x1da)]({'onBeforePasteImage':async _0x4ed609=>{const _0x560720=_0x25c920;let _0x5e6041=await _0x189ba2[_0x560720(0x290)][_0x560720(0x2c3)](_0x4ed609);return _0x5e6041?{'source':_0x5e6041[_0x560720(0x414)],'imageSourceType':_0x5e6041[_0x560720(0x201)]}:null;}}));}};E=S([x(0x0,f['IDocClipboardService']),x(0x1,t[_0x5217db(0x258)])],E);function _0x575d(_0x231993,_0x1750ce){_0x231993=_0x231993-0x1b3;const _0x1be850=_0x1be8();let _0x575deb=_0x1be850[_0x231993];return _0x575deb;}const ce=[_0x5217db(0x3cb),_0x5217db(0x229),_0x5217db(0x359),_0x5217db(0x2ec),_0x5217db(0x41d),'yellow.400'];var D=class extends t[_0x5217db(0x4b5)]{constructor(..._0x2741c6){const _0x1768a8=_0x5217db;super(..._0x2741c6),b(this,_0x1768a8(0x2b0),new Map()),b(this,_0x1768a8(0x363),0x0);}[_0x5217db(0x319)](_0x39493c){const _0x981829=_0x5217db;if(this[_0x981829(0x2b0)]['has'](_0x39493c))return this[_0x981829(0x2b0)]['get'](_0x39493c);let _0x4259e7=ce[this['_colorIndex']];return this['_colorIndex']=(this[_0x981829(0x363)]+0x1)%ce['length'],this[_0x981829(0x2b0)][_0x981829(0x1ce)](_0x39493c,_0x4259e7),_0x4259e7;}};function le(_0x4a96a7){const _0x2e4f84=_0x5217db;let _0x43bc34='';for(let _0x51972e of _0x4a96a7){let {startOffset:_0xbc7ace,endOffset:_0x1113ac,isActive:_0x548c04,rangeType:_0x596c9e,segmentId:_0x16dd65,segmentPage:_0x4820c6}=_0x51972e;_0x43bc34[_0x2e4f84(0x29e)]&&(_0x43bc34+=','),_0x43bc34+=_0xbc7ace+':'+_0x1113ac+':'+(_0x548c04?'1':'0')+':'+_0x596c9e+':'+_0x16dd65+':'+_0x4820c6;}return _0x43bc34;}function ue(_0x1bccf6){const _0x1aa08c=_0x5217db;let _0xa0e46a=_0x1bccf6['split'](','),_0x195f0d=[];for(let _0x37ccd7 of _0xa0e46a){let [_0x22775c,_0x47915b,_0x5527a0,_0x20e445,_0x41894d,_0xd61637]=_0x37ccd7[_0x1aa08c(0x352)](':');_0x195f0d[_0x1aa08c(0x385)]({'startOffset':Number(_0x22775c),'endOffset':Number(_0x47915b),'collapsed':_0x22775c===_0x47915b,'isActive':_0x5527a0==='1','rangeType':_0x20e445===t[_0x1aa08c(0x486)][_0x1aa08c(0x444)]?t[_0x1aa08c(0x486)]['TEXT']:t[_0x1aa08c(0x486)][_0x1aa08c(0x4a0)],'segmentId':typeof _0x41894d==_0x1aa08c(0x461)?String(_0x41894d):'','segmentPage':Number(_0xd61637??-0x1)});}return _0x195f0d['some'](_0x5a98a1=>_0x5a98a1['isActive'])||(_0x195f0d[0x0]['isActive']=!0x0),_0x195f0d;}var O=class extends t[_0x5217db(0x25d)]{constructor(..._0x5c2e9f){const _0x38607b=_0x5217db;super(..._0x5c2e9f),b(this,_0x38607b(0x293),new r[(_0x38607b(0x286))](null)),b(this,'collabCursorState$',this[_0x38607b(0x293)]['asObservable']());}['syncEditingCollabCursor'](_0x1e57b7){let {unitID:_0x193b9d,memberID:_0x550dfc,textRanges:_0x45d593}=_0x1e57b7,_0x90151d=le(_0x45d593);if(_0x90151d==='')return;let _0x22c301={'unitID':_0x193b9d,'memberID':_0x550dfc,'selection':_0x90151d};this['_collabCursorState$']['next'](_0x22c301);}};let k=class extends t[_0x5217db(0x25d)]{get['cursorInfo'](){const _0x15d063=_0x5217db;return this[_0x15d063(0x3c6)][_0x15d063(0x2b9)]();}get[_0x5217db(0x4a1)](){return this['_roomMembers$']['getValue']();}constructor(_0x20a7e5,_0x2a422c,_0x1f47b9,_0x5b3a7e,_0x28a25d,_0x2dafb0,_0x59c8ff,_0x4f6460,_0x191da8){const _0x83a5d9=_0x5217db;super(),this[_0x83a5d9(0x328)]=_0x20a7e5,this[_0x83a5d9(0x2f0)]=_0x2a422c,this[_0x83a5d9(0x303)]=_0x1f47b9,this[_0x83a5d9(0x274)]=_0x5b3a7e,this[_0x83a5d9(0x2b2)]=_0x28a25d,this[_0x83a5d9(0x27c)]=_0x2dafb0,this['_transformService']=_0x59c8ff,this[_0x83a5d9(0x2ae)]=_0x4f6460,this[_0x83a5d9(0x424)]=_0x191da8,b(this,_0x83a5d9(0x404),!0x1),b(this,_0x83a5d9(0x372),!0x1),b(this,_0x83a5d9(0x3c6),new r[(_0x83a5d9(0x286))](new Map())),b(this,_0x83a5d9(0x400),this['_cursorInfo$'][_0x83a5d9(0x1c1)]()),b(this,'_roomMembers$',new r[(_0x83a5d9(0x286))]([])),b(this,_0x83a5d9(0x425),this[_0x83a5d9(0x306)][_0x83a5d9(0x4a4)]((0x0,r[_0x83a5d9(0x3b2)])(0x12c))),b(this,_0x83a5d9(0x4aa),(0x0,t['debounce'])(_0x1ad107=>{const _0x94e0fd=_0x83a5d9;let _0x5b442f={'eventID':l['CollaborationEvent'][_0x94e0fd(0x26c)],'data':{'unitID':this[_0x94e0fd(0x328)],'memberID':this['_session'][_0x94e0fd(0x1be)](),'selection':le(_0x1ad107)}};this[_0x94e0fd(0x2f0)]['send'](_0x5b442f,this[_0x94e0fd(0x328)]);},0x64));}[_0x5217db(0x249)](){const _0x1afb8d=_0x5217db;super[_0x1afb8d(0x249)](),this[_0x1afb8d(0x3c6)][_0x1afb8d(0x39d)](new Map()),this[_0x1afb8d(0x3c6)][_0x1afb8d(0x416)](),this['_roomMembers$'][_0x1afb8d(0x39d)]([]),this[_0x1afb8d(0x306)][_0x1afb8d(0x416)]();}[_0x5217db(0x244)](){const _0xf31e7b=_0x5217db;this[_0xf31e7b(0x372)]||(this['_init']=!0x0,this[_0xf31e7b(0x2f0)][_0xf31e7b(0x390)][_0xf31e7b(0x4a4)]((0x0,r[_0xf31e7b(0x2a5)])(this[_0xf31e7b(0x2a3)]))[_0xf31e7b(0x468)](_0x55da1b=>{const _0x36ac76=_0xf31e7b;_0x55da1b===e[_0x36ac76(0x3cc)]['ONLINE']?this[_0x36ac76(0x40f)]():this[_0x36ac76(0x46e)]();}),this[_0xf31e7b(0x2f0)][_0xf31e7b(0x3df)]['pipe']((0x0,r[_0xf31e7b(0x2a5)])(this['dispose$']))[_0xf31e7b(0x468)](_0x57a805=>{const _0x45ac5b=_0xf31e7b;let _0x5e0536=_0x57a805[_0x45ac5b(0x41c)];_0x5e0536===l[_0x45ac5b(0x2aa)]['UPDATE_CURSOR']&&this[_0x45ac5b(0x277)](_0x57a805),_0x5e0536===l['CollaborationEvent'][_0x45ac5b(0x370)]&&this[_0x45ac5b(0x2c9)](_0x57a805);}),this[_0xf31e7b(0x219)](this[_0xf31e7b(0x424)][_0xf31e7b(0x22a)](_0x158edf=>{const _0x51c662=_0xf31e7b;let _0x195a87=_0x158edf[_0x51c662(0x3d7)];_0x195a87!=null&&this[_0x51c662(0x404)]&&_0x158edf['id']===d[_0x51c662(0x24f)]['id']&&_0x195a87[_0x51c662(0x452)]===this['unitID']&&_0x195a87[_0x51c662(0x42b)]===!0x1&&_0x195a87[_0x51c662(0x23b)]['length']>0x0&&this[_0x51c662(0x4aa)](_0x195a87[_0x51c662(0x23b)]);})),this[_0xf31e7b(0x27c)][_0xf31e7b(0x272)][_0xf31e7b(0x4a4)]((0x0,r[_0xf31e7b(0x2a5)])(this[_0xf31e7b(0x2a3)]))[_0xf31e7b(0x468)](_0x5d717c=>{const _0x513cbd=_0xf31e7b;if((_0x5d717c==null?void 0x0:_0x5d717c[_0x513cbd(0x328)])!==this[_0x513cbd(0x328)])return;let _0x42fa0a={'eventID':l[_0x513cbd(0x2aa)][_0x513cbd(0x26c)],'data':_0x5d717c};this['_onCursorUpdate'](_0x42fa0a);}),this[_0xf31e7b(0x219)](this[_0xf31e7b(0x424)]['onCommandExecuted'](_0x1b9d6a=>{const _0x2a2d62=_0xf31e7b;if(_0x1b9d6a[_0x2a2d62(0x3d7)]==null)return;let _0x4cc607=_0x1b9d6a[_0x2a2d62(0x3d7)];if(_0x1b9d6a['id']!==d[_0x2a2d62(0x335)]['id']||_0x4cc607[_0x2a2d62(0x452)]!==this['unitID'])return;let _0x5c1282={'id':_0x2a2d62(0x4bf),'params':_0x4cc607},_0x297223=this[_0x2a2d62(0x1bc)];for(let [_0x463360,_0x9c569c]of _0x297223){let _0x40496a={'id':_0x2a2d62(0x4bf),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x9c569c[_0x2a2d62(0x23b)]}},_0xed4b56=this[_0x2a2d62(0x344)][_0x2a2d62(0x3de)](_0x5c1282,_0x40496a,!0x1);if((0x0,l[_0x2a2d62(0x3ca)])(_0xed4b56))throw _0xed4b56[_0x2a2d62(0x270)];_0x297223[_0x2a2d62(0x1ce)](_0x463360,{..._0x9c569c,'ranges':_0xed4b56[_0x2a2d62(0x2c7)][_0x2a2d62(0x3d7)][_0x2a2d62(0x3a9)]});}queueMicrotask(()=>{const _0x9ec579=_0x2a2d62;this[_0x9ec579(0x3c6)][_0x9ec579(0x39d)](_0x297223);});})));}['_onCursorUpdate'](_0x20ca1b){const _0x15f7af=_0x5217db;var _0x321ff0;let {memberID:_0x3b7bcf,selection:_0x1fcd76}=_0x20ca1b[_0x15f7af(0x4c4)],_0x145dac=ue(_0x1fcd76),_0x47fd35=((_0x321ff0=this['_memberService']['getMember'](this[_0x15f7af(0x328)],_0x3b7bcf))==null?void 0x0:_0x321ff0['name'])??_0x15f7af(0x30d),_0x56c4df={'color':this[_0x15f7af(0x274)]['assignAColorForMemberID'](_0x3b7bcf),'name':_0x47fd35,'ranges':_0x145dac},_0x17a99b=this[_0x15f7af(0x1bc)];_0x17a99b['set'](_0x3b7bcf,_0x56c4df),this[_0x15f7af(0x3c6)][_0x15f7af(0x39d)](_0x17a99b);}[_0x5217db(0x2c9)](_0x38e0cd){const _0x9b1626=_0x5217db;let {memberID:_0x5eb709}=_0x38e0cd['data'],_0x2e13c7=this['cursorInfo'];_0x2e13c7[_0x9b1626(0x2a0)](_0x5eb709),this[_0x9b1626(0x3c6)][_0x9b1626(0x39d)](_0x2e13c7);}[_0x5217db(0x40f)](){const _0x44765b=_0x5217db;var _0x39129e;if(this[_0x44765b(0x404)]=!0x0,((_0x39129e=this[_0x44765b(0x2ae)]['getFocusedUnit']())==null?void 0x0:_0x39129e[_0x44765b(0x2c5)]())!==this[_0x44765b(0x328)])return;let _0x4719a7=this['_injector'][_0x44765b(0x438)](d['DocSelectionManagerService'])[_0x44765b(0x3a3)]();Array[_0x44765b(0x465)](_0x4719a7)&&_0x4719a7[_0x44765b(0x29e)]>0x0&&this['_updateLocalCursor'](_0x4719a7);}[_0x5217db(0x46e)](){const _0x37379d=_0x5217db;this[_0x37379d(0x404)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x5217db(0x298)])(t[_0x5217db(0x231)])),x(0x3,(0x0,t[_0x5217db(0x298)])(D)),x(0x4,(0x0,t[_0x5217db(0x298)])(e[_0x5217db(0x260)])),x(0x5,(0x0,t[_0x5217db(0x298)])(O)),x(0x6,l[_0x5217db(0x21c)]),x(0x7,t['IUniverInstanceService']),x(0x8,t[_0x5217db(0x31c)])],k);const de=()=>{let _0x5693e5=[],_0x4c999e=!0x1;return _0x3c9443=>{_0x5693e5['push'](_0x3c9443),_0x4c999e||(_0x4c999e=!0x0,setTimeout(()=>{const _0xbc3d1b=_0x575d;_0x5693e5[_0xbc3d1b(0x309)](_0x40b40f=>_0x40b40f()),_0x5693e5=[],_0x4c999e=!0x1;}));};};let A=class extends t[_0x5217db(0x25d)]{get[_0x5217db(0x1bc)](){const _0xf8866e=_0x5217db;return this[_0xf8866e(0x3c6)][_0xf8866e(0x2b9)]();}get['roomMembers'](){const _0x17704a=_0x5217db;return this[_0x17704a(0x306)][_0x17704a(0x2b9)]();}constructor(_0x1ed39a,_0x3c6aad,_0x1e4a1f,_0xecf565,_0x4268d8,_0x34a681,_0x5e59dd,_0x6f32e7){const _0x13e565=_0x5217db;super(),this[_0x13e565(0x328)]=_0x1ed39a,this[_0x13e565(0x2f0)]=_0x3c6aad,this[_0x13e565(0x303)]=_0x1e4a1f,this[_0x13e565(0x274)]=_0xecf565,this[_0x13e565(0x2b2)]=_0x4268d8,this['_univerInstanceService']=_0x34a681,this[_0x13e565(0x424)]=_0x5e59dd,this[_0x13e565(0x3e1)]=_0x6f32e7,b(this,'_online',!0x1),b(this,_0x13e565(0x372),!0x1),b(this,_0x13e565(0x3c6),new r[(_0x13e565(0x286))](new Map())),b(this,_0x13e565(0x400),this[_0x13e565(0x3c6)][_0x13e565(0x1c1)]()),b(this,_0x13e565(0x306),new r[(_0x13e565(0x286))]([])),b(this,_0x13e565(0x425),this[_0x13e565(0x306)]['pipe']((0x0,r['debounceTime'])(0x12c))),b(this,_0x13e565(0x4aa),(0x0,t['debounce'])((_0x2666da,_0x20cb4f)=>{const _0x56d580=_0x13e565;let _0x5ba9c4={'eventID':l[_0x56d580(0x2aa)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x56d580(0x328)],'memberID':this[_0x56d580(0x2f0)][_0x56d580(0x1be)](),'selection':(0x0,h[_0x56d580(0x417)])(_0x2666da,_0x20cb4f['range'])}};this['_session'][_0x56d580(0x47e)](_0x5ba9c4,this[_0x56d580(0x328)]);},0x64));}['dispose'](){const _0x174e21=_0x5217db;super[_0x174e21(0x249)](),this[_0x174e21(0x3c6)][_0x174e21(0x39d)](new Map()),this[_0x174e21(0x3c6)]['complete'](),this[_0x174e21(0x306)]['next']([]),this[_0x174e21(0x306)][_0x174e21(0x416)]();}['init'](){const _0x7a112f=_0x5217db;this['_init']||(this[_0x7a112f(0x372)]=!0x0,this[_0x7a112f(0x2f0)][_0x7a112f(0x390)]['pipe']((0x0,r[_0x7a112f(0x2a5)])(this[_0x7a112f(0x2a3)]))[_0x7a112f(0x468)](_0x1d2c69=>{const _0x447b32=_0x7a112f;_0x1d2c69===e[_0x447b32(0x3cc)][_0x447b32(0x21e)]?this[_0x447b32(0x40f)]():this[_0x447b32(0x46e)]();}),this[_0x7a112f(0x2f0)][_0x7a112f(0x3df)][_0x7a112f(0x4a4)]((0x0,r[_0x7a112f(0x2a5)])(this[_0x7a112f(0x2a3)]))['subscribe'](_0x7e1a36=>{const _0x3cb439=_0x7a112f;let _0x36417e=_0x7e1a36['eventID'];_0x36417e===l[_0x3cb439(0x2aa)][_0x3cb439(0x26c)]&&this[_0x3cb439(0x277)](_0x7e1a36),_0x36417e===l[_0x3cb439(0x2aa)][_0x3cb439(0x370)]&&this[_0x3cb439(0x2c9)](_0x7e1a36);}),this[_0x7a112f(0x3db)](),this[_0x7a112f(0x219)](this[_0x7a112f(0x424)][_0x7a112f(0x22a)](_0x1221aa=>{const _0x1bb7f5=_0x7a112f;if(this[_0x1bb7f5(0x404)]&&_0x1221aa['id']===g['SetSelectionsOperation']['id']&&_0x1221aa[_0x1bb7f5(0x3d7)][_0x1bb7f5(0x452)]===this[_0x1bb7f5(0x328)]){let _0x6985ba=_0x1221aa[_0x1bb7f5(0x3d7)];this[_0x1bb7f5(0x4aa)](_0x6985ba[_0x1bb7f5(0x419)],_0x6985ba['selections'][0x0]);}})));}['_onCursorUpdate'](_0x221242){const _0x53c25b=_0x5217db;var _0x28cb52;let {memberID:_0x316558,selection:_0x23a934}=_0x221242[_0x53c25b(0x4c4)],{sheetName:_0x534ffe,range:_0x16d1c7}=(0x0,h[_0x53c25b(0x2b6)])(_0x23a934),_0x466b92={'name':((_0x28cb52=this[_0x53c25b(0x2b2)][_0x53c25b(0x1c5)](this[_0x53c25b(0x328)],_0x316558))==null?void 0x0:_0x28cb52['name'])??_0x53c25b(0x30d),'range':this[_0x53c25b(0x41e)](_0x534ffe,_0x16d1c7),'sheetID':_0x534ffe,'color':this[_0x53c25b(0x274)][_0x53c25b(0x319)](_0x316558),'selection':_0x23a934},_0x4b1db6=this[_0x53c25b(0x1bc)];_0x4b1db6[_0x53c25b(0x1ce)](_0x316558,_0x466b92),this['_cursorInfo$'][_0x53c25b(0x39d)](_0x4b1db6);}['_onCursorDelete'](_0x4dd6f8){const _0x451300=_0x5217db;let {memberID:_0x1223f0}=_0x4dd6f8[_0x451300(0x4c4)],_0x4f1eea=this[_0x451300(0x1bc)];_0x4f1eea['delete'](_0x1223f0),this[_0x451300(0x3c6)][_0x451300(0x39d)](_0x4f1eea);}[_0x5217db(0x41e)](_0x5d81ab,_0x388db3){const _0x7d86a6=_0x5217db;var _0x36d5a8;let _0x17e1ec=(_0x36d5a8=this[_0x7d86a6(0x2ae)]['getUnit'](this[_0x7d86a6(0x328)],t['UniverInstanceType']['UNIVER_SHEET']))==null||(_0x36d5a8=_0x36d5a8['getSheetBySheetId'](_0x5d81ab))==null?void 0x0:_0x36d5a8[_0x7d86a6(0x26a)]();return(_0x17e1ec==null?void 0x0:_0x17e1ec['find'](_0x2a2fa3=>t[_0x7d86a6(0x428)]['contains'](_0x2a2fa3,_0x388db3)))||_0x388db3;}[_0x5217db(0x3db)](){const _0x581bbb=_0x5217db;let _0x4be032=new t['DisposableCollection'](),_0x1b6066=de(),_0x375d17=()=>{const _0x3bb6a0=_0x575d;_0x4be032[_0x3bb6a0(0x249)]();let _0x2dd89c=(_0x3153d0,_0x46ac9b,_0x251d49,_0x2ffe01)=>{const _0x45de07=_0x3bb6a0;let _0x462d5d=[];switch(_0x3153d0['id']){case g[_0x45de07(0x482)][_0x45de07(0x27d)]:_0x462d5d=(0x0,g['handleDeleteRangeMoveLeft'])(_0x3153d0,_0x2ffe01);break;case g['EffectRefRangId'][_0x45de07(0x259)]:_0x462d5d=(0x0,g[_0x45de07(0x3f7)])(_0x3153d0,_0x2ffe01);break;case g[_0x45de07(0x482)][_0x45de07(0x1fd)]:_0x462d5d=(0x0,g[_0x45de07(0x4ad)])(_0x3153d0,_0x2ffe01);break;case g['EffectRefRangId'][_0x45de07(0x44b)]:_0x462d5d=(0x0,g[_0x45de07(0x426)])(_0x3153d0,_0x2ffe01);break;case g[_0x45de07(0x482)][_0x45de07(0x47a)]:_0x462d5d=(0x0,g[_0x45de07(0x357)])(_0x3153d0,_0x2ffe01);break;case g[_0x45de07(0x482)][_0x45de07(0x36a)]:_0x462d5d=(0x0,g[_0x45de07(0x32d)])(_0x3153d0,_0x2ffe01);break;case g['EffectRefRangId'][_0x45de07(0x2b1)]:_0x462d5d=(0x0,g[_0x45de07(0x31f)])(_0x3153d0,_0x2ffe01);break;case g[_0x45de07(0x482)][_0x45de07(0x491)]:_0x462d5d=(0x0,g[_0x45de07(0x420)])(_0x3153d0,_0x2ffe01);break;case g[_0x45de07(0x482)][_0x45de07(0x1e9)]:_0x462d5d=(0x0,g[_0x45de07(0x255)])(_0x3153d0,_0x2ffe01);}let _0x3cebd3=(0x0,g[_0x45de07(0x28a)])(_0x462d5d,_0x2ffe01),_0x4a2109=this[_0x45de07(0x1bc)][_0x45de07(0x438)](_0x46ac9b);if(_0x4a2109&&_0x3cebd3){let _0xe0dddd={..._0x4a2109,'range':_0x3cebd3};this[_0x45de07(0x1bc)]['set'](_0x46ac9b,_0xe0dddd),_0x1b6066(()=>{const _0x2ae42e=_0x45de07;let _0x17806a=this[_0x2ae42e(0x3e1)][_0x2ae42e(0x23d)](_0x3cebd3,_0x19f429=>(_0x17806a['dispose'](),_0x2dd89c(_0x19f429,_0x46ac9b,_0x251d49,_0x3cebd3)));_0x4be032[_0x2ae42e(0x374)](_0x17806a);});}return{'redos':[],'undos':[]};};this[_0x3bb6a0(0x1bc)][_0x3bb6a0(0x309)]((_0x3f9227,_0x1f5c7d)=>{const _0x41dd45=_0x3bb6a0;let {range:_0x3b853c,sheetID:_0x53298c}=_0x3f9227,_0x4e7bfb=this[_0x41dd45(0x3e1)][_0x41dd45(0x23d)](_0x3b853c,_0x1b86b9=>(_0x4e7bfb['dispose'](),_0x2dd89c(_0x1b86b9,_0x1f5c7d,_0x53298c,_0x3b853c)));_0x4be032[_0x41dd45(0x374)](_0x4e7bfb);});};this['disposeWithMe']((0x0,t[_0x581bbb(0x3d9)])(this['_cursorInfo$'][_0x581bbb(0x468)](()=>{_0x375d17();})));}[_0x5217db(0x40f)](){const _0x29d3b9=_0x5217db;var _0x15e164,_0x2a56e8;if(this[_0x29d3b9(0x404)]=!0x0,((_0x15e164=this['_univerInstanceService'][_0x29d3b9(0x296)]())==null?void 0x0:_0x15e164[_0x29d3b9(0x2c5)]())!==this[_0x29d3b9(0x328)])return;let _0x5d7e17=(_0x2a56e8=this[_0x29d3b9(0x303)][_0x29d3b9(0x438)](g[_0x29d3b9(0x271)])[_0x29d3b9(0x207)]())==null?void 0x0:_0x2a56e8[0x0],_0x3374e9=this[_0x29d3b9(0x2ae)][_0x29d3b9(0x44f)](t[_0x29d3b9(0x239)][_0x29d3b9(0x478)])[_0x29d3b9(0x1ec)]();_0x5d7e17&&_0x3374e9&&this[_0x29d3b9(0x4aa)](_0x3374e9[_0x29d3b9(0x39f)](),_0x5d7e17);}['_toggleOffline'](){const _0x37c448=_0x5217db;this[_0x37c448(0x404)]=!0x1;}};A=S([x(0x2,(0x0,t[_0x5217db(0x298)])(t[_0x5217db(0x231)])),x(0x3,(0x0,t[_0x5217db(0x298)])(D)),x(0x4,(0x0,t[_0x5217db(0x298)])(e['MemberService'])),x(0x5,t[_0x5217db(0x49c)]),x(0x6,t[_0x5217db(0x31c)]),x(0x7,(0x0,t[_0x5217db(0x298)])(g[_0x5217db(0x413)]))],A);let j=class extends t[_0x5217db(0x25d)]{constructor(_0x5da010,_0x468960,_0x7b2bfd){const _0x42a462=_0x5217db;super(),this[_0x42a462(0x2ae)]=_0x5da010,this[_0x42a462(0x303)]=_0x468960,this[_0x42a462(0x2e4)]=_0x7b2bfd,b(this,_0x42a462(0x2b8),new Map()),b(this,_0x42a462(0x3d6),new r[(_0x42a462(0x30f))]()),this[_0x42a462(0x372)]();}[_0x5217db(0x249)](){const _0x323583=_0x5217db;super[_0x323583(0x249)](),this[_0x323583(0x3d6)]['complete'](),this[_0x323583(0x2b8)]['forEach'](_0x54822b=>_0x54822b[_0x323583(0x249)]());}['getCollabCursors$'](_0x53fe6c){const _0x516b4e=_0x5217db;let _0x4d7243=this[_0x516b4e(0x2b8)]['get'](_0x53fe6c);return _0x4d7243?_0x4d7243['cursorInfo$']:this[_0x516b4e(0x3d6)]['pipe']((0x0,r[_0x516b4e(0x1d0)])(_0x14e31c=>_0x14e31c['unitID']===_0x53fe6c),(0x0,r['switchMap'])(_0x4a4216=>_0x4a4216['cursorInfo$']));}[_0x5217db(0x372)](){const _0x464526=_0x5217db;this[_0x464526(0x2ae)][_0x464526(0x3f5)](t[_0x464526(0x239)][_0x464526(0x478)])['pipe']((0x0,r[_0x464526(0x2a5)])(this[_0x464526(0x2a3)]))[_0x464526(0x468)](async _0x5302dd=>{const _0x1467ba=_0x464526;let _0x4cda1d=_0x5302dd[_0x1467ba(0x2bc)][_0x1467ba(0x2c5)](),_0xe9506d=await this['_startSheetCollabCursor'](_0x4cda1d);this[_0x1467ba(0x3d6)][_0x1467ba(0x39d)](_0xe9506d),this[_0x1467ba(0x2b8)]['set'](_0x4cda1d,_0xe9506d);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](t[_0x464526(0x239)]['UNIVER_DOC'])[_0x464526(0x4a4)]((0x0,r[_0x464526(0x2a5)])(this[_0x464526(0x2a3)]))[_0x464526(0x4a4)]((0x0,r[_0x464526(0x1d0)])(_0xf3e6cb=>!_0xf3e6cb[_0x464526(0x2bc)][_0x464526(0x2c5)]()[_0x464526(0x1c9)]('__')))['subscribe'](async _0xa1341a=>{const _0x38db0e=_0x464526;let {unit:_0x35d518}=_0xa1341a,_0x55f51d=_0x35d518[_0x38db0e(0x2c5)](),_0x1d9c70=await this['_startDocCollabCursor'](_0x55f51d);this[_0x38db0e(0x3d6)][_0x38db0e(0x39d)](_0x1d9c70),this['_entities'][_0x38db0e(0x1ce)](_0x55f51d,_0x1d9c70);}),(0x0,r[_0x464526(0x228)])(this[_0x464526(0x2ae)][_0x464526(0x1de)](t['UniverInstanceType'][_0x464526(0x496)]),this[_0x464526(0x2ae)][_0x464526(0x1de)](t[_0x464526(0x239)][_0x464526(0x478)]))[_0x464526(0x4a4)]((0x0,r['takeUntil'])(this['dispose$']))[_0x464526(0x468)](_0x44e0a3=>{const _0x10ce14=_0x464526;let _0x2c7c1d=_0x44e0a3[_0x10ce14(0x2c5)](),_0x3c7b30=this[_0x10ce14(0x2b8)][_0x10ce14(0x438)](_0x2c7c1d);_0x3c7b30&&(_0x3c7b30[_0x10ce14(0x249)](),this['_entities']['delete'](_0x2c7c1d));});}async[_0x5217db(0x362)](_0x38a767){const _0x43864e=_0x5217db;let _0x2803d3=await this[_0x43864e(0x2e4)][_0x43864e(0x338)](_0x38a767),_0x3255b8=this['_injector'][_0x43864e(0x340)](A,_0x38a767,_0x2803d3);return _0x3255b8['init'](),_0x3255b8;}async['_startDocCollabCursor'](_0x5a5277){const _0x52dff3=_0x5217db;let _0x4e9178=await this['_collabSessionService']['requireSession'](_0x5a5277),_0x3eaa2e=this[_0x52dff3(0x303)][_0x52dff3(0x340)](k,_0x5a5277,_0x4e9178);return _0x3eaa2e[_0x52dff3(0x244)](),_0x3eaa2e;}};j=S([x(0x0,t[_0x5217db(0x49c)]),x(0x1,(0x0,t[_0x5217db(0x298)])(t[_0x5217db(0x231)])),x(0x2,(0x0,t['Inject'])(e[_0x5217db(0x487)]))],j);function M(_0xdbc746,_0x180ee5){const _0x51e4e4=_0x5217db;_0xdbc746['save'](),_0xdbc746[_0x51e4e4(0x2d0)]=_0x51e4e4(0x299);let _0x13b09b=_0xdbc746[_0x51e4e4(0x387)](_0x180ee5)['width'];return _0xdbc746[_0x51e4e4(0x353)](),Math[_0x51e4e4(0x3b0)](_0x13b09b+0x8,0xc8);}function fe(_0x1acfa0,_0xd42061){const _0x4b23aa=_0x5217db;let {radius:_0x43ce73,width:_0x19c426,height:_0x4d6433}=_0xd42061;_0x43ce73??=0x0,_0x19c426??=0x1e,_0x4d6433??=0x1e;let _0x5c9070=0x0,_0x523029=0x0,_0x2746a7=0x0;_0x5c9070=_0x523029=_0x2746a7=Math['min'](_0x43ce73,_0x19c426/0x2,_0x4d6433/0x2),_0x1acfa0[_0x4b23aa(0x321)](),_0x1acfa0['moveTo'](_0x5c9070,0x0),_0x1acfa0[_0x4b23aa(0x1fe)](_0x19c426-_0x523029,0x0),_0x1acfa0['arc'](_0x19c426-_0x523029,_0x523029,_0x523029,Math['PI']*0x3/0x2,0x0,!0x1),_0x1acfa0[_0x4b23aa(0x1fe)](_0x19c426,_0x4d6433-_0x2746a7),_0x1acfa0[_0x4b23aa(0x39c)](_0x19c426-_0x2746a7,_0x4d6433-_0x2746a7,_0x2746a7,0x0,Math['PI']/0x2,!0x1),_0x1acfa0[_0x4b23aa(0x1fe)](0x0,_0x4d6433),_0x1acfa0[_0x4b23aa(0x1fe)](0x0,_0x5c9070),_0x1acfa0[_0x4b23aa(0x39c)](_0x5c9070,_0x5c9070,_0x5c9070,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1acfa0[_0x4b23aa(0x48c)](),_0xd42061[_0x4b23aa(0x1bb)]&&(_0x1acfa0[_0x4b23aa(0x214)](),_0x1acfa0[_0x4b23aa(0x28d)]=_0xd42061[_0x4b23aa(0x1bb)],_0xd42061['fillRule']===_0x4b23aa(0x44d)?_0x1acfa0[_0x4b23aa(0x1bb)](_0x4b23aa(0x44d)):_0x1acfa0[_0x4b23aa(0x1bb)](),_0x1acfa0[_0x4b23aa(0x353)]());}var pe=class e extends p[_0x5217db(0x300)]{constructor(_0x2dda20,_0x5f7510){const _0x3a1567=_0x5217db;super(_0x2dda20,_0x5f7510),b(this,_0x3a1567(0x36b),void 0x0),b(this,_0x3a1567(0x27b),void 0x0),this['color']=_0x5f7510==null?void 0x0:_0x5f7510['color'],this['text']=_0x5f7510==null?void 0x0:_0x5f7510[_0x3a1567(0x27b)];}static[_0x5217db(0x1d8)](_0x41ef29,_0x2c57b7){const _0x56b4b8=_0x5217db;let {text:_0x2a0954,color:_0x2ae1f2}=_0x2c57b7;_0x41ef29[_0x56b4b8(0x214)](),_0x41ef29[_0x56b4b8(0x2d0)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x36f705=_0x41ef29[_0x56b4b8(0x387)](_0x2a0954)[_0x56b4b8(0x446)];if(fe(_0x41ef29,{'height':0x14,'radius':0x4,'width':M(_0x41ef29,_0x2a0954),'fill':_0x2ae1f2,'evented':!0x1}),_0x41ef29[_0x56b4b8(0x28d)]=_0x56b4b8(0x28c),_0x36f705>0xc0){let _0x29387f='',_0x11bfc1=0x0;for(let _0x75d89c of _0x2a0954){let _0x5bbcda=_0x41ef29[_0x56b4b8(0x387)](_0x75d89c)['width'];if(_0x11bfc1+_0x5bbcda<=0xc0-_0x41ef29[_0x56b4b8(0x387)]('...')['width'])_0x29387f+=_0x75d89c,_0x11bfc1+=_0x5bbcda;else{_0x29387f+='...';break;}}_0x41ef29[_0x56b4b8(0x47b)](_0x29387f,0x4,0xf);}else _0x41ef29[_0x56b4b8(0x47b)](_0x2a0954,0x4,0xf);_0x41ef29['restore']();}['_draw'](_0x1edb4e){const _0xd5980f=_0x5217db;e[_0xd5980f(0x1d8)](_0x1edb4e,this);}};const N=_0x5217db(0x418);var me=class{constructor(_0x5e4e1b,_0x406f92,_0x3e4461,_0x32eae2){const _0x13a8a8=_0x5217db;this[_0x13a8a8(0x257)]=_0x5e4e1b,this['_scene']=_0x406f92,this[_0x13a8a8(0x429)]=_0x3e4461,this[_0x13a8a8(0x3ab)]=_0x32eae2,b(this,_0x13a8a8(0x42a),[]),b(this,_0x13a8a8(0x3e3),null),b(this,'_textBubble',null),b(this,_0x13a8a8(0x42f),null),b(this,_0x13a8a8(0x1fb),null),b(this,_0x13a8a8(0x474),null),this[_0x13a8a8(0x22c)]();}set[_0x5217db(0x337)](_0x5d78bd){const _0x16d305=_0x5217db;_0x5d78bd?(this[_0x16d305(0x42f)]&&this[_0x16d305(0x42f)][_0x16d305(0x432)](),this[_0x16d305(0x221)]&&this[_0x16d305(0x221)][_0x16d305(0x2a1)]()):(this[_0x16d305(0x42f)]&&this[_0x16d305(0x42f)][_0x16d305(0x2a1)](),this['_textBubble']&&this['_textBubble'][_0x16d305(0x432)]());}[_0x5217db(0x249)](){const _0x1bf2bd=_0x5217db;for(let _0x3ba466 of this[_0x1bf2bd(0x42a)])_0x3ba466['dispose']();this[_0x1bf2bd(0x221)]&&this[_0x1bf2bd(0x221)][_0x1bf2bd(0x249)](),this[_0x1bf2bd(0x42f)]&&this[_0x1bf2bd(0x42f)][_0x1bf2bd(0x249)](),this[_0x1bf2bd(0x3e3)]&&this[_0x1bf2bd(0x3e3)][_0x1bf2bd(0x249)](),this['_eventUnsubscribe']&&this[_0x1bf2bd(0x474)]();}['_render'](){const _0x5f400e=_0x5217db;let {_docSkeleton:_0x519ce8,_document:_0x2f81d8}=this,{color:_0x35d5f3,name:_0x47c9e0,ranges:_0x2dd73c}=this[_0x5f400e(0x257)],_0x1d9375=_0x2f81d8[_0x5f400e(0x3f9)](),{docsLeft:_0x1669fb,docsTop:_0x1e09d7}=_0x1d9375,_0x55fda5=new f[(_0x5f400e(0x4a5))](_0x1d9375,_0x519ce8);for(let {startOffset:_0x6afe9c,endOffset:_0x481d2a,rangeType:_0x143c1f,segmentId:_0x282718,segmentPage:_0x4292e0,collapsed:_0x3a37a7,isActive:_0x1aa127}of _0x2dd73c){let _0x4c35e3=_0x519ce8[_0x5f400e(0x34b)](_0x6afe9c,!0x0,_0x282718,_0x4292e0),_0x56b413=_0x519ce8['findNodePositionByCharIndex'](_0x481d2a,!0x0,_0x282718,_0x4292e0);_0x56b413??=_0x519ce8[_0x5f400e(0x34b)](_0x481d2a-0x1,!0x1,_0x282718,_0x4292e0);let _0x4d18f7=he(_0x4c35e3,_0x56b413);if(_0x1aa127&&_0x4d18f7[_0x5f400e(0x46c)]){let {contentBoxPointGroup:_0x530f71}=_0x55fda5[_0x5f400e(0x35e)](_0x56b413,_0x56b413);if(_0x530f71[_0x5f400e(0x29e)]===0x0)continue;this[_0x5f400e(0x40a)](_0x35d5f3,_0x530f71,_0x1669fb,_0x1e09d7,_0x47c9e0),this[_0x5f400e(0x474)]=this[_0x5f400e(0x23e)]();}if(_0x4c35e3&&_0x56b413){if(_0x143c1f===t[_0x5f400e(0x486)][_0x5f400e(0x4a0)]){let {pointGroup:_0x3b3606}=new f[(_0x5f400e(0x388))](_0x1d9375,_0x519ce8)['getRangePointData'](_0x4c35e3,_0x56b413)??{};if(_0x3b3606==null||_0x3b3606[_0x5f400e(0x29e)]===0x0)continue;this[_0x5f400e(0x205)](_0x35d5f3,_0x3b3606,_0x1669fb,_0x1e09d7);}else{if(!_0x3a37a7&&_0x4d18f7[_0x5f400e(0x371)]){let {borderBoxPointGroup:_0x94cd43}=_0x55fda5[_0x5f400e(0x35e)](_0x4c35e3,_0x56b413);if(_0x94cd43[_0x5f400e(0x29e)]===0x0)continue;this[_0x5f400e(0x2bd)](_0x35d5f3,_0x94cd43,_0x1669fb,_0x1e09d7);}}}}}[_0x5217db(0x40a)](_0x4a5d45,_0x3bfe4b,_0x38cc80,_0x5c0f96,_0x1be350){const _0x51a91b=_0x5217db;let {left:_0x1b6775,top:_0x3d33a6,height:_0x2c4ff3}=this[_0x51a91b(0x442)](_0x3bfe4b),_0x1c2ca2=1.5/this[_0x51a91b(0x2a4)](),_0x377ac9=new p[(_0x51a91b(0x2ee))](N+(0x0,t[_0x51a91b(0x269)])(0x6),{'left':_0x1b6775+_0x38cc80-_0x1c2ca2,'top':_0x3d33a6+_0x5c0f96,'height':_0x2c4ff3,'width':1.5,'fill':_0x4a5d45||(0x0,p[_0x51a91b(0x37d)])(t[_0x51a91b(0x2fa)]['black'],0x0),'strokeWidth':_0x1c2ca2,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x51a91b(0x3e3)]=_0x377ac9,this[_0x51a91b(0x380)]['addObject'](_0x377ac9,f[_0x51a91b(0x46b)]);let _0x2af6cf=new p[(_0x51a91b(0x2ee))](N+(0x0,t[_0x51a91b(0x269)])(0x6),{'left':_0x1b6775+_0x38cc80-_0x1c2ca2,'top':_0x3d33a6+_0x5c0f96-0x2,'height':0x4,'width':0x4,'fill':_0x4a5d45||(0x0,p['getColor'])(t[_0x51a91b(0x2fa)][_0x51a91b(0x3d1)],0x0),'strokeWidth':0x0,'stroke':_0x4a5d45||(0x0,p[_0x51a91b(0x37d)])(t[_0x51a91b(0x2fa)][_0x51a91b(0x3d1)],0x0),'evented':!0x1});this[_0x51a91b(0x42f)]=_0x2af6cf,this[_0x51a91b(0x380)]['addObject'](_0x2af6cf,f[_0x51a91b(0x46b)]);let _0x547294=new pe(N+(0x0,t[_0x51a91b(0x269)])(0x6),{'left':_0x1b6775+_0x38cc80-_0x1c2ca2,'top':_0x3d33a6+_0x5c0f96-0x14,'text':_0x1be350,'color':_0x4a5d45});this[_0x51a91b(0x221)]=_0x547294,this[_0x51a91b(0x380)][_0x51a91b(0x3d5)](_0x547294,f['TEXT_RANGE_LAYER_INDEX']),this[_0x51a91b(0x337)]=!0x1;}['_handleHover'](){const _0x137bf2=_0x5217db;let _0x528ff1=this[_0x137bf2(0x3e3)][_0x137bf2(0x210)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x74317e=this[_0x137bf2(0x3e3)][_0x137bf2(0x295)][_0x137bf2(0x314)](()=>{const _0x57ed87=_0x137bf2;this[_0x57ed87(0x1fb)]&&clearTimeout(this[_0x57ed87(0x1fb)]),this['_hideTimer']=setTimeout(()=>{const _0xa431f0=_0x57ed87;this[_0xa431f0(0x337)]=!0x1;},0x7d0);});return()=>{const _0x682d20=_0x137bf2;_0x528ff1[_0x682d20(0x40e)](),_0x74317e['unsubscribe']();};}[_0x5217db(0x2bd)](_0x399522,_0x36abd5,_0x2cfa9c,_0x1d122b){const _0x258bca=_0x5217db;let _0x2b9066=0.2,_0x2c61f6=new t['ColorKit'](_0x399522)['setAlpha'](_0x2b9066)[_0x258bca(0x368)](),_0x4a4929=new p[(_0x258bca(0x3a2))]('collab-text-range-'+(0x0,t[_0x258bca(0x269)])(0x6),{'pointsGroup':_0x36abd5,'fill':_0x2c61f6||(0x0,p[_0x258bca(0x37d)])(t[_0x258bca(0x2fa)][_0x258bca(0x3d1)],_0x2b9066),'left':_0x2cfa9c,'top':_0x1d122b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x258bca(0x42a)]['push'](_0x4a4929),this['_scene'][_0x258bca(0x3d5)](_0x4a4929,f[_0x258bca(0x46b)]);}[_0x5217db(0x205)](_0x15fb3c,_0x193bd5,_0x1278a4,_0x227858){const _0x54fce2=_0x5217db;let _0x3fbb63=0.2,_0x149fa0=new t[(_0x54fce2(0x4bc))](_0x15fb3c)[_0x54fce2(0x384)](_0x3fbb63)[_0x54fce2(0x368)](),_0x2e999d=new p[(_0x54fce2(0x3a2))](_0x54fce2(0x2d2)+(0x0,t[_0x54fce2(0x269)])(0x6),{'pointsGroup':_0x193bd5,'fill':_0x149fa0||(0x0,p[_0x54fce2(0x37d)])(t[_0x54fce2(0x2fa)][_0x54fce2(0x3d1)],_0x3fbb63),'left':_0x1278a4,'top':_0x227858,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x54fce2(0x42a)]['push'](_0x2e999d),this[_0x54fce2(0x380)]['addObject'](_0x2e999d,f[_0x54fce2(0x46b)]);}['_getAnchorBounding'](_0x2fd2ef){let _0x4823ec=_0x2fd2ef[0x0],_0x84396c=_0x4823ec[0x0],_0x5dcd20=_0x4823ec[0x2],{x:_0x5b7767,y:_0xd4d132}=_0x84396c,{x:_0x5960cd,y:_0x370fa1}=_0x5dcd20;return{'left':_0x5b7767,'top':_0xd4d132,'width':_0x5960cd-_0x5b7767,'height':_0x370fa1-_0xd4d132};}[_0x5217db(0x2a4)](){const _0x41ac67=_0x5217db;let {scaleX:_0x12ba3e,scaleY:_0xcc43e3}=this[_0x41ac67(0x380)][_0x41ac67(0x3f1)]();return Math[_0x41ac67(0x3f8)](_0x12ba3e,_0xcc43e3);}};function he(_0x5c2fd4,_0x56b40b){const _0x3ad5d7=_0x5217db;if(!_0x56b40b)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x5c2fd4||_0x5c2fd4['pageType']!==_0x56b40b['pageType']||(_0x5c2fd4['pageType']===p[_0x3ad5d7(0x40d)][_0x3ad5d7(0x1f4)]||_0x5c2fd4[_0x3ad5d7(0x2f1)]===p[_0x3ad5d7(0x40d)][_0x3ad5d7(0x4a7)])&&_0x5c2fd4[_0x3ad5d7(0x3c2)]!==_0x56b40b[_0x3ad5d7(0x3c2)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x16b536=(0x0,p[_0x3ad5d7(0x3f2)])(_0x5c2fd4),_0x396455=(0x0,p[_0x3ad5d7(0x3f2)])(_0x56b40b);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x16b536==null||_0x396455==null?_0x16b536==null&&_0x396455==null:_0x16b536[_0x3ad5d7(0x49b)]===_0x396455[_0x3ad5d7(0x49b)]&&_0x16b536['columnGroupId']===_0x396455[_0x3ad5d7(0x4b9)]&&_0x16b536[_0x3ad5d7(0x288)]===_0x396455['columnIndex']};}let P=class extends t[_0x5217db(0x25d)]{constructor(_0x2edf06,_0x105a2d,_0x502880,_0x5bcfe5,_0x4a7fb7){const _0x7a85dd=_0x5217db;super(),this[_0x7a85dd(0x3ba)]=_0x2edf06,this[_0x7a85dd(0x433)]=_0x105a2d,this[_0x7a85dd(0x35a)]=_0x502880,this[_0x7a85dd(0x424)]=_0x5bcfe5,this[_0x7a85dd(0x43f)]=_0x4a7fb7,b(this,_0x7a85dd(0x46d),[]),b(this,_0x7a85dd(0x308),[]),this[_0x7a85dd(0x372)]();}[_0x5217db(0x372)](){const _0x7f5be7=_0x5217db;let _0x17b5c1=this[_0x7f5be7(0x3ba)][_0x7f5be7(0x452)],_0xf4d69=this[_0x7f5be7(0x433)];this[_0x7f5be7(0x219)]((0x0,r['combineLatest'])([this['_collabCursorController']['getCollabCursors$'](_0x17b5c1),this[_0x7f5be7(0x43f)]['currentTheme$']])[_0x7f5be7(0x4a4)]((0x0,i[_0x7f5be7(0x3fe)])(([_0x550c24,_0x13e8d7])=>({'skeleton':_0xf4d69[_0x7f5be7(0x33b)](),'cursors':[..._0x550c24[_0x7f5be7(0x1db)]()][_0x7f5be7(0x2f2)](_0x23d5e2=>({..._0x23d5e2,'color':this['_themeService'][_0x7f5be7(0x33d)](_0x23d5e2['color'])}))})))['subscribe'](_0x512e82=>{if(this['_removeCollabCursors'](),_0x512e82){let {skeleton:_0x299078,cursors:_0x5bcf7f}=_0x512e82;this['_updateCollabCursors'](_0x299078,_0x5bcf7f);}})),this[_0x7f5be7(0x3b9)](),this[_0x7f5be7(0x22b)]();}[_0x5217db(0x3cd)](_0x1f20aa,_0x15f4d7){const _0x3ab5e1=_0x5217db;let {scene:_0x5b66cb,mainComponent:_0x2e8a85}=this['_context'],_0x5bf54d=_0x15f4d7['map'](_0x182e98=>new me(_0x182e98,_0x5b66cb,_0x1f20aa,_0x2e8a85));this[_0x3ab5e1(0x46d)]=_0x5bf54d,this[_0x3ab5e1(0x308)]=_0x15f4d7;}[_0x5217db(0x3c0)](){const _0x956d72=_0x5217db;this[_0x956d72(0x280)]();let {scene:_0x15fa73,mainComponent:_0xb36dda}=this[_0x956d72(0x3ba)],_0x3e3f9c=this[_0x956d72(0x433)]['getSkeleton'](),_0x249799=this[_0x956d72(0x308)][_0x956d72(0x3fe)](_0x191094=>new me(_0x191094,_0x15fa73,_0x3e3f9c,_0xb36dda));this[_0x956d72(0x46d)]=_0x249799;}[_0x5217db(0x280)](){const _0x17a333=_0x5217db;this[_0x17a333(0x46d)]['forEach'](_0x558a40=>_0x558a40[_0x17a333(0x249)]()),this[_0x17a333(0x46d)]=[];}[_0x5217db(0x22b)](){const _0x22a962=_0x5217db;let _0x493acc=[f['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x22a962(0x424)]['onCommandExecuted'](_0x5c96b9=>{const _0x6afa2c=_0x22a962;_0x493acc[_0x6afa2c(0x403)](_0x5c96b9['id'])&&_0x5c96b9['params'][_0x6afa2c(0x452)]===this['_context']['unitId']&&this[_0x6afa2c(0x3c0)]();}));}[_0x5217db(0x3b9)](){const _0x2eae7b=_0x5217db;this[_0x2eae7b(0x219)]((0x0,t[_0x2eae7b(0x4b7)])(this[_0x2eae7b(0x3ba)]['engine'][_0x2eae7b(0x3ce)])[_0x2eae7b(0x4a4)]((0x0,i['filter'])(_0x4a4338=>_0x4a4338[_0x2eae7b(0x2ad)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x2eae7b(0x3c5)]),(0x0,i[_0x2eae7b(0x480)])(0x10))[_0x2eae7b(0x468)](()=>{const _0x38fb6c=_0x2eae7b;this[_0x38fb6c(0x3c0)]();}));}};P=S([x(0x1,(0x0,t[_0x5217db(0x298)])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t['Inject'])(j)),x(0x3,t['ICommandService']),x(0x4,(0x0,t['Inject'])(t[_0x5217db(0x1cb)]))],P);var F=class extends p['Shape']{constructor(_0x3de9b2,_0x219886){const _0x3f8db3=_0x5217db;super(_0x3de9b2,_0x219886),b(this,_0x3f8db3(0x2ac),void 0x0),b(this,_0x3f8db3(0x4c3),!0x1),b(this,_0x3f8db3(0x3be),void 0x0),b(this,_0x3f8db3(0x35c),''),b(this,_0x3f8db3(0x1d5),_0x3f8db3(0x3b6)),b(this,'_backgroundColor',void 0x0),b(this,_0x3f8db3(0x4af),void 0x0),b(this,_0x3f8db3(0x234),void 0x0),b(this,_0x3f8db3(0x346),0x4),b(this,'_blinkTimer',void 0x0),b(this,_0x3f8db3(0x471),void 0x0),b(this,_0x3f8db3(0x37b),!0x0),b(this,_0x3f8db3(0x399),0x0),b(this,_0x3f8db3(0x273),'right'),_0x219886&&(this[_0x3f8db3(0x341)](_0x219886),_0x219886[_0x3f8db3(0x376)]&&(_0x219886[_0x3f8db3(0x490)]??this[_0x3f8db3(0x346)])&&this['_startBlinking'](_0x219886[_0x3f8db3(0x490)]??this[_0x3f8db3(0x346)])),this[_0x3f8db3(0x210)]['subscribeEvent'](()=>this[_0x3f8db3(0x341)]({'hovered':!0x0})),this[_0x3f8db3(0x295)][_0x3f8db3(0x314)](()=>this[_0x3f8db3(0x341)]({'hovered':!0x1}));}[_0x5217db(0x458)](_0x3c35fb){const _0x923071=_0x5217db;this[_0x923071(0x399)]=_0x3c35fb;}[_0x5217db(0x341)](_0x57c976){const _0xd1efd2=_0x5217db;this[_0xd1efd2(0x2ac)]=_0x57c976['color']??this[_0xd1efd2(0x2ac)],this[_0xd1efd2(0x4c3)]=_0x57c976[_0xd1efd2(0x2e6)]??this[_0xd1efd2(0x4c3)],this[_0xd1efd2(0x3be)]=_0x57c976[_0xd1efd2(0x294)]??this[_0xd1efd2(0x3be)],this['_name']=_0x57c976[_0xd1efd2(0x36e)]??this[_0xd1efd2(0x35c)],this[_0xd1efd2(0x1d5)]=_0x57c976[_0xd1efd2(0x2c1)]??this['_labelPosition'],this['_backgroundColor']=_0x57c976[_0xd1efd2(0x44a)]??this['_backgroundColor'],this[_0xd1efd2(0x4af)]=_0x57c976[_0xd1efd2(0x2c6)]??this[_0xd1efd2(0x4af)],this[_0xd1efd2(0x273)]=_0x57c976[_0xd1efd2(0x316)]??this[_0xd1efd2(0x273)],_0x57c976[_0xd1efd2(0x490)]!==void 0x0&&(this[_0xd1efd2(0x346)]=_0x57c976[_0xd1efd2(0x490)]),_0x57c976[_0xd1efd2(0x376)]!==void 0x0&&(this[_0xd1efd2(0x234)]=_0x57c976['highlight']),_0x57c976[_0xd1efd2(0x375)]!==void 0x0&&(this[_0xd1efd2(0x399)]=_0x57c976[_0xd1efd2(0x375)]),this['transformByState']({'width':_0x57c976['width'],'height':_0x57c976[_0xd1efd2(0x2ce)]});}[_0x5217db(0x313)](_0x561117){const _0x65181b=_0x5217db;let {row:_0x52d834,column:_0x31bbed}=_0x561117;_0x52d834>=this['_range'][_0x65181b(0x24e)]&&_0x52d834<=this['_range'][_0x65181b(0x1b5)]&&_0x31bbed>=this['_range'][_0x65181b(0x333)]&&_0x31bbed<=this[_0x65181b(0x3be)][_0x65181b(0x396)]?this[_0x65181b(0x341)]({'hovered':!0x0}):this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x291a5f){const _0x568770=_0x5217db;this[_0x568770(0x43a)](),this['_isBlinkVisible']=!0x0,this[_0x568770(0x471)]=window['setInterval'](()=>{const _0x246374=_0x568770;this['_isBlinkVisible']=!this[_0x246374(0x37b)],this[_0x246374(0x1ea)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x568770(0x1e8)](()=>{const _0x2c4eed=_0x568770;this[_0x2c4eed(0x43a)](),this[_0x2c4eed(0x37b)]=!0x0,this[_0x2c4eed(0x1ea)](!0x0);},_0x291a5f*0x3e8);}['_stopBlinking'](){const _0xa72c1d=_0x5217db;this[_0xa72c1d(0x471)]&&=(window[_0xa72c1d(0x3c7)](this['_blinkIntervalTimer']),void 0x0),this[_0xa72c1d(0x2d7)]&&=(window['clearTimeout'](this[_0xa72c1d(0x2d7)]),void 0x0);}[_0x5217db(0x34d)](_0x2b8b6d){return!0x1;}['dispose'](){const _0x41da14=_0x5217db;this['_stopBlinking'](),super[_0x41da14(0x249)]();}[_0x5217db(0x43e)](_0x3b7406){const _0x2992a6=_0x5217db;let _0x5df2d4=this[_0x2992a6(0x2ac)],_0x4afca1=this[_0x2992a6(0x347)];if(this[_0x2992a6(0x234)]&&!this[_0x2992a6(0x37b)]&&(_0x5df2d4=this[_0x2992a6(0x29a)](this['_color']),_0x4afca1=this[_0x2992a6(0x347)]?this[_0x2992a6(0x29a)](this[_0x2992a6(0x347)]):void 0x0),p[_0x2992a6(0x2ee)][_0x2992a6(0x1d8)](_0x3b7406,{'width':this[_0x2992a6(0x446)],'height':this[_0x2992a6(0x2ce)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x5df2d4,'evented':!0x1,'fill':_0x4afca1}),this[_0x2992a6(0x4c3)]||this[_0x2992a6(0x4af)]){_0x3b7406[_0x2992a6(0x214)]();let _0x2f8414=this[_0x2992a6(0x273)]===_0x2992a6(0x212)?-M(_0x3b7406,this[_0x2992a6(0x35c)]):this['width'];_0x3b7406['transform'](0x1,0x0,0x0,0x1,_0x2f8414,(this[_0x2992a6(0x1d5)]===_0x2992a6(0x3c9)?0x0:-0x14)+(this['_offsetY']??0x0)),pe['drawWith'](_0x3b7406,{'text':this['_name'],'color':_0x5df2d4}),_0x3b7406[_0x2992a6(0x353)]();}}[_0x5217db(0x29a)](_0x19c99e){const _0x53b40f=_0x5217db;return _0x19c99e[_0x53b40f(0x1c9)]('#')?_0x53b40f(0x373)+Number[_0x53b40f(0x358)](_0x19c99e['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x53b40f(0x358)](_0x19c99e[_0x53b40f(0x240)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x19c99e['slice'](0x5,0x7),0x10)+_0x53b40f(0x4be):_0x19c99e[_0x53b40f(0x1c9)](_0x53b40f(0x2f4))?_0x19c99e[_0x53b40f(0x1e3)](/[\d.]+\)$/g,'0.2)'):_0x19c99e[_0x53b40f(0x1c9)](_0x53b40f(0x494))?_0x19c99e[_0x53b40f(0x1e3)](_0x53b40f(0x494),_0x53b40f(0x2f4))[_0x53b40f(0x1e3)](')',',\x200.2)'):_0x19c99e;}};let I=class extends t['RxDisposable']{constructor(_0x39fa1a,_0xa3b593,_0x5b513c,_0x6b3be9){const _0x24c0ca=_0x5217db;super(),this[_0x24c0ca(0x3ba)]=_0x39fa1a,this[_0x24c0ca(0x492)]=_0xa3b593,this[_0x24c0ca(0x35a)]=_0x5b513c,this[_0x24c0ca(0x43f)]=_0x6b3be9,b(this,_0x24c0ca(0x308),new Set()),b(this,_0x24c0ca(0x398),null),b(this,_0x24c0ca(0x220),null),this[_0x24c0ca(0x372)]();}[_0x5217db(0x372)](){const _0x9c6c2c=_0x5217db;this[_0x9c6c2c(0x492)]['currentSkeleton$'][_0x9c6c2c(0x4a4)]((0x0,i[_0x9c6c2c(0x2a5)])(this['dispose$']),(0x0,i[_0x9c6c2c(0x2ff)])(_0xe7c3c5=>{const _0x8c6290=_0x9c6c2c;if(_0xe7c3c5){let _0xe63da1=_0xe7c3c5[_0x8c6290(0x495)];return(0x0,r[_0x8c6290(0x2fd)])(this['_collabCursorController'][_0x8c6290(0x473)](this[_0x8c6290(0x3ba)]['unitId']),this[_0x8c6290(0x43f)][_0x8c6290(0x1b3)])[_0x8c6290(0x4a4)]((0x0,i[_0x8c6290(0x3fe)])(([_0x3b9837,_0x3e18db])=>{const _0x108aad=_0x8c6290;let _0x51f08b=new Map();return _0x3b9837[_0x108aad(0x309)]((_0xce1f3a,_0xa16235)=>{const _0x484b9f=_0x108aad;if(_0xce1f3a[_0x484b9f(0x38a)]===_0xe63da1){let _0x42e79c={..._0xce1f3a};_0x42e79c['color']=this[_0x484b9f(0x43f)][_0x484b9f(0x33d)](_0xce1f3a['color']),_0x51f08b[_0x484b9f(0x1ce)](_0xa16235,_0x42e79c);}}),{'skeleton':_0xe7c3c5,'cursors':_0x51f08b};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x9c6c2c(0x468)](({skeleton:_0x14025b,cursors:_0x2cd7b7})=>{const _0x35685a=_0x9c6c2c;this[_0x35685a(0x280)](),_0x14025b&&this[_0x35685a(0x3cd)](_0x14025b,_0x2cd7b7);}),this[_0x9c6c2c(0x219)](this['_sheetSkeletonManagerService'][_0x9c6c2c(0x2e2)][_0x9c6c2c(0x4a4)]((0x0,i[_0x9c6c2c(0x2a5)])(this['dispose$']))[_0x9c6c2c(0x468)](_0x1ef8cf=>{const _0x2388ae=_0x9c6c2c;var _0x4bcca3;if(_0x1ef8cf==null)return;(_0x4bcca3=this[_0x2388ae(0x220)])==null||_0x4bcca3['unsubscribe'](),this[_0x2388ae(0x220)]=null;let {skeleton:_0x240db0}=_0x1ef8cf,{scene:_0x126bce}=this[_0x2388ae(0x3ba)];this[_0x2388ae(0x220)]=_0x126bce[_0x2388ae(0x40b)][_0x2388ae(0x314)]((0x0,t[_0x2388ae(0x2df)])(_0x293328=>{const _0x506b37=_0x2388ae;var _0x22c570,_0x7b883a;let {offsetX:_0x2875ce,offsetY:_0x2a2c1d}=_0x293328,{x:_0x41b88f,y:_0x5661c6}=_0x126bce[_0x506b37(0x4ab)](p['Vector2']['FromArray']([_0x2875ce,_0x2a2c1d])),{scaleX:_0x52e740,scaleY:_0x5a0548}=_0x126bce[_0x506b37(0x3f1)](),_0x76e75c=_0x126bce[_0x506b37(0x2ba)](p[_0x506b37(0x3d8)]['VIEW_MAIN']),_0x2cd234=_0x126bce[_0x506b37(0x355)](p[_0x506b37(0x2f7)][_0x506b37(0x479)]([_0x41b88f,_0x5661c6]),_0x76e75c),_0x313799=_0x240db0['getCellIndexByOffset'](_0x2875ce,_0x2a2c1d,_0x52e740,_0x5a0548,_0x2cd234);(((_0x22c570=this[_0x506b37(0x398)])==null?void 0x0:_0x22c570[_0x506b37(0x226)])!==_0x313799[_0x506b37(0x226)]||((_0x7b883a=this[_0x506b37(0x398)])==null?void 0x0:_0x7b883a[_0x506b37(0x3bd)])!==_0x313799['row'])&&this[_0x506b37(0x308)]['forEach'](_0x1dc634=>{const _0x4d6025=_0x506b37;_0x1dc634[_0x4d6025(0x313)](_0x313799);});},0x64));})),this[_0x9c6c2c(0x219)]((0x0,t['toDisposable'])(()=>{const _0x97e350=_0x9c6c2c;var _0x278448;(_0x278448=this[_0x97e350(0x220)])==null||_0x278448[_0x97e350(0x40e)](),this[_0x97e350(0x220)]=null;}));}[_0x5217db(0x3cd)](_0x3c796b,_0x49c926){const _0x2eb7d1=_0x5217db;let _0x18daa6=this[_0x2eb7d1(0x492)][_0x2eb7d1(0x2a2)]();if(!_0x18daa6)return;let _0x41bd63=this[_0x2eb7d1(0x2ed)]();if(!_0x41bd63)return;this[_0x2eb7d1(0x308)][_0x2eb7d1(0x309)](_0x4bf3b5=>{_0x4bf3b5['makeDirty']();});let {scene:_0x2f4d26}=_0x41bd63,_0x5cb5c3=ge(Array[_0x2eb7d1(0x2b4)](_0x49c926[_0x2eb7d1(0x1db)]()))['map'](_0x40a89d=>{const _0x375de9=_0x2eb7d1;let {color:_0x55618b,range:_0x552267,name:_0x4714c2,selection:_0x4d20cc,sheetID:_0x3b1ca6}=_0x40a89d,{startColumn:_0x31839e,startRow:_0x595bee,endColumn:_0x1336eb,endRow:_0x1efb7e}=_0x552267,_0x3d32b6=(0x0,_[_0x375de9(0x266)])(_0x595bee,_0x31839e,_0x2f4d26,_0x18daa6),_0x3c66eb=(0x0,_[_0x375de9(0x266)])(_0x1efb7e,_0x1336eb,_0x2f4d26,_0x18daa6),{columnHeaderHeightAndMarginTop:_0x47ea4e}=_0x18daa6,{startX:_0x50d974,startY:_0x4e7fa8}=_0x3d32b6,{endX:_0x3b4ed3,endY:_0x5bb84c}=_0x3c66eb,_0x2364b7=_0x3b4ed3-_0x50d974,_0x2179b4=_0x5bb84c-_0x4e7fa8;return new F(_0x4714c2,{'labelPosition':_0x4e7fa8-_0x47ea4e>=0x14?_0x375de9(0x3b6):_0x375de9(0x3c9),'sheetID':_0x3b1ca6,'range':_0x552267,'color':_0x55618b,'name':_0x4714c2,'selection':_0x4d20cc,'left':_0x50d974,'top':_0x4e7fa8,'width':_0x2364b7,'height':_0x2179b4,'evented':!0x1,'zIndex':0x1389});});_0x2f4d26[_0x2eb7d1(0x279)](_0x5cb5c3,0x1),this[_0x2eb7d1(0x308)]=new Set(_0x5cb5c3);}[_0x5217db(0x280)](){const _0xf3b7bb=_0x5217db;var _0x3d59b2;(_0x3d59b2=this[_0xf3b7bb(0x308)])==null||_0x3d59b2[_0xf3b7bb(0x309)](_0x636936=>_0x636936['dispose']());}[_0x5217db(0x2ed)](){const _0x3af4ee=_0x5217db;return(0x0,_[_0x3af4ee(0x1d2)])(this[_0x3af4ee(0x3ba)][_0x3af4ee(0x2bc)],this['_context']);}};I=S([x(0x1,(0x0,t[_0x5217db(0x298)])(_[_0x5217db(0x3ac)])),x(0x2,(0x0,t[_0x5217db(0x298)])(j)),x(0x3,(0x0,t[_0x5217db(0x298)])(t[_0x5217db(0x1cb)]))],I);function ge(_0x153884){const _0x977628=_0x5217db;let _0x3433c0=new Map();return _0x153884[_0x977628(0x309)](_0x6802c4=>{const _0x3c0b83=_0x977628;if(_0x3433c0[_0x3c0b83(0x4ac)](_0x6802c4[_0x3c0b83(0x3a0)])){let _0x4dce5e=_0x3433c0['get'](_0x6802c4[_0x3c0b83(0x3a0)]);_0x4dce5e['name']+=',\x20'+_0x6802c4[_0x3c0b83(0x36e)];}else _0x3433c0[_0x3c0b83(0x1ce)](_0x6802c4[_0x3c0b83(0x3a0)],_0x6802c4);}),Array[_0x977628(0x2b4)](_0x3433c0[_0x977628(0x1db)]());}function L(_0x2e68c4){const _0x575cb0=_0x5217db;return typeof _0x2e68c4==_0x575cb0(0x2b7)&&!!_0x2e68c4;}function _e(_0x540a5a){const _0x396563=_0x5217db;return _0x540a5a[_0x396563(0x41c)]===l[_0x396563(0x2aa)][_0x396563(0x26c)]&&'data'in _0x540a5a&&L(_0x540a5a[_0x396563(0x4c4)])&&typeof _0x540a5a[_0x396563(0x4c4)][_0x396563(0x285)]==_0x396563(0x461)&&typeof _0x540a5a[_0x396563(0x4c4)][_0x396563(0x3a0)]==_0x396563(0x461);}function ve(_0x541e59){const _0x5086df=_0x5217db;return _0x541e59[_0x5086df(0x41c)]===l[_0x5086df(0x2aa)][_0x5086df(0x370)]&&'data'in _0x541e59&&L(_0x541e59[_0x5086df(0x4c4)])&&typeof _0x541e59[_0x5086df(0x4c4)][_0x5086df(0x285)]==_0x5086df(0x461);}function ye(_0xd58857,_0x14cd41){const _0x40ef96=_0x5217db;let _0x524abf;try{_0x524abf=JSON['parse'](_0xd58857);}catch{return null;}if(!L(_0x524abf)||typeof _0x524abf[_0x40ef96(0x28b)]!='string'||typeof _0x524abf[_0x40ef96(0x452)]!=_0x40ef96(0x461)||typeof _0x524abf[_0x40ef96(0x419)]!='string')return null;let _0x18d812=typeof _0x524abf['unitType']=='number'?_0x524abf[_0x40ef96(0x4b2)]:_0x14cd41;if(_0x18d812==null)return null;let _0x554b51=L(_0x524abf['pointer'])&&typeof _0x524abf[_0x40ef96(0x48d)]['x']==_0x40ef96(0x441)&&Number[_0x40ef96(0x2d9)](_0x524abf[_0x40ef96(0x48d)]['x'])&&typeof _0x524abf[_0x40ef96(0x48d)]['y']=='number'&&Number[_0x40ef96(0x2d9)](_0x524abf[_0x40ef96(0x48d)]['y'])?{'x':_0x524abf['pointer']['x'],'y':_0x524abf[_0x40ef96(0x48d)]['y']}:null;return{'kind':_0x524abf['kind'],'unitType':_0x18d812,'unitId':_0x524abf[_0x40ef96(0x452)],'subUnitId':_0x524abf[_0x40ef96(0x419)],'selectedIds':Array[_0x40ef96(0x465)](_0x524abf[_0x40ef96(0x287)])?_0x524abf[_0x40ef96(0x287)][_0x40ef96(0x1d0)](_0x118850=>typeof _0x118850==_0x40ef96(0x461)):[],'focusedId':typeof _0x524abf[_0x40ef96(0x1ff)]=='string'?_0x524abf[_0x40ef96(0x1ff)]:null,'pointer':_0x554b51};}function be(_0x135ffc,_0x121c00,_0x19df8d){const _0x22ed55=_0x5217db;return{'kind':_0x121c00,'unitType':_0x135ffc,'unitId':_0x19df8d[_0x22ed55(0x452)],'subUnitId':_0x19df8d[_0x22ed55(0x419)],'selectedIds':Array[_0x22ed55(0x2b4)](_0x19df8d[_0x22ed55(0x287)]),'focusedId':_0x19df8d['focusedId'],'pointer':_0x19df8d[_0x22ed55(0x48d)]?{..._0x19df8d[_0x22ed55(0x48d)]}:null};}let R=class extends t['RxDisposable']{constructor(_0x16187e,_0x264c3b,_0x4a61d8,_0x1e652f,_0x5e9506,_0x55ed1c){const _0x4318b1=_0x5217db;super(),this[_0x4318b1(0x452)]=_0x16187e,this[_0x4318b1(0x2f0)]=_0x264c3b,this[_0x4318b1(0x3e0)]=_0x4a61d8,this[_0x4318b1(0x274)]=_0x1e652f,this['_memberService']=_0x5e9506,this[_0x4318b1(0x424)]=_0x55ed1c,b(this,'_online',!0x1),b(this,_0x4318b1(0x1ca),!0x1);}get[_0x5217db(0x4b2)](){const _0x4ba1d0=_0x5217db;return this[_0x4ba1d0(0x3e0)]['unitType'];}[_0x5217db(0x249)](){const _0x4da8bc=_0x5217db;this[_0x4da8bc(0x1b8)](),super[_0x4da8bc(0x249)]();}[_0x5217db(0x244)](){const _0x47f459=_0x5217db;this['_initialized']||(this['_initialized']=!0x0,this[_0x47f459(0x2f0)][_0x47f459(0x390)]['pipe']((0x0,r[_0x47f459(0x2a5)])(this[_0x47f459(0x2a3)]))['subscribe'](_0x379a4c=>{const _0x3c544a=_0x47f459;if(_0x379a4c===e['SessionStatus'][_0x3c544a(0x21e)]){this[_0x3c544a(0x404)]=!0x0;let _0x1aacec=this[_0x3c544a(0x3e0)][_0x3c544a(0x21b)](this['unitId']);_0x1aacec&&this[_0x3c544a(0x459)](_0x1aacec);}else this['_online']=!0x1,this[_0x3c544a(0x1b8)]();}),this[_0x47f459(0x2f0)]['event$'][_0x47f459(0x4a4)]((0x0,r[_0x47f459(0x2a5)])(this[_0x47f459(0x2a3)]))[_0x47f459(0x468)](_0x4c4c23=>{const _0x530f83=_0x47f459;_e(_0x4c4c23)?this[_0x530f83(0x2af)](_0x4c4c23):ve(_0x4c4c23)&&this['_removeRemotePresence'](_0x4c4c23[_0x530f83(0x4c4)][_0x530f83(0x285)]);}),this[_0x47f459(0x3e0)][_0x47f459(0x42d)][_0x47f459(0x4a4)]((0x0,r[_0x47f459(0x1d0)])(_0x2e58ad=>this[_0x47f459(0x404)]&&_0x2e58ad['unitId']===this['unitId']),(0x0,r[_0x47f459(0x3fd)])(_0x1bbdd7=>(0x0,r[_0x47f459(0x251)])(_0x1bbdd7[_0x47f459(0x493)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x47f459(0x2a5)])(this[_0x47f459(0x2a3)]))[_0x47f459(0x468)](_0x5d7b32=>this['_sendLocalPresence'](_0x5d7b32)));}['_sendLocalPresence'](_0x247c65){const _0x204433=_0x5217db;let _0x41483b=this[_0x204433(0x2f0)][_0x204433(0x1be)]();if(!_0x41483b||!this[_0x204433(0x404)])return;let _0x42c3bc={'eventID':l[_0x204433(0x2aa)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x204433(0x452)],'memberID':_0x41483b,'selection':JSON[_0x204433(0x339)](be(this[_0x204433(0x4b2)],this[_0x204433(0x3e0)]['presenceKind'],_0x247c65))}};this['_session'][_0x204433(0x47e)](_0x42c3bc,this['unitId'])[_0x204433(0x27f)](()=>void 0x0);}[_0x5217db(0x2af)](_0x40dc8c){const _0x15984d=_0x5217db;let {memberID:_0x48ddf9,selection:_0x3d38d1}=_0x40dc8c['data'];if(_0x48ddf9===this[_0x15984d(0x2f0)][_0x15984d(0x1be)]())return;let _0x12b0d0=ye(_0x3d38d1,this[_0x15984d(0x4b2)]);if(!_0x12b0d0||_0x12b0d0[_0x15984d(0x28b)]!==this['_adapter'][_0x15984d(0x42c)]||_0x12b0d0[_0x15984d(0x4b2)]!==this[_0x15984d(0x4b2)]||_0x12b0d0[_0x15984d(0x452)]!==this[_0x15984d(0x452)])return;let _0x358a7e=this[_0x15984d(0x2b2)]['getMember'](this[_0x15984d(0x452)],_0x48ddf9),_0x38a1d6={'unitId':_0x12b0d0[_0x15984d(0x452)],'subUnitId':_0x12b0d0['subUnitId'],'selectedIds':_0x12b0d0[_0x15984d(0x287)],'focusedId':_0x12b0d0['focusedId'],'pointer':_0x12b0d0[_0x15984d(0x48d)],'memberId':_0x48ddf9,'color':this[_0x15984d(0x274)][_0x15984d(0x319)](_0x48ddf9),'name':(_0x358a7e==null?void 0x0:_0x358a7e[_0x15984d(0x36e)])??_0x48ddf9};this['_commandService'][_0x15984d(0x2b5)](T['id'],{'unitType':this[_0x15984d(0x4b2)],'update':{'type':_0x15984d(0x1ce),'state':_0x38a1d6}})[_0x15984d(0x27f)](()=>void 0x0);}[_0x5217db(0x2b3)](_0x14f97e){const _0xe561bd=_0x5217db;this['_commandService'][_0xe561bd(0x2b5)](T['id'],{'unitType':this[_0xe561bd(0x4b2)],'update':{'type':_0xe561bd(0x2e9),'unitId':this['unitId'],'memberId':_0x14f97e}})[_0xe561bd(0x27f)](()=>void 0x0);}[_0x5217db(0x1b8)](){const _0x41a7c7=_0x5217db;this[_0x41a7c7(0x424)][_0x41a7c7(0x2b5)](T['id'],{'unitType':this[_0x41a7c7(0x4b2)],'update':{'type':'clear','unitId':this['unitId']}})[_0x41a7c7(0x27f)](()=>void 0x0);}};R=S([x(0x3,(0x0,t[_0x5217db(0x298)])(D)),x(0x4,(0x0,t['Inject'])(e[_0x5217db(0x260)])),x(0x5,(0x0,t['Inject'])(t[_0x5217db(0x31c)]))],R);let z=class extends t[_0x5217db(0x25d)]{constructor(_0xd7911,_0x54c27c,_0x26c012,_0x383f9c){const _0x4aeabf=_0x5217db;super(),this[_0x4aeabf(0x2ae)]=_0xd7911,this[_0x4aeabf(0x303)]=_0x54c27c,this[_0x4aeabf(0x2e4)]=_0x26c012,this[_0x4aeabf(0x238)]=_0x383f9c,b(this,_0x4aeabf(0x291),!0x1),b(this,_0x4aeabf(0x2b8),new Map()),b(this,_0x4aeabf(0x223),new Map()),b(this,_0x4aeabf(0x356),new Map()),this[_0x4aeabf(0x372)]();}['dispose'](){const _0x8385f9=_0x5217db;this[_0x8385f9(0x291)]=!0x0,this[_0x8385f9(0x356)]['forEach'](_0x43e99a=>_0x43e99a[_0x8385f9(0x249)]()),this['_adapterDisposables'][_0x8385f9(0x235)](),this[_0x8385f9(0x2b8)][_0x8385f9(0x309)](_0x541464=>_0x541464['dispose']()),this[_0x8385f9(0x2b8)][_0x8385f9(0x235)](),this[_0x8385f9(0x223)][_0x8385f9(0x235)](),super['dispose']();}[_0x5217db(0x372)](){const _0x2605e4=_0x5217db;this[_0x2605e4(0x238)][_0x2605e4(0x2a9)][_0x2605e4(0x4a4)]((0x0,r[_0x2605e4(0x2a5)])(this[_0x2605e4(0x2a3)]))[_0x2605e4(0x468)](_0x1558db=>this[_0x2605e4(0x23c)](_0x1558db));}[_0x5217db(0x23c)](_0x44db5b){const _0x3fdf0e=_0x5217db;let _0x8799fe=new Set(_0x44db5b[_0x3fdf0e(0x3fe)](_0xdaffd=>_0xdaffd[_0x3fdf0e(0x4b2)]));this['_adapterDisposables']['forEach']((_0x121c23,_0x3910d6)=>{const _0x578ec1=_0x3fdf0e;_0x8799fe[_0x578ec1(0x4ac)](_0x3910d6)||(_0x121c23[_0x578ec1(0x249)](),this[_0x578ec1(0x356)][_0x578ec1(0x2a0)](_0x3910d6),this[_0x578ec1(0x4bb)](_0x3910d6));}),_0x44db5b['forEach'](_0x440159=>{const _0x47e19e=_0x3fdf0e;this['_adapterDisposables'][_0x47e19e(0x4ac)](_0x440159['unitType'])||this[_0x47e19e(0x34c)](_0x440159);});}[_0x5217db(0x34c)](_0x1a3012){const _0x465f66=_0x5217db;let _0x1ac0a8=new t[(_0x465f66(0x49d))]();this[_0x465f66(0x356)][_0x465f66(0x1ce)](_0x1a3012[_0x465f66(0x4b2)],_0x1ac0a8),_0x1ac0a8[_0x465f66(0x374)](_0x1a3012[_0x465f66(0x386)]()),this[_0x465f66(0x2ae)][_0x465f66(0x472)](_0x1a3012['unitType'])[_0x465f66(0x309)](_0x491eee=>this['_startEntity'](_0x491eee[_0x465f66(0x2c5)](),_0x1a3012)[_0x465f66(0x27f)](()=>void 0x0));let _0x4bd928=this['_univerInstanceService'][_0x465f66(0x3f5)](_0x1a3012['unitType'])[_0x465f66(0x468)](({unit:_0x26cd41})=>this['_startEntity'](_0x26cd41[_0x465f66(0x2c5)](),_0x1a3012)[_0x465f66(0x27f)](()=>void 0x0));_0x1ac0a8[_0x465f66(0x374)]((0x0,t['toDisposable'])(()=>_0x4bd928[_0x465f66(0x40e)]()));let _0xa2747e=this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1a3012[_0x465f66(0x4b2)])[_0x465f66(0x468)](_0x445f10=>this['_disposeEntity'](_0x445f10['getUnitId']()));_0x1ac0a8['add']((0x0,t['toDisposable'])(()=>_0xa2747e[_0x465f66(0x40e)]()));}async[_0x5217db(0x31d)](_0x16a2be,_0x5104ab){const _0x17de6e=_0x5217db;if(this[_0x17de6e(0x2b8)][_0x17de6e(0x4ac)](_0x16a2be)||this[_0x17de6e(0x223)][_0x17de6e(0x4ac)](_0x16a2be))return;let _0x559e7f={};this[_0x17de6e(0x223)][_0x17de6e(0x1ce)](_0x16a2be,_0x559e7f);let _0x412bcc=await this[_0x17de6e(0x2e4)][_0x17de6e(0x338)](_0x16a2be)[_0x17de6e(0x27f)](_0x225be1=>{const _0x45ec71=_0x17de6e;throw this[_0x45ec71(0x223)]['get'](_0x16a2be)===_0x559e7f&&this[_0x45ec71(0x223)][_0x45ec71(0x2a0)](_0x16a2be),_0x225be1;});if(this[_0x17de6e(0x291)]||this[_0x17de6e(0x223)][_0x17de6e(0x438)](_0x16a2be)!==_0x559e7f||this['_adapterRegistry'][_0x17de6e(0x438)](_0x5104ab['unitType'])!==_0x5104ab){this[_0x17de6e(0x223)][_0x17de6e(0x438)](_0x16a2be)===_0x559e7f&&this['_pendingEntities'][_0x17de6e(0x2a0)](_0x16a2be);return;}let _0x16637f=this['_injector']['createInstance'](R,_0x16a2be,_0x412bcc,_0x5104ab);_0x16637f[_0x17de6e(0x244)](),this[_0x17de6e(0x223)][_0x17de6e(0x2a0)](_0x16a2be),this[_0x17de6e(0x2b8)][_0x17de6e(0x1ce)](_0x16a2be,_0x16637f);}['_disposeEntity'](_0x231c66){const _0x177e00=_0x5217db;this['_pendingEntities']['delete'](_0x231c66);let _0x15a9fc=this['_entities']['get'](_0x231c66);_0x15a9fc&&(_0x15a9fc[_0x177e00(0x249)](),this['_entities'][_0x177e00(0x2a0)](_0x231c66));}[_0x5217db(0x4bb)](_0x4d490c){const _0x599e49=_0x5217db;this[_0x599e49(0x2ae)][_0x599e49(0x472)](_0x4d490c)[_0x599e49(0x309)](_0x41410b=>this[_0x599e49(0x223)][_0x599e49(0x2a0)](_0x41410b['getUnitId']())),Array[_0x599e49(0x2b4)](this[_0x599e49(0x2b8)][_0x599e49(0x211)]())['forEach'](([_0x32d570,_0x10a12d])=>{const _0x364063=_0x599e49;_0x10a12d[_0x364063(0x4b2)]===_0x4d490c&&this['_disposeEntity'](_0x32d570);});}};z=S([x(0x0,t[_0x5217db(0x49c)]),x(0x1,(0x0,t[_0x5217db(0x298)])(t[_0x5217db(0x231)])),x(0x2,(0x0,t[_0x5217db(0x298)])(e[_0x5217db(0x487)])),x(0x3,(0x0,t[_0x5217db(0x298)])(n[_0x5217db(0x394)]))],z);const B={'toast':'!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','actionButton':'!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end'},xe={'title':_0x5217db(0x48a),'content':'collaboration-client-ui.conflict.content','type':_0x5217db(0x270)},Se={'permission_rejected':{'title':_0x5217db(0x405),'content':_0x5217db(0x2d3),'type':'error'},'license_unit_type_rejected':{'title':_0x5217db(0x311),'content':_0x5217db(0x351),'type':_0x5217db(0x270)},'remote_revert':{'title':'collaboration-client-ui.remoteRevert.title','content':_0x5217db(0x330),'type':_0x5217db(0x35f)}};let V=class extends t[_0x5217db(0x4b5)]{constructor(_0x422cd2,_0x510807,_0x19d8b7,_0x5c1119,_0x330cef,_0x156fff,_0x1f6478,_0x507bb8){const _0x311928=_0x5217db;var _0x17c4d4;super(),this[_0x311928(0x331)]=_0x422cd2,this[_0x311928(0x23f)]=_0x510807,this[_0x311928(0x1cc)]=_0x19d8b7,this[_0x311928(0x289)]=_0x5c1119,this[_0x311928(0x3d4)]=_0x330cef,this[_0x311928(0x34f)]=_0x156fff,this[_0x311928(0x2d4)]=_0x1f6478,this['_configService']=_0x507bb8,b(this,'_conflictNotification',null),b(this,_0x311928(0x485),new Set()),b(this,_0x311928(0x38b),new Map()),b(this,_0x311928(0x1d9),new Map()),this['_setupBeforeClosingHandler'](),this[_0x311928(0x45d)](),this[_0x311928(0x2fc)](),((_0x17c4d4=this[_0x311928(0x292)]['getConfig']('collaboration-client-ui.config'))==null?void 0x0:_0x17c4d4['enableDefaultConflictUI'])!==!0x1&&this['_initConflictHandling']();}[_0x5217db(0x249)](){const _0x58d17e=_0x5217db;var _0x104baf;(_0x104baf=this['_conflictNotification'])==null||_0x104baf[_0x58d17e(0x249)](),this['_conflictNotification']=null;for(let _0x38cbbe of[this[_0x58d17e(0x38b)],this['_editingConnectionsExceededNotices']])_0x38cbbe[_0x58d17e(0x309)](_0x4d1172=>_0x4d1172['dispose']()),_0x38cbbe[_0x58d17e(0x235)]();super[_0x58d17e(0x249)]();}[_0x5217db(0x2fc)](){const _0x1da83a=_0x5217db;let _0x3395b3=_0xd34bd0=>{const _0x477280=_0x575d;let _0x8f011c=new t['DisposableCollection']();_0x8f011c[_0x477280(0x374)]((0x0,t[_0x477280(0x3d9)])(_0xd34bd0[_0x477280(0x31a)][_0x477280(0x468)]({'next':_0x2d1b99=>{const _0x1e4019=_0x477280;_0x2d1b99[_0x1e4019(0x469)]>=0x4e20&&this[_0x1e4019(0x2dc)](this[_0x1e4019(0x38b)],_0xd34bd0[_0x1e4019(0x328)],'collaboration-client-ui.session.collaboration-timeout'),_0x2d1b99['reason']===_0x1e4019(0x392)&&this[_0x1e4019(0x2dc)](this['_editingConnectionsExceededNotices'],_0xd34bd0[_0x1e4019(0x328)],_0x1e4019(0x267));},'complete':()=>{const _0x41aefb=_0x477280;this[_0x41aefb(0x25e)](_0xd34bd0[_0x41aefb(0x328)]),_0x8f011c[_0x41aefb(0x249)]();}}))),_0x8f011c[_0x477280(0x374)]((0x0,t[_0x477280(0x3d9)])(_0xd34bd0['status$'][_0x477280(0x468)](_0x2a4dfd=>{const _0x24933e=_0x477280;_0x2a4dfd!==e[_0x24933e(0x297)][_0x24933e(0x467)]&&_0x2a4dfd!==e[_0x24933e(0x297)]['AWAITING_WITH_PENDING']&&this[_0x24933e(0x25e)](_0xd34bd0[_0x24933e(0x328)]);}))),this['disposeWithMe'](_0x8f011c);};this['_collaborationController'][_0x1da83a(0x3ff)]()[_0x1da83a(0x309)](_0x3395b3),this[_0x1da83a(0x219)]((0x0,t['toDisposable'])(this[_0x1da83a(0x2d4)][_0x1da83a(0x3a6)][_0x1da83a(0x468)](_0x3395b3)));}[_0x5217db(0x2dc)](_0x4d2445,_0x2d80a7,_0x1c07dd){const _0x217d27=_0x5217db;_0x4d2445['has'](_0x2d80a7)||_0x4d2445['set'](_0x2d80a7,this['_notificationService'][_0x217d27(0x2a1)]({'title':this[_0x217d27(0x34f)]['t'](_0x1c07dd),'type':_0x217d27(0x35f),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}['_removeAwaitingNotices'](_0x3fde96){const _0x3e1de4=_0x5217db;for(let _0x3737c2 of[this['_saveTimedOutNotices'],this[_0x3e1de4(0x1d9)]]){var _0x4b05f4;(_0x4b05f4=_0x3737c2[_0x3e1de4(0x438)](_0x3fde96))==null||_0x4b05f4['dispose'](),_0x3737c2[_0x3e1de4(0x2a0)](_0x3fde96);}}[_0x5217db(0x3ed)](){const _0x12077e=_0x5217db;this[_0x12077e(0x219)](this[_0x12077e(0x331)]['registerBeforeClose'](()=>{const _0x2e8e62=_0x12077e;if(this[_0x2e8e62(0x23f)]['saveTaskMap'][_0x2e8e62(0x26e)])return this[_0x2e8e62(0x34f)]['t'](_0x2e8e62(0x489));}));}[_0x5217db(0x3d2)](){const _0x3ef44d=_0x5217db;let _0x2ac6ba=_0x5aa8af=>{const _0xa92157=_0x575d;this[_0xa92157(0x219)]((0x0,t[_0xa92157(0x3d9)])(_0x5aa8af[_0xa92157(0x455)][_0xa92157(0x468)](_0x4b11af=>this[_0xa92157(0x29c)](_0x4b11af))));};this[_0x3ef44d(0x2d4)][_0x3ef44d(0x3ff)]()[_0x3ef44d(0x309)](_0x2ac6ba),this[_0x3ef44d(0x219)]((0x0,t[_0x3ef44d(0x3d9)])(this[_0x3ef44d(0x2d4)][_0x3ef44d(0x3a6)][_0x3ef44d(0x468)](_0x2ac6ba)));}[_0x5217db(0x29c)](_0x5c888b){const _0x2d4ef0=_0x5217db;if(!_0x5c888b[_0x2d4ef0(0x45b)])return;let _0xbbaa50=Se[_0x5c888b[_0x2d4ef0(0x401)]]??xe;this[_0x2d4ef0(0x436)]({'title':this[_0x2d4ef0(0x34f)]['t'](_0xbbaa50['title']),'content':this['_localeService']['t'](_0xbbaa50['content']),'type':_0xbbaa50[_0x2d4ef0(0x2ad)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':B,'action':{'label':this['_localeService']['t'](_0x2d4ef0(0x497)),'onClick':_0x8dd3ad=>{const _0x40c4da=_0x2d4ef0;_0x8dd3ad[_0x40c4da(0x342)](),this[_0x40c4da(0x450)]();}}});}[_0x5217db(0x450)](){const _0x3a69e6=_0x5217db;window['location'][_0x3a69e6(0x246)]();}['_initEvent'](){const _0x49e9fa=_0x5217db;this[_0x49e9fa(0x219)](this[_0x49e9fa(0x1cc)]['event$'][_0x49e9fa(0x468)](_0x33b07d=>{const _0x1090ee=_0x49e9fa;_0x33b07d['id']===e[_0x1090ee(0x435)][_0x1090ee(0x245)]&&this[_0x1090ee(0x289)]['show']({'type':a[_0x1090ee(0x20f)][_0x1090ee(0x3fc)],'content':this[_0x1090ee(0x34f)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x33b07d['id']===e[_0x1090ee(0x435)]['CLOSE_ROOM']&&this[_0x1090ee(0x289)][_0x1090ee(0x2a1)]({'type':a[_0x1090ee(0x20f)][_0x1090ee(0x3fc)],'content':this['_localeService']['t'](_0x1090ee(0x2f3))}),_0x33b07d['id']===e['CollaborationUIEventId'][_0x1090ee(0x2f6)]&&this[_0x1090ee(0x241)](),_0x33b07d['id']===e[_0x1090ee(0x435)][_0x1090ee(0x2f8)]&&_0x33b07d[_0x1090ee(0x328)]&&this[_0x1090ee(0x1f6)](_0x33b07d[_0x1090ee(0x328)],_0x33b07d['userId']??''),_0x33b07d['id']===e['CollaborationUIEventId'][_0x1090ee(0x2e1)]&&this['_messageService'][_0x1090ee(0x2a1)]({'type':a[_0x1090ee(0x20f)][_0x1090ee(0x3fc)],'content':this[_0x1090ee(0x34f)]['t'](_0x33b07d['data']||'')}),_0x33b07d['id']===e[_0x1090ee(0x435)][_0x1090ee(0x481)]&&this['_messageService']['show']({'type':a[_0x1090ee(0x20f)][_0x1090ee(0x3fc)],'content':this[_0x1090ee(0x34f)]['t']('collaboration-client-ui.session.will-retry')}),_0x33b07d['id']===e[_0x1090ee(0x435)][_0x1090ee(0x4a8)]&&this[_0x1090ee(0x289)]['show']({'type':a['MessageType'][_0x1090ee(0x38f)],'content':this['_localeService']['t'](_0x1090ee(0x3cf))}),_0x33b07d['id']===e[_0x1090ee(0x435)][_0x1090ee(0x30e)]&&this['_messageService'][_0x1090ee(0x2a1)]({'type':a[_0x1090ee(0x20f)]['Error'],'content':this['_localeService']['t'](_0x1090ee(0x28f))});}));}[_0x5217db(0x241)](){const _0x5d5207=_0x5217db;this['_replaceConflictNotification']({'title':this[_0x5d5207(0x34f)]['t'](_0x5d5207(0x48a)),'content':this[_0x5d5207(0x34f)]['t'](_0x5d5207(0x1bf)),'type':_0x5d5207(0x440),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x5217db(0x1f6)](_0x54586e,_0x13e6d0){const _0x159a7d=_0x5217db;this[_0x159a7d(0x436)]({'title':this[_0x159a7d(0x34f)]['t'](_0x159a7d(0x48a)),'content':this[_0x159a7d(0x34f)]['t'](_0x159a7d(0x44e)),'type':_0x159a7d(0x270),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':B,'action':{'label':this['_localeService']['t'](_0x159a7d(0x3b8)),'onClick':_0xcf19ea=>{const _0xa36ac4=_0x159a7d;_0xcf19ea[_0xa36ac4(0x342)](),this[_0xa36ac4(0x1f8)](_0x54586e,_0x13e6d0);}}});}[_0x5217db(0x1f8)](_0x18aca3,_0x575d2d){const _0x529a6d=_0x5217db;let _0x1c472a=_0x18aca3+':'+(_0x575d2d??'');this[_0x529a6d(0x485)][_0x529a6d(0x4ac)](_0x1c472a)||(this[_0x529a6d(0x485)][_0x529a6d(0x374)](_0x1c472a),this['_showConflictProcessingNotification'](),this[_0x529a6d(0x23f)][_0x529a6d(0x1d3)](_0x18aca3,_0x575d2d)['then'](()=>this[_0x529a6d(0x450)]())['catch'](()=>this[_0x529a6d(0x1f6)](_0x18aca3,_0x575d2d))[_0x529a6d(0x30c)](()=>this[_0x529a6d(0x485)][_0x529a6d(0x2a0)](_0x1c472a)));}[_0x5217db(0x436)](_0x57e605){const _0x2e52e8=_0x5217db;var _0x3cf124;(_0x3cf124=this['_conflictNotification'])==null||_0x3cf124[_0x2e52e8(0x249)](),this['_conflictNotification']=this[_0x2e52e8(0x3d4)][_0x2e52e8(0x2a1)](_0x57e605);}};V=S([x(0x0,n[_0x5217db(0x395)]),x(0x1,e['ILocalCacheService']),x(0x2,(0x0,t[_0x5217db(0x298)])(e[_0x5217db(0x37f)])),x(0x3,n[_0x5217db(0x49e)]),x(0x4,n[_0x5217db(0x1f7)]),x(0x5,(0x0,t[_0x5217db(0x298)])(t[_0x5217db(0x378)])),x(0x6,(0x0,t[_0x5217db(0x298)])(e[_0x5217db(0x261)])),x(0x7,t[_0x5217db(0x462)])],V);let H=class{constructor(_0x566255,_0x12134e){const _0x330143=_0x5217db;this['_transformService']=_0x566255,this[_0x330143(0x34a)]=_0x12134e;}['transformIMECache'](_0x41069f){const _0x101f1b=_0x5217db;this[_0x101f1b(0x33e)](_0x41069f),this[_0x101f1b(0x2c4)](_0x41069f);}['transformRemoteChangeset'](_0x2a510d){const _0x293f6e=_0x5217db;let {unitID:_0x260e5d}=_0x2a510d,{redoCache:_0x50e1b1}=this[_0x293f6e(0x34a)][_0x293f6e(0x1ba)](_0x260e5d)[_0x293f6e(0x445)](f['DocIMEInputManagerService'])[_0x293f6e(0x44c)]();if(_0x50e1b1[_0x293f6e(0x29e)]===0x0)return _0x2a510d;let _0x13b858=t[_0x293f6e(0x3ec)][_0x293f6e(0x203)](_0x2a510d[_0x293f6e(0x1c8)][0x0]);for(let _0x55f22a=0x0;_0x55f22a<_0x50e1b1[_0x293f6e(0x29e)];_0x55f22a++){let _0x35ed1c={'id':_0x293f6e(0x4bf),'params':{..._0x50e1b1[_0x55f22a]}},_0xe0d196=this['_transformService']['transformMutation'](_0x13b858,_0x35ed1c,!0x1);if((0x0,l[_0x293f6e(0x3ca)])(_0xe0d196))throw _0xe0d196[_0x293f6e(0x270)];_0x13b858=_0xe0d196['m1Prime'];}return{...t[_0x293f6e(0x3ec)][_0x293f6e(0x203)](_0x2a510d),'mutations':[_0x13b858]};}[_0x5217db(0x33e)](_0x236ae9){const _0x53deb1=_0x5217db;let {unitID:_0x14b5c1}=_0x236ae9,_0x3548c5=this['_renderManagerService'][_0x53deb1(0x1ba)](_0x14b5c1)[_0x53deb1(0x445)](f[_0x53deb1(0x1b6)]),{undoCache:_0x610fae,redoCache:_0x4b4631}=_0x3548c5[_0x53deb1(0x44c)]();if(_0x610fae['length']===0x0||_0x4b4631['length']===0x0)return;let _0x2e3b73=[],_0x36d93b=[],_0x5eeab7=t[_0x53deb1(0x3ec)][_0x53deb1(0x203)](_0x236ae9[_0x53deb1(0x1c8)][0x0]),_0xf53c3=t[_0x53deb1(0x3ec)][_0x53deb1(0x203)](_0x236ae9['mutations'][0x0]);for(let _0x4bed4b=_0x610fae['length']-0x1;_0x4bed4b>=0x0;_0x4bed4b--){let _0x147b03={'id':_0x53deb1(0x4bf),'params':{..._0x610fae[_0x4bed4b]}},_0x52ef3b={'id':'doc.mutation.rich-text-editing','params':{..._0x4b4631[_0x4bed4b]}},_0x6e421d=this['_transformService'][_0x53deb1(0x3de)](_0x5eeab7,_0x147b03,!0x1),_0xc3df51=this['_transformService'][_0x53deb1(0x3de)](_0xf53c3,_0x52ef3b,!0x1);if((0x0,l[_0x53deb1(0x3ca)])(_0x6e421d))throw _0x6e421d[_0x53deb1(0x270)];if((0x0,l[_0x53deb1(0x3ca)])(_0xc3df51))throw _0xc3df51['error'];_0x2e3b73[_0x53deb1(0x2a7)](_0x6e421d[_0x53deb1(0x2c7)][_0x53deb1(0x3d7)]),_0x36d93b[_0x53deb1(0x2a7)](_0xc3df51[_0x53deb1(0x2c7)][_0x53deb1(0x3d7)]),_0x5eeab7=_0x6e421d['m1Prime'],_0xf53c3=_0xc3df51[_0x53deb1(0x402)];}_0x3548c5[_0x53deb1(0x2bf)]({'undoCache':_0x2e3b73,'redoCache':_0x36d93b});}[_0x5217db(0x2c4)](_0x118fb3){const _0x29eef3=_0x5217db;let {unitID:_0xf741f0}=_0x118fb3,_0x144bb4=this[_0x29eef3(0x34a)][_0x29eef3(0x1ba)](_0xf741f0)['with'](f[_0x29eef3(0x1b6)]),_0x86a2b3=_0x144bb4[_0x29eef3(0x2ca)]();if(_0x86a2b3==null)return;let _0x2e1ff4=[{'id':_0x29eef3(0x4bf),'params':{'unitId':_0x118fb3[_0x29eef3(0x328)],'actions':null,'textRanges':[_0x86a2b3]}}],_0x23986d=this['_transformService'][_0x29eef3(0x456)](_0x118fb3,_0x2e1ff4);if(!(0x0,l[_0x29eef3(0x326)])(_0x23986d))throw _0x23986d[_0x29eef3(0x270)];let _0x45887e=_0x23986d[_0x29eef3(0x2c7)][0x0]['params'][_0x29eef3(0x3a9)];Array[_0x29eef3(0x465)](_0x45887e)&&_0x45887e[_0x29eef3(0x29e)]&&_0x144bb4[_0x29eef3(0x3e9)](_0x45887e[0x0]);}};H=S([x(0x0,l[_0x5217db(0x21c)]),x(0x1,p[_0x5217db(0x3a7)])],H);let U=class{constructor(_0x3602c0,_0x16bfb8,_0x57dadb){const _0x3f21ee=_0x5217db;this[_0x3f21ee(0x303)]=_0x3602c0,this[_0x3f21ee(0x344)]=_0x16bfb8,this['_docStateChangeManagerService']=_0x57dadb;}[_0x5217db(0x323)](_0x39fecc){const _0x109ab8=_0x5217db;this[_0x109ab8(0x243)](_0x39fecc);}['transformRemoteChangeset'](_0x85c81e){const _0x20a44a=_0x5217db;let {unitID:_0xc03735}=_0x85c81e,{collaboration:_0x593c6c}=this[_0x20a44a(0x305)][_0x20a44a(0x35b)](_0xc03735);if(_0x593c6c[_0x20a44a(0x29e)]===0x0)return _0x85c81e;let _0xcc1011=t[_0x20a44a(0x3ec)][_0x20a44a(0x203)](_0x85c81e[_0x20a44a(0x1c8)][0x0]);for(let _0x150599=0x0;_0x150599<_0x593c6c[_0x20a44a(0x29e)];_0x150599++){let _0x461dff={'id':_0x20a44a(0x4bf),'params':{'unitId':_0x593c6c[_0x150599][_0x20a44a(0x452)],..._0x593c6c[_0x150599][_0x20a44a(0x3a5)]}},_0x4303c=this[_0x20a44a(0x344)]['transformMutation'](_0xcc1011,_0x461dff,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x4303c))throw _0x4303c['error'];_0xcc1011=_0x4303c[_0x20a44a(0x402)];}return{...t[_0x20a44a(0x3ec)][_0x20a44a(0x203)](_0x85c81e),'mutations':[_0xcc1011]};}[_0x5217db(0x243)](_0x3c8dcb){const _0x58b3a8=_0x5217db;let {unitID:_0x514192}=_0x3c8dcb,{history:_0x44966d,collaboration:_0x110dce}=this[_0x58b3a8(0x305)][_0x58b3a8(0x35b)](_0x514192);if(_0x44966d[_0x58b3a8(0x29e)]===0x0&&_0x110dce['length']===0x0)return;let _0x17c114=[],_0x319bce=[],_0x21e53f=t[_0x58b3a8(0x3ec)][_0x58b3a8(0x203)](_0x3c8dcb['mutations'][0x0]),_0x2cdeb8=t[_0x58b3a8(0x3ec)][_0x58b3a8(0x203)](_0x3c8dcb[_0x58b3a8(0x1c8)][0x0]);for(let _0x5630d7=_0x44966d['length']-0x1;_0x5630d7>=0x0;_0x5630d7--){let _0x44dc70={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x44966d[_0x5630d7]['unitId'],..._0x44966d[_0x5630d7][_0x58b3a8(0x379)]}},_0x2ad07f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x44966d[_0x5630d7][_0x58b3a8(0x452)],..._0x44966d[_0x5630d7][_0x58b3a8(0x3a5)]}},_0x386e9f=this[_0x58b3a8(0x344)][_0x58b3a8(0x3de)](_0x21e53f,_0x44dc70,!0x1),_0x21fd1b=this[_0x58b3a8(0x344)][_0x58b3a8(0x3de)](_0x2cdeb8,_0x2ad07f,!0x1);if((0x0,l[_0x58b3a8(0x3ca)])(_0x386e9f))throw _0x386e9f[_0x58b3a8(0x270)];if((0x0,l[_0x58b3a8(0x3ca)])(_0x21fd1b))throw _0x21fd1b[_0x58b3a8(0x270)];_0x17c114[_0x58b3a8(0x2a7)]({..._0x44966d[_0x5630d7],'undoState':_0x386e9f[_0x58b3a8(0x2c7)]['params'],'redoState':_0x21fd1b[_0x58b3a8(0x2c7)][_0x58b3a8(0x3d7)]}),_0x21e53f=_0x386e9f[_0x58b3a8(0x402)],_0x2cdeb8=_0x21fd1b[_0x58b3a8(0x402)];}_0x21e53f=t[_0x58b3a8(0x3ec)][_0x58b3a8(0x203)](_0x3c8dcb[_0x58b3a8(0x1c8)][0x0]),_0x2cdeb8=t[_0x58b3a8(0x3ec)][_0x58b3a8(0x203)](_0x3c8dcb[_0x58b3a8(0x1c8)][0x0]);for(let _0x1969f6=_0x110dce[_0x58b3a8(0x29e)]-0x1;_0x1969f6>=0x0;_0x1969f6--){let _0x2c6a5c={'id':_0x58b3a8(0x4bf),'params':{'unitId':_0x110dce[_0x1969f6]['unitId'],..._0x110dce[_0x1969f6][_0x58b3a8(0x379)]}},_0x4c1089={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x110dce[_0x1969f6][_0x58b3a8(0x452)],..._0x110dce[_0x1969f6][_0x58b3a8(0x3a5)]}},_0x215923=this[_0x58b3a8(0x344)]['transformMutation'](_0x21e53f,_0x2c6a5c,!0x1),_0x21c7de=this['_transformService'][_0x58b3a8(0x3de)](_0x2cdeb8,_0x4c1089,!0x1);if((0x0,l[_0x58b3a8(0x3ca)])(_0x215923))throw _0x215923[_0x58b3a8(0x270)];if((0x0,l['isTransformMutationFailure'])(_0x21c7de))throw _0x21c7de['error'];_0x319bce[_0x58b3a8(0x2a7)]({..._0x110dce[_0x1969f6],'undoState':_0x215923['m2Prime'][_0x58b3a8(0x3d7)],'redoState':_0x21c7de[_0x58b3a8(0x2c7)][_0x58b3a8(0x3d7)]}),_0x21e53f=_0x215923[_0x58b3a8(0x402)],_0x2cdeb8=_0x21c7de['m1Prime'];}this[_0x58b3a8(0x305)][_0x58b3a8(0x24d)](_0x514192,{'history':_0x17c114,'collaboration':_0x319bce});}};U=S([x(0x0,(0x0,t[_0x5217db(0x298)])(t[_0x5217db(0x231)])),x(0x1,l[_0x5217db(0x21c)]),x(0x2,(0x0,t[_0x5217db(0x298)])(d[_0x5217db(0x20b)]))],U);let W=class{constructor(_0x26d0bb,_0x1f9b16){const _0x5db434=_0x5217db;this[_0x5db434(0x389)]=_0x26d0bb,this['_transformService']=_0x1f9b16;}[_0x5217db(0x348)](_0x19c7f7){const _0x1d1e20=_0x5217db;var _0x1afb02;let _0xdb287c=this[_0x1d1e20(0x389)][_0x1d1e20(0x3a3)]()??[],_0x2424a1=this['_docSelectionManagerService'][_0x1d1e20(0x41a)]();if(_0xdb287c[_0x1d1e20(0x29e)]===0x0||_0x2424a1==null)return null;let _0x9a8768=_0x19c7f7[_0x1d1e20(0x328)],_0x54fc2c=[{'id':_0x1d1e20(0x4bf),'params':{'unitId':_0x9a8768,'actions':null,'textRanges':_0xdb287c}}],_0x5f4688=this['_transformService'][_0x1d1e20(0x456)](_0x19c7f7,_0x54fc2c);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x5f4688))throw _0x5f4688[_0x1d1e20(0x270)];let _0x56e77f=(_0x1afb02=_0x5f4688[_0x1d1e20(0x2c7)][0x0])==null?void 0x0:_0x1afb02[_0x1d1e20(0x3d7)],_0x518026=_0x56e77f&&typeof _0x56e77f==_0x1d1e20(0x2b7)&&_0x1d1e20(0x3a9)in _0x56e77f?_0x56e77f['textRanges']:null;if(!Te(_0x518026))return null;let _0x7af6d5=Ce(_0x19c7f7[_0x1d1e20(0x1c8)]['some'](_0x5930a2=>G(_0x5930a2['params']))?_0x518026[_0x1d1e20(0x1d0)](_0x5deafb=>!('tableId'in _0x5deafb)):_0x518026,{..._0x2424a1,'options':_0x2424a1['options']?{..._0x2424a1[_0x1d1e20(0x22e)],'wholeDocument':!0x1}:void 0x0}),_0x1424d6={'unitId':_0x9a8768,'subUnitId':_0x9a8768};this[_0x1d1e20(0x389)][_0x1d1e20(0x381)](_0x7af6d5,_0x1424d6);let _0x2458d8=!0x0;return{'commit':()=>{_0x2458d8=!0x1;},'rollback':()=>{const _0x246655=_0x1d1e20;_0x2458d8&&(_0x2458d8=!0x1,this[_0x246655(0x389)][_0x246655(0x381)](_0x2424a1,_0x1424d6));}};}};W=S([x(0x0,(0x0,t[_0x5217db(0x298)])(d[_0x5217db(0x3b7)])),x(0x1,l[_0x5217db(0x21c)])],W);function Ce(_0x5d224f,_0x177b65){const _0xeb606=_0x5217db;let _0x106524=[],_0x35b2eb=[];for(let _0x25c5de of _0x5d224f)we(_0x25c5de)?_0x35b2eb['push'](_0x25c5de):_0x106524[_0xeb606(0x385)](_0x25c5de);return{..._0x177b65,'textRanges':_0x106524,'rectRanges':_0x35b2eb};}function we(_0x22c063){const _0x5b2e5c=_0x5217db;return _0x5b2e5c(0x3f4)in _0x22c063;}function Te(_0xfc3c64){const _0xe43938=_0x5217db;return Array[_0xe43938(0x465)](_0xfc3c64)&&_0xfc3c64[_0xe43938(0x434)](_0x3579bb=>typeof _0x3579bb==_0xe43938(0x2b7)&&!!_0x3579bb&&_0xe43938(0x3c3)in _0x3579bb&&_0xe43938(0x1c2)in _0x3579bb);}function G(_0x2d98c1){const _0x468cdf=_0x5217db;return _0x2d98c1===_0x468cdf(0x382)?!0x0:Array[_0x468cdf(0x465)](_0x2d98c1)?_0x2d98c1[_0x468cdf(0x2d1)](_0x52736e=>G(_0x52736e)):!_0x2d98c1||typeof _0x2d98c1!=_0x468cdf(0x2b7)?!0x1:Object[_0x468cdf(0x1db)](_0x2d98c1)['some'](_0x42835a=>G(_0x42835a));}let K=class extends t[_0x5217db(0x4b5)]{constructor(_0x150d99,_0x1a38b4,_0x65aefb,_0x56dd7f,_0x3b48b0,_0x38e518,_0x402a81){const _0x2156b7=_0x5217db;super(),this[_0x2156b7(0x2d4)]=_0x150d99,this[_0x2156b7(0x361)]=_0x1a38b4,this[_0x2156b7(0x322)]=_0x65aefb,this[_0x2156b7(0x3af)]=_0x56dd7f,this['_docSyncEditingCollabCursorService']=_0x3b48b0,this[_0x2156b7(0x289)]=_0x38e518,this[_0x2156b7(0x34f)]=_0x402a81,b(this,_0x2156b7(0x3c4),new r[(_0x2156b7(0x286))](e[_0x2156b7(0x297)]['NOT_COLLAB'])),this['_initEntityListener']();}[_0x5217db(0x4b0)](){const _0x46ec16=_0x5217db;this[_0x46ec16(0x219)](this[_0x46ec16(0x2d4)]['entityInit$'][_0x46ec16(0x468)](_0x5e90aa=>{const _0x4fb6e5=_0x46ec16;_0x5e90aa instanceof e[_0x4fb6e5(0x412)]&&_0x5e90aa[_0x4fb6e5(0x268)]({'onTransformIME':_0x12f235=>this[_0x4fb6e5(0x361)][_0x4fb6e5(0x1c4)](_0x12f235),'onTransformState':_0x55d449=>this['_docTransformStateCacheService'][_0x4fb6e5(0x323)](_0x55d449),'onPrepareTransformSelections':_0x502b0e=>this[_0x4fb6e5(0x3af)][_0x4fb6e5(0x348)](_0x502b0e),'onSyncEditingCollabCursor':_0x20ff14=>this[_0x4fb6e5(0x1e5)][_0x4fb6e5(0x3bb)](_0x20ff14),'onTransformRemoteChangesetByIMECache':_0x1b23a=>this['_docTransformIMECacheService'][_0x4fb6e5(0x499)](_0x1b23a),'onTransformRemoteChangesetByStateCache':_0x194d00=>this[_0x4fb6e5(0x322)][_0x4fb6e5(0x499)](_0x194d00)});}));}};K=S([x(0x0,(0x0,t[_0x5217db(0x298)])(e[_0x5217db(0x261)])),x(0x1,(0x0,t[_0x5217db(0x298)])(H)),x(0x2,(0x0,t[_0x5217db(0x298)])(U)),x(0x3,(0x0,t[_0x5217db(0x298)])(W)),x(0x4,(0x0,t[_0x5217db(0x298)])(O)),x(0x5,n['IMessageService']),x(0x6,(0x0,t[_0x5217db(0x298)])(t['LocaleService']))],K);let q=class extends t[_0x5217db(0x4b5)]{constructor(_0x4c8007,_0x346950,_0x2e6211,_0x1e4fc0){const _0x379252=_0x5217db;super(),this['_injector']=_0x4c8007,this[_0x379252(0x431)]=_0x346950,this[_0x379252(0x3d3)]=_0x2e6211,this[_0x379252(0x377)]=_0x1e4fc0,b(this,_0x379252(0x315),void 0x0),this[_0x379252(0x372)]();}[_0x5217db(0x372)](){const _0x2fed9c=_0x5217db;this['_initWindowErrorListener'](),this[_0x2fed9c(0x278)](),this[_0x2fed9c(0x3c8)](),this[_0x2fed9c(0x327)]();}[_0x5217db(0x327)](){const _0x59300b=_0x5217db;this['disposeWithMe'](this[_0x59300b(0x377)][_0x59300b(0x2e8)]['subscribe'](_0x498b45=>{const _0x227970=_0x59300b;this[_0x227970(0x315)]=_0x498b45==null?void 0x0:_0x498b45[_0x227970(0x285)];}));}[_0x5217db(0x397)](){const _0x260afc=_0x5217db;let _0x311351=_0x5bcf45=>{const _0x1c5d28=_0x575d;var _0x154217;this['_uploadLog'](_0x1c5d28(0x270),'[Window\x20Error]:\x20'+_0x5bcf45['message']+_0x1c5d28(0x1b4)+_0x5bcf45[_0x1c5d28(0x39e)]+':'+_0x5bcf45[_0x1c5d28(0x3e6)]+':'+_0x5bcf45[_0x1c5d28(0x200)]+'\x0a'+(((_0x154217=_0x5bcf45['error'])==null?void 0x0:_0x154217[_0x1c5d28(0x1ef)])||''));};window[_0x260afc(0x1b7)](_0x260afc(0x270),_0x311351),this[_0x260afc(0x219)](()=>{const _0x1c8fbf=_0x260afc;window['removeEventListener'](_0x1c8fbf(0x270),_0x311351);});}[_0x5217db(0x278)](){const _0xa93afa=_0x5217db;let _0x6e2e2f=_0xd3512d=>{const _0x133e57=_0x575d;this['_uploadLog'](_0x133e57(0x270),_0x133e57(0x410)+_0xd3512d['reason']);};window[_0xa93afa(0x1b7)](_0xa93afa(0x1e4),_0x6e2e2f),this[_0xa93afa(0x219)](()=>{window['removeEventListener']('unhandledrejection',_0x6e2e2f);});}['_monkeyPatchLogService'](){const _0x3a6d85=_0x5217db;let _0x570891=this[_0x3a6d85(0x3d3)][_0x3a6d85(0x270)][_0x3a6d85(0x2c2)](this[_0x3a6d85(0x3d3)]);this[_0x3a6d85(0x3d3)][_0x3a6d85(0x270)]=(..._0x38eee1)=>{const _0x1e06bb=_0x3a6d85;let _0x5e0bfc=_0x38eee1[_0x1e06bb(0x3fe)](_0x13a438=>_0x13a438 instanceof Error?_0x13a438['message']+'\x0a'+_0x13a438[_0x1e06bb(0x1ef)]:String(_0x13a438))[_0x1e06bb(0x4b1)]('\x20');this[_0x1e06bb(0x276)]('error',_0x1e06bb(0x3eb)+_0x5e0bfc),_0x570891(..._0x38eee1);},this[_0x3a6d85(0x219)](()=>{const _0x4ea094=_0x3a6d85;this[_0x4ea094(0x3d3)]['error']=_0x570891;});}[_0x5217db(0x276)](_0x573a25,_0x31235a){const _0x2a181c=_0x5217db;try{let _0x40951a={'userId':this[_0x2a181c(0x315)],'logLabel':_0x573a25,'content':_0x31235a};this['_httpService']['post'](_0x2a181c(0x365),{'body':_0x40951a})[_0x2a181c(0x27f)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t[_0x5217db(0x298)])(t['Injector'])),x(0x1,(0x0,t['Inject'])(m['HTTPService'])),x(0x2,t[_0x5217db(0x281)]),x(0x3,(0x0,t[_0x5217db(0x298)])(e['CollaborationSessionService']))],q);function Ee({state$:_0x3b93b7}){const _0x4a2f60=_0x5217db;let _0x99dae6=(0x0,n[_0x4a2f60(0x24c)])(_0x3b93b7,null,!0x0);return _0x99dae6?(0x0,c[_0x4a2f60(0x46a)])(_0x4a2f60(0x325),{'data-u-comp':_0x4a2f60(0x312),'role':'alert','className':_0x4a2f60(0x2ea),'children':[(0x0,c[_0x4a2f60(0x360)])(o[_0x4a2f60(0x213)],{'className':_0x4a2f60(0x2e0)}),(0x0,c[_0x4a2f60(0x360)])(_0x4a2f60(0x302),{'children':_0x99dae6[_0x4a2f60(0x447)]}),(0x0,c[_0x4a2f60(0x360)])(a['Button'],{'size':'small','variant':_0x4a2f60(0x37c),'onClick':()=>window[_0x4a2f60(0x3f6)][_0x4a2f60(0x246)](),'children':_0x99dae6[_0x4a2f60(0x409)]})]}):null;}const De=_0x5217db(0x4c2);let J=class extends t[_0x5217db(0x4b5)]{constructor(_0x57f609,_0x7a2164,_0x2d8224,_0x1a3e87,_0x3a511b){const _0x2769a3=_0x5217db;super(),this[_0x2769a3(0x1c7)]=_0x57f609,this[_0x2769a3(0x289)]=_0x7a2164,this['_localeService']=_0x2d8224,this['_injector']=_0x1a3e87,b(this,'_timeoutState$',new r[(_0x2769a3(0x286))](null)),b(this,_0x2769a3(0x25f),new Set()),b(this,_0x2769a3(0x1fa),new Map()),b(this,'timeoutState$',this[_0x2769a3(0x1f1)][_0x2769a3(0x1c1)]());let _0x269a5d=()=>(0x0,s[_0x2769a3(0x27e)])(Ee,{'state$':this[_0x2769a3(0x225)]});this[_0x2769a3(0x219)](_0x3a511b[_0x2769a3(0x2f9)](n[_0x2769a3(0x427)][_0x2769a3(0x307)],()=>(0x0,n[_0x2769a3(0x242)])(_0x269a5d,this[_0x2769a3(0x303)]))),this[_0x2769a3(0x219)](this[_0x2769a3(0x1c7)][_0x2769a3(0x477)][_0x2769a3(0x468)](_0x2591e1=>{const _0x5696c0=_0x2769a3;_0x2591e1[_0x5696c0(0x309)](_0x45fbb0=>this[_0x5696c0(0x38d)](_0x45fbb0));}));}['dispose'](){const _0x4d2184=_0x5217db;this[_0x4d2184(0x25f)][_0x4d2184(0x309)](_0x3aedbf=>this['_messageService'][_0x4d2184(0x2e9)](_0x3aedbf)),this[_0x4d2184(0x25f)][_0x4d2184(0x235)](),this['_blockProgressWatches'][_0x4d2184(0x309)](({timeoutId:_0x3aecc7})=>clearTimeout(_0x3aecc7)),this[_0x4d2184(0x1fa)][_0x4d2184(0x235)](),this['_timeoutState$'][_0x4d2184(0x416)](),super['dispose']();}[_0x5217db(0x38d)](_0x5dfdb5){const _0x447688=_0x5217db;let _0x50c28c=''+De+_0x5dfdb5[_0x447688(0x452)];_0x5dfdb5[_0x447688(0x3f0)]===l['SnapshotLoadStage'][_0x447688(0x4c1)]?(this[_0x447688(0x1dc)](_0x5dfdb5[_0x447688(0x452)]),this[_0x447688(0x317)](_0x5dfdb5[_0x447688(0x452)]),this[_0x447688(0x289)][_0x447688(0x2e9)](_0x50c28c),this[_0x447688(0x25f)][_0x447688(0x2a0)](_0x50c28c)):_0x5dfdb5['stage']===l[_0x447688(0x4a3)]['ERROR']?(this[_0x447688(0x1dc)](_0x5dfdb5['unitId']),this[_0x447688(0x317)](_0x5dfdb5[_0x447688(0x452)]),this[_0x447688(0x289)][_0x447688(0x2a1)]({'id':_0x50c28c,'type':a[_0x447688(0x20f)]['Error'],'content':this[_0x447688(0x34f)]['t'](_0x447688(0x3cf))}),this[_0x447688(0x25f)][_0x447688(0x2a0)](_0x50c28c)):_0x5dfdb5[_0x447688(0x3f0)]!==l['SnapshotLoadStage']['LOADING_BLOCKS']||_0x5dfdb5[_0x447688(0x3ae)]<=0xa?(this[_0x447688(0x1dc)](_0x5dfdb5['unitId']),this[_0x447688(0x289)][_0x447688(0x2e9)](_0x50c28c),this[_0x447688(0x25f)][_0x447688(0x2a0)](_0x50c28c)):this[_0x447688(0x466)](_0x5dfdb5)||(this[_0x447688(0x289)]['show']({'id':_0x50c28c,'type':a[_0x447688(0x20f)][_0x447688(0x265)],'duration':0x1/0x0,'content':this[_0x447688(0x34f)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x5dfdb5['loadedBlocks']+'/'+_0x5dfdb5[_0x447688(0x3ae)]}),this[_0x447688(0x25f)][_0x447688(0x374)](_0x50c28c));}[_0x5217db(0x466)](_0x218ad1){const _0x4d6b3d=_0x5217db;let _0x5142ea=this[_0x4d6b3d(0x1fa)][_0x4d6b3d(0x438)](_0x218ad1[_0x4d6b3d(0x452)]);if((_0x5142ea==null?void 0x0:_0x5142ea['loadedBlocks'])===_0x218ad1['loadedBlocks'])return _0x5142ea['timedOut'];this[_0x4d6b3d(0x1dc)](_0x218ad1[_0x4d6b3d(0x452)]);let _0x16c6ce=setTimeout(()=>{const _0x44ec52=_0x4d6b3d;let _0x1efa6d=this[_0x44ec52(0x1fa)][_0x44ec52(0x438)](_0x218ad1[_0x44ec52(0x452)]);if(!_0x1efa6d||_0x1efa6d[_0x44ec52(0x248)]!==_0x16c6ce)return;_0x1efa6d[_0x44ec52(0x4ba)]=!0x0;let _0x440c8c=''+De+_0x218ad1['unitId'];this[_0x44ec52(0x289)][_0x44ec52(0x2e9)](_0x440c8c),this[_0x44ec52(0x25f)][_0x44ec52(0x2a0)](_0x440c8c),this['_timeoutState$'][_0x44ec52(0x39d)]({'unitId':_0x218ad1[_0x44ec52(0x452)],'content':this['_localeService']['t'](_0x44ec52(0x31b),String(_0x218ad1[_0x44ec52(0x408)]),String(_0x218ad1[_0x44ec52(0x3ae)])),'refreshLabel':this[_0x44ec52(0x34f)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this['_blockProgressWatches']['set'](_0x218ad1['unitId'],{'loadedBlocks':_0x218ad1['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x16c6ce}),!0x1;}[_0x5217db(0x1dc)](_0x73a031){const _0x171f76=_0x5217db;let _0x3a065b=this[_0x171f76(0x1fa)]['get'](_0x73a031);_0x3a065b&&(clearTimeout(_0x3a065b['timeoutId']),this[_0x171f76(0x1fa)]['delete'](_0x73a031),this[_0x171f76(0x317)](_0x73a031));}[_0x5217db(0x317)](_0xaa6996){const _0x9bd7e4=_0x5217db;var _0x248e19;((_0x248e19=this[_0x9bd7e4(0x1f1)][_0x9bd7e4(0x45f)])==null?void 0x0:_0x248e19[_0x9bd7e4(0x452)])===_0xaa6996&&this[_0x9bd7e4(0x1f1)][_0x9bd7e4(0x39d)](null);}};J=S([x(0x0,(0x0,t['Inject'])(l[_0x5217db(0x3e8)])),x(0x1,n[_0x5217db(0x49e)]),x(0x2,(0x0,t[_0x5217db(0x298)])(t[_0x5217db(0x378)])),x(0x3,(0x0,t[_0x5217db(0x298)])(t['Injector'])),x(0x4,n[_0x5217db(0x230)])],J);let Y=class extends t['Disposable']{constructor(_0xcdc909,_0x9bf3a1,_0x13d59e,_0x4b663b,_0x213158){const _0x5e832a=_0x5217db;var _0x273b18;super(),this[_0x5e832a(0x292)]=_0xcdc909,this[_0x5e832a(0x4a2)]=_0x9bf3a1,this[_0x5e832a(0x1e6)]=_0x13d59e,this['_logService']=_0x4b663b,this[_0x5e832a(0x2c8)]=_0x213158,b(this,_0x5e832a(0x37a),new Map()),b(this,'_saveTaskMap',new Map()),b(this,'_activeSaveTaskMap',new Map()),b(this,'_disabled',!0x1),this[_0x5e832a(0x27a)]=!((_0x273b18=this[_0x5e832a(0x292)][_0x5e832a(0x2cc)](e[_0x5e832a(0x2c0)]))!=null&&_0x273b18[_0x5e832a(0x254)]);}[_0x5217db(0x32c)](){const _0x394719=_0x5217db;this[_0x394719(0x27a)]=!0x0;}[_0x5217db(0x4ae)](){this['_disabled']=!0x1;}get[_0x5217db(0x2fe)](){const _0x49776e=_0x5217db;let _0x36e74b=new Map(this['_saveTaskMap']);return this['_activeSaveTaskMap'][_0x49776e(0x309)]((_0x2cc02b,_0x2d79d1)=>{_0x36e74b['has'](_0x2d79d1)||_0x36e74b['set'](_0x2d79d1,0x0);}),_0x36e74b;}[_0x5217db(0x249)](){const _0x389301=_0x5217db;this[_0x389301(0x20a)]||(super[_0x389301(0x249)](),this['_disabled']=!0x0,this[_0x389301(0x470)]()['catch'](_0x4f3fcd=>this[_0x389301(0x3d3)][_0x389301(0x270)](_0x4f3fcd)));}async[_0x5217db(0x227)](_0x333e35,_0x341b3f){const _0x40780c=_0x5217db;if(this[_0x40780c(0x27a)])return null;let _0x52dd57=this[_0x40780c(0x1f0)](_0x341b3f),_0x31427c=await this[_0x40780c(0x4a2)][_0x40780c(0x26f)]((0x0,e[_0x40780c(0x208)])(_0x333e35,_0x52dd57));return(_0x31427c==null?void 0x0:_0x31427c[_0x40780c(0x328)])===_0x333e35&&this[_0x40780c(0x45c)](_0x31427c['userId'])===_0x52dd57?_0x31427c:null;}async[_0x5217db(0x2d5)](_0x56b5ec,_0x47849b,_0xbaf428){const _0x7a1f80=_0x5217db;let _0x3f90a5=this[_0x7a1f80(0x1f0)](_0xbaf428),_0x36d916=(0x0,e[_0x7a1f80(0x208)])(_0x56b5ec,_0x3f90a5),_0x10fd8a=this[_0x7a1f80(0x4a2)][_0x7a1f80(0x33f)](_0x36d916,{..._0x47849b,'unitID':_0x56b5ec,'userId':_0x3f90a5});return this[_0x7a1f80(0x1d1)](_0x36d916,_0x10fd8a),!!await _0x10fd8a;}async[_0x5217db(0x1bd)](_0x6716be,_0x4c2b55,_0x45211f){const _0x1035a2=_0x5217db;let _0x21ec5c=this[_0x1035a2(0x1f0)](_0x45211f),_0x344f2f=(0x0,e[_0x1035a2(0x208)])(_0x6716be,_0x21ec5c),_0x56b961=this[_0x1035a2(0x37a)]['get'](_0x344f2f)??await this['_localStorageService']['getItem'](_0x344f2f);if(!_0x56b961||this[_0x1035a2(0x45c)](_0x56b961['userId'])!==_0x21ec5c||_0x56b961[_0x1035a2(0x328)]!==_0x6716be)return;let _0x131b96=Date[_0x1035a2(0x1e7)](),_0x1f3d7e=new Date(_0x131b96)[_0x1035a2(0x45a)]();await this['_localStorageService'][_0x1035a2(0x33f)](_0x344f2f+_0x1035a2(0x1fc)+_0x131b96,{'reason':_0x4c2b55,'createdAt':_0x1f3d7e,'data':_0x56b961});}async[_0x5217db(0x1d3)](_0x132704,_0x1d4294){const _0x553175=_0x5217db;let _0x59a112=this[_0x553175(0x1f0)](_0x1d4294),_0x3e6ac3=(0x0,e[_0x553175(0x208)])(_0x132704,_0x59a112),_0x24a8f4=this[_0x553175(0x1c3)]['get'](_0x3e6ac3);_0x24a8f4!==void 0x0&&(window[_0x553175(0x318)](_0x24a8f4),this[_0x553175(0x1c3)][_0x553175(0x2a0)](_0x3e6ac3));let _0x52747f=this[_0x553175(0x47f)][_0x553175(0x438)](_0x3e6ac3);_0x52747f&&await Promise[_0x553175(0x1d6)](_0x52747f),this['_cachedData'][_0x553175(0x2a0)](_0x3e6ac3),await this[_0x553175(0x4a2)][_0x553175(0x253)](_0x3e6ac3);}[_0x5217db(0x36c)](_0x566b23,_0x41bfe8,_0x392219,_0x1bcc48,_0x5ad941){const _0x4a41b7=_0x5217db;if(this['_disposed'])return;let _0xaaee9a=this[_0x4a41b7(0x1f0)](_0x5ad941),_0x4621f4=(0x0,e['getLocalCacheKey'])(_0x566b23,_0xaaee9a),_0x48fd66=this[_0x4a41b7(0x1e6)][_0x4a41b7(0x422)](_0x566b23);this['_cachedData']['set'](_0x4621f4,{'unitID':_0x566b23,'userId':_0xaaee9a,'type':_0x41bfe8,'awaitingChangeset':_0x392219,'mutations':_0x1bcc48,'rev':_0x48fd66}),this['_saveTaskMap'][_0x4a41b7(0x4ac)](_0x4621f4)||this['_scheduleSaving'](_0x4621f4);}[_0x5217db(0x1f0)](_0x3a533f=((()=>{const _0x57888e=_0x5217db;var _0x3a2377;return(_0x3a2377=this[_0x57888e(0x2c8)][_0x57888e(0x275)]())==null?void 0x0:_0x3a2377['userID'];})())){const _0x13b7a9=_0x5217db;return this[_0x13b7a9(0x45c)](_0x3a533f);}['_normalizeUserId'](_0x3ee213){return _0x3ee213===''||_0x3ee213==null?void 0x0:_0x3ee213;}['_scheduleSaving'](_0x45f5e1){const _0x30cec4=_0x5217db;let _0x287b8a=this['_getSaveTimeout']();_0x287b8a===0x0?this['_saveCache'](_0x45f5e1)['catch'](_0x994275=>this[_0x30cec4(0x3d3)]['error'](_0x994275)):this['_saveTaskMap'][_0x30cec4(0x1ce)](_0x45f5e1,window[_0x30cec4(0x1e8)](()=>{const _0x5cd199=_0x30cec4;this[_0x5cd199(0x3ad)](_0x45f5e1)[_0x5cd199(0x27f)](_0x68dfd=>this['_logService']['error'](_0x68dfd));},_0x287b8a));}['_getSaveTimeout'](){const _0x11658c=_0x5217db;return this[_0x11658c(0x292)]['getConfig'](e['LOCAL_CACHE_INTERVAL_KEY'])??e[_0x11658c(0x20d)];}[_0x5217db(0x3ad)](_0x4f0da9){const _0x495c7c=_0x5217db;let _0x2152a5=this['_saveTaskMap'][_0x495c7c(0x438)](_0x4f0da9);_0x2152a5!==void 0x0&&window[_0x495c7c(0x318)](_0x2152a5);let _0x5d50cf=this[_0x495c7c(0x37a)][_0x495c7c(0x438)](_0x4f0da9);if(!_0x5d50cf)return Promise[_0x495c7c(0x46f)]();let _0x387c8d=this[_0x495c7c(0x47f)]['get'](_0x4f0da9),_0xcf760f=Promise['allSettled'](_0x387c8d?[..._0x387c8d]:[])[_0x495c7c(0x3ea)](()=>this['_localStorageService'][_0x495c7c(0x33f)](_0x4f0da9,_0x5d50cf))[_0x495c7c(0x3ea)](()=>{const _0x248ead=_0x495c7c;_0x2152a5!==void 0x0&&this[_0x248ead(0x1c3)]['get'](_0x4f0da9)===_0x2152a5&&(this[_0x248ead(0x1c3)][_0x248ead(0x2a0)](_0x4f0da9),!this[_0x248ead(0x20a)]&&this[_0x248ead(0x37a)][_0x248ead(0x438)](_0x4f0da9)!==_0x5d50cf&&this[_0x248ead(0x407)](_0x4f0da9));});return this['_trackActiveSaveTask'](_0x4f0da9,_0xcf760f),_0xcf760f;}[_0x5217db(0x1d1)](_0x15a424,_0x5c7d12){const _0x337ebd=_0x5217db;let _0xd6ca32=this[_0x337ebd(0x47f)][_0x337ebd(0x438)](_0x15a424);_0xd6ca32||(_0xd6ca32=new Set(),this[_0x337ebd(0x47f)][_0x337ebd(0x1ce)](_0x15a424,_0xd6ca32)),_0xd6ca32['add'](_0x5c7d12);let _0x1021e6=()=>{const _0x181cb5=_0x337ebd;_0xd6ca32[_0x181cb5(0x2a0)](_0x5c7d12),_0xd6ca32['size']===0x0&&this[_0x181cb5(0x47f)]['delete'](_0x15a424);};_0x5c7d12[_0x337ebd(0x3ea)](_0x1021e6,_0x1021e6);}async['exhaustSavingTask'](){const _0x4d142f=_0x5217db;let _0x136ac0=[...this[_0x4d142f(0x1c3)]['keys']()][_0x4d142f(0x3fe)](_0x5dcbf4=>this[_0x4d142f(0x3ad)](_0x5dcbf4));for(let _0x352003 of this[_0x4d142f(0x47f)][_0x4d142f(0x1db)]())_0x136ac0['push'](...[..._0x352003][_0x4d142f(0x3fe)](_0x2e27f3=>_0x2e27f3[_0x4d142f(0x3ea)](()=>void 0x0)));await Promise[_0x4d142f(0x464)](_0x136ac0);}};Y=S([x(0x0,t[_0x5217db(0x462)]),x(0x1,t[_0x5217db(0x3da)]),x(0x2,(0x0,t['Inject'])(l['RevisionService'])),x(0x3,t['ILogService']),x(0x4,(0x0,t[_0x5217db(0x298)])(t['UserManagerService']))],Y);var Oe=class extends t[_0x5217db(0x4b5)]{get[_0x5217db(0x250)](){const _0x51e594=_0x5217db;return this[_0x51e594(0x391)][_0x51e594(0x2b9)]();}constructor(){const _0x3e221b=_0x5217db;super(),b(this,_0x3e221b(0x391),new r[(_0x3e221b(0x286))](navigator[_0x3e221b(0x3b3)])),b(this,_0x3e221b(0x3fa),this[_0x3e221b(0x391)]['asObservable']()),this[_0x3e221b(0x20c)](),this[_0x3e221b(0x2de)]();}['dispose'](){const _0x3a1fe4=_0x5217db;super[_0x3a1fe4(0x249)](),this[_0x3a1fe4(0x391)][_0x3a1fe4(0x416)]();}[_0x5217db(0x2de)](){const _0x55f5a3=_0x5217db;this['disposeWithMe']((0x0,r[_0x55f5a3(0x228)])((0x0,r['fromEvent'])(window,_0x55f5a3(0x250)),(0x0,r[_0x55f5a3(0x3aa)])(document,_0x55f5a3(0x3f3)),(0x0,r[_0x55f5a3(0x3aa)])(window,'focus'),(0x0,r[_0x55f5a3(0x3aa)])(document,_0x55f5a3(0x304))[_0x55f5a3(0x4a4)]((0x0,r['map'])(()=>document[_0x55f5a3(0x383)]===_0x55f5a3(0x448)),(0x0,r[_0x55f5a3(0x1d0)])(_0x37c25e=>_0x37c25e)))[_0x55f5a3(0x4a4)]((0x0,r[_0x55f5a3(0x1d0)])(()=>navigator[_0x55f5a3(0x3b3)]))['subscribe'](()=>this['_online$'][_0x55f5a3(0x39d)](!0x0)));}[_0x5217db(0x20c)](){const _0x1011e0=_0x5217db;this[_0x1011e0(0x219)]((0x0,r[_0x1011e0(0x228)])((0x0,r[_0x1011e0(0x3aa)])(window,_0x1011e0(0x209)),(0x0,r[_0x1011e0(0x3aa)])(document,_0x1011e0(0x3b5)))[_0x1011e0(0x468)](()=>this['_online$']['next'](!0x1)));}};let X=class extends t['Plugin']{constructor(_0x2f7f2e=se,_0x345fc9,_0x33c308,_0x2d00ce,_0x2edebc){const _0x4e8a8a=_0x5217db;super(),this['_config']=_0x2f7f2e,this[_0x4e8a8a(0x34a)]=_0x345fc9,this['_injector']=_0x33c308,this[_0x4e8a8a(0x292)]=_0x2d00ce,this[_0x4e8a8a(0x424)]=_0x2edebc;let {..._0x40c060}=(0x0,t[_0x4e8a8a(0x228)])({},se,this[_0x4e8a8a(0x37e)]);this['_configService'][_0x4e8a8a(0x476)](_0x4e8a8a(0x484),_0x40c060);}[_0x5217db(0x22d)](){const _0x1675bf=_0x5217db;this['_registerDependencies'](),this[_0x1675bf(0x219)](this[_0x1675bf(0x424)][_0x1675bf(0x2e7)](T)),this[_0x1675bf(0x2e3)]();}[_0x5217db(0x2ef)](){const _0x40386e=_0x5217db;this[_0x40386e(0x1b9)]();}['_registerDependencies'](){const _0x258115=_0x5217db;var _0x18f40c;let _0x4b5433=[[D],[m['ISocketService'],{'useClass':m['WebSocketService']}],[e['ILocalCacheService'],{'useClass':Y}],[e['INetworkConditionService'],{'useClass':Oe}],[C],[V],[j],[z],[J]];this[_0x258115(0x37e)]['enableDocumentCollaborationUI']!==!0x1&&_0x4b5433[_0x258115(0x385)]([W],[H],[U],[O],[K],[E]),this['_config'][_0x258115(0x215)]&&_0x4b5433['push']([q]),(0x0,t[_0x258115(0x3e5)])(this[_0x258115(0x303)],(0x0,t['mergeOverrideWithDependencies'])(_0x4b5433,(_0x18f40c=this[_0x258115(0x37e)])==null?void 0x0:_0x18f40c[_0x258115(0x41b)]));}['_registerRenderDependencies'](){const _0xef7123=_0x5217db;this[_0xef7123(0x37e)][_0xef7123(0x460)]!==!0x1&&this[_0xef7123(0x219)](this[_0xef7123(0x34a)][_0xef7123(0x1d4)](t[_0xef7123(0x239)]['UNIVER_DOC'],[P])),this['disposeWithMe'](this[_0xef7123(0x34a)][_0xef7123(0x1d4)](t['UniverInstanceType']['UNIVER_SHEET'],[I]));}[_0x5217db(0x2e3)](){const _0x58b844=_0x5217db;(0x0,t[_0x58b844(0x45e)])(this[_0x58b844(0x303)],[[j],[z],[C],[V],[J]]),this[_0x58b844(0x37e)]['enableDocumentCollaborationUI']!==!0x1&&(0x0,t[_0x58b844(0x45e)])(this[_0x58b844(0x303)],[[K],[E]]),this[_0x58b844(0x37e)][_0x58b844(0x215)]&&(0x0,t['touchDependencies'])(this[_0x58b844(0x303)],[[q]]);}};b(X,_0x5217db(0x26b),_0x5217db(0x33c)),b(X,_0x5217db(0x2be),ae),b(X,_0x5217db(0x3bf),oe),X=S([(0x0,t[_0x5217db(0x366)])(u[_0x5217db(0x4b4)],d[_0x5217db(0x28e)],p[_0x5217db(0x2d8)],m[_0x5217db(0x4c0)],l[_0x5217db(0x38c)],f['UniverDocsUIPlugin'],e[_0x5217db(0x34e)]),x(0x1,p['IRenderManagerService']),x(0x2,(0x0,t[_0x5217db(0x298)])(t['Injector'])),x(0x3,t['IConfigService']),x(0x4,t[_0x5217db(0x31c)])],X);let Z=class extends e[_0x5217db(0x2e5)]{constructor(_0x387234,_0x442de1,_0xd8bb0,_0x6996ec,_0x4a1734){const _0x6748f5=_0x5217db;super(_0x387234,_0x442de1,_0xd8bb0,_0x6996ec,_0x4a1734),b(this,_0x6748f5(0x29d),new r[(_0x6748f5(0x30f))]()),this[_0x6748f5(0x219)](()=>{const _0x645e7f=_0x6748f5;this['_dispose$'][_0x645e7f(0x39d)](),this[_0x645e7f(0x29d)][_0x645e7f(0x416)]();});}async[_0x5217db(0x2ab)](_0x586bea){const _0x2b0acd=_0x5217db;let _0x11d0aa=await this[_0x2b0acd(0x222)](),_0x4dd8fe=this['_createSocketURL'](_0x586bea,_0x11d0aa);return this[_0x2b0acd(0x32f)](_0x4dd8fe);}[_0x5217db(0x218)](_0x2e9dc2,_0x4646f1){const _0xddaa8f=_0x5217db;let _0x43b5f4=typeof window>'u'?new URL(_0x2e9dc2):new URL(_0x2e9dc2,window[_0xddaa8f(0x3f6)][_0xddaa8f(0x42e)]);_0x43b5f4[_0xddaa8f(0x25c)][_0xddaa8f(0x1ce)](_0xddaa8f(0x4c5),_0x4646f1);let _0x54dddc=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xddaa8f(0x3f6)][_0xddaa8f(0x25b)]);return _0x54dddc[_0xddaa8f(0x438)](_0xddaa8f(0x406))&&_0x43b5f4[_0xddaa8f(0x25c)]['set'](_0xddaa8f(0x406),_0x54dddc[_0xddaa8f(0x438)](_0xddaa8f(0x406))),_0x43b5f4[_0xddaa8f(0x48e)]();}async[_0x5217db(0x222)](){const _0x3e5b2b=_0x5217db;var _0x3ca759;let _0x55b140=this[_0x3e5b2b(0x292)][_0x3e5b2b(0x2cc)](e[_0x3e5b2b(0x2c0)]),_0x50975b=(_0x55b140==null?void 0x0:_0x55b140[_0x3e5b2b(0x369)])??e[_0x3e5b2b(0x4a9)];return((_0x3ca759=(await(0x0,r['firstValueFrom'])(this[_0x3e5b2b(0x431)][_0x3e5b2b(0x237)](_0x3e5b2b(0x1eb),_0x50975b,{'headers':{'Content-Type':_0x3e5b2b(0x3b1)}})[_0x3e5b2b(0x4a4)]((0x0,r[_0x3e5b2b(0x1d0)])(_0x292b2d=>_0x292b2d[_0x3e5b2b(0x2ad)]===m[_0x3e5b2b(0x1c6)]['Response']),(0x0,r['timeout'])(0x4e20),(0x0,r[_0x3e5b2b(0x2a5)])(this['_dispose$']))))[_0x3e5b2b(0x3c1)])==null?void 0x0:_0x3ca759['ticket'])??'';}};Z=S([x(0x0,(0x0,t[_0x5217db(0x298)])(t['Injector'])),x(0x1,(0x0,t['Inject'])(m[_0x5217db(0x334)])),x(0x2,t[_0x5217db(0x462)]),x(0x3,t[_0x5217db(0x281)]),x(0x4,l['ISnapshotServerService'])],Z);let Q=class extends t['Disposable']{constructor(_0x450aa5,_0x336ceb,_0x45d9e1){const _0x397c78=_0x5217db;super(),this[_0x397c78(0x2f5)]=_0x450aa5,this[_0x397c78(0x431)]=_0x336ceb,this[_0x397c78(0x292)]=_0x45d9e1;}async[_0x5217db(0x2dd)](_0x5e6d13,_0x515d86,_0x55790d,..._0x1ace50){const _0x422fd0=_0x5217db;let _0x5b2680=this[_0x422fd0(0x2f5)]['getFocusedUnit']();if(!_0x5b2680)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x4d4e5f=(this[_0x422fd0(0x292)][_0x422fd0(0x2cc)](e['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY'])??e[_0x422fd0(0x206)])+'/'+_0x5e6d13+_0x422fd0(0x49a)+_0x515d86,_0x4ae90c={'scriptId':_0x5e6d13,'runId':new URL(window[_0x422fd0(0x3f6)][_0x422fd0(0x423)])[_0x422fd0(0x25c)][_0x422fd0(0x438)]('runId')??'','function':_0x515d86,'unitId':_0x5b2680[_0x422fd0(0x2c5)](),'argsOfFunction':JSON['stringify'](_0x1ace50),'invokeId':_0x55790d[_0x422fd0(0x411)]??'','executionId':_0x55790d[_0x422fd0(0x1e1)]??''};try{let _0x507262=await this[_0x422fd0(0x431)]['post'](_0x4d4e5f,{'body':_0x4ae90c});return _0x507262['body']['error']&&_0x507262[_0x422fd0(0x3c1)][_0x422fd0(0x270)][_0x422fd0(0x364)]!==v[_0x422fd0(0x33a)]['OK']?_0x422fd0(0x43c):_0x507262[_0x422fd0(0x3c1)][_0x422fd0(0x453)];}catch{return _0x422fd0(0x43c);}}};Q=S([x(0x0,t[_0x5217db(0x49c)]),x(0x1,(0x0,t[_0x5217db(0x298)])(m[_0x5217db(0x334)])),x(0x2,t[_0x5217db(0x462)])],Q);const ke=0x7530,$=_0x5217db(0x32a);function _0x1be8(){const _0x1d747a=['registerDependencies','lineno','_selfUnitIDs','SnapshotLoadingService','setActiveRange','then','[LogService\x20Error]:\x20','Tools','_setupBeforeClosingHandler','LoadingMultiIcon','NOT_COLLAB','stage','getAncestorScale','getDocumentSkeletonColumnPagePathInfo','resume','tableId','getTypeOfUnitAdded$','location','handleDeleteRangeMoveUp','max','getOffsetConfig','online$','constructor','Warning','throttle','map','getCollabEntities','cursorInfo$','reason','m1Prime','includes','_online','collaboration-client-ui.permission.title','runId','_scheduleSaving','loadedBlocks','refreshLabel','_drawAnchor','onPointerMove$','icon','DocumentSkeletonPageType','unsubscribe','_toggleOnline','[Unhandled\x20Rejection]:\x20','invokeId','DocCollaborationEntity','RefRangeService','source','clickable','complete','serializeRangeWithSheet','collab-text-anchor-','subUnitId','getSelectionInfo','override','eventID','blue.400','_getMergeRange','OFFLINE','handleIRemoveCol','18COzVXM','getCurrentRevOfUnit','href','_commandService','roomMembers$','handleInsertRangeMoveDown','BuiltInUIPart','Rectangle','_docSkeleton','_shapes','isEditing','presenceKind','localPresence$','origin','_anchorDot','useCallback','_httpService','hide','_docSkeletonManagerService','every','CollaborationUIEventId','_replaceConflictNotification','collaboration-client-ui.collabStatus.fetchMiss','get','_handleHeartbeatEvent','_stopBlinking','AWAITING_WITH_PENDING','Failed','status$','_draw','_themeService','loading','number','_getAnchorBounding','_heartbeatTimer','TEXT','with','width','content','visible','univer-m-0\x20univer-p-0','backgroundColor','InsertRangeMoveDownCommandId','getUndoRedoMutationParamsCache','evenodd','collaboration-client-ui.conflict.clearFailed','getCurrentUnitOfType','_reloadPage','SheetCollabCursorShape','unitId','result','univer-text-red-500','conflict$','transformMutationsWithChangeset','NO_OTHER_CLIENTS_EDITING','setOffsetY','_sendLocalPresence','toISOString','cacheCleared','_normalizeUserId','_initEvent','touchDependencies','value','enableDocumentCollaborationUI','string','IConfigService','_send','all','isArray','_watchBlockProgress','AWAITING','subscribe','elapsedMs','jsxs','TEXT_RANGE_LAYER_INDEX','canRenderAnchor','_cursorShapes','_toggleOffline','resolve','exhaustSavingTask','_blinkIntervalTimer','getAllUnitsForType','getCollabCursors$','_eventUnsubscribe','18750470RnEtAc','setConfig','state$','UNIVER_SHEET','FromArray','InsertRangeMoveRightCommandId','fillText','_handleEvent','function','send','_activeSaveTaskMap','throttleTime','SOCKET_FAILED_RETRY','EffectRefRangId','PENDING','collaboration-client-ui.config','_retryingConflictCacheUnitIDs','DOC_RANGE_TYPE','CollaborationSessionService','29458cJWpAp','collaboration-client-ui.collaboration.offline-data-not-saved','collaboration-client-ui.conflict.title','_id','closePath','pointer','toString','3609641sTIiZl','highlightSecond','RemoveColCommandId','_sheetSkeletonManagerService','shareInterval','rgb','sheetId','UNIVER_DOC','collaboration-client-ui.snapshotLoading.refresh','getCollabEntity$','transformRemoteChangeset','/run/','pageIndex','IUniverInstanceService','DisposableCollection','IMessageService','update','RECT','roomMembers','_localStorageService','SnapshotLoadStage','pipe','NodePositionConvertToCursor','true','FOOTER','SOCKET_FAILED','DEFAULT_WS_SESSION_TICKET_URL','_updateLocalCursor','getCoordRelativeToViewport','has','handleInsertCol','enableLocalCache','_showText','_initEntityListener','join','unitType','UnitStatus','UniverLicensePlugin','Disposable','BrowserCollaborationSocketService','fromEventSubject','disposeUnit','columnGroupId','timedOut','_disposeEntitiesForType','ColorKit','static',',\x200.2)','doc.mutation.rich-text-editing','UniverNetworkPlugin','COMPLETE','snapshot-loading-','_hovered','data','sessionTicket','FETCH_MISS','currentTheme$','\x20at\x20','endRow','DocIMEInputManagerService','addEventListener','_clearRemotePresences','_registerRenderDependencies','getRenderUnitById','fill','cursorInfo','backupOfflineData','getMemberID','collaboration-client-ui.conflict.processing','7628kXIlgj','asObservable','endOffset','_saveTaskMap','transformIMECache','getMember','HTTPEventType','_snapshotLoadingService','mutations','startsWith','_initialized','ThemeService','_collaborationUIEventService','indicator','set','_presenceAdapterRegistry','filter','_trackActiveSaveTask','getSheetObject','clearOfflineData','registerRenderModule','_labelPosition','allSettled','_initStatusListener','drawWith','_editingConnectionsExceededNotices','addClipboardHook','values','_clearBlockProgressWatch','tooltipKey','getTypeOfUnitDisposed$','collaboration-client-ui.collabStatus.offline','clsx','executionId','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','replace','unhandledrejection','_docSyncEditingCollabCursorService','_revisionService','now','setTimeout','RemoveRowCommandId','makeDirty','GET','getActiveSheet','WebBrowserSingleActiveUnitService','call','stack','_getUserId','_timeoutState$','_uiPartsService','newValue','HEADER','getUnitStatus$','_showConflictCacheClearFailedNotification','INotificationService','_retryConflictCacheClear','_registerPresenceStatusComponent','_blockProgressWatches','_hideTimer',':backup:','InsertColCommandId','lineTo','focusedId','colno','imageSourceType','9843012MuFIAd','deepClone','reconnect','_drawRectRange','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getCurrentSelections','getLocalCacheKey','offline','_disposed','DocStateChangeManagerService','_listenToOfflineEvent','LOCAL_CACHE_INTERVAL','symbol','MessageType','onPointerEnter$','entries','left','WarningIcon','save','enableFrontendLog','clearRemotePresences','spin','_createSocketURL','disposeWithMe','useMemo','getLocalPresence','ITransformService','univer-border-none\x20univer-bg-transparent','ONLINE','univer-text-orange-500','_pointerMoveDisposable','_textBubble','_getSessionTicket','_pendingEntities','univer-inline-flex\x20univer-items-center\x20univer-justify-center','timeoutState$','column','loadOfflineData','merge','jiqing.500','onCommandExecuted','_initCommandExecutedListener','_render','onStarting','options','setInterval','IUIPartsService','Injector','SYNCED','_presenceStatusRegistrations','_highlight','clear','collaboration-client-ui.collabStatus.notCollab','stream','_adapterRegistry','UniverInstanceType','getOwnPropertyDescriptor','ranges','_syncAdapters','registerRefRange','_handleHover','_localCacheService','slice','_showConflictProcessingNotification','connectInjector','_transformHistoryAndStateStack','init','OTHER_CLIENT_EDITING','reload','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','timeoutId','dispose','univer-appearance-none','univer-flex\x20univer-items-center\x20univer-justify-center','useObservable','setStateCache','startRow','SetTextSelectionsOperation','online','timer','toPrimitive','removeItem','enableOfflineEditing','handleIRemoveRow','collaboration-client-ui.collabStatus.synced','_cursor','IImageIoService','DeleteRangeMoveUpCommandId','_clearOtherTimers','search','searchParams','RxDisposable','_removeAwaitingNotices','_messageIds','MemberService','CollaborationController','_docClipboardService','storage','univer-text-green-500','Loading','getCoordByCell','collaboration-client-ui.license.editing-connections-exceeded','addHandlerCallback','generateRandomId','getMergeData','pluginName','UPDATE_CURSOR','iterator','size','getItem','error','SheetsSelectionsService','collabCursorState$','_labelHorizontalPosition','_colorAssignService','getCurrentUser','_uploadLog','_onCursorUpdate','_initUnhandledRejectionListener','addObjects','_disabled','text','_syncEditingCollabCursorService','DeleteRangeMoveLeftCommandId','createElement','catch','_removeCollabCursors','ILogService','_initStatusComponent','Tooltip','15000384BtNYda','memberID','BehaviorSubject','selectedIds','columnIndex','_messageService','runRefRangeMutations','kind','#FFF','fillStyle','UniverDocsPlugin','collaboration-client-ui.license.domain-rejected','_imageIoService','_isDisposed','_configService','_collabCursorState$','range','onPointerLeave$','getFocusedUnit','CollaborationStatus','Inject','bold\x2013px\x20Arial,\x20sans-serif','_getLighterColor','OnLineIcon','_onConflict','_dispose$','length','_handleLeaveEvent','delete','show','getCurrentSkeleton','dispose$','_getScale','takeUntil','univer-transition-all\x20univer-duration-200','unshift','_unitOnClients','adapters$','CollaborationEvent','createSocket','_color','type','_univerInstanceService','_handleCursorUpdate','_assignedColors','MoveRangeCommandId','_memberService','_removeRemotePresence','from','executeCommand','deserializeRangeWithSheet','object','_entities','getValue','getViewport','4255sprgPy','unit','_drawTextRange','packageName','setUndoRedoMutationParamsCache','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','labelPosition','bind','saveImage','_transformPreviousActiveRange','getUnitId','showText','m2Prime','_userManagerService','_onCursorDelete','getActiveRange','_scheduleClearOtherTimer','getConfig','22pwvQle','height','toStringTag','font','some','collab-rect-range-','collaboration-client-ui.permission.content','_collaborationController','saveOfflineData','OTHER_CLIENTS_EDITING','_blinkTimer','UniverRenderEnginePlugin','isFinite','collaboration-client-ui.collabStatus.syncing','_syncPresenceStatusComponents','_showAwaitingNotice','runOnServer','_listenToOnlineEvent','debounce','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','JOIN_ROOM_FAILED','currentSkeleton$','_initDependencies','_collabSessionService','CollaborationSocketService','hovered','registerCommand','socket$','remove','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','dark:focus:!univer-ring-offset-gray-800','red.300','_getSheetObject','Rect','onRendered','_session','pageType','flatMap','collaboration-client-ui.collaboration.closeRoom','rgba','_instanceService','CONFLICT_PROCESSING','Vector2','CONFLICT_CACHE_CLEAR_FAILED','registerComponent','COLORS','_ensureSubject','_initAwaitingNotices','combineLatest','saveTaskMap','switchMap','Shape','_handleJoinEvent','span','_injector','visibilitychange','_docStateChangeManagerService','_roomMembers$','GLOBAL','_cursors','forEach','memberId','defineProperty','finally','Unknown\x20user','LICENSE_DOMAIN_REJECTED','Subject','OffLineIcon','collaboration-client-ui.license.title','snapshot-loading-timeout','onMouseMove','subscribeEvent','_memberID','labelHorizontalPosition','_clearTimeoutState','clearTimeout','assignAColorForMemberID','changesetResend$','collaboration-client-ui.snapshotLoading.timeout','ICommandService','_startEntity','status','handleMoveRange','DesktopCollaborationStatusDisplayController','beginPath','_docTransformStateCacheService','transformStateCache','univer-h-8\x20univer-w-8\x20univer-rounded-lg','div','isTransformMutationsWithChangesetSuccess','_initUserListener','unitID','\x20-\x20','ACTIVE_UNIT_EVENT_CHANNEL','decorate','disableLocalCache','handleInsertRow','isInternalEditorID','_doCreateSocket','collaboration-client-ui.remoteRevert.content','_beforeCloseService','_scheduleHeartbeat','startColumn','HTTPService','RichTextEditingMutation','useDependency','_hover','requireSession','stringify','ErrorCode','getSkeleton','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getColorFromTheme','_transformUndoRedoStack','setItem','createInstance','setShapeProps','preventDefault','find','_transformService','button','_highlightSecond','_backgroundColor','prepareTransformSelections','collaboration-client-ui.collabStatus.conflict','_renderManagerService','findNodePositionByCharIndex','_bindAdapter','triggerDblclick','UniverCollaborationClientPlugin','_localeService','removeRemotePresence','collaboration-client-ui.license.unit-type-rejected','split','restore','colorClass','getScrollXYInfoByViewport','_adapterDisposables','handleInsertRangeMoveRight','parseInt','green.600','_collabCursorController','getStateCache','_name','_removeClearOtherTimer','getRangePointData','warning','jsx','_docTransformIMECacheService','_startSheetCollabCursor','_colorIndex','code','/universer-api/frontend/logs','DependentOn','editingUnit','toRgbString','wsSessionTicketUrl','InsertRowCommandId','color','updateOfflineData','5364729xnoHih','name','UniverCollaborationClientUIPlugin','USERS_LEAVE','canRenderSelection','_init','rgba(','add','offsetY','highlight','_collaborationSessionService','LocaleService','undoState','_cachedData','_isBlinkVisible','primary','getColor','_config','CollaborationUIEventService','_scene','replaceSelectionInfoWithoutRefresh','tableSource','visibilityState','setAlpha','push','activate','measureText','NodePositionConvertToRectRange','_docSelectionManagerService','sheetID','_saveTimedOutNotices','UniverCollaborationPlugin','_updateMessage','_unitStatus','Error','sessionStatus$','_online$','license_editing_connections_exceeded','univer-text-blue-500','IUnitPresenceUIAdapterRegistry','IBeforeCloseService','endColumn','_initWindowErrorListener','_lastPointer','_offsetY','polite','1.4.0','arc','next','filename','getSheetId','selection','collaboration-client-ui.collabClient.tooltip.reconnect','RegularPolygon','getDocRanges','HEADER_MENU','redoState','entityInit$','IRenderManagerService','83QkJmVI','textRanges','fromEvent','_document','SheetSkeletonManagerService','_saveCache','totalBlocks','_docTransformSelectionsService','min','application/json','debounceTime','onLine','CONFLICT','freeze','top','DocSelectionManagerService','collaboration-client-ui.conflict.retry','_initResize','_context','syncEditingCollabCursor','distinctUntilChanged','row','_range','version','_refreshCollabCursors','body','segmentPage','startOffset','_status$','resize','_cursorInfo$','clearInterval','_monkeyPatchLogService','bottom','isTransformMutationFailure','purple.300','SessionStatus','_updateCollabCursors','onTransformChange$','collaboration-client-ui.session.connection-failed','statusUIPart','black','_initConflictHandling','_logService','_notificationService','addObject','_entityInit$','params','SHEET_VIEWPORT_KEY','toDisposable','ILocalStorageService','_onRefRangeChange','i18nKey','key','transformMutation','event$','_adapter','_refRangeService','_initPresenceStatusComponents','_anchor','state'];_0x1be8=function(){return _0x1d747a;};return _0x1be8();}var Ae=class extends t[_0x5217db(0x4b5)]{constructor(){const _0x5a65d0=_0x5217db;super(),b(this,_0x5a65d0(0x48b),(0x0,t[_0x5a65d0(0x269)])()),b(this,'_selfUnitIDs',new Set()),b(this,_0x5a65d0(0x2a8),new Map()),b(this,_0x5a65d0(0x443),null),b(this,_0x5a65d0(0x25a),new Map()),b(this,_0x5a65d0(0x38e),new Map()),this[_0x5a65d0(0x372)]();}[_0x5217db(0x249)](){const _0x15dd99=_0x5217db;super['dispose'](),this[_0x15dd99(0x25a)][_0x15dd99(0x309)]((_0x58b16a,_0x105d4f)=>this[_0x15dd99(0x35d)](_0x105d4f)),this[_0x15dd99(0x443)]&&window[_0x15dd99(0x3c7)](this[_0x15dd99(0x443)]);}[_0x5217db(0x1f5)](_0x2bb55e){const _0x596133=_0x5217db;return this[_0x596133(0x2fb)](_0x2bb55e)[_0x596133(0x4a4)]((0x0,r[_0x596133(0x3bc)])());}[_0x5217db(0x367)](_0x2ea16c){const _0x37440d=_0x5217db;this[_0x37440d(0x3e7)][_0x37440d(0x26e)]===0x0&&this[_0x37440d(0x332)](),this['_selfUnitIDs'][_0x37440d(0x374)](_0x2ea16c),this[_0x37440d(0x463)]({'type':0x0,'memberID':this[_0x37440d(0x48b)],'unitIDs':[_0x2ea16c],'isForwarded':!0x1});}[_0x5217db(0x4b8)](_0x4bee3d){const _0x404c7e=_0x5217db;this[_0x404c7e(0x3e7)][_0x404c7e(0x2a0)](_0x4bee3d),this[_0x404c7e(0x3e7)][_0x404c7e(0x26e)]===0x0&&this[_0x404c7e(0x443)]&&window[_0x404c7e(0x3c7)](this['_heartbeatTimer']);}['_init'](){const _0x553cea=_0x5217db;this[_0x553cea(0x219)]((0x0,t[_0x553cea(0x3d9)])((0x0,r[_0x553cea(0x3aa)])(window,_0x553cea(0x263))[_0x553cea(0x468)](_0x19d42f=>{const _0xc66d36=_0x553cea;if(_0x19d42f['key']!==$||!_0x19d42f[_0xc66d36(0x1f3)])return;let _0x155576=JSON['parse'](_0x19d42f['newValue']);this[_0xc66d36(0x47c)](_0x155576);}))),window[_0x553cea(0x1b7)]('unload',()=>this[_0x553cea(0x463)]({'type':0x1,'memberID':this[_0x553cea(0x48b)],'unitIDs':Array[_0x553cea(0x2b4)](this[_0x553cea(0x3e7)])}));}[_0x5217db(0x47c)](_0x3da136){const _0x417d57=_0x5217db;switch(_0x3da136[_0x417d57(0x2ad)]){case 0x0:this[_0x417d57(0x301)](_0x3da136);break;case 0x1:this[_0x417d57(0x29f)](_0x3da136);break;case 0x2:this[_0x417d57(0x439)](_0x3da136);}}[_0x5217db(0x301)](_0x1914da){const _0x53c951=_0x5217db;let {unitIDs:_0x4d60c0,memberID:_0x225de8,isForwarded:_0x2913b7}=_0x1914da;_0x4d60c0[_0x53c951(0x309)](_0x274067=>{const _0x2575be=_0x53c951;if(!_0x2913b7&&this['_unitOnClients'][_0x2575be(0x4ac)](_0x274067)&&this[_0x2575be(0x2fb)](_0x274067)[_0x2575be(0x39d)](e[_0x2575be(0x4b3)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x2575be(0x4ac)](_0x274067)||!this[_0x2575be(0x2a8)][_0x2575be(0x438)](_0x274067)[_0x2575be(0x4ac)](_0x225de8)){let _0x46c08f=this[_0x2575be(0x2a8)][_0x2575be(0x438)](_0x274067)||new Set();_0x46c08f['add'](_0x225de8),this[_0x2575be(0x2a8)][_0x2575be(0x1ce)](_0x274067,_0x46c08f),this[_0x2575be(0x2cb)](_0x225de8);}}),_0x2913b7||this[_0x53c951(0x463)]({'type':0x0,'memberID':this[_0x53c951(0x48b)],'unitIDs':[...this[_0x53c951(0x3e7)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x264ea7){const _0x282fca=_0x5217db;this[_0x282fca(0x35d)](_0x264ea7);let _0x4ae072=window[_0x282fca(0x1e8)](()=>{const _0x5a49f3=_0x282fca;this[_0x5a49f3(0x2a8)][_0x5a49f3(0x309)](_0x3cbb17=>{const _0x2a3ccc=_0x5a49f3;_0x3cbb17[_0x2a3ccc(0x2a0)](_0x264ea7);});},ke*0x2);this[_0x282fca(0x25a)][_0x282fca(0x1ce)](_0x264ea7,_0x4ae072);}[_0x5217db(0x35d)](_0x2f19c9){const _0x5e0406=_0x5217db;if(this['_clearOtherTimers'][_0x5e0406(0x4ac)](_0x2f19c9)){let _0xfc4f0c=this[_0x5e0406(0x25a)][_0x5e0406(0x438)](_0x2f19c9);_0xfc4f0c&&window['clearTimeout'](_0xfc4f0c),this[_0x5e0406(0x25a)][_0x5e0406(0x1ce)](_0x2f19c9,null);}}[_0x5217db(0x29f)](_0x3d6ddf){const _0x4db7a8=_0x5217db;let {memberID:_0x415f87,unitIDs:_0x4e0749}=_0x3d6ddf;_0x4e0749['forEach'](_0x44e681=>{const _0x5ec724=_0x575d;var _0x2535f5;let _0x2db8ee=this['_unitOnClients'][_0x5ec724(0x438)](_0x44e681);_0x2db8ee&&(_0x2db8ee[_0x5ec724(0x2a0)](_0x415f87),(_0x2535f5=this[_0x5ec724(0x2fb)](_0x44e681))==null||_0x2535f5[_0x5ec724(0x39d)](_0x2db8ee[_0x5ec724(0x26e)]===0x0?e[_0x5ec724(0x4b3)]['NO_OTHER_CLIENTS_EDITING']:e[_0x5ec724(0x4b3)][_0x5ec724(0x2d6)]));}),this[_0x4db7a8(0x35d)](_0x415f87);}[_0x5217db(0x439)](_0x37c7b2){const _0x173517=_0x5217db;this[_0x173517(0x2cb)](_0x37c7b2[_0x173517(0x285)]);}['_send'](_0x59313e){const _0x469586=_0x5217db;localStorage[_0x469586(0x33f)]($,JSON['stringify'](_0x59313e));}[_0x5217db(0x332)](){const _0x178174=_0x5217db;this[_0x178174(0x443)]=window[_0x178174(0x22f)](()=>{const _0x433c75=_0x178174;this[_0x433c75(0x463)]({'type':0x2,'memberID':this['_id']});},ke);}[_0x5217db(0x2fb)](_0x3cd042){const _0x3adfe2=_0x5217db;return this[_0x3adfe2(0x38e)][_0x3adfe2(0x4ac)](_0x3cd042)||this[_0x3adfe2(0x38e)][_0x3adfe2(0x1ce)](_0x3cd042,new r[(_0x3adfe2(0x286))](e[_0x3adfe2(0x4b3)][_0x3adfe2(0x457)])),this[_0x3adfe2(0x38e)][_0x3adfe2(0x438)](_0x3cd042);}};Object[_0x5217db(0x30b)](exports,_0x5217db(0x4b6),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x5217db(0x30b)](exports,_0x5217db(0x320),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x5217db(0x30b)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x5217db(0x451)]=F,Object['defineProperty'](exports,_0x5217db(0x36f),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x5217db(0x1ed)]=Ae;
|