@univerjs-pro/collaboration-client-ui 1.0.0-alpha.4 → 1.0.0-alpha.6
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 +20 -20
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x32171b=_0x4167;(function(_0x10903e,_0x498b25){const _0x5a2c16=_0x4167,_0x2a4a29=_0x10903e();while(!![]){try{const _0x322b16=parseInt(_0x5a2c16(0x494))/0x1+parseInt(_0x5a2c16(0x190))/0x2+-parseInt(_0x5a2c16(0x265))/0x3+parseInt(_0x5a2c16(0x2eb))/0x4*(-parseInt(_0x5a2c16(0x3f0))/0x5)+parseInt(_0x5a2c16(0x47b))/0x6+-parseInt(_0x5a2c16(0x43e))/0x7+parseInt(_0x5a2c16(0x3d1))/0x8;if(_0x322b16===_0x498b25)break;else _0x2a4a29['push'](_0x2a4a29['shift']());}catch(_0x5ddb2b){_0x2a4a29['push'](_0x2a4a29['shift']());}}}(_0x1765,0x9e0b5),Object[_0x32171b(0x1e6)](exports,Symbol[_0x32171b(0x395)],{'value':'Module'}));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/engine-render'),d=require('@univerjs/network'),f=require('@univerjs/docs-ui'),p=require('@univerjs-pro/collaboration'),m=require('@univerjs/docs'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs-pro/slides-ui'),v=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),y=require('@univerjs/protocol');function te(_0x3bab77){const _0xd3c162=_0x32171b;switch(_0x3bab77){case t[_0xd3c162(0x3a0)]['OFFLINE']:return{'icon':(0x0,l['jsx'])(s[_0xd3c162(0x201)],{}),'colorClass':_0xd3c162(0x23f),'i18nKey':_0xd3c162(0x37c),'tooltipKey':_0xd3c162(0x221),'clickable':!0x0,'indicator':'static'};case t[_0xd3c162(0x3a0)][_0xd3c162(0x480)]:return{'icon':(0x0,l[_0xd3c162(0x417)])(s[_0xd3c162(0x201)],{}),'colorClass':_0xd3c162(0x245),'i18nKey':_0xd3c162(0x338),'clickable':!0x1,'indicator':_0xd3c162(0x315)};case t[_0xd3c162(0x3a0)][_0xd3c162(0x43c)]:return{'icon':(0x0,l[_0xd3c162(0x417)])(s['LoadingMultiIcon'],{}),'colorClass':_0xd3c162(0x2a4),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':'spin'};case t[_0xd3c162(0x3a0)][_0xd3c162(0x229)]:return{'icon':(0x0,l[_0xd3c162(0x417)])(s['OnLineIcon'],{}),'colorClass':_0xd3c162(0x3d7),'i18nKey':_0xd3c162(0x1c1),'clickable':!0x1,'indicator':_0xd3c162(0x315)};case t[_0xd3c162(0x3a0)][_0xd3c162(0x2f8)]:case t[_0xd3c162(0x3a0)][_0xd3c162(0x17d)]:return{'icon':(0x0,l[_0xd3c162(0x417)])(s[_0xd3c162(0x2e8)],{}),'colorClass':_0xd3c162(0x2a4),'i18nKey':_0xd3c162(0x390),'clickable':!0x1,'indicator':'spin'};case t[_0xd3c162(0x3a0)][_0xd3c162(0x372)]:return{'icon':(0x0,l['jsx'])(s[_0xd3c162(0x2e8)],{}),'colorClass':_0xd3c162(0x2a4),'i18nKey':_0xd3c162(0x390),'clickable':!0x1,'indicator':_0xd3c162(0x3d8)};case t[_0xd3c162(0x3a0)]['SYNCED']:return{'icon':(0x0,l[_0xd3c162(0x417)])(s[_0xd3c162(0x485)],{}),'colorClass':_0xd3c162(0x24b),'i18nKey':_0xd3c162(0x349),'clickable':!0x1,'indicator':_0xd3c162(0x315)};}}function ne(_0x144295){const _0x51b637=_0x32171b;let {status$:_0xcb6cc3}=_0x144295,_0x33ad73=(0x0,r[_0x51b637(0x2af)])(_0xcb6cc3,t['CollaborationStatus'][_0x51b637(0x229)]),_0x2c366b=(0x0,r[_0x51b637(0x233)])(n[_0x51b637(0x227)]),_0x47ef93=(0x0,r['useDependency'])(t['CollaborationSessionService']),_0x19deae=(0x0,c[_0x51b637(0x3e8)])(()=>te(_0x33ad73),[_0x33ad73]),_0x536bf3=_0x33ad73!==t[_0x51b637(0x3a0)]['OFFLINE'],_0x500f9f=_0x2c366b['t'](_0x19deae[_0x51b637(0x1cb)]),_0x161458=_0x19deae[_0x51b637(0x28f)]?_0x2c366b['t'](_0x19deae[_0x51b637(0x28f)]):_0x500f9f,_0x20e24c=(0x0,c['useCallback'])(()=>{const _0xcf9e14=_0x51b637;_0x536bf3||_0x47ef93[_0xcf9e14(0x464)]();},[_0x536bf3,_0x47ef93]),_0x4a760b=(0x0,c[_0x51b637(0x333)])(_0x4a1033=>{const _0x422c4a=_0x51b637;!_0x536bf3&&(_0x4a1033['key']===_0x422c4a(0x450)||_0x4a1033[_0x422c4a(0x25f)]==='\x20')&&(_0x4a1033[_0x422c4a(0x313)](),_0x47ef93['reconnect']());},[_0x536bf3,_0x47ef93]),_0x4c3793=(0x0,l['jsx'])(_0x51b637(0x341),{'className':(0x0,o[_0x51b637(0x1ce)])(_0x51b637(0x1b2),_0x51b637(0x214),_0x19deae[_0x51b637(0x492)],{'univer-animate-spin':_0x19deae['indicator']===_0x51b637(0x3d8),'univer-animate-pulse':_0x19deae[_0x51b637(0x322)]==='pulse'}),'aria-hidden':'true','children':_0x19deae[_0x51b637(0x31e)]}),_0x403d18=(0x0,l['jsx'])(_0x51b637(0x341),{'className':(0x0,o[_0x51b637(0x1ce)])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x51b637(0x26a),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x51b637(0x3f6),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x19deae[_0x51b637(0x2bd)],'univer-cursor-default':!_0x19deae['clickable']}),'children':_0x4c3793});return _0x19deae[_0x51b637(0x2bd)]?(0x0,l[_0x51b637(0x417)])(o[_0x51b637(0x263)],{'title':_0x161458,'placement':_0x51b637(0x222),'children':(0x0,l[_0x51b637(0x417)])(_0x51b637(0x249),{'type':_0x51b637(0x249),'onClick':_0x20e24c,'onKeyDown':_0x4a760b,'className':(0x0,o[_0x51b637(0x1ce)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x51b637(0x238),'univer-m-0\x20univer-p-0',_0x51b637(0x2d7)),'aria-label':_0x500f9f+_0x51b637(0x3b3)+_0x161458,'role':'status','aria-live':_0x51b637(0x181),'aria-atomic':_0x51b637(0x3ce),'children':_0x403d18})}):(0x0,l[_0x51b637(0x417)])(o[_0x51b637(0x263)],{'title':_0x161458,'placement':_0x51b637(0x222),'children':(0x0,l['jsx'])(_0x51b637(0x277),{'className':(0x0,o['clsx'])(_0x51b637(0x3e2),_0x51b637(0x238),_0x51b637(0x45c)),'aria-label':_0x500f9f,'role':_0x51b637(0x403),'aria-live':_0x51b637(0x181),'aria-atomic':'true','children':_0x403d18})});}function b(_0x546bdf){'@babel/helpers - typeof';const _0x2ccc58=_0x32171b;return b=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x2ccc58(0x33a)?function(_0xd9fb4b){return typeof _0xd9fb4b;}:function(_0x5a4bff){const _0x4ab5e1=_0x2ccc58;return _0x5a4bff&&typeof Symbol=='function'&&_0x5a4bff[_0x4ab5e1(0x2bf)]===Symbol&&_0x5a4bff!==Symbol[_0x4ab5e1(0x18a)]?'symbol':typeof _0x5a4bff;},b(_0x546bdf);}function re(_0x23503b,_0x2eec68){const _0xaf5382=_0x32171b;if(b(_0x23503b)!=_0xaf5382(0x184)||!_0x23503b)return _0x23503b;var _0x430e9d=_0x23503b[Symbol[_0xaf5382(0x179)]];if(_0x430e9d!==void 0x0){var _0x24b557=_0x430e9d[_0xaf5382(0x425)](_0x23503b,_0x2eec68||_0xaf5382(0x32f));if(b(_0x24b557)!=_0xaf5382(0x184))return _0x24b557;throw TypeError(_0xaf5382(0x3d4));}return(_0x2eec68===_0xaf5382(0x3b2)?String:Number)(_0x23503b);}function ie(_0x263e30){const _0x54aa8a=_0x32171b;var _0x425633=re(_0x263e30,_0x54aa8a(0x3b2));return b(_0x425633)==_0x54aa8a(0x33a)?_0x425633:_0x425633+'';}function x(_0x5be5c2,_0x213bd2,_0x5757e4){const _0x5e0ee1=_0x32171b;return(_0x213bd2=ie(_0x213bd2))in _0x5be5c2?Object[_0x5e0ee1(0x1e6)](_0x5be5c2,_0x213bd2,{'value':_0x5757e4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5be5c2[_0x213bd2]=_0x5757e4,_0x5be5c2;}function S(_0x34150d,_0x51e3fa){return function(_0x4f9e52,_0x29a47c){_0x51e3fa(_0x4f9e52,_0x29a47c,_0x34150d);};}function C(_0x2f04ea,_0x5adc83,_0x4fffca,_0x24d0ff){const _0x7f3fd8=_0x32171b;var _0x158d0a=arguments[_0x7f3fd8(0x1f1)],_0x5b0a08=_0x158d0a<0x3?_0x5adc83:_0x24d0ff===null?_0x24d0ff=Object[_0x7f3fd8(0x292)](_0x5adc83,_0x4fffca):_0x24d0ff,_0x168b0f;if(typeof Reflect==_0x7f3fd8(0x184)&&typeof Reflect[_0x7f3fd8(0x2c5)]==_0x7f3fd8(0x2f0))_0x5b0a08=Reflect[_0x7f3fd8(0x2c5)](_0x2f04ea,_0x5adc83,_0x4fffca,_0x24d0ff);else{for(var _0x331333=_0x2f04ea['length']-0x1;_0x331333>=0x0;_0x331333--)(_0x168b0f=_0x2f04ea[_0x331333])&&(_0x5b0a08=(_0x158d0a<0x3?_0x168b0f(_0x5b0a08):_0x158d0a>0x3?_0x168b0f(_0x5adc83,_0x4fffca,_0x5b0a08):_0x168b0f(_0x5adc83,_0x4fffca))||_0x5b0a08);}return _0x158d0a>0x3&&_0x5b0a08&&Object[_0x7f3fd8(0x1e6)](_0x5adc83,_0x4fffca,_0x5b0a08),_0x5b0a08;}let w=class extends n[_0x32171b(0x45a)]{constructor(_0x53a18d,_0x199463,_0x4c5baa,_0x31f77e){const _0x1ae356=_0x32171b;super(),this[_0x1ae356(0x2c7)]=_0x53a18d,this['_injector']=_0x199463,this[_0x1ae356(0x471)]=_0x4c5baa,this[_0x1ae356(0x197)]=_0x31f77e,x(this,_0x1ae356(0x330),new i['BehaviorSubject'](t['CollaborationStatus'][_0x1ae356(0x229)])),this[_0x1ae356(0x404)](),this['_initStatusListener']();}['_initStatusListener'](){const _0x1c8de0=_0x32171b;this[_0x1c8de0(0x3ec)]((0x0,i['merge'])(this[_0x1c8de0(0x2c7)][_0x1c8de0(0x36a)],this[_0x1c8de0(0x2c7)][_0x1c8de0(0x24f)](n[_0x1c8de0(0x212)][_0x1c8de0(0x304)]),this['_univerInstanceService'][_0x1c8de0(0x24f)](n[_0x1c8de0(0x212)]['UNIVER_SHEET']))['pipe']((0x0,a[_0x1c8de0(0x2d4)])(()=>ae(this['_univerInstanceService'])),(0x0,a[_0x1c8de0(0x323)])(),(0x0,i[_0x1c8de0(0x374)])(_0x571a22=>_0x571a22?this[_0x1c8de0(0x471)][_0x1c8de0(0x3a7)](_0x571a22):(0x0,i['of'])(null)),(0x0,i[_0x1c8de0(0x374)])(_0x56a350=>_0x56a350?_0x56a350['status$']:(0x0,i['of'])(t[_0x1c8de0(0x3a0)][_0x1c8de0(0x229)])))['subscribe'](_0x4f3c84=>{const _0x5d29dd=_0x1c8de0;this[_0x5d29dd(0x330)][_0x5d29dd(0x1f5)](_0x4f3c84);}));}['_initStatusComponent'](){const _0x15f934=_0x32171b;this['disposeWithMe'](this[_0x15f934(0x197)][_0x15f934(0x24a)](r['BuiltInUIPart'][_0x15f934(0x189)],()=>(0x0,r['connectInjector'])(se({'status$':this[_0x15f934(0x330)][_0x15f934(0x1a4)]()}),this[_0x15f934(0x2e6)])));}};w=C([S(0x0,n[_0x32171b(0x289)]),S(0x1,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x25b)])),S(0x2,(0x0,n['Inject'])(t[_0x32171b(0x26e)])),S(0x3,r[_0x32171b(0x17f)])],w);let T=class extends n[_0x32171b(0x45a)]{constructor(_0xd1aa49,_0x581cfd,_0x296eac,_0x31df00){const _0x29707b=_0x32171b;super(),this[_0x29707b(0x2c7)]=_0xd1aa49,this[_0x29707b(0x2e6)]=_0x581cfd,this['_collaborationController']=_0x296eac,this[_0x29707b(0x197)]=_0x31df00,x(this,_0x29707b(0x330),new i[(_0x29707b(0x3fb))](t[_0x29707b(0x3a0)]['NOT_COLLAB'])),this['_initStatusComponent'](),this[_0x29707b(0x3b1)]();}[_0x32171b(0x3b1)](){const _0x37602a=_0x32171b;this[_0x37602a(0x3ec)]((0x0,i[_0x37602a(0x204)])((0x0,i['of'])(null),this[_0x37602a(0x2c7)][_0x37602a(0x24f)](n[_0x37602a(0x212)][_0x37602a(0x194)]))[_0x37602a(0x1fa)]((0x0,a[_0x37602a(0x2d4)])(()=>oe(this[_0x37602a(0x2c7)])),(0x0,a[_0x37602a(0x323)])(),(0x0,i['switchMap'])(_0x1c6c07=>_0x1c6c07?this[_0x37602a(0x471)]['getCollabEntity$'](_0x1c6c07):(0x0,i['of'])(null)),(0x0,i[_0x37602a(0x374)])(_0x12364c=>_0x12364c?_0x12364c[_0x37602a(0x1e7)]:(0x0,i['of'])(t[_0x37602a(0x3a0)][_0x37602a(0x229)])))[_0x37602a(0x2b4)](_0xc6e01a=>{const _0xe96c73=_0x37602a;this[_0xe96c73(0x330)][_0xe96c73(0x1f5)](_0xc6e01a);}));}[_0x32171b(0x404)](){const _0x17db51=_0x32171b;this[_0x17db51(0x3ec)](this[_0x17db51(0x197)]['registerComponent'](e[_0x17db51(0x46c)],()=>(0x0,r[_0x17db51(0x287)])(se({'status$':this['_status$'][_0x17db51(0x1a4)]()}),this[_0x17db51(0x2e6)])));}};T=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n[_0x32171b(0x329)])(n['Injector'])),S(0x2,(0x0,n['Inject'])(t[_0x32171b(0x26e)])),S(0x3,r[_0x32171b(0x17f)])],T);function ae(_0x537b4c){const _0x2a221e=_0x32171b;let _0x3a2d0d=_0x537b4c['getFocusedUnit'](),_0x6a05a0=_0x3a2d0d==null?void 0x0:_0x3a2d0d[_0x2a221e(0x261)]();if(_0x6a05a0&&!(0x0,n[_0x2a221e(0x1ad)])(_0x6a05a0))return _0x6a05a0;let _0x4be50c=_0x537b4c[_0x2a221e(0x45b)](n[_0x2a221e(0x212)][_0x2a221e(0x304)]),_0x2af973=_0x4be50c==null?void 0x0:_0x4be50c[_0x2a221e(0x261)]();if(_0x2af973&&!(0x0,n['isInternalEditorID'])(_0x2af973))return _0x2af973;let _0x34da94=_0x537b4c['getCurrentUnitOfType'](n[_0x2a221e(0x212)][_0x2a221e(0x370)]);if(_0x34da94)return _0x34da94[_0x2a221e(0x261)]();let _0x1b9ff9=_0x537b4c[_0x2a221e(0x3b5)](n[_0x2a221e(0x212)]['UNIVER_DOC'])[_0x2a221e(0x39f)](_0x10abcf=>!(0x0,n[_0x2a221e(0x1ad)])(_0x10abcf[_0x2a221e(0x261)]()));return _0x1b9ff9?_0x1b9ff9[_0x2a221e(0x261)]():null;}function oe(_0xc0d4ec){const _0x41ca7e=_0x32171b;var _0x149a93;let _0x173a2b=_0xc0d4ec[_0x41ca7e(0x45b)](n['UniverInstanceType'][_0x41ca7e(0x194)]);return(_0x149a93=_0x173a2b==null?void 0x0:_0x173a2b[_0x41ca7e(0x261)]())==null?null:_0x149a93;}function se(_0x150532){let {status$:_0x1b2e18}=_0x150532;return function(){return(0x0,l['jsx'])(ne,{'status$':_0x1b2e18});};}var ce='@univerjs-pro/collaboration-client-ui',le='1.0.0-alpha.4';const ue={};let E=class extends n['RxDisposable']{constructor(_0x39cc7a,_0x5227b8){const _0x562e6f=_0x32171b;super(),this[_0x562e6f(0x199)]=_0x39cc7a,this['_imageIoService']=_0x5227b8,this[_0x562e6f(0x35c)]();}[_0x32171b(0x35c)](){const _0x38a845=_0x32171b;let _0x47c69e=this;this['disposeWithMe'](this[_0x38a845(0x199)][_0x38a845(0x1d2)]({'onBeforePasteImage':async _0x2a23ed=>{const _0x440d7a=_0x38a845;let _0x1c9401=await _0x47c69e[_0x440d7a(0x215)][_0x440d7a(0x203)](_0x2a23ed);return _0x1c9401?{'source':_0x1c9401[_0x440d7a(0x217)],'imageSourceType':_0x1c9401[_0x440d7a(0x30d)]}:null;}}));}};E=C([S(0x0,f[_0x32171b(0x250)]),S(0x1,n[_0x32171b(0x2d0)])],E);function de(_0x23f339,_0x41ae52){const _0x1a88b0=_0x32171b;_0x23f339['save'](),_0x23f339['font']=_0x1a88b0(0x3d5);let _0x206564=_0x23f339[_0x1a88b0(0x455)](_0x41ae52)['width'];return _0x23f339['restore'](),Math['min'](_0x206564+0x8,0xc8);}function fe(_0x3821e0,_0x86a16d){const _0x5f586e=_0x32171b;var _0x4b2b1d,_0x45a877,_0x1e988e;let {radius:_0x3c9db2,width:_0x284e86,height:_0x32df2d}=_0x86a16d;_0x3c9db2=(_0x4b2b1d=_0x3c9db2)==null?0x0:_0x4b2b1d,_0x284e86=(_0x45a877=_0x284e86)==null?0x1e:_0x45a877,_0x32df2d=(_0x1e988e=_0x32df2d)==null?0x1e:_0x1e988e;let _0x1b6133=0x0,_0x1dd7e7=0x0,_0x51bb9e=0x0;_0x1b6133=_0x1dd7e7=_0x51bb9e=Math[_0x5f586e(0x1a1)](_0x3c9db2,_0x284e86/0x2,_0x32df2d/0x2),_0x3821e0[_0x5f586e(0x2fd)](),_0x3821e0[_0x5f586e(0x1d3)](_0x1b6133,0x0),_0x3821e0[_0x5f586e(0x357)](_0x284e86-_0x1dd7e7,0x0),_0x3821e0[_0x5f586e(0x19e)](_0x284e86-_0x1dd7e7,_0x1dd7e7,_0x1dd7e7,Math['PI']*0x3/0x2,0x0,!0x1),_0x3821e0['lineTo'](_0x284e86,_0x32df2d-_0x51bb9e),_0x3821e0[_0x5f586e(0x19e)](_0x284e86-_0x51bb9e,_0x32df2d-_0x51bb9e,_0x51bb9e,0x0,Math['PI']/0x2,!0x1),_0x3821e0[_0x5f586e(0x357)](0x0,_0x32df2d),_0x3821e0['lineTo'](0x0,_0x1b6133),_0x3821e0[_0x5f586e(0x19e)](_0x1b6133,_0x1b6133,_0x1b6133,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3821e0[_0x5f586e(0x18c)](),_0x86a16d['fill']&&(_0x3821e0[_0x5f586e(0x337)](),_0x3821e0[_0x5f586e(0x30e)]=_0x86a16d['fill'],_0x86a16d[_0x5f586e(0x38c)]===_0x5f586e(0x462)?_0x3821e0['fill'](_0x5f586e(0x462)):_0x3821e0[_0x5f586e(0x23a)](),_0x3821e0[_0x5f586e(0x416)]());}var D=class e extends u['Shape']{constructor(_0x1eca77,_0x1a2486){const _0x17ce7e=_0x32171b;super(_0x1eca77,_0x1a2486),x(this,_0x17ce7e(0x19a),void 0x0),x(this,_0x17ce7e(0x1c2),void 0x0),this[_0x17ce7e(0x19a)]=_0x1a2486==null?void 0x0:_0x1a2486[_0x17ce7e(0x19a)],this[_0x17ce7e(0x1c2)]=_0x1a2486==null?void 0x0:_0x1a2486[_0x17ce7e(0x1c2)];}static[_0x32171b(0x47e)](_0x1c0be1,_0x3c8897){const _0x21a4a3=_0x32171b;let {text:_0x21e43f,color:_0x5bb482}=_0x3c8897;_0x1c0be1[_0x21a4a3(0x337)](),_0x1c0be1[_0x21a4a3(0x1d4)]=_0x21a4a3(0x352);let _0xc2e9c7=_0x1c0be1[_0x21a4a3(0x455)](_0x21e43f)['width'];if(fe(_0x1c0be1,{'height':0x14,'radius':0x4,'width':de(_0x1c0be1,_0x21e43f),'fill':_0x5bb482,'evented':!0x1}),_0x1c0be1[_0x21a4a3(0x30e)]='#FFF',_0xc2e9c7>0xc0){let _0x48a33c='',_0x110b6e=0x0;for(let _0x59ce87 of _0x21e43f){let _0x77d983=_0x1c0be1[_0x21a4a3(0x455)](_0x59ce87)['width'];if(_0x110b6e+_0x77d983<=0xc0-_0x1c0be1[_0x21a4a3(0x455)](_0x21a4a3(0x298))[_0x21a4a3(0x33c)])_0x48a33c+=_0x59ce87,_0x110b6e+=_0x77d983;else{_0x48a33c+='...';break;}}_0x1c0be1[_0x21a4a3(0x282)](_0x48a33c,0x4,0xf);}else _0x1c0be1[_0x21a4a3(0x282)](_0x21e43f,0x4,0xf);_0x1c0be1[_0x21a4a3(0x416)]();}[_0x32171b(0x2aa)](_0x5c6a01){e['drawWith'](_0x5c6a01,this);}};const O=0x138a;var pe=class extends u[_0x32171b(0x2b2)]{constructor(_0x3e86ff,_0x5a948e){const _0x3725d1=_0x32171b;super(_0x3e86ff,{..._0x5a948e,'evented':!0x1}),x(this,_0x3725d1(0x185),_0x3725d1(0x210)),x(this,'_name',''),x(this,'_showText',!0x0),_0x5a948e&&this[_0x3725d1(0x1c6)](_0x5a948e);}['setShapeProps'](_0x5047fe){const _0xa870ef=_0x32171b;var _0xe52211,_0xadf93f,_0x43cfac,_0x3045d7,_0x5cd3fc,_0x57c63c,_0x28230e,_0x2e8b50;this[_0xa870ef(0x185)]=(_0xe52211=_0x5047fe[_0xa870ef(0x19a)])==null?this[_0xa870ef(0x185)]:_0xe52211,this[_0xa870ef(0x1eb)]=(_0xadf93f=_0x5047fe['name'])==null?this[_0xa870ef(0x1eb)]:_0xadf93f,this[_0xa870ef(0x44a)]=(_0x43cfac=_0x5047fe[_0xa870ef(0x1e8)])==null?this[_0xa870ef(0x44a)]:_0x43cfac,this['evented']=!0x1,this[_0xa870ef(0x434)]({'left':(_0x3045d7=_0x5047fe[_0xa870ef(0x41e)])==null?this[_0xa870ef(0x41e)]:_0x3045d7,'top':(_0x5cd3fc=_0x5047fe['top'])==null?this[_0xa870ef(0x3b4)]:_0x5cd3fc,'width':(_0x57c63c=_0x5047fe[_0xa870ef(0x33c)])==null?this[_0xa870ef(0x33c)]:_0x57c63c,'height':(_0x28230e=_0x5047fe['height'])==null?this[_0xa870ef(0x35a)]:_0x28230e,'angle':(_0x2e8b50=_0x5047fe[_0xa870ef(0x3e0)])==null?this[_0xa870ef(0x3e0)]:_0x2e8b50});}[_0x32171b(0x2aa)](_0xdfcdd2){const _0x114cb6=_0x32171b;_0xdfcdd2[_0x114cb6(0x337)](),_0xdfcdd2['strokeStyle']=this[_0x114cb6(0x185)],_0xdfcdd2[_0x114cb6(0x240)]=this[_0x114cb6(0x303)]||1.5,_0xdfcdd2[_0x114cb6(0x38a)]([0x6,0x4]),_0xdfcdd2[_0x114cb6(0x2a3)](0x0,0x0,this[_0x114cb6(0x33c)],this[_0x114cb6(0x35a)]),_0xdfcdd2[_0x114cb6(0x416)](),this[_0x114cb6(0x44a)]&&(_0xdfcdd2['save'](),_0xdfcdd2[_0x114cb6(0x2dd)](0x1,0x0,0x0,0x1,this[_0x114cb6(0x33c)],-0x14),D[_0x114cb6(0x47e)](_0xdfcdd2,{'text':this[_0x114cb6(0x1eb)],'color':this['_color']}),_0xdfcdd2[_0x114cb6(0x416)]());}};const me=[_0x32171b(0x2e2),_0x32171b(0x314),_0x32171b(0x3ca),_0x32171b(0x3af),_0x32171b(0x397),_0x32171b(0x1fd)];var k=class extends n[_0x32171b(0x45a)]{constructor(..._0x59fb6e){const _0x51c47e=_0x32171b;super(..._0x59fb6e),x(this,_0x51c47e(0x2ba),new Map()),x(this,_0x51c47e(0x30c),0x0);}[_0x32171b(0x448)](_0x226f81){const _0x5d36bd=_0x32171b;if(this[_0x5d36bd(0x2ba)][_0x5d36bd(0x41a)](_0x226f81))return this[_0x5d36bd(0x2ba)][_0x5d36bd(0x3e4)](_0x226f81);let _0x43530=me[this[_0x5d36bd(0x30c)]];return this['_colorIndex']=(this[_0x5d36bd(0x30c)]+0x1)%me['length'],this[_0x5d36bd(0x2ba)][_0x5d36bd(0x30a)](_0x226f81,_0x43530),_0x43530;}};function he(_0x2876b8){const _0x1a7c7b=_0x32171b;let _0x3a8075;try{_0x3a8075=JSON['parse'](_0x2876b8);}catch{return null;}if(typeof _0x3a8075!=_0x1a7c7b(0x184)||!_0x3a8075)return null;let _0xa9e447=_0x3a8075;if(_0xa9e447['kind']!==_0x1a7c7b(0x466)||typeof _0xa9e447['unitId']!='string'||typeof _0xa9e447[_0x1a7c7b(0x3d9)]!=_0x1a7c7b(0x3b2))return null;let _0x3bf6b1=Array[_0x1a7c7b(0x3c4)](_0xa9e447[_0x1a7c7b(0x488)])?_0xa9e447[_0x1a7c7b(0x488)][_0x1a7c7b(0x378)](_0x388f8e=>typeof _0x388f8e==_0x1a7c7b(0x3b2)):[],_0x407742=typeof _0xa9e447[_0x1a7c7b(0x40b)]==_0x1a7c7b(0x3b2)?_0xa9e447[_0x1a7c7b(0x40b)]:null;return{'kind':_0x1a7c7b(0x466),'unitId':_0xa9e447[_0x1a7c7b(0x3fc)],'subUnitId':_0xa9e447[_0x1a7c7b(0x3d9)],'selectedIds':_0x3bf6b1,'focusedId':_0x407742};}let A=class extends n['RxDisposable']{get[_0x32171b(0x1e0)](){const _0x5dc6df=_0x32171b;return this[_0x5dc6df(0x3df)][_0x5dc6df(0x2c8)]();}get[_0x32171b(0x2e4)](){const _0x33231c=_0x32171b;return this[_0x33231c(0x409)][_0x33231c(0x2c8)]();}constructor(_0x22ba4a,_0x42f68e,_0x59c1b1,_0xe03e86,_0x3df958){const _0x3ccf33=_0x32171b;super(),this[_0x3ccf33(0x486)]=_0x22ba4a,this[_0x3ccf33(0x340)]=_0x42f68e,this['_colorAssignService']=_0x59c1b1,this[_0x3ccf33(0x209)]=_0xe03e86,this[_0x3ccf33(0x40f)]=_0x3df958,x(this,_0x3ccf33(0x2c6),!0x1),x(this,'_init',!0x1),x(this,_0x3ccf33(0x3df),new i[(_0x3ccf33(0x3fb))](new Map())),x(this,'cursorInfo$',this['_cursorInfo$'][_0x3ccf33(0x1a4)]()),x(this,_0x3ccf33(0x409),new i['BehaviorSubject']([])),x(this,_0x3ccf33(0x251),this[_0x3ccf33(0x409)][_0x3ccf33(0x1fa)]((0x0,i[_0x3ccf33(0x35b)])(0x12c))),x(this,_0x3ccf33(0x444),(0x0,n[_0x3ccf33(0x442)])(_0x5982dc=>{const _0x5a774a=_0x3ccf33;let _0x332e15=_0x5982dc[_0x5a774a(0x366)];if(!_0x332e15||_0x332e15[_0x5a774a(0x3fc)]!==this[_0x5a774a(0x486)])return;let _0x392f87={'kind':_0x5a774a(0x466),'unitId':_0x332e15[_0x5a774a(0x3fc)],'subUnitId':_0x332e15[_0x5a774a(0x3d9)],'selectedIds':_0x5982dc[_0x5a774a(0x488)][_0x5a774a(0x378)](_0x2e4ad5=>typeof _0x2e4ad5==_0x5a774a(0x3b2)),'focusedId':_0x5982dc[_0x5a774a(0x40b)]},_0x34721a={'eventID':p[_0x5a774a(0x375)][_0x5a774a(0x484)],'data':{'unitID':this[_0x5a774a(0x486)],'memberID':this[_0x5a774a(0x340)]['getMemberID'](),'selection':JSON[_0x5a774a(0x242)](_0x392f87)}};this[_0x5a774a(0x340)]['send'](_0x34721a,this['unitID']);},0x64));}[_0x32171b(0x376)](){const _0x1a6535=_0x32171b;super[_0x1a6535(0x376)](),this[_0x1a6535(0x3df)][_0x1a6535(0x1f5)](new Map()),this['_cursorInfo$']['complete'](),this[_0x1a6535(0x409)][_0x1a6535(0x1f5)]([]),this['_roomMembers$'][_0x1a6535(0x3e9)]();}[_0x32171b(0x302)](){const _0x57794f=_0x32171b;this['_init']||(this[_0x57794f(0x35c)]=!0x0,this[_0x57794f(0x340)][_0x57794f(0x3eb)][_0x57794f(0x1fa)]((0x0,i[_0x57794f(0x38d)])(this[_0x57794f(0x273)]))[_0x57794f(0x2b4)](_0x2ca567=>{const _0x41503d=_0x57794f;_0x2ca567===t['SessionStatus'][_0x41503d(0x2e9)]?this['_toggleOnline']():this[_0x41503d(0x436)]();}),this['_session']['event$'][_0x57794f(0x1fa)]((0x0,i[_0x57794f(0x38d)])(this['dispose$']))[_0x57794f(0x2b4)](_0x516b44=>{const _0x4dc64d=_0x57794f;let _0x2faec1=_0x516b44[_0x4dc64d(0x48e)];_0x2faec1===p[_0x4dc64d(0x375)][_0x4dc64d(0x484)]&&this['_onCursorUpdate'](_0x516b44),_0x2faec1===p[_0x4dc64d(0x375)][_0x4dc64d(0x365)]&&this[_0x4dc64d(0x3a8)](_0x516b44);}),this['_boardElementStateService'][_0x57794f(0x460)][_0x57794f(0x1fa)]((0x0,i['takeUntil'])(this[_0x57794f(0x273)]))[_0x57794f(0x2b4)](_0x57b486=>{this['_online']&&this['_updateLocalCursor'](_0x57b486);}));}['_onCursorUpdate'](_0x569dec){const _0x4441e2=_0x32171b;var _0x3267db,_0x35b20f,_0x9c7eba,_0x1c63d5;let {memberID:_0x29efdb,selection:_0x4be7cd}=_0x569dec[_0x4441e2(0x274)];if(_0x29efdb===((_0x3267db=(_0x35b20f=this[_0x4441e2(0x340)])[_0x4441e2(0x3a5)])==null?void 0x0:_0x3267db[_0x4441e2(0x425)](_0x35b20f)))return;let _0x404083=he(_0x4be7cd);if(!_0x404083||_0x404083['unitId']!==this[_0x4441e2(0x486)])return;let _0x503696=(_0x9c7eba=(_0x1c63d5=this[_0x4441e2(0x209)][_0x4441e2(0x2b5)](this[_0x4441e2(0x486)],_0x29efdb))==null?void 0x0:_0x1c63d5[_0x4441e2(0x1c3)])==null?_0x4441e2(0x2df):_0x9c7eba,_0x5d5da8={'color':this[_0x4441e2(0x40e)][_0x4441e2(0x448)](_0x29efdb),'name':_0x503696,'unitId':_0x404083[_0x4441e2(0x3fc)],'subUnitId':_0x404083[_0x4441e2(0x3d9)],'selectedIds':_0x404083[_0x4441e2(0x488)],'focusedId':_0x404083[_0x4441e2(0x40b)],'selection':_0x4be7cd},_0x4b85c9=new Map(this[_0x4441e2(0x1e0)]);_0x4b85c9[_0x4441e2(0x30a)](_0x29efdb,_0x5d5da8),this[_0x4441e2(0x3df)]['next'](_0x4b85c9);}['_onCursorDelete'](_0x4f8d54){const _0x18f23a=_0x32171b;let {memberID:_0x472875}=_0x4f8d54[_0x18f23a(0x274)],_0x12c6fd=new Map(this[_0x18f23a(0x1e0)]);_0x12c6fd[_0x18f23a(0x37f)](_0x472875),this['_cursorInfo$'][_0x18f23a(0x1f5)](_0x12c6fd);}[_0x32171b(0x230)](){const _0x53a59a=_0x32171b;this[_0x53a59a(0x2c6)]=!0x0,this['_updateLocalCursor'](this[_0x53a59a(0x40f)][_0x53a59a(0x3b9)]());}[_0x32171b(0x436)](){const _0x3936b1=_0x32171b;this[_0x3936b1(0x2c6)]=!0x1;}};A=C([S(0x2,(0x0,n[_0x32171b(0x329)])(k)),S(0x3,(0x0,n['Inject'])(t['MemberService'])),S(0x4,(0x0,n[_0x32171b(0x329)])(e[_0x32171b(0x348)]))],A);function ge(_0x3dd074){const _0x4a7180=_0x32171b;let _0x5a3da4='';for(let _0x537202 of _0x3dd074){let {startOffset:_0x306913,endOffset:_0x21a24f,isActive:_0x411ab7,rangeType:_0x4af6c6,segmentId:_0x412a99,segmentPage:_0x158887}=_0x537202;_0x5a3da4[_0x4a7180(0x1f1)]&&(_0x5a3da4+=','),_0x5a3da4+=_0x306913+':'+_0x21a24f+':'+(_0x411ab7?'1':'0')+':'+_0x4af6c6+':'+_0x412a99+':'+_0x158887;}return _0x5a3da4;}function _e(_0x3342a3){const _0x511d84=_0x32171b;let _0x7d6ab1=_0x3342a3['split'](','),_0x31bbce=[];for(let _0x258a49 of _0x7d6ab1){let [_0x36b284,_0x5d1a65,_0x30c4ec,_0x108325,_0x3bebc1,_0x42918c]=_0x258a49[_0x511d84(0x2cb)](':');_0x31bbce[_0x511d84(0x18d)]({'startOffset':Number(_0x36b284),'endOffset':Number(_0x5d1a65),'collapsed':_0x36b284===_0x5d1a65,'isActive':_0x30c4ec==='1','rangeType':_0x108325===n[_0x511d84(0x3c8)][_0x511d84(0x2cd)]?n[_0x511d84(0x3c8)][_0x511d84(0x2cd)]:n['DOC_RANGE_TYPE'][_0x511d84(0x21e)],'segmentId':typeof _0x3bebc1=='string'?String(_0x3bebc1):'','segmentPage':Number(_0x42918c==null?-0x1:_0x42918c)});}return _0x31bbce[_0x511d84(0x458)](_0x4bb785=>_0x4bb785[_0x511d84(0x428)])||(_0x31bbce[0x0]['isActive']=!0x0),_0x31bbce;}var j=class extends n[_0x32171b(0x467)]{constructor(..._0x3744f6){const _0x170a55=_0x32171b;super(..._0x3744f6),x(this,_0x170a55(0x1f0),new i[(_0x170a55(0x3fb))](null)),x(this,'collabCursorState$',this[_0x170a55(0x1f0)][_0x170a55(0x1a4)]());}[_0x32171b(0x192)](_0x141d77){const _0x1b5d74=_0x32171b;let {unitID:_0x225455,memberID:_0x2c200b,textRanges:_0x8290fb}=_0x141d77,_0x176ce8=ge(_0x8290fb);if(_0x176ce8==='')return;let _0x1fbcc4={'unitID':_0x225455,'memberID':_0x2c200b,'selection':_0x176ce8};this[_0x1b5d74(0x1f0)][_0x1b5d74(0x1f5)](_0x1fbcc4);}};let M=class extends n[_0x32171b(0x467)]{get[_0x32171b(0x1e0)](){const _0x26c137=_0x32171b;return this[_0x26c137(0x3df)][_0x26c137(0x2c8)]();}get[_0x32171b(0x2e4)](){const _0x3e400f=_0x32171b;return this[_0x3e400f(0x409)][_0x3e400f(0x2c8)]();}constructor(_0x2d6584,_0x451552,_0x28c783,_0x185a29,_0x183ec2,_0x474289,_0x3768f9,_0x16c5a1,_0x3f09c3){const _0x8ef764=_0x32171b;super(),this[_0x8ef764(0x486)]=_0x2d6584,this[_0x8ef764(0x340)]=_0x451552,this[_0x8ef764(0x2e6)]=_0x28c783,this[_0x8ef764(0x40e)]=_0x185a29,this[_0x8ef764(0x209)]=_0x183ec2,this[_0x8ef764(0x232)]=_0x474289,this[_0x8ef764(0x360)]=_0x3768f9,this['_univerInstanceService']=_0x16c5a1,this['_commandService']=_0x3f09c3,x(this,'_online',!0x1),x(this,'_init',!0x1),x(this,'_cursorInfo$',new i[(_0x8ef764(0x3fb))](new Map())),x(this,_0x8ef764(0x202),this[_0x8ef764(0x3df)][_0x8ef764(0x1a4)]()),x(this,'_roomMembers$',new i['BehaviorSubject']([])),x(this,'roomMembers$',this[_0x8ef764(0x409)][_0x8ef764(0x1fa)]((0x0,i[_0x8ef764(0x35b)])(0x12c))),x(this,_0x8ef764(0x444),(0x0,n[_0x8ef764(0x442)])(_0x5864b7=>{const _0x1b3577=_0x8ef764;let _0x127b85={'eventID':p[_0x1b3577(0x375)][_0x1b3577(0x484)],'data':{'unitID':this[_0x1b3577(0x486)],'memberID':this[_0x1b3577(0x340)][_0x1b3577(0x3a5)](),'selection':ge(_0x5864b7)}};this['_session'][_0x1b3577(0x2c3)](_0x127b85,this[_0x1b3577(0x486)]);},0x64));}['dispose'](){const _0x2ba365=_0x32171b;super['dispose'](),this[_0x2ba365(0x3df)]['next'](new Map()),this['_cursorInfo$'][_0x2ba365(0x3e9)](),this[_0x2ba365(0x409)][_0x2ba365(0x1f5)]([]),this[_0x2ba365(0x409)]['complete']();}[_0x32171b(0x302)](){const _0x2e1cce=_0x32171b;this[_0x2e1cce(0x35c)]||(this[_0x2e1cce(0x35c)]=!0x0,this[_0x2e1cce(0x340)][_0x2e1cce(0x3eb)]['pipe']((0x0,i[_0x2e1cce(0x38d)])(this[_0x2e1cce(0x273)]))[_0x2e1cce(0x2b4)](_0x52db8b=>{const _0x3a5430=_0x2e1cce;_0x52db8b===t[_0x3a5430(0x31d)][_0x3a5430(0x2e9)]?this['_toggleOnline']():this[_0x3a5430(0x436)]();}),this[_0x2e1cce(0x340)][_0x2e1cce(0x1ae)][_0x2e1cce(0x1fa)]((0x0,i[_0x2e1cce(0x38d)])(this['dispose$']))[_0x2e1cce(0x2b4)](_0x5aa8a8=>{const _0x2089a7=_0x2e1cce;let _0xb550c5=_0x5aa8a8[_0x2089a7(0x48e)];_0xb550c5===p[_0x2089a7(0x375)]['UPDATE_CURSOR']&&this[_0x2089a7(0x42d)](_0x5aa8a8),_0xb550c5===p[_0x2089a7(0x375)]['USERS_LEAVE']&&this[_0x2089a7(0x3a8)](_0x5aa8a8);}),this[_0x2e1cce(0x3ec)](this[_0x2e1cce(0x465)][_0x2e1cce(0x363)](_0x16c1bc=>{const _0x5f2406=_0x2e1cce;let _0x4637d0=_0x16c1bc['params'];_0x4637d0!=null&&this[_0x5f2406(0x2c6)]&&_0x16c1bc['id']===m[_0x5f2406(0x321)]['id']&&_0x4637d0[_0x5f2406(0x3fc)]===this['unitID']&&_0x4637d0['isEditing']===!0x1&&_0x4637d0[_0x5f2406(0x3dc)][_0x5f2406(0x1f1)]>0x0&&this[_0x5f2406(0x444)](_0x4637d0[_0x5f2406(0x3dc)]);})),this['_syncEditingCollabCursorService'][_0x2e1cce(0x46f)][_0x2e1cce(0x1fa)]((0x0,i[_0x2e1cce(0x38d)])(this['dispose$']))['subscribe'](_0x144a5a=>{const _0x341223=_0x2e1cce;if((_0x144a5a==null?void 0x0:_0x144a5a[_0x341223(0x486)])!==this[_0x341223(0x486)])return;let _0x5dab4c={'eventID':p[_0x341223(0x375)][_0x341223(0x484)],'data':_0x144a5a};this[_0x341223(0x42d)](_0x5dab4c);}),this[_0x2e1cce(0x3ec)](this[_0x2e1cce(0x465)][_0x2e1cce(0x363)](_0x185643=>{const _0x239440=_0x2e1cce;if(_0x185643[_0x239440(0x219)]==null)return;let _0x78be81=_0x185643[_0x239440(0x219)];if(_0x185643['id']!==m[_0x239440(0x316)]['id']||_0x78be81[_0x239440(0x3fc)]!==this[_0x239440(0x486)])return;let _0xf562d5={'id':_0x239440(0x23e),'params':_0x78be81},_0x53ac5d=this[_0x239440(0x1e0)];for(let [_0x2b79b0,_0x33b9f5]of _0x53ac5d){let _0x13561b={'id':_0x239440(0x23e),'params':{'unitId':this[_0x239440(0x486)],'actions':null,'textRanges':_0x33b9f5[_0x239440(0x3dc)]}},_0x58cf4a=this[_0x239440(0x360)][_0x239440(0x1c7)](_0xf562d5,_0x13561b,!0x1);if((0x0,p[_0x239440(0x1dc)])(_0x58cf4a))throw _0x58cf4a['error'];_0x53ac5d[_0x239440(0x30a)](_0x2b79b0,{..._0x33b9f5,'ranges':_0x58cf4a[_0x239440(0x2b1)][_0x239440(0x219)][_0x239440(0x47d)]});}queueMicrotask(()=>{const _0x44fd78=_0x239440;this[_0x44fd78(0x3df)][_0x44fd78(0x1f5)](_0x53ac5d);});})));}['_onCursorUpdate'](_0x35dc28){const _0x3c50f8=_0x32171b;var _0xfc318,_0x48c549;let {memberID:_0x5ba064,selection:_0x532792}=_0x35dc28['data'],_0x2ba714=_e(_0x532792),_0x5ddabc=(_0xfc318=(_0x48c549=this['_memberService'][_0x3c50f8(0x2b5)](this[_0x3c50f8(0x486)],_0x5ba064))==null?void 0x0:_0x48c549[_0x3c50f8(0x1c3)])==null?'Unknown\x20user':_0xfc318,_0x343c88={'color':this[_0x3c50f8(0x40e)]['assignAColorForMemberID'](_0x5ba064),'name':_0x5ddabc,'ranges':_0x2ba714},_0x35b9e5=this[_0x3c50f8(0x1e0)];_0x35b9e5[_0x3c50f8(0x30a)](_0x5ba064,_0x343c88),this[_0x3c50f8(0x3df)][_0x3c50f8(0x1f5)](_0x35b9e5);}[_0x32171b(0x3a8)](_0x599475){const _0x1b172a=_0x32171b;let {memberID:_0x4d7efd}=_0x599475['data'],_0x1e4306=this[_0x1b172a(0x1e0)];_0x1e4306[_0x1b172a(0x37f)](_0x4d7efd),this[_0x1b172a(0x3df)][_0x1b172a(0x1f5)](_0x1e4306);}[_0x32171b(0x230)](){const _0x2c0a58=_0x32171b;var _0x204451;if(this[_0x2c0a58(0x2c6)]=!0x0,((_0x204451=this[_0x2c0a58(0x2c7)][_0x2c0a58(0x1a2)]())==null?void 0x0:_0x204451['getUnitId']())!==this[_0x2c0a58(0x486)])return;let _0x7f6cb6=this[_0x2c0a58(0x2e6)][_0x2c0a58(0x3e4)](m[_0x2c0a58(0x46d)])[_0x2c0a58(0x1ec)]();Array[_0x2c0a58(0x3c4)](_0x7f6cb6)&&_0x7f6cb6['length']>0x0&&this['_updateLocalCursor'](_0x7f6cb6);}[_0x32171b(0x436)](){const _0x148b06=_0x32171b;this[_0x148b06(0x2c6)]=!0x1;}};M=C([S(0x2,(0x0,n['Inject'])(n[_0x32171b(0x25b)])),S(0x3,(0x0,n[_0x32171b(0x329)])(k)),S(0x4,(0x0,n[_0x32171b(0x329)])(t[_0x32171b(0x26d)])),S(0x5,(0x0,n['Inject'])(j)),S(0x6,p[_0x32171b(0x2d6)]),S(0x7,n[_0x32171b(0x289)]),S(0x8,n[_0x32171b(0x2d2)])],M);const ve=()=>{let _0xb60a61=[],_0x9775df=!0x1;return _0x12b96d=>{const _0xecf1b9=_0x4167;_0xb60a61[_0xecf1b9(0x18d)](_0x12b96d),_0x9775df||(_0x9775df=!0x0,setTimeout(()=>{const _0x1089cf=_0xecf1b9;_0xb60a61[_0x1089cf(0x19f)](_0x17352a=>_0x17352a()),_0xb60a61=[],_0x9775df=!0x1;}));};};let N=class extends n[_0x32171b(0x467)]{get[_0x32171b(0x1e0)](){const _0x34bc3c=_0x32171b;return this[_0x34bc3c(0x3df)][_0x34bc3c(0x2c8)]();}get[_0x32171b(0x2e4)](){const _0x36028e=_0x32171b;return this[_0x36028e(0x409)]['getValue']();}constructor(_0xfaa698,_0x455997,_0x2dce9a,_0x4bd3b5,_0x4913fd,_0x1a70ce,_0x2b9856,_0x34c921){const _0x225bf9=_0x32171b;super(),this[_0x225bf9(0x486)]=_0xfaa698,this['_session']=_0x455997,this[_0x225bf9(0x2e6)]=_0x2dce9a,this[_0x225bf9(0x40e)]=_0x4bd3b5,this[_0x225bf9(0x209)]=_0x4913fd,this[_0x225bf9(0x2c7)]=_0x1a70ce,this[_0x225bf9(0x465)]=_0x2b9856,this[_0x225bf9(0x355)]=_0x34c921,x(this,'_online',!0x1),x(this,_0x225bf9(0x35c),!0x1),x(this,_0x225bf9(0x3df),new i[(_0x225bf9(0x3fb))](new Map())),x(this,_0x225bf9(0x202),this[_0x225bf9(0x3df)][_0x225bf9(0x1a4)]()),x(this,'_roomMembers$',new i[(_0x225bf9(0x3fb))]([])),x(this,_0x225bf9(0x251),this[_0x225bf9(0x409)]['pipe']((0x0,i[_0x225bf9(0x35b)])(0x12c))),x(this,_0x225bf9(0x444),(0x0,n[_0x225bf9(0x442)])((_0x4110fe,_0xd463c0)=>{const _0x3cbcaf=_0x225bf9;let _0x2a7d02={'eventID':p[_0x3cbcaf(0x375)][_0x3cbcaf(0x484)],'data':{'unitID':this['unitID'],'memberID':this[_0x3cbcaf(0x340)]['getMemberID'](),'selection':(0x0,h[_0x3cbcaf(0x283)])(_0x4110fe,_0xd463c0[_0x3cbcaf(0x3b6)])}};this[_0x3cbcaf(0x340)][_0x3cbcaf(0x2c3)](_0x2a7d02,this[_0x3cbcaf(0x486)]);},0x64));}[_0x32171b(0x376)](){const _0x3286f8=_0x32171b;super[_0x3286f8(0x376)](),this[_0x3286f8(0x3df)]['next'](new Map()),this[_0x3286f8(0x3df)]['complete'](),this[_0x3286f8(0x409)][_0x3286f8(0x1f5)]([]),this[_0x3286f8(0x409)][_0x3286f8(0x3e9)]();}[_0x32171b(0x302)](){const _0x63763=_0x32171b;this[_0x63763(0x35c)]||(this[_0x63763(0x35c)]=!0x0,this[_0x63763(0x340)]['sessionStatus$'][_0x63763(0x1fa)]((0x0,i[_0x63763(0x38d)])(this[_0x63763(0x273)]))['subscribe'](_0x52795d=>{const _0x2893d5=_0x63763;_0x52795d===t[_0x2893d5(0x31d)][_0x2893d5(0x2e9)]?this[_0x2893d5(0x230)]():this[_0x2893d5(0x436)]();}),this[_0x63763(0x340)][_0x63763(0x1ae)][_0x63763(0x1fa)]((0x0,i['takeUntil'])(this[_0x63763(0x273)]))[_0x63763(0x2b4)](_0x3c171c=>{const _0x269986=_0x63763;let _0x27f7f5=_0x3c171c[_0x269986(0x48e)];_0x27f7f5===p[_0x269986(0x375)][_0x269986(0x484)]&&this[_0x269986(0x42d)](_0x3c171c),_0x27f7f5===p[_0x269986(0x375)][_0x269986(0x365)]&&this['_onCursorDelete'](_0x3c171c);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x63763(0x363)](_0x5afca4=>{const _0x912600=_0x63763;if(this[_0x912600(0x2c6)]&&_0x5afca4['id']===g[_0x912600(0x2ac)]['id']&&_0x5afca4['params'][_0x912600(0x3fc)]===this['unitID']){let _0x1073b6=_0x5afca4[_0x912600(0x219)];this[_0x912600(0x444)](_0x1073b6[_0x912600(0x3d9)],_0x1073b6[_0x912600(0x31f)][0x0]);}})));}[_0x32171b(0x42d)](_0x7eb443){const _0x42f928=_0x32171b;var _0x527a9a,_0x23f001;let {memberID:_0x3790e0,selection:_0xb9231a}=_0x7eb443['data'],{sheetName:_0xb37221,range:_0x21f6bf}=(0x0,h[_0x42f928(0x211)])(_0xb9231a),_0x54c72a={'name':(_0x527a9a=(_0x23f001=this[_0x42f928(0x209)]['getMember'](this[_0x42f928(0x486)],_0x3790e0))==null?void 0x0:_0x23f001[_0x42f928(0x1c3)])==null?_0x42f928(0x2df):_0x527a9a,'range':this[_0x42f928(0x3d0)](_0xb37221,_0x21f6bf),'sheetID':_0xb37221,'color':this['_colorAssignService'][_0x42f928(0x448)](_0x3790e0),'selection':_0xb9231a},_0x1bfc19=this[_0x42f928(0x1e0)];_0x1bfc19[_0x42f928(0x30a)](_0x3790e0,_0x54c72a),this[_0x42f928(0x3df)]['next'](_0x1bfc19);}[_0x32171b(0x3a8)](_0x446d5e){const _0x20345d=_0x32171b;let {memberID:_0x4720bf}=_0x446d5e[_0x20345d(0x274)],_0x36b0c5=this['cursorInfo'];_0x36b0c5[_0x20345d(0x37f)](_0x4720bf),this['_cursorInfo$'][_0x20345d(0x1f5)](_0x36b0c5);}['_getMergeRange'](_0xa92788,_0x38767c){const _0x27cf46=_0x32171b;var _0x4ecf81;let _0x53faa4=(_0x4ecf81=this[_0x27cf46(0x2c7)]['getUniverSheetInstance'](this[_0x27cf46(0x486)]))==null||(_0x4ecf81=_0x4ecf81['getSheetBySheetId'](_0xa92788))==null?void 0x0:_0x4ecf81[_0x27cf46(0x347)]();return(_0x53faa4==null?void 0x0:_0x53faa4[_0x27cf46(0x39f)](_0x244de2=>n['Rectangle'][_0x27cf46(0x25e)](_0x244de2,_0x38767c)))||_0x38767c;}[_0x32171b(0x491)](){const _0x4178b2=_0x32171b;let _0x582afb=new n[(_0x4178b2(0x21a))](),_0x29ae4d=ve(),_0x332632=()=>{const _0x57601a=_0x4178b2;_0x582afb[_0x57601a(0x376)]();let _0x3ba058=(_0x2942f7,_0x39b57c,_0x50ec29,_0x3ade65)=>{const _0x19fe49=_0x57601a;let _0x100c2e=[];switch(_0x2942f7['id']){case g[_0x19fe49(0x186)][_0x19fe49(0x17c)]:_0x100c2e=(0x0,g['handleDeleteRangeMoveLeft'])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)][_0x19fe49(0x31c)]:_0x100c2e=(0x0,g['handleDeleteRangeMoveUp'])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)][_0x19fe49(0x258)]:_0x100c2e=(0x0,g[_0x19fe49(0x19b)])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)]['InsertRangeMoveDownCommandId']:_0x100c2e=(0x0,g[_0x19fe49(0x1b3)])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)][_0x19fe49(0x421)]:_0x100c2e=(0x0,g[_0x19fe49(0x22c)])(_0x2942f7,_0x3ade65);break;case g['EffectRefRangId'][_0x19fe49(0x38f)]:_0x100c2e=(0x0,g[_0x19fe49(0x244)])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)][_0x19fe49(0x418)]:_0x100c2e=(0x0,g[_0x19fe49(0x1d0)])(_0x2942f7,_0x3ade65);break;case g[_0x19fe49(0x186)][_0x19fe49(0x41f)]:_0x100c2e=(0x0,g[_0x19fe49(0x1fe)])(_0x2942f7,_0x3ade65);break;case g['EffectRefRangId'][_0x19fe49(0x1c4)]:_0x100c2e=(0x0,g[_0x19fe49(0x20a)])(_0x2942f7,_0x3ade65);break;}let _0xe80056=(0x0,g['runRefRangeMutations'])(_0x100c2e,_0x3ade65),_0x149f40=this[_0x19fe49(0x1e0)][_0x19fe49(0x3e4)](_0x39b57c);if(_0x149f40&&_0xe80056){let _0x5b0230={..._0x149f40,'range':_0xe80056};this['cursorInfo'][_0x19fe49(0x30a)](_0x39b57c,_0x5b0230),_0x29ae4d(()=>{const _0xb94f4f=_0x19fe49;let _0x3b3c8b=this[_0xb94f4f(0x355)][_0xb94f4f(0x413)](_0xe80056,_0x2005e2=>(_0x3b3c8b['dispose'](),_0x3ba058(_0x2005e2,_0x39b57c,_0x50ec29,_0xe80056)));_0x582afb[_0xb94f4f(0x3ac)](_0x3b3c8b);});}return{'redos':[],'undos':[]};};this[_0x57601a(0x1e0)][_0x57601a(0x19f)]((_0x868735,_0x5d69a7)=>{const _0x25dddb=_0x57601a;let {range:_0x12cb66,sheetID:_0x390497}=_0x868735,_0x43ee44=this[_0x25dddb(0x355)]['registerRefRange'](_0x12cb66,_0x42d88e=>(_0x43ee44[_0x25dddb(0x376)](),_0x3ba058(_0x42d88e,_0x5d69a7,_0x390497,_0x12cb66)));_0x582afb[_0x25dddb(0x3ac)](_0x43ee44);});};this[_0x4178b2(0x3ec)]((0x0,n['toDisposable'])(this[_0x4178b2(0x3df)]['subscribe'](()=>{_0x332632();})));}[_0x32171b(0x230)](){const _0x12d98f=_0x32171b;var _0x4ac20d,_0x26c5d4;if(this[_0x12d98f(0x2c6)]=!0x0,((_0x4ac20d=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4ac20d[_0x12d98f(0x261)]())!==this[_0x12d98f(0x486)])return;let _0x15946f=(_0x26c5d4=this['_injector']['get'](g[_0x12d98f(0x3aa)])[_0x12d98f(0x1db)]())==null?void 0x0:_0x26c5d4[0x0],_0x171892=this[_0x12d98f(0x2c7)][_0x12d98f(0x45b)](n['UniverInstanceType']['UNIVER_SHEET'])[_0x12d98f(0x48c)]();_0x15946f&&_0x171892&&this['_updateLocalCursor'](_0x171892[_0x12d98f(0x3de)](),_0x15946f);}['_toggleOffline'](){const _0x1a3bd1=_0x32171b;this[_0x1a3bd1(0x2c6)]=!0x1;}};N=C([S(0x2,(0x0,n['Inject'])(n[_0x32171b(0x25b)])),S(0x3,(0x0,n[_0x32171b(0x329)])(k)),S(0x4,(0x0,n['Inject'])(t[_0x32171b(0x26d)])),S(0x5,n['IUniverInstanceService']),S(0x6,n[_0x32171b(0x2d2)]),S(0x7,(0x0,n[_0x32171b(0x329)])(g['RefRangeService']))],N);function ye(_0x6e79cd){const _0x5ce23a=_0x32171b;let _0x585e8a;try{_0x585e8a=JSON[_0x5ce23a(0x46e)](_0x6e79cd);}catch{return null;}if(typeof _0x585e8a!='object'||!_0x585e8a)return null;let _0x18e8b5=_0x585e8a;if(_0x18e8b5['kind']!=='slide-element-selection'||typeof _0x18e8b5[_0x5ce23a(0x3fc)]!=_0x5ce23a(0x3b2)||typeof _0x18e8b5[_0x5ce23a(0x3d9)]!=_0x5ce23a(0x3b2))return null;let _0x372108=Array[_0x5ce23a(0x3c4)](_0x18e8b5[_0x5ce23a(0x488)])?_0x18e8b5[_0x5ce23a(0x488)]['filter'](_0xa41867=>typeof _0xa41867=='string'):[],_0x48e5db=typeof _0x18e8b5[_0x5ce23a(0x40b)]=='string'?_0x18e8b5[_0x5ce23a(0x40b)]:null;return{'kind':_0x5ce23a(0x36d),'unitId':_0x18e8b5['unitId'],'subUnitId':_0x18e8b5[_0x5ce23a(0x3d9)],'selectedIds':_0x372108,'focusedId':_0x48e5db};}let P=class extends n['RxDisposable']{get[_0x32171b(0x1e0)](){const _0x55fb79=_0x32171b;return this[_0x55fb79(0x3df)][_0x55fb79(0x2c8)]();}get[_0x32171b(0x2e4)](){const _0x314ab1=_0x32171b;return this[_0x314ab1(0x409)][_0x314ab1(0x2c8)]();}constructor(_0x3ed51e,_0x4308ef,_0x112b7a,_0x3a9434,_0x59bb1e){const _0x17326a=_0x32171b;super(),this[_0x17326a(0x486)]=_0x3ed51e,this[_0x17326a(0x340)]=_0x4308ef,this[_0x17326a(0x40e)]=_0x112b7a,this[_0x17326a(0x209)]=_0x3a9434,this['_slideDrawingStateService']=_0x59bb1e,x(this,_0x17326a(0x2c6),!0x1),x(this,_0x17326a(0x35c),!0x1),x(this,_0x17326a(0x3df),new i[(_0x17326a(0x3fb))](new Map())),x(this,_0x17326a(0x202),this[_0x17326a(0x3df)][_0x17326a(0x1a4)]()),x(this,_0x17326a(0x409),new i[(_0x17326a(0x3fb))]([])),x(this,_0x17326a(0x251),this[_0x17326a(0x409)][_0x17326a(0x1fa)]((0x0,i['debounceTime'])(0x12c))),x(this,_0x17326a(0x444),(0x0,n[_0x17326a(0x442)])(_0x1c97e8=>{const _0x277b69=_0x17326a;let _0x2eeab5=_0x1c97e8[_0x277b69(0x366)];if(!_0x2eeab5||_0x2eeab5['unitId']!==this['unitID'])return;let _0x25b7d4={'kind':_0x277b69(0x36d),'unitId':_0x2eeab5[_0x277b69(0x3fc)],'subUnitId':_0x2eeab5[_0x277b69(0x3d9)],'selectedIds':_0x1c97e8[_0x277b69(0x488)][_0x277b69(0x378)](_0x21aea0=>typeof _0x21aea0==_0x277b69(0x3b2)),'focusedId':_0x1c97e8['focusedId']},_0x3326a6={'eventID':p['CollaborationEvent'][_0x277b69(0x484)],'data':{'unitID':this['unitID'],'memberID':this[_0x277b69(0x340)][_0x277b69(0x3a5)](),'selection':JSON['stringify'](_0x25b7d4)}};this[_0x277b69(0x340)]['send'](_0x3326a6,this[_0x277b69(0x486)]);},0x64));}[_0x32171b(0x376)](){const _0x5e6f22=_0x32171b;super['dispose'](),this[_0x5e6f22(0x3df)][_0x5e6f22(0x1f5)](new Map()),this[_0x5e6f22(0x3df)][_0x5e6f22(0x3e9)](),this[_0x5e6f22(0x409)]['next']([]),this[_0x5e6f22(0x409)]['complete']();}['init'](){const _0x219ce3=_0x32171b;this[_0x219ce3(0x35c)]||(this['_init']=!0x0,this[_0x219ce3(0x340)]['sessionStatus$'][_0x219ce3(0x1fa)]((0x0,i['takeUntil'])(this[_0x219ce3(0x273)]))['subscribe'](_0xb6c010=>{const _0x12ace2=_0x219ce3;_0xb6c010===t[_0x12ace2(0x31d)][_0x12ace2(0x2e9)]?this[_0x12ace2(0x230)]():this[_0x12ace2(0x436)]();}),this[_0x219ce3(0x340)]['event$'][_0x219ce3(0x1fa)]((0x0,i[_0x219ce3(0x38d)])(this[_0x219ce3(0x273)]))[_0x219ce3(0x2b4)](_0x29e0e5=>{const _0x10bef1=_0x219ce3;let _0x59514c=_0x29e0e5['eventID'];_0x59514c===p[_0x10bef1(0x375)][_0x10bef1(0x484)]&&this['_onCursorUpdate'](_0x29e0e5),_0x59514c===p[_0x10bef1(0x375)][_0x10bef1(0x365)]&&this[_0x10bef1(0x3a8)](_0x29e0e5);}),this[_0x219ce3(0x46a)]['state$'][_0x219ce3(0x1fa)]((0x0,i[_0x219ce3(0x38d)])(this[_0x219ce3(0x273)]))[_0x219ce3(0x2b4)](_0x36fde7=>{const _0x24f816=_0x219ce3;this[_0x24f816(0x2c6)]&&this[_0x24f816(0x444)](_0x36fde7);}));}['_onCursorUpdate'](_0x18256e){const _0x1e4a14=_0x32171b;var _0x343fd1,_0x3979e7,_0x2c02d8,_0x324c76;let {memberID:_0x336a0d,selection:_0x56054a}=_0x18256e[_0x1e4a14(0x274)];if(_0x336a0d===((_0x343fd1=(_0x3979e7=this[_0x1e4a14(0x340)])['getMemberID'])==null?void 0x0:_0x343fd1[_0x1e4a14(0x425)](_0x3979e7)))return;let _0x26b3d0=ye(_0x56054a);if(!_0x26b3d0||_0x26b3d0['unitId']!==this['unitID'])return;let _0x14af78=(_0x2c02d8=(_0x324c76=this[_0x1e4a14(0x209)]['getMember'](this[_0x1e4a14(0x486)],_0x336a0d))==null?void 0x0:_0x324c76[_0x1e4a14(0x1c3)])==null?_0x1e4a14(0x2df):_0x2c02d8,_0x515899={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x336a0d),'name':_0x14af78,'unitId':_0x26b3d0['unitId'],'subUnitId':_0x26b3d0[_0x1e4a14(0x3d9)],'selectedIds':_0x26b3d0[_0x1e4a14(0x488)],'focusedId':_0x26b3d0['focusedId'],'selection':_0x56054a},_0x364073=new Map(this[_0x1e4a14(0x1e0)]);_0x364073['set'](_0x336a0d,_0x515899),this[_0x1e4a14(0x3df)][_0x1e4a14(0x1f5)](_0x364073);}[_0x32171b(0x3a8)](_0x2d859b){const _0x44a282=_0x32171b;let {memberID:_0x3838d2}=_0x2d859b['data'],_0x5f326b=new Map(this[_0x44a282(0x1e0)]);_0x5f326b[_0x44a282(0x37f)](_0x3838d2),this['_cursorInfo$'][_0x44a282(0x1f5)](_0x5f326b);}[_0x32171b(0x230)](){const _0x3ed4cc=_0x32171b;this[_0x3ed4cc(0x2c6)]=!0x0,this[_0x3ed4cc(0x444)](this['_slideDrawingStateService'][_0x3ed4cc(0x3b9)]());}['_toggleOffline'](){this['_online']=!0x1;}};P=C([S(0x2,(0x0,n[_0x32171b(0x329)])(k)),S(0x3,(0x0,n['Inject'])(t[_0x32171b(0x26d)])),S(0x4,(0x0,n[_0x32171b(0x329)])(_['ISlideDrawingStateService']))],P);let F=class extends n[_0x32171b(0x467)]{constructor(_0x188309,_0x50cf27,_0x242f6b){const _0x50a26e=_0x32171b;super(),this[_0x50a26e(0x2c7)]=_0x188309,this['_injector']=_0x50cf27,this[_0x50a26e(0x387)]=_0x242f6b,x(this,_0x50a26e(0x2d9),new Map()),x(this,_0x50a26e(0x48d),new i[(_0x50a26e(0x318))]()),this[_0x50a26e(0x35c)]();}['dispose'](){const _0x42a90d=_0x32171b;super[_0x42a90d(0x376)](),this['_entityInit$']['complete'](),this['_entities'][_0x42a90d(0x19f)](_0x2a53b8=>_0x2a53b8[_0x42a90d(0x376)]());}[_0x32171b(0x399)](_0x2a197e){const _0x43f2de=_0x32171b;return this[_0x43f2de(0x2d9)]['has'](_0x2a197e)?this[_0x43f2de(0x2d9)]['get'](_0x2a197e)['cursorInfo$']:this[_0x43f2de(0x48d)][_0x43f2de(0x1fa)]((0x0,i[_0x43f2de(0x378)])(_0x38fed3=>_0x38fed3['unitID']===_0x2a197e),(0x0,i[_0x43f2de(0x374)])(_0x58b55e=>_0x58b55e['cursorInfo$']));}[_0x32171b(0x35c)](){const _0x392f03=_0x32171b;this['_univerInstanceService'][_0x392f03(0x1c8)](n[_0x392f03(0x212)][_0x392f03(0x370)])[_0x392f03(0x1fa)]((0x0,i[_0x392f03(0x38d)])(this[_0x392f03(0x273)]))[_0x392f03(0x2b4)](async _0x549e4e=>{const _0x19b26=_0x392f03;let _0x23c184=_0x549e4e[_0x19b26(0x1e4)][_0x19b26(0x261)](),_0x2d1bbf=await this[_0x19b26(0x180)](_0x23c184);this['_entityInit$']['next'](_0x2d1bbf),this[_0x19b26(0x2d9)]['set'](_0x23c184,_0x2d1bbf);}),this[_0x392f03(0x2c7)][_0x392f03(0x1c8)](n[_0x392f03(0x212)][_0x392f03(0x304)])[_0x392f03(0x1fa)]((0x0,i[_0x392f03(0x38d)])(this[_0x392f03(0x273)]))['pipe']((0x0,i['filter'])(_0x50f971=>!_0x50f971[_0x392f03(0x1e4)][_0x392f03(0x261)]()['startsWith']('__')))['subscribe'](async _0x4469dd=>{const _0x4f9297=_0x392f03;let {unit:_0x2853ed}=_0x4469dd,_0x5c95c7=_0x2853ed['getUnitId'](),_0x3896a9=await this[_0x4f9297(0x1ac)](_0x5c95c7);this[_0x4f9297(0x48d)][_0x4f9297(0x1f5)](_0x3896a9),this[_0x4f9297(0x2d9)][_0x4f9297(0x30a)](_0x5c95c7,_0x3896a9);}),this['_univerInstanceService'][_0x392f03(0x1c8)](n[_0x392f03(0x212)][_0x392f03(0x452)])[_0x392f03(0x1fa)]((0x0,i['takeUntil'])(this[_0x392f03(0x273)]))[_0x392f03(0x2b4)](async _0x139009=>{const _0x2b1058=_0x392f03;let _0xaf651c=_0x139009[_0x2b1058(0x1e4)][_0x2b1058(0x261)](),_0x555b27=await this[_0x2b1058(0x401)](_0xaf651c);this[_0x2b1058(0x48d)]['next'](_0x555b27),this[_0x2b1058(0x2d9)][_0x2b1058(0x30a)](_0xaf651c,_0x555b27);}),this[_0x392f03(0x2c7)][_0x392f03(0x1c8)](n[_0x392f03(0x212)][_0x392f03(0x194)])[_0x392f03(0x1fa)]((0x0,i[_0x392f03(0x38d)])(this[_0x392f03(0x273)]))[_0x392f03(0x2b4)](async _0x243997=>{const _0x85f48c=_0x392f03;let _0x1ebf53=_0x243997[_0x85f48c(0x1e4)][_0x85f48c(0x261)](),_0x4078e7=await this[_0x85f48c(0x367)](_0x1ebf53);this[_0x85f48c(0x48d)][_0x85f48c(0x1f5)](_0x4078e7),this['_entities']['set'](_0x1ebf53,_0x4078e7);}),(0x0,i['merge'])(this['_univerInstanceService'][_0x392f03(0x1f9)](n['UniverInstanceType'][_0x392f03(0x304)]),this['_univerInstanceService'][_0x392f03(0x1f9)](n[_0x392f03(0x212)][_0x392f03(0x370)]),this[_0x392f03(0x2c7)][_0x392f03(0x1f9)](n[_0x392f03(0x212)][_0x392f03(0x452)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](n[_0x392f03(0x212)][_0x392f03(0x194)]))[_0x392f03(0x1fa)]((0x0,i[_0x392f03(0x38d)])(this['dispose$']))[_0x392f03(0x2b4)](_0x5b05ad=>{const _0x5da541=_0x392f03;let _0x2fa43c=_0x5b05ad[_0x5da541(0x261)](),_0x22dc23=this[_0x5da541(0x2d9)]['get'](_0x2fa43c);_0x22dc23&&(_0x22dc23[_0x5da541(0x376)](),this['_entities'][_0x5da541(0x37f)](_0x2fa43c));});}async['_startSheetCollabCursor'](_0x49f39a){const _0x2cdb3d=_0x32171b;let _0x458dba=await this[_0x2cdb3d(0x387)][_0x2cdb3d(0x2bb)](_0x49f39a),_0x30de64=this[_0x2cdb3d(0x2e6)][_0x2cdb3d(0x361)](N,_0x49f39a,_0x458dba);return _0x30de64['init'](),_0x30de64;}async[_0x32171b(0x1ac)](_0x30e5bf){const _0x666653=_0x32171b;let _0x210f89=await this['_collabSessionService'][_0x666653(0x2bb)](_0x30e5bf),_0x466434=this[_0x666653(0x2e6)][_0x666653(0x361)](M,_0x30e5bf,_0x210f89);return _0x466434[_0x666653(0x302)](),_0x466434;}async[_0x32171b(0x401)](_0x27ecc6){const _0x3bf132=_0x32171b;let _0x47529e=await this[_0x3bf132(0x387)][_0x3bf132(0x2bb)](_0x27ecc6),_0x328c3f=this[_0x3bf132(0x2e6)][_0x3bf132(0x361)](P,_0x27ecc6,_0x47529e);return _0x328c3f[_0x3bf132(0x302)](),_0x328c3f;}async[_0x32171b(0x367)](_0x1c4c0f){const _0xd7c30=_0x32171b;let _0x32208a=await this['_collabSessionService'][_0xd7c30(0x2bb)](_0x1c4c0f),_0x1a5c66=this[_0xd7c30(0x2e6)][_0xd7c30(0x361)](A,_0x1c4c0f,_0x32208a);return _0x1a5c66[_0xd7c30(0x302)](),_0x1a5c66;}};F=C([S(0x0,n[_0x32171b(0x289)]),S(0x1,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x25b)])),S(0x2,(0x0,n['Inject'])(t[_0x32171b(0x311)]))],F);let I=class extends n[_0x32171b(0x467)]{constructor(_0x50f566,_0x51b0d1,_0xa633ff){const _0xc91454=_0x32171b;super(),this[_0xc91454(0x427)]=_0x50f566,this[_0xc91454(0x38b)]=_0x51b0d1,this[_0xc91454(0x3b0)]=_0xa633ff,x(this,_0xc91454(0x33e),new Set()),x(this,_0xc91454(0x280),!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,_0xc91454(0x326),new Map()),this['_init']();}['dispose'](){const _0x13a04a=_0x32171b;this[_0x13a04a(0x2b3)](),super[_0x13a04a(0x376)]();}[_0x32171b(0x35c)](){const _0x101c69=_0x32171b;let _0x4689b8=this[_0x101c69(0x38b)]['getCollabCursors$'](this[_0x101c69(0x427)][_0x101c69(0x3fc)]);this[_0x101c69(0x3ec)]((0x0,n[_0x101c69(0x216)])((0x0,i[_0x101c69(0x3c1)])([_0x4689b8,this[_0x101c69(0x427)][_0x101c69(0x1e4)][_0x101c69(0x28e)],this[_0x101c69(0x3b0)][_0x101c69(0x1fc)]])[_0x101c69(0x1fa)]((0x0,i[_0x101c69(0x38d)])(this[_0x101c69(0x273)]))['subscribe'](([_0x1bc4dc])=>{const _0x4cac5d=_0x101c69;let _0x1ebcee=this['_context']['unit'][_0x4cac5d(0x39e)](),_0x5876a2=new Map();_0x1bc4dc[_0x4cac5d(0x19f)]((_0x309cd9,_0x481e77)=>{const _0x38f0ac=_0x4cac5d;_0x309cd9['subUnitId']===_0x1ebcee&&_0x5876a2[_0x38f0ac(0x30a)](_0x481e77,{..._0x309cd9,'color':this[_0x38f0ac(0x3b0)]['getColorFromTheme'](_0x309cd9[_0x38f0ac(0x19a)])});}),this['_latestCursors']=_0x5876a2,this['_scheduleRender']();})));let _0x1d78a1=this[_0x101c69(0x427)][_0x101c69(0x3e6)];this[_0x101c69(0x3ec)]((0x0,n[_0x101c69(0x216)])(_0x1d78a1[_0x101c69(0x1ea)][_0x101c69(0x1fa)]((0x0,i[_0x101c69(0x38d)])(this[_0x101c69(0x273)]))[_0x101c69(0x2b4)](()=>{const _0x53752a=_0x101c69;this[_0x53752a(0x419)]||this['_scheduleRender']();})));}['_scheduleRender'](){const _0x231b30=_0x32171b;this[_0x231b30(0x280)]||(this[_0x231b30(0x280)]=!0x0,Promise[_0x231b30(0x1ee)]()[_0x231b30(0x22f)](()=>{const _0x198499=_0x231b30;this[_0x198499(0x280)]=!0x1,this['_render']();}));}[_0x32171b(0x42f)](){const _0x33488e=_0x32171b;this[_0x33488e(0x2b3)]();let _0x155088=this[_0x33488e(0x427)][_0x33488e(0x1e4)]['getActivePageId'](),_0x1102ad=[];if(this[_0x33488e(0x326)][_0x33488e(0x19f)]((_0x3fb0d2,_0xf09216)=>{const _0x7e2b91=_0x33488e;_0x3fb0d2[_0x7e2b91(0x3d9)]===_0x155088&&_0x3fb0d2[_0x7e2b91(0x488)][_0x7e2b91(0x19f)](_0x26d837=>{const _0x291069=_0x7e2b91;let _0x225bac=(0x0,e[_0x291069(0x213)])(_0x3fb0d2[_0x291069(0x3fc)],_0x26d837),_0xf9bdce=this['_getSceneObjectByKey'](_0x225bac);if(!_0xf9bdce)return;let _0x48eae8=this[_0x291069(0x24d)](_0xf9bdce);_0x1102ad[_0x291069(0x18d)](new pe(_0x291069(0x331)+_0xf09216+'-'+_0x26d837,{..._0x3fb0d2,'left':_0x48eae8[_0x291069(0x41e)],'top':_0x48eae8[_0x291069(0x3b4)],'width':_0x48eae8[_0x291069(0x33c)],'height':_0x48eae8[_0x291069(0x35a)],'angle':_0xf9bdce[_0x291069(0x3e0)],'evented':!0x1,'zIndex':O}));});}),_0x1102ad[_0x33488e(0x1f1)]===0x0){this[_0x33488e(0x427)][_0x33488e(0x3e6)]['makeDirty'](!0x0);return;}this[_0x33488e(0x419)]=!0x0,this[_0x33488e(0x427)]['scene'][_0x33488e(0x332)](_0x1102ad,O),this['_isApplyingOverlays']=!0x1,this[_0x33488e(0x33e)]=new Set(_0x1102ad),this['_context']['scene'][_0x33488e(0x469)](!0x0);}[_0x32171b(0x2b3)](){const _0x67abd1=_0x32171b;let _0x3a0a85=Array[_0x67abd1(0x461)](this[_0x67abd1(0x33e)]);if(_0x3a0a85[_0x67abd1(0x1f1)]===0x0)return;let _0x4943a4=this[_0x67abd1(0x427)][_0x67abd1(0x3e6)];_0x67abd1(0x2c2)in _0x4943a4&&typeof _0x4943a4[_0x67abd1(0x2c2)]==_0x67abd1(0x2f0)?_0x4943a4[_0x67abd1(0x2c2)](_0x3a0a85):_0x3a0a85[_0x67abd1(0x19f)](_0x2fd736=>{const _0x24b904=_0x67abd1;_0x24b904(0x2a5)in _0x4943a4&&typeof _0x4943a4[_0x24b904(0x2a5)]==_0x24b904(0x2f0)?_0x4943a4[_0x24b904(0x2a5)](_0x2fd736):_0x2fd736[_0x24b904(0x376)]();}),this['_cursors']['clear'](),_0x4943a4[_0x67abd1(0x469)](!0x0);}[_0x32171b(0x296)](_0xeb5361){const _0x24d789=_0x32171b;var _0x50fe47,_0x5eb651,_0x5e2f12;let _0x270246=this[_0x24d789(0x427)][_0x24d789(0x3e6)];return(_0x50fe47=(_0x5eb651=(_0x5e2f12=_0x270246['getObjectIncludeInGroup'])==null?void 0x0:_0x5e2f12[_0x24d789(0x425)](_0x270246,_0xeb5361))==null?_0x270246['getObject'](_0xeb5361):_0x5eb651)==null?null:_0x50fe47;}[_0x32171b(0x24d)](_0x4518f9){const _0x25ac9e=_0x32171b;var _0x52a87b,_0x21a7b6;let _0x5f2d4c=_0x4518f9;return(_0x52a87b=(_0x21a7b6=_0x5f2d4c[_0x25ac9e(0x2a0)])==null?void 0x0:_0x21a7b6[_0x25ac9e(0x425)](_0x5f2d4c))==null?{'left':_0x4518f9[_0x25ac9e(0x41e)],'top':_0x4518f9['top'],'width':_0x4518f9[_0x25ac9e(0x33c)],'height':_0x4518f9[_0x25ac9e(0x35a)]}:_0x52a87b;}};I=C([S(0x1,(0x0,n[_0x32171b(0x329)])(F)),S(0x2,(0x0,n['Inject'])(n[_0x32171b(0x405)]))],I);const L=_0x32171b(0x3cc);var be=class{constructor(_0x2acad9,_0x59f3ee,_0x2c1363,_0x4bf5b7){const _0x354e55=_0x32171b;this[_0x354e55(0x382)]=_0x2acad9,this[_0x354e55(0x272)]=_0x59f3ee,this[_0x354e55(0x306)]=_0x2c1363,this[_0x354e55(0x398)]=_0x4bf5b7,x(this,_0x354e55(0x3c0),[]),x(this,'_anchor',null),x(this,_0x354e55(0x373),null),x(this,_0x354e55(0x327),null),x(this,'_hideTimer',null),x(this,_0x354e55(0x3bc),null),this[_0x354e55(0x42f)]();}set[_0x32171b(0x35e)](_0x554de3){const _0x2fefa6=_0x32171b;_0x554de3?(this[_0x2fefa6(0x327)]&&this['_anchorDot'][_0x2fefa6(0x3c9)](),this[_0x2fefa6(0x373)]&&this[_0x2fefa6(0x373)][_0x2fefa6(0x1d1)]()):(this[_0x2fefa6(0x327)]&&this[_0x2fefa6(0x327)][_0x2fefa6(0x1d1)](),this[_0x2fefa6(0x373)]&&this['_textBubble']['hide']());}['dispose'](){const _0x37f540=_0x32171b;for(let _0x196bb6 of this[_0x37f540(0x3c0)])_0x196bb6[_0x37f540(0x376)]();this[_0x37f540(0x373)]&&this['_textBubble'][_0x37f540(0x376)](),this[_0x37f540(0x327)]&&this['_anchorDot'][_0x37f540(0x376)](),this[_0x37f540(0x1e1)]&&this[_0x37f540(0x1e1)]['dispose'](),this[_0x37f540(0x3bc)]&&this[_0x37f540(0x3bc)]();}[_0x32171b(0x42f)](){const _0x508357=_0x32171b;let {_docSkeleton:_0x3cfd8b,_document:_0x1e220d}=this,{color:_0x5c3bfe,name:_0x4df4f0,ranges:_0x2671cf}=this['_cursor'],_0x5c75be=_0x1e220d['getOffsetConfig'](),{docsLeft:_0x1b4ae3,docsTop:_0x139a16}=_0x5c75be,_0x19cc00=new f[(_0x508357(0x324))](_0x5c75be,_0x3cfd8b);for(let {startOffset:_0x2cce2e,endOffset:_0x45603d,rangeType:_0x160e8e,segmentId:_0x4af7d4,segmentPage:_0x1fc005,collapsed:_0xed6beb,isActive:_0x30fff4}of _0x2671cf){let _0x4e2493=_0x3cfd8b[_0x508357(0x2ff)](_0x2cce2e,!0x0,_0x4af7d4,_0x1fc005),_0x4139ee=_0x3cfd8b[_0x508357(0x2ff)](_0x45603d,!0x0,_0x4af7d4,_0x1fc005);if(_0x4139ee==null&&(_0x4139ee=_0x3cfd8b['findNodePositionByCharIndex'](_0x45603d-0x1,!0x1,_0x4af7d4,_0x1fc005)),_0x30fff4){let {contentBoxPointGroup:_0x264a04}=_0x19cc00['getRangePointData'](_0x4139ee,_0x4139ee);if(_0x264a04['length']===0x0)continue;this['_drawAnchor'](_0x5c3bfe,_0x264a04,_0x1b4ae3,_0x139a16,_0x4df4f0),this['_eventUnsubscribe']=this[_0x508357(0x344)]();}if(_0x4e2493&&_0x4139ee){if(_0x160e8e===n['DOC_RANGE_TYPE'][_0x508357(0x21e)]){var _0x33e50b;let {pointGroup:_0x285715}=(_0x33e50b=new f[(_0x508357(0x447))](_0x5c75be,_0x3cfd8b)[_0x508357(0x354)](_0x4e2493,_0x4139ee))==null?{}:_0x33e50b;if(_0x285715==null||_0x285715[_0x508357(0x1f1)]===0x0)continue;this['_drawRectRange'](_0x5c3bfe,_0x285715,_0x1b4ae3,_0x139a16);}else{if(!_0xed6beb){let {borderBoxPointGroup:_0x131233}=_0x19cc00[_0x508357(0x354)](_0x4e2493,_0x4139ee);if(_0x131233[_0x508357(0x1f1)]===0x0)continue;this[_0x508357(0x34d)](_0x5c3bfe,_0x131233,_0x1b4ae3,_0x139a16);}}}}}['_drawAnchor'](_0x4bb73c,_0xff6c4,_0x28dd1f,_0x3c5b44,_0x484407){const _0x24cdae=_0x32171b;let {left:_0x58dddc,top:_0x290a01,height:_0x5d2534}=this[_0x24cdae(0x30b)](_0xff6c4),_0x408d08=1.5/this[_0x24cdae(0x247)](),_0x13dd86=new u[(_0x24cdae(0x305))](L+(0x0,n['generateRandomId'])(0x6),{'left':_0x58dddc+_0x28dd1f-_0x408d08,'top':_0x290a01+_0x3c5b44,'height':_0x5d2534,'width':1.5,'fill':_0x4bb73c||(0x0,u['getColor'])(n[_0x24cdae(0x435)][_0x24cdae(0x24c)],0x0),'strokeWidth':_0x408d08,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x24cdae(0x1e1)]=_0x13dd86,this[_0x24cdae(0x272)][_0x24cdae(0x264)](_0x13dd86,f[_0x24cdae(0x1f6)]);let _0x20fcfd=new u[(_0x24cdae(0x305))](L+(0x0,n[_0x24cdae(0x470)])(0x6),{'left':_0x58dddc+_0x28dd1f-_0x408d08,'top':_0x290a01+_0x3c5b44-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x4bb73c||(0x0,u[_0x24cdae(0x246)])(n[_0x24cdae(0x435)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x4bb73c||(0x0,u[_0x24cdae(0x246)])(n[_0x24cdae(0x435)][_0x24cdae(0x24c)],0x0),'evented':!0x1});this[_0x24cdae(0x327)]=_0x20fcfd,this['_scene'][_0x24cdae(0x264)](_0x20fcfd,f[_0x24cdae(0x1f6)]);let _0xf7b0c7=new D(L+(0x0,n[_0x24cdae(0x470)])(0x6),{'left':_0x58dddc+_0x28dd1f-_0x408d08,'top':_0x290a01+_0x3c5b44-0x14,'text':_0x484407,'color':_0x4bb73c});this['_textBubble']=_0xf7b0c7,this[_0x24cdae(0x272)][_0x24cdae(0x264)](_0xf7b0c7,f[_0x24cdae(0x1f6)]),this[_0x24cdae(0x35e)]=!0x1;}[_0x32171b(0x344)](){const _0xb9c20=_0x32171b;let _0x1ad28a=this[_0xb9c20(0x1e1)][_0xb9c20(0x3c2)][_0xb9c20(0x226)](()=>{this['_hover']=!0x0;}),_0x5d948d=this['_anchor'][_0xb9c20(0x218)][_0xb9c20(0x226)](()=>{const _0x13589f=_0xb9c20;this[_0x13589f(0x3e1)]&&clearTimeout(this[_0x13589f(0x3e1)]),this[_0x13589f(0x3e1)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0xc627d=_0xb9c20;_0x1ad28a['unsubscribe'](),_0x5d948d[_0xc627d(0x275)]();};}[_0x32171b(0x34d)](_0xd55b1e,_0x27daae,_0x8c7f69,_0x1672ff){const _0x566f57=_0x32171b;let _0x15a2d5=0.2,_0x4a419d=new n[(_0x566f57(0x30f))](_0xd55b1e)[_0x566f57(0x3ba)](_0x15a2d5)[_0x566f57(0x27c)](),_0x263229=new u[(_0x566f57(0x1b4))](_0x566f57(0x479)+(0x0,n[_0x566f57(0x470)])(0x6),{'pointsGroup':_0x27daae,'fill':_0x4a419d||(0x0,u[_0x566f57(0x246)])(n[_0x566f57(0x435)][_0x566f57(0x24c)],_0x15a2d5),'left':_0x8c7f69,'top':_0x1672ff,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x566f57(0x3c0)][_0x566f57(0x18d)](_0x263229),this['_scene'][_0x566f57(0x264)](_0x263229,f['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x2449fc,_0x3099bf,_0x6b5a3,_0x58cb6f){const _0xc82e9b=_0x32171b;let _0x1a1748=0.2,_0x4493fc=new n[(_0xc82e9b(0x30f))](_0x2449fc)[_0xc82e9b(0x3ba)](_0x1a1748)[_0xc82e9b(0x27c)](),_0x15dc33=new u[(_0xc82e9b(0x1b4))](_0xc82e9b(0x2ae)+(0x0,n[_0xc82e9b(0x470)])(0x6),{'pointsGroup':_0x3099bf,'fill':_0x4493fc||(0x0,u['getColor'])(n[_0xc82e9b(0x435)]['black'],_0x1a1748),'left':_0x6b5a3,'top':_0x58cb6f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xc82e9b(0x3c0)][_0xc82e9b(0x18d)](_0x15dc33),this[_0xc82e9b(0x272)][_0xc82e9b(0x264)](_0x15dc33,f[_0xc82e9b(0x1f6)]);}['_getAnchorBounding'](_0x167945){let _0x5609d4=_0x167945[0x0],_0x1c3489=_0x5609d4[0x0],_0x1db4d6=_0x5609d4[0x2],{x:_0x2a28ee,y:_0x12a2cf}=_0x1c3489,{x:_0x117585,y:_0x2dcca4}=_0x1db4d6;return{'left':_0x2a28ee,'top':_0x12a2cf,'width':_0x117585-_0x2a28ee,'height':_0x2dcca4-_0x12a2cf};}[_0x32171b(0x247)](){const _0x1a0041=_0x32171b;let {scaleX:_0x37ed5b,scaleY:_0x1d373f}=this[_0x1a0041(0x272)][_0x1a0041(0x3c3)]();return Math[_0x1a0041(0x3c5)](_0x37ed5b,_0x1d373f);}};let R=class extends n['RxDisposable']{constructor(_0x4b3baf,_0x206269,_0x1178f5,_0x15b3d4,_0x1c099f){const _0x4d543e=_0x32171b;super(),this[_0x4d543e(0x427)]=_0x4b3baf,this[_0x4d543e(0x47f)]=_0x206269,this['_collabCursorController']=_0x1178f5,this['_commandService']=_0x15b3d4,this[_0x4d543e(0x3b0)]=_0x1c099f,x(this,_0x4d543e(0x1cf),[]),x(this,_0x4d543e(0x33e),[]),this[_0x4d543e(0x35c)]();}[_0x32171b(0x35c)](){const _0x1b37e9=_0x32171b;let _0x223b67=this[_0x1b37e9(0x427)][_0x1b37e9(0x3fc)],_0x5f238e=this[_0x1b37e9(0x47f)];this[_0x1b37e9(0x3ec)]((0x0,i[_0x1b37e9(0x3c1)])([this['_collabCursorController'][_0x1b37e9(0x399)](_0x223b67),this[_0x1b37e9(0x3b0)][_0x1b37e9(0x1fc)]])[_0x1b37e9(0x1fa)]((0x0,a['map'])(([_0x10888d,_0x1a610f])=>({'skeleton':_0x5f238e['getSkeleton'](),'cursors':[..._0x10888d['values']()][_0x1b37e9(0x32c)](_0x1b613a=>({..._0x1b613a,'color':this['_themeService'][_0x1b37e9(0x1ca)](_0x1b613a[_0x1b37e9(0x19a)])}))})))['subscribe'](_0x106d56=>{const _0x17caba=_0x1b37e9;if(this[_0x17caba(0x2b3)](),_0x106d56){let {skeleton:_0x2dbb00,cursors:_0x90ef00}=_0x106d56;this['_updateCollabCursors'](_0x2dbb00,_0x90ef00);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x32171b(0x3cb)](_0x5e651e,_0x4161a2){const _0x521bfa=_0x32171b;let {scene:_0x55d91f,mainComponent:_0x37cccb}=this[_0x521bfa(0x427)],_0x58843f=_0x4161a2[_0x521bfa(0x2d4)](_0x93d93f=>new be(_0x93d93f,_0x55d91f,_0x5e651e,_0x37cccb));this[_0x521bfa(0x1cf)]=_0x58843f,this['_cursors']=_0x4161a2;}[_0x32171b(0x241)](){const _0x4ee823=_0x32171b;this[_0x4ee823(0x2b3)]();let {scene:_0x2eb311,mainComponent:_0x556272}=this[_0x4ee823(0x427)],_0x2feaea=this['_docSkeletonManagerService'][_0x4ee823(0x33f)](),_0x325c32=this['_cursors'][_0x4ee823(0x2d4)](_0x31702a=>new be(_0x31702a,_0x2eb311,_0x2feaea,_0x556272));this[_0x4ee823(0x1cf)]=_0x325c32;}['_removeCollabCursors'](){const _0x2dc1b1=_0x32171b;this['_cursorShapes']['forEach'](_0x95f09f=>_0x95f09f[_0x2dc1b1(0x376)]()),this[_0x2dc1b1(0x1cf)]=[];}[_0x32171b(0x266)](){const _0x5bf764=_0x32171b;let _0x23aa25=[f['SetDocZoomRatioOperation']['id']];this[_0x5bf764(0x3ec)](this[_0x5bf764(0x465)]['onCommandExecuted'](_0x3d0b9c=>{const _0x27a76c=_0x5bf764;_0x23aa25[_0x27a76c(0x32b)](_0x3d0b9c['id'])&&_0x3d0b9c[_0x27a76c(0x219)][_0x27a76c(0x3fc)]===this[_0x27a76c(0x427)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x32171b(0x431)](){const _0x481e36=_0x32171b;this[_0x481e36(0x3ec)]((0x0,n[_0x481e36(0x29d)])(this['_context']['engine'][_0x481e36(0x34f)])['pipe']((0x0,a[_0x481e36(0x378)])(_0x3ab02a=>_0x3ab02a[_0x481e36(0x1ef)]===u[_0x481e36(0x177)][_0x481e36(0x279)]),(0x0,a[_0x481e36(0x1a8)])(0x10))['subscribe'](()=>{const _0x653cb3=_0x481e36;this[_0x653cb3(0x241)]();}));}};R=C([S(0x1,(0x0,n[_0x32171b(0x329)])(m['DocSkeletonManagerService'])),S(0x2,(0x0,n[_0x32171b(0x329)])(F)),S(0x3,n[_0x32171b(0x2d2)]),S(0x4,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x405)]))],R);var xe=class extends u['Shape']{constructor(_0x2106c7,_0x263818){const _0x528456=_0x32171b;if(super(_0x2106c7,_0x263818),x(this,_0x528456(0x185),void 0x0),x(this,_0x528456(0x475),!0x1),x(this,_0x528456(0x3fa),void 0x0),x(this,_0x528456(0x1eb),''),x(this,_0x528456(0x3d3),'top'),x(this,_0x528456(0x1df),void 0x0),x(this,_0x528456(0x44a),void 0x0),x(this,'_highlight',void 0x0),x(this,_0x528456(0x237),0x4),x(this,'_blinkTimer',void 0x0),x(this,_0x528456(0x1bc),void 0x0),x(this,'_isBlinkVisible',!0x0),x(this,_0x528456(0x457),0x0),x(this,_0x528456(0x2dc),_0x528456(0x29f)),_0x263818){var _0x58d869;if(this[_0x528456(0x1c6)](_0x263818),_0x263818[_0x528456(0x456)]&&((_0x58d869=_0x263818[_0x528456(0x18e)])==null?this[_0x528456(0x237)]:_0x58d869)){var _0x177bec;this['_startBlinking']((_0x177bec=_0x263818[_0x528456(0x18e)])==null?this[_0x528456(0x237)]:_0x177bec);}}this[_0x528456(0x3c2)][_0x528456(0x226)](()=>this[_0x528456(0x1c6)]({'hovered':!0x0})),this['onPointerLeave$'][_0x528456(0x226)](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x32171b(0x234)](_0x5913da){this['_offsetY']=_0x5913da;}[_0x32171b(0x1c6)](_0x1f5dea){const _0x49ef0c=_0x32171b;var _0x5d2998,_0x29ed40,_0x1d5c52,_0x5abbdf,_0x1baf9f,_0x46025b,_0x934339,_0xd4b412;this[_0x49ef0c(0x185)]=(_0x5d2998=_0x1f5dea[_0x49ef0c(0x19a)])==null?this['_color']:_0x5d2998,this['_hovered']=(_0x29ed40=_0x1f5dea['hovered'])==null?this[_0x49ef0c(0x475)]:_0x29ed40,this['_range']=(_0x1d5c52=_0x1f5dea[_0x49ef0c(0x3b6)])==null?this['_range']:_0x1d5c52,this[_0x49ef0c(0x1eb)]=(_0x5abbdf=_0x1f5dea[_0x49ef0c(0x1c3)])==null?this['_name']:_0x5abbdf,this[_0x49ef0c(0x3d3)]=(_0x1baf9f=_0x1f5dea[_0x49ef0c(0x453)])==null?this[_0x49ef0c(0x3d3)]:_0x1baf9f,this[_0x49ef0c(0x1df)]=(_0x46025b=_0x1f5dea[_0x49ef0c(0x228)])==null?this[_0x49ef0c(0x1df)]:_0x46025b,this['_showText']=(_0x934339=_0x1f5dea[_0x49ef0c(0x1e8)])==null?this['_showText']:_0x934339,this[_0x49ef0c(0x2dc)]=(_0xd4b412=_0x1f5dea[_0x49ef0c(0x2c0)])==null?this['_labelHorizontalPosition']:_0xd4b412,_0x1f5dea['highlightSecond']!==void 0x0&&(this[_0x49ef0c(0x237)]=_0x1f5dea[_0x49ef0c(0x18e)]),_0x1f5dea['highlight']!==void 0x0&&(this[_0x49ef0c(0x42a)]=_0x1f5dea[_0x49ef0c(0x456)]),_0x1f5dea[_0x49ef0c(0x320)]!==void 0x0&&(this[_0x49ef0c(0x457)]=_0x1f5dea['offsetY']),this[_0x49ef0c(0x434)]({'width':_0x1f5dea[_0x49ef0c(0x33c)],'height':_0x1f5dea['height']});}['onMouseMove'](_0x173e62){const _0xf2f9e1=_0x32171b;let {row:_0x1eacc8,column:_0x3490d8}=_0x173e62;if(_0x1eacc8>=this[_0xf2f9e1(0x3fa)][_0xf2f9e1(0x358)]&&_0x1eacc8<=this[_0xf2f9e1(0x3fa)][_0xf2f9e1(0x26f)]&&_0x3490d8>=this[_0xf2f9e1(0x3fa)][_0xf2f9e1(0x22a)]&&_0x3490d8<=this[_0xf2f9e1(0x3fa)][_0xf2f9e1(0x41c)]){this[_0xf2f9e1(0x1c6)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x28b2e3){const _0xd58071=_0x32171b;this[_0xd58071(0x252)](),this['_isBlinkVisible']=!0x0,this[_0xd58071(0x1bc)]=window['setInterval'](()=>{const _0x1a3d81=_0xd58071;this[_0x1a3d81(0x178)]=!this[_0x1a3d81(0x178)],this[_0x1a3d81(0x469)](!0x0);},0x1f4),this[_0xd58071(0x42c)]=window['setTimeout'](()=>{const _0x5d1f67=_0xd58071;this[_0x5d1f67(0x252)](),this[_0x5d1f67(0x178)]=!0x0,this[_0x5d1f67(0x469)](!0x0);},_0x28b2e3*0x3e8);}[_0x32171b(0x252)](){const _0x598e03=_0x32171b;this[_0x598e03(0x1bc)]&&(window['clearInterval'](this[_0x598e03(0x1bc)]),this[_0x598e03(0x1bc)]=void 0x0),this[_0x598e03(0x42c)]&&(window[_0x598e03(0x393)](this['_blinkTimer']),this[_0x598e03(0x42c)]=void 0x0);}[_0x32171b(0x3a3)](_0x4d4ee1){return!0x1;}[_0x32171b(0x376)](){const _0x20f649=_0x32171b;this[_0x20f649(0x252)](),super['dispose']();}[_0x32171b(0x2aa)](_0x4abd0d){const _0x23cffd=_0x32171b;let _0x4edf43=this[_0x23cffd(0x185)],_0x582111=this[_0x23cffd(0x1df)];if(this['_highlight']&&!this[_0x23cffd(0x178)]&&(_0x4edf43=this[_0x23cffd(0x20d)](this[_0x23cffd(0x185)]),_0x582111=this[_0x23cffd(0x1df)]?this[_0x23cffd(0x20d)](this[_0x23cffd(0x1df)]):void 0x0),u['Rect']['drawWith'](_0x4abd0d,{'width':this[_0x23cffd(0x33c)],'height':this[_0x23cffd(0x35a)],'strokeWidth':this[_0x23cffd(0x303)]||1.5,'stroke':_0x4edf43,'evented':!0x1,'fill':_0x582111}),this[_0x23cffd(0x475)]||this['_showText']){var _0x394e4c;_0x4abd0d[_0x23cffd(0x337)]();let _0x56456f=this[_0x23cffd(0x2dc)]===_0x23cffd(0x41e)?-de(_0x4abd0d,this['_name']):this[_0x23cffd(0x33c)];_0x4abd0d[_0x23cffd(0x2dd)](0x1,0x0,0x0,0x1,_0x56456f,(this[_0x23cffd(0x3d3)]===_0x23cffd(0x222)?0x0:-0x14)+((_0x394e4c=this[_0x23cffd(0x457)])==null?0x0:_0x394e4c)),D[_0x23cffd(0x47e)](_0x4abd0d,{'text':this[_0x23cffd(0x1eb)],'color':_0x4edf43}),_0x4abd0d[_0x23cffd(0x416)]();}}[_0x32171b(0x20d)](_0x422ad0){const _0x50d6b7=_0x32171b;return _0x422ad0[_0x50d6b7(0x43d)]('#')?_0x50d6b7(0x44e)+Number[_0x50d6b7(0x1b7)](_0x422ad0[_0x50d6b7(0x383)](0x1,0x3),0x10)+',\x20'+Number[_0x50d6b7(0x1b7)](_0x422ad0['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x50d6b7(0x1b7)](_0x422ad0['slice'](0x5,0x7),0x10)+_0x50d6b7(0x1e3):_0x422ad0[_0x50d6b7(0x43d)](_0x50d6b7(0x43a))?_0x422ad0['replace'](/[\d.]+\)$/g,_0x50d6b7(0x1b1)):_0x422ad0['startsWith']('rgb')?_0x422ad0[_0x50d6b7(0x1af)](_0x50d6b7(0x48f),'rgba')[_0x50d6b7(0x1af)](')',',\x200.2)'):_0x422ad0;}};let z=class extends n[_0x32171b(0x467)]{constructor(_0x1e0838,_0x294424,_0x5ce1af,_0x59cdbe){const _0x49507e=_0x32171b;super(),this[_0x49507e(0x427)]=_0x1e0838,this['_sheetSkeletonManagerService']=_0x294424,this[_0x49507e(0x38b)]=_0x5ce1af,this[_0x49507e(0x3b0)]=_0x59cdbe,x(this,'_cursors',new Set()),x(this,_0x49507e(0x1ff),null),x(this,_0x49507e(0x391),null),this['_init']();}['_init'](){const _0x497833=_0x32171b;this[_0x497833(0x449)][_0x497833(0x2f3)]['pipe']((0x0,a['takeUntil'])(this[_0x497833(0x273)]),(0x0,a[_0x497833(0x374)])(_0x4afdb6=>{const _0x57e230=_0x497833;if(_0x4afdb6){let _0x2b8692=_0x4afdb6[_0x57e230(0x34a)];return(0x0,i[_0x57e230(0x3c1)])(this[_0x57e230(0x38b)][_0x57e230(0x399)](this[_0x57e230(0x427)][_0x57e230(0x3fc)]),this['_themeService']['currentTheme$'])[_0x57e230(0x1fa)]((0x0,a[_0x57e230(0x2d4)])(([_0x5898c8,_0xa7ccf4])=>{const _0x2ca684=_0x57e230;let _0x35d35f=new Map();return _0x5898c8[_0x2ca684(0x19f)]((_0xd61065,_0x3d8fae)=>{const _0x18c2d4=_0x2ca684;if(_0xd61065[_0x18c2d4(0x1fb)]===_0x2b8692){let _0x5f4150={..._0xd61065};_0x5f4150[_0x18c2d4(0x19a)]=this[_0x18c2d4(0x3b0)]['getColorFromTheme'](_0xd61065['color']),_0x35d35f[_0x18c2d4(0x30a)](_0x3d8fae,_0x5f4150);}}),{'skeleton':_0x4afdb6,'cursors':_0x35d35f};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))[_0x497833(0x2b4)](({skeleton:_0x9d8dce,cursors:_0x466174})=>{const _0x4080ce=_0x497833;this[_0x4080ce(0x2b3)](),_0x9d8dce&&this[_0x4080ce(0x3cb)](_0x9d8dce,_0x466174);}),this['disposeWithMe'](this[_0x497833(0x449)][_0x497833(0x2f3)][_0x497833(0x1fa)]((0x0,a['takeUntil'])(this[_0x497833(0x273)]))[_0x497833(0x2b4)](_0x56472a=>{const _0x44eabd=_0x497833;var _0x1d4de4;if(_0x56472a==null)return;(_0x1d4de4=this[_0x44eabd(0x391)])==null||_0x1d4de4[_0x44eabd(0x275)](),this[_0x44eabd(0x391)]=null;let {skeleton:_0x2e128c}=_0x56472a,{scene:_0x41d9ea}=this[_0x44eabd(0x427)];this[_0x44eabd(0x391)]=_0x41d9ea[_0x44eabd(0x22b)][_0x44eabd(0x226)]((0x0,n[_0x44eabd(0x442)])(_0xa193f2=>{const _0x402c6e=_0x44eabd;var _0x2959fb,_0x3985b9;let {offsetX:_0x47e858,offsetY:_0x63ecba}=_0xa193f2,{x:_0x26c391,y:_0x1fd9e5}=_0x41d9ea[_0x402c6e(0x476)](u[_0x402c6e(0x3ad)]['FromArray']([_0x47e858,_0x63ecba])),{scaleX:_0x1ba71c,scaleY:_0x576e9b}=_0x41d9ea[_0x402c6e(0x3c3)](),_0x334bb6=_0x41d9ea['getViewport'](u[_0x402c6e(0x39d)][_0x402c6e(0x1ba)]),_0x22727e=_0x41d9ea[_0x402c6e(0x478)](u[_0x402c6e(0x3ad)]['FromArray']([_0x26c391,_0x1fd9e5]),_0x334bb6),_0x37bbc7=_0x2e128c[_0x402c6e(0x446)](_0x47e858,_0x63ecba,_0x1ba71c,_0x576e9b,_0x22727e);((_0x2959fb=this[_0x402c6e(0x1ff)])==null?void 0x0:_0x2959fb[_0x402c6e(0x22e)])===_0x37bbc7['column']&&((_0x3985b9=this[_0x402c6e(0x1ff)])==null?void 0x0:_0x3985b9[_0x402c6e(0x27d)])===_0x37bbc7[_0x402c6e(0x27d)]||this[_0x402c6e(0x33e)][_0x402c6e(0x19f)](_0x3aecc9=>{const _0xde6849=_0x402c6e;_0x3aecc9[_0xde6849(0x29b)](_0x37bbc7);});},0x64));})),this['disposeWithMe']((0x0,n[_0x497833(0x216)])(()=>{const _0x1c0263=_0x497833;var _0xc8ac9f;(_0xc8ac9f=this[_0x1c0263(0x391)])==null||_0xc8ac9f['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}[_0x32171b(0x3cb)](_0x358b42,_0x3ef88f){const _0x4795c5=_0x32171b;let _0x157082=this[_0x4795c5(0x449)][_0x4795c5(0x183)]();if(!_0x157082)return;let _0x57bbfa=this[_0x4795c5(0x256)]();if(!_0x57bbfa)return;this['_cursors'][_0x4795c5(0x19f)](_0x5520d2=>{const _0x2bf329=_0x4795c5;_0x5520d2[_0x2bf329(0x469)]();});let {scene:_0x2a31b7}=_0x57bbfa,_0xa1b877=Se(Array[_0x4795c5(0x461)](_0x3ef88f[_0x4795c5(0x3c7)]()))[_0x4795c5(0x2d4)](_0x230886=>{const _0x11d999=_0x4795c5;let {color:_0x40b05f,range:_0x12a395,name:_0x571a75,selection:_0x2e16e9,sheetID:_0xcc1c36}=_0x230886,{startColumn:_0x3c9027,startRow:_0x34bb18,endColumn:_0x2770e7,endRow:_0x518954}=_0x12a395,_0x2023fc=(0x0,v[_0x11d999(0x356)])(_0x34bb18,_0x3c9027,_0x2a31b7,_0x157082),_0x3782ad=(0x0,v['getCoordByCell'])(_0x518954,_0x2770e7,_0x2a31b7,_0x157082),{columnHeaderHeightAndMarginTop:_0x7964dc}=_0x157082,{startX:_0x39e06a,startY:_0x27264c}=_0x2023fc,{endX:_0x1b791b,endY:_0x2dd23a}=_0x3782ad,_0x3b7c2b=_0x1b791b-_0x39e06a,_0x2a6ab8=_0x2dd23a-_0x27264c;return new xe(_0x571a75,{'labelPosition':_0x27264c-_0x7964dc>=0x14?_0x11d999(0x3b4):_0x11d999(0x222),'sheetID':_0xcc1c36,'range':_0x12a395,'color':_0x40b05f,'name':_0x571a75,'selection':_0x2e16e9,'left':_0x39e06a,'top':_0x27264c,'width':_0x3b7c2b,'height':_0x2a6ab8,'evented':!0x1,'zIndex':0x1389});});_0x2a31b7[_0x4795c5(0x332)](_0xa1b877,0x1),this[_0x4795c5(0x33e)]=new Set(_0xa1b877);}[_0x32171b(0x2b3)](){const _0x122ae9=_0x32171b;var _0x56495b;(_0x56495b=this[_0x122ae9(0x33e)])==null||_0x56495b[_0x122ae9(0x19f)](_0x3514a3=>_0x3514a3[_0x122ae9(0x376)]());}[_0x32171b(0x256)](){const _0x1d6331=_0x32171b;return(0x0,v[_0x1d6331(0x351)])(this[_0x1d6331(0x427)][_0x1d6331(0x1e4)],this['_context']);}};z=C([S(0x1,(0x0,n[_0x32171b(0x329)])(v['SheetSkeletonManagerService'])),S(0x2,(0x0,n['Inject'])(F)),S(0x3,(0x0,n['Inject'])(n[_0x32171b(0x405)]))],z);function Se(_0x4c3534){const _0x1ed01f=_0x32171b;let _0x16a7b4=new Map();return _0x4c3534[_0x1ed01f(0x19f)](_0x59514e=>{const _0x9906fa=_0x1ed01f;if(_0x16a7b4[_0x9906fa(0x41a)](_0x59514e['selection'])){let _0x3930af=_0x16a7b4[_0x9906fa(0x3e4)](_0x59514e[_0x9906fa(0x2ca)]);_0x3930af[_0x9906fa(0x1c3)]+=',\x20'+_0x59514e[_0x9906fa(0x1c3)];}else _0x16a7b4[_0x9906fa(0x30a)](_0x59514e['selection'],_0x59514e);}),Array[_0x1ed01f(0x461)](_0x16a7b4[_0x1ed01f(0x3c7)]());}let B=class extends n['RxDisposable']{constructor(_0x15f8a4,_0x4e7248,_0x31d5dd){const _0x3b1617=_0x32171b;super(),this['_context']=_0x15f8a4,this[_0x3b1617(0x38b)]=_0x4e7248,this[_0x3b1617(0x3b0)]=_0x31d5dd,x(this,_0x3b1617(0x33e),new Set()),x(this,_0x3b1617(0x280),!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,'_latestCursors',new Map()),this['_init']();}[_0x32171b(0x376)](){const _0x448278=_0x32171b;this[_0x448278(0x2b3)](),super[_0x448278(0x376)]();}[_0x32171b(0x35c)](){const _0x126661=_0x32171b;let _0x5d41e0=this[_0x126661(0x427)][_0x126661(0x1e4)][_0x126661(0x278)][_0x126661(0x208)],_0x260411=this['_collabCursorController']['getCollabCursors$'](this[_0x126661(0x427)]['unitId']);this[_0x126661(0x3ec)]((0x0,n[_0x126661(0x216)])((0x0,i[_0x126661(0x3c1)])([_0x260411,_0x5d41e0,this[_0x126661(0x3b0)][_0x126661(0x1fc)]])['pipe']((0x0,i[_0x126661(0x38d)])(this['dispose$']))[_0x126661(0x2b4)](([_0x3a74d2,_0x34f672])=>{const _0xbe520d=_0x126661;let _0x453f9a=new Map();_0x3a74d2['forEach']((_0xaf993e,_0x2c992f)=>{const _0x1dd8ae=_0x4167;_0xaf993e[_0x1dd8ae(0x3d9)]===_0x34f672&&_0x453f9a[_0x1dd8ae(0x30a)](_0x2c992f,{..._0xaf993e,'color':this[_0x1dd8ae(0x3b0)]['getColorFromTheme'](_0xaf993e[_0x1dd8ae(0x19a)])});}),this[_0xbe520d(0x326)]=_0x453f9a,this['_scheduleRender']();})));let _0x96e1a9=this[_0x126661(0x427)][_0x126661(0x3e6)];this['disposeWithMe']((0x0,n['toDisposable'])(_0x96e1a9['addObject$']['pipe']((0x0,i[_0x126661(0x38d)])(this[_0x126661(0x273)]))[_0x126661(0x2b4)](()=>{const _0x14ee75=_0x126661;this[_0x14ee75(0x419)]||this[_0x14ee75(0x17a)]();})));}['_scheduleRender'](){const _0x48ec9b=_0x32171b;this[_0x48ec9b(0x280)]||(this[_0x48ec9b(0x280)]=!0x0,Promise[_0x48ec9b(0x1ee)]()[_0x48ec9b(0x22f)](()=>{const _0x3eb166=_0x48ec9b;this['_renderScheduled']=!0x1,this[_0x3eb166(0x42f)]();}));}[_0x32171b(0x42f)](){const _0x44f4bc=_0x32171b;var _0x25a4f7;this[_0x44f4bc(0x2b3)]();let _0x2916bb=(_0x25a4f7=this['_context']['unit']['pageManager'][_0x44f4bc(0x33d)]())==null?void 0x0:_0x25a4f7[_0x44f4bc(0x23c)]();if(!_0x2916bb)return;let _0x264a2e=[];if(this[_0x44f4bc(0x326)]['forEach']((_0x135a66,_0x2fbbdb)=>{const _0x57eab6=_0x44f4bc;_0x135a66[_0x57eab6(0x3d9)]===_0x2916bb&&_0x135a66[_0x57eab6(0x488)][_0x57eab6(0x19f)](_0x9d5fbf=>{const _0x5ce3b6=_0x57eab6;let _0x140575=(0x0,_[_0x5ce3b6(0x3c6)])(_0x135a66[_0x5ce3b6(0x3fc)],_0x135a66[_0x5ce3b6(0x3d9)],_0x9d5fbf),_0x1aabce=this['_getSceneObjectByKey'](_0x140575);if(!_0x1aabce)return;let _0x150369=this[_0x5ce3b6(0x24d)](_0x1aabce);_0x264a2e[_0x5ce3b6(0x18d)](new pe(_0x5ce3b6(0x32d)+_0x2fbbdb+'-'+_0x9d5fbf,{..._0x135a66,'left':_0x150369[_0x5ce3b6(0x41e)],'top':_0x150369[_0x5ce3b6(0x3b4)],'width':_0x150369[_0x5ce3b6(0x33c)],'height':_0x150369[_0x5ce3b6(0x35a)],'angle':_0x1aabce[_0x5ce3b6(0x3e0)],'evented':!0x1,'zIndex':O}));});}),_0x264a2e[_0x44f4bc(0x1f1)]===0x0){this[_0x44f4bc(0x427)]['scene'][_0x44f4bc(0x469)](!0x0);return;}this['_isApplyingOverlays']=!0x0,this[_0x44f4bc(0x427)][_0x44f4bc(0x3e6)]['addObjects'](_0x264a2e,O),this[_0x44f4bc(0x419)]=!0x1,this[_0x44f4bc(0x33e)]=new Set(_0x264a2e),this[_0x44f4bc(0x427)][_0x44f4bc(0x3e6)][_0x44f4bc(0x469)](!0x0);}[_0x32171b(0x2b3)](){const _0x234a65=_0x32171b;let _0x3d0b5a=Array[_0x234a65(0x461)](this[_0x234a65(0x33e)]);if(_0x3d0b5a[_0x234a65(0x1f1)]===0x0)return;let _0x12aeea=this['_context'][_0x234a65(0x3e6)];_0x234a65(0x2c2)in _0x12aeea&&typeof _0x12aeea['removeObjects']==_0x234a65(0x2f0)?_0x12aeea[_0x234a65(0x2c2)](_0x3d0b5a):_0x3d0b5a[_0x234a65(0x19f)](_0x9c0a0d=>{const _0x10f253=_0x234a65;_0x10f253(0x2a5)in _0x12aeea&&typeof _0x12aeea[_0x10f253(0x2a5)]==_0x10f253(0x2f0)?_0x12aeea['removeObject'](_0x9c0a0d):_0x9c0a0d[_0x10f253(0x376)]();}),this[_0x234a65(0x33e)][_0x234a65(0x1da)](),_0x12aeea[_0x234a65(0x469)](!0x0);}['_getSceneObjectByKey'](_0x50ac7a){const _0x4ebece=_0x32171b;var _0x57dc4f,_0x536b51,_0x36befc;let _0x1478ae=this[_0x4ebece(0x427)]['scene'];return(_0x57dc4f=(_0x536b51=(_0x36befc=_0x1478ae[_0x4ebece(0x477)])==null?void 0x0:_0x36befc['call'](_0x1478ae,_0x50ac7a))==null?_0x1478ae[_0x4ebece(0x495)](_0x50ac7a):_0x536b51)==null?null:_0x57dc4f;}[_0x32171b(0x24d)](_0x545674){const _0x49420f=_0x32171b;var _0x4b4dcb,_0xa83b23;let _0x232b6d=_0x545674;return(_0x4b4dcb=(_0xa83b23=_0x232b6d[_0x49420f(0x2a0)])==null?void 0x0:_0xa83b23['call'](_0x232b6d))==null?{'left':_0x545674['left'],'top':_0x545674['top'],'width':_0x545674[_0x49420f(0x33c)],'height':_0x545674[_0x49420f(0x35a)]}:_0x4b4dcb;}};B=C([S(0x1,(0x0,n['Inject'])(F)),S(0x2,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x405)]))],B);let V=class extends n[_0x32171b(0x45a)]{constructor(_0x26ed56,_0xcdf09c,_0x379075,_0xc2371c,_0x43f08b,_0x3356cc){const _0x5b6b19=_0x32171b;super(),this['_beforeCloseService']=_0x26ed56,this['_localCacheService']=_0xcdf09c,this[_0x5b6b19(0x21b)]=_0x379075,this[_0x5b6b19(0x1bf)]=_0xc2371c,this[_0x5b6b19(0x308)]=_0x43f08b,this['_localeService']=_0x3356cc,this[_0x5b6b19(0x482)](),this[_0x5b6b19(0x22d)]();}[_0x32171b(0x482)](){const _0x182279=_0x32171b;this['disposeWithMe'](this[_0x182279(0x359)][_0x182279(0x339)](()=>{const _0x29d0c=_0x182279;if(this['_localCacheService']['saveTaskMap'][_0x29d0c(0x3a1)])return this[_0x29d0c(0x28a)]['t'](_0x29d0c(0x3e7));}));}[_0x32171b(0x22d)](){const _0x106a02=_0x32171b;this['disposeWithMe'](this['_collaborationUIEventService']['event$'][_0x106a02(0x2b4)](_0xf21373=>{const _0x288a20=_0x106a02;_0xf21373['id']===t[_0x288a20(0x2c9)][_0x288a20(0x25c)]&&this[_0x288a20(0x1bf)][_0x288a20(0x1d1)]({'type':o[_0x288a20(0x386)][_0x288a20(0x328)],'content':this['_localeService']['t'](_0x288a20(0x243))}),_0xf21373['id']===t[_0x288a20(0x2c9)][_0x288a20(0x2a7)]&&this['_messageService'][_0x288a20(0x1d1)]({'type':o[_0x288a20(0x386)][_0x288a20(0x328)],'content':this['_localeService']['t'](_0x288a20(0x3ae))}),_0xf21373['id']===t[_0x288a20(0x2c9)]['PERMISSION_DENIED']&&this['_notificationService'][_0x288a20(0x1d1)]({'title':this['_localeService']['t'](_0x288a20(0x270)),'content':this[_0x288a20(0x28a)]['t'](_0x288a20(0x371)),'type':_0x288a20(0x23d),'duration':0x0}),_0xf21373['id']===t[_0x288a20(0x2c9)]['CONFLICT']&&this['_notificationService'][_0x288a20(0x1d1)]({'title':this[_0x288a20(0x28a)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x288a20(0x28a)]['t'](_0x288a20(0x1e9)),'type':_0x288a20(0x23d),'duration':0x0}),_0xf21373['id']===t[_0x288a20(0x2c9)]['JOIN_ROOM_FAILED']&&this[_0x288a20(0x1bf)][_0x288a20(0x1d1)]({'type':o['MessageType'][_0x288a20(0x328)],'content':this[_0x288a20(0x28a)]['t'](_0xf21373[_0x288a20(0x274)]||'')}),_0xf21373['id']===t[_0x288a20(0x2c9)][_0x288a20(0x299)]&&this[_0x288a20(0x1bf)]['show']({'type':o[_0x288a20(0x386)][_0x288a20(0x328)],'content':this['_localeService']['t'](_0x288a20(0x3cf))}),_0xf21373['id']===t[_0x288a20(0x2c9)][_0x288a20(0x2f4)]&&this['_messageService'][_0x288a20(0x1d1)]({'type':o[_0x288a20(0x386)][_0x288a20(0x343)],'content':this[_0x288a20(0x28a)]['t'](_0x288a20(0x41d))}),_0xf21373['id']===t[_0x288a20(0x2c9)][_0x288a20(0x3b7)]&&this['_messageService'][_0x288a20(0x1d1)]({'type':o[_0x288a20(0x386)][_0x288a20(0x343)],'content':this[_0x288a20(0x28a)]['t'](_0x288a20(0x489))});}));}};V=C([S(0x0,r[_0x32171b(0x3ab)]),S(0x1,t[_0x32171b(0x3e3)]),S(0x2,(0x0,n[_0x32171b(0x329)])(t[_0x32171b(0x20c)])),S(0x3,r[_0x32171b(0x34e)]),S(0x4,r[_0x32171b(0x195)]),S(0x5,(0x0,n[_0x32171b(0x329)])(n['LocaleService']))],V);const H=(0x0,n[_0x32171b(0x36f)])(_0x32171b(0x336));let U=class extends n[_0x32171b(0x467)]{constructor(_0x31994d,_0x53a8b2,_0x92bfd1,_0x316204,_0x1eb1bb){const _0x4f4aaa=_0x32171b;super(),this['_urlService']=_0x31994d,this[_0x4f4aaa(0x335)]=_0x53a8b2,this['_commandService']=_0x92bfd1,this[_0x4f4aaa(0x1ed)]=_0x316204,_0x1eb1bb?_0x1eb1bb[_0x4f4aaa(0x182)]()['then'](()=>this[_0x4f4aaa(0x35c)]()):(this['_logService']['debug'](_0x4f4aaa(0x1d9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x32171b(0x35c)](){const _0x459d5e=_0x32171b;let _0x5e54ad=this['_urlService'][_0x459d5e(0x1cd)](_0x459d5e(0x1e4)),_0x278aa3=this[_0x459d5e(0x44b)][_0x459d5e(0x1cd)](_0x459d5e(0x1ef)),_0x5cd29f=this[_0x459d5e(0x44b)][_0x459d5e(0x1cd)](_0x459d5e(0x33b));if(!_0x5e54ad||!_0x278aa3){this[_0x459d5e(0x335)][_0x459d5e(0x2d5)](_0x459d5e(0x1d9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x73fc3b=await this[_0x459d5e(0x1ed)][_0x459d5e(0x2b0)](_0x5e54ad,Number(_0x278aa3),_0x5cd29f);_0x73fc3b&&_0x73fc3b instanceof n['Workbook']&&this[_0x459d5e(0x388)](_0x73fc3b);}async[_0x32171b(0x388)](_0x2cef6c){const _0x1f24dc=_0x32171b;await this[_0x1f24dc(0x239)](_0x2cef6c),_0x2cef6c[_0x1f24dc(0x2f7)][_0x1f24dc(0x1fa)]((0x0,i['takeUntil'])(this[_0x1f24dc(0x273)]))[_0x1f24dc(0x2b4)](_0x543d5c=>{const _0x56f5e6=_0x1f24dc;_0x543d5c&&this[_0x56f5e6(0x392)](_0x543d5c);}),this[_0x1f24dc(0x44b)]['urlChange$'][_0x1f24dc(0x1fa)]((0x0,i['takeUntil'])(this[_0x1f24dc(0x273)]))[_0x1f24dc(0x2b4)](()=>this['_updateSubUnitFromURLParams'](_0x2cef6c));}['_updateURLWithCurrentState'](_0x4bad00,_0x3ef606=!0x1){const _0x36011b=_0x32171b;let _0x5821d4=this[_0x36011b(0x44b)][_0x36011b(0x1cd)](_0x36011b(0x33b));_0x4bad00['getSheetId']()!==_0x5821d4&&this[_0x36011b(0x44b)][_0x36011b(0x319)]('subunit',_0x4bad00['getSheetId'](),_0x3ef606);}async[_0x32171b(0x239)](_0x1d8b9e){const _0x484465=_0x32171b;var _0x4c09ef;let _0x2d58ea=this[_0x484465(0x44b)][_0x484465(0x1cd)]('subunit');if(!_0x2d58ea||!_0x1d8b9e[_0x484465(0x432)](_0x2d58ea)){let _0x479149=_0x1d8b9e[_0x484465(0x1de)]()[0x0],_0xd6e01e=_0x1d8b9e['getSheetBySheetId'](_0x479149);if(!_0xd6e01e)return;this[_0x484465(0x392)](_0xd6e01e,!0x0),await this[_0x484465(0x465)][_0x484465(0x260)](g[_0x484465(0x48b)]['id'],{'unitId':_0x1d8b9e[_0x484465(0x261)](),'subUnitId':_0x479149});return;}((_0x4c09ef=_0x1d8b9e[_0x484465(0x48c)]())==null?void 0x0:_0x4c09ef[_0x484465(0x3de)]())!==_0x2d58ea&&await this[_0x484465(0x465)][_0x484465(0x260)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x1d8b9e[_0x484465(0x261)](),'subUnitId':_0x2d58ea});}};U=C([S(0x0,H),S(0x1,n[_0x32171b(0x1e2)]),S(0x2,n[_0x32171b(0x2d2)]),S(0x3,(0x0,n[_0x32171b(0x329)])(t[_0x32171b(0x415)])),S(0x4,(0x0,n[_0x32171b(0x2a9)])(ee['IRemoteInstanceService']))],U);let W=class{constructor(_0x543eed,_0x17796e){this['_transformService']=_0x543eed,this['_renderManagerService']=_0x17796e;}['transformIMECache'](_0x49643b){const _0x4aa231=_0x32171b;this[_0x4aa231(0x3bf)](_0x49643b),this[_0x4aa231(0x1bd)](_0x49643b);}['transformRemoteChangeset'](_0x44b356){const _0x3c2699=_0x32171b;let {unitID:_0x5668dc}=_0x44b356,{redoCache:_0x10f329}=this['_renderManagerService']['getRenderById'](_0x5668dc)['with'](f[_0x3c2699(0x1d7)])[_0x3c2699(0x47c)]();if(_0x10f329[_0x3c2699(0x1f1)]===0x0)return _0x44b356;let _0x4c756e=n[_0x3c2699(0x3dd)]['deepClone'](_0x44b356[_0x3c2699(0x1be)][0x0]);for(let _0x273930=0x0;_0x273930<_0x10f329[_0x3c2699(0x1f1)];_0x273930++){let _0x2c63f6={'id':_0x3c2699(0x23e),'params':{..._0x10f329[_0x273930]}},_0x22d4f2=this[_0x3c2699(0x360)][_0x3c2699(0x1c7)](_0x4c756e,_0x2c63f6,!0x1);if((0x0,p[_0x3c2699(0x1dc)])(_0x22d4f2))throw _0x22d4f2[_0x3c2699(0x23d)];_0x4c756e=_0x22d4f2[_0x3c2699(0x31b)];}return{...n['Tools']['deepClone'](_0x44b356),'mutations':[_0x4c756e]};}[_0x32171b(0x3bf)](_0x2a32e9){const _0x4ed093=_0x32171b;let {unitID:_0x2a41e5}=_0x2a32e9,_0x437be6=this[_0x4ed093(0x224)][_0x4ed093(0x389)](_0x2a41e5)[_0x4ed093(0x407)](f[_0x4ed093(0x1d7)]),{undoCache:_0x31eb67,redoCache:_0xa23910}=_0x437be6[_0x4ed093(0x47c)]();if(_0x31eb67[_0x4ed093(0x1f1)]===0x0||_0xa23910[_0x4ed093(0x1f1)]===0x0)return;let _0x2054b2=[],_0x27a8fe=[],_0x2b517a=n['Tools']['deepClone'](_0x2a32e9[_0x4ed093(0x1be)][0x0]),_0xb49cd3=n[_0x4ed093(0x3dd)]['deepClone'](_0x2a32e9[_0x4ed093(0x1be)][0x0]);for(let _0xdded77=_0x31eb67[_0x4ed093(0x1f1)]-0x1;_0xdded77>=0x0;_0xdded77--){let _0x53c3d1={'id':_0x4ed093(0x23e),'params':{..._0x31eb67[_0xdded77]}},_0x36e896={'id':'doc.mutation.rich-text-editing','params':{..._0xa23910[_0xdded77]}},_0x520491=this[_0x4ed093(0x360)][_0x4ed093(0x1c7)](_0x2b517a,_0x53c3d1,!0x1),_0x48fcd7=this[_0x4ed093(0x360)][_0x4ed093(0x1c7)](_0xb49cd3,_0x36e896,!0x1);if((0x0,p[_0x4ed093(0x1dc)])(_0x520491))throw _0x520491[_0x4ed093(0x23d)];if((0x0,p[_0x4ed093(0x1dc)])(_0x48fcd7))throw _0x48fcd7['error'];_0x2054b2[_0x4ed093(0x293)](_0x520491[_0x4ed093(0x2b1)][_0x4ed093(0x219)]),_0x27a8fe[_0x4ed093(0x293)](_0x48fcd7['m2Prime'][_0x4ed093(0x219)]),_0x2b517a=_0x520491[_0x4ed093(0x31b)],_0xb49cd3=_0x48fcd7[_0x4ed093(0x31b)];}_0x437be6['setUndoRedoMutationParamsCache']({'undoCache':_0x2054b2,'redoCache':_0x27a8fe});}[_0x32171b(0x1bd)](_0x124f25){const _0x39145a=_0x32171b;let {unitID:_0x34fd41}=_0x124f25,_0x3e2059=this[_0x39145a(0x224)][_0x39145a(0x389)](_0x34fd41)['with'](f[_0x39145a(0x1d7)]),_0x36c190=_0x3e2059[_0x39145a(0x3b8)]();if(_0x36c190==null)return;let _0x177126=[{'id':_0x39145a(0x23e),'params':{'unitId':_0x124f25[_0x39145a(0x486)],'actions':null,'textRanges':[_0x36c190]}}],_0x4e34da=this['_transformService'][_0x39145a(0x44d)](_0x124f25,_0x177126);if(!(0x0,p[_0x39145a(0x45e)])(_0x4e34da))throw _0x4e34da[_0x39145a(0x23d)];let _0x2973b8=_0x4e34da[_0x39145a(0x2b1)][0x0]['params'][_0x39145a(0x47d)];Array['isArray'](_0x2973b8)&&_0x2973b8[_0x39145a(0x1f1)]&&_0x3e2059[_0x39145a(0x429)](_0x2973b8[0x0]);}};W=C([S(0x0,p[_0x32171b(0x2d6)]),S(0x1,u[_0x32171b(0x28b)])],W);let G=class{constructor(_0x3d24a0,_0x41f97c,_0x420861){const _0x4b2373=_0x32171b;this[_0x4b2373(0x2e6)]=_0x3d24a0,this['_transformService']=_0x41f97c,this[_0x4b2373(0x312)]=_0x420861;}[_0x32171b(0x426)](_0x4915ba){const _0x13a114=_0x32171b;this[_0x13a114(0x1f8)](_0x4915ba);}['transformRemoteChangeset'](_0x9f27a){const _0x3b9159=_0x32171b;let {unitID:_0x36b481}=_0x9f27a,{collaboration:_0x85cae6}=this['_docStateChangeManagerService'][_0x3b9159(0x472)](_0x36b481);if(_0x85cae6['length']===0x0)return _0x9f27a;let _0x3c3ab7=n[_0x3b9159(0x3dd)][_0x3b9159(0x1bb)](_0x9f27a[_0x3b9159(0x1be)][0x0]);for(let _0x4e7b01=0x0;_0x4e7b01<_0x85cae6['length'];_0x4e7b01++){let _0x44f820={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x85cae6[_0x4e7b01]['unitId'],..._0x85cae6[_0x4e7b01][_0x3b9159(0x2da)]}},_0xfdb19d=this[_0x3b9159(0x360)][_0x3b9159(0x1c7)](_0x3c3ab7,_0x44f820,!0x1);if((0x0,p[_0x3b9159(0x1dc)])(_0xfdb19d))throw _0xfdb19d['error'];_0x3c3ab7=_0xfdb19d[_0x3b9159(0x31b)];}return{...n['Tools'][_0x3b9159(0x1bb)](_0x9f27a),'mutations':[_0x3c3ab7]};}[_0x32171b(0x1f8)](_0x356223){const _0x167e53=_0x32171b;let {unitID:_0x494c26}=_0x356223,{history:_0x1d1982,collaboration:_0x419508}=this['_docStateChangeManagerService']['getStateCache'](_0x494c26);if(_0x1d1982[_0x167e53(0x1f1)]===0x0&&_0x419508[_0x167e53(0x1f1)]===0x0)return;let _0x4a3929=[],_0x150048=[],_0xd8e09c=n['Tools'][_0x167e53(0x1bb)](_0x356223['mutations'][0x0]),_0x55d4d1=n[_0x167e53(0x3dd)][_0x167e53(0x1bb)](_0x356223[_0x167e53(0x1be)][0x0]);for(let _0x2a23cc=_0x1d1982[_0x167e53(0x1f1)]-0x1;_0x2a23cc>=0x0;_0x2a23cc--){let _0x7d7287={'id':_0x167e53(0x23e),'params':{'unitId':_0x1d1982[_0x2a23cc]['unitId'],..._0x1d1982[_0x2a23cc][_0x167e53(0x193)]}},_0x473b5e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d1982[_0x2a23cc]['unitId'],..._0x1d1982[_0x2a23cc][_0x167e53(0x2da)]}},_0xf3fe42=this['_transformService'][_0x167e53(0x1c7)](_0xd8e09c,_0x7d7287,!0x1),_0x334f1a=this[_0x167e53(0x360)][_0x167e53(0x1c7)](_0x55d4d1,_0x473b5e,!0x1);if((0x0,p[_0x167e53(0x1dc)])(_0xf3fe42))throw _0xf3fe42[_0x167e53(0x23d)];if((0x0,p[_0x167e53(0x1dc)])(_0x334f1a))throw _0x334f1a[_0x167e53(0x23d)];_0x4a3929['unshift']({..._0x1d1982[_0x2a23cc],'undoState':_0xf3fe42[_0x167e53(0x2b1)][_0x167e53(0x219)],'redoState':_0x334f1a[_0x167e53(0x2b1)][_0x167e53(0x219)]}),_0xd8e09c=_0xf3fe42[_0x167e53(0x31b)],_0x55d4d1=_0x334f1a[_0x167e53(0x31b)];}_0xd8e09c=n['Tools'][_0x167e53(0x1bb)](_0x356223[_0x167e53(0x1be)][0x0]),_0x55d4d1=n['Tools'][_0x167e53(0x1bb)](_0x356223[_0x167e53(0x1be)][0x0]);for(let _0x5f2a7b=_0x419508[_0x167e53(0x1f1)]-0x1;_0x5f2a7b>=0x0;_0x5f2a7b--){let _0x1db607={'id':_0x167e53(0x23e),'params':{'unitId':_0x419508[_0x5f2a7b]['unitId'],..._0x419508[_0x5f2a7b]['undoState']}},_0x33d8d1={'id':_0x167e53(0x23e),'params':{'unitId':_0x419508[_0x5f2a7b][_0x167e53(0x3fc)],..._0x419508[_0x5f2a7b][_0x167e53(0x2da)]}},_0x19690f=this[_0x167e53(0x360)][_0x167e53(0x1c7)](_0xd8e09c,_0x1db607,!0x1),_0x3d9e7b=this[_0x167e53(0x360)][_0x167e53(0x1c7)](_0x55d4d1,_0x33d8d1,!0x1);if((0x0,p[_0x167e53(0x1dc)])(_0x19690f))throw _0x19690f[_0x167e53(0x23d)];if((0x0,p[_0x167e53(0x1dc)])(_0x3d9e7b))throw _0x3d9e7b[_0x167e53(0x23d)];_0x150048[_0x167e53(0x293)]({..._0x419508[_0x5f2a7b],'undoState':_0x19690f[_0x167e53(0x2b1)][_0x167e53(0x219)],'redoState':_0x3d9e7b[_0x167e53(0x2b1)]['params']}),_0xd8e09c=_0x19690f[_0x167e53(0x31b)],_0x55d4d1=_0x3d9e7b['m1Prime'];}this[_0x167e53(0x312)]['setStateCache'](_0x494c26,{'history':_0x4a3929,'collaboration':_0x150048});}};G=C([S(0x0,(0x0,n[_0x32171b(0x329)])(n['Injector'])),S(0x1,p[_0x32171b(0x2d6)]),S(0x2,(0x0,n['Inject'])(m[_0x32171b(0x39b)]))],G);let K=class{constructor(_0x1ccbb0,_0x271cd4){const _0x3c6c4f=_0x32171b;this[_0x3c6c4f(0x2e6)]=_0x1ccbb0,this[_0x3c6c4f(0x360)]=_0x271cd4;}[_0x32171b(0x3f7)](_0x6a950c){const _0xb46d89=_0x32171b;var _0x451dcc;let _0x400a15=this[_0xb46d89(0x2e6)][_0xb46d89(0x3e4)](m[_0xb46d89(0x46d)]),_0x36d29a=(_0x451dcc=_0x400a15[_0xb46d89(0x1ec)]())==null?[]:_0x451dcc;if(_0x36d29a[_0xb46d89(0x1f1)]===0x0)return;let _0x355c0f=_0x6a950c[_0xb46d89(0x486)],_0x434209=[{'id':_0xb46d89(0x23e),'params':{'unitId':_0x355c0f,'actions':null,'textRanges':_0x36d29a}}],_0xcde900=this['_transformService'][_0xb46d89(0x44d)](_0x6a950c,_0x434209);if(!(0x0,p[_0xb46d89(0x45e)])(_0xcde900))throw _0xcde900[_0xb46d89(0x23d)];let _0x82cd2f=_0xcde900['m2Prime'][0x0]['params']['textRanges'];Array['isArray'](_0x82cd2f)&&_0x82cd2f[_0xb46d89(0x1f1)]&&_0x400a15[_0xb46d89(0x300)](_0x82cd2f,{'unitId':_0x355c0f,'subUnitId':_0x355c0f},!0x1);}};K=C([S(0x0,(0x0,n['Inject'])(n[_0x32171b(0x25b)])),S(0x1,p[_0x32171b(0x2d6)])],K);let q=class extends n[_0x32171b(0x45a)]{constructor(_0x4854b7,_0x4f14db,_0x26c905,_0x505075,_0x4b108a,_0x2c67d0,_0x29a0c8){const _0x3af69e=_0x32171b;super(),this[_0x3af69e(0x471)]=_0x4854b7,this[_0x3af69e(0x1d6)]=_0x4f14db,this['_docTransformStateCacheService']=_0x26c905,this[_0x3af69e(0x2e0)]=_0x505075,this['_docSyncEditingCollabCursorService']=_0x4b108a,this[_0x3af69e(0x1bf)]=_0x2c67d0,this[_0x3af69e(0x28a)]=_0x29a0c8,x(this,'_status$',new i['BehaviorSubject'](t[_0x3af69e(0x3a0)][_0x3af69e(0x229)])),this[_0x3af69e(0x223)]();}[_0x32171b(0x223)](){const _0x57b88d=_0x32171b;this[_0x57b88d(0x3ec)](this[_0x57b88d(0x471)][_0x57b88d(0x3f4)]['subscribe'](_0x1b9c27=>{const _0x11f6d3=_0x57b88d;_0x1b9c27 instanceof t['DocCollaborationEntity']&&_0x1b9c27[_0x11f6d3(0x410)]({'onTransformIME':_0x2a8fec=>this['_docTransformIMECacheService'][_0x11f6d3(0x225)](_0x2a8fec),'onTransformState':_0x37a836=>this[_0x11f6d3(0x411)][_0x11f6d3(0x426)](_0x37a836),'onTransformSelections':_0x10d1a3=>this[_0x11f6d3(0x2e0)]['transformSelections'](_0x10d1a3),'onSyncEditingCollabCursor':_0x562f06=>this[_0x11f6d3(0x1a0)][_0x11f6d3(0x192)](_0x562f06),'onTransformRemoteChangesetByIMECache':_0x226e05=>this['_docTransformIMECacheService'][_0x11f6d3(0x253)](_0x226e05),'onTransformRemoteChangesetByStateCache':_0x34e086=>this[_0x11f6d3(0x411)][_0x11f6d3(0x253)](_0x34e086)});}));}};q=C([S(0x0,(0x0,n[_0x32171b(0x329)])(t[_0x32171b(0x26e)])),S(0x1,(0x0,n['Inject'])(W)),S(0x2,(0x0,n[_0x32171b(0x329)])(G)),S(0x3,(0x0,n[_0x32171b(0x329)])(K)),S(0x4,(0x0,n[_0x32171b(0x329)])(j)),S(0x5,r[_0x32171b(0x34e)]),S(0x6,(0x0,n['Inject'])(n['LocaleService']))],q);let J=class extends n[_0x32171b(0x45a)]{constructor(_0x1a6b12,_0x572ff2,_0x3a15d7,_0x4790b3){const _0x190874=_0x32171b;super(),this[_0x190874(0x2e6)]=_0x1a6b12,this['_httpService']=_0x572ff2,this[_0x190874(0x335)]=_0x3a15d7,this[_0x190874(0x294)]=_0x4790b3,x(this,_0x190874(0x345),void 0x0),this[_0x190874(0x35c)]();}[_0x32171b(0x35c)](){const _0x2b472f=_0x32171b;this[_0x2b472f(0x3ee)](),this['_initUnhandledRejectionListener'](),this[_0x2b472f(0x3a4)](),this[_0x2b472f(0x2b7)]();}[_0x32171b(0x2b7)](){const _0x274757=_0x32171b;this[_0x274757(0x3ec)](this[_0x274757(0x294)][_0x274757(0x2ea)][_0x274757(0x2b4)](_0x2f48c5=>{const _0x26bd52=_0x274757;this['_memberID']=_0x2f48c5==null?void 0x0:_0x2f48c5[_0x26bd52(0x2fc)];}));}['_initWindowErrorListener'](){const _0x2a6000=_0x32171b;let _0x1b4ef7=_0x4e49ca=>{const _0x5f2843=_0x4167;var _0x480cdb;this[_0x5f2843(0x362)](_0x5f2843(0x23d),'[Window\x20Error]:\x20'+_0x4e49ca[_0x5f2843(0x1a6)]+_0x5f2843(0x21d)+_0x4e49ca['filename']+':'+_0x4e49ca['lineno']+':'+_0x4e49ca['colno']+'\x0a'+(((_0x480cdb=_0x4e49ca[_0x5f2843(0x23d)])==null?void 0x0:_0x480cdb[_0x5f2843(0x445)])||''));};window[_0x2a6000(0x490)](_0x2a6000(0x23d),_0x1b4ef7),this[_0x2a6000(0x3ec)](()=>{const _0x1c540a=_0x2a6000;window['removeEventListener'](_0x1c540a(0x23d),_0x1b4ef7);});}['_initUnhandledRejectionListener'](){const _0x3c3100=_0x32171b;let _0x4876b0=_0x228721=>{const _0x1f5564=_0x4167;this[_0x1f5564(0x362)](_0x1f5564(0x23d),_0x1f5564(0x284)+_0x228721[_0x1f5564(0x262)]);};window[_0x3c3100(0x490)](_0x3c3100(0x281),_0x4876b0),this[_0x3c3100(0x3ec)](()=>{const _0x44aca9=_0x3c3100;window[_0x44aca9(0x40d)](_0x44aca9(0x281),_0x4876b0);});}['_monkeyPatchLogService'](){const _0x3f280b=_0x32171b;let _0x2777af=this[_0x3f280b(0x335)][_0x3f280b(0x23d)][_0x3f280b(0x439)](this['_logService']);this[_0x3f280b(0x335)][_0x3f280b(0x23d)]=(..._0x368ccc)=>{const _0x56290c=_0x3f280b;let _0x426688=_0x368ccc[_0x56290c(0x2d4)](_0xac7637=>_0xac7637 instanceof Error?_0xac7637[_0x56290c(0x1a6)]+'\x0a'+_0xac7637[_0x56290c(0x445)]:String(_0xac7637))[_0x56290c(0x271)]('\x20');this[_0x56290c(0x362)](_0x56290c(0x23d),_0x56290c(0x290)+_0x426688),_0x2777af(..._0x368ccc);},this[_0x3f280b(0x3ec)](()=>{const _0x3ad3ca=_0x3f280b;this[_0x3ad3ca(0x335)]['error']=_0x2777af;});}[_0x32171b(0x362)](_0x2924ce,_0x3607fb){const _0x76fc99=_0x32171b;try{let _0x42143b={'userId':this[_0x76fc99(0x345)],'logLabel':_0x2924ce,'content':_0x3607fb};this[_0x76fc99(0x40c)][_0x76fc99(0x3a6)](_0x76fc99(0x19d),{'body':_0x42143b})[_0x76fc99(0x42e)](()=>{});}catch{}}};J=C([S(0x0,(0x0,n[_0x32171b(0x329)])(n['Injector'])),S(0x1,(0x0,n[_0x32171b(0x329)])(d['HTTPService'])),S(0x2,n['ILogService']),S(0x3,(0x0,n[_0x32171b(0x329)])(t[_0x32171b(0x311)]))],J);function Ce({state$:_0x5abbe6,interactionBlocked$:_0x5ab94b}){const _0x14210d=_0x32171b;return(0x0,l[_0x14210d(0x2a1)])(l[_0x14210d(0x459)],{'children':[(0x0,r[_0x14210d(0x2af)])(_0x5ab94b,!0x1,!0x0)&&(0x0,l[_0x14210d(0x417)])(_0x14210d(0x277),{'data-u-comp':'snapshot-loading-interaction-guard','aria-hidden':!0x0,'className':_0x14210d(0x34c)}),(0x0,l['jsx'])(we,{'state$':_0x5abbe6})]});}function we({state$:_0x5a4e01}){const _0xa44202=_0x32171b;let _0x15f8d7=(0x0,r['useObservable'])(_0x5a4e01,null,!0x0);return _0x15f8d7?(0x0,l[_0xa44202(0x2a1)])(_0xa44202(0x277),{'data-u-comp':'snapshot-loading-timeout','role':_0xa44202(0x3f5),'className':'univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','children':[(0x0,l[_0xa44202(0x417)])(s[_0xa44202(0x423)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,l[_0xa44202(0x417)])('span',{'children':_0x15f8d7[_0xa44202(0x285)]}),(0x0,l[_0xa44202(0x417)])(o[_0xa44202(0x443)],{'size':_0xa44202(0x198),'variant':_0xa44202(0x32e),'onClick':()=>window[_0xa44202(0x3a9)][_0xa44202(0x2fa)](),'children':_0x15f8d7[_0xa44202(0x2f9)]})]}):null;}function _0x1765(){const _0x1d886d=['_blockProgressWatches','workbookShell','href','BrowserCollaborationSocketService','_startSlideCollabCursor','SetFormulaCalculationNotificationMutation','status','_initStatusComponent','ThemeService','getCellMatrix','with','timedOut','_roomMembers$','_isVisibleUnit','focusedId','_httpService','removeEventListener','_colorAssignService','_boardElementStateService','addHandlerCallback','_docTransformStateCacheService','ISheetLoadingRenderService','registerRefRange','_messageIds','DataLoaderService','restore','jsx','MoveRangeCommandId','_isApplyingOverlays','has','timeoutState$','endColumn','collaboration-client-ui.session.connection-failed','left','RemoveColCommandId','snapshot-loading-','InsertRangeMoveRightCommandId','RemoteUniscriptService','WarningIcon','_scheduleHeartbeat','call','transformStateCache','_context','isActive','setActiveRange','_highlight','_instanceService','_blinkTimer','_onCursorUpdate','catch','_render','toString','_initResize','getSheetBySheetId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','transformByState','COLORS','_toggleOffline','all','totalBlocks','bind','rgba','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','FETCH_MISS','startsWith','3943548DzjBYI','popstate','_updateSheetPreview','releaseFormulaLimitUrl','debounce','Button','_updateLocalCursor','stack','getCellPositionByOffset','NodePositionConvertToRectRange','assignAColorForMemberID','_sheetSkeletonManagerService','_showText','_urlService','_handleHeartbeatEvent','transformMutationsWithChangeset','rgba(','totalFormulasToCalculate','Enter','version','UNIVER_SLIDE','labelPosition','DependentOn','measureText','highlight','_offsetY','some','Fragment','Disposable','getCurrentUnitOfType','univer-m-0\x20univer-p-0','UnitStatus','isTransformMutationsWithChangesetSuccess','_revisionService','state$','from','evenodd','_previewUnitId','reconnect','_commandService','board-element-selection','RxDisposable','startPluginsForType','makeDirty','_slideDrawingStateService','_send','BOARD_TOP_RIGHT_MENU_LEADING_PART','DocSelectionManagerService','parse','collabCursorState$','generateRandomId','_collaborationController','getStateCache','runOnServer','_initDependencies','_hovered','getRelativeToViewportCoord','getObjectIncludeInGroup','getVpScrollXYInfoByPosToVp','collab-text-range-','_latestStates','1390044zMpXum','getUndoRedoMutationParamsCache','textRanges','drawWith','_docSkeletonManagerService','CONFLICT','_shortcutBlock','_setupBeforeClosingHandler','getConfig','UPDATE_CURSOR','OnLineIcon','unitID','registerRenderModule','selectedIds','collaboration-client-ui.session.collaboration-timeout','_snapshotLoadingService','SetWorksheetActivateCommand','getActiveSheet','_entityInit$','eventID','rgb','addEventListener','_onRefRangeChange','colorClass','_selfUnitIDs','358178DcSsob','getObject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_isBlinkVisible','toPrimitive','_scheduleRender','getCurrentRevOfUnit','DeleteRangeMoveLeftCommandId','AWAITING_WITH_PENDING','IURLService','IUIPartsService','_startSheetCollabCursor','polite','whenReady','getCurrentSkeleton','object','_color','EffectRefRangId','_clearOtherTimers','exhaustSavingTask','HEADER_MENU','prototype','saveOfflineData','closePath','push','highlightSecond','fromEvent','1391800MbIWoS','_handleJoinEvent','syncEditingCollabCursor','undoState','UNIVER_BOARD','INotificationService','_unitStatus','_uiPartsService','small','_docClipboardService','color','handleInsertCol','_getFormulaLimitStatus','/universer-api/frontend/logs','arc','forEach','_docSyncEditingCollabCursorService','min','getFocusedUnit','collaboration-client-ui.collabStatus.fetchMiss','asObservable','_ensureSubject','message','maxFormulaLimit','throttleTime','createSocket','RevisionService','LOADING_BLOCKS','_startDocCollabCursor','isInternalEditorID','event$','replace','_clearPolling','0.2)','univer-flex\x20univer-items-center\x20univer-justify-center','handleInsertRangeMoveDown','RegularPolygon','_removeClearOtherTimer','currentUsage','parseInt','setTimeout','_hidePreview','VIEW_MAIN','deepClone','_blinkIntervalTimer','_transformPreviousActiveRange','mutations','_messageService','clearInterval','collaboration-client-ui.collabStatus.notCollab','text','name','RemoveRowCommandId','_createSocketURL','setShapeProps','transformMutation','getTypeOfUnitAdded$','_setInteractionBlocked','getColorFromTheme','i18nKey','_config','getParam','clsx','_cursorShapes','handleMoveRange','show','addClipboardHook','moveTo','font','loadOfflineData','_docTransformIMECacheService','DocIMEInputManagerService','collaboration-client-ui.snapshotLoading.loadingSheet','[CollaborationDataLoaderController]','clear','getCurrentSelections','isTransformMutationFailure','_startCalculationLimit','getUnhiddenWorksheets','_backgroundColor','cursorInfo','_anchor','ILogService',',\x200.2)','unit','searchParams','defineProperty','status$','showText','collaboration-client-ui.conflict.content','addObject$','_name','getDocRanges','_dataLoaderService','resolve','type','_collabCursorState$','length','enableDocumentCollaborationUI','_applyCommand','LOADING_SNAPSHOT','next','TEXT_RANGE_LAYER_INDEX','_taskIds','_transformHistoryAndStateStack','getTypeOfUnitDisposed$','pipe','sheetID','currentTheme$','yellow.400','handleIRemoveCol','_lastPointer','_registerRenderDependencies','OffLineIcon','cursorInfo$','saveImage','merge','_interactionBlocked$','ERROR','FormulaExecuteStageType','activeSlideId$','_memberService','handleIRemoveRow','_maxFormulaLimit','CollaborationUIEventService','_getLighterColor','_scheduleClearOtherTimer','_configService','#4f46e5','deserializeRangeWithSheet','UniverInstanceType','getBoardElementRenderObjectKey','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_imageIoService','toDisposable','source','onPointerLeave$','params','DisposableCollection','_collaborationUIEventService','stage','\x20at\x20','RECT','_watchBlockProgress','SheetCollabCursorShape','collaboration-client-ui.collabClient.tooltip.reconnect','bottom','_initEntityListener','_renderManagerService','transformIMECache','subscribeEvent','LocaleService','backgroundColor','NOT_COLLAB','startColumn','onPointerMove$','handleInsertRangeMoveRight','_initEvent','column','then','_toggleOnline','remove','_syncEditingCollabCursorService','useDependency','setOffsetY','/universer-api/license/formula/limit/start','toISOString','_highlightSecond','univer-border-none\x20univer-bg-transparent','_updateSubUnitFromURLParams','fill','_getSaveTimeout','getId','error','doc.mutation.rich-text-editing','univer-text-red-500','lineWidth','_refreshCollabCursors','stringify','collaboration-client-ui.collaboration.single-unit.warning','handleInsertRow','univer-text-orange-500','getColor','_getScale','collaboration-client-ui.formula.calculation.unable','button','registerComponent','univer-text-green-500','black','_getObjectBounds','WebBrowserSingleActiveUnitService','getCurrentTypeOfUnit$','IDocClipboardService','roomMembers$','_stopBlinking','transformRemoteChangeset','disposeUnit','_doCreateSocket','_getSheetObject','GLOBAL','InsertColCommandId','_updateMessage','_unitOnClients','Injector','OTHER_CLIENT_EDITING','ErrorCode','contains','key','executeCommand','getUnitId','reason','Tooltip','addObject','1379904WbYtDC','_initCommandExecutedListener','IConfigService','previewReady','_lastResponseTimestamp','univer-transition-all\x20univer-duration-200','editingUnit','showSkeleton','MemberService','CollaborationController','endRow','collaboration-client-ui.permission.title','join','_scene','dispose$','data','unsubscribe','Failed','div','pageManager','resize','storage','newValue','toRgbString','row','ISocketService','_clearTimeoutState','_renderScheduled','unhandledrejection','fillText','serializeRangeWithSheet','[Unhandled\x20Rejection]:\x20','content','SnapshotLoadingService','connectInjector','_shortcutService','IUniverInstanceService','_localeService','IRenderManagerService','collaboration-client-ui.snapshotLoading.timeout','mapTo','theme$','tooltipKey','[LogService\x20Error]:\x20','loadedBlocks','getOwnPropertyDescriptor','unshift','_collaborationSessionService','_initCommandInterceptor','_getSceneObjectByKey','COMPLETE','...','SOCKET_FAILED_RETRY','runId','onMouseMove','timeoutId','fromEventSubject','_heartbeatTimer','right','getRealBound','jsxs','origin','strokeRect','univer-text-blue-500','removeObject','DesktopCollaborationStatusDisplayController','CLOSE_ROOM','shareReplay','Optional','_draw','OTHER_CLIENTS_EDITING','SetSelectionsOperation','_releaseCalculationLimit','collab-rect-range-','useObservable','loadUnit','m2Prime','Shape','_removeCollabCursors','subscribe','getMember','HTTPService','_initUserListener','collaboration-client-ui.formula.calculation.waiting','_currentUsage','_assignedColors','requireSession','_handleLeaveEvent','clickable','BuiltInUIPart','constructor','labelHorizontalPosition','_getSessionTicket','removeObjects','send','_localStorageService','decorate','_online','_univerInstanceService','getValue','CollaborationUIEventId','selection','split','replaceState','TEXT','setConfig','SnapshotLoadStage','IImageIoService','getUnit','ICommandService','?taskId=','map','debug','ITransformService','univer-appearance-none','_showGuardMessage','_entities','redoState','stageInfo','_labelHorizontalPosition','transform','_registerDependencies','Unknown\x20user','_docTransformSelectionsService','now','purple.300','_saveCache','roomMembers','SUCCESS','_injector','Plugin','LoadingMultiIcon','ONLINE','socket$','7456fVDwJs','_clearBlockProgressWatch','_timeoutState$','removeParam','invokeId','function','_checkAndWaitForCalculationPermission','_handoffPreview','currentSkeleton$','SOCKET_FAILED','_pluginService','getFormulaLimitStatusUrl','activeSheet$','AWAITING','refreshLabel','reload','PluginService','memberID','beginPath','code','findNodePositionByCharIndex','replaceDocRanges','limitInfo','init','strokeWidth','UNIVER_DOC','Rect','_docSkeleton','START_CALCULATION','_notificationService','value','set','_getAnchorBounding','_colorIndex','imageSourceType','fillStyle','ColorKit','UniverCollaborationClientUIPlugin','CollaborationSessionService','_docStateChangeManagerService','preventDefault','jiqing.500','static','RichTextEditingMutation','collaboration-client-ui.snapshotLoading.refresh','Subject','setParam','previewCellData','m1Prime','DeleteRangeMoveUpCommandId','SessionStatus','icon','selections','offsetY','SetTextSelectionsOperation','indicator','distinctUntilChanged','NodePositionConvertToCursor','_saveTaskMap','_latestCursors','_anchorDot','Warning','Inject','_pollingInterval','includes','flatMap','slide-collab-cursor-','primary','default','_status$','board-collab-cursor-','addObjects','useCallback','FormulaExecutedStateType','_logService','uni.network.url-service','save','collaboration-client-ui.collabStatus.conflict','registerBeforeClose','symbol','subunit','width','getActiveSlide','_cursors','getSkeleton','_session','span','DEFAULT_WS_SESSION_TICKET_URL','Error','_handleHover','_memberID','_hasFormulaInDirtyRanges','getMergeData','IBoardElementStateService','collaboration-client-ui.collabStatus.synced','sheetId','isFormulaId','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','_drawTextRange','IMessageService','onTransformChange$','_handoffUnitIds','getSheetObject','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','urlChange$','getRangePointData','_refRangeService','getCoordByCell','lineTo','startRow','_beforeCloseService','height','debounceTime','_init','forceDisable','_hover','_sheetLoadingRenderService','_transformService','createInstance','_uploadLog','onCommandExecuted','_id','USERS_LEAVE','context','_startBoardCollabCursor','activeSheetId','enableFrontendLog','focused$','override','getUnitStatus$','slide-element-selection','handoff','createIdentifier','UNIVER_SHEET','collaboration-client-ui.permission.content','PENDING','_textBubble','switchMap','CollaborationEvent','dispose','setItem','filter','collaboration-client-ui.formula.calculation.started','_cachedData','onStarting','collaboration-client-ui.collabStatus.offline','collaboration-client-ui.config','_getSheetLoadingRenderService','delete','getLocalCacheKey','createElement','_cursor','slice','SetFormulaCalculationStartMutation','saveTaskMap','MessageType','_collabSessionService','_setupSubUnitSync','getRenderById','setLineDash','_collabCursorController','fillRule','takeUntil','history','InsertRowCommandId','collaboration-client-ui.collabStatus.syncing','_pointerMoveDisposable','_updateURLWithCurrentState','clearTimeout','search','toStringTag','Loading','blue.400','_document','getCollabCursors$','unload','DocStateChangeManagerService','sessionTicket','SHEET_VIEWPORT_KEY','getActivePageId','find','CollaborationStatus','size','/universer-api/license/formula/limit/done','triggerDblclick','_monkeyPatchLogService','getMemberID','post','getCollabEntity$','_onCursorDelete','location','SheetsSelectionsService','IBeforeCloseService','add','Vector2','collaboration-client-ui.collaboration.closeRoom','red.300','_themeService','_initStatusListener','string','\x20-\x20','top','getAllUnitsForType','range','SUBMIT_CHANGESET_TIMEOUT','getActiveRange','getSnapshot','setAlpha','setInterval','_eventUnsubscribe','backupOfflineData','body','_transformUndoRedoStack','_shapes','combineLatest','onPointerEnter$','getAncestorScale','isArray','max','buildDrawingOKey','values','DOC_RANGE_TYPE','hide','green.600','_updateCollabCursors','collab-text-anchor-','startFormulaLimitUrl','true','collaboration-client-ui.session.will-retry','_getMergeRange','8074952AaTLtT','_checkCalculationAvailable','_labelPosition','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','bold\x2013px\x20Arial,\x20sans-serif','_setFormulaLimitStatus','univer-text-gray-400','spin','subUnitId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','mergeOverrideWithDependencies','ranges','Tools','getSheetId','_cursorInfo$','angle','_hideTimer','univer-inline-flex\x20univer-items-center\x20univer-justify-center','ILocalCacheService','get','pluginName','scene','collaboration-client-ui.collaboration.offline-data-not-saved','useMemo','complete','_handleEvent','sessionStatus$','disposeWithMe','pushState','_initWindowErrorListener','_disabled','1675wnblQh','wsSessionTicketUrl','beforeCommandExecuted','ISnapshotServerService','entityInit$','alert','dark:focus:!univer-ring-offset-gray-800','transformSelections','getItem','ACTIVE_UNIT_EVENT_CHANNEL','_range','BehaviorSubject','unitId'];_0x1765=function(){return _0x1d886d;};return _0x1765();}const Y=_0x32171b(0x420);let X=class extends n[_0x32171b(0x45a)]{constructor(_0x8feb5,_0x1c78aa,_0xe595c2,_0xc7f540,_0x4b565c,_0x1dfb19,_0x35e595,_0x204a11){const _0xac2c3c=_0x32171b;super(),this[_0xac2c3c(0x48a)]=_0x8feb5,this['_messageService']=_0x1c78aa,this[_0xac2c3c(0x28a)]=_0xe595c2,this[_0xac2c3c(0x2e6)]=_0xc7f540,this[_0xac2c3c(0x2f5)]=_0x4b565c,this[_0xac2c3c(0x288)]=_0x35e595,this[_0xac2c3c(0x44b)]=_0x204a11,x(this,'_timeoutState$',new i['BehaviorSubject'](null)),x(this,_0xac2c3c(0x205),new i[(_0xac2c3c(0x3fb))](!0x1)),x(this,'_messageIds',new Set()),x(this,'_blockProgressWatches',new Map()),x(this,_0xac2c3c(0x350),new Set()),x(this,_0xac2c3c(0x47a),new Map()),x(this,_0xac2c3c(0x463),void 0x0),x(this,_0xac2c3c(0x481),void 0x0),x(this,_0xac2c3c(0x35f),void 0x0),x(this,_0xac2c3c(0x41b),this[_0xac2c3c(0x2ed)][_0xac2c3c(0x1a4)]());let _0x5dd645=()=>(0x0,c[_0xac2c3c(0x381)])(Ce,{'state$':this[_0xac2c3c(0x41b)],'interactionBlocked$':this[_0xac2c3c(0x205)]});this[_0xac2c3c(0x3ec)](_0x1dfb19[_0xac2c3c(0x24a)](r[_0xac2c3c(0x2be)][_0xac2c3c(0x257)],()=>(0x0,r['connectInjector'])(_0x5dd645,this[_0xac2c3c(0x2e6)]))),this[_0xac2c3c(0x3ec)](this[_0xac2c3c(0x48a)]['state$'][_0xac2c3c(0x2b4)](_0x3a4195=>{const _0x2f6934=_0xac2c3c;this[_0x2f6934(0x47a)]=_0x3a4195,_0x3a4195[_0x2f6934(0x19f)](_0x1366a3=>{const _0x3cad5f=_0x2f6934;this[_0x3cad5f(0x259)](_0x1366a3),this[_0x3cad5f(0x440)](_0x1366a3);});})),this[_0xac2c3c(0x3ec)](this[_0xac2c3c(0x44b)][_0xac2c3c(0x353)][_0xac2c3c(0x2b4)](()=>{const _0x356e40=_0xac2c3c;this[_0x356e40(0x47a)][_0x356e40(0x19f)](_0x4f5ba2=>{const _0x1c2531=_0x356e40;this[_0x1c2531(0x259)](_0x4f5ba2),this[_0x1c2531(0x440)](_0x4f5ba2);});}));}[_0x32171b(0x376)](){const _0x258243=_0x32171b;var _0x1192e8;if(this[_0x258243(0x414)][_0x258243(0x19f)](_0x22bc24=>this[_0x258243(0x1bf)]['remove'](_0x22bc24)),this[_0x258243(0x414)][_0x258243(0x1da)](),this[_0x258243(0x463)]){var _0x19b25b;(_0x19b25b=this[_0x258243(0x35f)])==null||_0x19b25b[_0x258243(0x3c9)](this['_previewUnitId']);}this[_0x258243(0x463)]=void 0x0,this[_0x258243(0x3fd)][_0x258243(0x19f)](({timeoutId:_0x2d0f23})=>clearTimeout(_0x2d0f23)),this['_blockProgressWatches']['clear'](),(_0x1192e8=this[_0x258243(0x481)])==null||_0x1192e8[_0x258243(0x376)](),this[_0x258243(0x481)]=void 0x0,this[_0x258243(0x2ed)][_0x258243(0x3e9)](),this['_interactionBlocked$'][_0x258243(0x3e9)](),super[_0x258243(0x376)]();}[_0x32171b(0x259)](_0xa39e0d){const _0x711e94=_0x32171b;let _0x581ec7=''+Y+_0xa39e0d[_0x711e94(0x3fc)];if(_0xa39e0d[_0x711e94(0x21c)]===p['SnapshotLoadStage'][_0x711e94(0x297)]){if(this[_0x711e94(0x2ec)](_0xa39e0d[_0x711e94(0x3fc)]),this[_0x711e94(0x40a)](_0xa39e0d['unitId'])&&this[_0x711e94(0x463)]===_0xa39e0d[_0x711e94(0x3fc)]){this[_0x711e94(0x1bf)][_0x711e94(0x1d1)]({'id':_0x581ec7,'type':o['MessageType'][_0x711e94(0x396)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x711e94(0x1d8))}),this[_0x711e94(0x414)][_0x711e94(0x3ac)](_0x581ec7);return;}this['_clearTimeoutState'](_0xa39e0d[_0x711e94(0x3fc)]),this['_messageService'][_0x711e94(0x231)](_0x581ec7),this[_0x711e94(0x414)]['delete'](_0x581ec7);return;}if(!this['_isVisibleUnit'](_0xa39e0d[_0x711e94(0x3fc)])){this['_clearBlockProgressWatch'](_0xa39e0d[_0x711e94(0x3fc)]),this[_0x711e94(0x27f)](_0xa39e0d[_0x711e94(0x3fc)]),this['_messageService'][_0x711e94(0x231)](_0x581ec7),this['_messageIds'][_0x711e94(0x37f)](_0x581ec7);return;}if(_0xa39e0d['stage']===p[_0x711e94(0x2cf)][_0x711e94(0x206)]){this['_clearBlockProgressWatch'](_0xa39e0d[_0x711e94(0x3fc)]),this['_clearTimeoutState'](_0xa39e0d[_0x711e94(0x3fc)]),this[_0x711e94(0x1bf)][_0x711e94(0x1d1)]({'id':_0x581ec7,'type':o[_0x711e94(0x386)][_0x711e94(0x343)],'content':this[_0x711e94(0x28a)]['t'](_0x711e94(0x41d))}),this[_0x711e94(0x414)]['delete'](_0x581ec7);return;}if(_0xa39e0d[_0x711e94(0x21c)]!==p[_0x711e94(0x2cf)][_0x711e94(0x1ab)]||_0xa39e0d[_0x711e94(0x438)]<=0xa){this['_clearBlockProgressWatch'](_0xa39e0d[_0x711e94(0x3fc)]),this[_0x711e94(0x1bf)][_0x711e94(0x231)](_0x581ec7),this[_0x711e94(0x414)]['delete'](_0x581ec7);return;}this[_0x711e94(0x21f)](_0xa39e0d)||(this[_0x711e94(0x1bf)]['show']({'id':_0x581ec7,'type':o[_0x711e94(0x386)]['Loading'],'duration':0x1/0x0,'content':this[_0x711e94(0x28a)]['t'](_0x711e94(0x1a3))+'\x20'+_0xa39e0d['loadedBlocks']+'/'+_0xa39e0d[_0x711e94(0x438)]}),this[_0x711e94(0x414)][_0x711e94(0x3ac)](_0x581ec7));}['_watchBlockProgress'](_0x878397){const _0x2e2a80=_0x32171b;let _0x46fa46=this[_0x2e2a80(0x3fd)]['get'](_0x878397[_0x2e2a80(0x3fc)]);if((_0x46fa46==null?void 0x0:_0x46fa46[_0x2e2a80(0x291)])===_0x878397[_0x2e2a80(0x291)])return _0x46fa46[_0x2e2a80(0x408)];this[_0x2e2a80(0x2ec)](_0x878397[_0x2e2a80(0x3fc)]);let _0x4ae138=setTimeout(()=>{const _0xbec6c9=_0x2e2a80;let _0x1b3e83=this[_0xbec6c9(0x3fd)][_0xbec6c9(0x3e4)](_0x878397[_0xbec6c9(0x3fc)]);if(!_0x1b3e83||_0x1b3e83[_0xbec6c9(0x29c)]!==_0x4ae138)return;_0x1b3e83[_0xbec6c9(0x408)]=!0x0;let _0x2d0e3b=''+Y+_0x878397[_0xbec6c9(0x3fc)];this['_messageService'][_0xbec6c9(0x231)](_0x2d0e3b),this[_0xbec6c9(0x414)][_0xbec6c9(0x37f)](_0x2d0e3b),this['_timeoutState$'][_0xbec6c9(0x1f5)]({'unitId':_0x878397[_0xbec6c9(0x3fc)],'content':this[_0xbec6c9(0x28a)]['t'](_0xbec6c9(0x28c),String(_0x878397[_0xbec6c9(0x291)]),String(_0x878397[_0xbec6c9(0x438)])),'refreshLabel':this[_0xbec6c9(0x28a)]['t'](_0xbec6c9(0x317))});},0xea60);return this[_0x2e2a80(0x3fd)]['set'](_0x878397[_0x2e2a80(0x3fc)],{'loadedBlocks':_0x878397[_0x2e2a80(0x291)],'timedOut':!0x1,'timeoutId':_0x4ae138}),!0x1;}['_clearBlockProgressWatch'](_0x140c51){const _0x4015d0=_0x32171b;let _0x237eaf=this[_0x4015d0(0x3fd)][_0x4015d0(0x3e4)](_0x140c51);_0x237eaf&&(clearTimeout(_0x237eaf[_0x4015d0(0x29c)]),this[_0x4015d0(0x3fd)]['delete'](_0x140c51),this[_0x4015d0(0x27f)](_0x140c51));}[_0x32171b(0x27f)](_0x580d03){const _0x172efe=_0x32171b;var _0x3edcaa;((_0x3edcaa=this[_0x172efe(0x2ed)][_0x172efe(0x309)])==null?void 0x0:_0x3edcaa[_0x172efe(0x3fc)])===_0x580d03&&this['_timeoutState$'][_0x172efe(0x1f5)](null);}[_0x32171b(0x440)](_0x5bfdbf){const _0x3242ab=_0x32171b;if(_0x5bfdbf[_0x3242ab(0x21c)]===p[_0x3242ab(0x2cf)][_0x3242ab(0x1f4)]&&this[_0x3242ab(0x350)][_0x3242ab(0x37f)](_0x5bfdbf[_0x3242ab(0x3fc)]),!this[_0x3242ab(0x40a)](_0x5bfdbf['unitId'])){this[_0x3242ab(0x1b9)](_0x5bfdbf['unitId']);return;}if(_0x5bfdbf['stage']===p['SnapshotLoadStage']['ERROR']||_0x5bfdbf[_0x3242ab(0x438)]<=0xa){this[_0x3242ab(0x1b9)](_0x5bfdbf[_0x3242ab(0x3fc)]);return;}if(_0x5bfdbf[_0x3242ab(0x21c)]===p['SnapshotLoadStage'][_0x3242ab(0x297)]){this[_0x3242ab(0x2f2)](_0x5bfdbf[_0x3242ab(0x3fc)]);return;}if(_0x5bfdbf['stage']===p[_0x3242ab(0x2cf)][_0x3242ab(0x1ab)]&&_0x5bfdbf[_0x3242ab(0x3fe)]&&_0x5bfdbf[_0x3242ab(0x368)]){let _0x53a89e=this['_getSheetLoadingRenderService']();if(!_0x53a89e)return;this['_previewUnitId']&&this[_0x3242ab(0x463)]!==_0x5bfdbf['unitId']&&this[_0x3242ab(0x1b9)](this[_0x3242ab(0x463)]),_0x53a89e[_0x3242ab(0x26c)](_0x5bfdbf['workbookShell'],_0x5bfdbf[_0x3242ab(0x368)]),this[_0x3242ab(0x463)]=_0x5bfdbf[_0x3242ab(0x3fc)],this[_0x3242ab(0x1c9)](!0x0),_0x5bfdbf[_0x3242ab(0x268)]&&_0x53a89e[_0x3242ab(0x1d1)](_0x5bfdbf[_0x3242ab(0x3fe)],_0x5bfdbf[_0x3242ab(0x368)],_0x5bfdbf[_0x3242ab(0x31a)]);}}[_0x32171b(0x2f2)](_0x5c5afb){const _0x256fb8=_0x32171b;if(this[_0x256fb8(0x463)]!==_0x5c5afb||this['_handoffUnitIds'][_0x256fb8(0x41a)](_0x5c5afb))return;let _0x3eb47c=this['_sheetLoadingRenderService'];_0x3eb47c&&(this[_0x256fb8(0x350)][_0x256fb8(0x3ac)](_0x5c5afb),_0x3eb47c[_0x256fb8(0x36e)](_0x5c5afb,0x2710)[_0x256fb8(0x22f)](_0x54f0b9=>{const _0x434930=_0x256fb8;if(this[_0x434930(0x463)]!==_0x5c5afb)return;if(_0x54f0b9){let _0x29dcaa=''+Y+_0x5c5afb;this[_0x434930(0x1bf)][_0x434930(0x231)](_0x29dcaa),this[_0x434930(0x414)][_0x434930(0x37f)](_0x29dcaa),this[_0x434930(0x463)]=void 0x0,this['_setInteractionBlocked'](!0x1);return;}let _0x4774ca=''+Y+_0x5c5afb;this[_0x434930(0x1bf)][_0x434930(0x231)](_0x4774ca),this['_messageIds'][_0x434930(0x37f)](_0x4774ca),this[_0x434930(0x2ed)][_0x434930(0x1f5)]({'unitId':_0x5c5afb,'content':this['_localeService']['t']('collaboration-client-ui.session.connection-failed'),'refreshLabel':this[_0x434930(0x28a)]['t'](_0x434930(0x317))});}));}['_hidePreview'](_0xd3ba15){const _0x5a3efa=_0x32171b;var _0x3107e4;this[_0x5a3efa(0x463)]===_0xd3ba15&&((_0x3107e4=this[_0x5a3efa(0x35f)])==null||_0x3107e4[_0x5a3efa(0x3c9)](_0xd3ba15),this[_0x5a3efa(0x463)]=void 0x0,this[_0x5a3efa(0x1c9)](!0x1));}[_0x32171b(0x1c9)](_0x2c9965){const _0x4d5133=_0x32171b;if(_0x2c9965!==this['_interactionBlocked$']['value']){if(_0x2c9965)this[_0x4d5133(0x481)]=this[_0x4d5133(0x288)][_0x4d5133(0x35d)]();else{var _0x520d02;(_0x520d02=this[_0x4d5133(0x481)])==null||_0x520d02[_0x4d5133(0x376)](),this['_shortcutBlock']=void 0x0;}this[_0x4d5133(0x205)]['next'](_0x2c9965);}}[_0x32171b(0x40a)](_0x1e5011){const _0x1ba130=_0x32171b;let _0x1e2a25=this[_0x1ba130(0x44b)]['getParam']('unit');return!_0x1e2a25||_0x1e2a25===_0x1e5011;}[_0x32171b(0x37e)](){const _0x370cf5=_0x32171b;return this[_0x370cf5(0x35f)]?this[_0x370cf5(0x35f)]:(this[_0x370cf5(0x2f5)][_0x370cf5(0x468)](n['UniverInstanceType'][_0x370cf5(0x370)]),this[_0x370cf5(0x2e6)][_0x370cf5(0x41a)](v[_0x370cf5(0x412)])&&(this[_0x370cf5(0x35f)]=this[_0x370cf5(0x2e6)][_0x370cf5(0x3e4)](v['ISheetLoadingRenderService'])),this[_0x370cf5(0x35f)]);}};X=C([S(0x0,(0x0,n[_0x32171b(0x329)])(p[_0x32171b(0x286)])),S(0x1,r['IMessageService']),S(0x2,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x227)])),S(0x3,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x25b)])),S(0x4,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x2fb)])),S(0x5,r['IUIPartsService']),S(0x6,r['IShortcutService']),S(0x7,H)],X);function Te(_0x605bb8){const _0x491f1e=_0x32171b;var _0x35efc1,_0x5dce05;let _0x243714=(_0x35efc1=_0x605bb8[_0x491f1e(0x2db)])==null?void 0x0:_0x35efc1[_0x491f1e(0x21c)],_0x7192bb=((_0x5dce05=_0x605bb8['stageInfo'])==null?void 0x0:_0x5dce05[_0x491f1e(0x44f)])||0x0;return _0x243714===h[_0x491f1e(0x207)][_0x491f1e(0x307)]&&_0x7192bb>0x0;}function Ee(_0xe70454){const _0x59ecf2=_0x32171b;return _0xe70454['functionsExecutedState']===h[_0x59ecf2(0x334)][_0x59ecf2(0x2e5)];}let Z=class extends n['Disposable']{constructor(_0x55f177,_0x53ab11,_0x4c9448,_0x143dc5,_0x442afa,_0x1eb33c,_0x3afe47){const _0xa5d2d5=_0x32171b;super(),this[_0xa5d2d5(0x1bf)]=_0x55f177,this[_0xa5d2d5(0x465)]=_0x53ab11,this[_0xa5d2d5(0x20f)]=_0x4c9448,this[_0xa5d2d5(0x40c)]=_0x143dc5,this[_0xa5d2d5(0x2c7)]=_0x442afa,this['_logService']=_0x1eb33c,this[_0xa5d2d5(0x28a)]=_0x3afe47,x(this,_0xa5d2d5(0x32a),null),x(this,_0xa5d2d5(0x20b),0x0),x(this,'_currentUsage',0x0),x(this,_0xa5d2d5(0x1f7),[]),x(this,_0xa5d2d5(0x269),0x0),this[_0xa5d2d5(0x295)]();}[_0x32171b(0x295)](){const _0x2e71eb=_0x32171b;this['disposeWithMe'](this[_0x2e71eb(0x465)][_0x2e71eb(0x3f2)]((_0x5e1a09,_0x121101)=>{const _0x79873d=_0x2e71eb;var _0x28ec80;if(_0x5e1a09['id']!==h[_0x79873d(0x384)]['id'])return;let _0x69d933=_0x5e1a09[_0x79873d(0x219)];if(this[_0x79873d(0x346)]((_0x28ec80=_0x69d933['dirtyRanges'])==null?[]:_0x28ec80)&&!this[_0x79873d(0x3d2)]())throw this[_0x79873d(0x2f1)](_0x5e1a09,_0x121101),this[_0x79873d(0x2d8)](),new n['CanceledError']();})),this[_0x2e71eb(0x3ec)](this['_commandService'][_0x2e71eb(0x363)]((_0x263002,_0x42d102)=>{const _0xd7881e=_0x2e71eb;if(_0x263002['id']!==h[_0xd7881e(0x402)]['id'])return;let _0x10372c=_0x263002[_0xd7881e(0x219)];if(Te(_0x10372c)){let _0x472eab=(0x0,n[_0xd7881e(0x470)])();this['_taskIds'][_0xd7881e(0x18d)](_0x472eab),this[_0xd7881e(0x1dd)](_0x472eab);}else{if(Ee(_0x10372c)&&this[_0xd7881e(0x1f7)][_0xd7881e(0x1f1)]>0x0){let _0x146dce=this[_0xd7881e(0x1f7)]['shift']();this[_0xd7881e(0x2ad)](_0x146dce);}}}));}['dispose'](){const _0x1e4990=_0x32171b;super[_0x1e4990(0x376)](),this[_0x1e4990(0x1b0)](),this['_taskIds']=[],this[_0x1e4990(0x2b9)]=0x0,this[_0x1e4990(0x20b)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x32171b(0x2f1)](_0x23117b,_0x4b07cb){const _0x465d5b=_0x32171b;for(let _0x154c12=0x0;_0x154c12<0x1e;_0x154c12++)try{if(await this[_0x465d5b(0x19c)](),this[_0x465d5b(0x3d2)]()){this[_0x465d5b(0x1f3)](_0x23117b,_0x4b07cb),this[_0x465d5b(0x1bf)][_0x465d5b(0x1d1)]({'content':this[_0x465d5b(0x28a)]['t'](_0x465d5b(0x379)),'type':o[_0x465d5b(0x386)]['Success']});return;}await new Promise(_0x1ed54e=>{const _0x438c5a=_0x465d5b;this[_0x438c5a(0x32a)]=window[_0x438c5a(0x1b8)](_0x1ed54e,0x3e8);});}catch(_0x523684){this[_0x465d5b(0x335)]['error'](_0x523684);}this['_messageService'][_0x465d5b(0x1d1)]({'content':this[_0x465d5b(0x28a)]['t'](_0x465d5b(0x248)),'type':o[_0x465d5b(0x386)][_0x465d5b(0x343)]});}[_0x32171b(0x1f3)](_0x479120,_0x4772f3){const _0x24fb3a=_0x32171b;try{this[_0x24fb3a(0x465)]['executeCommand'](_0x479120['id'],_0x479120[_0x24fb3a(0x219)],_0x4772f3);}catch(_0x475634){this[_0x24fb3a(0x335)][_0x24fb3a(0x23d)](_0x475634);}}[_0x32171b(0x3d6)](_0x38bd03,_0x4b5eb2){const _0x1cbb9d=_0x32171b;_0x4b5eb2<this[_0x1cbb9d(0x269)]||(this[_0x1cbb9d(0x269)]=_0x4b5eb2,this['_maxFormulaLimit']=Number[_0x1cbb9d(0x1b7)](_0x38bd03[_0x1cbb9d(0x1a7)]),this['_currentUsage']=Number['parseInt'](_0x38bd03[_0x1cbb9d(0x1b6)]));}async[_0x32171b(0x1dd)](_0x218394){const _0x401a19=_0x32171b;let _0x2ba21f=Date[_0x401a19(0x2e1)]();try{var _0x126c27,_0x3bb88c;let _0x20bbd7=((_0x126c27=this[_0x401a19(0x20f)][_0x401a19(0x483)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x126c27[_0x401a19(0x3cd)])||_0x401a19(0x235),_0x2dc56d=(await this[_0x401a19(0x40c)]['post'](_0x20bbd7,{'body':JSON[_0x401a19(0x242)]({'taskId':_0x218394})}))[_0x401a19(0x3be)];if(((_0x3bb88c=_0x2dc56d[_0x401a19(0x23d)])==null?void 0x0:_0x3bb88c[_0x401a19(0x2fe)])!==y[_0x401a19(0x25d)]['OK'])return;this[_0x401a19(0x3d6)](_0x2dc56d[_0x401a19(0x301)],_0x2ba21f);}catch(_0x875699){this[_0x401a19(0x335)][_0x401a19(0x23d)](_0x875699);}}async['_getFormulaLimitStatus'](_0x48dc41){const _0x5e9759=_0x32171b;let _0x580b4a=Date[_0x5e9759(0x2e1)]();try{var _0x57ac56,_0x1f7753;let _0x27a980=((_0x57ac56=this[_0x5e9759(0x20f)]['getConfig'](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x57ac56[_0x5e9759(0x2f6)])||'/universer-api/license/formula/limit/status',_0x2fb410=_0x48dc41?_0x27a980+_0x5e9759(0x2d3)+encodeURIComponent(_0x48dc41):_0x27a980,_0x27b087=(await this['_httpService'][_0x5e9759(0x3e4)](_0x2fb410))[_0x5e9759(0x3be)];if(((_0x1f7753=_0x27b087[_0x5e9759(0x23d)])==null?void 0x0:_0x1f7753[_0x5e9759(0x2fe)])!==y['ErrorCode']['OK'])return;this[_0x5e9759(0x3d6)](_0x27b087[_0x5e9759(0x301)],_0x580b4a);}catch(_0x2987fc){this['_logService'][_0x5e9759(0x23d)](_0x2987fc);}}async[_0x32171b(0x2ad)](_0x55cd25){const _0x3ce607=_0x32171b;let _0x4f8a2d=Date[_0x3ce607(0x2e1)]();try{var _0x283c4c,_0x3b297d;let _0x4787f9=((_0x283c4c=this[_0x3ce607(0x20f)][_0x3ce607(0x483)](t[_0x3ce607(0x433)]))==null?void 0x0:_0x283c4c[_0x3ce607(0x441)])||_0x3ce607(0x3a2),_0x4e0c3b=(await this['_httpService'][_0x3ce607(0x3a6)](_0x4787f9,{'body':JSON[_0x3ce607(0x242)]({'taskId':_0x55cd25})}))[_0x3ce607(0x3be)];if(((_0x3b297d=_0x4e0c3b[_0x3ce607(0x23d)])==null?void 0x0:_0x3b297d[_0x3ce607(0x2fe)])!==y['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x4e0c3b[_0x3ce607(0x301)],_0x4f8a2d);}catch(_0x2c5a17){this[_0x3ce607(0x335)][_0x3ce607(0x23d)](_0x2c5a17);}}[_0x32171b(0x3d2)](){const _0xd34b01=_0x32171b;return this[_0xd34b01(0x20b)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0xd34b01(0x2b9)]>0x0;}[_0x32171b(0x1b0)](){const _0x59f39e=_0x32171b;this[_0x59f39e(0x32a)]&&(clearTimeout(this['_pollingInterval']),this[_0x59f39e(0x32a)]=null);}[_0x32171b(0x2d8)](){const _0x524be2=_0x32171b;this['_messageService'][_0x524be2(0x1d1)]({'content':this[_0x524be2(0x28a)]['t'](_0x524be2(0x2b8)),'type':o[_0x524be2(0x386)][_0x524be2(0x396)]});}[_0x32171b(0x346)](_0x46a65e){const _0x5eb922=_0x32171b;for(let _0x44ea70 of _0x46a65e){let {unitId:_0x836101,sheetId:_0xeb917d,range:_0x3150ec}=_0x44ea70,_0x621874=this['_univerInstanceService'][_0x5eb922(0x2d1)](_0x836101);if(!_0x621874)continue;let _0x57b9f4=_0x621874['getSheetBySheetId'](_0xeb917d);if(!_0x57b9f4)continue;let _0x2832b9=_0x57b9f4[_0x5eb922(0x406)]();for(let _0x2d8338=_0x3150ec[_0x5eb922(0x358)];_0x2d8338<=_0x3150ec['endRow'];_0x2d8338++)for(let _0x5f3f02=_0x3150ec[_0x5eb922(0x22a)];_0x5f3f02<=_0x3150ec['endColumn'];_0x5f3f02++){let _0x5b3fb4=_0x2832b9[_0x5eb922(0x2c8)](_0x2d8338,_0x5f3f02);if(_0x5b3fb4&&((0x0,n['isFormulaString'])(_0x5b3fb4['f'])||(0x0,n[_0x5eb922(0x34b)])(_0x5b3fb4['si'])))return!0x0;}}return!0x1;}};Z=C([S(0x0,(0x0,n[_0x32171b(0x329)])(r[_0x32171b(0x34e)])),S(0x1,n['ICommandService']),S(0x2,n['IConfigService']),S(0x3,(0x0,n[_0x32171b(0x329)])(d[_0x32171b(0x2b6)])),S(0x4,n[_0x32171b(0x289)]),S(0x5,n['ILogService']),S(0x6,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x227)]))],Z);let De=class extends n[_0x32171b(0x45a)]{constructor(_0x22ca89,_0x5c4c10,_0x580c8c){const _0x4780ef=_0x32171b;super(),this[_0x4780ef(0x20f)]=_0x22ca89,this['_localStorageService']=_0x5c4c10,this[_0x4780ef(0x45f)]=_0x580c8c,x(this,_0x4780ef(0x37a),new Map()),x(this,_0x4780ef(0x325),new Map()),x(this,_0x4780ef(0x3ef),!0x1);}['disableLocalCache'](){const _0x4cda10=_0x32171b;this[_0x4cda10(0x3ef)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x32171b(0x385)](){return this['_saveTaskMap'];}[_0x32171b(0x376)](){const _0x453c03=_0x32171b;this[_0x453c03(0x188)]()[_0x453c03(0x22f)](()=>super['dispose']());}async[_0x32171b(0x1d5)](_0x1f18ca){const _0x535fd3=_0x32171b;return this['_disabled']?null:this[_0x535fd3(0x2c4)]['getItem']((0x0,t['getLocalCacheKey'])(_0x1f18ca));}async[_0x32171b(0x18b)](_0x168851,_0x23096a){const _0x5a3917=_0x32171b;return!!this[_0x5a3917(0x2c4)][_0x5a3917(0x377)]((0x0,t[_0x5a3917(0x380)])(_0x168851),_0x23096a);}async[_0x32171b(0x3bd)](_0x1e8e6b,_0x53337f){const _0x58c72b=_0x32171b;var _0x57f5eb;let _0x465230=(_0x57f5eb=this['_cachedData'][_0x58c72b(0x3e4)](_0x1e8e6b))==null?await this[_0x58c72b(0x2c4)][_0x58c72b(0x3f8)]((0x0,t[_0x58c72b(0x380)])(_0x1e8e6b)):_0x57f5eb;if(!_0x465230)return;let _0x239aff=Date[_0x58c72b(0x2e1)](),_0x281480=new Date(_0x239aff)[_0x58c72b(0x236)]();await this[_0x58c72b(0x2c4)][_0x58c72b(0x377)]((0x0,t[_0x58c72b(0x380)])(_0x1e8e6b)+':backup:'+_0x239aff,{'reason':_0x53337f,'createdAt':_0x281480,'data':_0x465230});}['updateOfflineData'](_0x42d16f,_0x1d5f74,_0x1d1f9c,_0x3c0169){const _0xd2cc36=_0x32171b;let _0x174cc4=this[_0xd2cc36(0x45f)][_0xd2cc36(0x17b)](_0x42d16f);this['_cachedData'][_0xd2cc36(0x30a)](_0x42d16f,{'unitID':_0x42d16f,'type':_0x1d5f74,'awaitingChangeset':_0x1d1f9c,'mutations':_0x3c0169,'rev':_0x174cc4}),this[_0xd2cc36(0x325)]['has'](_0x42d16f)||this['_scheduleSaving'](_0x42d16f);}['_scheduleSaving'](_0x3b1d0a){const _0x5748cc=_0x32171b;let _0x3fb2a8=this[_0x5748cc(0x23b)]();_0x3fb2a8===0x0?this[_0x5748cc(0x2e3)](_0x3b1d0a):this['_saveTaskMap']['set'](_0x3b1d0a,window['setTimeout'](()=>this[_0x5748cc(0x2e3)](_0x3b1d0a),_0x3fb2a8));}['_getSaveTimeout'](){const _0x56a646=_0x32171b;var _0x4726a3;return(_0x4726a3=this[_0x56a646(0x20f)]['getConfig'](t['LOCAL_CACHE_INTERVAL_KEY']))==null?t['LOCAL_CACHE_INTERVAL']:_0x4726a3;}[_0x32171b(0x2e3)](_0x4019a8){const _0x431948=_0x32171b;let _0x2ebbef=this[_0x431948(0x325)][_0x431948(0x3e4)](_0x4019a8);return _0x2ebbef!==void 0x0&&window[_0x431948(0x393)](_0x2ebbef),this['_localStorageService'][_0x431948(0x377)]((0x0,t[_0x431948(0x380)])(_0x4019a8),this[_0x431948(0x37a)]['get'](_0x4019a8))[_0x431948(0x22f)](()=>this['_saveTaskMap']['delete'](_0x4019a8));}async[_0x32171b(0x188)](){const _0x3b9ef3=_0x32171b;let _0x4d9baf=[];this[_0x3b9ef3(0x325)][_0x3b9ef3(0x19f)]((_0x3b82c2,_0x57c1a7)=>{const _0x456a4a=_0x3b9ef3;window['clearTimeout'](_0x3b82c2),_0x4d9baf[_0x456a4a(0x18d)](this[_0x456a4a(0x2e3)](_0x57c1a7)[_0x456a4a(0x22f)](()=>{const _0x4fd85d=_0x456a4a;this[_0x4fd85d(0x325)]['delete'](_0x57c1a7);}));}),await Promise[_0x3b9ef3(0x437)](_0x4d9baf);}};De=C([S(0x0,n[_0x32171b(0x267)]),S(0x1,n['ILocalStorageService']),S(0x2,(0x0,n[_0x32171b(0x329)])(p[_0x32171b(0x1aa)]))],De);var Oe=class extends n[_0x32171b(0x467)]{constructor(){const _0x382fe8=_0x32171b;super(),x(this,_0x382fe8(0x353),void 0x0),this[_0x382fe8(0x353)]=(0x0,i[_0x382fe8(0x18f)])(window,_0x382fe8(0x43f))[_0x382fe8(0x1fa)]((0x0,i[_0x382fe8(0x38d)])(this[_0x382fe8(0x273)]),(0x0,i[_0x382fe8(0x2a8)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i[_0x382fe8(0x28d)])(void 0x0));}[_0x32171b(0x319)](_0x30d147,_0xac2a2f,_0x15366d=!0x1){const _0x5b3399=_0x32171b;let _0x245cdb=new URL(window['location'][_0x5b3399(0x3ff)]);_0x245cdb[_0x5b3399(0x1e5)][_0x5b3399(0x30a)](_0x30d147,_0xac2a2f),_0x15366d?window[_0x5b3399(0x38e)][_0x5b3399(0x2cc)]('','',_0x245cdb['toString']()):window[_0x5b3399(0x38e)][_0x5b3399(0x3ed)]('','',_0x245cdb[_0x5b3399(0x430)]());}[_0x32171b(0x2ee)](_0xea3a14,_0x242f31=!0x1){const _0x546b37=_0x32171b;let _0x3879b6=new URL(window[_0x546b37(0x3a9)]['href']);_0x3879b6[_0x546b37(0x1e5)][_0x546b37(0x37f)](_0xea3a14),_0x242f31?window[_0x546b37(0x38e)][_0x546b37(0x2cc)]('','',_0x3879b6[_0x546b37(0x430)]()):window[_0x546b37(0x38e)]['pushState']('','',_0x3879b6['toString']());}[_0x32171b(0x1cd)](_0x46908e){const _0x191dc4=_0x32171b;var _0x16773c;return(_0x16773c=new URL(window['location'][_0x191dc4(0x3ff)])[_0x191dc4(0x1e5)][_0x191dc4(0x3e4)](_0x46908e))==null?void 0x0:_0x16773c;}};let Q=class extends n[_0x32171b(0x2e7)]{constructor(_0x2b5f60=ue,_0x3056a6,_0x630ee1,_0xfee778){const _0x2272ed=_0x32171b;super(),this['_config']=_0x2b5f60,this['_renderManagerService']=_0x3056a6,this['_injector']=_0x630ee1,this[_0x2272ed(0x20f)]=_0xfee778;let {..._0x4c40fc}=(0x0,n[_0x2272ed(0x204)])({},ue,this['_config']);this[_0x2272ed(0x20f)][_0x2272ed(0x2ce)](_0x2272ed(0x37d),_0x4c40fc);}[_0x32171b(0x37b)](){const _0x13043e=_0x32171b;this[_0x13043e(0x2de)](),this['_initDependencies']();}['onRendered'](){const _0xb0fd3e=_0x32171b;this[_0xb0fd3e(0x200)]();}[_0x32171b(0x2de)](){const _0x39a115=_0x32171b;var _0x366875;let _0x111e64=[[k],[Z],[H,{'useClass':Oe}],[d[_0x39a115(0x27e)],{'useClass':d['WebSocketService']}],[t[_0x39a115(0x3e3)],{'useClass':De}],[w],[T],[V],[F],[U],[X]];this[_0x39a115(0x1cc)][_0x39a115(0x1f2)]!==!0x1&&_0x111e64['push']([K],[W],[G],[j],[q],[E]),this[_0x39a115(0x1cc)][_0x39a115(0x369)]&&_0x111e64[_0x39a115(0x18d)]([J]),(0x0,n['registerDependencies'])(this[_0x39a115(0x2e6)],(0x0,n[_0x39a115(0x3db)])(_0x111e64,(_0x366875=this[_0x39a115(0x1cc)])==null?void 0x0:_0x366875[_0x39a115(0x36b)]));}[_0x32171b(0x200)](){const _0x476250=_0x32171b;this['_config'][_0x476250(0x1f2)]!==!0x1&&this[_0x476250(0x3ec)](this[_0x476250(0x224)][_0x476250(0x487)](n[_0x476250(0x212)][_0x476250(0x304)],[R])),this[_0x476250(0x3ec)](this[_0x476250(0x224)][_0x476250(0x487)](n[_0x476250(0x212)]['UNIVER_SHEET'],[z])),this[_0x476250(0x3ec)](this[_0x476250(0x224)][_0x476250(0x487)](n[_0x476250(0x212)][_0x476250(0x452)],[B])),this[_0x476250(0x3ec)](this[_0x476250(0x224)][_0x476250(0x487)](n[_0x476250(0x212)]['UNIVER_BOARD'],[I]));}[_0x32171b(0x474)](){const _0x2ac83d=_0x32171b;(0x0,n['touchDependencies'])(this['_injector'],[[F],[w],[T],[V],[U],[Z],[X]]),this[_0x2ac83d(0x1cc)]['enableDocumentCollaborationUI']!==!0x1&&(0x0,n['touchDependencies'])(this[_0x2ac83d(0x2e6)],[[q],[E]]),this[_0x2ac83d(0x1cc)][_0x2ac83d(0x369)]&&(0x0,n['touchDependencies'])(this[_0x2ac83d(0x2e6)],[[J]]);}};x(Q,_0x32171b(0x3e5),_0x32171b(0x43b)),x(Q,'packageName',ce),x(Q,_0x32171b(0x451),le),Q=C([(0x0,n[_0x32171b(0x454)])(t['UniverCollaborationClientPlugin']),S(0x1,u[_0x32171b(0x28b)]),S(0x2,(0x0,n[_0x32171b(0x329)])(n[_0x32171b(0x25b)])),S(0x3,n['IConfigService'])],Q);let ke=class extends t['CollaborationSocketService']{constructor(_0x13b297,_0x45b42d,_0x52bcf5,_0x190346,_0x1a0e39){super(_0x13b297,_0x45b42d,_0x52bcf5,_0x190346,_0x1a0e39);}async[_0x32171b(0x1a9)](_0x2e1622){const _0x23cf64=_0x32171b;let _0x929c6d=await this[_0x23cf64(0x2c1)](),_0x42e4cd=this[_0x23cf64(0x1c5)](_0x2e1622,_0x929c6d);return this[_0x23cf64(0x255)](_0x42e4cd);}[_0x32171b(0x1c5)](_0x5ec3bc,_0x3cca58){const _0x225847=_0x32171b;let _0xe74db6=typeof window>'u'?new URL(_0x5ec3bc):new URL(_0x5ec3bc,window[_0x225847(0x3a9)][_0x225847(0x2a2)]);_0xe74db6[_0x225847(0x1e5)][_0x225847(0x30a)](_0x225847(0x39c),_0x3cca58);let _0x23c64b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x225847(0x394)]);return _0x23c64b[_0x225847(0x3e4)](_0x225847(0x29a))&&_0xe74db6['searchParams']['set'](_0x225847(0x29a),_0x23c64b[_0x225847(0x3e4)](_0x225847(0x29a))),_0xe74db6[_0x225847(0x430)]();}async[_0x32171b(0x2c1)](){const _0x2ae430=_0x32171b;var _0x104e53,_0x49c6a4,_0xab6c87;let _0x5ec133=this[_0x2ae430(0x20f)][_0x2ae430(0x483)](t[_0x2ae430(0x433)]),_0x178a3b=(_0x104e53=_0x5ec133==null?void 0x0:_0x5ec133[_0x2ae430(0x3f1)])==null?t[_0x2ae430(0x342)]:_0x104e53;return(_0x49c6a4=(_0xab6c87=(await this[_0x2ae430(0x40c)]['get'](_0x178a3b,{'headers':{'Content-Type':'application/json'}}))[_0x2ae430(0x3be)])==null?void 0x0:_0xab6c87['ticket'])==null?'':_0x49c6a4;}};ke=C([S(0x0,(0x0,n[_0x32171b(0x329)])(n['Injector'])),S(0x1,(0x0,n[_0x32171b(0x329)])(d[_0x32171b(0x2b6)])),S(0x2,n[_0x32171b(0x267)]),S(0x3,n['ILogService']),S(0x4,p[_0x32171b(0x3f3)])],ke);let $=class extends n[_0x32171b(0x45a)]{constructor(_0x3573fe,_0x3bf11a,_0xf72f74){const _0x2ad35c=_0x32171b;super(),this[_0x2ad35c(0x42b)]=_0x3573fe,this[_0x2ad35c(0x40c)]=_0x3bf11a,this['_configService']=_0xf72f74;}async[_0x32171b(0x473)](_0x11067a,_0x15cccb,_0x27ad39,..._0x5e00b1){const _0x16a067=_0x32171b;var _0x165722,_0x4edefa,_0x4de7e1,_0x4b7f43;let _0x164f44=this['_instanceService'][_0x16a067(0x1a2)]();if(!_0x164f44)throw Error(_0x16a067(0x3da));let _0x2bb6f4=((_0x165722=this[_0x16a067(0x20f)][_0x16a067(0x483)](t['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))==null?t['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']:_0x165722)+'/'+_0x11067a+'/run/'+_0x15cccb,_0x138a3b={'scriptId':_0x11067a,'runId':(_0x4edefa=new URL(window['location'][_0x16a067(0x3ff)])[_0x16a067(0x1e5)][_0x16a067(0x3e4)]('runId'))==null?'':_0x4edefa,'function':_0x15cccb,'unitId':_0x164f44[_0x16a067(0x261)](),'argsOfFunction':JSON[_0x16a067(0x242)](_0x5e00b1),'invokeId':(_0x4de7e1=_0x27ad39[_0x16a067(0x2ef)])==null?'':_0x4de7e1,'executionId':(_0x4b7f43=_0x27ad39['executionId'])==null?'':_0x4b7f43};try{let _0x5cc54c=await this[_0x16a067(0x40c)][_0x16a067(0x3a6)](_0x2bb6f4,{'body':_0x138a3b});return _0x5cc54c[_0x16a067(0x3be)][_0x16a067(0x23d)]&&_0x5cc54c['body'][_0x16a067(0x23d)]['code']!==y[_0x16a067(0x25d)]['OK']?_0x16a067(0x276):_0x5cc54c[_0x16a067(0x3be)]['result'];}catch{return _0x16a067(0x276);}}};function _0x4167(_0x5ae485,_0x3f1dea){_0x5ae485=_0x5ae485-0x177;const _0x176518=_0x1765();let _0x4167d1=_0x176518[_0x5ae485];return _0x4167d1;}$=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n[_0x32171b(0x329)])(d[_0x32171b(0x2b6)])),S(0x2,n[_0x32171b(0x267)])],$);const Ae=0x7530,je=_0x32171b(0x3f9);var Me=class extends n[_0x32171b(0x45a)]{constructor(){const _0x588e93=_0x32171b;super(),x(this,_0x588e93(0x364),(0x0,n[_0x588e93(0x470)])()),x(this,_0x588e93(0x493),new Set()),x(this,_0x588e93(0x25a),new Map()),x(this,_0x588e93(0x29e),null),x(this,'_clearOtherTimers',new Map()),x(this,'_unitStatus',new Map()),this[_0x588e93(0x35c)]();}[_0x32171b(0x376)](){const _0x1548fd=_0x32171b;super[_0x1548fd(0x376)](),this[_0x1548fd(0x187)][_0x1548fd(0x19f)]((_0x121514,_0x3edbeb)=>this[_0x1548fd(0x1b5)](_0x3edbeb)),this[_0x1548fd(0x29e)]&&window[_0x1548fd(0x1c0)](this[_0x1548fd(0x29e)]);}[_0x32171b(0x36c)](_0x3c8cf9){const _0x1a11ad=_0x32171b;return this[_0x1a11ad(0x1a5)](_0x3c8cf9)[_0x1a11ad(0x1fa)]((0x0,i[_0x1a11ad(0x323)])());}[_0x32171b(0x26b)](_0x2f96f2){const _0x282362=_0x32171b;this[_0x282362(0x493)]['size']===0x0&&this[_0x282362(0x424)](),this[_0x282362(0x493)][_0x282362(0x3ac)](_0x2f96f2),this['_send']({'type':0x0,'memberID':this[_0x282362(0x364)],'unitIDs':[_0x2f96f2],'isForwarded':!0x1});}[_0x32171b(0x254)](_0x5a1e81){const _0x5923e6=_0x32171b;this[_0x5923e6(0x493)]['delete'](_0x5a1e81),this[_0x5923e6(0x493)]['size']===0x0&&this[_0x5923e6(0x29e)]&&window[_0x5923e6(0x1c0)](this[_0x5923e6(0x29e)]);}[_0x32171b(0x35c)](){const _0x5220ac=_0x32171b;this['disposeWithMe']((0x0,n[_0x5220ac(0x216)])((0x0,i[_0x5220ac(0x18f)])(window,_0x5220ac(0x27a))[_0x5220ac(0x2b4)](_0x297e2b=>{const _0x36425f=_0x5220ac;if(_0x297e2b[_0x36425f(0x25f)]!==je||!_0x297e2b['newValue'])return;let _0x238967=JSON[_0x36425f(0x46e)](_0x297e2b[_0x36425f(0x27b)]);this[_0x36425f(0x3ea)](_0x238967);}))),window[_0x5220ac(0x490)](_0x5220ac(0x39a),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5220ac(0x461)](this['_selfUnitIDs'])}));}[_0x32171b(0x3ea)](_0x5aa978){const _0x1a3400=_0x32171b;switch(_0x5aa978[_0x1a3400(0x1ef)]){case 0x0:this[_0x1a3400(0x191)](_0x5aa978);break;case 0x1:this[_0x1a3400(0x2bc)](_0x5aa978);break;case 0x2:this[_0x1a3400(0x44c)](_0x5aa978);break;}}[_0x32171b(0x191)](_0x3522c4){const _0x54135f=_0x32171b;let {unitIDs:_0x55a942,memberID:_0x41a340,isForwarded:_0x250995}=_0x3522c4;_0x55a942['forEach'](_0x593bde=>{const _0x239dba=_0x4167;if(!_0x250995&&this[_0x239dba(0x25a)][_0x239dba(0x41a)](_0x593bde)&&this[_0x239dba(0x1a5)](_0x593bde)[_0x239dba(0x1f5)](t[_0x239dba(0x45d)][_0x239dba(0x2ab)]),!this[_0x239dba(0x25a)]['has'](_0x593bde)||!this['_unitOnClients']['get'](_0x593bde)[_0x239dba(0x41a)](_0x41a340)){let _0x39ae3e=this[_0x239dba(0x25a)]['get'](_0x593bde)||new Set();_0x39ae3e[_0x239dba(0x3ac)](_0x41a340),this[_0x239dba(0x25a)][_0x239dba(0x30a)](_0x593bde,_0x39ae3e),this[_0x239dba(0x20e)](_0x41a340);}}),_0x250995||this[_0x54135f(0x46b)]({'type':0x0,'memberID':this[_0x54135f(0x364)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x32171b(0x20e)](_0x5af4ff){const _0xa863dc=_0x32171b;this['_removeClearOtherTimer'](_0x5af4ff);let _0x5699d9=window[_0xa863dc(0x1b8)](()=>{const _0xe63ca7=_0xa863dc;this[_0xe63ca7(0x25a)][_0xe63ca7(0x19f)](_0x46f8c9=>{const _0x472acd=_0xe63ca7;_0x46f8c9[_0x472acd(0x37f)](_0x5af4ff);});},Ae*0x2);this['_clearOtherTimers']['set'](_0x5af4ff,_0x5699d9);}[_0x32171b(0x1b5)](_0x5afdfb){const _0x288ecf=_0x32171b;if(this[_0x288ecf(0x187)][_0x288ecf(0x41a)](_0x5afdfb)){let _0xc8e057=this[_0x288ecf(0x187)]['get'](_0x5afdfb);_0xc8e057&&window['clearTimeout'](_0xc8e057),this['_clearOtherTimers']['set'](_0x5afdfb,null);}}[_0x32171b(0x2bc)](_0x472b16){let {memberID:_0x36158e,unitIDs:_0x17b8fb}=_0x472b16;_0x17b8fb['forEach'](_0x2351b7=>{const _0x2bd4ae=_0x4167;var _0x518aa1;let _0xc9d62=this[_0x2bd4ae(0x25a)][_0x2bd4ae(0x3e4)](_0x2351b7);_0xc9d62&&(_0xc9d62[_0x2bd4ae(0x37f)](_0x36158e),(_0x518aa1=this['_ensureSubject'](_0x2351b7))==null||_0x518aa1[_0x2bd4ae(0x1f5)](_0xc9d62[_0x2bd4ae(0x3a1)]===0x0?t[_0x2bd4ae(0x45d)]['NO_OTHER_CLIENTS_EDITING']:t[_0x2bd4ae(0x45d)][_0x2bd4ae(0x2ab)]));}),this['_removeClearOtherTimer'](_0x36158e);}[_0x32171b(0x44c)](_0xf778bf){const _0x41c09a=_0x32171b;this['_scheduleClearOtherTimer'](_0xf778bf[_0x41c09a(0x2fc)]);}[_0x32171b(0x46b)](_0x428978){const _0xf68d25=_0x32171b;localStorage[_0xf68d25(0x377)](je,JSON[_0xf68d25(0x242)](_0x428978));}[_0x32171b(0x424)](){const _0x486f96=_0x32171b;this[_0x486f96(0x29e)]=window[_0x486f96(0x3bb)](()=>{const _0x11a3be=_0x486f96;this[_0x11a3be(0x46b)]({'type':0x2,'memberID':this[_0x11a3be(0x364)]});},Ae);}['_ensureSubject'](_0x1e1498){const _0x3d7637=_0x32171b;return this['_unitStatus'][_0x3d7637(0x41a)](_0x1e1498)||this['_unitStatus'][_0x3d7637(0x30a)](_0x1e1498,new i['BehaviorSubject'](t[_0x3d7637(0x45d)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x3d7637(0x196)][_0x3d7637(0x3e4)](_0x1e1498);}};Object[_0x32171b(0x1e6)](exports,_0x32171b(0x400),{'enumerable':!0x0,'get':function(){return ke;}}),Object[_0x32171b(0x1e6)](exports,_0x32171b(0x2a6),{'enumerable':!0x0,'get':function(){return w;}}),exports[_0x32171b(0x17e)]=H,Object['defineProperty'](exports,_0x32171b(0x422),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x32171b(0x220)]=xe,Object[_0x32171b(0x1e6)](exports,_0x32171b(0x310),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x32171b(0x24e)]=Me;
|
|
1
|
+
const _0x3e206b=_0x1029;(function(_0x58c710,_0xb65c52){const _0x3e50a2=_0x1029,_0x5b4851=_0x58c710();while(!![]){try{const _0xb6351a=-parseInt(_0x3e50a2(0x229))/0x1+parseInt(_0x3e50a2(0x14b))/0x2+-parseInt(_0x3e50a2(0x17d))/0x3+parseInt(_0x3e50a2(0x2ea))/0x4*(parseInt(_0x3e50a2(0x221))/0x5)+-parseInt(_0x3e50a2(0x2da))/0x6+-parseInt(_0x3e50a2(0x1f4))/0x7+parseInt(_0x3e50a2(0x123))/0x8;if(_0xb6351a===_0xb65c52)break;else _0x5b4851['push'](_0x5b4851['shift']());}catch(_0x4df976){_0x5b4851['push'](_0x5b4851['shift']());}}}(_0x2886,0x1ee23),Object['defineProperty'](exports,Symbol[_0x3e206b(0x117)],{'value':_0x3e206b(0x2b2)}));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/engine-render'),d=require('@univerjs/network'),f=require('@univerjs/docs-ui'),p=require('@univerjs-pro/collaboration'),m=require('@univerjs/docs'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs-pro/slides-ui'),v=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),y=require('@univerjs/protocol');function te(_0x378bd3){const _0x1627f8=_0x3e206b;switch(_0x378bd3){case t[_0x1627f8(0x266)][_0x1627f8(0x301)]:return{'icon':(0x0,l[_0x1627f8(0x40c)])(s[_0x1627f8(0x31d)],{}),'colorClass':_0x1627f8(0x356),'i18nKey':_0x1627f8(0x13f),'tooltipKey':_0x1627f8(0x423),'clickable':!0x0,'indicator':_0x1627f8(0x1c7)};case t['CollaborationStatus'][_0x1627f8(0x276)]:return{'icon':(0x0,l[_0x1627f8(0x40c)])(s[_0x1627f8(0x31d)],{}),'colorClass':_0x1627f8(0x236),'i18nKey':_0x1627f8(0x168),'clickable':!0x1,'indicator':_0x1627f8(0x1c7)};case t[_0x1627f8(0x266)]['FETCH_MISS']:return{'icon':(0x0,l['jsx'])(s[_0x1627f8(0x3ef)],{}),'colorClass':_0x1627f8(0x152),'i18nKey':_0x1627f8(0x195),'clickable':!0x1,'indicator':_0x1627f8(0x20d)};case t[_0x1627f8(0x266)][_0x1627f8(0x12d)]:return{'icon':(0x0,l['jsx'])(s[_0x1627f8(0x1a8)],{}),'colorClass':_0x1627f8(0x2f1),'i18nKey':_0x1627f8(0x3d5),'clickable':!0x1,'indicator':_0x1627f8(0x1c7)};case t[_0x1627f8(0x266)]['AWAITING']:case t['CollaborationStatus'][_0x1627f8(0x354)]:return{'icon':(0x0,l[_0x1627f8(0x40c)])(s[_0x1627f8(0x3ef)],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x1627f8(0x17b),'clickable':!0x1,'indicator':_0x1627f8(0x20d)};case t['CollaborationStatus'][_0x1627f8(0x304)]:return{'icon':(0x0,l[_0x1627f8(0x40c)])(s[_0x1627f8(0x3ef)],{}),'colorClass':_0x1627f8(0x152),'i18nKey':_0x1627f8(0x17b),'clickable':!0x1,'indicator':'spin'};case t['CollaborationStatus']['SYNCED']:return{'icon':(0x0,l[_0x1627f8(0x40c)])(s[_0x1627f8(0x1a8)],{}),'colorClass':'univer-text-green-500','i18nKey':_0x1627f8(0x1a3),'clickable':!0x1,'indicator':_0x1627f8(0x1c7)};}}function ne(_0x519dc4){const _0x3905c5=_0x3e206b;let {status$:_0x3553e4}=_0x519dc4,_0x255649=(0x0,r[_0x3905c5(0x3a8)])(_0x3553e4,t[_0x3905c5(0x266)]['NOT_COLLAB']),_0x3a0a65=(0x0,r['useDependency'])(n[_0x3905c5(0x11d)]),_0x2f3fb5=(0x0,r['useDependency'])(t[_0x3905c5(0x167)]),_0x5c70c2=(0x0,c[_0x3905c5(0x2eb)])(()=>te(_0x255649),[_0x255649]),_0x549e8f=_0x255649!==t[_0x3905c5(0x266)]['OFFLINE'],_0x36f5a6=_0x3a0a65['t'](_0x5c70c2[_0x3905c5(0x192)]),_0x456499=_0x5c70c2[_0x3905c5(0x199)]?_0x3a0a65['t'](_0x5c70c2[_0x3905c5(0x199)]):_0x36f5a6,_0x2c74ad=(0x0,c[_0x3905c5(0x39c)])(()=>{_0x549e8f||_0x2f3fb5['reconnect']();},[_0x549e8f,_0x2f3fb5]),_0x1316b7=(0x0,c[_0x3905c5(0x39c)])(_0x40edc8=>{const _0xd65d05=_0x3905c5;!_0x549e8f&&(_0x40edc8['key']==='Enter'||_0x40edc8[_0xd65d05(0x25b)]==='\x20')&&(_0x40edc8['preventDefault'](),_0x2f3fb5[_0xd65d05(0x23a)]());},[_0x549e8f,_0x2f3fb5]),_0x15f7eb=(0x0,l[_0x3905c5(0x40c)])('span',{'className':(0x0,o[_0x3905c5(0x203)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x3905c5(0x36a),_0x5c70c2[_0x3905c5(0x1ae)],{'univer-animate-spin':_0x5c70c2[_0x3905c5(0x32e)]===_0x3905c5(0x20d),'univer-animate-pulse':_0x5c70c2['indicator']==='pulse'}),'aria-hidden':'true','children':_0x5c70c2['icon']}),_0x5b59db=(0x0,l[_0x3905c5(0x40c)])('span',{'className':(0x0,o[_0x3905c5(0x203)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x3905c5(0x24a),_0x3905c5(0x13a),_0x3905c5(0x331),_0x3905c5(0x3d8),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x5c70c2['clickable'],'univer-cursor-default':!_0x5c70c2[_0x3905c5(0x3d6)]}),'children':_0x15f7eb});return _0x5c70c2[_0x3905c5(0x3d6)]?(0x0,l[_0x3905c5(0x40c)])(o[_0x3905c5(0x3b0)],{'title':_0x456499,'placement':'bottom','children':(0x0,l[_0x3905c5(0x40c)])(_0x3905c5(0x1a7),{'type':_0x3905c5(0x1a7),'onClick':_0x2c74ad,'onKeyDown':_0x1316b7,'className':(0x0,o[_0x3905c5(0x203)])(_0x3905c5(0x2ed),_0x3905c5(0x165),_0x3905c5(0x1c6),_0x3905c5(0x3d4)),'aria-label':_0x36f5a6+_0x3905c5(0x3b3)+_0x456499,'role':'status','aria-live':_0x3905c5(0x2e4),'aria-atomic':_0x3905c5(0x181),'children':_0x5b59db})}):(0x0,l[_0x3905c5(0x40c)])(o[_0x3905c5(0x3b0)],{'title':_0x456499,'placement':_0x3905c5(0x17f),'children':(0x0,l[_0x3905c5(0x40c)])(_0x3905c5(0x3d7),{'className':(0x0,o['clsx'])(_0x3905c5(0x2ed),_0x3905c5(0x165),_0x3905c5(0x1c6)),'aria-label':_0x36f5a6,'role':_0x3905c5(0x350),'aria-live':_0x3905c5(0x2e4),'aria-atomic':_0x3905c5(0x181),'children':_0x5b59db})});}function b(_0x305763){'@babel/helpers - typeof';const _0x2ebde8=_0x3e206b;return b=typeof Symbol==_0x2ebde8(0x256)&&typeof Symbol['iterator']==_0x2ebde8(0x37b)?function(_0xf1faec){return typeof _0xf1faec;}:function(_0x1d5300){const _0x319b50=_0x2ebde8;return _0x1d5300&&typeof Symbol=='function'&&_0x1d5300[_0x319b50(0x2fc)]===Symbol&&_0x1d5300!==Symbol[_0x319b50(0x263)]?_0x319b50(0x37b):typeof _0x1d5300;},b(_0x305763);}function re(_0x4d97bb,_0x76f44b){const _0x3d725f=_0x3e206b;if(b(_0x4d97bb)!='object'||!_0x4d97bb)return _0x4d97bb;var _0x26714d=_0x4d97bb[Symbol['toPrimitive']];if(_0x26714d!==void 0x0){var _0x20f052=_0x26714d['call'](_0x4d97bb,_0x76f44b||_0x3d725f(0x33a));if(b(_0x20f052)!=_0x3d725f(0x39b))return _0x20f052;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x76f44b===_0x3d725f(0x25e)?String:Number)(_0x4d97bb);}function ie(_0x214029){const _0x5d2988=_0x3e206b;var _0x13a9a7=re(_0x214029,_0x5d2988(0x25e));return b(_0x13a9a7)=='symbol'?_0x13a9a7:_0x13a9a7+'';}function x(_0xd71fb6,_0x25f449,_0x4a1cfb){const _0x513ee1=_0x3e206b;return(_0x25f449=ie(_0x25f449))in _0xd71fb6?Object[_0x513ee1(0x17e)](_0xd71fb6,_0x25f449,{'value':_0x4a1cfb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xd71fb6[_0x25f449]=_0x4a1cfb,_0xd71fb6;}function S(_0x21d06f,_0x1c972d){return function(_0x243ea2,_0x284b31){_0x1c972d(_0x243ea2,_0x284b31,_0x21d06f);};}function C(_0x318229,_0x2b7d87,_0x408a21,_0x1f86c3){const _0x224640=_0x3e206b;var _0x3b0745=arguments[_0x224640(0x2ca)],_0x3cc73c=_0x3b0745<0x3?_0x2b7d87:_0x1f86c3===null?_0x1f86c3=Object[_0x224640(0x31e)](_0x2b7d87,_0x408a21):_0x1f86c3,_0x1d8abd;if(typeof Reflect==_0x224640(0x39b)&&typeof Reflect[_0x224640(0x153)]==_0x224640(0x256))_0x3cc73c=Reflect['decorate'](_0x318229,_0x2b7d87,_0x408a21,_0x1f86c3);else{for(var _0x3d2fe4=_0x318229[_0x224640(0x2ca)]-0x1;_0x3d2fe4>=0x0;_0x3d2fe4--)(_0x1d8abd=_0x318229[_0x3d2fe4])&&(_0x3cc73c=(_0x3b0745<0x3?_0x1d8abd(_0x3cc73c):_0x3b0745>0x3?_0x1d8abd(_0x2b7d87,_0x408a21,_0x3cc73c):_0x1d8abd(_0x2b7d87,_0x408a21))||_0x3cc73c);}return _0x3b0745>0x3&&_0x3cc73c&&Object[_0x224640(0x17e)](_0x2b7d87,_0x408a21,_0x3cc73c),_0x3cc73c;}let w=class extends n['Disposable']{constructor(_0x42649c,_0x338f0a,_0x18ea27,_0x49d984){const _0x4eea31=_0x3e206b;super(),this[_0x4eea31(0x169)]=_0x42649c,this['_injector']=_0x338f0a,this[_0x4eea31(0x38d)]=_0x18ea27,this[_0x4eea31(0x344)]=_0x49d984,x(this,_0x4eea31(0x3f9),new i[(_0x4eea31(0x19a))](t[_0x4eea31(0x266)][_0x4eea31(0x12d)])),this['_initStatusComponent'](),this['_initStatusListener']();}[_0x3e206b(0x143)](){const _0x11f78b=_0x3e206b;this[_0x11f78b(0x1b7)]((0x0,i['merge'])(this[_0x11f78b(0x169)]['focused$'],this[_0x11f78b(0x169)][_0x11f78b(0x3ae)](n[_0x11f78b(0x166)][_0x11f78b(0x267)]),this[_0x11f78b(0x169)]['getCurrentTypeOfUnit$'](n[_0x11f78b(0x166)][_0x11f78b(0x3b6)]))[_0x11f78b(0x40a)]((0x0,a[_0x11f78b(0x29e)])(()=>ae(this[_0x11f78b(0x169)])),(0x0,a[_0x11f78b(0x2f2)])(),(0x0,i['switchMap'])(_0x56d990=>_0x56d990?this[_0x11f78b(0x38d)][_0x11f78b(0x33c)](_0x56d990):(0x0,i['of'])(null)),(0x0,i[_0x11f78b(0x1e6)])(_0x562794=>_0x562794?_0x562794['status$']:(0x0,i['of'])(t['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x29f2af=>{const _0x2c1230=_0x11f78b;this[_0x2c1230(0x3f9)][_0x2c1230(0x33b)](_0x29f2af);}));}[_0x3e206b(0x2fe)](){const _0x61326c=_0x3e206b;this[_0x61326c(0x1b7)](this[_0x61326c(0x344)][_0x61326c(0x3a6)](r[_0x61326c(0x3e5)][_0x61326c(0x3da)],()=>(0x0,r['connectInjector'])(se({'status$':this['_status$'][_0x61326c(0x1fb)]()}),this['_injector'])));}};w=C([S(0x0,n[_0x3e206b(0x27d)]),S(0x1,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x244)])),S(0x2,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x2bf)])),S(0x3,r[_0x3e206b(0x228)])],w);let T=class extends n['Disposable']{constructor(_0xd2700d,_0x2f4dc4,_0x588d7e,_0x2223f1){const _0x4081ca=_0x3e206b;super(),this[_0x4081ca(0x169)]=_0xd2700d,this['_injector']=_0x2f4dc4,this['_collaborationController']=_0x588d7e,this['_uiPartsService']=_0x2223f1,x(this,_0x4081ca(0x3f9),new i[(_0x4081ca(0x19a))](t[_0x4081ca(0x266)][_0x4081ca(0x12d)])),this[_0x4081ca(0x2fe)](),this[_0x4081ca(0x143)]();}[_0x3e206b(0x143)](){const _0x3236b6=_0x3e206b;this['disposeWithMe']((0x0,i[_0x3236b6(0x273)])((0x0,i['of'])(null),this[_0x3236b6(0x169)][_0x3236b6(0x3ae)](n[_0x3236b6(0x166)]['UNIVER_BOARD']))[_0x3236b6(0x40a)]((0x0,a[_0x3236b6(0x29e)])(()=>oe(this[_0x3236b6(0x169)])),(0x0,a[_0x3236b6(0x2f2)])(),(0x0,i[_0x3236b6(0x1e6)])(_0x4f47ec=>_0x4f47ec?this[_0x3236b6(0x38d)][_0x3236b6(0x33c)](_0x4f47ec):(0x0,i['of'])(null)),(0x0,i[_0x3236b6(0x1e6)])(_0x23bbb0=>_0x23bbb0?_0x23bbb0[_0x3236b6(0x307)]:(0x0,i['of'])(t[_0x3236b6(0x266)][_0x3236b6(0x12d)])))[_0x3236b6(0x2e6)](_0x53c011=>{const _0x2606c2=_0x3236b6;this[_0x2606c2(0x3f9)][_0x2606c2(0x33b)](_0x53c011);}));}[_0x3e206b(0x2fe)](){const _0xb84081=_0x3e206b;this[_0xb84081(0x1b7)](this[_0xb84081(0x344)][_0xb84081(0x3a6)](e[_0xb84081(0x170)],()=>(0x0,r[_0xb84081(0x16a)])(se({'status$':this['_status$'][_0xb84081(0x1fb)]()}),this[_0xb84081(0x141)])));}};T=C([S(0x0,n[_0x3e206b(0x27d)]),S(0x1,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x244)])),S(0x2,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x2bf)])),S(0x3,r[_0x3e206b(0x228)])],T);function ae(_0x2a6db7){const _0x1dc148=_0x3e206b;let _0xc228ce=_0x2a6db7[_0x1dc148(0x323)](),_0x4061c6=_0xc228ce==null?void 0x0:_0xc228ce[_0x1dc148(0x187)]();if(_0x4061c6&&!(0x0,n[_0x1dc148(0x351)])(_0x4061c6))return _0x4061c6;let _0x3cb59c=_0x2a6db7[_0x1dc148(0x3ad)](n[_0x1dc148(0x166)][_0x1dc148(0x267)]),_0x106673=_0x3cb59c==null?void 0x0:_0x3cb59c[_0x1dc148(0x187)]();if(_0x106673&&!(0x0,n[_0x1dc148(0x351)])(_0x106673))return _0x106673;let _0x237bd3=_0x2a6db7[_0x1dc148(0x3ad)](n[_0x1dc148(0x166)][_0x1dc148(0x3b6)]);if(_0x237bd3)return _0x237bd3['getUnitId']();let _0x1797e8=_0x2a6db7[_0x1dc148(0x3b1)](n[_0x1dc148(0x166)][_0x1dc148(0x267)])[_0x1dc148(0x18a)](_0x3727a9=>!(0x0,n[_0x1dc148(0x351)])(_0x3727a9[_0x1dc148(0x187)]()));return _0x1797e8?_0x1797e8[_0x1dc148(0x187)]():null;}function oe(_0x4474d6){const _0x226fb6=_0x3e206b;var _0x54963d;let _0xa49d06=_0x4474d6[_0x226fb6(0x3ad)](n[_0x226fb6(0x166)][_0x226fb6(0x1d6)]);return(_0x54963d=_0xa49d06==null?void 0x0:_0xa49d06[_0x226fb6(0x187)]())==null?null:_0x54963d;}function se(_0x2f64cd){let {status$:_0x59b171}=_0x2f64cd;return function(){const _0xdd9fa8=_0x1029;return(0x0,l[_0xdd9fa8(0x40c)])(ne,{'status$':_0x59b171});};}var ce=_0x3e206b(0x3e9),le='1.0.0-alpha.6';const ue={};let E=class extends n[_0x3e206b(0x1cf)]{constructor(_0xc5b649,_0xf6899e){const _0x51cb08=_0x3e206b;super(),this[_0x51cb08(0x28a)]=_0xc5b649,this[_0x51cb08(0x29a)]=_0xf6899e,this[_0x51cb08(0x327)]();}[_0x3e206b(0x327)](){const _0x5c8813=_0x3e206b;let _0x32ff0e=this;this[_0x5c8813(0x1b7)](this[_0x5c8813(0x28a)][_0x5c8813(0x306)]({'onBeforePasteImage':async _0x2fb846=>{const _0x580e9e=_0x5c8813;let _0x2c3d7f=await _0x32ff0e[_0x580e9e(0x29a)][_0x580e9e(0x13c)](_0x2fb846);return _0x2c3d7f?{'source':_0x2c3d7f['source'],'imageSourceType':_0x2c3d7f[_0x580e9e(0x2a1)]}:null;}}));}};E=C([S(0x0,f[_0x3e206b(0x22a)]),S(0x1,n[_0x3e206b(0x410)])],E);function de(_0x47668d,_0x19753a){const _0xd4bea3=_0x3e206b;_0x47668d['save'](),_0x47668d[_0xd4bea3(0x1e9)]=_0xd4bea3(0x418);let _0x2ec503=_0x47668d[_0xd4bea3(0x40d)](_0x19753a)[_0xd4bea3(0x3ed)];return _0x47668d[_0xd4bea3(0x291)](),Math[_0xd4bea3(0x24c)](_0x2ec503+0x8,0xc8);}function fe(_0xc8928a,_0x7c18ac){const _0x422a30=_0x3e206b;var _0x486290,_0x5c977a,_0x5ad9cf;let {radius:_0x3c54a5,width:_0x381234,height:_0x5da927}=_0x7c18ac;_0x3c54a5=(_0x486290=_0x3c54a5)==null?0x0:_0x486290,_0x381234=(_0x5c977a=_0x381234)==null?0x1e:_0x5c977a,_0x5da927=(_0x5ad9cf=_0x5da927)==null?0x1e:_0x5ad9cf;let _0xdea487=0x0,_0x36f54e=0x0,_0x734992=0x0;_0xdea487=_0x36f54e=_0x734992=Math[_0x422a30(0x24c)](_0x3c54a5,_0x381234/0x2,_0x5da927/0x2),_0xc8928a[_0x422a30(0x292)](),_0xc8928a[_0x422a30(0x380)](_0xdea487,0x0),_0xc8928a[_0x422a30(0x1f1)](_0x381234-_0x36f54e,0x0),_0xc8928a[_0x422a30(0x219)](_0x381234-_0x36f54e,_0x36f54e,_0x36f54e,Math['PI']*0x3/0x2,0x0,!0x1),_0xc8928a['lineTo'](_0x381234,_0x5da927-_0x734992),_0xc8928a[_0x422a30(0x219)](_0x381234-_0x734992,_0x5da927-_0x734992,_0x734992,0x0,Math['PI']/0x2,!0x1),_0xc8928a[_0x422a30(0x1f1)](0x0,_0x5da927),_0xc8928a[_0x422a30(0x1f1)](0x0,_0xdea487),_0xc8928a[_0x422a30(0x219)](_0xdea487,_0xdea487,_0xdea487,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xc8928a[_0x422a30(0x163)](),_0x7c18ac[_0x422a30(0x1ad)]&&(_0xc8928a[_0x422a30(0x345)](),_0xc8928a[_0x422a30(0x386)]=_0x7c18ac[_0x422a30(0x1ad)],_0x7c18ac[_0x422a30(0x247)]==='evenodd'?_0xc8928a[_0x422a30(0x1ad)]('evenodd'):_0xc8928a[_0x422a30(0x1ad)](),_0xc8928a[_0x422a30(0x291)]());}function _0x2886(){const _0x8ca693=['_getSessionTicket','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','addEventListener','parseInt',':backup:','registerBeforeClose','_localStorageService','/universer-api/frontend/logs','INotificationService','invokeId','default','next','getCollabEntity$','event$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','forceDisable','_doCreateSocket','_setupBeforeClosingHandler','getRangePointData','_removeCollabCursors','_uiPartsService','save','ISocketService','complete','popstate','_localCacheService','MemberService','registerDependencies','purple.300','_updateCollabCursors','context','activeSheet$','status','isInternalEditorID','RemoveColCommandId','Warning','AWAITING_WITH_PENDING','_scene','univer-text-red-500','getCoordByCell','search','collaboration-client-ui.permission.content','removeObjects','unload','dirtyRanges','startsWith','_createSocketURL','ThemeService','_logService','0.2)','endRow','Plugin','getRealBound','_refreshCollabCursors','collab-text-anchor-','_color','version','set','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','drawWith','enableLocalCache','_onCursorDelete','transformStateCache','jiqing.500','getMemberID','isActive','_handleHover','_collaborationSessionService','DependentOn','SetSelectionsOperation','_refRangeService','SHEET_VIEWPORT_KEY','Vector2','getVpScrollXYInfoByPosToVp','syncEditingCollabCursor','symbol','pushState','_getSheetObject','_getSaveTimeout','saveTaskMap','moveTo','_docSkeletonManagerService','TEXT_RANGE_LAYER_INDEX','CLOSE_ROOM','loadUnit','_notificationService','fillStyle','now','_scheduleSaving','_renderScheduled','_commandService','SetDocZoomRatioOperation','jsxs','_collaborationController','_sheetSkeletonManagerService','replace','body','CollaborationUIEventId','collaboration-client-ui.conflict.title','handleInsertRangeMoveRight','_snapshotLoadingService','getSheetId','filename','reason','WebSocketService','IBoardElementStateService','_docSyncEditingCollabCursorService','object','useCallback','_render','showText','setInterval','split','onPointerEnter$','Disposable','size','createIdentifier','_cachedData','registerComponent','USERS_LEAVE','useObservable','_initCommandInterceptor','exhaustSavingTask','_getFormulaLimitStatus','_clearOtherTimers','getCurrentUnitOfType','getCurrentTypeOfUnit$','_memberID','Tooltip','getAllUnitsForType','MoveRangeCommandId','\x20-\x20','_highlightSecond','setAlpha','UNIVER_SHEET','getParam','_onCursorUpdate','runOnServer','type','IBeforeCloseService','_transformPreviousActiveRange','remove','getCollabCursors$','unit','color','_messageService','enableDocumentCollaborationUI','beforeCommandExecuted','_registerDependencies','getValue','_hidePreview','error','ISlideDrawingStateService','handoff','black','_pollingInterval','Unknown\x20user','_anchor','_id','sessionStatus$','hovered','getUnitStatus$','_selfUnitIDs','ILocalCacheService','univer-appearance-none','collaboration-client-ui.collabStatus.notCollab','clickable','div','dark:focus:!univer-ring-offset-gray-800','generateRandomId','HEADER_MENU','getConfig','InsertRangeMoveDownCommandId','UPDATE_CURSOR','_highlight','unitID','getActivePageId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DocSelectionManagerService','/universer-api/license/formula/limit/status','[Unhandled\x20Rejection]:\x20','BuiltInUIPart','_isVisibleUnit','activeSheetId','_clearBlockProgressWatch','@univerjs-pro/collaboration-client-ui','_disabled','_config','registerRenderModule','width','IMessageService','LoadingMultiIcon','stageInfo','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','UNIVER_SLIDE','timedOut','_eventUnsubscribe','_colorIndex','_onRefRangeChange','_lastPointer','NodePositionConvertToCursor','_status$','has','debounce','whenReady','_draw','slide-element-selection','SheetsSelectionsService','_startSheetCollabCursor','colno','_hideTimer','pageManager','isFormulaString','_getObjectBounds','stringify','mapTo','startColumn','\x20at\x20','pipe','getId','jsx','measureText','stack','getSkeleton','IImageIoService','collaboration-client-ui.config','getSheetObject','_updateSubUnitFromURLParams','/universer-api/license/formula/limit/start','DeleteRangeMoveLeftCommandId','_entityInit$','transformSelections','bold\x2013px\x20Arial,\x20sans-serif','_roomMembers$','fromEventSubject','collab-text-range-','shareReplay','_isApplyingOverlays','_clearPolling','DEFAULT_WS_SESSION_TICKET_URL','handleMoveRange','_getLighterColor','post','collaboration-client-ui.collabClient.tooltip.reconnect','_handleJoinEvent','toStringTag','mutations','debug','combineLatest','filter','deepClone','LocaleService','[CollaborationDataLoaderController]','Shape','Workbook','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getItem','2677040dggyuH','setActiveRange','_pointerMoveDisposable','send','sheetID','endColumn','_clearTimeoutState','VIEW_MAIN','name','value','NOT_COLLAB','touchDependencies','_pluginService','_urlService','with','_send','_uploadLog','handleIRemoveCol','_toggleOffline','rgba(255,\x20255,\x20255,\x200.01)','_startCalculationLimit','timeoutState$','_getSheetLoadingRenderService','univer-transition-all\x20univer-duration-200','getSnapshot','saveImage','Success','transformMutationsWithChangeset','collaboration-client-ui.collabStatus.offline','collaboration-client-ui.snapshotLoading.loadingSheet','_injector','collaboration-client-ui.collaboration.closeRoom','_initStatusListener','onCommandExecuted','getCurrentSkeleton','location','getColor','_startBoardCollabCursor','DocCollaborationEntity','SetFormulaCalculationNotificationMutation','468248uBumVs','getRelativeToViewportCoord','getObjectIncludeInGroup','_labelHorizontalPosition','timeoutId','_drawRectRange','findNodePositionByCharIndex','univer-text-blue-500','decorate','COMPLETE','alert','_timeoutState$','Error','show','_blinkTimer','_collaborationUIEventService','_transformHistoryAndStateStack','MessageType','_applyCommand','createElement','href','isEditing','currentTheme$','_docTransformIMECacheService','closePath','_backgroundColor','univer-border-none\x20univer-bg-transparent','UniverInstanceType','CollaborationSessionService','collaboration-client-ui.collabStatus.conflict','_univerInstanceService','connectInjector','_checkCalculationAvailable','_ensureSubject','_docTransformStateCacheService','highlightSecond','executeCommand','BOARD_TOP_RIGHT_MENU_LEADING_PART','_revisionService','Optional','Subject','setConfig','offsetY','DocIMEInputManagerService','slice','all','collaboration-client-ui.session.will-retry','subunit','collaboration-client-ui.collabStatus.syncing','unshift','689553lSbWoA','defineProperty','bottom','RefRangeService','true','requireSession','replaceState','_initDependencies','LOADING_BLOCKS','searchParams','getUnitId','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','[Window\x20Error]:\x20','find','updateOfflineData','_collabCursorState$','NodePositionConvertToRectRange','COLORS','_httpService','onRendered','_session','i18nKey','engine','_cursorShapes','collaboration-client-ui.collabStatus.fetchMiss','unitId','onMouseMove','collaboration-client-ui.snapshotLoading.refresh','tooltipKey','BehaviorSubject','reload','board-collab-cursor-','_updateSheetPreview','column','doc.mutation.rich-text-editing','ticket','totalBlocks','_entities','collaboration-client-ui.collabStatus.synced','_docStateChangeManagerService','refreshLabel','_transformUndoRedoStack','button','OnLineIcon','roomMembers','limitInfo','isArray','_scheduleRender','fill','colorClass','OTHER_CLIENTS_EDITING','mergeOverrideWithDependencies','HTTPService','isTransformMutationFailure','fillText','angle','_showGuardMessage','WarningIcon','disposeWithMe','setTimeout','SetWorksheetActivateCommand','stage','_transformService','_handoffPreview','_unitOnClients','redoState','RECT','_removeClearOtherTimer','_saveTaskMap','_getMergeRange','functionsExecutedState','Failed','registerRefRange','univer-m-0\x20univer-p-0','static','[LogService\x20Error]:\x20','showSkeleton','_toggleOnline','_docTransformSelectionsService','releaseFormulaLimitUrl','hide','_messageIds','RxDisposable','_hover','_maxFormulaLimit','override','contains','_getScale','collaboration-client-ui.collaboration.offline-data-not-saved','UNIVER_BOARD','state$','SnapshotLoadStage','collaboration-client-ui.conflict.content','Fragment','Loading','clearInterval','right','DesktopCollaborationStatusDisplayController','setParam','_previewUnitId','_drawAnchor','_dataLoaderService','isTransformMutationsWithChangesetSuccess','ICommandService','lineno','switchMap','_scheduleHeartbeat','unsubscribe','font','_cursorInfo$','newValue','parse','FromArray','scene','CanceledError','kind','lineTo','snapshot-loading-timeout','SnapshotLoadingService','288253dpwIAz','onPointerLeave$','left','_startBlinking','board-element-selection','transformRemoteChangeset','subUnitId','asObservable','getRenderById','toString','params','roomMembers$','makeDirty','removeObject','code','clsx','collaboration-client-ui.collaboration.single-unit.warning','_setInteractionBlocked','getTypeOfUnitAdded$','_unitStatus','PluginService','_shortcutBlock','fromEvent','_colorAssignService','getStateCache','spin','IConfigService','WebBrowserSingleActiveUnitService','_checkAndWaitForCalculationPermission','enableFrontendLog','CollaborationEvent','_cursors','text','backupOfflineData','highlight','setStateCache','IRenderManagerService','arc','some','getTypeOfUnitDisposed$','_taskIds','removeEventListener','DisposableCollection','DocSkeletonManagerService','removeParam','95790WhtwiN','_collabSessionService','InsertRangeMoveRightCommandId','dispose$','setItem','saveOfflineData','_name','IUIPartsService','55153bMpwGL','IDocClipboardService','SheetCollabCursorShape','throttleTime','_memberService','_handleHeartbeatEvent','_boardElementStateService','_renderManagerService','span','rgba(','selections','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_isBlinkVisible','univer-text-orange-500','_hasFormulaInDirtyRanges','height','_updateURLWithCurrentState','reconnect','_initUserListener','uni.network.url-service','serializeRangeWithSheet','backgroundColor','ACTIVE_UNIT_EVENT_CHANNEL','lineWidth','ColorKit','_offsetY','ErrorCode','Injector','handleInsertRow','_range','fillRule','RichTextEditingMutation','Tools','univer-h-8\x20univer-w-8\x20univer-rounded-lg','handleDeleteRangeMoveLeft','min','_syncEditingCollabCursorService','buildDrawingOKey','_initCommandExecutedListener','transformMutation','then','_heartbeatTimer','_assignedColors','transform','unhandledrejection','function','getLocalCacheKey','_latestStates','disableLocalCache','_registerRenderDependencies','key','totalFormulasToCalculate','EffectRefRangId','string','SOCKET_FAILED','snapshot-loading-interaction-guard','collabCursorState$','join','prototype','add','blue.400','CollaborationStatus','UNIVER_DOC','addObject$','_getAnchorBounding','_shapes','SessionStatus','_saveCache','InsertRowCommandId','selection','...','addObject','from','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','merge','m1Prime','_handoffUnitIds','CONFLICT','_stopBlinking','_currentUsage','m2Prime','getCurrentRevOfUnit','textRanges','Button','IUniverInstanceService','collaboration-client-ui.permission.title','FormulaExecutedStateType','rgba','CollaborationUIEventService','getUndoRedoMutationParamsCache','urlChange$','OTHER_CLIENT_EDITING','SUCCESS','labelPosition','slide-collab-cursor-','collaboration-client-ui.formula.calculation.started','getSheetBySheetId','_docClipboardService','get','workbookShell','_initUnhandledRejectionListener','_document','#4f46e5','getActiveSlide','restore','beginPath','call','cursorInfo$','toISOString','DataLoaderService','toDisposable','_setFormulaLimitStatus','primary','_imageIoService','strokeWidth','UniverCollaborationClientUIPlugin','collaboration-client-ui.session.collaboration-timeout','map','handleInsertCol','IURLService','imageSourceType','_hovered','getFormulaLimitStatusUrl','_showText','editingUnit','ranges','origin','dispose','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getCurrentSelections','debounceTime','SheetSkeletonManagerService','/run/','transformIMECache','_anchorDot','addHandlerCallback','onTransformChange$','Module','_localeService','clearTimeout','_getSceneObjectByKey','toRgbString','_shortcutService','selectedIds','_sheetLoadingRenderService','_monkeyPatchLogService','LOCAL_CACHE_INTERVAL','NO_OTHER_CLIENTS_EDITING','delete','theme$','CollaborationController','createInstance','ITransformService','_handleLeaveEvent','ILogService','collaboration-client-ui.snapshotLoading.timeout','_interactionBlocked$','startRow','_collabCursorController','_initResize','_initWindowErrorListener','length','getDocRanges','_blinkIntervalTimer','values','FormulaExecuteStageType','ERROR','RegularPolygon','_online','getUniverSheetInstance','PERMISSION_DENIED','_updateMessage','ILocalStorageService','forEach','_cursor','onPointerMove$','loadedBlocks','1386120rlAGtO','_initEntityListener','_docSkeleton','getBoardElementRenderObjectKey','Inject','bind','_labelPosition','_slideDrawingStateService','_startDocCollabCursor','deserializeRangeWithSheet','polite','init','subscribe','application/json','UnitStatus','ONLINE','24FSSHwQ','useMemo','assignAColorForMemberID','univer-inline-flex\x20univer-items-center\x20univer-justify-center','data','focusedId','strokeStyle','univer-text-gray-400','distinctUntilChanged','cursorInfo','createSocket','runId','resolve','IRemoteInstanceService','getActiveSheet','getViewport','Rect','maxFormulaLimit','constructor','range','_initStatusComponent','isFormulaId','transformByState','OFFLINE','_configService','currentSkeleton$','PENDING','previewCellData','addClipboardHook','status$','DOC_RANGE_TYPE','_instanceService','_latestCursors','setShapeProps','_blockProgressWatches','setLineDash','collaboration-client-ui.session.connection-failed','_updateLocalCursor','replaceDocRanges','addObjects','_textBubble','push','_scheduleClearOtherTimer','snapshot-loading-','_beforeCloseService','_handleEvent','_context','history','eventID','_lastResponseTimestamp','TRANSFORM_CHANGE_OBSERVABLE_TYPE','OffLineIcon','getOwnPropertyDescriptor','_watchBlockProgress','/universer-api/license/formula/limit/done','yellow.400','getMember','getFocusedUnit','_themeService','_initEvent','takeUntil','_init','getColorFromTheme','currentUsage','top','subscribeEvent','_setupSubUnitSync','clear','indicator','resize'];_0x2886=function(){return _0x8ca693;};return _0x2886();}var D=class e extends u[_0x3e206b(0x11f)]{constructor(_0x58cfbe,_0x23b034){const _0xe6cb16=_0x3e206b;super(_0x58cfbe,_0x23b034),x(this,_0xe6cb16(0x3c0),void 0x0),x(this,_0xe6cb16(0x214),void 0x0),this[_0xe6cb16(0x3c0)]=_0x23b034==null?void 0x0:_0x23b034[_0xe6cb16(0x3c0)],this[_0xe6cb16(0x214)]=_0x23b034==null?void 0x0:_0x23b034[_0xe6cb16(0x214)];}static[_0x3e206b(0x36b)](_0x11f681,_0x5cd6f3){const _0x13754d=_0x3e206b;let {text:_0x51a825,color:_0x2e815d}=_0x5cd6f3;_0x11f681[_0x13754d(0x345)](),_0x11f681[_0x13754d(0x1e9)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x5a1164=_0x11f681[_0x13754d(0x40d)](_0x51a825)[_0x13754d(0x3ed)];if(fe(_0x11f681,{'height':0x14,'radius':0x4,'width':de(_0x11f681,_0x51a825),'fill':_0x2e815d,'evented':!0x1}),_0x11f681[_0x13754d(0x386)]='#FFF',_0x5a1164>0xc0){let _0xd6c65f='',_0x26517b=0x0;for(let _0x220d36 of _0x51a825){let _0x107b86=_0x11f681['measureText'](_0x220d36)[_0x13754d(0x3ed)];if(_0x26517b+_0x107b86<=0xc0-_0x11f681['measureText'](_0x13754d(0x26f))[_0x13754d(0x3ed)])_0xd6c65f+=_0x220d36,_0x26517b+=_0x107b86;else{_0xd6c65f+='...';break;}}_0x11f681[_0x13754d(0x1b3)](_0xd6c65f,0x4,0xf);}else _0x11f681[_0x13754d(0x1b3)](_0x51a825,0x4,0xf);_0x11f681[_0x13754d(0x291)]();}[_0x3e206b(0x3fd)](_0x437ca0){const _0x3b06ef=_0x3e206b;e[_0x3b06ef(0x36b)](_0x437ca0,this);}};const O=0x138a;var pe=class extends u[_0x3e206b(0x11f)]{constructor(_0x23cdb6,_0xf38c94){const _0x449b30=_0x3e206b;super(_0x23cdb6,{..._0xf38c94,'evented':!0x1}),x(this,'_color',_0x449b30(0x28f)),x(this,_0x449b30(0x227),''),x(this,'_showText',!0x0),_0xf38c94&&this[_0x449b30(0x30b)](_0xf38c94);}['setShapeProps'](_0x57a329){const _0x574393=_0x3e206b;var _0x4f9bfd,_0x246e10,_0x3c0d7b,_0x5ce09e,_0x1a4e20,_0x501028,_0x9d2d43,_0x2aada8;this['_color']=(_0x4f9bfd=_0x57a329[_0x574393(0x3c0)])==null?this[_0x574393(0x367)]:_0x4f9bfd,this[_0x574393(0x227)]=(_0x246e10=_0x57a329[_0x574393(0x12b)])==null?this['_name']:_0x246e10,this[_0x574393(0x2a4)]=(_0x3c0d7b=_0x57a329['showText'])==null?this['_showText']:_0x3c0d7b,this['evented']=!0x1,this[_0x574393(0x300)]({'left':(_0x5ce09e=_0x57a329[_0x574393(0x1f6)])==null?this[_0x574393(0x1f6)]:_0x5ce09e,'top':(_0x1a4e20=_0x57a329[_0x574393(0x32a)])==null?this[_0x574393(0x32a)]:_0x1a4e20,'width':(_0x501028=_0x57a329[_0x574393(0x3ed)])==null?this[_0x574393(0x3ed)]:_0x501028,'height':(_0x9d2d43=_0x57a329[_0x574393(0x238)])==null?this[_0x574393(0x238)]:_0x9d2d43,'angle':(_0x2aada8=_0x57a329[_0x574393(0x1b4)])==null?this[_0x574393(0x1b4)]:_0x2aada8});}[_0x3e206b(0x3fd)](_0x473feb){const _0x2b2af6=_0x3e206b;_0x473feb[_0x2b2af6(0x345)](),_0x473feb[_0x2b2af6(0x2f0)]=this[_0x2b2af6(0x367)],_0x473feb[_0x2b2af6(0x240)]=this[_0x2b2af6(0x29b)]||1.5,_0x473feb[_0x2b2af6(0x30d)]([0x6,0x4]),_0x473feb['strokeRect'](0x0,0x0,this[_0x2b2af6(0x3ed)],this[_0x2b2af6(0x238)]),_0x473feb['restore'](),this[_0x2b2af6(0x2a4)]&&(_0x473feb[_0x2b2af6(0x345)](),_0x473feb[_0x2b2af6(0x254)](0x1,0x0,0x0,0x1,this[_0x2b2af6(0x3ed)],-0x14),D['drawWith'](_0x473feb,{'text':this['_name'],'color':this[_0x2b2af6(0x367)]}),_0x473feb[_0x2b2af6(0x291)]());}};const me=[_0x3e206b(0x34c),_0x3e206b(0x36f),'green.600','red.300',_0x3e206b(0x265),_0x3e206b(0x321)];var k=class extends n[_0x3e206b(0x3a2)]{constructor(..._0x323784){const _0x1589fc=_0x3e206b;super(..._0x323784),x(this,_0x1589fc(0x253),new Map()),x(this,_0x1589fc(0x3f5),0x0);}[_0x3e206b(0x2ec)](_0xde1942){const _0x4a0073=_0x3e206b;if(this[_0x4a0073(0x253)]['has'](_0xde1942))return this[_0x4a0073(0x253)]['get'](_0xde1942);let _0x27c22e=me[this['_colorIndex']];return this[_0x4a0073(0x3f5)]=(this[_0x4a0073(0x3f5)]+0x1)%me[_0x4a0073(0x2ca)],this[_0x4a0073(0x253)]['set'](_0xde1942,_0x27c22e),_0x27c22e;}};function he(_0x2a8d37){const _0x1f25f0=_0x3e206b;let _0x4ef286;try{_0x4ef286=JSON[_0x1f25f0(0x1ec)](_0x2a8d37);}catch{return null;}if(typeof _0x4ef286!=_0x1f25f0(0x39b)||!_0x4ef286)return null;let _0x2c8d69=_0x4ef286;if(_0x2c8d69[_0x1f25f0(0x1f0)]!==_0x1f25f0(0x1f8)||typeof _0x2c8d69[_0x1f25f0(0x196)]!='string'||typeof _0x2c8d69[_0x1f25f0(0x1fa)]!=_0x1f25f0(0x25e))return null;let _0x39d7ea=Array['isArray'](_0x2c8d69['selectedIds'])?_0x2c8d69[_0x1f25f0(0x2b8)][_0x1f25f0(0x11b)](_0xe594ce=>typeof _0xe594ce=='string'):[],_0x4489ad=typeof _0x2c8d69[_0x1f25f0(0x2ef)]==_0x1f25f0(0x25e)?_0x2c8d69[_0x1f25f0(0x2ef)]:null;return{'kind':_0x1f25f0(0x1f8),'unitId':_0x2c8d69[_0x1f25f0(0x196)],'subUnitId':_0x2c8d69['subUnitId'],'selectedIds':_0x39d7ea,'focusedId':_0x4489ad};}let A=class extends n[_0x3e206b(0x1cf)]{get[_0x3e206b(0x2f3)](){const _0x37be49=_0x3e206b;return this[_0x37be49(0x1ea)]['getValue']();}get[_0x3e206b(0x1a9)](){const _0x4d6d01=_0x3e206b;return this[_0x4d6d01(0x419)][_0x4d6d01(0x3c5)]();}constructor(_0x497a48,_0x2a9a51,_0x158a9d,_0x280c9a,_0x43140f){const _0xc97353=_0x3e206b;super(),this[_0xc97353(0x3df)]=_0x497a48,this[_0xc97353(0x191)]=_0x2a9a51,this[_0xc97353(0x20b)]=_0x158a9d,this[_0xc97353(0x22d)]=_0x280c9a,this[_0xc97353(0x22f)]=_0x43140f,x(this,_0xc97353(0x2d1),!0x1),x(this,_0xc97353(0x327),!0x1),x(this,_0xc97353(0x1ea),new i[(_0xc97353(0x19a))](new Map())),x(this,_0xc97353(0x294),this['_cursorInfo$'][_0xc97353(0x1fb)]()),x(this,_0xc97353(0x419),new i['BehaviorSubject']([])),x(this,_0xc97353(0x1ff),this['_roomMembers$']['pipe']((0x0,i[_0xc97353(0x2ab)])(0x12c))),x(this,_0xc97353(0x30f),(0x0,n[_0xc97353(0x3fb)])(_0x4e2261=>{const _0x592206=_0xc97353;let _0x513ea5=_0x4e2261[_0x592206(0x34e)];if(!_0x513ea5||_0x513ea5[_0x592206(0x196)]!==this[_0x592206(0x3df)])return;let _0x1832dc={'kind':_0x592206(0x1f8),'unitId':_0x513ea5[_0x592206(0x196)],'subUnitId':_0x513ea5[_0x592206(0x1fa)],'selectedIds':_0x4e2261[_0x592206(0x2b8)]['filter'](_0xccf4b6=>typeof _0xccf4b6==_0x592206(0x25e)),'focusedId':_0x4e2261[_0x592206(0x2ef)]},_0x424a5d={'eventID':p[_0x592206(0x212)][_0x592206(0x3dd)],'data':{'unitID':this[_0x592206(0x3df)],'memberID':this['_session'][_0x592206(0x370)](),'selection':JSON[_0x592206(0x406)](_0x1832dc)}};this['_session']['send'](_0x424a5d,this['unitID']);},0x64));}[_0x3e206b(0x2a8)](){const _0x4c2136=_0x3e206b;super[_0x4c2136(0x2a8)](),this[_0x4c2136(0x1ea)]['next'](new Map()),this[_0x4c2136(0x1ea)][_0x4c2136(0x347)](),this[_0x4c2136(0x419)][_0x4c2136(0x33b)]([]),this[_0x4c2136(0x419)][_0x4c2136(0x347)]();}[_0x3e206b(0x2e5)](){const _0x45ea24=_0x3e206b;this[_0x45ea24(0x327)]||(this[_0x45ea24(0x327)]=!0x0,this[_0x45ea24(0x191)]['sessionStatus$'][_0x45ea24(0x40a)]((0x0,i[_0x45ea24(0x326)])(this[_0x45ea24(0x224)]))[_0x45ea24(0x2e6)](_0x1c4437=>{const _0x210c8e=_0x45ea24;_0x1c4437===t['SessionStatus'][_0x210c8e(0x2e9)]?this[_0x210c8e(0x1ca)]():this[_0x210c8e(0x135)]();}),this[_0x45ea24(0x191)]['event$'][_0x45ea24(0x40a)]((0x0,i[_0x45ea24(0x326)])(this[_0x45ea24(0x224)]))['subscribe'](_0x15c8a0=>{const _0x51163c=_0x45ea24;let _0x11ed62=_0x15c8a0['eventID'];_0x11ed62===p[_0x51163c(0x212)][_0x51163c(0x3dd)]&&this['_onCursorUpdate'](_0x15c8a0),_0x11ed62===p[_0x51163c(0x212)][_0x51163c(0x3a7)]&&this[_0x51163c(0x36d)](_0x15c8a0);}),this[_0x45ea24(0x22f)]['state$'][_0x45ea24(0x40a)]((0x0,i[_0x45ea24(0x326)])(this[_0x45ea24(0x224)]))['subscribe'](_0x16b227=>{const _0xeef3b4=_0x45ea24;this[_0xeef3b4(0x2d1)]&&this[_0xeef3b4(0x30f)](_0x16b227);}));}['_onCursorUpdate'](_0x1552bf){const _0x270b47=_0x3e206b;var _0x4de047,_0x109fb4,_0x53c4f8,_0x4b244a;let {memberID:_0x243619,selection:_0x119d9a}=_0x1552bf['data'];if(_0x243619===((_0x4de047=(_0x109fb4=this[_0x270b47(0x191)])[_0x270b47(0x370)])==null?void 0x0:_0x4de047['call'](_0x109fb4)))return;let _0x165b71=he(_0x119d9a);if(!_0x165b71||_0x165b71[_0x270b47(0x196)]!==this[_0x270b47(0x3df)])return;let _0x1bf008=(_0x53c4f8=(_0x4b244a=this['_memberService'][_0x270b47(0x322)](this[_0x270b47(0x3df)],_0x243619))==null?void 0x0:_0x4b244a[_0x270b47(0x12b)])==null?_0x270b47(0x3cc):_0x53c4f8,_0x58f682={'color':this[_0x270b47(0x20b)]['assignAColorForMemberID'](_0x243619),'name':_0x1bf008,'unitId':_0x165b71[_0x270b47(0x196)],'subUnitId':_0x165b71[_0x270b47(0x1fa)],'selectedIds':_0x165b71['selectedIds'],'focusedId':_0x165b71[_0x270b47(0x2ef)],'selection':_0x119d9a},_0x3d5a8f=new Map(this['cursorInfo']);_0x3d5a8f[_0x270b47(0x369)](_0x243619,_0x58f682),this[_0x270b47(0x1ea)][_0x270b47(0x33b)](_0x3d5a8f);}[_0x3e206b(0x36d)](_0x4e9732){const _0x477b8c=_0x3e206b;let {memberID:_0x362f39}=_0x4e9732['data'],_0x5d2e7f=new Map(this[_0x477b8c(0x2f3)]);_0x5d2e7f[_0x477b8c(0x2bd)](_0x362f39),this[_0x477b8c(0x1ea)]['next'](_0x5d2e7f);}['_toggleOnline'](){const _0x5e7dde=_0x3e206b;this[_0x5e7dde(0x2d1)]=!0x0,this['_updateLocalCursor'](this['_boardElementStateService'][_0x5e7dde(0x13b)]());}['_toggleOffline'](){const _0x141c82=_0x3e206b;this[_0x141c82(0x2d1)]=!0x1;}};A=C([S(0x2,(0x0,n[_0x3e206b(0x2de)])(k)),S(0x3,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x34a)])),S(0x4,(0x0,n['Inject'])(e[_0x3e206b(0x399)]))],A);function _0x1029(_0x312c72,_0x2224d8){_0x312c72=_0x312c72-0x117;const _0x288692=_0x2886();let _0x10291f=_0x288692[_0x312c72];return _0x10291f;}function ge(_0x2f84e3){let _0x1f0211='';for(let _0x2a1e2d of _0x2f84e3){let {startOffset:_0x1d0ac5,endOffset:_0x564ffd,isActive:_0x1d6da5,rangeType:_0x16be36,segmentId:_0x2c7e39,segmentPage:_0x36ebbe}=_0x2a1e2d;_0x1f0211['length']&&(_0x1f0211+=','),_0x1f0211+=_0x1d0ac5+':'+_0x564ffd+':'+(_0x1d6da5?'1':'0')+':'+_0x16be36+':'+_0x2c7e39+':'+_0x36ebbe;}return _0x1f0211;}function _e(_0x27ee58){const _0x32c4af=_0x3e206b;let _0x16e35c=_0x27ee58[_0x32c4af(0x3a0)](','),_0x376609=[];for(let _0x2e22e8 of _0x16e35c){let [_0x4154e8,_0x498254,_0x3f3ef2,_0x387eff,_0x162268,_0x376afa]=_0x2e22e8[_0x32c4af(0x3a0)](':');_0x376609[_0x32c4af(0x313)]({'startOffset':Number(_0x4154e8),'endOffset':Number(_0x498254),'collapsed':_0x4154e8===_0x498254,'isActive':_0x3f3ef2==='1','rangeType':_0x387eff===n[_0x32c4af(0x308)]['TEXT']?n[_0x32c4af(0x308)]['TEXT']:n[_0x32c4af(0x308)][_0x32c4af(0x1bf)],'segmentId':typeof _0x162268==_0x32c4af(0x25e)?String(_0x162268):'','segmentPage':Number(_0x376afa==null?-0x1:_0x376afa)});}return _0x376609[_0x32c4af(0x21a)](_0x1e5471=>_0x1e5471['isActive'])||(_0x376609[0x0][_0x32c4af(0x371)]=!0x0),_0x376609;}var j=class extends n[_0x3e206b(0x1cf)]{constructor(..._0x4d2dd6){const _0x3b4d4e=_0x3e206b;super(..._0x4d2dd6),x(this,_0x3b4d4e(0x18c),new i[(_0x3b4d4e(0x19a))](null)),x(this,_0x3b4d4e(0x261),this[_0x3b4d4e(0x18c)][_0x3b4d4e(0x1fb)]());}[_0x3e206b(0x37a)](_0x418d64){const _0x70109a=_0x3e206b;let {unitID:_0x487b6b,memberID:_0x5f2d0b,textRanges:_0x550844}=_0x418d64,_0x3a682a=ge(_0x550844);if(_0x3a682a==='')return;let _0x5de86d={'unitID':_0x487b6b,'memberID':_0x5f2d0b,'selection':_0x3a682a};this[_0x70109a(0x18c)]['next'](_0x5de86d);}};let M=class extends n['RxDisposable']{get['cursorInfo'](){const _0x49a592=_0x3e206b;return this[_0x49a592(0x1ea)][_0x49a592(0x3c5)]();}get[_0x3e206b(0x1a9)](){const _0x31c786=_0x3e206b;return this[_0x31c786(0x419)][_0x31c786(0x3c5)]();}constructor(_0x3453a5,_0x152ebc,_0x3ce60c,_0x3f4f0b,_0x1aeb45,_0x3e7f7f,_0x48f435,_0x2782c6,_0x18f14f){const _0x900e58=_0x3e206b;super(),this[_0x900e58(0x3df)]=_0x3453a5,this[_0x900e58(0x191)]=_0x152ebc,this['_injector']=_0x3ce60c,this['_colorAssignService']=_0x3f4f0b,this['_memberService']=_0x1aeb45,this[_0x900e58(0x24d)]=_0x3e7f7f,this[_0x900e58(0x1bb)]=_0x48f435,this['_univerInstanceService']=_0x2782c6,this[_0x900e58(0x38a)]=_0x18f14f,x(this,_0x900e58(0x2d1),!0x1),x(this,_0x900e58(0x327),!0x1),x(this,'_cursorInfo$',new i[(_0x900e58(0x19a))](new Map())),x(this,_0x900e58(0x294),this['_cursorInfo$']['asObservable']()),x(this,_0x900e58(0x419),new i[(_0x900e58(0x19a))]([])),x(this,_0x900e58(0x1ff),this[_0x900e58(0x419)][_0x900e58(0x40a)]((0x0,i['debounceTime'])(0x12c))),x(this,_0x900e58(0x30f),(0x0,n[_0x900e58(0x3fb)])(_0x55d6de=>{const _0x124cfa=_0x900e58;let _0xd3b67c={'eventID':p[_0x124cfa(0x212)][_0x124cfa(0x3dd)],'data':{'unitID':this[_0x124cfa(0x3df)],'memberID':this['_session'][_0x124cfa(0x370)](),'selection':ge(_0x55d6de)}};this[_0x124cfa(0x191)][_0x124cfa(0x126)](_0xd3b67c,this[_0x124cfa(0x3df)]);},0x64));}[_0x3e206b(0x2a8)](){const _0x461f7b=_0x3e206b;super[_0x461f7b(0x2a8)](),this[_0x461f7b(0x1ea)][_0x461f7b(0x33b)](new Map()),this['_cursorInfo$'][_0x461f7b(0x347)](),this[_0x461f7b(0x419)]['next']([]),this[_0x461f7b(0x419)][_0x461f7b(0x347)]();}[_0x3e206b(0x2e5)](){const _0x282e21=_0x3e206b;this['_init']||(this['_init']=!0x0,this[_0x282e21(0x191)][_0x282e21(0x3cf)][_0x282e21(0x40a)]((0x0,i[_0x282e21(0x326)])(this['dispose$']))[_0x282e21(0x2e6)](_0xe1bd71=>{const _0x50adf1=_0x282e21;_0xe1bd71===t['SessionStatus'][_0x50adf1(0x2e9)]?this[_0x50adf1(0x1ca)]():this['_toggleOffline']();}),this['_session'][_0x282e21(0x33d)][_0x282e21(0x40a)]((0x0,i[_0x282e21(0x326)])(this[_0x282e21(0x224)]))[_0x282e21(0x2e6)](_0x3cdd19=>{const _0x5d2852=_0x282e21;let _0x5f5226=_0x3cdd19[_0x5d2852(0x31a)];_0x5f5226===p[_0x5d2852(0x212)][_0x5d2852(0x3dd)]&&this['_onCursorUpdate'](_0x3cdd19),_0x5f5226===p['CollaborationEvent'][_0x5d2852(0x3a7)]&&this['_onCursorDelete'](_0x3cdd19);}),this[_0x282e21(0x1b7)](this[_0x282e21(0x38a)][_0x282e21(0x144)](_0x4a0980=>{const _0x54a537=_0x282e21;let _0x1e953c=_0x4a0980['params'];_0x1e953c!=null&&this[_0x54a537(0x2d1)]&&_0x4a0980['id']===m['SetTextSelectionsOperation']['id']&&_0x1e953c['unitId']===this['unitID']&&_0x1e953c[_0x54a537(0x160)]===!0x1&&_0x1e953c[_0x54a537(0x2a6)][_0x54a537(0x2ca)]>0x0&&this[_0x54a537(0x30f)](_0x1e953c[_0x54a537(0x2a6)]);})),this[_0x282e21(0x24d)][_0x282e21(0x261)][_0x282e21(0x40a)]((0x0,i[_0x282e21(0x326)])(this['dispose$']))['subscribe'](_0x2a819a=>{const _0x5325cc=_0x282e21;if((_0x2a819a==null?void 0x0:_0x2a819a['unitID'])!==this[_0x5325cc(0x3df)])return;let _0x462074={'eventID':p[_0x5325cc(0x212)][_0x5325cc(0x3dd)],'data':_0x2a819a};this[_0x5325cc(0x3b8)](_0x462074);}),this['disposeWithMe'](this['_commandService'][_0x282e21(0x144)](_0x2b4826=>{const _0x9d669a=_0x282e21;if(_0x2b4826[_0x9d669a(0x1fe)]==null)return;let _0xea1ead=_0x2b4826[_0x9d669a(0x1fe)];if(_0x2b4826['id']!==m[_0x9d669a(0x248)]['id']||_0xea1ead[_0x9d669a(0x196)]!==this[_0x9d669a(0x3df)])return;let _0x4dee10={'id':_0x9d669a(0x19f),'params':_0xea1ead},_0x402315=this['cursorInfo'];for(let [_0x26495c,_0x380936]of _0x402315){let _0x5e5325={'id':_0x9d669a(0x19f),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x380936[_0x9d669a(0x2a6)]}},_0x170f7d=this[_0x9d669a(0x1bb)]['transformMutation'](_0x4dee10,_0x5e5325,!0x1);if((0x0,p[_0x9d669a(0x1b2)])(_0x170f7d))throw _0x170f7d['error'];_0x402315[_0x9d669a(0x369)](_0x26495c,{..._0x380936,'ranges':_0x170f7d[_0x9d669a(0x279)][_0x9d669a(0x1fe)][_0x9d669a(0x27b)]});}queueMicrotask(()=>{const _0x56a584=_0x9d669a;this[_0x56a584(0x1ea)][_0x56a584(0x33b)](_0x402315);});})));}[_0x3e206b(0x3b8)](_0x4f0941){const _0x5a418f=_0x3e206b;var _0x30d773,_0x1eb0fa;let {memberID:_0x1ed3ba,selection:_0x21fc4a}=_0x4f0941[_0x5a418f(0x2ee)],_0x15d7f1=_e(_0x21fc4a),_0x5b6544=(_0x30d773=(_0x1eb0fa=this[_0x5a418f(0x22d)]['getMember'](this[_0x5a418f(0x3df)],_0x1ed3ba))==null?void 0x0:_0x1eb0fa[_0x5a418f(0x12b)])==null?'Unknown\x20user':_0x30d773,_0x281205={'color':this[_0x5a418f(0x20b)][_0x5a418f(0x2ec)](_0x1ed3ba),'name':_0x5b6544,'ranges':_0x15d7f1},_0x11f372=this[_0x5a418f(0x2f3)];_0x11f372['set'](_0x1ed3ba,_0x281205),this[_0x5a418f(0x1ea)][_0x5a418f(0x33b)](_0x11f372);}[_0x3e206b(0x36d)](_0x4c82fb){const _0x11edd0=_0x3e206b;let {memberID:_0x179c6e}=_0x4c82fb[_0x11edd0(0x2ee)],_0x5d9adf=this[_0x11edd0(0x2f3)];_0x5d9adf['delete'](_0x179c6e),this['_cursorInfo$']['next'](_0x5d9adf);}[_0x3e206b(0x1ca)](){const _0x175550=_0x3e206b;var _0x478bf0;if(this[_0x175550(0x2d1)]=!0x0,((_0x478bf0=this[_0x175550(0x169)][_0x175550(0x323)]())==null?void 0x0:_0x478bf0[_0x175550(0x187)]())!==this[_0x175550(0x3df)])return;let _0x2b598f=this[_0x175550(0x141)][_0x175550(0x28b)](m[_0x175550(0x3e2)])[_0x175550(0x2cb)]();Array[_0x175550(0x1ab)](_0x2b598f)&&_0x2b598f[_0x175550(0x2ca)]>0x0&&this[_0x175550(0x30f)](_0x2b598f);}['_toggleOffline'](){const _0x5493ae=_0x3e206b;this[_0x5493ae(0x2d1)]=!0x1;}};M=C([S(0x2,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x244)])),S(0x3,(0x0,n[_0x3e206b(0x2de)])(k)),S(0x4,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x34a)])),S(0x5,(0x0,n['Inject'])(j)),S(0x6,p[_0x3e206b(0x2c1)]),S(0x7,n[_0x3e206b(0x27d)]),S(0x8,n[_0x3e206b(0x1e4)])],M);const ve=()=>{let _0x4fb021=[],_0x542d32=!0x1;return _0x2f4d19=>{const _0x2d1300=_0x1029;_0x4fb021[_0x2d1300(0x313)](_0x2f4d19),_0x542d32||(_0x542d32=!0x0,setTimeout(()=>{_0x4fb021['forEach'](_0x5a1f73=>_0x5a1f73()),_0x4fb021=[],_0x542d32=!0x1;}));};};let N=class extends n[_0x3e206b(0x1cf)]{get['cursorInfo'](){const _0x2075ff=_0x3e206b;return this['_cursorInfo$'][_0x2075ff(0x3c5)]();}get['roomMembers'](){const _0x3a7fb4=_0x3e206b;return this[_0x3a7fb4(0x419)][_0x3a7fb4(0x3c5)]();}constructor(_0x3e6a64,_0x32862c,_0x5870e5,_0x1f956f,_0x15aa04,_0x23bd51,_0x268c02,_0xb20120){const _0x294f15=_0x3e206b;super(),this[_0x294f15(0x3df)]=_0x3e6a64,this['_session']=_0x32862c,this['_injector']=_0x5870e5,this['_colorAssignService']=_0x1f956f,this['_memberService']=_0x15aa04,this[_0x294f15(0x169)]=_0x23bd51,this[_0x294f15(0x38a)]=_0x268c02,this[_0x294f15(0x376)]=_0xb20120,x(this,_0x294f15(0x2d1),!0x1),x(this,_0x294f15(0x327),!0x1),x(this,_0x294f15(0x1ea),new i[(_0x294f15(0x19a))](new Map())),x(this,_0x294f15(0x294),this[_0x294f15(0x1ea)]['asObservable']()),x(this,'_roomMembers$',new i['BehaviorSubject']([])),x(this,_0x294f15(0x1ff),this['_roomMembers$']['pipe']((0x0,i[_0x294f15(0x2ab)])(0x12c))),x(this,'_updateLocalCursor',(0x0,n[_0x294f15(0x3fb)])((_0x5329ee,_0x3a2fa5)=>{const _0x141200=_0x294f15;let _0x1c5bc5={'eventID':p[_0x141200(0x212)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x141200(0x3df)],'memberID':this[_0x141200(0x191)]['getMemberID'](),'selection':(0x0,h[_0x141200(0x23d)])(_0x5329ee,_0x3a2fa5['range'])}};this[_0x141200(0x191)][_0x141200(0x126)](_0x1c5bc5,this[_0x141200(0x3df)]);},0x64));}[_0x3e206b(0x2a8)](){const _0x48e3c4=_0x3e206b;super['dispose'](),this['_cursorInfo$'][_0x48e3c4(0x33b)](new Map()),this[_0x48e3c4(0x1ea)]['complete'](),this[_0x48e3c4(0x419)][_0x48e3c4(0x33b)]([]),this['_roomMembers$'][_0x48e3c4(0x347)]();}['init'](){const _0x529762=_0x3e206b;this[_0x529762(0x327)]||(this['_init']=!0x0,this[_0x529762(0x191)][_0x529762(0x3cf)][_0x529762(0x40a)]((0x0,i[_0x529762(0x326)])(this['dispose$']))[_0x529762(0x2e6)](_0x55751c=>{const _0x51e72e=_0x529762;_0x55751c===t['SessionStatus'][_0x51e72e(0x2e9)]?this['_toggleOnline']():this[_0x51e72e(0x135)]();}),this['_session'][_0x529762(0x33d)]['pipe']((0x0,i[_0x529762(0x326)])(this[_0x529762(0x224)]))['subscribe'](_0x569cd4=>{const _0x3647bb=_0x529762;let _0x140cb9=_0x569cd4[_0x3647bb(0x31a)];_0x140cb9===p[_0x3647bb(0x212)][_0x3647bb(0x3dd)]&&this['_onCursorUpdate'](_0x569cd4),_0x140cb9===p['CollaborationEvent'][_0x3647bb(0x3a7)]&&this[_0x3647bb(0x36d)](_0x569cd4);}),this[_0x529762(0x3f6)](),this['disposeWithMe'](this[_0x529762(0x38a)][_0x529762(0x144)](_0x4460d6=>{const _0x59d481=_0x529762;if(this[_0x59d481(0x2d1)]&&_0x4460d6['id']===g[_0x59d481(0x375)]['id']&&_0x4460d6[_0x59d481(0x1fe)]['unitId']===this[_0x59d481(0x3df)]){let _0xa2a5c2=_0x4460d6[_0x59d481(0x1fe)];this['_updateLocalCursor'](_0xa2a5c2[_0x59d481(0x1fa)],_0xa2a5c2[_0x59d481(0x233)][0x0]);}})));}['_onCursorUpdate'](_0x4970b8){const _0x42e4d9=_0x3e206b;var _0x58a6de,_0x5539cc;let {memberID:_0x46ca18,selection:_0xba347c}=_0x4970b8[_0x42e4d9(0x2ee)],{sheetName:_0x55d9cb,range:_0x145fc4}=(0x0,h[_0x42e4d9(0x2e3)])(_0xba347c),_0x3dc088={'name':(_0x58a6de=(_0x5539cc=this[_0x42e4d9(0x22d)][_0x42e4d9(0x322)](this[_0x42e4d9(0x3df)],_0x46ca18))==null?void 0x0:_0x5539cc[_0x42e4d9(0x12b)])==null?_0x42e4d9(0x3cc):_0x58a6de,'range':this['_getMergeRange'](_0x55d9cb,_0x145fc4),'sheetID':_0x55d9cb,'color':this[_0x42e4d9(0x20b)][_0x42e4d9(0x2ec)](_0x46ca18),'selection':_0xba347c},_0x46224c=this[_0x42e4d9(0x2f3)];_0x46224c[_0x42e4d9(0x369)](_0x46ca18,_0x3dc088),this[_0x42e4d9(0x1ea)]['next'](_0x46224c);}[_0x3e206b(0x36d)](_0x8e2118){const _0x3dee25=_0x3e206b;let {memberID:_0x3bdc65}=_0x8e2118[_0x3dee25(0x2ee)],_0x31c7b0=this[_0x3dee25(0x2f3)];_0x31c7b0[_0x3dee25(0x2bd)](_0x3bdc65),this['_cursorInfo$']['next'](_0x31c7b0);}[_0x3e206b(0x1c2)](_0x3b8583,_0x27f96a){const _0x12edaf=_0x3e206b;var _0x41b169;let _0x5734ab=(_0x41b169=this[_0x12edaf(0x169)][_0x12edaf(0x2d2)](this[_0x12edaf(0x3df)]))==null||(_0x41b169=_0x41b169[_0x12edaf(0x289)](_0x3b8583))==null?void 0x0:_0x41b169['getMergeData']();return(_0x5734ab==null?void 0x0:_0x5734ab[_0x12edaf(0x18a)](_0x56d996=>n['Rectangle'][_0x12edaf(0x1d3)](_0x56d996,_0x27f96a)))||_0x27f96a;}[_0x3e206b(0x3f6)](){const _0x2371f0=_0x3e206b;let _0x43aa08=new n[(_0x2371f0(0x21e))](),_0x2e046a=ve(),_0x568d3e=()=>{const _0xc008e6=_0x2371f0;_0x43aa08[_0xc008e6(0x2a8)]();let _0x1bda0b=(_0x44ee29,_0x1eeb31,_0x349745,_0x156158)=>{const _0x10dc7a=_0xc008e6;let _0x3bc167=[];switch(_0x44ee29['id']){case g['EffectRefRangId'][_0x10dc7a(0x415)]:_0x3bc167=(0x0,g[_0x10dc7a(0x24b)])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)]['DeleteRangeMoveUpCommandId']:_0x3bc167=(0x0,g['handleDeleteRangeMoveUp'])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)]['InsertColCommandId']:_0x3bc167=(0x0,g[_0x10dc7a(0x29f)])(_0x44ee29,_0x156158);break;case g['EffectRefRangId'][_0x10dc7a(0x3dc)]:_0x3bc167=(0x0,g['handleInsertRangeMoveDown'])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)][_0x10dc7a(0x223)]:_0x3bc167=(0x0,g[_0x10dc7a(0x393)])(_0x44ee29,_0x156158);break;case g['EffectRefRangId'][_0x10dc7a(0x26d)]:_0x3bc167=(0x0,g[_0x10dc7a(0x245)])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)][_0x10dc7a(0x3b2)]:_0x3bc167=(0x0,g[_0x10dc7a(0x420)])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)][_0x10dc7a(0x352)]:_0x3bc167=(0x0,g[_0x10dc7a(0x134)])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)]['RemoveRowCommandId']:_0x3bc167=(0x0,g['handleIRemoveRow'])(_0x44ee29,_0x156158);break;}let _0x5c1a61=(0x0,g['runRefRangeMutations'])(_0x3bc167,_0x156158),_0x591bf3=this[_0x10dc7a(0x2f3)]['get'](_0x1eeb31);if(_0x591bf3&&_0x5c1a61){let _0x4e6e9c={..._0x591bf3,'range':_0x5c1a61};this[_0x10dc7a(0x2f3)]['set'](_0x1eeb31,_0x4e6e9c),_0x2e046a(()=>{const _0xeb8470=_0x10dc7a;let _0x4a07ef=this['_refRangeService'][_0xeb8470(0x1c5)](_0x5c1a61,_0x3fef38=>(_0x4a07ef[_0xeb8470(0x2a8)](),_0x1bda0b(_0x3fef38,_0x1eeb31,_0x349745,_0x5c1a61)));_0x43aa08['add'](_0x4a07ef);});}return{'redos':[],'undos':[]};};this[_0xc008e6(0x2f3)][_0xc008e6(0x2d6)]((_0x7cc83e,_0x2f76ab)=>{const _0xff21cf=_0xc008e6;let {range:_0xc3d87f,sheetID:_0x54ed33}=_0x7cc83e,_0x535d6e=this[_0xff21cf(0x376)][_0xff21cf(0x1c5)](_0xc3d87f,_0x260d26=>(_0x535d6e[_0xff21cf(0x2a8)](),_0x1bda0b(_0x260d26,_0x2f76ab,_0x54ed33,_0xc3d87f)));_0x43aa08[_0xff21cf(0x264)](_0x535d6e);});};this[_0x2371f0(0x1b7)]((0x0,n[_0x2371f0(0x297)])(this[_0x2371f0(0x1ea)][_0x2371f0(0x2e6)](()=>{_0x568d3e();})));}['_toggleOnline'](){const _0x519eb8=_0x3e206b;var _0x3c1828,_0x13b2f0;if(this['_online']=!0x0,((_0x3c1828=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x3c1828['getUnitId']())!==this[_0x519eb8(0x3df)])return;let _0x199530=(_0x13b2f0=this[_0x519eb8(0x141)][_0x519eb8(0x28b)](g[_0x519eb8(0x3ff)])[_0x519eb8(0x2aa)]())==null?void 0x0:_0x13b2f0[0x0],_0x45089b=this['_univerInstanceService']['getCurrentUnitOfType'](n[_0x519eb8(0x166)]['UNIVER_SHEET'])[_0x519eb8(0x2f8)]();_0x199530&&_0x45089b&&this[_0x519eb8(0x30f)](_0x45089b[_0x519eb8(0x395)](),_0x199530);}[_0x3e206b(0x135)](){this['_online']=!0x1;}};N=C([S(0x2,(0x0,n['Inject'])(n['Injector'])),S(0x3,(0x0,n[_0x3e206b(0x2de)])(k)),S(0x4,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x34a)])),S(0x5,n[_0x3e206b(0x27d)]),S(0x6,n[_0x3e206b(0x1e4)]),S(0x7,(0x0,n[_0x3e206b(0x2de)])(g[_0x3e206b(0x180)]))],N);function ye(_0x3f2785){const _0x4b0041=_0x3e206b;let _0x1e1b81;try{_0x1e1b81=JSON[_0x4b0041(0x1ec)](_0x3f2785);}catch{return null;}if(typeof _0x1e1b81!=_0x4b0041(0x39b)||!_0x1e1b81)return null;let _0x46df30=_0x1e1b81;if(_0x46df30['kind']!==_0x4b0041(0x3fe)||typeof _0x46df30['unitId']!='string'||typeof _0x46df30['subUnitId']!=_0x4b0041(0x25e))return null;let _0x5ae9bd=Array['isArray'](_0x46df30['selectedIds'])?_0x46df30[_0x4b0041(0x2b8)][_0x4b0041(0x11b)](_0x469955=>typeof _0x469955=='string'):[],_0x7a7c16=typeof _0x46df30['focusedId']==_0x4b0041(0x25e)?_0x46df30[_0x4b0041(0x2ef)]:null;return{'kind':'slide-element-selection','unitId':_0x46df30['unitId'],'subUnitId':_0x46df30[_0x4b0041(0x1fa)],'selectedIds':_0x5ae9bd,'focusedId':_0x7a7c16};}let P=class extends n[_0x3e206b(0x1cf)]{get[_0x3e206b(0x2f3)](){const _0x164089=_0x3e206b;return this[_0x164089(0x1ea)][_0x164089(0x3c5)]();}get['roomMembers'](){const _0x5fb717=_0x3e206b;return this[_0x5fb717(0x419)][_0x5fb717(0x3c5)]();}constructor(_0x1f3a7c,_0xed4945,_0x20595c,_0x41462e,_0x10713f){const _0x4d87f7=_0x3e206b;super(),this[_0x4d87f7(0x3df)]=_0x1f3a7c,this[_0x4d87f7(0x191)]=_0xed4945,this[_0x4d87f7(0x20b)]=_0x20595c,this[_0x4d87f7(0x22d)]=_0x41462e,this['_slideDrawingStateService']=_0x10713f,x(this,_0x4d87f7(0x2d1),!0x1),x(this,_0x4d87f7(0x327),!0x1),x(this,_0x4d87f7(0x1ea),new i[(_0x4d87f7(0x19a))](new Map())),x(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),x(this,_0x4d87f7(0x419),new i['BehaviorSubject']([])),x(this,_0x4d87f7(0x1ff),this[_0x4d87f7(0x419)]['pipe']((0x0,i[_0x4d87f7(0x2ab)])(0x12c))),x(this,_0x4d87f7(0x30f),(0x0,n[_0x4d87f7(0x3fb)])(_0x547c84=>{const _0x20da18=_0x4d87f7;let _0x2a27e7=_0x547c84['context'];if(!_0x2a27e7||_0x2a27e7['unitId']!==this[_0x20da18(0x3df)])return;let _0x502b41={'kind':'slide-element-selection','unitId':_0x2a27e7[_0x20da18(0x196)],'subUnitId':_0x2a27e7[_0x20da18(0x1fa)],'selectedIds':_0x547c84[_0x20da18(0x2b8)][_0x20da18(0x11b)](_0x165f4b=>typeof _0x165f4b==_0x20da18(0x25e)),'focusedId':_0x547c84['focusedId']},_0x4f298d={'eventID':p[_0x20da18(0x212)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x20da18(0x3df)],'memberID':this[_0x20da18(0x191)]['getMemberID'](),'selection':JSON[_0x20da18(0x406)](_0x502b41)}};this[_0x20da18(0x191)][_0x20da18(0x126)](_0x4f298d,this[_0x20da18(0x3df)]);},0x64));}[_0x3e206b(0x2a8)](){const _0x121742=_0x3e206b;super[_0x121742(0x2a8)](),this['_cursorInfo$'][_0x121742(0x33b)](new Map()),this[_0x121742(0x1ea)][_0x121742(0x347)](),this[_0x121742(0x419)][_0x121742(0x33b)]([]),this[_0x121742(0x419)][_0x121742(0x347)]();}[_0x3e206b(0x2e5)](){const _0x49aa00=_0x3e206b;this[_0x49aa00(0x327)]||(this[_0x49aa00(0x327)]=!0x0,this[_0x49aa00(0x191)][_0x49aa00(0x3cf)]['pipe']((0x0,i[_0x49aa00(0x326)])(this[_0x49aa00(0x224)]))[_0x49aa00(0x2e6)](_0x138a8a=>{const _0x55c146=_0x49aa00;_0x138a8a===t[_0x55c146(0x26b)][_0x55c146(0x2e9)]?this[_0x55c146(0x1ca)]():this['_toggleOffline']();}),this[_0x49aa00(0x191)][_0x49aa00(0x33d)]['pipe']((0x0,i[_0x49aa00(0x326)])(this[_0x49aa00(0x224)]))[_0x49aa00(0x2e6)](_0x382aa9=>{const _0x30da20=_0x49aa00;let _0x3ca9bb=_0x382aa9['eventID'];_0x3ca9bb===p['CollaborationEvent'][_0x30da20(0x3dd)]&&this['_onCursorUpdate'](_0x382aa9),_0x3ca9bb===p[_0x30da20(0x212)]['USERS_LEAVE']&&this[_0x30da20(0x36d)](_0x382aa9);}),this[_0x49aa00(0x2e1)][_0x49aa00(0x1d7)][_0x49aa00(0x40a)]((0x0,i['takeUntil'])(this['dispose$']))['subscribe'](_0x57807c=>{const _0x22ba5d=_0x49aa00;this[_0x22ba5d(0x2d1)]&&this['_updateLocalCursor'](_0x57807c);}));}[_0x3e206b(0x3b8)](_0x1c0ba2){const _0x517567=_0x3e206b;var _0xf1c08b,_0x888e8c,_0x3fa4b0,_0x343f8f;let {memberID:_0x7209bf,selection:_0x10920c}=_0x1c0ba2[_0x517567(0x2ee)];if(_0x7209bf===((_0xf1c08b=(_0x888e8c=this[_0x517567(0x191)])['getMemberID'])==null?void 0x0:_0xf1c08b[_0x517567(0x293)](_0x888e8c)))return;let _0x791caf=ye(_0x10920c);if(!_0x791caf||_0x791caf['unitId']!==this['unitID'])return;let _0x1f1fbf=(_0x3fa4b0=(_0x343f8f=this[_0x517567(0x22d)][_0x517567(0x322)](this['unitID'],_0x7209bf))==null?void 0x0:_0x343f8f[_0x517567(0x12b)])==null?_0x517567(0x3cc):_0x3fa4b0,_0x4d0aae={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x7209bf),'name':_0x1f1fbf,'unitId':_0x791caf[_0x517567(0x196)],'subUnitId':_0x791caf['subUnitId'],'selectedIds':_0x791caf[_0x517567(0x2b8)],'focusedId':_0x791caf[_0x517567(0x2ef)],'selection':_0x10920c},_0x367f1e=new Map(this[_0x517567(0x2f3)]);_0x367f1e[_0x517567(0x369)](_0x7209bf,_0x4d0aae),this[_0x517567(0x1ea)]['next'](_0x367f1e);}[_0x3e206b(0x36d)](_0x3c9180){const _0x375ba5=_0x3e206b;let {memberID:_0x43da42}=_0x3c9180[_0x375ba5(0x2ee)],_0x48850d=new Map(this[_0x375ba5(0x2f3)]);_0x48850d[_0x375ba5(0x2bd)](_0x43da42),this[_0x375ba5(0x1ea)][_0x375ba5(0x33b)](_0x48850d);}[_0x3e206b(0x1ca)](){const _0x1d689b=_0x3e206b;this['_online']=!0x0,this[_0x1d689b(0x30f)](this[_0x1d689b(0x2e1)][_0x1d689b(0x13b)]());}[_0x3e206b(0x135)](){this['_online']=!0x1;}};P=C([S(0x2,(0x0,n[_0x3e206b(0x2de)])(k)),S(0x3,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x34a)])),S(0x4,(0x0,n[_0x3e206b(0x2de)])(_[_0x3e206b(0x3c8)]))],P);let F=class extends n['RxDisposable']{constructor(_0x36f853,_0x56a267,_0xab8a74){const _0x40b29a=_0x3e206b;super(),this[_0x40b29a(0x169)]=_0x36f853,this[_0x40b29a(0x141)]=_0x56a267,this['_collabSessionService']=_0xab8a74,x(this,_0x40b29a(0x1a2),new Map()),x(this,_0x40b29a(0x416),new i[(_0x40b29a(0x173))]()),this[_0x40b29a(0x327)]();}['dispose'](){const _0x315d02=_0x3e206b;super[_0x315d02(0x2a8)](),this['_entityInit$'][_0x315d02(0x347)](),this[_0x315d02(0x1a2)][_0x315d02(0x2d6)](_0x14f0bc=>_0x14f0bc['dispose']());}[_0x3e206b(0x3be)](_0x2d3898){const _0xe2c345=_0x3e206b;return this['_entities'][_0xe2c345(0x3fa)](_0x2d3898)?this[_0xe2c345(0x1a2)][_0xe2c345(0x28b)](_0x2d3898)[_0xe2c345(0x294)]:this[_0xe2c345(0x416)][_0xe2c345(0x40a)]((0x0,i['filter'])(_0x34a47d=>_0x34a47d[_0xe2c345(0x3df)]===_0x2d3898),(0x0,i[_0xe2c345(0x1e6)])(_0x2a5e70=>_0x2a5e70['cursorInfo$']));}[_0x3e206b(0x327)](){const _0x5929df=_0x3e206b;this[_0x5929df(0x169)]['getTypeOfUnitAdded$'](n['UniverInstanceType'][_0x5929df(0x3b6)])[_0x5929df(0x40a)]((0x0,i[_0x5929df(0x326)])(this[_0x5929df(0x224)]))[_0x5929df(0x2e6)](async _0xc44fa4=>{const _0x5c73de=_0x5929df;let _0x571319=_0xc44fa4[_0x5c73de(0x3bf)][_0x5c73de(0x187)](),_0x488741=await this[_0x5c73de(0x400)](_0x571319);this[_0x5c73de(0x416)][_0x5c73de(0x33b)](_0x488741),this['_entities'][_0x5c73de(0x369)](_0x571319,_0x488741);}),this['_univerInstanceService'][_0x5929df(0x206)](n[_0x5929df(0x166)][_0x5929df(0x267)])[_0x5929df(0x40a)]((0x0,i[_0x5929df(0x326)])(this['dispose$']))[_0x5929df(0x40a)]((0x0,i['filter'])(_0x561107=>!_0x561107[_0x5929df(0x3bf)][_0x5929df(0x187)]()['startsWith']('__')))['subscribe'](async _0x23a63e=>{const _0x5cf108=_0x5929df;let {unit:_0x57b701}=_0x23a63e,_0x3a8357=_0x57b701[_0x5cf108(0x187)](),_0x1e68c5=await this[_0x5cf108(0x2e2)](_0x3a8357);this[_0x5cf108(0x416)][_0x5cf108(0x33b)](_0x1e68c5),this[_0x5cf108(0x1a2)][_0x5cf108(0x369)](_0x3a8357,_0x1e68c5);}),this[_0x5929df(0x169)][_0x5929df(0x206)](n[_0x5929df(0x166)][_0x5929df(0x3f2)])[_0x5929df(0x40a)]((0x0,i['takeUntil'])(this['dispose$']))[_0x5929df(0x2e6)](async _0x5bc2d8=>{const _0x43ee00=_0x5929df;let _0x352007=_0x5bc2d8[_0x43ee00(0x3bf)][_0x43ee00(0x187)](),_0xe1c463=await this['_startSlideCollabCursor'](_0x352007);this[_0x43ee00(0x416)][_0x43ee00(0x33b)](_0xe1c463),this[_0x43ee00(0x1a2)][_0x43ee00(0x369)](_0x352007,_0xe1c463);}),this[_0x5929df(0x169)][_0x5929df(0x206)](n['UniverInstanceType'][_0x5929df(0x1d6)])[_0x5929df(0x40a)]((0x0,i[_0x5929df(0x326)])(this[_0x5929df(0x224)]))[_0x5929df(0x2e6)](async _0x4106ee=>{const _0x2cc7eb=_0x5929df;let _0x53679a=_0x4106ee['unit'][_0x2cc7eb(0x187)](),_0x433505=await this[_0x2cc7eb(0x148)](_0x53679a);this['_entityInit$'][_0x2cc7eb(0x33b)](_0x433505),this['_entities'][_0x2cc7eb(0x369)](_0x53679a,_0x433505);}),(0x0,i[_0x5929df(0x273)])(this['_univerInstanceService'][_0x5929df(0x21b)](n[_0x5929df(0x166)]['UNIVER_DOC']),this[_0x5929df(0x169)]['getTypeOfUnitDisposed$'](n[_0x5929df(0x166)][_0x5929df(0x3b6)]),this[_0x5929df(0x169)][_0x5929df(0x21b)](n[_0x5929df(0x166)][_0x5929df(0x3f2)]),this[_0x5929df(0x169)][_0x5929df(0x21b)](n[_0x5929df(0x166)][_0x5929df(0x1d6)]))[_0x5929df(0x40a)]((0x0,i[_0x5929df(0x326)])(this['dispose$']))['subscribe'](_0x155163=>{const _0x19d6b8=_0x5929df;let _0x287d73=_0x155163[_0x19d6b8(0x187)](),_0xdf7119=this[_0x19d6b8(0x1a2)][_0x19d6b8(0x28b)](_0x287d73);_0xdf7119&&(_0xdf7119['dispose'](),this['_entities'][_0x19d6b8(0x2bd)](_0x287d73));});}async[_0x3e206b(0x400)](_0x41b274){const _0x5acaad=_0x3e206b;let _0x40d95c=await this[_0x5acaad(0x222)][_0x5acaad(0x182)](_0x41b274),_0x1a5c65=this[_0x5acaad(0x141)][_0x5acaad(0x2c0)](N,_0x41b274,_0x40d95c);return _0x1a5c65[_0x5acaad(0x2e5)](),_0x1a5c65;}async['_startDocCollabCursor'](_0x421803){const _0x22daa0=_0x3e206b;let _0x49a29b=await this[_0x22daa0(0x222)][_0x22daa0(0x182)](_0x421803),_0x1abfc2=this['_injector'][_0x22daa0(0x2c0)](M,_0x421803,_0x49a29b);return _0x1abfc2[_0x22daa0(0x2e5)](),_0x1abfc2;}async['_startSlideCollabCursor'](_0x5b0b02){const _0x40f545=_0x3e206b;let _0x44481f=await this[_0x40f545(0x222)][_0x40f545(0x182)](_0x5b0b02),_0x5a4adc=this[_0x40f545(0x141)]['createInstance'](P,_0x5b0b02,_0x44481f);return _0x5a4adc[_0x40f545(0x2e5)](),_0x5a4adc;}async[_0x3e206b(0x148)](_0x1157fd){const _0x8c58bd=_0x3e206b;let _0xbefe24=await this[_0x8c58bd(0x222)][_0x8c58bd(0x182)](_0x1157fd),_0x30b704=this[_0x8c58bd(0x141)][_0x8c58bd(0x2c0)](A,_0x1157fd,_0xbefe24);return _0x30b704['init'](),_0x30b704;}};F=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n['Inject'])(n[_0x3e206b(0x244)])),S(0x2,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x167)]))],F);let I=class extends n['RxDisposable']{constructor(_0x203280,_0x7fcc59,_0x3645cb){const _0x30b07e=_0x3e206b;super(),this[_0x30b07e(0x318)]=_0x203280,this[_0x30b07e(0x2c7)]=_0x7fcc59,this['_themeService']=_0x3645cb,x(this,_0x30b07e(0x213),new Set()),x(this,'_renderScheduled',!0x1),x(this,_0x30b07e(0x41d),!0x1),x(this,_0x30b07e(0x30a),new Map()),this['_init']();}[_0x3e206b(0x2a8)](){const _0x6c3622=_0x3e206b;this[_0x6c3622(0x343)](),super[_0x6c3622(0x2a8)]();}[_0x3e206b(0x327)](){const _0x4af877=_0x3e206b;let _0x78925d=this[_0x4af877(0x2c7)][_0x4af877(0x3be)](this['_context'][_0x4af877(0x196)]);this[_0x4af877(0x1b7)]((0x0,n[_0x4af877(0x297)])((0x0,i['combineLatest'])([_0x78925d,this[_0x4af877(0x318)][_0x4af877(0x3bf)][_0x4af877(0x2be)],this[_0x4af877(0x324)]['currentTheme$']])['pipe']((0x0,i[_0x4af877(0x326)])(this[_0x4af877(0x224)]))[_0x4af877(0x2e6)](([_0x35dc28])=>{const _0x5798c6=_0x4af877;let _0x374071=this[_0x5798c6(0x318)]['unit'][_0x5798c6(0x3e0)](),_0x538d2e=new Map();_0x35dc28[_0x5798c6(0x2d6)]((_0x38428e,_0x1bcd9a)=>{const _0x521891=_0x5798c6;_0x38428e[_0x521891(0x1fa)]===_0x374071&&_0x538d2e[_0x521891(0x369)](_0x1bcd9a,{..._0x38428e,'color':this[_0x521891(0x324)][_0x521891(0x328)](_0x38428e[_0x521891(0x3c0)])});}),this['_latestCursors']=_0x538d2e,this[_0x5798c6(0x1ac)]();})));let _0x577d4b=this['_context']['scene'];this['disposeWithMe']((0x0,n['toDisposable'])(_0x577d4b[_0x4af877(0x268)]['pipe']((0x0,i[_0x4af877(0x326)])(this[_0x4af877(0x224)]))['subscribe'](()=>{const _0x36038d=_0x4af877;this[_0x36038d(0x41d)]||this[_0x36038d(0x1ac)]();})));}['_scheduleRender'](){const _0xfd6a1c=_0x3e206b;this[_0xfd6a1c(0x389)]||(this['_renderScheduled']=!0x0,Promise[_0xfd6a1c(0x2f6)]()[_0xfd6a1c(0x251)](()=>{const _0x48bb55=_0xfd6a1c;this[_0x48bb55(0x389)]=!0x1,this[_0x48bb55(0x39d)]();}));}['_render'](){const _0x4ded0e=_0x3e206b;this[_0x4ded0e(0x343)]();let _0x4f3835=this[_0x4ded0e(0x318)][_0x4ded0e(0x3bf)][_0x4ded0e(0x3e0)](),_0xb21ecc=[];if(this[_0x4ded0e(0x30a)][_0x4ded0e(0x2d6)]((_0x395b9b,_0x2b42d7)=>{const _0x419a9b=_0x4ded0e;_0x395b9b[_0x419a9b(0x1fa)]===_0x4f3835&&_0x395b9b[_0x419a9b(0x2b8)][_0x419a9b(0x2d6)](_0x398d38=>{const _0x19a722=_0x419a9b;let _0x1ab6ab=(0x0,e[_0x19a722(0x2dd)])(_0x395b9b[_0x19a722(0x196)],_0x398d38),_0x48d6f6=this[_0x19a722(0x2b5)](_0x1ab6ab);if(!_0x48d6f6)return;let _0x904bcf=this[_0x19a722(0x405)](_0x48d6f6);_0xb21ecc[_0x19a722(0x313)](new pe(_0x19a722(0x19c)+_0x2b42d7+'-'+_0x398d38,{..._0x395b9b,'left':_0x904bcf[_0x19a722(0x1f6)],'top':_0x904bcf['top'],'width':_0x904bcf[_0x19a722(0x3ed)],'height':_0x904bcf[_0x19a722(0x238)],'angle':_0x48d6f6[_0x19a722(0x1b4)],'evented':!0x1,'zIndex':O}));});}),_0xb21ecc[_0x4ded0e(0x2ca)]===0x0){this['_context']['scene']['makeDirty'](!0x0);return;}this[_0x4ded0e(0x41d)]=!0x0,this[_0x4ded0e(0x318)]['scene'][_0x4ded0e(0x311)](_0xb21ecc,O),this[_0x4ded0e(0x41d)]=!0x1,this['_cursors']=new Set(_0xb21ecc),this['_context'][_0x4ded0e(0x1ee)][_0x4ded0e(0x200)](!0x0);}[_0x3e206b(0x343)](){const _0x2297ab=_0x3e206b;let _0x4b4456=Array['from'](this[_0x2297ab(0x213)]);if(_0x4b4456[_0x2297ab(0x2ca)]===0x0)return;let _0x30b193=this[_0x2297ab(0x318)][_0x2297ab(0x1ee)];_0x2297ab(0x35a)in _0x30b193&&typeof _0x30b193[_0x2297ab(0x35a)]=='function'?_0x30b193[_0x2297ab(0x35a)](_0x4b4456):_0x4b4456['forEach'](_0x457b83=>{const _0x5771a1=_0x2297ab;'removeObject'in _0x30b193&&typeof _0x30b193[_0x5771a1(0x201)]==_0x5771a1(0x256)?_0x30b193[_0x5771a1(0x201)](_0x457b83):_0x457b83[_0x5771a1(0x2a8)]();}),this[_0x2297ab(0x213)][_0x2297ab(0x32d)](),_0x30b193[_0x2297ab(0x200)](!0x0);}[_0x3e206b(0x2b5)](_0x313941){const _0x48087b=_0x3e206b;var _0xcd702f,_0x5b9ec0,_0x41b7ed;let _0x4f18de=this[_0x48087b(0x318)][_0x48087b(0x1ee)];return(_0xcd702f=(_0x5b9ec0=(_0x41b7ed=_0x4f18de[_0x48087b(0x14d)])==null?void 0x0:_0x41b7ed[_0x48087b(0x293)](_0x4f18de,_0x313941))==null?_0x4f18de['getObject'](_0x313941):_0x5b9ec0)==null?null:_0xcd702f;}[_0x3e206b(0x405)](_0x507a6b){const _0xf32b4=_0x3e206b;var _0x1f2348,_0x5e8331;let _0x2af6ef=_0x507a6b;return(_0x1f2348=(_0x5e8331=_0x2af6ef[_0xf32b4(0x364)])==null?void 0x0:_0x5e8331['call'](_0x2af6ef))==null?{'left':_0x507a6b['left'],'top':_0x507a6b['top'],'width':_0x507a6b[_0xf32b4(0x3ed)],'height':_0x507a6b[_0xf32b4(0x238)]}:_0x1f2348;}};I=C([S(0x1,(0x0,n['Inject'])(F)),S(0x2,(0x0,n['Inject'])(n[_0x3e206b(0x35f)]))],I);const L=_0x3e206b(0x366);var be=class{constructor(_0x2d4ccf,_0x1d4cd2,_0x4db318,_0x37a698){const _0x1c50f7=_0x3e206b;this[_0x1c50f7(0x2d7)]=_0x2d4ccf,this[_0x1c50f7(0x355)]=_0x1d4cd2,this[_0x1c50f7(0x2dc)]=_0x4db318,this[_0x1c50f7(0x28e)]=_0x37a698,x(this,_0x1c50f7(0x26a),[]),x(this,'_anchor',null),x(this,_0x1c50f7(0x312),null),x(this,_0x1c50f7(0x2af),null),x(this,_0x1c50f7(0x402),null),x(this,_0x1c50f7(0x3f4),null),this[_0x1c50f7(0x39d)]();}set[_0x3e206b(0x1d0)](_0x55efeb){const _0x565a0e=_0x3e206b;_0x55efeb?(this[_0x565a0e(0x2af)]&&this[_0x565a0e(0x2af)][_0x565a0e(0x1cd)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x565a0e(0x2af)]&&this['_anchorDot']['show'](),this[_0x565a0e(0x312)]&&this[_0x565a0e(0x312)][_0x565a0e(0x1cd)]());}[_0x3e206b(0x2a8)](){const _0x31c207=_0x3e206b;for(let _0x4ef9be of this[_0x31c207(0x26a)])_0x4ef9be[_0x31c207(0x2a8)]();this[_0x31c207(0x312)]&&this[_0x31c207(0x312)][_0x31c207(0x2a8)](),this[_0x31c207(0x2af)]&&this[_0x31c207(0x2af)][_0x31c207(0x2a8)](),this[_0x31c207(0x3cd)]&&this[_0x31c207(0x3cd)]['dispose'](),this[_0x31c207(0x3f4)]&&this[_0x31c207(0x3f4)]();}[_0x3e206b(0x39d)](){const _0x5f02f6=_0x3e206b;let {_docSkeleton:_0xfaede1,_document:_0x56a116}=this,{color:_0x4c9255,name:_0x12af46,ranges:_0x20487a}=this[_0x5f02f6(0x2d7)],_0x4be9ab=_0x56a116['getOffsetConfig'](),{docsLeft:_0x2628d6,docsTop:_0x21ed1b}=_0x4be9ab,_0x3590b=new f[(_0x5f02f6(0x3f8))](_0x4be9ab,_0xfaede1);for(let {startOffset:_0x4e0887,endOffset:_0x12695b,rangeType:_0x4ca855,segmentId:_0x235882,segmentPage:_0x325e06,collapsed:_0x1358c8,isActive:_0x4e6d1e}of _0x20487a){let _0x55b53b=_0xfaede1[_0x5f02f6(0x151)](_0x4e0887,!0x0,_0x235882,_0x325e06),_0x5e5931=_0xfaede1[_0x5f02f6(0x151)](_0x12695b,!0x0,_0x235882,_0x325e06);if(_0x5e5931==null&&(_0x5e5931=_0xfaede1['findNodePositionByCharIndex'](_0x12695b-0x1,!0x1,_0x235882,_0x325e06)),_0x4e6d1e){let {contentBoxPointGroup:_0x5a9553}=_0x3590b[_0x5f02f6(0x342)](_0x5e5931,_0x5e5931);if(_0x5a9553['length']===0x0)continue;this[_0x5f02f6(0x1e1)](_0x4c9255,_0x5a9553,_0x2628d6,_0x21ed1b,_0x12af46),this[_0x5f02f6(0x3f4)]=this[_0x5f02f6(0x372)]();}if(_0x55b53b&&_0x5e5931){if(_0x4ca855===n['DOC_RANGE_TYPE'][_0x5f02f6(0x1bf)]){var _0x5a1130;let {pointGroup:_0x36dffb}=(_0x5a1130=new f[(_0x5f02f6(0x18d))](_0x4be9ab,_0xfaede1)[_0x5f02f6(0x342)](_0x55b53b,_0x5e5931))==null?{}:_0x5a1130;if(_0x36dffb==null||_0x36dffb[_0x5f02f6(0x2ca)]===0x0)continue;this[_0x5f02f6(0x150)](_0x4c9255,_0x36dffb,_0x2628d6,_0x21ed1b);}else{if(!_0x1358c8){let {borderBoxPointGroup:_0x2932ae}=_0x3590b['getRangePointData'](_0x55b53b,_0x5e5931);if(_0x2932ae[_0x5f02f6(0x2ca)]===0x0)continue;this['_drawTextRange'](_0x4c9255,_0x2932ae,_0x2628d6,_0x21ed1b);}}}}}[_0x3e206b(0x1e1)](_0xbe6413,_0x25d5fc,_0xd6608d,_0x335896,_0x59d732){const _0x4e8f6f=_0x3e206b;let {left:_0x2560a2,top:_0x415ffa,height:_0x49483d}=this[_0x4e8f6f(0x269)](_0x25d5fc),_0x48a5e4=1.5/this[_0x4e8f6f(0x1d4)](),_0x2610a9=new u[(_0x4e8f6f(0x2fa))](L+(0x0,n[_0x4e8f6f(0x3d9)])(0x6),{'left':_0x2560a2+_0xd6608d-_0x48a5e4,'top':_0x415ffa+_0x335896,'height':_0x49483d,'width':1.5,'fill':_0xbe6413||(0x0,u[_0x4e8f6f(0x147)])(n[_0x4e8f6f(0x18e)][_0x4e8f6f(0x3ca)],0x0),'strokeWidth':_0x48a5e4,'stroke':_0x4e8f6f(0x136),'evented':!0x0});this[_0x4e8f6f(0x3cd)]=_0x2610a9,this[_0x4e8f6f(0x355)][_0x4e8f6f(0x270)](_0x2610a9,f[_0x4e8f6f(0x382)]);let _0x194d36=new u[(_0x4e8f6f(0x2fa))](L+(0x0,n[_0x4e8f6f(0x3d9)])(0x6),{'left':_0x2560a2+_0xd6608d-_0x48a5e4,'top':_0x415ffa+_0x335896-0x4/0x2,'height':0x4,'width':0x4,'fill':_0xbe6413||(0x0,u['getColor'])(n[_0x4e8f6f(0x18e)][_0x4e8f6f(0x3ca)],0x0),'strokeWidth':0x0,'stroke':_0xbe6413||(0x0,u[_0x4e8f6f(0x147)])(n['COLORS'][_0x4e8f6f(0x3ca)],0x0),'evented':!0x1});this[_0x4e8f6f(0x2af)]=_0x194d36,this['_scene'][_0x4e8f6f(0x270)](_0x194d36,f[_0x4e8f6f(0x382)]);let _0x36194b=new D(L+(0x0,n[_0x4e8f6f(0x3d9)])(0x6),{'left':_0x2560a2+_0xd6608d-_0x48a5e4,'top':_0x415ffa+_0x335896-0x14,'text':_0x59d732,'color':_0xbe6413});this[_0x4e8f6f(0x312)]=_0x36194b,this[_0x4e8f6f(0x355)]['addObject'](_0x36194b,f['TEXT_RANGE_LAYER_INDEX']),this[_0x4e8f6f(0x1d0)]=!0x1;}[_0x3e206b(0x372)](){const _0x44dd5c=_0x3e206b;let _0x16f1ac=this['_anchor'][_0x44dd5c(0x3a1)][_0x44dd5c(0x32b)](()=>{this['_hover']=!0x0;}),_0x37d669=this['_anchor'][_0x44dd5c(0x1f5)][_0x44dd5c(0x32b)](()=>{const _0x30fbc3=_0x44dd5c;this[_0x30fbc3(0x402)]&&clearTimeout(this[_0x30fbc3(0x402)]),this[_0x30fbc3(0x402)]=setTimeout(()=>{const _0x3d2a8c=_0x30fbc3;this[_0x3d2a8c(0x1d0)]=!0x1;},0x7d0);});return()=>{const _0x3b6cb4=_0x44dd5c;_0x16f1ac[_0x3b6cb4(0x1e8)](),_0x37d669['unsubscribe']();};}['_drawTextRange'](_0x5c49e2,_0x123f1e,_0x58a668,_0x512a7a){const _0x7395ff=_0x3e206b;let _0x51cf0b=0.2,_0x4b0a10=new n['ColorKit'](_0x5c49e2)['setAlpha'](_0x51cf0b)[_0x7395ff(0x2b6)](),_0x210d98=new u[(_0x7395ff(0x2d0))](_0x7395ff(0x41b)+(0x0,n['generateRandomId'])(0x6),{'pointsGroup':_0x123f1e,'fill':_0x4b0a10||(0x0,u[_0x7395ff(0x147)])(n['COLORS'][_0x7395ff(0x3ca)],_0x51cf0b),'left':_0x58a668,'top':_0x512a7a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x7395ff(0x26a)][_0x7395ff(0x313)](_0x210d98),this[_0x7395ff(0x355)][_0x7395ff(0x270)](_0x210d98,f[_0x7395ff(0x382)]);}[_0x3e206b(0x150)](_0x23a9db,_0x25ef83,_0x18bb55,_0x385c03){const _0x31e7fa=_0x3e206b;let _0x146e12=0.2,_0x6bb5e=new n[(_0x31e7fa(0x241))](_0x23a9db)[_0x31e7fa(0x3b5)](_0x146e12)[_0x31e7fa(0x2b6)](),_0x35b160=new u['RegularPolygon']('collab-rect-range-'+(0x0,n['generateRandomId'])(0x6),{'pointsGroup':_0x25ef83,'fill':_0x6bb5e||(0x0,u[_0x31e7fa(0x147)])(n[_0x31e7fa(0x18e)][_0x31e7fa(0x3ca)],_0x146e12),'left':_0x18bb55,'top':_0x385c03,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x35b160),this['_scene'][_0x31e7fa(0x270)](_0x35b160,f[_0x31e7fa(0x382)]);}[_0x3e206b(0x269)](_0x5407ae){let _0x5be284=_0x5407ae[0x0],_0x182f14=_0x5be284[0x0],_0x3c03f6=_0x5be284[0x2],{x:_0x21551a,y:_0x23a6e6}=_0x182f14,{x:_0x469b40,y:_0x57c11f}=_0x3c03f6;return{'left':_0x21551a,'top':_0x23a6e6,'width':_0x469b40-_0x21551a,'height':_0x57c11f-_0x23a6e6};}[_0x3e206b(0x1d4)](){const _0x3a82f8=_0x3e206b;let {scaleX:_0x1da5fb,scaleY:_0x3805f0}=this[_0x3a82f8(0x355)]['getAncestorScale']();return Math['max'](_0x1da5fb,_0x3805f0);}};let R=class extends n[_0x3e206b(0x1cf)]{constructor(_0x3c983f,_0x2bf2a0,_0x5d8cd6,_0x114284,_0x4a11a4){const _0x10fc85=_0x3e206b;super(),this[_0x10fc85(0x318)]=_0x3c983f,this[_0x10fc85(0x381)]=_0x2bf2a0,this[_0x10fc85(0x2c7)]=_0x5d8cd6,this[_0x10fc85(0x38a)]=_0x114284,this[_0x10fc85(0x324)]=_0x4a11a4,x(this,_0x10fc85(0x194),[]),x(this,'_cursors',[]),this['_init']();}['_init'](){const _0x405164=_0x3e206b;let _0x4e0049=this['_context'][_0x405164(0x196)],_0x43b53b=this[_0x405164(0x381)];this[_0x405164(0x1b7)]((0x0,i[_0x405164(0x11a)])([this[_0x405164(0x2c7)][_0x405164(0x3be)](_0x4e0049),this['_themeService'][_0x405164(0x161)]])[_0x405164(0x40a)]((0x0,a[_0x405164(0x29e)])(([_0xac63e2,_0x41a0f9])=>({'skeleton':_0x43b53b[_0x405164(0x40f)](),'cursors':[..._0xac63e2[_0x405164(0x2cd)]()]['flatMap'](_0x2f733d=>({..._0x2f733d,'color':this[_0x405164(0x324)][_0x405164(0x328)](_0x2f733d[_0x405164(0x3c0)])}))})))[_0x405164(0x2e6)](_0x210750=>{const _0x146e4d=_0x405164;if(this[_0x146e4d(0x343)](),_0x210750){let {skeleton:_0x4addbf,cursors:_0x4f28d3}=_0x210750;this[_0x146e4d(0x34d)](_0x4addbf,_0x4f28d3);}})),this[_0x405164(0x2c8)](),this[_0x405164(0x24f)]();}['_updateCollabCursors'](_0x89d6af,_0x21644a){const _0x5b5445=_0x3e206b;let {scene:_0x3143ac,mainComponent:_0x5b1d73}=this[_0x5b5445(0x318)],_0x5a80fe=_0x21644a[_0x5b5445(0x29e)](_0x53424f=>new be(_0x53424f,_0x3143ac,_0x89d6af,_0x5b1d73));this[_0x5b5445(0x194)]=_0x5a80fe,this[_0x5b5445(0x213)]=_0x21644a;}[_0x3e206b(0x365)](){const _0x289c78=_0x3e206b;this['_removeCollabCursors']();let {scene:_0x2735fd,mainComponent:_0x1fddf5}=this[_0x289c78(0x318)],_0x34b414=this['_docSkeletonManagerService'][_0x289c78(0x40f)](),_0x55ec5b=this[_0x289c78(0x213)][_0x289c78(0x29e)](_0x478d02=>new be(_0x478d02,_0x2735fd,_0x34b414,_0x1fddf5));this[_0x289c78(0x194)]=_0x55ec5b;}[_0x3e206b(0x343)](){const _0x2e93a5=_0x3e206b;this[_0x2e93a5(0x194)][_0x2e93a5(0x2d6)](_0x4ab8b4=>_0x4ab8b4[_0x2e93a5(0x2a8)]()),this[_0x2e93a5(0x194)]=[];}['_initCommandExecutedListener'](){const _0x4c1e3f=_0x3e206b;let _0x4d9776=[f[_0x4c1e3f(0x38b)]['id']];this[_0x4c1e3f(0x1b7)](this[_0x4c1e3f(0x38a)][_0x4c1e3f(0x144)](_0x39ac8e=>{const _0x200be0=_0x4c1e3f;_0x4d9776['includes'](_0x39ac8e['id'])&&_0x39ac8e['params'][_0x200be0(0x196)]===this[_0x200be0(0x318)][_0x200be0(0x196)]&&this[_0x200be0(0x365)]();}));}[_0x3e206b(0x2c8)](){const _0x1d4901=_0x3e206b;this[_0x1d4901(0x1b7)]((0x0,n[_0x1d4901(0x41a)])(this[_0x1d4901(0x318)][_0x1d4901(0x193)][_0x1d4901(0x2b1)])[_0x1d4901(0x40a)]((0x0,a[_0x1d4901(0x11b)])(_0x678bd2=>_0x678bd2['type']===u[_0x1d4901(0x31c)][_0x1d4901(0x32f)]),(0x0,a[_0x1d4901(0x22c)])(0x10))[_0x1d4901(0x2e6)](()=>{this['_refreshCollabCursors']();}));}};R=C([S(0x1,(0x0,n[_0x3e206b(0x2de)])(m[_0x3e206b(0x21f)])),S(0x2,(0x0,n[_0x3e206b(0x2de)])(F)),S(0x3,n[_0x3e206b(0x1e4)]),S(0x4,(0x0,n['Inject'])(n['ThemeService']))],R);var xe=class extends u[_0x3e206b(0x11f)]{constructor(_0x2e92ca,_0x5886dc){const _0x5eab77=_0x3e206b;if(super(_0x2e92ca,_0x5886dc),x(this,_0x5eab77(0x367),void 0x0),x(this,_0x5eab77(0x2a2),!0x1),x(this,_0x5eab77(0x246),void 0x0),x(this,_0x5eab77(0x227),''),x(this,_0x5eab77(0x2e0),'top'),x(this,_0x5eab77(0x164),void 0x0),x(this,_0x5eab77(0x2a4),void 0x0),x(this,'_highlight',void 0x0),x(this,_0x5eab77(0x3b4),0x4),x(this,_0x5eab77(0x159),void 0x0),x(this,'_blinkIntervalTimer',void 0x0),x(this,_0x5eab77(0x235),!0x0),x(this,'_offsetY',0x0),x(this,_0x5eab77(0x14e),_0x5eab77(0x1dd)),_0x5886dc){var _0xd5e683;if(this[_0x5eab77(0x30b)](_0x5886dc),_0x5886dc[_0x5eab77(0x216)]&&((_0xd5e683=_0x5886dc['highlightSecond'])==null?this[_0x5eab77(0x3b4)]:_0xd5e683)){var _0x3133c0;this[_0x5eab77(0x1f7)]((_0x3133c0=_0x5886dc[_0x5eab77(0x16e)])==null?this['_highlightSecond']:_0x3133c0);}}this[_0x5eab77(0x3a1)][_0x5eab77(0x32b)](()=>this[_0x5eab77(0x30b)]({'hovered':!0x0})),this[_0x5eab77(0x1f5)][_0x5eab77(0x32b)](()=>this['setShapeProps']({'hovered':!0x1}));}['setOffsetY'](_0x1c3058){const _0x383fb8=_0x3e206b;this[_0x383fb8(0x242)]=_0x1c3058;}['setShapeProps'](_0x129885){const _0x111ba5=_0x3e206b;var _0x17ca3f,_0x4d9f19,_0x57d3f9,_0xfd3458,_0x38c1e7,_0x326444,_0x1c3aec,_0x3df44d;this[_0x111ba5(0x367)]=(_0x17ca3f=_0x129885[_0x111ba5(0x3c0)])==null?this[_0x111ba5(0x367)]:_0x17ca3f,this[_0x111ba5(0x2a2)]=(_0x4d9f19=_0x129885[_0x111ba5(0x3d0)])==null?this[_0x111ba5(0x2a2)]:_0x4d9f19,this[_0x111ba5(0x246)]=(_0x57d3f9=_0x129885[_0x111ba5(0x2fd)])==null?this[_0x111ba5(0x246)]:_0x57d3f9,this[_0x111ba5(0x227)]=(_0xfd3458=_0x129885[_0x111ba5(0x12b)])==null?this['_name']:_0xfd3458,this[_0x111ba5(0x2e0)]=(_0x38c1e7=_0x129885[_0x111ba5(0x286)])==null?this['_labelPosition']:_0x38c1e7,this[_0x111ba5(0x164)]=(_0x326444=_0x129885[_0x111ba5(0x23e)])==null?this[_0x111ba5(0x164)]:_0x326444,this[_0x111ba5(0x2a4)]=(_0x1c3aec=_0x129885[_0x111ba5(0x39e)])==null?this[_0x111ba5(0x2a4)]:_0x1c3aec,this[_0x111ba5(0x14e)]=(_0x3df44d=_0x129885['labelHorizontalPosition'])==null?this[_0x111ba5(0x14e)]:_0x3df44d,_0x129885[_0x111ba5(0x16e)]!==void 0x0&&(this[_0x111ba5(0x3b4)]=_0x129885[_0x111ba5(0x16e)]),_0x129885[_0x111ba5(0x216)]!==void 0x0&&(this[_0x111ba5(0x3de)]=_0x129885[_0x111ba5(0x216)]),_0x129885[_0x111ba5(0x175)]!==void 0x0&&(this['_offsetY']=_0x129885[_0x111ba5(0x175)]),this[_0x111ba5(0x300)]({'width':_0x129885[_0x111ba5(0x3ed)],'height':_0x129885['height']});}[_0x3e206b(0x197)](_0x2a6afa){const _0x53971d=_0x3e206b;let {row:_0x28e150,column:_0x13c460}=_0x2a6afa;if(_0x28e150>=this[_0x53971d(0x246)][_0x53971d(0x2c6)]&&_0x28e150<=this[_0x53971d(0x246)][_0x53971d(0x362)]&&_0x13c460>=this[_0x53971d(0x246)][_0x53971d(0x408)]&&_0x13c460<=this[_0x53971d(0x246)][_0x53971d(0x128)]){this[_0x53971d(0x30b)]({'hovered':!0x0});return;}this[_0x53971d(0x30b)]({'hovered':!0x1});}[_0x3e206b(0x1f7)](_0x3f2b48){const _0x459f5c=_0x3e206b;this[_0x459f5c(0x277)](),this[_0x459f5c(0x235)]=!0x0,this['_blinkIntervalTimer']=window[_0x459f5c(0x39f)](()=>{const _0x39333d=_0x459f5c;this[_0x39333d(0x235)]=!this[_0x39333d(0x235)],this[_0x39333d(0x200)](!0x0);},0x1f4),this[_0x459f5c(0x159)]=window[_0x459f5c(0x1b8)](()=>{const _0x556c8a=_0x459f5c;this[_0x556c8a(0x277)](),this[_0x556c8a(0x235)]=!0x0,this[_0x556c8a(0x200)](!0x0);},_0x3f2b48*0x3e8);}[_0x3e206b(0x277)](){const _0x1bb5d4=_0x3e206b;this['_blinkIntervalTimer']&&(window[_0x1bb5d4(0x1dc)](this[_0x1bb5d4(0x2cc)]),this['_blinkIntervalTimer']=void 0x0),this[_0x1bb5d4(0x159)]&&(window[_0x1bb5d4(0x2b4)](this[_0x1bb5d4(0x159)]),this[_0x1bb5d4(0x159)]=void 0x0);}['triggerDblclick'](_0x12736b){return!0x1;}[_0x3e206b(0x2a8)](){const _0xc29dc6=_0x3e206b;this[_0xc29dc6(0x277)](),super['dispose']();}[_0x3e206b(0x3fd)](_0x50ba31){const _0xa080cd=_0x3e206b;let _0x44edab=this[_0xa080cd(0x367)],_0x990559=this[_0xa080cd(0x164)];if(this[_0xa080cd(0x3de)]&&!this[_0xa080cd(0x235)]&&(_0x44edab=this[_0xa080cd(0x421)](this[_0xa080cd(0x367)]),_0x990559=this[_0xa080cd(0x164)]?this[_0xa080cd(0x421)](this[_0xa080cd(0x164)]):void 0x0),u[_0xa080cd(0x2fa)]['drawWith'](_0x50ba31,{'width':this[_0xa080cd(0x3ed)],'height':this['height'],'strokeWidth':this[_0xa080cd(0x29b)]||1.5,'stroke':_0x44edab,'evented':!0x1,'fill':_0x990559}),this[_0xa080cd(0x2a2)]||this['_showText']){var _0x50464f;_0x50ba31[_0xa080cd(0x345)]();let _0x22d35e=this['_labelHorizontalPosition']===_0xa080cd(0x1f6)?-de(_0x50ba31,this[_0xa080cd(0x227)]):this[_0xa080cd(0x3ed)];_0x50ba31[_0xa080cd(0x254)](0x1,0x0,0x0,0x1,_0x22d35e,(this['_labelPosition']===_0xa080cd(0x17f)?0x0:-0x14)+((_0x50464f=this['_offsetY'])==null?0x0:_0x50464f)),D['drawWith'](_0x50ba31,{'text':this[_0xa080cd(0x227)],'color':_0x44edab}),_0x50ba31[_0xa080cd(0x291)]();}}[_0x3e206b(0x421)](_0x26f57e){const _0x209680=_0x3e206b;return _0x26f57e[_0x209680(0x35d)]('#')?_0x209680(0x232)+Number['parseInt'](_0x26f57e[_0x209680(0x177)](0x1,0x3),0x10)+',\x20'+Number[_0x209680(0x333)](_0x26f57e[_0x209680(0x177)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x26f57e[_0x209680(0x177)](0x5,0x7),0x10)+',\x200.2)':_0x26f57e[_0x209680(0x35d)](_0x209680(0x280))?_0x26f57e[_0x209680(0x38f)](/[\d.]+\)$/g,_0x209680(0x361)):_0x26f57e[_0x209680(0x35d)]('rgb')?_0x26f57e[_0x209680(0x38f)]('rgb',_0x209680(0x280))[_0x209680(0x38f)](')',',\x200.2)'):_0x26f57e;}};let z=class extends n[_0x3e206b(0x1cf)]{constructor(_0x2fac2b,_0x207325,_0x1c15e2,_0x4cc7d8){const _0x93176f=_0x3e206b;super(),this[_0x93176f(0x318)]=_0x2fac2b,this[_0x93176f(0x38e)]=_0x207325,this['_collabCursorController']=_0x1c15e2,this[_0x93176f(0x324)]=_0x4cc7d8,x(this,_0x93176f(0x213),new Set()),x(this,'_lastPointer',null),x(this,_0x93176f(0x125),null),this[_0x93176f(0x327)]();}[_0x3e206b(0x327)](){const _0x542403=_0x3e206b;this[_0x542403(0x38e)][_0x542403(0x303)][_0x542403(0x40a)]((0x0,a[_0x542403(0x326)])(this[_0x542403(0x224)]),(0x0,a[_0x542403(0x1e6)])(_0x22e4c3=>{const _0x280998=_0x542403;if(_0x22e4c3){let _0x177f22=_0x22e4c3['sheetId'];return(0x0,i[_0x280998(0x11a)])(this[_0x280998(0x2c7)][_0x280998(0x3be)](this['_context']['unitId']),this[_0x280998(0x324)]['currentTheme$'])[_0x280998(0x40a)]((0x0,a[_0x280998(0x29e)])(([_0x50c4f1,_0xe04591])=>{const _0x585c07=_0x280998;let _0x276fd2=new Map();return _0x50c4f1[_0x585c07(0x2d6)]((_0x4efa97,_0x2ec4db)=>{const _0x691065=_0x585c07;if(_0x4efa97[_0x691065(0x127)]===_0x177f22){let _0x5ea47a={..._0x4efa97};_0x5ea47a[_0x691065(0x3c0)]=this[_0x691065(0x324)][_0x691065(0x328)](_0x4efa97[_0x691065(0x3c0)]),_0x276fd2[_0x691065(0x369)](_0x2ec4db,_0x5ea47a);}}),{'skeleton':_0x22e4c3,'cursors':_0x276fd2};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1bbe95,cursors:_0x2ff17e})=>{const _0x5df343=_0x542403;this[_0x5df343(0x343)](),_0x1bbe95&&this[_0x5df343(0x34d)](_0x1bbe95,_0x2ff17e);}),this[_0x542403(0x1b7)](this[_0x542403(0x38e)][_0x542403(0x303)][_0x542403(0x40a)]((0x0,a[_0x542403(0x326)])(this[_0x542403(0x224)]))[_0x542403(0x2e6)](_0x409b5c=>{const _0x8be9c3=_0x542403;var _0x338bab;if(_0x409b5c==null)return;(_0x338bab=this[_0x8be9c3(0x125)])==null||_0x338bab[_0x8be9c3(0x1e8)](),this[_0x8be9c3(0x125)]=null;let {skeleton:_0x4d84c2}=_0x409b5c,{scene:_0x2c6b00}=this[_0x8be9c3(0x318)];this['_pointerMoveDisposable']=_0x2c6b00[_0x8be9c3(0x2d8)][_0x8be9c3(0x32b)]((0x0,n[_0x8be9c3(0x3fb)])(_0x46df2b=>{const _0x3fdb0d=_0x8be9c3;var _0x112881,_0x348ad4;let {offsetX:_0x1fe30b,offsetY:_0x128337}=_0x46df2b,{x:_0x5ee825,y:_0x15ce0a}=_0x2c6b00[_0x3fdb0d(0x14c)](u[_0x3fdb0d(0x378)]['FromArray']([_0x1fe30b,_0x128337])),{scaleX:_0x243f44,scaleY:_0x2f470c}=_0x2c6b00['getAncestorScale'](),_0x5c5dbc=_0x2c6b00[_0x3fdb0d(0x2f9)](u[_0x3fdb0d(0x377)][_0x3fdb0d(0x12a)]),_0x1f712c=_0x2c6b00[_0x3fdb0d(0x379)](u['Vector2'][_0x3fdb0d(0x1ed)]([_0x5ee825,_0x15ce0a]),_0x5c5dbc),_0x2ef05d=_0x4d84c2['getCellPositionByOffset'](_0x1fe30b,_0x128337,_0x243f44,_0x2f470c,_0x1f712c);((_0x112881=this[_0x3fdb0d(0x3f7)])==null?void 0x0:_0x112881[_0x3fdb0d(0x19e)])===_0x2ef05d['column']&&((_0x348ad4=this[_0x3fdb0d(0x3f7)])==null?void 0x0:_0x348ad4['row'])===_0x2ef05d['row']||this[_0x3fdb0d(0x213)][_0x3fdb0d(0x2d6)](_0x28e3b5=>{const _0x168ab7=_0x3fdb0d;_0x28e3b5[_0x168ab7(0x197)](_0x2ef05d);});},0x64));})),this['disposeWithMe']((0x0,n['toDisposable'])(()=>{const _0x57734d=_0x542403;var _0x2efa69;(_0x2efa69=this['_pointerMoveDisposable'])==null||_0x2efa69[_0x57734d(0x1e8)](),this['_pointerMoveDisposable']=null;}));}[_0x3e206b(0x34d)](_0x40c42d,_0x1d0d09){const _0x18daad=_0x3e206b;let _0x1e20a5=this[_0x18daad(0x38e)][_0x18daad(0x145)]();if(!_0x1e20a5)return;let _0xec61eb=this['_getSheetObject']();if(!_0xec61eb)return;this[_0x18daad(0x213)]['forEach'](_0x2e718f=>{const _0x5a290d=_0x18daad;_0x2e718f[_0x5a290d(0x200)]();});let {scene:_0x3f0cad}=_0xec61eb,_0x5b323f=Se(Array[_0x18daad(0x271)](_0x1d0d09[_0x18daad(0x2cd)]()))[_0x18daad(0x29e)](_0x3e7c90=>{const _0x4b1873=_0x18daad;let {color:_0x1d36d6,range:_0x452361,name:_0x311607,selection:_0xf71439,sheetID:_0x17bef}=_0x3e7c90,{startColumn:_0x510428,startRow:_0x2ba9ec,endColumn:_0x17710f,endRow:_0x1c033c}=_0x452361,_0x1acded=(0x0,v[_0x4b1873(0x357)])(_0x2ba9ec,_0x510428,_0x3f0cad,_0x1e20a5),_0x513774=(0x0,v[_0x4b1873(0x357)])(_0x1c033c,_0x17710f,_0x3f0cad,_0x1e20a5),{columnHeaderHeightAndMarginTop:_0x25b5b0}=_0x1e20a5,{startX:_0x2c838,startY:_0x36aad0}=_0x1acded,{endX:_0x2d671a,endY:_0x2679da}=_0x513774,_0x567040=_0x2d671a-_0x2c838,_0x107d21=_0x2679da-_0x36aad0;return new xe(_0x311607,{'labelPosition':_0x36aad0-_0x25b5b0>=0x14?_0x4b1873(0x32a):_0x4b1873(0x17f),'sheetID':_0x17bef,'range':_0x452361,'color':_0x1d36d6,'name':_0x311607,'selection':_0xf71439,'left':_0x2c838,'top':_0x36aad0,'width':_0x567040,'height':_0x107d21,'evented':!0x1,'zIndex':0x1389});});_0x3f0cad['addObjects'](_0x5b323f,0x1),this['_cursors']=new Set(_0x5b323f);}[_0x3e206b(0x343)](){const _0x4c6222=_0x3e206b;var _0x3f5cd7;(_0x3f5cd7=this[_0x4c6222(0x213)])==null||_0x3f5cd7['forEach'](_0x31e276=>_0x31e276[_0x4c6222(0x2a8)]());}[_0x3e206b(0x37d)](){const _0x1d49a7=_0x3e206b;return(0x0,v[_0x1d49a7(0x412)])(this[_0x1d49a7(0x318)][_0x1d49a7(0x3bf)],this['_context']);}};z=C([S(0x1,(0x0,n[_0x3e206b(0x2de)])(v[_0x3e206b(0x2ac)])),S(0x2,(0x0,n[_0x3e206b(0x2de)])(F)),S(0x3,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x35f)]))],z);function Se(_0x5bcf4b){const _0x3ec081=_0x3e206b;let _0x5c71d0=new Map();return _0x5bcf4b[_0x3ec081(0x2d6)](_0x1d4ba8=>{const _0x1f52cd=_0x3ec081;if(_0x5c71d0[_0x1f52cd(0x3fa)](_0x1d4ba8[_0x1f52cd(0x26e)])){let _0x1d459f=_0x5c71d0['get'](_0x1d4ba8[_0x1f52cd(0x26e)]);_0x1d459f[_0x1f52cd(0x12b)]+=',\x20'+_0x1d4ba8[_0x1f52cd(0x12b)];}else _0x5c71d0[_0x1f52cd(0x369)](_0x1d4ba8[_0x1f52cd(0x26e)],_0x1d4ba8);}),Array[_0x3ec081(0x271)](_0x5c71d0[_0x3ec081(0x2cd)]());}let B=class extends n[_0x3e206b(0x1cf)]{constructor(_0x4703e0,_0x482c82,_0x5d9291){const _0x61ec9b=_0x3e206b;super(),this[_0x61ec9b(0x318)]=_0x4703e0,this[_0x61ec9b(0x2c7)]=_0x482c82,this[_0x61ec9b(0x324)]=_0x5d9291,x(this,'_cursors',new Set()),x(this,_0x61ec9b(0x389),!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,_0x61ec9b(0x30a),new Map()),this['_init']();}[_0x3e206b(0x2a8)](){const _0x28cdea=_0x3e206b;this[_0x28cdea(0x343)](),super[_0x28cdea(0x2a8)]();}[_0x3e206b(0x327)](){const _0x18b33e=_0x3e206b;let _0x286c8f=this['_context']['unit'][_0x18b33e(0x403)]['activeSlideId$'],_0x5798fe=this['_collabCursorController'][_0x18b33e(0x3be)](this[_0x18b33e(0x318)][_0x18b33e(0x196)]);this['disposeWithMe']((0x0,n[_0x18b33e(0x297)])((0x0,i['combineLatest'])([_0x5798fe,_0x286c8f,this[_0x18b33e(0x324)][_0x18b33e(0x161)]])[_0x18b33e(0x40a)]((0x0,i['takeUntil'])(this['dispose$']))['subscribe'](([_0x517297,_0x22df53])=>{const _0x1b5332=_0x18b33e;let _0x4d1400=new Map();_0x517297[_0x1b5332(0x2d6)]((_0x3e9f59,_0x2a82be)=>{const _0x1b785a=_0x1b5332;_0x3e9f59[_0x1b785a(0x1fa)]===_0x22df53&&_0x4d1400[_0x1b785a(0x369)](_0x2a82be,{..._0x3e9f59,'color':this['_themeService'][_0x1b785a(0x328)](_0x3e9f59[_0x1b785a(0x3c0)])});}),this[_0x1b5332(0x30a)]=_0x4d1400,this[_0x1b5332(0x1ac)]();})));let _0x26f817=this[_0x18b33e(0x318)][_0x18b33e(0x1ee)];this['disposeWithMe']((0x0,n['toDisposable'])(_0x26f817['addObject$'][_0x18b33e(0x40a)]((0x0,i[_0x18b33e(0x326)])(this[_0x18b33e(0x224)]))[_0x18b33e(0x2e6)](()=>{const _0x5b2b11=_0x18b33e;this[_0x5b2b11(0x41d)]||this['_scheduleRender']();})));}[_0x3e206b(0x1ac)](){const _0x4a1402=_0x3e206b;this['_renderScheduled']||(this[_0x4a1402(0x389)]=!0x0,Promise[_0x4a1402(0x2f6)]()[_0x4a1402(0x251)](()=>{const _0x3c6c97=_0x4a1402;this[_0x3c6c97(0x389)]=!0x1,this[_0x3c6c97(0x39d)]();}));}['_render'](){const _0x1cf4b2=_0x3e206b;var _0x24c142;this[_0x1cf4b2(0x343)]();let _0x35063e=(_0x24c142=this[_0x1cf4b2(0x318)][_0x1cf4b2(0x3bf)][_0x1cf4b2(0x403)][_0x1cf4b2(0x290)]())==null?void 0x0:_0x24c142[_0x1cf4b2(0x40b)]();if(!_0x35063e)return;let _0x2ecbd3=[];if(this['_latestCursors']['forEach']((_0x4c76f2,_0x1f0bb3)=>{const _0x17631c=_0x1cf4b2;_0x4c76f2['subUnitId']===_0x35063e&&_0x4c76f2[_0x17631c(0x2b8)][_0x17631c(0x2d6)](_0x4908db=>{const _0x3e0dac=_0x17631c;let _0x590235=(0x0,_[_0x3e0dac(0x24e)])(_0x4c76f2[_0x3e0dac(0x196)],_0x4c76f2[_0x3e0dac(0x1fa)],_0x4908db),_0x192702=this[_0x3e0dac(0x2b5)](_0x590235);if(!_0x192702)return;let _0x17a570=this[_0x3e0dac(0x405)](_0x192702);_0x2ecbd3[_0x3e0dac(0x313)](new pe(_0x3e0dac(0x287)+_0x1f0bb3+'-'+_0x4908db,{..._0x4c76f2,'left':_0x17a570[_0x3e0dac(0x1f6)],'top':_0x17a570['top'],'width':_0x17a570[_0x3e0dac(0x3ed)],'height':_0x17a570[_0x3e0dac(0x238)],'angle':_0x192702['angle'],'evented':!0x1,'zIndex':O}));});}),_0x2ecbd3['length']===0x0){this['_context'][_0x1cf4b2(0x1ee)][_0x1cf4b2(0x200)](!0x0);return;}this[_0x1cf4b2(0x41d)]=!0x0,this[_0x1cf4b2(0x318)][_0x1cf4b2(0x1ee)]['addObjects'](_0x2ecbd3,O),this[_0x1cf4b2(0x41d)]=!0x1,this[_0x1cf4b2(0x213)]=new Set(_0x2ecbd3),this[_0x1cf4b2(0x318)]['scene'][_0x1cf4b2(0x200)](!0x0);}[_0x3e206b(0x343)](){const _0x155bc6=_0x3e206b;let _0x308255=Array[_0x155bc6(0x271)](this['_cursors']);if(_0x308255[_0x155bc6(0x2ca)]===0x0)return;let _0x54b3ec=this[_0x155bc6(0x318)][_0x155bc6(0x1ee)];'removeObjects'in _0x54b3ec&&typeof _0x54b3ec[_0x155bc6(0x35a)]==_0x155bc6(0x256)?_0x54b3ec['removeObjects'](_0x308255):_0x308255['forEach'](_0x149f05=>{const _0x53c9a8=_0x155bc6;_0x53c9a8(0x201)in _0x54b3ec&&typeof _0x54b3ec[_0x53c9a8(0x201)]==_0x53c9a8(0x256)?_0x54b3ec['removeObject'](_0x149f05):_0x149f05[_0x53c9a8(0x2a8)]();}),this[_0x155bc6(0x213)][_0x155bc6(0x32d)](),_0x54b3ec[_0x155bc6(0x200)](!0x0);}[_0x3e206b(0x2b5)](_0x18390b){const _0x1b0c4f=_0x3e206b;var _0xcae7f7,_0x56ceb2,_0x2e0fe0;let _0x377fbb=this[_0x1b0c4f(0x318)][_0x1b0c4f(0x1ee)];return(_0xcae7f7=(_0x56ceb2=(_0x2e0fe0=_0x377fbb[_0x1b0c4f(0x14d)])==null?void 0x0:_0x2e0fe0['call'](_0x377fbb,_0x18390b))==null?_0x377fbb['getObject'](_0x18390b):_0x56ceb2)==null?null:_0xcae7f7;}['_getObjectBounds'](_0x48f902){const _0xbcf56d=_0x3e206b;var _0x6ec4e8,_0x139456;let _0x129ac8=_0x48f902;return(_0x6ec4e8=(_0x139456=_0x129ac8[_0xbcf56d(0x364)])==null?void 0x0:_0x139456[_0xbcf56d(0x293)](_0x129ac8))==null?{'left':_0x48f902[_0xbcf56d(0x1f6)],'top':_0x48f902['top'],'width':_0x48f902[_0xbcf56d(0x3ed)],'height':_0x48f902[_0xbcf56d(0x238)]}:_0x6ec4e8;}};B=C([S(0x1,(0x0,n[_0x3e206b(0x2de)])(F)),S(0x2,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x35f)]))],B);let V=class extends n[_0x3e206b(0x3a2)]{constructor(_0x23ce56,_0x3c01b2,_0x306b6b,_0x4634c2,_0x1208e4,_0x10864b){const _0x9bbf70=_0x3e206b;super(),this[_0x9bbf70(0x316)]=_0x23ce56,this[_0x9bbf70(0x349)]=_0x3c01b2,this[_0x9bbf70(0x15a)]=_0x306b6b,this[_0x9bbf70(0x3c1)]=_0x4634c2,this[_0x9bbf70(0x385)]=_0x1208e4,this[_0x9bbf70(0x2b3)]=_0x10864b,this[_0x9bbf70(0x341)](),this[_0x9bbf70(0x325)]();}[_0x3e206b(0x341)](){const _0x10b259=_0x3e206b;this[_0x10b259(0x1b7)](this[_0x10b259(0x316)][_0x10b259(0x335)](()=>{const _0xc2268b=_0x10b259;if(this['_localCacheService']['saveTaskMap'][_0xc2268b(0x3a3)])return this[_0xc2268b(0x2b3)]['t'](_0xc2268b(0x1d5));}));}['_initEvent'](){const _0x5003f3=_0x3e206b;this[_0x5003f3(0x1b7)](this[_0x5003f3(0x15a)][_0x5003f3(0x33d)][_0x5003f3(0x2e6)](_0x5eb4a0=>{const _0x48a739=_0x5003f3;_0x5eb4a0['id']===t['CollaborationUIEventId'][_0x48a739(0x284)]&&this[_0x48a739(0x3c1)][_0x48a739(0x158)]({'type':o[_0x48a739(0x15c)]['Warning'],'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x204))}),_0x5eb4a0['id']===t['CollaborationUIEventId'][_0x48a739(0x383)]&&this[_0x48a739(0x3c1)][_0x48a739(0x158)]({'type':o['MessageType'][_0x48a739(0x353)],'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x142))}),_0x5eb4a0['id']===t[_0x48a739(0x391)][_0x48a739(0x2d3)]&&this[_0x48a739(0x385)][_0x48a739(0x158)]({'title':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x27e)),'content':this['_localeService']['t'](_0x48a739(0x359)),'type':'error','duration':0x0}),_0x5eb4a0['id']===t['CollaborationUIEventId']['CONFLICT']&&this[_0x48a739(0x385)][_0x48a739(0x158)]({'title':this['_localeService']['t'](_0x48a739(0x392)),'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x1d9)),'type':_0x48a739(0x3c7),'duration':0x0}),_0x5eb4a0['id']===t[_0x48a739(0x391)]['JOIN_ROOM_FAILED']&&this[_0x48a739(0x3c1)][_0x48a739(0x158)]({'type':o['MessageType'][_0x48a739(0x353)],'content':this[_0x48a739(0x2b3)]['t'](_0x5eb4a0[_0x48a739(0x2ee)]||'')}),_0x5eb4a0['id']===t['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x48a739(0x158)]({'type':o[_0x48a739(0x15c)]['Warning'],'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x179))}),_0x5eb4a0['id']===t['CollaborationUIEventId'][_0x48a739(0x25f)]&&this[_0x48a739(0x3c1)][_0x48a739(0x158)]({'type':o[_0x48a739(0x15c)]['Error'],'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x30e))}),_0x5eb4a0['id']===t[_0x48a739(0x391)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x48a739(0x3c1)][_0x48a739(0x158)]({'type':o['MessageType']['Error'],'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x29d))});}));}};V=C([S(0x0,r[_0x3e206b(0x3bb)]),S(0x1,t[_0x3e206b(0x3d3)]),S(0x2,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x281)])),S(0x3,r['IMessageService']),S(0x4,r[_0x3e206b(0x338)]),S(0x5,(0x0,n['Inject'])(n[_0x3e206b(0x11d)]))],V);const H=(0x0,n[_0x3e206b(0x3a4)])(_0x3e206b(0x23c));let U=class extends n['RxDisposable']{constructor(_0x4d15f0,_0x23f8ea,_0x21a900,_0x37d741,_0x284fd0){const _0x51e987=_0x3e206b;super(),this[_0x51e987(0x130)]=_0x4d15f0,this[_0x51e987(0x360)]=_0x23f8ea,this[_0x51e987(0x38a)]=_0x21a900,this[_0x51e987(0x1e2)]=_0x37d741,_0x284fd0?_0x284fd0[_0x51e987(0x3fc)]()[_0x51e987(0x251)](()=>this['_init']()):(this['_logService'][_0x51e987(0x119)](_0x51e987(0x11e),_0x51e987(0x2a9)),this[_0x51e987(0x327)]());}async['_init'](){const _0x1429b9=_0x3e206b;let _0x3dd306=this[_0x1429b9(0x130)][_0x1429b9(0x3b7)](_0x1429b9(0x3bf)),_0x1252b9=this[_0x1429b9(0x130)][_0x1429b9(0x3b7)]('type'),_0x29466f=this[_0x1429b9(0x130)][_0x1429b9(0x3b7)]('subunit');if(!_0x3dd306||!_0x1252b9){this[_0x1429b9(0x360)][_0x1429b9(0x119)](_0x1429b9(0x11e),_0x1429b9(0x272));return;}let _0x386a83=await this['_dataLoaderService'][_0x1429b9(0x384)](_0x3dd306,Number(_0x1252b9),_0x29466f);_0x386a83&&_0x386a83 instanceof n[_0x1429b9(0x120)]&&this['_setupSubUnitSync'](_0x386a83);}async[_0x3e206b(0x32c)](_0x460c1f){const _0x3c7be1=_0x3e206b;await this[_0x3c7be1(0x413)](_0x460c1f),_0x460c1f[_0x3c7be1(0x34f)][_0x3c7be1(0x40a)]((0x0,i['takeUntil'])(this[_0x3c7be1(0x224)]))[_0x3c7be1(0x2e6)](_0x1974b2=>{const _0x46bf60=_0x3c7be1;_0x1974b2&&this[_0x46bf60(0x239)](_0x1974b2);}),this[_0x3c7be1(0x130)]['urlChange$'][_0x3c7be1(0x40a)]((0x0,i['takeUntil'])(this[_0x3c7be1(0x224)]))['subscribe'](()=>this[_0x3c7be1(0x413)](_0x460c1f));}[_0x3e206b(0x239)](_0x294f3b,_0x2f3728=!0x1){const _0x3172f9=_0x3e206b;let _0x3db689=this['_urlService'][_0x3172f9(0x3b7)](_0x3172f9(0x17a));_0x294f3b['getSheetId']()!==_0x3db689&&this['_urlService'][_0x3172f9(0x1df)](_0x3172f9(0x17a),_0x294f3b['getSheetId'](),_0x2f3728);}async[_0x3e206b(0x413)](_0x4e9948){const _0x253ac1=_0x3e206b;var _0x1feaf9;let _0x49d2ce=this[_0x253ac1(0x130)][_0x253ac1(0x3b7)]('subunit');if(!_0x49d2ce||!_0x4e9948[_0x253ac1(0x289)](_0x49d2ce)){let _0x166e1=_0x4e9948['getUnhiddenWorksheets']()[0x0],_0x535ecc=_0x4e9948['getSheetBySheetId'](_0x166e1);if(!_0x535ecc)return;this[_0x253ac1(0x239)](_0x535ecc,!0x0),await this[_0x253ac1(0x38a)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x4e9948['getUnitId'](),'subUnitId':_0x166e1});return;}((_0x1feaf9=_0x4e9948[_0x253ac1(0x2f8)]())==null?void 0x0:_0x1feaf9[_0x253ac1(0x395)]())!==_0x49d2ce&&await this[_0x253ac1(0x38a)]['executeCommand'](g[_0x253ac1(0x1b9)]['id'],{'unitId':_0x4e9948[_0x253ac1(0x187)](),'subUnitId':_0x49d2ce});}};U=C([S(0x0,H),S(0x1,n[_0x3e206b(0x2c3)]),S(0x2,n[_0x3e206b(0x1e4)]),S(0x3,(0x0,n['Inject'])(t[_0x3e206b(0x296)])),S(0x4,(0x0,n[_0x3e206b(0x172)])(ee[_0x3e206b(0x2f7)]))],U);let W=class{constructor(_0x2e8e4a,_0x331497){const _0x31ff12=_0x3e206b;this['_transformService']=_0x2e8e4a,this[_0x31ff12(0x230)]=_0x331497;}['transformIMECache'](_0x35e47e){const _0x32a2fb=_0x3e206b;this['_transformUndoRedoStack'](_0x35e47e),this[_0x32a2fb(0x3bc)](_0x35e47e);}[_0x3e206b(0x1f9)](_0x18257c){const _0x17aa87=_0x3e206b;let {unitID:_0x2ea439}=_0x18257c,{redoCache:_0x39b5cb}=this[_0x17aa87(0x230)][_0x17aa87(0x1fc)](_0x2ea439)['with'](f[_0x17aa87(0x176)])[_0x17aa87(0x282)]();if(_0x39b5cb[_0x17aa87(0x2ca)]===0x0)return _0x18257c;let _0x5c07d9=n['Tools'][_0x17aa87(0x11c)](_0x18257c[_0x17aa87(0x118)][0x0]);for(let _0x13a7dd=0x0;_0x13a7dd<_0x39b5cb[_0x17aa87(0x2ca)];_0x13a7dd++){let _0x138e00={'id':_0x17aa87(0x19f),'params':{..._0x39b5cb[_0x13a7dd]}},_0x5920de=this[_0x17aa87(0x1bb)][_0x17aa87(0x250)](_0x5c07d9,_0x138e00,!0x1);if((0x0,p[_0x17aa87(0x1b2)])(_0x5920de))throw _0x5920de['error'];_0x5c07d9=_0x5920de[_0x17aa87(0x274)];}return{...n[_0x17aa87(0x249)][_0x17aa87(0x11c)](_0x18257c),'mutations':[_0x5c07d9]};}[_0x3e206b(0x1a6)](_0x426f65){const _0x570ab1=_0x3e206b;let {unitID:_0x5effb5}=_0x426f65,_0x5616a1=this[_0x570ab1(0x230)][_0x570ab1(0x1fc)](_0x5effb5)[_0x570ab1(0x131)](f[_0x570ab1(0x176)]),{undoCache:_0x13b40e,redoCache:_0x19074f}=_0x5616a1[_0x570ab1(0x282)]();if(_0x13b40e[_0x570ab1(0x2ca)]===0x0||_0x19074f[_0x570ab1(0x2ca)]===0x0)return;let _0xafe6df=[],_0x43f94e=[],_0x1dc1f8=n[_0x570ab1(0x249)]['deepClone'](_0x426f65[_0x570ab1(0x118)][0x0]),_0x62a211=n[_0x570ab1(0x249)][_0x570ab1(0x11c)](_0x426f65[_0x570ab1(0x118)][0x0]);for(let _0x5367cc=_0x13b40e[_0x570ab1(0x2ca)]-0x1;_0x5367cc>=0x0;_0x5367cc--){let _0x367776={'id':_0x570ab1(0x19f),'params':{..._0x13b40e[_0x5367cc]}},_0x2c4272={'id':_0x570ab1(0x19f),'params':{..._0x19074f[_0x5367cc]}},_0x2706fb=this[_0x570ab1(0x1bb)][_0x570ab1(0x250)](_0x1dc1f8,_0x367776,!0x1),_0x474943=this[_0x570ab1(0x1bb)][_0x570ab1(0x250)](_0x62a211,_0x2c4272,!0x1);if((0x0,p['isTransformMutationFailure'])(_0x2706fb))throw _0x2706fb[_0x570ab1(0x3c7)];if((0x0,p['isTransformMutationFailure'])(_0x474943))throw _0x474943[_0x570ab1(0x3c7)];_0xafe6df[_0x570ab1(0x17c)](_0x2706fb[_0x570ab1(0x279)][_0x570ab1(0x1fe)]),_0x43f94e[_0x570ab1(0x17c)](_0x474943[_0x570ab1(0x279)][_0x570ab1(0x1fe)]),_0x1dc1f8=_0x2706fb['m1Prime'],_0x62a211=_0x474943[_0x570ab1(0x274)];}_0x5616a1['setUndoRedoMutationParamsCache']({'undoCache':_0xafe6df,'redoCache':_0x43f94e});}[_0x3e206b(0x3bc)](_0x24fa42){const _0x401a76=_0x3e206b;let {unitID:_0x6d396d}=_0x24fa42,_0x2cc496=this[_0x401a76(0x230)][_0x401a76(0x1fc)](_0x6d396d)[_0x401a76(0x131)](f[_0x401a76(0x176)]),_0x59be2a=_0x2cc496['getActiveRange']();if(_0x59be2a==null)return;let _0x4fa9db=[{'id':_0x401a76(0x19f),'params':{'unitId':_0x24fa42[_0x401a76(0x3df)],'actions':null,'textRanges':[_0x59be2a]}}],_0x5c723a=this[_0x401a76(0x1bb)][_0x401a76(0x13e)](_0x24fa42,_0x4fa9db);if(!(0x0,p[_0x401a76(0x1e3)])(_0x5c723a))throw _0x5c723a[_0x401a76(0x3c7)];let _0x20e0a5=_0x5c723a[_0x401a76(0x279)][0x0]['params'][_0x401a76(0x27b)];Array['isArray'](_0x20e0a5)&&_0x20e0a5[_0x401a76(0x2ca)]&&_0x2cc496[_0x401a76(0x124)](_0x20e0a5[0x0]);}};W=C([S(0x0,p[_0x3e206b(0x2c1)]),S(0x1,u['IRenderManagerService'])],W);let G=class{constructor(_0xae6a58,_0x3e225b,_0x342d87){const _0xb88516=_0x3e206b;this[_0xb88516(0x141)]=_0xae6a58,this[_0xb88516(0x1bb)]=_0x3e225b,this[_0xb88516(0x1a4)]=_0x342d87;}[_0x3e206b(0x36e)](_0x223bb1){const _0xd83360=_0x3e206b;this[_0xd83360(0x15b)](_0x223bb1);}[_0x3e206b(0x1f9)](_0x489aa9){const _0x44b4fd=_0x3e206b;let {unitID:_0x36ccc2}=_0x489aa9,{collaboration:_0x6523a0}=this[_0x44b4fd(0x1a4)][_0x44b4fd(0x20c)](_0x36ccc2);if(_0x6523a0[_0x44b4fd(0x2ca)]===0x0)return _0x489aa9;let _0x355f9c=n[_0x44b4fd(0x249)][_0x44b4fd(0x11c)](_0x489aa9[_0x44b4fd(0x118)][0x0]);for(let _0x408c6c=0x0;_0x408c6c<_0x6523a0[_0x44b4fd(0x2ca)];_0x408c6c++){let _0x243e67={'id':_0x44b4fd(0x19f),'params':{'unitId':_0x6523a0[_0x408c6c][_0x44b4fd(0x196)],..._0x6523a0[_0x408c6c][_0x44b4fd(0x1be)]}},_0x4837c7=this[_0x44b4fd(0x1bb)][_0x44b4fd(0x250)](_0x355f9c,_0x243e67,!0x1);if((0x0,p[_0x44b4fd(0x1b2)])(_0x4837c7))throw _0x4837c7[_0x44b4fd(0x3c7)];_0x355f9c=_0x4837c7[_0x44b4fd(0x274)];}return{...n[_0x44b4fd(0x249)][_0x44b4fd(0x11c)](_0x489aa9),'mutations':[_0x355f9c]};}['_transformHistoryAndStateStack'](_0x3c378b){const _0x56db41=_0x3e206b;let {unitID:_0x500459}=_0x3c378b,{history:_0xf3ce92,collaboration:_0xa49f0f}=this[_0x56db41(0x1a4)][_0x56db41(0x20c)](_0x500459);if(_0xf3ce92[_0x56db41(0x2ca)]===0x0&&_0xa49f0f[_0x56db41(0x2ca)]===0x0)return;let _0x2923cd=[],_0x5de908=[],_0x864b9f=n[_0x56db41(0x249)][_0x56db41(0x11c)](_0x3c378b[_0x56db41(0x118)][0x0]),_0x3c1055=n[_0x56db41(0x249)]['deepClone'](_0x3c378b[_0x56db41(0x118)][0x0]);for(let _0x2922b7=_0xf3ce92[_0x56db41(0x2ca)]-0x1;_0x2922b7>=0x0;_0x2922b7--){let _0x33bd37={'id':_0x56db41(0x19f),'params':{'unitId':_0xf3ce92[_0x2922b7][_0x56db41(0x196)],..._0xf3ce92[_0x2922b7]['undoState']}},_0x15569e={'id':_0x56db41(0x19f),'params':{'unitId':_0xf3ce92[_0x2922b7][_0x56db41(0x196)],..._0xf3ce92[_0x2922b7][_0x56db41(0x1be)]}},_0x54c753=this[_0x56db41(0x1bb)][_0x56db41(0x250)](_0x864b9f,_0x33bd37,!0x1),_0x2899a0=this[_0x56db41(0x1bb)][_0x56db41(0x250)](_0x3c1055,_0x15569e,!0x1);if((0x0,p[_0x56db41(0x1b2)])(_0x54c753))throw _0x54c753[_0x56db41(0x3c7)];if((0x0,p[_0x56db41(0x1b2)])(_0x2899a0))throw _0x2899a0['error'];_0x2923cd['unshift']({..._0xf3ce92[_0x2922b7],'undoState':_0x54c753[_0x56db41(0x279)][_0x56db41(0x1fe)],'redoState':_0x2899a0['m2Prime'][_0x56db41(0x1fe)]}),_0x864b9f=_0x54c753['m1Prime'],_0x3c1055=_0x2899a0['m1Prime'];}_0x864b9f=n[_0x56db41(0x249)][_0x56db41(0x11c)](_0x3c378b[_0x56db41(0x118)][0x0]),_0x3c1055=n[_0x56db41(0x249)]['deepClone'](_0x3c378b[_0x56db41(0x118)][0x0]);for(let _0x8f3d84=_0xa49f0f[_0x56db41(0x2ca)]-0x1;_0x8f3d84>=0x0;_0x8f3d84--){let _0x3cb6ba={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xa49f0f[_0x8f3d84][_0x56db41(0x196)],..._0xa49f0f[_0x8f3d84]['undoState']}},_0x37db63={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xa49f0f[_0x8f3d84][_0x56db41(0x196)],..._0xa49f0f[_0x8f3d84][_0x56db41(0x1be)]}},_0x2654ba=this[_0x56db41(0x1bb)][_0x56db41(0x250)](_0x864b9f,_0x3cb6ba,!0x1),_0x162957=this[_0x56db41(0x1bb)][_0x56db41(0x250)](_0x3c1055,_0x37db63,!0x1);if((0x0,p[_0x56db41(0x1b2)])(_0x2654ba))throw _0x2654ba[_0x56db41(0x3c7)];if((0x0,p[_0x56db41(0x1b2)])(_0x162957))throw _0x162957['error'];_0x5de908['unshift']({..._0xa49f0f[_0x8f3d84],'undoState':_0x2654ba[_0x56db41(0x279)][_0x56db41(0x1fe)],'redoState':_0x162957[_0x56db41(0x279)][_0x56db41(0x1fe)]}),_0x864b9f=_0x2654ba[_0x56db41(0x274)],_0x3c1055=_0x162957[_0x56db41(0x274)];}this[_0x56db41(0x1a4)][_0x56db41(0x217)](_0x500459,{'history':_0x2923cd,'collaboration':_0x5de908});}};G=C([S(0x0,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x244)])),S(0x1,p[_0x3e206b(0x2c1)]),S(0x2,(0x0,n['Inject'])(m['DocStateChangeManagerService']))],G);let K=class{constructor(_0x1d9309,_0xfb3e60){const _0x4afdef=_0x3e206b;this[_0x4afdef(0x141)]=_0x1d9309,this[_0x4afdef(0x1bb)]=_0xfb3e60;}[_0x3e206b(0x417)](_0x29dbe5){const _0x207b7b=_0x3e206b;var _0x34beb1;let _0x53535f=this[_0x207b7b(0x141)][_0x207b7b(0x28b)](m[_0x207b7b(0x3e2)]),_0xdfd39c=(_0x34beb1=_0x53535f[_0x207b7b(0x2cb)]())==null?[]:_0x34beb1;if(_0xdfd39c[_0x207b7b(0x2ca)]===0x0)return;let _0x57657b=_0x29dbe5['unitID'],_0x14aeed=[{'id':_0x207b7b(0x19f),'params':{'unitId':_0x57657b,'actions':null,'textRanges':_0xdfd39c}}],_0x368f6e=this[_0x207b7b(0x1bb)]['transformMutationsWithChangeset'](_0x29dbe5,_0x14aeed);if(!(0x0,p[_0x207b7b(0x1e3)])(_0x368f6e))throw _0x368f6e[_0x207b7b(0x3c7)];let _0x5dc127=_0x368f6e[_0x207b7b(0x279)][0x0][_0x207b7b(0x1fe)][_0x207b7b(0x27b)];Array[_0x207b7b(0x1ab)](_0x5dc127)&&_0x5dc127[_0x207b7b(0x2ca)]&&_0x53535f[_0x207b7b(0x310)](_0x5dc127,{'unitId':_0x57657b,'subUnitId':_0x57657b},!0x1);}};K=C([S(0x0,(0x0,n[_0x3e206b(0x2de)])(n['Injector'])),S(0x1,p[_0x3e206b(0x2c1)])],K);let q=class extends n['Disposable']{constructor(_0x1cd4e0,_0x465593,_0x2c022d,_0xe8f54,_0x1bd8be,_0x35a6c8,_0x590490){const _0x102355=_0x3e206b;super(),this[_0x102355(0x38d)]=_0x1cd4e0,this[_0x102355(0x162)]=_0x465593,this[_0x102355(0x16d)]=_0x2c022d,this[_0x102355(0x1cb)]=_0xe8f54,this[_0x102355(0x39a)]=_0x1bd8be,this['_messageService']=_0x35a6c8,this['_localeService']=_0x590490,x(this,_0x102355(0x3f9),new i['BehaviorSubject'](t['CollaborationStatus'][_0x102355(0x12d)])),this[_0x102355(0x2db)]();}['_initEntityListener'](){const _0x5f18d3=_0x3e206b;this[_0x5f18d3(0x1b7)](this[_0x5f18d3(0x38d)]['entityInit$'][_0x5f18d3(0x2e6)](_0x35096e=>{const _0x42f8ce=_0x5f18d3;_0x35096e instanceof t[_0x42f8ce(0x149)]&&_0x35096e[_0x42f8ce(0x2b0)]({'onTransformIME':_0x4b4643=>this[_0x42f8ce(0x162)][_0x42f8ce(0x2ae)](_0x4b4643),'onTransformState':_0x39ee09=>this[_0x42f8ce(0x16d)][_0x42f8ce(0x36e)](_0x39ee09),'onTransformSelections':_0x3fa95b=>this[_0x42f8ce(0x1cb)]['transformSelections'](_0x3fa95b),'onSyncEditingCollabCursor':_0x14a27e=>this['_docSyncEditingCollabCursorService'][_0x42f8ce(0x37a)](_0x14a27e),'onTransformRemoteChangesetByIMECache':_0x4043de=>this[_0x42f8ce(0x162)][_0x42f8ce(0x1f9)](_0x4043de),'onTransformRemoteChangesetByStateCache':_0x2a15c0=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x2a15c0)});}));}};q=C([S(0x0,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x2bf)])),S(0x1,(0x0,n[_0x3e206b(0x2de)])(W)),S(0x2,(0x0,n['Inject'])(G)),S(0x3,(0x0,n['Inject'])(K)),S(0x4,(0x0,n[_0x3e206b(0x2de)])(j)),S(0x5,r[_0x3e206b(0x3ee)]),S(0x6,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x11d)]))],q);let J=class extends n[_0x3e206b(0x3a2)]{constructor(_0x3d7fd5,_0x1a43bc,_0x2ce90c,_0x15acfa){const _0x215ec1=_0x3e206b;super(),this[_0x215ec1(0x141)]=_0x3d7fd5,this[_0x215ec1(0x18f)]=_0x1a43bc,this[_0x215ec1(0x360)]=_0x2ce90c,this[_0x215ec1(0x373)]=_0x15acfa,x(this,_0x215ec1(0x3af),void 0x0),this[_0x215ec1(0x327)]();}[_0x3e206b(0x327)](){const _0x18f2ec=_0x3e206b;this[_0x18f2ec(0x2c9)](),this[_0x18f2ec(0x28d)](),this[_0x18f2ec(0x2ba)](),this[_0x18f2ec(0x23b)]();}[_0x3e206b(0x23b)](){const _0x3dd7e9=_0x3e206b;this[_0x3dd7e9(0x1b7)](this[_0x3dd7e9(0x373)]['socket$']['subscribe'](_0x254e51=>{const _0x300bd6=_0x3dd7e9;this[_0x300bd6(0x3af)]=_0x254e51==null?void 0x0:_0x254e51['memberID'];}));}[_0x3e206b(0x2c9)](){const _0x204368=_0x3e206b;let _0x1080bf=_0x5cd29f=>{const _0x4041c5=_0x1029;var _0x4a5a7f;this[_0x4041c5(0x133)](_0x4041c5(0x3c7),_0x4041c5(0x189)+_0x5cd29f['message']+_0x4041c5(0x409)+_0x5cd29f[_0x4041c5(0x396)]+':'+_0x5cd29f[_0x4041c5(0x1e5)]+':'+_0x5cd29f[_0x4041c5(0x401)]+'\x0a'+(((_0x4a5a7f=_0x5cd29f[_0x4041c5(0x3c7)])==null?void 0x0:_0x4a5a7f[_0x4041c5(0x40e)])||''));};window['addEventListener'](_0x204368(0x3c7),_0x1080bf),this[_0x204368(0x1b7)](()=>{const _0x16ad0f=_0x204368;window[_0x16ad0f(0x21d)](_0x16ad0f(0x3c7),_0x1080bf);});}['_initUnhandledRejectionListener'](){const _0x5cc308=_0x3e206b;let _0x2a9a5b=_0x3a063c=>{const _0x2f8988=_0x1029;this[_0x2f8988(0x133)](_0x2f8988(0x3c7),_0x2f8988(0x3e4)+_0x3a063c[_0x2f8988(0x397)]);};window[_0x5cc308(0x332)](_0x5cc308(0x255),_0x2a9a5b),this[_0x5cc308(0x1b7)](()=>{const _0xd04dd6=_0x5cc308;window[_0xd04dd6(0x21d)](_0xd04dd6(0x255),_0x2a9a5b);});}['_monkeyPatchLogService'](){const _0x444b01=_0x3e206b;let _0x43f1f8=this[_0x444b01(0x360)]['error'][_0x444b01(0x2df)](this[_0x444b01(0x360)]);this[_0x444b01(0x360)][_0x444b01(0x3c7)]=(..._0x487d8b)=>{const _0x2cf8a6=_0x444b01;let _0x3980fe=_0x487d8b[_0x2cf8a6(0x29e)](_0x1143be=>_0x1143be instanceof Error?_0x1143be['message']+'\x0a'+_0x1143be[_0x2cf8a6(0x40e)]:String(_0x1143be))[_0x2cf8a6(0x262)]('\x20');this['_uploadLog'](_0x2cf8a6(0x3c7),_0x2cf8a6(0x1c8)+_0x3980fe),_0x43f1f8(..._0x487d8b);},this[_0x444b01(0x1b7)](()=>{const _0x339151=_0x444b01;this[_0x339151(0x360)][_0x339151(0x3c7)]=_0x43f1f8;});}['_uploadLog'](_0x3ac8cb,_0x50f722){const _0x408059=_0x3e206b;try{let _0x4367f7={'userId':this[_0x408059(0x3af)],'logLabel':_0x3ac8cb,'content':_0x50f722};this[_0x408059(0x18f)]['post'](_0x408059(0x337),{'body':_0x4367f7})['catch'](()=>{});}catch{}}};J=C([S(0x0,(0x0,n['Inject'])(n[_0x3e206b(0x244)])),S(0x1,(0x0,n[_0x3e206b(0x2de)])(d[_0x3e206b(0x1b1)])),S(0x2,n['ILogService']),S(0x3,(0x0,n['Inject'])(t[_0x3e206b(0x167)]))],J);function Ce({state$:_0x1a90a8,interactionBlocked$:_0x2cc6c6}){const _0xd37d05=_0x3e206b;return(0x0,l['jsxs'])(l[_0xd37d05(0x1da)],{'children':[(0x0,r['useObservable'])(_0x2cc6c6,!0x1,!0x0)&&(0x0,l[_0xd37d05(0x40c)])(_0xd37d05(0x3d7),{'data-u-comp':_0xd37d05(0x260),'aria-hidden':!0x0,'className':'univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait'}),(0x0,l[_0xd37d05(0x40c)])(we,{'state$':_0x1a90a8})]});}function we({state$:_0x308758}){const _0x16cba7=_0x3e206b;let _0x31173d=(0x0,r[_0x16cba7(0x3a8)])(_0x308758,null,!0x0);return _0x31173d?(0x0,l[_0x16cba7(0x38c)])(_0x16cba7(0x3d7),{'data-u-comp':_0x16cba7(0x1f2),'role':_0x16cba7(0x155),'className':_0x16cba7(0x188),'children':[(0x0,l[_0x16cba7(0x40c)])(s[_0x16cba7(0x1b6)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,l[_0x16cba7(0x40c)])(_0x16cba7(0x231),{'children':_0x31173d['content']}),(0x0,l[_0x16cba7(0x40c)])(o[_0x16cba7(0x27c)],{'size':'small','variant':_0x16cba7(0x299),'onClick':()=>window[_0x16cba7(0x146)][_0x16cba7(0x19b)](),'children':_0x31173d[_0x16cba7(0x1a5)]})]}):null;}const Y=_0x3e206b(0x315);let X=class extends n['Disposable']{constructor(_0x4e0f4d,_0x51a14d,_0x2f51bc,_0x1530f0,_0x166134,_0x2b882e,_0x1ba0b7,_0x4ce2d1){const _0x199ec2=_0x3e206b;super(),this['_snapshotLoadingService']=_0x4e0f4d,this[_0x199ec2(0x3c1)]=_0x51a14d,this[_0x199ec2(0x2b3)]=_0x2f51bc,this[_0x199ec2(0x141)]=_0x1530f0,this[_0x199ec2(0x12f)]=_0x166134,this['_shortcutService']=_0x1ba0b7,this[_0x199ec2(0x130)]=_0x4ce2d1,x(this,_0x199ec2(0x156),new i[(_0x199ec2(0x19a))](null)),x(this,_0x199ec2(0x2c5),new i[(_0x199ec2(0x19a))](!0x1)),x(this,'_messageIds',new Set()),x(this,'_blockProgressWatches',new Map()),x(this,_0x199ec2(0x275),new Set()),x(this,'_latestStates',new Map()),x(this,_0x199ec2(0x1e0),void 0x0),x(this,_0x199ec2(0x209),void 0x0),x(this,_0x199ec2(0x2b9),void 0x0),x(this,_0x199ec2(0x138),this[_0x199ec2(0x156)][_0x199ec2(0x1fb)]());let _0x18bea1=()=>(0x0,c[_0x199ec2(0x15e)])(Ce,{'state$':this['timeoutState$'],'interactionBlocked$':this['_interactionBlocked$']});this[_0x199ec2(0x1b7)](_0x2b882e[_0x199ec2(0x3a6)](r[_0x199ec2(0x3e5)]['GLOBAL'],()=>(0x0,r[_0x199ec2(0x16a)])(_0x18bea1,this[_0x199ec2(0x141)]))),this[_0x199ec2(0x1b7)](this[_0x199ec2(0x394)][_0x199ec2(0x1d7)][_0x199ec2(0x2e6)](_0x356f30=>{const _0xea4003=_0x199ec2;this[_0xea4003(0x258)]=_0x356f30,_0x356f30[_0xea4003(0x2d6)](_0x48a8e1=>{const _0x1ff44d=_0xea4003;this['_updateMessage'](_0x48a8e1),this[_0x1ff44d(0x19d)](_0x48a8e1);});})),this[_0x199ec2(0x1b7)](this['_urlService'][_0x199ec2(0x283)][_0x199ec2(0x2e6)](()=>{const _0x3b54ed=_0x199ec2;this[_0x3b54ed(0x258)][_0x3b54ed(0x2d6)](_0x2bd9d3=>{const _0x1f99df=_0x3b54ed;this[_0x1f99df(0x2d4)](_0x2bd9d3),this[_0x1f99df(0x19d)](_0x2bd9d3);});}));}[_0x3e206b(0x2a8)](){const _0x131770=_0x3e206b;var _0x5b7cb0;if(this[_0x131770(0x1ce)]['forEach'](_0x351035=>this[_0x131770(0x3c1)][_0x131770(0x3bd)](_0x351035)),this[_0x131770(0x1ce)][_0x131770(0x32d)](),this[_0x131770(0x1e0)]){var _0x2d7cf7;(_0x2d7cf7=this[_0x131770(0x2b9)])==null||_0x2d7cf7['hide'](this[_0x131770(0x1e0)]);}this['_previewUnitId']=void 0x0,this[_0x131770(0x30c)][_0x131770(0x2d6)](({timeoutId:_0x381c8d})=>clearTimeout(_0x381c8d)),this[_0x131770(0x30c)]['clear'](),(_0x5b7cb0=this[_0x131770(0x209)])==null||_0x5b7cb0[_0x131770(0x2a8)](),this[_0x131770(0x209)]=void 0x0,this[_0x131770(0x156)]['complete'](),this['_interactionBlocked$'][_0x131770(0x347)](),super['dispose']();}[_0x3e206b(0x2d4)](_0x5d6449){const _0x3ec64a=_0x3e206b;let _0x3f8bd5=''+Y+_0x5d6449[_0x3ec64a(0x196)];if(_0x5d6449[_0x3ec64a(0x1ba)]===p[_0x3ec64a(0x1d8)][_0x3ec64a(0x154)]){if(this[_0x3ec64a(0x3e8)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x3e6)](_0x5d6449[_0x3ec64a(0x196)])&&this[_0x3ec64a(0x1e0)]===_0x5d6449[_0x3ec64a(0x196)]){this[_0x3ec64a(0x3c1)][_0x3ec64a(0x158)]({'id':_0x3f8bd5,'type':o[_0x3ec64a(0x15c)]['Loading'],'duration':0x1/0x0,'content':this[_0x3ec64a(0x2b3)]['t'](_0x3ec64a(0x140))}),this['_messageIds'][_0x3ec64a(0x264)](_0x3f8bd5);return;}this[_0x3ec64a(0x129)](_0x5d6449['unitId']),this['_messageService'][_0x3ec64a(0x3bd)](_0x3f8bd5),this[_0x3ec64a(0x1ce)][_0x3ec64a(0x2bd)](_0x3f8bd5);return;}if(!this[_0x3ec64a(0x3e6)](_0x5d6449['unitId'])){this[_0x3ec64a(0x3e8)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x129)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x3c1)][_0x3ec64a(0x3bd)](_0x3f8bd5),this[_0x3ec64a(0x1ce)]['delete'](_0x3f8bd5);return;}if(_0x5d6449['stage']===p[_0x3ec64a(0x1d8)]['ERROR']){this[_0x3ec64a(0x3e8)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x129)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x3c1)][_0x3ec64a(0x158)]({'id':_0x3f8bd5,'type':o[_0x3ec64a(0x15c)]['Error'],'content':this['_localeService']['t'](_0x3ec64a(0x30e))}),this['_messageIds'][_0x3ec64a(0x2bd)](_0x3f8bd5);return;}if(_0x5d6449['stage']!==p['SnapshotLoadStage'][_0x3ec64a(0x185)]||_0x5d6449['totalBlocks']<=0xa){this[_0x3ec64a(0x3e8)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x3c1)][_0x3ec64a(0x3bd)](_0x3f8bd5),this[_0x3ec64a(0x1ce)][_0x3ec64a(0x2bd)](_0x3f8bd5);return;}this[_0x3ec64a(0x31f)](_0x5d6449)||(this[_0x3ec64a(0x3c1)][_0x3ec64a(0x158)]({'id':_0x3f8bd5,'type':o['MessageType'][_0x3ec64a(0x1db)],'duration':0x1/0x0,'content':this[_0x3ec64a(0x2b3)]['t'](_0x3ec64a(0x195))+'\x20'+_0x5d6449[_0x3ec64a(0x2d9)]+'/'+_0x5d6449[_0x3ec64a(0x1a1)]}),this[_0x3ec64a(0x1ce)][_0x3ec64a(0x264)](_0x3f8bd5));}[_0x3e206b(0x31f)](_0xcab83c){const _0x385e8b=_0x3e206b;let _0x381e59=this[_0x385e8b(0x30c)][_0x385e8b(0x28b)](_0xcab83c[_0x385e8b(0x196)]);if((_0x381e59==null?void 0x0:_0x381e59[_0x385e8b(0x2d9)])===_0xcab83c['loadedBlocks'])return _0x381e59[_0x385e8b(0x3f3)];this[_0x385e8b(0x3e8)](_0xcab83c['unitId']);let _0x48a458=setTimeout(()=>{const _0x4a3941=_0x385e8b;let _0x16df24=this[_0x4a3941(0x30c)][_0x4a3941(0x28b)](_0xcab83c[_0x4a3941(0x196)]);if(!_0x16df24||_0x16df24[_0x4a3941(0x14f)]!==_0x48a458)return;_0x16df24[_0x4a3941(0x3f3)]=!0x0;let _0x1e3cd0=''+Y+_0xcab83c[_0x4a3941(0x196)];this['_messageService'][_0x4a3941(0x3bd)](_0x1e3cd0),this[_0x4a3941(0x1ce)]['delete'](_0x1e3cd0),this[_0x4a3941(0x156)][_0x4a3941(0x33b)]({'unitId':_0xcab83c['unitId'],'content':this[_0x4a3941(0x2b3)]['t'](_0x4a3941(0x2c4),String(_0xcab83c['loadedBlocks']),String(_0xcab83c['totalBlocks'])),'refreshLabel':this['_localeService']['t'](_0x4a3941(0x198))});},0xea60);return this['_blockProgressWatches'][_0x385e8b(0x369)](_0xcab83c[_0x385e8b(0x196)],{'loadedBlocks':_0xcab83c[_0x385e8b(0x2d9)],'timedOut':!0x1,'timeoutId':_0x48a458}),!0x1;}['_clearBlockProgressWatch'](_0x1ff0da){const _0x4b65cb=_0x3e206b;let _0x156596=this['_blockProgressWatches']['get'](_0x1ff0da);_0x156596&&(clearTimeout(_0x156596[_0x4b65cb(0x14f)]),this[_0x4b65cb(0x30c)][_0x4b65cb(0x2bd)](_0x1ff0da),this[_0x4b65cb(0x129)](_0x1ff0da));}[_0x3e206b(0x129)](_0x422db5){const _0x139322=_0x3e206b;var _0x52cdd3;((_0x52cdd3=this[_0x139322(0x156)]['value'])==null?void 0x0:_0x52cdd3[_0x139322(0x196)])===_0x422db5&&this[_0x139322(0x156)][_0x139322(0x33b)](null);}[_0x3e206b(0x19d)](_0x2feb0){const _0x1c5045=_0x3e206b;if(_0x2feb0[_0x1c5045(0x1ba)]===p[_0x1c5045(0x1d8)]['LOADING_SNAPSHOT']&&this[_0x1c5045(0x275)]['delete'](_0x2feb0[_0x1c5045(0x196)]),!this['_isVisibleUnit'](_0x2feb0[_0x1c5045(0x196)])){this[_0x1c5045(0x3c6)](_0x2feb0[_0x1c5045(0x196)]);return;}if(_0x2feb0[_0x1c5045(0x1ba)]===p[_0x1c5045(0x1d8)][_0x1c5045(0x2cf)]||_0x2feb0[_0x1c5045(0x1a1)]<=0xa){this[_0x1c5045(0x3c6)](_0x2feb0[_0x1c5045(0x196)]);return;}if(_0x2feb0['stage']===p[_0x1c5045(0x1d8)]['COMPLETE']){this[_0x1c5045(0x1bc)](_0x2feb0[_0x1c5045(0x196)]);return;}if(_0x2feb0['stage']===p[_0x1c5045(0x1d8)][_0x1c5045(0x185)]&&_0x2feb0[_0x1c5045(0x28c)]&&_0x2feb0[_0x1c5045(0x3e7)]){let _0x24b7a5=this['_getSheetLoadingRenderService']();if(!_0x24b7a5)return;this[_0x1c5045(0x1e0)]&&this[_0x1c5045(0x1e0)]!==_0x2feb0[_0x1c5045(0x196)]&&this[_0x1c5045(0x3c6)](this[_0x1c5045(0x1e0)]),_0x24b7a5[_0x1c5045(0x1c9)](_0x2feb0['workbookShell'],_0x2feb0[_0x1c5045(0x3e7)]),this[_0x1c5045(0x1e0)]=_0x2feb0[_0x1c5045(0x196)],this[_0x1c5045(0x205)](!0x0),_0x2feb0['previewReady']&&_0x24b7a5[_0x1c5045(0x158)](_0x2feb0[_0x1c5045(0x28c)],_0x2feb0[_0x1c5045(0x3e7)],_0x2feb0[_0x1c5045(0x305)]);}}['_handoffPreview'](_0x379365){const _0x262780=_0x3e206b;if(this[_0x262780(0x1e0)]!==_0x379365||this['_handoffUnitIds'][_0x262780(0x3fa)](_0x379365))return;let _0x8d2db6=this[_0x262780(0x2b9)];_0x8d2db6&&(this['_handoffUnitIds'][_0x262780(0x264)](_0x379365),_0x8d2db6[_0x262780(0x3c9)](_0x379365,0x2710)[_0x262780(0x251)](_0x2065e5=>{const _0x437745=_0x262780;if(this[_0x437745(0x1e0)]!==_0x379365)return;if(_0x2065e5){let _0x5e12e3=''+Y+_0x379365;this['_messageService'][_0x437745(0x3bd)](_0x5e12e3),this[_0x437745(0x1ce)]['delete'](_0x5e12e3),this['_previewUnitId']=void 0x0,this['_setInteractionBlocked'](!0x1);return;}let _0x31d9c4=''+Y+_0x379365;this[_0x437745(0x3c1)]['remove'](_0x31d9c4),this['_messageIds']['delete'](_0x31d9c4),this[_0x437745(0x156)][_0x437745(0x33b)]({'unitId':_0x379365,'content':this[_0x437745(0x2b3)]['t']('collaboration-client-ui.session.connection-failed'),'refreshLabel':this[_0x437745(0x2b3)]['t'](_0x437745(0x198))});}));}[_0x3e206b(0x3c6)](_0x3c19cd){const _0x5a02ff=_0x3e206b;var _0x4c3f80;this[_0x5a02ff(0x1e0)]===_0x3c19cd&&((_0x4c3f80=this[_0x5a02ff(0x2b9)])==null||_0x4c3f80[_0x5a02ff(0x1cd)](_0x3c19cd),this[_0x5a02ff(0x1e0)]=void 0x0,this[_0x5a02ff(0x205)](!0x1));}['_setInteractionBlocked'](_0x43ae24){const _0x53ce0a=_0x3e206b;if(_0x43ae24!==this[_0x53ce0a(0x2c5)][_0x53ce0a(0x12c)]){if(_0x43ae24)this[_0x53ce0a(0x209)]=this[_0x53ce0a(0x2b7)][_0x53ce0a(0x33f)]();else{var _0x539e5e;(_0x539e5e=this[_0x53ce0a(0x209)])==null||_0x539e5e[_0x53ce0a(0x2a8)](),this[_0x53ce0a(0x209)]=void 0x0;}this[_0x53ce0a(0x2c5)][_0x53ce0a(0x33b)](_0x43ae24);}}[_0x3e206b(0x3e6)](_0x217c49){const _0x570397=_0x3e206b;let _0x4e9f85=this['_urlService'][_0x570397(0x3b7)]('unit');return!_0x4e9f85||_0x4e9f85===_0x217c49;}[_0x3e206b(0x139)](){const _0x2ec2c8=_0x3e206b;return this['_sheetLoadingRenderService']?this[_0x2ec2c8(0x2b9)]:(this[_0x2ec2c8(0x12f)]['startPluginsForType'](n[_0x2ec2c8(0x166)][_0x2ec2c8(0x3b6)]),this[_0x2ec2c8(0x141)]['has'](v['ISheetLoadingRenderService'])&&(this['_sheetLoadingRenderService']=this[_0x2ec2c8(0x141)][_0x2ec2c8(0x28b)](v['ISheetLoadingRenderService'])),this[_0x2ec2c8(0x2b9)]);}};X=C([S(0x0,(0x0,n['Inject'])(p[_0x3e206b(0x1f3)])),S(0x1,r[_0x3e206b(0x3ee)]),S(0x2,(0x0,n['Inject'])(n[_0x3e206b(0x11d)])),S(0x3,(0x0,n['Inject'])(n[_0x3e206b(0x244)])),S(0x4,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x208)])),S(0x5,r['IUIPartsService']),S(0x6,r['IShortcutService']),S(0x7,H)],X);function Te(_0x409d61){const _0x10b07a=_0x3e206b;var _0x373a6c,_0x2eeaf8;let _0x1344d6=(_0x373a6c=_0x409d61['stageInfo'])==null?void 0x0:_0x373a6c[_0x10b07a(0x1ba)],_0x24c75b=((_0x2eeaf8=_0x409d61[_0x10b07a(0x3f0)])==null?void 0x0:_0x2eeaf8[_0x10b07a(0x25c)])||0x0;return _0x1344d6===h[_0x10b07a(0x2ce)]['START_CALCULATION']&&_0x24c75b>0x0;}function Ee(_0x597259){const _0x22ebbe=_0x3e206b;return _0x597259[_0x22ebbe(0x1c3)]===h[_0x22ebbe(0x27f)][_0x22ebbe(0x285)];}let Z=class extends n[_0x3e206b(0x3a2)]{constructor(_0x33e70a,_0x551a36,_0x28b651,_0x230b4b,_0x1936b7,_0x236812,_0x39f679){const _0x588047=_0x3e206b;super(),this[_0x588047(0x3c1)]=_0x33e70a,this[_0x588047(0x38a)]=_0x551a36,this[_0x588047(0x302)]=_0x28b651,this[_0x588047(0x18f)]=_0x230b4b,this[_0x588047(0x169)]=_0x1936b7,this['_logService']=_0x236812,this[_0x588047(0x2b3)]=_0x39f679,x(this,_0x588047(0x3cb),null),x(this,_0x588047(0x1d1),0x0),x(this,_0x588047(0x278),0x0),x(this,_0x588047(0x21c),[]),x(this,'_lastResponseTimestamp',0x0),this['_initCommandInterceptor']();}[_0x3e206b(0x3a9)](){const _0x3d4fe3=_0x3e206b;this[_0x3d4fe3(0x1b7)](this['_commandService'][_0x3d4fe3(0x3c3)]((_0x33390c,_0x17c58f)=>{const _0x289aa5=_0x3d4fe3;var _0x4a5522;if(_0x33390c['id']!==h['SetFormulaCalculationStartMutation']['id'])return;let _0x2d3810=_0x33390c[_0x289aa5(0x1fe)];if(this[_0x289aa5(0x237)]((_0x4a5522=_0x2d3810[_0x289aa5(0x35c)])==null?[]:_0x4a5522)&&!this[_0x289aa5(0x16b)]())throw this[_0x289aa5(0x210)](_0x33390c,_0x17c58f),this[_0x289aa5(0x1b5)](),new n[(_0x289aa5(0x1ef))]();})),this[_0x3d4fe3(0x1b7)](this['_commandService'][_0x3d4fe3(0x144)]((_0xa495bd,_0x3ae85c)=>{const _0x50d5c0=_0x3d4fe3;if(_0xa495bd['id']!==h[_0x50d5c0(0x14a)]['id'])return;let _0x19aeeb=_0xa495bd[_0x50d5c0(0x1fe)];if(Te(_0x19aeeb)){let _0x501abf=(0x0,n[_0x50d5c0(0x3d9)])();this[_0x50d5c0(0x21c)][_0x50d5c0(0x313)](_0x501abf),this[_0x50d5c0(0x137)](_0x501abf);}else{if(Ee(_0x19aeeb)&&this['_taskIds'][_0x50d5c0(0x2ca)]>0x0){let _0x208410=this[_0x50d5c0(0x21c)]['shift']();this['_releaseCalculationLimit'](_0x208410);}}}));}[_0x3e206b(0x2a8)](){const _0x3dec43=_0x3e206b;super['dispose'](),this[_0x3dec43(0x41e)](),this[_0x3dec43(0x21c)]=[],this['_currentUsage']=0x0,this[_0x3dec43(0x1d1)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3e206b(0x210)](_0x3888bf,_0x36e2c9){const _0xd5d940=_0x3e206b;for(let _0x2dbf1e=0x0;_0x2dbf1e<0x1e;_0x2dbf1e++)try{if(await this['_getFormulaLimitStatus'](),this['_checkCalculationAvailable']()){this[_0xd5d940(0x15d)](_0x3888bf,_0x36e2c9),this['_messageService'][_0xd5d940(0x158)]({'content':this[_0xd5d940(0x2b3)]['t'](_0xd5d940(0x288)),'type':o['MessageType'][_0xd5d940(0x13d)]});return;}await new Promise(_0x1ba1ee=>{const _0xbc8e41=_0xd5d940;this[_0xbc8e41(0x3cb)]=window[_0xbc8e41(0x1b8)](_0x1ba1ee,0x3e8);});}catch(_0x3f655b){this['_logService'][_0xd5d940(0x3c7)](_0x3f655b);}this[_0xd5d940(0x3c1)][_0xd5d940(0x158)]({'content':this[_0xd5d940(0x2b3)]['t']('collaboration-client-ui.formula.calculation.unable'),'type':o[_0xd5d940(0x15c)][_0xd5d940(0x157)]});}[_0x3e206b(0x15d)](_0x14f72e,_0x46d2e1){const _0x1fc965=_0x3e206b;try{this[_0x1fc965(0x38a)][_0x1fc965(0x16f)](_0x14f72e['id'],_0x14f72e['params'],_0x46d2e1);}catch(_0x319ba8){this['_logService'][_0x1fc965(0x3c7)](_0x319ba8);}}[_0x3e206b(0x298)](_0x2b73f5,_0x7b2503){const _0x7ed787=_0x3e206b;_0x7b2503<this[_0x7ed787(0x31b)]||(this[_0x7ed787(0x31b)]=_0x7b2503,this[_0x7ed787(0x1d1)]=Number[_0x7ed787(0x333)](_0x2b73f5[_0x7ed787(0x2fb)]),this[_0x7ed787(0x278)]=Number[_0x7ed787(0x333)](_0x2b73f5[_0x7ed787(0x329)]));}async['_startCalculationLimit'](_0x2c71bd){const _0x22f7d0=_0x3e206b;let _0x694db1=Date[_0x22f7d0(0x387)]();try{var _0x5ce3b6,_0x4c2db3;let _0x14d274=((_0x5ce3b6=this[_0x22f7d0(0x302)]['getConfig'](t[_0x22f7d0(0x33e)]))==null?void 0x0:_0x5ce3b6['startFormulaLimitUrl'])||_0x22f7d0(0x414),_0x4eb50c=(await this['_httpService'][_0x22f7d0(0x422)](_0x14d274,{'body':JSON[_0x22f7d0(0x406)]({'taskId':_0x2c71bd})}))[_0x22f7d0(0x390)];if(((_0x4c2db3=_0x4eb50c['error'])==null?void 0x0:_0x4c2db3[_0x22f7d0(0x202)])!==y['ErrorCode']['OK'])return;this[_0x22f7d0(0x298)](_0x4eb50c['limitInfo'],_0x694db1);}catch(_0x377d3e){this['_logService']['error'](_0x377d3e);}}async[_0x3e206b(0x3ab)](_0x3d833d){const _0x28a445=_0x3e206b;let _0x12d806=Date[_0x28a445(0x387)]();try{var _0xe3673e,_0x47361c;let _0x4c7b10=((_0xe3673e=this[_0x28a445(0x302)][_0x28a445(0x3db)](t[_0x28a445(0x33e)]))==null?void 0x0:_0xe3673e[_0x28a445(0x2a3)])||_0x28a445(0x3e3),_0x1a0359=_0x3d833d?_0x4c7b10+'?taskId='+encodeURIComponent(_0x3d833d):_0x4c7b10,_0x3ec080=(await this['_httpService'][_0x28a445(0x28b)](_0x1a0359))[_0x28a445(0x390)];if(((_0x47361c=_0x3ec080['error'])==null?void 0x0:_0x47361c[_0x28a445(0x202)])!==y['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x3ec080[_0x28a445(0x1aa)],_0x12d806);}catch(_0x151fa0){this[_0x28a445(0x360)][_0x28a445(0x3c7)](_0x151fa0);}}async['_releaseCalculationLimit'](_0x3037f5){const _0x4c2af7=_0x3e206b;let _0x5cca84=Date[_0x4c2af7(0x387)]();try{var _0x549e18,_0x2f4c18;let _0x379640=((_0x549e18=this[_0x4c2af7(0x302)]['getConfig'](t[_0x4c2af7(0x33e)]))==null?void 0x0:_0x549e18[_0x4c2af7(0x1cc)])||_0x4c2af7(0x320),_0x1a4662=(await this[_0x4c2af7(0x18f)]['post'](_0x379640,{'body':JSON['stringify']({'taskId':_0x3037f5})}))[_0x4c2af7(0x390)];if(((_0x2f4c18=_0x1a4662[_0x4c2af7(0x3c7)])==null?void 0x0:_0x2f4c18['code'])!==y[_0x4c2af7(0x243)]['OK'])return;this['_setFormulaLimitStatus'](_0x1a4662[_0x4c2af7(0x1aa)],_0x5cca84);}catch(_0x47af80){this[_0x4c2af7(0x360)]['error'](_0x47af80);}}[_0x3e206b(0x16b)](){const _0x4bc7df=_0x3e206b;return this[_0x4bc7df(0x1d1)]===0x0?!0x0:this[_0x4bc7df(0x1d1)]-this[_0x4bc7df(0x278)]>0x0;}[_0x3e206b(0x41e)](){const _0x4dae27=_0x3e206b;this[_0x4dae27(0x3cb)]&&(clearTimeout(this['_pollingInterval']),this[_0x4dae27(0x3cb)]=null);}[_0x3e206b(0x1b5)](){const _0x5b82b9=_0x3e206b;this['_messageService'][_0x5b82b9(0x158)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.waiting'),'type':o[_0x5b82b9(0x15c)]['Loading']});}[_0x3e206b(0x237)](_0x59c50c){const _0x3e6644=_0x3e206b;for(let _0x41856d of _0x59c50c){let {unitId:_0x4cb3ac,sheetId:_0x2b8837,range:_0x274b58}=_0x41856d,_0x258ea8=this['_univerInstanceService']['getUnit'](_0x4cb3ac);if(!_0x258ea8)continue;let _0x255a6b=_0x258ea8['getSheetBySheetId'](_0x2b8837);if(!_0x255a6b)continue;let _0x47b4c2=_0x255a6b['getCellMatrix']();for(let _0x5572e4=_0x274b58[_0x3e6644(0x2c6)];_0x5572e4<=_0x274b58[_0x3e6644(0x362)];_0x5572e4++)for(let _0x5bd432=_0x274b58[_0x3e6644(0x408)];_0x5bd432<=_0x274b58['endColumn'];_0x5bd432++){let _0x216e3f=_0x47b4c2[_0x3e6644(0x3c5)](_0x5572e4,_0x5bd432);if(_0x216e3f&&((0x0,n[_0x3e6644(0x404)])(_0x216e3f['f'])||(0x0,n[_0x3e6644(0x2ff)])(_0x216e3f['si'])))return!0x0;}}return!0x1;}};Z=C([S(0x0,(0x0,n['Inject'])(r['IMessageService'])),S(0x1,n['ICommandService']),S(0x2,n[_0x3e206b(0x20e)]),S(0x3,(0x0,n['Inject'])(d['HTTPService'])),S(0x4,n[_0x3e206b(0x27d)]),S(0x5,n[_0x3e206b(0x2c3)]),S(0x6,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x11d)]))],Z);let De=class extends n[_0x3e206b(0x3a2)]{constructor(_0x1e275d,_0x2f180f,_0x361fb6){const _0x5ae08a=_0x3e206b;super(),this[_0x5ae08a(0x302)]=_0x1e275d,this['_localStorageService']=_0x2f180f,this[_0x5ae08a(0x171)]=_0x361fb6,x(this,_0x5ae08a(0x3a5),new Map()),x(this,_0x5ae08a(0x1c1),new Map()),x(this,_0x5ae08a(0x3ea),!0x1);}[_0x3e206b(0x259)](){const _0x9aacc=_0x3e206b;this[_0x9aacc(0x3ea)]=!0x0;}[_0x3e206b(0x36c)](){const _0x2b634c=_0x3e206b;this[_0x2b634c(0x3ea)]=!0x1;}get[_0x3e206b(0x37f)](){const _0x4ee941=_0x3e206b;return this[_0x4ee941(0x1c1)];}[_0x3e206b(0x2a8)](){const _0x34db6c=_0x3e206b;this[_0x34db6c(0x3aa)]()['then'](()=>super[_0x34db6c(0x2a8)]());}async['loadOfflineData'](_0x5c762d){const _0x16b217=_0x3e206b;return this[_0x16b217(0x3ea)]?null:this[_0x16b217(0x336)][_0x16b217(0x122)]((0x0,t[_0x16b217(0x257)])(_0x5c762d));}async[_0x3e206b(0x226)](_0x111614,_0x56d56){const _0x38a59d=_0x3e206b;return!!this[_0x38a59d(0x336)][_0x38a59d(0x225)]((0x0,t[_0x38a59d(0x257)])(_0x111614),_0x56d56);}async[_0x3e206b(0x215)](_0x52b2bb,_0x578b4c){const _0x107997=_0x3e206b;var _0x558331;let _0x521d23=(_0x558331=this['_cachedData'][_0x107997(0x28b)](_0x52b2bb))==null?await this[_0x107997(0x336)]['getItem']((0x0,t['getLocalCacheKey'])(_0x52b2bb)):_0x558331;if(!_0x521d23)return;let _0xddfcd2=Date['now'](),_0x5715ce=new Date(_0xddfcd2)[_0x107997(0x295)]();await this[_0x107997(0x336)][_0x107997(0x225)]((0x0,t[_0x107997(0x257)])(_0x52b2bb)+_0x107997(0x334)+_0xddfcd2,{'reason':_0x578b4c,'createdAt':_0x5715ce,'data':_0x521d23});}[_0x3e206b(0x18b)](_0x23eb7e,_0x379282,_0x3a26dc,_0x55ef5e){const _0x29139f=_0x3e206b;let _0x1a0649=this[_0x29139f(0x171)][_0x29139f(0x27a)](_0x23eb7e);this[_0x29139f(0x3a5)][_0x29139f(0x369)](_0x23eb7e,{'unitID':_0x23eb7e,'type':_0x379282,'awaitingChangeset':_0x3a26dc,'mutations':_0x55ef5e,'rev':_0x1a0649}),this['_saveTaskMap']['has'](_0x23eb7e)||this['_scheduleSaving'](_0x23eb7e);}[_0x3e206b(0x388)](_0x278fc6){const _0x591188=_0x3e206b;let _0x458b66=this['_getSaveTimeout']();_0x458b66===0x0?this['_saveCache'](_0x278fc6):this[_0x591188(0x1c1)][_0x591188(0x369)](_0x278fc6,window[_0x591188(0x1b8)](()=>this[_0x591188(0x26c)](_0x278fc6),_0x458b66));}[_0x3e206b(0x37e)](){const _0x17b7fa=_0x3e206b;var _0x2f1a65;return(_0x2f1a65=this[_0x17b7fa(0x302)][_0x17b7fa(0x3db)](t['LOCAL_CACHE_INTERVAL_KEY']))==null?t[_0x17b7fa(0x2bb)]:_0x2f1a65;}['_saveCache'](_0x486d31){const _0x25bc8b=_0x3e206b;let _0x1e2a41=this[_0x25bc8b(0x1c1)][_0x25bc8b(0x28b)](_0x486d31);return _0x1e2a41!==void 0x0&&window[_0x25bc8b(0x2b4)](_0x1e2a41),this[_0x25bc8b(0x336)][_0x25bc8b(0x225)]((0x0,t[_0x25bc8b(0x257)])(_0x486d31),this[_0x25bc8b(0x3a5)][_0x25bc8b(0x28b)](_0x486d31))[_0x25bc8b(0x251)](()=>this[_0x25bc8b(0x1c1)]['delete'](_0x486d31));}async['exhaustSavingTask'](){const _0x1644c8=_0x3e206b;let _0x56c282=[];this[_0x1644c8(0x1c1)][_0x1644c8(0x2d6)]((_0x48255c,_0x202495)=>{const _0x2fad6d=_0x1644c8;window['clearTimeout'](_0x48255c),_0x56c282[_0x2fad6d(0x313)](this[_0x2fad6d(0x26c)](_0x202495)['then'](()=>{const _0x5081a7=_0x2fad6d;this[_0x5081a7(0x1c1)]['delete'](_0x202495);}));}),await Promise[_0x1644c8(0x178)](_0x56c282);}};De=C([S(0x0,n[_0x3e206b(0x20e)]),S(0x1,n[_0x3e206b(0x2d5)]),S(0x2,(0x0,n['Inject'])(p['RevisionService']))],De);var Oe=class extends n['RxDisposable']{constructor(){const _0x2e939f=_0x3e206b;super(),x(this,_0x2e939f(0x283),void 0x0),this[_0x2e939f(0x283)]=(0x0,i[_0x2e939f(0x20a)])(window,_0x2e939f(0x348))[_0x2e939f(0x40a)]((0x0,i[_0x2e939f(0x326)])(this[_0x2e939f(0x224)]),(0x0,i[_0x2e939f(0x41c)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i[_0x2e939f(0x407)])(void 0x0));}[_0x3e206b(0x1df)](_0x450de6,_0x479f74,_0x14cdc6=!0x1){const _0x10bd61=_0x3e206b;let _0x16b188=new URL(window[_0x10bd61(0x146)]['href']);_0x16b188[_0x10bd61(0x186)][_0x10bd61(0x369)](_0x450de6,_0x479f74),_0x14cdc6?window[_0x10bd61(0x319)][_0x10bd61(0x183)]('','',_0x16b188[_0x10bd61(0x1fd)]()):window['history'][_0x10bd61(0x37c)]('','',_0x16b188[_0x10bd61(0x1fd)]());}[_0x3e206b(0x220)](_0x98a743,_0x174138=!0x1){const _0x515f5e=_0x3e206b;let _0xfb223e=new URL(window[_0x515f5e(0x146)][_0x515f5e(0x15f)]);_0xfb223e[_0x515f5e(0x186)][_0x515f5e(0x2bd)](_0x98a743),_0x174138?window['history'][_0x515f5e(0x183)]('','',_0xfb223e[_0x515f5e(0x1fd)]()):window[_0x515f5e(0x319)]['pushState']('','',_0xfb223e[_0x515f5e(0x1fd)]());}[_0x3e206b(0x3b7)](_0x3d07cc){const _0x5e5070=_0x3e206b;var _0x112d60;return(_0x112d60=new URL(window[_0x5e5070(0x146)][_0x5e5070(0x15f)])[_0x5e5070(0x186)]['get'](_0x3d07cc))==null?void 0x0:_0x112d60;}};let Q=class extends n[_0x3e206b(0x363)]{constructor(_0x171c84=ue,_0x41efe2,_0x1f7c79,_0x79e5c3){const _0x4ddb45=_0x3e206b;super(),this[_0x4ddb45(0x3eb)]=_0x171c84,this[_0x4ddb45(0x230)]=_0x41efe2,this['_injector']=_0x1f7c79,this[_0x4ddb45(0x302)]=_0x79e5c3;let {..._0x36106a}=(0x0,n['merge'])({},ue,this[_0x4ddb45(0x3eb)]);this[_0x4ddb45(0x302)][_0x4ddb45(0x174)](_0x4ddb45(0x411),_0x36106a);}['onStarting'](){const _0x471f3b=_0x3e206b;this[_0x471f3b(0x3c4)](),this[_0x471f3b(0x184)]();}[_0x3e206b(0x190)](){const _0x180b73=_0x3e206b;this[_0x180b73(0x25a)]();}[_0x3e206b(0x3c4)](){const _0x32f903=_0x3e206b;var _0x4f755e;let _0x31eb46=[[k],[Z],[H,{'useClass':Oe}],[d[_0x32f903(0x346)],{'useClass':d[_0x32f903(0x398)]}],[t[_0x32f903(0x3d3)],{'useClass':De}],[w],[T],[V],[F],[U],[X]];this[_0x32f903(0x3eb)]['enableDocumentCollaborationUI']!==!0x1&&_0x31eb46[_0x32f903(0x313)]([K],[W],[G],[j],[q],[E]),this['_config'][_0x32f903(0x211)]&&_0x31eb46[_0x32f903(0x313)]([J]),(0x0,n[_0x32f903(0x34b)])(this[_0x32f903(0x141)],(0x0,n[_0x32f903(0x1b0)])(_0x31eb46,(_0x4f755e=this[_0x32f903(0x3eb)])==null?void 0x0:_0x4f755e[_0x32f903(0x1d2)]));}[_0x3e206b(0x25a)](){const _0x53b400=_0x3e206b;this[_0x53b400(0x3eb)][_0x53b400(0x3c2)]!==!0x1&&this['disposeWithMe'](this[_0x53b400(0x230)][_0x53b400(0x3ec)](n['UniverInstanceType']['UNIVER_DOC'],[R])),this[_0x53b400(0x1b7)](this[_0x53b400(0x230)]['registerRenderModule'](n[_0x53b400(0x166)][_0x53b400(0x3b6)],[z])),this['disposeWithMe'](this[_0x53b400(0x230)][_0x53b400(0x3ec)](n[_0x53b400(0x166)][_0x53b400(0x3f2)],[B])),this[_0x53b400(0x1b7)](this[_0x53b400(0x230)]['registerRenderModule'](n['UniverInstanceType'][_0x53b400(0x1d6)],[I]));}[_0x3e206b(0x184)](){const _0x324f42=_0x3e206b;(0x0,n[_0x324f42(0x12e)])(this['_injector'],[[F],[w],[T],[V],[U],[Z],[X]]),this[_0x324f42(0x3eb)][_0x324f42(0x3c2)]!==!0x1&&(0x0,n['touchDependencies'])(this[_0x324f42(0x141)],[[q],[E]]),this[_0x324f42(0x3eb)][_0x324f42(0x211)]&&(0x0,n[_0x324f42(0x12e)])(this[_0x324f42(0x141)],[[J]]);}};x(Q,'pluginName',_0x3e206b(0x121)),x(Q,'packageName',ce),x(Q,_0x3e206b(0x368),le),Q=C([(0x0,n[_0x3e206b(0x374)])(t['UniverCollaborationClientPlugin']),S(0x1,u[_0x3e206b(0x218)]),S(0x2,(0x0,n['Inject'])(n[_0x3e206b(0x244)])),S(0x3,n[_0x3e206b(0x20e)])],Q);let ke=class extends t['CollaborationSocketService']{constructor(_0xdbd999,_0x546afc,_0x358b5a,_0x3e4e7b,_0x15a765){super(_0xdbd999,_0x546afc,_0x358b5a,_0x3e4e7b,_0x15a765);}async[_0x3e206b(0x2f4)](_0x21b8cb){const _0x4ceb3b=_0x3e206b;let _0x1dc7a6=await this['_getSessionTicket'](),_0x47fa89=this[_0x4ceb3b(0x35e)](_0x21b8cb,_0x1dc7a6);return this[_0x4ceb3b(0x340)](_0x47fa89);}[_0x3e206b(0x35e)](_0x149f57,_0x133488){const _0x4051c7=_0x3e206b;let _0x45e445=typeof window>'u'?new URL(_0x149f57):new URL(_0x149f57,window['location'][_0x4051c7(0x2a7)]);_0x45e445['searchParams'][_0x4051c7(0x369)]('sessionTicket',_0x133488);let _0x55520c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4051c7(0x146)][_0x4051c7(0x358)]);return _0x55520c['get'](_0x4051c7(0x2f5))&&_0x45e445[_0x4051c7(0x186)][_0x4051c7(0x369)](_0x4051c7(0x2f5),_0x55520c[_0x4051c7(0x28b)](_0x4051c7(0x2f5))),_0x45e445[_0x4051c7(0x1fd)]();}async[_0x3e206b(0x330)](){const _0x4a0823=_0x3e206b;var _0x5ad09a,_0x557927,_0x53950c;let _0x4782d7=this[_0x4a0823(0x302)][_0x4a0823(0x3db)](t[_0x4a0823(0x33e)]),_0x952a45=(_0x5ad09a=_0x4782d7==null?void 0x0:_0x4782d7['wsSessionTicketUrl'])==null?t[_0x4a0823(0x41f)]:_0x5ad09a;return(_0x557927=(_0x53950c=(await this[_0x4a0823(0x18f)]['get'](_0x952a45,{'headers':{'Content-Type':_0x4a0823(0x2e7)}}))[_0x4a0823(0x390)])==null?void 0x0:_0x53950c[_0x4a0823(0x1a0)])==null?'':_0x557927;}};ke=C([S(0x0,(0x0,n['Inject'])(n[_0x3e206b(0x244)])),S(0x1,(0x0,n['Inject'])(d[_0x3e206b(0x1b1)])),S(0x2,n['IConfigService']),S(0x3,n[_0x3e206b(0x2c3)]),S(0x4,p['ISnapshotServerService'])],ke);let $=class extends n[_0x3e206b(0x3a2)]{constructor(_0x39ebde,_0x4d7c31,_0x4167a8){const _0x59b5b1=_0x3e206b;super(),this[_0x59b5b1(0x309)]=_0x39ebde,this[_0x59b5b1(0x18f)]=_0x4d7c31,this['_configService']=_0x4167a8;}async[_0x3e206b(0x3b9)](_0x519ab1,_0x4bc533,_0x300b7b,..._0x3aabd9){const _0x39c8f6=_0x3e206b;var _0x2b9290,_0x1fc807,_0x453df0,_0x14c854;let _0x10d9f8=this['_instanceService'][_0x39c8f6(0x323)]();if(!_0x10d9f8)throw Error(_0x39c8f6(0x234));let _0x38faf9=((_0x2b9290=this[_0x39c8f6(0x302)][_0x39c8f6(0x3db)](t[_0x39c8f6(0x3f1)]))==null?t[_0x39c8f6(0x3e1)]:_0x2b9290)+'/'+_0x519ab1+_0x39c8f6(0x2ad)+_0x4bc533,_0x9911bc={'scriptId':_0x519ab1,'runId':(_0x1fc807=new URL(window[_0x39c8f6(0x146)][_0x39c8f6(0x15f)])[_0x39c8f6(0x186)][_0x39c8f6(0x28b)](_0x39c8f6(0x2f5)))==null?'':_0x1fc807,'function':_0x4bc533,'unitId':_0x10d9f8[_0x39c8f6(0x187)](),'argsOfFunction':JSON[_0x39c8f6(0x406)](_0x3aabd9),'invokeId':(_0x453df0=_0x300b7b[_0x39c8f6(0x339)])==null?'':_0x453df0,'executionId':(_0x14c854=_0x300b7b['executionId'])==null?'':_0x14c854};try{let _0x58d7ed=await this[_0x39c8f6(0x18f)][_0x39c8f6(0x422)](_0x38faf9,{'body':_0x9911bc});return _0x58d7ed[_0x39c8f6(0x390)][_0x39c8f6(0x3c7)]&&_0x58d7ed[_0x39c8f6(0x390)][_0x39c8f6(0x3c7)][_0x39c8f6(0x202)]!==y[_0x39c8f6(0x243)]['OK']?_0x39c8f6(0x1c4):_0x58d7ed['body']['result'];}catch{return _0x39c8f6(0x1c4);}}};$=C([S(0x0,n[_0x3e206b(0x27d)]),S(0x1,(0x0,n[_0x3e206b(0x2de)])(d[_0x3e206b(0x1b1)])),S(0x2,n[_0x3e206b(0x20e)])],$);const Ae=0x7530,je=_0x3e206b(0x23f);var Me=class extends n[_0x3e206b(0x3a2)]{constructor(){const _0x3d9bd5=_0x3e206b;super(),x(this,_0x3d9bd5(0x3ce),(0x0,n[_0x3d9bd5(0x3d9)])()),x(this,_0x3d9bd5(0x3d2),new Set()),x(this,_0x3d9bd5(0x1bd),new Map()),x(this,_0x3d9bd5(0x252),null),x(this,_0x3d9bd5(0x3ac),new Map()),x(this,'_unitStatus',new Map()),this[_0x3d9bd5(0x327)]();}[_0x3e206b(0x2a8)](){const _0x597953=_0x3e206b;super[_0x597953(0x2a8)](),this[_0x597953(0x3ac)][_0x597953(0x2d6)]((_0x3d92c6,_0x189916)=>this[_0x597953(0x1c0)](_0x189916)),this['_heartbeatTimer']&&window[_0x597953(0x1dc)](this[_0x597953(0x252)]);}[_0x3e206b(0x3d1)](_0x3c4676){const _0x2fa2e7=_0x3e206b;return this['_ensureSubject'](_0x3c4676)[_0x2fa2e7(0x40a)]((0x0,i['distinctUntilChanged'])());}[_0x3e206b(0x2a5)](_0x1f2513){const _0x21dcf3=_0x3e206b;this[_0x21dcf3(0x3d2)][_0x21dcf3(0x3a3)]===0x0&&this[_0x21dcf3(0x1e7)](),this[_0x21dcf3(0x3d2)][_0x21dcf3(0x264)](_0x1f2513),this[_0x21dcf3(0x132)]({'type':0x0,'memberID':this[_0x21dcf3(0x3ce)],'unitIDs':[_0x1f2513],'isForwarded':!0x1});}['disposeUnit'](_0x3fe027){const _0x3bf878=_0x3e206b;this['_selfUnitIDs']['delete'](_0x3fe027),this[_0x3bf878(0x3d2)][_0x3bf878(0x3a3)]===0x0&&this['_heartbeatTimer']&&window[_0x3bf878(0x1dc)](this[_0x3bf878(0x252)]);}[_0x3e206b(0x327)](){const _0x514e72=_0x3e206b;this['disposeWithMe']((0x0,n[_0x514e72(0x297)])((0x0,i[_0x514e72(0x20a)])(window,'storage')['subscribe'](_0x4a7c1d=>{const _0x321181=_0x514e72;if(_0x4a7c1d[_0x321181(0x25b)]!==je||!_0x4a7c1d[_0x321181(0x1eb)])return;let _0x50f739=JSON[_0x321181(0x1ec)](_0x4a7c1d[_0x321181(0x1eb)]);this[_0x321181(0x317)](_0x50f739);}))),window[_0x514e72(0x332)](_0x514e72(0x35b),()=>this[_0x514e72(0x132)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x514e72(0x271)](this['_selfUnitIDs'])}));}[_0x3e206b(0x317)](_0x167a2f){const _0x1bcd49=_0x3e206b;switch(_0x167a2f[_0x1bcd49(0x3ba)]){case 0x0:this[_0x1bcd49(0x424)](_0x167a2f);break;case 0x1:this[_0x1bcd49(0x2c2)](_0x167a2f);break;case 0x2:this[_0x1bcd49(0x22e)](_0x167a2f);break;}}[_0x3e206b(0x424)](_0x177176){const _0x14e9d2=_0x3e206b;let {unitIDs:_0x14a21b,memberID:_0x743e8a,isForwarded:_0x51505a}=_0x177176;_0x14a21b[_0x14e9d2(0x2d6)](_0x2d203d=>{const _0x59a273=_0x14e9d2;if(!_0x51505a&&this[_0x59a273(0x1bd)][_0x59a273(0x3fa)](_0x2d203d)&&this['_ensureSubject'](_0x2d203d)['next'](t[_0x59a273(0x2e8)][_0x59a273(0x1af)]),!this['_unitOnClients'][_0x59a273(0x3fa)](_0x2d203d)||!this[_0x59a273(0x1bd)][_0x59a273(0x28b)](_0x2d203d)['has'](_0x743e8a)){let _0x5e0366=this[_0x59a273(0x1bd)][_0x59a273(0x28b)](_0x2d203d)||new Set();_0x5e0366['add'](_0x743e8a),this[_0x59a273(0x1bd)][_0x59a273(0x369)](_0x2d203d,_0x5e0366),this[_0x59a273(0x314)](_0x743e8a);}}),_0x51505a||this[_0x14e9d2(0x132)]({'type':0x0,'memberID':this[_0x14e9d2(0x3ce)],'unitIDs':[...this[_0x14e9d2(0x3d2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x246918){const _0x133a13=_0x3e206b;this[_0x133a13(0x1c0)](_0x246918);let _0x2c4c34=window[_0x133a13(0x1b8)](()=>{const _0x5117c8=_0x133a13;this['_unitOnClients'][_0x5117c8(0x2d6)](_0x50807a=>{const _0x510167=_0x5117c8;_0x50807a[_0x510167(0x2bd)](_0x246918);});},Ae*0x2);this[_0x133a13(0x3ac)][_0x133a13(0x369)](_0x246918,_0x2c4c34);}[_0x3e206b(0x1c0)](_0x4f69ba){const _0xcc55d6=_0x3e206b;if(this[_0xcc55d6(0x3ac)]['has'](_0x4f69ba)){let _0x3a1f09=this['_clearOtherTimers'][_0xcc55d6(0x28b)](_0x4f69ba);_0x3a1f09&&window[_0xcc55d6(0x2b4)](_0x3a1f09),this[_0xcc55d6(0x3ac)][_0xcc55d6(0x369)](_0x4f69ba,null);}}[_0x3e206b(0x2c2)](_0x456eff){const _0x46b9b3=_0x3e206b;let {memberID:_0x3a33ea,unitIDs:_0x12fa5c}=_0x456eff;_0x12fa5c[_0x46b9b3(0x2d6)](_0x4aad69=>{const _0x1a7663=_0x46b9b3;var _0xa3aeaf;let _0x47ca39=this['_unitOnClients'][_0x1a7663(0x28b)](_0x4aad69);_0x47ca39&&(_0x47ca39[_0x1a7663(0x2bd)](_0x3a33ea),(_0xa3aeaf=this[_0x1a7663(0x16c)](_0x4aad69))==null||_0xa3aeaf['next'](_0x47ca39[_0x1a7663(0x3a3)]===0x0?t[_0x1a7663(0x2e8)][_0x1a7663(0x2bc)]:t[_0x1a7663(0x2e8)][_0x1a7663(0x1af)]));}),this[_0x46b9b3(0x1c0)](_0x3a33ea);}[_0x3e206b(0x22e)](_0x35672a){const _0x127eb7=_0x3e206b;this[_0x127eb7(0x314)](_0x35672a['memberID']);}[_0x3e206b(0x132)](_0x37e885){const _0x5ba3a9=_0x3e206b;localStorage[_0x5ba3a9(0x225)](je,JSON[_0x5ba3a9(0x406)](_0x37e885));}[_0x3e206b(0x1e7)](){const _0x223e94=_0x3e206b;this['_heartbeatTimer']=window[_0x223e94(0x39f)](()=>{const _0x56e007=_0x223e94;this[_0x56e007(0x132)]({'type':0x2,'memberID':this[_0x56e007(0x3ce)]});},Ae);}[_0x3e206b(0x16c)](_0x81691f){const _0x46ca64=_0x3e206b;return this[_0x46ca64(0x207)][_0x46ca64(0x3fa)](_0x81691f)||this[_0x46ca64(0x207)][_0x46ca64(0x369)](_0x81691f,new i[(_0x46ca64(0x19a))](t[_0x46ca64(0x2e8)][_0x46ca64(0x2bc)])),this['_unitStatus'][_0x46ca64(0x28b)](_0x81691f);}};Object[_0x3e206b(0x17e)](exports,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return ke;}}),Object['defineProperty'](exports,_0x3e206b(0x1de),{'enumerable':!0x0,'get':function(){return w;}}),exports[_0x3e206b(0x2a0)]=H,Object[_0x3e206b(0x17e)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3e206b(0x22b)]=xe,Object[_0x3e206b(0x17e)](exports,_0x3e206b(0x29c),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x3e206b(0x20f)]=Me;
|