@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504261606 → 0.6.10-nightly.202504281607

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x149927=_0x66b6;(function(_0x349fbb,_0xa00975){const _0x1d5495=_0x66b6,_0x300187=_0x349fbb();while(!![]){try{const _0x5a8313=-parseInt(_0x1d5495(0x169))/0x1+parseInt(_0x1d5495(0x16c))/0x2+parseInt(_0x1d5495(0x16f))/0x3+-parseInt(_0x1d5495(0x170))/0x4*(-parseInt(_0x1d5495(0x167))/0x5)+parseInt(_0x1d5495(0x166))/0x6*(parseInt(_0x1d5495(0x163))/0x7)+-parseInt(_0x1d5495(0x16d))/0x8+parseInt(_0x1d5495(0x16a))/0x9*(-parseInt(_0x1d5495(0x164))/0xa);if(_0x5a8313===_0xa00975)break;else _0x300187['push'](_0x300187['shift']());}catch(_0x48af61){_0x300187['push'](_0x300187['shift']());}}}(_0x47b2,0x26fef));function _0x66b6(_0x3f3286,_0x3fb199){const _0x47b296=_0x47b2();return _0x66b6=function(_0x66b62d,_0x396104){_0x66b62d=_0x66b62d-0x163;let _0x3a79f9=_0x47b296[_0x66b62d];return _0x3a79f9;},_0x66b6(_0x3f3286,_0x3fb199);}function _0x47b2(){const _0x1f70e4=['171MPmdBW','@univerjs/core/facade','15956FwEuaf','138992BGzgeM','extend','127092unlRKB','409232zwDJQR','170891KIRHjy','61340iabvTP','RemoteUniscriptService','6CxMaTS','15OyyOxP','@univerjs-pro/collaboration-client-ui','88032VUovYF'];_0x47b2=function(){return _0x1f70e4;};return _0x47b2();}const t=require(_0x149927(0x168)),e=require(_0x149927(0x16b));class c extends e['FUniver']{['runOnServer'](_0x3a8acc,_0x441e73,..._0xa5c0d2){const _0x632606=_0x149927;return this['_injector']['get'](t[_0x632606(0x165)])['runOnServer'](_0x3a8acc,_0x441e73,{},..._0xa5c0d2);}}e['FUniver'][_0x149927(0x16e)](c);
1
+ 'use strict';function _0x3cc4(){const _0x332819=['_injector','runOnServer','get','extend','6xxxane','@univerjs-pro/collaboration-client-ui','1258943YLhlmK','29724iGoCTV','54582Yedzlg','240MasHbf','707007bctTUL','27036btCpkG','@univerjs/core/facade','1964352wXvHVb','150VJwusZ','FUniver','126997gQUsBL'];_0x3cc4=function(){return _0x332819;};return _0x3cc4();}function _0x3ddc(_0x875c49,_0x3a43d2){const _0x3cc41a=_0x3cc4();return _0x3ddc=function(_0x3ddcbc,_0x59751e){_0x3ddcbc=_0x3ddcbc-0x12f;let _0x5c429f=_0x3cc41a[_0x3ddcbc];return _0x5c429f;},_0x3ddc(_0x875c49,_0x3a43d2);}const _0x5d0173=_0x3ddc;(function(_0x246ca7,_0x2a4bcd){const _0x2dc6e5=_0x3ddc,_0xc1970=_0x246ca7();while(!![]){try{const _0x1b69cc=parseInt(_0x2dc6e5(0x137))/0x1+-parseInt(_0x2dc6e5(0x12f))/0x2+-parseInt(_0x2dc6e5(0x131))/0x3+parseInt(_0x2dc6e5(0x13f))/0x4*(-parseInt(_0x2dc6e5(0x135))/0x5)+parseInt(_0x2dc6e5(0x13c))/0x6*(parseInt(_0x2dc6e5(0x13e))/0x7)+parseInt(_0x2dc6e5(0x134))/0x8+-parseInt(_0x2dc6e5(0x132))/0x9*(-parseInt(_0x2dc6e5(0x130))/0xa);if(_0x1b69cc===_0x2a4bcd)break;else _0xc1970['push'](_0xc1970['shift']());}catch(_0x46d5c8){_0xc1970['push'](_0xc1970['shift']());}}}(_0x3cc4,0x21d64));const t=require(_0x5d0173(0x13d)),e=require(_0x5d0173(0x133));class c extends e[_0x5d0173(0x136)]{[_0x5d0173(0x139)](_0x9f727e,_0x42b2ca,..._0x102e33){const _0xbe8111=_0x5d0173;return this[_0xbe8111(0x138)][_0xbe8111(0x13a)](t['RemoteUniscriptService'])['runOnServer'](_0x9f727e,_0x42b2ca,{},..._0x102e33);}}e[_0x5d0173(0x136)][_0x5d0173(0x13b)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x532fcf=_0x4bf1;(function(_0x5da2ea,_0x5c371b){const _0x2deb91=_0x4bf1,_0x59c556=_0x5da2ea();while(!![]){try{const _0x1978a2=parseInt(_0x2deb91(0x19b))/0x1+-parseInt(_0x2deb91(0x1af))/0x2+-parseInt(_0x2deb91(0x1d7))/0x3*(-parseInt(_0x2deb91(0x210))/0x4)+parseInt(_0x2deb91(0x152))/0x5*(-parseInt(_0x2deb91(0x2de))/0x6)+-parseInt(_0x2deb91(0x358))/0x7*(-parseInt(_0x2deb91(0x258))/0x8)+-parseInt(_0x2deb91(0x360))/0x9*(parseInt(_0x2deb91(0x117))/0xa)+parseInt(_0x2deb91(0x278))/0xb*(parseInt(_0x2deb91(0x130))/0xc);if(_0x1978a2===_0x5c371b)break;else _0x59c556['push'](_0x59c556['shift']());}catch(_0x1dac0c){_0x59c556['push'](_0x59c556['shift']());}}}(_0x36f2,0xb8558));var Xe=Object['defineProperty'],Ge=(_0x7a56d2,_0x358d63,_0x180100)=>_0x358d63 in _0x7a56d2?Xe(_0x7a56d2,_0x358d63,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x180100}):_0x7a56d2[_0x358d63]=_0x180100,_=(_0x21a560,_0x4f90be,_0x4e084b)=>Ge(_0x21a560,typeof _0x4f90be!=_0x532fcf(0x331)?_0x4f90be+'':_0x4f90be,_0x4e084b);Object['defineProperty'](exports,Symbol[_0x532fcf(0x274)],{'value':_0x532fcf(0x272)});const u=require(_0x532fcf(0x2b4)),a=require(_0x532fcf(0x12c)),p=require(_0x532fcf(0x2a1)),q=require(_0x532fcf(0x1da)),b=require(_0x532fcf(0x2fd)),qe=require(_0x532fcf(0x151)),d=require(_0x532fcf(0x1ca)),Y=require(_0x532fcf(0x2a7)),m=require(_0x532fcf(0x174)),Te=require(_0x532fcf(0x25f)),g=require(_0x532fcf(0x27a)),$=require('rxjs/operators'),G=require(_0x532fcf(0x102)),P=require('react/jsx-runtime'),O=require(_0x532fcf(0x275)),T=require(_0x532fcf(0x1f3)),M=require('react'),Ke=require(_0x532fcf(0x165));var ze=Object[_0x532fcf(0x1c9)],Je=(_0x1e4944,_0x75e590,_0x4323a5,_0x2fdf03)=>{for(var _0x168af9=_0x2fdf03>0x1?void 0x0:_0x2fdf03?ze(_0x75e590,_0x4323a5):_0x75e590,_0x3e1870=_0x1e4944['length']-0x1,_0x478280;_0x3e1870>=0x0;_0x3e1870--)(_0x478280=_0x1e4944[_0x3e1870])&&(_0x168af9=_0x478280(_0x168af9)||_0x168af9);return _0x168af9;},Oe=(_0x4874d5,_0x3df28d)=>(_0x35ac24,_0x5eca4d)=>_0x3df28d(_0x35ac24,_0x5eca4d,_0x4874d5);let fe=class extends a[_0x532fcf(0x13f)]{constructor(_0x13a73d,_0xfbdca3){const _0x26e3f7=_0x532fcf;super(),this[_0x26e3f7(0x27c)]=_0x13a73d,this[_0x26e3f7(0x315)]=_0xfbdca3,this['_init']();}['_init'](){const _0xea83ce=_0x532fcf,_0x5c6b9d=this;this[_0xea83ce(0x35c)](this['_docClipboardService'][_0xea83ce(0x22b)]({'onBeforePasteImage':async _0xa530d=>{const _0x5da4fa=_0xea83ce,_0xd822e5=await _0x5c6b9d[_0x5da4fa(0x315)][_0x5da4fa(0x2f0)](_0xa530d);return _0xd822e5?{'source':_0xd822e5[_0x5da4fa(0x321)],'imageSourceType':_0xd822e5[_0x5da4fa(0x1c2)]}:null;}}));}};fe=Je([Oe(0x0,b[_0x532fcf(0x148)]),Oe(0x1,qe[_0x532fcf(0x323)])],fe);const Re=[_0x532fcf(0x2fc),_0x532fcf(0x1ac),_0x532fcf(0x113),'red300','blue400',_0x532fcf(0x1f5)];class Ce extends a[_0x532fcf(0x160)]{constructor(){const _0x73e484=_0x532fcf;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x73e484(0x2ee),0x0);}[_0x532fcf(0x2ff)](_0x337064){const _0xbba34a=_0x532fcf;if(this[_0xbba34a(0x246)][_0xbba34a(0x125)](_0x337064))return this[_0xbba34a(0x246)]['get'](_0x337064);const _0x2324cb=Re[this[_0xbba34a(0x2ee)]];return this[_0xbba34a(0x2ee)]=(this['_colorIndex']+0x1)%Re['length'],this[_0xbba34a(0x246)][_0xbba34a(0x208)](_0x337064,_0x2324cb),_0x2324cb;}}function we(_0x4dc1f1){const _0x5db828=_0x532fcf;let _0x5f4c5e='';for(const _0x52a9c8 of _0x4dc1f1){const {startOffset:_0x711e5b,endOffset:_0x3f129c,isActive:_0x2d7451,rangeType:_0x2345a0,segmentId:_0x1da6d5,segmentPage:_0x8aba4c}=_0x52a9c8;_0x5f4c5e[_0x5db828(0x212)]&&(_0x5f4c5e+=','),_0x5f4c5e+=_0x711e5b+':'+_0x3f129c+':'+(_0x2d7451?'1':'0')+':'+_0x2345a0+':'+_0x1da6d5+':'+_0x8aba4c;}return _0x5f4c5e;}function Ze(_0x1f5084){const _0x2be12d=_0x532fcf,_0x5940b5=_0x1f5084['split'](','),_0x4c580b=[];for(const _0x39e3b4 of _0x5940b5){const [_0x2aa1a4,_0x58a1a2,_0x1bdc84,_0x5cc19d,_0x22053e,_0x5d0992]=_0x39e3b4[_0x2be12d(0x34e)](':');_0x4c580b['push']({'startOffset':Number(_0x2aa1a4),'endOffset':Number(_0x58a1a2),'collapsed':_0x2aa1a4===_0x58a1a2,'isActive':_0x1bdc84==='1','rangeType':_0x5cc19d===a[_0x2be12d(0xf1)][_0x2be12d(0x2cf)]?a[_0x2be12d(0xf1)][_0x2be12d(0x2cf)]:a[_0x2be12d(0xf1)][_0x2be12d(0x250)],'segmentId':typeof _0x22053e=='string'?String(_0x22053e):'','segmentPage':Number(_0x5d0992!=null?_0x5d0992:-0x1)});}return _0x4c580b[_0x2be12d(0x177)](_0x1b9050=>_0x1b9050[_0x2be12d(0x353)])||(_0x4c580b[0x0][_0x2be12d(0x353)]=!0x0),_0x4c580b;}class pe extends a[_0x532fcf(0x13f)]{constructor(){const _0x4565e7=_0x532fcf;super(...arguments),_(this,_0x4565e7(0x2e0),new d[(_0x4565e7(0x325))](null)),_(this,_0x4565e7(0x2ec),this[_0x4565e7(0x2e0)][_0x4565e7(0x244)]());}[_0x532fcf(0x352)](_0x241ae0){const _0x171431=_0x532fcf,{unitID:_0x26a21f,memberID:_0x904bd0,textRanges:_0x103117}=_0x241ae0,_0x5caef4=we(_0x103117);if(_0x5caef4==='')return;const _0x558674={'unitID':_0x26a21f,'memberID':_0x904bd0,'selection':_0x5caef4};this[_0x171431(0x2e0)][_0x171431(0x28a)](_0x558674);}}var Qe=Object[_0x532fcf(0x1c9)],et=(_0xa87a4f,_0x323a97,_0x29e886,_0x2efbd7)=>{const _0x240824=_0x532fcf;for(var _0x3626b1=_0x2efbd7>0x1?void 0x0:_0x2efbd7?Qe(_0x323a97,_0x29e886):_0x323a97,_0x2412cb=_0xa87a4f[_0x240824(0x212)]-0x1,_0x2c9d2c;_0x2412cb>=0x0;_0x2412cb--)(_0x2c9d2c=_0xa87a4f[_0x2412cb])&&(_0x3626b1=_0x2c9d2c(_0x3626b1)||_0x3626b1);return _0x3626b1;},L=(_0x18352c,_0x164199)=>(_0x3d11e1,_0x331eb6)=>_0x164199(_0x3d11e1,_0x331eb6,_0x18352c);const tt=0x12c,st=0x64;let Se=class extends a['RxDisposable']{constructor(_0x2557d7,_0x3f49ff,_0x1baad6,_0x42b039,_0x2d40b6,_0x4e082f,_0x295a34,_0x2d3bf3,_0x2fa0c4){const _0x5d0556=_0x532fcf;super(),_(this,'_online',!0x1),_(this,_0x5d0556(0x281),!0x1),_(this,_0x5d0556(0xfc),new d[(_0x5d0556(0x325))](new Map())),_(this,_0x5d0556(0x312),this[_0x5d0556(0xfc)]['asObservable']()),_(this,_0x5d0556(0x133),new d[(_0x5d0556(0x325))]([])),_(this,_0x5d0556(0xfd),this[_0x5d0556(0x133)][_0x5d0556(0x172)](d[_0x5d0556(0x18b)](tt))),_(this,_0x5d0556(0x167),a[_0x5d0556(0x297)](_0x1d4eac=>{const _0x2c103c=_0x5d0556,_0x21c08a={'eventID':m[_0x2c103c(0x273)][_0x2c103c(0x356)],'data':{'unitID':this[_0x2c103c(0x21b)],'memberID':this[_0x2c103c(0x1f9)][_0x2c103c(0x2f5)](),'selection':we(_0x1d4eac)}};this['_session']['send'](_0x21c08a,this[_0x2c103c(0x21b)]);},st)),(this['unitID']=_0x2557d7,this[_0x5d0556(0x1f9)]=_0x3f49ff,this[_0x5d0556(0x20b)]=_0x1baad6,this[_0x5d0556(0x2d5)]=_0x42b039,this[_0x5d0556(0x12d)]=_0x2d40b6,this['_syncEditingCollabCursorService']=_0x4e082f,this[_0x5d0556(0x14a)]=_0x295a34,this[_0x5d0556(0x183)]=_0x2d3bf3,this[_0x5d0556(0x2b7)]=_0x2fa0c4);}get[_0x532fcf(0x1a3)](){const _0x33e3d3=_0x532fcf;return this[_0x33e3d3(0xfc)][_0x33e3d3(0x361)]();}get[_0x532fcf(0x284)](){const _0x4689bc=_0x532fcf;return this[_0x4689bc(0x133)][_0x4689bc(0x361)]();}[_0x532fcf(0x137)](){const _0x5a4de3=_0x532fcf;super['dispose'](),this[_0x5a4de3(0xfc)]['next'](new Map()),this['_cursorInfo$'][_0x5a4de3(0x347)](),this[_0x5a4de3(0x133)][_0x5a4de3(0x28a)]([]),this[_0x5a4de3(0x133)]['complete']();}[_0x532fcf(0x205)](){const _0x489479=_0x532fcf;this[_0x489479(0x281)]||(this['_init']=!0x0,this['_session'][_0x489479(0x1aa)]['pipe'](d[_0x489479(0x2a5)](this['dispose$']))[_0x489479(0x1ce)](_0xec2892=>{const _0x3fd9e7=_0x489479;_0xec2892===u[_0x3fd9e7(0x36f)][_0x3fd9e7(0x227)]?this[_0x3fd9e7(0x18e)]():this[_0x3fd9e7(0x17b)]();}),this[_0x489479(0x1f9)][_0x489479(0xf9)][_0x489479(0x172)](d[_0x489479(0x2a5)](this[_0x489479(0x147)]))['subscribe'](_0x3aa622=>{const _0x2d34bc=_0x489479,_0x3b1db8=_0x3aa622[_0x2d34bc(0x294)];_0x3b1db8===m[_0x2d34bc(0x273)][_0x2d34bc(0x356)]&&this['_onCursorUpdate'](_0x3aa622),_0x3b1db8===m['CollaborationEvent'][_0x2d34bc(0x157)]&&this[_0x2d34bc(0x23d)](_0x3aa622);}),this['disposeWithMe'](this[_0x489479(0x2b7)][_0x489479(0x1e3)](_0x4d2fa8=>{const _0x4ca485=_0x489479,_0x2540e1=_0x4d2fa8[_0x4ca485(0x222)];_0x2540e1!=null&&this['_online']&&_0x4d2fa8['id']===Y[_0x4ca485(0x18a)]['id']&&_0x2540e1[_0x4ca485(0x26e)]===this[_0x4ca485(0x21b)]&&_0x2540e1['isEditing']===!0x1&&_0x2540e1[_0x4ca485(0x1b2)]['length']>0x0&&this['_updateLocalCursor'](_0x2540e1[_0x4ca485(0x1b2)]);})),this[_0x489479(0x369)][_0x489479(0x2ec)]['pipe'](d[_0x489479(0x2a5)](this['dispose$']))[_0x489479(0x1ce)](_0x5e640b=>{const _0x3e796e=_0x489479;if((_0x5e640b==null?void 0x0:_0x5e640b[_0x3e796e(0x21b)])!==this['unitID'])return;const _0x469e7e={'eventID':m[_0x3e796e(0x273)][_0x3e796e(0x356)],'data':_0x5e640b};this[_0x3e796e(0x2df)](_0x469e7e);}),this[_0x489479(0x35c)](this[_0x489479(0x2b7)][_0x489479(0x1e3)](_0x3e6908=>{const _0x51d8cd=_0x489479;if(_0x3e6908[_0x51d8cd(0x222)]==null)return;const _0x34b4c8=_0x3e6908['params'];if(_0x3e6908['id']!==Y[_0x51d8cd(0x1ab)]['id']||_0x34b4c8[_0x51d8cd(0x26e)]!==this[_0x51d8cd(0x21b)])return;const _0x499b41={'id':'doc.mutation.rich-text-editing','params':_0x34b4c8},_0x4e8780=this[_0x51d8cd(0x1a3)];for(const [_0x509ceb,_0x589b8a]of _0x4e8780){const _0x56abed={'id':_0x51d8cd(0x270),'params':{'unitId':this[_0x51d8cd(0x21b)],'actions':null,'textRanges':_0x589b8a['ranges']}},_0x4f3a07=this[_0x51d8cd(0x14a)][_0x51d8cd(0x129)](_0x499b41,_0x56abed,!0x1);if(m[_0x51d8cd(0x14b)](_0x4f3a07))throw _0x4f3a07[_0x51d8cd(0x1f6)];_0x4e8780[_0x51d8cd(0x208)](_0x509ceb,{..._0x589b8a,'ranges':_0x4f3a07[_0x51d8cd(0x362)][_0x51d8cd(0x222)][_0x51d8cd(0x2c7)]});}queueMicrotask(()=>{const _0x3ddffb=_0x51d8cd;this[_0x3ddffb(0xfc)][_0x3ddffb(0x28a)](_0x4e8780);});})));}[_0x532fcf(0x2df)](_0x12e69b){const _0x234e57=_0x532fcf;var _0x5e829d,_0x5b5b6c;const {memberID:_0x3eddaa,selection:_0x1f3181}=_0x12e69b['data'],_0x4afd5c=Ze(_0x1f3181),_0x4d085a=(_0x5b5b6c=(_0x5e829d=this[_0x234e57(0x12d)][_0x234e57(0x22f)](this[_0x234e57(0x21b)],_0x3eddaa))==null?void 0x0:_0x5e829d['name'])!=null?_0x5b5b6c:_0x234e57(0x291),_0x1bd340={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x3eddaa),'name':_0x4d085a,'ranges':_0x4afd5c},_0x545fc3=this[_0x234e57(0x1a3)];_0x545fc3[_0x234e57(0x208)](_0x3eddaa,_0x1bd340),this['_cursorInfo$']['next'](_0x545fc3);}['_onCursorDelete'](_0x2c1e52){const _0x280ec9=_0x532fcf,{memberID:_0x16a0f0}=_0x2c1e52[_0x280ec9(0x364)],_0xaafad0=this[_0x280ec9(0x1a3)];_0xaafad0[_0x280ec9(0x2a3)](_0x16a0f0),this['_cursorInfo$'][_0x280ec9(0x28a)](_0xaafad0);}[_0x532fcf(0x18e)](){const _0x44886a=_0x532fcf;var _0x2664d3;if(this[_0x44886a(0x267)]=!0x0,((_0x2664d3=this[_0x44886a(0x183)][_0x44886a(0x20e)]())==null?void 0x0:_0x2664d3['getUnitId']())!==this[_0x44886a(0x21b)])return;const _0x15d255=this[_0x44886a(0x20b)][_0x44886a(0x2b0)](Y[_0x44886a(0x136)])[_0x44886a(0x263)]();Array[_0x44886a(0x10b)](_0x15d255)&&_0x15d255[_0x44886a(0x212)]>0x0&&this[_0x44886a(0x167)](_0x15d255);}[_0x532fcf(0x17b)](){const _0x16a75c=_0x532fcf;this[_0x16a75c(0x267)]=!0x1;}};Se=et([L(0x2,a['Inject'](a[_0x532fcf(0x282)])),L(0x3,a[_0x532fcf(0x2ce)](Ce)),L(0x4,a[_0x532fcf(0x2ce)](u[_0x532fcf(0x145)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x532fcf(0x17d)]),L(0x7,a[_0x532fcf(0x149)]),L(0x8,a[_0x532fcf(0x355)])],Se);var nt=Object[_0x532fcf(0x1c9)],it=(_0x55eed,_0x1c61e8,_0x1bed0e,_0x403862)=>{for(var _0x18e107=_0x403862>0x1?void 0x0:_0x403862?nt(_0x1c61e8,_0x1bed0e):_0x1c61e8,_0x3cdba8=_0x55eed['length']-0x1,_0x2bbd7c;_0x3cdba8>=0x0;_0x3cdba8--)(_0x2bbd7c=_0x55eed[_0x3cdba8])&&(_0x18e107=_0x2bbd7c(_0x18e107)||_0x18e107);return _0x18e107;},A=(_0x25028a,_0x3fa58f)=>(_0x9d6402,_0x50cb84)=>_0x3fa58f(_0x9d6402,_0x50cb84,_0x25028a);const rt=0x12c,ot=0x64,at=()=>{let _0x5437fd=[],_0x4d2d3a=!0x1;return _0x5a1d6f=>{const _0x38a004=_0x4bf1;_0x5437fd[_0x38a004(0x2e2)](_0x5a1d6f),_0x4d2d3a||(_0x4d2d3a=!0x0,setTimeout(()=>{_0x5437fd['forEach'](_0x317ea5=>_0x317ea5()),_0x5437fd=[],_0x4d2d3a=!0x1;}));};};let Ie=class extends a[_0x532fcf(0x13f)]{constructor(_0x6eaeec,_0xa99cdf,_0x42b368,_0x41c74e,_0x250adf,_0x160dec,_0x10870c,_0xae96d0){const _0xcbe8de=_0x532fcf;super(),_(this,_0xcbe8de(0x267),!0x1),_(this,_0xcbe8de(0x281),!0x1),_(this,_0xcbe8de(0xfc),new d[(_0xcbe8de(0x325))](new Map())),_(this,'cursorInfo$',this[_0xcbe8de(0xfc)][_0xcbe8de(0x244)]()),_(this,_0xcbe8de(0x133),new d[(_0xcbe8de(0x325))]([])),_(this,_0xcbe8de(0xfd),this['_roomMembers$'][_0xcbe8de(0x172)](d[_0xcbe8de(0x18b)](rt))),_(this,_0xcbe8de(0x167),a[_0xcbe8de(0x297)]((_0x223ef6,_0x315985)=>{const _0x384af9=_0xcbe8de,_0x3b1bb1={'eventID':m[_0x384af9(0x273)][_0x384af9(0x356)],'data':{'unitID':this[_0x384af9(0x21b)],'memberID':this[_0x384af9(0x1f9)][_0x384af9(0x2f5)](),'selection':Te['serializeRangeWithSheet'](_0x223ef6,_0x315985[_0x384af9(0x2b2)])}};this[_0x384af9(0x1f9)][_0x384af9(0x2bb)](_0x3b1bb1,this[_0x384af9(0x21b)]);},ot)),(this[_0xcbe8de(0x21b)]=_0x6eaeec,this['_session']=_0xa99cdf,this[_0xcbe8de(0x20b)]=_0x42b368,this['_colorAssignService']=_0x41c74e,this[_0xcbe8de(0x12d)]=_0x250adf,this[_0xcbe8de(0x183)]=_0x160dec,this[_0xcbe8de(0x2b7)]=_0x10870c,this[_0xcbe8de(0x241)]=_0xae96d0);}get[_0x532fcf(0x1a3)](){const _0xa8d783=_0x532fcf;return this[_0xa8d783(0xfc)][_0xa8d783(0x361)]();}get[_0x532fcf(0x284)](){const _0x58f739=_0x532fcf;return this['_roomMembers$'][_0x58f739(0x361)]();}[_0x532fcf(0x137)](){const _0x3c4d60=_0x532fcf;super[_0x3c4d60(0x137)](),this[_0x3c4d60(0xfc)][_0x3c4d60(0x28a)](new Map()),this[_0x3c4d60(0xfc)][_0x3c4d60(0x347)](),this[_0x3c4d60(0x133)][_0x3c4d60(0x28a)]([]),this[_0x3c4d60(0x133)][_0x3c4d60(0x347)]();}[_0x532fcf(0x205)](){const _0x3c2dfb=_0x532fcf;this[_0x3c2dfb(0x281)]||(this['_init']=!0x0,this[_0x3c2dfb(0x1f9)]['sessionStatus$'][_0x3c2dfb(0x172)](d['takeUntil'](this[_0x3c2dfb(0x147)]))[_0x3c2dfb(0x1ce)](_0x3884ed=>{const _0x17174d=_0x3c2dfb;_0x3884ed===u[_0x17174d(0x36f)][_0x17174d(0x227)]?this[_0x17174d(0x18e)]():this[_0x17174d(0x17b)]();}),this[_0x3c2dfb(0x1f9)][_0x3c2dfb(0xf9)][_0x3c2dfb(0x172)](d[_0x3c2dfb(0x2a5)](this['dispose$']))['subscribe'](_0xca1c9c=>{const _0xbd4b40=_0x3c2dfb,_0x811010=_0xca1c9c[_0xbd4b40(0x294)];_0x811010===m[_0xbd4b40(0x273)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xca1c9c),_0x811010===m[_0xbd4b40(0x273)]['USERS_LEAVE']&&this[_0xbd4b40(0x23d)](_0xca1c9c);}),this[_0x3c2dfb(0x214)](),this[_0x3c2dfb(0x35c)](this['_commandService']['onCommandExecuted'](_0x139743=>{const _0x1e7d84=_0x3c2dfb;if(this[_0x1e7d84(0x267)]&&_0x139743['id']===g[_0x1e7d84(0x28d)]['id']&&_0x139743[_0x1e7d84(0x222)]['unitId']===this[_0x1e7d84(0x21b)]){const _0x2db897=_0x139743[_0x1e7d84(0x222)];this['_updateLocalCursor'](_0x2db897[_0x1e7d84(0x24e)],_0x2db897['selections'][0x0]);}})));}['_onCursorUpdate'](_0x21d266){const _0x4748a5=_0x532fcf;var _0x35d77e,_0x2a05d3;const {memberID:_0x3ec2bc,selection:_0xbf296}=_0x21d266[_0x4748a5(0x364)],{sheetName:_0x2b00af,range:_0x11ae06}=Te[_0x4748a5(0x313)](_0xbf296),_0x58d928={'name':(_0x2a05d3=(_0x35d77e=this[_0x4748a5(0x12d)][_0x4748a5(0x22f)](this[_0x4748a5(0x21b)],_0x3ec2bc))==null?void 0x0:_0x35d77e[_0x4748a5(0x240)])!=null?_0x2a05d3:_0x4748a5(0x291),'range':this[_0x4748a5(0x23b)](_0x2b00af,_0x11ae06),'sheetID':_0x2b00af,'color':this['_colorAssignService'][_0x4748a5(0x2ff)](_0x3ec2bc),'selection':_0xbf296},_0x13d0b8=this[_0x4748a5(0x1a3)];_0x13d0b8[_0x4748a5(0x208)](_0x3ec2bc,_0x58d928),this[_0x4748a5(0xfc)][_0x4748a5(0x28a)](_0x13d0b8);}[_0x532fcf(0x23d)](_0xa71692){const _0x1d96f6=_0x532fcf,{memberID:_0x570042}=_0xa71692[_0x1d96f6(0x364)],_0x36393a=this[_0x1d96f6(0x1a3)];_0x36393a[_0x1d96f6(0x2a3)](_0x570042),this[_0x1d96f6(0xfc)][_0x1d96f6(0x28a)](_0x36393a);}[_0x532fcf(0x23b)](_0x574f11,_0x2ce968){const _0x3013a8=_0x532fcf;var _0x24274b,_0x30dbdb;const _0x8570ba=(_0x30dbdb=(_0x24274b=this[_0x3013a8(0x183)][_0x3013a8(0x36d)](this[_0x3013a8(0x21b)]))==null?void 0x0:_0x24274b[_0x3013a8(0xf3)](_0x574f11))==null?void 0x0:_0x30dbdb[_0x3013a8(0x206)]();return(_0x8570ba==null?void 0x0:_0x8570ba[_0x3013a8(0x14c)](_0x684ca6=>a['Rectangle'][_0x3013a8(0x1a4)](_0x684ca6,_0x2ce968)))||_0x2ce968;}[_0x532fcf(0x214)](){const _0x459bc9=_0x532fcf,_0x4739c3=new a[(_0x459bc9(0x1a7))](),_0x7250a7=at(),_0x5a786e=()=>{const _0x259ee4=_0x459bc9;_0x4739c3[_0x259ee4(0x137)]();const _0x920b=(_0x2b595d,_0x4a0005,_0x23abd1,_0x1b5924)=>{const _0x912d73=_0x259ee4;let _0x3d4310=[];switch(_0x2b595d['id']){case g['EffectRefRangId'][_0x912d73(0x1c6)]:{_0x3d4310=g[_0x912d73(0x311)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x36b)]:{_0x3d4310=g[_0x912d73(0x163)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x343)]:{_0x3d4310=g['handleInsertCol'](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x111)]:{_0x3d4310=g[_0x912d73(0x16b)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x29e)]:{_0x3d4310=g[_0x912d73(0x25e)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x24c)]:{_0x3d4310=g['handleInsertRow'](_0x2b595d,_0x1b5924);break;}case g['EffectRefRangId']['MoveRangeCommandId']:{_0x3d4310=g[_0x912d73(0x170)](_0x2b595d,_0x1b5924);break;}case g['EffectRefRangId'][_0x912d73(0x288)]:{_0x3d4310=g['handleIRemoveCol'](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x2d1)]:{_0x3d4310=g[_0x912d73(0x2a0)](_0x2b595d,_0x1b5924);break;}}const _0x48f812=g['runRefRangeMutations'](_0x3d4310,_0x1b5924),_0x2ce49f=this[_0x912d73(0x1a3)][_0x912d73(0x2b0)](_0x4a0005);if(_0x2ce49f&&_0x48f812){const _0x8f4a83={..._0x2ce49f,'range':_0x48f812};this['cursorInfo'][_0x912d73(0x208)](_0x4a0005,_0x8f4a83),_0x7250a7(()=>{const _0x42beb9=_0x912d73,_0x3b398d=this[_0x42beb9(0x241)][_0x42beb9(0x20a)](_0x48f812,_0x54e031=>(_0x3b398d[_0x42beb9(0x137)](),_0x920b(_0x54e031,_0x4a0005,_0x23abd1,_0x48f812)));_0x4739c3[_0x42beb9(0x10a)](_0x3b398d);});}return{'redos':[],'undos':[]};};this[_0x259ee4(0x1a3)][_0x259ee4(0x344)]((_0x4eb8cd,_0x4dbe68)=>{const _0x380cf1=_0x259ee4,{range:_0x14c40e,sheetID:_0x4e6477}=_0x4eb8cd,_0x2928d4=this[_0x380cf1(0x241)][_0x380cf1(0x20a)](_0x14c40e,_0x10087d=>(_0x2928d4['dispose'](),_0x920b(_0x10087d,_0x4dbe68,_0x4e6477,_0x14c40e)));_0x4739c3[_0x380cf1(0x10a)](_0x2928d4);});};this[_0x459bc9(0x35c)](a['toDisposable'](this[_0x459bc9(0xfc)][_0x459bc9(0x1ce)](()=>{_0x5a786e();})));}[_0x532fcf(0x18e)](){const _0x249337=_0x532fcf;var _0x2e3f61,_0x17a0df;if(this[_0x249337(0x267)]=!0x0,((_0x2e3f61=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x2e3f61['getUnitId']())!==this['unitID'])return;const _0x3264d7=(_0x17a0df=this[_0x249337(0x20b)]['get'](g['SheetsSelectionsService'])[_0x249337(0x2c8)]())==null?void 0x0:_0x17a0df[0x0],_0x411297=this[_0x249337(0x183)][_0x249337(0x1eb)](a[_0x249337(0x296)]['UNIVER_SHEET'])[_0x249337(0x2d8)]();_0x3264d7&&_0x411297&&this[_0x249337(0x167)](_0x411297['getSheetId'](),_0x3264d7);}['_toggleOffline'](){const _0xd116a4=_0x532fcf;this[_0xd116a4(0x267)]=!0x1;}};Ie=it([A(0x2,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),A(0x3,a[_0x532fcf(0x2ce)](Ce)),A(0x4,a[_0x532fcf(0x2ce)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x532fcf(0x355)]),A(0x7,a['Inject'](g[_0x532fcf(0x1f8)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x500b18,_0x31ba8f,_0x5cf290,_0x3159c5)=>{const _0x1ddfea=_0x532fcf;for(var _0x5dd0dc=_0x3159c5>0x1?void 0x0:_0x3159c5?ct(_0x31ba8f,_0x5cf290):_0x31ba8f,_0x15fb05=_0x500b18[_0x1ddfea(0x212)]-0x1,_0x122cfe;_0x15fb05>=0x0;_0x15fb05--)(_0x122cfe=_0x500b18[_0x15fb05])&&(_0x5dd0dc=_0x122cfe(_0x5dd0dc)||_0x5dd0dc);return _0x5dd0dc;},ie=(_0x22c2dc,_0x1254be)=>(_0xe3e10d,_0x249ffd)=>_0x1254be(_0xe3e10d,_0x249ffd,_0x22c2dc);let x=class extends a[_0x532fcf(0x13f)]{constructor(_0x155c5b,_0x3456cb,_0x3f8baa){const _0x56d46b=_0x532fcf;super(),_(this,_0x56d46b(0x128),new Map()),_(this,_0x56d46b(0x301),new d[(_0x56d46b(0x176))]()),(this[_0x56d46b(0x183)]=_0x155c5b,this['_injector']=_0x3456cb,this[_0x56d46b(0x1a6)]=_0x3f8baa,this[_0x56d46b(0x281)]());}['dispose'](){const _0x4a6b09=_0x532fcf;super[_0x4a6b09(0x137)](),this[_0x4a6b09(0x301)][_0x4a6b09(0x347)](),this[_0x4a6b09(0x128)][_0x4a6b09(0x344)](_0x58c127=>_0x58c127['dispose']());}[_0x532fcf(0xf5)](_0x37f010){const _0x554815=_0x532fcf;return this[_0x554815(0x128)][_0x554815(0x125)](_0x37f010)?this[_0x554815(0x128)][_0x554815(0x2b0)](_0x37f010)[_0x554815(0x312)]:this[_0x554815(0x301)][_0x554815(0x172)](d['filter'](_0x4ce09b=>_0x4ce09b[_0x554815(0x21b)]===_0x37f010),d[_0x554815(0x217)](_0x3cb2b4=>_0x3cb2b4[_0x554815(0x312)]));}[_0x532fcf(0x281)](){const _0x49bb0d=_0x532fcf;this['_univerInstanceService'][_0x49bb0d(0x155)](a[_0x49bb0d(0x296)]['UNIVER_SHEET'])['pipe'](d[_0x49bb0d(0x2a5)](this[_0x49bb0d(0x147)]))[_0x49bb0d(0x1ce)](async _0x12af0f=>{const _0x249b51=_0x49bb0d,_0xaa6cb0=_0x12af0f[_0x249b51(0x1d6)](),_0x46384e=await this[_0x249b51(0x30b)](_0xaa6cb0);this[_0x249b51(0x301)][_0x249b51(0x28a)](_0x46384e),this['_entities'][_0x249b51(0x208)](_0xaa6cb0,_0x46384e);}),this[_0x49bb0d(0x183)]['getTypeOfUnitAdded$'](a[_0x49bb0d(0x296)][_0x49bb0d(0x2a4)])[_0x49bb0d(0x172)](d['takeUntil'](this[_0x49bb0d(0x147)]))['pipe'](d[_0x49bb0d(0x181)](_0x32cb3=>!_0x32cb3['getUnitId']()[_0x49bb0d(0x1db)]('__')))[_0x49bb0d(0x1ce)](async _0x5acf89=>{const _0x169ebe=_0x49bb0d,_0x24c4df=_0x5acf89[_0x169ebe(0x1d6)](),_0x8fdb32=await this[_0x169ebe(0x2f4)](_0x24c4df);this[_0x169ebe(0x301)][_0x169ebe(0x28a)](_0x8fdb32),this[_0x169ebe(0x128)][_0x169ebe(0x208)](_0x24c4df,_0x8fdb32);}),d[_0x49bb0d(0x2fe)](this['_univerInstanceService'][_0x49bb0d(0x2c2)](a[_0x49bb0d(0x296)][_0x49bb0d(0x2a4)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x49bb0d(0x296)][_0x49bb0d(0x196)]))[_0x49bb0d(0x172)](d[_0x49bb0d(0x2a5)](this['dispose$']))['subscribe'](_0x476c3c=>{const _0xbf7e29=_0x49bb0d,_0x1bc5ee=_0x476c3c['getUnitId'](),_0x2bbda4=this[_0xbf7e29(0x128)][_0xbf7e29(0x2b0)](_0x1bc5ee);_0x2bbda4&&(_0x2bbda4[_0xbf7e29(0x137)](),this[_0xbf7e29(0x128)][_0xbf7e29(0x2a3)](_0x1bc5ee));});}async['_startSheetCollabCursor'](_0x39d9c3){const _0x3c0149=_0x532fcf,_0x41cc3e=await this[_0x3c0149(0x1a6)][_0x3c0149(0x22a)](_0x39d9c3),_0x18608a=this[_0x3c0149(0x20b)][_0x3c0149(0x322)](Ie,_0x39d9c3,_0x41cc3e);return _0x18608a[_0x3c0149(0x205)](),_0x18608a;}async[_0x532fcf(0x2f4)](_0x241337){const _0x2114a3=_0x532fcf,_0x3f63ea=await this[_0x2114a3(0x1a6)][_0x2114a3(0x22a)](_0x241337),_0x1def79=this[_0x2114a3(0x20b)][_0x2114a3(0x322)](Se,_0x241337,_0x3f63ea);return _0x1def79[_0x2114a3(0x205)](),_0x1def79;}};x=lt([ie(0x0,a[_0x532fcf(0x149)]),ie(0x1,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),ie(0x2,a['Inject'](u[_0x532fcf(0x236)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x3e7d8a,_0x1afade){const _0x19148d=_0x532fcf;let {radius:_0x38932a,width:_0xfe5590,height:_0x4da2d3}=_0x1afade;_0x38932a=_0x38932a!=null?_0x38932a:0x0,_0xfe5590=_0xfe5590!=null?_0xfe5590:0x1e,_0x4da2d3=_0x4da2d3!=null?_0x4da2d3:0x1e;let _0x297eb7=0x0,_0x18c1fd=0x0,_0x5a9f80=0x0;_0x297eb7=_0x18c1fd=_0x5a9f80=Math[_0x19148d(0x35a)](_0x38932a,_0xfe5590/0x2,_0x4da2d3/0x2),_0x3e7d8a[_0x19148d(0x29c)](),_0x3e7d8a[_0x19148d(0x10d)](_0x297eb7,0x0),_0x3e7d8a[_0x19148d(0x12b)](_0xfe5590-_0x18c1fd,0x0),_0x3e7d8a['arc'](_0xfe5590-_0x18c1fd,_0x18c1fd,_0x18c1fd,Math['PI']*0x3/0x2,0x0,!0x1),_0x3e7d8a[_0x19148d(0x12b)](_0xfe5590,_0x4da2d3-_0x5a9f80),_0x3e7d8a[_0x19148d(0x100)](_0xfe5590-_0x5a9f80,_0x4da2d3-_0x5a9f80,_0x5a9f80,0x0,Math['PI']/0x2,!0x1),_0x3e7d8a[_0x19148d(0x12b)](0x0,_0x4da2d3),_0x3e7d8a[_0x19148d(0x12b)](0x0,_0x297eb7),_0x3e7d8a[_0x19148d(0x100)](_0x297eb7,_0x297eb7,_0x297eb7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3e7d8a[_0x19148d(0x16f)](),_0x1afade[_0x19148d(0x150)]&&(_0x3e7d8a[_0x19148d(0x1e1)](),_0x3e7d8a[_0x19148d(0x26f)]=_0x1afade[_0x19148d(0x150)],_0x1afade['fillRule']==='evenodd'?_0x3e7d8a[_0x19148d(0x150)](_0x19148d(0x326)):_0x3e7d8a[_0x19148d(0x150)](),_0x3e7d8a[_0x19148d(0x1d2)]());}class te extends p[_0x532fcf(0x1c1)]{constructor(_0x276e7c,_0x3a0f94){const _0x4ee3dc=_0x532fcf;super(_0x276e7c,_0x3a0f94),_(this,_0x4ee3dc(0x132)),_(this,'text'),(this[_0x4ee3dc(0x132)]=_0x3a0f94==null?void 0x0:_0x3a0f94[_0x4ee3dc(0x132)],this[_0x4ee3dc(0x27b)]=_0x3a0f94==null?void 0x0:_0x3a0f94['text']);}static[_0x532fcf(0x194)](_0x2be765,_0xff433b){const _0xd6ab82=_0x532fcf,{text:_0x28a5e1,color:_0x2d8b60}=_0xff433b;_0x2be765[_0xd6ab82(0x1e1)](),_0x2be765['font']=_0xd6ab82(0x122);const _0x4efa26=_0x2be765[_0xd6ab82(0x1d9)](_0x28a5e1)[_0xd6ab82(0x309)],_0x4bc021=Math[_0xd6ab82(0x35a)](_0x4efa26+0x2*re,De);ht(_0x2be765,{'height':K,'radius':0x4,'width':_0x4bc021,'fill':_0x2d8b60}),_0x2be765[_0xd6ab82(0x26f)]=_0xd6ab82(0x182);const _0x3332de=re,_0x2fba90=K-_t,_0x25f520=De-0x2*re;if(_0x4efa26>_0x25f520){let _0x134fea='',_0x20faac=0x0;for(const _0x447cf3 of _0x28a5e1){const _0x345e2b=_0x2be765[_0xd6ab82(0x1d9)](_0x447cf3)['width'];if(_0x20faac+_0x345e2b<=_0x25f520-_0x2be765[_0xd6ab82(0x1d9)](_0xd6ab82(0x279))[_0xd6ab82(0x309)])_0x134fea+=_0x447cf3,_0x20faac+=_0x345e2b;else{_0x134fea+=_0xd6ab82(0x279);break;}}_0x2be765[_0xd6ab82(0x26a)](_0x134fea,_0x3332de,_0x2fba90);}else _0x2be765['fillText'](_0x28a5e1,_0x3332de,_0x2fba90);_0x2be765[_0xd6ab82(0x1d2)]();}['_draw'](_0x762973){te['drawWith'](_0x762973,this);}}const oe=_0x532fcf(0x33a),ut=_0x532fcf(0x228),dt=_0x532fcf(0x34f),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x532fcf(0x17a);class Ue{constructor(_0x4454b9,_0x1c57a2,_0x622f0,_0x2decf4){const _0x1b3858=_0x532fcf;_(this,'_shapes',[]),_(this,_0x1b3858(0x28c),null),_(this,_0x1b3858(0x293),null),_(this,_0x1b3858(0x1ed),null),_(this,_0x1b3858(0x1c4),null),_(this,_0x1b3858(0x249),null),(this[_0x1b3858(0xe7)]=_0x4454b9,this[_0x1b3858(0x123)]=_0x1c57a2,this['_docSkeleton']=_0x622f0,this[_0x1b3858(0x18f)]=_0x2decf4,this[_0x1b3858(0x1be)]());}set[_0x532fcf(0x124)](_0x1bd964){const _0x56395b=_0x532fcf;_0x1bd964?(this[_0x56395b(0x1ed)]&&this['_anchorDot'][_0x56395b(0x1c5)](),this[_0x56395b(0x293)]&&this[_0x56395b(0x293)]['show']()):(this[_0x56395b(0x1ed)]&&this['_anchorDot'][_0x56395b(0x1c7)](),this[_0x56395b(0x293)]&&this[_0x56395b(0x293)][_0x56395b(0x1c5)]());}['dispose'](){const _0x34750f=_0x532fcf;for(const _0x259e05 of this[_0x34750f(0x184)])_0x259e05['dispose']();this[_0x34750f(0x293)]&&this['_textBubble'][_0x34750f(0x137)](),this[_0x34750f(0x1ed)]&&this[_0x34750f(0x1ed)]['dispose'](),this[_0x34750f(0x28c)]&&this[_0x34750f(0x28c)][_0x34750f(0x137)](),this[_0x34750f(0x249)]&&this[_0x34750f(0x249)]();}[_0x532fcf(0x1be)](){const _0x37b3ce=_0x532fcf;var _0x52f1ac;const {_docSkeleton:_0x4ed2e4,_document:_0x51b957}=this,{color:_0x14cccb,name:_0x4f10a2,ranges:_0x3e7b98}=this['_cursor'],_0x5bdb64=_0x51b957[_0x37b3ce(0x197)](),{docsLeft:_0x40ecbf,docsTop:_0x3f9bdf}=_0x5bdb64,_0x7ab8ab=new b['NodePositionConvertToCursor'](_0x5bdb64,_0x4ed2e4);for(const {startOffset:_0x4f05d4,endOffset:_0x25a798,rangeType:_0x31bc13,segmentId:_0x29586e,segmentPage:_0x2908b1,collapsed:_0x186a17,isActive:_0x107ac0}of _0x3e7b98){const _0x1da397=_0x4ed2e4['findNodePositionByCharIndex'](_0x4f05d4,!0x0,_0x29586e,_0x2908b1);let _0x555506=_0x4ed2e4[_0x37b3ce(0x191)](_0x25a798,!0x0,_0x29586e,_0x2908b1);if(_0x555506==null&&(_0x555506=_0x4ed2e4['findNodePositionByCharIndex'](_0x25a798-0x1,!0x1,_0x29586e,_0x2908b1)),_0x107ac0){const {contentBoxPointGroup:_0x4870b1}=_0x7ab8ab[_0x37b3ce(0x23f)](_0x555506,_0x555506);if(_0x4870b1[_0x37b3ce(0x212)]===0x0)continue;this['_drawAnchor'](_0x14cccb,_0x4870b1,_0x40ecbf,_0x3f9bdf,_0x4f10a2),this[_0x37b3ce(0x249)]=this[_0x37b3ce(0x2b3)]();}if(_0x1da397&&_0x555506){if(_0x31bc13===a[_0x37b3ce(0xf1)]['RECT']){const _0x29ae85=new b[(_0x37b3ce(0x36a))](_0x5bdb64,_0x4ed2e4),{pointGroup:_0x24004e}=(_0x52f1ac=_0x29ae85['getRangePointData'](_0x1da397,_0x555506))!=null?_0x52f1ac:{};if(_0x24004e==null||_0x24004e[_0x37b3ce(0x212)]===0x0)continue;this[_0x37b3ce(0x168)](_0x14cccb,_0x24004e,_0x40ecbf,_0x3f9bdf);}else{if(!_0x186a17){const {borderBoxPointGroup:_0x456fb7}=_0x7ab8ab[_0x37b3ce(0x23f)](_0x1da397,_0x555506);if(_0x456fb7[_0x37b3ce(0x212)]===0x0)continue;this['_drawTextRange'](_0x14cccb,_0x456fb7,_0x40ecbf,_0x3f9bdf);}}}}}['_drawAnchor'](_0x38d5a7,_0x15a9b3,_0x2d1a4c,_0x5ceec8,_0x99c048){const _0x4c15be=_0x532fcf,_0x4d0c9d=this[_0x4c15be(0x106)](_0x15a9b3),{left:_0x406626,top:_0xabd8a4,height:_0x585f59}=_0x4d0c9d,_0x46ebba=this[_0x4c15be(0x285)](),_0x43de13=St/_0x46ebba,_0x324b0c=new p[(_0x4c15be(0x332))](oe+a[_0x4c15be(0xfa)][_0x4c15be(0x24d)](k),{'left':_0x406626+_0x2d1a4c-_0x43de13,'top':_0xabd8a4+_0x5ceec8,'height':_0x585f59,'width':ft,'fill':_0x38d5a7||p['getColor'](a['COLORS'][_0x4c15be(0x341)],0x0),'strokeWidth':_0x43de13,'stroke':It,'evented':!0x0});this[_0x4c15be(0x28c)]=_0x324b0c,this[_0x4c15be(0x123)][_0x4c15be(0x1ba)](_0x324b0c,b[_0x4c15be(0x23a)]);const _0x63ef6e=new p[(_0x4c15be(0x332))](oe+a['Tools']['generateRandomId'](k),{'left':_0x406626+_0x2d1a4c-_0x43de13,'top':_0xabd8a4+_0x5ceec8-ae/0x2,'height':ae,'width':ae,'fill':_0x38d5a7||p[_0x4c15be(0x30c)](a[_0x4c15be(0x1f2)][_0x4c15be(0x341)],0x0),'strokeWidth':0x0,'stroke':_0x38d5a7||p[_0x4c15be(0x30c)](a[_0x4c15be(0x1f2)][_0x4c15be(0x341)],0x0),'evented':!0x1});this[_0x4c15be(0x1ed)]=_0x63ef6e,this['_scene'][_0x4c15be(0x1ba)](_0x63ef6e,b[_0x4c15be(0x23a)]);const _0x499a1d=new te(oe+a[_0x4c15be(0xfa)][_0x4c15be(0x24d)](k),{'left':_0x406626+_0x2d1a4c-_0x43de13,'top':_0xabd8a4+_0x5ceec8-K,'text':_0x99c048,'color':_0x38d5a7});this[_0x4c15be(0x293)]=_0x499a1d,this[_0x4c15be(0x123)][_0x4c15be(0x1ba)](_0x499a1d,b['TEXT_RANGE_LAYER_INDEX']),this[_0x4c15be(0x124)]=!0x1;}[_0x532fcf(0x2b3)](){const _0x46e3bf=_0x532fcf,_0x19c127=this[_0x46e3bf(0x28c)][_0x46e3bf(0x350)][_0x46e3bf(0x2c5)](()=>{const _0x160071=_0x46e3bf;this[_0x160071(0x124)]=!0x0;}),_0x8dc582=this[_0x46e3bf(0x28c)][_0x46e3bf(0x2c9)][_0x46e3bf(0x2c5)](()=>{const _0x47c184=_0x46e3bf;this[_0x47c184(0x1c4)]&&clearTimeout(this[_0x47c184(0x1c4)]),this['_hideTimer']=setTimeout(()=>{const _0x55d677=_0x47c184;this[_0x55d677(0x124)]=!0x1;},0x7d0);});return()=>{const _0x1ebf8b=_0x46e3bf;_0x19c127[_0x1ebf8b(0x17c)](),_0x8dc582['unsubscribe']();};}[_0x532fcf(0x32c)](_0x58dbd0,_0x43401d,_0x24ab4c,_0x3529a1){const _0x38de60=_0x532fcf,_0x4dc89c=new a[(_0x38de60(0x30d))](_0x58dbd0)[_0x38de60(0x2f8)](0.2)['toRgbString'](),_0xb10cca=new p[(_0x38de60(0x10e))](ut+a[_0x38de60(0xfa)][_0x38de60(0x24d)](k),{'pointsGroup':_0x43401d,'fill':_0x4dc89c||p['getColor'](a[_0x38de60(0x1f2)]['black'],0.2),'left':_0x24ab4c,'top':_0x3529a1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x38de60(0x2e2)](_0xb10cca),this[_0x38de60(0x123)]['addObject'](_0xb10cca,b['TEXT_RANGE_LAYER_INDEX']);}[_0x532fcf(0x168)](_0x581418,_0x17d685,_0x423da5,_0x595924){const _0x52844e=_0x532fcf,_0x6157f5=new a[(_0x52844e(0x30d))](_0x581418)[_0x52844e(0x2f8)](0.2)[_0x52844e(0x2fa)](),_0x1f008f=new p[(_0x52844e(0x10e))](dt+a[_0x52844e(0xfa)][_0x52844e(0x24d)](k),{'pointsGroup':_0x17d685,'fill':_0x6157f5||p['getColor'](a[_0x52844e(0x1f2)][_0x52844e(0x341)],0.2),'left':_0x423da5,'top':_0x595924,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52844e(0x184)][_0x52844e(0x2e2)](_0x1f008f),this[_0x52844e(0x123)][_0x52844e(0x1ba)](_0x1f008f,b[_0x52844e(0x23a)]);}[_0x532fcf(0x106)](_0x68e63){const _0x5d4ffb=_0x68e63[0x0],_0x5b8c7c=_0x5d4ffb[0x0],_0x5928e6=_0x5d4ffb[0x2],{x:_0x2d5e98,y:_0x505e7a}=_0x5b8c7c,{x:_0x4c8289,y:_0x12f588}=_0x5928e6;return{'left':_0x2d5e98,'top':_0x505e7a,'width':_0x4c8289-_0x2d5e98,'height':_0x12f588-_0x505e7a};}[_0x532fcf(0x285)](){const _0x76554c=_0x532fcf,{scaleX:_0x4f8922,scaleY:_0x43f9ff}=this[_0x76554c(0x123)][_0x76554c(0x1a9)]();return Math['max'](_0x4f8922,_0x43f9ff);}}var vt=Object[_0x532fcf(0x1c9)],gt=(_0x314b1a,_0x4226a4,_0x320957,_0x48005a)=>{const _0x50e0b2=_0x532fcf;for(var _0x358ac1=_0x48005a>0x1?void 0x0:_0x48005a?vt(_0x4226a4,_0x320957):_0x4226a4,_0x25ada4=_0x314b1a[_0x50e0b2(0x212)]-0x1,_0x382adb;_0x25ada4>=0x0;_0x25ada4--)(_0x382adb=_0x314b1a[_0x25ada4])&&(_0x358ac1=_0x382adb(_0x358ac1)||_0x358ac1);return _0x358ac1;},V=(_0xc3e4bd,_0x53b370)=>(_0x159e60,_0x2309e6)=>_0x53b370(_0x159e60,_0x2309e6,_0xc3e4bd);let ve=class extends a['RxDisposable']{constructor(_0x339749,_0x594b68,_0x41b405,_0x10689b,_0x3b1715){const _0x4a6ee6=_0x532fcf;super(),_(this,'_cursorShapes',[]),_(this,_0x4a6ee6(0xed),[]),(this[_0x4a6ee6(0x268)]=_0x339749,this['_docSkeletonManagerService']=_0x594b68,this[_0x4a6ee6(0x159)]=_0x41b405,this[_0x4a6ee6(0x2b7)]=_0x10689b,this[_0x4a6ee6(0x32d)]=_0x3b1715,this['_init']());}[_0x532fcf(0x281)](){const _0x40667d=_0x532fcf,_0x4bcb12=this['_context'][_0x40667d(0x26e)],_0x1f11c6=this[_0x40667d(0x277)];this['disposeWithMe'](d[_0x40667d(0xf0)]([this['_collabCursorController'][_0x40667d(0xf5)](_0x4bcb12),this['_themeService']['currentTheme$']])['pipe']($['map'](([_0x21e6f5,_0x204a74])=>({'skeleton':_0x1f11c6[_0x40667d(0x2a8)](),'cursors':[..._0x21e6f5[_0x40667d(0x25a)]()][_0x40667d(0x1d1)](_0x68221=>({..._0x68221,'color':_0x204a74[_0x68221['color']]}))})))['subscribe'](_0x5a718b=>{const _0x2b7357=_0x40667d;if(this[_0x2b7357(0x186)](),_0x5a718b){const {skeleton:_0x1662a3,cursors:_0x2d46ac}=_0x5a718b;this[_0x2b7357(0x2e3)](_0x1662a3,_0x2d46ac);}})),this['_initResize'](),this[_0x40667d(0x2da)]();}[_0x532fcf(0x2e3)](_0x3803dc,_0x4985bc){const _0x230f38=_0x532fcf,{scene:_0x2eb3b2,mainComponent:_0x1a5853}=this[_0x230f38(0x268)],_0x258e83=_0x4985bc[_0x230f38(0x2af)](_0x29da54=>new Ue(_0x29da54,_0x2eb3b2,_0x3803dc,_0x1a5853));this[_0x230f38(0x367)]=_0x258e83,this['_cursors']=_0x4985bc;}[_0x532fcf(0x141)](){const _0x412817=_0x532fcf;this[_0x412817(0x186)]();const {scene:_0x448ebb,mainComponent:_0xdcb6c8}=this[_0x412817(0x268)],_0xba2e9b=this['_docSkeletonManagerService'][_0x412817(0x2a8)](),_0x291803=this[_0x412817(0xed)][_0x412817(0x2af)](_0x4849f0=>new Ue(_0x4849f0,_0x448ebb,_0xba2e9b,_0xdcb6c8));this['_cursorShapes']=_0x291803;}[_0x532fcf(0x186)](){const _0x363648=_0x532fcf;this[_0x363648(0x367)][_0x363648(0x344)](_0x1c8da4=>_0x1c8da4[_0x363648(0x137)]()),this['_cursorShapes']=[];}[_0x532fcf(0x2da)](){const _0x55bef6=_0x532fcf,_0x5e4839=[b[_0x55bef6(0x213)]['id']];this[_0x55bef6(0x35c)](this[_0x55bef6(0x2b7)]['onCommandExecuted'](_0x57c5c5=>{const _0x12e83f=_0x55bef6;_0x5e4839['includes'](_0x57c5c5['id'])&&_0x57c5c5[_0x12e83f(0x222)][_0x12e83f(0x26e)]===this['_context']['unitId']&&this[_0x12e83f(0x141)]();}));}[_0x532fcf(0x2e5)](){const _0x18f808=_0x532fcf;this[_0x18f808(0x35c)](a[_0x18f808(0x156)](this[_0x18f808(0x268)]['engine']['onTransformChange$'])[_0x18f808(0x172)]($[_0x18f808(0x181)](_0x3462a9=>_0x3462a9['type']===p[_0x18f808(0x299)]['resize']),$[_0x18f808(0x2e7)](0x10))[_0x18f808(0x1ce)](()=>{const _0x1ea71b=_0x18f808;this[_0x1ea71b(0x141)]();}));}};ve=gt([V(0x1,a[_0x532fcf(0x2ce)](Y['DocSkeletonManagerService'])),V(0x2,a[_0x532fcf(0x2ce)](x)),V(0x3,a[_0x532fcf(0x355)]),V(0x4,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x1b0)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x532fcf(0x1c1)]{constructor(_0x4e2dc4,_0x244d2d){const _0x2e7784=_0x532fcf;super(_0x4e2dc4,_0x244d2d),_(this,_0x2e7784(0x202)),_(this,_0x2e7784(0x14f),!0x1),_(this,_0x2e7784(0x216)),_(this,'_name',''),_(this,_0x2e7784(0x14e),_0x2e7784(0x31c)),_(this,'_backgroundColor'),(_0x244d2d&&this[_0x2e7784(0x345)](_0x244d2d),this[_0x2e7784(0x350)][_0x2e7784(0x2c5)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2e7784(0x2c9)][_0x2e7784(0x2c5)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x532fcf(0x345)](_0xa75368){const _0x5a795a=_0x532fcf;var _0x5bd21d,_0x1cfeeb,_0x6f9af1,_0x16d721,_0x43d82c,_0x201341;this[_0x5a795a(0x202)]=(_0x5bd21d=_0xa75368['color'])!=null?_0x5bd21d:this[_0x5a795a(0x202)],this['_hovered']=(_0x1cfeeb=_0xa75368[_0x5a795a(0x215)])!=null?_0x1cfeeb:this[_0x5a795a(0x14f)],this[_0x5a795a(0x216)]=(_0x6f9af1=_0xa75368[_0x5a795a(0x2b2)])!=null?_0x6f9af1:this[_0x5a795a(0x216)],this[_0x5a795a(0x21c)]=(_0x16d721=_0xa75368[_0x5a795a(0x240)])!=null?_0x16d721:this['_name'],this[_0x5a795a(0x14e)]=(_0x43d82c=_0xa75368['labelPosition'])!=null?_0x43d82c:this[_0x5a795a(0x14e)],this[_0x5a795a(0x131)]=(_0x201341=_0xa75368[_0x5a795a(0x1d5)])!=null?_0x201341:this[_0x5a795a(0x131)],this['transformByState']({'width':_0xa75368[_0x5a795a(0x309)],'height':_0xa75368['height']});}[_0x532fcf(0x262)](_0x32313a){const _0x412b3c=_0x532fcf,{row:_0x1f9c9a,column:_0x4f7fab}=_0x32313a;if(_0x1f9c9a>=this[_0x412b3c(0x216)][_0x412b3c(0x2be)]&&_0x1f9c9a<=this[_0x412b3c(0x216)][_0x412b3c(0x166)]&&_0x4f7fab>=this[_0x412b3c(0x216)][_0x412b3c(0xef)]&&_0x4f7fab<=this[_0x412b3c(0x216)][_0x412b3c(0x21a)]){this[_0x412b3c(0x345)]({'hovered':!0x0});return;}this[_0x412b3c(0x345)]({'hovered':!0x1});}['triggerDblclick'](_0x3b4f96){return!0x1;}['_draw'](_0x32719d){const _0x48743c=_0x532fcf;p[_0x48743c(0x332)][_0x48743c(0x194)](_0x32719d,{'width':this[_0x48743c(0x309)],'height':this['height'],'strokeWidth':Ct,'stroke':this[_0x48743c(0x202)],'evented':!0x1,'fill':this[_0x48743c(0x131)]}),this['_hovered']&&(_0x32719d['save'](),_0x32719d['transform'](0x1,0x0,0x0,0x1,this[_0x48743c(0x309)],this['_labelPosition']===_0x48743c(0x27f)?0x0:-0x14),te[_0x48743c(0x194)](_0x32719d,{'text':this['_name'],'color':this[_0x48743c(0x202)]}),_0x32719d[_0x48743c(0x1d2)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x1c5e3c,_0x534d24,_0x91581b,_0xe43e01)=>{const _0x3a17d4=_0x532fcf;for(var _0x37cd34=_0xe43e01>0x1?void 0x0:_0xe43e01?pt(_0x534d24,_0x91581b):_0x534d24,_0x141829=_0x1c5e3c[_0x3a17d4(0x212)]-0x1,_0x2b1ff5;_0x141829>=0x0;_0x141829--)(_0x2b1ff5=_0x1c5e3c[_0x141829])&&(_0x37cd34=_0x2b1ff5(_0x37cd34)||_0x37cd34);return _0x37cd34;},ce=(_0x1a6bd8,_0x9c2452)=>(_0x62f8b6,_0x362f60)=>_0x9c2452(_0x62f8b6,_0x362f60,_0x1a6bd8);const Et=0x1389;let ge=class extends a[_0x532fcf(0x13f)]{constructor(_0x23ada5,_0x6000bf,_0x1532f8,_0x12e3e7){const _0x4c637f=_0x532fcf;super(),_(this,_0x4c637f(0xed),new Set()),_(this,_0x4c637f(0x2cd),null),(this[_0x4c637f(0x268)]=_0x23ada5,this[_0x4c637f(0x1ff)]=_0x6000bf,this[_0x4c637f(0x159)]=_0x1532f8,this[_0x4c637f(0x32d)]=_0x12e3e7,this[_0x4c637f(0x281)]());}[_0x532fcf(0x281)](){const _0x48fcf8=_0x532fcf;this['_sheetSkeletonManagerService'][_0x48fcf8(0x19f)][_0x48fcf8(0x172)]($['takeUntil'](this[_0x48fcf8(0x147)]),$[_0x48fcf8(0x217)](_0x4c6c4c=>{const _0xbdf48b=_0x48fcf8;if(_0x4c6c4c){const _0x5442c6=_0x4c6c4c[_0xbdf48b(0x200)];return d[_0xbdf48b(0xf0)](this[_0xbdf48b(0x159)][_0xbdf48b(0xf5)](this[_0xbdf48b(0x268)][_0xbdf48b(0x26e)]),this[_0xbdf48b(0x32d)][_0xbdf48b(0x29b)])[_0xbdf48b(0x172)]($[_0xbdf48b(0x2af)](([_0x51e763,_0x80acc8])=>{const _0x591cc1=_0xbdf48b,_0x132328=new Map();return _0x51e763[_0x591cc1(0x344)]((_0x4ac484,_0x22078f)=>{const _0x41d97f=_0x591cc1;if(_0x4ac484[_0x41d97f(0x1cf)]===_0x5442c6){const _0x414868={..._0x4ac484};_0x414868[_0x41d97f(0x132)]=_0x80acc8[_0x4ac484[_0x41d97f(0x132)]],_0x132328[_0x41d97f(0x208)](_0x22078f,_0x414868);}}),{'skeleton':_0x4c6c4c,'cursors':_0x132328};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x48fcf8(0x1ce)](({skeleton:_0x194133,cursors:_0x176735})=>{const _0x3bcd45=_0x48fcf8;this[_0x3bcd45(0x186)](),_0x194133&&this['_updateCollabCursors'](_0x194133,_0x176735);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x48fcf8(0x1ce)](_0x1fb8b2=>{const _0x5274c4=_0x48fcf8;if(_0x1fb8b2==null)return;const {skeleton:_0x2edc40}=_0x1fb8b2,{scene:_0x23d638}=this[_0x5274c4(0x268)];_0x23d638[_0x5274c4(0x201)][_0x5274c4(0x2c5)](a[_0x5274c4(0x297)](_0x45299b=>{const _0x2b7bc1=_0x5274c4;var _0x104391,_0x2cfd98;const {offsetX:_0x50f51f,offsetY:_0x485d65}=_0x45299b,{x:_0x14c5ed,y:_0x54e8aa}=_0x23d638[_0x2b7bc1(0x271)](p[_0x2b7bc1(0x1de)][_0x2b7bc1(0x1d4)]([_0x50f51f,_0x485d65])),{scaleX:_0x379cc5,scaleY:_0x4d8f66}=_0x23d638[_0x2b7bc1(0x1a9)](),_0x37bc21=_0x23d638[_0x2b7bc1(0x31f)](p[_0x2b7bc1(0x34d)][_0x2b7bc1(0x232)]),_0x4a68ab=_0x23d638[_0x2b7bc1(0xf8)](p['Vector2'][_0x2b7bc1(0x1d4)]([_0x14c5ed,_0x54e8aa]),_0x37bc21),_0xa1ca3f=_0x2edc40[_0x2b7bc1(0x324)](_0x50f51f,_0x485d65,_0x379cc5,_0x4d8f66,_0x4a68ab);((_0x104391=this[_0x2b7bc1(0x2cd)])==null?void 0x0:_0x104391['column'])===_0xa1ca3f[_0x2b7bc1(0x21f)]&&((_0x2cfd98=this[_0x2b7bc1(0x2cd)])==null?void 0x0:_0x2cfd98[_0x2b7bc1(0x2d4)])===_0xa1ca3f['row']||this[_0x2b7bc1(0xed)][_0x2b7bc1(0x344)](_0x34733a=>{const _0xd57d54=_0x2b7bc1;_0x34733a[_0xd57d54(0x262)](_0xa1ca3f);});},0x64));});}[_0x532fcf(0x2e3)](_0x1329fd,_0x48770c){const _0x48c4c6=_0x532fcf;var _0x485586;const _0x2943e2=(_0x485586=this[_0x48c4c6(0x1ff)][_0x48c4c6(0x327)]())==null?void 0x0:_0x485586[_0x48c4c6(0x2f9)];if(!_0x2943e2)return;const _0x48736d=this[_0x48c4c6(0x24b)]();if(!_0x48736d)return;this['_cursors']['forEach'](_0x61fa59=>{const _0x191880=_0x48c4c6;_0x61fa59[_0x191880(0x2db)]();});const {scene:_0x3b28f3}=_0x48736d,_0x20ccbb=Tt(Array[_0x48c4c6(0x252)](_0x48770c[_0x48c4c6(0x25a)]()))[_0x48c4c6(0x2af)](_0x30c322=>{const _0x2730a0=_0x48c4c6,{color:_0x2308bc,range:_0xbc6969,name:_0x3974b4,selection:_0x152ac2,sheetID:_0x2a704a}=_0x30c322,{startColumn:_0x13755c,startRow:_0x3b6dc7,endColumn:_0x320086,endRow:_0x1915e7}=_0xbc6969,_0x3e70fd=G[_0x2730a0(0x1a8)](_0x3b6dc7,_0x13755c,_0x3b28f3,_0x2943e2),_0x555572=G['getCoordByCell'](_0x1915e7,_0x320086,_0x3b28f3,_0x2943e2),{columnHeaderHeightAndMarginTop:_0x5ad727}=_0x2943e2,{startX:_0x329b2b,startY:_0x4612d5}=_0x3e70fd,{endX:_0x3acffd,endY:_0xfad02a}=_0x555572,_0x5e2246=_0x3acffd-_0x329b2b,_0x1bd7a0=_0xfad02a-_0x4612d5,_0x3cf59f={'labelPosition':_0x4612d5-_0x5ad727>=K?_0x2730a0(0x31c):_0x2730a0(0x27f),'sheetID':_0x2a704a,'range':_0xbc6969,'color':_0x2308bc,'name':_0x3974b4,'selection':_0x152ac2,'left':_0x329b2b,'top':_0x4612d5,'width':_0x5e2246,'height':_0x1bd7a0,'evented':!0x1,'zIndex':Et};return new Ae(_0x3974b4,_0x3cf59f);});_0x3b28f3['addObjects'](_0x20ccbb,mt),this['_cursors']=new Set(_0x20ccbb);}[_0x532fcf(0x186)](){const _0x3b3462=_0x532fcf;var _0x51e41e;(_0x51e41e=this[_0x3b3462(0xed)])==null||_0x51e41e['forEach'](_0x56cc66=>_0x56cc66['dispose']());}['_getSheetObject'](){const _0x557edb=_0x532fcf;return G[_0x557edb(0x337)](this[_0x557edb(0x268)]['unit'],this['_context']);}};ge=bt([ce(0x1,a['Inject'](G['SheetSkeletonManagerService'])),ce(0x2,a[_0x532fcf(0x2ce)](x)),ce(0x3,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x1b0)]))],ge);function Tt(_0x370681){const _0x46e357=_0x532fcf,_0x1a09fa=new Map();return _0x370681[_0x46e357(0x344)](_0x3e7294=>{const _0x117aaf=_0x46e357;if(_0x1a09fa[_0x117aaf(0x125)](_0x3e7294[_0x117aaf(0x1b1)])){const _0x2c67fa=_0x1a09fa[_0x117aaf(0x2b0)](_0x3e7294[_0x117aaf(0x1b1)]);_0x2c67fa[_0x117aaf(0x240)]+=',\x20'+_0x3e7294[_0x117aaf(0x240)];}else _0x1a09fa[_0x117aaf(0x208)](_0x3e7294[_0x117aaf(0x1b1)],_0x3e7294);}),Array['from'](_0x1a09fa[_0x46e357(0x25a)]());}var E=function(){const _0x5799c6=_0x532fcf;return E=Object[_0x5799c6(0x28f)]||function(_0x5ba5a9){const _0x50d926=_0x5799c6;for(var _0x25e004,_0x3d0905=0x1,_0x4446a3=arguments[_0x50d926(0x212)];_0x3d0905<_0x4446a3;_0x3d0905++){_0x25e004=arguments[_0x3d0905];for(var _0x2c84f9 in _0x25e004)Object['prototype'][_0x50d926(0x13d)]['call'](_0x25e004,_0x2c84f9)&&(_0x5ba5a9[_0x2c84f9]=_0x25e004[_0x2c84f9]);}return _0x5ba5a9;},E[_0x5799c6(0x1b9)](this,arguments);},Ot=function(_0x58ea7f,_0x3e0e35){const _0x5d554f=_0x532fcf;var _0x158b49={};for(var _0x4e85aa in _0x58ea7f)Object[_0x5d554f(0x1dd)][_0x5d554f(0x13d)][_0x5d554f(0x2fb)](_0x58ea7f,_0x4e85aa)&&_0x3e0e35[_0x5d554f(0x23c)](_0x4e85aa)<0x0&&(_0x158b49[_0x4e85aa]=_0x58ea7f[_0x4e85aa]);if(_0x58ea7f!=null&&typeof Object[_0x5d554f(0x346)]==_0x5d554f(0x1f1)){for(var _0x2f04ff=0x0,_0x4e85aa=Object[_0x5d554f(0x346)](_0x58ea7f);_0x2f04ff<_0x4e85aa[_0x5d554f(0x212)];_0x2f04ff++)_0x3e0e35[_0x5d554f(0x23c)](_0x4e85aa[_0x2f04ff])<0x0&&Object[_0x5d554f(0x1dd)][_0x5d554f(0x11c)][_0x5d554f(0x2fb)](_0x58ea7f,_0x4e85aa[_0x2f04ff])&&(_0x158b49[_0x4e85aa[_0x2f04ff]]=_0x58ea7f[_0x4e85aa[_0x2f04ff]]);}return _0x158b49;},be=M[_0x532fcf(0x185)](function(_0x5663ee,_0x2db28a){const _0x1f365c=_0x532fcf;var _0x2dad69=_0x5663ee['icon'],_0x500eec=_0x5663ee['id'],_0x808b2d=_0x5663ee[_0x1f365c(0x171)],_0x4571a8=_0x5663ee[_0x1f365c(0x31e)],_0xb0a585=Ot(_0x5663ee,['icon','id',_0x1f365c(0x171),'extend']),_0x455584=_0x1f365c(0x318)[_0x1f365c(0x2c3)](_0x500eec,'\x20')[_0x1f365c(0x2c3)](_0x808b2d||'')[_0x1f365c(0x30f)](),_0xbb14d5=M[_0x1f365c(0x2a2)]('_'['concat'](Ut()));return ye(_0x2dad69,''[_0x1f365c(0x2c3)](_0x500eec),{'defIds':_0x2dad69['defIds'],'idSuffix':_0xbb14d5[_0x1f365c(0x260)]},E({'ref':_0x2db28a,'className':_0x455584},_0xb0a585),_0x4571a8);});function _0x4bf1(_0x3c5bfa,_0x516556){const _0x36f27a=_0x36f2();return _0x4bf1=function(_0x4bf14a,_0x34b840){_0x4bf14a=_0x4bf14a-0xe7;let _0x1d1973=_0x36f27a[_0x4bf14a];return _0x1d1973;},_0x4bf1(_0x3c5bfa,_0x516556);}function ye(_0x484ff4,_0x3aeb2e,_0x26c3d2,_0x51b9e6,_0x2676d5){const _0x4c6a4f=_0x532fcf;return M[_0x4c6a4f(0x253)](_0x484ff4['tag'],E(E({'key':_0x3aeb2e},Rt(_0x484ff4,_0x26c3d2,_0x2676d5)),_0x51b9e6),(Dt(_0x484ff4,_0x26c3d2)[_0x4c6a4f(0x1cd)]||[])[_0x4c6a4f(0x2af)](function(_0x1b6c60,_0x431e67){const _0x57ecec=_0x4c6a4f;return ye(_0x1b6c60,''[_0x57ecec(0x2c3)](_0x3aeb2e,'-')['concat'](_0x484ff4[_0x57ecec(0x220)],'-')[_0x57ecec(0x2c3)](_0x431e67),_0x26c3d2,void 0x0,_0x2676d5);}));}function Rt(_0x14280f,_0x1d4504,_0x4ffe5e){const _0x586f5e=_0x532fcf;var _0x16db63=E({},_0x14280f[_0x586f5e(0x17e)]);_0x4ffe5e!=null&&_0x4ffe5e[_0x586f5e(0x27e)]&&_0x16db63['fill']===_0x586f5e(0x27e)&&(_0x16db63[_0x586f5e(0x150)]=_0x4ffe5e['colorChannel1']),_0x14280f['tag']==='mask'&&_0x16db63['id']&&(_0x16db63['id']=_0x16db63['id']+_0x1d4504[_0x586f5e(0x11a)]),Object['entries'](_0x16db63)['forEach'](function(_0x49d61b){const _0x4f85a1=_0x586f5e;var _0x423cf9=_0x49d61b[0x0],_0xd77862=_0x49d61b[0x1];_0x423cf9==='mask'&&typeof _0xd77862==_0x4f85a1(0x2ca)&&(_0x16db63[_0x423cf9]=_0xd77862['replace'](/url\(#(.*)\)/,_0x4f85a1(0x2b9)[_0x4f85a1(0x2c3)](_0x1d4504['idSuffix'],')')));});var _0x5dcdbf=_0x1d4504[_0x586f5e(0x2dc)];return!_0x5dcdbf||_0x5dcdbf[_0x586f5e(0x212)]===0x0||(_0x14280f['tag']===_0x586f5e(0xff)&&_0x16db63['xlink:href']&&(_0x16db63[_0x586f5e(0x14d)]=_0x16db63[_0x586f5e(0x14d)]+_0x1d4504[_0x586f5e(0x11a)]),Object['entries'](_0x16db63)['forEach'](function(_0x41ff6b){const _0x5b73af=_0x586f5e;var _0x17741a=_0x41ff6b[0x0],_0x4fc711=_0x41ff6b[0x1];typeof _0x4fc711==_0x5b73af(0x2ca)&&(_0x16db63[_0x17741a]=_0x4fc711['replace'](/url\(#(.*)\)/,_0x5b73af(0x2b9)['concat'](_0x1d4504[_0x5b73af(0x11a)],')')));})),_0x16db63;}function Dt(_0x65a2e0,_0x1f3e5d){const _0x36ac46=_0x532fcf;var _0x4eb8c0,_0x118a07=_0x1f3e5d[_0x36ac46(0x2dc)];return!_0x118a07||_0x118a07['length']===0x0?_0x65a2e0:_0x65a2e0[_0x36ac46(0x220)]===_0x36ac46(0x109)&&(!((_0x4eb8c0=_0x65a2e0['children'])===null||_0x4eb8c0===void 0x0)&&_0x4eb8c0[_0x36ac46(0x212)])?E(E({},_0x65a2e0),{'children':_0x65a2e0[_0x36ac46(0x1cd)]['map'](function(_0x102687){const _0x463c5b=_0x36ac46;return typeof _0x102687['attrs']['id']==_0x463c5b(0x2ca)&&_0x118a07&&_0x118a07['indexOf'](_0x102687[_0x463c5b(0x17e)]['id'])>-0x1?E(E({},_0x102687),{'attrs':E(E({},_0x102687[_0x463c5b(0x17e)]),{'id':_0x102687['attrs']['id']+_0x1f3e5d[_0x463c5b(0x11a)]})}):_0x102687;})}):_0x65a2e0;}function Ut(){const _0x4cbf5e=_0x532fcf;return Math['random']()[_0x4cbf5e(0x255)](0x24)[_0x4cbf5e(0xfe)](0x2,0x8);}be[_0x532fcf(0x142)]=_0x532fcf(0x251);var Nt={'tag':_0x532fcf(0x224),'attrs':{'fill':'none','viewBox':_0x532fcf(0x2c0),'width':_0x532fcf(0x276),'height':_0x532fcf(0x276)},'children':[{'tag':'g','attrs':{'clipPath':_0x532fcf(0x26c)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x532fcf(0x22e),'strokeLinejoin':_0x532fcf(0x22e),'strokeWidth':1.2}}]},{'tag':_0x532fcf(0x109),'attrs':{},'children':[{'tag':_0x532fcf(0x307),'attrs':{'id':_0x532fcf(0x342)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'fill':_0x532fcf(0x15f),'d':_0x532fcf(0x357)}}]}]}],'defIds':[_0x532fcf(0x342)]},$e=M['forwardRef'](function(_0x5a86c5,_0x5ad328){const _0x5686ef=_0x532fcf;return M[_0x5686ef(0x253)](be,Object[_0x5686ef(0x28f)]({},_0x5a86c5,{'id':_0x5686ef(0x238),'ref':_0x5ad328,'icon':Nt}));});$e[_0x532fcf(0x142)]=_0x532fcf(0x1cb);var Mt={'tag':_0x532fcf(0x224),'attrs':{'fill':_0x532fcf(0x233),'viewBox':_0x532fcf(0x1b4),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x532fcf(0x2bc)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'stroke':'currentColor','d':_0x532fcf(0x12f),'strokeLinecap':_0x532fcf(0x22e),'strokeLinejoin':_0x532fcf(0x22e),'strokeWidth':1.2}}]},{'tag':_0x532fcf(0x109),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x532fcf(0x16d)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'fill':'#fff','d':_0x532fcf(0x357),'transform':_0x532fcf(0x1fc)}}]}]}],'defIds':[_0x532fcf(0x16d)]},xe=M['forwardRef'](function(_0x5a4c5a,_0x35e154){const _0x4fbe44=_0x532fcf;return M[_0x4fbe44(0x253)](be,Object[_0x4fbe44(0x28f)]({},_0x5a4c5a,{'id':_0x4fbe44(0x199),'ref':_0x35e154,'icon':Mt}));});xe['displayName']=_0x532fcf(0x302);const Lt='univer-online-status-icon',Pt=_0x532fcf(0x29d),wt=_0x532fcf(0x231),At='univer-online',yt=_0x532fcf(0x261),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x49b356){const _0x1eaeff=_0x532fcf;switch(_0x49b356){case u[_0x1eaeff(0x2ba)]['OFFLINE']:return _0x1eaeff(0x25b);case u['CollaborationStatus'][_0x1eaeff(0x10c)]:return _0x1eaeff(0x1e7);case u[_0x1eaeff(0x2ba)]['FETCH_MISS']:return _0x1eaeff(0x2f2);case u['CollaborationStatus'][_0x1eaeff(0x310)]:return _0x1eaeff(0x1b8);case u[_0x1eaeff(0x2ba)][_0x1eaeff(0x120)]:case u[_0x1eaeff(0x2ba)]['AWAITING_WITH_PENDING']:return _0x1eaeff(0x35d);case u['CollaborationStatus']['SYNCED']:case u[_0x1eaeff(0x2ba)][_0x1eaeff(0x365)]:return'collabStatus.synced';}}function je(_0xf7acce){const _0xf7ce18=_0x532fcf,{status$:_0x4d1000}=_0xf7acce,_0x27f1fd=O[_0xf7ce18(0x13a)](_0x4d1000,u[_0xf7ce18(0x2ba)][_0xf7ce18(0x310)]),_0x3a270e=O[_0xf7ce18(0x20c)](a[_0xf7ce18(0x1ea)]),_0x24db04=O[_0xf7ce18(0x20c)](u[_0xf7ce18(0x236)]),_0x4bc364=_0x27f1fd!==u[_0xf7ce18(0x2ba)][_0xf7ce18(0x295)],_0x18635d=_0x3a270e['t']($t(_0x27f1fd)),_0x398d95=T[_0xf7ce18(0x2bd)](H[_0xf7ce18(0x234)],{[H['online']]:_0x4bc364,[H[_0xf7ce18(0x333)]]:!_0x4bc364}),_0x4c6bdf=_0x4bc364?P[_0xf7ce18(0x33b)](xe,{}):P[_0xf7ce18(0x33b)]($e,{}),_0x3db65a=M['useCallback'](()=>{_0x4bc364||_0x24db04['reconnect']();},[_0x4bc364,_0x24db04]);function _0x4ff40f(){const _0x51ce9a=_0xf7ce18;return P[_0x51ce9a(0x12e)](_0x51ce9a(0x1e2),{'className':T['clsx'](_0x398d95,_0x51ce9a(0x366)),'onClick':_0x3db65a,'children':[P[_0x51ce9a(0x33b)](_0x51ce9a(0x1e2),{'className':H['onlineStatusIcon'],'children':_0x4c6bdf}),P['jsx'](_0x51ce9a(0x1e2),{'className':H[_0x51ce9a(0x29f)],'children':_0x18635d})]});}return _0x4bc364?_0x4ff40f():P[_0xf7ce18(0x33b)](T[_0xf7ce18(0x349)],{'title':_0x3a270e['t'](_0xf7ce18(0x134)),'children':_0x4ff40f()});}var xt=Object[_0x532fcf(0x1c9)],jt=(_0x1b1116,_0x3f1445,_0x26ed8b,_0x472499)=>{const _0x21e7ee=_0x532fcf;for(var _0x479426=_0x472499>0x1?void 0x0:_0x472499?xt(_0x3f1445,_0x26ed8b):_0x3f1445,_0x55b478=_0x1b1116[_0x21e7ee(0x212)]-0x1,_0x387544;_0x55b478>=0x0;_0x55b478--)(_0x387544=_0x1b1116[_0x55b478])&&(_0x479426=_0x387544(_0x479426)||_0x479426);return _0x479426;},X=(_0x5795cb,_0x310361)=>(_0x87b2ea,_0x642fa)=>_0x310361(_0x87b2ea,_0x642fa,_0x5795cb);exports[_0x532fcf(0x2cc)]=class extends a[_0x532fcf(0x160)]{constructor(_0x3c7864,_0x5b69c7,_0x246eec,_0x57b926){const _0x5a1b96=_0x532fcf;super(),_(this,_0x5a1b96(0x239),new d['BehaviorSubject'](u[_0x5a1b96(0x2ba)][_0x5a1b96(0x310)])),(this[_0x5a1b96(0x183)]=_0x3c7864,this[_0x5a1b96(0x20b)]=_0x5b69c7,this['_collaborationController']=_0x246eec,this[_0x5a1b96(0x143)]=_0x57b926,this[_0x5a1b96(0x266)](),this[_0x5a1b96(0x32a)]());}[_0x532fcf(0x32a)](){const _0x2d088e=_0x532fcf;this[_0x2d088e(0x35c)](this[_0x2d088e(0x183)][_0x2d088e(0x286)]['pipe'](d[_0x2d088e(0x217)](()=>{const _0x4f0d4d=_0x2d088e,_0x2d0b88=this[_0x4f0d4d(0x183)][_0x4f0d4d(0x20e)]();return _0x2d0b88?this['_collaborationController'][_0x4f0d4d(0x173)](_0x2d0b88[_0x4f0d4d(0x1d6)]()):d['of'](null);}),d['switchMap'](_0x50f8da=>_0x50f8da?_0x50f8da[_0x2d088e(0x179)]:d['of'](u[_0x2d088e(0x2ba)][_0x2d088e(0x310)])))[_0x2d088e(0x1ce)](_0xff10ed=>{const _0x37ef27=_0x2d088e;this[_0x37ef27(0x239)][_0x37ef27(0x28a)](_0xff10ed);}));}['_initStatusComponent'](){const _0xcedeb6=_0x532fcf;this['disposeWithMe'](this[_0xcedeb6(0x143)]['registerComponent'](O['BuiltInUIPart'][_0xcedeb6(0x28b)],()=>O[_0xcedeb6(0x1fa)](Bt({'status$':this[_0xcedeb6(0x239)][_0xcedeb6(0x244)]()}),this[_0xcedeb6(0x20b)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x532fcf(0x149)]),X(0x1,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),X(0x2,a['Inject'](u[_0x532fcf(0x138)])),X(0x3,O[_0x532fcf(0x33d)])],exports[_0x532fcf(0x2cc)]);function Bt(_0x11e025){const {status$:_0x2c8487}=_0x11e025;return function(){const _0x358126=_0x4bf1;return P[_0x358126(0x33b)](je,{'status$':_0x2c8487});};}var kt=Object['getOwnPropertyDescriptor'],Ht=(_0x1983ad,_0xc8e4e8,_0x3bc75d,_0x17b07b)=>{const _0x2347fa=_0x532fcf;for(var _0x54e08a=_0x17b07b>0x1?void 0x0:_0x17b07b?kt(_0xc8e4e8,_0x3bc75d):_0xc8e4e8,_0x19810d=_0x1983ad[_0x2347fa(0x212)]-0x1,_0x4f75ff;_0x19810d>=0x0;_0x19810d--)(_0x4f75ff=_0x1983ad[_0x19810d])&&(_0x54e08a=_0x4f75ff(_0x54e08a)||_0x54e08a);return _0x54e08a;},y=(_0x13dbda,_0x536355)=>(_0x46b250,_0x1d3964)=>_0x536355(_0x46b250,_0x1d3964,_0x13dbda);let z=class extends a[_0x532fcf(0x160)]{constructor(_0x45551d,_0x72fd66,_0x5578a2,_0x231c00,_0x58f03c,_0x50b979){const _0x5d9c3a=_0x532fcf;super(),this[_0x5d9c3a(0x2d0)]=_0x45551d,this['_localCacheService']=_0x72fd66,this['_collaborationUIEventService']=_0x5578a2,this[_0x5d9c3a(0x178)]=_0x231c00,this['_notificationService']=_0x58f03c,this['_localeService']=_0x50b979,this['_setupBeforeClosingHandler'](),this[_0x5d9c3a(0xee)]();}[_0x532fcf(0x34a)](){const _0x5e3d0a=_0x532fcf;this[_0x5e3d0a(0x35c)](this[_0x5e3d0a(0x2d0)][_0x5e3d0a(0x254)](()=>{const _0x16da62=_0x5e3d0a;if(this[_0x16da62(0x110)][_0x16da62(0x287)][_0x16da62(0x2bf)])return this[_0x16da62(0x198)]['t'](_0x16da62(0x190));}));}[_0x532fcf(0xee)](){const _0x448284=_0x532fcf;this['disposeWithMe'](this[_0x448284(0x107)][_0x448284(0xf9)][_0x448284(0x1ce)](_0x539b60=>{const _0x369f12=_0x448284;_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x153)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)][_0x369f12(0x1df)],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x259))}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x2d7)]&&this[_0x369f12(0x178)]['show']({'type':T[_0x369f12(0x1e9)][_0x369f12(0x1df)],'content':this[_0x369f12(0x198)]['t']('collaboration.closeRoom')}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x1c3)]&&this['_notificationService'][_0x369f12(0x1c7)]({'title':this[_0x369f12(0x198)]['t'](_0x369f12(0x2ac)),'content':this['_localeService']['t']('permission.content'),'type':_0x369f12(0x1f6),'duration':0x0}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x10c)]&&this[_0x369f12(0x178)]['show']({'type':T['MessageType'][_0x369f12(0xfb)],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x203))+'('+_0x539b60['data']+')'}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x139)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)][_0x369f12(0x1df)],'content':this[_0x369f12(0x198)]['t'](_0x539b60[_0x369f12(0x364)]||'')}),_0x539b60['id']===u['CollaborationUIEventId'][_0x369f12(0x11d)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)]['Warning'],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x21d))}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x1ef)]&&this['_messageService'][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)]['Error'],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x304))}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x193)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)][_0x369f12(0xfb)],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x225))});}));}};z=Ht([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x532fcf(0x289)])),y(0x3,O[_0x532fcf(0x10f)]),y(0x4,O['INotificationService']),y(0x5,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x1ea)]))],z);const Ft=_0x532fcf(0x2e1),Ne={},Ee=a[_0x532fcf(0x127)](_0x532fcf(0x1cc));var Wt=Object[_0x532fcf(0x1c9)],Yt=(_0x66e683,_0x193911,_0x5eec9f,_0x54899a)=>{for(var _0x55bbf1=_0x54899a>0x1?void 0x0:_0x54899a?Wt(_0x193911,_0x5eec9f):_0x193911,_0x43a95e=_0x66e683['length']-0x1,_0x4d7c79;_0x43a95e>=0x0;_0x43a95e--)(_0x4d7c79=_0x66e683[_0x43a95e])&&(_0x55bbf1=_0x4d7c79(_0x55bbf1)||_0x55bbf1);return _0x55bbf1;},F=(_0x2e2068,_0x5527c5)=>(_0x513eea,_0x104e15)=>_0x5527c5(_0x513eea,_0x104e15,_0x2e2068);exports[_0x532fcf(0x30e)]=class extends a[_0x532fcf(0x13f)]{constructor(_0x149e08,_0x73676,_0x58d2a5,_0x120122,_0x361b5e){const _0x8f60b8=_0x532fcf;super(),this[_0x8f60b8(0x319)]=_0x149e08,this['_logService']=_0x73676,this['_commandService']=_0x58d2a5,this[_0x8f60b8(0x1e8)]=_0x120122,_0x361b5e?_0x361b5e==null||_0x361b5e[_0x8f60b8(0x305)]()['then'](()=>this['_init']()):(this[_0x8f60b8(0x119)][_0x8f60b8(0x101)](_0x8f60b8(0x140),_0x8f60b8(0x35f)),this[_0x8f60b8(0x281)]());}async[_0x532fcf(0x281)](){const _0x580e90=_0x532fcf,_0x4ba3af=this['_urlService'][_0x580e90(0x339)](_0x580e90(0x2f3)),_0x593622=this['_urlService']['getParam']('type'),_0x4325fa=this[_0x580e90(0x319)]['getParam']('subunit');if(!_0x4ba3af||!_0x593622){this[_0x580e90(0x119)][_0x580e90(0x101)](_0x580e90(0x140),_0x580e90(0x280));return;}const _0x100939=await this[_0x580e90(0x1e8)][_0x580e90(0x35e)](_0x4ba3af,Number(_0x593622),_0x4325fa);_0x100939&&_0x100939 instanceof a['Workbook']&&this[_0x580e90(0x235)](_0x100939);}async[_0x532fcf(0x235)](_0x35e1ee){const _0x2425e2=_0x532fcf;await this[_0x2425e2(0x264)](_0x35e1ee),_0x35e1ee[_0x2425e2(0x2c1)][_0x2425e2(0x172)](d['takeUntil'](this['dispose$']))[_0x2425e2(0x1ce)](_0x3c04ca=>{const _0x1f7946=_0x2425e2;_0x3c04ca&&this[_0x1f7946(0x1fb)](_0x3c04ca);}),this['_urlService'][_0x2425e2(0xf2)]['pipe'](d[_0x2425e2(0x2a5)](this[_0x2425e2(0x147)]))[_0x2425e2(0x1ce)](()=>this[_0x2425e2(0x264)](_0x35e1ee));}[_0x532fcf(0x1fb)](_0x17bb80,_0x4cd1c2=!0x1){const _0x58fc3c=_0x532fcf,_0x7f680b=this[_0x58fc3c(0x319)]['getParam'](_0x58fc3c(0x1bc));_0x17bb80['getSheetId']()!==_0x7f680b&&this[_0x58fc3c(0x319)][_0x58fc3c(0x121)](_0x58fc3c(0x1bc),_0x17bb80[_0x58fc3c(0x16a)](),_0x4cd1c2);}async[_0x532fcf(0x264)](_0x2fccca){const _0x38e54f=_0x532fcf;var _0x4e9bc3;const _0x4faa33=this[_0x38e54f(0x319)][_0x38e54f(0x339)](_0x38e54f(0x1bc));if(!_0x4faa33||!_0x2fccca[_0x38e54f(0xf3)](_0x4faa33)){const _0x4d8986=_0x2fccca['getUnhiddenWorksheets']()[0x0],_0x452eb5=_0x2fccca[_0x38e54f(0xf3)](_0x4d8986);if(!_0x452eb5)return;this['_updateURLWithCurrentState'](_0x452eb5,!0x0),await this[_0x38e54f(0x2b7)]['executeCommand'](g[_0x38e54f(0x23e)]['id'],{'unitId':_0x2fccca[_0x38e54f(0x1d6)](),'subUnitId':_0x4d8986});return;}((_0x4e9bc3=_0x2fccca[_0x38e54f(0x2d8)]())==null?void 0x0:_0x4e9bc3[_0x38e54f(0x16a)]())!==_0x4faa33&&await this[_0x38e54f(0x2b7)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x2fccca[_0x38e54f(0x1d6)](),'subUnitId':_0x4faa33});}},exports['CollaborationDataLoaderController']=Yt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a[_0x532fcf(0x355)]),F(0x3,a[_0x532fcf(0x2ce)](u[_0x532fcf(0x112)])),F(0x4,a[_0x532fcf(0x328)](Ke[_0x532fcf(0x15d)]))],exports[_0x532fcf(0x30e)]);var Vt=Object[_0x532fcf(0x1c9)],Xt=(_0x1ddcc8,_0x59ff19,_0x303eb2,_0x4e0a94)=>{const _0x59269c=_0x532fcf;for(var _0x3ab783=_0x4e0a94>0x1?void 0x0:_0x4e0a94?Vt(_0x59ff19,_0x303eb2):_0x59ff19,_0x1a9408=_0x1ddcc8[_0x59269c(0x212)]-0x1,_0x4343fe;_0x1a9408>=0x0;_0x1a9408--)(_0x4343fe=_0x1ddcc8[_0x1a9408])&&(_0x3ab783=_0x4343fe(_0x3ab783)||_0x3ab783);return _0x3ab783;},le=(_0x257612,_0x412088)=>(_0x56a369,_0x2472f1)=>_0x412088(_0x56a369,_0x2472f1,_0x257612);let J=class{constructor(_0x146a28,_0x104a50,_0x176f8d){const _0x5cac29=_0x532fcf;this[_0x5cac29(0x20b)]=_0x146a28,this['_transformService']=_0x104a50,this[_0x5cac29(0x1a1)]=_0x176f8d;}[_0x532fcf(0x32f)](_0x33ba9c){const _0x5d3964=_0x532fcf;this[_0x5d3964(0x368)](_0x33ba9c),this[_0x5d3964(0x1ec)](_0x33ba9c);}[_0x532fcf(0x15c)](_0x3b69d9){const _0x5c2878=_0x532fcf,{unitID:_0x556c47}=_0x3b69d9,_0x5dc15d=this[_0x5c2878(0x1a1)][_0x5c2878(0x162)](_0x556c47)[_0x5c2878(0x15b)](b[_0x5c2878(0x2ad)]),{redoCache:_0x460432}=_0x5dc15d['getUndoRedoMutationParamsCache']();if(_0x460432[_0x5c2878(0x212)]===0x0)return _0x3b69d9;let _0x3ffea7=a['Tools'][_0x5c2878(0x335)](_0x3b69d9[_0x5c2878(0x2a9)][0x0]);for(let _0x5272bc=0x0;_0x5272bc<_0x460432[_0x5c2878(0x212)];_0x5272bc++){const _0xa3fcc5={'id':_0x5c2878(0x270),'params':{..._0x460432[_0x5272bc]}},_0x3b5bd8=this[_0x5c2878(0x14a)][_0x5c2878(0x129)](_0x3ffea7,_0xa3fcc5,!0x1);if(m[_0x5c2878(0x14b)](_0x3b5bd8))throw _0x3b5bd8[_0x5c2878(0x1f6)];_0x3ffea7=_0x3b5bd8[_0x5c2878(0x1d3)];}return{...a[_0x5c2878(0xfa)][_0x5c2878(0x335)](_0x3b69d9),'mutations':[_0x3ffea7]};}[_0x532fcf(0x368)](_0xde666){const _0x4d0002=_0x532fcf,{unitID:_0x1eb791}=_0xde666,_0x43397f=this[_0x4d0002(0x1a1)][_0x4d0002(0x162)](_0x1eb791)[_0x4d0002(0x15b)](b[_0x4d0002(0x2ad)]),{undoCache:_0x11e1f0,redoCache:_0x34e483}=_0x43397f[_0x4d0002(0xeb)]();if(_0x11e1f0[_0x4d0002(0x212)]===0x0||_0x34e483[_0x4d0002(0x212)]===0x0)return;const _0x454c83=[],_0x38c515=[];let _0x20ec7c=a[_0x4d0002(0xfa)][_0x4d0002(0x335)](_0xde666[_0x4d0002(0x2a9)][0x0]),_0xf8d7bb=a[_0x4d0002(0xfa)][_0x4d0002(0x335)](_0xde666[_0x4d0002(0x2a9)][0x0]);for(let _0x200d44=_0x11e1f0[_0x4d0002(0x212)]-0x1;_0x200d44>=0x0;_0x200d44--){const _0x4544b8={'id':'doc.mutation.rich-text-editing','params':{..._0x11e1f0[_0x200d44]}},_0x1001ea={'id':'doc.mutation.rich-text-editing','params':{..._0x34e483[_0x200d44]}},_0x196ce8=this[_0x4d0002(0x14a)]['transformMutation'](_0x20ec7c,_0x4544b8,!0x1),_0x3e115c=this['_transformService'][_0x4d0002(0x129)](_0xf8d7bb,_0x1001ea,!0x1);if(m[_0x4d0002(0x14b)](_0x196ce8))throw _0x196ce8['error'];if(m[_0x4d0002(0x14b)](_0x3e115c))throw _0x3e115c[_0x4d0002(0x1f6)];_0x454c83['unshift'](_0x196ce8[_0x4d0002(0x362)][_0x4d0002(0x222)]),_0x38c515[_0x4d0002(0xf6)](_0x3e115c[_0x4d0002(0x362)][_0x4d0002(0x222)]),_0x20ec7c=_0x196ce8[_0x4d0002(0x1d3)],_0xf8d7bb=_0x3e115c[_0x4d0002(0x1d3)];}_0x43397f[_0x4d0002(0x1e4)]({'undoCache':_0x454c83,'redoCache':_0x38c515});}[_0x532fcf(0x1ec)](_0x4aac36){const _0x3927be=_0x532fcf,{unitID:_0x1479fa}=_0x4aac36,_0x3c7a61=this[_0x3927be(0x1a1)]['getRenderById'](_0x1479fa)['with'](b[_0x3927be(0x2ad)]),_0x478b2d=_0x3c7a61['getActiveRange']();if(_0x478b2d==null)return;const _0x57e27f=[{'id':_0x3927be(0x270),'params':{'unitId':_0x4aac36['unitID'],'actions':null,'textRanges':[_0x478b2d]}}],_0x1c4ebe=this['_transformService'][_0x3927be(0x329)](_0x4aac36,_0x57e27f);if(!m[_0x3927be(0xf7)](_0x1c4ebe))throw _0x1c4ebe[_0x3927be(0x1f6)];const _0x3df67d=_0x1c4ebe['m2Prime'][0x0][_0x3927be(0x222)][_0x3927be(0x2c7)];Array['isArray'](_0x3df67d)&&_0x3df67d[_0x3927be(0x212)]&&_0x3c7a61[_0x3927be(0x1d8)](_0x3df67d[0x0]);}};J=Xt([le(0x0,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),le(0x1,m[_0x532fcf(0x17d)]),le(0x2,p[_0x532fcf(0x28e)])],J);var Gt=Object[_0x532fcf(0x1c9)],qt=(_0x2fd0e5,_0x5544c8,_0x25c8ba,_0x1b1796)=>{const _0x183658=_0x532fcf;for(var _0x148388=_0x1b1796>0x1?void 0x0:_0x1b1796?Gt(_0x5544c8,_0x25c8ba):_0x5544c8,_0x48e44f=_0x2fd0e5[_0x183658(0x212)]-0x1,_0x3dc639;_0x48e44f>=0x0;_0x48e44f--)(_0x3dc639=_0x2fd0e5[_0x48e44f])&&(_0x148388=_0x3dc639(_0x148388)||_0x148388);return _0x148388;},_e=(_0xfb7ad4,_0x43e2d2)=>(_0x52c714,_0x1d3255)=>_0x43e2d2(_0x52c714,_0x1d3255,_0xfb7ad4);let Z=class{constructor(_0x48b4c4,_0x4c4056,_0x142982){const _0x1456c2=_0x532fcf;this[_0x1456c2(0x20b)]=_0x48b4c4,this['_transformService']=_0x4c4056,this[_0x1456c2(0xe8)]=_0x142982;}['transformStateCache'](_0x20c68c){this['_transformHistoryAndStateStack'](_0x20c68c);}[_0x532fcf(0x15c)](_0x3ee2aa){const _0x52e549=_0x532fcf,{unitID:_0x37d71b}=_0x3ee2aa,{collaboration:_0xe5270}=this[_0x52e549(0xe8)][_0x52e549(0x226)](_0x37d71b);if(_0xe5270[_0x52e549(0x212)]===0x0)return _0x3ee2aa;let _0x5556e6=a[_0x52e549(0xfa)]['deepClone'](_0x3ee2aa['mutations'][0x0]);for(let _0x4ddcde=0x0;_0x4ddcde<_0xe5270['length'];_0x4ddcde++){const _0x23ab57={'id':_0x52e549(0x270),'params':{'unitId':_0xe5270[_0x4ddcde][_0x52e549(0x26e)],..._0xe5270[_0x4ddcde][_0x52e549(0x248)]}},_0x4ce0a1=this[_0x52e549(0x14a)][_0x52e549(0x129)](_0x5556e6,_0x23ab57,!0x1);if(m[_0x52e549(0x14b)](_0x4ce0a1))throw _0x4ce0a1[_0x52e549(0x1f6)];_0x5556e6=_0x4ce0a1[_0x52e549(0x1d3)];}return{...a[_0x52e549(0xfa)][_0x52e549(0x335)](_0x3ee2aa),'mutations':[_0x5556e6]};}[_0x532fcf(0x13c)](_0x2c2382){const _0x115d53=_0x532fcf,{unitID:_0x2c6874}=_0x2c2382,{history:_0x519a2f,collaboration:_0x27e9f6}=this[_0x115d53(0xe8)][_0x115d53(0x226)](_0x2c6874);if(_0x519a2f['length']===0x0&&_0x27e9f6[_0x115d53(0x212)]===0x0)return;const _0x3cb6f3=[],_0x580b74=[];let _0x52a20a=a[_0x115d53(0xfa)][_0x115d53(0x335)](_0x2c2382[_0x115d53(0x2a9)][0x0]),_0x49f69e=a['Tools']['deepClone'](_0x2c2382[_0x115d53(0x2a9)][0x0]);for(let _0x181f5a=_0x519a2f[_0x115d53(0x212)]-0x1;_0x181f5a>=0x0;_0x181f5a--){const _0x4ddbc3={'id':_0x115d53(0x270),'params':{'unitId':_0x519a2f[_0x181f5a][_0x115d53(0x26e)],..._0x519a2f[_0x181f5a][_0x115d53(0x19c)]}},_0x79ac9a={'id':_0x115d53(0x270),'params':{'unitId':_0x519a2f[_0x181f5a][_0x115d53(0x26e)],..._0x519a2f[_0x181f5a][_0x115d53(0x248)]}},_0x22579d=this['_transformService'][_0x115d53(0x129)](_0x52a20a,_0x4ddbc3,!0x1),_0x4fcf97=this['_transformService'][_0x115d53(0x129)](_0x49f69e,_0x79ac9a,!0x1);if(m['isTransformMutationFailure'](_0x22579d))throw _0x22579d['error'];if(m[_0x115d53(0x14b)](_0x4fcf97))throw _0x4fcf97[_0x115d53(0x1f6)];_0x3cb6f3[_0x115d53(0xf6)]({..._0x519a2f[_0x181f5a],'undoState':_0x22579d['m2Prime'][_0x115d53(0x222)],'redoState':_0x4fcf97[_0x115d53(0x362)][_0x115d53(0x222)]}),_0x52a20a=_0x22579d[_0x115d53(0x1d3)],_0x49f69e=_0x4fcf97['m1Prime'];}_0x52a20a=a[_0x115d53(0xfa)][_0x115d53(0x335)](_0x2c2382[_0x115d53(0x2a9)][0x0]),_0x49f69e=a[_0x115d53(0xfa)][_0x115d53(0x335)](_0x2c2382['mutations'][0x0]);for(let _0x5ea0ad=_0x27e9f6[_0x115d53(0x212)]-0x1;_0x5ea0ad>=0x0;_0x5ea0ad--){const _0x3c157e={'id':_0x115d53(0x270),'params':{'unitId':_0x27e9f6[_0x5ea0ad]['unitId'],..._0x27e9f6[_0x5ea0ad]['undoState']}},_0x5867bf={'id':_0x115d53(0x270),'params':{'unitId':_0x27e9f6[_0x5ea0ad][_0x115d53(0x26e)],..._0x27e9f6[_0x5ea0ad][_0x115d53(0x248)]}},_0x363cea=this[_0x115d53(0x14a)][_0x115d53(0x129)](_0x52a20a,_0x3c157e,!0x1),_0x43a8c2=this[_0x115d53(0x14a)][_0x115d53(0x129)](_0x49f69e,_0x5867bf,!0x1);if(m['isTransformMutationFailure'](_0x363cea))throw _0x363cea[_0x115d53(0x1f6)];if(m['isTransformMutationFailure'](_0x43a8c2))throw _0x43a8c2[_0x115d53(0x1f6)];_0x580b74[_0x115d53(0xf6)]({..._0x27e9f6[_0x5ea0ad],'undoState':_0x363cea[_0x115d53(0x362)][_0x115d53(0x222)],'redoState':_0x43a8c2[_0x115d53(0x362)][_0x115d53(0x222)]}),_0x52a20a=_0x363cea['m1Prime'],_0x49f69e=_0x43a8c2['m1Prime'];}this[_0x115d53(0xe8)][_0x115d53(0x2ef)](_0x2c6874,{'history':_0x3cb6f3,'collaboration':_0x580b74});}};Z=qt([_e(0x0,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),_e(0x1,m[_0x532fcf(0x17d)]),_e(0x2,a['Inject'](b[_0x532fcf(0x154)]))],Z);var Kt=Object['getOwnPropertyDescriptor'],zt=(_0x4a38f7,_0x2bbdac,_0x505c62,_0x15d8bc)=>{const _0x58b783=_0x532fcf;for(var _0x1e8a8b=_0x15d8bc>0x1?void 0x0:_0x15d8bc?Kt(_0x2bbdac,_0x505c62):_0x2bbdac,_0x222ff8=_0x4a38f7[_0x58b783(0x212)]-0x1,_0x180e8e;_0x222ff8>=0x0;_0x222ff8--)(_0x180e8e=_0x4a38f7[_0x222ff8])&&(_0x1e8a8b=_0x180e8e(_0x1e8a8b)||_0x1e8a8b);return _0x1e8a8b;},Me=(_0x2203c4,_0x3384b5)=>(_0x4a40d8,_0x321f16)=>_0x3384b5(_0x4a40d8,_0x321f16,_0x2203c4);let Q=class{constructor(_0x3da65f,_0x1f481a){const _0x4743ea=_0x532fcf;this['_injector']=_0x3da65f,this[_0x4743ea(0x14a)]=_0x1f481a;}[_0x532fcf(0x330)](_0x50c14a){const _0x3d8536=_0x532fcf;var _0x2b6be9;const _0x2c1462=this['_injector'][_0x3d8536(0x2b0)](Y['DocSelectionManagerService']),_0x467a7b=(_0x2b6be9=_0x2c1462['getDocRanges']())!=null?_0x2b6be9:[];if(_0x467a7b[_0x3d8536(0x212)]===0x0)return;const _0x2141d1=_0x50c14a[_0x3d8536(0x21b)],_0x294004=[{'id':_0x3d8536(0x270),'params':{'unitId':_0x2141d1,'actions':null,'textRanges':_0x467a7b}}],_0x4a2772=this['_transformService'][_0x3d8536(0x329)](_0x50c14a,_0x294004);if(!m[_0x3d8536(0xf7)](_0x4a2772))throw _0x4a2772['error'];const _0x275d17=_0x4a2772[_0x3d8536(0x362)][0x0][_0x3d8536(0x222)]['textRanges'];Array['isArray'](_0x275d17)&&_0x275d17[_0x3d8536(0x212)]&&_0x2c1462['replaceDocRanges'](_0x275d17,{'unitId':_0x2141d1,'subUnitId':_0x2141d1},!0x1);}};Q=zt([Me(0x0,a['Inject'](a[_0x532fcf(0x282)])),Me(0x1,m['ITransformService'])],Q);var Jt=Object[_0x532fcf(0x1c9)],Zt=(_0x40d476,_0x4cba89,_0x28e4b8,_0x57e370)=>{const _0x2f3d0c=_0x532fcf;for(var _0x1a87d9=_0x57e370>0x1?void 0x0:_0x57e370?Jt(_0x4cba89,_0x28e4b8):_0x4cba89,_0x28331c=_0x40d476[_0x2f3d0c(0x212)]-0x1,_0x479967;_0x28331c>=0x0;_0x28331c--)(_0x479967=_0x40d476[_0x28331c])&&(_0x1a87d9=_0x479967(_0x1a87d9)||_0x1a87d9);return _0x1a87d9;},N=(_0x21087d,_0x366bfb)=>(_0x3e6507,_0xd9dad0)=>_0x366bfb(_0x3e6507,_0xd9dad0,_0x21087d);let ee=class extends a[_0x532fcf(0x160)]{constructor(_0x194c18,_0x30454b,_0xd059d5,_0x30220c,_0x507e4c,_0x363c30,_0x2f378b,_0x2cf5e4){const _0x3fe64d=_0x532fcf;super(),_(this,_0x3fe64d(0x239),new d['BehaviorSubject'](u[_0x3fe64d(0x2ba)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x194c18,this[_0x3fe64d(0x1e6)]=_0x30454b,this[_0x3fe64d(0x2ae)]=_0xd059d5,this[_0x3fe64d(0x1ae)]=_0x30220c,this[_0x3fe64d(0x2e8)]=_0x507e4c,this[_0x3fe64d(0x320)]=_0x363c30,this[_0x3fe64d(0x178)]=_0x2f378b,this[_0x3fe64d(0x198)]=_0x2cf5e4,this[_0x3fe64d(0x180)]());}[_0x532fcf(0x180)](){const _0xa49182=_0x532fcf;this[_0xa49182(0x35c)](this['_collaborationController'][_0xa49182(0x257)][_0xa49182(0x1ce)](_0x400668=>{const _0x334a39=_0xa49182,_0x993633=this[_0x334a39(0xe8)][_0x334a39(0x1fe)][_0x334a39(0x1ce)](_0x1499ce=>{const _0x41c67a=_0x334a39;if(_0x1499ce==null)return;const {unitId:_0x46897c,redoState:_0x3fd129,commandId:_0x3cb20b}=_0x1499ce;if(_0x46897c!==_0x400668[_0x41c67a(0x21b)])return;const _0x2aa65a={'id':_0x3cb20b,'type':a[_0x41c67a(0x256)][_0x41c67a(0x114)],'params':{'unitId':_0x46897c,'actions':_0x3fd129['actions'],'textRanges':null}};_0x400668[_0x41c67a(0x245)](_0x2aa65a);});if(_0x400668['disposeWithMe'](_0x993633),_0x400668 instanceof u[_0x334a39(0x2f7)]){const _0x55cbe2={'onTransformIME':_0x2be280=>this[_0x334a39(0x2ae)][_0x334a39(0x32f)](_0x2be280),'onTransformState':_0x50ed15=>this[_0x334a39(0x1ae)]['transformStateCache'](_0x50ed15),'onTransformSelections':_0x59d32e=>this['_docTransformSelectionsService'][_0x334a39(0x330)](_0x59d32e),'onSyncEditingCollabCursor':_0xd39800=>this[_0x334a39(0x320)][_0x334a39(0x352)](_0xd39800),'onTransformRemoteChangesetByIMECache':_0x80d61b=>this[_0x334a39(0x2ae)][_0x334a39(0x15c)](_0x80d61b),'onTransformRemoteChangesetByStateCache':_0x3589f4=>this[_0x334a39(0x1ae)][_0x334a39(0x15c)](_0x3589f4)};_0x400668['addHandlerCallback'](_0x55cbe2);}}));}};function _0x36f2(){const _0x20db4c=['column','tag','NO_OTHER_CLIENTS_EDITING','params','pushState','svg','session.collaboration-timeout','getStateCache','ONLINE','collab-text-range-','USER_NOT_INVITED_CODE','requireSession','addClipboardHook','UnitStatus','toDisposable','round','getMember','RemoteUniscriptService','univer-online-status','VIEW_MAIN','none','onlineStatus','_setupSubUnitSync','CollaborationSessionService','_scheduleHeartbeat','off-line-single','_status$','TEXT_RANGE_LAYER_INDEX','_getMergeRange','indexOf','_onCursorDelete','SetWorksheetActivateCommand','getRangePointData','name','_refRangeService','_registerRenderDependencies','getUnitStatus$','asObservable','onLocalMutation','_assignedColors','WECHAT_HAS_BEEN_BOUND','redoState','_eventUnsubscribe','CollaborationUIEventId','_getSheetObject','InsertRowCommandId','generateRandomId','subUnitId','LOGIN_FAILED','RECT','UniverIcon','from','createElement','registerBeforeClose','toString','CommandType','entityInit$','88TdnbHM','collaboration.single-unit.warning','values','collabStatus.offline','_handleJoinEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','handleInsertRangeMoveRight','@univerjs/engine-formula','current','univer-offline','onMouseMove','getDocRanges','_updateSubUnitFromURLParams','_clearOtherTimers','_initStatusComponent','_online','_context','LOCAL_CACHE_INTERVAL_KEY','fillText','exhaustSavingTask','url(#off-line-single_clip0_910_343)','CollaborationStatusDisplay','unitId','fillStyle','doc.mutation.rich-text-editing','getRelativeToViewportCoord','Module','CollaborationEvent','toStringTag','@univerjs/ui','1em','_docSkeletonManagerService','15836194mQAKdQ','...','@univerjs/sheets','text','_docClipboardService','parse','colorChannel1','bottom','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_init','Injector','touchDependencies','roomMembers','_getScale','focused$','saveTaskMap','RemoveColCommandId','CollaborationUIEventService','next','HEADER_MENU','_anchor','SetSelectionsOperation','IRenderManagerService','assign','storage','Unknown\x20user','SNAPSHOT_INVALID_SNAPSHOT','_textBubble','eventID','OFFLINE','UniverInstanceType','debounce','body','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ILocalCacheService','currentTheme$','beginPath','univer-online-status-title','InsertRangeMoveRightCommandId','onlineStatusTitle','handleIRemoveRow','@univerjs/engine-render','useRef','delete','UNIVER_DOC','takeUntil','CollaborationSocketService','@univerjs/docs','getSkeleton','mutations','LICENSE_EXPORT_SIZE_EXCEEDED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','permission.title','DocIMEInputManagerService','_docTransformIMECacheService','map','get','editingUnit','range','_handleHover','@univerjs-pro/collaboration-client','APPLY_NON_SEQUENTIAL_REVISION','_localStorageService','_commandService','INVITE_CODE_REQUIRED','url(#$1','CollaborationStatus','send','url(#on-line-single_clip0_910_349)','clsx','startRow','size','0\x200\x2016\x2016','activeSheet$','getTypeOfUnitDisposed$','concat','origin','subscribeEvent','UNAUTHENTICATED','textRanges','getCurrentSelections','onPointerLeave$','string','ISocketService','DesktopCollaborationStatusDisplayController','_lastPointer','Inject','TEXT','_beforeCloseService','RemoveRowCommandId','popstate','onStarting','row','_colorAssignService','override','CLOSE_ROOM','getActiveSheet','APPLY_REVISION_CONFILICT','_initCommandExecutedListener','makeDirty','defIds','key','432414iaSzcP','_onCursorUpdate','_collabCursorState$','collaboration-client-ui.config','push','_updateCollabCursors','Plugin','_initResize','mergeOverrideWithDependencies','throttleTime','_docTransformSelectionsService','removeParam','_removeClearOtherTimer','ILogService','collabCursorState$','INVALID_ARGUMENT','_colorIndex','setStateCache','saveImage','registerDependencies','collabStatus.fetchMiss','unit','_startDocCollabCursor','getMemberID','BrowserCollaborationSocketService','DocCollaborationEntity','setAlpha','skeleton','toRgbString','call','purple300','@univerjs/docs-ui','merge','assignAColorForMemberID','MOBILE_HAS_BEEN_BOUND','_entityInit$','OnLineSingle','clearInterval','session.connection-failed','whenReady','_getSessionTicket','clipPath','getConfig','width','_saveCache','_startSheetCollabCursor','getColor','ColorKit','CollaborationDataLoaderController','trim','NOT_COLLAB','handleDeleteRangeMoveLeft','cursorInfo$','deserializeRangeWithSheet','searchParams','_imageIoService','LICENSE_DISTRO_REJECTED','UNRECOGNIZED','univerjs-icon\x20univerjs-icon-','_urlService','_disabled','HTTPService','top','_saveTaskMap','extend','getViewport','_docSyncEditingCollabCursorService','source','createInstance','IImageIoService','getCellPositionByOffset','BehaviorSubject','evenodd','getCurrent','Optional','transformMutationsWithChangeset','_initStatusListener','_configService','_drawTextRange','_themeService','createSocket','transformIMECache','transformSelections','symbol','Rect','offline','_httpService','deepClone','_unitStatus','getSheetObject','invokeId','getParam','collab-text-anchor-','jsx','_instanceService','IUIPartsService','_handleLeaveEvent','PY_RUNTIME_SCRIPT_ERROR','enableLocalCache','black','off-line-single_clip0_910_343','InsertColCommandId','forEach','setShapeProps','getOwnPropertySymbols','complete','_heartbeatTimer','Tooltip','_setupBeforeClosingHandler','IURLService','mapTo','SHEET_VIEWPORT_KEY','split','collab-rect-range-','onPointerEnter$','EMAIL_HAS_BEEN_BOUND','syncEditingCollabCursor','isActive','unload','ICommandService','UPDATE_CURSOR','M0\x200H16V16H0z','366457OlPpPF','disposeUnit','min','COMPLETION_FINISHED','disposeWithMe','collabStatus.syncing','loadUnit','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','9IuWbBo','getValue','m2Prime','INVITE_CODE_ALREADY_BOUND','data','PENDING','univer-flex\x20univer-items-center','_cursorShapes','_transformUndoRedoStack','_syncEditingCollabCursorService','NodePositionConvertToRectRange','DeleteRangeMoveUpCommandId','UniverCollaborationClientPlugin','getUniverSheetInstance','_cachedData','SessionStatus','_cursor','_docStateChangeManagerService','path','APPLY_DUPLICATED','getUndoRedoMutationParamsCache','_selfUnitIDs','_cursors','_initEvent','startColumn','combineLatest','DOC_RANGE_TYPE','urlChange$','getSheetBySheetId','runId','getCollabCursors$','unshift','isTransformMutationsWithChangesetSuccess','getVpScrollXYInfoByPosToVp','event$','Tools','Error','_cursorInfo$','roomMembers$','substring','use','arc','debug','@univerjs/sheets-ui','_scheduleSaving','WebSocketService','LOCAL_CACHE_INTERVAL','_getAnchorBounding','_collaborationUIEventService','_getSaveTimeout','defs','add','isArray','CONFLICT','moveTo','RegularPolygon','IMessageService','_localCacheService','InsertRangeMoveDownCommandId','DataLoaderService','verdancy600','MUTATION','TOO_MANY_REQUESTS','IConfigService','1786580EkJJCj','OTHER_CLIENTS_EDITING','_logService','idSuffix','INVALID_INVITE_CODE','propertyIsEnumerable','SOCKET_FAILED_RETRY','setItem','executionId','AWAITING','setParam','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_scene','_hover','has','sessionTicket','createIdentifier','_entities','transformMutation','onRendered','lineTo','@univerjs/core','_memberService','jsxs','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','12BAoJro','_backgroundColor','color','_roomMembers$','collab-client.tooltip.reconnect','LICENSE_IMPORT_SIZE_EXCEEDED','DocSelectionManagerService','dispose','CollaborationController','JOIN_ROOM_FAILED','useObservable','stringify','_transformHistoryAndStateStack','hasOwnProperty','getLocalCacheKey','RxDisposable','[CollaborationDataLoaderController]','_refreshCollabCursors','displayName','_uiPartsService','newValue','MemberService','DependentOn','dispose$','IDocClipboardService','IUniverInstanceService','_transformService','isTransformMutationFailure','find','xlink:href','_labelPosition','_hovered','fill','@univerjs/drawing','60UEskpn','OTHER_CLIENT_EDITING','DocStateChangeManagerService','getTypeOfUnitAdded$','fromEventSubject','USERS_LEAVE','_createSocketURL','_collabCursorController','_unitOnClients','with','transformRemoteChangeset','IRemoteInstanceService','href','#fff','Disposable','NOT_FOUND','getRenderById','handleDeleteRangeMoveUp','registerRenderModule','@univerjs/rpc','endRow','_updateLocalCursor','_drawRectRange','/run/','getSheetId','handleInsertRangeMoveDown','ticket','on-line-single_clip0_910_349','getItem','closePath','handleMoveRange','className','pipe','getCollabEntity$','@univerjs-pro/collaboration','UniverCollaborationClientUIPlugin','Subject','some','_messageService','status$','rgba(255,\x20255,\x20255,\x200.01)','_toggleOffline','unsubscribe','ITransformService','attrs','setConfig','_initEntityListener','filter','#FFF','_univerInstanceService','_shapes','forwardRef','_removeCollabCursors','defineProperty','Failed','ENSURE_SNAPSHOT_EXECUTION','SetTextSelectionsOperation','debounceTime','CHANGESET_REVISION_CONFILICT','EffectRefRangId','_toggleOnline','_document','collaboration-client.offline-data-not-saved','findNodePositionByCharIndex','UNDEFINED','SUBMIT_CHANGESET_TIMEOUT','drawWith','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UNIVER_SHEET','getOffsetConfig','_localeService','on-line-single','_initDependencies','44211QOYwzY','undoState','_revisionService','type','currentSkeleton$','_config','_renderManagerService','distinctUntilChanged','cursorInfo','contains','YUUMI_ASYNCIO_CANCELLED','_collabSessionService','DisposableCollection','getCoordByCell','getAncestorScale','sessionStatus$','RichTextEditingMutation','jiqing500','YUUMI_URL_COL_OUT_OF_RANGE','_docTransformStateCacheService','2313886BkbavK','ThemeService','selection','ranges','_doCreateSocket','0\x200\x2017\x2016','loadOfflineData','then','YUUMI_RATE_OVER_LIMIT','collabStatus.notCollab','apply','addObject','disableLocalCache','subunit','RevisionService','_render','history','clearTimeout','Shape','imageSourceType','PERMISSION_DENIED','_hideTimer','hide','DeleteRangeMoveLeftCommandId','show','_ensureSubject','getOwnPropertyDescriptor','rxjs','OffLineSingle','uni.network.url-service','children','subscribe','sheetID','APPLY_PERMISSION_DENIED','flatMap','restore','m1Prime','FromArray','backgroundColor','getUnitId','537441xVxWgx','setActiveRange','measureText','@univerjs/network','startsWith','location','prototype','Vector2','Warning','replaceState','save','div','onCommandExecuted','setUndoRedoMutationParamsCache','_id','_collaborationController','collabStatus.conflict','_dataLoaderService','MessageType','LocaleService','getCurrentUnitForType','_transformPreviousActiveRange','_anchorDot','YUUMI_UNABLE_LOAD_URL','SOCKET_FAILED','fromEvent','function','COLORS','@univerjs/design','memberID','gold400','error','saveOfflineData','RefRangeService','_session','connectInjector','_updateURLWithCurrentState','translate(.97)','YUUMI_SUBSCRIPTION_NOT_FOUND','docStateChange$','_sheetSkeletonManagerService','sheetId','onPointerMove$','_color','collaboration.closeRoom','_registerDependencies','init','getMergeData','INVITE_CODE_HAS_BEEN_UES','set','ILocalStorageService','registerRefRange','_injector','useDependency','setTimeout','getFocusedUnit','_handleHeartbeatEvent','20nGpEIk','_send','length','SetDocZoomRatioOperation','_onRefRangeChange','hovered','_range','switchMap','_scheduleClearOtherTimer','CONNECTOR_DATA_TOO_LARGE','endColumn','unitID','_name','session.will-retry','WebURLService'];_0x36f2=function(){return _0x20db4c;};return _0x36f2();}ee=Zt([N(0x0,a['Inject'](b[_0x532fcf(0x154)])),N(0x1,a[_0x532fcf(0x2ce)](u[_0x532fcf(0x138)])),N(0x2,a[_0x532fcf(0x2ce)](J)),N(0x3,a[_0x532fcf(0x2ce)](Z)),N(0x4,a[_0x532fcf(0x2ce)](Q)),N(0x5,a[_0x532fcf(0x2ce)](pe)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],ee);var Qt=Object[_0x532fcf(0x1c9)],es=(_0x1df3bd,_0x381ae3,_0x583ac4,_0x386391)=>{for(var _0x21473e=_0x386391>0x1?void 0x0:_0x386391?Qt(_0x381ae3,_0x583ac4):_0x381ae3,_0x5b504e=_0x1df3bd['length']-0x1,_0x55ce37;_0x5b504e>=0x0;_0x5b504e--)(_0x55ce37=_0x1df3bd[_0x5b504e])&&(_0x21473e=_0x55ce37(_0x21473e)||_0x21473e);return _0x21473e;},he=(_0x2ceabc,_0x2fbe10)=>(_0xd3cba3,_0x35e4ea)=>_0x2fbe10(_0xd3cba3,_0x35e4ea,_0x2ceabc);let me=class extends a[_0x532fcf(0x160)]{constructor(_0x31669c,_0x1b2dae,_0xca02db){const _0x16d399=_0x532fcf;super(),_(this,_0x16d399(0x36e),new Map()),_(this,_0x16d399(0x31d),new Map()),_(this,'_disabled',!0x1),(this[_0x16d399(0x32b)]=_0x31669c,this[_0x16d399(0x2b6)]=_0x1b2dae,this[_0x16d399(0x19d)]=_0xca02db);}[_0x532fcf(0x1bb)](){const _0x5032f5=_0x532fcf;this[_0x5032f5(0x31a)]=!0x0;}[_0x532fcf(0x340)](){this['_disabled']=!0x1;}get[_0x532fcf(0x287)](){const _0x2f3940=_0x532fcf;return this[_0x2f3940(0x31d)];}[_0x532fcf(0x137)](){const _0x5ec448=_0x532fcf;this[_0x5ec448(0x26b)]()[_0x5ec448(0x1b6)](()=>super[_0x5ec448(0x137)]());}async[_0x532fcf(0x1b5)](_0x839f7e){const _0x3ae3d8=_0x532fcf;return this[_0x3ae3d8(0x31a)]?null:this[_0x3ae3d8(0x2b6)][_0x3ae3d8(0x16e)](u[_0x3ae3d8(0x13e)](_0x839f7e));}async[_0x532fcf(0x1f7)](_0x34404f,_0x3c9fbe){const _0x43c6c4=_0x532fcf;return!!this[_0x43c6c4(0x2b6)]['setItem'](_0x34404f,_0x3c9fbe);}['updateOfflineData'](_0x5ac57e,_0x4341c3,_0x28c53d,_0x56bbbc){const _0x4c153f=_0x532fcf,_0x315311=this['_revisionService']['getCurrentRevOfUnit'](_0x5ac57e);this['_cachedData']['set'](_0x5ac57e,{'unitID':_0x5ac57e,'type':_0x4341c3,'awaitingChangeset':_0x28c53d,'mutations':_0x56bbbc,'rev':_0x315311}),this[_0x4c153f(0x31d)][_0x4c153f(0x125)](_0x5ac57e)||this['_scheduleSaving'](_0x5ac57e);}[_0x532fcf(0x103)](_0x27da6f){const _0x5ff686=_0x532fcf,_0x1647cd=this[_0x5ff686(0x108)]();_0x1647cd===0x0?this[_0x5ff686(0x30a)](_0x27da6f):this[_0x5ff686(0x31d)]['set'](_0x27da6f,setTimeout(()=>this[_0x5ff686(0x30a)](_0x27da6f),_0x1647cd));}[_0x532fcf(0x108)](){const _0x4178b0=_0x532fcf;var _0xf5fa38;return(_0xf5fa38=this[_0x4178b0(0x32b)][_0x4178b0(0x308)](u[_0x4178b0(0x269)]))!=null?_0xf5fa38:u[_0x4178b0(0x105)];}['_saveCache'](_0x2b472f){const _0x5e94ff=_0x532fcf,_0x4e204c=this[_0x5e94ff(0x31d)][_0x5e94ff(0x2b0)](_0x2b472f);return _0x4e204c!==void 0x0&&window[_0x5e94ff(0x1c0)](_0x4e204c),this[_0x5e94ff(0x2b6)][_0x5e94ff(0x11e)](u[_0x5e94ff(0x13e)](_0x2b472f),this[_0x5e94ff(0x36e)][_0x5e94ff(0x2b0)](_0x2b472f))['then'](()=>this[_0x5e94ff(0x31d)]['delete'](_0x2b472f));}async[_0x532fcf(0x26b)](){const _0x545bf9=_0x532fcf,_0x27162e=[];this['_saveTaskMap'][_0x545bf9(0x344)]((_0x546aa9,_0x3dc276)=>{const _0xc11358=_0x545bf9;window[_0xc11358(0x1c0)](_0x546aa9),_0x27162e['push'](this[_0xc11358(0x30a)](_0x3dc276)['then'](()=>{const _0x1f1928=_0xc11358;this[_0x1f1928(0x31d)][_0x1f1928(0x2a3)](_0x3dc276);}));}),await Promise['all'](_0x27162e);}};me=es([he(0x0,a['IConfigService']),he(0x1,a[_0x532fcf(0x209)]),he(0x2,a[_0x532fcf(0x2ce)](m[_0x532fcf(0x1bd)]))],me);class Be extends a[_0x532fcf(0x13f)]{constructor(){const _0x859719=_0x532fcf;super(),_(this,'urlChange$'),this[_0x859719(0xf2)]=d['fromEvent'](window,_0x859719(0x2d2))[_0x859719(0x172)](d[_0x859719(0x2a5)](this[_0x859719(0x147)]),d['shareReplay'](0x1),d[_0x859719(0x34c)](void 0x0));}[_0x532fcf(0x121)](_0x157309,_0x59288c,_0x229f6f=!0x1){const _0x4c5772=_0x532fcf,_0x18d855=new URL(window[_0x4c5772(0x1dc)]['href']);_0x18d855[_0x4c5772(0x314)][_0x4c5772(0x208)](_0x157309,_0x59288c),_0x229f6f?window[_0x4c5772(0x1bf)]['replaceState']('','',_0x18d855['toString']()):window[_0x4c5772(0x1bf)][_0x4c5772(0x223)]('','',_0x18d855[_0x4c5772(0x255)]());}[_0x532fcf(0x2e9)](_0x16b575,_0x14a0f4=!0x1){const _0x49c57d=_0x532fcf,_0x5bd4fb=new URL(window[_0x49c57d(0x1dc)][_0x49c57d(0x15e)]);_0x5bd4fb[_0x49c57d(0x314)][_0x49c57d(0x2a3)](_0x16b575),_0x14a0f4?window[_0x49c57d(0x1bf)][_0x49c57d(0x1e0)]('','',_0x5bd4fb[_0x49c57d(0x255)]()):window[_0x49c57d(0x1bf)][_0x49c57d(0x223)]('','',_0x5bd4fb[_0x49c57d(0x255)]());}[_0x532fcf(0x339)](_0x4bd1be){const _0x5ed3bd=_0x532fcf;var _0x27e3d0;return(_0x27e3d0=new URL(window['location'][_0x5ed3bd(0x15e)])[_0x5ed3bd(0x314)]['get'](_0x4bd1be))!=null?_0x27e3d0:void 0x0;}}var ts=Object[_0x532fcf(0x187)],ss=Object[_0x532fcf(0x1c9)],ns=(_0x234e62,_0x125757,_0x29a01f)=>_0x125757 in _0x234e62?ts(_0x234e62,_0x125757,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29a01f}):_0x234e62[_0x125757]=_0x29a01f,is=(_0x2a2742,_0x4a916f,_0x505a8f,_0x3e28b7)=>{const _0x17328b=_0x532fcf;for(var _0x19d80d=_0x3e28b7>0x1?void 0x0:_0x3e28b7?ss(_0x4a916f,_0x505a8f):_0x4a916f,_0x1bfe10=_0x2a2742[_0x17328b(0x212)]-0x1,_0x56e201;_0x1bfe10>=0x0;_0x1bfe10--)(_0x56e201=_0x2a2742[_0x1bfe10])&&(_0x19d80d=_0x56e201(_0x19d80d)||_0x19d80d);return _0x19d80d;},ue=(_0x544443,_0x51844e)=>(_0xa76e7d,_0x2dbb65)=>_0x51844e(_0xa76e7d,_0x2dbb65,_0x544443),rs=(_0x542103,_0x4a4183,_0x549a20)=>ns(_0x542103,_0x4a4183+'',_0x549a20);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x532fcf(0x175)]=class extends a[_0x532fcf(0x2e4)]{constructor(_0xaa6fcd=Ne,_0x97c801,_0x2605ef,_0x58a314){const _0x417ee2=_0x532fcf;super(),this[_0x417ee2(0x1a0)]=_0xaa6fcd,this[_0x417ee2(0x1a1)]=_0x97c801,this['_injector']=_0x2605ef,this['_configService']=_0x58a314;const {..._0x3109b3}=a['merge']({},Ne,this['_config']);this[_0x417ee2(0x32b)][_0x417ee2(0x17f)](Ft,_0x3109b3);}[_0x532fcf(0x2d3)](){const _0x3cb53b=_0x532fcf;this[_0x3cb53b(0x204)](),this[_0x3cb53b(0x19a)]();}[_0x532fcf(0x12a)](){const _0x15f399=_0x532fcf;this[_0x15f399(0x242)]();}['_registerDependencies'](){const _0x284020=_0x532fcf;var _0xf8263e;const _0x4eda70=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x284020(0x2cb)],{'useClass':q[_0x284020(0x104)]}],[u[_0x284020(0x29a)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x284020(0x30e)]]];a[_0x284020(0x2f1)](this[_0x284020(0x20b)],a[_0x284020(0x2e6)](_0x4eda70,(_0xf8263e=this[_0x284020(0x1a0)])==null?void 0x0:_0xf8263e[_0x284020(0x2d6)]));}['_registerRenderDependencies'](){const _0x402199=_0x532fcf;this['disposeWithMe'](this[_0x402199(0x1a1)][_0x402199(0x164)](a[_0x402199(0x296)][_0x402199(0x2a4)],[ve])),this[_0x402199(0x35c)](this[_0x402199(0x1a1)]['registerRenderModule'](a[_0x402199(0x296)][_0x402199(0x196)],[ge]));}[_0x532fcf(0x19a)](){const _0x247854=_0x532fcf;a[_0x247854(0x283)](this[_0x247854(0x20b)],[[x],[exports[_0x247854(0x2cc)]],[ee],[z],[exports[_0x247854(0x30e)]]]);}},rs(exports[_0x532fcf(0x175)],'pluginName',os),exports[_0x532fcf(0x175)]=is([a[_0x532fcf(0x146)](u[_0x532fcf(0x36c)]),ue(0x1,p[_0x532fcf(0x28e)]),ue(0x2,a['Inject'](a[_0x532fcf(0x282)])),ue(0x3,a[_0x532fcf(0x116)])],exports[_0x532fcf(0x175)]);var as=Object[_0x532fcf(0x1c9)],cs=(_0x1366bd,_0x16a920,_0x5b8e5a,_0xf2544f)=>{const _0x384bd1=_0x532fcf;for(var _0x1ddb42=_0xf2544f>0x1?void 0x0:_0xf2544f?as(_0x16a920,_0x5b8e5a):_0x16a920,_0xc90540=_0x1366bd[_0x384bd1(0x212)]-0x1,_0x4399f2;_0xc90540>=0x0;_0xc90540--)(_0x4399f2=_0x1366bd[_0xc90540])&&(_0x1ddb42=_0x4399f2(_0x1ddb42)||_0x1ddb42);return _0x1ddb42;},W=(_0x181466,_0x29771c)=>(_0xf9ba90,_0xce3da4)=>_0x29771c(_0xf9ba90,_0xce3da4,_0x181466);exports[_0x532fcf(0x2f6)]=class extends u[_0x532fcf(0x2a6)]{constructor(_0x1b5a73,_0x4327fc,_0x11ae8e,_0x42b049,_0x33b9b0){super(_0x1b5a73,_0x4327fc,_0x11ae8e,_0x42b049,_0x33b9b0);}async[_0x532fcf(0x32e)](_0x1220bc){const _0x432937=_0x532fcf,_0xc934bc=await this[_0x432937(0x306)](),_0x428d6e=this[_0x432937(0x158)](_0x1220bc,_0xc934bc);return this[_0x432937(0x1b3)](_0x428d6e);}[_0x532fcf(0x158)](_0x5e8059,_0x7ab5df){const _0x16a6c1=_0x532fcf,_0x758d7c=typeof window>'u'?new URL(_0x5e8059):new URL(_0x5e8059,window[_0x16a6c1(0x1dc)][_0x16a6c1(0x2c4)]);_0x758d7c['searchParams'][_0x16a6c1(0x208)](_0x16a6c1(0x126),_0x7ab5df);const _0x2184b1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x16a6c1(0x1dc)]['search']);return _0x2184b1[_0x16a6c1(0x2b0)]('runId')&&_0x758d7c['searchParams'][_0x16a6c1(0x208)](_0x16a6c1(0xf4),_0x2184b1[_0x16a6c1(0x2b0)](_0x16a6c1(0xf4))),_0x758d7c[_0x16a6c1(0x255)]();}async[_0x532fcf(0x306)](){const _0xca9229=_0x532fcf;var _0x248c9d,_0x2ea742,_0xb7ab9b;const _0x508f85=this[_0xca9229(0x32b)][_0xca9229(0x308)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x2259fe=(_0x248c9d=_0x508f85==null?void 0x0:_0x508f85['wsSessionTicketUrl'])!=null?_0x248c9d:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0xb7ab9b=(_0x2ea742=(await this[_0xca9229(0x334)]['get'](_0x2259fe,{'headers':{'Content-Type':'application/json'}}))[_0xca9229(0x298)])==null?void 0x0:_0x2ea742[_0xca9229(0x16c)])!=null?_0xb7ab9b:'';}},exports[_0x532fcf(0x2f6)]=cs([W(0x0,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),W(0x1,a['Inject'](q[_0x532fcf(0x31b)])),W(0x2,a['IConfigService']),W(0x3,a[_0x532fcf(0x2eb)]),W(0x4,m['ISnapshotServerService'])],exports[_0x532fcf(0x2f6)]);const Le=0x7530,Pe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a[_0x532fcf(0x160)]{constructor(){const _0x2e5e76=_0x532fcf;super(),_(this,_0x2e5e76(0x1e5),a[_0x2e5e76(0x24d)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x2e5e76(0x15a),new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,_0x2e5e76(0x336),new Map()),this[_0x2e5e76(0x281)]();}[_0x532fcf(0x137)](){const _0x21b244=_0x532fcf;super[_0x21b244(0x137)](),this[_0x21b244(0x265)]['forEach']((_0x4ced5c,_0x4a9a26)=>this[_0x21b244(0x2ea)](_0x4a9a26)),this[_0x21b244(0x348)]&&window[_0x21b244(0x303)](this[_0x21b244(0x348)]);}[_0x532fcf(0x243)](_0x2a14b5){const _0xc1f9e8=_0x532fcf;return this[_0xc1f9e8(0x1c8)](_0x2a14b5)[_0xc1f9e8(0x172)](d[_0xc1f9e8(0x1a2)]());}[_0x532fcf(0x2b1)](_0x5eaaca){const _0x2a5374=_0x532fcf;this[_0x2a5374(0xec)][_0x2a5374(0x2bf)]===0x0&&this[_0x2a5374(0x237)](),this[_0x2a5374(0xec)]['add'](_0x5eaaca),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5eaaca],'isForwarded':!0x1});}[_0x532fcf(0x359)](_0x5b05ac){const _0x2ac283=_0x532fcf;this[_0x2ac283(0xec)][_0x2ac283(0x2a3)](_0x5b05ac),this['_selfUnitIDs'][_0x2ac283(0x2bf)]===0x0&&this[_0x2ac283(0x348)]&&window[_0x2ac283(0x303)](this[_0x2ac283(0x348)]);}[_0x532fcf(0x281)](){const _0x43c34b=_0x532fcf;this[_0x43c34b(0x35c)](a[_0x43c34b(0x22d)](d[_0x43c34b(0x1f0)](window,_0x43c34b(0x290))['subscribe'](_0xe07545=>{const _0x33e8fe=_0x43c34b;if(_0xe07545[_0x33e8fe(0x2dd)]!==Pe||!_0xe07545[_0x33e8fe(0x144)])return;const _0xf4b364=JSON[_0x33e8fe(0x27d)](_0xe07545['newValue']);this['_handleEvent'](_0xf4b364);}))),window['addEventListener'](_0x43c34b(0x354),()=>this[_0x43c34b(0x211)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x43c34b(0x252)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x18e084){const _0x596dac=_0x532fcf;switch(_0x18e084[_0x596dac(0x19e)]){case 0x0:this[_0x596dac(0x25c)](_0x18e084);break;case 0x1:this['_handleLeaveEvent'](_0x18e084);break;case 0x2:this[_0x596dac(0x20f)](_0x18e084);break;}}['_handleJoinEvent'](_0x168697){const _0x33607e=_0x532fcf,{unitIDs:_0xf14594,memberID:_0x29fd09,isForwarded:_0x51fec2}=_0x168697;_0xf14594[_0x33607e(0x344)](_0x62dfc4=>{const _0xca12ab=_0x33607e;if(!_0x51fec2&&this[_0xca12ab(0x15a)]['has'](_0x62dfc4)&&this[_0xca12ab(0x1c8)](_0x62dfc4)[_0xca12ab(0x28a)](u[_0xca12ab(0x22c)][_0xca12ab(0x118)]),!this['_unitOnClients'][_0xca12ab(0x125)](_0x62dfc4)||!this[_0xca12ab(0x15a)]['get'](_0x62dfc4)[_0xca12ab(0x125)](_0x29fd09)){const _0x12c30d=this['_unitOnClients'][_0xca12ab(0x2b0)](_0x62dfc4)||new Set();_0x12c30d[_0xca12ab(0x10a)](_0x29fd09),this['_unitOnClients']['set'](_0x62dfc4,_0x12c30d),this['_scheduleClearOtherTimer'](_0x29fd09);}}),_0x51fec2||this[_0x33607e(0x211)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x33607e(0xec)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4eb927){const _0x34df00=_0x532fcf;this[_0x34df00(0x2ea)](_0x4eb927);const _0xd14ee=window[_0x34df00(0x20d)](()=>{const _0x312984=_0x34df00;this['_unitOnClients'][_0x312984(0x344)](_0x573b55=>{_0x573b55['delete'](_0x4eb927);});},Le*0x2);this['_clearOtherTimers'][_0x34df00(0x208)](_0x4eb927,_0xd14ee);}['_removeClearOtherTimer'](_0x4d6942){const _0xead117=_0x532fcf;if(this[_0xead117(0x265)]['has'](_0x4d6942)){const _0x2c022f=this[_0xead117(0x265)]['get'](_0x4d6942);_0x2c022f&&window[_0xead117(0x1c0)](_0x2c022f),this[_0xead117(0x265)][_0xead117(0x208)](_0x4d6942,null);}}[_0x532fcf(0x33e)](_0x16789b){const _0x439f53=_0x532fcf,{memberID:_0x2c5f95,unitIDs:_0x5c5807}=_0x16789b;_0x5c5807[_0x439f53(0x344)](_0x4330ab=>{const _0x9018d3=_0x439f53;var _0x50ca35;const _0x3bce30=this[_0x9018d3(0x15a)][_0x9018d3(0x2b0)](_0x4330ab);_0x3bce30&&(_0x3bce30[_0x9018d3(0x2a3)](_0x2c5f95),(_0x50ca35=this[_0x9018d3(0x1c8)](_0x4330ab))==null||_0x50ca35['next'](_0x3bce30[_0x9018d3(0x2bf)]===0x0?u[_0x9018d3(0x22c)][_0x9018d3(0x221)]:u[_0x9018d3(0x22c)][_0x9018d3(0x118)]));}),this[_0x439f53(0x2ea)](_0x2c5f95);}['_handleHeartbeatEvent'](_0x199726){const _0x16222e=_0x532fcf;this[_0x16222e(0x218)](_0x199726[_0x16222e(0x1f4)]);}[_0x532fcf(0x211)](_0x25d201){localStorage['setItem'](Pe,JSON['stringify'](_0x25d201));}[_0x532fcf(0x237)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x42455d=_0x4bf1;this[_0x42455d(0x211)]({'type':0x2,'memberID':this[_0x42455d(0x1e5)]});},Le);}['_ensureSubject'](_0x467fd1){const _0x277981=_0x532fcf;return this[_0x277981(0x336)][_0x277981(0x125)](_0x467fd1)||this[_0x277981(0x336)][_0x277981(0x208)](_0x467fd1,new d['BehaviorSubject'](u['UnitStatus'][_0x277981(0x221)])),this['_unitStatus'][_0x277981(0x2b0)](_0x467fd1);}}var ke=(_0x2b5e5c=>(_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x192)]=0x0]=_0x532fcf(0x192),_0x2b5e5c[_0x2b5e5c['OK']=0x1]='OK',_0x2b5e5c[_0x2b5e5c['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1c3)]=0x3]=_0x532fcf(0x1c3),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x161)]=0x4]=_0x532fcf(0x161),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2c6)]=0x5]=_0x532fcf(0x2c6),_0x2b5e5c[_0x2b5e5c['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2ed)]=0x7]=_0x532fcf(0x2ed),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x115)]=0x8]=_0x532fcf(0x115),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x35b)]=0x9]='COMPLETION_FINISHED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x24f)]=0xa]=_0x532fcf(0x24f),_0x2b5e5c[_0x2b5e5c['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x532fcf(0x18c),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x292)]=0x1771]=_0x532fcf(0x292),_0x2b5e5c[_0x2b5e5c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x189)]=0x1773]=_0x532fcf(0x189),_0x2b5e5c[_0x2b5e5c['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2b5)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2b5e5c[_0x2b5e5c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x532fcf(0x2d9),_0x2b5e5c[_0x2b5e5c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x532fcf(0x1d0),_0x2b5e5c[_0x2b5e5c['APPLY_DUPLICATED']=0x1b5d]=_0x532fcf(0xea),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x219)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2b5e5c[_0x2b5e5c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x25d)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x135)]=0x232b]=_0x532fcf(0x135),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2aa)]=0x232c]=_0x532fcf(0x2aa),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x316)]=0x232d]=_0x532fcf(0x316),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1ee)]=0x2711]=_0x532fcf(0x1ee),_0x2b5e5c[_0x2b5e5c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x532fcf(0x1ad),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1b7)]=0x2713]=_0x532fcf(0x1b7),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1fd)]=0x2714]=_0x532fcf(0x1fd),_0x2b5e5c[_0x2b5e5c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1a5)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x2b5e5c[_0x2b5e5c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x532fcf(0x33f),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x207)]=0x2ee1]=_0x532fcf(0x207),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x11b)]=0x2ee2]=_0x532fcf(0x11b),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2b8)]=0x2ee3]=_0x532fcf(0x2b8),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x229)]=0x2ee4]=_0x532fcf(0x229),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x363)]=0x2ee5]=_0x532fcf(0x363),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x247)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x300)]=0x32ca]=_0x532fcf(0x300),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x351)]=0x32cb]=_0x532fcf(0x351),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x317)]=-0x1]=_0x532fcf(0x317),_0x2b5e5c))(ke||{}),_s=Object[_0x532fcf(0x1c9)],hs=(_0x261aa1,_0x179077,_0x56364c,_0x1a0044)=>{for(var _0x16fc8b=_0x1a0044>0x1?void 0x0:_0x1a0044?_s(_0x179077,_0x56364c):_0x179077,_0x2c3b6b=_0x261aa1['length']-0x1,_0x300ba3;_0x2c3b6b>=0x0;_0x2c3b6b--)(_0x300ba3=_0x261aa1[_0x2c3b6b])&&(_0x16fc8b=_0x300ba3(_0x16fc8b)||_0x16fc8b);return _0x16fc8b;},de=(_0x17d41f,_0x20037e)=>(_0x28cb56,_0x5256b4)=>_0x20037e(_0x28cb56,_0x5256b4,_0x17d41f);exports[_0x532fcf(0x230)]=class extends a['Disposable']{constructor(_0x14cc17,_0x395329,_0x18ac69){const _0x57a33=_0x532fcf;super(),this[_0x57a33(0x33c)]=_0x14cc17,this[_0x57a33(0x334)]=_0x395329,this[_0x57a33(0x32b)]=_0x18ac69;}async['runOnServer'](_0x81b819,_0x6dadc1,_0xd708ee,..._0x221818){const _0x219322=_0x532fcf;var _0x3fe7b7,_0x1d06cf,_0x360539,_0x56475f;const _0x43e8ef=this[_0x219322(0x33c)][_0x219322(0x20e)]();if(!_0x43e8ef)throw new Error(_0x219322(0x195));const _0x5b6cef=((_0x3fe7b7=this[_0x219322(0x32b)][_0x219322(0x308)](u[_0x219322(0x2ab)]))!=null?_0x3fe7b7:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x81b819+_0x219322(0x169)+_0x6dadc1,_0x169423=new URL(window[_0x219322(0x1dc)][_0x219322(0x15e)]),_0xc0bbd4={'scriptId':_0x81b819,'runId':(_0x1d06cf=_0x169423[_0x219322(0x314)]['get'](_0x219322(0xf4)))!=null?_0x1d06cf:'','function':_0x6dadc1,'unitId':_0x43e8ef['getUnitId'](),'argsOfFunction':JSON[_0x219322(0x13b)](_0x221818),'invokeId':(_0x360539=_0xd708ee[_0x219322(0x338)])!=null?_0x360539:'','executionId':(_0x56475f=_0xd708ee[_0x219322(0x11f)])!=null?_0x56475f:''};try{const _0x5d1338=await this[_0x219322(0x334)]['post'](_0x5b6cef,{'body':_0xc0bbd4});return _0x5d1338[_0x219322(0x298)][_0x219322(0x1f6)]&&_0x5d1338[_0x219322(0x298)]['error']['code']!==ke['OK']?_0x219322(0x188):_0x5d1338[_0x219322(0x298)]['result'];}catch{return _0x219322(0x188);}}},exports['RemoteUniscriptService']=hs([de(0x0,a[_0x532fcf(0x149)]),de(0x1,a[_0x532fcf(0x2ce)](q[_0x532fcf(0x31b)])),de(0x2,a[_0x532fcf(0x116)])],exports[_0x532fcf(0x230)]),exports[_0x532fcf(0x26d)]=je,exports[_0x532fcf(0x34b)]=Ee,exports['SheetCollabCursorShape']=Ae,exports['WebBrowserSingleActiveUnitService']=ls,exports[_0x532fcf(0x21e)]=Be;
1
+ 'use strict';const _0x17da78=_0x135d;(function(_0x59fd50,_0x57a25c){const _0x2eb22c=_0x135d,_0x3b300f=_0x59fd50();while(!![]){try{const _0x109cbd=parseInt(_0x2eb22c(0x195))/0x1+-parseInt(_0x2eb22c(0x184))/0x2+-parseInt(_0x2eb22c(0x21f))/0x3+-parseInt(_0x2eb22c(0x2b4))/0x4+-parseInt(_0x2eb22c(0x1d6))/0x5*(-parseInt(_0x2eb22c(0x28a))/0x6)+parseInt(_0x2eb22c(0x244))/0x7+parseInt(_0x2eb22c(0x18f))/0x8*(parseInt(_0x2eb22c(0x321))/0x9);if(_0x109cbd===_0x57a25c)break;else _0x3b300f['push'](_0x3b300f['shift']());}catch(_0x42a291){_0x3b300f['push'](_0x3b300f['shift']());}}}(_0x2c59,0x7a408));var Ve=Object[_0x17da78(0x231)],Xe=(_0x5a938a,_0x4287fd,_0x245e8b)=>_0x4287fd in _0x5a938a?Ve(_0x5a938a,_0x4287fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x245e8b}):_0x5a938a[_0x4287fd]=_0x245e8b,h=(_0x1f0b8d,_0x379671,_0x5a5ec6)=>Xe(_0x1f0b8d,typeof _0x379671!='symbol'?_0x379671+'':_0x379671,_0x5a5ec6);Object['defineProperty'](exports,Symbol[_0x17da78(0x21a)],{'value':'Module'});const u=require(_0x17da78(0x2d5)),a=require(_0x17da78(0x10b)),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),b=require('@univerjs/docs-ui'),Ge=require(_0x17da78(0x2b7)),d=require(_0x17da78(0x2d8)),W=require(_0x17da78(0x312)),m=require(_0x17da78(0x303)),Ee=require('@univerjs/engine-formula'),g=require(_0x17da78(0x105)),$=require('rxjs/operators'),X=require(_0x17da78(0x246)),P=require(_0x17da78(0x2bf)),T=require(_0x17da78(0x289)),D=require(_0x17da78(0x2b8)),M=require('react'),qe=require(_0x17da78(0x219));var Ke=Object[_0x17da78(0x2d6)],ze=(_0x320af4,_0x4514ef,_0x2632fd,_0x2911b9)=>{const _0x50aeb9=_0x17da78;for(var _0xa85f7e=_0x2911b9>0x1?void 0x0:_0x2911b9?Ke(_0x4514ef,_0x2632fd):_0x4514ef,_0x25c5df=_0x320af4[_0x50aeb9(0x12c)]-0x1,_0x634ec1;_0x25c5df>=0x0;_0x25c5df--)(_0x634ec1=_0x320af4[_0x25c5df])&&(_0xa85f7e=_0x634ec1(_0xa85f7e)||_0xa85f7e);return _0xa85f7e;},Te=(_0x125657,_0x4882f4)=>(_0x421ed3,_0x23ae1c)=>_0x4882f4(_0x421ed3,_0x23ae1c,_0x125657);let de=class extends a[_0x17da78(0x206)]{constructor(_0x12b367,_0x2ee9be){const _0x5c16a6=_0x17da78;super(),this['_docClipboardService']=_0x12b367,this[_0x5c16a6(0x1ac)]=_0x2ee9be,this[_0x5c16a6(0xd7)]();}[_0x17da78(0xd7)](){const _0x2cbd22=_0x17da78,_0x5009ee=this;this[_0x2cbd22(0x1cb)](this[_0x2cbd22(0xbf)][_0x2cbd22(0x1c3)]({'onBeforePasteImage':async _0x18b7c1=>{const _0x37b387=_0x2cbd22,_0x53685d=await _0x5009ee[_0x37b387(0x1ac)]['saveImage'](_0x18b7c1);return _0x53685d?{'source':_0x53685d[_0x37b387(0x317)],'imageSourceType':_0x53685d[_0x37b387(0x258)]}:null;}}));}};de=ze([Te(0x0,b[_0x17da78(0x16e)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x17da78(0x1a1),_0x17da78(0x1a5),'verdancy600',_0x17da78(0x313),_0x17da78(0x27f),_0x17da78(0x271)];class me extends a[_0x17da78(0x175)]{constructor(){const _0x2e0a1e=_0x17da78;super(...arguments),h(this,_0x2e0a1e(0x279),new Map()),h(this,'_colorIndex',0x0);}[_0x17da78(0x12d)](_0x5f5d8a){const _0x318a4f=_0x17da78;if(this[_0x318a4f(0x279)][_0x318a4f(0x24f)](_0x5f5d8a))return this[_0x318a4f(0x279)][_0x318a4f(0xc7)](_0x5f5d8a);const _0x46f23d=Oe[this[_0x318a4f(0x109)]];return this[_0x318a4f(0x109)]=(this['_colorIndex']+0x1)%Oe[_0x318a4f(0x12c)],this[_0x318a4f(0x279)][_0x318a4f(0x1bb)](_0x5f5d8a,_0x46f23d),_0x46f23d;}}function Pe(_0x183a0f){const _0x216267=_0x17da78;let _0x495b61='';for(const _0x5656b7 of _0x183a0f){const {startOffset:_0x443194,endOffset:_0x4678a6,isActive:_0x307bd5,rangeType:_0x1079e5,segmentId:_0x3fe768,segmentPage:_0x30f553}=_0x5656b7;_0x495b61[_0x216267(0x12c)]&&(_0x495b61+=','),_0x495b61+=_0x443194+':'+_0x4678a6+':'+(_0x307bd5?'1':'0')+':'+_0x1079e5+':'+_0x3fe768+':'+_0x30f553;}return _0x495b61;}function Je(_0x5f3099){const _0xf646b7=_0x17da78,_0x5dda7a=_0x5f3099[_0xf646b7(0x124)](','),_0x2db49a=[];for(const _0x4c8bc4 of _0x5dda7a){const [_0x3062d3,_0x5e7020,_0x484d11,_0x20147b,_0x54077b,_0x44a72a]=_0x4c8bc4['split'](':');_0x2db49a[_0xf646b7(0x32a)]({'startOffset':Number(_0x3062d3),'endOffset':Number(_0x5e7020),'collapsed':_0x3062d3===_0x5e7020,'isActive':_0x484d11==='1','rangeType':_0x20147b===a[_0xf646b7(0x30d)][_0xf646b7(0xc1)]?a[_0xf646b7(0x30d)]['TEXT']:a[_0xf646b7(0x30d)]['RECT'],'segmentId':typeof _0x54077b==_0xf646b7(0x20c)?String(_0x54077b):'','segmentPage':Number(_0x44a72a!=null?_0x44a72a:-0x1)});}return _0x2db49a[_0xf646b7(0x13d)](_0x55bd29=>_0x55bd29['isActive'])||(_0x2db49a[0x0]['isActive']=!0x0),_0x2db49a;}class Ce extends a[_0x17da78(0x206)]{constructor(){const _0x132b3e=_0x17da78;super(...arguments),h(this,'_collabCursorState$',new d[(_0x132b3e(0x2f6))](null)),h(this,_0x132b3e(0x2f5),this[_0x132b3e(0x154)]['asObservable']());}[_0x17da78(0x265)](_0xda2598){const {unitID:_0x401e8a,memberID:_0x16e809,textRanges:_0x266726}=_0xda2598,_0x5acd42=Pe(_0x266726);if(_0x5acd42==='')return;const _0x72d792={'unitID':_0x401e8a,'memberID':_0x16e809,'selection':_0x5acd42};this['_collabCursorState$']['next'](_0x72d792);}}var Ze=Object[_0x17da78(0x2d6)],Qe=(_0x4fcb8b,_0x317d45,_0x280c50,_0x31bd7a)=>{const _0x25aaa8=_0x17da78;for(var _0x20b3bd=_0x31bd7a>0x1?void 0x0:_0x31bd7a?Ze(_0x317d45,_0x280c50):_0x317d45,_0x49df27=_0x4fcb8b[_0x25aaa8(0x12c)]-0x1,_0x2cd89b;_0x49df27>=0x0;_0x49df27--)(_0x2cd89b=_0x4fcb8b[_0x49df27])&&(_0x20b3bd=_0x2cd89b(_0x20b3bd)||_0x20b3bd);return _0x20b3bd;},L=(_0x1c86f5,_0x5961be)=>(_0x234b53,_0x5ac6ee)=>_0x5961be(_0x234b53,_0x5ac6ee,_0x1c86f5);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0xea2c90,_0x79f4ec,_0x3c1787,_0x1ba2f6,_0x16815c,_0x49a119,_0x2c7381,_0xa11a5,_0x3db86c){const _0x10fa7e=_0x17da78;super(),h(this,_0x10fa7e(0x2c4),!0x1),h(this,'_init',!0x1),h(this,_0x10fa7e(0x207),new d[(_0x10fa7e(0x2f6))](new Map())),h(this,_0x10fa7e(0x1b8),this[_0x10fa7e(0x207)][_0x10fa7e(0x2e1)]()),h(this,'_roomMembers$',new d[(_0x10fa7e(0x2f6))]([])),h(this,_0x10fa7e(0x160),this[_0x10fa7e(0x102)]['pipe'](d['debounceTime'](et))),h(this,_0x10fa7e(0x2e8),a['debounce'](_0x3669b1=>{const _0x1ba5c2=_0x10fa7e,_0x1714ee={'eventID':m[_0x1ba5c2(0x267)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1ba5c2(0x247)],'memberID':this[_0x1ba5c2(0x1be)]['getMemberID'](),'selection':Pe(_0x3669b1)}};this[_0x1ba5c2(0x1be)][_0x1ba5c2(0xbb)](_0x1714ee,this['unitID']);},tt)),(this[_0x10fa7e(0x247)]=_0xea2c90,this['_session']=_0x79f4ec,this['_injector']=_0x3c1787,this[_0x10fa7e(0x1d4)]=_0x1ba2f6,this['_memberService']=_0x16815c,this[_0x10fa7e(0x183)]=_0x49a119,this['_transformService']=_0x2c7381,this[_0x10fa7e(0x2ab)]=_0xa11a5,this[_0x10fa7e(0x155)]=_0x3db86c);}get[_0x17da78(0x10d)](){const _0x4e7ced=_0x17da78;return this[_0x4e7ced(0x207)][_0x4e7ced(0x2ef)]();}get[_0x17da78(0x1ae)](){return this['_roomMembers$']['getValue']();}[_0x17da78(0x26d)](){const _0x2a579b=_0x17da78;super[_0x2a579b(0x26d)](),this[_0x2a579b(0x207)][_0x2a579b(0x117)](new Map()),this[_0x2a579b(0x207)][_0x2a579b(0xba)](),this['_roomMembers$'][_0x2a579b(0x117)]([]),this['_roomMembers$'][_0x2a579b(0xba)]();}[_0x17da78(0x1e2)](){const _0x2f2d19=_0x17da78;this[_0x2f2d19(0xd7)]||(this[_0x2f2d19(0xd7)]=!0x0,this[_0x2f2d19(0x1be)]['sessionStatus$'][_0x2f2d19(0x2fd)](d['takeUntil'](this['dispose$']))[_0x2f2d19(0x221)](_0x32c401=>{const _0x1567ab=_0x2f2d19;_0x32c401===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x1567ab(0x27e)]();}),this[_0x2f2d19(0x1be)][_0x2f2d19(0xe6)][_0x2f2d19(0x2fd)](d['takeUntil'](this['dispose$']))[_0x2f2d19(0x221)](_0x12c44c=>{const _0x45c159=_0x2f2d19,_0x316c19=_0x12c44c[_0x45c159(0x1b5)];_0x316c19===m[_0x45c159(0x267)][_0x45c159(0x334)]&&this['_onCursorUpdate'](_0x12c44c),_0x316c19===m[_0x45c159(0x267)]['USERS_LEAVE']&&this[_0x45c159(0x189)](_0x12c44c);}),this[_0x2f2d19(0x1cb)](this[_0x2f2d19(0x155)][_0x2f2d19(0x170)](_0xdd4f27=>{const _0x3e378d=_0x2f2d19,_0x3ebd05=_0xdd4f27[_0x3e378d(0xdf)];_0x3ebd05!=null&&this[_0x3e378d(0x2c4)]&&_0xdd4f27['id']===W[_0x3e378d(0x1eb)]['id']&&_0x3ebd05[_0x3e378d(0x2ea)]===this[_0x3e378d(0x247)]&&_0x3ebd05[_0x3e378d(0x32f)]===!0x1&&_0x3ebd05[_0x3e378d(0x32e)][_0x3e378d(0x12c)]>0x0&&this[_0x3e378d(0x2e8)](_0x3ebd05['ranges']);})),this[_0x2f2d19(0x183)][_0x2f2d19(0x2f5)][_0x2f2d19(0x2fd)](d['takeUntil'](this[_0x2f2d19(0xc9)]))[_0x2f2d19(0x221)](_0x2712f7=>{const _0x53cb1f=_0x2f2d19;if((_0x2712f7==null?void 0x0:_0x2712f7[_0x53cb1f(0x247)])!==this['unitID'])return;const _0x15b973={'eventID':m[_0x53cb1f(0x267)][_0x53cb1f(0x334)],'data':_0x2712f7};this[_0x53cb1f(0x2c9)](_0x15b973);}),this['disposeWithMe'](this[_0x2f2d19(0x155)][_0x2f2d19(0x170)](_0x23dc9f=>{const _0x320a1e=_0x2f2d19;if(_0x23dc9f['params']==null)return;const _0xb0eb1a=_0x23dc9f[_0x320a1e(0xdf)];if(_0x23dc9f['id']!==W[_0x320a1e(0xc5)]['id']||_0xb0eb1a[_0x320a1e(0x2ea)]!==this['unitID'])return;const _0x347cee={'id':_0x320a1e(0xc0),'params':_0xb0eb1a},_0x2bef2c=this[_0x320a1e(0x10d)];for(const [_0xd0b315,_0xef4d32]of _0x2bef2c){const _0x5da44d={'id':_0x320a1e(0xc0),'params':{'unitId':this[_0x320a1e(0x247)],'actions':null,'textRanges':_0xef4d32[_0x320a1e(0x32e)]}},_0x38f43c=this[_0x320a1e(0x301)][_0x320a1e(0x29d)](_0x347cee,_0x5da44d,!0x1);if(m['isTransformMutationFailure'](_0x38f43c))throw _0x38f43c[_0x320a1e(0x11a)];_0x2bef2c[_0x320a1e(0x1bb)](_0xd0b315,{..._0xef4d32,'ranges':_0x38f43c[_0x320a1e(0x143)][_0x320a1e(0xdf)][_0x320a1e(0x144)]});}queueMicrotask(()=>{const _0x7d367e=_0x320a1e;this[_0x7d367e(0x207)][_0x7d367e(0x117)](_0x2bef2c);});})));}[_0x17da78(0x2c9)](_0x358d4f){const _0x2310da=_0x17da78;var _0xb3cdc,_0x25a506;const {memberID:_0x322dc7,selection:_0x432e0d}=_0x358d4f[_0x2310da(0x214)],_0x32e1ba=Je(_0x432e0d),_0x52a162=(_0x25a506=(_0xb3cdc=this['_memberService']['getMember'](this[_0x2310da(0x247)],_0x322dc7))==null?void 0x0:_0xb3cdc['name'])!=null?_0x25a506:'Unknown\x20user',_0x43d1eb={'color':this[_0x2310da(0x1d4)][_0x2310da(0x12d)](_0x322dc7),'name':_0x52a162,'ranges':_0x32e1ba},_0x480b24=this[_0x2310da(0x10d)];_0x480b24['set'](_0x322dc7,_0x43d1eb),this[_0x2310da(0x207)][_0x2310da(0x117)](_0x480b24);}[_0x17da78(0x189)](_0x18d85e){const _0x541eaa=_0x17da78,{memberID:_0x32a0fa}=_0x18d85e[_0x541eaa(0x214)],_0x413f31=this[_0x541eaa(0x10d)];_0x413f31[_0x541eaa(0x1cc)](_0x32a0fa),this[_0x541eaa(0x207)]['next'](_0x413f31);}[_0x17da78(0x1e4)](){const _0x4fc266=_0x17da78;var _0x12dbfd;if(this[_0x4fc266(0x2c4)]=!0x0,((_0x12dbfd=this[_0x4fc266(0x2ab)][_0x4fc266(0xfb)]())==null?void 0x0:_0x12dbfd[_0x4fc266(0x2cf)]())!==this[_0x4fc266(0x247)])return;const _0x2920ff=this[_0x4fc266(0x32d)]['get'](W['DocSelectionManagerService'])[_0x4fc266(0x197)]();Array[_0x4fc266(0x2ba)](_0x2920ff)&&_0x2920ff[_0x4fc266(0x12c)]>0x0&&this[_0x4fc266(0x2e8)](_0x2920ff);}[_0x17da78(0x27e)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x17da78(0x18a)](a[_0x17da78(0x31b)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x17da78(0x18a)](u[_0x17da78(0x103)])),L(0x5,a[_0x17da78(0x18a)](Ce)),L(0x6,m[_0x17da78(0x2de)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x17da78(0x1fb)])],fe);var st=Object[_0x17da78(0x2d6)],it=(_0x440b2c,_0x1643d4,_0x1e7d71,_0x5208fe)=>{const _0x2daa37=_0x17da78;for(var _0x54a99f=_0x5208fe>0x1?void 0x0:_0x5208fe?st(_0x1643d4,_0x1e7d71):_0x1643d4,_0x2b7111=_0x440b2c[_0x2daa37(0x12c)]-0x1,_0x11a90c;_0x2b7111>=0x0;_0x2b7111--)(_0x11a90c=_0x440b2c[_0x2b7111])&&(_0x54a99f=_0x11a90c(_0x54a99f)||_0x54a99f);return _0x54a99f;},A=(_0x1052f9,_0x2e6c28)=>(_0x403034,_0x16b616)=>_0x2e6c28(_0x403034,_0x16b616,_0x1052f9);const nt=0x12c,rt=0x64,ot=()=>{let _0x341640=[],_0x1e3a9d=!0x1;return _0x49810a=>{_0x341640['push'](_0x49810a),_0x1e3a9d||(_0x1e3a9d=!0x0,setTimeout(()=>{const _0x130586=_0x135d;_0x341640[_0x130586(0x21c)](_0x5632d8=>_0x5632d8()),_0x341640=[],_0x1e3a9d=!0x1;}));};};let Se=class extends a[_0x17da78(0x206)]{constructor(_0x2c4422,_0x4e225b,_0x221314,_0x47af84,_0x594d03,_0x56aadb,_0x3e548e,_0x3f205b){const _0x599387=_0x17da78;super(),h(this,_0x599387(0x2c4),!0x1),h(this,_0x599387(0xd7),!0x1),h(this,_0x599387(0x207),new d[(_0x599387(0x2f6))](new Map())),h(this,_0x599387(0x1b8),this[_0x599387(0x207)][_0x599387(0x2e1)]()),h(this,'_roomMembers$',new d[(_0x599387(0x2f6))]([])),h(this,_0x599387(0x160),this[_0x599387(0x102)]['pipe'](d['debounceTime'](nt))),h(this,_0x599387(0x2e8),a[_0x599387(0x2c0)]((_0x50bca0,_0x472e35)=>{const _0x460f3f=_0x599387,_0x5e3ac3={'eventID':m[_0x460f3f(0x267)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x460f3f(0x247)],'memberID':this[_0x460f3f(0x1be)][_0x460f3f(0x2a6)](),'selection':Ee[_0x460f3f(0x2f2)](_0x50bca0,_0x472e35['range'])}};this[_0x460f3f(0x1be)][_0x460f3f(0xbb)](_0x5e3ac3,this[_0x460f3f(0x247)]);},rt)),(this['unitID']=_0x2c4422,this[_0x599387(0x1be)]=_0x4e225b,this['_injector']=_0x221314,this['_colorAssignService']=_0x47af84,this[_0x599387(0x230)]=_0x594d03,this[_0x599387(0x2ab)]=_0x56aadb,this[_0x599387(0x155)]=_0x3e548e,this[_0x599387(0x2bb)]=_0x3f205b);}get[_0x17da78(0x10d)](){const _0x3a9c6a=_0x17da78;return this[_0x3a9c6a(0x207)][_0x3a9c6a(0x2ef)]();}get[_0x17da78(0x1ae)](){const _0x278d97=_0x17da78;return this[_0x278d97(0x102)]['getValue']();}['dispose'](){const _0x29520e=_0x17da78;super['dispose'](),this[_0x29520e(0x207)][_0x29520e(0x117)](new Map()),this[_0x29520e(0x207)][_0x29520e(0xba)](),this[_0x29520e(0x102)][_0x29520e(0x117)]([]),this[_0x29520e(0x102)][_0x29520e(0xba)]();}[_0x17da78(0x1e2)](){const _0x2422e5=_0x17da78;this['_init']||(this[_0x2422e5(0xd7)]=!0x0,this['_session'][_0x2422e5(0xe0)][_0x2422e5(0x2fd)](d[_0x2422e5(0x1e8)](this[_0x2422e5(0xc9)]))[_0x2422e5(0x221)](_0x5361ac=>{const _0x2f31a6=_0x2422e5;_0x5361ac===u[_0x2f31a6(0x20e)][_0x2f31a6(0x122)]?this[_0x2f31a6(0x1e4)]():this[_0x2f31a6(0x27e)]();}),this[_0x2422e5(0x1be)][_0x2422e5(0xe6)]['pipe'](d[_0x2422e5(0x1e8)](this[_0x2422e5(0xc9)]))['subscribe'](_0x30ca49=>{const _0x50d915=_0x2422e5,_0x2d5b8d=_0x30ca49[_0x50d915(0x1b5)];_0x2d5b8d===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x50d915(0x2c9)](_0x30ca49),_0x2d5b8d===m['CollaborationEvent'][_0x50d915(0x276)]&&this['_onCursorDelete'](_0x30ca49);}),this['_onRefRangeChange'](),this[_0x2422e5(0x1cb)](this['_commandService'][_0x2422e5(0x170)](_0x1e3776=>{const _0x3b00c4=_0x2422e5;if(this[_0x3b00c4(0x2c4)]&&_0x1e3776['id']===g['SetSelectionsOperation']['id']&&_0x1e3776['params'][_0x3b00c4(0x2ea)]===this['unitID']){const _0x17c101=_0x1e3776['params'];this[_0x3b00c4(0x2e8)](_0x17c101[_0x3b00c4(0x323)],_0x17c101[_0x3b00c4(0x21b)][0x0]);}})));}['_onCursorUpdate'](_0x241e09){const _0x3b8f68=_0x17da78;var _0x230444,_0x3c349e;const {memberID:_0x1f3061,selection:_0x335321}=_0x241e09[_0x3b8f68(0x214)],{sheetName:_0x5ccbdd,range:_0x5a2efd}=Ee[_0x3b8f68(0x113)](_0x335321),_0x40d4c0={'name':(_0x3c349e=(_0x230444=this[_0x3b8f68(0x230)][_0x3b8f68(0x104)](this[_0x3b8f68(0x247)],_0x1f3061))==null?void 0x0:_0x230444['name'])!=null?_0x3c349e:_0x3b8f68(0x1c0),'range':this['_getMergeRange'](_0x5ccbdd,_0x5a2efd),'sheetID':_0x5ccbdd,'color':this[_0x3b8f68(0x1d4)][_0x3b8f68(0x12d)](_0x1f3061),'selection':_0x335321},_0x524725=this['cursorInfo'];_0x524725['set'](_0x1f3061,_0x40d4c0),this[_0x3b8f68(0x207)][_0x3b8f68(0x117)](_0x524725);}[_0x17da78(0x189)](_0x3702a5){const _0x333222=_0x17da78,{memberID:_0x324cb0}=_0x3702a5[_0x333222(0x214)],_0x3ac674=this[_0x333222(0x10d)];_0x3ac674[_0x333222(0x1cc)](_0x324cb0),this[_0x333222(0x207)][_0x333222(0x117)](_0x3ac674);}[_0x17da78(0x20b)](_0x58d1e5,_0x5c1926){const _0x20bfed=_0x17da78;var _0x29665c,_0x42bb33;const _0x3f4b5b=(_0x42bb33=(_0x29665c=this[_0x20bfed(0x2ab)][_0x20bfed(0x24a)](this[_0x20bfed(0x247)]))==null?void 0x0:_0x29665c[_0x20bfed(0x249)](_0x58d1e5))==null?void 0x0:_0x42bb33[_0x20bfed(0x1b7)]();return(_0x3f4b5b==null?void 0x0:_0x3f4b5b[_0x20bfed(0x27c)](_0x4315d3=>a[_0x20bfed(0x178)]['contains'](_0x4315d3,_0x5c1926)))||_0x5c1926;}[_0x17da78(0x29b)](){const _0x5eba16=_0x17da78,_0x3f7798=new a['DisposableCollection'](),_0x207fdd=ot(),_0x9ec24d=()=>{const _0x4b2ed1=_0x135d;_0x3f7798['dispose']();const _0x38a4a7=(_0x40766b,_0x5ada04,_0xea882f,_0x230720)=>{const _0xd8645a=_0x135d;let _0x1f6a00=[];switch(_0x40766b['id']){case g['EffectRefRangId'][_0xd8645a(0x22b)]:{_0x1f6a00=g[_0xd8645a(0xe2)](_0x40766b,_0x230720);break;}case g[_0xd8645a(0x2b0)][_0xd8645a(0x30a)]:{_0x1f6a00=g[_0xd8645a(0x28f)](_0x40766b,_0x230720);break;}case g['EffectRefRangId'][_0xd8645a(0x176)]:{_0x1f6a00=g['handleInsertCol'](_0x40766b,_0x230720);break;}case g['EffectRefRangId'][_0xd8645a(0x270)]:{_0x1f6a00=g[_0xd8645a(0x228)](_0x40766b,_0x230720);break;}case g[_0xd8645a(0x2b0)]['InsertRangeMoveRightCommandId']:{_0x1f6a00=g['handleInsertRangeMoveRight'](_0x40766b,_0x230720);break;}case g['EffectRefRangId'][_0xd8645a(0x225)]:{_0x1f6a00=g[_0xd8645a(0x1fa)](_0x40766b,_0x230720);break;}case g[_0xd8645a(0x2b0)]['MoveRangeCommandId']:{_0x1f6a00=g['handleMoveRange'](_0x40766b,_0x230720);break;}case g['EffectRefRangId'][_0xd8645a(0xd0)]:{_0x1f6a00=g['handleIRemoveCol'](_0x40766b,_0x230720);break;}case g[_0xd8645a(0x2b0)]['RemoveRowCommandId']:{_0x1f6a00=g[_0xd8645a(0x287)](_0x40766b,_0x230720);break;}}const _0x26a47e=g[_0xd8645a(0x232)](_0x1f6a00,_0x230720),_0x495ae0=this['cursorInfo'][_0xd8645a(0xc7)](_0x5ada04);if(_0x495ae0&&_0x26a47e){const _0x4ae51d={..._0x495ae0,'range':_0x26a47e};this[_0xd8645a(0x10d)][_0xd8645a(0x1bb)](_0x5ada04,_0x4ae51d),_0x207fdd(()=>{const _0x57f95c=_0xd8645a,_0x1d3c66=this[_0x57f95c(0x2bb)][_0x57f95c(0x186)](_0x26a47e,_0xb7de1c=>(_0x1d3c66[_0x57f95c(0x26d)](),_0x38a4a7(_0xb7de1c,_0x5ada04,_0xea882f,_0x26a47e)));_0x3f7798[_0x57f95c(0x23f)](_0x1d3c66);});}return{'redos':[],'undos':[]};};this[_0x4b2ed1(0x10d)][_0x4b2ed1(0x21c)]((_0x60a720,_0x5223d2)=>{const _0x472b30=_0x4b2ed1,{range:_0x2482a7,sheetID:_0x4bb57d}=_0x60a720,_0x54c642=this[_0x472b30(0x2bb)][_0x472b30(0x186)](_0x2482a7,_0x3ba08a=>(_0x54c642['dispose'](),_0x38a4a7(_0x3ba08a,_0x5223d2,_0x4bb57d,_0x2482a7)));_0x3f7798[_0x472b30(0x23f)](_0x54c642);});};this[_0x5eba16(0x1cb)](a['toDisposable'](this[_0x5eba16(0x207)][_0x5eba16(0x221)](()=>{_0x9ec24d();})));}[_0x17da78(0x1e4)](){const _0x46b7f5=_0x17da78;var _0xaf7878,_0x20c7ff;if(this[_0x46b7f5(0x2c4)]=!0x0,((_0xaf7878=this[_0x46b7f5(0x2ab)][_0x46b7f5(0xfb)]())==null?void 0x0:_0xaf7878[_0x46b7f5(0x2cf)]())!==this['unitID'])return;const _0x197c9f=(_0x20c7ff=this['_injector'][_0x46b7f5(0xc7)](g[_0x46b7f5(0xcc)])[_0x46b7f5(0x16a)]())==null?void 0x0:_0x20c7ff[0x0],_0x3cd70b=this[_0x46b7f5(0x2ab)]['getCurrentUnitForType'](a[_0x46b7f5(0x29f)][_0x46b7f5(0x14b)])[_0x46b7f5(0xeb)]();_0x197c9f&&_0x3cd70b&&this[_0x46b7f5(0x2e8)](_0x3cd70b[_0x46b7f5(0x1d9)](),_0x197c9f);}[_0x17da78(0x27e)](){this['_online']=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x17da78(0x31b)])),A(0x3,a['Inject'](me)),A(0x4,a['Inject'](u[_0x17da78(0x103)])),A(0x5,a[_0x17da78(0x15d)]),A(0x6,a[_0x17da78(0x1fb)]),A(0x7,a[_0x17da78(0x18a)](g[_0x17da78(0x19a)]))],Se);var at=Object[_0x17da78(0x2d6)],ct=(_0x2d41e4,_0x25f00a,_0x41ba76,_0x5555aa)=>{for(var _0x1c95a4=_0x5555aa>0x1?void 0x0:_0x5555aa?at(_0x25f00a,_0x41ba76):_0x25f00a,_0x26096f=_0x2d41e4['length']-0x1,_0xa4adc9;_0x26096f>=0x0;_0x26096f--)(_0xa4adc9=_0x2d41e4[_0x26096f])&&(_0x1c95a4=_0xa4adc9(_0x1c95a4)||_0x1c95a4);return _0x1c95a4;},ie=(_0x9260fa,_0x1ec891)=>(_0x984e8,_0x1710a3)=>_0x1ec891(_0x984e8,_0x1710a3,_0x9260fa);let x=class extends a[_0x17da78(0x206)]{constructor(_0x57bddb,_0x9c1f2f,_0x180236){const _0x2ae9bb=_0x17da78;super(),h(this,_0x2ae9bb(0x22e),new Map()),h(this,_0x2ae9bb(0x1f1),new d['Subject']()),(this[_0x2ae9bb(0x2ab)]=_0x57bddb,this[_0x2ae9bb(0x32d)]=_0x9c1f2f,this[_0x2ae9bb(0x180)]=_0x180236,this['_init']());}[_0x17da78(0x26d)](){const _0x26aa63=_0x17da78;super[_0x26aa63(0x26d)](),this['_entityInit$']['complete'](),this[_0x26aa63(0x22e)][_0x26aa63(0x21c)](_0x47f27c=>_0x47f27c[_0x26aa63(0x26d)]());}['getCollabCursors$'](_0x58d68d){const _0x20bd41=_0x17da78;return this[_0x20bd41(0x22e)][_0x20bd41(0x24f)](_0x58d68d)?this[_0x20bd41(0x22e)][_0x20bd41(0xc7)](_0x58d68d)[_0x20bd41(0x1b8)]:this[_0x20bd41(0x1f1)]['pipe'](d[_0x20bd41(0x167)](_0x347e5b=>_0x347e5b[_0x20bd41(0x247)]===_0x58d68d),d['switchMap'](_0x3c433b=>_0x3c433b['cursorInfo$']));}['_init'](){const _0x498114=_0x17da78;this[_0x498114(0x2ab)]['getTypeOfUnitAdded$'](a[_0x498114(0x29f)][_0x498114(0x14b)])['pipe'](d[_0x498114(0x1e8)](this[_0x498114(0xc9)]))[_0x498114(0x221)](async _0x225a66=>{const _0x2b0584=_0x498114,_0x3f658d=_0x225a66[_0x2b0584(0x2cf)](),_0x556dc1=await this['_startSheetCollabCursor'](_0x3f658d);this[_0x2b0584(0x1f1)][_0x2b0584(0x117)](_0x556dc1),this['_entities'][_0x2b0584(0x1bb)](_0x3f658d,_0x556dc1);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x498114(0x29f)][_0x498114(0x14a)])[_0x498114(0x2fd)](d[_0x498114(0x1e8)](this[_0x498114(0xc9)]))[_0x498114(0x2fd)](d['filter'](_0x3b2ec8=>!_0x3b2ec8[_0x498114(0x2cf)]()['startsWith']('__')))['subscribe'](async _0x20bcaa=>{const _0x51bc9e=_0x498114,_0x4aed83=_0x20bcaa[_0x51bc9e(0x2cf)](),_0x11e405=await this[_0x51bc9e(0x2a0)](_0x4aed83);this[_0x51bc9e(0x1f1)][_0x51bc9e(0x117)](_0x11e405),this['_entities'][_0x51bc9e(0x1bb)](_0x4aed83,_0x11e405);}),d[_0x498114(0x238)](this[_0x498114(0x2ab)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x498114(0x14a)]),this[_0x498114(0x2ab)][_0x498114(0x2e4)](a[_0x498114(0x29f)][_0x498114(0x14b)]))[_0x498114(0x2fd)](d[_0x498114(0x1e8)](this[_0x498114(0xc9)]))[_0x498114(0x221)](_0x2a4339=>{const _0xfe2cd9=_0x498114,_0x1a9e3b=_0x2a4339['getUnitId'](),_0x1dfa83=this['_entities'][_0xfe2cd9(0xc7)](_0x1a9e3b);_0x1dfa83&&(_0x1dfa83[_0xfe2cd9(0x26d)](),this[_0xfe2cd9(0x22e)][_0xfe2cd9(0x1cc)](_0x1a9e3b));});}async[_0x17da78(0xd4)](_0x27935d){const _0x24fcdf=_0x17da78,_0x3b42a1=await this[_0x24fcdf(0x180)][_0x24fcdf(0x1d2)](_0x27935d),_0x14709d=this['_injector'][_0x24fcdf(0x153)](Se,_0x27935d,_0x3b42a1);return _0x14709d[_0x24fcdf(0x1e2)](),_0x14709d;}async[_0x17da78(0x2a0)](_0x37ab66){const _0x38a904=_0x17da78,_0x28149e=await this[_0x38a904(0x180)][_0x38a904(0x1d2)](_0x37ab66),_0x36db3e=this[_0x38a904(0x32d)][_0x38a904(0x153)](fe,_0x37ab66,_0x28149e);return _0x36db3e[_0x38a904(0x1e2)](),_0x36db3e;}};x=ct([ie(0x0,a[_0x17da78(0x15d)]),ie(0x1,a[_0x17da78(0x18a)](a[_0x17da78(0x31b)])),ie(0x2,a[_0x17da78(0x18a)](u[_0x17da78(0xd3)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1287eb,_0x4803c9){const _0x115c62=_0x17da78;let {radius:_0x474fa1,width:_0x44198c,height:_0x2a275a}=_0x4803c9;_0x474fa1=_0x474fa1!=null?_0x474fa1:0x0,_0x44198c=_0x44198c!=null?_0x44198c:0x1e,_0x2a275a=_0x2a275a!=null?_0x2a275a:0x1e;let _0x4d6a32=0x0,_0x43e9d8=0x0,_0x29cbf5=0x0;_0x4d6a32=_0x43e9d8=_0x29cbf5=Math[_0x115c62(0xe8)](_0x474fa1,_0x44198c/0x2,_0x2a275a/0x2),_0x1287eb[_0x115c62(0x295)](),_0x1287eb['moveTo'](_0x4d6a32,0x0),_0x1287eb[_0x115c62(0x1db)](_0x44198c-_0x43e9d8,0x0),_0x1287eb[_0x115c62(0xe7)](_0x44198c-_0x43e9d8,_0x43e9d8,_0x43e9d8,Math['PI']*0x3/0x2,0x0,!0x1),_0x1287eb[_0x115c62(0x1db)](_0x44198c,_0x2a275a-_0x29cbf5),_0x1287eb['arc'](_0x44198c-_0x29cbf5,_0x2a275a-_0x29cbf5,_0x29cbf5,0x0,Math['PI']/0x2,!0x1),_0x1287eb[_0x115c62(0x1db)](0x0,_0x2a275a),_0x1287eb[_0x115c62(0x1db)](0x0,_0x4d6a32),_0x1287eb[_0x115c62(0xe7)](_0x4d6a32,_0x4d6a32,_0x4d6a32,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1287eb[_0x115c62(0x245)](),_0x4803c9[_0x115c62(0xf1)]&&(_0x1287eb[_0x115c62(0x2b5)](),_0x1287eb[_0x115c62(0x223)]=_0x4803c9[_0x115c62(0xf1)],_0x4803c9[_0x115c62(0x218)]==='evenodd'?_0x1287eb[_0x115c62(0xf1)](_0x115c62(0x1d8)):_0x1287eb[_0x115c62(0xf1)](),_0x1287eb[_0x115c62(0x1b6)]());}function _0x135d(_0x4b4f29,_0x4e636e){const _0x2c5924=_0x2c59();return _0x135d=function(_0x135d78,_0xfede6d){_0x135d78=_0x135d78-0xb8;let _0x4eb2d9=_0x2c5924[_0x135d78];return _0x4eb2d9;},_0x135d(_0x4b4f29,_0x4e636e);}class ee extends p[_0x17da78(0x1f8)]{constructor(_0x5c0691,_0x17e338){const _0x484a07=_0x17da78;super(_0x5c0691,_0x17e338),h(this,'color'),h(this,_0x484a07(0x191)),(this['color']=_0x17e338==null?void 0x0:_0x17e338[_0x484a07(0x1d1)],this[_0x484a07(0x191)]=_0x17e338==null?void 0x0:_0x17e338[_0x484a07(0x191)]);}static[_0x17da78(0x149)](_0xcf6f2c,_0x113d32){const _0x4f8c89=_0x17da78,{text:_0x24ba7a,color:_0x4bc706}=_0x113d32;_0xcf6f2c[_0x4f8c89(0x2b5)](),_0xcf6f2c[_0x4f8c89(0x322)]=_0x4f8c89(0x235);const _0x1324ca=_0xcf6f2c[_0x4f8c89(0x179)](_0x24ba7a)[_0x4f8c89(0x2f0)],_0x319f41=Math[_0x4f8c89(0xe8)](_0x1324ca+0x2*ne,Re);_t(_0xcf6f2c,{'height':q,'radius':0x4,'width':_0x319f41,'fill':_0x4bc706}),_0xcf6f2c[_0x4f8c89(0x223)]=_0x4f8c89(0x161);const _0x41465f=ne,_0xe9706e=q-lt,_0x20c84e=Re-0x2*ne;if(_0x1324ca>_0x20c84e){let _0x5e8c8c='',_0x52ecdd=0x0;for(const _0x4a87eb of _0x24ba7a){const _0x223d0f=_0xcf6f2c[_0x4f8c89(0x179)](_0x4a87eb)[_0x4f8c89(0x2f0)];if(_0x52ecdd+_0x223d0f<=_0x20c84e-_0xcf6f2c['measureText'](_0x4f8c89(0x1f2))[_0x4f8c89(0x2f0)])_0x5e8c8c+=_0x4a87eb,_0x52ecdd+=_0x223d0f;else{_0x5e8c8c+=_0x4f8c89(0x1f2);break;}}_0xcf6f2c[_0x4f8c89(0x286)](_0x5e8c8c,_0x41465f,_0xe9706e);}else _0xcf6f2c['fillText'](_0x24ba7a,_0x41465f,_0xe9706e);_0xcf6f2c['restore']();}[_0x17da78(0x16f)](_0x5db2cc){const _0x2fb7fa=_0x17da78;ee[_0x2fb7fa(0x149)](_0x5db2cc,this);}}const re=_0x17da78(0x1a9),ht=_0x17da78(0x23b),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x17da78(0x299);class De{constructor(_0x14b7e1,_0x5351d0,_0x5f54e1,_0x3f6880){const _0x541b21=_0x17da78;h(this,_0x541b21(0x132),[]),h(this,_0x541b21(0x330),null),h(this,_0x541b21(0x17a),null),h(this,_0x541b21(0x17b),null),h(this,_0x541b21(0x268),null),h(this,'_eventUnsubscribe',null),(this[_0x541b21(0x21e)]=_0x14b7e1,this[_0x541b21(0x198)]=_0x5351d0,this['_docSkeleton']=_0x5f54e1,this[_0x541b21(0x2b6)]=_0x3f6880,this[_0x541b21(0xd5)]());}set['_hover'](_0x5ed794){const _0x17bc8b=_0x17da78;_0x5ed794?(this[_0x17bc8b(0x17b)]&&this[_0x17bc8b(0x17b)][_0x17bc8b(0x22a)](),this[_0x17bc8b(0x17a)]&&this[_0x17bc8b(0x17a)][_0x17bc8b(0x240)]()):(this[_0x17bc8b(0x17b)]&&this[_0x17bc8b(0x17b)][_0x17bc8b(0x240)](),this[_0x17bc8b(0x17a)]&&this[_0x17bc8b(0x17a)][_0x17bc8b(0x22a)]());}[_0x17da78(0x26d)](){const _0x2a1cc7=_0x17da78;for(const _0x1e4c3f of this[_0x2a1cc7(0x132)])_0x1e4c3f[_0x2a1cc7(0x26d)]();this[_0x2a1cc7(0x17a)]&&this[_0x2a1cc7(0x17a)][_0x2a1cc7(0x26d)](),this[_0x2a1cc7(0x17b)]&&this[_0x2a1cc7(0x17b)]['dispose'](),this[_0x2a1cc7(0x330)]&&this[_0x2a1cc7(0x330)][_0x2a1cc7(0x26d)](),this['_eventUnsubscribe']&&this[_0x2a1cc7(0x15e)]();}[_0x17da78(0xd5)](){const _0x91f436=_0x17da78;var _0x3e04c3;const {_docSkeleton:_0x15d884,_document:_0x49719b}=this,{color:_0x597963,name:_0x17043e,ranges:_0x1b4816}=this[_0x91f436(0x21e)],_0x5b7f98=_0x49719b[_0x91f436(0xcd)](),{docsLeft:_0x4544bc,docsTop:_0x1986d2}=_0x5b7f98,_0x5ad75e=new b[(_0x91f436(0x1c7))](_0x5b7f98,_0x15d884);for(const {startOffset:_0x16d072,endOffset:_0x285290,rangeType:_0x53a086,segmentId:_0x6b61af,segmentPage:_0x1a0982,collapsed:_0x859a9d,isActive:_0xdba8c}of _0x1b4816){const _0x338055=_0x15d884[_0x91f436(0x26a)](_0x16d072,!0x0,_0x6b61af,_0x1a0982);let _0x528bb6=_0x15d884[_0x91f436(0x26a)](_0x285290,!0x0,_0x6b61af,_0x1a0982);if(_0x528bb6==null&&(_0x528bb6=_0x15d884['findNodePositionByCharIndex'](_0x285290-0x1,!0x1,_0x6b61af,_0x1a0982)),_0xdba8c){const {contentBoxPointGroup:_0x47a31e}=_0x5ad75e[_0x91f436(0x1ef)](_0x528bb6,_0x528bb6);if(_0x47a31e[_0x91f436(0x12c)]===0x0)continue;this[_0x91f436(0x1dc)](_0x597963,_0x47a31e,_0x4544bc,_0x1986d2,_0x17043e),this[_0x91f436(0x15e)]=this['_handleHover']();}if(_0x338055&&_0x528bb6){if(_0x53a086===a[_0x91f436(0x30d)][_0x91f436(0x150)]){const _0x106a14=new b[(_0x91f436(0x2e9))](_0x5b7f98,_0x15d884),{pointGroup:_0x5abccb}=(_0x3e04c3=_0x106a14[_0x91f436(0x1ef)](_0x338055,_0x528bb6))!=null?_0x3e04c3:{};if(_0x5abccb==null||_0x5abccb[_0x91f436(0x12c)]===0x0)continue;this[_0x91f436(0x2a3)](_0x597963,_0x5abccb,_0x4544bc,_0x1986d2);}else{if(!_0x859a9d){const {borderBoxPointGroup:_0x38298a}=_0x5ad75e[_0x91f436(0x1ef)](_0x338055,_0x528bb6);if(_0x38298a[_0x91f436(0x12c)]===0x0)continue;this['_drawTextRange'](_0x597963,_0x38298a,_0x4544bc,_0x1986d2);}}}}}[_0x17da78(0x1dc)](_0x2d9861,_0x46e560,_0x2ece63,_0x51aa6c,_0x15151f){const _0x4674dc=_0x17da78,_0x296924=this[_0x4674dc(0x1ee)](_0x46e560),{left:_0x4349d6,top:_0x2508d1,height:_0x4ea61e}=_0x296924,_0x46f330=this['_getScale'](),_0x4c3d02=ft/_0x46f330,_0x2faef8=new p[(_0x4674dc(0x27a))](re+a[_0x4674dc(0x2d9)][_0x4674dc(0xc8)](k),{'left':_0x4349d6+_0x2ece63-_0x4c3d02,'top':_0x2508d1+_0x51aa6c,'height':_0x4ea61e,'width':dt,'fill':_0x2d9861||p[_0x4674dc(0x108)](a[_0x4674dc(0x1aa)][_0x4674dc(0xfe)],0x0),'strokeWidth':_0x4c3d02,'stroke':St,'evented':!0x0});this['_anchor']=_0x2faef8,this[_0x4674dc(0x198)][_0x4674dc(0x261)](_0x2faef8,b[_0x4674dc(0x20a)]);const _0x35bc7c=new p[(_0x4674dc(0x27a))](re+a[_0x4674dc(0x2d9)][_0x4674dc(0xc8)](k),{'left':_0x4349d6+_0x2ece63-_0x4c3d02,'top':_0x2508d1+_0x51aa6c-oe/0x2,'height':oe,'width':oe,'fill':_0x2d9861||p[_0x4674dc(0x108)](a[_0x4674dc(0x1aa)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x2d9861||p[_0x4674dc(0x108)](a['COLORS'][_0x4674dc(0xfe)],0x0),'evented':!0x1});this[_0x4674dc(0x17b)]=_0x35bc7c,this[_0x4674dc(0x198)][_0x4674dc(0x261)](_0x35bc7c,b['TEXT_RANGE_LAYER_INDEX']);const _0x20410f=new ee(re+a[_0x4674dc(0x2d9)][_0x4674dc(0xc8)](k),{'left':_0x4349d6+_0x2ece63-_0x4c3d02,'top':_0x2508d1+_0x51aa6c-q,'text':_0x15151f,'color':_0x2d9861});this['_textBubble']=_0x20410f,this[_0x4674dc(0x198)][_0x4674dc(0x261)](_0x20410f,b[_0x4674dc(0x20a)]),this[_0x4674dc(0x260)]=!0x1;}[_0x17da78(0x25a)](){const _0xd2a0ec=_0x17da78,_0x348ebb=this['_anchor'][_0xd2a0ec(0x304)][_0xd2a0ec(0xc6)](()=>{const _0x51a6b8=_0xd2a0ec;this[_0x51a6b8(0x260)]=!0x0;}),_0x133de7=this['_anchor'][_0xd2a0ec(0x319)]['subscribeEvent'](()=>{const _0x4a7e7d=_0xd2a0ec;this['_hideTimer']&&clearTimeout(this[_0x4a7e7d(0x268)]),this[_0x4a7e7d(0x268)]=setTimeout(()=>{const _0x35b85c=_0x4a7e7d;this[_0x35b85c(0x260)]=!0x1;},0x7d0);});return()=>{const _0x75260f=_0xd2a0ec;_0x348ebb[_0x75260f(0x32c)](),_0x133de7[_0x75260f(0x32c)]();};}[_0x17da78(0x196)](_0xcfc2fa,_0x50698b,_0x415526,_0x271248){const _0x1ca9d9=_0x17da78,_0x358c11=new a[(_0x1ca9d9(0x205))](_0xcfc2fa)[_0x1ca9d9(0x13c)](0.2)['toRgbString'](),_0x5305e9=new p['RegularPolygon'](ht+a[_0x1ca9d9(0x2d9)][_0x1ca9d9(0xc8)](k),{'pointsGroup':_0x50698b,'fill':_0x358c11||p[_0x1ca9d9(0x108)](a['COLORS']['black'],0.2),'left':_0x415526,'top':_0x271248,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ca9d9(0x132)][_0x1ca9d9(0x32a)](_0x5305e9),this[_0x1ca9d9(0x198)]['addObject'](_0x5305e9,b[_0x1ca9d9(0x20a)]);}[_0x17da78(0x2a3)](_0x4797f3,_0x1c239b,_0x2a0f8b,_0x4af908){const _0x4118ae=_0x17da78,_0x54464b=new a[(_0x4118ae(0x205))](_0x4797f3)['setAlpha'](0.2)['toRgbString'](),_0x4c3050=new p['RegularPolygon'](ut+a[_0x4118ae(0x2d9)]['generateRandomId'](k),{'pointsGroup':_0x1c239b,'fill':_0x54464b||p[_0x4118ae(0x108)](a[_0x4118ae(0x1aa)]['black'],0.2),'left':_0x2a0f8b,'top':_0x4af908,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4118ae(0x132)][_0x4118ae(0x32a)](_0x4c3050),this[_0x4118ae(0x198)][_0x4118ae(0x261)](_0x4c3050,b['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x3a7c9d){const _0x33bc95=_0x3a7c9d[0x0],_0x295629=_0x33bc95[0x0],_0x37441b=_0x33bc95[0x2],{x:_0x27e5e6,y:_0x2d8a5c}=_0x295629,{x:_0x8d1798,y:_0x40f9dc}=_0x37441b;return{'left':_0x27e5e6,'top':_0x2d8a5c,'width':_0x8d1798-_0x27e5e6,'height':_0x40f9dc-_0x2d8a5c};}[_0x17da78(0x157)](){const _0x26243c=_0x17da78,{scaleX:_0x241ac4,scaleY:_0x2a74df}=this[_0x26243c(0x198)][_0x26243c(0x278)]();return Math[_0x26243c(0x2ad)](_0x241ac4,_0x2a74df);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x400372,_0x5c2445,_0x5ecfba,_0x26219f)=>{const _0x1c5789=_0x17da78;for(var _0x15d79c=_0x26219f>0x1?void 0x0:_0x26219f?It(_0x5c2445,_0x5ecfba):_0x5c2445,_0x5e66b5=_0x400372[_0x1c5789(0x12c)]-0x1,_0x28ea25;_0x5e66b5>=0x0;_0x5e66b5--)(_0x28ea25=_0x400372[_0x5e66b5])&&(_0x15d79c=_0x28ea25(_0x15d79c)||_0x15d79c);return _0x15d79c;},Y=(_0xb9d9c0,_0x3845a1)=>(_0x19a010,_0x2e48b6)=>_0x3845a1(_0x19a010,_0x2e48b6,_0xb9d9c0);function _0x2c59(){const _0x57b214=['701180QiOAlA','_drawTextRange','getDocRanges','_scene','YUUMI_ASYNCIO_CANCELLED','RefRangeService','IMessageService','_docTransformSelectionsService','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_context','_updateURLWithCurrentState','DocIMEInputManagerService','purple300','executeCommand','collaboration-client.offline-data-not-saved','_refreshCollabCursors','jiqing500','FromArray','INVALID_ARGUMENT','DocCollaborationEntity','collab-text-anchor-','COLORS','uni.network.url-service','_imageIoService','startColumn','roomMembers','triggerDblclick','INVITE_CODE_ALREADY_BOUND','popstate','_id','LICENSE_IMPORT_SIZE_EXCEEDED','INTERNAL_ERROR','eventID','restore','getMergeData','cursorInfo$','transformByState','SHEET_VIEWPORT_KEY','set','throttleTime','WebURLService','_session','univerjs-icon\x20univerjs-icon-','Unknown\x20user','fromEvent','_backgroundColor','addClipboardHook','executionId','_collabCursorController','_getSessionTicket','NodePositionConvertToCursor','_initEntityListener','collaboration-client-ui.config','onRendered','disposeWithMe','delete','_initDependencies','CollaborationStatusDisplay','onLocalMutation','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','color','requireSession','use','_colorAssignService','replaceState','1702420weMnWK','AWAITING_WITH_PENDING','evenodd','getSheetId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','lineTo','_drawAnchor','transformIMECache','_beforeCloseService','override','_getSheetObject','clsx','init','_initResize','_toggleOnline','sheetId','CONNECTOR_DATA_TOO_LARGE','isTransformMutationsWithChangesetSuccess','takeUntil','shareReplay','_initEvent','SetTextSelectionsOperation','all','concat','_getAnchorBounding','getRangePointData','actions','_entityInit$','...','storage','apply','SUBMIT_CHANGESET_TIMEOUT','UniverCollaborationClientUIPlugin','saveTaskMap','Shape','LocaleService','handleInsertRow','ICommandService','_transformHistoryAndStateStack','values','random','indexOf','DesktopCollaborationStatusDisplayController','onMouseMove','from','svg','getViewport','ColorKit','RxDisposable','_cursorInfo$','registerRenderModule','UNAUTHENTICATED','TEXT_RANGE_LAYER_INDEX','_getMergeRange','string','NO_OTHER_CLIENTS_EDITING','SessionStatus','startRow','touchDependencies','_saveCache','DEFAULT_WS_SESSION_TICKET_URL','CollaborationStatus','data','univer-text-green-500','whenReady','BuiltInUIPart','fillRule','@univerjs/rpc','toStringTag','selections','forEach','MessageType','_cursor','1829376mPxVCu','permission.content','subscribe','getUndoRedoMutationParamsCache','fillStyle','newValue','InsertRowCommandId','_heartbeatTimer','WebSocketService','handleInsertRangeMoveDown','EMAIL_HAS_BEEN_BOUND','hide','DeleteRangeMoveLeftCommandId','collaboration.closeRoom','PY_RUNTIME_SCRIPT_ERROR','_entities','INVITE_CODE_HAS_BEEN_UES','_memberService','defineProperty','runRefRangeMutations','runId','replace','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','currentSkeleton$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','merge','getCoordByCell','_collaborationUIEventService','collab-text-range-','urlChange$','SOCKET_FAILED_RETRY','CONFLICT','add','show','pluginName','getSkeleton','_updateSubUnitFromURLParams','1012571mNSfbh','closePath','@univerjs/sheets-ui','unitID','_logService','getSheetBySheetId','getUniverSheetInstance','COMPLETION_FINISHED','activeSheet$','_collaborationController','skeleton','has','ILocalCacheService','stringify','hovered','collabStatus.syncing','APPLY_PERMISSION_DENIED','_send','sessionTicket','_transformUndoRedoStack','imageSourceType','_themeService','_handleHover','getRenderById','session.collaboration-timeout','off-line-single_clip0_910_343','current','setInterval','_hover','addObject','_uiPartsService','_unitOnClients','_handleEvent','syncEditingCollabCursor','_handleHeartbeatEvent','CollaborationEvent','_hideTimer','CollaborationSocketService','findNodePositionByCharIndex','getParam','map','dispose','transformRemoteChangeset','_docSkeletonManagerService','InsertRangeMoveDownCommandId','gold400','location','_registerRenderDependencies','useObservable','saveOfflineData','USERS_LEAVE','YUUMI_RATE_OVER_LIMIT','getAncestorScale','_assignedColors','Rect','history','find','ALREADY_EXISTS','_toggleOffline','blue400','CollaborationController','redoState','PERMISSION_DENIED','HEADER_MENU','YUUMI_UNABLE_LOAD_URL','session.will-retry','fillText','handleIRemoveRow','icon','@univerjs/ui','6CPGvru','registerDependencies','hasOwnProperty','_doCreateSocket','toDisposable','handleDeleteRangeMoveUp','result','APPLY_REVISION_CONFILICT','_docStateChangeManagerService','_saveTaskMap','DocSelectionManagerService','beginPath','Warning','FETCH_MISS','CollaborationUIEventId','rgba(255,\x20255,\x20255,\x200.01)','wsSessionTicketUrl','_onRefRangeChange','getLocalCacheKey','transformMutation','_getSaveTimeout','UniverInstanceType','_startDocCollabCursor','tag','disableLocalCache','_drawRectRange','isTransformMutationFailure','_docTransformIMECacheService','getMemberID','1em','_messageService','useDependency','xlink:href','_univerInstanceService','collabStatus.fetchMiss','max','currentTheme$','session.connection-failed','EffectRefRangId','updateOfflineData','BrowserCollaborationSocketService','name','2922420abaobB','save','_document','@univerjs/drawing','@univerjs/design','_setupSubUnitSync','isArray','_refRangeService','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','translate(.97)','PENDING','react/jsx-runtime','debounce','bottom','IBeforeCloseService','top','_online','IConfigService','_unitStatus','origin','entityInit$','_onCursorUpdate','invokeId','prototype','assign','_initCommandExecutedListener','setShapeProps','getUnitId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','USER_NOT_INVITED_CODE','getStateCache','_localStorageService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','@univerjs-pro/collaboration-client','getOwnPropertyDescriptor','toString','rxjs','Tools','clearTimeout','entries','SetDocZoomRatioOperation','pushState','ITransformService','LICENSE_EXPORT_SIZE_EXCEEDED','MUTATION','asObservable','children','_cachedData','getTypeOfUnitDisposed$','_lastPointer','deepClone','clipPath','_updateLocalCursor','NodePositionConvertToRectRange','unitId','TOO_MANY_REQUESTS','WECHAT_HAS_BEEN_BOUND','_initStatusListener','loadOfflineData','getValue','width','_createSocketURL','serializeRangeWithSheet','type','createSocket','collabCursorState$','BehaviorSubject','unshift','loadUnit','UNRECOGNIZED','getCollabCursors$','_notificationService','removeParam','pipe','off-line-single','LICENSE_DISTRO_REJECTED','_renderManagerService','_transformService','disposeUnit','@univerjs-pro/collaboration','onPointerEnter$','SetWorksheetActivateCommand','LOCAL_CACHE_INTERVAL','selection','CollaborationDataLoaderController','addObjects','DeleteRangeMoveUpCommandId','LOGIN_FAILED','RemoteUniscriptService','DOC_RANGE_TYPE','setTimeout','Error','searchParams','0\x200\x2017\x2016','@univerjs/docs','red300','mutations','switchMap','APPLY_DUPLICATED','source','_removeClearOtherTimer','onPointerLeave$','forwardRef','Injector','IUIPartsService','_name','_clearOtherTimers','_dataLoaderService','M0\x200H16V16H0z','27PAGCFH','font','subUnitId','sheetID','_scheduleSaving','YUUMI_NO_CUBOID_FOR_QUESTION','docStateChange$','unload','_instanceService','push','setUndoRedoMutationParamsCache','unsubscribe','_injector','ranges','isEditing','_anchor','ILogService','status$','_range','UPDATE_CURSOR','collaboration.single-unit.warning','IURLService','CHANGESET_REVISION_CONFILICT','path','complete','send','0\x200\x2016\x2016','row','getVpScrollXYInfoByPosToVp','_docClipboardService','doc.mutation.rich-text-editing','TEXT','collabStatus.synced','distinctUntilChanged','_color','RichTextEditingMutation','subscribeEvent','get','generateRandomId','dispose$','unit','transformStateCache','SheetsSelectionsService','getOffsetConfig','url(#on-line-single_clip0_910_349)','mapTo','RemoveColCommandId','DependentOn','application/json','CollaborationSessionService','_startSheetCollabCursor','_render','exhaustSavingTask','_init','createElement','_cursors','size','_scheduleClearOtherTimer','APPLY_REJECT','SOCKET_FAILED','setParam','params','sessionStatus$','transform','handleDeleteRangeMoveLeft','url(#$1','mergeOverrideWithDependencies','CLOSE_ROOM','event$','arc','min','YUUMI_SUBSCRIPTION_NOT_FOUND','Workbook','getActiveSheet','SYNCED','Optional','useRef','ENSURE_SNAPSHOT_EXECUTION','_docTransformStateCacheService','fill','_handleJoinEvent','focused$','HTTPService','createIdentifier','Failed','[CollaborationDataLoaderController]','_disabled','backgroundColor','CollaborationUIEventService','getFocusedUnit','endRow','_urlService','black','then','idSuffix','post','_roomMembers$','MemberService','getMember','@univerjs/sheets','on-line-single_clip0_910_349','m1Prime','getColor','_colorIndex','call','@univerjs/core','TRANSFORM_CHANGE_OBSERVABLE_TYPE','cursorInfo','transformSelections','column','_revisionService','range','url(#off-line-single_clip0_910_343)','deserializeRangeWithSheet','_configService','colorChannel1','RevisionService','next','parse','_registerDependencies','error','_selfUnitIDs','_sheetSkeletonManagerService','UnitStatus','debug','setItem','reconnect','getOwnPropertySymbols','ONLINE','undoState','split','defs','_initStatusComponent','NOT_FOUND','clearInterval','makeDirty','_hovered','_localeService','length','assignAColorForMemberID','subunit','div','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ThemeService','_shapes','on-line-single','extend','_updateCollabCursors','jsx','collabStatus.conflict','_localCacheService','mask','_cursorShapes','univer-text-red-500','setAlpha','some','APPLY_NON_SEQUENTIAL_REVISION','getCellPositionByOffset','registerBeforeClose','getConfig','DocStateChangeManagerService','m2Prime','textRanges','_handleLeaveEvent','onStarting','combineLatest','_docSyncEditingCollabCursorService','drawWith','UNIVER_DOC','UNIVER_SHEET','transformMutationsWithChangeset','_status$','SNAPSHOT_INVALID_SNAPSHOT','getCurrent','RECT','getRelativeToViewportCoord','with','createInstance','_collabCursorState$','_commandService','LOCAL_CACHE_INTERVAL_KEY','_getScale','_config','SNAPSHOT_HAS_BEEN_REMOVED','useCallback','#fff','defIds','IUniverInstanceService','_eventUnsubscribe','currentColor','roomMembers$','#FFF','collab-client.tooltip.reconnect','Plugin','editingUnit','height','function','filter','_removeCollabCursors','attrs','getCurrentSelections','ISocketService','code','collabStatus.notCollab','IDocClipboardService','_draw','onCommandExecuted','displayName','href','enableLocalCache','_httpService','Disposable','InsertColCommandId','round','Rectangle','measureText','_textBubble','_anchorDot','_labelPosition','LICENSE_MAX_UNITS_EXCEEDED','OffLineSingle','getItem','_collabSessionService','NOT_COLLAB','jsxs','_syncEditingCollabCursorService','715472hQGJhc','getUnhiddenWorksheets','registerRefRange','INVITE_CODE_REQUIRED','getSheetObject','_onCursorDelete','Inject','OnLineSingle','UNDEFINED','IRenderManagerService','Tooltip','2700160fYhBlZ','_ensureSubject','text','addEventListener','replaceDocRanges','body'];_0x2c59=function(){return _0x57b214;};return _0x2c59();}let Ie=class extends a['RxDisposable']{constructor(_0x2648c1,_0x13f82c,_0x29b467,_0x5e7053,_0x499a96){const _0x26def5=_0x17da78;super(),h(this,_0x26def5(0x13a),[]),h(this,'_cursors',[]),(this[_0x26def5(0x19e)]=_0x2648c1,this[_0x26def5(0x26f)]=_0x13f82c,this[_0x26def5(0x1c5)]=_0x29b467,this[_0x26def5(0x155)]=_0x5e7053,this[_0x26def5(0x259)]=_0x499a96,this['_init']());}[_0x17da78(0xd7)](){const _0x9f9df7=_0x17da78,_0x5342c3=this[_0x9f9df7(0x19e)][_0x9f9df7(0x2ea)],_0x5194b4=this[_0x9f9df7(0x26f)];this[_0x9f9df7(0x1cb)](d[_0x9f9df7(0x147)]([this['_collabCursorController'][_0x9f9df7(0x2fa)](_0x5342c3),this['_themeService']['currentTheme$']])[_0x9f9df7(0x2fd)]($[_0x9f9df7(0x26c)](([_0x338218,_0x1906d6])=>({'skeleton':_0x5194b4[_0x9f9df7(0x242)](),'cursors':[..._0x338218['values']()]['flatMap'](_0x2b9316=>({..._0x2b9316,'color':_0x1906d6[_0x2b9316['color']]}))})))[_0x9f9df7(0x221)](_0xe59c45=>{const _0x5a8925=_0x9f9df7;if(this[_0x5a8925(0x168)](),_0xe59c45){const {skeleton:_0x173f76,cursors:_0x31faae}=_0xe59c45;this['_updateCollabCursors'](_0x173f76,_0x31faae);}})),this[_0x9f9df7(0x1e3)](),this[_0x9f9df7(0x2cd)]();}[_0x17da78(0x135)](_0x32dd17,_0x5211d8){const _0x55be6a=_0x17da78,{scene:_0x232a8c,mainComponent:_0x4d03c2}=this[_0x55be6a(0x19e)],_0x1a4166=_0x5211d8[_0x55be6a(0x26c)](_0xada149=>new De(_0xada149,_0x232a8c,_0x32dd17,_0x4d03c2));this[_0x55be6a(0x13a)]=_0x1a4166,this[_0x55be6a(0xd9)]=_0x5211d8;}['_refreshCollabCursors'](){const _0x427491=_0x17da78;this[_0x427491(0x168)]();const {scene:_0x502eb9,mainComponent:_0x4b8f80}=this['_context'],_0x137de8=this[_0x427491(0x26f)][_0x427491(0x242)](),_0x131cc1=this[_0x427491(0xd9)][_0x427491(0x26c)](_0x2e811a=>new De(_0x2e811a,_0x502eb9,_0x137de8,_0x4b8f80));this[_0x427491(0x13a)]=_0x131cc1;}['_removeCollabCursors'](){const _0x42ec8d=_0x17da78;this[_0x42ec8d(0x13a)][_0x42ec8d(0x21c)](_0x101b2b=>_0x101b2b[_0x42ec8d(0x26d)]()),this['_cursorShapes']=[];}[_0x17da78(0x2cd)](){const _0x1fc901=_0x17da78,_0x2ffa76=[b[_0x1fc901(0x2dc)]['id']];this[_0x1fc901(0x1cb)](this[_0x1fc901(0x155)][_0x1fc901(0x170)](_0x422fa1=>{const _0x459ff2=_0x1fc901;_0x2ffa76['includes'](_0x422fa1['id'])&&_0x422fa1['params'][_0x459ff2(0x2ea)]===this[_0x459ff2(0x19e)]['unitId']&&this[_0x459ff2(0x1a4)]();}));}['_initResize'](){const _0x37cb25=_0x17da78;this[_0x37cb25(0x1cb)](a['fromEventSubject'](this['_context']['engine']['onTransformChange$'])[_0x37cb25(0x2fd)]($['filter'](_0x2fecb3=>_0x2fecb3[_0x37cb25(0x2f3)]===p[_0x37cb25(0x10c)]['resize']),$[_0x37cb25(0x1bc)](0x10))[_0x37cb25(0x221)](()=>{this['_refreshCollabCursors']();}));}};Ie=vt([Y(0x1,a['Inject'](W['DocSkeletonManagerService'])),Y(0x2,a['Inject'](x)),Y(0x3,a[_0x17da78(0x1fb)]),Y(0x4,a['Inject'](a[_0x17da78(0x131)]))],Ie);const gt=0x1,mt=1.5;class we extends p[_0x17da78(0x1f8)]{constructor(_0x257da4,_0xf3b34c){const _0x4e2fbd=_0x17da78;super(_0x257da4,_0xf3b34c),h(this,_0x4e2fbd(0xc4)),h(this,_0x4e2fbd(0x12a),!0x1),h(this,'_range'),h(this,_0x4e2fbd(0x31d),''),h(this,'_labelPosition',_0x4e2fbd(0x2c3)),h(this,_0x4e2fbd(0x1c2)),(_0xf3b34c&&this[_0x4e2fbd(0x2ce)](_0xf3b34c),this['onPointerEnter$'][_0x4e2fbd(0xc6)](()=>this[_0x4e2fbd(0x2ce)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x4e2fbd(0x2ce)]({'hovered':!0x1})));}[_0x17da78(0x2ce)](_0x158a8f){const _0x353db9=_0x17da78;var _0x49a5fd,_0x186c96,_0x3771ca,_0x58dd13,_0x33d42e,_0x153344;this[_0x353db9(0xc4)]=(_0x49a5fd=_0x158a8f['color'])!=null?_0x49a5fd:this[_0x353db9(0xc4)],this[_0x353db9(0x12a)]=(_0x186c96=_0x158a8f[_0x353db9(0x252)])!=null?_0x186c96:this[_0x353db9(0x12a)],this['_range']=(_0x3771ca=_0x158a8f[_0x353db9(0x111)])!=null?_0x3771ca:this[_0x353db9(0x333)],this[_0x353db9(0x31d)]=(_0x58dd13=_0x158a8f[_0x353db9(0x2b3)])!=null?_0x58dd13:this[_0x353db9(0x31d)],this[_0x353db9(0x17c)]=(_0x33d42e=_0x158a8f['labelPosition'])!=null?_0x33d42e:this[_0x353db9(0x17c)],this[_0x353db9(0x1c2)]=(_0x153344=_0x158a8f[_0x353db9(0xf9)])!=null?_0x153344:this['_backgroundColor'],this[_0x353db9(0x1b9)]({'width':_0x158a8f[_0x353db9(0x2f0)],'height':_0x158a8f[_0x353db9(0x165)]});}[_0x17da78(0x201)](_0x42bb16){const _0x196214=_0x17da78,{row:_0x32fef8,column:_0x4fde01}=_0x42bb16;if(_0x32fef8>=this['_range'][_0x196214(0x20f)]&&_0x32fef8<=this[_0x196214(0x333)][_0x196214(0xfc)]&&_0x4fde01>=this[_0x196214(0x333)][_0x196214(0x1ad)]&&_0x4fde01<=this[_0x196214(0x333)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x196214(0x2ce)]({'hovered':!0x1});}[_0x17da78(0x1af)](_0x70984d){return!0x1;}[_0x17da78(0x16f)](_0x10fcc7){const _0x254164=_0x17da78;p[_0x254164(0x27a)][_0x254164(0x149)](_0x10fcc7,{'width':this['width'],'height':this[_0x254164(0x165)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x254164(0x1c2)]}),this[_0x254164(0x12a)]&&(_0x10fcc7[_0x254164(0x2b5)](),_0x10fcc7[_0x254164(0xe1)](0x1,0x0,0x0,0x1,this[_0x254164(0x2f0)],this[_0x254164(0x17c)]===_0x254164(0x2c1)?0x0:-0x14),ee[_0x254164(0x149)](_0x10fcc7,{'text':this[_0x254164(0x31d)],'color':this[_0x254164(0xc4)]}),_0x10fcc7['restore']());}}var Ct=Object[_0x17da78(0x2d6)],pt=(_0x338d4d,_0x1cd8af,_0x3176f6,_0x2fd56a)=>{const _0x595ffa=_0x17da78;for(var _0x3956a9=_0x2fd56a>0x1?void 0x0:_0x2fd56a?Ct(_0x1cd8af,_0x3176f6):_0x1cd8af,_0x3c6858=_0x338d4d[_0x595ffa(0x12c)]-0x1,_0x3ec1b8;_0x3c6858>=0x0;_0x3c6858--)(_0x3ec1b8=_0x338d4d[_0x3c6858])&&(_0x3956a9=_0x3ec1b8(_0x3956a9)||_0x3956a9);return _0x3956a9;},ae=(_0x33c4b4,_0x2a5f26)=>(_0x2ba6a9,_0x9fce7c)=>_0x2a5f26(_0x2ba6a9,_0x9fce7c,_0x33c4b4);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x5af63e,_0x2eb981,_0x54001c,_0xb03408){const _0x4c730a=_0x17da78;super(),h(this,_0x4c730a(0xd9),new Set()),h(this,_0x4c730a(0x2e5),null),(this[_0x4c730a(0x19e)]=_0x5af63e,this[_0x4c730a(0x11c)]=_0x2eb981,this[_0x4c730a(0x1c5)]=_0x54001c,this[_0x4c730a(0x259)]=_0xb03408,this['_init']());}[_0x17da78(0xd7)](){const _0x2a400b=_0x17da78;this[_0x2a400b(0x11c)][_0x2a400b(0x236)][_0x2a400b(0x2fd)]($[_0x2a400b(0x1e8)](this[_0x2a400b(0xc9)]),$[_0x2a400b(0x315)](_0x30cf4d=>{const _0x4d6ac1=_0x2a400b;if(_0x30cf4d){const _0x3eb55b=_0x30cf4d[_0x4d6ac1(0x1e5)];return d[_0x4d6ac1(0x147)](this['_collabCursorController'][_0x4d6ac1(0x2fa)](this[_0x4d6ac1(0x19e)][_0x4d6ac1(0x2ea)]),this[_0x4d6ac1(0x259)][_0x4d6ac1(0x2ae)])[_0x4d6ac1(0x2fd)]($[_0x4d6ac1(0x26c)](([_0x37023b,_0x2b68e5])=>{const _0x2fa0c5=_0x4d6ac1,_0x312272=new Map();return _0x37023b[_0x2fa0c5(0x21c)]((_0x4fcb8e,_0x4e7542)=>{const _0x25a1b9=_0x2fa0c5;if(_0x4fcb8e[_0x25a1b9(0x324)]===_0x3eb55b){const _0x34ceb2={..._0x4fcb8e};_0x34ceb2[_0x25a1b9(0x1d1)]=_0x2b68e5[_0x4fcb8e[_0x25a1b9(0x1d1)]],_0x312272[_0x25a1b9(0x1bb)](_0x4e7542,_0x34ceb2);}}),{'skeleton':_0x30cf4d,'cursors':_0x312272};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2ef80b,cursors:_0x12bef8})=>{const _0xd808c3=_0x2a400b;this[_0xd808c3(0x168)](),_0x2ef80b&&this[_0xd808c3(0x135)](_0x2ef80b,_0x12bef8);}),this[_0x2a400b(0x11c)][_0x2a400b(0x236)][_0x2a400b(0x221)](_0x28e5fc=>{const _0xcb399=_0x2a400b;if(_0x28e5fc==null)return;const {skeleton:_0x2ec276}=_0x28e5fc,{scene:_0x3deacc}=this[_0xcb399(0x19e)];_0x3deacc['onPointerMove$']['subscribeEvent'](a[_0xcb399(0x2c0)](_0x156500=>{const _0x1b7b50=_0xcb399;var _0x3055e6,_0x1db3cc;const {offsetX:_0x43bc63,offsetY:_0x54a734}=_0x156500,{x:_0x502bad,y:_0x5ce060}=_0x3deacc[_0x1b7b50(0x151)](p['Vector2'][_0x1b7b50(0x1a6)]([_0x43bc63,_0x54a734])),{scaleX:_0xb4e26c,scaleY:_0x3fdd81}=_0x3deacc[_0x1b7b50(0x278)](),_0xbd21d2=_0x3deacc[_0x1b7b50(0x204)](p[_0x1b7b50(0x1ba)]['VIEW_MAIN']),_0x5e0ac7=_0x3deacc[_0x1b7b50(0xbe)](p['Vector2'][_0x1b7b50(0x1a6)]([_0x502bad,_0x5ce060]),_0xbd21d2),_0x234af9=_0x2ec276[_0x1b7b50(0x13f)](_0x43bc63,_0x54a734,_0xb4e26c,_0x3fdd81,_0x5e0ac7);((_0x3055e6=this[_0x1b7b50(0x2e5)])==null?void 0x0:_0x3055e6[_0x1b7b50(0x10f)])===_0x234af9[_0x1b7b50(0x10f)]&&((_0x1db3cc=this['_lastPointer'])==null?void 0x0:_0x1db3cc[_0x1b7b50(0xbd)])===_0x234af9[_0x1b7b50(0xbd)]||this[_0x1b7b50(0xd9)][_0x1b7b50(0x21c)](_0x46dcbb=>{const _0x19fd68=_0x1b7b50;_0x46dcbb[_0x19fd68(0x201)](_0x234af9);});},0x64));});}[_0x17da78(0x135)](_0x4ed112,_0x5918e9){const _0x1a57b4=_0x17da78;var _0x415031;const _0x4c255d=(_0x415031=this['_sheetSkeletonManagerService'][_0x1a57b4(0x14f)]())==null?void 0x0:_0x415031[_0x1a57b4(0x24e)];if(!_0x4c255d)return;const _0x149030=this[_0x1a57b4(0x1e0)]();if(!_0x149030)return;this[_0x1a57b4(0xd9)][_0x1a57b4(0x21c)](_0x3627f8=>{const _0x3b783b=_0x1a57b4;_0x3627f8[_0x3b783b(0x129)]();});const {scene:_0x27c29a}=_0x149030,_0x4fe9b2=Et(Array[_0x1a57b4(0x202)](_0x5918e9['values']()))['map'](_0x116509=>{const _0x4d11e6=_0x1a57b4,{color:_0x510c33,range:_0x5a1cef,name:_0x5ac993,selection:_0x393c8c,sheetID:_0x521f67}=_0x116509,{startColumn:_0xfe244d,startRow:_0x1645c0,endColumn:_0x40e621,endRow:_0x3d4c79}=_0x5a1cef,_0x5251d5=X['getCoordByCell'](_0x1645c0,_0xfe244d,_0x27c29a,_0x4c255d),_0x561466=X[_0x4d11e6(0x239)](_0x3d4c79,_0x40e621,_0x27c29a,_0x4c255d),{columnHeaderHeightAndMarginTop:_0x3f46c4}=_0x4c255d,{startX:_0x31a2d0,startY:_0x2f9e13}=_0x5251d5,{endX:_0x19cae3,endY:_0x387e52}=_0x561466,_0x178c10=_0x19cae3-_0x31a2d0,_0x3c21db=_0x387e52-_0x2f9e13,_0x55057c={'labelPosition':_0x2f9e13-_0x3f46c4>=q?'top':_0x4d11e6(0x2c1),'sheetID':_0x521f67,'range':_0x5a1cef,'color':_0x510c33,'name':_0x5ac993,'selection':_0x393c8c,'left':_0x31a2d0,'top':_0x2f9e13,'width':_0x178c10,'height':_0x3c21db,'evented':!0x1,'zIndex':bt};return new we(_0x5ac993,_0x55057c);});_0x27c29a[_0x1a57b4(0x309)](_0x4fe9b2,gt),this[_0x1a57b4(0xd9)]=new Set(_0x4fe9b2);}['_removeCollabCursors'](){const _0x1aa9c0=_0x17da78;var _0x1e0750;(_0x1e0750=this[_0x1aa9c0(0xd9)])==null||_0x1e0750[_0x1aa9c0(0x21c)](_0x2dee5d=>_0x2dee5d['dispose']());}['_getSheetObject'](){const _0x1f8d79=_0x17da78;return X[_0x1f8d79(0x188)](this[_0x1f8d79(0x19e)][_0x1f8d79(0xca)],this[_0x1f8d79(0x19e)]);}};ve=pt([ae(0x1,a[_0x17da78(0x18a)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x17da78(0x18a)](a[_0x17da78(0x131)]))],ve);function Et(_0x579507){const _0x35b69b=_0x17da78,_0x1a917e=new Map();return _0x579507[_0x35b69b(0x21c)](_0x2a7aaf=>{const _0xbb9da4=_0x35b69b;if(_0x1a917e[_0xbb9da4(0x24f)](_0x2a7aaf[_0xbb9da4(0x307)])){const _0x141053=_0x1a917e[_0xbb9da4(0xc7)](_0x2a7aaf['selection']);_0x141053[_0xbb9da4(0x2b3)]+=',\x20'+_0x2a7aaf['name'];}else _0x1a917e[_0xbb9da4(0x1bb)](_0x2a7aaf[_0xbb9da4(0x307)],_0x2a7aaf);}),Array[_0x35b69b(0x202)](_0x1a917e[_0x35b69b(0x1fd)]());}var E=function(){const _0x3050e6=_0x17da78;return E=Object[_0x3050e6(0x2cc)]||function(_0x219449){const _0xb441d5=_0x3050e6;for(var _0x1d33a6,_0x134011=0x1,_0x107fd1=arguments[_0xb441d5(0x12c)];_0x134011<_0x107fd1;_0x134011++){_0x1d33a6=arguments[_0x134011];for(var _0x449d96 in _0x1d33a6)Object['prototype']['hasOwnProperty'][_0xb441d5(0x10a)](_0x1d33a6,_0x449d96)&&(_0x219449[_0x449d96]=_0x1d33a6[_0x449d96]);}return _0x219449;},E[_0x3050e6(0x1f4)](this,arguments);},Tt=function(_0x247217,_0xf18d8){const _0x29bd42=_0x17da78;var _0x105fe5={};for(var _0x2e5fb1 in _0x247217)Object[_0x29bd42(0x2cb)][_0x29bd42(0x28c)][_0x29bd42(0x10a)](_0x247217,_0x2e5fb1)&&_0xf18d8[_0x29bd42(0x1ff)](_0x2e5fb1)<0x0&&(_0x105fe5[_0x2e5fb1]=_0x247217[_0x2e5fb1]);if(_0x247217!=null&&typeof Object[_0x29bd42(0x121)]==_0x29bd42(0x166)){for(var _0x4b0dfa=0x0,_0x2e5fb1=Object['getOwnPropertySymbols'](_0x247217);_0x4b0dfa<_0x2e5fb1[_0x29bd42(0x12c)];_0x4b0dfa++)_0xf18d8['indexOf'](_0x2e5fb1[_0x4b0dfa])<0x0&&Object[_0x29bd42(0x2cb)]['propertyIsEnumerable'][_0x29bd42(0x10a)](_0x247217,_0x2e5fb1[_0x4b0dfa])&&(_0x105fe5[_0x2e5fb1[_0x4b0dfa]]=_0x247217[_0x2e5fb1[_0x4b0dfa]]);}return _0x105fe5;},pe=M[_0x17da78(0x31a)](function(_0x52a24b,_0x280b85){const _0xe0387b=_0x17da78;var _0x3860a7=_0x52a24b[_0xe0387b(0x288)],_0x5092d2=_0x52a24b['id'],_0x5da7f0=_0x52a24b['className'],_0x192f97=_0x52a24b[_0xe0387b(0x134)],_0x163712=Tt(_0x52a24b,[_0xe0387b(0x288),'id','className',_0xe0387b(0x134)]),_0x5a331b=_0xe0387b(0x1bf)[_0xe0387b(0x1ed)](_0x5092d2,'\x20')[_0xe0387b(0x1ed)](_0x5da7f0||'')['trim'](),_0x44b625=M[_0xe0387b(0xee)]('_'[_0xe0387b(0x1ed)](Dt()));return Ae(_0x3860a7,''['concat'](_0x5092d2),{'defIds':_0x3860a7[_0xe0387b(0x15c)],'idSuffix':_0x44b625[_0xe0387b(0x25e)]},E({'ref':_0x280b85,'className':_0x5a331b},_0x163712),_0x192f97);});function Ae(_0x3f9884,_0x35ff9e,_0x359c22,_0x365ab4,_0xafcb06){const _0x3e067e=_0x17da78;return M[_0x3e067e(0xd8)](_0x3f9884[_0x3e067e(0x2a1)],E(E({'key':_0x35ff9e},Ot(_0x3f9884,_0x359c22,_0xafcb06)),_0x365ab4),(Rt(_0x3f9884,_0x359c22)[_0x3e067e(0x2e2)]||[])['map'](function(_0xbd4b72,_0xedf1b9){const _0x2f6d11=_0x3e067e;return Ae(_0xbd4b72,''[_0x2f6d11(0x1ed)](_0x35ff9e,'-')[_0x2f6d11(0x1ed)](_0x3f9884[_0x2f6d11(0x2a1)],'-')['concat'](_0xedf1b9),_0x359c22,void 0x0,_0xafcb06);}));}function Ot(_0x5404ca,_0x3aa350,_0x56fd22){const _0x14107d=_0x17da78;var _0xbce496=E({},_0x5404ca[_0x14107d(0x169)]);_0x56fd22!=null&&_0x56fd22[_0x14107d(0x115)]&&_0xbce496[_0x14107d(0xf1)]==='colorChannel1'&&(_0xbce496[_0x14107d(0xf1)]=_0x56fd22['colorChannel1']),_0x5404ca[_0x14107d(0x2a1)]==='mask'&&_0xbce496['id']&&(_0xbce496['id']=_0xbce496['id']+_0x3aa350[_0x14107d(0x100)]),Object[_0x14107d(0x2db)](_0xbce496)['forEach'](function(_0x5599a5){const _0xe1c6ba=_0x14107d;var _0x5d3d82=_0x5599a5[0x0],_0x170882=_0x5599a5[0x1];_0x5d3d82===_0xe1c6ba(0x139)&&typeof _0x170882==_0xe1c6ba(0x20c)&&(_0xbce496[_0x5d3d82]=_0x170882[_0xe1c6ba(0x234)](/url\(#(.*)\)/,'url(#$1'[_0xe1c6ba(0x1ed)](_0x3aa350[_0xe1c6ba(0x100)],')')));});var _0x110fe5=_0x3aa350[_0x14107d(0x15c)];return!_0x110fe5||_0x110fe5['length']===0x0||(_0x5404ca[_0x14107d(0x2a1)]===_0x14107d(0x1d3)&&_0xbce496['xlink:href']&&(_0xbce496['xlink:href']=_0xbce496[_0x14107d(0x2aa)]+_0x3aa350[_0x14107d(0x100)]),Object['entries'](_0xbce496)[_0x14107d(0x21c)](function(_0x3efcdc){const _0x115213=_0x14107d;var _0x552663=_0x3efcdc[0x0],_0x2b3707=_0x3efcdc[0x1];typeof _0x2b3707=='string'&&(_0xbce496[_0x552663]=_0x2b3707[_0x115213(0x234)](/url\(#(.*)\)/,_0x115213(0xe3)[_0x115213(0x1ed)](_0x3aa350['idSuffix'],')')));})),_0xbce496;}function Rt(_0x1fe4ac,_0x529ada){const _0x236622=_0x17da78;var _0x5790a9,_0x8718ad=_0x529ada['defIds'];return!_0x8718ad||_0x8718ad['length']===0x0?_0x1fe4ac:_0x1fe4ac[_0x236622(0x2a1)]===_0x236622(0x125)&&(!((_0x5790a9=_0x1fe4ac[_0x236622(0x2e2)])===null||_0x5790a9===void 0x0)&&_0x5790a9['length'])?E(E({},_0x1fe4ac),{'children':_0x1fe4ac[_0x236622(0x2e2)][_0x236622(0x26c)](function(_0x3ad15e){const _0x36da42=_0x236622;return typeof _0x3ad15e['attrs']['id']==_0x36da42(0x20c)&&_0x8718ad&&_0x8718ad[_0x36da42(0x1ff)](_0x3ad15e[_0x36da42(0x169)]['id'])>-0x1?E(E({},_0x3ad15e),{'attrs':E(E({},_0x3ad15e[_0x36da42(0x169)]),{'id':_0x3ad15e[_0x36da42(0x169)]['id']+_0x529ada[_0x36da42(0x100)]})}):_0x3ad15e;})}):_0x1fe4ac;}function Dt(){const _0x1908b1=_0x17da78;return Math[_0x1908b1(0x1fe)]()[_0x1908b1(0x2d7)](0x24)['substring'](0x2,0x8);}pe[_0x17da78(0x171)]='UniverIcon';var Ut={'tag':_0x17da78(0x203),'attrs':{'fill':'none','viewBox':_0x17da78(0xbc),'width':_0x17da78(0x2a7),'height':_0x17da78(0x2a7)},'children':[{'tag':'g','attrs':{'clipPath':_0x17da78(0x112)},'children':[{'tag':_0x17da78(0xb9),'attrs':{'stroke':_0x17da78(0x15f),'d':_0x17da78(0x19d),'strokeLinecap':_0x17da78(0x177),'strokeLinejoin':_0x17da78(0x177),'strokeWidth':1.2}}]},{'tag':_0x17da78(0x125),'attrs':{},'children':[{'tag':_0x17da78(0x2e7),'attrs':{'id':_0x17da78(0x25d)},'children':[{'tag':_0x17da78(0xb9),'attrs':{'fill':_0x17da78(0x15b),'d':_0x17da78(0x320)}}]}]}],'defIds':[_0x17da78(0x25d)]},ye=M[_0x17da78(0x31a)](function(_0x2be18a,_0x2fc021){const _0x319597=_0x17da78;return M['createElement'](pe,Object[_0x319597(0x2cc)]({},_0x2be18a,{'id':_0x319597(0x2fe),'ref':_0x2fc021,'icon':Ut}));});ye[_0x17da78(0x171)]=_0x17da78(0x17e);var Nt={'tag':_0x17da78(0x203),'attrs':{'fill':'none','viewBox':_0x17da78(0x311),'width':_0x17da78(0x2a7),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x17da78(0xce)},'children':[{'tag':_0x17da78(0xb9),'attrs':{'stroke':_0x17da78(0x15f),'d':_0x17da78(0x2d4),'strokeLinecap':'round','strokeLinejoin':_0x17da78(0x177),'strokeWidth':1.2}}]},{'tag':_0x17da78(0x125),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x17da78(0xb9),'attrs':{'fill':_0x17da78(0x15b),'d':_0x17da78(0x320),'transform':_0x17da78(0x2bd)}}]}]}],'defIds':[_0x17da78(0x106)]},$e=M[_0x17da78(0x31a)](function(_0x12aa59,_0x2acc8f){const _0x32e3ba=_0x17da78;return M['createElement'](pe,Object['assign']({},_0x12aa59,{'id':_0x32e3ba(0x133),'ref':_0x2acc8f,'icon':Nt}));});$e[_0x17da78(0x171)]=_0x17da78(0x18b);function Mt(_0x189303){const _0x2915f5=_0x17da78;switch(_0x189303){case u[_0x2915f5(0x213)]['OFFLINE']:return'collabStatus.offline';case u[_0x2915f5(0x213)][_0x2915f5(0x23e)]:return _0x2915f5(0x137);case u['CollaborationStatus'][_0x2915f5(0x297)]:return _0x2915f5(0x2ac);case u[_0x2915f5(0x213)][_0x2915f5(0x181)]:return _0x2915f5(0x16d);case u[_0x2915f5(0x213)]['AWAITING']:case u[_0x2915f5(0x213)][_0x2915f5(0x1d7)]:return _0x2915f5(0x253);case u['CollaborationStatus'][_0x2915f5(0xec)]:case u[_0x2915f5(0x213)][_0x2915f5(0x2be)]:return _0x2915f5(0xc2);}}function xe(_0x424bbd){const _0x78dfe8=_0x17da78,{status$:_0x309da7}=_0x424bbd,_0x49e3a8=T[_0x78dfe8(0x274)](_0x309da7,u[_0x78dfe8(0x213)]['NOT_COLLAB']),_0x5cd44c=T[_0x78dfe8(0x2a9)](a[_0x78dfe8(0x1f9)]),_0x5460ff=T[_0x78dfe8(0x2a9)](u['CollaborationSessionService']),_0x8d6c3c=_0x49e3a8!==u['CollaborationStatus']['OFFLINE'],_0x808174=_0x5cd44c['t'](Mt(_0x49e3a8)),_0xb04d3e=_0x8d6c3c?P[_0x78dfe8(0x136)]($e,{}):P['jsx'](ye,{}),_0x44faa1=M[_0x78dfe8(0x15a)](()=>{const _0x5593f5=_0x78dfe8;_0x8d6c3c||_0x5460ff[_0x5593f5(0x120)]();},[_0x8d6c3c,_0x5460ff]);function _0x54f016(){const _0x4eb042=_0x78dfe8;return P[_0x4eb042(0x182)](_0x4eb042(0x12f),{'className':'univer-flex\x20univer-items-center','onClick':_0x44faa1,'children':[P[_0x4eb042(0x136)](_0x4eb042(0x12f),{'className':D[_0x4eb042(0x1e1)]('univer-flex\x20univer-mr-2\x20univer-text-[20px]',_0x8d6c3c?_0x4eb042(0x215):_0x4eb042(0x13b)),'children':_0xb04d3e}),P[_0x4eb042(0x136)](_0x4eb042(0x12f),{'className':_0x4eb042(0x2bc),'children':_0x808174})]});}return _0x8d6c3c?_0x54f016():P[_0x78dfe8(0x136)](D[_0x78dfe8(0x18e)],{'title':_0x5cd44c['t'](_0x78dfe8(0x162)),'children':_0x54f016()});}var Lt=Object[_0x17da78(0x2d6)],Pt=(_0x4cabce,_0xbb845e,_0x273a8a,_0x42907c)=>{const _0x5d1764=_0x17da78;for(var _0x1af27b=_0x42907c>0x1?void 0x0:_0x42907c?Lt(_0xbb845e,_0x273a8a):_0xbb845e,_0x192610=_0x4cabce[_0x5d1764(0x12c)]-0x1,_0x3c968d;_0x192610>=0x0;_0x192610--)(_0x3c968d=_0x4cabce[_0x192610])&&(_0x1af27b=_0x3c968d(_0x1af27b)||_0x1af27b);return _0x1af27b;},V=(_0x317da8,_0x347a2f)=>(_0x365c0a,_0x970b2b)=>_0x347a2f(_0x365c0a,_0x970b2b,_0x317da8);exports[_0x17da78(0x200)]=class extends a[_0x17da78(0x175)]{constructor(_0x589f37,_0x12f8cc,_0x170ac2,_0x230254){const _0x581751=_0x17da78;super(),h(this,_0x581751(0x14d),new d['BehaviorSubject'](u[_0x581751(0x213)][_0x581751(0x181)])),(this[_0x581751(0x2ab)]=_0x589f37,this[_0x581751(0x32d)]=_0x12f8cc,this[_0x581751(0x24d)]=_0x170ac2,this[_0x581751(0x262)]=_0x230254,this['_initStatusComponent'](),this[_0x581751(0x2ed)]());}[_0x17da78(0x2ed)](){const _0x44eef5=_0x17da78;this[_0x44eef5(0x1cb)](this[_0x44eef5(0x2ab)][_0x44eef5(0xf3)][_0x44eef5(0x2fd)](d[_0x44eef5(0x315)](()=>{const _0xa913ff=_0x44eef5,_0x369119=this[_0xa913ff(0x2ab)][_0xa913ff(0xfb)]();return _0x369119?this[_0xa913ff(0x24d)]['getCollabEntity$'](_0x369119[_0xa913ff(0x2cf)]()):d['of'](null);}),d[_0x44eef5(0x315)](_0x12f0f4=>_0x12f0f4?_0x12f0f4[_0x44eef5(0x332)]:d['of'](u['CollaborationStatus'][_0x44eef5(0x181)])))[_0x44eef5(0x221)](_0x226886=>{const _0x4406e1=_0x44eef5;this[_0x4406e1(0x14d)][_0x4406e1(0x117)](_0x226886);}));}[_0x17da78(0x126)](){const _0x44845d=_0x17da78;this['disposeWithMe'](this[_0x44845d(0x262)]['registerComponent'](T[_0x44845d(0x217)][_0x44845d(0x283)],()=>T['connectInjector'](wt({'status$':this[_0x44845d(0x14d)]['asObservable']()}),this[_0x44845d(0x32d)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a['Injector'])),V(0x2,a[_0x17da78(0x18a)](u[_0x17da78(0x280)])),V(0x3,T[_0x17da78(0x31c)])],exports[_0x17da78(0x200)]);function wt(_0x5130dc){const {status$:_0x174493}=_0x5130dc;return function(){const _0x473a09=_0x135d;return P[_0x473a09(0x136)](xe,{'status$':_0x174493});};}var At=Object[_0x17da78(0x2d6)],yt=(_0x25842b,_0x4c10fe,_0xd01e4d,_0x564f75)=>{const _0x4640dd=_0x17da78;for(var _0x49298f=_0x564f75>0x1?void 0x0:_0x564f75?At(_0x4c10fe,_0xd01e4d):_0x4c10fe,_0x456f1a=_0x25842b[_0x4640dd(0x12c)]-0x1,_0x21a7a3;_0x456f1a>=0x0;_0x456f1a--)(_0x21a7a3=_0x25842b[_0x456f1a])&&(_0x49298f=_0x21a7a3(_0x49298f)||_0x49298f);return _0x49298f;},y=(_0x52f176,_0x5d278a)=>(_0x3d88be,_0x371c2d)=>_0x5d278a(_0x3d88be,_0x371c2d,_0x52f176);let K=class extends a[_0x17da78(0x175)]{constructor(_0xc3c1aa,_0x367417,_0x1b58b1,_0x3b6f10,_0x434780,_0x304e46){const _0x28b5ec=_0x17da78;super(),this[_0x28b5ec(0x1de)]=_0xc3c1aa,this[_0x28b5ec(0x138)]=_0x367417,this[_0x28b5ec(0x23a)]=_0x1b58b1,this[_0x28b5ec(0x2a8)]=_0x3b6f10,this[_0x28b5ec(0x2fb)]=_0x434780,this[_0x28b5ec(0x12b)]=_0x304e46,this['_setupBeforeClosingHandler'](),this[_0x28b5ec(0x1ea)]();}['_setupBeforeClosingHandler'](){const _0x3a757f=_0x17da78;this[_0x3a757f(0x1cb)](this['_beforeCloseService'][_0x3a757f(0x140)](()=>{const _0xeebee=_0x3a757f;if(this['_localCacheService'][_0xeebee(0x1f7)]['size'])return this[_0xeebee(0x12b)]['t'](_0xeebee(0x1a3));}));}['_initEvent'](){const _0x5e8c52=_0x17da78;this[_0x5e8c52(0x1cb)](this['_collaborationUIEventService']['event$'][_0x5e8c52(0x221)](_0x1c917c=>{const _0x42810c=_0x5e8c52;_0x1c917c['id']===u[_0x42810c(0x298)]['OTHER_CLIENT_EDITING']&&this[_0x42810c(0x2a8)][_0x42810c(0x240)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x42810c(0x335))}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0xe5)]&&this['_messageService']['show']({'type':D[_0x42810c(0x21d)][_0x42810c(0x296)],'content':this[_0x42810c(0x12b)]['t'](_0x42810c(0x22c))}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0x282)]&&this['_notificationService'][_0x42810c(0x240)]({'title':this[_0x42810c(0x12b)]['t']('permission.title'),'content':this[_0x42810c(0x12b)]['t'](_0x42810c(0x220)),'type':_0x42810c(0x11a),'duration':0x0}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0x23e)]&&this[_0x42810c(0x2a8)]['show']({'type':D['MessageType'][_0x42810c(0x30f)],'content':this[_0x42810c(0x12b)]['t'](_0x42810c(0x22c))+'('+_0x1c917c[_0x42810c(0x214)]+')'}),_0x1c917c['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x42810c(0x2a8)][_0x42810c(0x240)]({'type':D[_0x42810c(0x21d)][_0x42810c(0x296)],'content':this[_0x42810c(0x12b)]['t'](_0x1c917c[_0x42810c(0x214)]||'')}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0x23d)]&&this[_0x42810c(0x2a8)][_0x42810c(0x240)]({'type':D[_0x42810c(0x21d)][_0x42810c(0x296)],'content':this['_localeService']['t'](_0x42810c(0x285))}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0xdd)]&&this['_messageService']['show']({'type':D['MessageType'][_0x42810c(0x30f)],'content':this[_0x42810c(0x12b)]['t'](_0x42810c(0x2af))}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0x1f5)]&&this[_0x42810c(0x2a8)][_0x42810c(0x240)]({'type':D[_0x42810c(0x21d)][_0x42810c(0x30f)],'content':this[_0x42810c(0x12b)]['t'](_0x42810c(0x25c))});}));}};K=yt([y(0x0,T[_0x17da78(0x2c2)]),y(0x1,u[_0x17da78(0x250)]),y(0x2,a['Inject'](u[_0x17da78(0xfa)])),y(0x3,T[_0x17da78(0x19b)]),y(0x4,T['INotificationService']),y(0x5,a[_0x17da78(0x18a)](a[_0x17da78(0x1f9)]))],K);const $t=_0x17da78(0x1c9),Ue={},be=a[_0x17da78(0xf5)](_0x17da78(0x1ab));var xt=Object[_0x17da78(0x2d6)],jt=(_0x348f90,_0xb58294,_0x1c3043,_0xca1586)=>{const _0x5bbc6e=_0x17da78;for(var _0xebf92c=_0xca1586>0x1?void 0x0:_0xca1586?xt(_0xb58294,_0x1c3043):_0xb58294,_0x3c7ff7=_0x348f90[_0x5bbc6e(0x12c)]-0x1,_0x452282;_0x3c7ff7>=0x0;_0x3c7ff7--)(_0x452282=_0x348f90[_0x3c7ff7])&&(_0xebf92c=_0x452282(_0xebf92c)||_0xebf92c);return _0xebf92c;},H=(_0x5e39f8,_0x6023ce)=>(_0x2a9612,_0x21ecf7)=>_0x6023ce(_0x2a9612,_0x21ecf7,_0x5e39f8);exports[_0x17da78(0x308)]=class extends a[_0x17da78(0x206)]{constructor(_0xc1d141,_0x37c098,_0x4048e2,_0x405c16,_0x525d78){const _0x49efeb=_0x17da78;super(),this[_0x49efeb(0xfd)]=_0xc1d141,this[_0x49efeb(0x248)]=_0x37c098,this[_0x49efeb(0x155)]=_0x4048e2,this['_dataLoaderService']=_0x405c16,_0x525d78?_0x525d78==null||_0x525d78[_0x49efeb(0x216)]()['then'](()=>this[_0x49efeb(0xd7)]()):(this['_logService']['debug'](_0x49efeb(0xf7),_0x49efeb(0x237)),this['_init']());}async[_0x17da78(0xd7)](){const _0x2d18bc=_0x17da78,_0x315803=this[_0x2d18bc(0xfd)][_0x2d18bc(0x26b)](_0x2d18bc(0xca)),_0x218f74=this[_0x2d18bc(0xfd)][_0x2d18bc(0x26b)](_0x2d18bc(0x2f3)),_0x57b605=this[_0x2d18bc(0xfd)][_0x2d18bc(0x26b)](_0x2d18bc(0x12e));if(!_0x315803||!_0x218f74){this[_0x2d18bc(0x248)][_0x2d18bc(0x11e)](_0x2d18bc(0xf7),_0x2d18bc(0x1d0));return;}const _0xc40eda=await this[_0x2d18bc(0x31f)][_0x2d18bc(0x2f8)](_0x315803,Number(_0x218f74),_0x57b605);_0xc40eda&&_0xc40eda instanceof a[_0x2d18bc(0xea)]&&this[_0x2d18bc(0x2b9)](_0xc40eda);}async[_0x17da78(0x2b9)](_0x1e5ff3){const _0x4fde08=_0x17da78;await this[_0x4fde08(0x243)](_0x1e5ff3),_0x1e5ff3[_0x4fde08(0x24c)][_0x4fde08(0x2fd)](d[_0x4fde08(0x1e8)](this['dispose$']))[_0x4fde08(0x221)](_0x5be66a=>{const _0x5e5af8=_0x4fde08;_0x5be66a&&this[_0x5e5af8(0x19f)](_0x5be66a);}),this[_0x4fde08(0xfd)][_0x4fde08(0x23c)]['pipe'](d[_0x4fde08(0x1e8)](this[_0x4fde08(0xc9)]))['subscribe'](()=>this[_0x4fde08(0x243)](_0x1e5ff3));}[_0x17da78(0x19f)](_0x14dfa4,_0x2117b5=!0x1){const _0x202d00=_0x17da78,_0x31c6b4=this[_0x202d00(0xfd)][_0x202d00(0x26b)](_0x202d00(0x12e));_0x14dfa4['getSheetId']()!==_0x31c6b4&&this['_urlService'][_0x202d00(0xde)](_0x202d00(0x12e),_0x14dfa4['getSheetId'](),_0x2117b5);}async[_0x17da78(0x243)](_0x208d22){const _0x24d852=_0x17da78;var _0x2cf424;const _0x41b549=this[_0x24d852(0xfd)][_0x24d852(0x26b)](_0x24d852(0x12e));if(!_0x41b549||!_0x208d22[_0x24d852(0x249)](_0x41b549)){const _0x43b69d=_0x208d22[_0x24d852(0x185)]()[0x0],_0xe31b31=_0x208d22[_0x24d852(0x249)](_0x43b69d);if(!_0xe31b31)return;this['_updateURLWithCurrentState'](_0xe31b31,!0x0),await this[_0x24d852(0x155)]['executeCommand'](g[_0x24d852(0x305)]['id'],{'unitId':_0x208d22['getUnitId'](),'subUnitId':_0x43b69d});return;}((_0x2cf424=_0x208d22[_0x24d852(0xeb)]())==null?void 0x0:_0x2cf424[_0x24d852(0x1d9)]())!==_0x41b549&&await this[_0x24d852(0x155)][_0x24d852(0x1a2)](g[_0x24d852(0x305)]['id'],{'unitId':_0x208d22['getUnitId'](),'subUnitId':_0x41b549});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x17da78(0x331)]),H(0x2,a[_0x17da78(0x1fb)]),H(0x3,a[_0x17da78(0x18a)](u['DataLoaderService'])),H(0x4,a[_0x17da78(0xed)](qe['IRemoteInstanceService']))],exports[_0x17da78(0x308)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x312c51,_0x2546eb,_0x137827,_0x2510aa)=>{const _0x3e6243=_0x17da78;for(var _0x425805=_0x2510aa>0x1?void 0x0:_0x2510aa?Bt(_0x2546eb,_0x137827):_0x2546eb,_0x2f4e96=_0x312c51[_0x3e6243(0x12c)]-0x1,_0x3b43df;_0x2f4e96>=0x0;_0x2f4e96--)(_0x3b43df=_0x312c51[_0x2f4e96])&&(_0x425805=_0x3b43df(_0x425805)||_0x425805);return _0x425805;},ce=(_0x146554,_0x4de062)=>(_0x319ccb,_0x47228c)=>_0x4de062(_0x319ccb,_0x47228c,_0x146554);let z=class{constructor(_0x5e390f,_0x1b3eb9,_0x5e191d){const _0x21b097=_0x17da78;this[_0x21b097(0x32d)]=_0x5e390f,this[_0x21b097(0x301)]=_0x1b3eb9,this[_0x21b097(0x300)]=_0x5e191d;}[_0x17da78(0x1dd)](_0x53c310){const _0x16cd89=_0x17da78;this[_0x16cd89(0x257)](_0x53c310),this['_transformPreviousActiveRange'](_0x53c310);}['transformRemoteChangeset'](_0x40211e){const _0x4417bd=_0x17da78,{unitID:_0x16a361}=_0x40211e,_0x3c7643=this[_0x4417bd(0x300)][_0x4417bd(0x25b)](_0x16a361)[_0x4417bd(0x152)](b['DocIMEInputManagerService']),{redoCache:_0x1d7522}=_0x3c7643[_0x4417bd(0x222)]();if(_0x1d7522[_0x4417bd(0x12c)]===0x0)return _0x40211e;let _0x17a583=a['Tools'][_0x4417bd(0x2e6)](_0x40211e['mutations'][0x0]);for(let _0x885dc0=0x0;_0x885dc0<_0x1d7522['length'];_0x885dc0++){const _0x288877={'id':_0x4417bd(0xc0),'params':{..._0x1d7522[_0x885dc0]}},_0x31b748=this[_0x4417bd(0x301)]['transformMutation'](_0x17a583,_0x288877,!0x1);if(m[_0x4417bd(0x2a4)](_0x31b748))throw _0x31b748[_0x4417bd(0x11a)];_0x17a583=_0x31b748[_0x4417bd(0x107)];}return{...a[_0x4417bd(0x2d9)]['deepClone'](_0x40211e),'mutations':[_0x17a583]};}[_0x17da78(0x257)](_0x5bf87b){const _0x1c4ecd=_0x17da78,{unitID:_0x45c2b5}=_0x5bf87b,_0x1a31a0=this[_0x1c4ecd(0x300)][_0x1c4ecd(0x25b)](_0x45c2b5)[_0x1c4ecd(0x152)](b[_0x1c4ecd(0x1a0)]),{undoCache:_0x250b2b,redoCache:_0xaceaf8}=_0x1a31a0[_0x1c4ecd(0x222)]();if(_0x250b2b[_0x1c4ecd(0x12c)]===0x0||_0xaceaf8[_0x1c4ecd(0x12c)]===0x0)return;const _0x18d2a6=[],_0x26e4d6=[];let _0x10fcb6=a[_0x1c4ecd(0x2d9)][_0x1c4ecd(0x2e6)](_0x5bf87b[_0x1c4ecd(0x314)][0x0]),_0x2b4475=a[_0x1c4ecd(0x2d9)][_0x1c4ecd(0x2e6)](_0x5bf87b[_0x1c4ecd(0x314)][0x0]);for(let _0x1be5a2=_0x250b2b['length']-0x1;_0x1be5a2>=0x0;_0x1be5a2--){const _0x5e0d40={'id':_0x1c4ecd(0xc0),'params':{..._0x250b2b[_0x1be5a2]}},_0x520ac9={'id':_0x1c4ecd(0xc0),'params':{..._0xaceaf8[_0x1be5a2]}},_0xc06ad2=this[_0x1c4ecd(0x301)][_0x1c4ecd(0x29d)](_0x10fcb6,_0x5e0d40,!0x1),_0x28f729=this[_0x1c4ecd(0x301)][_0x1c4ecd(0x29d)](_0x2b4475,_0x520ac9,!0x1);if(m['isTransformMutationFailure'](_0xc06ad2))throw _0xc06ad2['error'];if(m['isTransformMutationFailure'](_0x28f729))throw _0x28f729[_0x1c4ecd(0x11a)];_0x18d2a6[_0x1c4ecd(0x2f7)](_0xc06ad2['m2Prime'][_0x1c4ecd(0xdf)]),_0x26e4d6['unshift'](_0x28f729[_0x1c4ecd(0x143)]['params']),_0x10fcb6=_0xc06ad2[_0x1c4ecd(0x107)],_0x2b4475=_0x28f729[_0x1c4ecd(0x107)];}_0x1a31a0[_0x1c4ecd(0x32b)]({'undoCache':_0x18d2a6,'redoCache':_0x26e4d6});}['_transformPreviousActiveRange'](_0x41b033){const _0x342d7e=_0x17da78,{unitID:_0x4960bd}=_0x41b033,_0xbe27da=this[_0x342d7e(0x300)][_0x342d7e(0x25b)](_0x4960bd)[_0x342d7e(0x152)](b[_0x342d7e(0x1a0)]),_0x479e82=_0xbe27da['getActiveRange']();if(_0x479e82==null)return;const _0x5d6531=[{'id':_0x342d7e(0xc0),'params':{'unitId':_0x41b033[_0x342d7e(0x247)],'actions':null,'textRanges':[_0x479e82]}}],_0x4aeecc=this[_0x342d7e(0x301)][_0x342d7e(0x14c)](_0x41b033,_0x5d6531);if(!m[_0x342d7e(0x1e7)](_0x4aeecc))throw _0x4aeecc[_0x342d7e(0x11a)];const _0x2336e6=_0x4aeecc[_0x342d7e(0x143)][0x0][_0x342d7e(0xdf)]['textRanges'];Array[_0x342d7e(0x2ba)](_0x2336e6)&&_0x2336e6[_0x342d7e(0x12c)]&&_0xbe27da['setActiveRange'](_0x2336e6[0x0]);}};z=kt([ce(0x0,a[_0x17da78(0x18a)](a[_0x17da78(0x31b)])),ce(0x1,m[_0x17da78(0x2de)]),ce(0x2,p[_0x17da78(0x18d)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x2ec0ce,_0x5219f1,_0x3e2579,_0x154625)=>{for(var _0x9efaee=_0x154625>0x1?void 0x0:_0x154625?Ht(_0x5219f1,_0x3e2579):_0x5219f1,_0xa6af13=_0x2ec0ce['length']-0x1,_0x1e34ae;_0xa6af13>=0x0;_0xa6af13--)(_0x1e34ae=_0x2ec0ce[_0xa6af13])&&(_0x9efaee=_0x1e34ae(_0x9efaee)||_0x9efaee);return _0x9efaee;},le=(_0x31b050,_0x24f30a)=>(_0x5a22c6,_0x3fc72d)=>_0x24f30a(_0x5a22c6,_0x3fc72d,_0x31b050);let J=class{constructor(_0x308b31,_0x17ca4d,_0x567690){const _0x530422=_0x17da78;this[_0x530422(0x32d)]=_0x308b31,this[_0x530422(0x301)]=_0x17ca4d,this['_docStateChangeManagerService']=_0x567690;}[_0x17da78(0xcb)](_0x33fc03){this['_transformHistoryAndStateStack'](_0x33fc03);}['transformRemoteChangeset'](_0x15cbe4){const _0x252bb9=_0x17da78,{unitID:_0x3820d9}=_0x15cbe4,{collaboration:_0xd5997}=this[_0x252bb9(0x292)]['getStateCache'](_0x3820d9);if(_0xd5997[_0x252bb9(0x12c)]===0x0)return _0x15cbe4;let _0x595db9=a['Tools'][_0x252bb9(0x2e6)](_0x15cbe4[_0x252bb9(0x314)][0x0]);for(let _0x1084d9=0x0;_0x1084d9<_0xd5997['length'];_0x1084d9++){const _0x30a93b={'id':_0x252bb9(0xc0),'params':{'unitId':_0xd5997[_0x1084d9][_0x252bb9(0x2ea)],..._0xd5997[_0x1084d9][_0x252bb9(0x281)]}},_0x225106=this[_0x252bb9(0x301)][_0x252bb9(0x29d)](_0x595db9,_0x30a93b,!0x1);if(m['isTransformMutationFailure'](_0x225106))throw _0x225106[_0x252bb9(0x11a)];_0x595db9=_0x225106[_0x252bb9(0x107)];}return{...a[_0x252bb9(0x2d9)][_0x252bb9(0x2e6)](_0x15cbe4),'mutations':[_0x595db9]};}[_0x17da78(0x1fc)](_0x2ac20d){const _0x18e730=_0x17da78,{unitID:_0x5740bb}=_0x2ac20d,{history:_0x156427,collaboration:_0x2858f4}=this['_docStateChangeManagerService'][_0x18e730(0x2d2)](_0x5740bb);if(_0x156427[_0x18e730(0x12c)]===0x0&&_0x2858f4[_0x18e730(0x12c)]===0x0)return;const _0x115962=[],_0x1f0271=[];let _0xebfa05=a[_0x18e730(0x2d9)][_0x18e730(0x2e6)](_0x2ac20d[_0x18e730(0x314)][0x0]),_0x26d611=a[_0x18e730(0x2d9)][_0x18e730(0x2e6)](_0x2ac20d[_0x18e730(0x314)][0x0]);for(let _0x2d8bb6=_0x156427[_0x18e730(0x12c)]-0x1;_0x2d8bb6>=0x0;_0x2d8bb6--){const _0x1339e5={'id':_0x18e730(0xc0),'params':{'unitId':_0x156427[_0x2d8bb6][_0x18e730(0x2ea)],..._0x156427[_0x2d8bb6]['undoState']}},_0x52db33={'id':_0x18e730(0xc0),'params':{'unitId':_0x156427[_0x2d8bb6]['unitId'],..._0x156427[_0x2d8bb6]['redoState']}},_0x3954d7=this[_0x18e730(0x301)][_0x18e730(0x29d)](_0xebfa05,_0x1339e5,!0x1),_0x255fb5=this[_0x18e730(0x301)][_0x18e730(0x29d)](_0x26d611,_0x52db33,!0x1);if(m[_0x18e730(0x2a4)](_0x3954d7))throw _0x3954d7[_0x18e730(0x11a)];if(m[_0x18e730(0x2a4)](_0x255fb5))throw _0x255fb5[_0x18e730(0x11a)];_0x115962[_0x18e730(0x2f7)]({..._0x156427[_0x2d8bb6],'undoState':_0x3954d7[_0x18e730(0x143)][_0x18e730(0xdf)],'redoState':_0x255fb5[_0x18e730(0x143)][_0x18e730(0xdf)]}),_0xebfa05=_0x3954d7[_0x18e730(0x107)],_0x26d611=_0x255fb5[_0x18e730(0x107)];}_0xebfa05=a[_0x18e730(0x2d9)][_0x18e730(0x2e6)](_0x2ac20d[_0x18e730(0x314)][0x0]),_0x26d611=a[_0x18e730(0x2d9)][_0x18e730(0x2e6)](_0x2ac20d[_0x18e730(0x314)][0x0]);for(let _0x3a8fa0=_0x2858f4[_0x18e730(0x12c)]-0x1;_0x3a8fa0>=0x0;_0x3a8fa0--){const _0x5a49cb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2858f4[_0x3a8fa0]['unitId'],..._0x2858f4[_0x3a8fa0][_0x18e730(0x123)]}},_0x5da381={'id':_0x18e730(0xc0),'params':{'unitId':_0x2858f4[_0x3a8fa0]['unitId'],..._0x2858f4[_0x3a8fa0]['redoState']}},_0x3a6c71=this[_0x18e730(0x301)][_0x18e730(0x29d)](_0xebfa05,_0x5a49cb,!0x1),_0x152233=this[_0x18e730(0x301)][_0x18e730(0x29d)](_0x26d611,_0x5da381,!0x1);if(m[_0x18e730(0x2a4)](_0x3a6c71))throw _0x3a6c71[_0x18e730(0x11a)];if(m[_0x18e730(0x2a4)](_0x152233))throw _0x152233[_0x18e730(0x11a)];_0x1f0271['unshift']({..._0x2858f4[_0x3a8fa0],'undoState':_0x3a6c71['m2Prime']['params'],'redoState':_0x152233[_0x18e730(0x143)][_0x18e730(0xdf)]}),_0xebfa05=_0x3a6c71['m1Prime'],_0x26d611=_0x152233['m1Prime'];}this[_0x18e730(0x292)]['setStateCache'](_0x5740bb,{'history':_0x115962,'collaboration':_0x1f0271});}};J=Ft([le(0x0,a[_0x17da78(0x18a)](a['Injector'])),le(0x1,m[_0x17da78(0x2de)]),le(0x2,a[_0x17da78(0x18a)](b['DocStateChangeManagerService']))],J);var Wt=Object[_0x17da78(0x2d6)],Yt=(_0x549870,_0x45815c,_0x474b73,_0x784bd4)=>{const _0x183337=_0x17da78;for(var _0x4a3ead=_0x784bd4>0x1?void 0x0:_0x784bd4?Wt(_0x45815c,_0x474b73):_0x45815c,_0x25daac=_0x549870[_0x183337(0x12c)]-0x1,_0x2c674d;_0x25daac>=0x0;_0x25daac--)(_0x2c674d=_0x549870[_0x25daac])&&(_0x4a3ead=_0x2c674d(_0x4a3ead)||_0x4a3ead);return _0x4a3ead;},Ne=(_0x54e567,_0x5eff98)=>(_0x141260,_0x3eb707)=>_0x5eff98(_0x141260,_0x3eb707,_0x54e567);let Z=class{constructor(_0x35bc6c,_0x4df07b){const _0x13a9e3=_0x17da78;this[_0x13a9e3(0x32d)]=_0x35bc6c,this[_0x13a9e3(0x301)]=_0x4df07b;}[_0x17da78(0x10e)](_0x354dd9){const _0x12b8e3=_0x17da78;var _0x3c2107;const _0x215c56=this[_0x12b8e3(0x32d)][_0x12b8e3(0xc7)](W[_0x12b8e3(0x294)]),_0x52f025=(_0x3c2107=_0x215c56[_0x12b8e3(0x197)]())!=null?_0x3c2107:[];if(_0x52f025[_0x12b8e3(0x12c)]===0x0)return;const _0x5ca9e1=_0x354dd9[_0x12b8e3(0x247)],_0x3672b3=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5ca9e1,'actions':null,'textRanges':_0x52f025}}],_0x3b0b4a=this['_transformService'][_0x12b8e3(0x14c)](_0x354dd9,_0x3672b3);if(!m['isTransformMutationsWithChangesetSuccess'](_0x3b0b4a))throw _0x3b0b4a[_0x12b8e3(0x11a)];const _0x522050=_0x3b0b4a[_0x12b8e3(0x143)][0x0][_0x12b8e3(0xdf)][_0x12b8e3(0x144)];Array[_0x12b8e3(0x2ba)](_0x522050)&&_0x522050[_0x12b8e3(0x12c)]&&_0x215c56[_0x12b8e3(0x193)](_0x522050,{'unitId':_0x5ca9e1,'subUnitId':_0x5ca9e1},!0x1);}};Z=Yt([Ne(0x0,a['Inject'](a[_0x17da78(0x31b)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x17da78(0x2d6)],Xt=(_0x45fb6c,_0x55e52d,_0x5072d5,_0x21773e)=>{for(var _0x17a0a5=_0x21773e>0x1?void 0x0:_0x21773e?Vt(_0x55e52d,_0x5072d5):_0x55e52d,_0xa5ac79=_0x45fb6c['length']-0x1,_0x6002e6;_0xa5ac79>=0x0;_0xa5ac79--)(_0x6002e6=_0x45fb6c[_0xa5ac79])&&(_0x17a0a5=_0x6002e6(_0x17a0a5)||_0x17a0a5);return _0x17a0a5;},N=(_0xe714df,_0x565092)=>(_0x26db5f,_0x5171d2)=>_0x565092(_0x26db5f,_0x5171d2,_0xe714df);let Q=class extends a[_0x17da78(0x175)]{constructor(_0x44fde3,_0x282b98,_0x57d2da,_0x4274a6,_0x2a7ae3,_0x3d2a81,_0x21a50b,_0x1a0e6a){const _0xa0b28a=_0x17da78;super(),h(this,'_status$',new d[(_0xa0b28a(0x2f6))](u[_0xa0b28a(0x213)][_0xa0b28a(0x181)])),(this['_docStateChangeManagerService']=_0x44fde3,this['_collaborationController']=_0x282b98,this[_0xa0b28a(0x2a5)]=_0x57d2da,this[_0xa0b28a(0xf0)]=_0x4274a6,this['_docTransformSelectionsService']=_0x2a7ae3,this[_0xa0b28a(0x148)]=_0x3d2a81,this[_0xa0b28a(0x2a8)]=_0x21a50b,this[_0xa0b28a(0x12b)]=_0x1a0e6a,this[_0xa0b28a(0x1c8)]());}[_0x17da78(0x1c8)](){const _0x2a746d=_0x17da78;this['disposeWithMe'](this[_0x2a746d(0x24d)][_0x2a746d(0x2c8)][_0x2a746d(0x221)](_0x2b7a6e=>{const _0x29570c=_0x2a746d,_0x544d8f=this['_docStateChangeManagerService'][_0x29570c(0x327)][_0x29570c(0x221)](_0x470456=>{const _0xfb0155=_0x29570c;if(_0x470456==null)return;const {unitId:_0x569734,redoState:_0x368e00,commandId:_0x3542d0}=_0x470456;if(_0x569734!==_0x2b7a6e[_0xfb0155(0x247)])return;const _0x3a9f71={'id':_0x3542d0,'type':a['CommandType'][_0xfb0155(0x2e0)],'params':{'unitId':_0x569734,'actions':_0x368e00[_0xfb0155(0x1f0)],'textRanges':null}};_0x2b7a6e[_0xfb0155(0x1cf)](_0x3a9f71);});if(_0x2b7a6e[_0x29570c(0x1cb)](_0x544d8f),_0x2b7a6e instanceof u[_0x29570c(0x1a8)]){const _0x487f68={'onTransformIME':_0x44e140=>this[_0x29570c(0x2a5)][_0x29570c(0x1dd)](_0x44e140),'onTransformState':_0x8a2852=>this[_0x29570c(0xf0)][_0x29570c(0xcb)](_0x8a2852),'onTransformSelections':_0x53d470=>this[_0x29570c(0x19c)][_0x29570c(0x10e)](_0x53d470),'onSyncEditingCollabCursor':_0x5afdd2=>this[_0x29570c(0x148)][_0x29570c(0x265)](_0x5afdd2),'onTransformRemoteChangesetByIMECache':_0x3e8c4e=>this[_0x29570c(0x2a5)][_0x29570c(0x26e)](_0x3e8c4e),'onTransformRemoteChangesetByStateCache':_0x238473=>this[_0x29570c(0xf0)][_0x29570c(0x26e)](_0x238473)};_0x2b7a6e['addHandlerCallback'](_0x487f68);}}));}};Q=Xt([N(0x0,a[_0x17da78(0x18a)](b[_0x17da78(0x142)])),N(0x1,a[_0x17da78(0x18a)](u[_0x17da78(0x280)])),N(0x2,a[_0x17da78(0x18a)](z)),N(0x3,a[_0x17da78(0x18a)](J)),N(0x4,a[_0x17da78(0x18a)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,T[_0x17da78(0x19b)]),N(0x7,a[_0x17da78(0x18a)](a[_0x17da78(0x1f9)]))],Q);var Gt=Object[_0x17da78(0x2d6)],qt=(_0x11ca21,_0x1c1daa,_0x1d4722,_0x171e02)=>{const _0x25cb72=_0x17da78;for(var _0x1d5523=_0x171e02>0x1?void 0x0:_0x171e02?Gt(_0x1c1daa,_0x1d4722):_0x1c1daa,_0x2973be=_0x11ca21[_0x25cb72(0x12c)]-0x1,_0x1c97b1;_0x2973be>=0x0;_0x2973be--)(_0x1c97b1=_0x11ca21[_0x2973be])&&(_0x1d5523=_0x1c97b1(_0x1d5523)||_0x1d5523);return _0x1d5523;},_e=(_0x18afe5,_0x59d2aa)=>(_0x4cbc9e,_0x253229)=>_0x59d2aa(_0x4cbc9e,_0x253229,_0x18afe5);let ge=class extends a[_0x17da78(0x175)]{constructor(_0x571b2e,_0x163d3f,_0x531474){const _0x440d12=_0x17da78;super(),h(this,_0x440d12(0x2e3),new Map()),h(this,_0x440d12(0x293),new Map()),h(this,'_disabled',!0x1),(this[_0x440d12(0x114)]=_0x571b2e,this[_0x440d12(0x2d3)]=_0x163d3f,this[_0x440d12(0x110)]=_0x531474);}[_0x17da78(0x2a2)](){const _0x2ca0bb=_0x17da78;this[_0x2ca0bb(0xf8)]=!0x0;}[_0x17da78(0x173)](){const _0x16d8d1=_0x17da78;this[_0x16d8d1(0xf8)]=!0x1;}get[_0x17da78(0x1f7)](){return this['_saveTaskMap'];}[_0x17da78(0x26d)](){const _0x2a2c96=_0x17da78;this[_0x2a2c96(0xd6)]()[_0x2a2c96(0xff)](()=>super[_0x2a2c96(0x26d)]());}async[_0x17da78(0x2ee)](_0x151767){const _0x914eba=_0x17da78;return this['_disabled']?null:this[_0x914eba(0x2d3)][_0x914eba(0x17f)](u[_0x914eba(0x29c)](_0x151767));}async[_0x17da78(0x275)](_0x2e07f6,_0x2c2aa7){const _0x2d4007=_0x17da78;return!!this[_0x2d4007(0x2d3)]['setItem'](_0x2e07f6,_0x2c2aa7);}[_0x17da78(0x2b1)](_0x27c3ac,_0x3b21f1,_0x7c08e0,_0x1e30e7){const _0x4f54b6=_0x17da78,_0x5cb1f6=this[_0x4f54b6(0x110)]['getCurrentRevOfUnit'](_0x27c3ac);this[_0x4f54b6(0x2e3)][_0x4f54b6(0x1bb)](_0x27c3ac,{'unitID':_0x27c3ac,'type':_0x3b21f1,'awaitingChangeset':_0x7c08e0,'mutations':_0x1e30e7,'rev':_0x5cb1f6}),this['_saveTaskMap']['has'](_0x27c3ac)||this[_0x4f54b6(0x325)](_0x27c3ac);}[_0x17da78(0x325)](_0x3a9532){const _0x3f95e9=_0x17da78,_0xac3b60=this['_getSaveTimeout']();_0xac3b60===0x0?this[_0x3f95e9(0x211)](_0x3a9532):this['_saveTaskMap'][_0x3f95e9(0x1bb)](_0x3a9532,setTimeout(()=>this[_0x3f95e9(0x211)](_0x3a9532),_0xac3b60));}[_0x17da78(0x29e)](){const _0x13b07b=_0x17da78;var _0x32b593;return(_0x32b593=this[_0x13b07b(0x114)]['getConfig'](u[_0x13b07b(0x156)]))!=null?_0x32b593:u[_0x13b07b(0x306)];}[_0x17da78(0x211)](_0x409065){const _0x4b01c2=_0x17da78,_0x4a63c1=this['_saveTaskMap'][_0x4b01c2(0xc7)](_0x409065);return _0x4a63c1!==void 0x0&&window[_0x4b01c2(0x2da)](_0x4a63c1),this[_0x4b01c2(0x2d3)][_0x4b01c2(0x11f)](u['getLocalCacheKey'](_0x409065),this['_cachedData']['get'](_0x409065))[_0x4b01c2(0xff)](()=>this[_0x4b01c2(0x293)][_0x4b01c2(0x1cc)](_0x409065));}async[_0x17da78(0xd6)](){const _0x21c86b=_0x17da78,_0x30bfe4=[];this[_0x21c86b(0x293)][_0x21c86b(0x21c)]((_0x53ee4c,_0x207d43)=>{const _0x1907d5=_0x21c86b;window[_0x1907d5(0x2da)](_0x53ee4c),_0x30bfe4[_0x1907d5(0x32a)](this[_0x1907d5(0x211)](_0x207d43)['then'](()=>{const _0x1d6b6a=_0x1907d5;this['_saveTaskMap'][_0x1d6b6a(0x1cc)](_0x207d43);}));}),await Promise[_0x21c86b(0x1ec)](_0x30bfe4);}};ge=qt([_e(0x0,a[_0x17da78(0x2c5)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x17da78(0x18a)](m[_0x17da78(0x116)]))],ge);class je extends a[_0x17da78(0x206)]{constructor(){const _0x3fbc91=_0x17da78;super(),h(this,_0x3fbc91(0x23c)),this[_0x3fbc91(0x23c)]=d[_0x3fbc91(0x1c1)](window,_0x3fbc91(0x1b1))[_0x3fbc91(0x2fd)](d[_0x3fbc91(0x1e8)](this['dispose$']),d[_0x3fbc91(0x1e9)](0x1),d[_0x3fbc91(0xcf)](void 0x0));}['setParam'](_0x39d801,_0x5b9b05,_0x463ba0=!0x1){const _0x5383b6=_0x17da78,_0x57d7fd=new URL(window[_0x5383b6(0x272)]['href']);_0x57d7fd[_0x5383b6(0x310)][_0x5383b6(0x1bb)](_0x39d801,_0x5b9b05),_0x463ba0?window['history'][_0x5383b6(0x1d5)]('','',_0x57d7fd[_0x5383b6(0x2d7)]()):window[_0x5383b6(0x27b)]['pushState']('','',_0x57d7fd[_0x5383b6(0x2d7)]());}[_0x17da78(0x2fc)](_0x3f51ec,_0x29c58f=!0x1){const _0x1611d4=_0x17da78,_0x1d3ee1=new URL(window[_0x1611d4(0x272)]['href']);_0x1d3ee1['searchParams']['delete'](_0x3f51ec),_0x29c58f?window[_0x1611d4(0x27b)][_0x1611d4(0x1d5)]('','',_0x1d3ee1[_0x1611d4(0x2d7)]()):window[_0x1611d4(0x27b)][_0x1611d4(0x2dd)]('','',_0x1d3ee1[_0x1611d4(0x2d7)]());}[_0x17da78(0x26b)](_0xf363e5){const _0x34d6c9=_0x17da78;var _0x4d53d2;return(_0x4d53d2=new URL(window[_0x34d6c9(0x272)][_0x34d6c9(0x172)])[_0x34d6c9(0x310)][_0x34d6c9(0xc7)](_0xf363e5))!=null?_0x4d53d2:void 0x0;}}var Kt=Object[_0x17da78(0x231)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x2e30b2,_0x31c2ba,_0x1662a1)=>_0x31c2ba in _0x2e30b2?Kt(_0x2e30b2,_0x31c2ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1662a1}):_0x2e30b2[_0x31c2ba]=_0x1662a1,Zt=(_0x7eabf8,_0x4fd8d6,_0x16f67f,_0x14fb4f)=>{const _0xe4f750=_0x17da78;for(var _0x2f7edb=_0x14fb4f>0x1?void 0x0:_0x14fb4f?zt(_0x4fd8d6,_0x16f67f):_0x4fd8d6,_0x25b4a7=_0x7eabf8[_0xe4f750(0x12c)]-0x1,_0x249252;_0x25b4a7>=0x0;_0x25b4a7--)(_0x249252=_0x7eabf8[_0x25b4a7])&&(_0x2f7edb=_0x249252(_0x2f7edb)||_0x2f7edb);return _0x2f7edb;},he=(_0xb17463,_0xa0f536)=>(_0x37aa71,_0x31103e)=>_0xa0f536(_0x37aa71,_0x31103e,_0xb17463),Qt=(_0x12174c,_0x26621b,_0x1739bd)=>Jt(_0x12174c,_0x26621b+'',_0x1739bd);const es=_0x17da78(0x130);exports[_0x17da78(0x1f6)]=class extends a[_0x17da78(0x163)]{constructor(_0x1b3e6f=Ue,_0x1ad382,_0x1ad0a5,_0x6ac1a){const _0x17f630=_0x17da78;super(),this['_config']=_0x1b3e6f,this[_0x17f630(0x300)]=_0x1ad382,this[_0x17f630(0x32d)]=_0x1ad0a5,this[_0x17f630(0x114)]=_0x6ac1a;const {..._0x5f00b5}=a[_0x17f630(0x238)]({},Ue,this[_0x17f630(0x158)]);this[_0x17f630(0x114)]['setConfig']($t,_0x5f00b5);}[_0x17da78(0x146)](){const _0x265f24=_0x17da78;this[_0x265f24(0x119)](),this[_0x265f24(0x1cd)]();}[_0x17da78(0x1ca)](){const _0xf03bb6=_0x17da78;this[_0xf03bb6(0x273)]();}[_0x17da78(0x119)](){const _0x31ef90=_0x17da78;var _0x5c7523;const _0x2dcb2b=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x31ef90(0x16b)],{'useClass':G[_0x31ef90(0x227)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x31ef90(0x200)]],[Q],[K],[x],[de],[exports[_0x31ef90(0x308)]]];a[_0x31ef90(0x28b)](this[_0x31ef90(0x32d)],a[_0x31ef90(0xe4)](_0x2dcb2b,(_0x5c7523=this['_config'])==null?void 0x0:_0x5c7523[_0x31ef90(0x1df)]));}[_0x17da78(0x273)](){const _0x24f479=_0x17da78;this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x24f479(0x29f)]['UNIVER_DOC'],[Ie])),this[_0x24f479(0x1cb)](this[_0x24f479(0x300)][_0x24f479(0x208)](a[_0x24f479(0x29f)]['UNIVER_SHEET'],[ve]));}[_0x17da78(0x1cd)](){const _0x2571c3=_0x17da78;a[_0x2571c3(0x210)](this[_0x2571c3(0x32d)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[K],[exports[_0x2571c3(0x308)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x17da78(0x241),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x17da78(0xd1)](u['UniverCollaborationClientPlugin']),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x17da78(0x31b)])),he(0x3,a['IConfigService'])],exports[_0x17da78(0x1f6)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x5d9827,_0x7f0191,_0x2fa5f1,_0xeb70c4)=>{const _0x3fa4c6=_0x17da78;for(var _0x288888=_0xeb70c4>0x1?void 0x0:_0xeb70c4?ts(_0x7f0191,_0x2fa5f1):_0x7f0191,_0x2872c8=_0x5d9827[_0x3fa4c6(0x12c)]-0x1,_0xb6af28;_0x2872c8>=0x0;_0x2872c8--)(_0xb6af28=_0x5d9827[_0x2872c8])&&(_0x288888=_0xb6af28(_0x288888)||_0x288888);return _0x288888;},F=(_0x1494bd,_0x372933)=>(_0x45a6c8,_0x5255b8)=>_0x372933(_0x45a6c8,_0x5255b8,_0x1494bd);exports[_0x17da78(0x2b2)]=class extends u[_0x17da78(0x269)]{constructor(_0x1d553e,_0x49027a,_0x4ac0ac,_0x2f758b,_0x5baefb){super(_0x1d553e,_0x49027a,_0x4ac0ac,_0x2f758b,_0x5baefb);}async[_0x17da78(0x2f4)](_0x157c08){const _0x352abf=_0x17da78,_0x3d0773=await this['_getSessionTicket'](),_0x43c067=this[_0x352abf(0x2f1)](_0x157c08,_0x3d0773);return this[_0x352abf(0x28d)](_0x43c067);}[_0x17da78(0x2f1)](_0x2105f0,_0x2e4463){const _0x1f8034=_0x17da78,_0x1437f0=typeof window>'u'?new URL(_0x2105f0):new URL(_0x2105f0,window['location'][_0x1f8034(0x2c7)]);_0x1437f0[_0x1f8034(0x310)][_0x1f8034(0x1bb)](_0x1f8034(0x256),_0x2e4463);const _0x2512f0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1f8034(0x272)]['search']);return _0x2512f0[_0x1f8034(0xc7)](_0x1f8034(0x233))&&_0x1437f0[_0x1f8034(0x310)][_0x1f8034(0x1bb)]('runId',_0x2512f0['get'](_0x1f8034(0x233))),_0x1437f0['toString']();}async[_0x17da78(0x1c6)](){const _0x51d767=_0x17da78;var _0x464dae,_0x4a00a6,_0x21a858;const _0x5a3a0d=this[_0x51d767(0x114)][_0x51d767(0x141)](u[_0x51d767(0x2d0)]),_0x4df5ac=(_0x464dae=_0x5a3a0d==null?void 0x0:_0x5a3a0d[_0x51d767(0x29a)])!=null?_0x464dae:u[_0x51d767(0x212)];return(_0x21a858=(_0x4a00a6=(await this[_0x51d767(0x174)][_0x51d767(0xc7)](_0x4df5ac,{'headers':{'Content-Type':_0x51d767(0xd2)}}))[_0x51d767(0x194)])==null?void 0x0:_0x4a00a6['ticket'])!=null?_0x21a858:'';}},exports[_0x17da78(0x2b2)]=ss([F(0x0,a[_0x17da78(0x18a)](a[_0x17da78(0x31b)])),F(0x1,a[_0x17da78(0x18a)](G[_0x17da78(0xf4)])),F(0x2,a[_0x17da78(0x2c5)]),F(0x3,a['ILogService']),F(0x4,m['ISnapshotServerService'])],exports[_0x17da78(0x2b2)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a[_0x17da78(0x175)]{constructor(){const _0x506716=_0x17da78;super(),h(this,_0x506716(0x1b2),a['generateRandomId']()),h(this,_0x506716(0x11b),new Set()),h(this,_0x506716(0x263),new Map()),h(this,_0x506716(0x226),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x506716(0xd7)]();}[_0x17da78(0x26d)](){const _0x147851=_0x17da78;super['dispose'](),this[_0x147851(0x31e)]['forEach']((_0x2b14ea,_0x24c191)=>this[_0x147851(0x318)](_0x24c191)),this[_0x147851(0x226)]&&window[_0x147851(0x128)](this[_0x147851(0x226)]);}['getUnitStatus$'](_0x136767){const _0x51fe76=_0x17da78;return this['_ensureSubject'](_0x136767)[_0x51fe76(0x2fd)](d[_0x51fe76(0xc3)]());}[_0x17da78(0x164)](_0x35a91d){const _0xd0fe53=_0x17da78;this[_0xd0fe53(0x11b)][_0xd0fe53(0xda)]===0x0&&this['_scheduleHeartbeat'](),this[_0xd0fe53(0x11b)]['add'](_0x35a91d),this[_0xd0fe53(0x255)]({'type':0x0,'memberID':this[_0xd0fe53(0x1b2)],'unitIDs':[_0x35a91d],'isForwarded':!0x1});}[_0x17da78(0x302)](_0x15c3d3){const _0x3502ca=_0x17da78;this[_0x3502ca(0x11b)][_0x3502ca(0x1cc)](_0x15c3d3),this[_0x3502ca(0x11b)][_0x3502ca(0xda)]===0x0&&this['_heartbeatTimer']&&window[_0x3502ca(0x128)](this[_0x3502ca(0x226)]);}[_0x17da78(0xd7)](){const _0x509a67=_0x17da78;this[_0x509a67(0x1cb)](a[_0x509a67(0x28e)](d[_0x509a67(0x1c1)](window,_0x509a67(0x1f3))[_0x509a67(0x221)](_0x3437fe=>{const _0xaa889f=_0x509a67;if(_0x3437fe['key']!==Le||!_0x3437fe[_0xaa889f(0x224)])return;const _0x4edf8c=JSON[_0xaa889f(0x118)](_0x3437fe['newValue']);this[_0xaa889f(0x264)](_0x4edf8c);}))),window[_0x509a67(0x192)](_0x509a67(0x328),()=>this[_0x509a67(0x255)]({'type':0x1,'memberID':this[_0x509a67(0x1b2)],'unitIDs':Array[_0x509a67(0x202)](this[_0x509a67(0x11b)])}));}[_0x17da78(0x264)](_0x257976){const _0x123953=_0x17da78;switch(_0x257976['type']){case 0x0:this[_0x123953(0xf2)](_0x257976);break;case 0x1:this[_0x123953(0x145)](_0x257976);break;case 0x2:this[_0x123953(0x266)](_0x257976);break;}}[_0x17da78(0xf2)](_0xf00b4c){const _0x411078=_0x17da78,{unitIDs:_0x2380fb,memberID:_0xc7a670,isForwarded:_0x5575ed}=_0xf00b4c;_0x2380fb[_0x411078(0x21c)](_0x2cdd56=>{const _0x16a29a=_0x411078;if(!_0x5575ed&&this[_0x16a29a(0x263)][_0x16a29a(0x24f)](_0x2cdd56)&&this['_ensureSubject'](_0x2cdd56)[_0x16a29a(0x117)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x16a29a(0x24f)](_0x2cdd56)||!this['_unitOnClients'][_0x16a29a(0xc7)](_0x2cdd56)[_0x16a29a(0x24f)](_0xc7a670)){const _0x1c8737=this['_unitOnClients'][_0x16a29a(0xc7)](_0x2cdd56)||new Set();_0x1c8737[_0x16a29a(0x23f)](_0xc7a670),this[_0x16a29a(0x263)][_0x16a29a(0x1bb)](_0x2cdd56,_0x1c8737),this[_0x16a29a(0xdb)](_0xc7a670);}}),_0x5575ed||this[_0x411078(0x255)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x411078(0x11b)]],'isForwarded':!0x0});}[_0x17da78(0xdb)](_0x37475d){const _0x15c37a=_0x17da78;this[_0x15c37a(0x318)](_0x37475d);const _0x255c91=window[_0x15c37a(0x30e)](()=>{const _0x47a6fa=_0x15c37a;this[_0x47a6fa(0x263)][_0x47a6fa(0x21c)](_0x3aab60=>{_0x3aab60['delete'](_0x37475d);});},Me*0x2);this[_0x15c37a(0x31e)]['set'](_0x37475d,_0x255c91);}[_0x17da78(0x318)](_0x2afd19){const _0x5ea941=_0x17da78;if(this['_clearOtherTimers'][_0x5ea941(0x24f)](_0x2afd19)){const _0x100c4a=this['_clearOtherTimers']['get'](_0x2afd19);_0x100c4a&&window['clearTimeout'](_0x100c4a),this['_clearOtherTimers'][_0x5ea941(0x1bb)](_0x2afd19,null);}}[_0x17da78(0x145)](_0x57b450){const _0x55effc=_0x17da78,{memberID:_0x3046d9,unitIDs:_0x5ba008}=_0x57b450;_0x5ba008[_0x55effc(0x21c)](_0x3fbe25=>{const _0x3729a7=_0x55effc;var _0x1d668e;const _0x12e08d=this[_0x3729a7(0x263)][_0x3729a7(0xc7)](_0x3fbe25);_0x12e08d&&(_0x12e08d['delete'](_0x3046d9),(_0x1d668e=this[_0x3729a7(0x190)](_0x3fbe25))==null||_0x1d668e['next'](_0x12e08d['size']===0x0?u[_0x3729a7(0x11d)]['NO_OTHER_CLIENTS_EDITING']:u[_0x3729a7(0x11d)]['OTHER_CLIENTS_EDITING']));}),this[_0x55effc(0x318)](_0x3046d9);}[_0x17da78(0x266)](_0xc66439){this['_scheduleClearOtherTimer'](_0xc66439['memberID']);}[_0x17da78(0x255)](_0x2012a9){const _0x5b974f=_0x17da78;localStorage[_0x5b974f(0x11f)](Le,JSON[_0x5b974f(0x251)](_0x2012a9));}['_scheduleHeartbeat'](){const _0xc54050=_0x17da78;this[_0xc54050(0x226)]=window[_0xc54050(0x25f)](()=>{const _0x2891ad=_0xc54050;this[_0x2891ad(0x255)]({'type':0x2,'memberID':this[_0x2891ad(0x1b2)]});},Me);}[_0x17da78(0x190)](_0x54a899){const _0x1a79da=_0x17da78;return this[_0x1a79da(0x2c6)][_0x1a79da(0x24f)](_0x54a899)||this['_unitStatus'][_0x1a79da(0x1bb)](_0x54a899,new d[(_0x1a79da(0x2f6))](u[_0x1a79da(0x11d)][_0x1a79da(0x20d)])),this[_0x1a79da(0x2c6)][_0x1a79da(0xc7)](_0x54a899);}}var Be=(_0x4767e0=>(_0x4767e0[_0x4767e0[_0x17da78(0x18c)]=0x0]=_0x17da78(0x18c),_0x4767e0[_0x4767e0['OK']=0x1]='OK',_0x4767e0[_0x4767e0[_0x17da78(0x1b4)]=0x2]=_0x17da78(0x1b4),_0x4767e0[_0x4767e0[_0x17da78(0x282)]=0x3]=_0x17da78(0x282),_0x4767e0[_0x4767e0['NOT_FOUND']=0x4]=_0x17da78(0x127),_0x4767e0[_0x4767e0[_0x17da78(0x209)]=0x5]='UNAUTHENTICATED',_0x4767e0[_0x4767e0[_0x17da78(0x27d)]=0x6]=_0x17da78(0x27d),_0x4767e0[_0x4767e0['INVALID_ARGUMENT']=0x7]=_0x17da78(0x1a7),_0x4767e0[_0x4767e0[_0x17da78(0x2eb)]=0x8]=_0x17da78(0x2eb),_0x4767e0[_0x4767e0[_0x17da78(0x24b)]=0x9]=_0x17da78(0x24b),_0x4767e0[_0x4767e0[_0x17da78(0x30b)]=0xa]=_0x17da78(0x30b),_0x4767e0[_0x4767e0['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x17da78(0xb8),_0x4767e0[_0x4767e0[_0x17da78(0x14e)]=0x1771]=_0x17da78(0x14e),_0x4767e0[_0x4767e0[_0x17da78(0x159)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4767e0[_0x4767e0[_0x17da78(0xef)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x4767e0[_0x4767e0[_0x17da78(0xdc)]=0x1b59]=_0x17da78(0xdc),_0x4767e0[_0x4767e0[_0x17da78(0x13e)]=0x1b5a]=_0x17da78(0x13e),_0x4767e0[_0x4767e0[_0x17da78(0x291)]=0x1b5b]=_0x17da78(0x291),_0x4767e0[_0x4767e0[_0x17da78(0x254)]=0x1b5c]=_0x17da78(0x254),_0x4767e0[_0x4767e0[_0x17da78(0x316)]=0x1b5d]='APPLY_DUPLICATED',_0x4767e0[_0x4767e0[_0x17da78(0x1e6)]=0x1f41]=_0x17da78(0x1e6),_0x4767e0[_0x4767e0[_0x17da78(0x17d)]=0x2329]=_0x17da78(0x17d),_0x4767e0[_0x4767e0['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4767e0[_0x4767e0['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x17da78(0x1b3),_0x4767e0[_0x4767e0[_0x17da78(0x2df)]=0x232c]=_0x17da78(0x2df),_0x4767e0[_0x4767e0[_0x17da78(0x2ff)]=0x232d]=_0x17da78(0x2ff),_0x4767e0[_0x4767e0[_0x17da78(0x284)]=0x2711]=_0x17da78(0x284),_0x4767e0[_0x4767e0['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4767e0[_0x4767e0['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x17da78(0x277),_0x4767e0[_0x4767e0[_0x17da78(0xe9)]=0x2714]=_0x17da78(0xe9),_0x4767e0[_0x4767e0[_0x17da78(0x326)]=0x271a]=_0x17da78(0x326),_0x4767e0[_0x4767e0[_0x17da78(0x199)]=0x271b]=_0x17da78(0x199),_0x4767e0[_0x4767e0[_0x17da78(0x22d)]=0x2af9]=_0x17da78(0x22d),_0x4767e0[_0x4767e0['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x17da78(0x22f),_0x4767e0[_0x4767e0['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x4767e0[_0x4767e0[_0x17da78(0x187)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x4767e0[_0x4767e0[_0x17da78(0x2d1)]=0x2ee4]=_0x17da78(0x2d1),_0x4767e0[_0x4767e0[_0x17da78(0x1b0)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4767e0[_0x4767e0['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x17da78(0x2ec),_0x4767e0[_0x4767e0['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4767e0[_0x4767e0[_0x17da78(0x229)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x4767e0[_0x4767e0[_0x17da78(0x2f9)]=-0x1]=_0x17da78(0x2f9),_0x4767e0))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x39d976,_0x4cfd68,_0x22f3d8,_0x31a427)=>{const _0x494cc8=_0x17da78;for(var _0x59b8c6=_0x31a427>0x1?void 0x0:_0x31a427?ns(_0x4cfd68,_0x22f3d8):_0x4cfd68,_0x3109d1=_0x39d976[_0x494cc8(0x12c)]-0x1,_0x4d8d84;_0x3109d1>=0x0;_0x3109d1--)(_0x4d8d84=_0x39d976[_0x3109d1])&&(_0x59b8c6=_0x4d8d84(_0x59b8c6)||_0x59b8c6);return _0x59b8c6;},ue=(_0x44f2b3,_0x5469b5)=>(_0x5b0280,_0x4e3f3e)=>_0x5469b5(_0x5b0280,_0x4e3f3e,_0x44f2b3);exports['RemoteUniscriptService']=class extends a[_0x17da78(0x175)]{constructor(_0x455d69,_0x5d8ba2,_0x2c0e75){const _0x331de1=_0x17da78;super(),this[_0x331de1(0x329)]=_0x455d69,this[_0x331de1(0x174)]=_0x5d8ba2,this[_0x331de1(0x114)]=_0x2c0e75;}async['runOnServer'](_0x3f7b38,_0x235f34,_0x363197,..._0x1634b0){const _0x1c59f5=_0x17da78;var _0x3e32d5,_0x3b7ff6,_0x37a0c6,_0x76d76a;const _0x3868bc=this[_0x1c59f5(0x329)][_0x1c59f5(0xfb)]();if(!_0x3868bc)throw new Error(_0x1c59f5(0x1da));const _0x50acc8=((_0x3e32d5=this[_0x1c59f5(0x114)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x3e32d5:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x3f7b38+'/run/'+_0x235f34,_0x5616f9=new URL(window[_0x1c59f5(0x272)][_0x1c59f5(0x172)]),_0x35608e={'scriptId':_0x3f7b38,'runId':(_0x3b7ff6=_0x5616f9['searchParams'][_0x1c59f5(0xc7)](_0x1c59f5(0x233)))!=null?_0x3b7ff6:'','function':_0x235f34,'unitId':_0x3868bc[_0x1c59f5(0x2cf)](),'argsOfFunction':JSON[_0x1c59f5(0x251)](_0x1634b0),'invokeId':(_0x37a0c6=_0x363197[_0x1c59f5(0x2ca)])!=null?_0x37a0c6:'','executionId':(_0x76d76a=_0x363197[_0x1c59f5(0x1c4)])!=null?_0x76d76a:''};try{const _0x26a3a4=await this[_0x1c59f5(0x174)][_0x1c59f5(0x101)](_0x50acc8,{'body':_0x35608e});return _0x26a3a4[_0x1c59f5(0x194)][_0x1c59f5(0x11a)]&&_0x26a3a4[_0x1c59f5(0x194)][_0x1c59f5(0x11a)][_0x1c59f5(0x16c)]!==Be['OK']?_0x1c59f5(0xf6):_0x26a3a4[_0x1c59f5(0x194)][_0x1c59f5(0x290)];}catch{return _0x1c59f5(0xf6);}}},exports[_0x17da78(0x30c)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G[_0x17da78(0xf4)])),ue(0x2,a[_0x17da78(0x2c5)])],exports['RemoteUniscriptService']),exports[_0x17da78(0x1ce)]=xe,exports[_0x17da78(0x336)]=be,exports['SheetCollabCursorShape']=we,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x17da78(0x1bd)]=je;
@@ -1 +1 @@
1
- 'use strict';const _0x2d46c0=_0xad60;function _0x2c24(){const _0x111c9a=['9484144RmQVBT','Collaboration\x20Conflict','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','826756YMgDLV','17290BdFVEy','4aTAdPH','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20please\x20check\x20your\x20network.','Edit\x20conflicts','Syncing\x20server\x20data...','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1487280MqCxGW','Authentication\x20Error','4836650rjCRSB','Local\x20file','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','exports','18oPOKdU','1218936mmgEfQ','4222929OLNiLd','Click\x20to\x20Reconnect','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1026BCChHJ'];_0x2c24=function(){return _0x111c9a;};return _0x2c24();}(function(_0x257318,_0xd01cb8){const _0x5a38fd=_0xad60,_0x71ca5f=_0x257318();while(!![]){try{const _0x4e6f70=parseInt(_0x5a38fd(0x1ad))/0x1*(-parseInt(_0x5a38fd(0x1af))/0x2)+parseInt(_0x5a38fd(0x1a6))/0x3+parseInt(_0x5a38fd(0x1a5))/0x4+parseInt(_0x5a38fd(0x1ae))/0x5*(parseInt(_0x5a38fd(0x1a9))/0x6)+-parseInt(_0x5a38fd(0x1a0))/0x7+parseInt(_0x5a38fd(0x1aa))/0x8+-parseInt(_0x5a38fd(0x1a4))/0x9*(parseInt(_0x5a38fd(0x19e))/0xa);if(_0x4e6f70===_0xd01cb8)break;else _0x71ca5f['push'](_0x71ca5f['shift']());}catch(_0x2a211d){_0x71ca5f['push'](_0x71ca5f['shift']());}}}(_0x2c24,0xcedbf));const e={'collab-client':{'tooltip':{'reconnect':_0x2d46c0(0x1a7)}},'collabStatus':{'fetchMiss':_0x2d46c0(0x19c),'conflict':_0x2d46c0(0x19b),'notCollab':_0x2d46c0(0x1a1),'synced':'Synced','syncing':'Syncing...','offline':_0x2d46c0(0x19d)},'session':{'connection-failed':_0x2d46c0(0x19a),'will-retry':_0x2d46c0(0x1a8),'room-full':_0x2d46c0(0x199),'collaboration-timeout':_0x2d46c0(0x197)},'conflict':{'title':_0x2d46c0(0x1ab),'content':_0x2d46c0(0x198)},'permission':{'title':_0x2d46c0(0x19f),'content':_0x2d46c0(0x1a2)},'collaboration':{'single-unit':{'warning':_0x2d46c0(0x1b0)},'closeRoom':_0x2d46c0(0x1ac)},'auth':{'needGotoLoginAlert':_0x2d46c0(0x1b1)}};function _0xad60(_0x22fe91,_0x4b5912){const _0x2c247d=_0x2c24();return _0xad60=function(_0xad6056,_0x258818){_0xad6056=_0xad6056-0x197;let _0xbbb05a=_0x2c247d[_0xad6056];return _0xbbb05a;},_0xad60(_0x22fe91,_0x4b5912);}module[_0x2d46c0(0x1a3)]=e;
1
+ 'use strict';function _0x5faa(_0x3ee699,_0x4577fc){const _0x2183b0=_0x2183();return _0x5faa=function(_0x5faab6,_0x43fd69){_0x5faab6=_0x5faab6-0x146;let _0x416df5=_0x2183b0[_0x5faab6];return _0x416df5;},_0x5faa(_0x3ee699,_0x4577fc);}function _0x2183(){const _0x41355f=['19611dCIVqP','Syncing...','Edit\x20conflicts','254QDHpce','Click\x20to\x20Reconnect','Local\x20file','734900FUwPbe','5kbqtTS','820XJYvVZ','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','2477NhPbLs','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','266424WzQbqR','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','Syncing\x20server\x20data...','5588396WgswBC','132852mQEFzm','Authentication\x20Error','896694syxDqH','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20Conflict','21IsTMZh'];_0x2183=function(){return _0x41355f;};return _0x2183();}const _0x53ce7f=_0x5faa;(function(_0x4c935b,_0x1265b6){const _0x41024b=_0x5faa,_0x3a3cfd=_0x4c935b();while(!![]){try{const _0x5af19f=parseInt(_0x41024b(0x14b))/0x1*(-parseInt(_0x41024b(0x15d))/0x2)+-parseInt(_0x41024b(0x156))/0x3+parseInt(_0x41024b(0x147))/0x4+-parseInt(_0x41024b(0x148))/0x5*(-parseInt(_0x41024b(0x154))/0x6)+parseInt(_0x41024b(0x159))/0x7*(-parseInt(_0x41024b(0x14d))/0x8)+-parseInt(_0x41024b(0x15a))/0x9*(-parseInt(_0x41024b(0x149))/0xa)+parseInt(_0x41024b(0x153))/0xb;if(_0x5af19f===_0x1265b6)break;else _0x3a3cfd['push'](_0x3a3cfd['shift']());}catch(_0x59c01a){_0x3a3cfd['push'](_0x3a3cfd['shift']());}}}(_0x2183,0x2bbfb));const e={'collab-client':{'tooltip':{'reconnect':_0x53ce7f(0x15e)}},'collabStatus':{'fetchMiss':_0x53ce7f(0x152),'conflict':_0x53ce7f(0x15c),'notCollab':_0x53ce7f(0x146),'synced':_0x53ce7f(0x151),'syncing':_0x53ce7f(0x15b),'offline':_0x53ce7f(0x14c)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x53ce7f(0x14e),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x53ce7f(0x14a)},'conflict':{'title':_0x53ce7f(0x158),'content':_0x53ce7f(0x157)},'permission':{'title':_0x53ce7f(0x155),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x53ce7f(0x150)},'auth':{'needGotoLoginAlert':_0x53ce7f(0x14f)}};module['exports']=e;