@univerjs-pro/collaboration-client-ui 0.5.2 → 0.5.3-nightly.202501041605

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 _0x3df0e2=_0x21b7;(function(_0x41a79d,_0x36f3bc){const _0x45f5b7=_0x21b7,_0x5b1011=_0x41a79d();while(!![]){try{const _0x337f30=-parseInt(_0x45f5b7(0xa3))/0x1*(-parseInt(_0x45f5b7(0xa9))/0x2)+parseInt(_0x45f5b7(0x98))/0x3*(parseInt(_0x45f5b7(0x99))/0x4)+-parseInt(_0x45f5b7(0xa4))/0x5+-parseInt(_0x45f5b7(0xa5))/0x6*(-parseInt(_0x45f5b7(0x9b))/0x7)+-parseInt(_0x45f5b7(0xa1))/0x8*(-parseInt(_0x45f5b7(0x9c))/0x9)+parseInt(_0x45f5b7(0xa2))/0xa+-parseInt(_0x45f5b7(0x9d))/0xb;if(_0x337f30===_0x36f3bc)break;else _0x5b1011['push'](_0x5b1011['shift']());}catch(_0x55b6f2){_0x5b1011['push'](_0x5b1011['shift']());}}}(_0x4d49,0x383e4));const t=require(_0x3df0e2(0xa6)),e=require(_0x3df0e2(0xa0));function _0x4d49(){const _0x5a184f=['_injector','@univerjs/core','472wEXrjs','25860pQmgVf','19uAQMbg','2205435OeRfDB','398214uWwnKw','@univerjs-pro/collaboration-client-ui','FUniver','RemoteUniscriptService','31334cajurS','runOnServer','14451ZSGuFx','348FRfehu','get','14twvnld','1359dKzzpX','2084786iKffHX','extend'];_0x4d49=function(){return _0x5a184f;};return _0x4d49();}class c extends e[_0x3df0e2(0xa7)]{[_0x3df0e2(0xaa)](_0x377016,_0x339a28,..._0x2d110c){const _0x528f5c=_0x3df0e2;return this[_0x528f5c(0x9f)][_0x528f5c(0x9a)](t[_0x528f5c(0xa8)])[_0x528f5c(0xaa)](_0x377016,_0x339a28,..._0x2d110c);}}function _0x21b7(_0x2ac3a4,_0x31fb66){const _0x4d4988=_0x4d49();return _0x21b7=function(_0x21b70e,_0x33e9d3){_0x21b70e=_0x21b70e-0x98;let _0x49f0c1=_0x4d4988[_0x21b70e];return _0x49f0c1;},_0x21b7(_0x2ac3a4,_0x31fb66);}e[_0x3df0e2(0xa7)][_0x3df0e2(0x9e)](c);
1
+ 'use strict';function _0x1d80(){const _0x6b1ab7=['RemoteUniscriptService','runOnServer','_injector','603582yuEYzj','@univerjs/core','4001136OiXcPY','get','extend','FUniver','8484924McIyAN','5280784EMMeXR','@univerjs-pro/collaboration-client-ui','992181LndSxN','10mfGKyb','708376goxzHG','696100dxhOqQ'];_0x1d80=function(){return _0x6b1ab7;};return _0x1d80();}function _0x525d(_0x4e0468,_0x2515d4){const _0x1d8022=_0x1d80();return _0x525d=function(_0x525d77,_0x406fd1){_0x525d77=_0x525d77-0xb4;let _0x7ca06a=_0x1d8022[_0x525d77];return _0x7ca06a;},_0x525d(_0x4e0468,_0x2515d4);}const _0x530788=_0x525d;(function(_0x2dab79,_0x336e08){const _0xa746c=_0x525d,_0x39ad7f=_0x2dab79();while(!![]){try{const _0x1b480c=-parseInt(_0xa746c(0xbb))/0x1+parseInt(_0xa746c(0xbc))/0x2+parseInt(_0xa746c(0xb9))/0x3+-parseInt(_0xa746c(0xc2))/0x4+parseInt(_0xa746c(0xba))/0x5*(-parseInt(_0xa746c(0xc0))/0x6)+parseInt(_0xa746c(0xb6))/0x7+parseInt(_0xa746c(0xb7))/0x8;if(_0x1b480c===_0x336e08)break;else _0x39ad7f['push'](_0x39ad7f['shift']());}catch(_0x11259c){_0x39ad7f['push'](_0x39ad7f['shift']());}}}(_0x1d80,0x9c881));const t=require(_0x530788(0xb8)),e=require(_0x530788(0xc1));class c extends e[_0x530788(0xb5)]{[_0x530788(0xbe)](_0x20d276,_0x55a817,..._0x5d9c6b){const _0x80eaf8=_0x530788;return this[_0x80eaf8(0xbf)][_0x80eaf8(0xc3)](t[_0x80eaf8(0xbd)])[_0x80eaf8(0xbe)](_0x20d276,_0x55a817,..._0x5d9c6b);}}e[_0x530788(0xb5)][_0x530788(0xb4)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5803ac=_0x2da3;(function(_0x21a636,_0x597db7){const _0x40c8f1=_0x2da3,_0x5d2734=_0x21a636();while(!![]){try{const _0x4b5b47=parseInt(_0x40c8f1(0x295))/0x1+-parseInt(_0x40c8f1(0x2ae))/0x2*(parseInt(_0x40c8f1(0x2ad))/0x3)+parseInt(_0x40c8f1(0x2b4))/0x4*(parseInt(_0x40c8f1(0x30d))/0x5)+-parseInt(_0x40c8f1(0x370))/0x6+parseInt(_0x40c8f1(0x239))/0x7*(parseInt(_0x40c8f1(0x23c))/0x8)+parseInt(_0x40c8f1(0x227))/0x9*(parseInt(_0x40c8f1(0x2a0))/0xa)+-parseInt(_0x40c8f1(0x2d5))/0xb;if(_0x4b5b47===_0x597db7)break;else _0x5d2734['push'](_0x5d2734['shift']());}catch(_0x389864){_0x5d2734['push'](_0x5d2734['shift']());}}}(_0x5547,0x50793));var Je=Object[_0x5803ac(0x209)],Ze=(_0x565e01,_0x4ef898,_0x3ebe2e)=>_0x4ef898 in _0x565e01?Je(_0x565e01,_0x4ef898,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ebe2e}):_0x565e01[_0x4ef898]=_0x3ebe2e,_=(_0x38cb70,_0x497530,_0x753b37)=>Ze(_0x38cb70,typeof _0x497530!=_0x5803ac(0x1fb)?_0x497530+'':_0x497530,_0x753b37);Object[_0x5803ac(0x209)](exports,Symbol[_0x5803ac(0x3b7)],{'value':_0x5803ac(0x2de)});const u=require(_0x5803ac(0x2e8)),a=require(_0x5803ac(0x1a2)),p=require(_0x5803ac(0x178)),fe=require('@univerjs/network'),b=require(_0x5803ac(0x234)),Qe=require(_0x5803ac(0x17f)),S=require('rxjs'),X=require(_0x5803ac(0x1a3)),g=require('@univerjs-pro/collaboration'),Te=require(_0x5803ac(0x18a)),I=require('@univerjs/sheets'),$=require(_0x5803ac(0x279)),q=require(_0x5803ac(0x1f5)),O=require(_0x5803ac(0x251)),w=require('@univerjs/ui'),M=require(_0x5803ac(0x35b)),et=require(_0x5803ac(0x201));var tt=Object[_0x5803ac(0x209)],st=Object['getOwnPropertyDescriptor'],nt=(_0x581b37,_0x29ab71,_0x168029,_0x458c73)=>{const _0x3df84a=_0x5803ac;for(var _0x23cafd=_0x458c73>0x1?void 0x0:_0x458c73?st(_0x29ab71,_0x168029):_0x29ab71,_0x170d3c=_0x581b37[_0x3df84a(0x244)]-0x1,_0x49fc20;_0x170d3c>=0x0;_0x170d3c--)(_0x49fc20=_0x581b37[_0x170d3c])&&(_0x23cafd=(_0x458c73?_0x49fc20(_0x29ab71,_0x168029,_0x23cafd):_0x49fc20(_0x23cafd))||_0x23cafd);return _0x458c73&&_0x23cafd&&tt(_0x29ab71,_0x168029,_0x23cafd),_0x23cafd;},Oe=(_0x18d4d5,_0x316144)=>(_0x38912d,_0x2a3440)=>_0x316144(_0x38912d,_0x2a3440,_0x18d4d5);let Se=class extends a[_0x5803ac(0x363)]{constructor(_0x275704,_0x3096eb){const _0x3e1216=_0x5803ac;super(),this['_docClipboardService']=_0x275704,this[_0x3e1216(0x1ad)]=_0x3096eb,this['_init']();}[_0x5803ac(0x1f4)](){const _0x58422b=_0x5803ac,_0x38a2cb=this;this[_0x58422b(0x1ed)](this[_0x58422b(0x162)]['addClipboardHook']({'onBeforePasteImage':async _0x54005c=>{const _0x211928=_0x58422b,_0x2780a8=await _0x38a2cb[_0x211928(0x1ad)][_0x211928(0x280)](_0x54005c);return _0x2780a8?{'source':_0x2780a8[_0x211928(0x39f)],'imageSourceType':_0x2780a8[_0x211928(0x2d8)]}:null;}}));}};Se=nt([Oe(0x0,b['IDocClipboardService']),Oe(0x1,Qe['IImageIoService'])],Se);const De=['purple300',_0x5803ac(0x3c0),'verdancy600',_0x5803ac(0x326),_0x5803ac(0x33b),'gold400'];class Ce extends a[_0x5803ac(0x1b5)]{constructor(){const _0x3ef410=_0x5803ac;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x3ef410(0x3c2),0x0);}[_0x5803ac(0x399)](_0x452b22){const _0x50df71=_0x5803ac;if(this[_0x50df71(0x35e)][_0x50df71(0x30c)](_0x452b22))return this[_0x50df71(0x35e)][_0x50df71(0x393)](_0x452b22);const _0x49967a=De[this[_0x50df71(0x3c2)]];return this[_0x50df71(0x3c2)]=(this[_0x50df71(0x3c2)]+0x1)%De[_0x50df71(0x244)],this[_0x50df71(0x35e)][_0x50df71(0x2f4)](_0x452b22,_0x49967a),_0x49967a;}}function $e(_0x310244){let _0x5dfa08='';for(const _0x2bd1ad of _0x310244){const {startOffset:_0x2b34a5,endOffset:_0x1920c4,isActive:_0x2d30b9,rangeType:_0x5f7086,segmentId:_0x942eb0,segmentPage:_0x4ac18b}=_0x2bd1ad;_0x5dfa08['length']&&(_0x5dfa08+=','),_0x5dfa08+=_0x2b34a5+':'+_0x1920c4+':'+(_0x2d30b9?'1':'0')+':'+_0x5f7086+':'+_0x942eb0+':'+_0x4ac18b;}return _0x5dfa08;}function it(_0x273b7c){const _0x2008f7=_0x5803ac,_0x4abe0a=_0x273b7c[_0x2008f7(0x2f6)](','),_0x5588a8=[];for(const _0x4c2f7a of _0x4abe0a){const [_0x35a0db,_0x444304,_0x253ed5,_0x31db67,_0x42f47c,_0xd8cd0a]=_0x4c2f7a['split'](':');_0x5588a8[_0x2008f7(0x215)]({'startOffset':Number(_0x35a0db),'endOffset':Number(_0x444304),'collapsed':_0x35a0db===_0x444304,'isActive':_0x253ed5==='1','rangeType':_0x31db67===a['DOC_RANGE_TYPE'][_0x2008f7(0x19b)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x2008f7(0x210)][_0x2008f7(0x383)],'segmentId':typeof _0x42f47c==_0x2008f7(0x1cd)?String(_0x42f47c):'','segmentPage':Number(_0xd8cd0a!=null?_0xd8cd0a:-0x1)});}return _0x5588a8[_0x2008f7(0x286)](_0x1691a4=>_0x1691a4['isActive'])||(_0x5588a8[0x0]['isActive']=!0x0),_0x5588a8;}class be extends a[_0x5803ac(0x363)]{constructor(){const _0x162363=_0x5803ac;super(...arguments),_(this,_0x162363(0x34d),new S[(_0x162363(0x3ad))](null)),_(this,_0x162363(0x3a6),this[_0x162363(0x34d)][_0x162363(0x2cd)]());}['syncEditingCollabCursor'](_0x18623f){const _0x2071fd=_0x5803ac,{unitID:_0x356b23,memberID:_0x10e732,textRanges:_0x536684}=_0x18623f,_0x3275b7=$e(_0x536684);if(_0x3275b7==='')return;const _0x2fb4e8={'unitID':_0x356b23,'memberID':_0x10e732,'selection':_0x3275b7};this['_collabCursorState$'][_0x2071fd(0x1dd)](_0x2fb4e8);}}var rt=Object['defineProperty'],ot=Object[_0x5803ac(0x391)],at=(_0x1ff56e,_0x3cd1bd,_0x227f45,_0x4a1b21)=>{for(var _0x2f8eee=_0x4a1b21>0x1?void 0x0:_0x4a1b21?ot(_0x3cd1bd,_0x227f45):_0x3cd1bd,_0x41675f=_0x1ff56e['length']-0x1,_0x5ebf88;_0x41675f>=0x0;_0x41675f--)(_0x5ebf88=_0x1ff56e[_0x41675f])&&(_0x2f8eee=(_0x4a1b21?_0x5ebf88(_0x3cd1bd,_0x227f45,_0x2f8eee):_0x5ebf88(_0x2f8eee))||_0x2f8eee);return _0x4a1b21&&_0x2f8eee&&rt(_0x3cd1bd,_0x227f45,_0x2f8eee),_0x2f8eee;},U=(_0x457da8,_0x69a2be)=>(_0xa634b7,_0x2981d2)=>_0x69a2be(_0xa634b7,_0x2981d2,_0x457da8);const ct=0x12c,lt=0x64;let ve=class extends a[_0x5803ac(0x363)]{constructor(_0x50cb88,_0x458a4e,_0x235ce8,_0x5b96af,_0x483e3f,_0x422227,_0x466cf4,_0x2342c4,_0xf52103){const _0x15014d=_0x5803ac;super(),_(this,_0x15014d(0x173),!0x1),_(this,_0x15014d(0x1f4),!0x1),_(this,_0x15014d(0x24b),new S['BehaviorSubject'](new Map())),_(this,_0x15014d(0x27d),this[_0x15014d(0x24b)][_0x15014d(0x2cd)]()),_(this,_0x15014d(0x22a),new S[(_0x15014d(0x3ad))]([])),_(this,_0x15014d(0x3c3),this[_0x15014d(0x22a)][_0x15014d(0x1e2)](S[_0x15014d(0x2d7)](ct))),_(this,'_updateLocalCursor',a[_0x15014d(0x2ca)](_0x2c0868=>{const _0x509ba5=_0x15014d,_0x3dd3d2={'eventID':g[_0x509ba5(0x21d)][_0x509ba5(0x179)],'data':{'unitID':this[_0x509ba5(0x348)],'memberID':this['_session'][_0x509ba5(0x36d)](),'selection':$e(_0x2c0868)}};this[_0x509ba5(0x1ef)]['send'](_0x3dd3d2,this[_0x509ba5(0x348)]);},lt)),(this[_0x15014d(0x348)]=_0x50cb88,this['_session']=_0x458a4e,this[_0x15014d(0x37f)]=_0x235ce8,this[_0x15014d(0x394)]=_0x5b96af,this[_0x15014d(0x371)]=_0x483e3f,this[_0x15014d(0x161)]=_0x422227,this[_0x15014d(0x3b3)]=_0x466cf4,this[_0x15014d(0x3ac)]=_0x2342c4,this[_0x15014d(0x2e7)]=_0xf52103);}get[_0x5803ac(0x347)](){const _0x1ae587=_0x5803ac;return this['_cursorInfo$'][_0x1ae587(0x3b8)]();}get[_0x5803ac(0x3a2)](){const _0x3e8696=_0x5803ac;return this[_0x3e8696(0x22a)][_0x3e8696(0x3b8)]();}[_0x5803ac(0x263)](){const _0x423f94=_0x5803ac;super['dispose'](),this[_0x423f94(0x24b)][_0x423f94(0x1dd)](new Map()),this[_0x423f94(0x24b)][_0x423f94(0x2d9)](),this['_roomMembers$'][_0x423f94(0x1dd)]([]),this[_0x423f94(0x22a)][_0x423f94(0x2d9)]();}[_0x5803ac(0x294)](){const _0x59c20e=_0x5803ac;this[_0x59c20e(0x1f4)]||(this[_0x59c20e(0x1f4)]=!0x0,this[_0x59c20e(0x1ef)][_0x59c20e(0x15c)][_0x59c20e(0x1e2)](S[_0x59c20e(0x26d)](this[_0x59c20e(0x1d7)]))[_0x59c20e(0x2bb)](_0x3831e1=>{const _0x10cd06=_0x59c20e;_0x3831e1===u[_0x10cd06(0x30a)][_0x10cd06(0x192)]?this[_0x10cd06(0x186)]():this[_0x10cd06(0x2aa)]();}),this['_session'][_0x59c20e(0x170)][_0x59c20e(0x1e2)](S[_0x59c20e(0x26d)](this['dispose$']))['subscribe'](_0xc72c32=>{const _0x2e6ec7=_0x59c20e,_0x3a3a81=_0xc72c32[_0x2e6ec7(0x25f)];_0x3a3a81===g['CollaborationEvent'][_0x2e6ec7(0x179)]&&this[_0x2e6ec7(0x28a)](_0xc72c32),_0x3a3a81===g[_0x2e6ec7(0x21d)]['USERS_LEAVE']&&this[_0x2e6ec7(0x378)](_0xc72c32);}),this[_0x59c20e(0x1ed)](this[_0x59c20e(0x2e7)]['onCommandExecuted'](_0x37e239=>{const _0x4c007a=_0x59c20e,_0x325e8d=_0x37e239[_0x4c007a(0x19d)];_0x325e8d!=null&&this[_0x4c007a(0x173)]&&_0x37e239['id']===X[_0x4c007a(0x376)]['id']&&_0x325e8d[_0x4c007a(0x2e5)]===this[_0x4c007a(0x348)]&&_0x325e8d['isEditing']===!0x1&&_0x325e8d[_0x4c007a(0x379)]['length']>0x0&&this[_0x4c007a(0x1fa)](_0x325e8d[_0x4c007a(0x379)]);})),this[_0x59c20e(0x161)][_0x59c20e(0x3a6)][_0x59c20e(0x1e2)](S['takeUntil'](this[_0x59c20e(0x1d7)]))[_0x59c20e(0x2bb)](_0x4d6eba=>{const _0x19301a=_0x59c20e;if((_0x4d6eba==null?void 0x0:_0x4d6eba['unitID'])!==this['unitID'])return;const _0x26aa75={'eventID':g[_0x19301a(0x21d)][_0x19301a(0x179)],'data':_0x4d6eba};this[_0x19301a(0x28a)](_0x26aa75);}),this[_0x59c20e(0x1ed)](this[_0x59c20e(0x2e7)][_0x59c20e(0x1d1)](_0x4e5e96=>{const _0x5532e2=_0x59c20e;if(_0x4e5e96[_0x5532e2(0x19d)]==null)return;const _0x31352e=_0x4e5e96[_0x5532e2(0x19d)];if(_0x4e5e96['id']!==X[_0x5532e2(0x2ff)]['id']||_0x31352e[_0x5532e2(0x2e5)]!==this[_0x5532e2(0x348)])return;const _0x9f7f64={'id':_0x5532e2(0x2ba),'params':_0x31352e},_0x2afa22=this[_0x5532e2(0x347)];for(const [_0x1003eb,_0x500215]of _0x2afa22){const _0x3555f4={'id':_0x5532e2(0x2ba),'params':{'unitId':this[_0x5532e2(0x348)],'actions':null,'textRanges':_0x500215[_0x5532e2(0x379)]}},_0x364c8a=this[_0x5532e2(0x3b3)]['transformMutation'](_0x9f7f64,_0x3555f4,!0x1);if(g[_0x5532e2(0x22c)](_0x364c8a))throw _0x364c8a['error'];_0x2afa22[_0x5532e2(0x2f4)](_0x1003eb,{..._0x500215,'ranges':_0x364c8a['m2Prime'][_0x5532e2(0x19d)]['textRanges']});}queueMicrotask(()=>{const _0x51f22b=_0x5532e2;this['_cursorInfo$'][_0x51f22b(0x1dd)](_0x2afa22);});})));}[_0x5803ac(0x28a)](_0x4d5bfd){const _0x4c5875=_0x5803ac;var _0x278495,_0x215d08;const {memberID:_0x14d59d,selection:_0x1fb8d0}=_0x4d5bfd[_0x4c5875(0x34a)],_0x2d9d17=it(_0x1fb8d0),_0x5f0c49=(_0x215d08=(_0x278495=this[_0x4c5875(0x371)][_0x4c5875(0x350)](this[_0x4c5875(0x348)],_0x14d59d))==null?void 0x0:_0x278495[_0x4c5875(0x30b)])!=null?_0x215d08:_0x4c5875(0x320),_0x393de0={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x14d59d),'name':_0x5f0c49,'ranges':_0x2d9d17},_0xc5c2a6=this[_0x4c5875(0x347)];_0xc5c2a6[_0x4c5875(0x2f4)](_0x14d59d,_0x393de0),this[_0x4c5875(0x24b)][_0x4c5875(0x1dd)](_0xc5c2a6);}[_0x5803ac(0x378)](_0x31b584){const _0x13da4d=_0x5803ac,{memberID:_0x36e770}=_0x31b584[_0x13da4d(0x34a)],_0x42b456=this[_0x13da4d(0x347)];_0x42b456[_0x13da4d(0x1d3)](_0x36e770),this[_0x13da4d(0x24b)][_0x13da4d(0x1dd)](_0x42b456);}[_0x5803ac(0x186)](){const _0x3fb986=_0x5803ac;var _0x25b6fd;if(this['_online']=!0x0,((_0x25b6fd=this[_0x3fb986(0x3ac)][_0x3fb986(0x1a1)]())==null?void 0x0:_0x25b6fd['getUnitId']())!==this[_0x3fb986(0x348)])return;const _0x4cb320=this[_0x3fb986(0x37f)][_0x3fb986(0x393)](X[_0x3fb986(0x15e)])[_0x3fb986(0x2ee)]();Array[_0x3fb986(0x214)](_0x4cb320)&&_0x4cb320[_0x3fb986(0x244)]>0x0&&this['_updateLocalCursor'](_0x4cb320);}[_0x5803ac(0x2aa)](){this['_online']=!0x1;}};ve=at([U(0x2,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x358)])),U(0x3,a[_0x5803ac(0x1ff)](Ce)),U(0x4,a[_0x5803ac(0x1ff)](u[_0x5803ac(0x253)])),U(0x5,a[_0x5803ac(0x1ff)](be)),U(0x6,g[_0x5803ac(0x3a0)]),U(0x7,a[_0x5803ac(0x203)]),U(0x8,a['ICommandService'])],ve);var ht=Object[_0x5803ac(0x209)],_t=Object[_0x5803ac(0x391)],ut=(_0x179f8c,_0x48f7e6,_0x4e29db,_0xb7d3db)=>{const _0x3698dd=_0x5803ac;for(var _0x58e43e=_0xb7d3db>0x1?void 0x0:_0xb7d3db?_t(_0x48f7e6,_0x4e29db):_0x48f7e6,_0x3f2fcf=_0x179f8c[_0x3698dd(0x244)]-0x1,_0x5cc8a4;_0x3f2fcf>=0x0;_0x3f2fcf--)(_0x5cc8a4=_0x179f8c[_0x3f2fcf])&&(_0x58e43e=(_0xb7d3db?_0x5cc8a4(_0x48f7e6,_0x4e29db,_0x58e43e):_0x5cc8a4(_0x58e43e))||_0x58e43e);return _0xb7d3db&&_0x58e43e&&ht(_0x48f7e6,_0x4e29db,_0x58e43e),_0x58e43e;},A=(_0x570ccb,_0x45d8cd)=>(_0xe31e37,_0x5284e4)=>_0x45d8cd(_0xe31e37,_0x5284e4,_0x570ccb);function _0x5547(){const _0x14abcb=['path','JOIN_ROOM_FAILED','_clearOtherTimers','react.element','xlink:href','labelPosition','length','mergeOverrideWithDependencies','uni.network.url-service','DesktopCollaborationStatusDisplayController','colorChannel1','SheetCollabCursorShape','[CollaborationDataLoaderController]','_cursorInfo$','textRanges','_themeService','_initCommandExecutedListener','_draw','subunit','react','ILogService','MemberService','IRenderManagerService','all','beginPath','indexOf','getCurrentSelections','drawWith','getUnhiddenWorksheets','getCollabEntity$','APPLY_DUPLICATED','off-line-single','displayName','eventID','transform','_collaborationController','activeSheet$','dispose','_configService','className','defIds','show','unsubscribe','enableLocalCache','ref','getCurrentUnitForType','_saveCache','takeUntil','univer-online-status-title','_initEntityListener','parse','_urlService','InsertColCommandId','_getSheetObject','attrs','reconnect','DocCollaborationEntity','transformMutationsWithChangeset','DependentOn','rxjs/operators','assign','univer-online','post','cursorInfo$','find','restore','saveImage','_scheduleClearOtherTimer','lineTo','_collabCursorController','RevisionService','_transformHistoryAndStateStack','some','mutations','ENSURE_SNAPSHOT_EXECUTION','_selfUnitIDs','_onCursorUpdate','_color','OFFLINE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','addObjects','SUBMIT_CHANGESET_TIMEOUT','1em','transformStateCache','_cursor','fill','init','120186zLKtFh','getUnitId','subscribeEvent','ACTIVE_UNIT_EVENT_CHANNEL','APPLY_PERMISSION_DENIED','handleInsertRangeMoveDown','ThemeService','UNDEFINED','permission.title','defs','onTransformChange$','5880UCPWyG','getSheetBySheetId','CHANGESET_REVISION_CONFILICT','useCallback','getTypeOfUnitAdded$','Shape','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','currentColor','_disabled','closePath','_toggleOffline','getRenderById','collabStatus.fetchMiss','285507KadHCZ','4zBoaEY','_entityInit$','defaultProps','YUUMI_UNABLE_LOAD_URL','onRendered','_eventUnsubscribe','8NUGaGT','/run/','startsWith','_scheduleHeartbeat','IConfigService','map','doc.mutation.rich-text-editing','subscribe','loadUnit','_drawTextRange','send','replace','_name','createIdentifier','CollaborationUIEventId','fillRule','use','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','_cachedData','_removeCollabCursors','SetWorksheetActivateCommand','hasOwnProperty','debounce','currentTheme$','_localStorageService','asObservable','_docTransformSelectionsService','_saveTaskMap','_updateSubUnitFromURLParams','generateRandomId','SheetsSelectionsService','Tooltip','_cursorShapes','1473010UlLqSA','exports','debounceTime','imageSourceType','complete','collabStatus.notCollab','round','trim','_getSaveTimeout','Module','_localeService','OffLineSingle','apply','engine','LOCAL_CACHE_INTERVAL_KEY','flatMap','unitId','Subject','_commandService','@univerjs-pro/collaboration-client','_drawRectRange','function','_textBubble','onPointerEnter$','whenReady','getDocRanges','_initResize','includes','COMPLETION_FINISHED','setItem','then','set','on-line-single_clip0_910_349','split','toRgbString','#fff','univer-offline','min','call','FromArray','selections','ISocketService','RichTextEditingMutation','InsertRowCommandId','setShapeProps','object','Fragment','_refRangeService','_initDependencies','handleDeleteRangeMoveUp','off-line-single_clip0_910_343','random','getCurrentRevOfUnit','SessionStatus','name','has','937095umjulA','requireSession','setStateCache','UNIVER_SHEET','_initStatusListener','_hideTimer','_collabSessionService','prototype','M0\x200H16V16H0z','getItem','getOwnPropertySymbols','skeleton','AWAITING','COLORS','_id','handleIRemoveCol','saveTaskMap','transformRemoteChangeset','DataLoaderService','Unknown\x20user','_render','docStateChange$','type','_httpService','_setupSubUnitSync','red300','sheetID','hide','_updateURLWithCurrentState','bottom','SNAPSHOT_HAS_BEEN_REMOVED','_docTransformIMECacheService','_unitOnClients','div','svg','startRow','getViewport','setConfig','LOCAL_CACHE_INTERVAL','clipPath','registerDependencies','addHandlerCallback','_document','_docTransformStateCacheService','transformSelections','href','blue400','endColumn','translate(.97)','getParam','max','loadOfflineData','univer-online-status','_registerDependencies','registerRefRange','disableLocalCache','handleInsertCol','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','cursorInfo','unitID','_registerRenderDependencies','data','width','_revisionService','_collabCursorState$','setTimeout','selection','getMember','NOT_COLLAB','DocStateChangeManagerService','getUndoRedoMutationParamsCache','_renderManagerService','urlChange$','from','transformMutation','Injector','APPLY_REVISION_CONFILICT','getUniverSheetInstance','@univerjs/design','storage','_collaborationUIEventService','_assignedColors','AWAITING_WITH_PENDING','saveOfflineData','_docSyncEditingCollabCursorService','memberID','RxDisposable','executeCommand','_beforeCloseService','DeleteRangeMoveUpCommandId','toString','disposeUnit','debug','newValue','ILocalCacheService','SNAPSHOT_INVALID_SNAPSHOT','getMemberID','SetSelectionsOperation','handleDeleteRangeMoveLeft','3466494vYuvfx','_memberService','_messageService','session.will-retry','getMergeData','CollaborationDataLoaderController','SetTextSelectionsOperation','_status$','_onCursorDelete','ranges','session.collaboration-timeout','forwardRef','registerBeforeClose','_transformUndoRedoStack','YUUMI_RATE_OVER_LIMIT','_injector','toDisposable','merge','univer-online-status-icon','RECT','touchDependencies','add','fromEventSubject','deserializeRangeWithSheet','_removeClearOtherTimer','fillText','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_updateCollabCursors','Tools','syncEditingCollabCursor','UNIVER_DOC','status$','_labelPosition','getOwnPropertyDescriptor','undoState','get','_colorAssignService','url(#off-line-single_clip0_910_343)','_startSheetCollabCursor','getTypeOfUnitDisposed$','_docStateChangeManagerService','assignAColorForMemberID','rgba(255,\x20255,\x20255,\x200.01)','collab-rect-range-','SOCKET_FAILED','_onRefRangeChange','searchParams','source','ITransformService','LICENSE_MAX_UNITS_EXCEEDED','roomMembers','OnLineSingle','getSkeleton','getColor','collabCursorState$','_dataLoaderService','Warning','hovered','idSuffix','_hovered','_univerInstanceService','BehaviorSubject','_handleHeartbeatEvent','_ensureSubject','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','_startDocCollabCursor','jsxs','_transformService','LICENSE_DISTRO_REJECTED','Rectangle','YUUMI_URL_COL_OUT_OF_RANGE','toStringTag','getValue','size','font','collabStatus.conflict','currentSkeleton$','exhaustSavingTask','_anchor','for','jiqing500','ICommandService','_colorIndex','roomMembers$','getRangePointData','LocaleService','NodePositionConvertToCursor','getActiveRange','filter','onStarting','_send','MUTATION','error','makeDirty','_lastPointer','YUUMI_SUBSCRIPTION_NOT_FOUND','runId','UniverCollaborationClientPlugin','_setupBeforeClosingHandler','sessionStatus$','fromEvent','DocSelectionManagerService','_localCacheService','evenodd','_syncEditingCollabCursorService','_docClipboardService','concat','_entities','height','UNAUTHENTICATED','_unitStatus','RemoveColCommandId','SOCKET_FAILED_RETRY','DocIMEInputManagerService','Plugin','INotificationService','_docSkeleton','focused$','Error','event$','range','_handleHover','_online','useDependency','MessageType','BuiltInUIPart','RemoteUniscriptService','@univerjs/engine-render','UPDATE_CURSOR','_backgroundColor','key','registerComponent','_cursors','measureText','@univerjs/drawing','replaceDocRanges','_scene','CollaborationController','collaboration.closeRoom','IURLService','replaceState','_toggleOnline','INTERNAL_ERROR','UnitStatus','_heartbeatTimer','@univerjs/engine-formula','ALREADY_EXISTS','getSheetId','getActiveSheet','none','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','setAlpha','forEach','ONLINE','APPLY_REJECT','triggerDblclick','_context','combineLatest','react.fragment','_logService','text','redoState','TEXT','clearTimeout','params','TOO_MANY_REQUESTS','UniverInstanceType','_hover','getFocusedUnit','@univerjs/core','@univerjs/docs','TRANSFORM_CHANGE_OBSERVABLE_TYPE','CONNECTOR_DATA_TOO_LARGE','history','ColorKit','switchMap','ILocalStorageService','SetDocZoomRatioOperation','CollaborationStatus','onlineStatusIcon','_imageIoService','collab-text-range-','deepClone','RefRangeService','pushState','fillStyle','createElement','location','Disposable','color','NO_OTHER_CLIENTS_EDITING','RegularPolygon','shareReplay','WebURLService','CollaborationSessionService','collab-text-anchor-','handleIRemoveRow','getStateCache','getUnitStatus$','RemoveRowCommandId','addEventListener','_refreshCollabCursors','jsx','getCoordByCell','black','tag','WebSocketService','_initEvent','registerRenderModule','getAncestorScale','_range','handleMoveRange','string','unit','findNodePositionByCharIndex','online','onCommandExecuted','children','delete','NOT_FOUND','_docSkeletonManagerService','_getScale','dispose$','addObject','with','PERMISSION_DENIED','Rect','HEADER_MENU','next','url(#on-line-single_clip0_910_349)','collaboration-client.offline-data-not-saved','setActiveRange','onPointerMove$','pipe','getCollabCursors$','...','_scheduleSaving','permission.content','transformIMECache','code','getConfig','substring','USERS_LEAVE','session.connection-failed','disposeWithMe','entries','_session','0\x200\x2017\x2016','OTHER_CLIENTS_EDITING','values','_shapes','_init','@univerjs/sheets-ui','IMessageService','unshift','_handleEvent','PENDING','_updateLocalCursor','symbol','setParam','createInstance','row','Inject','arc','@univerjs/rpc','CONFLICT','IUniverInstanceService','_notificationService','MoveRangeCommandId','EffectRefRangId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','NodePositionConvertToRectRange','defineProperty','_getAnchorBounding','INVALID_ARGUMENT','collaboration-client-ui.config','save','current','_anchorDot','DOC_RANGE_TYPE','column','stringify','m2Prime','isArray','push','onlineStatus','isTransformMutationsWithChangesetSuccess','_sheetSkeletonManagerService','getLocalCacheKey','CLOSE_ROOM','CollaborationStatusDisplay','IRemoteInstanceService','CollaborationEvent','override','onMouseMove','FETCH_MISS','LICENSE_IMPORT_SIZE_EXCEEDED','getSheetObject','SHEET_VIEWPORT_KEY','_uiPartsService','_initStatusComponent','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','8433fIyOZd','endRow','_transformPreviousActiveRange','_roomMembers$','UniverCollaborationClientUIPlugin','isTransformMutationFailure','HTTPService','updateOfflineData','body','m1Prime','TEXT_RANGE_LAYER_INDEX','_config','_handleLeaveEvent','@univerjs/docs-ui','APPLY_NON_SEQUENTIAL_REVISION','icon','UNRECOGNIZED','DisposableCollection','14snluHE','Vector2','top','742544LHpKSU','_drawAnchor'];_0x5547=function(){return _0x14abcb;};return _0x5547();}const dt=0x12c,ft=0x64,St=()=>{let _0x4578da=[],_0xdd50cf=!0x1;return _0x2bf895=>{_0x4578da['push'](_0x2bf895),_0xdd50cf||(_0xdd50cf=!0x0,setTimeout(()=>{const _0x20e97b=_0x2da3;_0x4578da[_0x20e97b(0x191)](_0x444b2b=>_0x444b2b()),_0x4578da=[],_0xdd50cf=!0x1;}));};};let me=class extends a[_0x5803ac(0x363)]{constructor(_0x4e4d1d,_0x5e81e4,_0x1804e6,_0x3e9c52,_0xc678c3,_0x4c3293,_0x4d5bec,_0x15dbbf){const _0x4d9770=_0x5803ac;super(),_(this,_0x4d9770(0x173),!0x1),_(this,'_init',!0x1),_(this,_0x4d9770(0x24b),new S[(_0x4d9770(0x3ad))](new Map())),_(this,_0x4d9770(0x27d),this[_0x4d9770(0x24b)][_0x4d9770(0x2cd)]()),_(this,'_roomMembers$',new S[(_0x4d9770(0x3ad))]([])),_(this,_0x4d9770(0x3c3),this[_0x4d9770(0x22a)]['pipe'](S[_0x4d9770(0x2d7)](dt))),_(this,'_updateLocalCursor',a['debounce']((_0x24b445,_0x5a3701)=>{const _0x2d619b=_0x4d9770,_0x4e47ac={'eventID':g[_0x2d619b(0x21d)][_0x2d619b(0x179)],'data':{'unitID':this[_0x2d619b(0x348)],'memberID':this[_0x2d619b(0x1ef)][_0x2d619b(0x36d)](),'selection':Te['serializeRangeWithSheet'](_0x24b445,_0x5a3701[_0x2d619b(0x171)])}};this[_0x2d619b(0x1ef)][_0x2d619b(0x2be)](_0x4e47ac,this[_0x2d619b(0x348)]);},ft)),(this[_0x4d9770(0x348)]=_0x4e4d1d,this['_session']=_0x5e81e4,this[_0x4d9770(0x37f)]=_0x1804e6,this['_colorAssignService']=_0x3e9c52,this[_0x4d9770(0x371)]=_0xc678c3,this[_0x4d9770(0x3ac)]=_0x4c3293,this[_0x4d9770(0x2e7)]=_0x4d5bec,this[_0x4d9770(0x304)]=_0x15dbbf);}get[_0x5803ac(0x347)](){const _0x5d87a7=_0x5803ac;return this[_0x5d87a7(0x24b)][_0x5d87a7(0x3b8)]();}get[_0x5803ac(0x3a2)](){const _0x2f5fec=_0x5803ac;return this[_0x2f5fec(0x22a)][_0x2f5fec(0x3b8)]();}[_0x5803ac(0x263)](){const _0x34d290=_0x5803ac;super[_0x34d290(0x263)](),this[_0x34d290(0x24b)]['next'](new Map()),this[_0x34d290(0x24b)][_0x34d290(0x2d9)](),this[_0x34d290(0x22a)][_0x34d290(0x1dd)]([]),this['_roomMembers$'][_0x34d290(0x2d9)]();}[_0x5803ac(0x294)](){const _0x551c5f=_0x5803ac;this['_init']||(this[_0x551c5f(0x1f4)]=!0x0,this[_0x551c5f(0x1ef)]['sessionStatus$'][_0x551c5f(0x1e2)](S[_0x551c5f(0x26d)](this[_0x551c5f(0x1d7)]))[_0x551c5f(0x2bb)](_0x28657e=>{const _0x213699=_0x551c5f;_0x28657e===u[_0x213699(0x30a)]['ONLINE']?this[_0x213699(0x186)]():this[_0x213699(0x2aa)]();}),this[_0x551c5f(0x1ef)]['event$']['pipe'](S[_0x551c5f(0x26d)](this['dispose$']))[_0x551c5f(0x2bb)](_0x34b9b3=>{const _0x14cd8b=_0x551c5f,_0x384245=_0x34b9b3[_0x14cd8b(0x25f)];_0x384245===g[_0x14cd8b(0x21d)]['UPDATE_CURSOR']&&this[_0x14cd8b(0x28a)](_0x34b9b3),_0x384245===g[_0x14cd8b(0x21d)][_0x14cd8b(0x1eb)]&&this['_onCursorDelete'](_0x34b9b3);}),this[_0x551c5f(0x39d)](),this[_0x551c5f(0x1ed)](this[_0x551c5f(0x2e7)][_0x551c5f(0x1d1)](_0x2066a9=>{const _0x337849=_0x551c5f;if(this[_0x337849(0x173)]&&_0x2066a9['id']===I[_0x337849(0x36e)]['id']&&_0x2066a9['params'][_0x337849(0x2e5)]===this[_0x337849(0x348)]){const _0x376f1a=_0x2066a9[_0x337849(0x19d)];this['_updateLocalCursor'](_0x376f1a['subUnitId'],_0x376f1a[_0x337849(0x2fd)][0x0]);}})));}[_0x5803ac(0x28a)](_0x268237){const _0x510f7a=_0x5803ac;var _0x2647ce,_0x29fb79;const {memberID:_0x3e0ebe,selection:_0x52fae8}=_0x268237[_0x510f7a(0x34a)],{sheetName:_0x49fcdc,range:_0x25be52}=Te[_0x510f7a(0x387)](_0x52fae8),_0x596f82={'name':(_0x29fb79=(_0x2647ce=this[_0x510f7a(0x371)]['getMember'](this[_0x510f7a(0x348)],_0x3e0ebe))==null?void 0x0:_0x2647ce['name'])!=null?_0x29fb79:_0x510f7a(0x320),'range':this['_getMergeRange'](_0x49fcdc,_0x25be52),'sheetID':_0x49fcdc,'color':this[_0x510f7a(0x394)][_0x510f7a(0x399)](_0x3e0ebe),'selection':_0x52fae8},_0x539ccd=this['cursorInfo'];_0x539ccd['set'](_0x3e0ebe,_0x596f82),this[_0x510f7a(0x24b)][_0x510f7a(0x1dd)](_0x539ccd);}[_0x5803ac(0x378)](_0x4258f3){const _0x1ac3e9=_0x5803ac,{memberID:_0x380eaf}=_0x4258f3[_0x1ac3e9(0x34a)],_0x426644=this[_0x1ac3e9(0x347)];_0x426644['delete'](_0x380eaf),this[_0x1ac3e9(0x24b)][_0x1ac3e9(0x1dd)](_0x426644);}['_getMergeRange'](_0x5cbe71,_0x63cef4){const _0x2d4955=_0x5803ac;var _0x1e0c0e,_0x557a13;const _0x1d5cb3=(_0x557a13=(_0x1e0c0e=this[_0x2d4955(0x3ac)][_0x2d4955(0x35a)](this[_0x2d4955(0x348)]))==null?void 0x0:_0x1e0c0e[_0x2d4955(0x2a1)](_0x5cbe71))==null?void 0x0:_0x557a13[_0x2d4955(0x374)]();return(_0x1d5cb3==null?void 0x0:_0x1d5cb3[_0x2d4955(0x27e)](_0x2c83e5=>a[_0x2d4955(0x3b5)]['contains'](_0x2c83e5,_0x63cef4)))||_0x63cef4;}['_onRefRangeChange'](){const _0x4bb8ec=_0x5803ac,_0x547eec=new a[(_0x4bb8ec(0x238))](),_0x516380=St(),_0x56038d=()=>{const _0x10adfb=_0x4bb8ec;_0x547eec[_0x10adfb(0x263)]();const _0x5bb55b=(_0x5b4cf3,_0x7e8a73,_0x863afc,_0x421e42)=>{const _0x549f90=_0x10adfb;let _0x53a328=[];switch(_0x5b4cf3['id']){case I[_0x549f90(0x206)]['DeleteRangeMoveLeftCommandId']:{_0x53a328=I[_0x549f90(0x36f)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)][_0x549f90(0x366)]:{_0x53a328=I[_0x549f90(0x306)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)][_0x549f90(0x272)]:{_0x53a328=I[_0x549f90(0x345)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)]['InsertRangeMoveDownCommandId']:{_0x53a328=I[_0x549f90(0x29a)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)]['InsertRangeMoveRightCommandId']:{_0x53a328=I['handleInsertRangeMoveRight'](_0x5b4cf3,_0x421e42);break;}case I['EffectRefRangId'][_0x549f90(0x300)]:{_0x53a328=I['handleInsertRow'](_0x5b4cf3,_0x421e42);break;}case I['EffectRefRangId'][_0x549f90(0x205)]:{_0x53a328=I[_0x549f90(0x1cc)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)][_0x549f90(0x168)]:{_0x53a328=I[_0x549f90(0x31c)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)][_0x549f90(0x1c0)]:{_0x53a328=I[_0x549f90(0x1bd)](_0x5b4cf3,_0x421e42);break;}}const _0x2c50f5=I['runRefRangeMutations'](_0x53a328,_0x421e42),_0x5b72ae=this[_0x549f90(0x347)][_0x549f90(0x393)](_0x7e8a73);if(_0x5b72ae&&_0x2c50f5){const _0x3fb766={..._0x5b72ae,'range':_0x2c50f5};this['cursorInfo'][_0x549f90(0x2f4)](_0x7e8a73,_0x3fb766),_0x516380(()=>{const _0x3329fd=_0x549f90,_0x1a2708=this[_0x3329fd(0x304)][_0x3329fd(0x343)](_0x2c50f5,_0xe998e8=>(_0x1a2708['dispose'](),_0x5bb55b(_0xe998e8,_0x7e8a73,_0x863afc,_0x2c50f5)));_0x547eec['add'](_0x1a2708);});}return{'redos':[],'undos':[]};};this[_0x10adfb(0x347)][_0x10adfb(0x191)]((_0x1a1661,_0x30ad3d)=>{const _0x5dbf76=_0x10adfb,{range:_0xf7852,sheetID:_0x52ddc0}=_0x1a1661,_0x26ca86=this['_refRangeService'][_0x5dbf76(0x343)](_0xf7852,_0x56c4d0=>(_0x26ca86['dispose'](),_0x5bb55b(_0x56c4d0,_0x30ad3d,_0x52ddc0,_0xf7852)));_0x547eec[_0x5dbf76(0x385)](_0x26ca86);});};this[_0x4bb8ec(0x1ed)](a[_0x4bb8ec(0x380)](this[_0x4bb8ec(0x24b)][_0x4bb8ec(0x2bb)](()=>{_0x56038d();})));}['_toggleOnline'](){const _0x377be2=_0x5803ac;var _0xe07ed9,_0x6ae3d1;if(this[_0x377be2(0x173)]=!0x0,((_0xe07ed9=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0xe07ed9[_0x377be2(0x296)]())!==this['unitID'])return;const _0x217d33=(_0x6ae3d1=this[_0x377be2(0x37f)][_0x377be2(0x393)](I[_0x377be2(0x2d2)])[_0x377be2(0x258)]())==null?void 0x0:_0x6ae3d1[0x0],_0x522caf=this[_0x377be2(0x3ac)][_0x377be2(0x26b)](a['UniverInstanceType'][_0x377be2(0x310)])[_0x377be2(0x18d)]();_0x217d33&&_0x522caf&&this[_0x377be2(0x1fa)](_0x522caf[_0x377be2(0x18c)](),_0x217d33);}[_0x5803ac(0x2aa)](){const _0x48cb7e=_0x5803ac;this[_0x48cb7e(0x173)]=!0x1;}};me=ut([A(0x2,a['Inject'](a[_0x5803ac(0x358)])),A(0x3,a[_0x5803ac(0x1ff)](Ce)),A(0x4,a['Inject'](u['MemberService'])),A(0x5,a[_0x5803ac(0x203)]),A(0x6,a[_0x5803ac(0x3c1)]),A(0x7,a[_0x5803ac(0x1ff)](I[_0x5803ac(0x1b0)]))],me);var vt=Object[_0x5803ac(0x209)],mt=Object[_0x5803ac(0x391)],It=(_0x2b2025,_0x5b2719,_0x1dc0d6,_0x128b80)=>{const _0x72ff83=_0x5803ac;for(var _0x2baf9e=_0x128b80>0x1?void 0x0:_0x128b80?mt(_0x5b2719,_0x1dc0d6):_0x5b2719,_0x305a13=_0x2b2025[_0x72ff83(0x244)]-0x1,_0x2c86b2;_0x305a13>=0x0;_0x305a13--)(_0x2c86b2=_0x2b2025[_0x305a13])&&(_0x2baf9e=(_0x128b80?_0x2c86b2(_0x5b2719,_0x1dc0d6,_0x2baf9e):_0x2c86b2(_0x2baf9e))||_0x2baf9e);return _0x128b80&&_0x2baf9e&&vt(_0x5b2719,_0x1dc0d6,_0x2baf9e),_0x2baf9e;},ne=(_0x2e7ca9,_0x2d174a)=>(_0x538064,_0x2f4d7f)=>_0x2d174a(_0x538064,_0x2f4d7f,_0x2e7ca9);let x=class extends a[_0x5803ac(0x363)]{constructor(_0x3275af,_0x449126,_0xdb1273){const _0x3d5ca4=_0x5803ac;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new S[(_0x3d5ca4(0x2e6))]()),(this['_univerInstanceService']=_0x3275af,this[_0x3d5ca4(0x37f)]=_0x449126,this[_0x3d5ca4(0x313)]=_0xdb1273,this[_0x3d5ca4(0x1f4)]());}[_0x5803ac(0x263)](){const _0x1d7088=_0x5803ac;super[_0x1d7088(0x263)](),this['_entityInit$'][_0x1d7088(0x2d9)](),this[_0x1d7088(0x164)][_0x1d7088(0x191)](_0x4d44e7=>_0x4d44e7['dispose']());}[_0x5803ac(0x1e3)](_0x5c2f25){const _0x584c0e=_0x5803ac;return this[_0x584c0e(0x164)][_0x584c0e(0x30c)](_0x5c2f25)?this['_entities'][_0x584c0e(0x393)](_0x5c2f25)[_0x584c0e(0x27d)]:this[_0x584c0e(0x2af)][_0x584c0e(0x1e2)](S[_0x584c0e(0x3c8)](_0x179566=>_0x179566[_0x584c0e(0x348)]===_0x5c2f25),S[_0x584c0e(0x1a8)](_0x11e030=>_0x11e030['cursorInfo$']));}[_0x5803ac(0x1f4)](){const _0x1092db=_0x5803ac;this[_0x1092db(0x3ac)][_0x1092db(0x2a4)](a[_0x1092db(0x19f)][_0x1092db(0x310)])[_0x1092db(0x1e2)](S[_0x1092db(0x26d)](this[_0x1092db(0x1d7)]))[_0x1092db(0x2bb)](async _0x558699=>{const _0x41d179=_0x1092db,_0x1c59c1=_0x558699['getUnitId'](),_0x268859=await this['_startSheetCollabCursor'](_0x1c59c1);this[_0x41d179(0x2af)]['next'](_0x268859),this[_0x41d179(0x164)][_0x41d179(0x2f4)](_0x1c59c1,_0x268859);}),this[_0x1092db(0x3ac)][_0x1092db(0x2a4)](a['UniverInstanceType'][_0x1092db(0x38e)])['pipe'](S['takeUntil'](this[_0x1092db(0x1d7)]))[_0x1092db(0x1e2)](S[_0x1092db(0x3c8)](_0x24ae36=>!_0x24ae36[_0x1092db(0x296)]()[_0x1092db(0x2b6)]('__')))[_0x1092db(0x2bb)](async _0x6af78f=>{const _0x1cda41=_0x1092db,_0x152865=_0x6af78f['getUnitId'](),_0x432c39=await this[_0x1cda41(0x3b1)](_0x152865);this[_0x1cda41(0x2af)][_0x1cda41(0x1dd)](_0x432c39),this['_entities'][_0x1cda41(0x2f4)](_0x152865,_0x432c39);}),S[_0x1092db(0x381)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x1092db(0x38e)]),this['_univerInstanceService'][_0x1092db(0x397)](a['UniverInstanceType']['UNIVER_SHEET']))[_0x1092db(0x1e2)](S[_0x1092db(0x26d)](this[_0x1092db(0x1d7)]))[_0x1092db(0x2bb)](_0x27aa83=>{const _0x5e9401=_0x1092db,_0x26fe2a=_0x27aa83[_0x5e9401(0x296)](),_0x4f1e04=this[_0x5e9401(0x164)]['get'](_0x26fe2a);_0x4f1e04&&(_0x4f1e04[_0x5e9401(0x263)](),this[_0x5e9401(0x164)][_0x5e9401(0x1d3)](_0x26fe2a));});}async[_0x5803ac(0x396)](_0x5ab877){const _0x52b6e3=_0x5803ac,_0x2884d5=await this[_0x52b6e3(0x313)][_0x52b6e3(0x30e)](_0x5ab877),_0x1c9742=this[_0x52b6e3(0x37f)][_0x52b6e3(0x1fd)](me,_0x5ab877,_0x2884d5);return _0x1c9742['init'](),_0x1c9742;}async['_startDocCollabCursor'](_0x3e92c3){const _0x1d59e1=_0x5803ac,_0x32e57a=await this[_0x1d59e1(0x313)][_0x1d59e1(0x30e)](_0x3e92c3),_0x4b62f2=this[_0x1d59e1(0x37f)][_0x1d59e1(0x1fd)](ve,_0x3e92c3,_0x32e57a);return _0x4b62f2['init'](),_0x4b62f2;}};x=It([ne(0x0,a['IUniverInstanceService']),ne(0x1,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x358)])),ne(0x2,a[_0x5803ac(0x1ff)](u[_0x5803ac(0x1bb)]))],x);const V=0x14,Pe=0xc8,ie=0x4,gt=0x5;function pt(_0x5de8d7,_0x1f5218){const _0x482644=_0x5803ac;let {radius:_0x177375,width:_0x45b273,height:_0x44bff9}=_0x1f5218;_0x177375=_0x177375!=null?_0x177375:0x0,_0x45b273=_0x45b273!=null?_0x45b273:0x1e,_0x44bff9=_0x44bff9!=null?_0x44bff9:0x1e;let _0xa50b97=0x0,_0x2d3f1a=0x0,_0x59b7d4=0x0;_0xa50b97=_0x2d3f1a=_0x59b7d4=Math[_0x482644(0x2fa)](_0x177375,_0x45b273/0x2,_0x44bff9/0x2),_0x5de8d7[_0x482644(0x256)](),_0x5de8d7['moveTo'](_0xa50b97,0x0),_0x5de8d7['lineTo'](_0x45b273-_0x2d3f1a,0x0),_0x5de8d7[_0x482644(0x200)](_0x45b273-_0x2d3f1a,_0x2d3f1a,_0x2d3f1a,Math['PI']*0x3/0x2,0x0,!0x1),_0x5de8d7[_0x482644(0x282)](_0x45b273,_0x44bff9-_0x59b7d4),_0x5de8d7['arc'](_0x45b273-_0x59b7d4,_0x44bff9-_0x59b7d4,_0x59b7d4,0x0,Math['PI']/0x2,!0x1),_0x5de8d7[_0x482644(0x282)](0x0,_0x44bff9),_0x5de8d7[_0x482644(0x282)](0x0,_0xa50b97),_0x5de8d7[_0x482644(0x200)](_0xa50b97,_0xa50b97,_0xa50b97,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5de8d7[_0x482644(0x2a9)](),_0x1f5218['fill']&&(_0x5de8d7[_0x482644(0x20d)](),_0x5de8d7[_0x482644(0x1b2)]=_0x1f5218[_0x482644(0x293)],_0x1f5218[_0x482644(0x2c3)]==='evenodd'?_0x5de8d7['fill'](_0x482644(0x160)):_0x5de8d7[_0x482644(0x293)](),_0x5de8d7[_0x482644(0x27f)]());}class ee extends p[_0x5803ac(0x2a5)]{constructor(_0x1fba1b,_0x41de97){const _0x38123d=_0x5803ac;super(_0x1fba1b,_0x41de97),_(this,_0x38123d(0x1b6)),_(this,_0x38123d(0x199)),(this[_0x38123d(0x1b6)]=_0x41de97==null?void 0x0:_0x41de97['color'],this['text']=_0x41de97==null?void 0x0:_0x41de97[_0x38123d(0x199)]);}static[_0x5803ac(0x259)](_0x1d532f,_0x318151){const _0x31f5a6=_0x5803ac,{text:_0x3eaa07,color:_0x2e2eb9}=_0x318151;_0x1d532f['save'](),_0x1d532f[_0x31f5a6(0x3ba)]=_0x31f5a6(0x28d);const _0x5268a6=_0x1d532f['measureText'](_0x3eaa07)[_0x31f5a6(0x34b)],_0x53f016=Math[_0x31f5a6(0x2fa)](_0x5268a6+0x2*ie,Pe);pt(_0x1d532f,{'height':V,'radius':0x4,'width':_0x53f016,'fill':_0x2e2eb9,'evented':!0x1}),_0x1d532f[_0x31f5a6(0x1b2)]='#FFF';const _0x504ee3=ie,_0x3d9578=V-gt,_0x4b698=Pe-0x2*ie;if(_0x5268a6>_0x4b698){let _0x5c0e6f='',_0x3b9da7=0x0;for(const _0x54b43e of _0x3eaa07){const _0x4004bf=_0x1d532f[_0x31f5a6(0x17e)](_0x54b43e)[_0x31f5a6(0x34b)];if(_0x3b9da7+_0x4004bf<=_0x4b698-_0x1d532f['measureText'](_0x31f5a6(0x1e4))[_0x31f5a6(0x34b)])_0x5c0e6f+=_0x54b43e,_0x3b9da7+=_0x4004bf;else{_0x5c0e6f+='...';break;}}_0x1d532f[_0x31f5a6(0x389)](_0x5c0e6f,_0x504ee3,_0x3d9578);}else _0x1d532f['fillText'](_0x3eaa07,_0x504ee3,_0x3d9578);_0x1d532f[_0x31f5a6(0x27f)]();}['_draw'](_0x176e13){const _0x2b4d9a=_0x5803ac;ee[_0x2b4d9a(0x259)](_0x176e13,this);}}const re=_0x5803ac(0x1bc),Ct=_0x5803ac(0x1ae),bt=_0x5803ac(0x39b),H=0x6,Et=1.5,oe=0x4,Rt=1.5,Tt=_0x5803ac(0x39a);class Me{constructor(_0x2aef99,_0x31ad3a,_0x3ef8bc,_0x12d999){const _0x4d4ec3=_0x5803ac;_(this,'_shapes',[]),_(this,_0x4d4ec3(0x3be),null),_(this,_0x4d4ec3(0x2eb),null),_(this,_0x4d4ec3(0x20f),null),_(this,_0x4d4ec3(0x312),null),_(this,_0x4d4ec3(0x2b3),null),(this[_0x4d4ec3(0x292)]=_0x2aef99,this['_scene']=_0x31ad3a,this[_0x4d4ec3(0x16d)]=_0x3ef8bc,this[_0x4d4ec3(0x337)]=_0x12d999,this[_0x4d4ec3(0x321)]());}set[_0x5803ac(0x1a0)](_0x27773a){const _0x45577c=_0x5803ac;_0x27773a?(this[_0x45577c(0x20f)]&&this[_0x45577c(0x20f)][_0x45577c(0x328)](),this[_0x45577c(0x2eb)]&&this[_0x45577c(0x2eb)][_0x45577c(0x267)]()):(this['_anchorDot']&&this[_0x45577c(0x20f)][_0x45577c(0x267)](),this[_0x45577c(0x2eb)]&&this[_0x45577c(0x2eb)][_0x45577c(0x328)]());}['dispose'](){const _0x49d79f=_0x5803ac;for(const _0x8bcca8 of this['_shapes'])_0x8bcca8[_0x49d79f(0x263)]();this['_textBubble']&&this[_0x49d79f(0x2eb)]['dispose'](),this[_0x49d79f(0x20f)]&&this[_0x49d79f(0x20f)][_0x49d79f(0x263)](),this[_0x49d79f(0x3be)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x5803ac(0x321)](){const _0x1db90b=_0x5803ac;var _0x8db4f8;const {_docSkeleton:_0x202f98,_document:_0x431adb}=this,{color:_0x441658,name:_0x5bda2e,ranges:_0xb31b4}=this[_0x1db90b(0x292)],_0x1eb4c0=_0x431adb['getOffsetConfig'](),{docsLeft:_0x3286e3,docsTop:_0x4583a1}=_0x1eb4c0,_0x501d51=new b[(_0x1db90b(0x3c6))](_0x1eb4c0,_0x202f98);for(const {startOffset:_0x4c4008,endOffset:_0x1ef50e,rangeType:_0x81a885,segmentId:_0x1421c4,segmentPage:_0x4b0bb0,collapsed:_0x307167,isActive:_0x524aa6}of _0xb31b4){const _0x2c27bb=_0x202f98[_0x1db90b(0x1cf)](_0x4c4008,!0x0,_0x1421c4,_0x4b0bb0);let _0x46cf20=_0x202f98[_0x1db90b(0x1cf)](_0x1ef50e,!0x0,_0x1421c4,_0x4b0bb0);if(_0x46cf20==null&&(_0x46cf20=_0x202f98['findNodePositionByCharIndex'](_0x1ef50e-0x1,!0x1,_0x1421c4,_0x4b0bb0)),_0x524aa6){const {contentBoxPointGroup:_0x411b51}=_0x501d51[_0x1db90b(0x3c4)](_0x46cf20,_0x46cf20);if(_0x411b51[_0x1db90b(0x244)]===0x0)continue;this[_0x1db90b(0x23d)](_0x441658,_0x411b51,_0x3286e3,_0x4583a1,_0x5bda2e),this[_0x1db90b(0x2b3)]=this[_0x1db90b(0x172)]();}if(_0x2c27bb&&_0x46cf20){if(_0x81a885===a['DOC_RANGE_TYPE'][_0x1db90b(0x383)]){const _0x2dc9f7=new b[(_0x1db90b(0x208))](_0x1eb4c0,_0x202f98),{pointGroup:_0x5c8093}=(_0x8db4f8=_0x2dc9f7[_0x1db90b(0x3c4)](_0x2c27bb,_0x46cf20))!=null?_0x8db4f8:{};if(_0x5c8093==null||_0x5c8093[_0x1db90b(0x244)]===0x0)continue;this[_0x1db90b(0x2e9)](_0x441658,_0x5c8093,_0x3286e3,_0x4583a1);}else{if(!_0x307167){const {borderBoxPointGroup:_0x2b7f5b}=_0x501d51[_0x1db90b(0x3c4)](_0x2c27bb,_0x46cf20);if(_0x2b7f5b[_0x1db90b(0x244)]===0x0)continue;this[_0x1db90b(0x2bd)](_0x441658,_0x2b7f5b,_0x3286e3,_0x4583a1);}}}}}['_drawAnchor'](_0xea2f9b,_0x199c9c,_0x5c1c15,_0x4569ec,_0x67d3b7){const _0x59bdd9=_0x5803ac,_0xde2b1d=this[_0x59bdd9(0x20a)](_0x199c9c),{left:_0x3a6515,top:_0x3c55b5,height:_0x2bf1c9}=_0xde2b1d,_0x326d8f=this[_0x59bdd9(0x1d6)](),_0x13d5a3=Rt/_0x326d8f,_0x529f73=new p['Rect'](re+a['Tools'][_0x59bdd9(0x2d1)](H),{'left':_0x3a6515+_0x5c1c15-_0x13d5a3,'top':_0x3c55b5+_0x4569ec,'height':_0x2bf1c9,'width':Et,'fill':_0xea2f9b||p[_0x59bdd9(0x3a5)](a['COLORS'][_0x59bdd9(0x1c5)],0x0),'strokeWidth':_0x13d5a3,'stroke':Tt,'evented':!0x0});this[_0x59bdd9(0x3be)]=_0x529f73,this[_0x59bdd9(0x181)][_0x59bdd9(0x1d8)](_0x529f73,b[_0x59bdd9(0x231)]);const _0x3e964a=new p[(_0x59bdd9(0x1db))](re+a['Tools']['generateRandomId'](H),{'left':_0x3a6515+_0x5c1c15-_0x13d5a3,'top':_0x3c55b5+_0x4569ec-oe/0x2,'height':oe,'width':oe,'fill':_0xea2f9b||p['getColor'](a['COLORS'][_0x59bdd9(0x1c5)],0x0),'strokeWidth':0x0,'stroke':_0xea2f9b||p[_0x59bdd9(0x3a5)](a[_0x59bdd9(0x31a)]['black'],0x0),'evented':!0x1});this[_0x59bdd9(0x20f)]=_0x3e964a,this['_scene']['addObject'](_0x3e964a,b[_0x59bdd9(0x231)]);const _0x130439=new ee(re+a[_0x59bdd9(0x38c)][_0x59bdd9(0x2d1)](H),{'left':_0x3a6515+_0x5c1c15-_0x13d5a3,'top':_0x3c55b5+_0x4569ec-V,'text':_0x67d3b7,'color':_0xea2f9b});this[_0x59bdd9(0x2eb)]=_0x130439,this[_0x59bdd9(0x181)][_0x59bdd9(0x1d8)](_0x130439,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x5803ac(0x172)](){const _0x12e7ed=_0x5803ac,_0x497c5a=this['_anchor']['onPointerEnter$'][_0x12e7ed(0x297)](()=>{const _0x37bc95=_0x12e7ed;this[_0x37bc95(0x1a0)]=!0x0;}),_0x363012=this[_0x12e7ed(0x3be)]['onPointerLeave$'][_0x12e7ed(0x297)](()=>{const _0x3a428d=_0x12e7ed;this[_0x3a428d(0x312)]&&clearTimeout(this[_0x3a428d(0x312)]),this[_0x3a428d(0x312)]=setTimeout(()=>{const _0x376793=_0x3a428d;this[_0x376793(0x1a0)]=!0x1;},0x7d0);});return()=>{const _0x96b00e=_0x12e7ed;_0x497c5a[_0x96b00e(0x268)](),_0x363012[_0x96b00e(0x268)]();};}[_0x5803ac(0x2bd)](_0x4e93a3,_0x599817,_0x30ac72,_0x237025){const _0x544ea5=_0x5803ac,_0x595401=new a['ColorKit'](_0x4e93a3)[_0x544ea5(0x190)](0.2)[_0x544ea5(0x2f7)](),_0x4ceeb5=new p['RegularPolygon'](Ct+a[_0x544ea5(0x38c)][_0x544ea5(0x2d1)](H),{'pointsGroup':_0x599817,'fill':_0x595401||p[_0x544ea5(0x3a5)](a[_0x544ea5(0x31a)]['black'],0.2),'left':_0x30ac72,'top':_0x237025,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x544ea5(0x1f3)][_0x544ea5(0x215)](_0x4ceeb5),this[_0x544ea5(0x181)][_0x544ea5(0x1d8)](_0x4ceeb5,b[_0x544ea5(0x231)]);}[_0x5803ac(0x2e9)](_0x1d9f2d,_0x557fca,_0x2ace5b,_0x500d57){const _0x235048=_0x5803ac,_0x3149a0=new a[(_0x235048(0x1a7))](_0x1d9f2d)[_0x235048(0x190)](0.2)[_0x235048(0x2f7)](),_0x2157c4=new p[(_0x235048(0x1b8))](bt+a['Tools']['generateRandomId'](H),{'pointsGroup':_0x557fca,'fill':_0x3149a0||p[_0x235048(0x3a5)](a[_0x235048(0x31a)]['black'],0.2),'left':_0x2ace5b,'top':_0x500d57,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x235048(0x1f3)][_0x235048(0x215)](_0x2157c4),this[_0x235048(0x181)][_0x235048(0x1d8)](_0x2157c4,b['TEXT_RANGE_LAYER_INDEX']);}[_0x5803ac(0x20a)](_0x182ba6){const _0x1ec168=_0x182ba6[0x0],_0xa17988=_0x1ec168[0x0],_0x328c3e=_0x1ec168[0x2],{x:_0x2a4895,y:_0x248152}=_0xa17988,{x:_0x780785,y:_0x1d4381}=_0x328c3e;return{'left':_0x2a4895,'top':_0x248152,'width':_0x780785-_0x2a4895,'height':_0x1d4381-_0x248152};}[_0x5803ac(0x1d6)](){const _0x3a9bae=_0x5803ac,{scaleX:_0x40a2cd,scaleY:_0x1449b2}=this[_0x3a9bae(0x181)][_0x3a9bae(0x1ca)]();return Math[_0x3a9bae(0x33f)](_0x40a2cd,_0x1449b2);}}var Ot=Object[_0x5803ac(0x209)],Dt=Object[_0x5803ac(0x391)],Pt=(_0x11f395,_0x352446,_0x3727ef,_0x53c63d)=>{const _0x476780=_0x5803ac;for(var _0x82270e=_0x53c63d>0x1?void 0x0:_0x53c63d?Dt(_0x352446,_0x3727ef):_0x352446,_0x161c5e=_0x11f395[_0x476780(0x244)]-0x1,_0x47fe8c;_0x161c5e>=0x0;_0x161c5e--)(_0x47fe8c=_0x11f395[_0x161c5e])&&(_0x82270e=(_0x53c63d?_0x47fe8c(_0x352446,_0x3727ef,_0x82270e):_0x47fe8c(_0x82270e))||_0x82270e);return _0x53c63d&&_0x82270e&&Ot(_0x352446,_0x3727ef,_0x82270e),_0x82270e;},G=(_0x387d00,_0x42badd)=>(_0x67e0ae,_0x4ebd6b)=>_0x42badd(_0x67e0ae,_0x4ebd6b,_0x387d00);let Ie=class extends a[_0x5803ac(0x363)]{constructor(_0x1926d1,_0x4e551e,_0xa4254e,_0x5ecf72,_0x2e8eb2){const _0x2c0ea3=_0x5803ac;super(),_(this,'_cursorShapes',[]),_(this,_0x2c0ea3(0x17d),[]),(this[_0x2c0ea3(0x195)]=_0x1926d1,this[_0x2c0ea3(0x1d5)]=_0x4e551e,this[_0x2c0ea3(0x283)]=_0xa4254e,this[_0x2c0ea3(0x2e7)]=_0x5ecf72,this['_themeService']=_0x2e8eb2,this['_init']());}[_0x5803ac(0x1f4)](){const _0x1effe5=_0x5803ac,_0x3788ed=this[_0x1effe5(0x195)][_0x1effe5(0x2e5)],_0x33f317=this[_0x1effe5(0x1d5)];this[_0x1effe5(0x1ed)](S[_0x1effe5(0x196)]([this['_collabCursorController'][_0x1effe5(0x1e3)](_0x3788ed),this[_0x1effe5(0x24d)]['currentTheme$']])[_0x1effe5(0x1e2)]($[_0x1effe5(0x2b9)](([_0x58654a,_0x3f7222])=>({'skeleton':_0x33f317[_0x1effe5(0x3a4)](),'cursors':[..._0x58654a['values']()][_0x1effe5(0x2e4)](_0x581bad=>({..._0x581bad,'color':_0x3f7222[_0x581bad[_0x1effe5(0x1b6)]]}))})))['subscribe'](_0x2af60d=>{const _0x59f2dd=_0x1effe5;if(this[_0x59f2dd(0x2c7)](),_0x2af60d){const {skeleton:_0x1bf1d4,cursors:_0x4b180c}=_0x2af60d;this[_0x59f2dd(0x38b)](_0x1bf1d4,_0x4b180c);}})),this[_0x1effe5(0x2ef)](),this[_0x1effe5(0x24e)]();}['_updateCollabCursors'](_0x245938,_0x48a183){const _0x127dc1=_0x5803ac,{scene:_0xfd731e,mainComponent:_0x3e2f7c}=this[_0x127dc1(0x195)],_0x467aca=_0x48a183['map'](_0x726d8d=>new Me(_0x726d8d,_0xfd731e,_0x245938,_0x3e2f7c));this['_cursorShapes']=_0x467aca,this['_cursors']=_0x48a183;}[_0x5803ac(0x1c2)](){const _0x1b2d93=_0x5803ac;this[_0x1b2d93(0x2c7)]();const {scene:_0x1c0dd7,mainComponent:_0x5a307c}=this[_0x1b2d93(0x195)],_0x4dca46=this[_0x1b2d93(0x1d5)][_0x1b2d93(0x3a4)](),_0x506b86=this[_0x1b2d93(0x17d)][_0x1b2d93(0x2b9)](_0x3702e8=>new Me(_0x3702e8,_0x1c0dd7,_0x4dca46,_0x5a307c));this[_0x1b2d93(0x2d4)]=_0x506b86;}[_0x5803ac(0x2c7)](){const _0x355860=_0x5803ac;this['_cursorShapes'][_0x355860(0x191)](_0x104b71=>_0x104b71[_0x355860(0x263)]()),this['_cursorShapes']=[];}[_0x5803ac(0x24e)](){const _0x32c11e=_0x5803ac,_0x491831=[b[_0x32c11e(0x1aa)]['id']];this[_0x32c11e(0x1ed)](this['_commandService'][_0x32c11e(0x1d1)](_0x3df7d9=>{const _0x12d6ca=_0x32c11e;_0x491831[_0x12d6ca(0x2f0)](_0x3df7d9['id'])&&_0x3df7d9['params']['unitId']===this['_context'][_0x12d6ca(0x2e5)]&&this[_0x12d6ca(0x1c2)]();}));}[_0x5803ac(0x2ef)](){const _0x11ef0b=_0x5803ac;this['disposeWithMe'](a[_0x11ef0b(0x386)](this['_context'][_0x11ef0b(0x2e2)][_0x11ef0b(0x29f)])['pipe']($['filter'](_0x314ff2=>_0x314ff2[_0x11ef0b(0x323)]===p[_0x11ef0b(0x1a4)]['resize']),$['throttleTime'](0x10))['subscribe'](()=>{const _0x185baa=_0x11ef0b;this[_0x185baa(0x1c2)]();}));}};Ie=Pt([G(0x1,a[_0x5803ac(0x1ff)](X['DocSkeletonManagerService'])),G(0x2,a[_0x5803ac(0x1ff)](x)),G(0x3,a[_0x5803ac(0x3c1)]),G(0x4,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x29b)]))],Ie);const Mt=0x1,Ut=1.5;class xe extends p[_0x5803ac(0x2a5)]{constructor(_0x400256,_0x155351){const _0x1ab743=_0x5803ac;super(_0x400256,_0x155351),_(this,_0x1ab743(0x28b)),_(this,'_hovered',!0x1),_(this,_0x1ab743(0x1cb)),_(this,_0x1ab743(0x2c0),''),_(this,_0x1ab743(0x390),_0x1ab743(0x23b)),_(this,_0x1ab743(0x17a)),(_0x155351&&this[_0x1ab743(0x301)](_0x155351),this[_0x1ab743(0x2ec)][_0x1ab743(0x297)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x1ab743(0x297)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x5803ac(0x301)](_0x3732dc){const _0x150eed=_0x5803ac;var _0x562602,_0x4d09b9,_0xc02ad4,_0x5ad498,_0x573cc8,_0x417fca;this[_0x150eed(0x28b)]=(_0x562602=_0x3732dc['color'])!=null?_0x562602:this['_color'],this['_hovered']=(_0x4d09b9=_0x3732dc[_0x150eed(0x3a9)])!=null?_0x4d09b9:this['_hovered'],this[_0x150eed(0x1cb)]=(_0xc02ad4=_0x3732dc[_0x150eed(0x171)])!=null?_0xc02ad4:this[_0x150eed(0x1cb)],this[_0x150eed(0x2c0)]=(_0x5ad498=_0x3732dc[_0x150eed(0x30b)])!=null?_0x5ad498:this['_name'],this[_0x150eed(0x390)]=(_0x573cc8=_0x3732dc[_0x150eed(0x243)])!=null?_0x573cc8:this[_0x150eed(0x390)],this[_0x150eed(0x17a)]=(_0x417fca=_0x3732dc['backgroundColor'])!=null?_0x417fca:this[_0x150eed(0x17a)],this['transformByState']({'width':_0x3732dc[_0x150eed(0x34b)],'height':_0x3732dc[_0x150eed(0x165)]});}[_0x5803ac(0x21f)](_0x4a673e){const _0x19083d=_0x5803ac,{row:_0x4f47d4,column:_0x9a9a66}=_0x4a673e;if(_0x4f47d4>=this['_range'][_0x19083d(0x330)]&&_0x4f47d4<=this['_range'][_0x19083d(0x228)]&&_0x9a9a66>=this[_0x19083d(0x1cb)]['startColumn']&&_0x9a9a66<=this[_0x19083d(0x1cb)][_0x19083d(0x33c)]){this[_0x19083d(0x301)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5803ac(0x194)](_0x2a1ffa){return!0x1;}[_0x5803ac(0x24f)](_0x29f272){const _0x480902=_0x5803ac;p[_0x480902(0x1db)][_0x480902(0x259)](_0x29f272,{'width':this['width'],'height':this['height'],'strokeWidth':Ut,'stroke':this[_0x480902(0x28b)],'evented':!0x1,'fill':this[_0x480902(0x17a)]}),this[_0x480902(0x3ab)]&&(_0x29f272[_0x480902(0x20d)](),_0x29f272[_0x480902(0x260)](0x1,0x0,0x0,0x1,this[_0x480902(0x34b)],this[_0x480902(0x390)]===_0x480902(0x32a)?0x0:-V),ee[_0x480902(0x259)](_0x29f272,{'text':this[_0x480902(0x2c0)],'color':this['_color']}),_0x29f272[_0x480902(0x27f)]());}}var Nt=Object[_0x5803ac(0x209)],wt=Object[_0x5803ac(0x391)],Lt=(_0x3d095d,_0xefa7e7,_0x35fe6d,_0x40bcd3)=>{for(var _0x29aa6e=_0x40bcd3>0x1?void 0x0:_0x40bcd3?wt(_0xefa7e7,_0x35fe6d):_0xefa7e7,_0x1dad7c=_0x3d095d['length']-0x1,_0x48dbb3;_0x1dad7c>=0x0;_0x1dad7c--)(_0x48dbb3=_0x3d095d[_0x1dad7c])&&(_0x29aa6e=(_0x40bcd3?_0x48dbb3(_0xefa7e7,_0x35fe6d,_0x29aa6e):_0x48dbb3(_0x29aa6e))||_0x29aa6e);return _0x40bcd3&&_0x29aa6e&&Nt(_0xefa7e7,_0x35fe6d,_0x29aa6e),_0x29aa6e;},ae=(_0x33244d,_0x586602)=>(_0x2fdd4b,_0x2abfb6)=>_0x586602(_0x2fdd4b,_0x2abfb6,_0x33244d);const At=0x1389;let ge=class extends a[_0x5803ac(0x363)]{constructor(_0x543d93,_0x575603,_0x51a484,_0x162082){const _0x45a022=_0x5803ac;super(),_(this,_0x45a022(0x17d),new Set()),_(this,_0x45a022(0x3ce),null),(this[_0x45a022(0x195)]=_0x543d93,this[_0x45a022(0x218)]=_0x575603,this[_0x45a022(0x283)]=_0x51a484,this[_0x45a022(0x24d)]=_0x162082,this[_0x45a022(0x1f4)]());}[_0x5803ac(0x1f4)](){const _0x7e3f86=_0x5803ac;this[_0x7e3f86(0x218)][_0x7e3f86(0x3bc)][_0x7e3f86(0x1e2)]($['takeUntil'](this[_0x7e3f86(0x1d7)]),$[_0x7e3f86(0x1a8)](_0x478c91=>{const _0x57158c=_0x7e3f86;if(_0x478c91){const _0x19409a=_0x478c91['sheetId'];return S[_0x57158c(0x196)](this[_0x57158c(0x283)]['getCollabCursors$'](this['_context']['unitId']),this[_0x57158c(0x24d)][_0x57158c(0x2cb)])[_0x57158c(0x1e2)]($[_0x57158c(0x2b9)](([_0x59aa6c,_0x4c85f8])=>{const _0x2a9782=_0x57158c,_0x24ffd0=new Map();return _0x59aa6c[_0x2a9782(0x191)]((_0x10eb99,_0x56f25f)=>{const _0x590eaf=_0x2a9782;if(_0x10eb99[_0x590eaf(0x327)]===_0x19409a){const _0x3be935={..._0x10eb99};_0x3be935[_0x590eaf(0x1b6)]=_0x4c85f8[_0x10eb99[_0x590eaf(0x1b6)]],_0x24ffd0['set'](_0x56f25f,_0x3be935);}}),{'skeleton':_0x478c91,'cursors':_0x24ffd0};}));}return S['of']({'skeleton':null,'cursors':new Map()});}))[_0x7e3f86(0x2bb)](({skeleton:_0x3c835b,cursors:_0x3a2fb2})=>{const _0x323607=_0x7e3f86;this[_0x323607(0x2c7)](),_0x3c835b&&this[_0x323607(0x38b)](_0x3c835b,_0x3a2fb2);}),this['_sheetSkeletonManagerService'][_0x7e3f86(0x3bc)]['subscribe'](_0xb900ff=>{const _0x484d2d=_0x7e3f86;if(_0xb900ff==null)return;const {skeleton:_0x4a1a41}=_0xb900ff,{scene:_0x328e0f}=this['_context'];_0x328e0f[_0x484d2d(0x1e1)][_0x484d2d(0x297)](a['debounce'](_0x2db701=>{const _0x25d81b=_0x484d2d;var _0x1a4e89,_0x25af03;const {offsetX:_0x260592,offsetY:_0xa324eb}=_0x2db701,{x:_0x11f59d,y:_0x3a4443}=_0x328e0f['getRelativeToViewportCoord'](p[_0x25d81b(0x23a)]['FromArray']([_0x260592,_0xa324eb])),{scaleX:_0x31ff11,scaleY:_0x48aebb}=_0x328e0f[_0x25d81b(0x1ca)](),_0x4f1097=_0x328e0f[_0x25d81b(0x331)](p[_0x25d81b(0x223)]['VIEW_MAIN']),_0x686381=_0x328e0f['getVpScrollXYInfoByPosToVp'](p[_0x25d81b(0x23a)][_0x25d81b(0x2fc)]([_0x11f59d,_0x3a4443]),_0x4f1097),_0x21ee74=_0x4a1a41['getCellPositionByOffset'](_0x260592,_0xa324eb,_0x31ff11,_0x48aebb,_0x686381);((_0x1a4e89=this[_0x25d81b(0x3ce)])==null?void 0x0:_0x1a4e89[_0x25d81b(0x211)])===_0x21ee74['column']&&((_0x25af03=this[_0x25d81b(0x3ce)])==null?void 0x0:_0x25af03[_0x25d81b(0x1fe)])===_0x21ee74[_0x25d81b(0x1fe)]||this['_cursors']['forEach'](_0x11de69=>{_0x11de69['onMouseMove'](_0x21ee74);});},0x64));});}[_0x5803ac(0x38b)](_0x1caea1,_0x2265e0){const _0x458a55=_0x5803ac;var _0x417dfd;const _0x5caf5c=(_0x417dfd=this[_0x458a55(0x218)]['getCurrent']())==null?void 0x0:_0x417dfd[_0x458a55(0x318)];if(!_0x5caf5c)return;const _0x42f25d=this[_0x458a55(0x273)]();if(!_0x42f25d)return;this['_cursors'][_0x458a55(0x191)](_0x221c44=>{const _0x272623=_0x458a55;_0x221c44[_0x272623(0x3cd)]();});const {scene:_0x3be12b}=_0x42f25d,_0x26cb70=yt(Array[_0x458a55(0x356)](_0x2265e0[_0x458a55(0x1f2)]()))[_0x458a55(0x2b9)](_0x276356=>{const _0xa483fd=_0x458a55,{color:_0x553e74,range:_0x1ba0ee,name:_0x126923,selection:_0x3e2849,sheetID:_0x5fb9c}=_0x276356,{startColumn:_0x4f8112,startRow:_0x1ec096,endColumn:_0x27f0de,endRow:_0xa176d3}=_0x1ba0ee,_0x4d917c=q[_0xa483fd(0x1c4)](_0x1ec096,_0x4f8112,_0x3be12b,_0x5caf5c),_0x4c4391=q[_0xa483fd(0x1c4)](_0xa176d3,_0x27f0de,_0x3be12b,_0x5caf5c),{columnHeaderHeightAndMarginTop:_0x50ac54}=_0x5caf5c,{startX:_0x41300e,startY:_0x2a1703}=_0x4d917c,{endX:_0x5a8efc,endY:_0x57a1fb}=_0x4c4391,_0x49758b=_0x5a8efc-_0x41300e,_0xbbacc4=_0x57a1fb-_0x2a1703,_0x34a0be={'labelPosition':_0x2a1703-_0x50ac54>=V?_0xa483fd(0x23b):_0xa483fd(0x32a),'sheetID':_0x5fb9c,'range':_0x1ba0ee,'color':_0x553e74,'name':_0x126923,'selection':_0x3e2849,'left':_0x41300e,'top':_0x2a1703,'width':_0x49758b,'height':_0xbbacc4,'evented':!0x1,'zIndex':At};return new xe(_0x126923,_0x34a0be);});_0x3be12b[_0x458a55(0x28e)](_0x26cb70,Mt),this['_cursors']=new Set(_0x26cb70);}[_0x5803ac(0x2c7)](){const _0x1b69ef=_0x5803ac;var _0x26d1d4;(_0x26d1d4=this[_0x1b69ef(0x17d)])==null||_0x26d1d4[_0x1b69ef(0x191)](_0x412dfe=>_0x412dfe[_0x1b69ef(0x263)]());}[_0x5803ac(0x273)](){const _0x4e4b1a=_0x5803ac;return q[_0x4e4b1a(0x222)](this[_0x4e4b1a(0x195)][_0x4e4b1a(0x1ce)],this[_0x4e4b1a(0x195)]);}};ge=Lt([ae(0x1,a[_0x5803ac(0x1ff)](q['SheetSkeletonManagerService'])),ae(0x2,a[_0x5803ac(0x1ff)](x)),ae(0x3,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x29b)]))],ge);function yt(_0x48eaad){const _0x2d2718=new Map();return _0x48eaad['forEach'](_0x2a7f60=>{const _0x558a10=_0x2da3;if(_0x2d2718['has'](_0x2a7f60[_0x558a10(0x34f)])){const _0x2084d7=_0x2d2718[_0x558a10(0x393)](_0x2a7f60[_0x558a10(0x34f)]);_0x2084d7[_0x558a10(0x30b)]+=',\x20'+_0x2a7f60[_0x558a10(0x30b)];}else _0x2d2718[_0x558a10(0x2f4)](_0x2a7f60['selection'],_0x2a7f60);}),Array['from'](_0x2d2718['values']());}var ce={'exports':{}},W={},Ue;function $t(){const _0x3fc5ef=_0x5803ac;if(Ue)return W;Ue=0x1;var _0x21c10d=O,_0x4a516b=Symbol['for'](_0x3fc5ef(0x241)),_0xbc7296=Symbol[_0x3fc5ef(0x3bf)](_0x3fc5ef(0x197)),_0x45f083=Object[_0x3fc5ef(0x314)][_0x3fc5ef(0x2c9)],_0x6a4e57=_0x21c10d[_0x3fc5ef(0x3b0)]['ReactCurrentOwner'],_0x4c799c={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x4018aa(_0x190cd1,_0x156c97,_0x5b8a07){const _0x43e89d=_0x3fc5ef;var _0x4e4ee3,_0x73b905={},_0x1efe39=null,_0x30a24a=null;_0x5b8a07!==void 0x0&&(_0x1efe39=''+_0x5b8a07),_0x156c97['key']!==void 0x0&&(_0x1efe39=''+_0x156c97[_0x43e89d(0x17b)]),_0x156c97[_0x43e89d(0x26a)]!==void 0x0&&(_0x30a24a=_0x156c97['ref']);for(_0x4e4ee3 in _0x156c97)_0x45f083[_0x43e89d(0x2fb)](_0x156c97,_0x4e4ee3)&&!_0x4c799c[_0x43e89d(0x2c9)](_0x4e4ee3)&&(_0x73b905[_0x4e4ee3]=_0x156c97[_0x4e4ee3]);if(_0x190cd1&&_0x190cd1[_0x43e89d(0x2b0)]){for(_0x4e4ee3 in(_0x156c97=_0x190cd1['defaultProps'],_0x156c97))_0x73b905[_0x4e4ee3]===void 0x0&&(_0x73b905[_0x4e4ee3]=_0x156c97[_0x4e4ee3]);}return{'$$typeof':_0x4a516b,'type':_0x190cd1,'key':_0x1efe39,'ref':_0x30a24a,'props':_0x73b905,'_owner':_0x6a4e57['current']};}return W[_0x3fc5ef(0x303)]=_0xbc7296,W[_0x3fc5ef(0x1c3)]=_0x4018aa,W[_0x3fc5ef(0x3b2)]=_0x4018aa,W;}var Ne;function xt(){const _0x37360a=_0x5803ac;return Ne||(Ne=0x1,ce[_0x37360a(0x2d6)]=$t()),ce[_0x37360a(0x2d6)];}var N=xt(),E=function(){const _0x417ad2=_0x5803ac;return E=Object[_0x417ad2(0x27a)]||function(_0xf98db3){const _0x2f29ae=_0x417ad2;for(var _0x31bcc3,_0x22f482=0x1,_0x269a30=arguments[_0x2f29ae(0x244)];_0x22f482<_0x269a30;_0x22f482++){_0x31bcc3=arguments[_0x22f482];for(var _0x49ec34 in _0x31bcc3)Object[_0x2f29ae(0x314)][_0x2f29ae(0x2c9)][_0x2f29ae(0x2fb)](_0x31bcc3,_0x49ec34)&&(_0xf98db3[_0x49ec34]=_0x31bcc3[_0x49ec34]);}return _0xf98db3;},E[_0x417ad2(0x2e1)](this,arguments);},jt=function(_0x3bc1fc,_0x508b48){const _0x174b6f=_0x5803ac;var _0x267abb={};for(var _0x145ba7 in _0x3bc1fc)Object[_0x174b6f(0x314)][_0x174b6f(0x2c9)][_0x174b6f(0x2fb)](_0x3bc1fc,_0x145ba7)&&_0x508b48[_0x174b6f(0x257)](_0x145ba7)<0x0&&(_0x267abb[_0x145ba7]=_0x3bc1fc[_0x145ba7]);if(_0x3bc1fc!=null&&typeof Object[_0x174b6f(0x317)]==_0x174b6f(0x2ea)){for(var _0x36e8f6=0x0,_0x145ba7=Object[_0x174b6f(0x317)](_0x3bc1fc);_0x36e8f6<_0x145ba7[_0x174b6f(0x244)];_0x36e8f6++)_0x508b48['indexOf'](_0x145ba7[_0x36e8f6])<0x0&&Object[_0x174b6f(0x314)]['propertyIsEnumerable'][_0x174b6f(0x2fb)](_0x3bc1fc,_0x145ba7[_0x36e8f6])&&(_0x267abb[_0x145ba7[_0x36e8f6]]=_0x3bc1fc[_0x145ba7[_0x36e8f6]]);}return _0x267abb;},Ee=O[_0x5803ac(0x37b)](function(_0x2a92df,_0x47fe24){const _0x27d08f=_0x5803ac;var _0x26dcd6=_0x2a92df[_0x27d08f(0x236)],_0x1991e6=_0x2a92df['id'],_0x3f449f=_0x2a92df[_0x27d08f(0x265)],_0x14b81f=_0x2a92df['extend'],_0x3f7f45=jt(_0x2a92df,['icon','id',_0x27d08f(0x265),'extend']),_0x221d49='univerjs-icon\x20univerjs-icon-'[_0x27d08f(0x163)](_0x1991e6,'\x20')['concat'](_0x3f449f||'')[_0x27d08f(0x2dc)](),_0x1064f4=O['useRef']('_'['concat'](Wt()));return je(_0x26dcd6,''[_0x27d08f(0x163)](_0x1991e6),{'defIds':_0x26dcd6['defIds'],'idSuffix':_0x1064f4[_0x27d08f(0x20e)]},E({'ref':_0x47fe24,'className':_0x221d49},_0x3f7f45),_0x14b81f);});function je(_0x3ab62d,_0x474bd5,_0x5525de,_0x4b706d,_0x11d0ff){const _0xfafa65=_0x5803ac;return O['createElement'](_0x3ab62d[_0xfafa65(0x1c6)],E(E({'key':_0x474bd5},Bt(_0x3ab62d,_0x5525de,_0x11d0ff)),_0x4b706d),(Ht(_0x3ab62d,_0x5525de)[_0xfafa65(0x1d2)]||[])['map'](function(_0x2f8611,_0x5aa1e4){const _0x4d0aba=_0xfafa65;return je(_0x2f8611,''['concat'](_0x474bd5,'-')[_0x4d0aba(0x163)](_0x3ab62d[_0x4d0aba(0x1c6)],'-')[_0x4d0aba(0x163)](_0x5aa1e4),_0x5525de,void 0x0,_0x11d0ff);}));}function Bt(_0x552363,_0x1f3c65,_0x577de7){const _0x13e77d=_0x5803ac;var _0x49f978=E({},_0x552363[_0x13e77d(0x274)]);_0x577de7!=null&&_0x577de7['colorChannel1']&&_0x49f978['fill']===_0x13e77d(0x248)&&(_0x49f978[_0x13e77d(0x293)]=_0x577de7[_0x13e77d(0x248)]);var _0x316c5a=_0x1f3c65['defIds'];return!_0x316c5a||_0x316c5a[_0x13e77d(0x244)]===0x0||(_0x552363[_0x13e77d(0x1c6)]===_0x13e77d(0x2c4)&&_0x49f978[_0x13e77d(0x242)]&&(_0x49f978[_0x13e77d(0x242)]=_0x49f978[_0x13e77d(0x242)]+_0x1f3c65['idSuffix']),Object[_0x13e77d(0x1ee)](_0x49f978)[_0x13e77d(0x191)](function(_0x3a0cdf){const _0x5bceeb=_0x13e77d;var _0x6ce3ad=_0x3a0cdf[0x0],_0x80b2ed=_0x3a0cdf[0x1];typeof _0x80b2ed==_0x5bceeb(0x1cd)&&(_0x49f978[_0x6ce3ad]=_0x80b2ed[_0x5bceeb(0x2bf)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x1f3c65[_0x5bceeb(0x3aa)],')')));})),_0x49f978;}function Ht(_0x5bbb7e,_0x2f0af5){const _0x5f028d=_0x5803ac;var _0xcd9175,_0x114a5f=_0x2f0af5[_0x5f028d(0x266)];return!_0x114a5f||_0x114a5f[_0x5f028d(0x244)]===0x0?_0x5bbb7e:_0x5bbb7e[_0x5f028d(0x1c6)]===_0x5f028d(0x29e)&&(!((_0xcd9175=_0x5bbb7e['children'])===null||_0xcd9175===void 0x0)&&_0xcd9175[_0x5f028d(0x244)])?E(E({},_0x5bbb7e),{'children':_0x5bbb7e[_0x5f028d(0x1d2)][_0x5f028d(0x2b9)](function(_0x413497){const _0x30fdcb=_0x5f028d;return typeof _0x413497[_0x30fdcb(0x274)]['id']==_0x30fdcb(0x1cd)&&_0x114a5f&&_0x114a5f[_0x30fdcb(0x257)](_0x413497['attrs']['id'])>-0x1?E(E({},_0x413497),{'attrs':E(E({},_0x413497[_0x30fdcb(0x274)]),{'id':_0x413497[_0x30fdcb(0x274)]['id']+_0x2f0af5[_0x30fdcb(0x3aa)]})}):_0x413497;})}):_0x5bbb7e;}function Wt(){const _0x5d0ce9=_0x5803ac;return Math[_0x5d0ce9(0x308)]()['toString'](0x24)[_0x5d0ce9(0x1ea)](0x2,0x8);}Ee[_0x5803ac(0x25e)]='UniverIcon';var Ft={'tag':'svg','attrs':{'fill':_0x5803ac(0x18e),'viewBox':'0\x200\x2016\x2016','width':_0x5803ac(0x290),'height':_0x5803ac(0x290)},'children':[{'tag':'g','attrs':{'clipPath':_0x5803ac(0x395)},'children':[{'tag':_0x5803ac(0x23e),'attrs':{'stroke':_0x5803ac(0x2a7),'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':_0x5803ac(0x2db),'strokeLinejoin':_0x5803ac(0x2db),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5803ac(0x307)},'children':[{'tag':_0x5803ac(0x23e),'attrs':{'fill':_0x5803ac(0x2f8),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5803ac(0x307)]},Be=O['forwardRef'](function(_0x10b7df,_0x35bf4b){const _0x404a05=_0x5803ac;return O['createElement'](Ee,Object[_0x404a05(0x27a)]({},_0x10b7df,{'id':_0x404a05(0x25d),'ref':_0x35bf4b,'icon':Ft}));});function _0x2da3(_0x524d83,_0x2416aa){const _0x5547c6=_0x5547();return _0x2da3=function(_0x2da3fd,_0x22ddb3){_0x2da3fd=_0x2da3fd-0x15b;let _0x2adb69=_0x5547c6[_0x2da3fd];return _0x2adb69;},_0x2da3(_0x524d83,_0x2416aa);}Be[_0x5803ac(0x25e)]=_0x5803ac(0x2e0);var Yt={'tag':_0x5803ac(0x32f),'attrs':{'fill':_0x5803ac(0x18e),'viewBox':_0x5803ac(0x1f0),'width':_0x5803ac(0x290),'height':_0x5803ac(0x290)},'children':[{'tag':'g','attrs':{'clipPath':_0x5803ac(0x1de)},'children':[{'tag':_0x5803ac(0x23e),'attrs':{'stroke':_0x5803ac(0x2a7),'d':_0x5803ac(0x2c5),'strokeLinecap':_0x5803ac(0x2db),'strokeLinejoin':_0x5803ac(0x2db),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5803ac(0x334),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x5803ac(0x23e),'attrs':{'fill':_0x5803ac(0x2f8),'d':_0x5803ac(0x315),'transform':_0x5803ac(0x33d)}}]}]}],'defIds':[_0x5803ac(0x2f5)]},He=O[_0x5803ac(0x37b)](function(_0x2a7208,_0x2746cf){const _0x414593=_0x5803ac;return O[_0x414593(0x1b3)](Ee,Object[_0x414593(0x27a)]({},_0x2a7208,{'id':'on-line-single','ref':_0x2746cf,'icon':Yt}));});He[_0x5803ac(0x25e)]=_0x5803ac(0x3a3);function We(_0x2f6cb9){const _0x5cd16e=_0x5803ac;var _0x46a768,_0x2798e4,_0x4408f0='';if(typeof _0x2f6cb9=='string'||typeof _0x2f6cb9=='number')_0x4408f0+=_0x2f6cb9;else{if(typeof _0x2f6cb9==_0x5cd16e(0x302)){if(Array[_0x5cd16e(0x214)](_0x2f6cb9)){var _0x280193=_0x2f6cb9[_0x5cd16e(0x244)];for(_0x46a768=0x0;_0x46a768<_0x280193;_0x46a768++)_0x2f6cb9[_0x46a768]&&(_0x2798e4=We(_0x2f6cb9[_0x46a768]))&&(_0x4408f0&&(_0x4408f0+='\x20'),_0x4408f0+=_0x2798e4);}else{for(_0x2798e4 in _0x2f6cb9)_0x2f6cb9[_0x2798e4]&&(_0x4408f0&&(_0x4408f0+='\x20'),_0x4408f0+=_0x2798e4);}}}return _0x4408f0;}function Xt(){const _0x23c3b0=_0x5803ac;for(var _0x52933d,_0xe2732,_0xbe262=0x0,_0xd55764='',_0xc728b9=arguments[_0x23c3b0(0x244)];_0xbe262<_0xc728b9;_0xbe262++)(_0x52933d=arguments[_0xbe262])&&(_0xe2732=We(_0x52933d))&&(_0xd55764&&(_0xd55764+='\x20'),_0xd55764+=_0xe2732);return _0xd55764;}const Vt=_0x5803ac(0x382),Gt=_0x5803ac(0x26e),kt=_0x5803ac(0x341),qt=_0x5803ac(0x27b),Kt=_0x5803ac(0x2f9),F={'onlineStatusIcon':Vt,'onlineStatusTitle':Gt,'onlineStatus':kt,'online':qt,'offline':Kt};function zt(_0x109b98){const _0x29ff6c=_0x5803ac;switch(_0x109b98){case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x28c)]:return'collabStatus.offline';case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x202)]:return _0x29ff6c(0x3bb);case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x220)]:return _0x29ff6c(0x2ac);case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x351)]:return _0x29ff6c(0x2da);case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x319)]:case u['CollaborationStatus'][_0x29ff6c(0x35f)]:return'collabStatus.syncing';case u[_0x29ff6c(0x1ab)]['SYNCED']:case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x1f9)]:return'collabStatus.synced';}}function Fe(_0x4a0983){const _0x3fd4d3=_0x5803ac,{status$:_0xf687e3}=_0x4a0983,_0x151076=w['useObservable'](_0xf687e3,u['CollaborationStatus'][_0x3fd4d3(0x351)]),_0x4f1b21=a[_0x3fd4d3(0x174)](a[_0x3fd4d3(0x3c5)]),_0x19d5a1=a[_0x3fd4d3(0x174)](u['CollaborationSessionService']),_0x1fd9c8=_0x151076!==u[_0x3fd4d3(0x1ab)][_0x3fd4d3(0x28c)],_0x2f8ac9=_0x4f1b21['t'](zt(_0x151076)),_0x284efe=Xt(F[_0x3fd4d3(0x216)],{[F[_0x3fd4d3(0x1d0)]]:_0x1fd9c8,[F['offline']]:!_0x1fd9c8}),_0x5dda46=_0x1fd9c8?N[_0x3fd4d3(0x1c3)](He,{}):N[_0x3fd4d3(0x1c3)](Be,{}),_0x419db9=O[_0x3fd4d3(0x2a3)](()=>{const _0x1b7816=_0x3fd4d3;_0x1fd9c8||_0x19d5a1[_0x1b7816(0x275)]();},[_0x1fd9c8,_0x19d5a1]);function _0x4cc2ab(){const _0xa78b44=_0x3fd4d3;return N['jsxs'](_0xa78b44(0x32e),{'className':_0x284efe,'onClick':_0x419db9,'children':[N[_0xa78b44(0x1c3)](_0xa78b44(0x32e),{'className':F[_0xa78b44(0x1ac)],'children':_0x5dda46}),N[_0xa78b44(0x1c3)](_0xa78b44(0x32e),{'className':F['onlineStatusTitle'],'children':_0x2f8ac9})]});}return _0x1fd9c8?_0x4cc2ab():N[_0x3fd4d3(0x1c3)](M[_0x3fd4d3(0x2d3)],{'title':_0x4f1b21['t']('collab-client.tooltip.reconnect'),'children':_0x4cc2ab()});}var Jt=Object[_0x5803ac(0x209)],Zt=Object[_0x5803ac(0x391)],Qt=(_0x3abfec,_0x11bff5,_0x12be30,_0x54272c)=>{const _0x5b5927=_0x5803ac;for(var _0x4c17a3=_0x54272c>0x1?void 0x0:_0x54272c?Zt(_0x11bff5,_0x12be30):_0x11bff5,_0x4a37b5=_0x3abfec[_0x5b5927(0x244)]-0x1,_0x510932;_0x4a37b5>=0x0;_0x4a37b5--)(_0x510932=_0x3abfec[_0x4a37b5])&&(_0x4c17a3=(_0x54272c?_0x510932(_0x11bff5,_0x12be30,_0x4c17a3):_0x510932(_0x4c17a3))||_0x4c17a3);return _0x54272c&&_0x4c17a3&&Jt(_0x11bff5,_0x12be30,_0x4c17a3),_0x4c17a3;},k=(_0x165585,_0x40451b)=>(_0x5c0adc,_0x50824c)=>_0x40451b(_0x5c0adc,_0x50824c,_0x165585);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x5481fb,_0x555c99,_0x2c244a,_0x33f4a1){const _0x26f460=_0x5803ac;super(),_(this,_0x26f460(0x377),new S[(_0x26f460(0x3ad))](u[_0x26f460(0x1ab)]['NOT_COLLAB'])),(this[_0x26f460(0x3ac)]=_0x5481fb,this[_0x26f460(0x37f)]=_0x555c99,this['_collaborationController']=_0x2c244a,this[_0x26f460(0x224)]=_0x33f4a1,this[_0x26f460(0x225)](),this[_0x26f460(0x311)]());}['_initStatusListener'](){const _0xb243d3=_0x5803ac;this[_0xb243d3(0x1ed)](this['_univerInstanceService'][_0xb243d3(0x16e)][_0xb243d3(0x1e2)](S['switchMap'](()=>{const _0xe6b8b1=_0xb243d3,_0x48d7be=this[_0xe6b8b1(0x3ac)][_0xe6b8b1(0x1a1)]();return _0x48d7be?this[_0xe6b8b1(0x261)][_0xe6b8b1(0x25b)](_0x48d7be[_0xe6b8b1(0x296)]()):S['of'](null);}),S[_0xb243d3(0x1a8)](_0x358c32=>_0x358c32?_0x358c32[_0xb243d3(0x38f)]:S['of'](u[_0xb243d3(0x1ab)][_0xb243d3(0x351)])))[_0xb243d3(0x2bb)](_0x2e75d2=>{const _0x244ae2=_0xb243d3;this['_status$'][_0x244ae2(0x1dd)](_0x2e75d2);}));}['_initStatusComponent'](){const _0x1f6fca=_0x5803ac;this[_0x1f6fca(0x1ed)](this[_0x1f6fca(0x224)][_0x1f6fca(0x17c)](w[_0x1f6fca(0x176)][_0x1f6fca(0x1dc)],()=>a['connectInjector'](es({'status$':this[_0x1f6fca(0x377)][_0x1f6fca(0x2cd)]()}),this[_0x1f6fca(0x37f)])));}},exports[_0x5803ac(0x247)]=Qt([k(0x0,a['IUniverInstanceService']),k(0x1,a['Inject'](a[_0x5803ac(0x358)])),k(0x2,a['Inject'](u[_0x5803ac(0x182)])),k(0x3,w['IUIPartsService'])],exports[_0x5803ac(0x247)]);function es(_0x44560e){const {status$:_0x29906d}=_0x44560e;return function(){const _0x2eed26=_0x2da3;return N[_0x2eed26(0x1c3)](Fe,{'status$':_0x29906d});};}var ts=Object['defineProperty'],ss=Object['getOwnPropertyDescriptor'],ns=(_0x591eba,_0x35510e,_0x278f59,_0x2a33f3)=>{for(var _0x43eb77=_0x2a33f3>0x1?void 0x0:_0x2a33f3?ss(_0x35510e,_0x278f59):_0x35510e,_0x1169ce=_0x591eba['length']-0x1,_0x15f2bc;_0x1169ce>=0x0;_0x1169ce--)(_0x15f2bc=_0x591eba[_0x1169ce])&&(_0x43eb77=(_0x2a33f3?_0x15f2bc(_0x35510e,_0x278f59,_0x43eb77):_0x15f2bc(_0x43eb77))||_0x43eb77);return _0x2a33f3&&_0x43eb77&&ts(_0x35510e,_0x278f59,_0x43eb77),_0x43eb77;},y=(_0x231258,_0x4e3b15)=>(_0x155a96,_0x50ddd2)=>_0x4e3b15(_0x155a96,_0x50ddd2,_0x231258);let K=class extends a['Disposable']{constructor(_0x5c9fa7,_0x19a2e1,_0xeb23b5,_0x41fefa,_0x5a5d5b,_0xeaf127){const _0x36f536=_0x5803ac;super(),this['_beforeCloseService']=_0x5c9fa7,this['_localCacheService']=_0x19a2e1,this[_0x36f536(0x35d)]=_0xeb23b5,this[_0x36f536(0x372)]=_0x41fefa,this[_0x36f536(0x204)]=_0x5a5d5b,this[_0x36f536(0x2df)]=_0xeaf127,this[_0x36f536(0x15b)](),this['_initEvent']();}[_0x5803ac(0x15b)](){const _0x30a5b0=_0x5803ac;this[_0x30a5b0(0x1ed)](this[_0x30a5b0(0x365)][_0x30a5b0(0x37c)](()=>{const _0xac7256=_0x30a5b0;if(this[_0xac7256(0x15f)][_0xac7256(0x31d)][_0xac7256(0x3b9)])return this[_0xac7256(0x2df)]['t'](_0xac7256(0x1df));}));}[_0x5803ac(0x1c8)](){const _0x5a5dca=_0x5803ac;this[_0x5a5dca(0x1ed)](this[_0x5a5dca(0x35d)]['event$'][_0x5a5dca(0x2bb)](_0x524e05=>{const _0x4cd776=_0x5a5dca;_0x524e05['id']===u[_0x4cd776(0x2c2)]['OTHER_CLIENT_EDITING']&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M[_0x4cd776(0x175)]['Warning'],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x524e05['id']===u['CollaborationUIEventId'][_0x4cd776(0x21a)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M[_0x4cd776(0x175)]['Warning'],'content':this['_localeService']['t'](_0x4cd776(0x183))}),_0x524e05['id']===u[_0x4cd776(0x2c2)][_0x4cd776(0x1da)]&&this[_0x4cd776(0x204)][_0x4cd776(0x267)]({'title':this['_localeService']['t'](_0x4cd776(0x29d)),'content':this['_localeService']['t'](_0x4cd776(0x1e6)),'type':'error','duration':0x0}),_0x524e05['id']===u[_0x4cd776(0x2c2)][_0x4cd776(0x202)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M['MessageType']['Error'],'content':this[_0x4cd776(0x2df)]['t']('collaboration.closeRoom')+'('+_0x524e05[_0x4cd776(0x34a)]+')'}),_0x524e05['id']===u['CollaborationUIEventId'][_0x4cd776(0x23f)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M[_0x4cd776(0x175)][_0x4cd776(0x3a8)],'content':this[_0x4cd776(0x2df)]['t'](_0x524e05[_0x4cd776(0x34a)]||'')}),_0x524e05['id']===u[_0x4cd776(0x2c2)][_0x4cd776(0x169)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M[_0x4cd776(0x175)][_0x4cd776(0x3a8)],'content':this[_0x4cd776(0x2df)]['t'](_0x4cd776(0x373))}),_0x524e05['id']===u[_0x4cd776(0x2c2)][_0x4cd776(0x39c)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M[_0x4cd776(0x175)]['Error'],'content':this[_0x4cd776(0x2df)]['t'](_0x4cd776(0x1ec))}),_0x524e05['id']===u['CollaborationUIEventId'][_0x4cd776(0x28f)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M['MessageType'][_0x4cd776(0x16f)],'content':this['_localeService']['t'](_0x4cd776(0x37a))});}));}};K=ns([y(0x0,w['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x5803ac(0x1ff)](u['CollaborationUIEventService'])),y(0x3,w[_0x5803ac(0x1f6)]),y(0x4,w[_0x5803ac(0x16c)]),y(0x5,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x3c5)]))],K);const is=_0x5803ac(0x20c),we={},Re=a[_0x5803ac(0x2c1)](_0x5803ac(0x246));var rs=Object[_0x5803ac(0x209)],os=Object[_0x5803ac(0x391)],as=(_0x2945c8,_0x2f0953,_0x3294be,_0x30f757)=>{const _0x110297=_0x5803ac;for(var _0x14eb7d=_0x30f757>0x1?void 0x0:_0x30f757?os(_0x2f0953,_0x3294be):_0x2f0953,_0x44a8c8=_0x2945c8[_0x110297(0x244)]-0x1,_0x1d4d2d;_0x44a8c8>=0x0;_0x44a8c8--)(_0x1d4d2d=_0x2945c8[_0x44a8c8])&&(_0x14eb7d=(_0x30f757?_0x1d4d2d(_0x2f0953,_0x3294be,_0x14eb7d):_0x1d4d2d(_0x14eb7d))||_0x14eb7d);return _0x30f757&&_0x14eb7d&&rs(_0x2f0953,_0x3294be,_0x14eb7d),_0x14eb7d;},Y=(_0x259a6e,_0x5cfb50)=>(_0x3bec20,_0x713347)=>_0x5cfb50(_0x3bec20,_0x713347,_0x259a6e);exports['CollaborationDataLoaderController']=class extends a[_0x5803ac(0x363)]{constructor(_0x51d235,_0xdd9389,_0x2adbe3,_0x2f55c5,_0x4e821b){const _0x77f1e4=_0x5803ac;super(),this[_0x77f1e4(0x271)]=_0x51d235,this['_logService']=_0xdd9389,this[_0x77f1e4(0x2e7)]=_0x2adbe3,this[_0x77f1e4(0x3a7)]=_0x2f55c5,_0x4e821b?_0x4e821b==null||_0x4e821b[_0x77f1e4(0x2ed)]()[_0x77f1e4(0x2f3)](()=>this[_0x77f1e4(0x1f4)]()):(this[_0x77f1e4(0x198)][_0x77f1e4(0x369)](_0x77f1e4(0x24a),_0x77f1e4(0x207)),this['_init']());}async[_0x5803ac(0x1f4)](){const _0x146c8a=_0x5803ac,_0x1a5bd4=this[_0x146c8a(0x271)][_0x146c8a(0x33e)]('unit'),_0x5bd752=this[_0x146c8a(0x271)]['getParam'](_0x146c8a(0x323)),_0x5dec3b=this[_0x146c8a(0x271)][_0x146c8a(0x33e)](_0x146c8a(0x250));if(!_0x1a5bd4||!_0x5bd752){this[_0x146c8a(0x198)][_0x146c8a(0x369)](_0x146c8a(0x24a),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x42ffc8=await this[_0x146c8a(0x3a7)][_0x146c8a(0x2bc)](_0x1a5bd4,Number(_0x5bd752),_0x5dec3b);_0x42ffc8&&_0x42ffc8 instanceof a['Workbook']&&this[_0x146c8a(0x325)](_0x42ffc8);}async[_0x5803ac(0x325)](_0x477273){const _0x50ff48=_0x5803ac;await this['_updateSubUnitFromURLParams'](_0x477273),_0x477273[_0x50ff48(0x262)][_0x50ff48(0x1e2)](S['takeUntil'](this[_0x50ff48(0x1d7)]))['subscribe'](_0x1f06f3=>{const _0x2624f1=_0x50ff48;_0x1f06f3&&this[_0x2624f1(0x329)](_0x1f06f3);}),this[_0x50ff48(0x271)][_0x50ff48(0x355)]['pipe'](S['takeUntil'](this[_0x50ff48(0x1d7)]))[_0x50ff48(0x2bb)](()=>this['_updateSubUnitFromURLParams'](_0x477273));}[_0x5803ac(0x329)](_0x4b6ccc,_0x729e71=!0x1){const _0x4bb311=_0x5803ac,_0x404661=this[_0x4bb311(0x271)][_0x4bb311(0x33e)](_0x4bb311(0x250));_0x4b6ccc[_0x4bb311(0x18c)]()!==_0x404661&&this['_urlService'][_0x4bb311(0x1fc)](_0x4bb311(0x250),_0x4b6ccc[_0x4bb311(0x18c)](),_0x729e71);}async[_0x5803ac(0x2d0)](_0x3a84fb){const _0x24a1ef=_0x5803ac;var _0x5c6239;const _0x6f3637=this[_0x24a1ef(0x271)]['getParam'](_0x24a1ef(0x250));if(!_0x6f3637||!_0x3a84fb['getSheetBySheetId'](_0x6f3637)){const _0x3811d7=_0x3a84fb[_0x24a1ef(0x25a)]()[0x0],_0x5d2c64=_0x3a84fb[_0x24a1ef(0x2a1)](_0x3811d7);if(!_0x5d2c64)return;this[_0x24a1ef(0x329)](_0x5d2c64,!0x0),await this[_0x24a1ef(0x2e7)]['executeCommand'](I[_0x24a1ef(0x2c8)]['id'],{'unitId':_0x3a84fb[_0x24a1ef(0x296)](),'subUnitId':_0x3811d7});return;}((_0x5c6239=_0x3a84fb[_0x24a1ef(0x18d)]())==null?void 0x0:_0x5c6239[_0x24a1ef(0x18c)]())!==_0x6f3637&&await this['_commandService'][_0x24a1ef(0x364)](I[_0x24a1ef(0x2c8)]['id'],{'unitId':_0x3a84fb['getUnitId'](),'subUnitId':_0x6f3637});}},exports[_0x5803ac(0x375)]=as([Y(0x0,Re),Y(0x1,a[_0x5803ac(0x252)]),Y(0x2,a['ICommandService']),Y(0x3,a['Inject'](u[_0x5803ac(0x31f)])),Y(0x4,a['Optional'](et[_0x5803ac(0x21c)]))],exports[_0x5803ac(0x375)]);var cs=Object[_0x5803ac(0x209)],ls=Object[_0x5803ac(0x391)],hs=(_0x4a495c,_0x47edc2,_0x301d89,_0x9f81b3)=>{for(var _0x2dd00e=_0x9f81b3>0x1?void 0x0:_0x9f81b3?ls(_0x47edc2,_0x301d89):_0x47edc2,_0x3a29ca=_0x4a495c['length']-0x1,_0x3a06d4;_0x3a29ca>=0x0;_0x3a29ca--)(_0x3a06d4=_0x4a495c[_0x3a29ca])&&(_0x2dd00e=(_0x9f81b3?_0x3a06d4(_0x47edc2,_0x301d89,_0x2dd00e):_0x3a06d4(_0x2dd00e))||_0x2dd00e);return _0x9f81b3&&_0x2dd00e&&cs(_0x47edc2,_0x301d89,_0x2dd00e),_0x2dd00e;},le=(_0x260ae8,_0x13c4da)=>(_0x2fe5d2,_0x1262cf)=>_0x13c4da(_0x2fe5d2,_0x1262cf,_0x260ae8);let z=class{constructor(_0x11e4ba,_0x1fe6ff,_0x50dc3b){const _0x24e10b=_0x5803ac;this[_0x24e10b(0x37f)]=_0x11e4ba,this[_0x24e10b(0x3b3)]=_0x1fe6ff,this[_0x24e10b(0x354)]=_0x50dc3b;}[_0x5803ac(0x1e7)](_0x1907df){const _0x540439=_0x5803ac;this[_0x540439(0x37d)](_0x1907df),this[_0x540439(0x229)](_0x1907df);}[_0x5803ac(0x31e)](_0x641115){const _0xdebcdf=_0x5803ac,{unitID:_0x48aadf}=_0x641115,_0x487fff=this['_renderManagerService']['getRenderById'](_0x48aadf)[_0xdebcdf(0x1d9)](b[_0xdebcdf(0x16a)]),{redoCache:_0x430480}=_0x487fff[_0xdebcdf(0x353)]();if(_0x430480[_0xdebcdf(0x244)]===0x0)return _0x641115;let _0x51b69a=a[_0xdebcdf(0x38c)][_0xdebcdf(0x1af)](_0x641115[_0xdebcdf(0x287)][0x0]);for(let _0x1222e7=0x0;_0x1222e7<_0x430480[_0xdebcdf(0x244)];_0x1222e7++){const _0x2d989e={'id':_0xdebcdf(0x2ba),'params':{..._0x430480[_0x1222e7]}},_0x18ffc5=this['_transformService'][_0xdebcdf(0x357)](_0x51b69a,_0x2d989e,!0x1);if(g[_0xdebcdf(0x22c)](_0x18ffc5))throw _0x18ffc5[_0xdebcdf(0x3cc)];_0x51b69a=_0x18ffc5[_0xdebcdf(0x230)];}return{...a['Tools']['deepClone'](_0x641115),'mutations':[_0x51b69a]};}[_0x5803ac(0x37d)](_0x283770){const _0x1a7194=_0x5803ac,{unitID:_0x8443fa}=_0x283770,_0x3ca035=this[_0x1a7194(0x354)][_0x1a7194(0x2ab)](_0x8443fa)[_0x1a7194(0x1d9)](b['DocIMEInputManagerService']),{undoCache:_0x333e98,redoCache:_0x49a08f}=_0x3ca035[_0x1a7194(0x353)]();if(_0x333e98[_0x1a7194(0x244)]===0x0||_0x49a08f[_0x1a7194(0x244)]===0x0)return;const _0x58c345=[],_0x2df940=[];let _0x15b728=a[_0x1a7194(0x38c)][_0x1a7194(0x1af)](_0x283770[_0x1a7194(0x287)][0x0]),_0x3916bc=a['Tools']['deepClone'](_0x283770[_0x1a7194(0x287)][0x0]);for(let _0x1eb128=_0x333e98[_0x1a7194(0x244)]-0x1;_0x1eb128>=0x0;_0x1eb128--){const _0x345c97={'id':'doc.mutation.rich-text-editing','params':{..._0x333e98[_0x1eb128]}},_0x5906f8={'id':_0x1a7194(0x2ba),'params':{..._0x49a08f[_0x1eb128]}},_0x439740=this[_0x1a7194(0x3b3)]['transformMutation'](_0x15b728,_0x345c97,!0x1),_0x3217c5=this['_transformService'][_0x1a7194(0x357)](_0x3916bc,_0x5906f8,!0x1);if(g[_0x1a7194(0x22c)](_0x439740))throw _0x439740[_0x1a7194(0x3cc)];if(g['isTransformMutationFailure'](_0x3217c5))throw _0x3217c5['error'];_0x58c345['unshift'](_0x439740['m2Prime'][_0x1a7194(0x19d)]),_0x2df940[_0x1a7194(0x1f7)](_0x3217c5[_0x1a7194(0x213)][_0x1a7194(0x19d)]),_0x15b728=_0x439740[_0x1a7194(0x230)],_0x3916bc=_0x3217c5[_0x1a7194(0x230)];}_0x3ca035['setUndoRedoMutationParamsCache']({'undoCache':_0x58c345,'redoCache':_0x2df940});}[_0x5803ac(0x229)](_0x1a8864){const _0x5bf90e=_0x5803ac,{unitID:_0x30e4eb}=_0x1a8864,_0x5d338a=this['_renderManagerService'][_0x5bf90e(0x2ab)](_0x30e4eb)[_0x5bf90e(0x1d9)](b['DocIMEInputManagerService']),_0xd5c6be=_0x5d338a[_0x5bf90e(0x3c7)]();if(_0xd5c6be==null)return;const _0x39b963=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1a8864[_0x5bf90e(0x348)],'actions':null,'textRanges':[_0xd5c6be]}}],_0x233141=this['_transformService'][_0x5bf90e(0x277)](_0x1a8864,_0x39b963);if(!g[_0x5bf90e(0x217)](_0x233141))throw _0x233141[_0x5bf90e(0x3cc)];const _0x1ed39d=_0x233141[_0x5bf90e(0x213)][0x0]['params'][_0x5bf90e(0x24c)];Array[_0x5bf90e(0x214)](_0x1ed39d)&&_0x1ed39d[_0x5bf90e(0x244)]&&_0x5d338a[_0x5bf90e(0x1e0)](_0x1ed39d[0x0]);}};z=hs([le(0x0,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x358)])),le(0x1,g[_0x5803ac(0x3a0)]),le(0x2,p[_0x5803ac(0x254)])],z);var _s=Object['defineProperty'],us=Object['getOwnPropertyDescriptor'],ds=(_0x1d3148,_0x199a9c,_0x33c821,_0x4430ea)=>{const _0x8366a2=_0x5803ac;for(var _0x39ffd7=_0x4430ea>0x1?void 0x0:_0x4430ea?us(_0x199a9c,_0x33c821):_0x199a9c,_0x1b10b0=_0x1d3148[_0x8366a2(0x244)]-0x1,_0x91a68;_0x1b10b0>=0x0;_0x1b10b0--)(_0x91a68=_0x1d3148[_0x1b10b0])&&(_0x39ffd7=(_0x4430ea?_0x91a68(_0x199a9c,_0x33c821,_0x39ffd7):_0x91a68(_0x39ffd7))||_0x39ffd7);return _0x4430ea&&_0x39ffd7&&_s(_0x199a9c,_0x33c821,_0x39ffd7),_0x39ffd7;},he=(_0x383743,_0x329213)=>(_0x11be82,_0x185ed9)=>_0x329213(_0x11be82,_0x185ed9,_0x383743);let J=class{constructor(_0x2cf2e1,_0x133e65,_0x8e1295){const _0x5698e0=_0x5803ac;this['_injector']=_0x2cf2e1,this['_transformService']=_0x133e65,this[_0x5698e0(0x398)]=_0x8e1295;}['transformStateCache'](_0x15d2ba){this['_transformHistoryAndStateStack'](_0x15d2ba);}[_0x5803ac(0x31e)](_0x1cf54f){const _0x576743=_0x5803ac,{unitID:_0x29201d}=_0x1cf54f,{collaboration:_0x1761cc}=this[_0x576743(0x398)][_0x576743(0x1be)](_0x29201d);if(_0x1761cc[_0x576743(0x244)]===0x0)return _0x1cf54f;let _0x2c40fe=a[_0x576743(0x38c)][_0x576743(0x1af)](_0x1cf54f['mutations'][0x0]);for(let _0x4066ea=0x0;_0x4066ea<_0x1761cc['length'];_0x4066ea++){const _0x21cd76={'id':_0x576743(0x2ba),'params':{'unitId':_0x1761cc[_0x4066ea]['unitId'],..._0x1761cc[_0x4066ea][_0x576743(0x19a)]}},_0x3a059e=this[_0x576743(0x3b3)][_0x576743(0x357)](_0x2c40fe,_0x21cd76,!0x1);if(g[_0x576743(0x22c)](_0x3a059e))throw _0x3a059e[_0x576743(0x3cc)];_0x2c40fe=_0x3a059e['m1Prime'];}return{...a[_0x576743(0x38c)]['deepClone'](_0x1cf54f),'mutations':[_0x2c40fe]};}[_0x5803ac(0x285)](_0x4d7593){const _0x562e82=_0x5803ac,{unitID:_0x1beb1f}=_0x4d7593,{history:_0x108ed6,collaboration:_0xdc99c1}=this[_0x562e82(0x398)][_0x562e82(0x1be)](_0x1beb1f);if(_0x108ed6['length']===0x0&&_0xdc99c1[_0x562e82(0x244)]===0x0)return;const _0x5a6c7a=[],_0x1c1859=[];let _0x462732=a[_0x562e82(0x38c)]['deepClone'](_0x4d7593[_0x562e82(0x287)][0x0]),_0x7107ba=a[_0x562e82(0x38c)][_0x562e82(0x1af)](_0x4d7593[_0x562e82(0x287)][0x0]);for(let _0x3231d0=_0x108ed6[_0x562e82(0x244)]-0x1;_0x3231d0>=0x0;_0x3231d0--){const _0x2a8008={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x108ed6[_0x3231d0][_0x562e82(0x2e5)],..._0x108ed6[_0x3231d0]['undoState']}},_0x4c3549={'id':_0x562e82(0x2ba),'params':{'unitId':_0x108ed6[_0x3231d0][_0x562e82(0x2e5)],..._0x108ed6[_0x3231d0][_0x562e82(0x19a)]}},_0x2e5d86=this[_0x562e82(0x3b3)][_0x562e82(0x357)](_0x462732,_0x2a8008,!0x1),_0x5ec7d5=this['_transformService']['transformMutation'](_0x7107ba,_0x4c3549,!0x1);if(g[_0x562e82(0x22c)](_0x2e5d86))throw _0x2e5d86[_0x562e82(0x3cc)];if(g[_0x562e82(0x22c)](_0x5ec7d5))throw _0x5ec7d5['error'];_0x5a6c7a[_0x562e82(0x1f7)]({..._0x108ed6[_0x3231d0],'undoState':_0x2e5d86['m2Prime'][_0x562e82(0x19d)],'redoState':_0x5ec7d5[_0x562e82(0x213)][_0x562e82(0x19d)]}),_0x462732=_0x2e5d86[_0x562e82(0x230)],_0x7107ba=_0x5ec7d5['m1Prime'];}_0x462732=a[_0x562e82(0x38c)][_0x562e82(0x1af)](_0x4d7593[_0x562e82(0x287)][0x0]),_0x7107ba=a[_0x562e82(0x38c)][_0x562e82(0x1af)](_0x4d7593[_0x562e82(0x287)][0x0]);for(let _0x259d52=_0xdc99c1['length']-0x1;_0x259d52>=0x0;_0x259d52--){const _0x37b985={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xdc99c1[_0x259d52]['unitId'],..._0xdc99c1[_0x259d52][_0x562e82(0x392)]}},_0x245c51={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xdc99c1[_0x259d52][_0x562e82(0x2e5)],..._0xdc99c1[_0x259d52][_0x562e82(0x19a)]}},_0x3848ba=this['_transformService'][_0x562e82(0x357)](_0x462732,_0x37b985,!0x1),_0x345034=this[_0x562e82(0x3b3)]['transformMutation'](_0x7107ba,_0x245c51,!0x1);if(g[_0x562e82(0x22c)](_0x3848ba))throw _0x3848ba['error'];if(g[_0x562e82(0x22c)](_0x345034))throw _0x345034[_0x562e82(0x3cc)];_0x1c1859[_0x562e82(0x1f7)]({..._0xdc99c1[_0x259d52],'undoState':_0x3848ba[_0x562e82(0x213)][_0x562e82(0x19d)],'redoState':_0x345034[_0x562e82(0x213)]['params']}),_0x462732=_0x3848ba[_0x562e82(0x230)],_0x7107ba=_0x345034['m1Prime'];}this['_docStateChangeManagerService'][_0x562e82(0x30f)](_0x1beb1f,{'history':_0x5a6c7a,'collaboration':_0x1c1859});}};J=ds([he(0x0,a['Inject'](a[_0x5803ac(0x358)])),he(0x1,g[_0x5803ac(0x3a0)]),he(0x2,a[_0x5803ac(0x1ff)](b[_0x5803ac(0x352)]))],J);var fs=Object[_0x5803ac(0x209)],Ss=Object[_0x5803ac(0x391)],vs=(_0x527449,_0x13f2c5,_0x3ded4e,_0x52f00c)=>{const _0x26cef9=_0x5803ac;for(var _0x58d6e8=_0x52f00c>0x1?void 0x0:_0x52f00c?Ss(_0x13f2c5,_0x3ded4e):_0x13f2c5,_0x32f7c6=_0x527449[_0x26cef9(0x244)]-0x1,_0x5e0ea4;_0x32f7c6>=0x0;_0x32f7c6--)(_0x5e0ea4=_0x527449[_0x32f7c6])&&(_0x58d6e8=(_0x52f00c?_0x5e0ea4(_0x13f2c5,_0x3ded4e,_0x58d6e8):_0x5e0ea4(_0x58d6e8))||_0x58d6e8);return _0x52f00c&&_0x58d6e8&&fs(_0x13f2c5,_0x3ded4e,_0x58d6e8),_0x58d6e8;},Le=(_0x3703ea,_0x589707)=>(_0x224614,_0x32dbc8)=>_0x589707(_0x224614,_0x32dbc8,_0x3703ea);let Z=class{constructor(_0x5e009a,_0x11511d){const _0x1efa72=_0x5803ac;this[_0x1efa72(0x37f)]=_0x5e009a,this[_0x1efa72(0x3b3)]=_0x11511d;}['transformSelections'](_0x4d57f4){const _0x2b2085=_0x5803ac;var _0x40519c;const _0x38bd62=this['_injector'][_0x2b2085(0x393)](X[_0x2b2085(0x15e)]),_0xe5d885=(_0x40519c=_0x38bd62[_0x2b2085(0x2ee)]())!=null?_0x40519c:[];if(_0xe5d885[_0x2b2085(0x244)]===0x0)return;const _0x2f538b=_0x4d57f4[_0x2b2085(0x348)],_0x45a8a5=[{'id':_0x2b2085(0x2ba),'params':{'unitId':_0x2f538b,'actions':null,'textRanges':_0xe5d885}}],_0x2bea50=this[_0x2b2085(0x3b3)][_0x2b2085(0x277)](_0x4d57f4,_0x45a8a5);if(!g[_0x2b2085(0x217)](_0x2bea50))throw _0x2bea50[_0x2b2085(0x3cc)];const _0xf85ee5=_0x2bea50['m2Prime'][0x0][_0x2b2085(0x19d)]['textRanges'];Array[_0x2b2085(0x214)](_0xf85ee5)&&_0xf85ee5[_0x2b2085(0x244)]&&_0x38bd62[_0x2b2085(0x180)](_0xf85ee5,{'unitId':_0x2f538b,'subUnitId':_0x2f538b},!0x1);}};Z=vs([Le(0x0,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x358)])),Le(0x1,g['ITransformService'])],Z);var ms=Object[_0x5803ac(0x209)],Is=Object[_0x5803ac(0x391)],gs=(_0x37cf5c,_0x3ad00d,_0x135a3f,_0x272cd3)=>{const _0x217e97=_0x5803ac;for(var _0x3a1b98=_0x272cd3>0x1?void 0x0:_0x272cd3?Is(_0x3ad00d,_0x135a3f):_0x3ad00d,_0x1dd978=_0x37cf5c[_0x217e97(0x244)]-0x1,_0x32dc35;_0x1dd978>=0x0;_0x1dd978--)(_0x32dc35=_0x37cf5c[_0x1dd978])&&(_0x3a1b98=(_0x272cd3?_0x32dc35(_0x3ad00d,_0x135a3f,_0x3a1b98):_0x32dc35(_0x3a1b98))||_0x3a1b98);return _0x272cd3&&_0x3a1b98&&ms(_0x3ad00d,_0x135a3f,_0x3a1b98),_0x3a1b98;},P=(_0x68f08a,_0x54fd1c)=>(_0x529198,_0x5dee63)=>_0x54fd1c(_0x529198,_0x5dee63,_0x68f08a);let Q=class extends a[_0x5803ac(0x1b5)]{constructor(_0x381fff,_0x3308ea,_0x4be4ea,_0x100227,_0x557594,_0x222ad4,_0x241b67,_0xaf96c7){const _0x213c8a=_0x5803ac;super(),_(this,_0x213c8a(0x377),new S[(_0x213c8a(0x3ad))](u[_0x213c8a(0x1ab)][_0x213c8a(0x351)])),(this[_0x213c8a(0x398)]=_0x381fff,this[_0x213c8a(0x261)]=_0x3308ea,this['_docTransformIMECacheService']=_0x4be4ea,this['_docTransformStateCacheService']=_0x100227,this[_0x213c8a(0x2ce)]=_0x557594,this[_0x213c8a(0x361)]=_0x222ad4,this[_0x213c8a(0x372)]=_0x241b67,this['_localeService']=_0xaf96c7,this['_initEntityListener']());}[_0x5803ac(0x26f)](){const _0x4a293e=_0x5803ac;this[_0x4a293e(0x1ed)](this[_0x4a293e(0x261)]['entityInit$'][_0x4a293e(0x2bb)](_0x2f719a=>{const _0x67813e=_0x4a293e,_0x418471=this[_0x67813e(0x398)][_0x67813e(0x322)][_0x67813e(0x2bb)](_0x5a7313=>{const _0xcc14a8=_0x67813e;if(_0x5a7313==null)return;const {unitId:_0x3d1f66,redoState:_0x380acc,commandId:_0x12e13f}=_0x5a7313;if(_0x3d1f66!==_0x2f719a[_0xcc14a8(0x348)])return;const _0x124f5c={'id':_0x12e13f,'type':a['CommandType'][_0xcc14a8(0x3cb)],'params':{'unitId':_0x3d1f66,'actions':_0x380acc['actions'],'textRanges':null}};_0x2f719a['onLocalMutation'](_0x124f5c);});if(_0x2f719a['disposeWithMe'](_0x418471),_0x2f719a instanceof u[_0x67813e(0x276)]){const _0x196171={'onTransformIME':_0x2f6a2c=>this[_0x67813e(0x32c)][_0x67813e(0x1e7)](_0x2f6a2c),'onTransformState':_0x1a4c00=>this['_docTransformStateCacheService'][_0x67813e(0x291)](_0x1a4c00),'onTransformSelections':_0x1b25ce=>this['_docTransformSelectionsService'][_0x67813e(0x339)](_0x1b25ce),'onSyncEditingCollabCursor':_0x216856=>this[_0x67813e(0x361)][_0x67813e(0x38d)](_0x216856),'onTransformRemoteChangesetByIMECache':_0x3a940a=>this['_docTransformIMECacheService'][_0x67813e(0x31e)](_0x3a940a),'onTransformRemoteChangesetByStateCache':_0x5bbec2=>this[_0x67813e(0x338)]['transformRemoteChangeset'](_0x5bbec2)};_0x2f719a[_0x67813e(0x336)](_0x196171);}}));}};Q=gs([P(0x0,a[_0x5803ac(0x1ff)](b[_0x5803ac(0x352)])),P(0x1,a['Inject'](u[_0x5803ac(0x182)])),P(0x2,a['Inject'](z)),P(0x3,a[_0x5803ac(0x1ff)](J)),P(0x4,a['Inject'](Z)),P(0x5,a[_0x5803ac(0x1ff)](be)),P(0x6,w[_0x5803ac(0x1f6)]),P(0x7,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x3c5)]))],Q);var ps=Object[_0x5803ac(0x209)],Cs=Object[_0x5803ac(0x391)],bs=(_0x420f46,_0x56c695,_0x3a376f,_0xba6a6e)=>{const _0x127f5c=_0x5803ac;for(var _0x221902=_0xba6a6e>0x1?void 0x0:_0xba6a6e?Cs(_0x56c695,_0x3a376f):_0x56c695,_0x2aaa03=_0x420f46[_0x127f5c(0x244)]-0x1,_0x504cb4;_0x2aaa03>=0x0;_0x2aaa03--)(_0x504cb4=_0x420f46[_0x2aaa03])&&(_0x221902=(_0xba6a6e?_0x504cb4(_0x56c695,_0x3a376f,_0x221902):_0x504cb4(_0x221902))||_0x221902);return _0xba6a6e&&_0x221902&&ps(_0x56c695,_0x3a376f,_0x221902),_0x221902;},_e=(_0x1c804e,_0x3c4d71)=>(_0x3a1962,_0x36dd41)=>_0x3c4d71(_0x3a1962,_0x36dd41,_0x1c804e);let pe=class extends a['Disposable']{constructor(_0x5c0e85,_0x226f3b,_0x3c575d){const _0x4c83e6=_0x5803ac;super(),_(this,_0x4c83e6(0x2c6),new Map()),_(this,_0x4c83e6(0x2cf),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x5c0e85,this[_0x4c83e6(0x2cc)]=_0x226f3b,this['_revisionService']=_0x3c575d);}[_0x5803ac(0x344)](){this['_disabled']=!0x0;}[_0x5803ac(0x269)](){this['_disabled']=!0x1;}get[_0x5803ac(0x31d)](){const _0x3b1a1f=_0x5803ac;return this[_0x3b1a1f(0x2cf)];}[_0x5803ac(0x263)](){const _0x3e678f=_0x5803ac;this['exhaustSavingTask']()[_0x3e678f(0x2f3)](()=>super[_0x3e678f(0x263)]());}async[_0x5803ac(0x340)](_0x4b3639){const _0x265ff3=_0x5803ac;return this[_0x265ff3(0x2a8)]?null:this[_0x265ff3(0x2cc)][_0x265ff3(0x316)](u[_0x265ff3(0x219)](_0x4b3639));}async[_0x5803ac(0x360)](_0x30a9d3,_0x4d2404){const _0x17de4f=_0x5803ac;return!!this[_0x17de4f(0x2cc)][_0x17de4f(0x2f2)](_0x30a9d3,_0x4d2404);}[_0x5803ac(0x22e)](_0x2f3383,_0x217515,_0x1f3e79,_0x733421){const _0x4cd1bb=_0x5803ac,_0x3db598=this[_0x4cd1bb(0x34c)][_0x4cd1bb(0x309)](_0x2f3383);this[_0x4cd1bb(0x2c6)][_0x4cd1bb(0x2f4)](_0x2f3383,{'unitID':_0x2f3383,'type':_0x217515,'awaitingChangeset':_0x1f3e79,'mutations':_0x733421,'rev':_0x3db598}),this[_0x4cd1bb(0x2cf)]['has'](_0x2f3383)||this['_scheduleSaving'](_0x2f3383);}[_0x5803ac(0x1e5)](_0x36c064){const _0xa45198=_0x5803ac,_0x2df6d7=this[_0xa45198(0x2dd)]();_0x2df6d7===0x0?this[_0xa45198(0x26c)](_0x36c064):this[_0xa45198(0x2cf)][_0xa45198(0x2f4)](_0x36c064,setTimeout(()=>this[_0xa45198(0x26c)](_0x36c064),_0x2df6d7));}[_0x5803ac(0x2dd)](){const _0x30ec1b=_0x5803ac;var _0x4f9971;return(_0x4f9971=this[_0x30ec1b(0x264)][_0x30ec1b(0x1e9)](u[_0x30ec1b(0x2e3)]))!=null?_0x4f9971:u[_0x30ec1b(0x333)];}[_0x5803ac(0x26c)](_0x3ca8fe){const _0x5ad436=_0x5803ac,_0x56de40=this[_0x5ad436(0x2cf)][_0x5ad436(0x393)](_0x3ca8fe);return _0x56de40!==void 0x0&&window['clearTimeout'](_0x56de40),this[_0x5ad436(0x2cc)]['setItem'](u[_0x5ad436(0x219)](_0x3ca8fe),this[_0x5ad436(0x2c6)]['get'](_0x3ca8fe))[_0x5ad436(0x2f3)](()=>this[_0x5ad436(0x2cf)][_0x5ad436(0x1d3)](_0x3ca8fe));}async[_0x5803ac(0x3bd)](){const _0x400ee6=_0x5803ac,_0x446fb5=[];this[_0x400ee6(0x2cf)][_0x400ee6(0x191)]((_0x266597,_0x1c263f)=>{const _0x1868f9=_0x400ee6;window[_0x1868f9(0x19c)](_0x266597),_0x446fb5[_0x1868f9(0x215)](this['_saveCache'](_0x1c263f)['then'](()=>{const _0x5378f0=_0x1868f9;this[_0x5378f0(0x2cf)][_0x5378f0(0x1d3)](_0x1c263f);}));}),await Promise[_0x400ee6(0x255)](_0x446fb5);}};pe=bs([_e(0x0,a[_0x5803ac(0x2b8)]),_e(0x1,a[_0x5803ac(0x1a9)]),_e(0x2,a[_0x5803ac(0x1ff)](g[_0x5803ac(0x284)]))],pe);class Ye extends a[_0x5803ac(0x363)]{constructor(){const _0x2748f6=_0x5803ac;super(),_(this,_0x2748f6(0x355)),this['urlChange$']=S[_0x2748f6(0x15d)](window,'popstate')[_0x2748f6(0x1e2)](S['takeUntil'](this[_0x2748f6(0x1d7)]),S[_0x2748f6(0x1b9)](0x1),S['mapTo'](void 0x0));}[_0x5803ac(0x1fc)](_0x2b625f,_0x10afe8,_0x3fe387=!0x1){const _0x13c5db=_0x5803ac,_0x120f1c=new URL(window[_0x13c5db(0x1b4)][_0x13c5db(0x33a)]);_0x120f1c['searchParams'][_0x13c5db(0x2f4)](_0x2b625f,_0x10afe8),_0x3fe387?window['history'][_0x13c5db(0x185)]('','',_0x120f1c[_0x13c5db(0x367)]()):window['history'][_0x13c5db(0x1b1)]('','',_0x120f1c[_0x13c5db(0x367)]());}['removeParam'](_0x2d3655,_0x4a711b=!0x1){const _0x99f5a2=_0x5803ac,_0x3e0e6b=new URL(window[_0x99f5a2(0x1b4)]['href']);_0x3e0e6b[_0x99f5a2(0x39e)][_0x99f5a2(0x1d3)](_0x2d3655),_0x4a711b?window[_0x99f5a2(0x1a6)][_0x99f5a2(0x185)]('','',_0x3e0e6b['toString']()):window[_0x99f5a2(0x1a6)][_0x99f5a2(0x1b1)]('','',_0x3e0e6b[_0x99f5a2(0x367)]());}['getParam'](_0x1ecb83){const _0x151490=_0x5803ac;var _0xe9ccdb;return(_0xe9ccdb=new URL(window[_0x151490(0x1b4)][_0x151490(0x33a)])[_0x151490(0x39e)][_0x151490(0x393)](_0x1ecb83))!=null?_0xe9ccdb:void 0x0;}}var Xe=Object[_0x5803ac(0x209)],Es=Object[_0x5803ac(0x391)],Rs=(_0x45e2d6,_0x58e113,_0x2b2aee)=>_0x58e113 in _0x45e2d6?Xe(_0x45e2d6,_0x58e113,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b2aee}):_0x45e2d6[_0x58e113]=_0x2b2aee,Ts=(_0x2fbfe8,_0x422e9a,_0x4dc45a,_0x11eeee)=>{const _0x10eb48=_0x5803ac;for(var _0x40844a=_0x11eeee>0x1?void 0x0:_0x11eeee?Es(_0x422e9a,_0x4dc45a):_0x422e9a,_0x4d30d2=_0x2fbfe8[_0x10eb48(0x244)]-0x1,_0x247c57;_0x4d30d2>=0x0;_0x4d30d2--)(_0x247c57=_0x2fbfe8[_0x4d30d2])&&(_0x40844a=(_0x11eeee?_0x247c57(_0x422e9a,_0x4dc45a,_0x40844a):_0x247c57(_0x40844a))||_0x40844a);return _0x11eeee&&_0x40844a&&Xe(_0x422e9a,_0x4dc45a,_0x40844a),_0x40844a;},ue=(_0xcfbc4e,_0x1e3a64)=>(_0x5c457b,_0x2dad2c)=>_0x1e3a64(_0x5c457b,_0x2dad2c,_0xcfbc4e),Os=(_0x1f8b20,_0x2623dc,_0x4ab30b)=>Rs(_0x1f8b20,_0x2623dc+'',_0x4ab30b);const Ds=_0x5803ac(0x346);exports[_0x5803ac(0x22b)]=class extends a[_0x5803ac(0x16b)]{constructor(_0x2590ac=we,_0x359412,_0x41d348,_0x1bc4c6){const _0x3423bf=_0x5803ac;super(),this['_config']=_0x2590ac,this['_renderManagerService']=_0x359412,this[_0x3423bf(0x37f)]=_0x41d348,this['_configService']=_0x1bc4c6;const {..._0x1964ad}=a[_0x3423bf(0x381)]({},we,this[_0x3423bf(0x232)]);this['_configService'][_0x3423bf(0x332)](is,_0x1964ad);}[_0x5803ac(0x3c9)](){const _0x5d4322=_0x5803ac;this['_registerDependencies'](),this[_0x5d4322(0x305)]();}[_0x5803ac(0x2b2)](){this['_registerRenderDependencies']();}[_0x5803ac(0x342)](){const _0x462e55=_0x5803ac;var _0x5a45c0;const _0xf0d020=[[Ce],[Z],[z],[J],[be],[Re,{'useClass':Ye}],[fe[_0x462e55(0x2fe)],{'useClass':fe[_0x462e55(0x1c7)]}],[u[_0x462e55(0x36b)],{'useClass':pe}],[exports[_0x462e55(0x247)]],[Q],[K],[x],[Se],[exports[_0x462e55(0x375)]]];a[_0x462e55(0x335)](this['_injector'],a[_0x462e55(0x245)](_0xf0d020,(_0x5a45c0=this[_0x462e55(0x232)])==null?void 0x0:_0x5a45c0[_0x462e55(0x21e)]));}[_0x5803ac(0x349)](){const _0x4dcef7=_0x5803ac;this[_0x4dcef7(0x1ed)](this[_0x4dcef7(0x354)][_0x4dcef7(0x1c9)](a[_0x4dcef7(0x19f)]['UNIVER_DOC'],[Ie])),this[_0x4dcef7(0x1ed)](this['_renderManagerService']['registerRenderModule'](a[_0x4dcef7(0x19f)][_0x4dcef7(0x310)],[ge]));}['_initDependencies'](){const _0x342560=_0x5803ac;a[_0x342560(0x384)](this[_0x342560(0x37f)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[K],[exports[_0x342560(0x375)]]]);}},Os(exports[_0x5803ac(0x22b)],'pluginName',Ds),exports['UniverCollaborationClientUIPlugin']=Ts([a[_0x5803ac(0x278)](u[_0x5803ac(0x3d1)]),ue(0x1,p[_0x5803ac(0x254)]),ue(0x2,a[_0x5803ac(0x1ff)](a['Injector'])),ue(0x3,a['IConfigService'])],exports[_0x5803ac(0x22b)]);const Ae=0x7530,ye=_0x5803ac(0x298);class Ps extends a['Disposable']{constructor(){const _0x21b01c=_0x5803ac;super(),_(this,_0x21b01c(0x31b),a['Tools'][_0x21b01c(0x2d1)]()),_(this,_0x21b01c(0x289),new Set()),_(this,_0x21b01c(0x32d),new Map()),_(this,_0x21b01c(0x189),null),_(this,_0x21b01c(0x240),new Map()),_(this,_0x21b01c(0x167),new Map()),this['_init']();}[_0x5803ac(0x263)](){const _0xb3f9e=_0x5803ac;super['dispose'](),this['_clearOtherTimers'][_0xb3f9e(0x191)]((_0x107df5,_0x614151)=>this[_0xb3f9e(0x388)](_0x614151)),this[_0xb3f9e(0x189)]&&window['clearInterval'](this[_0xb3f9e(0x189)]);}[_0x5803ac(0x1bf)](_0x2d63da){const _0xe29b0f=_0x5803ac;return this['_ensureSubject'](_0x2d63da)[_0xe29b0f(0x1e2)](S['distinctUntilChanged']());}['editingUnit'](_0x11b5d7){const _0x3c0f13=_0x5803ac;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x3c0f13(0x289)][_0x3c0f13(0x385)](_0x11b5d7),this['_send']({'type':0x0,'memberID':this[_0x3c0f13(0x31b)],'unitIDs':[_0x11b5d7],'isForwarded':!0x1});}[_0x5803ac(0x368)](_0x191e6a){const _0x446a5d=_0x5803ac;this[_0x446a5d(0x289)][_0x446a5d(0x1d3)](_0x191e6a),this[_0x446a5d(0x289)]['size']===0x0&&this[_0x446a5d(0x189)]&&window['clearInterval'](this[_0x446a5d(0x189)]);}[_0x5803ac(0x1f4)](){const _0xdb55b5=_0x5803ac;this['disposeWithMe'](a[_0xdb55b5(0x380)](S[_0xdb55b5(0x15d)](window,_0xdb55b5(0x35c))[_0xdb55b5(0x2bb)](_0x511ee3=>{const _0x26cfaf=_0xdb55b5;if(_0x511ee3[_0x26cfaf(0x17b)]!==ye||!_0x511ee3[_0x26cfaf(0x36a)])return;const _0x4c225a=JSON[_0x26cfaf(0x270)](_0x511ee3[_0x26cfaf(0x36a)]);this[_0x26cfaf(0x1f8)](_0x4c225a);}))),window[_0xdb55b5(0x1c1)]('unload',()=>this[_0xdb55b5(0x3ca)]({'type':0x1,'memberID':this[_0xdb55b5(0x31b)],'unitIDs':Array[_0xdb55b5(0x356)](this['_selfUnitIDs'])}));}[_0x5803ac(0x1f8)](_0x4b96b3){const _0x3dd4d8=_0x5803ac;switch(_0x4b96b3[_0x3dd4d8(0x323)]){case 0x0:this['_handleJoinEvent'](_0x4b96b3);break;case 0x1:this[_0x3dd4d8(0x233)](_0x4b96b3);break;case 0x2:this[_0x3dd4d8(0x3ae)](_0x4b96b3);break;}}['_handleJoinEvent'](_0x1a8c55){const _0x1bad42=_0x5803ac,{unitIDs:_0x5cff93,memberID:_0x48ff9d,isForwarded:_0x10973a}=_0x1a8c55;_0x5cff93[_0x1bad42(0x191)](_0x4710e1=>{const _0x568286=_0x1bad42;if(!_0x10973a&&this['_unitOnClients'][_0x568286(0x30c)](_0x4710e1)&&this['_ensureSubject'](_0x4710e1)['next'](u[_0x568286(0x188)][_0x568286(0x1f1)]),!this['_unitOnClients'][_0x568286(0x30c)](_0x4710e1)||!this[_0x568286(0x32d)][_0x568286(0x393)](_0x4710e1)[_0x568286(0x30c)](_0x48ff9d)){const _0x21c1f2=this['_unitOnClients'][_0x568286(0x393)](_0x4710e1)||new Set();_0x21c1f2[_0x568286(0x385)](_0x48ff9d),this[_0x568286(0x32d)]['set'](_0x4710e1,_0x21c1f2),this['_scheduleClearOtherTimer'](_0x48ff9d);}}),_0x10973a||this[_0x1bad42(0x3ca)]({'type':0x0,'memberID':this[_0x1bad42(0x31b)],'unitIDs':[...this[_0x1bad42(0x289)]],'isForwarded':!0x0});}[_0x5803ac(0x281)](_0x177011){const _0x36d1b2=_0x5803ac;this[_0x36d1b2(0x388)](_0x177011);const _0x337fec=window[_0x36d1b2(0x34e)](()=>{const _0x4df008=_0x36d1b2;this[_0x4df008(0x32d)][_0x4df008(0x191)](_0x4b6798=>{const _0x1e7116=_0x4df008;_0x4b6798[_0x1e7116(0x1d3)](_0x177011);});},Ae*0x2);this[_0x36d1b2(0x240)][_0x36d1b2(0x2f4)](_0x177011,_0x337fec);}['_removeClearOtherTimer'](_0x284605){const _0x446574=_0x5803ac;if(this[_0x446574(0x240)]['has'](_0x284605)){const _0x29cf47=this[_0x446574(0x240)][_0x446574(0x393)](_0x284605);_0x29cf47&&window['clearTimeout'](_0x29cf47),this[_0x446574(0x240)][_0x446574(0x2f4)](_0x284605,null);}}[_0x5803ac(0x233)](_0x27a180){const _0xf173fe=_0x5803ac,{memberID:_0x2cd948,unitIDs:_0x42352b}=_0x27a180;_0x42352b[_0xf173fe(0x191)](_0x2a209d=>{const _0x259c69=_0xf173fe;var _0x299cdb;const _0x18cdc2=this[_0x259c69(0x32d)][_0x259c69(0x393)](_0x2a209d);_0x18cdc2&&(_0x18cdc2[_0x259c69(0x1d3)](_0x2cd948),(_0x299cdb=this[_0x259c69(0x3af)](_0x2a209d))==null||_0x299cdb[_0x259c69(0x1dd)](_0x18cdc2[_0x259c69(0x3b9)]===0x0?u['UnitStatus'][_0x259c69(0x1b7)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0xf173fe(0x388)](_0x2cd948);}[_0x5803ac(0x3ae)](_0x19265e){const _0x3d22bc=_0x5803ac;this['_scheduleClearOtherTimer'](_0x19265e[_0x3d22bc(0x362)]);}[_0x5803ac(0x3ca)](_0xfd47de){const _0x2a3338=_0x5803ac;localStorage[_0x2a3338(0x2f2)](ye,JSON['stringify'](_0xfd47de));}[_0x5803ac(0x2b7)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x45f2e1=_0x2da3;this[_0x45f2e1(0x3ca)]({'type':0x2,'memberID':this[_0x45f2e1(0x31b)]});},Ae);}['_ensureSubject'](_0x3d2184){const _0x8a3d83=_0x5803ac;return this['_unitStatus'][_0x8a3d83(0x30c)](_0x3d2184)||this[_0x8a3d83(0x167)][_0x8a3d83(0x2f4)](_0x3d2184,new S[(_0x8a3d83(0x3ad))](u['UnitStatus'][_0x8a3d83(0x1b7)])),this[_0x8a3d83(0x167)][_0x8a3d83(0x393)](_0x3d2184);}}var Ve=(_0x4f40b0=>(_0x4f40b0[_0x4f40b0[_0x5803ac(0x29c)]=0x0]=_0x5803ac(0x29c),_0x4f40b0[_0x4f40b0['OK']=0x1]='OK',_0x4f40b0[_0x4f40b0['INTERNAL_ERROR']=0x2]=_0x5803ac(0x187),_0x4f40b0[_0x4f40b0[_0x5803ac(0x1da)]=0x3]='PERMISSION_DENIED',_0x4f40b0[_0x4f40b0[_0x5803ac(0x1d4)]=0x4]='NOT_FOUND',_0x4f40b0[_0x4f40b0[_0x5803ac(0x166)]=0x5]='UNAUTHENTICATED',_0x4f40b0[_0x4f40b0[_0x5803ac(0x18b)]=0x6]=_0x5803ac(0x18b),_0x4f40b0[_0x4f40b0[_0x5803ac(0x20b)]=0x7]=_0x5803ac(0x20b),_0x4f40b0[_0x4f40b0[_0x5803ac(0x19e)]=0x8]=_0x5803ac(0x19e),_0x4f40b0[_0x4f40b0[_0x5803ac(0x2f1)]=0x9]=_0x5803ac(0x2f1),_0x4f40b0[_0x4f40b0[_0x5803ac(0x2a2)]=0x1389]=_0x5803ac(0x2a2),_0x4f40b0[_0x4f40b0[_0x5803ac(0x36c)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4f40b0[_0x4f40b0[_0x5803ac(0x32b)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4f40b0[_0x4f40b0['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x5803ac(0x288),_0x4f40b0[_0x4f40b0[_0x5803ac(0x193)]=0x1b59]=_0x5803ac(0x193),_0x4f40b0[_0x4f40b0[_0x5803ac(0x235)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4f40b0[_0x4f40b0[_0x5803ac(0x359)]=0x1b5b]=_0x5803ac(0x359),_0x4f40b0[_0x4f40b0[_0x5803ac(0x299)]=0x1b5c]=_0x5803ac(0x299),_0x4f40b0[_0x4f40b0[_0x5803ac(0x25c)]=0x1b5d]=_0x5803ac(0x25c),_0x4f40b0[_0x4f40b0[_0x5803ac(0x1a5)]=0x1f41]=_0x5803ac(0x1a5),_0x4f40b0[_0x4f40b0['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5803ac(0x3a1),_0x4f40b0[_0x4f40b0[_0x5803ac(0x2a6)]=0x232a]=_0x5803ac(0x2a6),_0x4f40b0[_0x4f40b0[_0x5803ac(0x221)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4f40b0[_0x4f40b0['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4f40b0[_0x4f40b0['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5803ac(0x3b4),_0x4f40b0[_0x4f40b0[_0x5803ac(0x2b1)]=0x2711]=_0x5803ac(0x2b1),_0x4f40b0[_0x4f40b0[_0x5803ac(0x3b6)]=0x2712]=_0x5803ac(0x3b6),_0x4f40b0[_0x4f40b0['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5803ac(0x37e),_0x4f40b0[_0x4f40b0[_0x5803ac(0x3cf)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4f40b0[_0x4f40b0[_0x5803ac(0x237)]=-0x1]=_0x5803ac(0x237),_0x4f40b0))(Ve||{}),Ms=Object[_0x5803ac(0x209)],Us=Object[_0x5803ac(0x391)],Ns=(_0x251731,_0x4f8666,_0x5b3766,_0x223501)=>{const _0x23aad9=_0x5803ac;for(var _0x3e1bfc=_0x223501>0x1?void 0x0:_0x223501?Us(_0x4f8666,_0x5b3766):_0x4f8666,_0x59f065=_0x251731[_0x23aad9(0x244)]-0x1,_0x386b55;_0x59f065>=0x0;_0x59f065--)(_0x386b55=_0x251731[_0x59f065])&&(_0x3e1bfc=(_0x223501?_0x386b55(_0x4f8666,_0x5b3766,_0x3e1bfc):_0x386b55(_0x3e1bfc))||_0x3e1bfc);return _0x223501&&_0x3e1bfc&&Ms(_0x4f8666,_0x5b3766,_0x3e1bfc),_0x3e1bfc;},de=(_0x57d481,_0xaa4306)=>(_0x33408c,_0xfc6be1)=>_0xaa4306(_0x33408c,_0xfc6be1,_0x57d481);exports[_0x5803ac(0x177)]=class extends a[_0x5803ac(0x1b5)]{constructor(_0x53fd01,_0x1e3de6,_0x4c7ce1){const _0x4931da=_0x5803ac;super(),this['_instanceService']=_0x53fd01,this[_0x4931da(0x324)]=_0x1e3de6,this['_configService']=_0x4c7ce1;}async['runOnServer'](_0x1e5774,_0x120edc,..._0x3efdb7){const _0x1c889=_0x5803ac;var _0x41f765,_0x511917;const _0x5afce1=this['_instanceService']['getFocusedUnit']();if(!_0x5afce1)throw new Error(_0x1c889(0x38a));const _0x313cc2=((_0x41f765=this[_0x1c889(0x264)][_0x1c889(0x1e9)](u[_0x1c889(0x18f)]))!=null?_0x41f765:u[_0x1c889(0x226)])+'/'+_0x1e5774+_0x1c889(0x2b5)+_0x120edc,_0x237ebe=new URL(window[_0x1c889(0x1b4)][_0x1c889(0x33a)]),_0x4e743b={'scriptId':_0x1e5774,'runId':(_0x511917=_0x237ebe['searchParams'][_0x1c889(0x393)](_0x1c889(0x3d0)))!=null?_0x511917:'','function':_0x120edc,'unitId':_0x5afce1['getUnitId'](),'argsOfFunction':JSON[_0x1c889(0x212)](_0x3efdb7)};try{const _0x4b44c7=await this[_0x1c889(0x324)][_0x1c889(0x27c)](_0x313cc2,{'body':_0x4e743b});return!(_0x4b44c7[_0x1c889(0x22f)][_0x1c889(0x3cc)]&&_0x4b44c7[_0x1c889(0x22f)][_0x1c889(0x3cc)][_0x1c889(0x1e8)]!==Ve['OK']);}catch{return!0x1;}}},exports[_0x5803ac(0x177)]=Ns([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x5803ac(0x1ff)](fe[_0x5803ac(0x22d)])),de(0x2,a['IConfigService'])],exports[_0x5803ac(0x177)]),exports[_0x5803ac(0x21b)]=Fe,exports[_0x5803ac(0x184)]=Re,exports[_0x5803ac(0x249)]=xe,exports['WebBrowserSingleActiveUnitService']=Ps,exports[_0x5803ac(0x1ba)]=Ye;
1
+ 'use strict';const _0x45d155=_0x15df;(function(_0x3c16f1,_0x21d47f){const _0x12b32e=_0x15df,_0x56fbb2=_0x3c16f1();while(!![]){try{const _0x16ee68=parseInt(_0x12b32e(0x142))/0x1+-parseInt(_0x12b32e(0x17d))/0x2*(parseInt(_0x12b32e(0x1e0))/0x3)+-parseInt(_0x12b32e(0x238))/0x4*(parseInt(_0x12b32e(0x349))/0x5)+-parseInt(_0x12b32e(0x2f1))/0x6*(-parseInt(_0x12b32e(0x1da))/0x7)+-parseInt(_0x12b32e(0x353))/0x8+parseInt(_0x12b32e(0x261))/0x9*(-parseInt(_0x12b32e(0x24e))/0xa)+-parseInt(_0x12b32e(0x24c))/0xb*(-parseInt(_0x12b32e(0x16e))/0xc);if(_0x16ee68===_0x21d47f)break;else _0x56fbb2['push'](_0x56fbb2['shift']());}catch(_0x259905){_0x56fbb2['push'](_0x56fbb2['shift']());}}}(_0x2d21,0x98ae0));var Ze=Object[_0x45d155(0x2bd)],Qe=(_0x1aac67,_0x22aae3,_0x5c5221)=>_0x22aae3 in _0x1aac67?Ze(_0x1aac67,_0x22aae3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c5221}):_0x1aac67[_0x22aae3]=_0x5c5221,_=(_0x580892,_0x44fb1c,_0x5f229e)=>Qe(_0x580892,typeof _0x44fb1c!=_0x45d155(0x1a8)?_0x44fb1c+'':_0x44fb1c,_0x5f229e);Object[_0x45d155(0x2bd)](exports,Symbol['toStringTag'],{'value':_0x45d155(0x225)});const u=require(_0x45d155(0x154)),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),fe=require(_0x45d155(0x1cd)),b=require(_0x45d155(0x354)),et=require(_0x45d155(0x14e)),S=require('rxjs'),X=require(_0x45d155(0x1a0)),g=require(_0x45d155(0x1f5)),Te=require('@univerjs/engine-formula'),I=require(_0x45d155(0x357)),$=require('rxjs/operators'),q=require(_0x45d155(0x11e)),O=require(_0x45d155(0x119)),w=require(_0x45d155(0x202)),M=require(_0x45d155(0x1ca)),tt=require(_0x45d155(0x129));var st=Object[_0x45d155(0x2bd)],nt=Object['getOwnPropertyDescriptor'],it=(_0x805c88,_0x26963b,_0x35b7ca,_0x564f1e)=>{for(var _0x49af41=_0x564f1e>0x1?void 0x0:_0x564f1e?nt(_0x26963b,_0x35b7ca):_0x26963b,_0x210ca4=_0x805c88['length']-0x1,_0x251f1b;_0x210ca4>=0x0;_0x210ca4--)(_0x251f1b=_0x805c88[_0x210ca4])&&(_0x49af41=(_0x564f1e?_0x251f1b(_0x26963b,_0x35b7ca,_0x49af41):_0x251f1b(_0x49af41))||_0x49af41);return _0x564f1e&&_0x49af41&&st(_0x26963b,_0x35b7ca,_0x49af41),_0x49af41;},Oe=(_0x18b447,_0x35546f)=>(_0x2de209,_0x4a1cdb)=>_0x35546f(_0x2de209,_0x4a1cdb,_0x18b447);let Se=class extends a[_0x45d155(0x30a)]{constructor(_0x378e38,_0x2def26){const _0x4c6b5b=_0x45d155;super(),this[_0x4c6b5b(0x178)]=_0x378e38,this['_imageIoService']=_0x2def26,this[_0x4c6b5b(0x175)]();}[_0x45d155(0x175)](){const _0x3d40e2=_0x45d155,_0x3eb5ce=this;this[_0x3d40e2(0x1de)](this[_0x3d40e2(0x178)][_0x3d40e2(0x2d2)]({'onBeforePasteImage':async _0x29dfec=>{const _0x326abf=_0x3d40e2,_0x110a98=await _0x3eb5ce[_0x326abf(0x2e5)][_0x326abf(0x226)](_0x29dfec);return _0x110a98?{'source':_0x110a98['source'],'imageSourceType':_0x110a98[_0x326abf(0x188)]}:null;}}));}};Se=it([Oe(0x0,b[_0x45d155(0x12f)]),Oe(0x1,et[_0x45d155(0x2d8)])],Se);const De=['purple300',_0x45d155(0x248),_0x45d155(0x2bf),_0x45d155(0x239),_0x45d155(0x1c8),'gold400'];class Ce extends a[_0x45d155(0x1ab)]{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x45d155(0x136)](_0x38eda1){const _0xa90746=_0x45d155;if(this[_0xa90746(0x2a5)]['has'](_0x38eda1))return this['_assignedColors'][_0xa90746(0x1c1)](_0x38eda1);const _0x5d6d15=De[this[_0xa90746(0x323)]];return this['_colorIndex']=(this[_0xa90746(0x323)]+0x1)%De[_0xa90746(0x1fd)],this[_0xa90746(0x2a5)][_0xa90746(0x312)](_0x38eda1,_0x5d6d15),_0x5d6d15;}}function xe(_0x23d3fb){const _0x40f965=_0x45d155;let _0xfe6a1e='';for(const _0x411357 of _0x23d3fb){const {startOffset:_0x212b13,endOffset:_0x2e3d8a,isActive:_0x2900e7,rangeType:_0x4d4a92,segmentId:_0x52560a,segmentPage:_0x4b50ce}=_0x411357;_0xfe6a1e[_0x40f965(0x1fd)]&&(_0xfe6a1e+=','),_0xfe6a1e+=_0x212b13+':'+_0x2e3d8a+':'+(_0x2900e7?'1':'0')+':'+_0x4d4a92+':'+_0x52560a+':'+_0x4b50ce;}return _0xfe6a1e;}function rt(_0x422bc4){const _0x5c50c6=_0x45d155,_0x13a6d2=_0x422bc4[_0x5c50c6(0x23a)](','),_0x1e0996=[];for(const _0x288949 of _0x13a6d2){const [_0x3947a0,_0x4ce87a,_0x595bde,_0x4f100c,_0x5fd7bb,_0x61242b]=_0x288949[_0x5c50c6(0x23a)](':');_0x1e0996[_0x5c50c6(0x374)]({'startOffset':Number(_0x3947a0),'endOffset':Number(_0x4ce87a),'collapsed':_0x3947a0===_0x4ce87a,'isActive':_0x595bde==='1','rangeType':_0x4f100c===a[_0x5c50c6(0x319)][_0x5c50c6(0x1a1)]?a['DOC_RANGE_TYPE']['TEXT']:a['DOC_RANGE_TYPE'][_0x5c50c6(0x12d)],'segmentId':typeof _0x5fd7bb==_0x5c50c6(0x263)?String(_0x5fd7bb):'','segmentPage':Number(_0x61242b!=null?_0x61242b:-0x1)});}return _0x1e0996[_0x5c50c6(0x109)](_0x26a1b2=>_0x26a1b2[_0x5c50c6(0x2a7)])||(_0x1e0996[0x0][_0x5c50c6(0x2a7)]=!0x0),_0x1e0996;}class be extends a[_0x45d155(0x30a)]{constructor(){const _0x5197a1=_0x45d155;super(...arguments),_(this,_0x5197a1(0x31e),new S[(_0x5197a1(0x23d))](null)),_(this,_0x5197a1(0x34a),this[_0x5197a1(0x31e)][_0x5197a1(0x29a)]());}['syncEditingCollabCursor'](_0x54246d){const _0x56a6e1=_0x45d155,{unitID:_0x34da5d,memberID:_0x352c74,textRanges:_0x1e6daf}=_0x54246d,_0x52dd2a=xe(_0x1e6daf);if(_0x52dd2a==='')return;const _0xe45acb={'unitID':_0x34da5d,'memberID':_0x352c74,'selection':_0x52dd2a};this[_0x56a6e1(0x31e)]['next'](_0xe45acb);}}var ot=Object[_0x45d155(0x2bd)],at=Object['getOwnPropertyDescriptor'],ct=(_0x23b73a,_0xdfbf6b,_0xa8cc81,_0x289c89)=>{for(var _0x3efa6c=_0x289c89>0x1?void 0x0:_0x289c89?at(_0xdfbf6b,_0xa8cc81):_0xdfbf6b,_0x487b68=_0x23b73a['length']-0x1,_0x7351bf;_0x487b68>=0x0;_0x487b68--)(_0x7351bf=_0x23b73a[_0x487b68])&&(_0x3efa6c=(_0x289c89?_0x7351bf(_0xdfbf6b,_0xa8cc81,_0x3efa6c):_0x7351bf(_0x3efa6c))||_0x3efa6c);return _0x289c89&&_0x3efa6c&&ot(_0xdfbf6b,_0xa8cc81,_0x3efa6c),_0x3efa6c;},U=(_0x28f8c6,_0x4654af)=>(_0x577c4c,_0x5cd646)=>_0x4654af(_0x577c4c,_0x5cd646,_0x28f8c6);const lt=0x12c,ht=0x64;function _0x15df(_0x354f52,_0x3b5f9d){const _0x2d2174=_0x2d21();return _0x15df=function(_0x15df96,_0x1c3425){_0x15df96=_0x15df96-0x108;let _0x324e28=_0x2d2174[_0x15df96];return _0x324e28;},_0x15df(_0x354f52,_0x3b5f9d);}let ve=class extends a[_0x45d155(0x30a)]{constructor(_0x45c0e6,_0x432413,_0x3ef24f,_0x8e8e5c,_0x558b65,_0x3a3c2d,_0x5d958d,_0x1b70a2,_0x1f1a1e){const _0x5e5786=_0x45d155;super(),_(this,_0x5e5786(0x283),!0x1),_(this,_0x5e5786(0x175),!0x1),_(this,_0x5e5786(0x181),new S[(_0x5e5786(0x23d))](new Map())),_(this,_0x5e5786(0x13d),this[_0x5e5786(0x181)][_0x5e5786(0x29a)]()),_(this,_0x5e5786(0x25c),new S[(_0x5e5786(0x23d))]([])),_(this,_0x5e5786(0x231),this['_roomMembers$'][_0x5e5786(0x1f6)](S[_0x5e5786(0x373)](lt))),_(this,_0x5e5786(0x1f1),a[_0x5e5786(0x26b)](_0x956763=>{const _0x500188=_0x5e5786,_0x3f24f1={'eventID':g['CollaborationEvent'][_0x500188(0x308)],'data':{'unitID':this[_0x500188(0x173)],'memberID':this[_0x500188(0x2ad)]['getMemberID'](),'selection':xe(_0x956763)}};this['_session'][_0x500188(0x187)](_0x3f24f1,this['unitID']);},ht)),(this['unitID']=_0x45c0e6,this['_session']=_0x432413,this[_0x5e5786(0x30f)]=_0x3ef24f,this['_colorAssignService']=_0x8e8e5c,this[_0x5e5786(0x2e4)]=_0x558b65,this[_0x5e5786(0x19c)]=_0x3a3c2d,this[_0x5e5786(0x2b6)]=_0x5d958d,this[_0x5e5786(0x291)]=_0x1b70a2,this[_0x5e5786(0x370)]=_0x1f1a1e);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x45d155(0x26e)](){const _0x44f777=_0x45d155;return this['_roomMembers$'][_0x44f777(0x134)]();}['dispose'](){const _0x32e85a=_0x45d155;super[_0x32e85a(0x124)](),this[_0x32e85a(0x181)][_0x32e85a(0x27a)](new Map()),this[_0x32e85a(0x181)]['complete'](),this[_0x32e85a(0x25c)][_0x32e85a(0x27a)]([]),this['_roomMembers$'][_0x32e85a(0x2b5)]();}['init'](){const _0x207ead=_0x45d155;this['_init']||(this[_0x207ead(0x175)]=!0x0,this[_0x207ead(0x2ad)][_0x207ead(0x2ac)][_0x207ead(0x1f6)](S[_0x207ead(0x1a6)](this[_0x207ead(0x21e)]))[_0x207ead(0x11d)](_0x30e9da=>{const _0x20be95=_0x207ead;_0x30e9da===u[_0x20be95(0x1a3)][_0x20be95(0x11c)]?this[_0x20be95(0x2f2)]():this[_0x20be95(0x146)]();}),this['_session'][_0x207ead(0x1a7)]['pipe'](S[_0x207ead(0x1a6)](this['dispose$']))[_0x207ead(0x11d)](_0x56ec5e=>{const _0x4b46d4=_0x207ead,_0x50d01f=_0x56ec5e['eventID'];_0x50d01f===g[_0x4b46d4(0x296)][_0x4b46d4(0x308)]&&this['_onCursorUpdate'](_0x56ec5e),_0x50d01f===g[_0x4b46d4(0x296)][_0x4b46d4(0x2c2)]&&this[_0x4b46d4(0x1e6)](_0x56ec5e);}),this[_0x207ead(0x1de)](this[_0x207ead(0x370)][_0x207ead(0x2dd)](_0x43d35a=>{const _0x393794=_0x207ead,_0x42500e=_0x43d35a['params'];_0x42500e!=null&&this[_0x393794(0x283)]&&_0x43d35a['id']===X[_0x393794(0x27b)]['id']&&_0x42500e[_0x393794(0x1d3)]===this[_0x393794(0x173)]&&_0x42500e[_0x393794(0x20d)]===!0x1&&_0x42500e[_0x393794(0x210)][_0x393794(0x1fd)]>0x0&&this[_0x393794(0x1f1)](_0x42500e[_0x393794(0x210)]);})),this['_syncEditingCollabCursorService'][_0x207ead(0x34a)][_0x207ead(0x1f6)](S[_0x207ead(0x1a6)](this['dispose$']))[_0x207ead(0x11d)](_0x59a972=>{const _0x1d55ae=_0x207ead;if((_0x59a972==null?void 0x0:_0x59a972[_0x1d55ae(0x173)])!==this[_0x1d55ae(0x173)])return;const _0x39d404={'eventID':g[_0x1d55ae(0x296)]['UPDATE_CURSOR'],'data':_0x59a972};this[_0x1d55ae(0x35f)](_0x39d404);}),this[_0x207ead(0x1de)](this[_0x207ead(0x370)][_0x207ead(0x2dd)](_0x4e6727=>{const _0x700f4d=_0x207ead;if(_0x4e6727[_0x700f4d(0x2e1)]==null)return;const _0x1d56a6=_0x4e6727[_0x700f4d(0x2e1)];if(_0x4e6727['id']!==X['RichTextEditingMutation']['id']||_0x1d56a6[_0x700f4d(0x1d3)]!==this['unitID'])return;const _0x3040d5={'id':'doc.mutation.rich-text-editing','params':_0x1d56a6},_0x23ee97=this[_0x700f4d(0x311)];for(const [_0x2145ad,_0x1ec696]of _0x23ee97){const _0x28d12a={'id':_0x700f4d(0x2db),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1ec696[_0x700f4d(0x210)]}},_0x468065=this[_0x700f4d(0x2b6)][_0x700f4d(0x264)](_0x3040d5,_0x28d12a,!0x1);if(g[_0x700f4d(0x19d)](_0x468065))throw _0x468065[_0x700f4d(0x149)];_0x23ee97[_0x700f4d(0x312)](_0x2145ad,{..._0x1ec696,'ranges':_0x468065['m2Prime'][_0x700f4d(0x2e1)][_0x700f4d(0x2d3)]});}queueMicrotask(()=>{const _0x46fa25=_0x700f4d;this[_0x46fa25(0x181)][_0x46fa25(0x27a)](_0x23ee97);});})));}[_0x45d155(0x35f)](_0x26454a){const _0x436228=_0x45d155;var _0x27add8,_0xfed0f;const {memberID:_0x37db27,selection:_0x5189c6}=_0x26454a['data'],_0xe0bc21=rt(_0x5189c6),_0x1f3386=(_0xfed0f=(_0x27add8=this[_0x436228(0x2e4)]['getMember'](this[_0x436228(0x173)],_0x37db27))==null?void 0x0:_0x27add8[_0x436228(0x1f9)])!=null?_0xfed0f:_0x436228(0x1e2),_0x1d6ca2={'color':this['_colorAssignService'][_0x436228(0x136)](_0x37db27),'name':_0x1f3386,'ranges':_0xe0bc21},_0x1aee8e=this[_0x436228(0x311)];_0x1aee8e[_0x436228(0x312)](_0x37db27,_0x1d6ca2),this[_0x436228(0x181)][_0x436228(0x27a)](_0x1aee8e);}[_0x45d155(0x1e6)](_0x3c063b){const _0xa9d61c=_0x45d155,{memberID:_0x2e9060}=_0x3c063b[_0xa9d61c(0x2df)],_0x2f41fa=this[_0xa9d61c(0x311)];_0x2f41fa[_0xa9d61c(0x2ee)](_0x2e9060),this[_0xa9d61c(0x181)]['next'](_0x2f41fa);}[_0x45d155(0x2f2)](){const _0x585fc5=_0x45d155;var _0x3556a1;if(this['_online']=!0x0,((_0x3556a1=this[_0x585fc5(0x291)][_0x585fc5(0x257)]())==null?void 0x0:_0x3556a1[_0x585fc5(0x194)]())!==this[_0x585fc5(0x173)])return;const _0x291020=this[_0x585fc5(0x30f)][_0x585fc5(0x1c1)](X[_0x585fc5(0x21a)])['getDocRanges']();Array[_0x585fc5(0x289)](_0x291020)&&_0x291020[_0x585fc5(0x1fd)]>0x0&&this[_0x585fc5(0x1f1)](_0x291020);}[_0x45d155(0x146)](){const _0x1a5199=_0x45d155;this[_0x1a5199(0x283)]=!0x1;}};ve=ct([U(0x2,a[_0x45d155(0x313)](a['Injector'])),U(0x3,a[_0x45d155(0x313)](Ce)),U(0x4,a[_0x45d155(0x313)](u['MemberService'])),U(0x5,a[_0x45d155(0x313)](be)),U(0x6,g[_0x45d155(0x315)]),U(0x7,a[_0x45d155(0x196)]),U(0x8,a[_0x45d155(0x272)])],ve);var _t=Object[_0x45d155(0x2bd)],ut=Object['getOwnPropertyDescriptor'],dt=(_0x45c717,_0x8a46c5,_0x25aca9,_0x29b7d6)=>{const _0x1f9694=_0x45d155;for(var _0x3430c3=_0x29b7d6>0x1?void 0x0:_0x29b7d6?ut(_0x8a46c5,_0x25aca9):_0x8a46c5,_0x5b2958=_0x45c717[_0x1f9694(0x1fd)]-0x1,_0xd035e9;_0x5b2958>=0x0;_0x5b2958--)(_0xd035e9=_0x45c717[_0x5b2958])&&(_0x3430c3=(_0x29b7d6?_0xd035e9(_0x8a46c5,_0x25aca9,_0x3430c3):_0xd035e9(_0x3430c3))||_0x3430c3);return _0x29b7d6&&_0x3430c3&&_t(_0x8a46c5,_0x25aca9,_0x3430c3),_0x3430c3;},A=(_0x3fea90,_0x1926dd)=>(_0x530b3f,_0x17490)=>_0x1926dd(_0x530b3f,_0x17490,_0x3fea90);const ft=0x12c,St=0x64,vt=()=>{let _0x1559b6=[],_0x113a6d=!0x1;return _0x454dc1=>{const _0x2529a4=_0x15df;_0x1559b6[_0x2529a4(0x374)](_0x454dc1),_0x113a6d||(_0x113a6d=!0x0,setTimeout(()=>{const _0xa0684=_0x2529a4;_0x1559b6[_0xa0684(0x2f4)](_0x3987e3=>_0x3987e3()),_0x1559b6=[],_0x113a6d=!0x1;}));};};let me=class extends a[_0x45d155(0x30a)]{constructor(_0x4d3e9f,_0x45f2c7,_0x2eabf6,_0x20b6db,_0x54e734,_0x9884b8,_0x19092f,_0x48cb5c){const _0x484ed4=_0x45d155;super(),_(this,_0x484ed4(0x283),!0x1),_(this,_0x484ed4(0x175),!0x1),_(this,_0x484ed4(0x181),new S[(_0x484ed4(0x23d))](new Map())),_(this,_0x484ed4(0x13d),this[_0x484ed4(0x181)][_0x484ed4(0x29a)]()),_(this,_0x484ed4(0x25c),new S['BehaviorSubject']([])),_(this,_0x484ed4(0x231),this[_0x484ed4(0x25c)][_0x484ed4(0x1f6)](S[_0x484ed4(0x373)](ft))),_(this,_0x484ed4(0x1f1),a[_0x484ed4(0x26b)]((_0x51624e,_0x3c7394)=>{const _0x1a67b8=_0x484ed4,_0x1e845c={'eventID':g[_0x1a67b8(0x296)][_0x1a67b8(0x308)],'data':{'unitID':this[_0x1a67b8(0x173)],'memberID':this[_0x1a67b8(0x2ad)][_0x1a67b8(0x2a4)](),'selection':Te['serializeRangeWithSheet'](_0x51624e,_0x3c7394['range'])}};this['_session']['send'](_0x1e845c,this[_0x1a67b8(0x173)]);},St)),(this[_0x484ed4(0x173)]=_0x4d3e9f,this[_0x484ed4(0x2ad)]=_0x45f2c7,this[_0x484ed4(0x30f)]=_0x2eabf6,this[_0x484ed4(0x205)]=_0x20b6db,this[_0x484ed4(0x2e4)]=_0x54e734,this[_0x484ed4(0x291)]=_0x9884b8,this[_0x484ed4(0x370)]=_0x19092f,this[_0x484ed4(0x1fb)]=_0x48cb5c);}get[_0x45d155(0x311)](){const _0x1855e0=_0x45d155;return this['_cursorInfo$'][_0x1855e0(0x134)]();}get[_0x45d155(0x26e)](){const _0x47f707=_0x45d155;return this[_0x47f707(0x25c)][_0x47f707(0x134)]();}[_0x45d155(0x124)](){const _0x88817e=_0x45d155;super[_0x88817e(0x124)](),this['_cursorInfo$'][_0x88817e(0x27a)](new Map()),this[_0x88817e(0x181)]['complete'](),this['_roomMembers$'][_0x88817e(0x27a)]([]),this[_0x88817e(0x25c)][_0x88817e(0x2b5)]();}[_0x45d155(0x26f)](){const _0x5d3336=_0x45d155;this[_0x5d3336(0x175)]||(this[_0x5d3336(0x175)]=!0x0,this[_0x5d3336(0x2ad)][_0x5d3336(0x2ac)]['pipe'](S[_0x5d3336(0x1a6)](this[_0x5d3336(0x21e)]))[_0x5d3336(0x11d)](_0x2dd80d=>{const _0x34c46c=_0x5d3336;_0x2dd80d===u['SessionStatus'][_0x34c46c(0x11c)]?this[_0x34c46c(0x2f2)]():this['_toggleOffline']();}),this['_session']['event$'][_0x5d3336(0x1f6)](S[_0x5d3336(0x1a6)](this['dispose$']))[_0x5d3336(0x11d)](_0x2e9788=>{const _0xa6e6f7=_0x5d3336,_0x42bb1a=_0x2e9788[_0xa6e6f7(0x29c)];_0x42bb1a===g[_0xa6e6f7(0x296)]['UPDATE_CURSOR']&&this[_0xa6e6f7(0x35f)](_0x2e9788),_0x42bb1a===g[_0xa6e6f7(0x296)]['USERS_LEAVE']&&this[_0xa6e6f7(0x1e6)](_0x2e9788);}),this[_0x5d3336(0x1c2)](),this[_0x5d3336(0x1de)](this[_0x5d3336(0x370)]['onCommandExecuted'](_0x3ca245=>{const _0x4b47a9=_0x5d3336;if(this[_0x4b47a9(0x283)]&&_0x3ca245['id']===I[_0x4b47a9(0x376)]['id']&&_0x3ca245['params'][_0x4b47a9(0x1d3)]===this['unitID']){const _0x346866=_0x3ca245['params'];this[_0x4b47a9(0x1f1)](_0x346866['subUnitId'],_0x346866[_0x4b47a9(0x153)][0x0]);}})));}[_0x45d155(0x35f)](_0x150879){const _0x14b1f8=_0x45d155;var _0x28bb20,_0xdf7948;const {memberID:_0x74b37f,selection:_0x257d74}=_0x150879['data'],{sheetName:_0x44bb7b,range:_0x3e6068}=Te['deserializeRangeWithSheet'](_0x257d74),_0xb49666={'name':(_0xdf7948=(_0x28bb20=this[_0x14b1f8(0x2e4)][_0x14b1f8(0x185)](this[_0x14b1f8(0x173)],_0x74b37f))==null?void 0x0:_0x28bb20[_0x14b1f8(0x1f9)])!=null?_0xdf7948:_0x14b1f8(0x1e2),'range':this['_getMergeRange'](_0x44bb7b,_0x3e6068),'sheetID':_0x44bb7b,'color':this[_0x14b1f8(0x205)][_0x14b1f8(0x136)](_0x74b37f),'selection':_0x257d74},_0x5bcd65=this[_0x14b1f8(0x311)];_0x5bcd65[_0x14b1f8(0x312)](_0x74b37f,_0xb49666),this[_0x14b1f8(0x181)][_0x14b1f8(0x27a)](_0x5bcd65);}[_0x45d155(0x1e6)](_0x880b93){const _0x27276a=_0x45d155,{memberID:_0x1fc152}=_0x880b93[_0x27276a(0x2df)],_0x44cdfc=this[_0x27276a(0x311)];_0x44cdfc[_0x27276a(0x2ee)](_0x1fc152),this[_0x27276a(0x181)][_0x27276a(0x27a)](_0x44cdfc);}[_0x45d155(0x2ce)](_0x5619be,_0x5173a4){const _0x287966=_0x45d155;var _0x4e097c,_0x5c5c9c;const _0x19071d=(_0x5c5c9c=(_0x4e097c=this[_0x287966(0x291)][_0x287966(0x10e)](this[_0x287966(0x173)]))==null?void 0x0:_0x4e097c['getSheetBySheetId'](_0x5619be))==null?void 0x0:_0x5c5c9c['getMergeData']();return(_0x19071d==null?void 0x0:_0x19071d['find'](_0x31a2ce=>a['Rectangle'][_0x287966(0x271)](_0x31a2ce,_0x5173a4)))||_0x5173a4;}[_0x45d155(0x1c2)](){const _0x1cdb7a=_0x45d155,_0x3c7aa8=new a['DisposableCollection'](),_0x5d5138=vt(),_0x23a27e=()=>{const _0x489a6e=_0x15df;_0x3c7aa8[_0x489a6e(0x124)]();const _0xf78130=(_0xd1d8ac,_0x136c51,_0x41617a,_0x17c2b2)=>{const _0x2a0cd3=_0x489a6e;let _0x1002fd=[];switch(_0xd1d8ac['id']){case I[_0x2a0cd3(0x2ca)][_0x2a0cd3(0x138)]:{_0x1002fd=I[_0x2a0cd3(0x317)](_0xd1d8ac,_0x17c2b2);break;}case I[_0x2a0cd3(0x2ca)][_0x2a0cd3(0x19f)]:{_0x1002fd=I[_0x2a0cd3(0x1fe)](_0xd1d8ac,_0x17c2b2);break;}case I['EffectRefRangId'][_0x2a0cd3(0x212)]:{_0x1002fd=I[_0x2a0cd3(0x1fc)](_0xd1d8ac,_0x17c2b2);break;}case I[_0x2a0cd3(0x2ca)][_0x2a0cd3(0x1f8)]:{_0x1002fd=I[_0x2a0cd3(0x1ba)](_0xd1d8ac,_0x17c2b2);break;}case I['EffectRefRangId'][_0x2a0cd3(0x219)]:{_0x1002fd=I['handleInsertRangeMoveRight'](_0xd1d8ac,_0x17c2b2);break;}case I['EffectRefRangId'][_0x2a0cd3(0x150)]:{_0x1002fd=I['handleInsertRow'](_0xd1d8ac,_0x17c2b2);break;}case I['EffectRefRangId']['MoveRangeCommandId']:{_0x1002fd=I['handleMoveRange'](_0xd1d8ac,_0x17c2b2);break;}case I[_0x2a0cd3(0x2ca)][_0x2a0cd3(0x305)]:{_0x1002fd=I[_0x2a0cd3(0x304)](_0xd1d8ac,_0x17c2b2);break;}case I[_0x2a0cd3(0x2ca)][_0x2a0cd3(0x2a8)]:{_0x1002fd=I[_0x2a0cd3(0x1e8)](_0xd1d8ac,_0x17c2b2);break;}}const _0x1a3fb4=I[_0x2a0cd3(0x10d)](_0x1002fd,_0x17c2b2),_0x36fdf2=this['cursorInfo'][_0x2a0cd3(0x1c1)](_0x136c51);if(_0x36fdf2&&_0x1a3fb4){const _0x5872d9={..._0x36fdf2,'range':_0x1a3fb4};this['cursorInfo'][_0x2a0cd3(0x312)](_0x136c51,_0x5872d9),_0x5d5138(()=>{const _0x221a80=_0x2a0cd3,_0x555e4e=this[_0x221a80(0x1fb)]['registerRefRange'](_0x1a3fb4,_0x21e1e4=>(_0x555e4e[_0x221a80(0x124)](),_0xf78130(_0x21e1e4,_0x136c51,_0x41617a,_0x1a3fb4)));_0x3c7aa8[_0x221a80(0x199)](_0x555e4e);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x489a6e(0x2f4)]((_0x3267a6,_0xe84274)=>{const _0x572d96=_0x489a6e,{range:_0x4444d7,sheetID:_0x336128}=_0x3267a6,_0x938018=this[_0x572d96(0x1fb)][_0x572d96(0x2ea)](_0x4444d7,_0x2163f3=>(_0x938018['dispose'](),_0xf78130(_0x2163f3,_0xe84274,_0x336128,_0x4444d7)));_0x3c7aa8['add'](_0x938018);});};this[_0x1cdb7a(0x1de)](a[_0x1cdb7a(0x259)](this[_0x1cdb7a(0x181)]['subscribe'](()=>{_0x23a27e();})));}[_0x45d155(0x2f2)](){const _0x3e4da2=_0x45d155;var _0x2f80cd,_0x1ca1ac;if(this[_0x3e4da2(0x283)]=!0x0,((_0x2f80cd=this[_0x3e4da2(0x291)][_0x3e4da2(0x257)]())==null?void 0x0:_0x2f80cd[_0x3e4da2(0x194)]())!==this[_0x3e4da2(0x173)])return;const _0x10c3e1=(_0x1ca1ac=this['_injector'][_0x3e4da2(0x1c1)](I[_0x3e4da2(0x218)])['getCurrentSelections']())==null?void 0x0:_0x1ca1ac[0x0],_0x45d145=this[_0x3e4da2(0x291)]['getCurrentUnitForType'](a[_0x3e4da2(0x25b)][_0x3e4da2(0x2b4)])[_0x3e4da2(0x366)]();_0x10c3e1&&_0x45d145&&this['_updateLocalCursor'](_0x45d145[_0x3e4da2(0x2b9)](),_0x10c3e1);}['_toggleOffline'](){const _0x4808a4=_0x45d155;this[_0x4808a4(0x283)]=!0x1;}};me=dt([A(0x2,a[_0x45d155(0x313)](a['Injector'])),A(0x3,a['Inject'](Ce)),A(0x4,a[_0x45d155(0x313)](u['MemberService'])),A(0x5,a[_0x45d155(0x196)]),A(0x6,a['ICommandService']),A(0x7,a[_0x45d155(0x313)](I[_0x45d155(0x198)]))],me);var mt=Object[_0x45d155(0x2bd)],It=Object[_0x45d155(0x2da)],gt=(_0x4736a1,_0x58d13f,_0x409a43,_0x57cf9e)=>{for(var _0x5a6d5b=_0x57cf9e>0x1?void 0x0:_0x57cf9e?It(_0x58d13f,_0x409a43):_0x58d13f,_0xee6b49=_0x4736a1['length']-0x1,_0x10ab42;_0xee6b49>=0x0;_0xee6b49--)(_0x10ab42=_0x4736a1[_0xee6b49])&&(_0x5a6d5b=(_0x57cf9e?_0x10ab42(_0x58d13f,_0x409a43,_0x5a6d5b):_0x10ab42(_0x5a6d5b))||_0x5a6d5b);return _0x57cf9e&&_0x5a6d5b&&mt(_0x58d13f,_0x409a43,_0x5a6d5b),_0x5a6d5b;},ne=(_0x4ba361,_0x12f187)=>(_0x580431,_0x1ce22a)=>_0x12f187(_0x580431,_0x1ce22a,_0x4ba361);let x=class extends a[_0x45d155(0x30a)]{constructor(_0xacca8b,_0x30ce84,_0x6c1907){const _0x24cb75=_0x45d155;super(),_(this,_0x24cb75(0x1a9),new Map()),_(this,_0x24cb75(0x2c7),new S[(_0x24cb75(0x249))]()),(this[_0x24cb75(0x291)]=_0xacca8b,this[_0x24cb75(0x30f)]=_0x30ce84,this[_0x24cb75(0x30c)]=_0x6c1907,this[_0x24cb75(0x175)]());}[_0x45d155(0x124)](){const _0x6a8597=_0x45d155;super[_0x6a8597(0x124)](),this[_0x6a8597(0x2c7)][_0x6a8597(0x2b5)](),this['_entities']['forEach'](_0x188f95=>_0x188f95[_0x6a8597(0x124)]());}[_0x45d155(0x1aa)](_0x51bf33){const _0x447b49=_0x45d155;return this[_0x447b49(0x1a9)]['has'](_0x51bf33)?this[_0x447b49(0x1a9)][_0x447b49(0x1c1)](_0x51bf33)[_0x447b49(0x13d)]:this[_0x447b49(0x2c7)][_0x447b49(0x1f6)](S[_0x447b49(0x336)](_0x402bf0=>_0x402bf0[_0x447b49(0x173)]===_0x51bf33),S[_0x447b49(0x24f)](_0x2631a6=>_0x2631a6['cursorInfo$']));}[_0x45d155(0x175)](){const _0x1d6306=_0x45d155;this['_univerInstanceService'][_0x1d6306(0x2d9)](a[_0x1d6306(0x25b)]['UNIVER_SHEET'])[_0x1d6306(0x1f6)](S['takeUntil'](this[_0x1d6306(0x21e)]))[_0x1d6306(0x11d)](async _0x5835c5=>{const _0x30ba8c=_0x1d6306,_0x3c3460=_0x5835c5[_0x30ba8c(0x194)](),_0x2f2d50=await this[_0x30ba8c(0x23e)](_0x3c3460);this[_0x30ba8c(0x2c7)][_0x30ba8c(0x27a)](_0x2f2d50),this[_0x30ba8c(0x1a9)][_0x30ba8c(0x312)](_0x3c3460,_0x2f2d50);}),this['_univerInstanceService'][_0x1d6306(0x2d9)](a[_0x1d6306(0x25b)][_0x1d6306(0x2b0)])[_0x1d6306(0x1f6)](S['takeUntil'](this[_0x1d6306(0x21e)]))[_0x1d6306(0x1f6)](S['filter'](_0x2f2ee1=>!_0x2f2ee1['getUnitId']()['startsWith']('__')))[_0x1d6306(0x11d)](async _0x575c5b=>{const _0x3b58fa=_0x1d6306,_0x3176e3=_0x575c5b['getUnitId'](),_0x474fdf=await this['_startDocCollabCursor'](_0x3176e3);this[_0x3b58fa(0x2c7)][_0x3b58fa(0x27a)](_0x474fdf),this['_entities'][_0x3b58fa(0x312)](_0x3176e3,_0x474fdf);}),S[_0x1d6306(0x306)](this[_0x1d6306(0x291)]['getTypeOfUnitDisposed$'](a[_0x1d6306(0x25b)]['UNIVER_DOC']),this[_0x1d6306(0x291)][_0x1d6306(0x17a)](a[_0x1d6306(0x25b)][_0x1d6306(0x2b4)]))['pipe'](S[_0x1d6306(0x1a6)](this[_0x1d6306(0x21e)]))[_0x1d6306(0x11d)](_0x199020=>{const _0x5dd752=_0x1d6306,_0x5f38e5=_0x199020['getUnitId'](),_0x3c4e50=this[_0x5dd752(0x1a9)][_0x5dd752(0x1c1)](_0x5f38e5);_0x3c4e50&&(_0x3c4e50['dispose'](),this[_0x5dd752(0x1a9)][_0x5dd752(0x2ee)](_0x5f38e5));});}async['_startSheetCollabCursor'](_0x2fa74e){const _0x519088=_0x45d155,_0x11e4d3=await this[_0x519088(0x30c)][_0x519088(0x28b)](_0x2fa74e),_0x433441=this['_injector'][_0x519088(0x12e)](me,_0x2fa74e,_0x11e4d3);return _0x433441[_0x519088(0x26f)](),_0x433441;}async[_0x45d155(0x207)](_0x3fb4ec){const _0x58abbd=_0x45d155,_0x54b6e8=await this['_collabSessionService'][_0x58abbd(0x28b)](_0x3fb4ec),_0x51721f=this[_0x58abbd(0x30f)][_0x58abbd(0x12e)](ve,_0x3fb4ec,_0x54b6e8);return _0x51721f[_0x58abbd(0x26f)](),_0x51721f;}};x=gt([ne(0x0,a[_0x45d155(0x196)]),ne(0x1,a[_0x45d155(0x313)](a['Injector'])),ne(0x2,a[_0x45d155(0x313)](u['CollaborationSessionService']))],x);const V=0x14,Pe=0xc8,ie=0x4,pt=0x5;function Ct(_0x48a667,_0x382fb0){const _0x281fa7=_0x45d155;let {radius:_0x20c25a,width:_0x423567,height:_0x39ff4f}=_0x382fb0;_0x20c25a=_0x20c25a!=null?_0x20c25a:0x0,_0x423567=_0x423567!=null?_0x423567:0x1e,_0x39ff4f=_0x39ff4f!=null?_0x39ff4f:0x1e;let _0x509888=0x0,_0x5372e2=0x0,_0x43810c=0x0;_0x509888=_0x5372e2=_0x43810c=Math[_0x281fa7(0x2bc)](_0x20c25a,_0x423567/0x2,_0x39ff4f/0x2),_0x48a667['beginPath'](),_0x48a667[_0x281fa7(0x168)](_0x509888,0x0),_0x48a667[_0x281fa7(0x260)](_0x423567-_0x5372e2,0x0),_0x48a667[_0x281fa7(0x2d5)](_0x423567-_0x5372e2,_0x5372e2,_0x5372e2,Math['PI']*0x3/0x2,0x0,!0x1),_0x48a667['lineTo'](_0x423567,_0x39ff4f-_0x43810c),_0x48a667[_0x281fa7(0x2d5)](_0x423567-_0x43810c,_0x39ff4f-_0x43810c,_0x43810c,0x0,Math['PI']/0x2,!0x1),_0x48a667[_0x281fa7(0x260)](0x0,_0x39ff4f),_0x48a667['lineTo'](0x0,_0x509888),_0x48a667['arc'](_0x509888,_0x509888,_0x509888,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x48a667[_0x281fa7(0x31b)](),_0x382fb0['fill']&&(_0x48a667['save'](),_0x48a667[_0x281fa7(0x1d2)]=_0x382fb0['fill'],_0x382fb0[_0x281fa7(0x1b2)]===_0x281fa7(0x299)?_0x48a667[_0x281fa7(0x26a)]('evenodd'):_0x48a667['fill'](),_0x48a667[_0x281fa7(0x12c)]());}class ee extends p['Shape']{constructor(_0x5f46db,_0x53e955){const _0xdc36c4=_0x45d155;super(_0x5f46db,_0x53e955),_(this,'color'),_(this,_0xdc36c4(0x1cc)),(this[_0xdc36c4(0x1ae)]=_0x53e955==null?void 0x0:_0x53e955[_0xdc36c4(0x1ae)],this[_0xdc36c4(0x1cc)]=_0x53e955==null?void 0x0:_0x53e955[_0xdc36c4(0x1cc)]);}static[_0x45d155(0x2b7)](_0x233028,_0xe20de5){const _0x16ea75=_0x45d155,{text:_0x47215f,color:_0x5b1dcc}=_0xe20de5;_0x233028[_0x16ea75(0x117)](),_0x233028[_0x16ea75(0x330)]=_0x16ea75(0x12a);const _0x252c37=_0x233028[_0x16ea75(0x174)](_0x47215f)[_0x16ea75(0x335)],_0x4e692e=Math['min'](_0x252c37+0x2*ie,Pe);Ct(_0x233028,{'height':V,'radius':0x4,'width':_0x4e692e,'fill':_0x5b1dcc,'evented':!0x1}),_0x233028[_0x16ea75(0x1d2)]='#FFF';const _0x4e8724=ie,_0x471990=V-pt,_0x3865ec=Pe-0x2*ie;if(_0x252c37>_0x3865ec){let _0x42512e='',_0x3e41c6=0x0;for(const _0x45af05 of _0x47215f){const _0x42d2b7=_0x233028[_0x16ea75(0x174)](_0x45af05)[_0x16ea75(0x335)];if(_0x3e41c6+_0x42d2b7<=_0x3865ec-_0x233028[_0x16ea75(0x174)](_0x16ea75(0x2cd))['width'])_0x42512e+=_0x45af05,_0x3e41c6+=_0x42d2b7;else{_0x42512e+=_0x16ea75(0x2cd);break;}}_0x233028[_0x16ea75(0x1b0)](_0x42512e,_0x4e8724,_0x471990);}else _0x233028[_0x16ea75(0x1b0)](_0x47215f,_0x4e8724,_0x471990);_0x233028['restore']();}[_0x45d155(0x21d)](_0x3ec3b3){const _0x55562c=_0x45d155;ee[_0x55562c(0x2b7)](_0x3ec3b3,this);}}const re=_0x45d155(0x22e),bt=_0x45d155(0x18f),Et=_0x45d155(0x28f),H=0x6,Rt=1.5,oe=0x4,Tt=1.5,Ot=_0x45d155(0x161);class Me{constructor(_0x295cf8,_0xbd2e2b,_0x43dadc,_0x2ec677){const _0x42bf17=_0x45d155;_(this,'_shapes',[]),_(this,_0x42bf17(0x195),null),_(this,_0x42bf17(0x285),null),_(this,_0x42bf17(0x28e),null),_(this,_0x42bf17(0x351),null),_(this,_0x42bf17(0x160),null),(this[_0x42bf17(0x158)]=_0x295cf8,this[_0x42bf17(0x15a)]=_0xbd2e2b,this[_0x42bf17(0x2fc)]=_0x43dadc,this['_document']=_0x2ec677,this[_0x42bf17(0x2a6)]());}set[_0x45d155(0x2e6)](_0x33a25b){const _0x41ab51=_0x45d155;_0x33a25b?(this[_0x41ab51(0x28e)]&&this[_0x41ab51(0x28e)][_0x41ab51(0x193)](),this[_0x41ab51(0x285)]&&this['_textBubble'][_0x41ab51(0x25e)]()):(this[_0x41ab51(0x28e)]&&this[_0x41ab51(0x28e)]['show'](),this[_0x41ab51(0x285)]&&this[_0x41ab51(0x285)][_0x41ab51(0x193)]());}[_0x45d155(0x124)](){const _0x29b176=_0x45d155;for(const _0x30e51e of this[_0x29b176(0x204)])_0x30e51e[_0x29b176(0x124)]();this[_0x29b176(0x285)]&&this[_0x29b176(0x285)][_0x29b176(0x124)](),this[_0x29b176(0x28e)]&&this['_anchorDot'][_0x29b176(0x124)](),this[_0x29b176(0x195)]&&this[_0x29b176(0x195)][_0x29b176(0x124)](),this[_0x29b176(0x160)]&&this['_eventUnsubscribe']();}['_render'](){const _0x470228=_0x45d155;var _0x4220f8;const {_docSkeleton:_0x35bc08,_document:_0xadaaa0}=this,{color:_0x3b77cf,name:_0x13e310,ranges:_0x29103b}=this[_0x470228(0x158)],_0x54b4b7=_0xadaaa0[_0x470228(0x11f)](),{docsLeft:_0x40b354,docsTop:_0x24ce33}=_0x54b4b7,_0x3d5d7f=new b[(_0x470228(0x235))](_0x54b4b7,_0x35bc08);for(const {startOffset:_0x20fe16,endOffset:_0x54dbd2,rangeType:_0x14b90d,segmentId:_0x21961a,segmentPage:_0x4942d4,collapsed:_0x63ce1a,isActive:_0x5e5550}of _0x29103b){const _0x2f87a7=_0x35bc08[_0x470228(0x325)](_0x20fe16,!0x0,_0x21961a,_0x4942d4);let _0x827e1a=_0x35bc08['findNodePositionByCharIndex'](_0x54dbd2,!0x0,_0x21961a,_0x4942d4);if(_0x827e1a==null&&(_0x827e1a=_0x35bc08[_0x470228(0x325)](_0x54dbd2-0x1,!0x1,_0x21961a,_0x4942d4)),_0x5e5550){const {contentBoxPointGroup:_0x3cf261}=_0x3d5d7f[_0x470228(0x27d)](_0x827e1a,_0x827e1a);if(_0x3cf261[_0x470228(0x1fd)]===0x0)continue;this[_0x470228(0x179)](_0x3b77cf,_0x3cf261,_0x40b354,_0x24ce33,_0x13e310),this[_0x470228(0x160)]=this[_0x470228(0x1b8)]();}if(_0x2f87a7&&_0x827e1a){if(_0x14b90d===a[_0x470228(0x319)][_0x470228(0x12d)]){const _0xe15d91=new b['NodePositionConvertToRectRange'](_0x54b4b7,_0x35bc08),{pointGroup:_0x7b6a37}=(_0x4220f8=_0xe15d91[_0x470228(0x27d)](_0x2f87a7,_0x827e1a))!=null?_0x4220f8:{};if(_0x7b6a37==null||_0x7b6a37[_0x470228(0x1fd)]===0x0)continue;this[_0x470228(0x316)](_0x3b77cf,_0x7b6a37,_0x40b354,_0x24ce33);}else{if(!_0x63ce1a){const {borderBoxPointGroup:_0x39bdca}=_0x3d5d7f[_0x470228(0x27d)](_0x2f87a7,_0x827e1a);if(_0x39bdca[_0x470228(0x1fd)]===0x0)continue;this[_0x470228(0x222)](_0x3b77cf,_0x39bdca,_0x40b354,_0x24ce33);}}}}}[_0x45d155(0x179)](_0x419449,_0x33eee9,_0x56f887,_0x15d662,_0x47ce2f){const _0x2b4743=_0x45d155,_0x3f3da4=this[_0x2b4743(0x361)](_0x33eee9),{left:_0x21a475,top:_0xf177ef,height:_0x24de6b}=_0x3f3da4,_0x41a1a4=this[_0x2b4743(0x20b)](),_0x2374b9=Tt/_0x41a1a4,_0x3b0a74=new p[(_0x2b4743(0x14a))](re+a[_0x2b4743(0x37a)][_0x2b4743(0x31a)](H),{'left':_0x21a475+_0x56f887-_0x2374b9,'top':_0xf177ef+_0x15d662,'height':_0x24de6b,'width':Rt,'fill':_0x419449||p[_0x2b4743(0x1d9)](a[_0x2b4743(0x2af)][_0x2b4743(0x2fd)],0x0),'strokeWidth':_0x2374b9,'stroke':Ot,'evented':!0x0});this[_0x2b4743(0x195)]=_0x3b0a74,this['_scene'][_0x2b4743(0x276)](_0x3b0a74,b['TEXT_RANGE_LAYER_INDEX']);const _0x340ad8=new p[(_0x2b4743(0x14a))](re+a[_0x2b4743(0x37a)][_0x2b4743(0x31a)](H),{'left':_0x21a475+_0x56f887-_0x2374b9,'top':_0xf177ef+_0x15d662-oe/0x2,'height':oe,'width':oe,'fill':_0x419449||p['getColor'](a[_0x2b4743(0x2af)][_0x2b4743(0x2fd)],0x0),'strokeWidth':0x0,'stroke':_0x419449||p[_0x2b4743(0x1d9)](a[_0x2b4743(0x2af)][_0x2b4743(0x2fd)],0x0),'evented':!0x1});this['_anchorDot']=_0x340ad8,this[_0x2b4743(0x15a)]['addObject'](_0x340ad8,b[_0x2b4743(0x167)]);const _0x304b99=new ee(re+a['Tools'][_0x2b4743(0x31a)](H),{'left':_0x21a475+_0x56f887-_0x2374b9,'top':_0xf177ef+_0x15d662-V,'text':_0x47ce2f,'color':_0x419449});this[_0x2b4743(0x285)]=_0x304b99,this['_scene'][_0x2b4743(0x276)](_0x304b99,b[_0x2b4743(0x167)]),this[_0x2b4743(0x2e6)]=!0x1;}['_handleHover'](){const _0x3d9364=_0x45d155,_0x3b8264=this['_anchor']['onPointerEnter$']['subscribeEvent'](()=>{const _0x59bd38=_0x15df;this[_0x59bd38(0x2e6)]=!0x0;}),_0x3ed158=this[_0x3d9364(0x195)][_0x3d9364(0x35d)]['subscribeEvent'](()=>{const _0x2a69b8=_0x3d9364;this[_0x2a69b8(0x351)]&&clearTimeout(this[_0x2a69b8(0x351)]),this[_0x2a69b8(0x351)]=setTimeout(()=>{const _0xba3494=_0x2a69b8;this[_0xba3494(0x2e6)]=!0x1;},0x7d0);});return()=>{const _0x251caf=_0x3d9364;_0x3b8264[_0x251caf(0x118)](),_0x3ed158[_0x251caf(0x118)]();};}[_0x45d155(0x222)](_0x5e1fc8,_0x2f195d,_0x5a3f2c,_0xdc6a8){const _0x640c36=_0x45d155,_0x21e4ec=new a[(_0x640c36(0x262))](_0x5e1fc8)['setAlpha'](0.2)[_0x640c36(0x268)](),_0x282b51=new p[(_0x640c36(0x1b3))](bt+a[_0x640c36(0x37a)]['generateRandomId'](H),{'pointsGroup':_0x2f195d,'fill':_0x21e4ec||p['getColor'](a['COLORS'][_0x640c36(0x2fd)],0.2),'left':_0x5a3f2c,'top':_0xdc6a8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x640c36(0x204)][_0x640c36(0x374)](_0x282b51),this['_scene'][_0x640c36(0x276)](_0x282b51,b[_0x640c36(0x167)]);}[_0x45d155(0x316)](_0x3d704d,_0x590925,_0x5045ca,_0x5bd166){const _0x53f51f=_0x45d155,_0xf3e5bd=new a[(_0x53f51f(0x262))](_0x3d704d)['setAlpha'](0.2)[_0x53f51f(0x268)](),_0x4e98ea=new p[(_0x53f51f(0x1b3))](Et+a[_0x53f51f(0x37a)][_0x53f51f(0x31a)](H),{'pointsGroup':_0x590925,'fill':_0xf3e5bd||p['getColor'](a[_0x53f51f(0x2af)][_0x53f51f(0x2fd)],0.2),'left':_0x5045ca,'top':_0x5bd166,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x53f51f(0x204)][_0x53f51f(0x374)](_0x4e98ea),this[_0x53f51f(0x15a)][_0x53f51f(0x276)](_0x4e98ea,b[_0x53f51f(0x167)]);}[_0x45d155(0x361)](_0x128ba4){const _0x8ddeb8=_0x128ba4[0x0],_0x5d1316=_0x8ddeb8[0x0],_0x52f85f=_0x8ddeb8[0x2],{x:_0x2ec1a7,y:_0x1edccc}=_0x5d1316,{x:_0x226710,y:_0xd01ed5}=_0x52f85f;return{'left':_0x2ec1a7,'top':_0x1edccc,'width':_0x226710-_0x2ec1a7,'height':_0xd01ed5-_0x1edccc};}[_0x45d155(0x20b)](){const _0x4cc8f6=_0x45d155,{scaleX:_0x3b034b,scaleY:_0x14689a}=this[_0x4cc8f6(0x15a)][_0x4cc8f6(0x27f)]();return Math['max'](_0x3b034b,_0x14689a);}}var Dt=Object[_0x45d155(0x2bd)],Pt=Object[_0x45d155(0x2da)],Mt=(_0x1037ef,_0x384916,_0x1fb150,_0x433cda)=>{const _0x39e81c=_0x45d155;for(var _0x50ee70=_0x433cda>0x1?void 0x0:_0x433cda?Pt(_0x384916,_0x1fb150):_0x384916,_0x452789=_0x1037ef[_0x39e81c(0x1fd)]-0x1,_0x181ea1;_0x452789>=0x0;_0x452789--)(_0x181ea1=_0x1037ef[_0x452789])&&(_0x50ee70=(_0x433cda?_0x181ea1(_0x384916,_0x1fb150,_0x50ee70):_0x181ea1(_0x50ee70))||_0x50ee70);return _0x433cda&&_0x50ee70&&Dt(_0x384916,_0x1fb150,_0x50ee70),_0x50ee70;},G=(_0x3b73c0,_0x100456)=>(_0x10b7b5,_0xb3848d)=>_0x100456(_0x10b7b5,_0xb3848d,_0x3b73c0);let Ie=class extends a[_0x45d155(0x30a)]{constructor(_0x4811eb,_0x132dfc,_0x3f80bb,_0xd1cbe8,_0x2c79b7){const _0x262666=_0x45d155;super(),_(this,_0x262666(0x1b6),[]),_(this,_0x262666(0x22d),[]),(this[_0x262666(0x2dc)]=_0x4811eb,this['_docSkeletonManagerService']=_0x132dfc,this['_collabCursorController']=_0x3f80bb,this[_0x262666(0x370)]=_0xd1cbe8,this[_0x262666(0x33d)]=_0x2c79b7,this[_0x262666(0x175)]());}['_init'](){const _0x763e49=_0x45d155,_0x39b709=this[_0x763e49(0x2dc)][_0x763e49(0x1d3)],_0x12882f=this[_0x763e49(0x1af)];this['disposeWithMe'](S[_0x763e49(0x341)]([this['_collabCursorController'][_0x763e49(0x1aa)](_0x39b709),this['_themeService']['currentTheme$']])['pipe']($[_0x763e49(0x309)](([_0x4b1fd0,_0x765271])=>({'skeleton':_0x12882f['getSkeleton'](),'cursors':[..._0x4b1fd0[_0x763e49(0x147)]()][_0x763e49(0x282)](_0x753fcd=>({..._0x753fcd,'color':_0x765271[_0x753fcd[_0x763e49(0x1ae)]]}))})))[_0x763e49(0x11d)](_0x201bb8=>{const _0x464166=_0x763e49;if(this[_0x464166(0x32a)](),_0x201bb8){const {skeleton:_0x928cd8,cursors:_0x353433}=_0x201bb8;this[_0x464166(0x2fe)](_0x928cd8,_0x353433);}})),this['_initResize'](),this[_0x763e49(0x2e0)]();}[_0x45d155(0x2fe)](_0x45887c,_0x11a3b4){const _0x142368=_0x45d155,{scene:_0x57fcda,mainComponent:_0x1ec8c3}=this['_context'],_0x541e28=_0x11a3b4['map'](_0xc6a13d=>new Me(_0xc6a13d,_0x57fcda,_0x45887c,_0x1ec8c3));this['_cursorShapes']=_0x541e28,this[_0x142368(0x22d)]=_0x11a3b4;}[_0x45d155(0x331)](){const _0x34173a=_0x45d155;this['_removeCollabCursors']();const {scene:_0x5558cd,mainComponent:_0x47c630}=this[_0x34173a(0x2dc)],_0x14164d=this[_0x34173a(0x1af)][_0x34173a(0x200)](),_0x3a3282=this[_0x34173a(0x22d)][_0x34173a(0x309)](_0x28b114=>new Me(_0x28b114,_0x5558cd,_0x14164d,_0x47c630));this[_0x34173a(0x1b6)]=_0x3a3282;}[_0x45d155(0x32a)](){const _0x4f69aa=_0x45d155;this[_0x4f69aa(0x1b6)]['forEach'](_0x1bf622=>_0x1bf622['dispose']()),this[_0x4f69aa(0x1b6)]=[];}[_0x45d155(0x2e0)](){const _0x4443a0=_0x45d155,_0x1cf849=[b[_0x4443a0(0x1a4)]['id']];this[_0x4443a0(0x1de)](this[_0x4443a0(0x370)][_0x4443a0(0x2dd)](_0x5e3c10=>{const _0x8cc1fb=_0x4443a0;_0x1cf849['includes'](_0x5e3c10['id'])&&_0x5e3c10[_0x8cc1fb(0x2e1)][_0x8cc1fb(0x1d3)]===this[_0x8cc1fb(0x2dc)][_0x8cc1fb(0x1d3)]&&this[_0x8cc1fb(0x331)]();}));}[_0x45d155(0x23f)](){const _0x51a5f9=_0x45d155;this[_0x51a5f9(0x1de)](a['fromEventSubject'](this[_0x51a5f9(0x2dc)][_0x51a5f9(0x256)]['onTransformChange$'])[_0x51a5f9(0x1f6)]($[_0x51a5f9(0x336)](_0x391d28=>_0x391d28['type']===p[_0x51a5f9(0x275)][_0x51a5f9(0x13f)]),$[_0x51a5f9(0x1ef)](0x10))[_0x51a5f9(0x11d)](()=>{const _0x3c0cb5=_0x51a5f9;this[_0x3c0cb5(0x331)]();}));}};Ie=Mt([G(0x1,a['Inject'](X[_0x45d155(0x348)])),G(0x2,a['Inject'](x)),G(0x3,a['ICommandService']),G(0x4,a['Inject'](a['ThemeService']))],Ie);function _0x2d21(){const _0x32eb6a=['react.element','_clearOtherTimers','@univerjs-pro/collaboration','pipe','from','InsertRangeMoveDownCommandId','name','defaultProps','_refRangeService','handleInsertCol','length','handleDeleteRangeMoveUp','displayName','getSkeleton','_transformUndoRedoStack','@univerjs/ui','getItem','_shapes','_colorAssignService','has','_startDocCollabCursor','useObservable','clearInterval','YUUMI_UNABLE_LOAD_URL','_getScale','_saveCache','isEditing','Fragment','url(#on-line-single_clip0_910_349)','ranges','_id','InsertColCommandId','concat','on-line-single','_messageService','IUIPartsService','UNDEFINED','SheetsSelectionsService','InsertRangeMoveRightCommandId','DocSelectionManagerService','MessageType','DependentOn','_draw','dispose$','WebURLService','APPLY_DUPLICATED','_beforeCloseService','_drawTextRange','updateOfflineData','exhaustSavingTask','Module','saveImage','ENSURE_SNAPSHOT_EXECUTION','0\x200\x2016\x2016','on-line-single_clip0_910_349','type','CollaborationController','off-line-single','_cursors','collab-text-anchor-','pushState','setActiveRange','roomMembers$','setParam','xlink:href','getCoordByCell','NodePositionConvertToCursor','univer-online-status-icon','collaboration-client.offline-data-not-saved','8968nJrhTQ','red300','split','backgroundColor','getConfig','BehaviorSubject','_startSheetCollabCursor','_initResize','ThemeService','_send','_revisionService','makeDirty','DocStateChangeManagerService','_instanceService','CONNECTOR_DATA_TOO_LARGE','_disabled','jiqing500','Subject','_uiPartsService','VIEW_MAIN','22SLYxRV','OTHER_CLIENT_EDITING','790QUtlkN','switchMap','row','CLOSE_ROOM','_urlService','ILogService','_name','prototype','engine','getFocusedUnit','APPLY_REJECT','toDisposable','uni.network.url-service','UniverInstanceType','_roomMembers$','_setupSubUnitSync','show','startColumn','lineTo','117693Ynizay','ColorKit','string','transformMutation','onlineStatusTitle','UnitStatus','_updateURLWithCurrentState','toRgbString','_handleEvent','fill','debounce','_docTransformSelectionsService','_httpService','roomMembers','init','COMPLETION_FINISHED','contains','ICommandService','for','_color','TRANSFORM_CHANGE_OBSERVABLE_TYPE','addObject','use','hasOwnProperty','defIds','next','SetTextSelectionsOperation','editingUnit','getRangePointData','_handleHeartbeatEvent','getAncestorScale','storage','univer-offline','flatMap','_online','_sheetSkeletonManagerService','_textBubble','getActiveRange','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','MUTATION','isArray','YUUMI_SUBSCRIPTION_NOT_FOUND','requireSession','createElement','LICENSE_MAX_UNITS_EXCEEDED','_anchorDot','collab-rect-range-','onRendered','_univerInstanceService','permission.title','APPLY_REVISION_CONFILICT','onlineStatusIcon','LOCAL_CACHE_INTERVAL_KEY','CollaborationEvent','onlineStatus','ref','evenodd','asObservable','_config','eventID','SheetSkeletonManagerService','CollaborationUIEventId','TOO_MANY_REQUESTS','permission.content','redoState','none','body','getMemberID','_assignedColors','_render','isActive','RemoveRowCommandId','_collabCursorController','_configService','ReactCurrentOwner','sessionStatus$','_session','_updateSubUnitFromURLParams','COLORS','UNIVER_DOC','Shape','collaboration.closeRoom','/run/','UNIVER_SHEET','complete','_transformService','drawWith','getDocRanges','getSheetId','Vector2','transformStateCache','min','defineProperty','_handleLeaveEvent','verdancy600','fromEvent','getRelativeToViewportCoord','USERS_LEAVE','SetWorksheetActivateCommand','history','_setupBeforeClosingHandler','collabStatus.notCollab','_entityInit$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','CollaborationStatus','EffectRefRangId','0\x200\x2017\x2016','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','...','_getMergeRange','_initEntityListener','univerjs-icon\x20univerjs-icon-','m1Prime','addClipboardHook','textRanges','Injector','arc','session.connection-failed','substring','IImageIoService','getTypeOfUnitAdded$','getOwnPropertyDescriptor','doc.mutation.rich-text-editing','_context','onCommandExecuted','AWAITING','data','_initCommandExecutedListener','params','_removeClearOtherTimer','transformRemoteChangeset','_memberService','_imageIoService','_hover','FETCH_MISS','_range','then','registerRefRange','addHandlerCallback','status$','m2Prime','delete','triggerDblclick','onStarting','316986PgQelj','_toggleOnline','_scheduleClearOtherTimer','forEach','startRow','SNAPSHOT_INVALID_SNAPSHOT','idSuffix','onPointerEnter$','online','getSheetBySheetId','top','_docSkeleton','black','_updateCollabCursors','runId','_localStorageService','runOnServer','isTransformMutationsWithChangesetSuccess','assign','handleIRemoveCol','RemoveColCommandId','merge','off-line-single_clip0_910_343','UPDATE_CURSOR','map','RxDisposable','INTERNAL_ERROR','_collabSessionService','ALREADY_EXISTS','touchDependencies','_injector','useDependency','cursorInfo','set','Inject','_notificationService','ITransformService','_drawRectRange','handleDeleteRangeMoveLeft','[RemoteUniscriptService]:\x20no\x20focused\x20unit','DOC_RANGE_TYPE','generateRandomId','closePath','_initStatusListener','apply','_collabCursorState$','_scheduleSaving','with','_transformHistoryAndStateStack','transform','_colorIndex','attrs','findNodePositionByCharIndex','univer-online-status-title','getCurrent','collaboration.single-unit.warning','YUUMI_RATE_OVER_LIMIT','_removeCollabCursors','_hovered','LocaleService','setShapeProps','_docSyncEditingCollabCursorService','replaceState','font','_refreshCollabCursors','setItem','tag','IURLService','width','filter','LICENSE_EXPORT_SIZE_EXCEEDED','registerRenderModule','hovered','svg','_transformPreviousActiveRange','ILocalCacheService','_themeService','children','path','entityInit$','combineLatest','entries','transformByState','WebBrowserSingleActiveUnitService','DesktopCollaborationStatusDisplayController','_getSheetObject','_labelPosition','DocSkeletonManagerService','10oFxBmu','collabCursorState$','UNRECOGNIZED','removeParam','_localCacheService','NO_OTHER_CLIENTS_EDITING','deepClone','IBeforeCloseService','_hideTimer','NOT_COLLAB','8359496AGZPUx','@univerjs/docs-ui','extend','_renderManagerService','@univerjs/sheets','CollaborationUIEventService','ILocalStorageService','urlChange$','loadUnit','clearTimeout','onPointerLeave$','subscribeEvent','_onCursorUpdate','JOIN_ROOM_FAILED','_getAnchorBounding','unload','_docTransformStateCacheService','url(#off-line-single_clip0_910_343)','_unitOnClients','getActiveSheet','toString','stringify','LICENSE_IMPORT_SIZE_EXCEEDED','_heartbeatTimer','className','_collaborationController','trim','url(#$1','UniverCollaborationClientUIPlugin','_commandService','_backgroundColor','height','debounceTime','push','newValue','SetSelectionsOperation','current','CONFLICT','colorChannel1','Tools','Warning','some','IRenderManagerService','round','getCellPositionByOffset','runRefRangeMutations','getUniverSheetInstance','collabStatus.fetchMiss','saveTaskMap','Plugin','Error','_lastPointer','APPLY_NON_SEQUENTIAL_REVISION','_localeService','location','save','unsubscribe','react','bottom','RemoteUniscriptService','ONLINE','subscribe','@univerjs/sheets-ui','getOffsetConfig','APPLY_PERMISSION_DENIED','useCallback','activeSheet$','_selfUnitIDs','dispose','key','forwardRef','_initStatusComponent','addEventListener','@univerjs/rpc','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_cachedData','restore','RECT','createInstance','IDocClipboardService','transformSelections','unshift','translate(.97)','setInterval','getValue','memberID','assignAColorForMemberID','PERMISSION_DENIED','DeleteRangeMoveLeftCommandId','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','collabStatus.synced','OFFLINE','BuiltInUIPart','cursorInfo$','IConfigService','resize','getLocalCacheKey','SUBMIT_CHANGESET_TIMEOUT','1203458dtEpWb','disposeUnit','selection','transformIMECache','_toggleOffline','values','OTHER_CLIENTS_EDITING','error','Rect','UniverIcon','_docStateChangeManagerService','CollaborationDataLoaderController','@univerjs/drawing','getParam','InsertRowCommandId','offline','IMessageService','selections','@univerjs-pro/collaboration-client','_registerRenderDependencies','indexOf','NOT_FOUND','_cursor','random','_scene','focused$','getRenderById','_initEvent','exports','undoState','_eventUnsubscribe','rgba(255,\x20255,\x20255,\x200.01)','session.will-retry','jsxs','M0\x200H16V16H0z','setUndoRedoMutationParamsCache','_getSaveTimeout','TEXT_RANGE_LAYER_INDEX','moveTo','registerDependencies','_logService','_scheduleHeartbeat','CollaborationStatusDisplay','SHEET_VIEWPORT_KEY','9075372bhuJkL','subunit','searchParams','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','enableLocalCache','unitID','measureText','_init','call','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_docClipboardService','_drawAnchor','getTypeOfUnitDisposed$','FromArray','collab-client.tooltip.reconnect','17508PXVxFE','[CollaborationDataLoaderController]','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','onMouseMove','_cursorInfo$','override','debug','_initDependencies','getMember','getOwnPropertySymbols','send','imageSourceType','column','transformMutationsWithChangeset','distinctUntilChanged','univer-flex\x20univer-items-center','WebSocketService','href','collab-text-range-','parse','SNAPSHOT_HAS_BEEN_REMOVED','size','hide','getUnitId','_anchor','IUniverInstanceService','Tooltip','RefRangeService','add','LOCAL_CACHE_INTERVAL','code','_syncEditingCollabCursorService','isTransformMutationFailure','_dataLoaderService','DeleteRangeMoveUpCommandId','@univerjs/docs','TEXT','_ensureSubject','SessionStatus','SetDocZoomRatioOperation','mergeOverrideWithDependencies','takeUntil','event$','symbol','_entities','getCollabCursors$','Disposable','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','AWAITING_WITH_PENDING','color','_docSkeletonManagerService','fillText','icon','fillRule','RegularPolygon','getVpScrollXYInfoByPosToVp','collabStatus.conflict','_cursorShapes','syncEditingCollabCursor','_handleHover','getUndoRedoMutationParamsCache','handleInsertRangeMoveDown','#fff','_registerDependencies','div','Workbook','getUnhiddenWorksheets','onLocalMutation','get','_onRefRangeChange','YUUMI_URL_COL_OUT_OF_RANGE','DocIMEInputManagerService','_unitStatus','defs','jsx','blue400','INVALID_ARGUMENT','@univerjs/design','UNAUTHENTICATED','text','@univerjs/network','LICENSE_DISTRO_REJECTED','disableLocalCache','sheetID','mutations','fillStyle','unitId','object','collabStatus.offline','currentColor','1em','clipPath','getColor','14TpadfT','connectInjector','registerComponent','_collaborationUIEventService','disposeWithMe','_saveTaskMap','39lZVfLJ','addObjects','Unknown\x20user','currentSkeleton$','getCurrentRevOfUnit','_handleJoinEvent','_onCursorDelete','_status$','handleIRemoveRow','post','pluginName','popstate','unit','skeleton','executeCommand','throttleTime','function','_updateLocalCursor','sheetId'];_0x2d21=function(){return _0x32eb6a;};return _0x2d21();}const Ut=0x1,Nt=1.5;class je extends p[_0x45d155(0x2b1)]{constructor(_0x3a1532,_0x4e97aa){const _0x3d865a=_0x45d155;super(_0x3a1532,_0x4e97aa),_(this,_0x3d865a(0x274)),_(this,_0x3d865a(0x32b),!0x1),_(this,_0x3d865a(0x2e8)),_(this,_0x3d865a(0x254),''),_(this,'_labelPosition',_0x3d865a(0x2fb)),_(this,'_backgroundColor'),(_0x4e97aa&&this['setShapeProps'](_0x4e97aa),this[_0x3d865a(0x2f8)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x3d865a(0x35d)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x45d155(0x32d)](_0x1e6908){const _0x52a494=_0x45d155;var _0x4cc2,_0x17af4d,_0x3bd580,_0xe2d21f,_0x503c18,_0x4fa62f;this['_color']=(_0x4cc2=_0x1e6908[_0x52a494(0x1ae)])!=null?_0x4cc2:this[_0x52a494(0x274)],this['_hovered']=(_0x17af4d=_0x1e6908[_0x52a494(0x339)])!=null?_0x17af4d:this[_0x52a494(0x32b)],this['_range']=(_0x3bd580=_0x1e6908['range'])!=null?_0x3bd580:this[_0x52a494(0x2e8)],this[_0x52a494(0x254)]=(_0xe2d21f=_0x1e6908['name'])!=null?_0xe2d21f:this[_0x52a494(0x254)],this[_0x52a494(0x347)]=(_0x503c18=_0x1e6908['labelPosition'])!=null?_0x503c18:this[_0x52a494(0x347)],this[_0x52a494(0x371)]=(_0x4fa62f=_0x1e6908[_0x52a494(0x23b)])!=null?_0x4fa62f:this[_0x52a494(0x371)],this[_0x52a494(0x343)]({'width':_0x1e6908['width'],'height':_0x1e6908[_0x52a494(0x372)]});}[_0x45d155(0x180)](_0x46ed3e){const _0x49ebc8=_0x45d155,{row:_0x4aba23,column:_0x4ee6c1}=_0x46ed3e;if(_0x4aba23>=this[_0x49ebc8(0x2e8)][_0x49ebc8(0x2f5)]&&_0x4aba23<=this[_0x49ebc8(0x2e8)]['endRow']&&_0x4ee6c1>=this[_0x49ebc8(0x2e8)][_0x49ebc8(0x25f)]&&_0x4ee6c1<=this[_0x49ebc8(0x2e8)]['endColumn']){this[_0x49ebc8(0x32d)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x45d155(0x2ef)](_0x1de961){return!0x1;}['_draw'](_0x54103c){const _0x278ae0=_0x45d155;p['Rect'][_0x278ae0(0x2b7)](_0x54103c,{'width':this[_0x278ae0(0x335)],'height':this[_0x278ae0(0x372)],'strokeWidth':Nt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x278ae0(0x371)]}),this[_0x278ae0(0x32b)]&&(_0x54103c[_0x278ae0(0x117)](),_0x54103c[_0x278ae0(0x322)](0x1,0x0,0x0,0x1,this['width'],this[_0x278ae0(0x347)]===_0x278ae0(0x11a)?0x0:-V),ee['drawWith'](_0x54103c,{'text':this['_name'],'color':this[_0x278ae0(0x274)]}),_0x54103c['restore']());}}var wt=Object[_0x45d155(0x2bd)],Lt=Object['getOwnPropertyDescriptor'],At=(_0x21c770,_0x7dfb86,_0x138943,_0x1d6f25)=>{for(var _0xcf048d=_0x1d6f25>0x1?void 0x0:_0x1d6f25?Lt(_0x7dfb86,_0x138943):_0x7dfb86,_0x4fcacd=_0x21c770['length']-0x1,_0x2aedb1;_0x4fcacd>=0x0;_0x4fcacd--)(_0x2aedb1=_0x21c770[_0x4fcacd])&&(_0xcf048d=(_0x1d6f25?_0x2aedb1(_0x7dfb86,_0x138943,_0xcf048d):_0x2aedb1(_0xcf048d))||_0xcf048d);return _0x1d6f25&&_0xcf048d&&wt(_0x7dfb86,_0x138943,_0xcf048d),_0xcf048d;},ae=(_0x2bd03b,_0x94dc06)=>(_0x2e8698,_0x3fb57b)=>_0x94dc06(_0x2e8698,_0x3fb57b,_0x2bd03b);const yt=0x1389;let ge=class extends a[_0x45d155(0x30a)]{constructor(_0x1d9d0f,_0x2c57c2,_0x435e88,_0x3ecfe9){const _0x1bf011=_0x45d155;super(),_(this,_0x1bf011(0x22d),new Set()),_(this,_0x1bf011(0x113),null),(this[_0x1bf011(0x2dc)]=_0x1d9d0f,this['_sheetSkeletonManagerService']=_0x2c57c2,this[_0x1bf011(0x2a9)]=_0x435e88,this['_themeService']=_0x3ecfe9,this[_0x1bf011(0x175)]());}['_init'](){const _0x427163=_0x45d155;this[_0x427163(0x284)][_0x427163(0x1e3)]['pipe']($[_0x427163(0x1a6)](this[_0x427163(0x21e)]),$[_0x427163(0x24f)](_0xfe8445=>{const _0xbdea98=_0x427163;if(_0xfe8445){const _0x51425=_0xfe8445[_0xbdea98(0x1f2)];return S['combineLatest'](this[_0xbdea98(0x2a9)]['getCollabCursors$'](this[_0xbdea98(0x2dc)][_0xbdea98(0x1d3)]),this['_themeService']['currentTheme$'])['pipe']($[_0xbdea98(0x309)](([_0x3d9d60,_0x5f2aab])=>{const _0x423342=_0xbdea98,_0x325875=new Map();return _0x3d9d60[_0x423342(0x2f4)]((_0x2d9167,_0x19f2b5)=>{const _0x2a1750=_0x423342;if(_0x2d9167[_0x2a1750(0x1d0)]===_0x51425){const _0x483c5f={..._0x2d9167};_0x483c5f['color']=_0x5f2aab[_0x2d9167[_0x2a1750(0x1ae)]],_0x325875[_0x2a1750(0x312)](_0x19f2b5,_0x483c5f);}}),{'skeleton':_0xfe8445,'cursors':_0x325875};}));}return S['of']({'skeleton':null,'cursors':new Map()});}))[_0x427163(0x11d)](({skeleton:_0x4c21d8,cursors:_0x4a8cac})=>{const _0x5a10aa=_0x427163;this[_0x5a10aa(0x32a)](),_0x4c21d8&&this['_updateCollabCursors'](_0x4c21d8,_0x4a8cac);}),this[_0x427163(0x284)][_0x427163(0x1e3)]['subscribe'](_0x40aad0=>{const _0x42ced4=_0x427163;if(_0x40aad0==null)return;const {skeleton:_0x4836fa}=_0x40aad0,{scene:_0x2a6e32}=this[_0x42ced4(0x2dc)];_0x2a6e32['onPointerMove$'][_0x42ced4(0x35e)](a[_0x42ced4(0x26b)](_0x532ae9=>{const _0x34bb6b=_0x42ced4;var _0x546ba6,_0x49724c;const {offsetX:_0x217e28,offsetY:_0x18ddb8}=_0x532ae9,{x:_0x453980,y:_0x555b33}=_0x2a6e32[_0x34bb6b(0x2c1)](p[_0x34bb6b(0x2ba)][_0x34bb6b(0x17b)]([_0x217e28,_0x18ddb8])),{scaleX:_0x703b3e,scaleY:_0x13806e}=_0x2a6e32[_0x34bb6b(0x27f)](),_0x336f60=_0x2a6e32['getViewport'](p[_0x34bb6b(0x16d)][_0x34bb6b(0x24b)]),_0x4abcb6=_0x2a6e32[_0x34bb6b(0x1b4)](p[_0x34bb6b(0x2ba)][_0x34bb6b(0x17b)]([_0x453980,_0x555b33]),_0x336f60),_0x4c8d20=_0x4836fa[_0x34bb6b(0x10c)](_0x217e28,_0x18ddb8,_0x703b3e,_0x13806e,_0x4abcb6);((_0x546ba6=this['_lastPointer'])==null?void 0x0:_0x546ba6[_0x34bb6b(0x189)])===_0x4c8d20[_0x34bb6b(0x189)]&&((_0x49724c=this[_0x34bb6b(0x113)])==null?void 0x0:_0x49724c[_0x34bb6b(0x250)])===_0x4c8d20[_0x34bb6b(0x250)]||this[_0x34bb6b(0x22d)]['forEach'](_0x1771f4=>{const _0x4301db=_0x34bb6b;_0x1771f4[_0x4301db(0x180)](_0x4c8d20);});},0x64));});}[_0x45d155(0x2fe)](_0x52e98d,_0x5c9013){const _0x578c2e=_0x45d155;var _0x514f9f;const _0x315388=(_0x514f9f=this[_0x578c2e(0x284)][_0x578c2e(0x327)]())==null?void 0x0:_0x514f9f[_0x578c2e(0x1ed)];if(!_0x315388)return;const _0x36c45d=this[_0x578c2e(0x346)]();if(!_0x36c45d)return;this[_0x578c2e(0x22d)]['forEach'](_0x2a2ccc=>{const _0x500ac1=_0x578c2e;_0x2a2ccc[_0x500ac1(0x243)]();});const {scene:_0x28fe5c}=_0x36c45d,_0x2ac8a2=$t(Array['from'](_0x5c9013[_0x578c2e(0x147)]()))[_0x578c2e(0x309)](_0x396bc5=>{const _0x54372f=_0x578c2e,{color:_0x5e4f2b,range:_0x4f85e1,name:_0x401dd2,selection:_0x31bc53,sheetID:_0x5597dd}=_0x396bc5,{startColumn:_0x5c6e3d,startRow:_0x4cdf69,endColumn:_0x3ca48b,endRow:_0x1846ca}=_0x4f85e1,_0x589100=q[_0x54372f(0x234)](_0x4cdf69,_0x5c6e3d,_0x28fe5c,_0x315388),_0x35b6ce=q[_0x54372f(0x234)](_0x1846ca,_0x3ca48b,_0x28fe5c,_0x315388),{columnHeaderHeightAndMarginTop:_0x4a7bb1}=_0x315388,{startX:_0x29e3af,startY:_0x4b6ce2}=_0x589100,{endX:_0x164108,endY:_0x56c93d}=_0x35b6ce,_0x4f27e8=_0x164108-_0x29e3af,_0x21f6b0=_0x56c93d-_0x4b6ce2,_0x2254b5={'labelPosition':_0x4b6ce2-_0x4a7bb1>=V?_0x54372f(0x2fb):_0x54372f(0x11a),'sheetID':_0x5597dd,'range':_0x4f85e1,'color':_0x5e4f2b,'name':_0x401dd2,'selection':_0x31bc53,'left':_0x29e3af,'top':_0x4b6ce2,'width':_0x4f27e8,'height':_0x21f6b0,'evented':!0x1,'zIndex':yt};return new je(_0x401dd2,_0x2254b5);});_0x28fe5c[_0x578c2e(0x1e1)](_0x2ac8a2,Ut),this[_0x578c2e(0x22d)]=new Set(_0x2ac8a2);}[_0x45d155(0x32a)](){const _0x4e03ac=_0x45d155;var _0x38d77a;(_0x38d77a=this[_0x4e03ac(0x22d)])==null||_0x38d77a[_0x4e03ac(0x2f4)](_0x59dc4b=>_0x59dc4b[_0x4e03ac(0x124)]());}['_getSheetObject'](){const _0x12936e=_0x45d155;return q['getSheetObject'](this[_0x12936e(0x2dc)][_0x12936e(0x1ec)],this['_context']);}};ge=At([ae(0x1,a[_0x45d155(0x313)](q[_0x45d155(0x29d)])),ae(0x2,a[_0x45d155(0x313)](x)),ae(0x3,a[_0x45d155(0x313)](a[_0x45d155(0x240)]))],ge);function $t(_0x3a433b){const _0x3d7360=_0x45d155,_0x630283=new Map();return _0x3a433b[_0x3d7360(0x2f4)](_0x268045=>{const _0x282bc7=_0x3d7360;if(_0x630283['has'](_0x268045[_0x282bc7(0x144)])){const _0x583753=_0x630283[_0x282bc7(0x1c1)](_0x268045['selection']);_0x583753[_0x282bc7(0x1f9)]+=',\x20'+_0x268045['name'];}else _0x630283['set'](_0x268045[_0x282bc7(0x144)],_0x268045);}),Array[_0x3d7360(0x1f7)](_0x630283[_0x3d7360(0x147)]());}var ce={'exports':{}},W={},Ue;function xt(){const _0x3aca49=_0x45d155;if(Ue)return W;Ue=0x1;var _0x485574=O,_0x500fe3=Symbol[_0x3aca49(0x273)](_0x3aca49(0x1f3)),_0x330473=Symbol[_0x3aca49(0x273)]('react.fragment'),_0xedfc0e=Object['prototype'][_0x3aca49(0x278)],_0x3683c3=_0x485574[_0x3aca49(0x287)][_0x3aca49(0x2ab)],_0x4df1b1={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x3eb52e(_0x276a15,_0x4ce861,_0x38ad71){const _0x7a118e=_0x3aca49;var _0x23bf0f,_0x2dd4f7={},_0x3a419b=null,_0x4126fa=null;_0x38ad71!==void 0x0&&(_0x3a419b=''+_0x38ad71),_0x4ce861[_0x7a118e(0x125)]!==void 0x0&&(_0x3a419b=''+_0x4ce861[_0x7a118e(0x125)]),_0x4ce861[_0x7a118e(0x298)]!==void 0x0&&(_0x4126fa=_0x4ce861[_0x7a118e(0x298)]);for(_0x23bf0f in _0x4ce861)_0xedfc0e[_0x7a118e(0x176)](_0x4ce861,_0x23bf0f)&&!_0x4df1b1[_0x7a118e(0x278)](_0x23bf0f)&&(_0x2dd4f7[_0x23bf0f]=_0x4ce861[_0x23bf0f]);if(_0x276a15&&_0x276a15[_0x7a118e(0x1fa)]){for(_0x23bf0f in(_0x4ce861=_0x276a15[_0x7a118e(0x1fa)],_0x4ce861))_0x2dd4f7[_0x23bf0f]===void 0x0&&(_0x2dd4f7[_0x23bf0f]=_0x4ce861[_0x23bf0f]);}return{'$$typeof':_0x500fe3,'type':_0x276a15,'key':_0x3a419b,'ref':_0x4126fa,'props':_0x2dd4f7,'_owner':_0x3683c3[_0x7a118e(0x377)]};}return W[_0x3aca49(0x20e)]=_0x330473,W[_0x3aca49(0x1c7)]=_0x3eb52e,W[_0x3aca49(0x163)]=_0x3eb52e,W;}var Ne;function jt(){const _0x40941e=_0x45d155;return Ne||(Ne=0x1,ce[_0x40941e(0x15e)]=xt()),ce[_0x40941e(0x15e)];}var N=jt(),E=function(){const _0x53097a=_0x45d155;return E=Object['assign']||function(_0x597db4){const _0x2aa689=_0x15df;for(var _0x1ef93c,_0x52e3c6=0x1,_0x3de6fe=arguments[_0x2aa689(0x1fd)];_0x52e3c6<_0x3de6fe;_0x52e3c6++){_0x1ef93c=arguments[_0x52e3c6];for(var _0x1632f3 in _0x1ef93c)Object[_0x2aa689(0x255)]['hasOwnProperty'][_0x2aa689(0x176)](_0x1ef93c,_0x1632f3)&&(_0x597db4[_0x1632f3]=_0x1ef93c[_0x1632f3]);}return _0x597db4;},E[_0x53097a(0x31d)](this,arguments);},Bt=function(_0x21c45c,_0x1c829d){const _0x19c308=_0x45d155;var _0x404041={};for(var _0x17f23c in _0x21c45c)Object['prototype'][_0x19c308(0x278)][_0x19c308(0x176)](_0x21c45c,_0x17f23c)&&_0x1c829d[_0x19c308(0x156)](_0x17f23c)<0x0&&(_0x404041[_0x17f23c]=_0x21c45c[_0x17f23c]);if(_0x21c45c!=null&&typeof Object['getOwnPropertySymbols']==_0x19c308(0x1f0)){for(var _0x4e5e51=0x0,_0x17f23c=Object[_0x19c308(0x186)](_0x21c45c);_0x4e5e51<_0x17f23c[_0x19c308(0x1fd)];_0x4e5e51++)_0x1c829d['indexOf'](_0x17f23c[_0x4e5e51])<0x0&&Object[_0x19c308(0x255)]['propertyIsEnumerable']['call'](_0x21c45c,_0x17f23c[_0x4e5e51])&&(_0x404041[_0x17f23c[_0x4e5e51]]=_0x21c45c[_0x17f23c[_0x4e5e51]]);}return _0x404041;},Ee=O['forwardRef'](function(_0x27d153,_0x333af8){const _0xff54e1=_0x45d155;var _0x5f0ab3=_0x27d153[_0xff54e1(0x1b1)],_0x4ea51f=_0x27d153['id'],_0x551cb4=_0x27d153[_0xff54e1(0x36b)],_0x4fdc5e=_0x27d153['extend'],_0x29488c=Bt(_0x27d153,['icon','id',_0xff54e1(0x36b),_0xff54e1(0x355)]),_0x4e1d2d=_0xff54e1(0x2d0)[_0xff54e1(0x213)](_0x4ea51f,'\x20')[_0xff54e1(0x213)](_0x551cb4||'')[_0xff54e1(0x36d)](),_0x1c0748=O['useRef']('_'[_0xff54e1(0x213)](Ft()));return Be(_0x5f0ab3,''[_0xff54e1(0x213)](_0x4ea51f),{'defIds':_0x5f0ab3[_0xff54e1(0x279)],'idSuffix':_0x1c0748[_0xff54e1(0x377)]},E({'ref':_0x333af8,'className':_0x4e1d2d},_0x29488c),_0x4fdc5e);});function Be(_0x2a7e76,_0x4c5c0f,_0x14e73c,_0x3d84c1,_0x2e6603){const _0x27fb88=_0x45d155;return O[_0x27fb88(0x28c)](_0x2a7e76[_0x27fb88(0x333)],E(E({'key':_0x4c5c0f},Ht(_0x2a7e76,_0x14e73c,_0x2e6603)),_0x3d84c1),(Wt(_0x2a7e76,_0x14e73c)[_0x27fb88(0x33e)]||[])[_0x27fb88(0x309)](function(_0x40aec1,_0x3a2712){const _0x1fe7b6=_0x27fb88;return Be(_0x40aec1,''[_0x1fe7b6(0x213)](_0x4c5c0f,'-')[_0x1fe7b6(0x213)](_0x2a7e76[_0x1fe7b6(0x333)],'-')['concat'](_0x3a2712),_0x14e73c,void 0x0,_0x2e6603);}));}function Ht(_0x513ba5,_0x45974c,_0xf219e9){const _0x2f870d=_0x45d155;var _0x1a88fb=E({},_0x513ba5[_0x2f870d(0x324)]);_0xf219e9!=null&&_0xf219e9['colorChannel1']&&_0x1a88fb[_0x2f870d(0x26a)]===_0x2f870d(0x379)&&(_0x1a88fb['fill']=_0xf219e9[_0x2f870d(0x379)]);var _0x50bc47=_0x45974c[_0x2f870d(0x279)];return!_0x50bc47||_0x50bc47['length']===0x0||(_0x513ba5[_0x2f870d(0x333)]===_0x2f870d(0x277)&&_0x1a88fb[_0x2f870d(0x233)]&&(_0x1a88fb[_0x2f870d(0x233)]=_0x1a88fb['xlink:href']+_0x45974c[_0x2f870d(0x2f7)]),Object[_0x2f870d(0x342)](_0x1a88fb)[_0x2f870d(0x2f4)](function(_0x580d8d){const _0x4a6e2b=_0x2f870d;var _0x516685=_0x580d8d[0x0],_0x523abe=_0x580d8d[0x1];typeof _0x523abe=='string'&&(_0x1a88fb[_0x516685]=_0x523abe['replace'](/url\(#(.*)\)/,_0x4a6e2b(0x36e)[_0x4a6e2b(0x213)](_0x45974c[_0x4a6e2b(0x2f7)],')')));})),_0x1a88fb;}function Wt(_0x2460b0,_0x54c861){const _0x3af41b=_0x45d155;var _0xb8dc98,_0x34d89d=_0x54c861[_0x3af41b(0x279)];return!_0x34d89d||_0x34d89d[_0x3af41b(0x1fd)]===0x0?_0x2460b0:_0x2460b0[_0x3af41b(0x333)]==='defs'&&(!((_0xb8dc98=_0x2460b0[_0x3af41b(0x33e)])===null||_0xb8dc98===void 0x0)&&_0xb8dc98[_0x3af41b(0x1fd)])?E(E({},_0x2460b0),{'children':_0x2460b0[_0x3af41b(0x33e)][_0x3af41b(0x309)](function(_0x932f62){const _0x341fa1=_0x3af41b;return typeof _0x932f62['attrs']['id']==_0x341fa1(0x263)&&_0x34d89d&&_0x34d89d['indexOf'](_0x932f62[_0x341fa1(0x324)]['id'])>-0x1?E(E({},_0x932f62),{'attrs':E(E({},_0x932f62[_0x341fa1(0x324)]),{'id':_0x932f62[_0x341fa1(0x324)]['id']+_0x54c861['idSuffix']})}):_0x932f62;})}):_0x2460b0;}function Ft(){const _0x2a389a=_0x45d155;return Math[_0x2a389a(0x159)]()[_0x2a389a(0x367)](0x24)[_0x2a389a(0x2d7)](0x2,0x8);}Ee[_0x45d155(0x1ff)]=_0x45d155(0x14b);var Yt={'tag':_0x45d155(0x33a),'attrs':{'fill':_0x45d155(0x2a2),'viewBox':_0x45d155(0x228),'width':'1em','height':_0x45d155(0x1d7)},'children':[{'tag':'g','attrs':{'clipPath':_0x45d155(0x364)},'children':[{'tag':'path','attrs':{'stroke':_0x45d155(0x1d6),'d':_0x45d155(0x139),'strokeLinecap':_0x45d155(0x10b),'strokeLinejoin':_0x45d155(0x10b),'strokeWidth':1.2}}]},{'tag':_0x45d155(0x1c6),'attrs':{},'children':[{'tag':_0x45d155(0x1d8),'attrs':{'id':_0x45d155(0x307)},'children':[{'tag':_0x45d155(0x33f),'attrs':{'fill':_0x45d155(0x1bb),'d':_0x45d155(0x164)}}]}]}],'defIds':[_0x45d155(0x307)]},He=O[_0x45d155(0x126)](function(_0x35bdb5,_0x4b1b25){const _0x3746a4=_0x45d155;return O[_0x3746a4(0x28c)](Ee,Object['assign']({},_0x35bdb5,{'id':_0x3746a4(0x22c),'ref':_0x4b1b25,'icon':Yt}));});He['displayName']='OffLineSingle';var Xt={'tag':_0x45d155(0x33a),'attrs':{'fill':_0x45d155(0x2a2),'viewBox':_0x45d155(0x2cb),'width':_0x45d155(0x1d7),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x45d155(0x20f)},'children':[{'tag':_0x45d155(0x33f),'attrs':{'stroke':'currentColor','d':_0x45d155(0x17f),'strokeLinecap':_0x45d155(0x10b),'strokeLinejoin':_0x45d155(0x10b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x45d155(0x1d8),'attrs':{'id':_0x45d155(0x229)},'children':[{'tag':_0x45d155(0x33f),'attrs':{'fill':'#fff','d':_0x45d155(0x164),'transform':_0x45d155(0x132)}}]}]}],'defIds':['on-line-single_clip0_910_349']},We=O[_0x45d155(0x126)](function(_0x2f8ed5,_0x5e2aa1){const _0x702811=_0x45d155;return O[_0x702811(0x28c)](Ee,Object[_0x702811(0x303)]({},_0x2f8ed5,{'id':_0x702811(0x214),'ref':_0x5e2aa1,'icon':Xt}));});We['displayName']='OnLineSingle';function Fe(_0x59c295){const _0x5c6aa6=_0x45d155;var _0x1b0f42,_0x3467b7,_0x537efc='';if(typeof _0x59c295=='string'||typeof _0x59c295=='number')_0x537efc+=_0x59c295;else{if(typeof _0x59c295==_0x5c6aa6(0x1d4)){if(Array['isArray'](_0x59c295)){var _0xcde3bc=_0x59c295[_0x5c6aa6(0x1fd)];for(_0x1b0f42=0x0;_0x1b0f42<_0xcde3bc;_0x1b0f42++)_0x59c295[_0x1b0f42]&&(_0x3467b7=Fe(_0x59c295[_0x1b0f42]))&&(_0x537efc&&(_0x537efc+='\x20'),_0x537efc+=_0x3467b7);}else{for(_0x3467b7 in _0x59c295)_0x59c295[_0x3467b7]&&(_0x537efc&&(_0x537efc+='\x20'),_0x537efc+=_0x3467b7);}}}return _0x537efc;}function we(){const _0x4fa9d3=_0x45d155;for(var _0x46fd4b,_0x392d61,_0x10dee5=0x0,_0x1734f3='',_0xb1449=arguments[_0x4fa9d3(0x1fd)];_0x10dee5<_0xb1449;_0x10dee5++)(_0x46fd4b=arguments[_0x10dee5])&&(_0x392d61=Fe(_0x46fd4b))&&(_0x1734f3&&(_0x1734f3+='\x20'),_0x1734f3+=_0x392d61);return _0x1734f3;}const Vt=_0x45d155(0x236),Gt=_0x45d155(0x326),kt='univer-online-status',qt='univer-online',Kt=_0x45d155(0x281),F={'onlineStatusIcon':Vt,'onlineStatusTitle':Gt,'onlineStatus':kt,'online':qt,'offline':Kt};function zt(_0x54911c){const _0x5c5d48=_0x45d155;switch(_0x54911c){case u['CollaborationStatus'][_0x5c5d48(0x13b)]:return _0x5c5d48(0x1d5);case u[_0x5c5d48(0x2c9)][_0x5c5d48(0x378)]:return _0x5c5d48(0x1b5);case u[_0x5c5d48(0x2c9)][_0x5c5d48(0x2e7)]:return _0x5c5d48(0x10f);case u[_0x5c5d48(0x2c9)]['NOT_COLLAB']:return _0x5c5d48(0x2c6);case u[_0x5c5d48(0x2c9)][_0x5c5d48(0x2de)]:case u[_0x5c5d48(0x2c9)][_0x5c5d48(0x1ad)]:return'collabStatus.syncing';case u[_0x5c5d48(0x2c9)]['SYNCED']:case u[_0x5c5d48(0x2c9)]['PENDING']:return _0x5c5d48(0x13a);}}function Ye(_0x422c0e){const _0x4cf9f8=_0x45d155,{status$:_0xc0a2ab}=_0x422c0e,_0x549de8=w[_0x4cf9f8(0x208)](_0xc0a2ab,u[_0x4cf9f8(0x2c9)]['NOT_COLLAB']),_0x1178c1=a[_0x4cf9f8(0x310)](a[_0x4cf9f8(0x32c)]),_0x12c96e=a[_0x4cf9f8(0x310)](u['CollaborationSessionService']),_0x448810=_0x549de8!==u['CollaborationStatus']['OFFLINE'],_0x4704f7=_0x1178c1['t'](zt(_0x549de8)),_0x2b0abd=we(F[_0x4cf9f8(0x297)],{[F[_0x4cf9f8(0x2f9)]]:_0x448810,[F[_0x4cf9f8(0x151)]]:!_0x448810}),_0x15f43b=_0x448810?N['jsx'](We,{}):N['jsx'](He,{}),_0x49482e=O[_0x4cf9f8(0x121)](()=>{_0x448810||_0x12c96e['reconnect']();},[_0x448810,_0x12c96e]);function _0x2174a5(){const _0x54dfa8=_0x4cf9f8;return N[_0x54dfa8(0x163)](_0x54dfa8(0x1bd),{'className':we(_0x2b0abd,_0x54dfa8(0x18c)),'onClick':_0x49482e,'children':[N[_0x54dfa8(0x1c7)]('div',{'className':F[_0x54dfa8(0x294)],'children':_0x15f43b}),N[_0x54dfa8(0x1c7)](_0x54dfa8(0x1bd),{'className':F[_0x54dfa8(0x265)],'children':_0x4704f7})]});}return _0x448810?_0x2174a5():N[_0x4cf9f8(0x1c7)](M[_0x4cf9f8(0x197)],{'title':_0x1178c1['t'](_0x4cf9f8(0x17c)),'children':_0x2174a5()});}var Jt=Object[_0x45d155(0x2bd)],Zt=Object[_0x45d155(0x2da)],Qt=(_0x28d00d,_0x1514e0,_0x58ff95,_0x33fc66)=>{const _0x58bd7a=_0x45d155;for(var _0x45b7b5=_0x33fc66>0x1?void 0x0:_0x33fc66?Zt(_0x1514e0,_0x58ff95):_0x1514e0,_0x4785ea=_0x28d00d[_0x58bd7a(0x1fd)]-0x1,_0x4d7e86;_0x4785ea>=0x0;_0x4785ea--)(_0x4d7e86=_0x28d00d[_0x4785ea])&&(_0x45b7b5=(_0x33fc66?_0x4d7e86(_0x1514e0,_0x58ff95,_0x45b7b5):_0x4d7e86(_0x45b7b5))||_0x45b7b5);return _0x33fc66&&_0x45b7b5&&Jt(_0x1514e0,_0x58ff95,_0x45b7b5),_0x45b7b5;},k=(_0x538911,_0x105d13)=>(_0x5c8cf3,_0x1d18ef)=>_0x105d13(_0x5c8cf3,_0x1d18ef,_0x538911);exports[_0x45d155(0x345)]=class extends a['Disposable']{constructor(_0x464157,_0x195f5a,_0x80fb20,_0x3d005d){const _0x2784cf=_0x45d155;super(),_(this,_0x2784cf(0x1e7),new S[(_0x2784cf(0x23d))](u['CollaborationStatus'][_0x2784cf(0x352)])),(this[_0x2784cf(0x291)]=_0x464157,this['_injector']=_0x195f5a,this[_0x2784cf(0x36c)]=_0x80fb20,this[_0x2784cf(0x24a)]=_0x3d005d,this[_0x2784cf(0x127)](),this[_0x2784cf(0x31c)]());}[_0x45d155(0x31c)](){const _0x133bb5=_0x45d155;this[_0x133bb5(0x1de)](this['_univerInstanceService'][_0x133bb5(0x15b)]['pipe'](S['switchMap'](()=>{const _0x200588=_0x133bb5,_0x1c2fc9=this[_0x200588(0x291)][_0x200588(0x257)]();return _0x1c2fc9?this['_collaborationController']['getCollabEntity$'](_0x1c2fc9['getUnitId']()):S['of'](null);}),S[_0x133bb5(0x24f)](_0x2d7da3=>_0x2d7da3?_0x2d7da3[_0x133bb5(0x2ec)]:S['of'](u['CollaborationStatus'][_0x133bb5(0x352)])))[_0x133bb5(0x11d)](_0x1e0de6=>{this['_status$']['next'](_0x1e0de6);}));}[_0x45d155(0x127)](){const _0x466c71=_0x45d155;this[_0x466c71(0x1de)](this[_0x466c71(0x24a)][_0x466c71(0x1dc)](w[_0x466c71(0x13c)]['HEADER_MENU'],()=>a[_0x466c71(0x1db)](es({'status$':this['_status$'][_0x466c71(0x29a)]()}),this[_0x466c71(0x30f)])));}},exports['DesktopCollaborationStatusDisplayController']=Qt([k(0x0,a[_0x45d155(0x196)]),k(0x1,a[_0x45d155(0x313)](a[_0x45d155(0x2d4)])),k(0x2,a['Inject'](u[_0x45d155(0x22b)])),k(0x3,w[_0x45d155(0x216)])],exports[_0x45d155(0x345)]);function es(_0x403997){const {status$:_0x1e7b17}=_0x403997;return function(){const _0x5b511b=_0x15df;return N[_0x5b511b(0x1c7)](Ye,{'status$':_0x1e7b17});};}var ts=Object[_0x45d155(0x2bd)],ss=Object[_0x45d155(0x2da)],ns=(_0x532a78,_0x346937,_0x5d4049,_0x5c715f)=>{const _0x7e620a=_0x45d155;for(var _0x446d07=_0x5c715f>0x1?void 0x0:_0x5c715f?ss(_0x346937,_0x5d4049):_0x346937,_0x15697b=_0x532a78[_0x7e620a(0x1fd)]-0x1,_0x3ffe90;_0x15697b>=0x0;_0x15697b--)(_0x3ffe90=_0x532a78[_0x15697b])&&(_0x446d07=(_0x5c715f?_0x3ffe90(_0x346937,_0x5d4049,_0x446d07):_0x3ffe90(_0x446d07))||_0x446d07);return _0x5c715f&&_0x446d07&&ts(_0x346937,_0x5d4049,_0x446d07),_0x446d07;},y=(_0x51f5c7,_0x978c5a)=>(_0x2397d0,_0x1331fc)=>_0x978c5a(_0x2397d0,_0x1331fc,_0x51f5c7);let K=class extends a[_0x45d155(0x1ab)]{constructor(_0x187f49,_0x1be797,_0x20fd4b,_0x4cb2e4,_0x458e02,_0x1f521e){const _0xce4d1a=_0x45d155;super(),this[_0xce4d1a(0x221)]=_0x187f49,this[_0xce4d1a(0x34d)]=_0x1be797,this[_0xce4d1a(0x1dd)]=_0x20fd4b,this[_0xce4d1a(0x215)]=_0x4cb2e4,this[_0xce4d1a(0x314)]=_0x458e02,this[_0xce4d1a(0x115)]=_0x1f521e,this[_0xce4d1a(0x2c5)](),this['_initEvent']();}[_0x45d155(0x2c5)](){const _0x5b56a6=_0x45d155;this[_0x5b56a6(0x1de)](this[_0x5b56a6(0x221)]['registerBeforeClose'](()=>{const _0x3f486a=_0x5b56a6;if(this[_0x3f486a(0x34d)]['saveTaskMap']['size'])return this[_0x3f486a(0x115)]['t'](_0x3f486a(0x237));}));}[_0x45d155(0x15d)](){const _0x532650=_0x45d155;this[_0x532650(0x1de)](this[_0x532650(0x1dd)][_0x532650(0x1a7)][_0x532650(0x11d)](_0x8d2186=>{const _0x30af20=_0x532650;_0x8d2186['id']===u[_0x30af20(0x29e)][_0x30af20(0x24d)]&&this[_0x30af20(0x215)][_0x30af20(0x25e)]({'type':M[_0x30af20(0x21b)][_0x30af20(0x108)],'content':this[_0x30af20(0x115)]['t'](_0x30af20(0x328))}),_0x8d2186['id']===u[_0x30af20(0x29e)][_0x30af20(0x251)]&&this[_0x30af20(0x215)][_0x30af20(0x25e)]({'type':M[_0x30af20(0x21b)][_0x30af20(0x108)],'content':this[_0x30af20(0x115)]['t'](_0x30af20(0x2b2))}),_0x8d2186['id']===u[_0x30af20(0x29e)]['PERMISSION_DENIED']&&this[_0x30af20(0x314)][_0x30af20(0x25e)]({'title':this[_0x30af20(0x115)]['t'](_0x30af20(0x292)),'content':this[_0x30af20(0x115)]['t'](_0x30af20(0x2a0)),'type':'error','duration':0x0}),_0x8d2186['id']===u[_0x30af20(0x29e)][_0x30af20(0x378)]&&this[_0x30af20(0x215)]['show']({'type':M['MessageType'][_0x30af20(0x112)],'content':this[_0x30af20(0x115)]['t'](_0x30af20(0x2b2))+'('+_0x8d2186[_0x30af20(0x2df)]+')'}),_0x8d2186['id']===u['CollaborationUIEventId'][_0x30af20(0x360)]&&this[_0x30af20(0x215)][_0x30af20(0x25e)]({'type':M['MessageType']['Warning'],'content':this[_0x30af20(0x115)]['t'](_0x8d2186[_0x30af20(0x2df)]||'')}),_0x8d2186['id']===u[_0x30af20(0x29e)]['SOCKET_FAILED_RETRY']&&this[_0x30af20(0x215)][_0x30af20(0x25e)]({'type':M[_0x30af20(0x21b)][_0x30af20(0x108)],'content':this[_0x30af20(0x115)]['t'](_0x30af20(0x162))}),_0x8d2186['id']===u[_0x30af20(0x29e)]['SOCKET_FAILED']&&this[_0x30af20(0x215)][_0x30af20(0x25e)]({'type':M[_0x30af20(0x21b)][_0x30af20(0x112)],'content':this['_localeService']['t'](_0x30af20(0x2d6))}),_0x8d2186['id']===u[_0x30af20(0x29e)][_0x30af20(0x141)]&&this['_messageService']['show']({'type':M['MessageType'][_0x30af20(0x112)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};K=ns([y(0x0,w[_0x45d155(0x350)]),y(0x1,u[_0x45d155(0x33c)]),y(0x2,a[_0x45d155(0x313)](u[_0x45d155(0x358)])),y(0x3,w[_0x45d155(0x152)]),y(0x4,w['INotificationService']),y(0x5,a[_0x45d155(0x313)](a[_0x45d155(0x32c)]))],K);const is='collaboration-client-ui.config',Le={},Re=a['createIdentifier'](_0x45d155(0x25a));var rs=Object['defineProperty'],os=Object[_0x45d155(0x2da)],as=(_0x59c885,_0x5994eb,_0xd7bb1a,_0x286585)=>{for(var _0x1e136f=_0x286585>0x1?void 0x0:_0x286585?os(_0x5994eb,_0xd7bb1a):_0x5994eb,_0x8ab073=_0x59c885['length']-0x1,_0x1111ff;_0x8ab073>=0x0;_0x8ab073--)(_0x1111ff=_0x59c885[_0x8ab073])&&(_0x1e136f=(_0x286585?_0x1111ff(_0x5994eb,_0xd7bb1a,_0x1e136f):_0x1111ff(_0x1e136f))||_0x1e136f);return _0x286585&&_0x1e136f&&rs(_0x5994eb,_0xd7bb1a,_0x1e136f),_0x1e136f;},Y=(_0x135089,_0xed6940)=>(_0xeae815,_0x29153b)=>_0xed6940(_0xeae815,_0x29153b,_0x135089);exports['CollaborationDataLoaderController']=class extends a[_0x45d155(0x30a)]{constructor(_0x15cf81,_0x344572,_0x1e304f,_0x11d41b,_0x4c46fd){const _0x21b5af=_0x45d155;super(),this[_0x21b5af(0x252)]=_0x15cf81,this[_0x21b5af(0x16a)]=_0x344572,this[_0x21b5af(0x370)]=_0x1e304f,this[_0x21b5af(0x19e)]=_0x11d41b,_0x4c46fd?_0x4c46fd==null||_0x4c46fd['whenReady']()[_0x21b5af(0x2e9)](()=>this[_0x21b5af(0x175)]()):(this[_0x21b5af(0x16a)]['debug'](_0x21b5af(0x17e),_0x21b5af(0x1ac)),this['_init']());}async['_init'](){const _0x3bce9a=_0x45d155,_0x12277e=this[_0x3bce9a(0x252)][_0x3bce9a(0x14f)](_0x3bce9a(0x1ec)),_0x3e52d6=this[_0x3bce9a(0x252)][_0x3bce9a(0x14f)]('type'),_0x49050a=this[_0x3bce9a(0x252)]['getParam']('subunit');if(!_0x12277e||!_0x3e52d6){this[_0x3bce9a(0x16a)][_0x3bce9a(0x183)]('[CollaborationDataLoaderController]',_0x3bce9a(0x171));return;}const _0x28be73=await this[_0x3bce9a(0x19e)][_0x3bce9a(0x35b)](_0x12277e,Number(_0x3e52d6),_0x49050a);_0x28be73&&_0x28be73 instanceof a[_0x3bce9a(0x1be)]&&this[_0x3bce9a(0x25d)](_0x28be73);}async[_0x45d155(0x25d)](_0xb32526){const _0x6a2f95=_0x45d155;await this[_0x6a2f95(0x2ae)](_0xb32526),_0xb32526[_0x6a2f95(0x122)]['pipe'](S[_0x6a2f95(0x1a6)](this[_0x6a2f95(0x21e)]))['subscribe'](_0x5764d6=>{const _0x37cf86=_0x6a2f95;_0x5764d6&&this[_0x37cf86(0x267)](_0x5764d6);}),this['_urlService'][_0x6a2f95(0x35a)]['pipe'](S['takeUntil'](this[_0x6a2f95(0x21e)]))[_0x6a2f95(0x11d)](()=>this[_0x6a2f95(0x2ae)](_0xb32526));}['_updateURLWithCurrentState'](_0x1d0cfd,_0x1f41e4=!0x1){const _0x1f365f=_0x45d155,_0x164594=this[_0x1f365f(0x252)][_0x1f365f(0x14f)](_0x1f365f(0x16f));_0x1d0cfd[_0x1f365f(0x2b9)]()!==_0x164594&&this[_0x1f365f(0x252)]['setParam'](_0x1f365f(0x16f),_0x1d0cfd[_0x1f365f(0x2b9)](),_0x1f41e4);}async[_0x45d155(0x2ae)](_0x56487f){const _0x54a364=_0x45d155;var _0xc0d5b1;const _0x1fbc94=this['_urlService'][_0x54a364(0x14f)]('subunit');if(!_0x1fbc94||!_0x56487f['getSheetBySheetId'](_0x1fbc94)){const _0x1b3ae4=_0x56487f[_0x54a364(0x1bf)]()[0x0],_0x27acdd=_0x56487f[_0x54a364(0x2fa)](_0x1b3ae4);if(!_0x27acdd)return;this[_0x54a364(0x267)](_0x27acdd,!0x0),await this[_0x54a364(0x370)][_0x54a364(0x1ee)](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x56487f['getUnitId'](),'subUnitId':_0x1b3ae4});return;}((_0xc0d5b1=_0x56487f['getActiveSheet']())==null?void 0x0:_0xc0d5b1[_0x54a364(0x2b9)]())!==_0x1fbc94&&await this[_0x54a364(0x370)][_0x54a364(0x1ee)](I[_0x54a364(0x2c3)]['id'],{'unitId':_0x56487f[_0x54a364(0x194)](),'subUnitId':_0x1fbc94});}},exports[_0x45d155(0x14d)]=as([Y(0x0,Re),Y(0x1,a[_0x45d155(0x253)]),Y(0x2,a[_0x45d155(0x272)]),Y(0x3,a[_0x45d155(0x313)](u['DataLoaderService'])),Y(0x4,a['Optional'](tt['IRemoteInstanceService']))],exports[_0x45d155(0x14d)]);var cs=Object[_0x45d155(0x2bd)],ls=Object[_0x45d155(0x2da)],hs=(_0x36acd8,_0x2df7f4,_0x697322,_0x3efa56)=>{for(var _0x1bfdf8=_0x3efa56>0x1?void 0x0:_0x3efa56?ls(_0x2df7f4,_0x697322):_0x2df7f4,_0x2d43ef=_0x36acd8['length']-0x1,_0x2f41d0;_0x2d43ef>=0x0;_0x2d43ef--)(_0x2f41d0=_0x36acd8[_0x2d43ef])&&(_0x1bfdf8=(_0x3efa56?_0x2f41d0(_0x2df7f4,_0x697322,_0x1bfdf8):_0x2f41d0(_0x1bfdf8))||_0x1bfdf8);return _0x3efa56&&_0x1bfdf8&&cs(_0x2df7f4,_0x697322,_0x1bfdf8),_0x1bfdf8;},le=(_0xdbd43,_0x5ab7ae)=>(_0x9c1559,_0x2d56e7)=>_0x5ab7ae(_0x9c1559,_0x2d56e7,_0xdbd43);let z=class{constructor(_0xeb48c1,_0x3f7b92,_0x1e6ef5){const _0x2076d5=_0x45d155;this[_0x2076d5(0x30f)]=_0xeb48c1,this['_transformService']=_0x3f7b92,this[_0x2076d5(0x356)]=_0x1e6ef5;}[_0x45d155(0x145)](_0x383b85){const _0x6d5881=_0x45d155;this[_0x6d5881(0x201)](_0x383b85),this[_0x6d5881(0x33b)](_0x383b85);}[_0x45d155(0x2e3)](_0x3e4df3){const _0x3c5f25=_0x45d155,{unitID:_0x3cea01}=_0x3e4df3,_0x1767ef=this['_renderManagerService'][_0x3c5f25(0x15c)](_0x3cea01)[_0x3c5f25(0x320)](b['DocIMEInputManagerService']),{redoCache:_0x4968ba}=_0x1767ef[_0x3c5f25(0x1b9)]();if(_0x4968ba[_0x3c5f25(0x1fd)]===0x0)return _0x3e4df3;let _0x19cfea=a['Tools'][_0x3c5f25(0x34f)](_0x3e4df3[_0x3c5f25(0x1d1)][0x0]);for(let _0x392f48=0x0;_0x392f48<_0x4968ba[_0x3c5f25(0x1fd)];_0x392f48++){const _0x36ff89={'id':_0x3c5f25(0x2db),'params':{..._0x4968ba[_0x392f48]}},_0x36f901=this['_transformService']['transformMutation'](_0x19cfea,_0x36ff89,!0x1);if(g[_0x3c5f25(0x19d)](_0x36f901))throw _0x36f901[_0x3c5f25(0x149)];_0x19cfea=_0x36f901[_0x3c5f25(0x2d1)];}return{...a[_0x3c5f25(0x37a)][_0x3c5f25(0x34f)](_0x3e4df3),'mutations':[_0x19cfea]};}[_0x45d155(0x201)](_0x474caf){const _0x1e22a5=_0x45d155,{unitID:_0x2d371d}=_0x474caf,_0x5c1247=this[_0x1e22a5(0x356)]['getRenderById'](_0x2d371d)['with'](b['DocIMEInputManagerService']),{undoCache:_0x16e1c0,redoCache:_0x221365}=_0x5c1247[_0x1e22a5(0x1b9)]();if(_0x16e1c0['length']===0x0||_0x221365[_0x1e22a5(0x1fd)]===0x0)return;const _0x3bb796=[],_0x2868a1=[];let _0x2e06f9=a[_0x1e22a5(0x37a)][_0x1e22a5(0x34f)](_0x474caf['mutations'][0x0]),_0x282f6e=a[_0x1e22a5(0x37a)][_0x1e22a5(0x34f)](_0x474caf[_0x1e22a5(0x1d1)][0x0]);for(let _0x24804d=_0x16e1c0[_0x1e22a5(0x1fd)]-0x1;_0x24804d>=0x0;_0x24804d--){const _0x538436={'id':_0x1e22a5(0x2db),'params':{..._0x16e1c0[_0x24804d]}},_0x4764c6={'id':_0x1e22a5(0x2db),'params':{..._0x221365[_0x24804d]}},_0x2f2073=this[_0x1e22a5(0x2b6)]['transformMutation'](_0x2e06f9,_0x538436,!0x1),_0x56c893=this[_0x1e22a5(0x2b6)]['transformMutation'](_0x282f6e,_0x4764c6,!0x1);if(g[_0x1e22a5(0x19d)](_0x2f2073))throw _0x2f2073[_0x1e22a5(0x149)];if(g[_0x1e22a5(0x19d)](_0x56c893))throw _0x56c893[_0x1e22a5(0x149)];_0x3bb796[_0x1e22a5(0x131)](_0x2f2073[_0x1e22a5(0x2ed)][_0x1e22a5(0x2e1)]),_0x2868a1[_0x1e22a5(0x131)](_0x56c893['m2Prime'][_0x1e22a5(0x2e1)]),_0x2e06f9=_0x2f2073[_0x1e22a5(0x2d1)],_0x282f6e=_0x56c893['m1Prime'];}_0x5c1247[_0x1e22a5(0x165)]({'undoCache':_0x3bb796,'redoCache':_0x2868a1});}['_transformPreviousActiveRange'](_0x570412){const _0x301ad5=_0x45d155,{unitID:_0x1f010c}=_0x570412,_0x24d5b5=this[_0x301ad5(0x356)][_0x301ad5(0x15c)](_0x1f010c)[_0x301ad5(0x320)](b[_0x301ad5(0x1c4)]),_0x109a0c=_0x24d5b5[_0x301ad5(0x286)]();if(_0x109a0c==null)return;const _0x5c2996=[{'id':_0x301ad5(0x2db),'params':{'unitId':_0x570412['unitID'],'actions':null,'textRanges':[_0x109a0c]}}],_0x1abad5=this[_0x301ad5(0x2b6)]['transformMutationsWithChangeset'](_0x570412,_0x5c2996);if(!g['isTransformMutationsWithChangesetSuccess'](_0x1abad5))throw _0x1abad5[_0x301ad5(0x149)];const _0xf5335c=_0x1abad5[_0x301ad5(0x2ed)][0x0][_0x301ad5(0x2e1)][_0x301ad5(0x2d3)];Array[_0x301ad5(0x289)](_0xf5335c)&&_0xf5335c['length']&&_0x24d5b5[_0x301ad5(0x230)](_0xf5335c[0x0]);}};z=hs([le(0x0,a[_0x45d155(0x313)](a[_0x45d155(0x2d4)])),le(0x1,g[_0x45d155(0x315)]),le(0x2,p[_0x45d155(0x10a)])],z);var _s=Object[_0x45d155(0x2bd)],us=Object['getOwnPropertyDescriptor'],ds=(_0x469c4d,_0xc3f1e2,_0x38ec80,_0x1a3bef)=>{const _0x1f67b8=_0x45d155;for(var _0x16bbfc=_0x1a3bef>0x1?void 0x0:_0x1a3bef?us(_0xc3f1e2,_0x38ec80):_0xc3f1e2,_0x4fe9ee=_0x469c4d[_0x1f67b8(0x1fd)]-0x1,_0x364b8e;_0x4fe9ee>=0x0;_0x4fe9ee--)(_0x364b8e=_0x469c4d[_0x4fe9ee])&&(_0x16bbfc=(_0x1a3bef?_0x364b8e(_0xc3f1e2,_0x38ec80,_0x16bbfc):_0x364b8e(_0x16bbfc))||_0x16bbfc);return _0x1a3bef&&_0x16bbfc&&_s(_0xc3f1e2,_0x38ec80,_0x16bbfc),_0x16bbfc;},he=(_0x16e783,_0x110fe2)=>(_0x2c3d24,_0x5407eb)=>_0x110fe2(_0x2c3d24,_0x5407eb,_0x16e783);let J=class{constructor(_0x20cdc6,_0x2562cc,_0x9d4e7e){const _0x453a5b=_0x45d155;this[_0x453a5b(0x30f)]=_0x20cdc6,this['_transformService']=_0x2562cc,this['_docStateChangeManagerService']=_0x9d4e7e;}[_0x45d155(0x2bb)](_0x1fcc40){const _0x3b4961=_0x45d155;this[_0x3b4961(0x321)](_0x1fcc40);}[_0x45d155(0x2e3)](_0x4aab72){const _0x10a09c=_0x45d155,{unitID:_0x68ab72}=_0x4aab72,{collaboration:_0x45466d}=this[_0x10a09c(0x14c)]['getStateCache'](_0x68ab72);if(_0x45466d[_0x10a09c(0x1fd)]===0x0)return _0x4aab72;let _0x425d94=a[_0x10a09c(0x37a)]['deepClone'](_0x4aab72['mutations'][0x0]);for(let _0x29cd0c=0x0;_0x29cd0c<_0x45466d['length'];_0x29cd0c++){const _0x253364={'id':_0x10a09c(0x2db),'params':{'unitId':_0x45466d[_0x29cd0c]['unitId'],..._0x45466d[_0x29cd0c]['redoState']}},_0x356e39=this['_transformService'][_0x10a09c(0x264)](_0x425d94,_0x253364,!0x1);if(g[_0x10a09c(0x19d)](_0x356e39))throw _0x356e39['error'];_0x425d94=_0x356e39[_0x10a09c(0x2d1)];}return{...a[_0x10a09c(0x37a)][_0x10a09c(0x34f)](_0x4aab72),'mutations':[_0x425d94]};}['_transformHistoryAndStateStack'](_0x20e815){const _0x2fda2d=_0x45d155,{unitID:_0x5e915a}=_0x20e815,{history:_0x397e19,collaboration:_0x29fd70}=this[_0x2fda2d(0x14c)]['getStateCache'](_0x5e915a);if(_0x397e19['length']===0x0&&_0x29fd70[_0x2fda2d(0x1fd)]===0x0)return;const _0x43329b=[],_0x33177e=[];let _0x5a2c4a=a['Tools'][_0x2fda2d(0x34f)](_0x20e815[_0x2fda2d(0x1d1)][0x0]),_0x536176=a[_0x2fda2d(0x37a)][_0x2fda2d(0x34f)](_0x20e815[_0x2fda2d(0x1d1)][0x0]);for(let _0x29ecd5=_0x397e19[_0x2fda2d(0x1fd)]-0x1;_0x29ecd5>=0x0;_0x29ecd5--){const _0x17ddc7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x397e19[_0x29ecd5][_0x2fda2d(0x1d3)],..._0x397e19[_0x29ecd5][_0x2fda2d(0x15f)]}},_0x485379={'id':_0x2fda2d(0x2db),'params':{'unitId':_0x397e19[_0x29ecd5][_0x2fda2d(0x1d3)],..._0x397e19[_0x29ecd5][_0x2fda2d(0x2a1)]}},_0x3e102c=this[_0x2fda2d(0x2b6)][_0x2fda2d(0x264)](_0x5a2c4a,_0x17ddc7,!0x1),_0x1a954a=this[_0x2fda2d(0x2b6)]['transformMutation'](_0x536176,_0x485379,!0x1);if(g[_0x2fda2d(0x19d)](_0x3e102c))throw _0x3e102c[_0x2fda2d(0x149)];if(g[_0x2fda2d(0x19d)](_0x1a954a))throw _0x1a954a[_0x2fda2d(0x149)];_0x43329b['unshift']({..._0x397e19[_0x29ecd5],'undoState':_0x3e102c[_0x2fda2d(0x2ed)][_0x2fda2d(0x2e1)],'redoState':_0x1a954a[_0x2fda2d(0x2ed)][_0x2fda2d(0x2e1)]}),_0x5a2c4a=_0x3e102c[_0x2fda2d(0x2d1)],_0x536176=_0x1a954a[_0x2fda2d(0x2d1)];}_0x5a2c4a=a[_0x2fda2d(0x37a)][_0x2fda2d(0x34f)](_0x20e815[_0x2fda2d(0x1d1)][0x0]),_0x536176=a[_0x2fda2d(0x37a)][_0x2fda2d(0x34f)](_0x20e815['mutations'][0x0]);for(let _0x478b61=_0x29fd70[_0x2fda2d(0x1fd)]-0x1;_0x478b61>=0x0;_0x478b61--){const _0x5800cf={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x29fd70[_0x478b61][_0x2fda2d(0x1d3)],..._0x29fd70[_0x478b61][_0x2fda2d(0x15f)]}},_0x2f9f31={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x29fd70[_0x478b61][_0x2fda2d(0x1d3)],..._0x29fd70[_0x478b61][_0x2fda2d(0x2a1)]}},_0x4b823e=this['_transformService'][_0x2fda2d(0x264)](_0x5a2c4a,_0x5800cf,!0x1),_0x173543=this[_0x2fda2d(0x2b6)][_0x2fda2d(0x264)](_0x536176,_0x2f9f31,!0x1);if(g[_0x2fda2d(0x19d)](_0x4b823e))throw _0x4b823e['error'];if(g[_0x2fda2d(0x19d)](_0x173543))throw _0x173543[_0x2fda2d(0x149)];_0x33177e[_0x2fda2d(0x131)]({..._0x29fd70[_0x478b61],'undoState':_0x4b823e['m2Prime']['params'],'redoState':_0x173543[_0x2fda2d(0x2ed)][_0x2fda2d(0x2e1)]}),_0x5a2c4a=_0x4b823e[_0x2fda2d(0x2d1)],_0x536176=_0x173543[_0x2fda2d(0x2d1)];}this[_0x2fda2d(0x14c)]['setStateCache'](_0x5e915a,{'history':_0x43329b,'collaboration':_0x33177e});}};J=ds([he(0x0,a[_0x45d155(0x313)](a['Injector'])),he(0x1,g[_0x45d155(0x315)]),he(0x2,a[_0x45d155(0x313)](b[_0x45d155(0x244)]))],J);var fs=Object[_0x45d155(0x2bd)],Ss=Object[_0x45d155(0x2da)],vs=(_0x59eaa9,_0xf873d3,_0x51c49d,_0x40eb8e)=>{for(var _0x3ee2bf=_0x40eb8e>0x1?void 0x0:_0x40eb8e?Ss(_0xf873d3,_0x51c49d):_0xf873d3,_0x2eda00=_0x59eaa9['length']-0x1,_0x3c8116;_0x2eda00>=0x0;_0x2eda00--)(_0x3c8116=_0x59eaa9[_0x2eda00])&&(_0x3ee2bf=(_0x40eb8e?_0x3c8116(_0xf873d3,_0x51c49d,_0x3ee2bf):_0x3c8116(_0x3ee2bf))||_0x3ee2bf);return _0x40eb8e&&_0x3ee2bf&&fs(_0xf873d3,_0x51c49d,_0x3ee2bf),_0x3ee2bf;},Ae=(_0x127728,_0x2d2ffc)=>(_0x135a80,_0x5b2f24)=>_0x2d2ffc(_0x135a80,_0x5b2f24,_0x127728);let Z=class{constructor(_0x1e5f4c,_0x593b95){const _0x189b9e=_0x45d155;this[_0x189b9e(0x30f)]=_0x1e5f4c,this[_0x189b9e(0x2b6)]=_0x593b95;}['transformSelections'](_0x3a0b93){const _0x595b8a=_0x45d155;var _0x376ea5;const _0x25f979=this[_0x595b8a(0x30f)][_0x595b8a(0x1c1)](X['DocSelectionManagerService']),_0x54f79a=(_0x376ea5=_0x25f979[_0x595b8a(0x2b8)]())!=null?_0x376ea5:[];if(_0x54f79a[_0x595b8a(0x1fd)]===0x0)return;const _0x169d46=_0x3a0b93[_0x595b8a(0x173)],_0x79ae5f=[{'id':_0x595b8a(0x2db),'params':{'unitId':_0x169d46,'actions':null,'textRanges':_0x54f79a}}],_0x14157b=this[_0x595b8a(0x2b6)][_0x595b8a(0x18a)](_0x3a0b93,_0x79ae5f);if(!g[_0x595b8a(0x302)](_0x14157b))throw _0x14157b[_0x595b8a(0x149)];const _0x5856fd=_0x14157b['m2Prime'][0x0][_0x595b8a(0x2e1)][_0x595b8a(0x2d3)];Array[_0x595b8a(0x289)](_0x5856fd)&&_0x5856fd[_0x595b8a(0x1fd)]&&_0x25f979['replaceDocRanges'](_0x5856fd,{'unitId':_0x169d46,'subUnitId':_0x169d46},!0x1);}};Z=vs([Ae(0x0,a['Inject'](a[_0x45d155(0x2d4)])),Ae(0x1,g[_0x45d155(0x315)])],Z);var ms=Object['defineProperty'],Is=Object[_0x45d155(0x2da)],gs=(_0x389b62,_0x1dd7ed,_0x2f2147,_0x309a7f)=>{const _0x3f5499=_0x45d155;for(var _0x5f0572=_0x309a7f>0x1?void 0x0:_0x309a7f?Is(_0x1dd7ed,_0x2f2147):_0x1dd7ed,_0x378ed2=_0x389b62[_0x3f5499(0x1fd)]-0x1,_0x498616;_0x378ed2>=0x0;_0x378ed2--)(_0x498616=_0x389b62[_0x378ed2])&&(_0x5f0572=(_0x309a7f?_0x498616(_0x1dd7ed,_0x2f2147,_0x5f0572):_0x498616(_0x5f0572))||_0x5f0572);return _0x309a7f&&_0x5f0572&&ms(_0x1dd7ed,_0x2f2147,_0x5f0572),_0x5f0572;},P=(_0x246215,_0x1d72e4)=>(_0x18445c,_0x5305f2)=>_0x1d72e4(_0x18445c,_0x5305f2,_0x246215);let Q=class extends a['Disposable']{constructor(_0x46ae61,_0x408c12,_0x212c4e,_0x371eab,_0x3524e6,_0x492cee,_0x166a46,_0xea1d01){const _0x1cc454=_0x45d155;super(),_(this,_0x1cc454(0x1e7),new S[(_0x1cc454(0x23d))](u[_0x1cc454(0x2c9)][_0x1cc454(0x352)])),(this[_0x1cc454(0x14c)]=_0x46ae61,this['_collaborationController']=_0x408c12,this['_docTransformIMECacheService']=_0x212c4e,this[_0x1cc454(0x363)]=_0x371eab,this[_0x1cc454(0x26c)]=_0x3524e6,this[_0x1cc454(0x32e)]=_0x492cee,this['_messageService']=_0x166a46,this['_localeService']=_0xea1d01,this[_0x1cc454(0x2cf)]());}[_0x45d155(0x2cf)](){const _0x2bea02=_0x45d155;this[_0x2bea02(0x1de)](this['_collaborationController'][_0x2bea02(0x340)][_0x2bea02(0x11d)](_0x1f5db6=>{const _0x146240=_0x2bea02,_0x20d1fc=this[_0x146240(0x14c)]['docStateChange$'][_0x146240(0x11d)](_0x2032b5=>{const _0x47c227=_0x146240;if(_0x2032b5==null)return;const {unitId:_0x56c1fe,redoState:_0x568858,commandId:_0xeca7bc}=_0x2032b5;if(_0x56c1fe!==_0x1f5db6[_0x47c227(0x173)])return;const _0x1e672d={'id':_0xeca7bc,'type':a['CommandType'][_0x47c227(0x288)],'params':{'unitId':_0x56c1fe,'actions':_0x568858['actions'],'textRanges':null}};_0x1f5db6[_0x47c227(0x1c0)](_0x1e672d);});if(_0x1f5db6[_0x146240(0x1de)](_0x20d1fc),_0x1f5db6 instanceof u['DocCollaborationEntity']){const _0x56cfd6={'onTransformIME':_0x53023a=>this['_docTransformIMECacheService'][_0x146240(0x145)](_0x53023a),'onTransformState':_0x53117b=>this[_0x146240(0x363)][_0x146240(0x2bb)](_0x53117b),'onTransformSelections':_0x179ec9=>this[_0x146240(0x26c)][_0x146240(0x130)](_0x179ec9),'onSyncEditingCollabCursor':_0x94bd88=>this['_docSyncEditingCollabCursorService'][_0x146240(0x1b7)](_0x94bd88),'onTransformRemoteChangesetByIMECache':_0x14989c=>this['_docTransformIMECacheService'][_0x146240(0x2e3)](_0x14989c),'onTransformRemoteChangesetByStateCache':_0x30d6c=>this[_0x146240(0x363)][_0x146240(0x2e3)](_0x30d6c)};_0x1f5db6[_0x146240(0x2eb)](_0x56cfd6);}}));}};Q=gs([P(0x0,a[_0x45d155(0x313)](b['DocStateChangeManagerService'])),P(0x1,a['Inject'](u['CollaborationController'])),P(0x2,a['Inject'](z)),P(0x3,a[_0x45d155(0x313)](J)),P(0x4,a[_0x45d155(0x313)](Z)),P(0x5,a['Inject'](be)),P(0x6,w[_0x45d155(0x152)]),P(0x7,a[_0x45d155(0x313)](a[_0x45d155(0x32c)]))],Q);var ps=Object[_0x45d155(0x2bd)],Cs=Object[_0x45d155(0x2da)],bs=(_0x521ece,_0x580468,_0x4c86c9,_0x1a3a9c)=>{const _0x2cc14b=_0x45d155;for(var _0x65735c=_0x1a3a9c>0x1?void 0x0:_0x1a3a9c?Cs(_0x580468,_0x4c86c9):_0x580468,_0x3347dd=_0x521ece[_0x2cc14b(0x1fd)]-0x1,_0x57a8cf;_0x3347dd>=0x0;_0x3347dd--)(_0x57a8cf=_0x521ece[_0x3347dd])&&(_0x65735c=(_0x1a3a9c?_0x57a8cf(_0x580468,_0x4c86c9,_0x65735c):_0x57a8cf(_0x65735c))||_0x65735c);return _0x1a3a9c&&_0x65735c&&ps(_0x580468,_0x4c86c9,_0x65735c),_0x65735c;},_e=(_0x18898b,_0x1d3a54)=>(_0x59acf3,_0x4127c0)=>_0x1d3a54(_0x59acf3,_0x4127c0,_0x18898b);let pe=class extends a[_0x45d155(0x1ab)]{constructor(_0x2cf8c5,_0x1ce89c,_0x177c62){const _0x39b715=_0x45d155;super(),_(this,'_cachedData',new Map()),_(this,_0x39b715(0x1df),new Map()),_(this,_0x39b715(0x247),!0x1),(this[_0x39b715(0x2aa)]=_0x2cf8c5,this['_localStorageService']=_0x1ce89c,this[_0x39b715(0x242)]=_0x177c62);}[_0x45d155(0x1cf)](){const _0x2077a3=_0x45d155;this[_0x2077a3(0x247)]=!0x0;}[_0x45d155(0x172)](){const _0x4d9b64=_0x45d155;this[_0x4d9b64(0x247)]=!0x1;}get[_0x45d155(0x110)](){const _0x491aef=_0x45d155;return this[_0x491aef(0x1df)];}[_0x45d155(0x124)](){const _0x3eb024=_0x45d155;this[_0x3eb024(0x224)]()[_0x3eb024(0x2e9)](()=>super[_0x3eb024(0x124)]());}async['loadOfflineData'](_0x10fa98){const _0x5dcf0a=_0x45d155;return this[_0x5dcf0a(0x247)]?null:this['_localStorageService'][_0x5dcf0a(0x203)](u['getLocalCacheKey'](_0x10fa98));}async['saveOfflineData'](_0x11b93f,_0xa03ea3){const _0x40ab09=_0x45d155;return!!this[_0x40ab09(0x300)]['setItem'](_0x11b93f,_0xa03ea3);}[_0x45d155(0x223)](_0x2d39ed,_0x373976,_0x526c0e,_0x1c83c9){const _0x3eb665=_0x45d155,_0x36c874=this['_revisionService'][_0x3eb665(0x1e4)](_0x2d39ed);this['_cachedData'][_0x3eb665(0x312)](_0x2d39ed,{'unitID':_0x2d39ed,'type':_0x373976,'awaitingChangeset':_0x526c0e,'mutations':_0x1c83c9,'rev':_0x36c874}),this[_0x3eb665(0x1df)][_0x3eb665(0x206)](_0x2d39ed)||this[_0x3eb665(0x31f)](_0x2d39ed);}['_scheduleSaving'](_0x487444){const _0x916e92=_0x45d155,_0x33a4a8=this[_0x916e92(0x166)]();_0x33a4a8===0x0?this[_0x916e92(0x20c)](_0x487444):this[_0x916e92(0x1df)]['set'](_0x487444,setTimeout(()=>this[_0x916e92(0x20c)](_0x487444),_0x33a4a8));}[_0x45d155(0x166)](){const _0x4ea9c1=_0x45d155;var _0x25ddea;return(_0x25ddea=this[_0x4ea9c1(0x2aa)][_0x4ea9c1(0x23c)](u[_0x4ea9c1(0x295)]))!=null?_0x25ddea:u[_0x4ea9c1(0x19a)];}[_0x45d155(0x20c)](_0x50127e){const _0x3e8d36=_0x45d155,_0x27b0a0=this[_0x3e8d36(0x1df)][_0x3e8d36(0x1c1)](_0x50127e);return _0x27b0a0!==void 0x0&&window[_0x3e8d36(0x35c)](_0x27b0a0),this[_0x3e8d36(0x300)]['setItem'](u[_0x3e8d36(0x140)](_0x50127e),this[_0x3e8d36(0x12b)][_0x3e8d36(0x1c1)](_0x50127e))[_0x3e8d36(0x2e9)](()=>this[_0x3e8d36(0x1df)][_0x3e8d36(0x2ee)](_0x50127e));}async['exhaustSavingTask'](){const _0x233aed=_0x45d155,_0x4aa08e=[];this[_0x233aed(0x1df)][_0x233aed(0x2f4)]((_0x56a0dc,_0x1a1e82)=>{const _0x35ebc2=_0x233aed;window[_0x35ebc2(0x35c)](_0x56a0dc),_0x4aa08e[_0x35ebc2(0x374)](this['_saveCache'](_0x1a1e82)[_0x35ebc2(0x2e9)](()=>{const _0xe3903=_0x35ebc2;this[_0xe3903(0x1df)][_0xe3903(0x2ee)](_0x1a1e82);}));}),await Promise['all'](_0x4aa08e);}};pe=bs([_e(0x0,a[_0x45d155(0x13e)]),_e(0x1,a[_0x45d155(0x359)]),_e(0x2,a['Inject'](g['RevisionService']))],pe);class Xe extends a[_0x45d155(0x30a)]{constructor(){const _0x9b1e6d=_0x45d155;super(),_(this,_0x9b1e6d(0x35a)),this['urlChange$']=S['fromEvent'](window,_0x9b1e6d(0x1eb))[_0x9b1e6d(0x1f6)](S[_0x9b1e6d(0x1a6)](this[_0x9b1e6d(0x21e)]),S['shareReplay'](0x1),S['mapTo'](void 0x0));}[_0x45d155(0x232)](_0x3e03ae,_0x54ddde,_0x32cdde=!0x1){const _0x42f4ef=_0x45d155,_0x18c07d=new URL(window[_0x42f4ef(0x116)][_0x42f4ef(0x18e)]);_0x18c07d['searchParams'][_0x42f4ef(0x312)](_0x3e03ae,_0x54ddde),_0x32cdde?window['history']['replaceState']('','',_0x18c07d[_0x42f4ef(0x367)]()):window[_0x42f4ef(0x2c4)][_0x42f4ef(0x22f)]('','',_0x18c07d[_0x42f4ef(0x367)]());}[_0x45d155(0x34c)](_0x384b49,_0x239468=!0x1){const _0x13c0e5=_0x45d155,_0x4a4844=new URL(window[_0x13c0e5(0x116)]['href']);_0x4a4844[_0x13c0e5(0x170)][_0x13c0e5(0x2ee)](_0x384b49),_0x239468?window[_0x13c0e5(0x2c4)][_0x13c0e5(0x32f)]('','',_0x4a4844[_0x13c0e5(0x367)]()):window['history'][_0x13c0e5(0x22f)]('','',_0x4a4844[_0x13c0e5(0x367)]());}[_0x45d155(0x14f)](_0x1993ac){const _0x3d6e80=_0x45d155;var _0x1e28e7;return(_0x1e28e7=new URL(window['location']['href'])[_0x3d6e80(0x170)]['get'](_0x1993ac))!=null?_0x1e28e7:void 0x0;}}var Ve=Object[_0x45d155(0x2bd)],Es=Object[_0x45d155(0x2da)],Rs=(_0x4076bc,_0x2763b4,_0x359270)=>_0x2763b4 in _0x4076bc?Ve(_0x4076bc,_0x2763b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x359270}):_0x4076bc[_0x2763b4]=_0x359270,Ts=(_0x22d213,_0x479c44,_0x13841e,_0x399355)=>{for(var _0x5b8f19=_0x399355>0x1?void 0x0:_0x399355?Es(_0x479c44,_0x13841e):_0x479c44,_0x1e4f47=_0x22d213['length']-0x1,_0x40f453;_0x1e4f47>=0x0;_0x1e4f47--)(_0x40f453=_0x22d213[_0x1e4f47])&&(_0x5b8f19=(_0x399355?_0x40f453(_0x479c44,_0x13841e,_0x5b8f19):_0x40f453(_0x5b8f19))||_0x5b8f19);return _0x399355&&_0x5b8f19&&Ve(_0x479c44,_0x13841e,_0x5b8f19),_0x5b8f19;},ue=(_0x301eb1,_0x191254)=>(_0x674ef3,_0x4afc55)=>_0x191254(_0x674ef3,_0x4afc55,_0x301eb1),Os=(_0x3930c8,_0x500260,_0x286626)=>Rs(_0x3930c8,_0x500260+'',_0x286626);const Ds=_0x45d155(0x2cc);exports[_0x45d155(0x36f)]=class extends a[_0x45d155(0x111)]{constructor(_0x57b9c3=Le,_0x1dbe9e,_0x16d67d,_0x1382b0){const _0x349324=_0x45d155;super(),this[_0x349324(0x29b)]=_0x57b9c3,this[_0x349324(0x356)]=_0x1dbe9e,this[_0x349324(0x30f)]=_0x16d67d,this[_0x349324(0x2aa)]=_0x1382b0;const {..._0x20038a}=a[_0x349324(0x306)]({},Le,this['_config']);this['_configService']['setConfig'](is,_0x20038a);}[_0x45d155(0x2f0)](){const _0x5cda86=_0x45d155;this[_0x5cda86(0x1bc)](),this[_0x5cda86(0x184)]();}[_0x45d155(0x290)](){const _0x21c761=_0x45d155;this[_0x21c761(0x155)]();}[_0x45d155(0x1bc)](){const _0xe85711=_0x45d155;var _0x48409f;const _0x56e024=[[Ce],[Z],[z],[J],[be],[Re,{'useClass':Xe}],[fe['ISocketService'],{'useClass':fe[_0xe85711(0x18d)]}],[u[_0xe85711(0x33c)],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[K],[x],[Se],[exports[_0xe85711(0x14d)]]];a[_0xe85711(0x169)](this[_0xe85711(0x30f)],a[_0xe85711(0x1a5)](_0x56e024,(_0x48409f=this[_0xe85711(0x29b)])==null?void 0x0:_0x48409f[_0xe85711(0x182)]));}['_registerRenderDependencies'](){const _0x29109e=_0x45d155;this[_0x29109e(0x1de)](this[_0x29109e(0x356)][_0x29109e(0x338)](a[_0x29109e(0x25b)][_0x29109e(0x2b0)],[Ie])),this[_0x29109e(0x1de)](this[_0x29109e(0x356)]['registerRenderModule'](a[_0x29109e(0x25b)][_0x29109e(0x2b4)],[ge]));}[_0x45d155(0x184)](){const _0x21ab9f=_0x45d155;a[_0x21ab9f(0x30e)](this[_0x21ab9f(0x30f)],[[x],[exports[_0x21ab9f(0x345)]],[Q],[K],[exports[_0x21ab9f(0x14d)]]]);}},Os(exports[_0x45d155(0x36f)],_0x45d155(0x1ea),Ds),exports[_0x45d155(0x36f)]=Ts([a[_0x45d155(0x21c)](u['UniverCollaborationClientPlugin']),ue(0x1,p['IRenderManagerService']),ue(0x2,a[_0x45d155(0x313)](a[_0x45d155(0x2d4)])),ue(0x3,a[_0x45d155(0x13e)])],exports['UniverCollaborationClientUIPlugin']);const ye=0x7530,$e='ACTIVE_UNIT_EVENT_CHANNEL';class Ps extends a['Disposable']{constructor(){const _0x37b880=_0x45d155;super(),_(this,'_id',a[_0x37b880(0x37a)][_0x37b880(0x31a)]()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x37b880(0x175)]();}[_0x45d155(0x124)](){const _0x5c037b=_0x45d155;super[_0x5c037b(0x124)](),this[_0x5c037b(0x1f4)][_0x5c037b(0x2f4)]((_0x536f43,_0x346ac3)=>this[_0x5c037b(0x2e2)](_0x346ac3)),this[_0x5c037b(0x36a)]&&window[_0x5c037b(0x209)](this[_0x5c037b(0x36a)]);}['getUnitStatus$'](_0x104b40){const _0x2dab67=_0x45d155;return this['_ensureSubject'](_0x104b40)[_0x2dab67(0x1f6)](S[_0x2dab67(0x18b)]());}[_0x45d155(0x27c)](_0x107e05){const _0x691702=_0x45d155;this[_0x691702(0x123)][_0x691702(0x192)]===0x0&&this[_0x691702(0x16b)](),this[_0x691702(0x123)]['add'](_0x107e05),this['_send']({'type':0x0,'memberID':this[_0x691702(0x211)],'unitIDs':[_0x107e05],'isForwarded':!0x1});}[_0x45d155(0x143)](_0x3f05aa){const _0x5f0033=_0x45d155;this[_0x5f0033(0x123)]['delete'](_0x3f05aa),this[_0x5f0033(0x123)]['size']===0x0&&this[_0x5f0033(0x36a)]&&window[_0x5f0033(0x209)](this[_0x5f0033(0x36a)]);}['_init'](){const _0x11ccc2=_0x45d155;this['disposeWithMe'](a[_0x11ccc2(0x259)](S[_0x11ccc2(0x2c0)](window,_0x11ccc2(0x280))[_0x11ccc2(0x11d)](_0x2b25fa=>{const _0x1eba42=_0x11ccc2;if(_0x2b25fa['key']!==$e||!_0x2b25fa[_0x1eba42(0x375)])return;const _0x4639d9=JSON[_0x1eba42(0x190)](_0x2b25fa[_0x1eba42(0x375)]);this[_0x1eba42(0x269)](_0x4639d9);}))),window[_0x11ccc2(0x128)](_0x11ccc2(0x362),()=>this['_send']({'type':0x1,'memberID':this[_0x11ccc2(0x211)],'unitIDs':Array['from'](this[_0x11ccc2(0x123)])}));}[_0x45d155(0x269)](_0x404c96){const _0x11a56b=_0x45d155;switch(_0x404c96[_0x11a56b(0x22a)]){case 0x0:this[_0x11a56b(0x1e5)](_0x404c96);break;case 0x1:this[_0x11a56b(0x2be)](_0x404c96);break;case 0x2:this['_handleHeartbeatEvent'](_0x404c96);break;}}[_0x45d155(0x1e5)](_0x26d15a){const _0x13e6f5=_0x45d155,{unitIDs:_0x36bd02,memberID:_0x1c2953,isForwarded:_0x56f20f}=_0x26d15a;_0x36bd02[_0x13e6f5(0x2f4)](_0x595bcb=>{const _0x157a61=_0x13e6f5;if(!_0x56f20f&&this[_0x157a61(0x365)][_0x157a61(0x206)](_0x595bcb)&&this[_0x157a61(0x1a2)](_0x595bcb)['next'](u['UnitStatus'][_0x157a61(0x148)]),!this[_0x157a61(0x365)][_0x157a61(0x206)](_0x595bcb)||!this[_0x157a61(0x365)][_0x157a61(0x1c1)](_0x595bcb)['has'](_0x1c2953)){const _0xda11e8=this[_0x157a61(0x365)]['get'](_0x595bcb)||new Set();_0xda11e8[_0x157a61(0x199)](_0x1c2953),this['_unitOnClients'][_0x157a61(0x312)](_0x595bcb,_0xda11e8),this['_scheduleClearOtherTimer'](_0x1c2953);}}),_0x56f20f||this[_0x13e6f5(0x241)]({'type':0x0,'memberID':this[_0x13e6f5(0x211)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x45d155(0x2f3)](_0xaea02f){const _0x3240b6=_0x45d155;this[_0x3240b6(0x2e2)](_0xaea02f);const _0x4c04f3=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x96b440=>{const _0x1d8c4b=_0x15df;_0x96b440[_0x1d8c4b(0x2ee)](_0xaea02f);});},ye*0x2);this[_0x3240b6(0x1f4)][_0x3240b6(0x312)](_0xaea02f,_0x4c04f3);}[_0x45d155(0x2e2)](_0x388253){const _0x321d16=_0x45d155;if(this[_0x321d16(0x1f4)][_0x321d16(0x206)](_0x388253)){const _0x3b3580=this[_0x321d16(0x1f4)][_0x321d16(0x1c1)](_0x388253);_0x3b3580&&window[_0x321d16(0x35c)](_0x3b3580),this['_clearOtherTimers'][_0x321d16(0x312)](_0x388253,null);}}[_0x45d155(0x2be)](_0x15d2ef){const _0x436852=_0x45d155,{memberID:_0x21283f,unitIDs:_0x38c24e}=_0x15d2ef;_0x38c24e[_0x436852(0x2f4)](_0x379fbc=>{const _0x53ae28=_0x436852;var _0x417aaa;const _0x2e078e=this[_0x53ae28(0x365)]['get'](_0x379fbc);_0x2e078e&&(_0x2e078e[_0x53ae28(0x2ee)](_0x21283f),(_0x417aaa=this['_ensureSubject'](_0x379fbc))==null||_0x417aaa[_0x53ae28(0x27a)](_0x2e078e['size']===0x0?u[_0x53ae28(0x266)][_0x53ae28(0x34e)]:u[_0x53ae28(0x266)][_0x53ae28(0x148)]));}),this[_0x436852(0x2e2)](_0x21283f);}[_0x45d155(0x27e)](_0x14c7e8){const _0x1ebc42=_0x45d155;this[_0x1ebc42(0x2f3)](_0x14c7e8[_0x1ebc42(0x135)]);}[_0x45d155(0x241)](_0x162a02){const _0x23e167=_0x45d155;localStorage[_0x23e167(0x332)]($e,JSON[_0x23e167(0x368)](_0x162a02));}['_scheduleHeartbeat'](){const _0x4fc303=_0x45d155;this['_heartbeatTimer']=window[_0x4fc303(0x133)](()=>{const _0x355d91=_0x4fc303;this[_0x355d91(0x241)]({'type':0x2,'memberID':this[_0x355d91(0x211)]});},ye);}[_0x45d155(0x1a2)](_0x3cdc5a){const _0x1e2941=_0x45d155;return this['_unitStatus'][_0x1e2941(0x206)](_0x3cdc5a)||this[_0x1e2941(0x1c5)][_0x1e2941(0x312)](_0x3cdc5a,new S[(_0x1e2941(0x23d))](u['UnitStatus']['NO_OTHER_CLIENTS_EDITING'])),this[_0x1e2941(0x1c5)]['get'](_0x3cdc5a);}}var Ge=(_0x481a17=>(_0x481a17[_0x481a17[_0x45d155(0x217)]=0x0]=_0x45d155(0x217),_0x481a17[_0x481a17['OK']=0x1]='OK',_0x481a17[_0x481a17[_0x45d155(0x30b)]=0x2]=_0x45d155(0x30b),_0x481a17[_0x481a17[_0x45d155(0x137)]=0x3]='PERMISSION_DENIED',_0x481a17[_0x481a17[_0x45d155(0x157)]=0x4]=_0x45d155(0x157),_0x481a17[_0x481a17[_0x45d155(0x1cb)]=0x5]=_0x45d155(0x1cb),_0x481a17[_0x481a17['ALREADY_EXISTS']=0x6]=_0x45d155(0x30d),_0x481a17[_0x481a17[_0x45d155(0x1c9)]=0x7]=_0x45d155(0x1c9),_0x481a17[_0x481a17[_0x45d155(0x29f)]=0x8]=_0x45d155(0x29f),_0x481a17[_0x481a17[_0x45d155(0x270)]=0x9]='COMPLETION_FINISHED',_0x481a17[_0x481a17['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x481a17[_0x481a17[_0x45d155(0x2f6)]=0x1771]=_0x45d155(0x2f6),_0x481a17[_0x481a17[_0x45d155(0x191)]=0x1772]=_0x45d155(0x191),_0x481a17[_0x481a17[_0x45d155(0x227)]=0x1773]=_0x45d155(0x227),_0x481a17[_0x481a17[_0x45d155(0x258)]=0x1b59]='APPLY_REJECT',_0x481a17[_0x481a17[_0x45d155(0x114)]=0x1b5a]=_0x45d155(0x114),_0x481a17[_0x481a17[_0x45d155(0x293)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x481a17[_0x481a17[_0x45d155(0x120)]=0x1b5c]=_0x45d155(0x120),_0x481a17[_0x481a17[_0x45d155(0x220)]=0x1b5d]=_0x45d155(0x220),_0x481a17[_0x481a17[_0x45d155(0x246)]=0x1f41]=_0x45d155(0x246),_0x481a17[_0x481a17[_0x45d155(0x28d)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x481a17[_0x481a17[_0x45d155(0x2c8)]=0x232a]=_0x45d155(0x2c8),_0x481a17[_0x481a17[_0x45d155(0x369)]=0x232b]=_0x45d155(0x369),_0x481a17[_0x481a17[_0x45d155(0x337)]=0x232c]=_0x45d155(0x337),_0x481a17[_0x481a17[_0x45d155(0x1ce)]=0x232d]=_0x45d155(0x1ce),_0x481a17[_0x481a17[_0x45d155(0x20a)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x481a17[_0x481a17[_0x45d155(0x1c3)]=0x2712]=_0x45d155(0x1c3),_0x481a17[_0x481a17[_0x45d155(0x329)]=0x2713]=_0x45d155(0x329),_0x481a17[_0x481a17[_0x45d155(0x28a)]=0x2714]=_0x45d155(0x28a),_0x481a17[_0x481a17[_0x45d155(0x34b)]=-0x1]=_0x45d155(0x34b),_0x481a17))(Ge||{}),Ms=Object['defineProperty'],Us=Object[_0x45d155(0x2da)],Ns=(_0x35e0a6,_0x336e59,_0x9d4901,_0x29937a)=>{const _0x80bec3=_0x45d155;for(var _0x5061e4=_0x29937a>0x1?void 0x0:_0x29937a?Us(_0x336e59,_0x9d4901):_0x336e59,_0x582add=_0x35e0a6[_0x80bec3(0x1fd)]-0x1,_0xce31ef;_0x582add>=0x0;_0x582add--)(_0xce31ef=_0x35e0a6[_0x582add])&&(_0x5061e4=(_0x29937a?_0xce31ef(_0x336e59,_0x9d4901,_0x5061e4):_0xce31ef(_0x5061e4))||_0x5061e4);return _0x29937a&&_0x5061e4&&Ms(_0x336e59,_0x9d4901,_0x5061e4),_0x5061e4;},de=(_0x324197,_0x5fe464)=>(_0x355a9d,_0x40171a)=>_0x5fe464(_0x355a9d,_0x40171a,_0x324197);exports[_0x45d155(0x11b)]=class extends a[_0x45d155(0x1ab)]{constructor(_0x23711c,_0x43290a,_0x11fde2){const _0x5f41df=_0x45d155;super(),this[_0x5f41df(0x245)]=_0x23711c,this[_0x5f41df(0x26d)]=_0x43290a,this[_0x5f41df(0x2aa)]=_0x11fde2;}async[_0x45d155(0x301)](_0xcee079,_0x5f0ed4,..._0xc26c2a){const _0x1d9713=_0x45d155;var _0x24fc84,_0x413566;const _0x1d506b=this[_0x1d9713(0x245)][_0x1d9713(0x257)]();if(!_0x1d506b)throw new Error(_0x1d9713(0x318));const _0x4ac10b=((_0x24fc84=this[_0x1d9713(0x2aa)][_0x1d9713(0x23c)](u[_0x1d9713(0x177)]))!=null?_0x24fc84:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0xcee079+_0x1d9713(0x2b3)+_0x5f0ed4,_0x3b04b4=new URL(window[_0x1d9713(0x116)][_0x1d9713(0x18e)]),_0x25f64f={'scriptId':_0xcee079,'runId':(_0x413566=_0x3b04b4[_0x1d9713(0x170)][_0x1d9713(0x1c1)](_0x1d9713(0x2ff)))!=null?_0x413566:'','function':_0x5f0ed4,'unitId':_0x1d506b['getUnitId'](),'argsOfFunction':JSON[_0x1d9713(0x368)](_0xc26c2a)};try{const _0x2ec400=await this['_httpService'][_0x1d9713(0x1e9)](_0x4ac10b,{'body':_0x25f64f});return!(_0x2ec400['body']['error']&&_0x2ec400[_0x1d9713(0x2a3)]['error'][_0x1d9713(0x19b)]!==Ge['OK']);}catch{return!0x1;}}},exports[_0x45d155(0x11b)]=Ns([de(0x0,a[_0x45d155(0x196)]),de(0x1,a[_0x45d155(0x313)](fe['HTTPService'])),de(0x2,a[_0x45d155(0x13e)])],exports[_0x45d155(0x11b)]),exports[_0x45d155(0x16c)]=Ye,exports[_0x45d155(0x334)]=Re,exports['SheetCollabCursorShape']=je,exports[_0x45d155(0x344)]=Ps,exports[_0x45d155(0x21f)]=Xe;