@univerjs-pro/collaboration-client-ui 0.8.2-nightly.202506221606 → 0.8.2-nightly.202506231607

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';function _0x2dbb(){const _0xff997c=['275DeOTUb','48978rQVYDq','2110821centgA','46634566zaKQVN','9976faKWNI','@univerjs-pro/collaboration-client-ui','FUniver','35MtDbSm','RemoteUniscriptService','6666560tEsKBB','653838BqXsty','runOnServer','_injector','@univerjs/core/facade','4kUAOSt','1450TTXoQJ','extend','1525420HyRhAR'];_0x2dbb=function(){return _0xff997c;};return _0x2dbb();}const _0x32b553=_0x1aef;(function(_0x171e58,_0x58001c){const _0x4dabda=_0x1aef,_0x31f896=_0x171e58();while(!![]){try{const _0x4f1b4a=-parseInt(_0x4dabda(0x1a2))/0x1+parseInt(_0x4dabda(0x19f))/0x2*(-parseInt(_0x4dabda(0x1a5))/0x3)+parseInt(_0x4dabda(0x1a7))/0x4*(parseInt(_0x4dabda(0x1a3))/0x5)+-parseInt(_0x4dabda(0x19b))/0x6*(parseInt(_0x4dabda(0x198))/0x7)+parseInt(_0x4dabda(0x19a))/0x8+parseInt(_0x4dabda(0x1a4))/0x9*(-parseInt(_0x4dabda(0x1a0))/0xa)+parseInt(_0x4dabda(0x1a6))/0xb;if(_0x4f1b4a===_0x58001c)break;else _0x31f896['push'](_0x31f896['shift']());}catch(_0x37293f){_0x31f896['push'](_0x31f896['shift']());}}}(_0x2dbb,0xe652f));const t=require(_0x32b553(0x196)),e=require(_0x32b553(0x19e));class c extends e['FUniver']{[_0x32b553(0x19c)](_0x5ab03f,_0x291eb6,..._0xb9c43a){const _0x24960c=_0x32b553;return this[_0x24960c(0x19d)]['get'](t[_0x24960c(0x199)])[_0x24960c(0x19c)](_0x5ab03f,_0x291eb6,{},..._0xb9c43a);}}function _0x1aef(_0x52897b,_0x448a6b){const _0x2dbbdf=_0x2dbb();return _0x1aef=function(_0x1aef7c,_0x1cf1c7){_0x1aef7c=_0x1aef7c-0x196;let _0x1a2a07=_0x2dbbdf[_0x1aef7c];return _0x1a2a07;},_0x1aef(_0x52897b,_0x448a6b);}e[_0x32b553(0x197)][_0x32b553(0x1a1)](c);
1
+ 'use strict';const _0x5bafa6=_0x5270;(function(_0x34354b,_0x55d56e){const _0x17a5d6=_0x5270,_0x29daf7=_0x34354b();while(!![]){try{const _0x504d3f=parseInt(_0x17a5d6(0xca))/0x1*(-parseInt(_0x17a5d6(0xc9))/0x2)+parseInt(_0x17a5d6(0xc7))/0x3*(parseInt(_0x17a5d6(0xd2))/0x4)+parseInt(_0x17a5d6(0xce))/0x5*(-parseInt(_0x17a5d6(0xcd))/0x6)+-parseInt(_0x17a5d6(0xd4))/0x7+parseInt(_0x17a5d6(0xd0))/0x8*(-parseInt(_0x17a5d6(0xcc))/0x9)+-parseInt(_0x17a5d6(0xcf))/0xa+parseInt(_0x17a5d6(0xd1))/0xb;if(_0x504d3f===_0x55d56e)break;else _0x29daf7['push'](_0x29daf7['shift']());}catch(_0x598e44){_0x29daf7['push'](_0x29daf7['shift']());}}}(_0x4f95,0xb654c));function _0x4f95(){const _0x253c3c=['40hjpAzj','50273729KvXtoj','969620ADegHT','RemoteUniscriptService','4539521KUEmUV','runOnServer','@univerjs-pro/collaboration-client-ui','_injector','6VBHhts','FUniver','3532yGueYt','827lRBOmU','get','2297421GcwZFh','12eINxyR','1531460pQUjgw','3104070uVPnYC'];_0x4f95=function(){return _0x253c3c;};return _0x4f95();}const t=require(_0x5bafa6(0xc5)),e=require('@univerjs/core/facade');function _0x5270(_0x3d6582,_0x11e101){const _0x4f9561=_0x4f95();return _0x5270=function(_0x5270c0,_0x3d7349){_0x5270c0=_0x5270c0-0xc5;let _0x48ef7f=_0x4f9561[_0x5270c0];return _0x48ef7f;},_0x5270(_0x3d6582,_0x11e101);}class c extends e[_0x5bafa6(0xc8)]{['runOnServer'](_0x227e0c,_0x3fe219,..._0xf55e2d){const _0x2454ab=_0x5bafa6;return this[_0x2454ab(0xc6)][_0x2454ab(0xcb)](t[_0x2454ab(0xd3)])[_0x2454ab(0xd5)](_0x227e0c,_0x3fe219,{},..._0xf55e2d);}}e['FUniver']['extend'](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x926bd0=_0x18d9;(function(_0x4e25a1,_0x3a473e){const _0x1b52ce=_0x18d9,_0xd94e03=_0x4e25a1();while(!![]){try{const _0x47db42=parseInt(_0x1b52ce(0x2d4))/0x1+-parseInt(_0x1b52ce(0x1c2))/0x2+-parseInt(_0x1b52ce(0x1ff))/0x3+-parseInt(_0x1b52ce(0x270))/0x4+-parseInt(_0x1b52ce(0x23d))/0x5*(parseInt(_0x1b52ce(0x301))/0x6)+parseInt(_0x1b52ce(0x16e))/0x7*(-parseInt(_0x1b52ce(0x10c))/0x8)+parseInt(_0x1b52ce(0x173))/0x9*(parseInt(_0x1b52ce(0xe5))/0xa);if(_0x47db42===_0x3a473e)break;else _0xd94e03['push'](_0xd94e03['shift']());}catch(_0x3de270){_0xd94e03['push'](_0xd94e03['shift']());}}}(_0xdace,0xb836c));var Ve=Object[_0x926bd0(0x2f4)],Xe=(_0x3ac092,_0x3ee587,_0x31d8bc)=>_0x3ee587 in _0x3ac092?Ve(_0x3ac092,_0x3ee587,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31d8bc}):_0x3ac092[_0x3ee587]=_0x31d8bc,h=(_0x8be7f6,_0x15855c,_0x4b03e8)=>Xe(_0x8be7f6,typeof _0x15855c!=_0x926bd0(0x282)?_0x15855c+'':_0x15855c,_0x4b03e8);Object['defineProperty'](exports,Symbol[_0x926bd0(0x203)],{'value':_0x926bd0(0xed)});const u=require(_0x926bd0(0x280)),a=require(_0x926bd0(0x2e5)),p=require('@univerjs/engine-render'),G=require(_0x926bd0(0x17f)),E=require(_0x926bd0(0x11c)),Ge=require(_0x926bd0(0x294)),d=require(_0x926bd0(0x27c)),m=require(_0x926bd0(0x163)),Y=require(_0x926bd0(0x1df)),be=require(_0x926bd0(0x32b)),g=require(_0x926bd0(0x2d2)),$=require(_0x926bd0(0x2f1)),X=require(_0x926bd0(0x1a6)),P=require(_0x926bd0(0x177)),O=require(_0x926bd0(0x369)),D=require(_0x926bd0(0x228)),M=require('react'),Ke=require(_0x926bd0(0x2f5));var qe=Object[_0x926bd0(0x311)],ze=(_0x54fdb1,_0x28f8f7,_0x5e90a6,_0x50ab13)=>{const _0x20c42b=_0x926bd0;for(var _0x2be4e9=_0x50ab13>0x1?void 0x0:_0x50ab13?qe(_0x28f8f7,_0x5e90a6):_0x28f8f7,_0x40c3e4=_0x54fdb1[_0x20c42b(0x2ef)]-0x1,_0xfe1475;_0x40c3e4>=0x0;_0x40c3e4--)(_0xfe1475=_0x54fdb1[_0x40c3e4])&&(_0x2be4e9=_0xfe1475(_0x2be4e9)||_0x2be4e9);return _0x2be4e9;},Oe=(_0x5c37ea,_0x5d289a)=>(_0xd024bc,_0x4aff79)=>_0x5d289a(_0xd024bc,_0x4aff79,_0x5c37ea);let de=class extends a[_0x926bd0(0x2b5)]{constructor(_0x43804f,_0x3d11ec){const _0x3f7827=_0x926bd0;super(),this[_0x3f7827(0x1f1)]=_0x43804f,this[_0x3f7827(0xdd)]=_0x3d11ec,this[_0x3f7827(0x274)]();}['_init'](){const _0xe18079=_0x926bd0,_0x4e9a28=this;this[_0xe18079(0x2a5)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x5aff9c=>{const _0x49aa8f=_0xe18079,_0x45f3da=await _0x4e9a28[_0x49aa8f(0xdd)][_0x49aa8f(0x353)](_0x5aff9c);return _0x45f3da?{'source':_0x45f3da['source'],'imageSourceType':_0x45f3da['imageSourceType']}:null;}}));}};de=ze([Oe(0x0,E['IDocClipboardService']),Oe(0x1,Ge['IImageIoService'])],de);const Te=[_0x926bd0(0x351),_0x926bd0(0x15a),_0x926bd0(0x230),_0x926bd0(0x220),_0x926bd0(0x1e0),_0x926bd0(0x1d9)];class me extends a[_0x926bd0(0x256)]{constructor(){const _0x220d8e=_0x926bd0;super(...arguments),h(this,_0x220d8e(0x338),new Map()),h(this,_0x220d8e(0x1a9),0x0);}[_0x926bd0(0x1dd)](_0x24f0e2){const _0x2610ba=_0x926bd0;if(this[_0x2610ba(0x338)]['has'](_0x24f0e2))return this[_0x2610ba(0x338)][_0x2610ba(0x1ed)](_0x24f0e2);const _0x167f02=Te[this[_0x2610ba(0x1a9)]];return this[_0x2610ba(0x1a9)]=(this['_colorIndex']+0x1)%Te[_0x2610ba(0x2ef)],this['_assignedColors'][_0x2610ba(0x2c2)](_0x24f0e2,_0x167f02),_0x167f02;}}function Pe(_0x354e7f){let _0x2c7824='';for(const _0xadff72 of _0x354e7f){const {startOffset:_0x29e400,endOffset:_0x44739e,isActive:_0x85c2ea,rangeType:_0x72711f,segmentId:_0x55678e,segmentPage:_0x46519c}=_0xadff72;_0x2c7824['length']&&(_0x2c7824+=','),_0x2c7824+=_0x29e400+':'+_0x44739e+':'+(_0x85c2ea?'1':'0')+':'+_0x72711f+':'+_0x55678e+':'+_0x46519c;}return _0x2c7824;}function Je(_0x1ea5f8){const _0x2dfcf3=_0x926bd0,_0x3b9e2c=_0x1ea5f8[_0x2dfcf3(0x119)](','),_0x250cf5=[];for(const _0xe85bbd of _0x3b9e2c){const [_0x1b1a58,_0x1ff0da,_0x2e5e25,_0x25b8d0,_0x48056d,_0x380525]=_0xe85bbd[_0x2dfcf3(0x119)](':');_0x250cf5[_0x2dfcf3(0x14c)]({'startOffset':Number(_0x1b1a58),'endOffset':Number(_0x1ff0da),'collapsed':_0x1b1a58===_0x1ff0da,'isActive':_0x2e5e25==='1','rangeType':_0x25b8d0===a[_0x2dfcf3(0x190)][_0x2dfcf3(0xe7)]?a[_0x2dfcf3(0x190)]['TEXT']:a[_0x2dfcf3(0x190)][_0x2dfcf3(0x164)],'segmentId':typeof _0x48056d==_0x2dfcf3(0x2e7)?String(_0x48056d):'','segmentPage':Number(_0x380525!=null?_0x380525:-0x1)});}return _0x250cf5[_0x2dfcf3(0x2c3)](_0x4cb80e=>_0x4cb80e[_0x2dfcf3(0x34c)])||(_0x250cf5[0x0][_0x2dfcf3(0x34c)]=!0x0),_0x250cf5;}class Ce extends a[_0x926bd0(0x2b5)]{constructor(){const _0x144b5a=_0x926bd0;super(...arguments),h(this,_0x144b5a(0x355),new d[(_0x144b5a(0xef))](null)),h(this,_0x144b5a(0x1ce),this['_collabCursorState$'][_0x144b5a(0xf6)]());}[_0x926bd0(0x23b)](_0x1f1cad){const _0x3df6e7=_0x926bd0,{unitID:_0x19b997,memberID:_0xbf5e3,textRanges:_0x40cd95}=_0x1f1cad,_0x48f78e=Pe(_0x40cd95);if(_0x48f78e==='')return;const _0x446f2d={'unitID':_0x19b997,'memberID':_0xbf5e3,'selection':_0x48f78e};this[_0x3df6e7(0x355)][_0x3df6e7(0x33c)](_0x446f2d);}}var Ze=Object[_0x926bd0(0x311)],Qe=(_0x353931,_0x1fd4a1,_0x3d1616,_0x3e367c)=>{for(var _0x46a3dc=_0x3e367c>0x1?void 0x0:_0x3e367c?Ze(_0x1fd4a1,_0x3d1616):_0x1fd4a1,_0x297ca5=_0x353931['length']-0x1,_0x29a101;_0x297ca5>=0x0;_0x297ca5--)(_0x29a101=_0x353931[_0x297ca5])&&(_0x46a3dc=_0x29a101(_0x46a3dc)||_0x46a3dc);return _0x46a3dc;},L=(_0x38b578,_0x22035e)=>(_0x259bfa,_0x44af30)=>_0x22035e(_0x259bfa,_0x44af30,_0x38b578);const et=0x12c,tt=0x64;let Ie=class extends a['RxDisposable']{constructor(_0x165fec,_0x3c8659,_0x4722a5,_0x2c1876,_0x2281c7,_0x1316fe,_0x2e07a3,_0x4213a8,_0x2717d3){const _0xb1817d=_0x926bd0;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0xb1817d(0xf3),new d[(_0xb1817d(0xef))](new Map())),h(this,_0xb1817d(0x27b),this[_0xb1817d(0xf3)][_0xb1817d(0xf6)]()),h(this,'_roomMembers$',new d[(_0xb1817d(0xef))]([])),h(this,_0xb1817d(0x2b8),this[_0xb1817d(0x17e)][_0xb1817d(0x19e)](d[_0xb1817d(0x112)](et))),h(this,'_updateLocalCursor',a[_0xb1817d(0x23a)](_0x84b9fe=>{const _0x5ad40c=_0xb1817d,_0x4125ba={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x5ad40c(0x171)],'memberID':this[_0x5ad40c(0x144)][_0x5ad40c(0x283)](),'selection':Pe(_0x84b9fe)}};this['_session'][_0x5ad40c(0x1af)](_0x4125ba,this[_0x5ad40c(0x171)]);},tt)),(this['unitID']=_0x165fec,this[_0xb1817d(0x144)]=_0x3c8659,this[_0xb1817d(0x215)]=_0x4722a5,this[_0xb1817d(0x185)]=_0x2c1876,this['_memberService']=_0x2281c7,this[_0xb1817d(0x259)]=_0x1316fe,this[_0xb1817d(0xee)]=_0x2e07a3,this[_0xb1817d(0xd1)]=_0x4213a8,this[_0xb1817d(0x17c)]=_0x2717d3);}get[_0x926bd0(0x366)](){const _0x5a80ac=_0x926bd0;return this[_0x5a80ac(0xf3)][_0x5a80ac(0x1b0)]();}get[_0x926bd0(0x2bd)](){const _0x4ec825=_0x926bd0;return this[_0x4ec825(0x17e)]['getValue']();}[_0x926bd0(0x2ba)](){const _0x10efc2=_0x926bd0;super['dispose'](),this[_0x10efc2(0xf3)][_0x10efc2(0x33c)](new Map()),this['_cursorInfo$'][_0x10efc2(0x103)](),this[_0x10efc2(0x17e)][_0x10efc2(0x33c)]([]),this[_0x10efc2(0x17e)]['complete']();}[_0x926bd0(0x2c7)](){const _0x34994=_0x926bd0;this[_0x34994(0x274)]||(this[_0x34994(0x274)]=!0x0,this[_0x34994(0x144)][_0x34994(0x11d)][_0x34994(0x19e)](d[_0x34994(0x1d5)](this[_0x34994(0x23e)]))[_0x34994(0x1e6)](_0x44fe7c=>{const _0x371359=_0x34994;_0x44fe7c===u[_0x371359(0x1e7)][_0x371359(0x1c0)]?this['_toggleOnline']():this[_0x371359(0x149)]();}),this[_0x34994(0x144)][_0x34994(0x1ec)][_0x34994(0x19e)](d[_0x34994(0x1d5)](this[_0x34994(0x23e)]))[_0x34994(0x1e6)](_0x150dea=>{const _0x8beccb=_0x34994,_0x364799=_0x150dea[_0x8beccb(0x2c0)];_0x364799===m[_0x8beccb(0x2e1)]['UPDATE_CURSOR']&&this[_0x8beccb(0x233)](_0x150dea),_0x364799===m[_0x8beccb(0x2e1)][_0x8beccb(0x146)]&&this[_0x8beccb(0x2b3)](_0x150dea);}),this[_0x34994(0x2a5)](this[_0x34994(0x17c)]['onCommandExecuted'](_0x3c39ef=>{const _0x4a9134=_0x34994,_0x135ab3=_0x3c39ef[_0x4a9134(0x131)];_0x135ab3!=null&&this[_0x4a9134(0x2db)]&&_0x3c39ef['id']===Y[_0x4a9134(0x18d)]['id']&&_0x135ab3[_0x4a9134(0x34a)]===this['unitID']&&_0x135ab3[_0x4a9134(0x238)]===!0x1&&_0x135ab3[_0x4a9134(0x2b4)]['length']>0x0&&this[_0x4a9134(0x2ed)](_0x135ab3[_0x4a9134(0x2b4)]);})),this[_0x34994(0x259)][_0x34994(0x1ce)][_0x34994(0x19e)](d[_0x34994(0x1d5)](this[_0x34994(0x23e)]))['subscribe'](_0x266c7c=>{const _0x5490a1=_0x34994;if((_0x266c7c==null?void 0x0:_0x266c7c['unitID'])!==this['unitID'])return;const _0x319575={'eventID':m[_0x5490a1(0x2e1)][_0x5490a1(0x2fa)],'data':_0x266c7c};this[_0x5490a1(0x233)](_0x319575);}),this[_0x34994(0x2a5)](this[_0x34994(0x17c)][_0x34994(0x1fc)](_0x3c8b4f=>{const _0x4d0199=_0x34994;if(_0x3c8b4f[_0x4d0199(0x131)]==null)return;const _0x1fb15f=_0x3c8b4f['params'];if(_0x3c8b4f['id']!==Y[_0x4d0199(0x262)]['id']||_0x1fb15f['unitId']!==this[_0x4d0199(0x171)])return;const _0x5f3e24={'id':_0x4d0199(0x1aa),'params':_0x1fb15f},_0x41d0c3=this[_0x4d0199(0x366)];for(const [_0x517e51,_0x28072b]of _0x41d0c3){const _0x1f6051={'id':_0x4d0199(0x1aa),'params':{'unitId':this[_0x4d0199(0x171)],'actions':null,'textRanges':_0x28072b[_0x4d0199(0x2b4)]}},_0x4d4f47=this[_0x4d0199(0xee)][_0x4d0199(0x342)](_0x5f3e24,_0x1f6051,!0x1);if(m[_0x4d0199(0x2ee)](_0x4d4f47))throw _0x4d4f47['error'];_0x41d0c3['set'](_0x517e51,{..._0x28072b,'ranges':_0x4d4f47['m2Prime'][_0x4d0199(0x131)][_0x4d0199(0x141)]});}queueMicrotask(()=>{const _0x22b737=_0x4d0199;this[_0x22b737(0xf3)][_0x22b737(0x33c)](_0x41d0c3);});})));}[_0x926bd0(0x233)](_0x3d6f62){const _0x196952=_0x926bd0;var _0x566d1b,_0x47ae0c;const {memberID:_0x5b723c,selection:_0x59b48f}=_0x3d6f62[_0x196952(0x179)],_0xfc3345=Je(_0x59b48f),_0x3c7056=(_0x47ae0c=(_0x566d1b=this[_0x196952(0x344)]['getMember'](this[_0x196952(0x171)],_0x5b723c))==null?void 0x0:_0x566d1b[_0x196952(0x1b5)])!=null?_0x47ae0c:'Unknown\x20user',_0xec1eed={'color':this[_0x196952(0x185)][_0x196952(0x1dd)](_0x5b723c),'name':_0x3c7056,'ranges':_0xfc3345},_0x10480c=this[_0x196952(0x366)];_0x10480c[_0x196952(0x2c2)](_0x5b723c,_0xec1eed),this[_0x196952(0xf3)][_0x196952(0x33c)](_0x10480c);}[_0x926bd0(0x2b3)](_0x59e2d3){const _0x264af9=_0x926bd0,{memberID:_0x74ec96}=_0x59e2d3[_0x264af9(0x179)],_0x5a18da=this[_0x264af9(0x366)];_0x5a18da[_0x264af9(0x292)](_0x74ec96),this['_cursorInfo$']['next'](_0x5a18da);}[_0x926bd0(0x328)](){const _0x43d26a=_0x926bd0;var _0x5db3fc;if(this['_online']=!0x0,((_0x5db3fc=this[_0x43d26a(0xd1)][_0x43d26a(0x234)]())==null?void 0x0:_0x5db3fc['getUnitId']())!==this['unitID'])return;const _0x5ef49d=this[_0x43d26a(0x215)]['get'](Y[_0x43d26a(0x2d1)])['getDocRanges']();Array['isArray'](_0x5ef49d)&&_0x5ef49d[_0x43d26a(0x2ef)]>0x0&&this[_0x43d26a(0x2ed)](_0x5ef49d);}[_0x926bd0(0x149)](){const _0x3857a1=_0x926bd0;this[_0x3857a1(0x2db)]=!0x1;}};Ie=Qe([L(0x2,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),L(0x3,a[_0x926bd0(0xec)](me)),L(0x4,a[_0x926bd0(0xec)](u[_0x926bd0(0x2bb)])),L(0x5,a[_0x926bd0(0xec)](Ce)),L(0x6,m[_0x926bd0(0x18e)]),L(0x7,a[_0x926bd0(0x1db)]),L(0x8,a[_0x926bd0(0x130)])],Ie);var st=Object[_0x926bd0(0x311)],it=(_0x170a4c,_0x2e1c5c,_0x14eb90,_0x4e1918)=>{for(var _0x364a08=_0x4e1918>0x1?void 0x0:_0x4e1918?st(_0x2e1c5c,_0x14eb90):_0x2e1c5c,_0xb269fa=_0x170a4c['length']-0x1,_0x34fd5c;_0xb269fa>=0x0;_0xb269fa--)(_0x34fd5c=_0x170a4c[_0xb269fa])&&(_0x364a08=_0x34fd5c(_0x364a08)||_0x364a08);return _0x364a08;},A=(_0xb9c2c,_0x339f0b)=>(_0x59ba20,_0x5004cf)=>_0x339f0b(_0x59ba20,_0x5004cf,_0xb9c2c);const nt=0x12c,rt=0x64,ot=()=>{let _0xdae996=[],_0x33c382=!0x1;return _0x15e733=>{const _0x1842ee=_0x18d9;_0xdae996[_0x1842ee(0x14c)](_0x15e733),_0x33c382||(_0x33c382=!0x0,setTimeout(()=>{_0xdae996['forEach'](_0x193318=>_0x193318()),_0xdae996=[],_0x33c382=!0x1;}));};};let Se=class extends a[_0x926bd0(0x2b5)]{constructor(_0x584507,_0x17cd01,_0x3bc478,_0xe2806f,_0x148e0a,_0x464007,_0x556b4e,_0x385a95){const _0x5075d6=_0x926bd0;super(),h(this,_0x5075d6(0x2db),!0x1),h(this,_0x5075d6(0x274),!0x1),h(this,_0x5075d6(0xf3),new d[(_0x5075d6(0xef))](new Map())),h(this,_0x5075d6(0x27b),this[_0x5075d6(0xf3)][_0x5075d6(0xf6)]()),h(this,_0x5075d6(0x17e),new d[(_0x5075d6(0xef))]([])),h(this,_0x5075d6(0x2b8),this[_0x5075d6(0x17e)][_0x5075d6(0x19e)](d[_0x5075d6(0x112)](nt))),h(this,_0x5075d6(0x2ed),a[_0x5075d6(0x23a)]((_0x29d9e4,_0x2b9d61)=>{const _0x262983=_0x5075d6,_0x3cfc3c={'eventID':m[_0x262983(0x2e1)][_0x262983(0x2fa)],'data':{'unitID':this[_0x262983(0x171)],'memberID':this[_0x262983(0x144)][_0x262983(0x283)](),'selection':be[_0x262983(0x309)](_0x29d9e4,_0x2b9d61[_0x262983(0x27e)])}};this[_0x262983(0x144)][_0x262983(0x1af)](_0x3cfc3c,this[_0x262983(0x171)]);},rt)),(this[_0x5075d6(0x171)]=_0x584507,this[_0x5075d6(0x144)]=_0x17cd01,this[_0x5075d6(0x215)]=_0x3bc478,this[_0x5075d6(0x185)]=_0xe2806f,this['_memberService']=_0x148e0a,this[_0x5075d6(0xd1)]=_0x464007,this[_0x5075d6(0x17c)]=_0x556b4e,this[_0x5075d6(0x2f0)]=_0x385a95);}get[_0x926bd0(0x366)](){const _0x27f4e7=_0x926bd0;return this[_0x27f4e7(0xf3)][_0x27f4e7(0x1b0)]();}get[_0x926bd0(0x2bd)](){const _0x197861=_0x926bd0;return this[_0x197861(0x17e)]['getValue']();}[_0x926bd0(0x2ba)](){const _0x218875=_0x926bd0;super[_0x218875(0x2ba)](),this[_0x218875(0xf3)]['next'](new Map()),this[_0x218875(0xf3)][_0x218875(0x103)](),this[_0x218875(0x17e)][_0x218875(0x33c)]([]),this[_0x218875(0x17e)][_0x218875(0x103)]();}[_0x926bd0(0x2c7)](){const _0x40d471=_0x926bd0;this[_0x40d471(0x274)]||(this['_init']=!0x0,this[_0x40d471(0x144)][_0x40d471(0x11d)][_0x40d471(0x19e)](d[_0x40d471(0x1d5)](this[_0x40d471(0x23e)]))['subscribe'](_0x53fb0f=>{const _0x233dc6=_0x40d471;_0x53fb0f===u[_0x233dc6(0x1e7)]['ONLINE']?this[_0x233dc6(0x328)]():this[_0x233dc6(0x149)]();}),this['_session']['event$'][_0x40d471(0x19e)](d['takeUntil'](this['dispose$']))[_0x40d471(0x1e6)](_0x33a43e=>{const _0x584caf=_0x40d471,_0x3ead15=_0x33a43e['eventID'];_0x3ead15===m[_0x584caf(0x2e1)]['UPDATE_CURSOR']&&this[_0x584caf(0x233)](_0x33a43e),_0x3ead15===m[_0x584caf(0x2e1)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x33a43e);}),this[_0x40d471(0x11e)](),this[_0x40d471(0x2a5)](this['_commandService'][_0x40d471(0x1fc)](_0x8efdbd=>{const _0x3bcbaf=_0x40d471;if(this[_0x3bcbaf(0x2db)]&&_0x8efdbd['id']===g[_0x3bcbaf(0x289)]['id']&&_0x8efdbd[_0x3bcbaf(0x131)]['unitId']===this[_0x3bcbaf(0x171)]){const _0x1179be=_0x8efdbd[_0x3bcbaf(0x131)];this[_0x3bcbaf(0x2ed)](_0x1179be[_0x3bcbaf(0x334)],_0x1179be[_0x3bcbaf(0x2ff)][0x0]);}})));}[_0x926bd0(0x233)](_0x28d45a){const _0x153706=_0x926bd0;var _0x1cfbb7,_0xdf3343;const {memberID:_0x102715,selection:_0x1ab2c5}=_0x28d45a['data'],{sheetName:_0x17fb3b,range:_0x521ffb}=be[_0x153706(0x15e)](_0x1ab2c5),_0x48b579={'name':(_0xdf3343=(_0x1cfbb7=this[_0x153706(0x344)]['getMember'](this[_0x153706(0x171)],_0x102715))==null?void 0x0:_0x1cfbb7[_0x153706(0x1b5)])!=null?_0xdf3343:'Unknown\x20user','range':this[_0x153706(0x1c7)](_0x17fb3b,_0x521ffb),'sheetID':_0x17fb3b,'color':this['_colorAssignService'][_0x153706(0x1dd)](_0x102715),'selection':_0x1ab2c5},_0x599054=this[_0x153706(0x366)];_0x599054['set'](_0x102715,_0x48b579),this[_0x153706(0xf3)][_0x153706(0x33c)](_0x599054);}[_0x926bd0(0x2b3)](_0x397707){const _0x2e9717=_0x926bd0,{memberID:_0x206b1e}=_0x397707[_0x2e9717(0x179)],_0x12de23=this['cursorInfo'];_0x12de23[_0x2e9717(0x292)](_0x206b1e),this[_0x2e9717(0xf3)]['next'](_0x12de23);}[_0x926bd0(0x1c7)](_0x6857c0,_0x5c1bcf){const _0x553fee=_0x926bd0;var _0x3f6913,_0x3b25b3;const _0x37c8db=(_0x3b25b3=(_0x3f6913=this['_univerInstanceService'][_0x553fee(0x140)](this[_0x553fee(0x171)]))==null?void 0x0:_0x3f6913[_0x553fee(0x34d)](_0x6857c0))==null?void 0x0:_0x3b25b3[_0x553fee(0x2bc)]();return(_0x37c8db==null?void 0x0:_0x37c8db[_0x553fee(0x2cc)](_0x46dd85=>a[_0x553fee(0x113)]['contains'](_0x46dd85,_0x5c1bcf)))||_0x5c1bcf;}[_0x926bd0(0x11e)](){const _0x334efe=_0x926bd0,_0x57eee1=new a[(_0x334efe(0x2fd))](),_0xbde9fd=ot(),_0x398086=()=>{const _0x11d6fa=_0x334efe;_0x57eee1['dispose']();const _0x4aa3d5=(_0x3d4518,_0x4dfd61,_0x373fc4,_0x651054)=>{const _0x56a0aa=_0x18d9;let _0x57c978=[];switch(_0x3d4518['id']){case g[_0x56a0aa(0x286)][_0x56a0aa(0x23f)]:{_0x57c978=g[_0x56a0aa(0x2b2)](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)][_0x56a0aa(0x24d)]:{_0x57c978=g[_0x56a0aa(0x168)](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)]['InsertColCommandId']:{_0x57c978=g['handleInsertCol'](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)]['InsertRangeMoveDownCommandId']:{_0x57c978=g['handleInsertRangeMoveDown'](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)]['InsertRangeMoveRightCommandId']:{_0x57c978=g[_0x56a0aa(0x1fe)](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)][_0x56a0aa(0xd5)]:{_0x57c978=g['handleInsertRow'](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)][_0x56a0aa(0x2aa)]:{_0x57c978=g[_0x56a0aa(0x224)](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)][_0x56a0aa(0x33d)]:{_0x57c978=g[_0x56a0aa(0x18a)](_0x3d4518,_0x651054);break;}case g[_0x56a0aa(0x286)][_0x56a0aa(0x122)]:{_0x57c978=g[_0x56a0aa(0x22f)](_0x3d4518,_0x651054);break;}}const _0x4ef5e0=g[_0x56a0aa(0x159)](_0x57c978,_0x651054),_0x51d2b5=this['cursorInfo']['get'](_0x4dfd61);if(_0x51d2b5&&_0x4ef5e0){const _0x425df3={..._0x51d2b5,'range':_0x4ef5e0};this['cursorInfo'][_0x56a0aa(0x2c2)](_0x4dfd61,_0x425df3),_0xbde9fd(()=>{const _0x56bf0c=_0x56a0aa,_0x738a39=this['_refRangeService']['registerRefRange'](_0x4ef5e0,_0x97f513=>(_0x738a39[_0x56bf0c(0x2ba)](),_0x4aa3d5(_0x97f513,_0x4dfd61,_0x373fc4,_0x4ef5e0)));_0x57eee1[_0x56bf0c(0xf0)](_0x738a39);});}return{'redos':[],'undos':[]};};this[_0x11d6fa(0x366)][_0x11d6fa(0x35e)]((_0x330151,_0x331aeb)=>{const _0x5ce537=_0x11d6fa,{range:_0x56b9eb,sheetID:_0x3b4a15}=_0x330151,_0xc745a8=this[_0x5ce537(0x2f0)][_0x5ce537(0x123)](_0x56b9eb,_0x32909b=>(_0xc745a8['dispose'](),_0x4aa3d5(_0x32909b,_0x331aeb,_0x3b4a15,_0x56b9eb)));_0x57eee1[_0x5ce537(0xf0)](_0xc745a8);});};this[_0x334efe(0x2a5)](a['toDisposable'](this[_0x334efe(0xf3)][_0x334efe(0x1e6)](()=>{_0x398086();})));}[_0x926bd0(0x328)](){const _0x11b10c=_0x926bd0;var _0x30fead,_0x4c1bc8;if(this[_0x11b10c(0x2db)]=!0x0,((_0x30fead=this[_0x11b10c(0xd1)][_0x11b10c(0x234)]())==null?void 0x0:_0x30fead[_0x11b10c(0x13a)]())!==this[_0x11b10c(0x171)])return;const _0x1bd007=(_0x4c1bc8=this[_0x11b10c(0x215)][_0x11b10c(0x1ed)](g[_0x11b10c(0x308)])[_0x11b10c(0x18b)]())==null?void 0x0:_0x4c1bc8[0x0],_0x4895f3=this[_0x11b10c(0xd1)][_0x11b10c(0x126)](a['UniverInstanceType'][_0x11b10c(0x358)])[_0x11b10c(0x2e2)]();_0x1bd007&&_0x4895f3&&this[_0x11b10c(0x2ed)](_0x4895f3[_0x11b10c(0x20f)](),_0x1bd007);}[_0x926bd0(0x149)](){const _0x392f91=_0x926bd0;this[_0x392f91(0x2db)]=!0x1;}};Se=it([A(0x2,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),A(0x3,a[_0x926bd0(0xec)](me)),A(0x4,a['Inject'](u[_0x926bd0(0x2bb)])),A(0x5,a[_0x926bd0(0x1db)]),A(0x6,a['ICommandService']),A(0x7,a[_0x926bd0(0xec)](g[_0x926bd0(0x22b)]))],Se);var at=Object[_0x926bd0(0x311)],ct=(_0x363797,_0x54d299,_0x4225b7,_0x143b4f)=>{const _0x4c4f00=_0x926bd0;for(var _0x33e50b=_0x143b4f>0x1?void 0x0:_0x143b4f?at(_0x54d299,_0x4225b7):_0x54d299,_0x3268cf=_0x363797[_0x4c4f00(0x2ef)]-0x1,_0xe43493;_0x3268cf>=0x0;_0x3268cf--)(_0xe43493=_0x363797[_0x3268cf])&&(_0x33e50b=_0xe43493(_0x33e50b)||_0x33e50b);return _0x33e50b;},ie=(_0x463fe5,_0x8d18c4)=>(_0x49795d,_0x3e6691)=>_0x8d18c4(_0x49795d,_0x3e6691,_0x463fe5);let x=class extends a['RxDisposable']{constructor(_0x1b3ffa,_0x552dbb,_0x107a7a){const _0x229595=_0x926bd0;super(),h(this,_0x229595(0x139),new Map()),h(this,_0x229595(0x206),new d[(_0x229595(0x2dd))]()),(this[_0x229595(0xd1)]=_0x1b3ffa,this[_0x229595(0x215)]=_0x552dbb,this['_collabSessionService']=_0x107a7a,this[_0x229595(0x274)]());}['dispose'](){const _0x236ab3=_0x926bd0;super[_0x236ab3(0x2ba)](),this['_entityInit$'][_0x236ab3(0x103)](),this[_0x236ab3(0x139)]['forEach'](_0x62d5e6=>_0x62d5e6['dispose']());}[_0x926bd0(0x1a7)](_0x2324bb){const _0x4cd347=_0x926bd0;return this['_entities'][_0x4cd347(0x295)](_0x2324bb)?this[_0x4cd347(0x139)][_0x4cd347(0x1ed)](_0x2324bb)[_0x4cd347(0x27b)]:this['_entityInit$'][_0x4cd347(0x19e)](d['filter'](_0x1d07f1=>_0x1d07f1[_0x4cd347(0x171)]===_0x2324bb),d[_0x4cd347(0x15c)](_0x3f436c=>_0x3f436c[_0x4cd347(0x27b)]));}[_0x926bd0(0x274)](){const _0x6afccf=_0x926bd0;this[_0x6afccf(0xd1)][_0x6afccf(0x340)](a['UniverInstanceType'][_0x6afccf(0x358)])[_0x6afccf(0x19e)](d[_0x6afccf(0x1d5)](this[_0x6afccf(0x23e)]))['subscribe'](async _0x4362c1=>{const _0x9efdd8=_0x6afccf,_0x42164b=_0x4362c1[_0x9efdd8(0x13a)](),_0x415595=await this[_0x9efdd8(0x180)](_0x42164b);this['_entityInit$'][_0x9efdd8(0x33c)](_0x415595),this[_0x9efdd8(0x139)][_0x9efdd8(0x2c2)](_0x42164b,_0x415595);}),this[_0x6afccf(0xd1)]['getTypeOfUnitAdded$'](a[_0x6afccf(0x197)]['UNIVER_DOC'])['pipe'](d[_0x6afccf(0x1d5)](this[_0x6afccf(0x23e)]))['pipe'](d['filter'](_0x4749f9=>!_0x4749f9['getUnitId']()[_0x6afccf(0x264)]('__')))[_0x6afccf(0x1e6)](async _0x58809e=>{const _0x5cd9f0=_0x6afccf,_0x58a486=_0x58809e[_0x5cd9f0(0x13a)](),_0x2014b4=await this['_startDocCollabCursor'](_0x58a486);this['_entityInit$']['next'](_0x2014b4),this[_0x5cd9f0(0x139)][_0x5cd9f0(0x2c2)](_0x58a486,_0x2014b4);}),d['merge'](this[_0x6afccf(0xd1)][_0x6afccf(0x296)](a[_0x6afccf(0x197)][_0x6afccf(0x1f7)]),this[_0x6afccf(0xd1)][_0x6afccf(0x296)](a[_0x6afccf(0x197)][_0x6afccf(0x358)]))['pipe'](d['takeUntil'](this[_0x6afccf(0x23e)]))[_0x6afccf(0x1e6)](_0x195d96=>{const _0x2b98ca=_0x6afccf,_0x216b34=_0x195d96[_0x2b98ca(0x13a)](),_0xe340e9=this[_0x2b98ca(0x139)]['get'](_0x216b34);_0xe340e9&&(_0xe340e9['dispose'](),this[_0x2b98ca(0x139)][_0x2b98ca(0x292)](_0x216b34));});}async[_0x926bd0(0x180)](_0x10d0e4){const _0x454704=_0x926bd0,_0x2e58a3=await this[_0x454704(0x299)]['requireSession'](_0x10d0e4),_0x187f01=this[_0x454704(0x215)][_0x454704(0x136)](Se,_0x10d0e4,_0x2e58a3);return _0x187f01[_0x454704(0x2c7)](),_0x187f01;}async[_0x926bd0(0x188)](_0x3538c7){const _0x331f66=_0x926bd0,_0x132561=await this[_0x331f66(0x299)][_0x331f66(0x269)](_0x3538c7),_0x39387e=this[_0x331f66(0x215)]['createInstance'](Ie,_0x3538c7,_0x132561);return _0x39387e[_0x331f66(0x2c7)](),_0x39387e;}};x=ct([ie(0x0,a[_0x926bd0(0x1db)]),ie(0x1,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),ie(0x2,a[_0x926bd0(0xec)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x47236c,_0xca5a7f){const _0x3adfee=_0x926bd0;let {radius:_0x539902,width:_0x58b210,height:_0x59cb79}=_0xca5a7f;_0x539902=_0x539902!=null?_0x539902:0x0,_0x58b210=_0x58b210!=null?_0x58b210:0x1e,_0x59cb79=_0x59cb79!=null?_0x59cb79:0x1e;let _0x5aa9ad=0x0,_0xacc39b=0x0,_0x2125fd=0x0;_0x5aa9ad=_0xacc39b=_0x2125fd=Math[_0x3adfee(0x361)](_0x539902,_0x58b210/0x2,_0x59cb79/0x2),_0x47236c[_0x3adfee(0x10a)](),_0x47236c['moveTo'](_0x5aa9ad,0x0),_0x47236c[_0x3adfee(0x13d)](_0x58b210-_0xacc39b,0x0),_0x47236c[_0x3adfee(0x32c)](_0x58b210-_0xacc39b,_0xacc39b,_0xacc39b,Math['PI']*0x3/0x2,0x0,!0x1),_0x47236c['lineTo'](_0x58b210,_0x59cb79-_0x2125fd),_0x47236c[_0x3adfee(0x32c)](_0x58b210-_0x2125fd,_0x59cb79-_0x2125fd,_0x2125fd,0x0,Math['PI']/0x2,!0x1),_0x47236c[_0x3adfee(0x13d)](0x0,_0x59cb79),_0x47236c[_0x3adfee(0x13d)](0x0,_0x5aa9ad),_0x47236c[_0x3adfee(0x32c)](_0x5aa9ad,_0x5aa9ad,_0x5aa9ad,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x47236c[_0x3adfee(0x324)](),_0xca5a7f[_0x3adfee(0x1c5)]&&(_0x47236c['save'](),_0x47236c[_0x3adfee(0x26c)]=_0xca5a7f[_0x3adfee(0x1c5)],_0xca5a7f[_0x3adfee(0xea)]===_0x3adfee(0x2e3)?_0x47236c[_0x3adfee(0x1c5)](_0x3adfee(0x2e3)):_0x47236c['fill'](),_0x47236c[_0x3adfee(0x31c)]());}class ee extends p['Shape']{constructor(_0x435923,_0x7bb31f){const _0x4d3aac=_0x926bd0;super(_0x435923,_0x7bb31f),h(this,'color'),h(this,_0x4d3aac(0x29b)),(this[_0x4d3aac(0x248)]=_0x7bb31f==null?void 0x0:_0x7bb31f[_0x4d3aac(0x248)],this['text']=_0x7bb31f==null?void 0x0:_0x7bb31f[_0x4d3aac(0x29b)]);}static['drawWith'](_0x5727a0,_0x193a0a){const _0x5b4e73=_0x926bd0,{text:_0x5ca6af,color:_0x278738}=_0x193a0a;_0x5727a0[_0x5b4e73(0x14e)](),_0x5727a0[_0x5b4e73(0x1bf)]=_0x5b4e73(0x1a2);const _0x22511f=_0x5727a0[_0x5b4e73(0x1f5)](_0x5ca6af)[_0x5b4e73(0x30c)],_0x509635=Math[_0x5b4e73(0x361)](_0x22511f+0x2*ne,Re);_t(_0x5727a0,{'height':K,'radius':0x4,'width':_0x509635,'fill':_0x278738}),_0x5727a0[_0x5b4e73(0x26c)]=_0x5b4e73(0x16b);const _0x2763a7=ne,_0x2b4472=K-lt,_0x2ffd4f=Re-0x2*ne;if(_0x22511f>_0x2ffd4f){let _0x4345a5='',_0x1f0f92=0x0;for(const _0x44cb7e of _0x5ca6af){const _0x4012ed=_0x5727a0[_0x5b4e73(0x1f5)](_0x44cb7e)[_0x5b4e73(0x30c)];if(_0x1f0f92+_0x4012ed<=_0x2ffd4f-_0x5727a0[_0x5b4e73(0x1f5)]('...')[_0x5b4e73(0x30c)])_0x4345a5+=_0x44cb7e,_0x1f0f92+=_0x4012ed;else{_0x4345a5+=_0x5b4e73(0x368);break;}}_0x5727a0[_0x5b4e73(0x33f)](_0x4345a5,_0x2763a7,_0x2b4472);}else _0x5727a0['fillText'](_0x5ca6af,_0x2763a7,_0x2b4472);_0x5727a0[_0x5b4e73(0x31c)]();}[_0x926bd0(0x32d)](_0x55a2e0){const _0x291928=_0x926bd0;ee[_0x291928(0x281)](_0x55a2e0,this);}}const re=_0x926bd0(0x20b),ht=_0x926bd0(0xf1),ut=_0x926bd0(0x32f),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x926bd0(0x184);class De{constructor(_0x28e391,_0x373c09,_0x57e312,_0x47ef71){const _0x510ff5=_0x926bd0;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,_0x510ff5(0x323),null),h(this,_0x510ff5(0x231),null),h(this,_0x510ff5(0x2d7),null),h(this,_0x510ff5(0x155),null),(this[_0x510ff5(0x125)]=_0x28e391,this[_0x510ff5(0x21c)]=_0x373c09,this[_0x510ff5(0x223)]=_0x57e312,this[_0x510ff5(0x169)]=_0x47ef71,this[_0x510ff5(0x1fb)]());}set[_0x926bd0(0x102)](_0x20776e){const _0x1f1562=_0x926bd0;_0x20776e?(this[_0x1f1562(0x231)]&&this[_0x1f1562(0x231)][_0x1f1562(0x127)](),this[_0x1f1562(0x323)]&&this[_0x1f1562(0x323)][_0x1f1562(0x2a8)]()):(this[_0x1f1562(0x231)]&&this[_0x1f1562(0x231)]['show'](),this[_0x1f1562(0x323)]&&this[_0x1f1562(0x323)][_0x1f1562(0x127)]());}[_0x926bd0(0x2ba)](){const _0x357afc=_0x926bd0;for(const _0x5bb9f7 of this['_shapes'])_0x5bb9f7['dispose']();this[_0x357afc(0x323)]&&this[_0x357afc(0x323)][_0x357afc(0x2ba)](),this[_0x357afc(0x231)]&&this[_0x357afc(0x231)][_0x357afc(0x2ba)](),this[_0x357afc(0x15f)]&&this['_anchor']['dispose'](),this[_0x357afc(0x155)]&&this[_0x357afc(0x155)]();}[_0x926bd0(0x1fb)](){const _0x40d8dd=_0x926bd0;var _0x33b45d;const {_docSkeleton:_0x4ca27f,_document:_0x51fb47}=this,{color:_0x218de9,name:_0x3a9c55,ranges:_0x44fb9e}=this[_0x40d8dd(0x125)],_0x351cba=_0x51fb47[_0x40d8dd(0x26e)](),{docsLeft:_0x2c7cab,docsTop:_0x14d213}=_0x351cba,_0x59b338=new E[(_0x40d8dd(0xde))](_0x351cba,_0x4ca27f);for(const {startOffset:_0x123c5d,endOffset:_0xb15b3a,rangeType:_0xc4e631,segmentId:_0x13619f,segmentPage:_0xd81e9c,collapsed:_0x21c038,isActive:_0x5ae1c1}of _0x44fb9e){const _0x53769c=_0x4ca27f[_0x40d8dd(0x277)](_0x123c5d,!0x0,_0x13619f,_0xd81e9c);let _0x2bab49=_0x4ca27f[_0x40d8dd(0x277)](_0xb15b3a,!0x0,_0x13619f,_0xd81e9c);if(_0x2bab49==null&&(_0x2bab49=_0x4ca27f['findNodePositionByCharIndex'](_0xb15b3a-0x1,!0x1,_0x13619f,_0xd81e9c)),_0x5ae1c1){const {contentBoxPointGroup:_0x168036}=_0x59b338[_0x40d8dd(0x1cc)](_0x2bab49,_0x2bab49);if(_0x168036[_0x40d8dd(0x2ef)]===0x0)continue;this['_drawAnchor'](_0x218de9,_0x168036,_0x2c7cab,_0x14d213,_0x3a9c55),this[_0x40d8dd(0x155)]=this[_0x40d8dd(0x297)]();}if(_0x53769c&&_0x2bab49){if(_0xc4e631===a[_0x40d8dd(0x190)]['RECT']){const _0x1adc27=new E['NodePositionConvertToRectRange'](_0x351cba,_0x4ca27f),{pointGroup:_0x21fbac}=(_0x33b45d=_0x1adc27[_0x40d8dd(0x1cc)](_0x53769c,_0x2bab49))!=null?_0x33b45d:{};if(_0x21fbac==null||_0x21fbac[_0x40d8dd(0x2ef)]===0x0)continue;this['_drawRectRange'](_0x218de9,_0x21fbac,_0x2c7cab,_0x14d213);}else{if(!_0x21c038){const {borderBoxPointGroup:_0x3a5798}=_0x59b338[_0x40d8dd(0x1cc)](_0x53769c,_0x2bab49);if(_0x3a5798[_0x40d8dd(0x2ef)]===0x0)continue;this[_0x40d8dd(0x1cd)](_0x218de9,_0x3a5798,_0x2c7cab,_0x14d213);}}}}}['_drawAnchor'](_0x4978f7,_0x2c5a37,_0x2fcbdb,_0x20e03a,_0x8354db){const _0x587ac7=_0x926bd0,_0x305015=this['_getAnchorBounding'](_0x2c5a37),{left:_0x4f2da6,top:_0x91eb09,height:_0x595143}=_0x305015,_0x393582=this[_0x587ac7(0x364)](),_0x15e7b8=It/_0x393582,_0x3c8698=new p[(_0x587ac7(0x19a))](re+a[_0x587ac7(0x2c8)][_0x587ac7(0x34e)](k),{'left':_0x4f2da6+_0x2fcbdb-_0x15e7b8,'top':_0x91eb09+_0x20e03a,'height':_0x595143,'width':dt,'fill':_0x4978f7||p[_0x587ac7(0x158)](a['COLORS'][_0x587ac7(0x135)],0x0),'strokeWidth':_0x15e7b8,'stroke':St,'evented':!0x0});this['_anchor']=_0x3c8698,this[_0x587ac7(0x21c)][_0x587ac7(0x329)](_0x3c8698,E[_0x587ac7(0x24b)]);const _0x689e19=new p[(_0x587ac7(0x19a))](re+a['Tools'][_0x587ac7(0x34e)](k),{'left':_0x4f2da6+_0x2fcbdb-_0x15e7b8,'top':_0x91eb09+_0x20e03a-oe/0x2,'height':oe,'width':oe,'fill':_0x4978f7||p[_0x587ac7(0x158)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x4978f7||p['getColor'](a[_0x587ac7(0x260)][_0x587ac7(0x135)],0x0),'evented':!0x1});this[_0x587ac7(0x231)]=_0x689e19,this[_0x587ac7(0x21c)][_0x587ac7(0x329)](_0x689e19,E[_0x587ac7(0x24b)]);const _0x42a2fb=new ee(re+a[_0x587ac7(0x2c8)]['generateRandomId'](k),{'left':_0x4f2da6+_0x2fcbdb-_0x15e7b8,'top':_0x91eb09+_0x20e03a-K,'text':_0x8354db,'color':_0x4978f7});this[_0x587ac7(0x323)]=_0x42a2fb,this['_scene'][_0x587ac7(0x329)](_0x42a2fb,E['TEXT_RANGE_LAYER_INDEX']),this[_0x587ac7(0x102)]=!0x1;}['_handleHover'](){const _0x31af69=_0x926bd0,_0x365cfc=this[_0x31af69(0x15f)][_0x31af69(0x24f)]['subscribeEvent'](()=>{const _0x415d09=_0x31af69;this[_0x415d09(0x102)]=!0x0;}),_0x2c718=this[_0x31af69(0x15f)][_0x31af69(0x143)][_0x31af69(0x1ea)](()=>{const _0x22fc88=_0x31af69;this[_0x22fc88(0x2d7)]&&clearTimeout(this[_0x22fc88(0x2d7)]),this[_0x22fc88(0x2d7)]=setTimeout(()=>{const _0x3f5fe1=_0x22fc88;this[_0x3f5fe1(0x102)]=!0x1;},0x7d0);});return()=>{const _0x5ac49b=_0x31af69;_0x365cfc[_0x5ac49b(0xd4)](),_0x2c718[_0x5ac49b(0xd4)]();};}[_0x926bd0(0x1cd)](_0x6f00d9,_0x1a1b3f,_0x3e21d7,_0x6d2d8c){const _0x3551c1=_0x926bd0,_0x18f80f=new a[(_0x3551c1(0x1be))](_0x6f00d9)[_0x3551c1(0x218)](0.2)[_0x3551c1(0x108)](),_0x56f4df=new p[(_0x3551c1(0x29c))](ht+a[_0x3551c1(0x2c8)][_0x3551c1(0x34e)](k),{'pointsGroup':_0x1a1b3f,'fill':_0x18f80f||p[_0x3551c1(0x158)](a[_0x3551c1(0x260)][_0x3551c1(0x135)],0.2),'left':_0x3e21d7,'top':_0x6d2d8c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3551c1(0xfd)][_0x3551c1(0x14c)](_0x56f4df),this[_0x3551c1(0x21c)][_0x3551c1(0x329)](_0x56f4df,E[_0x3551c1(0x24b)]);}['_drawRectRange'](_0x51919f,_0x5c3ba5,_0x189cec,_0x1fe45f){const _0x152726=_0x926bd0,_0x54743d=new a[(_0x152726(0x1be))](_0x51919f)[_0x152726(0x218)](0.2)[_0x152726(0x108)](),_0x32971e=new p[(_0x152726(0x29c))](ut+a[_0x152726(0x2c8)][_0x152726(0x34e)](k),{'pointsGroup':_0x5c3ba5,'fill':_0x54743d||p[_0x152726(0x158)](a['COLORS'][_0x152726(0x135)],0.2),'left':_0x189cec,'top':_0x1fe45f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x152726(0x14c)](_0x32971e),this[_0x152726(0x21c)][_0x152726(0x329)](_0x32971e,E['TEXT_RANGE_LAYER_INDEX']);}[_0x926bd0(0xfa)](_0x2d9be3){const _0x448d6e=_0x2d9be3[0x0],_0x223389=_0x448d6e[0x0],_0x5ccebd=_0x448d6e[0x2],{x:_0x15491a,y:_0x5302c9}=_0x223389,{x:_0x57e35a,y:_0x147a4c}=_0x5ccebd;return{'left':_0x15491a,'top':_0x5302c9,'width':_0x57e35a-_0x15491a,'height':_0x147a4c-_0x5302c9};}[_0x926bd0(0x364)](){const _0x223367=_0x926bd0,{scaleX:_0x34f846,scaleY:_0x4ed605}=this['_scene'][_0x223367(0x2e8)]();return Math['max'](_0x34f846,_0x4ed605);}}var ft=Object['getOwnPropertyDescriptor'],vt=(_0x15df08,_0x2af041,_0x19fb85,_0x5c0c1e)=>{const _0x571f80=_0x926bd0;for(var _0xcd8946=_0x5c0c1e>0x1?void 0x0:_0x5c0c1e?ft(_0x2af041,_0x19fb85):_0x2af041,_0x1511fe=_0x15df08[_0x571f80(0x2ef)]-0x1,_0x2e04c0;_0x1511fe>=0x0;_0x1511fe--)(_0x2e04c0=_0x15df08[_0x1511fe])&&(_0xcd8946=_0x2e04c0(_0xcd8946)||_0xcd8946);return _0xcd8946;},W=(_0x36072f,_0x439701)=>(_0x4393d9,_0x19a418)=>_0x439701(_0x4393d9,_0x19a418,_0x36072f);let fe=class extends a[_0x926bd0(0x2b5)]{constructor(_0x49d465,_0x4df030,_0x208bdc,_0x2f89e7,_0x1e97e1){const _0x66cabd=_0x926bd0;super(),h(this,'_cursorShapes',[]),h(this,_0x66cabd(0x2c5),[]),(this[_0x66cabd(0x194)]=_0x49d465,this[_0x66cabd(0x28b)]=_0x4df030,this[_0x66cabd(0x21d)]=_0x208bdc,this[_0x66cabd(0x17c)]=_0x2f89e7,this[_0x66cabd(0x252)]=_0x1e97e1,this['_init']());}[_0x926bd0(0x274)](){const _0x4e1a8b=_0x926bd0,_0x4c1763=this['_context'][_0x4e1a8b(0x34a)],_0x423713=this[_0x4e1a8b(0x28b)];this['disposeWithMe'](d[_0x4e1a8b(0x22c)]([this['_collabCursorController']['getCollabCursors$'](_0x4c1763),this[_0x4e1a8b(0x252)]['currentTheme$']])[_0x4e1a8b(0x19e)]($[_0x4e1a8b(0x306)](([_0x417acd,_0x1a1847])=>({'skeleton':_0x423713[_0x4e1a8b(0x148)](),'cursors':[..._0x417acd['values']()][_0x4e1a8b(0x151)](_0x5754a7=>({..._0x5754a7,'color':this['_themeService'][_0x4e1a8b(0x35a)](_0x5754a7[_0x4e1a8b(0x248)])}))})))[_0x4e1a8b(0x1e6)](_0x4e6122=>{const _0x204df3=_0x4e1a8b;if(this[_0x204df3(0x1d6)](),_0x4e6122){const {skeleton:_0x4cab61,cursors:_0x3d5725}=_0x4e6122;this['_updateCollabCursors'](_0x4cab61,_0x3d5725);}})),this[_0x4e1a8b(0x13b)](),this[_0x4e1a8b(0x288)]();}[_0x926bd0(0x11b)](_0x4caa80,_0x58d9e2){const _0x4ea7ac=_0x926bd0,{scene:_0x3a39ab,mainComponent:_0x4e7d7a}=this[_0x4ea7ac(0x194)],_0x53dce0=_0x58d9e2[_0x4ea7ac(0x306)](_0x3e2df8=>new De(_0x3e2df8,_0x3a39ab,_0x4caa80,_0x4e7d7a));this['_cursorShapes']=_0x53dce0,this[_0x4ea7ac(0x2c5)]=_0x58d9e2;}[_0x926bd0(0x343)](){const _0x48bf1a=_0x926bd0;this[_0x48bf1a(0x1d6)]();const {scene:_0x4d4cc8,mainComponent:_0x53724b}=this[_0x48bf1a(0x194)],_0x8514db=this[_0x48bf1a(0x28b)]['getSkeleton'](),_0x5a4c6d=this['_cursors']['map'](_0x26b7d2=>new De(_0x26b7d2,_0x4d4cc8,_0x8514db,_0x53724b));this[_0x48bf1a(0x365)]=_0x5a4c6d;}['_removeCollabCursors'](){const _0x5cf3f1=_0x926bd0;this['_cursorShapes']['forEach'](_0x5c4457=>_0x5c4457[_0x5cf3f1(0x2ba)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1d014c=_0x926bd0,_0x2db224=[E[_0x1d014c(0xfb)]['id']];this[_0x1d014c(0x2a5)](this['_commandService'][_0x1d014c(0x1fc)](_0x30f8b4=>{const _0x222dec=_0x1d014c;_0x2db224['includes'](_0x30f8b4['id'])&&_0x30f8b4[_0x222dec(0x131)][_0x222dec(0x34a)]===this[_0x222dec(0x194)][_0x222dec(0x34a)]&&this[_0x222dec(0x343)]();}));}[_0x926bd0(0x13b)](){const _0x5c9a39=_0x926bd0;this['disposeWithMe'](a['fromEventSubject'](this['_context'][_0x5c9a39(0x240)][_0x5c9a39(0x319)])[_0x5c9a39(0x19e)]($['filter'](_0x3ecc0f=>_0x3ecc0f[_0x5c9a39(0x2b0)]===p[_0x5c9a39(0xfc)][_0x5c9a39(0x320)]),$[_0x5c9a39(0x2d9)](0x10))['subscribe'](()=>{const _0xcbf461=_0x5c9a39;this[_0xcbf461(0x343)]();}));}};fe=vt([W(0x1,a[_0x926bd0(0xec)](Y[_0x926bd0(0x114)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x926bd0(0x130)]),W(0x4,a[_0x926bd0(0xec)](a[_0x926bd0(0x176)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0xf4e202,_0x345818){const _0x373287=_0x926bd0;super(_0xf4e202,_0x345818),h(this,'_color'),h(this,_0x373287(0x276),!0x1),h(this,_0x373287(0xcf)),h(this,_0x373287(0x154),''),h(this,_0x373287(0x118),_0x373287(0x2ae)),h(this,_0x373287(0x15b)),(_0x345818&&this[_0x373287(0x27a)](_0x345818),this['onPointerEnter$'][_0x373287(0x1ea)](()=>this[_0x373287(0x27a)]({'hovered':!0x0})),this[_0x373287(0x143)][_0x373287(0x1ea)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x97d0ad){const _0x41855d=_0x926bd0;var _0x3c841d,_0x5de048,_0x6500ab,_0x48537b,_0x1c489c,_0x3f3b0a;this[_0x41855d(0x27d)]=(_0x3c841d=_0x97d0ad['color'])!=null?_0x3c841d:this['_color'],this[_0x41855d(0x276)]=(_0x5de048=_0x97d0ad[_0x41855d(0x265)])!=null?_0x5de048:this[_0x41855d(0x276)],this['_range']=(_0x6500ab=_0x97d0ad[_0x41855d(0x27e)])!=null?_0x6500ab:this[_0x41855d(0xcf)],this[_0x41855d(0x154)]=(_0x48537b=_0x97d0ad[_0x41855d(0x1b5)])!=null?_0x48537b:this[_0x41855d(0x154)],this[_0x41855d(0x118)]=(_0x1c489c=_0x97d0ad['labelPosition'])!=null?_0x1c489c:this[_0x41855d(0x118)],this[_0x41855d(0x15b)]=(_0x3f3b0a=_0x97d0ad[_0x41855d(0x13e)])!=null?_0x3f3b0a:this[_0x41855d(0x15b)],this[_0x41855d(0x352)]({'width':_0x97d0ad[_0x41855d(0x30c)],'height':_0x97d0ad[_0x41855d(0x11f)]});}[_0x926bd0(0x2e4)](_0x2513e2){const _0x1f06c2=_0x926bd0,{row:_0x3668d8,column:_0x3c4161}=_0x2513e2;if(_0x3668d8>=this['_range']['startRow']&&_0x3668d8<=this[_0x1f06c2(0xcf)][_0x1f06c2(0x326)]&&_0x3c4161>=this[_0x1f06c2(0xcf)][_0x1f06c2(0xd3)]&&_0x3c4161<=this[_0x1f06c2(0xcf)][_0x1f06c2(0x35b)]){this[_0x1f06c2(0x27a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x926bd0(0x363)](_0x40046e){return!0x1;}[_0x926bd0(0x32d)](_0x1242af){const _0x235d68=_0x926bd0;p[_0x235d68(0x19a)]['drawWith'](_0x1242af,{'width':this[_0x235d68(0x30c)],'height':this['height'],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x235d68(0x15b)]}),this['_hovered']&&(_0x1242af[_0x235d68(0x14e)](),_0x1242af[_0x235d68(0x33a)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x235d68(0x1ad)?0x0:-0x14),ee[_0x235d68(0x281)](_0x1242af,{'text':this['_name'],'color':this[_0x235d68(0x27d)]}),_0x1242af[_0x235d68(0x31c)]());}}var Ct=Object[_0x926bd0(0x311)],pt=(_0x50983e,_0x8438d6,_0x4f29ab,_0x3681dc)=>{const _0x55272e=_0x926bd0;for(var _0x42f01b=_0x3681dc>0x1?void 0x0:_0x3681dc?Ct(_0x8438d6,_0x4f29ab):_0x8438d6,_0x2d27a5=_0x50983e[_0x55272e(0x2ef)]-0x1,_0x313e0b;_0x2d27a5>=0x0;_0x2d27a5--)(_0x313e0b=_0x50983e[_0x2d27a5])&&(_0x42f01b=_0x313e0b(_0x42f01b)||_0x42f01b);return _0x42f01b;},ae=(_0x4a7adb,_0x2b1043)=>(_0x19b7d9,_0x3cf950)=>_0x2b1043(_0x19b7d9,_0x3cf950,_0x4a7adb);const Et=0x1389;let ve=class extends a[_0x926bd0(0x2b5)]{constructor(_0x411f11,_0x2ef48f,_0x1ab3c5,_0x1ad3fb){const _0x35eb1e=_0x926bd0;super(),h(this,'_cursors',new Set()),h(this,_0x35eb1e(0x2f9),null),(this[_0x35eb1e(0x194)]=_0x411f11,this[_0x35eb1e(0xf5)]=_0x2ef48f,this['_collabCursorController']=_0x1ab3c5,this[_0x35eb1e(0x252)]=_0x1ad3fb,this['_init']());}[_0x926bd0(0x274)](){const _0x59a9d1=_0x926bd0;this[_0x59a9d1(0xf5)]['currentSkeleton$'][_0x59a9d1(0x19e)]($[_0x59a9d1(0x1d5)](this[_0x59a9d1(0x23e)]),$[_0x59a9d1(0x15c)](_0x5e1c0b=>{const _0x3845e5=_0x59a9d1;if(_0x5e1c0b){const _0x2a3aff=_0x5e1c0b['sheetId'];return d[_0x3845e5(0x22c)](this[_0x3845e5(0x21d)][_0x3845e5(0x1a7)](this[_0x3845e5(0x194)][_0x3845e5(0x34a)]),this[_0x3845e5(0x252)]['currentTheme$'])[_0x3845e5(0x19e)]($[_0x3845e5(0x306)](([_0x66dd8c,_0x216793])=>{const _0x44ba2d=_0x3845e5,_0x3cd026=new Map();return _0x66dd8c[_0x44ba2d(0x35e)]((_0x4dba19,_0x402d1a)=>{const _0x5c81e9=_0x44ba2d;if(_0x4dba19[_0x5c81e9(0x1b3)]===_0x2a3aff){const _0x120d87={..._0x4dba19};_0x120d87[_0x5c81e9(0x248)]=this[_0x5c81e9(0x252)]['getColorFromTheme'](_0x4dba19['color']),_0x3cd026[_0x5c81e9(0x2c2)](_0x402d1a,_0x120d87);}}),{'skeleton':_0x5e1c0b,'cursors':_0x3cd026};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x59a9d1(0x1e6)](({skeleton:_0x235f73,cursors:_0x35fb72})=>{this['_removeCollabCursors'](),_0x235f73&&this['_updateCollabCursors'](_0x235f73,_0x35fb72);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x623d0c=>{const _0x5a0611=_0x59a9d1;if(_0x623d0c==null)return;const {skeleton:_0x56f5e6}=_0x623d0c,{scene:_0x4ac1ec}=this[_0x5a0611(0x194)];_0x4ac1ec[_0x5a0611(0x1bb)]['subscribeEvent'](a['debounce'](_0x19ca36=>{const _0x30f764=_0x5a0611;var _0x4bea1d,_0x4df14d;const {offsetX:_0x2ce059,offsetY:_0x96aa2f}=_0x19ca36,{x:_0x1491fc,y:_0x170844}=_0x4ac1ec[_0x30f764(0x1d7)](p[_0x30f764(0x193)][_0x30f764(0x14a)]([_0x2ce059,_0x96aa2f])),{scaleX:_0x1620c0,scaleY:_0x33c34d}=_0x4ac1ec[_0x30f764(0x2e8)](),_0xe35074=_0x4ac1ec[_0x30f764(0x2f8)](p[_0x30f764(0x156)]['VIEW_MAIN']),_0x1a3d20=_0x4ac1ec[_0x30f764(0x1b8)](p[_0x30f764(0x193)][_0x30f764(0x14a)]([_0x1491fc,_0x170844]),_0xe35074),_0x165313=_0x56f5e6[_0x30f764(0x191)](_0x2ce059,_0x96aa2f,_0x1620c0,_0x33c34d,_0x1a3d20);((_0x4bea1d=this[_0x30f764(0x2f9)])==null?void 0x0:_0x4bea1d['column'])===_0x165313[_0x30f764(0x192)]&&((_0x4df14d=this[_0x30f764(0x2f9)])==null?void 0x0:_0x4df14d[_0x30f764(0x1ab)])===_0x165313[_0x30f764(0x1ab)]||this[_0x30f764(0x2c5)]['forEach'](_0x8dcd3c=>{_0x8dcd3c['onMouseMove'](_0x165313);});},0x64));});}[_0x926bd0(0x11b)](_0x97b240,_0x56810f){const _0x693c8f=_0x926bd0;var _0xd38124;const _0x45fdb5=(_0xd38124=this[_0x693c8f(0xf5)][_0x693c8f(0x13c)]())==null?void 0x0:_0xd38124['skeleton'];if(!_0x45fdb5)return;const _0x2eb04a=this['_getSheetObject']();if(!_0x2eb04a)return;this['_cursors'][_0x693c8f(0x35e)](_0x3ae648=>{const _0x25a761=_0x693c8f;_0x3ae648[_0x25a761(0xe3)]();});const {scene:_0x58a190}=_0x2eb04a,_0x20254f=bt(Array[_0x693c8f(0x298)](_0x56810f[_0x693c8f(0x357)]()))['map'](_0x147bf8=>{const _0x215b19=_0x693c8f,{color:_0x1a7d3c,range:_0x53c409,name:_0xf669f1,selection:_0x538063,sheetID:_0x1505a3}=_0x147bf8,{startColumn:_0x541256,startRow:_0x3a0bf4,endColumn:_0x3a7583,endRow:_0x5af183}=_0x53c409,_0x417388=X[_0x215b19(0x1b2)](_0x3a0bf4,_0x541256,_0x58a190,_0x45fdb5),_0x190d73=X[_0x215b19(0x1b2)](_0x5af183,_0x3a7583,_0x58a190,_0x45fdb5),{columnHeaderHeightAndMarginTop:_0x53f59c}=_0x45fdb5,{startX:_0x1ca42e,startY:_0x158080}=_0x417388,{endX:_0x325e68,endY:_0x49923c}=_0x190d73,_0x22b24f=_0x325e68-_0x1ca42e,_0x4ce5ca=_0x49923c-_0x158080,_0x4d3d9d={'labelPosition':_0x158080-_0x53f59c>=K?_0x215b19(0x2ae):'bottom','sheetID':_0x1505a3,'range':_0x53c409,'color':_0x1a7d3c,'name':_0xf669f1,'selection':_0x538063,'left':_0x1ca42e,'top':_0x158080,'width':_0x22b24f,'height':_0x4ce5ca,'evented':!0x1,'zIndex':Et};return new we(_0xf669f1,_0x4d3d9d);});_0x58a190[_0x693c8f(0x341)](_0x20254f,gt),this['_cursors']=new Set(_0x20254f);}[_0x926bd0(0x1d6)](){const _0x395ce8=_0x926bd0;var _0x9220c6;(_0x9220c6=this['_cursors'])==null||_0x9220c6[_0x395ce8(0x35e)](_0x27740a=>_0x27740a[_0x395ce8(0x2ba)]());}[_0x926bd0(0x14d)](){const _0x17e15c=_0x926bd0;return X[_0x17e15c(0x332)](this[_0x17e15c(0x194)]['unit'],this[_0x17e15c(0x194)]);}};ve=pt([ae(0x1,a[_0x926bd0(0xec)](X[_0x926bd0(0x201)])),ae(0x2,a[_0x926bd0(0xec)](x)),ae(0x3,a[_0x926bd0(0xec)](a[_0x926bd0(0x176)]))],ve);function bt(_0x2b228a){const _0x243200=_0x926bd0,_0x4d929e=new Map();return _0x2b228a[_0x243200(0x35e)](_0x1bde53=>{const _0x2fbee3=_0x243200;if(_0x4d929e[_0x2fbee3(0x295)](_0x1bde53[_0x2fbee3(0x2c4)])){const _0x1b4780=_0x4d929e[_0x2fbee3(0x1ed)](_0x1bde53[_0x2fbee3(0x2c4)]);_0x1b4780[_0x2fbee3(0x1b5)]+=',\x20'+_0x1bde53['name'];}else _0x4d929e[_0x2fbee3(0x2c2)](_0x1bde53[_0x2fbee3(0x2c4)],_0x1bde53);}),Array[_0x243200(0x298)](_0x4d929e[_0x243200(0x357)]());}var b=function(){const _0x773c7=_0x926bd0;return b=Object[_0x773c7(0x178)]||function(_0x3f28c0){const _0x3799c2=_0x773c7;for(var _0x52e311,_0x33631c=0x1,_0x1e92f3=arguments[_0x3799c2(0x2ef)];_0x33631c<_0x1e92f3;_0x33631c++){_0x52e311=arguments[_0x33631c];for(var _0x3912ab in _0x52e311)Object['prototype'][_0x3799c2(0x315)][_0x3799c2(0x2f6)](_0x52e311,_0x3912ab)&&(_0x3f28c0[_0x3912ab]=_0x52e311[_0x3912ab]);}return _0x3f28c0;},b[_0x773c7(0x300)](this,arguments);},Ot=function(_0x5bbc69,_0x3782a3){const _0x5b5626=_0x926bd0;var _0x169061={};for(var _0x35fa3f in _0x5bbc69)Object[_0x5b5626(0xe9)][_0x5b5626(0x315)][_0x5b5626(0x2f6)](_0x5bbc69,_0x35fa3f)&&_0x3782a3[_0x5b5626(0x275)](_0x35fa3f)<0x0&&(_0x169061[_0x35fa3f]=_0x5bbc69[_0x35fa3f]);if(_0x5bbc69!=null&&typeof Object[_0x5b5626(0x1ba)]==_0x5b5626(0x2a1)){for(var _0x3f410c=0x0,_0x35fa3f=Object[_0x5b5626(0x1ba)](_0x5bbc69);_0x3f410c<_0x35fa3f[_0x5b5626(0x2ef)];_0x3f410c++)_0x3782a3[_0x5b5626(0x275)](_0x35fa3f[_0x3f410c])<0x0&&Object[_0x5b5626(0xe9)][_0x5b5626(0x2e9)][_0x5b5626(0x2f6)](_0x5bbc69,_0x35fa3f[_0x3f410c])&&(_0x169061[_0x35fa3f[_0x3f410c]]=_0x5bbc69[_0x35fa3f[_0x3f410c]]);}return _0x169061;},pe=M[_0x926bd0(0x2af)](function(_0x5e3ede,_0x331f07){const _0x37b024=_0x926bd0;var _0x1baaee=_0x5e3ede[_0x37b024(0x22e)],_0x35b8f7=_0x5e3ede['id'],_0x2a6e7d=_0x5e3ede[_0x37b024(0x29f)],_0x2a932e=_0x5e3ede[_0x37b024(0x2a4)],_0x59f1c3=Ot(_0x5e3ede,[_0x37b024(0x22e),'id','className',_0x37b024(0x2a4)]),_0x4140ff=_0x37b024(0x19d)[_0x37b024(0x1de)](_0x35b8f7,'\x20')['concat'](_0x2a6e7d||'')[_0x37b024(0xf4)](),_0x39335b=M[_0x37b024(0x255)]('_'['concat'](Dt()));return Ae(_0x1baaee,''[_0x37b024(0x1de)](_0x35b8f7),{'defIds':_0x1baaee[_0x37b024(0xe1)],'idSuffix':_0x39335b['current']},b({'ref':_0x331f07,'className':_0x4140ff},_0x59f1c3),_0x2a932e);});function _0xdace(){const _0x333557=['_cachedData','text','RegularPolygon','IRemoteInstanceService','Workbook','className','popstate','function','clearInterval','stringify','extend','disposeWithMe','CONNECTOR_DATA_TOO_LARGE','searchParams','show','entries','MoveRangeCommandId','USER_NOT_INVITED_CODE','INVITE_CODE_HAS_BEEN_UES','_collaborationController','top','forwardRef','type','_saveCache','handleDeleteRangeMoveLeft','_onCursorDelete','ranges','RxDisposable','NOT_FOUND','YUUMI_NO_CUBOID_FOR_QUESTION','roomMembers$','_scheduleSaving','dispose','MemberService','getMergeData','roomMembers','HTTPService','FETCH_MISS','eventID','_scheduleHeartbeat','set','some','selection','_cursors','LICENSE_IMPORT_SIZE_EXCEEDED','init','Tools','0\x200\x2017\x2016','BuiltInUIPart','none','find','RevisionService','mergeOverrideWithDependencies','attrs','INVITE_CODE_ALREADY_BOUND','DocSelectionManagerService','@univerjs/sheets','includes','327509CaqcCI','INVITE_CODE_REQUIRED','_docStateChangeManagerService','_hideTimer','mapTo','throttleTime','setParam','_online','_handleLeaveEvent','Subject','_heartbeatTimer','all','post','CollaborationEvent','getActiveSheet','evenodd','onMouseMove','@univerjs/core','INTERNAL_ERROR','string','getAncestorScale','propertyIsEnumerable','setTimeout','UniverCollaborationClientPlugin','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','_updateLocalCursor','isTransformMutationFailure','length','_refRangeService','rxjs/operators','m1Prime','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','defineProperty','@univerjs/rpc','call','with','getViewport','_lastPointer','UPDATE_CURSOR','APPLY_DUPLICATED','memberID','DisposableCollection','Plugin','selections','apply','28452zoQNlm','runId','addHandlerCallback','fromEvent','_getSessionTicket','map','_send','SheetsSelectionsService','serializeRangeWithSheet','useCallback','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','width','_transformHistoryAndStateStack','loadUnit','getLocalCacheKey','YUUMI_URL_COL_OUT_OF_RANGE','getOwnPropertyDescriptor','_setupBeforeClosingHandler','subunit','_initDependencies','hasOwnProperty','session.connection-failed','distinctUntilChanged','unload','onTransformChange$','undoState','executionId','restore','TOO_MANY_REQUESTS','error','parse','resize','getCollabEntity$','saveTaskMap','_textBubble','closePath','EMAIL_VERIFY_CODE_MISMATCH','endRow','_transformPreviousActiveRange','_toggleOnline','addObject','_localeService','@univerjs/engine-formula','arc','_draw','_uiPartsService','collab-rect-range-','JOIN_ROOM_FAILED','DocIMEInputManagerService','getSheetObject','url(#off-line-icon_clip0_910_343)','subUnitId','reconnect','m2Prime','whenReady','_assignedColors','[RemoteUniscriptService]:\x20no\x20focused\x20unit','transform','_removeClearOtherTimer','next','RemoveColCommandId','IBeforeCloseService','fillText','getTypeOfUnitAdded$','addObjects','transformMutation','_refreshCollabCursors','_memberService','univer-mr-2\x20univer-flex\x20univer-text-xl','LICENSE_MAX_UNITS_EXCEEDED','IConfigService','_updateURLWithCurrentState','_beforeCloseService','unitId','newValue','isActive','getSheetBySheetId','generateRandomId','Optional','getUnhiddenWorksheets','purple.300','transformByState','saveImage','OffLineIcon','_collabCursorState$','WebURLService','values','UNIVER_SHEET','_ensureSubject','getColorFromTheme','endColumn','setInterval','_renderManagerService','forEach','IMessageService','transformIMECache','min','Tooltip','triggerDblclick','_getScale','_cursorShapes','cursorInfo','CommandType','...','@univerjs/ui','_range','WebBrowserSingleActiveUnitService','_univerInstanceService','PENDING','startColumn','unsubscribe','InsertRowCommandId','collaboration.closeRoom','_createSocketURL','_status$','DataLoaderService','LocaleService','clsx','[CollaborationDataLoaderController]','_imageIoService','NodePositionConvertToCursor','_instanceService','CollaborationDataLoaderController','defIds','registerComponent','makeDirty','CollaborationController','650YCHafk','_handleJoinEvent','TEXT','getRenderById','prototype','fillRule','removeParam','Inject','Module','_transformService','BehaviorSubject','add','collab-text-range-','_disabled','_cursorInfo$','trim','_sheetSkeletonManagerService','asObservable','_logService','jsx','Injector','_getAnchorBounding','SetDocZoomRatioOperation','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_shapes','UniverIcon','isArray','INVALID_ARGUMENT','APPLY_PERMISSION_DENIED','_hover','complete','on-line-icon_clip0_910_349','createIdentifier','WebSocketService','MessageType','toRgbString','_initStatusComponent','beginPath','registerBeforeClose','688IkluOK','path','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','DocStateChangeManagerService','div','merge','debounceTime','Rectangle','DocSkeletonManagerService','_docSyncEditingCollabCursorService','AWAITING','session.collaboration-timeout','_labelPosition','split','url(#on-line-icon_clip0_910_349)','_updateCollabCursors','@univerjs/docs-ui','sessionStatus$','_onRefRangeChange','height','_docTransformStateCacheService','body','RemoveRowCommandId','registerRefRange','_config','_cursor','getCurrentUnitForType','hide','NO_OTHER_CLIENTS_EDITING','YUUMI_AI_RUN_FAILED','ILocalCacheService','LICENSE_DISTRO_REJECTED','href','connectInjector','CollaborationUIEventId','off-line-icon_clip0_910_343','ICommandService','params','_getSaveTimeout','_configService','code','black','createInstance','url(#$1','collaboration.single-unit.warning','_entities','getUnitId','_initResize','getCurrent','lineTo','backgroundColor','_updateSubUnitFromURLParams','getUniverSheetInstance','textRanges','EMAIL_HAS_BEEN_BOUND','onPointerLeave$','_session','executeCommand','USERS_LEAVE','pushState','getSkeleton','_toggleOffline','FromArray','storage','push','_getSheetObject','save','toString','UNRECOGNIZED','flatMap','session.will-retry','YUUMI_SUBSCRIPTION_NOT_FOUND','_name','_eventUnsubscribe','SHEET_VIEWPORT_KEY','ALREADY_EXISTS','getColor','runRefRangeMutations','jiqing.500','_backgroundColor','switchMap','touchDependencies','deserializeRangeWithSheet','_anchor','_id','_notificationService','location','@univerjs-pro/collaboration','RECT','result','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','M0\x200H16V16H0z','handleDeleteRangeMoveUp','_document','UnitStatus','#FFF','createElement','runOnServer','117509HHXFZz','LICENSE_EXPORT_SIZE_EXCEEDED','entityInit$','unitID','loadOfflineData','766125ruGhTf','DependentOn','transformStateCache','ThemeService','react/jsx-runtime','assign','data','LOCAL_CACHE_INTERVAL_KEY','pluginName','_commandService','_docTransformSelectionsService','_roomMembers$','@univerjs/network','_startSheetCollabCursor','getUndoRedoMutationParamsCache','CollaborationSessionService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','rgba(255,\x20255,\x20255,\x200.01)','_colorAssignService','OTHER_CLIENT_EDITING','_docTransformIMECacheService','_startDocCollabCursor','collaboration-client.offline-data-not-saved','handleIRemoveCol','getCurrentSelections','setStateCache','SetTextSelectionsOperation','ITransformService','_unitOnClients','DOC_RANGE_TYPE','getCellPositionByOffset','column','Vector2','_context','APPLY_NON_SEQUENTIAL_REVISION','_doCreateSocket','UniverInstanceType','SNAPSHOT_HAS_BEEN_REMOVED','svg','Rect','_registerDependencies','displayName','univerjs-icon\x20univerjs-icon-','pipe','SOCKET_FAILED_RETRY','addEventListener','_revisionService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_clearOtherTimers','getStateCache','translate(.97)','@univerjs/sheets-ui','getCollabCursors$','IUIPartsService','_colorIndex','doc.mutation.rich-text-editing','row','PY_RUNTIME_SCRIPT_ERROR','bottom','white','send','getValue','SUBMIT_CHANGESET_TIMEOUT','getCoordByCell','sheetID','OnLineIcon','name','AWAITING_WITH_PENDING','status$','getVpScrollXYInfoByPosToVp','YUUMI_ASYNCIO_CANCELLED','getOwnPropertySymbols','onPointerMove$','off-line-icon','CHANGESET_REVISION_CONFILICT','ColorKit','font','ONLINE','YUUMI_RATE_OVER_LIMIT','1789310xkuvoW','_selfUnitIDs','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','fill','CONFLICT','_getMergeRange','PERMISSION_DENIED','1em','history','HEADER_MENU','getRangePointData','_drawTextRange','collabCursorState$','mutations','INVALID_INVITE_CODE','LOGIN_FAILED','NOT_COLLAB','idSuffix','substring','takeUntil','_removeCollabCursors','getRelativeToViewportCoord','size','yellow.400','clipPath','IUniverInstanceService','collabStatus.conflict','assignAColorForMemberID','concat','@univerjs/docs','blue.400','transformMutationsWithChangeset','jsxs','ISocketService','invokeId','defs','subscribe','SessionStatus','urlChange$','permission.content','subscribeEvent','RemoteUniscriptService','event$','get','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','mask','setItem','_docClipboardService','http://www.w3.org/2000/svg','then','transformSelections','measureText','currentColor','UNIVER_DOC','_registerRenderDependencies','collab-client.tooltip.reconnect','OTHER_CLIENTS_EDITING','_render','onCommandExecuted','getDocRanges','handleInsertRangeMoveRight','1257801KhVfpz','children','SheetSkeletonManagerService','redoState','toStringTag','SNAPSHOT_INVALID_SNAPSHOT','shareReplay','_entityInit$','onRendered','colorChannel1','OFFLINE','0\x200\x2016\x2016','collab-text-anchor-','getCurrentRevOfUnit','Error','_initEntityListener','getSheetId','clearTimeout','ENSURE_SNAPSHOT_EXECUTION','CollaborationUIEventService','APPLY_REJECT','collabStatus.offline','_injector','_httpService','_urlService','setAlpha','activeSheet$','SOCKET_FAILED','deepClone','_scene','_collabCursorController','round','tag','red.300','ILocalStorageService','WECHAT_HAS_BEEN_BOUND','_docSkeleton','handleMoveRange','_localCacheService','_scheduleClearOtherTimer','UNDEFINED','@univerjs/design','unshift','collabStatus.syncing','RefRangeService','combineLatest','transformRemoteChangeset','icon','handleIRemoveRow','green.600','_anchorDot','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_onCursorUpdate','getFocusedUnit','ISnapshotServerService','_handleHeartbeatEvent','ACTIVE_UNIT_EVENT_CHANNEL','isEditing','_collaborationUIEventService','debounce','syncEditingCollabCursor','Warning','1465NORxhh','dispose$','DeleteRangeMoveLeftCommandId','engine','registerRenderModule','YUUMI_TABLE_NOT_FOUND_IN_UNIT','debug','collabStatus.fetchMiss','_initStatusListener','replaceDocRanges','use','color','xlink:href','_saveTaskMap','TEXT_RANGE_LAYER_INDEX','_dataLoaderService','DeleteRangeMoveUpCommandId','MOBILE_VERIFY_CODE_MISMATCH','onPointerEnter$','YUUMI_UNABLE_LOAD_URL','exhaustSavingTask','_themeService','Failed','_unitStatus','useRef','Disposable','SYNCED','YUUMI_ALL_TABLES_IS_INVALID','_syncEditingCollabCursorService','replace','enableLocalCache','COMPLETION_FINISHED','APPLY_REVISION_CONFILICT','collabStatus.synced','SheetCollabCursorShape','COLORS','CollaborationStatusDisplay','RichTextEditingMutation','editingUnit','startsWith','hovered','_localStorageService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CollaborationStatus','requireSession','UniverCollaborationClientUIPlugin','onLocalMutation','fillStyle','_initEvent','getOffsetConfig','origin','3836336ahEAfH','permission.title','YUUMI_CONNECTOR_URL_NOT_FOUND','onStarting','_init','indexOf','_hovered','findNodePositionByCharIndex','DesktopCollaborationStatusDisplayController','SetWorksheetActivateCommand','setShapeProps','cursorInfo$','rxjs','_color','range','ILogService','@univerjs-pro/collaboration-client','drawWith','symbol','getMemberID','getParam','replaceState','EffectRefRangId','getConfig','_initCommandExecutedListener','SetSelectionsOperation','MUTATION','_docSkeletonManagerService','_messageService','_handleEvent','setActiveRange','MOBILE_HAS_BEEN_BOUND','/run/','univer-flex\x20univer-items-center','delete','setConfig','@univerjs/drawing','has','getTypeOfUnitDisposed$','_handleHover','from','_collabSessionService'];_0xdace=function(){return _0x333557;};return _0xdace();}function Ae(_0x130a93,_0x137997,_0x2a49ae,_0x2e8160,_0x4525c4){const _0x16f9c0=_0x926bd0;return M['createElement'](_0x130a93[_0x16f9c0(0x21f)],b(b({'key':_0x137997},Tt(_0x130a93,_0x2a49ae,_0x4525c4)),_0x2e8160),(Rt(_0x130a93,_0x2a49ae)['children']||[])[_0x16f9c0(0x306)](function(_0x44e399,_0xb3162){const _0x20ad7c=_0x16f9c0;return Ae(_0x44e399,''[_0x20ad7c(0x1de)](_0x137997,'-')[_0x20ad7c(0x1de)](_0x130a93[_0x20ad7c(0x21f)],'-')[_0x20ad7c(0x1de)](_0xb3162),_0x2a49ae,void 0x0,_0x4525c4);}));}function Tt(_0x1f2b1c,_0x80e018,_0xfe6156){const _0x53fdd7=_0x926bd0;var _0xb82e=b({},_0x1f2b1c[_0x53fdd7(0x2cf)]);_0xfe6156!=null&&_0xfe6156[_0x53fdd7(0x208)]&&_0xb82e[_0x53fdd7(0x1c5)]===_0x53fdd7(0x208)&&(_0xb82e[_0x53fdd7(0x1c5)]=_0xfe6156[_0x53fdd7(0x208)]),_0x1f2b1c['tag']===_0x53fdd7(0x1ef)&&_0xb82e['id']&&(_0xb82e['id']=_0xb82e['id']+_0x80e018[_0x53fdd7(0x1d3)]),Object[_0x53fdd7(0x2a9)](_0xb82e)[_0x53fdd7(0x35e)](function(_0x3bd67a){const _0x32f697=_0x53fdd7;var _0x36dbe4=_0x3bd67a[0x0],_0x395b16=_0x3bd67a[0x1];_0x36dbe4===_0x32f697(0x1ef)&&typeof _0x395b16==_0x32f697(0x2e7)&&(_0xb82e[_0x36dbe4]=_0x395b16[_0x32f697(0x25a)](/url\(#(.*)\)/,_0x32f697(0x137)[_0x32f697(0x1de)](_0x80e018[_0x32f697(0x1d3)],')')));});var _0x516689=_0x80e018['defIds'];return!_0x516689||_0x516689['length']===0x0||(_0x1f2b1c[_0x53fdd7(0x21f)]===_0x53fdd7(0x247)&&_0xb82e[_0x53fdd7(0x249)]&&(_0xb82e['xlink:href']=_0xb82e[_0x53fdd7(0x249)]+_0x80e018[_0x53fdd7(0x1d3)]),Object[_0x53fdd7(0x2a9)](_0xb82e)[_0x53fdd7(0x35e)](function(_0x5400f0){const _0x11b3bd=_0x53fdd7;var _0x371628=_0x5400f0[0x0],_0x1bc6c7=_0x5400f0[0x1];typeof _0x1bc6c7==_0x11b3bd(0x2e7)&&(_0xb82e[_0x371628]=_0x1bc6c7[_0x11b3bd(0x25a)](/url\(#(.*)\)/,_0x11b3bd(0x137)['concat'](_0x80e018[_0x11b3bd(0x1d3)],')')));})),_0xb82e;}function Rt(_0x272e8f,_0x4dfce5){const _0x144328=_0x926bd0;var _0x4cd418,_0x141735=_0x4dfce5[_0x144328(0xe1)];return!_0x141735||_0x141735[_0x144328(0x2ef)]===0x0?_0x272e8f:_0x272e8f['tag']==='defs'&&(!((_0x4cd418=_0x272e8f[_0x144328(0x200)])===null||_0x4cd418===void 0x0)&&_0x4cd418['length'])?b(b({},_0x272e8f),{'children':_0x272e8f[_0x144328(0x200)][_0x144328(0x306)](function(_0x40003b){const _0x3d2827=_0x144328;return typeof _0x40003b['attrs']['id']==_0x3d2827(0x2e7)&&_0x141735&&_0x141735[_0x3d2827(0x2d3)](_0x40003b[_0x3d2827(0x2cf)]['id'])?b(b({},_0x40003b),{'attrs':b(b({},_0x40003b[_0x3d2827(0x2cf)]),{'id':_0x40003b[_0x3d2827(0x2cf)]['id']+_0x4dfce5[_0x3d2827(0x1d3)]})}):_0x40003b;})}):_0x272e8f;}function Dt(){const _0x5809b2=_0x926bd0;return Math['random']()[_0x5809b2(0x14f)](0x24)[_0x5809b2(0x1d4)](0x2,0x8);}pe[_0x926bd0(0x19c)]=_0x926bd0(0xfe);var Ut={'tag':_0x926bd0(0x199),'attrs':{'xmlns':_0x926bd0(0x1f2),'fill':_0x926bd0(0x2cb),'viewBox':_0x926bd0(0x20a),'width':_0x926bd0(0x1c9),'height':_0x926bd0(0x1c9)},'children':[{'tag':'g','attrs':{'clipPath':_0x926bd0(0x333)},'children':[{'tag':_0x926bd0(0x10d),'attrs':{'stroke':_0x926bd0(0x1f6),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x926bd0(0x21e),'strokeWidth':1.2}}]},{'tag':_0x926bd0(0x1e5),'attrs':{},'children':[{'tag':_0x926bd0(0x1da),'attrs':{'id':_0x926bd0(0x12f)},'children':[{'tag':_0x926bd0(0x10d),'attrs':{'fill':_0x926bd0(0x1ae),'d':_0x926bd0(0x167)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M[_0x926bd0(0x2af)](function(_0x358b5b,_0x56738f){const _0x5a6848=_0x926bd0;return M[_0x5a6848(0x16c)](pe,Object[_0x5a6848(0x178)]({},_0x358b5b,{'id':_0x5a6848(0x1bc),'ref':_0x56738f,'icon':Ut}));});ye[_0x926bd0(0x19c)]=_0x926bd0(0x354);var Nt={'tag':_0x926bd0(0x199),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x926bd0(0x2c9),'width':_0x926bd0(0x1c9),'height':_0x926bd0(0x1c9)},'children':[{'tag':'g','attrs':{'clipPath':_0x926bd0(0x11a)},'children':[{'tag':_0x926bd0(0x10d),'attrs':{'stroke':'currentColor','d':_0x926bd0(0x2ec),'strokeLinecap':_0x926bd0(0x21e),'strokeLinejoin':_0x926bd0(0x21e),'strokeWidth':1.2}}]},{'tag':_0x926bd0(0x1e5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x926bd0(0x104)},'children':[{'tag':_0x926bd0(0x10d),'attrs':{'fill':_0x926bd0(0x1ae),'d':_0x926bd0(0x167),'transform':_0x926bd0(0x1a5)}}]}]}],'defIds':[_0x926bd0(0x104)]},$e=M['forwardRef'](function(_0x247161,_0x2dbd71){const _0x3b58cb=_0x926bd0;return M[_0x3b58cb(0x16c)](pe,Object[_0x3b58cb(0x178)]({},_0x247161,{'id':'on-line-icon','ref':_0x2dbd71,'icon':Nt}));});$e['displayName']=_0x926bd0(0x1b4);function Mt(_0x2e76ab){const _0x4a098b=_0x926bd0;switch(_0x2e76ab){case u[_0x4a098b(0x268)][_0x4a098b(0x209)]:return _0x4a098b(0x214);case u[_0x4a098b(0x268)][_0x4a098b(0x1c6)]:return _0x4a098b(0x1dc);case u[_0x4a098b(0x268)][_0x4a098b(0x2bf)]:return _0x4a098b(0x244);case u[_0x4a098b(0x268)][_0x4a098b(0x1d2)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x4a098b(0x116)]:case u['CollaborationStatus'][_0x4a098b(0x1b6)]:return _0x4a098b(0x22a);case u[_0x4a098b(0x268)][_0x4a098b(0x257)]:case u[_0x4a098b(0x268)][_0x4a098b(0xd2)]:return _0x4a098b(0x25e);}}function xe(_0x2a7d5c){const _0x43247c=_0x926bd0,{status$:_0x395822}=_0x2a7d5c,_0xe1a000=O['useObservable'](_0x395822,u[_0x43247c(0x268)]['NOT_COLLAB']),_0x391c2a=O['useDependency'](a[_0x43247c(0xda)]),_0x2c87e8=O['useDependency'](u[_0x43247c(0x182)]),_0x1bb62f=_0xe1a000!==u[_0x43247c(0x268)][_0x43247c(0x209)],_0xd5f60d=_0x391c2a['t'](Mt(_0xe1a000)),_0x5cc9dd=_0x1bb62f?P['jsx']($e,{}):P['jsx'](ye,{}),_0x35d49a=M[_0x43247c(0x30a)](()=>{const _0x55d3f1=_0x43247c;_0x1bb62f||_0x2c87e8[_0x55d3f1(0x335)]();},[_0x1bb62f,_0x2c87e8]);function _0x502cc3(){const _0x1f2406=_0x43247c;return P[_0x1f2406(0x1e2)](_0x1f2406(0x110),{'className':_0x1f2406(0x291),'onClick':_0x35d49a,'children':[P[_0x1f2406(0xf8)](_0x1f2406(0x110),{'className':D[_0x1f2406(0xdb)](_0x1f2406(0x345),{'univer-text-green-500':_0x1bb62f,'univer-text-red-500':!_0x1bb62f}),'children':_0x5cc9dd}),P[_0x1f2406(0xf8)](_0x1f2406(0x110),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xd5f60d})]});}return _0x1bb62f?_0x502cc3():P[_0x43247c(0xf8)](D[_0x43247c(0x362)],{'title':_0x391c2a['t'](_0x43247c(0x1f9)),'children':_0x502cc3()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x548620,_0x422e07,_0x48f5bf,_0x3152f4)=>{const _0x33d057=_0x926bd0;for(var _0x3b2356=_0x3152f4>0x1?void 0x0:_0x3152f4?Lt(_0x422e07,_0x48f5bf):_0x422e07,_0x39dae7=_0x548620[_0x33d057(0x2ef)]-0x1,_0x1b13bf;_0x39dae7>=0x0;_0x39dae7--)(_0x1b13bf=_0x548620[_0x39dae7])&&(_0x3b2356=_0x1b13bf(_0x3b2356)||_0x3b2356);return _0x3b2356;},V=(_0x182daa,_0x29e305)=>(_0x416870,_0x35fb12)=>_0x29e305(_0x416870,_0x35fb12,_0x182daa);exports[_0x926bd0(0x278)]=class extends a['Disposable']{constructor(_0x299c3e,_0x1ff843,_0x2994e0,_0x4527a3){const _0x4fd763=_0x926bd0;super(),h(this,_0x4fd763(0xd8),new d[(_0x4fd763(0xef))](u[_0x4fd763(0x268)]['NOT_COLLAB'])),(this[_0x4fd763(0xd1)]=_0x299c3e,this[_0x4fd763(0x215)]=_0x1ff843,this[_0x4fd763(0x2ad)]=_0x2994e0,this[_0x4fd763(0x32e)]=_0x4527a3,this[_0x4fd763(0x109)](),this[_0x4fd763(0x245)]());}[_0x926bd0(0x245)](){const _0x10c643=_0x926bd0;this[_0x10c643(0x2a5)](this['_univerInstanceService']['focused$'][_0x10c643(0x19e)](d[_0x10c643(0x15c)](()=>{const _0x3fb5de=_0x10c643,_0x5c9795=this[_0x3fb5de(0xd1)][_0x3fb5de(0x234)]();return _0x5c9795?this[_0x3fb5de(0x2ad)][_0x3fb5de(0x321)](_0x5c9795['getUnitId']()):d['of'](null);}),d[_0x10c643(0x15c)](_0x4af4e7=>_0x4af4e7?_0x4af4e7[_0x10c643(0x1b7)]:d['of'](u[_0x10c643(0x268)][_0x10c643(0x1d2)])))[_0x10c643(0x1e6)](_0x51df50=>{this['_status$']['next'](_0x51df50);}));}[_0x926bd0(0x109)](){const _0x211d9b=_0x926bd0;this[_0x211d9b(0x2a5)](this[_0x211d9b(0x32e)][_0x211d9b(0xe2)](O[_0x211d9b(0x2ca)][_0x211d9b(0x1cb)],()=>O[_0x211d9b(0x12d)](wt({'status$':this['_status$'][_0x211d9b(0xf6)]()}),this['_injector'])));}},exports[_0x926bd0(0x278)]=Pt([V(0x0,a[_0x926bd0(0x1db)]),V(0x1,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),V(0x2,a[_0x926bd0(0xec)](u[_0x926bd0(0xe4)])),V(0x3,O[_0x926bd0(0x1a8)])],exports[_0x926bd0(0x278)]);function _0x18d9(_0x355123,_0x59e754){const _0xdacee6=_0xdace();return _0x18d9=function(_0x18d95e,_0x8aada1){_0x18d95e=_0x18d95e-0xcf;let _0x14bea2=_0xdacee6[_0x18d95e];return _0x14bea2;},_0x18d9(_0x355123,_0x59e754);}function wt(_0x3d4585){const {status$:_0x425d77}=_0x3d4585;return function(){const _0x9769bb=_0x18d9;return P[_0x9769bb(0xf8)](xe,{'status$':_0x425d77});};}var At=Object[_0x926bd0(0x311)],yt=(_0xeedf95,_0x17ea25,_0xae9d38,_0x410fb3)=>{const _0x1694fb=_0x926bd0;for(var _0x218b51=_0x410fb3>0x1?void 0x0:_0x410fb3?At(_0x17ea25,_0xae9d38):_0x17ea25,_0x148c3e=_0xeedf95[_0x1694fb(0x2ef)]-0x1,_0x5d3540;_0x148c3e>=0x0;_0x148c3e--)(_0x5d3540=_0xeedf95[_0x148c3e])&&(_0x218b51=_0x5d3540(_0x218b51)||_0x218b51);return _0x218b51;},y=(_0x6f13c0,_0x423203)=>(_0x34a525,_0x2a7b26)=>_0x423203(_0x34a525,_0x2a7b26,_0x6f13c0);let q=class extends a[_0x926bd0(0x256)]{constructor(_0x165213,_0x2c241c,_0x583974,_0x3bc727,_0xa56b0,_0x182534){const _0x1572af=_0x926bd0;super(),this['_beforeCloseService']=_0x165213,this['_localCacheService']=_0x2c241c,this[_0x1572af(0x239)]=_0x583974,this[_0x1572af(0x28c)]=_0x3bc727,this[_0x1572af(0x161)]=_0xa56b0,this[_0x1572af(0x32a)]=_0x182534,this['_setupBeforeClosingHandler'](),this[_0x1572af(0x26d)]();}[_0x926bd0(0x312)](){const _0x229330=_0x926bd0;this['disposeWithMe'](this[_0x229330(0x349)][_0x229330(0x10b)](()=>{const _0x3e4099=_0x229330;if(this[_0x3e4099(0x225)]['saveTaskMap'][_0x3e4099(0x1d8)])return this[_0x3e4099(0x32a)]['t'](_0x3e4099(0x189));}));}[_0x926bd0(0x26d)](){const _0x4135e6=_0x926bd0;this[_0x4135e6(0x2a5)](this[_0x4135e6(0x239)]['event$'][_0x4135e6(0x1e6)](_0x59ecaa=>{const _0x20569d=_0x4135e6;_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x186)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D[_0x20569d(0x107)][_0x20569d(0x23c)],'content':this[_0x20569d(0x32a)]['t'](_0x20569d(0x138))}),_0x59ecaa['id']===u[_0x20569d(0x12e)]['CLOSE_ROOM']&&this[_0x20569d(0x28c)]['show']({'type':D[_0x20569d(0x107)]['Warning'],'content':this['_localeService']['t'](_0x20569d(0xd6))}),_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x1c8)]&&this['_notificationService'][_0x20569d(0x2a8)]({'title':this[_0x20569d(0x32a)]['t'](_0x20569d(0x271)),'content':this['_localeService']['t'](_0x20569d(0x1e9)),'type':_0x20569d(0x31e),'duration':0x0}),_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x1c6)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D[_0x20569d(0x107)][_0x20569d(0x20d)],'content':this[_0x20569d(0x32a)]['t'](_0x20569d(0xd6))+'('+_0x59ecaa[_0x20569d(0x179)]+')'}),_0x59ecaa['id']===u['CollaborationUIEventId'][_0x20569d(0x330)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D[_0x20569d(0x107)]['Warning'],'content':this[_0x20569d(0x32a)]['t'](_0x59ecaa[_0x20569d(0x179)]||'')}),_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x19f)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D['MessageType'][_0x20569d(0x23c)],'content':this[_0x20569d(0x32a)]['t'](_0x20569d(0x152))}),_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x21a)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D[_0x20569d(0x107)][_0x20569d(0x20d)],'content':this[_0x20569d(0x32a)]['t'](_0x20569d(0x316))}),_0x59ecaa['id']===u[_0x20569d(0x12e)][_0x20569d(0x1b1)]&&this[_0x20569d(0x28c)][_0x20569d(0x2a8)]({'type':D[_0x20569d(0x107)][_0x20569d(0x20d)],'content':this[_0x20569d(0x32a)]['t'](_0x20569d(0x117))});}));}};q=yt([y(0x0,O[_0x926bd0(0x33e)]),y(0x1,u[_0x926bd0(0x12a)]),y(0x2,a['Inject'](u[_0x926bd0(0x212)])),y(0x3,O[_0x926bd0(0x35f)]),y(0x4,O['INotificationService']),y(0x5,a[_0x926bd0(0xec)](a[_0x926bd0(0xda)]))],q);const $t='collaboration-client-ui.config',Ue={},Ee=a[_0x926bd0(0x105)]('uni.network.url-service');var xt=Object[_0x926bd0(0x311)],Bt=(_0x3b4b80,_0x4e7b27,_0x5659b3,_0x3c61cd)=>{const _0x27bab0=_0x926bd0;for(var _0x2f78d8=_0x3c61cd>0x1?void 0x0:_0x3c61cd?xt(_0x4e7b27,_0x5659b3):_0x4e7b27,_0x108840=_0x3b4b80[_0x27bab0(0x2ef)]-0x1,_0x27f541;_0x108840>=0x0;_0x108840--)(_0x27f541=_0x3b4b80[_0x108840])&&(_0x2f78d8=_0x27f541(_0x2f78d8)||_0x2f78d8);return _0x2f78d8;},F=(_0x5b67ca,_0x307a44)=>(_0x599328,_0x354f51)=>_0x307a44(_0x599328,_0x354f51,_0x5b67ca);exports['CollaborationDataLoaderController']=class extends a[_0x926bd0(0x2b5)]{constructor(_0x11b8af,_0x74097,_0x411dc2,_0x37654a,_0x576bd3){const _0x251b2f=_0x926bd0;super(),this[_0x251b2f(0x217)]=_0x11b8af,this['_logService']=_0x74097,this[_0x251b2f(0x17c)]=_0x411dc2,this[_0x251b2f(0x24c)]=_0x37654a,_0x576bd3?_0x576bd3==null||_0x576bd3[_0x251b2f(0x337)]()[_0x251b2f(0x1f3)](()=>this[_0x251b2f(0x274)]()):(this[_0x251b2f(0xf7)][_0x251b2f(0x243)](_0x251b2f(0xdc),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x926bd0(0x274)](){const _0x13551e=_0x926bd0,_0x3bbde8=this[_0x13551e(0x217)]['getParam']('unit'),_0x30ebdc=this[_0x13551e(0x217)]['getParam'](_0x13551e(0x2b0)),_0x1c211b=this['_urlService'][_0x13551e(0x284)](_0x13551e(0x313));if(!_0x3bbde8||!_0x30ebdc){this[_0x13551e(0xf7)][_0x13551e(0x243)](_0x13551e(0xdc),_0x13551e(0x166));return;}const _0x15cf22=await this[_0x13551e(0x24c)][_0x13551e(0x30e)](_0x3bbde8,Number(_0x30ebdc),_0x1c211b);_0x15cf22&&_0x15cf22 instanceof a[_0x13551e(0x29e)]&&this['_setupSubUnitSync'](_0x15cf22);}async['_setupSubUnitSync'](_0x2b28d9){const _0x4f9e74=_0x926bd0;await this[_0x4f9e74(0x13f)](_0x2b28d9),_0x2b28d9[_0x4f9e74(0x219)][_0x4f9e74(0x19e)](d[_0x4f9e74(0x1d5)](this[_0x4f9e74(0x23e)]))[_0x4f9e74(0x1e6)](_0x35f838=>{const _0x362f28=_0x4f9e74;_0x35f838&&this[_0x362f28(0x348)](_0x35f838);}),this[_0x4f9e74(0x217)][_0x4f9e74(0x1e8)][_0x4f9e74(0x19e)](d[_0x4f9e74(0x1d5)](this['dispose$']))['subscribe'](()=>this[_0x4f9e74(0x13f)](_0x2b28d9));}[_0x926bd0(0x348)](_0x301625,_0xa74fd2=!0x1){const _0x9260e9=_0x926bd0,_0x3d11d4=this['_urlService']['getParam'](_0x9260e9(0x313));_0x301625[_0x9260e9(0x20f)]()!==_0x3d11d4&&this[_0x9260e9(0x217)]['setParam'](_0x9260e9(0x313),_0x301625[_0x9260e9(0x20f)](),_0xa74fd2);}async[_0x926bd0(0x13f)](_0x54e384){const _0xc1d26c=_0x926bd0;var _0x58e0cc;const _0xa9492d=this[_0xc1d26c(0x217)][_0xc1d26c(0x284)](_0xc1d26c(0x313));if(!_0xa9492d||!_0x54e384['getSheetBySheetId'](_0xa9492d)){const _0x550cf2=_0x54e384[_0xc1d26c(0x350)]()[0x0],_0xfc2a09=_0x54e384[_0xc1d26c(0x34d)](_0x550cf2);if(!_0xfc2a09)return;this['_updateURLWithCurrentState'](_0xfc2a09,!0x0),await this[_0xc1d26c(0x17c)][_0xc1d26c(0x145)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x54e384[_0xc1d26c(0x13a)](),'subUnitId':_0x550cf2});return;}((_0x58e0cc=_0x54e384[_0xc1d26c(0x2e2)]())==null?void 0x0:_0x58e0cc[_0xc1d26c(0x20f)]())!==_0xa9492d&&await this[_0xc1d26c(0x17c)][_0xc1d26c(0x145)](g[_0xc1d26c(0x279)]['id'],{'unitId':_0x54e384[_0xc1d26c(0x13a)](),'subUnitId':_0xa9492d});}},exports[_0x926bd0(0xe0)]=Bt([F(0x0,Ee),F(0x1,a[_0x926bd0(0x27f)]),F(0x2,a[_0x926bd0(0x130)]),F(0x3,a[_0x926bd0(0xec)](u[_0x926bd0(0xd9)])),F(0x4,a[_0x926bd0(0x34f)](Ke[_0x926bd0(0x29d)]))],exports[_0x926bd0(0xe0)]);var jt=Object[_0x926bd0(0x311)],kt=(_0x17633e,_0x41890c,_0x4116e7,_0x586308)=>{const _0x463537=_0x926bd0;for(var _0x391fe7=_0x586308>0x1?void 0x0:_0x586308?jt(_0x41890c,_0x4116e7):_0x41890c,_0x3507d8=_0x17633e[_0x463537(0x2ef)]-0x1,_0x3e6031;_0x3507d8>=0x0;_0x3507d8--)(_0x3e6031=_0x17633e[_0x3507d8])&&(_0x391fe7=_0x3e6031(_0x391fe7)||_0x391fe7);return _0x391fe7;},ce=(_0x184d46,_0x511b23)=>(_0x4126b1,_0x51ebec)=>_0x511b23(_0x4126b1,_0x51ebec,_0x184d46);let z=class{constructor(_0x49c17d,_0x49447c,_0xe1bd35){this['_injector']=_0x49c17d,this['_transformService']=_0x49447c,this['_renderManagerService']=_0xe1bd35;}['transformIMECache'](_0x4afb10){const _0x56b39f=_0x926bd0;this['_transformUndoRedoStack'](_0x4afb10),this[_0x56b39f(0x327)](_0x4afb10);}[_0x926bd0(0x22d)](_0x28dfad){const _0x427299=_0x926bd0,{unitID:_0x51fd4c}=_0x28dfad,_0x5f2207=this[_0x427299(0x35d)][_0x427299(0xe8)](_0x51fd4c)[_0x427299(0x2f7)](E[_0x427299(0x331)]),{redoCache:_0x2e07cd}=_0x5f2207[_0x427299(0x181)]();if(_0x2e07cd[_0x427299(0x2ef)]===0x0)return _0x28dfad;let _0x32380f=a[_0x427299(0x2c8)][_0x427299(0x21b)](_0x28dfad['mutations'][0x0]);for(let _0x372da5=0x0;_0x372da5<_0x2e07cd[_0x427299(0x2ef)];_0x372da5++){const _0x18bbde={'id':_0x427299(0x1aa),'params':{..._0x2e07cd[_0x372da5]}},_0x505f1b=this[_0x427299(0xee)][_0x427299(0x342)](_0x32380f,_0x18bbde,!0x1);if(m[_0x427299(0x2ee)](_0x505f1b))throw _0x505f1b[_0x427299(0x31e)];_0x32380f=_0x505f1b['m1Prime'];}return{...a['Tools'][_0x427299(0x21b)](_0x28dfad),'mutations':[_0x32380f]};}['_transformUndoRedoStack'](_0x13cea7){const _0x5d0d9b=_0x926bd0,{unitID:_0x3acec9}=_0x13cea7,_0x2d42f2=this[_0x5d0d9b(0x35d)][_0x5d0d9b(0xe8)](_0x3acec9)[_0x5d0d9b(0x2f7)](E['DocIMEInputManagerService']),{undoCache:_0x39b57e,redoCache:_0x100a22}=_0x2d42f2[_0x5d0d9b(0x181)]();if(_0x39b57e[_0x5d0d9b(0x2ef)]===0x0||_0x100a22['length']===0x0)return;const _0x2ea67d=[],_0x5df8e9=[];let _0x4689e3=a['Tools'][_0x5d0d9b(0x21b)](_0x13cea7[_0x5d0d9b(0x1cf)][0x0]),_0x15b657=a[_0x5d0d9b(0x2c8)]['deepClone'](_0x13cea7[_0x5d0d9b(0x1cf)][0x0]);for(let _0x40b237=_0x39b57e[_0x5d0d9b(0x2ef)]-0x1;_0x40b237>=0x0;_0x40b237--){const _0x30c639={'id':_0x5d0d9b(0x1aa),'params':{..._0x39b57e[_0x40b237]}},_0x2dd664={'id':_0x5d0d9b(0x1aa),'params':{..._0x100a22[_0x40b237]}},_0x46c96a=this[_0x5d0d9b(0xee)][_0x5d0d9b(0x342)](_0x4689e3,_0x30c639,!0x1),_0x19b1fe=this['_transformService'][_0x5d0d9b(0x342)](_0x15b657,_0x2dd664,!0x1);if(m[_0x5d0d9b(0x2ee)](_0x46c96a))throw _0x46c96a[_0x5d0d9b(0x31e)];if(m[_0x5d0d9b(0x2ee)](_0x19b1fe))throw _0x19b1fe[_0x5d0d9b(0x31e)];_0x2ea67d[_0x5d0d9b(0x229)](_0x46c96a[_0x5d0d9b(0x336)][_0x5d0d9b(0x131)]),_0x5df8e9[_0x5d0d9b(0x229)](_0x19b1fe[_0x5d0d9b(0x336)][_0x5d0d9b(0x131)]),_0x4689e3=_0x46c96a[_0x5d0d9b(0x2f2)],_0x15b657=_0x19b1fe['m1Prime'];}_0x2d42f2['setUndoRedoMutationParamsCache']({'undoCache':_0x2ea67d,'redoCache':_0x5df8e9});}[_0x926bd0(0x327)](_0x6f903){const _0x31923c=_0x926bd0,{unitID:_0x4afc43}=_0x6f903,_0x4ca4fd=this['_renderManagerService'][_0x31923c(0xe8)](_0x4afc43)[_0x31923c(0x2f7)](E['DocIMEInputManagerService']),_0x211e6a=_0x4ca4fd['getActiveRange']();if(_0x211e6a==null)return;const _0x146ed5=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x6f903[_0x31923c(0x171)],'actions':null,'textRanges':[_0x211e6a]}}],_0x8f6bd4=this[_0x31923c(0xee)][_0x31923c(0x1e1)](_0x6f903,_0x146ed5);if(!m['isTransformMutationsWithChangesetSuccess'](_0x8f6bd4))throw _0x8f6bd4['error'];const _0x28c49b=_0x8f6bd4[_0x31923c(0x336)][0x0][_0x31923c(0x131)][_0x31923c(0x141)];Array[_0x31923c(0xff)](_0x28c49b)&&_0x28c49b[_0x31923c(0x2ef)]&&_0x4ca4fd[_0x31923c(0x28e)](_0x28c49b[0x0]);}};z=kt([ce(0x0,a['Inject'](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p['IRenderManagerService'])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x192ad1,_0x5a6005,_0x27b859,_0xd6a45f)=>{const _0x2cb734=_0x926bd0;for(var _0x2f240f=_0xd6a45f>0x1?void 0x0:_0xd6a45f?Ft(_0x5a6005,_0x27b859):_0x5a6005,_0x7a760e=_0x192ad1[_0x2cb734(0x2ef)]-0x1,_0x27cf14;_0x7a760e>=0x0;_0x7a760e--)(_0x27cf14=_0x192ad1[_0x7a760e])&&(_0x2f240f=_0x27cf14(_0x2f240f)||_0x2f240f);return _0x2f240f;},le=(_0x16e5be,_0x4da26a)=>(_0x5a62eb,_0x25af6)=>_0x4da26a(_0x5a62eb,_0x25af6,_0x16e5be);let J=class{constructor(_0x2e5b1b,_0x36aae2,_0xaee2d1){const _0x436686=_0x926bd0;this[_0x436686(0x215)]=_0x2e5b1b,this['_transformService']=_0x36aae2,this[_0x436686(0x2d6)]=_0xaee2d1;}[_0x926bd0(0x175)](_0x47a420){const _0x2dab8e=_0x926bd0;this[_0x2dab8e(0x30d)](_0x47a420);}['transformRemoteChangeset'](_0xf11643){const _0x35303e=_0x926bd0,{unitID:_0x252066}=_0xf11643,{collaboration:_0x159bcc}=this[_0x35303e(0x2d6)][_0x35303e(0x1a4)](_0x252066);if(_0x159bcc[_0x35303e(0x2ef)]===0x0)return _0xf11643;let _0x47feb9=a[_0x35303e(0x2c8)]['deepClone'](_0xf11643[_0x35303e(0x1cf)][0x0]);for(let _0x5d096e=0x0;_0x5d096e<_0x159bcc['length'];_0x5d096e++){const _0x301790={'id':_0x35303e(0x1aa),'params':{'unitId':_0x159bcc[_0x5d096e][_0x35303e(0x34a)],..._0x159bcc[_0x5d096e][_0x35303e(0x202)]}},_0x1825b2=this[_0x35303e(0xee)]['transformMutation'](_0x47feb9,_0x301790,!0x1);if(m['isTransformMutationFailure'](_0x1825b2))throw _0x1825b2[_0x35303e(0x31e)];_0x47feb9=_0x1825b2['m1Prime'];}return{...a[_0x35303e(0x2c8)][_0x35303e(0x21b)](_0xf11643),'mutations':[_0x47feb9]};}[_0x926bd0(0x30d)](_0x4eefa3){const _0x45a640=_0x926bd0,{unitID:_0xe49228}=_0x4eefa3,{history:_0x43a308,collaboration:_0x6fda63}=this[_0x45a640(0x2d6)][_0x45a640(0x1a4)](_0xe49228);if(_0x43a308['length']===0x0&&_0x6fda63[_0x45a640(0x2ef)]===0x0)return;const _0x491586=[],_0x117043=[];let _0x3ca978=a[_0x45a640(0x2c8)]['deepClone'](_0x4eefa3[_0x45a640(0x1cf)][0x0]),_0x421627=a[_0x45a640(0x2c8)]['deepClone'](_0x4eefa3[_0x45a640(0x1cf)][0x0]);for(let _0x3f4817=_0x43a308['length']-0x1;_0x3f4817>=0x0;_0x3f4817--){const _0x56616c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x43a308[_0x3f4817][_0x45a640(0x34a)],..._0x43a308[_0x3f4817][_0x45a640(0x31a)]}},_0x5500a4={'id':_0x45a640(0x1aa),'params':{'unitId':_0x43a308[_0x3f4817][_0x45a640(0x34a)],..._0x43a308[_0x3f4817][_0x45a640(0x202)]}},_0x788df1=this['_transformService'][_0x45a640(0x342)](_0x3ca978,_0x56616c,!0x1),_0x4b36bb=this['_transformService'][_0x45a640(0x342)](_0x421627,_0x5500a4,!0x1);if(m[_0x45a640(0x2ee)](_0x788df1))throw _0x788df1[_0x45a640(0x31e)];if(m['isTransformMutationFailure'](_0x4b36bb))throw _0x4b36bb['error'];_0x491586[_0x45a640(0x229)]({..._0x43a308[_0x3f4817],'undoState':_0x788df1[_0x45a640(0x336)][_0x45a640(0x131)],'redoState':_0x4b36bb['m2Prime']['params']}),_0x3ca978=_0x788df1['m1Prime'],_0x421627=_0x4b36bb[_0x45a640(0x2f2)];}_0x3ca978=a[_0x45a640(0x2c8)][_0x45a640(0x21b)](_0x4eefa3[_0x45a640(0x1cf)][0x0]),_0x421627=a['Tools']['deepClone'](_0x4eefa3['mutations'][0x0]);for(let _0x3918d0=_0x6fda63['length']-0x1;_0x3918d0>=0x0;_0x3918d0--){const _0x5f0416={'id':_0x45a640(0x1aa),'params':{'unitId':_0x6fda63[_0x3918d0][_0x45a640(0x34a)],..._0x6fda63[_0x3918d0][_0x45a640(0x31a)]}},_0x1d111a={'id':_0x45a640(0x1aa),'params':{'unitId':_0x6fda63[_0x3918d0][_0x45a640(0x34a)],..._0x6fda63[_0x3918d0][_0x45a640(0x202)]}},_0x37cf36=this[_0x45a640(0xee)][_0x45a640(0x342)](_0x3ca978,_0x5f0416,!0x1),_0x52848b=this[_0x45a640(0xee)][_0x45a640(0x342)](_0x421627,_0x1d111a,!0x1);if(m[_0x45a640(0x2ee)](_0x37cf36))throw _0x37cf36[_0x45a640(0x31e)];if(m[_0x45a640(0x2ee)](_0x52848b))throw _0x52848b['error'];_0x117043[_0x45a640(0x229)]({..._0x6fda63[_0x3918d0],'undoState':_0x37cf36[_0x45a640(0x336)][_0x45a640(0x131)],'redoState':_0x52848b[_0x45a640(0x336)]['params']}),_0x3ca978=_0x37cf36['m1Prime'],_0x421627=_0x52848b[_0x45a640(0x2f2)];}this[_0x45a640(0x2d6)][_0x45a640(0x18c)](_0xe49228,{'history':_0x491586,'collaboration':_0x117043});}};J=Ht([le(0x0,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),le(0x1,m['ITransformService']),le(0x2,a[_0x926bd0(0xec)](E[_0x926bd0(0x10f)]))],J);var Yt=Object[_0x926bd0(0x311)],Wt=(_0x23578d,_0x5ab501,_0x3c131a,_0x56cf64)=>{for(var _0x2b1ddb=_0x56cf64>0x1?void 0x0:_0x56cf64?Yt(_0x5ab501,_0x3c131a):_0x5ab501,_0x195b89=_0x23578d['length']-0x1,_0x5a904e;_0x195b89>=0x0;_0x195b89--)(_0x5a904e=_0x23578d[_0x195b89])&&(_0x2b1ddb=_0x5a904e(_0x2b1ddb)||_0x2b1ddb);return _0x2b1ddb;},Ne=(_0x3c8ef4,_0x16daf4)=>(_0x457f7f,_0x197484)=>_0x16daf4(_0x457f7f,_0x197484,_0x3c8ef4);let Z=class{constructor(_0x26ec26,_0x4207d3){const _0x29c852=_0x926bd0;this[_0x29c852(0x215)]=_0x26ec26,this[_0x29c852(0xee)]=_0x4207d3;}['transformSelections'](_0xcf5d14){const _0x10119e=_0x926bd0;var _0x5958f8;const _0x40cad2=this[_0x10119e(0x215)]['get'](Y[_0x10119e(0x2d1)]),_0x64b5a=(_0x5958f8=_0x40cad2[_0x10119e(0x1fd)]())!=null?_0x5958f8:[];if(_0x64b5a['length']===0x0)return;const _0x28f8fe=_0xcf5d14['unitID'],_0x22a72d=[{'id':_0x10119e(0x1aa),'params':{'unitId':_0x28f8fe,'actions':null,'textRanges':_0x64b5a}}],_0x337ee2=this[_0x10119e(0xee)][_0x10119e(0x1e1)](_0xcf5d14,_0x22a72d);if(!m['isTransformMutationsWithChangesetSuccess'](_0x337ee2))throw _0x337ee2[_0x10119e(0x31e)];const _0x5ecb01=_0x337ee2['m2Prime'][0x0][_0x10119e(0x131)][_0x10119e(0x141)];Array[_0x10119e(0xff)](_0x5ecb01)&&_0x5ecb01[_0x10119e(0x2ef)]&&_0x40cad2[_0x10119e(0x246)](_0x5ecb01,{'unitId':_0x28f8fe,'subUnitId':_0x28f8fe},!0x1);}};Z=Wt([Ne(0x0,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),Ne(0x1,m[_0x926bd0(0x18e)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x34ee0a,_0x445491,_0x4039e3,_0x447a48)=>{for(var _0x3d2cf3=_0x447a48>0x1?void 0x0:_0x447a48?Vt(_0x445491,_0x4039e3):_0x445491,_0x3f8a98=_0x34ee0a['length']-0x1,_0x4797fa;_0x3f8a98>=0x0;_0x3f8a98--)(_0x4797fa=_0x34ee0a[_0x3f8a98])&&(_0x3d2cf3=_0x4797fa(_0x3d2cf3)||_0x3d2cf3);return _0x3d2cf3;},N=(_0x399f72,_0x4cd9f9)=>(_0x5b667b,_0x175e96)=>_0x4cd9f9(_0x5b667b,_0x175e96,_0x399f72);let Q=class extends a['Disposable']{constructor(_0x2dfade,_0x587293,_0xc9ef05,_0x558cff,_0x3619ab,_0x1eddfd,_0x2fea1b,_0x2a70f0){const _0x2106c7=_0x926bd0;super(),h(this,_0x2106c7(0xd8),new d['BehaviorSubject'](u[_0x2106c7(0x268)][_0x2106c7(0x1d2)])),(this[_0x2106c7(0x2d6)]=_0x2dfade,this[_0x2106c7(0x2ad)]=_0x587293,this[_0x2106c7(0x187)]=_0xc9ef05,this[_0x2106c7(0x120)]=_0x558cff,this['_docTransformSelectionsService']=_0x3619ab,this[_0x2106c7(0x115)]=_0x1eddfd,this['_messageService']=_0x2fea1b,this[_0x2106c7(0x32a)]=_0x2a70f0,this['_initEntityListener']());}[_0x926bd0(0x20e)](){const _0x32ac84=_0x926bd0;this[_0x32ac84(0x2a5)](this[_0x32ac84(0x2ad)][_0x32ac84(0x170)][_0x32ac84(0x1e6)](_0x389312=>{const _0x221be2=_0x32ac84,_0x31af20=this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0x3ea91e=>{const _0x58e94d=_0x18d9;if(_0x3ea91e==null)return;const {unitId:_0xcc010a,redoState:_0x5e7bd6,commandId:_0x7690fa}=_0x3ea91e;if(_0xcc010a!==_0x389312[_0x58e94d(0x171)])return;const _0x3cdfa4={'id':_0x7690fa,'type':a[_0x58e94d(0x367)][_0x58e94d(0x28a)],'params':{'unitId':_0xcc010a,'actions':_0x5e7bd6['actions'],'textRanges':null}};_0x389312[_0x58e94d(0x26b)](_0x3cdfa4);});if(_0x389312['disposeWithMe'](_0x31af20),_0x389312 instanceof u['DocCollaborationEntity']){const _0x575159={'onTransformIME':_0x28fe7a=>this['_docTransformIMECacheService'][_0x221be2(0x360)](_0x28fe7a),'onTransformState':_0x13b9fd=>this[_0x221be2(0x120)][_0x221be2(0x175)](_0x13b9fd),'onTransformSelections':_0x3cc02a=>this[_0x221be2(0x17d)][_0x221be2(0x1f4)](_0x3cc02a),'onSyncEditingCollabCursor':_0x1353f0=>this[_0x221be2(0x115)][_0x221be2(0x23b)](_0x1353f0),'onTransformRemoteChangesetByIMECache':_0x116d67=>this[_0x221be2(0x187)][_0x221be2(0x22d)](_0x116d67),'onTransformRemoteChangesetByStateCache':_0x195712=>this[_0x221be2(0x120)][_0x221be2(0x22d)](_0x195712)};_0x389312[_0x221be2(0x303)](_0x575159);}}));}};Q=Xt([N(0x0,a[_0x926bd0(0xec)](E[_0x926bd0(0x10f)])),N(0x1,a[_0x926bd0(0xec)](u[_0x926bd0(0xe4)])),N(0x2,a[_0x926bd0(0xec)](z)),N(0x3,a[_0x926bd0(0xec)](J)),N(0x4,a[_0x926bd0(0xec)](Z)),N(0x5,a[_0x926bd0(0xec)](Ce)),N(0x6,O[_0x926bd0(0x35f)]),N(0x7,a[_0x926bd0(0xec)](a[_0x926bd0(0xda)]))],Q);var Gt=Object[_0x926bd0(0x311)],Kt=(_0x1be29c,_0x7c5550,_0x12aa86,_0x143bd2)=>{for(var _0xc22be7=_0x143bd2>0x1?void 0x0:_0x143bd2?Gt(_0x7c5550,_0x12aa86):_0x7c5550,_0x25d481=_0x1be29c['length']-0x1,_0x2a11f1;_0x25d481>=0x0;_0x25d481--)(_0x2a11f1=_0x1be29c[_0x25d481])&&(_0xc22be7=_0x2a11f1(_0xc22be7)||_0xc22be7);return _0xc22be7;},_e=(_0x3395ea,_0x48b206)=>(_0x30803c,_0x3e7b92)=>_0x48b206(_0x30803c,_0x3e7b92,_0x3395ea);let ge=class extends a[_0x926bd0(0x256)]{constructor(_0x2837d1,_0x29b3c6,_0x152537){const _0xe588c0=_0x926bd0;super(),h(this,_0xe588c0(0x29a),new Map()),h(this,_0xe588c0(0x24a),new Map()),h(this,_0xe588c0(0xf2),!0x1),(this[_0xe588c0(0x133)]=_0x2837d1,this[_0xe588c0(0x266)]=_0x29b3c6,this[_0xe588c0(0x1a1)]=_0x152537);}['disableLocalCache'](){const _0x3238e9=_0x926bd0;this[_0x3238e9(0xf2)]=!0x0;}[_0x926bd0(0x25b)](){const _0x3e3059=_0x926bd0;this[_0x3e3059(0xf2)]=!0x1;}get[_0x926bd0(0x322)](){return this['_saveTaskMap'];}[_0x926bd0(0x2ba)](){const _0x462d2d=_0x926bd0;this[_0x462d2d(0x251)]()[_0x462d2d(0x1f3)](()=>super[_0x462d2d(0x2ba)]());}async[_0x926bd0(0x172)](_0x5b623d){const _0x186d26=_0x926bd0;return this[_0x186d26(0xf2)]?null:this['_localStorageService']['getItem'](u[_0x186d26(0x30f)](_0x5b623d));}async['saveOfflineData'](_0x5569d5,_0x33d490){const _0x129dbc=_0x926bd0;return!!this[_0x129dbc(0x266)][_0x129dbc(0x1f0)](_0x5569d5,_0x33d490);}['updateOfflineData'](_0x26e348,_0x1826ac,_0x1a1be6,_0x44f29e){const _0x4497cf=_0x926bd0,_0x1240dc=this[_0x4497cf(0x1a1)][_0x4497cf(0x20c)](_0x26e348);this[_0x4497cf(0x29a)][_0x4497cf(0x2c2)](_0x26e348,{'unitID':_0x26e348,'type':_0x1826ac,'awaitingChangeset':_0x1a1be6,'mutations':_0x44f29e,'rev':_0x1240dc}),this[_0x4497cf(0x24a)][_0x4497cf(0x295)](_0x26e348)||this[_0x4497cf(0x2b9)](_0x26e348);}[_0x926bd0(0x2b9)](_0x5e2a63){const _0x843d60=_0x926bd0,_0x1a4111=this['_getSaveTimeout']();_0x1a4111===0x0?this[_0x843d60(0x2b1)](_0x5e2a63):this[_0x843d60(0x24a)]['set'](_0x5e2a63,setTimeout(()=>this[_0x843d60(0x2b1)](_0x5e2a63),_0x1a4111));}[_0x926bd0(0x132)](){const _0x1e9ff0=_0x926bd0;var _0x2d09e5;return(_0x2d09e5=this[_0x1e9ff0(0x133)]['getConfig'](u[_0x1e9ff0(0x17a)]))!=null?_0x2d09e5:u['LOCAL_CACHE_INTERVAL'];}[_0x926bd0(0x2b1)](_0x2b0b59){const _0x5eb578=_0x926bd0,_0x186ca4=this[_0x5eb578(0x24a)][_0x5eb578(0x1ed)](_0x2b0b59);return _0x186ca4!==void 0x0&&window[_0x5eb578(0x210)](_0x186ca4),this[_0x5eb578(0x266)][_0x5eb578(0x1f0)](u['getLocalCacheKey'](_0x2b0b59),this['_cachedData'][_0x5eb578(0x1ed)](_0x2b0b59))['then'](()=>this[_0x5eb578(0x24a)][_0x5eb578(0x292)](_0x2b0b59));}async[_0x926bd0(0x251)](){const _0xc5741f=_0x926bd0,_0x192c6c=[];this[_0xc5741f(0x24a)][_0xc5741f(0x35e)]((_0xab025c,_0x4d8f3b)=>{const _0x156721=_0xc5741f;window['clearTimeout'](_0xab025c),_0x192c6c[_0x156721(0x14c)](this['_saveCache'](_0x4d8f3b)[_0x156721(0x1f3)](()=>{const _0x5ec6bf=_0x156721;this[_0x5ec6bf(0x24a)][_0x5ec6bf(0x292)](_0x4d8f3b);}));}),await Promise[_0xc5741f(0x2df)](_0x192c6c);}};ge=Kt([_e(0x0,a[_0x926bd0(0x347)]),_e(0x1,a[_0x926bd0(0x221)]),_e(0x2,a[_0x926bd0(0xec)](m[_0x926bd0(0x2cd)]))],ge);class Be extends a[_0x926bd0(0x2b5)]{constructor(){const _0x11337c=_0x926bd0;super(),h(this,_0x11337c(0x1e8)),this[_0x11337c(0x1e8)]=d[_0x11337c(0x304)](window,_0x11337c(0x2a0))['pipe'](d[_0x11337c(0x1d5)](this['dispose$']),d[_0x11337c(0x205)](0x1),d[_0x11337c(0x2d8)](void 0x0));}[_0x926bd0(0x2da)](_0x3d74e2,_0x58754a,_0x16109c=!0x1){const _0x14afef=_0x926bd0,_0x42b5c9=new URL(window['location'][_0x14afef(0x12c)]);_0x42b5c9[_0x14afef(0x2a7)]['set'](_0x3d74e2,_0x58754a),_0x16109c?window['history'][_0x14afef(0x285)]('','',_0x42b5c9[_0x14afef(0x14f)]()):window[_0x14afef(0x1ca)][_0x14afef(0x147)]('','',_0x42b5c9['toString']());}[_0x926bd0(0xeb)](_0x26960a,_0x5d1bc5=!0x1){const _0x458f4e=_0x926bd0,_0x3af37b=new URL(window[_0x458f4e(0x162)][_0x458f4e(0x12c)]);_0x3af37b['searchParams'][_0x458f4e(0x292)](_0x26960a),_0x5d1bc5?window[_0x458f4e(0x1ca)][_0x458f4e(0x285)]('','',_0x3af37b[_0x458f4e(0x14f)]()):window[_0x458f4e(0x1ca)][_0x458f4e(0x147)]('','',_0x3af37b[_0x458f4e(0x14f)]());}[_0x926bd0(0x284)](_0x3792ac){const _0x48deff=_0x926bd0;var _0x2843e0;return(_0x2843e0=new URL(window[_0x48deff(0x162)][_0x48deff(0x12c)])[_0x48deff(0x2a7)][_0x48deff(0x1ed)](_0x3792ac))!=null?_0x2843e0:void 0x0;}}var qt=Object[_0x926bd0(0x2f4)],zt=Object[_0x926bd0(0x311)],Jt=(_0x5f24bd,_0x1cb19e,_0x57d318)=>_0x1cb19e in _0x5f24bd?qt(_0x5f24bd,_0x1cb19e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d318}):_0x5f24bd[_0x1cb19e]=_0x57d318,Zt=(_0x1fbac2,_0x364e27,_0x178841,_0x421014)=>{for(var _0x49a918=_0x421014>0x1?void 0x0:_0x421014?zt(_0x364e27,_0x178841):_0x364e27,_0x5270a7=_0x1fbac2['length']-0x1,_0x1bb880;_0x5270a7>=0x0;_0x5270a7--)(_0x1bb880=_0x1fbac2[_0x5270a7])&&(_0x49a918=_0x1bb880(_0x49a918)||_0x49a918);return _0x49a918;},he=(_0x2d3dcc,_0x379b10)=>(_0x23475e,_0x9b9466)=>_0x379b10(_0x23475e,_0x9b9466,_0x2d3dcc),Qt=(_0x30d39d,_0xe2369f,_0x29cff8)=>Jt(_0x30d39d,_0xe2369f+'',_0x29cff8);const es=_0x926bd0(0x10e);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x926bd0(0x2fe)]{constructor(_0x7e0c5b=Ue,_0x2440df,_0x34f00d,_0x27df98){const _0x33dddb=_0x926bd0;super(),this['_config']=_0x7e0c5b,this[_0x33dddb(0x35d)]=_0x2440df,this['_injector']=_0x34f00d,this[_0x33dddb(0x133)]=_0x27df98;const {..._0x8ea006}=a[_0x33dddb(0x111)]({},Ue,this['_config']);this[_0x33dddb(0x133)][_0x33dddb(0x293)]($t,_0x8ea006);}[_0x926bd0(0x273)](){const _0x5048c1=_0x926bd0;this[_0x5048c1(0x19b)](),this[_0x5048c1(0x314)]();}[_0x926bd0(0x207)](){const _0xc5b171=_0x926bd0;this[_0xc5b171(0x1f8)]();}['_registerDependencies'](){const _0x585541=_0x926bd0;var _0xc26c76;const _0x4c1a21=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x585541(0x1e3)],{'useClass':G[_0x585541(0x106)]}],[u[_0x585541(0x12a)],{'useClass':ge}],[exports[_0x585541(0x278)]],[Q],[q],[x],[de],[exports[_0x585541(0xe0)]]];a['registerDependencies'](this[_0x585541(0x215)],a[_0x585541(0x2ce)](_0x4c1a21,(_0xc26c76=this[_0x585541(0x124)])==null?void 0x0:_0xc26c76['override']));}[_0x926bd0(0x1f8)](){const _0x644607=_0x926bd0;this['disposeWithMe'](this['_renderManagerService'][_0x644607(0x241)](a[_0x644607(0x197)][_0x644607(0x1f7)],[fe])),this[_0x644607(0x2a5)](this[_0x644607(0x35d)]['registerRenderModule'](a[_0x644607(0x197)]['UNIVER_SHEET'],[ve]));}[_0x926bd0(0x314)](){const _0x18ba72=_0x926bd0;a[_0x18ba72(0x15d)](this[_0x18ba72(0x215)],[[x],[exports[_0x18ba72(0x278)]],[Q],[q],[exports[_0x18ba72(0xe0)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x926bd0(0x17b),es),exports[_0x926bd0(0x26a)]=Zt([a[_0x926bd0(0x174)](u[_0x926bd0(0x2eb)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x926bd0(0xf9)])),he(0x3,a[_0x926bd0(0x347)])],exports[_0x926bd0(0x26a)]);var ts=Object[_0x926bd0(0x311)],ss=(_0x18cb18,_0x4d1849,_0x3f1324,_0x4a0c75)=>{const _0x2db35b=_0x926bd0;for(var _0x66206=_0x4a0c75>0x1?void 0x0:_0x4a0c75?ts(_0x4d1849,_0x3f1324):_0x4d1849,_0x5e2fb6=_0x18cb18[_0x2db35b(0x2ef)]-0x1,_0x201fbb;_0x5e2fb6>=0x0;_0x5e2fb6--)(_0x201fbb=_0x18cb18[_0x5e2fb6])&&(_0x66206=_0x201fbb(_0x66206)||_0x66206);return _0x66206;},H=(_0x302edb,_0x5306ed)=>(_0x5df12b,_0x1bf435)=>_0x5306ed(_0x5df12b,_0x1bf435,_0x302edb);exports['BrowserCollaborationSocketService']=class extends u['CollaborationSocketService']{constructor(_0x2f71d2,_0x2d7450,_0x49403b,_0x5ce848,_0x432978){super(_0x2f71d2,_0x2d7450,_0x49403b,_0x5ce848,_0x432978);}async['createSocket'](_0x2a78d1){const _0x5619ae=_0x926bd0,_0x55e437=await this[_0x5619ae(0x305)](),_0x4b1747=this['_createSocketURL'](_0x2a78d1,_0x55e437);return this[_0x5619ae(0x196)](_0x4b1747);}[_0x926bd0(0xd7)](_0x385a38,_0x5cdf61){const _0x533bf7=_0x926bd0,_0x5d165b=typeof window>'u'?new URL(_0x385a38):new URL(_0x385a38,window[_0x533bf7(0x162)][_0x533bf7(0x26f)]);_0x5d165b[_0x533bf7(0x2a7)][_0x533bf7(0x2c2)]('sessionTicket',_0x5cdf61);const _0x4800d4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x4800d4['get'](_0x533bf7(0x302))&&_0x5d165b['searchParams'][_0x533bf7(0x2c2)](_0x533bf7(0x302),_0x4800d4[_0x533bf7(0x1ed)]('runId')),_0x5d165b[_0x533bf7(0x14f)]();}async['_getSessionTicket'](){const _0x19102f=_0x926bd0;var _0x13c305,_0x2e4aea,_0x39d96f;const _0x439bc6=this[_0x19102f(0x133)][_0x19102f(0x287)](u[_0x19102f(0x1ee)]),_0x241f71=(_0x13c305=_0x439bc6==null?void 0x0:_0x439bc6['wsSessionTicketUrl'])!=null?_0x13c305:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x39d96f=(_0x2e4aea=(await this[_0x19102f(0x216)][_0x19102f(0x1ed)](_0x241f71,{'headers':{'Content-Type':'application/json'}}))[_0x19102f(0x121)])==null?void 0x0:_0x2e4aea['ticket'])!=null?_0x39d96f:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0x926bd0(0xec)](a[_0x926bd0(0xf9)])),H(0x1,a[_0x926bd0(0xec)](G[_0x926bd0(0x2be)])),H(0x2,a[_0x926bd0(0x347)]),H(0x3,a[_0x926bd0(0x27f)]),H(0x4,m[_0x926bd0(0x235)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x926bd0(0x237);class is extends a[_0x926bd0(0x256)]{constructor(){const _0x245491=_0x926bd0;super(),h(this,_0x245491(0x160),a[_0x245491(0x34e)]()),h(this,_0x245491(0x1c3),new Set()),h(this,_0x245491(0x18f),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,_0x245491(0x254),new Map()),this['_init']();}[_0x926bd0(0x2ba)](){const _0x4122db=_0x926bd0;super[_0x4122db(0x2ba)](),this['_clearOtherTimers'][_0x4122db(0x35e)]((_0x2226a3,_0x51772c)=>this[_0x4122db(0x33b)](_0x51772c)),this[_0x4122db(0x2de)]&&window[_0x4122db(0x2a2)](this[_0x4122db(0x2de)]);}['getUnitStatus$'](_0x7a2f99){const _0x8937a6=_0x926bd0;return this[_0x8937a6(0x359)](_0x7a2f99)[_0x8937a6(0x19e)](d[_0x8937a6(0x317)]());}[_0x926bd0(0x263)](_0xd5c762){const _0x2bcb5f=_0x926bd0;this['_selfUnitIDs'][_0x2bcb5f(0x1d8)]===0x0&&this['_scheduleHeartbeat'](),this[_0x2bcb5f(0x1c3)]['add'](_0xd5c762),this[_0x2bcb5f(0x307)]({'type':0x0,'memberID':this[_0x2bcb5f(0x160)],'unitIDs':[_0xd5c762],'isForwarded':!0x1});}['disposeUnit'](_0x1c0960){const _0xfe5b70=_0x926bd0;this['_selfUnitIDs'][_0xfe5b70(0x292)](_0x1c0960),this[_0xfe5b70(0x1c3)]['size']===0x0&&this[_0xfe5b70(0x2de)]&&window[_0xfe5b70(0x2a2)](this['_heartbeatTimer']);}[_0x926bd0(0x274)](){const _0x53a2d5=_0x926bd0;this[_0x53a2d5(0x2a5)](a['toDisposable'](d[_0x53a2d5(0x304)](window,_0x53a2d5(0x14b))['subscribe'](_0x3ca4f3=>{const _0x3f5b08=_0x53a2d5;if(_0x3ca4f3['key']!==Le||!_0x3ca4f3[_0x3f5b08(0x34b)])return;const _0x27f25f=JSON[_0x3f5b08(0x31f)](_0x3ca4f3[_0x3f5b08(0x34b)]);this[_0x3f5b08(0x28d)](_0x27f25f);}))),window[_0x53a2d5(0x1a0)](_0x53a2d5(0x318),()=>this['_send']({'type':0x1,'memberID':this[_0x53a2d5(0x160)],'unitIDs':Array[_0x53a2d5(0x298)](this[_0x53a2d5(0x1c3)])}));}['_handleEvent'](_0x226ac5){const _0x1cd017=_0x926bd0;switch(_0x226ac5[_0x1cd017(0x2b0)]){case 0x0:this[_0x1cd017(0xe6)](_0x226ac5);break;case 0x1:this['_handleLeaveEvent'](_0x226ac5);break;case 0x2:this[_0x1cd017(0x236)](_0x226ac5);break;}}['_handleJoinEvent'](_0x2f6387){const _0xd8f94e=_0x926bd0,{unitIDs:_0x11d431,memberID:_0x433b6b,isForwarded:_0x3c5845}=_0x2f6387;_0x11d431['forEach'](_0x52f04f=>{const _0x479977=_0x18d9;if(!_0x3c5845&&this['_unitOnClients'][_0x479977(0x295)](_0x52f04f)&&this[_0x479977(0x359)](_0x52f04f)[_0x479977(0x33c)](u[_0x479977(0x16a)][_0x479977(0x1fa)]),!this['_unitOnClients'][_0x479977(0x295)](_0x52f04f)||!this[_0x479977(0x18f)][_0x479977(0x1ed)](_0x52f04f)[_0x479977(0x295)](_0x433b6b)){const _0x1e09b6=this[_0x479977(0x18f)]['get'](_0x52f04f)||new Set();_0x1e09b6[_0x479977(0xf0)](_0x433b6b),this[_0x479977(0x18f)][_0x479977(0x2c2)](_0x52f04f,_0x1e09b6),this[_0x479977(0x226)](_0x433b6b);}}),_0x3c5845||this[_0xd8f94e(0x307)]({'type':0x0,'memberID':this[_0xd8f94e(0x160)],'unitIDs':[...this[_0xd8f94e(0x1c3)]],'isForwarded':!0x0});}[_0x926bd0(0x226)](_0xc4c83a){const _0x466e71=_0x926bd0;this[_0x466e71(0x33b)](_0xc4c83a);const _0x510b28=window[_0x466e71(0x2ea)](()=>{const _0x229d58=_0x466e71;this[_0x229d58(0x18f)][_0x229d58(0x35e)](_0x27e203=>{_0x27e203['delete'](_0xc4c83a);});},Me*0x2);this[_0x466e71(0x1a3)][_0x466e71(0x2c2)](_0xc4c83a,_0x510b28);}['_removeClearOtherTimer'](_0x282d05){const _0x59e9e4=_0x926bd0;if(this[_0x59e9e4(0x1a3)][_0x59e9e4(0x295)](_0x282d05)){const _0x4958c5=this['_clearOtherTimers'][_0x59e9e4(0x1ed)](_0x282d05);_0x4958c5&&window[_0x59e9e4(0x210)](_0x4958c5),this[_0x59e9e4(0x1a3)][_0x59e9e4(0x2c2)](_0x282d05,null);}}[_0x926bd0(0x2dc)](_0x4d8ed3){const _0x5e5961=_0x926bd0,{memberID:_0x20c3d4,unitIDs:_0x54a784}=_0x4d8ed3;_0x54a784['forEach'](_0x1ad7f1=>{const _0x385c0a=_0x18d9;var _0x13e8ea;const _0x39021c=this[_0x385c0a(0x18f)]['get'](_0x1ad7f1);_0x39021c&&(_0x39021c[_0x385c0a(0x292)](_0x20c3d4),(_0x13e8ea=this[_0x385c0a(0x359)](_0x1ad7f1))==null||_0x13e8ea['next'](_0x39021c[_0x385c0a(0x1d8)]===0x0?u['UnitStatus'][_0x385c0a(0x128)]:u[_0x385c0a(0x16a)]['OTHER_CLIENTS_EDITING']));}),this[_0x5e5961(0x33b)](_0x20c3d4);}[_0x926bd0(0x236)](_0x40f54a){const _0x22945=_0x926bd0;this['_scheduleClearOtherTimer'](_0x40f54a[_0x22945(0x2fc)]);}[_0x926bd0(0x307)](_0x71891f){const _0x224dbb=_0x926bd0;localStorage[_0x224dbb(0x1f0)](Le,JSON[_0x224dbb(0x2a3)](_0x71891f));}[_0x926bd0(0x2c1)](){const _0x58813d=_0x926bd0;this['_heartbeatTimer']=window[_0x58813d(0x35c)](()=>{const _0x5d570c=_0x58813d;this[_0x5d570c(0x307)]({'type':0x2,'memberID':this[_0x5d570c(0x160)]});},Me);}['_ensureSubject'](_0xe3d85){const _0xcb2718=_0x926bd0;return this[_0xcb2718(0x254)][_0xcb2718(0x295)](_0xe3d85)||this[_0xcb2718(0x254)]['set'](_0xe3d85,new d[(_0xcb2718(0xef))](u[_0xcb2718(0x16a)][_0xcb2718(0x128)])),this[_0xcb2718(0x254)][_0xcb2718(0x1ed)](_0xe3d85);}}var je=(_0x40243f=>(_0x40243f[_0x40243f[_0x926bd0(0x227)]=0x0]=_0x926bd0(0x227),_0x40243f[_0x40243f['OK']=0x1]='OK',_0x40243f[_0x40243f[_0x926bd0(0x2e6)]=0x2]=_0x926bd0(0x2e6),_0x40243f[_0x40243f[_0x926bd0(0x1c8)]=0x3]='PERMISSION_DENIED',_0x40243f[_0x40243f['NOT_FOUND']=0x4]=_0x926bd0(0x2b6),_0x40243f[_0x40243f['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x40243f[_0x40243f[_0x926bd0(0x157)]=0x6]='ALREADY_EXISTS',_0x40243f[_0x40243f[_0x926bd0(0x100)]=0x7]=_0x926bd0(0x100),_0x40243f[_0x40243f['TOO_MANY_REQUESTS']=0x8]=_0x926bd0(0x31d),_0x40243f[_0x40243f[_0x926bd0(0x25c)]=0x9]=_0x926bd0(0x25c),_0x40243f[_0x40243f['LOGIN_FAILED']=0xa]=_0x926bd0(0x1d1),_0x40243f[_0x40243f[_0x926bd0(0x24e)]=0xb]=_0x926bd0(0x24e),_0x40243f[_0x40243f[_0x926bd0(0x183)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x40243f[_0x40243f[_0x926bd0(0x325)]=0xd]=_0x926bd0(0x325),_0x40243f[_0x40243f[_0x926bd0(0x2f3)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x40243f[_0x40243f[_0x926bd0(0x1bd)]=0x1389]=_0x926bd0(0x1bd),_0x40243f[_0x40243f[_0x926bd0(0x204)]=0x1771]=_0x926bd0(0x204),_0x40243f[_0x40243f[_0x926bd0(0x198)]=0x1772]=_0x926bd0(0x198),_0x40243f[_0x40243f[_0x926bd0(0x211)]=0x1773]=_0x926bd0(0x211),_0x40243f[_0x40243f[_0x926bd0(0x213)]=0x1b59]=_0x926bd0(0x213),_0x40243f[_0x40243f['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x926bd0(0x195),_0x40243f[_0x40243f['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x926bd0(0x25d),_0x40243f[_0x40243f[_0x926bd0(0x101)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x40243f[_0x40243f[_0x926bd0(0x2fb)]=0x1b5d]='APPLY_DUPLICATED',_0x40243f[_0x40243f[_0x926bd0(0x2a6)]=0x1f41]=_0x926bd0(0x2a6),_0x40243f[_0x40243f[_0x926bd0(0x346)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x40243f[_0x40243f[_0x926bd0(0x30b)]=0x232a]=_0x926bd0(0x30b),_0x40243f[_0x40243f[_0x926bd0(0x2c6)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x40243f[_0x40243f[_0x926bd0(0x16f)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x40243f[_0x40243f[_0x926bd0(0x12b)]=0x232d]=_0x926bd0(0x12b),_0x40243f[_0x40243f['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x926bd0(0x250),_0x40243f[_0x40243f[_0x926bd0(0x310)]=0x2712]=_0x926bd0(0x310),_0x40243f[_0x40243f[_0x926bd0(0x1c1)]=0x2713]=_0x926bd0(0x1c1),_0x40243f[_0x40243f[_0x926bd0(0x153)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x40243f[_0x40243f[_0x926bd0(0x2b7)]=0x271a]=_0x926bd0(0x2b7),_0x40243f[_0x40243f[_0x926bd0(0x1b9)]=0x271b]=_0x926bd0(0x1b9),_0x40243f[_0x40243f[_0x926bd0(0x242)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x40243f[_0x40243f[_0x926bd0(0x258)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x40243f[_0x40243f['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x926bd0(0x232),_0x40243f[_0x40243f['YUUMI_AI_RUN_FAILED']=0x271f]=_0x926bd0(0x129),_0x40243f[_0x40243f[_0x926bd0(0x272)]=0x2720]=_0x926bd0(0x272),_0x40243f[_0x40243f['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x926bd0(0x1ac),_0x40243f[_0x40243f[_0x926bd0(0x2ac)]=0x2ee1]=_0x926bd0(0x2ac),_0x40243f[_0x40243f['INVALID_INVITE_CODE']=0x2ee2]=_0x926bd0(0x1d0),_0x40243f[_0x40243f[_0x926bd0(0x2d5)]=0x2ee3]=_0x926bd0(0x2d5),_0x40243f[_0x40243f[_0x926bd0(0x2ab)]=0x2ee4]=_0x926bd0(0x2ab),_0x40243f[_0x40243f[_0x926bd0(0x2d0)]=0x2ee5]=_0x926bd0(0x2d0),_0x40243f[_0x40243f[_0x926bd0(0x222)]=0x32c9]=_0x926bd0(0x222),_0x40243f[_0x40243f[_0x926bd0(0x28f)]=0x32ca]=_0x926bd0(0x28f),_0x40243f[_0x40243f[_0x926bd0(0x142)]=0x32cb]=_0x926bd0(0x142),_0x40243f[_0x40243f[_0x926bd0(0x150)]=-0x1]=_0x926bd0(0x150),_0x40243f))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x14ba24,_0x109d67,_0x325160,_0x30d9fc)=>{for(var _0x5b408b=_0x30d9fc>0x1?void 0x0:_0x30d9fc?ns(_0x109d67,_0x325160):_0x109d67,_0x3861cd=_0x14ba24['length']-0x1,_0x4ac83e;_0x3861cd>=0x0;_0x3861cd--)(_0x4ac83e=_0x14ba24[_0x3861cd])&&(_0x5b408b=_0x4ac83e(_0x5b408b)||_0x5b408b);return _0x5b408b;},ue=(_0x2295f7,_0x43f29e)=>(_0x585e63,_0xfad30f)=>_0x43f29e(_0x585e63,_0xfad30f,_0x2295f7);exports[_0x926bd0(0x1eb)]=class extends a[_0x926bd0(0x256)]{constructor(_0x36ff82,_0x31b086,_0xfe55e2){const _0x3f66f6=_0x926bd0;super(),this[_0x3f66f6(0xdf)]=_0x36ff82,this[_0x3f66f6(0x216)]=_0x31b086,this[_0x3f66f6(0x133)]=_0xfe55e2;}async[_0x926bd0(0x16d)](_0x3e4003,_0x2650ec,_0x10a562,..._0x6d4f){const _0x209a8c=_0x926bd0;var _0x210ba4,_0x24b095,_0x4c816a,_0x2ea323;const _0x4b766f=this[_0x209a8c(0xdf)][_0x209a8c(0x234)]();if(!_0x4b766f)throw new Error(_0x209a8c(0x339));const _0x28fc72=((_0x210ba4=this[_0x209a8c(0x133)][_0x209a8c(0x287)](u[_0x209a8c(0x1c4)]))!=null?_0x210ba4:u[_0x209a8c(0x267)])+'/'+_0x3e4003+_0x209a8c(0x290)+_0x2650ec,_0x480f1d=new URL(window['location'][_0x209a8c(0x12c)]),_0x14cc62={'scriptId':_0x3e4003,'runId':(_0x24b095=_0x480f1d[_0x209a8c(0x2a7)][_0x209a8c(0x1ed)](_0x209a8c(0x302)))!=null?_0x24b095:'','function':_0x2650ec,'unitId':_0x4b766f[_0x209a8c(0x13a)](),'argsOfFunction':JSON[_0x209a8c(0x2a3)](_0x6d4f),'invokeId':(_0x4c816a=_0x10a562[_0x209a8c(0x1e4)])!=null?_0x4c816a:'','executionId':(_0x2ea323=_0x10a562[_0x209a8c(0x31b)])!=null?_0x2ea323:''};try{const _0x37e663=await this[_0x209a8c(0x216)][_0x209a8c(0x2e0)](_0x28fc72,{'body':_0x14cc62});return _0x37e663[_0x209a8c(0x121)][_0x209a8c(0x31e)]&&_0x37e663[_0x209a8c(0x121)]['error'][_0x209a8c(0x134)]!==je['OK']?_0x209a8c(0x253):_0x37e663[_0x209a8c(0x121)][_0x209a8c(0x165)];}catch{return _0x209a8c(0x253);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x926bd0(0x1db)]),ue(0x1,a['Inject'](G['HTTPService'])),ue(0x2,a[_0x926bd0(0x347)])],exports[_0x926bd0(0x1eb)]),exports[_0x926bd0(0x261)]=xe,exports['IURLService']=Ee,exports[_0x926bd0(0x25f)]=we,exports[_0x926bd0(0xd0)]=is,exports[_0x926bd0(0x356)]=Be;
1
+ 'use strict';const _0x3b20ce=_0x3f21;(function(_0x38bd4a,_0x282d31){const _0x13cdf9=_0x3f21,_0x31a648=_0x38bd4a();while(!![]){try{const _0x3f0dec=-parseInt(_0x13cdf9(0x3fc))/0x1*(parseInt(_0x13cdf9(0x241))/0x2)+parseInt(_0x13cdf9(0x43f))/0x3*(parseInt(_0x13cdf9(0x276))/0x4)+-parseInt(_0x13cdf9(0x2c5))/0x5*(parseInt(_0x13cdf9(0x38e))/0x6)+parseInt(_0x13cdf9(0x373))/0x7+-parseInt(_0x13cdf9(0x3f4))/0x8*(-parseInt(_0x13cdf9(0x2d0))/0x9)+-parseInt(_0x13cdf9(0x1db))/0xa+parseInt(_0x13cdf9(0x254))/0xb*(parseInt(_0x13cdf9(0x42f))/0xc);if(_0x3f0dec===_0x282d31)break;else _0x31a648['push'](_0x31a648['shift']());}catch(_0x520970){_0x31a648['push'](_0x31a648['shift']());}}}(_0x2c3e,0x69042));var Ve=Object[_0x3b20ce(0x353)],Xe=(_0x6892e9,_0x271485,_0x184743)=>_0x271485 in _0x6892e9?Ve(_0x6892e9,_0x271485,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x184743}):_0x6892e9[_0x271485]=_0x184743,h=(_0x63375f,_0x3aeec7,_0x32dbfa)=>Xe(_0x63375f,typeof _0x3aeec7!=_0x3b20ce(0x224)?_0x3aeec7+'':_0x3aeec7,_0x32dbfa);Object['defineProperty'](exports,Symbol[_0x3b20ce(0x39d)],{'value':'Module'});const u=require(_0x3b20ce(0x2e7)),a=require(_0x3b20ce(0x30c)),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require(_0x3b20ce(0x233)),Y=require(_0x3b20ce(0x438)),be=require(_0x3b20ce(0x2ca)),g=require('@univerjs/sheets'),$=require(_0x3b20ce(0x28d)),X=require(_0x3b20ce(0x393)),P=require(_0x3b20ce(0x3a0)),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require(_0x3b20ce(0x2dc)),Ke=require(_0x3b20ce(0x42a));var qe=Object[_0x3b20ce(0x36b)],ze=(_0x55d352,_0x16139d,_0x537ad5,_0x5e10fb)=>{for(var _0x4bc21a=_0x5e10fb>0x1?void 0x0:_0x5e10fb?qe(_0x16139d,_0x537ad5):_0x16139d,_0x435138=_0x55d352['length']-0x1,_0x517e53;_0x435138>=0x0;_0x435138--)(_0x517e53=_0x55d352[_0x435138])&&(_0x4bc21a=_0x517e53(_0x4bc21a)||_0x4bc21a);return _0x4bc21a;},Oe=(_0x4a4e24,_0x2a5a17)=>(_0x15bd69,_0x1f81ff)=>_0x2a5a17(_0x15bd69,_0x1f81ff,_0x4a4e24);let de=class extends a['RxDisposable']{constructor(_0x3be805,_0x1b0148){const _0x512136=_0x3b20ce;super(),this[_0x512136(0x397)]=_0x3be805,this[_0x512136(0x3da)]=_0x1b0148,this['_init']();}[_0x3b20ce(0x3e1)](){const _0x509355=_0x3b20ce,_0x6efdcf=this;this[_0x509355(0x1c3)](this[_0x509355(0x397)][_0x509355(0x2bf)]({'onBeforePasteImage':async _0x4bc1a2=>{const _0x12c9bd=_0x509355,_0x4b5460=await _0x6efdcf[_0x12c9bd(0x3da)][_0x12c9bd(0x3eb)](_0x4bc1a2);return _0x4b5460?{'source':_0x4b5460[_0x12c9bd(0x2b0)],'imageSourceType':_0x4b5460['imageSourceType']}:null;}}));}};de=ze([Oe(0x0,E[_0x3b20ce(0x1d6)]),Oe(0x1,Ge['IImageIoService'])],de);const Te=[_0x3b20ce(0x390),_0x3b20ce(0x3b4),_0x3b20ce(0x251),_0x3b20ce(0x41e),_0x3b20ce(0x24c),_0x3b20ce(0x436)];class me extends a[_0x3b20ce(0x214)]{constructor(){const _0x26b09f=_0x3b20ce;super(...arguments),h(this,_0x26b09f(0x34c),new Map()),h(this,_0x26b09f(0x326),0x0);}[_0x3b20ce(0x3ac)](_0x113232){const _0x491f73=_0x3b20ce;if(this[_0x491f73(0x34c)][_0x491f73(0x2a0)](_0x113232))return this[_0x491f73(0x34c)][_0x491f73(0x3ff)](_0x113232);const _0x397234=Te[this[_0x491f73(0x326)]];return this['_colorIndex']=(this[_0x491f73(0x326)]+0x1)%Te['length'],this[_0x491f73(0x34c)][_0x491f73(0x26a)](_0x113232,_0x397234),_0x397234;}}function Pe(_0x55e9f7){const _0x4c0add=_0x3b20ce;let _0x57bd3d='';for(const _0x118d3f of _0x55e9f7){const {startOffset:_0x3f2a80,endOffset:_0x101552,isActive:_0x211a3b,rangeType:_0x28c4aa,segmentId:_0x141eb7,segmentPage:_0x4578e3}=_0x118d3f;_0x57bd3d[_0x4c0add(0x34f)]&&(_0x57bd3d+=','),_0x57bd3d+=_0x3f2a80+':'+_0x101552+':'+(_0x211a3b?'1':'0')+':'+_0x28c4aa+':'+_0x141eb7+':'+_0x4578e3;}return _0x57bd3d;}function Je(_0x237f9c){const _0x1e9ba1=_0x3b20ce,_0x501707=_0x237f9c[_0x1e9ba1(0x234)](','),_0xec2834=[];for(const _0x4dcde3 of _0x501707){const [_0x35aa57,_0x4a5c42,_0x1ed04e,_0x10b861,_0x43da11,_0x13b62a]=_0x4dcde3[_0x1e9ba1(0x234)](':');_0xec2834[_0x1e9ba1(0x2a5)]({'startOffset':Number(_0x35aa57),'endOffset':Number(_0x4a5c42),'collapsed':_0x35aa57===_0x4a5c42,'isActive':_0x1ed04e==='1','rangeType':_0x10b861===a[_0x1e9ba1(0x204)][_0x1e9ba1(0x3d6)]?a['DOC_RANGE_TYPE'][_0x1e9ba1(0x3d6)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x43da11==_0x1e9ba1(0x1df)?String(_0x43da11):'','segmentPage':Number(_0x13b62a!=null?_0x13b62a:-0x1)});}return _0xec2834[_0x1e9ba1(0x2f2)](_0x3f6d3a=>_0x3f6d3a[_0x1e9ba1(0x336)])||(_0xec2834[0x0][_0x1e9ba1(0x336)]=!0x0),_0xec2834;}class Ce extends a[_0x3b20ce(0x1bb)]{constructor(){const _0x231d91=_0x3b20ce;super(...arguments),h(this,_0x231d91(0x300),new d[(_0x231d91(0x287))](null)),h(this,_0x231d91(0x41a),this[_0x231d91(0x300)]['asObservable']());}[_0x3b20ce(0x2a9)](_0x985a12){const _0xd4c0b7=_0x3b20ce,{unitID:_0x10206,memberID:_0x2409f3,textRanges:_0x433f7a}=_0x985a12,_0x1ffa94=Pe(_0x433f7a);if(_0x1ffa94==='')return;const _0xb73b40={'unitID':_0x10206,'memberID':_0x2409f3,'selection':_0x1ffa94};this[_0xd4c0b7(0x300)][_0xd4c0b7(0x3c7)](_0xb73b40);}}var Ze=Object[_0x3b20ce(0x36b)],Qe=(_0xbd41c,_0x1b66fb,_0x17a645,_0x55acf7)=>{const _0x308fd9=_0x3b20ce;for(var _0x4a5644=_0x55acf7>0x1?void 0x0:_0x55acf7?Ze(_0x1b66fb,_0x17a645):_0x1b66fb,_0x38fcbf=_0xbd41c[_0x308fd9(0x34f)]-0x1,_0x53754b;_0x38fcbf>=0x0;_0x38fcbf--)(_0x53754b=_0xbd41c[_0x38fcbf])&&(_0x4a5644=_0x53754b(_0x4a5644)||_0x4a5644);return _0x4a5644;},L=(_0x1b48a1,_0x4556ed)=>(_0x34c44a,_0x7dfb3)=>_0x4556ed(_0x34c44a,_0x7dfb3,_0x1b48a1);function _0x3f21(_0x1ace08,_0x2a150c){const _0x2c3e14=_0x2c3e();return _0x3f21=function(_0x3f2156,_0x143016){_0x3f2156=_0x3f2156-0x1b6;let _0x1271b6=_0x2c3e14[_0x3f2156];return _0x1271b6;},_0x3f21(_0x1ace08,_0x2a150c);}const et=0x12c,tt=0x64;let Ie=class extends a[_0x3b20ce(0x1bb)]{constructor(_0x5bf606,_0x2fcc82,_0x41d946,_0x4e4568,_0x55b7c5,_0x6c1b15,_0x91ab6c,_0x2cbd31,_0x4cf2fa){const _0x5ce8c8=_0x3b20ce;super(),h(this,_0x5ce8c8(0x21e),!0x1),h(this,_0x5ce8c8(0x3e1),!0x1),h(this,_0x5ce8c8(0x3b7),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x5ce8c8(0x3b7)]['asObservable']()),h(this,'_roomMembers$',new d[(_0x5ce8c8(0x287))]([])),h(this,_0x5ce8c8(0x286),this[_0x5ce8c8(0x266)][_0x5ce8c8(0x32f)](d[_0x5ce8c8(0x1d4)](et))),h(this,_0x5ce8c8(0x402),a['debounce'](_0x20435b=>{const _0x140b89=_0x5ce8c8,_0x53894c={'eventID':m[_0x140b89(0x2b3)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x140b89(0x225)],'memberID':this[_0x140b89(0x3b6)][_0x140b89(0x23b)](),'selection':Pe(_0x20435b)}};this['_session'][_0x140b89(0x1e1)](_0x53894c,this['unitID']);},tt)),(this[_0x5ce8c8(0x225)]=_0x5bf606,this[_0x5ce8c8(0x3b6)]=_0x2fcc82,this['_injector']=_0x41d946,this[_0x5ce8c8(0x242)]=_0x4e4568,this[_0x5ce8c8(0x277)]=_0x55b7c5,this['_syncEditingCollabCursorService']=_0x6c1b15,this['_transformService']=_0x91ab6c,this[_0x5ce8c8(0x27e)]=_0x2cbd31,this[_0x5ce8c8(0x372)]=_0x4cf2fa);}get[_0x3b20ce(0x3b3)](){return this['_cursorInfo$']['getValue']();}get[_0x3b20ce(0x421)](){const _0x540121=_0x3b20ce;return this[_0x540121(0x266)][_0x540121(0x328)]();}['dispose'](){const _0x187789=_0x3b20ce;super[_0x187789(0x392)](),this[_0x187789(0x3b7)]['next'](new Map()),this[_0x187789(0x3b7)][_0x187789(0x408)](),this[_0x187789(0x266)][_0x187789(0x3c7)]([]),this[_0x187789(0x266)][_0x187789(0x408)]();}[_0x3b20ce(0x2cd)](){const _0x1e3cdc=_0x3b20ce;this[_0x1e3cdc(0x3e1)]||(this[_0x1e3cdc(0x3e1)]=!0x0,this['_session'][_0x1e3cdc(0x310)][_0x1e3cdc(0x32f)](d[_0x1e3cdc(0x2ec)](this[_0x1e3cdc(0x28c)]))['subscribe'](_0xa129c8=>{const _0x57e752=_0x1e3cdc;_0xa129c8===u[_0x57e752(0x1c5)][_0x57e752(0x27b)]?this[_0x57e752(0x1c6)]():this[_0x57e752(0x304)]();}),this[_0x1e3cdc(0x3b6)][_0x1e3cdc(0x3a3)]['pipe'](d['takeUntil'](this[_0x1e3cdc(0x28c)]))['subscribe'](_0x51fdab=>{const _0x1978e0=_0x1e3cdc,_0x558995=_0x51fdab[_0x1978e0(0x3c3)];_0x558995===m[_0x1978e0(0x2b3)][_0x1978e0(0x29c)]&&this[_0x1978e0(0x2ae)](_0x51fdab),_0x558995===m[_0x1978e0(0x2b3)][_0x1978e0(0x3c1)]&&this[_0x1978e0(0x2c6)](_0x51fdab);}),this[_0x1e3cdc(0x1c3)](this[_0x1e3cdc(0x372)]['onCommandExecuted'](_0x2e9fa6=>{const _0x2f3a13=_0x1e3cdc,_0x3d0686=_0x2e9fa6[_0x2f3a13(0x346)];_0x3d0686!=null&&this[_0x2f3a13(0x21e)]&&_0x2e9fa6['id']===Y[_0x2f3a13(0x215)]['id']&&_0x3d0686[_0x2f3a13(0x22a)]===this['unitID']&&_0x3d0686[_0x2f3a13(0x324)]===!0x1&&_0x3d0686[_0x2f3a13(0x387)][_0x2f3a13(0x34f)]>0x0&&this[_0x2f3a13(0x402)](_0x3d0686['ranges']);})),this['_syncEditingCollabCursorService'][_0x1e3cdc(0x41a)][_0x1e3cdc(0x32f)](d[_0x1e3cdc(0x2ec)](this['dispose$']))[_0x1e3cdc(0x3d4)](_0x1d756b=>{const _0x3b7879=_0x1e3cdc;if((_0x1d756b==null?void 0x0:_0x1d756b[_0x3b7879(0x225)])!==this['unitID'])return;const _0x48cae5={'eventID':m[_0x3b7879(0x2b3)]['UPDATE_CURSOR'],'data':_0x1d756b};this['_onCursorUpdate'](_0x48cae5);}),this['disposeWithMe'](this[_0x1e3cdc(0x372)]['onCommandExecuted'](_0x1499f8=>{const _0x285e76=_0x1e3cdc;if(_0x1499f8[_0x285e76(0x346)]==null)return;const _0xa8a7c5=_0x1499f8[_0x285e76(0x346)];if(_0x1499f8['id']!==Y[_0x285e76(0x3de)]['id']||_0xa8a7c5[_0x285e76(0x22a)]!==this[_0x285e76(0x225)])return;const _0x5299fb={'id':_0x285e76(0x431),'params':_0xa8a7c5},_0x2ceaaa=this[_0x285e76(0x3b3)];for(const [_0x35be55,_0x16e6dc]of _0x2ceaaa){const _0x3c24a6={'id':_0x285e76(0x431),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x16e6dc[_0x285e76(0x387)]}},_0x1241fe=this[_0x285e76(0x30f)][_0x285e76(0x440)](_0x5299fb,_0x3c24a6,!0x1);if(m[_0x285e76(0x207)](_0x1241fe))throw _0x1241fe['error'];_0x2ceaaa['set'](_0x35be55,{..._0x16e6dc,'ranges':_0x1241fe['m2Prime'][_0x285e76(0x346)][_0x285e76(0x38f)]});}queueMicrotask(()=>{const _0x20e945=_0x285e76;this[_0x20e945(0x3b7)][_0x20e945(0x3c7)](_0x2ceaaa);});})));}[_0x3b20ce(0x2ae)](_0x13c11c){const _0x1ebe75=_0x3b20ce;var _0x5ba296,_0x42d581;const {memberID:_0x36c35a,selection:_0x319224}=_0x13c11c[_0x1ebe75(0x1d8)],_0x5703e3=Je(_0x319224),_0x1b763b=(_0x42d581=(_0x5ba296=this[_0x1ebe75(0x277)][_0x1ebe75(0x271)](this[_0x1ebe75(0x225)],_0x36c35a))==null?void 0x0:_0x5ba296['name'])!=null?_0x42d581:_0x1ebe75(0x1d3),_0x55725e={'color':this[_0x1ebe75(0x242)][_0x1ebe75(0x3ac)](_0x36c35a),'name':_0x1b763b,'ranges':_0x5703e3},_0x144859=this[_0x1ebe75(0x3b3)];_0x144859[_0x1ebe75(0x26a)](_0x36c35a,_0x55725e),this['_cursorInfo$'][_0x1ebe75(0x3c7)](_0x144859);}[_0x3b20ce(0x2c6)](_0x316d70){const _0x38e83c=_0x3b20ce,{memberID:_0x43953d}=_0x316d70['data'],_0x23ceac=this[_0x38e83c(0x3b3)];_0x23ceac['delete'](_0x43953d),this[_0x38e83c(0x3b7)]['next'](_0x23ceac);}[_0x3b20ce(0x1c6)](){const _0x4cd4f1=_0x3b20ce;var _0x4d49b6;if(this[_0x4cd4f1(0x21e)]=!0x0,((_0x4d49b6=this[_0x4cd4f1(0x27e)][_0x4cd4f1(0x3b8)]())==null?void 0x0:_0x4d49b6[_0x4cd4f1(0x35f)]())!==this[_0x4cd4f1(0x225)])return;const _0x2a5d17=this[_0x4cd4f1(0x411)][_0x4cd4f1(0x3ff)](Y['DocSelectionManagerService'])[_0x4cd4f1(0x418)]();Array['isArray'](_0x2a5d17)&&_0x2a5d17[_0x4cd4f1(0x34f)]>0x0&&this[_0x4cd4f1(0x402)](_0x2a5d17);}[_0x3b20ce(0x304)](){const _0x90058c=_0x3b20ce;this[_0x90058c(0x21e)]=!0x1;}};Ie=Qe([L(0x2,a[_0x3b20ce(0x282)](a[_0x3b20ce(0x366)])),L(0x3,a[_0x3b20ce(0x282)](me)),L(0x4,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x235)])),L(0x5,a[_0x3b20ce(0x282)](Ce)),L(0x6,m[_0x3b20ce(0x1f8)]),L(0x7,a[_0x3b20ce(0x317)]),L(0x8,a['ICommandService'])],Ie);var st=Object['getOwnPropertyDescriptor'],it=(_0x3b8c22,_0x29d42f,_0x47aaa5,_0x253903)=>{const _0x6d971f=_0x3b20ce;for(var _0x2807e3=_0x253903>0x1?void 0x0:_0x253903?st(_0x29d42f,_0x47aaa5):_0x29d42f,_0x371ca1=_0x3b8c22[_0x6d971f(0x34f)]-0x1,_0x2ad50b;_0x371ca1>=0x0;_0x371ca1--)(_0x2ad50b=_0x3b8c22[_0x371ca1])&&(_0x2807e3=_0x2ad50b(_0x2807e3)||_0x2807e3);return _0x2807e3;},A=(_0x186df2,_0x530526)=>(_0x54cd28,_0xcaa9a3)=>_0x530526(_0x54cd28,_0xcaa9a3,_0x186df2);const nt=0x12c,rt=0x64,ot=()=>{let _0x21117e=[],_0x32acbe=!0x1;return _0x4a4b3e=>{const _0xcef11f=_0x3f21;_0x21117e[_0xcef11f(0x2a5)](_0x4a4b3e),_0x32acbe||(_0x32acbe=!0x0,setTimeout(()=>{const _0x1c3df8=_0xcef11f;_0x21117e[_0x1c3df8(0x42b)](_0x106138=>_0x106138()),_0x21117e=[],_0x32acbe=!0x1;}));};};let Se=class extends a[_0x3b20ce(0x1bb)]{constructor(_0x1eb3ee,_0x14a632,_0x2f08bf,_0x2fcc1c,_0x3e34fa,_0x278a69,_0x434b09,_0x4c0f50){const _0xecd6e5=_0x3b20ce;super(),h(this,'_online',!0x1),h(this,_0xecd6e5(0x3e1),!0x1),h(this,_0xecd6e5(0x3b7),new d['BehaviorSubject'](new Map())),h(this,_0xecd6e5(0x3c2),this[_0xecd6e5(0x3b7)][_0xecd6e5(0x22e)]()),h(this,_0xecd6e5(0x266),new d[(_0xecd6e5(0x287))]([])),h(this,_0xecd6e5(0x286),this['_roomMembers$']['pipe'](d['debounceTime'](nt))),h(this,_0xecd6e5(0x402),a[_0xecd6e5(0x246)]((_0xfb2bd7,_0x42a24c)=>{const _0x429778=_0xecd6e5,_0xab2866={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x429778(0x225)],'memberID':this['_session'][_0x429778(0x23b)](),'selection':be[_0x429778(0x2d2)](_0xfb2bd7,_0x42a24c['range'])}};this[_0x429778(0x3b6)]['send'](_0xab2866,this['unitID']);},rt)),(this[_0xecd6e5(0x225)]=_0x1eb3ee,this['_session']=_0x14a632,this['_injector']=_0x2f08bf,this[_0xecd6e5(0x242)]=_0x2fcc1c,this[_0xecd6e5(0x277)]=_0x3e34fa,this[_0xecd6e5(0x27e)]=_0x278a69,this['_commandService']=_0x434b09,this[_0xecd6e5(0x2a6)]=_0x4c0f50);}get[_0x3b20ce(0x3b3)](){const _0xa6fd41=_0x3b20ce;return this[_0xa6fd41(0x3b7)][_0xa6fd41(0x328)]();}get[_0x3b20ce(0x421)](){const _0x3c3ca2=_0x3b20ce;return this[_0x3c3ca2(0x266)][_0x3c3ca2(0x328)]();}['dispose'](){const _0x2f35d5=_0x3b20ce;super[_0x2f35d5(0x392)](),this[_0x2f35d5(0x3b7)][_0x2f35d5(0x3c7)](new Map()),this[_0x2f35d5(0x3b7)][_0x2f35d5(0x408)](),this[_0x2f35d5(0x266)]['next']([]),this[_0x2f35d5(0x266)][_0x2f35d5(0x408)]();}[_0x3b20ce(0x2cd)](){const _0xfc5da6=_0x3b20ce;this[_0xfc5da6(0x3e1)]||(this[_0xfc5da6(0x3e1)]=!0x0,this[_0xfc5da6(0x3b6)][_0xfc5da6(0x310)]['pipe'](d[_0xfc5da6(0x2ec)](this['dispose$']))[_0xfc5da6(0x3d4)](_0x5a67c8=>{const _0x1e95d2=_0xfc5da6;_0x5a67c8===u[_0x1e95d2(0x1c5)]['ONLINE']?this[_0x1e95d2(0x1c6)]():this[_0x1e95d2(0x304)]();}),this[_0xfc5da6(0x3b6)][_0xfc5da6(0x3a3)]['pipe'](d['takeUntil'](this[_0xfc5da6(0x28c)]))[_0xfc5da6(0x3d4)](_0x34a7fa=>{const _0x2f37ef=_0xfc5da6,_0x395db5=_0x34a7fa[_0x2f37ef(0x3c3)];_0x395db5===m['CollaborationEvent'][_0x2f37ef(0x29c)]&&this[_0x2f37ef(0x2ae)](_0x34a7fa),_0x395db5===m[_0x2f37ef(0x2b3)][_0x2f37ef(0x3c1)]&&this[_0x2f37ef(0x2c6)](_0x34a7fa);}),this[_0xfc5da6(0x1eb)](),this[_0xfc5da6(0x1c3)](this['_commandService'][_0xfc5da6(0x29a)](_0x1d1b09=>{const _0x27f22e=_0xfc5da6;if(this[_0x27f22e(0x21e)]&&_0x1d1b09['id']===g[_0x27f22e(0x359)]['id']&&_0x1d1b09[_0x27f22e(0x346)][_0x27f22e(0x22a)]===this[_0x27f22e(0x225)]){const _0x42e293=_0x1d1b09[_0x27f22e(0x346)];this[_0x27f22e(0x402)](_0x42e293['subUnitId'],_0x42e293[_0x27f22e(0x365)][0x0]);}})));}[_0x3b20ce(0x2ae)](_0x25815f){const _0x21aab8=_0x3b20ce;var _0x446f96,_0x324689;const {memberID:_0x5472d3,selection:_0x303e30}=_0x25815f[_0x21aab8(0x1d8)],{sheetName:_0x3b272b,range:_0x5cf15c}=be[_0x21aab8(0x1dd)](_0x303e30),_0x3a8e62={'name':(_0x324689=(_0x446f96=this[_0x21aab8(0x277)]['getMember'](this[_0x21aab8(0x225)],_0x5472d3))==null?void 0x0:_0x446f96['name'])!=null?_0x324689:_0x21aab8(0x1d3),'range':this[_0x21aab8(0x380)](_0x3b272b,_0x5cf15c),'sheetID':_0x3b272b,'color':this['_colorAssignService'][_0x21aab8(0x3ac)](_0x5472d3),'selection':_0x303e30},_0x2ca721=this['cursorInfo'];_0x2ca721[_0x21aab8(0x26a)](_0x5472d3,_0x3a8e62),this[_0x21aab8(0x3b7)][_0x21aab8(0x3c7)](_0x2ca721);}[_0x3b20ce(0x2c6)](_0x53a637){const _0x1b1194=_0x3b20ce,{memberID:_0x25a424}=_0x53a637[_0x1b1194(0x1d8)],_0x4d9412=this[_0x1b1194(0x3b3)];_0x4d9412[_0x1b1194(0x30b)](_0x25a424),this['_cursorInfo$'][_0x1b1194(0x3c7)](_0x4d9412);}[_0x3b20ce(0x380)](_0x83c3cb,_0x5a9122){const _0x3b2ef8=_0x3b20ce;var _0x187bc1,_0x58a391;const _0xe26615=(_0x58a391=(_0x187bc1=this[_0x3b2ef8(0x27e)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x187bc1[_0x3b2ef8(0x32d)](_0x83c3cb))==null?void 0x0:_0x58a391[_0x3b2ef8(0x3ee)]();return(_0xe26615==null?void 0x0:_0xe26615[_0x3b2ef8(0x2e8)](_0x55f741=>a[_0x3b2ef8(0x23a)]['contains'](_0x55f741,_0x5a9122)))||_0x5a9122;}[_0x3b20ce(0x1eb)](){const _0x1d1269=_0x3b20ce,_0x518b23=new a['DisposableCollection'](),_0x3d078c=ot(),_0x1c8132=()=>{const _0x387390=_0x3f21;_0x518b23[_0x387390(0x392)]();const _0x6f56e0=(_0x278345,_0x1d087e,_0x410cd1,_0x5d795d)=>{const _0x32a4df=_0x387390;let _0x44e406=[];switch(_0x278345['id']){case g[_0x32a4df(0x1cb)]['DeleteRangeMoveLeftCommandId']:{_0x44e406=g[_0x32a4df(0x348)](_0x278345,_0x5d795d);break;}case g['EffectRefRangId'][_0x32a4df(0x319)]:{_0x44e406=g[_0x32a4df(0x3b1)](_0x278345,_0x5d795d);break;}case g[_0x32a4df(0x1cb)]['InsertColCommandId']:{_0x44e406=g[_0x32a4df(0x40c)](_0x278345,_0x5d795d);break;}case g[_0x32a4df(0x1cb)][_0x32a4df(0x2f4)]:{_0x44e406=g[_0x32a4df(0x274)](_0x278345,_0x5d795d);break;}case g['EffectRefRangId'][_0x32a4df(0x2fe)]:{_0x44e406=g['handleInsertRangeMoveRight'](_0x278345,_0x5d795d);break;}case g[_0x32a4df(0x1cb)]['InsertRowCommandId']:{_0x44e406=g[_0x32a4df(0x22d)](_0x278345,_0x5d795d);break;}case g[_0x32a4df(0x1cb)]['MoveRangeCommandId']:{_0x44e406=g[_0x32a4df(0x37e)](_0x278345,_0x5d795d);break;}case g['EffectRefRangId']['RemoveColCommandId']:{_0x44e406=g[_0x32a4df(0x2da)](_0x278345,_0x5d795d);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x44e406=g[_0x32a4df(0x1ff)](_0x278345,_0x5d795d);break;}}const _0x39efdf=g['runRefRangeMutations'](_0x44e406,_0x5d795d),_0x190f45=this['cursorInfo'][_0x32a4df(0x3ff)](_0x1d087e);if(_0x190f45&&_0x39efdf){const _0x271c3b={..._0x190f45,'range':_0x39efdf};this[_0x32a4df(0x3b3)]['set'](_0x1d087e,_0x271c3b),_0x3d078c(()=>{const _0xcf8641=_0x32a4df,_0x52dd71=this[_0xcf8641(0x2a6)][_0xcf8641(0x355)](_0x39efdf,_0x56b526=>(_0x52dd71[_0xcf8641(0x392)](),_0x6f56e0(_0x56b526,_0x1d087e,_0x410cd1,_0x39efdf)));_0x518b23[_0xcf8641(0x43e)](_0x52dd71);});}return{'redos':[],'undos':[]};};this[_0x387390(0x3b3)][_0x387390(0x42b)]((_0x22d705,_0x12fad6)=>{const _0x25215b=_0x387390,{range:_0xb7d3f1,sheetID:_0x49b19b}=_0x22d705,_0x1ca0f6=this['_refRangeService'][_0x25215b(0x355)](_0xb7d3f1,_0x18283d=>(_0x1ca0f6[_0x25215b(0x392)](),_0x6f56e0(_0x18283d,_0x12fad6,_0x49b19b,_0xb7d3f1)));_0x518b23[_0x25215b(0x43e)](_0x1ca0f6);});};this[_0x1d1269(0x1c3)](a['toDisposable'](this[_0x1d1269(0x3b7)]['subscribe'](()=>{_0x1c8132();})));}['_toggleOnline'](){const _0x32bf1e=_0x3b20ce;var _0x2defdf,_0x467858;if(this[_0x32bf1e(0x21e)]=!0x0,((_0x2defdf=this[_0x32bf1e(0x27e)][_0x32bf1e(0x3b8)]())==null?void 0x0:_0x2defdf['getUnitId']())!==this['unitID'])return;const _0x17c147=(_0x467858=this[_0x32bf1e(0x411)][_0x32bf1e(0x3ff)](g[_0x32bf1e(0x203)])[_0x32bf1e(0x407)]())==null?void 0x0:_0x467858[0x0],_0x2c62e1=this['_univerInstanceService'][_0x32bf1e(0x3a2)](a['UniverInstanceType'][_0x32bf1e(0x21a)])[_0x32bf1e(0x3f2)]();_0x17c147&&_0x2c62e1&&this[_0x32bf1e(0x402)](_0x2c62e1['getSheetId'](),_0x17c147);}['_toggleOffline'](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x3b20ce(0x282)](a[_0x3b20ce(0x366)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x235)])),A(0x5,a[_0x3b20ce(0x317)]),A(0x6,a[_0x3b20ce(0x340)]),A(0x7,a[_0x3b20ce(0x282)](g[_0x3b20ce(0x217)]))],Se);var at=Object[_0x3b20ce(0x36b)],ct=(_0x4cc633,_0x303756,_0x19f1c1,_0x1e94e0)=>{const _0x3b664a=_0x3b20ce;for(var _0x2e33f9=_0x1e94e0>0x1?void 0x0:_0x1e94e0?at(_0x303756,_0x19f1c1):_0x303756,_0x5ec69c=_0x4cc633[_0x3b664a(0x34f)]-0x1,_0x21ba21;_0x5ec69c>=0x0;_0x5ec69c--)(_0x21ba21=_0x4cc633[_0x5ec69c])&&(_0x2e33f9=_0x21ba21(_0x2e33f9)||_0x2e33f9);return _0x2e33f9;},ie=(_0x4630ed,_0x37a440)=>(_0x2624b4,_0x1cbc28)=>_0x37a440(_0x2624b4,_0x1cbc28,_0x4630ed);let x=class extends a[_0x3b20ce(0x1bb)]{constructor(_0x45539c,_0x5a5bf6,_0x2b5435){const _0x4ad764=_0x3b20ce;super(),h(this,'_entities',new Map()),h(this,_0x4ad764(0x2d4),new d[(_0x4ad764(0x362))]()),(this['_univerInstanceService']=_0x45539c,this[_0x4ad764(0x411)]=_0x5a5bf6,this[_0x4ad764(0x20c)]=_0x2b5435,this[_0x4ad764(0x3e1)]());}['dispose'](){const _0xb902ef=_0x3b20ce;super[_0xb902ef(0x392)](),this[_0xb902ef(0x2d4)][_0xb902ef(0x408)](),this['_entities'][_0xb902ef(0x42b)](_0x1f563d=>_0x1f563d[_0xb902ef(0x392)]());}[_0x3b20ce(0x25a)](_0x141ff0){const _0x152d6f=_0x3b20ce;return this[_0x152d6f(0x40d)][_0x152d6f(0x2a0)](_0x141ff0)?this[_0x152d6f(0x40d)]['get'](_0x141ff0)[_0x152d6f(0x3c2)]:this['_entityInit$']['pipe'](d[_0x152d6f(0x375)](_0x1535df=>_0x1535df[_0x152d6f(0x225)]===_0x141ff0),d[_0x152d6f(0x232)](_0x2e252a=>_0x2e252a[_0x152d6f(0x3c2)]));}['_init'](){const _0xaa2ed1=_0x3b20ce;this['_univerInstanceService'][_0xaa2ed1(0x219)](a['UniverInstanceType']['UNIVER_SHEET'])[_0xaa2ed1(0x32f)](d[_0xaa2ed1(0x2ec)](this[_0xaa2ed1(0x28c)]))[_0xaa2ed1(0x3d4)](async _0x2f59f6=>{const _0x7a39f0=_0xaa2ed1,_0x3a14e7=_0x2f59f6['getUnitId'](),_0x482262=await this[_0x7a39f0(0x405)](_0x3a14e7);this['_entityInit$']['next'](_0x482262),this[_0x7a39f0(0x40d)]['set'](_0x3a14e7,_0x482262);}),this['_univerInstanceService'][_0xaa2ed1(0x219)](a[_0xaa2ed1(0x356)]['UNIVER_DOC'])[_0xaa2ed1(0x32f)](d[_0xaa2ed1(0x2ec)](this[_0xaa2ed1(0x28c)]))[_0xaa2ed1(0x32f)](d['filter'](_0x44b063=>!_0x44b063[_0xaa2ed1(0x35f)]()[_0xaa2ed1(0x335)]('__')))['subscribe'](async _0x2659f8=>{const _0x2ceb60=_0xaa2ed1,_0x2baf23=_0x2659f8[_0x2ceb60(0x35f)](),_0x39d70b=await this[_0x2ceb60(0x2a7)](_0x2baf23);this[_0x2ceb60(0x2d4)][_0x2ceb60(0x3c7)](_0x39d70b),this['_entities'][_0x2ceb60(0x26a)](_0x2baf23,_0x39d70b);}),d['merge'](this[_0xaa2ed1(0x27e)][_0xaa2ed1(0x305)](a['UniverInstanceType'][_0xaa2ed1(0x29b)]),this['_univerInstanceService'][_0xaa2ed1(0x305)](a['UniverInstanceType']['UNIVER_SHEET']))[_0xaa2ed1(0x32f)](d[_0xaa2ed1(0x2ec)](this['dispose$']))['subscribe'](_0x4b4362=>{const _0x311603=_0xaa2ed1,_0xae88a3=_0x4b4362['getUnitId'](),_0x301b33=this['_entities']['get'](_0xae88a3);_0x301b33&&(_0x301b33[_0x311603(0x392)](),this['_entities'][_0x311603(0x30b)](_0xae88a3));});}async[_0x3b20ce(0x405)](_0x52a3c1){const _0x34547d=_0x3b20ce,_0x131eb8=await this[_0x34547d(0x20c)]['requireSession'](_0x52a3c1),_0x36c844=this['_injector'][_0x34547d(0x322)](Se,_0x52a3c1,_0x131eb8);return _0x36c844['init'](),_0x36c844;}async[_0x3b20ce(0x2a7)](_0xd0cd50){const _0x557ade=_0x3b20ce,_0x37b415=await this[_0x557ade(0x20c)][_0x557ade(0x414)](_0xd0cd50),_0x840cf4=this[_0x557ade(0x411)][_0x557ade(0x322)](Ie,_0xd0cd50,_0x37b415);return _0x840cf4[_0x557ade(0x2cd)](),_0x840cf4;}};x=ct([ie(0x0,a[_0x3b20ce(0x317)]),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x2ad)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x49f19c,_0x4851d6){const _0x32127b=_0x3b20ce;let {radius:_0x14f305,width:_0x3fe62c,height:_0x55aa25}=_0x4851d6;_0x14f305=_0x14f305!=null?_0x14f305:0x0,_0x3fe62c=_0x3fe62c!=null?_0x3fe62c:0x1e,_0x55aa25=_0x55aa25!=null?_0x55aa25:0x1e;let _0x56327c=0x0,_0x11e19c=0x0,_0x550f7c=0x0;_0x56327c=_0x11e19c=_0x550f7c=Math[_0x32127b(0x290)](_0x14f305,_0x3fe62c/0x2,_0x55aa25/0x2),_0x49f19c['beginPath'](),_0x49f19c[_0x32127b(0x2d5)](_0x56327c,0x0),_0x49f19c[_0x32127b(0x1e9)](_0x3fe62c-_0x11e19c,0x0),_0x49f19c[_0x32127b(0x2f7)](_0x3fe62c-_0x11e19c,_0x11e19c,_0x11e19c,Math['PI']*0x3/0x2,0x0,!0x1),_0x49f19c['lineTo'](_0x3fe62c,_0x55aa25-_0x550f7c),_0x49f19c[_0x32127b(0x2f7)](_0x3fe62c-_0x550f7c,_0x55aa25-_0x550f7c,_0x550f7c,0x0,Math['PI']/0x2,!0x1),_0x49f19c[_0x32127b(0x1e9)](0x0,_0x55aa25),_0x49f19c[_0x32127b(0x1e9)](0x0,_0x56327c),_0x49f19c[_0x32127b(0x2f7)](_0x56327c,_0x56327c,_0x56327c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x49f19c[_0x32127b(0x1ec)](),_0x4851d6['fill']&&(_0x49f19c[_0x32127b(0x1fc)](),_0x49f19c[_0x32127b(0x1cf)]=_0x4851d6[_0x32127b(0x325)],_0x4851d6['fillRule']===_0x32127b(0x2bb)?_0x49f19c['fill'](_0x32127b(0x2bb)):_0x49f19c[_0x32127b(0x325)](),_0x49f19c[_0x32127b(0x43d)]());}class ee extends p[_0x3b20ce(0x1e4)]{constructor(_0x22cb37,_0x25371d){const _0xb1facc=_0x3b20ce;super(_0x22cb37,_0x25371d),h(this,'color'),h(this,_0xb1facc(0x24a)),(this['color']=_0x25371d==null?void 0x0:_0x25371d[_0xb1facc(0x338)],this['text']=_0x25371d==null?void 0x0:_0x25371d[_0xb1facc(0x24a)]);}static[_0x3b20ce(0x2bc)](_0xb29ceb,_0x539578){const _0x54090a=_0x3b20ce,{text:_0x49337a,color:_0x177dbd}=_0x539578;_0xb29ceb[_0x54090a(0x1fc)](),_0xb29ceb[_0x54090a(0x1cc)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x20f5e5=_0xb29ceb['measureText'](_0x49337a)['width'],_0x47957d=Math['min'](_0x20f5e5+0x2*ne,Re);_t(_0xb29ceb,{'height':K,'radius':0x4,'width':_0x47957d,'fill':_0x177dbd}),_0xb29ceb[_0x54090a(0x1cf)]='#FFF';const _0x556a37=ne,_0x5bf865=K-lt,_0x30b2c9=Re-0x2*ne;if(_0x20f5e5>_0x30b2c9){let _0x22ed21='',_0x2372d4=0x0;for(const _0x391d9a of _0x49337a){const _0x115195=_0xb29ceb[_0x54090a(0x31e)](_0x391d9a)[_0x54090a(0x2b2)];if(_0x2372d4+_0x115195<=_0x30b2c9-_0xb29ceb[_0x54090a(0x31e)](_0x54090a(0x2c7))[_0x54090a(0x2b2)])_0x22ed21+=_0x391d9a,_0x2372d4+=_0x115195;else{_0x22ed21+=_0x54090a(0x2c7);break;}}_0xb29ceb['fillText'](_0x22ed21,_0x556a37,_0x5bf865);}else _0xb29ceb[_0x54090a(0x1ef)](_0x49337a,_0x556a37,_0x5bf865);_0xb29ceb[_0x54090a(0x43d)]();}['_draw'](_0x310291){const _0x59e53f=_0x3b20ce;ee[_0x59e53f(0x2bc)](_0x310291,this);}}const re=_0x3b20ce(0x3b2),ht='collab-text-range-',ut=_0x3b20ce(0x437),k=0x6,dt=1.5,oe=0x4,It=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x4cee54,_0x5076b9,_0x207e28,_0x37c6d6){const _0x4eda87=_0x3b20ce;h(this,_0x4eda87(0x404),[]),h(this,_0x4eda87(0x333),null),h(this,_0x4eda87(0x222),null),h(this,_0x4eda87(0x316),null),h(this,'_hideTimer',null),h(this,_0x4eda87(0x23c),null),(this[_0x4eda87(0x262)]=_0x4cee54,this[_0x4eda87(0x422)]=_0x5076b9,this[_0x4eda87(0x3ba)]=_0x207e28,this[_0x4eda87(0x388)]=_0x37c6d6,this[_0x4eda87(0x3c0)]());}set[_0x3b20ce(0x349)](_0x2cefd7){const _0x4440fc=_0x3b20ce;_0x2cefd7?(this[_0x4440fc(0x316)]&&this[_0x4440fc(0x316)][_0x4440fc(0x25c)](),this['_textBubble']&&this[_0x4440fc(0x222)]['show']()):(this[_0x4440fc(0x316)]&&this['_anchorDot'][_0x4440fc(0x3b9)](),this[_0x4440fc(0x222)]&&this[_0x4440fc(0x222)]['hide']());}['dispose'](){const _0x1eed6a=_0x3b20ce;for(const _0x52c0b5 of this[_0x1eed6a(0x404)])_0x52c0b5[_0x1eed6a(0x392)]();this[_0x1eed6a(0x222)]&&this[_0x1eed6a(0x222)][_0x1eed6a(0x392)](),this[_0x1eed6a(0x316)]&&this[_0x1eed6a(0x316)][_0x1eed6a(0x392)](),this[_0x1eed6a(0x333)]&&this[_0x1eed6a(0x333)][_0x1eed6a(0x392)](),this[_0x1eed6a(0x23c)]&&this[_0x1eed6a(0x23c)]();}[_0x3b20ce(0x3c0)](){const _0x8c7d31=_0x3b20ce;var _0xf8ba5;const {_docSkeleton:_0x316833,_document:_0x3e84b2}=this,{color:_0x4dfacc,name:_0x1e39fc,ranges:_0xc9e992}=this[_0x8c7d31(0x262)],_0x73f606=_0x3e84b2[_0x8c7d31(0x347)](),{docsLeft:_0x5b7590,docsTop:_0x3c4b3e}=_0x73f606,_0x1128bd=new E[(_0x8c7d31(0x2de))](_0x73f606,_0x316833);for(const {startOffset:_0x2f70c6,endOffset:_0x177a93,rangeType:_0x9eb310,segmentId:_0x169243,segmentPage:_0x2b3e02,collapsed:_0x2e813e,isActive:_0xc58aed}of _0xc9e992){const _0x324728=_0x316833[_0x8c7d31(0x26b)](_0x2f70c6,!0x0,_0x169243,_0x2b3e02);let _0x3aa67b=_0x316833['findNodePositionByCharIndex'](_0x177a93,!0x0,_0x169243,_0x2b3e02);if(_0x3aa67b==null&&(_0x3aa67b=_0x316833[_0x8c7d31(0x26b)](_0x177a93-0x1,!0x1,_0x169243,_0x2b3e02)),_0xc58aed){const {contentBoxPointGroup:_0x171d18}=_0x1128bd[_0x8c7d31(0x1d1)](_0x3aa67b,_0x3aa67b);if(_0x171d18[_0x8c7d31(0x34f)]===0x0)continue;this['_drawAnchor'](_0x4dfacc,_0x171d18,_0x5b7590,_0x3c4b3e,_0x1e39fc),this[_0x8c7d31(0x23c)]=this[_0x8c7d31(0x435)]();}if(_0x324728&&_0x3aa67b){if(_0x9eb310===a[_0x8c7d31(0x204)][_0x8c7d31(0x3dc)]){const _0x2d12a9=new E[(_0x8c7d31(0x26d))](_0x73f606,_0x316833),{pointGroup:_0x43e7b3}=(_0xf8ba5=_0x2d12a9[_0x8c7d31(0x1d1)](_0x324728,_0x3aa67b))!=null?_0xf8ba5:{};if(_0x43e7b3==null||_0x43e7b3[_0x8c7d31(0x34f)]===0x0)continue;this[_0x8c7d31(0x21f)](_0x4dfacc,_0x43e7b3,_0x5b7590,_0x3c4b3e);}else{if(!_0x2e813e){const {borderBoxPointGroup:_0x344323}=_0x1128bd[_0x8c7d31(0x1d1)](_0x324728,_0x3aa67b);if(_0x344323[_0x8c7d31(0x34f)]===0x0)continue;this[_0x8c7d31(0x2b9)](_0x4dfacc,_0x344323,_0x5b7590,_0x3c4b3e);}}}}}['_drawAnchor'](_0x2862c7,_0x10a4c6,_0x21af66,_0x5778a1,_0x7745b0){const _0x16c45b=_0x3b20ce,_0x5756dd=this['_getAnchorBounding'](_0x10a4c6),{left:_0x298581,top:_0x5eee91,height:_0x1212f1}=_0x5756dd,_0xd3bb7c=this['_getScale'](),_0x1e44c4=It/_0xd3bb7c,_0x3196b4=new p['Rect'](re+a[_0x16c45b(0x42c)][_0x16c45b(0x2cb)](k),{'left':_0x298581+_0x21af66-_0x1e44c4,'top':_0x5eee91+_0x5778a1,'height':_0x1212f1,'width':dt,'fill':_0x2862c7||p[_0x16c45b(0x330)](a[_0x16c45b(0x368)][_0x16c45b(0x1f4)],0x0),'strokeWidth':_0x1e44c4,'stroke':St,'evented':!0x0});this[_0x16c45b(0x333)]=_0x3196b4,this[_0x16c45b(0x422)][_0x16c45b(0x37c)](_0x3196b4,E[_0x16c45b(0x2d9)]);const _0x4eac61=new p['Rect'](re+a[_0x16c45b(0x42c)][_0x16c45b(0x2cb)](k),{'left':_0x298581+_0x21af66-_0x1e44c4,'top':_0x5eee91+_0x5778a1-oe/0x2,'height':oe,'width':oe,'fill':_0x2862c7||p['getColor'](a[_0x16c45b(0x368)][_0x16c45b(0x1f4)],0x0),'strokeWidth':0x0,'stroke':_0x2862c7||p[_0x16c45b(0x330)](a['COLORS'][_0x16c45b(0x1f4)],0x0),'evented':!0x1});this[_0x16c45b(0x316)]=_0x4eac61,this[_0x16c45b(0x422)][_0x16c45b(0x37c)](_0x4eac61,E['TEXT_RANGE_LAYER_INDEX']);const _0x505ea6=new ee(re+a[_0x16c45b(0x42c)][_0x16c45b(0x2cb)](k),{'left':_0x298581+_0x21af66-_0x1e44c4,'top':_0x5eee91+_0x5778a1-K,'text':_0x7745b0,'color':_0x2862c7});this[_0x16c45b(0x222)]=_0x505ea6,this[_0x16c45b(0x422)][_0x16c45b(0x37c)](_0x505ea6,E[_0x16c45b(0x2d9)]),this[_0x16c45b(0x349)]=!0x1;}[_0x3b20ce(0x435)](){const _0x8cabf9=_0x3b20ce,_0x477103=this['_anchor'][_0x8cabf9(0x29d)][_0x8cabf9(0x2e2)](()=>{const _0x15ce37=_0x8cabf9;this[_0x15ce37(0x349)]=!0x0;}),_0x37e36=this[_0x8cabf9(0x333)][_0x8cabf9(0x398)][_0x8cabf9(0x2e2)](()=>{const _0x55d1c2=_0x8cabf9;this[_0x55d1c2(0x24b)]&&clearTimeout(this[_0x55d1c2(0x24b)]),this[_0x55d1c2(0x24b)]=setTimeout(()=>{const _0x2fcb5f=_0x55d1c2;this[_0x2fcb5f(0x349)]=!0x1;},0x7d0);});return()=>{const _0x3fcb6f=_0x8cabf9;_0x477103[_0x3fcb6f(0x3e3)](),_0x37e36['unsubscribe']();};}[_0x3b20ce(0x2b9)](_0x4f78be,_0x57dc03,_0x55712f,_0x480699){const _0x1e0760=_0x3b20ce,_0x46e5b9=new a[(_0x1e0760(0x3d1))](_0x4f78be)[_0x1e0760(0x264)](0.2)[_0x1e0760(0x361)](),_0x23bd4f=new p['RegularPolygon'](ht+a[_0x1e0760(0x42c)][_0x1e0760(0x2cb)](k),{'pointsGroup':_0x57dc03,'fill':_0x46e5b9||p[_0x1e0760(0x330)](a[_0x1e0760(0x368)][_0x1e0760(0x1f4)],0.2),'left':_0x55712f,'top':_0x480699,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1e0760(0x2a5)](_0x23bd4f),this[_0x1e0760(0x422)][_0x1e0760(0x37c)](_0x23bd4f,E[_0x1e0760(0x2d9)]);}[_0x3b20ce(0x21f)](_0x53c090,_0x39f53d,_0x350054,_0x2b446b){const _0x310668=_0x3b20ce,_0x1b2172=new a[(_0x310668(0x3d1))](_0x53c090)[_0x310668(0x264)](0.2)['toRgbString'](),_0x10078b=new p['RegularPolygon'](ut+a[_0x310668(0x42c)][_0x310668(0x2cb)](k),{'pointsGroup':_0x39f53d,'fill':_0x1b2172||p[_0x310668(0x330)](a[_0x310668(0x368)]['black'],0.2),'left':_0x350054,'top':_0x2b446b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x10078b),this[_0x310668(0x422)][_0x310668(0x37c)](_0x10078b,E[_0x310668(0x2d9)]);}[_0x3b20ce(0x327)](_0x1f132b){const _0x159258=_0x1f132b[0x0],_0x33d320=_0x159258[0x0],_0x34f071=_0x159258[0x2],{x:_0x4e6906,y:_0x375557}=_0x33d320,{x:_0x5e9607,y:_0x6e01de}=_0x34f071;return{'left':_0x4e6906,'top':_0x375557,'width':_0x5e9607-_0x4e6906,'height':_0x6e01de-_0x375557};}['_getScale'](){const _0x1c9c2a=_0x3b20ce,{scaleX:_0x49fbdc,scaleY:_0x33e9d0}=this[_0x1c9c2a(0x422)][_0x1c9c2a(0x28b)]();return Math[_0x1c9c2a(0x301)](_0x49fbdc,_0x33e9d0);}}var ft=Object[_0x3b20ce(0x36b)],vt=(_0x3b2b24,_0x5819ea,_0x55e534,_0x490461)=>{for(var _0xdc35ac=_0x490461>0x1?void 0x0:_0x490461?ft(_0x5819ea,_0x55e534):_0x5819ea,_0x462b2a=_0x3b2b24['length']-0x1,_0x509b07;_0x462b2a>=0x0;_0x462b2a--)(_0x509b07=_0x3b2b24[_0x462b2a])&&(_0xdc35ac=_0x509b07(_0xdc35ac)||_0xdc35ac);return _0xdc35ac;},W=(_0x3ac209,_0x619468)=>(_0x5bb533,_0x24f9c9)=>_0x619468(_0x5bb533,_0x24f9c9,_0x3ac209);let fe=class extends a['RxDisposable']{constructor(_0x42a133,_0x26827d,_0x137e9f,_0x547986,_0x237cd5){const _0x1136aa=_0x3b20ce;super(),h(this,'_cursorShapes',[]),h(this,'_cursors',[]),(this[_0x1136aa(0x2c0)]=_0x42a133,this['_docSkeletonManagerService']=_0x26827d,this[_0x1136aa(0x314)]=_0x137e9f,this[_0x1136aa(0x372)]=_0x547986,this[_0x1136aa(0x1f1)]=_0x237cd5,this[_0x1136aa(0x3e1)]());}['_init'](){const _0x263344=_0x3b20ce,_0x3d2b35=this[_0x263344(0x2c0)]['unitId'],_0x36d939=this[_0x263344(0x296)];this['disposeWithMe'](d[_0x263344(0x1c9)]([this[_0x263344(0x314)][_0x263344(0x25a)](_0x3d2b35),this['_themeService'][_0x263344(0x3df)]])[_0x263344(0x32f)]($[_0x263344(0x22c)](([_0x2e424c,_0xa2c660])=>({'skeleton':_0x36d939['getSkeleton'](),'cursors':[..._0x2e424c[_0x263344(0x249)]()][_0x263344(0x308)](_0x249443=>({..._0x249443,'color':this[_0x263344(0x1f1)]['getColorFromTheme'](_0x249443[_0x263344(0x338)])}))})))[_0x263344(0x3d4)](_0x38d7f9=>{const _0x4482b9=_0x263344;if(this[_0x4482b9(0x2b1)](),_0x38d7f9){const {skeleton:_0x31baac,cursors:_0x8075d6}=_0x38d7f9;this[_0x4482b9(0x3cd)](_0x31baac,_0x8075d6);}})),this[_0x263344(0x331)](),this[_0x263344(0x41c)]();}[_0x3b20ce(0x3cd)](_0x276b14,_0x500917){const _0x83a7c6=_0x3b20ce,{scene:_0x98341a,mainComponent:_0x3541ad}=this['_context'],_0x404ede=_0x500917[_0x83a7c6(0x22c)](_0x465b50=>new De(_0x465b50,_0x98341a,_0x276b14,_0x3541ad));this[_0x83a7c6(0x1fb)]=_0x404ede,this[_0x83a7c6(0x258)]=_0x500917;}['_refreshCollabCursors'](){const _0x39386e=_0x3b20ce;this[_0x39386e(0x2b1)]();const {scene:_0xcabc2b,mainComponent:_0x399236}=this[_0x39386e(0x2c0)],_0x543e77=this[_0x39386e(0x296)][_0x39386e(0x3f1)](),_0x584ba2=this['_cursors'][_0x39386e(0x22c)](_0x2f8c23=>new De(_0x2f8c23,_0xcabc2b,_0x543e77,_0x399236));this[_0x39386e(0x1fb)]=_0x584ba2;}['_removeCollabCursors'](){const _0x1bf5db=_0x3b20ce;this[_0x1bf5db(0x1fb)][_0x1bf5db(0x42b)](_0xbe39f=>_0xbe39f[_0x1bf5db(0x392)]()),this[_0x1bf5db(0x1fb)]=[];}[_0x3b20ce(0x41c)](){const _0x151a99=_0x3b20ce,_0x1b36e0=[E[_0x151a99(0x28a)]['id']];this['disposeWithMe'](this[_0x151a99(0x372)]['onCommandExecuted'](_0x47b350=>{const _0x2c27c2=_0x151a99;_0x1b36e0[_0x2c27c2(0x2b8)](_0x47b350['id'])&&_0x47b350['params'][_0x2c27c2(0x22a)]===this[_0x2c27c2(0x2c0)][_0x2c27c2(0x22a)]&&this[_0x2c27c2(0x1d7)]();}));}[_0x3b20ce(0x331)](){const _0x345f3f=_0x3b20ce;this[_0x345f3f(0x1c3)](a[_0x345f3f(0x247)](this['_context'][_0x345f3f(0x38d)][_0x345f3f(0x376)])[_0x345f3f(0x32f)]($[_0x345f3f(0x375)](_0x1cf3b3=>_0x1cf3b3['type']===p[_0x345f3f(0x200)][_0x345f3f(0x439)]),$[_0x345f3f(0x1d9)](0x10))[_0x345f3f(0x3d4)](()=>{const _0x53fee6=_0x345f3f;this[_0x53fee6(0x1d7)]();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x3b20ce(0x3a4)])),W(0x2,a[_0x3b20ce(0x282)](x)),W(0x3,a[_0x3b20ce(0x340)]),W(0x4,a[_0x3b20ce(0x282)](a[_0x3b20ce(0x227)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0x3b20ce(0x1e4)]{constructor(_0x173df5,_0x470eb7){const _0xf07981=_0x3b20ce;super(_0x173df5,_0x470eb7),h(this,'_color'),h(this,_0xf07981(0x38b),!0x1),h(this,_0xf07981(0x20d)),h(this,_0xf07981(0x272),''),h(this,_0xf07981(0x1ed),_0xf07981(0x3d2)),h(this,_0xf07981(0x351)),(_0x470eb7&&this['setShapeProps'](_0x470eb7),this[_0xf07981(0x29d)][_0xf07981(0x2e2)](()=>this[_0xf07981(0x289)]({'hovered':!0x0})),this[_0xf07981(0x398)][_0xf07981(0x2e2)](()=>this[_0xf07981(0x289)]({'hovered':!0x1})));}['setShapeProps'](_0x20b1f6){const _0x2fbf45=_0x3b20ce;var _0x185380,_0x5f4b70,_0x33a425,_0x182fd3,_0x4f0222,_0x464523;this[_0x2fbf45(0x400)]=(_0x185380=_0x20b1f6[_0x2fbf45(0x338)])!=null?_0x185380:this['_color'],this[_0x2fbf45(0x38b)]=(_0x5f4b70=_0x20b1f6[_0x2fbf45(0x267)])!=null?_0x5f4b70:this[_0x2fbf45(0x38b)],this[_0x2fbf45(0x20d)]=(_0x33a425=_0x20b1f6[_0x2fbf45(0x236)])!=null?_0x33a425:this['_range'],this[_0x2fbf45(0x272)]=(_0x182fd3=_0x20b1f6['name'])!=null?_0x182fd3:this[_0x2fbf45(0x272)],this[_0x2fbf45(0x1ed)]=(_0x4f0222=_0x20b1f6[_0x2fbf45(0x33d)])!=null?_0x4f0222:this['_labelPosition'],this[_0x2fbf45(0x351)]=(_0x464523=_0x20b1f6[_0x2fbf45(0x1f2)])!=null?_0x464523:this['_backgroundColor'],this[_0x2fbf45(0x2b6)]({'width':_0x20b1f6[_0x2fbf45(0x2b2)],'height':_0x20b1f6[_0x2fbf45(0x1f3)]});}[_0x3b20ce(0x2aa)](_0x28c51e){const _0x3ae175=_0x3b20ce,{row:_0x46cd04,column:_0x5aab52}=_0x28c51e;if(_0x46cd04>=this[_0x3ae175(0x20d)]['startRow']&&_0x46cd04<=this[_0x3ae175(0x20d)]['endRow']&&_0x5aab52>=this['_range']['startColumn']&&_0x5aab52<=this[_0x3ae175(0x20d)][_0x3ae175(0x263)]){this[_0x3ae175(0x289)]({'hovered':!0x0});return;}this[_0x3ae175(0x289)]({'hovered':!0x1});}['triggerDblclick'](_0x14534a){return!0x1;}[_0x3b20ce(0x40f)](_0x3168b9){const _0x56cb7b=_0x3b20ce;p['Rect']['drawWith'](_0x3168b9,{'width':this[_0x56cb7b(0x2b2)],'height':this[_0x56cb7b(0x1f3)],'strokeWidth':mt,'stroke':this[_0x56cb7b(0x400)],'evented':!0x1,'fill':this[_0x56cb7b(0x351)]}),this[_0x56cb7b(0x38b)]&&(_0x3168b9['save'](),_0x3168b9['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x56cb7b(0x1ed)]===_0x56cb7b(0x34e)?0x0:-0x14),ee[_0x56cb7b(0x2bc)](_0x3168b9,{'text':this[_0x56cb7b(0x272)],'color':this['_color']}),_0x3168b9[_0x56cb7b(0x43d)]());}}var Ct=Object[_0x3b20ce(0x36b)],pt=(_0x3d429d,_0x56a359,_0x4dd9a6,_0x47cde8)=>{for(var _0x154059=_0x47cde8>0x1?void 0x0:_0x47cde8?Ct(_0x56a359,_0x4dd9a6):_0x56a359,_0x5f4820=_0x3d429d['length']-0x1,_0x5486b5;_0x5f4820>=0x0;_0x5f4820--)(_0x5486b5=_0x3d429d[_0x5f4820])&&(_0x154059=_0x5486b5(_0x154059)||_0x154059);return _0x154059;},ae=(_0x3b628c,_0x61a3)=>(_0x4c7367,_0x370b7a)=>_0x61a3(_0x4c7367,_0x370b7a,_0x3b628c);const Et=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x514744,_0x4483f2,_0x9a21f3,_0x28eba2){const _0xa7bc20=_0x3b20ce;super(),h(this,_0xa7bc20(0x258),new Set()),h(this,_0xa7bc20(0x35d),null),(this[_0xa7bc20(0x2c0)]=_0x514744,this[_0xa7bc20(0x298)]=_0x4483f2,this[_0xa7bc20(0x314)]=_0x9a21f3,this['_themeService']=_0x28eba2,this[_0xa7bc20(0x3e1)]());}[_0x3b20ce(0x3e1)](){const _0x2a2433=_0x3b20ce;this[_0x2a2433(0x298)][_0x2a2433(0x37a)]['pipe']($[_0x2a2433(0x2ec)](this[_0x2a2433(0x28c)]),$[_0x2a2433(0x232)](_0x2a5c86=>{const _0x1c6dc5=_0x2a2433;if(_0x2a5c86){const _0x214add=_0x2a5c86[_0x1c6dc5(0x2df)];return d['combineLatest'](this[_0x1c6dc5(0x314)]['getCollabCursors$'](this[_0x1c6dc5(0x2c0)]['unitId']),this['_themeService'][_0x1c6dc5(0x3df)])[_0x1c6dc5(0x32f)]($[_0x1c6dc5(0x22c)](([_0x4f045e,_0x80133b])=>{const _0x40ca59=_0x1c6dc5,_0x12dbdc=new Map();return _0x4f045e[_0x40ca59(0x42b)]((_0x3d5eff,_0x5eec93)=>{const _0x34646f=_0x40ca59;if(_0x3d5eff[_0x34646f(0x256)]===_0x214add){const _0x5d8d7d={..._0x3d5eff};_0x5d8d7d['color']=this[_0x34646f(0x1f1)][_0x34646f(0x1e7)](_0x3d5eff[_0x34646f(0x338)]),_0x12dbdc[_0x34646f(0x26a)](_0x5eec93,_0x5d8d7d);}}),{'skeleton':_0x2a5c86,'cursors':_0x12dbdc};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2a2433(0x3d4)](({skeleton:_0x3a736e,cursors:_0x3ca0bf})=>{const _0xce2c77=_0x2a2433;this[_0xce2c77(0x2b1)](),_0x3a736e&&this['_updateCollabCursors'](_0x3a736e,_0x3ca0bf);}),this[_0x2a2433(0x298)][_0x2a2433(0x37a)]['subscribe'](_0x195e4c=>{const _0x2a6576=_0x2a2433;if(_0x195e4c==null)return;const {skeleton:_0x1ee162}=_0x195e4c,{scene:_0x983a89}=this['_context'];_0x983a89[_0x2a6576(0x1fd)]['subscribeEvent'](a[_0x2a6576(0x246)](_0x35d9e5=>{const _0x152e31=_0x2a6576;var _0x50a70a,_0x14619a;const {offsetX:_0xa0fb9a,offsetY:_0x42f139}=_0x35d9e5,{x:_0x23619c,y:_0x50b789}=_0x983a89[_0x152e31(0x382)](p[_0x152e31(0x433)][_0x152e31(0x1e5)]([_0xa0fb9a,_0x42f139])),{scaleX:_0x483d2e,scaleY:_0x4e13f3}=_0x983a89[_0x152e31(0x28b)](),_0x4033e6=_0x983a89[_0x152e31(0x394)](p[_0x152e31(0x3f8)]['VIEW_MAIN']),_0x24eafd=_0x983a89[_0x152e31(0x39c)](p[_0x152e31(0x433)][_0x152e31(0x1e5)]([_0x23619c,_0x50b789]),_0x4033e6),_0x2c2dc2=_0x1ee162[_0x152e31(0x1be)](_0xa0fb9a,_0x42f139,_0x483d2e,_0x4e13f3,_0x24eafd);((_0x50a70a=this[_0x152e31(0x35d)])==null?void 0x0:_0x50a70a['column'])===_0x2c2dc2[_0x152e31(0x2a3)]&&((_0x14619a=this[_0x152e31(0x35d)])==null?void 0x0:_0x14619a['row'])===_0x2c2dc2[_0x152e31(0x26c)]||this[_0x152e31(0x258)][_0x152e31(0x42b)](_0x27f9b0=>{const _0x4b21e1=_0x152e31;_0x27f9b0[_0x4b21e1(0x2aa)](_0x2c2dc2);});},0x64));});}[_0x3b20ce(0x3cd)](_0x2c06cb,_0x4a6aea){const _0x3c3932=_0x3b20ce;var _0x1edaf4;const _0x3b1d36=(_0x1edaf4=this[_0x3c3932(0x298)][_0x3c3932(0x1f0)]())==null?void 0x0:_0x1edaf4[_0x3c3932(0x33c)];if(!_0x3b1d36)return;const _0x9fcb=this['_getSheetObject']();if(!_0x9fcb)return;this[_0x3c3932(0x258)][_0x3c3932(0x42b)](_0x3f8468=>{const _0x1e0a0f=_0x3c3932;_0x3f8468[_0x1e0a0f(0x443)]();});const {scene:_0x2ff040}=_0x9fcb,_0x50f803=bt(Array[_0x3c3932(0x213)](_0x4a6aea[_0x3c3932(0x249)]()))['map'](_0x5aa568=>{const _0x236974=_0x3c3932,{color:_0x34dfd6,range:_0x478cde,name:_0x5a48ed,selection:_0x4f2092,sheetID:_0x1cc543}=_0x5aa568,{startColumn:_0x1770ed,startRow:_0x56d2de,endColumn:_0x4bac19,endRow:_0x4fa6c8}=_0x478cde,_0x396327=X[_0x236974(0x1b6)](_0x56d2de,_0x1770ed,_0x2ff040,_0x3b1d36),_0x276ab2=X[_0x236974(0x1b6)](_0x4fa6c8,_0x4bac19,_0x2ff040,_0x3b1d36),{columnHeaderHeightAndMarginTop:_0x2f3200}=_0x3b1d36,{startX:_0x1a0ca3,startY:_0x429347}=_0x396327,{endX:_0x26a214,endY:_0x24f6fc}=_0x276ab2,_0x193110=_0x26a214-_0x1a0ca3,_0x5a2b78=_0x24f6fc-_0x429347,_0x4ff500={'labelPosition':_0x429347-_0x2f3200>=K?_0x236974(0x3d2):_0x236974(0x34e),'sheetID':_0x1cc543,'range':_0x478cde,'color':_0x34dfd6,'name':_0x5a48ed,'selection':_0x4f2092,'left':_0x1a0ca3,'top':_0x429347,'width':_0x193110,'height':_0x5a2b78,'evented':!0x1,'zIndex':Et};return new we(_0x5a48ed,_0x4ff500);});_0x2ff040[_0x3c3932(0x2a1)](_0x50f803,gt),this[_0x3c3932(0x258)]=new Set(_0x50f803);}[_0x3b20ce(0x2b1)](){const _0x5d0e41=_0x3b20ce;var _0x1e75c9;(_0x1e75c9=this[_0x5d0e41(0x258)])==null||_0x1e75c9[_0x5d0e41(0x42b)](_0x4ff7f9=>_0x4ff7f9[_0x5d0e41(0x392)]());}[_0x3b20ce(0x216)](){const _0x2258ee=_0x3b20ce;return X[_0x2258ee(0x24e)](this[_0x2258ee(0x2c0)][_0x2258ee(0x1f5)],this[_0x2258ee(0x2c0)]);}};ve=pt([ae(0x1,a[_0x3b20ce(0x282)](X[_0x3b20ce(0x2dd)])),ae(0x2,a[_0x3b20ce(0x282)](x)),ae(0x3,a[_0x3b20ce(0x282)](a[_0x3b20ce(0x227)]))],ve);function bt(_0x135762){const _0x2a0c23=_0x3b20ce,_0x2cf027=new Map();return _0x135762['forEach'](_0x127ca3=>{const _0x19d455=_0x3f21;if(_0x2cf027[_0x19d455(0x2a0)](_0x127ca3[_0x19d455(0x250)])){const _0x198f77=_0x2cf027[_0x19d455(0x3ff)](_0x127ca3['selection']);_0x198f77[_0x19d455(0x427)]+=',\x20'+_0x127ca3[_0x19d455(0x427)];}else _0x2cf027[_0x19d455(0x26a)](_0x127ca3[_0x19d455(0x250)],_0x127ca3);}),Array[_0x2a0c23(0x213)](_0x2cf027[_0x2a0c23(0x249)]());}var b=function(){const _0x437d00=_0x3b20ce;return b=Object[_0x437d00(0x2c3)]||function(_0x2a6ef8){const _0x5439ad=_0x437d00;for(var _0x4c5962,_0x259073=0x1,_0x1367a9=arguments['length'];_0x259073<_0x1367a9;_0x259073++){_0x4c5962=arguments[_0x259073];for(var _0xe51bce in _0x4c5962)Object[_0x5439ad(0x20a)][_0x5439ad(0x3c9)]['call'](_0x4c5962,_0xe51bce)&&(_0x2a6ef8[_0xe51bce]=_0x4c5962[_0xe51bce]);}return _0x2a6ef8;},b[_0x437d00(0x210)](this,arguments);},Ot=function(_0x9744e6,_0x2bd23){const _0x149490=_0x3b20ce;var _0x104078={};for(var _0x3b6037 in _0x9744e6)Object[_0x149490(0x20a)][_0x149490(0x3c9)]['call'](_0x9744e6,_0x3b6037)&&_0x2bd23['indexOf'](_0x3b6037)<0x0&&(_0x104078[_0x3b6037]=_0x9744e6[_0x3b6037]);if(_0x9744e6!=null&&typeof Object[_0x149490(0x389)]==_0x149490(0x2f9)){for(var _0x1c6a59=0x0,_0x3b6037=Object[_0x149490(0x389)](_0x9744e6);_0x1c6a59<_0x3b6037['length'];_0x1c6a59++)_0x2bd23[_0x149490(0x3f3)](_0x3b6037[_0x1c6a59])<0x0&&Object[_0x149490(0x20a)]['propertyIsEnumerable'][_0x149490(0x2a4)](_0x9744e6,_0x3b6037[_0x1c6a59])&&(_0x104078[_0x3b6037[_0x1c6a59]]=_0x9744e6[_0x3b6037[_0x1c6a59]]);}return _0x104078;},pe=M[_0x3b20ce(0x2c1)](function(_0x4d1849,_0x135b53){const _0x4b5c96=_0x3b20ce;var _0x25174c=_0x4d1849[_0x4b5c96(0x1d2)],_0x426c11=_0x4d1849['id'],_0x5dbcc8=_0x4d1849[_0x4b5c96(0x283)],_0xa479f5=_0x4d1849[_0x4b5c96(0x1c0)],_0x2ea703=Ot(_0x4d1849,[_0x4b5c96(0x1d2),'id','className',_0x4b5c96(0x1c0)]),_0x146f45=_0x4b5c96(0x245)['concat'](_0x426c11,'\x20')[_0x4b5c96(0x3a7)](_0x5dbcc8||'')[_0x4b5c96(0x2ac)](),_0x2c8008=M[_0x4b5c96(0x363)]('_'[_0x4b5c96(0x3a7)](Dt()));return Ae(_0x25174c,''[_0x4b5c96(0x3a7)](_0x426c11),{'defIds':_0x25174c[_0x4b5c96(0x2cc)],'idSuffix':_0x2c8008[_0x4b5c96(0x339)]},b({'ref':_0x135b53,'className':_0x146f45},_0x2ea703),_0xa479f5);});function Ae(_0x17ade9,_0x2f47ea,_0x22cb70,_0x57ee37,_0x5543c3){const _0x3fa5cf=_0x3b20ce;return M[_0x3fa5cf(0x1ee)](_0x17ade9[_0x3fa5cf(0x229)],b(b({'key':_0x2f47ea},Tt(_0x17ade9,_0x22cb70,_0x5543c3)),_0x57ee37),(Rt(_0x17ade9,_0x22cb70)['children']||[])[_0x3fa5cf(0x22c)](function(_0x5460dc,_0x30abe0){const _0x4b007a=_0x3fa5cf;return Ae(_0x5460dc,''['concat'](_0x2f47ea,'-')[_0x4b007a(0x3a7)](_0x17ade9[_0x4b007a(0x229)],'-')[_0x4b007a(0x3a7)](_0x30abe0),_0x22cb70,void 0x0,_0x5543c3);}));}function Tt(_0x3df48,_0x18fe34,_0x4216c8){const _0x11de8f=_0x3b20ce;var _0x1086bb=b({},_0x3df48['attrs']);_0x4216c8!=null&&_0x4216c8[_0x11de8f(0x201)]&&_0x1086bb[_0x11de8f(0x325)]==='colorChannel1'&&(_0x1086bb[_0x11de8f(0x325)]=_0x4216c8[_0x11de8f(0x201)]),_0x3df48[_0x11de8f(0x229)]===_0x11de8f(0x2fb)&&_0x1086bb['id']&&(_0x1086bb['id']=_0x1086bb['id']+_0x18fe34[_0x11de8f(0x3f6)]),Object['entries'](_0x1086bb)[_0x11de8f(0x42b)](function(_0x42c784){const _0x4d6241=_0x11de8f;var _0x28e198=_0x42c784[0x0],_0x1b3950=_0x42c784[0x1];_0x28e198===_0x4d6241(0x2fb)&&typeof _0x1b3950==_0x4d6241(0x1df)&&(_0x1086bb[_0x28e198]=_0x1b3950['replace'](/url\(#(.*)\)/,_0x4d6241(0x35a)['concat'](_0x18fe34[_0x4d6241(0x3f6)],')')));});var _0xd1cb41=_0x18fe34[_0x11de8f(0x2cc)];return!_0xd1cb41||_0xd1cb41[_0x11de8f(0x34f)]===0x0||(_0x3df48[_0x11de8f(0x229)]===_0x11de8f(0x369)&&_0x1086bb['xlink:href']&&(_0x1086bb['xlink:href']=_0x1086bb[_0x11de8f(0x43a)]+_0x18fe34[_0x11de8f(0x3f6)]),Object[_0x11de8f(0x211)](_0x1086bb)['forEach'](function(_0x3dc62a){const _0x49dfc5=_0x11de8f;var _0x42a0b0=_0x3dc62a[0x0],_0x4d9f0c=_0x3dc62a[0x1];typeof _0x4d9f0c==_0x49dfc5(0x1df)&&(_0x1086bb[_0x42a0b0]=_0x4d9f0c['replace'](/url\(#(.*)\)/,_0x49dfc5(0x35a)[_0x49dfc5(0x3a7)](_0x18fe34[_0x49dfc5(0x3f6)],')')));})),_0x1086bb;}function Rt(_0x4a3e39,_0x25f220){const _0x17c592=_0x3b20ce;var _0x2c5369,_0x1f904f=_0x25f220[_0x17c592(0x2cc)];return!_0x1f904f||_0x1f904f[_0x17c592(0x34f)]===0x0?_0x4a3e39:_0x4a3e39[_0x17c592(0x229)]===_0x17c592(0x385)&&(!((_0x2c5369=_0x4a3e39[_0x17c592(0x255)])===null||_0x2c5369===void 0x0)&&_0x2c5369[_0x17c592(0x34f)])?b(b({},_0x4a3e39),{'children':_0x4a3e39['children']['map'](function(_0xae9e3d){const _0xb7f78e=_0x17c592;return typeof _0xae9e3d[_0xb7f78e(0x3fa)]['id']==_0xb7f78e(0x1df)&&_0x1f904f&&_0x1f904f[_0xb7f78e(0x2b8)](_0xae9e3d[_0xb7f78e(0x3fa)]['id'])?b(b({},_0xae9e3d),{'attrs':b(b({},_0xae9e3d[_0xb7f78e(0x3fa)]),{'id':_0xae9e3d[_0xb7f78e(0x3fa)]['id']+_0x25f220[_0xb7f78e(0x3f6)]})}):_0xae9e3d;})}):_0x4a3e39;}function Dt(){const _0xf56019=_0x3b20ce;return Math[_0xf56019(0x38a)]()[_0xf56019(0x3e9)](0x24)[_0xf56019(0x1d0)](0x2,0x8);}pe[_0x3b20ce(0x221)]=_0x3b20ce(0x3bc);var Ut={'tag':_0x3b20ce(0x240),'attrs':{'xmlns':_0x3b20ce(0x252),'fill':_0x3b20ce(0x403),'viewBox':_0x3b20ce(0x2d3),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3b20ce(0x2ea)},'children':[{'tag':_0x3b20ce(0x22f),'attrs':{'stroke':_0x3b20ce(0x1ca),'d':_0x3b20ce(0x3d0),'strokeLinecap':_0x3b20ce(0x409),'strokeLinejoin':_0x3b20ce(0x409),'strokeWidth':1.2}}]},{'tag':_0x3b20ce(0x385),'attrs':{},'children':[{'tag':_0x3b20ce(0x1ce),'attrs':{'id':_0x3b20ce(0x1bd)},'children':[{'tag':_0x3b20ce(0x22f),'attrs':{'fill':_0x3b20ce(0x2e1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M[_0x3b20ce(0x2c1)](function(_0x20b934,_0x197ea7){const _0x3f7e02=_0x3b20ce;return M[_0x3f7e02(0x1ee)](pe,Object[_0x3f7e02(0x2c3)]({},_0x20b934,{'id':_0x3f7e02(0x42e),'ref':_0x197ea7,'icon':Ut}));});ye[_0x3b20ce(0x221)]=_0x3b20ce(0x2ce);function _0x2c3e(){const _0xe1c57f=['SNAPSHOT_INVALID_SNAPSHOT','getSheetBySheetId','disposeUnit','pipe','getColor','_initResize','reconnect','_anchor','_registerDependencies','startsWith','isActive','APPLY_NON_SEQUENTIAL_REVISION','color','current','INVITE_CODE_ALREADY_BOUND','YUUMI_SUBSCRIPTION_NOT_FOUND','skeleton','labelPosition','LOGIN_FAILED','IRenderManagerService','ICommandService','IConfigService','CollaborationController','TOO_MANY_REQUESTS','with','ACTIVE_UNIT_EVENT_CHANNEL','params','getOffsetConfig','handleDeleteRangeMoveLeft','_hover','clsx','_renderManagerService','_assignedColors','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','bottom','length','Failed','_backgroundColor','getUndoRedoMutationParamsCache','defineProperty','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','registerRefRange','UniverInstanceType','actions','permission.content','SetSelectionsOperation','url(#$1','clearInterval','_instanceService','_lastPointer','_beforeCloseService','getUnitId','YUUMI_NO_CUBOID_FOR_QUESTION','toRgbString','Subject','useRef','_scheduleClearOtherTimer','selections','Injector','override','COLORS','use','code','getOwnPropertyDescriptor','1em','entityInit$','CollaborationUIEventId','mutations','Error','DesktopCollaborationStatusDisplayController','_commandService','2797186EnrcRQ','CollaborationUIEventService','filter','onTransformChange$','setParam','UniverCollaborationClientUIPlugin','m2Prime','currentSkeleton$','_disabled','addObject','PY_RUNTIME_SCRIPT_ERROR','handleMoveRange','UNAUTHENTICATED','_getMergeRange','executeCommand','getRelativeToViewportCoord','createSocket','useCallback','defs','_setupBeforeClosingHandler','ranges','_document','getOwnPropertySymbols','random','_hovered','_logService','engine','4223334EHyGyh','textRanges','purple.300','invokeId','dispose','@univerjs/sheets-ui','getViewport','DEFAULT_WS_SESSION_TICKET_URL','_configService','_docClipboardService','onPointerLeave$','loadUnit','_initStatusComponent','distinctUntilChanged','getVpScrollXYInfoByPosToVp','toStringTag','LocaleService','Warning','react/jsx-runtime','YUUMI_CONNECTOR_URL_NOT_FOUND','getCurrentUnitForType','event$','DocSkeletonManagerService','_ensureSubject','_heartbeatTimer','concat','collabStatus.conflict','_getSaveTimeout','SNAPSHOT_HAS_BEEN_REMOVED','getItem','assignAColorForMemberID','getCollabEntity$','APPLY_PERMISSION_DENIED','_scheduleSaving','loadOfflineData','handleDeleteRangeMoveUp','collab-text-anchor-','cursorInfo','jiqing.500','Tooltip','_session','_cursorInfo$','getFocusedUnit','show','_docSkeleton','merge','UniverIcon','_unitOnClients','status$','DataLoaderService','_render','USERS_LEAVE','cursorInfo$','eventID','_config','YUUMI_ALL_TABLES_IS_INVALID','_saveCache','next','JOIN_ROOM_FAILED','hasOwnProperty','isArray','_cachedData','key','_updateCollabCursors','_removeClearOtherTimer','SUBMIT_CHANGESET_TIMEOUT','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','ColorKit','top','collaboration.closeRoom','subscribe','[RemoteUniscriptService]:\x20no\x20focused\x20unit','TEXT','div','debug','onRendered','_imageIoService','_uiPartsService','RECT','LICENSE_DISTRO_REJECTED','RichTextEditingMutation','currentTheme$','createIdentifier','_init','collabStatus.synced','unsubscribe','isTransformMutationsWithChangesetSuccess','_initStatusListener','docStateChange$','INotificationService','getRenderById','toString','LICENSE_IMPORT_SIZE_EXCEEDED','saveImage','_status$','WECHAT_HAS_BEEN_BOUND','getMergeData','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','APPLY_REJECT','getSkeleton','getActiveSheet','indexOf','1216hHbFdw','_docTransformSelectionsService','idSuffix','ENSURE_SNAPSHOT_EXECUTION','SHEET_VIEWPORT_KEY','CollaborationDataLoaderController','attrs','all','91924blchve','transformSelections','parse','get','_color','getConfig','_updateLocalCursor','none','_shapes','_startSheetCollabCursor','onStarting','getCurrentSelections','complete','round','undoState','setItem','handleInsertCol','_entities','body','_draw','CollaborationStatus','_injector','_collaborationController','then','requireSession','getParam','ILogService','YUUMI_URL_COL_OUT_OF_RANGE','getDocRanges','INVALID_INVITE_CODE','collabCursorState$','stringify','_initCommandExecutedListener','_dataLoaderService','red.300','M0\x200H16V16H0z','on-line-icon','roomMembers','_scene','SetWorksheetActivateCommand','SYNCED','INVITE_CODE_REQUIRED','RemoteUniscriptService','name','LOCAL_CACHE_INTERVAL_KEY','addEventListener','@univerjs/rpc','forEach','Tools','AWAITING','off-line-icon','12JRFMxI','HTTPService','doc.mutation.rich-text-editing','_docStateChangeManagerService','Vector2','search','_handleHover','yellow.400','collab-rect-range-','@univerjs/docs','resize','xlink:href','DocIMEInputManagerService','ILocalStorageService','restore','add','13047dNWgvU','transformMutation','redoState','_httpService','makeDirty','MessageType','EMAIL_HAS_BEEN_BOUND','replaceDocRanges','_registerRenderDependencies','getCoordByCell','_updateSubUnitFromURLParams','LOCAL_CACHE_INTERVAL','YUUMI_ASYNCIO_CANCELLED','_saveTaskMap','RxDisposable','YUUMI_AI_RUN_FAILED','off-line-icon_clip0_910_343','getCellPositionByOffset','useDependency','extend','_messageService','on-line-icon_clip0_910_349','disposeWithMe','subunit','SessionStatus','_toggleOnline','MOBILE_VERIFY_CODE_MISMATCH','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','combineLatest','currentColor','EffectRefRangId','font','UniverCollaborationClientPlugin','clipPath','fillStyle','substring','getRangePointData','icon','Unknown\x20user','debounceTime','_createSocketURL','IDocClipboardService','_refreshCollabCursors','data','throttleTime','runId','2035950qApVSa','_getSessionTicket','deserializeRangeWithSheet','OTHER_CLIENT_EDITING','string','CollaborationStatusDisplay','send','CollaborationSocketService','saveOfflineData','Shape','FromArray','univer-mr-2\x20univer-flex\x20univer-text-xl','getColorFromTheme','editingUnit','lineTo','getLocalCacheKey','_onRefRangeChange','closePath','_labelPosition','createElement','fillText','getCurrent','_themeService','backgroundColor','height','black','unit','disableLocalCache','touchDependencies','ITransformService','ISnapshotServerService','fromEvent','_cursorShapes','save','onPointerMove$','searchParams','handleIRemoveRow','TRANSFORM_CHANGE_OBSERVABLE_TYPE','colorChannel1','registerDependencies','SheetsSelectionsService','DOC_RANGE_TYPE','NO_OTHER_CLIENTS_EDITING','collabStatus.fetchMiss','isTransformMutationFailure','urlChange$','uni.network.url-service','prototype','_id','_collabSessionService','_range','BuiltInUIPart','Workbook','apply','entries','YUUMI_RATE_OVER_LIMIT','from','Disposable','SetTextSelectionsOperation','_getSheetObject','RefRangeService','_setupSubUnitSync','getTypeOfUnitAdded$','UNIVER_SHEET','NOT_FOUND','_notificationService','collabStatus.offline','_online','_drawRectRange','CHANGESET_REVISION_CONFILICT','displayName','_textBubble','ALREADY_EXISTS','symbol','unitID','_urlService','ThemeService','removeParam','tag','unitId','location','map','handleInsertRow','asObservable','path','OnLineIcon','_handleEvent','switchMap','@univerjs-pro/collaboration','split','MemberService','range','_docSyncEditingCollabCursorService','BrowserCollaborationSocketService','getActiveRange','Rectangle','getMemberID','_eventUnsubscribe','newValue','_send','RevisionService','svg','10xljzsE','_colorAssignService','session.collaboration-timeout','CLOSE_ROOM','univerjs-icon\x20univerjs-icon-','debounce','fromEventSubject','NOT_COLLAB','values','text','_hideTimer','blue.400','HEADER_MENU','getSheetObject','_revisionService','selection','green.600','http://www.w3.org/2000/svg','history','560945AMgjnk','children','sheetID','INVITE_CODE_HAS_BEEN_UES','_cursors','mapTo','getCollabCursors$','_transformHistoryAndStateStack','hide','_docTransformIMECacheService','_handleJoinEvent','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','LICENSE_EXPORT_SIZE_EXCEEDED','clearTimeout','_cursor','endColumn','setAlpha','storage','_roomMembers$','hovered','ticket','YUUMI_TABLE_NOT_FOUND_IN_UNIT','set','findNodePositionByCharIndex','row','NodePositionConvertToRectRange','IMessageService','APPLY_DUPLICATED','jsx','getMember','_name','_selfUnitIDs','handleInsertRangeMoveDown','0\x200\x2017\x2016','468CrStWQ','_memberService','YUUMI_UNABLE_LOAD_URL','/run/','transformRemoteChangeset','ONLINE','transformIMECache','ILocalCacheService','_univerInstanceService','UnitStatus','DocSelectionManagerService','getStateCache','Inject','className','collabStatus.notCollab','_transformPreviousActiveRange','roomMembers$','BehaviorSubject','_updateURLWithCurrentState','setShapeProps','SetDocZoomRatioOperation','getAncestorScale','dispose$','rxjs/operators','CONNECTOR_DATA_TOO_LARGE','WebBrowserSingleActiveUnitService','min','setActiveRange','PERMISSION_DENIED','saveTaskMap','MOBILE_HAS_BEEN_BOUND','collab-client.tooltip.reconnect','_docSkeletonManagerService','pushState','_sheetSkeletonManagerService','translate(.97)','onCommandExecuted','UNIVER_DOC','UPDATE_CURSOR','onPointerEnter$','_localCacheService','updateOfflineData','has','addObjects','univer-flex\x20univer-items-center','column','call','push','_refRangeService','_startDocCollabCursor','DocStateChangeManagerService','syncEditingCollabCursor','onMouseMove','setTimeout','trim','CollaborationSessionService','_onCursorUpdate','_localStorageService','source','_removeCollabCursors','width','CollaborationEvent','_handleLeaveEvent','transformMutationsWithChangeset','transformByState','_initEntityListener','includes','_drawTextRange','_initDependencies','evenodd','drawWith','_scheduleHeartbeat','_docTransformStateCacheService','addClipboardHook','_context','forwardRef','getSheetId','assign','FETCH_MISS','5HfWzWl','_onCursorDelete','...','_unitStatus','setStateCache','@univerjs/engine-formula','generateRandomId','defIds','init','OffLineIcon','registerRenderModule','49608REtKKF','registerBeforeClose','serializeRangeWithSheet','0\x200\x2016\x2016','_entityInit$','moveTo','deepClone','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','replaceState','TEXT_RANGE_LAYER_INDEX','handleIRemoveCol','_handleHeartbeatEvent','react','SheetSkeletonManagerService','NodePositionConvertToCursor','sheetId','result','white','subscribeEvent','application/json','size','type','OFFLINE','@univerjs-pro/collaboration-client','find','_clearOtherTimers','url(#off-line-icon_clip0_910_343)','ISocketService','takeUntil','UNRECOGNIZED','_doCreateSocket','error','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','m1Prime','some','CommandType','InsertRangeMoveDownCommandId','_localeService','LICENSE_MAX_UNITS_EXCEEDED','arc','getCurrentRevOfUnit','function','MUTATION','mask','INTERNAL_ERROR','OTHER_CLIENTS_EDITING','InsertRangeMoveRightCommandId','DependentOn','_collabCursorState$','max','transformStateCache','_transformUndoRedoStack','_toggleOffline','getTypeOfUnitDisposed$','COMPLETION_FINISHED','APPLY_REVISION_CONFILICT','flatMap','SOCKET_FAILED','focused$','delete','@univerjs/core','exhaustSavingTask','IRemoteInstanceService','_transformService','sessionStatus$','setUndoRedoMutationParamsCache','IUIPartsService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_collabCursorController','CONFLICT','_anchorDot','IUniverInstanceService','connectInjector','DeleteRangeMoveUpCommandId','toDisposable','UNDEFINED','href','collaboration-client-ui.config','measureText','INVALID_ARGUMENT','[CollaborationDataLoaderController]','enableLocalCache','createInstance','WebSocketService','isEditing','fill','_colorIndex','_getAnchorBounding','getValue','getUnhiddenWorksheets','_collaborationUIEventService','Optional'];_0x2c3e=function(){return _0xe1c57f;};return _0x2c3e();}var Nt={'tag':'svg','attrs':{'xmlns':_0x3b20ce(0x252),'fill':_0x3b20ce(0x403),'viewBox':_0x3b20ce(0x275),'width':_0x3b20ce(0x36c),'height':_0x3b20ce(0x36c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x3b20ce(0x22f),'attrs':{'stroke':_0x3b20ce(0x1ca),'d':_0x3b20ce(0x34d),'strokeLinecap':_0x3b20ce(0x409),'strokeLinejoin':_0x3b20ce(0x409),'strokeWidth':1.2}}]},{'tag':_0x3b20ce(0x385),'attrs':{},'children':[{'tag':_0x3b20ce(0x1ce),'attrs':{'id':_0x3b20ce(0x1c2)},'children':[{'tag':_0x3b20ce(0x22f),'attrs':{'fill':'white','d':_0x3b20ce(0x41f),'transform':_0x3b20ce(0x299)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x3b20ce(0x2c1)](function(_0x1e0f95,_0x3eff7){const _0x3ec43a=_0x3b20ce;return M[_0x3ec43a(0x1ee)](pe,Object[_0x3ec43a(0x2c3)]({},_0x1e0f95,{'id':_0x3ec43a(0x420),'ref':_0x3eff7,'icon':Nt}));});$e[_0x3b20ce(0x221)]=_0x3b20ce(0x230);function Mt(_0x35a091){const _0x5e8cfd=_0x3b20ce;switch(_0x35a091){case u[_0x5e8cfd(0x410)][_0x5e8cfd(0x2e6)]:return _0x5e8cfd(0x21d);case u[_0x5e8cfd(0x410)][_0x5e8cfd(0x315)]:return _0x5e8cfd(0x3a8);case u[_0x5e8cfd(0x410)][_0x5e8cfd(0x2c4)]:return _0x5e8cfd(0x206);case u[_0x5e8cfd(0x410)][_0x5e8cfd(0x248)]:return _0x5e8cfd(0x284);case u['CollaborationStatus'][_0x5e8cfd(0x42d)]:case u[_0x5e8cfd(0x410)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x5e8cfd(0x410)][_0x5e8cfd(0x424)]:case u[_0x5e8cfd(0x410)]['PENDING']:return _0x5e8cfd(0x3e2);}}function xe(_0xd67be6){const _0x330266=_0x3b20ce,{status$:_0x3e738e}=_0xd67be6,_0x4d40b3=O['useObservable'](_0x3e738e,u[_0x330266(0x410)][_0x330266(0x248)]),_0x176444=O['useDependency'](a[_0x330266(0x39e)]),_0x4b4f58=O[_0x330266(0x1bf)](u[_0x330266(0x2ad)]),_0x503af8=_0x4d40b3!==u[_0x330266(0x410)][_0x330266(0x2e6)],_0x463f14=_0x176444['t'](Mt(_0x4d40b3)),_0x272c9b=_0x503af8?P[_0x330266(0x270)]($e,{}):P[_0x330266(0x270)](ye,{}),_0x48495f=M[_0x330266(0x384)](()=>{const _0x27e148=_0x330266;_0x503af8||_0x4b4f58[_0x27e148(0x332)]();},[_0x503af8,_0x4b4f58]);function _0x41b1ea(){const _0x5bc39b=_0x330266;return P['jsxs'](_0x5bc39b(0x3d7),{'className':_0x5bc39b(0x2a2),'onClick':_0x48495f,'children':[P[_0x5bc39b(0x270)]('div',{'className':D[_0x5bc39b(0x34a)](_0x5bc39b(0x1e6),{'univer-text-green-500':_0x503af8,'univer-text-red-500':!_0x503af8}),'children':_0x272c9b}),P[_0x5bc39b(0x270)](_0x5bc39b(0x3d7),{'className':_0x5bc39b(0x25f),'children':_0x463f14})]});}return _0x503af8?_0x41b1ea():P['jsx'](D[_0x330266(0x3b5)],{'title':_0x176444['t'](_0x330266(0x295)),'children':_0x41b1ea()});}var Lt=Object[_0x3b20ce(0x36b)],Pt=(_0x2768ef,_0x20dc3f,_0x5e75fb,_0x21d594)=>{const _0x457e76=_0x3b20ce;for(var _0x131cd5=_0x21d594>0x1?void 0x0:_0x21d594?Lt(_0x20dc3f,_0x5e75fb):_0x20dc3f,_0x544912=_0x2768ef[_0x457e76(0x34f)]-0x1,_0x179821;_0x544912>=0x0;_0x544912--)(_0x179821=_0x2768ef[_0x544912])&&(_0x131cd5=_0x179821(_0x131cd5)||_0x131cd5);return _0x131cd5;},V=(_0x3d0092,_0x1400c9)=>(_0x342fa4,_0x199301)=>_0x1400c9(_0x342fa4,_0x199301,_0x3d0092);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3b20ce(0x214)]{constructor(_0x3c032d,_0x49a414,_0x4236ab,_0x30e11b){const _0x4f84cb=_0x3b20ce;super(),h(this,_0x4f84cb(0x3ec),new d['BehaviorSubject'](u[_0x4f84cb(0x410)][_0x4f84cb(0x248)])),(this[_0x4f84cb(0x27e)]=_0x3c032d,this[_0x4f84cb(0x411)]=_0x49a414,this[_0x4f84cb(0x412)]=_0x4236ab,this[_0x4f84cb(0x3db)]=_0x30e11b,this[_0x4f84cb(0x39a)](),this['_initStatusListener']());}[_0x3b20ce(0x3e5)](){const _0x4b3d52=_0x3b20ce;this['disposeWithMe'](this[_0x4b3d52(0x27e)][_0x4b3d52(0x30a)]['pipe'](d[_0x4b3d52(0x232)](()=>{const _0x42cbda=_0x4b3d52,_0x5cf32a=this[_0x42cbda(0x27e)][_0x42cbda(0x3b8)]();return _0x5cf32a?this[_0x42cbda(0x412)][_0x42cbda(0x3ad)](_0x5cf32a['getUnitId']()):d['of'](null);}),d[_0x4b3d52(0x232)](_0x385c65=>_0x385c65?_0x385c65[_0x4b3d52(0x3be)]:d['of'](u[_0x4b3d52(0x410)][_0x4b3d52(0x248)])))[_0x4b3d52(0x3d4)](_0x1b5c9a=>{const _0x68d7a4=_0x4b3d52;this[_0x68d7a4(0x3ec)]['next'](_0x1b5c9a);}));}[_0x3b20ce(0x39a)](){const _0x18ea06=_0x3b20ce;this['disposeWithMe'](this[_0x18ea06(0x3db)]['registerComponent'](O[_0x18ea06(0x20e)][_0x18ea06(0x24d)],()=>O[_0x18ea06(0x318)](wt({'status$':this['_status$']['asObservable']()}),this[_0x18ea06(0x411)])));}},exports[_0x3b20ce(0x371)]=Pt([V(0x0,a[_0x3b20ce(0x317)]),V(0x1,a[_0x3b20ce(0x282)](a[_0x3b20ce(0x366)])),V(0x2,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x342)])),V(0x3,O[_0x3b20ce(0x312)])],exports['DesktopCollaborationStatusDisplayController']);function wt(_0x5a41f5){const {status$:_0x469dbd}=_0x5a41f5;return function(){const _0xa028ff=_0x3f21;return P[_0xa028ff(0x270)](xe,{'status$':_0x469dbd});};}var At=Object[_0x3b20ce(0x36b)],yt=(_0x2d7ec8,_0x445288,_0x520758,_0x513647)=>{for(var _0x514a32=_0x513647>0x1?void 0x0:_0x513647?At(_0x445288,_0x520758):_0x445288,_0x255b98=_0x2d7ec8['length']-0x1,_0x43a547;_0x255b98>=0x0;_0x255b98--)(_0x43a547=_0x2d7ec8[_0x255b98])&&(_0x514a32=_0x43a547(_0x514a32)||_0x514a32);return _0x514a32;},y=(_0x5b1e4b,_0x16d2e8)=>(_0x23b80c,_0x2f0971)=>_0x16d2e8(_0x23b80c,_0x2f0971,_0x5b1e4b);let q=class extends a['Disposable']{constructor(_0x1bfb81,_0x5b6990,_0x37fbb1,_0x5c493f,_0x56fafa,_0x1e7b75){const _0x2ffbd7=_0x3b20ce;super(),this[_0x2ffbd7(0x35e)]=_0x1bfb81,this['_localCacheService']=_0x5b6990,this[_0x2ffbd7(0x32a)]=_0x37fbb1,this[_0x2ffbd7(0x1c1)]=_0x5c493f,this[_0x2ffbd7(0x21c)]=_0x56fafa,this[_0x2ffbd7(0x2f5)]=_0x1e7b75,this[_0x2ffbd7(0x386)](),this['_initEvent']();}[_0x3b20ce(0x386)](){const _0x4c2139=_0x3b20ce;this['disposeWithMe'](this[_0x4c2139(0x35e)][_0x4c2139(0x2d1)](()=>{const _0x239f86=_0x4c2139;if(this[_0x239f86(0x29e)][_0x239f86(0x293)][_0x239f86(0x2e4)])return this[_0x239f86(0x2f5)]['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x1df044=_0x3b20ce;this[_0x1df044(0x1c3)](this[_0x1df044(0x32a)][_0x1df044(0x3a3)][_0x1df044(0x3d4)](_0x55f6a0=>{const _0x3421d5=_0x1df044;_0x55f6a0['id']===u[_0x3421d5(0x36e)][_0x3421d5(0x1de)]&&this[_0x3421d5(0x1c1)][_0x3421d5(0x3b9)]({'type':D[_0x3421d5(0x444)][_0x3421d5(0x39f)],'content':this[_0x3421d5(0x2f5)]['t']('collaboration.single-unit.warning')}),_0x55f6a0['id']===u[_0x3421d5(0x36e)][_0x3421d5(0x244)]&&this[_0x3421d5(0x1c1)]['show']({'type':D[_0x3421d5(0x444)][_0x3421d5(0x39f)],'content':this[_0x3421d5(0x2f5)]['t'](_0x3421d5(0x3d3))}),_0x55f6a0['id']===u['CollaborationUIEventId'][_0x3421d5(0x292)]&&this['_notificationService'][_0x3421d5(0x3b9)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x3421d5(0x2f5)]['t'](_0x3421d5(0x358)),'type':_0x3421d5(0x2ef),'duration':0x0}),_0x55f6a0['id']===u[_0x3421d5(0x36e)][_0x3421d5(0x315)]&&this[_0x3421d5(0x1c1)][_0x3421d5(0x3b9)]({'type':D[_0x3421d5(0x444)][_0x3421d5(0x370)],'content':this[_0x3421d5(0x2f5)]['t'](_0x3421d5(0x3d3))+'('+_0x55f6a0[_0x3421d5(0x1d8)]+')'}),_0x55f6a0['id']===u['CollaborationUIEventId'][_0x3421d5(0x3c8)]&&this[_0x3421d5(0x1c1)]['show']({'type':D['MessageType'][_0x3421d5(0x39f)],'content':this[_0x3421d5(0x2f5)]['t'](_0x55f6a0[_0x3421d5(0x1d8)]||'')}),_0x55f6a0['id']===u[_0x3421d5(0x36e)]['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':D[_0x3421d5(0x444)][_0x3421d5(0x39f)],'content':this[_0x3421d5(0x2f5)]['t']('session.will-retry')}),_0x55f6a0['id']===u[_0x3421d5(0x36e)][_0x3421d5(0x309)]&&this['_messageService'][_0x3421d5(0x3b9)]({'type':D[_0x3421d5(0x444)][_0x3421d5(0x370)],'content':this['_localeService']['t']('session.connection-failed')}),_0x55f6a0['id']===u[_0x3421d5(0x36e)][_0x3421d5(0x3cf)]&&this[_0x3421d5(0x1c1)][_0x3421d5(0x3b9)]({'type':D[_0x3421d5(0x444)][_0x3421d5(0x370)],'content':this[_0x3421d5(0x2f5)]['t'](_0x3421d5(0x243))});}));}};q=yt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x3b20ce(0x27d)]),y(0x2,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x374)])),y(0x3,O[_0x3b20ce(0x26e)]),y(0x4,O[_0x3b20ce(0x3e7)]),y(0x5,a['Inject'](a[_0x3b20ce(0x39e)]))],q);const $t=_0x3b20ce(0x31d),Ue={},Ee=a[_0x3b20ce(0x3e0)](_0x3b20ce(0x209));var xt=Object[_0x3b20ce(0x36b)],Bt=(_0x1883ba,_0x457906,_0x30560c,_0x39b5ad)=>{const _0x381569=_0x3b20ce;for(var _0xba04c8=_0x39b5ad>0x1?void 0x0:_0x39b5ad?xt(_0x457906,_0x30560c):_0x457906,_0x557eea=_0x1883ba[_0x381569(0x34f)]-0x1,_0x3340d2;_0x557eea>=0x0;_0x557eea--)(_0x3340d2=_0x1883ba[_0x557eea])&&(_0xba04c8=_0x3340d2(_0xba04c8)||_0xba04c8);return _0xba04c8;},F=(_0x58c2e8,_0xe78269)=>(_0x163013,_0x3e9245)=>_0xe78269(_0x163013,_0x3e9245,_0x58c2e8);exports[_0x3b20ce(0x3f9)]=class extends a[_0x3b20ce(0x1bb)]{constructor(_0x19545f,_0x4a890c,_0x3eba67,_0x228898,_0x495774){const _0xb53140=_0x3b20ce;super(),this[_0xb53140(0x226)]=_0x19545f,this[_0xb53140(0x38c)]=_0x4a890c,this[_0xb53140(0x372)]=_0x3eba67,this[_0xb53140(0x41d)]=_0x228898,_0x495774?_0x495774==null||_0x495774['whenReady']()[_0xb53140(0x413)](()=>this[_0xb53140(0x3e1)]()):(this[_0xb53140(0x38c)][_0xb53140(0x3d8)](_0xb53140(0x320),_0xb53140(0x2d7)),this[_0xb53140(0x3e1)]());}async['_init'](){const _0x26543e=_0x3b20ce,_0x57f20d=this['_urlService'][_0x26543e(0x415)](_0x26543e(0x1f5)),_0x9c83bb=this['_urlService'][_0x26543e(0x415)](_0x26543e(0x2e5)),_0x1bd7f7=this['_urlService']['getParam']('subunit');if(!_0x57f20d||!_0x9c83bb){this[_0x26543e(0x38c)][_0x26543e(0x3d8)](_0x26543e(0x320),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x9d2d48=await this[_0x26543e(0x41d)][_0x26543e(0x399)](_0x57f20d,Number(_0x9c83bb),_0x1bd7f7);_0x9d2d48&&_0x9d2d48 instanceof a[_0x26543e(0x20f)]&&this[_0x26543e(0x218)](_0x9d2d48);}async[_0x3b20ce(0x218)](_0x4e6fe2){const _0x1b459f=_0x3b20ce;await this[_0x1b459f(0x1b7)](_0x4e6fe2),_0x4e6fe2['activeSheet$'][_0x1b459f(0x32f)](d['takeUntil'](this[_0x1b459f(0x28c)]))[_0x1b459f(0x3d4)](_0x31ae3e=>{const _0x3374bf=_0x1b459f;_0x31ae3e&&this[_0x3374bf(0x288)](_0x31ae3e);}),this[_0x1b459f(0x226)]['urlChange$'][_0x1b459f(0x32f)](d[_0x1b459f(0x2ec)](this['dispose$']))[_0x1b459f(0x3d4)](()=>this[_0x1b459f(0x1b7)](_0x4e6fe2));}[_0x3b20ce(0x288)](_0x7245f4,_0x285dd6=!0x1){const _0x73591=_0x3b20ce,_0x21b4f5=this[_0x73591(0x226)][_0x73591(0x415)]('subunit');_0x7245f4[_0x73591(0x2c2)]()!==_0x21b4f5&&this['_urlService'][_0x73591(0x377)](_0x73591(0x1c4),_0x7245f4[_0x73591(0x2c2)](),_0x285dd6);}async['_updateSubUnitFromURLParams'](_0xa75907){const _0x5d9ce4=_0x3b20ce;var _0x30e7fd;const _0x1d1f08=this[_0x5d9ce4(0x226)][_0x5d9ce4(0x415)]('subunit');if(!_0x1d1f08||!_0xa75907[_0x5d9ce4(0x32d)](_0x1d1f08)){const _0x5b575d=_0xa75907[_0x5d9ce4(0x329)]()[0x0],_0x371855=_0xa75907[_0x5d9ce4(0x32d)](_0x5b575d);if(!_0x371855)return;this['_updateURLWithCurrentState'](_0x371855,!0x0),await this['_commandService'][_0x5d9ce4(0x381)](g[_0x5d9ce4(0x423)]['id'],{'unitId':_0xa75907['getUnitId'](),'subUnitId':_0x5b575d});return;}((_0x30e7fd=_0xa75907[_0x5d9ce4(0x3f2)]())==null?void 0x0:_0x30e7fd[_0x5d9ce4(0x2c2)]())!==_0x1d1f08&&await this[_0x5d9ce4(0x372)]['executeCommand'](g[_0x5d9ce4(0x423)]['id'],{'unitId':_0xa75907[_0x5d9ce4(0x35f)](),'subUnitId':_0x1d1f08});}},exports[_0x3b20ce(0x3f9)]=Bt([F(0x0,Ee),F(0x1,a[_0x3b20ce(0x416)]),F(0x2,a[_0x3b20ce(0x340)]),F(0x3,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x3bf)])),F(0x4,a[_0x3b20ce(0x32b)](Ke[_0x3b20ce(0x30e)]))],exports[_0x3b20ce(0x3f9)]);var jt=Object[_0x3b20ce(0x36b)],kt=(_0xb90c8f,_0x5f4fac,_0x5a2319,_0x5bce52)=>{const _0x20dfaf=_0x3b20ce;for(var _0x406d40=_0x5bce52>0x1?void 0x0:_0x5bce52?jt(_0x5f4fac,_0x5a2319):_0x5f4fac,_0xc482a6=_0xb90c8f[_0x20dfaf(0x34f)]-0x1,_0x210482;_0xc482a6>=0x0;_0xc482a6--)(_0x210482=_0xb90c8f[_0xc482a6])&&(_0x406d40=_0x210482(_0x406d40)||_0x406d40);return _0x406d40;},ce=(_0x5b3241,_0xa265a5)=>(_0x3605e2,_0x5ea329)=>_0xa265a5(_0x3605e2,_0x5ea329,_0x5b3241);let z=class{constructor(_0x2188fb,_0x566461,_0x39ccfc){const _0x39a908=_0x3b20ce;this[_0x39a908(0x411)]=_0x2188fb,this[_0x39a908(0x30f)]=_0x566461,this[_0x39a908(0x34b)]=_0x39ccfc;}['transformIMECache'](_0x4d087){const _0x5092ba=_0x3b20ce;this[_0x5092ba(0x303)](_0x4d087),this['_transformPreviousActiveRange'](_0x4d087);}[_0x3b20ce(0x27a)](_0x4ac43a){const _0x325309=_0x3b20ce,{unitID:_0x2808c7}=_0x4ac43a,_0x3a8afc=this[_0x325309(0x34b)][_0x325309(0x3e8)](_0x2808c7)[_0x325309(0x344)](E[_0x325309(0x43b)]),{redoCache:_0xcb71f}=_0x3a8afc[_0x325309(0x352)]();if(_0xcb71f[_0x325309(0x34f)]===0x0)return _0x4ac43a;let _0x15a6e6=a[_0x325309(0x42c)][_0x325309(0x2d6)](_0x4ac43a[_0x325309(0x36f)][0x0]);for(let _0x202a94=0x0;_0x202a94<_0xcb71f[_0x325309(0x34f)];_0x202a94++){const _0x56de04={'id':_0x325309(0x431),'params':{..._0xcb71f[_0x202a94]}},_0x15dec1=this['_transformService']['transformMutation'](_0x15a6e6,_0x56de04,!0x1);if(m['isTransformMutationFailure'](_0x15dec1))throw _0x15dec1[_0x325309(0x2ef)];_0x15a6e6=_0x15dec1[_0x325309(0x2f1)];}return{...a['Tools'][_0x325309(0x2d6)](_0x4ac43a),'mutations':[_0x15a6e6]};}['_transformUndoRedoStack'](_0xd2a580){const _0x1c244c=_0x3b20ce,{unitID:_0x40fd37}=_0xd2a580,_0x863436=this[_0x1c244c(0x34b)]['getRenderById'](_0x40fd37)[_0x1c244c(0x344)](E[_0x1c244c(0x43b)]),{undoCache:_0x3ba013,redoCache:_0x101941}=_0x863436['getUndoRedoMutationParamsCache']();if(_0x3ba013[_0x1c244c(0x34f)]===0x0||_0x101941['length']===0x0)return;const _0x17f70b=[],_0x4c3408=[];let _0x1456a0=a[_0x1c244c(0x42c)][_0x1c244c(0x2d6)](_0xd2a580['mutations'][0x0]),_0x2d3a22=a[_0x1c244c(0x42c)][_0x1c244c(0x2d6)](_0xd2a580[_0x1c244c(0x36f)][0x0]);for(let _0x2450c2=_0x3ba013[_0x1c244c(0x34f)]-0x1;_0x2450c2>=0x0;_0x2450c2--){const _0xa59284={'id':_0x1c244c(0x431),'params':{..._0x3ba013[_0x2450c2]}},_0x54fba2={'id':'doc.mutation.rich-text-editing','params':{..._0x101941[_0x2450c2]}},_0x1037c0=this[_0x1c244c(0x30f)][_0x1c244c(0x440)](_0x1456a0,_0xa59284,!0x1),_0xd8f365=this['_transformService'][_0x1c244c(0x440)](_0x2d3a22,_0x54fba2,!0x1);if(m['isTransformMutationFailure'](_0x1037c0))throw _0x1037c0[_0x1c244c(0x2ef)];if(m['isTransformMutationFailure'](_0xd8f365))throw _0xd8f365[_0x1c244c(0x2ef)];_0x17f70b['unshift'](_0x1037c0[_0x1c244c(0x379)][_0x1c244c(0x346)]),_0x4c3408['unshift'](_0xd8f365['m2Prime'][_0x1c244c(0x346)]),_0x1456a0=_0x1037c0['m1Prime'],_0x2d3a22=_0xd8f365[_0x1c244c(0x2f1)];}_0x863436[_0x1c244c(0x311)]({'undoCache':_0x17f70b,'redoCache':_0x4c3408});}[_0x3b20ce(0x285)](_0x3aebb9){const _0x4c6a1d=_0x3b20ce,{unitID:_0x436ad3}=_0x3aebb9,_0x30047f=this[_0x4c6a1d(0x34b)][_0x4c6a1d(0x3e8)](_0x436ad3)[_0x4c6a1d(0x344)](E[_0x4c6a1d(0x43b)]),_0xce0513=_0x30047f[_0x4c6a1d(0x239)]();if(_0xce0513==null)return;const _0xd661b7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3aebb9[_0x4c6a1d(0x225)],'actions':null,'textRanges':[_0xce0513]}}],_0x60c538=this[_0x4c6a1d(0x30f)][_0x4c6a1d(0x2b5)](_0x3aebb9,_0xd661b7);if(!m[_0x4c6a1d(0x3e4)](_0x60c538))throw _0x60c538[_0x4c6a1d(0x2ef)];const _0x4acdb9=_0x60c538[_0x4c6a1d(0x379)][0x0][_0x4c6a1d(0x346)]['textRanges'];Array[_0x4c6a1d(0x3ca)](_0x4acdb9)&&_0x4acdb9[_0x4c6a1d(0x34f)]&&_0x30047f[_0x4c6a1d(0x291)](_0x4acdb9[0x0]);}};z=kt([ce(0x0,a[_0x3b20ce(0x282)](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x3b20ce(0x33f)])],z);var Ft=Object[_0x3b20ce(0x36b)],Ht=(_0x56e654,_0x496148,_0x134e37,_0x4fe19d)=>{const _0x118092=_0x3b20ce;for(var _0x57ec70=_0x4fe19d>0x1?void 0x0:_0x4fe19d?Ft(_0x496148,_0x134e37):_0x496148,_0x453cd1=_0x56e654[_0x118092(0x34f)]-0x1,_0x582c86;_0x453cd1>=0x0;_0x453cd1--)(_0x582c86=_0x56e654[_0x453cd1])&&(_0x57ec70=_0x582c86(_0x57ec70)||_0x57ec70);return _0x57ec70;},le=(_0xaab786,_0xfde233)=>(_0x326a67,_0x4066d8)=>_0xfde233(_0x326a67,_0x4066d8,_0xaab786);let J=class{constructor(_0x430ccc,_0x37d7e7,_0x2f04d0){const _0x526470=_0x3b20ce;this[_0x526470(0x411)]=_0x430ccc,this['_transformService']=_0x37d7e7,this[_0x526470(0x432)]=_0x2f04d0;}[_0x3b20ce(0x302)](_0x509378){const _0xaa3e91=_0x3b20ce;this[_0xaa3e91(0x25b)](_0x509378);}[_0x3b20ce(0x27a)](_0x3485da){const _0x573d8d=_0x3b20ce,{unitID:_0x14740c}=_0x3485da,{collaboration:_0x1bd0f6}=this[_0x573d8d(0x432)]['getStateCache'](_0x14740c);if(_0x1bd0f6['length']===0x0)return _0x3485da;let _0x824a1f=a['Tools'][_0x573d8d(0x2d6)](_0x3485da[_0x573d8d(0x36f)][0x0]);for(let _0x26e73a=0x0;_0x26e73a<_0x1bd0f6['length'];_0x26e73a++){const _0x1a27c4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1bd0f6[_0x26e73a]['unitId'],..._0x1bd0f6[_0x26e73a][_0x573d8d(0x441)]}},_0x18b0a1=this[_0x573d8d(0x30f)][_0x573d8d(0x440)](_0x824a1f,_0x1a27c4,!0x1);if(m[_0x573d8d(0x207)](_0x18b0a1))throw _0x18b0a1[_0x573d8d(0x2ef)];_0x824a1f=_0x18b0a1['m1Prime'];}return{...a[_0x573d8d(0x42c)]['deepClone'](_0x3485da),'mutations':[_0x824a1f]};}[_0x3b20ce(0x25b)](_0x31b78f){const _0x418259=_0x3b20ce,{unitID:_0x1c7dc6}=_0x31b78f,{history:_0x42a145,collaboration:_0x4e10f8}=this[_0x418259(0x432)][_0x418259(0x281)](_0x1c7dc6);if(_0x42a145[_0x418259(0x34f)]===0x0&&_0x4e10f8['length']===0x0)return;const _0x464190=[],_0x610abd=[];let _0x473480=a[_0x418259(0x42c)][_0x418259(0x2d6)](_0x31b78f[_0x418259(0x36f)][0x0]),_0x28f667=a[_0x418259(0x42c)][_0x418259(0x2d6)](_0x31b78f['mutations'][0x0]);for(let _0xe4310f=_0x42a145['length']-0x1;_0xe4310f>=0x0;_0xe4310f--){const _0x4e16de={'id':_0x418259(0x431),'params':{'unitId':_0x42a145[_0xe4310f][_0x418259(0x22a)],..._0x42a145[_0xe4310f][_0x418259(0x40a)]}},_0x13176e={'id':_0x418259(0x431),'params':{'unitId':_0x42a145[_0xe4310f]['unitId'],..._0x42a145[_0xe4310f][_0x418259(0x441)]}},_0xbef631=this[_0x418259(0x30f)]['transformMutation'](_0x473480,_0x4e16de,!0x1),_0x72b80e=this['_transformService'][_0x418259(0x440)](_0x28f667,_0x13176e,!0x1);if(m['isTransformMutationFailure'](_0xbef631))throw _0xbef631[_0x418259(0x2ef)];if(m['isTransformMutationFailure'](_0x72b80e))throw _0x72b80e[_0x418259(0x2ef)];_0x464190['unshift']({..._0x42a145[_0xe4310f],'undoState':_0xbef631['m2Prime'][_0x418259(0x346)],'redoState':_0x72b80e[_0x418259(0x379)][_0x418259(0x346)]}),_0x473480=_0xbef631[_0x418259(0x2f1)],_0x28f667=_0x72b80e['m1Prime'];}_0x473480=a['Tools']['deepClone'](_0x31b78f[_0x418259(0x36f)][0x0]),_0x28f667=a['Tools'][_0x418259(0x2d6)](_0x31b78f[_0x418259(0x36f)][0x0]);for(let _0x35185f=_0x4e10f8[_0x418259(0x34f)]-0x1;_0x35185f>=0x0;_0x35185f--){const _0x2ad7c7={'id':_0x418259(0x431),'params':{'unitId':_0x4e10f8[_0x35185f][_0x418259(0x22a)],..._0x4e10f8[_0x35185f][_0x418259(0x40a)]}},_0x3cd54f={'id':_0x418259(0x431),'params':{'unitId':_0x4e10f8[_0x35185f][_0x418259(0x22a)],..._0x4e10f8[_0x35185f][_0x418259(0x441)]}},_0x49d28e=this['_transformService']['transformMutation'](_0x473480,_0x2ad7c7,!0x1),_0x18d3f7=this[_0x418259(0x30f)]['transformMutation'](_0x28f667,_0x3cd54f,!0x1);if(m[_0x418259(0x207)](_0x49d28e))throw _0x49d28e[_0x418259(0x2ef)];if(m[_0x418259(0x207)](_0x18d3f7))throw _0x18d3f7[_0x418259(0x2ef)];_0x610abd['unshift']({..._0x4e10f8[_0x35185f],'undoState':_0x49d28e[_0x418259(0x379)][_0x418259(0x346)],'redoState':_0x18d3f7[_0x418259(0x379)]['params']}),_0x473480=_0x49d28e[_0x418259(0x2f1)],_0x28f667=_0x18d3f7[_0x418259(0x2f1)];}this[_0x418259(0x432)][_0x418259(0x2c9)](_0x1c7dc6,{'history':_0x464190,'collaboration':_0x610abd});}};J=Ht([le(0x0,a['Inject'](a[_0x3b20ce(0x366)])),le(0x1,m[_0x3b20ce(0x1f8)]),le(0x2,a[_0x3b20ce(0x282)](E[_0x3b20ce(0x2a8)]))],J);var Yt=Object[_0x3b20ce(0x36b)],Wt=(_0x250f28,_0xdb6cfc,_0x1d0cf3,_0x318021)=>{const _0x2f55ba=_0x3b20ce;for(var _0x1ebd4b=_0x318021>0x1?void 0x0:_0x318021?Yt(_0xdb6cfc,_0x1d0cf3):_0xdb6cfc,_0x7eff2=_0x250f28[_0x2f55ba(0x34f)]-0x1,_0x43b0ae;_0x7eff2>=0x0;_0x7eff2--)(_0x43b0ae=_0x250f28[_0x7eff2])&&(_0x1ebd4b=_0x43b0ae(_0x1ebd4b)||_0x1ebd4b);return _0x1ebd4b;},Ne=(_0x172e2e,_0x560696)=>(_0x527df7,_0x5dbb55)=>_0x560696(_0x527df7,_0x5dbb55,_0x172e2e);let Z=class{constructor(_0x520eec,_0xb3d8a0){const _0x538ae0=_0x3b20ce;this['_injector']=_0x520eec,this[_0x538ae0(0x30f)]=_0xb3d8a0;}[_0x3b20ce(0x3fd)](_0x57fb8c){const _0x20769f=_0x3b20ce;var _0x2cafd5;const _0x17ee55=this[_0x20769f(0x411)]['get'](Y[_0x20769f(0x280)]),_0x4961c6=(_0x2cafd5=_0x17ee55[_0x20769f(0x418)]())!=null?_0x2cafd5:[];if(_0x4961c6[_0x20769f(0x34f)]===0x0)return;const _0x70a271=_0x57fb8c[_0x20769f(0x225)],_0x2af479=[{'id':_0x20769f(0x431),'params':{'unitId':_0x70a271,'actions':null,'textRanges':_0x4961c6}}],_0x1e0592=this['_transformService']['transformMutationsWithChangeset'](_0x57fb8c,_0x2af479);if(!m['isTransformMutationsWithChangesetSuccess'](_0x1e0592))throw _0x1e0592[_0x20769f(0x2ef)];const _0x2e4519=_0x1e0592[_0x20769f(0x379)][0x0]['params']['textRanges'];Array[_0x20769f(0x3ca)](_0x2e4519)&&_0x2e4519[_0x20769f(0x34f)]&&_0x17ee55[_0x20769f(0x446)](_0x2e4519,{'unitId':_0x70a271,'subUnitId':_0x70a271},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a['Injector'])),Ne(0x1,m[_0x3b20ce(0x1f8)])],Z);var Vt=Object[_0x3b20ce(0x36b)],Xt=(_0x2aa6a2,_0x390ea3,_0x2723bd,_0x3ad7c3)=>{const _0x1d8909=_0x3b20ce;for(var _0x1f839e=_0x3ad7c3>0x1?void 0x0:_0x3ad7c3?Vt(_0x390ea3,_0x2723bd):_0x390ea3,_0xe493=_0x2aa6a2[_0x1d8909(0x34f)]-0x1,_0x41bea0;_0xe493>=0x0;_0xe493--)(_0x41bea0=_0x2aa6a2[_0xe493])&&(_0x1f839e=_0x41bea0(_0x1f839e)||_0x1f839e);return _0x1f839e;},N=(_0x16a50b,_0x50707f)=>(_0x25ee37,_0x5a48d7)=>_0x50707f(_0x25ee37,_0x5a48d7,_0x16a50b);let Q=class extends a[_0x3b20ce(0x214)]{constructor(_0x5504ee,_0x31f63c,_0x53e19f,_0x3597c4,_0x46581a,_0x299918,_0x1a80e3,_0x10731a){const _0x57d0b1=_0x3b20ce;super(),h(this,_0x57d0b1(0x3ec),new d[(_0x57d0b1(0x287))](u[_0x57d0b1(0x410)][_0x57d0b1(0x248)])),(this[_0x57d0b1(0x432)]=_0x5504ee,this['_collaborationController']=_0x31f63c,this[_0x57d0b1(0x25d)]=_0x53e19f,this[_0x57d0b1(0x2be)]=_0x3597c4,this[_0x57d0b1(0x3f5)]=_0x46581a,this[_0x57d0b1(0x237)]=_0x299918,this[_0x57d0b1(0x1c1)]=_0x1a80e3,this[_0x57d0b1(0x2f5)]=_0x10731a,this[_0x57d0b1(0x2b7)]());}[_0x3b20ce(0x2b7)](){const _0x46b2a5=_0x3b20ce;this[_0x46b2a5(0x1c3)](this[_0x46b2a5(0x412)][_0x46b2a5(0x36d)][_0x46b2a5(0x3d4)](_0x4d9b98=>{const _0x381729=_0x46b2a5,_0x4487cf=this['_docStateChangeManagerService'][_0x381729(0x3e6)][_0x381729(0x3d4)](_0x1803df=>{const _0x2bcdfd=_0x381729;if(_0x1803df==null)return;const {unitId:_0x46f5f9,redoState:_0x2b3442,commandId:_0xf413e5}=_0x1803df;if(_0x46f5f9!==_0x4d9b98[_0x2bcdfd(0x225)])return;const _0xb521d7={'id':_0xf413e5,'type':a[_0x2bcdfd(0x2f3)][_0x2bcdfd(0x2fa)],'params':{'unitId':_0x46f5f9,'actions':_0x2b3442[_0x2bcdfd(0x357)],'textRanges':null}};_0x4d9b98['onLocalMutation'](_0xb521d7);});if(_0x4d9b98[_0x381729(0x1c3)](_0x4487cf),_0x4d9b98 instanceof u['DocCollaborationEntity']){const _0x4272a6={'onTransformIME':_0x792b03=>this[_0x381729(0x25d)][_0x381729(0x27c)](_0x792b03),'onTransformState':_0x10cd60=>this[_0x381729(0x2be)]['transformStateCache'](_0x10cd60),'onTransformSelections':_0x1463ec=>this['_docTransformSelectionsService']['transformSelections'](_0x1463ec),'onSyncEditingCollabCursor':_0x12da58=>this[_0x381729(0x237)]['syncEditingCollabCursor'](_0x12da58),'onTransformRemoteChangesetByIMECache':_0x3b6ee6=>this[_0x381729(0x25d)][_0x381729(0x27a)](_0x3b6ee6),'onTransformRemoteChangesetByStateCache':_0x133848=>this[_0x381729(0x2be)][_0x381729(0x27a)](_0x133848)};_0x4d9b98['addHandlerCallback'](_0x4272a6);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x3b20ce(0x2a8)])),N(0x1,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x342)])),N(0x2,a[_0x3b20ce(0x282)](z)),N(0x3,a[_0x3b20ce(0x282)](J)),N(0x4,a[_0x3b20ce(0x282)](Z)),N(0x5,a[_0x3b20ce(0x282)](Ce)),N(0x6,O['IMessageService']),N(0x7,a[_0x3b20ce(0x282)](a['LocaleService']))],Q);var Gt=Object[_0x3b20ce(0x36b)],Kt=(_0x56359f,_0x5f5469,_0x7545b7,_0xb2e151)=>{for(var _0x78cec2=_0xb2e151>0x1?void 0x0:_0xb2e151?Gt(_0x5f5469,_0x7545b7):_0x5f5469,_0x18b89d=_0x56359f['length']-0x1,_0x404b68;_0x18b89d>=0x0;_0x18b89d--)(_0x404b68=_0x56359f[_0x18b89d])&&(_0x78cec2=_0x404b68(_0x78cec2)||_0x78cec2);return _0x78cec2;},_e=(_0x588229,_0x5f0a42)=>(_0x2300c0,_0x5c4080)=>_0x5f0a42(_0x2300c0,_0x5c4080,_0x588229);let ge=class extends a[_0x3b20ce(0x214)]{constructor(_0x157979,_0x1164cd,_0x16694b){const _0x33d2d5=_0x3b20ce;super(),h(this,_0x33d2d5(0x3cb),new Map()),h(this,_0x33d2d5(0x1ba),new Map()),h(this,_0x33d2d5(0x37b),!0x1),(this['_configService']=_0x157979,this[_0x33d2d5(0x2af)]=_0x1164cd,this[_0x33d2d5(0x24f)]=_0x16694b);}[_0x3b20ce(0x1f6)](){this['_disabled']=!0x0;}[_0x3b20ce(0x321)](){this['_disabled']=!0x1;}get[_0x3b20ce(0x293)](){const _0x6b42c1=_0x3b20ce;return this[_0x6b42c1(0x1ba)];}[_0x3b20ce(0x392)](){const _0x3dda2f=_0x3b20ce;this[_0x3dda2f(0x30d)]()[_0x3dda2f(0x413)](()=>super[_0x3dda2f(0x392)]());}async[_0x3b20ce(0x3b0)](_0x222aec){const _0x5f206b=_0x3b20ce;return this[_0x5f206b(0x37b)]?null:this[_0x5f206b(0x2af)][_0x5f206b(0x3ab)](u[_0x5f206b(0x1ea)](_0x222aec));}async[_0x3b20ce(0x1e3)](_0x109e54,_0x20a43c){const _0x4ffe6e=_0x3b20ce;return!!this['_localStorageService'][_0x4ffe6e(0x40b)](_0x109e54,_0x20a43c);}[_0x3b20ce(0x29f)](_0x2a8d8e,_0x281784,_0x4e0712,_0x5f2360){const _0x3d7e4a=_0x3b20ce,_0x26a321=this[_0x3d7e4a(0x24f)][_0x3d7e4a(0x2f8)](_0x2a8d8e);this[_0x3d7e4a(0x3cb)]['set'](_0x2a8d8e,{'unitID':_0x2a8d8e,'type':_0x281784,'awaitingChangeset':_0x4e0712,'mutations':_0x5f2360,'rev':_0x26a321}),this[_0x3d7e4a(0x1ba)][_0x3d7e4a(0x2a0)](_0x2a8d8e)||this[_0x3d7e4a(0x3af)](_0x2a8d8e);}['_scheduleSaving'](_0x12c825){const _0x156e71=_0x3b20ce,_0x4df92e=this['_getSaveTimeout']();_0x4df92e===0x0?this[_0x156e71(0x3c6)](_0x12c825):this[_0x156e71(0x1ba)][_0x156e71(0x26a)](_0x12c825,setTimeout(()=>this[_0x156e71(0x3c6)](_0x12c825),_0x4df92e));}[_0x3b20ce(0x3a9)](){const _0xa0f038=_0x3b20ce;var _0x573115;return(_0x573115=this[_0xa0f038(0x396)][_0xa0f038(0x401)](u[_0xa0f038(0x428)]))!=null?_0x573115:u[_0xa0f038(0x1b8)];}[_0x3b20ce(0x3c6)](_0x6cab62){const _0x38c045=_0x3b20ce,_0x584876=this[_0x38c045(0x1ba)][_0x38c045(0x3ff)](_0x6cab62);return _0x584876!==void 0x0&&window['clearTimeout'](_0x584876),this['_localStorageService'][_0x38c045(0x40b)](u[_0x38c045(0x1ea)](_0x6cab62),this[_0x38c045(0x3cb)]['get'](_0x6cab62))[_0x38c045(0x413)](()=>this['_saveTaskMap'][_0x38c045(0x30b)](_0x6cab62));}async['exhaustSavingTask'](){const _0x8f424=_0x3b20ce,_0x4fb204=[];this[_0x8f424(0x1ba)]['forEach']((_0x3b9b04,_0x2e674b)=>{const _0x3c9848=_0x8f424;window[_0x3c9848(0x261)](_0x3b9b04),_0x4fb204[_0x3c9848(0x2a5)](this[_0x3c9848(0x3c6)](_0x2e674b)['then'](()=>{this['_saveTaskMap']['delete'](_0x2e674b);}));}),await Promise[_0x8f424(0x3fb)](_0x4fb204);}};ge=Kt([_e(0x0,a[_0x3b20ce(0x341)]),_e(0x1,a[_0x3b20ce(0x43c)]),_e(0x2,a[_0x3b20ce(0x282)](m[_0x3b20ce(0x23f)]))],ge);class Be extends a['RxDisposable']{constructor(){const _0x10893f=_0x3b20ce;super(),h(this,'urlChange$'),this[_0x10893f(0x208)]=d[_0x10893f(0x1fa)](window,'popstate')[_0x10893f(0x32f)](d['takeUntil'](this[_0x10893f(0x28c)]),d['shareReplay'](0x1),d[_0x10893f(0x259)](void 0x0));}['setParam'](_0x138f1d,_0x1e8843,_0x444b95=!0x1){const _0x52c0bc=_0x3b20ce,_0x3cc7f3=new URL(window[_0x52c0bc(0x22b)][_0x52c0bc(0x31c)]);_0x3cc7f3['searchParams']['set'](_0x138f1d,_0x1e8843),_0x444b95?window[_0x52c0bc(0x253)][_0x52c0bc(0x2d8)]('','',_0x3cc7f3[_0x52c0bc(0x3e9)]()):window[_0x52c0bc(0x253)]['pushState']('','',_0x3cc7f3[_0x52c0bc(0x3e9)]());}[_0x3b20ce(0x228)](_0x2c56dc,_0x449bf5=!0x1){const _0x4b8882=_0x3b20ce,_0x2892d6=new URL(window[_0x4b8882(0x22b)]['href']);_0x2892d6['searchParams'][_0x4b8882(0x30b)](_0x2c56dc),_0x449bf5?window[_0x4b8882(0x253)]['replaceState']('','',_0x2892d6[_0x4b8882(0x3e9)]()):window[_0x4b8882(0x253)][_0x4b8882(0x297)]('','',_0x2892d6[_0x4b8882(0x3e9)]());}['getParam'](_0x930f09){const _0x3231d6=_0x3b20ce;var _0x24b606;return(_0x24b606=new URL(window[_0x3231d6(0x22b)]['href'])[_0x3231d6(0x1fe)]['get'](_0x930f09))!=null?_0x24b606:void 0x0;}}var qt=Object[_0x3b20ce(0x353)],zt=Object[_0x3b20ce(0x36b)],Jt=(_0x47ec26,_0x175c0d,_0x132167)=>_0x175c0d in _0x47ec26?qt(_0x47ec26,_0x175c0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x132167}):_0x47ec26[_0x175c0d]=_0x132167,Zt=(_0x230ce5,_0x21613a,_0x21e66d,_0x4ca3bd)=>{const _0x3a2223=_0x3b20ce;for(var _0x2af739=_0x4ca3bd>0x1?void 0x0:_0x4ca3bd?zt(_0x21613a,_0x21e66d):_0x21613a,_0x2dc8c4=_0x230ce5[_0x3a2223(0x34f)]-0x1,_0x1ec4d7;_0x2dc8c4>=0x0;_0x2dc8c4--)(_0x1ec4d7=_0x230ce5[_0x2dc8c4])&&(_0x2af739=_0x1ec4d7(_0x2af739)||_0x2af739);return _0x2af739;},he=(_0x56d2af,_0x50c8a9)=>(_0x187bd2,_0x5cdf04)=>_0x50c8a9(_0x187bd2,_0x5cdf04,_0x56d2af),Qt=(_0x49a972,_0xff1a2c,_0x2c941a)=>Jt(_0x49a972,_0xff1a2c+'',_0x2c941a);const es=_0x3b20ce(0x3ef);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x14d3f7=Ue,_0xee8f60,_0x39e1b4,_0x43aca0){const _0x25f116=_0x3b20ce;super(),this[_0x25f116(0x3c4)]=_0x14d3f7,this['_renderManagerService']=_0xee8f60,this['_injector']=_0x39e1b4,this[_0x25f116(0x396)]=_0x43aca0;const {..._0x3cc972}=a[_0x25f116(0x3bb)]({},Ue,this[_0x25f116(0x3c4)]);this['_configService']['setConfig']($t,_0x3cc972);}[_0x3b20ce(0x406)](){const _0xbfdf3a=_0x3b20ce;this[_0xbfdf3a(0x334)](),this[_0xbfdf3a(0x2ba)]();}[_0x3b20ce(0x3d9)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x3d7183=_0x3b20ce;var _0x127a49;const _0x3c0d83=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x3d7183(0x2eb)],{'useClass':G[_0x3d7183(0x323)]}],[u[_0x3d7183(0x27d)],{'useClass':ge}],[exports[_0x3d7183(0x371)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x3d7183(0x202)](this['_injector'],a['mergeOverrideWithDependencies'](_0x3c0d83,(_0x127a49=this[_0x3d7183(0x3c4)])==null?void 0x0:_0x127a49[_0x3d7183(0x367)]));}[_0x3b20ce(0x447)](){const _0x15a6be=_0x3b20ce;this[_0x15a6be(0x1c3)](this[_0x15a6be(0x34b)]['registerRenderModule'](a[_0x15a6be(0x356)][_0x15a6be(0x29b)],[fe])),this[_0x15a6be(0x1c3)](this[_0x15a6be(0x34b)][_0x15a6be(0x2cf)](a[_0x15a6be(0x356)]['UNIVER_SHEET'],[ve]));}['_initDependencies'](){const _0x2f0a23=_0x3b20ce;a[_0x2f0a23(0x1f7)](this[_0x2f0a23(0x411)],[[x],[exports[_0x2f0a23(0x371)]],[Q],[q],[exports[_0x2f0a23(0x3f9)]]]);}},Qt(exports[_0x3b20ce(0x378)],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x3b20ce(0x2ff)](u[_0x3b20ce(0x1cd)]),he(0x1,p[_0x3b20ce(0x33f)]),he(0x2,a[_0x3b20ce(0x282)](a['Injector'])),he(0x3,a[_0x3b20ce(0x341)])],exports[_0x3b20ce(0x378)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x38c299,_0x5d2b7d,_0x3d8179,_0x588407)=>{const _0x10e900=_0x3b20ce;for(var _0x4b5454=_0x588407>0x1?void 0x0:_0x588407?ts(_0x5d2b7d,_0x3d8179):_0x5d2b7d,_0x28b980=_0x38c299[_0x10e900(0x34f)]-0x1,_0x4d4e59;_0x28b980>=0x0;_0x28b980--)(_0x4d4e59=_0x38c299[_0x28b980])&&(_0x4b5454=_0x4d4e59(_0x4b5454)||_0x4b5454);return _0x4b5454;},H=(_0x513a91,_0x11ad13)=>(_0x12b6d2,_0x36b239)=>_0x11ad13(_0x12b6d2,_0x36b239,_0x513a91);exports[_0x3b20ce(0x238)]=class extends u[_0x3b20ce(0x1e2)]{constructor(_0xcf044a,_0xb24aa0,_0x1915c8,_0x4fdfbe,_0x252fd8){super(_0xcf044a,_0xb24aa0,_0x1915c8,_0x4fdfbe,_0x252fd8);}async[_0x3b20ce(0x383)](_0x3d8b38){const _0x1022a7=_0x3b20ce,_0x3d98d1=await this[_0x1022a7(0x1dc)](),_0x32d2f4=this[_0x1022a7(0x1d5)](_0x3d8b38,_0x3d98d1);return this[_0x1022a7(0x2ee)](_0x32d2f4);}[_0x3b20ce(0x1d5)](_0xc28578,_0x5f2625){const _0x5893de=_0x3b20ce,_0x197e64=typeof window>'u'?new URL(_0xc28578):new URL(_0xc28578,window[_0x5893de(0x22b)]['origin']);_0x197e64[_0x5893de(0x1fe)][_0x5893de(0x26a)]('sessionTicket',_0x5f2625);const _0x4da11a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5893de(0x22b)][_0x5893de(0x434)]);return _0x4da11a['get']('runId')&&_0x197e64['searchParams'][_0x5893de(0x26a)]('runId',_0x4da11a['get'](_0x5893de(0x1da))),_0x197e64[_0x5893de(0x3e9)]();}async[_0x3b20ce(0x1dc)](){const _0x4f2476=_0x3b20ce;var _0x4a2a29,_0x3d0720,_0x4629a6;const _0x456b0d=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x3e1cae=(_0x4a2a29=_0x456b0d==null?void 0x0:_0x456b0d['wsSessionTicketUrl'])!=null?_0x4a2a29:u[_0x4f2476(0x395)];return(_0x4629a6=(_0x3d0720=(await this[_0x4f2476(0x442)][_0x4f2476(0x3ff)](_0x3e1cae,{'headers':{'Content-Type':_0x4f2476(0x2e3)}}))[_0x4f2476(0x40e)])==null?void 0x0:_0x3d0720[_0x4f2476(0x268)])!=null?_0x4629a6:'';}},exports[_0x3b20ce(0x238)]=ss([H(0x0,a[_0x3b20ce(0x282)](a['Injector'])),H(0x1,a[_0x3b20ce(0x282)](G['HTTPService'])),H(0x2,a[_0x3b20ce(0x341)]),H(0x3,a[_0x3b20ce(0x416)]),H(0x4,m[_0x3b20ce(0x1f9)])],exports[_0x3b20ce(0x238)]);const Me=0x7530,Le=_0x3b20ce(0x345);class is extends a[_0x3b20ce(0x214)]{constructor(){const _0x25862a=_0x3b20ce;super(),h(this,'_id',a[_0x25862a(0x2cb)]()),h(this,_0x25862a(0x273),new Set()),h(this,_0x25862a(0x3bd),new Map()),h(this,_0x25862a(0x3a6),null),h(this,_0x25862a(0x2e9),new Map()),h(this,'_unitStatus',new Map()),this[_0x25862a(0x3e1)]();}['dispose'](){const _0x574ed7=_0x3b20ce;super['dispose'](),this['_clearOtherTimers'][_0x574ed7(0x42b)]((_0x1d723b,_0x467075)=>this[_0x574ed7(0x3ce)](_0x467075)),this['_heartbeatTimer']&&window[_0x574ed7(0x35b)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x1b6c40){const _0x3296fc=_0x3b20ce;return this[_0x3296fc(0x3a5)](_0x1b6c40)[_0x3296fc(0x32f)](d[_0x3296fc(0x39b)]());}[_0x3b20ce(0x1e8)](_0x9850e8){const _0x130130=_0x3b20ce;this[_0x130130(0x273)][_0x130130(0x2e4)]===0x0&&this[_0x130130(0x2bd)](),this[_0x130130(0x273)][_0x130130(0x43e)](_0x9850e8),this['_send']({'type':0x0,'memberID':this[_0x130130(0x20b)],'unitIDs':[_0x9850e8],'isForwarded':!0x1});}[_0x3b20ce(0x32e)](_0x8b7aae){const _0x5a335c=_0x3b20ce;this[_0x5a335c(0x273)][_0x5a335c(0x30b)](_0x8b7aae),this[_0x5a335c(0x273)][_0x5a335c(0x2e4)]===0x0&&this['_heartbeatTimer']&&window[_0x5a335c(0x35b)](this[_0x5a335c(0x3a6)]);}[_0x3b20ce(0x3e1)](){const _0x1868ca=_0x3b20ce;this[_0x1868ca(0x1c3)](a[_0x1868ca(0x31a)](d[_0x1868ca(0x1fa)](window,_0x1868ca(0x265))['subscribe'](_0x566313=>{const _0x25a767=_0x1868ca;if(_0x566313[_0x25a767(0x3cc)]!==Le||!_0x566313[_0x25a767(0x23d)])return;const _0x20de7a=JSON[_0x25a767(0x3fe)](_0x566313[_0x25a767(0x23d)]);this[_0x25a767(0x231)](_0x20de7a);}))),window[_0x1868ca(0x429)]('unload',()=>this[_0x1868ca(0x23e)]({'type':0x1,'memberID':this[_0x1868ca(0x20b)],'unitIDs':Array[_0x1868ca(0x213)](this['_selfUnitIDs'])}));}[_0x3b20ce(0x231)](_0x18f267){const _0x2e91e5=_0x3b20ce;switch(_0x18f267[_0x2e91e5(0x2e5)]){case 0x0:this[_0x2e91e5(0x25e)](_0x18f267);break;case 0x1:this[_0x2e91e5(0x2b4)](_0x18f267);break;case 0x2:this[_0x2e91e5(0x2db)](_0x18f267);break;}}[_0x3b20ce(0x25e)](_0x1a5b8d){const _0x1f1a49=_0x3b20ce,{unitIDs:_0x255625,memberID:_0x25ec51,isForwarded:_0x2fde2}=_0x1a5b8d;_0x255625[_0x1f1a49(0x42b)](_0x4811ea=>{const _0x47392b=_0x1f1a49;if(!_0x2fde2&&this[_0x47392b(0x3bd)][_0x47392b(0x2a0)](_0x4811ea)&&this[_0x47392b(0x3a5)](_0x4811ea)[_0x47392b(0x3c7)](u[_0x47392b(0x27f)][_0x47392b(0x2fd)]),!this[_0x47392b(0x3bd)][_0x47392b(0x2a0)](_0x4811ea)||!this['_unitOnClients'][_0x47392b(0x3ff)](_0x4811ea)[_0x47392b(0x2a0)](_0x25ec51)){const _0x3de0fb=this[_0x47392b(0x3bd)][_0x47392b(0x3ff)](_0x4811ea)||new Set();_0x3de0fb['add'](_0x25ec51),this[_0x47392b(0x3bd)][_0x47392b(0x26a)](_0x4811ea,_0x3de0fb),this[_0x47392b(0x364)](_0x25ec51);}}),_0x2fde2||this[_0x1f1a49(0x23e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1f1a49(0x273)]],'isForwarded':!0x0});}[_0x3b20ce(0x364)](_0x5e35c6){const _0x465fc1=_0x3b20ce;this[_0x465fc1(0x3ce)](_0x5e35c6);const _0x20532b=window[_0x465fc1(0x2ab)](()=>{const _0x112d06=_0x465fc1;this['_unitOnClients'][_0x112d06(0x42b)](_0x6755d0=>{const _0x5c3b87=_0x112d06;_0x6755d0[_0x5c3b87(0x30b)](_0x5e35c6);});},Me*0x2);this[_0x465fc1(0x2e9)][_0x465fc1(0x26a)](_0x5e35c6,_0x20532b);}[_0x3b20ce(0x3ce)](_0x48a3ff){const _0x10df65=_0x3b20ce;if(this['_clearOtherTimers'][_0x10df65(0x2a0)](_0x48a3ff)){const _0x2f41a1=this['_clearOtherTimers'][_0x10df65(0x3ff)](_0x48a3ff);_0x2f41a1&&window[_0x10df65(0x261)](_0x2f41a1),this[_0x10df65(0x2e9)]['set'](_0x48a3ff,null);}}[_0x3b20ce(0x2b4)](_0x2dfbdd){const _0x3377a0=_0x3b20ce,{memberID:_0x9bca76,unitIDs:_0xe425fc}=_0x2dfbdd;_0xe425fc[_0x3377a0(0x42b)](_0x2ff8d4=>{const _0x2edf50=_0x3377a0;var _0x257974;const _0x430c7b=this['_unitOnClients'][_0x2edf50(0x3ff)](_0x2ff8d4);_0x430c7b&&(_0x430c7b[_0x2edf50(0x30b)](_0x9bca76),(_0x257974=this[_0x2edf50(0x3a5)](_0x2ff8d4))==null||_0x257974[_0x2edf50(0x3c7)](_0x430c7b[_0x2edf50(0x2e4)]===0x0?u[_0x2edf50(0x27f)][_0x2edf50(0x205)]:u['UnitStatus'][_0x2edf50(0x2fd)]));}),this[_0x3377a0(0x3ce)](_0x9bca76);}[_0x3b20ce(0x2db)](_0x57b9e2){this['_scheduleClearOtherTimer'](_0x57b9e2['memberID']);}[_0x3b20ce(0x23e)](_0x48148d){const _0x85782f=_0x3b20ce;localStorage[_0x85782f(0x40b)](Le,JSON[_0x85782f(0x41b)](_0x48148d));}[_0x3b20ce(0x2bd)](){this['_heartbeatTimer']=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Me);}[_0x3b20ce(0x3a5)](_0xf7586f){const _0x37f69a=_0x3b20ce;return this['_unitStatus'][_0x37f69a(0x2a0)](_0xf7586f)||this[_0x37f69a(0x2c8)][_0x37f69a(0x26a)](_0xf7586f,new d[(_0x37f69a(0x287))](u[_0x37f69a(0x27f)][_0x37f69a(0x205)])),this[_0x37f69a(0x2c8)][_0x37f69a(0x3ff)](_0xf7586f);}}var je=(_0x543f99=>(_0x543f99[_0x543f99[_0x3b20ce(0x31b)]=0x0]=_0x3b20ce(0x31b),_0x543f99[_0x543f99['OK']=0x1]='OK',_0x543f99[_0x543f99['INTERNAL_ERROR']=0x2]=_0x3b20ce(0x2fc),_0x543f99[_0x543f99[_0x3b20ce(0x292)]=0x3]=_0x3b20ce(0x292),_0x543f99[_0x543f99[_0x3b20ce(0x21b)]=0x4]=_0x3b20ce(0x21b),_0x543f99[_0x543f99[_0x3b20ce(0x37f)]=0x5]='UNAUTHENTICATED',_0x543f99[_0x543f99['ALREADY_EXISTS']=0x6]=_0x3b20ce(0x223),_0x543f99[_0x543f99[_0x3b20ce(0x31f)]=0x7]='INVALID_ARGUMENT',_0x543f99[_0x543f99[_0x3b20ce(0x343)]=0x8]='TOO_MANY_REQUESTS',_0x543f99[_0x543f99[_0x3b20ce(0x306)]=0x9]=_0x3b20ce(0x306),_0x543f99[_0x543f99['LOGIN_FAILED']=0xa]=_0x3b20ce(0x33e),_0x543f99[_0x543f99[_0x3b20ce(0x1c7)]=0xb]=_0x3b20ce(0x1c7),_0x543f99[_0x543f99[_0x3b20ce(0x1c8)]=0xc]=_0x3b20ce(0x1c8),_0x543f99[_0x543f99['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x543f99[_0x543f99[_0x3b20ce(0x2f0)]=0xe]=_0x3b20ce(0x2f0),_0x543f99[_0x543f99[_0x3b20ce(0x220)]=0x1389]=_0x3b20ce(0x220),_0x543f99[_0x543f99[_0x3b20ce(0x32c)]=0x1771]=_0x3b20ce(0x32c),_0x543f99[_0x543f99[_0x3b20ce(0x3aa)]=0x1772]=_0x3b20ce(0x3aa),_0x543f99[_0x543f99[_0x3b20ce(0x3f7)]=0x1773]=_0x3b20ce(0x3f7),_0x543f99[_0x543f99[_0x3b20ce(0x3f0)]=0x1b59]=_0x3b20ce(0x3f0),_0x543f99[_0x543f99[_0x3b20ce(0x337)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x543f99[_0x543f99[_0x3b20ce(0x307)]=0x1b5b]=_0x3b20ce(0x307),_0x543f99[_0x543f99['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3b20ce(0x3ae),_0x543f99[_0x543f99[_0x3b20ce(0x26f)]=0x1b5d]=_0x3b20ce(0x26f),_0x543f99[_0x543f99[_0x3b20ce(0x28e)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x543f99[_0x543f99[_0x3b20ce(0x2f6)]=0x2329]=_0x3b20ce(0x2f6),_0x543f99[_0x543f99[_0x3b20ce(0x313)]=0x232a]=_0x3b20ce(0x313),_0x543f99[_0x543f99[_0x3b20ce(0x3ea)]=0x232b]=_0x3b20ce(0x3ea),_0x543f99[_0x543f99[_0x3b20ce(0x260)]=0x232c]=_0x3b20ce(0x260),_0x543f99[_0x543f99[_0x3b20ce(0x3dd)]=0x232d]=_0x3b20ce(0x3dd),_0x543f99[_0x543f99[_0x3b20ce(0x278)]=0x2711]=_0x3b20ce(0x278),_0x543f99[_0x543f99['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3b20ce(0x417),_0x543f99[_0x543f99[_0x3b20ce(0x212)]=0x2713]=_0x3b20ce(0x212),_0x543f99[_0x543f99[_0x3b20ce(0x33b)]=0x2714]=_0x3b20ce(0x33b),_0x543f99[_0x543f99[_0x3b20ce(0x360)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x543f99[_0x543f99[_0x3b20ce(0x1b9)]=0x271b]=_0x3b20ce(0x1b9),_0x543f99[_0x543f99[_0x3b20ce(0x269)]=0x271c]=_0x3b20ce(0x269),_0x543f99[_0x543f99[_0x3b20ce(0x3c5)]=0x271d]=_0x3b20ce(0x3c5),_0x543f99[_0x543f99[_0x3b20ce(0x354)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x543f99[_0x543f99[_0x3b20ce(0x1bc)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x543f99[_0x543f99[_0x3b20ce(0x3a1)]=0x2720]=_0x3b20ce(0x3a1),_0x543f99[_0x543f99[_0x3b20ce(0x37d)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x543f99[_0x543f99[_0x3b20ce(0x257)]=0x2ee1]=_0x3b20ce(0x257),_0x543f99[_0x543f99[_0x3b20ce(0x419)]=0x2ee2]=_0x3b20ce(0x419),_0x543f99[_0x543f99[_0x3b20ce(0x425)]=0x2ee3]=_0x3b20ce(0x425),_0x543f99[_0x543f99['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x543f99[_0x543f99[_0x3b20ce(0x33a)]=0x2ee5]=_0x3b20ce(0x33a),_0x543f99[_0x543f99[_0x3b20ce(0x3ed)]=0x32c9]=_0x3b20ce(0x3ed),_0x543f99[_0x543f99[_0x3b20ce(0x294)]=0x32ca]=_0x3b20ce(0x294),_0x543f99[_0x543f99[_0x3b20ce(0x445)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x543f99[_0x543f99[_0x3b20ce(0x2ed)]=-0x1]=_0x3b20ce(0x2ed),_0x543f99))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x54972f,_0xef347c,_0x2fb3f3,_0x3886c9)=>{const _0x22e731=_0x3b20ce;for(var _0x36864=_0x3886c9>0x1?void 0x0:_0x3886c9?ns(_0xef347c,_0x2fb3f3):_0xef347c,_0x588f30=_0x54972f[_0x22e731(0x34f)]-0x1,_0x475adf;_0x588f30>=0x0;_0x588f30--)(_0x475adf=_0x54972f[_0x588f30])&&(_0x36864=_0x475adf(_0x36864)||_0x36864);return _0x36864;},ue=(_0x4de26a,_0x240e3d)=>(_0x13e0da,_0x570113)=>_0x240e3d(_0x13e0da,_0x570113,_0x4de26a);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0x42cbae,_0x3ebef1,_0x3fa797){const _0x3a9293=_0x3b20ce;super(),this[_0x3a9293(0x35c)]=_0x42cbae,this[_0x3a9293(0x442)]=_0x3ebef1,this[_0x3a9293(0x396)]=_0x3fa797;}async['runOnServer'](_0x4db019,_0x2ae50e,_0x451489,..._0xa12990){const _0x2620ec=_0x3b20ce;var _0xcac8de,_0x1f13aa,_0x4834a3,_0x379407;const _0x4500ae=this[_0x2620ec(0x35c)][_0x2620ec(0x3b8)]();if(!_0x4500ae)throw new Error(_0x2620ec(0x3d5));const _0x2d7ca1=((_0xcac8de=this[_0x2620ec(0x396)][_0x2620ec(0x401)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0xcac8de:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x4db019+_0x2620ec(0x279)+_0x2ae50e,_0x2fe461=new URL(window[_0x2620ec(0x22b)]['href']),_0x1111ab={'scriptId':_0x4db019,'runId':(_0x1f13aa=_0x2fe461[_0x2620ec(0x1fe)]['get'](_0x2620ec(0x1da)))!=null?_0x1f13aa:'','function':_0x2ae50e,'unitId':_0x4500ae['getUnitId'](),'argsOfFunction':JSON[_0x2620ec(0x41b)](_0xa12990),'invokeId':(_0x4834a3=_0x451489[_0x2620ec(0x391)])!=null?_0x4834a3:'','executionId':(_0x379407=_0x451489['executionId'])!=null?_0x379407:''};try{const _0x56f4f8=await this[_0x2620ec(0x442)]['post'](_0x2d7ca1,{'body':_0x1111ab});return _0x56f4f8['body'][_0x2620ec(0x2ef)]&&_0x56f4f8[_0x2620ec(0x40e)][_0x2620ec(0x2ef)][_0x2620ec(0x36a)]!==je['OK']?_0x2620ec(0x350):_0x56f4f8[_0x2620ec(0x40e)][_0x2620ec(0x2e0)];}catch{return'Failed';}}},exports[_0x3b20ce(0x426)]=rs([ue(0x0,a[_0x3b20ce(0x317)]),ue(0x1,a[_0x3b20ce(0x282)](G[_0x3b20ce(0x430)])),ue(0x2,a['IConfigService'])],exports[_0x3b20ce(0x426)]),exports[_0x3b20ce(0x1e0)]=xe,exports['IURLService']=Ee,exports['SheetCollabCursorShape']=we,exports[_0x3b20ce(0x28f)]=is,exports['WebURLService']=Be;
@@ -1 +1 @@
1
- 'use strict';const _0x31c481=_0x476d;function _0x4a71(){const _0x37623a=['Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','40OOLEWl','6vMKNvQ','425556auMMKC','12891968MAnRhD','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Collaboration\x20Conflict','Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Click\x20to\x20Reconnect','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1683770vapgxo','2377320kqqwad','Edit\x20conflicts','279204yNorvb','10431421dTgWav','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,\x20please\x20check\x20your\x20network.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','49vYxkSm','53982ZuBRYm','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Synced','Syncing...','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'];_0x4a71=function(){return _0x37623a;};return _0x4a71();}(function(_0x1265bf,_0x59ccf3){const _0x322910=_0x476d,_0x1dc126=_0x1265bf();while(!![]){try{const _0x49a96e=parseInt(_0x322910(0x172))/0x1*(-parseInt(_0x322910(0x173))/0x2)+-parseInt(_0x322910(0x16d))/0x3+-parseInt(_0x322910(0x16b))/0x4+-parseInt(_0x322910(0x16a))/0x5+-parseInt(_0x322910(0x17a))/0x6*(-parseInt(_0x322910(0x16e))/0x7)+parseInt(_0x322910(0x163))/0x8+-parseInt(_0x322910(0x162))/0x9*(-parseInt(_0x322910(0x179))/0xa);if(_0x49a96e===_0x59ccf3)break;else _0x1dc126['push'](_0x1dc126['shift']());}catch(_0x552519){_0x1dc126['push'](_0x1dc126['shift']());}}}(_0x4a71,0xe67fc));function _0x476d(_0x2c0fb1,_0x2dde9f){const _0x4a71a8=_0x4a71();return _0x476d=function(_0x476df2,_0x4049f2){_0x476df2=_0x476df2-0x162;let _0x44e965=_0x4a71a8[_0x476df2];return _0x44e965;},_0x476d(_0x2c0fb1,_0x2dde9f);}const e={'collab-client':{'tooltip':{'reconnect':_0x31c481(0x168)}},'collabStatus':{'fetchMiss':_0x31c481(0x166),'conflict':_0x31c481(0x16c),'notCollab':'Local\x20file','synced':_0x31c481(0x175),'syncing':_0x31c481(0x176),'offline':_0x31c481(0x169)},'session':{'connection-failed':_0x31c481(0x170),'will-retry':_0x31c481(0x171),'room-full':_0x31c481(0x178),'collaboration-timeout':_0x31c481(0x174)},'conflict':{'title':_0x31c481(0x165),'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':'Authentication\x20Error','content':_0x31c481(0x16f)},'collaboration':{'single-unit':{'warning':_0x31c481(0x177)},'closeRoom':_0x31c481(0x164)},'auth':{'needGotoLoginAlert':_0x31c481(0x167)}};module['exports']=e;
1
+ 'use strict';const _0x247557=_0x1f43;(function(_0x6b813a,_0x22cd03){const _0xc15f32=_0x1f43,_0x17ca6d=_0x6b813a();while(!![]){try{const _0x28a3a4=parseInt(_0xc15f32(0x104))/0x1+parseInt(_0xc15f32(0xff))/0x2+parseInt(_0xc15f32(0x10f))/0x3*(-parseInt(_0xc15f32(0x111))/0x4)+-parseInt(_0xc15f32(0x10b))/0x5*(-parseInt(_0xc15f32(0xfa))/0x6)+parseInt(_0xc15f32(0x106))/0x7*(parseInt(_0xc15f32(0x109))/0x8)+parseInt(_0xc15f32(0xf9))/0x9*(parseInt(_0xc15f32(0x105))/0xa)+parseInt(_0xc15f32(0x110))/0xb*(-parseInt(_0xc15f32(0x10a))/0xc);if(_0x28a3a4===_0x22cd03)break;else _0x17ca6d['push'](_0x17ca6d['shift']());}catch(_0x365d39){_0x17ca6d['push'](_0x17ca6d['shift']());}}}(_0x1fdc,0xd5588));function _0x1f43(_0x56898e,_0x1c0663){const _0x1fdc0c=_0x1fdc();return _0x1f43=function(_0x1f43f7,_0xf090ff){_0x1f43f7=_0x1f43f7-0xf9;let _0x2a97a6=_0x1fdc0c[_0x1f43f7];return _0x2a97a6;},_0x1f43(_0x56898e,_0x1c0663);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x247557(0xfb),'conflict':_0x247557(0xfe),'notCollab':_0x247557(0x112),'synced':_0x247557(0x101),'syncing':_0x247557(0x10d),'offline':_0x247557(0xfd)},'session':{'connection-failed':_0x247557(0x108),'will-retry':_0x247557(0x102),'room-full':_0x247557(0xfc),'collaboration-timeout':_0x247557(0x103)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x247557(0x107)},'permission':{'title':_0x247557(0x10c),'content':_0x247557(0x10e)},'collaboration':{'single-unit':{'warning':_0x247557(0x114)},'closeRoom':_0x247557(0x100)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x1fdc(){const _0x245c67=['Authentication\x20Error','Syncing...','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','183381PMHlEU','11jbmNrq','24YpFUhg','Local\x20file','exports','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1469439xkjrLt','66obUCDi','Syncing\x20server\x20data...','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Edit\x20conflicts','2917636TxxjKr','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','746281hjnKTB','10zMOZFG','9474367DxtAbC','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.','Connection\x20failed,\x20please\x20check\x20your\x20network.','8pummiW','49597008yEYxdP','750845LlHaBa'];_0x1fdc=function(){return _0x245c67;};return _0x1fdc();}module[_0x247557(0x113)]=e;