@univerjs-pro/collaboration-client-ui 1.1.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.css +4 -0
- 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/config/config.d.ts +3 -3
- package/lib/types/controllers/collaboration-client-ui.controller.d.ts +29 -3
- package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +2 -6
- package/lib/types/index.d.ts +0 -1
- package/lib/types/locale/en-US.d.ts +10 -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 +17 -18
- package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -17
- package/lib/types/services/url/url.service.d.ts +0 -12
- package/lib/types/services/url/web-url.service.d.ts +0 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4a4f45=_0xd371;(function(_0x330247,_0x2e18a1){const _0xed7684=_0xd371,_0x461daf=_0x330247();while(!![]){try{const _0x41023d=parseInt(_0xed7684(0x399))/0x1+parseInt(_0xed7684(0x350))/0x2+-parseInt(_0xed7684(0x2b0))/0x3*(parseInt(_0xed7684(0x335))/0x4)+parseInt(_0xed7684(0x269))/0x5*(parseInt(_0xed7684(0x37c))/0x6)+parseInt(_0xed7684(0x385))/0x7*(parseInt(_0xed7684(0x21f))/0x8)+parseInt(_0xed7684(0x417))/0x9*(parseInt(_0xed7684(0x425))/0xa)+parseInt(_0xed7684(0x28d))/0xb*(-parseInt(_0xed7684(0x391))/0xc);if(_0x41023d===_0x2e18a1)break;else _0x461daf['push'](_0x461daf['shift']());}catch(_0x2d1242){_0x461daf['push'](_0x461daf['shift']());}}}(_0x55ab,0x2a2a9),Object['defineProperty'](exports,Symbol[_0x4a4f45(0x2e9)],{'value':_0x4a4f45(0x38c)}));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(_0x2cd692){const _0x395757=_0x4a4f45;switch(_0x2cd692){case e[_0x395757(0x24e)][_0x395757(0x3ef)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x31a)],{}),'colorClass':_0x395757(0x22e),'i18nKey':_0x395757(0x13b),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':'static'};case e['CollaborationStatus'][_0x395757(0x17e)]:return{'icon':(0x0,c['jsx'])(o[_0x395757(0x31a)],{}),'colorClass':_0x395757(0x3f3),'i18nKey':_0x395757(0x297),'clickable':!0x1,'indicator':'static'};case e[_0x395757(0x24e)][_0x395757(0x2b5)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x415)],{}),'colorClass':_0x395757(0x272),'i18nKey':_0x395757(0x29f),'clickable':!0x1,'indicator':_0x395757(0x206)};case e[_0x395757(0x24e)][_0x395757(0x274)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x1a2)],{}),'colorClass':_0x395757(0x3bc),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x395757(0x2bc)};case e[_0x395757(0x24e)][_0x395757(0x2bb)]:case e[_0x395757(0x24e)][_0x395757(0x2d0)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':_0x395757(0x272),'i18nKey':_0x395757(0x407),'clickable':!0x1,'indicator':_0x395757(0x206)};case e[_0x395757(0x24e)][_0x395757(0x3f5)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x395757(0x206)};case e['CollaborationStatus'][_0x395757(0x1b5)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x1a2)],{}),'colorClass':_0x395757(0x128),'i18nKey':_0x395757(0x346),'clickable':!0x1,'indicator':_0x395757(0x2bc)};}}function te(_0x34483b){const _0x3c1898=_0x4a4f45;let {status$:_0x461a0d}=_0x34483b,_0x409f25=(0x0,n['useObservable'])(_0x461a0d,e[_0x3c1898(0x24e)][_0x3c1898(0x274)]),_0x551d31=(0x0,n[_0x3c1898(0x384)])(t[_0x3c1898(0x188)]),_0x482046=(0x0,n[_0x3c1898(0x384)])(e[_0x3c1898(0x3f7)]),_0x40d828=(0x0,s[_0x3c1898(0x2b3)])(()=>ee(_0x409f25),[_0x409f25]),_0x1cd47f=_0x409f25!==e[_0x3c1898(0x24e)][_0x3c1898(0x3ef)],_0x15901b=_0x551d31['t'](_0x40d828[_0x3c1898(0x27a)]),_0x2862ea=_0x40d828['tooltipKey']?_0x551d31['t'](_0x40d828[_0x3c1898(0x298)]):_0x15901b,_0x1222a7=(0x0,s[_0x3c1898(0x3ca)])(()=>{const _0x1baf6a=_0x3c1898;_0x1cd47f||_0x482046[_0x1baf6a(0x1ac)]();},[_0x1cd47f,_0x482046]),_0x57982d=(0x0,s[_0x3c1898(0x3ca)])(_0x389dde=>{const _0x27b867=_0x3c1898;!_0x1cd47f&&(_0x389dde[_0x27b867(0x3d9)]===_0x27b867(0x39a)||_0x389dde[_0x27b867(0x3d9)]==='\x20')&&(_0x389dde['preventDefault'](),_0x482046[_0x27b867(0x1ac)]());},[_0x1cd47f,_0x482046]),_0xa78277=(0x0,c['jsx'])(_0x3c1898(0x2e3),{'className':(0x0,a['clsx'])(_0x3c1898(0x226),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x40d828[_0x3c1898(0x124)],{'univer-animate-spin':_0x40d828[_0x3c1898(0x1f3)]===_0x3c1898(0x206),'univer-animate-pulse':_0x40d828[_0x3c1898(0x1f3)]==='pulse'}),'aria-hidden':'true','children':_0x40d828[_0x3c1898(0x419)]}),_0x419966=(0x0,c['jsx'])('span',{'className':(0x0,a[_0x3c1898(0x40d)])(_0x3c1898(0x226),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x3c1898(0x1db),_0x3c1898(0x2d4),_0x3c1898(0x20f),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x40d828[_0x3c1898(0x329)],'univer-cursor-default':!_0x40d828[_0x3c1898(0x329)]}),'children':_0xa78277});return _0x40d828['clickable']?(0x0,c[_0x3c1898(0x12b)])(a[_0x3c1898(0x1ee)],{'title':_0x2862ea,'placement':_0x3c1898(0x1ef),'children':(0x0,c[_0x3c1898(0x12b)])(_0x3c1898(0x1c6),{'type':_0x3c1898(0x1c6),'onClick':_0x1222a7,'onKeyDown':_0x57982d,'className':(0x0,a['clsx'])(_0x3c1898(0x351),'univer-border-none\x20univer-bg-transparent',_0x3c1898(0x160),'univer-appearance-none'),'aria-label':_0x15901b+_0x3c1898(0x1bd)+_0x2862ea,'role':_0x3c1898(0x30b),'aria-live':_0x3c1898(0x2a3),'aria-atomic':'true','children':_0x419966})}):(0x0,c[_0x3c1898(0x12b)])(a[_0x3c1898(0x1ee)],{'title':_0x2862ea,'placement':'bottom','children':(0x0,c[_0x3c1898(0x12b)])('div',{'className':(0x0,a[_0x3c1898(0x40d)])(_0x3c1898(0x351),'univer-border-none\x20univer-bg-transparent',_0x3c1898(0x160)),'aria-label':_0x15901b,'role':_0x3c1898(0x30b),'aria-live':_0x3c1898(0x2a3),'aria-atomic':_0x3c1898(0x16e),'children':_0x419966})});}function y(_0x54fb50){'@babel/helpers - typeof';const _0x2fe7d4=_0x4a4f45;return y=typeof Symbol==_0x2fe7d4(0x1b1)&&typeof Symbol[_0x2fe7d4(0x203)]==_0x2fe7d4(0x218)?function(_0x17f07f){return typeof _0x17f07f;}:function(_0x5c75d8){const _0xfa0bff=_0x2fe7d4;return _0x5c75d8&&typeof Symbol==_0xfa0bff(0x1b1)&&_0x5c75d8['constructor']===Symbol&&_0x5c75d8!==Symbol[_0xfa0bff(0x259)]?_0xfa0bff(0x218):typeof _0x5c75d8;},y(_0x54fb50);}function ne(_0x2adea8,_0x129518){const _0x1efe18=_0x4a4f45;if(y(_0x2adea8)!=_0x1efe18(0x362)||!_0x2adea8)return _0x2adea8;var _0x2328c5=_0x2adea8[Symbol['toPrimitive']];if(_0x2328c5!==void 0x0){var _0x1e1e94=_0x2328c5[_0x1efe18(0x358)](_0x2adea8,_0x129518||_0x1efe18(0x3f9));if(y(_0x1e1e94)!=_0x1efe18(0x362))return _0x1e1e94;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x129518==='string'?String:Number)(_0x2adea8);}function re(_0x4ec88c){const _0x45252c=_0x4a4f45;var _0x1af578=ne(_0x4ec88c,_0x45252c(0x2cf));return y(_0x1af578)=='symbol'?_0x1af578:_0x1af578+'';}function b(_0x29c31d,_0x58990d,_0x3a6fe1){const _0x5cfe4e=_0x4a4f45;return(_0x58990d=re(_0x58990d))in _0x29c31d?Object[_0x5cfe4e(0x2e7)](_0x29c31d,_0x58990d,{'value':_0x3a6fe1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29c31d[_0x58990d]=_0x3a6fe1,_0x29c31d;}function x(_0x4bd34c,_0x1aa596){return function(_0x328e4a,_0x236249){_0x1aa596(_0x328e4a,_0x236249,_0x4bd34c);};}function S(_0x454497,_0x388ad3,_0xed2651,_0x30c0f2){const _0xd373bf=_0x4a4f45;var _0x5840cb=arguments[_0xd373bf(0x18e)],_0x47d545=_0x5840cb<0x3?_0x388ad3:_0x30c0f2===null?_0x30c0f2=Object[_0xd373bf(0x360)](_0x388ad3,_0xed2651):_0x30c0f2,_0x19439c;if(typeof Reflect==_0xd373bf(0x362)&&typeof Reflect[_0xd373bf(0x30c)]==_0xd373bf(0x1b1))_0x47d545=Reflect[_0xd373bf(0x30c)](_0x454497,_0x388ad3,_0xed2651,_0x30c0f2);else{for(var _0x46b324=_0x454497[_0xd373bf(0x18e)]-0x1;_0x46b324>=0x0;_0x46b324--)(_0x19439c=_0x454497[_0x46b324])&&(_0x47d545=(_0x5840cb<0x3?_0x19439c(_0x47d545):_0x5840cb>0x3?_0x19439c(_0x388ad3,_0xed2651,_0x47d545):_0x19439c(_0x388ad3,_0xed2651))||_0x47d545);}return _0x5840cb>0x3&&_0x47d545&&Object[_0xd373bf(0x2e7)](_0x388ad3,_0xed2651,_0x47d545),_0x47d545;}let C=class extends t[_0x4a4f45(0x423)]{constructor(_0x42df4f,_0x3b28b5,_0x54a749,_0x4b6e91,_0x6c67e7){const _0x32b76f=_0x4a4f45;super(),this[_0x32b76f(0x25c)]=_0x42df4f,this[_0x32b76f(0x38f)]=_0x3b28b5,this['_collaborationController']=_0x54a749,this[_0x32b76f(0x24a)]=_0x4b6e91,this[_0x32b76f(0x159)]=_0x6c67e7,b(this,_0x32b76f(0x356),new r[(_0x32b76f(0x154))](e[_0x32b76f(0x24e)]['NOT_COLLAB'])),b(this,_0x32b76f(0x33b),new Map()),this[_0x32b76f(0x25f)](),this[_0x32b76f(0x2eb)](),this[_0x32b76f(0x320)]();}[_0x4a4f45(0x288)](){const _0x755723=_0x4a4f45;this['_presenceStatusRegistrations'][_0x755723(0x22c)](_0xf5bf97=>_0xf5bf97[_0x755723(0x288)]()),this[_0x755723(0x33b)][_0x755723(0x337)](),this[_0x755723(0x356)][_0x755723(0x2c6)](),super['dispose']();}['_initStatusListener'](){const _0x2ef0cd=_0x4a4f45;this[_0x2ef0cd(0x2ad)]((0x0,r[_0x2ef0cd(0x42a)])(this['_univerInstanceService']['focused$'],this[_0x2ef0cd(0x25c)][_0x2ef0cd(0x135)](t[_0x2ef0cd(0x397)][_0x2ef0cd(0x19b)]),this[_0x2ef0cd(0x25c)][_0x2ef0cd(0x135)](t['UniverInstanceType'][_0x2ef0cd(0x379)]))[_0x2ef0cd(0x237)]((0x0,i[_0x2ef0cd(0x19c)])(()=>ie(this[_0x2ef0cd(0x25c)])),(0x0,i[_0x2ef0cd(0x1ea)])(),(0x0,r[_0x2ef0cd(0x3cd)])(_0x12b9cc=>_0x12b9cc?this['_collaborationController'][_0x2ef0cd(0x359)](_0x12b9cc):(0x0,r['of'])(null)),(0x0,r[_0x2ef0cd(0x3cd)])(_0x42a8bf=>_0x42a8bf?_0x42a8bf[_0x2ef0cd(0x145)]:(0x0,r['of'])(e['CollaborationStatus'][_0x2ef0cd(0x274)])))[_0x2ef0cd(0x195)](_0x59ccd5=>{const _0x3f5780=_0x2ef0cd;this[_0x3f5780(0x356)]['next'](_0x59ccd5);}));}[_0x4a4f45(0x25f)](){const _0x4cf645=_0x4a4f45;this[_0x4cf645(0x2ad)](this[_0x4cf645(0x24a)][_0x4cf645(0x2fe)](n[_0x4cf645(0x2f5)][_0x4cf645(0x16c)],()=>(0x0,n['connectInjector'])(w({'status$':this[_0x4cf645(0x356)]['asObservable']()}),this[_0x4cf645(0x38f)])));}[_0x4a4f45(0x320)](){const _0x161911=_0x4a4f45;let _0x3197a6=this[_0x161911(0x159)][_0x161911(0x153)]['subscribe'](_0x41baab=>{const _0x80738=_0x161911;this[_0x80738(0x198)](_0x41baab);});this[_0x161911(0x2ad)]((0x0,t[_0x161911(0x2be)])(()=>_0x3197a6[_0x161911(0x372)]()));}[_0x4a4f45(0x198)](_0x1b5424){const _0x5e5ba6=_0x4a4f45;let _0x17d3c9=new Map(_0x1b5424[_0x5e5ba6(0x3e3)](_0x158c64=>_0x158c64[_0x5e5ba6(0x1ed)]!=null)['map'](_0x5b841d=>[_0x5b841d[_0x5e5ba6(0x348)],_0x5b841d]));this[_0x5e5ba6(0x33b)][_0x5e5ba6(0x22c)]((_0x4be28a,_0x624dc2)=>{const _0x4460c6=_0x5e5ba6;_0x17d3c9[_0x4460c6(0x33a)](_0x624dc2)||(_0x4be28a[_0x4460c6(0x288)](),this[_0x4460c6(0x33b)][_0x4460c6(0x426)](_0x624dc2));}),_0x17d3c9['forEach']((_0x560373,_0x7265c5)=>{const _0x4e5069=_0x5e5ba6;this[_0x4e5069(0x33b)]['has'](_0x7265c5)||this[_0x4e5069(0x277)](_0x560373);});}[_0x4a4f45(0x277)](_0x1b70d8){const _0x387324=_0x4a4f45;let _0x2cfc79=_0x1b70d8['statusUIPart'];if(!_0x2cfc79)return;let _0x23d796=new t[(_0x387324(0x403))](),_0x57d1c8=new r[(_0x387324(0x154))](e[_0x387324(0x24e)][_0x387324(0x274)]);_0x23d796['add']((0x0,t[_0x387324(0x2be)])(()=>_0x57d1c8[_0x387324(0x2c6)]())),_0x23d796[_0x387324(0x307)](this[_0x387324(0x24a)][_0x387324(0x2fe)](_0x2cfc79,()=>(0x0,n[_0x387324(0x282)])(w({'status$':_0x57d1c8[_0x387324(0x34c)]()}),this[_0x387324(0x38f)])));let _0x57b21f=this[_0x387324(0x25c)][_0x387324(0x135)](_0x1b70d8['unitType'])[_0x387324(0x237)]((0x0,i['map'])(_0x3e6f2b=>(_0x3e6f2b==null?void 0x0:_0x3e6f2b[_0x387324(0x370)]())??null),(0x0,i[_0x387324(0x1ea)])(),(0x0,r[_0x387324(0x3cd)])(_0xf83c07=>_0xf83c07?this[_0x387324(0x3d5)]['getCollabEntity$'](_0xf83c07):(0x0,r['of'])(null)),(0x0,r[_0x387324(0x3cd)])(_0x177378=>(_0x177378==null?void 0x0:_0x177378[_0x387324(0x145)])??(0x0,r['of'])(e[_0x387324(0x24e)][_0x387324(0x274)])))[_0x387324(0x195)](_0x55886b=>_0x57d1c8['next'](_0x55886b));_0x23d796[_0x387324(0x307)]((0x0,t['toDisposable'])(()=>_0x57b21f['unsubscribe']())),this['_presenceStatusRegistrations'][_0x387324(0x1a1)](_0x1b70d8[_0x387324(0x348)],_0x23d796);}};C=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t['Injector'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e['CollaborationController'])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t[_0x4a4f45(0x289)])(n[_0x4a4f45(0x1b7)]))],C);function ie(_0xe42414){const _0x3557f0=_0x4a4f45;let _0x1fa9a9=_0xe42414['getFocusedUnit'](),_0x5988d2=_0x1fa9a9==null?void 0x0:_0x1fa9a9[_0x3557f0(0x370)]();if(_0x5988d2&&!(0x0,t[_0x3557f0(0x2b7)])(_0x5988d2))return _0x5988d2;let _0x41530e=_0xe42414['getCurrentUnitOfType'](t[_0x3557f0(0x397)]['UNIVER_DOC']),_0x4b93b8=_0x41530e==null?void 0x0:_0x41530e[_0x3557f0(0x370)]();if(_0x4b93b8&&!(0x0,t['isInternalEditorID'])(_0x4b93b8))return _0x4b93b8;let _0x27de35=_0xe42414[_0x3557f0(0x2dc)](t[_0x3557f0(0x397)]['UNIVER_SHEET']);if(_0x27de35)return _0x27de35['getUnitId']();let _0x1f54eb=_0xe42414[_0x3557f0(0x413)](t[_0x3557f0(0x397)][_0x3557f0(0x19b)])['find'](_0x1417aa=>!(0x0,t['isInternalEditorID'])(_0x1417aa[_0x3557f0(0x370)]()));return _0x1f54eb?_0x1f54eb['getUnitId']():null;}function w(_0x2d65bd){let {status$:_0x3da216}=_0x2d65bd;return function(){const _0x55ff28=_0xd371;return(0x0,c[_0x55ff28(0x12b)])(te,{'status$':_0x3da216});};}var ae=_0x4a4f45(0x319),oe=_0x4a4f45(0x1c1);const T={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':t[_0x4a4f45(0x150)][_0x4a4f45(0x240)],'handler':(_0x5c041b,_0x48cc48)=>{const _0x28064b=_0x4a4f45;let _0x23d72c=_0x5c041b[_0x28064b(0x39f)](n[_0x28064b(0x1b7)])[_0x28064b(0x39f)](_0x48cc48[_0x28064b(0x348)]);if(!_0x23d72c)return!0x1;switch(_0x48cc48['update']['type']){case _0x28064b(0x1a1):return _0x23d72c['setRemotePresence'](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x1a0)]),!0x0;case _0x28064b(0x221):return _0x23d72c[_0x28064b(0x352)](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x3ad)],_0x48cc48[_0x28064b(0x410)][_0x28064b(0x1f0)]),!0x0;case'clear':return _0x23d72c[_0x28064b(0x1f5)](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x3ad)]),!0x0;default:return!0x1;}}},se={};let E=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x31eff7,_0x3fc7e2){const _0x4001f5=_0x4a4f45;super(),this['_docClipboardService']=_0x31eff7,this['_imageIoService']=_0x3fc7e2,this[_0x4001f5(0x332)]();}[_0x4a4f45(0x332)](){const _0x1f5eb7=_0x4a4f45;let _0x2cc5e7=this;this[_0x1f5eb7(0x2ad)](this[_0x1f5eb7(0x1e8)]['addClipboardHook']({'onBeforePasteImage':async _0x282680=>{const _0x437040=_0x1f5eb7;let _0x377d76=await _0x2cc5e7[_0x437040(0x28f)]['saveImage'](_0x282680);return _0x377d76?{'source':_0x377d76[_0x437040(0x167)],'imageSourceType':_0x377d76[_0x437040(0x3b4)]}:null;}}));}};function _0x55ab(){const _0x370281=['_textBubble','EffectRefRangId','_dispose$','_onCursorUpdate','handleInsertCol','[Unhandled\x20Rejection]:\x20','transformMutationsWithChangeset','registerComponent','_anchor','_startDocCollabCursor','_offsetY','purple.300','getItem','params','_revisionService','message','add','_uploadLog','getTypeOfUnitAdded$','visible','status','decorate','collabCursorState$','isActive','ColorKit','resize','jsxs','_adapterRegistry','userId','_assignedColors','find','_clearTimeoutState','setItem','_cursorInfo$','@univerjs-pro/collaboration-client-ui','OffLineIcon','right','Subject','getCoordRelativeToViewport','_getAnchorBounding','LOADING_BLOCKS','_initPresenceStatusComponents','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','timer','subunit','_getSaveTimeout','enableUrlUnitLoader','isEditing','_updateSubUnitFromURLParams','MoveRangeCommandId','clickable','_normalizeUserId','bold\x2013px\x20Arial,\x20sans-serif','UPDATE_CURSOR','_unitOnClients','transform','_range','assignAColorForMemberID','requireSession','_init','top','keys','716664nOPocd','_registerRenderDependencies','clear','highlightSecond','SheetCollabCursorShape','has','_presenceStatusRegistrations','replace','_beforeCloseService','selection','_highlightSecond','getOffsetConfig','onPointerMove$','collaboration-client-ui.session.collaboration-timeout','transformMutation','IURLService','MessageType','collaboration-client-ui.collabStatus.synced','isArray','unitType','_transformService','RevisionService','SHEET_VIEWPORT_KEY','asObservable','startsWith','isTransformMutationsWithChangesetSuccess','Rectangle','182420RGcsAv','univer-inline-flex\x20univer-items-center\x20univer-justify-center','removeRemotePresence','fromEventSubject','_docTransformIMECacheService','range','_status$','_handleHeartbeatEvent','call','getCollabEntity$','black','getMergeData','allSettled','endColumn','serializeRangeWithSheet','number','getOwnPropertyDescriptor','selectedIds','object','div','rgba','getLocalPresence','_disposed','timeoutId','_initDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','useObservable','_syncAdapters','setActiveRange','ILocalCacheService','_disabled','...','getUnitId','removeParam','unsubscribe','_pointerMoveDisposable','_memberService','hide','getDocumentSkeletonColumnPagePathInfo','tableId','column','UNIVER_SHEET','_handleLeaveEvent','memberID','171246utFbOp','getCurrentUser','text','_collabCursorState$','socket$','getColorFromTheme','IConfigService','_getScale','useDependency','5754OBMwCQ','GLOBAL','mergeOverrideWithDependencies','DeleteRangeMoveUpCommandId','newValue','loadedBlocks','_online','Module','online$','_docSkeleton','_injector','_render','5683596qHJHyX','_transformHistoryAndStateStack','getValue','save','_blinkIntervalTimer','_watchBlockProgress','UniverInstanceType','_showConflictCacheClearFailedNotification','48378OqRXXM','Enter','getUnitStatus$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN',',\x200.2)','fillStyle','get','catch','highlight','_updateURLWithCurrentState','_showConflictProcessingNotification','_blockProgressWatches','selections','_retryConflictCacheClear','_updateMessage','reason','[RemoteUniscriptService]:\x20no\x20focused\x20unit','unshift','alert','onMouseMove','unitId','_drawAnchor','code','IBeforeCloseService','_disposeEntity','push','name','imageSourceType','_cachedData','getTypeOfUnitDisposed$','onCommandExecuted','_scheduleClearOtherTimer','_labelHorizontalPosition','createInstance','_handleCursorUpdate','univer-text-gray-400','_clearRemotePresences','makeDirty','_scheduleSaving','presenceKind','override','Workbook','backupOfflineData','addEventListener','InsertRangeMoveRightCommandId','_send','collab-rect-range-','_labelPosition','[LogService\x20Error]:\x20','useCallback','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_docStateChangeManagerService','switchMap','focus','_stopBlinking','slice','/run/','_urlService','ILogService','snapshot-loading-','_collaborationController','getRenderUnitById','_getUserId','_clearOtherTimers','key','parseInt','size','_onCursorDelete','_selfUnitIDs','currentSkeleton$','columnIndex','color','with','lineTo','filter','Tools','_refreshCollabCursors','ERROR','NO_OTHER_CLIENTS_EDITING','USERS_LEAVE','_roomMembers$','_heartbeatTimer','_docSkeletonManagerService','CONFLICT_PROCESSING','getViewport','ErrorCode','OFFLINE','split','dispose$','SessionStatus','univer-text-orange-500','IRenderManagerService','PENDING','CONFLICT_CACHE_CLEAR_FAILED','CollaborationSessionService','mutations','default','_logService','filename','activeSheet$','transformByState','getCurrentSelections','_snapshotLoadingService','_initEntityListener','_listenToOnlineEvent','some','DisposableCollection','createSocket','_collabCursorController','wsSessionTicketUrl','collaboration-client-ui.collabStatus.syncing','prepareTransformSelections','replaceSelectionInfoWithoutRefresh','_disposeEntitiesForType','_saveTaskMap','values','clsx','every','setTimeout','update','FromArray','MemberService','getAllUnitsForType','pointer','LoadingMultiIcon','_retryingConflictCacheUnitIDs','135fyuWrU','setStateCache','icon','startColumn','_setupBeforeClosingHandler','textRanges','collaboration-client-ui.conflict.title','_id','roomMembers$','_colorIndex','_docTransformSelectionsService','_removeCollabCursors','Disposable','_blinkTimer','161030wuKqKz','delete','_initWindowErrorListener','kind','_sheetSkeletonManagerService','merge','visibilityState','#FFF','init','takeUntil','rgba(','endRow','_adapterDisposables','colorClass','_toggleOnline','colno','getColor','univer-text-green-500','_messageIds','loadUnit','jsx','parse','_instanceService','0.2)','Failed','_scheduleHeartbeat','_updateCollabCursors','startRow','_renderManagerService','_listenToOfflineEvent','getCurrentTypeOfUnit$','_document','triggerDblclick','_cursors','min','pushState','collaboration-client-ui.collabStatus.offline','\x20at\x20','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','next','search','_isBlinkVisible','ISocketService','_syncEditingCollabCursorService','debounce','now','status$','currentTheme$','addObjects','type','enableOfflineEditing','createIdentifier','_commandService','IImageIoService','DocSelectionManagerService','HTTPEventType','showText','CommandType','location','href','adapters$','BehaviorSubject','shareReplay','getParam','disableLocalCache','Unknown\x20user','_presenceAdapterRegistry','deepClone','saveTaskMap','fromEvent','onLine','_initUnhandledRejectionListener','stack','univer-m-0\x20univer-p-0','enableFrontendLog','BrowserCollaborationSocketService','getLocalCacheKey','_onRefRangeChange','flatMap','toISOString','source','_messageService','DOC_RANGE_TYPE','getActiveSheet','collaboration-client-ui.collaboration.closeRoom','HEADER_MENU','_getSheetObject','true','HEADER','eventID','_collaborationSessionService','bind','_notificationService','_docTransformStateCacheService','UnitStatus','engine','_startSheetCollabCursor','/universer-api/frontend/logs','Warning','_removeRemotePresence','getScrollXYInfoByViewport','SetTextSelectionsOperation','_memberID','CONFLICT','_localCacheService','getSheetBySheetId','unit','getSkeleton','state$','doc.mutation.rich-text-editing','DocIMEInputManagerService','runRefRangeMutations','clearTimeout','LocaleService','getConfig','getAncestorScale','SetWorksheetActivateCommand','data','executeCommand','length','searchParams','entityInit$','measureText','_themeService','UniverRenderEnginePlugin','SheetsSelectionsService','subscribe','_docSyncEditingCollabCursorService','getCollabCursors$','_syncPresenceStatusComponents','replaceState','fillText','UNIVER_DOC','map','HTTPService','SOCKET_FAILED_RETRY','setConfig','state','set','OnLineIcon','rgb','_adapter','getDocRanges','handleDeleteRangeMoveUp','runId','getFocusedUnit','_userManagerService','_scene','addHandlerCallback','reconnect','WebBrowserSingleActiveUnitService','transformRemoteChangeset','getMemberID','_clearBlockProgressWatch','function','redoState','offsetY','Shape','SYNCED','row','IUnitPresenceUIAdapterRegistry','_replaceConflictNotification','subUnitId','InsertRangeMoveDownCommandId','pageIndex','CollaborationUIEventService','\x20-\x20','roomMembers','addObject','Plugin','1.1.0','_colorAssignService','_initResize','_latestStates','startOffset','button','UniverLicensePlugin','_trackActiveSaveTask','lineno','_bindAdapter','ACTIVE_UNIT_EVENT_CHANNEL','Error','RegularPolygon','offline','storage','getUndoRedoMutationParamsCache','collaboration-client-ui.conflict.clearFailed','DEFAULT_WS_SESSION_TICKET_URL','_refRangeService','loadOfflineData','_context','toString','SetSelectionsOperation','editingUnit','onPointerEnter$','_pendingEntities','univer-transition-all\x20univer-duration-200','setParam','_hideTimer','ICommandService','registerCommand','focusedId','post','collaboration-client-ui.session.will-retry','_session',':backup:','syncEditingCollabCursor','_showText','_name','_docClipboardService','getMember','distinctUntilChanged','handleInsertRow','transformStateCache','statusUIPart','Tooltip','bottom','memberId','_ensureSubject','_sendLocalPresence','indicator','toRgbString','clearRemotePresences','getSheetObject','stream','disposeUnit','findNodePositionByCharIndex','exhaustSavingTask','VIEW_MAIN','UniverCollaborationClientPlugin','online','Rect','IUniverInstanceService','UniverCollaborationPlugin','saveOfflineData','[CollaborationDataLoaderController]','iterator','subscribeEvent','_drawRectRange','spin','_saveCache','snapshot-loading-timeout','restore','ITransformService','touchDependencies','shareInterval','Loading','send','dark:focus:!univer-ring-offset-gray-800','registerDependencies','_drawTextRange','event$','_toggleOffline','_initEvent','width','urlChange$','visibilitychange','symbol','labelPosition','options','combineLatest','_docSelectionManagerService','height','CollaborationController','2936ibnyXx','NodePositionConvertToCursor','remove','IUIPartsService','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','getStateCache','evenodd','univer-flex\x20univer-items-center\x20univer-justify-center','unload','enableDocumentCollaborationUI','registerRenderModule','setShapeProps','preventDefault','forEach','sheetID','univer-text-red-500','red.300','setInterval','UserManagerService','reload','getCurrentRevOfUnit','timeoutState$','columnGroupId','userID','pipe','_getSessionTicket','OTHER_CLIENTS_EDITING','registerRefRange','_dataLoaderService','_startBlinking','handleDeleteRangeMoveLeft','_localStorageService','_activeSaveTaskMap','OPERATION','from','moveTo','CollaborationEvent','SnapshotLoadStage','getRangePointData','unitID','_cursorShapes','_online$','_localeService','_uiPartsService','LOCAL_CACHE_INTERVAL_KEY','yellow.400','ILocalStorageService','CollaborationStatus','updateOfflineData','_unitStatus','CLOSE_ROOM','transformIMECache','drawWith','undoState','_removeClearOtherTimer','collaboration-client-ui.session.connection-failed','SetDocZoomRatioOperation','beginPath','prototype','_startEntity','content','_univerInstanceService','collaboration-client-ui.conflict.content','handleIRemoveRow','_initStatusComponent','ThemeService','finally','TEXT_RANGE_LAYER_INDEX','collaboration-client-ui.config','_shapes','DesktopCollaborationStatusDisplayController','includes','_updateLocalCursor','_lastPointer','25buyLkG','FOOTER','stringify','pageType','join','Injector','collaboration-client-ui.collaboration.single-unit.warning','debounceTime','UniverDocsPlugin','univer-text-blue-500','DocCollaborationEntity','NOT_COLLAB','sheetId','cursorInfo','_registerPresenceStatusComponent','_getLighterColor','body','i18nKey','_collabSessionService','_anchorDot','ISnapshotServerService','sessionTicket','error','RichTextEditingMutation','_configService','connectInjector','DocumentSkeletonPageType','_initialized','DataLoaderService','_doCreateSocket','_draw','dispose','Inject','all','IMessageService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','11royWuo','generateRandomId','_imageIoService','rgba(255,\x20255,\x20255,\x200.01)','timeout','_entityInit$','_highlight','setUndoRedoMutationParamsCache','show','cursorInfo$','collaboration-client-ui.collabStatus.conflict','tooltipKey','_handleHover','canRenderSelection','CollaborationUIEventId','clearInterval','_handleJoinEvent','_color','collaboration-client-ui.collabStatus.fetchMiss','handleInsertRangeMoveDown','getUnhiddenWorksheets','_conflictNotification','polite','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','JOIN_ROOM_FAILED','RxDisposable','collaboration-client-ui.snapshotLoading.refresh','_timeoutState$','setAlpha','_createSocketURL','history','_monkeyPatchLogService','disposeWithMe','enableLocalCache','primary','3SQPiFi','then','RemoveColCommandId','useMemo','sessionStatus$','FETCH_MISS','_backgroundColor','isInternalEditorID','_transformUndoRedoStack','_config','createElement','AWAITING','static','_eventUnsubscribe','toDisposable','Vector2','_entities','PERMISSION_DENIED','_cursor','CollaborationSocketService','ranges','arc','complete','InsertRowCommandId','RemoveRowCommandId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getCoordByCell','font','_hovered','_collaborationUIEventService','_httpService','string','AWAITING_WITH_PENDING','small','collaboration-client-ui.conflict.processing','DocStateChangeManagerService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_initUserListener','Button','stage','setOffsetY','version','executionId','segmentPage','getCurrentUnitOfType','isFinite','getSheetId','removeItem','_isVisibleUnit','GET','isTransformMutationFailure','span','m1Prime','fillRule','backgroundColor','defineProperty','ONLINE','toStringTag','collaboration-client-ui.permission.title','_initStatusListener','_hover','m2Prime','COLORS','clearOfflineData','DeleteRangeMoveLeftCommandId','removeEventListener','closePath','UniverDocsUIPlugin','fill','BuiltInUIPart','timedOut'];_0x55ab=function(){return _0x370281;};return _0x55ab();}E=S([x(0x0,f['IDocClipboardService']),x(0x1,t[_0x4a4f45(0x14c)])],E);const ce=[_0x4a4f45(0x302),'jiqing.500','green.600',_0x4a4f45(0x22f),'blue.400',_0x4a4f45(0x24c)];var D=class extends t[_0x4a4f45(0x423)]{constructor(..._0x2b1df9){const _0xf9a30b=_0x4a4f45;super(..._0x2b1df9),b(this,_0xf9a30b(0x314),new Map()),b(this,_0xf9a30b(0x420),0x0);}[_0x4a4f45(0x330)](_0x21f9e0){const _0x599a0e=_0x4a4f45;if(this[_0x599a0e(0x314)][_0x599a0e(0x33a)](_0x21f9e0))return this[_0x599a0e(0x314)][_0x599a0e(0x39f)](_0x21f9e0);let _0x2b084f=ce[this[_0x599a0e(0x420)]];return this[_0x599a0e(0x420)]=(this[_0x599a0e(0x420)]+0x1)%ce[_0x599a0e(0x18e)],this[_0x599a0e(0x314)][_0x599a0e(0x1a1)](_0x21f9e0,_0x2b084f),_0x2b084f;}};function le(_0x1e5f15){const _0x5dcd73=_0x4a4f45;let _0x308d98='';for(let _0x51b984 of _0x1e5f15){let {startOffset:_0x11dc60,endOffset:_0xc31610,isActive:_0x2abfbe,rangeType:_0x12fd55,segmentId:_0x5cb9a4,segmentPage:_0x2be2a5}=_0x51b984;_0x308d98[_0x5dcd73(0x18e)]&&(_0x308d98+=','),_0x308d98+=_0x11dc60+':'+_0xc31610+':'+(_0x2abfbe?'1':'0')+':'+_0x12fd55+':'+_0x5cb9a4+':'+_0x2be2a5;}return _0x308d98;}function ue(_0xb33801){const _0x132f2f=_0x4a4f45;let _0x32d9d5=_0xb33801[_0x132f2f(0x3f0)](','),_0x32d372=[];for(let _0xe90c58 of _0x32d9d5){let [_0x5318ad,_0xd0f37d,_0x2c64fa,_0x5894b5,_0x1be126,_0x20a9f3]=_0xe90c58['split'](':');_0x32d372[_0x132f2f(0x3b2)]({'startOffset':Number(_0x5318ad),'endOffset':Number(_0xd0f37d),'collapsed':_0x5318ad===_0xd0f37d,'isActive':_0x2c64fa==='1','rangeType':_0x5894b5===t['DOC_RANGE_TYPE']['TEXT']?t[_0x132f2f(0x169)]['TEXT']:t[_0x132f2f(0x169)]['RECT'],'segmentId':typeof _0x1be126==_0x132f2f(0x2cf)?String(_0x1be126):'','segmentPage':Number(_0x20a9f3??-0x1)});}return _0x32d372[_0x132f2f(0x402)](_0x7e9c09=>_0x7e9c09[_0x132f2f(0x30e)])||(_0x32d372[0x0][_0x132f2f(0x30e)]=!0x0),_0x32d372;}var O=class extends t[_0x4a4f45(0x2a6)]{constructor(..._0x3d167d){const _0x250455=_0x4a4f45;super(..._0x3d167d),b(this,_0x250455(0x37f),new r[(_0x250455(0x154))](null)),b(this,_0x250455(0x30d),this[_0x250455(0x37f)][_0x250455(0x34c)]());}[_0x4a4f45(0x1e5)](_0x1e688e){const _0x81accb=_0x4a4f45;let {unitID:_0x5d794f,memberID:_0x25f41d,textRanges:_0x561a70}=_0x1e688e,_0x3541b6=le(_0x561a70);if(_0x3541b6==='')return;let _0xbd380d={'unitID':_0x5d794f,'memberID':_0x25f41d,'selection':_0x3541b6};this[_0x81accb(0x37f)][_0x81accb(0x13e)](_0xbd380d);}};let k=class extends t[_0x4a4f45(0x2a6)]{get['cursorInfo'](){const _0x2db7f4=_0x4a4f45;return this[_0x2db7f4(0x318)]['getValue']();}get[_0x4a4f45(0x1be)](){const _0x21b22b=_0x4a4f45;return this['_roomMembers$'][_0x21b22b(0x393)]();}constructor(_0x4b2878,_0x4919c1,_0x1d7c48,_0x4cb815,_0x2816af,_0x36be6c,_0x5ef2d8,_0x523a7f,_0x291068){const _0x174991=_0x4a4f45;super(),this[_0x174991(0x246)]=_0x4b2878,this[_0x174991(0x1e3)]=_0x4919c1,this[_0x174991(0x38f)]=_0x1d7c48,this[_0x174991(0x1c2)]=_0x4cb815,this['_memberService']=_0x2816af,this[_0x174991(0x142)]=_0x36be6c,this[_0x174991(0x349)]=_0x5ef2d8,this['_univerInstanceService']=_0x523a7f,this['_commandService']=_0x291068,b(this,_0x174991(0x38b),!0x1),b(this,_0x174991(0x332),!0x1),b(this,_0x174991(0x318),new r[(_0x174991(0x154))](new Map())),b(this,'cursorInfo$',this[_0x174991(0x318)][_0x174991(0x34c)]()),b(this,'_roomMembers$',new r[(_0x174991(0x154))]([])),b(this,_0x174991(0x41f),this[_0x174991(0x3e9)][_0x174991(0x237)]((0x0,r[_0x174991(0x270)])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x174991(0x143)])(_0x3c2750=>{const _0x547b91=_0x174991;let _0x560f06={'eventID':l['CollaborationEvent'][_0x547b91(0x32c)],'data':{'unitID':this[_0x547b91(0x246)],'memberID':this[_0x547b91(0x1e3)]['getMemberID'](),'selection':le(_0x3c2750)}};this[_0x547b91(0x1e3)][_0x547b91(0x20e)](_0x560f06,this[_0x547b91(0x246)]);},0x64));}[_0x4a4f45(0x288)](){const _0x5e16ba=_0x4a4f45;super[_0x5e16ba(0x288)](),this[_0x5e16ba(0x318)][_0x5e16ba(0x13e)](new Map()),this[_0x5e16ba(0x318)][_0x5e16ba(0x2c6)](),this['_roomMembers$']['next']([]),this[_0x5e16ba(0x3e9)][_0x5e16ba(0x2c6)]();}[_0x4a4f45(0x42d)](){const _0x5772e7=_0x4a4f45;this['_init']||(this[_0x5772e7(0x332)]=!0x0,this[_0x5772e7(0x1e3)]['sessionStatus$']['pipe']((0x0,r[_0x5772e7(0x42e)])(this[_0x5772e7(0x3f1)]))[_0x5772e7(0x195)](_0x446ed7=>{const _0x41646a=_0x5772e7;_0x446ed7===e[_0x41646a(0x3f2)][_0x41646a(0x2e8)]?this['_toggleOnline']():this[_0x41646a(0x213)]();}),this['_session'][_0x5772e7(0x212)][_0x5772e7(0x237)]((0x0,r[_0x5772e7(0x42e)])(this['dispose$']))[_0x5772e7(0x195)](_0x28ab5e=>{const _0x4ad7d1=_0x5772e7;let _0x41b323=_0x28ab5e[_0x4ad7d1(0x170)];_0x41b323===l[_0x4ad7d1(0x243)]['UPDATE_CURSOR']&&this[_0x4ad7d1(0x2fa)](_0x28ab5e),_0x41b323===l[_0x4ad7d1(0x243)][_0x4ad7d1(0x3e8)]&&this[_0x4ad7d1(0x3dc)](_0x28ab5e);}),this[_0x5772e7(0x2ad)](this['_commandService']['onCommandExecuted'](_0x59123d=>{const _0x3f879d=_0x5772e7;let _0xcae9c8=_0x59123d['params'];_0xcae9c8!=null&&this[_0x3f879d(0x38b)]&&_0x59123d['id']===d[_0x3f879d(0x17c)]['id']&&_0xcae9c8['unitId']===this[_0x3f879d(0x246)]&&_0xcae9c8[_0x3f879d(0x326)]===!0x1&&_0xcae9c8[_0x3f879d(0x2c4)][_0x3f879d(0x18e)]>0x0&&this[_0x3f879d(0x267)](_0xcae9c8[_0x3f879d(0x2c4)]);})),this[_0x5772e7(0x142)][_0x5772e7(0x30d)][_0x5772e7(0x237)]((0x0,r[_0x5772e7(0x42e)])(this[_0x5772e7(0x3f1)]))[_0x5772e7(0x195)](_0x3dc332=>{const _0x48fcc3=_0x5772e7;if((_0x3dc332==null?void 0x0:_0x3dc332['unitID'])!==this[_0x48fcc3(0x246)])return;let _0x1c5046={'eventID':l[_0x48fcc3(0x243)][_0x48fcc3(0x32c)],'data':_0x3dc332};this[_0x48fcc3(0x2fa)](_0x1c5046);}),this[_0x5772e7(0x2ad)](this['_commandService'][_0x5772e7(0x3b7)](_0xf6126d=>{const _0x6f955c=_0x5772e7;if(_0xf6126d[_0x6f955c(0x304)]==null)return;let _0x1086e9=_0xf6126d[_0x6f955c(0x304)];if(_0xf6126d['id']!==d[_0x6f955c(0x280)]['id']||_0x1086e9[_0x6f955c(0x3ad)]!==this[_0x6f955c(0x246)])return;let _0x24ba9d={'id':_0x6f955c(0x184),'params':_0x1086e9},_0x38cf9a=this[_0x6f955c(0x276)];for(let [_0x18067d,_0x1d4bfb]of _0x38cf9a){let _0x4d7a99={'id':_0x6f955c(0x184),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1d4bfb[_0x6f955c(0x2c4)]}},_0x220865=this[_0x6f955c(0x349)][_0x6f955c(0x343)](_0x24ba9d,_0x4d7a99,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x220865))throw _0x220865[_0x6f955c(0x27f)];_0x38cf9a[_0x6f955c(0x1a1)](_0x18067d,{..._0x1d4bfb,'ranges':_0x220865[_0x6f955c(0x2ed)][_0x6f955c(0x304)][_0x6f955c(0x41c)]});}queueMicrotask(()=>{const _0x3cef99=_0x6f955c;this['_cursorInfo$'][_0x3cef99(0x13e)](_0x38cf9a);});})));}[_0x4a4f45(0x2fa)](_0x4541f8){const _0x116a84=_0x4a4f45;var _0x5b59e;let {memberID:_0x11035a,selection:_0x208c8d}=_0x4541f8[_0x116a84(0x18c)],_0x460567=ue(_0x208c8d),_0x406d73=((_0x5b59e=this[_0x116a84(0x374)]['getMember'](this[_0x116a84(0x246)],_0x11035a))==null?void 0x0:_0x5b59e[_0x116a84(0x3b3)])??'Unknown\x20user',_0x13ab5f={'color':this[_0x116a84(0x1c2)]['assignAColorForMemberID'](_0x11035a),'name':_0x406d73,'ranges':_0x460567},_0x557f0d=this[_0x116a84(0x276)];_0x557f0d[_0x116a84(0x1a1)](_0x11035a,_0x13ab5f),this[_0x116a84(0x318)]['next'](_0x557f0d);}[_0x4a4f45(0x3dc)](_0x1ecae2){const _0xff2642=_0x4a4f45;let {memberID:_0x37b8ec}=_0x1ecae2[_0xff2642(0x18c)],_0x2eabe9=this[_0xff2642(0x276)];_0x2eabe9[_0xff2642(0x426)](_0x37b8ec),this[_0xff2642(0x318)][_0xff2642(0x13e)](_0x2eabe9);}[_0x4a4f45(0x125)](){const _0x5d25b5=_0x4a4f45;var _0x5be400;if(this[_0x5d25b5(0x38b)]=!0x0,((_0x5be400=this[_0x5d25b5(0x25c)]['getFocusedUnit']())==null?void 0x0:_0x5be400['getUnitId']())!==this[_0x5d25b5(0x246)])return;let _0x34a535=this['_injector'][_0x5d25b5(0x39f)](d[_0x5d25b5(0x14d)])[_0x5d25b5(0x1a5)]();Array[_0x5d25b5(0x347)](_0x34a535)&&_0x34a535[_0x5d25b5(0x18e)]>0x0&&this[_0x5d25b5(0x267)](_0x34a535);}[_0x4a4f45(0x213)](){const _0x42e937=_0x4a4f45;this[_0x42e937(0x38b)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x3,(0x0,t[_0x4a4f45(0x289)])(D)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(e['MemberService'])),x(0x5,(0x0,t[_0x4a4f45(0x289)])(O)),x(0x6,l['ITransformService']),x(0x7,t[_0x4a4f45(0x1ff)]),x(0x8,t[_0x4a4f45(0x1de)])],k);const de=()=>{let _0x4fc1e2=[],_0x36c0ae=!0x1;return _0x1d75de=>{_0x4fc1e2['push'](_0x1d75de),_0x36c0ae||(_0x36c0ae=!0x0,setTimeout(()=>{const _0x20fbc4=_0xd371;_0x4fc1e2[_0x20fbc4(0x22c)](_0x535936=>_0x535936()),_0x4fc1e2=[],_0x36c0ae=!0x1;}));};};let A=class extends t[_0x4a4f45(0x2a6)]{get[_0x4a4f45(0x276)](){const _0x44f9d9=_0x4a4f45;return this[_0x44f9d9(0x318)][_0x44f9d9(0x393)]();}get[_0x4a4f45(0x1be)](){const _0x13ba9d=_0x4a4f45;return this[_0x13ba9d(0x3e9)][_0x13ba9d(0x393)]();}constructor(_0x32762e,_0x5569fe,_0x515b63,_0x15309d,_0x128800,_0x574992,_0x47c929,_0x173fa9){const _0x2613cc=_0x4a4f45;super(),this[_0x2613cc(0x246)]=_0x32762e,this[_0x2613cc(0x1e3)]=_0x5569fe,this[_0x2613cc(0x38f)]=_0x515b63,this[_0x2613cc(0x1c2)]=_0x15309d,this['_memberService']=_0x128800,this[_0x2613cc(0x25c)]=_0x574992,this[_0x2613cc(0x14b)]=_0x47c929,this[_0x2613cc(0x1d3)]=_0x173fa9,b(this,_0x2613cc(0x38b),!0x1),b(this,_0x2613cc(0x332),!0x1),b(this,'_cursorInfo$',new r[(_0x2613cc(0x154))](new Map())),b(this,_0x2613cc(0x296),this[_0x2613cc(0x318)][_0x2613cc(0x34c)]()),b(this,'_roomMembers$',new r['BehaviorSubject']([])),b(this,'roomMembers$',this[_0x2613cc(0x3e9)]['pipe']((0x0,r['debounceTime'])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x2613cc(0x143)])((_0x2eaa11,_0x114ac7)=>{const _0xb26ae2=_0x2613cc;let _0x609b64={'eventID':l['CollaborationEvent'][_0xb26ae2(0x32c)],'data':{'unitID':this[_0xb26ae2(0x246)],'memberID':this[_0xb26ae2(0x1e3)][_0xb26ae2(0x1af)](),'selection':(0x0,h[_0xb26ae2(0x35e)])(_0x2eaa11,_0x114ac7[_0xb26ae2(0x355)])}};this[_0xb26ae2(0x1e3)][_0xb26ae2(0x20e)](_0x609b64,this[_0xb26ae2(0x246)]);},0x64));}[_0x4a4f45(0x288)](){const _0x15bcb7=_0x4a4f45;super[_0x15bcb7(0x288)](),this[_0x15bcb7(0x318)][_0x15bcb7(0x13e)](new Map()),this[_0x15bcb7(0x318)][_0x15bcb7(0x2c6)](),this['_roomMembers$']['next']([]),this[_0x15bcb7(0x3e9)][_0x15bcb7(0x2c6)]();}[_0x4a4f45(0x42d)](){const _0x1b225b=_0x4a4f45;this['_init']||(this[_0x1b225b(0x332)]=!0x0,this['_session'][_0x1b225b(0x2b4)][_0x1b225b(0x237)]((0x0,r[_0x1b225b(0x42e)])(this['dispose$']))[_0x1b225b(0x195)](_0x21749b=>{const _0x127d43=_0x1b225b;_0x21749b===e[_0x127d43(0x3f2)][_0x127d43(0x2e8)]?this[_0x127d43(0x125)]():this[_0x127d43(0x213)]();}),this['_session'][_0x1b225b(0x212)][_0x1b225b(0x237)]((0x0,r['takeUntil'])(this[_0x1b225b(0x3f1)]))[_0x1b225b(0x195)](_0x378080=>{const _0x2af9cd=_0x1b225b;let _0x22dc81=_0x378080[_0x2af9cd(0x170)];_0x22dc81===l[_0x2af9cd(0x243)][_0x2af9cd(0x32c)]&&this[_0x2af9cd(0x2fa)](_0x378080),_0x22dc81===l[_0x2af9cd(0x243)][_0x2af9cd(0x3e8)]&&this['_onCursorDelete'](_0x378080);}),this['_onRefRangeChange'](),this[_0x1b225b(0x2ad)](this[_0x1b225b(0x14b)][_0x1b225b(0x3b7)](_0x356d62=>{const _0x2d904d=_0x1b225b;if(this['_online']&&_0x356d62['id']===g[_0x2d904d(0x1d7)]['id']&&_0x356d62['params']['unitId']===this['unitID']){let _0x4f51b5=_0x356d62['params'];this[_0x2d904d(0x267)](_0x4f51b5[_0x2d904d(0x1b9)],_0x4f51b5[_0x2d904d(0x3a5)][0x0]);}})));}[_0x4a4f45(0x2fa)](_0x5352d4){const _0x557bca=_0x4a4f45;var _0x4a22bc;let {memberID:_0x15c422,selection:_0x3c5e0b}=_0x5352d4[_0x557bca(0x18c)],{sheetName:_0x9529ff,range:_0x18e602}=(0x0,h['deserializeRangeWithSheet'])(_0x3c5e0b),_0xffb8f9={'name':((_0x4a22bc=this[_0x557bca(0x374)][_0x557bca(0x1e9)](this[_0x557bca(0x246)],_0x15c422))==null?void 0x0:_0x4a22bc['name'])??_0x557bca(0x158),'range':this['_getMergeRange'](_0x9529ff,_0x18e602),'sheetID':_0x9529ff,'color':this[_0x557bca(0x1c2)][_0x557bca(0x330)](_0x15c422),'selection':_0x3c5e0b},_0x398560=this[_0x557bca(0x276)];_0x398560[_0x557bca(0x1a1)](_0x15c422,_0xffb8f9),this['_cursorInfo$']['next'](_0x398560);}['_onCursorDelete'](_0x5dac19){const _0x541e66=_0x4a4f45;let {memberID:_0x42297d}=_0x5dac19['data'],_0x6e1bed=this['cursorInfo'];_0x6e1bed['delete'](_0x42297d),this[_0x541e66(0x318)]['next'](_0x6e1bed);}['_getMergeRange'](_0x3b136d,_0xb17499){const _0x564510=_0x4a4f45;var _0xee7b34;let _0x5de63f=(_0xee7b34=this['_univerInstanceService']['getUnit'](this[_0x564510(0x246)],t[_0x564510(0x397)]['UNIVER_SHEET']))==null||(_0xee7b34=_0xee7b34[_0x564510(0x180)](_0x3b136d))==null?void 0x0:_0xee7b34[_0x564510(0x35b)]();return(_0x5de63f==null?void 0x0:_0x5de63f[_0x564510(0x315)](_0xff3d51=>t[_0x564510(0x34f)]['contains'](_0xff3d51,_0xb17499)))||_0xb17499;}[_0x4a4f45(0x164)](){const _0x495b40=_0x4a4f45;let _0x324baf=new t[(_0x495b40(0x403))](),_0x106283=de(),_0xf4949f=()=>{const _0x27dcd0=_0x495b40;_0x324baf[_0x27dcd0(0x288)]();let _0x3cc5ff=(_0x3b5dc7,_0x576e59,_0x259a51,_0x3ac3b2)=>{const _0x33644d=_0x27dcd0;let _0x3bbe4c=[];switch(_0x3b5dc7['id']){case g[_0x33644d(0x2f8)][_0x33644d(0x2f0)]:_0x3bbe4c=(0x0,g[_0x33644d(0x23d)])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x388)]:_0x3bbe4c=(0x0,g[_0x33644d(0x1a6)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)]['InsertColCommandId']:_0x3bbe4c=(0x0,g[_0x33644d(0x2fb)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x1ba)]:_0x3bbe4c=(0x0,g[_0x33644d(0x2a0)])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x3c5)]:_0x3bbe4c=(0x0,g['handleInsertRangeMoveRight'])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x2c7)]:_0x3bbe4c=(0x0,g[_0x33644d(0x1eb)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x328)]:_0x3bbe4c=(0x0,g['handleMoveRange'])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x2b2)]:_0x3bbe4c=(0x0,g['handleIRemoveCol'])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x2c8)]:_0x3bbe4c=(0x0,g[_0x33644d(0x25e)])(_0x3b5dc7,_0x3ac3b2);}let _0x160d3f=(0x0,g[_0x33644d(0x186)])(_0x3bbe4c,_0x3ac3b2),_0x2314f7=this[_0x33644d(0x276)]['get'](_0x576e59);if(_0x2314f7&&_0x160d3f){let _0x4579c6={..._0x2314f7,'range':_0x160d3f};this[_0x33644d(0x276)][_0x33644d(0x1a1)](_0x576e59,_0x4579c6),_0x106283(()=>{const _0x1128a2=_0x33644d;let _0xba3b9e=this['_refRangeService'][_0x1128a2(0x23a)](_0x160d3f,_0x469439=>(_0xba3b9e[_0x1128a2(0x288)](),_0x3cc5ff(_0x469439,_0x576e59,_0x259a51,_0x160d3f)));_0x324baf[_0x1128a2(0x307)](_0xba3b9e);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x27dcd0(0x22c)]((_0x507285,_0x33193e)=>{const _0x477a62=_0x27dcd0;let {range:_0x351f68,sheetID:_0x34d6c1}=_0x507285,_0x39bf87=this[_0x477a62(0x1d3)]['registerRefRange'](_0x351f68,_0x59f482=>(_0x39bf87['dispose'](),_0x3cc5ff(_0x59f482,_0x33193e,_0x34d6c1,_0x351f68)));_0x324baf[_0x477a62(0x307)](_0x39bf87);});};this[_0x495b40(0x2ad)]((0x0,t[_0x495b40(0x2be)])(this['_cursorInfo$'][_0x495b40(0x195)](()=>{_0xf4949f();})));}[_0x4a4f45(0x125)](){const _0x427341=_0x4a4f45;var _0x498241,_0x4e7e2c;if(this[_0x427341(0x38b)]=!0x0,((_0x498241=this[_0x427341(0x25c)]['getFocusedUnit']())==null?void 0x0:_0x498241[_0x427341(0x370)]())!==this[_0x427341(0x246)])return;let _0x3a6b8b=(_0x4e7e2c=this[_0x427341(0x38f)][_0x427341(0x39f)](g[_0x427341(0x194)])[_0x427341(0x3fe)]())==null?void 0x0:_0x4e7e2c[0x0],_0x5b30aa=this['_univerInstanceService'][_0x427341(0x2dc)](t[_0x427341(0x397)][_0x427341(0x379)])['getActiveSheet']();_0x3a6b8b&&_0x5b30aa&&this[_0x427341(0x267)](_0x5b30aa['getSheetId'](),_0x3a6b8b);}[_0x4a4f45(0x213)](){const _0x2bc825=_0x4a4f45;this[_0x2bc825(0x38b)]=!0x1;}};A=S([x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t['Inject'])(e['MemberService'])),x(0x5,t[_0x4a4f45(0x1ff)]),x(0x6,t['ICommandService']),x(0x7,(0x0,t['Inject'])(g['RefRangeService']))],A);let j=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x1a253a,_0x140719,_0x4edd12){const _0x2efd49=_0x4a4f45;super(),this['_univerInstanceService']=_0x1a253a,this[_0x2efd49(0x38f)]=_0x140719,this[_0x2efd49(0x27b)]=_0x4edd12,b(this,_0x2efd49(0x2c0),new Map()),b(this,_0x2efd49(0x292),new r[(_0x2efd49(0x31c))]()),this[_0x2efd49(0x332)]();}[_0x4a4f45(0x288)](){super['dispose'](),this['_entityInit$']['complete'](),this['_entities']['forEach'](_0x5ea41c=>_0x5ea41c['dispose']());}[_0x4a4f45(0x197)](_0x421b68){const _0x5e0014=_0x4a4f45;let _0x296a61=this['_entities'][_0x5e0014(0x39f)](_0x421b68);return _0x296a61?_0x296a61[_0x5e0014(0x296)]:this[_0x5e0014(0x292)]['pipe']((0x0,r['filter'])(_0x50e24e=>_0x50e24e[_0x5e0014(0x246)]===_0x421b68),(0x0,r[_0x5e0014(0x3cd)])(_0x2f0c71=>_0x2f0c71[_0x5e0014(0x296)]));}[_0x4a4f45(0x332)](){const _0x12f294=_0x4a4f45;this[_0x12f294(0x25c)][_0x12f294(0x309)](t['UniverInstanceType'][_0x12f294(0x379)])[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this['dispose$']))[_0x12f294(0x195)](async _0x11bfac=>{const _0x14e08e=_0x12f294;let _0x3853bd=_0x11bfac['unit'][_0x14e08e(0x370)](),_0x3d5d44=await this[_0x14e08e(0x177)](_0x3853bd);this['_entityInit$'][_0x14e08e(0x13e)](_0x3d5d44),this[_0x14e08e(0x2c0)][_0x14e08e(0x1a1)](_0x3853bd,_0x3d5d44);}),this['_univerInstanceService'][_0x12f294(0x309)](t[_0x12f294(0x397)][_0x12f294(0x19b)])[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this['dispose$']))['pipe']((0x0,r[_0x12f294(0x3e3)])(_0x1143ff=>!_0x1143ff[_0x12f294(0x181)][_0x12f294(0x370)]()[_0x12f294(0x34d)]('__')))['subscribe'](async _0x482311=>{const _0x6e7596=_0x12f294;let {unit:_0x53557c}=_0x482311,_0x28d39c=_0x53557c[_0x6e7596(0x370)](),_0x1c53aa=await this[_0x6e7596(0x300)](_0x28d39c);this[_0x6e7596(0x292)]['next'](_0x1c53aa),this[_0x6e7596(0x2c0)][_0x6e7596(0x1a1)](_0x28d39c,_0x1c53aa);}),(0x0,r[_0x12f294(0x42a)])(this['_univerInstanceService'][_0x12f294(0x3b6)](t[_0x12f294(0x397)][_0x12f294(0x19b)]),this[_0x12f294(0x25c)][_0x12f294(0x3b6)](t[_0x12f294(0x397)]['UNIVER_SHEET']))[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this[_0x12f294(0x3f1)]))['subscribe'](_0x18af87=>{const _0x30c7cf=_0x12f294;let _0x26baa1=_0x18af87[_0x30c7cf(0x370)](),_0xec1094=this[_0x30c7cf(0x2c0)][_0x30c7cf(0x39f)](_0x26baa1);_0xec1094&&(_0xec1094['dispose'](),this['_entities']['delete'](_0x26baa1));});}async['_startSheetCollabCursor'](_0x50af62){const _0x165cc4=_0x4a4f45;let _0x4aacdb=await this['_collabSessionService'][_0x165cc4(0x331)](_0x50af62),_0x55ab29=this[_0x165cc4(0x38f)]['createInstance'](A,_0x50af62,_0x4aacdb);return _0x55ab29[_0x165cc4(0x42d)](),_0x55ab29;}async[_0x4a4f45(0x300)](_0x5eac98){const _0x4689bf=_0x4a4f45;let _0x3aa895=await this[_0x4689bf(0x27b)][_0x4689bf(0x331)](_0x5eac98),_0x4fa006=this['_injector'][_0x4689bf(0x3ba)](k,_0x5eac98,_0x3aa895);return _0x4fa006['init'](),_0x4fa006;}};j=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e['CollaborationSessionService']))],j);function fe(_0x1d3f27,_0x490817){const _0x3ccec1=_0x4a4f45;_0x1d3f27[_0x3ccec1(0x394)](),_0x1d3f27[_0x3ccec1(0x2cb)]=_0x3ccec1(0x32b);let _0x4c63db=_0x1d3f27[_0x3ccec1(0x191)](_0x490817)[_0x3ccec1(0x215)];return _0x1d3f27[_0x3ccec1(0x209)](),Math['min'](_0x4c63db+0x8,0xc8);}function pe(_0x520813,_0x26b6e7){const _0xec80b0=_0x4a4f45;let {radius:_0x4a975f,width:_0x4bdeb1,height:_0x5732d9}=_0x26b6e7;_0x4a975f??=0x0,_0x4bdeb1??=0x1e,_0x5732d9??=0x1e;let _0x563fd5=0x0,_0x578b02=0x0,_0x476972=0x0;_0x563fd5=_0x578b02=_0x476972=Math[_0xec80b0(0x139)](_0x4a975f,_0x4bdeb1/0x2,_0x5732d9/0x2),_0x520813[_0xec80b0(0x258)](),_0x520813[_0xec80b0(0x242)](_0x563fd5,0x0),_0x520813[_0xec80b0(0x3e2)](_0x4bdeb1-_0x578b02,0x0),_0x520813['arc'](_0x4bdeb1-_0x578b02,_0x578b02,_0x578b02,Math['PI']*0x3/0x2,0x0,!0x1),_0x520813[_0xec80b0(0x3e2)](_0x4bdeb1,_0x5732d9-_0x476972),_0x520813[_0xec80b0(0x2c5)](_0x4bdeb1-_0x476972,_0x5732d9-_0x476972,_0x476972,0x0,Math['PI']/0x2,!0x1),_0x520813[_0xec80b0(0x3e2)](0x0,_0x5732d9),_0x520813[_0xec80b0(0x3e2)](0x0,_0x563fd5),_0x520813[_0xec80b0(0x2c5)](_0x563fd5,_0x563fd5,_0x563fd5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x520813[_0xec80b0(0x2f2)](),_0x26b6e7[_0xec80b0(0x2f4)]&&(_0x520813[_0xec80b0(0x394)](),_0x520813[_0xec80b0(0x39e)]=_0x26b6e7[_0xec80b0(0x2f4)],_0x26b6e7[_0xec80b0(0x2e5)]===_0xec80b0(0x225)?_0x520813[_0xec80b0(0x2f4)]('evenodd'):_0x520813[_0xec80b0(0x2f4)](),_0x520813['restore']());}var me=class e extends p[_0x4a4f45(0x1b4)]{constructor(_0x46191b,_0x2aba63){const _0x11ae79=_0x4a4f45;super(_0x46191b,_0x2aba63),b(this,_0x11ae79(0x3e0),void 0x0),b(this,_0x11ae79(0x37e),void 0x0),this[_0x11ae79(0x3e0)]=_0x2aba63==null?void 0x0:_0x2aba63['color'],this[_0x11ae79(0x37e)]=_0x2aba63==null?void 0x0:_0x2aba63['text'];}static[_0x4a4f45(0x253)](_0x2329f1,_0x52c315){const _0x4ab9f4=_0x4a4f45;let {text:_0x5cf9ef,color:_0x2c15b6}=_0x52c315;_0x2329f1[_0x4ab9f4(0x394)](),_0x2329f1[_0x4ab9f4(0x2cb)]=_0x4ab9f4(0x3cb);let _0x2651f4=_0x2329f1['measureText'](_0x5cf9ef)[_0x4ab9f4(0x215)];if(pe(_0x2329f1,{'height':0x14,'radius':0x4,'width':fe(_0x2329f1,_0x5cf9ef),'fill':_0x2c15b6,'evented':!0x1}),_0x2329f1[_0x4ab9f4(0x39e)]=_0x4ab9f4(0x42c),_0x2651f4>0xc0){let _0x573f9f='',_0x2c7a83=0x0;for(let _0x43bc53 of _0x5cf9ef){let _0x18b305=_0x2329f1[_0x4ab9f4(0x191)](_0x43bc53)[_0x4ab9f4(0x215)];if(_0x2c7a83+_0x18b305<=0xc0-_0x2329f1[_0x4ab9f4(0x191)](_0x4ab9f4(0x36f))[_0x4ab9f4(0x215)])_0x573f9f+=_0x43bc53,_0x2c7a83+=_0x18b305;else{_0x573f9f+=_0x4ab9f4(0x36f);break;}}_0x2329f1[_0x4ab9f4(0x19a)](_0x573f9f,0x4,0xf);}else _0x2329f1['fillText'](_0x5cf9ef,0x4,0xf);_0x2329f1[_0x4ab9f4(0x209)]();}[_0x4a4f45(0x287)](_0x16c650){const _0x4ac63d=_0x4a4f45;e[_0x4ac63d(0x253)](_0x16c650,this);}};const M='collab-text-anchor-';var he=class{constructor(_0x170b0b,_0x1eafbb,_0x59d56e,_0x1224ad){const _0x4bb6f2=_0x4a4f45;this[_0x4bb6f2(0x2c2)]=_0x170b0b,this[_0x4bb6f2(0x1aa)]=_0x1eafbb,this[_0x4bb6f2(0x38e)]=_0x59d56e,this[_0x4bb6f2(0x136)]=_0x1224ad,b(this,'_shapes',[]),b(this,_0x4bb6f2(0x2ff),null),b(this,_0x4bb6f2(0x2f7),null),b(this,_0x4bb6f2(0x27c),null),b(this,_0x4bb6f2(0x1dd),null),b(this,'_eventUnsubscribe',null),this[_0x4bb6f2(0x390)]();}set[_0x4a4f45(0x2ec)](_0x7a760e){const _0xb056fa=_0x4a4f45;_0x7a760e?(this[_0xb056fa(0x27c)]&&this[_0xb056fa(0x27c)][_0xb056fa(0x375)](),this[_0xb056fa(0x2f7)]&&this[_0xb056fa(0x2f7)][_0xb056fa(0x295)]()):(this[_0xb056fa(0x27c)]&&this['_anchorDot']['show'](),this[_0xb056fa(0x2f7)]&&this[_0xb056fa(0x2f7)]['hide']());}[_0x4a4f45(0x288)](){const _0x304655=_0x4a4f45;for(let _0x17ac91 of this[_0x304655(0x264)])_0x17ac91[_0x304655(0x288)]();this[_0x304655(0x2f7)]&&this[_0x304655(0x2f7)][_0x304655(0x288)](),this[_0x304655(0x27c)]&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x304655(0x2ff)][_0x304655(0x288)](),this[_0x304655(0x2bd)]&&this[_0x304655(0x2bd)]();}[_0x4a4f45(0x390)](){const _0x5c8d62=_0x4a4f45;let {_docSkeleton:_0x2915db,_document:_0x5c1df3}=this,{color:_0x26ace0,name:_0x1baeef,ranges:_0x53f4a9}=this['_cursor'],_0x2ab6dd=_0x5c1df3[_0x5c8d62(0x340)](),{docsLeft:_0x226219,docsTop:_0x23b73a}=_0x2ab6dd,_0x2c7b2d=new f[(_0x5c8d62(0x220))](_0x2ab6dd,_0x2915db);for(let {startOffset:_0x595069,endOffset:_0x26ed45,rangeType:_0xb0da95,segmentId:_0xad9a15,segmentPage:_0x199d81,collapsed:_0x305818,isActive:_0x440809}of _0x53f4a9){let _0x6a89b0=_0x2915db[_0x5c8d62(0x1f9)](_0x595069,!0x0,_0xad9a15,_0x199d81),_0x40cc85=_0x2915db[_0x5c8d62(0x1f9)](_0x26ed45,!0x0,_0xad9a15,_0x199d81);_0x40cc85??=_0x2915db[_0x5c8d62(0x1f9)](_0x26ed45-0x1,!0x1,_0xad9a15,_0x199d81);let _0x3a749c=ge(_0x6a89b0,_0x40cc85);if(_0x440809&&_0x3a749c['canRenderAnchor']){let {contentBoxPointGroup:_0x28c027}=_0x2c7b2d[_0x5c8d62(0x245)](_0x40cc85,_0x40cc85);if(_0x28c027[_0x5c8d62(0x18e)]===0x0)continue;this[_0x5c8d62(0x3ae)](_0x26ace0,_0x28c027,_0x226219,_0x23b73a,_0x1baeef),this[_0x5c8d62(0x2bd)]=this[_0x5c8d62(0x299)]();}if(_0x6a89b0&&_0x40cc85){if(_0xb0da95===t['DOC_RANGE_TYPE']['RECT']){let {pointGroup:_0x3b7926}=new f['NodePositionConvertToRectRange'](_0x2ab6dd,_0x2915db)['getRangePointData'](_0x6a89b0,_0x40cc85)??{};if(_0x3b7926==null||_0x3b7926[_0x5c8d62(0x18e)]===0x0)continue;this[_0x5c8d62(0x205)](_0x26ace0,_0x3b7926,_0x226219,_0x23b73a);}else{if(!_0x305818&&_0x3a749c[_0x5c8d62(0x29a)]){let {borderBoxPointGroup:_0x2b8bf3}=_0x2c7b2d[_0x5c8d62(0x245)](_0x6a89b0,_0x40cc85);if(_0x2b8bf3['length']===0x0)continue;this['_drawTextRange'](_0x26ace0,_0x2b8bf3,_0x226219,_0x23b73a);}}}}}[_0x4a4f45(0x3ae)](_0x32e06f,_0x425852,_0x3559f5,_0x41d143,_0x5637d3){const _0x4713ec=_0x4a4f45;let {left:_0x35e8f1,top:_0xae5ed3,height:_0x13472a}=this[_0x4713ec(0x31e)](_0x425852),_0x2e6b10=1.5/this[_0x4713ec(0x383)](),_0x10b784=new p[(_0x4713ec(0x1fe))](M+(0x0,t['generateRandomId'])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143,'height':_0x13472a,'width':1.5,'fill':_0x32e06f||(0x0,p[_0x4713ec(0x127)])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'strokeWidth':_0x2e6b10,'stroke':_0x4713ec(0x290),'evented':!0x0});this[_0x4713ec(0x2ff)]=_0x10b784,this['_scene'][_0x4713ec(0x1bf)](_0x10b784,f[_0x4713ec(0x262)]);let _0x597173=new p[(_0x4713ec(0x1fe))](M+(0x0,t[_0x4713ec(0x28e)])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143-0x2,'height':0x4,'width':0x4,'fill':_0x32e06f||(0x0,p[_0x4713ec(0x127)])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'strokeWidth':0x0,'stroke':_0x32e06f||(0x0,p['getColor'])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'evented':!0x1});this[_0x4713ec(0x27c)]=_0x597173,this['_scene'][_0x4713ec(0x1bf)](_0x597173,f[_0x4713ec(0x262)]);let _0x223dd4=new me(M+(0x0,t[_0x4713ec(0x28e)])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143-0x14,'text':_0x5637d3,'color':_0x32e06f});this[_0x4713ec(0x2f7)]=_0x223dd4,this[_0x4713ec(0x1aa)][_0x4713ec(0x1bf)](_0x223dd4,f[_0x4713ec(0x262)]),this[_0x4713ec(0x2ec)]=!0x1;}[_0x4a4f45(0x299)](){const _0x3704bf=_0x4a4f45;let _0x5ee5f9=this[_0x3704bf(0x2ff)]['onPointerEnter$'][_0x3704bf(0x204)](()=>{const _0x2bf1ad=_0x3704bf;this[_0x2bf1ad(0x2ec)]=!0x0;}),_0x5144ed=this[_0x3704bf(0x2ff)]['onPointerLeave$'][_0x3704bf(0x204)](()=>{const _0x2f133e=_0x3704bf;this['_hideTimer']&&clearTimeout(this[_0x2f133e(0x1dd)]),this[_0x2f133e(0x1dd)]=setTimeout(()=>{const _0x5776ae=_0x2f133e;this[_0x5776ae(0x2ec)]=!0x1;},0x7d0);});return()=>{const _0xd9794c=_0x3704bf;_0x5ee5f9[_0xd9794c(0x372)](),_0x5144ed[_0xd9794c(0x372)]();};}[_0x4a4f45(0x211)](_0x47b5c9,_0x31f42e,_0x18e2e2,_0x161985){const _0x137fc8=_0x4a4f45;let _0x58cc20=0.2,_0x27c79c=new t[(_0x137fc8(0x30f))](_0x47b5c9)['setAlpha'](_0x58cc20)[_0x137fc8(0x1f4)](),_0x207830=new p[(_0x137fc8(0x1cd))]('collab-text-range-'+(0x0,t[_0x137fc8(0x28e)])(0x6),{'pointsGroup':_0x31f42e,'fill':_0x27c79c||(0x0,p[_0x137fc8(0x127)])(t[_0x137fc8(0x2ee)][_0x137fc8(0x35a)],_0x58cc20),'left':_0x18e2e2,'top':_0x161985,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x137fc8(0x264)][_0x137fc8(0x3b2)](_0x207830),this[_0x137fc8(0x1aa)][_0x137fc8(0x1bf)](_0x207830,f[_0x137fc8(0x262)]);}[_0x4a4f45(0x205)](_0x7c1cce,_0x23a6bb,_0x13901b,_0x538ecb){const _0x332ac5=_0x4a4f45;let _0x4d60ea=0.2,_0x5c3c49=new t[(_0x332ac5(0x30f))](_0x7c1cce)[_0x332ac5(0x2a9)](_0x4d60ea)['toRgbString'](),_0x4d5a44=new p[(_0x332ac5(0x1cd))](_0x332ac5(0x3c7)+(0x0,t[_0x332ac5(0x28e)])(0x6),{'pointsGroup':_0x23a6bb,'fill':_0x5c3c49||(0x0,p['getColor'])(t[_0x332ac5(0x2ee)][_0x332ac5(0x35a)],_0x4d60ea),'left':_0x13901b,'top':_0x538ecb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x332ac5(0x264)][_0x332ac5(0x3b2)](_0x4d5a44),this[_0x332ac5(0x1aa)]['addObject'](_0x4d5a44,f[_0x332ac5(0x262)]);}[_0x4a4f45(0x31e)](_0x196953){let _0x5f5121=_0x196953[0x0],_0x37c0c9=_0x5f5121[0x0],_0x502ebb=_0x5f5121[0x2],{x:_0x28dfda,y:_0x58375d}=_0x37c0c9,{x:_0x1a96ad,y:_0x4f4137}=_0x502ebb;return{'left':_0x28dfda,'top':_0x58375d,'width':_0x1a96ad-_0x28dfda,'height':_0x4f4137-_0x58375d};}['_getScale'](){const _0x4b45bf=_0x4a4f45;let {scaleX:_0x5c2042,scaleY:_0x167745}=this[_0x4b45bf(0x1aa)][_0x4b45bf(0x18a)]();return Math['max'](_0x5c2042,_0x167745);}};function ge(_0x3c1d8e,_0x493391){const _0xa841bf=_0x4a4f45;if(!_0x493391)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x3c1d8e||_0x3c1d8e[_0xa841bf(0x26c)]!==_0x493391[_0xa841bf(0x26c)]||(_0x3c1d8e[_0xa841bf(0x26c)]===p[_0xa841bf(0x283)][_0xa841bf(0x16f)]||_0x3c1d8e[_0xa841bf(0x26c)]===p[_0xa841bf(0x283)][_0xa841bf(0x26a)])&&_0x3c1d8e[_0xa841bf(0x2db)]!==_0x493391[_0xa841bf(0x2db)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x584844=(0x0,p[_0xa841bf(0x376)])(_0x3c1d8e),_0x130270=(0x0,p[_0xa841bf(0x376)])(_0x493391);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x584844==null||_0x130270==null?_0x584844==null&&_0x130270==null:_0x584844['pageIndex']===_0x130270[_0xa841bf(0x1bb)]&&_0x584844[_0xa841bf(0x235)]===_0x130270['columnGroupId']&&_0x584844[_0xa841bf(0x3df)]===_0x130270[_0xa841bf(0x3df)]};}let N=class extends t['RxDisposable']{constructor(_0x42edbc,_0x242ec9,_0x429d25,_0x495860,_0x18bf59){const _0x152097=_0x4a4f45;super(),this[_0x152097(0x1d5)]=_0x42edbc,this[_0x152097(0x3eb)]=_0x242ec9,this[_0x152097(0x405)]=_0x429d25,this[_0x152097(0x14b)]=_0x495860,this[_0x152097(0x192)]=_0x18bf59,b(this,_0x152097(0x247),[]),b(this,_0x152097(0x138),[]),this[_0x152097(0x332)]();}[_0x4a4f45(0x332)](){const _0x1d92e8=_0x4a4f45;let _0x38f7f9=this[_0x1d92e8(0x1d5)][_0x1d92e8(0x3ad)],_0x58ca86=this[_0x1d92e8(0x3eb)];this[_0x1d92e8(0x2ad)]((0x0,r[_0x1d92e8(0x21b)])([this[_0x1d92e8(0x405)][_0x1d92e8(0x197)](_0x38f7f9),this['_themeService']['currentTheme$']])[_0x1d92e8(0x237)]((0x0,i[_0x1d92e8(0x19c)])(([_0x51d531,_0x114a7c])=>({'skeleton':_0x58ca86[_0x1d92e8(0x182)](),'cursors':[..._0x51d531[_0x1d92e8(0x40c)]()][_0x1d92e8(0x165)](_0x4dc791=>({..._0x4dc791,'color':this[_0x1d92e8(0x192)][_0x1d92e8(0x381)](_0x4dc791[_0x1d92e8(0x3e0)])}))})))[_0x1d92e8(0x195)](_0x11675a=>{const _0x1a9957=_0x1d92e8;if(this[_0x1a9957(0x422)](),_0x11675a){let {skeleton:_0x3e31be,cursors:_0x3f1ea6}=_0x11675a;this[_0x1a9957(0x131)](_0x3e31be,_0x3f1ea6);}})),this[_0x1d92e8(0x1c3)](),this['_initCommandExecutedListener']();}[_0x4a4f45(0x131)](_0x3ad94f,_0x59396f){const _0x40e461=_0x4a4f45;let {scene:_0xa99f9d,mainComponent:_0x5f556c}=this['_context'],_0x1cf36a=_0x59396f[_0x40e461(0x19c)](_0x36e5a5=>new he(_0x36e5a5,_0xa99f9d,_0x3ad94f,_0x5f556c));this['_cursorShapes']=_0x1cf36a,this[_0x40e461(0x138)]=_0x59396f;}[_0x4a4f45(0x3e5)](){const _0x1dbd98=_0x4a4f45;this[_0x1dbd98(0x422)]();let {scene:_0x48ca0f,mainComponent:_0x10cda5}=this[_0x1dbd98(0x1d5)],_0x3475ee=this[_0x1dbd98(0x3eb)]['getSkeleton'](),_0xed9ca9=this[_0x1dbd98(0x138)][_0x1dbd98(0x19c)](_0x45ebfb=>new he(_0x45ebfb,_0x48ca0f,_0x3475ee,_0x10cda5));this[_0x1dbd98(0x247)]=_0xed9ca9;}[_0x4a4f45(0x422)](){const _0x25b4a8=_0x4a4f45;this[_0x25b4a8(0x247)][_0x25b4a8(0x22c)](_0x5267d9=>_0x5267d9[_0x25b4a8(0x288)]()),this[_0x25b4a8(0x247)]=[];}['_initCommandExecutedListener'](){const _0x48c9c0=_0x4a4f45;let _0x143a32=[f[_0x48c9c0(0x257)]['id']];this['disposeWithMe'](this[_0x48c9c0(0x14b)][_0x48c9c0(0x3b7)](_0x42a258=>{const _0x105e9f=_0x48c9c0;_0x143a32[_0x105e9f(0x266)](_0x42a258['id'])&&_0x42a258['params'][_0x105e9f(0x3ad)]===this[_0x105e9f(0x1d5)][_0x105e9f(0x3ad)]&&this[_0x105e9f(0x3e5)]();}));}[_0x4a4f45(0x1c3)](){const _0x5c742a=_0x4a4f45;this[_0x5c742a(0x2ad)]((0x0,t[_0x5c742a(0x353)])(this[_0x5c742a(0x1d5)][_0x5c742a(0x176)]['onTransformChange$'])[_0x5c742a(0x237)]((0x0,i[_0x5c742a(0x3e3)])(_0x18755d=>_0x18755d['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x5c742a(0x310)]),(0x0,i['throttleTime'])(0x10))[_0x5c742a(0x195)](()=>{const _0xc8cf99=_0x5c742a;this[_0xc8cf99(0x3e5)]();}));}};N=S([x(0x1,(0x0,t[_0x4a4f45(0x289)])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(j)),x(0x3,t['ICommandService']),x(0x4,(0x0,t[_0x4a4f45(0x289)])(t['ThemeService']))],N);var _e=class extends p[_0x4a4f45(0x1b4)]{constructor(_0x41186d,_0x17d4e2){const _0x39c818=_0x4a4f45;super(_0x41186d,_0x17d4e2),b(this,_0x39c818(0x29e),void 0x0),b(this,_0x39c818(0x2cc),!0x1),b(this,'_range',void 0x0),b(this,_0x39c818(0x1e7),''),b(this,_0x39c818(0x3c8),'top'),b(this,_0x39c818(0x2b6),void 0x0),b(this,_0x39c818(0x1e6),void 0x0),b(this,_0x39c818(0x293),void 0x0),b(this,_0x39c818(0x33f),0x4),b(this,_0x39c818(0x424),void 0x0),b(this,_0x39c818(0x395),void 0x0),b(this,_0x39c818(0x140),!0x0),b(this,_0x39c818(0x301),0x0),b(this,_0x39c818(0x3b9),_0x39c818(0x31b)),_0x17d4e2&&(this[_0x39c818(0x22a)](_0x17d4e2),_0x17d4e2[_0x39c818(0x3a1)]&&(_0x17d4e2['highlightSecond']??this[_0x39c818(0x33f)])&&this[_0x39c818(0x23c)](_0x17d4e2[_0x39c818(0x338)]??this[_0x39c818(0x33f)])),this[_0x39c818(0x1d9)][_0x39c818(0x204)](()=>this[_0x39c818(0x22a)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x39c818(0x22a)]({'hovered':!0x1}));}[_0x4a4f45(0x2d8)](_0x5981f6){const _0x2cd10e=_0x4a4f45;this[_0x2cd10e(0x301)]=_0x5981f6;}['setShapeProps'](_0x37ae4a){const _0x122aa3=_0x4a4f45;this[_0x122aa3(0x29e)]=_0x37ae4a[_0x122aa3(0x3e0)]??this[_0x122aa3(0x29e)],this[_0x122aa3(0x2cc)]=_0x37ae4a['hovered']??this[_0x122aa3(0x2cc)],this[_0x122aa3(0x32f)]=_0x37ae4a[_0x122aa3(0x355)]??this[_0x122aa3(0x32f)],this[_0x122aa3(0x1e7)]=_0x37ae4a[_0x122aa3(0x3b3)]??this[_0x122aa3(0x1e7)],this[_0x122aa3(0x3c8)]=_0x37ae4a[_0x122aa3(0x219)]??this['_labelPosition'],this['_backgroundColor']=_0x37ae4a[_0x122aa3(0x2e6)]??this[_0x122aa3(0x2b6)],this['_showText']=_0x37ae4a[_0x122aa3(0x14f)]??this[_0x122aa3(0x1e6)],this[_0x122aa3(0x3b9)]=_0x37ae4a['labelHorizontalPosition']??this[_0x122aa3(0x3b9)],_0x37ae4a[_0x122aa3(0x338)]!==void 0x0&&(this[_0x122aa3(0x33f)]=_0x37ae4a[_0x122aa3(0x338)]),_0x37ae4a['highlight']!==void 0x0&&(this[_0x122aa3(0x293)]=_0x37ae4a['highlight']),_0x37ae4a[_0x122aa3(0x1b3)]!==void 0x0&&(this[_0x122aa3(0x301)]=_0x37ae4a[_0x122aa3(0x1b3)]),this[_0x122aa3(0x3fd)]({'width':_0x37ae4a[_0x122aa3(0x215)],'height':_0x37ae4a[_0x122aa3(0x21d)]});}[_0x4a4f45(0x3ac)](_0x150459){const _0x431cb0=_0x4a4f45;let {row:_0x1a77ae,column:_0x5ab0d0}=_0x150459;_0x1a77ae>=this[_0x431cb0(0x32f)][_0x431cb0(0x132)]&&_0x1a77ae<=this[_0x431cb0(0x32f)][_0x431cb0(0x430)]&&_0x5ab0d0>=this[_0x431cb0(0x32f)][_0x431cb0(0x41a)]&&_0x5ab0d0<=this[_0x431cb0(0x32f)][_0x431cb0(0x35d)]?this[_0x431cb0(0x22a)]({'hovered':!0x0}):this[_0x431cb0(0x22a)]({'hovered':!0x1});}[_0x4a4f45(0x23c)](_0x1b8b09){const _0x47274e=_0x4a4f45;this[_0x47274e(0x3cf)](),this[_0x47274e(0x140)]=!0x0,this[_0x47274e(0x395)]=window[_0x47274e(0x230)](()=>{const _0x427118=_0x47274e;this[_0x427118(0x140)]=!this[_0x427118(0x140)],this[_0x427118(0x3be)](!0x0);},0x1f4),this[_0x47274e(0x424)]=window[_0x47274e(0x40f)](()=>{const _0x42336e=_0x47274e;this[_0x42336e(0x3cf)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0x1b8b09*0x3e8);}['_stopBlinking'](){const _0x3c401d=_0x4a4f45;this[_0x3c401d(0x395)]&&=(window[_0x3c401d(0x29c)](this[_0x3c401d(0x395)]),void 0x0),this['_blinkTimer']&&=(window['clearTimeout'](this[_0x3c401d(0x424)]),void 0x0);}[_0x4a4f45(0x137)](_0x5d26d8){return!0x1;}['dispose'](){const _0xe3dd68=_0x4a4f45;this[_0xe3dd68(0x3cf)](),super[_0xe3dd68(0x288)]();}[_0x4a4f45(0x287)](_0x2caef9){const _0x6c7b35=_0x4a4f45;let _0x1f3a9a=this[_0x6c7b35(0x29e)],_0x8e81c6=this[_0x6c7b35(0x2b6)];if(this[_0x6c7b35(0x293)]&&!this[_0x6c7b35(0x140)]&&(_0x1f3a9a=this[_0x6c7b35(0x278)](this[_0x6c7b35(0x29e)]),_0x8e81c6=this[_0x6c7b35(0x2b6)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),p[_0x6c7b35(0x1fe)][_0x6c7b35(0x253)](_0x2caef9,{'width':this['width'],'height':this[_0x6c7b35(0x21d)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x1f3a9a,'evented':!0x1,'fill':_0x8e81c6}),this[_0x6c7b35(0x2cc)]||this[_0x6c7b35(0x1e6)]){_0x2caef9[_0x6c7b35(0x394)]();let _0x37ccac=this[_0x6c7b35(0x3b9)]==='left'?-fe(_0x2caef9,this[_0x6c7b35(0x1e7)]):this[_0x6c7b35(0x215)];_0x2caef9[_0x6c7b35(0x32e)](0x1,0x0,0x0,0x1,_0x37ccac,(this['_labelPosition']===_0x6c7b35(0x1ef)?0x0:-0x14)+(this['_offsetY']??0x0)),me[_0x6c7b35(0x253)](_0x2caef9,{'text':this[_0x6c7b35(0x1e7)],'color':_0x1f3a9a}),_0x2caef9[_0x6c7b35(0x209)]();}}['_getLighterColor'](_0x437556){const _0x2b3e6f=_0x4a4f45;return _0x437556[_0x2b3e6f(0x34d)]('#')?_0x2b3e6f(0x42f)+Number['parseInt'](_0x437556[_0x2b3e6f(0x3d0)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x437556[_0x2b3e6f(0x3d0)](0x3,0x5),0x10)+',\x20'+Number[_0x2b3e6f(0x3da)](_0x437556['slice'](0x5,0x7),0x10)+_0x2b3e6f(0x39d):_0x437556[_0x2b3e6f(0x34d)](_0x2b3e6f(0x364))?_0x437556[_0x2b3e6f(0x33c)](/[\d.]+\)$/g,_0x2b3e6f(0x12e)):_0x437556[_0x2b3e6f(0x34d)](_0x2b3e6f(0x1a3))?_0x437556[_0x2b3e6f(0x33c)](_0x2b3e6f(0x1a3),_0x2b3e6f(0x364))[_0x2b3e6f(0x33c)](')',_0x2b3e6f(0x39d)):_0x437556;}};let P=class extends t['RxDisposable']{constructor(_0x4d1fcd,_0x4f6954,_0x1c735d,_0x33d32e){const _0x5364be=_0x4a4f45;super(),this[_0x5364be(0x1d5)]=_0x4d1fcd,this['_sheetSkeletonManagerService']=_0x4f6954,this[_0x5364be(0x405)]=_0x1c735d,this[_0x5364be(0x192)]=_0x33d32e,b(this,_0x5364be(0x138),new Set()),b(this,_0x5364be(0x268),null),b(this,_0x5364be(0x373),null),this[_0x5364be(0x332)]();}[_0x4a4f45(0x332)](){const _0x290410=_0x4a4f45;this[_0x290410(0x429)][_0x290410(0x3de)][_0x290410(0x237)]((0x0,i[_0x290410(0x42e)])(this[_0x290410(0x3f1)]),(0x0,i[_0x290410(0x3cd)])(_0x31349b=>{const _0x584042=_0x290410;if(_0x31349b){let _0x30d8ef=_0x31349b[_0x584042(0x275)];return(0x0,r['combineLatest'])(this[_0x584042(0x405)][_0x584042(0x197)](this[_0x584042(0x1d5)][_0x584042(0x3ad)]),this[_0x584042(0x192)][_0x584042(0x146)])[_0x584042(0x237)]((0x0,i[_0x584042(0x19c)])(([_0x2998b7,_0x2df2ed])=>{const _0x42182b=_0x584042;let _0x1108a0=new Map();return _0x2998b7[_0x42182b(0x22c)]((_0x4000f0,_0x2c10c2)=>{const _0x404fdd=_0x42182b;if(_0x4000f0[_0x404fdd(0x22d)]===_0x30d8ef){let _0x5258ef={..._0x4000f0};_0x5258ef[_0x404fdd(0x3e0)]=this['_themeService']['getColorFromTheme'](_0x4000f0[_0x404fdd(0x3e0)]),_0x1108a0[_0x404fdd(0x1a1)](_0x2c10c2,_0x5258ef);}}),{'skeleton':_0x31349b,'cursors':_0x1108a0};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x290410(0x195)](({skeleton:_0x442e2c,cursors:_0x1c34df})=>{const _0x1e66b1=_0x290410;this[_0x1e66b1(0x422)](),_0x442e2c&&this[_0x1e66b1(0x131)](_0x442e2c,_0x1c34df);}),this[_0x290410(0x2ad)](this[_0x290410(0x429)]['currentSkeleton$'][_0x290410(0x237)]((0x0,i[_0x290410(0x42e)])(this[_0x290410(0x3f1)]))[_0x290410(0x195)](_0xba16ad=>{const _0x42106d=_0x290410;var _0x372a05;if(_0xba16ad==null)return;(_0x372a05=this[_0x42106d(0x373)])==null||_0x372a05[_0x42106d(0x372)](),this[_0x42106d(0x373)]=null;let {skeleton:_0x3c6c88}=_0xba16ad,{scene:_0x12ed39}=this[_0x42106d(0x1d5)];this['_pointerMoveDisposable']=_0x12ed39[_0x42106d(0x341)]['subscribeEvent']((0x0,t['debounce'])(_0x4a0b32=>{const _0x56b531=_0x42106d;var _0x1d7c24,_0x5f4703;let {offsetX:_0x4d53e1,offsetY:_0x34acc4}=_0x4a0b32,{x:_0x55a8e0,y:_0x3d3c81}=_0x12ed39[_0x56b531(0x31d)](p[_0x56b531(0x2bf)][_0x56b531(0x411)]([_0x4d53e1,_0x34acc4])),{scaleX:_0x5d1640,scaleY:_0x3b33be}=_0x12ed39['getAncestorScale'](),_0x22174d=_0x12ed39[_0x56b531(0x3ed)](p[_0x56b531(0x34b)][_0x56b531(0x1fb)]),_0x1790b0=_0x12ed39[_0x56b531(0x17b)](p[_0x56b531(0x2bf)][_0x56b531(0x411)]([_0x55a8e0,_0x3d3c81]),_0x22174d),_0x26e7f0=_0x3c6c88['getCellIndexByOffset'](_0x4d53e1,_0x34acc4,_0x5d1640,_0x3b33be,_0x1790b0);(((_0x1d7c24=this[_0x56b531(0x268)])==null?void 0x0:_0x1d7c24[_0x56b531(0x378)])!==_0x26e7f0[_0x56b531(0x378)]||((_0x5f4703=this[_0x56b531(0x268)])==null?void 0x0:_0x5f4703['row'])!==_0x26e7f0[_0x56b531(0x1b6)])&&this[_0x56b531(0x138)][_0x56b531(0x22c)](_0x1b9381=>{const _0x5b0c7c=_0x56b531;_0x1b9381[_0x5b0c7c(0x3ac)](_0x26e7f0);});},0x64));})),this[_0x290410(0x2ad)]((0x0,t[_0x290410(0x2be)])(()=>{const _0x40b2cb=_0x290410;var _0x505048;(_0x505048=this['_pointerMoveDisposable'])==null||_0x505048['unsubscribe'](),this[_0x40b2cb(0x373)]=null;}));}[_0x4a4f45(0x131)](_0x5c2b0b,_0x3cfd48){const _0x342ff8=_0x4a4f45;let _0x25a824=this[_0x342ff8(0x429)]['getCurrentSkeleton']();if(!_0x25a824)return;let _0x1e769e=this[_0x342ff8(0x16d)]();if(!_0x1e769e)return;this[_0x342ff8(0x138)]['forEach'](_0x342aa7=>{_0x342aa7['makeDirty']();});let {scene:_0x2be782}=_0x1e769e,_0x3421c1=ve(Array[_0x342ff8(0x241)](_0x3cfd48[_0x342ff8(0x40c)]()))[_0x342ff8(0x19c)](_0x5e268b=>{const _0x40df01=_0x342ff8;let {color:_0x2dc04d,range:_0x9f7cc2,name:_0x148129,selection:_0x2e2157,sheetID:_0x4d19ab}=_0x5e268b,{startColumn:_0x5e1f6d,startRow:_0x27d8c2,endColumn:_0x4e3a93,endRow:_0x130b98}=_0x9f7cc2,_0x2eb2de=(0x0,_[_0x40df01(0x2ca)])(_0x27d8c2,_0x5e1f6d,_0x2be782,_0x25a824),_0x4e8159=(0x0,_[_0x40df01(0x2ca)])(_0x130b98,_0x4e3a93,_0x2be782,_0x25a824),{columnHeaderHeightAndMarginTop:_0xb6c76a}=_0x25a824,{startX:_0x55766c,startY:_0x1ef2bf}=_0x2eb2de,{endX:_0x3a631f,endY:_0x168385}=_0x4e8159,_0xabcaf0=_0x3a631f-_0x55766c,_0x1d4f8f=_0x168385-_0x1ef2bf;return new _e(_0x148129,{'labelPosition':_0x1ef2bf-_0xb6c76a>=0x14?_0x40df01(0x333):_0x40df01(0x1ef),'sheetID':_0x4d19ab,'range':_0x9f7cc2,'color':_0x2dc04d,'name':_0x148129,'selection':_0x2e2157,'left':_0x55766c,'top':_0x1ef2bf,'width':_0xabcaf0,'height':_0x1d4f8f,'evented':!0x1,'zIndex':0x1389});});_0x2be782[_0x342ff8(0x147)](_0x3421c1,0x1),this[_0x342ff8(0x138)]=new Set(_0x3421c1);}[_0x4a4f45(0x422)](){const _0x416f36=_0x4a4f45;var _0x3cae27;(_0x3cae27=this[_0x416f36(0x138)])==null||_0x3cae27[_0x416f36(0x22c)](_0x294592=>_0x294592[_0x416f36(0x288)]());}[_0x4a4f45(0x16d)](){const _0x4b5b8c=_0x4a4f45;return(0x0,_[_0x4b5b8c(0x1f6)])(this['_context'][_0x4b5b8c(0x181)],this[_0x4b5b8c(0x1d5)]);}};P=S([x(0x1,(0x0,t[_0x4a4f45(0x289)])(_['SheetSkeletonManagerService'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(j)),x(0x3,(0x0,t['Inject'])(t[_0x4a4f45(0x260)]))],P);function ve(_0x23ff7d){const _0x2e056b=_0x4a4f45;let _0x4b0f16=new Map();return _0x23ff7d[_0x2e056b(0x22c)](_0x37a9b5=>{const _0x5d4b04=_0x2e056b;if(_0x4b0f16['has'](_0x37a9b5[_0x5d4b04(0x33e)])){let _0x24be63=_0x4b0f16[_0x5d4b04(0x39f)](_0x37a9b5['selection']);_0x24be63[_0x5d4b04(0x3b3)]+=',\x20'+_0x37a9b5[_0x5d4b04(0x3b3)];}else _0x4b0f16[_0x5d4b04(0x1a1)](_0x37a9b5[_0x5d4b04(0x33e)],_0x37a9b5);}),Array[_0x2e056b(0x241)](_0x4b0f16[_0x2e056b(0x40c)]());}function F(_0x2557fe){const _0x165389=_0x4a4f45;return typeof _0x2557fe==_0x165389(0x362)&&!!_0x2557fe;}function ye(_0x3aeaa8){const _0x597b77=_0x4a4f45;return _0x3aeaa8[_0x597b77(0x170)]===l['CollaborationEvent'][_0x597b77(0x32c)]&&_0x597b77(0x18c)in _0x3aeaa8&&F(_0x3aeaa8['data'])&&typeof _0x3aeaa8[_0x597b77(0x18c)][_0x597b77(0x37b)]==_0x597b77(0x2cf)&&typeof _0x3aeaa8[_0x597b77(0x18c)][_0x597b77(0x33e)]==_0x597b77(0x2cf);}function be(_0x962d4c){const _0xb3398=_0x4a4f45;return _0x962d4c[_0xb3398(0x170)]===l['CollaborationEvent'][_0xb3398(0x3e8)]&&_0xb3398(0x18c)in _0x962d4c&&F(_0x962d4c[_0xb3398(0x18c)])&&typeof _0x962d4c[_0xb3398(0x18c)]['memberID']==_0xb3398(0x2cf);}function xe(_0x553dc1,_0x506db6){const _0x23b906=_0x4a4f45;let _0x2c0d9e;try{_0x2c0d9e=JSON[_0x23b906(0x12c)](_0x553dc1);}catch{return null;}if(!F(_0x2c0d9e)||typeof _0x2c0d9e['kind']!=_0x23b906(0x2cf)||typeof _0x2c0d9e['unitId']!=_0x23b906(0x2cf)||typeof _0x2c0d9e[_0x23b906(0x1b9)]!=_0x23b906(0x2cf))return null;let _0x246c4c=typeof _0x2c0d9e[_0x23b906(0x348)]==_0x23b906(0x35f)?_0x2c0d9e['unitType']:_0x506db6;if(_0x246c4c==null)return null;let _0x1fe041=F(_0x2c0d9e[_0x23b906(0x414)])&&typeof _0x2c0d9e[_0x23b906(0x414)]['x']==_0x23b906(0x35f)&&Number[_0x23b906(0x2dd)](_0x2c0d9e[_0x23b906(0x414)]['x'])&&typeof _0x2c0d9e[_0x23b906(0x414)]['y']==_0x23b906(0x35f)&&Number['isFinite'](_0x2c0d9e[_0x23b906(0x414)]['y'])?{'x':_0x2c0d9e['pointer']['x'],'y':_0x2c0d9e[_0x23b906(0x414)]['y']}:null;return{'kind':_0x2c0d9e[_0x23b906(0x428)],'unitType':_0x246c4c,'unitId':_0x2c0d9e[_0x23b906(0x3ad)],'subUnitId':_0x2c0d9e[_0x23b906(0x1b9)],'selectedIds':Array[_0x23b906(0x347)](_0x2c0d9e[_0x23b906(0x361)])?_0x2c0d9e['selectedIds']['filter'](_0x272bc2=>typeof _0x272bc2==_0x23b906(0x2cf)):[],'focusedId':typeof _0x2c0d9e[_0x23b906(0x1e0)]==_0x23b906(0x2cf)?_0x2c0d9e[_0x23b906(0x1e0)]:null,'pointer':_0x1fe041};}function Se(_0x4a793c,_0x391008,_0x250696){const _0x1df1bc=_0x4a4f45;return{'kind':_0x391008,'unitType':_0x4a793c,'unitId':_0x250696['unitId'],'subUnitId':_0x250696['subUnitId'],'selectedIds':Array[_0x1df1bc(0x241)](_0x250696[_0x1df1bc(0x361)]),'focusedId':_0x250696['focusedId'],'pointer':_0x250696[_0x1df1bc(0x414)]?{..._0x250696['pointer']}:null};}let I=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x20b663,_0x1fd7db,_0x2fe18b,_0x509b06,_0x8ec3f7,_0x2886b0){const _0x5e1373=_0x4a4f45;super(),this[_0x5e1373(0x3ad)]=_0x20b663,this[_0x5e1373(0x1e3)]=_0x1fd7db,this['_adapter']=_0x2fe18b,this[_0x5e1373(0x1c2)]=_0x509b06,this['_memberService']=_0x8ec3f7,this[_0x5e1373(0x14b)]=_0x2886b0,b(this,_0x5e1373(0x38b),!0x1),b(this,_0x5e1373(0x284),!0x1);}get[_0x4a4f45(0x348)](){const _0xd05126=_0x4a4f45;return this[_0xd05126(0x1a4)]['unitType'];}[_0x4a4f45(0x288)](){const _0x3914e8=_0x4a4f45;this[_0x3914e8(0x3bd)](),super[_0x3914e8(0x288)]();}[_0x4a4f45(0x42d)](){const _0x1493f5=_0x4a4f45;this[_0x1493f5(0x284)]||(this[_0x1493f5(0x284)]=!0x0,this[_0x1493f5(0x1e3)][_0x1493f5(0x2b4)][_0x1493f5(0x237)]((0x0,r['takeUntil'])(this[_0x1493f5(0x3f1)]))[_0x1493f5(0x195)](_0x15594d=>{const _0x3a4afd=_0x1493f5;if(_0x15594d===e[_0x3a4afd(0x3f2)][_0x3a4afd(0x2e8)]){this[_0x3a4afd(0x38b)]=!0x0;let _0x1fa123=this[_0x3a4afd(0x1a4)][_0x3a4afd(0x365)](this['unitId']);_0x1fa123&&this[_0x3a4afd(0x1f2)](_0x1fa123);}else this[_0x3a4afd(0x38b)]=!0x1,this[_0x3a4afd(0x3bd)]();}),this['_session'][_0x1493f5(0x212)][_0x1493f5(0x237)]((0x0,r[_0x1493f5(0x42e)])(this['dispose$']))[_0x1493f5(0x195)](_0x1cb9ee=>{const _0x5c5cf5=_0x1493f5;ye(_0x1cb9ee)?this['_handleCursorUpdate'](_0x1cb9ee):be(_0x1cb9ee)&&this[_0x5c5cf5(0x17a)](_0x1cb9ee['data']['memberID']);}),this['_adapter']['localPresence$']['pipe']((0x0,r[_0x1493f5(0x3e3)])(_0x299746=>this[_0x1493f5(0x38b)]&&_0x299746['unitId']===this[_0x1493f5(0x3ad)]),(0x0,r['throttle'])(_0x3815c8=>(0x0,r[_0x1493f5(0x322)])(_0x3815c8[_0x1493f5(0x20c)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r['takeUntil'])(this[_0x1493f5(0x3f1)]))[_0x1493f5(0x195)](_0x1faba4=>this[_0x1493f5(0x1f2)](_0x1faba4)));}[_0x4a4f45(0x1f2)](_0xcc52e9){const _0x3fed8c=_0x4a4f45;let _0x18cc98=this['_session'][_0x3fed8c(0x1af)]();if(!_0x18cc98||!this[_0x3fed8c(0x38b)])return;let _0x48e846={'eventID':l[_0x3fed8c(0x243)][_0x3fed8c(0x32c)],'data':{'unitID':this[_0x3fed8c(0x3ad)],'memberID':_0x18cc98,'selection':JSON[_0x3fed8c(0x26b)](Se(this[_0x3fed8c(0x348)],this[_0x3fed8c(0x1a4)][_0x3fed8c(0x3c0)],_0xcc52e9))}};this[_0x3fed8c(0x1e3)]['send'](_0x48e846,this[_0x3fed8c(0x3ad)])[_0x3fed8c(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x3bb)](_0x1cfe8b){const _0x51fb4e=_0x4a4f45;let {memberID:_0x28f4d6,selection:_0x1c6598}=_0x1cfe8b['data'];if(_0x28f4d6===this['_session'][_0x51fb4e(0x1af)]())return;let _0xe45f27=xe(_0x1c6598,this[_0x51fb4e(0x348)]);if(!_0xe45f27||_0xe45f27[_0x51fb4e(0x428)]!==this['_adapter'][_0x51fb4e(0x3c0)]||_0xe45f27[_0x51fb4e(0x348)]!==this[_0x51fb4e(0x348)]||_0xe45f27[_0x51fb4e(0x3ad)]!==this['unitId'])return;let _0x38578e=this[_0x51fb4e(0x374)][_0x51fb4e(0x1e9)](this[_0x51fb4e(0x3ad)],_0x28f4d6),_0x2d6378={'unitId':_0xe45f27['unitId'],'subUnitId':_0xe45f27[_0x51fb4e(0x1b9)],'selectedIds':_0xe45f27[_0x51fb4e(0x361)],'focusedId':_0xe45f27['focusedId'],'pointer':_0xe45f27[_0x51fb4e(0x414)],'memberId':_0x28f4d6,'color':this[_0x51fb4e(0x1c2)][_0x51fb4e(0x330)](_0x28f4d6),'name':(_0x38578e==null?void 0x0:_0x38578e[_0x51fb4e(0x3b3)])??_0x28f4d6};this[_0x51fb4e(0x14b)][_0x51fb4e(0x18d)](T['id'],{'unitType':this[_0x51fb4e(0x348)],'update':{'type':_0x51fb4e(0x1a1),'state':_0x2d6378}})[_0x51fb4e(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x17a)](_0x483d30){const _0x2cb2cd=_0x4a4f45;this[_0x2cb2cd(0x14b)][_0x2cb2cd(0x18d)](T['id'],{'unitType':this[_0x2cb2cd(0x348)],'update':{'type':_0x2cb2cd(0x221),'unitId':this[_0x2cb2cd(0x3ad)],'memberId':_0x483d30}})[_0x2cb2cd(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x3bd)](){const _0x732d07=_0x4a4f45;this[_0x732d07(0x14b)][_0x732d07(0x18d)](T['id'],{'unitType':this[_0x732d07(0x348)],'update':{'type':'clear','unitId':this[_0x732d07(0x3ad)]}})['catch'](()=>void 0x0);}};I=S([x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x412)])),x(0x5,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x1de)]))],I);let L=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x52a63e,_0x45c1,_0x3adea9,_0x4d0b0a){const _0x3190d8=_0x4a4f45;super(),this[_0x3190d8(0x25c)]=_0x52a63e,this[_0x3190d8(0x38f)]=_0x45c1,this[_0x3190d8(0x27b)]=_0x3adea9,this['_adapterRegistry']=_0x4d0b0a,b(this,'_isDisposed',!0x1),b(this,_0x3190d8(0x2c0),new Map()),b(this,_0x3190d8(0x1da),new Map()),b(this,_0x3190d8(0x123),new Map()),this[_0x3190d8(0x332)]();}[_0x4a4f45(0x288)](){const _0x10249e=_0x4a4f45;this['_isDisposed']=!0x0,this['_adapterDisposables'][_0x10249e(0x22c)](_0xd79bd6=>_0xd79bd6[_0x10249e(0x288)]()),this['_adapterDisposables'][_0x10249e(0x337)](),this[_0x10249e(0x2c0)][_0x10249e(0x22c)](_0x373b4c=>_0x373b4c['dispose']()),this[_0x10249e(0x2c0)][_0x10249e(0x337)](),this['_pendingEntities'][_0x10249e(0x337)](),super['dispose']();}[_0x4a4f45(0x332)](){const _0x54bc5f=_0x4a4f45;this[_0x54bc5f(0x312)][_0x54bc5f(0x153)][_0x54bc5f(0x237)]((0x0,r['takeUntil'])(this[_0x54bc5f(0x3f1)]))['subscribe'](_0x4e0503=>this[_0x54bc5f(0x36b)](_0x4e0503));}['_syncAdapters'](_0x88669f){const _0x39bfad=_0x4a4f45;let _0x5f27a0=new Set(_0x88669f[_0x39bfad(0x19c)](_0x30a1d6=>_0x30a1d6[_0x39bfad(0x348)]));this[_0x39bfad(0x123)][_0x39bfad(0x22c)]((_0x385dc9,_0x28584e)=>{const _0x2b3ab4=_0x39bfad;_0x5f27a0[_0x2b3ab4(0x33a)](_0x28584e)||(_0x385dc9['dispose'](),this[_0x2b3ab4(0x123)]['delete'](_0x28584e),this['_disposeEntitiesForType'](_0x28584e));}),_0x88669f[_0x39bfad(0x22c)](_0xf8948b=>{const _0x2673bf=_0x39bfad;this[_0x2673bf(0x123)][_0x2673bf(0x33a)](_0xf8948b[_0x2673bf(0x348)])||this[_0x2673bf(0x1ca)](_0xf8948b);});}['_bindAdapter'](_0x253833){const _0x25fb7e=_0x4a4f45;let _0x5d34d3=new t[(_0x25fb7e(0x403))]();this['_adapterDisposables'][_0x25fb7e(0x1a1)](_0x253833[_0x25fb7e(0x348)],_0x5d34d3),_0x5d34d3[_0x25fb7e(0x307)](_0x253833['activate']()),this[_0x25fb7e(0x25c)][_0x25fb7e(0x413)](_0x253833[_0x25fb7e(0x348)])['forEach'](_0x415a73=>this[_0x25fb7e(0x25a)](_0x415a73[_0x25fb7e(0x370)](),_0x253833)[_0x25fb7e(0x3a0)](()=>void 0x0));let _0x49a3f7=this[_0x25fb7e(0x25c)][_0x25fb7e(0x309)](_0x253833['unitType'])[_0x25fb7e(0x195)](({unit:_0x5bb258})=>this[_0x25fb7e(0x25a)](_0x5bb258[_0x25fb7e(0x370)](),_0x253833)[_0x25fb7e(0x3a0)](()=>void 0x0));_0x5d34d3[_0x25fb7e(0x307)]((0x0,t['toDisposable'])(()=>_0x49a3f7[_0x25fb7e(0x372)]()));let _0x4bd6e3=this[_0x25fb7e(0x25c)][_0x25fb7e(0x3b6)](_0x253833[_0x25fb7e(0x348)])[_0x25fb7e(0x195)](_0x5c88f8=>this[_0x25fb7e(0x3b1)](_0x5c88f8[_0x25fb7e(0x370)]()));_0x5d34d3[_0x25fb7e(0x307)]((0x0,t[_0x25fb7e(0x2be)])(()=>_0x4bd6e3[_0x25fb7e(0x372)]()));}async[_0x4a4f45(0x25a)](_0x1eaeb6,_0x1acb1c){const _0x2d9959=_0x4a4f45;if(this[_0x2d9959(0x2c0)][_0x2d9959(0x33a)](_0x1eaeb6)||this[_0x2d9959(0x1da)][_0x2d9959(0x33a)](_0x1eaeb6))return;let _0x37ee38={};this[_0x2d9959(0x1da)][_0x2d9959(0x1a1)](_0x1eaeb6,_0x37ee38);let _0x523026=await this[_0x2d9959(0x27b)][_0x2d9959(0x331)](_0x1eaeb6)[_0x2d9959(0x3a0)](_0x20c3b1=>{const _0x75fd7d=_0x2d9959;throw this['_pendingEntities'][_0x75fd7d(0x39f)](_0x1eaeb6)===_0x37ee38&&this[_0x75fd7d(0x1da)][_0x75fd7d(0x426)](_0x1eaeb6),_0x20c3b1;});if(this['_isDisposed']||this[_0x2d9959(0x1da)][_0x2d9959(0x39f)](_0x1eaeb6)!==_0x37ee38||this[_0x2d9959(0x312)][_0x2d9959(0x39f)](_0x1acb1c['unitType'])!==_0x1acb1c){this[_0x2d9959(0x1da)][_0x2d9959(0x39f)](_0x1eaeb6)===_0x37ee38&&this[_0x2d9959(0x1da)]['delete'](_0x1eaeb6);return;}let _0x368c4b=this[_0x2d9959(0x38f)][_0x2d9959(0x3ba)](I,_0x1eaeb6,_0x523026,_0x1acb1c);_0x368c4b[_0x2d9959(0x42d)](),this['_pendingEntities']['delete'](_0x1eaeb6),this[_0x2d9959(0x2c0)]['set'](_0x1eaeb6,_0x368c4b);}[_0x4a4f45(0x3b1)](_0x46debd){const _0x23296b=_0x4a4f45;this[_0x23296b(0x1da)][_0x23296b(0x426)](_0x46debd);let _0x5b4c23=this[_0x23296b(0x2c0)]['get'](_0x46debd);_0x5b4c23&&(_0x5b4c23[_0x23296b(0x288)](),this[_0x23296b(0x2c0)][_0x23296b(0x426)](_0x46debd));}[_0x4a4f45(0x40a)](_0x51e3e8){const _0x4efc63=_0x4a4f45;this[_0x4efc63(0x25c)][_0x4efc63(0x413)](_0x51e3e8)[_0x4efc63(0x22c)](_0x461fbe=>this[_0x4efc63(0x1da)][_0x4efc63(0x426)](_0x461fbe[_0x4efc63(0x370)]())),Array[_0x4efc63(0x241)](this[_0x4efc63(0x2c0)]['entries']())['forEach'](([_0x27715d,_0x2f9be6])=>{const _0x56ac8a=_0x4efc63;_0x2f9be6[_0x56ac8a(0x348)]===_0x51e3e8&&this['_disposeEntity'](_0x27715d);});}};L=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x3f7)])),x(0x3,(0x0,t[_0x4a4f45(0x289)])(n['IUnitPresenceUIAdapterRegistry']))],L);const R={'toast':_0x4a4f45(0x321),'actionButton':_0x4a4f45(0x2a4)};let z=class extends t['Disposable']{constructor(_0x18e033,_0x5d0519,_0xdd899d,_0x18b193,_0x3c99ef,_0x1c0d41){const _0x1dc027=_0x4a4f45;super(),this[_0x1dc027(0x33d)]=_0x18e033,this[_0x1dc027(0x17f)]=_0x5d0519,this['_collaborationUIEventService']=_0xdd899d,this[_0x1dc027(0x168)]=_0x18b193,this[_0x1dc027(0x173)]=_0x3c99ef,this[_0x1dc027(0x249)]=_0x1c0d41,b(this,'_conflictNotification',null),b(this,'_retryingConflictCacheUnitIDs',new Set()),this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x4a4f45(0x288)](){const _0x873c24=_0x4a4f45;var _0x12e612;(_0x12e612=this[_0x873c24(0x2a2)])==null||_0x12e612[_0x873c24(0x288)](),this[_0x873c24(0x2a2)]=null,super[_0x873c24(0x288)]();}[_0x4a4f45(0x41b)](){const _0x34b142=_0x4a4f45;this[_0x34b142(0x2ad)](this[_0x34b142(0x33d)]['registerBeforeClose'](()=>{const _0x449bd5=_0x34b142;if(this[_0x449bd5(0x17f)]['saveTaskMap'][_0x449bd5(0x3db)])return this[_0x449bd5(0x249)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x4a4f45(0x214)](){const _0x5cc62f=_0x4a4f45;this[_0x5cc62f(0x2ad)](this[_0x5cc62f(0x2cd)][_0x5cc62f(0x212)][_0x5cc62f(0x195)](_0x4375a1=>{const _0x5bd7b1=_0x5cc62f;_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['OTHER_CLIENT_EDITING']&&this[_0x5bd7b1(0x168)]['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this['_localeService']['t'](_0x5bd7b1(0x26f))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x251)]&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x16b))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x2c1)]&&this[_0x5bd7b1(0x1b8)]({'title':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x2ea)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x5bd7b1(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x2a7)),'onClick':_0x25a6e2=>{const _0x29ca9a=_0x5bd7b1;_0x25a6e2[_0x29ca9a(0x22b)](),window[_0x29ca9a(0x151)][_0x29ca9a(0x232)]();}}}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x3ec)]&&this[_0x5bd7b1(0x3a3)](),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x3f6)]&&_0x4375a1[_0x5bd7b1(0x246)]&&this[_0x5bd7b1(0x398)](_0x4375a1['unitID'],_0x4375a1[_0x5bd7b1(0x313)]??''),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['CONFLICT']&&this['_replaceConflictNotification']({'title':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x41d)),'content':this['_localeService']['t'](_0x5bd7b1(0x25d)),'type':_0x5bd7b1(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this['_localeService']['t'](_0x5bd7b1(0x2a7)),'onClick':_0x4fc7e2=>{const _0x121ddc=_0x5bd7b1;_0x4fc7e2[_0x121ddc(0x22b)](),window[_0x121ddc(0x151)][_0x121ddc(0x232)]();}}}),_0x4375a1['id']===e['CollaborationUIEventId'][_0x5bd7b1(0x2a5)]&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a['MessageType'][_0x5bd7b1(0x179)],'content':this[_0x5bd7b1(0x249)]['t'](_0x4375a1[_0x5bd7b1(0x18c)]||'')}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x19e)]&&this['_messageService']['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this['_localeService']['t'](_0x5bd7b1(0x1e2))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['SOCKET_FAILED']&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x1cc)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x256))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5bd7b1(0x168)]['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x1cc)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x342))});}));}[_0x4a4f45(0x3a3)](){const _0x58a63d=_0x4a4f45;this['_replaceConflictNotification']({'title':this[_0x58a63d(0x249)]['t'](_0x58a63d(0x41d)),'content':this[_0x58a63d(0x249)]['t'](_0x58a63d(0x2d2)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x4a4f45(0x398)](_0x4d3e7d,_0x387412){const _0x5f42de=_0x4a4f45;this['_replaceConflictNotification']({'title':this[_0x5f42de(0x249)]['t'](_0x5f42de(0x41d)),'content':this['_localeService']['t'](_0x5f42de(0x1d1)),'type':_0x5f42de(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x5f42de(0x249)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x2a9a46=>{const _0x14f8c6=_0x5f42de;_0x2a9a46[_0x14f8c6(0x22b)](),this['_retryConflictCacheClear'](_0x4d3e7d,_0x387412);}}});}[_0x4a4f45(0x3a6)](_0x3ec285,_0x4263fa){const _0x4acf1c=_0x4a4f45;let _0x1c71f4=_0x3ec285+':'+(_0x4263fa??'');this[_0x4acf1c(0x416)][_0x4acf1c(0x33a)](_0x1c71f4)||(this[_0x4acf1c(0x416)][_0x4acf1c(0x307)](_0x1c71f4),this['_showConflictProcessingNotification'](),this[_0x4acf1c(0x17f)][_0x4acf1c(0x2ef)](_0x3ec285,_0x4263fa)[_0x4acf1c(0x2b1)](()=>window[_0x4acf1c(0x151)]['reload']())[_0x4acf1c(0x3a0)](()=>this[_0x4acf1c(0x398)](_0x3ec285,_0x4263fa))[_0x4acf1c(0x261)](()=>this[_0x4acf1c(0x416)]['delete'](_0x1c71f4)));}[_0x4a4f45(0x1b8)](_0x1f85f9){const _0x19f842=_0x4a4f45;var _0x2e2be2;(_0x2e2be2=this[_0x19f842(0x2a2)])==null||_0x2e2be2[_0x19f842(0x288)](),this['_conflictNotification']=this[_0x19f842(0x173)][_0x19f842(0x295)](_0x1f85f9);}};z=S([x(0x0,n[_0x4a4f45(0x3b0)]),x(0x1,e[_0x4a4f45(0x36d)]),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x1bc)])),x(0x3,n[_0x4a4f45(0x28b)]),x(0x4,n['INotificationService']),x(0x5,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)]))],z);const B=(0x0,t[_0x4a4f45(0x14a)])('uni.network.url-service');let V=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x148202,_0x2ca1fc,_0x5aec71,_0xa7c55){const _0x351ca7=_0x4a4f45;super(),this[_0x351ca7(0x3d2)]=_0x148202,this[_0x351ca7(0x3fa)]=_0x2ca1fc,this[_0x351ca7(0x14b)]=_0x5aec71,this[_0x351ca7(0x23b)]=_0xa7c55,this[_0x351ca7(0x332)]()[_0x351ca7(0x3a0)](_0x5cdbb7=>this['_logService'][_0x351ca7(0x27f)](_0x351ca7(0x202),_0x5cdbb7));}async[_0x4a4f45(0x332)](){const _0x4a3205=_0x4a4f45;let _0x291e23=this[_0x4a3205(0x3d2)]['getParam'](_0x4a3205(0x181)),_0x202cb0=this[_0x4a3205(0x3d2)][_0x4a3205(0x156)](_0x4a3205(0x148)),_0x212c78=this['_urlService'][_0x4a3205(0x156)](_0x4a3205(0x323));if(!_0x291e23||!_0x202cb0){this[_0x4a3205(0x3fa)]['debug'](_0x4a3205(0x202),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x3abb55=await this['_dataLoaderService'][_0x4a3205(0x12a)](_0x291e23,Number(_0x202cb0),_0x212c78);this[_0x4a3205(0x366)]||_0x3abb55&&_0x3abb55 instanceof t[_0x4a3205(0x3c2)]&&await this['_setupSubUnitSync'](_0x3abb55);}async['_setupSubUnitSync'](_0x19e42d){const _0x1a7541=_0x4a4f45;await this[_0x1a7541(0x327)](_0x19e42d,!0x0),!this[_0x1a7541(0x366)]&&(_0x19e42d[_0x1a7541(0x3fc)][_0x1a7541(0x237)]((0x0,r[_0x1a7541(0x42e)])(this[_0x1a7541(0x3f1)]))[_0x1a7541(0x195)](_0x534508=>{const _0x59949f=_0x1a7541;_0x534508&&this[_0x59949f(0x3a2)](_0x534508);}),this[_0x1a7541(0x3d2)][_0x1a7541(0x216)][_0x1a7541(0x237)]((0x0,r[_0x1a7541(0x42e)])(this[_0x1a7541(0x3f1)]))['subscribe'](()=>{const _0x46025c=_0x1a7541;this[_0x46025c(0x327)](_0x19e42d)[_0x46025c(0x3a0)](_0x106dbf=>this['_logService'][_0x46025c(0x27f)](_0x46025c(0x202),_0x106dbf));}));}[_0x4a4f45(0x3a2)](_0x3b7104,_0x4e086c=!0x1){const _0x54e462=_0x4a4f45;let _0x5b29b5=this[_0x54e462(0x3d2)][_0x54e462(0x156)](_0x54e462(0x323));_0x3b7104[_0x54e462(0x2de)]()!==_0x5b29b5&&this['_urlService']['setParam'](_0x54e462(0x323),_0x3b7104['getSheetId'](),_0x4e086c);}async[_0x4a4f45(0x327)](_0x3c7466,_0x522c3f=!0x1){const _0x38a84a=_0x4a4f45;var _0x2636a7;let _0x277e11=this[_0x38a84a(0x3d2)][_0x38a84a(0x156)](_0x38a84a(0x323));if(!_0x277e11||!_0x3c7466['getSheetBySheetId'](_0x277e11)){let _0x17af8e=_0x3c7466[_0x38a84a(0x2a1)]()[0x0],_0x24b23f=_0x3c7466[_0x38a84a(0x180)](_0x17af8e);if(!_0x24b23f||(this[_0x38a84a(0x3a2)](_0x24b23f,!0x0),this[_0x38a84a(0x366)]))return;await this[_0x38a84a(0x14b)][_0x38a84a(0x18d)](g[_0x38a84a(0x18b)]['id'],{'unitId':_0x3c7466[_0x38a84a(0x370)](),'subUnitId':_0x17af8e});}else(_0x522c3f||((_0x2636a7=_0x3c7466[_0x38a84a(0x16a)]())==null?void 0x0:_0x2636a7[_0x38a84a(0x2de)]())!==_0x277e11)&&await this[_0x38a84a(0x14b)][_0x38a84a(0x18d)](g[_0x38a84a(0x18b)]['id'],{'unitId':_0x3c7466[_0x38a84a(0x370)](),'subUnitId':_0x277e11});}};V=S([x(0x0,B),x(0x1,t[_0x4a4f45(0x3d3)]),x(0x2,t['ICommandService']),x(0x3,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x285)]))],V);let H=class{constructor(_0x4ff303,_0x4859f2){const _0x55de85=_0x4a4f45;this[_0x55de85(0x349)]=_0x4ff303,this['_renderManagerService']=_0x4859f2;}[_0x4a4f45(0x252)](_0x517178){this['_transformUndoRedoStack'](_0x517178),this['_transformPreviousActiveRange'](_0x517178);}['transformRemoteChangeset'](_0x227496){const _0x400f67=_0x4a4f45;let {unitID:_0x196f88}=_0x227496,{redoCache:_0x28041e}=this[_0x400f67(0x133)][_0x400f67(0x3d6)](_0x196f88)[_0x400f67(0x3e1)](f[_0x400f67(0x185)])[_0x400f67(0x1d0)]();if(_0x28041e['length']===0x0)return _0x227496;let _0x176789=t['Tools'][_0x400f67(0x15a)](_0x227496[_0x400f67(0x3f8)][0x0]);for(let _0x4400ad=0x0;_0x4400ad<_0x28041e[_0x400f67(0x18e)];_0x4400ad++){let _0x162437={'id':_0x400f67(0x184),'params':{..._0x28041e[_0x4400ad]}},_0x1b9168=this[_0x400f67(0x349)]['transformMutation'](_0x176789,_0x162437,!0x1);if((0x0,l[_0x400f67(0x2e2)])(_0x1b9168))throw _0x1b9168['error'];_0x176789=_0x1b9168[_0x400f67(0x2e4)];}return{...t['Tools'][_0x400f67(0x15a)](_0x227496),'mutations':[_0x176789]};}[_0x4a4f45(0x2b8)](_0x3f9f12){const _0x307652=_0x4a4f45;let {unitID:_0xee5135}=_0x3f9f12,_0x5cff29=this[_0x307652(0x133)][_0x307652(0x3d6)](_0xee5135)[_0x307652(0x3e1)](f['DocIMEInputManagerService']),{undoCache:_0x14df95,redoCache:_0x35c333}=_0x5cff29['getUndoRedoMutationParamsCache']();if(_0x14df95['length']===0x0||_0x35c333['length']===0x0)return;let _0x52e331=[],_0x59cbdb=[],_0xdca74b=t[_0x307652(0x3e4)][_0x307652(0x15a)](_0x3f9f12['mutations'][0x0]),_0x5246d4=t[_0x307652(0x3e4)][_0x307652(0x15a)](_0x3f9f12[_0x307652(0x3f8)][0x0]);for(let _0xc488f4=_0x14df95['length']-0x1;_0xc488f4>=0x0;_0xc488f4--){let _0x47ae2c={'id':'doc.mutation.rich-text-editing','params':{..._0x14df95[_0xc488f4]}},_0x2e3055={'id':_0x307652(0x184),'params':{..._0x35c333[_0xc488f4]}},_0x404489=this[_0x307652(0x349)]['transformMutation'](_0xdca74b,_0x47ae2c,!0x1),_0x3ec91b=this[_0x307652(0x349)]['transformMutation'](_0x5246d4,_0x2e3055,!0x1);if((0x0,l[_0x307652(0x2e2)])(_0x404489))throw _0x404489[_0x307652(0x27f)];if((0x0,l[_0x307652(0x2e2)])(_0x3ec91b))throw _0x3ec91b['error'];_0x52e331['unshift'](_0x404489[_0x307652(0x2ed)][_0x307652(0x304)]),_0x59cbdb[_0x307652(0x3aa)](_0x3ec91b[_0x307652(0x2ed)][_0x307652(0x304)]),_0xdca74b=_0x404489[_0x307652(0x2e4)],_0x5246d4=_0x3ec91b['m1Prime'];}_0x5cff29[_0x307652(0x294)]({'undoCache':_0x52e331,'redoCache':_0x59cbdb});}['_transformPreviousActiveRange'](_0x4e1b72){const _0x46a475=_0x4a4f45;let {unitID:_0x10c8fb}=_0x4e1b72,_0x393e7b=this[_0x46a475(0x133)][_0x46a475(0x3d6)](_0x10c8fb)['with'](f[_0x46a475(0x185)]),_0x482d10=_0x393e7b['getActiveRange']();if(_0x482d10==null)return;let _0x175c08=[{'id':_0x46a475(0x184),'params':{'unitId':_0x4e1b72[_0x46a475(0x246)],'actions':null,'textRanges':[_0x482d10]}}],_0x1d7b17=this['_transformService']['transformMutationsWithChangeset'](_0x4e1b72,_0x175c08);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x1d7b17))throw _0x1d7b17[_0x46a475(0x27f)];let _0x26cf9b=_0x1d7b17[_0x46a475(0x2ed)][0x0][_0x46a475(0x304)][_0x46a475(0x41c)];Array[_0x46a475(0x347)](_0x26cf9b)&&_0x26cf9b[_0x46a475(0x18e)]&&_0x393e7b[_0x46a475(0x36c)](_0x26cf9b[0x0]);}};H=S([x(0x0,l[_0x4a4f45(0x20a)]),x(0x1,p[_0x4a4f45(0x3f4)])],H);let U=class{constructor(_0x3a2a12,_0x318d25,_0x194436){const _0x20458e=_0x4a4f45;this['_injector']=_0x3a2a12,this[_0x20458e(0x349)]=_0x318d25,this[_0x20458e(0x3cc)]=_0x194436;}[_0x4a4f45(0x1ec)](_0x2bf66e){this['_transformHistoryAndStateStack'](_0x2bf66e);}[_0x4a4f45(0x1ae)](_0xffd64a){const _0x126f48=_0x4a4f45;let {unitID:_0x3590b1}=_0xffd64a,{collaboration:_0x7e588c}=this[_0x126f48(0x3cc)]['getStateCache'](_0x3590b1);if(_0x7e588c[_0x126f48(0x18e)]===0x0)return _0xffd64a;let _0x201d2e=t[_0x126f48(0x3e4)]['deepClone'](_0xffd64a['mutations'][0x0]);for(let _0x19d0c8=0x0;_0x19d0c8<_0x7e588c['length'];_0x19d0c8++){let _0x37ca66={'id':_0x126f48(0x184),'params':{'unitId':_0x7e588c[_0x19d0c8][_0x126f48(0x3ad)],..._0x7e588c[_0x19d0c8]['redoState']}},_0xf9fe2e=this[_0x126f48(0x349)][_0x126f48(0x343)](_0x201d2e,_0x37ca66,!0x1);if((0x0,l[_0x126f48(0x2e2)])(_0xf9fe2e))throw _0xf9fe2e['error'];_0x201d2e=_0xf9fe2e[_0x126f48(0x2e4)];}return{...t['Tools'][_0x126f48(0x15a)](_0xffd64a),'mutations':[_0x201d2e]};}[_0x4a4f45(0x392)](_0x3a155e){const _0x115f17=_0x4a4f45;let {unitID:_0x382fdb}=_0x3a155e,{history:_0x5722ba,collaboration:_0x814124}=this['_docStateChangeManagerService'][_0x115f17(0x224)](_0x382fdb);if(_0x5722ba[_0x115f17(0x18e)]===0x0&&_0x814124[_0x115f17(0x18e)]===0x0)return;let _0x1a6276=[],_0x20184b=[],_0x27f6c3=t[_0x115f17(0x3e4)][_0x115f17(0x15a)](_0x3a155e[_0x115f17(0x3f8)][0x0]),_0x2a4f77=t['Tools'][_0x115f17(0x15a)](_0x3a155e[_0x115f17(0x3f8)][0x0]);for(let _0x223814=_0x5722ba['length']-0x1;_0x223814>=0x0;_0x223814--){let _0xf449ac={'id':_0x115f17(0x184),'params':{'unitId':_0x5722ba[_0x223814][_0x115f17(0x3ad)],..._0x5722ba[_0x223814][_0x115f17(0x254)]}},_0x46e08f={'id':_0x115f17(0x184),'params':{'unitId':_0x5722ba[_0x223814][_0x115f17(0x3ad)],..._0x5722ba[_0x223814][_0x115f17(0x1b2)]}},_0x3e39bc=this[_0x115f17(0x349)]['transformMutation'](_0x27f6c3,_0xf449ac,!0x1),_0x3590af=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x2a4f77,_0x46e08f,!0x1);if((0x0,l[_0x115f17(0x2e2)])(_0x3e39bc))throw _0x3e39bc['error'];if((0x0,l[_0x115f17(0x2e2)])(_0x3590af))throw _0x3590af[_0x115f17(0x27f)];_0x1a6276[_0x115f17(0x3aa)]({..._0x5722ba[_0x223814],'undoState':_0x3e39bc['m2Prime']['params'],'redoState':_0x3590af[_0x115f17(0x2ed)][_0x115f17(0x304)]}),_0x27f6c3=_0x3e39bc[_0x115f17(0x2e4)],_0x2a4f77=_0x3590af[_0x115f17(0x2e4)];}_0x27f6c3=t['Tools']['deepClone'](_0x3a155e[_0x115f17(0x3f8)][0x0]),_0x2a4f77=t[_0x115f17(0x3e4)][_0x115f17(0x15a)](_0x3a155e['mutations'][0x0]);for(let _0x4c3546=_0x814124[_0x115f17(0x18e)]-0x1;_0x4c3546>=0x0;_0x4c3546--){let _0xe83481={'id':_0x115f17(0x184),'params':{'unitId':_0x814124[_0x4c3546]['unitId'],..._0x814124[_0x4c3546][_0x115f17(0x254)]}},_0x258cd7={'id':_0x115f17(0x184),'params':{'unitId':_0x814124[_0x4c3546][_0x115f17(0x3ad)],..._0x814124[_0x4c3546]['redoState']}},_0xffaa02=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x27f6c3,_0xe83481,!0x1),_0x57b208=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x2a4f77,_0x258cd7,!0x1);if((0x0,l['isTransformMutationFailure'])(_0xffaa02))throw _0xffaa02['error'];if((0x0,l[_0x115f17(0x2e2)])(_0x57b208))throw _0x57b208['error'];_0x20184b[_0x115f17(0x3aa)]({..._0x814124[_0x4c3546],'undoState':_0xffaa02[_0x115f17(0x2ed)][_0x115f17(0x304)],'redoState':_0x57b208['m2Prime']['params']}),_0x27f6c3=_0xffaa02[_0x115f17(0x2e4)],_0x2a4f77=_0x57b208[_0x115f17(0x2e4)];}this[_0x115f17(0x3cc)][_0x115f17(0x418)](_0x382fdb,{'history':_0x1a6276,'collaboration':_0x20184b});}};U=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x1,l['ITransformService']),x(0x2,(0x0,t['Inject'])(d[_0x4a4f45(0x2d3)]))],U);let W=class{constructor(_0x3409b3,_0x4a7848){const _0x97e219=_0x4a4f45;this[_0x97e219(0x21c)]=_0x3409b3,this[_0x97e219(0x349)]=_0x4a7848;}[_0x4a4f45(0x408)](_0xe277f5){const _0x331135=_0x4a4f45;var _0x211b0c;let _0x259d04=this[_0x331135(0x21c)][_0x331135(0x1a5)]()??[],_0x3eec76=this[_0x331135(0x21c)]['getSelectionInfo']();if(_0x259d04[_0x331135(0x18e)]===0x0||_0x3eec76==null)return null;let _0x5418b8=_0xe277f5[_0x331135(0x246)],_0x408d1e=[{'id':_0x331135(0x184),'params':{'unitId':_0x5418b8,'actions':null,'textRanges':_0x259d04}}],_0x3358b6=this[_0x331135(0x349)][_0x331135(0x2fd)](_0xe277f5,_0x408d1e);if(!(0x0,l[_0x331135(0x34e)])(_0x3358b6))throw _0x3358b6[_0x331135(0x27f)];let _0x94cd98=(_0x211b0c=_0x3358b6[_0x331135(0x2ed)][0x0])==null?void 0x0:_0x211b0c[_0x331135(0x304)],_0x51688b=_0x94cd98&&typeof _0x94cd98==_0x331135(0x362)&&'textRanges'in _0x94cd98?_0x94cd98[_0x331135(0x41c)]:null;if(!Te(_0x51688b))return null;let _0x3b6b7f=Ce(_0xe277f5['mutations'][_0x331135(0x402)](_0x219425=>G(_0x219425[_0x331135(0x304)]))?_0x51688b[_0x331135(0x3e3)](_0xc96a9e=>!('tableId'in _0xc96a9e)):_0x51688b,{..._0x3eec76,'options':_0x3eec76[_0x331135(0x21a)]?{..._0x3eec76[_0x331135(0x21a)],'wholeDocument':!0x1}:void 0x0}),_0x40272b={'unitId':_0x5418b8,'subUnitId':_0x5418b8};this[_0x331135(0x21c)][_0x331135(0x409)](_0x3b6b7f,_0x40272b);let _0x3cf833=!0x0;return{'commit':()=>{_0x3cf833=!0x1;},'rollback':()=>{const _0x2eed0f=_0x331135;_0x3cf833&&(_0x3cf833=!0x1,this[_0x2eed0f(0x21c)][_0x2eed0f(0x409)](_0x3eec76,_0x40272b));}};}};function _0xd371(_0x3fa9bc,_0x4056a6){_0x3fa9bc=_0x3fa9bc-0x123;const _0x55abbb=_0x55ab();let _0xd371fe=_0x55abbb[_0x3fa9bc];return _0xd371fe;}W=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(d[_0x4a4f45(0x14d)])),x(0x1,l['ITransformService'])],W);function Ce(_0x527871,_0x1563cd){const _0x5c518b=_0x4a4f45;let _0x2a3490=[],_0x11596e=[];for(let _0x7a829b of _0x527871)we(_0x7a829b)?_0x11596e[_0x5c518b(0x3b2)](_0x7a829b):_0x2a3490['push'](_0x7a829b);return{..._0x1563cd,'textRanges':_0x2a3490,'rectRanges':_0x11596e};}function we(_0xea31d8){const _0x3edfd0=_0x4a4f45;return _0x3edfd0(0x377)in _0xea31d8;}function Te(_0x22b595){const _0x398376=_0x4a4f45;return Array['isArray'](_0x22b595)&&_0x22b595[_0x398376(0x40e)](_0x370c36=>typeof _0x370c36==_0x398376(0x362)&&!!_0x370c36&&_0x398376(0x1c5)in _0x370c36&&'endOffset'in _0x370c36);}function G(_0x207e9c){const _0x2f9841=_0x4a4f45;return _0x207e9c==='tableSource'?!0x0:Array['isArray'](_0x207e9c)?_0x207e9c[_0x2f9841(0x402)](_0x4190a8=>G(_0x4190a8)):!_0x207e9c||typeof _0x207e9c!=_0x2f9841(0x362)?!0x1:Object['values'](_0x207e9c)[_0x2f9841(0x402)](_0x4ef745=>G(_0x4ef745));}let K=class extends t[_0x4a4f45(0x423)]{constructor(_0x514a16,_0x1165ec,_0x4728f1,_0x141df9,_0x5435a9,_0x77ff1,_0x31c8cc){const _0x3bfcef=_0x4a4f45;super(),this[_0x3bfcef(0x3d5)]=_0x514a16,this[_0x3bfcef(0x354)]=_0x1165ec,this[_0x3bfcef(0x174)]=_0x4728f1,this[_0x3bfcef(0x421)]=_0x141df9,this[_0x3bfcef(0x196)]=_0x5435a9,this['_messageService']=_0x77ff1,this[_0x3bfcef(0x249)]=_0x31c8cc,b(this,_0x3bfcef(0x356),new r['BehaviorSubject'](e[_0x3bfcef(0x24e)]['NOT_COLLAB'])),this[_0x3bfcef(0x400)]();}[_0x4a4f45(0x400)](){const _0x31e03b=_0x4a4f45;this[_0x31e03b(0x2ad)](this[_0x31e03b(0x3d5)][_0x31e03b(0x190)][_0x31e03b(0x195)](_0x3f6ce1=>{const _0x3cf5f2=_0x31e03b;_0x3f6ce1 instanceof e[_0x3cf5f2(0x273)]&&_0x3f6ce1[_0x3cf5f2(0x1ab)]({'onTransformIME':_0x5d77c1=>this[_0x3cf5f2(0x354)][_0x3cf5f2(0x252)](_0x5d77c1),'onTransformState':_0x95d58c=>this[_0x3cf5f2(0x174)][_0x3cf5f2(0x1ec)](_0x95d58c),'onPrepareTransformSelections':_0x4a8f4f=>this['_docTransformSelectionsService'][_0x3cf5f2(0x408)](_0x4a8f4f),'onSyncEditingCollabCursor':_0x524b9c=>this[_0x3cf5f2(0x196)][_0x3cf5f2(0x1e5)](_0x524b9c),'onTransformRemoteChangesetByIMECache':_0x49a091=>this['_docTransformIMECacheService'][_0x3cf5f2(0x1ae)](_0x49a091),'onTransformRemoteChangesetByStateCache':_0x1ce727=>this[_0x3cf5f2(0x174)]['transformRemoteChangeset'](_0x1ce727)});}));}};K=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x21e)])),x(0x1,(0x0,t['Inject'])(H)),x(0x2,(0x0,t[_0x4a4f45(0x289)])(U)),x(0x3,(0x0,t['Inject'])(W)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(O)),x(0x5,n[_0x4a4f45(0x28b)]),x(0x6,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)]))],K);let q=class extends t[_0x4a4f45(0x423)]{constructor(_0x204f3b,_0x1fc7f0,_0xfafa10,_0xb6a38b){const _0x3d318a=_0x4a4f45;super(),this['_injector']=_0x204f3b,this['_httpService']=_0x1fc7f0,this[_0x3d318a(0x3fa)]=_0xfafa10,this[_0x3d318a(0x171)]=_0xb6a38b,b(this,'_memberID',void 0x0),this[_0x3d318a(0x332)]();}[_0x4a4f45(0x332)](){const _0x2d3fa1=_0x4a4f45;this[_0x2d3fa1(0x427)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x2d3fa1(0x2d5)]();}['_initUserListener'](){const _0x3d5e9b=_0x4a4f45;this[_0x3d5e9b(0x2ad)](this[_0x3d5e9b(0x171)][_0x3d5e9b(0x380)][_0x3d5e9b(0x195)](_0x1be1e3=>{const _0x4b8538=_0x3d5e9b;this[_0x4b8538(0x17d)]=_0x1be1e3==null?void 0x0:_0x1be1e3[_0x4b8538(0x37b)];}));}['_initWindowErrorListener'](){const _0x5dfc1a=_0x4a4f45;let _0x1830b0=_0x27a435=>{const _0x488aad=_0xd371;var _0x18232d;this['_uploadLog'](_0x488aad(0x27f),'[Window\x20Error]:\x20'+_0x27a435[_0x488aad(0x306)]+_0x488aad(0x13c)+_0x27a435[_0x488aad(0x3fb)]+':'+_0x27a435[_0x488aad(0x1c9)]+':'+_0x27a435[_0x488aad(0x126)]+'\x0a'+(((_0x18232d=_0x27a435[_0x488aad(0x27f)])==null?void 0x0:_0x18232d[_0x488aad(0x15f)])||''));};window[_0x5dfc1a(0x3c4)]('error',_0x1830b0),this[_0x5dfc1a(0x2ad)](()=>{const _0x5c4e70=_0x5dfc1a;window[_0x5c4e70(0x2f1)](_0x5c4e70(0x27f),_0x1830b0);});}[_0x4a4f45(0x15e)](){const _0x2dcec5=_0x4a4f45;let _0x1f3a38=_0x304541=>{const _0x247c63=_0xd371;this[_0x247c63(0x308)](_0x247c63(0x27f),_0x247c63(0x2fc)+_0x304541[_0x247c63(0x3a8)]);};window[_0x2dcec5(0x3c4)]('unhandledrejection',_0x1f3a38),this[_0x2dcec5(0x2ad)](()=>{window['removeEventListener']('unhandledrejection',_0x1f3a38);});}[_0x4a4f45(0x2ac)](){const _0x8aba54=_0x4a4f45;let _0x53395a=this[_0x8aba54(0x3fa)][_0x8aba54(0x27f)][_0x8aba54(0x172)](this[_0x8aba54(0x3fa)]);this[_0x8aba54(0x3fa)]['error']=(..._0x41a7b8)=>{const _0x36e8f8=_0x8aba54;let _0x5e5e5d=_0x41a7b8[_0x36e8f8(0x19c)](_0x539260=>_0x539260 instanceof Error?_0x539260[_0x36e8f8(0x306)]+'\x0a'+_0x539260[_0x36e8f8(0x15f)]:String(_0x539260))[_0x36e8f8(0x26d)]('\x20');this[_0x36e8f8(0x308)]('error',_0x36e8f8(0x3c9)+_0x5e5e5d),_0x53395a(..._0x41a7b8);},this[_0x8aba54(0x2ad)](()=>{const _0x2b13e6=_0x8aba54;this['_logService'][_0x2b13e6(0x27f)]=_0x53395a;});}[_0x4a4f45(0x308)](_0x5ee3a8,_0x334508){const _0x1a7c14=_0x4a4f45;try{let _0x1131fa={'userId':this[_0x1a7c14(0x17d)],'logLabel':_0x5ee3a8,'content':_0x334508};this[_0x1a7c14(0x2ce)][_0x1a7c14(0x1e1)](_0x1a7c14(0x178),{'body':_0x1131fa})[_0x1a7c14(0x3a0)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t['Inject'])(t['Injector'])),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m[_0x4a4f45(0x19d)])),x(0x2,t[_0x4a4f45(0x3d3)]),x(0x3,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x3f7)]))],q);function Ee({state$:_0x34c713}){const _0x4cb41b=_0x4a4f45;let _0x3491fd=(0x0,n[_0x4cb41b(0x36a)])(_0x34c713,null,!0x0);return _0x3491fd?(0x0,c[_0x4cb41b(0x311)])(_0x4cb41b(0x363),{'data-u-comp':_0x4cb41b(0x208),'role':_0x4cb41b(0x3ab),'className':_0x4cb41b(0x13d),'children':[(0x0,c[_0x4cb41b(0x12b)])(o['WarningIcon'],{'className':_0x4cb41b(0x223)}),(0x0,c[_0x4cb41b(0x12b)])(_0x4cb41b(0x2e3),{'children':_0x3491fd[_0x4cb41b(0x25b)]}),(0x0,c[_0x4cb41b(0x12b)])(a[_0x4cb41b(0x2d6)],{'size':_0x4cb41b(0x2d1),'variant':_0x4cb41b(0x2af),'onClick':()=>window[_0x4cb41b(0x151)][_0x4cb41b(0x232)](),'children':_0x3491fd['refreshLabel']})]}):null;}const De=_0x4a4f45(0x3d4);let J=class extends t[_0x4a4f45(0x423)]{constructor(_0xe11f2d,_0x439ea,_0x54259b,_0x146f61,_0x2cd888,_0x4a994e){const _0x7c7a1e=_0x4a4f45;super(),this[_0x7c7a1e(0x3ff)]=_0xe11f2d,this[_0x7c7a1e(0x168)]=_0x439ea,this[_0x7c7a1e(0x249)]=_0x54259b,this[_0x7c7a1e(0x38f)]=_0x146f61,this['_urlService']=_0x4a994e,b(this,_0x7c7a1e(0x2a8),new r[(_0x7c7a1e(0x154))](null)),b(this,_0x7c7a1e(0x129),new Set()),b(this,_0x7c7a1e(0x3a4),new Map()),b(this,_0x7c7a1e(0x1c4),new Map()),b(this,_0x7c7a1e(0x234),this['_timeoutState$'][_0x7c7a1e(0x34c)]());let _0x5966ac=()=>(0x0,s[_0x7c7a1e(0x2ba)])(Ee,{'state$':this['timeoutState$']});this[_0x7c7a1e(0x2ad)](_0x2cd888['registerComponent'](n[_0x7c7a1e(0x2f5)][_0x7c7a1e(0x386)],()=>(0x0,n[_0x7c7a1e(0x282)])(_0x5966ac,this['_injector']))),this[_0x7c7a1e(0x2ad)](this['_snapshotLoadingService'][_0x7c7a1e(0x183)]['subscribe'](_0xe2d9cf=>{const _0x4a0cb5=_0x7c7a1e;this[_0x4a0cb5(0x1c4)]=_0xe2d9cf,_0xe2d9cf[_0x4a0cb5(0x22c)](_0x29bca2=>this[_0x4a0cb5(0x3a7)](_0x29bca2));})),this[_0x7c7a1e(0x2ad)](this[_0x7c7a1e(0x3d2)]['urlChange$'][_0x7c7a1e(0x195)](()=>{const _0x583d09=_0x7c7a1e;this[_0x583d09(0x1c4)][_0x583d09(0x22c)](_0x28738f=>this['_updateMessage'](_0x28738f));}));}[_0x4a4f45(0x288)](){const _0x34a479=_0x4a4f45;this[_0x34a479(0x129)][_0x34a479(0x22c)](_0x126896=>this[_0x34a479(0x168)][_0x34a479(0x221)](_0x126896)),this[_0x34a479(0x129)][_0x34a479(0x337)](),this[_0x34a479(0x3a4)]['forEach'](({timeoutId:_0x584748})=>clearTimeout(_0x584748)),this[_0x34a479(0x3a4)]['clear'](),this[_0x34a479(0x2a8)]['complete'](),super['dispose']();}['_updateMessage'](_0x5b668e){const _0x65bdbd=_0x4a4f45;let _0x4c5896=''+De+_0x5b668e['unitId'];_0x5b668e['stage']===l[_0x65bdbd(0x244)]['COMPLETE']?(this[_0x65bdbd(0x1b0)](_0x5b668e[_0x65bdbd(0x3ad)]),this['_clearTimeoutState'](_0x5b668e[_0x65bdbd(0x3ad)]),this['_messageService'][_0x65bdbd(0x221)](_0x4c5896),this['_messageIds'][_0x65bdbd(0x426)](_0x4c5896)):this[_0x65bdbd(0x2e0)](_0x5b668e[_0x65bdbd(0x3ad)])?_0x5b668e['stage']===l[_0x65bdbd(0x244)][_0x65bdbd(0x3e6)]?(this[_0x65bdbd(0x1b0)](_0x5b668e[_0x65bdbd(0x3ad)]),this[_0x65bdbd(0x316)](_0x5b668e['unitId']),this['_messageService'][_0x65bdbd(0x295)]({'id':_0x4c5896,'type':a[_0x65bdbd(0x345)]['Error'],'content':this[_0x65bdbd(0x249)]['t'](_0x65bdbd(0x256))}),this['_messageIds'][_0x65bdbd(0x426)](_0x4c5896)):_0x5b668e[_0x65bdbd(0x2d7)]!==l[_0x65bdbd(0x244)][_0x65bdbd(0x31f)]||_0x5b668e['totalBlocks']<=0xa?(this['_clearBlockProgressWatch'](_0x5b668e['unitId']),this[_0x65bdbd(0x168)][_0x65bdbd(0x221)](_0x4c5896),this[_0x65bdbd(0x129)]['delete'](_0x4c5896)):this[_0x65bdbd(0x396)](_0x5b668e)||(this[_0x65bdbd(0x168)][_0x65bdbd(0x295)]({'id':_0x4c5896,'type':a['MessageType'][_0x65bdbd(0x20d)],'duration':0x1/0x0,'content':this[_0x65bdbd(0x249)]['t'](_0x65bdbd(0x29f))+'\x20'+_0x5b668e['loadedBlocks']+'/'+_0x5b668e['totalBlocks']}),this['_messageIds'][_0x65bdbd(0x307)](_0x4c5896)):(this['_clearBlockProgressWatch'](_0x5b668e[_0x65bdbd(0x3ad)]),this[_0x65bdbd(0x316)](_0x5b668e[_0x65bdbd(0x3ad)]),this['_messageService'][_0x65bdbd(0x221)](_0x4c5896),this['_messageIds']['delete'](_0x4c5896));}[_0x4a4f45(0x396)](_0x40842f){const _0x32ddf2=_0x4a4f45;let _0x30397f=this[_0x32ddf2(0x3a4)][_0x32ddf2(0x39f)](_0x40842f[_0x32ddf2(0x3ad)]);if((_0x30397f==null?void 0x0:_0x30397f[_0x32ddf2(0x38a)])===_0x40842f['loadedBlocks'])return _0x30397f[_0x32ddf2(0x2f6)];this['_clearBlockProgressWatch'](_0x40842f[_0x32ddf2(0x3ad)]);let _0x7e779c=setTimeout(()=>{const _0x362ee7=_0x32ddf2;let _0x24e1b1=this['_blockProgressWatches'][_0x362ee7(0x39f)](_0x40842f[_0x362ee7(0x3ad)]);if(!_0x24e1b1||_0x24e1b1['timeoutId']!==_0x7e779c)return;_0x24e1b1[_0x362ee7(0x2f6)]=!0x0;let _0x51ef51=''+De+_0x40842f[_0x362ee7(0x3ad)];this[_0x362ee7(0x168)][_0x362ee7(0x221)](_0x51ef51),this[_0x362ee7(0x129)][_0x362ee7(0x426)](_0x51ef51),this[_0x362ee7(0x2a8)]['next']({'unitId':_0x40842f[_0x362ee7(0x3ad)],'content':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x40842f[_0x362ee7(0x38a)]),String(_0x40842f['totalBlocks'])),'refreshLabel':this[_0x362ee7(0x249)]['t'](_0x362ee7(0x2a7))});},0xea60);return this[_0x32ddf2(0x3a4)][_0x32ddf2(0x1a1)](_0x40842f['unitId'],{'loadedBlocks':_0x40842f['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x7e779c}),!0x1;}['_clearBlockProgressWatch'](_0x2a7776){const _0x194038=_0x4a4f45;let _0x2a0af7=this[_0x194038(0x3a4)]['get'](_0x2a7776);_0x2a0af7&&(clearTimeout(_0x2a0af7[_0x194038(0x367)]),this[_0x194038(0x3a4)]['delete'](_0x2a7776),this[_0x194038(0x316)](_0x2a7776));}[_0x4a4f45(0x316)](_0x575b0a){const _0x1c1f65=_0x4a4f45;var _0x199725;((_0x199725=this[_0x1c1f65(0x2a8)]['value'])==null?void 0x0:_0x199725[_0x1c1f65(0x3ad)])===_0x575b0a&&this[_0x1c1f65(0x2a8)][_0x1c1f65(0x13e)](null);}[_0x4a4f45(0x2e0)](_0x5b22a2){const _0x5d828a=_0x4a4f45;let _0x145a66=this[_0x5d828a(0x3d2)][_0x5d828a(0x156)](_0x5d828a(0x181));return!_0x145a66||_0x145a66===_0x5b22a2;}};J=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(l['SnapshotLoadingService'])),x(0x1,n['IMessageService']),x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)])),x(0x3,(0x0,t['Inject'])(t[_0x4a4f45(0x26e)])),x(0x4,n[_0x4a4f45(0x222)]),x(0x5,B)],J);let Y=class extends t[_0x4a4f45(0x423)]{constructor(_0x38af05,_0x2dc3d9,_0x36af13,_0xcdab5,_0x56a748){const _0x5ac1ad=_0x4a4f45;var _0x32231e;super(),this[_0x5ac1ad(0x281)]=_0x38af05,this['_localStorageService']=_0x2dc3d9,this[_0x5ac1ad(0x305)]=_0x36af13,this[_0x5ac1ad(0x3fa)]=_0xcdab5,this[_0x5ac1ad(0x1a9)]=_0x56a748,b(this,_0x5ac1ad(0x3b5),new Map()),b(this,'_saveTaskMap',new Map()),b(this,_0x5ac1ad(0x23f),new Map()),b(this,_0x5ac1ad(0x36e),!0x1),this[_0x5ac1ad(0x36e)]=!((_0x32231e=this[_0x5ac1ad(0x281)][_0x5ac1ad(0x189)](e[_0x5ac1ad(0x369)]))!=null&&_0x32231e[_0x5ac1ad(0x149)]);}[_0x4a4f45(0x157)](){const _0x4b7296=_0x4a4f45;this[_0x4b7296(0x36e)]=!0x0;}[_0x4a4f45(0x2ae)](){const _0x29f0b1=_0x4a4f45;this[_0x29f0b1(0x36e)]=!0x1;}get[_0x4a4f45(0x15b)](){const _0x39d93d=_0x4a4f45;let _0x1efe4d=new Map(this[_0x39d93d(0x40b)]);return this[_0x39d93d(0x23f)]['forEach']((_0x1a46d6,_0x1dc761)=>{const _0x17a24f=_0x39d93d;_0x1efe4d[_0x17a24f(0x33a)](_0x1dc761)||_0x1efe4d[_0x17a24f(0x1a1)](_0x1dc761,0x0);}),_0x1efe4d;}[_0x4a4f45(0x288)](){const _0x214dad=_0x4a4f45;this[_0x214dad(0x366)]||(super[_0x214dad(0x288)](),this[_0x214dad(0x36e)]=!0x0,this[_0x214dad(0x1fa)]()[_0x214dad(0x3a0)](_0x12499a=>this[_0x214dad(0x3fa)][_0x214dad(0x27f)](_0x12499a)));}async[_0x4a4f45(0x1d4)](_0x8eedc4,_0x346ab6){const _0x22ee99=_0x4a4f45;if(this[_0x22ee99(0x36e)])return null;let _0x171d88=this[_0x22ee99(0x3d7)](_0x346ab6),_0x2da613=await this[_0x22ee99(0x23e)]['getItem']((0x0,e[_0x22ee99(0x163)])(_0x8eedc4,_0x171d88));return(_0x2da613==null?void 0x0:_0x2da613[_0x22ee99(0x246)])===_0x8eedc4&&this[_0x22ee99(0x32a)](_0x2da613[_0x22ee99(0x313)])===_0x171d88?_0x2da613:null;}async[_0x4a4f45(0x201)](_0x532db,_0x41a133,_0x263768){const _0x13c7a4=_0x4a4f45;let _0x1dd45b=this[_0x13c7a4(0x3d7)](_0x263768),_0x211b00=(0x0,e[_0x13c7a4(0x163)])(_0x532db,_0x1dd45b),_0x42d93c=this[_0x13c7a4(0x23e)][_0x13c7a4(0x317)](_0x211b00,{..._0x41a133,'unitID':_0x532db,'userId':_0x1dd45b});return this[_0x13c7a4(0x1c8)](_0x211b00,_0x42d93c),!!await _0x42d93c;}async[_0x4a4f45(0x3c3)](_0xba4426,_0x3f0a7c,_0x6124d){const _0x259e93=_0x4a4f45;let _0xe3e556=this[_0x259e93(0x3d7)](_0x6124d),_0x2d31d0=(0x0,e['getLocalCacheKey'])(_0xba4426,_0xe3e556),_0x223aeb=this[_0x259e93(0x3b5)][_0x259e93(0x39f)](_0x2d31d0)??await this[_0x259e93(0x23e)][_0x259e93(0x303)](_0x2d31d0);if(!_0x223aeb||this[_0x259e93(0x32a)](_0x223aeb[_0x259e93(0x313)])!==_0xe3e556||_0x223aeb[_0x259e93(0x246)]!==_0xba4426)return;let _0x5e21e9=Date[_0x259e93(0x144)](),_0x725eda=new Date(_0x5e21e9)[_0x259e93(0x166)]();await this[_0x259e93(0x23e)][_0x259e93(0x317)](_0x2d31d0+_0x259e93(0x1e4)+_0x5e21e9,{'reason':_0x3f0a7c,'createdAt':_0x725eda,'data':_0x223aeb});}async[_0x4a4f45(0x2ef)](_0x6f9556,_0x45da4c){const _0x213d66=_0x4a4f45;let _0x3da780=this[_0x213d66(0x3d7)](_0x45da4c),_0x4e2637=(0x0,e[_0x213d66(0x163)])(_0x6f9556,_0x3da780),_0x346b32=this['_saveTaskMap'][_0x213d66(0x39f)](_0x4e2637);_0x346b32!==void 0x0&&(window[_0x213d66(0x187)](_0x346b32),this[_0x213d66(0x40b)][_0x213d66(0x426)](_0x4e2637));let _0x4c4cbb=this[_0x213d66(0x23f)]['get'](_0x4e2637);_0x4c4cbb&&await Promise[_0x213d66(0x35c)](_0x4c4cbb),this[_0x213d66(0x3b5)][_0x213d66(0x426)](_0x4e2637),await this[_0x213d66(0x23e)][_0x213d66(0x2df)](_0x4e2637);}[_0x4a4f45(0x24f)](_0x2b9b3a,_0x2d95ef,_0xaffed1,_0x482034,_0x38aa9f){const _0x1db4bb=_0x4a4f45;if(this[_0x1db4bb(0x366)])return;let _0x371fbb=this[_0x1db4bb(0x3d7)](_0x38aa9f),_0x45ac2e=(0x0,e[_0x1db4bb(0x163)])(_0x2b9b3a,_0x371fbb),_0x49146e=this['_revisionService'][_0x1db4bb(0x233)](_0x2b9b3a);this[_0x1db4bb(0x3b5)][_0x1db4bb(0x1a1)](_0x45ac2e,{'unitID':_0x2b9b3a,'userId':_0x371fbb,'type':_0x2d95ef,'awaitingChangeset':_0xaffed1,'mutations':_0x482034,'rev':_0x49146e}),this[_0x1db4bb(0x40b)][_0x1db4bb(0x33a)](_0x45ac2e)||this[_0x1db4bb(0x3bf)](_0x45ac2e);}[_0x4a4f45(0x3d7)](_0x14c7a0=((()=>{const _0x2e3b58=_0x4a4f45;var _0x3cfe14;return(_0x3cfe14=this[_0x2e3b58(0x1a9)][_0x2e3b58(0x37d)]())==null?void 0x0:_0x3cfe14[_0x2e3b58(0x236)];})())){const _0x3570d1=_0x4a4f45;return this[_0x3570d1(0x32a)](_0x14c7a0);}['_normalizeUserId'](_0x688ba4){return _0x688ba4===''||_0x688ba4==null?void 0x0:_0x688ba4;}[_0x4a4f45(0x3bf)](_0x570d61){const _0x1282df=_0x4a4f45;let _0x4c4e03=this[_0x1282df(0x324)]();_0x4c4e03===0x0?this['_saveCache'](_0x570d61)[_0x1282df(0x3a0)](_0x47fe71=>this['_logService'][_0x1282df(0x27f)](_0x47fe71)):this[_0x1282df(0x40b)]['set'](_0x570d61,window[_0x1282df(0x40f)](()=>{const _0x146f1e=_0x1282df;this[_0x146f1e(0x207)](_0x570d61)[_0x146f1e(0x3a0)](_0x4a59d6=>this[_0x146f1e(0x3fa)][_0x146f1e(0x27f)](_0x4a59d6));},_0x4c4e03));}[_0x4a4f45(0x324)](){const _0xd45e81=_0x4a4f45;return this[_0xd45e81(0x281)][_0xd45e81(0x189)](e[_0xd45e81(0x24b)])??e['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x259b3e){const _0x35664b=_0x4a4f45;let _0x506f35=this['_saveTaskMap'][_0x35664b(0x39f)](_0x259b3e);_0x506f35!==void 0x0&&window['clearTimeout'](_0x506f35);let _0x1caa40=this[_0x35664b(0x3b5)][_0x35664b(0x39f)](_0x259b3e);if(!_0x1caa40)return Promise['resolve']();let _0x10caf6=this['_activeSaveTaskMap'][_0x35664b(0x39f)](_0x259b3e),_0x157ddb=Promise[_0x35664b(0x35c)](_0x10caf6?[..._0x10caf6]:[])[_0x35664b(0x2b1)](()=>this['_localStorageService'][_0x35664b(0x317)](_0x259b3e,_0x1caa40))[_0x35664b(0x2b1)](()=>{const _0x1dbdcd=_0x35664b;_0x506f35!==void 0x0&&this[_0x1dbdcd(0x40b)]['get'](_0x259b3e)===_0x506f35&&(this[_0x1dbdcd(0x40b)][_0x1dbdcd(0x426)](_0x259b3e),!this[_0x1dbdcd(0x366)]&&this[_0x1dbdcd(0x3b5)]['get'](_0x259b3e)!==_0x1caa40&&this['_scheduleSaving'](_0x259b3e));});return this[_0x35664b(0x1c8)](_0x259b3e,_0x157ddb),_0x157ddb;}['_trackActiveSaveTask'](_0x59d6cc,_0xc82421){const _0x49ec83=_0x4a4f45;let _0x2aedb3=this[_0x49ec83(0x23f)]['get'](_0x59d6cc);_0x2aedb3||(_0x2aedb3=new Set(),this['_activeSaveTaskMap'][_0x49ec83(0x1a1)](_0x59d6cc,_0x2aedb3)),_0x2aedb3[_0x49ec83(0x307)](_0xc82421);let _0x2a1df6=()=>{const _0x6c355d=_0x49ec83;_0x2aedb3['delete'](_0xc82421),_0x2aedb3[_0x6c355d(0x3db)]===0x0&&this[_0x6c355d(0x23f)][_0x6c355d(0x426)](_0x59d6cc);};_0xc82421[_0x49ec83(0x2b1)](_0x2a1df6,_0x2a1df6);}async[_0x4a4f45(0x1fa)](){const _0x194cf7=_0x4a4f45;let _0x357335=[...this['_saveTaskMap'][_0x194cf7(0x334)]()][_0x194cf7(0x19c)](_0x361fa1=>this[_0x194cf7(0x207)](_0x361fa1));for(let _0x4fbb41 of this[_0x194cf7(0x23f)][_0x194cf7(0x40c)]())_0x357335[_0x194cf7(0x3b2)](...[..._0x4fbb41][_0x194cf7(0x19c)](_0x2b5178=>_0x2b5178['then'](()=>void 0x0)));await Promise[_0x194cf7(0x28a)](_0x357335);}};Y=S([x(0x0,t[_0x4a4f45(0x382)]),x(0x1,t[_0x4a4f45(0x24d)]),x(0x2,(0x0,t['Inject'])(l[_0x4a4f45(0x34a)])),x(0x3,t[_0x4a4f45(0x3d3)]),x(0x4,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x231)]))],Y);var Oe=class extends t[_0x4a4f45(0x423)]{get['online'](){const _0x4219e0=_0x4a4f45;return this[_0x4219e0(0x248)]['getValue']();}constructor(){const _0x3b9828=_0x4a4f45;super(),b(this,_0x3b9828(0x248),new r[(_0x3b9828(0x154))](navigator[_0x3b9828(0x15d)])),b(this,_0x3b9828(0x38d),this[_0x3b9828(0x248)][_0x3b9828(0x34c)]()),this[_0x3b9828(0x134)](),this['_listenToOnlineEvent']();}['dispose'](){const _0x327a5b=_0x4a4f45;super[_0x327a5b(0x288)](),this[_0x327a5b(0x248)][_0x327a5b(0x2c6)]();}[_0x4a4f45(0x401)](){const _0x3d3313=_0x4a4f45;this[_0x3d3313(0x2ad)]((0x0,r[_0x3d3313(0x42a)])((0x0,r[_0x3d3313(0x15c)])(window,_0x3d3313(0x1fd)),(0x0,r[_0x3d3313(0x15c)])(window,_0x3d3313(0x3ce)),(0x0,r[_0x3d3313(0x15c)])(document,_0x3d3313(0x217))[_0x3d3313(0x237)]((0x0,r['map'])(()=>document[_0x3d3313(0x42b)]===_0x3d3313(0x30a)),(0x0,r['filter'])(_0x307779=>_0x307779)))[_0x3d3313(0x237)]((0x0,r[_0x3d3313(0x3e3)])(()=>navigator[_0x3d3313(0x15d)]))['subscribe'](()=>this[_0x3d3313(0x248)][_0x3d3313(0x13e)](!0x0)));}['_listenToOfflineEvent'](){const _0x5622ff=_0x4a4f45;this[_0x5622ff(0x2ad)]((0x0,r[_0x5622ff(0x15c)])(window,_0x5622ff(0x1ce))[_0x5622ff(0x195)](()=>this[_0x5622ff(0x248)][_0x5622ff(0x13e)](!0x1)));}},ke=class extends t[_0x4a4f45(0x2a6)]{constructor(){const _0x403981=_0x4a4f45;super(),b(this,'urlChange$',void 0x0),this[_0x403981(0x216)]=(0x0,r['fromEvent'])(window,'popstate')[_0x403981(0x237)]((0x0,r[_0x403981(0x42e)])(this['dispose$']),(0x0,r[_0x403981(0x155)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r['mapTo'])(void 0x0));}[_0x4a4f45(0x1dc)](_0x43e528,_0x3b641f,_0x24bba9=!0x1){const _0x46e856=_0x4a4f45;let _0x4430f5=new URL(window[_0x46e856(0x151)][_0x46e856(0x152)]);_0x4430f5[_0x46e856(0x18f)]['set'](_0x43e528,_0x3b641f),_0x24bba9?window['history'][_0x46e856(0x199)]('','',_0x4430f5[_0x46e856(0x1d6)]()):window[_0x46e856(0x2ab)]['pushState']('','',_0x4430f5[_0x46e856(0x1d6)]());}[_0x4a4f45(0x371)](_0x5a2a28,_0x330b4b=!0x1){const _0x1d0f6d=_0x4a4f45;let _0x6f2d8a=new URL(window[_0x1d0f6d(0x151)][_0x1d0f6d(0x152)]);_0x6f2d8a[_0x1d0f6d(0x18f)][_0x1d0f6d(0x426)](_0x5a2a28),_0x330b4b?window[_0x1d0f6d(0x2ab)][_0x1d0f6d(0x199)]('','',_0x6f2d8a['toString']()):window[_0x1d0f6d(0x2ab)][_0x1d0f6d(0x13a)]('','',_0x6f2d8a[_0x1d0f6d(0x1d6)]());}[_0x4a4f45(0x156)](_0x2004f5){const _0x3052bc=_0x4a4f45;return new URL(window[_0x3052bc(0x151)]['href'])['searchParams']['get'](_0x2004f5)??void 0x0;}};let X=class extends t[_0x4a4f45(0x1c0)]{constructor(_0x3da32f=se,_0x2aafa4,_0x43a89e,_0x579ff0,_0x4ee110){const _0x23420d=_0x4a4f45;super(),this[_0x23420d(0x2b9)]=_0x3da32f,this[_0x23420d(0x133)]=_0x2aafa4,this['_injector']=_0x43a89e,this[_0x23420d(0x281)]=_0x579ff0,this[_0x23420d(0x14b)]=_0x4ee110;let {..._0x403682}=(0x0,t[_0x23420d(0x42a)])({},se,this[_0x23420d(0x2b9)]);this[_0x23420d(0x281)][_0x23420d(0x19f)](_0x23420d(0x263),_0x403682);}['onStarting'](){const _0x3dd58a=_0x4a4f45;this['_registerDependencies'](),this['disposeWithMe'](this[_0x3dd58a(0x14b)][_0x3dd58a(0x1df)](T)),this['_initDependencies']();}['onRendered'](){const _0x165ac2=_0x4a4f45;this[_0x165ac2(0x336)]();}['_registerDependencies'](){const _0x10b9df=_0x4a4f45;var _0x2be72d;let _0x2874c3=[[D],[B,{'useClass':ke}],[m[_0x10b9df(0x141)],{'useClass':m['WebSocketService']}],[e[_0x10b9df(0x36d)],{'useClass':Y}],[e['INetworkConditionService'],{'useClass':Oe}],[C],[z],[j],[L],[J]];this[_0x10b9df(0x2b9)][_0x10b9df(0x325)]!==!0x1&&_0x2874c3[_0x10b9df(0x3b2)]([V]),this['_config'][_0x10b9df(0x228)]!==!0x1&&_0x2874c3['push']([W],[H],[U],[O],[K],[E]),this[_0x10b9df(0x2b9)][_0x10b9df(0x161)]&&_0x2874c3[_0x10b9df(0x3b2)]([q]),(0x0,t[_0x10b9df(0x210)])(this[_0x10b9df(0x38f)],(0x0,t[_0x10b9df(0x387)])(_0x2874c3,(_0x2be72d=this[_0x10b9df(0x2b9)])==null?void 0x0:_0x2be72d[_0x10b9df(0x3c1)]));}[_0x4a4f45(0x336)](){const _0x357469=_0x4a4f45;this[_0x357469(0x2b9)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x357469(0x2ad)](this[_0x357469(0x133)][_0x357469(0x229)](t[_0x357469(0x397)][_0x357469(0x19b)],[N])),this[_0x357469(0x2ad)](this['_renderManagerService'][_0x357469(0x229)](t[_0x357469(0x397)]['UNIVER_SHEET'],[P]));}[_0x4a4f45(0x368)](){const _0x17dd17=_0x4a4f45;(0x0,t['touchDependencies'])(this[_0x17dd17(0x38f)],[[j],[L],[C],[z],[J]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x325)]!==!0x1&&(0x0,t[_0x17dd17(0x20b)])(this['_injector'],[[V]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x228)]!==!0x1&&(0x0,t[_0x17dd17(0x20b)])(this[_0x17dd17(0x38f)],[[K],[E]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x161)]&&(0x0,t[_0x17dd17(0x20b)])(this[_0x17dd17(0x38f)],[[q]]);}};b(X,'pluginName',_0x4a4f45(0x39c)),b(X,'packageName',ae),b(X,_0x4a4f45(0x2d9),oe),X=S([(0x0,t['DependentOn'])(u[_0x4a4f45(0x1c7)],d[_0x4a4f45(0x271)],p[_0x4a4f45(0x193)],m['UniverNetworkPlugin'],l[_0x4a4f45(0x200)],f[_0x4a4f45(0x2f3)],e[_0x4a4f45(0x1fc)]),x(0x1,p[_0x4a4f45(0x3f4)]),x(0x2,(0x0,t['Inject'])(t[_0x4a4f45(0x26e)])),x(0x3,t[_0x4a4f45(0x382)]),x(0x4,t['ICommandService'])],X);let Z=class extends e[_0x4a4f45(0x2c3)]{constructor(_0x2f849c,_0x3c2cc0,_0x1cf1a4,_0x3bc697,_0x4e4ce5){const _0x4f7d50=_0x4a4f45;super(_0x2f849c,_0x3c2cc0,_0x1cf1a4,_0x3bc697,_0x4e4ce5),b(this,_0x4f7d50(0x2f9),new r[(_0x4f7d50(0x31c))]()),this['disposeWithMe'](()=>{const _0x5d0b03=_0x4f7d50;this['_dispose$']['next'](),this[_0x5d0b03(0x2f9)][_0x5d0b03(0x2c6)]();});}async[_0x4a4f45(0x404)](_0x197413){const _0x435a58=_0x4a4f45;let _0x199427=await this[_0x435a58(0x238)](),_0x3fb6a6=this[_0x435a58(0x2aa)](_0x197413,_0x199427);return this[_0x435a58(0x286)](_0x3fb6a6);}[_0x4a4f45(0x2aa)](_0x195acc,_0x42683d){const _0x535021=_0x4a4f45;let _0x4dfc92=typeof window>'u'?new URL(_0x195acc):new URL(_0x195acc,window[_0x535021(0x151)]['origin']);_0x4dfc92['searchParams'][_0x535021(0x1a1)](_0x535021(0x27e),_0x42683d);let _0x294e38=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x535021(0x151)][_0x535021(0x13f)]);return _0x294e38[_0x535021(0x39f)](_0x535021(0x1a7))&&_0x4dfc92[_0x535021(0x18f)]['set'](_0x535021(0x1a7),_0x294e38[_0x535021(0x39f)](_0x535021(0x1a7))),_0x4dfc92[_0x535021(0x1d6)]();}async[_0x4a4f45(0x238)](){const _0x60113d=_0x4a4f45;var _0x55b8a8;let _0x2f0cd1=this[_0x60113d(0x281)]['getConfig'](e[_0x60113d(0x369)]),_0x22bf8a=(_0x2f0cd1==null?void 0x0:_0x2f0cd1[_0x60113d(0x406)])??e[_0x60113d(0x1d2)];return((_0x55b8a8=(await(0x0,r['firstValueFrom'])(this['_httpService'][_0x60113d(0x1f7)](_0x60113d(0x2e1),_0x22bf8a,{'headers':{'Content-Type':'application/json'}})[_0x60113d(0x237)]((0x0,r[_0x60113d(0x3e3)])(_0x21eac0=>_0x21eac0['type']===m[_0x60113d(0x14e)]['Response']),(0x0,r[_0x60113d(0x291)])(0x4e20),(0x0,r[_0x60113d(0x42e)])(this['_dispose$']))))['body'])==null?void 0x0:_0x55b8a8['ticket'])??'';}};Z=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(t['Injector'])),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m[_0x4a4f45(0x19d)])),x(0x2,t[_0x4a4f45(0x382)]),x(0x3,t[_0x4a4f45(0x3d3)]),x(0x4,l[_0x4a4f45(0x27d)])],Z);let Q=class extends t[_0x4a4f45(0x423)]{constructor(_0x5ed176,_0x2e34b3,_0x5baab8){const _0x3e69e6=_0x4a4f45;super(),this[_0x3e69e6(0x12d)]=_0x5ed176,this[_0x3e69e6(0x2ce)]=_0x2e34b3,this[_0x3e69e6(0x281)]=_0x5baab8;}async['runOnServer'](_0x2e2e0e,_0x562788,_0xbceb11,..._0x21d732){const _0x26f5ea=_0x4a4f45;let _0x47f7c7=this[_0x26f5ea(0x12d)][_0x26f5ea(0x1a8)]();if(!_0x47f7c7)throw Error(_0x26f5ea(0x3a9));let _0xb9fd=(this[_0x26f5ea(0x281)][_0x26f5ea(0x189)](e[_0x26f5ea(0x28c)])??e[_0x26f5ea(0x2c9)])+'/'+_0x2e2e0e+_0x26f5ea(0x3d1)+_0x562788,_0x23c991={'scriptId':_0x2e2e0e,'runId':new URL(window[_0x26f5ea(0x151)][_0x26f5ea(0x152)])[_0x26f5ea(0x18f)][_0x26f5ea(0x39f)](_0x26f5ea(0x1a7))??'','function':_0x562788,'unitId':_0x47f7c7['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x21d732),'invokeId':_0xbceb11['invokeId']??'','executionId':_0xbceb11[_0x26f5ea(0x2da)]??''};try{let _0x18bea5=await this['_httpService']['post'](_0xb9fd,{'body':_0x23c991});return _0x18bea5['body'][_0x26f5ea(0x27f)]&&_0x18bea5[_0x26f5ea(0x279)]['error'][_0x26f5ea(0x3af)]!==v[_0x26f5ea(0x3ee)]['OK']?_0x26f5ea(0x12f):_0x18bea5[_0x26f5ea(0x279)]['result'];}catch{return _0x26f5ea(0x12f);}}};Q=S([x(0x0,t[_0x4a4f45(0x1ff)]),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m['HTTPService'])),x(0x2,t[_0x4a4f45(0x382)])],Q);const Ae=0x7530,$=_0x4a4f45(0x1cb);var je=class extends t[_0x4a4f45(0x423)]{constructor(){const _0xa1375f=_0x4a4f45;super(),b(this,_0xa1375f(0x41e),(0x0,t[_0xa1375f(0x28e)])()),b(this,_0xa1375f(0x3dd),new Set()),b(this,_0xa1375f(0x32d),new Map()),b(this,'_heartbeatTimer',null),b(this,_0xa1375f(0x3d8),new Map()),b(this,_0xa1375f(0x250),new Map()),this[_0xa1375f(0x332)]();}[_0x4a4f45(0x288)](){const _0x28ce97=_0x4a4f45;super[_0x28ce97(0x288)](),this[_0x28ce97(0x3d8)]['forEach']((_0x493197,_0x5e414b)=>this[_0x28ce97(0x255)](_0x5e414b)),this['_heartbeatTimer']&&window[_0x28ce97(0x29c)](this[_0x28ce97(0x3ea)]);}[_0x4a4f45(0x39b)](_0x16d92d){const _0x364090=_0x4a4f45;return this[_0x364090(0x1f1)](_0x16d92d)[_0x364090(0x237)]((0x0,r[_0x364090(0x1ea)])());}[_0x4a4f45(0x1d8)](_0x3aceeb){const _0x489911=_0x4a4f45;this[_0x489911(0x3dd)][_0x489911(0x3db)]===0x0&&this['_scheduleHeartbeat'](),this[_0x489911(0x3dd)]['add'](_0x3aceeb),this[_0x489911(0x3c6)]({'type':0x0,'memberID':this[_0x489911(0x41e)],'unitIDs':[_0x3aceeb],'isForwarded':!0x1});}[_0x4a4f45(0x1f8)](_0x1e5e2f){const _0xf60f93=_0x4a4f45;this[_0xf60f93(0x3dd)][_0xf60f93(0x426)](_0x1e5e2f),this[_0xf60f93(0x3dd)][_0xf60f93(0x3db)]===0x0&&this[_0xf60f93(0x3ea)]&&window['clearInterval'](this[_0xf60f93(0x3ea)]);}[_0x4a4f45(0x332)](){const _0x30c3ae=_0x4a4f45;this[_0x30c3ae(0x2ad)]((0x0,t['toDisposable'])((0x0,r[_0x30c3ae(0x15c)])(window,_0x30c3ae(0x1cf))[_0x30c3ae(0x195)](_0x48276c=>{const _0x126b7e=_0x30c3ae;if(_0x48276c[_0x126b7e(0x3d9)]!==$||!_0x48276c['newValue'])return;let _0x25506a=JSON[_0x126b7e(0x12c)](_0x48276c[_0x126b7e(0x389)]);this['_handleEvent'](_0x25506a);}))),window[_0x30c3ae(0x3c4)](_0x30c3ae(0x227),()=>this[_0x30c3ae(0x3c6)]({'type':0x1,'memberID':this[_0x30c3ae(0x41e)],'unitIDs':Array[_0x30c3ae(0x241)](this[_0x30c3ae(0x3dd)])}));}['_handleEvent'](_0xb75273){const _0x3b1e1d=_0x4a4f45;switch(_0xb75273['type']){case 0x0:this[_0x3b1e1d(0x29d)](_0xb75273);break;case 0x1:this[_0x3b1e1d(0x37a)](_0xb75273);break;case 0x2:this['_handleHeartbeatEvent'](_0xb75273);}}[_0x4a4f45(0x29d)](_0x2fbe3a){const _0x4df67f=_0x4a4f45;let {unitIDs:_0x2a1b71,memberID:_0x763abd,isForwarded:_0x3b45d6}=_0x2fbe3a;_0x2a1b71[_0x4df67f(0x22c)](_0x7b44e5=>{const _0x1af68e=_0x4df67f;if(!_0x3b45d6&&this['_unitOnClients']['has'](_0x7b44e5)&&this['_ensureSubject'](_0x7b44e5)['next'](e[_0x1af68e(0x175)][_0x1af68e(0x239)]),!this['_unitOnClients'][_0x1af68e(0x33a)](_0x7b44e5)||!this[_0x1af68e(0x32d)][_0x1af68e(0x39f)](_0x7b44e5)[_0x1af68e(0x33a)](_0x763abd)){let _0x1ae58f=this['_unitOnClients']['get'](_0x7b44e5)||new Set();_0x1ae58f[_0x1af68e(0x307)](_0x763abd),this['_unitOnClients'][_0x1af68e(0x1a1)](_0x7b44e5,_0x1ae58f),this[_0x1af68e(0x3b8)](_0x763abd);}}),_0x3b45d6||this[_0x4df67f(0x3c6)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5ae461){const _0x4cef02=_0x4a4f45;this[_0x4cef02(0x255)](_0x5ae461);let _0x1f27ff=window[_0x4cef02(0x40f)](()=>{const _0x4f2b4c=_0x4cef02;this[_0x4f2b4c(0x32d)][_0x4f2b4c(0x22c)](_0x3f9149=>{_0x3f9149['delete'](_0x5ae461);});},Ae*0x2);this['_clearOtherTimers']['set'](_0x5ae461,_0x1f27ff);}[_0x4a4f45(0x255)](_0x121b13){const _0x17d4b4=_0x4a4f45;if(this['_clearOtherTimers'][_0x17d4b4(0x33a)](_0x121b13)){let _0x29c707=this['_clearOtherTimers']['get'](_0x121b13);_0x29c707&&window[_0x17d4b4(0x187)](_0x29c707),this['_clearOtherTimers'][_0x17d4b4(0x1a1)](_0x121b13,null);}}[_0x4a4f45(0x37a)](_0x3793c0){const _0x425d7a=_0x4a4f45;let {memberID:_0x256bf3,unitIDs:_0x929b38}=_0x3793c0;_0x929b38[_0x425d7a(0x22c)](_0x4b1607=>{const _0x27f2c8=_0x425d7a;var _0x1ef224;let _0x202303=this['_unitOnClients'][_0x27f2c8(0x39f)](_0x4b1607);_0x202303&&(_0x202303[_0x27f2c8(0x426)](_0x256bf3),(_0x1ef224=this[_0x27f2c8(0x1f1)](_0x4b1607))==null||_0x1ef224[_0x27f2c8(0x13e)](_0x202303[_0x27f2c8(0x3db)]===0x0?e[_0x27f2c8(0x175)]['NO_OTHER_CLIENTS_EDITING']:e[_0x27f2c8(0x175)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x256bf3);}[_0x4a4f45(0x357)](_0x172f34){this['_scheduleClearOtherTimer'](_0x172f34['memberID']);}['_send'](_0x3ca964){const _0x526402=_0x4a4f45;localStorage['setItem']($,JSON[_0x526402(0x26b)](_0x3ca964));}[_0x4a4f45(0x130)](){const _0x348af6=_0x4a4f45;this['_heartbeatTimer']=window[_0x348af6(0x230)](()=>{const _0x8189fb=_0x348af6;this[_0x8189fb(0x3c6)]({'type':0x2,'memberID':this[_0x8189fb(0x41e)]});},Ae);}[_0x4a4f45(0x1f1)](_0x23f14c){const _0x44d1fc=_0x4a4f45;return this[_0x44d1fc(0x250)][_0x44d1fc(0x33a)](_0x23f14c)||this[_0x44d1fc(0x250)]['set'](_0x23f14c,new r['BehaviorSubject'](e['UnitStatus'][_0x44d1fc(0x3e7)])),this[_0x44d1fc(0x250)][_0x44d1fc(0x39f)](_0x23f14c);}};Object[_0x4a4f45(0x2e7)](exports,_0x4a4f45(0x162),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x4a4f45(0x265),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x4a4f45(0x344)]=B,Object[_0x4a4f45(0x2e7)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x4a4f45(0x339)]=_e,Object[_0x4a4f45(0x2e7)](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x4a4f45(0x1ad)]=je;
|
|
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;
|