@univerjs-pro/collaboration-client-ui 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration-client-ui.controller.d.ts +13 -8
- package/lib/types/locale/en-US.d.ts +6 -0
- 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 +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x38a3cb=_0x121f;(function(_0x413574,_0x2ae16){const _0x4f3c11=_0x121f,_0x1f4026=_0x413574();while(!![]){try{const _0xe915f=parseInt(_0x4f3c11(0x190))/0x1*(-parseInt(_0x4f3c11(0x105))/0x2)+parseInt(_0x4f3c11(0x2d5))/0x3+parseInt(_0x4f3c11(0x347))/0x4+-parseInt(_0x4f3c11(0x31b))/0x5*(parseInt(_0x4f3c11(0x2e4))/0x6)+parseInt(_0x4f3c11(0x241))/0x7+parseInt(_0x4f3c11(0x19a))/0x8+-parseInt(_0x4f3c11(0x3cf))/0x9*(parseInt(_0x4f3c11(0x28d))/0xa);if(_0xe915f===_0x2ae16)break;else _0x1f4026['push'](_0x1f4026['shift']());}catch(_0x57e0ac){_0x1f4026['push'](_0x1f4026['shift']());}}}(_0x4b94,0x5ba24),Object[_0x38a3cb(0x33e)](exports,Symbol[_0x38a3cb(0x2f4)],{'value':_0x38a3cb(0x3e9)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x43e6a0){const _0x27c66d=_0x38a3cb;switch(_0x43e6a0){case e['CollaborationStatus'][_0x27c66d(0x390)]:return{'icon':(0x0,c[_0x27c66d(0x27c)])(o['OffLineIcon'],{}),'colorClass':_0x27c66d(0x16d),'i18nKey':_0x27c66d(0x39d),'tooltipKey':_0x27c66d(0x356),'clickable':!0x0,'indicator':_0x27c66d(0x2a2)};case e[_0x27c66d(0x30d)][_0x27c66d(0x350)]:return{'icon':(0x0,c['jsx'])(o[_0x27c66d(0x1dd)],{}),'colorClass':_0x27c66d(0x295),'i18nKey':_0x27c66d(0x25f),'clickable':!0x1,'indicator':_0x27c66d(0x2a2)};case e[_0x27c66d(0x30d)][_0x27c66d(0x127)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':_0x27c66d(0x1ff),'i18nKey':_0x27c66d(0x374),'clickable':!0x1,'indicator':_0x27c66d(0x25d)};case e[_0x27c66d(0x30d)][_0x27c66d(0x26b)]:return{'icon':(0x0,c['jsx'])(o[_0x27c66d(0x333)],{}),'colorClass':_0x27c66d(0x2f6),'i18nKey':_0x27c66d(0x360),'clickable':!0x1,'indicator':'static'};case e['CollaborationStatus'][_0x27c66d(0x336)]:case e[_0x27c66d(0x30d)][_0x27c66d(0x230)]:return{'icon':(0x0,c[_0x27c66d(0x27c)])(o['LoadingMultiIcon'],{}),'colorClass':_0x27c66d(0x1ff),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case e[_0x27c66d(0x30d)][_0x27c66d(0x161)]:return{'icon':(0x0,c[_0x27c66d(0x27c)])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x27c66d(0x2ff),'clickable':!0x1,'indicator':_0x27c66d(0x25d)};case e['CollaborationStatus'][_0x27c66d(0x341)]:return{'icon':(0x0,c[_0x27c66d(0x27c)])(o['OnLineIcon'],{}),'colorClass':'univer-text-green-500','i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x27c66d(0x2a2)};}}function te(_0x28b759){const _0x1ccb9a=_0x38a3cb;let {status$:_0x302442}=_0x28b759,_0x621eee=(0x0,n[_0x1ccb9a(0x302)])(_0x302442,e[_0x1ccb9a(0x30d)][_0x1ccb9a(0x26b)]),_0xeb58d2=(0x0,n[_0x1ccb9a(0x14a)])(t['LocaleService']),_0x154077=(0x0,n[_0x1ccb9a(0x14a)])(e['CollaborationSessionService']),_0x218d20=(0x0,s['useMemo'])(()=>ee(_0x621eee),[_0x621eee]),_0x38e0c1=_0x621eee!==e[_0x1ccb9a(0x30d)][_0x1ccb9a(0x390)],_0x3e23b9=_0xeb58d2['t'](_0x218d20[_0x1ccb9a(0x34e)]),_0x1a4adc=_0x218d20['tooltipKey']?_0xeb58d2['t'](_0x218d20[_0x1ccb9a(0x2ca)]):_0x3e23b9,_0x401e9d=(0x0,s[_0x1ccb9a(0x349)])(()=>{_0x38e0c1||_0x154077['reconnect']();},[_0x38e0c1,_0x154077]),_0x57fd6a=(0x0,s[_0x1ccb9a(0x349)])(_0x43c991=>{const _0x5aefbf=_0x1ccb9a;!_0x38e0c1&&(_0x43c991[_0x5aefbf(0x24e)]==='Enter'||_0x43c991[_0x5aefbf(0x24e)]==='\x20')&&(_0x43c991[_0x5aefbf(0x1ee)](),_0x154077['reconnect']());},[_0x38e0c1,_0x154077]),_0x7eda1b=(0x0,c[_0x1ccb9a(0x27c)])('span',{'className':(0x0,a[_0x1ccb9a(0x18a)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x1ccb9a(0x2b7),_0x218d20[_0x1ccb9a(0x1f9)],{'univer-animate-spin':_0x218d20[_0x1ccb9a(0x32d)]==='spin','univer-animate-pulse':_0x218d20[_0x1ccb9a(0x32d)]===_0x1ccb9a(0x243)}),'aria-hidden':_0x1ccb9a(0x348),'children':_0x218d20['icon']}),_0x2e05ab=(0x0,c[_0x1ccb9a(0x27c)])(_0x1ccb9a(0x391),{'className':(0x0,a[_0x1ccb9a(0x18a)])(_0x1ccb9a(0x131),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x1ccb9a(0x285),_0x1ccb9a(0x205),_0x1ccb9a(0x2f7),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x218d20['clickable'],'univer-cursor-default':!_0x218d20[_0x1ccb9a(0x191)]}),'children':_0x7eda1b});return _0x218d20['clickable']?(0x0,c['jsx'])(a[_0x1ccb9a(0x2e3)],{'title':_0x1a4adc,'placement':_0x1ccb9a(0x13a),'children':(0x0,c[_0x1ccb9a(0x27c)])('button',{'type':_0x1ccb9a(0x117),'onClick':_0x401e9d,'onKeyDown':_0x57fd6a,'className':(0x0,a[_0x1ccb9a(0x18a)])(_0x1ccb9a(0x188),_0x1ccb9a(0x244),_0x1ccb9a(0x23b),_0x1ccb9a(0x3de)),'aria-label':_0x3e23b9+_0x1ccb9a(0x2cb)+_0x1a4adc,'role':_0x1ccb9a(0x3f3),'aria-live':_0x1ccb9a(0x219),'aria-atomic':_0x1ccb9a(0x348),'children':_0x2e05ab})}):(0x0,c[_0x1ccb9a(0x27c)])(a[_0x1ccb9a(0x2e3)],{'title':_0x1a4adc,'placement':_0x1ccb9a(0x13a),'children':(0x0,c['jsx'])(_0x1ccb9a(0x37d),{'className':(0x0,a[_0x1ccb9a(0x18a)])(_0x1ccb9a(0x188),_0x1ccb9a(0x244),_0x1ccb9a(0x23b)),'aria-label':_0x3e23b9,'role':_0x1ccb9a(0x3f3),'aria-live':_0x1ccb9a(0x219),'aria-atomic':_0x1ccb9a(0x348),'children':_0x2e05ab})});}function y(_0x5dc9a8){'@babel/helpers - typeof';const _0x26c096=_0x38a3cb;return y=typeof Symbol==_0x26c096(0x1d7)&&typeof Symbol[_0x26c096(0x1c0)]==_0x26c096(0x30e)?function(_0xb7292e){return typeof _0xb7292e;}:function(_0x5566c5){const _0x24b320=_0x26c096;return _0x5566c5&&typeof Symbol==_0x24b320(0x1d7)&&_0x5566c5[_0x24b320(0x209)]===Symbol&&_0x5566c5!==Symbol['prototype']?_0x24b320(0x30e):typeof _0x5566c5;},y(_0x5dc9a8);}function ne(_0xb266e4,_0x32ddc7){const _0x487047=_0x38a3cb;if(y(_0xb266e4)!=_0x487047(0x2cd)||!_0xb266e4)return _0xb266e4;var _0x3c2691=_0xb266e4[Symbol['toPrimitive']];if(_0x3c2691!==void 0x0){var _0x21a182=_0x3c2691[_0x487047(0x1e9)](_0xb266e4,_0x32ddc7||_0x487047(0x201));if(y(_0x21a182)!=_0x487047(0x2cd))return _0x21a182;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x32ddc7===_0x487047(0x28f)?String:Number)(_0xb266e4);}function re(_0x4b871a){const _0x19c0af=_0x38a3cb;var _0x4fb13e=ne(_0x4b871a,_0x19c0af(0x28f));return y(_0x4fb13e)==_0x19c0af(0x30e)?_0x4fb13e:_0x4fb13e+'';}function _0x121f(_0x576338,_0x2211f1){_0x576338=_0x576338-0xfe;const _0x4b94a3=_0x4b94();let _0x121f88=_0x4b94a3[_0x576338];return _0x121f88;}function b(_0x27a272,_0x3af6b1,_0x10f9b5){const _0x1b1af1=_0x38a3cb;return(_0x3af6b1=re(_0x3af6b1))in _0x27a272?Object[_0x1b1af1(0x33e)](_0x27a272,_0x3af6b1,{'value':_0x10f9b5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27a272[_0x3af6b1]=_0x10f9b5,_0x27a272;}function x(_0x377d95,_0x46876a){return function(_0x1839c8,_0x559594){_0x46876a(_0x1839c8,_0x559594,_0x377d95);};}function S(_0x55e964,_0x2ffd37,_0x29f98b,_0x1811a3){const _0x16a8ac=_0x38a3cb;var _0x357c9c=arguments['length'],_0x39bd52=_0x357c9c<0x3?_0x2ffd37:_0x1811a3===null?_0x1811a3=Object[_0x16a8ac(0x358)](_0x2ffd37,_0x29f98b):_0x1811a3,_0x564e03;if(typeof Reflect==_0x16a8ac(0x2cd)&&typeof Reflect[_0x16a8ac(0x2e8)]==_0x16a8ac(0x1d7))_0x39bd52=Reflect[_0x16a8ac(0x2e8)](_0x55e964,_0x2ffd37,_0x29f98b,_0x1811a3);else{for(var _0x1db79a=_0x55e964['length']-0x1;_0x1db79a>=0x0;_0x1db79a--)(_0x564e03=_0x55e964[_0x1db79a])&&(_0x39bd52=(_0x357c9c<0x3?_0x564e03(_0x39bd52):_0x357c9c>0x3?_0x564e03(_0x2ffd37,_0x29f98b,_0x39bd52):_0x564e03(_0x2ffd37,_0x29f98b))||_0x39bd52);}return _0x357c9c>0x3&&_0x39bd52&&Object[_0x16a8ac(0x33e)](_0x2ffd37,_0x29f98b,_0x39bd52),_0x39bd52;}let C=class extends t[_0x38a3cb(0x251)]{constructor(_0x2ae562,_0x4a5dcf,_0x5e1b1a,_0x186508,_0x5f4c07){const _0x4ff772=_0x38a3cb;super(),this['_univerInstanceService']=_0x2ae562,this[_0x4ff772(0x3c6)]=_0x4a5dcf,this[_0x4ff772(0x3f7)]=_0x5e1b1a,this[_0x4ff772(0x195)]=_0x186508,this['_presenceAdapterRegistry']=_0x5f4c07,b(this,_0x4ff772(0x2a6),new r[(_0x4ff772(0x1a0))](e[_0x4ff772(0x30d)]['NOT_COLLAB'])),b(this,_0x4ff772(0x242),new Map()),this[_0x4ff772(0x25e)](),this[_0x4ff772(0x324)](),this[_0x4ff772(0x404)]();}[_0x38a3cb(0x15a)](){const _0x445543=_0x38a3cb;this[_0x445543(0x242)][_0x445543(0x1b2)](_0x2816a3=>_0x2816a3[_0x445543(0x15a)]()),this[_0x445543(0x242)][_0x445543(0x229)](),this[_0x445543(0x2a6)][_0x445543(0x240)](),super[_0x445543(0x15a)]();}[_0x38a3cb(0x324)](){const _0x3c103f=_0x38a3cb;this[_0x3c103f(0x166)]((0x0,r['merge'])(this[_0x3c103f(0x273)][_0x3c103f(0x3f0)],this[_0x3c103f(0x273)][_0x3c103f(0x13d)](t[_0x3c103f(0x2f8)][_0x3c103f(0x3f1)]),this[_0x3c103f(0x273)][_0x3c103f(0x13d)](t[_0x3c103f(0x2f8)][_0x3c103f(0x310)]))[_0x3c103f(0x263)]((0x0,i['map'])(()=>ie(this[_0x3c103f(0x273)])),(0x0,i['distinctUntilChanged'])(),(0x0,r[_0x3c103f(0x220)])(_0x37cd75=>_0x37cd75?this['_collaborationController'][_0x3c103f(0x2d1)](_0x37cd75):(0x0,r['of'])(null)),(0x0,r['switchMap'])(_0x410ea9=>_0x410ea9?_0x410ea9[_0x3c103f(0x138)]:(0x0,r['of'])(e[_0x3c103f(0x30d)][_0x3c103f(0x26b)])))[_0x3c103f(0x329)](_0x2d4af1=>{const _0x3372dd=_0x3c103f;this[_0x3372dd(0x2a6)][_0x3372dd(0x1af)](_0x2d4af1);}));}[_0x38a3cb(0x25e)](){const _0x3ccfda=_0x38a3cb;this[_0x3ccfda(0x166)](this[_0x3ccfda(0x195)]['registerComponent'](n['BuiltInUIPart']['HEADER_MENU'],()=>(0x0,n['connectInjector'])(w({'status$':this[_0x3ccfda(0x2a6)][_0x3ccfda(0x234)]()}),this[_0x3ccfda(0x3c6)])));}[_0x38a3cb(0x404)](){const _0x1730d1=_0x38a3cb;let _0x2d8aab=this['_presenceAdapterRegistry'][_0x1730d1(0x307)][_0x1730d1(0x329)](_0x45356f=>{const _0x55ec6e=_0x1730d1;this[_0x55ec6e(0x3a8)](_0x45356f);});this[_0x1730d1(0x166)]((0x0,t['toDisposable'])(()=>_0x2d8aab[_0x1730d1(0x30b)]()));}[_0x38a3cb(0x3a8)](_0x368c95){const _0x3d3d6a=_0x38a3cb;let _0x494809=new Map(_0x368c95[_0x3d3d6a(0x193)](_0x4a0803=>_0x4a0803['statusUIPart']!=null)['map'](_0x4e2af4=>[_0x4e2af4[_0x3d3d6a(0x318)],_0x4e2af4]));this['_presenceStatusRegistrations']['forEach']((_0x41ea66,_0x1cfa23)=>{const _0x163fd8=_0x3d3d6a;_0x494809['has'](_0x1cfa23)||(_0x41ea66[_0x163fd8(0x15a)](),this[_0x163fd8(0x242)][_0x163fd8(0x3fb)](_0x1cfa23));}),_0x494809['forEach']((_0x47098c,_0x5332fb)=>{const _0x3070ba=_0x3d3d6a;this['_presenceStatusRegistrations']['has'](_0x5332fb)||this[_0x3070ba(0x1b1)](_0x47098c);});}[_0x38a3cb(0x1b1)](_0x449ca7){const _0x2973c3=_0x38a3cb;let _0x444b0e=_0x449ca7[_0x2973c3(0x14d)];if(!_0x444b0e)return;let _0xb64864=new t[(_0x2973c3(0x31e))](),_0x2a9773=new r[(_0x2973c3(0x1a0))](e['CollaborationStatus'][_0x2973c3(0x26b)]);_0xb64864[_0x2973c3(0x354)]((0x0,t[_0x2973c3(0x3f8)])(()=>_0x2a9773['complete']())),_0xb64864[_0x2973c3(0x354)](this[_0x2973c3(0x195)][_0x2973c3(0x123)](_0x444b0e,()=>(0x0,n[_0x2973c3(0x301)])(w({'status$':_0x2a9773[_0x2973c3(0x234)]()}),this['_injector'])));let _0x3b28a9=this['_univerInstanceService'][_0x2973c3(0x13d)](_0x449ca7['unitType'])[_0x2973c3(0x263)]((0x0,i['map'])(_0x1a2fe2=>(_0x1a2fe2==null?void 0x0:_0x1a2fe2[_0x2973c3(0x14f)]())??null),(0x0,i[_0x2973c3(0x136)])(),(0x0,r[_0x2973c3(0x220)])(_0x1527c8=>_0x1527c8?this[_0x2973c3(0x3f7)][_0x2973c3(0x2d1)](_0x1527c8):(0x0,r['of'])(null)),(0x0,r[_0x2973c3(0x220)])(_0x5f2952=>(_0x5f2952==null?void 0x0:_0x5f2952[_0x2973c3(0x138)])??(0x0,r['of'])(e[_0x2973c3(0x30d)]['NOT_COLLAB'])))[_0x2973c3(0x329)](_0x106e89=>_0x2a9773[_0x2973c3(0x1af)](_0x106e89));_0xb64864['add']((0x0,t[_0x2973c3(0x3f8)])(()=>_0x3b28a9[_0x2973c3(0x30b)]())),this[_0x2973c3(0x242)][_0x2973c3(0x3b8)](_0x449ca7[_0x2973c3(0x318)],_0xb64864);}};C=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x2,(0x0,t[_0x38a3cb(0x361)])(e[_0x38a3cb(0x14b)])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t[_0x38a3cb(0x361)])(n['IUnitPresenceUIAdapterRegistry']))],C);function ie(_0x4a5312){const _0x12304e=_0x38a3cb;let _0x191c24=_0x4a5312[_0x12304e(0x37b)](),_0x5e8d4c=_0x191c24==null?void 0x0:_0x191c24[_0x12304e(0x14f)]();if(_0x5e8d4c&&!(0x0,t[_0x12304e(0x272)])(_0x5e8d4c))return _0x5e8d4c;let _0x4cfe27=_0x4a5312['getCurrentUnitOfType'](t[_0x12304e(0x2f8)]['UNIVER_DOC']),_0x58c06f=_0x4cfe27==null?void 0x0:_0x4cfe27[_0x12304e(0x14f)]();if(_0x58c06f&&!(0x0,t[_0x12304e(0x272)])(_0x58c06f))return _0x58c06f;let _0x2b2122=_0x4a5312['getCurrentUnitOfType'](t[_0x12304e(0x2f8)][_0x12304e(0x310)]);if(_0x2b2122)return _0x2b2122[_0x12304e(0x14f)]();let _0x1f9c94=_0x4a5312[_0x12304e(0x299)](t['UniverInstanceType']['UNIVER_DOC'])[_0x12304e(0x168)](_0x189432=>!(0x0,t[_0x12304e(0x272)])(_0x189432[_0x12304e(0x14f)]()));return _0x1f9c94?_0x1f9c94['getUnitId']():null;}function w(_0x5a9855){let {status$:_0x1188b5}=_0x5a9855;return function(){return(0x0,c['jsx'])(te,{'status$':_0x1188b5});};}var ae=_0x38a3cb(0x1d1),oe=_0x38a3cb(0x1ea);const T={'id':_0x38a3cb(0x215),'type':t[_0x38a3cb(0x355)][_0x38a3cb(0x31d)],'handler':(_0x310c8b,_0x56f14a)=>{const _0x19de3a=_0x38a3cb;let _0x5c9577=_0x310c8b[_0x19de3a(0x255)](n[_0x19de3a(0x150)])[_0x19de3a(0x255)](_0x56f14a[_0x19de3a(0x318)]);if(!_0x5c9577)return!0x1;switch(_0x56f14a[_0x19de3a(0x3bb)][_0x19de3a(0x378)]){case _0x19de3a(0x3b8):return _0x5c9577[_0x19de3a(0x325)](_0x56f14a[_0x19de3a(0x3bb)][_0x19de3a(0x187)]),!0x0;case _0x19de3a(0x165):return _0x5c9577[_0x19de3a(0x141)](_0x56f14a[_0x19de3a(0x3bb)][_0x19de3a(0x2ec)],_0x56f14a[_0x19de3a(0x3bb)]['memberId']),!0x0;case'clear':return _0x5c9577[_0x19de3a(0x2d3)](_0x56f14a[_0x19de3a(0x3bb)]['unitId']),!0x0;default:return!0x1;}}},se={};let E=class extends t[_0x38a3cb(0x3b0)]{constructor(_0x291077,_0x48030d){const _0x2a2772=_0x38a3cb;super(),this['_docClipboardService']=_0x291077,this[_0x2a2772(0x3ae)]=_0x48030d,this[_0x2a2772(0x119)]();}['_init'](){const _0x93d162=_0x38a3cb;let _0x594053=this;this[_0x93d162(0x166)](this[_0x93d162(0x3c5)][_0x93d162(0x1ae)]({'onBeforePasteImage':async _0x4c427e=>{const _0x1f5c11=_0x93d162;let _0xec16b9=await _0x594053[_0x1f5c11(0x3ae)][_0x1f5c11(0x218)](_0x4c427e);return _0xec16b9?{'source':_0xec16b9[_0x1f5c11(0x237)],'imageSourceType':_0xec16b9[_0x1f5c11(0x22d)]}:null;}}));}};E=S([x(0x0,f[_0x38a3cb(0x33a)]),x(0x1,t[_0x38a3cb(0x3e1)])],E);const ce=[_0x38a3cb(0x3e4),'jiqing.500',_0x38a3cb(0x264),_0x38a3cb(0x148),_0x38a3cb(0x15b),_0x38a3cb(0x34b)];var D=class extends t['Disposable']{constructor(..._0x308026){const _0x139c3c=_0x38a3cb;super(..._0x308026),b(this,'_assignedColors',new Map()),b(this,_0x139c3c(0x106),0x0);}[_0x38a3cb(0x321)](_0x54bd8b){const _0x113842=_0x38a3cb;if(this[_0x113842(0x30a)][_0x113842(0x3ab)](_0x54bd8b))return this[_0x113842(0x30a)][_0x113842(0x255)](_0x54bd8b);let _0x36e08c=ce[this[_0x113842(0x106)]];return this['_colorIndex']=(this[_0x113842(0x106)]+0x1)%ce['length'],this[_0x113842(0x30a)]['set'](_0x54bd8b,_0x36e08c),_0x36e08c;}};function le(_0x372151){let _0x10c3c7='';for(let _0x9229a8 of _0x372151){let {startOffset:_0x32995a,endOffset:_0x42e527,isActive:_0x42315d,rangeType:_0x57abbc,segmentId:_0x5e4421,segmentPage:_0x55d393}=_0x9229a8;_0x10c3c7['length']&&(_0x10c3c7+=','),_0x10c3c7+=_0x32995a+':'+_0x42e527+':'+(_0x42315d?'1':'0')+':'+_0x57abbc+':'+_0x5e4421+':'+_0x55d393;}return _0x10c3c7;}function ue(_0x48ac4e){const _0x2118e0=_0x38a3cb;let _0x30365d=_0x48ac4e['split'](','),_0x51d49d=[];for(let _0x1bf19 of _0x30365d){let [_0x31f82e,_0x1df1c5,_0x147662,_0x7e50c0,_0x289334,_0x20290a]=_0x1bf19[_0x2118e0(0x19e)](':');_0x51d49d[_0x2118e0(0x159)]({'startOffset':Number(_0x31f82e),'endOffset':Number(_0x1df1c5),'collapsed':_0x31f82e===_0x1df1c5,'isActive':_0x147662==='1','rangeType':_0x7e50c0===t[_0x2118e0(0x27b)]['TEXT']?t[_0x2118e0(0x27b)]['TEXT']:t['DOC_RANGE_TYPE'][_0x2118e0(0x290)],'segmentId':typeof _0x289334=='string'?String(_0x289334):'','segmentPage':Number(_0x20290a??-0x1)});}return _0x51d49d['some'](_0x35acf2=>_0x35acf2['isActive'])||(_0x51d49d[0x0][_0x2118e0(0x1f8)]=!0x0),_0x51d49d;}var O=class extends t[_0x38a3cb(0x3b0)]{constructor(..._0x12abdf){const _0x34890a=_0x38a3cb;super(..._0x12abdf),b(this,'_collabCursorState$',new r[(_0x34890a(0x1a0))](null)),b(this,_0x34890a(0x217),this[_0x34890a(0x331)][_0x34890a(0x234)]());}[_0x38a3cb(0x2da)](_0x51d25b){const _0x4115bf=_0x38a3cb;let {unitID:_0x3c6b1d,memberID:_0x5389da,textRanges:_0xa54a7a}=_0x51d25b,_0x435eed=le(_0xa54a7a);if(_0x435eed==='')return;let _0x251993={'unitID':_0x3c6b1d,'memberID':_0x5389da,'selection':_0x435eed};this[_0x4115bf(0x331)][_0x4115bf(0x1af)](_0x251993);}};let k=class extends t[_0x38a3cb(0x3b0)]{get[_0x38a3cb(0x3aa)](){const _0x5d78f9=_0x38a3cb;return this[_0x5d78f9(0x292)][_0x5d78f9(0x202)]();}get['roomMembers'](){const _0x5060b5=_0x38a3cb;return this[_0x5060b5(0x1db)][_0x5060b5(0x202)]();}constructor(_0x182a86,_0xf5c9dd,_0x5bbf5d,_0xbd2f15,_0x3f1c6d,_0x5c3dba,_0x43bd3e,_0x34cee1,_0x2bcecf){const _0x201c58=_0x38a3cb;super(),this['unitID']=_0x182a86,this['_session']=_0xf5c9dd,this[_0x201c58(0x3c6)]=_0x5bbf5d,this[_0x201c58(0x3be)]=_0xbd2f15,this[_0x201c58(0x1e6)]=_0x3f1c6d,this[_0x201c58(0x23e)]=_0x5c3dba,this['_transformService']=_0x43bd3e,this[_0x201c58(0x273)]=_0x34cee1,this['_commandService']=_0x2bcecf,b(this,_0x201c58(0x1fe),!0x1),b(this,'_init',!0x1),b(this,_0x201c58(0x292),new r[(_0x201c58(0x1a0))](new Map())),b(this,_0x201c58(0x1cf),this[_0x201c58(0x292)][_0x201c58(0x234)]()),b(this,_0x201c58(0x1db),new r[(_0x201c58(0x1a0))]([])),b(this,'roomMembers$',this[_0x201c58(0x1db)][_0x201c58(0x263)]((0x0,r['debounceTime'])(0x12c))),b(this,_0x201c58(0x10a),(0x0,t[_0x201c58(0x36b)])(_0x304238=>{const _0xd0a60=_0x201c58;let _0x3107f5={'eventID':l[_0xd0a60(0x26d)][_0xd0a60(0x23f)],'data':{'unitID':this['unitID'],'memberID':this[_0xd0a60(0x151)][_0xd0a60(0x210)](),'selection':le(_0x304238)}};this['_session'][_0xd0a60(0x1b8)](_0x3107f5,this[_0xd0a60(0x2fa)]);},0x64));}[_0x38a3cb(0x15a)](){const _0x3663d4=_0x38a3cb;super[_0x3663d4(0x15a)](),this[_0x3663d4(0x292)][_0x3663d4(0x1af)](new Map()),this[_0x3663d4(0x292)]['complete'](),this[_0x3663d4(0x1db)][_0x3663d4(0x1af)]([]),this['_roomMembers$'][_0x3663d4(0x240)]();}[_0x38a3cb(0x134)](){const _0x45a180=_0x38a3cb;this[_0x45a180(0x119)]||(this[_0x45a180(0x119)]=!0x0,this[_0x45a180(0x151)][_0x45a180(0x1cc)]['pipe']((0x0,r[_0x45a180(0x1c6)])(this['dispose$']))[_0x45a180(0x329)](_0x162cdf=>{const _0x2bbdec=_0x45a180;_0x162cdf===e[_0x2bbdec(0x147)][_0x2bbdec(0x36f)]?this['_toggleOnline']():this[_0x2bbdec(0x133)]();}),this[_0x45a180(0x151)][_0x45a180(0x345)][_0x45a180(0x263)]((0x0,r[_0x45a180(0x1c6)])(this['dispose$']))[_0x45a180(0x329)](_0x3cdbd6=>{const _0xbab4ff=_0x45a180;let _0x33bba6=_0x3cdbd6['eventID'];_0x33bba6===l['CollaborationEvent'][_0xbab4ff(0x23f)]&&this[_0xbab4ff(0x17a)](_0x3cdbd6),_0x33bba6===l['CollaborationEvent'][_0xbab4ff(0x26a)]&&this['_onCursorDelete'](_0x3cdbd6);}),this[_0x45a180(0x166)](this['_commandService'][_0x45a180(0x17d)](_0x198636=>{const _0x3d7b89=_0x45a180;let _0x41d508=_0x198636[_0x3d7b89(0x1b4)];_0x41d508!=null&&this[_0x3d7b89(0x1fe)]&&_0x198636['id']===d[_0x3d7b89(0x1d3)]['id']&&_0x41d508[_0x3d7b89(0x2ec)]===this[_0x3d7b89(0x2fa)]&&_0x41d508[_0x3d7b89(0x2eb)]===!0x1&&_0x41d508[_0x3d7b89(0x3da)][_0x3d7b89(0x154)]>0x0&&this[_0x3d7b89(0x10a)](_0x41d508[_0x3d7b89(0x3da)]);})),this[_0x45a180(0x23e)]['collabCursorState$'][_0x45a180(0x263)]((0x0,r[_0x45a180(0x1c6)])(this['dispose$']))[_0x45a180(0x329)](_0x58a71d=>{const _0x54d20a=_0x45a180;if((_0x58a71d==null?void 0x0:_0x58a71d[_0x54d20a(0x2fa)])!==this[_0x54d20a(0x2fa)])return;let _0x2b3ec1={'eventID':l['CollaborationEvent'][_0x54d20a(0x23f)],'data':_0x58a71d};this['_onCursorUpdate'](_0x2b3ec1);}),this[_0x45a180(0x166)](this[_0x45a180(0x3f2)][_0x45a180(0x17d)](_0x2f5b0f=>{const _0x735701=_0x45a180;if(_0x2f5b0f[_0x735701(0x1b4)]==null)return;let _0x3fdb2f=_0x2f5b0f[_0x735701(0x1b4)];if(_0x2f5b0f['id']!==d[_0x735701(0x2c3)]['id']||_0x3fdb2f['unitId']!==this[_0x735701(0x2fa)])return;let _0x2931f9={'id':_0x735701(0x281),'params':_0x3fdb2f},_0x4d2c21=this[_0x735701(0x3aa)];for(let [_0x538d5f,_0x1290ae]of _0x4d2c21){let _0x333956={'id':_0x735701(0x281),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1290ae['ranges']}},_0x37dbf1=this[_0x735701(0x2a5)][_0x735701(0x2c6)](_0x2931f9,_0x333956,!0x1);if((0x0,l[_0x735701(0x3d6)])(_0x37dbf1))throw _0x37dbf1[_0x735701(0x1f7)];_0x4d2c21[_0x735701(0x3b8)](_0x538d5f,{..._0x1290ae,'ranges':_0x37dbf1[_0x735701(0x33f)][_0x735701(0x1b4)][_0x735701(0x34d)]});}queueMicrotask(()=>{const _0x43d9ae=_0x735701;this[_0x43d9ae(0x292)][_0x43d9ae(0x1af)](_0x4d2c21);});})));}[_0x38a3cb(0x17a)](_0x3a61ef){const _0x2bec48=_0x38a3cb;var _0x3b36c2;let {memberID:_0x578be1,selection:_0x7c5c46}=_0x3a61ef[_0x2bec48(0x256)],_0x15b9ea=ue(_0x7c5c46),_0x4219c3=((_0x3b36c2=this['_memberService'][_0x2bec48(0x208)](this[_0x2bec48(0x2fa)],_0x578be1))==null?void 0x0:_0x3b36c2[_0x2bec48(0x3c8)])??_0x2bec48(0x28a),_0x3dd6b6={'color':this[_0x2bec48(0x3be)][_0x2bec48(0x321)](_0x578be1),'name':_0x4219c3,'ranges':_0x15b9ea},_0x13bf08=this['cursorInfo'];_0x13bf08['set'](_0x578be1,_0x3dd6b6),this[_0x2bec48(0x292)][_0x2bec48(0x1af)](_0x13bf08);}[_0x38a3cb(0x2ed)](_0x56de3c){const _0x4a6c6c=_0x38a3cb;let {memberID:_0x471178}=_0x56de3c[_0x4a6c6c(0x256)],_0x756eb4=this[_0x4a6c6c(0x3aa)];_0x756eb4[_0x4a6c6c(0x3fb)](_0x471178),this[_0x4a6c6c(0x292)]['next'](_0x756eb4);}[_0x38a3cb(0x2a1)](){const _0x3a3440=_0x38a3cb;var _0x4d50cf;if(this['_online']=!0x0,((_0x4d50cf=this['_univerInstanceService'][_0x3a3440(0x37b)]())==null?void 0x0:_0x4d50cf[_0x3a3440(0x14f)]())!==this[_0x3a3440(0x2fa)])return;let _0x7300c3=this[_0x3a3440(0x3c6)]['get'](d['DocSelectionManagerService'])[_0x3a3440(0x228)]();Array[_0x3a3440(0x266)](_0x7300c3)&&_0x7300c3[_0x3a3440(0x154)]>0x0&&this[_0x3a3440(0x10a)](_0x7300c3);}['_toggleOffline'](){const _0x107f8e=_0x38a3cb;this[_0x107f8e(0x1fe)]=!0x1;}};k=S([x(0x2,(0x0,t['Inject'])(t[_0x38a3cb(0x291)])),x(0x3,(0x0,t[_0x38a3cb(0x361)])(D)),x(0x4,(0x0,t[_0x38a3cb(0x361)])(e[_0x38a3cb(0x22c)])),x(0x5,(0x0,t['Inject'])(O)),x(0x6,l[_0x38a3cb(0x344)]),x(0x7,t['IUniverInstanceService']),x(0x8,t[_0x38a3cb(0x34c)])],k);const de=()=>{let _0x3f72f7=[],_0x20917e=!0x1;return _0x5d8980=>{const _0xf7e43d=_0x121f;_0x3f72f7[_0xf7e43d(0x159)](_0x5d8980),_0x20917e||(_0x20917e=!0x0,setTimeout(()=>{const _0x4c411d=_0xf7e43d;_0x3f72f7[_0x4c411d(0x1b2)](_0x1def8a=>_0x1def8a()),_0x3f72f7=[],_0x20917e=!0x1;}));};};let A=class extends t[_0x38a3cb(0x3b0)]{get['cursorInfo'](){const _0x2542bf=_0x38a3cb;return this['_cursorInfo$'][_0x2542bf(0x202)]();}get[_0x38a3cb(0x362)](){const _0x225cc8=_0x38a3cb;return this[_0x225cc8(0x1db)]['getValue']();}constructor(_0x508fe0,_0x1adf15,_0x3f6dec,_0x2d5fa3,_0xc89d7b,_0x4ef1b5,_0x322ee6,_0x11c37d){const _0x4906bc=_0x38a3cb;super(),this[_0x4906bc(0x2fa)]=_0x508fe0,this['_session']=_0x1adf15,this['_injector']=_0x3f6dec,this[_0x4906bc(0x3be)]=_0x2d5fa3,this[_0x4906bc(0x1e6)]=_0xc89d7b,this[_0x4906bc(0x273)]=_0x4ef1b5,this[_0x4906bc(0x3f2)]=_0x322ee6,this['_refRangeService']=_0x11c37d,b(this,'_online',!0x1),b(this,'_init',!0x1),b(this,'_cursorInfo$',new r[(_0x4906bc(0x1a0))](new Map())),b(this,_0x4906bc(0x1cf),this['_cursorInfo$'][_0x4906bc(0x234)]()),b(this,_0x4906bc(0x1db),new r[(_0x4906bc(0x1a0))]([])),b(this,_0x4906bc(0x320),this[_0x4906bc(0x1db)]['pipe']((0x0,r[_0x4906bc(0x14e)])(0x12c))),b(this,_0x4906bc(0x10a),(0x0,t[_0x4906bc(0x36b)])((_0x42038c,_0x974c2e)=>{const _0x5a3cab=_0x4906bc;let _0x17cf09={'eventID':l[_0x5a3cab(0x26d)][_0x5a3cab(0x23f)],'data':{'unitID':this['unitID'],'memberID':this[_0x5a3cab(0x151)][_0x5a3cab(0x210)](),'selection':(0x0,h[_0x5a3cab(0x2ac)])(_0x42038c,_0x974c2e['range'])}};this[_0x5a3cab(0x151)][_0x5a3cab(0x1b8)](_0x17cf09,this[_0x5a3cab(0x2fa)]);},0x64));}[_0x38a3cb(0x15a)](){const _0x5e6adc=_0x38a3cb;super[_0x5e6adc(0x15a)](),this[_0x5e6adc(0x292)][_0x5e6adc(0x1af)](new Map()),this[_0x5e6adc(0x292)][_0x5e6adc(0x240)](),this[_0x5e6adc(0x1db)]['next']([]),this[_0x5e6adc(0x1db)][_0x5e6adc(0x240)]();}['init'](){const _0x5e8bdd=_0x38a3cb;this['_init']||(this[_0x5e8bdd(0x119)]=!0x0,this['_session'][_0x5e8bdd(0x1cc)][_0x5e8bdd(0x263)]((0x0,r['takeUntil'])(this['dispose$']))['subscribe'](_0x507f54=>{const _0x593f6c=_0x5e8bdd;_0x507f54===e[_0x593f6c(0x147)][_0x593f6c(0x36f)]?this[_0x593f6c(0x2a1)]():this[_0x593f6c(0x133)]();}),this[_0x5e8bdd(0x151)]['event$']['pipe']((0x0,r[_0x5e8bdd(0x1c6)])(this[_0x5e8bdd(0x20a)]))[_0x5e8bdd(0x329)](_0x59ef84=>{const _0x525f8d=_0x5e8bdd;let _0x3edb2a=_0x59ef84['eventID'];_0x3edb2a===l[_0x525f8d(0x26d)][_0x525f8d(0x23f)]&&this[_0x525f8d(0x17a)](_0x59ef84),_0x3edb2a===l['CollaborationEvent'][_0x525f8d(0x26a)]&&this['_onCursorDelete'](_0x59ef84);}),this['_onRefRangeChange'](),this[_0x5e8bdd(0x166)](this['_commandService'][_0x5e8bdd(0x17d)](_0x58cf95=>{const _0x26a145=_0x5e8bdd;if(this['_online']&&_0x58cf95['id']===g[_0x26a145(0x402)]['id']&&_0x58cf95[_0x26a145(0x1b4)][_0x26a145(0x2ec)]===this[_0x26a145(0x2fa)]){let _0xa63e1d=_0x58cf95['params'];this[_0x26a145(0x10a)](_0xa63e1d[_0x26a145(0x2d7)],_0xa63e1d['selections'][0x0]);}})));}[_0x38a3cb(0x17a)](_0x3b8a9c){const _0x5f1639=_0x38a3cb;var _0x17f7ee;let {memberID:_0x3a1d8b,selection:_0x944c1b}=_0x3b8a9c[_0x5f1639(0x256)],{sheetName:_0x58537c,range:_0x40bece}=(0x0,h[_0x5f1639(0x174)])(_0x944c1b),_0x26c363={'name':((_0x17f7ee=this[_0x5f1639(0x1e6)][_0x5f1639(0x208)](this[_0x5f1639(0x2fa)],_0x3a1d8b))==null?void 0x0:_0x17f7ee[_0x5f1639(0x3c8)])??'Unknown\x20user','range':this[_0x5f1639(0x108)](_0x58537c,_0x40bece),'sheetID':_0x58537c,'color':this[_0x5f1639(0x3be)][_0x5f1639(0x321)](_0x3a1d8b),'selection':_0x944c1b},_0x2ec615=this[_0x5f1639(0x3aa)];_0x2ec615[_0x5f1639(0x3b8)](_0x3a1d8b,_0x26c363),this[_0x5f1639(0x292)][_0x5f1639(0x1af)](_0x2ec615);}['_onCursorDelete'](_0x1b708d){const _0x533cff=_0x38a3cb;let {memberID:_0x2e3009}=_0x1b708d[_0x533cff(0x256)],_0x4553bd=this[_0x533cff(0x3aa)];_0x4553bd[_0x533cff(0x3fb)](_0x2e3009),this[_0x533cff(0x292)]['next'](_0x4553bd);}[_0x38a3cb(0x108)](_0x83bc7e,_0x2ac440){const _0x27db27=_0x38a3cb;var _0x13948b;let _0x12b43d=(_0x13948b=this[_0x27db27(0x273)][_0x27db27(0x1ad)](this[_0x27db27(0x2fa)],t[_0x27db27(0x2f8)]['UNIVER_SHEET']))==null||(_0x13948b=_0x13948b[_0x27db27(0x102)](_0x83bc7e))==null?void 0x0:_0x13948b[_0x27db27(0x315)]();return(_0x12b43d==null?void 0x0:_0x12b43d[_0x27db27(0x168)](_0x3611e9=>t[_0x27db27(0x2c2)][_0x27db27(0x20e)](_0x3611e9,_0x2ac440)))||_0x2ac440;}[_0x38a3cb(0x1d8)](){const _0x37f812=_0x38a3cb;let _0x47a9de=new t['DisposableCollection'](),_0x118f55=de(),_0x225676=()=>{const _0x305882=_0x121f;_0x47a9de[_0x305882(0x15a)]();let _0x206bf4=(_0x32a56e,_0x5f209e,_0xaa8bf4,_0x323bc5)=>{const _0x39349c=_0x305882;let _0x4209de=[];switch(_0x32a56e['id']){case g['EffectRefRangId'][_0x39349c(0x395)]:_0x4209de=(0x0,g[_0x39349c(0x372)])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)]['DeleteRangeMoveUpCommandId']:_0x4209de=(0x0,g['handleDeleteRangeMoveUp'])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)][_0x39349c(0x16b)]:_0x4209de=(0x0,g['handleInsertCol'])(_0x32a56e,_0x323bc5);break;case g['EffectRefRangId'][_0x39349c(0x3d8)]:_0x4209de=(0x0,g[_0x39349c(0x16f)])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)][_0x39349c(0x1cb)]:_0x4209de=(0x0,g[_0x39349c(0x2ee)])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)][_0x39349c(0x271)]:_0x4209de=(0x0,g[_0x39349c(0x156)])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)][_0x39349c(0x139)]:_0x4209de=(0x0,g['handleMoveRange'])(_0x32a56e,_0x323bc5);break;case g[_0x39349c(0x377)][_0x39349c(0x2f3)]:_0x4209de=(0x0,g[_0x39349c(0x316)])(_0x32a56e,_0x323bc5);break;case g['EffectRefRangId'][_0x39349c(0x125)]:_0x4209de=(0x0,g['handleIRemoveRow'])(_0x32a56e,_0x323bc5);}let _0x5c8101=(0x0,g['runRefRangeMutations'])(_0x4209de,_0x323bc5),_0x505a80=this[_0x39349c(0x3aa)][_0x39349c(0x255)](_0x5f209e);if(_0x505a80&&_0x5c8101){let _0x2668d3={..._0x505a80,'range':_0x5c8101};this['cursorInfo'][_0x39349c(0x3b8)](_0x5f209e,_0x2668d3),_0x118f55(()=>{const _0x51ff75=_0x39349c;let _0x54828e=this[_0x51ff75(0x11f)][_0x51ff75(0x259)](_0x5c8101,_0x145204=>(_0x54828e[_0x51ff75(0x15a)](),_0x206bf4(_0x145204,_0x5f209e,_0xaa8bf4,_0x5c8101)));_0x47a9de[_0x51ff75(0x354)](_0x54828e);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x305882(0x1b2)]((_0x1a4435,_0x55faf7)=>{const _0x1637b1=_0x305882;let {range:_0x14753a,sheetID:_0x11a2cb}=_0x1a4435,_0x4c130e=this[_0x1637b1(0x11f)][_0x1637b1(0x259)](_0x14753a,_0x1e23e4=>(_0x4c130e[_0x1637b1(0x15a)](),_0x206bf4(_0x1e23e4,_0x55faf7,_0x11a2cb,_0x14753a)));_0x47a9de[_0x1637b1(0x354)](_0x4c130e);});};this['disposeWithMe']((0x0,t[_0x37f812(0x3f8)])(this['_cursorInfo$'][_0x37f812(0x329)](()=>{_0x225676();})));}[_0x38a3cb(0x2a1)](){const _0x56ec2d=_0x38a3cb;var _0x3d9650,_0x682cc7;if(this[_0x56ec2d(0x1fe)]=!0x0,((_0x3d9650=this[_0x56ec2d(0x273)][_0x56ec2d(0x37b)]())==null?void 0x0:_0x3d9650['getUnitId']())!==this['unitID'])return;let _0x53eace=(_0x682cc7=this[_0x56ec2d(0x3c6)][_0x56ec2d(0x255)](g[_0x56ec2d(0x32a)])[_0x56ec2d(0x39a)]())==null?void 0x0:_0x682cc7[0x0],_0x4f0cce=this['_univerInstanceService'][_0x56ec2d(0x2d4)](t['UniverInstanceType'][_0x56ec2d(0x310)])['getActiveSheet']();_0x53eace&&_0x4f0cce&&this[_0x56ec2d(0x10a)](_0x4f0cce[_0x56ec2d(0x170)](),_0x53eace);}[_0x38a3cb(0x133)](){const _0xfea574=_0x38a3cb;this[_0xfea574(0x1fe)]=!0x1;}};A=S([x(0x2,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x3,(0x0,t[_0x38a3cb(0x361)])(D)),x(0x4,(0x0,t[_0x38a3cb(0x361)])(e[_0x38a3cb(0x22c)])),x(0x5,t[_0x38a3cb(0x339)]),x(0x6,t[_0x38a3cb(0x34c)]),x(0x7,(0x0,t[_0x38a3cb(0x361)])(g[_0x38a3cb(0x2e7)]))],A);let j=class extends t[_0x38a3cb(0x3b0)]{constructor(_0x3b0706,_0x25a0dd,_0x5f0dae){const _0x5ef461=_0x38a3cb;super(),this['_univerInstanceService']=_0x3b0706,this[_0x5ef461(0x3c6)]=_0x25a0dd,this[_0x5ef461(0x212)]=_0x5f0dae,b(this,_0x5ef461(0x1b6),new Map()),b(this,_0x5ef461(0x12a),new r['Subject']()),this['_init']();}[_0x38a3cb(0x15a)](){const _0x37455b=_0x38a3cb;super['dispose'](),this[_0x37455b(0x12a)]['complete'](),this[_0x37455b(0x1b6)][_0x37455b(0x1b2)](_0x45a131=>_0x45a131[_0x37455b(0x15a)]());}[_0x38a3cb(0x3ef)](_0x210ef7){const _0x2fbf67=_0x38a3cb;let _0x1bf434=this[_0x2fbf67(0x1b6)][_0x2fbf67(0x255)](_0x210ef7);return _0x1bf434?_0x1bf434[_0x2fbf67(0x1cf)]:this[_0x2fbf67(0x12a)][_0x2fbf67(0x263)]((0x0,r[_0x2fbf67(0x193)])(_0x4c54cd=>_0x4c54cd[_0x2fbf67(0x2fa)]===_0x210ef7),(0x0,r[_0x2fbf67(0x220)])(_0x396d64=>_0x396d64[_0x2fbf67(0x1cf)]));}[_0x38a3cb(0x119)](){const _0xf25de7=_0x38a3cb;this[_0xf25de7(0x273)][_0xf25de7(0x2fb)](t[_0xf25de7(0x2f8)]['UNIVER_SHEET'])[_0xf25de7(0x263)]((0x0,r[_0xf25de7(0x1c6)])(this['dispose$']))['subscribe'](async _0x3fd157=>{const _0x14fed9=_0xf25de7;let _0x515adb=_0x3fd157[_0x14fed9(0x3c1)][_0x14fed9(0x14f)](),_0x23d00c=await this[_0x14fed9(0x1c7)](_0x515adb);this[_0x14fed9(0x12a)]['next'](_0x23d00c),this['_entities'][_0x14fed9(0x3b8)](_0x515adb,_0x23d00c);}),this[_0xf25de7(0x273)][_0xf25de7(0x2fb)](t['UniverInstanceType'][_0xf25de7(0x3f1)])[_0xf25de7(0x263)]((0x0,r[_0xf25de7(0x1c6)])(this[_0xf25de7(0x20a)]))[_0xf25de7(0x263)]((0x0,r[_0xf25de7(0x193)])(_0x2c3fdf=>!_0x2c3fdf[_0xf25de7(0x3c1)][_0xf25de7(0x14f)]()[_0xf25de7(0x2a0)]('__')))[_0xf25de7(0x329)](async _0x14d9b1=>{const _0x187f32=_0xf25de7;let {unit:_0x563f6a}=_0x14d9b1,_0x570c72=_0x563f6a['getUnitId'](),_0x3cae86=await this[_0x187f32(0x1be)](_0x570c72);this['_entityInit$'][_0x187f32(0x1af)](_0x3cae86),this[_0x187f32(0x1b6)][_0x187f32(0x3b8)](_0x570c72,_0x3cae86);}),(0x0,r[_0xf25de7(0x20c)])(this[_0xf25de7(0x273)][_0xf25de7(0x384)](t[_0xf25de7(0x2f8)]['UNIVER_DOC']),this[_0xf25de7(0x273)][_0xf25de7(0x384)](t[_0xf25de7(0x2f8)]['UNIVER_SHEET']))[_0xf25de7(0x263)]((0x0,r[_0xf25de7(0x1c6)])(this[_0xf25de7(0x20a)]))[_0xf25de7(0x329)](_0x12fcf4=>{const _0x5dc2f1=_0xf25de7;let _0xea9fba=_0x12fcf4[_0x5dc2f1(0x14f)](),_0x6a6492=this[_0x5dc2f1(0x1b6)][_0x5dc2f1(0x255)](_0xea9fba);_0x6a6492&&(_0x6a6492[_0x5dc2f1(0x15a)](),this[_0x5dc2f1(0x1b6)][_0x5dc2f1(0x3fb)](_0xea9fba));});}async[_0x38a3cb(0x1c7)](_0x459011){const _0x446ccd=_0x38a3cb;let _0x47869b=await this[_0x446ccd(0x212)][_0x446ccd(0x172)](_0x459011),_0x325d4f=this[_0x446ccd(0x3c6)][_0x446ccd(0x2b1)](A,_0x459011,_0x47869b);return _0x325d4f[_0x446ccd(0x134)](),_0x325d4f;}async['_startDocCollabCursor'](_0x39d11b){const _0x1b18b8=_0x38a3cb;let _0x2aaeb1=await this[_0x1b18b8(0x212)][_0x1b18b8(0x172)](_0x39d11b),_0x3971b2=this['_injector']['createInstance'](k,_0x39d11b,_0x2aaeb1);return _0x3971b2[_0x1b18b8(0x134)](),_0x3971b2;}};j=S([x(0x0,t[_0x38a3cb(0x339)]),x(0x1,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x2,(0x0,t[_0x38a3cb(0x361)])(e['CollaborationSessionService']))],j);function fe(_0x2f52d0,_0x29de5b){const _0x8061f0=_0x38a3cb;_0x2f52d0['save'](),_0x2f52d0[_0x8061f0(0x1bb)]=_0x8061f0(0x1ca);let _0x3ab8ec=_0x2f52d0[_0x8061f0(0x1a2)](_0x29de5b)[_0x8061f0(0x13f)];return _0x2f52d0[_0x8061f0(0x1ed)](),Math[_0x8061f0(0x3f6)](_0x3ab8ec+0x8,0xc8);}function pe(_0x42cfc8,_0x488f69){const _0x5439fe=_0x38a3cb;let {radius:_0xc90543,width:_0x40b148,height:_0x4b6a27}=_0x488f69;_0xc90543??=0x0,_0x40b148??=0x1e,_0x4b6a27??=0x1e;let _0x220d25=0x0,_0x46bd35=0x0,_0x4069f0=0x0;_0x220d25=_0x46bd35=_0x4069f0=Math[_0x5439fe(0x3f6)](_0xc90543,_0x40b148/0x2,_0x4b6a27/0x2),_0x42cfc8[_0x5439fe(0x328)](),_0x42cfc8[_0x5439fe(0x13b)](_0x220d25,0x0),_0x42cfc8[_0x5439fe(0x283)](_0x40b148-_0x46bd35,0x0),_0x42cfc8[_0x5439fe(0x126)](_0x40b148-_0x46bd35,_0x46bd35,_0x46bd35,Math['PI']*0x3/0x2,0x0,!0x1),_0x42cfc8[_0x5439fe(0x283)](_0x40b148,_0x4b6a27-_0x4069f0),_0x42cfc8[_0x5439fe(0x126)](_0x40b148-_0x4069f0,_0x4b6a27-_0x4069f0,_0x4069f0,0x0,Math['PI']/0x2,!0x1),_0x42cfc8[_0x5439fe(0x283)](0x0,_0x4b6a27),_0x42cfc8['lineTo'](0x0,_0x220d25),_0x42cfc8[_0x5439fe(0x126)](_0x220d25,_0x220d25,_0x220d25,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x42cfc8[_0x5439fe(0x221)](),_0x488f69['fill']&&(_0x42cfc8['save'](),_0x42cfc8[_0x5439fe(0x2c9)]=_0x488f69['fill'],_0x488f69[_0x5439fe(0x1e1)]==='evenodd'?_0x42cfc8['fill'](_0x5439fe(0x296)):_0x42cfc8[_0x5439fe(0x2ab)](),_0x42cfc8['restore']());}var M=class e extends p[_0x38a3cb(0x1a1)]{constructor(_0x4dcd0d,_0x2faaaf){const _0xa810f0=_0x38a3cb;super(_0x4dcd0d,_0x2faaaf),b(this,_0xa810f0(0x30c),void 0x0),b(this,_0xa810f0(0x235),void 0x0),this[_0xa810f0(0x30c)]=_0x2faaaf==null?void 0x0:_0x2faaaf[_0xa810f0(0x30c)],this['text']=_0x2faaaf==null?void 0x0:_0x2faaaf['text'];}static[_0x38a3cb(0x262)](_0x3b901e,_0x4a0ce9){const _0x409395=_0x38a3cb;let {text:_0x4ff479,color:_0x38087f}=_0x4a0ce9;_0x3b901e[_0x409395(0x327)](),_0x3b901e[_0x409395(0x1bb)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x24b31f=_0x3b901e[_0x409395(0x1a2)](_0x4ff479)['width'];if(pe(_0x3b901e,{'height':0x14,'radius':0x4,'width':fe(_0x3b901e,_0x4ff479),'fill':_0x38087f,'evented':!0x1}),_0x3b901e['fillStyle']=_0x409395(0x1c3),_0x24b31f>0xc0){let _0x1fa035='',_0x3481de=0x0;for(let _0x31b2d2 of _0x4ff479){let _0x304fd7=_0x3b901e['measureText'](_0x31b2d2)['width'];if(_0x3481de+_0x304fd7<=0xc0-_0x3b901e['measureText'](_0x409395(0x1a6))[_0x409395(0x13f)])_0x1fa035+=_0x31b2d2,_0x3481de+=_0x304fd7;else{_0x1fa035+=_0x409395(0x1a6);break;}}_0x3b901e[_0x409395(0x2a7)](_0x1fa035,0x4,0xf);}else _0x3b901e[_0x409395(0x2a7)](_0x4ff479,0x4,0xf);_0x3b901e[_0x409395(0x1ed)]();}[_0x38a3cb(0x36a)](_0x371533){const _0x4b8c5b=_0x38a3cb;e[_0x4b8c5b(0x262)](_0x371533,this);}};const N='collab-text-anchor-';var P=class{constructor(_0x170324,_0x24f4e1,_0x874d93,_0x3afdf0){const _0x34ab98=_0x38a3cb;this[_0x34ab98(0x199)]=_0x170324,this[_0x34ab98(0x11d)]=_0x24f4e1,this[_0x34ab98(0x3c0)]=_0x874d93,this[_0x34ab98(0x1e3)]=_0x3afdf0,b(this,_0x34ab98(0x2b0),[]),b(this,_0x34ab98(0xfe),null),b(this,_0x34ab98(0x18d),null),b(this,_0x34ab98(0x39b),null),b(this,_0x34ab98(0x15d),null),b(this,_0x34ab98(0x2df),null),this[_0x34ab98(0x1c2)]();}set[_0x38a3cb(0x401)](_0x210bf0){const _0x5ce728=_0x38a3cb;_0x210bf0?(this[_0x5ce728(0x39b)]&&this['_anchorDot']['hide'](),this[_0x5ce728(0x18d)]&&this[_0x5ce728(0x18d)]['show']()):(this['_anchorDot']&&this[_0x5ce728(0x39b)][_0x5ce728(0x386)](),this[_0x5ce728(0x18d)]&&this[_0x5ce728(0x18d)][_0x5ce728(0x239)]());}[_0x38a3cb(0x15a)](){const _0x295241=_0x38a3cb;for(let _0x566f1e of this[_0x295241(0x2b0)])_0x566f1e[_0x295241(0x15a)]();this[_0x295241(0x18d)]&&this[_0x295241(0x18d)][_0x295241(0x15a)](),this['_anchorDot']&&this[_0x295241(0x39b)][_0x295241(0x15a)](),this['_anchor']&&this[_0x295241(0xfe)][_0x295241(0x15a)](),this[_0x295241(0x2df)]&&this[_0x295241(0x2df)]();}[_0x38a3cb(0x1c2)](){const _0x4da488=_0x38a3cb;let {_docSkeleton:_0xcf6cca,_document:_0x47fbe5}=this,{color:_0x137b65,name:_0x1fe1be,ranges:_0x10dfb7}=this['_cursor'],_0x1dbdc9=_0x47fbe5['getOffsetConfig'](),{docsLeft:_0x525a7b,docsTop:_0x559d82}=_0x1dbdc9,_0x5c0d98=new f['NodePositionConvertToCursor'](_0x1dbdc9,_0xcf6cca);for(let {startOffset:_0x223ff4,endOffset:_0x11cb0a,rangeType:_0x11a853,segmentId:_0x1daca4,segmentPage:_0x1cf97c,collapsed:_0x4a9397,isActive:_0x3697b0}of _0x10dfb7){let _0x251a78=_0xcf6cca[_0x4da488(0x114)](_0x223ff4,!0x0,_0x1daca4,_0x1cf97c),_0x5b9040=_0xcf6cca[_0x4da488(0x114)](_0x11cb0a,!0x0,_0x1daca4,_0x1cf97c);_0x5b9040??=_0xcf6cca[_0x4da488(0x114)](_0x11cb0a-0x1,!0x1,_0x1daca4,_0x1cf97c);let _0x1222d5=me(_0x251a78,_0x5b9040);if(_0x3697b0&&_0x1222d5[_0x4da488(0x227)]){let {contentBoxPointGroup:_0x8fd4bf}=_0x5c0d98['getRangePointData'](_0x5b9040,_0x5b9040);if(_0x8fd4bf[_0x4da488(0x154)]===0x0)continue;this[_0x4da488(0x124)](_0x137b65,_0x8fd4bf,_0x525a7b,_0x559d82,_0x1fe1be),this['_eventUnsubscribe']=this[_0x4da488(0x2f0)]();}if(_0x251a78&&_0x5b9040){if(_0x11a853===t['DOC_RANGE_TYPE']['RECT']){let {pointGroup:_0x2d9010}=new f[(_0x4da488(0x380))](_0x1dbdc9,_0xcf6cca)[_0x4da488(0x32c)](_0x251a78,_0x5b9040)??{};if(_0x2d9010==null||_0x2d9010['length']===0x0)continue;this[_0x4da488(0x2bf)](_0x137b65,_0x2d9010,_0x525a7b,_0x559d82);}else{if(!_0x4a9397&&_0x1222d5[_0x4da488(0x343)]){let {borderBoxPointGroup:_0x859c65}=_0x5c0d98[_0x4da488(0x32c)](_0x251a78,_0x5b9040);if(_0x859c65['length']===0x0)continue;this[_0x4da488(0x1f4)](_0x137b65,_0x859c65,_0x525a7b,_0x559d82);}}}}}[_0x38a3cb(0x124)](_0x29ef43,_0x4f59d4,_0xd512cd,_0x42d3dc,_0x56e424){const _0x185549=_0x38a3cb;let {left:_0x4c5c3d,top:_0x13740c,height:_0x75bc2c}=this[_0x185549(0x20b)](_0x4f59d4),_0x510052=1.5/this[_0x185549(0x3af)](),_0x5b1ee2=new p['Rect'](N+(0x0,t[_0x185549(0x332)])(0x6),{'left':_0x4c5c3d+_0xd512cd-_0x510052,'top':_0x13740c+_0x42d3dc,'height':_0x75bc2c,'width':1.5,'fill':_0x29ef43||(0x0,p[_0x185549(0x2cf)])(t[_0x185549(0x3f9)]['black'],0x0),'strokeWidth':_0x510052,'stroke':_0x185549(0x265),'evented':!0x0});this[_0x185549(0xfe)]=_0x5b1ee2,this['_scene'][_0x185549(0x17f)](_0x5b1ee2,f['TEXT_RANGE_LAYER_INDEX']);let _0x56045b=new p[(_0x185549(0x232))](N+(0x0,t[_0x185549(0x332)])(0x6),{'left':_0x4c5c3d+_0xd512cd-_0x510052,'top':_0x13740c+_0x42d3dc-0x2,'height':0x4,'width':0x4,'fill':_0x29ef43||(0x0,p[_0x185549(0x2cf)])(t[_0x185549(0x3f9)][_0x185549(0x3e0)],0x0),'strokeWidth':0x0,'stroke':_0x29ef43||(0x0,p[_0x185549(0x2cf)])(t['COLORS']['black'],0x0),'evented':!0x1});this[_0x185549(0x39b)]=_0x56045b,this['_scene'][_0x185549(0x17f)](_0x56045b,f['TEXT_RANGE_LAYER_INDEX']);let _0x38d93c=new M(N+(0x0,t['generateRandomId'])(0x6),{'left':_0x4c5c3d+_0xd512cd-_0x510052,'top':_0x13740c+_0x42d3dc-0x14,'text':_0x56e424,'color':_0x29ef43});this[_0x185549(0x18d)]=_0x38d93c,this[_0x185549(0x11d)]['addObject'](_0x38d93c,f['TEXT_RANGE_LAYER_INDEX']),this[_0x185549(0x401)]=!0x1;}['_handleHover'](){const _0x57867c=_0x38a3cb;let _0x2e0636=this[_0x57867c(0xfe)][_0x57867c(0x153)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x26416b=this['_anchor'][_0x57867c(0x10d)][_0x57867c(0x37f)](()=>{const _0x45c4bc=_0x57867c;this[_0x45c4bc(0x15d)]&&clearTimeout(this['_hideTimer']),this[_0x45c4bc(0x15d)]=setTimeout(()=>{const _0x144e03=_0x45c4bc;this[_0x144e03(0x401)]=!0x1;},0x7d0);});return()=>{const _0x3ba665=_0x57867c;_0x2e0636[_0x3ba665(0x30b)](),_0x26416b[_0x3ba665(0x30b)]();};}['_drawTextRange'](_0x5e9c03,_0x3a8514,_0x2c58b2,_0x5a3aa1){const _0x9473c5=_0x38a3cb;let _0x346318=0.2,_0x4af422=new t['ColorKit'](_0x5e9c03)[_0x9473c5(0x22f)](_0x346318)[_0x9473c5(0x116)](),_0x25820d=new p[(_0x9473c5(0x135))](_0x9473c5(0x3ee)+(0x0,t[_0x9473c5(0x332)])(0x6),{'pointsGroup':_0x3a8514,'fill':_0x4af422||(0x0,p[_0x9473c5(0x2cf)])(t[_0x9473c5(0x3f9)][_0x9473c5(0x3e0)],_0x346318),'left':_0x2c58b2,'top':_0x5a3aa1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x9473c5(0x159)](_0x25820d),this[_0x9473c5(0x11d)]['addObject'](_0x25820d,f[_0x9473c5(0x2dd)]);}[_0x38a3cb(0x2bf)](_0x57bf06,_0xb12918,_0x478706,_0x5583d3){const _0x15a642=_0x38a3cb;let _0x411b92=0.2,_0x3f628c=new t[(_0x15a642(0x149))](_0x57bf06)[_0x15a642(0x22f)](_0x411b92)[_0x15a642(0x116)](),_0x403267=new p[(_0x15a642(0x135))](_0x15a642(0x389)+(0x0,t[_0x15a642(0x332)])(0x6),{'pointsGroup':_0xb12918,'fill':_0x3f628c||(0x0,p[_0x15a642(0x2cf)])(t[_0x15a642(0x3f9)][_0x15a642(0x3e0)],_0x411b92),'left':_0x478706,'top':_0x5583d3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15a642(0x2b0)]['push'](_0x403267),this[_0x15a642(0x11d)][_0x15a642(0x17f)](_0x403267,f['TEXT_RANGE_LAYER_INDEX']);}[_0x38a3cb(0x20b)](_0x5d5ecc){let _0x3b93c3=_0x5d5ecc[0x0],_0x2ac2f5=_0x3b93c3[0x0],_0x3f524c=_0x3b93c3[0x2],{x:_0x596098,y:_0x373f10}=_0x2ac2f5,{x:_0x182331,y:_0x24b080}=_0x3f524c;return{'left':_0x596098,'top':_0x373f10,'width':_0x182331-_0x596098,'height':_0x24b080-_0x373f10};}[_0x38a3cb(0x3af)](){const _0x2d4507=_0x38a3cb;let {scaleX:_0x15d0c4,scaleY:_0x3920d6}=this[_0x2d4507(0x11d)][_0x2d4507(0x338)]();return Math['max'](_0x15d0c4,_0x3920d6);}};function me(_0x2ef809,_0x2d79dc){const _0x11b67e=_0x38a3cb;if(!_0x2d79dc)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x2ef809||_0x2ef809[_0x11b67e(0x1de)]!==_0x2d79dc[_0x11b67e(0x1de)]||(_0x2ef809[_0x11b67e(0x1de)]===p['DocumentSkeletonPageType']['HEADER']||_0x2ef809['pageType']===p['DocumentSkeletonPageType'][_0x11b67e(0x1ab)])&&_0x2ef809[_0x11b67e(0x10f)]!==_0x2d79dc['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x3627df=(0x0,p[_0x11b67e(0x3a7)])(_0x2ef809),_0x5892f2=(0x0,p['getDocumentSkeletonColumnPagePathInfo'])(_0x2d79dc);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x3627df==null||_0x5892f2==null?_0x3627df==null&&_0x5892f2==null:_0x3627df['pageIndex']===_0x5892f2[_0x11b67e(0x385)]&&_0x3627df['columnGroupId']===_0x5892f2['columnGroupId']&&_0x3627df[_0x11b67e(0x38b)]===_0x5892f2['columnIndex']};}let F=class extends t[_0x38a3cb(0x3b0)]{constructor(_0x3774f5,_0x5cf879,_0x220601,_0xfd889d,_0x459127){const _0xe4b77f=_0x38a3cb;super(),this[_0xe4b77f(0x171)]=_0x3774f5,this[_0xe4b77f(0x2f2)]=_0x5cf879,this[_0xe4b77f(0x1fd)]=_0x220601,this[_0xe4b77f(0x3f2)]=_0xfd889d,this[_0xe4b77f(0x278)]=_0x459127,b(this,'_cursorShapes',[]),b(this,_0xe4b77f(0x3e6),[]),this[_0xe4b77f(0x119)]();}[_0x38a3cb(0x119)](){const _0xe3c45b=_0x38a3cb;let _0x12ae43=this['_context']['unitId'],_0x5668e6=this[_0xe3c45b(0x2f2)];this['disposeWithMe']((0x0,r[_0xe3c45b(0x23a)])([this[_0xe3c45b(0x1fd)][_0xe3c45b(0x3ef)](_0x12ae43),this[_0xe3c45b(0x278)][_0xe3c45b(0x10e)]])['pipe']((0x0,i[_0xe3c45b(0x2f1)])(([_0x5b59fb,_0xc20438])=>({'skeleton':_0x5668e6[_0xe3c45b(0x1f3)](),'cursors':[..._0x5b59fb[_0xe3c45b(0x24c)]()][_0xe3c45b(0x2d0)](_0x54e882=>({..._0x54e882,'color':this[_0xe3c45b(0x278)][_0xe3c45b(0x245)](_0x54e882['color'])}))})))['subscribe'](_0x2d1ff2=>{const _0x3b157a=_0xe3c45b;if(this[_0x3b157a(0x1eb)](),_0x2d1ff2){let {skeleton:_0x95263a,cursors:_0x3569ea}=_0x2d1ff2;this[_0x3b157a(0x274)](_0x95263a,_0x3569ea);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x38a3cb(0x274)](_0x21b78e,_0x34091c){const _0xfc0a7=_0x38a3cb;let {scene:_0x5a507a,mainComponent:_0x1ff2f1}=this[_0xfc0a7(0x171)],_0x1871b8=_0x34091c[_0xfc0a7(0x2f1)](_0x4ecb59=>new P(_0x4ecb59,_0x5a507a,_0x21b78e,_0x1ff2f1));this[_0xfc0a7(0x2e0)]=_0x1871b8,this[_0xfc0a7(0x3e6)]=_0x34091c;}[_0x38a3cb(0x351)](){const _0xf7aae0=_0x38a3cb;this[_0xf7aae0(0x1eb)]();let {scene:_0x5ad835,mainComponent:_0x55f7bb}=this[_0xf7aae0(0x171)],_0x5886c8=this[_0xf7aae0(0x2f2)]['getSkeleton'](),_0x8c42f9=this[_0xf7aae0(0x3e6)][_0xf7aae0(0x2f1)](_0x394d6f=>new P(_0x394d6f,_0x5ad835,_0x5886c8,_0x55f7bb));this['_cursorShapes']=_0x8c42f9;}['_removeCollabCursors'](){const _0x154058=_0x38a3cb;this[_0x154058(0x2e0)][_0x154058(0x1b2)](_0xfe04c1=>_0xfe04c1[_0x154058(0x15a)]()),this['_cursorShapes']=[];}[_0x38a3cb(0x284)](){const _0xdad781=_0x38a3cb;let _0x27b609=[f[_0xdad781(0x2a4)]['id']];this[_0xdad781(0x166)](this[_0xdad781(0x3f2)][_0xdad781(0x17d)](_0x18d38e=>{const _0x54f2f1=_0xdad781;_0x27b609[_0x54f2f1(0x1a8)](_0x18d38e['id'])&&_0x18d38e[_0x54f2f1(0x1b4)][_0x54f2f1(0x2ec)]===this[_0x54f2f1(0x171)][_0x54f2f1(0x2ec)]&&this[_0x54f2f1(0x351)]();}));}[_0x38a3cb(0x2c0)](){const _0x50016a=_0x38a3cb;this[_0x50016a(0x166)]((0x0,t[_0x50016a(0x1fb)])(this[_0x50016a(0x171)][_0x50016a(0x38f)][_0x50016a(0x21c)])[_0x50016a(0x263)]((0x0,i['filter'])(_0xc2e3d5=>_0xc2e3d5[_0x50016a(0x378)]===p[_0x50016a(0x289)]['resize']),(0x0,i['throttleTime'])(0x10))[_0x50016a(0x329)](()=>{const _0x3a5b21=_0x50016a;this[_0x3a5b21(0x351)]();}));}};F=S([x(0x1,(0x0,t[_0x38a3cb(0x361)])(d[_0x38a3cb(0x1b0)])),x(0x2,(0x0,t[_0x38a3cb(0x361)])(j)),x(0x3,t[_0x38a3cb(0x34c)]),x(0x4,(0x0,t['Inject'])(t[_0x38a3cb(0x24d)]))],F);var I=class extends p['Shape']{constructor(_0x5283e8,_0xbcded2){const _0xb36048=_0x38a3cb;super(_0x5283e8,_0xbcded2),b(this,_0xb36048(0x3a1),void 0x0),b(this,_0xb36048(0x3a3),!0x1),b(this,_0xb36048(0x146),void 0x0),b(this,_0xb36048(0x3d5),''),b(this,_0xb36048(0x340),_0xb36048(0x1ac)),b(this,'_backgroundColor',void 0x0),b(this,_0xb36048(0x177),void 0x0),b(this,_0xb36048(0x2aa),void 0x0),b(this,_0xb36048(0x37e),0x4),b(this,_0xb36048(0x3a9),void 0x0),b(this,_0xb36048(0x27a),void 0x0),b(this,'_isBlinkVisible',!0x0),b(this,_0xb36048(0x196),0x0),b(this,_0xb36048(0x279),_0xb36048(0x369)),_0xbcded2&&(this['setShapeProps'](_0xbcded2),_0xbcded2[_0xb36048(0x101)]&&(_0xbcded2['highlightSecond']??this[_0xb36048(0x37e)])&&this['_startBlinking'](_0xbcded2['highlightSecond']??this[_0xb36048(0x37e)])),this[_0xb36048(0x153)][_0xb36048(0x37f)](()=>this[_0xb36048(0x155)]({'hovered':!0x0})),this[_0xb36048(0x10d)][_0xb36048(0x37f)](()=>this[_0xb36048(0x155)]({'hovered':!0x1}));}[_0x38a3cb(0x2b3)](_0x1febda){const _0x2ec053=_0x38a3cb;this[_0x2ec053(0x196)]=_0x1febda;}[_0x38a3cb(0x155)](_0x1c1e3a){const _0x624d38=_0x38a3cb;this[_0x624d38(0x3a1)]=_0x1c1e3a[_0x624d38(0x30c)]??this[_0x624d38(0x3a1)],this[_0x624d38(0x3a3)]=_0x1c1e3a[_0x624d38(0x33c)]??this[_0x624d38(0x3a3)],this['_range']=_0x1c1e3a['range']??this[_0x624d38(0x146)],this['_name']=_0x1c1e3a[_0x624d38(0x3c8)]??this[_0x624d38(0x3d5)],this[_0x624d38(0x340)]=_0x1c1e3a[_0x624d38(0x38e)]??this['_labelPosition'],this['_backgroundColor']=_0x1c1e3a[_0x624d38(0x2a3)]??this[_0x624d38(0x178)],this[_0x624d38(0x177)]=_0x1c1e3a[_0x624d38(0x1fc)]??this[_0x624d38(0x177)],this[_0x624d38(0x279)]=_0x1c1e3a[_0x624d38(0x297)]??this[_0x624d38(0x279)],_0x1c1e3a[_0x624d38(0x3ba)]!==void 0x0&&(this[_0x624d38(0x37e)]=_0x1c1e3a[_0x624d38(0x3ba)]),_0x1c1e3a[_0x624d38(0x101)]!==void 0x0&&(this['_highlight']=_0x1c1e3a[_0x624d38(0x101)]),_0x1c1e3a['offsetY']!==void 0x0&&(this[_0x624d38(0x196)]=_0x1c1e3a[_0x624d38(0x312)]),this[_0x624d38(0x140)]({'width':_0x1c1e3a[_0x624d38(0x13f)],'height':_0x1c1e3a[_0x624d38(0x267)]});}[_0x38a3cb(0x29a)](_0x1ce281){const _0x43b8ee=_0x38a3cb;let {row:_0x537157,column:_0x4955f6}=_0x1ce281;_0x537157>=this[_0x43b8ee(0x146)][_0x43b8ee(0x28b)]&&_0x537157<=this[_0x43b8ee(0x146)][_0x43b8ee(0x26c)]&&_0x4955f6>=this[_0x43b8ee(0x146)][_0x43b8ee(0x29e)]&&_0x4955f6<=this[_0x43b8ee(0x146)][_0x43b8ee(0x20d)]?this[_0x43b8ee(0x155)]({'hovered':!0x0}):this[_0x43b8ee(0x155)]({'hovered':!0x1});}[_0x38a3cb(0x3dd)](_0xe76c50){const _0x44ba8a=_0x38a3cb;this[_0x44ba8a(0x326)](),this['_isBlinkVisible']=!0x0,this['_blinkIntervalTimer']=window[_0x44ba8a(0x2e5)](()=>{const _0xf569cd=_0x44ba8a;this[_0xf569cd(0x388)]=!this[_0xf569cd(0x388)],this['makeDirty'](!0x0);},0x1f4),this[_0x44ba8a(0x3a9)]=window['setTimeout'](()=>{const _0x484256=_0x44ba8a;this[_0x484256(0x326)](),this[_0x484256(0x388)]=!0x0,this[_0x484256(0x1f2)](!0x0);},_0xe76c50*0x3e8);}['_stopBlinking'](){const _0x5cfeaa=_0x38a3cb;this['_blinkIntervalTimer']&&=(window[_0x5cfeaa(0x2b8)](this[_0x5cfeaa(0x27a)]),void 0x0),this[_0x5cfeaa(0x3a9)]&&=(window['clearTimeout'](this[_0x5cfeaa(0x3a9)]),void 0x0);}[_0x38a3cb(0x233)](_0x42ff1b){return!0x1;}[_0x38a3cb(0x15a)](){const _0x22f288=_0x38a3cb;this[_0x22f288(0x326)](),super[_0x22f288(0x15a)]();}[_0x38a3cb(0x36a)](_0x57f0e1){const _0x2f557c=_0x38a3cb;let _0x57dcc9=this['_color'],_0x4eab0f=this[_0x2f557c(0x178)];if(this[_0x2f557c(0x2aa)]&&!this['_isBlinkVisible']&&(_0x57dcc9=this[_0x2f557c(0x399)](this[_0x2f557c(0x3a1)]),_0x4eab0f=this['_backgroundColor']?this[_0x2f557c(0x399)](this['_backgroundColor']):void 0x0),p[_0x2f557c(0x232)][_0x2f557c(0x262)](_0x57f0e1,{'width':this[_0x2f557c(0x13f)],'height':this[_0x2f557c(0x267)],'strokeWidth':this[_0x2f557c(0x286)]||1.5,'stroke':_0x57dcc9,'evented':!0x1,'fill':_0x4eab0f}),this[_0x2f557c(0x3a3)]||this[_0x2f557c(0x177)]){_0x57f0e1[_0x2f557c(0x327)]();let _0x373e4e=this[_0x2f557c(0x279)]==='left'?-fe(_0x57f0e1,this['_name']):this[_0x2f557c(0x13f)];_0x57f0e1[_0x2f557c(0x26e)](0x1,0x0,0x0,0x1,_0x373e4e,(this[_0x2f557c(0x340)]==='bottom'?0x0:-0x14)+(this['_offsetY']??0x0)),M[_0x2f557c(0x262)](_0x57f0e1,{'text':this['_name'],'color':_0x57dcc9}),_0x57f0e1['restore']();}}[_0x38a3cb(0x399)](_0x41a9e9){const _0xd65657=_0x38a3cb;return _0x41a9e9[_0xd65657(0x2a0)]('#')?_0xd65657(0x12c)+Number[_0xd65657(0x257)](_0x41a9e9[_0xd65657(0x21d)](0x1,0x3),0x10)+',\x20'+Number[_0xd65657(0x257)](_0x41a9e9[_0xd65657(0x21d)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x41a9e9[_0xd65657(0x21d)](0x5,0x7),0x10)+_0xd65657(0x13c):_0x41a9e9[_0xd65657(0x2a0)](_0xd65657(0x3b4))?_0x41a9e9['replace'](/[\d.]+\)$/g,_0xd65657(0x39f)):_0x41a9e9[_0xd65657(0x2a0)]('rgb')?_0x41a9e9[_0xd65657(0x313)]('rgb',_0xd65657(0x3b4))['replace'](')',_0xd65657(0x13c)):_0x41a9e9;}};let L=class extends t[_0x38a3cb(0x3b0)]{constructor(_0x431061,_0xfc0093,_0x32cba7,_0x271360){const _0x30e91c=_0x38a3cb;super(),this['_context']=_0x431061,this[_0x30e91c(0x12e)]=_0xfc0093,this[_0x30e91c(0x1fd)]=_0x32cba7,this[_0x30e91c(0x278)]=_0x271360,b(this,_0x30e91c(0x3e6),new Set()),b(this,_0x30e91c(0x2fe),null),b(this,_0x30e91c(0x157),null),this['_init']();}[_0x38a3cb(0x119)](){const _0x3f2d1a=_0x38a3cb;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe']((0x0,i[_0x3f2d1a(0x1c6)])(this['dispose$']),(0x0,i[_0x3f2d1a(0x220)])(_0x53fadb=>{const _0x3e5ebf=_0x3f2d1a;if(_0x53fadb){let _0x385c08=_0x53fadb[_0x3e5ebf(0x3d0)];return(0x0,r[_0x3e5ebf(0x23a)])(this[_0x3e5ebf(0x1fd)][_0x3e5ebf(0x3ef)](this[_0x3e5ebf(0x171)][_0x3e5ebf(0x2ec)]),this['_themeService']['currentTheme$'])[_0x3e5ebf(0x263)]((0x0,i[_0x3e5ebf(0x2f1)])(([_0x1e305c,_0x319b83])=>{const _0x2b4854=_0x3e5ebf;let _0x58a78e=new Map();return _0x1e305c[_0x2b4854(0x1b2)]((_0x1fb053,_0xb7f64d)=>{const _0x3cd3dc=_0x2b4854;if(_0x1fb053[_0x3cd3dc(0x15e)]===_0x385c08){let _0x4e201a={..._0x1fb053};_0x4e201a[_0x3cd3dc(0x30c)]=this[_0x3cd3dc(0x278)][_0x3cd3dc(0x245)](_0x1fb053[_0x3cd3dc(0x30c)]),_0x58a78e[_0x3cd3dc(0x3b8)](_0xb7f64d,_0x4e201a);}}),{'skeleton':_0x53fadb,'cursors':_0x58a78e};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x45f3a2,cursors:_0x51ced1})=>{const _0x5074c0=_0x3f2d1a;this[_0x5074c0(0x1eb)](),_0x45f3a2&&this[_0x5074c0(0x274)](_0x45f3a2,_0x51ced1);}),this[_0x3f2d1a(0x166)](this[_0x3f2d1a(0x12e)][_0x3f2d1a(0x142)][_0x3f2d1a(0x263)]((0x0,i['takeUntil'])(this[_0x3f2d1a(0x20a)]))[_0x3f2d1a(0x329)](_0xd615ab=>{const _0x5767f3=_0x3f2d1a;var _0x5c7d98;if(_0xd615ab==null)return;(_0x5c7d98=this[_0x5767f3(0x157)])==null||_0x5c7d98['unsubscribe'](),this[_0x5767f3(0x157)]=null;let {skeleton:_0x29e130}=_0xd615ab,{scene:_0x1831c6}=this[_0x5767f3(0x171)];this[_0x5767f3(0x157)]=_0x1831c6[_0x5767f3(0x3a5)][_0x5767f3(0x37f)]((0x0,t[_0x5767f3(0x36b)])(_0x283302=>{const _0x3a84ec=_0x5767f3;var _0x203929,_0x298735;let {offsetX:_0x31f065,offsetY:_0x5137d1}=_0x283302,{x:_0x4f6846,y:_0x723215}=_0x1831c6[_0x3a84ec(0x17e)](p[_0x3a84ec(0x373)]['FromArray']([_0x31f065,_0x5137d1])),{scaleX:_0x441f89,scaleY:_0x1225a6}=_0x1831c6['getAncestorScale'](),_0x1315dd=_0x1831c6[_0x3a84ec(0x31c)](p[_0x3a84ec(0x305)][_0x3a84ec(0x211)]),_0x1fe407=_0x1831c6[_0x3a84ec(0x11a)](p[_0x3a84ec(0x373)][_0x3a84ec(0x184)]([_0x4f6846,_0x723215]),_0x1315dd),_0x213666=_0x29e130[_0x3a84ec(0x397)](_0x31f065,_0x5137d1,_0x441f89,_0x1225a6,_0x1fe407);(((_0x203929=this[_0x3a84ec(0x2fe)])==null?void 0x0:_0x203929[_0x3a84ec(0x34a)])!==_0x213666['column']||((_0x298735=this[_0x3a84ec(0x2fe)])==null?void 0x0:_0x298735[_0x3a84ec(0x1d0)])!==_0x213666[_0x3a84ec(0x1d0)])&&this[_0x3a84ec(0x3e6)][_0x3a84ec(0x1b2)](_0x8eea0f=>{const _0x18fc46=_0x3a84ec;_0x8eea0f[_0x18fc46(0x29a)](_0x213666);});},0x64));})),this['disposeWithMe']((0x0,t['toDisposable'])(()=>{const _0x2dd299=_0x3f2d1a;var _0x235d45;(_0x235d45=this[_0x2dd299(0x157)])==null||_0x235d45[_0x2dd299(0x30b)](),this['_pointerMoveDisposable']=null;}));}[_0x38a3cb(0x274)](_0x11ea3b,_0x4d31ee){const _0x4049b2=_0x38a3cb;let _0x2d846d=this[_0x4049b2(0x12e)][_0x4049b2(0x3bf)]();if(!_0x2d846d)return;let _0x555634=this[_0x4049b2(0x3cb)]();if(!_0x555634)return;this[_0x4049b2(0x3e6)]['forEach'](_0x145318=>{const _0x41925c=_0x4049b2;_0x145318[_0x41925c(0x1f2)]();});let {scene:_0x1f6cf9}=_0x555634,_0x3b0246=he(Array['from'](_0x4d31ee['values']()))['map'](_0x48d21a=>{const _0x4491da=_0x4049b2;let {color:_0x3cd185,range:_0x3ea553,name:_0x5eaf1a,selection:_0x283fc4,sheetID:_0x437b0b}=_0x48d21a,{startColumn:_0x45733a,startRow:_0x59488a,endColumn:_0x398b7f,endRow:_0x1d24ec}=_0x3ea553,_0x21a651=(0x0,_[_0x4491da(0x309)])(_0x59488a,_0x45733a,_0x1f6cf9,_0x2d846d),_0x147fe6=(0x0,_[_0x4491da(0x309)])(_0x1d24ec,_0x398b7f,_0x1f6cf9,_0x2d846d),{columnHeaderHeightAndMarginTop:_0x4d1b31}=_0x2d846d,{startX:_0x177de0,startY:_0x50be90}=_0x21a651,{endX:_0x74b326,endY:_0x3d5bd2}=_0x147fe6,_0x48c55d=_0x74b326-_0x177de0,_0x33ef5f=_0x3d5bd2-_0x50be90;return new I(_0x5eaf1a,{'labelPosition':_0x50be90-_0x4d1b31>=0x14?_0x4491da(0x1ac):_0x4491da(0x13a),'sheetID':_0x437b0b,'range':_0x3ea553,'color':_0x3cd185,'name':_0x5eaf1a,'selection':_0x283fc4,'left':_0x177de0,'top':_0x50be90,'width':_0x48c55d,'height':_0x33ef5f,'evented':!0x1,'zIndex':0x1389});});_0x1f6cf9[_0x4049b2(0x2bc)](_0x3b0246,0x1),this[_0x4049b2(0x3e6)]=new Set(_0x3b0246);}['_removeCollabCursors'](){const _0x3dc29b=_0x38a3cb;var _0x3314dc;(_0x3314dc=this[_0x3dc29b(0x3e6)])==null||_0x3314dc[_0x3dc29b(0x1b2)](_0x418542=>_0x418542[_0x3dc29b(0x15a)]());}[_0x38a3cb(0x3cb)](){const _0xddc9d8=_0x38a3cb;return(0x0,_['getSheetObject'])(this[_0xddc9d8(0x171)][_0xddc9d8(0x3c1)],this[_0xddc9d8(0x171)]);}};L=S([x(0x1,(0x0,t['Inject'])(_['SheetSkeletonManagerService'])),x(0x2,(0x0,t['Inject'])(j)),x(0x3,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x24d)]))],L);function he(_0x5e7a64){const _0x13f1d0=_0x38a3cb;let _0x267f66=new Map();return _0x5e7a64[_0x13f1d0(0x1b2)](_0x51c32a=>{const _0x598b00=_0x13f1d0;if(_0x267f66[_0x598b00(0x3ab)](_0x51c32a[_0x598b00(0x19d)])){let _0x48c519=_0x267f66[_0x598b00(0x255)](_0x51c32a[_0x598b00(0x19d)]);_0x48c519[_0x598b00(0x3c8)]+=',\x20'+_0x51c32a[_0x598b00(0x3c8)];}else _0x267f66[_0x598b00(0x3b8)](_0x51c32a['selection'],_0x51c32a);}),Array['from'](_0x267f66[_0x13f1d0(0x24c)]());}function R(_0x973b56){const _0x23e5fd=_0x38a3cb;return typeof _0x973b56==_0x23e5fd(0x2cd)&&!!_0x973b56;}function ge(_0x4f4d8f){const _0x6bbd5e=_0x38a3cb;return _0x4f4d8f[_0x6bbd5e(0x27f)]===l[_0x6bbd5e(0x26d)]['UPDATE_CURSOR']&&_0x6bbd5e(0x256)in _0x4f4d8f&&R(_0x4f4d8f[_0x6bbd5e(0x256)])&&typeof _0x4f4d8f['data'][_0x6bbd5e(0x3fe)]==_0x6bbd5e(0x28f)&&typeof _0x4f4d8f['data'][_0x6bbd5e(0x19d)]=='string';}function _e(_0xd033bf){const _0x4b1ae8=_0x38a3cb;return _0xd033bf['eventID']===l['CollaborationEvent']['USERS_LEAVE']&&'data'in _0xd033bf&&R(_0xd033bf[_0x4b1ae8(0x256)])&&typeof _0xd033bf[_0x4b1ae8(0x256)][_0x4b1ae8(0x3fe)]==_0x4b1ae8(0x28f);}function _0x4b94(){const _0x45cfc7=['endRow','CollaborationEvent','transform','_pendingEntities','application/json','InsertRowCommandId','isInternalEditorID','_univerInstanceService','_updateCollabCursors','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_isDisposed','shareInterval','_themeService','_labelHorizontalPosition','_blinkIntervalTimer','DOC_RANGE_TYPE','jsx','/run/','_clearTimeoutState','eventID','_messageIds','doc.mutation.rich-text-editing','visibilitychange','lineTo','_initCommandExecutedListener','univer-transition-all\x20univer-duration-200','strokeWidth','permission_rejected','Tools','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Unknown\x20user','startRow','_unitOnClients','2990BeEeIv','_heartbeatTimer','string','RECT','Injector','_cursorInfo$','Warning','enableDocumentCollaborationUI','univer-text-orange-500','evenodd','labelHorizontalPosition','_transformPreviousActiveRange','getAllUnitsForType','onMouseMove','enableFrontendLog','post','ticket','startColumn','IRenderManagerService','startsWith','_toggleOnline','static','backgroundColor','SetDocZoomRatioOperation','_transformService','_status$','fillText','getActiveRange','_disposed','_highlight','fill','serializeRangeWithSheet','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_docSyncEditingCollabCursorService','exhaustSavingTask','_shapes','createInstance','_scheduleSaving','setOffsetY','unhandledrejection','online',':backup:','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','clearInterval','warning','totalBlocks','newValue','addObjects','createElement','_online$','_drawRectRange','_initResize','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','Rectangle','RichTextEditingMutation','_removeClearOtherTimer','setConfig','transformMutation','OTHER_CLIENTS_EDITING','timedOut','fillStyle','tooltipKey','\x20-\x20','registerBeforeClose','object','SnapshotLoadingService','getColor','flatMap','getCollabEntity$','collaboration-client-ui.conflict.clearFailed','clearRemotePresences','getCurrentUnitOfType','1003752HoOAme','_docTransformStateCacheService','subUnitId','IBeforeCloseService','wsSessionTicketUrl','syncEditingCollabCursor','transformMutationsWithChangeset','_saveTaskMap','TEXT_RANGE_LAYER_INDEX','refreshLabel','_eventUnsubscribe','_cursorShapes','CollaborationUIEventId','deepClone','Tooltip','3138fXgOVm','setInterval','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RefRangeService','decorate','online$','ISocketService','isEditing','unitId','_onCursorDelete','handleInsertRangeMoveRight','_syncAdapters','_handleHover','map','_docSkeletonManagerService','RemoveColCommandId','toStringTag','fromEvent','univer-text-gray-400','dark:focus:!univer-ring-offset-gray-800','UniverInstanceType','_reloadPage','unitID','getTypeOfUnitAdded$','every','number','_lastPointer','collaboration-client-ui.collabStatus.syncing','_scheduleHeartbeat','connectInjector','useObservable','prepareTransformSelections','_snapshotLoadingService','SHEET_VIEWPORT_KEY','setItem','adapters$','_initUserListener','getCoordByCell','_assignedColors','unsubscribe','color','CollaborationStatus','symbol','pluginName','UNIVER_SHEET','search','offsetY','replace','/universer-api/frontend/logs','getMergeData','handleIRemoveCol','MessageType','unitType','undoState','_localCacheService','4435YBIKlF','getViewport','OPERATION','DisposableCollection','_handleHeartbeatEvent','roomMembers$','assignAColorForMemberID','onStarting','presenceKind','_initStatusListener','setRemotePresence','_stopBlinking','save','beginPath','subscribe','SheetsSelectionsService','stack','getRangePointData','indicator','allSettled','socket$','message','_collabCursorState$','generateRandomId','OnLineIcon','Failed','\x20at\x20','AWAITING','reload','getAncestorScale','IUniverInstanceService','IDocClipboardService','registerDependencies','hovered','now','defineProperty','m2Prime','_labelPosition','SYNCED','_initEvent','canRenderSelection','ITransformService','event$','collaboration-client-ui.session.connection-failed','2237204doADZj','true','useCallback','column','yellow.400','ICommandService','textRanges','i18nKey','LocaleService','CONFLICT','_refreshCollabCursors','_notificationService','_showConflictCacheClearFailedNotification','add','CommandType','collaboration-client-ui.collabClient.tooltip.reconnect','clearTimeout','getOwnPropertyDescriptor','DependentOn','enableLocalCache','from','_selfUnitIDs','disableLocalCache','_logService','_collaborationUIEventService','collaboration-client-ui.collabStatus.notCollab','Inject','roomMembers','_trackActiveSaveTask','_messageService','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','getLocalCacheKey','_conflictNotification','firstValueFrom','right','_draw','debounce','_monkeyPatchLogService','_bindAdapter','_configService','ONLINE','UniverDocsUIPlugin','_registerDependencies','handleDeleteRangeMoveLeft','Vector2','collaboration-client-ui.collabStatus.fetchMiss','href','then','EffectRefRangId','type','collaboration-client-ui.collaboration.closeRoom','_watchBlockProgress','getFocusedUnit','registerRenderModule','div','_highlightSecond','subscribeEvent','NodePositionConvertToRectRange','SOCKET_FAILED_RETRY','endOffset','_listenToOnlineEvent','getTypeOfUnitDisposed$','pageIndex','show','ISnapshotServerService','_isBlinkVisible','collab-rect-range-','_replaceConflictNotification','columnIndex','_beforeCloseService','transformIMECache','labelPosition','engine','OFFLINE','span','runId','isFinite','reason','DeleteRangeMoveLeftCommandId','JOIN_ROOM_FAILED','getCellIndexByOffset','getSelectionInfo','_getLighterColor','getCurrentSelections','_anchorDot','_instanceService','collaboration-client-ui.collabStatus.offline','stringify','0.2)','timeout','_color','_adapterDisposables','_hovered','getCollabEntities','onPointerMove$','_disabled','getDocumentSkeletonColumnPagePathInfo','_syncPresenceStatusComponents','_blinkTimer','cursorInfo','has','Loading','invokeId','_imageIoService','_getScale','RxDisposable','Subject','_updateMessage','[LogService\x20Error]:\x20','rgba','searchParams','_localStorageService','UniverDocsPlugin','set','ErrorCode','highlightSecond','update','collaboration-client-ui.config','value','_colorAssignService','getCurrentSkeleton','_docSkeleton','unit','permission','_retryingConflictCacheUnitIDs','localPresence$','_docClipboardService','_injector','collaboration-client-ui.','name','DEFAULT_WS_SESSION_TICKET_URL','CollaborationSessionService','_getSheetObject','snapshot-loading-timeout','timer','WebSocketService','7317KdQkJP','sheetId','_disposeEntity','_send','getUnitStatus$','_startEntity','_name','isTransformMutationFailure','all','InsertRangeMoveDownCommandId','_registerRenderDependencies','ranges','UniverCollaborationClientPlugin','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_startBlinking','univer-appearance-none','remoteRevert','black','IImageIoService','setUndoRedoMutationParamsCache','focusedId','purple.300','_blockProgressWatches','_cursors','_getUserId','_initWindowErrorListener','Module','selectedIds','_saveCache','ERROR','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collab-text-range-','getCollabCursors$','focused$','UNIVER_DOC','_commandService','status','mergeOverrideWithDependencies','visible','min','_collaborationController','toDisposable','COLORS','addEventListener','delete','_clearOtherTimers','isTransformMutationsWithChangesetSuccess','memberID','timeoutId','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','_hover','SetSelectionsOperation','collaboration-client-ui.collaboration.offline-data-not-saved','_initPresenceStatusComponents','_anchor','UniverNetworkPlugin','_initDependencies','highlight','getSheetBySheetId','override','_id','10VAVxoR','_colorIndex','_revisionService','_getMergeRange','INetworkConditionService','_updateLocalCursor','_clearRemotePresences','setActiveRange','onPointerLeave$','currentTheme$','segmentPage','BuiltInUIPart','_config','saveOfflineData','_saveTimedOutMessages','findNodePositionByCharIndex','cacheCleared','toRgbString','button','userId','_init','getScrollXYInfoByViewport','body','CollaborationSocketService','_scene','enableOfflineEditing','_refRangeService','activate','_onConflict','redoState','registerComponent','_drawAnchor','RemoveRowCommandId','arc','FETCH_MISS','HTTPService','loadedBlocks','_entityInit$','_getSaveTimeout','rgba(','SnapshotLoadStage','_sheetSkeletonManagerService','_adapter','conflict','univer-flex\x20univer-items-center\x20univer-justify-center','_retryConflictCacheClear','_toggleOffline','init','RegularPolygon','distinctUntilChanged','OTHER_CLIENT_EDITING','status$','MoveRangeCommandId','bottom','moveTo',',\x200.2)','getCurrentTypeOfUnit$','alert','width','transformByState','removeRemotePresence','currentSkeleton$','visibilityState','_initEntityListener','IMessageService','_range','SessionStatus','red.300','ColorKit','useDependency','CollaborationController','_removeSaveTimedOutMessage','statusUIPart','debounceTime','getUnitId','IUnitPresenceUIAdapterRegistry','_session','_ensureSubject','onPointerEnter$','length','setShapeProps','handleInsertRow','_pointerMoveDisposable','entityInit$','push','dispose','blue.400','_unitStatus','_hideTimer','sheetID','storage','DocCollaborationEntity','PENDING','WebBrowserSingleActiveUnitService','getLocalPresence','_transformHistoryAndStateStack','remove','disposeWithMe','toISOString','find','changesetResend$','_memberID','InsertColCommandId','pointer','univer-text-red-500','_initSaveTimedOutMessage','handleInsertRangeMoveDown','getSheetId','_context','requireSession','transformRemoteChangeset','deserializeRangeWithSheet','executeCommand','clearOfflineData','_showText','_backgroundColor','_initialized','_onCursorUpdate','_handleEvent','conflict$','onCommandExecuted','getCoordRelativeToViewport','addObject','unload','keys','collaboration-client-ui.snapshotLoading.refresh','_initUnhandledRejectionListener','FromArray','.content','small','state','univer-inline-flex\x20univer-items-center\x20univer-justify-center','collaboration-client-ui.collaboration.single-unit.warning','clsx','_httpService','primary','_textBubble','result','_removeRemotePresence','119017scoewc','clickable','_normalizeUserId','filter','_getSessionTicket','_uiPartsService','_offsetY','_handleCursorUpdate','remote_revert','_cursor','1223504NzxblC','state$','_activeSaveTaskMap','selection','split','_sendLocalPresence','BehaviorSubject','Shape','measureText','_uploadLog','getCurrentUser','_dispose$','...','_showConflictProcessingNotification','includes','version','getCurrentRevOfUnit','FOOTER','top','getUnit','addClipboardHook','next','DocSkeletonManagerService','_registerPresenceStatusComponent','forEach','replaceSelectionInfoWithoutRefresh','params','removeEventListener','_entities','_scheduleClearOtherTimer','send','_timeoutState$','_createSocketURL','font','_setupBeforeClosingHandler','Error','_startDocCollabCursor','_clearBlockProgressWatch','iterator','tableId','_render','#FFF','with','lineno','takeUntil','_startSheetCollabCursor','timeoutState$','Response','bold\x2013px\x20Arial,\x20sans-serif','InsertRangeMoveRightCommandId','sessionStatus$','[Unhandled\x20Rejection]:\x20','getItem','cursorInfo$','row','@univerjs-pro/collaboration-client-ui','LOCAL_CACHE_INTERVAL','SetTextSelectionsOperation','onRendered','join','_renderManagerService','function','_onRefRangeChange','some','ILogService','_roomMembers$','location','OffLineIcon','pageType','m1Prime','_handleLeaveEvent','fillRule','stream','_document','removeItem','getRenderUnitById','_memberService','resolve','_showSaveTimedOutMessage','call','1.2.0','_removeCollabCursors','focus','restore','preventDefault','RemoteUniscriptService','_transformUndoRedoStack','UniverRenderEnginePlugin','makeDirty','getSkeleton','_drawTextRange','throttle','Plugin','error','isActive','colorClass','getConfig','fromEventSubject','showText','_collabCursorController','_online','univer-text-blue-500','setTimeout','default','getValue','mutations','IUIPartsService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','CLOSE_ROOM','_docStateChangeManagerService','getMember','constructor','dispose$','_getAnchorBounding','merge','endColumn','contains','colno','getMemberID','VIEW_MAIN','_collabSessionService','elapsedMs','GET','collaboration-client-ui.operation.update-remote-unit-presence','_disposeEntitiesForType','collabCursorState$','saveImage','polite','IConfigService','HTTPEventType','onTransformChange$','slice','_docTransformSelectionsService','UniverCollaborationClientUIPlugin','switchMap','closePath','registerCommand','CollaborationUIEventService','_initConflictHandling','stage','_docTransformIMECacheService','canRenderAnchor','getDocRanges','clear','_listenToOfflineEvent','UniverCollaborationPlugin','MemberService','imageSourceType','_docSelectionManagerService','setAlpha','AWAITING_WITH_PENDING','touchDependencies','Rect','triggerDblclick','asObservable','text','UnitStatus','source','_localeService','hide','combineLatest','univer-m-0\x20univer-p-0','createSocket','DesktopCollaborationStatusDisplayController','_syncEditingCollabCursorService','UPDATE_CURSOR','complete','4414074RKSiqj','_presenceStatusRegistrations','pulse','univer-border-none\x20univer-bg-transparent','getColorFromTheme','UserManagerService','code','_adapterRegistry','_cachedData','LOCAL_CACHE_INTERVAL_KEY','catch','values','ThemeService','key','DocIMEInputManagerService','size','Disposable','collaboration-client-ui.conflict.title','parse','INotificationService','get','data','parseInt','kind','registerRefRange','finally','saveTaskMap','startOffset','spin','_initStatusComponent','collaboration-client-ui.collabStatus.conflict','options','transformStateCache','drawWith','pipe','green.600','rgba(255,\x20255,\x20255,\x200.01)','isArray','height','userID','unshift','USERS_LEAVE','NOT_COLLAB'];_0x4b94=function(){return _0x45cfc7;};return _0x4b94();}function ve(_0x276035,_0x2b3d69){const _0xe8a158=_0x38a3cb;let _0xca6b0a;try{_0xca6b0a=JSON[_0xe8a158(0x253)](_0x276035);}catch{return null;}if(!R(_0xca6b0a)||typeof _0xca6b0a[_0xe8a158(0x258)]!=_0xe8a158(0x28f)||typeof _0xca6b0a[_0xe8a158(0x2ec)]!=_0xe8a158(0x28f)||typeof _0xca6b0a[_0xe8a158(0x2d7)]!=_0xe8a158(0x28f))return null;let _0x308813=typeof _0xca6b0a[_0xe8a158(0x318)]==_0xe8a158(0x2fd)?_0xca6b0a[_0xe8a158(0x318)]:_0x2b3d69;if(_0x308813==null)return null;let _0x13d260=R(_0xca6b0a[_0xe8a158(0x16c)])&&typeof _0xca6b0a[_0xe8a158(0x16c)]['x']==_0xe8a158(0x2fd)&&Number[_0xe8a158(0x393)](_0xca6b0a['pointer']['x'])&&typeof _0xca6b0a[_0xe8a158(0x16c)]['y']==_0xe8a158(0x2fd)&&Number['isFinite'](_0xca6b0a[_0xe8a158(0x16c)]['y'])?{'x':_0xca6b0a[_0xe8a158(0x16c)]['x'],'y':_0xca6b0a['pointer']['y']}:null;return{'kind':_0xca6b0a[_0xe8a158(0x258)],'unitType':_0x308813,'unitId':_0xca6b0a[_0xe8a158(0x2ec)],'subUnitId':_0xca6b0a[_0xe8a158(0x2d7)],'selectedIds':Array[_0xe8a158(0x266)](_0xca6b0a['selectedIds'])?_0xca6b0a['selectedIds'][_0xe8a158(0x193)](_0x35a304=>typeof _0x35a304==_0xe8a158(0x28f)):[],'focusedId':typeof _0xca6b0a[_0xe8a158(0x3e3)]==_0xe8a158(0x28f)?_0xca6b0a[_0xe8a158(0x3e3)]:null,'pointer':_0x13d260};}function ye(_0x58a065,_0x475f07,_0x1b08b2){const _0x4a3d15=_0x38a3cb;return{'kind':_0x475f07,'unitType':_0x58a065,'unitId':_0x1b08b2['unitId'],'subUnitId':_0x1b08b2[_0x4a3d15(0x2d7)],'selectedIds':Array[_0x4a3d15(0x35b)](_0x1b08b2[_0x4a3d15(0x3ea)]),'focusedId':_0x1b08b2['focusedId'],'pointer':_0x1b08b2[_0x4a3d15(0x16c)]?{..._0x1b08b2['pointer']}:null};}let z=class extends t['RxDisposable']{constructor(_0x13da31,_0x2aa9d0,_0x53e3ac,_0x5a956e,_0xccc6b4,_0x1e2811){const _0x4126f0=_0x38a3cb;super(),this[_0x4126f0(0x2ec)]=_0x13da31,this['_session']=_0x2aa9d0,this[_0x4126f0(0x12f)]=_0x53e3ac,this[_0x4126f0(0x3be)]=_0x5a956e,this['_memberService']=_0xccc6b4,this[_0x4126f0(0x3f2)]=_0x1e2811,b(this,_0x4126f0(0x1fe),!0x1),b(this,_0x4126f0(0x179),!0x1);}get['unitType'](){const _0x226571=_0x38a3cb;return this[_0x226571(0x12f)]['unitType'];}['dispose'](){const _0x178c69=_0x38a3cb;this[_0x178c69(0x10b)](),super[_0x178c69(0x15a)]();}['init'](){const _0x1dc03e=_0x38a3cb;this['_initialized']||(this[_0x1dc03e(0x179)]=!0x0,this[_0x1dc03e(0x151)][_0x1dc03e(0x1cc)][_0x1dc03e(0x263)]((0x0,r['takeUntil'])(this['dispose$']))[_0x1dc03e(0x329)](_0x42e99c=>{const _0x43b507=_0x1dc03e;if(_0x42e99c===e['SessionStatus'][_0x43b507(0x36f)]){this[_0x43b507(0x1fe)]=!0x0;let _0x1bcd93=this['_adapter'][_0x43b507(0x163)](this[_0x43b507(0x2ec)]);_0x1bcd93&&this[_0x43b507(0x19f)](_0x1bcd93);}else this[_0x43b507(0x1fe)]=!0x1,this[_0x43b507(0x10b)]();}),this[_0x1dc03e(0x151)][_0x1dc03e(0x345)][_0x1dc03e(0x263)]((0x0,r[_0x1dc03e(0x1c6)])(this[_0x1dc03e(0x20a)]))['subscribe'](_0xdbce8e=>{const _0x4a8b9a=_0x1dc03e;ge(_0xdbce8e)?this[_0x4a8b9a(0x197)](_0xdbce8e):_e(_0xdbce8e)&&this['_removeRemotePresence'](_0xdbce8e[_0x4a8b9a(0x256)][_0x4a8b9a(0x3fe)]);}),this['_adapter'][_0x1dc03e(0x3c4)][_0x1dc03e(0x263)]((0x0,r[_0x1dc03e(0x193)])(_0x462de8=>this[_0x1dc03e(0x1fe)]&&_0x462de8[_0x1dc03e(0x2ec)]===this['unitId']),(0x0,r[_0x1dc03e(0x1f5)])(_0x4affa6=>(0x0,r[_0x1dc03e(0x3cd)])(_0x4affa6[_0x1dc03e(0x277)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r['takeUntil'])(this[_0x1dc03e(0x20a)]))[_0x1dc03e(0x329)](_0x52677b=>this[_0x1dc03e(0x19f)](_0x52677b)));}['_sendLocalPresence'](_0xf725f7){const _0x7b8884=_0x38a3cb;let _0x5f4c7c=this[_0x7b8884(0x151)]['getMemberID']();if(!_0x5f4c7c||!this[_0x7b8884(0x1fe)])return;let _0xdbbee={'eventID':l[_0x7b8884(0x26d)][_0x7b8884(0x23f)],'data':{'unitID':this[_0x7b8884(0x2ec)],'memberID':_0x5f4c7c,'selection':JSON[_0x7b8884(0x39e)](ye(this[_0x7b8884(0x318)],this[_0x7b8884(0x12f)][_0x7b8884(0x323)],_0xf725f7))}};this[_0x7b8884(0x151)][_0x7b8884(0x1b8)](_0xdbbee,this[_0x7b8884(0x2ec)])[_0x7b8884(0x24b)](()=>void 0x0);}['_handleCursorUpdate'](_0x2baf37){const _0x1d3638=_0x38a3cb;let {memberID:_0x3fd54b,selection:_0x1a5ed9}=_0x2baf37[_0x1d3638(0x256)];if(_0x3fd54b===this[_0x1d3638(0x151)]['getMemberID']())return;let _0x3df284=ve(_0x1a5ed9,this['unitType']);if(!_0x3df284||_0x3df284[_0x1d3638(0x258)]!==this[_0x1d3638(0x12f)]['presenceKind']||_0x3df284[_0x1d3638(0x318)]!==this[_0x1d3638(0x318)]||_0x3df284[_0x1d3638(0x2ec)]!==this[_0x1d3638(0x2ec)])return;let _0x1368f5=this[_0x1d3638(0x1e6)][_0x1d3638(0x208)](this[_0x1d3638(0x2ec)],_0x3fd54b),_0x106bb0={'unitId':_0x3df284['unitId'],'subUnitId':_0x3df284[_0x1d3638(0x2d7)],'selectedIds':_0x3df284[_0x1d3638(0x3ea)],'focusedId':_0x3df284[_0x1d3638(0x3e3)],'pointer':_0x3df284[_0x1d3638(0x16c)],'memberId':_0x3fd54b,'color':this[_0x1d3638(0x3be)]['assignAColorForMemberID'](_0x3fd54b),'name':(_0x1368f5==null?void 0x0:_0x1368f5[_0x1d3638(0x3c8)])??_0x3fd54b};this[_0x1d3638(0x3f2)][_0x1d3638(0x175)](T['id'],{'unitType':this[_0x1d3638(0x318)],'update':{'type':_0x1d3638(0x3b8),'state':_0x106bb0}})[_0x1d3638(0x24b)](()=>void 0x0);}[_0x38a3cb(0x18f)](_0x5a29a0){const _0x91c657=_0x38a3cb;this[_0x91c657(0x3f2)][_0x91c657(0x175)](T['id'],{'unitType':this['unitType'],'update':{'type':'remove','unitId':this[_0x91c657(0x2ec)],'memberId':_0x5a29a0}})[_0x91c657(0x24b)](()=>void 0x0);}['_clearRemotePresences'](){const _0x3c4bd5=_0x38a3cb;this['_commandService'][_0x3c4bd5(0x175)](T['id'],{'unitType':this['unitType'],'update':{'type':_0x3c4bd5(0x229),'unitId':this[_0x3c4bd5(0x2ec)]}})[_0x3c4bd5(0x24b)](()=>void 0x0);}};z=S([x(0x3,(0x0,t[_0x38a3cb(0x361)])(D)),x(0x4,(0x0,t[_0x38a3cb(0x361)])(e[_0x38a3cb(0x22c)])),x(0x5,(0x0,t['Inject'])(t['ICommandService']))],z);let B=class extends t['RxDisposable']{constructor(_0x15f717,_0x2f1a81,_0xdaec1e,_0x4309b3){const _0x3cccc4=_0x38a3cb;super(),this['_univerInstanceService']=_0x15f717,this[_0x3cccc4(0x3c6)]=_0x2f1a81,this['_collabSessionService']=_0xdaec1e,this['_adapterRegistry']=_0x4309b3,b(this,_0x3cccc4(0x276),!0x1),b(this,_0x3cccc4(0x1b6),new Map()),b(this,_0x3cccc4(0x26f),new Map()),b(this,_0x3cccc4(0x3a2),new Map()),this[_0x3cccc4(0x119)]();}[_0x38a3cb(0x15a)](){const _0xe65b0a=_0x38a3cb;this['_isDisposed']=!0x0,this[_0xe65b0a(0x3a2)][_0xe65b0a(0x1b2)](_0x24b3df=>_0x24b3df[_0xe65b0a(0x15a)]()),this['_adapterDisposables'][_0xe65b0a(0x229)](),this['_entities']['forEach'](_0x53b8ad=>_0x53b8ad[_0xe65b0a(0x15a)]()),this[_0xe65b0a(0x1b6)][_0xe65b0a(0x229)](),this['_pendingEntities'][_0xe65b0a(0x229)](),super[_0xe65b0a(0x15a)]();}[_0x38a3cb(0x119)](){const _0x528976=_0x38a3cb;this[_0x528976(0x248)][_0x528976(0x307)][_0x528976(0x263)]((0x0,r[_0x528976(0x1c6)])(this[_0x528976(0x20a)]))[_0x528976(0x329)](_0x151a66=>this[_0x528976(0x2ef)](_0x151a66));}[_0x38a3cb(0x2ef)](_0x5c384f){const _0x360377=_0x38a3cb;let _0x421f6d=new Set(_0x5c384f[_0x360377(0x2f1)](_0x142252=>_0x142252[_0x360377(0x318)]));this[_0x360377(0x3a2)]['forEach']((_0x16389d,_0x5f6ac)=>{const _0x59f5e3=_0x360377;_0x421f6d[_0x59f5e3(0x3ab)](_0x5f6ac)||(_0x16389d[_0x59f5e3(0x15a)](),this[_0x59f5e3(0x3a2)]['delete'](_0x5f6ac),this[_0x59f5e3(0x216)](_0x5f6ac));}),_0x5c384f[_0x360377(0x1b2)](_0x19be35=>{const _0x57ce14=_0x360377;this[_0x57ce14(0x3a2)][_0x57ce14(0x3ab)](_0x19be35[_0x57ce14(0x318)])||this[_0x57ce14(0x36d)](_0x19be35);});}['_bindAdapter'](_0x15a154){const _0x5acdd8=_0x38a3cb;let _0x37a833=new t[(_0x5acdd8(0x31e))]();this['_adapterDisposables']['set'](_0x15a154[_0x5acdd8(0x318)],_0x37a833),_0x37a833[_0x5acdd8(0x354)](_0x15a154[_0x5acdd8(0x120)]()),this[_0x5acdd8(0x273)][_0x5acdd8(0x299)](_0x15a154[_0x5acdd8(0x318)])[_0x5acdd8(0x1b2)](_0x364980=>this[_0x5acdd8(0x3d4)](_0x364980['getUnitId'](),_0x15a154)[_0x5acdd8(0x24b)](()=>void 0x0));let _0x2dd888=this['_univerInstanceService'][_0x5acdd8(0x2fb)](_0x15a154[_0x5acdd8(0x318)])[_0x5acdd8(0x329)](({unit:_0x5e2784})=>this[_0x5acdd8(0x3d4)](_0x5e2784[_0x5acdd8(0x14f)](),_0x15a154)['catch'](()=>void 0x0));_0x37a833[_0x5acdd8(0x354)]((0x0,t[_0x5acdd8(0x3f8)])(()=>_0x2dd888[_0x5acdd8(0x30b)]()));let _0x2da49d=this[_0x5acdd8(0x273)]['getTypeOfUnitDisposed$'](_0x15a154[_0x5acdd8(0x318)])[_0x5acdd8(0x329)](_0x5a6aa2=>this[_0x5acdd8(0x3d1)](_0x5a6aa2[_0x5acdd8(0x14f)]()));_0x37a833['add']((0x0,t['toDisposable'])(()=>_0x2da49d[_0x5acdd8(0x30b)]()));}async['_startEntity'](_0x3dc44f,_0x75dc53){const _0x26aba4=_0x38a3cb;if(this[_0x26aba4(0x1b6)][_0x26aba4(0x3ab)](_0x3dc44f)||this['_pendingEntities'][_0x26aba4(0x3ab)](_0x3dc44f))return;let _0x41a123={};this[_0x26aba4(0x26f)][_0x26aba4(0x3b8)](_0x3dc44f,_0x41a123);let _0x167174=await this[_0x26aba4(0x212)][_0x26aba4(0x172)](_0x3dc44f)['catch'](_0x1ba7d9=>{const _0x493da9=_0x26aba4;throw this['_pendingEntities'][_0x493da9(0x255)](_0x3dc44f)===_0x41a123&&this[_0x493da9(0x26f)]['delete'](_0x3dc44f),_0x1ba7d9;});if(this[_0x26aba4(0x276)]||this[_0x26aba4(0x26f)][_0x26aba4(0x255)](_0x3dc44f)!==_0x41a123||this[_0x26aba4(0x248)]['get'](_0x75dc53[_0x26aba4(0x318)])!==_0x75dc53){this[_0x26aba4(0x26f)][_0x26aba4(0x255)](_0x3dc44f)===_0x41a123&&this[_0x26aba4(0x26f)]['delete'](_0x3dc44f);return;}let _0x4d0b6b=this[_0x26aba4(0x3c6)][_0x26aba4(0x2b1)](z,_0x3dc44f,_0x167174,_0x75dc53);_0x4d0b6b['init'](),this[_0x26aba4(0x26f)][_0x26aba4(0x3fb)](_0x3dc44f),this['_entities'][_0x26aba4(0x3b8)](_0x3dc44f,_0x4d0b6b);}[_0x38a3cb(0x3d1)](_0x397139){const _0x5c133c=_0x38a3cb;this[_0x5c133c(0x26f)][_0x5c133c(0x3fb)](_0x397139);let _0x58eed9=this['_entities'][_0x5c133c(0x255)](_0x397139);_0x58eed9&&(_0x58eed9[_0x5c133c(0x15a)](),this['_entities']['delete'](_0x397139));}['_disposeEntitiesForType'](_0x511a99){const _0x3dd05f=_0x38a3cb;this['_univerInstanceService']['getAllUnitsForType'](_0x511a99)[_0x3dd05f(0x1b2)](_0x46a105=>this[_0x3dd05f(0x26f)][_0x3dd05f(0x3fb)](_0x46a105[_0x3dd05f(0x14f)]())),Array[_0x3dd05f(0x35b)](this[_0x3dd05f(0x1b6)]['entries']())[_0x3dd05f(0x1b2)](([_0x2375ee,_0x4c8248])=>{const _0x56173d=_0x3dd05f;_0x4c8248[_0x56173d(0x318)]===_0x511a99&&this['_disposeEntity'](_0x2375ee);});}};B=S([x(0x0,t[_0x38a3cb(0x339)]),x(0x1,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x2,(0x0,t[_0x38a3cb(0x361)])(e['CollaborationSessionService'])),x(0x3,(0x0,t['Inject'])(n[_0x38a3cb(0x150)]))],B);const be={'toast':_0x38a3cb(0x2c1),'actionButton':_0x38a3cb(0x400)};let V=class extends t['Disposable']{constructor(_0x5cf72f,_0x57a78e,_0x1bc15f,_0x39e7bb,_0x6add05,_0x14edf6,_0x4d7f10,_0x2ca268){const _0x274aa3=_0x38a3cb;var _0xe4bae7;super(),this[_0x274aa3(0x38c)]=_0x5cf72f,this[_0x274aa3(0x31a)]=_0x57a78e,this[_0x274aa3(0x35f)]=_0x1bc15f,this[_0x274aa3(0x364)]=_0x39e7bb,this['_notificationService']=_0x6add05,this[_0x274aa3(0x238)]=_0x14edf6,this[_0x274aa3(0x3f7)]=_0x4d7f10,this['_configService']=_0x2ca268,b(this,_0x274aa3(0x367),null),b(this,_0x274aa3(0x3c3),new Set()),b(this,_0x274aa3(0x113),new Map()),this[_0x274aa3(0x1bc)](),this[_0x274aa3(0x342)](),this[_0x274aa3(0x16e)](),((_0xe4bae7=this[_0x274aa3(0x36e)][_0x274aa3(0x1fa)](_0x274aa3(0x3bc)))==null?void 0x0:_0xe4bae7['enableDefaultConflictUI'])!==!0x1&&this[_0x274aa3(0x224)]();}['dispose'](){const _0x28eef3=_0x38a3cb;var _0x127bf1;(_0x127bf1=this[_0x28eef3(0x367)])==null||_0x127bf1[_0x28eef3(0x15a)](),this['_conflictNotification']=null,this['_saveTimedOutMessages']['forEach'](_0x164681=>_0x164681[_0x28eef3(0x15a)]()),this[_0x28eef3(0x113)][_0x28eef3(0x229)](),super[_0x28eef3(0x15a)]();}[_0x38a3cb(0x16e)](){const _0x28b3de=_0x38a3cb;let _0x95927f=_0xfbeb7b=>{const _0x1a9484=_0x121f;let _0x33a61f=new t[(_0x1a9484(0x31e))]();_0x33a61f[_0x1a9484(0x354)]((0x0,t[_0x1a9484(0x3f8)])(_0xfbeb7b[_0x1a9484(0x169)][_0x1a9484(0x329)]({'next':_0x46d1fd=>{const _0x2804f9=_0x1a9484;_0x46d1fd[_0x2804f9(0x213)]>=0x4e20&&this['_showSaveTimedOutMessage'](_0xfbeb7b[_0x2804f9(0x2fa)]);},'complete':()=>{const _0x4d65fb=_0x1a9484;this[_0x4d65fb(0x14c)](_0xfbeb7b[_0x4d65fb(0x2fa)]),_0x33a61f[_0x4d65fb(0x15a)]();}}))),_0x33a61f[_0x1a9484(0x354)]((0x0,t[_0x1a9484(0x3f8)])(_0xfbeb7b['status$'][_0x1a9484(0x329)](_0x50c6d5=>{const _0x3e4227=_0x1a9484;_0x50c6d5!==e['CollaborationStatus'][_0x3e4227(0x336)]&&_0x50c6d5!==e[_0x3e4227(0x30d)][_0x3e4227(0x230)]&&this[_0x3e4227(0x14c)](_0xfbeb7b[_0x3e4227(0x2fa)]);}))),this['disposeWithMe'](_0x33a61f);};this[_0x28b3de(0x3f7)][_0x28b3de(0x3a4)]()['forEach'](_0x95927f),this[_0x28b3de(0x166)]((0x0,t[_0x28b3de(0x3f8)])(this[_0x28b3de(0x3f7)][_0x28b3de(0x158)][_0x28b3de(0x329)](_0x95927f)));}[_0x38a3cb(0x1e8)](_0x53f299){const _0x3f0cb3=_0x38a3cb;this[_0x3f0cb3(0x113)][_0x3f0cb3(0x3ab)](_0x53f299)||this['_saveTimedOutMessages'][_0x3f0cb3(0x3b8)](_0x53f299,this[_0x3f0cb3(0x352)][_0x3f0cb3(0x386)]({'title':this[_0x3f0cb3(0x238)]['t']('collaboration-client-ui.session.collaboration-timeout'),'type':_0x3f0cb3(0x2b9),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}[_0x38a3cb(0x14c)](_0x370d42){const _0x5ee67c=_0x38a3cb;var _0x2f53d7;(_0x2f53d7=this[_0x5ee67c(0x113)]['get'](_0x370d42))==null||_0x2f53d7['dispose'](),this['_saveTimedOutMessages'][_0x5ee67c(0x3fb)](_0x370d42);}[_0x38a3cb(0x1bc)](){const _0x53b25f=_0x38a3cb;this[_0x53b25f(0x166)](this['_beforeCloseService'][_0x53b25f(0x2cc)](()=>{const _0x238f77=_0x53b25f;if(this[_0x238f77(0x31a)][_0x238f77(0x25b)][_0x238f77(0x250)])return this['_localeService']['t'](_0x238f77(0x403));}));}[_0x38a3cb(0x224)](){const _0x7c784b=_0x38a3cb;let _0x4ad069=_0xab9a9=>{const _0x5113a2=_0x121f;this[_0x5113a2(0x166)]((0x0,t[_0x5113a2(0x3f8)])(_0xab9a9[_0x5113a2(0x17c)][_0x5113a2(0x329)](_0x262725=>this[_0x5113a2(0x121)](_0x262725))));};this['_collaborationController'][_0x7c784b(0x3a4)]()[_0x7c784b(0x1b2)](_0x4ad069),this[_0x7c784b(0x166)]((0x0,t[_0x7c784b(0x3f8)])(this[_0x7c784b(0x3f7)]['entityInit$'][_0x7c784b(0x329)](_0x4ad069)));}[_0x38a3cb(0x121)](_0x6a932f){const _0x5216ef=_0x38a3cb;if(!_0x6a932f[_0x5216ef(0x115)])return;let _0x59fec4=_0x6a932f[_0x5216ef(0x394)]===_0x5216ef(0x198)?_0x5216ef(0x3df):_0x6a932f[_0x5216ef(0x394)]===_0x5216ef(0x287)?_0x5216ef(0x3c2):_0x5216ef(0x130);this[_0x5216ef(0x38a)]({'title':this['_localeService']['t'](_0x5216ef(0x3c7)+_0x59fec4+'.title'),'content':this['_localeService']['t'](_0x5216ef(0x3c7)+_0x59fec4+_0x5216ef(0x185)),'type':_0x6a932f[_0x5216ef(0x394)]===_0x5216ef(0x198)?_0x5216ef(0x2b9):_0x5216ef(0x1f7),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':be,'action':{'label':this[_0x5216ef(0x238)]['t'](_0x5216ef(0x182)),'onClick':_0x59edab=>{const _0x52e2e0=_0x5216ef;_0x59edab[_0x52e2e0(0x1ee)](),this['_reloadPage']();}}});}[_0x38a3cb(0x2f9)](){const _0x3756a1=_0x38a3cb;window['location'][_0x3756a1(0x337)]();}['_initEvent'](){const _0x43f726=_0x38a3cb;this[_0x43f726(0x166)](this['_collaborationUIEventService'][_0x43f726(0x345)][_0x43f726(0x329)](_0xcb9039=>{const _0xa3e2b0=_0x43f726;_0xcb9039['id']===e[_0xa3e2b0(0x2e1)][_0xa3e2b0(0x137)]&&this[_0xa3e2b0(0x364)][_0xa3e2b0(0x386)]({'type':a[_0xa3e2b0(0x317)][_0xa3e2b0(0x293)],'content':this['_localeService']['t'](_0xa3e2b0(0x189))}),_0xcb9039['id']===e['CollaborationUIEventId'][_0xa3e2b0(0x206)]&&this[_0xa3e2b0(0x364)][_0xa3e2b0(0x386)]({'type':a['MessageType'][_0xa3e2b0(0x293)],'content':this[_0xa3e2b0(0x238)]['t'](_0xa3e2b0(0x379))}),_0xcb9039['id']===e[_0xa3e2b0(0x2e1)]['CONFLICT_PROCESSING']&&this[_0xa3e2b0(0x1a7)](),_0xcb9039['id']===e[_0xa3e2b0(0x2e1)]['CONFLICT_CACHE_CLEAR_FAILED']&&_0xcb9039[_0xa3e2b0(0x2fa)]&&this[_0xa3e2b0(0x353)](_0xcb9039['unitID'],_0xcb9039['userId']??''),_0xcb9039['id']===e[_0xa3e2b0(0x2e1)][_0xa3e2b0(0x396)]&&this[_0xa3e2b0(0x364)]['show']({'type':a[_0xa3e2b0(0x317)][_0xa3e2b0(0x293)],'content':this['_localeService']['t'](_0xcb9039[_0xa3e2b0(0x256)]||'')}),_0xcb9039['id']===e[_0xa3e2b0(0x2e1)][_0xa3e2b0(0x381)]&&this[_0xa3e2b0(0x364)][_0xa3e2b0(0x386)]({'type':a[_0xa3e2b0(0x317)][_0xa3e2b0(0x293)],'content':this[_0xa3e2b0(0x238)]['t']('collaboration-client-ui.session.will-retry')}),_0xcb9039['id']===e['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0xa3e2b0(0x364)][_0xa3e2b0(0x386)]({'type':a[_0xa3e2b0(0x317)][_0xa3e2b0(0x1bd)],'content':this[_0xa3e2b0(0x238)]['t'](_0xa3e2b0(0x346))});}));}[_0x38a3cb(0x1a7)](){const _0x279d26=_0x38a3cb;this['_replaceConflictNotification']({'title':this[_0x279d26(0x238)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x279d26(0x238)]['t']('collaboration-client-ui.conflict.processing'),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x38a3cb(0x353)](_0x473e27,_0x10f540){const _0x1ebd28=_0x38a3cb;this['_replaceConflictNotification']({'title':this['_localeService']['t'](_0x1ebd28(0x252)),'content':this[_0x1ebd28(0x238)]['t'](_0x1ebd28(0x2d2)),'type':_0x1ebd28(0x1f7),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':be,'action':{'label':this['_localeService']['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x5e535f=>{const _0x4a71da=_0x1ebd28;_0x5e535f[_0x4a71da(0x1ee)](),this[_0x4a71da(0x132)](_0x473e27,_0x10f540);}}});}[_0x38a3cb(0x132)](_0xb3f68e,_0x41c68e){const _0x411e94=_0x38a3cb;let _0x23c232=_0xb3f68e+':'+(_0x41c68e??'');this['_retryingConflictCacheUnitIDs'][_0x411e94(0x3ab)](_0x23c232)||(this[_0x411e94(0x3c3)][_0x411e94(0x354)](_0x23c232),this[_0x411e94(0x1a7)](),this[_0x411e94(0x31a)]['clearOfflineData'](_0xb3f68e,_0x41c68e)[_0x411e94(0x376)](()=>this[_0x411e94(0x2f9)]())[_0x411e94(0x24b)](()=>this[_0x411e94(0x353)](_0xb3f68e,_0x41c68e))[_0x411e94(0x25a)](()=>this[_0x411e94(0x3c3)][_0x411e94(0x3fb)](_0x23c232)));}['_replaceConflictNotification'](_0x338f1e){const _0x570a16=_0x38a3cb;var _0x4b2838;(_0x4b2838=this[_0x570a16(0x367)])==null||_0x4b2838[_0x570a16(0x15a)](),this['_conflictNotification']=this['_notificationService'][_0x570a16(0x386)](_0x338f1e);}};V=S([x(0x0,n[_0x38a3cb(0x2d8)]),x(0x1,e['ILocalCacheService']),x(0x2,(0x0,t['Inject'])(e[_0x38a3cb(0x223)])),x(0x3,n[_0x38a3cb(0x145)]),x(0x4,n[_0x38a3cb(0x254)]),x(0x5,(0x0,t['Inject'])(t['LocaleService'])),x(0x6,(0x0,t['Inject'])(e[_0x38a3cb(0x14b)])),x(0x7,t[_0x38a3cb(0x21a)])],V);let H=class{constructor(_0x907c7f,_0x18cd7f){const _0x2a5431=_0x38a3cb;this['_transformService']=_0x907c7f,this[_0x2a5431(0x1d6)]=_0x18cd7f;}['transformIMECache'](_0xee12ae){const _0x3eae32=_0x38a3cb;this[_0x3eae32(0x1f0)](_0xee12ae),this[_0x3eae32(0x298)](_0xee12ae);}['transformRemoteChangeset'](_0x17c248){const _0x3d5452=_0x38a3cb;let {unitID:_0x22a1eb}=_0x17c248,{redoCache:_0x553acc}=this[_0x3d5452(0x1d6)][_0x3d5452(0x1e5)](_0x22a1eb)['with'](f[_0x3d5452(0x24f)])['getUndoRedoMutationParamsCache']();if(_0x553acc[_0x3d5452(0x154)]===0x0)return _0x17c248;let _0x28db22=t[_0x3d5452(0x288)]['deepClone'](_0x17c248[_0x3d5452(0x203)][0x0]);for(let _0x5e5923=0x0;_0x5e5923<_0x553acc[_0x3d5452(0x154)];_0x5e5923++){let _0x18f5c7={'id':_0x3d5452(0x281),'params':{..._0x553acc[_0x5e5923]}},_0x138ff9=this['_transformService'][_0x3d5452(0x2c6)](_0x28db22,_0x18f5c7,!0x1);if((0x0,l[_0x3d5452(0x3d6)])(_0x138ff9))throw _0x138ff9[_0x3d5452(0x1f7)];_0x28db22=_0x138ff9['m1Prime'];}return{...t[_0x3d5452(0x288)][_0x3d5452(0x2e2)](_0x17c248),'mutations':[_0x28db22]};}[_0x38a3cb(0x1f0)](_0x2d0c75){const _0x5283de=_0x38a3cb;let {unitID:_0x10eb2a}=_0x2d0c75,_0x4db222=this[_0x5283de(0x1d6)][_0x5283de(0x1e5)](_0x10eb2a)[_0x5283de(0x1c4)](f[_0x5283de(0x24f)]),{undoCache:_0x506fa2,redoCache:_0x470876}=_0x4db222['getUndoRedoMutationParamsCache']();if(_0x506fa2[_0x5283de(0x154)]===0x0||_0x470876[_0x5283de(0x154)]===0x0)return;let _0x244bd9=[],_0x5bef49=[],_0x387c89=t[_0x5283de(0x288)][_0x5283de(0x2e2)](_0x2d0c75[_0x5283de(0x203)][0x0]),_0x4e02c9=t[_0x5283de(0x288)][_0x5283de(0x2e2)](_0x2d0c75[_0x5283de(0x203)][0x0]);for(let _0x572106=_0x506fa2[_0x5283de(0x154)]-0x1;_0x572106>=0x0;_0x572106--){let _0x43993c={'id':_0x5283de(0x281),'params':{..._0x506fa2[_0x572106]}},_0x2ac699={'id':_0x5283de(0x281),'params':{..._0x470876[_0x572106]}},_0x1ddc6a=this['_transformService'][_0x5283de(0x2c6)](_0x387c89,_0x43993c,!0x1),_0x15a035=this[_0x5283de(0x2a5)][_0x5283de(0x2c6)](_0x4e02c9,_0x2ac699,!0x1);if((0x0,l[_0x5283de(0x3d6)])(_0x1ddc6a))throw _0x1ddc6a[_0x5283de(0x1f7)];if((0x0,l['isTransformMutationFailure'])(_0x15a035))throw _0x15a035[_0x5283de(0x1f7)];_0x244bd9[_0x5283de(0x269)](_0x1ddc6a[_0x5283de(0x33f)][_0x5283de(0x1b4)]),_0x5bef49[_0x5283de(0x269)](_0x15a035[_0x5283de(0x33f)]['params']),_0x387c89=_0x1ddc6a[_0x5283de(0x1df)],_0x4e02c9=_0x15a035['m1Prime'];}_0x4db222[_0x5283de(0x3e2)]({'undoCache':_0x244bd9,'redoCache':_0x5bef49});}['_transformPreviousActiveRange'](_0xb26e6e){const _0x43d502=_0x38a3cb;let {unitID:_0x5b3114}=_0xb26e6e,_0x26e9c1=this[_0x43d502(0x1d6)]['getRenderUnitById'](_0x5b3114)[_0x43d502(0x1c4)](f[_0x43d502(0x24f)]),_0x4f4e79=_0x26e9c1[_0x43d502(0x2a8)]();if(_0x4f4e79==null)return;let _0x589a30=[{'id':_0x43d502(0x281),'params':{'unitId':_0xb26e6e[_0x43d502(0x2fa)],'actions':null,'textRanges':[_0x4f4e79]}}],_0x2bd9c9=this[_0x43d502(0x2a5)][_0x43d502(0x2db)](_0xb26e6e,_0x589a30);if(!(0x0,l[_0x43d502(0x3fd)])(_0x2bd9c9))throw _0x2bd9c9[_0x43d502(0x1f7)];let _0x4c41af=_0x2bd9c9['m2Prime'][0x0][_0x43d502(0x1b4)][_0x43d502(0x34d)];Array[_0x43d502(0x266)](_0x4c41af)&&_0x4c41af[_0x43d502(0x154)]&&_0x26e9c1[_0x43d502(0x10c)](_0x4c41af[0x0]);}};H=S([x(0x0,l[_0x38a3cb(0x344)]),x(0x1,p['IRenderManagerService'])],H);let U=class{constructor(_0x219bfe,_0x2e574d,_0x399293){const _0xe487e6=_0x38a3cb;this[_0xe487e6(0x3c6)]=_0x219bfe,this[_0xe487e6(0x2a5)]=_0x2e574d,this[_0xe487e6(0x207)]=_0x399293;}[_0x38a3cb(0x261)](_0xa77118){const _0x4ccd8f=_0x38a3cb;this[_0x4ccd8f(0x164)](_0xa77118);}[_0x38a3cb(0x173)](_0x450093){const _0x8a8cd7=_0x38a3cb;let {unitID:_0x4c860a}=_0x450093,{collaboration:_0x1def66}=this['_docStateChangeManagerService']['getStateCache'](_0x4c860a);if(_0x1def66['length']===0x0)return _0x450093;let _0xadbb90=t[_0x8a8cd7(0x288)][_0x8a8cd7(0x2e2)](_0x450093[_0x8a8cd7(0x203)][0x0]);for(let _0x24a4b5=0x0;_0x24a4b5<_0x1def66[_0x8a8cd7(0x154)];_0x24a4b5++){let _0x3f2eb9={'id':_0x8a8cd7(0x281),'params':{'unitId':_0x1def66[_0x24a4b5][_0x8a8cd7(0x2ec)],..._0x1def66[_0x24a4b5]['redoState']}},_0x243787=this['_transformService'][_0x8a8cd7(0x2c6)](_0xadbb90,_0x3f2eb9,!0x1);if((0x0,l[_0x8a8cd7(0x3d6)])(_0x243787))throw _0x243787[_0x8a8cd7(0x1f7)];_0xadbb90=_0x243787['m1Prime'];}return{...t[_0x8a8cd7(0x288)][_0x8a8cd7(0x2e2)](_0x450093),'mutations':[_0xadbb90]};}[_0x38a3cb(0x164)](_0x3aa416){const _0x407258=_0x38a3cb;let {unitID:_0x45fdef}=_0x3aa416,{history:_0x38a6c1,collaboration:_0x1d40c2}=this[_0x407258(0x207)]['getStateCache'](_0x45fdef);if(_0x38a6c1[_0x407258(0x154)]===0x0&&_0x1d40c2[_0x407258(0x154)]===0x0)return;let _0x53cdc7=[],_0x3e54dc=[],_0x42d053=t[_0x407258(0x288)][_0x407258(0x2e2)](_0x3aa416['mutations'][0x0]),_0x48f7b1=t[_0x407258(0x288)][_0x407258(0x2e2)](_0x3aa416[_0x407258(0x203)][0x0]);for(let _0x45a7a0=_0x38a6c1[_0x407258(0x154)]-0x1;_0x45a7a0>=0x0;_0x45a7a0--){let _0x39ca41={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38a6c1[_0x45a7a0][_0x407258(0x2ec)],..._0x38a6c1[_0x45a7a0][_0x407258(0x319)]}},_0x1d35f1={'id':_0x407258(0x281),'params':{'unitId':_0x38a6c1[_0x45a7a0][_0x407258(0x2ec)],..._0x38a6c1[_0x45a7a0][_0x407258(0x122)]}},_0xc79aaa=this[_0x407258(0x2a5)][_0x407258(0x2c6)](_0x42d053,_0x39ca41,!0x1),_0x49cbb4=this[_0x407258(0x2a5)]['transformMutation'](_0x48f7b1,_0x1d35f1,!0x1);if((0x0,l['isTransformMutationFailure'])(_0xc79aaa))throw _0xc79aaa[_0x407258(0x1f7)];if((0x0,l[_0x407258(0x3d6)])(_0x49cbb4))throw _0x49cbb4[_0x407258(0x1f7)];_0x53cdc7[_0x407258(0x269)]({..._0x38a6c1[_0x45a7a0],'undoState':_0xc79aaa[_0x407258(0x33f)]['params'],'redoState':_0x49cbb4[_0x407258(0x33f)][_0x407258(0x1b4)]}),_0x42d053=_0xc79aaa[_0x407258(0x1df)],_0x48f7b1=_0x49cbb4[_0x407258(0x1df)];}_0x42d053=t[_0x407258(0x288)][_0x407258(0x2e2)](_0x3aa416[_0x407258(0x203)][0x0]),_0x48f7b1=t[_0x407258(0x288)]['deepClone'](_0x3aa416['mutations'][0x0]);for(let _0x1204e4=_0x1d40c2['length']-0x1;_0x1204e4>=0x0;_0x1204e4--){let _0x3658dc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d40c2[_0x1204e4][_0x407258(0x2ec)],..._0x1d40c2[_0x1204e4]['undoState']}},_0x1242b5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d40c2[_0x1204e4][_0x407258(0x2ec)],..._0x1d40c2[_0x1204e4][_0x407258(0x122)]}},_0x5f526b=this[_0x407258(0x2a5)][_0x407258(0x2c6)](_0x42d053,_0x3658dc,!0x1),_0x69de4d=this['_transformService'][_0x407258(0x2c6)](_0x48f7b1,_0x1242b5,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x5f526b))throw _0x5f526b[_0x407258(0x1f7)];if((0x0,l[_0x407258(0x3d6)])(_0x69de4d))throw _0x69de4d[_0x407258(0x1f7)];_0x3e54dc[_0x407258(0x269)]({..._0x1d40c2[_0x1204e4],'undoState':_0x5f526b[_0x407258(0x33f)][_0x407258(0x1b4)],'redoState':_0x69de4d[_0x407258(0x33f)][_0x407258(0x1b4)]}),_0x42d053=_0x5f526b[_0x407258(0x1df)],_0x48f7b1=_0x69de4d[_0x407258(0x1df)];}this['_docStateChangeManagerService']['setStateCache'](_0x45fdef,{'history':_0x53cdc7,'collaboration':_0x3e54dc});}};U=S([x(0x0,(0x0,t['Inject'])(t[_0x38a3cb(0x291)])),x(0x1,l[_0x38a3cb(0x344)]),x(0x2,(0x0,t[_0x38a3cb(0x361)])(d['DocStateChangeManagerService']))],U);let W=class{constructor(_0x50cb7e,_0x43a248){const _0x367d48=_0x38a3cb;this[_0x367d48(0x22e)]=_0x50cb7e,this['_transformService']=_0x43a248;}['prepareTransformSelections'](_0x2966f7){const _0x50b1a4=_0x38a3cb;var _0x394a84;let _0x2ba3c1=this[_0x50b1a4(0x22e)][_0x50b1a4(0x228)]()??[],_0x379be5=this[_0x50b1a4(0x22e)][_0x50b1a4(0x398)]();if(_0x2ba3c1[_0x50b1a4(0x154)]===0x0||_0x379be5==null)return null;let _0x2e88c8=_0x2966f7['unitID'],_0x2ecf7d=[{'id':_0x50b1a4(0x281),'params':{'unitId':_0x2e88c8,'actions':null,'textRanges':_0x2ba3c1}}],_0x38f9b6=this[_0x50b1a4(0x2a5)]['transformMutationsWithChangeset'](_0x2966f7,_0x2ecf7d);if(!(0x0,l[_0x50b1a4(0x3fd)])(_0x38f9b6))throw _0x38f9b6[_0x50b1a4(0x1f7)];let _0xf4370=(_0x394a84=_0x38f9b6[_0x50b1a4(0x33f)][0x0])==null?void 0x0:_0x394a84[_0x50b1a4(0x1b4)],_0x5a9f31=_0xf4370&&typeof _0xf4370==_0x50b1a4(0x2cd)&&_0x50b1a4(0x34d)in _0xf4370?_0xf4370[_0x50b1a4(0x34d)]:null;if(!Ce(_0x5a9f31))return null;let _0x30d965=xe(_0x2966f7[_0x50b1a4(0x203)][_0x50b1a4(0x1d9)](_0x4f1e19=>G(_0x4f1e19[_0x50b1a4(0x1b4)]))?_0x5a9f31[_0x50b1a4(0x193)](_0x47f29c=>!(_0x50b1a4(0x1c1)in _0x47f29c)):_0x5a9f31,{..._0x379be5,'options':_0x379be5['options']?{..._0x379be5[_0x50b1a4(0x260)],'wholeDocument':!0x1}:void 0x0}),_0x15cb4c={'unitId':_0x2e88c8,'subUnitId':_0x2e88c8};this['_docSelectionManagerService']['replaceSelectionInfoWithoutRefresh'](_0x30d965,_0x15cb4c);let _0xad7bf6=!0x0;return{'commit':()=>{_0xad7bf6=!0x1;},'rollback':()=>{const _0x57c5bb=_0x50b1a4;_0xad7bf6&&(_0xad7bf6=!0x1,this[_0x57c5bb(0x22e)][_0x57c5bb(0x1b3)](_0x379be5,_0x15cb4c));}};}};W=S([x(0x0,(0x0,t[_0x38a3cb(0x361)])(d['DocSelectionManagerService'])),x(0x1,l['ITransformService'])],W);function xe(_0x367884,_0x2b63a1){const _0x1bdc5a=_0x38a3cb;let _0x4e273d=[],_0x3e00eb=[];for(let _0x30f022 of _0x367884)Se(_0x30f022)?_0x3e00eb[_0x1bdc5a(0x159)](_0x30f022):_0x4e273d[_0x1bdc5a(0x159)](_0x30f022);return{..._0x2b63a1,'textRanges':_0x4e273d,'rectRanges':_0x3e00eb};}function Se(_0x432fd3){const _0x5a5bb5=_0x38a3cb;return _0x5a5bb5(0x1c1)in _0x432fd3;}function Ce(_0x299250){const _0x42d439=_0x38a3cb;return Array[_0x42d439(0x266)](_0x299250)&&_0x299250[_0x42d439(0x2fc)](_0x489bd8=>typeof _0x489bd8==_0x42d439(0x2cd)&&!!_0x489bd8&&_0x42d439(0x25c)in _0x489bd8&&_0x42d439(0x382)in _0x489bd8);}function G(_0x5925df){const _0x37689f=_0x38a3cb;return _0x5925df==='tableSource'?!0x0:Array[_0x37689f(0x266)](_0x5925df)?_0x5925df[_0x37689f(0x1d9)](_0x59d274=>G(_0x59d274)):!_0x5925df||typeof _0x5925df!=_0x37689f(0x2cd)?!0x1:Object[_0x37689f(0x24c)](_0x5925df)['some'](_0x2eb8c7=>G(_0x2eb8c7));}let K=class extends t[_0x38a3cb(0x251)]{constructor(_0x410a24,_0x1e047b,_0x3f5910,_0x2928c8,_0xa49f22,_0x3e7cae,_0x3055cb){const _0x52030d=_0x38a3cb;super(),this[_0x52030d(0x3f7)]=_0x410a24,this[_0x52030d(0x226)]=_0x1e047b,this[_0x52030d(0x2d6)]=_0x3f5910,this[_0x52030d(0x21e)]=_0x2928c8,this[_0x52030d(0x2ae)]=_0xa49f22,this[_0x52030d(0x364)]=_0x3e7cae,this['_localeService']=_0x3055cb,b(this,_0x52030d(0x2a6),new r['BehaviorSubject'](e[_0x52030d(0x30d)][_0x52030d(0x26b)])),this['_initEntityListener']();}[_0x38a3cb(0x144)](){const _0x2fbc4c=_0x38a3cb;this[_0x2fbc4c(0x166)](this[_0x2fbc4c(0x3f7)]['entityInit$']['subscribe'](_0x22ad0a=>{const _0x514d5f=_0x2fbc4c;_0x22ad0a instanceof e[_0x514d5f(0x160)]&&_0x22ad0a['addHandlerCallback']({'onTransformIME':_0x4d6885=>this['_docTransformIMECacheService'][_0x514d5f(0x38d)](_0x4d6885),'onTransformState':_0x461144=>this[_0x514d5f(0x2d6)][_0x514d5f(0x261)](_0x461144),'onPrepareTransformSelections':_0x16092c=>this[_0x514d5f(0x21e)][_0x514d5f(0x303)](_0x16092c),'onSyncEditingCollabCursor':_0x2b2f01=>this[_0x514d5f(0x2ae)][_0x514d5f(0x2da)](_0x2b2f01),'onTransformRemoteChangesetByIMECache':_0x4ac54d=>this[_0x514d5f(0x226)][_0x514d5f(0x173)](_0x4ac54d),'onTransformRemoteChangesetByStateCache':_0x527f2d=>this['_docTransformStateCacheService'][_0x514d5f(0x173)](_0x527f2d)});}));}};K=S([x(0x0,(0x0,t[_0x38a3cb(0x361)])(e[_0x38a3cb(0x14b)])),x(0x1,(0x0,t[_0x38a3cb(0x361)])(H)),x(0x2,(0x0,t[_0x38a3cb(0x361)])(U)),x(0x3,(0x0,t[_0x38a3cb(0x361)])(W)),x(0x4,(0x0,t[_0x38a3cb(0x361)])(O)),x(0x5,n[_0x38a3cb(0x145)]),x(0x6,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x34f)]))],K);let q=class extends t[_0x38a3cb(0x251)]{constructor(_0x2e00fb,_0x567f09,_0x4fb469,_0x3ea4f2){const _0x4a2bf4=_0x38a3cb;super(),this['_injector']=_0x2e00fb,this[_0x4a2bf4(0x18b)]=_0x567f09,this[_0x4a2bf4(0x35e)]=_0x4fb469,this['_collaborationSessionService']=_0x3ea4f2,b(this,_0x4a2bf4(0x16a),void 0x0),this['_init']();}[_0x38a3cb(0x119)](){const _0x1aac22=_0x38a3cb;this[_0x1aac22(0x3e8)](),this[_0x1aac22(0x183)](),this[_0x1aac22(0x36c)](),this[_0x1aac22(0x308)]();}[_0x38a3cb(0x308)](){const _0x568e9d=_0x38a3cb;this[_0x568e9d(0x166)](this['_collaborationSessionService'][_0x568e9d(0x32f)][_0x568e9d(0x329)](_0x516320=>{const _0x3db092=_0x568e9d;this[_0x3db092(0x16a)]=_0x516320==null?void 0x0:_0x516320['memberID'];}));}['_initWindowErrorListener'](){const _0x3ca3fd=_0x38a3cb;let _0x9790ba=_0x48af5f=>{const _0xb1dd9=_0x121f;var _0x120dbf;this['_uploadLog'](_0xb1dd9(0x1f7),'[Window\x20Error]:\x20'+_0x48af5f['message']+_0xb1dd9(0x335)+_0x48af5f['filename']+':'+_0x48af5f[_0xb1dd9(0x1c5)]+':'+_0x48af5f[_0xb1dd9(0x20f)]+'\x0a'+(((_0x120dbf=_0x48af5f[_0xb1dd9(0x1f7)])==null?void 0x0:_0x120dbf[_0xb1dd9(0x32b)])||''));};window[_0x3ca3fd(0x3fa)]('error',_0x9790ba),this['disposeWithMe'](()=>{const _0x158cd1=_0x3ca3fd;window[_0x158cd1(0x1b5)](_0x158cd1(0x1f7),_0x9790ba);});}[_0x38a3cb(0x183)](){const _0x2e75a9=_0x38a3cb;let _0x1237af=_0x584b69=>{const _0x5b61c2=_0x121f;this['_uploadLog']('error',_0x5b61c2(0x1cd)+_0x584b69[_0x5b61c2(0x394)]);};window[_0x2e75a9(0x3fa)](_0x2e75a9(0x2b4),_0x1237af),this[_0x2e75a9(0x166)](()=>{const _0x12ddc2=_0x2e75a9;window[_0x12ddc2(0x1b5)](_0x12ddc2(0x2b4),_0x1237af);});}[_0x38a3cb(0x36c)](){const _0x2f7023=_0x38a3cb;let _0x37dc33=this[_0x2f7023(0x35e)][_0x2f7023(0x1f7)]['bind'](this[_0x2f7023(0x35e)]);this[_0x2f7023(0x35e)]['error']=(..._0x341d9c)=>{const _0x346607=_0x2f7023;let _0x67b719=_0x341d9c[_0x346607(0x2f1)](_0x1d295a=>_0x1d295a instanceof Error?_0x1d295a[_0x346607(0x330)]+'\x0a'+_0x1d295a[_0x346607(0x32b)]:String(_0x1d295a))[_0x346607(0x1d5)]('\x20');this[_0x346607(0x1a3)]('error',_0x346607(0x3b3)+_0x67b719),_0x37dc33(..._0x341d9c);},this[_0x2f7023(0x166)](()=>{const _0xbfb9e7=_0x2f7023;this[_0xbfb9e7(0x35e)]['error']=_0x37dc33;});}[_0x38a3cb(0x1a3)](_0x18198b,_0x25afcf){const _0x463e82=_0x38a3cb;try{let _0x13d1f9={'userId':this[_0x463e82(0x16a)],'logLabel':_0x18198b,'content':_0x25afcf};this[_0x463e82(0x18b)][_0x463e82(0x29c)](_0x463e82(0x314),{'body':_0x13d1f9})['catch'](()=>{});}catch{}}};q=S([x(0x0,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x1,(0x0,t[_0x38a3cb(0x361)])(m[_0x38a3cb(0x128)])),x(0x2,t[_0x38a3cb(0x1da)]),x(0x3,(0x0,t['Inject'])(e[_0x38a3cb(0x3ca)]))],q);function we({state$:_0x284aa4}){const _0x2f095d=_0x38a3cb;let _0x10b334=(0x0,n[_0x2f095d(0x302)])(_0x284aa4,null,!0x0);return _0x10b334?(0x0,c['jsxs'])(_0x2f095d(0x37d),{'data-u-comp':_0x2f095d(0x3cc),'role':_0x2f095d(0x13e),'className':_0x2f095d(0x365),'children':[(0x0,c[_0x2f095d(0x27c)])(o['WarningIcon'],{'className':_0x2f095d(0x3dc)}),(0x0,c[_0x2f095d(0x27c)])('span',{'children':_0x10b334['content']}),(0x0,c[_0x2f095d(0x27c)])(a['Button'],{'size':_0x2f095d(0x186),'variant':_0x2f095d(0x18c),'onClick':()=>window[_0x2f095d(0x1dc)]['reload'](),'children':_0x10b334[_0x2f095d(0x2de)]})]}):null;}const Te='snapshot-loading-';let J=class extends t[_0x38a3cb(0x251)]{constructor(_0x412d7b,_0x50d3af,_0xff4933,_0x1a8692,_0x5cf638){const _0x453006=_0x38a3cb;super(),this[_0x453006(0x304)]=_0x412d7b,this['_messageService']=_0x50d3af,this[_0x453006(0x238)]=_0xff4933,this[_0x453006(0x3c6)]=_0x1a8692,b(this,_0x453006(0x1b9),new r[(_0x453006(0x1a0))](null)),b(this,_0x453006(0x280),new Set()),b(this,_0x453006(0x3e5),new Map()),b(this,'timeoutState$',this[_0x453006(0x1b9)][_0x453006(0x234)]());let _0xe6fe0b=()=>(0x0,s[_0x453006(0x2bd)])(we,{'state$':this[_0x453006(0x1c8)]});this[_0x453006(0x166)](_0x5cf638['registerComponent'](n[_0x453006(0x110)]['GLOBAL'],()=>(0x0,n['connectInjector'])(_0xe6fe0b,this[_0x453006(0x3c6)]))),this[_0x453006(0x166)](this[_0x453006(0x304)][_0x453006(0x19b)][_0x453006(0x329)](_0x70c3d6=>{const _0x5c829c=_0x453006;_0x70c3d6[_0x5c829c(0x1b2)](_0x4d6f7a=>this[_0x5c829c(0x3b2)](_0x4d6f7a));}));}[_0x38a3cb(0x15a)](){const _0x564cff=_0x38a3cb;this['_messageIds']['forEach'](_0x44dac1=>this[_0x564cff(0x364)][_0x564cff(0x165)](_0x44dac1)),this['_messageIds'][_0x564cff(0x229)](),this[_0x564cff(0x3e5)][_0x564cff(0x1b2)](({timeoutId:_0x4e84be})=>clearTimeout(_0x4e84be)),this['_blockProgressWatches']['clear'](),this[_0x564cff(0x1b9)][_0x564cff(0x240)](),super['dispose']();}[_0x38a3cb(0x3b2)](_0x429dfe){const _0x47499d=_0x38a3cb;let _0x3f92d6=''+Te+_0x429dfe[_0x47499d(0x2ec)];_0x429dfe[_0x47499d(0x225)]===l[_0x47499d(0x12d)]['COMPLETE']?(this[_0x47499d(0x1bf)](_0x429dfe[_0x47499d(0x2ec)]),this[_0x47499d(0x27e)](_0x429dfe[_0x47499d(0x2ec)]),this[_0x47499d(0x364)][_0x47499d(0x165)](_0x3f92d6),this['_messageIds'][_0x47499d(0x3fb)](_0x3f92d6)):_0x429dfe[_0x47499d(0x225)]===l['SnapshotLoadStage'][_0x47499d(0x3ec)]?(this[_0x47499d(0x1bf)](_0x429dfe[_0x47499d(0x2ec)]),this[_0x47499d(0x27e)](_0x429dfe[_0x47499d(0x2ec)]),this[_0x47499d(0x364)]['show']({'id':_0x3f92d6,'type':a[_0x47499d(0x317)][_0x47499d(0x1bd)],'content':this['_localeService']['t'](_0x47499d(0x346))}),this[_0x47499d(0x280)][_0x47499d(0x3fb)](_0x3f92d6)):_0x429dfe[_0x47499d(0x225)]!==l[_0x47499d(0x12d)]['LOADING_BLOCKS']||_0x429dfe[_0x47499d(0x2ba)]<=0xa?(this[_0x47499d(0x1bf)](_0x429dfe[_0x47499d(0x2ec)]),this[_0x47499d(0x364)][_0x47499d(0x165)](_0x3f92d6),this[_0x47499d(0x280)][_0x47499d(0x3fb)](_0x3f92d6)):this[_0x47499d(0x37a)](_0x429dfe)||(this['_messageService'][_0x47499d(0x386)]({'id':_0x3f92d6,'type':a[_0x47499d(0x317)][_0x47499d(0x3ac)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x47499d(0x374))+'\x20'+_0x429dfe[_0x47499d(0x129)]+'/'+_0x429dfe['totalBlocks']}),this[_0x47499d(0x280)][_0x47499d(0x354)](_0x3f92d6));}[_0x38a3cb(0x37a)](_0x4e7b63){const _0x57eaf8=_0x38a3cb;let _0x299b73=this[_0x57eaf8(0x3e5)]['get'](_0x4e7b63[_0x57eaf8(0x2ec)]);if((_0x299b73==null?void 0x0:_0x299b73[_0x57eaf8(0x129)])===_0x4e7b63[_0x57eaf8(0x129)])return _0x299b73['timedOut'];this[_0x57eaf8(0x1bf)](_0x4e7b63[_0x57eaf8(0x2ec)]);let _0x535c33=setTimeout(()=>{const _0x8a8aa2=_0x57eaf8;let _0x2e50eb=this[_0x8a8aa2(0x3e5)][_0x8a8aa2(0x255)](_0x4e7b63[_0x8a8aa2(0x2ec)]);if(!_0x2e50eb||_0x2e50eb[_0x8a8aa2(0x3ff)]!==_0x535c33)return;_0x2e50eb[_0x8a8aa2(0x2c8)]=!0x0;let _0x8cc85c=''+Te+_0x4e7b63[_0x8a8aa2(0x2ec)];this[_0x8a8aa2(0x364)][_0x8a8aa2(0x165)](_0x8cc85c),this['_messageIds'][_0x8a8aa2(0x3fb)](_0x8cc85c),this['_timeoutState$'][_0x8a8aa2(0x1af)]({'unitId':_0x4e7b63[_0x8a8aa2(0x2ec)],'content':this[_0x8a8aa2(0x238)]['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x4e7b63['loadedBlocks']),String(_0x4e7b63[_0x8a8aa2(0x2ba)])),'refreshLabel':this['_localeService']['t'](_0x8a8aa2(0x182))});},0xea60);return this[_0x57eaf8(0x3e5)][_0x57eaf8(0x3b8)](_0x4e7b63[_0x57eaf8(0x2ec)],{'loadedBlocks':_0x4e7b63[_0x57eaf8(0x129)],'timedOut':!0x1,'timeoutId':_0x535c33}),!0x1;}[_0x38a3cb(0x1bf)](_0x4d5651){const _0x523cd6=_0x38a3cb;let _0x35cc3f=this[_0x523cd6(0x3e5)][_0x523cd6(0x255)](_0x4d5651);_0x35cc3f&&(clearTimeout(_0x35cc3f[_0x523cd6(0x3ff)]),this[_0x523cd6(0x3e5)][_0x523cd6(0x3fb)](_0x4d5651),this[_0x523cd6(0x27e)](_0x4d5651));}[_0x38a3cb(0x27e)](_0x8da7e7){const _0x1e79f4=_0x38a3cb;var _0x24ee0d;((_0x24ee0d=this['_timeoutState$'][_0x1e79f4(0x3bd)])==null?void 0x0:_0x24ee0d['unitId'])===_0x8da7e7&&this[_0x1e79f4(0x1b9)][_0x1e79f4(0x1af)](null);}};J=S([x(0x0,(0x0,t[_0x38a3cb(0x361)])(l[_0x38a3cb(0x2ce)])),x(0x1,n[_0x38a3cb(0x145)]),x(0x2,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x34f)])),x(0x3,(0x0,t['Inject'])(t['Injector'])),x(0x4,n[_0x38a3cb(0x204)])],J);let Y=class extends t[_0x38a3cb(0x251)]{constructor(_0x5b495c,_0x2a3575,_0x2b4d9c,_0x21eadf,_0x25dd2a){const _0x5bbef1=_0x38a3cb;var _0x987226;super(),this[_0x5bbef1(0x36e)]=_0x5b495c,this[_0x5bbef1(0x3b6)]=_0x2a3575,this['_revisionService']=_0x2b4d9c,this[_0x5bbef1(0x35e)]=_0x21eadf,this['_userManagerService']=_0x25dd2a,b(this,'_cachedData',new Map()),b(this,'_saveTaskMap',new Map()),b(this,'_activeSaveTaskMap',new Map()),b(this,_0x5bbef1(0x3a6),!0x1),this[_0x5bbef1(0x3a6)]=!((_0x987226=this['_configService'][_0x5bbef1(0x1fa)](e[_0x5bbef1(0x2e6)]))!=null&&_0x987226[_0x5bbef1(0x11e)]);}[_0x38a3cb(0x35d)](){const _0x552897=_0x38a3cb;this[_0x552897(0x3a6)]=!0x0;}[_0x38a3cb(0x35a)](){const _0x5bb7f8=_0x38a3cb;this[_0x5bb7f8(0x3a6)]=!0x1;}get[_0x38a3cb(0x25b)](){const _0x3f174b=_0x38a3cb;let _0x55edc1=new Map(this[_0x3f174b(0x2dc)]);return this[_0x3f174b(0x19c)][_0x3f174b(0x1b2)]((_0x2c9c7e,_0x331fe)=>{_0x55edc1['has'](_0x331fe)||_0x55edc1['set'](_0x331fe,0x0);}),_0x55edc1;}[_0x38a3cb(0x15a)](){const _0x210634=_0x38a3cb;this[_0x210634(0x2a9)]||(super[_0x210634(0x15a)](),this[_0x210634(0x3a6)]=!0x0,this[_0x210634(0x2af)]()[_0x210634(0x24b)](_0x11657b=>this[_0x210634(0x35e)][_0x210634(0x1f7)](_0x11657b)));}async['loadOfflineData'](_0x4a3db4,_0x310076){const _0x560a2d=_0x38a3cb;if(this[_0x560a2d(0x3a6)])return null;let _0x2366aa=this[_0x560a2d(0x3e7)](_0x310076),_0x575bbc=await this['_localStorageService']['getItem']((0x0,e[_0x560a2d(0x366)])(_0x4a3db4,_0x2366aa));return(_0x575bbc==null?void 0x0:_0x575bbc[_0x560a2d(0x2fa)])===_0x4a3db4&&this[_0x560a2d(0x192)](_0x575bbc[_0x560a2d(0x118)])===_0x2366aa?_0x575bbc:null;}async[_0x38a3cb(0x112)](_0x471bf1,_0x176d7c,_0x427e37){const _0x10700c=_0x38a3cb;let _0x40c742=this[_0x10700c(0x3e7)](_0x427e37),_0x154c48=(0x0,e[_0x10700c(0x366)])(_0x471bf1,_0x40c742),_0x3e6e33=this[_0x10700c(0x3b6)][_0x10700c(0x306)](_0x154c48,{..._0x176d7c,'unitID':_0x471bf1,'userId':_0x40c742});return this[_0x10700c(0x363)](_0x154c48,_0x3e6e33),!!await _0x3e6e33;}async['backupOfflineData'](_0x57d90e,_0x2be2e5,_0x1a5908){const _0x28af52=_0x38a3cb;let _0x4f7b56=this['_getUserId'](_0x1a5908),_0xf0874d=(0x0,e[_0x28af52(0x366)])(_0x57d90e,_0x4f7b56),_0x22d5b8=this[_0x28af52(0x249)][_0x28af52(0x255)](_0xf0874d)??await this['_localStorageService'][_0x28af52(0x1ce)](_0xf0874d);if(!_0x22d5b8||this[_0x28af52(0x192)](_0x22d5b8[_0x28af52(0x118)])!==_0x4f7b56||_0x22d5b8['unitID']!==_0x57d90e)return;let _0x118228=Date[_0x28af52(0x33d)](),_0x4551da=new Date(_0x118228)[_0x28af52(0x167)]();await this[_0x28af52(0x3b6)]['setItem'](_0xf0874d+_0x28af52(0x2b6)+_0x118228,{'reason':_0x2be2e5,'createdAt':_0x4551da,'data':_0x22d5b8});}async[_0x38a3cb(0x176)](_0x530746,_0x8cb64d){const _0x3324d7=_0x38a3cb;let _0x3674d1=this['_getUserId'](_0x8cb64d),_0x255e6e=(0x0,e[_0x3324d7(0x366)])(_0x530746,_0x3674d1),_0x45282b=this[_0x3324d7(0x2dc)][_0x3324d7(0x255)](_0x255e6e);_0x45282b!==void 0x0&&(window[_0x3324d7(0x357)](_0x45282b),this['_saveTaskMap'][_0x3324d7(0x3fb)](_0x255e6e));let _0x4fca57=this[_0x3324d7(0x19c)]['get'](_0x255e6e);_0x4fca57&&await Promise[_0x3324d7(0x32e)](_0x4fca57),this[_0x3324d7(0x249)][_0x3324d7(0x3fb)](_0x255e6e),await this['_localStorageService'][_0x3324d7(0x1e4)](_0x255e6e);}['updateOfflineData'](_0x566717,_0x4c7010,_0x62558d,_0x25db1d,_0x33b94d){const _0x4ad075=_0x38a3cb;if(this[_0x4ad075(0x2a9)])return;let _0x4696ee=this[_0x4ad075(0x3e7)](_0x33b94d),_0x2cd48c=(0x0,e[_0x4ad075(0x366)])(_0x566717,_0x4696ee),_0xd039a5=this[_0x4ad075(0x107)][_0x4ad075(0x1aa)](_0x566717);this[_0x4ad075(0x249)][_0x4ad075(0x3b8)](_0x2cd48c,{'unitID':_0x566717,'userId':_0x4696ee,'type':_0x4c7010,'awaitingChangeset':_0x62558d,'mutations':_0x25db1d,'rev':_0xd039a5}),this[_0x4ad075(0x2dc)][_0x4ad075(0x3ab)](_0x2cd48c)||this[_0x4ad075(0x2b2)](_0x2cd48c);}['_getUserId'](_0x323e7d=((()=>{const _0x529f25=_0x38a3cb;var _0x5cf296;return(_0x5cf296=this['_userManagerService'][_0x529f25(0x1a4)]())==null?void 0x0:_0x5cf296[_0x529f25(0x268)];})())){const _0x5e601e=_0x38a3cb;return this[_0x5e601e(0x192)](_0x323e7d);}[_0x38a3cb(0x192)](_0x382e43){return _0x382e43===''||_0x382e43==null?void 0x0:_0x382e43;}['_scheduleSaving'](_0x51fb4b){const _0x4f2236=_0x38a3cb;let _0x3ef2c1=this[_0x4f2236(0x12b)]();_0x3ef2c1===0x0?this[_0x4f2236(0x3eb)](_0x51fb4b)[_0x4f2236(0x24b)](_0x213d92=>this[_0x4f2236(0x35e)][_0x4f2236(0x1f7)](_0x213d92)):this[_0x4f2236(0x2dc)][_0x4f2236(0x3b8)](_0x51fb4b,window[_0x4f2236(0x200)](()=>{const _0x4a8436=_0x4f2236;this[_0x4a8436(0x3eb)](_0x51fb4b)[_0x4a8436(0x24b)](_0x5a443e=>this[_0x4a8436(0x35e)]['error'](_0x5a443e));},_0x3ef2c1));}[_0x38a3cb(0x12b)](){const _0x22f0f1=_0x38a3cb;return this['_configService']['getConfig'](e[_0x22f0f1(0x24a)])??e[_0x22f0f1(0x1d2)];}[_0x38a3cb(0x3eb)](_0x3b9cb4){const _0x4a8033=_0x38a3cb;let _0x56e88e=this[_0x4a8033(0x2dc)][_0x4a8033(0x255)](_0x3b9cb4);_0x56e88e!==void 0x0&&window['clearTimeout'](_0x56e88e);let _0x29ccac=this['_cachedData'][_0x4a8033(0x255)](_0x3b9cb4);if(!_0x29ccac)return Promise[_0x4a8033(0x1e7)]();let _0x427991=this[_0x4a8033(0x19c)][_0x4a8033(0x255)](_0x3b9cb4),_0x591d29=Promise[_0x4a8033(0x32e)](_0x427991?[..._0x427991]:[])[_0x4a8033(0x376)](()=>this['_localStorageService'][_0x4a8033(0x306)](_0x3b9cb4,_0x29ccac))[_0x4a8033(0x376)](()=>{const _0x537ab2=_0x4a8033;_0x56e88e!==void 0x0&&this[_0x537ab2(0x2dc)][_0x537ab2(0x255)](_0x3b9cb4)===_0x56e88e&&(this[_0x537ab2(0x2dc)][_0x537ab2(0x3fb)](_0x3b9cb4),!this['_disposed']&&this['_cachedData'][_0x537ab2(0x255)](_0x3b9cb4)!==_0x29ccac&&this['_scheduleSaving'](_0x3b9cb4));});return this['_trackActiveSaveTask'](_0x3b9cb4,_0x591d29),_0x591d29;}[_0x38a3cb(0x363)](_0x14c7c9,_0x15995e){const _0x15b4db=_0x38a3cb;let _0x4d34aa=this['_activeSaveTaskMap'][_0x15b4db(0x255)](_0x14c7c9);_0x4d34aa||(_0x4d34aa=new Set(),this[_0x15b4db(0x19c)]['set'](_0x14c7c9,_0x4d34aa)),_0x4d34aa[_0x15b4db(0x354)](_0x15995e);let _0x55c57d=()=>{const _0x257e00=_0x15b4db;_0x4d34aa[_0x257e00(0x3fb)](_0x15995e),_0x4d34aa[_0x257e00(0x250)]===0x0&&this[_0x257e00(0x19c)][_0x257e00(0x3fb)](_0x14c7c9);};_0x15995e[_0x15b4db(0x376)](_0x55c57d,_0x55c57d);}async[_0x38a3cb(0x2af)](){const _0x56fbcf=_0x38a3cb;let _0x2d8929=[...this[_0x56fbcf(0x2dc)][_0x56fbcf(0x181)]()][_0x56fbcf(0x2f1)](_0x51cbaa=>this[_0x56fbcf(0x3eb)](_0x51cbaa));for(let _0x5f3b86 of this[_0x56fbcf(0x19c)][_0x56fbcf(0x24c)]())_0x2d8929[_0x56fbcf(0x159)](...[..._0x5f3b86][_0x56fbcf(0x2f1)](_0x1ece28=>_0x1ece28[_0x56fbcf(0x376)](()=>void 0x0)));await Promise[_0x56fbcf(0x3d7)](_0x2d8929);}};Y=S([x(0x0,t[_0x38a3cb(0x21a)]),x(0x1,t['ILocalStorageService']),x(0x2,(0x0,t[_0x38a3cb(0x361)])(l['RevisionService'])),x(0x3,t[_0x38a3cb(0x1da)]),x(0x4,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x246)]))],Y);var Ee=class extends t[_0x38a3cb(0x251)]{get[_0x38a3cb(0x2b5)](){const _0x2c1519=_0x38a3cb;return this[_0x2c1519(0x2be)]['getValue']();}constructor(){const _0x57e1ff=_0x38a3cb;super(),b(this,_0x57e1ff(0x2be),new r[(_0x57e1ff(0x1a0))](navigator['onLine'])),b(this,_0x57e1ff(0x2e9),this[_0x57e1ff(0x2be)][_0x57e1ff(0x234)]()),this[_0x57e1ff(0x22a)](),this['_listenToOnlineEvent']();}[_0x38a3cb(0x15a)](){const _0x2fcaf3=_0x38a3cb;super[_0x2fcaf3(0x15a)](),this[_0x2fcaf3(0x2be)]['complete']();}[_0x38a3cb(0x383)](){const _0xd3986b=_0x38a3cb;this[_0xd3986b(0x166)]((0x0,r[_0xd3986b(0x20c)])((0x0,r[_0xd3986b(0x2f5)])(window,_0xd3986b(0x2b5)),(0x0,r[_0xd3986b(0x2f5)])(window,_0xd3986b(0x1ec)),(0x0,r[_0xd3986b(0x2f5)])(document,_0xd3986b(0x282))['pipe']((0x0,r[_0xd3986b(0x2f1)])(()=>document[_0xd3986b(0x143)]===_0xd3986b(0x3f5)),(0x0,r[_0xd3986b(0x193)])(_0x4de623=>_0x4de623)))[_0xd3986b(0x263)]((0x0,r[_0xd3986b(0x193)])(()=>navigator['onLine']))[_0xd3986b(0x329)](()=>this[_0xd3986b(0x2be)]['next'](!0x0)));}[_0x38a3cb(0x22a)](){const _0x464915=_0x38a3cb;this['disposeWithMe']((0x0,r[_0x464915(0x2f5)])(window,'offline')[_0x464915(0x329)](()=>this[_0x464915(0x2be)][_0x464915(0x1af)](!0x1)));}};let X=class extends t[_0x38a3cb(0x1f6)]{constructor(_0x56f3e1=se,_0x345d32,_0x447a1d,_0x1d19ef,_0x5410c5){const _0x2455ac=_0x38a3cb;super(),this[_0x2455ac(0x111)]=_0x56f3e1,this[_0x2455ac(0x1d6)]=_0x345d32,this[_0x2455ac(0x3c6)]=_0x447a1d,this[_0x2455ac(0x36e)]=_0x1d19ef,this[_0x2455ac(0x3f2)]=_0x5410c5;let {..._0x2a08b0}=(0x0,t[_0x2455ac(0x20c)])({},se,this[_0x2455ac(0x111)]);this[_0x2455ac(0x36e)][_0x2455ac(0x2c5)](_0x2455ac(0x3bc),_0x2a08b0);}[_0x38a3cb(0x322)](){const _0x392ec7=_0x38a3cb;this[_0x392ec7(0x371)](),this[_0x392ec7(0x166)](this[_0x392ec7(0x3f2)][_0x392ec7(0x222)](T)),this[_0x392ec7(0x100)]();}[_0x38a3cb(0x1d4)](){const _0x293d9f=_0x38a3cb;this[_0x293d9f(0x3d9)]();}['_registerDependencies'](){const _0x109f3f=_0x38a3cb;var _0x4bda2d;let _0x588dc1=[[D],[m[_0x109f3f(0x2ea)],{'useClass':m[_0x109f3f(0x3ce)]}],[e['ILocalCacheService'],{'useClass':Y}],[e[_0x109f3f(0x109)],{'useClass':Ee}],[C],[V],[j],[B],[J]];this['_config'][_0x109f3f(0x294)]!==!0x1&&_0x588dc1[_0x109f3f(0x159)]([W],[H],[U],[O],[K],[E]),this[_0x109f3f(0x111)][_0x109f3f(0x29b)]&&_0x588dc1[_0x109f3f(0x159)]([q]),(0x0,t[_0x109f3f(0x33b)])(this['_injector'],(0x0,t[_0x109f3f(0x3f4)])(_0x588dc1,(_0x4bda2d=this[_0x109f3f(0x111)])==null?void 0x0:_0x4bda2d[_0x109f3f(0x103)]));}[_0x38a3cb(0x3d9)](){const _0x169e55=_0x38a3cb;this['_config'][_0x169e55(0x294)]!==!0x1&&this[_0x169e55(0x166)](this[_0x169e55(0x1d6)][_0x169e55(0x37c)](t[_0x169e55(0x2f8)]['UNIVER_DOC'],[F])),this[_0x169e55(0x166)](this[_0x169e55(0x1d6)]['registerRenderModule'](t[_0x169e55(0x2f8)]['UNIVER_SHEET'],[L]));}[_0x38a3cb(0x100)](){const _0x89fb2d=_0x38a3cb;(0x0,t[_0x89fb2d(0x231)])(this[_0x89fb2d(0x3c6)],[[j],[B],[C],[V],[J]]),this[_0x89fb2d(0x111)][_0x89fb2d(0x294)]!==!0x1&&(0x0,t[_0x89fb2d(0x231)])(this['_injector'],[[K],[E]]),this[_0x89fb2d(0x111)]['enableFrontendLog']&&(0x0,t[_0x89fb2d(0x231)])(this['_injector'],[[q]]);}};b(X,_0x38a3cb(0x30f),_0x38a3cb(0x3ed)),b(X,'packageName',ae),b(X,_0x38a3cb(0x1a9),oe),X=S([(0x0,t[_0x38a3cb(0x359)])(u['UniverLicensePlugin'],d[_0x38a3cb(0x3b7)],p[_0x38a3cb(0x1f1)],m[_0x38a3cb(0xff)],l[_0x38a3cb(0x22b)],f[_0x38a3cb(0x370)],e[_0x38a3cb(0x3db)]),x(0x1,p[_0x38a3cb(0x29f)]),x(0x2,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x3,t[_0x38a3cb(0x21a)]),x(0x4,t[_0x38a3cb(0x34c)])],X);let Z=class extends e[_0x38a3cb(0x11c)]{constructor(_0x32d507,_0x21cd56,_0x18e4dc,_0x32a6f3,_0x115bef){const _0x2506cd=_0x38a3cb;super(_0x32d507,_0x21cd56,_0x18e4dc,_0x32a6f3,_0x115bef),b(this,_0x2506cd(0x1a5),new r[(_0x2506cd(0x3b1))]()),this[_0x2506cd(0x166)](()=>{const _0x2a77af=_0x2506cd;this[_0x2a77af(0x1a5)][_0x2a77af(0x1af)](),this['_dispose$'][_0x2a77af(0x240)]();});}async[_0x38a3cb(0x23c)](_0x813783){const _0x152f91=_0x38a3cb;let _0x3581ff=await this[_0x152f91(0x194)](),_0x1e3fe6=this['_createSocketURL'](_0x813783,_0x3581ff);return this['_doCreateSocket'](_0x1e3fe6);}[_0x38a3cb(0x1ba)](_0x217b1d,_0x1c8baa){const _0x2abc5e=_0x38a3cb;let _0x23a5e4=typeof window>'u'?new URL(_0x217b1d):new URL(_0x217b1d,window[_0x2abc5e(0x1dc)]['origin']);_0x23a5e4[_0x2abc5e(0x3b5)][_0x2abc5e(0x3b8)]('sessionTicket',_0x1c8baa);let _0x24b14a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x2abc5e(0x311)]);return _0x24b14a['get'](_0x2abc5e(0x392))&&_0x23a5e4[_0x2abc5e(0x3b5)][_0x2abc5e(0x3b8)](_0x2abc5e(0x392),_0x24b14a['get'](_0x2abc5e(0x392))),_0x23a5e4['toString']();}async[_0x38a3cb(0x194)](){const _0x568996=_0x38a3cb;var _0xeabe8a;let _0x242e8d=this[_0x568996(0x36e)][_0x568996(0x1fa)](e[_0x568996(0x2e6)]),_0x460bfe=(_0x242e8d==null?void 0x0:_0x242e8d[_0x568996(0x2d9)])??e[_0x568996(0x3c9)];return((_0xeabe8a=(await(0x0,r[_0x568996(0x368)])(this[_0x568996(0x18b)][_0x568996(0x1e2)](_0x568996(0x214),_0x460bfe,{'headers':{'Content-Type':_0x568996(0x270)}})['pipe']((0x0,r['filter'])(_0x164dd0=>_0x164dd0['type']===m[_0x568996(0x21b)][_0x568996(0x1c9)]),(0x0,r[_0x568996(0x3a0)])(0x4e20),(0x0,r['takeUntil'])(this[_0x568996(0x1a5)]))))[_0x568996(0x11b)])==null?void 0x0:_0xeabe8a[_0x568996(0x29d)])??'';}};Z=S([x(0x0,(0x0,t[_0x38a3cb(0x361)])(t[_0x38a3cb(0x291)])),x(0x1,(0x0,t[_0x38a3cb(0x361)])(m['HTTPService'])),x(0x2,t[_0x38a3cb(0x21a)]),x(0x3,t[_0x38a3cb(0x1da)]),x(0x4,l[_0x38a3cb(0x387)])],Z);let Q=class extends t[_0x38a3cb(0x251)]{constructor(_0x4d06c6,_0x236948,_0xd88cd){const _0x187e7a=_0x38a3cb;super(),this[_0x187e7a(0x39c)]=_0x4d06c6,this[_0x187e7a(0x18b)]=_0x236948,this[_0x187e7a(0x36e)]=_0xd88cd;}async['runOnServer'](_0x1fe9fb,_0x2185b8,_0xaf4a35,..._0x3bca78){const _0x3936d8=_0x38a3cb;let _0x247dad=this[_0x3936d8(0x39c)]['getFocusedUnit']();if(!_0x247dad)throw Error(_0x3936d8(0x2ad));let _0x1dfe22=(this['_configService']['getConfig'](e['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY'])??e[_0x3936d8(0x275)])+'/'+_0x1fe9fb+_0x3936d8(0x27d)+_0x2185b8,_0x2bd98f={'scriptId':_0x1fe9fb,'runId':new URL(window[_0x3936d8(0x1dc)][_0x3936d8(0x375)])['searchParams']['get']('runId')??'','function':_0x2185b8,'unitId':_0x247dad['getUnitId'](),'argsOfFunction':JSON[_0x3936d8(0x39e)](_0x3bca78),'invokeId':_0xaf4a35[_0x3936d8(0x3ad)]??'','executionId':_0xaf4a35['executionId']??''};try{let _0x5869ff=await this['_httpService'][_0x3936d8(0x29c)](_0x1dfe22,{'body':_0x2bd98f});return _0x5869ff[_0x3936d8(0x11b)][_0x3936d8(0x1f7)]&&_0x5869ff['body'][_0x3936d8(0x1f7)][_0x3936d8(0x247)]!==v[_0x3936d8(0x3b9)]['OK']?'Failed':_0x5869ff['body'][_0x3936d8(0x18e)];}catch{return _0x3936d8(0x334);}}};Q=S([x(0x0,t[_0x38a3cb(0x339)]),x(0x1,(0x0,t[_0x38a3cb(0x361)])(m['HTTPService'])),x(0x2,t[_0x38a3cb(0x21a)])],Q);const De=0x7530,$='ACTIVE_UNIT_EVENT_CHANNEL';var Oe=class extends t[_0x38a3cb(0x251)]{constructor(){const _0x3d32ee=_0x38a3cb;super(),b(this,_0x3d32ee(0x104),(0x0,t[_0x3d32ee(0x332)])()),b(this,_0x3d32ee(0x35c),new Set()),b(this,_0x3d32ee(0x28c),new Map()),b(this,'_heartbeatTimer',null),b(this,_0x3d32ee(0x3fc),new Map()),b(this,'_unitStatus',new Map()),this[_0x3d32ee(0x119)]();}[_0x38a3cb(0x15a)](){const _0x404539=_0x38a3cb;super[_0x404539(0x15a)](),this[_0x404539(0x3fc)][_0x404539(0x1b2)]((_0x1b86d4,_0x3c4811)=>this[_0x404539(0x2c4)](_0x3c4811)),this[_0x404539(0x28e)]&&window[_0x404539(0x2b8)](this['_heartbeatTimer']);}[_0x38a3cb(0x3d3)](_0x182d20){const _0x3c45a4=_0x38a3cb;return this[_0x3c45a4(0x152)](_0x182d20)[_0x3c45a4(0x263)]((0x0,r['distinctUntilChanged'])());}['editingUnit'](_0x1046a5){const _0x198182=_0x38a3cb;this[_0x198182(0x35c)][_0x198182(0x250)]===0x0&&this[_0x198182(0x300)](),this[_0x198182(0x35c)]['add'](_0x1046a5),this['_send']({'type':0x0,'memberID':this[_0x198182(0x104)],'unitIDs':[_0x1046a5],'isForwarded':!0x1});}['disposeUnit'](_0x57ca6f){const _0x3d8ff4=_0x38a3cb;this[_0x3d8ff4(0x35c)][_0x3d8ff4(0x3fb)](_0x57ca6f),this[_0x3d8ff4(0x35c)][_0x3d8ff4(0x250)]===0x0&&this[_0x3d8ff4(0x28e)]&&window[_0x3d8ff4(0x2b8)](this[_0x3d8ff4(0x28e)]);}[_0x38a3cb(0x119)](){const _0x342781=_0x38a3cb;this[_0x342781(0x166)]((0x0,t['toDisposable'])((0x0,r[_0x342781(0x2f5)])(window,_0x342781(0x15f))[_0x342781(0x329)](_0x48af46=>{const _0x2388e7=_0x342781;if(_0x48af46[_0x2388e7(0x24e)]!==$||!_0x48af46[_0x2388e7(0x2bb)])return;let _0x28f816=JSON[_0x2388e7(0x253)](_0x48af46[_0x2388e7(0x2bb)]);this['_handleEvent'](_0x28f816);}))),window[_0x342781(0x3fa)](_0x342781(0x180),()=>this['_send']({'type':0x1,'memberID':this[_0x342781(0x104)],'unitIDs':Array[_0x342781(0x35b)](this['_selfUnitIDs'])}));}[_0x38a3cb(0x17b)](_0x5bbbed){const _0x368063=_0x38a3cb;switch(_0x5bbbed['type']){case 0x0:this['_handleJoinEvent'](_0x5bbbed);break;case 0x1:this[_0x368063(0x1e0)](_0x5bbbed);break;case 0x2:this[_0x368063(0x31f)](_0x5bbbed);}}['_handleJoinEvent'](_0x247952){const _0x56d672=_0x38a3cb;let {unitIDs:_0x2c39c2,memberID:_0x2a03e5,isForwarded:_0x5bf2b2}=_0x247952;_0x2c39c2['forEach'](_0x4e9f38=>{const _0x38ae11=_0x121f;if(!_0x5bf2b2&&this[_0x38ae11(0x28c)]['has'](_0x4e9f38)&&this[_0x38ae11(0x152)](_0x4e9f38)[_0x38ae11(0x1af)](e['UnitStatus'][_0x38ae11(0x2c7)]),!this[_0x38ae11(0x28c)][_0x38ae11(0x3ab)](_0x4e9f38)||!this['_unitOnClients'][_0x38ae11(0x255)](_0x4e9f38)['has'](_0x2a03e5)){let _0x283ef5=this[_0x38ae11(0x28c)][_0x38ae11(0x255)](_0x4e9f38)||new Set();_0x283ef5[_0x38ae11(0x354)](_0x2a03e5),this['_unitOnClients']['set'](_0x4e9f38,_0x283ef5),this['_scheduleClearOtherTimer'](_0x2a03e5);}}),_0x5bf2b2||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x56d672(0x35c)]],'isForwarded':!0x0});}[_0x38a3cb(0x1b7)](_0x3f0156){const _0x2d932f=_0x38a3cb;this[_0x2d932f(0x2c4)](_0x3f0156);let _0x328c72=window['setTimeout'](()=>{const _0x4a04c4=_0x2d932f;this[_0x4a04c4(0x28c)][_0x4a04c4(0x1b2)](_0x3383b3=>{_0x3383b3['delete'](_0x3f0156);});},De*0x2);this[_0x2d932f(0x3fc)][_0x2d932f(0x3b8)](_0x3f0156,_0x328c72);}[_0x38a3cb(0x2c4)](_0x37eea9){const _0x591097=_0x38a3cb;if(this[_0x591097(0x3fc)][_0x591097(0x3ab)](_0x37eea9)){let _0x47cf87=this[_0x591097(0x3fc)][_0x591097(0x255)](_0x37eea9);_0x47cf87&&window[_0x591097(0x357)](_0x47cf87),this['_clearOtherTimers'][_0x591097(0x3b8)](_0x37eea9,null);}}['_handleLeaveEvent'](_0x1e1d06){const _0x44f4eb=_0x38a3cb;let {memberID:_0x5e74a6,unitIDs:_0x18cacc}=_0x1e1d06;_0x18cacc[_0x44f4eb(0x1b2)](_0x508fd1=>{const _0x2f7a2a=_0x44f4eb;var _0x36fd03;let _0x991df3=this[_0x2f7a2a(0x28c)][_0x2f7a2a(0x255)](_0x508fd1);_0x991df3&&(_0x991df3[_0x2f7a2a(0x3fb)](_0x5e74a6),(_0x36fd03=this['_ensureSubject'](_0x508fd1))==null||_0x36fd03[_0x2f7a2a(0x1af)](_0x991df3[_0x2f7a2a(0x250)]===0x0?e[_0x2f7a2a(0x236)]['NO_OTHER_CLIENTS_EDITING']:e[_0x2f7a2a(0x236)][_0x2f7a2a(0x2c7)]));}),this[_0x44f4eb(0x2c4)](_0x5e74a6);}['_handleHeartbeatEvent'](_0x39c2d4){const _0x4c188f=_0x38a3cb;this['_scheduleClearOtherTimer'](_0x39c2d4[_0x4c188f(0x3fe)]);}['_send'](_0x12443d){const _0x471ba9=_0x38a3cb;localStorage[_0x471ba9(0x306)]($,JSON['stringify'](_0x12443d));}[_0x38a3cb(0x300)](){const _0x4e6642=_0x38a3cb;this[_0x4e6642(0x28e)]=window[_0x4e6642(0x2e5)](()=>{const _0x303805=_0x4e6642;this[_0x303805(0x3d2)]({'type':0x2,'memberID':this['_id']});},De);}[_0x38a3cb(0x152)](_0x39855d){const _0x491284=_0x38a3cb;return this[_0x491284(0x15c)][_0x491284(0x3ab)](_0x39855d)||this[_0x491284(0x15c)][_0x491284(0x3b8)](_0x39855d,new r[(_0x491284(0x1a0))](e[_0x491284(0x236)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x491284(0x15c)][_0x491284(0x255)](_0x39855d);}};Object[_0x38a3cb(0x33e)](exports,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x38a3cb(0x33e)](exports,_0x38a3cb(0x23d),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x38a3cb(0x33e)](exports,_0x38a3cb(0x1ef),{'enumerable':!0x0,'get':function(){return Q;}}),exports['SheetCollabCursorShape']=I,Object[_0x38a3cb(0x33e)](exports,_0x38a3cb(0x21f),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x38a3cb(0x162)]=Oe;
|
|
1
|
+
const _0x43938c=_0x5041;(function(_0x3f75f5,_0x1cee42){const _0xbce0b0=_0x5041,_0x84514f=_0x3f75f5();while(!![]){try{const _0xc293a2=-parseInt(_0xbce0b0(0x1ac))/0x1*(parseInt(_0xbce0b0(0x295))/0x2)+-parseInt(_0xbce0b0(0x2c1))/0x3*(parseInt(_0xbce0b0(0x3b7))/0x4)+parseInt(_0xbce0b0(0x28f))/0x5*(parseInt(_0xbce0b0(0x36c))/0x6)+parseInt(_0xbce0b0(0x3ed))/0x7*(parseInt(_0xbce0b0(0x3a4))/0x8)+parseInt(_0xbce0b0(0x28c))/0x9+parseInt(_0xbce0b0(0x362))/0xa*(-parseInt(_0xbce0b0(0x451))/0xb)+parseInt(_0xbce0b0(0x443))/0xc*(parseInt(_0xbce0b0(0x3e1))/0xd);if(_0xc293a2===_0x1cee42)break;else _0x84514f['push'](_0x84514f['shift']());}catch(_0x59127c){_0x84514f['push'](_0x84514f['shift']());}}}(_0x52dc,0xda05e),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x43938c(0x1bd)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x5173bd){const _0x3523b7=_0x43938c;switch(_0x5173bd){case e['CollaborationStatus'][_0x3523b7(0x3f4)]:return{'icon':(0x0,c[_0x3523b7(0x2b2)])(o[_0x3523b7(0x3e7)],{}),'colorClass':_0x3523b7(0x3d4),'i18nKey':_0x3523b7(0x350),'tooltipKey':_0x3523b7(0x407),'clickable':!0x0,'indicator':_0x3523b7(0x288)};case e[_0x3523b7(0x32f)][_0x3523b7(0x210)]:return{'icon':(0x0,c['jsx'])(o[_0x3523b7(0x3e7)],{}),'colorClass':_0x3523b7(0x44f),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x3523b7(0x288)};case e[_0x3523b7(0x32f)]['FETCH_MISS']:return{'icon':(0x0,c[_0x3523b7(0x2b2)])(o[_0x3523b7(0x392)],{}),'colorClass':_0x3523b7(0x185),'i18nKey':_0x3523b7(0x467),'clickable':!0x1,'indicator':_0x3523b7(0x34a)};case e[_0x3523b7(0x32f)][_0x3523b7(0x469)]:return{'icon':(0x0,c['jsx'])(o[_0x3523b7(0x46e)],{}),'colorClass':_0x3523b7(0x420),'i18nKey':_0x3523b7(0x335),'clickable':!0x1,'indicator':_0x3523b7(0x288)};case e[_0x3523b7(0x32f)]['AWAITING']:case e[_0x3523b7(0x32f)][_0x3523b7(0x3a5)]:return{'icon':(0x0,c[_0x3523b7(0x2b2)])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x3523b7(0x280),'clickable':!0x1,'indicator':_0x3523b7(0x34a)};case e[_0x3523b7(0x32f)][_0x3523b7(0x1bc)]:return{'icon':(0x0,c[_0x3523b7(0x2b2)])(o[_0x3523b7(0x392)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x3523b7(0x34a)};case e['CollaborationStatus']['SYNCED']:return{'icon':(0x0,c[_0x3523b7(0x2b2)])(o[_0x3523b7(0x46e)],{}),'colorClass':_0x3523b7(0x2b5),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x3523b7(0x288)};}}function te(_0x574254){const _0x55c7ec=_0x43938c;let {status$:_0xe805f}=_0x574254,_0x29ed2f=(0x0,n[_0x55c7ec(0x1f6)])(_0xe805f,e[_0x55c7ec(0x32f)][_0x55c7ec(0x469)]),_0x4439e0=(0x0,n[_0x55c7ec(0x418)])(t[_0x55c7ec(0x391)]),_0x3667db=(0x0,n['useDependency'])(e[_0x55c7ec(0x1a7)]),_0x5324eb=(0x0,s[_0x55c7ec(0x33f)])(()=>ee(_0x29ed2f),[_0x29ed2f]),_0x566b85=_0x29ed2f!==e[_0x55c7ec(0x32f)][_0x55c7ec(0x3f4)],_0x3afc46=_0x4439e0['t'](_0x5324eb['i18nKey']),_0xb5a17c=_0x5324eb[_0x55c7ec(0x448)]?_0x4439e0['t'](_0x5324eb[_0x55c7ec(0x448)]):_0x3afc46,_0x1d6b28=(0x0,s['useCallback'])(()=>{_0x566b85||_0x3667db['reconnect']();},[_0x566b85,_0x3667db]),_0x1bd184=(0x0,s[_0x55c7ec(0x2b9)])(_0x9f512=>{const _0x2b2301=_0x55c7ec;!_0x566b85&&(_0x9f512['key']==='Enter'||_0x9f512[_0x2b2301(0x38d)]==='\x20')&&(_0x9f512['preventDefault'](),_0x3667db[_0x2b2301(0x320)]());},[_0x566b85,_0x3667db]),_0x12f6e8=(0x0,c[_0x55c7ec(0x2b2)])(_0x55c7ec(0x38e),{'className':(0x0,a[_0x55c7ec(0x186)])(_0x55c7ec(0x293),_0x55c7ec(0x22b),_0x5324eb[_0x55c7ec(0x26c)],{'univer-animate-spin':_0x5324eb[_0x55c7ec(0x231)]===_0x55c7ec(0x34a),'univer-animate-pulse':_0x5324eb[_0x55c7ec(0x231)]===_0x55c7ec(0x2a1)}),'aria-hidden':_0x55c7ec(0x181),'children':_0x5324eb[_0x55c7ec(0x326)]}),_0x4c7198=(0x0,c['jsx'])('span',{'className':(0x0,a[_0x55c7ec(0x186)])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x55c7ec(0x2a3),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x5324eb['clickable'],'univer-cursor-default':!_0x5324eb['clickable']}),'children':_0x12f6e8});return _0x5324eb[_0x55c7ec(0x249)]?(0x0,c['jsx'])(a[_0x55c7ec(0x3ca)],{'title':_0xb5a17c,'placement':_0x55c7ec(0x25e),'children':(0x0,c[_0x55c7ec(0x2b2)])('button',{'type':_0x55c7ec(0x477),'onClick':_0x1d6b28,'onKeyDown':_0x1bd184,'className':(0x0,a[_0x55c7ec(0x186)])(_0x55c7ec(0x462),'univer-border-none\x20univer-bg-transparent',_0x55c7ec(0x331),_0x55c7ec(0x209)),'aria-label':_0x3afc46+_0x55c7ec(0x3ce)+_0xb5a17c,'role':_0x55c7ec(0x287),'aria-live':_0x55c7ec(0x28a),'aria-atomic':_0x55c7ec(0x181),'children':_0x4c7198})}):(0x0,c[_0x55c7ec(0x2b2)])(a[_0x55c7ec(0x3ca)],{'title':_0xb5a17c,'placement':_0x55c7ec(0x25e),'children':(0x0,c[_0x55c7ec(0x2b2)])('div',{'className':(0x0,a[_0x55c7ec(0x186)])(_0x55c7ec(0x462),_0x55c7ec(0x47c),_0x55c7ec(0x331)),'aria-label':_0x3afc46,'role':'status','aria-live':_0x55c7ec(0x28a),'aria-atomic':'true','children':_0x4c7198})});}function y(_0x34bb95){'@babel/helpers - typeof';const _0x36898d=_0x43938c;return y=typeof Symbol==_0x36898d(0x1c0)&&typeof Symbol[_0x36898d(0x23a)]=='symbol'?function(_0x5a354c){return typeof _0x5a354c;}:function(_0x291c3c){const _0x3f0ee5=_0x36898d;return _0x291c3c&&typeof Symbol=='function'&&_0x291c3c[_0x3f0ee5(0x3df)]===Symbol&&_0x291c3c!==Symbol[_0x3f0ee5(0x400)]?_0x3f0ee5(0x42c):typeof _0x291c3c;},y(_0x34bb95);}function ne(_0x526356,_0x221d5a){const _0x1bbae1=_0x43938c;if(y(_0x526356)!=_0x1bbae1(0x3a9)||!_0x526356)return _0x526356;var _0x42e03c=_0x526356[Symbol[_0x1bbae1(0x413)]];if(_0x42e03c!==void 0x0){var _0x283b36=_0x42e03c['call'](_0x526356,_0x221d5a||_0x1bbae1(0x3f9));if(y(_0x283b36)!='object')return _0x283b36;throw TypeError(_0x1bbae1(0x1f7));}return(_0x221d5a===_0x1bbae1(0x3b4)?String:Number)(_0x526356);}function re(_0x5f8237){const _0x13d34f=_0x43938c;var _0x133a6b=ne(_0x5f8237,_0x13d34f(0x3b4));return y(_0x133a6b)=='symbol'?_0x133a6b:_0x133a6b+'';}function b(_0x27c4a7,_0x1aa2d9,_0x2ea71a){const _0xdd4021=_0x43938c;return(_0x1aa2d9=re(_0x1aa2d9))in _0x27c4a7?Object[_0xdd4021(0x190)](_0x27c4a7,_0x1aa2d9,{'value':_0x2ea71a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27c4a7[_0x1aa2d9]=_0x2ea71a,_0x27c4a7;}function x(_0x20b566,_0x5f069c){return function(_0x3ff334,_0x39b542){_0x5f069c(_0x3ff334,_0x39b542,_0x20b566);};}function S(_0x2dd413,_0x59d244,_0x2d328a,_0xc0de3c){const _0x56ffb7=_0x43938c;var _0x190781=arguments[_0x56ffb7(0x25c)],_0x3c5958=_0x190781<0x3?_0x59d244:_0xc0de3c===null?_0xc0de3c=Object['getOwnPropertyDescriptor'](_0x59d244,_0x2d328a):_0xc0de3c,_0x4878ba;if(typeof Reflect=='object'&&typeof Reflect[_0x56ffb7(0x43a)]==_0x56ffb7(0x1c0))_0x3c5958=Reflect[_0x56ffb7(0x43a)](_0x2dd413,_0x59d244,_0x2d328a,_0xc0de3c);else{for(var _0x20f290=_0x2dd413['length']-0x1;_0x20f290>=0x0;_0x20f290--)(_0x4878ba=_0x2dd413[_0x20f290])&&(_0x3c5958=(_0x190781<0x3?_0x4878ba(_0x3c5958):_0x190781>0x3?_0x4878ba(_0x59d244,_0x2d328a,_0x3c5958):_0x4878ba(_0x59d244,_0x2d328a))||_0x3c5958);}return _0x190781>0x3&&_0x3c5958&&Object[_0x56ffb7(0x190)](_0x59d244,_0x2d328a,_0x3c5958),_0x3c5958;}let C=class extends t['Disposable']{constructor(_0x7927a7,_0x463a77,_0x204cd2,_0x2f8f50,_0x2746fe){const _0x151107=_0x43938c;super(),this[_0x151107(0x228)]=_0x7927a7,this[_0x151107(0x458)]=_0x463a77,this['_collaborationController']=_0x204cd2,this[_0x151107(0x257)]=_0x2f8f50,this[_0x151107(0x463)]=_0x2746fe,b(this,'_status$',new r[(_0x151107(0x325))](e[_0x151107(0x32f)][_0x151107(0x469)])),b(this,_0x151107(0x256),new Map()),this['_initStatusComponent'](),this[_0x151107(0x29d)](),this['_initPresenceStatusComponents']();}[_0x43938c(0x202)](){const _0x49b17f=_0x43938c;this[_0x49b17f(0x256)]['forEach'](_0x3f2e86=>_0x3f2e86['dispose']()),this[_0x49b17f(0x256)][_0x49b17f(0x270)](),this[_0x49b17f(0x40e)][_0x49b17f(0x183)](),super['dispose']();}['_initStatusListener'](){const _0x4ae013=_0x43938c;this[_0x4ae013(0x198)]((0x0,r[_0x4ae013(0x20f)])(this['_univerInstanceService']['focused$'],this[_0x4ae013(0x228)]['getCurrentTypeOfUnit$'](t[_0x4ae013(0x31f)][_0x4ae013(0x364)]),this[_0x4ae013(0x228)]['getCurrentTypeOfUnit$'](t[_0x4ae013(0x31f)]['UNIVER_SHEET']))[_0x4ae013(0x42a)]((0x0,i[_0x4ae013(0x1ef)])(()=>ie(this[_0x4ae013(0x228)])),(0x0,i[_0x4ae013(0x3a6)])(),(0x0,r['switchMap'])(_0x9cd40d=>_0x9cd40d?this[_0x4ae013(0x219)]['getCollabEntity$'](_0x9cd40d):(0x0,r['of'])(null)),(0x0,r[_0x4ae013(0x3cd)])(_0x4f8e98=>_0x4f8e98?_0x4f8e98[_0x4ae013(0x1e0)]:(0x0,r['of'])(e[_0x4ae013(0x32f)][_0x4ae013(0x469)])))['subscribe'](_0x44126b=>{const _0x556781=_0x4ae013;this[_0x556781(0x40e)]['next'](_0x44126b);}));}[_0x43938c(0x2d8)](){const _0x40caa1=_0x43938c;this['disposeWithMe'](this[_0x40caa1(0x257)][_0x40caa1(0x20c)](n[_0x40caa1(0x361)][_0x40caa1(0x35e)],()=>(0x0,n[_0x40caa1(0x1cd)])(w({'status$':this['_status$'][_0x40caa1(0x1a8)]()}),this[_0x40caa1(0x458)])));}[_0x43938c(0x47d)](){const _0x14c65e=_0x43938c;let _0x96c978=this[_0x14c65e(0x463)]['adapters$'][_0x14c65e(0x3a7)](_0xc5bdc0=>{const _0x2cdd69=_0x14c65e;this[_0x2cdd69(0x30a)](_0xc5bdc0);});this[_0x14c65e(0x198)]((0x0,t[_0x14c65e(0x189)])(()=>_0x96c978[_0x14c65e(0x294)]()));}[_0x43938c(0x30a)](_0xf6441){const _0x5e2d3a=_0x43938c;let _0x3ba201=new Map(_0xf6441[_0x5e2d3a(0x39f)](_0x49c134=>_0x49c134[_0x5e2d3a(0x3b0)]!=null)[_0x5e2d3a(0x1ef)](_0x44ab06=>[_0x44ab06[_0x5e2d3a(0x1ad)],_0x44ab06]));this[_0x5e2d3a(0x256)]['forEach']((_0x14efc9,_0x465aeb)=>{const _0x1620bf=_0x5e2d3a;_0x3ba201[_0x1620bf(0x29f)](_0x465aeb)||(_0x14efc9[_0x1620bf(0x202)](),this[_0x1620bf(0x256)][_0x1620bf(0x354)](_0x465aeb));}),_0x3ba201[_0x5e2d3a(0x28b)]((_0x779a56,_0x4781a3)=>{const _0xa2dba7=_0x5e2d3a;this['_presenceStatusRegistrations'][_0xa2dba7(0x29f)](_0x4781a3)||this['_registerPresenceStatusComponent'](_0x779a56);});}[_0x43938c(0x430)](_0x4904a5){const _0x4d5a58=_0x43938c;let _0x1e1f6f=_0x4904a5[_0x4d5a58(0x3b0)];if(!_0x1e1f6f)return;let _0x24958f=new t[(_0x4d5a58(0x278))](),_0xde530a=new r['BehaviorSubject'](e[_0x4d5a58(0x32f)][_0x4d5a58(0x469)]);_0x24958f[_0x4d5a58(0x315)]((0x0,t['toDisposable'])(()=>_0xde530a[_0x4d5a58(0x183)]())),_0x24958f[_0x4d5a58(0x315)](this[_0x4d5a58(0x257)][_0x4d5a58(0x20c)](_0x1e1f6f,()=>(0x0,n[_0x4d5a58(0x1cd)])(w({'status$':_0xde530a[_0x4d5a58(0x1a8)]()}),this['_injector'])));let _0x57e2de=this['_univerInstanceService'][_0x4d5a58(0x3fc)](_0x4904a5[_0x4d5a58(0x1ad)])[_0x4d5a58(0x42a)]((0x0,i[_0x4d5a58(0x1ef)])(_0x297b9d=>(_0x297b9d==null?void 0x0:_0x297b9d[_0x4d5a58(0x225)]())??null),(0x0,i[_0x4d5a58(0x3a6)])(),(0x0,r[_0x4d5a58(0x3cd)])(_0x3f678b=>_0x3f678b?this[_0x4d5a58(0x219)][_0x4d5a58(0x3f0)](_0x3f678b):(0x0,r['of'])(null)),(0x0,r[_0x4d5a58(0x3cd)])(_0x52e5fa=>(_0x52e5fa==null?void 0x0:_0x52e5fa['status$'])??(0x0,r['of'])(e['CollaborationStatus'][_0x4d5a58(0x469)])))[_0x4d5a58(0x3a7)](_0x79bc1a=>_0xde530a['next'](_0x79bc1a));_0x24958f['add']((0x0,t[_0x4d5a58(0x189)])(()=>_0x57e2de['unsubscribe']())),this[_0x4d5a58(0x256)][_0x4d5a58(0x478)](_0x4904a5['unitType'],_0x24958f);}};C=S([x(0x0,t[_0x43938c(0x201)]),x(0x1,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x2,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x303)])),x(0x3,n[_0x43938c(0x376)]),x(0x4,(0x0,t[_0x43938c(0x360)])(n[_0x43938c(0x2f4)]))],C);function ie(_0x2070a0){const _0x510fbe=_0x43938c;let _0x3f1762=_0x2070a0[_0x510fbe(0x2ce)](),_0x59735e=_0x3f1762==null?void 0x0:_0x3f1762['getUnitId']();if(_0x59735e&&!(0x0,t[_0x510fbe(0x3b2)])(_0x59735e))return _0x59735e;let _0x1f3b1a=_0x2070a0['getCurrentUnitOfType'](t[_0x510fbe(0x31f)][_0x510fbe(0x364)]),_0x421dd7=_0x1f3b1a==null?void 0x0:_0x1f3b1a[_0x510fbe(0x225)]();if(_0x421dd7&&!(0x0,t[_0x510fbe(0x3b2)])(_0x421dd7))return _0x421dd7;let _0x244bfc=_0x2070a0[_0x510fbe(0x3f5)](t[_0x510fbe(0x31f)][_0x510fbe(0x3cf)]);if(_0x244bfc)return _0x244bfc[_0x510fbe(0x225)]();let _0x6a3b37=_0x2070a0[_0x510fbe(0x19c)](t[_0x510fbe(0x31f)][_0x510fbe(0x364)])[_0x510fbe(0x474)](_0x5a4548=>!(0x0,t[_0x510fbe(0x3b2)])(_0x5a4548[_0x510fbe(0x225)]()));return _0x6a3b37?_0x6a3b37[_0x510fbe(0x225)]():null;}function w(_0x5ecc29){let {status$:_0x479d3c}=_0x5ecc29;return function(){return(0x0,c['jsx'])(te,{'status$':_0x479d3c});};}var ae='@univerjs-pro/collaboration-client-ui',oe=_0x43938c(0x39c);const T={'id':_0x43938c(0x30f),'type':t[_0x43938c(0x328)]['OPERATION'],'handler':(_0x32a3e0,_0x69be3f)=>{const _0x4fa69a=_0x43938c;let _0x526225=_0x32a3e0[_0x4fa69a(0x2b0)](n[_0x4fa69a(0x2f4)])[_0x4fa69a(0x2b0)](_0x69be3f[_0x4fa69a(0x1ad)]);if(!_0x526225)return!0x1;switch(_0x69be3f['update']['type']){case _0x4fa69a(0x478):return _0x526225[_0x4fa69a(0x1b8)](_0x69be3f['update'][_0x4fa69a(0x188)]),!0x0;case _0x4fa69a(0x254):return _0x526225['removeRemotePresence'](_0x69be3f['update']['unitId'],_0x69be3f[_0x4fa69a(0x23e)][_0x4fa69a(0x387)]),!0x0;case'clear':return _0x526225[_0x4fa69a(0x243)](_0x69be3f[_0x4fa69a(0x23e)][_0x4fa69a(0x410)]),!0x0;default:return!0x1;}}},se={};let E=class extends t[_0x43938c(0x1bf)]{constructor(_0x51f143,_0x24a549){const _0x5a06f8=_0x43938c;super(),this[_0x5a06f8(0x415)]=_0x51f143,this[_0x5a06f8(0x34f)]=_0x24a549,this[_0x5a06f8(0x42f)]();}[_0x43938c(0x42f)](){const _0x371077=_0x43938c;let _0x1c1e5f=this;this[_0x371077(0x198)](this[_0x371077(0x415)][_0x371077(0x32d)]({'onBeforePasteImage':async _0x36a037=>{const _0x47b04d=_0x371077;let _0x2c5c16=await _0x1c1e5f['_imageIoService'][_0x47b04d(0x2bf)](_0x36a037);return _0x2c5c16?{'source':_0x2c5c16[_0x47b04d(0x235)],'imageSourceType':_0x2c5c16[_0x47b04d(0x1c8)]}:null;}}));}};E=S([x(0x0,f[_0x43938c(0x2d7)]),x(0x1,t['IImageIoService'])],E);const ce=['purple.300',_0x43938c(0x33a),'green.600','red.300','blue.400','yellow.400'];var D=class extends t['Disposable']{constructor(..._0x5d1c53){const _0x2032bc=_0x43938c;super(..._0x5d1c53),b(this,'_assignedColors',new Map()),b(this,_0x2032bc(0x3da),0x0);}[_0x43938c(0x2f6)](_0x15a0f3){const _0x28d0fa=_0x43938c;if(this[_0x28d0fa(0x3a2)][_0x28d0fa(0x29f)](_0x15a0f3))return this[_0x28d0fa(0x3a2)]['get'](_0x15a0f3);let _0x27327f=ce[this[_0x28d0fa(0x3da)]];return this[_0x28d0fa(0x3da)]=(this[_0x28d0fa(0x3da)]+0x1)%ce['length'],this['_assignedColors'][_0x28d0fa(0x478)](_0x15a0f3,_0x27327f),_0x27327f;}};function le(_0x27c928){const _0x26e8b6=_0x43938c;let _0x2fde53='';for(let _0x49b626 of _0x27c928){let {startOffset:_0x3a0758,endOffset:_0x2f2c30,isActive:_0x5c6186,rangeType:_0x33ee23,segmentId:_0x596371,segmentPage:_0x12f3a0}=_0x49b626;_0x2fde53[_0x26e8b6(0x25c)]&&(_0x2fde53+=','),_0x2fde53+=_0x3a0758+':'+_0x2f2c30+':'+(_0x5c6186?'1':'0')+':'+_0x33ee23+':'+_0x596371+':'+_0x12f3a0;}return _0x2fde53;}function ue(_0x5ba81b){const _0x5bd246=_0x43938c;let _0x3cf339=_0x5ba81b['split'](','),_0x471853=[];for(let _0x59e3b2 of _0x3cf339){let [_0x5dc4e0,_0x299326,_0x575ceb,_0x1e1373,_0x1424ce,_0x3691a9]=_0x59e3b2[_0x5bd246(0x2eb)](':');_0x471853['push']({'startOffset':Number(_0x5dc4e0),'endOffset':Number(_0x299326),'collapsed':_0x5dc4e0===_0x299326,'isActive':_0x575ceb==='1','rangeType':_0x1e1373===t[_0x5bd246(0x432)][_0x5bd246(0x3f3)]?t[_0x5bd246(0x432)][_0x5bd246(0x3f3)]:t[_0x5bd246(0x432)][_0x5bd246(0x25f)],'segmentId':typeof _0x1424ce==_0x5bd246(0x3b4)?String(_0x1424ce):'','segmentPage':Number(_0x3691a9??-0x1)});}return _0x471853[_0x5bd246(0x2c7)](_0x28390a=>_0x28390a['isActive'])||(_0x471853[0x0][_0x5bd246(0x440)]=!0x0),_0x471853;}var O=class extends t[_0x43938c(0x1bf)]{constructor(..._0x819eb3){const _0x2badde=_0x43938c;super(..._0x819eb3),b(this,_0x2badde(0x3ab),new r['BehaviorSubject'](null)),b(this,'collabCursorState$',this[_0x2badde(0x3ab)]['asObservable']());}['syncEditingCollabCursor'](_0x580562){const _0x30122a=_0x43938c;let {unitID:_0x2ff49b,memberID:_0x483993,textRanges:_0x5dca64}=_0x580562,_0x12334b=le(_0x5dca64);if(_0x12334b==='')return;let _0xaeb4ca={'unitID':_0x2ff49b,'memberID':_0x483993,'selection':_0x12334b};this[_0x30122a(0x3ab)][_0x30122a(0x1a4)](_0xaeb4ca);}};let k=class extends t[_0x43938c(0x1bf)]{get['cursorInfo'](){const _0x3e9772=_0x43938c;return this['_cursorInfo$'][_0x3e9772(0x237)]();}get[_0x43938c(0x370)](){const _0x10d407=_0x43938c;return this[_0x10d407(0x351)][_0x10d407(0x237)]();}constructor(_0x12650a,_0x2316b5,_0x34dc0a,_0x209f45,_0x3e7898,_0x10d331,_0xc29388,_0x158a4b,_0x531e09){const _0x239613=_0x43938c;super(),this['unitID']=_0x12650a,this[_0x239613(0x265)]=_0x2316b5,this['_injector']=_0x34dc0a,this[_0x239613(0x452)]=_0x209f45,this[_0x239613(0x475)]=_0x3e7898,this[_0x239613(0x371)]=_0x10d331,this[_0x239613(0x240)]=_0xc29388,this['_univerInstanceService']=_0x158a4b,this['_commandService']=_0x531e09,b(this,_0x239613(0x34d),!0x1),b(this,'_init',!0x1),b(this,_0x239613(0x3ad),new r[(_0x239613(0x325))](new Map())),b(this,_0x239613(0x216),this[_0x239613(0x3ad)][_0x239613(0x1a8)]()),b(this,_0x239613(0x351),new r[(_0x239613(0x325))]([])),b(this,'roomMembers$',this[_0x239613(0x351)][_0x239613(0x42a)]((0x0,r[_0x239613(0x446)])(0x12c))),b(this,_0x239613(0x349),(0x0,t[_0x239613(0x2cc)])(_0x3dde86=>{const _0x4289d9=_0x239613;let _0x1e6df5={'eventID':l[_0x4289d9(0x1f2)][_0x4289d9(0x2fd)],'data':{'unitID':this[_0x4289d9(0x250)],'memberID':this['_session'][_0x4289d9(0x393)](),'selection':le(_0x3dde86)}};this[_0x4289d9(0x265)][_0x4289d9(0x251)](_0x1e6df5,this[_0x4289d9(0x250)]);},0x64));}[_0x43938c(0x202)](){const _0x588fbb=_0x43938c;super[_0x588fbb(0x202)](),this[_0x588fbb(0x3ad)][_0x588fbb(0x1a4)](new Map()),this['_cursorInfo$'][_0x588fbb(0x183)](),this[_0x588fbb(0x351)][_0x588fbb(0x1a4)]([]),this[_0x588fbb(0x351)][_0x588fbb(0x183)]();}[_0x43938c(0x427)](){const _0x380c2a=_0x43938c;this['_init']||(this[_0x380c2a(0x42f)]=!0x0,this[_0x380c2a(0x265)]['sessionStatus$'][_0x380c2a(0x42a)]((0x0,r[_0x380c2a(0x406)])(this[_0x380c2a(0x271)]))[_0x380c2a(0x3a7)](_0x47b5e3=>{const _0xda6e3a=_0x380c2a;_0x47b5e3===e[_0xda6e3a(0x3fe)][_0xda6e3a(0x34c)]?this[_0xda6e3a(0x479)]():this[_0xda6e3a(0x447)]();}),this[_0x380c2a(0x265)][_0x380c2a(0x2e8)][_0x380c2a(0x42a)]((0x0,r['takeUntil'])(this[_0x380c2a(0x271)]))['subscribe'](_0x41e102=>{const _0x189b4c=_0x380c2a;let _0x280295=_0x41e102['eventID'];_0x280295===l['CollaborationEvent'][_0x189b4c(0x2fd)]&&this['_onCursorUpdate'](_0x41e102),_0x280295===l[_0x189b4c(0x1f2)]['USERS_LEAVE']&&this[_0x189b4c(0x1cc)](_0x41e102);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2256cc=>{const _0x295018=_0x380c2a;let _0x2a4d8d=_0x2256cc[_0x295018(0x1c5)];_0x2a4d8d!=null&&this[_0x295018(0x34d)]&&_0x2256cc['id']===d[_0x295018(0x424)]['id']&&_0x2a4d8d[_0x295018(0x410)]===this['unitID']&&_0x2a4d8d[_0x295018(0x31a)]===!0x1&&_0x2a4d8d[_0x295018(0x17a)][_0x295018(0x25c)]>0x0&&this[_0x295018(0x349)](_0x2a4d8d[_0x295018(0x17a)]);})),this['_syncEditingCollabCursorService'][_0x380c2a(0x3b8)][_0x380c2a(0x42a)]((0x0,r[_0x380c2a(0x406)])(this[_0x380c2a(0x271)]))[_0x380c2a(0x3a7)](_0x307cdf=>{const _0x281626=_0x380c2a;if((_0x307cdf==null?void 0x0:_0x307cdf[_0x281626(0x250)])!==this[_0x281626(0x250)])return;let _0x105221={'eventID':l[_0x281626(0x1f2)]['UPDATE_CURSOR'],'data':_0x307cdf};this[_0x281626(0x1cf)](_0x105221);}),this[_0x380c2a(0x198)](this[_0x380c2a(0x1ee)]['onCommandExecuted'](_0x244413=>{const _0x5aa123=_0x380c2a;if(_0x244413[_0x5aa123(0x1c5)]==null)return;let _0x56cf2f=_0x244413[_0x5aa123(0x1c5)];if(_0x244413['id']!==d['RichTextEditingMutation']['id']||_0x56cf2f[_0x5aa123(0x410)]!==this['unitID'])return;let _0xe88c7c={'id':_0x5aa123(0x473),'params':_0x56cf2f},_0x23ae77=this['cursorInfo'];for(let [_0x528a8b,_0x261972]of _0x23ae77){let _0x38fee3={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x5aa123(0x250)],'actions':null,'textRanges':_0x261972[_0x5aa123(0x17a)]}},_0x3cc4a6=this['_transformService'][_0x5aa123(0x281)](_0xe88c7c,_0x38fee3,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x3cc4a6))throw _0x3cc4a6[_0x5aa123(0x22f)];_0x23ae77[_0x5aa123(0x478)](_0x528a8b,{..._0x261972,'ranges':_0x3cc4a6['m2Prime'][_0x5aa123(0x1c5)]['textRanges']});}queueMicrotask(()=>{const _0x1842c2=_0x5aa123;this['_cursorInfo$'][_0x1842c2(0x1a4)](_0x23ae77);});})));}['_onCursorUpdate'](_0x50d883){const _0x35e950=_0x43938c;var _0x3ce449;let {memberID:_0x5472ce,selection:_0x302543}=_0x50d883[_0x35e950(0x187)],_0x5cfcb5=ue(_0x302543),_0x5861d3=((_0x3ce449=this[_0x35e950(0x475)][_0x35e950(0x267)](this['unitID'],_0x5472ce))==null?void 0x0:_0x3ce449[_0x35e950(0x302)])??_0x35e950(0x348),_0x2a0830={'color':this['_colorAssignService'][_0x35e950(0x2f6)](_0x5472ce),'name':_0x5861d3,'ranges':_0x5cfcb5},_0x32ea8b=this[_0x35e950(0x1e9)];_0x32ea8b[_0x35e950(0x478)](_0x5472ce,_0x2a0830),this[_0x35e950(0x3ad)][_0x35e950(0x1a4)](_0x32ea8b);}[_0x43938c(0x1cc)](_0x44fb1a){const _0x33f969=_0x43938c;let {memberID:_0x13f6ac}=_0x44fb1a[_0x33f969(0x187)],_0xa3e558=this[_0x33f969(0x1e9)];_0xa3e558[_0x33f969(0x354)](_0x13f6ac),this[_0x33f969(0x3ad)]['next'](_0xa3e558);}['_toggleOnline'](){const _0x5e0d45=_0x43938c;var _0x5a86d2;if(this[_0x5e0d45(0x34d)]=!0x0,((_0x5a86d2=this[_0x5e0d45(0x228)]['getFocusedUnit']())==null?void 0x0:_0x5a86d2[_0x5e0d45(0x225)]())!==this[_0x5e0d45(0x250)])return;let _0x2eae7e=this['_injector'][_0x5e0d45(0x2b0)](d['DocSelectionManagerService'])[_0x5e0d45(0x3e8)]();Array[_0x5e0d45(0x244)](_0x2eae7e)&&_0x2eae7e[_0x5e0d45(0x25c)]>0x0&&this['_updateLocalCursor'](_0x2eae7e);}['_toggleOffline'](){const _0x1a5aee=_0x43938c;this[_0x1a5aee(0x34d)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x306)])),x(0x5,(0x0,t[_0x43938c(0x360)])(O)),x(0x6,l[_0x43938c(0x314)]),x(0x7,t[_0x43938c(0x201)]),x(0x8,t[_0x43938c(0x261)])],k);const de=()=>{let _0x122174=[],_0x23bb61=!0x1;return _0x5d3f75=>{const _0x660317=_0x5041;_0x122174[_0x660317(0x34e)](_0x5d3f75),_0x23bb61||(_0x23bb61=!0x0,setTimeout(()=>{const _0x3208c0=_0x660317;_0x122174[_0x3208c0(0x28b)](_0x41cb5e=>_0x41cb5e()),_0x122174=[],_0x23bb61=!0x1;}));};};let A=class extends t[_0x43938c(0x1bf)]{get['cursorInfo'](){const _0x3b5927=_0x43938c;return this[_0x3b5927(0x3ad)][_0x3b5927(0x237)]();}get[_0x43938c(0x370)](){const _0x1892b5=_0x43938c;return this[_0x1892b5(0x351)][_0x1892b5(0x237)]();}constructor(_0x4d1289,_0x14be8f,_0x235153,_0x39297d,_0x3da7fc,_0x372e12,_0x21ac2d,_0x4124de){const _0x4bc347=_0x43938c;super(),this[_0x4bc347(0x250)]=_0x4d1289,this['_session']=_0x14be8f,this[_0x4bc347(0x458)]=_0x235153,this[_0x4bc347(0x452)]=_0x39297d,this[_0x4bc347(0x475)]=_0x3da7fc,this[_0x4bc347(0x228)]=_0x372e12,this[_0x4bc347(0x1ee)]=_0x21ac2d,this[_0x4bc347(0x17e)]=_0x4124de,b(this,_0x4bc347(0x34d),!0x1),b(this,'_init',!0x1),b(this,_0x4bc347(0x3ad),new r[(_0x4bc347(0x325))](new Map())),b(this,'cursorInfo$',this[_0x4bc347(0x3ad)]['asObservable']()),b(this,_0x4bc347(0x351),new r['BehaviorSubject']([])),b(this,'roomMembers$',this[_0x4bc347(0x351)][_0x4bc347(0x42a)]((0x0,r['debounceTime'])(0x12c))),b(this,_0x4bc347(0x349),(0x0,t[_0x4bc347(0x2cc)])((_0x51baef,_0xab42e)=>{const _0x3ecd9c=_0x4bc347;let _0x506223={'eventID':l[_0x3ecd9c(0x1f2)][_0x3ecd9c(0x2fd)],'data':{'unitID':this[_0x3ecd9c(0x250)],'memberID':this[_0x3ecd9c(0x265)][_0x3ecd9c(0x393)](),'selection':(0x0,h[_0x3ecd9c(0x24e)])(_0x51baef,_0xab42e[_0x3ecd9c(0x355)])}};this[_0x3ecd9c(0x265)]['send'](_0x506223,this[_0x3ecd9c(0x250)]);},0x64));}[_0x43938c(0x202)](){const _0x34a35d=_0x43938c;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x34a35d(0x3ad)]['complete'](),this[_0x34a35d(0x351)]['next']([]),this['_roomMembers$'][_0x34a35d(0x183)]();}[_0x43938c(0x427)](){const _0xd7c584=_0x43938c;this['_init']||(this[_0xd7c584(0x42f)]=!0x0,this['_session']['sessionStatus$'][_0xd7c584(0x42a)]((0x0,r[_0xd7c584(0x406)])(this[_0xd7c584(0x271)]))[_0xd7c584(0x3a7)](_0x2366be=>{const _0x3e809c=_0xd7c584;_0x2366be===e[_0x3e809c(0x3fe)][_0x3e809c(0x34c)]?this[_0x3e809c(0x479)]():this['_toggleOffline']();}),this[_0xd7c584(0x265)][_0xd7c584(0x2e8)]['pipe']((0x0,r['takeUntil'])(this[_0xd7c584(0x271)]))[_0xd7c584(0x3a7)](_0x3a4a12=>{const _0x3d988c=_0xd7c584;let _0x6bad86=_0x3a4a12[_0x3d988c(0x20b)];_0x6bad86===l['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x3d988c(0x1cf)](_0x3a4a12),_0x6bad86===l['CollaborationEvent'][_0x3d988c(0x255)]&&this['_onCursorDelete'](_0x3a4a12);}),this['_onRefRangeChange'](),this[_0xd7c584(0x198)](this[_0xd7c584(0x1ee)]['onCommandExecuted'](_0x581212=>{const _0x4336a3=_0xd7c584;if(this[_0x4336a3(0x34d)]&&_0x581212['id']===g['SetSelectionsOperation']['id']&&_0x581212[_0x4336a3(0x1c5)][_0x4336a3(0x410)]===this[_0x4336a3(0x250)]){let _0x5cb7ff=_0x581212['params'];this['_updateLocalCursor'](_0x5cb7ff[_0x4336a3(0x3ac)],_0x5cb7ff[_0x4336a3(0x3d9)][0x0]);}})));}[_0x43938c(0x1cf)](_0x2a97a8){const _0x49797a=_0x43938c;var _0x4097a3;let {memberID:_0x205b48,selection:_0x29a9c8}=_0x2a97a8[_0x49797a(0x187)],{sheetName:_0x159d50,range:_0x2dfeee}=(0x0,h[_0x49797a(0x30b)])(_0x29a9c8),_0x25629c={'name':((_0x4097a3=this['_memberService'][_0x49797a(0x267)](this[_0x49797a(0x250)],_0x205b48))==null?void 0x0:_0x4097a3[_0x49797a(0x302)])??'Unknown\x20user','range':this[_0x49797a(0x44b)](_0x159d50,_0x2dfeee),'sheetID':_0x159d50,'color':this['_colorAssignService'][_0x49797a(0x2f6)](_0x205b48),'selection':_0x29a9c8},_0x41e70a=this[_0x49797a(0x1e9)];_0x41e70a[_0x49797a(0x478)](_0x205b48,_0x25629c),this['_cursorInfo$']['next'](_0x41e70a);}['_onCursorDelete'](_0x37ab66){const _0x5db6ef=_0x43938c;let {memberID:_0x44a6e9}=_0x37ab66[_0x5db6ef(0x187)],_0x18f08a=this[_0x5db6ef(0x1e9)];_0x18f08a[_0x5db6ef(0x354)](_0x44a6e9),this['_cursorInfo$']['next'](_0x18f08a);}[_0x43938c(0x44b)](_0x176fa1,_0x1f72fb){const _0x539234=_0x43938c;var _0x487874;let _0x2141fd=(_0x487874=this[_0x539234(0x228)]['getUnit'](this[_0x539234(0x250)],t['UniverInstanceType'][_0x539234(0x3cf)]))==null||(_0x487874=_0x487874['getSheetBySheetId'](_0x176fa1))==null?void 0x0:_0x487874[_0x539234(0x372)]();return(_0x2141fd==null?void 0x0:_0x2141fd[_0x539234(0x474)](_0x3526f6=>t[_0x539234(0x221)]['contains'](_0x3526f6,_0x1f72fb)))||_0x1f72fb;}[_0x43938c(0x3e9)](){const _0x188c28=_0x43938c;let _0x5f1d10=new t[(_0x188c28(0x278))](),_0x455d25=de(),_0x16f072=()=>{const _0x21539f=_0x188c28;_0x5f1d10[_0x21539f(0x202)]();let _0x161aae=(_0x32f681,_0x242ef8,_0x7d9782,_0x1a6bca)=>{const _0x4463fb=_0x21539f;let _0x2978c3=[];switch(_0x32f681['id']){case g['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:_0x2978c3=(0x0,g['handleDeleteRangeMoveLeft'])(_0x32f681,_0x1a6bca);break;case g['EffectRefRangId'][_0x4463fb(0x19f)]:_0x2978c3=(0x0,g['handleDeleteRangeMoveUp'])(_0x32f681,_0x1a6bca);break;case g['EffectRefRangId'][_0x4463fb(0x399)]:_0x2978c3=(0x0,g[_0x4463fb(0x33b)])(_0x32f681,_0x1a6bca);break;case g['EffectRefRangId'][_0x4463fb(0x3c6)]:_0x2978c3=(0x0,g[_0x4463fb(0x42b)])(_0x32f681,_0x1a6bca);break;case g[_0x4463fb(0x386)][_0x4463fb(0x1da)]:_0x2978c3=(0x0,g[_0x4463fb(0x2bd)])(_0x32f681,_0x1a6bca);break;case g['EffectRefRangId'][_0x4463fb(0x368)]:_0x2978c3=(0x0,g[_0x4463fb(0x36f)])(_0x32f681,_0x1a6bca);break;case g[_0x4463fb(0x386)][_0x4463fb(0x200)]:_0x2978c3=(0x0,g[_0x4463fb(0x43c)])(_0x32f681,_0x1a6bca);break;case g[_0x4463fb(0x386)][_0x4463fb(0x343)]:_0x2978c3=(0x0,g['handleIRemoveCol'])(_0x32f681,_0x1a6bca);break;case g[_0x4463fb(0x386)]['RemoveRowCommandId']:_0x2978c3=(0x0,g[_0x4463fb(0x2fe)])(_0x32f681,_0x1a6bca);}let _0x523fa0=(0x0,g['runRefRangeMutations'])(_0x2978c3,_0x1a6bca),_0xed01e4=this['cursorInfo'][_0x4463fb(0x2b0)](_0x242ef8);if(_0xed01e4&&_0x523fa0){let _0x3c31f4={..._0xed01e4,'range':_0x523fa0};this[_0x4463fb(0x1e9)][_0x4463fb(0x478)](_0x242ef8,_0x3c31f4),_0x455d25(()=>{const _0x572cb8=_0x4463fb;let _0x37ed6e=this['_refRangeService'][_0x572cb8(0x21d)](_0x523fa0,_0x4639a4=>(_0x37ed6e[_0x572cb8(0x202)](),_0x161aae(_0x4639a4,_0x242ef8,_0x7d9782,_0x523fa0)));_0x5f1d10[_0x572cb8(0x315)](_0x37ed6e);});}return{'redos':[],'undos':[]};};this[_0x21539f(0x1e9)][_0x21539f(0x28b)]((_0x2f7e12,_0xe3c3c7)=>{const _0x495609=_0x21539f;let {range:_0x1a69ef,sheetID:_0x2641fc}=_0x2f7e12,_0x156e47=this[_0x495609(0x17e)][_0x495609(0x21d)](_0x1a69ef,_0x325995=>(_0x156e47['dispose'](),_0x161aae(_0x325995,_0xe3c3c7,_0x2641fc,_0x1a69ef)));_0x5f1d10['add'](_0x156e47);});};this[_0x188c28(0x198)]((0x0,t[_0x188c28(0x189)])(this[_0x188c28(0x3ad)][_0x188c28(0x3a7)](()=>{_0x16f072();})));}[_0x43938c(0x479)](){const _0xfca70c=_0x43938c;var _0x4b423b,_0x12bdc0;if(this[_0xfca70c(0x34d)]=!0x0,((_0x4b423b=this['_univerInstanceService'][_0xfca70c(0x2ce)]())==null?void 0x0:_0x4b423b[_0xfca70c(0x225)]())!==this[_0xfca70c(0x250)])return;let _0x2dcea6=(_0x12bdc0=this[_0xfca70c(0x458)][_0xfca70c(0x2b0)](g['SheetsSelectionsService'])[_0xfca70c(0x1c6)]())==null?void 0x0:_0x12bdc0[0x0],_0x58b12f=this['_univerInstanceService'][_0xfca70c(0x3f5)](t[_0xfca70c(0x31f)]['UNIVER_SHEET'])[_0xfca70c(0x340)]();_0x2dcea6&&_0x58b12f&&this[_0xfca70c(0x349)](_0x58b12f['getSheetId'](),_0x2dcea6);}[_0x43938c(0x447)](){const _0x4856b7=_0x43938c;this[_0x4856b7(0x34d)]=!0x1;}};A=S([x(0x2,(0x0,t['Inject'])(t[_0x43938c(0x2c2)])),x(0x3,(0x0,t[_0x43938c(0x360)])(D)),x(0x4,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x306)])),x(0x5,t[_0x43938c(0x201)]),x(0x6,t[_0x43938c(0x261)]),x(0x7,(0x0,t[_0x43938c(0x360)])(g[_0x43938c(0x3f7)]))],A);let j=class extends t[_0x43938c(0x1bf)]{constructor(_0x1a5da7,_0x1fe885,_0x2061af){const _0x17dd88=_0x43938c;super(),this['_univerInstanceService']=_0x1a5da7,this[_0x17dd88(0x458)]=_0x1fe885,this[_0x17dd88(0x434)]=_0x2061af,b(this,'_entities',new Map()),b(this,'_entityInit$',new r[(_0x17dd88(0x429))]()),this[_0x17dd88(0x42f)]();}[_0x43938c(0x202)](){const _0x5bdfbc=_0x43938c;super[_0x5bdfbc(0x202)](),this[_0x5bdfbc(0x3fd)]['complete'](),this[_0x5bdfbc(0x2a7)][_0x5bdfbc(0x28b)](_0x1a1ad8=>_0x1a1ad8['dispose']());}[_0x43938c(0x28e)](_0x25aef3){const _0x31a3a7=_0x43938c;let _0x8bd794=this[_0x31a3a7(0x2a7)][_0x31a3a7(0x2b0)](_0x25aef3);return _0x8bd794?_0x8bd794[_0x31a3a7(0x216)]:this[_0x31a3a7(0x3fd)]['pipe']((0x0,r[_0x31a3a7(0x39f)])(_0x4d3036=>_0x4d3036['unitID']===_0x25aef3),(0x0,r[_0x31a3a7(0x3cd)])(_0x5d1e0e=>_0x5d1e0e['cursorInfo$']));}[_0x43938c(0x42f)](){const _0xcd3c74=_0x43938c;this[_0xcd3c74(0x228)][_0xcd3c74(0x1d0)](t[_0xcd3c74(0x31f)][_0xcd3c74(0x3cf)])['pipe']((0x0,r[_0xcd3c74(0x406)])(this[_0xcd3c74(0x271)]))[_0xcd3c74(0x3a7)](async _0x499274=>{const _0x2cabd5=_0xcd3c74;let _0x43e935=_0x499274[_0x2cabd5(0x37e)][_0x2cabd5(0x225)](),_0xe5772c=await this[_0x2cabd5(0x1e8)](_0x43e935);this[_0x2cabd5(0x3fd)]['next'](_0xe5772c),this[_0x2cabd5(0x2a7)]['set'](_0x43e935,_0xe5772c);}),this[_0xcd3c74(0x228)][_0xcd3c74(0x1d0)](t[_0xcd3c74(0x31f)]['UNIVER_DOC'])[_0xcd3c74(0x42a)]((0x0,r[_0xcd3c74(0x406)])(this[_0xcd3c74(0x271)]))['pipe']((0x0,r[_0xcd3c74(0x39f)])(_0x32dd8f=>!_0x32dd8f[_0xcd3c74(0x37e)]['getUnitId']()[_0xcd3c74(0x2ac)]('__')))[_0xcd3c74(0x3a7)](async _0xefe874=>{const _0x1b10a1=_0xcd3c74;let {unit:_0x648a51}=_0xefe874,_0x349610=_0x648a51[_0x1b10a1(0x225)](),_0x578e75=await this['_startDocCollabCursor'](_0x349610);this[_0x1b10a1(0x3fd)]['next'](_0x578e75),this[_0x1b10a1(0x2a7)]['set'](_0x349610,_0x578e75);}),(0x0,r['merge'])(this[_0xcd3c74(0x228)][_0xcd3c74(0x2e9)](t[_0xcd3c74(0x31f)][_0xcd3c74(0x364)]),this['_univerInstanceService'][_0xcd3c74(0x2e9)](t['UniverInstanceType'][_0xcd3c74(0x3cf)]))[_0xcd3c74(0x42a)]((0x0,r['takeUntil'])(this[_0xcd3c74(0x271)]))[_0xcd3c74(0x3a7)](_0x4f69e2=>{const _0x2b27ab=_0xcd3c74;let _0x333e48=_0x4f69e2[_0x2b27ab(0x225)](),_0x356a41=this['_entities']['get'](_0x333e48);_0x356a41&&(_0x356a41['dispose'](),this['_entities'][_0x2b27ab(0x354)](_0x333e48));});}async[_0x43938c(0x1e8)](_0x1db288){const _0x53c1f5=_0x43938c;let _0x9e9380=await this['_collabSessionService'][_0x53c1f5(0x2cf)](_0x1db288),_0x6d9519=this[_0x53c1f5(0x458)]['createInstance'](A,_0x1db288,_0x9e9380);return _0x6d9519[_0x53c1f5(0x427)](),_0x6d9519;}async[_0x43938c(0x2e4)](_0x53cd59){const _0x43c1be=_0x43938c;let _0x35c46c=await this[_0x43c1be(0x434)]['requireSession'](_0x53cd59),_0x3dfd37=this[_0x43c1be(0x458)][_0x43c1be(0x24a)](k,_0x53cd59,_0x35c46c);return _0x3dfd37[_0x43c1be(0x427)](),_0x3dfd37;}};j=S([x(0x0,t[_0x43938c(0x201)]),x(0x1,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x2,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x1a7)]))],j);function M(_0x5db5ee,_0xfb8b41){const _0x35ef88=_0x43938c;_0x5db5ee[_0x35ef88(0x3a0)](),_0x5db5ee[_0x35ef88(0x17d)]=_0x35ef88(0x333);let _0x5d0797=_0x5db5ee[_0x35ef88(0x41b)](_0xfb8b41)[_0x35ef88(0x1f1)];return _0x5db5ee[_0x35ef88(0x241)](),Math[_0x35ef88(0x2f0)](_0x5d0797+0x8,0xc8);}function fe(_0x440dba,_0x2b17e8){const _0x5ae3cc=_0x43938c;let {radius:_0x29d5cf,width:_0x4888f7,height:_0x1c7c2c}=_0x2b17e8;_0x29d5cf??=0x0,_0x4888f7??=0x1e,_0x1c7c2c??=0x1e;let _0x100949=0x0,_0x3c60a6=0x0,_0xd276af=0x0;_0x100949=_0x3c60a6=_0xd276af=Math['min'](_0x29d5cf,_0x4888f7/0x2,_0x1c7c2c/0x2),_0x440dba['beginPath'](),_0x440dba['moveTo'](_0x100949,0x0),_0x440dba[_0x5ae3cc(0x466)](_0x4888f7-_0x3c60a6,0x0),_0x440dba[_0x5ae3cc(0x2e7)](_0x4888f7-_0x3c60a6,_0x3c60a6,_0x3c60a6,Math['PI']*0x3/0x2,0x0,!0x1),_0x440dba[_0x5ae3cc(0x466)](_0x4888f7,_0x1c7c2c-_0xd276af),_0x440dba[_0x5ae3cc(0x2e7)](_0x4888f7-_0xd276af,_0x1c7c2c-_0xd276af,_0xd276af,0x0,Math['PI']/0x2,!0x1),_0x440dba[_0x5ae3cc(0x466)](0x0,_0x1c7c2c),_0x440dba[_0x5ae3cc(0x466)](0x0,_0x100949),_0x440dba['arc'](_0x100949,_0x100949,_0x100949,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x440dba['closePath'](),_0x2b17e8[_0x5ae3cc(0x268)]&&(_0x440dba['save'](),_0x440dba[_0x5ae3cc(0x1d7)]=_0x2b17e8[_0x5ae3cc(0x268)],_0x2b17e8[_0x5ae3cc(0x19a)]===_0x5ae3cc(0x419)?_0x440dba['fill'](_0x5ae3cc(0x419)):_0x440dba[_0x5ae3cc(0x268)](),_0x440dba[_0x5ae3cc(0x241)]());}var pe=class e extends p[_0x43938c(0x195)]{constructor(_0x43c24a,_0x9fcb8e){const _0x22d53d=_0x43938c;super(_0x43c24a,_0x9fcb8e),b(this,'color',void 0x0),b(this,'text',void 0x0),this['color']=_0x9fcb8e==null?void 0x0:_0x9fcb8e[_0x22d53d(0x1df)],this[_0x22d53d(0x2ef)]=_0x9fcb8e==null?void 0x0:_0x9fcb8e[_0x22d53d(0x2ef)];}static['drawWith'](_0x3294d6,_0x2752c2){const _0x5bc572=_0x43938c;let {text:_0x14a7e7,color:_0x4aed3b}=_0x2752c2;_0x3294d6[_0x5bc572(0x3a0)](),_0x3294d6[_0x5bc572(0x17d)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0xde6102=_0x3294d6[_0x5bc572(0x41b)](_0x14a7e7)[_0x5bc572(0x1f1)];if(fe(_0x3294d6,{'height':0x14,'radius':0x4,'width':M(_0x3294d6,_0x14a7e7),'fill':_0x4aed3b,'evented':!0x1}),_0x3294d6[_0x5bc572(0x1d7)]=_0x5bc572(0x1be),_0xde6102>0xc0){let _0x522e77='',_0x348c4f=0x0;for(let _0x4d7f78 of _0x14a7e7){let _0x52b648=_0x3294d6[_0x5bc572(0x41b)](_0x4d7f78)[_0x5bc572(0x1f1)];if(_0x348c4f+_0x52b648<=0xc0-_0x3294d6[_0x5bc572(0x41b)](_0x5bc572(0x1ba))['width'])_0x522e77+=_0x4d7f78,_0x348c4f+=_0x52b648;else{_0x522e77+='...';break;}}_0x3294d6[_0x5bc572(0x2db)](_0x522e77,0x4,0xf);}else _0x3294d6[_0x5bc572(0x2db)](_0x14a7e7,0x4,0xf);_0x3294d6[_0x5bc572(0x241)]();}[_0x43938c(0x1e4)](_0x347504){const _0x1b186a=_0x43938c;e[_0x1b186a(0x2f3)](_0x347504,this);}};const N=_0x43938c(0x22a);var me=class{constructor(_0xd0831d,_0x37adb8,_0x219ca4,_0x541320){const _0x4b4b26=_0x43938c;this[_0x4b4b26(0x22c)]=_0xd0831d,this[_0x4b4b26(0x1a9)]=_0x37adb8,this[_0x4b4b26(0x1af)]=_0x219ca4,this[_0x4b4b26(0x445)]=_0x541320,b(this,_0x4b4b26(0x277),[]),b(this,'_anchor',null),b(this,_0x4b4b26(0x356),null),b(this,'_anchorDot',null),b(this,_0x4b4b26(0x39b),null),b(this,_0x4b4b26(0x1f5),null),this[_0x4b4b26(0x27c)]();}set[_0x43938c(0x39e)](_0x1bd440){const _0x5a93ff=_0x43938c;_0x1bd440?(this['_anchorDot']&&this['_anchorDot']['hide'](),this[_0x5a93ff(0x356)]&&this['_textBubble'][_0x5a93ff(0x1f4)]()):(this[_0x5a93ff(0x423)]&&this[_0x5a93ff(0x423)][_0x5a93ff(0x1f4)](),this[_0x5a93ff(0x356)]&&this[_0x5a93ff(0x356)][_0x5a93ff(0x1b0)]());}[_0x43938c(0x202)](){const _0x107a32=_0x43938c;for(let _0x2c150f of this[_0x107a32(0x277)])_0x2c150f['dispose']();this[_0x107a32(0x356)]&&this[_0x107a32(0x356)]['dispose'](),this[_0x107a32(0x423)]&&this['_anchorDot'][_0x107a32(0x202)](),this[_0x107a32(0x1ca)]&&this['_anchor'][_0x107a32(0x202)](),this[_0x107a32(0x1f5)]&&this[_0x107a32(0x1f5)]();}[_0x43938c(0x27c)](){const _0x4b4b5b=_0x43938c;let {_docSkeleton:_0x31d0ff,_document:_0x548ab4}=this,{color:_0x1bbd24,name:_0x5f77b0,ranges:_0x4c4328}=this['_cursor'],_0x264823=_0x548ab4[_0x4b4b5b(0x3e0)](),{docsLeft:_0x4b4c12,docsTop:_0x32a272}=_0x264823,_0x257558=new f[(_0x4b4b5b(0x2cb))](_0x264823,_0x31d0ff);for(let {startOffset:_0x2d2b20,endOffset:_0x22501a,rangeType:_0x556a65,segmentId:_0x12481f,segmentPage:_0x450d55,collapsed:_0x5de371,isActive:_0x18cc57}of _0x4c4328){let _0x44e730=_0x31d0ff['findNodePositionByCharIndex'](_0x2d2b20,!0x0,_0x12481f,_0x450d55),_0xf3fd97=_0x31d0ff[_0x4b4b5b(0x246)](_0x22501a,!0x0,_0x12481f,_0x450d55);_0xf3fd97??=_0x31d0ff[_0x4b4b5b(0x246)](_0x22501a-0x1,!0x1,_0x12481f,_0x450d55);let _0x5d11a8=he(_0x44e730,_0xf3fd97);if(_0x18cc57&&_0x5d11a8[_0x4b4b5b(0x3d0)]){let {contentBoxPointGroup:_0x1bdde8}=_0x257558[_0x4b4b5b(0x3f1)](_0xf3fd97,_0xf3fd97);if(_0x1bdde8['length']===0x0)continue;this[_0x4b4b5b(0x365)](_0x1bbd24,_0x1bdde8,_0x4b4c12,_0x32a272,_0x5f77b0),this[_0x4b4b5b(0x1f5)]=this['_handleHover']();}if(_0x44e730&&_0xf3fd97){if(_0x556a65===t[_0x4b4b5b(0x432)][_0x4b4b5b(0x25f)]){let {pointGroup:_0x4c000e}=new f[(_0x4b4b5b(0x2d2))](_0x264823,_0x31d0ff)[_0x4b4b5b(0x3f1)](_0x44e730,_0xf3fd97)??{};if(_0x4c000e==null||_0x4c000e[_0x4b4b5b(0x25c)]===0x0)continue;this['_drawRectRange'](_0x1bbd24,_0x4c000e,_0x4b4c12,_0x32a272);}else{if(!_0x5de371&&_0x5d11a8['canRenderSelection']){let {borderBoxPointGroup:_0x4d6153}=_0x257558[_0x4b4b5b(0x3f1)](_0x44e730,_0xf3fd97);if(_0x4d6153[_0x4b4b5b(0x25c)]===0x0)continue;this['_drawTextRange'](_0x1bbd24,_0x4d6153,_0x4b4c12,_0x32a272);}}}}}[_0x43938c(0x365)](_0x407256,_0x3ad52a,_0x146c8a,_0x1c9f22,_0x26144){const _0x2b9b0e=_0x43938c;let {left:_0x4e3f7c,top:_0x4c957a,height:_0x5b1dbc}=this[_0x2b9b0e(0x2ae)](_0x3ad52a),_0x53cb5f=1.5/this[_0x2b9b0e(0x286)](),_0x54232d=new p[(_0x2b9b0e(0x1d5))](N+(0x0,t[_0x2b9b0e(0x3c8)])(0x6),{'left':_0x4e3f7c+_0x146c8a-_0x53cb5f,'top':_0x4c957a+_0x1c9f22,'height':_0x5b1dbc,'width':1.5,'fill':_0x407256||(0x0,p[_0x2b9b0e(0x2c9)])(t[_0x2b9b0e(0x220)]['black'],0x0),'strokeWidth':_0x53cb5f,'stroke':_0x2b9b0e(0x327),'evented':!0x0});this['_anchor']=_0x54232d,this[_0x2b9b0e(0x1a9)]['addObject'](_0x54232d,f['TEXT_RANGE_LAYER_INDEX']);let _0xd5a12=new p[(_0x2b9b0e(0x1d5))](N+(0x0,t[_0x2b9b0e(0x3c8)])(0x6),{'left':_0x4e3f7c+_0x146c8a-_0x53cb5f,'top':_0x4c957a+_0x1c9f22-0x2,'height':0x4,'width':0x4,'fill':_0x407256||(0x0,p[_0x2b9b0e(0x2c9)])(t[_0x2b9b0e(0x220)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x407256||(0x0,p['getColor'])(t['COLORS']['black'],0x0),'evented':!0x1});this[_0x2b9b0e(0x423)]=_0xd5a12,this[_0x2b9b0e(0x1a9)]['addObject'](_0xd5a12,f['TEXT_RANGE_LAYER_INDEX']);let _0x18ce9b=new pe(N+(0x0,t[_0x2b9b0e(0x3c8)])(0x6),{'left':_0x4e3f7c+_0x146c8a-_0x53cb5f,'top':_0x4c957a+_0x1c9f22-0x14,'text':_0x26144,'color':_0x407256});this[_0x2b9b0e(0x356)]=_0x18ce9b,this[_0x2b9b0e(0x1a9)][_0x2b9b0e(0x464)](_0x18ce9b,f[_0x2b9b0e(0x2d5)]),this[_0x2b9b0e(0x39e)]=!0x1;}[_0x43938c(0x426)](){const _0x5799c7=_0x43938c;let _0x821099=this[_0x5799c7(0x1ca)][_0x5799c7(0x26a)][_0x5799c7(0x2a8)](()=>{this['_hover']=!0x0;}),_0x46ee11=this['_anchor'][_0x5799c7(0x316)][_0x5799c7(0x2a8)](()=>{const _0x161a7d=_0x5799c7;this[_0x161a7d(0x39b)]&&clearTimeout(this[_0x161a7d(0x39b)]),this['_hideTimer']=setTimeout(()=>{const _0x494c09=_0x161a7d;this[_0x494c09(0x39e)]=!0x1;},0x7d0);});return()=>{const _0x26fda6=_0x5799c7;_0x821099[_0x26fda6(0x294)](),_0x46ee11[_0x26fda6(0x294)]();};}[_0x43938c(0x338)](_0x59812f,_0x395dcb,_0xa0e60c,_0x483414){const _0x2584c4=_0x43938c;let _0x6dd7e0=0.2,_0x36c442=new t[(_0x2584c4(0x3bf))](_0x59812f)[_0x2584c4(0x2de)](_0x6dd7e0)[_0x2584c4(0x2f5)](),_0x4eb73a=new p[(_0x2584c4(0x319))](_0x2584c4(0x2bc)+(0x0,t[_0x2584c4(0x3c8)])(0x6),{'pointsGroup':_0x395dcb,'fill':_0x36c442||(0x0,p[_0x2584c4(0x2c9)])(t[_0x2584c4(0x220)]['black'],_0x6dd7e0),'left':_0xa0e60c,'top':_0x483414,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2584c4(0x277)]['push'](_0x4eb73a),this['_scene'][_0x2584c4(0x464)](_0x4eb73a,f[_0x2584c4(0x2d5)]);}[_0x43938c(0x3db)](_0x2a1349,_0x3c455d,_0x544802,_0x4e273d){const _0x544f02=_0x43938c;let _0x4b5df8=0.2,_0x386ccc=new t[(_0x544f02(0x3bf))](_0x2a1349)[_0x544f02(0x2de)](_0x4b5df8)['toRgbString'](),_0x164cee=new p[(_0x544f02(0x319))](_0x544f02(0x3aa)+(0x0,t[_0x544f02(0x3c8)])(0x6),{'pointsGroup':_0x3c455d,'fill':_0x386ccc||(0x0,p[_0x544f02(0x2c9)])(t[_0x544f02(0x220)]['black'],_0x4b5df8),'left':_0x544802,'top':_0x4e273d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x544f02(0x34e)](_0x164cee),this[_0x544f02(0x1a9)][_0x544f02(0x464)](_0x164cee,f[_0x544f02(0x2d5)]);}[_0x43938c(0x2ae)](_0x4edd4a){let _0x34c86e=_0x4edd4a[0x0],_0x2c4c62=_0x34c86e[0x0],_0x52f75f=_0x34c86e[0x2],{x:_0x4032a8,y:_0x48f544}=_0x2c4c62,{x:_0x350a71,y:_0x13c600}=_0x52f75f;return{'left':_0x4032a8,'top':_0x48f544,'width':_0x350a71-_0x4032a8,'height':_0x13c600-_0x48f544};}[_0x43938c(0x286)](){const _0x13e874=_0x43938c;let {scaleX:_0x2d3005,scaleY:_0x52278a}=this[_0x13e874(0x1a9)][_0x13e874(0x3c7)]();return Math[_0x13e874(0x34b)](_0x2d3005,_0x52278a);}};function he(_0xca9735,_0x459355){const _0x3f967e=_0x43938c;if(!_0x459355)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0xca9735||_0xca9735[_0x3f967e(0x196)]!==_0x459355['pageType']||(_0xca9735[_0x3f967e(0x196)]===p[_0x3f967e(0x28d)]['HEADER']||_0xca9735[_0x3f967e(0x196)]===p[_0x3f967e(0x28d)][_0x3f967e(0x3be)])&&_0xca9735[_0x3f967e(0x22e)]!==_0x459355['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0xf51430=(0x0,p[_0x3f967e(0x3e5)])(_0xca9735),_0x5d9479=(0x0,p[_0x3f967e(0x3e5)])(_0x459355);return{'canRenderAnchor':!0x0,'canRenderSelection':_0xf51430==null||_0x5d9479==null?_0xf51430==null&&_0x5d9479==null:_0xf51430[_0x3f967e(0x363)]===_0x5d9479['pageIndex']&&_0xf51430[_0x3f967e(0x472)]===_0x5d9479[_0x3f967e(0x472)]&&_0xf51430['columnIndex']===_0x5d9479[_0x3f967e(0x1b3)]};}let P=class extends t[_0x43938c(0x1bf)]{constructor(_0x24ea7f,_0x4ad15c,_0x38c9ea,_0x3a4059,_0x106e55){const _0x4ab077=_0x43938c;super(),this[_0x4ab077(0x318)]=_0x24ea7f,this[_0x4ab077(0x37a)]=_0x4ad15c,this['_collabCursorController']=_0x38c9ea,this[_0x4ab077(0x1ee)]=_0x3a4059,this['_themeService']=_0x106e55,b(this,_0x4ab077(0x2df),[]),b(this,_0x4ab077(0x1ae),[]),this['_init']();}['_init'](){const _0x4d6df9=_0x43938c;let _0x3303dc=this['_context']['unitId'],_0x207f4e=this[_0x4d6df9(0x37a)];this[_0x4d6df9(0x198)]((0x0,r[_0x4d6df9(0x3d8)])([this['_collabCursorController'][_0x4d6df9(0x28e)](_0x3303dc),this[_0x4d6df9(0x441)][_0x4d6df9(0x421)]])[_0x4d6df9(0x42a)]((0x0,i[_0x4d6df9(0x1ef)])(([_0x5dc804,_0x1f6812])=>({'skeleton':_0x207f4e['getSkeleton'](),'cursors':[..._0x5dc804['values']()]['flatMap'](_0x683a18=>({..._0x683a18,'color':this['_themeService'][_0x4d6df9(0x1a1)](_0x683a18['color'])}))})))[_0x4d6df9(0x3a7)](_0x64fcb8=>{const _0x1fc8c9=_0x4d6df9;if(this['_removeCollabCursors'](),_0x64fcb8){let {skeleton:_0x40515a,cursors:_0x529309}=_0x64fcb8;this[_0x1fc8c9(0x398)](_0x40515a,_0x529309);}})),this[_0x4d6df9(0x24c)](),this[_0x4d6df9(0x44c)]();}[_0x43938c(0x398)](_0x247c2b,_0x2bdbd0){const _0x2bbd89=_0x43938c;let {scene:_0x567596,mainComponent:_0x365eae}=this['_context'],_0x192e5f=_0x2bdbd0[_0x2bbd89(0x1ef)](_0x369f04=>new me(_0x369f04,_0x567596,_0x247c2b,_0x365eae));this[_0x2bbd89(0x2df)]=_0x192e5f,this[_0x2bbd89(0x1ae)]=_0x2bdbd0;}[_0x43938c(0x279)](){const _0x19fc14=_0x43938c;this[_0x19fc14(0x305)]();let {scene:_0x59b435,mainComponent:_0x313a42}=this[_0x19fc14(0x318)],_0x105ad4=this[_0x19fc14(0x37a)][_0x19fc14(0x322)](),_0x5eba74=this[_0x19fc14(0x1ae)][_0x19fc14(0x1ef)](_0x30f04c=>new me(_0x30f04c,_0x59b435,_0x105ad4,_0x313a42));this['_cursorShapes']=_0x5eba74;}[_0x43938c(0x305)](){const _0x2586c5=_0x43938c;this[_0x2586c5(0x2df)][_0x2586c5(0x28b)](_0x6ea14a=>_0x6ea14a['dispose']()),this[_0x2586c5(0x2df)]=[];}[_0x43938c(0x44c)](){const _0x59a8f9=_0x43938c;let _0x2fa94a=[f[_0x59a8f9(0x3e3)]['id']];this[_0x59a8f9(0x198)](this[_0x59a8f9(0x1ee)][_0x59a8f9(0x476)](_0x26bb44=>{const _0x11f00c=_0x59a8f9;_0x2fa94a[_0x11f00c(0x29a)](_0x26bb44['id'])&&_0x26bb44['params'][_0x11f00c(0x410)]===this[_0x11f00c(0x318)][_0x11f00c(0x410)]&&this[_0x11f00c(0x279)]();}));}[_0x43938c(0x24c)](){const _0x3b06e1=_0x43938c;this[_0x3b06e1(0x198)]((0x0,t[_0x3b06e1(0x25a)])(this['_context'][_0x3b06e1(0x18e)][_0x3b06e1(0x317)])['pipe']((0x0,i['filter'])(_0x649680=>_0x649680['type']===p[_0x3b06e1(0x409)][_0x3b06e1(0x2c8)]),(0x0,i[_0x3b06e1(0x40f)])(0x10))[_0x3b06e1(0x3a7)](()=>{const _0x25f4aa=_0x3b06e1;this[_0x25f4aa(0x279)]();}));}};function _0x52dc(){const _0x554d4e=['removeEventListener','_getAnchorBounding','primary','get','_initUnhandledRejectionListener','jsx','_startEntity','resolve','univer-text-green-500','sheetId','executeCommand','storage','useCallback','collaboration-client-ui.collaboration.closeRoom','localPresence$','collab-text-range-','handleInsertRangeMoveRight','state$','saveImage','DesktopCollaborationStatusDisplayController','147CPTCkQ','Injector','changesetResend$','collaboration-client-ui.config','transformIMECache','enableFrontendLog','some','resize','getColor','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','NodePositionConvertToCursor','debounce','_registerDependencies','getFocusedUnit','requireSession','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','removeItem','NodePositionConvertToRectRange','_localCacheService','JOIN_ROOM_FAILED','TEXT_RANGE_LAYER_INDEX','_monkeyPatchLogService','IDocClipboardService','_initStatusComponent','_watchBlockProgress','startOffset','fillText','_onConflict','Response','setAlpha','_cursorShapes','_scheduleHeartbeat','_retryConflictCacheClear','parse','_docStateChangeManagerService','_startDocCollabCursor','stream','highlight','arc','event$','getTypeOfUnitDisposed$','finally','split','endRow','_removeAwaitingNotices','setInterval','text','min','_range','replace','drawWith','IUnitPresenceUIAdapterRegistry','toRgbString','assignAColorForMemberID',',\x200.2)','exhaustSavingTask','WebBrowserSingleActiveUnitService','cacheCleared','_config','deepClone','UPDATE_CURSOR','handleIRemoveRow','_transformHistoryAndStateStack','AWAITING','override','name','CollaborationController','_blinkIntervalTimer','_removeCollabCursors','MemberService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Plugin','runOnServer','_syncPresenceStatusComponents','deserializeRangeWithSheet','pointer','setTimeout','RevisionService','collaboration-client-ui.operation.update-remote-unit-presence','getStateCache','rgba','SOCKET_FAILED','getCellIndexByOffset','ITransformService','add','onPointerLeave$','onTransformChange$','_context','RegularPolygon','isEditing','backgroundColor','_removeClearOtherTimer','MessageType','NO_OTHER_CLIENTS_EDITING','UniverInstanceType','reconnect','_isBlinkVisible','getSkeleton','DocIMEInputManagerService','sessionStatus$','BehaviorSubject','icon','rgba(255,\x20255,\x20255,\x200.01)','CommandType','snapshot-loading-timeout','totalBlocks','disposeUnit','column','addClipboardHook','_highlight','CollaborationStatus','_getSheetObject','univer-m-0\x20univer-p-0','DEFAULT_WS_SESSION_TICKET_URL','bold\x2013px\x20Arial,\x20sans-serif','every','collaboration-client-ui.collabStatus.notCollab','catch','_revisionService','_drawTextRange','search','jiqing.500','handleInsertCol','_handleLeaveEvent','_retryingConflictCacheUnitIDs','timeout','useMemo','getActiveSheet','_collabCursorController','transformByState','RemoveColCommandId','updateOfflineData','_disposeEntity','ThemeService','SnapshotLoadStage','Unknown\x20user','_updateLocalCursor','spin','max','ONLINE','_online','push','_imageIoService','collaboration-client-ui.collabStatus.offline','_roomMembers$','/universer-api/frontend/logs','unload','delete','range','_textBubble','_beforeCloseService','firstValueFrom','collaboration-client-ui.session.connection-failed','_timeoutState$','_scheduleClearOtherTimer','DependentOn','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','HEADER_MENU','application/json','Inject','BuiltInUIPart','1480jYnTwM','pageIndex','UNIVER_DOC','_drawAnchor','_docSyncEditingCollabCursorService','entityInit$','InsertRowCommandId','stack','ILocalStorageService','_initEvent','4803348awaRwo','socket$','_showConflictProcessingNotification','handleInsertRow','roomMembers','_syncEditingCollabCursorService','getMergeData','setItem','_adapterRegistry','runId','IUIPartsService','small','labelHorizontalPosition','reason','_docSkeletonManagerService','selectedIds','_initialized','UserManagerService','unit','IMessageService','replaceSelectionInfoWithoutRefresh','fromEvent','transformStateCache','currentSkeleton$','userID','_docTransformSelectionsService','EffectRefRangId','memberId','INotificationService','getViewport','_setupBeforeClosingHandler','_saveTaskMap','parseInt','key','span','Failed','unhandledrejection','LocaleService','LoadingMultiIcon','getMemberID','HTTPEventType','_lastPointer','IConfigService','_localeService','_updateCollabCursors','InsertColCommandId','Loading','_hideTimer','1.3.0','triggerDblclick','_hover','filter','save','loadOfflineData','_assignedColors','setUndoRedoMutationParamsCache','368848wMtwln','AWAITING_WITH_PENDING','distinctUntilChanged','subscribe','title','object','collab-rect-range-','_collabCursorState$','subUnitId','_cursorInfo$','location','lineno','statusUIPart','labelPosition','isInternalEditorID','highlightSecond','string','ACTIVE_UNIT_EVENT_CHANNEL','_logService','58260CIPlwv','collabCursorState$','_transformUndoRedoStack','RemoteUniscriptService','_disposed','makeDirty','_doCreateSocket','FOOTER','ColorKit','registerRenderModule','Warning','_heartbeatTimer','addHandlerCallback','tableSource','startRow','InsertRangeMoveDownCommandId','getAncestorScale','generateRandomId','_sheetSkeletonManagerService','Tooltip','_httpService','presenceKind','switchMap','\x20-\x20','UNIVER_SHEET','canRenderAnchor','_uploadLog','reload','toString','univer-text-red-500','_color','addEventListener','editingUnit','combineLatest','selections','_colorIndex','_drawRectRange','collaboration-client-ui.conflict.title','_activeSaveTaskMap','collaboration-client-ui.conflict.content','constructor','getOffsetConfig','26iOJzdW','_startBlinking','SetDocZoomRatioOperation','collaboration-client-ui.session.will-retry','getDocumentSkeletonColumnPagePathInfo','UnitStatus','OffLineIcon','getDocRanges','_onRefRangeChange','_scheduleSaving','_selfUnitIDs','content','84uNwKFZ','shareInterval','allSettled','getCollabEntity$','getRangePointData','_adapter','TEXT','OFFLINE','getCurrentUnitOfType','collaboration-client-ui.snapshotLoading.timeout','RefRangeService','offsetY','default','LOADING_BLOCKS','_replaceConflictNotification','getCurrentTypeOfUnit$','_entityInit$','SessionStatus','_blinkTimer','prototype','origin','SnapshotLoadingService','DocSkeletonManagerService','_getUserId','_saveCache','takeUntil','collaboration-client-ui.collabClient.tooltip.reconnect','_unitOnClients','TRANSFORM_CHANGE_OBSERVABLE_TYPE','prepareTransformSelections','keys','_disabled','_listenToOnlineEvent','_status$','throttleTime','unitId','getRenderUnitById','elapsedMs','toPrimitive','createElement','_docClipboardService','clearOfflineData','_reloadPage','useDependency','evenodd','clearInterval','measureText','undoState','UniverCollaborationPlugin','_isDisposed','body','univer-text-gray-400','currentTheme$','getSelectionInfo','_anchorDot','SetTextSelectionsOperation','size','_handleHover','init','_id','Subject','pipe','handleInsertRangeMoveDown','symbol','searchParams','stage','_init','_registerPresenceStatusComponent','textRanges','DOC_RANGE_TYPE','_removeRemotePresence','_collabSessionService','_messageService','m1Prime','_unitStatus','_notificationService','_pendingEntities','decorate','getConfig','handleMoveRange','Disposable','getCoordRelativeToViewport','unshift','isActive','_themeService','_messageIds','2790552YmNeiO','LOCAL_CACHE_INTERVAL','_document','debounceTime','_toggleOffline','tooltipKey','transformRemoteChangeset','UniverCollaborationClientPlugin','_getMergeRange','_initCommandExecutedListener','_ensureSubject','mergeOverrideWithDependencies','univer-text-orange-500','getCurrentSkeleton','48785glbjkk','_colorAssignService','BrowserCollaborationSocketService','_highlightSecond','UniverRenderEnginePlugin','\x20at\x20','setStateCache','_injector','_trackActiveSaveTask','getCoordByCell','code','CLOSE_ROOM','onPointerMove$','join','INetworkConditionService','setConfig','enableOfflineEditing','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_presenceAdapterRegistry','addObject','Tools','lineTo','collaboration-client-ui.collabStatus.fetchMiss','WarningIcon','NOT_COLLAB','_adapterDisposables','_showText','Vector2','_snapshotLoadingService','OnLineIcon','collaboration-client-ui.collaboration.single-unit.warning','disableLocalCache','getItem','columnGroupId','doc.mutation.rich-text-editing','find','_memberService','onCommandExecuted','button','set','_toggleOnline','_clearRemotePresences','_blockProgressWatches','univer-border-none\x20univer-bg-transparent','_initPresenceStatusComponents','ranges','enableDefaultConflictUI','_dispose$','font','_refRangeService','loadedBlocks','collaboration-client-ui.license.editing-connections-exceeded','true','left','complete','clearTimeout','univer-text-blue-500','clsx','data','state','toDisposable','_initDependencies','IBeforeCloseService','_renderManagerService','_listenToOfflineEvent','engine','with','defineProperty','selection','OTHER_CLIENTS_EDITING','saveOfflineData','LICENSE_DOMAIN_REJECTED','Shape','pageType','_stopBlinking','disposeWithMe','collaboration-client-ui.permission.title','fillRule','getLocalCacheKey','getAllUnitsForType','_docSelectionManagerService','message','DeleteRangeMoveUpCommandId','IRenderManagerService','getColorFromTheme','getUnitStatus$','collaboration-client-ui.remoteRevert.title','next','_configService','_online$','CollaborationSessionService','asObservable','_scene','collaboration-client-ui.snapshotLoading.refresh','getActiveRange','9JgdNNp','unitType','_cursors','_docSkeleton','hide','getCollabEntities','setOffsetY','columnIndex','tableId','online$','_localStorageService','onLine','setRemotePresence','getUndoRedoMutationParamsCache','...','_getSessionTicket','PENDING','Module','#FFF','RxDisposable','function','jsxs','wsSessionTicketUrl','transformMutationsWithChangeset','post','params','getCurrentSelections','invokeId','imageSourceType','_initWindowErrorListener','_anchor','isFinite','_onCursorDelete','connectInjector','SheetCollabCursorShape','_onCursorUpdate','getTypeOfUnitAdded$','timedOut','_handleEvent','timeoutState$','ISocketService','Rect','_handleJoinEvent','fillStyle','isTransformMutationFailure','version','InsertRangeMoveRightCommandId','visibilitychange','from','_bindAdapter','_syncAdapters','color','status$','CollaborationUIEventId','values','collaboration-client-ui.remoteRevert.content','_draw','redoState','_normalizeUserId','DocSelectionManagerService','_startSheetCollabCursor','cursorInfo','_editingConnectionsExceededNotices','CONFLICT_PROCESSING','warning','_docTransformStateCacheService','_commandService','map','CollaborationSocketService','width','CollaborationEvent','_userManagerService','show','_eventUnsubscribe','useObservable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','memberID','_instanceService','userId','registerCommand','_registerRenderDependencies','row','snapshot-loading-','DocStateChangeManagerService','MoveRangeCommandId','IUniverInstanceService','dispose','onMouseMove','right','_clearBlockProgressWatch','_handleHeartbeatEvent','online','_initAwaitingNotices','univer-appearance-none','_hovered','eventID','registerComponent','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','_saveTimedOutNotices','merge','CONFLICT','_handleCursorUpdate','touchDependencies','GLOBAL','timeoutId','_labelHorizontalPosition','cursorInfo$','FromArray','visible','_collaborationController','SheetSkeletonManagerService','_getSaveTimeout','transform','registerRefRange','getSheetObject','registerBeforeClose','COLORS','Rectangle','getLocalPresence','getScrollXYInfoByViewport','_backgroundColor','getUnitId','addObjects','enableDocumentCollaborationUI','_univerInstanceService','setShapeProps','collab-text-anchor-','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_cursor','_name','segmentPage','error','showText','indicator','setActiveRange','UniverDocsPlugin','colno','source','_initUserListener','getValue','kind','[Window\x20Error]:\x20','iterator','executionId','newValue','options','update','collaboration-client-ui.permission.content','_transformService','restore','collaboration-client-ui.conflict.clearFailed','clearRemotePresences','isArray','_send','findNodePositionByCharIndex','_showConflictCacheClearFailedNotification','focus','clickable','createInstance','isTransformMutationsWithChangesetSuccess','_initResize','mutations','serializeRangeWithSheet','stringify','unitID','send','CollaborationUIEventService','_collaborationSessionService','remove','USERS_LEAVE','_presenceStatusRegistrations','_uiPartsService','_createSocketURL','_conflictNotification','fromEventSubject','license_editing_connections_exceeded','length','UniverNetworkPlugin','bottom','RECT','_disposeEntitiesForType','ICommandService','conflict$','refreshLabel','LOCAL_CACHE_INTERVAL_KEY','_session','_clearOtherTimers','getMember','fill','enableLocalCache','onPointerEnter$','saveTaskMap','colorClass','number','_clearTimeoutState','DocCollaborationEntity','clear','dispose$','syncEditingCollabCursor','_showAwaitingNotice','collaboration-client-ui.conflict.retry','_labelPosition','entries','_shapes','DisposableCollection','_refreshCollabCursors','ILogService','then','_render','_initConflictHandling','height','focusedId','collaboration-client-ui.collabStatus.syncing','transformMutation','result','m2Prime','_cachedData','_pointerMoveDisposable','_getScale','status','static','activate','polite','forEach','4561164mFHcuc','DocumentSkeletonPageType','getCollabCursors$','5EhOnSc','collaboration-client-ui.conflict.processing','WebSocketService','Error','univer-flex\x20univer-items-center\x20univer-justify-center','unsubscribe','13918YzmuNC','_offsetY','collaboration-client-ui.collaboration.offline-data-not-saved','SHEET_VIEWPORT_KEY','rgb','includes','getCurrentUser','slice','_initStatusListener','HTTPService','has','bind','pulse','sheetID','univer-transition-all\x20univer-duration-200','now','type','[LogService\x20Error]:\x20','_entities','subscribeEvent','_memberID','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','UniverDocsUIPlugin','startsWith'];_0x52dc=function(){return _0x554d4e;};return _0x52dc();}P=S([x(0x1,(0x0,t[_0x43938c(0x360)])(d[_0x43938c(0x403)])),x(0x2,(0x0,t['Inject'])(j)),x(0x3,t[_0x43938c(0x261)]),x(0x4,(0x0,t['Inject'])(t[_0x43938c(0x346)]))],P);var F=class extends p[_0x43938c(0x195)]{constructor(_0x4c02e4,_0x5b8212){const _0x3f8772=_0x43938c;super(_0x4c02e4,_0x5b8212),b(this,_0x3f8772(0x3d5),void 0x0),b(this,_0x3f8772(0x20a),!0x1),b(this,_0x3f8772(0x2f1),void 0x0),b(this,_0x3f8772(0x22d),''),b(this,_0x3f8772(0x275),'top'),b(this,'_backgroundColor',void 0x0),b(this,'_showText',void 0x0),b(this,_0x3f8772(0x32e),void 0x0),b(this,_0x3f8772(0x454),0x4),b(this,'_blinkTimer',void 0x0),b(this,_0x3f8772(0x304),void 0x0),b(this,_0x3f8772(0x321),!0x0),b(this,'_offsetY',0x0),b(this,_0x3f8772(0x215),_0x3f8772(0x204)),_0x5b8212&&(this[_0x3f8772(0x229)](_0x5b8212),_0x5b8212[_0x3f8772(0x2e6)]&&(_0x5b8212[_0x3f8772(0x3b3)]??this[_0x3f8772(0x454)])&&this[_0x3f8772(0x3e2)](_0x5b8212[_0x3f8772(0x3b3)]??this[_0x3f8772(0x454)])),this[_0x3f8772(0x26a)][_0x3f8772(0x2a8)](()=>this[_0x3f8772(0x229)]({'hovered':!0x0})),this[_0x3f8772(0x316)][_0x3f8772(0x2a8)](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x43938c(0x1b2)](_0x2a2c88){const _0x5f2d1a=_0x43938c;this[_0x5f2d1a(0x296)]=_0x2a2c88;}[_0x43938c(0x229)](_0x49abba){const _0x5f6414=_0x43938c;this[_0x5f6414(0x3d5)]=_0x49abba[_0x5f6414(0x1df)]??this[_0x5f6414(0x3d5)],this[_0x5f6414(0x20a)]=_0x49abba['hovered']??this[_0x5f6414(0x20a)],this[_0x5f6414(0x2f1)]=_0x49abba['range']??this[_0x5f6414(0x2f1)],this[_0x5f6414(0x22d)]=_0x49abba[_0x5f6414(0x302)]??this[_0x5f6414(0x22d)],this[_0x5f6414(0x275)]=_0x49abba[_0x5f6414(0x3b1)]??this[_0x5f6414(0x275)],this['_backgroundColor']=_0x49abba[_0x5f6414(0x31b)]??this[_0x5f6414(0x224)],this['_showText']=_0x49abba[_0x5f6414(0x230)]??this[_0x5f6414(0x46b)],this['_labelHorizontalPosition']=_0x49abba[_0x5f6414(0x378)]??this[_0x5f6414(0x215)],_0x49abba[_0x5f6414(0x3b3)]!==void 0x0&&(this['_highlightSecond']=_0x49abba[_0x5f6414(0x3b3)]),_0x49abba['highlight']!==void 0x0&&(this[_0x5f6414(0x32e)]=_0x49abba[_0x5f6414(0x2e6)]),_0x49abba[_0x5f6414(0x3f8)]!==void 0x0&&(this[_0x5f6414(0x296)]=_0x49abba[_0x5f6414(0x3f8)]),this[_0x5f6414(0x342)]({'width':_0x49abba[_0x5f6414(0x1f1)],'height':_0x49abba[_0x5f6414(0x27e)]});}[_0x43938c(0x203)](_0x248655){const _0x51a306=_0x43938c;let {row:_0x73a4ca,column:_0x11d6f9}=_0x248655;_0x73a4ca>=this[_0x51a306(0x2f1)][_0x51a306(0x3c5)]&&_0x73a4ca<=this[_0x51a306(0x2f1)][_0x51a306(0x2ec)]&&_0x11d6f9>=this['_range']['startColumn']&&_0x11d6f9<=this[_0x51a306(0x2f1)]['endColumn']?this[_0x51a306(0x229)]({'hovered':!0x0}):this[_0x51a306(0x229)]({'hovered':!0x1});}[_0x43938c(0x3e2)](_0xf445f3){const _0xcc6f5=_0x43938c;this[_0xcc6f5(0x197)](),this[_0xcc6f5(0x321)]=!0x0,this[_0xcc6f5(0x304)]=window[_0xcc6f5(0x2ee)](()=>{const _0x4cfffa=_0xcc6f5;this[_0x4cfffa(0x321)]=!this[_0x4cfffa(0x321)],this[_0x4cfffa(0x3bc)](!0x0);},0x1f4),this['_blinkTimer']=window[_0xcc6f5(0x30d)](()=>{const _0x455e2e=_0xcc6f5;this[_0x455e2e(0x197)](),this[_0x455e2e(0x321)]=!0x0,this[_0x455e2e(0x3bc)](!0x0);},_0xf445f3*0x3e8);}[_0x43938c(0x197)](){const _0x2b5225=_0x43938c;this[_0x2b5225(0x304)]&&=(window[_0x2b5225(0x41a)](this['_blinkIntervalTimer']),void 0x0),this['_blinkTimer']&&=(window[_0x2b5225(0x184)](this[_0x2b5225(0x3ff)]),void 0x0);}[_0x43938c(0x39d)](_0x4d5388){return!0x1;}['dispose'](){const _0x8b8c91=_0x43938c;this['_stopBlinking'](),super[_0x8b8c91(0x202)]();}[_0x43938c(0x1e4)](_0x4a6859){const _0x11f1d2=_0x43938c;let _0x3bcbd2=this[_0x11f1d2(0x3d5)],_0x389a69=this[_0x11f1d2(0x224)];if(this[_0x11f1d2(0x32e)]&&!this['_isBlinkVisible']&&(_0x3bcbd2=this['_getLighterColor'](this[_0x11f1d2(0x3d5)]),_0x389a69=this['_backgroundColor']?this['_getLighterColor'](this[_0x11f1d2(0x224)]):void 0x0),p[_0x11f1d2(0x1d5)][_0x11f1d2(0x2f3)](_0x4a6859,{'width':this[_0x11f1d2(0x1f1)],'height':this[_0x11f1d2(0x27e)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x3bcbd2,'evented':!0x1,'fill':_0x389a69}),this['_hovered']||this[_0x11f1d2(0x46b)]){_0x4a6859[_0x11f1d2(0x3a0)]();let _0x2d964d=this[_0x11f1d2(0x215)]===_0x11f1d2(0x182)?-M(_0x4a6859,this['_name']):this[_0x11f1d2(0x1f1)];_0x4a6859[_0x11f1d2(0x21c)](0x1,0x0,0x0,0x1,_0x2d964d,(this[_0x11f1d2(0x275)]===_0x11f1d2(0x25e)?0x0:-0x14)+(this[_0x11f1d2(0x296)]??0x0)),pe[_0x11f1d2(0x2f3)](_0x4a6859,{'text':this[_0x11f1d2(0x22d)],'color':_0x3bcbd2}),_0x4a6859[_0x11f1d2(0x241)]();}}['_getLighterColor'](_0x104c04){const _0x2fe925=_0x43938c;return _0x104c04[_0x2fe925(0x2ac)]('#')?'rgba('+Number[_0x2fe925(0x38c)](_0x104c04[_0x2fe925(0x29c)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x104c04[_0x2fe925(0x29c)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x104c04['slice'](0x5,0x7),0x10)+_0x2fe925(0x2f7):_0x104c04[_0x2fe925(0x2ac)]('rgba')?_0x104c04['replace'](/[\d.]+\)$/g,'0.2)'):_0x104c04[_0x2fe925(0x2ac)](_0x2fe925(0x299))?_0x104c04['replace'](_0x2fe925(0x299),_0x2fe925(0x311))[_0x2fe925(0x2f2)](')',',\x200.2)'):_0x104c04;}};let I=class extends t[_0x43938c(0x1bf)]{constructor(_0x443d56,_0x22a866,_0x27e333,_0x11e422){const _0x58c7a1=_0x43938c;super(),this[_0x58c7a1(0x318)]=_0x443d56,this[_0x58c7a1(0x3c9)]=_0x22a866,this[_0x58c7a1(0x341)]=_0x27e333,this[_0x58c7a1(0x441)]=_0x11e422,b(this,_0x58c7a1(0x1ae),new Set()),b(this,_0x58c7a1(0x395),null),b(this,'_pointerMoveDisposable',null),this[_0x58c7a1(0x42f)]();}[_0x43938c(0x42f)](){const _0x1c4a62=_0x43938c;this[_0x1c4a62(0x3c9)][_0x1c4a62(0x383)][_0x1c4a62(0x42a)]((0x0,i[_0x1c4a62(0x406)])(this[_0x1c4a62(0x271)]),(0x0,i[_0x1c4a62(0x3cd)])(_0x3a0c8e=>{const _0x3e9bd2=_0x1c4a62;if(_0x3a0c8e){let _0x50ada6=_0x3a0c8e[_0x3e9bd2(0x2b6)];return(0x0,r[_0x3e9bd2(0x3d8)])(this[_0x3e9bd2(0x341)]['getCollabCursors$'](this['_context'][_0x3e9bd2(0x410)]),this[_0x3e9bd2(0x441)][_0x3e9bd2(0x421)])['pipe']((0x0,i[_0x3e9bd2(0x1ef)])(([_0x336acb,_0x4480eb])=>{let _0x5169cc=new Map();return _0x336acb['forEach']((_0x4cae63,_0x2051c9)=>{const _0x4a9b64=_0x5041;if(_0x4cae63[_0x4a9b64(0x2a2)]===_0x50ada6){let _0x1ac3b4={..._0x4cae63};_0x1ac3b4[_0x4a9b64(0x1df)]=this[_0x4a9b64(0x441)]['getColorFromTheme'](_0x4cae63[_0x4a9b64(0x1df)]),_0x5169cc[_0x4a9b64(0x478)](_0x2051c9,_0x1ac3b4);}}),{'skeleton':_0x3a0c8e,'cursors':_0x5169cc};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x1c4a62(0x3a7)](({skeleton:_0x4fbbde,cursors:_0x3f0b1d})=>{this['_removeCollabCursors'](),_0x4fbbde&&this['_updateCollabCursors'](_0x4fbbde,_0x3f0b1d);}),this[_0x1c4a62(0x198)](this[_0x1c4a62(0x3c9)][_0x1c4a62(0x383)][_0x1c4a62(0x42a)]((0x0,i[_0x1c4a62(0x406)])(this[_0x1c4a62(0x271)]))[_0x1c4a62(0x3a7)](_0x49e148=>{const _0x571dd1=_0x1c4a62;var _0x497695;if(_0x49e148==null)return;(_0x497695=this[_0x571dd1(0x285)])==null||_0x497695[_0x571dd1(0x294)](),this[_0x571dd1(0x285)]=null;let {skeleton:_0x2337ee}=_0x49e148,{scene:_0x4b21da}=this[_0x571dd1(0x318)];this[_0x571dd1(0x285)]=_0x4b21da[_0x571dd1(0x45d)]['subscribeEvent']((0x0,t[_0x571dd1(0x2cc)])(_0x3b2c43=>{const _0xb7cbeb=_0x571dd1;var _0x5b9295,_0x4766a2;let {offsetX:_0x1b8c50,offsetY:_0x4d5dd6}=_0x3b2c43,{x:_0x6431e9,y:_0x4d1d3b}=_0x4b21da[_0xb7cbeb(0x43e)](p[_0xb7cbeb(0x46c)][_0xb7cbeb(0x217)]([_0x1b8c50,_0x4d5dd6])),{scaleX:_0x59f820,scaleY:_0xb2f326}=_0x4b21da[_0xb7cbeb(0x3c7)](),_0x5089e4=_0x4b21da[_0xb7cbeb(0x389)](p[_0xb7cbeb(0x298)]['VIEW_MAIN']),_0x4bc377=_0x4b21da[_0xb7cbeb(0x223)](p[_0xb7cbeb(0x46c)]['FromArray']([_0x6431e9,_0x4d1d3b]),_0x5089e4),_0x5fd4e0=_0x2337ee[_0xb7cbeb(0x313)](_0x1b8c50,_0x4d5dd6,_0x59f820,_0xb2f326,_0x4bc377);(((_0x5b9295=this['_lastPointer'])==null?void 0x0:_0x5b9295['column'])!==_0x5fd4e0[_0xb7cbeb(0x32c)]||((_0x4766a2=this['_lastPointer'])==null?void 0x0:_0x4766a2['row'])!==_0x5fd4e0[_0xb7cbeb(0x1fd)])&&this[_0xb7cbeb(0x1ae)][_0xb7cbeb(0x28b)](_0x108a54=>{const _0x570a89=_0xb7cbeb;_0x108a54[_0x570a89(0x203)](_0x5fd4e0);});},0x64));})),this[_0x1c4a62(0x198)]((0x0,t[_0x1c4a62(0x189)])(()=>{var _0x569308;(_0x569308=this['_pointerMoveDisposable'])==null||_0x569308['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}[_0x43938c(0x398)](_0x18056a,_0x1ecce6){const _0x390734=_0x43938c;let _0x56a5d1=this[_0x390734(0x3c9)][_0x390734(0x450)]();if(!_0x56a5d1)return;let _0x2556b8=this[_0x390734(0x330)]();if(!_0x2556b8)return;this['_cursors'][_0x390734(0x28b)](_0x3c9735=>{const _0x3ef202=_0x390734;_0x3c9735[_0x3ef202(0x3bc)]();});let {scene:_0x11ec60}=_0x2556b8,_0x3cedb3=ge(Array[_0x390734(0x1dc)](_0x1ecce6['values']()))[_0x390734(0x1ef)](_0x5b2ace=>{const _0x2a2dd1=_0x390734;let {color:_0x4e97b9,range:_0x38b14b,name:_0x5f238b,selection:_0x2c3a34,sheetID:_0x93d203}=_0x5b2ace,{startColumn:_0x14e238,startRow:_0x553f42,endColumn:_0xf4c9,endRow:_0x383dfa}=_0x38b14b,_0x2a44f1=(0x0,_[_0x2a2dd1(0x45a)])(_0x553f42,_0x14e238,_0x11ec60,_0x56a5d1),_0x4a0708=(0x0,_[_0x2a2dd1(0x45a)])(_0x383dfa,_0xf4c9,_0x11ec60,_0x56a5d1),{columnHeaderHeightAndMarginTop:_0x129a4a}=_0x56a5d1,{startX:_0x3edccb,startY:_0x1262c6}=_0x2a44f1,{endX:_0x335d57,endY:_0x1d42eb}=_0x4a0708,_0x1a9e7a=_0x335d57-_0x3edccb,_0x2d5861=_0x1d42eb-_0x1262c6;return new F(_0x5f238b,{'labelPosition':_0x1262c6-_0x129a4a>=0x14?'top':_0x2a2dd1(0x25e),'sheetID':_0x93d203,'range':_0x38b14b,'color':_0x4e97b9,'name':_0x5f238b,'selection':_0x2c3a34,'left':_0x3edccb,'top':_0x1262c6,'width':_0x1a9e7a,'height':_0x2d5861,'evented':!0x1,'zIndex':0x1389});});_0x11ec60[_0x390734(0x226)](_0x3cedb3,0x1),this['_cursors']=new Set(_0x3cedb3);}[_0x43938c(0x305)](){const _0x3a40a5=_0x43938c;var _0x424d73;(_0x424d73=this[_0x3a40a5(0x1ae)])==null||_0x424d73[_0x3a40a5(0x28b)](_0x10e9ae=>_0x10e9ae[_0x3a40a5(0x202)]());}['_getSheetObject'](){const _0x622bcc=_0x43938c;return(0x0,_[_0x622bcc(0x21e)])(this[_0x622bcc(0x318)]['unit'],this[_0x622bcc(0x318)]);}};I=S([x(0x1,(0x0,t[_0x43938c(0x360)])(_[_0x43938c(0x21a)])),x(0x2,(0x0,t['Inject'])(j)),x(0x3,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x346)]))],I);function ge(_0x5cf690){const _0x11b50c=_0x43938c;let _0x5125eb=new Map();return _0x5cf690[_0x11b50c(0x28b)](_0x5ae908=>{const _0x21e21e=_0x11b50c;if(_0x5125eb['has'](_0x5ae908[_0x21e21e(0x191)])){let _0x18f192=_0x5125eb[_0x21e21e(0x2b0)](_0x5ae908[_0x21e21e(0x191)]);_0x18f192[_0x21e21e(0x302)]+=',\x20'+_0x5ae908[_0x21e21e(0x302)];}else _0x5125eb[_0x21e21e(0x478)](_0x5ae908[_0x21e21e(0x191)],_0x5ae908);}),Array['from'](_0x5125eb['values']());}function L(_0x18a475){return typeof _0x18a475=='object'&&!!_0x18a475;}function _e(_0x4d39ab){const _0x444239=_0x43938c;return _0x4d39ab[_0x444239(0x20b)]===l[_0x444239(0x1f2)][_0x444239(0x2fd)]&&_0x444239(0x187)in _0x4d39ab&&L(_0x4d39ab['data'])&&typeof _0x4d39ab[_0x444239(0x187)]['memberID']=='string'&&typeof _0x4d39ab[_0x444239(0x187)]['selection']==_0x444239(0x3b4);}function ve(_0x1f2db2){const _0x5a18fc=_0x43938c;return _0x1f2db2[_0x5a18fc(0x20b)]===l[_0x5a18fc(0x1f2)][_0x5a18fc(0x255)]&&'data'in _0x1f2db2&&L(_0x1f2db2[_0x5a18fc(0x187)])&&typeof _0x1f2db2[_0x5a18fc(0x187)]['memberID']==_0x5a18fc(0x3b4);}function ye(_0x3cb864,_0x2137de){const _0x1573ae=_0x43938c;let _0xb4f49f;try{_0xb4f49f=JSON[_0x1573ae(0x2e2)](_0x3cb864);}catch{return null;}if(!L(_0xb4f49f)||typeof _0xb4f49f[_0x1573ae(0x238)]!=_0x1573ae(0x3b4)||typeof _0xb4f49f[_0x1573ae(0x410)]!=_0x1573ae(0x3b4)||typeof _0xb4f49f[_0x1573ae(0x3ac)]!=_0x1573ae(0x3b4))return null;let _0x482fe8=typeof _0xb4f49f[_0x1573ae(0x1ad)]==_0x1573ae(0x26d)?_0xb4f49f[_0x1573ae(0x1ad)]:_0x2137de;if(_0x482fe8==null)return null;let _0x38ff82=L(_0xb4f49f['pointer'])&&typeof _0xb4f49f['pointer']['x']=='number'&&Number[_0x1573ae(0x1cb)](_0xb4f49f[_0x1573ae(0x30c)]['x'])&&typeof _0xb4f49f[_0x1573ae(0x30c)]['y']==_0x1573ae(0x26d)&&Number[_0x1573ae(0x1cb)](_0xb4f49f[_0x1573ae(0x30c)]['y'])?{'x':_0xb4f49f[_0x1573ae(0x30c)]['x'],'y':_0xb4f49f['pointer']['y']}:null;return{'kind':_0xb4f49f[_0x1573ae(0x238)],'unitType':_0x482fe8,'unitId':_0xb4f49f[_0x1573ae(0x410)],'subUnitId':_0xb4f49f[_0x1573ae(0x3ac)],'selectedIds':Array[_0x1573ae(0x244)](_0xb4f49f[_0x1573ae(0x37b)])?_0xb4f49f[_0x1573ae(0x37b)][_0x1573ae(0x39f)](_0x2a385f=>typeof _0x2a385f==_0x1573ae(0x3b4)):[],'focusedId':typeof _0xb4f49f[_0x1573ae(0x27f)]==_0x1573ae(0x3b4)?_0xb4f49f['focusedId']:null,'pointer':_0x38ff82};}function be(_0x3478ae,_0x3e8c0e,_0xcc86ed){const _0x34cc3c=_0x43938c;return{'kind':_0x3e8c0e,'unitType':_0x3478ae,'unitId':_0xcc86ed['unitId'],'subUnitId':_0xcc86ed[_0x34cc3c(0x3ac)],'selectedIds':Array['from'](_0xcc86ed[_0x34cc3c(0x37b)]),'focusedId':_0xcc86ed[_0x34cc3c(0x27f)],'pointer':_0xcc86ed[_0x34cc3c(0x30c)]?{..._0xcc86ed[_0x34cc3c(0x30c)]}:null};}let R=class extends t[_0x43938c(0x1bf)]{constructor(_0x5af9b1,_0x46f18c,_0x2cf1de,_0x488c11,_0x42b0ab,_0x2872b8){const _0x1a32b2=_0x43938c;super(),this['unitId']=_0x5af9b1,this[_0x1a32b2(0x265)]=_0x46f18c,this[_0x1a32b2(0x3f2)]=_0x2cf1de,this[_0x1a32b2(0x452)]=_0x488c11,this[_0x1a32b2(0x475)]=_0x42b0ab,this[_0x1a32b2(0x1ee)]=_0x2872b8,b(this,'_online',!0x1),b(this,_0x1a32b2(0x37c),!0x1);}get[_0x43938c(0x1ad)](){const _0x6de24e=_0x43938c;return this[_0x6de24e(0x3f2)][_0x6de24e(0x1ad)];}[_0x43938c(0x202)](){const _0x3c01d9=_0x43938c;this['_clearRemotePresences'](),super[_0x3c01d9(0x202)]();}['init'](){const _0x16a98e=_0x43938c;this[_0x16a98e(0x37c)]||(this[_0x16a98e(0x37c)]=!0x0,this[_0x16a98e(0x265)][_0x16a98e(0x324)][_0x16a98e(0x42a)]((0x0,r['takeUntil'])(this[_0x16a98e(0x271)]))[_0x16a98e(0x3a7)](_0x486d36=>{const _0x45b711=_0x16a98e;if(_0x486d36===e[_0x45b711(0x3fe)][_0x45b711(0x34c)]){this[_0x45b711(0x34d)]=!0x0;let _0x2c194b=this[_0x45b711(0x3f2)][_0x45b711(0x222)](this[_0x45b711(0x410)]);_0x2c194b&&this['_sendLocalPresence'](_0x2c194b);}else this[_0x45b711(0x34d)]=!0x1,this['_clearRemotePresences']();}),this['_session'][_0x16a98e(0x2e8)][_0x16a98e(0x42a)]((0x0,r[_0x16a98e(0x406)])(this[_0x16a98e(0x271)]))['subscribe'](_0x117fd3=>{const _0x8ebe69=_0x16a98e;_e(_0x117fd3)?this['_handleCursorUpdate'](_0x117fd3):ve(_0x117fd3)&&this[_0x8ebe69(0x433)](_0x117fd3[_0x8ebe69(0x187)][_0x8ebe69(0x1f8)]);}),this[_0x16a98e(0x3f2)][_0x16a98e(0x2bb)]['pipe']((0x0,r[_0x16a98e(0x39f)])(_0x4439b3=>this[_0x16a98e(0x34d)]&&_0x4439b3[_0x16a98e(0x410)]===this[_0x16a98e(0x410)]),(0x0,r['throttle'])(_0x8dc304=>(0x0,r['timer'])(_0x8dc304[_0x16a98e(0x3ee)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x16a98e(0x406)])(this[_0x16a98e(0x271)]))[_0x16a98e(0x3a7)](_0x3132c1=>this['_sendLocalPresence'](_0x3132c1)));}['_sendLocalPresence'](_0x5c6275){const _0xb597ff=_0x43938c;let _0x1d845f=this['_session']['getMemberID']();if(!_0x1d845f||!this[_0xb597ff(0x34d)])return;let _0x5bfd8c={'eventID':l[_0xb597ff(0x1f2)][_0xb597ff(0x2fd)],'data':{'unitID':this[_0xb597ff(0x410)],'memberID':_0x1d845f,'selection':JSON['stringify'](be(this[_0xb597ff(0x1ad)],this[_0xb597ff(0x3f2)][_0xb597ff(0x3cc)],_0x5c6275))}};this[_0xb597ff(0x265)]['send'](_0x5bfd8c,this['unitId'])['catch'](()=>void 0x0);}[_0x43938c(0x211)](_0x25eaac){const _0x34835a=_0x43938c;let {memberID:_0x151149,selection:_0x36fc94}=_0x25eaac[_0x34835a(0x187)];if(_0x151149===this['_session'][_0x34835a(0x393)]())return;let _0x59f464=ye(_0x36fc94,this[_0x34835a(0x1ad)]);if(!_0x59f464||_0x59f464['kind']!==this[_0x34835a(0x3f2)][_0x34835a(0x3cc)]||_0x59f464[_0x34835a(0x1ad)]!==this[_0x34835a(0x1ad)]||_0x59f464['unitId']!==this['unitId'])return;let _0x26e1cf=this[_0x34835a(0x475)][_0x34835a(0x267)](this['unitId'],_0x151149),_0x493f82={'unitId':_0x59f464[_0x34835a(0x410)],'subUnitId':_0x59f464[_0x34835a(0x3ac)],'selectedIds':_0x59f464[_0x34835a(0x37b)],'focusedId':_0x59f464[_0x34835a(0x27f)],'pointer':_0x59f464[_0x34835a(0x30c)],'memberId':_0x151149,'color':this[_0x34835a(0x452)]['assignAColorForMemberID'](_0x151149),'name':(_0x26e1cf==null?void 0x0:_0x26e1cf[_0x34835a(0x302)])??_0x151149};this[_0x34835a(0x1ee)][_0x34835a(0x2b7)](T['id'],{'unitType':this[_0x34835a(0x1ad)],'update':{'type':_0x34835a(0x478),'state':_0x493f82}})[_0x34835a(0x336)](()=>void 0x0);}[_0x43938c(0x433)](_0x4bfcd9){const _0x3de69a=_0x43938c;this[_0x3de69a(0x1ee)][_0x3de69a(0x2b7)](T['id'],{'unitType':this[_0x3de69a(0x1ad)],'update':{'type':_0x3de69a(0x254),'unitId':this[_0x3de69a(0x410)],'memberId':_0x4bfcd9}})[_0x3de69a(0x336)](()=>void 0x0);}[_0x43938c(0x47a)](){const _0x4a3a4c=_0x43938c;this[_0x4a3a4c(0x1ee)]['executeCommand'](T['id'],{'unitType':this[_0x4a3a4c(0x1ad)],'update':{'type':_0x4a3a4c(0x270),'unitId':this[_0x4a3a4c(0x410)]}})[_0x4a3a4c(0x336)](()=>void 0x0);}};R=S([x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x306)])),x(0x5,(0x0,t['Inject'])(t[_0x43938c(0x261)]))],R);let z=class extends t[_0x43938c(0x1bf)]{constructor(_0x5c5f34,_0x31e8bb,_0x28f5fc,_0x2224c4){const _0x1b77ba=_0x43938c;super(),this[_0x1b77ba(0x228)]=_0x5c5f34,this['_injector']=_0x31e8bb,this[_0x1b77ba(0x434)]=_0x28f5fc,this[_0x1b77ba(0x374)]=_0x2224c4,b(this,'_isDisposed',!0x1),b(this,_0x1b77ba(0x2a7),new Map()),b(this,_0x1b77ba(0x439),new Map()),b(this,_0x1b77ba(0x46a),new Map()),this[_0x1b77ba(0x42f)]();}[_0x43938c(0x202)](){const _0x531421=_0x43938c;this[_0x531421(0x41e)]=!0x0,this[_0x531421(0x46a)][_0x531421(0x28b)](_0x66dab9=>_0x66dab9['dispose']()),this[_0x531421(0x46a)][_0x531421(0x270)](),this[_0x531421(0x2a7)]['forEach'](_0x12b8a9=>_0x12b8a9[_0x531421(0x202)]()),this['_entities']['clear'](),this['_pendingEntities'][_0x531421(0x270)](),super[_0x531421(0x202)]();}['_init'](){const _0x11d732=_0x43938c;this[_0x11d732(0x374)]['adapters$']['pipe']((0x0,r[_0x11d732(0x406)])(this[_0x11d732(0x271)]))[_0x11d732(0x3a7)](_0x254a18=>this['_syncAdapters'](_0x254a18));}[_0x43938c(0x1de)](_0xd30013){const _0x424dc9=_0x43938c;let _0x4e895a=new Set(_0xd30013[_0x424dc9(0x1ef)](_0x33a17e=>_0x33a17e['unitType']));this[_0x424dc9(0x46a)][_0x424dc9(0x28b)]((_0x57e512,_0x3eb00d)=>{const _0x1a38d3=_0x424dc9;_0x4e895a[_0x1a38d3(0x29f)](_0x3eb00d)||(_0x57e512[_0x1a38d3(0x202)](),this[_0x1a38d3(0x46a)]['delete'](_0x3eb00d),this[_0x1a38d3(0x260)](_0x3eb00d));}),_0xd30013[_0x424dc9(0x28b)](_0x4468f6=>{const _0x7b048=_0x424dc9;this[_0x7b048(0x46a)]['has'](_0x4468f6[_0x7b048(0x1ad)])||this[_0x7b048(0x1dd)](_0x4468f6);});}[_0x43938c(0x1dd)](_0x2618d5){const _0x43dcf5=_0x43938c;let _0x365887=new t[(_0x43dcf5(0x278))]();this[_0x43dcf5(0x46a)]['set'](_0x2618d5[_0x43dcf5(0x1ad)],_0x365887),_0x365887[_0x43dcf5(0x315)](_0x2618d5[_0x43dcf5(0x289)]()),this[_0x43dcf5(0x228)][_0x43dcf5(0x19c)](_0x2618d5[_0x43dcf5(0x1ad)])[_0x43dcf5(0x28b)](_0x510591=>this[_0x43dcf5(0x2b3)](_0x510591[_0x43dcf5(0x225)](),_0x2618d5)['catch'](()=>void 0x0));let _0x59b630=this[_0x43dcf5(0x228)][_0x43dcf5(0x1d0)](_0x2618d5[_0x43dcf5(0x1ad)])[_0x43dcf5(0x3a7)](({unit:_0x367738})=>this['_startEntity'](_0x367738[_0x43dcf5(0x225)](),_0x2618d5)[_0x43dcf5(0x336)](()=>void 0x0));_0x365887[_0x43dcf5(0x315)]((0x0,t[_0x43dcf5(0x189)])(()=>_0x59b630['unsubscribe']()));let _0x157610=this[_0x43dcf5(0x228)]['getTypeOfUnitDisposed$'](_0x2618d5[_0x43dcf5(0x1ad)])['subscribe'](_0x2cbe3f=>this[_0x43dcf5(0x345)](_0x2cbe3f[_0x43dcf5(0x225)]()));_0x365887['add']((0x0,t[_0x43dcf5(0x189)])(()=>_0x157610['unsubscribe']()));}async[_0x43938c(0x2b3)](_0x544498,_0x23940f){const _0x60caad=_0x43938c;if(this[_0x60caad(0x2a7)][_0x60caad(0x29f)](_0x544498)||this[_0x60caad(0x439)][_0x60caad(0x29f)](_0x544498))return;let _0x5b5fe2={};this[_0x60caad(0x439)]['set'](_0x544498,_0x5b5fe2);let _0x2ae677=await this['_collabSessionService'][_0x60caad(0x2cf)](_0x544498)['catch'](_0xe53f2e=>{const _0x2fa28d=_0x60caad;throw this['_pendingEntities'][_0x2fa28d(0x2b0)](_0x544498)===_0x5b5fe2&&this['_pendingEntities']['delete'](_0x544498),_0xe53f2e;});if(this['_isDisposed']||this[_0x60caad(0x439)][_0x60caad(0x2b0)](_0x544498)!==_0x5b5fe2||this[_0x60caad(0x374)][_0x60caad(0x2b0)](_0x23940f[_0x60caad(0x1ad)])!==_0x23940f){this[_0x60caad(0x439)][_0x60caad(0x2b0)](_0x544498)===_0x5b5fe2&&this[_0x60caad(0x439)][_0x60caad(0x354)](_0x544498);return;}let _0x131245=this[_0x60caad(0x458)][_0x60caad(0x24a)](R,_0x544498,_0x2ae677,_0x23940f);_0x131245[_0x60caad(0x427)](),this[_0x60caad(0x439)]['delete'](_0x544498),this[_0x60caad(0x2a7)]['set'](_0x544498,_0x131245);}[_0x43938c(0x345)](_0x396d3d){const _0x2c83c3=_0x43938c;this[_0x2c83c3(0x439)][_0x2c83c3(0x354)](_0x396d3d);let _0x426739=this[_0x2c83c3(0x2a7)][_0x2c83c3(0x2b0)](_0x396d3d);_0x426739&&(_0x426739[_0x2c83c3(0x202)](),this['_entities']['delete'](_0x396d3d));}[_0x43938c(0x260)](_0x5c4b0d){const _0x199f97=_0x43938c;this[_0x199f97(0x228)]['getAllUnitsForType'](_0x5c4b0d)['forEach'](_0x1805ab=>this[_0x199f97(0x439)]['delete'](_0x1805ab[_0x199f97(0x225)]())),Array[_0x199f97(0x1dc)](this['_entities'][_0x199f97(0x276)]())[_0x199f97(0x28b)](([_0x52b102,_0x53afe9])=>{const _0x5e998f=_0x199f97;_0x53afe9[_0x5e998f(0x1ad)]===_0x5c4b0d&&this[_0x5e998f(0x345)](_0x52b102);});}};z=S([x(0x0,t[_0x43938c(0x201)]),x(0x1,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x2,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x1a7)])),x(0x3,(0x0,t['Inject'])(n[_0x43938c(0x2f4)]))],z);const B={'toast':_0x43938c(0x2aa),'actionButton':_0x43938c(0x20d)},xe={'title':'collaboration-client-ui.conflict.title','content':_0x43938c(0x3de),'type':_0x43938c(0x22f)},Se={'permission_rejected':{'title':_0x43938c(0x199),'content':_0x43938c(0x23f),'type':_0x43938c(0x22f)},'license_unit_type_rejected':{'title':'collaboration-client-ui.license.title','content':'collaboration-client-ui.license.unit-type-rejected','type':_0x43938c(0x22f)},'remote_revert':{'title':_0x43938c(0x1a3),'content':_0x43938c(0x1e3),'type':_0x43938c(0x1ec)}};let V=class extends t[_0x43938c(0x43d)]{constructor(_0x3c9bf2,_0x15e3df,_0x4d3941,_0x1f30f7,_0x19052b,_0x28a87c,_0x2c06de,_0x166585){const _0x54aa99=_0x43938c;var _0x9fc412;super(),this[_0x54aa99(0x357)]=_0x3c9bf2,this[_0x54aa99(0x2d3)]=_0x15e3df,this['_collaborationUIEventService']=_0x4d3941,this['_messageService']=_0x1f30f7,this[_0x54aa99(0x438)]=_0x19052b,this[_0x54aa99(0x397)]=_0x28a87c,this['_collaborationController']=_0x2c06de,this[_0x54aa99(0x1a5)]=_0x166585,b(this,'_conflictNotification',null),b(this,_0x54aa99(0x33d),new Set()),b(this,'_saveTimedOutNotices',new Map()),b(this,_0x54aa99(0x1ea),new Map()),this[_0x54aa99(0x38a)](),this[_0x54aa99(0x36b)](),this[_0x54aa99(0x208)](),((_0x9fc412=this[_0x54aa99(0x1a5)][_0x54aa99(0x43b)](_0x54aa99(0x2c4)))==null?void 0x0:_0x9fc412[_0x54aa99(0x17b)])!==!0x1&&this[_0x54aa99(0x27d)]();}[_0x43938c(0x202)](){const _0x599b20=_0x43938c;var _0x5d23ee;(_0x5d23ee=this[_0x599b20(0x259)])==null||_0x5d23ee[_0x599b20(0x202)](),this['_conflictNotification']=null;for(let _0xc72b11 of[this[_0x599b20(0x20e)],this[_0x599b20(0x1ea)]])_0xc72b11[_0x599b20(0x28b)](_0x486c0b=>_0x486c0b['dispose']()),_0xc72b11['clear']();super[_0x599b20(0x202)]();}[_0x43938c(0x208)](){const _0x5262b3=_0x43938c;let _0x22d807=_0x43e1b8=>{const _0x4964bd=_0x5041;let _0x215994=new t['DisposableCollection']();_0x215994[_0x4964bd(0x315)]((0x0,t[_0x4964bd(0x189)])(_0x43e1b8[_0x4964bd(0x2c3)][_0x4964bd(0x3a7)]({'next':_0xb7c629=>{const _0x3986d0=_0x4964bd;_0xb7c629[_0x3986d0(0x412)]>=0x4e20&&this[_0x3986d0(0x273)](this[_0x3986d0(0x20e)],_0x43e1b8[_0x3986d0(0x250)],'collaboration-client-ui.session.collaboration-timeout'),_0xb7c629[_0x3986d0(0x379)]===_0x3986d0(0x25b)&&this[_0x3986d0(0x273)](this[_0x3986d0(0x1ea)],_0x43e1b8[_0x3986d0(0x250)],_0x3986d0(0x180));},'complete':()=>{const _0x4c9417=_0x4964bd;this[_0x4c9417(0x2ed)](_0x43e1b8[_0x4c9417(0x250)]),_0x215994[_0x4c9417(0x202)]();}}))),_0x215994[_0x4964bd(0x315)]((0x0,t['toDisposable'])(_0x43e1b8['status$'][_0x4964bd(0x3a7)](_0x15d604=>{const _0x3936df=_0x4964bd;_0x15d604!==e['CollaborationStatus'][_0x3936df(0x300)]&&_0x15d604!==e[_0x3936df(0x32f)][_0x3936df(0x3a5)]&&this[_0x3936df(0x2ed)](_0x43e1b8[_0x3936df(0x250)]);}))),this[_0x4964bd(0x198)](_0x215994);};this[_0x5262b3(0x219)][_0x5262b3(0x1b1)]()[_0x5262b3(0x28b)](_0x22d807),this[_0x5262b3(0x198)]((0x0,t['toDisposable'])(this[_0x5262b3(0x219)][_0x5262b3(0x367)][_0x5262b3(0x3a7)](_0x22d807)));}[_0x43938c(0x273)](_0x19187c,_0x145fee,_0x29b56b){const _0x478546=_0x43938c;_0x19187c[_0x478546(0x29f)](_0x145fee)||_0x19187c[_0x478546(0x478)](_0x145fee,this[_0x478546(0x438)]['show']({'title':this[_0x478546(0x397)]['t'](_0x29b56b),'type':_0x478546(0x1ec),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}['_removeAwaitingNotices'](_0x79e2fa){const _0x4ec0f7=_0x43938c;for(let _0xeb7062 of[this[_0x4ec0f7(0x20e)],this[_0x4ec0f7(0x1ea)]]){var _0x177735;(_0x177735=_0xeb7062['get'](_0x79e2fa))==null||_0x177735[_0x4ec0f7(0x202)](),_0xeb7062[_0x4ec0f7(0x354)](_0x79e2fa);}}[_0x43938c(0x38a)](){const _0xe19a59=_0x43938c;this[_0xe19a59(0x198)](this[_0xe19a59(0x357)][_0xe19a59(0x21f)](()=>{const _0x55712a=_0xe19a59;if(this['_localCacheService'][_0x55712a(0x26b)][_0x55712a(0x425)])return this[_0x55712a(0x397)]['t'](_0x55712a(0x297));}));}[_0x43938c(0x27d)](){const _0x4ad2b8=_0x43938c;let _0x5bbd78=_0x3df0d8=>{const _0x25174a=_0x5041;this[_0x25174a(0x198)]((0x0,t[_0x25174a(0x189)])(_0x3df0d8[_0x25174a(0x262)][_0x25174a(0x3a7)](_0x3c4e5b=>this[_0x25174a(0x2dc)](_0x3c4e5b))));};this[_0x4ad2b8(0x219)][_0x4ad2b8(0x1b1)]()[_0x4ad2b8(0x28b)](_0x5bbd78),this['disposeWithMe']((0x0,t['toDisposable'])(this['_collaborationController']['entityInit$'][_0x4ad2b8(0x3a7)](_0x5bbd78)));}[_0x43938c(0x2dc)](_0x28ba39){const _0x3807b0=_0x43938c;if(!_0x28ba39[_0x3807b0(0x2fa)])return;let _0x5d088f=Se[_0x28ba39['reason']]??xe;this[_0x3807b0(0x3fb)]({'title':this[_0x3807b0(0x397)]['t'](_0x5d088f[_0x3807b0(0x3a8)]),'content':this['_localeService']['t'](_0x5d088f[_0x3807b0(0x3ec)]),'type':_0x5d088f[_0x3807b0(0x2a5)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':B,'action':{'label':this['_localeService']['t'](_0x3807b0(0x1aa)),'onClick':_0x471898=>{const _0x367611=_0x3807b0;_0x471898['preventDefault'](),this[_0x367611(0x417)]();}}});}[_0x43938c(0x417)](){const _0x2e67e5=_0x43938c;window[_0x2e67e5(0x3ae)][_0x2e67e5(0x3d2)]();}[_0x43938c(0x36b)](){const _0x3fd614=_0x43938c;this['disposeWithMe'](this['_collaborationUIEventService'][_0x3fd614(0x2e8)]['subscribe'](_0x21f81d=>{const _0x3ef8f3=_0x3fd614;_0x21f81d['id']===e[_0x3ef8f3(0x1e1)]['OTHER_CLIENT_EDITING']&&this[_0x3ef8f3(0x435)][_0x3ef8f3(0x1f4)]({'type':a['MessageType'][_0x3ef8f3(0x3c1)],'content':this[_0x3ef8f3(0x397)]['t'](_0x3ef8f3(0x46f))}),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)][_0x3ef8f3(0x45c)]&&this[_0x3ef8f3(0x435)][_0x3ef8f3(0x1f4)]({'type':a[_0x3ef8f3(0x31d)][_0x3ef8f3(0x3c1)],'content':this[_0x3ef8f3(0x397)]['t'](_0x3ef8f3(0x2ba))}),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)][_0x3ef8f3(0x1eb)]&&this[_0x3ef8f3(0x36e)](),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)]['CONFLICT_CACHE_CLEAR_FAILED']&&_0x21f81d[_0x3ef8f3(0x250)]&&this['_showConflictCacheClearFailedNotification'](_0x21f81d[_0x3ef8f3(0x250)],_0x21f81d[_0x3ef8f3(0x1fa)]??''),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)][_0x3ef8f3(0x2d4)]&&this[_0x3ef8f3(0x435)][_0x3ef8f3(0x1f4)]({'type':a['MessageType'][_0x3ef8f3(0x3c1)],'content':this[_0x3ef8f3(0x397)]['t'](_0x21f81d[_0x3ef8f3(0x187)]||'')}),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)]['SOCKET_FAILED_RETRY']&&this[_0x3ef8f3(0x435)][_0x3ef8f3(0x1f4)]({'type':a[_0x3ef8f3(0x31d)][_0x3ef8f3(0x3c1)],'content':this[_0x3ef8f3(0x397)]['t'](_0x3ef8f3(0x3e4))}),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)][_0x3ef8f3(0x312)]&&this['_messageService'][_0x3ef8f3(0x1f4)]({'type':a[_0x3ef8f3(0x31d)]['Error'],'content':this[_0x3ef8f3(0x397)]['t'](_0x3ef8f3(0x359))}),_0x21f81d['id']===e[_0x3ef8f3(0x1e1)][_0x3ef8f3(0x194)]&&this[_0x3ef8f3(0x435)][_0x3ef8f3(0x1f4)]({'type':a[_0x3ef8f3(0x31d)][_0x3ef8f3(0x292)],'content':this[_0x3ef8f3(0x397)]['t']('collaboration-client-ui.license.domain-rejected')});}));}[_0x43938c(0x36e)](){const _0x5edad8=_0x43938c;this['_replaceConflictNotification']({'title':this[_0x5edad8(0x397)]['t'](_0x5edad8(0x3dc)),'content':this[_0x5edad8(0x397)]['t'](_0x5edad8(0x290)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x25f7fd,_0x3a2138){const _0x2943f4=_0x43938c;this['_replaceConflictNotification']({'title':this[_0x2943f4(0x397)]['t'](_0x2943f4(0x3dc)),'content':this[_0x2943f4(0x397)]['t'](_0x2943f4(0x242)),'type':_0x2943f4(0x22f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':B,'action':{'label':this[_0x2943f4(0x397)]['t'](_0x2943f4(0x274)),'onClick':_0x15b9fd=>{const _0x4f3eff=_0x2943f4;_0x15b9fd['preventDefault'](),this[_0x4f3eff(0x2e1)](_0x25f7fd,_0x3a2138);}}});}[_0x43938c(0x2e1)](_0x42d9bb,_0x157b17){const _0x58a404=_0x43938c;let _0x36fa13=_0x42d9bb+':'+(_0x157b17??'');this['_retryingConflictCacheUnitIDs'][_0x58a404(0x29f)](_0x36fa13)||(this[_0x58a404(0x33d)][_0x58a404(0x315)](_0x36fa13),this[_0x58a404(0x36e)](),this[_0x58a404(0x2d3)][_0x58a404(0x416)](_0x42d9bb,_0x157b17)[_0x58a404(0x27b)](()=>this[_0x58a404(0x417)]())[_0x58a404(0x336)](()=>this[_0x58a404(0x247)](_0x42d9bb,_0x157b17))[_0x58a404(0x2ea)](()=>this['_retryingConflictCacheUnitIDs'][_0x58a404(0x354)](_0x36fa13)));}[_0x43938c(0x3fb)](_0x412347){const _0x5896f4=_0x43938c;var _0x3f4166;(_0x3f4166=this[_0x5896f4(0x259)])==null||_0x3f4166['dispose'](),this[_0x5896f4(0x259)]=this[_0x5896f4(0x438)][_0x5896f4(0x1f4)](_0x412347);}};V=S([x(0x0,n[_0x43938c(0x18b)]),x(0x1,e['ILocalCacheService']),x(0x2,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x252)])),x(0x3,n[_0x43938c(0x37f)]),x(0x4,n[_0x43938c(0x388)]),x(0x5,(0x0,t['Inject'])(t[_0x43938c(0x391)])),x(0x6,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x303)])),x(0x7,t['IConfigService'])],V);let H=class{constructor(_0x1011d5,_0x2a3cfb){const _0x4ad947=_0x43938c;this[_0x4ad947(0x240)]=_0x1011d5,this[_0x4ad947(0x18c)]=_0x2a3cfb;}[_0x43938c(0x2c5)](_0x39681e){const _0x3c0308=_0x43938c;this[_0x3c0308(0x3b9)](_0x39681e),this['_transformPreviousActiveRange'](_0x39681e);}[_0x43938c(0x449)](_0x4f10cd){const _0x2d66f6=_0x43938c;let {unitID:_0x548cb2}=_0x4f10cd,{redoCache:_0x412daa}=this[_0x2d66f6(0x18c)][_0x2d66f6(0x411)](_0x548cb2)[_0x2d66f6(0x18f)](f[_0x2d66f6(0x323)])[_0x2d66f6(0x1b9)]();if(_0x412daa[_0x2d66f6(0x25c)]===0x0)return _0x4f10cd;let _0x3584d7=t['Tools'][_0x2d66f6(0x2fc)](_0x4f10cd[_0x2d66f6(0x24d)][0x0]);for(let _0x534893=0x0;_0x534893<_0x412daa[_0x2d66f6(0x25c)];_0x534893++){let _0x21faad={'id':_0x2d66f6(0x473),'params':{..._0x412daa[_0x534893]}},_0x21a868=this[_0x2d66f6(0x240)][_0x2d66f6(0x281)](_0x3584d7,_0x21faad,!0x1);if((0x0,l[_0x2d66f6(0x1d8)])(_0x21a868))throw _0x21a868[_0x2d66f6(0x22f)];_0x3584d7=_0x21a868['m1Prime'];}return{...t[_0x2d66f6(0x465)][_0x2d66f6(0x2fc)](_0x4f10cd),'mutations':[_0x3584d7]};}['_transformUndoRedoStack'](_0x4d20f5){const _0x8efa06=_0x43938c;let {unitID:_0x132dab}=_0x4d20f5,_0x5ea702=this['_renderManagerService'][_0x8efa06(0x411)](_0x132dab)[_0x8efa06(0x18f)](f[_0x8efa06(0x323)]),{undoCache:_0x2c6e84,redoCache:_0x161201}=_0x5ea702[_0x8efa06(0x1b9)]();if(_0x2c6e84[_0x8efa06(0x25c)]===0x0||_0x161201['length']===0x0)return;let _0x255a33=[],_0x48343=[],_0x436a43=t[_0x8efa06(0x465)][_0x8efa06(0x2fc)](_0x4d20f5[_0x8efa06(0x24d)][0x0]),_0x2f8eb9=t['Tools'][_0x8efa06(0x2fc)](_0x4d20f5['mutations'][0x0]);for(let _0x4beb2e=_0x2c6e84[_0x8efa06(0x25c)]-0x1;_0x4beb2e>=0x0;_0x4beb2e--){let _0x2d9128={'id':'doc.mutation.rich-text-editing','params':{..._0x2c6e84[_0x4beb2e]}},_0x18c771={'id':_0x8efa06(0x473),'params':{..._0x161201[_0x4beb2e]}},_0x69933e=this[_0x8efa06(0x240)][_0x8efa06(0x281)](_0x436a43,_0x2d9128,!0x1),_0x3dd361=this[_0x8efa06(0x240)][_0x8efa06(0x281)](_0x2f8eb9,_0x18c771,!0x1);if((0x0,l[_0x8efa06(0x1d8)])(_0x69933e))throw _0x69933e['error'];if((0x0,l[_0x8efa06(0x1d8)])(_0x3dd361))throw _0x3dd361[_0x8efa06(0x22f)];_0x255a33[_0x8efa06(0x43f)](_0x69933e[_0x8efa06(0x283)][_0x8efa06(0x1c5)]),_0x48343[_0x8efa06(0x43f)](_0x3dd361[_0x8efa06(0x283)]['params']),_0x436a43=_0x69933e['m1Prime'],_0x2f8eb9=_0x3dd361[_0x8efa06(0x436)];}_0x5ea702[_0x8efa06(0x3a3)]({'undoCache':_0x255a33,'redoCache':_0x48343});}['_transformPreviousActiveRange'](_0x1c756f){const _0x476c44=_0x43938c;let {unitID:_0x58528a}=_0x1c756f,_0x512709=this[_0x476c44(0x18c)]['getRenderUnitById'](_0x58528a)[_0x476c44(0x18f)](f['DocIMEInputManagerService']),_0x253e34=_0x512709[_0x476c44(0x1ab)]();if(_0x253e34==null)return;let _0x14b6f8=[{'id':_0x476c44(0x473),'params':{'unitId':_0x1c756f[_0x476c44(0x250)],'actions':null,'textRanges':[_0x253e34]}}],_0x18c2ef=this[_0x476c44(0x240)]['transformMutationsWithChangeset'](_0x1c756f,_0x14b6f8);if(!(0x0,l[_0x476c44(0x24b)])(_0x18c2ef))throw _0x18c2ef[_0x476c44(0x22f)];let _0x57c432=_0x18c2ef[_0x476c44(0x283)][0x0][_0x476c44(0x1c5)][_0x476c44(0x431)];Array['isArray'](_0x57c432)&&_0x57c432[_0x476c44(0x25c)]&&_0x512709[_0x476c44(0x232)](_0x57c432[0x0]);}};H=S([x(0x0,l['ITransformService']),x(0x1,p[_0x43938c(0x1a0)])],H);let U=class{constructor(_0x270d38,_0x46333c,_0x6d2a94){const _0x2d849e=_0x43938c;this['_injector']=_0x270d38,this['_transformService']=_0x46333c,this[_0x2d849e(0x2e3)]=_0x6d2a94;}[_0x43938c(0x382)](_0xbbedc){const _0x1afeba=_0x43938c;this[_0x1afeba(0x2ff)](_0xbbedc);}[_0x43938c(0x449)](_0x46fbaa){const _0x150edb=_0x43938c;let {unitID:_0x251b9c}=_0x46fbaa,{collaboration:_0x4487bf}=this[_0x150edb(0x2e3)]['getStateCache'](_0x251b9c);if(_0x4487bf[_0x150edb(0x25c)]===0x0)return _0x46fbaa;let _0x55d8cf=t[_0x150edb(0x465)]['deepClone'](_0x46fbaa[_0x150edb(0x24d)][0x0]);for(let _0x41ac78=0x0;_0x41ac78<_0x4487bf[_0x150edb(0x25c)];_0x41ac78++){let _0x35906c={'id':_0x150edb(0x473),'params':{'unitId':_0x4487bf[_0x41ac78][_0x150edb(0x410)],..._0x4487bf[_0x41ac78][_0x150edb(0x1e5)]}},_0x24ecd5=this[_0x150edb(0x240)]['transformMutation'](_0x55d8cf,_0x35906c,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x24ecd5))throw _0x24ecd5['error'];_0x55d8cf=_0x24ecd5[_0x150edb(0x436)];}return{...t['Tools'][_0x150edb(0x2fc)](_0x46fbaa),'mutations':[_0x55d8cf]};}[_0x43938c(0x2ff)](_0x49f2b9){const _0x16a257=_0x43938c;let {unitID:_0xaf96ac}=_0x49f2b9,{history:_0xa4b5ec,collaboration:_0x3c7bad}=this[_0x16a257(0x2e3)][_0x16a257(0x310)](_0xaf96ac);if(_0xa4b5ec[_0x16a257(0x25c)]===0x0&&_0x3c7bad[_0x16a257(0x25c)]===0x0)return;let _0x34af9e=[],_0x38abfb=[],_0x2d2e2d=t['Tools'][_0x16a257(0x2fc)](_0x49f2b9[_0x16a257(0x24d)][0x0]),_0x134780=t[_0x16a257(0x465)]['deepClone'](_0x49f2b9[_0x16a257(0x24d)][0x0]);for(let _0x1bc516=_0xa4b5ec[_0x16a257(0x25c)]-0x1;_0x1bc516>=0x0;_0x1bc516--){let _0x3fc675={'id':_0x16a257(0x473),'params':{'unitId':_0xa4b5ec[_0x1bc516][_0x16a257(0x410)],..._0xa4b5ec[_0x1bc516]['undoState']}},_0x5695ae={'id':_0x16a257(0x473),'params':{'unitId':_0xa4b5ec[_0x1bc516][_0x16a257(0x410)],..._0xa4b5ec[_0x1bc516]['redoState']}},_0x46a912=this[_0x16a257(0x240)][_0x16a257(0x281)](_0x2d2e2d,_0x3fc675,!0x1),_0x3b9822=this[_0x16a257(0x240)][_0x16a257(0x281)](_0x134780,_0x5695ae,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x46a912))throw _0x46a912['error'];if((0x0,l['isTransformMutationFailure'])(_0x3b9822))throw _0x3b9822[_0x16a257(0x22f)];_0x34af9e[_0x16a257(0x43f)]({..._0xa4b5ec[_0x1bc516],'undoState':_0x46a912[_0x16a257(0x283)][_0x16a257(0x1c5)],'redoState':_0x3b9822[_0x16a257(0x283)][_0x16a257(0x1c5)]}),_0x2d2e2d=_0x46a912['m1Prime'],_0x134780=_0x3b9822[_0x16a257(0x436)];}_0x2d2e2d=t[_0x16a257(0x465)][_0x16a257(0x2fc)](_0x49f2b9[_0x16a257(0x24d)][0x0]),_0x134780=t[_0x16a257(0x465)][_0x16a257(0x2fc)](_0x49f2b9[_0x16a257(0x24d)][0x0]);for(let _0x39c045=_0x3c7bad[_0x16a257(0x25c)]-0x1;_0x39c045>=0x0;_0x39c045--){let _0x408e73={'id':_0x16a257(0x473),'params':{'unitId':_0x3c7bad[_0x39c045][_0x16a257(0x410)],..._0x3c7bad[_0x39c045][_0x16a257(0x41c)]}},_0x2a907b={'id':_0x16a257(0x473),'params':{'unitId':_0x3c7bad[_0x39c045][_0x16a257(0x410)],..._0x3c7bad[_0x39c045][_0x16a257(0x1e5)]}},_0x50b6f8=this['_transformService'][_0x16a257(0x281)](_0x2d2e2d,_0x408e73,!0x1),_0x78e47d=this['_transformService'][_0x16a257(0x281)](_0x134780,_0x2a907b,!0x1);if((0x0,l[_0x16a257(0x1d8)])(_0x50b6f8))throw _0x50b6f8[_0x16a257(0x22f)];if((0x0,l[_0x16a257(0x1d8)])(_0x78e47d))throw _0x78e47d[_0x16a257(0x22f)];_0x38abfb[_0x16a257(0x43f)]({..._0x3c7bad[_0x39c045],'undoState':_0x50b6f8[_0x16a257(0x283)]['params'],'redoState':_0x78e47d[_0x16a257(0x283)][_0x16a257(0x1c5)]}),_0x2d2e2d=_0x50b6f8[_0x16a257(0x436)],_0x134780=_0x78e47d['m1Prime'];}this[_0x16a257(0x2e3)][_0x16a257(0x457)](_0xaf96ac,{'history':_0x34af9e,'collaboration':_0x38abfb});}};function _0x5041(_0x7e5ee5,_0x6e81e2){_0x7e5ee5=_0x7e5ee5-0x17a;const _0x52dc8b=_0x52dc();let _0x5041e8=_0x52dc8b[_0x7e5ee5];return _0x5041e8;}U=S([x(0x0,(0x0,t['Inject'])(t['Injector'])),x(0x1,l[_0x43938c(0x314)]),x(0x2,(0x0,t['Inject'])(d[_0x43938c(0x1ff)]))],U);let W=class{constructor(_0xee8736,_0x394181){const _0x47f48f=_0x43938c;this[_0x47f48f(0x19d)]=_0xee8736,this[_0x47f48f(0x240)]=_0x394181;}['prepareTransformSelections'](_0x3865e1){const _0x56b649=_0x43938c;var _0x701638;let _0x17034c=this[_0x56b649(0x19d)][_0x56b649(0x3e8)]()??[],_0x42c27a=this[_0x56b649(0x19d)][_0x56b649(0x422)]();if(_0x17034c[_0x56b649(0x25c)]===0x0||_0x42c27a==null)return null;let _0x4d4b43=_0x3865e1[_0x56b649(0x250)],_0x10e2d7=[{'id':_0x56b649(0x473),'params':{'unitId':_0x4d4b43,'actions':null,'textRanges':_0x17034c}}],_0x4a28d2=this[_0x56b649(0x240)][_0x56b649(0x1c3)](_0x3865e1,_0x10e2d7);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x4a28d2))throw _0x4a28d2[_0x56b649(0x22f)];let _0x592fba=(_0x701638=_0x4a28d2[_0x56b649(0x283)][0x0])==null?void 0x0:_0x701638[_0x56b649(0x1c5)],_0x1e5625=_0x592fba&&typeof _0x592fba==_0x56b649(0x3a9)&&_0x56b649(0x431)in _0x592fba?_0x592fba['textRanges']:null;if(!Te(_0x1e5625))return null;let _0x304858=Ce(_0x3865e1[_0x56b649(0x24d)][_0x56b649(0x2c7)](_0x15c2b9=>G(_0x15c2b9[_0x56b649(0x1c5)]))?_0x1e5625[_0x56b649(0x39f)](_0x3f637b=>!(_0x56b649(0x1b4)in _0x3f637b)):_0x1e5625,{..._0x42c27a,'options':_0x42c27a[_0x56b649(0x23d)]?{..._0x42c27a[_0x56b649(0x23d)],'wholeDocument':!0x1}:void 0x0}),_0xb0c33c={'unitId':_0x4d4b43,'subUnitId':_0x4d4b43};this['_docSelectionManagerService'][_0x56b649(0x380)](_0x304858,_0xb0c33c);let _0x3b7684=!0x0;return{'commit':()=>{_0x3b7684=!0x1;},'rollback':()=>{const _0x4b0715=_0x56b649;_0x3b7684&&(_0x3b7684=!0x1,this[_0x4b0715(0x19d)][_0x4b0715(0x380)](_0x42c27a,_0xb0c33c));}};}};W=S([x(0x0,(0x0,t['Inject'])(d[_0x43938c(0x1e7)])),x(0x1,l['ITransformService'])],W);function Ce(_0x3f1896,_0x34affd){let _0x201ae9=[],_0x50e203=[];for(let _0x59a318 of _0x3f1896)we(_0x59a318)?_0x50e203['push'](_0x59a318):_0x201ae9['push'](_0x59a318);return{..._0x34affd,'textRanges':_0x201ae9,'rectRanges':_0x50e203};}function we(_0x44aea9){return'tableId'in _0x44aea9;}function Te(_0x351d6d){const _0x2e7085=_0x43938c;return Array['isArray'](_0x351d6d)&&_0x351d6d[_0x2e7085(0x334)](_0x12e2e8=>typeof _0x12e2e8==_0x2e7085(0x3a9)&&!!_0x12e2e8&&_0x2e7085(0x2da)in _0x12e2e8&&'endOffset'in _0x12e2e8);}function G(_0x1923a6){const _0x30b91b=_0x43938c;return _0x1923a6===_0x30b91b(0x3c4)?!0x0:Array['isArray'](_0x1923a6)?_0x1923a6[_0x30b91b(0x2c7)](_0x1f6c49=>G(_0x1f6c49)):!_0x1923a6||typeof _0x1923a6!=_0x30b91b(0x3a9)?!0x1:Object[_0x30b91b(0x1e2)](_0x1923a6)[_0x30b91b(0x2c7)](_0x331f3c=>G(_0x331f3c));}let K=class extends t['Disposable']{constructor(_0x486c54,_0x5d567b,_0x1b3018,_0x2e6594,_0x3c5103,_0x1b5a90,_0x51321c){const _0x5dc4fd=_0x43938c;super(),this[_0x5dc4fd(0x219)]=_0x486c54,this['_docTransformIMECacheService']=_0x5d567b,this[_0x5dc4fd(0x1ed)]=_0x1b3018,this[_0x5dc4fd(0x385)]=_0x2e6594,this[_0x5dc4fd(0x366)]=_0x3c5103,this['_messageService']=_0x1b5a90,this['_localeService']=_0x51321c,b(this,'_status$',new r[(_0x5dc4fd(0x325))](e[_0x5dc4fd(0x32f)][_0x5dc4fd(0x469)])),this['_initEntityListener']();}['_initEntityListener'](){const _0x5545d0=_0x43938c;this['disposeWithMe'](this['_collaborationController'][_0x5545d0(0x367)][_0x5545d0(0x3a7)](_0x4bbb5b=>{const _0x455b3d=_0x5545d0;_0x4bbb5b instanceof e[_0x455b3d(0x26f)]&&_0x4bbb5b[_0x455b3d(0x3c3)]({'onTransformIME':_0x28f2e2=>this['_docTransformIMECacheService'][_0x455b3d(0x2c5)](_0x28f2e2),'onTransformState':_0x4b0044=>this['_docTransformStateCacheService'][_0x455b3d(0x382)](_0x4b0044),'onPrepareTransformSelections':_0x1167ee=>this[_0x455b3d(0x385)][_0x455b3d(0x40a)](_0x1167ee),'onSyncEditingCollabCursor':_0x509583=>this[_0x455b3d(0x366)][_0x455b3d(0x272)](_0x509583),'onTransformRemoteChangesetByIMECache':_0x38293e=>this['_docTransformIMECacheService'][_0x455b3d(0x449)](_0x38293e),'onTransformRemoteChangesetByStateCache':_0x6477ed=>this[_0x455b3d(0x1ed)][_0x455b3d(0x449)](_0x6477ed)});}));}};K=S([x(0x0,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x303)])),x(0x1,(0x0,t[_0x43938c(0x360)])(H)),x(0x2,(0x0,t[_0x43938c(0x360)])(U)),x(0x3,(0x0,t[_0x43938c(0x360)])(W)),x(0x4,(0x0,t[_0x43938c(0x360)])(O)),x(0x5,n[_0x43938c(0x37f)]),x(0x6,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x391)]))],K);let q=class extends t[_0x43938c(0x43d)]{constructor(_0x10d384,_0x4dc61a,_0x506233,_0x5434e4){const _0x282e96=_0x43938c;super(),this[_0x282e96(0x458)]=_0x10d384,this[_0x282e96(0x3cb)]=_0x4dc61a,this['_logService']=_0x506233,this[_0x282e96(0x253)]=_0x5434e4,b(this,'_memberID',void 0x0),this[_0x282e96(0x42f)]();}['_init'](){const _0x3b6ea0=_0x43938c;this[_0x3b6ea0(0x1c9)](),this[_0x3b6ea0(0x2b1)](),this['_monkeyPatchLogService'](),this[_0x3b6ea0(0x236)]();}[_0x43938c(0x236)](){const _0x161f73=_0x43938c;this[_0x161f73(0x198)](this[_0x161f73(0x253)][_0x161f73(0x36d)][_0x161f73(0x3a7)](_0x1cb704=>{const _0x889fc2=_0x161f73;this[_0x889fc2(0x2a9)]=_0x1cb704==null?void 0x0:_0x1cb704['memberID'];}));}[_0x43938c(0x1c9)](){const _0x221ce1=_0x43938c;let _0x28fdb8=_0x37207c=>{const _0x24e3a2=_0x5041;var _0x431308;this[_0x24e3a2(0x3d1)](_0x24e3a2(0x22f),_0x24e3a2(0x239)+_0x37207c[_0x24e3a2(0x19e)]+_0x24e3a2(0x456)+_0x37207c['filename']+':'+_0x37207c[_0x24e3a2(0x3af)]+':'+_0x37207c[_0x24e3a2(0x234)]+'\x0a'+(((_0x431308=_0x37207c[_0x24e3a2(0x22f)])==null?void 0x0:_0x431308['stack'])||''));};window[_0x221ce1(0x3d6)]('error',_0x28fdb8),this[_0x221ce1(0x198)](()=>{const _0xfed1bc=_0x221ce1;window[_0xfed1bc(0x2ad)](_0xfed1bc(0x22f),_0x28fdb8);});}[_0x43938c(0x2b1)](){const _0x1a73ff=_0x43938c;let _0x86bab1=_0x3f00d0=>{const _0x5a361d=_0x5041;this[_0x5a361d(0x3d1)](_0x5a361d(0x22f),'[Unhandled\x20Rejection]:\x20'+_0x3f00d0[_0x5a361d(0x379)]);};window[_0x1a73ff(0x3d6)](_0x1a73ff(0x390),_0x86bab1),this['disposeWithMe'](()=>{const _0x7d124f=_0x1a73ff;window[_0x7d124f(0x2ad)]('unhandledrejection',_0x86bab1);});}[_0x43938c(0x2d6)](){const _0x2851fa=_0x43938c;let _0x355c96=this[_0x2851fa(0x3b6)][_0x2851fa(0x22f)][_0x2851fa(0x2a0)](this[_0x2851fa(0x3b6)]);this['_logService'][_0x2851fa(0x22f)]=(..._0x598f9e)=>{const _0x51cf5c=_0x2851fa;let _0x5cf209=_0x598f9e['map'](_0xb60cf3=>_0xb60cf3 instanceof Error?_0xb60cf3[_0x51cf5c(0x19e)]+'\x0a'+_0xb60cf3[_0x51cf5c(0x369)]:String(_0xb60cf3))[_0x51cf5c(0x45e)]('\x20');this[_0x51cf5c(0x3d1)](_0x51cf5c(0x22f),_0x51cf5c(0x2a6)+_0x5cf209),_0x355c96(..._0x598f9e);},this['disposeWithMe'](()=>{const _0x243850=_0x2851fa;this[_0x243850(0x3b6)][_0x243850(0x22f)]=_0x355c96;});}['_uploadLog'](_0x2c0972,_0x1e396f){const _0x34cd6f=_0x43938c;try{let _0x3440b6={'userId':this['_memberID'],'logLabel':_0x2c0972,'content':_0x1e396f};this[_0x34cd6f(0x3cb)][_0x34cd6f(0x1c4)](_0x34cd6f(0x352),{'body':_0x3440b6})[_0x34cd6f(0x336)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x1,(0x0,t[_0x43938c(0x360)])(m[_0x43938c(0x29e)])),x(0x2,t[_0x43938c(0x27a)]),x(0x3,(0x0,t[_0x43938c(0x360)])(e[_0x43938c(0x1a7)]))],q);function Ee({state$:_0x28022d}){const _0x591cbc=_0x43938c;let _0xeebb6d=(0x0,n[_0x591cbc(0x1f6)])(_0x28022d,null,!0x0);return _0xeebb6d?(0x0,c[_0x591cbc(0x1c1)])('div',{'data-u-comp':_0x591cbc(0x329),'role':'alert','className':_0x591cbc(0x35d),'children':[(0x0,c[_0x591cbc(0x2b2)])(o[_0x591cbc(0x468)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,c[_0x591cbc(0x2b2)])(_0x591cbc(0x38e),{'children':_0xeebb6d[_0x591cbc(0x3ec)]}),(0x0,c[_0x591cbc(0x2b2)])(a['Button'],{'size':_0x591cbc(0x377),'variant':_0x591cbc(0x2af),'onClick':()=>window[_0x591cbc(0x3ae)]['reload'](),'children':_0xeebb6d[_0x591cbc(0x263)]})]}):null;}const De=_0x43938c(0x1fe);let J=class extends t[_0x43938c(0x43d)]{constructor(_0x8ea2f8,_0x425369,_0x16894c,_0xef6cf5,_0x52ed67){const _0x4a37f8=_0x43938c;super(),this[_0x4a37f8(0x46d)]=_0x8ea2f8,this['_messageService']=_0x425369,this[_0x4a37f8(0x397)]=_0x16894c,this['_injector']=_0xef6cf5,b(this,_0x4a37f8(0x35a),new r[(_0x4a37f8(0x325))](null)),b(this,'_messageIds',new Set()),b(this,_0x4a37f8(0x47b),new Map()),b(this,_0x4a37f8(0x1d3),this[_0x4a37f8(0x35a)][_0x4a37f8(0x1a8)]());let _0x5219b8=()=>(0x0,s[_0x4a37f8(0x414)])(Ee,{'state$':this[_0x4a37f8(0x1d3)]});this[_0x4a37f8(0x198)](_0x52ed67[_0x4a37f8(0x20c)](n[_0x4a37f8(0x361)][_0x4a37f8(0x213)],()=>(0x0,n[_0x4a37f8(0x1cd)])(_0x5219b8,this[_0x4a37f8(0x458)]))),this[_0x4a37f8(0x198)](this[_0x4a37f8(0x46d)][_0x4a37f8(0x2be)][_0x4a37f8(0x3a7)](_0x2bacc1=>{_0x2bacc1['forEach'](_0x1c0f35=>this['_updateMessage'](_0x1c0f35));}));}['dispose'](){const _0x51a12f=_0x43938c;this['_messageIds'][_0x51a12f(0x28b)](_0x483fdd=>this[_0x51a12f(0x435)]['remove'](_0x483fdd)),this[_0x51a12f(0x442)]['clear'](),this[_0x51a12f(0x47b)][_0x51a12f(0x28b)](({timeoutId:_0x2c21de})=>clearTimeout(_0x2c21de)),this['_blockProgressWatches'][_0x51a12f(0x270)](),this['_timeoutState$'][_0x51a12f(0x183)](),super[_0x51a12f(0x202)]();}['_updateMessage'](_0x117f63){const _0x444d83=_0x43938c;let _0x8d9417=''+De+_0x117f63[_0x444d83(0x410)];_0x117f63[_0x444d83(0x42e)]===l[_0x444d83(0x347)]['COMPLETE']?(this[_0x444d83(0x205)](_0x117f63['unitId']),this[_0x444d83(0x26e)](_0x117f63[_0x444d83(0x410)]),this[_0x444d83(0x435)][_0x444d83(0x254)](_0x8d9417),this[_0x444d83(0x442)][_0x444d83(0x354)](_0x8d9417)):_0x117f63[_0x444d83(0x42e)]===l['SnapshotLoadStage']['ERROR']?(this[_0x444d83(0x205)](_0x117f63[_0x444d83(0x410)]),this[_0x444d83(0x26e)](_0x117f63[_0x444d83(0x410)]),this[_0x444d83(0x435)][_0x444d83(0x1f4)]({'id':_0x8d9417,'type':a['MessageType'][_0x444d83(0x292)],'content':this[_0x444d83(0x397)]['t'](_0x444d83(0x359))}),this['_messageIds'][_0x444d83(0x354)](_0x8d9417)):_0x117f63['stage']!==l[_0x444d83(0x347)][_0x444d83(0x3fa)]||_0x117f63[_0x444d83(0x32a)]<=0xa?(this[_0x444d83(0x205)](_0x117f63[_0x444d83(0x410)]),this[_0x444d83(0x435)][_0x444d83(0x254)](_0x8d9417),this['_messageIds'][_0x444d83(0x354)](_0x8d9417)):this[_0x444d83(0x2d9)](_0x117f63)||(this['_messageService'][_0x444d83(0x1f4)]({'id':_0x8d9417,'type':a[_0x444d83(0x31d)][_0x444d83(0x39a)],'duration':0x1/0x0,'content':this[_0x444d83(0x397)]['t'](_0x444d83(0x467))+'\x20'+_0x117f63[_0x444d83(0x17f)]+'/'+_0x117f63['totalBlocks']}),this['_messageIds'][_0x444d83(0x315)](_0x8d9417));}[_0x43938c(0x2d9)](_0x1d31ba){const _0x4c5e5=_0x43938c;let _0x16aff4=this[_0x4c5e5(0x47b)][_0x4c5e5(0x2b0)](_0x1d31ba[_0x4c5e5(0x410)]);if((_0x16aff4==null?void 0x0:_0x16aff4[_0x4c5e5(0x17f)])===_0x1d31ba['loadedBlocks'])return _0x16aff4[_0x4c5e5(0x1d1)];this[_0x4c5e5(0x205)](_0x1d31ba[_0x4c5e5(0x410)]);let _0x2435c8=setTimeout(()=>{const _0x41b667=_0x4c5e5;let _0x3f07b9=this[_0x41b667(0x47b)]['get'](_0x1d31ba['unitId']);if(!_0x3f07b9||_0x3f07b9[_0x41b667(0x214)]!==_0x2435c8)return;_0x3f07b9[_0x41b667(0x1d1)]=!0x0;let _0x4df57f=''+De+_0x1d31ba['unitId'];this['_messageService'][_0x41b667(0x254)](_0x4df57f),this[_0x41b667(0x442)][_0x41b667(0x354)](_0x4df57f),this['_timeoutState$']['next']({'unitId':_0x1d31ba[_0x41b667(0x410)],'content':this[_0x41b667(0x397)]['t'](_0x41b667(0x3f6),String(_0x1d31ba['loadedBlocks']),String(_0x1d31ba['totalBlocks'])),'refreshLabel':this['_localeService']['t'](_0x41b667(0x1aa))});},0xea60);return this[_0x4c5e5(0x47b)][_0x4c5e5(0x478)](_0x1d31ba['unitId'],{'loadedBlocks':_0x1d31ba[_0x4c5e5(0x17f)],'timedOut':!0x1,'timeoutId':_0x2435c8}),!0x1;}['_clearBlockProgressWatch'](_0x53778a){const _0x3ce695=_0x43938c;let _0x3465bd=this[_0x3ce695(0x47b)][_0x3ce695(0x2b0)](_0x53778a);_0x3465bd&&(clearTimeout(_0x3465bd[_0x3ce695(0x214)]),this[_0x3ce695(0x47b)][_0x3ce695(0x354)](_0x53778a),this[_0x3ce695(0x26e)](_0x53778a));}[_0x43938c(0x26e)](_0xf78862){const _0x487e9f=_0x43938c;var _0x3edca1;((_0x3edca1=this[_0x487e9f(0x35a)]['value'])==null?void 0x0:_0x3edca1[_0x487e9f(0x410)])===_0xf78862&&this['_timeoutState$']['next'](null);}};J=S([x(0x0,(0x0,t[_0x43938c(0x360)])(l[_0x43938c(0x402)])),x(0x1,n['IMessageService']),x(0x2,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x391)])),x(0x3,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x4,n['IUIPartsService'])],J);let Y=class extends t[_0x43938c(0x43d)]{constructor(_0x563d46,_0x426050,_0x3df590,_0x34030b,_0x5a5bf9){const _0xd9179c=_0x43938c;var _0x45e5c2;super(),this['_configService']=_0x563d46,this[_0xd9179c(0x1b6)]=_0x426050,this[_0xd9179c(0x337)]=_0x3df590,this[_0xd9179c(0x3b6)]=_0x34030b,this[_0xd9179c(0x1f3)]=_0x5a5bf9,b(this,_0xd9179c(0x284),new Map()),b(this,_0xd9179c(0x38b),new Map()),b(this,_0xd9179c(0x3dd),new Map()),b(this,'_disabled',!0x1),this[_0xd9179c(0x40c)]=!((_0x45e5c2=this[_0xd9179c(0x1a5)][_0xd9179c(0x43b)](e[_0xd9179c(0x307)]))!=null&&_0x45e5c2[_0xd9179c(0x461)]);}[_0x43938c(0x470)](){const _0x4e92fe=_0x43938c;this[_0x4e92fe(0x40c)]=!0x0;}[_0x43938c(0x269)](){const _0x5b2a33=_0x43938c;this[_0x5b2a33(0x40c)]=!0x1;}get[_0x43938c(0x26b)](){const _0x9d3797=_0x43938c;let _0x3f8152=new Map(this[_0x9d3797(0x38b)]);return this[_0x9d3797(0x3dd)][_0x9d3797(0x28b)]((_0x54ae6a,_0x54e3e2)=>{const _0xb36192=_0x9d3797;_0x3f8152[_0xb36192(0x29f)](_0x54e3e2)||_0x3f8152['set'](_0x54e3e2,0x0);}),_0x3f8152;}[_0x43938c(0x202)](){const _0x3cad99=_0x43938c;this[_0x3cad99(0x3bb)]||(super[_0x3cad99(0x202)](),this[_0x3cad99(0x40c)]=!0x0,this[_0x3cad99(0x2f8)]()[_0x3cad99(0x336)](_0x598396=>this[_0x3cad99(0x3b6)][_0x3cad99(0x22f)](_0x598396)));}async[_0x43938c(0x3a1)](_0x233bde,_0x36d60a){const _0x703776=_0x43938c;if(this[_0x703776(0x40c)])return null;let _0x10067=this['_getUserId'](_0x36d60a),_0x4054c6=await this['_localStorageService'][_0x703776(0x471)]((0x0,e['getLocalCacheKey'])(_0x233bde,_0x10067));return(_0x4054c6==null?void 0x0:_0x4054c6[_0x703776(0x250)])===_0x233bde&&this['_normalizeUserId'](_0x4054c6[_0x703776(0x1fa)])===_0x10067?_0x4054c6:null;}async[_0x43938c(0x193)](_0x5a3032,_0x5db010,_0x26d69d){const _0x5405c6=_0x43938c;let _0x49a9f7=this['_getUserId'](_0x26d69d),_0x1c6938=(0x0,e[_0x5405c6(0x19b)])(_0x5a3032,_0x49a9f7),_0x1eedf8=this[_0x5405c6(0x1b6)][_0x5405c6(0x373)](_0x1c6938,{..._0x5db010,'unitID':_0x5a3032,'userId':_0x49a9f7});return this[_0x5405c6(0x459)](_0x1c6938,_0x1eedf8),!!await _0x1eedf8;}async['backupOfflineData'](_0x4302e9,_0x33ec8b,_0x42d064){const _0x238ae0=_0x43938c;let _0x304e36=this['_getUserId'](_0x42d064),_0x196b8c=(0x0,e['getLocalCacheKey'])(_0x4302e9,_0x304e36),_0x4b4eae=this['_cachedData'][_0x238ae0(0x2b0)](_0x196b8c)??await this[_0x238ae0(0x1b6)][_0x238ae0(0x471)](_0x196b8c);if(!_0x4b4eae||this[_0x238ae0(0x1e6)](_0x4b4eae['userId'])!==_0x304e36||_0x4b4eae[_0x238ae0(0x250)]!==_0x4302e9)return;let _0x15e86b=Date[_0x238ae0(0x2a4)](),_0x44446b=new Date(_0x15e86b)['toISOString']();await this[_0x238ae0(0x1b6)][_0x238ae0(0x373)](_0x196b8c+':backup:'+_0x15e86b,{'reason':_0x33ec8b,'createdAt':_0x44446b,'data':_0x4b4eae});}async[_0x43938c(0x416)](_0x43e131,_0x4adf65){const _0x4f6789=_0x43938c;let _0x2aebaa=this[_0x4f6789(0x404)](_0x4adf65),_0x186679=(0x0,e[_0x4f6789(0x19b)])(_0x43e131,_0x2aebaa),_0x55f40e=this[_0x4f6789(0x38b)][_0x4f6789(0x2b0)](_0x186679);_0x55f40e!==void 0x0&&(window[_0x4f6789(0x184)](_0x55f40e),this[_0x4f6789(0x38b)][_0x4f6789(0x354)](_0x186679));let _0x195aeb=this['_activeSaveTaskMap'][_0x4f6789(0x2b0)](_0x186679);_0x195aeb&&await Promise['allSettled'](_0x195aeb),this[_0x4f6789(0x284)][_0x4f6789(0x354)](_0x186679),await this[_0x4f6789(0x1b6)][_0x4f6789(0x2d1)](_0x186679);}[_0x43938c(0x344)](_0x1c36ab,_0x4fe8c0,_0x2e32d9,_0x5bb823,_0x31cd2d){const _0x1b71af=_0x43938c;if(this[_0x1b71af(0x3bb)])return;let _0x1324f9=this[_0x1b71af(0x404)](_0x31cd2d),_0x1b5d61=(0x0,e[_0x1b71af(0x19b)])(_0x1c36ab,_0x1324f9),_0x39f84c=this['_revisionService']['getCurrentRevOfUnit'](_0x1c36ab);this[_0x1b71af(0x284)][_0x1b71af(0x478)](_0x1b5d61,{'unitID':_0x1c36ab,'userId':_0x1324f9,'type':_0x4fe8c0,'awaitingChangeset':_0x2e32d9,'mutations':_0x5bb823,'rev':_0x39f84c}),this[_0x1b71af(0x38b)][_0x1b71af(0x29f)](_0x1b5d61)||this[_0x1b71af(0x3ea)](_0x1b5d61);}[_0x43938c(0x404)](_0x2ebe5e=((()=>{const _0x4fd363=_0x43938c;var _0xd6b43a;return(_0xd6b43a=this[_0x4fd363(0x1f3)][_0x4fd363(0x29b)]())==null?void 0x0:_0xd6b43a[_0x4fd363(0x384)];})())){const _0x11253b=_0x43938c;return this[_0x11253b(0x1e6)](_0x2ebe5e);}[_0x43938c(0x1e6)](_0xdb5806){return _0xdb5806===''||_0xdb5806==null?void 0x0:_0xdb5806;}[_0x43938c(0x3ea)](_0x2b9a08){const _0x115907=_0x43938c;let _0x2d80b3=this[_0x115907(0x21b)]();_0x2d80b3===0x0?this['_saveCache'](_0x2b9a08)[_0x115907(0x336)](_0x29caac=>this['_logService'][_0x115907(0x22f)](_0x29caac)):this[_0x115907(0x38b)][_0x115907(0x478)](_0x2b9a08,window[_0x115907(0x30d)](()=>{const _0x1b61d3=_0x115907;this[_0x1b61d3(0x405)](_0x2b9a08)['catch'](_0x46b6a1=>this[_0x1b61d3(0x3b6)][_0x1b61d3(0x22f)](_0x46b6a1));},_0x2d80b3));}[_0x43938c(0x21b)](){const _0x9fc03b=_0x43938c;return this[_0x9fc03b(0x1a5)][_0x9fc03b(0x43b)](e[_0x9fc03b(0x264)])??e[_0x9fc03b(0x444)];}[_0x43938c(0x405)](_0x65d8c0){const _0x16f7a8=_0x43938c;let _0x4266f2=this['_saveTaskMap']['get'](_0x65d8c0);_0x4266f2!==void 0x0&&window[_0x16f7a8(0x184)](_0x4266f2);let _0x197e19=this['_cachedData']['get'](_0x65d8c0);if(!_0x197e19)return Promise[_0x16f7a8(0x2b4)]();let _0x31e641=this[_0x16f7a8(0x3dd)][_0x16f7a8(0x2b0)](_0x65d8c0),_0x11739f=Promise[_0x16f7a8(0x3ef)](_0x31e641?[..._0x31e641]:[])[_0x16f7a8(0x27b)](()=>this[_0x16f7a8(0x1b6)][_0x16f7a8(0x373)](_0x65d8c0,_0x197e19))[_0x16f7a8(0x27b)](()=>{const _0x1ed2db=_0x16f7a8;_0x4266f2!==void 0x0&&this['_saveTaskMap'][_0x1ed2db(0x2b0)](_0x65d8c0)===_0x4266f2&&(this[_0x1ed2db(0x38b)]['delete'](_0x65d8c0),!this['_disposed']&&this['_cachedData'][_0x1ed2db(0x2b0)](_0x65d8c0)!==_0x197e19&&this['_scheduleSaving'](_0x65d8c0));});return this[_0x16f7a8(0x459)](_0x65d8c0,_0x11739f),_0x11739f;}[_0x43938c(0x459)](_0x163983,_0x3af777){const _0x4452f0=_0x43938c;let _0x53fddb=this[_0x4452f0(0x3dd)][_0x4452f0(0x2b0)](_0x163983);_0x53fddb||(_0x53fddb=new Set(),this['_activeSaveTaskMap'][_0x4452f0(0x478)](_0x163983,_0x53fddb)),_0x53fddb[_0x4452f0(0x315)](_0x3af777);let _0x2374cf=()=>{const _0x3375a0=_0x4452f0;_0x53fddb[_0x3375a0(0x354)](_0x3af777),_0x53fddb[_0x3375a0(0x425)]===0x0&&this[_0x3375a0(0x3dd)][_0x3375a0(0x354)](_0x163983);};_0x3af777[_0x4452f0(0x27b)](_0x2374cf,_0x2374cf);}async[_0x43938c(0x2f8)](){const _0x206baa=_0x43938c;let _0x505dae=[...this[_0x206baa(0x38b)][_0x206baa(0x40b)]()][_0x206baa(0x1ef)](_0x4dc292=>this[_0x206baa(0x405)](_0x4dc292));for(let _0x57fb6e of this[_0x206baa(0x3dd)][_0x206baa(0x1e2)]())_0x505dae[_0x206baa(0x34e)](...[..._0x57fb6e]['map'](_0x101d30=>_0x101d30['then'](()=>void 0x0)));await Promise['all'](_0x505dae);}};Y=S([x(0x0,t['IConfigService']),x(0x1,t[_0x43938c(0x36a)]),x(0x2,(0x0,t['Inject'])(l[_0x43938c(0x30e)])),x(0x3,t[_0x43938c(0x27a)]),x(0x4,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x37d)]))],Y);var Oe=class extends t[_0x43938c(0x43d)]{get['online'](){const _0x448df4=_0x43938c;return this[_0x448df4(0x1a6)]['getValue']();}constructor(){const _0x413355=_0x43938c;super(),b(this,_0x413355(0x1a6),new r['BehaviorSubject'](navigator[_0x413355(0x1b7)])),b(this,_0x413355(0x1b5),this[_0x413355(0x1a6)][_0x413355(0x1a8)]()),this[_0x413355(0x18d)](),this['_listenToOnlineEvent']();}[_0x43938c(0x202)](){const _0x3ebbec=_0x43938c;super[_0x3ebbec(0x202)](),this['_online$'][_0x3ebbec(0x183)]();}[_0x43938c(0x40d)](){const _0x3811f8=_0x43938c;this[_0x3811f8(0x198)]((0x0,r['merge'])((0x0,r[_0x3811f8(0x381)])(window,_0x3811f8(0x207)),(0x0,r[_0x3811f8(0x381)])(window,_0x3811f8(0x248)),(0x0,r['fromEvent'])(document,_0x3811f8(0x1db))[_0x3811f8(0x42a)]((0x0,r[_0x3811f8(0x1ef)])(()=>document['visibilityState']===_0x3811f8(0x218)),(0x0,r['filter'])(_0x39e971=>_0x39e971)))[_0x3811f8(0x42a)]((0x0,r[_0x3811f8(0x39f)])(()=>navigator[_0x3811f8(0x1b7)]))['subscribe'](()=>this['_online$'][_0x3811f8(0x1a4)](!0x0)));}['_listenToOfflineEvent'](){const _0x57877a=_0x43938c;this[_0x57877a(0x198)]((0x0,r[_0x57877a(0x381)])(window,'offline')[_0x57877a(0x3a7)](()=>this[_0x57877a(0x1a6)][_0x57877a(0x1a4)](!0x1)));}};let X=class extends t[_0x43938c(0x308)]{constructor(_0x1f571a=se,_0x5718ef,_0x1974b1,_0x40ba66,_0x1df2aa){const _0x1a9a9b=_0x43938c;super(),this[_0x1a9a9b(0x2fb)]=_0x1f571a,this[_0x1a9a9b(0x18c)]=_0x5718ef,this['_injector']=_0x1974b1,this['_configService']=_0x40ba66,this[_0x1a9a9b(0x1ee)]=_0x1df2aa;let {..._0x8b2325}=(0x0,t[_0x1a9a9b(0x20f)])({},se,this[_0x1a9a9b(0x2fb)]);this[_0x1a9a9b(0x1a5)][_0x1a9a9b(0x460)](_0x1a9a9b(0x2c4),_0x8b2325);}['onStarting'](){const _0x37ee71=_0x43938c;this['_registerDependencies'](),this[_0x37ee71(0x198)](this['_commandService'][_0x37ee71(0x1fb)](T)),this[_0x37ee71(0x18a)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x43938c(0x2cd)](){const _0x59f723=_0x43938c;var _0x3b48dc;let _0x35aadf=[[D],[m[_0x59f723(0x1d4)],{'useClass':m[_0x59f723(0x291)]}],[e['ILocalCacheService'],{'useClass':Y}],[e[_0x59f723(0x45f)],{'useClass':Oe}],[C],[V],[j],[z],[J]];this[_0x59f723(0x2fb)][_0x59f723(0x227)]!==!0x1&&_0x35aadf[_0x59f723(0x34e)]([W],[H],[U],[O],[K],[E]),this['_config'][_0x59f723(0x2c6)]&&_0x35aadf[_0x59f723(0x34e)]([q]),(0x0,t['registerDependencies'])(this[_0x59f723(0x458)],(0x0,t[_0x59f723(0x44e)])(_0x35aadf,(_0x3b48dc=this[_0x59f723(0x2fb)])==null?void 0x0:_0x3b48dc[_0x59f723(0x301)]));}[_0x43938c(0x1fc)](){const _0x502235=_0x43938c;this[_0x502235(0x2fb)][_0x502235(0x227)]!==!0x1&&this[_0x502235(0x198)](this['_renderManagerService'][_0x502235(0x3c0)](t[_0x502235(0x31f)][_0x502235(0x364)],[P])),this['disposeWithMe'](this[_0x502235(0x18c)]['registerRenderModule'](t[_0x502235(0x31f)][_0x502235(0x3cf)],[I]));}[_0x43938c(0x18a)](){const _0x3ff187=_0x43938c;(0x0,t[_0x3ff187(0x212)])(this[_0x3ff187(0x458)],[[j],[z],[C],[V],[J]]),this['_config'][_0x3ff187(0x227)]!==!0x1&&(0x0,t[_0x3ff187(0x212)])(this[_0x3ff187(0x458)],[[K],[E]]),this[_0x3ff187(0x2fb)][_0x3ff187(0x2c6)]&&(0x0,t[_0x3ff187(0x212)])(this[_0x3ff187(0x458)],[[q]]);}};b(X,'pluginName',_0x43938c(0x2d0)),b(X,'packageName',ae),b(X,_0x43938c(0x1d9),oe),X=S([(0x0,t[_0x43938c(0x35c)])(u['UniverLicensePlugin'],d[_0x43938c(0x233)],p[_0x43938c(0x455)],m[_0x43938c(0x25d)],l[_0x43938c(0x41d)],f[_0x43938c(0x2ab)],e[_0x43938c(0x44a)]),x(0x1,p['IRenderManagerService']),x(0x2,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x3,t['IConfigService']),x(0x4,t['ICommandService'])],X);let Z=class extends e[_0x43938c(0x1f0)]{constructor(_0x543377,_0x1ce1bd,_0x205430,_0x4ec441,_0x5bdda7){const _0x5cc910=_0x43938c;super(_0x543377,_0x1ce1bd,_0x205430,_0x4ec441,_0x5bdda7),b(this,_0x5cc910(0x17c),new r[(_0x5cc910(0x429))]()),this[_0x5cc910(0x198)](()=>{const _0x4d2d37=_0x5cc910;this['_dispose$']['next'](),this['_dispose$'][_0x4d2d37(0x183)]();});}async['createSocket'](_0x1b4ec0){const _0x1a2e9a=_0x43938c;let _0x34504d=await this[_0x1a2e9a(0x1bb)](),_0x31bc2a=this['_createSocketURL'](_0x1b4ec0,_0x34504d);return this[_0x1a2e9a(0x3bd)](_0x31bc2a);}[_0x43938c(0x258)](_0x26b8a1,_0x31ff7a){const _0x15f1b2=_0x43938c;let _0x291f87=typeof window>'u'?new URL(_0x26b8a1):new URL(_0x26b8a1,window[_0x15f1b2(0x3ae)][_0x15f1b2(0x401)]);_0x291f87[_0x15f1b2(0x42d)][_0x15f1b2(0x478)]('sessionTicket',_0x31ff7a);let _0xb9bc1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x15f1b2(0x3ae)][_0x15f1b2(0x339)]);return _0xb9bc1[_0x15f1b2(0x2b0)](_0x15f1b2(0x375))&&_0x291f87['searchParams']['set'](_0x15f1b2(0x375),_0xb9bc1[_0x15f1b2(0x2b0)](_0x15f1b2(0x375))),_0x291f87[_0x15f1b2(0x3d3)]();}async[_0x43938c(0x1bb)](){const _0x4e987c=_0x43938c;var _0x1730eb;let _0x507051=this[_0x4e987c(0x1a5)][_0x4e987c(0x43b)](e[_0x4e987c(0x307)]),_0x524dd6=(_0x507051==null?void 0x0:_0x507051[_0x4e987c(0x1c2)])??e[_0x4e987c(0x332)];return((_0x1730eb=(await(0x0,r[_0x4e987c(0x358)])(this[_0x4e987c(0x3cb)][_0x4e987c(0x2e5)]('GET',_0x524dd6,{'headers':{'Content-Type':_0x4e987c(0x35f)}})[_0x4e987c(0x42a)]((0x0,r[_0x4e987c(0x39f)])(_0x1275a1=>_0x1275a1['type']===m[_0x4e987c(0x394)][_0x4e987c(0x2dd)]),(0x0,r[_0x4e987c(0x33e)])(0x4e20),(0x0,r['takeUntil'])(this[_0x4e987c(0x17c)]))))[_0x4e987c(0x41f)])==null?void 0x0:_0x1730eb['ticket'])??'';}};Z=S([x(0x0,(0x0,t[_0x43938c(0x360)])(t[_0x43938c(0x2c2)])),x(0x1,(0x0,t[_0x43938c(0x360)])(m[_0x43938c(0x29e)])),x(0x2,t[_0x43938c(0x396)]),x(0x3,t[_0x43938c(0x27a)]),x(0x4,l['ISnapshotServerService'])],Z);let Q=class extends t['Disposable']{constructor(_0x2e7a32,_0x303fa2,_0x50d35f){const _0x135021=_0x43938c;super(),this[_0x135021(0x1f9)]=_0x2e7a32,this['_httpService']=_0x303fa2,this[_0x135021(0x1a5)]=_0x50d35f;}async[_0x43938c(0x309)](_0x554037,_0xa46e07,_0x388b06,..._0x4ece44){const _0x530c6d=_0x43938c;let _0x51cd9d=this[_0x530c6d(0x1f9)][_0x530c6d(0x2ce)]();if(!_0x51cd9d)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x3fd392=(this[_0x530c6d(0x1a5)][_0x530c6d(0x43b)](e['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY'])??e[_0x530c6d(0x2ca)])+'/'+_0x554037+'/run/'+_0xa46e07,_0x2d2fff={'scriptId':_0x554037,'runId':new URL(window['location']['href'])['searchParams']['get']('runId')??'','function':_0xa46e07,'unitId':_0x51cd9d[_0x530c6d(0x225)](),'argsOfFunction':JSON['stringify'](_0x4ece44),'invokeId':_0x388b06[_0x530c6d(0x1c7)]??'','executionId':_0x388b06[_0x530c6d(0x23b)]??''};try{let _0x158545=await this['_httpService'][_0x530c6d(0x1c4)](_0x3fd392,{'body':_0x2d2fff});return _0x158545['body']['error']&&_0x158545[_0x530c6d(0x41f)][_0x530c6d(0x22f)][_0x530c6d(0x45b)]!==v['ErrorCode']['OK']?_0x530c6d(0x38f):_0x158545[_0x530c6d(0x41f)][_0x530c6d(0x282)];}catch{return'Failed';}}};Q=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t['Inject'])(m[_0x43938c(0x29e)])),x(0x2,t['IConfigService'])],Q);const ke=0x7530,$=_0x43938c(0x3b5);var Ae=class extends t['Disposable']{constructor(){const _0x3bdcab=_0x43938c;super(),b(this,'_id',(0x0,t[_0x3bdcab(0x3c8)])()),b(this,_0x3bdcab(0x3eb),new Set()),b(this,_0x3bdcab(0x408),new Map()),b(this,_0x3bdcab(0x3c2),null),b(this,_0x3bdcab(0x266),new Map()),b(this,'_unitStatus',new Map()),this[_0x3bdcab(0x42f)]();}[_0x43938c(0x202)](){const _0x33a508=_0x43938c;super['dispose'](),this[_0x33a508(0x266)][_0x33a508(0x28b)]((_0x109e7c,_0x50e050)=>this[_0x33a508(0x31c)](_0x50e050)),this[_0x33a508(0x3c2)]&&window[_0x33a508(0x41a)](this[_0x33a508(0x3c2)]);}[_0x43938c(0x1a2)](_0x19d19e){const _0x25c246=_0x43938c;return this['_ensureSubject'](_0x19d19e)[_0x25c246(0x42a)]((0x0,r[_0x25c246(0x3a6)])());}[_0x43938c(0x3d7)](_0x5bb4e2){const _0x31fc91=_0x43938c;this['_selfUnitIDs'][_0x31fc91(0x425)]===0x0&&this[_0x31fc91(0x2e0)](),this['_selfUnitIDs'][_0x31fc91(0x315)](_0x5bb4e2),this[_0x31fc91(0x245)]({'type':0x0,'memberID':this[_0x31fc91(0x428)],'unitIDs':[_0x5bb4e2],'isForwarded':!0x1});}[_0x43938c(0x32b)](_0x36ed80){const _0x29999b=_0x43938c;this[_0x29999b(0x3eb)][_0x29999b(0x354)](_0x36ed80),this[_0x29999b(0x3eb)][_0x29999b(0x425)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x43938c(0x42f)](){const _0x56bd19=_0x43938c;this[_0x56bd19(0x198)]((0x0,t[_0x56bd19(0x189)])((0x0,r[_0x56bd19(0x381)])(window,_0x56bd19(0x2b8))[_0x56bd19(0x3a7)](_0x16e472=>{const _0x346f9a=_0x56bd19;if(_0x16e472[_0x346f9a(0x38d)]!==$||!_0x16e472[_0x346f9a(0x23c)])return;let _0x6608ff=JSON[_0x346f9a(0x2e2)](_0x16e472[_0x346f9a(0x23c)]);this[_0x346f9a(0x1d2)](_0x6608ff);}))),window[_0x56bd19(0x3d6)](_0x56bd19(0x353),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x56bd19(0x1dc)](this['_selfUnitIDs'])}));}[_0x43938c(0x1d2)](_0x39dd33){const _0x15bd42=_0x43938c;switch(_0x39dd33[_0x15bd42(0x2a5)]){case 0x0:this[_0x15bd42(0x1d6)](_0x39dd33);break;case 0x1:this[_0x15bd42(0x33c)](_0x39dd33);break;case 0x2:this['_handleHeartbeatEvent'](_0x39dd33);}}[_0x43938c(0x1d6)](_0x312547){const _0x9b86c7=_0x43938c;let {unitIDs:_0x6643ce,memberID:_0x19acf2,isForwarded:_0x430bf3}=_0x312547;_0x6643ce['forEach'](_0x86598d=>{const _0xcc8397=_0x5041;if(!_0x430bf3&&this[_0xcc8397(0x408)][_0xcc8397(0x29f)](_0x86598d)&&this['_ensureSubject'](_0x86598d)['next'](e[_0xcc8397(0x3e6)]['OTHER_CLIENTS_EDITING']),!this[_0xcc8397(0x408)][_0xcc8397(0x29f)](_0x86598d)||!this[_0xcc8397(0x408)][_0xcc8397(0x2b0)](_0x86598d)[_0xcc8397(0x29f)](_0x19acf2)){let _0xc4a02b=this[_0xcc8397(0x408)][_0xcc8397(0x2b0)](_0x86598d)||new Set();_0xc4a02b[_0xcc8397(0x315)](_0x19acf2),this[_0xcc8397(0x408)]['set'](_0x86598d,_0xc4a02b),this[_0xcc8397(0x35b)](_0x19acf2);}}),_0x430bf3||this[_0x9b86c7(0x245)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x9b86c7(0x3eb)]],'isForwarded':!0x0});}[_0x43938c(0x35b)](_0x47af59){const _0x1335b1=_0x43938c;this[_0x1335b1(0x31c)](_0x47af59);let _0x2defad=window['setTimeout'](()=>{const _0x480372=_0x1335b1;this[_0x480372(0x408)][_0x480372(0x28b)](_0x28f9c1=>{const _0x7b9fb2=_0x480372;_0x28f9c1[_0x7b9fb2(0x354)](_0x47af59);});},ke*0x2);this[_0x1335b1(0x266)][_0x1335b1(0x478)](_0x47af59,_0x2defad);}[_0x43938c(0x31c)](_0x155512){const _0x2622a9=_0x43938c;if(this['_clearOtherTimers'][_0x2622a9(0x29f)](_0x155512)){let _0x22cc12=this['_clearOtherTimers'][_0x2622a9(0x2b0)](_0x155512);_0x22cc12&&window['clearTimeout'](_0x22cc12),this[_0x2622a9(0x266)][_0x2622a9(0x478)](_0x155512,null);}}['_handleLeaveEvent'](_0xea3a6f){const _0x4dff51=_0x43938c;let {memberID:_0x2f2954,unitIDs:_0x5905f6}=_0xea3a6f;_0x5905f6[_0x4dff51(0x28b)](_0x5b9782=>{const _0x3a0476=_0x4dff51;var _0x227691;let _0x365070=this[_0x3a0476(0x408)][_0x3a0476(0x2b0)](_0x5b9782);_0x365070&&(_0x365070[_0x3a0476(0x354)](_0x2f2954),(_0x227691=this['_ensureSubject'](_0x5b9782))==null||_0x227691[_0x3a0476(0x1a4)](_0x365070[_0x3a0476(0x425)]===0x0?e['UnitStatus'][_0x3a0476(0x31e)]:e[_0x3a0476(0x3e6)][_0x3a0476(0x192)]));}),this[_0x4dff51(0x31c)](_0x2f2954);}[_0x43938c(0x206)](_0x1d642a){const _0x323039=_0x43938c;this[_0x323039(0x35b)](_0x1d642a['memberID']);}[_0x43938c(0x245)](_0x117f74){const _0x28d47b=_0x43938c;localStorage[_0x28d47b(0x373)]($,JSON[_0x28d47b(0x24f)](_0x117f74));}['_scheduleHeartbeat'](){const _0x4f1fac=_0x43938c;this[_0x4f1fac(0x3c2)]=window[_0x4f1fac(0x2ee)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},ke);}[_0x43938c(0x44d)](_0x1ce244){const _0x444647=_0x43938c;return this[_0x444647(0x437)][_0x444647(0x29f)](_0x1ce244)||this[_0x444647(0x437)][_0x444647(0x478)](_0x1ce244,new r[(_0x444647(0x325))](e[_0x444647(0x3e6)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x444647(0x2b0)](_0x1ce244);}};Object[_0x43938c(0x190)](exports,_0x43938c(0x453),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x43938c(0x190)](exports,_0x43938c(0x2c0),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x43938c(0x190)](exports,_0x43938c(0x3ba),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x43938c(0x1ce)]=F,Object['defineProperty'](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x43938c(0x2f9)]=Ae;
|