@univerjs-pro/collaboration-client-ui 1.0.0-alpha.6 → 1.0.0-alpha.8
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/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +3 -3
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +2 -2
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +3 -3
- package/lib/types/models/cursor.d.ts +0 -2
- 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 +23 -22
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
const _0x43dc4d=_0x196d;(function(_0x3f400d,_0x184743){const _0x302508=_0x196d,_0x2db733=_0x3f400d();while(!![]){try{const _0x29beff=-parseInt(_0x302508(0x1c6))/0x1*(-parseInt(_0x302508(0x29f))/0x2)+parseInt(_0x302508(0x173))/0x3*(-parseInt(_0x302508(0x2dd))/0x4)+parseInt(_0x302508(0x281))/0x5+-parseInt(_0x302508(0x430))/0x6*(-parseInt(_0x302508(0x21e))/0x7)+-parseInt(_0x302508(0x3c5))/0x8*(parseInt(_0x302508(0x26e))/0x9)+parseInt(_0x302508(0x3c7))/0xa+parseInt(_0x302508(0x30a))/0xb;if(_0x29beff===_0x184743)break;else _0x2db733['push'](_0x2db733['shift']());}catch(_0x5ef68a){_0x2db733['push'](_0x2db733['shift']());}}}(_0x1e5c,0x80e6b),Object[_0x43dc4d(0x185)](exports,Symbol[_0x43dc4d(0x175)],{'value':_0x43dc4d(0x343)}));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-pro/collaboration'),d=require('@univerjs-pro/license'),f=require('@univerjs/docs'),p=require('@univerjs/docs-ui'),m=require('@univerjs/engine-render'),h=require('@univerjs/network'),g=require('@univerjs/engine-formula'),_=require('@univerjs/sheets'),v=require('@univerjs-pro/slides-ui'),y=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),b=require('@univerjs/protocol');function te(_0x88e293){const _0x233be9=_0x43dc4d;switch(_0x88e293){case t[_0x233be9(0x151)]['OFFLINE']:return{'icon':(0x0,l[_0x233be9(0x309)])(s[_0x233be9(0x340)],{}),'colorClass':_0x233be9(0x18b),'i18nKey':_0x233be9(0x2ba),'tooltipKey':_0x233be9(0x3e7),'clickable':!0x0,'indicator':_0x233be9(0x2c0)};case t['CollaborationStatus']['CONFLICT']:return{'icon':(0x0,l[_0x233be9(0x309)])(s[_0x233be9(0x340)],{}),'colorClass':_0x233be9(0x28b),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x233be9(0x2c0)};case t[_0x233be9(0x151)][_0x233be9(0x3f6)]:return{'icon':(0x0,l['jsx'])(s[_0x233be9(0x386)],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x233be9(0x2d6),'clickable':!0x1,'indicator':_0x233be9(0x3dd)};case t[_0x233be9(0x151)][_0x233be9(0x180)]:return{'icon':(0x0,l['jsx'])(s[_0x233be9(0x372)],{}),'colorClass':_0x233be9(0x350),'i18nKey':_0x233be9(0x183),'clickable':!0x1,'indicator':_0x233be9(0x2c0)};case t[_0x233be9(0x151)][_0x233be9(0x3f7)]:case t[_0x233be9(0x151)][_0x233be9(0x2a8)]:return{'icon':(0x0,l[_0x233be9(0x309)])(s[_0x233be9(0x386)],{}),'colorClass':_0x233be9(0x458),'i18nKey':_0x233be9(0x357),'clickable':!0x1,'indicator':_0x233be9(0x3dd)};case t[_0x233be9(0x151)][_0x233be9(0x263)]:return{'icon':(0x0,l[_0x233be9(0x309)])(s[_0x233be9(0x386)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x233be9(0x3dd)};case t[_0x233be9(0x151)][_0x233be9(0x391)]:return{'icon':(0x0,l['jsx'])(s[_0x233be9(0x372)],{}),'colorClass':_0x233be9(0x170),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x233be9(0x2c0)};}}function ne(_0x452f3b){const _0x594399=_0x43dc4d;let {status$:_0xc1b49}=_0x452f3b,_0x206cd5=(0x0,r[_0x594399(0x20d)])(_0xc1b49,t[_0x594399(0x151)][_0x594399(0x180)]),_0x2a234a=(0x0,r[_0x594399(0x237)])(n['LocaleService']),_0x5fda36=(0x0,r['useDependency'])(t[_0x594399(0x393)]),_0x54abbe=(0x0,c[_0x594399(0x2d8)])(()=>te(_0x206cd5),[_0x206cd5]),_0x48ccb9=_0x206cd5!==t[_0x594399(0x151)]['OFFLINE'],_0x58ba99=_0x2a234a['t'](_0x54abbe[_0x594399(0x34a)]),_0x56c476=_0x54abbe[_0x594399(0x43d)]?_0x2a234a['t'](_0x54abbe[_0x594399(0x43d)]):_0x58ba99,_0x5d8027=(0x0,c[_0x594399(0x177)])(()=>{const _0x1b1f79=_0x594399;_0x48ccb9||_0x5fda36[_0x1b1f79(0x37f)]();},[_0x48ccb9,_0x5fda36]),_0x55d62=(0x0,c[_0x594399(0x177)])(_0x4f3c7c=>{const _0x3e7a6a=_0x594399;!_0x48ccb9&&(_0x4f3c7c[_0x3e7a6a(0x407)]===_0x3e7a6a(0x43b)||_0x4f3c7c[_0x3e7a6a(0x407)]==='\x20')&&(_0x4f3c7c['preventDefault'](),_0x5fda36[_0x3e7a6a(0x37f)]());},[_0x48ccb9,_0x5fda36]),_0x3de25c=(0x0,l['jsx'])(_0x594399(0x406),{'className':(0x0,o[_0x594399(0x456)])(_0x594399(0x249),_0x594399(0x2b4),_0x54abbe[_0x594399(0x3a1)],{'univer-animate-spin':_0x54abbe['indicator']===_0x594399(0x3dd),'univer-animate-pulse':_0x54abbe[_0x594399(0x43c)]===_0x594399(0x23e)}),'aria-hidden':_0x594399(0x158),'children':_0x54abbe[_0x594399(0x352)]}),_0x54e904=(0x0,l[_0x594399(0x309)])(_0x594399(0x406),{'className':(0x0,o[_0x594399(0x456)])(_0x594399(0x249),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x594399(0x42b),_0x594399(0x38b),_0x594399(0x31c),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x54abbe[_0x594399(0x347)],'univer-cursor-default':!_0x54abbe['clickable']}),'children':_0x3de25c});return _0x54abbe['clickable']?(0x0,l[_0x594399(0x309)])(o[_0x594399(0x34e)],{'title':_0x56c476,'placement':'bottom','children':(0x0,l['jsx'])(_0x594399(0x284),{'type':'button','onClick':_0x5d8027,'onKeyDown':_0x55d62,'className':(0x0,o[_0x594399(0x456)])(_0x594399(0x3a7),'univer-border-none\x20univer-bg-transparent',_0x594399(0x159),'univer-appearance-none'),'aria-label':_0x58ba99+_0x594399(0x1a9)+_0x56c476,'role':_0x594399(0x28f),'aria-live':_0x594399(0x17f),'aria-atomic':_0x594399(0x158),'children':_0x54e904})}):(0x0,l['jsx'])(o[_0x594399(0x34e)],{'title':_0x56c476,'placement':_0x594399(0x27f),'children':(0x0,l[_0x594399(0x309)])(_0x594399(0x223),{'className':(0x0,o[_0x594399(0x456)])(_0x594399(0x3a7),_0x594399(0x2c9),_0x594399(0x159)),'aria-label':_0x58ba99,'role':'status','aria-live':_0x594399(0x17f),'aria-atomic':_0x594399(0x158),'children':_0x54e904})});}function x(_0x235054){'@babel/helpers - typeof';const _0x3744cc=_0x43dc4d;return x=typeof Symbol==_0x3744cc(0x295)&&typeof Symbol['iterator']==_0x3744cc(0x230)?function(_0x52bdfc){return typeof _0x52bdfc;}:function(_0x46e45f){const _0x1ebf25=_0x3744cc;return _0x46e45f&&typeof Symbol==_0x1ebf25(0x295)&&_0x46e45f['constructor']===Symbol&&_0x46e45f!==Symbol[_0x1ebf25(0x3a5)]?'symbol':typeof _0x46e45f;},x(_0x235054);}function re(_0x4a640d,_0x3fcc92){const _0x1eae30=_0x43dc4d;if(x(_0x4a640d)!='object'||!_0x4a640d)return _0x4a640d;var _0x1f0c80=_0x4a640d[Symbol[_0x1eae30(0x3d3)]];if(_0x1f0c80!==void 0x0){var _0x4ffa06=_0x1f0c80[_0x1eae30(0x1e0)](_0x4a640d,_0x3fcc92||_0x1eae30(0x2fe));if(x(_0x4ffa06)!='object')return _0x4ffa06;throw TypeError(_0x1eae30(0x3ed));}return(_0x3fcc92==='string'?String:Number)(_0x4a640d);}function ie(_0x5c6ef3){const _0x4e4a65=_0x43dc4d;var _0x3633d2=re(_0x5c6ef3,'string');return x(_0x3633d2)==_0x4e4a65(0x230)?_0x3633d2:_0x3633d2+'';}function S(_0x5d6a9f,_0x10b7e8,_0x475e18){return(_0x10b7e8=ie(_0x10b7e8))in _0x5d6a9f?Object['defineProperty'](_0x5d6a9f,_0x10b7e8,{'value':_0x475e18,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5d6a9f[_0x10b7e8]=_0x475e18,_0x5d6a9f;}function C(_0x967d38,_0x17f389){return function(_0x29400e,_0x5e2709){_0x17f389(_0x29400e,_0x5e2709,_0x967d38);};}function w(_0x29b73e,_0x315ab9,_0x1a9939,_0x3a8f3b){const _0x4fb300=_0x43dc4d;var _0x2ee578=arguments[_0x4fb300(0x2aa)],_0x1499d8=_0x2ee578<0x3?_0x315ab9:_0x3a8f3b===null?_0x3a8f3b=Object[_0x4fb300(0x2f4)](_0x315ab9,_0x1a9939):_0x3a8f3b,_0xb1ff91;if(typeof Reflect==_0x4fb300(0x3df)&&typeof Reflect[_0x4fb300(0x155)]==_0x4fb300(0x295))_0x1499d8=Reflect[_0x4fb300(0x155)](_0x29b73e,_0x315ab9,_0x1a9939,_0x3a8f3b);else{for(var _0x57df77=_0x29b73e[_0x4fb300(0x2aa)]-0x1;_0x57df77>=0x0;_0x57df77--)(_0xb1ff91=_0x29b73e[_0x57df77])&&(_0x1499d8=(_0x2ee578<0x3?_0xb1ff91(_0x1499d8):_0x2ee578>0x3?_0xb1ff91(_0x315ab9,_0x1a9939,_0x1499d8):_0xb1ff91(_0x315ab9,_0x1a9939))||_0x1499d8);}return _0x2ee578>0x3&&_0x1499d8&&Object['defineProperty'](_0x315ab9,_0x1a9939,_0x1499d8),_0x1499d8;}let T=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x352909,_0x286924,_0xc912a9,_0x1cc07f){const _0x1d2f59=_0x43dc4d;super(),this['_univerInstanceService']=_0x352909,this['_injector']=_0x286924,this['_collaborationController']=_0xc912a9,this[_0x1d2f59(0x196)]=_0x1cc07f,S(this,_0x1d2f59(0x24d),new i[(_0x1d2f59(0x344))](t[_0x1d2f59(0x151)][_0x1d2f59(0x180)])),this['_initStatusComponent'](),this[_0x1d2f59(0x146)]();}[_0x43dc4d(0x146)](){const _0x2c9c17=_0x43dc4d;this[_0x2c9c17(0x365)]((0x0,i[_0x2c9c17(0x418)])(this[_0x2c9c17(0x455)]['focused$'],this[_0x2c9c17(0x455)]['getCurrentTypeOfUnit$'](n[_0x2c9c17(0x35f)]['UNIVER_DOC']),this['_univerInstanceService']['getCurrentTypeOfUnit$'](n['UniverInstanceType'][_0x2c9c17(0x271)]))[_0x2c9c17(0x32a)]((0x0,a[_0x2c9c17(0x1fa)])(()=>ae(this[_0x2c9c17(0x455)])),(0x0,a['distinctUntilChanged'])(),(0x0,i[_0x2c9c17(0x44c)])(_0x1e10e2=>_0x1e10e2?this[_0x2c9c17(0x16d)][_0x2c9c17(0x3ab)](_0x1e10e2):(0x0,i['of'])(null)),(0x0,i['switchMap'])(_0x90a438=>_0x90a438?_0x90a438['status$']:(0x0,i['of'])(t['CollaborationStatus'][_0x2c9c17(0x180)])))[_0x2c9c17(0x36e)](_0x4e908b=>{const _0x4d4d91=_0x2c9c17;this[_0x4d4d91(0x24d)][_0x4d4d91(0x176)](_0x4e908b);}));}['_initStatusComponent'](){const _0x1ef07=_0x43dc4d;this['disposeWithMe'](this[_0x1ef07(0x196)]['registerComponent'](r[_0x1ef07(0x26a)][_0x1ef07(0x21c)],()=>(0x0,r[_0x1ef07(0x2c4)])(se({'status$':this['_status$'][_0x1ef07(0x34b)]()}),this[_0x1ef07(0x360)])));}};T=w([C(0x0,n['IUniverInstanceService']),C(0x1,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x2,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x34d)])),C(0x3,r[_0x43dc4d(0x432)])],T);let E=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x2448a1,_0x9811b6,_0x51aa3c,_0xe3f3d8){const _0x851e6d=_0x43dc4d;super(),this[_0x851e6d(0x455)]=_0x2448a1,this[_0x851e6d(0x360)]=_0x9811b6,this[_0x851e6d(0x16d)]=_0x51aa3c,this[_0x851e6d(0x196)]=_0xe3f3d8,S(this,'_status$',new i['BehaviorSubject'](t[_0x851e6d(0x151)][_0x851e6d(0x180)])),this['_initStatusComponent'](),this['_initStatusListener']();}[_0x43dc4d(0x146)](){const _0x376f80=_0x43dc4d;this[_0x376f80(0x365)]((0x0,i[_0x376f80(0x418)])((0x0,i['of'])(null),this['_univerInstanceService'][_0x376f80(0x35b)](n[_0x376f80(0x35f)][_0x376f80(0x3a3)]))[_0x376f80(0x32a)]((0x0,a['map'])(()=>oe(this[_0x376f80(0x455)])),(0x0,a[_0x376f80(0x38c)])(),(0x0,i[_0x376f80(0x44c)])(_0x49137f=>_0x49137f?this[_0x376f80(0x16d)][_0x376f80(0x3ab)](_0x49137f):(0x0,i['of'])(null)),(0x0,i[_0x376f80(0x44c)])(_0x48ca5f=>_0x48ca5f?_0x48ca5f['status$']:(0x0,i['of'])(t['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x308f40=>{const _0x29e4de=_0x376f80;this[_0x29e4de(0x24d)]['next'](_0x308f40);}));}[_0x43dc4d(0x210)](){const _0x4f5aed=_0x43dc4d;this[_0x4f5aed(0x365)](this[_0x4f5aed(0x196)][_0x4f5aed(0x1be)](e[_0x4f5aed(0x3d8)],()=>(0x0,r[_0x4f5aed(0x2c4)])(se({'status$':this['_status$']['asObservable']()}),this[_0x4f5aed(0x360)])));}};E=w([C(0x0,n[_0x43dc4d(0x148)]),C(0x1,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x2,(0x0,n[_0x43dc4d(0x379)])(t['CollaborationController'])),C(0x3,r[_0x43dc4d(0x432)])],E);function ae(_0x2b87b5){const _0x5eccdc=_0x43dc4d;let _0x3611c7=_0x2b87b5[_0x5eccdc(0x44b)](),_0x2bb107=_0x3611c7==null?void 0x0:_0x3611c7[_0x5eccdc(0x319)]();if(_0x2bb107&&!(0x0,n[_0x5eccdc(0x163)])(_0x2bb107))return _0x2bb107;let _0x2ffde1=_0x2b87b5[_0x5eccdc(0x36c)](n[_0x5eccdc(0x35f)][_0x5eccdc(0x3f9)]),_0x3bce41=_0x2ffde1==null?void 0x0:_0x2ffde1[_0x5eccdc(0x319)]();if(_0x3bce41&&!(0x0,n[_0x5eccdc(0x163)])(_0x3bce41))return _0x3bce41;let _0x43b2ad=_0x2b87b5[_0x5eccdc(0x36c)](n[_0x5eccdc(0x35f)][_0x5eccdc(0x271)]);if(_0x43b2ad)return _0x43b2ad[_0x5eccdc(0x319)]();let _0x465d53=_0x2b87b5[_0x5eccdc(0x1b4)](n[_0x5eccdc(0x35f)]['UNIVER_DOC'])[_0x5eccdc(0x402)](_0x588c82=>!(0x0,n[_0x5eccdc(0x163)])(_0x588c82[_0x5eccdc(0x319)]()));return _0x465d53?_0x465d53[_0x5eccdc(0x319)]():null;}function oe(_0xd5f637){const _0x1e76d1=_0x43dc4d;var _0x2cab89;let _0x447b07=_0xd5f637['getCurrentUnitOfType'](n['UniverInstanceType'][_0x1e76d1(0x3a3)]);return(_0x2cab89=_0x447b07==null?void 0x0:_0x447b07[_0x1e76d1(0x319)]())==null?null:_0x2cab89;}function se(_0x15d4a5){let {status$:_0x4311a7}=_0x15d4a5;return function(){const _0x101d27=_0x196d;return(0x0,l[_0x101d27(0x309)])(ne,{'status$':_0x4311a7});};}var ce=_0x43dc4d(0x236),le='1.0.0-alpha.8';const ue={};let D=class extends n['RxDisposable']{constructor(_0x3dd3af,_0x4bbed6){const _0x456828=_0x43dc4d;super(),this[_0x456828(0x2c5)]=_0x3dd3af,this[_0x456828(0x15e)]=_0x4bbed6,this[_0x456828(0x299)]();}[_0x43dc4d(0x299)](){const _0x3fe651=_0x43dc4d;let _0x3787dd=this;this[_0x3fe651(0x365)](this['_docClipboardService'][_0x3fe651(0x229)]({'onBeforePasteImage':async _0x224092=>{const _0x19371b=_0x3fe651;let _0x5a9dc7=await _0x3787dd[_0x19371b(0x15e)][_0x19371b(0x3ba)](_0x224092);return _0x5a9dc7?{'source':_0x5a9dc7[_0x19371b(0x32c)],'imageSourceType':_0x5a9dc7['imageSourceType']}:null;}}));}};D=w([C(0x0,p[_0x43dc4d(0x364)]),C(0x1,n[_0x43dc4d(0x324)])],D);function de(_0x12995b,_0x33ebb5){const _0x873d72=_0x43dc4d;_0x12995b[_0x873d72(0x1f1)](),_0x12995b[_0x873d72(0x348)]=_0x873d72(0x29b);let _0xbe8a9f=_0x12995b['measureText'](_0x33ebb5)[_0x873d72(0x37d)];return _0x12995b[_0x873d72(0x368)](),Math[_0x873d72(0x29c)](_0xbe8a9f+0x8,0xc8);}function fe(_0x18f5c6,_0x32620f){const _0x1f7e72=_0x43dc4d;var _0x5f4026,_0xe1fd78,_0x1a756c;let {radius:_0xce3d6,width:_0x5d36d7,height:_0x1e8e65}=_0x32620f;_0xce3d6=(_0x5f4026=_0xce3d6)==null?0x0:_0x5f4026,_0x5d36d7=(_0xe1fd78=_0x5d36d7)==null?0x1e:_0xe1fd78,_0x1e8e65=(_0x1a756c=_0x1e8e65)==null?0x1e:_0x1a756c;let _0x164398=0x0,_0x50eace=0x0,_0x512924=0x0;_0x164398=_0x50eace=_0x512924=Math[_0x1f7e72(0x29c)](_0xce3d6,_0x5d36d7/0x2,_0x1e8e65/0x2),_0x18f5c6['beginPath'](),_0x18f5c6[_0x1f7e72(0x193)](_0x164398,0x0),_0x18f5c6['lineTo'](_0x5d36d7-_0x50eace,0x0),_0x18f5c6[_0x1f7e72(0x2e8)](_0x5d36d7-_0x50eace,_0x50eace,_0x50eace,Math['PI']*0x3/0x2,0x0,!0x1),_0x18f5c6[_0x1f7e72(0x1e8)](_0x5d36d7,_0x1e8e65-_0x512924),_0x18f5c6['arc'](_0x5d36d7-_0x512924,_0x1e8e65-_0x512924,_0x512924,0x0,Math['PI']/0x2,!0x1),_0x18f5c6[_0x1f7e72(0x1e8)](0x0,_0x1e8e65),_0x18f5c6[_0x1f7e72(0x1e8)](0x0,_0x164398),_0x18f5c6[_0x1f7e72(0x2e8)](_0x164398,_0x164398,_0x164398,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x18f5c6['closePath'](),_0x32620f[_0x1f7e72(0x3f5)]&&(_0x18f5c6['save'](),_0x18f5c6[_0x1f7e72(0x442)]=_0x32620f[_0x1f7e72(0x3f5)],_0x32620f[_0x1f7e72(0x2f6)]===_0x1f7e72(0x1d4)?_0x18f5c6[_0x1f7e72(0x3f5)]('evenodd'):_0x18f5c6[_0x1f7e72(0x3f5)](),_0x18f5c6['restore']());}var O=class e extends m['Shape']{constructor(_0x1463f3,_0x4e701b){const _0x16eb5f=_0x43dc4d;super(_0x1463f3,_0x4e701b),S(this,'color',void 0x0),S(this,_0x16eb5f(0x258),void 0x0),this['color']=_0x4e701b==null?void 0x0:_0x4e701b[_0x16eb5f(0x242)],this[_0x16eb5f(0x258)]=_0x4e701b==null?void 0x0:_0x4e701b[_0x16eb5f(0x258)];}static['drawWith'](_0x3292c0,_0x49625b){const _0x54ea1b=_0x43dc4d;let {text:_0x57d1d7,color:_0xebbe40}=_0x49625b;_0x3292c0[_0x54ea1b(0x1f1)](),_0x3292c0['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x1d6ef6=_0x3292c0[_0x54ea1b(0x3ca)](_0x57d1d7)[_0x54ea1b(0x37d)];if(fe(_0x3292c0,{'height':0x14,'radius':0x4,'width':de(_0x3292c0,_0x57d1d7),'fill':_0xebbe40,'evented':!0x1}),_0x3292c0[_0x54ea1b(0x442)]=_0x54ea1b(0x325),_0x1d6ef6>0xc0){let _0x16e0a1='',_0x4473a5=0x0;for(let _0x3244fb of _0x57d1d7){let _0x24e008=_0x3292c0[_0x54ea1b(0x3ca)](_0x3244fb)['width'];if(_0x4473a5+_0x24e008<=0xc0-_0x3292c0[_0x54ea1b(0x3ca)]('...')[_0x54ea1b(0x37d)])_0x16e0a1+=_0x3244fb,_0x4473a5+=_0x24e008;else{_0x16e0a1+=_0x54ea1b(0x153);break;}}_0x3292c0[_0x54ea1b(0x411)](_0x16e0a1,0x4,0xf);}else _0x3292c0[_0x54ea1b(0x411)](_0x57d1d7,0x4,0xf);_0x3292c0[_0x54ea1b(0x368)]();}[_0x43dc4d(0x1ba)](_0x22c9f6){const _0x3a96d4=_0x43dc4d;e[_0x3a96d4(0x2c2)](_0x22c9f6,this);}};const k=0x138a;var pe=class extends m[_0x43dc4d(0x265)]{constructor(_0x4163b3,_0x436299){const _0x484b58=_0x43dc4d;super(_0x4163b3,{..._0x436299,'evented':!0x1}),S(this,_0x484b58(0x336),_0x484b58(0x19b)),S(this,_0x484b58(0x253),''),S(this,'_showText',!0x0),_0x436299&&this[_0x484b58(0x29d)](_0x436299);}[_0x43dc4d(0x29d)](_0x26610c){const _0xe3e6a9=_0x43dc4d;var _0xce2a05,_0x280e58,_0x26b0a8,_0x2f5dca,_0x31ec2f,_0x17f664,_0x495edf,_0x4f5827;this[_0xe3e6a9(0x336)]=(_0xce2a05=_0x26610c[_0xe3e6a9(0x242)])==null?this[_0xe3e6a9(0x336)]:_0xce2a05,this['_name']=(_0x280e58=_0x26610c[_0xe3e6a9(0x2c1)])==null?this['_name']:_0x280e58,this['_showText']=(_0x26b0a8=_0x26610c['showText'])==null?this[_0xe3e6a9(0x39b)]:_0x26b0a8,this['evented']=!0x1,this[_0xe3e6a9(0x194)]({'left':(_0x2f5dca=_0x26610c['left'])==null?this[_0xe3e6a9(0x1c5)]:_0x2f5dca,'top':(_0x31ec2f=_0x26610c['top'])==null?this[_0xe3e6a9(0x326)]:_0x31ec2f,'width':(_0x17f664=_0x26610c['width'])==null?this[_0xe3e6a9(0x37d)]:_0x17f664,'height':(_0x495edf=_0x26610c[_0xe3e6a9(0x1d5)])==null?this['height']:_0x495edf,'angle':(_0x4f5827=_0x26610c['angle'])==null?this[_0xe3e6a9(0x25c)]:_0x4f5827});}[_0x43dc4d(0x1ba)](_0x549648){const _0x241f41=_0x43dc4d;_0x549648[_0x241f41(0x1f1)](),_0x549648[_0x241f41(0x303)]=this[_0x241f41(0x336)],_0x549648[_0x241f41(0x1e7)]=this[_0x241f41(0x198)]||1.5,_0x549648[_0x241f41(0x216)]([0x6,0x4]),_0x549648[_0x241f41(0x362)](0x0,0x0,this[_0x241f41(0x37d)],this['height']),_0x549648[_0x241f41(0x368)](),this['_showText']&&(_0x549648['save'](),_0x549648[_0x241f41(0x32f)](0x1,0x0,0x0,0x1,this[_0x241f41(0x37d)],-0x14),O['drawWith'](_0x549648,{'text':this[_0x241f41(0x253)],'color':this[_0x241f41(0x336)]}),_0x549648[_0x241f41(0x368)]());}};const me=[_0x43dc4d(0x1b3),_0x43dc4d(0x435),_0x43dc4d(0x2bd),_0x43dc4d(0x3ae),_0x43dc4d(0x2b8),_0x43dc4d(0x3ad)];var A=class extends n[_0x43dc4d(0x3f1)]{constructor(..._0x17736b){const _0x59b583=_0x43dc4d;super(..._0x17736b),S(this,_0x59b583(0x31b),new Map()),S(this,'_colorIndex',0x0);}[_0x43dc4d(0x1fc)](_0x5dbe59){const _0x22f54a=_0x43dc4d;if(this[_0x22f54a(0x31b)][_0x22f54a(0x14f)](_0x5dbe59))return this['_assignedColors'][_0x22f54a(0x2e2)](_0x5dbe59);let _0x12d31f=me[this[_0x22f54a(0x234)]];return this[_0x22f54a(0x234)]=(this[_0x22f54a(0x234)]+0x1)%me[_0x22f54a(0x2aa)],this['_assignedColors'][_0x22f54a(0x1de)](_0x5dbe59,_0x12d31f),_0x12d31f;}};function he(_0x3c225d){const _0x457490=_0x43dc4d;let _0x12c705;try{_0x12c705=JSON['parse'](_0x3c225d);}catch{return null;}if(typeof _0x12c705!=_0x457490(0x3df)||!_0x12c705)return null;let _0x5b7938=_0x12c705;if(_0x5b7938[_0x457490(0x345)]!==_0x457490(0x1fd)||typeof _0x5b7938['unitId']!='string'||typeof _0x5b7938[_0x457490(0x433)]!=_0x457490(0x437))return null;let _0x40f881=Array[_0x457490(0x152)](_0x5b7938[_0x457490(0x426)])?_0x5b7938[_0x457490(0x426)][_0x457490(0x3e5)](_0x58b95c=>typeof _0x58b95c==_0x457490(0x437)):[],_0x30d56f=typeof _0x5b7938['focusedId']=='string'?_0x5b7938[_0x457490(0x2b7)]:null;return{'kind':_0x457490(0x1fd),'unitId':_0x5b7938[_0x457490(0x219)],'subUnitId':_0x5b7938[_0x457490(0x433)],'selectedIds':_0x40f881,'focusedId':_0x30d56f};}let j=class extends n[_0x43dc4d(0x1e5)]{get[_0x43dc4d(0x42f)](){const _0x2d2b6d=_0x43dc4d;return this[_0x2d2b6d(0x290)]['getValue']();}get[_0x43dc4d(0x3a8)](){const _0xdffed4=_0x43dc4d;return this[_0xdffed4(0x32d)][_0xdffed4(0x211)]();}constructor(_0x1d3a70,_0x3f1d03,_0x46abcc,_0x3be726,_0x58bd42){const _0x526053=_0x43dc4d;super(),this['unitID']=_0x1d3a70,this[_0x526053(0x38f)]=_0x3f1d03,this[_0x526053(0x431)]=_0x46abcc,this[_0x526053(0x35c)]=_0x3be726,this[_0x526053(0x286)]=_0x58bd42,S(this,_0x526053(0x39a),!0x1),S(this,_0x526053(0x299),!0x1),S(this,'_cursorInfo$',new i[(_0x526053(0x344))](new Map())),S(this,_0x526053(0x1a6),this[_0x526053(0x290)][_0x526053(0x34b)]()),S(this,_0x526053(0x32d),new i['BehaviorSubject']([])),S(this,_0x526053(0x3dc),this['_roomMembers$'][_0x526053(0x32a)]((0x0,i['debounceTime'])(0x12c))),S(this,'_updateLocalCursor',(0x0,n[_0x526053(0x240)])(_0x1bd54c=>{const _0x19ec38=_0x526053;let _0x3a50e5=_0x1bd54c[_0x19ec38(0x1e6)];if(!_0x3a50e5||_0x3a50e5[_0x19ec38(0x219)]!==this[_0x19ec38(0x220)])return;let _0x447de5={'kind':_0x19ec38(0x1fd),'unitId':_0x3a50e5[_0x19ec38(0x219)],'subUnitId':_0x3a50e5[_0x19ec38(0x433)],'selectedIds':_0x1bd54c[_0x19ec38(0x426)][_0x19ec38(0x3e5)](_0x2c692c=>typeof _0x2c692c==_0x19ec38(0x437)),'focusedId':_0x1bd54c['focusedId']},_0x41ba36={'eventID':u['CollaborationEvent'][_0x19ec38(0x22f)],'data':{'unitID':this[_0x19ec38(0x220)],'memberID':this['_session'][_0x19ec38(0x254)](),'selection':JSON[_0x19ec38(0x264)](_0x447de5)}};this[_0x19ec38(0x38f)][_0x19ec38(0x387)](_0x41ba36,this[_0x19ec38(0x220)]);},0x64));}[_0x43dc4d(0x453)](){const _0x52d5a8=_0x43dc4d;super[_0x52d5a8(0x453)](),this[_0x52d5a8(0x290)]['next'](new Map()),this[_0x52d5a8(0x290)]['complete'](),this[_0x52d5a8(0x32d)]['next']([]),this[_0x52d5a8(0x32d)]['complete']();}['init'](){const _0xe1ea01=_0x43dc4d;this[_0xe1ea01(0x299)]||(this[_0xe1ea01(0x299)]=!0x0,this[_0xe1ea01(0x38f)][_0xe1ea01(0x375)][_0xe1ea01(0x32a)]((0x0,i[_0xe1ea01(0x2a1)])(this[_0xe1ea01(0x3c8)]))[_0xe1ea01(0x36e)](_0x4cc260=>{const _0x168725=_0xe1ea01;_0x4cc260===t[_0x168725(0x207)]['ONLINE']?this['_toggleOnline']():this[_0x168725(0x15a)]();}),this[_0xe1ea01(0x38f)][_0xe1ea01(0x3f3)][_0xe1ea01(0x32a)]((0x0,i[_0xe1ea01(0x2a1)])(this[_0xe1ea01(0x3c8)]))[_0xe1ea01(0x36e)](_0x3b657d=>{const _0x253cf8=_0xe1ea01;let _0x481694=_0x3b657d['eventID'];_0x481694===u[_0x253cf8(0x38e)][_0x253cf8(0x22f)]&&this['_onCursorUpdate'](_0x3b657d),_0x481694===u['CollaborationEvent'][_0x253cf8(0x298)]&&this[_0x253cf8(0x20a)](_0x3b657d);}),this['_boardElementStateService'][_0xe1ea01(0x335)]['pipe']((0x0,i[_0xe1ea01(0x2a1)])(this[_0xe1ea01(0x3c8)]))[_0xe1ea01(0x36e)](_0x364e8c=>{const _0x11f5ac=_0xe1ea01;this[_0x11f5ac(0x39a)]&&this[_0x11f5ac(0x2f8)](_0x364e8c);}));}[_0x43dc4d(0x43a)](_0x474cda){const _0x5d99c9=_0x43dc4d;var _0x15a632,_0x51aa7a,_0x3aec94,_0x27c41a;let {memberID:_0x5a4819,selection:_0x5b32d4}=_0x474cda[_0x5d99c9(0x2a7)];if(_0x5a4819===((_0x15a632=(_0x51aa7a=this[_0x5d99c9(0x38f)])[_0x5d99c9(0x254)])==null?void 0x0:_0x15a632['call'](_0x51aa7a)))return;let _0xce65e2=he(_0x5b32d4);if(!_0xce65e2||_0xce65e2[_0x5d99c9(0x219)]!==this['unitID'])return;let _0x467a6d=(_0x3aec94=(_0x27c41a=this[_0x5d99c9(0x35c)]['getMember'](this[_0x5d99c9(0x220)],_0x5a4819))==null?void 0x0:_0x27c41a[_0x5d99c9(0x2c1)])==null?_0x5d99c9(0x334):_0x3aec94,_0x43938b={'color':this[_0x5d99c9(0x431)][_0x5d99c9(0x1fc)](_0x5a4819),'name':_0x467a6d,'unitId':_0xce65e2['unitId'],'subUnitId':_0xce65e2[_0x5d99c9(0x433)],'selectedIds':_0xce65e2[_0x5d99c9(0x426)],'focusedId':_0xce65e2['focusedId'],'selection':_0x5b32d4},_0x31a59e=new Map(this[_0x5d99c9(0x42f)]);_0x31a59e['set'](_0x5a4819,_0x43938b),this[_0x5d99c9(0x290)][_0x5d99c9(0x176)](_0x31a59e);}['_onCursorDelete'](_0x506358){const _0x1b52fe=_0x43dc4d;let {memberID:_0x535506}=_0x506358[_0x1b52fe(0x2a7)],_0x1eaaf1=new Map(this[_0x1b52fe(0x42f)]);_0x1eaaf1[_0x1b52fe(0x245)](_0x535506),this['_cursorInfo$']['next'](_0x1eaaf1);}[_0x43dc4d(0x19f)](){const _0x43d16e=_0x43dc4d;this[_0x43d16e(0x39a)]=!0x0,this[_0x43d16e(0x2f8)](this[_0x43d16e(0x286)][_0x43d16e(0x1d3)]());}[_0x43dc4d(0x15a)](){const _0x5c7ed8=_0x43dc4d;this[_0x5c7ed8(0x39a)]=!0x1;}};j=w([C(0x2,(0x0,n[_0x43dc4d(0x379)])(A)),C(0x3,(0x0,n['Inject'])(t[_0x43dc4d(0x381)])),C(0x4,(0x0,n[_0x43dc4d(0x379)])(e[_0x43dc4d(0x441)]))],j);function ge(_0x363f26){const _0x14f34f=_0x43dc4d;let _0x5ef43b='';for(let _0x55be4e of _0x363f26){let {startOffset:_0x109ab7,endOffset:_0xd6042f,isActive:_0xbec5bc,rangeType:_0x1b9182,segmentId:_0x3447f4,segmentPage:_0x15b579}=_0x55be4e;_0x5ef43b[_0x14f34f(0x2aa)]&&(_0x5ef43b+=','),_0x5ef43b+=_0x109ab7+':'+_0xd6042f+':'+(_0xbec5bc?'1':'0')+':'+_0x1b9182+':'+_0x3447f4+':'+_0x15b579;}return _0x5ef43b;}function _e(_0xdabaef){const _0x2270d2=_0x43dc4d;let _0x1c222f=_0xdabaef['split'](','),_0x1204de=[];for(let _0x32b404 of _0x1c222f){let [_0x4ada40,_0x3ac66e,_0x4fcc60,_0xbe1946,_0xea44b2,_0x54253e]=_0x32b404['split'](':');_0x1204de[_0x2270d2(0x39f)]({'startOffset':Number(_0x4ada40),'endOffset':Number(_0x3ac66e),'collapsed':_0x4ada40===_0x3ac66e,'isActive':_0x4fcc60==='1','rangeType':_0xbe1946===n['DOC_RANGE_TYPE'][_0x2270d2(0x3a2)]?n['DOC_RANGE_TYPE'][_0x2270d2(0x3a2)]:n[_0x2270d2(0x15f)][_0x2270d2(0x412)],'segmentId':typeof _0xea44b2=='string'?String(_0xea44b2):'','segmentPage':Number(_0x54253e==null?-0x1:_0x54253e)});}return _0x1204de[_0x2270d2(0x3c0)](_0x3a8c23=>_0x3a8c23[_0x2270d2(0x184)])||(_0x1204de[0x0][_0x2270d2(0x184)]=!0x0),_0x1204de;}var M=class extends n[_0x43dc4d(0x1e5)]{constructor(..._0x502697){const _0x4b39d6=_0x43dc4d;super(..._0x502697),S(this,_0x4b39d6(0x280),new i[(_0x4b39d6(0x344))](null)),S(this,'collabCursorState$',this[_0x4b39d6(0x280)][_0x4b39d6(0x34b)]());}[_0x43dc4d(0x205)](_0x4f0835){const _0xe0889c=_0x43dc4d;let {unitID:_0x4591fc,memberID:_0x4b92fe,textRanges:_0x585d15}=_0x4f0835,_0x507449=ge(_0x585d15);if(_0x507449==='')return;let _0x36ffbb={'unitID':_0x4591fc,'memberID':_0x4b92fe,'selection':_0x507449};this[_0xe0889c(0x280)][_0xe0889c(0x176)](_0x36ffbb);}};let N=class extends n[_0x43dc4d(0x1e5)]{get['cursorInfo'](){const _0x39e07e=_0x43dc4d;return this[_0x39e07e(0x290)]['getValue']();}get[_0x43dc4d(0x3a8)](){const _0xb29193=_0x43dc4d;return this[_0xb29193(0x32d)][_0xb29193(0x211)]();}constructor(_0x3e37f4,_0x352f8d,_0x4c7d60,_0x349aad,_0x346c2a,_0x30d389,_0x17bf5a,_0x11e5ed,_0x8e2a08){const _0x18f7e7=_0x43dc4d;super(),this[_0x18f7e7(0x220)]=_0x3e37f4,this[_0x18f7e7(0x38f)]=_0x352f8d,this[_0x18f7e7(0x360)]=_0x4c7d60,this[_0x18f7e7(0x431)]=_0x349aad,this[_0x18f7e7(0x35c)]=_0x346c2a,this['_syncEditingCollabCursorService']=_0x30d389,this[_0x18f7e7(0x2bb)]=_0x17bf5a,this[_0x18f7e7(0x455)]=_0x11e5ed,this[_0x18f7e7(0x300)]=_0x8e2a08,S(this,_0x18f7e7(0x39a),!0x1),S(this,_0x18f7e7(0x299),!0x1),S(this,_0x18f7e7(0x290),new i['BehaviorSubject'](new Map())),S(this,'cursorInfo$',this[_0x18f7e7(0x290)][_0x18f7e7(0x34b)]()),S(this,_0x18f7e7(0x32d),new i[(_0x18f7e7(0x344))]([])),S(this,_0x18f7e7(0x3dc),this[_0x18f7e7(0x32d)][_0x18f7e7(0x32a)]((0x0,i['debounceTime'])(0x12c))),S(this,'_updateLocalCursor',(0x0,n['debounce'])(_0x8d58ce=>{const _0x31a02d=_0x18f7e7;let _0x761d11={'eventID':u[_0x31a02d(0x38e)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x31a02d(0x38f)]['getMemberID'](),'selection':ge(_0x8d58ce)}};this[_0x31a02d(0x38f)][_0x31a02d(0x387)](_0x761d11,this['unitID']);},0x64));}[_0x43dc4d(0x453)](){const _0x275050=_0x43dc4d;super[_0x275050(0x453)](),this['_cursorInfo$']['next'](new Map()),this[_0x275050(0x290)]['complete'](),this[_0x275050(0x32d)][_0x275050(0x176)]([]),this['_roomMembers$'][_0x275050(0x2ca)]();}[_0x43dc4d(0x318)](){const _0x5b29dd=_0x43dc4d;this[_0x5b29dd(0x299)]||(this[_0x5b29dd(0x299)]=!0x0,this[_0x5b29dd(0x38f)][_0x5b29dd(0x375)][_0x5b29dd(0x32a)]((0x0,i[_0x5b29dd(0x2a1)])(this[_0x5b29dd(0x3c8)]))['subscribe'](_0x5b1e5c=>{const _0x572825=_0x5b29dd;_0x5b1e5c===t[_0x572825(0x207)][_0x572825(0x301)]?this[_0x572825(0x19f)]():this[_0x572825(0x15a)]();}),this[_0x5b29dd(0x38f)][_0x5b29dd(0x3f3)][_0x5b29dd(0x32a)]((0x0,i[_0x5b29dd(0x2a1)])(this['dispose$']))[_0x5b29dd(0x36e)](_0x415c33=>{const _0x2c000c=_0x5b29dd;let _0x3321c0=_0x415c33[_0x2c000c(0x1b1)];_0x3321c0===u[_0x2c000c(0x38e)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x415c33),_0x3321c0===u[_0x2c000c(0x38e)][_0x2c000c(0x298)]&&this[_0x2c000c(0x20a)](_0x415c33);}),this[_0x5b29dd(0x365)](this[_0x5b29dd(0x300)][_0x5b29dd(0x3b2)](_0x2d07f9=>{const _0x29e6ee=_0x5b29dd;let _0x48af9d=_0x2d07f9[_0x29e6ee(0x22c)];_0x48af9d!=null&&this[_0x29e6ee(0x39a)]&&_0x2d07f9['id']===f[_0x29e6ee(0x417)]['id']&&_0x48af9d[_0x29e6ee(0x219)]===this[_0x29e6ee(0x220)]&&_0x48af9d[_0x29e6ee(0x1a7)]===!0x1&&_0x48af9d['ranges']['length']>0x0&&this[_0x29e6ee(0x2f8)](_0x48af9d[_0x29e6ee(0x389)]);})),this[_0x5b29dd(0x164)][_0x5b29dd(0x37e)][_0x5b29dd(0x32a)]((0x0,i[_0x5b29dd(0x2a1)])(this[_0x5b29dd(0x3c8)]))[_0x5b29dd(0x36e)](_0x320eee=>{const _0x2f0960=_0x5b29dd;if((_0x320eee==null?void 0x0:_0x320eee[_0x2f0960(0x220)])!==this['unitID'])return;let _0x419b4f={'eventID':u[_0x2f0960(0x38e)]['UPDATE_CURSOR'],'data':_0x320eee};this['_onCursorUpdate'](_0x419b4f);}),this[_0x5b29dd(0x365)](this['_commandService'][_0x5b29dd(0x3b2)](_0x3672e9=>{const _0x4cf80a=_0x5b29dd;if(_0x3672e9[_0x4cf80a(0x22c)]==null)return;let _0x173128=_0x3672e9[_0x4cf80a(0x22c)];if(_0x3672e9['id']!==f[_0x4cf80a(0x1a3)]['id']||_0x173128[_0x4cf80a(0x219)]!==this[_0x4cf80a(0x220)])return;let _0x27b280={'id':_0x4cf80a(0x226),'params':_0x173128},_0x3fd3d8=this[_0x4cf80a(0x42f)];for(let [_0x452d97,_0x495410]of _0x3fd3d8){let _0x3c41bc={'id':_0x4cf80a(0x226),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x495410[_0x4cf80a(0x389)]}},_0x4fcbd1=this[_0x4cf80a(0x2bb)][_0x4cf80a(0x256)](_0x27b280,_0x3c41bc,!0x1);if((0x0,u[_0x4cf80a(0x3ea)])(_0x4fcbd1))throw _0x4fcbd1[_0x4cf80a(0x3e2)];_0x3fd3d8['set'](_0x452d97,{..._0x495410,'ranges':_0x4fcbd1[_0x4cf80a(0x3ec)][_0x4cf80a(0x22c)][_0x4cf80a(0x374)]});}queueMicrotask(()=>{const _0x14827c=_0x4cf80a;this[_0x14827c(0x290)][_0x14827c(0x176)](_0x3fd3d8);});})));}[_0x43dc4d(0x43a)](_0x2b00c4){const _0x4b3161=_0x43dc4d;var _0x518a7a,_0xecab1c;let {memberID:_0x317cf8,selection:_0x487997}=_0x2b00c4['data'],_0x26c696=_e(_0x487997),_0x180b02=(_0x518a7a=(_0xecab1c=this[_0x4b3161(0x35c)]['getMember'](this[_0x4b3161(0x220)],_0x317cf8))==null?void 0x0:_0xecab1c['name'])==null?_0x4b3161(0x334):_0x518a7a,_0x1cd0d4={'color':this[_0x4b3161(0x431)][_0x4b3161(0x1fc)](_0x317cf8),'name':_0x180b02,'ranges':_0x26c696},_0x352086=this[_0x4b3161(0x42f)];_0x352086[_0x4b3161(0x1de)](_0x317cf8,_0x1cd0d4),this[_0x4b3161(0x290)][_0x4b3161(0x176)](_0x352086);}[_0x43dc4d(0x20a)](_0x48c836){const _0x3c005e=_0x43dc4d;let {memberID:_0x2f7c85}=_0x48c836[_0x3c005e(0x2a7)],_0x4c7693=this['cursorInfo'];_0x4c7693[_0x3c005e(0x245)](_0x2f7c85),this[_0x3c005e(0x290)][_0x3c005e(0x176)](_0x4c7693);}['_toggleOnline'](){const _0x47dd84=_0x43dc4d;var _0x45f1e4;if(this['_online']=!0x0,((_0x45f1e4=this[_0x47dd84(0x455)]['getFocusedUnit']())==null?void 0x0:_0x45f1e4[_0x47dd84(0x319)]())!==this[_0x47dd84(0x220)])return;let _0x22c2f1=this['_injector'][_0x47dd84(0x2e2)](f['DocSelectionManagerService'])[_0x47dd84(0x1f6)]();Array[_0x47dd84(0x152)](_0x22c2f1)&&_0x22c2f1[_0x47dd84(0x2aa)]>0x0&&this[_0x47dd84(0x2f8)](_0x22c2f1);}[_0x43dc4d(0x15a)](){const _0x175218=_0x43dc4d;this[_0x175218(0x39a)]=!0x1;}};N=w([C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x3,(0x0,n['Inject'])(A)),C(0x4,(0x0,n['Inject'])(t[_0x43dc4d(0x381)])),C(0x5,(0x0,n[_0x43dc4d(0x379)])(M)),C(0x6,u['ITransformService']),C(0x7,n['IUniverInstanceService']),C(0x8,n[_0x43dc4d(0x27c)])],N);const ve=()=>{let _0x23bd8f=[],_0x38eb2f=!0x1;return _0x4066aa=>{_0x23bd8f['push'](_0x4066aa),_0x38eb2f||(_0x38eb2f=!0x0,setTimeout(()=>{_0x23bd8f['forEach'](_0x528354=>_0x528354()),_0x23bd8f=[],_0x38eb2f=!0x1;}));};};let P=class extends n[_0x43dc4d(0x1e5)]{get[_0x43dc4d(0x42f)](){const _0x1ba0e0=_0x43dc4d;return this['_cursorInfo$'][_0x1ba0e0(0x211)]();}get[_0x43dc4d(0x3a8)](){const _0x188523=_0x43dc4d;return this[_0x188523(0x32d)][_0x188523(0x211)]();}constructor(_0x23fc15,_0x54db38,_0x51f1f5,_0x5f0739,_0x3108f7,_0x40f7c7,_0xaa37a4,_0x27de59){const _0x4381ac=_0x43dc4d;super(),this[_0x4381ac(0x220)]=_0x23fc15,this[_0x4381ac(0x38f)]=_0x54db38,this[_0x4381ac(0x360)]=_0x51f1f5,this[_0x4381ac(0x431)]=_0x5f0739,this[_0x4381ac(0x35c)]=_0x3108f7,this[_0x4381ac(0x455)]=_0x40f7c7,this[_0x4381ac(0x300)]=_0xaa37a4,this['_refRangeService']=_0x27de59,S(this,'_online',!0x1),S(this,_0x4381ac(0x299),!0x1),S(this,_0x4381ac(0x290),new i[(_0x4381ac(0x344))](new Map())),S(this,'cursorInfo$',this[_0x4381ac(0x290)]['asObservable']()),S(this,'_roomMembers$',new i[(_0x4381ac(0x344))]([])),S(this,'roomMembers$',this[_0x4381ac(0x32d)][_0x4381ac(0x32a)]((0x0,i[_0x4381ac(0x436)])(0x12c))),S(this,'_updateLocalCursor',(0x0,n[_0x4381ac(0x240)])((_0x159590,_0x50c5e9)=>{const _0x130d82=_0x4381ac;let _0x231cbb={'eventID':u[_0x130d82(0x38e)][_0x130d82(0x22f)],'data':{'unitID':this[_0x130d82(0x220)],'memberID':this[_0x130d82(0x38f)][_0x130d82(0x254)](),'selection':(0x0,g[_0x130d82(0x337)])(_0x159590,_0x50c5e9[_0x130d82(0x218)])}};this[_0x130d82(0x38f)]['send'](_0x231cbb,this['unitID']);},0x64));}[_0x43dc4d(0x453)](){const _0x357675=_0x43dc4d;super[_0x357675(0x453)](),this[_0x357675(0x290)]['next'](new Map()),this[_0x357675(0x290)][_0x357675(0x2ca)](),this[_0x357675(0x32d)][_0x357675(0x176)]([]),this[_0x357675(0x32d)]['complete']();}['init'](){const _0x3ac37e=_0x43dc4d;this[_0x3ac37e(0x299)]||(this[_0x3ac37e(0x299)]=!0x0,this['_session']['sessionStatus$']['pipe']((0x0,i['takeUntil'])(this[_0x3ac37e(0x3c8)]))['subscribe'](_0x4c9eab=>{const _0x39adc5=_0x3ac37e;_0x4c9eab===t[_0x39adc5(0x207)][_0x39adc5(0x301)]?this['_toggleOnline']():this[_0x39adc5(0x15a)]();}),this[_0x3ac37e(0x38f)]['event$'][_0x3ac37e(0x32a)]((0x0,i[_0x3ac37e(0x2a1)])(this[_0x3ac37e(0x3c8)]))[_0x3ac37e(0x36e)](_0x420873=>{const _0x23eef5=_0x3ac37e;let _0x3740bc=_0x420873['eventID'];_0x3740bc===u['CollaborationEvent'][_0x23eef5(0x22f)]&&this[_0x23eef5(0x43a)](_0x420873),_0x3740bc===u[_0x23eef5(0x38e)][_0x23eef5(0x298)]&&this['_onCursorDelete'](_0x420873);}),this[_0x3ac37e(0x20b)](),this['disposeWithMe'](this['_commandService'][_0x3ac37e(0x3b2)](_0x2204b3=>{const _0x1d6bdf=_0x3ac37e;if(this[_0x1d6bdf(0x39a)]&&_0x2204b3['id']===_['SetSelectionsOperation']['id']&&_0x2204b3[_0x1d6bdf(0x22c)][_0x1d6bdf(0x219)]===this[_0x1d6bdf(0x220)]){let _0x8399ab=_0x2204b3['params'];this[_0x1d6bdf(0x2f8)](_0x8399ab[_0x1d6bdf(0x433)],_0x8399ab[_0x1d6bdf(0x1f0)][0x0]);}})));}[_0x43dc4d(0x43a)](_0x428fb9){const _0x473c5d=_0x43dc4d;var _0x2559d2,_0x943829;let {memberID:_0x52c203,selection:_0xc04fb7}=_0x428fb9[_0x473c5d(0x2a7)],{sheetName:_0x2caf83,range:_0x473fb0}=(0x0,g[_0x473c5d(0x261)])(_0xc04fb7),_0x4eff54={'name':(_0x2559d2=(_0x943829=this[_0x473c5d(0x35c)][_0x473c5d(0x1b2)](this[_0x473c5d(0x220)],_0x52c203))==null?void 0x0:_0x943829['name'])==null?_0x473c5d(0x334):_0x2559d2,'range':this[_0x473c5d(0x195)](_0x2caf83,_0x473fb0),'sheetID':_0x2caf83,'color':this[_0x473c5d(0x431)]['assignAColorForMemberID'](_0x52c203),'selection':_0xc04fb7},_0x1a574a=this[_0x473c5d(0x42f)];_0x1a574a[_0x473c5d(0x1de)](_0x52c203,_0x4eff54),this['_cursorInfo$']['next'](_0x1a574a);}[_0x43dc4d(0x20a)](_0x42ff8f){const _0x170224=_0x43dc4d;let {memberID:_0x20bc25}=_0x42ff8f['data'],_0x82410e=this['cursorInfo'];_0x82410e[_0x170224(0x245)](_0x20bc25),this['_cursorInfo$']['next'](_0x82410e);}['_getMergeRange'](_0x2f9b2,_0x22c9e5){const _0x103cc9=_0x43dc4d;var _0x3f90fe;let _0x168191=(_0x3f90fe=this[_0x103cc9(0x455)]['getUnit'](this[_0x103cc9(0x220)],n[_0x103cc9(0x35f)][_0x103cc9(0x271)]))==null||(_0x3f90fe=_0x3f90fe['getSheetBySheetId'](_0x2f9b2))==null?void 0x0:_0x3f90fe[_0x103cc9(0x3bd)]();return(_0x168191==null?void 0x0:_0x168191[_0x103cc9(0x402)](_0x2885b6=>n[_0x103cc9(0x33b)][_0x103cc9(0x446)](_0x2885b6,_0x22c9e5)))||_0x22c9e5;}[_0x43dc4d(0x20b)](){const _0x596afb=_0x43dc4d;let _0x43fa9b=new n[(_0x596afb(0x3cb))](),_0x2040ba=ve(),_0x39b041=()=>{const _0x41ed2c=_0x596afb;_0x43fa9b[_0x41ed2c(0x453)]();let _0x5cc835=(_0x216b7c,_0x38120f,_0x120f1e,_0x47899e)=>{const _0xd3f401=_0x41ed2c;let _0x234219=[];switch(_0x216b7c['id']){case _[_0xd3f401(0x14b)][_0xd3f401(0x2f5)]:_0x234219=(0x0,_[_0xd3f401(0x397)])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x30e)]:_0x234219=(0x0,_[_0xd3f401(0x255)])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x398)]:_0x234219=(0x0,_['handleInsertCol'])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x2a6)]:_0x234219=(0x0,_[_0xd3f401(0x3d1)])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x27b)]:_0x234219=(0x0,_['handleInsertRangeMoveRight'])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x36d)]:_0x234219=(0x0,_[_0xd3f401(0x3ff)])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)]['MoveRangeCommandId']:_0x234219=(0x0,_[_0xd3f401(0x1b5)])(_0x216b7c,_0x47899e);break;case _[_0xd3f401(0x14b)][_0xd3f401(0x392)]:_0x234219=(0x0,_['handleIRemoveCol'])(_0x216b7c,_0x47899e);break;case _['EffectRefRangId'][_0xd3f401(0x1b8)]:_0x234219=(0x0,_['handleIRemoveRow'])(_0x216b7c,_0x47899e);break;}let _0x7c8ed3=(0x0,_[_0xd3f401(0x22a)])(_0x234219,_0x47899e),_0x5b8ecd=this[_0xd3f401(0x42f)][_0xd3f401(0x2e2)](_0x38120f);if(_0x5b8ecd&&_0x7c8ed3){let _0x132ff8={..._0x5b8ecd,'range':_0x7c8ed3};this['cursorInfo'][_0xd3f401(0x1de)](_0x38120f,_0x132ff8),_0x2040ba(()=>{const _0x566de5=_0xd3f401;let _0xe4ba57=this[_0x566de5(0x3d4)]['registerRefRange'](_0x7c8ed3,_0x4eeee6=>(_0xe4ba57[_0x566de5(0x453)](),_0x5cc835(_0x4eeee6,_0x38120f,_0x120f1e,_0x7c8ed3)));_0x43fa9b[_0x566de5(0x1a1)](_0xe4ba57);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x41ed2c(0x24a)]((_0x445b1b,_0xcdd84f)=>{const _0x5e4184=_0x41ed2c;let {range:_0x4ab255,sheetID:_0x43b091}=_0x445b1b,_0x5de25f=this[_0x5e4184(0x3d4)][_0x5e4184(0x269)](_0x4ab255,_0x5beea6=>(_0x5de25f[_0x5e4184(0x453)](),_0x5cc835(_0x5beea6,_0xcdd84f,_0x43b091,_0x4ab255)));_0x43fa9b[_0x5e4184(0x1a1)](_0x5de25f);});};this[_0x596afb(0x365)]((0x0,n[_0x596afb(0x2f2)])(this[_0x596afb(0x290)][_0x596afb(0x36e)](()=>{_0x39b041();})));}[_0x43dc4d(0x19f)](){const _0x51bda3=_0x43dc4d;var _0xc7aab1,_0x1c201c;if(this['_online']=!0x0,((_0xc7aab1=this['_univerInstanceService'][_0x51bda3(0x44b)]())==null?void 0x0:_0xc7aab1['getUnitId']())!==this['unitID'])return;let _0xf08643=(_0x1c201c=this[_0x51bda3(0x360)][_0x51bda3(0x2e2)](_['SheetsSelectionsService'])[_0x51bda3(0x2c3)]())==null?void 0x0:_0x1c201c[0x0],_0x3bf094=this[_0x51bda3(0x455)][_0x51bda3(0x36c)](n[_0x51bda3(0x35f)][_0x51bda3(0x271)])['getActiveSheet']();_0xf08643&&_0x3bf094&&this[_0x51bda3(0x2f8)](_0x3bf094['getSheetId'](),_0xf08643);}[_0x43dc4d(0x15a)](){const _0x523430=_0x43dc4d;this[_0x523430(0x39a)]=!0x1;}};P=w([C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x3,(0x0,n[_0x43dc4d(0x379)])(A)),C(0x4,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x381)])),C(0x5,n[_0x43dc4d(0x148)]),C(0x6,n[_0x43dc4d(0x27c)]),C(0x7,(0x0,n[_0x43dc4d(0x379)])(_['RefRangeService']))],P);function ye(_0x81562d){const _0x1db8ea=_0x43dc4d;let _0xe263a0;try{_0xe263a0=JSON[_0x1db8ea(0x367)](_0x81562d);}catch{return null;}if(typeof _0xe263a0!=_0x1db8ea(0x3df)||!_0xe263a0)return null;let _0x7763eb=_0xe263a0;if(_0x7763eb[_0x1db8ea(0x345)]!=='slide-element-selection'||typeof _0x7763eb[_0x1db8ea(0x219)]!=_0x1db8ea(0x437)||typeof _0x7763eb['subUnitId']!='string')return null;let _0x6d669a=Array[_0x1db8ea(0x152)](_0x7763eb['selectedIds'])?_0x7763eb[_0x1db8ea(0x426)][_0x1db8ea(0x3e5)](_0x4d6327=>typeof _0x4d6327==_0x1db8ea(0x437)):[],_0x556ae6=typeof _0x7763eb[_0x1db8ea(0x2b7)]==_0x1db8ea(0x437)?_0x7763eb[_0x1db8ea(0x2b7)]:null;return{'kind':_0x1db8ea(0x331),'unitId':_0x7763eb['unitId'],'subUnitId':_0x7763eb[_0x1db8ea(0x433)],'selectedIds':_0x6d669a,'focusedId':_0x556ae6};}let F=class extends n[_0x43dc4d(0x1e5)]{get[_0x43dc4d(0x42f)](){const _0x27abb0=_0x43dc4d;return this[_0x27abb0(0x290)][_0x27abb0(0x211)]();}get[_0x43dc4d(0x3a8)](){const _0x4a5c64=_0x43dc4d;return this[_0x4a5c64(0x32d)]['getValue']();}constructor(_0x112f87,_0x426660,_0x2531c7,_0x25d4a2,_0x5c6b04){const _0x167741=_0x43dc4d;super(),this[_0x167741(0x220)]=_0x112f87,this[_0x167741(0x38f)]=_0x426660,this[_0x167741(0x431)]=_0x2531c7,this[_0x167741(0x35c)]=_0x25d4a2,this['_slideDrawingStateService']=_0x5c6b04,S(this,_0x167741(0x39a),!0x1),S(this,'_init',!0x1),S(this,_0x167741(0x290),new i[(_0x167741(0x344))](new Map())),S(this,_0x167741(0x1a6),this[_0x167741(0x290)][_0x167741(0x34b)]()),S(this,_0x167741(0x32d),new i[(_0x167741(0x344))]([])),S(this,_0x167741(0x3dc),this[_0x167741(0x32d)][_0x167741(0x32a)]((0x0,i[_0x167741(0x436)])(0x12c))),S(this,_0x167741(0x2f8),(0x0,n[_0x167741(0x240)])(_0xfbf4ac=>{const _0x317d5f=_0x167741;let _0x3c9bab=_0xfbf4ac[_0x317d5f(0x1e6)];if(!_0x3c9bab||_0x3c9bab[_0x317d5f(0x219)]!==this[_0x317d5f(0x220)])return;let _0x4a0b08={'kind':_0x317d5f(0x331),'unitId':_0x3c9bab['unitId'],'subUnitId':_0x3c9bab[_0x317d5f(0x433)],'selectedIds':_0xfbf4ac[_0x317d5f(0x426)]['filter'](_0x5978b9=>typeof _0x5978b9==_0x317d5f(0x437)),'focusedId':_0xfbf4ac['focusedId']},_0x25bc0e={'eventID':u[_0x317d5f(0x38e)][_0x317d5f(0x22f)],'data':{'unitID':this[_0x317d5f(0x220)],'memberID':this[_0x317d5f(0x38f)]['getMemberID'](),'selection':JSON['stringify'](_0x4a0b08)}};this[_0x317d5f(0x38f)][_0x317d5f(0x387)](_0x25bc0e,this[_0x317d5f(0x220)]);},0x64));}[_0x43dc4d(0x453)](){const _0x42056d=_0x43dc4d;super[_0x42056d(0x453)](),this['_cursorInfo$']['next'](new Map()),this[_0x42056d(0x290)][_0x42056d(0x2ca)](),this['_roomMembers$'][_0x42056d(0x176)]([]),this[_0x42056d(0x32d)][_0x42056d(0x2ca)]();}[_0x43dc4d(0x318)](){const _0x34a899=_0x43dc4d;this[_0x34a899(0x299)]||(this['_init']=!0x0,this[_0x34a899(0x38f)][_0x34a899(0x375)]['pipe']((0x0,i['takeUntil'])(this[_0x34a899(0x3c8)]))[_0x34a899(0x36e)](_0x556f3c=>{const _0x296da4=_0x34a899;_0x556f3c===t[_0x296da4(0x207)]['ONLINE']?this[_0x296da4(0x19f)]():this[_0x296da4(0x15a)]();}),this[_0x34a899(0x38f)][_0x34a899(0x3f3)][_0x34a899(0x32a)]((0x0,i['takeUntil'])(this[_0x34a899(0x3c8)]))[_0x34a899(0x36e)](_0x334ff0=>{const _0x13214c=_0x34a899;let _0x2a8801=_0x334ff0[_0x13214c(0x1b1)];_0x2a8801===u[_0x13214c(0x38e)][_0x13214c(0x22f)]&&this[_0x13214c(0x43a)](_0x334ff0),_0x2a8801===u[_0x13214c(0x38e)][_0x13214c(0x298)]&&this['_onCursorDelete'](_0x334ff0);}),this[_0x34a899(0x18a)]['state$'][_0x34a899(0x32a)]((0x0,i[_0x34a899(0x2a1)])(this['dispose$']))[_0x34a899(0x36e)](_0x51ccee=>{this['_online']&&this['_updateLocalCursor'](_0x51ccee);}));}['_onCursorUpdate'](_0x18f9b7){const _0x251a72=_0x43dc4d;var _0xb4f4fd,_0x385cf8,_0x15c644,_0x2087bd;let {memberID:_0x36f458,selection:_0x4b4d02}=_0x18f9b7[_0x251a72(0x2a7)];if(_0x36f458===((_0xb4f4fd=(_0x385cf8=this[_0x251a72(0x38f)])[_0x251a72(0x254)])==null?void 0x0:_0xb4f4fd['call'](_0x385cf8)))return;let _0x2b7dbe=ye(_0x4b4d02);if(!_0x2b7dbe||_0x2b7dbe['unitId']!==this[_0x251a72(0x220)])return;let _0x41d8b9=(_0x15c644=(_0x2087bd=this[_0x251a72(0x35c)][_0x251a72(0x1b2)](this[_0x251a72(0x220)],_0x36f458))==null?void 0x0:_0x2087bd['name'])==null?'Unknown\x20user':_0x15c644,_0x506452={'color':this[_0x251a72(0x431)][_0x251a72(0x1fc)](_0x36f458),'name':_0x41d8b9,'unitId':_0x2b7dbe[_0x251a72(0x219)],'subUnitId':_0x2b7dbe[_0x251a72(0x433)],'selectedIds':_0x2b7dbe['selectedIds'],'focusedId':_0x2b7dbe[_0x251a72(0x2b7)],'selection':_0x4b4d02},_0x2e831b=new Map(this[_0x251a72(0x42f)]);_0x2e831b['set'](_0x36f458,_0x506452),this[_0x251a72(0x290)]['next'](_0x2e831b);}['_onCursorDelete'](_0x2bd335){const _0x13687b=_0x43dc4d;let {memberID:_0x5a1823}=_0x2bd335[_0x13687b(0x2a7)],_0xcb6880=new Map(this['cursorInfo']);_0xcb6880[_0x13687b(0x245)](_0x5a1823),this[_0x13687b(0x290)][_0x13687b(0x176)](_0xcb6880);}[_0x43dc4d(0x19f)](){const _0x44c328=_0x43dc4d;this[_0x44c328(0x39a)]=!0x0,this[_0x44c328(0x2f8)](this[_0x44c328(0x18a)][_0x44c328(0x1d3)]());}[_0x43dc4d(0x15a)](){const _0x92b769=_0x43dc4d;this[_0x92b769(0x39a)]=!0x1;}};F=w([C(0x2,(0x0,n[_0x43dc4d(0x379)])(A)),C(0x3,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x381)])),C(0x4,(0x0,n[_0x43dc4d(0x379)])(v['ISlideDrawingStateService']))],F);function _0x1e5c(){const _0x114bbb=['flatMap','registerBeforeClose','Inject','_checkCalculationAvailable','isTransformMutationsWithChangesetSuccess','_releaseCalculationLimit','width','collabCursorState$','reconnect','getActivePageId','MemberService','_isBlinkVisible','createElement','TRANSFORM_CHANGE_OBSERVABLE_TYPE','exhaustSavingTask','LoadingMultiIcon','send','urlChange$','ranges','clear','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','distinctUntilChanged','jsxs','CollaborationEvent','_session','_updateMessage','SYNCED','RemoveColCommandId','CollaborationSessionService','_lastPointer','\x20at\x20','setConfig','handleDeleteRangeMoveLeft','InsertColCommandId','currentSkeleton$','_online','_showText','_uploadLog','_initDependencies','highlightSecond','push','_lastResponseTimestamp','colorClass','TEXT','UNIVER_BOARD','SnapshotLoadStage','prototype','_getSaveTimeout','univer-inline-flex\x20univer-items-center\x20univer-justify-center','roomMembers','saveTaskMap','getRangePointData','getCollabEntity$',',\x200.2)','yellow.400','red.300','functionsExecutedState','startsWith','/universer-api/license/formula/limit/start','onCommandExecuted','_heartbeatTimer','_blinkIntervalTimer','_updateURLWithCurrentState','generateRandomId','LOCAL_CACHE_INTERVAL','engine','_isApplyingOverlays','saveImage','slice','_getSceneObjectByKey','getMergeData','_hideTimer','_handoffPreview','some','_setInteractionBlocked','_drawTextRange','collaboration-client-ui.conflict.content','RemoteUniscriptService','72weQWCg','location','2921150YHZTIV','dispose$','previewReady','measureText','DisposableCollection','collaboration-client-ui.collaboration.closeRoom','setItem','NO_OTHER_CLIENTS_EDITING','fromEvent','redoState','handleInsertRangeMoveDown','UniverCollaborationPlugin','toPrimitive','_refRangeService','_stopBlinking','_messageService','rgb','BOARD_TOP_RIGHT_MENU_LEADING_PART','_getScale','START_CALCULATION','_scheduleHeartbeat','roomMembers$','spin','_timeoutState$','object','_taskIds','_blockProgressWatches','error','removeObjects','_collaborationSessionService','filter','_getSheetObject','collaboration-client-ui.collabClient.tooltip.reconnect','stage','now','isTransformMutationFailure','popstate','m2Prime','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SnapshotLoadingService','_hover','getConfig','Disposable','removeEventListener','event$','_monkeyPatchLogService','fill','FETCH_MISS','AWAITING','previewCellData','UNIVER_DOC','executionId','whenReady','_initCommandInterceptor','_unitOnClients','MessageType','handleInsertRow','backgroundColor','_labelPosition','find','startRow','getTypeOfUnitAdded$','UniverLicensePlugin','span','key','editingUnit','_messageIds','_docTransformIMECacheService','ITransformService','onPointerEnter$','buildDrawingOKey','transformRemoteChangeset','totalBlocks','undoState','fillText','RECT','_shortcutBlock','DocSelectionManagerService','_saveCache','DependentOn','SetTextSelectionsOperation','merge','[Unhandled\x20Rejection]:\x20','loadedBlocks','pageManager','type','_renderScheduled','_anchor','_docSyncEditingCollabCursorService','search','pushState','/universer-api/frontend/logs','UnitStatus','toRgbString','_localCacheService','selectedIds','UniverDocsUIPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_scheduleRender','column','univer-transition-all\x20univer-duration-200','transformIMECache','_docStateChangeManagerService','IURLService','cursorInfo','57828fRjasi','_colorAssignService','IUIPartsService','subUnitId','_renderManagerService','jiqing.500','debounceTime','string','runId','_logService','_onCursorUpdate','Enter','indicator','tooltipKey','mergeOverrideWithDependencies','getUndoRedoMutationParamsCache','_highlightSecond','IBoardElementStateService','fillStyle','_transformUndoRedoStack','onPointerMove$','labelPosition','contains','primary','registerRenderModule','_notificationService','collaboration-client-ui.formula.calculation.unable','getFocusedUnit','switchMap','activeSheetId','wsSessionTicketUrl','black','_hovered','DocSkeletonManagerService','deepClone','dispose','_startBlinking','_univerInstanceService','clsx','_entities','univer-text-blue-500','_drawRectRange','_registerDependencies','UNIVER_SLIDE','snapshot-loading-','timedOut','scene','getRealBound','_initStatusListener','getObjectIncludeInGroup','IUniverInstanceService','highlight','setInterval','EffectRefRangId','toString','_localStorageService','_docTransformSelectionsService','has','_config','CollaborationStatus','isArray','...','_createSocketURL','decorate','transformMutationsWithChangeset','_clearOtherTimers','true','univer-m-0\x20univer-p-0','_toggleOffline','_scheduleClearOtherTimer','isFormulaId','_transformPreviousActiveRange','_imageIoService','DOC_RANGE_TYPE','getRenderUnitById','_sheetLoadingRenderService','transformStateCache','isInternalEditorID','_syncEditingCollabCursorService','timeoutId','getColor','PERMISSION_DENIED','activeSlideId$','Workbook','stack','_highlight','_ensureSubject','_collaborationController','0.2)','_handleLeaveEvent','univer-text-green-500','clearTimeout','_applyCommand','186aJvKKP','RegularPolygon','toStringTag','next','useCallback','debug','socket$','_startCalculationLimit','getSheetId','_handleEvent','setParam','hovered','polite','NOT_COLLAB','_shortcutService','getActiveRange','collaboration-client-ui.collabStatus.notCollab','isActive','defineProperty','/universer-api/license/formula/limit/status','NodePositionConvertToCursor','_context','_setFormulaLimitStatus','_slideDrawingStateService','univer-text-red-500','href','GLOBAL','currentUsage','getLocalCacheKey','TEXT_RANGE_LAYER_INDEX','_document','ISheetLoadingRenderService','moveTo','transformByState','_getMergeRange','_uiPartsService','showSkeleton','strokeWidth','getViewport','snapshot-loading-timeout','#4f46e5','_selfUnitIDs','_getLighterColor','LOADING_BLOCKS','_toggleOnline','UniverCollaborationClientPlugin','add','_transformHistoryAndStateStack','RichTextEditingMutation',':backup:','_interactionBlocked$','cursorInfo$','isEditing','_getObjectBounds','\x20-\x20','_revisionService','WarningIcon','_docSkeleton','_startDocCollabCursor','SOCKET_FAILED','_pluginService','onStarting','eventID','getMember','purple.300','getAllUnitsForType','handleMoveRange','shareReplay','slide-collab-cursor-','RemoveRowCommandId','_getAnchorBounding','_draw','_textBubble','getCollabCursors$','selection','registerComponent','subunit','startColumn','getOffsetConfig','board-collab-cursor-','theme$','workbookShell','left','2213WgDvCr','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','result','collaboration-client-ui.formula.calculation.waiting','UniverRenderEnginePlugin','disableLocalCache','getCellIndexByOffset','row','Injector','_saveTaskMap','_instanceService','ErrorCode','SetFormulaCalculationNotificationMutation','getSnapshot','evenodd','height','_beforeCloseService','_updateCollabCursors','ILocalCacheService','_unitStatus','CollaborationUIEventService','SHEET_VIEWPORT_KEY','OTHER_CLIENTS_EDITING','_offsetY','set','_latestStates','call','parseInt','CollaborationUIEventId','ISocketService','collaboration-client-ui.config','RxDisposable','context','lineWidth','lineTo','_latestCursors','executeCommand','_handleHeartbeatEvent','SetWorksheetActivateCommand','_cursors','fromEventSubject','IRenderManagerService','selections','save','searchParams','showText','LOCAL_CACHE_INTERVAL_KEY','UniverCollaborationClientUIPlugin','getDocRanges','_anchorDot','_handleHover','loadUnit','map','addEventListener','assignAColorForMemberID','board-element-selection','_eventUnsubscribe','_initEvent','UniverUIPlugin','collaboration-client-ui.conflict.title','_setupSubUnitSync','setActiveRange','_sheetSkeletonManagerService','syncEditingCollabCursor','currentTheme$','SessionStatus','NodePositionConvertToRectRange','combineLatest','_onCursorDelete','_onRefRangeChange','backupOfflineData','useObservable','_send','FromArray','_initStatusComponent','getValue','show','ILogService','sheetID','DEFAULT_WS_SESSION_TICKET_URL','setLineDash','_startBoardCollabCursor','range','unitId','Rect','handoff','HEADER_MENU','_hidePreview','308eQvnFX','setTimeout','unitID','getItem','_entityInit$','div','CLOSE_ROOM','setUndoRedoMutationParamsCache','doc.mutation.rich-text-editing','_configService','_startSlideCollabCursor','addClipboardHook','runRefRangeMutations','ISnapshotServerService','params','message','hide','UPDATE_CURSOR','symbol','FormulaExecutedStateType','SetDocZoomRatioOperation','onRendered','_colorIndex','OTHER_CLIENT_EDITING','@univerjs-pro/collaboration-client-ui','useDependency','FormulaExecuteStageType','_dataLoaderService','bind','_urlService','_hasFormulaInDirtyRanges','collaboration-client-ui.permission.content','pulse','_pollingInterval','debounce','requireSession','color','_checkAndWaitForCalculationPermission','with','delete','endRow','m1Prime','ColorKit','univer-flex\x20univer-items-center\x20univer-justify-center','forEach','Tools','UniverNetworkPlugin','_status$','_httpService','runOnServer','_backgroundColor','dirtyRanges','LocaleService','_name','getMemberID','handleDeleteRangeMoveUp','transformMutation','lineno','text','Warning','collaboration-client-ui.session.collaboration-timeout','_doCreateSocket','angle','value','from','reason','replace','deserializeRangeWithSheet','collaboration-client-ui.session.connection-failed','PENDING','stringify','Shape','_updateSheetPreview','subscribeEvent','sessionTicket','registerRefRange','BuiltInUIPart','Error','_labelHorizontalPosition','setAlpha','248409dmcEvJ','ACTIVE_UNIT_EVENT_CHANNEL','Failed','UNIVER_SHEET','_clearTimeoutState','Fragment','newValue','_clearPolling','COLORS','clearInterval','disposeUnit','Vector2','right','InsertRangeMoveRightCommandId','ICommandService','onMouseMove','post','bottom','_collabCursorState$','1250665uopQqh','rgba','getId','button','SheetCollabCursorShape','_boardElementStateService','_removeCollabCursors','endColumn','_initResize','offsetY','univer-text-orange-500','enableDocumentCollaborationUI','Loading','activeSheet$','status','_cursorInfo$','COMPLETE','_maxFormulaLimit','getColorFromTheme','_removeClearOtherTimer','function','[Window\x20Error]:\x20','_initCommandExecutedListener','USERS_LEAVE','_init','values','bold\x2013px\x20Arial,\x20sans-serif','min','setShapeProps','_clearBlockProgressWatch','78bfMhtv','_setupBeforeClosingHandler','takeUntil','addObjects','/universer-api/license/formula/limit/done','_id','HTTPService','InsertRangeMoveDownCommandId','data','AWAITING_WITH_PENDING','small','length','replaceDocRanges','_drawAnchor','resolve','Subject','addObject','getUnit','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Button','removeObject','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','getActiveSlide','onTransformChange$','focusedId','blue.400','Optional','collaboration-client-ui.collabStatus.offline','_transformService','_range','green.600','ticket','_cursor','static','name','drawWith','getCurrentSelections','connectInjector','_docClipboardService','_updateSubUnitFromURLParams','includes','loadOfflineData','univer-border-none\x20univer-bg-transparent','complete','_showGuardMessage','_initUserListener','LOADING_SNAPSHOT','getUnitStatus$','[CollaborationDataLoaderController]','getStateCache','_shapes','createIdentifier','setOffsetY','enableFrontendLog','collaboration-client-ui.formula.calculation.started','collaboration-client-ui.collabStatus.fetchMiss','then','useMemo','_docSkeletonManagerService','SetFormulaCalculationStartMutation','collaboration-client-ui.snapshotLoading.refresh','_getFormulaLimitStatus','40996lPevjd','_initEntityListener','rgba(','getAncestorScale','collaboration-client-ui.snapshotLoading.loadingSheet','get','VIEW_MAIN','reload','_cachedData','getObject','IBeforeCloseService','arc','_blinkTimer','_scene','unsubscribe','_docTransformStateCacheService','_currentUsage','DocStateChangeManagerService','replaceState','makeDirty','_refreshCollabCursors','toDisposable','max','getOwnPropertyDescriptor','DeleteRangeMoveLeftCommandId','fillRule','_handoffUnitIds','_updateLocalCursor','beforeCommandExecuted','getTypeOfUnitDisposed$','all','isFormulaString','WebBrowserSingleActiveUnitService','default','getUnhiddenWorksheets','_commandService','ONLINE','_registerRenderDependencies','strokeStyle','getCellMatrix','_startSheetCollabCursor','history','IShortcutService','application/json','jsx','3951189HEbRmT','addObject$','Plugin','releaseFormulaLimitUrl','DeleteRangeMoveUpCommandId','body','_snapshotLoadingService','mutations','_render','getCoordRelativeToViewport','_previewUnitId','_collabSessionService','ThemeService','_collaborationUIEventService','init','getUnitId','colno','_assignedColors','dark:focus:!univer-ring-offset-gray-800','getSkeleton','UniverDocsPlugin','_cursorShapes','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','shift','onPointerLeave$','_pointerMoveDisposable','IImageIoService','#FFF','top','removeParam','size','_themeService','pipe','code','source','_roomMembers$','_isVisibleUnit','transform','unit','slide-element-selection','Success','updateOfflineData','Unknown\x20user','state$','_color','serializeRangeWithSheet','collaboration-client-ui.permission.title','_watchBlockProgress','IMessageService','Rectangle','getParam','createInstance','filename','collab-text-range-','OffLineIcon','remove','unshift','Module','BehaviorSubject','kind','_getSheetLoadingRenderService','clickable','font','_memberID','i18nKey','asObservable','_scheduleSaving','CollaborationController','Tooltip','CollaborationSocketService','univer-text-gray-400','_getSessionTicket','icon','WebSocketService','registerDependencies','_initWindowErrorListener','collaboration-client-ui.collaboration.single-unit.warning','collaboration-client-ui.collabStatus.syncing','findNodePositionByCharIndex','_collabCursorController','_handleJoinEvent','getCurrentTypeOfUnit$','_memberService','touchDependencies','toISOString','UniverInstanceType','_injector','/run/','strokeRect','getCurrentSkeleton','IDocClipboardService','disposeWithMe','_localeService','parse','restore','ILocalStorageService','DocCollaborationEntity','JOIN_ROOM_FAILED','getCurrentUnitOfType','InsertRowCommandId','subscribe','_disabled','getCoordByCell','IConfigService','OnLineIcon','CONFLICT','textRanges','sessionStatus$','DocIMEInputManagerService'];_0x1e5c=function(){return _0x114bbb;};return _0x1e5c();}let I=class extends n[_0x43dc4d(0x1e5)]{constructor(_0x257a30,_0x118452,_0x5ea921){const _0x39bdba=_0x43dc4d;super(),this[_0x39bdba(0x455)]=_0x257a30,this[_0x39bdba(0x360)]=_0x118452,this['_collabSessionService']=_0x5ea921,S(this,_0x39bdba(0x457),new Map()),S(this,_0x39bdba(0x222),new i[(_0x39bdba(0x2ae))]()),this['_init']();}[_0x43dc4d(0x453)](){const _0x205469=_0x43dc4d;super[_0x205469(0x453)](),this['_entityInit$']['complete'](),this[_0x205469(0x457)]['forEach'](_0x2ae0b5=>_0x2ae0b5[_0x205469(0x453)]());}['getCollabCursors$'](_0x5d8764){const _0x8e6db9=_0x43dc4d;return this[_0x8e6db9(0x457)][_0x8e6db9(0x14f)](_0x5d8764)?this['_entities']['get'](_0x5d8764)['cursorInfo$']:this['_entityInit$'][_0x8e6db9(0x32a)]((0x0,i[_0x8e6db9(0x3e5)])(_0x36b7e9=>_0x36b7e9[_0x8e6db9(0x220)]===_0x5d8764),(0x0,i['switchMap'])(_0x112e68=>_0x112e68[_0x8e6db9(0x1a6)]));}[_0x43dc4d(0x299)](){const _0x59e48b=_0x43dc4d;this['_univerInstanceService'][_0x59e48b(0x404)](n['UniverInstanceType'][_0x59e48b(0x271)])[_0x59e48b(0x32a)]((0x0,i['takeUntil'])(this[_0x59e48b(0x3c8)]))[_0x59e48b(0x36e)](async _0x5a037d=>{const _0x475414=_0x59e48b;let _0x23499f=_0x5a037d['unit']['getUnitId'](),_0x24c7f4=await this[_0x475414(0x305)](_0x23499f);this[_0x475414(0x222)][_0x475414(0x176)](_0x24c7f4),this[_0x475414(0x457)][_0x475414(0x1de)](_0x23499f,_0x24c7f4);}),this[_0x59e48b(0x455)][_0x59e48b(0x404)](n[_0x59e48b(0x35f)]['UNIVER_DOC'])[_0x59e48b(0x32a)]((0x0,i['takeUntil'])(this['dispose$']))[_0x59e48b(0x32a)]((0x0,i[_0x59e48b(0x3e5)])(_0x373bf6=>!_0x373bf6[_0x59e48b(0x330)][_0x59e48b(0x319)]()[_0x59e48b(0x3b0)]('__')))['subscribe'](async _0x39edba=>{const _0x16c06a=_0x59e48b;let {unit:_0x3028a5}=_0x39edba,_0x247c4e=_0x3028a5[_0x16c06a(0x319)](),_0xa28e31=await this['_startDocCollabCursor'](_0x247c4e);this[_0x16c06a(0x222)][_0x16c06a(0x176)](_0xa28e31),this['_entities'][_0x16c06a(0x1de)](_0x247c4e,_0xa28e31);}),this[_0x59e48b(0x455)]['getTypeOfUnitAdded$'](n[_0x59e48b(0x35f)][_0x59e48b(0x141)])[_0x59e48b(0x32a)]((0x0,i[_0x59e48b(0x2a1)])(this[_0x59e48b(0x3c8)]))[_0x59e48b(0x36e)](async _0x1ddb86=>{const _0x479e64=_0x59e48b;let _0x4a89cc=_0x1ddb86[_0x479e64(0x330)][_0x479e64(0x319)](),_0x5b1e2e=await this[_0x479e64(0x228)](_0x4a89cc);this[_0x479e64(0x222)][_0x479e64(0x176)](_0x5b1e2e),this[_0x479e64(0x457)][_0x479e64(0x1de)](_0x4a89cc,_0x5b1e2e);}),this[_0x59e48b(0x455)][_0x59e48b(0x404)](n[_0x59e48b(0x35f)][_0x59e48b(0x3a3)])['pipe']((0x0,i[_0x59e48b(0x2a1)])(this['dispose$']))[_0x59e48b(0x36e)](async _0x82691c=>{const _0x197cd2=_0x59e48b;let _0x305b0a=_0x82691c[_0x197cd2(0x330)][_0x197cd2(0x319)](),_0x1938c0=await this['_startBoardCollabCursor'](_0x305b0a);this[_0x197cd2(0x222)][_0x197cd2(0x176)](_0x1938c0),this[_0x197cd2(0x457)][_0x197cd2(0x1de)](_0x305b0a,_0x1938c0);}),(0x0,i['merge'])(this['_univerInstanceService'][_0x59e48b(0x2fa)](n[_0x59e48b(0x35f)][_0x59e48b(0x3f9)]),this['_univerInstanceService'][_0x59e48b(0x2fa)](n[_0x59e48b(0x35f)][_0x59e48b(0x271)]),this[_0x59e48b(0x455)][_0x59e48b(0x2fa)](n[_0x59e48b(0x35f)][_0x59e48b(0x141)]),this[_0x59e48b(0x455)][_0x59e48b(0x2fa)](n[_0x59e48b(0x35f)]['UNIVER_BOARD']))[_0x59e48b(0x32a)]((0x0,i[_0x59e48b(0x2a1)])(this[_0x59e48b(0x3c8)]))[_0x59e48b(0x36e)](_0x47493d=>{const _0x1786c5=_0x59e48b;let _0x323957=_0x47493d[_0x1786c5(0x319)](),_0x214d78=this[_0x1786c5(0x457)][_0x1786c5(0x2e2)](_0x323957);_0x214d78&&(_0x214d78[_0x1786c5(0x453)](),this[_0x1786c5(0x457)][_0x1786c5(0x245)](_0x323957));});}async[_0x43dc4d(0x305)](_0x3e9ad7){const _0x13b6c3=_0x43dc4d;let _0x44244a=await this[_0x13b6c3(0x315)][_0x13b6c3(0x241)](_0x3e9ad7),_0x28a42e=this['_injector'][_0x13b6c3(0x33d)](P,_0x3e9ad7,_0x44244a);return _0x28a42e[_0x13b6c3(0x318)](),_0x28a42e;}async[_0x43dc4d(0x1ad)](_0x2a6b02){const _0x2ec5af=_0x43dc4d;let _0x2c3096=await this['_collabSessionService'][_0x2ec5af(0x241)](_0x2a6b02),_0x1eef09=this[_0x2ec5af(0x360)][_0x2ec5af(0x33d)](N,_0x2a6b02,_0x2c3096);return _0x1eef09[_0x2ec5af(0x318)](),_0x1eef09;}async[_0x43dc4d(0x228)](_0x5c601c){const _0x2f6ee4=_0x43dc4d;let _0x47fdbf=await this[_0x2f6ee4(0x315)][_0x2f6ee4(0x241)](_0x5c601c),_0x583297=this[_0x2f6ee4(0x360)]['createInstance'](F,_0x5c601c,_0x47fdbf);return _0x583297[_0x2f6ee4(0x318)](),_0x583297;}async[_0x43dc4d(0x217)](_0x290ffa){const _0x4addc9=_0x43dc4d;let _0x16095a=await this[_0x4addc9(0x315)][_0x4addc9(0x241)](_0x290ffa),_0x120fd5=this[_0x4addc9(0x360)]['createInstance'](j,_0x290ffa,_0x16095a);return _0x120fd5[_0x4addc9(0x318)](),_0x120fd5;}};I=w([C(0x0,n[_0x43dc4d(0x148)]),C(0x1,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x2,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x393)]))],I);let L=class extends n[_0x43dc4d(0x1e5)]{constructor(_0xc02eab,_0x1c979a,_0x295f4c){const _0x2c8b11=_0x43dc4d;super(),this[_0x2c8b11(0x188)]=_0xc02eab,this[_0x2c8b11(0x359)]=_0x1c979a,this[_0x2c8b11(0x329)]=_0x295f4c,S(this,'_cursors',new Set()),S(this,_0x2c8b11(0x41d),!0x1),S(this,_0x2c8b11(0x3b9),!0x1),S(this,_0x2c8b11(0x1e9),new Map()),this[_0x2c8b11(0x299)]();}['dispose'](){const _0x3d3bca=_0x43dc4d;this[_0x3d3bca(0x287)](),super['dispose']();}[_0x43dc4d(0x299)](){const _0x586277=_0x43dc4d;let _0x56b4ff=this[_0x586277(0x359)][_0x586277(0x1bc)](this[_0x586277(0x188)]['unitId']);this[_0x586277(0x365)]((0x0,n[_0x586277(0x2f2)])((0x0,i['combineLatest'])([_0x56b4ff,this[_0x586277(0x188)][_0x586277(0x330)][_0x586277(0x1c3)],this['_themeService'][_0x586277(0x206)]])[_0x586277(0x32a)]((0x0,i[_0x586277(0x2a1)])(this[_0x586277(0x3c8)]))[_0x586277(0x36e)](([_0x3bd8fe])=>{const _0x3d340d=_0x586277;let _0x4d378e=this['_context'][_0x3d340d(0x330)][_0x3d340d(0x380)](),_0x68308d=new Map();_0x3bd8fe[_0x3d340d(0x24a)]((_0x4343d8,_0x31635b)=>{const _0xa27e3e=_0x3d340d;_0x4343d8[_0xa27e3e(0x433)]===_0x4d378e&&_0x68308d['set'](_0x31635b,{..._0x4343d8,'color':this[_0xa27e3e(0x329)]['getColorFromTheme'](_0x4343d8['color'])});}),this[_0x3d340d(0x1e9)]=_0x68308d,this[_0x3d340d(0x429)]();})));let _0x3c6807=this[_0x586277(0x188)][_0x586277(0x144)];this[_0x586277(0x365)]((0x0,n[_0x586277(0x2f2)])(_0x3c6807[_0x586277(0x30b)][_0x586277(0x32a)]((0x0,i[_0x586277(0x2a1)])(this[_0x586277(0x3c8)]))[_0x586277(0x36e)](()=>{const _0x6e2e0b=_0x586277;this['_isApplyingOverlays']||this[_0x6e2e0b(0x429)]();})));}[_0x43dc4d(0x429)](){const _0x406ac3=_0x43dc4d;this['_renderScheduled']||(this[_0x406ac3(0x41d)]=!0x0,Promise[_0x406ac3(0x2ad)]()[_0x406ac3(0x2d7)](()=>{const _0x18b334=_0x406ac3;this[_0x18b334(0x41d)]=!0x1,this[_0x18b334(0x312)]();}));}[_0x43dc4d(0x312)](){const _0x131123=_0x43dc4d;this[_0x131123(0x287)]();let _0xf98cc1=this['_context']['unit'][_0x131123(0x380)](),_0x5f1697=[];if(this['_latestCursors']['forEach']((_0x1a38b5,_0x50b07c)=>{const _0x5016ff=_0x131123;_0x1a38b5['subUnitId']===_0xf98cc1&&_0x1a38b5[_0x5016ff(0x426)]['forEach'](_0x468931=>{const _0x5c365c=_0x5016ff;let _0x1c344a=(0x0,e['getBoardElementRenderObjectKey'])(_0x1a38b5[_0x5c365c(0x219)],_0x468931),_0x52961b=this[_0x5c365c(0x3bc)](_0x1c344a);if(!_0x52961b)return;let _0x2b059f=this[_0x5c365c(0x1a8)](_0x52961b);_0x5f1697[_0x5c365c(0x39f)](new pe(_0x5c365c(0x1c2)+_0x50b07c+'-'+_0x468931,{..._0x1a38b5,'left':_0x2b059f[_0x5c365c(0x1c5)],'top':_0x2b059f[_0x5c365c(0x326)],'width':_0x2b059f['width'],'height':_0x2b059f[_0x5c365c(0x1d5)],'angle':_0x52961b['angle'],'evented':!0x1,'zIndex':k}));});}),_0x5f1697[_0x131123(0x2aa)]===0x0){this[_0x131123(0x188)][_0x131123(0x144)]['makeDirty'](!0x0);return;}this[_0x131123(0x3b9)]=!0x0,this[_0x131123(0x188)][_0x131123(0x144)][_0x131123(0x2a2)](_0x5f1697,k),this['_isApplyingOverlays']=!0x1,this[_0x131123(0x1ed)]=new Set(_0x5f1697),this['_context']['scene'][_0x131123(0x2f0)](!0x0);}[_0x43dc4d(0x287)](){const _0x236a3b=_0x43dc4d;let _0x1caa9e=Array[_0x236a3b(0x25e)](this['_cursors']);if(_0x1caa9e['length']===0x0)return;let _0x3eb232=this[_0x236a3b(0x188)]['scene'];_0x236a3b(0x3e3)in _0x3eb232&&typeof _0x3eb232[_0x236a3b(0x3e3)]==_0x236a3b(0x295)?_0x3eb232['removeObjects'](_0x1caa9e):_0x1caa9e[_0x236a3b(0x24a)](_0x5f1eb9=>{const _0x5f039e=_0x236a3b;_0x5f039e(0x2b3)in _0x3eb232&&typeof _0x3eb232[_0x5f039e(0x2b3)]==_0x5f039e(0x295)?_0x3eb232[_0x5f039e(0x2b3)](_0x5f1eb9):_0x5f1eb9['dispose']();}),this[_0x236a3b(0x1ed)][_0x236a3b(0x38a)](),_0x3eb232[_0x236a3b(0x2f0)](!0x0);}[_0x43dc4d(0x3bc)](_0x51944b){const _0x56b57a=_0x43dc4d;var _0x4a6268,_0x442dbf,_0x5b8e2d;let _0x1bcc65=this[_0x56b57a(0x188)]['scene'];return(_0x4a6268=(_0x442dbf=(_0x5b8e2d=_0x1bcc65[_0x56b57a(0x147)])==null?void 0x0:_0x5b8e2d[_0x56b57a(0x1e0)](_0x1bcc65,_0x51944b))==null?_0x1bcc65[_0x56b57a(0x2e6)](_0x51944b):_0x442dbf)==null?null:_0x4a6268;}[_0x43dc4d(0x1a8)](_0x261026){const _0x2a2cea=_0x43dc4d;var _0x451f91,_0x37b8d3;let _0x341f03=_0x261026;return(_0x451f91=(_0x37b8d3=_0x341f03[_0x2a2cea(0x145)])==null?void 0x0:_0x37b8d3[_0x2a2cea(0x1e0)](_0x341f03))==null?{'left':_0x261026['left'],'top':_0x261026[_0x2a2cea(0x326)],'width':_0x261026[_0x2a2cea(0x37d)],'height':_0x261026[_0x2a2cea(0x1d5)]}:_0x451f91;}};L=w([C(0x1,(0x0,n[_0x43dc4d(0x379)])(I)),C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x316)]))],L);const R='collab-text-anchor-';var be=class{constructor(_0x4e9d5b,_0x2a82da,_0x5b5acc,_0x2dad52){const _0x1d2af7=_0x43dc4d;this[_0x1d2af7(0x2bf)]=_0x4e9d5b,this[_0x1d2af7(0x2ea)]=_0x2a82da,this[_0x1d2af7(0x1ac)]=_0x5b5acc,this[_0x1d2af7(0x191)]=_0x2dad52,S(this,_0x1d2af7(0x2d1),[]),S(this,_0x1d2af7(0x41e),null),S(this,_0x1d2af7(0x1bb),null),S(this,_0x1d2af7(0x1f7),null),S(this,_0x1d2af7(0x3be),null),S(this,_0x1d2af7(0x1fe),null),this[_0x1d2af7(0x312)]();}set[_0x43dc4d(0x3ef)](_0x443c59){const _0x5d30a8=_0x43dc4d;_0x443c59?(this[_0x5d30a8(0x1f7)]&&this[_0x5d30a8(0x1f7)][_0x5d30a8(0x22e)](),this[_0x5d30a8(0x1bb)]&&this[_0x5d30a8(0x1bb)][_0x5d30a8(0x212)]()):(this[_0x5d30a8(0x1f7)]&&this[_0x5d30a8(0x1f7)][_0x5d30a8(0x212)](),this[_0x5d30a8(0x1bb)]&&this[_0x5d30a8(0x1bb)]['hide']());}['dispose'](){const _0x3aef73=_0x43dc4d;for(let _0x4c6c50 of this[_0x3aef73(0x2d1)])_0x4c6c50[_0x3aef73(0x453)]();this['_textBubble']&&this[_0x3aef73(0x1bb)][_0x3aef73(0x453)](),this[_0x3aef73(0x1f7)]&&this[_0x3aef73(0x1f7)][_0x3aef73(0x453)](),this[_0x3aef73(0x41e)]&&this[_0x3aef73(0x41e)][_0x3aef73(0x453)](),this['_eventUnsubscribe']&&this[_0x3aef73(0x1fe)]();}['_render'](){const _0xfcf289=_0x43dc4d;let {_docSkeleton:_0x4bdb51,_document:_0x4cc5f4}=this,{color:_0x107a75,name:_0x129fba,ranges:_0x4a08ae}=this['_cursor'],_0x28f8b0=_0x4cc5f4[_0xfcf289(0x1c1)](),{docsLeft:_0x56e70f,docsTop:_0x45f41e}=_0x28f8b0,_0x575a3b=new p[(_0xfcf289(0x187))](_0x28f8b0,_0x4bdb51);for(let {startOffset:_0x12ecf0,endOffset:_0x1c0083,rangeType:_0xba5cec,segmentId:_0x49fdae,segmentPage:_0x21693a,collapsed:_0x2cd19c,isActive:_0x45cc6c}of _0x4a08ae){let _0x2fff14=_0x4bdb51[_0xfcf289(0x358)](_0x12ecf0,!0x0,_0x49fdae,_0x21693a),_0x4543f3=_0x4bdb51[_0xfcf289(0x358)](_0x1c0083,!0x0,_0x49fdae,_0x21693a);if(_0x4543f3==null&&(_0x4543f3=_0x4bdb51['findNodePositionByCharIndex'](_0x1c0083-0x1,!0x1,_0x49fdae,_0x21693a)),_0x45cc6c){let {contentBoxPointGroup:_0x151b7d}=_0x575a3b['getRangePointData'](_0x4543f3,_0x4543f3);if(_0x151b7d[_0xfcf289(0x2aa)]===0x0)continue;this[_0xfcf289(0x2ac)](_0x107a75,_0x151b7d,_0x56e70f,_0x45f41e,_0x129fba),this[_0xfcf289(0x1fe)]=this['_handleHover']();}if(_0x2fff14&&_0x4543f3){if(_0xba5cec===n[_0xfcf289(0x15f)]['RECT']){var _0x4ca12b;let {pointGroup:_0x3b1f7f}=(_0x4ca12b=new p[(_0xfcf289(0x208))](_0x28f8b0,_0x4bdb51)[_0xfcf289(0x3aa)](_0x2fff14,_0x4543f3))==null?{}:_0x4ca12b;if(_0x3b1f7f==null||_0x3b1f7f[_0xfcf289(0x2aa)]===0x0)continue;this[_0xfcf289(0x13f)](_0x107a75,_0x3b1f7f,_0x56e70f,_0x45f41e);}else{if(!_0x2cd19c){let {borderBoxPointGroup:_0x2860d4}=_0x575a3b[_0xfcf289(0x3aa)](_0x2fff14,_0x4543f3);if(_0x2860d4['length']===0x0)continue;this[_0xfcf289(0x3c2)](_0x107a75,_0x2860d4,_0x56e70f,_0x45f41e);}}}}}[_0x43dc4d(0x2ac)](_0x36094d,_0x3885fd,_0x590783,_0x50bb28,_0x1f7610){const _0x29e309=_0x43dc4d;let {left:_0x369307,top:_0x5490e9,height:_0x2e0ee3}=this['_getAnchorBounding'](_0x3885fd),_0x273ef4=1.5/this[_0x29e309(0x3d9)](),_0x261637=new m[(_0x29e309(0x21a))](R+(0x0,n[_0x29e309(0x3b6)])(0x6),{'left':_0x369307+_0x590783-_0x273ef4,'top':_0x5490e9+_0x50bb28,'height':_0x2e0ee3,'width':1.5,'fill':_0x36094d||(0x0,m[_0x29e309(0x166)])(n[_0x29e309(0x276)]['black'],0x0),'strokeWidth':_0x273ef4,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x29e309(0x41e)]=_0x261637,this[_0x29e309(0x2ea)][_0x29e309(0x2af)](_0x261637,p[_0x29e309(0x190)]);let _0x543f72=new m['Rect'](R+(0x0,n['generateRandomId'])(0x6),{'left':_0x369307+_0x590783-_0x273ef4,'top':_0x5490e9+_0x50bb28-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x36094d||(0x0,m['getColor'])(n[_0x29e309(0x276)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x36094d||(0x0,m[_0x29e309(0x166)])(n[_0x29e309(0x276)][_0x29e309(0x44f)],0x0),'evented':!0x1});this['_anchorDot']=_0x543f72,this['_scene'][_0x29e309(0x2af)](_0x543f72,p[_0x29e309(0x190)]);let _0x431a25=new O(R+(0x0,n[_0x29e309(0x3b6)])(0x6),{'left':_0x369307+_0x590783-_0x273ef4,'top':_0x5490e9+_0x50bb28-0x14,'text':_0x1f7610,'color':_0x36094d});this[_0x29e309(0x1bb)]=_0x431a25,this[_0x29e309(0x2ea)][_0x29e309(0x2af)](_0x431a25,p[_0x29e309(0x190)]),this[_0x29e309(0x3ef)]=!0x1;}[_0x43dc4d(0x1f8)](){const _0x14d12a=_0x43dc4d;let _0x3aae56=this[_0x14d12a(0x41e)][_0x14d12a(0x40c)][_0x14d12a(0x267)](()=>{const _0x74c83c=_0x14d12a;this[_0x74c83c(0x3ef)]=!0x0;}),_0x3b0140=this['_anchor'][_0x14d12a(0x322)][_0x14d12a(0x267)](()=>{const _0x46e253=_0x14d12a;this[_0x46e253(0x3be)]&&clearTimeout(this[_0x46e253(0x3be)]),this[_0x46e253(0x3be)]=setTimeout(()=>{const _0x547790=_0x46e253;this[_0x547790(0x3ef)]=!0x1;},0x7d0);});return()=>{const _0x2999a9=_0x14d12a;_0x3aae56[_0x2999a9(0x2eb)](),_0x3b0140['unsubscribe']();};}[_0x43dc4d(0x3c2)](_0x49b425,_0x5bb3a1,_0x5299dc,_0x4c869d){const _0x2ddf9c=_0x43dc4d;let _0x31a6a9=0.2,_0x5bb503=new n['ColorKit'](_0x49b425)[_0x2ddf9c(0x26d)](_0x31a6a9)['toRgbString'](),_0x370481=new m[(_0x2ddf9c(0x174))](_0x2ddf9c(0x33f)+(0x0,n[_0x2ddf9c(0x3b6)])(0x6),{'pointsGroup':_0x5bb3a1,'fill':_0x5bb503||(0x0,m[_0x2ddf9c(0x166)])(n[_0x2ddf9c(0x276)][_0x2ddf9c(0x44f)],_0x31a6a9),'left':_0x5299dc,'top':_0x4c869d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2ddf9c(0x39f)](_0x370481),this[_0x2ddf9c(0x2ea)][_0x2ddf9c(0x2af)](_0x370481,p[_0x2ddf9c(0x190)]);}[_0x43dc4d(0x13f)](_0x472a82,_0x9b9c9c,_0x42cdf7,_0x53ee19){const _0xb2493a=_0x43dc4d;let _0x4e3c0f=0.2,_0x2bbdeb=new n[(_0xb2493a(0x248))](_0x472a82)[_0xb2493a(0x26d)](_0x4e3c0f)[_0xb2493a(0x424)](),_0x399eac=new m[(_0xb2493a(0x174))]('collab-rect-range-'+(0x0,n[_0xb2493a(0x3b6)])(0x6),{'pointsGroup':_0x9b9c9c,'fill':_0x2bbdeb||(0x0,m[_0xb2493a(0x166)])(n[_0xb2493a(0x276)][_0xb2493a(0x44f)],_0x4e3c0f),'left':_0x42cdf7,'top':_0x53ee19,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xb2493a(0x2d1)][_0xb2493a(0x39f)](_0x399eac),this[_0xb2493a(0x2ea)]['addObject'](_0x399eac,p['TEXT_RANGE_LAYER_INDEX']);}[_0x43dc4d(0x1b9)](_0x3b3b93){let _0x4ba686=_0x3b3b93[0x0],_0x8ba3ad=_0x4ba686[0x0],_0x3c3b2d=_0x4ba686[0x2],{x:_0x1fca71,y:_0x399168}=_0x8ba3ad,{x:_0x50a3b4,y:_0x4f2f66}=_0x3c3b2d;return{'left':_0x1fca71,'top':_0x399168,'width':_0x50a3b4-_0x1fca71,'height':_0x4f2f66-_0x399168};}[_0x43dc4d(0x3d9)](){const _0x503ddd=_0x43dc4d;let {scaleX:_0x57613a,scaleY:_0x223986}=this[_0x503ddd(0x2ea)][_0x503ddd(0x2e0)]();return Math[_0x503ddd(0x2f3)](_0x57613a,_0x223986);}};let z=class extends n['RxDisposable']{constructor(_0x2132c7,_0x297d23,_0x951c15,_0x11a115,_0x47a804){const _0x29ae9a=_0x43dc4d;super(),this['_context']=_0x2132c7,this[_0x29ae9a(0x2d9)]=_0x297d23,this[_0x29ae9a(0x359)]=_0x951c15,this['_commandService']=_0x11a115,this[_0x29ae9a(0x329)]=_0x47a804,S(this,'_cursorShapes',[]),S(this,'_cursors',[]),this['_init']();}['_init'](){const _0x45f98a=_0x43dc4d;let _0x4c4c11=this[_0x45f98a(0x188)][_0x45f98a(0x219)],_0x6ab4ce=this[_0x45f98a(0x2d9)];this[_0x45f98a(0x365)]((0x0,i['combineLatest'])([this[_0x45f98a(0x359)][_0x45f98a(0x1bc)](_0x4c4c11),this['_themeService'][_0x45f98a(0x206)]])[_0x45f98a(0x32a)]((0x0,a[_0x45f98a(0x1fa)])(([_0x13f99c,_0x333704])=>({'skeleton':_0x6ab4ce[_0x45f98a(0x31d)](),'cursors':[..._0x13f99c[_0x45f98a(0x29a)]()][_0x45f98a(0x377)](_0x4ee53a=>({..._0x4ee53a,'color':this['_themeService'][_0x45f98a(0x293)](_0x4ee53a[_0x45f98a(0x242)])}))})))[_0x45f98a(0x36e)](_0x2492bf=>{const _0x12adeb=_0x45f98a;if(this[_0x12adeb(0x287)](),_0x2492bf){let {skeleton:_0x4fda76,cursors:_0x1e2737}=_0x2492bf;this[_0x12adeb(0x1d7)](_0x4fda76,_0x1e2737);}})),this[_0x45f98a(0x289)](),this[_0x45f98a(0x297)]();}[_0x43dc4d(0x1d7)](_0x32be8f,_0x52c467){const _0x2a8abe=_0x43dc4d;let {scene:_0x40d53d,mainComponent:_0x5aa847}=this[_0x2a8abe(0x188)],_0x42f2b3=_0x52c467[_0x2a8abe(0x1fa)](_0x112a94=>new be(_0x112a94,_0x40d53d,_0x32be8f,_0x5aa847));this[_0x2a8abe(0x31f)]=_0x42f2b3,this[_0x2a8abe(0x1ed)]=_0x52c467;}['_refreshCollabCursors'](){const _0x5b7189=_0x43dc4d;this['_removeCollabCursors']();let {scene:_0x366595,mainComponent:_0x304b3f}=this[_0x5b7189(0x188)],_0x4b7831=this[_0x5b7189(0x2d9)][_0x5b7189(0x31d)](),_0x506c46=this['_cursors'][_0x5b7189(0x1fa)](_0x18f564=>new be(_0x18f564,_0x366595,_0x4b7831,_0x304b3f));this[_0x5b7189(0x31f)]=_0x506c46;}[_0x43dc4d(0x287)](){const _0x14d2ba=_0x43dc4d;this[_0x14d2ba(0x31f)][_0x14d2ba(0x24a)](_0x37dc77=>_0x37dc77['dispose']()),this[_0x14d2ba(0x31f)]=[];}['_initCommandExecutedListener'](){const _0x245745=_0x43dc4d;let _0x1589cc=[p[_0x245745(0x232)]['id']];this[_0x245745(0x365)](this[_0x245745(0x300)][_0x245745(0x3b2)](_0xcef583=>{const _0x47ec00=_0x245745;_0x1589cc[_0x47ec00(0x2c7)](_0xcef583['id'])&&_0xcef583['params'][_0x47ec00(0x219)]===this[_0x47ec00(0x188)][_0x47ec00(0x219)]&&this[_0x47ec00(0x2f1)]();}));}[_0x43dc4d(0x289)](){const _0x2e9af4=_0x43dc4d;this[_0x2e9af4(0x365)]((0x0,n[_0x2e9af4(0x1ee)])(this['_context'][_0x2e9af4(0x3b8)][_0x2e9af4(0x2b6)])[_0x2e9af4(0x32a)]((0x0,a[_0x2e9af4(0x3e5)])(_0x4ee9ae=>_0x4ee9ae[_0x2e9af4(0x41c)]===m[_0x2e9af4(0x384)]['resize']),(0x0,a['throttleTime'])(0x10))[_0x2e9af4(0x36e)](()=>{const _0x3e539a=_0x2e9af4;this[_0x3e539a(0x2f1)]();}));}};z=w([C(0x1,(0x0,n['Inject'])(f[_0x43dc4d(0x451)])),C(0x2,(0x0,n[_0x43dc4d(0x379)])(I)),C(0x3,n['ICommandService']),C(0x4,(0x0,n['Inject'])(n[_0x43dc4d(0x316)]))],z);var xe=class extends m[_0x43dc4d(0x265)]{constructor(_0x3f7469,_0x58fed7){const _0x31af2b=_0x43dc4d;if(super(_0x3f7469,_0x58fed7),S(this,_0x31af2b(0x336),void 0x0),S(this,_0x31af2b(0x450),!0x1),S(this,_0x31af2b(0x2bc),void 0x0),S(this,_0x31af2b(0x253),''),S(this,'_labelPosition',_0x31af2b(0x326)),S(this,_0x31af2b(0x250),void 0x0),S(this,_0x31af2b(0x39b),void 0x0),S(this,_0x31af2b(0x16b),void 0x0),S(this,'_highlightSecond',0x4),S(this,_0x31af2b(0x2e9),void 0x0),S(this,_0x31af2b(0x3b4),void 0x0),S(this,'_isBlinkVisible',!0x0),S(this,'_offsetY',0x0),S(this,_0x31af2b(0x26c),_0x31af2b(0x27a)),_0x58fed7){var _0x758f11;if(this[_0x31af2b(0x29d)](_0x58fed7),_0x58fed7[_0x31af2b(0x149)]&&((_0x758f11=_0x58fed7[_0x31af2b(0x39e)])==null?this[_0x31af2b(0x440)]:_0x758f11)){var _0x5dc4ec;this['_startBlinking']((_0x5dc4ec=_0x58fed7[_0x31af2b(0x39e)])==null?this[_0x31af2b(0x440)]:_0x5dc4ec);}}this['onPointerEnter$'][_0x31af2b(0x267)](()=>this[_0x31af2b(0x29d)]({'hovered':!0x0})),this[_0x31af2b(0x322)][_0x31af2b(0x267)](()=>this[_0x31af2b(0x29d)]({'hovered':!0x1}));}[_0x43dc4d(0x2d3)](_0x2c4d7b){const _0x156635=_0x43dc4d;this[_0x156635(0x1dd)]=_0x2c4d7b;}[_0x43dc4d(0x29d)](_0xb3094f){const _0x50d3c9=_0x43dc4d;var _0xb50c50,_0x5de1b6,_0x455b0d,_0x2c6fdd,_0x59e4c3,_0xdad365,_0xcb90fc,_0x2e6103;this[_0x50d3c9(0x336)]=(_0xb50c50=_0xb3094f[_0x50d3c9(0x242)])==null?this[_0x50d3c9(0x336)]:_0xb50c50,this[_0x50d3c9(0x450)]=(_0x5de1b6=_0xb3094f[_0x50d3c9(0x17e)])==null?this[_0x50d3c9(0x450)]:_0x5de1b6,this[_0x50d3c9(0x2bc)]=(_0x455b0d=_0xb3094f[_0x50d3c9(0x218)])==null?this[_0x50d3c9(0x2bc)]:_0x455b0d,this['_name']=(_0x2c6fdd=_0xb3094f[_0x50d3c9(0x2c1)])==null?this[_0x50d3c9(0x253)]:_0x2c6fdd,this[_0x50d3c9(0x401)]=(_0x59e4c3=_0xb3094f[_0x50d3c9(0x445)])==null?this['_labelPosition']:_0x59e4c3,this[_0x50d3c9(0x250)]=(_0xdad365=_0xb3094f[_0x50d3c9(0x400)])==null?this['_backgroundColor']:_0xdad365,this[_0x50d3c9(0x39b)]=(_0xcb90fc=_0xb3094f[_0x50d3c9(0x1f3)])==null?this[_0x50d3c9(0x39b)]:_0xcb90fc,this['_labelHorizontalPosition']=(_0x2e6103=_0xb3094f['labelHorizontalPosition'])==null?this['_labelHorizontalPosition']:_0x2e6103,_0xb3094f[_0x50d3c9(0x39e)]!==void 0x0&&(this['_highlightSecond']=_0xb3094f[_0x50d3c9(0x39e)]),_0xb3094f[_0x50d3c9(0x149)]!==void 0x0&&(this[_0x50d3c9(0x16b)]=_0xb3094f[_0x50d3c9(0x149)]),_0xb3094f[_0x50d3c9(0x28a)]!==void 0x0&&(this['_offsetY']=_0xb3094f[_0x50d3c9(0x28a)]),this[_0x50d3c9(0x194)]({'width':_0xb3094f['width'],'height':_0xb3094f[_0x50d3c9(0x1d5)]});}[_0x43dc4d(0x27d)](_0x5f1e08){const _0x565509=_0x43dc4d;let {row:_0xe0a415,column:_0x65eb27}=_0x5f1e08;if(_0xe0a415>=this['_range']['startRow']&&_0xe0a415<=this[_0x565509(0x2bc)][_0x565509(0x246)]&&_0x65eb27>=this[_0x565509(0x2bc)]['startColumn']&&_0x65eb27<=this[_0x565509(0x2bc)][_0x565509(0x288)]){this[_0x565509(0x29d)]({'hovered':!0x0});return;}this[_0x565509(0x29d)]({'hovered':!0x1});}[_0x43dc4d(0x454)](_0x229ce2){const _0x518fd1=_0x43dc4d;this[_0x518fd1(0x3d5)](),this[_0x518fd1(0x382)]=!0x0,this[_0x518fd1(0x3b4)]=window[_0x518fd1(0x14a)](()=>{const _0x173dd3=_0x518fd1;this['_isBlinkVisible']=!this[_0x173dd3(0x382)],this[_0x173dd3(0x2f0)](!0x0);},0x1f4),this[_0x518fd1(0x2e9)]=window[_0x518fd1(0x21f)](()=>{const _0x58b6d4=_0x518fd1;this[_0x58b6d4(0x3d5)](),this[_0x58b6d4(0x382)]=!0x0,this[_0x58b6d4(0x2f0)](!0x0);},_0x229ce2*0x3e8);}['_stopBlinking'](){const _0x1c6757=_0x43dc4d;this[_0x1c6757(0x3b4)]&&(window['clearInterval'](this[_0x1c6757(0x3b4)]),this['_blinkIntervalTimer']=void 0x0),this[_0x1c6757(0x2e9)]&&(window[_0x1c6757(0x171)](this[_0x1c6757(0x2e9)]),this[_0x1c6757(0x2e9)]=void 0x0);}['triggerDblclick'](_0x1cd995){return!0x1;}['dispose'](){const _0x5f201e=_0x43dc4d;this[_0x5f201e(0x3d5)](),super[_0x5f201e(0x453)]();}['_draw'](_0x266dab){const _0x19d8ed=_0x43dc4d;let _0x5bd798=this[_0x19d8ed(0x336)],_0x16d27e=this[_0x19d8ed(0x250)];if(this[_0x19d8ed(0x16b)]&&!this[_0x19d8ed(0x382)]&&(_0x5bd798=this[_0x19d8ed(0x19d)](this[_0x19d8ed(0x336)]),_0x16d27e=this[_0x19d8ed(0x250)]?this[_0x19d8ed(0x19d)](this[_0x19d8ed(0x250)]):void 0x0),m[_0x19d8ed(0x21a)][_0x19d8ed(0x2c2)](_0x266dab,{'width':this[_0x19d8ed(0x37d)],'height':this[_0x19d8ed(0x1d5)],'strokeWidth':this[_0x19d8ed(0x198)]||1.5,'stroke':_0x5bd798,'evented':!0x1,'fill':_0x16d27e}),this[_0x19d8ed(0x450)]||this['_showText']){var _0x521cf3;_0x266dab['save']();let _0x563514=this[_0x19d8ed(0x26c)]==='left'?-de(_0x266dab,this['_name']):this['width'];_0x266dab[_0x19d8ed(0x32f)](0x1,0x0,0x0,0x1,_0x563514,(this[_0x19d8ed(0x401)]==='bottom'?0x0:-0x14)+((_0x521cf3=this[_0x19d8ed(0x1dd)])==null?0x0:_0x521cf3)),O[_0x19d8ed(0x2c2)](_0x266dab,{'text':this[_0x19d8ed(0x253)],'color':_0x5bd798}),_0x266dab['restore']();}}[_0x43dc4d(0x19d)](_0x43131e){const _0x1320b8=_0x43dc4d;return _0x43131e[_0x1320b8(0x3b0)]('#')?_0x1320b8(0x2df)+Number[_0x1320b8(0x1e1)](_0x43131e[_0x1320b8(0x3bb)](0x1,0x3),0x10)+',\x20'+Number[_0x1320b8(0x1e1)](_0x43131e[_0x1320b8(0x3bb)](0x3,0x5),0x10)+',\x20'+Number[_0x1320b8(0x1e1)](_0x43131e['slice'](0x5,0x7),0x10)+_0x1320b8(0x3ac):_0x43131e[_0x1320b8(0x3b0)](_0x1320b8(0x282))?_0x43131e['replace'](/[\d.]+\)$/g,_0x1320b8(0x16e)):_0x43131e[_0x1320b8(0x3b0)](_0x1320b8(0x3d7))?_0x43131e[_0x1320b8(0x260)](_0x1320b8(0x3d7),'rgba')['replace'](')',_0x1320b8(0x3ac)):_0x43131e;}};let B=class extends n[_0x43dc4d(0x1e5)]{constructor(_0x22e5e2,_0xc227ca,_0x4b9723,_0x4e41bf){const _0x4516be=_0x43dc4d;super(),this[_0x4516be(0x188)]=_0x22e5e2,this[_0x4516be(0x204)]=_0xc227ca,this[_0x4516be(0x359)]=_0x4b9723,this[_0x4516be(0x329)]=_0x4e41bf,S(this,_0x4516be(0x1ed),new Set()),S(this,_0x4516be(0x394),null),S(this,_0x4516be(0x323),null),this['_init']();}[_0x43dc4d(0x299)](){const _0x2c2ce6=_0x43dc4d;this[_0x2c2ce6(0x204)][_0x2c2ce6(0x399)][_0x2c2ce6(0x32a)]((0x0,a[_0x2c2ce6(0x2a1)])(this['dispose$']),(0x0,a[_0x2c2ce6(0x44c)])(_0xe40057=>{const _0x1d698c=_0x2c2ce6;if(_0xe40057){let _0x357ad9=_0xe40057['sheetId'];return(0x0,i['combineLatest'])(this[_0x1d698c(0x359)][_0x1d698c(0x1bc)](this['_context'][_0x1d698c(0x219)]),this[_0x1d698c(0x329)][_0x1d698c(0x206)])[_0x1d698c(0x32a)]((0x0,a[_0x1d698c(0x1fa)])(([_0x51b4c2,_0x94c5c4])=>{const _0x4bb11f=_0x1d698c;let _0xefdb3c=new Map();return _0x51b4c2[_0x4bb11f(0x24a)]((_0x2befe4,_0xf50121)=>{const _0x269d1d=_0x4bb11f;if(_0x2befe4[_0x269d1d(0x214)]===_0x357ad9){let _0xf361a4={..._0x2befe4};_0xf361a4[_0x269d1d(0x242)]=this[_0x269d1d(0x329)]['getColorFromTheme'](_0x2befe4['color']),_0xefdb3c[_0x269d1d(0x1de)](_0xf50121,_0xf361a4);}}),{'skeleton':_0xe40057,'cursors':_0xefdb3c};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4131a7,cursors:_0x488eb5})=>{this['_removeCollabCursors'](),_0x4131a7&&this['_updateCollabCursors'](_0x4131a7,_0x488eb5);}),this[_0x2c2ce6(0x365)](this['_sheetSkeletonManagerService'][_0x2c2ce6(0x399)][_0x2c2ce6(0x32a)]((0x0,a[_0x2c2ce6(0x2a1)])(this['dispose$']))[_0x2c2ce6(0x36e)](_0x28f142=>{const _0x45b1cc=_0x2c2ce6;var _0xd716e2;if(_0x28f142==null)return;(_0xd716e2=this['_pointerMoveDisposable'])==null||_0xd716e2[_0x45b1cc(0x2eb)](),this[_0x45b1cc(0x323)]=null;let {skeleton:_0x41cb96}=_0x28f142,{scene:_0x2f6dbc}=this[_0x45b1cc(0x188)];this['_pointerMoveDisposable']=_0x2f6dbc[_0x45b1cc(0x444)][_0x45b1cc(0x267)]((0x0,n[_0x45b1cc(0x240)])(_0x358d9a=>{const _0x560fd9=_0x45b1cc;var _0x218c51,_0x4ea860;let {offsetX:_0x3fd9c1,offsetY:_0xda6a9d}=_0x358d9a,{x:_0x2cc668,y:_0x44f18e}=_0x2f6dbc[_0x560fd9(0x313)](m['Vector2'][_0x560fd9(0x20f)]([_0x3fd9c1,_0xda6a9d])),{scaleX:_0x4ef50c,scaleY:_0x546d54}=_0x2f6dbc[_0x560fd9(0x2e0)](),_0x4c74e5=_0x2f6dbc[_0x560fd9(0x199)](m[_0x560fd9(0x1db)][_0x560fd9(0x2e3)]),_0x24a949=_0x2f6dbc['getScrollXYInfoByViewport'](m[_0x560fd9(0x279)][_0x560fd9(0x20f)]([_0x2cc668,_0x44f18e]),_0x4c74e5),_0x1896d1=_0x41cb96[_0x560fd9(0x1cc)](_0x3fd9c1,_0xda6a9d,_0x4ef50c,_0x546d54,_0x24a949);(((_0x218c51=this[_0x560fd9(0x394)])==null?void 0x0:_0x218c51[_0x560fd9(0x42a)])!==_0x1896d1[_0x560fd9(0x42a)]||((_0x4ea860=this['_lastPointer'])==null?void 0x0:_0x4ea860[_0x560fd9(0x1cd)])!==_0x1896d1[_0x560fd9(0x1cd)])&&this[_0x560fd9(0x1ed)]['forEach'](_0x2af3f1=>{const _0x58cb4f=_0x560fd9;_0x2af3f1[_0x58cb4f(0x27d)](_0x1896d1);});},0x64));})),this[_0x2c2ce6(0x365)]((0x0,n[_0x2c2ce6(0x2f2)])(()=>{const _0xce14c1=_0x2c2ce6;var _0x159d0a;(_0x159d0a=this['_pointerMoveDisposable'])==null||_0x159d0a[_0xce14c1(0x2eb)](),this[_0xce14c1(0x323)]=null;}));}[_0x43dc4d(0x1d7)](_0x5b0cbf,_0x190cb9){const _0x2b5cfc=_0x43dc4d;let _0x92773b=this[_0x2b5cfc(0x204)][_0x2b5cfc(0x363)]();if(!_0x92773b)return;let _0x55990d=this[_0x2b5cfc(0x3e6)]();if(!_0x55990d)return;this[_0x2b5cfc(0x1ed)][_0x2b5cfc(0x24a)](_0x2461ef=>{const _0x31448e=_0x2b5cfc;_0x2461ef[_0x31448e(0x2f0)]();});let {scene:_0x199047}=_0x55990d,_0x20c933=Se(Array['from'](_0x190cb9[_0x2b5cfc(0x29a)]()))[_0x2b5cfc(0x1fa)](_0x135af9=>{const _0x5dacf7=_0x2b5cfc;let {color:_0x4a2534,range:_0x230002,name:_0x5b6e44,selection:_0x456864,sheetID:_0x599b78}=_0x135af9,{startColumn:_0x3e1e26,startRow:_0x30b19f,endColumn:_0x5e290a,endRow:_0x3d70fe}=_0x230002,_0x33eae3=(0x0,y[_0x5dacf7(0x370)])(_0x30b19f,_0x3e1e26,_0x199047,_0x92773b),_0xa39793=(0x0,y[_0x5dacf7(0x370)])(_0x3d70fe,_0x5e290a,_0x199047,_0x92773b),{columnHeaderHeightAndMarginTop:_0x13ece4}=_0x92773b,{startX:_0x4df93e,startY:_0x2c589f}=_0x33eae3,{endX:_0x1429fe,endY:_0x39d0e6}=_0xa39793,_0x31f649=_0x1429fe-_0x4df93e,_0x1447b2=_0x39d0e6-_0x2c589f;return new xe(_0x5b6e44,{'labelPosition':_0x2c589f-_0x13ece4>=0x14?_0x5dacf7(0x326):'bottom','sheetID':_0x599b78,'range':_0x230002,'color':_0x4a2534,'name':_0x5b6e44,'selection':_0x456864,'left':_0x4df93e,'top':_0x2c589f,'width':_0x31f649,'height':_0x1447b2,'evented':!0x1,'zIndex':0x1389});});_0x199047['addObjects'](_0x20c933,0x1),this[_0x2b5cfc(0x1ed)]=new Set(_0x20c933);}[_0x43dc4d(0x287)](){const _0x3f9555=_0x43dc4d;var _0x3138a9;(_0x3138a9=this[_0x3f9555(0x1ed)])==null||_0x3138a9[_0x3f9555(0x24a)](_0x5c61d3=>_0x5c61d3[_0x3f9555(0x453)]());}['_getSheetObject'](){const _0x3511b8=_0x43dc4d;return(0x0,y['getSheetObject'])(this[_0x3511b8(0x188)][_0x3511b8(0x330)],this[_0x3511b8(0x188)]);}};B=w([C(0x1,(0x0,n[_0x43dc4d(0x379)])(y['SheetSkeletonManagerService'])),C(0x2,(0x0,n[_0x43dc4d(0x379)])(I)),C(0x3,(0x0,n[_0x43dc4d(0x379)])(n['ThemeService']))],B);function Se(_0x308de9){const _0x3f48d4=_0x43dc4d;let _0x1e4a2c=new Map();return _0x308de9[_0x3f48d4(0x24a)](_0x3fe58a=>{const _0x5cd41d=_0x3f48d4;if(_0x1e4a2c[_0x5cd41d(0x14f)](_0x3fe58a[_0x5cd41d(0x1bd)])){let _0x132b88=_0x1e4a2c[_0x5cd41d(0x2e2)](_0x3fe58a['selection']);_0x132b88['name']+=',\x20'+_0x3fe58a[_0x5cd41d(0x2c1)];}else _0x1e4a2c['set'](_0x3fe58a['selection'],_0x3fe58a);}),Array[_0x3f48d4(0x25e)](_0x1e4a2c[_0x3f48d4(0x29a)]());}let V=class extends n['RxDisposable']{constructor(_0x5aa928,_0xbab843,_0x3bb36c){const _0x5ca40b=_0x43dc4d;super(),this[_0x5ca40b(0x188)]=_0x5aa928,this[_0x5ca40b(0x359)]=_0xbab843,this['_themeService']=_0x3bb36c,S(this,_0x5ca40b(0x1ed),new Set()),S(this,_0x5ca40b(0x41d),!0x1),S(this,_0x5ca40b(0x3b9),!0x1),S(this,_0x5ca40b(0x1e9),new Map()),this['_init']();}['dispose'](){const _0x402e51=_0x43dc4d;this['_removeCollabCursors'](),super[_0x402e51(0x453)]();}[_0x43dc4d(0x299)](){const _0xb82515=_0x43dc4d;let _0x54db0c=this[_0xb82515(0x188)][_0xb82515(0x330)][_0xb82515(0x41b)][_0xb82515(0x168)],_0x1b88e9=this[_0xb82515(0x359)][_0xb82515(0x1bc)](this[_0xb82515(0x188)][_0xb82515(0x219)]);this[_0xb82515(0x365)]((0x0,n['toDisposable'])((0x0,i[_0xb82515(0x209)])([_0x1b88e9,_0x54db0c,this[_0xb82515(0x329)]['currentTheme$']])['pipe']((0x0,i['takeUntil'])(this[_0xb82515(0x3c8)]))[_0xb82515(0x36e)](([_0x54ab30,_0x14a58d])=>{const _0xd029ca=_0xb82515;let _0x41303d=new Map();_0x54ab30[_0xd029ca(0x24a)]((_0x4e2aeb,_0xe53583)=>{const _0x557897=_0xd029ca;_0x4e2aeb[_0x557897(0x433)]===_0x14a58d&&_0x41303d[_0x557897(0x1de)](_0xe53583,{..._0x4e2aeb,'color':this[_0x557897(0x329)][_0x557897(0x293)](_0x4e2aeb['color'])});}),this[_0xd029ca(0x1e9)]=_0x41303d,this[_0xd029ca(0x429)]();})));let _0x43841b=this['_context'][_0xb82515(0x144)];this[_0xb82515(0x365)]((0x0,n[_0xb82515(0x2f2)])(_0x43841b[_0xb82515(0x30b)][_0xb82515(0x32a)]((0x0,i[_0xb82515(0x2a1)])(this[_0xb82515(0x3c8)]))[_0xb82515(0x36e)](()=>{const _0x1a03ab=_0xb82515;this[_0x1a03ab(0x3b9)]||this[_0x1a03ab(0x429)]();})));}[_0x43dc4d(0x429)](){const _0x2815c6=_0x43dc4d;this[_0x2815c6(0x41d)]||(this[_0x2815c6(0x41d)]=!0x0,Promise[_0x2815c6(0x2ad)]()[_0x2815c6(0x2d7)](()=>{const _0x36a9b3=_0x2815c6;this[_0x36a9b3(0x41d)]=!0x1,this[_0x36a9b3(0x312)]();}));}[_0x43dc4d(0x312)](){const _0x3481bf=_0x43dc4d;var _0x188594;this['_removeCollabCursors']();let _0x5c3d42=(_0x188594=this[_0x3481bf(0x188)][_0x3481bf(0x330)]['pageManager'][_0x3481bf(0x2b5)]())==null?void 0x0:_0x188594[_0x3481bf(0x283)]();if(!_0x5c3d42)return;let _0x5a9022=[];if(this[_0x3481bf(0x1e9)][_0x3481bf(0x24a)]((_0x106a42,_0x1b44a9)=>{const _0x4166ff=_0x3481bf;_0x106a42['subUnitId']===_0x5c3d42&&_0x106a42['selectedIds'][_0x4166ff(0x24a)](_0x56bc85=>{const _0x204b8a=_0x4166ff;let _0x345052=(0x0,v[_0x204b8a(0x40d)])(_0x106a42[_0x204b8a(0x219)],_0x106a42['subUnitId'],_0x56bc85),_0x41286a=this[_0x204b8a(0x3bc)](_0x345052);if(!_0x41286a)return;let _0x174d2c=this[_0x204b8a(0x1a8)](_0x41286a);_0x5a9022[_0x204b8a(0x39f)](new pe(_0x204b8a(0x1b7)+_0x1b44a9+'-'+_0x56bc85,{..._0x106a42,'left':_0x174d2c[_0x204b8a(0x1c5)],'top':_0x174d2c[_0x204b8a(0x326)],'width':_0x174d2c[_0x204b8a(0x37d)],'height':_0x174d2c[_0x204b8a(0x1d5)],'angle':_0x41286a['angle'],'evented':!0x1,'zIndex':k}));});}),_0x5a9022[_0x3481bf(0x2aa)]===0x0){this[_0x3481bf(0x188)]['scene'][_0x3481bf(0x2f0)](!0x0);return;}this[_0x3481bf(0x3b9)]=!0x0,this['_context']['scene']['addObjects'](_0x5a9022,k),this[_0x3481bf(0x3b9)]=!0x1,this[_0x3481bf(0x1ed)]=new Set(_0x5a9022),this[_0x3481bf(0x188)][_0x3481bf(0x144)][_0x3481bf(0x2f0)](!0x0);}[_0x43dc4d(0x287)](){const _0xa0bb83=_0x43dc4d;let _0x3578f2=Array[_0xa0bb83(0x25e)](this[_0xa0bb83(0x1ed)]);if(_0x3578f2[_0xa0bb83(0x2aa)]===0x0)return;let _0x5dc832=this[_0xa0bb83(0x188)][_0xa0bb83(0x144)];_0xa0bb83(0x3e3)in _0x5dc832&&typeof _0x5dc832[_0xa0bb83(0x3e3)]=='function'?_0x5dc832[_0xa0bb83(0x3e3)](_0x3578f2):_0x3578f2['forEach'](_0x1d53c9=>{const _0x45d460=_0xa0bb83;_0x45d460(0x2b3)in _0x5dc832&&typeof _0x5dc832[_0x45d460(0x2b3)]==_0x45d460(0x295)?_0x5dc832['removeObject'](_0x1d53c9):_0x1d53c9[_0x45d460(0x453)]();}),this[_0xa0bb83(0x1ed)]['clear'](),_0x5dc832['makeDirty'](!0x0);}['_getSceneObjectByKey'](_0xcc2b6d){const _0x4a0398=_0x43dc4d;var _0x118f8e,_0x488fe0,_0x3c48d1;let _0x437966=this[_0x4a0398(0x188)]['scene'];return(_0x118f8e=(_0x488fe0=(_0x3c48d1=_0x437966['getObjectIncludeInGroup'])==null?void 0x0:_0x3c48d1['call'](_0x437966,_0xcc2b6d))==null?_0x437966[_0x4a0398(0x2e6)](_0xcc2b6d):_0x488fe0)==null?null:_0x118f8e;}[_0x43dc4d(0x1a8)](_0x58c5dc){const _0xa41477=_0x43dc4d;var _0x38405f,_0x49a63f;let _0xa39ea3=_0x58c5dc;return(_0x38405f=(_0x49a63f=_0xa39ea3[_0xa41477(0x145)])==null?void 0x0:_0x49a63f[_0xa41477(0x1e0)](_0xa39ea3))==null?{'left':_0x58c5dc['left'],'top':_0x58c5dc['top'],'width':_0x58c5dc[_0xa41477(0x37d)],'height':_0x58c5dc[_0xa41477(0x1d5)]}:_0x38405f;}};V=w([C(0x1,(0x0,n[_0x43dc4d(0x379)])(I)),C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x316)]))],V);let H=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x697671,_0x116591,_0x55766f,_0x1a5957,_0x45536e,_0x1ded08){const _0x2e9cea=_0x43dc4d;super(),this[_0x2e9cea(0x1d6)]=_0x697671,this['_localCacheService']=_0x116591,this['_collaborationUIEventService']=_0x55766f,this[_0x2e9cea(0x3d6)]=_0x1a5957,this[_0x2e9cea(0x449)]=_0x45536e,this['_localeService']=_0x1ded08,this['_setupBeforeClosingHandler'](),this[_0x2e9cea(0x1ff)]();}[_0x43dc4d(0x2a0)](){const _0x1d205d=_0x43dc4d;this[_0x1d205d(0x365)](this[_0x1d205d(0x1d6)][_0x1d205d(0x378)](()=>{const _0xead2ea=_0x1d205d;if(this[_0xead2ea(0x425)][_0xead2ea(0x3a9)][_0xead2ea(0x328)])return this[_0xead2ea(0x366)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x43dc4d(0x1ff)](){const _0x4f7d3c=_0x43dc4d;this[_0x4f7d3c(0x365)](this[_0x4f7d3c(0x317)]['event$'][_0x4f7d3c(0x36e)](_0x3e5f70=>{const _0x31c501=_0x4f7d3c;_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x235)]&&this[_0x31c501(0x3d6)][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)][_0x31c501(0x259)],'content':this[_0x31c501(0x366)]['t'](_0x31c501(0x356))}),_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x224)]&&this[_0x31c501(0x3d6)][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)][_0x31c501(0x259)],'content':this[_0x31c501(0x366)]['t'](_0x31c501(0x3cc))}),_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x167)]&&this[_0x31c501(0x449)][_0x31c501(0x212)]({'title':this[_0x31c501(0x366)]['t'](_0x31c501(0x338)),'content':this[_0x31c501(0x366)]['t'](_0x31c501(0x23d)),'type':_0x31c501(0x3e2),'duration':0x0}),_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x373)]&&this[_0x31c501(0x449)]['show']({'title':this[_0x31c501(0x366)]['t'](_0x31c501(0x201)),'content':this[_0x31c501(0x366)]['t'](_0x31c501(0x3c3)),'type':'error','duration':0x0}),_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x36b)]&&this['_messageService'][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)]['Warning'],'content':this[_0x31c501(0x366)]['t'](_0x3e5f70[_0x31c501(0x2a7)]||'')}),_0x3e5f70['id']===t[_0x31c501(0x1e2)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)][_0x31c501(0x259)],'content':this[_0x31c501(0x366)]['t']('collaboration-client-ui.session.will-retry')}),_0x3e5f70['id']===t[_0x31c501(0x1e2)][_0x31c501(0x1ae)]&&this[_0x31c501(0x3d6)][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)][_0x31c501(0x26b)],'content':this['_localeService']['t'](_0x31c501(0x262))}),_0x3e5f70['id']===t[_0x31c501(0x1e2)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x31c501(0x212)]({'type':o[_0x31c501(0x3fe)]['Error'],'content':this[_0x31c501(0x366)]['t'](_0x31c501(0x25a))});}));}};H=w([C(0x0,r[_0x43dc4d(0x2e7)]),C(0x1,t[_0x43dc4d(0x1d8)]),C(0x2,(0x0,n['Inject'])(t[_0x43dc4d(0x1da)])),C(0x3,r[_0x43dc4d(0x33a)]),C(0x4,r['INotificationService']),C(0x5,(0x0,n[_0x43dc4d(0x379)])(n['LocaleService']))],H);const U=(0x0,n[_0x43dc4d(0x2d2)])('uni.network.url-service');let W=class extends n[_0x43dc4d(0x1e5)]{constructor(_0x3a35a8,_0x2ff5df,_0x4acd0c,_0x445b68,_0x2acd4b){const _0x43646f=_0x43dc4d;super(),this[_0x43646f(0x23b)]=_0x3a35a8,this['_logService']=_0x2ff5df,this[_0x43646f(0x300)]=_0x4acd0c,this[_0x43646f(0x239)]=_0x445b68,_0x2acd4b?_0x2acd4b[_0x43646f(0x3fb)]()[_0x43646f(0x2d7)](()=>this[_0x43646f(0x299)]()):(this[_0x43646f(0x439)][_0x43646f(0x178)]('[CollaborationDataLoaderController]',_0x43646f(0x2b1)),this['_init']());}async['_init'](){const _0x28d8aa=_0x43dc4d;let _0x4edd36=this[_0x28d8aa(0x23b)][_0x28d8aa(0x33c)](_0x28d8aa(0x330)),_0x1c1b47=this[_0x28d8aa(0x23b)]['getParam'](_0x28d8aa(0x41c)),_0x5b2571=this['_urlService'][_0x28d8aa(0x33c)](_0x28d8aa(0x1bf));if(!_0x4edd36||!_0x1c1b47){this[_0x28d8aa(0x439)][_0x28d8aa(0x178)](_0x28d8aa(0x2cf),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x5e8648=await this['_dataLoaderService'][_0x28d8aa(0x1f9)](_0x4edd36,Number(_0x1c1b47),_0x5b2571);_0x5e8648&&_0x5e8648 instanceof n[_0x28d8aa(0x169)]&&this[_0x28d8aa(0x202)](_0x5e8648);}async['_setupSubUnitSync'](_0xb90b1){const _0x3a4ad6=_0x43dc4d;await this[_0x3a4ad6(0x2c6)](_0xb90b1),_0xb90b1[_0x3a4ad6(0x28e)][_0x3a4ad6(0x32a)]((0x0,i[_0x3a4ad6(0x2a1)])(this[_0x3a4ad6(0x3c8)]))['subscribe'](_0x3f27c9=>{const _0x2ab549=_0x3a4ad6;_0x3f27c9&&this[_0x2ab549(0x3b5)](_0x3f27c9);}),this[_0x3a4ad6(0x23b)][_0x3a4ad6(0x388)]['pipe']((0x0,i[_0x3a4ad6(0x2a1)])(this[_0x3a4ad6(0x3c8)]))[_0x3a4ad6(0x36e)](()=>this['_updateSubUnitFromURLParams'](_0xb90b1));}[_0x43dc4d(0x3b5)](_0x31c345,_0x1227b1=!0x1){const _0x518f3c=_0x43dc4d;let _0x17515f=this[_0x518f3c(0x23b)]['getParam'](_0x518f3c(0x1bf));_0x31c345[_0x518f3c(0x17b)]()!==_0x17515f&&this['_urlService']['setParam'](_0x518f3c(0x1bf),_0x31c345['getSheetId'](),_0x1227b1);}async[_0x43dc4d(0x2c6)](_0x5896b9){const _0x17ded7=_0x43dc4d;var _0x5cad6b;let _0x5aaea0=this['_urlService'][_0x17ded7(0x33c)](_0x17ded7(0x1bf));if(!_0x5aaea0||!_0x5896b9['getSheetBySheetId'](_0x5aaea0)){let _0x2c68f6=_0x5896b9[_0x17ded7(0x2ff)]()[0x0],_0x220716=_0x5896b9['getSheetBySheetId'](_0x2c68f6);if(!_0x220716)return;this[_0x17ded7(0x3b5)](_0x220716,!0x0),await this['_commandService'][_0x17ded7(0x1ea)](_[_0x17ded7(0x1ec)]['id'],{'unitId':_0x5896b9[_0x17ded7(0x319)](),'subUnitId':_0x2c68f6});return;}((_0x5cad6b=_0x5896b9['getActiveSheet']())==null?void 0x0:_0x5cad6b['getSheetId']())!==_0x5aaea0&&await this[_0x17ded7(0x300)][_0x17ded7(0x1ea)](_['SetWorksheetActivateCommand']['id'],{'unitId':_0x5896b9['getUnitId'](),'subUnitId':_0x5aaea0});}};W=w([C(0x0,U),C(0x1,n[_0x43dc4d(0x213)]),C(0x2,n[_0x43dc4d(0x27c)]),C(0x3,(0x0,n[_0x43dc4d(0x379)])(t['DataLoaderService'])),C(0x4,(0x0,n[_0x43dc4d(0x2b9)])(ee['IRemoteInstanceService']))],W);let G=class{constructor(_0x21bba4,_0x30f3bb){const _0x4c6453=_0x43dc4d;this[_0x4c6453(0x2bb)]=_0x21bba4,this[_0x4c6453(0x434)]=_0x30f3bb;}['transformIMECache'](_0x4c5f60){const _0x285ac5=_0x43dc4d;this[_0x285ac5(0x443)](_0x4c5f60),this[_0x285ac5(0x15d)](_0x4c5f60);}[_0x43dc4d(0x40e)](_0x484fcd){const _0x526cfe=_0x43dc4d;let {unitID:_0x2490c8}=_0x484fcd,{redoCache:_0x51238d}=this[_0x526cfe(0x434)][_0x526cfe(0x160)](_0x2490c8)[_0x526cfe(0x244)](p[_0x526cfe(0x376)])[_0x526cfe(0x43f)]();if(_0x51238d[_0x526cfe(0x2aa)]===0x0)return _0x484fcd;let _0x47a723=n['Tools'][_0x526cfe(0x452)](_0x484fcd[_0x526cfe(0x311)][0x0]);for(let _0x164307=0x0;_0x164307<_0x51238d[_0x526cfe(0x2aa)];_0x164307++){let _0x23d7c9={'id':'doc.mutation.rich-text-editing','params':{..._0x51238d[_0x164307]}},_0x41a3d3=this[_0x526cfe(0x2bb)]['transformMutation'](_0x47a723,_0x23d7c9,!0x1);if((0x0,u[_0x526cfe(0x3ea)])(_0x41a3d3))throw _0x41a3d3['error'];_0x47a723=_0x41a3d3[_0x526cfe(0x247)];}return{...n[_0x526cfe(0x24b)][_0x526cfe(0x452)](_0x484fcd),'mutations':[_0x47a723]};}[_0x43dc4d(0x443)](_0x7e160c){const _0x382262=_0x43dc4d;let {unitID:_0x22ae18}=_0x7e160c,_0x43a9ae=this[_0x382262(0x434)][_0x382262(0x160)](_0x22ae18)[_0x382262(0x244)](p['DocIMEInputManagerService']),{undoCache:_0xf61e3a,redoCache:_0xaba11b}=_0x43a9ae[_0x382262(0x43f)]();if(_0xf61e3a['length']===0x0||_0xaba11b[_0x382262(0x2aa)]===0x0)return;let _0x132294=[],_0x5b92da=[],_0x1f9016=n[_0x382262(0x24b)][_0x382262(0x452)](_0x7e160c[_0x382262(0x311)][0x0]),_0xdddb53=n['Tools'][_0x382262(0x452)](_0x7e160c[_0x382262(0x311)][0x0]);for(let _0x279248=_0xf61e3a[_0x382262(0x2aa)]-0x1;_0x279248>=0x0;_0x279248--){let _0x1118af={'id':_0x382262(0x226),'params':{..._0xf61e3a[_0x279248]}},_0x1fe0a7={'id':_0x382262(0x226),'params':{..._0xaba11b[_0x279248]}},_0x5d0221=this[_0x382262(0x2bb)][_0x382262(0x256)](_0x1f9016,_0x1118af,!0x1),_0x423671=this[_0x382262(0x2bb)][_0x382262(0x256)](_0xdddb53,_0x1fe0a7,!0x1);if((0x0,u['isTransformMutationFailure'])(_0x5d0221))throw _0x5d0221['error'];if((0x0,u['isTransformMutationFailure'])(_0x423671))throw _0x423671[_0x382262(0x3e2)];_0x132294[_0x382262(0x342)](_0x5d0221[_0x382262(0x3ec)]['params']),_0x5b92da[_0x382262(0x342)](_0x423671[_0x382262(0x3ec)][_0x382262(0x22c)]),_0x1f9016=_0x5d0221[_0x382262(0x247)],_0xdddb53=_0x423671[_0x382262(0x247)];}_0x43a9ae[_0x382262(0x225)]({'undoCache':_0x132294,'redoCache':_0x5b92da});}[_0x43dc4d(0x15d)](_0x5b5201){const _0x43e6ef=_0x43dc4d;let {unitID:_0x1e4e64}=_0x5b5201,_0x161125=this[_0x43e6ef(0x434)][_0x43e6ef(0x160)](_0x1e4e64)['with'](p[_0x43e6ef(0x376)]),_0x365354=_0x161125[_0x43e6ef(0x182)]();if(_0x365354==null)return;let _0x34ccb4=[{'id':_0x43e6ef(0x226),'params':{'unitId':_0x5b5201['unitID'],'actions':null,'textRanges':[_0x365354]}}],_0x312146=this['_transformService'][_0x43e6ef(0x156)](_0x5b5201,_0x34ccb4);if(!(0x0,u['isTransformMutationsWithChangesetSuccess'])(_0x312146))throw _0x312146['error'];let _0x17dff5=_0x312146[_0x43e6ef(0x3ec)][0x0][_0x43e6ef(0x22c)]['textRanges'];Array[_0x43e6ef(0x152)](_0x17dff5)&&_0x17dff5[_0x43e6ef(0x2aa)]&&_0x161125[_0x43e6ef(0x203)](_0x17dff5[0x0]);}};G=w([C(0x0,u[_0x43dc4d(0x40b)]),C(0x1,m[_0x43dc4d(0x1ef)])],G);let K=class{constructor(_0x437a3d,_0x2b5ddc,_0x3f674e){const _0xd7f186=_0x43dc4d;this[_0xd7f186(0x360)]=_0x437a3d,this[_0xd7f186(0x2bb)]=_0x2b5ddc,this['_docStateChangeManagerService']=_0x3f674e;}[_0x43dc4d(0x162)](_0x2e5025){const _0x56bd79=_0x43dc4d;this[_0x56bd79(0x1a2)](_0x2e5025);}[_0x43dc4d(0x40e)](_0x1e0df8){const _0x2876dd=_0x43dc4d;let {unitID:_0x29d79b}=_0x1e0df8,{collaboration:_0x224982}=this[_0x2876dd(0x42d)]['getStateCache'](_0x29d79b);if(_0x224982[_0x2876dd(0x2aa)]===0x0)return _0x1e0df8;let _0x4df962=n['Tools'][_0x2876dd(0x452)](_0x1e0df8[_0x2876dd(0x311)][0x0]);for(let _0x383071=0x0;_0x383071<_0x224982[_0x2876dd(0x2aa)];_0x383071++){let _0x2fde08={'id':_0x2876dd(0x226),'params':{'unitId':_0x224982[_0x383071]['unitId'],..._0x224982[_0x383071][_0x2876dd(0x3d0)]}},_0x48b1d8=this[_0x2876dd(0x2bb)]['transformMutation'](_0x4df962,_0x2fde08,!0x1);if((0x0,u['isTransformMutationFailure'])(_0x48b1d8))throw _0x48b1d8[_0x2876dd(0x3e2)];_0x4df962=_0x48b1d8[_0x2876dd(0x247)];}return{...n['Tools'][_0x2876dd(0x452)](_0x1e0df8),'mutations':[_0x4df962]};}['_transformHistoryAndStateStack'](_0x3c5a60){const _0xb4256c=_0x43dc4d;let {unitID:_0x3404e5}=_0x3c5a60,{history:_0x40317c,collaboration:_0x258175}=this[_0xb4256c(0x42d)][_0xb4256c(0x2d0)](_0x3404e5);if(_0x40317c[_0xb4256c(0x2aa)]===0x0&&_0x258175['length']===0x0)return;let _0x4d3b62=[],_0x2f4cc2=[],_0x3bdf2f=n[_0xb4256c(0x24b)]['deepClone'](_0x3c5a60[_0xb4256c(0x311)][0x0]),_0x498349=n[_0xb4256c(0x24b)][_0xb4256c(0x452)](_0x3c5a60[_0xb4256c(0x311)][0x0]);for(let _0x1cc203=_0x40317c['length']-0x1;_0x1cc203>=0x0;_0x1cc203--){let _0x2cc095={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x40317c[_0x1cc203]['unitId'],..._0x40317c[_0x1cc203][_0xb4256c(0x410)]}},_0x21e96d={'id':_0xb4256c(0x226),'params':{'unitId':_0x40317c[_0x1cc203]['unitId'],..._0x40317c[_0x1cc203][_0xb4256c(0x3d0)]}},_0x2a0dcb=this[_0xb4256c(0x2bb)][_0xb4256c(0x256)](_0x3bdf2f,_0x2cc095,!0x1),_0x48514c=this[_0xb4256c(0x2bb)]['transformMutation'](_0x498349,_0x21e96d,!0x1);if((0x0,u[_0xb4256c(0x3ea)])(_0x2a0dcb))throw _0x2a0dcb['error'];if((0x0,u[_0xb4256c(0x3ea)])(_0x48514c))throw _0x48514c[_0xb4256c(0x3e2)];_0x4d3b62['unshift']({..._0x40317c[_0x1cc203],'undoState':_0x2a0dcb[_0xb4256c(0x3ec)]['params'],'redoState':_0x48514c[_0xb4256c(0x3ec)]['params']}),_0x3bdf2f=_0x2a0dcb['m1Prime'],_0x498349=_0x48514c[_0xb4256c(0x247)];}_0x3bdf2f=n['Tools'][_0xb4256c(0x452)](_0x3c5a60[_0xb4256c(0x311)][0x0]),_0x498349=n[_0xb4256c(0x24b)]['deepClone'](_0x3c5a60[_0xb4256c(0x311)][0x0]);for(let _0x56d287=_0x258175[_0xb4256c(0x2aa)]-0x1;_0x56d287>=0x0;_0x56d287--){let _0x361334={'id':_0xb4256c(0x226),'params':{'unitId':_0x258175[_0x56d287][_0xb4256c(0x219)],..._0x258175[_0x56d287][_0xb4256c(0x410)]}},_0x50a7b8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x258175[_0x56d287][_0xb4256c(0x219)],..._0x258175[_0x56d287][_0xb4256c(0x3d0)]}},_0x1c44da=this[_0xb4256c(0x2bb)][_0xb4256c(0x256)](_0x3bdf2f,_0x361334,!0x1),_0x4eb9de=this[_0xb4256c(0x2bb)][_0xb4256c(0x256)](_0x498349,_0x50a7b8,!0x1);if((0x0,u[_0xb4256c(0x3ea)])(_0x1c44da))throw _0x1c44da['error'];if((0x0,u[_0xb4256c(0x3ea)])(_0x4eb9de))throw _0x4eb9de[_0xb4256c(0x3e2)];_0x2f4cc2[_0xb4256c(0x342)]({..._0x258175[_0x56d287],'undoState':_0x1c44da[_0xb4256c(0x3ec)]['params'],'redoState':_0x4eb9de[_0xb4256c(0x3ec)][_0xb4256c(0x22c)]}),_0x3bdf2f=_0x1c44da[_0xb4256c(0x247)],_0x498349=_0x4eb9de[_0xb4256c(0x247)];}this['_docStateChangeManagerService']['setStateCache'](_0x3404e5,{'history':_0x4d3b62,'collaboration':_0x2f4cc2});}};K=w([C(0x0,(0x0,n['Inject'])(n['Injector'])),C(0x1,u[_0x43dc4d(0x40b)]),C(0x2,(0x0,n['Inject'])(f[_0x43dc4d(0x2ee)]))],K);let q=class{constructor(_0x19e05d,_0x2525df){const _0x4cf6da=_0x43dc4d;this[_0x4cf6da(0x360)]=_0x19e05d,this[_0x4cf6da(0x2bb)]=_0x2525df;}['transformSelections'](_0x563647){const _0x17ef53=_0x43dc4d;var _0x404a24;let _0x279f57=this[_0x17ef53(0x360)][_0x17ef53(0x2e2)](f[_0x17ef53(0x414)]),_0x50bfee=(_0x404a24=_0x279f57[_0x17ef53(0x1f6)]())==null?[]:_0x404a24;if(_0x50bfee['length']===0x0)return;let _0x45d8c9=_0x563647['unitID'],_0x32ccde=[{'id':_0x17ef53(0x226),'params':{'unitId':_0x45d8c9,'actions':null,'textRanges':_0x50bfee}}],_0x1e2e1e=this[_0x17ef53(0x2bb)][_0x17ef53(0x156)](_0x563647,_0x32ccde);if(!(0x0,u[_0x17ef53(0x37b)])(_0x1e2e1e))throw _0x1e2e1e[_0x17ef53(0x3e2)];let _0x1bf67b=_0x1e2e1e[_0x17ef53(0x3ec)][0x0]['params'][_0x17ef53(0x374)];Array[_0x17ef53(0x152)](_0x1bf67b)&&_0x1bf67b[_0x17ef53(0x2aa)]&&_0x279f57[_0x17ef53(0x2ab)](_0x1bf67b,{'unitId':_0x45d8c9,'subUnitId':_0x45d8c9},!0x1);}};q=w([C(0x0,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x1,u[_0x43dc4d(0x40b)])],q);let J=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x2b1762,_0x325160,_0x3a05de,_0x3f5907,_0x565e72,_0x5d779d,_0x3f1e4c){const _0x9583a7=_0x43dc4d;super(),this['_collaborationController']=_0x2b1762,this['_docTransformIMECacheService']=_0x325160,this['_docTransformStateCacheService']=_0x3a05de,this[_0x9583a7(0x14e)]=_0x3f5907,this[_0x9583a7(0x41f)]=_0x565e72,this[_0x9583a7(0x3d6)]=_0x5d779d,this['_localeService']=_0x3f1e4c,S(this,_0x9583a7(0x24d),new i[(_0x9583a7(0x344))](t[_0x9583a7(0x151)][_0x9583a7(0x180)])),this[_0x9583a7(0x2de)]();}['_initEntityListener'](){const _0x2b98c3=_0x43dc4d;this[_0x2b98c3(0x365)](this[_0x2b98c3(0x16d)]['entityInit$'][_0x2b98c3(0x36e)](_0x484071=>{const _0x1f0ffa=_0x2b98c3;_0x484071 instanceof t[_0x1f0ffa(0x36a)]&&_0x484071['addHandlerCallback']({'onTransformIME':_0x29b326=>this[_0x1f0ffa(0x40a)][_0x1f0ffa(0x42c)](_0x29b326),'onTransformState':_0x468bd2=>this['_docTransformStateCacheService'][_0x1f0ffa(0x162)](_0x468bd2),'onTransformSelections':_0x18652a=>this[_0x1f0ffa(0x14e)]['transformSelections'](_0x18652a),'onSyncEditingCollabCursor':_0x2d9379=>this[_0x1f0ffa(0x41f)][_0x1f0ffa(0x205)](_0x2d9379),'onTransformRemoteChangesetByIMECache':_0x2005a7=>this[_0x1f0ffa(0x40a)]['transformRemoteChangeset'](_0x2005a7),'onTransformRemoteChangesetByStateCache':_0x2929fd=>this[_0x1f0ffa(0x2ec)][_0x1f0ffa(0x40e)](_0x2929fd)});}));}};function _0x196d(_0x4c5994,_0x116498){_0x4c5994=_0x4c5994-0x13f;const _0x1e5ce8=_0x1e5c();let _0x196ddf=_0x1e5ce8[_0x4c5994];return _0x196ddf;}J=w([C(0x0,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x34d)])),C(0x1,(0x0,n['Inject'])(G)),C(0x2,(0x0,n[_0x43dc4d(0x379)])(K)),C(0x3,(0x0,n[_0x43dc4d(0x379)])(q)),C(0x4,(0x0,n[_0x43dc4d(0x379)])(M)),C(0x5,r[_0x43dc4d(0x33a)]),C(0x6,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x252)]))],J);let Y=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x29bc37,_0x497cfe,_0x194c5a,_0x5a5062){const _0x5bfb52=_0x43dc4d;super(),this[_0x5bfb52(0x360)]=_0x29bc37,this['_httpService']=_0x497cfe,this[_0x5bfb52(0x439)]=_0x194c5a,this[_0x5bfb52(0x3e4)]=_0x5a5062,S(this,_0x5bfb52(0x349),void 0x0),this[_0x5bfb52(0x299)]();}[_0x43dc4d(0x299)](){const _0x329637=_0x43dc4d;this[_0x329637(0x355)](),this['_initUnhandledRejectionListener'](),this[_0x329637(0x3f4)](),this[_0x329637(0x2cc)]();}['_initUserListener'](){const _0x1f60b5=_0x43dc4d;this[_0x1f60b5(0x365)](this['_collaborationSessionService'][_0x1f60b5(0x179)][_0x1f60b5(0x36e)](_0x1f0c21=>{this['_memberID']=_0x1f0c21==null?void 0x0:_0x1f0c21['memberID'];}));}['_initWindowErrorListener'](){const _0x2ac8f=_0x43dc4d;let _0x45f43a=_0x2dd5ca=>{const _0x33597c=_0x196d;var _0x196c94;this[_0x33597c(0x39c)](_0x33597c(0x3e2),_0x33597c(0x296)+_0x2dd5ca[_0x33597c(0x22d)]+_0x33597c(0x395)+_0x2dd5ca[_0x33597c(0x33e)]+':'+_0x2dd5ca[_0x33597c(0x257)]+':'+_0x2dd5ca[_0x33597c(0x31a)]+'\x0a'+(((_0x196c94=_0x2dd5ca['error'])==null?void 0x0:_0x196c94[_0x33597c(0x16a)])||''));};window['addEventListener'](_0x2ac8f(0x3e2),_0x45f43a),this[_0x2ac8f(0x365)](()=>{const _0x5e2473=_0x2ac8f;window[_0x5e2473(0x3f2)](_0x5e2473(0x3e2),_0x45f43a);});}['_initUnhandledRejectionListener'](){const _0x5d55a6=_0x43dc4d;let _0xde55a8=_0x58a9a9=>{const _0xf0c1bd=_0x196d;this[_0xf0c1bd(0x39c)](_0xf0c1bd(0x3e2),_0xf0c1bd(0x419)+_0x58a9a9[_0xf0c1bd(0x25f)]);};window['addEventListener']('unhandledrejection',_0xde55a8),this[_0x5d55a6(0x365)](()=>{window['removeEventListener']('unhandledrejection',_0xde55a8);});}[_0x43dc4d(0x3f4)](){const _0x2b35f0=_0x43dc4d;let _0x1e48a3=this[_0x2b35f0(0x439)][_0x2b35f0(0x3e2)][_0x2b35f0(0x23a)](this[_0x2b35f0(0x439)]);this['_logService'][_0x2b35f0(0x3e2)]=(..._0x2e6c5e)=>{const _0xbe314d=_0x2b35f0;let _0x550136=_0x2e6c5e[_0xbe314d(0x1fa)](_0x4d7349=>_0x4d7349 instanceof Error?_0x4d7349[_0xbe314d(0x22d)]+'\x0a'+_0x4d7349[_0xbe314d(0x16a)]:String(_0x4d7349))['join']('\x20');this[_0xbe314d(0x39c)](_0xbe314d(0x3e2),'[LogService\x20Error]:\x20'+_0x550136),_0x1e48a3(..._0x2e6c5e);},this['disposeWithMe'](()=>{const _0x36fb7b=_0x2b35f0;this['_logService'][_0x36fb7b(0x3e2)]=_0x1e48a3;});}[_0x43dc4d(0x39c)](_0x44ecdf,_0x3abe43){const _0x1ce043=_0x43dc4d;try{let _0x1ae3f6={'userId':this[_0x1ce043(0x349)],'logLabel':_0x44ecdf,'content':_0x3abe43};this[_0x1ce043(0x24e)][_0x1ce043(0x27e)](_0x1ce043(0x422),{'body':_0x1ae3f6})['catch'](()=>{});}catch{}}};Y=w([C(0x0,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x1,(0x0,n['Inject'])(h['HTTPService'])),C(0x2,n[_0x43dc4d(0x213)]),C(0x3,(0x0,n[_0x43dc4d(0x379)])(t[_0x43dc4d(0x393)]))],Y);function Ce({state$:_0x315bf2,interactionBlocked$:_0x509c51}){const _0x19f69d=_0x43dc4d;return(0x0,l[_0x19f69d(0x38d)])(l[_0x19f69d(0x273)],{'children':[(0x0,r[_0x19f69d(0x20d)])(_0x509c51,!0x1,!0x0)&&(0x0,l[_0x19f69d(0x309)])(_0x19f69d(0x223),{'data-u-comp':'snapshot-loading-interaction-guard','aria-hidden':!0x0,'className':'univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait'}),(0x0,l[_0x19f69d(0x309)])(we,{'state$':_0x315bf2})]});}function we({state$:_0x5dbd5b}){const _0xd7f47f=_0x43dc4d;let _0x10c6c2=(0x0,r[_0xd7f47f(0x20d)])(_0x5dbd5b,null,!0x0);return _0x10c6c2?(0x0,l[_0xd7f47f(0x38d)])('div',{'data-u-comp':_0xd7f47f(0x19a),'role':'alert','className':_0xd7f47f(0x1c7),'children':[(0x0,l[_0xd7f47f(0x309)])(s[_0xd7f47f(0x1ab)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,l[_0xd7f47f(0x309)])('span',{'children':_0x10c6c2['content']}),(0x0,l[_0xd7f47f(0x309)])(o[_0xd7f47f(0x2b2)],{'size':_0xd7f47f(0x2a9),'variant':_0xd7f47f(0x447),'onClick':()=>window[_0xd7f47f(0x3c6)][_0xd7f47f(0x2e4)](),'children':_0x10c6c2['refreshLabel']})]}):null;}const X=_0x43dc4d(0x142);let Z=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x230f01,_0x2deb37,_0x2da022,_0x233786,_0x351736,_0x3180f1,_0x4b114c,_0x266205){const _0x54a373=_0x43dc4d;super(),this['_snapshotLoadingService']=_0x230f01,this[_0x54a373(0x3d6)]=_0x2deb37,this[_0x54a373(0x366)]=_0x2da022,this['_injector']=_0x233786,this[_0x54a373(0x1af)]=_0x351736,this[_0x54a373(0x181)]=_0x4b114c,this[_0x54a373(0x23b)]=_0x266205,S(this,_0x54a373(0x3de),new i[(_0x54a373(0x344))](null)),S(this,_0x54a373(0x1a5),new i[(_0x54a373(0x344))](!0x1)),S(this,_0x54a373(0x409),new Set()),S(this,_0x54a373(0x3e1),new Map()),S(this,_0x54a373(0x2f7),new Set()),S(this,_0x54a373(0x1df),new Map()),S(this,_0x54a373(0x314),void 0x0),S(this,_0x54a373(0x413),void 0x0),S(this,_0x54a373(0x161),void 0x0),S(this,'timeoutState$',this[_0x54a373(0x3de)][_0x54a373(0x34b)]());let _0x5dee23=()=>(0x0,c[_0x54a373(0x383)])(Ce,{'state$':this['timeoutState$'],'interactionBlocked$':this[_0x54a373(0x1a5)]});this[_0x54a373(0x365)](_0x3180f1[_0x54a373(0x1be)](r[_0x54a373(0x26a)][_0x54a373(0x18d)],()=>(0x0,r[_0x54a373(0x2c4)])(_0x5dee23,this[_0x54a373(0x360)]))),this['disposeWithMe'](this[_0x54a373(0x310)][_0x54a373(0x335)][_0x54a373(0x36e)](_0x2c5c8f=>{const _0x5dde75=_0x54a373;this[_0x5dde75(0x1df)]=_0x2c5c8f,_0x2c5c8f[_0x5dde75(0x24a)](_0x4fb5e2=>{const _0x22d76e=_0x5dde75;this['_updateMessage'](_0x4fb5e2),this[_0x22d76e(0x266)](_0x4fb5e2);});})),this[_0x54a373(0x365)](this[_0x54a373(0x23b)][_0x54a373(0x388)][_0x54a373(0x36e)](()=>{const _0x258661=_0x54a373;this[_0x258661(0x1df)][_0x258661(0x24a)](_0x4f28b3=>{const _0x228bd1=_0x258661;this['_updateMessage'](_0x4f28b3),this[_0x228bd1(0x266)](_0x4f28b3);});}));}[_0x43dc4d(0x453)](){const _0x339154=_0x43dc4d;var _0x5a20e0;if(this[_0x339154(0x409)][_0x339154(0x24a)](_0x47cd33=>this[_0x339154(0x3d6)][_0x339154(0x341)](_0x47cd33)),this[_0x339154(0x409)][_0x339154(0x38a)](),this[_0x339154(0x314)]){var _0x118353;(_0x118353=this[_0x339154(0x161)])==null||_0x118353['hide'](this['_previewUnitId']);}this[_0x339154(0x314)]=void 0x0,this['_blockProgressWatches'][_0x339154(0x24a)](({timeoutId:_0x2cb860})=>clearTimeout(_0x2cb860)),this['_blockProgressWatches']['clear'](),(_0x5a20e0=this[_0x339154(0x413)])==null||_0x5a20e0[_0x339154(0x453)](),this[_0x339154(0x413)]=void 0x0,this[_0x339154(0x3de)][_0x339154(0x2ca)](),this['_interactionBlocked$'][_0x339154(0x2ca)](),super[_0x339154(0x453)]();}[_0x43dc4d(0x390)](_0x17e9da){const _0x3d78f7=_0x43dc4d;let _0x49bb71=''+X+_0x17e9da[_0x3d78f7(0x219)];if(_0x17e9da[_0x3d78f7(0x3e8)]===u[_0x3d78f7(0x3a4)][_0x3d78f7(0x291)]){if(this[_0x3d78f7(0x29e)](_0x17e9da['unitId']),this[_0x3d78f7(0x32e)](_0x17e9da[_0x3d78f7(0x219)])&&this[_0x3d78f7(0x314)]===_0x17e9da['unitId']){this[_0x3d78f7(0x3d6)][_0x3d78f7(0x212)]({'id':_0x49bb71,'type':o[_0x3d78f7(0x3fe)][_0x3d78f7(0x28d)],'duration':0x1/0x0,'content':this[_0x3d78f7(0x366)]['t'](_0x3d78f7(0x2e1))}),this[_0x3d78f7(0x409)][_0x3d78f7(0x1a1)](_0x49bb71);return;}this[_0x3d78f7(0x272)](_0x17e9da['unitId']),this[_0x3d78f7(0x3d6)]['remove'](_0x49bb71),this[_0x3d78f7(0x409)]['delete'](_0x49bb71);return;}if(!this[_0x3d78f7(0x32e)](_0x17e9da['unitId'])){this[_0x3d78f7(0x29e)](_0x17e9da[_0x3d78f7(0x219)]),this[_0x3d78f7(0x272)](_0x17e9da[_0x3d78f7(0x219)]),this['_messageService']['remove'](_0x49bb71),this[_0x3d78f7(0x409)][_0x3d78f7(0x245)](_0x49bb71);return;}if(_0x17e9da[_0x3d78f7(0x3e8)]===u['SnapshotLoadStage']['ERROR']){this[_0x3d78f7(0x29e)](_0x17e9da[_0x3d78f7(0x219)]),this[_0x3d78f7(0x272)](_0x17e9da[_0x3d78f7(0x219)]),this[_0x3d78f7(0x3d6)][_0x3d78f7(0x212)]({'id':_0x49bb71,'type':o['MessageType'][_0x3d78f7(0x26b)],'content':this[_0x3d78f7(0x366)]['t']('collaboration-client-ui.session.connection-failed')}),this[_0x3d78f7(0x409)][_0x3d78f7(0x245)](_0x49bb71);return;}if(_0x17e9da[_0x3d78f7(0x3e8)]!==u[_0x3d78f7(0x3a4)][_0x3d78f7(0x19e)]||_0x17e9da[_0x3d78f7(0x40f)]<=0xa){this[_0x3d78f7(0x29e)](_0x17e9da['unitId']),this[_0x3d78f7(0x3d6)]['remove'](_0x49bb71),this[_0x3d78f7(0x409)]['delete'](_0x49bb71);return;}this[_0x3d78f7(0x339)](_0x17e9da)||(this[_0x3d78f7(0x3d6)][_0x3d78f7(0x212)]({'id':_0x49bb71,'type':o[_0x3d78f7(0x3fe)][_0x3d78f7(0x28d)],'duration':0x1/0x0,'content':this[_0x3d78f7(0x366)]['t'](_0x3d78f7(0x2d6))+'\x20'+_0x17e9da[_0x3d78f7(0x41a)]+'/'+_0x17e9da[_0x3d78f7(0x40f)]}),this[_0x3d78f7(0x409)][_0x3d78f7(0x1a1)](_0x49bb71));}[_0x43dc4d(0x339)](_0x26834d){const _0x44a7c3=_0x43dc4d;let _0x44e87f=this[_0x44a7c3(0x3e1)][_0x44a7c3(0x2e2)](_0x26834d[_0x44a7c3(0x219)]);if((_0x44e87f==null?void 0x0:_0x44e87f['loadedBlocks'])===_0x26834d[_0x44a7c3(0x41a)])return _0x44e87f[_0x44a7c3(0x143)];this[_0x44a7c3(0x29e)](_0x26834d[_0x44a7c3(0x219)]);let _0x392031=setTimeout(()=>{const _0x3ad816=_0x44a7c3;let _0x555ffc=this['_blockProgressWatches'][_0x3ad816(0x2e2)](_0x26834d[_0x3ad816(0x219)]);if(!_0x555ffc||_0x555ffc[_0x3ad816(0x165)]!==_0x392031)return;_0x555ffc[_0x3ad816(0x143)]=!0x0;let _0x50d23c=''+X+_0x26834d['unitId'];this['_messageService'][_0x3ad816(0x341)](_0x50d23c),this['_messageIds']['delete'](_0x50d23c),this[_0x3ad816(0x3de)][_0x3ad816(0x176)]({'unitId':_0x26834d[_0x3ad816(0x219)],'content':this[_0x3ad816(0x366)]['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x26834d['loadedBlocks']),String(_0x26834d['totalBlocks'])),'refreshLabel':this[_0x3ad816(0x366)]['t'](_0x3ad816(0x2db))});},0xea60);return this[_0x44a7c3(0x3e1)][_0x44a7c3(0x1de)](_0x26834d[_0x44a7c3(0x219)],{'loadedBlocks':_0x26834d[_0x44a7c3(0x41a)],'timedOut':!0x1,'timeoutId':_0x392031}),!0x1;}['_clearBlockProgressWatch'](_0x2dddf1){const _0x5daf13=_0x43dc4d;let _0x5596d0=this[_0x5daf13(0x3e1)]['get'](_0x2dddf1);_0x5596d0&&(clearTimeout(_0x5596d0[_0x5daf13(0x165)]),this['_blockProgressWatches'][_0x5daf13(0x245)](_0x2dddf1),this[_0x5daf13(0x272)](_0x2dddf1));}['_clearTimeoutState'](_0x2a13d1){const _0x23233a=_0x43dc4d;var _0x47210a;((_0x47210a=this['_timeoutState$'][_0x23233a(0x25d)])==null?void 0x0:_0x47210a[_0x23233a(0x219)])===_0x2a13d1&&this[_0x23233a(0x3de)]['next'](null);}[_0x43dc4d(0x266)](_0xea3a6c){const _0x17acae=_0x43dc4d;if(_0xea3a6c[_0x17acae(0x3e8)]===u[_0x17acae(0x3a4)][_0x17acae(0x2cd)]&&this[_0x17acae(0x2f7)][_0x17acae(0x245)](_0xea3a6c[_0x17acae(0x219)]),!this[_0x17acae(0x32e)](_0xea3a6c[_0x17acae(0x219)])){this[_0x17acae(0x21d)](_0xea3a6c[_0x17acae(0x219)]);return;}if(_0xea3a6c[_0x17acae(0x3e8)]===u['SnapshotLoadStage']['ERROR']||_0xea3a6c[_0x17acae(0x40f)]<=0xa){this[_0x17acae(0x21d)](_0xea3a6c[_0x17acae(0x219)]);return;}if(_0xea3a6c['stage']===u[_0x17acae(0x3a4)][_0x17acae(0x291)]){this[_0x17acae(0x3bf)](_0xea3a6c['unitId']);return;}if(_0xea3a6c[_0x17acae(0x3e8)]===u[_0x17acae(0x3a4)][_0x17acae(0x19e)]&&_0xea3a6c['workbookShell']&&_0xea3a6c[_0x17acae(0x44d)]){let _0x20f04d=this[_0x17acae(0x346)]();if(!_0x20f04d)return;this[_0x17acae(0x314)]&&this['_previewUnitId']!==_0xea3a6c['unitId']&&this[_0x17acae(0x21d)](this[_0x17acae(0x314)]),_0x20f04d[_0x17acae(0x197)](_0xea3a6c[_0x17acae(0x1c4)],_0xea3a6c[_0x17acae(0x44d)]),this[_0x17acae(0x314)]=_0xea3a6c[_0x17acae(0x219)],this[_0x17acae(0x3c1)](!0x0),_0xea3a6c[_0x17acae(0x3c9)]&&_0x20f04d[_0x17acae(0x212)](_0xea3a6c[_0x17acae(0x1c4)],_0xea3a6c[_0x17acae(0x44d)],_0xea3a6c[_0x17acae(0x3f8)]);}}['_handoffPreview'](_0x29de9b){const _0x2c833a=_0x43dc4d;if(this[_0x2c833a(0x314)]!==_0x29de9b||this[_0x2c833a(0x2f7)][_0x2c833a(0x14f)](_0x29de9b))return;let _0x4bb4df=this[_0x2c833a(0x161)];_0x4bb4df&&(this['_handoffUnitIds'][_0x2c833a(0x1a1)](_0x29de9b),_0x4bb4df[_0x2c833a(0x21b)](_0x29de9b,0x2710)['then'](_0x2b9f45=>{const _0x2926be=_0x2c833a;if(this['_previewUnitId']!==_0x29de9b)return;if(_0x2b9f45){let _0x339799=''+X+_0x29de9b;this[_0x2926be(0x3d6)]['remove'](_0x339799),this[_0x2926be(0x409)][_0x2926be(0x245)](_0x339799),this[_0x2926be(0x314)]=void 0x0,this[_0x2926be(0x3c1)](!0x1);return;}let _0x5d8cb3=''+X+_0x29de9b;this[_0x2926be(0x3d6)][_0x2926be(0x341)](_0x5d8cb3),this['_messageIds'][_0x2926be(0x245)](_0x5d8cb3),this[_0x2926be(0x3de)][_0x2926be(0x176)]({'unitId':_0x29de9b,'content':this[_0x2926be(0x366)]['t'](_0x2926be(0x262)),'refreshLabel':this[_0x2926be(0x366)]['t'](_0x2926be(0x2db))});}));}[_0x43dc4d(0x21d)](_0x342daf){const _0x9ec437=_0x43dc4d;var _0x4b190f;this[_0x9ec437(0x314)]===_0x342daf&&((_0x4b190f=this[_0x9ec437(0x161)])==null||_0x4b190f[_0x9ec437(0x22e)](_0x342daf),this[_0x9ec437(0x314)]=void 0x0,this[_0x9ec437(0x3c1)](!0x1));}[_0x43dc4d(0x3c1)](_0x5c91fc){const _0x3a7245=_0x43dc4d;if(_0x5c91fc!==this[_0x3a7245(0x1a5)][_0x3a7245(0x25d)]){if(_0x5c91fc)this[_0x3a7245(0x413)]=this['_shortcutService']['forceDisable']();else{var _0x66d99a;(_0x66d99a=this[_0x3a7245(0x413)])==null||_0x66d99a[_0x3a7245(0x453)](),this[_0x3a7245(0x413)]=void 0x0;}this[_0x3a7245(0x1a5)][_0x3a7245(0x176)](_0x5c91fc);}}[_0x43dc4d(0x32e)](_0x520f92){const _0x3592c6=_0x43dc4d;let _0x169d15=this[_0x3592c6(0x23b)][_0x3592c6(0x33c)](_0x3592c6(0x330));return!_0x169d15||_0x169d15===_0x520f92;}[_0x43dc4d(0x346)](){const _0x3a2b92=_0x43dc4d;return this[_0x3a2b92(0x161)]?this['_sheetLoadingRenderService']:(this[_0x3a2b92(0x1af)]['startPluginsForType'](n[_0x3a2b92(0x35f)][_0x3a2b92(0x271)]),this[_0x3a2b92(0x360)][_0x3a2b92(0x14f)](y[_0x3a2b92(0x192)])&&(this[_0x3a2b92(0x161)]=this[_0x3a2b92(0x360)][_0x3a2b92(0x2e2)](y[_0x3a2b92(0x192)])),this[_0x3a2b92(0x161)]);}};Z=w([C(0x0,(0x0,n['Inject'])(u[_0x43dc4d(0x3ee)])),C(0x1,r['IMessageService']),C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x252)])),C(0x3,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x4,(0x0,n[_0x43dc4d(0x379)])(n['PluginService'])),C(0x5,r[_0x43dc4d(0x432)]),C(0x6,r[_0x43dc4d(0x307)]),C(0x7,U)],Z);function Te(_0x2da223){const _0x15fef7=_0x43dc4d;var _0x58703c,_0x29b001;let _0x9198c7=(_0x58703c=_0x2da223['stageInfo'])==null?void 0x0:_0x58703c['stage'],_0x3d161f=((_0x29b001=_0x2da223['stageInfo'])==null?void 0x0:_0x29b001['totalFormulasToCalculate'])||0x0;return _0x9198c7===g[_0x15fef7(0x238)][_0x15fef7(0x3da)]&&_0x3d161f>0x0;}function Ee(_0x460c11){const _0x423872=_0x43dc4d;return _0x460c11[_0x423872(0x3af)]===g[_0x423872(0x231)]['SUCCESS'];}let Q=class extends n['Disposable']{constructor(_0x436dc2,_0x1fe517,_0x54d013,_0x11e111,_0x50fe53,_0x3087c2,_0x28ebc2){const _0x354bf7=_0x43dc4d;super(),this[_0x354bf7(0x3d6)]=_0x436dc2,this[_0x354bf7(0x300)]=_0x1fe517,this['_configService']=_0x54d013,this[_0x354bf7(0x24e)]=_0x11e111,this[_0x354bf7(0x455)]=_0x50fe53,this[_0x354bf7(0x439)]=_0x3087c2,this[_0x354bf7(0x366)]=_0x28ebc2,S(this,_0x354bf7(0x23f),null),S(this,_0x354bf7(0x292),0x0),S(this,'_currentUsage',0x0),S(this,'_taskIds',[]),S(this,_0x354bf7(0x3a0),0x0),this[_0x354bf7(0x3fc)]();}[_0x43dc4d(0x3fc)](){const _0xb7b4c6=_0x43dc4d;this['disposeWithMe'](this[_0xb7b4c6(0x300)][_0xb7b4c6(0x2f9)]((_0x304a23,_0x3af761)=>{const _0x4bc4be=_0xb7b4c6;var _0x3107c6;if(_0x304a23['id']!==g[_0x4bc4be(0x2da)]['id'])return;let _0x1aa3b0=_0x304a23[_0x4bc4be(0x22c)];if(this[_0x4bc4be(0x23c)]((_0x3107c6=_0x1aa3b0[_0x4bc4be(0x251)])==null?[]:_0x3107c6)&&!this[_0x4bc4be(0x37a)]())throw this[_0x4bc4be(0x243)](_0x304a23,_0x3af761),this[_0x4bc4be(0x2cb)](),new n['CanceledError']();})),this[_0xb7b4c6(0x365)](this['_commandService']['onCommandExecuted']((_0xd473e,_0x16969d)=>{const _0x7aaa6d=_0xb7b4c6;if(_0xd473e['id']!==g[_0x7aaa6d(0x1d2)]['id'])return;let _0x12240a=_0xd473e['params'];if(Te(_0x12240a)){let _0x3126fe=(0x0,n[_0x7aaa6d(0x3b6)])();this[_0x7aaa6d(0x3e0)][_0x7aaa6d(0x39f)](_0x3126fe),this['_startCalculationLimit'](_0x3126fe);}else{if(Ee(_0x12240a)&&this['_taskIds'][_0x7aaa6d(0x2aa)]>0x0){let _0x17fcce=this['_taskIds'][_0x7aaa6d(0x321)]();this[_0x7aaa6d(0x37c)](_0x17fcce);}}}));}[_0x43dc4d(0x453)](){const _0x5153a2=_0x43dc4d;super[_0x5153a2(0x453)](),this[_0x5153a2(0x275)](),this[_0x5153a2(0x3e0)]=[],this[_0x5153a2(0x2ed)]=0x0,this[_0x5153a2(0x292)]=0x0,this[_0x5153a2(0x3a0)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x16d54e,_0x45eccd){const _0x5d8484=_0x43dc4d;for(let _0x3fab42=0x0;_0x3fab42<0x1e;_0x3fab42++)try{if(await this['_getFormulaLimitStatus'](),this[_0x5d8484(0x37a)]()){this[_0x5d8484(0x172)](_0x16d54e,_0x45eccd),this[_0x5d8484(0x3d6)][_0x5d8484(0x212)]({'content':this[_0x5d8484(0x366)]['t'](_0x5d8484(0x2d5)),'type':o[_0x5d8484(0x3fe)][_0x5d8484(0x332)]});return;}await new Promise(_0x45ab79=>{const _0x5aae94=_0x5d8484;this[_0x5aae94(0x23f)]=window[_0x5aae94(0x21f)](_0x45ab79,0x3e8);});}catch(_0x2e1a10){this[_0x5d8484(0x439)][_0x5d8484(0x3e2)](_0x2e1a10);}this[_0x5d8484(0x3d6)][_0x5d8484(0x212)]({'content':this['_localeService']['t'](_0x5d8484(0x44a)),'type':o[_0x5d8484(0x3fe)][_0x5d8484(0x26b)]});}[_0x43dc4d(0x172)](_0x8d023b,_0x44b3ab){const _0x2d2b4=_0x43dc4d;try{this['_commandService']['executeCommand'](_0x8d023b['id'],_0x8d023b[_0x2d2b4(0x22c)],_0x44b3ab);}catch(_0x3a0bcc){this[_0x2d2b4(0x439)][_0x2d2b4(0x3e2)](_0x3a0bcc);}}[_0x43dc4d(0x189)](_0x5b4c8e,_0x4b5876){const _0xd1edf7=_0x43dc4d;_0x4b5876<this[_0xd1edf7(0x3a0)]||(this['_lastResponseTimestamp']=_0x4b5876,this[_0xd1edf7(0x292)]=Number['parseInt'](_0x5b4c8e['maxFormulaLimit']),this[_0xd1edf7(0x2ed)]=Number['parseInt'](_0x5b4c8e[_0xd1edf7(0x18e)]));}async[_0x43dc4d(0x17a)](_0x5e2ff9){const _0x4813f8=_0x43dc4d;let _0x5dbb7c=Date[_0x4813f8(0x3e9)]();try{var _0xbd8b75,_0x48e3c2;let _0x1f28e3=((_0xbd8b75=this[_0x4813f8(0x227)][_0x4813f8(0x3f0)](t[_0x4813f8(0x428)]))==null?void 0x0:_0xbd8b75['startFormulaLimitUrl'])||_0x4813f8(0x3b1),_0x2b23df=(await this['_httpService'][_0x4813f8(0x27e)](_0x1f28e3,{'body':JSON[_0x4813f8(0x264)]({'taskId':_0x5e2ff9})}))[_0x4813f8(0x30f)];if(((_0x48e3c2=_0x2b23df['error'])==null?void 0x0:_0x48e3c2[_0x4813f8(0x32b)])!==b[_0x4813f8(0x1d1)]['OK'])return;this['_setFormulaLimitStatus'](_0x2b23df['limitInfo'],_0x5dbb7c);}catch(_0x5627a3){this['_logService']['error'](_0x5627a3);}}async[_0x43dc4d(0x2dc)](_0x52c201){const _0x2739b8=_0x43dc4d;let _0x21b682=Date[_0x2739b8(0x3e9)]();try{var _0x5a0f1,_0xc62b62;let _0x4e74af=((_0x5a0f1=this['_configService']['getConfig'](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5a0f1['getFormulaLimitStatusUrl'])||_0x2739b8(0x186),_0x43e177=_0x52c201?_0x4e74af+'?taskId='+encodeURIComponent(_0x52c201):_0x4e74af,_0x181962=(await this[_0x2739b8(0x24e)][_0x2739b8(0x2e2)](_0x43e177))[_0x2739b8(0x30f)];if(((_0xc62b62=_0x181962[_0x2739b8(0x3e2)])==null?void 0x0:_0xc62b62[_0x2739b8(0x32b)])!==b[_0x2739b8(0x1d1)]['OK'])return;this['_setFormulaLimitStatus'](_0x181962['limitInfo'],_0x21b682);}catch(_0x3f0030){this[_0x2739b8(0x439)][_0x2739b8(0x3e2)](_0x3f0030);}}async[_0x43dc4d(0x37c)](_0xb8fada){const _0x16eb51=_0x43dc4d;let _0x5302d2=Date[_0x16eb51(0x3e9)]();try{var _0x2276cb,_0x113934;let _0x59f72b=((_0x2276cb=this[_0x16eb51(0x227)][_0x16eb51(0x3f0)](t[_0x16eb51(0x428)]))==null?void 0x0:_0x2276cb[_0x16eb51(0x30d)])||_0x16eb51(0x2a3),_0x499fd1=(await this[_0x16eb51(0x24e)][_0x16eb51(0x27e)](_0x59f72b,{'body':JSON['stringify']({'taskId':_0xb8fada})}))[_0x16eb51(0x30f)];if(((_0x113934=_0x499fd1['error'])==null?void 0x0:_0x113934[_0x16eb51(0x32b)])!==b[_0x16eb51(0x1d1)]['OK'])return;this[_0x16eb51(0x189)](_0x499fd1['limitInfo'],_0x5302d2);}catch(_0xb53cac){this[_0x16eb51(0x439)][_0x16eb51(0x3e2)](_0xb53cac);}}['_checkCalculationAvailable'](){const _0x4b53b0=_0x43dc4d;return this[_0x4b53b0(0x292)]===0x0||this['_maxFormulaLimit']-this[_0x4b53b0(0x2ed)]>0x0;}[_0x43dc4d(0x275)](){const _0x2901a2=_0x43dc4d;this[_0x2901a2(0x23f)]&&(clearTimeout(this[_0x2901a2(0x23f)]),this[_0x2901a2(0x23f)]=null);}[_0x43dc4d(0x2cb)](){const _0xf7e04c=_0x43dc4d;this[_0xf7e04c(0x3d6)][_0xf7e04c(0x212)]({'content':this[_0xf7e04c(0x366)]['t'](_0xf7e04c(0x1c9)),'type':o[_0xf7e04c(0x3fe)][_0xf7e04c(0x28d)]});}[_0x43dc4d(0x23c)](_0x548117){const _0x4adaa6=_0x43dc4d;for(let _0x538ffa of _0x548117){let {unitId:_0x315b7f,sheetId:_0x5f5a71,range:_0x59545e}=_0x538ffa,_0x3977dd=this[_0x4adaa6(0x455)][_0x4adaa6(0x2b0)](_0x315b7f,n['UniverInstanceType'][_0x4adaa6(0x271)]);if(!_0x3977dd)continue;let _0x519202=_0x3977dd['getSheetBySheetId'](_0x5f5a71);if(!_0x519202)continue;let _0x454173=_0x519202[_0x4adaa6(0x304)]();for(let _0x5def6f=_0x59545e[_0x4adaa6(0x403)];_0x5def6f<=_0x59545e['endRow'];_0x5def6f++)for(let _0x569ffe=_0x59545e[_0x4adaa6(0x1c0)];_0x569ffe<=_0x59545e[_0x4adaa6(0x288)];_0x569ffe++){let _0x52e20b=_0x454173[_0x4adaa6(0x211)](_0x5def6f,_0x569ffe);if(_0x52e20b&&((0x0,n[_0x4adaa6(0x2fc)])(_0x52e20b['f'])||(0x0,n[_0x4adaa6(0x15c)])(_0x52e20b['si'])))return!0x0;}}return!0x1;}};Q=w([C(0x0,(0x0,n[_0x43dc4d(0x379)])(r[_0x43dc4d(0x33a)])),C(0x1,n[_0x43dc4d(0x27c)]),C(0x2,n[_0x43dc4d(0x371)]),C(0x3,(0x0,n[_0x43dc4d(0x379)])(h[_0x43dc4d(0x2a5)])),C(0x4,n[_0x43dc4d(0x148)]),C(0x5,n['ILogService']),C(0x6,(0x0,n[_0x43dc4d(0x379)])(n['LocaleService']))],Q);let De=class extends n[_0x43dc4d(0x3f1)]{constructor(_0x563dc8,_0x3b08a3,_0x5d9903){const _0x23ae0e=_0x43dc4d;super(),this[_0x23ae0e(0x227)]=_0x563dc8,this[_0x23ae0e(0x14d)]=_0x3b08a3,this['_revisionService']=_0x5d9903,S(this,_0x23ae0e(0x2e5),new Map()),S(this,'_saveTaskMap',new Map()),S(this,'_disabled',!0x1);}[_0x43dc4d(0x1cb)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x2f4f61=_0x43dc4d;this[_0x2f4f61(0x36f)]=!0x1;}get['saveTaskMap'](){const _0x4ad1c5=_0x43dc4d;return this[_0x4ad1c5(0x1cf)];}[_0x43dc4d(0x453)](){const _0x5ed7c6=_0x43dc4d;this[_0x5ed7c6(0x385)]()[_0x5ed7c6(0x2d7)](()=>super['dispose']());}async[_0x43dc4d(0x2c8)](_0x55cbc3){const _0x278f10=_0x43dc4d;return this[_0x278f10(0x36f)]?null:this[_0x278f10(0x14d)]['getItem']((0x0,t[_0x278f10(0x18f)])(_0x55cbc3));}async['saveOfflineData'](_0x615601,_0x2ceb16){const _0x4d3d54=_0x43dc4d;return!!this[_0x4d3d54(0x14d)][_0x4d3d54(0x3cd)]((0x0,t[_0x4d3d54(0x18f)])(_0x615601),_0x2ceb16);}async[_0x43dc4d(0x20c)](_0x164684,_0x8ffa35){const _0x173ea4=_0x43dc4d;var _0xed7668;let _0x585d8e=(_0xed7668=this[_0x173ea4(0x2e5)][_0x173ea4(0x2e2)](_0x164684))==null?await this[_0x173ea4(0x14d)][_0x173ea4(0x221)]((0x0,t['getLocalCacheKey'])(_0x164684)):_0xed7668;if(!_0x585d8e)return;let _0x2d73c8=Date['now'](),_0x197472=new Date(_0x2d73c8)[_0x173ea4(0x35e)]();await this[_0x173ea4(0x14d)][_0x173ea4(0x3cd)]((0x0,t['getLocalCacheKey'])(_0x164684)+_0x173ea4(0x1a4)+_0x2d73c8,{'reason':_0x8ffa35,'createdAt':_0x197472,'data':_0x585d8e});}[_0x43dc4d(0x333)](_0x5d7049,_0x139595,_0x252a18,_0x54cefa){const _0x1d0076=_0x43dc4d;let _0x5f0256=this[_0x1d0076(0x1aa)]['getCurrentRevOfUnit'](_0x5d7049);this[_0x1d0076(0x2e5)]['set'](_0x5d7049,{'unitID':_0x5d7049,'type':_0x139595,'awaitingChangeset':_0x252a18,'mutations':_0x54cefa,'rev':_0x5f0256}),this[_0x1d0076(0x1cf)][_0x1d0076(0x14f)](_0x5d7049)||this[_0x1d0076(0x34c)](_0x5d7049);}[_0x43dc4d(0x34c)](_0x1c85d1){const _0x32af47=_0x43dc4d;let _0x50e7ad=this[_0x32af47(0x3a6)]();_0x50e7ad===0x0?this[_0x32af47(0x415)](_0x1c85d1):this[_0x32af47(0x1cf)][_0x32af47(0x1de)](_0x1c85d1,window[_0x32af47(0x21f)](()=>this[_0x32af47(0x415)](_0x1c85d1),_0x50e7ad));}[_0x43dc4d(0x3a6)](){const _0x428137=_0x43dc4d;var _0xde668;return(_0xde668=this[_0x428137(0x227)]['getConfig'](t[_0x428137(0x1f4)]))==null?t[_0x428137(0x3b7)]:_0xde668;}[_0x43dc4d(0x415)](_0x130847){const _0x5affcb=_0x43dc4d;let _0x1ae8f9=this[_0x5affcb(0x1cf)]['get'](_0x130847);return _0x1ae8f9!==void 0x0&&window[_0x5affcb(0x171)](_0x1ae8f9),this[_0x5affcb(0x14d)][_0x5affcb(0x3cd)]((0x0,t[_0x5affcb(0x18f)])(_0x130847),this[_0x5affcb(0x2e5)][_0x5affcb(0x2e2)](_0x130847))[_0x5affcb(0x2d7)](()=>this[_0x5affcb(0x1cf)][_0x5affcb(0x245)](_0x130847));}async[_0x43dc4d(0x385)](){const _0x31274d=_0x43dc4d;let _0x581a84=[];this[_0x31274d(0x1cf)][_0x31274d(0x24a)]((_0x5dcda2,_0xd43bbf)=>{const _0x465c6f=_0x31274d;window[_0x465c6f(0x171)](_0x5dcda2),_0x581a84['push'](this[_0x465c6f(0x415)](_0xd43bbf)[_0x465c6f(0x2d7)](()=>{const _0x7eb137=_0x465c6f;this['_saveTaskMap'][_0x7eb137(0x245)](_0xd43bbf);}));}),await Promise[_0x31274d(0x2fb)](_0x581a84);}};De=w([C(0x0,n[_0x43dc4d(0x371)]),C(0x1,n[_0x43dc4d(0x369)]),C(0x2,(0x0,n['Inject'])(u['RevisionService']))],De);var Oe=class extends n[_0x43dc4d(0x1e5)]{constructor(){const _0x41e8dd=_0x43dc4d;super(),S(this,_0x41e8dd(0x388),void 0x0),this['urlChange$']=(0x0,i[_0x41e8dd(0x3cf)])(window,_0x41e8dd(0x3eb))[_0x41e8dd(0x32a)]((0x0,i[_0x41e8dd(0x2a1)])(this[_0x41e8dd(0x3c8)]),(0x0,i[_0x41e8dd(0x1b6)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i['mapTo'])(void 0x0));}[_0x43dc4d(0x17d)](_0x371790,_0x2c3bfd,_0x382eec=!0x1){const _0x452e65=_0x43dc4d;let _0x3d6c8d=new URL(window['location'][_0x452e65(0x18c)]);_0x3d6c8d[_0x452e65(0x1f2)][_0x452e65(0x1de)](_0x371790,_0x2c3bfd),_0x382eec?window[_0x452e65(0x306)][_0x452e65(0x2ef)]('','',_0x3d6c8d[_0x452e65(0x14c)]()):window[_0x452e65(0x306)][_0x452e65(0x421)]('','',_0x3d6c8d['toString']());}[_0x43dc4d(0x327)](_0x54b905,_0x171161=!0x1){const _0x2c3914=_0x43dc4d;let _0xce78c1=new URL(window['location']['href']);_0xce78c1[_0x2c3914(0x1f2)]['delete'](_0x54b905),_0x171161?window[_0x2c3914(0x306)][_0x2c3914(0x2ef)]('','',_0xce78c1[_0x2c3914(0x14c)]()):window['history'][_0x2c3914(0x421)]('','',_0xce78c1[_0x2c3914(0x14c)]());}[_0x43dc4d(0x33c)](_0x7fe777){const _0x288825=_0x43dc4d;var _0xcf3f57;return(_0xcf3f57=new URL(window['location'][_0x288825(0x18c)])['searchParams'][_0x288825(0x2e2)](_0x7fe777))==null?void 0x0:_0xcf3f57;}};let $=class extends n[_0x43dc4d(0x30c)]{constructor(_0x8b61ad=ue,_0x52699d,_0x4ebcc5,_0x589bb9){const _0x43bced=_0x43dc4d;super(),this[_0x43bced(0x150)]=_0x8b61ad,this['_renderManagerService']=_0x52699d,this[_0x43bced(0x360)]=_0x4ebcc5,this['_configService']=_0x589bb9;let {..._0x122652}=(0x0,n[_0x43bced(0x418)])({},ue,this['_config']);this['_configService'][_0x43bced(0x396)](_0x43bced(0x1e4),_0x122652);}[_0x43dc4d(0x1b0)](){const _0x4cb24c=_0x43dc4d;this[_0x4cb24c(0x140)](),this['_initDependencies']();}[_0x43dc4d(0x233)](){const _0x2ae00c=_0x43dc4d;this[_0x2ae00c(0x302)]();}[_0x43dc4d(0x140)](){const _0x4e1c4f=_0x43dc4d;var _0x484f4e;let _0x3255ec=[[A],[Q],[U,{'useClass':Oe}],[h[_0x4e1c4f(0x1e3)],{'useClass':h[_0x4e1c4f(0x353)]}],[t[_0x4e1c4f(0x1d8)],{'useClass':De}],[T],[E],[H],[I],[W],[Z]];this[_0x4e1c4f(0x150)][_0x4e1c4f(0x28c)]!==!0x1&&_0x3255ec[_0x4e1c4f(0x39f)]([q],[G],[K],[M],[J],[D]),this[_0x4e1c4f(0x150)][_0x4e1c4f(0x2d4)]&&_0x3255ec[_0x4e1c4f(0x39f)]([Y]),(0x0,n[_0x4e1c4f(0x354)])(this[_0x4e1c4f(0x360)],(0x0,n[_0x4e1c4f(0x43e)])(_0x3255ec,(_0x484f4e=this[_0x4e1c4f(0x150)])==null?void 0x0:_0x484f4e['override']));}[_0x43dc4d(0x302)](){const _0x4425a6=_0x43dc4d;this[_0x4425a6(0x150)]['enableDocumentCollaborationUI']!==!0x1&&this['disposeWithMe'](this[_0x4425a6(0x434)][_0x4425a6(0x448)](n[_0x4425a6(0x35f)][_0x4425a6(0x3f9)],[z])),this[_0x4425a6(0x365)](this['_renderManagerService'][_0x4425a6(0x448)](n['UniverInstanceType'][_0x4425a6(0x271)],[B])),this[_0x4425a6(0x365)](this[_0x4425a6(0x434)][_0x4425a6(0x448)](n[_0x4425a6(0x35f)][_0x4425a6(0x141)],[V])),this[_0x4425a6(0x365)](this[_0x4425a6(0x434)][_0x4425a6(0x448)](n['UniverInstanceType'][_0x4425a6(0x3a3)],[L]));}[_0x43dc4d(0x39d)](){const _0x44de8b=_0x43dc4d;(0x0,n['touchDependencies'])(this['_injector'],[[I],[T],[E],[H],[W],[Q],[Z]]),this[_0x44de8b(0x150)][_0x44de8b(0x28c)]!==!0x1&&(0x0,n[_0x44de8b(0x35d)])(this[_0x44de8b(0x360)],[[J],[D]]),this[_0x44de8b(0x150)][_0x44de8b(0x2d4)]&&(0x0,n[_0x44de8b(0x35d)])(this[_0x44de8b(0x360)],[[Y]]);}};S($,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),S($,'packageName',ce),S($,'version',le),$=w([(0x0,n[_0x43dc4d(0x416)])(d[_0x43dc4d(0x405)],f[_0x43dc4d(0x31e)],m[_0x43dc4d(0x1ca)],h[_0x43dc4d(0x24c)],u[_0x43dc4d(0x3d2)],p[_0x43dc4d(0x427)],r[_0x43dc4d(0x200)],t[_0x43dc4d(0x1a0)]),C(0x1,m[_0x43dc4d(0x1ef)]),C(0x2,(0x0,n[_0x43dc4d(0x379)])(n[_0x43dc4d(0x1ce)])),C(0x3,n[_0x43dc4d(0x371)])],$);let ke=class extends t[_0x43dc4d(0x34f)]{constructor(_0x221567,_0x5039a8,_0x5d277a,_0x22b4b0,_0x560cf0){super(_0x221567,_0x5039a8,_0x5d277a,_0x22b4b0,_0x560cf0);}async['createSocket'](_0x2b6a5f){const _0x1ffd1d=_0x43dc4d;let _0x5ec394=await this[_0x1ffd1d(0x351)](),_0xba9163=this[_0x1ffd1d(0x154)](_0x2b6a5f,_0x5ec394);return this[_0x1ffd1d(0x25b)](_0xba9163);}[_0x43dc4d(0x154)](_0x4d1bc8,_0x15adae){const _0x207851=_0x43dc4d;let _0x6df2d4=typeof window>'u'?new URL(_0x4d1bc8):new URL(_0x4d1bc8,window[_0x207851(0x3c6)]['origin']);_0x6df2d4[_0x207851(0x1f2)][_0x207851(0x1de)](_0x207851(0x268),_0x15adae);let _0x230611=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x207851(0x3c6)][_0x207851(0x420)]);return _0x230611[_0x207851(0x2e2)](_0x207851(0x438))&&_0x6df2d4[_0x207851(0x1f2)][_0x207851(0x1de)](_0x207851(0x438),_0x230611[_0x207851(0x2e2)](_0x207851(0x438))),_0x6df2d4[_0x207851(0x14c)]();}async[_0x43dc4d(0x351)](){const _0x303e03=_0x43dc4d;var _0x26df80,_0x54d02b,_0x1d9e19;let _0x12ccf8=this[_0x303e03(0x227)][_0x303e03(0x3f0)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x172e3b=(_0x26df80=_0x12ccf8==null?void 0x0:_0x12ccf8[_0x303e03(0x44e)])==null?t[_0x303e03(0x215)]:_0x26df80;return(_0x54d02b=(_0x1d9e19=(await this[_0x303e03(0x24e)][_0x303e03(0x2e2)](_0x172e3b,{'headers':{'Content-Type':_0x303e03(0x308)}}))[_0x303e03(0x30f)])==null?void 0x0:_0x1d9e19[_0x303e03(0x2be)])==null?'':_0x54d02b;}};ke=w([C(0x0,(0x0,n['Inject'])(n['Injector'])),C(0x1,(0x0,n[_0x43dc4d(0x379)])(h['HTTPService'])),C(0x2,n[_0x43dc4d(0x371)]),C(0x3,n['ILogService']),C(0x4,u[_0x43dc4d(0x22b)])],ke);let Ae=class extends n['Disposable']{constructor(_0x4f57d,_0x465885,_0x5201fa){const _0x194f25=_0x43dc4d;super(),this[_0x194f25(0x1d0)]=_0x4f57d,this[_0x194f25(0x24e)]=_0x465885,this['_configService']=_0x5201fa;}async[_0x43dc4d(0x24f)](_0x36904b,_0x2b19e3,_0x25b44b,..._0x47b9fd){const _0x15d777=_0x43dc4d;var _0x2344c9,_0x4130e5,_0x32c33b,_0x434e85;let _0x4957e2=this[_0x15d777(0x1d0)][_0x15d777(0x44b)]();if(!_0x4957e2)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x4b8ed9=((_0x2344c9=this[_0x15d777(0x227)]['getConfig'](t[_0x15d777(0x320)]))==null?t['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']:_0x2344c9)+'/'+_0x36904b+_0x15d777(0x361)+_0x2b19e3,_0x3f70af={'scriptId':_0x36904b,'runId':(_0x4130e5=new URL(window[_0x15d777(0x3c6)][_0x15d777(0x18c)])['searchParams'][_0x15d777(0x2e2)]('runId'))==null?'':_0x4130e5,'function':_0x2b19e3,'unitId':_0x4957e2[_0x15d777(0x319)](),'argsOfFunction':JSON[_0x15d777(0x264)](_0x47b9fd),'invokeId':(_0x32c33b=_0x25b44b['invokeId'])==null?'':_0x32c33b,'executionId':(_0x434e85=_0x25b44b[_0x15d777(0x3fa)])==null?'':_0x434e85};try{let _0x55e05d=await this[_0x15d777(0x24e)]['post'](_0x4b8ed9,{'body':_0x3f70af});return _0x55e05d[_0x15d777(0x30f)][_0x15d777(0x3e2)]&&_0x55e05d['body'][_0x15d777(0x3e2)][_0x15d777(0x32b)]!==b[_0x15d777(0x1d1)]['OK']?'Failed':_0x55e05d[_0x15d777(0x30f)][_0x15d777(0x1c8)];}catch{return _0x15d777(0x270);}}};Ae=w([C(0x0,n[_0x43dc4d(0x148)]),C(0x1,(0x0,n[_0x43dc4d(0x379)])(h['HTTPService'])),C(0x2,n[_0x43dc4d(0x371)])],Ae);const je=0x7530,Me=_0x43dc4d(0x26f);var Ne=class extends n[_0x43dc4d(0x3f1)]{constructor(){const _0xda6545=_0x43dc4d;super(),S(this,'_id',(0x0,n['generateRandomId'])()),S(this,'_selfUnitIDs',new Set()),S(this,_0xda6545(0x3fd),new Map()),S(this,_0xda6545(0x3b3),null),S(this,_0xda6545(0x157),new Map()),S(this,_0xda6545(0x1d9),new Map()),this[_0xda6545(0x299)]();}[_0x43dc4d(0x453)](){const _0x264dc3=_0x43dc4d;super[_0x264dc3(0x453)](),this[_0x264dc3(0x157)]['forEach']((_0x548558,_0x1b23f6)=>this[_0x264dc3(0x294)](_0x1b23f6)),this[_0x264dc3(0x3b3)]&&window['clearInterval'](this[_0x264dc3(0x3b3)]);}[_0x43dc4d(0x2ce)](_0x108110){const _0x35aa2c=_0x43dc4d;return this['_ensureSubject'](_0x108110)[_0x35aa2c(0x32a)]((0x0,i['distinctUntilChanged'])());}[_0x43dc4d(0x408)](_0x26e8d7){const _0x4edd01=_0x43dc4d;this[_0x4edd01(0x19c)][_0x4edd01(0x328)]===0x0&&this[_0x4edd01(0x3db)](),this[_0x4edd01(0x19c)][_0x4edd01(0x1a1)](_0x26e8d7),this[_0x4edd01(0x20e)]({'type':0x0,'memberID':this[_0x4edd01(0x2a4)],'unitIDs':[_0x26e8d7],'isForwarded':!0x1});}[_0x43dc4d(0x278)](_0x2d2f33){const _0x407c32=_0x43dc4d;this[_0x407c32(0x19c)][_0x407c32(0x245)](_0x2d2f33),this[_0x407c32(0x19c)][_0x407c32(0x328)]===0x0&&this[_0x407c32(0x3b3)]&&window[_0x407c32(0x277)](this[_0x407c32(0x3b3)]);}[_0x43dc4d(0x299)](){const _0x44a785=_0x43dc4d;this[_0x44a785(0x365)]((0x0,n['toDisposable'])((0x0,i[_0x44a785(0x3cf)])(window,'storage')[_0x44a785(0x36e)](_0x209052=>{const _0x238912=_0x44a785;if(_0x209052['key']!==Me||!_0x209052[_0x238912(0x274)])return;let _0x5f1258=JSON['parse'](_0x209052[_0x238912(0x274)]);this[_0x238912(0x17c)](_0x5f1258);}))),window[_0x44a785(0x1fb)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x44a785(0x2a4)],'unitIDs':Array[_0x44a785(0x25e)](this[_0x44a785(0x19c)])}));}['_handleEvent'](_0x142ecf){const _0x4496f0=_0x43dc4d;switch(_0x142ecf[_0x4496f0(0x41c)]){case 0x0:this[_0x4496f0(0x35a)](_0x142ecf);break;case 0x1:this[_0x4496f0(0x16f)](_0x142ecf);break;case 0x2:this[_0x4496f0(0x1eb)](_0x142ecf);break;}}['_handleJoinEvent'](_0x51ef66){const _0x26a2b9=_0x43dc4d;let {unitIDs:_0x3ce3e9,memberID:_0x3cae54,isForwarded:_0x138925}=_0x51ef66;_0x3ce3e9['forEach'](_0x78bcda=>{const _0x1100fe=_0x196d;if(!_0x138925&&this[_0x1100fe(0x3fd)][_0x1100fe(0x14f)](_0x78bcda)&&this[_0x1100fe(0x16c)](_0x78bcda)[_0x1100fe(0x176)](t['UnitStatus']['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x1100fe(0x14f)](_0x78bcda)||!this[_0x1100fe(0x3fd)][_0x1100fe(0x2e2)](_0x78bcda)['has'](_0x3cae54)){let _0x1777de=this[_0x1100fe(0x3fd)][_0x1100fe(0x2e2)](_0x78bcda)||new Set();_0x1777de['add'](_0x3cae54),this[_0x1100fe(0x3fd)][_0x1100fe(0x1de)](_0x78bcda,_0x1777de),this[_0x1100fe(0x15b)](_0x3cae54);}}),_0x138925||this[_0x26a2b9(0x20e)]({'type':0x0,'memberID':this[_0x26a2b9(0x2a4)],'unitIDs':[...this[_0x26a2b9(0x19c)]],'isForwarded':!0x0});}[_0x43dc4d(0x15b)](_0x5739f8){const _0x454fe8=_0x43dc4d;this[_0x454fe8(0x294)](_0x5739f8);let _0x419420=window['setTimeout'](()=>{const _0x45fb88=_0x454fe8;this['_unitOnClients'][_0x45fb88(0x24a)](_0x86892b=>{_0x86892b['delete'](_0x5739f8);});},je*0x2);this['_clearOtherTimers']['set'](_0x5739f8,_0x419420);}[_0x43dc4d(0x294)](_0x345cb0){const _0x2db992=_0x43dc4d;if(this['_clearOtherTimers'][_0x2db992(0x14f)](_0x345cb0)){let _0x453f28=this[_0x2db992(0x157)][_0x2db992(0x2e2)](_0x345cb0);_0x453f28&&window[_0x2db992(0x171)](_0x453f28),this[_0x2db992(0x157)][_0x2db992(0x1de)](_0x345cb0,null);}}[_0x43dc4d(0x16f)](_0x39eb2c){const _0x506ad9=_0x43dc4d;let {memberID:_0xeb1f70,unitIDs:_0x5a1d28}=_0x39eb2c;_0x5a1d28[_0x506ad9(0x24a)](_0x327188=>{const _0x57eb3b=_0x506ad9;var _0x44fb00;let _0x15e444=this[_0x57eb3b(0x3fd)][_0x57eb3b(0x2e2)](_0x327188);_0x15e444&&(_0x15e444[_0x57eb3b(0x245)](_0xeb1f70),(_0x44fb00=this[_0x57eb3b(0x16c)](_0x327188))==null||_0x44fb00['next'](_0x15e444[_0x57eb3b(0x328)]===0x0?t[_0x57eb3b(0x423)][_0x57eb3b(0x3ce)]:t['UnitStatus'][_0x57eb3b(0x1dc)]));}),this[_0x506ad9(0x294)](_0xeb1f70);}[_0x43dc4d(0x1eb)](_0x178350){const _0x2e8c1c=_0x43dc4d;this[_0x2e8c1c(0x15b)](_0x178350['memberID']);}['_send'](_0x5db996){const _0x422449=_0x43dc4d;localStorage['setItem'](Me,JSON[_0x422449(0x264)](_0x5db996));}[_0x43dc4d(0x3db)](){const _0x1fbe3a=_0x43dc4d;this[_0x1fbe3a(0x3b3)]=window['setInterval'](()=>{const _0x13d69f=_0x1fbe3a;this[_0x13d69f(0x20e)]({'type':0x2,'memberID':this['_id']});},je);}[_0x43dc4d(0x16c)](_0x902891){const _0x590eb8=_0x43dc4d;return this[_0x590eb8(0x1d9)][_0x590eb8(0x14f)](_0x902891)||this[_0x590eb8(0x1d9)][_0x590eb8(0x1de)](_0x902891,new i['BehaviorSubject'](t['UnitStatus']['NO_OTHER_CLIENTS_EDITING'])),this[_0x590eb8(0x1d9)][_0x590eb8(0x2e2)](_0x902891);}};Object[_0x43dc4d(0x185)](exports,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return ke;}}),Object['defineProperty'](exports,'DesktopCollaborationStatusDisplayController',{'enumerable':!0x0,'get':function(){return T;}}),exports[_0x43dc4d(0x42e)]=U,Object['defineProperty'](exports,_0x43dc4d(0x3c4),{'enumerable':!0x0,'get':function(){return Ae;}}),exports[_0x43dc4d(0x285)]=xe,Object[_0x43dc4d(0x185)](exports,_0x43dc4d(0x1f5),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x43dc4d(0x2fd)]=Ne;
|