@univerjs-pro/collaboration-client-ui 0.9.1-nightly.202507071607 → 0.9.1

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 _0x3d428b=_0x15bb;(function(_0x4d110b,_0x73ae86){const _0x96b66c=_0x15bb,_0x437f76=_0x4d110b();while(!![]){try{const _0x392cc3=-parseInt(_0x96b66c(0xc4))/0x1*(parseInt(_0x96b66c(0xc2))/0x2)+parseInt(_0x96b66c(0xc1))/0x3*(parseInt(_0x96b66c(0xba))/0x4)+parseInt(_0x96b66c(0xc5))/0x5+parseInt(_0x96b66c(0xbd))/0x6+-parseInt(_0x96b66c(0xb9))/0x7*(-parseInt(_0x96b66c(0xc0))/0x8)+parseInt(_0x96b66c(0xc3))/0x9+-parseInt(_0x96b66c(0xc6))/0xa;if(_0x392cc3===_0x73ae86)break;else _0x437f76['push'](_0x437f76['shift']());}catch(_0xa10e2d){_0x437f76['push'](_0x437f76['shift']());}}}(_0x345f,0xdd973));function _0x15bb(_0x569dc0,_0x5a658d){const _0x345fe1=_0x345f();return _0x15bb=function(_0x15bbb6,_0x39905e){_0x15bbb6=_0x15bbb6-0xb8;let _0x198709=_0x345fe1[_0x15bbb6];return _0x198709;},_0x15bb(_0x569dc0,_0x5a658d);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');function _0x345f(){const _0x5a992d=['2274wGTwxU','3223158TgtJFP','8609256UwsGtS','1lNIGBT','4365970RhSQnX','22954200zMeZvi','runOnServer','80234PlxXik','7892EJyzTP','FUniver','_injector','3915576aFhAMA','get','extend','584Bbnxps'];_0x345f=function(){return _0x5a992d;};return _0x345f();}class c extends e[_0x3d428b(0xbb)]{['runOnServer'](_0x5a3380,_0x38c6f9,..._0x3a2c27){const _0x354279=_0x3d428b;return this[_0x354279(0xbc)][_0x354279(0xbe)](t['RemoteUniscriptService'])[_0x354279(0xb8)](_0x5a3380,_0x38c6f9,{},..._0x3a2c27);}}e['FUniver'][_0x3d428b(0xbf)](c);
1
+ 'use strict';const _0x2d9484=_0x5b35;(function(_0x107ea5,_0x26a252){const _0x44fd3a=_0x5b35,_0x1c04b1=_0x107ea5();while(!![]){try{const _0x495d92=-parseInt(_0x44fd3a(0x11e))/0x1*(parseInt(_0x44fd3a(0x123))/0x2)+-parseInt(_0x44fd3a(0x11d))/0x3+parseInt(_0x44fd3a(0x127))/0x4+-parseInt(_0x44fd3a(0x120))/0x5+parseInt(_0x44fd3a(0x122))/0x6+parseInt(_0x44fd3a(0x124))/0x7+parseInt(_0x44fd3a(0x126))/0x8;if(_0x495d92===_0x26a252)break;else _0x1c04b1['push'](_0x1c04b1['shift']());}catch(_0x7159c8){_0x1c04b1['push'](_0x1c04b1['shift']());}}}(_0x396d,0xe206d));function _0x396d(){const _0xe646b6=['9281265efFdtE','RemoteUniscriptService','25405776NgtxMu','3040372GGJoxn','get','extend','4653624GqLnLY','1583063saJjoI','FUniver','8757500WksBOc','runOnServer','3299196KnNUsu','2wwFwNW'];_0x396d=function(){return _0xe646b6;};return _0x396d();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x2d9484(0x11f)]{[_0x2d9484(0x121)](_0x35ded7,_0x25beab,..._0x58f64b){const _0x452cd0=_0x2d9484;return this['_injector'][_0x452cd0(0x128)](t[_0x452cd0(0x125)])['runOnServer'](_0x35ded7,_0x25beab,{},..._0x58f64b);}}function _0x5b35(_0xfad63a,_0x50fb27){const _0x396d31=_0x396d();return _0x5b35=function(_0x5b3553,_0x202cfa){_0x5b3553=_0x5b3553-0x11c;let _0x40e03f=_0x396d31[_0x5b3553];return _0x40e03f;},_0x5b35(_0xfad63a,_0x50fb27);}e[_0x2d9484(0x11f)][_0x2d9484(0x11c)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3d2806=_0x2d87;(function(_0x994e4e,_0x2f20ce){const _0x291929=_0x2d87,_0x24f5cc=_0x994e4e();while(!![]){try{const _0x439788=parseInt(_0x291929(0x1df))/0x1*(-parseInt(_0x291929(0x27a))/0x2)+-parseInt(_0x291929(0x185))/0x3+-parseInt(_0x291929(0x89))/0x4*(-parseInt(_0x291929(0x1dd))/0x5)+parseInt(_0x291929(0xf3))/0x6+parseInt(_0x291929(0x287))/0x7*(-parseInt(_0x291929(0x315))/0x8)+-parseInt(_0x291929(0x251))/0x9+-parseInt(_0x291929(0x174))/0xa*(-parseInt(_0x291929(0x18b))/0xb);if(_0x439788===_0x2f20ce)break;else _0x24f5cc['push'](_0x24f5cc['shift']());}catch(_0x1c987a){_0x24f5cc['push'](_0x24f5cc['shift']());}}}(_0x5e28,0x1d237));var Ve=Object[_0x3d2806(0x27d)],Xe=(_0xa9b2f0,_0x288d4f,_0x2fad46)=>_0x288d4f in _0xa9b2f0?Ve(_0xa9b2f0,_0x288d4f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fad46}):_0xa9b2f0[_0x288d4f]=_0x2fad46,h=(_0x470d28,_0xc99b4a,_0x19de42)=>Xe(_0x470d28,typeof _0xc99b4a!=_0x3d2806(0x253)?_0xc99b4a+'':_0xc99b4a,_0x19de42);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x3d2806(0x1f4)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x3d2806(0x19f)],ze=(_0x527e65,_0x2b39a8,_0x17b8b1,_0x228d40)=>{const _0x86cb48=_0x3d2806;for(var _0x5e8d78=_0x228d40>0x1?void 0x0:_0x228d40?qe(_0x2b39a8,_0x17b8b1):_0x2b39a8,_0x407c75=_0x527e65[_0x86cb48(0x83)]-0x1,_0x1992b8;_0x407c75>=0x0;_0x407c75--)(_0x1992b8=_0x527e65[_0x407c75])&&(_0x5e8d78=_0x1992b8(_0x5e8d78)||_0x5e8d78);return _0x5e8d78;},Oe=(_0x24fbd5,_0x2eec79)=>(_0x8f9d1d,_0x4c0a88)=>_0x2eec79(_0x8f9d1d,_0x4c0a88,_0x24fbd5);let de=class extends a['RxDisposable']{constructor(_0x5e3fdc,_0x4ef5a8){const _0x311bb5=_0x3d2806;super(),this['_docClipboardService']=_0x5e3fdc,this[_0x311bb5(0x16e)]=_0x4ef5a8,this[_0x311bb5(0x1ad)]();}[_0x3d2806(0x1ad)](){const _0x5bcb12=_0x3d2806,_0x5751ae=this;this[_0x5bcb12(0x94)](this[_0x5bcb12(0x1a0)][_0x5bcb12(0x2ca)]({'onBeforePasteImage':async _0x10f2b8=>{const _0x7972ec=_0x5bcb12,_0x20db14=await _0x5751ae[_0x7972ec(0x16e)][_0x7972ec(0x162)](_0x10f2b8);return _0x20db14?{'source':_0x20db14[_0x7972ec(0x204)],'imageSourceType':_0x20db14['imageSourceType']}:null;}}));}};de=ze([Oe(0x0,E[_0x3d2806(0x146)]),Oe(0x1,Ge[_0x3d2806(0x2a5)])],de);const Te=[_0x3d2806(0x2a0),_0x3d2806(0x2f2),_0x3d2806(0x112),_0x3d2806(0x23d),_0x3d2806(0x9a),'yellow.400'];class me extends a[_0x3d2806(0x2c3)]{constructor(){const _0x119563=_0x3d2806;super(...arguments),h(this,_0x119563(0x291),new Map()),h(this,_0x119563(0x2a6),0x0);}[_0x3d2806(0x2d6)](_0x289524){const _0x27df4e=_0x3d2806;if(this['_assignedColors'][_0x27df4e(0x2c2)](_0x289524))return this[_0x27df4e(0x291)][_0x27df4e(0x107)](_0x289524);const _0x348384=Te[this[_0x27df4e(0x2a6)]];return this[_0x27df4e(0x2a6)]=(this['_colorIndex']+0x1)%Te[_0x27df4e(0x83)],this['_assignedColors'][_0x27df4e(0x8a)](_0x289524,_0x348384),_0x348384;}}function Pe(_0xa3f27b){let _0x2395b5='';for(const _0x4aa7b0 of _0xa3f27b){const {startOffset:_0x5cc84e,endOffset:_0x144568,isActive:_0x488c59,rangeType:_0x5dba39,segmentId:_0x14782a,segmentPage:_0x177312}=_0x4aa7b0;_0x2395b5['length']&&(_0x2395b5+=','),_0x2395b5+=_0x5cc84e+':'+_0x144568+':'+(_0x488c59?'1':'0')+':'+_0x5dba39+':'+_0x14782a+':'+_0x177312;}return _0x2395b5;}function Je(_0x4dc64f){const _0x253f67=_0x3d2806,_0x178da2=_0x4dc64f['split'](','),_0x132ad8=[];for(const _0x37f9f6 of _0x178da2){const [_0x63d198,_0x1b29d2,_0xb0694d,_0x1fd5be,_0x582b68,_0x235e3f]=_0x37f9f6[_0x253f67(0xf0)](':');_0x132ad8['push']({'startOffset':Number(_0x63d198),'endOffset':Number(_0x1b29d2),'collapsed':_0x63d198===_0x1b29d2,'isActive':_0xb0694d==='1','rangeType':_0x1fd5be===a[_0x253f67(0x101)][_0x253f67(0x8e)]?a[_0x253f67(0x101)][_0x253f67(0x8e)]:a[_0x253f67(0x101)][_0x253f67(0x21b)],'segmentId':typeof _0x582b68==_0x253f67(0x258)?String(_0x582b68):'','segmentPage':Number(_0x235e3f!=null?_0x235e3f:-0x1)});}return _0x132ad8[_0x253f67(0x1f7)](_0x2af3b7=>_0x2af3b7[_0x253f67(0x82)])||(_0x132ad8[0x0][_0x253f67(0x82)]=!0x0),_0x132ad8;}class Ce extends a[_0x3d2806(0x96)]{constructor(){const _0x2bcc1e=_0x3d2806;super(...arguments),h(this,'_collabCursorState$',new d[(_0x2bcc1e(0xec))](null)),h(this,'collabCursorState$',this[_0x2bcc1e(0x275)][_0x2bcc1e(0x2cd)]());}['syncEditingCollabCursor'](_0x593029){const _0x1b6dd1=_0x3d2806,{unitID:_0x3a9611,memberID:_0x23b84b,textRanges:_0x4ffb85}=_0x593029,_0x24cc0d=Pe(_0x4ffb85);if(_0x24cc0d==='')return;const _0x2077d6={'unitID':_0x3a9611,'memberID':_0x23b84b,'selection':_0x24cc0d};this[_0x1b6dd1(0x275)]['next'](_0x2077d6);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x4f01db,_0x73c4f3,_0x2f1ab0,_0xa63a6d)=>{const _0x4aa299=_0x3d2806;for(var _0x2f4a95=_0xa63a6d>0x1?void 0x0:_0xa63a6d?Ze(_0x73c4f3,_0x2f1ab0):_0x73c4f3,_0x399dc8=_0x4f01db[_0x4aa299(0x83)]-0x1,_0x91e30b;_0x399dc8>=0x0;_0x399dc8--)(_0x91e30b=_0x4f01db[_0x399dc8])&&(_0x2f4a95=_0x91e30b(_0x2f4a95)||_0x2f4a95);return _0x2f4a95;},L=(_0xd043fc,_0x3382fa)=>(_0x522c4c,_0x2ab384)=>_0x3382fa(_0x522c4c,_0x2ab384,_0xd043fc);const et=0x12c,tt=0x64;let Ie=class extends a[_0x3d2806(0x96)]{constructor(_0x2a3187,_0x4d92f9,_0x39f0f5,_0x32cbc2,_0x2971a3,_0xfba36d,_0xbfd599,_0x556342,_0x47141e){const _0x25d91c=_0x3d2806;super(),h(this,_0x25d91c(0x1aa),!0x1),h(this,_0x25d91c(0x1ad),!0x1),h(this,_0x25d91c(0x143),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),h(this,_0x25d91c(0x11d),new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x25d91c(0x11d)]['pipe'](d[_0x25d91c(0x280)](et))),h(this,_0x25d91c(0x237),a[_0x25d91c(0x296)](_0x52e78d=>{const _0x49a8d9=_0x25d91c,_0x478934={'eventID':m[_0x49a8d9(0x28b)][_0x49a8d9(0xd0)],'data':{'unitID':this[_0x49a8d9(0x1ec)],'memberID':this[_0x49a8d9(0x29a)]['getMemberID'](),'selection':Pe(_0x52e78d)}};this[_0x49a8d9(0x29a)][_0x49a8d9(0x2dc)](_0x478934,this[_0x49a8d9(0x1ec)]);},tt)),(this['unitID']=_0x2a3187,this[_0x25d91c(0x29a)]=_0x4d92f9,this[_0x25d91c(0x193)]=_0x39f0f5,this[_0x25d91c(0x1af)]=_0x32cbc2,this[_0x25d91c(0x1ee)]=_0x2971a3,this[_0x25d91c(0x30d)]=_0xfba36d,this[_0x25d91c(0x13d)]=_0xbfd599,this[_0x25d91c(0x1a8)]=_0x556342,this[_0x25d91c(0xa3)]=_0x47141e);}get[_0x3d2806(0x27e)](){const _0x41d662=_0x3d2806;return this['_cursorInfo$'][_0x41d662(0x150)]();}get[_0x3d2806(0x25f)](){const _0xc8f1fd=_0x3d2806;return this[_0xc8f1fd(0x11d)]['getValue']();}['dispose'](){const _0x546309=_0x3d2806;super['dispose'](),this[_0x546309(0x143)][_0x546309(0x1bf)](new Map()),this[_0x546309(0x143)][_0x546309(0xa2)](),this['_roomMembers$']['next']([]),this[_0x546309(0x11d)]['complete']();}[_0x3d2806(0x106)](){const _0x466ff6=_0x3d2806;this[_0x466ff6(0x1ad)]||(this[_0x466ff6(0x1ad)]=!0x0,this[_0x466ff6(0x29a)][_0x466ff6(0xeb)][_0x466ff6(0x2c6)](d[_0x466ff6(0x189)](this[_0x466ff6(0x139)]))[_0x466ff6(0x124)](_0x1b7032=>{const _0x2f0775=_0x466ff6;_0x1b7032===u[_0x2f0775(0x99)][_0x2f0775(0x10d)]?this[_0x2f0775(0x21d)]():this[_0x2f0775(0x2df)]();}),this[_0x466ff6(0x29a)][_0x466ff6(0x19c)][_0x466ff6(0x2c6)](d[_0x466ff6(0x189)](this[_0x466ff6(0x139)]))[_0x466ff6(0x124)](_0x46710c=>{const _0x182187=_0x466ff6,_0x563ad8=_0x46710c['eventID'];_0x563ad8===m['CollaborationEvent'][_0x182187(0xd0)]&&this['_onCursorUpdate'](_0x46710c),_0x563ad8===m['CollaborationEvent'][_0x182187(0x301)]&&this[_0x182187(0x14c)](_0x46710c);}),this[_0x466ff6(0x94)](this[_0x466ff6(0xa3)]['onCommandExecuted'](_0x78cef=>{const _0x303f86=_0x466ff6,_0x4e3a94=_0x78cef['params'];_0x4e3a94!=null&&this[_0x303f86(0x1aa)]&&_0x78cef['id']===Y[_0x303f86(0xfb)]['id']&&_0x4e3a94[_0x303f86(0x211)]===this[_0x303f86(0x1ec)]&&_0x4e3a94[_0x303f86(0x29c)]===!0x1&&_0x4e3a94[_0x303f86(0x17d)][_0x303f86(0x83)]>0x0&&this['_updateLocalCursor'](_0x4e3a94[_0x303f86(0x17d)]);})),this[_0x466ff6(0x30d)][_0x466ff6(0xd1)][_0x466ff6(0x2c6)](d[_0x466ff6(0x189)](this[_0x466ff6(0x139)]))[_0x466ff6(0x124)](_0x2c595a=>{const _0x7874f9=_0x466ff6;if((_0x2c595a==null?void 0x0:_0x2c595a[_0x7874f9(0x1ec)])!==this['unitID'])return;const _0x33d8e2={'eventID':m[_0x7874f9(0x28b)][_0x7874f9(0xd0)],'data':_0x2c595a};this[_0x7874f9(0x16c)](_0x33d8e2);}),this[_0x466ff6(0x94)](this[_0x466ff6(0xa3)][_0x466ff6(0xf1)](_0x13e4bd=>{const _0x5b667a=_0x466ff6;if(_0x13e4bd[_0x5b667a(0x180)]==null)return;const _0x5e9ef6=_0x13e4bd[_0x5b667a(0x180)];if(_0x13e4bd['id']!==Y[_0x5b667a(0x114)]['id']||_0x5e9ef6[_0x5b667a(0x211)]!==this[_0x5b667a(0x1ec)])return;const _0x2dbf27={'id':'doc.mutation.rich-text-editing','params':_0x5e9ef6},_0x45cf84=this[_0x5b667a(0x27e)];for(const [_0x428ed7,_0x222aa6]of _0x45cf84){const _0x5530a9={'id':_0x5b667a(0x1d9),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x222aa6[_0x5b667a(0x17d)]}},_0x665c90=this['_transformService'][_0x5b667a(0x2cc)](_0x2dbf27,_0x5530a9,!0x1);if(m[_0x5b667a(0x2f7)](_0x665c90))throw _0x665c90['error'];_0x45cf84[_0x5b667a(0x8a)](_0x428ed7,{..._0x222aa6,'ranges':_0x665c90[_0x5b667a(0xb2)][_0x5b667a(0x180)]['textRanges']});}queueMicrotask(()=>{const _0x382ea4=_0x5b667a;this[_0x382ea4(0x143)]['next'](_0x45cf84);});})));}[_0x3d2806(0x16c)](_0x46e272){const _0x1696ea=_0x3d2806;var _0x15aaa6,_0x10fda6;const {memberID:_0x1b3524,selection:_0x8270c8}=_0x46e272['data'],_0x4137b1=Je(_0x8270c8),_0x526c47=(_0x10fda6=(_0x15aaa6=this[_0x1696ea(0x1ee)]['getMember'](this[_0x1696ea(0x1ec)],_0x1b3524))==null?void 0x0:_0x15aaa6[_0x1696ea(0x1b5)])!=null?_0x10fda6:_0x1696ea(0x1e7),_0x111804={'color':this['_colorAssignService'][_0x1696ea(0x2d6)](_0x1b3524),'name':_0x526c47,'ranges':_0x4137b1},_0x30303f=this['cursorInfo'];_0x30303f[_0x1696ea(0x8a)](_0x1b3524,_0x111804),this[_0x1696ea(0x143)][_0x1696ea(0x1bf)](_0x30303f);}['_onCursorDelete'](_0x5ef30f){const _0x261d17=_0x3d2806,{memberID:_0x570081}=_0x5ef30f[_0x261d17(0x87)],_0x580356=this[_0x261d17(0x27e)];_0x580356['delete'](_0x570081),this[_0x261d17(0x143)][_0x261d17(0x1bf)](_0x580356);}[_0x3d2806(0x21d)](){const _0x1828e0=_0x3d2806;var _0x1734bb;if(this[_0x1828e0(0x1aa)]=!0x0,((_0x1734bb=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1734bb['getUnitId']())!==this[_0x1828e0(0x1ec)])return;const _0x38609=this[_0x1828e0(0x193)][_0x1828e0(0x107)](Y[_0x1828e0(0x2d1)])[_0x1828e0(0x127)]();Array[_0x1828e0(0xf5)](_0x38609)&&_0x38609[_0x1828e0(0x83)]>0x0&&this['_updateLocalCursor'](_0x38609);}[_0x3d2806(0x2df)](){const _0x38996b=_0x3d2806;this[_0x38996b(0x1aa)]=!0x1;}};Ie=Qe([L(0x2,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),L(0x3,a[_0x3d2806(0xb9)](me)),L(0x4,a[_0x3d2806(0xb9)](u[_0x3d2806(0x130)])),L(0x5,a[_0x3d2806(0xb9)](Ce)),L(0x6,m[_0x3d2806(0xd9)]),L(0x7,a[_0x3d2806(0x15b)]),L(0x8,a[_0x3d2806(0xbb)])],Ie);var st=Object[_0x3d2806(0x19f)],it=(_0x2a2f13,_0x1ba6ff,_0x38bf7d,_0x568bbf)=>{const _0x1e05e9=_0x3d2806;for(var _0x1d15ed=_0x568bbf>0x1?void 0x0:_0x568bbf?st(_0x1ba6ff,_0x38bf7d):_0x1ba6ff,_0x46a7bc=_0x2a2f13[_0x1e05e9(0x83)]-0x1,_0x46d1e3;_0x46a7bc>=0x0;_0x46a7bc--)(_0x46d1e3=_0x2a2f13[_0x46a7bc])&&(_0x1d15ed=_0x46d1e3(_0x1d15ed)||_0x1d15ed);return _0x1d15ed;},A=(_0x1982be,_0x4cd84c)=>(_0x16256e,_0x555e62)=>_0x4cd84c(_0x16256e,_0x555e62,_0x1982be);function _0x2d87(_0x27a402,_0x1c6309){const _0x5e28c1=_0x5e28();return _0x2d87=function(_0x2d8783,_0xe83ea5){_0x2d8783=_0x2d8783-0x81;let _0xee8edd=_0x5e28c1[_0x2d8783];return _0xee8edd;},_0x2d87(_0x27a402,_0x1c6309);}const nt=0x12c,rt=0x64,ot=()=>{let _0x4c6e67=[],_0x1d5b81=!0x1;return _0x26ced8=>{const _0x17f35f=_0x2d87;_0x4c6e67[_0x17f35f(0x210)](_0x26ced8),_0x1d5b81||(_0x1d5b81=!0x0,setTimeout(()=>{const _0xb547db=_0x17f35f;_0x4c6e67[_0xb547db(0x246)](_0x15b5b4=>_0x15b5b4()),_0x4c6e67=[],_0x1d5b81=!0x1;}));};};let Se=class extends a[_0x3d2806(0x96)]{constructor(_0x3b499d,_0x7b37ff,_0x2215ce,_0x5ae87a,_0xac9df8,_0x4deeed,_0x5d85ad,_0x13f634){const _0xa964e=_0x3d2806;super(),h(this,'_online',!0x1),h(this,_0xa964e(0x1ad),!0x1),h(this,'_cursorInfo$',new d[(_0xa964e(0xec))](new Map())),h(this,_0xa964e(0x233),this[_0xa964e(0x143)][_0xa964e(0x2cd)]()),h(this,_0xa964e(0x11d),new d[(_0xa964e(0xec))]([])),h(this,_0xa964e(0x20b),this[_0xa964e(0x11d)]['pipe'](d[_0xa964e(0x280)](nt))),h(this,_0xa964e(0x237),a[_0xa964e(0x296)]((_0x74801c,_0x5ce019)=>{const _0x54fb03=_0xa964e,_0x55acda={'eventID':m['CollaborationEvent'][_0x54fb03(0xd0)],'data':{'unitID':this['unitID'],'memberID':this[_0x54fb03(0x29a)][_0x54fb03(0x24f)](),'selection':be[_0x54fb03(0x224)](_0x74801c,_0x5ce019[_0x54fb03(0x27b)])}};this[_0x54fb03(0x29a)][_0x54fb03(0x2dc)](_0x55acda,this[_0x54fb03(0x1ec)]);},rt)),(this[_0xa964e(0x1ec)]=_0x3b499d,this[_0xa964e(0x29a)]=_0x7b37ff,this[_0xa964e(0x193)]=_0x2215ce,this[_0xa964e(0x1af)]=_0x5ae87a,this[_0xa964e(0x1ee)]=_0xac9df8,this[_0xa964e(0x1a8)]=_0x4deeed,this[_0xa964e(0xa3)]=_0x5d85ad,this[_0xa964e(0xbe)]=_0x13f634);}get['cursorInfo'](){const _0x323244=_0x3d2806;return this[_0x323244(0x143)][_0x323244(0x150)]();}get[_0x3d2806(0x25f)](){const _0x360450=_0x3d2806;return this[_0x360450(0x11d)]['getValue']();}[_0x3d2806(0xe3)](){const _0x5b7349=_0x3d2806;super[_0x5b7349(0xe3)](),this[_0x5b7349(0x143)]['next'](new Map()),this['_cursorInfo$'][_0x5b7349(0xa2)](),this[_0x5b7349(0x11d)][_0x5b7349(0x1bf)]([]),this['_roomMembers$']['complete']();}[_0x3d2806(0x106)](){const _0x1b6bde=_0x3d2806;this[_0x1b6bde(0x1ad)]||(this[_0x1b6bde(0x1ad)]=!0x0,this[_0x1b6bde(0x29a)][_0x1b6bde(0xeb)]['pipe'](d['takeUntil'](this['dispose$']))[_0x1b6bde(0x124)](_0x4aa21d=>{const _0x27716b=_0x1b6bde;_0x4aa21d===u[_0x27716b(0x99)][_0x27716b(0x10d)]?this[_0x27716b(0x21d)]():this['_toggleOffline']();}),this[_0x1b6bde(0x29a)][_0x1b6bde(0x19c)][_0x1b6bde(0x2c6)](d[_0x1b6bde(0x189)](this['dispose$']))[_0x1b6bde(0x124)](_0x4490f0=>{const _0x4ef1c8=_0x1b6bde,_0x272f43=_0x4490f0['eventID'];_0x272f43===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x4ef1c8(0x16c)](_0x4490f0),_0x272f43===m[_0x4ef1c8(0x28b)][_0x4ef1c8(0x301)]&&this[_0x4ef1c8(0x14c)](_0x4490f0);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x1b6bde(0xa3)]['onCommandExecuted'](_0x268ba1=>{const _0x33c320=_0x1b6bde;if(this[_0x33c320(0x1aa)]&&_0x268ba1['id']===g['SetSelectionsOperation']['id']&&_0x268ba1[_0x33c320(0x180)][_0x33c320(0x211)]===this[_0x33c320(0x1ec)]){const _0x3d691c=_0x268ba1[_0x33c320(0x180)];this['_updateLocalCursor'](_0x3d691c[_0x33c320(0x271)],_0x3d691c[_0x33c320(0x12e)][0x0]);}})));}['_onCursorUpdate'](_0x3df231){const _0xdf51a0=_0x3d2806;var _0x2592f5,_0x4d670c;const {memberID:_0x5bbb1e,selection:_0x480dd8}=_0x3df231['data'],{sheetName:_0x4f5c4d,range:_0x1b0168}=be[_0xdf51a0(0x20e)](_0x480dd8),_0x517720={'name':(_0x4d670c=(_0x2592f5=this[_0xdf51a0(0x1ee)][_0xdf51a0(0x281)](this[_0xdf51a0(0x1ec)],_0x5bbb1e))==null?void 0x0:_0x2592f5[_0xdf51a0(0x1b5)])!=null?_0x4d670c:_0xdf51a0(0x1e7),'range':this[_0xdf51a0(0x1e1)](_0x4f5c4d,_0x1b0168),'sheetID':_0x4f5c4d,'color':this['_colorAssignService'][_0xdf51a0(0x2d6)](_0x5bbb1e),'selection':_0x480dd8},_0x5c9c8a=this[_0xdf51a0(0x27e)];_0x5c9c8a[_0xdf51a0(0x8a)](_0x5bbb1e,_0x517720),this[_0xdf51a0(0x143)]['next'](_0x5c9c8a);}[_0x3d2806(0x14c)](_0x190d20){const _0x4f97f9=_0x3d2806,{memberID:_0x250997}=_0x190d20[_0x4f97f9(0x87)],_0x182445=this['cursorInfo'];_0x182445[_0x4f97f9(0x2f8)](_0x250997),this[_0x4f97f9(0x143)][_0x4f97f9(0x1bf)](_0x182445);}[_0x3d2806(0x1e1)](_0x2673dc,_0x26eeee){const _0x241d23=_0x3d2806;var _0x7ae155,_0x5dc1b2;const _0x413ff9=(_0x5dc1b2=(_0x7ae155=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x241d23(0x1ec)]))==null?void 0x0:_0x7ae155[_0x241d23(0x2ac)](_0x2673dc))==null?void 0x0:_0x5dc1b2[_0x241d23(0x2ce)]();return(_0x413ff9==null?void 0x0:_0x413ff9[_0x241d23(0x247)](_0x37b41b=>a[_0x241d23(0x2c7)][_0x241d23(0x123)](_0x37b41b,_0x26eeee)))||_0x26eeee;}['_onRefRangeChange'](){const _0x39217c=_0x3d2806,_0x88bd5a=new a[(_0x39217c(0x266))](),_0x448780=ot(),_0x5d3c6c=()=>{const _0x52d0ef=_0x39217c;_0x88bd5a[_0x52d0ef(0xe3)]();const _0x43b4f1=(_0x3f0ef4,_0x2b319a,_0x5033de,_0x30963e)=>{const _0x4309ff=_0x52d0ef;let _0xe1fa32=[];switch(_0x3f0ef4['id']){case g[_0x4309ff(0x2be)][_0x4309ff(0x274)]:{_0xe1fa32=g['handleDeleteRangeMoveLeft'](_0x3f0ef4,_0x30963e);break;}case g['EffectRefRangId'][_0x4309ff(0x2b0)]:{_0xe1fa32=g[_0x4309ff(0x250)](_0x3f0ef4,_0x30963e);break;}case g[_0x4309ff(0x2be)][_0x4309ff(0x97)]:{_0xe1fa32=g[_0x4309ff(0x2dd)](_0x3f0ef4,_0x30963e);break;}case g['EffectRefRangId'][_0x4309ff(0x214)]:{_0xe1fa32=g[_0x4309ff(0x1b4)](_0x3f0ef4,_0x30963e);break;}case g[_0x4309ff(0x2be)][_0x4309ff(0x2f1)]:{_0xe1fa32=g['handleInsertRangeMoveRight'](_0x3f0ef4,_0x30963e);break;}case g[_0x4309ff(0x2be)][_0x4309ff(0xd5)]:{_0xe1fa32=g[_0x4309ff(0xed)](_0x3f0ef4,_0x30963e);break;}case g['EffectRefRangId'][_0x4309ff(0x118)]:{_0xe1fa32=g[_0x4309ff(0x21f)](_0x3f0ef4,_0x30963e);break;}case g[_0x4309ff(0x2be)][_0x4309ff(0x129)]:{_0xe1fa32=g[_0x4309ff(0x17a)](_0x3f0ef4,_0x30963e);break;}case g[_0x4309ff(0x2be)][_0x4309ff(0x105)]:{_0xe1fa32=g[_0x4309ff(0x13f)](_0x3f0ef4,_0x30963e);break;}}const _0x281e3a=g[_0x4309ff(0x2ba)](_0xe1fa32,_0x30963e),_0x360e3c=this[_0x4309ff(0x27e)][_0x4309ff(0x107)](_0x2b319a);if(_0x360e3c&&_0x281e3a){const _0x37d174={..._0x360e3c,'range':_0x281e3a};this['cursorInfo'][_0x4309ff(0x8a)](_0x2b319a,_0x37d174),_0x448780(()=>{const _0x28b272=_0x4309ff,_0x57e108=this[_0x28b272(0xbe)]['registerRefRange'](_0x281e3a,_0x3016ff=>(_0x57e108[_0x28b272(0xe3)](),_0x43b4f1(_0x3016ff,_0x2b319a,_0x5033de,_0x281e3a)));_0x88bd5a[_0x28b272(0x256)](_0x57e108);});}return{'redos':[],'undos':[]};};this[_0x52d0ef(0x27e)][_0x52d0ef(0x246)]((_0x1578bb,_0xe19c03)=>{const _0x33f68b=_0x52d0ef,{range:_0x224903,sheetID:_0x1ad597}=_0x1578bb,_0x4faf80=this[_0x33f68b(0xbe)]['registerRefRange'](_0x224903,_0xff98b9=>(_0x4faf80[_0x33f68b(0xe3)](),_0x43b4f1(_0xff98b9,_0xe19c03,_0x1ad597,_0x224903)));_0x88bd5a['add'](_0x4faf80);});};this[_0x39217c(0x94)](a[_0x39217c(0x1d6)](this['_cursorInfo$'][_0x39217c(0x124)](()=>{_0x5d3c6c();})));}[_0x3d2806(0x21d)](){const _0x3462fc=_0x3d2806;var _0x20f5cc,_0x31eb8b;if(this[_0x3462fc(0x1aa)]=!0x0,((_0x20f5cc=this[_0x3462fc(0x1a8)]['getFocusedUnit']())==null?void 0x0:_0x20f5cc[_0x3462fc(0x1ba)]())!==this[_0x3462fc(0x1ec)])return;const _0x43f93b=(_0x31eb8b=this[_0x3462fc(0x193)][_0x3462fc(0x107)](g[_0x3462fc(0x121)])[_0x3462fc(0x86)]())==null?void 0x0:_0x31eb8b[0x0],_0x1e3069=this[_0x3462fc(0x1a8)][_0x3462fc(0x1b7)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3462fc(0x12c)]();_0x43f93b&&_0x1e3069&&this['_updateLocalCursor'](_0x1e3069[_0x3462fc(0x144)](),_0x43f93b);}[_0x3d2806(0x2df)](){const _0x1525af=_0x3d2806;this[_0x1525af(0x1aa)]=!0x1;}};Se=it([A(0x2,a[_0x3d2806(0xb9)](a['Injector'])),A(0x3,a[_0x3d2806(0xb9)](me)),A(0x4,a['Inject'](u[_0x3d2806(0x130)])),A(0x5,a[_0x3d2806(0x15b)]),A(0x6,a[_0x3d2806(0xbb)]),A(0x7,a[_0x3d2806(0xb9)](g[_0x3d2806(0x270)]))],Se);var at=Object[_0x3d2806(0x19f)],ct=(_0x5280b0,_0x729b15,_0x90090a,_0x5ad6ee)=>{const _0x4c624a=_0x3d2806;for(var _0x2f9390=_0x5ad6ee>0x1?void 0x0:_0x5ad6ee?at(_0x729b15,_0x90090a):_0x729b15,_0x5ed1e3=_0x5280b0[_0x4c624a(0x83)]-0x1,_0x7f393d;_0x5ed1e3>=0x0;_0x5ed1e3--)(_0x7f393d=_0x5280b0[_0x5ed1e3])&&(_0x2f9390=_0x7f393d(_0x2f9390)||_0x2f9390);return _0x2f9390;},ie=(_0x56f99b,_0xd10953)=>(_0x5615f2,_0x5dbe47)=>_0xd10953(_0x5615f2,_0x5dbe47,_0x56f99b);let x=class extends a[_0x3d2806(0x96)]{constructor(_0x2f6497,_0x49ca96,_0x4747d6){const _0x39b040=_0x3d2806;super(),h(this,_0x39b040(0x1b3),new Map()),h(this,_0x39b040(0x16b),new d[(_0x39b040(0x119))]()),(this[_0x39b040(0x1a8)]=_0x2f6497,this[_0x39b040(0x193)]=_0x49ca96,this[_0x39b040(0xab)]=_0x4747d6,this['_init']());}[_0x3d2806(0xe3)](){const _0x13d87f=_0x3d2806;super[_0x13d87f(0xe3)](),this[_0x13d87f(0x16b)][_0x13d87f(0xa2)](),this[_0x13d87f(0x1b3)]['forEach'](_0xd6ef8d=>_0xd6ef8d[_0x13d87f(0xe3)]());}[_0x3d2806(0xe2)](_0x1f2cc9){const _0x44a181=_0x3d2806;return this[_0x44a181(0x1b3)]['has'](_0x1f2cc9)?this[_0x44a181(0x1b3)][_0x44a181(0x107)](_0x1f2cc9)[_0x44a181(0x233)]:this[_0x44a181(0x16b)]['pipe'](d['filter'](_0x4f01af=>_0x4f01af[_0x44a181(0x1ec)]===_0x1f2cc9),d[_0x44a181(0x88)](_0x3d125a=>_0x3d125a['cursorInfo$']));}['_init'](){const _0x7cbe36=_0x3d2806;this[_0x7cbe36(0x1a8)][_0x7cbe36(0x2b7)](a[_0x7cbe36(0x100)]['UNIVER_SHEET'])['pipe'](d['takeUntil'](this[_0x7cbe36(0x139)]))[_0x7cbe36(0x124)](async _0x3cb01a=>{const _0x11a856=_0x7cbe36,_0x40db94=_0x3cb01a['getUnitId'](),_0x53e227=await this[_0x11a856(0x175)](_0x40db94);this['_entityInit$'][_0x11a856(0x1bf)](_0x53e227),this['_entities']['set'](_0x40db94,_0x53e227);}),this[_0x7cbe36(0x1a8)][_0x7cbe36(0x2b7)](a[_0x7cbe36(0x100)]['UNIVER_DOC'])[_0x7cbe36(0x2c6)](d[_0x7cbe36(0x189)](this['dispose$']))[_0x7cbe36(0x2c6)](d[_0x7cbe36(0xda)](_0x26acb8=>!_0x26acb8['getUnitId']()[_0x7cbe36(0x1d8)]('__')))[_0x7cbe36(0x124)](async _0xddd0a=>{const _0x12daf5=_0x7cbe36,_0x1414f5=_0xddd0a[_0x12daf5(0x1ba)](),_0x121d4f=await this[_0x12daf5(0x10c)](_0x1414f5);this['_entityInit$']['next'](_0x121d4f),this[_0x12daf5(0x1b3)][_0x12daf5(0x8a)](_0x1414f5,_0x121d4f);}),d['merge'](this[_0x7cbe36(0x1a8)][_0x7cbe36(0x153)](a[_0x7cbe36(0x100)][_0x7cbe36(0x1a9)]),this[_0x7cbe36(0x1a8)][_0x7cbe36(0x153)](a[_0x7cbe36(0x100)]['UNIVER_SHEET']))[_0x7cbe36(0x2c6)](d[_0x7cbe36(0x189)](this[_0x7cbe36(0x139)]))[_0x7cbe36(0x124)](_0x431de8=>{const _0x5cce5d=_0x7cbe36,_0x23528d=_0x431de8[_0x5cce5d(0x1ba)](),_0x4a0717=this[_0x5cce5d(0x1b3)]['get'](_0x23528d);_0x4a0717&&(_0x4a0717[_0x5cce5d(0xe3)](),this[_0x5cce5d(0x1b3)][_0x5cce5d(0x2f8)](_0x23528d));});}async[_0x3d2806(0x175)](_0x5eb747){const _0x41d2ba=_0x3d2806,_0x14ff64=await this['_collabSessionService'][_0x41d2ba(0x151)](_0x5eb747),_0x813ef6=this['_injector'][_0x41d2ba(0x142)](Se,_0x5eb747,_0x14ff64);return _0x813ef6['init'](),_0x813ef6;}async[_0x3d2806(0x10c)](_0xf3abab){const _0x1f02e4=_0x3d2806,_0x42a97f=await this[_0x1f02e4(0xab)][_0x1f02e4(0x151)](_0xf3abab),_0x510fa7=this['_injector'][_0x1f02e4(0x142)](Ie,_0xf3abab,_0x42a97f);return _0x510fa7[_0x1f02e4(0x106)](),_0x510fa7;}};x=ct([ie(0x0,a[_0x3d2806(0x15b)]),ie(0x1,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),ie(0x2,a[_0x3d2806(0xb9)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3c99ba,_0x3049a9){const _0x2562f2=_0x3d2806;let {radius:_0x44637e,width:_0x36f5c7,height:_0x1fe5be}=_0x3049a9;_0x44637e=_0x44637e!=null?_0x44637e:0x0,_0x36f5c7=_0x36f5c7!=null?_0x36f5c7:0x1e,_0x1fe5be=_0x1fe5be!=null?_0x1fe5be:0x1e;let _0x2e0ce2=0x0,_0x523ca7=0x0,_0x331557=0x0;_0x2e0ce2=_0x523ca7=_0x331557=Math[_0x2562f2(0x113)](_0x44637e,_0x36f5c7/0x2,_0x1fe5be/0x2),_0x3c99ba[_0x2562f2(0x2af)](),_0x3c99ba[_0x2562f2(0x2d0)](_0x2e0ce2,0x0),_0x3c99ba['lineTo'](_0x36f5c7-_0x523ca7,0x0),_0x3c99ba[_0x2562f2(0x2e0)](_0x36f5c7-_0x523ca7,_0x523ca7,_0x523ca7,Math['PI']*0x3/0x2,0x0,!0x1),_0x3c99ba[_0x2562f2(0x2b2)](_0x36f5c7,_0x1fe5be-_0x331557),_0x3c99ba[_0x2562f2(0x2e0)](_0x36f5c7-_0x331557,_0x1fe5be-_0x331557,_0x331557,0x0,Math['PI']/0x2,!0x1),_0x3c99ba[_0x2562f2(0x2b2)](0x0,_0x1fe5be),_0x3c99ba['lineTo'](0x0,_0x2e0ce2),_0x3c99ba[_0x2562f2(0x2e0)](_0x2e0ce2,_0x2e0ce2,_0x2e0ce2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3c99ba[_0x2562f2(0xdf)](),_0x3049a9[_0x2562f2(0x304)]&&(_0x3c99ba['save'](),_0x3c99ba[_0x2562f2(0x2ed)]=_0x3049a9[_0x2562f2(0x304)],_0x3049a9[_0x2562f2(0x140)]===_0x2562f2(0x254)?_0x3c99ba[_0x2562f2(0x304)]('evenodd'):_0x3c99ba[_0x2562f2(0x304)](),_0x3c99ba['restore']());}class ee extends p[_0x3d2806(0x299)]{constructor(_0x31f3c8,_0xf86cc7){const _0x502e0c=_0x3d2806;super(_0x31f3c8,_0xf86cc7),h(this,_0x502e0c(0x22a)),h(this,'text'),(this[_0x502e0c(0x22a)]=_0xf86cc7==null?void 0x0:_0xf86cc7[_0x502e0c(0x22a)],this[_0x502e0c(0x9c)]=_0xf86cc7==null?void 0x0:_0xf86cc7['text']);}static[_0x3d2806(0xad)](_0x1cdea5,_0x22d47e){const _0x4f870f=_0x3d2806,{text:_0x5a2c09,color:_0x58371d}=_0x22d47e;_0x1cdea5[_0x4f870f(0x208)](),_0x1cdea5['font']=_0x4f870f(0x1d4);const _0x5c9713=_0x1cdea5[_0x4f870f(0x22f)](_0x5a2c09)['width'],_0x4260fe=Math['min'](_0x5c9713+0x2*ne,Re);_t(_0x1cdea5,{'height':K,'radius':0x4,'width':_0x4260fe,'fill':_0x58371d}),_0x1cdea5[_0x4f870f(0x2ed)]=_0x4f870f(0x29e);const _0x37fab6=ne,_0x350ca7=K-lt,_0x11376a=Re-0x2*ne;if(_0x5c9713>_0x11376a){let _0x5f38a1='',_0x3ed031=0x0;for(const _0x1ef4cb of _0x5a2c09){const _0x45ab5e=_0x1cdea5[_0x4f870f(0x22f)](_0x1ef4cb)[_0x4f870f(0x14d)];if(_0x3ed031+_0x45ab5e<=_0x11376a-_0x1cdea5[_0x4f870f(0x22f)]('...')[_0x4f870f(0x14d)])_0x5f38a1+=_0x1ef4cb,_0x3ed031+=_0x45ab5e;else{_0x5f38a1+='...';break;}}_0x1cdea5[_0x4f870f(0x26c)](_0x5f38a1,_0x37fab6,_0x350ca7);}else _0x1cdea5[_0x4f870f(0x26c)](_0x5a2c09,_0x37fab6,_0x350ca7);_0x1cdea5[_0x4f870f(0x1e9)]();}[_0x3d2806(0x203)](_0x2d7c0d){const _0x4e5a83=_0x3d2806;ee[_0x4e5a83(0xad)](_0x2d7c0d,this);}}const re=_0x3d2806(0xb0),ht=_0x3d2806(0x16d),ut=_0x3d2806(0x1bb),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x3d2806(0x25b);class De{constructor(_0x1e7b39,_0x52b3b8,_0x2f5752,_0xa666d2){const _0x311974=_0x3d2806;h(this,_0x311974(0x244),[]),h(this,_0x311974(0x2b9),null),h(this,'_textBubble',null),h(this,_0x311974(0x8c),null),h(this,'_hideTimer',null),h(this,'_eventUnsubscribe',null),(this['_cursor']=_0x1e7b39,this[_0x311974(0x289)]=_0x52b3b8,this[_0x311974(0x28c)]=_0x2f5752,this[_0x311974(0x24c)]=_0xa666d2,this[_0x311974(0x24a)]());}set[_0x3d2806(0x156)](_0x5d470e){const _0x536ab6=_0x3d2806;_0x5d470e?(this[_0x536ab6(0x8c)]&&this['_anchorDot'][_0x536ab6(0x2cb)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x536ab6(0x8c)]&&this['_anchorDot'][_0x536ab6(0xbc)](),this[_0x536ab6(0xbf)]&&this['_textBubble'][_0x536ab6(0x2cb)]());}['dispose'](){const _0x2af642=_0x3d2806;for(const _0xfabb30 of this[_0x2af642(0x244)])_0xfabb30[_0x2af642(0xe3)]();this[_0x2af642(0xbf)]&&this[_0x2af642(0xbf)][_0x2af642(0xe3)](),this[_0x2af642(0x8c)]&&this[_0x2af642(0x8c)][_0x2af642(0xe3)](),this[_0x2af642(0x2b9)]&&this[_0x2af642(0x2b9)][_0x2af642(0xe3)](),this[_0x2af642(0x13a)]&&this[_0x2af642(0x13a)]();}['_render'](){const _0x2808ca=_0x3d2806;var _0x56a306;const {_docSkeleton:_0x4c6b21,_document:_0x2aba62}=this,{color:_0x1f2016,name:_0x4b6106,ranges:_0x4c56da}=this[_0x2808ca(0xee)],_0x39b7a8=_0x2aba62['getOffsetConfig'](),{docsLeft:_0x5264b6,docsTop:_0x5d66e9}=_0x39b7a8,_0x272138=new E[(_0x2808ca(0x84))](_0x39b7a8,_0x4c6b21);for(const {startOffset:_0x470934,endOffset:_0x2e0f0f,rangeType:_0x407f50,segmentId:_0x1d3085,segmentPage:_0x280c1a,collapsed:_0x1be881,isActive:_0x51f629}of _0x4c56da){const _0x233189=_0x4c6b21[_0x2808ca(0x1a7)](_0x470934,!0x0,_0x1d3085,_0x280c1a);let _0x218da5=_0x4c6b21[_0x2808ca(0x1a7)](_0x2e0f0f,!0x0,_0x1d3085,_0x280c1a);if(_0x218da5==null&&(_0x218da5=_0x4c6b21['findNodePositionByCharIndex'](_0x2e0f0f-0x1,!0x1,_0x1d3085,_0x280c1a)),_0x51f629){const {contentBoxPointGroup:_0x3bbc90}=_0x272138[_0x2808ca(0x2fc)](_0x218da5,_0x218da5);if(_0x3bbc90[_0x2808ca(0x83)]===0x0)continue;this[_0x2808ca(0xc9)](_0x1f2016,_0x3bbc90,_0x5264b6,_0x5d66e9,_0x4b6106),this[_0x2808ca(0x13a)]=this[_0x2808ca(0x12f)]();}if(_0x233189&&_0x218da5){if(_0x407f50===a[_0x2808ca(0x101)][_0x2808ca(0x21b)]){const _0x10621c=new E['NodePositionConvertToRectRange'](_0x39b7a8,_0x4c6b21),{pointGroup:_0xa61177}=(_0x56a306=_0x10621c[_0x2808ca(0x2fc)](_0x233189,_0x218da5))!=null?_0x56a306:{};if(_0xa61177==null||_0xa61177['length']===0x0)continue;this[_0x2808ca(0xba)](_0x1f2016,_0xa61177,_0x5264b6,_0x5d66e9);}else{if(!_0x1be881){const {borderBoxPointGroup:_0x5e0184}=_0x272138[_0x2808ca(0x2fc)](_0x233189,_0x218da5);if(_0x5e0184['length']===0x0)continue;this[_0x2808ca(0x10f)](_0x1f2016,_0x5e0184,_0x5264b6,_0x5d66e9);}}}}}[_0x3d2806(0xc9)](_0x1828bb,_0x591f83,_0x4357f8,_0x18ec3b,_0x3ed168){const _0x598ce0=_0x3d2806,_0x5853c6=this[_0x598ce0(0x1fd)](_0x591f83),{left:_0x874832,top:_0x2f9527,height:_0x3bc10a}=_0x5853c6,_0x59bfc8=this[_0x598ce0(0x11f)](),_0x1afe58=It/_0x59bfc8,_0x14fa7c=new p[(_0x598ce0(0x18e))](re+a[_0x598ce0(0x147)][_0x598ce0(0x202)](k),{'left':_0x874832+_0x4357f8-_0x1afe58,'top':_0x2f9527+_0x18ec3b,'height':_0x3bc10a,'width':dt,'fill':_0x1828bb||p[_0x598ce0(0x18c)](a['COLORS'][_0x598ce0(0x1ce)],0x0),'strokeWidth':_0x1afe58,'stroke':St,'evented':!0x0});this['_anchor']=_0x14fa7c,this[_0x598ce0(0x289)][_0x598ce0(0x232)](_0x14fa7c,E[_0x598ce0(0x228)]);const _0x3abcba=new p[(_0x598ce0(0x18e))](re+a['Tools'][_0x598ce0(0x202)](k),{'left':_0x874832+_0x4357f8-_0x1afe58,'top':_0x2f9527+_0x18ec3b-oe/0x2,'height':oe,'width':oe,'fill':_0x1828bb||p[_0x598ce0(0x18c)](a[_0x598ce0(0x182)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x1828bb||p[_0x598ce0(0x18c)](a[_0x598ce0(0x182)][_0x598ce0(0x1ce)],0x0),'evented':!0x1});this[_0x598ce0(0x8c)]=_0x3abcba,this[_0x598ce0(0x289)]['addObject'](_0x3abcba,E['TEXT_RANGE_LAYER_INDEX']);const _0x4b4b2d=new ee(re+a[_0x598ce0(0x147)]['generateRandomId'](k),{'left':_0x874832+_0x4357f8-_0x1afe58,'top':_0x2f9527+_0x18ec3b-K,'text':_0x3ed168,'color':_0x1828bb});this[_0x598ce0(0xbf)]=_0x4b4b2d,this[_0x598ce0(0x289)][_0x598ce0(0x232)](_0x4b4b2d,E['TEXT_RANGE_LAYER_INDEX']),this[_0x598ce0(0x156)]=!0x1;}[_0x3d2806(0x12f)](){const _0x3960ff=_0x3d2806,_0x541ff3=this[_0x3960ff(0x2b9)][_0x3960ff(0x2b6)][_0x3960ff(0xf2)](()=>{const _0x18fb26=_0x3960ff;this[_0x18fb26(0x156)]=!0x0;}),_0x1cb1cd=this['_anchor'][_0x3960ff(0xfe)]['subscribeEvent'](()=>{const _0x409ca0=_0x3960ff;this[_0x409ca0(0xde)]&&clearTimeout(this['_hideTimer']),this[_0x409ca0(0xde)]=setTimeout(()=>{const _0x20b6bb=_0x409ca0;this[_0x20b6bb(0x156)]=!0x1;},0x7d0);});return()=>{const _0xe2a414=_0x3960ff;_0x541ff3['unsubscribe'](),_0x1cb1cd[_0xe2a414(0x14f)]();};}['_drawTextRange'](_0x56f95b,_0x3bc349,_0x195eaf,_0x38c412){const _0x2c900e=_0x3d2806,_0x2f0ee5=new a[(_0x2c900e(0x8b))](_0x56f95b)['setAlpha'](0.2)[_0x2c900e(0x273)](),_0x52c675=new p[(_0x2c900e(0x1eb))](ht+a['Tools'][_0x2c900e(0x202)](k),{'pointsGroup':_0x3bc349,'fill':_0x2f0ee5||p[_0x2c900e(0x18c)](a[_0x2c900e(0x182)]['black'],0.2),'left':_0x195eaf,'top':_0x38c412,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x52c675),this[_0x2c900e(0x289)][_0x2c900e(0x232)](_0x52c675,E[_0x2c900e(0x228)]);}['_drawRectRange'](_0x2c0e83,_0x41004a,_0xb4f415,_0x5e0768){const _0x210114=_0x3d2806,_0xa8d8b3=new a[(_0x210114(0x8b))](_0x2c0e83)[_0x210114(0x279)](0.2)[_0x210114(0x273)](),_0x1cbf77=new p[(_0x210114(0x1eb))](ut+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x41004a,'fill':_0xa8d8b3||p['getColor'](a[_0x210114(0x182)]['black'],0.2),'left':_0xb4f415,'top':_0x5e0768,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x210114(0x244)][_0x210114(0x210)](_0x1cbf77),this[_0x210114(0x289)][_0x210114(0x232)](_0x1cbf77,E[_0x210114(0x228)]);}[_0x3d2806(0x1fd)](_0x18fc67){const _0x400de1=_0x18fc67[0x0],_0x294bc4=_0x400de1[0x0],_0x4a5126=_0x400de1[0x2],{x:_0x3ee661,y:_0x309a1f}=_0x294bc4,{x:_0x12a2ca,y:_0x12e0c0}=_0x4a5126;return{'left':_0x3ee661,'top':_0x309a1f,'width':_0x12a2ca-_0x3ee661,'height':_0x12e0c0-_0x309a1f};}[_0x3d2806(0x11f)](){const _0x2f52e2=_0x3d2806,{scaleX:_0x33c8d3,scaleY:_0x4053c7}=this[_0x2f52e2(0x289)][_0x2f52e2(0x157)]();return Math[_0x2f52e2(0x2e9)](_0x33c8d3,_0x4053c7);}}var ft=Object[_0x3d2806(0x19f)],vt=(_0x2c2a7e,_0x4bb878,_0x308350,_0x2f90eb)=>{const _0x723359=_0x3d2806;for(var _0x4ce1d8=_0x2f90eb>0x1?void 0x0:_0x2f90eb?ft(_0x4bb878,_0x308350):_0x4bb878,_0x56bffc=_0x2c2a7e[_0x723359(0x83)]-0x1,_0x414fab;_0x56bffc>=0x0;_0x56bffc--)(_0x414fab=_0x2c2a7e[_0x56bffc])&&(_0x4ce1d8=_0x414fab(_0x4ce1d8)||_0x4ce1d8);return _0x4ce1d8;},W=(_0x5d3477,_0x41836d)=>(_0x2d17c8,_0x19abf2)=>_0x41836d(_0x2d17c8,_0x19abf2,_0x5d3477);let fe=class extends a[_0x3d2806(0x96)]{constructor(_0x45c8e3,_0x29b553,_0x15a458,_0x2cec8f,_0x182d24){const _0x1fb0db=_0x3d2806;super(),h(this,_0x1fb0db(0xa4),[]),h(this,'_cursors',[]),(this[_0x1fb0db(0x19d)]=_0x45c8e3,this[_0x1fb0db(0x312)]=_0x29b553,this['_collabCursorController']=_0x15a458,this[_0x1fb0db(0xa3)]=_0x2cec8f,this[_0x1fb0db(0xb3)]=_0x182d24,this['_init']());}[_0x3d2806(0x1ad)](){const _0x325fba=_0x3d2806,_0x1bb6fd=this[_0x325fba(0x19d)][_0x325fba(0x211)],_0x2c1f87=this[_0x325fba(0x312)];this[_0x325fba(0x94)](d[_0x325fba(0xbd)]([this[_0x325fba(0x1f9)][_0x325fba(0xe2)](_0x1bb6fd),this[_0x325fba(0xb3)][_0x325fba(0x155)]])[_0x325fba(0x2c6)]($[_0x325fba(0xc3)](([_0x359c9c,_0x59b2a4])=>({'skeleton':_0x2c1f87[_0x325fba(0x13b)](),'cursors':[..._0x359c9c['values']()][_0x325fba(0x24e)](_0x17630c=>({..._0x17630c,'color':this[_0x325fba(0xb3)]['getColorFromTheme'](_0x17630c[_0x325fba(0x22a)])}))})))[_0x325fba(0x124)](_0xe9e735=>{const _0x522c37=_0x325fba;if(this[_0x522c37(0x1f5)](),_0xe9e735){const {skeleton:_0x50b50c,cursors:_0x40306f}=_0xe9e735;this[_0x522c37(0xf7)](_0x50b50c,_0x40306f);}})),this[_0x325fba(0x117)](),this[_0x325fba(0x15f)]();}[_0x3d2806(0xf7)](_0x1e0d3e,_0x2a955a){const _0xe29035=_0x3d2806,{scene:_0x436ff4,mainComponent:_0xd37717}=this[_0xe29035(0x19d)],_0x56a542=_0x2a955a[_0xe29035(0xc3)](_0x30b404=>new De(_0x30b404,_0x436ff4,_0x1e0d3e,_0xd37717));this[_0xe29035(0xa4)]=_0x56a542,this[_0xe29035(0x1cc)]=_0x2a955a;}['_refreshCollabCursors'](){const _0x1c6d94=_0x3d2806;this[_0x1c6d94(0x1f5)]();const {scene:_0x39ac88,mainComponent:_0x42737c}=this['_context'],_0x40ef06=this['_docSkeletonManagerService'][_0x1c6d94(0x13b)](),_0x100ce0=this[_0x1c6d94(0x1cc)][_0x1c6d94(0xc3)](_0x3c646e=>new De(_0x3c646e,_0x39ac88,_0x40ef06,_0x42737c));this[_0x1c6d94(0xa4)]=_0x100ce0;}[_0x3d2806(0x1f5)](){const _0x4b31ed=_0x3d2806;this['_cursorShapes'][_0x4b31ed(0x246)](_0x2170cd=>_0x2170cd[_0x4b31ed(0xe3)]()),this[_0x4b31ed(0xa4)]=[];}[_0x3d2806(0x15f)](){const _0x55496a=_0x3d2806,_0x387056=[E[_0x55496a(0x2c5)]['id']];this[_0x55496a(0x94)](this[_0x55496a(0xa3)][_0x55496a(0xf1)](_0x47641f=>{const _0x20cd8c=_0x55496a;_0x387056['includes'](_0x47641f['id'])&&_0x47641f['params']['unitId']===this[_0x20cd8c(0x19d)][_0x20cd8c(0x211)]&&this[_0x20cd8c(0x1f6)]();}));}[_0x3d2806(0x117)](){const _0x4818d4=_0x3d2806;this[_0x4818d4(0x94)](a[_0x4818d4(0x300)](this['_context'][_0x4818d4(0x1c3)][_0x4818d4(0x2f9)])[_0x4818d4(0x2c6)]($[_0x4818d4(0xda)](_0x7501e2=>_0x7501e2['type']===p[_0x4818d4(0x1ae)][_0x4818d4(0x218)]),$['throttleTime'](0x10))[_0x4818d4(0x124)](()=>{const _0x5d702d=_0x4818d4;this[_0x5d702d(0x1f6)]();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x3d2806(0x1a5)])),W(0x2,a[_0x3d2806(0xb9)](x)),W(0x3,a[_0x3d2806(0xbb)]),W(0x4,a[_0x3d2806(0xb9)](a[_0x3d2806(0x137)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0x3d2806(0x299)]{constructor(_0xd363e3,_0x2ac10e){const _0x5bb9ba=_0x3d2806;super(_0xd363e3,_0x2ac10e),h(this,_0x5bb9ba(0x303)),h(this,'_hovered',!0x1),h(this,'_range'),h(this,'_name',''),h(this,_0x5bb9ba(0xfa),_0x5bb9ba(0x1d5)),h(this,_0x5bb9ba(0x1c5)),(_0x2ac10e&&this['setShapeProps'](_0x2ac10e),this[_0x5bb9ba(0x2b6)][_0x5bb9ba(0xf2)](()=>this[_0x5bb9ba(0x15a)]({'hovered':!0x0})),this[_0x5bb9ba(0xfe)][_0x5bb9ba(0xf2)](()=>this[_0x5bb9ba(0x15a)]({'hovered':!0x1})));}[_0x3d2806(0x15a)](_0x3d1dfa){const _0x59ff85=_0x3d2806;var _0x277851,_0x3b689f,_0x2b0737,_0x24e3c2,_0x3f8060,_0x40ec03;this[_0x59ff85(0x303)]=(_0x277851=_0x3d1dfa['color'])!=null?_0x277851:this[_0x59ff85(0x303)],this[_0x59ff85(0x29d)]=(_0x3b689f=_0x3d1dfa['hovered'])!=null?_0x3b689f:this['_hovered'],this[_0x59ff85(0x2de)]=(_0x2b0737=_0x3d1dfa[_0x59ff85(0x27b)])!=null?_0x2b0737:this[_0x59ff85(0x2de)],this['_name']=(_0x24e3c2=_0x3d1dfa[_0x59ff85(0x1b5)])!=null?_0x24e3c2:this['_name'],this[_0x59ff85(0xfa)]=(_0x3f8060=_0x3d1dfa[_0x59ff85(0x1ef)])!=null?_0x3f8060:this[_0x59ff85(0xfa)],this[_0x59ff85(0x1c5)]=(_0x40ec03=_0x3d1dfa[_0x59ff85(0x1c1)])!=null?_0x40ec03:this[_0x59ff85(0x1c5)],this['transformByState']({'width':_0x3d1dfa[_0x59ff85(0x14d)],'height':_0x3d1dfa[_0x59ff85(0x18f)]});}[_0x3d2806(0x26f)](_0x54b2ff){const _0xb00e95=_0x3d2806,{row:_0x358c17,column:_0x539b74}=_0x54b2ff;if(_0x358c17>=this[_0xb00e95(0x2de)][_0xb00e95(0x14b)]&&_0x358c17<=this[_0xb00e95(0x2de)][_0xb00e95(0x178)]&&_0x539b74>=this[_0xb00e95(0x2de)][_0xb00e95(0x235)]&&_0x539b74<=this[_0xb00e95(0x2de)][_0xb00e95(0x30c)]){this[_0xb00e95(0x15a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3d2806(0x134)](_0x2a57fd){return!0x1;}[_0x3d2806(0x203)](_0x4820b2){const _0x5b3549=_0x3d2806;p['Rect'][_0x5b3549(0xad)](_0x4820b2,{'width':this[_0x5b3549(0x14d)],'height':this[_0x5b3549(0x18f)],'strokeWidth':mt,'stroke':this[_0x5b3549(0x303)],'evented':!0x1,'fill':this[_0x5b3549(0x1c5)]}),this[_0x5b3549(0x29d)]&&(_0x4820b2[_0x5b3549(0x208)](),_0x4820b2[_0x5b3549(0x141)](0x1,0x0,0x0,0x1,this[_0x5b3549(0x14d)],this[_0x5b3549(0xfa)]==='bottom'?0x0:-0x14),ee[_0x5b3549(0xad)](_0x4820b2,{'text':this[_0x5b3549(0x297)],'color':this[_0x5b3549(0x303)]}),_0x4820b2[_0x5b3549(0x1e9)]());}}var Ct=Object[_0x3d2806(0x19f)],pt=(_0x284abe,_0xf1e0d1,_0x142685,_0x422d62)=>{const _0x3c1e99=_0x3d2806;for(var _0x24fe6f=_0x422d62>0x1?void 0x0:_0x422d62?Ct(_0xf1e0d1,_0x142685):_0xf1e0d1,_0x26db5c=_0x284abe[_0x3c1e99(0x83)]-0x1,_0x4b4fc2;_0x26db5c>=0x0;_0x26db5c--)(_0x4b4fc2=_0x284abe[_0x26db5c])&&(_0x24fe6f=_0x4b4fc2(_0x24fe6f)||_0x24fe6f);return _0x24fe6f;},ae=(_0x5f0c3c,_0x2dec03)=>(_0x29410a,_0x4884e2)=>_0x2dec03(_0x29410a,_0x4884e2,_0x5f0c3c);const Et=0x1389;let ve=class extends a[_0x3d2806(0x96)]{constructor(_0x5942d5,_0x3c6aa6,_0x209b9b,_0x7b4470){const _0x37510c=_0x3d2806;super(),h(this,_0x37510c(0x1cc),new Set()),h(this,_0x37510c(0x1ca),null),(this[_0x37510c(0x19d)]=_0x5942d5,this[_0x37510c(0x21a)]=_0x3c6aa6,this[_0x37510c(0x1f9)]=_0x209b9b,this[_0x37510c(0xb3)]=_0x7b4470,this[_0x37510c(0x1ad)]());}['_init'](){const _0xa4ab54=_0x3d2806;this[_0xa4ab54(0x21a)][_0xa4ab54(0xb5)][_0xa4ab54(0x2c6)]($['takeUntil'](this[_0xa4ab54(0x139)]),$[_0xa4ab54(0x88)](_0x181a42=>{const _0x43891b=_0xa4ab54;if(_0x181a42){const _0x598370=_0x181a42[_0x43891b(0x220)];return d[_0x43891b(0xbd)](this[_0x43891b(0x1f9)]['getCollabCursors$'](this[_0x43891b(0x19d)][_0x43891b(0x211)]),this[_0x43891b(0xb3)][_0x43891b(0x155)])[_0x43891b(0x2c6)]($[_0x43891b(0xc3)](([_0x458a45,_0x18ba97])=>{const _0xbae9bc=_0x43891b,_0x484def=new Map();return _0x458a45[_0xbae9bc(0x246)]((_0x73510a,_0x525197)=>{const _0x14ff4c=_0xbae9bc;if(_0x73510a[_0x14ff4c(0x2fd)]===_0x598370){const _0x56cc85={..._0x73510a};_0x56cc85[_0x14ff4c(0x22a)]=this['_themeService']['getColorFromTheme'](_0x73510a['color']),_0x484def['set'](_0x525197,_0x56cc85);}}),{'skeleton':_0x181a42,'cursors':_0x484def};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x33e627,cursors:_0x7bf794})=>{const _0x23835e=_0xa4ab54;this[_0x23835e(0x1f5)](),_0x33e627&&this[_0x23835e(0xf7)](_0x33e627,_0x7bf794);}),this[_0xa4ab54(0x21a)][_0xa4ab54(0xb5)]['subscribe'](_0x47ebc9=>{const _0xdd3f1d=_0xa4ab54;if(_0x47ebc9==null)return;const {skeleton:_0x84e2ac}=_0x47ebc9,{scene:_0x4f0bfb}=this[_0xdd3f1d(0x19d)];_0x4f0bfb[_0xdd3f1d(0x1d3)]['subscribeEvent'](a['debounce'](_0x4a9e7e=>{const _0x22303d=_0xdd3f1d;var _0x138feb,_0x425e6b;const {offsetX:_0x27d7ec,offsetY:_0x1d8cac}=_0x4a9e7e,{x:_0x25be1d,y:_0x302102}=_0x4f0bfb['getRelativeToViewportCoord'](p[_0x22303d(0xd6)][_0x22303d(0x192)]([_0x27d7ec,_0x1d8cac])),{scaleX:_0x388627,scaleY:_0xe58ed3}=_0x4f0bfb[_0x22303d(0x157)](),_0x32d74d=_0x4f0bfb['getViewport'](p[_0x22303d(0x1e8)][_0x22303d(0x1ff)]),_0x545599=_0x4f0bfb['getVpScrollXYInfoByPosToVp'](p[_0x22303d(0xd6)][_0x22303d(0x192)]([_0x25be1d,_0x302102]),_0x32d74d),_0x2b1f58=_0x84e2ac[_0x22303d(0x311)](_0x27d7ec,_0x1d8cac,_0x388627,_0xe58ed3,_0x545599);((_0x138feb=this['_lastPointer'])==null?void 0x0:_0x138feb['column'])===_0x2b1f58[_0x22303d(0x158)]&&((_0x425e6b=this[_0x22303d(0x1ca)])==null?void 0x0:_0x425e6b[_0x22303d(0x221)])===_0x2b1f58[_0x22303d(0x221)]||this[_0x22303d(0x1cc)][_0x22303d(0x246)](_0x5e13ca=>{const _0xc15c86=_0x22303d;_0x5e13ca[_0xc15c86(0x26f)](_0x2b1f58);});},0x64));});}[_0x3d2806(0xf7)](_0x6ece3f,_0x3145ad){const _0x11f728=_0x3d2806;var _0x151db6;const _0xe5331=(_0x151db6=this['_sheetSkeletonManagerService'][_0x11f728(0x276)]())==null?void 0x0:_0x151db6[_0x11f728(0x2e1)];if(!_0xe5331)return;const _0x1c0144=this[_0x11f728(0xc7)]();if(!_0x1c0144)return;this[_0x11f728(0x1cc)][_0x11f728(0x246)](_0x19a1a0=>{_0x19a1a0['makeDirty']();});const {scene:_0x3d179a}=_0x1c0144,_0x3e8cfa=bt(Array[_0x11f728(0x292)](_0x3145ad[_0x11f728(0x293)]()))[_0x11f728(0xc3)](_0x17998f=>{const _0x39cbd7=_0x11f728,{color:_0xcee21,range:_0x55c0d2,name:_0x182339,selection:_0x45ffc8,sheetID:_0x3f7837}=_0x17998f,{startColumn:_0x598878,startRow:_0x3bab77,endColumn:_0x2d570b,endRow:_0x3f04e9}=_0x55c0d2,_0x243fb9=X[_0x39cbd7(0x259)](_0x3bab77,_0x598878,_0x3d179a,_0xe5331),_0x16aa09=X[_0x39cbd7(0x259)](_0x3f04e9,_0x2d570b,_0x3d179a,_0xe5331),{columnHeaderHeightAndMarginTop:_0x10b32d}=_0xe5331,{startX:_0x242879,startY:_0x4a2589}=_0x243fb9,{endX:_0x123094,endY:_0x5d55e2}=_0x16aa09,_0x12f080=_0x123094-_0x242879,_0x3c528b=_0x5d55e2-_0x4a2589,_0x238866={'labelPosition':_0x4a2589-_0x10b32d>=K?_0x39cbd7(0x1d5):_0x39cbd7(0xb8),'sheetID':_0x3f7837,'range':_0x55c0d2,'color':_0xcee21,'name':_0x182339,'selection':_0x45ffc8,'left':_0x242879,'top':_0x4a2589,'width':_0x12f080,'height':_0x3c528b,'evented':!0x1,'zIndex':Et};return new we(_0x182339,_0x238866);});_0x3d179a['addObjects'](_0x3e8cfa,gt),this[_0x11f728(0x1cc)]=new Set(_0x3e8cfa);}[_0x3d2806(0x1f5)](){const _0x14a56e=_0x3d2806;var _0x21f877;(_0x21f877=this[_0x14a56e(0x1cc)])==null||_0x21f877['forEach'](_0x33cfb1=>_0x33cfb1[_0x14a56e(0xe3)]());}[_0x3d2806(0xc7)](){const _0x11a373=_0x3d2806;return X[_0x11a373(0x11a)](this[_0x11a373(0x19d)][_0x11a373(0x12a)],this[_0x11a373(0x19d)]);}};ve=pt([ae(0x1,a[_0x3d2806(0xb9)](X[_0x3d2806(0x1c6)])),ae(0x2,a[_0x3d2806(0xb9)](x)),ae(0x3,a[_0x3d2806(0xb9)](a['ThemeService']))],ve);function bt(_0x4a5e1a){const _0x5942a2=_0x3d2806,_0xc5d379=new Map();return _0x4a5e1a[_0x5942a2(0x246)](_0x33db2e=>{const _0x4fa5b0=_0x5942a2;if(_0xc5d379[_0x4fa5b0(0x2c2)](_0x33db2e[_0x4fa5b0(0x17b)])){const _0x52def7=_0xc5d379[_0x4fa5b0(0x107)](_0x33db2e[_0x4fa5b0(0x17b)]);_0x52def7[_0x4fa5b0(0x1b5)]+=',\x20'+_0x33db2e['name'];}else _0xc5d379['set'](_0x33db2e[_0x4fa5b0(0x17b)],_0x33db2e);}),Array['from'](_0xc5d379['values']());}var b=function(){const _0x2804fc=_0x3d2806;return b=Object[_0x2804fc(0x2a3)]||function(_0x4c80d0){const _0x3fd7c7=_0x2804fc;for(var _0x22d136,_0x3d4d0d=0x1,_0xbc182e=arguments[_0x3fd7c7(0x83)];_0x3d4d0d<_0xbc182e;_0x3d4d0d++){_0x22d136=arguments[_0x3d4d0d];for(var _0x47dd88 in _0x22d136)Object[_0x3fd7c7(0x21e)]['hasOwnProperty'][_0x3fd7c7(0x219)](_0x22d136,_0x47dd88)&&(_0x4c80d0[_0x47dd88]=_0x22d136[_0x47dd88]);}return _0x4c80d0;},b[_0x2804fc(0x13c)](this,arguments);},Ot=function(_0x20b40d,_0x38876c){const _0x130d96=_0x3d2806;var _0x578f77={};for(var _0x2cae56 in _0x20b40d)Object[_0x130d96(0x21e)][_0x130d96(0x2ee)][_0x130d96(0x219)](_0x20b40d,_0x2cae56)&&_0x38876c[_0x130d96(0x1d2)](_0x2cae56)<0x0&&(_0x578f77[_0x2cae56]=_0x20b40d[_0x2cae56]);if(_0x20b40d!=null&&typeof Object[_0x130d96(0x148)]=='function'){for(var _0x370599=0x0,_0x2cae56=Object[_0x130d96(0x148)](_0x20b40d);_0x370599<_0x2cae56['length'];_0x370599++)_0x38876c[_0x130d96(0x1d2)](_0x2cae56[_0x370599])<0x0&&Object[_0x130d96(0x21e)][_0x130d96(0x252)][_0x130d96(0x219)](_0x20b40d,_0x2cae56[_0x370599])&&(_0x578f77[_0x2cae56[_0x370599]]=_0x20b40d[_0x2cae56[_0x370599]]);}return _0x578f77;},pe=M[_0x3d2806(0x2ef)](function(_0x12571c,_0x259025){const _0x491c08=_0x3d2806;var _0x5285cf=_0x12571c[_0x491c08(0x9b)],_0x1ff0c5=_0x12571c['id'],_0x284961=_0x12571c['className'],_0x5a324a=_0x12571c[_0x491c08(0x1f8)],_0xc805b7=Ot(_0x12571c,[_0x491c08(0x9b),'id',_0x491c08(0xb4),'extend']),_0x27f88a=_0x491c08(0x169)[_0x491c08(0x1f3)](_0x1ff0c5,'\x20')[_0x491c08(0x1f3)](_0x284961||'')[_0x491c08(0x183)](),_0x57d9dd=M[_0x491c08(0xdc)]('_'[_0x491c08(0x1f3)](Dt()));return Ae(_0x5285cf,''[_0x491c08(0x1f3)](_0x1ff0c5),{'defIds':_0x5285cf[_0x491c08(0x278)],'idSuffix':_0x57d9dd[_0x491c08(0x199)]},b({'ref':_0x259025,'className':_0x27f88a},_0xc805b7),_0x5a324a);});function Ae(_0x57446a,_0x55b95b,_0x199655,_0x48e514,_0x574051){const _0x297345=_0x3d2806;return M['createElement'](_0x57446a[_0x297345(0x1dc)],b(b({'key':_0x55b95b},Tt(_0x57446a,_0x199655,_0x574051)),_0x48e514),(Rt(_0x57446a,_0x199655)['children']||[])[_0x297345(0xc3)](function(_0x74315d,_0x1ef996){const _0x1b78d5=_0x297345;return Ae(_0x74315d,''[_0x1b78d5(0x1f3)](_0x55b95b,'-')['concat'](_0x57446a[_0x1b78d5(0x1dc)],'-')[_0x1b78d5(0x1f3)](_0x1ef996),_0x199655,void 0x0,_0x574051);}));}function Tt(_0x5d9c1,_0x5d7d08,_0x15db0f){const _0x3d6923=_0x3d2806;var _0x2f1cb5=b({},_0x5d9c1[_0x3d6923(0x265)]);_0x15db0f!=null&&_0x15db0f[_0x3d6923(0x1f1)]&&_0x2f1cb5[_0x3d6923(0x304)]===_0x3d6923(0x1f1)&&(_0x2f1cb5[_0x3d6923(0x304)]=_0x15db0f[_0x3d6923(0x1f1)]),_0x5d9c1[_0x3d6923(0x1dc)]===_0x3d6923(0xe0)&&_0x2f1cb5['id']&&(_0x2f1cb5['id']=_0x2f1cb5['id']+_0x5d7d08['idSuffix']),Object[_0x3d6923(0x2eb)](_0x2f1cb5)[_0x3d6923(0x246)](function(_0x21a12d){const _0x1d8b14=_0x3d6923;var _0x293eb1=_0x21a12d[0x0],_0x42baba=_0x21a12d[0x1];_0x293eb1===_0x1d8b14(0xe0)&&typeof _0x42baba=='string'&&(_0x2f1cb5[_0x293eb1]=_0x42baba[_0x1d8b14(0x109)](/url\(#(.*)\)/,_0x1d8b14(0x179)['concat'](_0x5d7d08[_0x1d8b14(0x215)],')')));});var _0x2a85e0=_0x5d7d08[_0x3d6923(0x278)];return!_0x2a85e0||_0x2a85e0['length']===0x0||(_0x5d9c1[_0x3d6923(0x1dc)]===_0x3d6923(0x22c)&&_0x2f1cb5[_0x3d6923(0x149)]&&(_0x2f1cb5[_0x3d6923(0x149)]=_0x2f1cb5['xlink:href']+_0x5d7d08[_0x3d6923(0x215)]),Object[_0x3d6923(0x2eb)](_0x2f1cb5)[_0x3d6923(0x246)](function(_0x4b8138){const _0x88fe26=_0x3d6923;var _0x4dd6a8=_0x4b8138[0x0],_0x10a83c=_0x4b8138[0x1];typeof _0x10a83c==_0x88fe26(0x258)&&(_0x2f1cb5[_0x4dd6a8]=_0x10a83c[_0x88fe26(0x109)](/url\(#(.*)\)/,_0x88fe26(0x179)[_0x88fe26(0x1f3)](_0x5d7d08[_0x88fe26(0x215)],')')));})),_0x2f1cb5;}function Rt(_0x13b47a,_0x43cf51){const _0x3b6707=_0x3d2806;var _0x3128e4,_0x1409de=_0x43cf51[_0x3b6707(0x278)];return!_0x1409de||_0x1409de[_0x3b6707(0x83)]===0x0?_0x13b47a:_0x13b47a[_0x3b6707(0x1dc)]===_0x3b6707(0x1ac)&&(!((_0x3128e4=_0x13b47a[_0x3b6707(0x11c)])===null||_0x3128e4===void 0x0)&&_0x3128e4[_0x3b6707(0x83)])?b(b({},_0x13b47a),{'children':_0x13b47a[_0x3b6707(0x11c)][_0x3b6707(0xc3)](function(_0x1ec91c){const _0x6be1f7=_0x3b6707;return typeof _0x1ec91c[_0x6be1f7(0x265)]['id']==_0x6be1f7(0x258)&&_0x1409de&&_0x1409de[_0x6be1f7(0x255)](_0x1ec91c[_0x6be1f7(0x265)]['id'])?b(b({},_0x1ec91c),{'attrs':b(b({},_0x1ec91c['attrs']),{'id':_0x1ec91c[_0x6be1f7(0x265)]['id']+_0x43cf51['idSuffix']})}):_0x1ec91c;})}):_0x13b47a;}function Dt(){const _0x569ba4=_0x3d2806;return Math[_0x569ba4(0x2e7)]()[_0x569ba4(0x302)](0x24)[_0x569ba4(0x285)](0x2,0x8);}pe[_0x3d2806(0xf9)]=_0x3d2806(0x1b8);var Ut={'tag':_0x3d2806(0x1cb),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d2806(0x125),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3d2806(0x1c2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3d2806(0x26a),'attrs':{'stroke':'currentColor','d':_0x3d2806(0xf6),'strokeLinecap':_0x3d2806(0x2ff),'strokeLinejoin':_0x3d2806(0x2ff),'strokeWidth':1.2}}]},{'tag':_0x3d2806(0x1ac),'attrs':{},'children':[{'tag':_0x3d2806(0x241),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3d2806(0x26a),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M['forwardRef'](function(_0x591529,_0x53022d){const _0x843c5f=_0x3d2806;return M[_0x843c5f(0x16a)](pe,Object['assign']({},_0x591529,{'id':'off-line-icon','ref':_0x53022d,'icon':Ut}));});ye[_0x3d2806(0xf9)]=_0x3d2806(0x205);var Nt={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d2806(0x125),'viewBox':_0x3d2806(0x170),'width':_0x3d2806(0x1c2),'height':_0x3d2806(0x1c2)},'children':[{'tag':'g','attrs':{'clipPath':_0x3d2806(0x243)},'children':[{'tag':'path','attrs':{'stroke':_0x3d2806(0x262),'d':_0x3d2806(0x2ab),'strokeLinecap':'round','strokeLinejoin':_0x3d2806(0x2ff),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3d2806(0x241),'attrs':{'id':_0x3d2806(0x1c9)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x3d2806(0x19e),'transform':_0x3d2806(0x2fe)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M['forwardRef'](function(_0x576c7a,_0x52157c){const _0x447e83=_0x3d2806;return M[_0x447e83(0x16a)](pe,Object['assign']({},_0x576c7a,{'id':_0x447e83(0x23f),'ref':_0x52157c,'icon':Nt}));});$e[_0x3d2806(0xf9)]=_0x3d2806(0x168);function Mt(_0x5c78c5){const _0x266694=_0x3d2806;switch(_0x5c78c5){case u['CollaborationStatus'][_0x266694(0x30f)]:return _0x266694(0x257);case u[_0x266694(0x1a4)]['CONFLICT']:return'collabStatus.conflict';case u['CollaborationStatus']['FETCH_MISS']:return _0x266694(0x277);case u[_0x266694(0x1a4)]['NOT_COLLAB']:return _0x266694(0xcc);case u[_0x266694(0x1a4)][_0x266694(0x225)]:case u[_0x266694(0x1a4)][_0x266694(0x98)]:return'collabStatus.syncing';case u[_0x266694(0x1a4)][_0x266694(0x20d)]:case u[_0x266694(0x1a4)][_0x266694(0x2a4)]:return _0x266694(0x17f);}}function xe(_0x34f6e9){const _0x24afe2=_0x3d2806,{status$:_0x58b4b3}=_0x34f6e9,_0x3ddcc6=O[_0x24afe2(0x2cf)](_0x58b4b3,u['CollaborationStatus'][_0x24afe2(0xfd)]),_0x5da7d3=O[_0x24afe2(0x213)](a[_0x24afe2(0x26e)]),_0x37291e=O[_0x24afe2(0x213)](u[_0x24afe2(0x24d)]),_0x139829=_0x3ddcc6!==u[_0x24afe2(0x1a4)][_0x24afe2(0x30f)],_0x219259=_0x5da7d3['t'](Mt(_0x3ddcc6)),_0x5421c2=_0x139829?P[_0x24afe2(0x2e2)]($e,{}):P['jsx'](ye,{}),_0x335887=M[_0x24afe2(0xe6)](()=>{const _0x87ca0a=_0x24afe2;_0x139829||_0x37291e[_0x87ca0a(0x267)]();},[_0x139829,_0x37291e]);function _0x4674e6(){const _0x2bff46=_0x24afe2;return P[_0x2bff46(0x190)](_0x2bff46(0xac),{'className':_0x2bff46(0x1be),'onClick':_0x335887,'children':[P[_0x2bff46(0x2e2)](_0x2bff46(0xac),{'className':D['clsx'](_0x2bff46(0x173),{'univer-text-green-500':_0x139829,'univer-text-red-500':!_0x139829}),'children':_0x5421c2}),P[_0x2bff46(0x2e2)](_0x2bff46(0xac),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x219259})]});}return _0x139829?_0x4674e6():P[_0x24afe2(0x2e2)](D[_0x24afe2(0x2b3)],{'title':_0x5da7d3['t'](_0x24afe2(0x122)),'children':_0x4674e6()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x1a9646,_0x3dc581,_0x4746b4,_0x2be3d3)=>{const _0x10dd78=_0x3d2806;for(var _0x87231=_0x2be3d3>0x1?void 0x0:_0x2be3d3?Lt(_0x3dc581,_0x4746b4):_0x3dc581,_0x346c0e=_0x1a9646[_0x10dd78(0x83)]-0x1,_0x55063f;_0x346c0e>=0x0;_0x346c0e--)(_0x55063f=_0x1a9646[_0x346c0e])&&(_0x87231=_0x55063f(_0x87231)||_0x87231);return _0x87231;},V=(_0x3a26bb,_0x40d03b)=>(_0x2d4bba,_0x5caa95)=>_0x40d03b(_0x2d4bba,_0x5caa95,_0x3a26bb);exports[_0x3d2806(0x2e8)]=class extends a['Disposable']{constructor(_0x2d3ca2,_0x3880a2,_0x3d91fa,_0x395b33){const _0x51c8c0=_0x3d2806;super(),h(this,_0x51c8c0(0x2d4),new d[(_0x51c8c0(0xec))](u['CollaborationStatus'][_0x51c8c0(0xfd)])),(this[_0x51c8c0(0x1a8)]=_0x2d3ca2,this[_0x51c8c0(0x193)]=_0x3880a2,this[_0x51c8c0(0x30b)]=_0x3d91fa,this['_uiPartsService']=_0x395b33,this[_0x51c8c0(0x28d)](),this[_0x51c8c0(0xa7)]());}[_0x3d2806(0xa7)](){const _0x64b47d=_0x3d2806;this[_0x64b47d(0x94)](this['_univerInstanceService'][_0x64b47d(0x264)][_0x64b47d(0x2c6)](d[_0x64b47d(0x88)](()=>{const _0x28f11e=_0x64b47d,_0x9ed286=this[_0x28f11e(0x1a8)][_0x28f11e(0x136)]();return _0x9ed286?this[_0x28f11e(0x30b)]['getCollabEntity$'](_0x9ed286['getUnitId']()):d['of'](null);}),d[_0x64b47d(0x88)](_0x12523e=>_0x12523e?_0x12523e[_0x64b47d(0x29f)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x64b47d(0x124)](_0x407809=>{const _0x5ef6b9=_0x64b47d;this[_0x5ef6b9(0x2d4)]['next'](_0x407809);}));}[_0x3d2806(0x28d)](){const _0x5676fc=_0x3d2806;this[_0x5676fc(0x94)](this[_0x5676fc(0x309)][_0x5676fc(0x1a6)](O[_0x5676fc(0xea)]['HEADER_MENU'],()=>O[_0x5676fc(0x135)](wt({'status$':this[_0x5676fc(0x2d4)][_0x5676fc(0x2cd)]()}),this[_0x5676fc(0x193)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x3d2806(0x15b)]),V(0x1,a['Inject'](a['Injector'])),V(0x2,a[_0x3d2806(0xb9)](u[_0x3d2806(0xc8)])),V(0x3,O[_0x3d2806(0x1d1)])],exports[_0x3d2806(0x2e8)]);function wt(_0x4d4658){const {status$:_0x4e2357}=_0x4d4658;return function(){const _0x2c61dd=_0x2d87;return P[_0x2c61dd(0x2e2)](xe,{'status$':_0x4e2357});};}var At=Object[_0x3d2806(0x19f)],yt=(_0x2037a9,_0x3d637d,_0x5306b0,_0x9b39b)=>{const _0x2df8c4=_0x3d2806;for(var _0x4be32f=_0x9b39b>0x1?void 0x0:_0x9b39b?At(_0x3d637d,_0x5306b0):_0x3d637d,_0x2a0ca6=_0x2037a9[_0x2df8c4(0x83)]-0x1,_0x4b143a;_0x2a0ca6>=0x0;_0x2a0ca6--)(_0x4b143a=_0x2037a9[_0x2a0ca6])&&(_0x4be32f=_0x4b143a(_0x4be32f)||_0x4be32f);return _0x4be32f;},y=(_0x2c4d4a,_0x13a9f5)=>(_0x2f5a44,_0x13a44e)=>_0x13a9f5(_0x2f5a44,_0x13a44e,_0x2c4d4a);let q=class extends a['Disposable']{constructor(_0x27e9ec,_0xe58ff,_0x2c5047,_0x5bcd58,_0x2f6591,_0x495871){const _0x36a454=_0x3d2806;super(),this[_0x36a454(0x1b9)]=_0x27e9ec,this[_0x36a454(0x152)]=_0xe58ff,this[_0x36a454(0xd3)]=_0x2c5047,this[_0x36a454(0xe5)]=_0x5bcd58,this[_0x36a454(0x16f)]=_0x2f6591,this[_0x36a454(0x14a)]=_0x495871,this[_0x36a454(0xb7)](),this[_0x36a454(0x222)]();}['_setupBeforeClosingHandler'](){const _0x295f26=_0x3d2806;this[_0x295f26(0x94)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x5a8e6d=_0x295f26;if(this['_localCacheService'][_0x5a8e6d(0x1bc)]['size'])return this['_localeService']['t'](_0x5a8e6d(0x2ec));}));}[_0x3d2806(0x222)](){const _0x46a388=_0x3d2806;this[_0x46a388(0x94)](this[_0x46a388(0xd3)][_0x46a388(0x19c)][_0x46a388(0x124)](_0x300355=>{const _0x21ad07=_0x46a388;_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0xcb)]&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D[_0x21ad07(0x172)][_0x21ad07(0x20a)],'content':this[_0x21ad07(0x14a)]['t'](_0x21ad07(0x286))}),_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0x19a)]&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D[_0x21ad07(0x172)][_0x21ad07(0x20a)],'content':this['_localeService']['t'](_0x21ad07(0x132))}),_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0x1d7)]&&this[_0x21ad07(0x16f)]['show']({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x21ad07(0x1fa)),'type':'error','duration':0x0}),_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0x1a1)]&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D[_0x21ad07(0x172)]['Error'],'content':this[_0x21ad07(0x14a)]['t'](_0x21ad07(0x132))+'('+_0x300355[_0x21ad07(0x87)]+')'}),_0x300355['id']===u['CollaborationUIEventId'][_0x21ad07(0x260)]&&this['_messageService']['show']({'type':D[_0x21ad07(0x172)][_0x21ad07(0x20a)],'content':this['_localeService']['t'](_0x300355[_0x21ad07(0x87)]||'')}),_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0x200)]&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D[_0x21ad07(0x172)][_0x21ad07(0x20a)],'content':this[_0x21ad07(0x14a)]['t']('session.will-retry')}),_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0x2bb)]&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D[_0x21ad07(0x172)][_0x21ad07(0x1bd)],'content':this[_0x21ad07(0x14a)]['t']('session.connection-failed')}),_0x300355['id']===u[_0x21ad07(0x176)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D['MessageType'][_0x21ad07(0x1bd)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,O[_0x3d2806(0x196)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x3d2806(0xb9)](u[_0x3d2806(0x91)])),y(0x3,O[_0x3d2806(0x1cd)]),y(0x4,O[_0x3d2806(0x120)]),y(0x5,a['Inject'](a[_0x3d2806(0x26e)]))],q);const $t=_0x3d2806(0x181),Ue={},Ee=a['createIdentifier'](_0x3d2806(0x1ea));var xt=Object[_0x3d2806(0x19f)],Bt=(_0x43d5f5,_0x36bd1b,_0x4d50e9,_0x1c99fc)=>{const _0x5f131c=_0x3d2806;for(var _0x2055f4=_0x1c99fc>0x1?void 0x0:_0x1c99fc?xt(_0x36bd1b,_0x4d50e9):_0x36bd1b,_0x17a6e8=_0x43d5f5[_0x5f131c(0x83)]-0x1,_0x514f97;_0x17a6e8>=0x0;_0x17a6e8--)(_0x514f97=_0x43d5f5[_0x17a6e8])&&(_0x2055f4=_0x514f97(_0x2055f4)||_0x2055f4);return _0x2055f4;},F=(_0x37e67d,_0x3b5960)=>(_0x293e1e,_0x278aea)=>_0x3b5960(_0x293e1e,_0x278aea,_0x37e67d);exports[_0x3d2806(0x305)]=class extends a[_0x3d2806(0x96)]{constructor(_0xf1e4b,_0x32468a,_0x23ebe2,_0x5603af,_0x16e02a){const _0x10f1de=_0x3d2806;super(),this[_0x10f1de(0x171)]=_0xf1e4b,this['_logService']=_0x32468a,this['_commandService']=_0x23ebe2,this[_0x10f1de(0x25c)]=_0x5603af,_0x16e02a?_0x16e02a==null||_0x16e02a[_0x10f1de(0xa9)]()[_0x10f1de(0x201)](()=>this['_init']()):(this[_0x10f1de(0x2c8)][_0x10f1de(0x20c)]('[CollaborationDataLoaderController]',_0x10f1de(0x15e)),this[_0x10f1de(0x1ad)]());}async['_init'](){const _0x99b150=_0x3d2806,_0x975dfa=this[_0x99b150(0x171)][_0x99b150(0x223)](_0x99b150(0x12a)),_0x45b80c=this[_0x99b150(0x171)][_0x99b150(0x223)](_0x99b150(0x95)),_0x2c492b=this['_urlService'][_0x99b150(0x223)](_0x99b150(0xe8));if(!_0x975dfa||!_0x45b80c){this[_0x99b150(0x2c8)]['debug']('[CollaborationDataLoaderController]',_0x99b150(0x159));return;}const _0xbc93a8=await this[_0x99b150(0x25c)]['loadUnit'](_0x975dfa,Number(_0x45b80c),_0x2c492b);_0xbc93a8&&_0xbc93a8 instanceof a[_0x99b150(0xaa)]&&this[_0x99b150(0x187)](_0xbc93a8);}async[_0x3d2806(0x187)](_0x3ae702){const _0x1da551=_0x3d2806;await this['_updateSubUnitFromURLParams'](_0x3ae702),_0x3ae702[_0x1da551(0x242)]['pipe'](d[_0x1da551(0x189)](this[_0x1da551(0x139)]))['subscribe'](_0x4fce2a=>{_0x4fce2a&&this['_updateURLWithCurrentState'](_0x4fce2a);}),this['_urlService'][_0x1da551(0x2b5)][_0x1da551(0x2c6)](d[_0x1da551(0x189)](this[_0x1da551(0x139)]))[_0x1da551(0x124)](()=>this[_0x1da551(0x2d8)](_0x3ae702));}['_updateURLWithCurrentState'](_0x152e7a,_0x542d74=!0x1){const _0x2e2fb9=_0x3d2806,_0x2d7df7=this[_0x2e2fb9(0x171)]['getParam'](_0x2e2fb9(0xe8));_0x152e7a['getSheetId']()!==_0x2d7df7&&this['_urlService']['setParam'](_0x2e2fb9(0xe8),_0x152e7a['getSheetId'](),_0x542d74);}async[_0x3d2806(0x2d8)](_0x3d37ed){const _0x3ab85e=_0x3d2806;var _0x419b80;const _0x46c168=this['_urlService']['getParam'](_0x3ab85e(0xe8));if(!_0x46c168||!_0x3d37ed[_0x3ab85e(0x2ac)](_0x46c168)){const _0x3264ed=_0x3d37ed[_0x3ab85e(0xf8)]()[0x0],_0x35c57a=_0x3d37ed[_0x3ab85e(0x2ac)](_0x3264ed);if(!_0x35c57a)return;this[_0x3ab85e(0xd7)](_0x35c57a,!0x0),await this['_commandService']['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x3d37ed[_0x3ab85e(0x1ba)](),'subUnitId':_0x3264ed});return;}((_0x419b80=_0x3d37ed[_0x3ab85e(0x12c)]())==null?void 0x0:_0x419b80[_0x3ab85e(0x144)]())!==_0x46c168&&await this[_0x3ab85e(0xa3)][_0x3ab85e(0x23e)](g[_0x3ab85e(0x207)]['id'],{'unitId':_0x3d37ed[_0x3ab85e(0x1ba)](),'subUnitId':_0x46c168});}},exports[_0x3d2806(0x305)]=Bt([F(0x0,Ee),F(0x1,a[_0x3d2806(0x1e4)]),F(0x2,a[_0x3d2806(0xbb)]),F(0x3,a[_0x3d2806(0xb9)](u[_0x3d2806(0x248)])),F(0x4,a['Optional'](Ke[_0x3d2806(0x15d)]))],exports[_0x3d2806(0x305)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x58f379,_0x4292aa,_0x53cd6b,_0x2bab33)=>{for(var _0x397014=_0x2bab33>0x1?void 0x0:_0x2bab33?jt(_0x4292aa,_0x53cd6b):_0x4292aa,_0x25a30a=_0x58f379['length']-0x1,_0x1d783d;_0x25a30a>=0x0;_0x25a30a--)(_0x1d783d=_0x58f379[_0x25a30a])&&(_0x397014=_0x1d783d(_0x397014)||_0x397014);return _0x397014;},ce=(_0x452b62,_0x48f45b)=>(_0x258304,_0x24fb54)=>_0x48f45b(_0x258304,_0x24fb54,_0x452b62);let z=class{constructor(_0x52cc84,_0x192bcf,_0x1b26a9){const _0x48eb02=_0x3d2806;this[_0x48eb02(0x193)]=_0x52cc84,this[_0x48eb02(0x13d)]=_0x192bcf,this[_0x48eb02(0x1c4)]=_0x1b26a9;}[_0x3d2806(0x24b)](_0xa9e449){const _0x31df8d=_0x3d2806;this[_0x31df8d(0x12b)](_0xa9e449),this[_0x31df8d(0x111)](_0xa9e449);}['transformRemoteChangeset'](_0x2912e9){const _0x41f098=_0x3d2806,{unitID:_0x41472f}=_0x2912e9,_0x53c4cb=this[_0x41f098(0x1c4)]['getRenderById'](_0x41472f)[_0x41f098(0x2f0)](E[_0x41f098(0xe4)]),{redoCache:_0x3c20e5}=_0x53c4cb[_0x41f098(0x2fb)]();if(_0x3c20e5['length']===0x0)return _0x2912e9;let _0x549236=a[_0x41f098(0x147)][_0x41f098(0x230)](_0x2912e9[_0x41f098(0x1de)][0x0]);for(let _0x1183fc=0x0;_0x1183fc<_0x3c20e5[_0x41f098(0x83)];_0x1183fc++){const _0x5dc107={'id':_0x41f098(0x1d9),'params':{..._0x3c20e5[_0x1183fc]}},_0x3d1555=this[_0x41f098(0x13d)][_0x41f098(0x2cc)](_0x549236,_0x5dc107,!0x1);if(m[_0x41f098(0x2f7)](_0x3d1555))throw _0x3d1555[_0x41f098(0x197)];_0x549236=_0x3d1555[_0x41f098(0x19b)];}return{...a[_0x41f098(0x147)]['deepClone'](_0x2912e9),'mutations':[_0x549236]};}['_transformUndoRedoStack'](_0x52be5a){const _0x2d611b=_0x3d2806,{unitID:_0x4c8512}=_0x52be5a,_0xb6c026=this['_renderManagerService'][_0x2d611b(0x1e2)](_0x4c8512)['with'](E[_0x2d611b(0xe4)]),{undoCache:_0x119199,redoCache:_0x3596d0}=_0xb6c026[_0x2d611b(0x2fb)]();if(_0x119199[_0x2d611b(0x83)]===0x0||_0x3596d0[_0x2d611b(0x83)]===0x0)return;const _0x118b8c=[],_0x1f942a=[];let _0x2d22db=a[_0x2d611b(0x147)][_0x2d611b(0x230)](_0x52be5a[_0x2d611b(0x1de)][0x0]),_0x905dd3=a[_0x2d611b(0x147)][_0x2d611b(0x230)](_0x52be5a['mutations'][0x0]);for(let _0x21d78c=_0x119199[_0x2d611b(0x83)]-0x1;_0x21d78c>=0x0;_0x21d78c--){const _0x16c090={'id':'doc.mutation.rich-text-editing','params':{..._0x119199[_0x21d78c]}},_0x3f6b64={'id':_0x2d611b(0x1d9),'params':{..._0x3596d0[_0x21d78c]}},_0x5b01c8=this[_0x2d611b(0x13d)]['transformMutation'](_0x2d22db,_0x16c090,!0x1),_0x55c851=this[_0x2d611b(0x13d)][_0x2d611b(0x2cc)](_0x905dd3,_0x3f6b64,!0x1);if(m[_0x2d611b(0x2f7)](_0x5b01c8))throw _0x5b01c8['error'];if(m['isTransformMutationFailure'](_0x55c851))throw _0x55c851[_0x2d611b(0x197)];_0x118b8c[_0x2d611b(0xa8)](_0x5b01c8[_0x2d611b(0xb2)]['params']),_0x1f942a[_0x2d611b(0xa8)](_0x55c851['m2Prime'][_0x2d611b(0x180)]),_0x2d22db=_0x5b01c8[_0x2d611b(0x19b)],_0x905dd3=_0x55c851[_0x2d611b(0x19b)];}_0xb6c026[_0x2d611b(0x1f0)]({'undoCache':_0x118b8c,'redoCache':_0x1f942a});}[_0x3d2806(0x111)](_0x2a362d){const _0x41a5ce=_0x3d2806,{unitID:_0x5cb0ea}=_0x2a362d,_0x4f59d7=this[_0x41a5ce(0x1c4)][_0x41a5ce(0x1e2)](_0x5cb0ea)[_0x41a5ce(0x2f0)](E[_0x41a5ce(0xe4)]),_0x476386=_0x4f59d7[_0x41a5ce(0x26b)]();if(_0x476386==null)return;const _0x277f71=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2a362d[_0x41a5ce(0x1ec)],'actions':null,'textRanges':[_0x476386]}}],_0x5df6b4=this['_transformService']['transformMutationsWithChangeset'](_0x2a362d,_0x277f71);if(!m[_0x41a5ce(0x104)](_0x5df6b4))throw _0x5df6b4[_0x41a5ce(0x197)];const _0x166fcc=_0x5df6b4[_0x41a5ce(0xb2)][0x0]['params'][_0x41a5ce(0x30e)];Array[_0x41a5ce(0xf5)](_0x166fcc)&&_0x166fcc[_0x41a5ce(0x83)]&&_0x4f59d7[_0x41a5ce(0x110)](_0x166fcc[0x0]);}};z=kt([ce(0x0,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),ce(0x1,m[_0x3d2806(0xd9)]),ce(0x2,p[_0x3d2806(0x2bf)])],z);var Ft=Object[_0x3d2806(0x19f)],Ht=(_0x491c50,_0x3bf89e,_0x18bdf6,_0x4ee8e2)=>{const _0xaa004=_0x3d2806;for(var _0x2c0850=_0x4ee8e2>0x1?void 0x0:_0x4ee8e2?Ft(_0x3bf89e,_0x18bdf6):_0x3bf89e,_0x3ee965=_0x491c50[_0xaa004(0x83)]-0x1,_0x151c8b;_0x3ee965>=0x0;_0x3ee965--)(_0x151c8b=_0x491c50[_0x3ee965])&&(_0x2c0850=_0x151c8b(_0x2c0850)||_0x2c0850);return _0x2c0850;},le=(_0x1138a3,_0x9d68af)=>(_0x302f51,_0x189478)=>_0x9d68af(_0x302f51,_0x189478,_0x1138a3);let J=class{constructor(_0x22f80e,_0x1d1f78,_0x562fe1){const _0x13e086=_0x3d2806;this[_0x13e086(0x193)]=_0x22f80e,this[_0x13e086(0x13d)]=_0x1d1f78,this[_0x13e086(0x231)]=_0x562fe1;}[_0x3d2806(0x102)](_0x45947c){const _0x12631c=_0x3d2806;this[_0x12631c(0x29b)](_0x45947c);}[_0x3d2806(0x2f3)](_0x2384a1){const _0x357b26=_0x3d2806,{unitID:_0x45d151}=_0x2384a1,{collaboration:_0x548aed}=this[_0x357b26(0x231)]['getStateCache'](_0x45d151);if(_0x548aed['length']===0x0)return _0x2384a1;let _0x23f68b=a[_0x357b26(0x147)][_0x357b26(0x230)](_0x2384a1[_0x357b26(0x1de)][0x0]);for(let _0x2a9c61=0x0;_0x2a9c61<_0x548aed[_0x357b26(0x83)];_0x2a9c61++){const _0x2460f3={'id':_0x357b26(0x1d9),'params':{'unitId':_0x548aed[_0x2a9c61][_0x357b26(0x211)],..._0x548aed[_0x2a9c61]['redoState']}},_0x3940b1=this[_0x357b26(0x13d)][_0x357b26(0x2cc)](_0x23f68b,_0x2460f3,!0x1);if(m[_0x357b26(0x2f7)](_0x3940b1))throw _0x3940b1[_0x357b26(0x197)];_0x23f68b=_0x3940b1['m1Prime'];}return{...a[_0x357b26(0x147)][_0x357b26(0x230)](_0x2384a1),'mutations':[_0x23f68b]};}['_transformHistoryAndStateStack'](_0x17d477){const _0x778725=_0x3d2806,{unitID:_0x137d0c}=_0x17d477,{history:_0xc2721c,collaboration:_0x2a7cb6}=this[_0x778725(0x231)][_0x778725(0x1b0)](_0x137d0c);if(_0xc2721c['length']===0x0&&_0x2a7cb6[_0x778725(0x83)]===0x0)return;const _0x4e0c00=[],_0x3f2a5c=[];let _0x5e757a=a['Tools'][_0x778725(0x230)](_0x17d477[_0x778725(0x1de)][0x0]),_0x105126=a[_0x778725(0x147)][_0x778725(0x230)](_0x17d477[_0x778725(0x1de)][0x0]);for(let _0x41dcda=_0xc2721c[_0x778725(0x83)]-0x1;_0x41dcda>=0x0;_0x41dcda--){const _0x4835cd={'id':_0x778725(0x1d9),'params':{'unitId':_0xc2721c[_0x41dcda]['unitId'],..._0xc2721c[_0x41dcda]['undoState']}},_0x379c7a={'id':_0x778725(0x1d9),'params':{'unitId':_0xc2721c[_0x41dcda]['unitId'],..._0xc2721c[_0x41dcda][_0x778725(0xd8)]}},_0x25b4c5=this[_0x778725(0x13d)]['transformMutation'](_0x5e757a,_0x4835cd,!0x1),_0x8e2c11=this[_0x778725(0x13d)]['transformMutation'](_0x105126,_0x379c7a,!0x1);if(m['isTransformMutationFailure'](_0x25b4c5))throw _0x25b4c5[_0x778725(0x197)];if(m['isTransformMutationFailure'](_0x8e2c11))throw _0x8e2c11[_0x778725(0x197)];_0x4e0c00[_0x778725(0xa8)]({..._0xc2721c[_0x41dcda],'undoState':_0x25b4c5[_0x778725(0xb2)][_0x778725(0x180)],'redoState':_0x8e2c11[_0x778725(0xb2)][_0x778725(0x180)]}),_0x5e757a=_0x25b4c5[_0x778725(0x19b)],_0x105126=_0x8e2c11[_0x778725(0x19b)];}_0x5e757a=a[_0x778725(0x147)][_0x778725(0x230)](_0x17d477['mutations'][0x0]),_0x105126=a[_0x778725(0x147)][_0x778725(0x230)](_0x17d477[_0x778725(0x1de)][0x0]);for(let _0x3c9cef=_0x2a7cb6[_0x778725(0x83)]-0x1;_0x3c9cef>=0x0;_0x3c9cef--){const _0x163b50={'id':_0x778725(0x1d9),'params':{'unitId':_0x2a7cb6[_0x3c9cef]['unitId'],..._0x2a7cb6[_0x3c9cef][_0x778725(0x184)]}},_0x5bcfc3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2a7cb6[_0x3c9cef][_0x778725(0x211)],..._0x2a7cb6[_0x3c9cef][_0x778725(0xd8)]}},_0x399052=this[_0x778725(0x13d)][_0x778725(0x2cc)](_0x5e757a,_0x163b50,!0x1),_0x1079b2=this[_0x778725(0x13d)][_0x778725(0x2cc)](_0x105126,_0x5bcfc3,!0x1);if(m[_0x778725(0x2f7)](_0x399052))throw _0x399052[_0x778725(0x197)];if(m['isTransformMutationFailure'](_0x1079b2))throw _0x1079b2['error'];_0x3f2a5c['unshift']({..._0x2a7cb6[_0x3c9cef],'undoState':_0x399052['m2Prime'][_0x778725(0x180)],'redoState':_0x1079b2[_0x778725(0xb2)]['params']}),_0x5e757a=_0x399052[_0x778725(0x19b)],_0x105126=_0x1079b2[_0x778725(0x19b)];}this['_docStateChangeManagerService'][_0x778725(0x1b6)](_0x137d0c,{'history':_0x4e0c00,'collaboration':_0x3f2a5c});}};J=Ht([le(0x0,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),le(0x1,m['ITransformService']),le(0x2,a[_0x3d2806(0xb9)](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x3d2806(0x19f)],Wt=(_0x459e17,_0x45ed57,_0x4f53d7,_0x1f4d9d)=>{const _0x3d3661=_0x3d2806;for(var _0x54f493=_0x1f4d9d>0x1?void 0x0:_0x1f4d9d?Yt(_0x45ed57,_0x4f53d7):_0x45ed57,_0x2d8d98=_0x459e17[_0x3d3661(0x83)]-0x1,_0x46ee01;_0x2d8d98>=0x0;_0x2d8d98--)(_0x46ee01=_0x459e17[_0x2d8d98])&&(_0x54f493=_0x46ee01(_0x54f493)||_0x54f493);return _0x54f493;},Ne=(_0x553a08,_0x576797)=>(_0x403597,_0x1fbaf6)=>_0x576797(_0x403597,_0x1fbaf6,_0x553a08);let Z=class{constructor(_0x2ca968,_0x32890e){const _0xa90627=_0x3d2806;this['_injector']=_0x2ca968,this[_0xa90627(0x13d)]=_0x32890e;}[_0x3d2806(0x2d7)](_0x1a6eec){const _0x168842=_0x3d2806;var _0x3e5dcc;const _0xfe4839=this[_0x168842(0x193)][_0x168842(0x107)](Y[_0x168842(0x2d1)]),_0x180ae9=(_0x3e5dcc=_0xfe4839[_0x168842(0x127)]())!=null?_0x3e5dcc:[];if(_0x180ae9[_0x168842(0x83)]===0x0)return;const _0xae5db4=_0x1a6eec[_0x168842(0x1ec)],_0x74401c=[{'id':_0x168842(0x1d9),'params':{'unitId':_0xae5db4,'actions':null,'textRanges':_0x180ae9}}],_0x1ed681=this[_0x168842(0x13d)][_0x168842(0x164)](_0x1a6eec,_0x74401c);if(!m[_0x168842(0x104)](_0x1ed681))throw _0x1ed681[_0x168842(0x197)];const _0x653c84=_0x1ed681[_0x168842(0xb2)][0x0][_0x168842(0x180)][_0x168842(0x30e)];Array[_0x168842(0xf5)](_0x653c84)&&_0x653c84['length']&&_0xfe4839[_0x168842(0x2e4)](_0x653c84,{'unitId':_0xae5db4,'subUnitId':_0xae5db4},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0x3d2806(0x145)])),Ne(0x1,m[_0x3d2806(0xd9)])],Z);var Vt=Object[_0x3d2806(0x19f)],Xt=(_0x2c5394,_0x227d5f,_0x37434e,_0x8ed30c)=>{for(var _0x3ca050=_0x8ed30c>0x1?void 0x0:_0x8ed30c?Vt(_0x227d5f,_0x37434e):_0x227d5f,_0x24fe5d=_0x2c5394['length']-0x1,_0x1c25b5;_0x24fe5d>=0x0;_0x24fe5d--)(_0x1c25b5=_0x2c5394[_0x24fe5d])&&(_0x3ca050=_0x1c25b5(_0x3ca050)||_0x3ca050);return _0x3ca050;},N=(_0xc80cf0,_0x297b10)=>(_0x21385b,_0x25c99f)=>_0x297b10(_0x21385b,_0x25c99f,_0xc80cf0);let Q=class extends a[_0x3d2806(0x2c3)]{constructor(_0x1db9fe,_0xe51786,_0x40c4d5,_0x410cca,_0x21002c,_0xae62ff,_0x4b828d,_0x409daa){const _0x4ea629=_0x3d2806;super(),h(this,_0x4ea629(0x2d4),new d[(_0x4ea629(0xec))](u[_0x4ea629(0x1a4)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x1db9fe,this['_collaborationController']=_0xe51786,this[_0x4ea629(0x2b8)]=_0x40c4d5,this[_0x4ea629(0x1c0)]=_0x410cca,this[_0x4ea629(0x194)]=_0x21002c,this[_0x4ea629(0x284)]=_0xae62ff,this[_0x4ea629(0xe5)]=_0x4b828d,this[_0x4ea629(0x14a)]=_0x409daa,this['_initEntityListener']());}[_0x3d2806(0x1b1)](){const _0x32cadf=_0x3d2806;this['disposeWithMe'](this[_0x32cadf(0x30b)][_0x32cadf(0x1da)][_0x32cadf(0x124)](_0x2b44f1=>{const _0x1d3f6a=_0x32cadf,_0x36bf4b=this[_0x1d3f6a(0x231)][_0x1d3f6a(0x2c9)][_0x1d3f6a(0x124)](_0x5e84ca=>{const _0x1bdecf=_0x1d3f6a;if(_0x5e84ca==null)return;const {unitId:_0x39bef0,redoState:_0x56e2d0,commandId:_0x41e7c9}=_0x5e84ca;if(_0x39bef0!==_0x2b44f1[_0x1bdecf(0x1ec)])return;const _0x509d5d={'id':_0x41e7c9,'type':a[_0x1bdecf(0x2ae)][_0x1bdecf(0x103)],'params':{'unitId':_0x39bef0,'actions':_0x56e2d0[_0x1bdecf(0x2f6)],'textRanges':null}};_0x2b44f1[_0x1bdecf(0xe7)](_0x509d5d);});if(_0x2b44f1[_0x1d3f6a(0x94)](_0x36bf4b),_0x2b44f1 instanceof u[_0x1d3f6a(0x17e)]){const _0x5609b1={'onTransformIME':_0x39f0c7=>this[_0x1d3f6a(0x2b8)][_0x1d3f6a(0x24b)](_0x39f0c7),'onTransformState':_0x3deb82=>this[_0x1d3f6a(0x1c0)]['transformStateCache'](_0x3deb82),'onTransformSelections':_0x1e5136=>this[_0x1d3f6a(0x194)][_0x1d3f6a(0x2d7)](_0x1e5136),'onSyncEditingCollabCursor':_0x13fc58=>this[_0x1d3f6a(0x284)][_0x1d3f6a(0x2bc)](_0x13fc58),'onTransformRemoteChangesetByIMECache':_0x46d2e2=>this[_0x1d3f6a(0x2b8)]['transformRemoteChangeset'](_0x46d2e2),'onTransformRemoteChangesetByStateCache':_0x45f3b7=>this[_0x1d3f6a(0x1c0)][_0x1d3f6a(0x2f3)](_0x45f3b7)};_0x2b44f1['addHandlerCallback'](_0x5609b1);}}));}};Q=Xt([N(0x0,a[_0x3d2806(0xb9)](E[_0x3d2806(0x8f)])),N(0x1,a['Inject'](u[_0x3d2806(0xc8)])),N(0x2,a[_0x3d2806(0xb9)](z)),N(0x3,a[_0x3d2806(0xb9)](J)),N(0x4,a[_0x3d2806(0xb9)](Z)),N(0x5,a[_0x3d2806(0xb9)](Ce)),N(0x6,O[_0x3d2806(0x1cd)]),N(0x7,a[_0x3d2806(0xb9)](a['LocaleService']))],Q);var Gt=Object[_0x3d2806(0x19f)],Kt=(_0x532ac9,_0x4dd3a6,_0x41828b,_0x57e89c)=>{const _0x47b59b=_0x3d2806;for(var _0x37d84a=_0x57e89c>0x1?void 0x0:_0x57e89c?Gt(_0x4dd3a6,_0x41828b):_0x4dd3a6,_0x2d8812=_0x532ac9[_0x47b59b(0x83)]-0x1,_0x45e69a;_0x2d8812>=0x0;_0x2d8812--)(_0x45e69a=_0x532ac9[_0x2d8812])&&(_0x37d84a=_0x45e69a(_0x37d84a)||_0x37d84a);return _0x37d84a;},_e=(_0x5dec98,_0xb47c36)=>(_0xf19f57,_0xcc5534)=>_0xb47c36(_0xf19f57,_0xcc5534,_0x5dec98);function _0x5e28(){const _0x4ba750=['_registerDependencies','TEXT_RANGE_LAYER_INDEX','getLocalCacheKey','color','_localStorageService','use','distinctUntilChanged','_handleJoinEvent','measureText','deepClone','_docStateChangeManagerService','addObject','cursorInfo$','setConfig','startColumn','APPLY_NON_SEQUENTIAL_REVISION','_updateLocalCursor','key','ILocalCacheService','disposeUnit','removeParam','APPLY_REVISION_CONFILICT','red.300','executeCommand','on-line-icon','YUUMI_TABLE_NOT_FOUND_IN_UNIT','clipPath','activeSheet$','url(#on-line-icon_clip0_910_349)','_shapes','UniverCollaborationClientUIPlugin','forEach','find','DataLoaderService','CHANGESET_REVISION_CONFILICT','_render','transformIMECache','_document','CollaborationSessionService','flatMap','getMemberID','handleDeleteRangeMoveUp','331128GQHznc','propertyIsEnumerable','symbol','evenodd','includes','add','collabStatus.offline','string','getCoordByCell','_doCreateSocket','rgba(255,\x20255,\x20255,\x200.01)','_dataLoaderService','YUUMI_URL_COL_OUT_OF_RANGE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','roomMembers','JOIN_ROOM_FAILED','SNAPSHOT_HAS_BEEN_REMOVED','currentColor','sessionTicket','focused$','attrs','DisposableCollection','reconnect','APPLY_PERMISSION_DENIED','parse','path','getActiveRange','fillText','_instanceService','LocaleService','onMouseMove','RefRangeService','subUnitId','runOnServer','toRgbString','DeleteRangeMoveLeftCommandId','_collabCursorState$','getCurrent','collabStatus.fetchMiss','defIds','setAlpha','2kiCuYy','range','all','defineProperty','cursorInfo','OTHER_CLIENTS_EDITING','debounceTime','getMember','invokeId','runId','_docSyncEditingCollabCursorService','substring','collaboration.single-unit.warning','1384411WsEBJq','UNDEFINED','_scene','registerRenderModule','CollaborationEvent','_docSkeleton','_initStatusComponent','LOCAL_CACHE_INTERVAL_KEY','_ensureSubject','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_assignedColors','from','values','_initDependencies','YUUMI_UNABLE_LOAD_URL','debounce','_name','getUnitStatus$','Shape','_session','_transformHistoryAndStateStack','isEditing','_hovered','#FFF','status$','purple.300','TOO_MANY_REQUESTS','APPLY_REJECT','assign','PENDING','IImageIoService','_colorIndex','ISocketService','override','NOT_FOUND','_scheduleHeartbeat','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','getSheetBySheetId','_heartbeatTimer','CommandType','beginPath','DeleteRangeMoveUpCommandId','application/json','lineTo','Tooltip','INTERNAL_ERROR','urlChange$','onPointerEnter$','getTypeOfUnitAdded$','_docTransformIMECacheService','_anchor','runRefRangeMutations','SOCKET_FAILED','syncEditingCollabCursor','_id','EffectRefRangId','IRenderManagerService','clearTimeout','saveOfflineData','has','Disposable','HTTPService','SetDocZoomRatioOperation','pipe','Rectangle','_logService','docStateChange$','addClipboardHook','hide','transformMutation','asObservable','getMergeData','useObservable','moveTo','DocSelectionManagerService','EMAIL_VERIFY_CODE_MISMATCH','SNAPSHOT_INVALID_SNAPSHOT','_status$','YUUMI_CONNECTOR_URL_NOT_FOUND','assignAColorForMemberID','transformSelections','_updateSubUnitFromURLParams','_getSaveTimeout','INVITE_CODE_ALREADY_BOUND','_handleHeartbeatEvent','send','handleInsertCol','_range','_toggleOffline','arc','skeleton','jsx','setParam','replaceDocRanges','_send','history','random','DesktopCollaborationStatusDisplayController','max','_configService','entries','collaboration-client.offline-data-not-saved','fillStyle','hasOwnProperty','forwardRef','with','InsertRangeMoveRightCommandId','jiqing.500','transformRemoteChangeset','WebURLService','LICENSE_EXPORT_SIZE_EXCEEDED','actions','isTransformMutationFailure','delete','onTransformChange$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getUndoRedoMutationParamsCache','getRangePointData','sheetID','translate(.97)','round','fromEventSubject','USERS_LEAVE','toString','_color','fill','CollaborationDataLoaderController','_removeClearOtherTimer','_saveCache','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_uiPartsService','UnitStatus','_collaborationController','endColumn','_syncEditingCollabCursorService','textRanges','OFFLINE','_selfUnitIDs','getCellPositionByOffset','_docSkeletonManagerService','_disabled','_revisionService','8tXptcY','enableLocalCache','isActive','length','NodePositionConvertToCursor','popstate','getCurrentSelections','data','switchMap','20ANRvuP','set','ColorKit','_anchorDot','_getSessionTicket','TEXT','DocStateChangeManagerService','_cachedData','CollaborationUIEventService','href','_unitOnClients','disposeWithMe','type','RxDisposable','InsertColCommandId','AWAITING_WITH_PENDING','SessionStatus','blue.400','icon','text','CollaborationStatusDisplay','_createSocketURL','ENSURE_SNAPSHOT_EXECUTION','_handleLeaveEvent','LICENSE_DISTRO_REJECTED','complete','_commandService','_cursorShapes','result','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_initStatusListener','unshift','whenReady','Workbook','_collabSessionService','div','drawWith','YUUMI_RATE_OVER_LIMIT','USER_NOT_INVITED_CODE','collab-text-anchor-','size','m2Prime','_themeService','className','currentSkeleton$','UNRECOGNIZED','_setupBeforeClosingHandler','bottom','Inject','_drawRectRange','ICommandService','show','combineLatest','_refRangeService','_textBubble','_registerRenderDependencies','ISnapshotServerService','exhaustSavingTask','map','INVITE_CODE_HAS_BEEN_UES','searchParams','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_getSheetObject','CollaborationController','_drawAnchor','/run/','OTHER_CLIENT_EDITING','collabStatus.notCollab','ticket','replaceState','getCurrentRevOfUnit','UPDATE_CURSOR','collabCursorState$','UNIVER_SHEET','_collaborationUIEventService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','InsertRowCommandId','Vector2','_updateURLWithCurrentState','redoState','ITransformService','filter','onRendered','useRef','origin','_hideTimer','closePath','mask','INVITE_CODE_REQUIRED','getCollabCursors$','dispose','DocIMEInputManagerService','_messageService','useCallback','onLocalMutation','subunit','_httpService','BuiltInUIPart','sessionStatus$','BehaviorSubject','handleInsertRow','_cursor','WECHAT_HAS_BEEN_BOUND','split','onCommandExecuted','subscribeEvent','1250202LlEEeR','body','isArray','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','_updateCollabCursors','getUnhiddenWorksheets','displayName','_labelPosition','SetTextSelectionsOperation','editingUnit','NOT_COLLAB','onPointerLeave$','CollaborationSocketService','UniverInstanceType','DOC_RANGE_TYPE','transformStateCache','MUTATION','isTransformMutationsWithChangesetSuccess','RemoveRowCommandId','init','get','onStarting','replace','_handleEvent','IURLService','_startDocCollabCursor','ONLINE','memberID','_drawTextRange','setActiveRange','_transformPreviousActiveRange','green.600','min','RichTextEditingMutation','ILocalStorageService','_scheduleClearOtherTimer','_initResize','MoveRangeCommandId','Subject','getSheetObject','SheetCollabCursorShape','children','_roomMembers$','createSocket','_getScale','INotificationService','SheetsSelectionsService','collab-client.tooltip.reconnect','contains','subscribe','none','setTimeout','getDocRanges','RemoteUniscriptService','RemoveColCommandId','unit','_transformUndoRedoStack','getActiveSheet','fromEvent','selections','_handleHover','MemberService','_scheduleSaving','collaboration.closeRoom','pluginName','triggerDblclick','connectInjector','getFocusedUnit','ThemeService','mergeOverrideWithDependencies','dispose$','_eventUnsubscribe','getSkeleton','apply','_transformService','LOGIN_FAILED','handleIRemoveRow','fillRule','transform','createInstance','_cursorInfo$','getSheetId','Injector','IDocClipboardService','Tools','getOwnPropertySymbols','xlink:href','_localeService','startRow','_onCursorDelete','width','YUUMI_ALL_TABLES_IS_INVALID','unsubscribe','getValue','requireSession','_localCacheService','getTypeOfUnitDisposed$','IConfigService','currentTheme$','_hover','getAncestorScale','column','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','setShapeProps','IUniverInstanceService','LICENSE_MAX_UNITS_EXCEEDED','IRemoteInstanceService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_initCommandExecutedListener','ACTIVE_UNIT_EVENT_CHANNEL','MOBILE_HAS_BEEN_BOUND','saveImage','WebBrowserSingleActiveUnitService','transformMutationsWithChangeset','DEFAULT_WS_SESSION_TICKET_URL','YUUMI_SUBSCRIPTION_NOT_FOUND','loadOfflineData','OnLineIcon','univerjs-icon\x20univerjs-icon-','createElement','_entityInit$','_onCursorUpdate','collab-text-range-','_imageIoService','_notificationService','0\x200\x2017\x2016','_urlService','MessageType','univer-mr-2\x20univer-flex\x20univer-text-xl','10EKLCkW','_startSheetCollabCursor','CollaborationUIEventId','location','endRow','url(#$1','handleIRemoveCol','selection','mapTo','ranges','DocCollaborationEntity','collabStatus.synced','params','collaboration-client-ui.config','COLORS','trim','undoState','640608rgziEJ','APPLY_DUPLICATED','_setupSubUnitSync','code','takeUntil','UNAUTHENTICATED','4022898ZVoDaq','getColor','clearInterval','Rect','height','jsxs','_config','FromArray','_injector','_docTransformSelectionsService','EMAIL_HAS_BEEN_BOUND','IBeforeCloseService','error','executionId','current','CLOSE_ROOM','m1Prime','event$','_context','M0\x200H16V16H0z','getOwnPropertyDescriptor','_docClipboardService','CONFLICT','setItem','COMPLETION_FINISHED','CollaborationStatus','DocSkeletonManagerService','registerComponent','findNodePositionByCharIndex','_univerInstanceService','UNIVER_DOC','_online','search','defs','_init','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_colorAssignService','getStateCache','_initEntityListener','getConfig','_entities','handleInsertRangeMoveDown','name','setStateCache','getCurrentUnitForType','UniverIcon','_beforeCloseService','getUnitId','collab-rect-range-','saveTaskMap','Error','univer-flex\x20univer-items-center','next','_docTransformStateCacheService','backgroundColor','1em','engine','_renderManagerService','_backgroundColor','SheetSkeletonManagerService','shareReplay','NO_OTHER_CLIENTS_EDITING','on-line-icon_clip0_910_349','_lastPointer','svg','_cursors','IMessageService','black','YUUMI_NO_CUBOID_FOR_QUESTION','_clearOtherTimers','IUIPartsService','indexOf','onPointerMove$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','top','toDisposable','PERMISSION_DENIED','startsWith','doc.mutation.rich-text-editing','entityInit$','YUUMI_ASYNCIO_CANCELLED','tag','207355xflTHa','mutations','213988AgsXgP','LICENSE_IMPORT_SIZE_EXCEEDED','_getMergeRange','getRenderById','touchDependencies','ILogService','DependentOn','setInterval','Unknown\x20user','SHEET_VIEWPORT_KEY','restore','uni.network.url-service','RegularPolygon','unitID','BrowserCollaborationSocketService','_memberService','labelPosition','setUndoRedoMutationParamsCache','colorChannel1','stringify','concat','Module','_removeCollabCursors','_refreshCollabCursors','some','extend','_collabCursorController','permission.content','YUUMI_AI_RUN_FAILED','ALREADY_EXISTS','_getAnchorBounding','_saveTaskMap','VIEW_MAIN','SOCKET_FAILED_RETRY','then','generateRandomId','_draw','source','OffLineIcon','_unitStatus','SetWorksheetActivateCommand','save','CONNECTOR_DATA_TOO_LARGE','Warning','roomMembers$','debug','SYNCED','deserializeRangeWithSheet','addEventListener','push','unitId','MOBILE_VERIFY_CODE_MISMATCH','useDependency','InsertRangeMoveDownCommandId','idSuffix','newValue','INVALID_ARGUMENT','resize','call','_sheetSkeletonManagerService','RECT','Failed','_toggleOnline','prototype','handleMoveRange','sheetId','row','_initEvent','getParam','serializeRangeWithSheet','AWAITING','pushState'];_0x5e28=function(){return _0x4ba750;};return _0x5e28();}let ge=class extends a[_0x3d2806(0x2c3)]{constructor(_0xf72bac,_0x583ced,_0x38fa8b){const _0x409639=_0x3d2806;super(),h(this,'_cachedData',new Map()),h(this,_0x409639(0x1fe),new Map()),h(this,_0x409639(0x313),!0x1),(this[_0x409639(0x2ea)]=_0xf72bac,this[_0x409639(0x22b)]=_0x583ced,this[_0x409639(0x314)]=_0x38fa8b);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x3d2806(0x81)](){const _0x391efc=_0x3d2806;this[_0x391efc(0x313)]=!0x1;}get['saveTaskMap'](){const _0x3f1564=_0x3d2806;return this[_0x3f1564(0x1fe)];}[_0x3d2806(0xe3)](){const _0x48458c=_0x3d2806;this[_0x48458c(0xc2)]()[_0x48458c(0x201)](()=>super[_0x48458c(0xe3)]());}async[_0x3d2806(0x167)](_0x25462e){const _0xa272df=_0x3d2806;return this[_0xa272df(0x313)]?null:this['_localStorageService']['getItem'](u[_0xa272df(0x229)](_0x25462e));}async[_0x3d2806(0x2c1)](_0x5a0e0d,_0x25fa3b){const _0x277b52=_0x3d2806;return!!this['_localStorageService'][_0x277b52(0x1a2)](_0x5a0e0d,_0x25fa3b);}['updateOfflineData'](_0x460d3d,_0x2995fa,_0x25baa9,_0x76990e){const _0x3d52f3=_0x3d2806,_0x23bd60=this[_0x3d52f3(0x314)][_0x3d52f3(0xcf)](_0x460d3d);this[_0x3d52f3(0x90)][_0x3d52f3(0x8a)](_0x460d3d,{'unitID':_0x460d3d,'type':_0x2995fa,'awaitingChangeset':_0x25baa9,'mutations':_0x76990e,'rev':_0x23bd60}),this[_0x3d52f3(0x1fe)][_0x3d52f3(0x2c2)](_0x460d3d)||this[_0x3d52f3(0x131)](_0x460d3d);}[_0x3d2806(0x131)](_0x1f88d1){const _0x37d403=_0x3d2806,_0x318d32=this[_0x37d403(0x2d9)]();_0x318d32===0x0?this['_saveCache'](_0x1f88d1):this[_0x37d403(0x1fe)]['set'](_0x1f88d1,setTimeout(()=>this[_0x37d403(0x307)](_0x1f88d1),_0x318d32));}[_0x3d2806(0x2d9)](){const _0x226beb=_0x3d2806;var _0x4cdb9d;return(_0x4cdb9d=this['_configService'][_0x226beb(0x1b2)](u[_0x226beb(0x28e)]))!=null?_0x4cdb9d:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x3305a4){const _0x381176=_0x3d2806,_0xce7141=this[_0x381176(0x1fe)]['get'](_0x3305a4);return _0xce7141!==void 0x0&&window[_0x381176(0x2c0)](_0xce7141),this[_0x381176(0x22b)]['setItem'](u[_0x381176(0x229)](_0x3305a4),this[_0x381176(0x90)][_0x381176(0x107)](_0x3305a4))[_0x381176(0x201)](()=>this[_0x381176(0x1fe)][_0x381176(0x2f8)](_0x3305a4));}async[_0x3d2806(0xc2)](){const _0x536552=_0x3d2806,_0x40c07e=[];this['_saveTaskMap'][_0x536552(0x246)]((_0x52eeab,_0x3cfe7c)=>{const _0x45d700=_0x536552;window['clearTimeout'](_0x52eeab),_0x40c07e[_0x45d700(0x210)](this[_0x45d700(0x307)](_0x3cfe7c)['then'](()=>{const _0x77a350=_0x45d700;this[_0x77a350(0x1fe)][_0x77a350(0x2f8)](_0x3cfe7c);}));}),await Promise[_0x536552(0x27c)](_0x40c07e);}};ge=Kt([_e(0x0,a[_0x3d2806(0x154)]),_e(0x1,a[_0x3d2806(0x115)]),_e(0x2,a['Inject'](m['RevisionService']))],ge);class Be extends a['RxDisposable']{constructor(){const _0x59d2c2=_0x3d2806;super(),h(this,_0x59d2c2(0x2b5)),this[_0x59d2c2(0x2b5)]=d['fromEvent'](window,_0x59d2c2(0x85))[_0x59d2c2(0x2c6)](d[_0x59d2c2(0x189)](this['dispose$']),d[_0x59d2c2(0x1c7)](0x1),d[_0x59d2c2(0x17c)](void 0x0));}[_0x3d2806(0x2e3)](_0x253d93,_0x3adbaa,_0x3eead7=!0x1){const _0x346321=_0x3d2806,_0x54214e=new URL(window[_0x346321(0x177)][_0x346321(0x92)]);_0x54214e['searchParams'][_0x346321(0x8a)](_0x253d93,_0x3adbaa),_0x3eead7?window[_0x346321(0x2e6)]['replaceState']('','',_0x54214e[_0x346321(0x302)]()):window['history'][_0x346321(0x226)]('','',_0x54214e[_0x346321(0x302)]());}[_0x3d2806(0x23b)](_0x2bc616,_0x442b55=!0x1){const _0x1f2567=_0x3d2806,_0x5e75e3=new URL(window[_0x1f2567(0x177)][_0x1f2567(0x92)]);_0x5e75e3[_0x1f2567(0xc5)]['delete'](_0x2bc616),_0x442b55?window[_0x1f2567(0x2e6)][_0x1f2567(0xce)]('','',_0x5e75e3['toString']()):window[_0x1f2567(0x2e6)][_0x1f2567(0x226)]('','',_0x5e75e3[_0x1f2567(0x302)]());}[_0x3d2806(0x223)](_0x5439ed){const _0x32e286=_0x3d2806;var _0x12c225;return(_0x12c225=new URL(window[_0x32e286(0x177)][_0x32e286(0x92)])[_0x32e286(0xc5)][_0x32e286(0x107)](_0x5439ed))!=null?_0x12c225:void 0x0;}}var qt=Object[_0x3d2806(0x27d)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x411e52,_0x2fc15a,_0x3b1dd9)=>_0x2fc15a in _0x411e52?qt(_0x411e52,_0x2fc15a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1dd9}):_0x411e52[_0x2fc15a]=_0x3b1dd9,Zt=(_0x22714c,_0x269c96,_0x294680,_0x8f5837)=>{const _0x2ba465=_0x3d2806;for(var _0xfb6ee3=_0x8f5837>0x1?void 0x0:_0x8f5837?zt(_0x269c96,_0x294680):_0x269c96,_0x16f6da=_0x22714c[_0x2ba465(0x83)]-0x1,_0x4a4195;_0x16f6da>=0x0;_0x16f6da--)(_0x4a4195=_0x22714c[_0x16f6da])&&(_0xfb6ee3=_0x4a4195(_0xfb6ee3)||_0xfb6ee3);return _0xfb6ee3;},he=(_0x1a61bf,_0xd6a403)=>(_0x3dc521,_0x51df35)=>_0xd6a403(_0x3dc521,_0x51df35,_0x1a61bf),Qt=(_0x4dd9b7,_0x302488,_0x5008ec)=>Jt(_0x4dd9b7,_0x302488+'',_0x5008ec);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x3d2806(0x245)]=class extends a['Plugin']{constructor(_0x47b7dd=Ue,_0x37b035,_0x190ba3,_0x25a931){const _0x23a7ba=_0x3d2806;super(),this[_0x23a7ba(0x191)]=_0x47b7dd,this['_renderManagerService']=_0x37b035,this[_0x23a7ba(0x193)]=_0x190ba3,this[_0x23a7ba(0x2ea)]=_0x25a931;const {..._0x3faace}=a['merge']({},Ue,this[_0x23a7ba(0x191)]);this['_configService'][_0x23a7ba(0x234)]($t,_0x3faace);}[_0x3d2806(0x108)](){const _0x513ba3=_0x3d2806;this[_0x513ba3(0x227)](),this[_0x513ba3(0x294)]();}[_0x3d2806(0xdb)](){const _0x53f8d6=_0x3d2806;this[_0x53f8d6(0xc0)]();}[_0x3d2806(0x227)](){const _0x365913=_0x3d2806;var _0xe8da0b;const _0x1a4292=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x365913(0x2a7)],{'useClass':G['WebSocketService']}],[u[_0x365913(0x239)],{'useClass':ge}],[exports[_0x365913(0x2e8)]],[Q],[q],[x],[de],[exports[_0x365913(0x305)]]];a['registerDependencies'](this['_injector'],a[_0x365913(0x138)](_0x1a4292,(_0xe8da0b=this['_config'])==null?void 0x0:_0xe8da0b[_0x365913(0x2a8)]));}[_0x3d2806(0xc0)](){const _0x11b8b7=_0x3d2806;this[_0x11b8b7(0x94)](this[_0x11b8b7(0x1c4)][_0x11b8b7(0x28a)](a[_0x11b8b7(0x100)]['UNIVER_DOC'],[fe])),this[_0x11b8b7(0x94)](this[_0x11b8b7(0x1c4)][_0x11b8b7(0x28a)](a[_0x11b8b7(0x100)][_0x11b8b7(0xd2)],[ve]));}[_0x3d2806(0x294)](){const _0x3dce5b=_0x3d2806;a[_0x3dce5b(0x1e3)](this[_0x3dce5b(0x193)],[[x],[exports[_0x3dce5b(0x2e8)]],[Q],[q],[exports[_0x3dce5b(0x305)]]]);}},Qt(exports[_0x3d2806(0x245)],_0x3d2806(0x133),es),exports[_0x3d2806(0x245)]=Zt([a[_0x3d2806(0x1e5)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x3d2806(0x2bf)]),he(0x2,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),he(0x3,a['IConfigService'])],exports[_0x3d2806(0x245)]);var ts=Object[_0x3d2806(0x19f)],ss=(_0x4bf294,_0x5cf097,_0x3cbd71,_0x499079)=>{const _0xb73927=_0x3d2806;for(var _0x4cf027=_0x499079>0x1?void 0x0:_0x499079?ts(_0x5cf097,_0x3cbd71):_0x5cf097,_0x6b0ad6=_0x4bf294[_0xb73927(0x83)]-0x1,_0x1c171f;_0x6b0ad6>=0x0;_0x6b0ad6--)(_0x1c171f=_0x4bf294[_0x6b0ad6])&&(_0x4cf027=_0x1c171f(_0x4cf027)||_0x4cf027);return _0x4cf027;},H=(_0x2073c0,_0x535fd0)=>(_0x3c083f,_0x28d197)=>_0x535fd0(_0x3c083f,_0x28d197,_0x2073c0);exports[_0x3d2806(0x1ed)]=class extends u[_0x3d2806(0xff)]{constructor(_0x5259c9,_0x49617f,_0x863cb5,_0x27cf74,_0x260bbe){super(_0x5259c9,_0x49617f,_0x863cb5,_0x27cf74,_0x260bbe);}async[_0x3d2806(0x11e)](_0x2795d1){const _0x2f78fe=_0x3d2806,_0x346642=await this[_0x2f78fe(0x8d)](),_0xaafa90=this[_0x2f78fe(0x9e)](_0x2795d1,_0x346642);return this[_0x2f78fe(0x25a)](_0xaafa90);}[_0x3d2806(0x9e)](_0x527e3f,_0x26dc8a){const _0x5f1ac0=_0x3d2806,_0x4a31b6=typeof window>'u'?new URL(_0x527e3f):new URL(_0x527e3f,window[_0x5f1ac0(0x177)][_0x5f1ac0(0xdd)]);_0x4a31b6[_0x5f1ac0(0xc5)]['set'](_0x5f1ac0(0x263),_0x26dc8a);const _0x53bc51=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5f1ac0(0x177)][_0x5f1ac0(0x1ab)]);return _0x53bc51[_0x5f1ac0(0x107)]('runId')&&_0x4a31b6[_0x5f1ac0(0xc5)][_0x5f1ac0(0x8a)](_0x5f1ac0(0x283),_0x53bc51[_0x5f1ac0(0x107)](_0x5f1ac0(0x283))),_0x4a31b6['toString']();}async[_0x3d2806(0x8d)](){const _0x5ee533=_0x3d2806;var _0x5edfeb,_0x1b07d7,_0x571235;const _0x396fc6=this[_0x5ee533(0x2ea)][_0x5ee533(0x1b2)](u[_0x5ee533(0xd4)]),_0x5e73ce=(_0x5edfeb=_0x396fc6==null?void 0x0:_0x396fc6['wsSessionTicketUrl'])!=null?_0x5edfeb:u[_0x5ee533(0x165)];return(_0x571235=(_0x1b07d7=(await this[_0x5ee533(0xe9)]['get'](_0x5e73ce,{'headers':{'Content-Type':_0x5ee533(0x2b1)}}))[_0x5ee533(0xf4)])==null?void 0x0:_0x1b07d7[_0x5ee533(0xcd)])!=null?_0x571235:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),H(0x1,a[_0x3d2806(0xb9)](G[_0x3d2806(0x2c4)])),H(0x2,a[_0x3d2806(0x154)]),H(0x3,a[_0x3d2806(0x1e4)]),H(0x4,m[_0x3d2806(0xc1)])],exports[_0x3d2806(0x1ed)]);const Me=0x7530,Le=_0x3d2806(0x160);class is extends a[_0x3d2806(0x2c3)]{constructor(){const _0x5cfc5f=_0x3d2806;super(),h(this,_0x5cfc5f(0x2bd),a[_0x5cfc5f(0x202)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x5cfc5f(0x93),new Map()),h(this,_0x5cfc5f(0x2ad),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this['_init']();}[_0x3d2806(0xe3)](){const _0x3ccc1f=_0x3d2806;super[_0x3ccc1f(0xe3)](),this[_0x3ccc1f(0x1d0)][_0x3ccc1f(0x246)]((_0x16cb3f,_0x399a5d)=>this[_0x3ccc1f(0x306)](_0x399a5d)),this[_0x3ccc1f(0x2ad)]&&window[_0x3ccc1f(0x18d)](this[_0x3ccc1f(0x2ad)]);}[_0x3d2806(0x298)](_0x2b4cbc){const _0xb3b5a=_0x3d2806;return this[_0xb3b5a(0x28f)](_0x2b4cbc)['pipe'](d[_0xb3b5a(0x22d)]());}[_0x3d2806(0xfc)](_0x160c00){const _0x5b5e0d=_0x3d2806;this[_0x5b5e0d(0x310)][_0x5b5e0d(0xb1)]===0x0&&this[_0x5b5e0d(0x2aa)](),this[_0x5b5e0d(0x310)][_0x5b5e0d(0x256)](_0x160c00),this[_0x5b5e0d(0x2e5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x160c00],'isForwarded':!0x1});}[_0x3d2806(0x23a)](_0x479771){const _0x33a08f=_0x3d2806;this[_0x33a08f(0x310)]['delete'](_0x479771),this[_0x33a08f(0x310)][_0x33a08f(0xb1)]===0x0&&this['_heartbeatTimer']&&window[_0x33a08f(0x18d)](this[_0x33a08f(0x2ad)]);}[_0x3d2806(0x1ad)](){const _0x2f85d7=_0x3d2806;this[_0x2f85d7(0x94)](a['toDisposable'](d[_0x2f85d7(0x12d)](window,'storage')[_0x2f85d7(0x124)](_0x5da3a7=>{const _0x2decbb=_0x2f85d7;if(_0x5da3a7[_0x2decbb(0x238)]!==Le||!_0x5da3a7[_0x2decbb(0x216)])return;const _0x447e93=JSON[_0x2decbb(0x269)](_0x5da3a7[_0x2decbb(0x216)]);this[_0x2decbb(0x10a)](_0x447e93);}))),window[_0x2f85d7(0x20f)]('unload',()=>this[_0x2f85d7(0x2e5)]({'type':0x1,'memberID':this[_0x2f85d7(0x2bd)],'unitIDs':Array[_0x2f85d7(0x292)](this[_0x2f85d7(0x310)])}));}['_handleEvent'](_0xaf24b2){const _0x8fd010=_0x3d2806;switch(_0xaf24b2[_0x8fd010(0x95)]){case 0x0:this[_0x8fd010(0x22e)](_0xaf24b2);break;case 0x1:this['_handleLeaveEvent'](_0xaf24b2);break;case 0x2:this[_0x8fd010(0x2db)](_0xaf24b2);break;}}[_0x3d2806(0x22e)](_0x3761af){const _0x2369ed=_0x3d2806,{unitIDs:_0x3f03db,memberID:_0x1d0931,isForwarded:_0x540323}=_0x3761af;_0x3f03db[_0x2369ed(0x246)](_0x10453a=>{const _0x21378a=_0x2369ed;if(!_0x540323&&this['_unitOnClients']['has'](_0x10453a)&&this[_0x21378a(0x28f)](_0x10453a)[_0x21378a(0x1bf)](u[_0x21378a(0x30a)][_0x21378a(0x27f)]),!this[_0x21378a(0x93)][_0x21378a(0x2c2)](_0x10453a)||!this[_0x21378a(0x93)][_0x21378a(0x107)](_0x10453a)[_0x21378a(0x2c2)](_0x1d0931)){const _0x22b06a=this[_0x21378a(0x93)][_0x21378a(0x107)](_0x10453a)||new Set();_0x22b06a[_0x21378a(0x256)](_0x1d0931),this[_0x21378a(0x93)][_0x21378a(0x8a)](_0x10453a,_0x22b06a),this[_0x21378a(0x116)](_0x1d0931);}}),_0x540323||this[_0x2369ed(0x2e5)]({'type':0x0,'memberID':this[_0x2369ed(0x2bd)],'unitIDs':[...this[_0x2369ed(0x310)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x317cee){const _0x3cf2a2=_0x3d2806;this[_0x3cf2a2(0x306)](_0x317cee);const _0x20cf38=window[_0x3cf2a2(0x126)](()=>{const _0x57a74b=_0x3cf2a2;this[_0x57a74b(0x93)]['forEach'](_0x459953=>{const _0x56a7a9=_0x57a74b;_0x459953[_0x56a7a9(0x2f8)](_0x317cee);});},Me*0x2);this['_clearOtherTimers'][_0x3cf2a2(0x8a)](_0x317cee,_0x20cf38);}[_0x3d2806(0x306)](_0x4973e1){const _0x14c605=_0x3d2806;if(this['_clearOtherTimers'][_0x14c605(0x2c2)](_0x4973e1)){const _0x2fea5c=this[_0x14c605(0x1d0)][_0x14c605(0x107)](_0x4973e1);_0x2fea5c&&window[_0x14c605(0x2c0)](_0x2fea5c),this[_0x14c605(0x1d0)][_0x14c605(0x8a)](_0x4973e1,null);}}[_0x3d2806(0xa0)](_0x3e6eb2){const _0x444bb2=_0x3d2806,{memberID:_0x4f0109,unitIDs:_0x1d2e29}=_0x3e6eb2;_0x1d2e29[_0x444bb2(0x246)](_0x4b31e3=>{const _0x2d635b=_0x444bb2;var _0x254f8f;const _0x3186f7=this['_unitOnClients']['get'](_0x4b31e3);_0x3186f7&&(_0x3186f7[_0x2d635b(0x2f8)](_0x4f0109),(_0x254f8f=this['_ensureSubject'](_0x4b31e3))==null||_0x254f8f['next'](_0x3186f7[_0x2d635b(0xb1)]===0x0?u[_0x2d635b(0x30a)][_0x2d635b(0x1c8)]:u[_0x2d635b(0x30a)][_0x2d635b(0x27f)]));}),this[_0x444bb2(0x306)](_0x4f0109);}['_handleHeartbeatEvent'](_0x345b94){const _0x4356a7=_0x3d2806;this[_0x4356a7(0x116)](_0x345b94[_0x4356a7(0x10e)]);}['_send'](_0x2fd789){const _0x5d90e1=_0x3d2806;localStorage[_0x5d90e1(0x1a2)](Le,JSON[_0x5d90e1(0x1f2)](_0x2fd789));}[_0x3d2806(0x2aa)](){const _0x443dc4=_0x3d2806;this[_0x443dc4(0x2ad)]=window[_0x443dc4(0x1e6)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Me);}[_0x3d2806(0x28f)](_0x415047){const _0x104cbe=_0x3d2806;return this[_0x104cbe(0x206)]['has'](_0x415047)||this[_0x104cbe(0x206)]['set'](_0x415047,new d[(_0x104cbe(0xec))](u[_0x104cbe(0x30a)][_0x104cbe(0x1c8)])),this[_0x104cbe(0x206)]['get'](_0x415047);}}var je=(_0x5bde05=>(_0x5bde05[_0x5bde05[_0x3d2806(0x288)]=0x0]='UNDEFINED',_0x5bde05[_0x5bde05['OK']=0x1]='OK',_0x5bde05[_0x5bde05[_0x3d2806(0x2b4)]=0x2]=_0x3d2806(0x2b4),_0x5bde05[_0x5bde05['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x5bde05[_0x5bde05[_0x3d2806(0x2a9)]=0x4]=_0x3d2806(0x2a9),_0x5bde05[_0x5bde05[_0x3d2806(0x18a)]=0x5]=_0x3d2806(0x18a),_0x5bde05[_0x5bde05[_0x3d2806(0x1fc)]=0x6]=_0x3d2806(0x1fc),_0x5bde05[_0x5bde05[_0x3d2806(0x217)]=0x7]=_0x3d2806(0x217),_0x5bde05[_0x5bde05[_0x3d2806(0x2a1)]=0x8]=_0x3d2806(0x2a1),_0x5bde05[_0x5bde05[_0x3d2806(0x1a3)]=0x9]=_0x3d2806(0x1a3),_0x5bde05[_0x5bde05[_0x3d2806(0x13e)]=0xa]=_0x3d2806(0x13e),_0x5bde05[_0x5bde05[_0x3d2806(0x212)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x5bde05[_0x5bde05[_0x3d2806(0xc6)]=0xc]=_0x3d2806(0xc6),_0x5bde05[_0x5bde05[_0x3d2806(0x2d2)]=0xd]=_0x3d2806(0x2d2),_0x5bde05[_0x5bde05[_0x3d2806(0x308)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5bde05[_0x5bde05[_0x3d2806(0x249)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5bde05[_0x5bde05[_0x3d2806(0x2d3)]=0x1771]=_0x3d2806(0x2d3),_0x5bde05[_0x5bde05[_0x3d2806(0x261)]=0x1772]=_0x3d2806(0x261),_0x5bde05[_0x5bde05[_0x3d2806(0x9f)]=0x1773]=_0x3d2806(0x9f),_0x5bde05[_0x5bde05[_0x3d2806(0x2a2)]=0x1b59]=_0x3d2806(0x2a2),_0x5bde05[_0x5bde05[_0x3d2806(0x236)]=0x1b5a]=_0x3d2806(0x236),_0x5bde05[_0x5bde05[_0x3d2806(0x23c)]=0x1b5b]=_0x3d2806(0x23c),_0x5bde05[_0x5bde05[_0x3d2806(0x268)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5bde05[_0x5bde05[_0x3d2806(0x186)]=0x1b5d]=_0x3d2806(0x186),_0x5bde05[_0x5bde05['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3d2806(0x209),_0x5bde05[_0x5bde05[_0x3d2806(0x15c)]=0x2329]=_0x3d2806(0x15c),_0x5bde05[_0x5bde05['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x3d2806(0x2fa),_0x5bde05[_0x5bde05[_0x3d2806(0x1e0)]=0x232b]=_0x3d2806(0x1e0),_0x5bde05[_0x5bde05[_0x3d2806(0x2f5)]=0x232c]=_0x3d2806(0x2f5),_0x5bde05[_0x5bde05[_0x3d2806(0xa1)]=0x232d]=_0x3d2806(0xa1),_0x5bde05[_0x5bde05[_0x3d2806(0x295)]=0x2711]=_0x3d2806(0x295),_0x5bde05[_0x5bde05[_0x3d2806(0x25d)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5bde05[_0x5bde05['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3d2806(0xae),_0x5bde05[_0x5bde05[_0x3d2806(0x166)]=0x2714]=_0x3d2806(0x166),_0x5bde05[_0x5bde05['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x3d2806(0x1cf),_0x5bde05[_0x5bde05[_0x3d2806(0x1db)]=0x271b]=_0x3d2806(0x1db),_0x5bde05[_0x5bde05[_0x3d2806(0x240)]=0x271c]=_0x3d2806(0x240),_0x5bde05[_0x5bde05[_0x3d2806(0x14e)]=0x271d]=_0x3d2806(0x14e),_0x5bde05[_0x5bde05[_0x3d2806(0x290)]=0x271e]=_0x3d2806(0x290),_0x5bde05[_0x5bde05[_0x3d2806(0x1fb)]=0x271f]=_0x3d2806(0x1fb),_0x5bde05[_0x5bde05[_0x3d2806(0x2d5)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x5bde05[_0x5bde05['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x5bde05[_0x5bde05['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3d2806(0xc4),_0x5bde05[_0x5bde05['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x5bde05[_0x5bde05[_0x3d2806(0xe1)]=0x2ee3]=_0x3d2806(0xe1),_0x5bde05[_0x5bde05[_0x3d2806(0xaf)]=0x2ee4]=_0x3d2806(0xaf),_0x5bde05[_0x5bde05[_0x3d2806(0x2da)]=0x2ee5]=_0x3d2806(0x2da),_0x5bde05[_0x5bde05['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x3d2806(0xef),_0x5bde05[_0x5bde05[_0x3d2806(0x161)]=0x32ca]=_0x3d2806(0x161),_0x5bde05[_0x5bde05['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3d2806(0x195),_0x5bde05[_0x5bde05[_0x3d2806(0xb6)]=-0x1]=_0x3d2806(0xb6),_0x5bde05))(je||{}),ns=Object[_0x3d2806(0x19f)],rs=(_0x3f2595,_0x2f923a,_0x325f9e,_0x278a0e)=>{const _0x23b7f2=_0x3d2806;for(var _0x372d1b=_0x278a0e>0x1?void 0x0:_0x278a0e?ns(_0x2f923a,_0x325f9e):_0x2f923a,_0x3a538f=_0x3f2595[_0x23b7f2(0x83)]-0x1,_0x2c5315;_0x3a538f>=0x0;_0x3a538f--)(_0x2c5315=_0x3f2595[_0x3a538f])&&(_0x372d1b=_0x2c5315(_0x372d1b)||_0x372d1b);return _0x372d1b;},ue=(_0x53d11c,_0x52cf76)=>(_0x29c1dc,_0x2c998a)=>_0x52cf76(_0x29c1dc,_0x2c998a,_0x53d11c);exports[_0x3d2806(0x128)]=class extends a[_0x3d2806(0x2c3)]{constructor(_0x1081a5,_0x2a0022,_0x2e1b31){const _0x429323=_0x3d2806;super(),this[_0x429323(0x26d)]=_0x1081a5,this['_httpService']=_0x2a0022,this['_configService']=_0x2e1b31;}async[_0x3d2806(0x272)](_0xbc0464,_0x2d4cb0,_0x5e0fe2,..._0xc02ec5){const _0x14dc11=_0x3d2806;var _0x5c9b2e,_0x559f69,_0x28cacf,_0x2329c6;const _0x4be6a9=this[_0x14dc11(0x26d)][_0x14dc11(0x136)]();if(!_0x4be6a9)throw new Error(_0x14dc11(0x25e));const _0x548761=((_0x5c9b2e=this[_0x14dc11(0x2ea)][_0x14dc11(0x1b2)](u[_0x14dc11(0xa6)]))!=null?_0x5c9b2e:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0xbc0464+_0x14dc11(0xca)+_0x2d4cb0,_0x5c8a8a=new URL(window[_0x14dc11(0x177)]['href']),_0x225963={'scriptId':_0xbc0464,'runId':(_0x559f69=_0x5c8a8a[_0x14dc11(0xc5)][_0x14dc11(0x107)](_0x14dc11(0x283)))!=null?_0x559f69:'','function':_0x2d4cb0,'unitId':_0x4be6a9[_0x14dc11(0x1ba)](),'argsOfFunction':JSON[_0x14dc11(0x1f2)](_0xc02ec5),'invokeId':(_0x28cacf=_0x5e0fe2[_0x14dc11(0x282)])!=null?_0x28cacf:'','executionId':(_0x2329c6=_0x5e0fe2[_0x14dc11(0x198)])!=null?_0x2329c6:''};try{const _0x4c16cc=await this[_0x14dc11(0xe9)]['post'](_0x548761,{'body':_0x225963});return _0x4c16cc[_0x14dc11(0xf4)][_0x14dc11(0x197)]&&_0x4c16cc['body']['error'][_0x14dc11(0x188)]!==je['OK']?_0x14dc11(0x21c):_0x4c16cc[_0x14dc11(0xf4)][_0x14dc11(0xa5)];}catch{return _0x14dc11(0x21c);}}},exports[_0x3d2806(0x128)]=rs([ue(0x0,a[_0x3d2806(0x15b)]),ue(0x1,a[_0x3d2806(0xb9)](G[_0x3d2806(0x2c4)])),ue(0x2,a[_0x3d2806(0x154)])],exports[_0x3d2806(0x128)]),exports[_0x3d2806(0x9d)]=xe,exports[_0x3d2806(0x10b)]=Ee,exports[_0x3d2806(0x11b)]=we,exports[_0x3d2806(0x163)]=is,exports[_0x3d2806(0x2f4)]=Be;
1
+ 'use strict';const _0x37d759=_0x5944;(function(_0x1a88ac,_0x3173ef){const _0x3020c4=_0x5944,_0x4fccdc=_0x1a88ac();while(!![]){try{const _0x3da9a2=-parseInt(_0x3020c4(0x1e9))/0x1+parseInt(_0x3020c4(0x241))/0x2+parseInt(_0x3020c4(0x1ac))/0x3*(-parseInt(_0x3020c4(0x192))/0x4)+-parseInt(_0x3020c4(0x206))/0x5*(parseInt(_0x3020c4(0x101))/0x6)+-parseInt(_0x3020c4(0x29a))/0x7+-parseInt(_0x3020c4(0x208))/0x8*(-parseInt(_0x3020c4(0x2bf))/0x9)+parseInt(_0x3020c4(0x2e7))/0xa;if(_0x3da9a2===_0x3173ef)break;else _0x4fccdc['push'](_0x4fccdc['shift']());}catch(_0x575be6){_0x4fccdc['push'](_0x4fccdc['shift']());}}}(_0x83c2,0x6ea23));function _0x83c2(){const _0x1424f1=['univer-mr-2\x20univer-flex\x20univer-text-xl','_sheetSkeletonManagerService','_imageIoService','_textBubble','DocSelectionManagerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','colorChannel1','addClipboardHook','_colorIndex','_ensureSubject','LocaleService','ITransformService','_getSaveTimeout','filter','NO_OTHER_CLIENTS_EDITING','univerjs-icon\x20univerjs-icon-','LICENSE_IMPORT_SIZE_EXCEEDED','getActiveRange','asObservable','fill','SUBMIT_CHANGESET_TIMEOUT','LOCAL_CACHE_INTERVAL_KEY','YUUMI_URL_COL_OUT_OF_RANGE','trim','APPLY_NON_SEQUENTIAL_REVISION','children','clearInterval','replaceState','_revisionService','getLocalCacheKey','_anchorDot','invokeId','_removeCollabCursors','Tools','onTransformChange$','collab-rect-range-','off-line-icon','_session','_shapes','InsertColCommandId','getStateCache','toStringTag','_labelPosition','takeUntil','getParam','UNRECOGNIZED','setConfig','USER_NOT_INVITED_CODE','YUUMI_SUBSCRIPTION_NOT_FOUND','_docTransformSelectionsService','DependentOn','syncEditingCollabCursor','roomMembers$','TEXT_RANGE_LAYER_INDEX','_initCommandExecutedListener','SheetCollabCursorShape','_transformPreviousActiveRange','_status$','add','forEach','useObservable','on-line-icon_clip0_910_349','onPointerMove$','unitID','CollaborationUIEventService','href','PENDING','contains','getMemberID','params','_assignedColors','SOCKET_FAILED','PERMISSION_DENIED','map','lineTo','_localeService','collaboration.single-unit.warning','_uiPartsService','LOCAL_CACHE_INTERVAL','PY_RUNTIME_SCRIPT_ERROR','_injector','getItem','purple.300','IRenderManagerService','_univerInstanceService','getColorFromTheme','endRow','activeSheet$','RevisionService','_collabCursorState$','216124xXNULv','useCallback','Module','INVITE_CODE_ALREADY_BOUND','textRanges','_scheduleHeartbeat','getFocusedUnit','WebBrowserSingleActiveUnitService','getDocRanges','NodePositionConvertToCursor','DocStateChangeManagerService','collabStatus.notCollab','icon','_disabled','_collaborationController','debounceTime','_eventUnsubscribe','getRangePointData','delete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','prototype','restore','EffectRefRangId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_cursors','getSheetBySheetId','12NNNlIW','getTypeOfUnitAdded$','YUUMI_AI_RUN_FAILED','_notificationService','fillStyle','COMPLETION_FINISHED','currentSkeleton$','DataLoaderService','YUUMI_RATE_OVER_LIMIT','SNAPSHOT_INVALID_SNAPSHOT','m2Prime','Rectangle','setInterval','DeleteRangeMoveLeftCommandId','_docSyncEditingCollabCursorService','size','#FFF','length','_updateLocalCursor','collaboration.closeRoom','AWAITING','eventID','_clearOtherTimers','TEXT','loadUnit','_startDocCollabCursor','IBeforeCloseService','column','white','_color','executeCommand','ICommandService','_logService','assignAColorForMemberID','off-line-icon_clip0_910_343','[RemoteUniscriptService]:\x20no\x20focused\x20unit','currentTheme$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','VIEW_MAIN','_id','RxDisposable','YUUMI_TABLE_NOT_FOUND_IN_UNIT','isTransformMutationsWithChangesetSuccess','result','CollaborationSessionService','whenReady','SetWorksheetActivateCommand','extend','DeleteRangeMoveUpCommandId','translate(.97)','_hovered','_initStatusListener','ENSURE_SNAPSHOT_EXECUTION','_urlService','IMessageService','substring','actions','RECT','url(#on-line-icon_clip0_910_349)','collabCursorState$','subscribeEvent','838275ecCbMd','onRendered','CONNECTOR_DATA_TOO_LARGE','fromEvent','fillText','_config','addObjects','RefRangeService','url(#$1','UnitStatus','_roomMembers$','values','_instanceService','SessionStatus','WECHAT_HAS_BEEN_BOUND','runOnServer','_saveCache','_lastPointer','unitId','_entityInit$','_context','parse','setUndoRedoMutationParamsCache','requireSession','IUIPartsService','onPointerEnter$','sessionStatus$','getUnitId','call','1948345vxheFU','min','2656WwJnOC','replace','NodePositionConvertToRectRange','executionId','Workbook','DesktopCollaborationStatusDisplayController','loadOfflineData','transformSelections','_transformService','some','collaboration-client-ui.config','BehaviorSubject','bottom','clearTimeout','random','DisposableCollection','doc.mutation.rich-text-editing','_initEvent','INVALID_INVITE_CODE','round','pushState','handleIRemoveRow','handleMoveRange','OFFLINE','_name','_docStateChangeManagerService','permission.title','ILocalCacheService','onPointerLeave$','entityInit$','defIds','_backgroundColor','collaboration-client.offline-data-not-saved','push','handleInsertRow','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_getSessionTicket','CollaborationSocketService','_handleHeartbeatEvent','UNIVER_DOC','_themeService','_startSheetCollabCursor','resize','CHANGESET_REVISION_CONFILICT','indexOf','_hideTimer','addObject','ILogService','color','handleInsertRangeMoveRight','show','labelPosition','registerRenderModule','history','with','_registerRenderDependencies','USERS_LEAVE','211372pPIxlv','concat','_unitOnClients','HTTPService','combineLatest','_handleJoinEvent','CommandType','mutations','MessageType','getSheetId','max','INTERNAL_ERROR','data','hasOwnProperty','moveTo','_configService','popstate','_initDependencies','MemberService','DEFAULT_WS_SESSION_TICKET_URL','urlChange$','setActiveRange','_cursorShapes','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','location','YUUMI_ALL_TABLES_IS_INVALID','fillRule','getConfig','registerComponent','_toggleOnline','RemoteUniscriptService','_docSkeletonManagerService','text','_setupBeforeClosingHandler','get','transformIMECache','init','_transformHistoryAndStateStack','arc','ticket','M0\x200H16V16H0z','_drawAnchor','assign','evenodd','startsWith','touchDependencies','_anchor','permission.content','sheetID','_heartbeatTimer','UNDEFINED','range','override','getCellPositionByOffset','storage','shareReplay','LICENSE_EXPORT_SIZE_EXCEEDED','UniverCollaborationClientUIPlugin','getCurrentRevOfUnit','SHEET_VIEWPORT_KEY','_scene','_localStorageService','getSkeleton','dispose$','ThemeService','removeParam','UPDATE_CURSOR','HEADER_MENU','LICENSE_MAX_UNITS_EXCEEDED','memberID','saveImage','_unitStatus','...','throttleTime','currentColor','session.connection-failed','_removeClearOtherTimer','debounce','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','_createSocketURL','APPLY_PERMISSION_DENIED','IUniverInstanceService','_onCursorDelete','_docTransformStateCacheService','svg','_drawRectRange','http://www.w3.org/2000/svg','_memberService','use','353157yFOlkw','toString','getColor','clipPath','createSocket','COLORS','error','defineProperty','font','transformRemoteChangeset','_entities','body','ColorKit','getActiveSheet','registerDependencies','getValue','IURLService','_send','unit','black','session.will-retry','Injector','INVALID_ARGUMENT','className','isActive','_hover','1em','Failed','0\x200\x2016\x2016','pluginName','reconnect','DocSkeletonManagerService','getOffsetConfig','origin','unshift','find','isArray','21096wpSrSx','INVITE_CODE_HAS_BEEN_UES','_collabSessionService','sheetId','addHandlerCallback','_handleHover','_updateCollabCursors','uni.network.url-service','getMergeData','INVITE_CODE_REQUIRED','isEditing','_commandService','has','m1Prime','SetDocZoomRatioOperation','ALREADY_EXISTS','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','idSuffix','_draw','Shape','YUUMI_CONNECTOR_URL_NOT_FOUND','MUTATION','findNodePositionByCharIndex','OTHER_CLIENT_EDITING','IConfigService','post','registerBeforeClose','_cursorInfo$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','redoState','setItem','runId','flatMap','measureText','useRef','_beforeCloseService','EMAIL_HAS_BEEN_BOUND','width','debug','ranges','14534490UHEWDP','YUUMI_NO_CUBOID_FOR_QUESTION','next','_getScale','none','_refreshCollabCursors','handleDeleteRangeMoveLeft','searchParams','hovered','TOO_MANY_REQUESTS','_range','pipe','Warning','roomMembers','unload','OTHER_CLIENTS_EDITING','InsertRangeMoveDownCommandId','replaceDocRanges','complete','CollaborationEvent','CollaborationDataLoaderController','MoveRangeCommandId','transformStateCache','_initStatusComponent','forwardRef','LICENSE_DISTRO_REJECTED','SheetSkeletonManagerService','Error','_initResize','setAlpha','_getSheetObject','getCurrentUnitForType','function','_docTransformIMECacheService','focused$','dispose','triggerDblclick','SetSelectionsOperation','UniverInstanceType','_getMergeRange','[CollaborationDataLoaderController]','disableLocalCache','_handleEvent','Inject','_render','unsubscribe','attrs','WebSocketService','send','Plugin','toDisposable','Disposable','UniverIcon','hide','_collabCursorController','from','green.600','getCollabCursors$','transform','_handleLeaveEvent','jiqing.500','transformMutation','skeleton','updateOfflineData','APPLY_DUPLICATED','undoState','entries','onLocalMutation','getUniverSheetInstance','RemoveColCommandId','MOBILE_HAS_BEEN_BOUND','ONLINE','jsx','subscribe','_init','RichTextEditingMutation','useDependency','NOT_FOUND','NOT_COLLAB','_setupSubUnitSync','div','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','set','_saveTaskMap','_cursor','ISnapshotServerService','key','yellow.400','FETCH_MISS','collabStatus.conflict','split','_refRangeService','_online','toRgbString','then','handleIRemoveCol','UNAUTHENTICATED','ACTIVE_UNIT_EVENT_CHANNEL','name','createElement','type','getRenderById','_messageService','Rect','save','getAncestorScale','transformMutationsWithChangeset','_onCursorUpdate','YUUMI_ASYNCIO_CANCELLED','handleDeleteRangeMoveUp','cursorInfo','apply','CONFLICT','_docClipboardService','startRow','_httpService','isTransformMutationFailure','height','mask','Vector2','cursorInfo$','UNIVER_SHEET','CollaborationUIEventId','_drawTextRange','CLOSE_ROOM','_registerDependencies','onCommandExecuted','_updateSubUnitFromURLParams','transformByState','merge','drawWith','jsxs','BrowserCollaborationSocketService','_transformUndoRedoStack','top','switchMap','getMember','WebURLService','_toggleOffline','getUndoRedoMutationParamsCache','displayName','disposeWithMe','path','registerRefRange','getCurrentSelections','SYNCED','12kgKymq','JOIN_ROOM_FAILED','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','setTimeout','APPLY_REVISION_CONFILICT','DOC_RANGE_TYPE','collab-text-anchor-','subunit','APPLY_REJECT','setShapeProps','saveOfflineData','collabStatus.offline','defs','_getAnchorBounding','includes','DocIMEInputManagerService','string','UniverCollaborationClientPlugin','_initEntityListener','exhaustSavingTask','RegularPolygon','getTypeOfUnitDisposed$','_scheduleClearOtherTimer','getOwnPropertyDescriptor','row','setParam','OnLineIcon','newValue','deepClone','selection','tag','_renderManagerService','generateRandomId','rgba(255,\x20255,\x20255,\x200.01)','CollaborationStatus','CollaborationController','_cachedData','_selfUnitIDs','_scheduleSaving','subUnitId','_collaborationUIEventService','FromArray','MOBILE_VERIFY_CODE_MISMATCH','Unknown\x20user','xlink:href','saveTaskMap','Optional','createInstance','_updateURLWithCurrentState','_colorAssignService','EMAIL_VERIFY_CODE_MISMATCH','setStateCache','ILocalStorageService','OffLineIcon','DocCollaborationEntity'];_0x83c2=function(){return _0x1424f1;};return _0x83c2();}var Ve=Object[_0x37d759(0x2a1)],Xe=(_0x33365e,_0x568ec1,_0x110164)=>_0x568ec1 in _0x33365e?Ve(_0x33365e,_0x568ec1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x110164}):_0x33365e[_0x568ec1]=_0x110164,h=(_0x5d1ebb,_0x4c5c37,_0x102b3f)=>Xe(_0x5d1ebb,typeof _0x4c5c37!='symbol'?_0x4c5c37+'':_0x4c5c37,_0x102b3f);Object[_0x37d759(0x2a1)](exports,Symbol[_0x37d759(0x161)],{'value':_0x37d759(0x194)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x37d759(0x118)],ze=(_0x2d92ea,_0x2d6620,_0xab7842,_0x2056a2)=>{const _0x45a159=_0x37d759;for(var _0x576dae=_0x2056a2>0x1?void 0x0:_0x2056a2?qe(_0x2d6620,_0xab7842):_0x2d6620,_0x2efe58=_0x2d92ea[_0x45a159(0x1bd)]-0x1,_0xa28978;_0x2efe58>=0x0;_0x2efe58--)(_0xa28978=_0x2d92ea[_0x2efe58])&&(_0x576dae=_0xa28978(_0x576dae)||_0x576dae);return _0x576dae;},Oe=(_0x2a7e50,_0x586505)=>(_0x5cd5db,_0x3d20e5)=>_0x586505(_0x5cd5db,_0x3d20e5,_0x2a7e50);let de=class extends a['RxDisposable']{constructor(_0x255497,_0x42bb3b){const _0xa8ac27=_0x37d759;super(),this[_0xa8ac27(0xe0)]=_0x255497,this[_0xa8ac27(0x13a)]=_0x42bb3b,this[_0xa8ac27(0xb9)]();}[_0x37d759(0xb9)](){const _0x35e5a3=_0x37d759,_0x2331d2=this;this[_0x35e5a3(0xfc)](this[_0x35e5a3(0xe0)][_0x35e5a3(0x13f)]({'onBeforePasteImage':async _0x999a8=>{const _0x2778e5=_0x35e5a3,_0x5de862=await _0x2331d2[_0x2778e5(0x13a)][_0x2778e5(0x287)](_0x999a8);return _0x5de862?{'source':_0x5de862['source'],'imageSourceType':_0x5de862['imageSourceType']}:null;}}));}};function _0x5944(_0x3bec74,_0x809107){const _0x83c2e4=_0x83c2();return _0x5944=function(_0x594475,_0x5ce111){_0x594475=_0x594475-0x7b;let _0x5a5ce2=_0x83c2e4[_0x594475];return _0x5a5ce2;},_0x5944(_0x3bec74,_0x809107);}de=ze([Oe(0x0,E['IDocClipboardService']),Oe(0x1,Ge['IImageIoService'])],de);const Te=[_0x37d759(0x18a),_0x37d759(0xab),_0x37d759(0xa7),'red.300','blue.400',_0x37d759(0xc6)];class me extends a[_0x37d759(0xa2)]{constructor(){const _0x10e6fa=_0x37d759;super(...arguments),h(this,_0x10e6fa(0x17e),new Map()),h(this,_0x10e6fa(0x140),0x0);}[_0x37d759(0x1cd)](_0x3caacc){const _0x1902c8=_0x37d759;if(this[_0x1902c8(0x17e)][_0x1902c8(0x2cb)](_0x3caacc))return this[_0x1902c8(0x17e)][_0x1902c8(0x263)](_0x3caacc);const _0x431a3e=Te[this[_0x1902c8(0x140)]];return this[_0x1902c8(0x140)]=(this[_0x1902c8(0x140)]+0x1)%Te['length'],this[_0x1902c8(0x17e)][_0x1902c8(0xc1)](_0x3caacc,_0x431a3e),_0x431a3e;}}function Pe(_0x3f94a5){let _0x1a1152='';for(const _0xbae142 of _0x3f94a5){const {startOffset:_0x5bf510,endOffset:_0xa69c4f,isActive:_0x4752d0,rangeType:_0x44d1ea,segmentId:_0x30f555,segmentPage:_0x236f70}=_0xbae142;_0x1a1152['length']&&(_0x1a1152+=','),_0x1a1152+=_0x5bf510+':'+_0xa69c4f+':'+(_0x4752d0?'1':'0')+':'+_0x44d1ea+':'+_0x30f555+':'+_0x236f70;}return _0x1a1152;}function Je(_0x4e3615){const _0x4450dc=_0x37d759,_0x33ba15=_0x4e3615[_0x4450dc(0xc9)](','),_0x3327b8=[];for(const _0x1c2b3e of _0x33ba15){const [_0x30a3c3,_0x1b3279,_0x5dae3a,_0x99b6b5,_0x35a6e5,_0x3a599b]=_0x1c2b3e[_0x4450dc(0xc9)](':');_0x3327b8[_0x4450dc(0x229)]({'startOffset':Number(_0x30a3c3),'endOffset':Number(_0x1b3279),'collapsed':_0x30a3c3===_0x1b3279,'isActive':_0x5dae3a==='1','rangeType':_0x99b6b5===a[_0x4450dc(0x106)]['TEXT']?a[_0x4450dc(0x106)][_0x4450dc(0x1c3)]:a[_0x4450dc(0x106)][_0x4450dc(0x1e5)],'segmentId':typeof _0x35a6e5=='string'?String(_0x35a6e5):'','segmentPage':Number(_0x3a599b!=null?_0x3a599b:-0x1)});}return _0x3327b8[_0x4450dc(0x211)](_0x60f30d=>_0x60f30d[_0x4450dc(0x2b2)])||(_0x3327b8[0x0][_0x4450dc(0x2b2)]=!0x0),_0x3327b8;}class Ce extends a[_0x37d759(0x1d4)]{constructor(){const _0x573f09=_0x37d759;super(...arguments),h(this,'_collabCursorState$',new d[(_0x573f09(0x213))](null)),h(this,_0x573f09(0x1e7),this[_0x573f09(0x191)]['asObservable']());}[_0x37d759(0x16b)](_0x5a2107){const _0xddd46f=_0x37d759,{unitID:_0x304971,memberID:_0x5ba92a,textRanges:_0x3cb696}=_0x5a2107,_0x45adda=Pe(_0x3cb696);if(_0x45adda==='')return;const _0x50d364={'unitID':_0x304971,'memberID':_0x5ba92a,'selection':_0x45adda};this[_0xddd46f(0x191)][_0xddd46f(0x2e9)](_0x50d364);}}var Ze=Object[_0x37d759(0x118)],Qe=(_0xdf7132,_0x418ee7,_0x3b3537,_0x5a2b5)=>{const _0x70cc3f=_0x37d759;for(var _0x1b9064=_0x5a2b5>0x1?void 0x0:_0x5a2b5?Ze(_0x418ee7,_0x3b3537):_0x418ee7,_0x3ba310=_0xdf7132[_0x70cc3f(0x1bd)]-0x1,_0x56fe8b;_0x3ba310>=0x0;_0x3ba310--)(_0x56fe8b=_0xdf7132[_0x3ba310])&&(_0x1b9064=_0x56fe8b(_0x1b9064)||_0x1b9064);return _0x1b9064;},L=(_0x9971b,_0x28e21f)=>(_0x3b5d7f,_0x340308)=>_0x28e21f(_0x3b5d7f,_0x340308,_0x9971b);const et=0x12c,tt=0x64;let Ie=class extends a[_0x37d759(0x1d4)]{constructor(_0x2e6c7d,_0xeab8b7,_0x137630,_0x22a9ec,_0x1d31ec,_0x117e28,_0x520da5,_0x36d53e,_0x555098){const _0x389ada=_0x37d759;super(),h(this,_0x389ada(0xcb),!0x1),h(this,_0x389ada(0xb9),!0x1),h(this,'_cursorInfo$',new d[(_0x389ada(0x213))](new Map())),h(this,_0x389ada(0xe7),this[_0x389ada(0x2da)][_0x389ada(0x14a)]()),h(this,_0x389ada(0x1f3),new d[(_0x389ada(0x213))]([])),h(this,'roomMembers$',this[_0x389ada(0x1f3)][_0x389ada(0x2f2)](d['debounceTime'](et))),h(this,'_updateLocalCursor',a[_0x389ada(0x28e)](_0x213fb5=>{const _0x154c5c=_0x389ada,_0x5da2be={'eventID':m[_0x154c5c(0x82)][_0x154c5c(0x283)],'data':{'unitID':this[_0x154c5c(0x177)],'memberID':this['_session']['getMemberID'](),'selection':Pe(_0x213fb5)}};this[_0x154c5c(0x15d)]['send'](_0x5da2be,this['unitID']);},tt)),(this[_0x389ada(0x177)]=_0x2e6c7d,this[_0x389ada(0x15d)]=_0xeab8b7,this[_0x389ada(0x188)]=_0x137630,this[_0x389ada(0x132)]=_0x22a9ec,this[_0x389ada(0x298)]=_0x1d31ec,this['_syncEditingCollabCursorService']=_0x117e28,this[_0x389ada(0x210)]=_0x520da5,this[_0x389ada(0x18c)]=_0x36d53e,this[_0x389ada(0x2ca)]=_0x555098);}get['cursorInfo'](){const _0x33c24d=_0x37d759;return this[_0x33c24d(0x2da)][_0x33c24d(0x2a9)]();}get[_0x37d759(0x7c)](){const _0x4ce2b5=_0x37d759;return this[_0x4ce2b5(0x1f3)]['getValue']();}['dispose'](){const _0x3d36f5=_0x37d759;super[_0x3d36f5(0x92)](),this[_0x3d36f5(0x2da)][_0x3d36f5(0x2e9)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x3d36f5(0x2e9)]([]),this[_0x3d36f5(0x1f3)][_0x3d36f5(0x81)]();}['init'](){const _0x599b1f=_0x37d759;this[_0x599b1f(0xb9)]||(this[_0x599b1f(0xb9)]=!0x0,this['_session']['sessionStatus$'][_0x599b1f(0x2f2)](d['takeUntil'](this[_0x599b1f(0x280)]))[_0x599b1f(0xb8)](_0x5e27de=>{const _0x5697a2=_0x599b1f;_0x5e27de===u[_0x5697a2(0x1f6)]['ONLINE']?this[_0x5697a2(0x25e)]():this[_0x5697a2(0xf9)]();}),this[_0x599b1f(0x15d)]['event$'][_0x599b1f(0x2f2)](d[_0x599b1f(0x163)](this['dispose$']))[_0x599b1f(0xb8)](_0x5bc648=>{const _0xc78f98=_0x599b1f,_0xb1b6f0=_0x5bc648[_0xc78f98(0x1c1)];_0xb1b6f0===m['CollaborationEvent'][_0xc78f98(0x283)]&&this[_0xc78f98(0xda)](_0x5bc648),_0xb1b6f0===m[_0xc78f98(0x82)][_0xc78f98(0x240)]&&this['_onCursorDelete'](_0x5bc648);}),this[_0x599b1f(0xfc)](this[_0x599b1f(0x2ca)]['onCommandExecuted'](_0x471bf8=>{const _0x22c9c3=_0x599b1f,_0x46e7d4=_0x471bf8[_0x22c9c3(0x17d)];_0x46e7d4!=null&&this[_0x22c9c3(0xcb)]&&_0x471bf8['id']===Y['SetTextSelectionsOperation']['id']&&_0x46e7d4[_0x22c9c3(0x1fb)]===this[_0x22c9c3(0x177)]&&_0x46e7d4[_0x22c9c3(0x2c9)]===!0x1&&_0x46e7d4[_0x22c9c3(0x2e6)]['length']>0x0&&this[_0x22c9c3(0x1be)](_0x46e7d4[_0x22c9c3(0x2e6)]);})),this['_syncEditingCollabCursorService'][_0x599b1f(0x1e7)][_0x599b1f(0x2f2)](d[_0x599b1f(0x163)](this[_0x599b1f(0x280)]))[_0x599b1f(0xb8)](_0x5d93db=>{const _0x3be0f4=_0x599b1f;if((_0x5d93db==null?void 0x0:_0x5d93db['unitID'])!==this['unitID'])return;const _0x1e9e21={'eventID':m[_0x3be0f4(0x82)][_0x3be0f4(0x283)],'data':_0x5d93db};this['_onCursorUpdate'](_0x1e9e21);}),this[_0x599b1f(0xfc)](this['_commandService'][_0x599b1f(0xed)](_0xc45735=>{const _0x450083=_0x599b1f;if(_0xc45735[_0x450083(0x17d)]==null)return;const _0x4c169d=_0xc45735[_0x450083(0x17d)];if(_0xc45735['id']!==Y[_0x450083(0xba)]['id']||_0x4c169d[_0x450083(0x1fb)]!==this['unitID'])return;const _0x463f99={'id':_0x450083(0x218),'params':_0x4c169d},_0x20e352=this[_0x450083(0xdd)];for(const [_0x189b87,_0x7f5565]of _0x20e352){const _0x10cc95={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x450083(0x177)],'actions':null,'textRanges':_0x7f5565[_0x450083(0x2e6)]}},_0x2c9c4f=this[_0x450083(0x210)][_0x450083(0xac)](_0x463f99,_0x10cc95,!0x1);if(m[_0x450083(0xe3)](_0x2c9c4f))throw _0x2c9c4f[_0x450083(0x2a0)];_0x20e352['set'](_0x189b87,{..._0x7f5565,'ranges':_0x2c9c4f['m2Prime'][_0x450083(0x17d)]['textRanges']});}queueMicrotask(()=>{const _0x10b6c3=_0x450083;this[_0x10b6c3(0x2da)][_0x10b6c3(0x2e9)](_0x20e352);});})));}['_onCursorUpdate'](_0x5cfcd9){const _0x1e6e69=_0x37d759;var _0x2806f6,_0x54a89b;const {memberID:_0x398c66,selection:_0x49280f}=_0x5cfcd9[_0x1e6e69(0x24d)],_0x5a8c3d=Je(_0x49280f),_0x53278a=(_0x54a89b=(_0x2806f6=this['_memberService'][_0x1e6e69(0xf7)](this[_0x1e6e69(0x177)],_0x398c66))==null?void 0x0:_0x2806f6[_0x1e6e69(0xd1)])!=null?_0x54a89b:_0x1e6e69(0x12c),_0x1ee171={'color':this[_0x1e6e69(0x132)]['assignAColorForMemberID'](_0x398c66),'name':_0x53278a,'ranges':_0x5a8c3d},_0x48dcf4=this[_0x1e6e69(0xdd)];_0x48dcf4[_0x1e6e69(0xc1)](_0x398c66,_0x1ee171),this[_0x1e6e69(0x2da)][_0x1e6e69(0x2e9)](_0x48dcf4);}[_0x37d759(0x293)](_0x11e14b){const _0x3a094f=_0x37d759,{memberID:_0x255231}=_0x11e14b[_0x3a094f(0x24d)],_0x47638f=this[_0x3a094f(0xdd)];_0x47638f['delete'](_0x255231),this[_0x3a094f(0x2da)]['next'](_0x47638f);}[_0x37d759(0x25e)](){const _0x1dd290=_0x37d759;var _0x2d14fb;if(this[_0x1dd290(0xcb)]=!0x0,((_0x2d14fb=this[_0x1dd290(0x18c)][_0x1dd290(0x198)]())==null?void 0x0:_0x2d14fb[_0x1dd290(0x204)]())!==this['unitID'])return;const _0x28b226=this[_0x1dd290(0x188)][_0x1dd290(0x263)](Y[_0x1dd290(0x13c)])[_0x1dd290(0x19a)]();Array[_0x1dd290(0x2be)](_0x28b226)&&_0x28b226['length']>0x0&&this[_0x1dd290(0x1be)](_0x28b226);}['_toggleOffline'](){const _0x1eab3b=_0x37d759;this[_0x1eab3b(0xcb)]=!0x1;}};Ie=Qe([L(0x2,a[_0x37d759(0x9a)](a[_0x37d759(0x2af)])),L(0x3,a[_0x37d759(0x9a)](me)),L(0x4,a[_0x37d759(0x9a)](u[_0x37d759(0x253)])),L(0x5,a[_0x37d759(0x9a)](Ce)),L(0x6,m[_0x37d759(0x143)]),L(0x7,a[_0x37d759(0x292)]),L(0x8,a[_0x37d759(0x1cb)])],Ie);var st=Object['getOwnPropertyDescriptor'],it=(_0xd85214,_0x42ea60,_0x5e0184,_0x5a2d66)=>{const _0x231af1=_0x37d759;for(var _0x34c747=_0x5a2d66>0x1?void 0x0:_0x5a2d66?st(_0x42ea60,_0x5e0184):_0x42ea60,_0x57f67c=_0xd85214[_0x231af1(0x1bd)]-0x1,_0x1b0412;_0x57f67c>=0x0;_0x57f67c--)(_0x1b0412=_0xd85214[_0x57f67c])&&(_0x34c747=_0x1b0412(_0x34c747)||_0x34c747);return _0x34c747;},A=(_0xce466c,_0x4ad312)=>(_0x260675,_0x23cdcf)=>_0x4ad312(_0x260675,_0x23cdcf,_0xce466c);const nt=0x12c,rt=0x64,ot=()=>{let _0x1e5756=[],_0x5b975d=!0x1;return _0x274017=>{const _0x217a50=_0x5944;_0x1e5756[_0x217a50(0x229)](_0x274017),_0x5b975d||(_0x5b975d=!0x0,setTimeout(()=>{const _0x27def2=_0x217a50;_0x1e5756[_0x27def2(0x173)](_0x33b6b1=>_0x33b6b1()),_0x1e5756=[],_0x5b975d=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x21c635,_0x481035,_0x48f89d,_0x26df97,_0x4ac99c,_0x35860d,_0x459614,_0x26ec76){const _0x455a57=_0x37d759;super(),h(this,_0x455a57(0xcb),!0x1),h(this,_0x455a57(0xb9),!0x1),h(this,_0x455a57(0x2da),new d['BehaviorSubject'](new Map())),h(this,_0x455a57(0xe7),this['_cursorInfo$'][_0x455a57(0x14a)]()),h(this,_0x455a57(0x1f3),new d['BehaviorSubject']([])),h(this,_0x455a57(0x16c),this['_roomMembers$'][_0x455a57(0x2f2)](d[_0x455a57(0x1a1)](nt))),h(this,'_updateLocalCursor',a['debounce']((_0x1415e8,_0x40f98a)=>{const _0x1acf20=_0x455a57,_0x29ae23={'eventID':m[_0x1acf20(0x82)][_0x1acf20(0x283)],'data':{'unitID':this[_0x1acf20(0x177)],'memberID':this[_0x1acf20(0x15d)][_0x1acf20(0x17c)](),'selection':be['serializeRangeWithSheet'](_0x1415e8,_0x40f98a[_0x1acf20(0x274)])}};this[_0x1acf20(0x15d)][_0x1acf20(0x9f)](_0x29ae23,this[_0x1acf20(0x177)]);},rt)),(this[_0x455a57(0x177)]=_0x21c635,this[_0x455a57(0x15d)]=_0x481035,this[_0x455a57(0x188)]=_0x48f89d,this[_0x455a57(0x132)]=_0x26df97,this[_0x455a57(0x298)]=_0x4ac99c,this['_univerInstanceService']=_0x35860d,this['_commandService']=_0x459614,this[_0x455a57(0xca)]=_0x26ec76);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x37d759(0x7c)](){const _0x11d8e0=_0x37d759;return this[_0x11d8e0(0x1f3)][_0x11d8e0(0x2a9)]();}[_0x37d759(0x92)](){const _0x27cbba=_0x37d759;super[_0x27cbba(0x92)](),this[_0x27cbba(0x2da)][_0x27cbba(0x2e9)](new Map()),this[_0x27cbba(0x2da)][_0x27cbba(0x81)](),this[_0x27cbba(0x1f3)]['next']([]),this['_roomMembers$'][_0x27cbba(0x81)]();}[_0x37d759(0x265)](){const _0x59c739=_0x37d759;this['_init']||(this[_0x59c739(0xb9)]=!0x0,this[_0x59c739(0x15d)][_0x59c739(0x203)]['pipe'](d[_0x59c739(0x163)](this['dispose$']))[_0x59c739(0xb8)](_0x3a8357=>{const _0x12ea9b=_0x59c739;_0x3a8357===u[_0x12ea9b(0x1f6)][_0x12ea9b(0xb6)]?this['_toggleOnline']():this[_0x12ea9b(0xf9)]();}),this[_0x59c739(0x15d)]['event$']['pipe'](d['takeUntil'](this[_0x59c739(0x280)]))[_0x59c739(0xb8)](_0x1eb521=>{const _0x499879=_0x59c739,_0x55f3a5=_0x1eb521[_0x499879(0x1c1)];_0x55f3a5===m[_0x499879(0x82)][_0x499879(0x283)]&&this[_0x499879(0xda)](_0x1eb521),_0x55f3a5===m[_0x499879(0x82)][_0x499879(0x240)]&&this[_0x499879(0x293)](_0x1eb521);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x59c739(0x2ca)][_0x59c739(0xed)](_0x1a67db=>{const _0x2ba9d2=_0x59c739;if(this[_0x2ba9d2(0xcb)]&&_0x1a67db['id']===g[_0x2ba9d2(0x94)]['id']&&_0x1a67db['params'][_0x2ba9d2(0x1fb)]===this[_0x2ba9d2(0x177)]){const _0x36ff18=_0x1a67db['params'];this[_0x2ba9d2(0x1be)](_0x36ff18[_0x2ba9d2(0x128)],_0x36ff18['selections'][0x0]);}})));}[_0x37d759(0xda)](_0x26aea7){const _0x4b26c1=_0x37d759;var _0x2e005c,_0x24e3b7;const {memberID:_0x4e19b0,selection:_0x32c40e}=_0x26aea7['data'],{sheetName:_0x1f5378,range:_0x364b35}=be['deserializeRangeWithSheet'](_0x32c40e),_0x10920d={'name':(_0x24e3b7=(_0x2e005c=this['_memberService'][_0x4b26c1(0xf7)](this['unitID'],_0x4e19b0))==null?void 0x0:_0x2e005c[_0x4b26c1(0xd1)])!=null?_0x24e3b7:_0x4b26c1(0x12c),'range':this[_0x4b26c1(0x96)](_0x1f5378,_0x364b35),'sheetID':_0x1f5378,'color':this[_0x4b26c1(0x132)][_0x4b26c1(0x1cd)](_0x4e19b0),'selection':_0x32c40e},_0x523919=this[_0x4b26c1(0xdd)];_0x523919[_0x4b26c1(0xc1)](_0x4e19b0,_0x10920d),this[_0x4b26c1(0x2da)]['next'](_0x523919);}[_0x37d759(0x293)](_0x5d04a6){const _0x14ac7b=_0x37d759,{memberID:_0x100ac4}=_0x5d04a6['data'],_0xa3aad5=this[_0x14ac7b(0xdd)];_0xa3aad5['delete'](_0x100ac4),this[_0x14ac7b(0x2da)][_0x14ac7b(0x2e9)](_0xa3aad5);}[_0x37d759(0x96)](_0x3399db,_0x51d5a9){const _0x275009=_0x37d759;var _0x38d4c5,_0x4e9e8f;const _0x521fce=(_0x4e9e8f=(_0x38d4c5=this['_univerInstanceService'][_0x275009(0xb3)](this[_0x275009(0x177)]))==null?void 0x0:_0x38d4c5[_0x275009(0x1ab)](_0x3399db))==null?void 0x0:_0x4e9e8f[_0x275009(0x2c7)]();return(_0x521fce==null?void 0x0:_0x521fce[_0x275009(0x2bd)](_0x41e363=>a[_0x275009(0x1b7)][_0x275009(0x17b)](_0x41e363,_0x51d5a9)))||_0x51d5a9;}['_onRefRangeChange'](){const _0x38944a=_0x37d759,_0xa734ac=new a[(_0x38944a(0x217))](),_0x344835=ot(),_0x5e7445=()=>{const _0x45153e=_0x38944a;_0xa734ac[_0x45153e(0x92)]();const _0x371e44=(_0x18426e,_0x28d36b,_0x19f8ee,_0x25fa39)=>{const _0xefad64=_0x45153e;let _0x19e834=[];switch(_0x18426e['id']){case g['EffectRefRangId'][_0xefad64(0x1b9)]:{_0x19e834=g[_0xefad64(0x2ed)](_0x18426e,_0x25fa39);break;}case g[_0xefad64(0x1a8)][_0xefad64(0x1dc)]:{_0x19e834=g[_0xefad64(0xdc)](_0x18426e,_0x25fa39);break;}case g[_0xefad64(0x1a8)][_0xefad64(0x15f)]:{_0x19e834=g['handleInsertCol'](_0x18426e,_0x25fa39);break;}case g[_0xefad64(0x1a8)][_0xefad64(0x7f)]:{_0x19e834=g['handleInsertRangeMoveDown'](_0x18426e,_0x25fa39);break;}case g[_0xefad64(0x1a8)]['InsertRangeMoveRightCommandId']:{_0x19e834=g[_0xefad64(0x239)](_0x18426e,_0x25fa39);break;}case g[_0xefad64(0x1a8)]['InsertRowCommandId']:{_0x19e834=g[_0xefad64(0x22a)](_0x18426e,_0x25fa39);break;}case g['EffectRefRangId'][_0xefad64(0x84)]:{_0x19e834=g[_0xefad64(0x21e)](_0x18426e,_0x25fa39);break;}case g[_0xefad64(0x1a8)][_0xefad64(0xb4)]:{_0x19e834=g[_0xefad64(0xce)](_0x18426e,_0x25fa39);break;}case g[_0xefad64(0x1a8)]['RemoveRowCommandId']:{_0x19e834=g[_0xefad64(0x21d)](_0x18426e,_0x25fa39);break;}}const _0x28b041=g['runRefRangeMutations'](_0x19e834,_0x25fa39),_0x2f0271=this[_0xefad64(0xdd)]['get'](_0x28d36b);if(_0x2f0271&&_0x28b041){const _0x14d016={..._0x2f0271,'range':_0x28b041};this[_0xefad64(0xdd)][_0xefad64(0xc1)](_0x28d36b,_0x14d016),_0x344835(()=>{const _0x26a91a=_0xefad64,_0x24721f=this['_refRangeService'][_0x26a91a(0xfe)](_0x28b041,_0x271e1d=>(_0x24721f[_0x26a91a(0x92)](),_0x371e44(_0x271e1d,_0x28d36b,_0x19f8ee,_0x28b041)));_0xa734ac[_0x26a91a(0x172)](_0x24721f);});}return{'redos':[],'undos':[]};};this[_0x45153e(0xdd)][_0x45153e(0x173)]((_0x351f78,_0x99f28)=>{const _0xc1ca12=_0x45153e,{range:_0x1dcdf8,sheetID:_0x54cd6f}=_0x351f78,_0x327011=this[_0xc1ca12(0xca)][_0xc1ca12(0xfe)](_0x1dcdf8,_0x55c51e=>(_0x327011[_0xc1ca12(0x92)](),_0x371e44(_0x55c51e,_0x99f28,_0x54cd6f,_0x1dcdf8)));_0xa734ac[_0xc1ca12(0x172)](_0x327011);});};this['disposeWithMe'](a[_0x38944a(0xa1)](this[_0x38944a(0x2da)][_0x38944a(0xb8)](()=>{_0x5e7445();})));}['_toggleOnline'](){const _0x582d4f=_0x37d759;var _0x49d6b5,_0x23d494;if(this[_0x582d4f(0xcb)]=!0x0,((_0x49d6b5=this[_0x582d4f(0x18c)][_0x582d4f(0x198)]())==null?void 0x0:_0x49d6b5['getUnitId']())!==this[_0x582d4f(0x177)])return;const _0x2681d1=(_0x23d494=this[_0x582d4f(0x188)][_0x582d4f(0x263)](g['SheetsSelectionsService'])[_0x582d4f(0xff)]())==null?void 0x0:_0x23d494[0x0],_0x4e7cd0=this[_0x582d4f(0x18c)][_0x582d4f(0x8e)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x582d4f(0x2a7)]();_0x2681d1&&_0x4e7cd0&&this[_0x582d4f(0x1be)](_0x4e7cd0[_0x582d4f(0x24a)](),_0x2681d1);}[_0x37d759(0xf9)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x37d759(0x9a)](a['Injector'])),A(0x3,a[_0x37d759(0x9a)](me)),A(0x4,a[_0x37d759(0x9a)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a['ICommandService']),A(0x7,a['Inject'](g[_0x37d759(0x1f0)]))],Se);var at=Object[_0x37d759(0x118)],ct=(_0x1ad124,_0x2a43bd,_0x5b0837,_0x39497f)=>{const _0x26741c=_0x37d759;for(var _0x206542=_0x39497f>0x1?void 0x0:_0x39497f?at(_0x2a43bd,_0x5b0837):_0x2a43bd,_0x4944a0=_0x1ad124[_0x26741c(0x1bd)]-0x1,_0x4785a6;_0x4944a0>=0x0;_0x4944a0--)(_0x4785a6=_0x1ad124[_0x4944a0])&&(_0x206542=_0x4785a6(_0x206542)||_0x206542);return _0x206542;},ie=(_0x1003aa,_0x95d01)=>(_0x1e6349,_0x137cdd)=>_0x95d01(_0x1e6349,_0x137cdd,_0x1003aa);let x=class extends a[_0x37d759(0x1d4)]{constructor(_0x408e8e,_0x5771e1,_0x347cdb){const _0x55dc99=_0x37d759;super(),h(this,_0x55dc99(0x2a4),new Map()),h(this,'_entityInit$',new d['Subject']()),(this[_0x55dc99(0x18c)]=_0x408e8e,this[_0x55dc99(0x188)]=_0x5771e1,this[_0x55dc99(0x2c1)]=_0x347cdb,this['_init']());}[_0x37d759(0x92)](){const _0x48b03f=_0x37d759;super['dispose'](),this['_entityInit$']['complete'](),this[_0x48b03f(0x2a4)][_0x48b03f(0x173)](_0x225200=>_0x225200['dispose']());}[_0x37d759(0xa8)](_0x4b57e8){const _0x1f040e=_0x37d759;return this['_entities'][_0x1f040e(0x2cb)](_0x4b57e8)?this[_0x1f040e(0x2a4)]['get'](_0x4b57e8)[_0x1f040e(0xe7)]:this['_entityInit$'][_0x1f040e(0x2f2)](d[_0x1f040e(0x145)](_0x1ba2cf=>_0x1ba2cf['unitID']===_0x4b57e8),d[_0x1f040e(0xf6)](_0x3c4136=>_0x3c4136['cursorInfo$']));}[_0x37d759(0xb9)](){const _0x4faed4=_0x37d759;this['_univerInstanceService'][_0x4faed4(0x1ad)](a[_0x4faed4(0x95)][_0x4faed4(0xe8)])[_0x4faed4(0x2f2)](d[_0x4faed4(0x163)](this[_0x4faed4(0x280)]))['subscribe'](async _0x3f4035=>{const _0x1ea7d5=_0x4faed4,_0x3d2ecb=_0x3f4035[_0x1ea7d5(0x204)](),_0x134699=await this['_startSheetCollabCursor'](_0x3d2ecb);this[_0x1ea7d5(0x1fc)][_0x1ea7d5(0x2e9)](_0x134699),this['_entities']['set'](_0x3d2ecb,_0x134699);}),this[_0x4faed4(0x18c)][_0x4faed4(0x1ad)](a['UniverInstanceType']['UNIVER_DOC'])['pipe'](d[_0x4faed4(0x163)](this[_0x4faed4(0x280)]))['pipe'](d[_0x4faed4(0x145)](_0x19be5c=>!_0x19be5c[_0x4faed4(0x204)]()[_0x4faed4(0x26d)]('__')))[_0x4faed4(0xb8)](async _0x3505a8=>{const _0x2a12b3=_0x4faed4,_0x3dc7e5=_0x3505a8[_0x2a12b3(0x204)](),_0x735da2=await this[_0x2a12b3(0x1c5)](_0x3dc7e5);this[_0x2a12b3(0x1fc)]['next'](_0x735da2),this[_0x2a12b3(0x2a4)][_0x2a12b3(0xc1)](_0x3dc7e5,_0x735da2);}),d[_0x4faed4(0xf0)](this[_0x4faed4(0x18c)][_0x4faed4(0x116)](a[_0x4faed4(0x95)]['UNIVER_DOC']),this[_0x4faed4(0x18c)][_0x4faed4(0x116)](a[_0x4faed4(0x95)]['UNIVER_SHEET']))[_0x4faed4(0x2f2)](d[_0x4faed4(0x163)](this[_0x4faed4(0x280)]))[_0x4faed4(0xb8)](_0x3431b1=>{const _0x6bd59b=_0x4faed4,_0x372bea=_0x3431b1[_0x6bd59b(0x204)](),_0x501288=this['_entities'][_0x6bd59b(0x263)](_0x372bea);_0x501288&&(_0x501288[_0x6bd59b(0x92)](),this[_0x6bd59b(0x2a4)][_0x6bd59b(0x1a4)](_0x372bea));});}async[_0x37d759(0x231)](_0x53d790){const _0x480862=_0x37d759,_0x13f572=await this[_0x480862(0x2c1)][_0x480862(0x200)](_0x53d790),_0x4adaae=this[_0x480862(0x188)][_0x480862(0x130)](Se,_0x53d790,_0x13f572);return _0x4adaae[_0x480862(0x265)](),_0x4adaae;}async[_0x37d759(0x1c5)](_0x175a21){const _0x1d77a8=_0x37d759,_0xa10d5c=await this[_0x1d77a8(0x2c1)][_0x1d77a8(0x200)](_0x175a21),_0x12a047=this['_injector'][_0x1d77a8(0x130)](Ie,_0x175a21,_0xa10d5c);return _0x12a047[_0x1d77a8(0x265)](),_0x12a047;}};x=ct([ie(0x0,a[_0x37d759(0x292)]),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a['Inject'](u[_0x37d759(0x1d8)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4415b7,_0x2c23e9){const _0x50d2d7=_0x37d759;let {radius:_0x105927,width:_0x59eda9,height:_0x42a2a6}=_0x2c23e9;_0x105927=_0x105927!=null?_0x105927:0x0,_0x59eda9=_0x59eda9!=null?_0x59eda9:0x1e,_0x42a2a6=_0x42a2a6!=null?_0x42a2a6:0x1e;let _0x27c2bd=0x0,_0xa566a5=0x0,_0x37d120=0x0;_0x27c2bd=_0xa566a5=_0x37d120=Math[_0x50d2d7(0x207)](_0x105927,_0x59eda9/0x2,_0x42a2a6/0x2),_0x4415b7['beginPath'](),_0x4415b7[_0x50d2d7(0x24f)](_0x27c2bd,0x0),_0x4415b7[_0x50d2d7(0x182)](_0x59eda9-_0xa566a5,0x0),_0x4415b7[_0x50d2d7(0x267)](_0x59eda9-_0xa566a5,_0xa566a5,_0xa566a5,Math['PI']*0x3/0x2,0x0,!0x1),_0x4415b7[_0x50d2d7(0x182)](_0x59eda9,_0x42a2a6-_0x37d120),_0x4415b7[_0x50d2d7(0x267)](_0x59eda9-_0x37d120,_0x42a2a6-_0x37d120,_0x37d120,0x0,Math['PI']/0x2,!0x1),_0x4415b7[_0x50d2d7(0x182)](0x0,_0x42a2a6),_0x4415b7['lineTo'](0x0,_0x27c2bd),_0x4415b7[_0x50d2d7(0x267)](_0x27c2bd,_0x27c2bd,_0x27c2bd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4415b7['closePath'](),_0x2c23e9[_0x50d2d7(0x14b)]&&(_0x4415b7[_0x50d2d7(0xd7)](),_0x4415b7[_0x50d2d7(0x1b0)]=_0x2c23e9['fill'],_0x2c23e9[_0x50d2d7(0x25b)]===_0x50d2d7(0x26c)?_0x4415b7[_0x50d2d7(0x14b)](_0x50d2d7(0x26c)):_0x4415b7[_0x50d2d7(0x14b)](),_0x4415b7[_0x50d2d7(0x1a7)]());}class ee extends p[_0x37d759(0x2d2)]{constructor(_0xbc3722,_0x105786){const _0x52c62d=_0x37d759;super(_0xbc3722,_0x105786),h(this,_0x52c62d(0x238)),h(this,'text'),(this[_0x52c62d(0x238)]=_0x105786==null?void 0x0:_0x105786[_0x52c62d(0x238)],this[_0x52c62d(0x261)]=_0x105786==null?void 0x0:_0x105786[_0x52c62d(0x261)]);}static[_0x37d759(0xf1)](_0x364984,_0x3584e4){const _0xd64394=_0x37d759,{text:_0x45de2d,color:_0x4ace93}=_0x3584e4;_0x364984[_0xd64394(0xd7)](),_0x364984[_0xd64394(0x2a2)]=_0xd64394(0x2cf);const _0xea8408=_0x364984[_0xd64394(0x2e0)](_0x45de2d)[_0xd64394(0x2e4)],_0x1b3ac4=Math['min'](_0xea8408+0x2*ne,Re);_t(_0x364984,{'height':K,'radius':0x4,'width':_0x1b3ac4,'fill':_0x4ace93}),_0x364984[_0xd64394(0x1b0)]=_0xd64394(0x1bc);const _0x39ee22=ne,_0x5891cb=K-lt,_0x2b433b=Re-0x2*ne;if(_0xea8408>_0x2b433b){let _0x36ec61='',_0xff9c9d=0x0;for(const _0x4f1fd7 of _0x45de2d){const _0x282ee3=_0x364984[_0xd64394(0x2e0)](_0x4f1fd7)[_0xd64394(0x2e4)];if(_0xff9c9d+_0x282ee3<=_0x2b433b-_0x364984[_0xd64394(0x2e0)]('...')[_0xd64394(0x2e4)])_0x36ec61+=_0x4f1fd7,_0xff9c9d+=_0x282ee3;else{_0x36ec61+=_0xd64394(0x289);break;}}_0x364984[_0xd64394(0x1ed)](_0x36ec61,_0x39ee22,_0x5891cb);}else _0x364984[_0xd64394(0x1ed)](_0x45de2d,_0x39ee22,_0x5891cb);_0x364984[_0xd64394(0x1a7)]();}[_0x37d759(0x2d1)](_0x3c4f03){const _0x10e037=_0x37d759;ee[_0x10e037(0xf1)](_0x3c4f03,this);}}const re=_0x37d759(0x107),ht='collab-text-range-',ut=_0x37d759(0x15b),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x37d759(0x122);class De{constructor(_0x587a22,_0x415d2f,_0x4e4748,_0x4a00c3){const _0x20fcab=_0x37d759;h(this,_0x20fcab(0x15e),[]),h(this,_0x20fcab(0x26f),null),h(this,_0x20fcab(0x13b),null),h(this,_0x20fcab(0x156),null),h(this,_0x20fcab(0x235),null),h(this,'_eventUnsubscribe',null),(this['_cursor']=_0x587a22,this[_0x20fcab(0x27d)]=_0x415d2f,this['_docSkeleton']=_0x4e4748,this['_document']=_0x4a00c3,this[_0x20fcab(0x9b)]());}set[_0x37d759(0x2b3)](_0x1a15cb){const _0x44a945=_0x37d759;_0x1a15cb?(this['_anchorDot']&&this[_0x44a945(0x156)][_0x44a945(0xa4)](),this[_0x44a945(0x13b)]&&this[_0x44a945(0x13b)]['show']()):(this['_anchorDot']&&this[_0x44a945(0x156)][_0x44a945(0x23a)](),this[_0x44a945(0x13b)]&&this['_textBubble'][_0x44a945(0xa4)]());}[_0x37d759(0x92)](){const _0x2eceda=_0x37d759;for(const _0x17789c of this[_0x2eceda(0x15e)])_0x17789c[_0x2eceda(0x92)]();this['_textBubble']&&this[_0x2eceda(0x13b)][_0x2eceda(0x92)](),this[_0x2eceda(0x156)]&&this[_0x2eceda(0x156)][_0x2eceda(0x92)](),this[_0x2eceda(0x26f)]&&this[_0x2eceda(0x26f)][_0x2eceda(0x92)](),this[_0x2eceda(0x1a2)]&&this[_0x2eceda(0x1a2)]();}[_0x37d759(0x9b)](){const _0x10648c=_0x37d759;var _0x1c4ecc;const {_docSkeleton:_0x36cdca,_document:_0x541861}=this,{color:_0xb223fb,name:_0x5caf8d,ranges:_0x2dfb75}=this[_0x10648c(0xc3)],_0xf91681=_0x541861[_0x10648c(0x2ba)](),{docsLeft:_0x2bf66b,docsTop:_0x3a0173}=_0xf91681,_0x35e033=new E[(_0x10648c(0x19b))](_0xf91681,_0x36cdca);for(const {startOffset:_0x16a233,endOffset:_0x34ba9b,rangeType:_0x5a9eb4,segmentId:_0x317257,segmentPage:_0x5cd555,collapsed:_0x50256e,isActive:_0xd9a45f}of _0x2dfb75){const _0x4ce497=_0x36cdca[_0x10648c(0x2d5)](_0x16a233,!0x0,_0x317257,_0x5cd555);let _0xb2537b=_0x36cdca[_0x10648c(0x2d5)](_0x34ba9b,!0x0,_0x317257,_0x5cd555);if(_0xb2537b==null&&(_0xb2537b=_0x36cdca['findNodePositionByCharIndex'](_0x34ba9b-0x1,!0x1,_0x317257,_0x5cd555)),_0xd9a45f){const {contentBoxPointGroup:_0x115cca}=_0x35e033[_0x10648c(0x1a3)](_0xb2537b,_0xb2537b);if(_0x115cca[_0x10648c(0x1bd)]===0x0)continue;this['_drawAnchor'](_0xb223fb,_0x115cca,_0x2bf66b,_0x3a0173,_0x5caf8d),this[_0x10648c(0x1a2)]=this[_0x10648c(0x2c4)]();}if(_0x4ce497&&_0xb2537b){if(_0x5a9eb4===a[_0x10648c(0x106)]['RECT']){const _0x41199f=new E[(_0x10648c(0x20a))](_0xf91681,_0x36cdca),{pointGroup:_0x4b68d5}=(_0x1c4ecc=_0x41199f[_0x10648c(0x1a3)](_0x4ce497,_0xb2537b))!=null?_0x1c4ecc:{};if(_0x4b68d5==null||_0x4b68d5[_0x10648c(0x1bd)]===0x0)continue;this[_0x10648c(0x296)](_0xb223fb,_0x4b68d5,_0x2bf66b,_0x3a0173);}else{if(!_0x50256e){const {borderBoxPointGroup:_0x5197cf}=_0x35e033[_0x10648c(0x1a3)](_0x4ce497,_0xb2537b);if(_0x5197cf['length']===0x0)continue;this[_0x10648c(0xea)](_0xb223fb,_0x5197cf,_0x2bf66b,_0x3a0173);}}}}}[_0x37d759(0x26a)](_0x4c148e,_0xf4090d,_0x33d6d1,_0x1e356a,_0x1f15ae){const _0x1d2ec5=_0x37d759,_0x2f9e92=this[_0x1d2ec5(0x10e)](_0xf4090d),{left:_0x53564e,top:_0x2853f9,height:_0x28288f}=_0x2f9e92,_0x17feaa=this['_getScale'](),_0x30c37f=It/_0x17feaa,_0x2ea15c=new p[(_0x1d2ec5(0xd6))](re+a[_0x1d2ec5(0x159)][_0x1d2ec5(0x121)](k),{'left':_0x53564e+_0x33d6d1-_0x30c37f,'top':_0x2853f9+_0x1e356a,'height':_0x28288f,'width':dt,'fill':_0x4c148e||p[_0x1d2ec5(0x29c)](a['COLORS'][_0x1d2ec5(0x2ad)],0x0),'strokeWidth':_0x30c37f,'stroke':St,'evented':!0x0});this['_anchor']=_0x2ea15c,this[_0x1d2ec5(0x27d)][_0x1d2ec5(0x236)](_0x2ea15c,E[_0x1d2ec5(0x16d)]);const _0x1f711a=new p[(_0x1d2ec5(0xd6))](re+a[_0x1d2ec5(0x159)][_0x1d2ec5(0x121)](k),{'left':_0x53564e+_0x33d6d1-_0x30c37f,'top':_0x2853f9+_0x1e356a-oe/0x2,'height':oe,'width':oe,'fill':_0x4c148e||p[_0x1d2ec5(0x29c)](a['COLORS'][_0x1d2ec5(0x2ad)],0x0),'strokeWidth':0x0,'stroke':_0x4c148e||p[_0x1d2ec5(0x29c)](a['COLORS'][_0x1d2ec5(0x2ad)],0x0),'evented':!0x1});this[_0x1d2ec5(0x156)]=_0x1f711a,this[_0x1d2ec5(0x27d)][_0x1d2ec5(0x236)](_0x1f711a,E[_0x1d2ec5(0x16d)]);const _0x271c38=new ee(re+a[_0x1d2ec5(0x159)]['generateRandomId'](k),{'left':_0x53564e+_0x33d6d1-_0x30c37f,'top':_0x2853f9+_0x1e356a-K,'text':_0x1f15ae,'color':_0x4c148e});this[_0x1d2ec5(0x13b)]=_0x271c38,this[_0x1d2ec5(0x27d)][_0x1d2ec5(0x236)](_0x271c38,E[_0x1d2ec5(0x16d)]),this[_0x1d2ec5(0x2b3)]=!0x1;}[_0x37d759(0x2c4)](){const _0x2918b8=_0x37d759,_0x44c42b=this[_0x2918b8(0x26f)][_0x2918b8(0x202)][_0x2918b8(0x1e8)](()=>{this['_hover']=!0x0;}),_0x20c7df=this[_0x2918b8(0x26f)][_0x2918b8(0x224)][_0x2918b8(0x1e8)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x334d44=_0x5944;this[_0x334d44(0x2b3)]=!0x1;},0x7d0);});return()=>{const _0x18e8ba=_0x2918b8;_0x44c42b['unsubscribe'](),_0x20c7df[_0x18e8ba(0x9c)]();};}['_drawTextRange'](_0x191493,_0x1d1585,_0x3b14ac,_0x4d507a){const _0x25caaa=_0x37d759,_0x40427a=new a[(_0x25caaa(0x2a6))](_0x191493)[_0x25caaa(0x8c)](0.2)['toRgbString'](),_0x5c3682=new p[(_0x25caaa(0x115))](ht+a[_0x25caaa(0x159)][_0x25caaa(0x121)](k),{'pointsGroup':_0x1d1585,'fill':_0x40427a||p[_0x25caaa(0x29c)](a[_0x25caaa(0x29f)]['black'],0.2),'left':_0x3b14ac,'top':_0x4d507a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25caaa(0x15e)][_0x25caaa(0x229)](_0x5c3682),this[_0x25caaa(0x27d)][_0x25caaa(0x236)](_0x5c3682,E[_0x25caaa(0x16d)]);}['_drawRectRange'](_0x217a82,_0x50ff71,_0x35dd4f,_0x50b4ab){const _0x1bf625=_0x37d759,_0x1b9942=new a[(_0x1bf625(0x2a6))](_0x217a82)[_0x1bf625(0x8c)](0.2)[_0x1bf625(0xcc)](),_0x3fc89b=new p[(_0x1bf625(0x115))](ut+a[_0x1bf625(0x159)]['generateRandomId'](k),{'pointsGroup':_0x50ff71,'fill':_0x1b9942||p['getColor'](a[_0x1bf625(0x29f)]['black'],0.2),'left':_0x35dd4f,'top':_0x50b4ab,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1bf625(0x15e)][_0x1bf625(0x229)](_0x3fc89b),this['_scene'][_0x1bf625(0x236)](_0x3fc89b,E[_0x1bf625(0x16d)]);}[_0x37d759(0x10e)](_0x323fcd){const _0x5b641c=_0x323fcd[0x0],_0x468765=_0x5b641c[0x0],_0x29d020=_0x5b641c[0x2],{x:_0x3a0f7c,y:_0xf26b4f}=_0x468765,{x:_0x4ae67c,y:_0x203ec7}=_0x29d020;return{'left':_0x3a0f7c,'top':_0xf26b4f,'width':_0x4ae67c-_0x3a0f7c,'height':_0x203ec7-_0xf26b4f};}[_0x37d759(0x2ea)](){const _0x15c37d=_0x37d759,{scaleX:_0x3a0ff7,scaleY:_0x508520}=this['_scene'][_0x15c37d(0xd8)]();return Math[_0x15c37d(0x24b)](_0x3a0ff7,_0x508520);}}var ft=Object[_0x37d759(0x118)],vt=(_0xa2d21b,_0xfd34d4,_0x947946,_0x42ea06)=>{const _0xe8cbab=_0x37d759;for(var _0x31842e=_0x42ea06>0x1?void 0x0:_0x42ea06?ft(_0xfd34d4,_0x947946):_0xfd34d4,_0x2aa03=_0xa2d21b[_0xe8cbab(0x1bd)]-0x1,_0x333c3f;_0x2aa03>=0x0;_0x2aa03--)(_0x333c3f=_0xa2d21b[_0x2aa03])&&(_0x31842e=_0x333c3f(_0x31842e)||_0x31842e);return _0x31842e;},W=(_0x515200,_0x433b55)=>(_0x5ccaf2,_0x153636)=>_0x433b55(_0x5ccaf2,_0x153636,_0x515200);let fe=class extends a['RxDisposable']{constructor(_0x203898,_0x2c33a3,_0x5809fa,_0x3bc41f,_0x30954e){const _0x7f252d=_0x37d759;super(),h(this,_0x7f252d(0x257),[]),h(this,'_cursors',[]),(this[_0x7f252d(0x1fd)]=_0x203898,this[_0x7f252d(0x260)]=_0x2c33a3,this['_collabCursorController']=_0x5809fa,this[_0x7f252d(0x2ca)]=_0x3bc41f,this[_0x7f252d(0x230)]=_0x30954e,this['_init']());}[_0x37d759(0xb9)](){const _0x3a02e7=_0x37d759,_0x46e50a=this[_0x3a02e7(0x1fd)][_0x3a02e7(0x1fb)],_0x42ea2b=this[_0x3a02e7(0x260)];this[_0x3a02e7(0xfc)](d[_0x3a02e7(0x245)]([this['_collabCursorController'][_0x3a02e7(0xa8)](_0x46e50a),this[_0x3a02e7(0x230)][_0x3a02e7(0x1d0)]])[_0x3a02e7(0x2f2)]($['map'](([_0x3e7721,_0x462681])=>({'skeleton':_0x42ea2b[_0x3a02e7(0x27f)](),'cursors':[..._0x3e7721[_0x3a02e7(0x1f4)]()][_0x3a02e7(0x2df)](_0x1d7c5a=>({..._0x1d7c5a,'color':this[_0x3a02e7(0x230)][_0x3a02e7(0x18d)](_0x1d7c5a[_0x3a02e7(0x238)])}))})))['subscribe'](_0x24e5c6=>{const _0x110530=_0x3a02e7;if(this[_0x110530(0x158)](),_0x24e5c6){const {skeleton:_0x2024ab,cursors:_0x3f5648}=_0x24e5c6;this[_0x110530(0x2c5)](_0x2024ab,_0x3f5648);}})),this[_0x3a02e7(0x8b)](),this['_initCommandExecutedListener']();}[_0x37d759(0x2c5)](_0x222aa0,_0x3776a8){const _0x1a4f94=_0x37d759,{scene:_0x29c11a,mainComponent:_0x58279f}=this[_0x1a4f94(0x1fd)],_0x2d7ac2=_0x3776a8['map'](_0x33274e=>new De(_0x33274e,_0x29c11a,_0x222aa0,_0x58279f));this[_0x1a4f94(0x257)]=_0x2d7ac2,this['_cursors']=_0x3776a8;}[_0x37d759(0x2ec)](){const _0x1fbd1d=_0x37d759;this[_0x1fbd1d(0x158)]();const {scene:_0x105c69,mainComponent:_0x572c19}=this[_0x1fbd1d(0x1fd)],_0x4da728=this[_0x1fbd1d(0x260)][_0x1fbd1d(0x27f)](),_0x1eeef9=this[_0x1fbd1d(0x1aa)][_0x1fbd1d(0x181)](_0x2f996f=>new De(_0x2f996f,_0x105c69,_0x4da728,_0x572c19));this[_0x1fbd1d(0x257)]=_0x1eeef9;}[_0x37d759(0x158)](){const _0x2b727a=_0x37d759;this[_0x2b727a(0x257)][_0x2b727a(0x173)](_0x399719=>_0x399719[_0x2b727a(0x92)]()),this[_0x2b727a(0x257)]=[];}[_0x37d759(0x16e)](){const _0x391c0a=_0x37d759,_0x18a493=[E[_0x391c0a(0x2cd)]['id']];this[_0x391c0a(0xfc)](this['_commandService'][_0x391c0a(0xed)](_0x79d3f9=>{const _0x4ad4d9=_0x391c0a;_0x18a493[_0x4ad4d9(0x10f)](_0x79d3f9['id'])&&_0x79d3f9[_0x4ad4d9(0x17d)][_0x4ad4d9(0x1fb)]===this[_0x4ad4d9(0x1fd)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x37d759(0x8b)](){const _0x96094a=_0x37d759;this[_0x96094a(0xfc)](a['fromEventSubject'](this['_context']['engine'][_0x96094a(0x15a)])['pipe']($['filter'](_0x23b7e6=>_0x23b7e6[_0x96094a(0xd3)]===p[_0x96094a(0x13d)][_0x96094a(0x232)]),$[_0x96094a(0x28a)](0x10))[_0x96094a(0xb8)](()=>{const _0x862cc5=_0x96094a;this[_0x862cc5(0x2ec)]();}));}};fe=vt([W(0x1,a[_0x37d759(0x9a)](Y[_0x37d759(0x2b9)])),W(0x2,a[_0x37d759(0x9a)](x)),W(0x3,a[_0x37d759(0x1cb)]),W(0x4,a['Inject'](a[_0x37d759(0x281)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0x37d759(0x2d2)]{constructor(_0x45ebc0,_0x12f848){const _0x5f4fc8=_0x37d759;super(_0x45ebc0,_0x12f848),h(this,_0x5f4fc8(0x1c9)),h(this,_0x5f4fc8(0x1de),!0x1),h(this,_0x5f4fc8(0x2f1)),h(this,_0x5f4fc8(0x220),''),h(this,_0x5f4fc8(0x162),'top'),h(this,_0x5f4fc8(0x227)),(_0x12f848&&this[_0x5f4fc8(0x10a)](_0x12f848),this['onPointerEnter$'][_0x5f4fc8(0x1e8)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5f4fc8(0x224)][_0x5f4fc8(0x1e8)](()=>this[_0x5f4fc8(0x10a)]({'hovered':!0x1})));}[_0x37d759(0x10a)](_0x2c3d58){const _0x2e1049=_0x37d759;var _0x2e73bf,_0x5c10de,_0x43faf3,_0x1a3495,_0x3214c2,_0x4d5fe5;this[_0x2e1049(0x1c9)]=(_0x2e73bf=_0x2c3d58[_0x2e1049(0x238)])!=null?_0x2e73bf:this[_0x2e1049(0x1c9)],this[_0x2e1049(0x1de)]=(_0x5c10de=_0x2c3d58[_0x2e1049(0x2ef)])!=null?_0x5c10de:this[_0x2e1049(0x1de)],this[_0x2e1049(0x2f1)]=(_0x43faf3=_0x2c3d58[_0x2e1049(0x274)])!=null?_0x43faf3:this['_range'],this['_name']=(_0x1a3495=_0x2c3d58[_0x2e1049(0xd1)])!=null?_0x1a3495:this[_0x2e1049(0x220)],this[_0x2e1049(0x162)]=(_0x3214c2=_0x2c3d58[_0x2e1049(0x23b)])!=null?_0x3214c2:this[_0x2e1049(0x162)],this['_backgroundColor']=(_0x4d5fe5=_0x2c3d58['backgroundColor'])!=null?_0x4d5fe5:this[_0x2e1049(0x227)],this[_0x2e1049(0xef)]({'width':_0x2c3d58[_0x2e1049(0x2e4)],'height':_0x2c3d58[_0x2e1049(0xe4)]});}['onMouseMove'](_0x19b33a){const _0x2fb890=_0x37d759,{row:_0x21369f,column:_0x119143}=_0x19b33a;if(_0x21369f>=this[_0x2fb890(0x2f1)][_0x2fb890(0xe1)]&&_0x21369f<=this[_0x2fb890(0x2f1)][_0x2fb890(0x18e)]&&_0x119143>=this[_0x2fb890(0x2f1)]['startColumn']&&_0x119143<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x2fb890(0x10a)]({'hovered':!0x1});}[_0x37d759(0x93)](_0x531e76){return!0x1;}[_0x37d759(0x2d1)](_0x4d51f4){const _0x19ccb3=_0x37d759;p['Rect']['drawWith'](_0x4d51f4,{'width':this[_0x19ccb3(0x2e4)],'height':this[_0x19ccb3(0xe4)],'strokeWidth':mt,'stroke':this[_0x19ccb3(0x1c9)],'evented':!0x1,'fill':this[_0x19ccb3(0x227)]}),this[_0x19ccb3(0x1de)]&&(_0x4d51f4['save'](),_0x4d51f4[_0x19ccb3(0xa9)](0x1,0x0,0x0,0x1,this['width'],this[_0x19ccb3(0x162)]===_0x19ccb3(0x214)?0x0:-0x14),ee['drawWith'](_0x4d51f4,{'text':this[_0x19ccb3(0x220)],'color':this[_0x19ccb3(0x1c9)]}),_0x4d51f4[_0x19ccb3(0x1a7)]());}}var Ct=Object[_0x37d759(0x118)],pt=(_0x11e9ba,_0x4762f9,_0x2ccaeb,_0x366858)=>{const _0x5031e9=_0x37d759;for(var _0x1aae26=_0x366858>0x1?void 0x0:_0x366858?Ct(_0x4762f9,_0x2ccaeb):_0x4762f9,_0x51ccaf=_0x11e9ba[_0x5031e9(0x1bd)]-0x1,_0x17576b;_0x51ccaf>=0x0;_0x51ccaf--)(_0x17576b=_0x11e9ba[_0x51ccaf])&&(_0x1aae26=_0x17576b(_0x1aae26)||_0x1aae26);return _0x1aae26;},ae=(_0x593ae9,_0x40c313)=>(_0x13d4c7,_0x2747af)=>_0x40c313(_0x13d4c7,_0x2747af,_0x593ae9);const Et=0x1389;let ve=class extends a[_0x37d759(0x1d4)]{constructor(_0x283f52,_0x2444f6,_0x4f53eb,_0x548b86){const _0x4dacde=_0x37d759;super(),h(this,_0x4dacde(0x1aa),new Set()),h(this,_0x4dacde(0x1fa),null),(this[_0x4dacde(0x1fd)]=_0x283f52,this[_0x4dacde(0x139)]=_0x2444f6,this[_0x4dacde(0xa5)]=_0x4f53eb,this['_themeService']=_0x548b86,this['_init']());}[_0x37d759(0xb9)](){const _0x4d010c=_0x37d759;this[_0x4d010c(0x139)][_0x4d010c(0x1b2)]['pipe']($[_0x4d010c(0x163)](this[_0x4d010c(0x280)]),$[_0x4d010c(0xf6)](_0x101230=>{const _0x2a9085=_0x4d010c;if(_0x101230){const _0x41892f=_0x101230[_0x2a9085(0x2c2)];return d[_0x2a9085(0x245)](this[_0x2a9085(0xa5)][_0x2a9085(0xa8)](this[_0x2a9085(0x1fd)][_0x2a9085(0x1fb)]),this['_themeService'][_0x2a9085(0x1d0)])[_0x2a9085(0x2f2)]($[_0x2a9085(0x181)](([_0x3ea9b3,_0x2b6701])=>{const _0x26911b=_0x2a9085,_0x231332=new Map();return _0x3ea9b3[_0x26911b(0x173)]((_0x4e89e1,_0x136524)=>{const _0xd1e4a8=_0x26911b;if(_0x4e89e1[_0xd1e4a8(0x271)]===_0x41892f){const _0x2748b9={..._0x4e89e1};_0x2748b9[_0xd1e4a8(0x238)]=this['_themeService'][_0xd1e4a8(0x18d)](_0x4e89e1['color']),_0x231332['set'](_0x136524,_0x2748b9);}}),{'skeleton':_0x101230,'cursors':_0x231332};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x4d010c(0xb8)](({skeleton:_0x1c23b8,cursors:_0x164d03})=>{const _0x249933=_0x4d010c;this[_0x249933(0x158)](),_0x1c23b8&&this['_updateCollabCursors'](_0x1c23b8,_0x164d03);}),this[_0x4d010c(0x139)][_0x4d010c(0x1b2)][_0x4d010c(0xb8)](_0xf089af=>{const _0x172d75=_0x4d010c;if(_0xf089af==null)return;const {skeleton:_0x3dc7db}=_0xf089af,{scene:_0x50dbe7}=this['_context'];_0x50dbe7[_0x172d75(0x176)][_0x172d75(0x1e8)](a[_0x172d75(0x28e)](_0x124f37=>{const _0x20c87d=_0x172d75;var _0x53dca4,_0x5eeae2;const {offsetX:_0x11285a,offsetY:_0x25f2f2}=_0x124f37,{x:_0x5b7fbd,y:_0x261471}=_0x50dbe7['getRelativeToViewportCoord'](p[_0x20c87d(0xe6)][_0x20c87d(0x12a)]([_0x11285a,_0x25f2f2])),{scaleX:_0x404c73,scaleY:_0x2ded7c}=_0x50dbe7['getAncestorScale'](),_0x1e4b5d=_0x50dbe7['getViewport'](p[_0x20c87d(0x27c)][_0x20c87d(0x1d2)]),_0x36d72b=_0x50dbe7['getVpScrollXYInfoByPosToVp'](p[_0x20c87d(0xe6)][_0x20c87d(0x12a)]([_0x5b7fbd,_0x261471]),_0x1e4b5d),_0x3f7be5=_0x3dc7db[_0x20c87d(0x276)](_0x11285a,_0x25f2f2,_0x404c73,_0x2ded7c,_0x36d72b);((_0x53dca4=this[_0x20c87d(0x1fa)])==null?void 0x0:_0x53dca4[_0x20c87d(0x1c7)])===_0x3f7be5[_0x20c87d(0x1c7)]&&((_0x5eeae2=this[_0x20c87d(0x1fa)])==null?void 0x0:_0x5eeae2[_0x20c87d(0x119)])===_0x3f7be5[_0x20c87d(0x119)]||this['_cursors']['forEach'](_0xd19795=>{_0xd19795['onMouseMove'](_0x3f7be5);});},0x64));});}['_updateCollabCursors'](_0x23871d,_0x1e530c){const _0x4cd487=_0x37d759;var _0x4004b4;const _0x249335=(_0x4004b4=this[_0x4cd487(0x139)]['getCurrent']())==null?void 0x0:_0x4004b4[_0x4cd487(0xad)];if(!_0x249335)return;const _0x50a264=this['_getSheetObject']();if(!_0x50a264)return;this[_0x4cd487(0x1aa)][_0x4cd487(0x173)](_0x5b7748=>{_0x5b7748['makeDirty']();});const {scene:_0x16cd60}=_0x50a264,_0x186384=bt(Array['from'](_0x1e530c[_0x4cd487(0x1f4)]()))['map'](_0x2f3467=>{const _0x22c712=_0x4cd487,{color:_0x3874ca,range:_0x4dc868,name:_0x251bc1,selection:_0x427418,sheetID:_0x367181}=_0x2f3467,{startColumn:_0x326ecd,startRow:_0x3497ea,endColumn:_0x143ceb,endRow:_0x2599cc}=_0x4dc868,_0x32cead=X['getCoordByCell'](_0x3497ea,_0x326ecd,_0x16cd60,_0x249335),_0xbfa3ad=X['getCoordByCell'](_0x2599cc,_0x143ceb,_0x16cd60,_0x249335),{columnHeaderHeightAndMarginTop:_0x292bec}=_0x249335,{startX:_0x20f95f,startY:_0x145073}=_0x32cead,{endX:_0x2cc1c1,endY:_0x5e7772}=_0xbfa3ad,_0x13c9c0=_0x2cc1c1-_0x20f95f,_0x48b648=_0x5e7772-_0x145073,_0xbe4eda={'labelPosition':_0x145073-_0x292bec>=K?_0x22c712(0xf5):_0x22c712(0x214),'sheetID':_0x367181,'range':_0x4dc868,'color':_0x3874ca,'name':_0x251bc1,'selection':_0x427418,'left':_0x20f95f,'top':_0x145073,'width':_0x13c9c0,'height':_0x48b648,'evented':!0x1,'zIndex':Et};return new we(_0x251bc1,_0xbe4eda);});_0x16cd60[_0x4cd487(0x1ef)](_0x186384,gt),this['_cursors']=new Set(_0x186384);}[_0x37d759(0x158)](){const _0x2469c4=_0x37d759;var _0x322a89;(_0x322a89=this[_0x2469c4(0x1aa)])==null||_0x322a89[_0x2469c4(0x173)](_0x1d6df4=>_0x1d6df4[_0x2469c4(0x92)]());}[_0x37d759(0x8d)](){const _0x4ff672=_0x37d759;return X['getSheetObject'](this[_0x4ff672(0x1fd)][_0x4ff672(0x2ac)],this[_0x4ff672(0x1fd)]);}};ve=pt([ae(0x1,a[_0x37d759(0x9a)](X[_0x37d759(0x89)])),ae(0x2,a[_0x37d759(0x9a)](x)),ae(0x3,a[_0x37d759(0x9a)](a['ThemeService']))],ve);function bt(_0x5a5df7){const _0xaa6066=_0x37d759,_0x299e4f=new Map();return _0x5a5df7[_0xaa6066(0x173)](_0xa8e7d5=>{const _0x42480f=_0xaa6066;if(_0x299e4f[_0x42480f(0x2cb)](_0xa8e7d5['selection'])){const _0x53c66e=_0x299e4f[_0x42480f(0x263)](_0xa8e7d5[_0x42480f(0x11e)]);_0x53c66e[_0x42480f(0xd1)]+=',\x20'+_0xa8e7d5[_0x42480f(0xd1)];}else _0x299e4f[_0x42480f(0xc1)](_0xa8e7d5['selection'],_0xa8e7d5);}),Array[_0xaa6066(0xa6)](_0x299e4f[_0xaa6066(0x1f4)]());}var b=function(){const _0x589ff8=_0x37d759;return b=Object[_0x589ff8(0x26b)]||function(_0x35311f){const _0x1236c6=_0x589ff8;for(var _0x80554e,_0x1a32be=0x1,_0x2e902d=arguments[_0x1236c6(0x1bd)];_0x1a32be<_0x2e902d;_0x1a32be++){_0x80554e=arguments[_0x1a32be];for(var _0xe31942 in _0x80554e)Object[_0x1236c6(0x1a6)]['hasOwnProperty'][_0x1236c6(0x205)](_0x80554e,_0xe31942)&&(_0x35311f[_0xe31942]=_0x80554e[_0xe31942]);}return _0x35311f;},b[_0x589ff8(0xde)](this,arguments);},Ot=function(_0x4e2415,_0x5ad871){const _0x584d56=_0x37d759;var _0x57c97c={};for(var _0x124443 in _0x4e2415)Object['prototype'][_0x584d56(0x24e)][_0x584d56(0x205)](_0x4e2415,_0x124443)&&_0x5ad871[_0x584d56(0x234)](_0x124443)<0x0&&(_0x57c97c[_0x124443]=_0x4e2415[_0x124443]);if(_0x4e2415!=null&&typeof Object['getOwnPropertySymbols']==_0x584d56(0x8f)){for(var _0x2921fd=0x0,_0x124443=Object['getOwnPropertySymbols'](_0x4e2415);_0x2921fd<_0x124443['length'];_0x2921fd++)_0x5ad871[_0x584d56(0x234)](_0x124443[_0x2921fd])<0x0&&Object[_0x584d56(0x1a6)]['propertyIsEnumerable'][_0x584d56(0x205)](_0x4e2415,_0x124443[_0x2921fd])&&(_0x57c97c[_0x124443[_0x2921fd]]=_0x4e2415[_0x124443[_0x2921fd]]);}return _0x57c97c;},pe=M['forwardRef'](function(_0x1760d4,_0x45acff){const _0x235b37=_0x37d759;var _0x3b3d26=_0x1760d4[_0x235b37(0x19e)],_0x9268d1=_0x1760d4['id'],_0x45f5f9=_0x1760d4[_0x235b37(0x2b1)],_0x68676a=_0x1760d4[_0x235b37(0x1db)],_0x551501=Ot(_0x1760d4,['icon','id',_0x235b37(0x2b1),_0x235b37(0x1db)]),_0x5de7c3=_0x235b37(0x147)['concat'](_0x9268d1,'\x20')[_0x235b37(0x242)](_0x45f5f9||'')[_0x235b37(0x14f)](),_0x2d1bf0=M[_0x235b37(0x2e1)]('_'[_0x235b37(0x242)](Dt()));return Ae(_0x3b3d26,''[_0x235b37(0x242)](_0x9268d1),{'defIds':_0x3b3d26[_0x235b37(0x226)],'idSuffix':_0x2d1bf0['current']},b({'ref':_0x45acff,'className':_0x5de7c3},_0x551501),_0x68676a);});function Ae(_0x1a3967,_0x38b129,_0x333f81,_0x23f182,_0x137efd){const _0x33c165=_0x37d759;return M[_0x33c165(0xd2)](_0x1a3967[_0x33c165(0x11f)],b(b({'key':_0x38b129},Tt(_0x1a3967,_0x333f81,_0x137efd)),_0x23f182),(Rt(_0x1a3967,_0x333f81)[_0x33c165(0x151)]||[])[_0x33c165(0x181)](function(_0x29ae69,_0x48f73d){const _0x3ee16a=_0x33c165;return Ae(_0x29ae69,''[_0x3ee16a(0x242)](_0x38b129,'-')[_0x3ee16a(0x242)](_0x1a3967[_0x3ee16a(0x11f)],'-')['concat'](_0x48f73d),_0x333f81,void 0x0,_0x137efd);}));}function Tt(_0x2b129d,_0x286bce,_0x5a4d5c){const _0x140700=_0x37d759;var _0x38156d=b({},_0x2b129d['attrs']);_0x5a4d5c!=null&&_0x5a4d5c[_0x140700(0x13e)]&&_0x38156d[_0x140700(0x14b)]===_0x140700(0x13e)&&(_0x38156d['fill']=_0x5a4d5c[_0x140700(0x13e)]),_0x2b129d['tag']==='mask'&&_0x38156d['id']&&(_0x38156d['id']=_0x38156d['id']+_0x286bce[_0x140700(0x2d0)]),Object[_0x140700(0xb1)](_0x38156d)['forEach'](function(_0x3a4d3f){const _0x2811c8=_0x140700;var _0x2bbf40=_0x3a4d3f[0x0],_0x40b3ec=_0x3a4d3f[0x1];_0x2bbf40===_0x2811c8(0xe5)&&typeof _0x40b3ec==_0x2811c8(0x111)&&(_0x38156d[_0x2bbf40]=_0x40b3ec[_0x2811c8(0x209)](/url\(#(.*)\)/,'url(#$1'[_0x2811c8(0x242)](_0x286bce['idSuffix'],')')));});var _0xd8b0e6=_0x286bce[_0x140700(0x226)];return!_0xd8b0e6||_0xd8b0e6['length']===0x0||(_0x2b129d['tag']===_0x140700(0x299)&&_0x38156d[_0x140700(0x12d)]&&(_0x38156d['xlink:href']=_0x38156d[_0x140700(0x12d)]+_0x286bce[_0x140700(0x2d0)]),Object[_0x140700(0xb1)](_0x38156d)[_0x140700(0x173)](function(_0x46df9c){const _0x209149=_0x140700;var _0x426840=_0x46df9c[0x0],_0x4f03b2=_0x46df9c[0x1];typeof _0x4f03b2==_0x209149(0x111)&&(_0x38156d[_0x426840]=_0x4f03b2[_0x209149(0x209)](/url\(#(.*)\)/,_0x209149(0x1f1)[_0x209149(0x242)](_0x286bce['idSuffix'],')')));})),_0x38156d;}function Rt(_0x2190cf,_0x10a4d2){const _0x1aa431=_0x37d759;var _0x182f2d,_0x23b8fb=_0x10a4d2[_0x1aa431(0x226)];return!_0x23b8fb||_0x23b8fb['length']===0x0?_0x2190cf:_0x2190cf['tag']===_0x1aa431(0x10d)&&(!((_0x182f2d=_0x2190cf['children'])===null||_0x182f2d===void 0x0)&&_0x182f2d['length'])?b(b({},_0x2190cf),{'children':_0x2190cf[_0x1aa431(0x151)][_0x1aa431(0x181)](function(_0xda8139){const _0x2b8def=_0x1aa431;return typeof _0xda8139['attrs']['id']==_0x2b8def(0x111)&&_0x23b8fb&&_0x23b8fb[_0x2b8def(0x10f)](_0xda8139[_0x2b8def(0x9d)]['id'])?b(b({},_0xda8139),{'attrs':b(b({},_0xda8139[_0x2b8def(0x9d)]),{'id':_0xda8139[_0x2b8def(0x9d)]['id']+_0x10a4d2['idSuffix']})}):_0xda8139;})}):_0x2190cf;}function Dt(){const _0x147e9b=_0x37d759;return Math[_0x147e9b(0x216)]()[_0x147e9b(0x29b)](0x24)[_0x147e9b(0x1e3)](0x2,0x8);}pe['displayName']=_0x37d759(0xa3);var Ut={'tag':_0x37d759(0x295),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x37d759(0x2b6),'width':_0x37d759(0x2b4),'height':_0x37d759(0x2b4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x37d759(0xfd),'attrs':{'stroke':_0x37d759(0x28b),'d':_0x37d759(0x28f),'strokeLinecap':_0x37d759(0x21b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x37d759(0x10d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x37d759(0x1ce)},'children':[{'tag':'path','attrs':{'fill':_0x37d759(0x1c8),'d':_0x37d759(0x269)}}]}]}],'defIds':[_0x37d759(0x1ce)]},ye=M[_0x37d759(0x87)](function(_0x6559eb,_0x366f18){const _0x2c12b6=_0x37d759;return M[_0x2c12b6(0xd2)](pe,Object['assign']({},_0x6559eb,{'id':_0x2c12b6(0x15c),'ref':_0x366f18,'icon':Ut}));});ye[_0x37d759(0xfb)]=_0x37d759(0x136);var Nt={'tag':_0x37d759(0x295),'attrs':{'xmlns':_0x37d759(0x297),'fill':_0x37d759(0x2eb),'viewBox':'0\x200\x2017\x2016','width':_0x37d759(0x2b4),'height':_0x37d759(0x2b4)},'children':[{'tag':'g','attrs':{'clipPath':_0x37d759(0x1e6)},'children':[{'tag':_0x37d759(0xfd),'attrs':{'stroke':_0x37d759(0x28b),'d':'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','strokeLinecap':_0x37d759(0x21b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x37d759(0x10d),'attrs':{},'children':[{'tag':_0x37d759(0x29d),'attrs':{'id':_0x37d759(0x175)},'children':[{'tag':_0x37d759(0xfd),'attrs':{'fill':_0x37d759(0x1c8),'d':'M0\x200H16V16H0z','transform':_0x37d759(0x1dd)}}]}]}],'defIds':[_0x37d759(0x175)]},$e=M['forwardRef'](function(_0x33c849,_0xc1f591){const _0x555584=_0x37d759;return M['createElement'](pe,Object[_0x555584(0x26b)]({},_0x33c849,{'id':'on-line-icon','ref':_0xc1f591,'icon':Nt}));});$e[_0x37d759(0xfb)]=_0x37d759(0x11b);function Mt(_0x24ba08){const _0x2c9d6=_0x37d759;switch(_0x24ba08){case u[_0x2c9d6(0x123)][_0x2c9d6(0x21f)]:return _0x2c9d6(0x10c);case u['CollaborationStatus'][_0x2c9d6(0xdf)]:return _0x2c9d6(0xc8);case u[_0x2c9d6(0x123)][_0x2c9d6(0xc7)]:return'collabStatus.fetchMiss';case u['CollaborationStatus']['NOT_COLLAB']:return _0x2c9d6(0x19d);case u[_0x2c9d6(0x123)][_0x2c9d6(0x1c0)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x2c9d6(0x123)][_0x2c9d6(0x100)]:case u[_0x2c9d6(0x123)][_0x2c9d6(0x17a)]:return'collabStatus.synced';}}function xe(_0x63460b){const _0x527b39=_0x37d759,{status$:_0x329944}=_0x63460b,_0x436d96=O[_0x527b39(0x174)](_0x329944,u[_0x527b39(0x123)][_0x527b39(0xbd)]),_0x4d1235=O[_0x527b39(0xbb)](a[_0x527b39(0x142)]),_0x5b9230=O[_0x527b39(0xbb)](u['CollaborationSessionService']),_0x58ece4=_0x436d96!==u[_0x527b39(0x123)][_0x527b39(0x21f)],_0x1a884e=_0x4d1235['t'](Mt(_0x436d96)),_0x47f7aa=_0x58ece4?P[_0x527b39(0xb7)]($e,{}):P[_0x527b39(0xb7)](ye,{}),_0x1ff603=M[_0x527b39(0x193)](()=>{const _0x2953e6=_0x527b39;_0x58ece4||_0x5b9230[_0x2953e6(0x2b8)]();},[_0x58ece4,_0x5b9230]);function _0x541765(){const _0x13efe7=_0x527b39;return P[_0x13efe7(0xf2)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x1ff603,'children':[P['jsx'](_0x13efe7(0xbf),{'className':D['clsx'](_0x13efe7(0x138),{'univer-text-green-500':_0x58ece4,'univer-text-red-500':!_0x58ece4}),'children':_0x47f7aa}),P[_0x13efe7(0xb7)](_0x13efe7(0xbf),{'className':_0x13efe7(0x1a9),'children':_0x1a884e})]});}return _0x58ece4?_0x541765():P[_0x527b39(0xb7)](D['Tooltip'],{'title':_0x4d1235['t']('collab-client.tooltip.reconnect'),'children':_0x541765()});}var Lt=Object[_0x37d759(0x118)],Pt=(_0x412b7b,_0x35df1b,_0x5049a3,_0x25a84a)=>{const _0x399014=_0x37d759;for(var _0x29077e=_0x25a84a>0x1?void 0x0:_0x25a84a?Lt(_0x35df1b,_0x5049a3):_0x35df1b,_0x170a40=_0x412b7b[_0x399014(0x1bd)]-0x1,_0x590cee;_0x170a40>=0x0;_0x170a40--)(_0x590cee=_0x412b7b[_0x170a40])&&(_0x29077e=_0x590cee(_0x29077e)||_0x29077e);return _0x29077e;},V=(_0x4ca20f,_0x40c66e)=>(_0x3c9782,_0x4a8b41)=>_0x40c66e(_0x3c9782,_0x4a8b41,_0x4ca20f);exports[_0x37d759(0x20d)]=class extends a[_0x37d759(0xa2)]{constructor(_0x172bf7,_0x5e4481,_0x19a689,_0x340351){const _0x5d1f95=_0x37d759;super(),h(this,_0x5d1f95(0x171),new d['BehaviorSubject'](u[_0x5d1f95(0x123)][_0x5d1f95(0xbd)])),(this[_0x5d1f95(0x18c)]=_0x172bf7,this[_0x5d1f95(0x188)]=_0x5e4481,this[_0x5d1f95(0x1a0)]=_0x19a689,this[_0x5d1f95(0x185)]=_0x340351,this[_0x5d1f95(0x86)](),this[_0x5d1f95(0x1df)]());}['_initStatusListener'](){const _0x34397e=_0x37d759;this['disposeWithMe'](this['_univerInstanceService'][_0x34397e(0x91)][_0x34397e(0x2f2)](d[_0x34397e(0xf6)](()=>{const _0x13f221=_0x34397e,_0x2df1a2=this[_0x13f221(0x18c)]['getFocusedUnit']();return _0x2df1a2?this[_0x13f221(0x1a0)]['getCollabEntity$'](_0x2df1a2[_0x13f221(0x204)]()):d['of'](null);}),d[_0x34397e(0xf6)](_0x8b567e=>_0x8b567e?_0x8b567e['status$']:d['of'](u[_0x34397e(0x123)][_0x34397e(0xbd)])))[_0x34397e(0xb8)](_0x958294=>{const _0x2608ca=_0x34397e;this[_0x2608ca(0x171)][_0x2608ca(0x2e9)](_0x958294);}));}[_0x37d759(0x86)](){const _0xb71b61=_0x37d759;this[_0xb71b61(0xfc)](this['_uiPartsService'][_0xb71b61(0x25d)](O['BuiltInUIPart'][_0xb71b61(0x284)],()=>O['connectInjector'](wt({'status$':this[_0xb71b61(0x171)][_0xb71b61(0x14a)]()}),this[_0xb71b61(0x188)])));}},exports[_0x37d759(0x20d)]=Pt([V(0x0,a[_0x37d759(0x292)]),V(0x1,a['Inject'](a[_0x37d759(0x2af)])),V(0x2,a['Inject'](u[_0x37d759(0x124)])),V(0x3,O[_0x37d759(0x201)])],exports[_0x37d759(0x20d)]);function wt(_0x276c1c){const {status$:_0x5aeac3}=_0x276c1c;return function(){const _0x428378=_0x5944;return P[_0x428378(0xb7)](xe,{'status$':_0x5aeac3});};}var At=Object[_0x37d759(0x118)],yt=(_0x17184d,_0x3c9fe8,_0x24b07e,_0x30230f)=>{const _0x83c027=_0x37d759;for(var _0x1a6949=_0x30230f>0x1?void 0x0:_0x30230f?At(_0x3c9fe8,_0x24b07e):_0x3c9fe8,_0x536fc5=_0x17184d[_0x83c027(0x1bd)]-0x1,_0x17f4a4;_0x536fc5>=0x0;_0x536fc5--)(_0x17f4a4=_0x17184d[_0x536fc5])&&(_0x1a6949=_0x17f4a4(_0x1a6949)||_0x1a6949);return _0x1a6949;},y=(_0x41896a,_0xc89ef0)=>(_0x32a0e9,_0x4aa676)=>_0xc89ef0(_0x32a0e9,_0x4aa676,_0x41896a);let q=class extends a[_0x37d759(0xa2)]{constructor(_0x4f1bc9,_0x2dfd1f,_0x56d9a3,_0x125724,_0x57be33,_0x550298){const _0x449b3e=_0x37d759;super(),this[_0x449b3e(0x2e2)]=_0x4f1bc9,this['_localCacheService']=_0x2dfd1f,this['_collaborationUIEventService']=_0x56d9a3,this[_0x449b3e(0xd5)]=_0x125724,this[_0x449b3e(0x1af)]=_0x57be33,this[_0x449b3e(0x183)]=_0x550298,this[_0x449b3e(0x262)](),this[_0x449b3e(0x219)]();}['_setupBeforeClosingHandler'](){const _0x4fb24f=_0x37d759;this[_0x4fb24f(0xfc)](this[_0x4fb24f(0x2e2)][_0x4fb24f(0x2d9)](()=>{const _0x57cca1=_0x4fb24f;if(this['_localCacheService']['saveTaskMap'][_0x57cca1(0x1bb)])return this[_0x57cca1(0x183)]['t'](_0x57cca1(0x228));}));}[_0x37d759(0x219)](){const _0x57af8a=_0x37d759;this[_0x57af8a(0xfc)](this[_0x57af8a(0x129)]['event$']['subscribe'](_0x11f667=>{const _0x575675=_0x57af8a;_0x11f667['id']===u[_0x575675(0xe9)][_0x575675(0x2d6)]&&this[_0x575675(0xd5)]['show']({'type':D[_0x575675(0x249)]['Warning'],'content':this[_0x575675(0x183)]['t'](_0x575675(0x184))}),_0x11f667['id']===u[_0x575675(0xe9)][_0x575675(0xeb)]&&this[_0x575675(0xd5)]['show']({'type':D[_0x575675(0x249)]['Warning'],'content':this[_0x575675(0x183)]['t'](_0x575675(0x1bf))}),_0x11f667['id']===u[_0x575675(0xe9)]['PERMISSION_DENIED']&&this[_0x575675(0x1af)][_0x575675(0x23a)]({'title':this[_0x575675(0x183)]['t'](_0x575675(0x222)),'content':this['_localeService']['t'](_0x575675(0x270)),'type':_0x575675(0x2a0),'duration':0x0}),_0x11f667['id']===u[_0x575675(0xe9)][_0x575675(0xdf)]&&this[_0x575675(0xd5)][_0x575675(0x23a)]({'type':D['MessageType'][_0x575675(0x8a)],'content':this[_0x575675(0x183)]['t'](_0x575675(0x1bf))+'('+_0x11f667[_0x575675(0x24d)]+')'}),_0x11f667['id']===u[_0x575675(0xe9)][_0x575675(0x102)]&&this[_0x575675(0xd5)][_0x575675(0x23a)]({'type':D[_0x575675(0x249)]['Warning'],'content':this[_0x575675(0x183)]['t'](_0x11f667[_0x575675(0x24d)]||'')}),_0x11f667['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x575675(0xd5)][_0x575675(0x23a)]({'type':D[_0x575675(0x249)][_0x575675(0x7b)],'content':this[_0x575675(0x183)]['t'](_0x575675(0x2ae))}),_0x11f667['id']===u[_0x575675(0xe9)][_0x575675(0x17f)]&&this[_0x575675(0xd5)]['show']({'type':D[_0x575675(0x249)][_0x575675(0x8a)],'content':this['_localeService']['t'](_0x575675(0x28c))}),_0x11f667['id']===u[_0x575675(0xe9)][_0x575675(0x14c)]&&this['_messageService'][_0x575675(0x23a)]({'type':D['MessageType'][_0x575675(0x8a)],'content':this[_0x575675(0x183)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,O[_0x37d759(0x1c6)]),y(0x1,u[_0x37d759(0x223)]),y(0x2,a[_0x37d759(0x9a)](u[_0x37d759(0x178)])),y(0x3,O[_0x37d759(0x1e2)]),y(0x4,O['INotificationService']),y(0x5,a[_0x37d759(0x9a)](a[_0x37d759(0x142)]))],q);const $t=_0x37d759(0x212),Ue={},Ee=a['createIdentifier'](_0x37d759(0x2c6));var xt=Object[_0x37d759(0x118)],Bt=(_0x2fbc52,_0x2810dd,_0xaa3281,_0x235bfb)=>{const _0x57ed1b=_0x37d759;for(var _0x37234a=_0x235bfb>0x1?void 0x0:_0x235bfb?xt(_0x2810dd,_0xaa3281):_0x2810dd,_0x493f47=_0x2fbc52[_0x57ed1b(0x1bd)]-0x1,_0x590397;_0x493f47>=0x0;_0x493f47--)(_0x590397=_0x2fbc52[_0x493f47])&&(_0x37234a=_0x590397(_0x37234a)||_0x37234a);return _0x37234a;},F=(_0x1cf86e,_0x2d5f16)=>(_0x3b2292,_0x121383)=>_0x2d5f16(_0x3b2292,_0x121383,_0x1cf86e);exports[_0x37d759(0x83)]=class extends a[_0x37d759(0x1d4)]{constructor(_0x35b0b2,_0x5e1274,_0x12289d,_0x9cf9ef,_0x383f2f){const _0xa03332=_0x37d759;super(),this[_0xa03332(0x1e1)]=_0x35b0b2,this['_logService']=_0x5e1274,this[_0xa03332(0x2ca)]=_0x12289d,this['_dataLoaderService']=_0x9cf9ef,_0x383f2f?_0x383f2f==null||_0x383f2f[_0xa03332(0x1d9)]()[_0xa03332(0xcd)](()=>this[_0xa03332(0xb9)]()):(this[_0xa03332(0x1cc)][_0xa03332(0x2e5)]('[CollaborationDataLoaderController]',_0xa03332(0x2db)),this['_init']());}async['_init'](){const _0x13d554=_0x37d759,_0x182f13=this[_0x13d554(0x1e1)][_0x13d554(0x164)](_0x13d554(0x2ac)),_0x49aa85=this[_0x13d554(0x1e1)][_0x13d554(0x164)](_0x13d554(0xd3)),_0x398e7a=this[_0x13d554(0x1e1)][_0x13d554(0x164)](_0x13d554(0x108));if(!_0x182f13||!_0x49aa85){this[_0x13d554(0x1cc)][_0x13d554(0x2e5)](_0x13d554(0x97),_0x13d554(0x1a5));return;}const _0x4f55a1=await this['_dataLoaderService'][_0x13d554(0x1c4)](_0x182f13,Number(_0x49aa85),_0x398e7a);_0x4f55a1&&_0x4f55a1 instanceof a[_0x13d554(0x20c)]&&this['_setupSubUnitSync'](_0x4f55a1);}async[_0x37d759(0xbe)](_0x2322ab){const _0x1b388b=_0x37d759;await this[_0x1b388b(0xee)](_0x2322ab),_0x2322ab[_0x1b388b(0x18f)][_0x1b388b(0x2f2)](d[_0x1b388b(0x163)](this['dispose$']))['subscribe'](_0x4f010e=>{_0x4f010e&&this['_updateURLWithCurrentState'](_0x4f010e);}),this[_0x1b388b(0x1e1)][_0x1b388b(0x255)][_0x1b388b(0x2f2)](d[_0x1b388b(0x163)](this['dispose$']))[_0x1b388b(0xb8)](()=>this[_0x1b388b(0xee)](_0x2322ab));}['_updateURLWithCurrentState'](_0x4092b1,_0x51f0e7=!0x1){const _0x13b619=_0x37d759,_0x3fead0=this[_0x13b619(0x1e1)][_0x13b619(0x164)](_0x13b619(0x108));_0x4092b1['getSheetId']()!==_0x3fead0&&this[_0x13b619(0x1e1)][_0x13b619(0x11a)](_0x13b619(0x108),_0x4092b1['getSheetId'](),_0x51f0e7);}async[_0x37d759(0xee)](_0x2204eb){const _0x240bc9=_0x37d759;var _0x2c4801;const _0x1140a5=this[_0x240bc9(0x1e1)][_0x240bc9(0x164)](_0x240bc9(0x108));if(!_0x1140a5||!_0x2204eb[_0x240bc9(0x1ab)](_0x1140a5)){const _0x33d2c9=_0x2204eb['getUnhiddenWorksheets']()[0x0],_0x56c6b8=_0x2204eb[_0x240bc9(0x1ab)](_0x33d2c9);if(!_0x56c6b8)return;this[_0x240bc9(0x131)](_0x56c6b8,!0x0),await this[_0x240bc9(0x2ca)][_0x240bc9(0x1ca)](g[_0x240bc9(0x1da)]['id'],{'unitId':_0x2204eb[_0x240bc9(0x204)](),'subUnitId':_0x33d2c9});return;}((_0x2c4801=_0x2204eb[_0x240bc9(0x2a7)]())==null?void 0x0:_0x2c4801[_0x240bc9(0x24a)]())!==_0x1140a5&&await this[_0x240bc9(0x2ca)][_0x240bc9(0x1ca)](g[_0x240bc9(0x1da)]['id'],{'unitId':_0x2204eb[_0x240bc9(0x204)](),'subUnitId':_0x1140a5});}},exports[_0x37d759(0x83)]=Bt([F(0x0,Ee),F(0x1,a[_0x37d759(0x237)]),F(0x2,a[_0x37d759(0x1cb)]),F(0x3,a[_0x37d759(0x9a)](u[_0x37d759(0x1b3)])),F(0x4,a[_0x37d759(0x12f)](Ke['IRemoteInstanceService']))],exports[_0x37d759(0x83)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x26fb9d,_0x84f4e1,_0x115971,_0x584f24)=>{const _0x1713c3=_0x37d759;for(var _0x4eedc4=_0x584f24>0x1?void 0x0:_0x584f24?jt(_0x84f4e1,_0x115971):_0x84f4e1,_0x1602c4=_0x26fb9d[_0x1713c3(0x1bd)]-0x1,_0x32fa47;_0x1602c4>=0x0;_0x1602c4--)(_0x32fa47=_0x26fb9d[_0x1602c4])&&(_0x4eedc4=_0x32fa47(_0x4eedc4)||_0x4eedc4);return _0x4eedc4;},ce=(_0x5653e7,_0x3919de)=>(_0x2e000c,_0x581c7b)=>_0x3919de(_0x2e000c,_0x581c7b,_0x5653e7);let z=class{constructor(_0x24b23,_0x2f8a53,_0x389dd4){const _0x1df194=_0x37d759;this[_0x1df194(0x188)]=_0x24b23,this[_0x1df194(0x210)]=_0x2f8a53,this[_0x1df194(0x120)]=_0x389dd4;}[_0x37d759(0x264)](_0x27d1ab){const _0x4b3aac=_0x37d759;this[_0x4b3aac(0xf4)](_0x27d1ab),this[_0x4b3aac(0x170)](_0x27d1ab);}['transformRemoteChangeset'](_0x245dd3){const _0x38f663=_0x37d759,{unitID:_0x3df75f}=_0x245dd3,_0x25c4c5=this['_renderManagerService']['getRenderById'](_0x3df75f)[_0x38f663(0x23e)](E[_0x38f663(0x110)]),{redoCache:_0xc8467c}=_0x25c4c5['getUndoRedoMutationParamsCache']();if(_0xc8467c[_0x38f663(0x1bd)]===0x0)return _0x245dd3;let _0x55c063=a[_0x38f663(0x159)][_0x38f663(0x11d)](_0x245dd3['mutations'][0x0]);for(let _0x2de3a5=0x0;_0x2de3a5<_0xc8467c[_0x38f663(0x1bd)];_0x2de3a5++){const _0x2d2df6={'id':_0x38f663(0x218),'params':{..._0xc8467c[_0x2de3a5]}},_0x4d556f=this['_transformService'][_0x38f663(0xac)](_0x55c063,_0x2d2df6,!0x1);if(m[_0x38f663(0xe3)](_0x4d556f))throw _0x4d556f[_0x38f663(0x2a0)];_0x55c063=_0x4d556f[_0x38f663(0x2cc)];}return{...a[_0x38f663(0x159)][_0x38f663(0x11d)](_0x245dd3),'mutations':[_0x55c063]};}['_transformUndoRedoStack'](_0x5b8bb5){const _0x1a7e5b=_0x37d759,{unitID:_0x45cb7e}=_0x5b8bb5,_0x1bd108=this[_0x1a7e5b(0x120)][_0x1a7e5b(0xd4)](_0x45cb7e)[_0x1a7e5b(0x23e)](E[_0x1a7e5b(0x110)]),{undoCache:_0x57fda7,redoCache:_0x5c0201}=_0x1bd108[_0x1a7e5b(0xfa)]();if(_0x57fda7[_0x1a7e5b(0x1bd)]===0x0||_0x5c0201[_0x1a7e5b(0x1bd)]===0x0)return;const _0x1d9b4c=[],_0x56be43=[];let _0x193f2c=a[_0x1a7e5b(0x159)][_0x1a7e5b(0x11d)](_0x5b8bb5['mutations'][0x0]),_0x5c3dfd=a[_0x1a7e5b(0x159)][_0x1a7e5b(0x11d)](_0x5b8bb5[_0x1a7e5b(0x248)][0x0]);for(let _0x2f1dfe=_0x57fda7[_0x1a7e5b(0x1bd)]-0x1;_0x2f1dfe>=0x0;_0x2f1dfe--){const _0xbef30c={'id':_0x1a7e5b(0x218),'params':{..._0x57fda7[_0x2f1dfe]}},_0x1cc999={'id':'doc.mutation.rich-text-editing','params':{..._0x5c0201[_0x2f1dfe]}},_0x52a2b9=this[_0x1a7e5b(0x210)][_0x1a7e5b(0xac)](_0x193f2c,_0xbef30c,!0x1),_0x3d50bd=this[_0x1a7e5b(0x210)][_0x1a7e5b(0xac)](_0x5c3dfd,_0x1cc999,!0x1);if(m[_0x1a7e5b(0xe3)](_0x52a2b9))throw _0x52a2b9[_0x1a7e5b(0x2a0)];if(m[_0x1a7e5b(0xe3)](_0x3d50bd))throw _0x3d50bd[_0x1a7e5b(0x2a0)];_0x1d9b4c['unshift'](_0x52a2b9[_0x1a7e5b(0x1b6)][_0x1a7e5b(0x17d)]),_0x56be43[_0x1a7e5b(0x2bc)](_0x3d50bd['m2Prime'][_0x1a7e5b(0x17d)]),_0x193f2c=_0x52a2b9[_0x1a7e5b(0x2cc)],_0x5c3dfd=_0x3d50bd[_0x1a7e5b(0x2cc)];}_0x1bd108[_0x1a7e5b(0x1ff)]({'undoCache':_0x1d9b4c,'redoCache':_0x56be43});}[_0x37d759(0x170)](_0x343581){const _0x18fa13=_0x37d759,{unitID:_0x3a8aba}=_0x343581,_0x309cca=this[_0x18fa13(0x120)][_0x18fa13(0xd4)](_0x3a8aba)[_0x18fa13(0x23e)](E[_0x18fa13(0x110)]),_0x4fbb76=_0x309cca[_0x18fa13(0x149)]();if(_0x4fbb76==null)return;const _0x4cec55=[{'id':_0x18fa13(0x218),'params':{'unitId':_0x343581['unitID'],'actions':null,'textRanges':[_0x4fbb76]}}],_0x5b9acd=this[_0x18fa13(0x210)][_0x18fa13(0xd9)](_0x343581,_0x4cec55);if(!m[_0x18fa13(0x1d6)](_0x5b9acd))throw _0x5b9acd['error'];const _0x4fad91=_0x5b9acd[_0x18fa13(0x1b6)][0x0][_0x18fa13(0x17d)][_0x18fa13(0x196)];Array[_0x18fa13(0x2be)](_0x4fad91)&&_0x4fad91['length']&&_0x309cca[_0x18fa13(0x256)](_0x4fad91[0x0]);}};z=kt([ce(0x0,a[_0x37d759(0x9a)](a[_0x37d759(0x2af)])),ce(0x1,m[_0x37d759(0x143)]),ce(0x2,p[_0x37d759(0x18b)])],z);var Ft=Object[_0x37d759(0x118)],Ht=(_0x4d15fc,_0x572ddc,_0x59bb44,_0x23e151)=>{const _0x2fbddb=_0x37d759;for(var _0x26a9a7=_0x23e151>0x1?void 0x0:_0x23e151?Ft(_0x572ddc,_0x59bb44):_0x572ddc,_0x16df42=_0x4d15fc[_0x2fbddb(0x1bd)]-0x1,_0x4943a5;_0x16df42>=0x0;_0x16df42--)(_0x4943a5=_0x4d15fc[_0x16df42])&&(_0x26a9a7=_0x4943a5(_0x26a9a7)||_0x26a9a7);return _0x26a9a7;},le=(_0x2baf19,_0x1eff45)=>(_0x30b425,_0x2f83bb)=>_0x1eff45(_0x30b425,_0x2f83bb,_0x2baf19);let J=class{constructor(_0x40ceda,_0x181f42,_0x519eee){const _0x17bbd7=_0x37d759;this[_0x17bbd7(0x188)]=_0x40ceda,this[_0x17bbd7(0x210)]=_0x181f42,this[_0x17bbd7(0x221)]=_0x519eee;}[_0x37d759(0x85)](_0x375f14){this['_transformHistoryAndStateStack'](_0x375f14);}[_0x37d759(0x2a3)](_0x4a7960){const _0x289215=_0x37d759,{unitID:_0x541884}=_0x4a7960,{collaboration:_0xe6c99a}=this[_0x289215(0x221)]['getStateCache'](_0x541884);if(_0xe6c99a['length']===0x0)return _0x4a7960;let _0x5d6161=a[_0x289215(0x159)]['deepClone'](_0x4a7960[_0x289215(0x248)][0x0]);for(let _0x462806=0x0;_0x462806<_0xe6c99a['length'];_0x462806++){const _0x20243b={'id':_0x289215(0x218),'params':{'unitId':_0xe6c99a[_0x462806]['unitId'],..._0xe6c99a[_0x462806][_0x289215(0x2dc)]}},_0x477c00=this[_0x289215(0x210)][_0x289215(0xac)](_0x5d6161,_0x20243b,!0x1);if(m['isTransformMutationFailure'](_0x477c00))throw _0x477c00[_0x289215(0x2a0)];_0x5d6161=_0x477c00[_0x289215(0x2cc)];}return{...a[_0x289215(0x159)][_0x289215(0x11d)](_0x4a7960),'mutations':[_0x5d6161]};}[_0x37d759(0x266)](_0x56490f){const _0x46b0f8=_0x37d759,{unitID:_0x50d614}=_0x56490f,{history:_0x34ee72,collaboration:_0x51315a}=this[_0x46b0f8(0x221)][_0x46b0f8(0x160)](_0x50d614);if(_0x34ee72[_0x46b0f8(0x1bd)]===0x0&&_0x51315a['length']===0x0)return;const _0x42d192=[],_0x590302=[];let _0x2609cd=a['Tools'][_0x46b0f8(0x11d)](_0x56490f[_0x46b0f8(0x248)][0x0]),_0x246bfc=a[_0x46b0f8(0x159)]['deepClone'](_0x56490f[_0x46b0f8(0x248)][0x0]);for(let _0xad9e13=_0x34ee72[_0x46b0f8(0x1bd)]-0x1;_0xad9e13>=0x0;_0xad9e13--){const _0x2f095d={'id':_0x46b0f8(0x218),'params':{'unitId':_0x34ee72[_0xad9e13][_0x46b0f8(0x1fb)],..._0x34ee72[_0xad9e13][_0x46b0f8(0xb0)]}},_0xa6ed2f={'id':_0x46b0f8(0x218),'params':{'unitId':_0x34ee72[_0xad9e13]['unitId'],..._0x34ee72[_0xad9e13][_0x46b0f8(0x2dc)]}},_0x12c373=this[_0x46b0f8(0x210)]['transformMutation'](_0x2609cd,_0x2f095d,!0x1),_0x36710d=this[_0x46b0f8(0x210)]['transformMutation'](_0x246bfc,_0xa6ed2f,!0x1);if(m[_0x46b0f8(0xe3)](_0x12c373))throw _0x12c373['error'];if(m[_0x46b0f8(0xe3)](_0x36710d))throw _0x36710d[_0x46b0f8(0x2a0)];_0x42d192[_0x46b0f8(0x2bc)]({..._0x34ee72[_0xad9e13],'undoState':_0x12c373['m2Prime'][_0x46b0f8(0x17d)],'redoState':_0x36710d['m2Prime'][_0x46b0f8(0x17d)]}),_0x2609cd=_0x12c373['m1Prime'],_0x246bfc=_0x36710d[_0x46b0f8(0x2cc)];}_0x2609cd=a[_0x46b0f8(0x159)][_0x46b0f8(0x11d)](_0x56490f[_0x46b0f8(0x248)][0x0]),_0x246bfc=a['Tools'][_0x46b0f8(0x11d)](_0x56490f[_0x46b0f8(0x248)][0x0]);for(let _0x5b1e7d=_0x51315a['length']-0x1;_0x5b1e7d>=0x0;_0x5b1e7d--){const _0x2737b9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x51315a[_0x5b1e7d]['unitId'],..._0x51315a[_0x5b1e7d][_0x46b0f8(0xb0)]}},_0x3ffbac={'id':_0x46b0f8(0x218),'params':{'unitId':_0x51315a[_0x5b1e7d][_0x46b0f8(0x1fb)],..._0x51315a[_0x5b1e7d]['redoState']}},_0x229c71=this[_0x46b0f8(0x210)][_0x46b0f8(0xac)](_0x2609cd,_0x2737b9,!0x1),_0xbabc02=this['_transformService'][_0x46b0f8(0xac)](_0x246bfc,_0x3ffbac,!0x1);if(m[_0x46b0f8(0xe3)](_0x229c71))throw _0x229c71[_0x46b0f8(0x2a0)];if(m[_0x46b0f8(0xe3)](_0xbabc02))throw _0xbabc02[_0x46b0f8(0x2a0)];_0x590302[_0x46b0f8(0x2bc)]({..._0x51315a[_0x5b1e7d],'undoState':_0x229c71[_0x46b0f8(0x1b6)][_0x46b0f8(0x17d)],'redoState':_0xbabc02[_0x46b0f8(0x1b6)][_0x46b0f8(0x17d)]}),_0x2609cd=_0x229c71['m1Prime'],_0x246bfc=_0xbabc02[_0x46b0f8(0x2cc)];}this['_docStateChangeManagerService'][_0x46b0f8(0x134)](_0x50d614,{'history':_0x42d192,'collaboration':_0x590302});}};J=Ht([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x37d759(0x143)]),le(0x2,a[_0x37d759(0x9a)](E[_0x37d759(0x19c)]))],J);var Yt=Object[_0x37d759(0x118)],Wt=(_0x284b31,_0x2818d8,_0x424977,_0x27aa)=>{const _0x2b026c=_0x37d759;for(var _0x140122=_0x27aa>0x1?void 0x0:_0x27aa?Yt(_0x2818d8,_0x424977):_0x2818d8,_0xaf5700=_0x284b31[_0x2b026c(0x1bd)]-0x1,_0x44a94b;_0xaf5700>=0x0;_0xaf5700--)(_0x44a94b=_0x284b31[_0xaf5700])&&(_0x140122=_0x44a94b(_0x140122)||_0x140122);return _0x140122;},Ne=(_0x282e21,_0x499908)=>(_0x10407d,_0x3414a3)=>_0x499908(_0x10407d,_0x3414a3,_0x282e21);let Z=class{constructor(_0x402a2a,_0x5537ef){const _0x428c12=_0x37d759;this[_0x428c12(0x188)]=_0x402a2a,this[_0x428c12(0x210)]=_0x5537ef;}[_0x37d759(0x20f)](_0x22f772){const _0x20482c=_0x37d759;var _0xe660f2;const _0x1f7141=this[_0x20482c(0x188)][_0x20482c(0x263)](Y[_0x20482c(0x13c)]),_0x518e3b=(_0xe660f2=_0x1f7141['getDocRanges']())!=null?_0xe660f2:[];if(_0x518e3b[_0x20482c(0x1bd)]===0x0)return;const _0x402efc=_0x22f772[_0x20482c(0x177)],_0x166812=[{'id':_0x20482c(0x218),'params':{'unitId':_0x402efc,'actions':null,'textRanges':_0x518e3b}}],_0x22d94e=this[_0x20482c(0x210)]['transformMutationsWithChangeset'](_0x22f772,_0x166812);if(!m[_0x20482c(0x1d6)](_0x22d94e))throw _0x22d94e['error'];const _0x498b09=_0x22d94e['m2Prime'][0x0]['params'][_0x20482c(0x196)];Array[_0x20482c(0x2be)](_0x498b09)&&_0x498b09[_0x20482c(0x1bd)]&&_0x1f7141[_0x20482c(0x80)](_0x498b09,{'unitId':_0x402efc,'subUnitId':_0x402efc},!0x1);}};Z=Wt([Ne(0x0,a[_0x37d759(0x9a)](a[_0x37d759(0x2af)])),Ne(0x1,m[_0x37d759(0x143)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x446f7c,_0x5259d6,_0x1420c4,_0x1f8bb8)=>{const _0x5b01dd=_0x37d759;for(var _0xf62a35=_0x1f8bb8>0x1?void 0x0:_0x1f8bb8?Vt(_0x5259d6,_0x1420c4):_0x5259d6,_0x539301=_0x446f7c[_0x5b01dd(0x1bd)]-0x1,_0x3b71f3;_0x539301>=0x0;_0x539301--)(_0x3b71f3=_0x446f7c[_0x539301])&&(_0xf62a35=_0x3b71f3(_0xf62a35)||_0xf62a35);return _0xf62a35;},N=(_0x553bf2,_0x5c4068)=>(_0x22c5ec,_0x1e9263)=>_0x5c4068(_0x22c5ec,_0x1e9263,_0x553bf2);let Q=class extends a[_0x37d759(0xa2)]{constructor(_0x4e9745,_0x21b0a0,_0x2a4fbf,_0x477043,_0x44de3f,_0x1b105b,_0x246268,_0x33472){const _0x4ba26c=_0x37d759;super(),h(this,_0x4ba26c(0x171),new d['BehaviorSubject'](u[_0x4ba26c(0x123)][_0x4ba26c(0xbd)])),(this[_0x4ba26c(0x221)]=_0x4e9745,this[_0x4ba26c(0x1a0)]=_0x21b0a0,this['_docTransformIMECacheService']=_0x2a4fbf,this[_0x4ba26c(0x294)]=_0x477043,this[_0x4ba26c(0x169)]=_0x44de3f,this[_0x4ba26c(0x1ba)]=_0x1b105b,this[_0x4ba26c(0xd5)]=_0x246268,this[_0x4ba26c(0x183)]=_0x33472,this[_0x4ba26c(0x113)]());}[_0x37d759(0x113)](){const _0x5d9512=_0x37d759;this['disposeWithMe'](this['_collaborationController'][_0x5d9512(0x225)]['subscribe'](_0x17bf3f=>{const _0x328ac=_0x5d9512,_0xa2860e=this[_0x328ac(0x221)]['docStateChange$'][_0x328ac(0xb8)](_0x1a9f48=>{const _0x3249ac=_0x328ac;if(_0x1a9f48==null)return;const {unitId:_0x72b696,redoState:_0x1d5061,commandId:_0x55a6a3}=_0x1a9f48;if(_0x72b696!==_0x17bf3f[_0x3249ac(0x177)])return;const _0x1d2621={'id':_0x55a6a3,'type':a[_0x3249ac(0x247)][_0x3249ac(0x2d4)],'params':{'unitId':_0x72b696,'actions':_0x1d5061[_0x3249ac(0x1e4)],'textRanges':null}};_0x17bf3f[_0x3249ac(0xb2)](_0x1d2621);});if(_0x17bf3f[_0x328ac(0xfc)](_0xa2860e),_0x17bf3f instanceof u[_0x328ac(0x137)]){const _0x2247ff={'onTransformIME':_0x53f062=>this['_docTransformIMECacheService']['transformIMECache'](_0x53f062),'onTransformState':_0x11f4f5=>this['_docTransformStateCacheService'][_0x328ac(0x85)](_0x11f4f5),'onTransformSelections':_0x41a42f=>this['_docTransformSelectionsService'][_0x328ac(0x20f)](_0x41a42f),'onSyncEditingCollabCursor':_0x1db0c1=>this[_0x328ac(0x1ba)][_0x328ac(0x16b)](_0x1db0c1),'onTransformRemoteChangesetByIMECache':_0x334d8d=>this[_0x328ac(0x90)]['transformRemoteChangeset'](_0x334d8d),'onTransformRemoteChangesetByStateCache':_0x11270c=>this[_0x328ac(0x294)]['transformRemoteChangeset'](_0x11270c)};_0x17bf3f[_0x328ac(0x2c3)](_0x2247ff);}}));}};Q=Xt([N(0x0,a[_0x37d759(0x9a)](E[_0x37d759(0x19c)])),N(0x1,a[_0x37d759(0x9a)](u['CollaborationController'])),N(0x2,a[_0x37d759(0x9a)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x37d759(0x9a)](Z)),N(0x5,a[_0x37d759(0x9a)](Ce)),N(0x6,O[_0x37d759(0x1e2)]),N(0x7,a[_0x37d759(0x9a)](a[_0x37d759(0x142)]))],Q);var Gt=Object[_0x37d759(0x118)],Kt=(_0x53b09c,_0x54050f,_0x1b855b,_0x3899f3)=>{const _0x199c2c=_0x37d759;for(var _0x237f17=_0x3899f3>0x1?void 0x0:_0x3899f3?Gt(_0x54050f,_0x1b855b):_0x54050f,_0x34f1f4=_0x53b09c[_0x199c2c(0x1bd)]-0x1,_0xd03225;_0x34f1f4>=0x0;_0x34f1f4--)(_0xd03225=_0x53b09c[_0x34f1f4])&&(_0x237f17=_0xd03225(_0x237f17)||_0x237f17);return _0x237f17;},_e=(_0x4c8fb1,_0xe78367)=>(_0x259009,_0xc7fb85)=>_0xe78367(_0x259009,_0xc7fb85,_0x4c8fb1);let ge=class extends a[_0x37d759(0xa2)]{constructor(_0x3bf8d0,_0x5a2549,_0x27a766){const _0x42675a=_0x37d759;super(),h(this,_0x42675a(0x125),new Map()),h(this,_0x42675a(0xc2),new Map()),h(this,_0x42675a(0x19f),!0x1),(this['_configService']=_0x3bf8d0,this[_0x42675a(0x27e)]=_0x5a2549,this[_0x42675a(0x154)]=_0x27a766);}[_0x37d759(0x98)](){const _0x1e73a2=_0x37d759;this[_0x1e73a2(0x19f)]=!0x0;}['enableLocalCache'](){const _0x440180=_0x37d759;this[_0x440180(0x19f)]=!0x1;}get[_0x37d759(0x12e)](){const _0x52ec02=_0x37d759;return this[_0x52ec02(0xc2)];}[_0x37d759(0x92)](){const _0x46bd5f=_0x37d759;this[_0x46bd5f(0x114)]()[_0x46bd5f(0xcd)](()=>super[_0x46bd5f(0x92)]());}async[_0x37d759(0x20e)](_0x1e58b5){const _0x6b9123=_0x37d759;return this[_0x6b9123(0x19f)]?null:this[_0x6b9123(0x27e)][_0x6b9123(0x189)](u[_0x6b9123(0x155)](_0x1e58b5));}async[_0x37d759(0x10b)](_0x599e34,_0x2d9295){const _0x4a723a=_0x37d759;return!!this[_0x4a723a(0x27e)]['setItem'](_0x599e34,_0x2d9295);}[_0x37d759(0xae)](_0xe5c3ac,_0x39ad01,_0x3f8803,_0x2106f1){const _0x3165c7=_0x37d759,_0x5048cb=this[_0x3165c7(0x154)][_0x3165c7(0x27b)](_0xe5c3ac);this[_0x3165c7(0x125)][_0x3165c7(0xc1)](_0xe5c3ac,{'unitID':_0xe5c3ac,'type':_0x39ad01,'awaitingChangeset':_0x3f8803,'mutations':_0x2106f1,'rev':_0x5048cb}),this[_0x3165c7(0xc2)][_0x3165c7(0x2cb)](_0xe5c3ac)||this['_scheduleSaving'](_0xe5c3ac);}[_0x37d759(0x127)](_0x480165){const _0x4cedef=_0x37d759,_0x31c79d=this['_getSaveTimeout']();_0x31c79d===0x0?this[_0x4cedef(0x1f9)](_0x480165):this[_0x4cedef(0xc2)][_0x4cedef(0xc1)](_0x480165,setTimeout(()=>this['_saveCache'](_0x480165),_0x31c79d));}[_0x37d759(0x144)](){const _0x3b1e5f=_0x37d759;var _0x4433e2;return(_0x4433e2=this[_0x3b1e5f(0x250)][_0x3b1e5f(0x25c)](u[_0x3b1e5f(0x14d)]))!=null?_0x4433e2:u[_0x3b1e5f(0x186)];}['_saveCache'](_0x3d4e0a){const _0x425e8f=_0x37d759,_0x2c4d3a=this[_0x425e8f(0xc2)][_0x425e8f(0x263)](_0x3d4e0a);return _0x2c4d3a!==void 0x0&&window[_0x425e8f(0x215)](_0x2c4d3a),this[_0x425e8f(0x27e)][_0x425e8f(0x2dd)](u['getLocalCacheKey'](_0x3d4e0a),this[_0x425e8f(0x125)][_0x425e8f(0x263)](_0x3d4e0a))[_0x425e8f(0xcd)](()=>this['_saveTaskMap'][_0x425e8f(0x1a4)](_0x3d4e0a));}async['exhaustSavingTask'](){const _0x542d95=_0x37d759,_0x1c3d4d=[];this[_0x542d95(0xc2)][_0x542d95(0x173)]((_0x22b426,_0xe3c9c3)=>{const _0x44dd31=_0x542d95;window[_0x44dd31(0x215)](_0x22b426),_0x1c3d4d[_0x44dd31(0x229)](this[_0x44dd31(0x1f9)](_0xe3c9c3)[_0x44dd31(0xcd)](()=>{const _0x3f4505=_0x44dd31;this[_0x3f4505(0xc2)][_0x3f4505(0x1a4)](_0xe3c9c3);}));}),await Promise['all'](_0x1c3d4d);}};ge=Kt([_e(0x0,a[_0x37d759(0x2d7)]),_e(0x1,a[_0x37d759(0x135)]),_e(0x2,a[_0x37d759(0x9a)](m[_0x37d759(0x190)]))],ge);class Be extends a[_0x37d759(0x1d4)]{constructor(){const _0x3a3ffa=_0x37d759;super(),h(this,_0x3a3ffa(0x255)),this[_0x3a3ffa(0x255)]=d[_0x3a3ffa(0x1ec)](window,_0x3a3ffa(0x251))['pipe'](d[_0x3a3ffa(0x163)](this[_0x3a3ffa(0x280)]),d[_0x3a3ffa(0x278)](0x1),d['mapTo'](void 0x0));}[_0x37d759(0x11a)](_0x43b64b,_0x5215b7,_0x24b15c=!0x1){const _0x438918=_0x37d759,_0x4a705a=new URL(window[_0x438918(0x259)][_0x438918(0x179)]);_0x4a705a['searchParams'][_0x438918(0xc1)](_0x43b64b,_0x5215b7),_0x24b15c?window[_0x438918(0x23d)][_0x438918(0x153)]('','',_0x4a705a[_0x438918(0x29b)]()):window[_0x438918(0x23d)][_0x438918(0x21c)]('','',_0x4a705a[_0x438918(0x29b)]());}[_0x37d759(0x282)](_0x12fcbb,_0x47f134=!0x1){const _0x411d5a=_0x37d759,_0x59ce2c=new URL(window[_0x411d5a(0x259)][_0x411d5a(0x179)]);_0x59ce2c[_0x411d5a(0x2ee)]['delete'](_0x12fcbb),_0x47f134?window['history']['replaceState']('','',_0x59ce2c[_0x411d5a(0x29b)]()):window['history'][_0x411d5a(0x21c)]('','',_0x59ce2c['toString']());}[_0x37d759(0x164)](_0x2e2d8f){const _0x469b33=_0x37d759;var _0x2d585e;return(_0x2d585e=new URL(window['location'][_0x469b33(0x179)])[_0x469b33(0x2ee)][_0x469b33(0x263)](_0x2e2d8f))!=null?_0x2d585e:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x37d759(0x118)],Jt=(_0x239250,_0x297725,_0x25c23f)=>_0x297725 in _0x239250?qt(_0x239250,_0x297725,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25c23f}):_0x239250[_0x297725]=_0x25c23f,Zt=(_0x243bd8,_0x2fe55b,_0x5e6486,_0x292b31)=>{const _0x4fe143=_0x37d759;for(var _0x171665=_0x292b31>0x1?void 0x0:_0x292b31?zt(_0x2fe55b,_0x5e6486):_0x2fe55b,_0x28b5ad=_0x243bd8[_0x4fe143(0x1bd)]-0x1,_0x363e93;_0x28b5ad>=0x0;_0x28b5ad--)(_0x363e93=_0x243bd8[_0x28b5ad])&&(_0x171665=_0x363e93(_0x171665)||_0x171665);return _0x171665;},he=(_0x36e1c9,_0x277f7e)=>(_0x376a81,_0x247773)=>_0x277f7e(_0x376a81,_0x247773,_0x36e1c9),Qt=(_0x334f27,_0x4bbe54,_0x4872c0)=>Jt(_0x334f27,_0x4bbe54+'',_0x4872c0);const es=_0x37d759(0x103);exports[_0x37d759(0x27a)]=class extends a[_0x37d759(0xa0)]{constructor(_0x38cb91=Ue,_0x27a14b,_0x105686,_0x1c67c4){const _0x424119=_0x37d759;super(),this['_config']=_0x38cb91,this['_renderManagerService']=_0x27a14b,this[_0x424119(0x188)]=_0x105686,this['_configService']=_0x1c67c4;const {..._0x471b6c}=a[_0x424119(0xf0)]({},Ue,this[_0x424119(0x1ee)]);this[_0x424119(0x250)][_0x424119(0x166)]($t,_0x471b6c);}['onStarting'](){const _0x177dab=_0x37d759;this[_0x177dab(0xec)](),this['_initDependencies']();}[_0x37d759(0x1ea)](){const _0x584287=_0x37d759;this[_0x584287(0x23f)]();}['_registerDependencies'](){const _0x314085=_0x37d759;var _0x27ad1a;const _0x2aeeb9=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G['ISocketService'],{'useClass':G[_0x314085(0x9e)]}],[u[_0x314085(0x223)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x314085(0x83)]]];a[_0x314085(0x2a8)](this[_0x314085(0x188)],a['mergeOverrideWithDependencies'](_0x2aeeb9,(_0x27ad1a=this[_0x314085(0x1ee)])==null?void 0x0:_0x27ad1a[_0x314085(0x275)]));}[_0x37d759(0x23f)](){const _0xa0b454=_0x37d759;this['disposeWithMe'](this[_0xa0b454(0x120)][_0xa0b454(0x23c)](a[_0xa0b454(0x95)][_0xa0b454(0x22f)],[fe])),this[_0xa0b454(0xfc)](this[_0xa0b454(0x120)][_0xa0b454(0x23c)](a[_0xa0b454(0x95)][_0xa0b454(0xe8)],[ve]));}[_0x37d759(0x252)](){const _0x1c510a=_0x37d759;a[_0x1c510a(0x26e)](this['_injector'],[[x],[exports[_0x1c510a(0x20d)]],[Q],[q],[exports[_0x1c510a(0x83)]]]);}},Qt(exports[_0x37d759(0x27a)],_0x37d759(0x2b7),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x37d759(0x16a)](u[_0x37d759(0x112)]),he(0x1,p[_0x37d759(0x18b)]),he(0x2,a[_0x37d759(0x9a)](a[_0x37d759(0x2af)])),he(0x3,a['IConfigService'])],exports[_0x37d759(0x27a)]);var ts=Object[_0x37d759(0x118)],ss=(_0x53a162,_0x299f39,_0x20de70,_0x3a77d3)=>{const _0x5493d8=_0x37d759;for(var _0x535b0c=_0x3a77d3>0x1?void 0x0:_0x3a77d3?ts(_0x299f39,_0x20de70):_0x299f39,_0x288151=_0x53a162[_0x5493d8(0x1bd)]-0x1,_0x949221;_0x288151>=0x0;_0x288151--)(_0x949221=_0x53a162[_0x288151])&&(_0x535b0c=_0x949221(_0x535b0c)||_0x535b0c);return _0x535b0c;},H=(_0x130a4e,_0x169d89)=>(_0x2340ca,_0x3dea52)=>_0x169d89(_0x2340ca,_0x3dea52,_0x130a4e);exports[_0x37d759(0xf3)]=class extends u[_0x37d759(0x22d)]{constructor(_0x1c5478,_0x189411,_0x206fda,_0x1c933f,_0x127afb){super(_0x1c5478,_0x189411,_0x206fda,_0x1c933f,_0x127afb);}async[_0x37d759(0x29e)](_0x44f630){const _0x3fd14c=_0x37d759,_0x2225b3=await this[_0x3fd14c(0x22c)](),_0x3987a0=this[_0x3fd14c(0x290)](_0x44f630,_0x2225b3);return this['_doCreateSocket'](_0x3987a0);}['_createSocketURL'](_0x17c82a,_0x559c36){const _0x5793e9=_0x37d759,_0x2a4206=typeof window>'u'?new URL(_0x17c82a):new URL(_0x17c82a,window[_0x5793e9(0x259)][_0x5793e9(0x2bb)]);_0x2a4206[_0x5793e9(0x2ee)][_0x5793e9(0xc1)]('sessionTicket',_0x559c36);const _0x38ee0c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x38ee0c['get']('runId')&&_0x2a4206[_0x5793e9(0x2ee)][_0x5793e9(0xc1)](_0x5793e9(0x2de),_0x38ee0c['get'](_0x5793e9(0x2de))),_0x2a4206[_0x5793e9(0x29b)]();}async[_0x37d759(0x22c)](){const _0x5abc66=_0x37d759;var _0x43f59e,_0x14cba7,_0x3584a0;const _0x545ae0=this[_0x5abc66(0x250)][_0x5abc66(0x25c)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x159fdd=(_0x43f59e=_0x545ae0==null?void 0x0:_0x545ae0['wsSessionTicketUrl'])!=null?_0x43f59e:u[_0x5abc66(0x254)];return(_0x3584a0=(_0x14cba7=(await this[_0x5abc66(0xe2)][_0x5abc66(0x263)](_0x159fdd,{'headers':{'Content-Type':'application/json'}}))[_0x5abc66(0x2a5)])==null?void 0x0:_0x14cba7[_0x5abc66(0x268)])!=null?_0x3584a0:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a['Inject'](a['Injector'])),H(0x1,a[_0x37d759(0x9a)](G['HTTPService'])),H(0x2,a[_0x37d759(0x2d7)]),H(0x3,a[_0x37d759(0x237)]),H(0x4,m[_0x37d759(0xc4)])],exports[_0x37d759(0xf3)]);const Me=0x7530,Le=_0x37d759(0xd0);class is extends a[_0x37d759(0xa2)]{constructor(){const _0x349dfe=_0x37d759;super(),h(this,_0x349dfe(0x1d3),a[_0x349dfe(0x121)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x349dfe(0x243),new Map()),h(this,_0x349dfe(0x272),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x349dfe(0xb9)]();}[_0x37d759(0x92)](){const _0xefdc19=_0x37d759;super[_0xefdc19(0x92)](),this[_0xefdc19(0x1c2)][_0xefdc19(0x173)]((_0x58ec3b,_0x2d283d)=>this[_0xefdc19(0x28d)](_0x2d283d)),this['_heartbeatTimer']&&window[_0xefdc19(0x152)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x50aa3e){return this['_ensureSubject'](_0x50aa3e)['pipe'](d['distinctUntilChanged']());}['editingUnit'](_0x486528){const _0x261949=_0x37d759;this[_0x261949(0x126)]['size']===0x0&&this[_0x261949(0x197)](),this[_0x261949(0x126)][_0x261949(0x172)](_0x486528),this['_send']({'type':0x0,'memberID':this[_0x261949(0x1d3)],'unitIDs':[_0x486528],'isForwarded':!0x1});}['disposeUnit'](_0x17928c){const _0x14556e=_0x37d759;this[_0x14556e(0x126)]['delete'](_0x17928c),this['_selfUnitIDs'][_0x14556e(0x1bb)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x14556e(0x272)]);}['_init'](){const _0x28ae94=_0x37d759;this['disposeWithMe'](a[_0x28ae94(0xa1)](d['fromEvent'](window,_0x28ae94(0x277))[_0x28ae94(0xb8)](_0x1df2de=>{const _0x3d1e86=_0x28ae94;if(_0x1df2de[_0x3d1e86(0xc5)]!==Le||!_0x1df2de[_0x3d1e86(0x11c)])return;const _0x5bcfd5=JSON[_0x3d1e86(0x1fe)](_0x1df2de[_0x3d1e86(0x11c)]);this[_0x3d1e86(0x99)](_0x5bcfd5);}))),window['addEventListener'](_0x28ae94(0x7d),()=>this[_0x28ae94(0x2ab)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x28ae94(0xa6)](this[_0x28ae94(0x126)])}));}['_handleEvent'](_0x1f2a4d){const _0x5c9ffc=_0x37d759;switch(_0x1f2a4d['type']){case 0x0:this['_handleJoinEvent'](_0x1f2a4d);break;case 0x1:this[_0x5c9ffc(0xaa)](_0x1f2a4d);break;case 0x2:this[_0x5c9ffc(0x22e)](_0x1f2a4d);break;}}[_0x37d759(0x246)](_0x221559){const _0x2883f4=_0x37d759,{unitIDs:_0x344eee,memberID:_0x52076d,isForwarded:_0x1c6c26}=_0x221559;_0x344eee['forEach'](_0xb4e7c7=>{const _0x18f3aa=_0x5944;if(!_0x1c6c26&&this[_0x18f3aa(0x243)]['has'](_0xb4e7c7)&&this[_0x18f3aa(0x141)](_0xb4e7c7)[_0x18f3aa(0x2e9)](u[_0x18f3aa(0x1f2)]['OTHER_CLIENTS_EDITING']),!this[_0x18f3aa(0x243)][_0x18f3aa(0x2cb)](_0xb4e7c7)||!this[_0x18f3aa(0x243)]['get'](_0xb4e7c7)[_0x18f3aa(0x2cb)](_0x52076d)){const _0x45bd37=this[_0x18f3aa(0x243)][_0x18f3aa(0x263)](_0xb4e7c7)||new Set();_0x45bd37[_0x18f3aa(0x172)](_0x52076d),this[_0x18f3aa(0x243)]['set'](_0xb4e7c7,_0x45bd37),this['_scheduleClearOtherTimer'](_0x52076d);}}),_0x1c6c26||this['_send']({'type':0x0,'memberID':this[_0x2883f4(0x1d3)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x37d759(0x117)](_0x32cbd8){const _0x37fcf5=_0x37d759;this['_removeClearOtherTimer'](_0x32cbd8);const _0x5ea325=window[_0x37fcf5(0x104)](()=>{this['_unitOnClients']['forEach'](_0x5ae5c5=>{_0x5ae5c5['delete'](_0x32cbd8);});},Me*0x2);this['_clearOtherTimers'][_0x37fcf5(0xc1)](_0x32cbd8,_0x5ea325);}[_0x37d759(0x28d)](_0x4247f2){const _0x2bd037=_0x37d759;if(this[_0x2bd037(0x1c2)][_0x2bd037(0x2cb)](_0x4247f2)){const _0x15ab0d=this['_clearOtherTimers']['get'](_0x4247f2);_0x15ab0d&&window[_0x2bd037(0x215)](_0x15ab0d),this['_clearOtherTimers']['set'](_0x4247f2,null);}}[_0x37d759(0xaa)](_0x1b9d6c){const _0x55a031=_0x37d759,{memberID:_0x181834,unitIDs:_0xa43d89}=_0x1b9d6c;_0xa43d89[_0x55a031(0x173)](_0x36f079=>{const _0x151d6d=_0x55a031;var _0x347ad4;const _0x139b91=this[_0x151d6d(0x243)][_0x151d6d(0x263)](_0x36f079);_0x139b91&&(_0x139b91[_0x151d6d(0x1a4)](_0x181834),(_0x347ad4=this[_0x151d6d(0x141)](_0x36f079))==null||_0x347ad4[_0x151d6d(0x2e9)](_0x139b91['size']===0x0?u[_0x151d6d(0x1f2)][_0x151d6d(0x146)]:u[_0x151d6d(0x1f2)][_0x151d6d(0x7e)]));}),this[_0x55a031(0x28d)](_0x181834);}[_0x37d759(0x22e)](_0x2df771){const _0x3c6daa=_0x37d759;this[_0x3c6daa(0x117)](_0x2df771[_0x3c6daa(0x286)]);}[_0x37d759(0x2ab)](_0x242993){localStorage['setItem'](Le,JSON['stringify'](_0x242993));}[_0x37d759(0x197)](){const _0x3684ce=_0x37d759;this['_heartbeatTimer']=window[_0x3684ce(0x1b8)](()=>{const _0x1d5988=_0x3684ce;this[_0x1d5988(0x2ab)]({'type':0x2,'memberID':this[_0x1d5988(0x1d3)]});},Me);}[_0x37d759(0x141)](_0x39d759){const _0x25cf70=_0x37d759;return this[_0x25cf70(0x288)]['has'](_0x39d759)||this[_0x25cf70(0x288)][_0x25cf70(0xc1)](_0x39d759,new d[(_0x25cf70(0x213))](u[_0x25cf70(0x1f2)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x25cf70(0x288)][_0x25cf70(0x263)](_0x39d759);}}var je=(_0x280963=>(_0x280963[_0x280963[_0x37d759(0x273)]=0x0]='UNDEFINED',_0x280963[_0x280963['OK']=0x1]='OK',_0x280963[_0x280963[_0x37d759(0x24c)]=0x2]=_0x37d759(0x24c),_0x280963[_0x280963[_0x37d759(0x180)]=0x3]='PERMISSION_DENIED',_0x280963[_0x280963['NOT_FOUND']=0x4]=_0x37d759(0xbc),_0x280963[_0x280963['UNAUTHENTICATED']=0x5]=_0x37d759(0xcf),_0x280963[_0x280963[_0x37d759(0x2ce)]=0x6]='ALREADY_EXISTS',_0x280963[_0x280963[_0x37d759(0x2b0)]=0x7]=_0x37d759(0x2b0),_0x280963[_0x280963[_0x37d759(0x2f0)]=0x8]=_0x37d759(0x2f0),_0x280963[_0x280963[_0x37d759(0x1b1)]=0x9]=_0x37d759(0x1b1),_0x280963[_0x280963['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x280963[_0x280963[_0x37d759(0x12b)]=0xb]=_0x37d759(0x12b),_0x280963[_0x280963['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x37d759(0x22b),_0x280963[_0x280963[_0x37d759(0x133)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x280963[_0x280963['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x280963[_0x280963[_0x37d759(0x233)]=0x1389]=_0x37d759(0x233),_0x280963[_0x280963[_0x37d759(0x1b5)]=0x1771]=_0x37d759(0x1b5),_0x280963[_0x280963['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x280963[_0x280963['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x37d759(0x1e0),_0x280963[_0x280963[_0x37d759(0x109)]=0x1b59]='APPLY_REJECT',_0x280963[_0x280963[_0x37d759(0x150)]=0x1b5a]=_0x37d759(0x150),_0x280963[_0x280963[_0x37d759(0x105)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x280963[_0x280963[_0x37d759(0x291)]=0x1b5c]=_0x37d759(0x291),_0x280963[_0x280963['APPLY_DUPLICATED']=0x1b5d]=_0x37d759(0xaf),_0x280963[_0x280963[_0x37d759(0x1eb)]=0x1f41]=_0x37d759(0x1eb),_0x280963[_0x280963[_0x37d759(0x285)]=0x2329]=_0x37d759(0x285),_0x280963[_0x280963[_0x37d759(0x1d1)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x280963[_0x280963[_0x37d759(0x148)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x280963[_0x280963[_0x37d759(0x279)]=0x232c]=_0x37d759(0x279),_0x280963[_0x280963[_0x37d759(0x88)]=0x232d]=_0x37d759(0x88),_0x280963[_0x280963['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x280963[_0x280963[_0x37d759(0x14e)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x280963[_0x280963[_0x37d759(0x1b4)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x280963[_0x280963[_0x37d759(0x168)]=0x2714]=_0x37d759(0x168),_0x280963[_0x280963['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x37d759(0x2e8),_0x280963[_0x280963[_0x37d759(0xdb)]=0x271b]=_0x37d759(0xdb),_0x280963[_0x280963[_0x37d759(0x1d5)]=0x271c]=_0x37d759(0x1d5),_0x280963[_0x280963[_0x37d759(0x25a)]=0x271d]=_0x37d759(0x25a),_0x280963[_0x280963[_0x37d759(0xc0)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x280963[_0x280963[_0x37d759(0x1ae)]=0x271f]=_0x37d759(0x1ae),_0x280963[_0x280963[_0x37d759(0x2d3)]=0x2720]=_0x37d759(0x2d3),_0x280963[_0x280963['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x37d759(0x187),_0x280963[_0x280963[_0x37d759(0x2c0)]=0x2ee1]=_0x37d759(0x2c0),_0x280963[_0x280963[_0x37d759(0x21a)]=0x2ee2]='INVALID_INVITE_CODE',_0x280963[_0x280963[_0x37d759(0x2c8)]=0x2ee3]=_0x37d759(0x2c8),_0x280963[_0x280963[_0x37d759(0x167)]=0x2ee4]=_0x37d759(0x167),_0x280963[_0x280963[_0x37d759(0x195)]=0x2ee5]=_0x37d759(0x195),_0x280963[_0x280963[_0x37d759(0x1f7)]=0x32c9]=_0x37d759(0x1f7),_0x280963[_0x280963['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x37d759(0xb5),_0x280963[_0x280963[_0x37d759(0x2e3)]=0x32cb]=_0x37d759(0x2e3),_0x280963[_0x280963['UNRECOGNIZED']=-0x1]=_0x37d759(0x165),_0x280963))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x5399eb,_0x3253f2,_0x3c2746,_0xbf72b3)=>{const _0x353fbf=_0x37d759;for(var _0x4482fd=_0xbf72b3>0x1?void 0x0:_0xbf72b3?ns(_0x3253f2,_0x3c2746):_0x3253f2,_0x3a262d=_0x5399eb[_0x353fbf(0x1bd)]-0x1,_0x29654e;_0x3a262d>=0x0;_0x3a262d--)(_0x29654e=_0x5399eb[_0x3a262d])&&(_0x4482fd=_0x29654e(_0x4482fd)||_0x4482fd);return _0x4482fd;},ue=(_0x488550,_0x2ad875)=>(_0x24868c,_0x56da22)=>_0x2ad875(_0x24868c,_0x56da22,_0x488550);exports[_0x37d759(0x25f)]=class extends a[_0x37d759(0xa2)]{constructor(_0x2d7876,_0x520a5e,_0x3dc8b4){const _0x1ce32a=_0x37d759;super(),this[_0x1ce32a(0x1f5)]=_0x2d7876,this[_0x1ce32a(0xe2)]=_0x520a5e,this[_0x1ce32a(0x250)]=_0x3dc8b4;}async[_0x37d759(0x1f8)](_0x426fdb,_0x4d4e5c,_0x783ac9,..._0x34a253){const _0x2e7da6=_0x37d759;var _0x4efd11,_0x453ab6,_0xb40856,_0x2bbe15;const _0x594ea4=this[_0x2e7da6(0x1f5)]['getFocusedUnit']();if(!_0x594ea4)throw new Error(_0x2e7da6(0x1cf));const _0xbf19a9=((_0x4efd11=this[_0x2e7da6(0x250)]['getConfig'](u[_0x2e7da6(0x258)]))!=null?_0x4efd11:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x426fdb+'/run/'+_0x4d4e5c,_0x24da32=new URL(window[_0x2e7da6(0x259)]['href']),_0x1c71de={'scriptId':_0x426fdb,'runId':(_0x453ab6=_0x24da32[_0x2e7da6(0x2ee)][_0x2e7da6(0x263)](_0x2e7da6(0x2de)))!=null?_0x453ab6:'','function':_0x4d4e5c,'unitId':_0x594ea4['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x34a253),'invokeId':(_0xb40856=_0x783ac9[_0x2e7da6(0x157)])!=null?_0xb40856:'','executionId':(_0x2bbe15=_0x783ac9[_0x2e7da6(0x20b)])!=null?_0x2bbe15:''};try{const _0x35dd6a=await this['_httpService'][_0x2e7da6(0x2d8)](_0xbf19a9,{'body':_0x1c71de});return _0x35dd6a['body']['error']&&_0x35dd6a[_0x2e7da6(0x2a5)]['error']['code']!==je['OK']?_0x2e7da6(0x2b5):_0x35dd6a[_0x2e7da6(0x2a5)][_0x2e7da6(0x1d7)];}catch{return _0x2e7da6(0x2b5);}}},exports[_0x37d759(0x25f)]=rs([ue(0x0,a[_0x37d759(0x292)]),ue(0x1,a[_0x37d759(0x9a)](G[_0x37d759(0x244)])),ue(0x2,a[_0x37d759(0x2d7)])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=xe,exports[_0x37d759(0x2aa)]=Ee,exports[_0x37d759(0x16f)]=we,exports[_0x37d759(0x199)]=is,exports[_0x37d759(0xf8)]=Be;
@@ -1 +1 @@
1
- 'use strict';const _0x5f00ba=_0x19f3;function _0x19f3(_0x346bc7,_0x51d121){const _0x4ef303=_0x4ef3();return _0x19f3=function(_0x19f3ce,_0x27f8db){_0x19f3ce=_0x19f3ce-0x1d3;let _0x2ead1a=_0x4ef303[_0x19f3ce];return _0x2ead1a;},_0x19f3(_0x346bc7,_0x51d121);}(function(_0x8e74b4,_0x3d2fd8){const _0xd39694=_0x19f3,_0x1476cc=_0x8e74b4();while(!![]){try{const _0x5282e2=parseInt(_0xd39694(0x1e0))/0x1*(-parseInt(_0xd39694(0x1ea))/0x2)+parseInt(_0xd39694(0x1d4))/0x3*(-parseInt(_0xd39694(0x1dd))/0x4)+parseInt(_0xd39694(0x1e1))/0x5+parseInt(_0xd39694(0x1d6))/0x6*(parseInt(_0xd39694(0x1df))/0x7)+-parseInt(_0xd39694(0x1de))/0x8+-parseInt(_0xd39694(0x1e5))/0x9*(parseInt(_0xd39694(0x1d3))/0xa)+parseInt(_0xd39694(0x1d8))/0xb;if(_0x5282e2===_0x3d2fd8)break;else _0x1476cc['push'](_0x1476cc['shift']());}catch(_0x479d84){_0x1476cc['push'](_0x1476cc['shift']());}}}(_0x4ef3,0x891c1));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x5f00ba(0x1d5),'conflict':_0x5f00ba(0x1e9),'notCollab':_0x5f00ba(0x1e8),'synced':_0x5f00ba(0x1e7),'syncing':_0x5f00ba(0x1db),'offline':_0x5f00ba(0x1e6)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x5f00ba(0x1e4),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x5f00ba(0x1d7),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x5f00ba(0x1dc),'content':_0x5f00ba(0x1e3)},'collaboration':{'single-unit':{'warning':_0x5f00ba(0x1e2)},'closeRoom':_0x5f00ba(0x1d9)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x4ef3(){const _0x2e3e4d=['1535547UnzswH','Syncing\x20server\x20data...','12SBavLN','Collaboration\x20Conflict','9913486LmIZyl','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','exports','Syncing...','Authentication\x20Error','4cpOmGH','6550248ngnIpt','1002519AIOsmc','31dJmlvT','4858720BPYUQi','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','18vGkKnu','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Synced','Local\x20file','Edit\x20conflicts','18CjVTLI','1334470tIZiiv'];_0x4ef3=function(){return _0x2e3e4d;};return _0x4ef3();}module[_0x5f00ba(0x1da)]=e;
1
+ 'use strict';function _0x2bd5(){const _0x4338ab=['255262wTzEjo','Syncing...','2627586QauCcs','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','4jPVtvH','Authentication\x20Error','722874aQjQAs','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','96QKlTTx','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','11RLtLJu','exports','487790qgeGAS','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1050132dQQuhm','Synced','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','213550hTbZkP','57470UaZRfc','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Collaboration\x20Conflict'];_0x2bd5=function(){return _0x4338ab;};return _0x2bd5();}function _0x333d(_0x45702a,_0x388f3c){const _0x2bd507=_0x2bd5();return _0x333d=function(_0x333dea,_0x78eae7){_0x333dea=_0x333dea-0xa7;let _0x4d6442=_0x2bd507[_0x333dea];return _0x4d6442;},_0x333d(_0x45702a,_0x388f3c);}const _0x4d98c5=_0x333d;(function(_0x4fbd8d,_0x257536){const _0x72897c=_0x333d,_0x49a89b=_0x4fbd8d();while(!![]){try{const _0x474d7c=-parseInt(_0x72897c(0xba))/0x1*(-parseInt(_0x72897c(0xac))/0x2)+-parseInt(_0x72897c(0xb5))/0x3+parseInt(_0x72897c(0xb3))/0x4*(parseInt(_0x72897c(0xbc))/0x5)+parseInt(_0x72897c(0xbe))/0x6+-parseInt(_0x72897c(0xaf))/0x7*(parseInt(_0x72897c(0xb7))/0x8)+parseInt(_0x72897c(0xb1))/0x9+parseInt(_0x72897c(0xab))/0xa;if(_0x474d7c===_0x257536)break;else _0x49a89b['push'](_0x49a89b['shift']());}catch(_0x37b84f){_0x49a89b['push'](_0x49a89b['shift']());}}}(_0x2bd5,0x368c0));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x4d98c5(0xaa),'notCollab':_0x4d98c5(0xa8),'synced':_0x4d98c5(0xbf),'syncing':_0x4d98c5(0xb0),'offline':_0x4d98c5(0xb8)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x4d98c5(0xb9),'room-full':_0x4d98c5(0xb6),'collaboration-timeout':_0x4d98c5(0xa9)},'conflict':{'title':_0x4d98c5(0xae),'content':_0x4d98c5(0xb2)},'permission':{'title':_0x4d98c5(0xb4),'content':_0x4d98c5(0xa7)},'collaboration':{'single-unit':{'warning':_0x4d98c5(0xad)},'closeRoom':_0x4d98c5(0xbd)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};module[_0x4d98c5(0xbb)]=e;