@univerjs-pro/collaboration-client-ui 0.6.10-experimental.20250419-8f302dd → 0.6.10-experimental.20250421-e4eb9bc

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 _0x4ef0(){const _0x517e51=['@univerjs-pro/collaboration-client-ui','9SHGlUh','6565768SXxVEE','get','536952ZBFYih','33109870lzxLLm','RemoteUniscriptService','runOnServer','5174946Rxqqql','198269kqUetF','7949697leRZWg','5dXdDDd','extend','12ZRYJFP','FUniver','4574392SHDSXL'];_0x4ef0=function(){return _0x517e51;};return _0x4ef0();}const _0x1e5ded=_0x333c;function _0x333c(_0x5e0bf2,_0xfc362){const _0x4ef0ad=_0x4ef0();return _0x333c=function(_0x333c12,_0x5b5198){_0x333c12=_0x333c12-0x8f;let _0x40a4fe=_0x4ef0ad[_0x333c12];return _0x40a4fe;},_0x333c(_0x5e0bf2,_0xfc362);}(function(_0x394457,_0x46e094){const _0x294c96=_0x333c,_0x4c54aa=_0x394457();while(!![]){try{const _0x5f4ae5=parseInt(_0x294c96(0x98))/0x1*(-parseInt(_0x294c96(0x9c))/0x2)+parseInt(_0x294c96(0x93))/0x3+-parseInt(_0x294c96(0x9e))/0x4*(parseInt(_0x294c96(0x9a))/0x5)+-parseInt(_0x294c96(0x97))/0x6+parseInt(_0x294c96(0x99))/0x7+parseInt(_0x294c96(0x91))/0x8*(-parseInt(_0x294c96(0x90))/0x9)+parseInt(_0x294c96(0x94))/0xa;if(_0x5f4ae5===_0x46e094)break;else _0x4c54aa['push'](_0x4c54aa['shift']());}catch(_0x27c7a1){_0x4c54aa['push'](_0x4c54aa['shift']());}}}(_0x4ef0,0x94bc2));const t=require(_0x1e5ded(0x8f)),e=require('@univerjs/core/facade');class c extends e['FUniver']{['runOnServer'](_0x1263a2,_0x10351d,..._0x1198ec){const _0x33e919=_0x1e5ded;return this['_injector'][_0x33e919(0x92)](t[_0x33e919(0x95)])[_0x33e919(0x96)](_0x1263a2,_0x10351d,{},..._0x1198ec);}}e[_0x1e5ded(0x9d)][_0x1e5ded(0x9b)](c);
1
+ 'use strict';const _0x2fa775=_0x3b90;(function(_0x45fac0,_0x163636){const _0xce9eef=_0x3b90,_0x1d6749=_0x45fac0();while(!![]){try{const _0x552893=parseInt(_0xce9eef(0x114))/0x1+parseInt(_0xce9eef(0x115))/0x2*(parseInt(_0xce9eef(0x11c))/0x3)+parseInt(_0xce9eef(0x119))/0x4*(-parseInt(_0xce9eef(0x112))/0x5)+-parseInt(_0xce9eef(0x113))/0x6+parseInt(_0xce9eef(0x11f))/0x7*(-parseInt(_0xce9eef(0x122))/0x8)+parseInt(_0xce9eef(0x120))/0x9+-parseInt(_0xce9eef(0x116))/0xa*(-parseInt(_0xce9eef(0x121))/0xb);if(_0x552893===_0x163636)break;else _0x1d6749['push'](_0x1d6749['shift']());}catch(_0x25ab47){_0x1d6749['push'](_0x1d6749['shift']());}}}(_0x35bb,0x9b3c2));const t=require(_0x2fa775(0x118)),e=require(_0x2fa775(0x117));class c extends e[_0x2fa775(0x11d)]{[_0x2fa775(0x11a)](_0x17a0f8,_0x9db363,..._0x2dc228){const _0x433b87=_0x2fa775;return this[_0x433b87(0x11e)][_0x433b87(0x11b)](t[_0x433b87(0x111)])[_0x433b87(0x11a)](_0x17a0f8,_0x9db363,{},..._0x2dc228);}}e[_0x2fa775(0x11d)]['extend'](c);function _0x3b90(_0x46f24a,_0x5a3e1e){const _0x35bb76=_0x35bb();return _0x3b90=function(_0x3b9063,_0x41125f){_0x3b9063=_0x3b9063-0x111;let _0x19c376=_0x35bb76[_0x3b9063];return _0x19c376;},_0x3b90(_0x46f24a,_0x5a3e1e);}function _0x35bb(){const _0x5f3e85=['3244041EdiWsh','374geZfNE','2921528thJhPl','RemoteUniscriptService','5gqyceH','2067006PmcqNM','404462hmOeuf','504646NqfpYs','154640TCtXGU','@univerjs/core/facade','@univerjs-pro/collaboration-client-ui','789904uiQpGd','runOnServer','get','3oAytOW','FUniver','_injector','7aNtLdB'];_0x35bb=function(){return _0x5f3e85;};return _0x35bb();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5b8990=_0x18a2;(function(_0x2a78e6,_0x2307a8){const _0x41a609=_0x18a2,_0x1259ce=_0x2a78e6();while(!![]){try{const _0x430f2e=parseInt(_0x41a609(0x3be))/0x1*(parseInt(_0x41a609(0x180))/0x2)+parseInt(_0x41a609(0x1fc))/0x3+parseInt(_0x41a609(0x2c9))/0x4*(-parseInt(_0x41a609(0x1d6))/0x5)+parseInt(_0x41a609(0x38b))/0x6*(parseInt(_0x41a609(0x3ee))/0x7)+parseInt(_0x41a609(0x3b1))/0x8+-parseInt(_0x41a609(0x36f))/0x9+parseInt(_0x41a609(0x1da))/0xa;if(_0x430f2e===_0x2307a8)break;else _0x1259ce['push'](_0x1259ce['shift']());}catch(_0x1817cf){_0x1259ce['push'](_0x1259ce['shift']());}}}(_0x1f87,0x7e600));var Xe=Object[_0x5b8990(0x255)],Ge=(_0x569b6f,_0x2bc8b7,_0x553f26)=>_0x2bc8b7 in _0x569b6f?Xe(_0x569b6f,_0x2bc8b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x553f26}):_0x569b6f[_0x2bc8b7]=_0x553f26,_=(_0x4d6e5d,_0x51410f,_0x3270a7)=>Ge(_0x4d6e5d,typeof _0x51410f!=_0x5b8990(0x2ce)?_0x51410f+'':_0x51410f,_0x3270a7);Object[_0x5b8990(0x255)](exports,Symbol['toStringTag'],{'value':'Module'});const u=require(_0x5b8990(0x351)),a=require(_0x5b8990(0x3ce)),p=require(_0x5b8990(0x330)),q=require(_0x5b8990(0x2ea)),b=require(_0x5b8990(0x359)),qe=require(_0x5b8990(0x1b5)),d=require(_0x5b8990(0x303)),Y=require(_0x5b8990(0x22e)),m=require(_0x5b8990(0x2a9)),Te=require(_0x5b8990(0x295)),g=require('@univerjs/sheets'),$=require(_0x5b8990(0x376)),G=require(_0x5b8990(0x391)),P=require(_0x5b8990(0x272)),O=require(_0x5b8990(0x313)),T=require(_0x5b8990(0x377)),M=require(_0x5b8990(0x3bc)),Ke=require(_0x5b8990(0x2e1));var ze=Object[_0x5b8990(0x184)],Je=(_0xe21a6d,_0x18a1db,_0x29b3a7,_0x168cb7)=>{for(var _0x3ee2cb=_0x168cb7>0x1?void 0x0:_0x168cb7?ze(_0x18a1db,_0x29b3a7):_0x18a1db,_0x2c1331=_0xe21a6d['length']-0x1,_0x4912a4;_0x2c1331>=0x0;_0x2c1331--)(_0x4912a4=_0xe21a6d[_0x2c1331])&&(_0x3ee2cb=_0x4912a4(_0x3ee2cb)||_0x3ee2cb);return _0x3ee2cb;},Oe=(_0x12e504,_0x7e1dc0)=>(_0x58660d,_0x278b6c)=>_0x7e1dc0(_0x58660d,_0x278b6c,_0x12e504);let fe=class extends a[_0x5b8990(0x3d0)]{constructor(_0x1373c2,_0x3c61c3){const _0x3cb1cf=_0x5b8990;super(),this['_docClipboardService']=_0x1373c2,this[_0x3cb1cf(0x2d1)]=_0x3c61c3,this[_0x3cb1cf(0x2c4)]();}[_0x5b8990(0x2c4)](){const _0x1d66f8=_0x5b8990,_0x24088d=this;this['disposeWithMe'](this[_0x1d66f8(0x1b0)][_0x1d66f8(0x3cc)]({'onBeforePasteImage':async _0x527dfa=>{const _0x4e6987=_0x1d66f8,_0x37377d=await _0x24088d['_imageIoService'][_0x4e6987(0x337)](_0x527dfa);return _0x37377d?{'source':_0x37377d[_0x4e6987(0x254)],'imageSourceType':_0x37377d['imageSourceType']}:null;}}));}};fe=Je([Oe(0x0,b[_0x5b8990(0x36b)]),Oe(0x1,qe[_0x5b8990(0x3df)])],fe);const Re=[_0x5b8990(0x2e9),_0x5b8990(0x252),_0x5b8990(0x259),'red300','blue400','gold400'];class Ce extends a['Disposable']{constructor(){const _0x34110f=_0x5b8990;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x34110f(0x1b9),0x0);}[_0x5b8990(0x3cb)](_0x566271){const _0x5eb7c5=_0x5b8990;if(this[_0x5eb7c5(0x24b)]['has'](_0x566271))return this[_0x5eb7c5(0x24b)]['get'](_0x566271);const _0x303fad=Re[this[_0x5eb7c5(0x1b9)]];return this[_0x5eb7c5(0x1b9)]=(this['_colorIndex']+0x1)%Re[_0x5eb7c5(0x3e7)],this[_0x5eb7c5(0x24b)][_0x5eb7c5(0x1a0)](_0x566271,_0x303fad),_0x303fad;}}function we(_0x339d87){const _0x1761df=_0x5b8990;let _0x706aaf='';for(const _0x17ff2c of _0x339d87){const {startOffset:_0x1cf7c1,endOffset:_0x95f7fb,isActive:_0x40e26a,rangeType:_0x459b54,segmentId:_0x8ebc1a,segmentPage:_0x38009e}=_0x17ff2c;_0x706aaf[_0x1761df(0x3e7)]&&(_0x706aaf+=','),_0x706aaf+=_0x1cf7c1+':'+_0x95f7fb+':'+(_0x40e26a?'1':'0')+':'+_0x459b54+':'+_0x8ebc1a+':'+_0x38009e;}return _0x706aaf;}function Ze(_0x4a77e2){const _0x5ecd9c=_0x5b8990,_0x4ec725=_0x4a77e2[_0x5ecd9c(0x1a3)](','),_0x9121b1=[];for(const _0x295943 of _0x4ec725){const [_0x425560,_0x2cbd48,_0xa5c61e,_0x1c5d7a,_0x3f9a4f,_0x5dbd4f]=_0x295943[_0x5ecd9c(0x1a3)](':');_0x9121b1['push']({'startOffset':Number(_0x425560),'endOffset':Number(_0x2cbd48),'collapsed':_0x425560===_0x2cbd48,'isActive':_0xa5c61e==='1','rangeType':_0x1c5d7a===a[_0x5ecd9c(0x2b6)][_0x5ecd9c(0x28b)]?a[_0x5ecd9c(0x2b6)]['TEXT']:a[_0x5ecd9c(0x2b6)]['RECT'],'segmentId':typeof _0x3f9a4f==_0x5ecd9c(0x300)?String(_0x3f9a4f):'','segmentPage':Number(_0x5dbd4f!=null?_0x5dbd4f:-0x1)});}return _0x9121b1[_0x5ecd9c(0x1b7)](_0x322244=>_0x322244[_0x5ecd9c(0x1c4)])||(_0x9121b1[0x0]['isActive']=!0x0),_0x9121b1;}class pe extends a['RxDisposable']{constructor(){const _0x5c8e89=_0x5b8990;super(...arguments),_(this,'_collabCursorState$',new d[(_0x5c8e89(0x3e4))](null)),_(this,_0x5c8e89(0x31b),this[_0x5c8e89(0x3d3)][_0x5c8e89(0x20c)]());}[_0x5b8990(0x16e)](_0x3153c8){const {unitID:_0x1033fb,memberID:_0x17b853,textRanges:_0x5c47e8}=_0x3153c8,_0x2c6319=we(_0x5c47e8);if(_0x2c6319==='')return;const _0x4729e7={'unitID':_0x1033fb,'memberID':_0x17b853,'selection':_0x2c6319};this['_collabCursorState$']['next'](_0x4729e7);}}var Qe=Object[_0x5b8990(0x184)],et=(_0x1e626e,_0x564793,_0x370178,_0x2a74ff)=>{const _0x221330=_0x5b8990;for(var _0x1e275b=_0x2a74ff>0x1?void 0x0:_0x2a74ff?Qe(_0x564793,_0x370178):_0x564793,_0x2e3252=_0x1e626e[_0x221330(0x3e7)]-0x1,_0x3e6d6e;_0x2e3252>=0x0;_0x2e3252--)(_0x3e6d6e=_0x1e626e[_0x2e3252])&&(_0x1e275b=_0x3e6d6e(_0x1e275b)||_0x1e275b);return _0x1e275b;},L=(_0x4c8e82,_0x42b0d5)=>(_0x49db30,_0x1534ba)=>_0x42b0d5(_0x49db30,_0x1534ba,_0x4c8e82);const tt=0x12c,st=0x64;let Se=class extends a[_0x5b8990(0x3d0)]{constructor(_0x4af531,_0x779c4,_0x4d4092,_0x120c5e,_0x9915b7,_0x1a51bf,_0x6db53d,_0x2ccf2c,_0x22de13){const _0x4ae830=_0x5b8990;super(),_(this,_0x4ae830(0x3d2),!0x1),_(this,_0x4ae830(0x2c4),!0x1),_(this,_0x4ae830(0x34e),new d[(_0x4ae830(0x3e4))](new Map())),_(this,_0x4ae830(0x320),this[_0x4ae830(0x34e)][_0x4ae830(0x20c)]()),_(this,_0x4ae830(0x3c4),new d[(_0x4ae830(0x3e4))]([])),_(this,'roomMembers$',this[_0x4ae830(0x3c4)]['pipe'](d[_0x4ae830(0x3ab)](tt))),_(this,_0x4ae830(0x1ac),a[_0x4ae830(0x287)](_0x214493=>{const _0x59f238=_0x4ae830,_0x2555d6={'eventID':m[_0x59f238(0x1fb)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x59f238(0x299)],'memberID':this[_0x59f238(0x1f5)]['getMemberID'](),'selection':we(_0x214493)}};this['_session'][_0x59f238(0x3d1)](_0x2555d6,this[_0x59f238(0x299)]);},st)),(this['unitID']=_0x4af531,this[_0x4ae830(0x1f5)]=_0x779c4,this['_injector']=_0x4d4092,this[_0x4ae830(0x329)]=_0x120c5e,this['_memberService']=_0x9915b7,this[_0x4ae830(0x23f)]=_0x1a51bf,this[_0x4ae830(0x2a1)]=_0x6db53d,this[_0x4ae830(0x2d5)]=_0x2ccf2c,this[_0x4ae830(0x20b)]=_0x22de13);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x5b8990(0x1f3)](){const _0x3a2b95=_0x5b8990;return this['_roomMembers$'][_0x3a2b95(0x364)]();}[_0x5b8990(0x232)](){const _0x179e43=_0x5b8990;super[_0x179e43(0x232)](),this[_0x179e43(0x34e)]['next'](new Map()),this['_cursorInfo$'][_0x179e43(0x1f1)](),this[_0x179e43(0x3c4)][_0x179e43(0x2c7)]([]),this['_roomMembers$'][_0x179e43(0x1f1)]();}[_0x5b8990(0x1af)](){const _0xce02a5=_0x5b8990;this['_init']||(this[_0xce02a5(0x2c4)]=!0x0,this[_0xce02a5(0x1f5)]['sessionStatus$'][_0xce02a5(0x27c)](d[_0xce02a5(0x2dd)](this[_0xce02a5(0x33a)]))['subscribe'](_0x4469a0=>{const _0x3a8d80=_0xce02a5;_0x4469a0===u['SessionStatus'][_0x3a8d80(0x1cd)]?this[_0x3a8d80(0x1ae)]():this[_0x3a8d80(0x393)]();}),this[_0xce02a5(0x1f5)][_0xce02a5(0x290)][_0xce02a5(0x27c)](d['takeUntil'](this[_0xce02a5(0x33a)]))[_0xce02a5(0x1f0)](_0x98e0b7=>{const _0xdfef61=_0xce02a5,_0x2c6877=_0x98e0b7[_0xdfef61(0x2ae)];_0x2c6877===m[_0xdfef61(0x1fb)][_0xdfef61(0x3ae)]&&this['_onCursorUpdate'](_0x98e0b7),_0x2c6877===m[_0xdfef61(0x1fb)][_0xdfef61(0x22a)]&&this[_0xdfef61(0x2d3)](_0x98e0b7);}),this[_0xce02a5(0x2ee)](this[_0xce02a5(0x20b)]['onCommandExecuted'](_0xcbb14d=>{const _0x7150b6=_0xce02a5,_0x56dd42=_0xcbb14d[_0x7150b6(0x3a3)];_0x56dd42!=null&&this[_0x7150b6(0x3d2)]&&_0xcbb14d['id']===Y[_0x7150b6(0x346)]['id']&&_0x56dd42[_0x7150b6(0x39c)]===this[_0x7150b6(0x299)]&&_0x56dd42[_0x7150b6(0x2c3)]===!0x1&&_0x56dd42[_0x7150b6(0x325)][_0x7150b6(0x3e7)]>0x0&&this[_0x7150b6(0x1ac)](_0x56dd42['ranges']);})),this[_0xce02a5(0x23f)][_0xce02a5(0x31b)][_0xce02a5(0x27c)](d['takeUntil'](this['dispose$']))[_0xce02a5(0x1f0)](_0x29904c=>{const _0x25847e=_0xce02a5;if((_0x29904c==null?void 0x0:_0x29904c[_0x25847e(0x299)])!==this['unitID'])return;const _0x11e620={'eventID':m[_0x25847e(0x1fb)][_0x25847e(0x3ae)],'data':_0x29904c};this[_0x25847e(0x362)](_0x11e620);}),this[_0xce02a5(0x2ee)](this[_0xce02a5(0x20b)][_0xce02a5(0x23b)](_0xce334b=>{const _0x1c2384=_0xce02a5;if(_0xce334b[_0x1c2384(0x3a3)]==null)return;const _0x372ef8=_0xce334b[_0x1c2384(0x3a3)];if(_0xce334b['id']!==Y[_0x1c2384(0x261)]['id']||_0x372ef8[_0x1c2384(0x39c)]!==this['unitID'])return;const _0x4875d3={'id':_0x1c2384(0x3ea),'params':_0x372ef8},_0x5e175f=this[_0x1c2384(0x336)];for(const [_0x64470a,_0xca5052]of _0x5e175f){const _0x27a205={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xca5052[_0x1c2384(0x325)]}},_0x44c9ef=this['_transformService'][_0x1c2384(0x25b)](_0x4875d3,_0x27a205,!0x1);if(m[_0x1c2384(0x188)](_0x44c9ef))throw _0x44c9ef[_0x1c2384(0x1e5)];_0x5e175f['set'](_0x64470a,{..._0xca5052,'ranges':_0x44c9ef[_0x1c2384(0x2ed)][_0x1c2384(0x3a3)]['textRanges']});}queueMicrotask(()=>{const _0x9e20a1=_0x1c2384;this[_0x9e20a1(0x34e)]['next'](_0x5e175f);});})));}['_onCursorUpdate'](_0xe0c1e7){const _0x163e76=_0x5b8990;var _0x28dfad,_0x2c0c47;const {memberID:_0x434937,selection:_0x15da7c}=_0xe0c1e7[_0x163e76(0x1ea)],_0x4b3bfa=Ze(_0x15da7c),_0x461b3e=(_0x2c0c47=(_0x28dfad=this[_0x163e76(0x3f0)][_0x163e76(0x170)](this['unitID'],_0x434937))==null?void 0x0:_0x28dfad[_0x163e76(0x29a)])!=null?_0x2c0c47:_0x163e76(0x387),_0x498063={'color':this[_0x163e76(0x329)][_0x163e76(0x3cb)](_0x434937),'name':_0x461b3e,'ranges':_0x4b3bfa},_0x7c38d4=this[_0x163e76(0x336)];_0x7c38d4[_0x163e76(0x1a0)](_0x434937,_0x498063),this[_0x163e76(0x34e)][_0x163e76(0x2c7)](_0x7c38d4);}[_0x5b8990(0x2d3)](_0x1bf32f){const _0x34d7c5=_0x5b8990,{memberID:_0x5e0fff}=_0x1bf32f[_0x34d7c5(0x1ea)],_0x8c291e=this[_0x34d7c5(0x336)];_0x8c291e[_0x34d7c5(0x371)](_0x5e0fff),this[_0x34d7c5(0x34e)][_0x34d7c5(0x2c7)](_0x8c291e);}[_0x5b8990(0x1ae)](){const _0x29ccc2=_0x5b8990;var _0x109b4c;if(this[_0x29ccc2(0x3d2)]=!0x0,((_0x109b4c=this[_0x29ccc2(0x2d5)]['getFocusedUnit']())==null?void 0x0:_0x109b4c[_0x29ccc2(0x257)]())!==this[_0x29ccc2(0x299)])return;const _0x2b2cbc=this[_0x29ccc2(0x1a8)]['get'](Y[_0x29ccc2(0x3cf)])['getDocRanges']();Array[_0x29ccc2(0x242)](_0x2b2cbc)&&_0x2b2cbc['length']>0x0&&this[_0x29ccc2(0x1ac)](_0x2b2cbc);}[_0x5b8990(0x393)](){const _0x307c5e=_0x5b8990;this[_0x307c5e(0x3d2)]=!0x1;}};Se=et([L(0x2,a[_0x5b8990(0x25d)](a[_0x5b8990(0x39d)])),L(0x3,a[_0x5b8990(0x25d)](Ce)),L(0x4,a[_0x5b8990(0x25d)](u[_0x5b8990(0x215)])),L(0x5,a[_0x5b8990(0x25d)](pe)),L(0x6,m['ITransformService']),L(0x7,a[_0x5b8990(0x35f)]),L(0x8,a[_0x5b8990(0x267)])],Se);var nt=Object[_0x5b8990(0x184)],it=(_0x2c7cec,_0x2dd669,_0x40b1e9,_0x30e939)=>{const _0x44a5af=_0x5b8990;for(var _0x60f475=_0x30e939>0x1?void 0x0:_0x30e939?nt(_0x2dd669,_0x40b1e9):_0x2dd669,_0xafe464=_0x2c7cec[_0x44a5af(0x3e7)]-0x1,_0x766c99;_0xafe464>=0x0;_0xafe464--)(_0x766c99=_0x2c7cec[_0xafe464])&&(_0x60f475=_0x766c99(_0x60f475)||_0x60f475);return _0x60f475;},A=(_0x501e7b,_0x2c19e4)=>(_0x3b50c1,_0x55d863)=>_0x2c19e4(_0x3b50c1,_0x55d863,_0x501e7b);const rt=0x12c,ot=0x64,at=()=>{let _0x4cd224=[],_0x3097c4=!0x1;return _0x4b72ee=>{const _0x40fd9b=_0x18a2;_0x4cd224[_0x40fd9b(0x3e8)](_0x4b72ee),_0x3097c4||(_0x3097c4=!0x0,setTimeout(()=>{const _0x2e8880=_0x40fd9b;_0x4cd224[_0x2e8880(0x312)](_0xa28390=>_0xa28390()),_0x4cd224=[],_0x3097c4=!0x1;}));};};let Ie=class extends a[_0x5b8990(0x3d0)]{constructor(_0x5a6b58,_0x1691f5,_0x4ebd3c,_0x81dff4,_0x8572,_0x52f6cc,_0x313950,_0x55fc37){const _0x49e6c4=_0x5b8990;super(),_(this,_0x49e6c4(0x3d2),!0x1),_(this,_0x49e6c4(0x2c4),!0x1),_(this,'_cursorInfo$',new d[(_0x49e6c4(0x3e4))](new Map())),_(this,'cursorInfo$',this[_0x49e6c4(0x34e)][_0x49e6c4(0x20c)]()),_(this,_0x49e6c4(0x3c4),new d['BehaviorSubject']([])),_(this,_0x49e6c4(0x3f4),this['_roomMembers$'][_0x49e6c4(0x27c)](d['debounceTime'](rt))),_(this,_0x49e6c4(0x1ac),a[_0x49e6c4(0x287)]((_0x27709b,_0x41a29d)=>{const _0x2786f9=_0x49e6c4,_0x1729d0={'eventID':m[_0x2786f9(0x1fb)][_0x2786f9(0x3ae)],'data':{'unitID':this[_0x2786f9(0x299)],'memberID':this['_session'][_0x2786f9(0x1fe)](),'selection':Te['serializeRangeWithSheet'](_0x27709b,_0x41a29d[_0x2786f9(0x1d4)])}};this[_0x2786f9(0x1f5)][_0x2786f9(0x3d1)](_0x1729d0,this[_0x2786f9(0x299)]);},ot)),(this[_0x49e6c4(0x299)]=_0x5a6b58,this[_0x49e6c4(0x1f5)]=_0x1691f5,this[_0x49e6c4(0x1a8)]=_0x4ebd3c,this['_colorAssignService']=_0x81dff4,this[_0x49e6c4(0x3f0)]=_0x8572,this['_univerInstanceService']=_0x52f6cc,this[_0x49e6c4(0x20b)]=_0x313950,this[_0x49e6c4(0x16a)]=_0x55fc37);}get['cursorInfo'](){const _0x1338fa=_0x5b8990;return this['_cursorInfo$'][_0x1338fa(0x364)]();}get[_0x5b8990(0x1f3)](){const _0xe02215=_0x5b8990;return this[_0xe02215(0x3c4)][_0xe02215(0x364)]();}['dispose'](){const _0x47817f=_0x5b8990;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x47817f(0x34e)][_0x47817f(0x1f1)](),this[_0x47817f(0x3c4)][_0x47817f(0x2c7)]([]),this[_0x47817f(0x3c4)][_0x47817f(0x1f1)]();}['init'](){const _0x5d46a8=_0x5b8990;this['_init']||(this[_0x5d46a8(0x2c4)]=!0x0,this['_session'][_0x5d46a8(0x24a)]['pipe'](d[_0x5d46a8(0x2dd)](this[_0x5d46a8(0x33a)]))[_0x5d46a8(0x1f0)](_0x1b8301=>{const _0x217a2c=_0x5d46a8;_0x1b8301===u[_0x217a2c(0x222)][_0x217a2c(0x1cd)]?this[_0x217a2c(0x1ae)]():this[_0x217a2c(0x393)]();}),this[_0x5d46a8(0x1f5)][_0x5d46a8(0x290)][_0x5d46a8(0x27c)](d['takeUntil'](this[_0x5d46a8(0x33a)]))['subscribe'](_0x289b92=>{const _0x50d5aa=_0x5d46a8,_0x1cd0fe=_0x289b92[_0x50d5aa(0x2ae)];_0x1cd0fe===m[_0x50d5aa(0x1fb)][_0x50d5aa(0x3ae)]&&this['_onCursorUpdate'](_0x289b92),_0x1cd0fe===m[_0x50d5aa(0x1fb)][_0x50d5aa(0x22a)]&&this['_onCursorDelete'](_0x289b92);}),this[_0x5d46a8(0x27d)](),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x5c8008=>{const _0x556f4a=_0x5d46a8;if(this[_0x556f4a(0x3d2)]&&_0x5c8008['id']===g[_0x556f4a(0x199)]['id']&&_0x5c8008[_0x556f4a(0x3a3)][_0x556f4a(0x39c)]===this[_0x556f4a(0x299)]){const _0x30a304=_0x5c8008['params'];this['_updateLocalCursor'](_0x30a304[_0x556f4a(0x1a2)],_0x30a304[_0x556f4a(0x2bd)][0x0]);}})));}['_onCursorUpdate'](_0x90aa5c){const _0x41428a=_0x5b8990;var _0x47194c,_0x3c2a77;const {memberID:_0x1eac58,selection:_0x4a9c15}=_0x90aa5c[_0x41428a(0x1ea)],{sheetName:_0xd7fd93,range:_0xcbae08}=Te[_0x41428a(0x1fa)](_0x4a9c15),_0x213db3={'name':(_0x3c2a77=(_0x47194c=this[_0x41428a(0x3f0)][_0x41428a(0x170)](this[_0x41428a(0x299)],_0x1eac58))==null?void 0x0:_0x47194c[_0x41428a(0x29a)])!=null?_0x3c2a77:'Unknown\x20user','range':this[_0x41428a(0x285)](_0xd7fd93,_0xcbae08),'sheetID':_0xd7fd93,'color':this[_0x41428a(0x329)][_0x41428a(0x3cb)](_0x1eac58),'selection':_0x4a9c15},_0x83cdb3=this[_0x41428a(0x336)];_0x83cdb3[_0x41428a(0x1a0)](_0x1eac58,_0x213db3),this[_0x41428a(0x34e)][_0x41428a(0x2c7)](_0x83cdb3);}[_0x5b8990(0x2d3)](_0x537983){const _0x4330b7=_0x5b8990,{memberID:_0x1ce734}=_0x537983[_0x4330b7(0x1ea)],_0x2e8291=this[_0x4330b7(0x336)];_0x2e8291['delete'](_0x1ce734),this['_cursorInfo$'][_0x4330b7(0x2c7)](_0x2e8291);}[_0x5b8990(0x285)](_0x295109,_0x461aa1){const _0x4685fa=_0x5b8990;var _0x54cd48,_0x50aaae;const _0x38a8c9=(_0x50aaae=(_0x54cd48=this[_0x4685fa(0x2d5)][_0x4685fa(0x32a)](this['unitID']))==null?void 0x0:_0x54cd48['getSheetBySheetId'](_0x295109))==null?void 0x0:_0x50aaae['getMergeData']();return(_0x38a8c9==null?void 0x0:_0x38a8c9[_0x4685fa(0x304)](_0x1c92d1=>a[_0x4685fa(0x17e)][_0x4685fa(0x38c)](_0x1c92d1,_0x461aa1)))||_0x461aa1;}[_0x5b8990(0x27d)](){const _0x55b2d3=_0x5b8990,_0x541dc3=new a[(_0x55b2d3(0x33d))](),_0xd64e38=at(),_0x333aa4=()=>{const _0x535177=_0x55b2d3;_0x541dc3[_0x535177(0x232)]();const _0x9724c8=(_0x3c345a,_0x440bbd,_0x43e6b6,_0x6680bb)=>{const _0x5d2f4d=_0x535177;let _0x2f782b=[];switch(_0x3c345a['id']){case g['EffectRefRangId'][_0x5d2f4d(0x1a9)]:{_0x2f782b=g[_0x5d2f4d(0x37c)](_0x3c345a,_0x6680bb);break;}case g[_0x5d2f4d(0x29b)]['DeleteRangeMoveUpCommandId']:{_0x2f782b=g[_0x5d2f4d(0x213)](_0x3c345a,_0x6680bb);break;}case g['EffectRefRangId'][_0x5d2f4d(0x260)]:{_0x2f782b=g[_0x5d2f4d(0x1f8)](_0x3c345a,_0x6680bb);break;}case g[_0x5d2f4d(0x29b)][_0x5d2f4d(0x3d8)]:{_0x2f782b=g[_0x5d2f4d(0x2a2)](_0x3c345a,_0x6680bb);break;}case g[_0x5d2f4d(0x29b)][_0x5d2f4d(0x24e)]:{_0x2f782b=g[_0x5d2f4d(0x3c6)](_0x3c345a,_0x6680bb);break;}case g[_0x5d2f4d(0x29b)][_0x5d2f4d(0x1e8)]:{_0x2f782b=g[_0x5d2f4d(0x3ef)](_0x3c345a,_0x6680bb);break;}case g[_0x5d2f4d(0x29b)]['MoveRangeCommandId']:{_0x2f782b=g[_0x5d2f4d(0x318)](_0x3c345a,_0x6680bb);break;}case g[_0x5d2f4d(0x29b)][_0x5d2f4d(0x3ad)]:{_0x2f782b=g['handleIRemoveCol'](_0x3c345a,_0x6680bb);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x2f782b=g[_0x5d2f4d(0x34d)](_0x3c345a,_0x6680bb);break;}}const _0x1cadf2=g['runRefRangeMutations'](_0x2f782b,_0x6680bb),_0x1f602e=this['cursorInfo'][_0x5d2f4d(0x2ad)](_0x440bbd);if(_0x1f602e&&_0x1cadf2){const _0x193e55={..._0x1f602e,'range':_0x1cadf2};this[_0x5d2f4d(0x336)][_0x5d2f4d(0x1a0)](_0x440bbd,_0x193e55),_0xd64e38(()=>{const _0x3ce8e1=_0x5d2f4d,_0x1afb37=this[_0x3ce8e1(0x16a)]['registerRefRange'](_0x1cadf2,_0x2b4248=>(_0x1afb37[_0x3ce8e1(0x232)](),_0x9724c8(_0x2b4248,_0x440bbd,_0x43e6b6,_0x1cadf2)));_0x541dc3[_0x3ce8e1(0x23c)](_0x1afb37);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x535177(0x312)]((_0x184de3,_0x2838e2)=>{const _0x25001f=_0x535177,{range:_0x1bd94a,sheetID:_0x3b2fbb}=_0x184de3,_0x45dd69=this[_0x25001f(0x16a)]['registerRefRange'](_0x1bd94a,_0x5688f4=>(_0x45dd69['dispose'](),_0x9724c8(_0x5688f4,_0x2838e2,_0x3b2fbb,_0x1bd94a)));_0x541dc3[_0x25001f(0x23c)](_0x45dd69);});};this[_0x55b2d3(0x2ee)](a[_0x55b2d3(0x349)](this[_0x55b2d3(0x34e)][_0x55b2d3(0x1f0)](()=>{_0x333aa4();})));}[_0x5b8990(0x1ae)](){const _0x28cef0=_0x5b8990;var _0x1309e5,_0x13f836;if(this[_0x28cef0(0x3d2)]=!0x0,((_0x1309e5=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1309e5['getUnitId']())!==this[_0x28cef0(0x299)])return;const _0x2582fc=(_0x13f836=this[_0x28cef0(0x1a8)]['get'](g[_0x28cef0(0x167)])[_0x28cef0(0x210)]())==null?void 0x0:_0x13f836[0x0],_0x468cb4=this[_0x28cef0(0x2d5)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x28cef0(0x3bf)])[_0x28cef0(0x2b9)]();_0x2582fc&&_0x468cb4&&this[_0x28cef0(0x1ac)](_0x468cb4[_0x28cef0(0x3a4)](),_0x2582fc);}[_0x5b8990(0x393)](){const _0x5ae576=_0x5b8990;this[_0x5ae576(0x3d2)]=!0x1;}};Ie=it([A(0x2,a[_0x5b8990(0x25d)](a[_0x5b8990(0x39d)])),A(0x3,a[_0x5b8990(0x25d)](Ce)),A(0x4,a[_0x5b8990(0x25d)](u['MemberService'])),A(0x5,a[_0x5b8990(0x35f)]),A(0x6,a[_0x5b8990(0x267)]),A(0x7,a['Inject'](g[_0x5b8990(0x250)]))],Ie);var ct=Object[_0x5b8990(0x184)],lt=(_0x3de765,_0x6fa143,_0x1298c1,_0x328810)=>{for(var _0x1adb93=_0x328810>0x1?void 0x0:_0x328810?ct(_0x6fa143,_0x1298c1):_0x6fa143,_0xa55115=_0x3de765['length']-0x1,_0x53ea2e;_0xa55115>=0x0;_0xa55115--)(_0x53ea2e=_0x3de765[_0xa55115])&&(_0x1adb93=_0x53ea2e(_0x1adb93)||_0x1adb93);return _0x1adb93;},ie=(_0x1bfc8d,_0x209eb2)=>(_0x156364,_0x21abd8)=>_0x209eb2(_0x156364,_0x21abd8,_0x1bfc8d);let x=class extends a[_0x5b8990(0x3d0)]{constructor(_0x3b8c47,_0x96fbe2,_0x2cdcfc){const _0x3525b6=_0x5b8990;super(),_(this,_0x3525b6(0x3b0),new Map()),_(this,_0x3525b6(0x3d9),new d[(_0x3525b6(0x3c0))]()),(this['_univerInstanceService']=_0x3b8c47,this[_0x3525b6(0x1a8)]=_0x96fbe2,this[_0x3525b6(0x32f)]=_0x2cdcfc,this[_0x3525b6(0x2c4)]());}[_0x5b8990(0x232)](){const _0xc21fe9=_0x5b8990;super[_0xc21fe9(0x232)](),this['_entityInit$'][_0xc21fe9(0x1f1)](),this['_entities']['forEach'](_0x46808=>_0x46808[_0xc21fe9(0x232)]());}[_0x5b8990(0x331)](_0x2376ab){const _0x142909=_0x5b8990;return this['_entities'][_0x142909(0x181)](_0x2376ab)?this[_0x142909(0x3b0)][_0x142909(0x2ad)](_0x2376ab)[_0x142909(0x320)]:this[_0x142909(0x3d9)][_0x142909(0x27c)](d[_0x142909(0x3db)](_0x2189aa=>_0x2189aa[_0x142909(0x299)]===_0x2376ab),d['switchMap'](_0x1f182b=>_0x1f182b[_0x142909(0x320)]));}['_init'](){const _0x1d9673=_0x5b8990;this[_0x1d9673(0x2d5)][_0x1d9673(0x23e)](a[_0x1d9673(0x2ab)][_0x1d9673(0x3bf)])[_0x1d9673(0x27c)](d[_0x1d9673(0x2dd)](this[_0x1d9673(0x33a)]))['subscribe'](async _0x2665ee=>{const _0x4529ec=_0x1d9673,_0x55c621=_0x2665ee[_0x4529ec(0x257)](),_0x247f72=await this[_0x4529ec(0x317)](_0x55c621);this[_0x4529ec(0x3d9)][_0x4529ec(0x2c7)](_0x247f72),this[_0x4529ec(0x3b0)]['set'](_0x55c621,_0x247f72);}),this[_0x1d9673(0x2d5)][_0x1d9673(0x23e)](a['UniverInstanceType'][_0x1d9673(0x203)])[_0x1d9673(0x27c)](d[_0x1d9673(0x2dd)](this[_0x1d9673(0x33a)]))[_0x1d9673(0x27c)](d[_0x1d9673(0x3db)](_0x5daba5=>!_0x5daba5['getUnitId']()[_0x1d9673(0x2e0)]('__')))[_0x1d9673(0x1f0)](async _0x1202fb=>{const _0x1f367e=_0x1d9673,_0x2e39d0=_0x1202fb[_0x1f367e(0x257)](),_0x1d6fc6=await this[_0x1f367e(0x3a0)](_0x2e39d0);this[_0x1f367e(0x3d9)][_0x1f367e(0x2c7)](_0x1d6fc6),this['_entities']['set'](_0x2e39d0,_0x1d6fc6);}),d[_0x1d9673(0x1df)](this[_0x1d9673(0x2d5)][_0x1d9673(0x335)](a[_0x1d9673(0x2ab)][_0x1d9673(0x203)]),this[_0x1d9673(0x2d5)][_0x1d9673(0x335)](a[_0x1d9673(0x2ab)]['UNIVER_SHEET']))[_0x1d9673(0x27c)](d[_0x1d9673(0x2dd)](this['dispose$']))[_0x1d9673(0x1f0)](_0xa71e84=>{const _0x2173c7=_0x1d9673,_0x5776da=_0xa71e84[_0x2173c7(0x257)](),_0x5f3076=this[_0x2173c7(0x3b0)]['get'](_0x5776da);_0x5f3076&&(_0x5f3076[_0x2173c7(0x232)](),this['_entities'][_0x2173c7(0x371)](_0x5776da));});}async[_0x5b8990(0x317)](_0x33076e){const _0x43a62d=_0x5b8990,_0x1b8664=await this[_0x43a62d(0x32f)][_0x43a62d(0x33c)](_0x33076e),_0x5192e5=this[_0x43a62d(0x1a8)][_0x43a62d(0x1a4)](Ie,_0x33076e,_0x1b8664);return _0x5192e5[_0x43a62d(0x1af)](),_0x5192e5;}async['_startDocCollabCursor'](_0x5977b9){const _0x2099b9=_0x5b8990,_0x2afdc5=await this[_0x2099b9(0x32f)]['requireSession'](_0x5977b9),_0x3c7844=this[_0x2099b9(0x1a8)][_0x2099b9(0x1a4)](Se,_0x5977b9,_0x2afdc5);return _0x3c7844[_0x2099b9(0x1af)](),_0x3c7844;}};x=lt([ie(0x0,a[_0x5b8990(0x35f)]),ie(0x1,a[_0x5b8990(0x25d)](a['Injector'])),ie(0x2,a[_0x5b8990(0x25d)](u['CollaborationSessionService']))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x6ea0ee,_0x453006){const _0x1258c0=_0x5b8990;let {radius:_0x368a84,width:_0x1d3992,height:_0x169eef}=_0x453006;_0x368a84=_0x368a84!=null?_0x368a84:0x0,_0x1d3992=_0x1d3992!=null?_0x1d3992:0x1e,_0x169eef=_0x169eef!=null?_0x169eef:0x1e;let _0x1cdfd1=0x0,_0x20b20b=0x0,_0x238d73=0x0;_0x1cdfd1=_0x20b20b=_0x238d73=Math[_0x1258c0(0x2af)](_0x368a84,_0x1d3992/0x2,_0x169eef/0x2),_0x6ea0ee[_0x1258c0(0x3bb)](),_0x6ea0ee[_0x1258c0(0x1d7)](_0x1cdfd1,0x0),_0x6ea0ee['lineTo'](_0x1d3992-_0x20b20b,0x0),_0x6ea0ee[_0x1258c0(0x1ad)](_0x1d3992-_0x20b20b,_0x20b20b,_0x20b20b,Math['PI']*0x3/0x2,0x0,!0x1),_0x6ea0ee[_0x1258c0(0x3ec)](_0x1d3992,_0x169eef-_0x238d73),_0x6ea0ee[_0x1258c0(0x1ad)](_0x1d3992-_0x238d73,_0x169eef-_0x238d73,_0x238d73,0x0,Math['PI']/0x2,!0x1),_0x6ea0ee[_0x1258c0(0x3ec)](0x0,_0x169eef),_0x6ea0ee['lineTo'](0x0,_0x1cdfd1),_0x6ea0ee[_0x1258c0(0x1ad)](_0x1cdfd1,_0x1cdfd1,_0x1cdfd1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x6ea0ee['closePath'](),_0x453006[_0x1258c0(0x2ff)]&&(_0x6ea0ee[_0x1258c0(0x244)](),_0x6ea0ee[_0x1258c0(0x360)]=_0x453006[_0x1258c0(0x2ff)],_0x453006['fillRule']===_0x1258c0(0x399)?_0x6ea0ee[_0x1258c0(0x2ff)](_0x1258c0(0x399)):_0x6ea0ee[_0x1258c0(0x2ff)](),_0x6ea0ee[_0x1258c0(0x226)]());}class te extends p[_0x5b8990(0x2b0)]{constructor(_0x51bad1,_0x3e7c42){const _0x52640a=_0x5b8990;super(_0x51bad1,_0x3e7c42),_(this,'color'),_(this,_0x52640a(0x202)),(this[_0x52640a(0x328)]=_0x3e7c42==null?void 0x0:_0x3e7c42[_0x52640a(0x328)],this[_0x52640a(0x202)]=_0x3e7c42==null?void 0x0:_0x3e7c42[_0x52640a(0x202)]);}static[_0x5b8990(0x2e4)](_0xc62f5a,_0x247a67){const _0x2ac3b0=_0x5b8990,{text:_0x5d0fb7,color:_0x588ac3}=_0x247a67;_0xc62f5a[_0x2ac3b0(0x244)](),_0xc62f5a[_0x2ac3b0(0x1c1)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5debd1=_0xc62f5a['measureText'](_0x5d0fb7)[_0x2ac3b0(0x18c)],_0x228a44=Math[_0x2ac3b0(0x2af)](_0x5debd1+0x2*re,De);ht(_0xc62f5a,{'height':K,'radius':0x4,'width':_0x228a44,'fill':_0x588ac3}),_0xc62f5a[_0x2ac3b0(0x360)]=_0x2ac3b0(0x19f);const _0x2c310c=re,_0x19c888=K-_t,_0x1ba318=De-0x2*re;if(_0x5debd1>_0x1ba318){let _0x4d73ba='',_0x17d292=0x0;for(const _0x24bc43 of _0x5d0fb7){const _0x47e34d=_0xc62f5a[_0x2ac3b0(0x2db)](_0x24bc43)['width'];if(_0x17d292+_0x47e34d<=_0x1ba318-_0xc62f5a[_0x2ac3b0(0x2db)](_0x2ac3b0(0x18f))[_0x2ac3b0(0x18c)])_0x4d73ba+=_0x24bc43,_0x17d292+=_0x47e34d;else{_0x4d73ba+='...';break;}}_0xc62f5a['fillText'](_0x4d73ba,_0x2c310c,_0x19c888);}else _0xc62f5a[_0x2ac3b0(0x20e)](_0x5d0fb7,_0x2c310c,_0x19c888);_0xc62f5a[_0x2ac3b0(0x226)]();}[_0x5b8990(0x17c)](_0x165623){const _0x179da8=_0x5b8990;te[_0x179da8(0x2e4)](_0x165623,this);}}const oe='collab-text-anchor-',ut=_0x5b8990(0x2f0),dt=_0x5b8990(0x37a),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x5b8990(0x386);class Ue{constructor(_0x2b490c,_0x5bbf97,_0x40ffc1,_0x5c15f3){const _0xb8daaa=_0x5b8990;_(this,_0xb8daaa(0x372),[]),_(this,_0xb8daaa(0x297),null),_(this,_0xb8daaa(0x394),null),_(this,'_anchorDot',null),_(this,_0xb8daaa(0x223),null),_(this,'_eventUnsubscribe',null),(this[_0xb8daaa(0x275)]=_0x2b490c,this['_scene']=_0x5bbf97,this[_0xb8daaa(0x3e9)]=_0x40ffc1,this[_0xb8daaa(0x34f)]=_0x5c15f3,this[_0xb8daaa(0x218)]());}set[_0x5b8990(0x2f2)](_0x5b4baa){const _0x20dfce=_0x5b8990;_0x5b4baa?(this[_0x20dfce(0x1b2)]&&this['_anchorDot'][_0x20dfce(0x288)](),this['_textBubble']&&this[_0x20dfce(0x394)][_0x20dfce(0x289)]()):(this[_0x20dfce(0x1b2)]&&this['_anchorDot'][_0x20dfce(0x289)](),this['_textBubble']&&this[_0x20dfce(0x394)][_0x20dfce(0x288)]());}[_0x5b8990(0x232)](){const _0x155c42=_0x5b8990;for(const _0x5dda31 of this['_shapes'])_0x5dda31[_0x155c42(0x232)]();this[_0x155c42(0x394)]&&this[_0x155c42(0x394)]['dispose'](),this[_0x155c42(0x1b2)]&&this[_0x155c42(0x1b2)][_0x155c42(0x232)](),this[_0x155c42(0x297)]&&this[_0x155c42(0x297)]['dispose'](),this['_eventUnsubscribe']&&this[_0x155c42(0x2d8)]();}['_render'](){const _0xa93307=_0x5b8990;var _0x13a4e8;const {_docSkeleton:_0xbf0f04,_document:_0x724d93}=this,{color:_0x17ca26,name:_0x3b0231,ranges:_0x55b01b}=this[_0xa93307(0x275)],_0x2222be=_0x724d93[_0xa93307(0x193)](),{docsLeft:_0x5ec860,docsTop:_0x6897cb}=_0x2222be,_0xdfafc=new b['NodePositionConvertToCursor'](_0x2222be,_0xbf0f04);for(const {startOffset:_0x56eb83,endOffset:_0x1ea90c,rangeType:_0x7d6fb7,segmentId:_0xffc8b0,segmentPage:_0x370111,collapsed:_0x203107,isActive:_0x4e09b4}of _0x55b01b){const _0x2e5654=_0xbf0f04[_0xa93307(0x23d)](_0x56eb83,!0x0,_0xffc8b0,_0x370111);let _0x536412=_0xbf0f04[_0xa93307(0x23d)](_0x1ea90c,!0x0,_0xffc8b0,_0x370111);if(_0x536412==null&&(_0x536412=_0xbf0f04['findNodePositionByCharIndex'](_0x1ea90c-0x1,!0x1,_0xffc8b0,_0x370111)),_0x4e09b4){const {contentBoxPointGroup:_0x59809c}=_0xdfafc[_0xa93307(0x216)](_0x536412,_0x536412);if(_0x59809c[_0xa93307(0x3e7)]===0x0)continue;this[_0xa93307(0x29d)](_0x17ca26,_0x59809c,_0x5ec860,_0x6897cb,_0x3b0231),this['_eventUnsubscribe']=this[_0xa93307(0x308)]();}if(_0x2e5654&&_0x536412){if(_0x7d6fb7===a[_0xa93307(0x2b6)][_0xa93307(0x1e0)]){const _0x4435ac=new b[(_0xa93307(0x1d1))](_0x2222be,_0xbf0f04),{pointGroup:_0x175464}=(_0x13a4e8=_0x4435ac[_0xa93307(0x216)](_0x2e5654,_0x536412))!=null?_0x13a4e8:{};if(_0x175464==null||_0x175464[_0xa93307(0x3e7)]===0x0)continue;this['_drawRectRange'](_0x17ca26,_0x175464,_0x5ec860,_0x6897cb);}else{if(!_0x203107){const {borderBoxPointGroup:_0x38e315}=_0xdfafc['getRangePointData'](_0x2e5654,_0x536412);if(_0x38e315[_0xa93307(0x3e7)]===0x0)continue;this[_0xa93307(0x1c5)](_0x17ca26,_0x38e315,_0x5ec860,_0x6897cb);}}}}}[_0x5b8990(0x29d)](_0x573de7,_0x722907,_0x3c203a,_0x1832c1,_0x380f76){const _0x4cb58c=_0x5b8990,_0x36206a=this[_0x4cb58c(0x381)](_0x722907),{left:_0x1635dc,top:_0x3a7711,height:_0x42cfe7}=_0x36206a,_0x2f36c0=this['_getScale'](),_0x306bdc=St/_0x2f36c0,_0x204c48=new p[(_0x4cb58c(0x209))](oe+a[_0x4cb58c(0x270)][_0x4cb58c(0x2b3)](k),{'left':_0x1635dc+_0x3c203a-_0x306bdc,'top':_0x3a7711+_0x1832c1,'height':_0x42cfe7,'width':ft,'fill':_0x573de7||p[_0x4cb58c(0x224)](a['COLORS'][_0x4cb58c(0x2e7)],0x0),'strokeWidth':_0x306bdc,'stroke':It,'evented':!0x0});this[_0x4cb58c(0x297)]=_0x204c48,this[_0x4cb58c(0x280)][_0x4cb58c(0x31c)](_0x204c48,b[_0x4cb58c(0x2d0)]);const _0x24a5fa=new p[(_0x4cb58c(0x209))](oe+a['Tools']['generateRandomId'](k),{'left':_0x1635dc+_0x3c203a-_0x306bdc,'top':_0x3a7711+_0x1832c1-ae/0x2,'height':ae,'width':ae,'fill':_0x573de7||p['getColor'](a['COLORS'][_0x4cb58c(0x2e7)],0x0),'strokeWidth':0x0,'stroke':_0x573de7||p['getColor'](a[_0x4cb58c(0x2e6)][_0x4cb58c(0x2e7)],0x0),'evented':!0x1});this[_0x4cb58c(0x1b2)]=_0x24a5fa,this['_scene'][_0x4cb58c(0x31c)](_0x24a5fa,b[_0x4cb58c(0x2d0)]);const _0x583f33=new te(oe+a[_0x4cb58c(0x270)][_0x4cb58c(0x2b3)](k),{'left':_0x1635dc+_0x3c203a-_0x306bdc,'top':_0x3a7711+_0x1832c1-K,'text':_0x380f76,'color':_0x573de7});this['_textBubble']=_0x583f33,this[_0x4cb58c(0x280)][_0x4cb58c(0x31c)](_0x583f33,b[_0x4cb58c(0x2d0)]),this[_0x4cb58c(0x2f2)]=!0x1;}[_0x5b8990(0x308)](){const _0x5f281d=_0x5b8990,_0x311c92=this[_0x5f281d(0x297)][_0x5f281d(0x17b)][_0x5f281d(0x2c1)](()=>{const _0x1d3c45=_0x5f281d;this[_0x1d3c45(0x2f2)]=!0x0;}),_0x9b3b2=this[_0x5f281d(0x297)][_0x5f281d(0x1d9)][_0x5f281d(0x2c1)](()=>{const _0x2e2b0e=_0x5f281d;this[_0x2e2b0e(0x223)]&&clearTimeout(this[_0x2e2b0e(0x223)]),this[_0x2e2b0e(0x223)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3888db=_0x5f281d;_0x311c92['unsubscribe'](),_0x9b3b2[_0x3888db(0x2b7)]();};}[_0x5b8990(0x1c5)](_0x1de91b,_0x35bd60,_0x2fc499,_0x3bbc77){const _0x2b7cd0=_0x5b8990,_0x24d304=new a[(_0x2b7cd0(0x1b6))](_0x1de91b)['setAlpha'](0.2)[_0x2b7cd0(0x16d)](),_0x466e59=new p[(_0x2b7cd0(0x305))](ut+a['Tools'][_0x2b7cd0(0x2b3)](k),{'pointsGroup':_0x35bd60,'fill':_0x24d304||p[_0x2b7cd0(0x224)](a[_0x2b7cd0(0x2e6)][_0x2b7cd0(0x2e7)],0.2),'left':_0x2fc499,'top':_0x3bbc77,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2b7cd0(0x372)][_0x2b7cd0(0x3e8)](_0x466e59),this[_0x2b7cd0(0x280)][_0x2b7cd0(0x31c)](_0x466e59,b[_0x2b7cd0(0x2d0)]);}[_0x5b8990(0x314)](_0x287612,_0x134c4e,_0x506fef,_0x3b2b13){const _0x1b6dbf=_0x5b8990,_0x50dbec=new a[(_0x1b6dbf(0x1b6))](_0x287612)[_0x1b6dbf(0x1cb)](0.2)['toRgbString'](),_0x557864=new p[(_0x1b6dbf(0x305))](dt+a[_0x1b6dbf(0x270)][_0x1b6dbf(0x2b3)](k),{'pointsGroup':_0x134c4e,'fill':_0x50dbec||p[_0x1b6dbf(0x224)](a[_0x1b6dbf(0x2e6)][_0x1b6dbf(0x2e7)],0.2),'left':_0x506fef,'top':_0x3b2b13,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1b6dbf(0x372)][_0x1b6dbf(0x3e8)](_0x557864),this['_scene'][_0x1b6dbf(0x31c)](_0x557864,b[_0x1b6dbf(0x2d0)]);}[_0x5b8990(0x381)](_0x5590d2){const _0x5cbade=_0x5590d2[0x0],_0x13df55=_0x5cbade[0x0],_0x20c5f0=_0x5cbade[0x2],{x:_0x130fd0,y:_0x217564}=_0x13df55,{x:_0x38a7aa,y:_0x52685c}=_0x20c5f0;return{'left':_0x130fd0,'top':_0x217564,'width':_0x38a7aa-_0x130fd0,'height':_0x52685c-_0x217564};}['_getScale'](){const _0x260ac6=_0x5b8990,{scaleX:_0x4b88ec,scaleY:_0x1bde10}=this[_0x260ac6(0x280)][_0x260ac6(0x217)]();return Math['max'](_0x4b88ec,_0x1bde10);}}var vt=Object['getOwnPropertyDescriptor'],gt=(_0x22b581,_0x1c3c9b,_0xa76d1f,_0x5093a2)=>{const _0x2bdd4b=_0x5b8990;for(var _0x22b58d=_0x5093a2>0x1?void 0x0:_0x5093a2?vt(_0x1c3c9b,_0xa76d1f):_0x1c3c9b,_0x1a2879=_0x22b581[_0x2bdd4b(0x3e7)]-0x1,_0x23d67c;_0x1a2879>=0x0;_0x1a2879--)(_0x23d67c=_0x22b581[_0x1a2879])&&(_0x22b58d=_0x23d67c(_0x22b58d)||_0x22b58d);return _0x22b58d;},V=(_0x3317ec,_0x40465e)=>(_0x2fe043,_0x53b0e1)=>_0x40465e(_0x2fe043,_0x53b0e1,_0x3317ec);let ve=class extends a[_0x5b8990(0x3d0)]{constructor(_0x3a8e79,_0x1384da,_0x5c0450,_0x4dbf37,_0x2e274b){const _0x1a6c30=_0x5b8990;super(),_(this,_0x1a6c30(0x187),[]),_(this,_0x1a6c30(0x3ba),[]),(this[_0x1a6c30(0x3b3)]=_0x3a8e79,this[_0x1a6c30(0x338)]=_0x1384da,this[_0x1a6c30(0x256)]=_0x5c0450,this[_0x1a6c30(0x20b)]=_0x4dbf37,this[_0x1a6c30(0x31d)]=_0x2e274b,this[_0x1a6c30(0x2c4)]());}['_init'](){const _0x9f5957=_0x5b8990,_0x5db9be=this[_0x9f5957(0x3b3)][_0x9f5957(0x39c)],_0x18b8d6=this[_0x9f5957(0x338)];this[_0x9f5957(0x2ee)](d[_0x9f5957(0x323)]([this[_0x9f5957(0x256)][_0x9f5957(0x331)](_0x5db9be),this['_themeService'][_0x9f5957(0x205)]])[_0x9f5957(0x27c)]($[_0x9f5957(0x26f)](([_0x3617d7,_0x3fe4d7])=>({'skeleton':_0x18b8d6['getSkeleton'](),'cursors':[..._0x3617d7[_0x9f5957(0x2a6)]()][_0x9f5957(0x309)](_0x52b4ed=>({..._0x52b4ed,'color':_0x3fe4d7[_0x52b4ed['color']]}))})))[_0x9f5957(0x1f0)](_0x16d9c2=>{const _0x43e870=_0x9f5957;if(this['_removeCollabCursors'](),_0x16d9c2){const {skeleton:_0x4f5187,cursors:_0x5b8275}=_0x16d9c2;this[_0x43e870(0x2b5)](_0x4f5187,_0x5b8275);}})),this[_0x9f5957(0x20a)](),this[_0x9f5957(0x39e)]();}['_updateCollabCursors'](_0x1896e6,_0x17e187){const _0x52c498=_0x5b8990,{scene:_0x2a99ae,mainComponent:_0x4c1525}=this[_0x52c498(0x3b3)],_0x4940ba=_0x17e187[_0x52c498(0x26f)](_0x4972ec=>new Ue(_0x4972ec,_0x2a99ae,_0x1896e6,_0x4c1525));this['_cursorShapes']=_0x4940ba,this[_0x52c498(0x3ba)]=_0x17e187;}[_0x5b8990(0x302)](){const _0x44a4f5=_0x5b8990;this[_0x44a4f5(0x2aa)]();const {scene:_0x5c7d40,mainComponent:_0x29b214}=this[_0x44a4f5(0x3b3)],_0xfc24e4=this[_0x44a4f5(0x338)][_0x44a4f5(0x1a5)](),_0x83a5bf=this[_0x44a4f5(0x3ba)][_0x44a4f5(0x26f)](_0x319c48=>new Ue(_0x319c48,_0x5c7d40,_0xfc24e4,_0x29b214));this[_0x44a4f5(0x187)]=_0x83a5bf;}[_0x5b8990(0x2aa)](){const _0x1f76b1=_0x5b8990;this[_0x1f76b1(0x187)]['forEach'](_0xc36276=>_0xc36276[_0x1f76b1(0x232)]()),this[_0x1f76b1(0x187)]=[];}['_initCommandExecutedListener'](){const _0x1286da=_0x5b8990,_0x3eff02=[b[_0x1286da(0x198)]['id']];this['disposeWithMe'](this[_0x1286da(0x20b)][_0x1286da(0x23b)](_0x387f94=>{const _0x36c4ae=_0x1286da;_0x3eff02[_0x36c4ae(0x18a)](_0x387f94['id'])&&_0x387f94[_0x36c4ae(0x3a3)][_0x36c4ae(0x39c)]===this[_0x36c4ae(0x3b3)][_0x36c4ae(0x39c)]&&this[_0x36c4ae(0x302)]();}));}[_0x5b8990(0x20a)](){const _0x3042b1=_0x5b8990;this[_0x3042b1(0x2ee)](a['fromEventSubject'](this[_0x3042b1(0x3b3)][_0x3042b1(0x292)]['onTransformChange$'])[_0x3042b1(0x27c)]($[_0x3042b1(0x3db)](_0x79210c=>_0x79210c['type']===p[_0x3042b1(0x225)][_0x3042b1(0x2e8)]),$[_0x3042b1(0x1fd)](0x10))[_0x3042b1(0x1f0)](()=>{const _0x52b2ec=_0x3042b1;this[_0x52b2ec(0x302)]();}));}};ve=gt([V(0x1,a[_0x5b8990(0x25d)](Y[_0x5b8990(0x382)])),V(0x2,a[_0x5b8990(0x25d)](x)),V(0x3,a[_0x5b8990(0x267)]),V(0x4,a[_0x5b8990(0x25d)](a[_0x5b8990(0x234)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x5b8990(0x2b0)]{constructor(_0x42f7d4,_0x1b93c7){const _0x1d3e24=_0x5b8990;super(_0x42f7d4,_0x1b93c7),_(this,'_color'),_(this,'_hovered',!0x1),_(this,'_range'),_(this,'_name',''),_(this,'_labelPosition',_0x1d3e24(0x365)),_(this,_0x1d3e24(0x284)),(_0x1b93c7&&this[_0x1d3e24(0x1c8)](_0x1b93c7),this[_0x1d3e24(0x17b)][_0x1d3e24(0x2c1)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x1d3e24(0x1d9)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x5b8990(0x1c8)](_0x265fed){const _0x4de02a=_0x5b8990;var _0x2a6813,_0x474268,_0x401ae8,_0x383ef6,_0x37fa03,_0x391751;this[_0x4de02a(0x32e)]=(_0x2a6813=_0x265fed[_0x4de02a(0x328)])!=null?_0x2a6813:this[_0x4de02a(0x32e)],this[_0x4de02a(0x358)]=(_0x474268=_0x265fed[_0x4de02a(0x2f8)])!=null?_0x474268:this['_hovered'],this[_0x4de02a(0x1cf)]=(_0x401ae8=_0x265fed[_0x4de02a(0x1d4)])!=null?_0x401ae8:this[_0x4de02a(0x1cf)],this[_0x4de02a(0x34a)]=(_0x383ef6=_0x265fed[_0x4de02a(0x29a)])!=null?_0x383ef6:this[_0x4de02a(0x34a)],this['_labelPosition']=(_0x37fa03=_0x265fed[_0x4de02a(0x276)])!=null?_0x37fa03:this[_0x4de02a(0x17d)],this[_0x4de02a(0x284)]=(_0x391751=_0x265fed[_0x4de02a(0x2bf)])!=null?_0x391751:this[_0x4de02a(0x284)],this[_0x4de02a(0x25a)]({'width':_0x265fed['width'],'height':_0x265fed['height']});}['onMouseMove'](_0x1c3d94){const _0x3ed8bc=_0x5b8990,{row:_0x312965,column:_0x253880}=_0x1c3d94;if(_0x312965>=this['_range'][_0x3ed8bc(0x3c8)]&&_0x312965<=this['_range'][_0x3ed8bc(0x341)]&&_0x253880>=this[_0x3ed8bc(0x1cf)]['startColumn']&&_0x253880<=this[_0x3ed8bc(0x1cf)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5b8990(0x1eb)](_0x459e94){return!0x1;}[_0x5b8990(0x17c)](_0x5adb18){const _0x576bde=_0x5b8990;p[_0x576bde(0x209)][_0x576bde(0x2e4)](_0x5adb18,{'width':this['width'],'height':this['height'],'strokeWidth':Ct,'stroke':this[_0x576bde(0x32e)],'evented':!0x1,'fill':this[_0x576bde(0x284)]}),this[_0x576bde(0x358)]&&(_0x5adb18[_0x576bde(0x244)](),_0x5adb18[_0x576bde(0x195)](0x1,0x0,0x0,0x1,this[_0x576bde(0x18c)],this[_0x576bde(0x17d)]==='bottom'?0x0:-0x14),te['drawWith'](_0x5adb18,{'text':this[_0x576bde(0x34a)],'color':this['_color']}),_0x5adb18['restore']());}}var pt=Object[_0x5b8990(0x184)],bt=(_0x4eb3f6,_0x5c548b,_0x3b899e,_0x260952)=>{const _0x5bcdc3=_0x5b8990;for(var _0x274b58=_0x260952>0x1?void 0x0:_0x260952?pt(_0x5c548b,_0x3b899e):_0x5c548b,_0x4124ff=_0x4eb3f6[_0x5bcdc3(0x3e7)]-0x1,_0x44ac39;_0x4124ff>=0x0;_0x4124ff--)(_0x44ac39=_0x4eb3f6[_0x4124ff])&&(_0x274b58=_0x44ac39(_0x274b58)||_0x274b58);return _0x274b58;},ce=(_0x48ca5c,_0x3fd02e)=>(_0x5e7027,_0x2f672e)=>_0x3fd02e(_0x5e7027,_0x2f672e,_0x48ca5c);const Et=0x1389;let ge=class extends a[_0x5b8990(0x3d0)]{constructor(_0x4666d6,_0x46db4f,_0x123df8,_0xfe3150){const _0x577220=_0x5b8990;super(),_(this,_0x577220(0x3ba),new Set()),_(this,_0x577220(0x186),null),(this['_context']=_0x4666d6,this[_0x577220(0x1e6)]=_0x46db4f,this[_0x577220(0x256)]=_0x123df8,this[_0x577220(0x31d)]=_0xfe3150,this[_0x577220(0x2c4)]());}[_0x5b8990(0x2c4)](){const _0x47a2c0=_0x5b8990;this[_0x47a2c0(0x1e6)]['currentSkeleton$']['pipe']($[_0x47a2c0(0x2dd)](this[_0x47a2c0(0x33a)]),$[_0x47a2c0(0x3c2)](_0x241e1a=>{const _0x31f4d6=_0x47a2c0;if(_0x241e1a){const _0x354767=_0x241e1a['sheetId'];return d[_0x31f4d6(0x323)](this[_0x31f4d6(0x256)][_0x31f4d6(0x331)](this[_0x31f4d6(0x3b3)][_0x31f4d6(0x39c)]),this[_0x31f4d6(0x31d)][_0x31f4d6(0x205)])['pipe']($['map'](([_0x8dab84,_0x41bafd])=>{const _0x38999e=_0x31f4d6,_0xaffdb0=new Map();return _0x8dab84[_0x38999e(0x312)]((_0x15d050,_0x27faee)=>{const _0xa47a78=_0x38999e;if(_0x15d050[_0xa47a78(0x326)]===_0x354767){const _0x2b06cd={..._0x15d050};_0x2b06cd[_0xa47a78(0x328)]=_0x41bafd[_0x15d050['color']],_0xaffdb0[_0xa47a78(0x1a0)](_0x27faee,_0x2b06cd);}}),{'skeleton':_0x241e1a,'cursors':_0xaffdb0};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5592ba,cursors:_0x3ad6b4})=>{const _0x7b28ba=_0x47a2c0;this[_0x7b28ba(0x2aa)](),_0x5592ba&&this[_0x7b28ba(0x2b5)](_0x5592ba,_0x3ad6b4);}),this[_0x47a2c0(0x1e6)][_0x47a2c0(0x25f)]['subscribe'](_0x10ebaa=>{const _0x28973d=_0x47a2c0;if(_0x10ebaa==null)return;const {skeleton:_0x214793}=_0x10ebaa,{scene:_0x1b12fc}=this['_context'];_0x1b12fc[_0x28973d(0x174)][_0x28973d(0x2c1)](a['debounce'](_0x54347a=>{const _0x497061=_0x28973d;var _0xe1356b,_0x37e383;const {offsetX:_0x445eef,offsetY:_0x5a4553}=_0x54347a,{x:_0x172b8e,y:_0x51cb09}=_0x1b12fc['getRelativeToViewportCoord'](p[_0x497061(0x1b3)][_0x497061(0x2da)]([_0x445eef,_0x5a4553])),{scaleX:_0x57ab48,scaleY:_0x2cd1ca}=_0x1b12fc['getAncestorScale'](),_0x10a24d=_0x1b12fc[_0x497061(0x1ca)](p[_0x497061(0x231)][_0x497061(0x1e9)]),_0xe6509b=_0x1b12fc['getVpScrollXYInfoByPosToVp'](p[_0x497061(0x1b3)][_0x497061(0x2da)]([_0x172b8e,_0x51cb09]),_0x10a24d),_0x3dd25a=_0x214793[_0x497061(0x2a4)](_0x445eef,_0x5a4553,_0x57ab48,_0x2cd1ca,_0xe6509b);((_0xe1356b=this[_0x497061(0x186)])==null?void 0x0:_0xe1356b[_0x497061(0x196)])===_0x3dd25a[_0x497061(0x196)]&&((_0x37e383=this['_lastPointer'])==null?void 0x0:_0x37e383['row'])===_0x3dd25a[_0x497061(0x2a0)]||this['_cursors'][_0x497061(0x312)](_0x5f0aa1=>{const _0x464f34=_0x497061;_0x5f0aa1[_0x464f34(0x171)](_0x3dd25a);});},0x64));});}['_updateCollabCursors'](_0x20a1cd,_0xb8e783){const _0x27ee22=_0x5b8990;var _0x17e885;const _0x47ed08=(_0x17e885=this[_0x27ee22(0x1e6)][_0x27ee22(0x3ca)]())==null?void 0x0:_0x17e885[_0x27ee22(0x1e1)];if(!_0x47ed08)return;const _0x8aff16=this[_0x27ee22(0x176)]();if(!_0x8aff16)return;this[_0x27ee22(0x3ba)][_0x27ee22(0x312)](_0x1673b4=>{const _0x3de3d5=_0x27ee22;_0x1673b4[_0x3de3d5(0x1de)]();});const {scene:_0x37a448}=_0x8aff16,_0x888055=Tt(Array[_0x27ee22(0x1dc)](_0xb8e783[_0x27ee22(0x2a6)]()))[_0x27ee22(0x26f)](_0x9a6b26=>{const _0x43f0f2=_0x27ee22,{color:_0x8d2639,range:_0x3d312b,name:_0x13c855,selection:_0x576517,sheetID:_0x273900}=_0x9a6b26,{startColumn:_0x68c339,startRow:_0x4b7cdd,endColumn:_0x3660f4,endRow:_0x29f30e}=_0x3d312b,_0x32a105=G['getCoordByCell'](_0x4b7cdd,_0x68c339,_0x37a448,_0x47ed08),_0x271489=G[_0x43f0f2(0x1f9)](_0x29f30e,_0x3660f4,_0x37a448,_0x47ed08),{columnHeaderHeightAndMarginTop:_0xd33a59}=_0x47ed08,{startX:_0xe6d47d,startY:_0x170843}=_0x32a105,{endX:_0x4892f9,endY:_0x13d6a7}=_0x271489,_0x147a41=_0x4892f9-_0xe6d47d,_0x43d4c7=_0x13d6a7-_0x170843,_0x1e8e46={'labelPosition':_0x170843-_0xd33a59>=K?_0x43f0f2(0x365):_0x43f0f2(0x2fc),'sheetID':_0x273900,'range':_0x3d312b,'color':_0x8d2639,'name':_0x13c855,'selection':_0x576517,'left':_0xe6d47d,'top':_0x170843,'width':_0x147a41,'height':_0x43d4c7,'evented':!0x1,'zIndex':Et};return new Ae(_0x13c855,_0x1e8e46);});_0x37a448[_0x27ee22(0x30e)](_0x888055,mt),this[_0x27ee22(0x3ba)]=new Set(_0x888055);}[_0x5b8990(0x2aa)](){const _0x46ed28=_0x5b8990;var _0x19cf7b;(_0x19cf7b=this[_0x46ed28(0x3ba)])==null||_0x19cf7b[_0x46ed28(0x312)](_0x2f4ee3=>_0x2f4ee3[_0x46ed28(0x232)]());}[_0x5b8990(0x176)](){const _0x220c17=_0x5b8990;return G[_0x220c17(0x1e2)](this['_context']['unit'],this['_context']);}};ge=bt([ce(0x1,a[_0x5b8990(0x25d)](G[_0x5b8990(0x1ba)])),ce(0x2,a[_0x5b8990(0x25d)](x)),ce(0x3,a['Inject'](a[_0x5b8990(0x234)]))],ge);function Tt(_0x1d5a85){const _0x4afc8a=_0x5b8990,_0x159de1=new Map();return _0x1d5a85[_0x4afc8a(0x312)](_0x1d5bbd=>{const _0x4796b2=_0x4afc8a;if(_0x159de1['has'](_0x1d5bbd[_0x4796b2(0x342)])){const _0x58062b=_0x159de1['get'](_0x1d5bbd['selection']);_0x58062b[_0x4796b2(0x29a)]+=',\x20'+_0x1d5bbd[_0x4796b2(0x29a)];}else _0x159de1[_0x4796b2(0x1a0)](_0x1d5bbd[_0x4796b2(0x342)],_0x1d5bbd);}),Array[_0x4afc8a(0x1dc)](_0x159de1[_0x4afc8a(0x2a6)]());}var E=function(){const _0x273e32=_0x5b8990;return E=Object[_0x273e32(0x2c6)]||function(_0x3e1887){const _0x39c4c0=_0x273e32;for(var _0x124956,_0x4cb317=0x1,_0x51c982=arguments[_0x39c4c0(0x3e7)];_0x4cb317<_0x51c982;_0x4cb317++){_0x124956=arguments[_0x4cb317];for(var _0x5a9454 in _0x124956)Object[_0x39c4c0(0x1ef)][_0x39c4c0(0x3a2)][_0x39c4c0(0x2d9)](_0x124956,_0x5a9454)&&(_0x3e1887[_0x5a9454]=_0x124956[_0x5a9454]);}return _0x3e1887;},E[_0x273e32(0x26a)](this,arguments);},Ot=function(_0x2cbb43,_0x322f87){const _0x397475=_0x5b8990;var _0xb501ac={};for(var _0x467798 in _0x2cbb43)Object[_0x397475(0x1ef)][_0x397475(0x3a2)]['call'](_0x2cbb43,_0x467798)&&_0x322f87['indexOf'](_0x467798)<0x0&&(_0xb501ac[_0x467798]=_0x2cbb43[_0x467798]);if(_0x2cbb43!=null&&typeof Object['getOwnPropertySymbols']==_0x397475(0x2e2)){for(var _0x54267e=0x0,_0x467798=Object[_0x397475(0x2cd)](_0x2cbb43);_0x54267e<_0x467798['length'];_0x54267e++)_0x322f87['indexOf'](_0x467798[_0x54267e])<0x0&&Object[_0x397475(0x1ef)][_0x397475(0x253)][_0x397475(0x2d9)](_0x2cbb43,_0x467798[_0x54267e])&&(_0xb501ac[_0x467798[_0x54267e]]=_0x2cbb43[_0x467798[_0x54267e]]);}return _0xb501ac;},be=M[_0x5b8990(0x2d7)](function(_0x2f81ed,_0x34b6a5){const _0x30e147=_0x5b8990;var _0x4c2762=_0x2f81ed[_0x30e147(0x1d3)],_0x53dfd0=_0x2f81ed['id'],_0x3f6088=_0x2f81ed[_0x30e147(0x2dc)],_0x2e3ded=_0x2f81ed[_0x30e147(0x355)],_0x35dfbf=Ot(_0x2f81ed,[_0x30e147(0x1d3),'id','className',_0x30e147(0x355)]),_0x519d56='univerjs-icon\x20univerjs-icon-'[_0x30e147(0x2de)](_0x53dfd0,'\x20')[_0x30e147(0x2de)](_0x3f6088||'')['trim'](),_0x1a5ac0=M[_0x30e147(0x2be)]('_'[_0x30e147(0x2de)](Ut()));return ye(_0x4c2762,''[_0x30e147(0x2de)](_0x53dfd0),{'defIds':_0x4c2762[_0x30e147(0x389)],'idSuffix':_0x1a5ac0[_0x30e147(0x27e)]},E({'ref':_0x34b6a5,'className':_0x519d56},_0x35dfbf),_0x2e3ded);});function ye(_0x2d7a8d,_0x4e8adf,_0x28aa8d,_0x11200c,_0x14944e){const _0x242265=_0x5b8990;return M['createElement'](_0x2d7a8d['tag'],E(E({'key':_0x4e8adf},Rt(_0x2d7a8d,_0x28aa8d,_0x14944e)),_0x11200c),(Dt(_0x2d7a8d,_0x28aa8d)[_0x242265(0x22b)]||[])['map'](function(_0x20c6cf,_0x28491c){const _0x49695c=_0x242265;return ye(_0x20c6cf,''[_0x49695c(0x2de)](_0x4e8adf,'-')[_0x49695c(0x2de)](_0x2d7a8d[_0x49695c(0x207)],'-')['concat'](_0x28491c),_0x28aa8d,void 0x0,_0x14944e);}));}function Rt(_0x19e9e9,_0x4b58ed,_0xf6f47c){const _0x15fa52=_0x5b8990;var _0x2e4d7d=E({},_0x19e9e9[_0x15fa52(0x2a3)]);_0xf6f47c!=null&&_0xf6f47c[_0x15fa52(0x311)]&&_0x2e4d7d[_0x15fa52(0x2ff)]===_0x15fa52(0x311)&&(_0x2e4d7d['fill']=_0xf6f47c[_0x15fa52(0x311)]),_0x19e9e9[_0x15fa52(0x207)]==='mask'&&_0x2e4d7d['id']&&(_0x2e4d7d['id']=_0x2e4d7d['id']+_0x4b58ed[_0x15fa52(0x2a7)]),Object[_0x15fa52(0x1b8)](_0x2e4d7d)[_0x15fa52(0x312)](function(_0x5859ce){const _0x186446=_0x15fa52;var _0x17faaf=_0x5859ce[0x0],_0xf1248c=_0x5859ce[0x1];_0x17faaf==='mask'&&typeof _0xf1248c==_0x186446(0x300)&&(_0x2e4d7d[_0x17faaf]=_0xf1248c[_0x186446(0x344)](/url\(#(.*)\)/,_0x186446(0x32c)[_0x186446(0x2de)](_0x4b58ed[_0x186446(0x2a7)],')')));});var _0x5d3a4f=_0x4b58ed[_0x15fa52(0x389)];return!_0x5d3a4f||_0x5d3a4f[_0x15fa52(0x3e7)]===0x0||(_0x19e9e9['tag']==='use'&&_0x2e4d7d[_0x15fa52(0x348)]&&(_0x2e4d7d[_0x15fa52(0x348)]=_0x2e4d7d[_0x15fa52(0x348)]+_0x4b58ed[_0x15fa52(0x2a7)]),Object['entries'](_0x2e4d7d)['forEach'](function(_0x25213e){const _0x5f144a=_0x15fa52;var _0x474166=_0x25213e[0x0],_0x1ddfb0=_0x25213e[0x1];typeof _0x1ddfb0==_0x5f144a(0x300)&&(_0x2e4d7d[_0x474166]=_0x1ddfb0['replace'](/url\(#(.*)\)/,_0x5f144a(0x32c)[_0x5f144a(0x2de)](_0x4b58ed[_0x5f144a(0x2a7)],')')));})),_0x2e4d7d;}function Dt(_0x5b3b70,_0x177b02){const _0x520f34=_0x5b8990;var _0x349240,_0x171e01=_0x177b02['defIds'];return!_0x171e01||_0x171e01[_0x520f34(0x3e7)]===0x0?_0x5b3b70:_0x5b3b70[_0x520f34(0x207)]===_0x520f34(0x3af)&&(!((_0x349240=_0x5b3b70[_0x520f34(0x22b)])===null||_0x349240===void 0x0)&&_0x349240[_0x520f34(0x3e7)])?E(E({},_0x5b3b70),{'children':_0x5b3b70[_0x520f34(0x22b)][_0x520f34(0x26f)](function(_0x9ecc8f){const _0x2f7c31=_0x520f34;return typeof _0x9ecc8f[_0x2f7c31(0x2a3)]['id']=='string'&&_0x171e01&&_0x171e01['indexOf'](_0x9ecc8f['attrs']['id'])>-0x1?E(E({},_0x9ecc8f),{'attrs':E(E({},_0x9ecc8f[_0x2f7c31(0x2a3)]),{'id':_0x9ecc8f['attrs']['id']+_0x177b02[_0x2f7c31(0x2a7)]})}):_0x9ecc8f;})}):_0x5b3b70;}function Ut(){const _0x3098f8=_0x5b8990;return Math[_0x3098f8(0x37e)]()[_0x3098f8(0x27b)](0x24)[_0x3098f8(0x28a)](0x2,0x8);}be[_0x5b8990(0x26e)]=_0x5b8990(0x26b);var Nt={'tag':'svg','attrs':{'fill':_0x5b8990(0x33f),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x5b8990(0x172)},'children':[{'tag':'g','attrs':{'clipPath':_0x5b8990(0x245)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x5b8990(0x1d5),'strokeLinecap':_0x5b8990(0x22f),'strokeLinejoin':_0x5b8990(0x22f),'strokeWidth':1.2}}]},{'tag':_0x5b8990(0x3af),'attrs':{},'children':[{'tag':_0x5b8990(0x396),'attrs':{'id':_0x5b8990(0x291)},'children':[{'tag':_0x5b8990(0x2ca),'attrs':{'fill':'#fff','d':_0x5b8990(0x18d)}}]}]}],'defIds':[_0x5b8990(0x291)]},$e=M['forwardRef'](function(_0x47c565,_0x399d82){const _0xff8334=_0x5b8990;return M[_0xff8334(0x3dc)](be,Object[_0xff8334(0x2c6)]({},_0x47c565,{'id':_0xff8334(0x1ed),'ref':_0x399d82,'icon':Nt}));});$e['displayName']=_0x5b8990(0x28d);var Mt={'tag':_0x5b8990(0x22d),'attrs':{'fill':_0x5b8990(0x33f),'viewBox':_0x5b8990(0x24f),'width':_0x5b8990(0x172),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5b8990(0x298)},'children':[{'tag':'path','attrs':{'stroke':_0x5b8990(0x1ee),'d':_0x5b8990(0x185),'strokeLinecap':_0x5b8990(0x22f),'strokeLinejoin':_0x5b8990(0x22f),'strokeWidth':1.2}}]},{'tag':_0x5b8990(0x3af),'attrs':{},'children':[{'tag':_0x5b8990(0x396),'attrs':{'id':_0x5b8990(0x30a)},'children':[{'tag':_0x5b8990(0x2ca),'attrs':{'fill':_0x5b8990(0x249),'d':_0x5b8990(0x18d),'transform':_0x5b8990(0x21e)}}]}]}],'defIds':[_0x5b8990(0x30a)]},xe=M[_0x5b8990(0x2d7)](function(_0x20785a,_0x2c9d76){const _0x31b09a=_0x5b8990;return M[_0x31b09a(0x3dc)](be,Object[_0x31b09a(0x2c6)]({},_0x20785a,{'id':'on-line-single','ref':_0x2c9d76,'icon':Mt}));});xe[_0x5b8990(0x26e)]='OnLineSingle';const Lt=_0x5b8990(0x1a7),Pt=_0x5b8990(0x18b),wt=_0x5b8990(0x179),At=_0x5b8990(0x3f6),yt=_0x5b8990(0x38d),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x3e6285){const _0x598fe1=_0x5b8990;switch(_0x3e6285){case u[_0x598fe1(0x36d)]['OFFLINE']:return _0x598fe1(0x30c);case u[_0x598fe1(0x36d)][_0x598fe1(0x2d6)]:return _0x598fe1(0x369);case u[_0x598fe1(0x36d)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x598fe1(0x36d)]['NOT_COLLAB']:return _0x598fe1(0x379);case u[_0x598fe1(0x36d)][_0x598fe1(0x31e)]:case u[_0x598fe1(0x36d)][_0x598fe1(0x268)]:return _0x598fe1(0x35a);case u['CollaborationStatus'][_0x598fe1(0x37b)]:case u[_0x598fe1(0x36d)][_0x598fe1(0x28f)]:return _0x598fe1(0x35c);}}function je(_0xcf9e9){const _0x12616d=_0x5b8990,{status$:_0x84c67e}=_0xcf9e9,_0x392d2b=O[_0x12616d(0x273)](_0x84c67e,u[_0x12616d(0x36d)][_0x12616d(0x322)]),_0x169859=O[_0x12616d(0x1d8)](a[_0x12616d(0x175)]),_0x347943=O[_0x12616d(0x1d8)](u['CollaborationSessionService']),_0x52bd7b=_0x392d2b!==u[_0x12616d(0x36d)][_0x12616d(0x388)],_0xe9a9fc=_0x169859['t']($t(_0x392d2b)),_0xb76f01=T['clsx'](H[_0x12616d(0x192)],{[H[_0x12616d(0x3d7)]]:_0x52bd7b,[H[_0x12616d(0x282)]]:!_0x52bd7b}),_0x279bf9=_0x52bd7b?P['jsx'](xe,{}):P[_0x12616d(0x343)]($e,{}),_0x38e33a=M[_0x12616d(0x3c3)](()=>{const _0x407c28=_0x12616d;_0x52bd7b||_0x347943[_0x407c28(0x169)]();},[_0x52bd7b,_0x347943]);function _0x5ca404(){const _0x2ef002=_0x12616d;return P['jsxs'](_0x2ef002(0x340),{'className':T[_0x2ef002(0x2c0)](_0xb76f01,_0x2ef002(0x2c5)),'onClick':_0x38e33a,'children':[P[_0x2ef002(0x343)](_0x2ef002(0x340),{'className':H['onlineStatusIcon'],'children':_0x279bf9}),P['jsx']('div',{'className':H['onlineStatusTitle'],'children':_0xe9a9fc})]});}return _0x52bd7b?_0x5ca404():P[_0x12616d(0x343)](T['Tooltip'],{'title':_0x169859['t'](_0x12616d(0x397)),'children':_0x5ca404()});}var xt=Object[_0x5b8990(0x184)],jt=(_0xf9985d,_0x52de0,_0x1fe95f,_0x9041a2)=>{const _0x29fb5e=_0x5b8990;for(var _0x42132e=_0x9041a2>0x1?void 0x0:_0x9041a2?xt(_0x52de0,_0x1fe95f):_0x52de0,_0x415022=_0xf9985d[_0x29fb5e(0x3e7)]-0x1,_0x41a31e;_0x415022>=0x0;_0x415022--)(_0x41a31e=_0xf9985d[_0x415022])&&(_0x42132e=_0x41a31e(_0x42132e)||_0x42132e);return _0x42132e;},X=(_0x937395,_0x50a273)=>(_0xd4d2d4,_0x599b45)=>_0x50a273(_0xd4d2d4,_0x599b45,_0x937395);exports[_0x5b8990(0x2df)]=class extends a[_0x5b8990(0x19a)]{constructor(_0x2792ba,_0x36e994,_0x5498ae,_0x3b72cd){const _0x5e7724=_0x5b8990;super(),_(this,_0x5e7724(0x385),new d[(_0x5e7724(0x3e4))](u[_0x5e7724(0x36d)][_0x5e7724(0x322)])),(this[_0x5e7724(0x2d5)]=_0x2792ba,this[_0x5e7724(0x1a8)]=_0x36e994,this[_0x5e7724(0x240)]=_0x5498ae,this['_uiPartsService']=_0x3b72cd,this['_initStatusComponent'](),this[_0x5e7724(0x1bf)]());}[_0x5b8990(0x1bf)](){const _0x24193a=_0x5b8990;this[_0x24193a(0x2ee)](this[_0x24193a(0x2d5)][_0x24193a(0x1c0)][_0x24193a(0x27c)](d[_0x24193a(0x3c2)](()=>{const _0x41662b=_0x24193a,_0x154943=this[_0x41662b(0x2d5)]['getFocusedUnit']();return _0x154943?this[_0x41662b(0x240)][_0x41662b(0x35b)](_0x154943[_0x41662b(0x257)]()):d['of'](null);}),d[_0x24193a(0x3c2)](_0x579930=>_0x579930?_0x579930[_0x24193a(0x3f3)]:d['of'](u[_0x24193a(0x36d)][_0x24193a(0x322)])))[_0x24193a(0x1f0)](_0x550352=>{const _0x4154bb=_0x24193a;this[_0x4154bb(0x385)][_0x4154bb(0x2c7)](_0x550352);}));}[_0x5b8990(0x3a6)](){const _0x4863e4=_0x5b8990;this['disposeWithMe'](this[_0x4863e4(0x332)][_0x4863e4(0x258)](O[_0x4863e4(0x2f9)]['HEADER_MENU'],()=>O[_0x4863e4(0x3b7)](Bt({'status$':this['_status$']['asObservable']()}),this[_0x4863e4(0x1a8)])));}},exports[_0x5b8990(0x2df)]=jt([X(0x0,a[_0x5b8990(0x35f)]),X(0x1,a[_0x5b8990(0x25d)](a[_0x5b8990(0x39d)])),X(0x2,a[_0x5b8990(0x25d)](u[_0x5b8990(0x214)])),X(0x3,O['IUIPartsService'])],exports[_0x5b8990(0x2df)]);function Bt(_0x32a2d6){const {status$:_0x54e83a}=_0x32a2d6;return function(){const _0x57d4bc=_0x18a2;return P[_0x57d4bc(0x343)](je,{'status$':_0x54e83a});};}var kt=Object[_0x5b8990(0x184)],Ht=(_0x787544,_0x4d90c9,_0x113add,_0x5d5ede)=>{const _0x33cf68=_0x5b8990;for(var _0x3928a3=_0x5d5ede>0x1?void 0x0:_0x5d5ede?kt(_0x4d90c9,_0x113add):_0x4d90c9,_0x4e01be=_0x787544[_0x33cf68(0x3e7)]-0x1,_0x401393;_0x4e01be>=0x0;_0x4e01be--)(_0x401393=_0x787544[_0x4e01be])&&(_0x3928a3=_0x401393(_0x3928a3)||_0x3928a3);return _0x3928a3;},y=(_0x417ecb,_0x49b522)=>(_0x4e1c6d,_0x3814bd)=>_0x49b522(_0x4e1c6d,_0x3814bd,_0x417ecb);let z=class extends a[_0x5b8990(0x19a)]{constructor(_0x1d047f,_0xb64b8a,_0x2f31e7,_0xb49300,_0x35f330,_0x2a97be){const _0x1bf13f=_0x5b8990;super(),this[_0x1bf13f(0x191)]=_0x1d047f,this['_localCacheService']=_0xb64b8a,this['_collaborationUIEventService']=_0x2f31e7,this[_0x1bf13f(0x3e2)]=_0xb49300,this['_notificationService']=_0x35f330,this[_0x1bf13f(0x36a)]=_0x2a97be,this[_0x1bf13f(0x2bb)](),this[_0x1bf13f(0x2fe)]();}[_0x5b8990(0x2bb)](){const _0x2446ee=_0x5b8990;this[_0x2446ee(0x2ee)](this[_0x2446ee(0x191)][_0x2446ee(0x2f6)](()=>{const _0x1d62c1=_0x2446ee;if(this[_0x1d62c1(0x3d5)][_0x1d62c1(0x1c9)]['size'])return this['_localeService']['t'](_0x1d62c1(0x219));}));}[_0x5b8990(0x2fe)](){const _0x3d8bc6=_0x5b8990;this['disposeWithMe'](this[_0x3d8bc6(0x3b9)][_0x3d8bc6(0x290)][_0x3d8bc6(0x1f0)](_0x5c57da=>{const _0x3bf086=_0x3d8bc6;_0x5c57da['id']===u[_0x3bf086(0x247)]['OTHER_CLIENT_EDITING']&&this[_0x3bf086(0x3e2)][_0x3bf086(0x289)]({'type':T[_0x3bf086(0x352)][_0x3bf086(0x35d)],'content':this[_0x3bf086(0x36a)]['t'](_0x3bf086(0x266))}),_0x5c57da['id']===u['CollaborationUIEventId'][_0x3bf086(0x2b2)]&&this[_0x3bf086(0x3e2)][_0x3bf086(0x289)]({'type':T[_0x3bf086(0x352)][_0x3bf086(0x35d)],'content':this[_0x3bf086(0x36a)]['t'](_0x3bf086(0x2cf))}),_0x5c57da['id']===u['CollaborationUIEventId'][_0x3bf086(0x2fd)]&&this[_0x3bf086(0x243)]['show']({'title':this[_0x3bf086(0x36a)]['t'](_0x3bf086(0x307)),'content':this['_localeService']['t'](_0x3bf086(0x248)),'type':_0x3bf086(0x1e5),'duration':0x0}),_0x5c57da['id']===u[_0x3bf086(0x247)][_0x3bf086(0x2d6)]&&this['_messageService'][_0x3bf086(0x289)]({'type':T['MessageType'][_0x3bf086(0x274)],'content':this['_localeService']['t'](_0x3bf086(0x2cf))+'('+_0x5c57da['data']+')'}),_0x5c57da['id']===u[_0x3bf086(0x247)][_0x3bf086(0x353)]&&this['_messageService']['show']({'type':T[_0x3bf086(0x352)][_0x3bf086(0x35d)],'content':this[_0x3bf086(0x36a)]['t'](_0x5c57da[_0x3bf086(0x1ea)]||'')}),_0x5c57da['id']===u[_0x3bf086(0x247)][_0x3bf086(0x17f)]&&this['_messageService'][_0x3bf086(0x289)]({'type':T[_0x3bf086(0x352)]['Warning'],'content':this['_localeService']['t'](_0x3bf086(0x2fb))}),_0x5c57da['id']===u[_0x3bf086(0x247)][_0x3bf086(0x233)]&&this['_messageService'][_0x3bf086(0x289)]({'type':T[_0x3bf086(0x352)][_0x3bf086(0x274)],'content':this[_0x3bf086(0x36a)]['t']('session.connection-failed')}),_0x5c57da['id']===u[_0x3bf086(0x247)][_0x3bf086(0x3b2)]&&this['_messageService']['show']({'type':T[_0x3bf086(0x352)][_0x3bf086(0x274)],'content':this[_0x3bf086(0x36a)]['t'](_0x3bf086(0x380))});}));}};z=Ht([y(0x0,O[_0x5b8990(0x19d)]),y(0x1,u[_0x5b8990(0x246)]),y(0x2,a[_0x5b8990(0x25d)](u[_0x5b8990(0x31a)])),y(0x3,O[_0x5b8990(0x21f)]),y(0x4,O['INotificationService']),y(0x5,a[_0x5b8990(0x25d)](a[_0x5b8990(0x175)]))],z);const Ft=_0x5b8990(0x38e),Ne={},Ee=a[_0x5b8990(0x293)](_0x5b8990(0x37f));var Wt=Object[_0x5b8990(0x184)],Yt=(_0x360bb7,_0x4cb17c,_0x5dd099,_0x4c4d61)=>{const _0xcf48cd=_0x5b8990;for(var _0x11274f=_0x4c4d61>0x1?void 0x0:_0x4c4d61?Wt(_0x4cb17c,_0x5dd099):_0x4cb17c,_0x4961ef=_0x360bb7[_0xcf48cd(0x3e7)]-0x1,_0x337c40;_0x4961ef>=0x0;_0x4961ef--)(_0x337c40=_0x360bb7[_0x4961ef])&&(_0x11274f=_0x337c40(_0x11274f)||_0x11274f);return _0x11274f;},F=(_0x40e9d1,_0xa613e0)=>(_0x1162a9,_0x38bafe)=>_0xa613e0(_0x1162a9,_0x38bafe,_0x40e9d1);exports[_0x5b8990(0x3e0)]=class extends a['RxDisposable']{constructor(_0x5a43f9,_0x107a1a,_0x14ceca,_0x5e18ef,_0xed0f88){const _0x5b0ed2=_0x5b8990;super(),this['_urlService']=_0x5a43f9,this[_0x5b0ed2(0x3eb)]=_0x107a1a,this[_0x5b0ed2(0x20b)]=_0x14ceca,this[_0x5b0ed2(0x16f)]=_0x5e18ef,_0xed0f88?_0xed0f88==null||_0xed0f88[_0x5b0ed2(0x333)]()['then'](()=>this[_0x5b0ed2(0x2c4)]()):(this['_logService']['debug'](_0x5b0ed2(0x241),_0x5b0ed2(0x368)),this['_init']());}async[_0x5b8990(0x2c4)](){const _0x5c3855=_0x5b8990,_0x2185ee=this[_0x5c3855(0x18e)][_0x5c3855(0x357)](_0x5c3855(0x237)),_0x99aac5=this['_urlService'][_0x5c3855(0x357)]('type'),_0x592bee=this['_urlService'][_0x5c3855(0x357)](_0x5c3855(0x1ec));if(!_0x2185ee||!_0x99aac5){this['_logService'][_0x5c3855(0x27f)](_0x5c3855(0x241),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4d5786=await this['_dataLoaderService'][_0x5c3855(0x208)](_0x2185ee,Number(_0x99aac5),_0x592bee);_0x4d5786&&_0x4d5786 instanceof a[_0x5c3855(0x384)]&&this['_setupSubUnitSync'](_0x4d5786);}async['_setupSubUnitSync'](_0x4f2595){const _0x153b56=_0x5b8990;await this[_0x153b56(0x36c)](_0x4f2595),_0x4f2595[_0x153b56(0x264)][_0x153b56(0x27c)](d[_0x153b56(0x2dd)](this[_0x153b56(0x33a)]))[_0x153b56(0x1f0)](_0x4dcd18=>{_0x4dcd18&&this['_updateURLWithCurrentState'](_0x4dcd18);}),this[_0x153b56(0x18e)][_0x153b56(0x33e)][_0x153b56(0x27c)](d[_0x153b56(0x2dd)](this[_0x153b56(0x33a)]))['subscribe'](()=>this[_0x153b56(0x36c)](_0x4f2595));}[_0x5b8990(0x182)](_0x45b628,_0x2c0c4b=!0x1){const _0x5ad369=_0x5b8990,_0x522e2d=this['_urlService'][_0x5ad369(0x357)](_0x5ad369(0x1ec));_0x45b628[_0x5ad369(0x3a4)]()!==_0x522e2d&&this['_urlService'][_0x5ad369(0x1a1)](_0x5ad369(0x1ec),_0x45b628[_0x5ad369(0x3a4)](),_0x2c0c4b);}async[_0x5b8990(0x36c)](_0x35ce53){const _0x3c2276=_0x5b8990;var _0x4e3e4c;const _0x4f1ecd=this[_0x3c2276(0x18e)][_0x3c2276(0x357)]('subunit');if(!_0x4f1ecd||!_0x35ce53['getSheetBySheetId'](_0x4f1ecd)){const _0x2c92cc=_0x35ce53[_0x3c2276(0x26d)]()[0x0],_0x471236=_0x35ce53[_0x3c2276(0x1bc)](_0x2c92cc);if(!_0x471236)return;this[_0x3c2276(0x182)](_0x471236,!0x0),await this['_commandService'][_0x3c2276(0x2ec)](g[_0x3c2276(0x2bc)]['id'],{'unitId':_0x35ce53[_0x3c2276(0x257)](),'subUnitId':_0x2c92cc});return;}((_0x4e3e4c=_0x35ce53[_0x3c2276(0x2b9)]())==null?void 0x0:_0x4e3e4c['getSheetId']())!==_0x4f1ecd&&await this[_0x3c2276(0x20b)][_0x3c2276(0x2ec)](g[_0x3c2276(0x2bc)]['id'],{'unitId':_0x35ce53['getUnitId'](),'subUnitId':_0x4f1ecd});}},exports[_0x5b8990(0x3e0)]=Yt([F(0x0,Ee),F(0x1,a[_0x5b8990(0x1e7)]),F(0x2,a[_0x5b8990(0x267)]),F(0x3,a[_0x5b8990(0x25d)](u['DataLoaderService'])),F(0x4,a[_0x5b8990(0x2c8)](Ke[_0x5b8990(0x3c7)]))],exports['CollaborationDataLoaderController']);function _0x18a2(_0x250035,_0x1ed6ca){const _0x1f87d2=_0x1f87();return _0x18a2=function(_0x18a248,_0x515a61){_0x18a248=_0x18a248-0x167;let _0x55efdf=_0x1f87d2[_0x18a248];return _0x55efdf;},_0x18a2(_0x250035,_0x1ed6ca);}var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x1c642d,_0x349932,_0x599866,_0x4b36ed)=>{for(var _0x49a96e=_0x4b36ed>0x1?void 0x0:_0x4b36ed?Vt(_0x349932,_0x599866):_0x349932,_0x21b97d=_0x1c642d['length']-0x1,_0x58b051;_0x21b97d>=0x0;_0x21b97d--)(_0x58b051=_0x1c642d[_0x21b97d])&&(_0x49a96e=_0x58b051(_0x49a96e)||_0x49a96e);return _0x49a96e;},le=(_0x41deed,_0x58fe05)=>(_0x14c642,_0x50bd84)=>_0x58fe05(_0x14c642,_0x50bd84,_0x41deed);let J=class{constructor(_0x745eb0,_0x26c830,_0x306ce4){const _0x50f3a5=_0x5b8990;this[_0x50f3a5(0x1a8)]=_0x745eb0,this[_0x50f3a5(0x2a1)]=_0x26c830,this[_0x50f3a5(0x1db)]=_0x306ce4;}[_0x5b8990(0x177)](_0x27ebe8){const _0x401143=_0x5b8990;this[_0x401143(0x29e)](_0x27ebe8),this[_0x401143(0x1c7)](_0x27ebe8);}['transformRemoteChangeset'](_0x4f8c9f){const _0x33cbce=_0x5b8990,{unitID:_0x38a479}=_0x4f8c9f,_0x5afe2e=this[_0x33cbce(0x1db)][_0x33cbce(0x212)](_0x38a479)[_0x33cbce(0x204)](b[_0x33cbce(0x324)]),{redoCache:_0x5cba00}=_0x5afe2e[_0x33cbce(0x39a)]();if(_0x5cba00[_0x33cbce(0x3e7)]===0x0)return _0x4f8c9f;let _0x25f100=a[_0x33cbce(0x270)][_0x33cbce(0x21d)](_0x4f8c9f[_0x33cbce(0x310)][0x0]);for(let _0x5d3e59=0x0;_0x5d3e59<_0x5cba00[_0x33cbce(0x3e7)];_0x5d3e59++){const _0x29138f={'id':'doc.mutation.rich-text-editing','params':{..._0x5cba00[_0x5d3e59]}},_0x5d014a=this['_transformService'][_0x33cbce(0x25b)](_0x25f100,_0x29138f,!0x1);if(m[_0x33cbce(0x188)](_0x5d014a))throw _0x5d014a[_0x33cbce(0x1e5)];_0x25f100=_0x5d014a['m1Prime'];}return{...a['Tools']['deepClone'](_0x4f8c9f),'mutations':[_0x25f100]};}[_0x5b8990(0x29e)](_0x19157a){const _0x27fe34=_0x5b8990,{unitID:_0x3e7a4a}=_0x19157a,_0x10f23d=this[_0x27fe34(0x1db)][_0x27fe34(0x212)](_0x3e7a4a)[_0x27fe34(0x204)](b[_0x27fe34(0x324)]),{undoCache:_0x148503,redoCache:_0x23b081}=_0x10f23d[_0x27fe34(0x39a)]();if(_0x148503[_0x27fe34(0x3e7)]===0x0||_0x23b081[_0x27fe34(0x3e7)]===0x0)return;const _0x30b489=[],_0xa461d0=[];let _0x11510f=a[_0x27fe34(0x270)][_0x27fe34(0x21d)](_0x19157a[_0x27fe34(0x310)][0x0]),_0x34c48d=a['Tools']['deepClone'](_0x19157a['mutations'][0x0]);for(let _0x49efb2=_0x148503[_0x27fe34(0x3e7)]-0x1;_0x49efb2>=0x0;_0x49efb2--){const _0x5bdab0={'id':_0x27fe34(0x3ea),'params':{..._0x148503[_0x49efb2]}},_0x40c012={'id':_0x27fe34(0x3ea),'params':{..._0x23b081[_0x49efb2]}},_0x36be8e=this[_0x27fe34(0x2a1)][_0x27fe34(0x25b)](_0x11510f,_0x5bdab0,!0x1),_0x1b0fc1=this[_0x27fe34(0x2a1)][_0x27fe34(0x25b)](_0x34c48d,_0x40c012,!0x1);if(m[_0x27fe34(0x188)](_0x36be8e))throw _0x36be8e['error'];if(m[_0x27fe34(0x188)](_0x1b0fc1))throw _0x1b0fc1['error'];_0x30b489[_0x27fe34(0x2a8)](_0x36be8e['m2Prime'][_0x27fe34(0x3a3)]),_0xa461d0['unshift'](_0x1b0fc1[_0x27fe34(0x2ed)][_0x27fe34(0x3a3)]),_0x11510f=_0x36be8e[_0x27fe34(0x39f)],_0x34c48d=_0x1b0fc1['m1Prime'];}_0x10f23d[_0x27fe34(0x1c6)]({'undoCache':_0x30b489,'redoCache':_0xa461d0});}[_0x5b8990(0x1c7)](_0x347dce){const _0x13f76d=_0x5b8990,{unitID:_0x15452e}=_0x347dce,_0x101ba5=this[_0x13f76d(0x1db)][_0x13f76d(0x212)](_0x15452e)['with'](b[_0x13f76d(0x324)]),_0x343c4a=_0x101ba5[_0x13f76d(0x2c2)]();if(_0x343c4a==null)return;const _0x1a3cd0=[{'id':_0x13f76d(0x3ea),'params':{'unitId':_0x347dce[_0x13f76d(0x299)],'actions':null,'textRanges':[_0x343c4a]}}],_0x3f1a99=this['_transformService'][_0x13f76d(0x319)](_0x347dce,_0x1a3cd0);if(!m[_0x13f76d(0x374)](_0x3f1a99))throw _0x3f1a99['error'];const _0x2e0859=_0x3f1a99['m2Prime'][0x0][_0x13f76d(0x3a3)][_0x13f76d(0x383)];Array['isArray'](_0x2e0859)&&_0x2e0859['length']&&_0x101ba5[_0x13f76d(0x23a)](_0x2e0859[0x0]);}};J=Xt([le(0x0,a[_0x5b8990(0x25d)](a['Injector'])),le(0x1,m[_0x5b8990(0x173)]),le(0x2,p[_0x5b8990(0x28c)])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x4fb035,_0x57fb90,_0x392a33,_0x1a6d57)=>{const _0x6174a7=_0x5b8990;for(var _0x52ea46=_0x1a6d57>0x1?void 0x0:_0x1a6d57?Gt(_0x57fb90,_0x392a33):_0x57fb90,_0x4eab95=_0x4fb035[_0x6174a7(0x3e7)]-0x1,_0xc31a01;_0x4eab95>=0x0;_0x4eab95--)(_0xc31a01=_0x4fb035[_0x4eab95])&&(_0x52ea46=_0xc31a01(_0x52ea46)||_0x52ea46);return _0x52ea46;},_e=(_0x13ea26,_0x8ea985)=>(_0x4d697a,_0x4e388f)=>_0x8ea985(_0x4d697a,_0x4e388f,_0x13ea26);let Z=class{constructor(_0x29d7b1,_0xa4e41b,_0x5ce355){const _0x248f27=_0x5b8990;this[_0x248f27(0x1a8)]=_0x29d7b1,this[_0x248f27(0x2a1)]=_0xa4e41b,this[_0x248f27(0x3c5)]=_0x5ce355;}[_0x5b8990(0x197)](_0xe753de){const _0x51750d=_0x5b8990;this[_0x51750d(0x1f2)](_0xe753de);}[_0x5b8990(0x38f)](_0x231ce9){const _0x351c55=_0x5b8990,{unitID:_0x3278f3}=_0x231ce9,{collaboration:_0x12e825}=this[_0x351c55(0x3c5)][_0x351c55(0x24c)](_0x3278f3);if(_0x12e825[_0x351c55(0x3e7)]===0x0)return _0x231ce9;let _0x4cbd4c=a[_0x351c55(0x270)]['deepClone'](_0x231ce9[_0x351c55(0x310)][0x0]);for(let _0x223006=0x0;_0x223006<_0x12e825['length'];_0x223006++){const _0x5e7733={'id':_0x351c55(0x3ea),'params':{'unitId':_0x12e825[_0x223006][_0x351c55(0x39c)],..._0x12e825[_0x223006][_0x351c55(0x278)]}},_0x50295b=this[_0x351c55(0x2a1)][_0x351c55(0x25b)](_0x4cbd4c,_0x5e7733,!0x1);if(m[_0x351c55(0x188)](_0x50295b))throw _0x50295b['error'];_0x4cbd4c=_0x50295b['m1Prime'];}return{...a[_0x351c55(0x270)][_0x351c55(0x21d)](_0x231ce9),'mutations':[_0x4cbd4c]};}[_0x5b8990(0x1f2)](_0x37e9a3){const _0x2cf231=_0x5b8990,{unitID:_0x1f469e}=_0x37e9a3,{history:_0x567fa6,collaboration:_0x51521d}=this[_0x2cf231(0x3c5)]['getStateCache'](_0x1f469e);if(_0x567fa6[_0x2cf231(0x3e7)]===0x0&&_0x51521d[_0x2cf231(0x3e7)]===0x0)return;const _0x5e5f7d=[],_0x4d7868=[];let _0x3b956b=a[_0x2cf231(0x270)]['deepClone'](_0x37e9a3[_0x2cf231(0x310)][0x0]),_0x4ead5c=a['Tools'][_0x2cf231(0x21d)](_0x37e9a3[_0x2cf231(0x310)][0x0]);for(let _0x23a247=_0x567fa6[_0x2cf231(0x3e7)]-0x1;_0x23a247>=0x0;_0x23a247--){const _0x51f2e6={'id':_0x2cf231(0x3ea),'params':{'unitId':_0x567fa6[_0x23a247][_0x2cf231(0x39c)],..._0x567fa6[_0x23a247][_0x2cf231(0x2b4)]}},_0xbc6919={'id':_0x2cf231(0x3ea),'params':{'unitId':_0x567fa6[_0x23a247][_0x2cf231(0x39c)],..._0x567fa6[_0x23a247]['redoState']}},_0x3cb3ba=this[_0x2cf231(0x2a1)][_0x2cf231(0x25b)](_0x3b956b,_0x51f2e6,!0x1),_0x2a8c4f=this[_0x2cf231(0x2a1)]['transformMutation'](_0x4ead5c,_0xbc6919,!0x1);if(m[_0x2cf231(0x188)](_0x3cb3ba))throw _0x3cb3ba['error'];if(m[_0x2cf231(0x188)](_0x2a8c4f))throw _0x2a8c4f['error'];_0x5e5f7d['unshift']({..._0x567fa6[_0x23a247],'undoState':_0x3cb3ba[_0x2cf231(0x2ed)][_0x2cf231(0x3a3)],'redoState':_0x2a8c4f[_0x2cf231(0x2ed)]['params']}),_0x3b956b=_0x3cb3ba['m1Prime'],_0x4ead5c=_0x2a8c4f['m1Prime'];}_0x3b956b=a[_0x2cf231(0x270)][_0x2cf231(0x21d)](_0x37e9a3[_0x2cf231(0x310)][0x0]),_0x4ead5c=a['Tools'][_0x2cf231(0x21d)](_0x37e9a3[_0x2cf231(0x310)][0x0]);for(let _0x3c8f3f=_0x51521d['length']-0x1;_0x3c8f3f>=0x0;_0x3c8f3f--){const _0x19503c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x51521d[_0x3c8f3f]['unitId'],..._0x51521d[_0x3c8f3f][_0x2cf231(0x2b4)]}},_0x44c319={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x51521d[_0x3c8f3f][_0x2cf231(0x39c)],..._0x51521d[_0x3c8f3f][_0x2cf231(0x278)]}},_0x5c0697=this[_0x2cf231(0x2a1)][_0x2cf231(0x25b)](_0x3b956b,_0x19503c,!0x1),_0x56e451=this[_0x2cf231(0x2a1)][_0x2cf231(0x25b)](_0x4ead5c,_0x44c319,!0x1);if(m['isTransformMutationFailure'](_0x5c0697))throw _0x5c0697[_0x2cf231(0x1e5)];if(m['isTransformMutationFailure'](_0x56e451))throw _0x56e451['error'];_0x4d7868[_0x2cf231(0x2a8)]({..._0x51521d[_0x3c8f3f],'undoState':_0x5c0697['m2Prime']['params'],'redoState':_0x56e451[_0x2cf231(0x2ed)][_0x2cf231(0x3a3)]}),_0x3b956b=_0x5c0697[_0x2cf231(0x39f)],_0x4ead5c=_0x56e451[_0x2cf231(0x39f)];}this[_0x2cf231(0x3c5)][_0x2cf231(0x1e3)](_0x1f469e,{'history':_0x5e5f7d,'collaboration':_0x4d7868});}};Z=qt([_e(0x0,a[_0x5b8990(0x25d)](a[_0x5b8990(0x39d)])),_e(0x1,m['ITransformService']),_e(0x2,a[_0x5b8990(0x25d)](b['DocStateChangeManagerService']))],Z);var Kt=Object[_0x5b8990(0x184)],zt=(_0x2e19d6,_0x5c8a3,_0x295b9d,_0x57db85)=>{const _0xee97d8=_0x5b8990;for(var _0x26271c=_0x57db85>0x1?void 0x0:_0x57db85?Kt(_0x5c8a3,_0x295b9d):_0x5c8a3,_0x491733=_0x2e19d6[_0xee97d8(0x3e7)]-0x1,_0x3be0cd;_0x491733>=0x0;_0x491733--)(_0x3be0cd=_0x2e19d6[_0x491733])&&(_0x26271c=_0x3be0cd(_0x26271c)||_0x26271c);return _0x26271c;},Me=(_0x35d7d3,_0x22450d)=>(_0x79d284,_0x4d9e1e)=>_0x22450d(_0x79d284,_0x4d9e1e,_0x35d7d3);let Q=class{constructor(_0x55c5d9,_0x236e6f){const _0x53fdb6=_0x5b8990;this['_injector']=_0x55c5d9,this[_0x53fdb6(0x2a1)]=_0x236e6f;}[_0x5b8990(0x16b)](_0x101eff){const _0x3170ca=_0x5b8990;var _0x5aef3c;const _0x115588=this[_0x3170ca(0x1a8)]['get'](Y[_0x3170ca(0x3cf)]),_0x344d77=(_0x5aef3c=_0x115588[_0x3170ca(0x375)]())!=null?_0x5aef3c:[];if(_0x344d77['length']===0x0)return;const _0x1c567a=_0x101eff[_0x3170ca(0x299)],_0x5d9ba4=[{'id':_0x3170ca(0x3ea),'params':{'unitId':_0x1c567a,'actions':null,'textRanges':_0x344d77}}],_0x17b757=this[_0x3170ca(0x2a1)][_0x3170ca(0x319)](_0x101eff,_0x5d9ba4);if(!m[_0x3170ca(0x374)](_0x17b757))throw _0x17b757[_0x3170ca(0x1e5)];const _0x228eb4=_0x17b757['m2Prime'][0x0][_0x3170ca(0x3a3)][_0x3170ca(0x383)];Array[_0x3170ca(0x242)](_0x228eb4)&&_0x228eb4[_0x3170ca(0x3e7)]&&_0x115588[_0x3170ca(0x221)](_0x228eb4,{'unitId':_0x1c567a,'subUnitId':_0x1c567a},!0x1);}};Q=zt([Me(0x0,a[_0x5b8990(0x25d)](a[_0x5b8990(0x39d)])),Me(0x1,m[_0x5b8990(0x173)])],Q);var Jt=Object['getOwnPropertyDescriptor'],Zt=(_0x560c95,_0x3a38cc,_0xe0cf1e,_0xe81bc9)=>{const _0x3b556d=_0x5b8990;for(var _0x5bc113=_0xe81bc9>0x1?void 0x0:_0xe81bc9?Jt(_0x3a38cc,_0xe0cf1e):_0x3a38cc,_0x4ab09c=_0x560c95[_0x3b556d(0x3e7)]-0x1,_0xb5b71a;_0x4ab09c>=0x0;_0x4ab09c--)(_0xb5b71a=_0x560c95[_0x4ab09c])&&(_0x5bc113=_0xb5b71a(_0x5bc113)||_0x5bc113);return _0x5bc113;},N=(_0x20e774,_0x18df22)=>(_0x48b8e4,_0x2fa0d8)=>_0x18df22(_0x48b8e4,_0x2fa0d8,_0x20e774);let ee=class extends a['Disposable']{constructor(_0x4c6e1b,_0x3637fe,_0xf33801,_0x2968ad,_0x336f9f,_0x4059f6,_0x918c68,_0x2fc73c){const _0x57c3df=_0x5b8990;super(),_(this,_0x57c3df(0x385),new d['BehaviorSubject'](u[_0x57c3df(0x36d)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x4c6e1b,this[_0x57c3df(0x240)]=_0x3637fe,this[_0x57c3df(0x238)]=_0xf33801,this[_0x57c3df(0x24d)]=_0x2968ad,this['_docTransformSelectionsService']=_0x336f9f,this[_0x57c3df(0x3a1)]=_0x4059f6,this[_0x57c3df(0x3e2)]=_0x918c68,this[_0x57c3df(0x36a)]=_0x2fc73c,this[_0x57c3df(0x32d)]());}['_initEntityListener'](){const _0x391330=_0x5b8990;this['disposeWithMe'](this['_collaborationController'][_0x391330(0x3d4)][_0x391330(0x1f0)](_0x8856df=>{const _0x667ebc=_0x391330,_0x517cb8=this[_0x667ebc(0x3c5)][_0x667ebc(0x2e3)]['subscribe'](_0x55a4f7=>{const _0x378665=_0x667ebc;if(_0x55a4f7==null)return;const {unitId:_0xeac571,redoState:_0x536573,commandId:_0x22a346}=_0x55a4f7;if(_0xeac571!==_0x8856df[_0x378665(0x299)])return;const _0x4ee75a={'id':_0x22a346,'type':a['CommandType'][_0x378665(0x321)],'params':{'unitId':_0xeac571,'actions':_0x536573['actions'],'textRanges':null}};_0x8856df[_0x378665(0x3b6)](_0x4ee75a);});if(_0x8856df['disposeWithMe'](_0x517cb8),_0x8856df instanceof u['DocCollaborationEntity']){const _0x422ac9={'onTransformIME':_0x53d5fc=>this[_0x667ebc(0x238)][_0x667ebc(0x177)](_0x53d5fc),'onTransformState':_0x205335=>this[_0x667ebc(0x24d)][_0x667ebc(0x197)](_0x205335),'onTransformSelections':_0x64c836=>this[_0x667ebc(0x32b)][_0x667ebc(0x16b)](_0x64c836),'onSyncEditingCollabCursor':_0x553bc2=>this[_0x667ebc(0x3a1)][_0x667ebc(0x16e)](_0x553bc2),'onTransformRemoteChangesetByIMECache':_0x17358b=>this[_0x667ebc(0x238)][_0x667ebc(0x38f)](_0x17358b),'onTransformRemoteChangesetByStateCache':_0x11f3da=>this[_0x667ebc(0x24d)][_0x667ebc(0x38f)](_0x11f3da)};_0x8856df['addHandlerCallback'](_0x422ac9);}}));}};ee=Zt([N(0x0,a[_0x5b8990(0x25d)](b['DocStateChangeManagerService'])),N(0x1,a[_0x5b8990(0x25d)](u['CollaborationController'])),N(0x2,a[_0x5b8990(0x25d)](J)),N(0x3,a[_0x5b8990(0x25d)](Z)),N(0x4,a[_0x5b8990(0x25d)](Q)),N(0x5,a[_0x5b8990(0x25d)](pe)),N(0x6,O[_0x5b8990(0x21f)]),N(0x7,a[_0x5b8990(0x25d)](a[_0x5b8990(0x175)]))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x1604ef,_0x31d9ba,_0x1c88d5,_0x512c02)=>{for(var _0x254188=_0x512c02>0x1?void 0x0:_0x512c02?Qt(_0x31d9ba,_0x1c88d5):_0x31d9ba,_0xd1ec57=_0x1604ef['length']-0x1,_0x5e51db;_0xd1ec57>=0x0;_0xd1ec57--)(_0x5e51db=_0x1604ef[_0xd1ec57])&&(_0x254188=_0x5e51db(_0x254188)||_0x254188);return _0x254188;},he=(_0x4904a0,_0x36668b)=>(_0x147449,_0x43fd95)=>_0x36668b(_0x147449,_0x43fd95,_0x4904a0);let me=class extends a['Disposable']{constructor(_0x787fe0,_0x2d0901,_0x25ca5e){const _0x3584f1=_0x5b8990;super(),_(this,_0x3584f1(0x2f1),new Map()),_(this,_0x3584f1(0x3a7),new Map()),_(this,_0x3584f1(0x30d),!0x1),(this[_0x3584f1(0x201)]=_0x787fe0,this[_0x3584f1(0x36e)]=_0x2d0901,this[_0x3584f1(0x339)]=_0x25ca5e);}[_0x5b8990(0x230)](){const _0x5d766d=_0x5b8990;this[_0x5d766d(0x30d)]=!0x0;}[_0x5b8990(0x3b8)](){this['_disabled']=!0x1;}get[_0x5b8990(0x1c9)](){const _0x1dc877=_0x5b8990;return this[_0x1dc877(0x3a7)];}[_0x5b8990(0x232)](){const _0x35351e=_0x5b8990;this[_0x35351e(0x370)]()['then'](()=>super[_0x35351e(0x232)]());}async[_0x5b8990(0x1dd)](_0x3a7aaa){const _0x40aa5e=_0x5b8990;return this[_0x40aa5e(0x30d)]?null:this[_0x40aa5e(0x36e)][_0x40aa5e(0x38a)](u['getLocalCacheKey'](_0x3a7aaa));}async[_0x5b8990(0x3c9)](_0x34fcce,_0x1e4a8f){const _0xe11af6=_0x5b8990;return!!this[_0xe11af6(0x36e)][_0xe11af6(0x398)](_0x34fcce,_0x1e4a8f);}['updateOfflineData'](_0x15841c,_0x483b1b,_0x2fe4bf,_0x55ee66){const _0x4d3b16=_0x5b8990,_0x370b43=this[_0x4d3b16(0x339)][_0x4d3b16(0x3a9)](_0x15841c);this[_0x4d3b16(0x2f1)][_0x4d3b16(0x1a0)](_0x15841c,{'unitID':_0x15841c,'type':_0x483b1b,'awaitingChangeset':_0x2fe4bf,'mutations':_0x55ee66,'rev':_0x370b43}),this[_0x4d3b16(0x3a7)][_0x4d3b16(0x181)](_0x15841c)||this[_0x4d3b16(0x37d)](_0x15841c);}['_scheduleSaving'](_0x52d75c){const _0x5cbaa1=_0x5b8990,_0x2ab957=this['_getSaveTimeout']();_0x2ab957===0x0?this[_0x5cbaa1(0x286)](_0x52d75c):this[_0x5cbaa1(0x3a7)][_0x5cbaa1(0x1a0)](_0x52d75c,setTimeout(()=>this[_0x5cbaa1(0x286)](_0x52d75c),_0x2ab957));}['_getSaveTimeout'](){const _0x4fa0d6=_0x5b8990;var _0x744110;return(_0x744110=this[_0x4fa0d6(0x201)]['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x744110:u[_0x4fa0d6(0x3e3)];}['_saveCache'](_0x3d9fbf){const _0x171ae9=_0x5b8990,_0xfa8b9c=this[_0x171ae9(0x3a7)][_0x171ae9(0x2ad)](_0x3d9fbf);return _0xfa8b9c!==void 0x0&&window[_0x171ae9(0x265)](_0xfa8b9c),this['_localStorageService'][_0x171ae9(0x398)](u[_0x171ae9(0x3d6)](_0x3d9fbf),this[_0x171ae9(0x2f1)][_0x171ae9(0x2ad)](_0x3d9fbf))[_0x171ae9(0x3a5)](()=>this[_0x171ae9(0x3a7)][_0x171ae9(0x371)](_0x3d9fbf));}async['exhaustSavingTask'](){const _0x1f6776=_0x5b8990,_0x9a8e22=[];this[_0x1f6776(0x3a7)][_0x1f6776(0x312)]((_0x2fb8bb,_0x574fd6)=>{const _0x156900=_0x1f6776;window[_0x156900(0x265)](_0x2fb8bb),_0x9a8e22['push'](this[_0x156900(0x286)](_0x574fd6)[_0x156900(0x3a5)](()=>{const _0x5db8c9=_0x156900;this[_0x5db8c9(0x3a7)][_0x5db8c9(0x371)](_0x574fd6);}));}),await Promise['all'](_0x9a8e22);}};me=es([he(0x0,a[_0x5b8990(0x239)]),he(0x1,a[_0x5b8990(0x1e4)]),he(0x2,a['Inject'](m[_0x5b8990(0x2f7)]))],me);class Be extends a[_0x5b8990(0x3d0)]{constructor(){const _0x51f063=_0x5b8990;super(),_(this,_0x51f063(0x33e)),this[_0x51f063(0x33e)]=d[_0x51f063(0x378)](window,_0x51f063(0x2fa))['pipe'](d[_0x51f063(0x2dd)](this['dispose$']),d[_0x51f063(0x1ff)](0x1),d[_0x51f063(0x367)](void 0x0));}[_0x5b8990(0x1a1)](_0x1c1f33,_0x5ccd48,_0x379cdb=!0x1){const _0x3245c3=_0x5b8990,_0x183e3b=new URL(window[_0x3245c3(0x283)][_0x3245c3(0x263)]);_0x183e3b[_0x3245c3(0x3da)]['set'](_0x1c1f33,_0x5ccd48),_0x379cdb?window[_0x3245c3(0x1a6)][_0x3245c3(0x334)]('','',_0x183e3b['toString']()):window[_0x3245c3(0x1a6)][_0x3245c3(0x271)]('','',_0x183e3b[_0x3245c3(0x27b)]());}['removeParam'](_0x3d3e56,_0x383b95=!0x1){const _0x2e472e=_0x5b8990,_0x54106b=new URL(window[_0x2e472e(0x283)]['href']);_0x54106b[_0x2e472e(0x3da)][_0x2e472e(0x371)](_0x3d3e56),_0x383b95?window[_0x2e472e(0x1a6)][_0x2e472e(0x334)]('','',_0x54106b[_0x2e472e(0x27b)]()):window[_0x2e472e(0x1a6)][_0x2e472e(0x271)]('','',_0x54106b['toString']());}[_0x5b8990(0x357)](_0x419e7d){const _0x40e3e2=_0x5b8990;var _0x35e83d;return(_0x35e83d=new URL(window['location'][_0x40e3e2(0x263)])[_0x40e3e2(0x3da)][_0x40e3e2(0x2ad)](_0x419e7d))!=null?_0x35e83d:void 0x0;}}var ts=Object['defineProperty'],ss=Object[_0x5b8990(0x184)],ns=(_0x151bf6,_0x454ae9,_0x39bb0c)=>_0x454ae9 in _0x151bf6?ts(_0x151bf6,_0x454ae9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39bb0c}):_0x151bf6[_0x454ae9]=_0x39bb0c,is=(_0x5ded12,_0x12c550,_0x160baf,_0xf3bae2)=>{const _0x4adb78=_0x5b8990;for(var _0x15e2d0=_0xf3bae2>0x1?void 0x0:_0xf3bae2?ss(_0x12c550,_0x160baf):_0x12c550,_0x2c9e3f=_0x5ded12[_0x4adb78(0x3e7)]-0x1,_0x1246c5;_0x2c9e3f>=0x0;_0x2c9e3f--)(_0x1246c5=_0x5ded12[_0x2c9e3f])&&(_0x15e2d0=_0x1246c5(_0x15e2d0)||_0x15e2d0);return _0x15e2d0;},ue=(_0x188d0a,_0x15cc3c)=>(_0x19b1d3,_0x3f8af7)=>_0x15cc3c(_0x19b1d3,_0x3f8af7,_0x188d0a),rs=(_0x3ddce0,_0x1b3c92,_0x1fef12)=>ns(_0x3ddce0,_0x1b3c92+'',_0x1fef12);const os=_0x5b8990(0x3ac);exports[_0x5b8990(0x3b4)]=class extends a[_0x5b8990(0x1be)]{constructor(_0x6d2d7d=Ne,_0x5c6ed9,_0x16cda8,_0x302197){const _0x4eaf7e=_0x5b8990;super(),this['_config']=_0x6d2d7d,this[_0x4eaf7e(0x1db)]=_0x5c6ed9,this[_0x4eaf7e(0x1a8)]=_0x16cda8,this[_0x4eaf7e(0x201)]=_0x302197;const {..._0x1ce24d}=a[_0x4eaf7e(0x1df)]({},Ne,this[_0x4eaf7e(0x1d2)]);this[_0x4eaf7e(0x201)][_0x4eaf7e(0x294)](Ft,_0x1ce24d);}[_0x5b8990(0x220)](){const _0x47a0ff=_0x5b8990;this[_0x47a0ff(0x168)](),this[_0x47a0ff(0x361)]();}['onRendered'](){const _0x248964=_0x5b8990;this[_0x248964(0x277)]();}[_0x5b8990(0x168)](){const _0x1b5ce9=_0x5b8990;var _0x4f193e;const _0x5a85ee=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x1b5ce9(0x366)],{'useClass':q[_0x1b5ce9(0x279)]}],[u[_0x1b5ce9(0x246)],{'useClass':me}],[exports[_0x1b5ce9(0x2df)]],[ee],[z],[x],[fe],[exports[_0x1b5ce9(0x3e0)]]];a[_0x1b5ce9(0x20f)](this['_injector'],a[_0x1b5ce9(0x2ba)](_0x5a85ee,(_0x4f193e=this[_0x1b5ce9(0x1d2)])==null?void 0x0:_0x4f193e[_0x1b5ce9(0x39b)]));}[_0x5b8990(0x277)](){const _0xa957ca=_0x5b8990;this[_0xa957ca(0x2ee)](this[_0xa957ca(0x1db)][_0xa957ca(0x316)](a['UniverInstanceType'][_0xa957ca(0x203)],[ve])),this[_0xa957ca(0x2ee)](this['_renderManagerService'][_0xa957ca(0x316)](a[_0xa957ca(0x2ab)][_0xa957ca(0x3bf)],[ge]));}['_initDependencies'](){const _0x44f53a=_0x5b8990;a[_0x44f53a(0x3f1)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x44f53a(0x3e0)]]]);}},rs(exports[_0x5b8990(0x3b4)],'pluginName',os),exports[_0x5b8990(0x3b4)]=is([a['DependentOn'](u[_0x5b8990(0x350)]),ue(0x1,p[_0x5b8990(0x28c)]),ue(0x2,a[_0x5b8990(0x25d)](a[_0x5b8990(0x39d)])),ue(0x3,a[_0x5b8990(0x239)])],exports[_0x5b8990(0x3b4)]);var as=Object['getOwnPropertyDescriptor'],cs=(_0x28f7eb,_0x49bca5,_0x5d4e82,_0x56fc0a)=>{const _0x1daeaa=_0x5b8990;for(var _0x4ef9ee=_0x56fc0a>0x1?void 0x0:_0x56fc0a?as(_0x49bca5,_0x5d4e82):_0x49bca5,_0x10e4c2=_0x28f7eb[_0x1daeaa(0x3e7)]-0x1,_0x2e7806;_0x10e4c2>=0x0;_0x10e4c2--)(_0x2e7806=_0x28f7eb[_0x10e4c2])&&(_0x4ef9ee=_0x2e7806(_0x4ef9ee)||_0x4ef9ee);return _0x4ef9ee;},W=(_0x148f8c,_0x2ad0b0)=>(_0xc31bde,_0x59cab8)=>_0x2ad0b0(_0xc31bde,_0x59cab8,_0x148f8c);exports[_0x5b8990(0x200)]=class extends u[_0x5b8990(0x269)]{constructor(_0x8ac370,_0x48b53b,_0x540b1d,_0x4b1f77,_0x4471cc){super(_0x8ac370,_0x48b53b,_0x540b1d,_0x4b1f77,_0x4471cc);}async[_0x5b8990(0x262)](_0x836f8e){const _0x4904c9=_0x5b8990,_0x2dcc3a=await this['_getSessionTicket'](),_0x46f979=this[_0x4904c9(0x1cc)](_0x836f8e,_0x2dcc3a);return this[_0x4904c9(0x1c2)](_0x46f979);}[_0x5b8990(0x1cc)](_0x28f7e3,_0x5db9ee){const _0x337e79=_0x5b8990,_0x189ca3=typeof window>'u'?new URL(_0x28f7e3):new URL(_0x28f7e3,window['location']['origin']);_0x189ca3[_0x337e79(0x3da)][_0x337e79(0x1a0)]('sessionTicket',_0x5db9ee);const _0x49aafc=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x337e79(0x283)][_0x337e79(0x3ed)]);return _0x49aafc[_0x337e79(0x2ad)](_0x337e79(0x30b))&&_0x189ca3[_0x337e79(0x3da)][_0x337e79(0x1a0)](_0x337e79(0x30b),_0x49aafc[_0x337e79(0x2ad)](_0x337e79(0x30b))),_0x189ca3[_0x337e79(0x27b)]();}async[_0x5b8990(0x301)](){const _0x51ada9=_0x5b8990;var _0x51abab,_0x1246fa,_0x32daf8;const _0x58de6a=this[_0x51ada9(0x201)][_0x51ada9(0x251)](u[_0x51ada9(0x306)]),_0x5aaf8c=(_0x51abab=_0x58de6a==null?void 0x0:_0x58de6a[_0x51ada9(0x34b)])!=null?_0x51abab:u[_0x51ada9(0x2e5)];return(_0x32daf8=(_0x1246fa=(await this[_0x51ada9(0x1d0)][_0x51ada9(0x2ad)](_0x5aaf8c,{'headers':{'Content-Type':_0x51ada9(0x29f)}}))[_0x51ada9(0x3e1)])==null?void 0x0:_0x1246fa[_0x51ada9(0x236)])!=null?_0x32daf8:'';}},exports[_0x5b8990(0x200)]=cs([W(0x0,a[_0x5b8990(0x25d)](a['Injector'])),W(0x1,a['Inject'](q[_0x5b8990(0x194)])),W(0x2,a[_0x5b8990(0x239)]),W(0x3,a[_0x5b8990(0x1e7)]),W(0x4,m[_0x5b8990(0x1f7)])],exports[_0x5b8990(0x200)]);const Le=0x7530,Pe=_0x5b8990(0x3cd);class ls extends a[_0x5b8990(0x19a)]{constructor(){const _0x52e05b=_0x5b8990;super(),_(this,'_id',a[_0x52e05b(0x2b3)]()),_(this,_0x52e05b(0x2f4),new Set()),_(this,_0x52e05b(0x345),new Map()),_(this,_0x52e05b(0x3aa),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x52e05b(0x21b),new Map()),this[_0x52e05b(0x2c4)]();}[_0x5b8990(0x232)](){const _0x2639bb=_0x5b8990;super['dispose'](),this[_0x2639bb(0x189)][_0x2639bb(0x312)]((_0x21e1da,_0x5548fe)=>this['_removeClearOtherTimer'](_0x5548fe)),this[_0x2639bb(0x3aa)]&&window[_0x2639bb(0x347)](this['_heartbeatTimer']);}[_0x5b8990(0x211)](_0x14f6b4){const _0x44fa9b=_0x5b8990;return this[_0x44fa9b(0x356)](_0x14f6b4)['pipe'](d['distinctUntilChanged']());}[_0x5b8990(0x3b5)](_0x6366c8){const _0x32f4e3=_0x5b8990;this[_0x32f4e3(0x2f4)][_0x32f4e3(0x227)]===0x0&&this[_0x32f4e3(0x29c)](),this[_0x32f4e3(0x2f4)][_0x32f4e3(0x23c)](_0x6366c8),this[_0x32f4e3(0x2b8)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x6366c8],'isForwarded':!0x1});}[_0x5b8990(0x26c)](_0x1e6c5b){const _0x15f6e1=_0x5b8990;this['_selfUnitIDs'][_0x15f6e1(0x371)](_0x1e6c5b),this[_0x15f6e1(0x2f4)][_0x15f6e1(0x227)]===0x0&&this[_0x15f6e1(0x3aa)]&&window['clearInterval'](this[_0x15f6e1(0x3aa)]);}[_0x5b8990(0x2c4)](){const _0x5a48c5=_0x5b8990;this[_0x5a48c5(0x2ee)](a[_0x5a48c5(0x349)](d[_0x5a48c5(0x378)](window,'storage')[_0x5a48c5(0x1f0)](_0x1d25b3=>{const _0x3da87b=_0x5a48c5;if(_0x1d25b3[_0x3da87b(0x327)]!==Pe||!_0x1d25b3['newValue'])return;const _0x934b08=JSON[_0x3da87b(0x31f)](_0x1d25b3['newValue']);this['_handleEvent'](_0x934b08);}))),window[_0x5a48c5(0x3de)](_0x5a48c5(0x229),()=>this[_0x5a48c5(0x2b8)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5a48c5(0x1dc)](this[_0x5a48c5(0x2f4)])}));}[_0x5b8990(0x1f4)](_0x37794d){const _0x29afdb=_0x5b8990;switch(_0x37794d[_0x29afdb(0x390)]){case 0x0:this[_0x29afdb(0x3dd)](_0x37794d);break;case 0x1:this['_handleLeaveEvent'](_0x37794d);break;case 0x2:this[_0x29afdb(0x21a)](_0x37794d);break;}}['_handleJoinEvent'](_0x5b0c50){const _0x1cdbc0=_0x5b8990,{unitIDs:_0x18ff90,memberID:_0x497878,isForwarded:_0x5de145}=_0x5b0c50;_0x18ff90[_0x1cdbc0(0x312)](_0x5574c3=>{const _0x3a7fab=_0x1cdbc0;if(!_0x5de145&&this['_unitOnClients'][_0x3a7fab(0x181)](_0x5574c3)&&this[_0x3a7fab(0x356)](_0x5574c3)[_0x3a7fab(0x2c7)](u[_0x3a7fab(0x3f2)][_0x3a7fab(0x1ce)]),!this[_0x3a7fab(0x345)][_0x3a7fab(0x181)](_0x5574c3)||!this[_0x3a7fab(0x345)][_0x3a7fab(0x2ad)](_0x5574c3)['has'](_0x497878)){const _0x180bbe=this['_unitOnClients']['get'](_0x5574c3)||new Set();_0x180bbe[_0x3a7fab(0x23c)](_0x497878),this['_unitOnClients'][_0x3a7fab(0x1a0)](_0x5574c3,_0x180bbe),this[_0x3a7fab(0x1b1)](_0x497878);}}),_0x5de145||this[_0x1cdbc0(0x2b8)]({'type':0x0,'memberID':this[_0x1cdbc0(0x2ef)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x5b8990(0x1b1)](_0x327dfc){const _0x4d0227=_0x5b8990;this[_0x4d0227(0x28e)](_0x327dfc);const _0x3801d2=window[_0x4d0227(0x235)](()=>{const _0x48140a=_0x4d0227;this[_0x48140a(0x345)][_0x48140a(0x312)](_0x239958=>{_0x239958['delete'](_0x327dfc);});},Le*0x2);this['_clearOtherTimers']['set'](_0x327dfc,_0x3801d2);}[_0x5b8990(0x28e)](_0x403ea9){const _0x71b69d=_0x5b8990;if(this[_0x71b69d(0x189)]['has'](_0x403ea9)){const _0x509de0=this['_clearOtherTimers'][_0x71b69d(0x2ad)](_0x403ea9);_0x509de0&&window[_0x71b69d(0x265)](_0x509de0),this[_0x71b69d(0x189)][_0x71b69d(0x1a0)](_0x403ea9,null);}}[_0x5b8990(0x16c)](_0x4c5407){const _0x4a6d47=_0x5b8990,{memberID:_0x3d12ef,unitIDs:_0xfc6fa4}=_0x4c5407;_0xfc6fa4[_0x4a6d47(0x312)](_0x91625a=>{const _0x6eb2a5=_0x4a6d47;var _0x383c8a;const _0x35c157=this[_0x6eb2a5(0x345)][_0x6eb2a5(0x2ad)](_0x91625a);_0x35c157&&(_0x35c157[_0x6eb2a5(0x371)](_0x3d12ef),(_0x383c8a=this[_0x6eb2a5(0x356)](_0x91625a))==null||_0x383c8a[_0x6eb2a5(0x2c7)](_0x35c157[_0x6eb2a5(0x227)]===0x0?u[_0x6eb2a5(0x3f2)][_0x6eb2a5(0x2eb)]:u[_0x6eb2a5(0x3f2)]['OTHER_CLIENTS_EDITING']));}),this[_0x4a6d47(0x28e)](_0x3d12ef);}[_0x5b8990(0x21a)](_0x106de3){const _0x35a003=_0x5b8990;this[_0x35a003(0x1b1)](_0x106de3['memberID']);}[_0x5b8990(0x2b8)](_0x1a00d1){const _0xf73ac4=_0x5b8990;localStorage[_0xf73ac4(0x398)](Pe,JSON[_0xf73ac4(0x3c1)](_0x1a00d1));}[_0x5b8990(0x29c)](){const _0x36b3f8=_0x5b8990;this[_0x36b3f8(0x3aa)]=window['setInterval'](()=>{const _0x258adb=_0x36b3f8;this[_0x258adb(0x2b8)]({'type':0x2,'memberID':this[_0x258adb(0x2ef)]});},Le);}[_0x5b8990(0x356)](_0xb5c171){const _0x4591b7=_0x5b8990;return this[_0x4591b7(0x21b)][_0x4591b7(0x181)](_0xb5c171)||this[_0x4591b7(0x21b)][_0x4591b7(0x1a0)](_0xb5c171,new d[(_0x4591b7(0x3e4))](u[_0x4591b7(0x3f2)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x4591b7(0x21b)][_0x4591b7(0x2ad)](_0xb5c171);}}var ke=(_0x46f12d=>(_0x46f12d[_0x46f12d[_0x5b8990(0x373)]=0x0]=_0x5b8990(0x373),_0x46f12d[_0x46f12d['OK']=0x1]='OK',_0x46f12d[_0x46f12d['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x46f12d[_0x46f12d[_0x5b8990(0x2fd)]=0x3]=_0x5b8990(0x2fd),_0x46f12d[_0x46f12d[_0x5b8990(0x19e)]=0x4]=_0x5b8990(0x19e),_0x46f12d[_0x46f12d[_0x5b8990(0x354)]=0x5]=_0x5b8990(0x354),_0x46f12d[_0x46f12d[_0x5b8990(0x206)]=0x6]=_0x5b8990(0x206),_0x46f12d[_0x46f12d['INVALID_ARGUMENT']=0x7]=_0x5b8990(0x3e5),_0x46f12d[_0x46f12d[_0x5b8990(0x1b4)]=0x8]=_0x5b8990(0x1b4),_0x46f12d[_0x46f12d['COMPLETION_FINISHED']=0x9]=_0x5b8990(0x3e6),_0x46f12d[_0x46f12d[_0x5b8990(0x35e)]=0xa]=_0x5b8990(0x35e),_0x46f12d[_0x46f12d[_0x5b8990(0x1bb)]=0x1389]=_0x5b8990(0x1bb),_0x46f12d[_0x46f12d['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5b8990(0x3f5),_0x46f12d[_0x46f12d[_0x5b8990(0x2d4)]=0x1772]=_0x5b8990(0x2d4),_0x46f12d[_0x46f12d[_0x5b8990(0x281)]=0x1773]=_0x5b8990(0x281),_0x46f12d[_0x46f12d[_0x5b8990(0x1aa)]=0x1b59]='APPLY_REJECT',_0x46f12d[_0x46f12d[_0x5b8990(0x19b)]=0x1b5a]=_0x5b8990(0x19b),_0x46f12d[_0x46f12d[_0x5b8990(0x27a)]=0x1b5b]=_0x5b8990(0x27a),_0x46f12d[_0x46f12d[_0x5b8990(0x228)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x46f12d[_0x46f12d[_0x5b8990(0x25c)]=0x1b5d]=_0x5b8990(0x25c),_0x46f12d[_0x46f12d[_0x5b8990(0x2cb)]=0x1f41]=_0x5b8990(0x2cb),_0x46f12d[_0x46f12d[_0x5b8990(0x315)]=0x2329]=_0x5b8990(0x315),_0x46f12d[_0x46f12d[_0x5b8990(0x2cc)]=0x232a]=_0x5b8990(0x2cc),_0x46f12d[_0x46f12d[_0x5b8990(0x1ab)]=0x232b]=_0x5b8990(0x1ab),_0x46f12d[_0x46f12d['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x5b8990(0x392),_0x46f12d[_0x46f12d['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x46f12d[_0x46f12d[_0x5b8990(0x178)]=0x2711]=_0x5b8990(0x178),_0x46f12d[_0x46f12d[_0x5b8990(0x34c)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x46f12d[_0x46f12d['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5b8990(0x2d2),_0x46f12d[_0x46f12d[_0x5b8990(0x363)]=0x2714]=_0x5b8990(0x363),_0x46f12d[_0x46f12d[_0x5b8990(0x2a5)]=0x271a]=_0x5b8990(0x2a5),_0x46f12d[_0x46f12d[_0x5b8990(0x395)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x46f12d[_0x46f12d[_0x5b8990(0x1c3)]=0x2af9]=_0x5b8990(0x1c3),_0x46f12d[_0x46f12d[_0x5b8990(0x2f5)]=0x2ee1]=_0x5b8990(0x2f5),_0x46f12d[_0x46f12d[_0x5b8990(0x22c)]=0x2ee2]='INVALID_INVITE_CODE',_0x46f12d[_0x46f12d['INVITE_CODE_REQUIRED']=0x2ee3]=_0x5b8990(0x25e),_0x46f12d[_0x46f12d['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x46f12d[_0x46f12d[_0x5b8990(0x30f)]=0x2ee5]=_0x5b8990(0x30f),_0x46f12d[_0x46f12d[_0x5b8990(0x296)]=0x32c9]=_0x5b8990(0x296),_0x46f12d[_0x46f12d[_0x5b8990(0x19c)]=0x32ca]=_0x5b8990(0x19c),_0x46f12d[_0x46f12d[_0x5b8990(0x1f6)]=0x32cb]=_0x5b8990(0x1f6),_0x46f12d[_0x46f12d[_0x5b8990(0x1bd)]=-0x1]='UNRECOGNIZED',_0x46f12d))(ke||{}),_s=Object[_0x5b8990(0x184)],hs=(_0x1cf34e,_0x7d4220,_0x5cec7b,_0x3f7af2)=>{const _0x1afd36=_0x5b8990;for(var _0x520699=_0x3f7af2>0x1?void 0x0:_0x3f7af2?_s(_0x7d4220,_0x5cec7b):_0x7d4220,_0x339978=_0x1cf34e[_0x1afd36(0x3e7)]-0x1,_0x5d724e;_0x339978>=0x0;_0x339978--)(_0x5d724e=_0x1cf34e[_0x339978])&&(_0x520699=_0x5d724e(_0x520699)||_0x520699);return _0x520699;},de=(_0x1ca29c,_0x41cc10)=>(_0x15256c,_0x5cf110)=>_0x41cc10(_0x15256c,_0x5cf110,_0x1ca29c);function _0x1f87(){const _0x4e2171=['call','FromArray','measureText','className','takeUntil','concat','DesktopCollaborationStatusDisplayController','startsWith','@univerjs/rpc','function','docStateChange$','drawWith','DEFAULT_WS_SESSION_TICKET_URL','COLORS','black','resize','purple300','@univerjs/network','NO_OTHER_CLIENTS_EDITING','executeCommand','m2Prime','disposeWithMe','_id','collab-text-range-','_cachedData','_hover','RemoteUniscriptService','_selfUnitIDs','INVITE_CODE_HAS_BEEN_UES','registerBeforeClose','RevisionService','hovered','BuiltInUIPart','popstate','session.will-retry','bottom','PERMISSION_DENIED','_initEvent','fill','string','_getSessionTicket','_refreshCollabCursors','rxjs','find','RegularPolygon','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','permission.title','_handleHover','flatMap','on-line-single_clip0_910_349','runId','collabStatus.offline','_disabled','addObjects','INVITE_CODE_ALREADY_BOUND','mutations','colorChannel1','forEach','@univerjs/ui','_drawRectRange','LICENSE_MAX_UNITS_EXCEEDED','registerRenderModule','_startSheetCollabCursor','handleMoveRange','transformMutationsWithChangeset','CollaborationUIEventService','collabCursorState$','addObject','_themeService','AWAITING','parse','cursorInfo$','MUTATION','NOT_COLLAB','combineLatest','DocIMEInputManagerService','ranges','sheetID','key','color','_colorAssignService','getUniverSheetInstance','_docTransformSelectionsService','url(#$1','_initEntityListener','_color','_collabSessionService','@univerjs/engine-render','getCollabCursors$','_uiPartsService','whenReady','replaceState','getTypeOfUnitDisposed$','cursorInfo','saveImage','_docSkeletonManagerService','_revisionService','dispose$','getFocusedUnit','requireSession','DisposableCollection','urlChange$','none','div','endRow','selection','jsx','replace','_unitOnClients','SetTextSelectionsOperation','clearInterval','xlink:href','toDisposable','_name','wsSessionTicketUrl','YUUMI_URL_COL_OUT_OF_RANGE','handleIRemoveRow','_cursorInfo$','_document','UniverCollaborationClientPlugin','@univerjs-pro/collaboration-client','MessageType','JOIN_ROOM_FAILED','UNAUTHENTICATED','extend','_ensureSubject','getParam','_hovered','@univerjs/docs-ui','collabStatus.syncing','getCollabEntity$','collabStatus.synced','Warning','LOGIN_FAILED','IUniverInstanceService','fillStyle','_initDependencies','_onCursorUpdate','YUUMI_SUBSCRIPTION_NOT_FOUND','getValue','top','ISocketService','mapTo','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.conflict','_localeService','IDocClipboardService','_updateSubUnitFromURLParams','CollaborationStatus','_localStorageService','8713575aFCvcX','exhaustSavingTask','delete','_shapes','UNDEFINED','isTransformMutationsWithChangesetSuccess','getDocRanges','rxjs/operators','@univerjs/design','fromEvent','collabStatus.notCollab','collab-rect-range-','SYNCED','handleDeleteRangeMoveLeft','_scheduleSaving','random','uni.network.url-service','session.collaboration-timeout','_getAnchorBounding','DocSkeletonManagerService','textRanges','Workbook','_status$','rgba(255,\x20255,\x20255,\x200.01)','Unknown\x20user','OFFLINE','defIds','getItem','62982JyZisQ','contains','univer-offline','collaboration-client-ui.config','transformRemoteChangeset','type','@univerjs/sheets-ui','LICENSE_EXPORT_SIZE_EXCEEDED','_toggleOffline','_textBubble','YUUMI_ASYNCIO_CANCELLED','clipPath','collab-client.tooltip.reconnect','setItem','evenodd','getUndoRedoMutationParamsCache','override','unitId','Injector','_initCommandExecutedListener','m1Prime','_startDocCollabCursor','_docSyncEditingCollabCursorService','hasOwnProperty','params','getSheetId','then','_initStatusComponent','_saveTaskMap','CollaborationStatusDisplay','getCurrentRevOfUnit','_heartbeatTimer','debounceTime','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','RemoveColCommandId','UPDATE_CURSOR','defs','_entities','4003808YXBxcU','SUBMIT_CHANGESET_TIMEOUT','_context','UniverCollaborationClientUIPlugin','editingUnit','onLocalMutation','connectInjector','enableLocalCache','_collaborationUIEventService','_cursors','beginPath','react','[RemoteUniscriptService]:\x20no\x20focused\x20unit','26360FKiXLq','UNIVER_SHEET','Subject','stringify','switchMap','useCallback','_roomMembers$','_docStateChangeManagerService','handleInsertRangeMoveRight','IRemoteInstanceService','startRow','saveOfflineData','getCurrent','assignAColorForMemberID','addClipboardHook','ACTIVE_UNIT_EVENT_CHANNEL','@univerjs/core','DocSelectionManagerService','RxDisposable','send','_online','_collabCursorState$','entityInit$','_localCacheService','getLocalCacheKey','online','InsertRangeMoveDownCommandId','_entityInit$','searchParams','filter','createElement','_handleJoinEvent','addEventListener','IImageIoService','CollaborationDataLoaderController','body','_messageService','LOCAL_CACHE_INTERVAL','BehaviorSubject','INVALID_ARGUMENT','COMPLETION_FINISHED','length','push','_docSkeleton','doc.mutation.rich-text-editing','_logService','lineTo','search','49AUmqrW','handleInsertRow','_memberService','touchDependencies','UnitStatus','status$','roomMembers$','SNAPSHOT_INVALID_SNAPSHOT','univer-online','SheetsSelectionsService','_registerDependencies','reconnect','_refRangeService','transformSelections','_handleLeaveEvent','toRgbString','syncEditingCollabCursor','_dataLoaderService','getMember','onMouseMove','1em','ITransformService','onPointerMove$','LocaleService','_getSheetObject','transformIMECache','YUUMI_UNABLE_LOAD_URL','univer-online-status','WebBrowserSingleActiveUnitService','onPointerEnter$','_draw','_labelPosition','Rectangle','SOCKET_FAILED_RETRY','6CUwruA','has','_updateURLWithCurrentState','post','getOwnPropertyDescriptor','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','_lastPointer','_cursorShapes','isTransformMutationFailure','_clearOtherTimers','includes','univer-online-status-title','width','M0\x200H16V16H0z','_urlService','...','SheetCollabCursorShape','_beforeCloseService','onlineStatus','getOffsetConfig','HTTPService','transform','column','transformStateCache','SetDocZoomRatioOperation','SetSelectionsOperation','Disposable','APPLY_NON_SEQUENTIAL_REVISION','MOBILE_HAS_BEEN_BOUND','IBeforeCloseService','NOT_FOUND','#FFF','set','setParam','subUnitId','split','createInstance','getSkeleton','history','univer-online-status-icon','_injector','DeleteRangeMoveLeftCommandId','APPLY_REJECT','LICENSE_IMPORT_SIZE_EXCEEDED','_updateLocalCursor','arc','_toggleOnline','init','_docClipboardService','_scheduleClearOtherTimer','_anchorDot','Vector2','TOO_MANY_REQUESTS','@univerjs/drawing','ColorKit','some','entries','_colorIndex','SheetSkeletonManagerService','CHANGESET_REVISION_CONFILICT','getSheetBySheetId','UNRECOGNIZED','Plugin','_initStatusListener','focused$','font','_doCreateSocket','PY_RUNTIME_SCRIPT_ERROR','isActive','_drawTextRange','setUndoRedoMutationParamsCache','_transformPreviousActiveRange','setShapeProps','saveTaskMap','getViewport','setAlpha','_createSocketURL','ONLINE','OTHER_CLIENTS_EDITING','_range','_httpService','NodePositionConvertToRectRange','_config','icon','range','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','22790xQchkH','moveTo','useDependency','onPointerLeave$','1866320vtlMZy','_renderManagerService','from','loadOfflineData','makeDirty','merge','RECT','skeleton','getSheetObject','setStateCache','ILocalStorageService','error','_sheetSkeletonManagerService','ILogService','InsertRowCommandId','VIEW_MAIN','data','triggerDblclick','subunit','off-line-single','currentColor','prototype','subscribe','complete','_transformHistoryAndStateStack','roomMembers','_handleEvent','_session','EMAIL_HAS_BEEN_BOUND','ISnapshotServerService','handleInsertCol','getCoordByCell','deserializeRangeWithSheet','CollaborationEvent','2526402QeTblw','throttleTime','getMemberID','shareReplay','BrowserCollaborationSocketService','_configService','text','UNIVER_DOC','with','currentTheme$','ALREADY_EXISTS','tag','loadUnit','Rect','_initResize','_commandService','asObservable','executionId','fillText','registerDependencies','getCurrentSelections','getUnitStatus$','getRenderById','handleDeleteRangeMoveUp','CollaborationController','MemberService','getRangePointData','getAncestorScale','_render','collaboration-client.offline-data-not-saved','_handleHeartbeatEvent','_unitStatus','invokeId','deepClone','translate(.97)','IMessageService','onStarting','replaceDocRanges','SessionStatus','_hideTimer','getColor','TRANSFORM_CHANGE_OBSERVABLE_TYPE','restore','size','APPLY_PERMISSION_DENIED','unload','USERS_LEAVE','children','INVALID_INVITE_CODE','svg','@univerjs/docs','round','disableLocalCache','SHEET_VIEWPORT_KEY','dispose','SOCKET_FAILED','ThemeService','setTimeout','ticket','unit','_docTransformIMECacheService','IConfigService','setActiveRange','onCommandExecuted','add','findNodePositionByCharIndex','getTypeOfUnitAdded$','_syncEditingCollabCursorService','_collaborationController','[CollaborationDataLoaderController]','isArray','_notificationService','save','url(#off-line-single_clip0_910_343)','ILocalCacheService','CollaborationUIEventId','permission.content','#fff','sessionStatus$','_assignedColors','getStateCache','_docTransformStateCacheService','InsertRangeMoveRightCommandId','0\x200\x2017\x2016','RefRangeService','getConfig','jiqing500','propertyIsEnumerable','source','defineProperty','_collabCursorController','getUnitId','registerComponent','verdancy600','transformByState','transformMutation','APPLY_DUPLICATED','Inject','INVITE_CODE_REQUIRED','currentSkeleton$','InsertColCommandId','RichTextEditingMutation','createSocket','href','activeSheet$','clearTimeout','collaboration.single-unit.warning','ICommandService','AWAITING_WITH_PENDING','CollaborationSocketService','apply','UniverIcon','disposeUnit','getUnhiddenWorksheets','displayName','map','Tools','pushState','react/jsx-runtime','useObservable','Error','_cursor','labelPosition','_registerRenderDependencies','redoState','WebSocketService','APPLY_REVISION_CONFILICT','toString','pipe','_onRefRangeChange','current','debug','_scene','ENSURE_SNAPSHOT_EXECUTION','offline','location','_backgroundColor','_getMergeRange','_saveCache','debounce','hide','show','substring','TEXT','IRenderManagerService','OffLineSingle','_removeClearOtherTimer','PENDING','event$','off-line-single_clip0_910_343','engine','createIdentifier','setConfig','@univerjs/engine-formula','WECHAT_HAS_BEEN_BOUND','_anchor','url(#on-line-single_clip0_910_349)','unitID','name','EffectRefRangId','_scheduleHeartbeat','_drawAnchor','_transformUndoRedoStack','application/json','row','_transformService','handleInsertRangeMoveDown','attrs','getCellPositionByOffset','YUUMI_NO_CUBOID_FOR_QUESTION','values','idSuffix','unshift','@univerjs-pro/collaboration','_removeCollabCursors','UniverInstanceType','result','get','eventID','min','Shape','_instanceService','CLOSE_ROOM','generateRandomId','undoState','_updateCollabCursors','DOC_RANGE_TYPE','unsubscribe','_send','getActiveSheet','mergeOverrideWithDependencies','_setupBeforeClosingHandler','SetWorksheetActivateCommand','selections','useRef','backgroundColor','clsx','subscribeEvent','getActiveRange','isEditing','_init','univer-flex\x20univer-items-center','assign','next','Optional','172GWZAuh','path','CONNECTOR_DATA_TOO_LARGE','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getOwnPropertySymbols','symbol','collaboration.closeRoom','TEXT_RANGE_LAYER_INDEX','_imageIoService','YUUMI_RATE_OVER_LIMIT','_onCursorDelete','SNAPSHOT_HAS_BEEN_REMOVED','_univerInstanceService','CONFLICT','forwardRef','_eventUnsubscribe'];_0x1f87=function(){return _0x4e2171;};return _0x1f87();}exports[_0x5b8990(0x2f3)]=class extends a['Disposable']{constructor(_0x467e60,_0x482984,_0x2b06f9){const _0x162905=_0x5b8990;super(),this[_0x162905(0x2b1)]=_0x467e60,this[_0x162905(0x1d0)]=_0x482984,this[_0x162905(0x201)]=_0x2b06f9;}async['runOnServer'](_0x5bcede,_0x1a3e48,_0x5e04ee,..._0x407ace){const _0x105c5e=_0x5b8990;var _0x5c3285,_0x4d4922,_0x4a6cee,_0xd82315;const _0x14cd77=this[_0x105c5e(0x2b1)][_0x105c5e(0x33b)]();if(!_0x14cd77)throw new Error(_0x105c5e(0x3bd));const _0x1c0475=((_0x5c3285=this[_0x105c5e(0x201)][_0x105c5e(0x251)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x5c3285:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x5bcede+'/run/'+_0x1a3e48,_0x20bf20=new URL(window['location'][_0x105c5e(0x263)]),_0x300309={'scriptId':_0x5bcede,'runId':(_0x4d4922=_0x20bf20[_0x105c5e(0x3da)][_0x105c5e(0x2ad)](_0x105c5e(0x30b)))!=null?_0x4d4922:'','function':_0x1a3e48,'unitId':_0x14cd77[_0x105c5e(0x257)](),'argsOfFunction':JSON[_0x105c5e(0x3c1)](_0x407ace),'invokeId':(_0x4a6cee=_0x5e04ee[_0x105c5e(0x21c)])!=null?_0x4a6cee:'','executionId':(_0xd82315=_0x5e04ee[_0x105c5e(0x20d)])!=null?_0xd82315:''};try{const _0x19047f=await this[_0x105c5e(0x1d0)][_0x105c5e(0x183)](_0x1c0475,{'body':_0x300309});return _0x19047f[_0x105c5e(0x3e1)]['error']&&_0x19047f['body'][_0x105c5e(0x1e5)]['code']!==ke['OK']?'Failed':_0x19047f[_0x105c5e(0x3e1)][_0x105c5e(0x2ac)];}catch{return'Failed';}}},exports[_0x5b8990(0x2f3)]=hs([de(0x0,a[_0x5b8990(0x35f)]),de(0x1,a[_0x5b8990(0x25d)](q[_0x5b8990(0x194)])),de(0x2,a[_0x5b8990(0x239)])],exports['RemoteUniscriptService']),exports[_0x5b8990(0x3a8)]=je,exports['IURLService']=Ee,exports[_0x5b8990(0x190)]=Ae,exports[_0x5b8990(0x17a)]=ls,exports['WebURLService']=Be;
1
+ 'use strict';const _0x56af3f=_0x408b;(function(_0x2b3d4b,_0x29afc4){const _0x1ab3d9=_0x408b,_0x408fd0=_0x2b3d4b();while(!![]){try{const _0x4d78aa=parseInt(_0x1ab3d9(0x399))/0x1+parseInt(_0x1ab3d9(0x295))/0x2+-parseInt(_0x1ab3d9(0x1ad))/0x3+-parseInt(_0x1ab3d9(0x2e2))/0x4*(-parseInt(_0x1ab3d9(0x152))/0x5)+-parseInt(_0x1ab3d9(0x1ce))/0x6+parseInt(_0x1ab3d9(0x345))/0x7+-parseInt(_0x1ab3d9(0x147))/0x8;if(_0x4d78aa===_0x29afc4)break;else _0x408fd0['push'](_0x408fd0['shift']());}catch(_0x42f96d){_0x408fd0['push'](_0x408fd0['shift']());}}}(_0xcc01,0x7a276));var Xe=Object[_0x56af3f(0x2ec)],Ge=(_0x212169,_0x2d1051,_0x3bef73)=>_0x2d1051 in _0x212169?Xe(_0x212169,_0x2d1051,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bef73}):_0x212169[_0x2d1051]=_0x3bef73,_=(_0x464d34,_0x416357,_0xd449c)=>Ge(_0x464d34,typeof _0x416357!='symbol'?_0x416357+'':_0x416357,_0xd449c);Object[_0x56af3f(0x2ec)](exports,Symbol['toStringTag'],{'value':_0x56af3f(0x195)});const u=require(_0x56af3f(0x3a1)),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),q=require(_0x56af3f(0x370)),b=require('@univerjs/docs-ui'),qe=require(_0x56af3f(0x201)),d=require('rxjs'),Y=require(_0x56af3f(0x18e)),m=require(_0x56af3f(0x179)),Te=require('@univerjs/engine-formula'),g=require(_0x56af3f(0x1da)),$=require(_0x56af3f(0x34c)),G=require(_0x56af3f(0x3c7)),P=require(_0x56af3f(0x3c2)),O=require(_0x56af3f(0x3be)),T=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var ze=Object['getOwnPropertyDescriptor'],Je=(_0x21f210,_0x5ea52f,_0x3b1fcc,_0x2e0061)=>{for(var _0x17acdb=_0x2e0061>0x1?void 0x0:_0x2e0061?ze(_0x5ea52f,_0x3b1fcc):_0x5ea52f,_0x2254b1=_0x21f210['length']-0x1,_0x3e56e2;_0x2254b1>=0x0;_0x2254b1--)(_0x3e56e2=_0x21f210[_0x2254b1])&&(_0x17acdb=_0x3e56e2(_0x17acdb)||_0x17acdb);return _0x17acdb;},Oe=(_0x26031d,_0x142be7)=>(_0x3dc7aa,_0x261f29)=>_0x142be7(_0x3dc7aa,_0x261f29,_0x26031d);let fe=class extends a[_0x56af3f(0x2b9)]{constructor(_0x2fa7c3,_0x1af97b){const _0x25c4ff=_0x56af3f;super(),this[_0x25c4ff(0x36e)]=_0x2fa7c3,this[_0x25c4ff(0x311)]=_0x1af97b,this[_0x25c4ff(0x39b)]();}[_0x56af3f(0x39b)](){const _0x1fe099=_0x56af3f,_0x2c462f=this;this[_0x1fe099(0x2a6)](this[_0x1fe099(0x36e)][_0x1fe099(0x172)]({'onBeforePasteImage':async _0x5c78ea=>{const _0x3d7a0f=_0x1fe099,_0x553daf=await _0x2c462f[_0x3d7a0f(0x311)][_0x3d7a0f(0x1ca)](_0x5c78ea);return _0x553daf?{'source':_0x553daf[_0x3d7a0f(0x34a)],'imageSourceType':_0x553daf[_0x3d7a0f(0x279)]}:null;}}));}};fe=Je([Oe(0x0,b['IDocClipboardService']),Oe(0x1,qe[_0x56af3f(0x243)])],fe);const Re=['purple300',_0x56af3f(0x294),'verdancy600','red300',_0x56af3f(0x2ea),_0x56af3f(0x2f7)];class Ce extends a['Disposable']{constructor(){const _0x5b8f7d=_0x56af3f;super(...arguments),_(this,_0x5b8f7d(0x1fd),new Map()),_(this,_0x5b8f7d(0x35a),0x0);}[_0x56af3f(0x212)](_0xb8f890){const _0x4492a3=_0x56af3f;if(this['_assignedColors'][_0x4492a3(0x140)](_0xb8f890))return this['_assignedColors'][_0x4492a3(0x302)](_0xb8f890);const _0x11f13b=Re[this[_0x4492a3(0x35a)]];return this[_0x4492a3(0x35a)]=(this[_0x4492a3(0x35a)]+0x1)%Re[_0x4492a3(0x36a)],this[_0x4492a3(0x1fd)][_0x4492a3(0x3b5)](_0xb8f890,_0x11f13b),_0x11f13b;}}function we(_0x3f101e){let _0x2039b2='';for(const _0x91a3b1 of _0x3f101e){const {startOffset:_0x5367ef,endOffset:_0x15d93c,isActive:_0x48e658,rangeType:_0x4e6447,segmentId:_0x2ab581,segmentPage:_0xb896f8}=_0x91a3b1;_0x2039b2['length']&&(_0x2039b2+=','),_0x2039b2+=_0x5367ef+':'+_0x15d93c+':'+(_0x48e658?'1':'0')+':'+_0x4e6447+':'+_0x2ab581+':'+_0xb896f8;}return _0x2039b2;}function Ze(_0x19331c){const _0x3392f4=_0x56af3f,_0x3086e5=_0x19331c[_0x3392f4(0x14e)](','),_0x2fae80=[];for(const _0x2ec1af of _0x3086e5){const [_0x328612,_0x3f21ea,_0x1fc4ea,_0x5bab92,_0x4958cd,_0xe1612f]=_0x2ec1af['split'](':');_0x2fae80['push']({'startOffset':Number(_0x328612),'endOffset':Number(_0x3f21ea),'collapsed':_0x328612===_0x3f21ea,'isActive':_0x1fc4ea==='1','rangeType':_0x5bab92===a[_0x3392f4(0x1b9)][_0x3392f4(0x3ae)]?a['DOC_RANGE_TYPE'][_0x3392f4(0x3ae)]:a[_0x3392f4(0x1b9)][_0x3392f4(0x255)],'segmentId':typeof _0x4958cd=='string'?String(_0x4958cd):'','segmentPage':Number(_0xe1612f!=null?_0xe1612f:-0x1)});}return _0x2fae80[_0x3392f4(0x17b)](_0x334276=>_0x334276[_0x3392f4(0x325)])||(_0x2fae80[0x0][_0x3392f4(0x325)]=!0x0),_0x2fae80;}class pe extends a['RxDisposable']{constructor(){const _0x5718bc=_0x56af3f;super(...arguments),_(this,_0x5718bc(0x342),new d[(_0x5718bc(0x3c9))](null)),_(this,_0x5718bc(0x25f),this[_0x5718bc(0x342)][_0x5718bc(0x2fb)]());}[_0x56af3f(0x181)](_0x33c166){const _0x170948=_0x56af3f,{unitID:_0x4a87d9,memberID:_0xecd9e3,textRanges:_0x4b2670}=_0x33c166,_0x2c1169=we(_0x4b2670);if(_0x2c1169==='')return;const _0x3626d8={'unitID':_0x4a87d9,'memberID':_0xecd9e3,'selection':_0x2c1169};this[_0x170948(0x342)][_0x170948(0x30b)](_0x3626d8);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x189a80,_0x2af041,_0x2c23a6,_0x424b91)=>{const _0x3c4a04=_0x56af3f;for(var _0x389c51=_0x424b91>0x1?void 0x0:_0x424b91?Qe(_0x2af041,_0x2c23a6):_0x2af041,_0x58616d=_0x189a80[_0x3c4a04(0x36a)]-0x1,_0x16c168;_0x58616d>=0x0;_0x58616d--)(_0x16c168=_0x189a80[_0x58616d])&&(_0x389c51=_0x16c168(_0x389c51)||_0x389c51);return _0x389c51;},L=(_0x335da1,_0x509572)=>(_0x2cde2a,_0x207c38)=>_0x509572(_0x2cde2a,_0x207c38,_0x335da1);const tt=0x12c,st=0x64;let Se=class extends a[_0x56af3f(0x2b9)]{constructor(_0x124d15,_0x4f7329,_0x46ab2a,_0x21945a,_0x54b840,_0x502b45,_0x72f70f,_0x43cf9f,_0x54343d){const _0x2755f4=_0x56af3f;super(),_(this,_0x2755f4(0x34b),!0x1),_(this,_0x2755f4(0x39b),!0x1),_(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),_(this,_0x2755f4(0x2cc),this[_0x2755f4(0x1ea)][_0x2755f4(0x2fb)]()),_(this,'_roomMembers$',new d[(_0x2755f4(0x3c9))]([])),_(this,_0x2755f4(0x2d5),this[_0x2755f4(0x339)][_0x2755f4(0x215)](d[_0x2755f4(0x367)](tt))),_(this,_0x2755f4(0x369),a[_0x2755f4(0x1ac)](_0x4610d6=>{const _0x307e1e=_0x2755f4,_0x3666db={'eventID':m[_0x307e1e(0x2a1)][_0x307e1e(0x1a3)],'data':{'unitID':this[_0x307e1e(0x1cb)],'memberID':this[_0x307e1e(0x1b4)][_0x307e1e(0x1f5)](),'selection':we(_0x4610d6)}};this[_0x307e1e(0x1b4)]['send'](_0x3666db,this[_0x307e1e(0x1cb)]);},st)),(this[_0x2755f4(0x1cb)]=_0x124d15,this['_session']=_0x4f7329,this['_injector']=_0x46ab2a,this[_0x2755f4(0x24c)]=_0x21945a,this[_0x2755f4(0x203)]=_0x54b840,this[_0x2755f4(0x352)]=_0x502b45,this[_0x2755f4(0x1dd)]=_0x72f70f,this[_0x2755f4(0x214)]=_0x43cf9f,this[_0x2755f4(0x198)]=_0x54343d);}get[_0x56af3f(0x274)](){const _0x30a480=_0x56af3f;return this['_cursorInfo$'][_0x30a480(0x2e7)]();}get[_0x56af3f(0x228)](){const _0x35f303=_0x56af3f;return this['_roomMembers$'][_0x35f303(0x2e7)]();}[_0x56af3f(0x3bd)](){const _0x209646=_0x56af3f;super[_0x209646(0x3bd)](),this[_0x209646(0x1ea)][_0x209646(0x30b)](new Map()),this['_cursorInfo$']['complete'](),this[_0x209646(0x339)][_0x209646(0x30b)]([]),this[_0x209646(0x339)][_0x209646(0x270)]();}[_0x56af3f(0x362)](){const _0x16651f=_0x56af3f;this[_0x16651f(0x39b)]||(this['_init']=!0x0,this[_0x16651f(0x1b4)][_0x16651f(0x37c)][_0x16651f(0x215)](d[_0x16651f(0x273)](this[_0x16651f(0x170)]))[_0x16651f(0x17d)](_0x7a2279=>{const _0x428379=_0x16651f;_0x7a2279===u['SessionStatus'][_0x428379(0x24b)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x16651f(0x1b4)][_0x16651f(0x360)][_0x16651f(0x215)](d[_0x16651f(0x273)](this[_0x16651f(0x170)]))[_0x16651f(0x17d)](_0x313f40=>{const _0x5c5947=_0x16651f,_0x1740fe=_0x313f40[_0x5c5947(0x380)];_0x1740fe===m[_0x5c5947(0x2a1)][_0x5c5947(0x1a3)]&&this[_0x5c5947(0x2ef)](_0x313f40),_0x1740fe===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x5c5947(0x39c)](_0x313f40);}),this[_0x16651f(0x2a6)](this[_0x16651f(0x198)][_0x16651f(0x31c)](_0x4d32d2=>{const _0x27bf72=_0x16651f,_0x4092ed=_0x4d32d2[_0x27bf72(0x1f8)];_0x4092ed!=null&&this[_0x27bf72(0x34b)]&&_0x4d32d2['id']===Y['SetTextSelectionsOperation']['id']&&_0x4092ed[_0x27bf72(0x24a)]===this[_0x27bf72(0x1cb)]&&_0x4092ed[_0x27bf72(0x2af)]===!0x1&&_0x4092ed[_0x27bf72(0x202)]['length']>0x0&&this[_0x27bf72(0x369)](_0x4092ed[_0x27bf72(0x202)]);})),this[_0x16651f(0x352)][_0x16651f(0x25f)]['pipe'](d['takeUntil'](this[_0x16651f(0x170)]))['subscribe'](_0x143bad=>{const _0x4241e0=_0x16651f;if((_0x143bad==null?void 0x0:_0x143bad['unitID'])!==this[_0x4241e0(0x1cb)])return;const _0x3fe262={'eventID':m[_0x4241e0(0x2a1)][_0x4241e0(0x1a3)],'data':_0x143bad};this[_0x4241e0(0x2ef)](_0x3fe262);}),this[_0x16651f(0x2a6)](this['_commandService'][_0x16651f(0x31c)](_0x423844=>{const _0x35058a=_0x16651f;if(_0x423844[_0x35058a(0x1f8)]==null)return;const _0x35f137=_0x423844[_0x35058a(0x1f8)];if(_0x423844['id']!==Y[_0x35058a(0x1ba)]['id']||_0x35f137[_0x35058a(0x24a)]!==this[_0x35058a(0x1cb)])return;const _0x5c125a={'id':'doc.mutation.rich-text-editing','params':_0x35f137},_0x396e35=this[_0x35058a(0x274)];for(const [_0x429b54,_0x2c5964]of _0x396e35){const _0x4a0267={'id':_0x35058a(0x14a),'params':{'unitId':this[_0x35058a(0x1cb)],'actions':null,'textRanges':_0x2c5964[_0x35058a(0x202)]}},_0x475d9e=this['_transformService']['transformMutation'](_0x5c125a,_0x4a0267,!0x1);if(m[_0x35058a(0x2e1)](_0x475d9e))throw _0x475d9e[_0x35058a(0x252)];_0x396e35[_0x35058a(0x3b5)](_0x429b54,{..._0x2c5964,'ranges':_0x475d9e[_0x35058a(0x193)][_0x35058a(0x1f8)][_0x35058a(0x1b7)]});}queueMicrotask(()=>{const _0xc02ff9=_0x35058a;this[_0xc02ff9(0x1ea)][_0xc02ff9(0x30b)](_0x396e35);});})));}['_onCursorUpdate'](_0xa5d880){const _0x3338c5=_0x56af3f;var _0x5d48f5,_0x7a2e0;const {memberID:_0x5d39de,selection:_0x5d0bae}=_0xa5d880[_0x3338c5(0x180)],_0x113ed9=Ze(_0x5d0bae),_0x554277=(_0x7a2e0=(_0x5d48f5=this[_0x3338c5(0x203)][_0x3338c5(0x2b3)](this[_0x3338c5(0x1cb)],_0x5d39de))==null?void 0x0:_0x5d48f5[_0x3338c5(0x39a)])!=null?_0x7a2e0:'Unknown\x20user',_0x51991e={'color':this[_0x3338c5(0x24c)][_0x3338c5(0x212)](_0x5d39de),'name':_0x554277,'ranges':_0x113ed9},_0x19d603=this['cursorInfo'];_0x19d603[_0x3338c5(0x3b5)](_0x5d39de,_0x51991e),this[_0x3338c5(0x1ea)][_0x3338c5(0x30b)](_0x19d603);}[_0x56af3f(0x39c)](_0x2838c3){const _0x4942be=_0x56af3f,{memberID:_0x461e7b}=_0x2838c3[_0x4942be(0x180)],_0x5e3584=this[_0x4942be(0x274)];_0x5e3584['delete'](_0x461e7b),this[_0x4942be(0x1ea)][_0x4942be(0x30b)](_0x5e3584);}[_0x56af3f(0x2f5)](){const _0x209823=_0x56af3f;var _0x4f3e88;if(this['_online']=!0x0,((_0x4f3e88=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4f3e88['getUnitId']())!==this[_0x209823(0x1cb)])return;const _0x2b75d4=this[_0x209823(0x3b1)][_0x209823(0x302)](Y[_0x209823(0x22b)])[_0x209823(0x2dd)]();Array[_0x209823(0x22f)](_0x2b75d4)&&_0x2b75d4[_0x209823(0x36a)]>0x0&&this[_0x209823(0x369)](_0x2b75d4);}[_0x56af3f(0x239)](){const _0x37e234=_0x56af3f;this[_0x37e234(0x34b)]=!0x1;}};Se=et([L(0x2,a[_0x56af3f(0x253)](a[_0x56af3f(0x3b6)])),L(0x3,a['Inject'](Ce)),L(0x4,a[_0x56af3f(0x253)](u[_0x56af3f(0x227)])),L(0x5,a[_0x56af3f(0x253)](pe)),L(0x6,m[_0x56af3f(0x275)]),L(0x7,a[_0x56af3f(0x3bb)]),L(0x8,a[_0x56af3f(0x1f7)])],Se);function _0xcc01(){const _0x12f888=['FETCH_MISS','merge','InsertRangeMoveDownCommandId','_hideTimer','OnLineSingle','fillStyle','executeCommand','_collabCursorState$','disposeUnit','TRANSFORM_CHANGE_OBSERVABLE_TYPE','5713736TjUEWD','type','round','xlink:href','_handleJoinEvent','source','_online','rxjs/operators','getSheetObject','1em','values','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','transformByState','_syncEditingCollabCursorService','toDisposable','IMessageService','_saveTaskMap','_eventUnsubscribe','clsx','getVpScrollXYInfoByPosToVp','_initResize','_colorIndex','SNAPSHOT_INVALID_SNAPSHOT','includes','runRefRangeMutations','_transformUndoRedoStack','onlineStatusTitle','event$','onPointerLeave$','init','evenodd','children','YUUMI_SUBSCRIPTION_NOT_FOUND','push','debounceTime','SetWorksheetActivateCommand','_updateLocalCursor','length','transformIMECache','_uiPartsService','registerComponent','_docClipboardService','indexOf','@univerjs/network','RemoveRowCommandId','hasOwnProperty','DataLoaderService','sheetId','_ensureSubject','transformMutationsWithChangeset','function','transformSelections','hovered','setStateCache','random','sessionStatus$','removeParam','OFFLINE','_httpService','eventID','max','startColumn','getActiveSheet','CollaborationStatus','Vector2','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','searchParams','currentColor','_docTransformStateCacheService','editingUnit','_collaborationUIEventService','_getAnchorBounding','range','startRow','connectInjector','_messageService','transformRemoteChangeset','handleDeleteRangeMoveLeft','executionId','#fff','path','_scheduleHeartbeat','measureText','M0\x200H16V16H0z','188335WBJrNP','name','_init','_onCursorDelete','Workbook','getCurrent','getRenderById','m1Prime','@univerjs-pro/collaboration-client','IRenderManagerService','handleMoveRange','_render','getCoordByCell','SUBMIT_CHANGESET_TIMEOUT','_notificationService','OffLineSingle','getSkeleton','onStarting','_name','getLocalCacheKey','LOCAL_CACHE_INTERVAL','TEXT','width','EMAIL_HAS_BEEN_BOUND','_injector','SessionStatus','USER_NOT_INVITED_CODE','getUndoRedoMutationParamsCache','set','Injector','NOT_COLLAB','DeleteRangeMoveUpCommandId','ColorKit','_collabCursorController','IUniverInstanceService','_docSyncEditingCollabCursorService','dispose','@univerjs/ui','_logService','_anchor','NO_OTHER_CLIENTS_EDITING','react/jsx-runtime','_initStatusComponent','_getScale','UNRECOGNIZED','location','@univerjs/sheets-ui','session.collaboration-timeout','BehaviorSubject','backgroundColor','getCollabCursors$','LICENSE_EXPORT_SIZE_EXCEEDED','_heartbeatTimer','_scene','has','ILocalCacheService','translate(.97)','EffectRefRangId','...','offline','_status$','10607240qGZaGf','_updateCollabCursors','sessionTicket','doc.mutation.rich-text-editing','fromEvent','unload','useObservable','split','registerBeforeClose','UnitStatus','_drawTextRange','1730810vJvOoM','fill','skeleton','use','fillRule','_getSessionTicket','Error','actions','LICENSE_MAX_UNITS_EXCEEDED','unit','_disabled','transformStateCache','currentTheme$','UNDEFINED','arc','getItem','getOwnPropertyDescriptor','addEventListener','PY_RUNTIME_SCRIPT_ERROR','handleIRemoveRow','with','invokeId','getCellPositionByOffset','on-line-single_clip0_910_349','LOCAL_CACHE_INTERVAL_KEY','_backgroundColor','collabStatus.notCollab','univer-online-status-title','throttleTime','toString','dispose$','setConfig','addClipboardHook','size','NodePositionConvertToCursor','_transformHistoryAndStateStack','activeSheet$','_localeService','_cachedData','@univerjs-pro/collaboration','PENDING','some','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','subscribe','restore','addObject','data','syncEditingCollabCursor','WebBrowserSingleActiveUnitService','APPLY_DUPLICATED','storage','YUUMI_RATE_OVER_LIMIT','SetDocZoomRatioOperation','_anchorDot','UNIVER_DOC','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initDependencies','updateOfflineData','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_collaborationController','@univerjs/docs','CommandType','replace','map','ticket','m2Prime','WECHAT_HAS_BEEN_BOUND','Module','INotificationService','_hovered','_commandService','CLOSE_ROOM','clipPath','_hover','_removeClearOtherTimer','href','post','[RemoteUniscriptService]:\x20no\x20focused\x20unit','attrs','black','then','UPDATE_CURSOR','_getMergeRange','icon','univerjs-icon\x20univerjs-icon-','_entities','_unitOnClients','univer-online-status-icon','collaboration.single-unit.warning','handleDeleteRangeMoveUp','debounce','456711jUdDSe','TOO_MANY_REQUESTS','_transformPreviousActiveRange','JOIN_ROOM_FAILED','LocaleService','APPLY_REVISION_CONFILICT','setAlpha','_session','history','AWAITING_WITH_PENDING','textRanges','debug','DOC_RANGE_TYPE','RichTextEditingMutation','generateRandomId','off-line-single_clip0_910_343','add','urlChange$','fillText','engine','_startSheetCollabCursor','mapTo','current','_docSkeleton','LICENSE_IMPORT_SIZE_EXCEEDED','_saveCache','_cursorShapes','hide','exhaustSavingTask','saveImage','unitID','_scheduleSaving','_docStateChangeManagerService','3304428plIyIr','useRef','DEFAULT_WS_SESSION_TICKET_URL','forwardRef','memberID','DocCollaborationEntity','IUIPartsService','handleInsertCol','_handleHeartbeatEvent','DependentOn','AWAITING','entries','@univerjs/sheets','getOwnPropertySymbols','url(#$1','_transformService','parse','_registerDependencies','saveOfflineData','className','SOCKET_FAILED_RETRY','createInstance','_drawRectRange','replaceDocRanges','MessageType','_handleEvent','ENSURE_SNAPSHOT_EXECUTION','transformMutation','_cursorInfo$','getUniverSheetInstance','_entityInit$','search','saveTaskMap','_themeService','_updateURLWithCurrentState','getMergeData','setInterval','newValue','permission.content','getMemberID','DeleteRangeMoveLeftCommandId','ICommandService','params','svg','LICENSE_DISTRO_REJECTED','_refreshCollabCursors','assign','_assignedColors','getCurrentSelections','_shapes','online','@univerjs/drawing','ranges','_memberService','SheetsSelectionsService','startsWith','status$','DocStateChangeManagerService','switchMap','LOGIN_FAILED','_configService','CONFLICT','font','IBeforeCloseService','DesktopCollaborationStatusDisplayController','collab-rect-range-','drawWith','_docTransformIMECacheService','assignAColorForMemberID','CollaborationUIEventService','_univerInstanceService','pipe','_renderManagerService','CollaborationUIEventId','onlineStatusIcon','INVALID_ARGUMENT','getViewport','mutations','isTransformMutationsWithChangesetSuccess','useCallback','_startDocCollabCursor','Subject','Rectangle','findNodePositionByCharIndex','div','getCurrentUnitForType','replaceState','serializeRangeWithSheet','runOnServer','MemberService','roomMembers','labelPosition','getSheetId','DocSelectionManagerService','getParam','none','RemoveColCommandId','isArray','BuiltInUIPart','CollaborationSessionService','_range','IURLService','selection','WebSocketService','collab-text-range-','wsSessionTicketUrl','ACTIVE_UNIT_EVENT_CHANNEL','_toggleOffline','SNAPSHOT_HAS_BEEN_REMOVED','RegularPolygon','_removeCollabCursors','handleInsertRangeMoveRight','setTimeout','requireSession','getStateCache','call','code','IImageIoService','collaboration-client-ui.config','_getSaveTimeout','UniverInstanceType','selections','getAncestorScale','VIEW_MAIN','unitId','ONLINE','_colorAssignService','registerDependencies','defs','show','Shape','stringify','error','Inject','INVITE_CODE_HAS_BEEN_UES','RECT','Rect','_scheduleClearOtherTimer','COLORS','_lastPointer','Plugin','setUndoRedoMutationParamsCache','0\x200\x2017\x2016','0\x200\x2016\x2016','triggerDblclick','collabCursorState$','flatMap','column','uni.network.url-service','collab-client.tooltip.reconnect','subunit','[CollaborationDataLoaderController]','send','_clearOtherTimers','handleInsertRow','_localCacheService','getColor','jsx','enableLocalCache','session.connection-failed','trim','RevisionService','complete','_unitStatus','unsubscribe','takeUntil','cursorInfo','ITransformService','registerRefRange','loadUnit','subscribeEvent','imageSourceType','combineLatest','Disposable','closePath','onLocalMutation','INVALID_INVITE_CODE','INVITE_CODE_ALREADY_BOUND','subUnitId','runId','_initCommandExecutedListener','UniverCollaborationClientPlugin','addHandlerCallback','DocIMEInputManagerService','color','_setupBeforeClosingHandler','CHANGESET_REVISION_CONFILICT','_doCreateSocket','onPointerMove$','MoveRangeCommandId','createSocket','SheetCollabCursorShape','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','ILocalStorageService','mask','top','prototype','_send','jiqing500','1664630zPPmks','collabStatus.syncing','_selfUnitIDs','clearTimeout','colorChannel1','handleInsertRangeMoveDown','NodePositionConvertToRectRange','apply','APPLY_REJECT','clearInterval','useDependency','_cursor','CollaborationEvent','_urlService','moveTo','getUnhiddenWorksheets','body','disposeWithMe','getRelativeToViewportCoord','session.will-retry','_id','getFocusedUnit','_initStatusListener','resize','onMouseMove','_revisionService','isEditing','_draw','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','loadOfflineData','getMember','_localStorageService','_collabSessionService','YUUMI_URL_COL_OUT_OF_RANGE','undoState','row','RxDisposable','ThemeService','InsertRangeMoveRightCommandId','ISnapshotServerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','pushState','_setupSubUnitSync','defIds','CollaborationStatusDisplay','_context','filter','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','text','unshift','IConfigService','on-line-single','BrowserCollaborationSocketService','propertyIsEnumerable','getTypeOfUnitDisposed$','cursorInfo$','_handleLeaveEvent','HTTPService','_refRangeService','CollaborationSocketService','COMPLETION_FINISHED','UNAUTHENTICATED','focused$','contains','roomMembers$','_initEvent','Tools','delete','_registerRenderDependencies','Warning','_sheetSkeletonManagerService','lineTo','getDocRanges','INTERNAL_ERROR','deepClone','univer-flex\x20univer-items-center','isTransformMutationFailure','8tbWydz','getSheetBySheetId','setShapeProps','_handleHover','setItem','getValue','setParam','TEXT_RANGE_LAYER_INDEX','blue400','forEach','defineProperty','Unknown\x20user','key','_onCursorUpdate','_updateSubUnitFromURLParams','concat','ILogService','IRemoteInstanceService','_initEntityListener','_toggleOnline','HEADER_MENU','gold400','createIdentifier','CollaborationController','getConfig','asObservable','collab-text-anchor-','getUnitId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_createSocketURL','getUnitStatus$','shareReplay','get','WebURLService','INVITE_CODE_REQUIRED','addObjects','redoState','UniverIcon','SheetSkeletonManagerService','bottom','CollaborationDataLoaderController','next','Failed','touchDependencies','_textBubble','_docTransformSelectionsService','NOT_FOUND','_imageIoService','displayName','transform','application/json','CONNECTOR_DATA_TOO_LARGE','_instanceService','onPointerEnter$','_onRefRangeChange','collaboration.closeRoom','extend','onTransformChange$','onCommandExecuted','currentSkeleton$','beginPath','idSuffix','tag','_labelPosition','string','from','toRgbString','isActive','handleIRemoveCol','_color','PERMISSION_DENIED','_cursors','collabStatus.fetchMiss','UNIVER_SHEET','YUUMI_NO_CUBOID_FOR_QUESTION','save','docStateChange$','MOBILE_HAS_BEEN_BOUND','_dataLoaderService','APPLY_NON_SEQUENTIAL_REVISION','getTypeOfUnitAdded$','entityInit$','SetSelectionsOperation','getRangePointData','RemoteUniscriptService','ALREADY_EXISTS','_beforeCloseService','_roomMembers$','createElement'];_0xcc01=function(){return _0x12f888;};return _0xcc01();}var nt=Object[_0x56af3f(0x162)],it=(_0x2bf849,_0x24ea6,_0x453aaf,_0x1472fd)=>{const _0x27d030=_0x56af3f;for(var _0x5ed4a4=_0x1472fd>0x1?void 0x0:_0x1472fd?nt(_0x24ea6,_0x453aaf):_0x24ea6,_0x45a764=_0x2bf849[_0x27d030(0x36a)]-0x1,_0x46d258;_0x45a764>=0x0;_0x45a764--)(_0x46d258=_0x2bf849[_0x45a764])&&(_0x5ed4a4=_0x46d258(_0x5ed4a4)||_0x5ed4a4);return _0x5ed4a4;},A=(_0xdccbf1,_0x3d662e)=>(_0x25599e,_0x29f3d3)=>_0x3d662e(_0x25599e,_0x29f3d3,_0xdccbf1);const rt=0x12c,ot=0x64,at=()=>{let _0x457e18=[],_0x34a90b=!0x1;return _0xb96c4b=>{const _0x15d338=_0x408b;_0x457e18[_0x15d338(0x366)](_0xb96c4b),_0x34a90b||(_0x34a90b=!0x0,setTimeout(()=>{const _0x383e63=_0x15d338;_0x457e18[_0x383e63(0x2eb)](_0x2a0c58=>_0x2a0c58()),_0x457e18=[],_0x34a90b=!0x1;}));};};let Ie=class extends a[_0x56af3f(0x2b9)]{constructor(_0x5b32db,_0x240964,_0x54016a,_0x30a1b1,_0x4286de,_0x4633ec,_0x4484b0,_0x1424d4){const _0x470290=_0x56af3f;super(),_(this,_0x470290(0x34b),!0x1),_(this,_0x470290(0x39b),!0x1),_(this,_0x470290(0x1ea),new d['BehaviorSubject'](new Map())),_(this,_0x470290(0x2cc),this[_0x470290(0x1ea)][_0x470290(0x2fb)]()),_(this,_0x470290(0x339),new d[(_0x470290(0x3c9))]([])),_(this,_0x470290(0x2d5),this[_0x470290(0x339)][_0x470290(0x215)](d[_0x470290(0x367)](rt))),_(this,_0x470290(0x369),a[_0x470290(0x1ac)]((_0x41c25e,_0x2938)=>{const _0x3e6441=_0x470290,_0x38db15={'eventID':m[_0x3e6441(0x2a1)][_0x3e6441(0x1a3)],'data':{'unitID':this['unitID'],'memberID':this[_0x3e6441(0x1b4)][_0x3e6441(0x1f5)](),'selection':Te[_0x3e6441(0x225)](_0x41c25e,_0x2938[_0x3e6441(0x38d)])}};this[_0x3e6441(0x1b4)][_0x3e6441(0x266)](_0x38db15,this[_0x3e6441(0x1cb)]);},ot)),(this[_0x470290(0x1cb)]=_0x5b32db,this[_0x470290(0x1b4)]=_0x240964,this['_injector']=_0x54016a,this[_0x470290(0x24c)]=_0x30a1b1,this['_memberService']=_0x4286de,this['_univerInstanceService']=_0x4633ec,this[_0x470290(0x198)]=_0x4484b0,this[_0x470290(0x2cf)]=_0x1424d4);}get['cursorInfo'](){const _0x20d4d3=_0x56af3f;return this[_0x20d4d3(0x1ea)]['getValue']();}get[_0x56af3f(0x228)](){const _0x1f4f7e=_0x56af3f;return this['_roomMembers$'][_0x1f4f7e(0x2e7)]();}[_0x56af3f(0x3bd)](){const _0x2cff89=_0x56af3f;super[_0x2cff89(0x3bd)](),this[_0x2cff89(0x1ea)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x2cff89(0x339)][_0x2cff89(0x30b)]([]),this[_0x2cff89(0x339)][_0x2cff89(0x270)]();}[_0x56af3f(0x362)](){const _0x440249=_0x56af3f;this[_0x440249(0x39b)]||(this[_0x440249(0x39b)]=!0x0,this[_0x440249(0x1b4)][_0x440249(0x37c)]['pipe'](d[_0x440249(0x273)](this[_0x440249(0x170)]))['subscribe'](_0x528db6=>{const _0x1cb61b=_0x440249;_0x528db6===u[_0x1cb61b(0x3b2)][_0x1cb61b(0x24b)]?this[_0x1cb61b(0x2f5)]():this[_0x1cb61b(0x239)]();}),this['_session'][_0x440249(0x360)][_0x440249(0x215)](d[_0x440249(0x273)](this[_0x440249(0x170)]))[_0x440249(0x17d)](_0x354dd6=>{const _0x466d7f=_0x440249,_0x83f697=_0x354dd6[_0x466d7f(0x380)];_0x83f697===m['CollaborationEvent'][_0x466d7f(0x1a3)]&&this['_onCursorUpdate'](_0x354dd6),_0x83f697===m[_0x466d7f(0x2a1)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x354dd6);}),this['_onRefRangeChange'](),this[_0x440249(0x2a6)](this[_0x440249(0x198)][_0x440249(0x31c)](_0x5dd05c=>{const _0x559113=_0x440249;if(this[_0x559113(0x34b)]&&_0x5dd05c['id']===g[_0x559113(0x334)]['id']&&_0x5dd05c['params'][_0x559113(0x24a)]===this[_0x559113(0x1cb)]){const _0x51b593=_0x5dd05c[_0x559113(0x1f8)];this[_0x559113(0x369)](_0x51b593[_0x559113(0x280)],_0x51b593[_0x559113(0x247)][0x0]);}})));}[_0x56af3f(0x2ef)](_0x3c54de){const _0x28ec2d=_0x56af3f;var _0x1bab36,_0x22991c;const {memberID:_0x295cf8,selection:_0x569103}=_0x3c54de[_0x28ec2d(0x180)],{sheetName:_0x2d2752,range:_0x52e115}=Te['deserializeRangeWithSheet'](_0x569103),_0x5148c6={'name':(_0x22991c=(_0x1bab36=this['_memberService']['getMember'](this['unitID'],_0x295cf8))==null?void 0x0:_0x1bab36[_0x28ec2d(0x39a)])!=null?_0x22991c:_0x28ec2d(0x2ed),'range':this[_0x28ec2d(0x1a4)](_0x2d2752,_0x52e115),'sheetID':_0x2d2752,'color':this[_0x28ec2d(0x24c)][_0x28ec2d(0x212)](_0x295cf8),'selection':_0x569103},_0x2f28cc=this[_0x28ec2d(0x274)];_0x2f28cc['set'](_0x295cf8,_0x5148c6),this[_0x28ec2d(0x1ea)]['next'](_0x2f28cc);}['_onCursorDelete'](_0x468ac8){const _0x2e2507=_0x56af3f,{memberID:_0x221fff}=_0x468ac8['data'],_0x5aa2ce=this[_0x2e2507(0x274)];_0x5aa2ce[_0x2e2507(0x2d8)](_0x221fff),this[_0x2e2507(0x1ea)]['next'](_0x5aa2ce);}['_getMergeRange'](_0x10f135,_0x2d9caa){const _0x3f912b=_0x56af3f;var _0x1b093b,_0x9b43e3;const _0x3f9294=(_0x9b43e3=(_0x1b093b=this[_0x3f912b(0x214)][_0x3f912b(0x1eb)](this['unitID']))==null?void 0x0:_0x1b093b['getSheetBySheetId'](_0x10f135))==null?void 0x0:_0x9b43e3[_0x3f912b(0x1f1)]();return(_0x3f9294==null?void 0x0:_0x3f9294['find'](_0x5ba997=>a[_0x3f912b(0x220)][_0x3f912b(0x2d4)](_0x5ba997,_0x2d9caa)))||_0x2d9caa;}[_0x56af3f(0x318)](){const _0x33012f=_0x56af3f,_0x4423a5=new a['DisposableCollection'](),_0x3876fc=at(),_0xf262e6=()=>{const _0x4d4ac6=_0x408b;_0x4423a5[_0x4d4ac6(0x3bd)]();const _0x3f01a7=(_0x1547a5,_0x54485a,_0x534cc1,_0x27f675)=>{const _0x234770=_0x4d4ac6;let _0x16c35f=[];switch(_0x1547a5['id']){case g['EffectRefRangId'][_0x234770(0x1f6)]:{_0x16c35f=g[_0x234770(0x392)](_0x1547a5,_0x27f675);break;}case g['EffectRefRangId'][_0x234770(0x3b8)]:{_0x16c35f=g[_0x234770(0x1ab)](_0x1547a5,_0x27f675);break;}case g[_0x234770(0x143)]['InsertColCommandId']:{_0x16c35f=g[_0x234770(0x1d5)](_0x1547a5,_0x27f675);break;}case g['EffectRefRangId'][_0x234770(0x33d)]:{_0x16c35f=g[_0x234770(0x29a)](_0x1547a5,_0x27f675);break;}case g[_0x234770(0x143)][_0x234770(0x2bb)]:{_0x16c35f=g[_0x234770(0x23d)](_0x1547a5,_0x27f675);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x16c35f=g[_0x234770(0x268)](_0x1547a5,_0x27f675);break;}case g[_0x234770(0x143)][_0x234770(0x28b)]:{_0x16c35f=g[_0x234770(0x3a3)](_0x1547a5,_0x27f675);break;}case g[_0x234770(0x143)][_0x234770(0x22e)]:{_0x16c35f=g[_0x234770(0x326)](_0x1547a5,_0x27f675);break;}case g['EffectRefRangId'][_0x234770(0x371)]:{_0x16c35f=g[_0x234770(0x165)](_0x1547a5,_0x27f675);break;}}const _0xda37ac=g[_0x234770(0x35d)](_0x16c35f,_0x27f675),_0x265369=this['cursorInfo'][_0x234770(0x302)](_0x54485a);if(_0x265369&&_0xda37ac){const _0x1d3cec={..._0x265369,'range':_0xda37ac};this[_0x234770(0x274)]['set'](_0x54485a,_0x1d3cec),_0x3876fc(()=>{const _0x1169bf=_0x234770,_0x36bcbe=this[_0x1169bf(0x2cf)][_0x1169bf(0x276)](_0xda37ac,_0x162bf6=>(_0x36bcbe['dispose'](),_0x3f01a7(_0x162bf6,_0x54485a,_0x534cc1,_0xda37ac)));_0x4423a5[_0x1169bf(0x1bd)](_0x36bcbe);});}return{'redos':[],'undos':[]};};this[_0x4d4ac6(0x274)][_0x4d4ac6(0x2eb)]((_0x4cef7a,_0x12cc5f)=>{const _0x479a34=_0x4d4ac6,{range:_0x10a59e,sheetID:_0x5282a5}=_0x4cef7a,_0x218212=this[_0x479a34(0x2cf)][_0x479a34(0x276)](_0x10a59e,_0x3b063a=>(_0x218212[_0x479a34(0x3bd)](),_0x3f01a7(_0x3b063a,_0x12cc5f,_0x5282a5,_0x10a59e)));_0x4423a5['add'](_0x218212);});};this[_0x33012f(0x2a6)](a[_0x33012f(0x353)](this[_0x33012f(0x1ea)][_0x33012f(0x17d)](()=>{_0xf262e6();})));}[_0x56af3f(0x2f5)](){const _0xddd1f6=_0x56af3f;var _0x45fc46,_0xbd480e;if(this[_0xddd1f6(0x34b)]=!0x0,((_0x45fc46=this[_0xddd1f6(0x214)][_0xddd1f6(0x2aa)]())==null?void 0x0:_0x45fc46[_0xddd1f6(0x2fd)]())!==this['unitID'])return;const _0x446852=(_0xbd480e=this[_0xddd1f6(0x3b1)][_0xddd1f6(0x302)](g[_0xddd1f6(0x204)])[_0xddd1f6(0x1fe)]())==null?void 0x0:_0xbd480e[0x0],_0x5dd8d4=this[_0xddd1f6(0x214)][_0xddd1f6(0x223)](a[_0xddd1f6(0x246)][_0xddd1f6(0x32b)])[_0xddd1f6(0x383)]();_0x446852&&_0x5dd8d4&&this[_0xddd1f6(0x369)](_0x5dd8d4[_0xddd1f6(0x22a)](),_0x446852);}[_0x56af3f(0x239)](){const _0x1a95f4=_0x56af3f;this[_0x1a95f4(0x34b)]=!0x1;}};Ie=it([A(0x2,a[_0x56af3f(0x253)](a[_0x56af3f(0x3b6)])),A(0x3,a[_0x56af3f(0x253)](Ce)),A(0x4,a[_0x56af3f(0x253)](u[_0x56af3f(0x227)])),A(0x5,a[_0x56af3f(0x3bb)]),A(0x6,a[_0x56af3f(0x1f7)]),A(0x7,a[_0x56af3f(0x253)](g['RefRangeService']))],Ie);var ct=Object[_0x56af3f(0x162)],lt=(_0x2152b9,_0x1abcab,_0x57589a,_0x589962)=>{const _0x30c04f=_0x56af3f;for(var _0x660b62=_0x589962>0x1?void 0x0:_0x589962?ct(_0x1abcab,_0x57589a):_0x1abcab,_0x431aaf=_0x2152b9[_0x30c04f(0x36a)]-0x1,_0xcb5f11;_0x431aaf>=0x0;_0x431aaf--)(_0xcb5f11=_0x2152b9[_0x431aaf])&&(_0x660b62=_0xcb5f11(_0x660b62)||_0x660b62);return _0x660b62;},ie=(_0x54261a,_0x56d4e0)=>(_0x5a62b2,_0x116e80)=>_0x56d4e0(_0x5a62b2,_0x116e80,_0x54261a);let x=class extends a[_0x56af3f(0x2b9)]{constructor(_0x13a35c,_0x19dec5,_0x4b8ce8){const _0x51ab9f=_0x56af3f;super(),_(this,_0x51ab9f(0x1a7),new Map()),_(this,_0x51ab9f(0x1ec),new d[(_0x51ab9f(0x21f))]()),(this[_0x51ab9f(0x214)]=_0x13a35c,this[_0x51ab9f(0x3b1)]=_0x19dec5,this[_0x51ab9f(0x2b5)]=_0x4b8ce8,this[_0x51ab9f(0x39b)]());}[_0x56af3f(0x3bd)](){const _0x54284a=_0x56af3f;super[_0x54284a(0x3bd)](),this[_0x54284a(0x1ec)][_0x54284a(0x270)](),this['_entities'][_0x54284a(0x2eb)](_0x19a9aa=>_0x19a9aa[_0x54284a(0x3bd)]());}[_0x56af3f(0x3cb)](_0x113ee4){const _0x321bb6=_0x56af3f;return this['_entities'][_0x321bb6(0x140)](_0x113ee4)?this['_entities'][_0x321bb6(0x302)](_0x113ee4)['cursorInfo$']:this['_entityInit$'][_0x321bb6(0x215)](d[_0x321bb6(0x2c3)](_0x3ea74b=>_0x3ea74b[_0x321bb6(0x1cb)]===_0x113ee4),d['switchMap'](_0x183670=>_0x183670[_0x321bb6(0x2cc)]));}[_0x56af3f(0x39b)](){const _0x256a1c=_0x56af3f;this[_0x256a1c(0x214)]['getTypeOfUnitAdded$'](a[_0x256a1c(0x246)][_0x256a1c(0x32b)])[_0x256a1c(0x215)](d[_0x256a1c(0x273)](this[_0x256a1c(0x170)]))[_0x256a1c(0x17d)](async _0x4e1b60=>{const _0x539f31=_0x256a1c,_0x33993c=_0x4e1b60['getUnitId'](),_0x34637e=await this[_0x539f31(0x1c1)](_0x33993c);this[_0x539f31(0x1ec)]['next'](_0x34637e),this[_0x539f31(0x1a7)][_0x539f31(0x3b5)](_0x33993c,_0x34637e);}),this[_0x256a1c(0x214)][_0x256a1c(0x332)](a['UniverInstanceType'][_0x256a1c(0x188)])[_0x256a1c(0x215)](d[_0x256a1c(0x273)](this['dispose$']))[_0x256a1c(0x215)](d['filter'](_0x53225e=>!_0x53225e[_0x256a1c(0x2fd)]()[_0x256a1c(0x205)]('__')))[_0x256a1c(0x17d)](async _0x1d7bd0=>{const _0x5528ad=_0x256a1c,_0x47a6d8=_0x1d7bd0[_0x5528ad(0x2fd)](),_0x3c33d9=await this[_0x5528ad(0x21e)](_0x47a6d8);this[_0x5528ad(0x1ec)][_0x5528ad(0x30b)](_0x3c33d9),this[_0x5528ad(0x1a7)]['set'](_0x47a6d8,_0x3c33d9);}),d[_0x256a1c(0x33c)](this[_0x256a1c(0x214)][_0x256a1c(0x2cb)](a[_0x256a1c(0x246)][_0x256a1c(0x188)]),this['_univerInstanceService'][_0x256a1c(0x2cb)](a[_0x256a1c(0x246)]['UNIVER_SHEET']))['pipe'](d[_0x256a1c(0x273)](this[_0x256a1c(0x170)]))[_0x256a1c(0x17d)](_0x2dd50f=>{const _0x52c706=_0x256a1c,_0x33f1ce=_0x2dd50f[_0x52c706(0x2fd)](),_0x23455b=this[_0x52c706(0x1a7)][_0x52c706(0x302)](_0x33f1ce);_0x23455b&&(_0x23455b[_0x52c706(0x3bd)](),this[_0x52c706(0x1a7)][_0x52c706(0x2d8)](_0x33f1ce));});}async['_startSheetCollabCursor'](_0x178f33){const _0x36172a=_0x56af3f,_0x343ffd=await this['_collabSessionService'][_0x36172a(0x23f)](_0x178f33),_0x1ae101=this[_0x36172a(0x3b1)][_0x36172a(0x1e3)](Ie,_0x178f33,_0x343ffd);return _0x1ae101[_0x36172a(0x362)](),_0x1ae101;}async['_startDocCollabCursor'](_0x44e1f2){const _0x35d91f=_0x56af3f,_0x38f524=await this[_0x35d91f(0x2b5)][_0x35d91f(0x23f)](_0x44e1f2),_0x175d23=this['_injector']['createInstance'](Se,_0x44e1f2,_0x38f524);return _0x175d23[_0x35d91f(0x362)](),_0x175d23;}};x=lt([ie(0x0,a['IUniverInstanceService']),ie(0x1,a['Inject'](a[_0x56af3f(0x3b6)])),ie(0x2,a[_0x56af3f(0x253)](u[_0x56af3f(0x231)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x3c37d8,_0x2f10c3){const _0x4afb1f=_0x56af3f;let {radius:_0x1e4beb,width:_0x3a38e6,height:_0x32d758}=_0x2f10c3;_0x1e4beb=_0x1e4beb!=null?_0x1e4beb:0x0,_0x3a38e6=_0x3a38e6!=null?_0x3a38e6:0x1e,_0x32d758=_0x32d758!=null?_0x32d758:0x1e;let _0x46d600=0x0,_0x59c1ad=0x0,_0x4040a0=0x0;_0x46d600=_0x59c1ad=_0x4040a0=Math['min'](_0x1e4beb,_0x3a38e6/0x2,_0x32d758/0x2),_0x3c37d8[_0x4afb1f(0x31e)](),_0x3c37d8[_0x4afb1f(0x2a3)](_0x46d600,0x0),_0x3c37d8['lineTo'](_0x3a38e6-_0x59c1ad,0x0),_0x3c37d8[_0x4afb1f(0x160)](_0x3a38e6-_0x59c1ad,_0x59c1ad,_0x59c1ad,Math['PI']*0x3/0x2,0x0,!0x1),_0x3c37d8[_0x4afb1f(0x2dc)](_0x3a38e6,_0x32d758-_0x4040a0),_0x3c37d8[_0x4afb1f(0x160)](_0x3a38e6-_0x4040a0,_0x32d758-_0x4040a0,_0x4040a0,0x0,Math['PI']/0x2,!0x1),_0x3c37d8[_0x4afb1f(0x2dc)](0x0,_0x32d758),_0x3c37d8[_0x4afb1f(0x2dc)](0x0,_0x46d600),_0x3c37d8['arc'](_0x46d600,_0x46d600,_0x46d600,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3c37d8[_0x4afb1f(0x27c)](),_0x2f10c3[_0x4afb1f(0x153)]&&(_0x3c37d8[_0x4afb1f(0x32d)](),_0x3c37d8[_0x4afb1f(0x340)]=_0x2f10c3[_0x4afb1f(0x153)],_0x2f10c3[_0x4afb1f(0x156)]===_0x4afb1f(0x363)?_0x3c37d8[_0x4afb1f(0x153)]('evenodd'):_0x3c37d8[_0x4afb1f(0x153)](),_0x3c37d8[_0x4afb1f(0x17e)]());}class te extends p['Shape']{constructor(_0x1c8323,_0x20937c){const _0x54838e=_0x56af3f;super(_0x1c8323,_0x20937c),_(this,_0x54838e(0x286)),_(this,_0x54838e(0x2c5)),(this[_0x54838e(0x286)]=_0x20937c==null?void 0x0:_0x20937c[_0x54838e(0x286)],this[_0x54838e(0x2c5)]=_0x20937c==null?void 0x0:_0x20937c['text']);}static['drawWith'](_0x11e60a,_0x8e94bb){const _0x512d22=_0x56af3f,{text:_0xa13c5a,color:_0x7c8151}=_0x8e94bb;_0x11e60a[_0x512d22(0x32d)](),_0x11e60a[_0x512d22(0x20c)]=_0x512d22(0x2b1);const _0x7d19=_0x11e60a['measureText'](_0xa13c5a)['width'],_0x107813=Math['min'](_0x7d19+0x2*re,De);ht(_0x11e60a,{'height':K,'radius':0x4,'width':_0x107813,'fill':_0x7c8151}),_0x11e60a[_0x512d22(0x340)]='#FFF';const _0x2d07cb=re,_0x336dc0=K-_t,_0x187e06=De-0x2*re;if(_0x7d19>_0x187e06){let _0x31ce59='',_0x4b5ba4=0x0;for(const _0x52d6bc of _0xa13c5a){const _0x38e198=_0x11e60a[_0x512d22(0x397)](_0x52d6bc)[_0x512d22(0x3af)];if(_0x4b5ba4+_0x38e198<=_0x187e06-_0x11e60a['measureText'](_0x512d22(0x144))[_0x512d22(0x3af)])_0x31ce59+=_0x52d6bc,_0x4b5ba4+=_0x38e198;else{_0x31ce59+=_0x512d22(0x144);break;}}_0x11e60a['fillText'](_0x31ce59,_0x2d07cb,_0x336dc0);}else _0x11e60a[_0x512d22(0x1bf)](_0xa13c5a,_0x2d07cb,_0x336dc0);_0x11e60a[_0x512d22(0x17e)]();}[_0x56af3f(0x2b0)](_0x30d044){te['drawWith'](_0x30d044,this);}}const oe=_0x56af3f(0x2fc),ut=_0x56af3f(0x236),dt=_0x56af3f(0x20f),k=0x6,ft=1.5,ae=0x4,St=1.5,It='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x3b93c9,_0x337ac7,_0x5d7585,_0x28eba9){const _0x4322e6=_0x56af3f;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x4322e6(0x187),null),_(this,_0x4322e6(0x33e),null),_(this,'_eventUnsubscribe',null),(this[_0x4322e6(0x2a0)]=_0x3b93c9,this[_0x4322e6(0x3ce)]=_0x337ac7,this[_0x4322e6(0x1c4)]=_0x5d7585,this['_document']=_0x28eba9,this[_0x4322e6(0x3a4)]());}set[_0x56af3f(0x19b)](_0x32d389){const _0x4c8746=_0x56af3f;_0x32d389?(this[_0x4c8746(0x187)]&&this['_anchorDot'][_0x4c8746(0x1c8)](),this[_0x4c8746(0x30e)]&&this[_0x4c8746(0x30e)][_0x4c8746(0x24f)]()):(this[_0x4c8746(0x187)]&&this[_0x4c8746(0x187)][_0x4c8746(0x24f)](),this['_textBubble']&&this[_0x4c8746(0x30e)][_0x4c8746(0x1c8)]());}[_0x56af3f(0x3bd)](){const _0x236e22=_0x56af3f;for(const _0x447ba1 of this[_0x236e22(0x1ff)])_0x447ba1['dispose']();this['_textBubble']&&this[_0x236e22(0x30e)]['dispose'](),this[_0x236e22(0x187)]&&this[_0x236e22(0x187)][_0x236e22(0x3bd)](),this[_0x236e22(0x3c0)]&&this[_0x236e22(0x3c0)][_0x236e22(0x3bd)](),this[_0x236e22(0x356)]&&this[_0x236e22(0x356)]();}[_0x56af3f(0x3a4)](){const _0x53a72b=_0x56af3f;var _0x576a71;const {_docSkeleton:_0x99560,_document:_0x55e7e6}=this,{color:_0x224ea6,name:_0x5ba2ee,ranges:_0x5bd2ec}=this['_cursor'],_0x35b365=_0x55e7e6['getOffsetConfig'](),{docsLeft:_0x169976,docsTop:_0x12b0c1}=_0x35b365,_0x1eeed8=new b[(_0x53a72b(0x174))](_0x35b365,_0x99560);for(const {startOffset:_0x311ccc,endOffset:_0xde039e,rangeType:_0x3aed5c,segmentId:_0x437763,segmentPage:_0x3896e1,collapsed:_0x5b8ab4,isActive:_0x47e111}of _0x5bd2ec){const _0x18ab58=_0x99560['findNodePositionByCharIndex'](_0x311ccc,!0x0,_0x437763,_0x3896e1);let _0x36fb45=_0x99560[_0x53a72b(0x221)](_0xde039e,!0x0,_0x437763,_0x3896e1);if(_0x36fb45==null&&(_0x36fb45=_0x99560[_0x53a72b(0x221)](_0xde039e-0x1,!0x1,_0x437763,_0x3896e1)),_0x47e111){const {contentBoxPointGroup:_0x22bec0}=_0x1eeed8['getRangePointData'](_0x36fb45,_0x36fb45);if(_0x22bec0['length']===0x0)continue;this['_drawAnchor'](_0x224ea6,_0x22bec0,_0x169976,_0x12b0c1,_0x5ba2ee),this[_0x53a72b(0x356)]=this['_handleHover']();}if(_0x18ab58&&_0x36fb45){if(_0x3aed5c===a[_0x53a72b(0x1b9)][_0x53a72b(0x255)]){const _0x4d5b39=new b[(_0x53a72b(0x29b))](_0x35b365,_0x99560),{pointGroup:_0x533be8}=(_0x576a71=_0x4d5b39[_0x53a72b(0x335)](_0x18ab58,_0x36fb45))!=null?_0x576a71:{};if(_0x533be8==null||_0x533be8[_0x53a72b(0x36a)]===0x0)continue;this['_drawRectRange'](_0x224ea6,_0x533be8,_0x169976,_0x12b0c1);}else{if(!_0x5b8ab4){const {borderBoxPointGroup:_0x4cc427}=_0x1eeed8[_0x53a72b(0x335)](_0x18ab58,_0x36fb45);if(_0x4cc427[_0x53a72b(0x36a)]===0x0)continue;this[_0x53a72b(0x151)](_0x224ea6,_0x4cc427,_0x169976,_0x12b0c1);}}}}}['_drawAnchor'](_0x56ffce,_0x324e5b,_0x3504ce,_0x307093,_0x48967e){const _0x11a151=_0x56af3f,_0x1aa98a=this[_0x11a151(0x38c)](_0x324e5b),{left:_0x115517,top:_0x4f3e0d,height:_0x30395b}=_0x1aa98a,_0x2c09ce=this[_0x11a151(0x3c4)](),_0x56a3c3=St/_0x2c09ce,_0x4f8251=new p[(_0x11a151(0x256))](oe+a['Tools'][_0x11a151(0x1bb)](k),{'left':_0x115517+_0x3504ce-_0x56a3c3,'top':_0x4f3e0d+_0x307093,'height':_0x30395b,'width':ft,'fill':_0x56ffce||p[_0x11a151(0x26a)](a['COLORS'][_0x11a151(0x1a1)],0x0),'strokeWidth':_0x56a3c3,'stroke':It,'evented':!0x0});this['_anchor']=_0x4f8251,this[_0x11a151(0x3ce)]['addObject'](_0x4f8251,b[_0x11a151(0x2e9)]);const _0x2f4e87=new p[(_0x11a151(0x256))](oe+a[_0x11a151(0x2d7)][_0x11a151(0x1bb)](k),{'left':_0x115517+_0x3504ce-_0x56a3c3,'top':_0x4f3e0d+_0x307093-ae/0x2,'height':ae,'width':ae,'fill':_0x56ffce||p[_0x11a151(0x26a)](a[_0x11a151(0x258)][_0x11a151(0x1a1)],0x0),'strokeWidth':0x0,'stroke':_0x56ffce||p[_0x11a151(0x26a)](a[_0x11a151(0x258)]['black'],0x0),'evented':!0x1});this[_0x11a151(0x187)]=_0x2f4e87,this[_0x11a151(0x3ce)][_0x11a151(0x17f)](_0x2f4e87,b[_0x11a151(0x2e9)]);const _0x58fa9b=new te(oe+a[_0x11a151(0x2d7)]['generateRandomId'](k),{'left':_0x115517+_0x3504ce-_0x56a3c3,'top':_0x4f3e0d+_0x307093-K,'text':_0x48967e,'color':_0x56ffce});this['_textBubble']=_0x58fa9b,this[_0x11a151(0x3ce)]['addObject'](_0x58fa9b,b[_0x11a151(0x2e9)]),this[_0x11a151(0x19b)]=!0x1;}[_0x56af3f(0x2e5)](){const _0x3b26e4=_0x56af3f,_0x4126f0=this[_0x3b26e4(0x3c0)][_0x3b26e4(0x317)][_0x3b26e4(0x278)](()=>{const _0x14fa4d=_0x3b26e4;this[_0x14fa4d(0x19b)]=!0x0;}),_0x448180=this[_0x3b26e4(0x3c0)][_0x3b26e4(0x361)]['subscribeEvent'](()=>{const _0x179a04=_0x3b26e4;this[_0x179a04(0x33e)]&&clearTimeout(this[_0x179a04(0x33e)]),this[_0x179a04(0x33e)]=setTimeout(()=>{const _0x3e2326=_0x179a04;this[_0x3e2326(0x19b)]=!0x1;},0x7d0);});return()=>{const _0x49f72a=_0x3b26e4;_0x4126f0['unsubscribe'](),_0x448180[_0x49f72a(0x272)]();};}['_drawTextRange'](_0x46c3ec,_0x2cd8c0,_0x55224b,_0x59afd1){const _0x3ef419=_0x56af3f,_0x11a457=new a['ColorKit'](_0x46c3ec)[_0x3ef419(0x1b3)](0.2)[_0x3ef419(0x324)](),_0xf70de4=new p['RegularPolygon'](ut+a[_0x3ef419(0x2d7)][_0x3ef419(0x1bb)](k),{'pointsGroup':_0x2cd8c0,'fill':_0x11a457||p[_0x3ef419(0x26a)](a[_0x3ef419(0x258)][_0x3ef419(0x1a1)],0.2),'left':_0x55224b,'top':_0x59afd1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3ef419(0x1ff)][_0x3ef419(0x366)](_0xf70de4),this[_0x3ef419(0x3ce)]['addObject'](_0xf70de4,b['TEXT_RANGE_LAYER_INDEX']);}[_0x56af3f(0x1e4)](_0x3b1677,_0x16b692,_0x2a01a6,_0x25e17e){const _0x4dad91=_0x56af3f,_0xd7a177=new a[(_0x4dad91(0x3b9))](_0x3b1677)[_0x4dad91(0x1b3)](0.2)[_0x4dad91(0x324)](),_0x12ba76=new p[(_0x4dad91(0x23b))](dt+a[_0x4dad91(0x2d7)][_0x4dad91(0x1bb)](k),{'pointsGroup':_0x16b692,'fill':_0xd7a177||p[_0x4dad91(0x26a)](a[_0x4dad91(0x258)][_0x4dad91(0x1a1)],0.2),'left':_0x2a01a6,'top':_0x25e17e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4dad91(0x1ff)][_0x4dad91(0x366)](_0x12ba76),this['_scene'][_0x4dad91(0x17f)](_0x12ba76,b[_0x4dad91(0x2e9)]);}[_0x56af3f(0x38c)](_0x235307){const _0x9413ad=_0x235307[0x0],_0xe4f206=_0x9413ad[0x0],_0x32c5d4=_0x9413ad[0x2],{x:_0x18dc22,y:_0x1df9b3}=_0xe4f206,{x:_0x1f1c7b,y:_0x216305}=_0x32c5d4;return{'left':_0x18dc22,'top':_0x1df9b3,'width':_0x1f1c7b-_0x18dc22,'height':_0x216305-_0x1df9b3};}['_getScale'](){const _0x20438a=_0x56af3f,{scaleX:_0x2ce7c5,scaleY:_0x4b54e3}=this[_0x20438a(0x3ce)]['getAncestorScale']();return Math[_0x20438a(0x381)](_0x2ce7c5,_0x4b54e3);}}var vt=Object[_0x56af3f(0x162)],gt=(_0x43fbd0,_0x4cefbd,_0x56f5f9,_0x588cb6)=>{const _0x5549b1=_0x56af3f;for(var _0x5f585a=_0x588cb6>0x1?void 0x0:_0x588cb6?vt(_0x4cefbd,_0x56f5f9):_0x4cefbd,_0x3af053=_0x43fbd0[_0x5549b1(0x36a)]-0x1,_0x4a4ea3;_0x3af053>=0x0;_0x3af053--)(_0x4a4ea3=_0x43fbd0[_0x3af053])&&(_0x5f585a=_0x4a4ea3(_0x5f585a)||_0x5f585a);return _0x5f585a;},V=(_0x546687,_0x273953)=>(_0x133f31,_0x5549c4)=>_0x273953(_0x133f31,_0x5549c4,_0x546687);let ve=class extends a['RxDisposable']{constructor(_0x21d700,_0x5e7b0f,_0xe7413f,_0xd522ae,_0xc0169f){const _0x35ca22=_0x56af3f;super(),_(this,_0x35ca22(0x1c7),[]),_(this,'_cursors',[]),(this[_0x35ca22(0x2c2)]=_0x21d700,this['_docSkeletonManagerService']=_0x5e7b0f,this['_collabCursorController']=_0xe7413f,this[_0x35ca22(0x198)]=_0xd522ae,this[_0x35ca22(0x1ef)]=_0xc0169f,this[_0x35ca22(0x39b)]());}['_init'](){const _0x2d7f01=_0x56af3f,_0x446a63=this[_0x2d7f01(0x2c2)][_0x2d7f01(0x24a)],_0x69b131=this['_docSkeletonManagerService'];this[_0x2d7f01(0x2a6)](d['combineLatest']([this['_collabCursorController'][_0x2d7f01(0x3cb)](_0x446a63),this[_0x2d7f01(0x1ef)][_0x2d7f01(0x15e)]])[_0x2d7f01(0x215)]($['map'](([_0x1a37dc,_0x556066])=>({'skeleton':_0x69b131[_0x2d7f01(0x3a9)](),'cursors':[..._0x1a37dc[_0x2d7f01(0x34f)]()][_0x2d7f01(0x260)](_0x2ec63c=>({..._0x2ec63c,'color':_0x556066[_0x2ec63c[_0x2d7f01(0x286)]]}))})))['subscribe'](_0x47b8a6=>{const _0x3eb6bf=_0x2d7f01;if(this[_0x3eb6bf(0x23c)](),_0x47b8a6){const {skeleton:_0x538aac,cursors:_0x3b7869}=_0x47b8a6;this[_0x3eb6bf(0x148)](_0x538aac,_0x3b7869);}})),this[_0x2d7f01(0x359)](),this[_0x2d7f01(0x282)]();}[_0x56af3f(0x148)](_0x41332c,_0x52ee47){const _0x2e947f=_0x56af3f,{scene:_0x178cde,mainComponent:_0x43464a}=this[_0x2e947f(0x2c2)],_0x179db4=_0x52ee47['map'](_0x51a153=>new Ue(_0x51a153,_0x178cde,_0x41332c,_0x43464a));this['_cursorShapes']=_0x179db4,this[_0x2e947f(0x329)]=_0x52ee47;}[_0x56af3f(0x1fb)](){const _0x50a483=_0x56af3f;this['_removeCollabCursors']();const {scene:_0xc9a095,mainComponent:_0x212519}=this[_0x50a483(0x2c2)],_0xc0e33e=this['_docSkeletonManagerService'][_0x50a483(0x3a9)](),_0x3b1f9b=this[_0x50a483(0x329)][_0x50a483(0x191)](_0x4aa31c=>new Ue(_0x4aa31c,_0xc9a095,_0xc0e33e,_0x212519));this[_0x50a483(0x1c7)]=_0x3b1f9b;}[_0x56af3f(0x23c)](){const _0x14c443=_0x56af3f;this[_0x14c443(0x1c7)][_0x14c443(0x2eb)](_0x190d46=>_0x190d46[_0x14c443(0x3bd)]()),this[_0x14c443(0x1c7)]=[];}[_0x56af3f(0x282)](){const _0x505de8=_0x56af3f,_0x26b0be=[b[_0x505de8(0x186)]['id']];this[_0x505de8(0x2a6)](this[_0x505de8(0x198)]['onCommandExecuted'](_0x4d5db8=>{const _0x544fde=_0x505de8;_0x26b0be[_0x544fde(0x35c)](_0x4d5db8['id'])&&_0x4d5db8[_0x544fde(0x1f8)][_0x544fde(0x24a)]===this[_0x544fde(0x2c2)][_0x544fde(0x24a)]&&this[_0x544fde(0x1fb)]();}));}[_0x56af3f(0x359)](){const _0x5754f3=_0x56af3f;this[_0x5754f3(0x2a6)](a['fromEventSubject'](this['_context'][_0x5754f3(0x1c0)][_0x5754f3(0x31b)])[_0x5754f3(0x215)]($[_0x5754f3(0x2c3)](_0x14dde1=>_0x14dde1[_0x5754f3(0x346)]===p[_0x5754f3(0x344)][_0x5754f3(0x2ac)]),$[_0x5754f3(0x16e)](0x10))[_0x5754f3(0x17d)](()=>{const _0x51e0d2=_0x5754f3;this[_0x51e0d2(0x1fb)]();}));}};ve=gt([V(0x1,a[_0x56af3f(0x253)](Y['DocSkeletonManagerService'])),V(0x2,a[_0x56af3f(0x253)](x)),V(0x3,a['ICommandService']),V(0x4,a[_0x56af3f(0x253)](a[_0x56af3f(0x2ba)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x56af3f(0x250)]{constructor(_0x1c16fd,_0x1f5ce2){const _0x91d550=_0x56af3f;super(_0x1c16fd,_0x1f5ce2),_(this,_0x91d550(0x327)),_(this,_0x91d550(0x197),!0x1),_(this,_0x91d550(0x232)),_(this,_0x91d550(0x3ab),''),_(this,'_labelPosition',_0x91d550(0x291)),_(this,_0x91d550(0x16b)),(_0x1f5ce2&&this[_0x91d550(0x2e4)](_0x1f5ce2),this[_0x91d550(0x317)]['subscribeEvent'](()=>this[_0x91d550(0x2e4)]({'hovered':!0x0})),this[_0x91d550(0x361)]['subscribeEvent'](()=>this[_0x91d550(0x2e4)]({'hovered':!0x1})));}[_0x56af3f(0x2e4)](_0x33562a){const _0x123f0e=_0x56af3f;var _0x8f793e,_0x587a7e,_0x30fd82,_0x174e82,_0x383a8c,_0x5bf27c;this[_0x123f0e(0x327)]=(_0x8f793e=_0x33562a[_0x123f0e(0x286)])!=null?_0x8f793e:this[_0x123f0e(0x327)],this['_hovered']=(_0x587a7e=_0x33562a[_0x123f0e(0x379)])!=null?_0x587a7e:this[_0x123f0e(0x197)],this[_0x123f0e(0x232)]=(_0x30fd82=_0x33562a[_0x123f0e(0x38d)])!=null?_0x30fd82:this[_0x123f0e(0x232)],this[_0x123f0e(0x3ab)]=(_0x174e82=_0x33562a[_0x123f0e(0x39a)])!=null?_0x174e82:this[_0x123f0e(0x3ab)],this[_0x123f0e(0x321)]=(_0x383a8c=_0x33562a[_0x123f0e(0x229)])!=null?_0x383a8c:this['_labelPosition'],this['_backgroundColor']=(_0x5bf27c=_0x33562a[_0x123f0e(0x3ca)])!=null?_0x5bf27c:this[_0x123f0e(0x16b)],this[_0x123f0e(0x351)]({'width':_0x33562a[_0x123f0e(0x3af)],'height':_0x33562a['height']});}['onMouseMove'](_0x5a33d0){const _0x425896=_0x56af3f,{row:_0x1f95fd,column:_0x1d8eac}=_0x5a33d0;if(_0x1f95fd>=this[_0x425896(0x232)][_0x425896(0x38e)]&&_0x1f95fd<=this['_range']['endRow']&&_0x1d8eac>=this['_range'][_0x425896(0x382)]&&_0x1d8eac<=this[_0x425896(0x232)]['endColumn']){this[_0x425896(0x2e4)]({'hovered':!0x0});return;}this[_0x425896(0x2e4)]({'hovered':!0x1});}[_0x56af3f(0x25e)](_0x483d79){return!0x1;}[_0x56af3f(0x2b0)](_0x3e99cd){const _0x53b56d=_0x56af3f;p[_0x53b56d(0x256)][_0x53b56d(0x210)](_0x3e99cd,{'width':this[_0x53b56d(0x3af)],'height':this['height'],'strokeWidth':Ct,'stroke':this[_0x53b56d(0x327)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x3e99cd[_0x53b56d(0x32d)](),_0x3e99cd[_0x53b56d(0x313)](0x1,0x0,0x0,0x1,this['width'],this[_0x53b56d(0x321)]===_0x53b56d(0x309)?0x0:-0x14),te[_0x53b56d(0x210)](_0x3e99cd,{'text':this['_name'],'color':this['_color']}),_0x3e99cd[_0x53b56d(0x17e)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x134ba5,_0x3ab161,_0x5e6eed,_0x4b683c)=>{const _0x30ed8e=_0x56af3f;for(var _0x5a32a1=_0x4b683c>0x1?void 0x0:_0x4b683c?pt(_0x3ab161,_0x5e6eed):_0x3ab161,_0xe8c440=_0x134ba5[_0x30ed8e(0x36a)]-0x1,_0x54f5f2;_0xe8c440>=0x0;_0xe8c440--)(_0x54f5f2=_0x134ba5[_0xe8c440])&&(_0x5a32a1=_0x54f5f2(_0x5a32a1)||_0x5a32a1);return _0x5a32a1;},ce=(_0x39f19b,_0x17c165)=>(_0x33cc8c,_0x8d875e)=>_0x17c165(_0x33cc8c,_0x8d875e,_0x39f19b);const Et=0x1389;let ge=class extends a[_0x56af3f(0x2b9)]{constructor(_0x1f19f1,_0xfc7506,_0xd34145,_0xfae13d){const _0x295066=_0x56af3f;super(),_(this,_0x295066(0x329),new Set()),_(this,_0x295066(0x259),null),(this[_0x295066(0x2c2)]=_0x1f19f1,this[_0x295066(0x2db)]=_0xfc7506,this['_collabCursorController']=_0xd34145,this[_0x295066(0x1ef)]=_0xfae13d,this['_init']());}['_init'](){const _0x9e5502=_0x56af3f;this[_0x9e5502(0x2db)][_0x9e5502(0x31d)][_0x9e5502(0x215)]($[_0x9e5502(0x273)](this['dispose$']),$[_0x9e5502(0x208)](_0x1abf23=>{const _0x457b7d=_0x9e5502;if(_0x1abf23){const _0x2255c8=_0x1abf23[_0x457b7d(0x374)];return d[_0x457b7d(0x27a)](this[_0x457b7d(0x3ba)][_0x457b7d(0x3cb)](this['_context'][_0x457b7d(0x24a)]),this[_0x457b7d(0x1ef)][_0x457b7d(0x15e)])[_0x457b7d(0x215)]($[_0x457b7d(0x191)](([_0x1bb839,_0xf5d698])=>{const _0x1e79ee=_0x457b7d,_0x26b23e=new Map();return _0x1bb839[_0x1e79ee(0x2eb)]((_0x214314,_0x391188)=>{const _0x27dcdf=_0x1e79ee;if(_0x214314['sheetID']===_0x2255c8){const _0x443891={..._0x214314};_0x443891[_0x27dcdf(0x286)]=_0xf5d698[_0x214314[_0x27dcdf(0x286)]],_0x26b23e['set'](_0x391188,_0x443891);}}),{'skeleton':_0x1abf23,'cursors':_0x26b23e};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x269b58,cursors:_0x2be49e})=>{const _0x5c67bf=_0x9e5502;this[_0x5c67bf(0x23c)](),_0x269b58&&this[_0x5c67bf(0x148)](_0x269b58,_0x2be49e);}),this['_sheetSkeletonManagerService'][_0x9e5502(0x31d)][_0x9e5502(0x17d)](_0x25191c=>{const _0x2ead63=_0x9e5502;if(_0x25191c==null)return;const {skeleton:_0x1246f6}=_0x25191c,{scene:_0x4fea5e}=this['_context'];_0x4fea5e[_0x2ead63(0x28a)][_0x2ead63(0x278)](a[_0x2ead63(0x1ac)](_0x6c557=>{const _0x42e80c=_0x2ead63;var _0x3ba276,_0x41fcd5;const {offsetX:_0x193e28,offsetY:_0x523a9f}=_0x6c557,{x:_0x1d4808,y:_0x57a7a1}=_0x4fea5e[_0x42e80c(0x2a7)](p[_0x42e80c(0x385)]['FromArray']([_0x193e28,_0x523a9f])),{scaleX:_0x23f8c4,scaleY:_0x1d2f65}=_0x4fea5e[_0x42e80c(0x248)](),_0x582418=_0x4fea5e[_0x42e80c(0x21a)](p['SHEET_VIEWPORT_KEY'][_0x42e80c(0x249)]),_0x2c3cc9=_0x4fea5e[_0x42e80c(0x358)](p[_0x42e80c(0x385)]['FromArray']([_0x1d4808,_0x57a7a1]),_0x582418),_0x2422ef=_0x1246f6[_0x42e80c(0x168)](_0x193e28,_0x523a9f,_0x23f8c4,_0x1d2f65,_0x2c3cc9);((_0x3ba276=this[_0x42e80c(0x259)])==null?void 0x0:_0x3ba276[_0x42e80c(0x261)])===_0x2422ef['column']&&((_0x41fcd5=this[_0x42e80c(0x259)])==null?void 0x0:_0x41fcd5[_0x42e80c(0x2b8)])===_0x2422ef[_0x42e80c(0x2b8)]||this['_cursors'][_0x42e80c(0x2eb)](_0x5cea90=>{const _0x4af26e=_0x42e80c;_0x5cea90[_0x4af26e(0x2ad)](_0x2422ef);});},0x64));});}['_updateCollabCursors'](_0x5cb952,_0x3df03e){const _0x1cafdb=_0x56af3f;var _0x19c079;const _0x4c1a23=(_0x19c079=this[_0x1cafdb(0x2db)][_0x1cafdb(0x39e)]())==null?void 0x0:_0x19c079[_0x1cafdb(0x154)];if(!_0x4c1a23)return;const _0x38891d=this['_getSheetObject']();if(!_0x38891d)return;this['_cursors'][_0x1cafdb(0x2eb)](_0x44dd83=>{_0x44dd83['makeDirty']();});const {scene:_0x4a0585}=_0x38891d,_0x3a168a=Tt(Array[_0x1cafdb(0x323)](_0x3df03e[_0x1cafdb(0x34f)]()))[_0x1cafdb(0x191)](_0x2c5df8=>{const _0x5edc7b=_0x1cafdb,{color:_0x143b31,range:_0x96693a,name:_0x15434c,selection:_0x23f192,sheetID:_0x450f91}=_0x2c5df8,{startColumn:_0x3ef9dc,startRow:_0x44a03a,endColumn:_0x3effe4,endRow:_0x511425}=_0x96693a,_0x39610b=G[_0x5edc7b(0x3a5)](_0x44a03a,_0x3ef9dc,_0x4a0585,_0x4c1a23),_0x17e6ae=G['getCoordByCell'](_0x511425,_0x3effe4,_0x4a0585,_0x4c1a23),{columnHeaderHeightAndMarginTop:_0x584cfb}=_0x4c1a23,{startX:_0x33e4fc,startY:_0x22cfc1}=_0x39610b,{endX:_0x47be8e,endY:_0x29d75a}=_0x17e6ae,_0x14d945=_0x47be8e-_0x33e4fc,_0x1290d2=_0x29d75a-_0x22cfc1,_0x240b6d={'labelPosition':_0x22cfc1-_0x584cfb>=K?_0x5edc7b(0x291):_0x5edc7b(0x309),'sheetID':_0x450f91,'range':_0x96693a,'color':_0x143b31,'name':_0x15434c,'selection':_0x23f192,'left':_0x33e4fc,'top':_0x22cfc1,'width':_0x14d945,'height':_0x1290d2,'evented':!0x1,'zIndex':Et};return new Ae(_0x15434c,_0x240b6d);});_0x4a0585[_0x1cafdb(0x305)](_0x3a168a,mt),this[_0x1cafdb(0x329)]=new Set(_0x3a168a);}['_removeCollabCursors'](){const _0x45a8a4=_0x56af3f;var _0x1e427b;(_0x1e427b=this[_0x45a8a4(0x329)])==null||_0x1e427b['forEach'](_0x117843=>_0x117843['dispose']());}['_getSheetObject'](){const _0x5a183a=_0x56af3f;return G[_0x5a183a(0x34d)](this[_0x5a183a(0x2c2)][_0x5a183a(0x15b)],this[_0x5a183a(0x2c2)]);}};ge=bt([ce(0x1,a[_0x56af3f(0x253)](G[_0x56af3f(0x308)])),ce(0x2,a[_0x56af3f(0x253)](x)),ce(0x3,a[_0x56af3f(0x253)](a[_0x56af3f(0x2ba)]))],ge);function Tt(_0x2b56b1){const _0x2fd844=_0x56af3f,_0x3d2633=new Map();return _0x2b56b1[_0x2fd844(0x2eb)](_0x4d5de2=>{const _0xa7535a=_0x2fd844;if(_0x3d2633[_0xa7535a(0x140)](_0x4d5de2[_0xa7535a(0x234)])){const _0x1f6d92=_0x3d2633[_0xa7535a(0x302)](_0x4d5de2[_0xa7535a(0x234)]);_0x1f6d92['name']+=',\x20'+_0x4d5de2[_0xa7535a(0x39a)];}else _0x3d2633[_0xa7535a(0x3b5)](_0x4d5de2[_0xa7535a(0x234)],_0x4d5de2);}),Array[_0x2fd844(0x323)](_0x3d2633['values']());}var E=function(){const _0x489bbc=_0x56af3f;return E=Object[_0x489bbc(0x1fc)]||function(_0x336192){const _0xff2b9a=_0x489bbc;for(var _0x407b7c,_0x3aed0e=0x1,_0x24d2f9=arguments[_0xff2b9a(0x36a)];_0x3aed0e<_0x24d2f9;_0x3aed0e++){_0x407b7c=arguments[_0x3aed0e];for(var _0x3d4455 in _0x407b7c)Object[_0xff2b9a(0x292)][_0xff2b9a(0x372)][_0xff2b9a(0x241)](_0x407b7c,_0x3d4455)&&(_0x336192[_0x3d4455]=_0x407b7c[_0x3d4455]);}return _0x336192;},E[_0x489bbc(0x29c)](this,arguments);},Ot=function(_0x558d86,_0x39d3a1){const _0x51377f=_0x56af3f;var _0x521b61={};for(var _0x58fa3f in _0x558d86)Object['prototype'][_0x51377f(0x372)]['call'](_0x558d86,_0x58fa3f)&&_0x39d3a1[_0x51377f(0x36f)](_0x58fa3f)<0x0&&(_0x521b61[_0x58fa3f]=_0x558d86[_0x58fa3f]);if(_0x558d86!=null&&typeof Object[_0x51377f(0x1db)]==_0x51377f(0x377)){for(var _0x503ef9=0x0,_0x58fa3f=Object[_0x51377f(0x1db)](_0x558d86);_0x503ef9<_0x58fa3f['length'];_0x503ef9++)_0x39d3a1[_0x51377f(0x36f)](_0x58fa3f[_0x503ef9])<0x0&&Object[_0x51377f(0x292)][_0x51377f(0x2ca)]['call'](_0x558d86,_0x58fa3f[_0x503ef9])&&(_0x521b61[_0x58fa3f[_0x503ef9]]=_0x558d86[_0x58fa3f[_0x503ef9]]);}return _0x521b61;},be=M['forwardRef'](function(_0x59440b,_0x3554e6){const _0x37c186=_0x56af3f;var _0x14b23f=_0x59440b[_0x37c186(0x1a5)],_0x23bd1a=_0x59440b['id'],_0x21c293=_0x59440b[_0x37c186(0x1e1)],_0x2da046=_0x59440b[_0x37c186(0x31a)],_0x1b2154=Ot(_0x59440b,[_0x37c186(0x1a5),'id','className',_0x37c186(0x31a)]),_0x4de9e1=_0x37c186(0x1a6)[_0x37c186(0x2f1)](_0x23bd1a,'\x20')[_0x37c186(0x2f1)](_0x21c293||'')[_0x37c186(0x26e)](),_0x41b578=M[_0x37c186(0x1cf)]('_'['concat'](Ut()));return ye(_0x14b23f,''['concat'](_0x23bd1a),{'defIds':_0x14b23f['defIds'],'idSuffix':_0x41b578[_0x37c186(0x1c3)]},E({'ref':_0x3554e6,'className':_0x4de9e1},_0x1b2154),_0x2da046);});function ye(_0x5d375e,_0x2e0cf1,_0xe55435,_0x59e73f,_0x5b9161){const _0x71cfb7=_0x56af3f;return M[_0x71cfb7(0x33a)](_0x5d375e[_0x71cfb7(0x320)],E(E({'key':_0x2e0cf1},Rt(_0x5d375e,_0xe55435,_0x5b9161)),_0x59e73f),(Dt(_0x5d375e,_0xe55435)['children']||[])['map'](function(_0x5b2be7,_0x51440c){const _0x38488c=_0x71cfb7;return ye(_0x5b2be7,''['concat'](_0x2e0cf1,'-')[_0x38488c(0x2f1)](_0x5d375e[_0x38488c(0x320)],'-')[_0x38488c(0x2f1)](_0x51440c),_0xe55435,void 0x0,_0x5b9161);}));}function Rt(_0x34d65d,_0x2f7868,_0x4ecd75){const _0x524e1=_0x56af3f;var _0x50a727=E({},_0x34d65d[_0x524e1(0x1a0)]);_0x4ecd75!=null&&_0x4ecd75[_0x524e1(0x299)]&&_0x50a727[_0x524e1(0x153)]===_0x524e1(0x299)&&(_0x50a727[_0x524e1(0x153)]=_0x4ecd75[_0x524e1(0x299)]),_0x34d65d[_0x524e1(0x320)]==='mask'&&_0x50a727['id']&&(_0x50a727['id']=_0x50a727['id']+_0x2f7868[_0x524e1(0x31f)]),Object[_0x524e1(0x1d9)](_0x50a727)[_0x524e1(0x2eb)](function(_0x1d8499){const _0x4a43f1=_0x524e1;var _0x518433=_0x1d8499[0x0],_0x18c0f6=_0x1d8499[0x1];_0x518433===_0x4a43f1(0x290)&&typeof _0x18c0f6=='string'&&(_0x50a727[_0x518433]=_0x18c0f6[_0x4a43f1(0x190)](/url\(#(.*)\)/,_0x4a43f1(0x1dc)[_0x4a43f1(0x2f1)](_0x2f7868[_0x4a43f1(0x31f)],')')));});var _0x5a3251=_0x2f7868[_0x524e1(0x2c0)];return!_0x5a3251||_0x5a3251[_0x524e1(0x36a)]===0x0||(_0x34d65d[_0x524e1(0x320)]===_0x524e1(0x155)&&_0x50a727[_0x524e1(0x348)]&&(_0x50a727[_0x524e1(0x348)]=_0x50a727[_0x524e1(0x348)]+_0x2f7868[_0x524e1(0x31f)]),Object[_0x524e1(0x1d9)](_0x50a727)[_0x524e1(0x2eb)](function(_0x5ba0d3){const _0x5eecc4=_0x524e1;var _0x4fd044=_0x5ba0d3[0x0],_0x30b9c6=_0x5ba0d3[0x1];typeof _0x30b9c6==_0x5eecc4(0x322)&&(_0x50a727[_0x4fd044]=_0x30b9c6[_0x5eecc4(0x190)](/url\(#(.*)\)/,_0x5eecc4(0x1dc)[_0x5eecc4(0x2f1)](_0x2f7868['idSuffix'],')')));})),_0x50a727;}function Dt(_0x48a0c7,_0x36b2fd){const _0x151956=_0x56af3f;var _0x3db146,_0x544e2d=_0x36b2fd[_0x151956(0x2c0)];return!_0x544e2d||_0x544e2d[_0x151956(0x36a)]===0x0?_0x48a0c7:_0x48a0c7[_0x151956(0x320)]==='defs'&&(!((_0x3db146=_0x48a0c7[_0x151956(0x364)])===null||_0x3db146===void 0x0)&&_0x3db146[_0x151956(0x36a)])?E(E({},_0x48a0c7),{'children':_0x48a0c7[_0x151956(0x364)][_0x151956(0x191)](function(_0x4af775){const _0x1fef50=_0x151956;return typeof _0x4af775[_0x1fef50(0x1a0)]['id']=='string'&&_0x544e2d&&_0x544e2d[_0x1fef50(0x36f)](_0x4af775[_0x1fef50(0x1a0)]['id'])>-0x1?E(E({},_0x4af775),{'attrs':E(E({},_0x4af775['attrs']),{'id':_0x4af775['attrs']['id']+_0x36b2fd['idSuffix']})}):_0x4af775;})}):_0x48a0c7;}function Ut(){const _0x26158e=_0x56af3f;return Math[_0x26158e(0x37b)]()[_0x26158e(0x16f)](0x24)['substring'](0x2,0x8);}be[_0x56af3f(0x312)]=_0x56af3f(0x307);var Nt={'tag':_0x56af3f(0x1f9),'attrs':{'fill':_0x56af3f(0x22d),'viewBox':_0x56af3f(0x25d),'width':_0x56af3f(0x34e),'height':_0x56af3f(0x34e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x56af3f(0x395),'attrs':{'stroke':_0x56af3f(0x388),'d':_0x56af3f(0x17c),'strokeLinecap':_0x56af3f(0x347),'strokeLinejoin':_0x56af3f(0x347),'strokeWidth':1.2}}]},{'tag':_0x56af3f(0x24e),'attrs':{},'children':[{'tag':_0x56af3f(0x19a),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x56af3f(0x395),'attrs':{'fill':_0x56af3f(0x394),'d':_0x56af3f(0x398)}}]}]}],'defIds':[_0x56af3f(0x1bc)]},$e=M['forwardRef'](function(_0x4afedf,_0x2efe5a){const _0x2fa8e3=_0x56af3f;return M[_0x2fa8e3(0x33a)](be,Object[_0x2fa8e3(0x1fc)]({},_0x4afedf,{'id':'off-line-single','ref':_0x2efe5a,'icon':Nt}));});$e['displayName']=_0x56af3f(0x3a8);var Mt={'tag':_0x56af3f(0x1f9),'attrs':{'fill':'none','viewBox':_0x56af3f(0x25c),'width':_0x56af3f(0x34e),'height':_0x56af3f(0x34e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x56af3f(0x395),'attrs':{'stroke':'currentColor','d':_0x56af3f(0x386),'strokeLinecap':_0x56af3f(0x347),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x56af3f(0x24e),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x56af3f(0x169)},'children':[{'tag':_0x56af3f(0x395),'attrs':{'fill':_0x56af3f(0x394),'d':_0x56af3f(0x398),'transform':_0x56af3f(0x142)}}]}]}],'defIds':[_0x56af3f(0x169)]},xe=M[_0x56af3f(0x1d1)](function(_0x4b10cf,_0x100ba0){const _0x216648=_0x56af3f;return M[_0x216648(0x33a)](be,Object[_0x216648(0x1fc)]({},_0x4b10cf,{'id':_0x216648(0x2c8),'ref':_0x100ba0,'icon':Mt}));});xe['displayName']=_0x56af3f(0x33f);const Lt=_0x56af3f(0x1a9),Pt=_0x56af3f(0x16d),wt='univer-online-status',At='univer-online',yt='univer-offline',H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x22de25){const _0x29adaa=_0x56af3f;switch(_0x22de25){case u['CollaborationStatus']['OFFLINE']:return'collabStatus.offline';case u[_0x29adaa(0x384)]['CONFLICT']:return'collabStatus.conflict';case u[_0x29adaa(0x384)][_0x29adaa(0x33b)]:return _0x29adaa(0x32a);case u[_0x29adaa(0x384)]['NOT_COLLAB']:return _0x29adaa(0x16c);case u[_0x29adaa(0x384)][_0x29adaa(0x1d8)]:case u['CollaborationStatus'][_0x29adaa(0x1b6)]:return _0x29adaa(0x296);case u['CollaborationStatus']['SYNCED']:case u[_0x29adaa(0x384)][_0x29adaa(0x17a)]:return'collabStatus.synced';}}function je(_0x1a0465){const _0x2e5bc7=_0x56af3f,{status$:_0x158400}=_0x1a0465,_0x10b0b4=O[_0x2e5bc7(0x14d)](_0x158400,u[_0x2e5bc7(0x384)][_0x2e5bc7(0x3b7)]),_0x205e67=O[_0x2e5bc7(0x29f)](a[_0x2e5bc7(0x1b1)]),_0x2186e4=O['useDependency'](u[_0x2e5bc7(0x231)]),_0x46eaf9=_0x10b0b4!==u['CollaborationStatus'][_0x2e5bc7(0x37e)],_0x4dfbe2=_0x205e67['t']($t(_0x10b0b4)),_0x211c48=T['clsx'](H['onlineStatus'],{[H[_0x2e5bc7(0x200)]]:_0x46eaf9,[H[_0x2e5bc7(0x145)]]:!_0x46eaf9}),_0x4b97d5=_0x46eaf9?P[_0x2e5bc7(0x26b)](xe,{}):P['jsx']($e,{}),_0xf53c0=M[_0x2e5bc7(0x21d)](()=>{_0x46eaf9||_0x2186e4['reconnect']();},[_0x46eaf9,_0x2186e4]);function _0x18814a(){const _0x22c61b=_0x2e5bc7;return P['jsxs']('div',{'className':T[_0x22c61b(0x357)](_0x211c48,_0x22c61b(0x2e0)),'onClick':_0xf53c0,'children':[P['jsx']('div',{'className':H[_0x22c61b(0x218)],'children':_0x4b97d5}),P[_0x22c61b(0x26b)](_0x22c61b(0x222),{'className':H[_0x22c61b(0x35f)],'children':_0x4dfbe2})]});}return _0x46eaf9?_0x18814a():P['jsx'](T['Tooltip'],{'title':_0x205e67['t'](_0x2e5bc7(0x263)),'children':_0x18814a()});}var xt=Object[_0x56af3f(0x162)],jt=(_0x47b78a,_0x326253,_0x43f3b8,_0x4c77a0)=>{for(var _0x5ae8f1=_0x4c77a0>0x1?void 0x0:_0x4c77a0?xt(_0x326253,_0x43f3b8):_0x326253,_0x155901=_0x47b78a['length']-0x1,_0x1872ff;_0x155901>=0x0;_0x155901--)(_0x1872ff=_0x47b78a[_0x155901])&&(_0x5ae8f1=_0x1872ff(_0x5ae8f1)||_0x5ae8f1);return _0x5ae8f1;},X=(_0x349bed,_0x2957f1)=>(_0x5138da,_0x1b9ec4)=>_0x2957f1(_0x5138da,_0x1b9ec4,_0x349bed);exports[_0x56af3f(0x20e)]=class extends a[_0x56af3f(0x27b)]{constructor(_0x2b175b,_0x471e12,_0x2e8283,_0x457ee8){const _0x2cc5f9=_0x56af3f;super(),_(this,_0x2cc5f9(0x146),new d[(_0x2cc5f9(0x3c9))](u[_0x2cc5f9(0x384)]['NOT_COLLAB'])),(this[_0x2cc5f9(0x214)]=_0x2b175b,this['_injector']=_0x471e12,this[_0x2cc5f9(0x18d)]=_0x2e8283,this[_0x2cc5f9(0x36c)]=_0x457ee8,this['_initStatusComponent'](),this[_0x2cc5f9(0x2ab)]());}[_0x56af3f(0x2ab)](){const _0x102151=_0x56af3f;this[_0x102151(0x2a6)](this['_univerInstanceService'][_0x102151(0x2d3)][_0x102151(0x215)](d[_0x102151(0x208)](()=>{const _0x3decb4=_0x102151,_0xa015da=this[_0x3decb4(0x214)]['getFocusedUnit']();return _0xa015da?this['_collaborationController']['getCollabEntity$'](_0xa015da[_0x3decb4(0x2fd)]()):d['of'](null);}),d[_0x102151(0x208)](_0x5b7931=>_0x5b7931?_0x5b7931[_0x102151(0x206)]:d['of'](u[_0x102151(0x384)][_0x102151(0x3b7)])))[_0x102151(0x17d)](_0x4badf7=>{const _0x32497b=_0x102151;this[_0x32497b(0x146)][_0x32497b(0x30b)](_0x4badf7);}));}[_0x56af3f(0x3c3)](){const _0x208442=_0x56af3f;this[_0x208442(0x2a6)](this[_0x208442(0x36c)][_0x208442(0x36d)](O[_0x208442(0x230)][_0x208442(0x2f6)],()=>O[_0x208442(0x38f)](Bt({'status$':this[_0x208442(0x146)][_0x208442(0x2fb)]()}),this[_0x208442(0x3b1)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x56af3f(0x3bb)]),X(0x1,a['Inject'](a[_0x56af3f(0x3b6)])),X(0x2,a[_0x56af3f(0x253)](u[_0x56af3f(0x2f9)])),X(0x3,O[_0x56af3f(0x1d4)])],exports['DesktopCollaborationStatusDisplayController']);function _0x408b(_0x54b3ac,_0x1904f9){const _0xcc01b5=_0xcc01();return _0x408b=function(_0x408b31,_0x1628a4){_0x408b31=_0x408b31-0x140;let _0x544c00=_0xcc01b5[_0x408b31];return _0x544c00;},_0x408b(_0x54b3ac,_0x1904f9);}function Bt(_0x513eea){const {status$:_0x519607}=_0x513eea;return function(){const _0x42ef7c=_0x408b;return P[_0x42ef7c(0x26b)](je,{'status$':_0x519607});};}var kt=Object[_0x56af3f(0x162)],Ht=(_0x2eae85,_0x31fdaa,_0x18a3bd,_0x5541c9)=>{const _0x392763=_0x56af3f;for(var _0x559eb9=_0x5541c9>0x1?void 0x0:_0x5541c9?kt(_0x31fdaa,_0x18a3bd):_0x31fdaa,_0x5824e7=_0x2eae85[_0x392763(0x36a)]-0x1,_0x9f492d;_0x5824e7>=0x0;_0x5824e7--)(_0x9f492d=_0x2eae85[_0x5824e7])&&(_0x559eb9=_0x9f492d(_0x559eb9)||_0x559eb9);return _0x559eb9;},y=(_0x2bf6d6,_0x50dc75)=>(_0xf20761,_0x42c28e)=>_0x50dc75(_0xf20761,_0x42c28e,_0x2bf6d6);let z=class extends a[_0x56af3f(0x27b)]{constructor(_0x517c9a,_0x5ac7bc,_0x3e8189,_0x24b33c,_0x2bd9df,_0x461c58){const _0x1e34f4=_0x56af3f;super(),this[_0x1e34f4(0x338)]=_0x517c9a,this[_0x1e34f4(0x269)]=_0x5ac7bc,this[_0x1e34f4(0x38b)]=_0x3e8189,this[_0x1e34f4(0x390)]=_0x24b33c,this[_0x1e34f4(0x3a7)]=_0x2bd9df,this[_0x1e34f4(0x177)]=_0x461c58,this[_0x1e34f4(0x287)](),this[_0x1e34f4(0x2d6)]();}[_0x56af3f(0x287)](){const _0x4cfcf4=_0x56af3f;this[_0x4cfcf4(0x2a6)](this[_0x4cfcf4(0x338)][_0x4cfcf4(0x14f)](()=>{const _0x23ce5c=_0x4cfcf4;if(this[_0x23ce5c(0x269)][_0x23ce5c(0x1ee)]['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x56af3f(0x2d6)](){const _0xb67c9e=_0x56af3f;this['disposeWithMe'](this[_0xb67c9e(0x38b)][_0xb67c9e(0x360)][_0xb67c9e(0x17d)](_0x317b0f=>{const _0x34826f=_0xb67c9e;_0x317b0f['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x34826f(0x390)][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)]['Warning'],'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x1aa))}),_0x317b0f['id']===u['CollaborationUIEventId'][_0x34826f(0x199)]&&this['_messageService'][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)][_0x34826f(0x2da)],'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x319))}),_0x317b0f['id']===u[_0x34826f(0x217)][_0x34826f(0x328)]&&this[_0x34826f(0x3a7)][_0x34826f(0x24f)]({'title':this[_0x34826f(0x177)]['t']('permission.title'),'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x1f4)),'type':_0x34826f(0x252),'duration':0x0}),_0x317b0f['id']===u[_0x34826f(0x217)][_0x34826f(0x20b)]&&this['_messageService'][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)][_0x34826f(0x158)],'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x319))+'('+_0x317b0f[_0x34826f(0x180)]+')'}),_0x317b0f['id']===u['CollaborationUIEventId'][_0x34826f(0x1b0)]&&this[_0x34826f(0x390)]['show']({'type':T[_0x34826f(0x1e6)][_0x34826f(0x2da)],'content':this[_0x34826f(0x177)]['t'](_0x317b0f['data']||'')}),_0x317b0f['id']===u[_0x34826f(0x217)][_0x34826f(0x1e2)]&&this['_messageService'][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)][_0x34826f(0x2da)],'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x2a8))}),_0x317b0f['id']===u[_0x34826f(0x217)]['SOCKET_FAILED']&&this[_0x34826f(0x390)][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)][_0x34826f(0x158)],'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x26d))}),_0x317b0f['id']===u[_0x34826f(0x217)][_0x34826f(0x3a6)]&&this[_0x34826f(0x390)][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)][_0x34826f(0x158)],'content':this['_localeService']['t'](_0x34826f(0x3c8))});}));}};z=Ht([y(0x0,O[_0x56af3f(0x20d)]),y(0x1,u[_0x56af3f(0x141)]),y(0x2,a[_0x56af3f(0x253)](u[_0x56af3f(0x213)])),y(0x3,O['IMessageService']),y(0x4,O[_0x56af3f(0x196)]),y(0x5,a['Inject'](a[_0x56af3f(0x1b1)]))],z);const Ft=_0x56af3f(0x244),Ne={},Ee=a[_0x56af3f(0x2f8)](_0x56af3f(0x262));var Wt=Object[_0x56af3f(0x162)],Yt=(_0x4e2db9,_0x379251,_0x2df1ac,_0x3f85d4)=>{const _0x2c193e=_0x56af3f;for(var _0x3d490d=_0x3f85d4>0x1?void 0x0:_0x3f85d4?Wt(_0x379251,_0x2df1ac):_0x379251,_0x8567ad=_0x4e2db9[_0x2c193e(0x36a)]-0x1,_0x3e65ba;_0x8567ad>=0x0;_0x8567ad--)(_0x3e65ba=_0x4e2db9[_0x8567ad])&&(_0x3d490d=_0x3e65ba(_0x3d490d)||_0x3d490d);return _0x3d490d;},F=(_0x2b9f31,_0x578886)=>(_0x43046c,_0x1e6ee3)=>_0x578886(_0x43046c,_0x1e6ee3,_0x2b9f31);exports[_0x56af3f(0x30a)]=class extends a[_0x56af3f(0x2b9)]{constructor(_0x56b06d,_0x226a12,_0x38024c,_0x938b81,_0x18b2fc){const _0x273bce=_0x56af3f;super(),this['_urlService']=_0x56b06d,this['_logService']=_0x226a12,this[_0x273bce(0x198)]=_0x38024c,this[_0x273bce(0x330)]=_0x938b81,_0x18b2fc?_0x18b2fc==null||_0x18b2fc['whenReady']()['then'](()=>this[_0x273bce(0x39b)]()):(this[_0x273bce(0x3bf)][_0x273bce(0x1b8)](_0x273bce(0x265),_0x273bce(0x2bd)),this[_0x273bce(0x39b)]());}async[_0x56af3f(0x39b)](){const _0x5905a3=_0x56af3f,_0x42a4d6=this[_0x5905a3(0x2a2)]['getParam'](_0x5905a3(0x15b)),_0x58b88a=this['_urlService'][_0x5905a3(0x22c)]('type'),_0x1ef0a5=this[_0x5905a3(0x2a2)][_0x5905a3(0x22c)](_0x5905a3(0x264));if(!_0x42a4d6||!_0x58b88a){this['_logService'][_0x5905a3(0x1b8)](_0x5905a3(0x265),_0x5905a3(0x189));return;}const _0x8f0bbb=await this[_0x5905a3(0x330)][_0x5905a3(0x277)](_0x42a4d6,Number(_0x58b88a),_0x1ef0a5);_0x8f0bbb&&_0x8f0bbb instanceof a[_0x5905a3(0x39d)]&&this[_0x5905a3(0x2bf)](_0x8f0bbb);}async[_0x56af3f(0x2bf)](_0x55df62){const _0x20a145=_0x56af3f;await this[_0x20a145(0x2f0)](_0x55df62),_0x55df62[_0x20a145(0x176)][_0x20a145(0x215)](d[_0x20a145(0x273)](this[_0x20a145(0x170)]))['subscribe'](_0x5733be=>{const _0x1ddd54=_0x20a145;_0x5733be&&this[_0x1ddd54(0x1f0)](_0x5733be);}),this[_0x20a145(0x2a2)][_0x20a145(0x1be)][_0x20a145(0x215)](d[_0x20a145(0x273)](this[_0x20a145(0x170)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x55df62));}[_0x56af3f(0x1f0)](_0x9d729,_0xcbbfc0=!0x1){const _0x18103e=_0x56af3f,_0x2a2e98=this['_urlService'][_0x18103e(0x22c)](_0x18103e(0x264));_0x9d729[_0x18103e(0x22a)]()!==_0x2a2e98&&this['_urlService'][_0x18103e(0x2e8)]('subunit',_0x9d729[_0x18103e(0x22a)](),_0xcbbfc0);}async['_updateSubUnitFromURLParams'](_0x54fe8a){const _0x43ae10=_0x56af3f;var _0x2b055e;const _0x166846=this[_0x43ae10(0x2a2)][_0x43ae10(0x22c)](_0x43ae10(0x264));if(!_0x166846||!_0x54fe8a[_0x43ae10(0x2e3)](_0x166846)){const _0x5c7b08=_0x54fe8a[_0x43ae10(0x2a4)]()[0x0],_0x352c7b=_0x54fe8a[_0x43ae10(0x2e3)](_0x5c7b08);if(!_0x352c7b)return;this[_0x43ae10(0x1f0)](_0x352c7b,!0x0),await this[_0x43ae10(0x198)][_0x43ae10(0x341)](g[_0x43ae10(0x368)]['id'],{'unitId':_0x54fe8a[_0x43ae10(0x2fd)](),'subUnitId':_0x5c7b08});return;}((_0x2b055e=_0x54fe8a[_0x43ae10(0x383)]())==null?void 0x0:_0x2b055e[_0x43ae10(0x22a)]())!==_0x166846&&await this[_0x43ae10(0x198)][_0x43ae10(0x341)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x54fe8a[_0x43ae10(0x2fd)](),'subUnitId':_0x166846});}},exports[_0x56af3f(0x30a)]=Yt([F(0x0,Ee),F(0x1,a[_0x56af3f(0x2f2)]),F(0x2,a[_0x56af3f(0x1f7)]),F(0x3,a[_0x56af3f(0x253)](u[_0x56af3f(0x373)])),F(0x4,a['Optional'](Ke[_0x56af3f(0x2f3)]))],exports[_0x56af3f(0x30a)]);var Vt=Object[_0x56af3f(0x162)],Xt=(_0x19b947,_0x320d1d,_0x3c1ca7,_0x453eff)=>{for(var _0x63c309=_0x453eff>0x1?void 0x0:_0x453eff?Vt(_0x320d1d,_0x3c1ca7):_0x320d1d,_0x15cb14=_0x19b947['length']-0x1,_0x1e40e4;_0x15cb14>=0x0;_0x15cb14--)(_0x1e40e4=_0x19b947[_0x15cb14])&&(_0x63c309=_0x1e40e4(_0x63c309)||_0x63c309);return _0x63c309;},le=(_0x5f2732,_0x1c5dd1)=>(_0x756fd4,_0x1543b8)=>_0x1c5dd1(_0x756fd4,_0x1543b8,_0x5f2732);let J=class{constructor(_0x379f87,_0x325469,_0x55a907){const _0x13409b=_0x56af3f;this['_injector']=_0x379f87,this['_transformService']=_0x325469,this[_0x13409b(0x216)]=_0x55a907;}[_0x56af3f(0x36b)](_0x4b2265){const _0x1733e7=_0x56af3f;this[_0x1733e7(0x35e)](_0x4b2265),this['_transformPreviousActiveRange'](_0x4b2265);}[_0x56af3f(0x391)](_0x39292a){const _0x12dbda=_0x56af3f,{unitID:_0x12e80e}=_0x39292a,_0x3c1d8e=this['_renderManagerService']['getRenderById'](_0x12e80e)[_0x12dbda(0x166)](b[_0x12dbda(0x285)]),{redoCache:_0x528133}=_0x3c1d8e[_0x12dbda(0x3b4)]();if(_0x528133[_0x12dbda(0x36a)]===0x0)return _0x39292a;let _0x57696e=a[_0x12dbda(0x2d7)][_0x12dbda(0x2df)](_0x39292a[_0x12dbda(0x21b)][0x0]);for(let _0x784f08=0x0;_0x784f08<_0x528133['length'];_0x784f08++){const _0x1e5adb={'id':'doc.mutation.rich-text-editing','params':{..._0x528133[_0x784f08]}},_0x2cc470=this['_transformService'][_0x12dbda(0x1e9)](_0x57696e,_0x1e5adb,!0x1);if(m[_0x12dbda(0x2e1)](_0x2cc470))throw _0x2cc470[_0x12dbda(0x252)];_0x57696e=_0x2cc470[_0x12dbda(0x3a0)];}return{...a[_0x12dbda(0x2d7)]['deepClone'](_0x39292a),'mutations':[_0x57696e]};}[_0x56af3f(0x35e)](_0x5ebacb){const _0x15e99e=_0x56af3f,{unitID:_0x4fac7d}=_0x5ebacb,_0x2da153=this[_0x15e99e(0x216)][_0x15e99e(0x39f)](_0x4fac7d)['with'](b['DocIMEInputManagerService']),{undoCache:_0x208465,redoCache:_0x5b11ad}=_0x2da153['getUndoRedoMutationParamsCache']();if(_0x208465[_0x15e99e(0x36a)]===0x0||_0x5b11ad[_0x15e99e(0x36a)]===0x0)return;const _0xa9c20d=[],_0x16c060=[];let _0x4ce89a=a[_0x15e99e(0x2d7)][_0x15e99e(0x2df)](_0x5ebacb[_0x15e99e(0x21b)][0x0]),_0x37550c=a['Tools'][_0x15e99e(0x2df)](_0x5ebacb[_0x15e99e(0x21b)][0x0]);for(let _0x3414e8=_0x208465['length']-0x1;_0x3414e8>=0x0;_0x3414e8--){const _0x42b772={'id':_0x15e99e(0x14a),'params':{..._0x208465[_0x3414e8]}},_0x110191={'id':'doc.mutation.rich-text-editing','params':{..._0x5b11ad[_0x3414e8]}},_0xb68748=this[_0x15e99e(0x1dd)]['transformMutation'](_0x4ce89a,_0x42b772,!0x1),_0x1bf56e=this[_0x15e99e(0x1dd)]['transformMutation'](_0x37550c,_0x110191,!0x1);if(m[_0x15e99e(0x2e1)](_0xb68748))throw _0xb68748['error'];if(m[_0x15e99e(0x2e1)](_0x1bf56e))throw _0x1bf56e[_0x15e99e(0x252)];_0xa9c20d[_0x15e99e(0x2c6)](_0xb68748[_0x15e99e(0x193)]['params']),_0x16c060['unshift'](_0x1bf56e[_0x15e99e(0x193)][_0x15e99e(0x1f8)]),_0x4ce89a=_0xb68748[_0x15e99e(0x3a0)],_0x37550c=_0x1bf56e[_0x15e99e(0x3a0)];}_0x2da153[_0x15e99e(0x25b)]({'undoCache':_0xa9c20d,'redoCache':_0x16c060});}[_0x56af3f(0x1af)](_0x504f24){const _0x2c634b=_0x56af3f,{unitID:_0x2a059a}=_0x504f24,_0x1c81b2=this[_0x2c634b(0x216)][_0x2c634b(0x39f)](_0x2a059a)[_0x2c634b(0x166)](b[_0x2c634b(0x285)]),_0x573181=_0x1c81b2['getActiveRange']();if(_0x573181==null)return;const _0x3c51b2=[{'id':_0x2c634b(0x14a),'params':{'unitId':_0x504f24[_0x2c634b(0x1cb)],'actions':null,'textRanges':[_0x573181]}}],_0x2076ad=this[_0x2c634b(0x1dd)][_0x2c634b(0x376)](_0x504f24,_0x3c51b2);if(!m[_0x2c634b(0x21c)](_0x2076ad))throw _0x2076ad[_0x2c634b(0x252)];const _0x62c81d=_0x2076ad[_0x2c634b(0x193)][0x0]['params']['textRanges'];Array[_0x2c634b(0x22f)](_0x62c81d)&&_0x62c81d[_0x2c634b(0x36a)]&&_0x1c81b2['setActiveRange'](_0x62c81d[0x0]);}};J=Xt([le(0x0,a[_0x56af3f(0x253)](a[_0x56af3f(0x3b6)])),le(0x1,m[_0x56af3f(0x275)]),le(0x2,p[_0x56af3f(0x3a2)])],J);var Gt=Object[_0x56af3f(0x162)],qt=(_0x18475c,_0x30be89,_0x486256,_0x16ad4c)=>{const _0x9451d2=_0x56af3f;for(var _0x15078e=_0x16ad4c>0x1?void 0x0:_0x16ad4c?Gt(_0x30be89,_0x486256):_0x30be89,_0x3757fa=_0x18475c[_0x9451d2(0x36a)]-0x1,_0x1d1d94;_0x3757fa>=0x0;_0x3757fa--)(_0x1d1d94=_0x18475c[_0x3757fa])&&(_0x15078e=_0x1d1d94(_0x15078e)||_0x15078e);return _0x15078e;},_e=(_0xa23e2f,_0x2a8f75)=>(_0x27964d,_0x6a96b2)=>_0x2a8f75(_0x27964d,_0x6a96b2,_0xa23e2f);let Z=class{constructor(_0x463cb9,_0xde4c94,_0x44746d){const _0x36b31f=_0x56af3f;this[_0x36b31f(0x3b1)]=_0x463cb9,this[_0x36b31f(0x1dd)]=_0xde4c94,this[_0x36b31f(0x1cd)]=_0x44746d;}[_0x56af3f(0x15d)](_0x3282a3){this['_transformHistoryAndStateStack'](_0x3282a3);}[_0x56af3f(0x391)](_0x4ac2b6){const _0x585920=_0x56af3f,{unitID:_0x20da16}=_0x4ac2b6,{collaboration:_0x2bbdb3}=this[_0x585920(0x1cd)][_0x585920(0x240)](_0x20da16);if(_0x2bbdb3[_0x585920(0x36a)]===0x0)return _0x4ac2b6;let _0x276646=a[_0x585920(0x2d7)][_0x585920(0x2df)](_0x4ac2b6[_0x585920(0x21b)][0x0]);for(let _0x61749c=0x0;_0x61749c<_0x2bbdb3[_0x585920(0x36a)];_0x61749c++){const _0x2fe50e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2bbdb3[_0x61749c]['unitId'],..._0x2bbdb3[_0x61749c]['redoState']}},_0x29779d=this['_transformService'][_0x585920(0x1e9)](_0x276646,_0x2fe50e,!0x1);if(m[_0x585920(0x2e1)](_0x29779d))throw _0x29779d[_0x585920(0x252)];_0x276646=_0x29779d[_0x585920(0x3a0)];}return{...a['Tools'][_0x585920(0x2df)](_0x4ac2b6),'mutations':[_0x276646]};}[_0x56af3f(0x175)](_0x50af5f){const _0x1aa663=_0x56af3f,{unitID:_0x10676}=_0x50af5f,{history:_0x2666c8,collaboration:_0x438f7e}=this['_docStateChangeManagerService']['getStateCache'](_0x10676);if(_0x2666c8['length']===0x0&&_0x438f7e[_0x1aa663(0x36a)]===0x0)return;const _0x349403=[],_0xc1b21e=[];let _0x43fca1=a[_0x1aa663(0x2d7)][_0x1aa663(0x2df)](_0x50af5f[_0x1aa663(0x21b)][0x0]),_0x55042d=a['Tools'][_0x1aa663(0x2df)](_0x50af5f[_0x1aa663(0x21b)][0x0]);for(let _0x545ce5=_0x2666c8[_0x1aa663(0x36a)]-0x1;_0x545ce5>=0x0;_0x545ce5--){const _0x222834={'id':_0x1aa663(0x14a),'params':{'unitId':_0x2666c8[_0x545ce5][_0x1aa663(0x24a)],..._0x2666c8[_0x545ce5][_0x1aa663(0x2b7)]}},_0xfbf0ca={'id':_0x1aa663(0x14a),'params':{'unitId':_0x2666c8[_0x545ce5][_0x1aa663(0x24a)],..._0x2666c8[_0x545ce5][_0x1aa663(0x306)]}},_0xa6b0b7=this['_transformService']['transformMutation'](_0x43fca1,_0x222834,!0x1),_0x5427a9=this['_transformService'][_0x1aa663(0x1e9)](_0x55042d,_0xfbf0ca,!0x1);if(m[_0x1aa663(0x2e1)](_0xa6b0b7))throw _0xa6b0b7['error'];if(m[_0x1aa663(0x2e1)](_0x5427a9))throw _0x5427a9[_0x1aa663(0x252)];_0x349403[_0x1aa663(0x2c6)]({..._0x2666c8[_0x545ce5],'undoState':_0xa6b0b7['m2Prime'][_0x1aa663(0x1f8)],'redoState':_0x5427a9[_0x1aa663(0x193)][_0x1aa663(0x1f8)]}),_0x43fca1=_0xa6b0b7[_0x1aa663(0x3a0)],_0x55042d=_0x5427a9['m1Prime'];}_0x43fca1=a[_0x1aa663(0x2d7)][_0x1aa663(0x2df)](_0x50af5f[_0x1aa663(0x21b)][0x0]),_0x55042d=a[_0x1aa663(0x2d7)][_0x1aa663(0x2df)](_0x50af5f['mutations'][0x0]);for(let _0x278794=_0x438f7e[_0x1aa663(0x36a)]-0x1;_0x278794>=0x0;_0x278794--){const _0x18a928={'id':_0x1aa663(0x14a),'params':{'unitId':_0x438f7e[_0x278794][_0x1aa663(0x24a)],..._0x438f7e[_0x278794][_0x1aa663(0x2b7)]}},_0x59776c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x438f7e[_0x278794][_0x1aa663(0x24a)],..._0x438f7e[_0x278794][_0x1aa663(0x306)]}},_0x1d2312=this[_0x1aa663(0x1dd)][_0x1aa663(0x1e9)](_0x43fca1,_0x18a928,!0x1),_0x59cbf0=this['_transformService'][_0x1aa663(0x1e9)](_0x55042d,_0x59776c,!0x1);if(m[_0x1aa663(0x2e1)](_0x1d2312))throw _0x1d2312[_0x1aa663(0x252)];if(m[_0x1aa663(0x2e1)](_0x59cbf0))throw _0x59cbf0[_0x1aa663(0x252)];_0xc1b21e['unshift']({..._0x438f7e[_0x278794],'undoState':_0x1d2312[_0x1aa663(0x193)][_0x1aa663(0x1f8)],'redoState':_0x59cbf0[_0x1aa663(0x193)][_0x1aa663(0x1f8)]}),_0x43fca1=_0x1d2312['m1Prime'],_0x55042d=_0x59cbf0['m1Prime'];}this['_docStateChangeManagerService'][_0x1aa663(0x37a)](_0x10676,{'history':_0x349403,'collaboration':_0xc1b21e});}};Z=qt([_e(0x0,a[_0x56af3f(0x253)](a[_0x56af3f(0x3b6)])),_e(0x1,m['ITransformService']),_e(0x2,a[_0x56af3f(0x253)](b[_0x56af3f(0x207)]))],Z);var Kt=Object[_0x56af3f(0x162)],zt=(_0x191ad9,_0x5d4e00,_0x5dc90a,_0xfa128e)=>{for(var _0x2d8a4d=_0xfa128e>0x1?void 0x0:_0xfa128e?Kt(_0x5d4e00,_0x5dc90a):_0x5d4e00,_0x1261b1=_0x191ad9['length']-0x1,_0x2c72bc;_0x1261b1>=0x0;_0x1261b1--)(_0x2c72bc=_0x191ad9[_0x1261b1])&&(_0x2d8a4d=_0x2c72bc(_0x2d8a4d)||_0x2d8a4d);return _0x2d8a4d;},Me=(_0xb5cbf5,_0x35334c)=>(_0x15c4d3,_0xf40209)=>_0x35334c(_0x15c4d3,_0xf40209,_0xb5cbf5);let Q=class{constructor(_0x25ddcd,_0x238987){const _0x43f905=_0x56af3f;this[_0x43f905(0x3b1)]=_0x25ddcd,this[_0x43f905(0x1dd)]=_0x238987;}[_0x56af3f(0x378)](_0x4b419f){const _0x2bcadd=_0x56af3f;var _0x5ef6bb;const _0x3d117b=this[_0x2bcadd(0x3b1)]['get'](Y[_0x2bcadd(0x22b)]),_0x409191=(_0x5ef6bb=_0x3d117b[_0x2bcadd(0x2dd)]())!=null?_0x5ef6bb:[];if(_0x409191[_0x2bcadd(0x36a)]===0x0)return;const _0x23e26f=_0x4b419f[_0x2bcadd(0x1cb)],_0x4d2fe2=[{'id':_0x2bcadd(0x14a),'params':{'unitId':_0x23e26f,'actions':null,'textRanges':_0x409191}}],_0x2bbcac=this['_transformService'][_0x2bcadd(0x376)](_0x4b419f,_0x4d2fe2);if(!m[_0x2bcadd(0x21c)](_0x2bbcac))throw _0x2bbcac[_0x2bcadd(0x252)];const _0x22ac1e=_0x2bbcac['m2Prime'][0x0][_0x2bcadd(0x1f8)][_0x2bcadd(0x1b7)];Array['isArray'](_0x22ac1e)&&_0x22ac1e[_0x2bcadd(0x36a)]&&_0x3d117b[_0x2bcadd(0x1e5)](_0x22ac1e,{'unitId':_0x23e26f,'subUnitId':_0x23e26f},!0x1);}};Q=zt([Me(0x0,a[_0x56af3f(0x253)](a['Injector'])),Me(0x1,m[_0x56af3f(0x275)])],Q);var Jt=Object['getOwnPropertyDescriptor'],Zt=(_0xab4d82,_0x10854f,_0x2d5e21,_0x1e472b)=>{const _0x2307a0=_0x56af3f;for(var _0x1d853a=_0x1e472b>0x1?void 0x0:_0x1e472b?Jt(_0x10854f,_0x2d5e21):_0x10854f,_0x1b577c=_0xab4d82[_0x2307a0(0x36a)]-0x1,_0xe5d8b;_0x1b577c>=0x0;_0x1b577c--)(_0xe5d8b=_0xab4d82[_0x1b577c])&&(_0x1d853a=_0xe5d8b(_0x1d853a)||_0x1d853a);return _0x1d853a;},N=(_0x175818,_0x179d3c)=>(_0x955a91,_0x13c02e)=>_0x179d3c(_0x955a91,_0x13c02e,_0x175818);let ee=class extends a[_0x56af3f(0x27b)]{constructor(_0x2a87bb,_0x1ae52f,_0x1943ed,_0x6cc8a7,_0x3ba219,_0x3a8676,_0x37030b,_0x52b131){const _0xe7d42d=_0x56af3f;super(),_(this,'_status$',new d[(_0xe7d42d(0x3c9))](u[_0xe7d42d(0x384)][_0xe7d42d(0x3b7)])),(this['_docStateChangeManagerService']=_0x2a87bb,this[_0xe7d42d(0x18d)]=_0x1ae52f,this['_docTransformIMECacheService']=_0x1943ed,this[_0xe7d42d(0x389)]=_0x6cc8a7,this[_0xe7d42d(0x30f)]=_0x3ba219,this[_0xe7d42d(0x3bc)]=_0x3a8676,this[_0xe7d42d(0x390)]=_0x37030b,this[_0xe7d42d(0x177)]=_0x52b131,this[_0xe7d42d(0x2f4)]());}['_initEntityListener'](){const _0x2579e7=_0x56af3f;this[_0x2579e7(0x2a6)](this[_0x2579e7(0x18d)][_0x2579e7(0x333)][_0x2579e7(0x17d)](_0x5271a5=>{const _0x498ba1=_0x2579e7,_0x3b28d5=this[_0x498ba1(0x1cd)][_0x498ba1(0x32e)][_0x498ba1(0x17d)](_0x5d543a=>{const _0x2bb118=_0x498ba1;if(_0x5d543a==null)return;const {unitId:_0x427055,redoState:_0x159114,commandId:_0x4b6c50}=_0x5d543a;if(_0x427055!==_0x5271a5[_0x2bb118(0x1cb)])return;const _0x910005={'id':_0x4b6c50,'type':a[_0x2bb118(0x18f)]['MUTATION'],'params':{'unitId':_0x427055,'actions':_0x159114[_0x2bb118(0x159)],'textRanges':null}};_0x5271a5[_0x2bb118(0x27d)](_0x910005);});if(_0x5271a5[_0x498ba1(0x2a6)](_0x3b28d5),_0x5271a5 instanceof u[_0x498ba1(0x1d3)]){const _0x1c2326={'onTransformIME':_0x8cef6=>this['_docTransformIMECacheService']['transformIMECache'](_0x8cef6),'onTransformState':_0xca802f=>this['_docTransformStateCacheService'][_0x498ba1(0x15d)](_0xca802f),'onTransformSelections':_0x35b3fa=>this[_0x498ba1(0x30f)][_0x498ba1(0x378)](_0x35b3fa),'onSyncEditingCollabCursor':_0x576b91=>this[_0x498ba1(0x3bc)][_0x498ba1(0x181)](_0x576b91),'onTransformRemoteChangesetByIMECache':_0x46825d=>this[_0x498ba1(0x211)][_0x498ba1(0x391)](_0x46825d),'onTransformRemoteChangesetByStateCache':_0x2bf479=>this[_0x498ba1(0x389)][_0x498ba1(0x391)](_0x2bf479)};_0x5271a5[_0x498ba1(0x284)](_0x1c2326);}}));}};ee=Zt([N(0x0,a[_0x56af3f(0x253)](b['DocStateChangeManagerService'])),N(0x1,a[_0x56af3f(0x253)](u['CollaborationController'])),N(0x2,a[_0x56af3f(0x253)](J)),N(0x3,a[_0x56af3f(0x253)](Z)),N(0x4,a[_0x56af3f(0x253)](Q)),N(0x5,a[_0x56af3f(0x253)](pe)),N(0x6,O[_0x56af3f(0x354)]),N(0x7,a[_0x56af3f(0x253)](a[_0x56af3f(0x1b1)]))],ee);var Qt=Object[_0x56af3f(0x162)],es=(_0x4a6505,_0x5d6a53,_0x376a2c,_0x1a1f56)=>{const _0x765e6d=_0x56af3f;for(var _0x421ddc=_0x1a1f56>0x1?void 0x0:_0x1a1f56?Qt(_0x5d6a53,_0x376a2c):_0x5d6a53,_0x1af678=_0x4a6505[_0x765e6d(0x36a)]-0x1,_0x5ebb49;_0x1af678>=0x0;_0x1af678--)(_0x5ebb49=_0x4a6505[_0x1af678])&&(_0x421ddc=_0x5ebb49(_0x421ddc)||_0x421ddc);return _0x421ddc;},he=(_0x33da24,_0x4534df)=>(_0x32d480,_0x5d5417)=>_0x4534df(_0x32d480,_0x5d5417,_0x33da24);let me=class extends a[_0x56af3f(0x27b)]{constructor(_0x2121d6,_0x56d3b9,_0x4289f5){const _0x3de96d=_0x56af3f;super(),_(this,_0x3de96d(0x178),new Map()),_(this,_0x3de96d(0x355),new Map()),_(this,_0x3de96d(0x15c),!0x1),(this[_0x3de96d(0x20a)]=_0x2121d6,this[_0x3de96d(0x2b4)]=_0x56d3b9,this[_0x3de96d(0x2ae)]=_0x4289f5);}['disableLocalCache'](){const _0x480058=_0x56af3f;this[_0x480058(0x15c)]=!0x0;}[_0x56af3f(0x26c)](){const _0x596d88=_0x56af3f;this[_0x596d88(0x15c)]=!0x1;}get[_0x56af3f(0x1ee)](){return this['_saveTaskMap'];}[_0x56af3f(0x3bd)](){const _0x46b80b=_0x56af3f;this[_0x46b80b(0x1c9)]()[_0x46b80b(0x1a2)](()=>super[_0x46b80b(0x3bd)]());}async[_0x56af3f(0x2b2)](_0x24e6b1){const _0x1dbdad=_0x56af3f;return this['_disabled']?null:this[_0x1dbdad(0x2b4)][_0x1dbdad(0x161)](u[_0x1dbdad(0x3ac)](_0x24e6b1));}async[_0x56af3f(0x1e0)](_0x335797,_0x2ff745){const _0x321a2b=_0x56af3f;return!!this[_0x321a2b(0x2b4)][_0x321a2b(0x2e6)](_0x335797,_0x2ff745);}[_0x56af3f(0x18b)](_0x76f155,_0x37bf75,_0x29380c,_0x5ea086){const _0x34e939=_0x56af3f,_0x65d2cf=this[_0x34e939(0x2ae)]['getCurrentRevOfUnit'](_0x76f155);this[_0x34e939(0x178)][_0x34e939(0x3b5)](_0x76f155,{'unitID':_0x76f155,'type':_0x37bf75,'awaitingChangeset':_0x29380c,'mutations':_0x5ea086,'rev':_0x65d2cf}),this[_0x34e939(0x355)]['has'](_0x76f155)||this[_0x34e939(0x1cc)](_0x76f155);}[_0x56af3f(0x1cc)](_0x2e3f18){const _0x50a61a=_0x56af3f,_0x554385=this['_getSaveTimeout']();_0x554385===0x0?this['_saveCache'](_0x2e3f18):this[_0x50a61a(0x355)][_0x50a61a(0x3b5)](_0x2e3f18,setTimeout(()=>this[_0x50a61a(0x1c6)](_0x2e3f18),_0x554385));}[_0x56af3f(0x245)](){const _0x247ddd=_0x56af3f;var _0x18db6e;return(_0x18db6e=this[_0x247ddd(0x20a)]['getConfig'](u[_0x247ddd(0x16a)]))!=null?_0x18db6e:u[_0x247ddd(0x3ad)];}[_0x56af3f(0x1c6)](_0x21a077){const _0x475059=_0x56af3f,_0xc85a21=this[_0x475059(0x355)][_0x475059(0x302)](_0x21a077);return _0xc85a21!==void 0x0&&window[_0x475059(0x298)](_0xc85a21),this['_localStorageService'][_0x475059(0x2e6)](u[_0x475059(0x3ac)](_0x21a077),this[_0x475059(0x178)][_0x475059(0x302)](_0x21a077))[_0x475059(0x1a2)](()=>this[_0x475059(0x355)]['delete'](_0x21a077));}async[_0x56af3f(0x1c9)](){const _0x3c86f0=_0x56af3f,_0x233e91=[];this['_saveTaskMap'][_0x3c86f0(0x2eb)]((_0x330688,_0xd159f6)=>{const _0x3ca99a=_0x3c86f0;window[_0x3ca99a(0x298)](_0x330688),_0x233e91[_0x3ca99a(0x366)](this['_saveCache'](_0xd159f6)[_0x3ca99a(0x1a2)](()=>{const _0x389d42=_0x3ca99a;this[_0x389d42(0x355)][_0x389d42(0x2d8)](_0xd159f6);}));}),await Promise['all'](_0x233e91);}};me=es([he(0x0,a[_0x56af3f(0x2c7)]),he(0x1,a[_0x56af3f(0x28f)]),he(0x2,a[_0x56af3f(0x253)](m[_0x56af3f(0x26f)]))],me);class Be extends a[_0x56af3f(0x2b9)]{constructor(){const _0x10d1f2=_0x56af3f;super(),_(this,_0x10d1f2(0x1be)),this[_0x10d1f2(0x1be)]=d[_0x10d1f2(0x14b)](window,'popstate')[_0x10d1f2(0x215)](d['takeUntil'](this[_0x10d1f2(0x170)]),d[_0x10d1f2(0x301)](0x1),d[_0x10d1f2(0x1c2)](void 0x0));}['setParam'](_0x37a727,_0x36af75,_0x1b58bf=!0x1){const _0x1e4320=_0x56af3f,_0x439fa9=new URL(window['location'][_0x1e4320(0x19d)]);_0x439fa9['searchParams'][_0x1e4320(0x3b5)](_0x37a727,_0x36af75),_0x1b58bf?window[_0x1e4320(0x1b5)][_0x1e4320(0x224)]('','',_0x439fa9['toString']()):window['history']['pushState']('','',_0x439fa9[_0x1e4320(0x16f)]());}[_0x56af3f(0x37d)](_0x27d255,_0x3edef9=!0x1){const _0x3586ef=_0x56af3f,_0x1dc8b9=new URL(window['location'][_0x3586ef(0x19d)]);_0x1dc8b9['searchParams'][_0x3586ef(0x2d8)](_0x27d255),_0x3edef9?window[_0x3586ef(0x1b5)][_0x3586ef(0x224)]('','',_0x1dc8b9[_0x3586ef(0x16f)]()):window[_0x3586ef(0x1b5)][_0x3586ef(0x2be)]('','',_0x1dc8b9[_0x3586ef(0x16f)]());}[_0x56af3f(0x22c)](_0x3c3455){const _0x584b1e=_0x56af3f;var _0x25c2f6;return(_0x25c2f6=new URL(window[_0x584b1e(0x3c6)][_0x584b1e(0x19d)])[_0x584b1e(0x387)][_0x584b1e(0x302)](_0x3c3455))!=null?_0x25c2f6:void 0x0;}}var ts=Object[_0x56af3f(0x2ec)],ss=Object[_0x56af3f(0x162)],ns=(_0xb223cc,_0x5eccc8,_0x5ac49e)=>_0x5eccc8 in _0xb223cc?ts(_0xb223cc,_0x5eccc8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ac49e}):_0xb223cc[_0x5eccc8]=_0x5ac49e,is=(_0x4f0b63,_0xd17ef8,_0x515dae,_0x237fee)=>{const _0x11eee9=_0x56af3f;for(var _0x3aac5c=_0x237fee>0x1?void 0x0:_0x237fee?ss(_0xd17ef8,_0x515dae):_0xd17ef8,_0xf59a7d=_0x4f0b63[_0x11eee9(0x36a)]-0x1,_0x368dd0;_0xf59a7d>=0x0;_0xf59a7d--)(_0x368dd0=_0x4f0b63[_0xf59a7d])&&(_0x3aac5c=_0x368dd0(_0x3aac5c)||_0x3aac5c);return _0x3aac5c;},ue=(_0x5be1af,_0x95f28)=>(_0x4c9e87,_0x280dae)=>_0x95f28(_0x4c9e87,_0x280dae,_0x5be1af),rs=(_0x4167f8,_0x3c0d40,_0x3c5fe7)=>ns(_0x4167f8,_0x3c0d40+'',_0x3c5fe7);const os=_0x56af3f(0x2c4);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x56af3f(0x25a)]{constructor(_0x447f1d=Ne,_0x1d46d3,_0x14d689,_0x39c40e){const _0x56d84e=_0x56af3f;super(),this['_config']=_0x447f1d,this[_0x56d84e(0x216)]=_0x1d46d3,this['_injector']=_0x14d689,this[_0x56d84e(0x20a)]=_0x39c40e;const {..._0x2bbe18}=a[_0x56d84e(0x33c)]({},Ne,this['_config']);this[_0x56d84e(0x20a)][_0x56d84e(0x171)](Ft,_0x2bbe18);}[_0x56af3f(0x3aa)](){const _0x57bc07=_0x56af3f;this[_0x57bc07(0x1df)](),this[_0x57bc07(0x18a)]();}['onRendered'](){const _0x2ac93e=_0x56af3f;this[_0x2ac93e(0x2d9)]();}[_0x56af3f(0x1df)](){const _0x1cb0f9=_0x56af3f;var _0x4a3d03;const _0x2d55f7=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q['ISocketService'],{'useClass':q[_0x1cb0f9(0x235)]}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x1cb0f9(0x20e)]],[ee],[z],[x],[fe],[exports[_0x1cb0f9(0x30a)]]];a[_0x1cb0f9(0x24d)](this[_0x1cb0f9(0x3b1)],a['mergeOverrideWithDependencies'](_0x2d55f7,(_0x4a3d03=this['_config'])==null?void 0x0:_0x4a3d03['override']));}[_0x56af3f(0x2d9)](){const _0x3205ee=_0x56af3f;this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x3205ee(0x246)][_0x3205ee(0x188)],[ve])),this[_0x3205ee(0x2a6)](this[_0x3205ee(0x216)]['registerRenderModule'](a['UniverInstanceType'][_0x3205ee(0x32b)],[ge]));}[_0x56af3f(0x18a)](){const _0x2c6f97=_0x56af3f;a[_0x2c6f97(0x30d)](this[_0x2c6f97(0x3b1)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x2c6f97(0x30a)]]]);}},rs(exports['UniverCollaborationClientUIPlugin'],'pluginName',os),exports['UniverCollaborationClientUIPlugin']=is([a[_0x56af3f(0x1d7)](u[_0x56af3f(0x283)]),ue(0x1,p[_0x56af3f(0x3a2)]),ue(0x2,a[_0x56af3f(0x253)](a['Injector'])),ue(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var as=Object[_0x56af3f(0x162)],cs=(_0x331658,_0x549365,_0x3572dc,_0x1c696b)=>{const _0x514778=_0x56af3f;for(var _0x21246d=_0x1c696b>0x1?void 0x0:_0x1c696b?as(_0x549365,_0x3572dc):_0x549365,_0x19e905=_0x331658[_0x514778(0x36a)]-0x1,_0x1f2671;_0x19e905>=0x0;_0x19e905--)(_0x1f2671=_0x331658[_0x19e905])&&(_0x21246d=_0x1f2671(_0x21246d)||_0x21246d);return _0x21246d;},W=(_0x386c9f,_0x8d2f96)=>(_0xf8a6c,_0x882ab2)=>_0x8d2f96(_0xf8a6c,_0x882ab2,_0x386c9f);exports[_0x56af3f(0x2c9)]=class extends u[_0x56af3f(0x2d0)]{constructor(_0x3aa7fa,_0x315394,_0xc0623a,_0x365a4c,_0x13e11c){super(_0x3aa7fa,_0x315394,_0xc0623a,_0x365a4c,_0x13e11c);}async[_0x56af3f(0x28c)](_0x2b950a){const _0x57d971=_0x56af3f,_0x1e3e9f=await this[_0x57d971(0x157)](),_0x2c29dd=this[_0x57d971(0x2ff)](_0x2b950a,_0x1e3e9f);return this[_0x57d971(0x289)](_0x2c29dd);}[_0x56af3f(0x2ff)](_0x43ca6b,_0xf108db){const _0x4e75f7=_0x56af3f,_0x1b5edb=typeof window>'u'?new URL(_0x43ca6b):new URL(_0x43ca6b,window[_0x4e75f7(0x3c6)]['origin']);_0x1b5edb[_0x4e75f7(0x387)][_0x4e75f7(0x3b5)](_0x4e75f7(0x149),_0xf108db);const _0x549be3=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4e75f7(0x3c6)][_0x4e75f7(0x1ed)]);return _0x549be3[_0x4e75f7(0x302)]('runId')&&_0x1b5edb[_0x4e75f7(0x387)][_0x4e75f7(0x3b5)](_0x4e75f7(0x281),_0x549be3[_0x4e75f7(0x302)](_0x4e75f7(0x281))),_0x1b5edb[_0x4e75f7(0x16f)]();}async[_0x56af3f(0x157)](){const _0x56c525=_0x56af3f;var _0x52b0b7,_0x32d9ad,_0x42697b;const _0x5842fc=this[_0x56c525(0x20a)]['getConfig'](u[_0x56c525(0x18c)]),_0x2acc44=(_0x52b0b7=_0x5842fc==null?void 0x0:_0x5842fc[_0x56c525(0x237)])!=null?_0x52b0b7:u[_0x56c525(0x1d0)];return(_0x42697b=(_0x32d9ad=(await this[_0x56c525(0x37f)][_0x56c525(0x302)](_0x2acc44,{'headers':{'Content-Type':_0x56c525(0x314)}}))[_0x56c525(0x2a5)])==null?void 0x0:_0x32d9ad[_0x56c525(0x192)])!=null?_0x42697b:'';}},exports['BrowserCollaborationSocketService']=cs([W(0x0,a[_0x56af3f(0x253)](a[_0x56af3f(0x3b6)])),W(0x1,a[_0x56af3f(0x253)](q['HTTPService'])),W(0x2,a['IConfigService']),W(0x3,a['ILogService']),W(0x4,m[_0x56af3f(0x2bc)])],exports['BrowserCollaborationSocketService']);const Le=0x7530,Pe=_0x56af3f(0x238);class ls extends a[_0x56af3f(0x27b)]{constructor(){const _0x500a66=_0x56af3f;super(),_(this,_0x500a66(0x2a9),a['generateRandomId']()),_(this,_0x500a66(0x297),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x500a66(0x3cd),null),_(this,_0x500a66(0x267),new Map()),_(this,_0x500a66(0x271),new Map()),this[_0x500a66(0x39b)]();}['dispose'](){const _0xf2c50=_0x56af3f;super[_0xf2c50(0x3bd)](),this[_0xf2c50(0x267)]['forEach']((_0x130eb3,_0x58b31c)=>this[_0xf2c50(0x19c)](_0x58b31c)),this[_0xf2c50(0x3cd)]&&window['clearInterval'](this[_0xf2c50(0x3cd)]);}[_0x56af3f(0x300)](_0xfffb40){const _0x1882d4=_0x56af3f;return this[_0x1882d4(0x375)](_0xfffb40)['pipe'](d['distinctUntilChanged']());}[_0x56af3f(0x38a)](_0x2524e2){const _0x422403=_0x56af3f;this[_0x422403(0x297)][_0x422403(0x173)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs']['add'](_0x2524e2),this[_0x422403(0x293)]({'type':0x0,'memberID':this[_0x422403(0x2a9)],'unitIDs':[_0x2524e2],'isForwarded':!0x1});}[_0x56af3f(0x343)](_0x6d44a7){const _0xbfe216=_0x56af3f;this[_0xbfe216(0x297)][_0xbfe216(0x2d8)](_0x6d44a7),this['_selfUnitIDs'][_0xbfe216(0x173)]===0x0&&this[_0xbfe216(0x3cd)]&&window[_0xbfe216(0x29e)](this[_0xbfe216(0x3cd)]);}[_0x56af3f(0x39b)](){const _0x43daff=_0x56af3f;this[_0x43daff(0x2a6)](a[_0x43daff(0x353)](d[_0x43daff(0x14b)](window,_0x43daff(0x184))['subscribe'](_0x3e27a9=>{const _0x564185=_0x43daff;if(_0x3e27a9[_0x564185(0x2ee)]!==Pe||!_0x3e27a9[_0x564185(0x1f3)])return;const _0x483c17=JSON[_0x564185(0x1de)](_0x3e27a9[_0x564185(0x1f3)]);this[_0x564185(0x1e7)](_0x483c17);}))),window[_0x43daff(0x163)](_0x43daff(0x14c),()=>this[_0x43daff(0x293)]({'type':0x1,'memberID':this[_0x43daff(0x2a9)],'unitIDs':Array[_0x43daff(0x323)](this[_0x43daff(0x297)])}));}[_0x56af3f(0x1e7)](_0x5dd752){const _0x3d41d3=_0x56af3f;switch(_0x5dd752[_0x3d41d3(0x346)]){case 0x0:this[_0x3d41d3(0x349)](_0x5dd752);break;case 0x1:this[_0x3d41d3(0x2cd)](_0x5dd752);break;case 0x2:this[_0x3d41d3(0x1d6)](_0x5dd752);break;}}[_0x56af3f(0x349)](_0x3fbd55){const _0x45925b=_0x56af3f,{unitIDs:_0x4660ef,memberID:_0x58b798,isForwarded:_0x1938fb}=_0x3fbd55;_0x4660ef['forEach'](_0x3e959e=>{const _0x2d1f76=_0x408b;if(!_0x1938fb&&this[_0x2d1f76(0x1a8)][_0x2d1f76(0x140)](_0x3e959e)&&this[_0x2d1f76(0x375)](_0x3e959e)['next'](u[_0x2d1f76(0x150)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients']['has'](_0x3e959e)||!this[_0x2d1f76(0x1a8)][_0x2d1f76(0x302)](_0x3e959e)['has'](_0x58b798)){const _0x2990c0=this[_0x2d1f76(0x1a8)][_0x2d1f76(0x302)](_0x3e959e)||new Set();_0x2990c0['add'](_0x58b798),this['_unitOnClients'][_0x2d1f76(0x3b5)](_0x3e959e,_0x2990c0),this[_0x2d1f76(0x257)](_0x58b798);}}),_0x1938fb||this[_0x45925b(0x293)]({'type':0x0,'memberID':this[_0x45925b(0x2a9)],'unitIDs':[...this[_0x45925b(0x297)]],'isForwarded':!0x0});}[_0x56af3f(0x257)](_0x5a670c){const _0x330679=_0x56af3f;this['_removeClearOtherTimer'](_0x5a670c);const _0x20a797=window[_0x330679(0x23e)](()=>{const _0x45cdbb=_0x330679;this[_0x45cdbb(0x1a8)][_0x45cdbb(0x2eb)](_0x2f654d=>{_0x2f654d['delete'](_0x5a670c);});},Le*0x2);this['_clearOtherTimers']['set'](_0x5a670c,_0x20a797);}[_0x56af3f(0x19c)](_0x59bd7e){const _0x414f9e=_0x56af3f;if(this['_clearOtherTimers'][_0x414f9e(0x140)](_0x59bd7e)){const _0x48b055=this['_clearOtherTimers']['get'](_0x59bd7e);_0x48b055&&window[_0x414f9e(0x298)](_0x48b055),this[_0x414f9e(0x267)][_0x414f9e(0x3b5)](_0x59bd7e,null);}}[_0x56af3f(0x2cd)](_0x412508){const _0x2580f7=_0x56af3f,{memberID:_0x58f564,unitIDs:_0x4953bb}=_0x412508;_0x4953bb[_0x2580f7(0x2eb)](_0x47fd2b=>{const _0x1cbe0c=_0x2580f7;var _0x5efd71;const _0x1758fd=this['_unitOnClients'][_0x1cbe0c(0x302)](_0x47fd2b);_0x1758fd&&(_0x1758fd[_0x1cbe0c(0x2d8)](_0x58f564),(_0x5efd71=this[_0x1cbe0c(0x375)](_0x47fd2b))==null||_0x5efd71['next'](_0x1758fd['size']===0x0?u[_0x1cbe0c(0x150)][_0x1cbe0c(0x3c1)]:u[_0x1cbe0c(0x150)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x58f564);}[_0x56af3f(0x1d6)](_0x2d4012){const _0xa72e5d=_0x56af3f;this['_scheduleClearOtherTimer'](_0x2d4012[_0xa72e5d(0x1d2)]);}['_send'](_0x2b1b20){const _0x125863=_0x56af3f;localStorage[_0x125863(0x2e6)](Pe,JSON[_0x125863(0x251)](_0x2b1b20));}[_0x56af3f(0x396)](){const _0x337fe4=_0x56af3f;this[_0x337fe4(0x3cd)]=window[_0x337fe4(0x1f2)](()=>{const _0x5ce7e5=_0x337fe4;this[_0x5ce7e5(0x293)]({'type':0x2,'memberID':this[_0x5ce7e5(0x2a9)]});},Le);}[_0x56af3f(0x375)](_0x534ca1){const _0x289d7d=_0x56af3f;return this[_0x289d7d(0x271)]['has'](_0x534ca1)||this[_0x289d7d(0x271)][_0x289d7d(0x3b5)](_0x534ca1,new d[(_0x289d7d(0x3c9))](u['UnitStatus'][_0x289d7d(0x3c1)])),this[_0x289d7d(0x271)][_0x289d7d(0x302)](_0x534ca1);}}var ke=(_0x33d841=>(_0x33d841[_0x33d841[_0x56af3f(0x15f)]=0x0]=_0x56af3f(0x15f),_0x33d841[_0x33d841['OK']=0x1]='OK',_0x33d841[_0x33d841[_0x56af3f(0x2de)]=0x2]=_0x56af3f(0x2de),_0x33d841[_0x33d841[_0x56af3f(0x328)]=0x3]=_0x56af3f(0x328),_0x33d841[_0x33d841[_0x56af3f(0x310)]=0x4]=_0x56af3f(0x310),_0x33d841[_0x33d841[_0x56af3f(0x2d2)]=0x5]=_0x56af3f(0x2d2),_0x33d841[_0x33d841['ALREADY_EXISTS']=0x6]=_0x56af3f(0x337),_0x33d841[_0x33d841[_0x56af3f(0x219)]=0x7]='INVALID_ARGUMENT',_0x33d841[_0x33d841[_0x56af3f(0x1ae)]=0x8]='TOO_MANY_REQUESTS',_0x33d841[_0x33d841[_0x56af3f(0x2d1)]=0x9]='COMPLETION_FINISHED',_0x33d841[_0x33d841['LOGIN_FAILED']=0xa]=_0x56af3f(0x209),_0x33d841[_0x33d841[_0x56af3f(0x288)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x33d841[_0x33d841[_0x56af3f(0x35b)]=0x1771]=_0x56af3f(0x35b),_0x33d841[_0x33d841[_0x56af3f(0x23a)]=0x1772]=_0x56af3f(0x23a),_0x33d841[_0x33d841['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x56af3f(0x1e8),_0x33d841[_0x33d841['APPLY_REJECT']=0x1b59]=_0x56af3f(0x29d),_0x33d841[_0x33d841[_0x56af3f(0x331)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x33d841[_0x33d841[_0x56af3f(0x1b2)]=0x1b5b]=_0x56af3f(0x1b2),_0x33d841[_0x33d841['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x33d841[_0x33d841[_0x56af3f(0x183)]=0x1b5d]=_0x56af3f(0x183),_0x33d841[_0x33d841['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x56af3f(0x315),_0x33d841[_0x33d841[_0x56af3f(0x15a)]=0x2329]=_0x56af3f(0x15a),_0x33d841[_0x33d841[_0x56af3f(0x2fe)]=0x232a]=_0x56af3f(0x2fe),_0x33d841[_0x33d841['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x56af3f(0x1c5),_0x33d841[_0x33d841[_0x56af3f(0x3cc)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x33d841[_0x33d841[_0x56af3f(0x1fa)]=0x232d]=_0x56af3f(0x1fa),_0x33d841[_0x33d841['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x33d841[_0x33d841[_0x56af3f(0x2b6)]=0x2712]=_0x56af3f(0x2b6),_0x33d841[_0x33d841[_0x56af3f(0x185)]=0x2713]=_0x56af3f(0x185),_0x33d841[_0x33d841[_0x56af3f(0x365)]=0x2714]=_0x56af3f(0x365),_0x33d841[_0x33d841[_0x56af3f(0x32c)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x33d841[_0x33d841['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x33d841[_0x33d841[_0x56af3f(0x164)]=0x2af9]=_0x56af3f(0x164),_0x33d841[_0x33d841['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x56af3f(0x254),_0x33d841[_0x33d841['INVALID_INVITE_CODE']=0x2ee2]=_0x56af3f(0x27e),_0x33d841[_0x33d841[_0x56af3f(0x304)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x33d841[_0x33d841[_0x56af3f(0x3b3)]=0x2ee4]=_0x56af3f(0x3b3),_0x33d841[_0x33d841['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x56af3f(0x27f),_0x33d841[_0x33d841['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x56af3f(0x194),_0x33d841[_0x33d841[_0x56af3f(0x32f)]=0x32ca]=_0x56af3f(0x32f),_0x33d841[_0x33d841[_0x56af3f(0x3b0)]=0x32cb]=_0x56af3f(0x3b0),_0x33d841[_0x33d841[_0x56af3f(0x3c5)]=-0x1]=_0x56af3f(0x3c5),_0x33d841))(ke||{}),_s=Object[_0x56af3f(0x162)],hs=(_0x137fbf,_0x4f25c4,_0x3b5e7c,_0x434625)=>{for(var _0xbd9bc7=_0x434625>0x1?void 0x0:_0x434625?_s(_0x4f25c4,_0x3b5e7c):_0x4f25c4,_0x20073c=_0x137fbf['length']-0x1,_0x59efc9;_0x20073c>=0x0;_0x20073c--)(_0x59efc9=_0x137fbf[_0x20073c])&&(_0xbd9bc7=_0x59efc9(_0xbd9bc7)||_0xbd9bc7);return _0xbd9bc7;},de=(_0x3e333b,_0x329d40)=>(_0x34cf76,_0x25d136)=>_0x329d40(_0x34cf76,_0x25d136,_0x3e333b);exports[_0x56af3f(0x336)]=class extends a[_0x56af3f(0x27b)]{constructor(_0x5beabe,_0x3ab70c,_0x32e545){const _0x201a7d=_0x56af3f;super(),this[_0x201a7d(0x316)]=_0x5beabe,this[_0x201a7d(0x37f)]=_0x3ab70c,this[_0x201a7d(0x20a)]=_0x32e545;}async[_0x56af3f(0x226)](_0x451b32,_0x2dac78,_0x76c863,..._0x1ec495){const _0x5a4c9b=_0x56af3f;var _0x775940,_0x344abb,_0x1c6ac1,_0x45d6d3;const _0x3b7a1a=this[_0x5a4c9b(0x316)]['getFocusedUnit']();if(!_0x3b7a1a)throw new Error(_0x5a4c9b(0x19f));const _0xb60692=((_0x775940=this['_configService'][_0x5a4c9b(0x2fa)](u[_0x5a4c9b(0x350)]))!=null?_0x775940:u[_0x5a4c9b(0x28e)])+'/'+_0x451b32+'/run/'+_0x2dac78,_0x5c3a38=new URL(window[_0x5a4c9b(0x3c6)][_0x5a4c9b(0x19d)]),_0x354d75={'scriptId':_0x451b32,'runId':(_0x344abb=_0x5c3a38[_0x5a4c9b(0x387)]['get'](_0x5a4c9b(0x281)))!=null?_0x344abb:'','function':_0x2dac78,'unitId':_0x3b7a1a[_0x5a4c9b(0x2fd)](),'argsOfFunction':JSON[_0x5a4c9b(0x251)](_0x1ec495),'invokeId':(_0x1c6ac1=_0x76c863[_0x5a4c9b(0x167)])!=null?_0x1c6ac1:'','executionId':(_0x45d6d3=_0x76c863[_0x5a4c9b(0x393)])!=null?_0x45d6d3:''};try{const _0x5a27ba=await this[_0x5a4c9b(0x37f)][_0x5a4c9b(0x19e)](_0xb60692,{'body':_0x354d75});return _0x5a27ba[_0x5a4c9b(0x2a5)]['error']&&_0x5a27ba['body'][_0x5a4c9b(0x252)][_0x5a4c9b(0x242)]!==ke['OK']?_0x5a4c9b(0x30c):_0x5a27ba[_0x5a4c9b(0x2a5)]['result'];}catch{return _0x5a4c9b(0x30c);}}},exports[_0x56af3f(0x336)]=hs([de(0x0,a[_0x56af3f(0x3bb)]),de(0x1,a[_0x56af3f(0x253)](q[_0x56af3f(0x2ce)])),de(0x2,a[_0x56af3f(0x2c7)])],exports['RemoteUniscriptService']),exports[_0x56af3f(0x2c1)]=je,exports[_0x56af3f(0x233)]=Ee,exports[_0x56af3f(0x28d)]=Ae,exports[_0x56af3f(0x182)]=ls,exports[_0x56af3f(0x303)]=Be;
@@ -1 +1 @@
1
- 'use strict';function _0x2a75(_0x35a140,_0x3844ec){const _0x4ed18c=_0x4ed1();return _0x2a75=function(_0x2a7508,_0x4382c9){_0x2a7508=_0x2a7508-0x7c;let _0x5f3ecc=_0x4ed18c[_0x2a7508];return _0x5f3ecc;},_0x2a75(_0x35a140,_0x3844ec);}const _0x31d015=_0x2a75;(function(_0x3c8601,_0x10a506){const _0x491971=_0x2a75,_0x47b011=_0x3c8601();while(!![]){try{const _0x5a16ee=parseInt(_0x491971(0x83))/0x1+parseInt(_0x491971(0x86))/0x2+-parseInt(_0x491971(0x87))/0x3*(-parseInt(_0x491971(0x91))/0x4)+parseInt(_0x491971(0x90))/0x5+-parseInt(_0x491971(0x84))/0x6+-parseInt(_0x491971(0x80))/0x7+-parseInt(_0x491971(0x7e))/0x8;if(_0x5a16ee===_0x10a506)break;else _0x47b011['push'](_0x47b011['shift']());}catch(_0xf2d974){_0x47b011['push'](_0x47b011['shift']());}}}(_0x4ed1,0x1ac73));const e={'collab-client':{'tooltip':{'reconnect':_0x31d015(0x82)}},'collabStatus':{'fetchMiss':_0x31d015(0x85),'conflict':_0x31d015(0x7d),'notCollab':'Local\x20file','synced':_0x31d015(0x8d),'syncing':_0x31d015(0x93),'offline':_0x31d015(0x7f)},'session':{'connection-failed':_0x31d015(0x92),'will-retry':_0x31d015(0x8a),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x31d015(0x88)},'conflict':{'title':_0x31d015(0x8c),'content':_0x31d015(0x81)},'permission':{'title':_0x31d015(0x8e),'content':_0x31d015(0x8f)},'collaboration':{'single-unit':{'warning':_0x31d015(0x8b)},'closeRoom':_0x31d015(0x7c)},'auth':{'needGotoLoginAlert':_0x31d015(0x89)}};function _0x4ed1(){const _0x404aed=['382986qDYvLE','Syncing\x20server\x20data...','136512RzQgRc','15NYikfU','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Collaboration\x20Conflict','Synced','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','305490KcEmdw','10808dcpbdI','Connection\x20failed,\x20please\x20check\x20your\x20network.','Syncing...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Edit\x20conflicts','474272JrDvxf','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','892647fQMQMx','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.','Click\x20to\x20Reconnect','217455tMcINv'];_0x4ed1=function(){return _0x404aed;};return _0x4ed1();}module['exports']=e;
1
+ 'use strict';const _0x168af1=_0x24f9;(function(_0x581f01,_0x25354d){const _0x3cba64=_0x24f9,_0x29bc97=_0x581f01();while(!![]){try{const _0x36e9e6=-parseInt(_0x3cba64(0x17f))/0x1+parseInt(_0x3cba64(0x189))/0x2+parseInt(_0x3cba64(0x18c))/0x3+parseInt(_0x3cba64(0x188))/0x4*(parseInt(_0x3cba64(0x17b))/0x5)+-parseInt(_0x3cba64(0x187))/0x6+parseInt(_0x3cba64(0x17c))/0x7+-parseInt(_0x3cba64(0x18f))/0x8;if(_0x36e9e6===_0x25354d)break;else _0x29bc97['push'](_0x29bc97['shift']());}catch(_0x376027){_0x29bc97['push'](_0x29bc97['shift']());}}}(_0x3982,0x6b0e9));function _0x24f9(_0x20732f,_0x2316f4){const _0x39821d=_0x3982();return _0x24f9=function(_0x24f98d,_0x3d927c){_0x24f98d=_0x24f98d-0x17b;let _0x15987b=_0x39821d[_0x24f98d];return _0x15987b;},_0x24f9(_0x20732f,_0x2316f4);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x168af1(0x17d),'conflict':_0x168af1(0x18a),'notCollab':_0x168af1(0x180),'synced':_0x168af1(0x18b),'syncing':_0x168af1(0x18e),'offline':_0x168af1(0x186)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x168af1(0x181),'room-full':_0x168af1(0x184),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x168af1(0x183),'content':_0x168af1(0x182)},'permission':{'title':'Authentication\x20Error','content':_0x168af1(0x18d)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x168af1(0x185)}};function _0x3982(){const _0x29f220=['548148MXdSaf','Local\x20file','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20Conflict','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','3224334KtkWcY','744YIinjK','225216hKheeV','Edit\x20conflicts','Synced','2486934ROaDTK','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing...','8538976pUjQNO','21930NfsLvg','5838224tZxika','Syncing\x20server\x20data...','exports'];_0x3982=function(){return _0x29f220;};return _0x3982();}module[_0x168af1(0x17e)]=e;