@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505181606 → 0.7.0-nightly.202505201607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3a09be=_0x4592;(function(_0x69aa21,_0x4a2700){const _0x546a6a=_0x4592,_0x56d7b2=_0x69aa21();while(!![]){try{const _0x4c6547=-parseInt(_0x546a6a(0x183))/0x1*(parseInt(_0x546a6a(0x185))/0x2)+parseInt(_0x546a6a(0x17a))/0x3+-parseInt(_0x546a6a(0x17c))/0x4*(parseInt(_0x546a6a(0x180))/0x5)+-parseInt(_0x546a6a(0x179))/0x6*(-parseInt(_0x546a6a(0x17b))/0x7)+-parseInt(_0x546a6a(0x187))/0x8*(-parseInt(_0x546a6a(0x176))/0x9)+-parseInt(_0x546a6a(0x182))/0xa+-parseInt(_0x546a6a(0x184))/0xb*(-parseInt(_0x546a6a(0x178))/0xc);if(_0x4c6547===_0x4a2700)break;else _0x56d7b2['push'](_0x56d7b2['shift']());}catch(_0x28cdc7){_0x56d7b2['push'](_0x56d7b2['shift']());}}}(_0x4767,0x6a228));function _0x4767(){const _0x194ca8=['6387128TaiKYD','1501302BViUJN','runOnServer','752WPcLjc','26541DjmrJi','_injector','12cKZTYv','78pVrLvy','1285749qdVCqO','357637QfPevf','2421460qVKdHF','FUniver','@univerjs/core/facade','extend','5nbxyXE','@univerjs-pro/collaboration-client-ui','1598760NzxPGn','1jRGMcj'];_0x4767=function(){return _0x194ca8;};return _0x4767();}const t=require(_0x3a09be(0x181)),e=require(_0x3a09be(0x17e));class c extends e[_0x3a09be(0x17d)]{[_0x3a09be(0x186)](_0x594891,_0x3f4607,..._0x1369d0){const _0x5b2d0b=_0x3a09be;return this[_0x5b2d0b(0x177)]['get'](t['RemoteUniscriptService'])[_0x5b2d0b(0x186)](_0x594891,_0x3f4607,{},..._0x1369d0);}}function _0x4592(_0x42be41,_0x46ad16){const _0x476739=_0x4767();return _0x4592=function(_0x45923c,_0x171bcd){_0x45923c=_0x45923c-0x176;let _0x561199=_0x476739[_0x45923c];return _0x561199;},_0x4592(_0x42be41,_0x46ad16);}e['FUniver'][_0x3a09be(0x17f)](c);
1
+ 'use strict';function _0x294e(_0xe1ebb7,_0x55511a){const _0x48eb92=_0x48eb();return _0x294e=function(_0x294e36,_0x1ef6a9){_0x294e36=_0x294e36-0x135;let _0x3cca22=_0x48eb92[_0x294e36];return _0x3cca22;},_0x294e(_0xe1ebb7,_0x55511a);}const _0x28aea6=_0x294e;(function(_0x32a273,_0x1c79a2){const _0x9416eb=_0x294e,_0x36f8d3=_0x32a273();while(!![]){try{const _0x2ecd00=parseInt(_0x9416eb(0x13b))/0x1*(parseInt(_0x9416eb(0x145))/0x2)+-parseInt(_0x9416eb(0x144))/0x3+-parseInt(_0x9416eb(0x13f))/0x4*(parseInt(_0x9416eb(0x13e))/0x5)+-parseInt(_0x9416eb(0x140))/0x6+parseInt(_0x9416eb(0x13c))/0x7*(parseInt(_0x9416eb(0x137))/0x8)+-parseInt(_0x9416eb(0x142))/0x9+parseInt(_0x9416eb(0x139))/0xa*(parseInt(_0x9416eb(0x141))/0xb);if(_0x2ecd00===_0x1c79a2)break;else _0x36f8d3['push'](_0x36f8d3['shift']());}catch(_0x5e8a94){_0x36f8d3['push'](_0x36f8d3['shift']());}}}(_0x48eb,0x9f68d));function _0x48eb(){const _0x4a2e2b=['RemoteUniscriptService','10ZnxAIx','extend','2822OUpIrt','35917HGLNMj','_injector','15TXhdEJ','490728oYMLks','7760610hNntFa','22562276JcoVCu','772542NrDWAL','@univerjs/core/facade','3911397vSWGNl','346bbelAc','@univerjs-pro/collaboration-client-ui','FUniver','1816cjRVur'];_0x48eb=function(){return _0x4a2e2b;};return _0x48eb();}const t=require(_0x28aea6(0x135)),e=require(_0x28aea6(0x143));class c extends e[_0x28aea6(0x136)]{['runOnServer'](_0x2e06dd,_0x1e7ff5,..._0x56bc38){const _0x299c1c=_0x28aea6;return this[_0x299c1c(0x13d)]['get'](t[_0x299c1c(0x138)])['runOnServer'](_0x2e06dd,_0x1e7ff5,{},..._0x56bc38);}}e[_0x28aea6(0x136)][_0x28aea6(0x13a)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x48e5bc=_0x3f84;(function(_0x29c6d3,_0x4615f8){const _0x543848=_0x3f84,_0x377736=_0x29c6d3();while(!![]){try{const _0x58663b=parseInt(_0x543848(0x2d8))/0x1*(parseInt(_0x543848(0x1b4))/0x2)+parseInt(_0x543848(0x23d))/0x3+-parseInt(_0x543848(0x237))/0x4+parseInt(_0x543848(0x2b7))/0x5*(parseInt(_0x543848(0x1ce))/0x6)+parseInt(_0x543848(0x1b3))/0x7*(-parseInt(_0x543848(0xaa))/0x8)+-parseInt(_0x543848(0xf2))/0x9+-parseInt(_0x543848(0x133))/0xa*(parseInt(_0x543848(0x2d7))/0xb);if(_0x58663b===_0x4615f8)break;else _0x377736['push'](_0x377736['shift']());}catch(_0xa938f8){_0x377736['push'](_0x377736['shift']());}}}(_0x2824,0xc07c2));var Ve=Object[_0x48e5bc(0x228)],Xe=(_0x37a102,_0x45760c,_0x2c1ef0)=>_0x45760c in _0x37a102?Ve(_0x37a102,_0x45760c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c1ef0}):_0x37a102[_0x45760c]=_0x2c1ef0,h=(_0x4766e7,_0x40cb46,_0x58c53e)=>Xe(_0x4766e7,typeof _0x40cb46!=_0x48e5bc(0xa6)?_0x40cb46+'':_0x40cb46,_0x58c53e);Object[_0x48e5bc(0x228)](exports,Symbol[_0x48e5bc(0x2e0)],{'value':'Module'});const u=require(_0x48e5bc(0x221)),a=require('@univerjs/core'),p=require(_0x48e5bc(0xb7)),G=require(_0x48e5bc(0x205)),b=require(_0x48e5bc(0xe2)),Ge=require('@univerjs/drawing'),d=require(_0x48e5bc(0x295)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x48e5bc(0xbe)),g=require(_0x48e5bc(0x22f)),$=require(_0x48e5bc(0xff)),X=require(_0x48e5bc(0x1d8)),P=require(_0x48e5bc(0x17a)),T=require(_0x48e5bc(0x2bd)),D=require(_0x48e5bc(0x90)),M=require('react'),Ke=require(_0x48e5bc(0x271));var qe=Object['getOwnPropertyDescriptor'],ze=(_0x8542ee,_0x11d122,_0x441167,_0x284ea3)=>{for(var _0x3b41a8=_0x284ea3>0x1?void 0x0:_0x284ea3?qe(_0x11d122,_0x441167):_0x11d122,_0x2d5c86=_0x8542ee['length']-0x1,_0x304c43;_0x2d5c86>=0x0;_0x2d5c86--)(_0x304c43=_0x8542ee[_0x2d5c86])&&(_0x3b41a8=_0x304c43(_0x3b41a8)||_0x3b41a8);return _0x3b41a8;},Te=(_0x3d33b6,_0x36cfe6)=>(_0x11cc94,_0x12b0f0)=>_0x36cfe6(_0x11cc94,_0x12b0f0,_0x3d33b6);let de=class extends a[_0x48e5bc(0x9d)]{constructor(_0x5982af,_0x3ec4b9){const _0x9e63cd=_0x48e5bc;super(),this[_0x9e63cd(0x17c)]=_0x5982af,this[_0x9e63cd(0x258)]=_0x3ec4b9,this[_0x9e63cd(0x1c8)]();}[_0x48e5bc(0x1c8)](){const _0x1be47b=_0x48e5bc,_0x2a1a3f=this;this['disposeWithMe'](this[_0x1be47b(0x17c)]['addClipboardHook']({'onBeforePasteImage':async _0x3893f7=>{const _0x4a7d9d=_0x1be47b,_0x2d7428=await _0x2a1a3f[_0x4a7d9d(0x258)][_0x4a7d9d(0xca)](_0x3893f7);return _0x2d7428?{'source':_0x2d7428['source'],'imageSourceType':_0x2d7428[_0x4a7d9d(0x2ab)]}:null;}}));}};de=ze([Te(0x0,b[_0x48e5bc(0x239)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x48e5bc(0x1cc),_0x48e5bc(0x20f),_0x48e5bc(0x2cb),_0x48e5bc(0x125),'blue.400',_0x48e5bc(0x10e)];class me extends a['Disposable']{constructor(){super(...arguments),h(this,'_assignedColors',new Map()),h(this,'_colorIndex',0x0);}[_0x48e5bc(0xb0)](_0x5a78e6){const _0x17b378=_0x48e5bc;if(this['_assignedColors'][_0x17b378(0x197)](_0x5a78e6))return this[_0x17b378(0x1a8)][_0x17b378(0x20c)](_0x5a78e6);const _0x5d8748=Oe[this[_0x17b378(0xc9)]];return this['_colorIndex']=(this[_0x17b378(0xc9)]+0x1)%Oe['length'],this[_0x17b378(0x1a8)][_0x17b378(0x28a)](_0x5a78e6,_0x5d8748),_0x5d8748;}}function Pe(_0x52fc8c){const _0x16e4c4=_0x48e5bc;let _0x3c7bf9='';for(const _0x119dd9 of _0x52fc8c){const {startOffset:_0x1df73d,endOffset:_0x3f854e,isActive:_0xe6b29,rangeType:_0x2a9fdc,segmentId:_0x14f34a,segmentPage:_0x1cc078}=_0x119dd9;_0x3c7bf9[_0x16e4c4(0x2c5)]&&(_0x3c7bf9+=','),_0x3c7bf9+=_0x1df73d+':'+_0x3f854e+':'+(_0xe6b29?'1':'0')+':'+_0x2a9fdc+':'+_0x14f34a+':'+_0x1cc078;}return _0x3c7bf9;}function Je(_0x497d35){const _0x5e6cf7=_0x48e5bc,_0x9461f3=_0x497d35[_0x5e6cf7(0x2fb)](','),_0x50c548=[];for(const _0x2db39e of _0x9461f3){const [_0x463a96,_0x535737,_0x677f8d,_0x24a6cd,_0xb74e8,_0x1b23d2]=_0x2db39e['split'](':');_0x50c548[_0x5e6cf7(0x232)]({'startOffset':Number(_0x463a96),'endOffset':Number(_0x535737),'collapsed':_0x463a96===_0x535737,'isActive':_0x677f8d==='1','rangeType':_0x24a6cd===a['DOC_RANGE_TYPE'][_0x5e6cf7(0x1d2)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x5e6cf7(0x1f2)][_0x5e6cf7(0x218)],'segmentId':typeof _0xb74e8=='string'?String(_0xb74e8):'','segmentPage':Number(_0x1b23d2!=null?_0x1b23d2:-0x1)});}return _0x50c548[_0x5e6cf7(0x254)](_0x1accd5=>_0x1accd5[_0x5e6cf7(0x2ca)])||(_0x50c548[0x0][_0x5e6cf7(0x2ca)]=!0x0),_0x50c548;}class Ce extends a[_0x48e5bc(0x9d)]{constructor(){const _0xf0d2a4=_0x48e5bc;super(...arguments),h(this,_0xf0d2a4(0xdf),new d[(_0xf0d2a4(0x16d))](null)),h(this,'collabCursorState$',this[_0xf0d2a4(0xdf)][_0xf0d2a4(0x2b9)]());}[_0x48e5bc(0x26b)](_0x5be014){const _0x1b9a5b=_0x48e5bc,{unitID:_0x484582,memberID:_0x1de7e9,textRanges:_0x3166d7}=_0x5be014,_0x5bfdb9=Pe(_0x3166d7);if(_0x5bfdb9==='')return;const _0x4afbda={'unitID':_0x484582,'memberID':_0x1de7e9,'selection':_0x5bfdb9};this['_collabCursorState$'][_0x1b9a5b(0xbb)](_0x4afbda);}}var Ze=Object[_0x48e5bc(0x275)],Qe=(_0x97676c,_0x4d8921,_0x3156d8,_0x35a769)=>{const _0x3daf70=_0x48e5bc;for(var _0x36b6ef=_0x35a769>0x1?void 0x0:_0x35a769?Ze(_0x4d8921,_0x3156d8):_0x4d8921,_0x999ce4=_0x97676c[_0x3daf70(0x2c5)]-0x1,_0x50be2b;_0x999ce4>=0x0;_0x999ce4--)(_0x50be2b=_0x97676c[_0x999ce4])&&(_0x36b6ef=_0x50be2b(_0x36b6ef)||_0x36b6ef);return _0x36b6ef;},L=(_0x4a3157,_0x3d9326)=>(_0xe315c0,_0x579916)=>_0x3d9326(_0xe315c0,_0x579916,_0x4a3157);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x492d92,_0x38ecde,_0x38a6ca,_0x51f487,_0x5bab13,_0x40868c,_0x1bb87f,_0x58b651,_0x3b8ef7){const _0x32c6f6=_0x48e5bc;super(),h(this,_0x32c6f6(0x264),!0x1),h(this,_0x32c6f6(0x1c8),!0x1),h(this,_0x32c6f6(0x88),new d['BehaviorSubject'](new Map())),h(this,_0x32c6f6(0x2d6),this[_0x32c6f6(0x88)][_0x32c6f6(0x2b9)]()),h(this,_0x32c6f6(0x2f1),new d[(_0x32c6f6(0x16d))]([])),h(this,_0x32c6f6(0x8a),this[_0x32c6f6(0x2f1)]['pipe'](d[_0x32c6f6(0x14b)](et))),h(this,'_updateLocalCursor',a[_0x32c6f6(0xaf)](_0x30f7af=>{const _0x2ed1c0=_0x32c6f6,_0x4603bc={'eventID':m[_0x2ed1c0(0xf1)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x2ed1c0(0x2e5)],'memberID':this[_0x2ed1c0(0x22a)][_0x2ed1c0(0x26a)](),'selection':Pe(_0x30f7af)}};this[_0x2ed1c0(0x22a)][_0x2ed1c0(0x181)](_0x4603bc,this[_0x2ed1c0(0x2e5)]);},tt)),(this[_0x32c6f6(0x2e5)]=_0x492d92,this[_0x32c6f6(0x22a)]=_0x38ecde,this[_0x32c6f6(0x126)]=_0x38a6ca,this['_colorAssignService']=_0x51f487,this[_0x32c6f6(0x11a)]=_0x5bab13,this['_syncEditingCollabCursorService']=_0x40868c,this['_transformService']=_0x1bb87f,this[_0x32c6f6(0x109)]=_0x58b651,this[_0x32c6f6(0x174)]=_0x3b8ef7);}get[_0x48e5bc(0x138)](){const _0x20b1f7=_0x48e5bc;return this[_0x20b1f7(0x88)][_0x20b1f7(0x2af)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x48e5bc(0x233)](){const _0x39f0ac=_0x48e5bc;super[_0x39f0ac(0x233)](),this[_0x39f0ac(0x88)]['next'](new Map()),this[_0x39f0ac(0x88)]['complete'](),this[_0x39f0ac(0x2f1)][_0x39f0ac(0xbb)]([]),this[_0x39f0ac(0x2f1)][_0x39f0ac(0x14d)]();}[_0x48e5bc(0x2aa)](){const _0x4d7e20=_0x48e5bc;this[_0x4d7e20(0x1c8)]||(this['_init']=!0x0,this[_0x4d7e20(0x22a)][_0x4d7e20(0x2f2)][_0x4d7e20(0x29b)](d['takeUntil'](this[_0x4d7e20(0xcc)]))[_0x4d7e20(0x2fe)](_0xd315b7=>{const _0x22b56c=_0x4d7e20;_0xd315b7===u['SessionStatus']['ONLINE']?this[_0x22b56c(0xb3)]():this[_0x22b56c(0x25e)]();}),this[_0x4d7e20(0x22a)]['event$'][_0x4d7e20(0x29b)](d['takeUntil'](this[_0x4d7e20(0xcc)]))[_0x4d7e20(0x2fe)](_0x40f5d4=>{const _0x915012=_0x4d7e20,_0x39db35=_0x40f5d4[_0x915012(0xa3)];_0x39db35===m[_0x915012(0xf1)][_0x915012(0x2ad)]&&this['_onCursorUpdate'](_0x40f5d4),_0x39db35===m[_0x915012(0xf1)][_0x915012(0x28e)]&&this[_0x915012(0xe0)](_0x40f5d4);}),this['disposeWithMe'](this[_0x4d7e20(0x174)][_0x4d7e20(0x2a0)](_0x30d101=>{const _0x4c7b67=_0x4d7e20,_0x3fcdb2=_0x30d101['params'];_0x3fcdb2!=null&&this[_0x4c7b67(0x264)]&&_0x30d101['id']===Y['SetTextSelectionsOperation']['id']&&_0x3fcdb2[_0x4c7b67(0x1ea)]===this[_0x4c7b67(0x2e5)]&&_0x3fcdb2[_0x4c7b67(0x249)]===!0x1&&_0x3fcdb2[_0x4c7b67(0x2ed)][_0x4c7b67(0x2c5)]>0x0&&this[_0x4c7b67(0x2f8)](_0x3fcdb2[_0x4c7b67(0x2ed)]);})),this[_0x4d7e20(0x13e)][_0x4d7e20(0x10d)][_0x4d7e20(0x29b)](d['takeUntil'](this[_0x4d7e20(0xcc)]))[_0x4d7e20(0x2fe)](_0x275f36=>{const _0xe6f386=_0x4d7e20;if((_0x275f36==null?void 0x0:_0x275f36['unitID'])!==this[_0xe6f386(0x2e5)])return;const _0x27b378={'eventID':m[_0xe6f386(0xf1)]['UPDATE_CURSOR'],'data':_0x275f36};this['_onCursorUpdate'](_0x27b378);}),this[_0x4d7e20(0x173)](this[_0x4d7e20(0x174)]['onCommandExecuted'](_0x583f8c=>{const _0xbe6e92=_0x4d7e20;if(_0x583f8c['params']==null)return;const _0x40c0bf=_0x583f8c[_0xbe6e92(0x26e)];if(_0x583f8c['id']!==Y[_0xbe6e92(0x196)]['id']||_0x40c0bf[_0xbe6e92(0x1ea)]!==this[_0xbe6e92(0x2e5)])return;const _0x2a8199={'id':_0xbe6e92(0x236),'params':_0x40c0bf},_0x5ca91d=this[_0xbe6e92(0x138)];for(const [_0x3c5c4d,_0x51c0b0]of _0x5ca91d){const _0x3775c2={'id':_0xbe6e92(0x236),'params':{'unitId':this[_0xbe6e92(0x2e5)],'actions':null,'textRanges':_0x51c0b0[_0xbe6e92(0x2ed)]}},_0x53edc7=this[_0xbe6e92(0x201)][_0xbe6e92(0x195)](_0x2a8199,_0x3775c2,!0x1);if(m['isTransformMutationFailure'](_0x53edc7))throw _0x53edc7[_0xbe6e92(0x272)];_0x5ca91d[_0xbe6e92(0x28a)](_0x3c5c4d,{..._0x51c0b0,'ranges':_0x53edc7[_0xbe6e92(0x277)][_0xbe6e92(0x26e)][_0xbe6e92(0x1cd)]});}queueMicrotask(()=>{const _0x4318a5=_0xbe6e92;this[_0x4318a5(0x88)][_0x4318a5(0xbb)](_0x5ca91d);});})));}[_0x48e5bc(0x11b)](_0x4a97e9){const _0x21fa9a=_0x48e5bc;var _0x1166d2,_0xcdcf1c;const {memberID:_0x1cbfe9,selection:_0xeced80}=_0x4a97e9[_0x21fa9a(0x10f)],_0x39675=Je(_0xeced80),_0x42eb82=(_0xcdcf1c=(_0x1166d2=this[_0x21fa9a(0x11a)][_0x21fa9a(0x28f)](this[_0x21fa9a(0x2e5)],_0x1cbfe9))==null?void 0x0:_0x1166d2['name'])!=null?_0xcdcf1c:_0x21fa9a(0x2c9),_0x587f80={'color':this[_0x21fa9a(0x1f4)][_0x21fa9a(0xb0)](_0x1cbfe9),'name':_0x42eb82,'ranges':_0x39675},_0x52c4be=this[_0x21fa9a(0x138)];_0x52c4be['set'](_0x1cbfe9,_0x587f80),this[_0x21fa9a(0x88)][_0x21fa9a(0xbb)](_0x52c4be);}[_0x48e5bc(0xe0)](_0xf2ae2f){const _0x283f7e=_0x48e5bc,{memberID:_0x56402f}=_0xf2ae2f['data'],_0x1a5a80=this['cursorInfo'];_0x1a5a80['delete'](_0x56402f),this['_cursorInfo$'][_0x283f7e(0xbb)](_0x1a5a80);}['_toggleOnline'](){const _0x220b57=_0x48e5bc;var _0x1de631;if(this[_0x220b57(0x264)]=!0x0,((_0x1de631=this[_0x220b57(0x109)][_0x220b57(0x2a3)]())==null?void 0x0:_0x1de631['getUnitId']())!==this['unitID'])return;const _0x143c52=this[_0x220b57(0x126)][_0x220b57(0x20c)](Y[_0x220b57(0xec)])[_0x220b57(0xdc)]();Array[_0x220b57(0x1b9)](_0x143c52)&&_0x143c52['length']>0x0&&this[_0x220b57(0x2f8)](_0x143c52);}[_0x48e5bc(0x25e)](){const _0xd7e8bd=_0x48e5bc;this[_0xd7e8bd(0x264)]=!0x1;}};fe=Qe([L(0x2,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x102)])),L(0x3,a[_0x48e5bc(0x28c)](me)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a[_0x48e5bc(0x28c)](Ce)),L(0x6,m[_0x48e5bc(0x129)]),L(0x7,a[_0x48e5bc(0x9f)]),L(0x8,a[_0x48e5bc(0x110)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x34d3fe,_0x3e11fa,_0x59c8fb,_0x1a1330)=>{const _0x2b23d6=_0x48e5bc;for(var _0x4846f0=_0x1a1330>0x1?void 0x0:_0x1a1330?st(_0x3e11fa,_0x59c8fb):_0x3e11fa,_0x3b0f55=_0x34d3fe[_0x2b23d6(0x2c5)]-0x1,_0x76a3f0;_0x3b0f55>=0x0;_0x3b0f55--)(_0x76a3f0=_0x34d3fe[_0x3b0f55])&&(_0x4846f0=_0x76a3f0(_0x4846f0)||_0x4846f0);return _0x4846f0;},w=(_0x3d9632,_0x3ac892)=>(_0x264183,_0x3c2b42)=>_0x3ac892(_0x264183,_0x3c2b42,_0x3d9632);const nt=0x12c,rt=0x64,ot=()=>{let _0x716ced=[],_0x20a8ff=!0x1;return _0x2212d9=>{const _0x3be988=_0x3f84;_0x716ced[_0x3be988(0x232)](_0x2212d9),_0x20a8ff||(_0x20a8ff=!0x0,setTimeout(()=>{_0x716ced['forEach'](_0x1dbf4f=>_0x1dbf4f()),_0x716ced=[],_0x20a8ff=!0x1;}));};};let Se=class extends a[_0x48e5bc(0x9d)]{constructor(_0x349563,_0x42ea35,_0x4f64ed,_0xaa3c1f,_0x4bada1,_0xd19eb1,_0x2027c6,_0x1e60c1){const _0x484dc4=_0x48e5bc;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x484dc4(0x88),new d[(_0x484dc4(0x16d))](new Map())),h(this,_0x484dc4(0x2d6),this['_cursorInfo$'][_0x484dc4(0x2b9)]()),h(this,_0x484dc4(0x2f1),new d[(_0x484dc4(0x16d))]([])),h(this,'roomMembers$',this[_0x484dc4(0x2f1)]['pipe'](d['debounceTime'](nt))),h(this,_0x484dc4(0x2f8),a[_0x484dc4(0xaf)]((_0x571f26,_0x486c6b)=>{const _0xa6cd36=_0x484dc4,_0x1464ed={'eventID':m[_0xa6cd36(0xf1)][_0xa6cd36(0x2ad)],'data':{'unitID':this[_0xa6cd36(0x2e5)],'memberID':this['_session'][_0xa6cd36(0x26a)](),'selection':Ee[_0xa6cd36(0xd8)](_0x571f26,_0x486c6b['range'])}};this[_0xa6cd36(0x22a)][_0xa6cd36(0x181)](_0x1464ed,this[_0xa6cd36(0x2e5)]);},rt)),(this['unitID']=_0x349563,this[_0x484dc4(0x22a)]=_0x42ea35,this['_injector']=_0x4f64ed,this[_0x484dc4(0x1f4)]=_0xaa3c1f,this[_0x484dc4(0x11a)]=_0x4bada1,this[_0x484dc4(0x109)]=_0xd19eb1,this[_0x484dc4(0x174)]=_0x2027c6,this[_0x484dc4(0x10c)]=_0x1e60c1);}get['cursorInfo'](){const _0x3486b6=_0x48e5bc;return this[_0x3486b6(0x88)][_0x3486b6(0x2af)]();}get['roomMembers'](){const _0x4aa6aa=_0x48e5bc;return this['_roomMembers$'][_0x4aa6aa(0x2af)]();}[_0x48e5bc(0x233)](){const _0x8a3247=_0x48e5bc;super['dispose'](),this[_0x8a3247(0x88)][_0x8a3247(0xbb)](new Map()),this[_0x8a3247(0x88)][_0x8a3247(0x14d)](),this[_0x8a3247(0x2f1)][_0x8a3247(0xbb)]([]),this[_0x8a3247(0x2f1)][_0x8a3247(0x14d)]();}[_0x48e5bc(0x2aa)](){const _0x48c87d=_0x48e5bc;this[_0x48c87d(0x1c8)]||(this[_0x48c87d(0x1c8)]=!0x0,this[_0x48c87d(0x22a)][_0x48c87d(0x2f2)]['pipe'](d[_0x48c87d(0xdd)](this[_0x48c87d(0xcc)]))[_0x48c87d(0x2fe)](_0x4a976d=>{const _0xf18e4d=_0x48c87d;_0x4a976d===u[_0xf18e4d(0x18b)][_0xf18e4d(0x17e)]?this[_0xf18e4d(0xb3)]():this[_0xf18e4d(0x25e)]();}),this[_0x48c87d(0x22a)][_0x48c87d(0xd2)]['pipe'](d['takeUntil'](this['dispose$']))[_0x48c87d(0x2fe)](_0x23e54c=>{const _0x8ca1de=_0x48c87d,_0x3774ea=_0x23e54c[_0x8ca1de(0xa3)];_0x3774ea===m[_0x8ca1de(0xf1)][_0x8ca1de(0x2ad)]&&this['_onCursorUpdate'](_0x23e54c),_0x3774ea===m[_0x8ca1de(0xf1)][_0x8ca1de(0x28e)]&&this[_0x8ca1de(0xe0)](_0x23e54c);}),this[_0x48c87d(0xd6)](),this[_0x48c87d(0x173)](this[_0x48c87d(0x174)]['onCommandExecuted'](_0x5f0f9d=>{const _0x3196f9=_0x48c87d;if(this['_online']&&_0x5f0f9d['id']===g[_0x3196f9(0x219)]['id']&&_0x5f0f9d[_0x3196f9(0x26e)][_0x3196f9(0x1ea)]===this[_0x3196f9(0x2e5)]){const _0xfbeb5b=_0x5f0f9d[_0x3196f9(0x26e)];this[_0x3196f9(0x2f8)](_0xfbeb5b[_0x3196f9(0x1fd)],_0xfbeb5b[_0x3196f9(0x209)][0x0]);}})));}[_0x48e5bc(0x11b)](_0x2fb241){const _0xca5b21=_0x48e5bc;var _0x56c993,_0x2ed5e5;const {memberID:_0x1f45b6,selection:_0x525564}=_0x2fb241[_0xca5b21(0x10f)],{sheetName:_0x249960,range:_0x288617}=Ee[_0xca5b21(0x2bf)](_0x525564),_0x389f2d={'name':(_0x2ed5e5=(_0x56c993=this['_memberService']['getMember'](this[_0xca5b21(0x2e5)],_0x1f45b6))==null?void 0x0:_0x56c993[_0xca5b21(0x1be)])!=null?_0x2ed5e5:'Unknown\x20user','range':this[_0xca5b21(0x171)](_0x249960,_0x288617),'sheetID':_0x249960,'color':this[_0xca5b21(0x1f4)][_0xca5b21(0xb0)](_0x1f45b6),'selection':_0x525564},_0x434d73=this[_0xca5b21(0x138)];_0x434d73[_0xca5b21(0x28a)](_0x1f45b6,_0x389f2d),this[_0xca5b21(0x88)][_0xca5b21(0xbb)](_0x434d73);}['_onCursorDelete'](_0x5e648b){const _0x57c9ed=_0x48e5bc,{memberID:_0x22d0fa}=_0x5e648b['data'],_0x51cb52=this[_0x57c9ed(0x138)];_0x51cb52['delete'](_0x22d0fa),this[_0x57c9ed(0x88)][_0x57c9ed(0xbb)](_0x51cb52);}['_getMergeRange'](_0x47513d,_0x3a4983){const _0x7358fa=_0x48e5bc;var _0x180989,_0x493dda;const _0x419e33=(_0x493dda=(_0x180989=this[_0x7358fa(0x109)][_0x7358fa(0x227)](this[_0x7358fa(0x2e5)]))==null?void 0x0:_0x180989[_0x7358fa(0x1f8)](_0x47513d))==null?void 0x0:_0x493dda['getMergeData']();return(_0x419e33==null?void 0x0:_0x419e33[_0x7358fa(0x81)](_0x58d8b2=>a[_0x7358fa(0x139)]['contains'](_0x58d8b2,_0x3a4983)))||_0x3a4983;}[_0x48e5bc(0xd6)](){const _0x4574f2=_0x48e5bc,_0x3249d8=new a[(_0x4574f2(0x2e9))](),_0x3228cf=ot(),_0xcdba7e=()=>{const _0x2a48cc=_0x4574f2;_0x3249d8['dispose']();const _0x53df8f=(_0x1e2404,_0x5a8b0c,_0x46e992,_0x82ea2d)=>{const _0x490467=_0x3f84;let _0x5ab064=[];switch(_0x1e2404['id']){case g[_0x490467(0x24d)]['DeleteRangeMoveLeftCommandId']:{_0x5ab064=g['handleDeleteRangeMoveLeft'](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x1a4)]:{_0x5ab064=g['handleDeleteRangeMoveUp'](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x1b7)]:{_0x5ab064=g[_0x490467(0x98)](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x204)]:{_0x5ab064=g[_0x490467(0x157)](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x1c7)]:{_0x5ab064=g[_0x490467(0x213)](_0x1e2404,_0x82ea2d);break;}case g['EffectRefRangId'][_0x490467(0x14a)]:{_0x5ab064=g['handleInsertRow'](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x215)]:{_0x5ab064=g['handleMoveRange'](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)]['RemoveColCommandId']:{_0x5ab064=g[_0x490467(0x112)](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x12d)]:{_0x5ab064=g[_0x490467(0x1cf)](_0x1e2404,_0x82ea2d);break;}}const _0x435d04=g[_0x490467(0x2b5)](_0x5ab064,_0x82ea2d),_0x1052b6=this['cursorInfo'][_0x490467(0x20c)](_0x5a8b0c);if(_0x1052b6&&_0x435d04){const _0x13f627={..._0x1052b6,'range':_0x435d04};this[_0x490467(0x138)][_0x490467(0x28a)](_0x5a8b0c,_0x13f627),_0x3228cf(()=>{const _0x428dca=_0x490467,_0x41dbfc=this[_0x428dca(0x10c)][_0x428dca(0x1e3)](_0x435d04,_0x4e2c98=>(_0x41dbfc[_0x428dca(0x233)](),_0x53df8f(_0x4e2c98,_0x5a8b0c,_0x46e992,_0x435d04)));_0x3249d8[_0x428dca(0x151)](_0x41dbfc);});}return{'redos':[],'undos':[]};};this[_0x2a48cc(0x138)]['forEach']((_0x2dcf4c,_0x1f840d)=>{const _0x5d5729=_0x2a48cc,{range:_0x8a0671,sheetID:_0x54ec93}=_0x2dcf4c,_0x3c972d=this['_refRangeService'][_0x5d5729(0x1e3)](_0x8a0671,_0x29e204=>(_0x3c972d[_0x5d5729(0x233)](),_0x53df8f(_0x29e204,_0x1f840d,_0x54ec93,_0x8a0671)));_0x3249d8['add'](_0x3c972d);});};this['disposeWithMe'](a[_0x4574f2(0x26d)](this[_0x4574f2(0x88)]['subscribe'](()=>{_0xcdba7e();})));}[_0x48e5bc(0xb3)](){const _0x410673=_0x48e5bc;var _0x2f4ac3,_0x558cdd;if(this[_0x410673(0x264)]=!0x0,((_0x2f4ac3=this[_0x410673(0x109)][_0x410673(0x2a3)]())==null?void 0x0:_0x2f4ac3[_0x410673(0x280)]())!==this[_0x410673(0x2e5)])return;const _0x18747b=(_0x558cdd=this['_injector'][_0x410673(0x20c)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x558cdd[0x0],_0x4abda8=this[_0x410673(0x109)][_0x410673(0x1e0)](a[_0x410673(0x80)]['UNIVER_SHEET'])[_0x410673(0x92)]();_0x18747b&&_0x4abda8&&this[_0x410673(0x2f8)](_0x4abda8['getSheetId'](),_0x18747b);}[_0x48e5bc(0x25e)](){const _0xc89c83=_0x48e5bc;this[_0xc89c83(0x264)]=!0x1;}};Se=it([w(0x2,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x102)])),w(0x3,a[_0x48e5bc(0x28c)](me)),w(0x4,a[_0x48e5bc(0x28c)](u[_0x48e5bc(0x252)])),w(0x5,a[_0x48e5bc(0x9f)]),w(0x6,a[_0x48e5bc(0x110)]),w(0x7,a[_0x48e5bc(0x28c)](g[_0x48e5bc(0x15d)]))],Se);var at=Object[_0x48e5bc(0x275)],ct=(_0x58c30f,_0x585066,_0x3dc7c6,_0x25e610)=>{const _0x21b7d7=_0x48e5bc;for(var _0x123271=_0x25e610>0x1?void 0x0:_0x25e610?at(_0x585066,_0x3dc7c6):_0x585066,_0x389e75=_0x58c30f[_0x21b7d7(0x2c5)]-0x1,_0x3b5a85;_0x389e75>=0x0;_0x389e75--)(_0x3b5a85=_0x58c30f[_0x389e75])&&(_0x123271=_0x3b5a85(_0x123271)||_0x123271);return _0x123271;},ie=(_0x12001b,_0x58e2cf)=>(_0x4ad198,_0x266a32)=>_0x58e2cf(_0x4ad198,_0x266a32,_0x12001b);let x=class extends a['RxDisposable']{constructor(_0x3fc26c,_0x3484b2,_0xba5ff3){const _0x3633f8=_0x48e5bc;super(),h(this,_0x3633f8(0x94),new Map()),h(this,'_entityInit$',new d['Subject']()),(this[_0x3633f8(0x109)]=_0x3fc26c,this[_0x3633f8(0x126)]=_0x3484b2,this['_collabSessionService']=_0xba5ff3,this[_0x3633f8(0x1c8)]());}[_0x48e5bc(0x233)](){const _0x45fe48=_0x48e5bc;super['dispose'](),this['_entityInit$'][_0x45fe48(0x14d)](),this[_0x45fe48(0x94)][_0x45fe48(0x299)](_0x6cc1a0=>_0x6cc1a0[_0x45fe48(0x233)]());}[_0x48e5bc(0x291)](_0x2cb190){const _0x522a0b=_0x48e5bc;return this[_0x522a0b(0x94)][_0x522a0b(0x197)](_0x2cb190)?this[_0x522a0b(0x94)][_0x522a0b(0x20c)](_0x2cb190)[_0x522a0b(0x2d6)]:this[_0x522a0b(0xc2)][_0x522a0b(0x29b)](d[_0x522a0b(0x2e1)](_0x14ffa3=>_0x14ffa3[_0x522a0b(0x2e5)]===_0x2cb190),d['switchMap'](_0x531d48=>_0x531d48[_0x522a0b(0x2d6)]));}[_0x48e5bc(0x1c8)](){const _0x1ed0c2=_0x48e5bc;this[_0x1ed0c2(0x109)][_0x1ed0c2(0x2dd)](a[_0x1ed0c2(0x80)][_0x1ed0c2(0x1f3)])[_0x1ed0c2(0x29b)](d['takeUntil'](this[_0x1ed0c2(0xcc)]))[_0x1ed0c2(0x2fe)](async _0x11a113=>{const _0x2ae54f=_0x1ed0c2,_0xc3d8b9=_0x11a113['getUnitId'](),_0x1159f1=await this[_0x2ae54f(0x27c)](_0xc3d8b9);this[_0x2ae54f(0xc2)][_0x2ae54f(0xbb)](_0x1159f1),this['_entities']['set'](_0xc3d8b9,_0x1159f1);}),this[_0x1ed0c2(0x109)][_0x1ed0c2(0x2dd)](a[_0x1ed0c2(0x80)][_0x1ed0c2(0x143)])[_0x1ed0c2(0x29b)](d[_0x1ed0c2(0xdd)](this[_0x1ed0c2(0xcc)]))[_0x1ed0c2(0x29b)](d[_0x1ed0c2(0x2e1)](_0x2c42a5=>!_0x2c42a5[_0x1ed0c2(0x280)]()[_0x1ed0c2(0x1ba)]('__')))[_0x1ed0c2(0x2fe)](async _0x484df8=>{const _0x83428c=_0x1ed0c2,_0x1a1eab=_0x484df8['getUnitId'](),_0x1b0b1c=await this[_0x83428c(0xf4)](_0x1a1eab);this[_0x83428c(0xc2)][_0x83428c(0xbb)](_0x1b0b1c),this['_entities']['set'](_0x1a1eab,_0x1b0b1c);}),d[_0x1ed0c2(0x116)](this[_0x1ed0c2(0x109)][_0x1ed0c2(0x293)](a[_0x1ed0c2(0x80)]['UNIVER_DOC']),this[_0x1ed0c2(0x109)][_0x1ed0c2(0x293)](a[_0x1ed0c2(0x80)][_0x1ed0c2(0x1f3)]))[_0x1ed0c2(0x29b)](d[_0x1ed0c2(0xdd)](this[_0x1ed0c2(0xcc)]))[_0x1ed0c2(0x2fe)](_0x594ba6=>{const _0x567965=_0x1ed0c2,_0x4254bf=_0x594ba6[_0x567965(0x280)](),_0x15fb7e=this['_entities'][_0x567965(0x20c)](_0x4254bf);_0x15fb7e&&(_0x15fb7e[_0x567965(0x233)](),this['_entities'][_0x567965(0x250)](_0x4254bf));});}async[_0x48e5bc(0x27c)](_0x57f4fe){const _0x3915bb=_0x48e5bc,_0x425884=await this[_0x3915bb(0x100)][_0x3915bb(0x2f5)](_0x57f4fe),_0x4a3222=this['_injector'][_0x3915bb(0x29f)](Se,_0x57f4fe,_0x425884);return _0x4a3222[_0x3915bb(0x2aa)](),_0x4a3222;}async[_0x48e5bc(0xf4)](_0x280d02){const _0x5a0aa6=_0x48e5bc,_0x2a997a=await this[_0x5a0aa6(0x100)]['requireSession'](_0x280d02),_0x550192=this['_injector']['createInstance'](fe,_0x280d02,_0x2a997a);return _0x550192[_0x5a0aa6(0x2aa)](),_0x550192;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x102)])),ie(0x2,a[_0x48e5bc(0x28c)](u[_0x48e5bc(0x29d)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3e644e,_0x8cd665){const _0x53a29c=_0x48e5bc;let {radius:_0x35a78e,width:_0x5e879d,height:_0x4514a3}=_0x8cd665;_0x35a78e=_0x35a78e!=null?_0x35a78e:0x0,_0x5e879d=_0x5e879d!=null?_0x5e879d:0x1e,_0x4514a3=_0x4514a3!=null?_0x4514a3:0x1e;let _0x51d1d3=0x0,_0x24b69c=0x0,_0x18e2c7=0x0;_0x51d1d3=_0x24b69c=_0x18e2c7=Math[_0x53a29c(0x202)](_0x35a78e,_0x5e879d/0x2,_0x4514a3/0x2),_0x3e644e['beginPath'](),_0x3e644e[_0x53a29c(0x8b)](_0x51d1d3,0x0),_0x3e644e['lineTo'](_0x5e879d-_0x24b69c,0x0),_0x3e644e[_0x53a29c(0x180)](_0x5e879d-_0x24b69c,_0x24b69c,_0x24b69c,Math['PI']*0x3/0x2,0x0,!0x1),_0x3e644e[_0x53a29c(0x1f0)](_0x5e879d,_0x4514a3-_0x18e2c7),_0x3e644e['arc'](_0x5e879d-_0x18e2c7,_0x4514a3-_0x18e2c7,_0x18e2c7,0x0,Math['PI']/0x2,!0x1),_0x3e644e['lineTo'](0x0,_0x4514a3),_0x3e644e['lineTo'](0x0,_0x51d1d3),_0x3e644e[_0x53a29c(0x180)](_0x51d1d3,_0x51d1d3,_0x51d1d3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3e644e[_0x53a29c(0x211)](),_0x8cd665[_0x53a29c(0x21c)]&&(_0x3e644e[_0x53a29c(0x17b)](),_0x3e644e[_0x53a29c(0x19f)]=_0x8cd665[_0x53a29c(0x21c)],_0x8cd665['fillRule']==='evenodd'?_0x3e644e[_0x53a29c(0x21c)](_0x53a29c(0x111)):_0x3e644e[_0x53a29c(0x21c)](),_0x3e644e['restore']());}class ee extends p[_0x48e5bc(0x135)]{constructor(_0xedc38c,_0x2a1de6){const _0x42671e=_0x48e5bc;super(_0xedc38c,_0x2a1de6),h(this,_0x42671e(0xc1)),h(this,'text'),(this[_0x42671e(0xc1)]=_0x2a1de6==null?void 0x0:_0x2a1de6[_0x42671e(0xc1)],this[_0x42671e(0x24b)]=_0x2a1de6==null?void 0x0:_0x2a1de6[_0x42671e(0x24b)]);}static[_0x48e5bc(0xbf)](_0x1c1b37,_0x3d3eb0){const _0x1265d2=_0x48e5bc,{text:_0xfcf2aa,color:_0x24abbc}=_0x3d3eb0;_0x1c1b37[_0x1265d2(0x17b)](),_0x1c1b37[_0x1265d2(0x260)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x568567=_0x1c1b37[_0x1265d2(0x2a9)](_0xfcf2aa)[_0x1265d2(0xb9)],_0x2d5ad2=Math[_0x1265d2(0x202)](_0x568567+0x2*ne,Re);_t(_0x1c1b37,{'height':K,'radius':0x4,'width':_0x2d5ad2,'fill':_0x24abbc}),_0x1c1b37[_0x1265d2(0x19f)]=_0x1265d2(0x167);const _0x2a5f53=ne,_0x5ae32e=K-lt,_0x3dad0a=Re-0x2*ne;if(_0x568567>_0x3dad0a){let _0x2a2298='',_0x279158=0x0;for(const _0x5b5752 of _0xfcf2aa){const _0x21f496=_0x1c1b37[_0x1265d2(0x2a9)](_0x5b5752)[_0x1265d2(0xb9)];if(_0x279158+_0x21f496<=_0x3dad0a-_0x1c1b37[_0x1265d2(0x2a9)]('...')[_0x1265d2(0xb9)])_0x2a2298+=_0x5b5752,_0x279158+=_0x21f496;else{_0x2a2298+=_0x1265d2(0x281);break;}}_0x1c1b37['fillText'](_0x2a2298,_0x2a5f53,_0x5ae32e);}else _0x1c1b37[_0x1265d2(0x11c)](_0xfcf2aa,_0x2a5f53,_0x5ae32e);_0x1c1b37[_0x1265d2(0xa0)]();}[_0x48e5bc(0x2ff)](_0x102d83){const _0x303883=_0x48e5bc;ee[_0x303883(0xbf)](_0x102d83,this);}}const re=_0x48e5bc(0x2a7),ht=_0x48e5bc(0xce),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x48e5bc(0x148);class De{constructor(_0x2cfe85,_0x35a55a,_0x51d4f9,_0x295500){const _0x4d2f4d=_0x48e5bc;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,_0x4d2f4d(0x15f),null),h(this,_0x4d2f4d(0x1a1),null),(this[_0x4d2f4d(0x2e8)]=_0x2cfe85,this[_0x4d2f4d(0x1bb)]=_0x35a55a,this[_0x4d2f4d(0xe1)]=_0x51d4f9,this[_0x4d2f4d(0xe5)]=_0x295500,this['_render']());}set[_0x48e5bc(0x25a)](_0x14dbc7){const _0x56b6a9=_0x48e5bc;_0x14dbc7?(this[_0x56b6a9(0x1a7)]&&this['_anchorDot'][_0x56b6a9(0x2d3)](),this[_0x56b6a9(0xdb)]&&this[_0x56b6a9(0xdb)][_0x56b6a9(0x15c)]()):(this[_0x56b6a9(0x1a7)]&&this[_0x56b6a9(0x1a7)][_0x56b6a9(0x15c)](),this[_0x56b6a9(0xdb)]&&this[_0x56b6a9(0xdb)]['hide']());}[_0x48e5bc(0x233)](){const _0x3dd69f=_0x48e5bc;for(const _0x4494c7 of this[_0x3dd69f(0x1b5)])_0x4494c7[_0x3dd69f(0x233)]();this[_0x3dd69f(0xdb)]&&this[_0x3dd69f(0xdb)]['dispose'](),this[_0x3dd69f(0x1a7)]&&this[_0x3dd69f(0x1a7)][_0x3dd69f(0x233)](),this[_0x3dd69f(0x1aa)]&&this[_0x3dd69f(0x1aa)][_0x3dd69f(0x233)](),this['_eventUnsubscribe']&&this[_0x3dd69f(0x1a1)]();}[_0x48e5bc(0x142)](){const _0x116c14=_0x48e5bc;var _0x246eaf;const {_docSkeleton:_0x2c065c,_document:_0x1799a3}=this,{color:_0x580eae,name:_0x231975,ranges:_0x3e8bcf}=this['_cursor'],_0x31c1b6=_0x1799a3['getOffsetConfig'](),{docsLeft:_0x1443e5,docsTop:_0x52951e}=_0x31c1b6,_0x2eff5e=new b[(_0x116c14(0x21e))](_0x31c1b6,_0x2c065c);for(const {startOffset:_0xa357c3,endOffset:_0x512251,rangeType:_0x21537e,segmentId:_0x108261,segmentPage:_0x4b7545,collapsed:_0x454a1d,isActive:_0x22751e}of _0x3e8bcf){const _0x2c82c4=_0x2c065c['findNodePositionByCharIndex'](_0xa357c3,!0x0,_0x108261,_0x4b7545);let _0x1abd67=_0x2c065c[_0x116c14(0x8f)](_0x512251,!0x0,_0x108261,_0x4b7545);if(_0x1abd67==null&&(_0x1abd67=_0x2c065c[_0x116c14(0x8f)](_0x512251-0x1,!0x1,_0x108261,_0x4b7545)),_0x22751e){const {contentBoxPointGroup:_0xa5510f}=_0x2eff5e['getRangePointData'](_0x1abd67,_0x1abd67);if(_0xa5510f[_0x116c14(0x2c5)]===0x0)continue;this['_drawAnchor'](_0x580eae,_0xa5510f,_0x1443e5,_0x52951e,_0x231975),this[_0x116c14(0x1a1)]=this[_0x116c14(0x15a)]();}if(_0x2c82c4&&_0x1abd67){if(_0x21537e===a[_0x116c14(0x1f2)][_0x116c14(0x218)]){const _0x262146=new b[(_0x116c14(0x1a2))](_0x31c1b6,_0x2c065c),{pointGroup:_0x25fed0}=(_0x246eaf=_0x262146[_0x116c14(0x7e)](_0x2c82c4,_0x1abd67))!=null?_0x246eaf:{};if(_0x25fed0==null||_0x25fed0[_0x116c14(0x2c5)]===0x0)continue;this[_0x116c14(0x9b)](_0x580eae,_0x25fed0,_0x1443e5,_0x52951e);}else{if(!_0x454a1d){const {borderBoxPointGroup:_0x15f6a6}=_0x2eff5e[_0x116c14(0x7e)](_0x2c82c4,_0x1abd67);if(_0x15f6a6[_0x116c14(0x2c5)]===0x0)continue;this[_0x116c14(0x19c)](_0x580eae,_0x15f6a6,_0x1443e5,_0x52951e);}}}}}['_drawAnchor'](_0x461a8c,_0x228b74,_0x1ebad6,_0x11b6a0,_0x3d8294){const _0xbccfb1=_0x48e5bc,_0xe40292=this['_getAnchorBounding'](_0x228b74),{left:_0x9a6ee4,top:_0x2ecb69,height:_0x4b5504}=_0xe40292,_0x3083c0=this['_getScale'](),_0x4f04f5=ft/_0x3083c0,_0x4e4692=new p[(_0xbccfb1(0x294))](re+a['Tools'][_0xbccfb1(0x288)](k),{'left':_0x9a6ee4+_0x1ebad6-_0x4f04f5,'top':_0x2ecb69+_0x11b6a0,'height':_0x4b5504,'width':dt,'fill':_0x461a8c||p[_0xbccfb1(0x13a)](a[_0xbccfb1(0x23f)]['black'],0x0),'strokeWidth':_0x4f04f5,'stroke':St,'evented':!0x0});this['_anchor']=_0x4e4692,this[_0xbccfb1(0x1bb)][_0xbccfb1(0x159)](_0x4e4692,b['TEXT_RANGE_LAYER_INDEX']);const _0x52d29e=new p[(_0xbccfb1(0x294))](re+a[_0xbccfb1(0x2ce)][_0xbccfb1(0x288)](k),{'left':_0x9a6ee4+_0x1ebad6-_0x4f04f5,'top':_0x2ecb69+_0x11b6a0-oe/0x2,'height':oe,'width':oe,'fill':_0x461a8c||p[_0xbccfb1(0x13a)](a['COLORS'][_0xbccfb1(0x1d3)],0x0),'strokeWidth':0x0,'stroke':_0x461a8c||p['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0xbccfb1(0x1a7)]=_0x52d29e,this['_scene'][_0xbccfb1(0x159)](_0x52d29e,b[_0xbccfb1(0x2c1)]);const _0x50d29f=new ee(re+a[_0xbccfb1(0x2ce)][_0xbccfb1(0x288)](k),{'left':_0x9a6ee4+_0x1ebad6-_0x4f04f5,'top':_0x2ecb69+_0x11b6a0-K,'text':_0x3d8294,'color':_0x461a8c});this['_textBubble']=_0x50d29f,this[_0xbccfb1(0x1bb)]['addObject'](_0x50d29f,b[_0xbccfb1(0x2c1)]),this['_hover']=!0x1;}['_handleHover'](){const _0x419eaf=_0x48e5bc,_0xaf9af7=this['_anchor'][_0x419eaf(0x1f1)][_0x419eaf(0x240)](()=>{this['_hover']=!0x0;}),_0x4b6c4f=this[_0x419eaf(0x1aa)][_0x419eaf(0xa4)][_0x419eaf(0x240)](()=>{const _0x3d1260=_0x419eaf;this[_0x3d1260(0x15f)]&&clearTimeout(this[_0x3d1260(0x15f)]),this[_0x3d1260(0x15f)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x31e286=_0x419eaf;_0xaf9af7[_0x31e286(0x20a)](),_0x4b6c4f[_0x31e286(0x20a)]();};}[_0x48e5bc(0x19c)](_0x7d58a7,_0x21463b,_0x1199d5,_0x2c6289){const _0x5d564c=_0x48e5bc,_0x271937=new a[(_0x5d564c(0x2f0))](_0x7d58a7)[_0x5d564c(0x23c)](0.2)[_0x5d564c(0x16b)](),_0x261f3b=new p[(_0x5d564c(0xf6))](ht+a['Tools'][_0x5d564c(0x288)](k),{'pointsGroup':_0x21463b,'fill':_0x271937||p[_0x5d564c(0x13a)](a[_0x5d564c(0x23f)]['black'],0.2),'left':_0x1199d5,'top':_0x2c6289,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5d564c(0x232)](_0x261f3b),this[_0x5d564c(0x1bb)][_0x5d564c(0x159)](_0x261f3b,b[_0x5d564c(0x2c1)]);}[_0x48e5bc(0x9b)](_0x48931f,_0x32d829,_0x397885,_0x28e5be){const _0x16c4b6=_0x48e5bc,_0x5d4994=new a[(_0x16c4b6(0x2f0))](_0x48931f)[_0x16c4b6(0x23c)](0.2)[_0x16c4b6(0x16b)](),_0x9b9d32=new p[(_0x16c4b6(0xf6))](ut+a[_0x16c4b6(0x2ce)][_0x16c4b6(0x288)](k),{'pointsGroup':_0x32d829,'fill':_0x5d4994||p[_0x16c4b6(0x13a)](a['COLORS'][_0x16c4b6(0x1d3)],0.2),'left':_0x397885,'top':_0x28e5be,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x16c4b6(0x232)](_0x9b9d32),this[_0x16c4b6(0x1bb)][_0x16c4b6(0x159)](_0x9b9d32,b['TEXT_RANGE_LAYER_INDEX']);}[_0x48e5bc(0x2c6)](_0x28eaeb){const _0x4603e5=_0x28eaeb[0x0],_0x50e118=_0x4603e5[0x0],_0x132d2e=_0x4603e5[0x2],{x:_0x16b37b,y:_0x1c029b}=_0x50e118,{x:_0xe982b4,y:_0x4b98f5}=_0x132d2e;return{'left':_0x16b37b,'top':_0x1c029b,'width':_0xe982b4-_0x16b37b,'height':_0x4b98f5-_0x1c029b};}[_0x48e5bc(0x20b)](){const _0x130591=_0x48e5bc,{scaleX:_0x513747,scaleY:_0x1d34bb}=this[_0x130591(0x1bb)][_0x130591(0x1d6)]();return Math[_0x130591(0x300)](_0x513747,_0x1d34bb);}}var It=Object[_0x48e5bc(0x275)],vt=(_0x254398,_0x34e32a,_0x4b0cc6,_0x1ee0c8)=>{const _0x445984=_0x48e5bc;for(var _0x1f69df=_0x1ee0c8>0x1?void 0x0:_0x1ee0c8?It(_0x34e32a,_0x4b0cc6):_0x34e32a,_0x5ad079=_0x254398[_0x445984(0x2c5)]-0x1,_0x534ab6;_0x5ad079>=0x0;_0x5ad079--)(_0x534ab6=_0x254398[_0x5ad079])&&(_0x1f69df=_0x534ab6(_0x1f69df)||_0x1f69df);return _0x1f69df;},W=(_0x1913f3,_0xa95018)=>(_0x18baaa,_0x583809)=>_0xa95018(_0x18baaa,_0x583809,_0x1913f3);let Ie=class extends a[_0x48e5bc(0x9d)]{constructor(_0x3ba28f,_0x2b3218,_0x163f21,_0x4d7f84,_0xfb4f88){const _0x524014=_0x48e5bc;super(),h(this,_0x524014(0x107),[]),h(this,_0x524014(0xa5),[]),(this[_0x524014(0xc7)]=_0x3ba28f,this[_0x524014(0x82)]=_0x2b3218,this[_0x524014(0x1bc)]=_0x163f21,this[_0x524014(0x174)]=_0x4d7f84,this['_themeService']=_0xfb4f88,this['_init']());}[_0x48e5bc(0x1c8)](){const _0xd7c3ec=_0x48e5bc,_0x175de0=this['_context'][_0xd7c3ec(0x1ea)],_0x28f158=this[_0xd7c3ec(0x82)];this[_0xd7c3ec(0x173)](d[_0xd7c3ec(0x224)]([this[_0xd7c3ec(0x1bc)][_0xd7c3ec(0x291)](_0x175de0),this[_0xd7c3ec(0x130)][_0xd7c3ec(0x2b6)]])[_0xd7c3ec(0x29b)]($[_0xd7c3ec(0x241)](([_0x25fa91,_0x51c2ec])=>({'skeleton':_0x28f158[_0xd7c3ec(0x2bb)](),'cursors':[..._0x25fa91[_0xd7c3ec(0x269)]()][_0xd7c3ec(0x2e7)](_0x5d0b9b=>({..._0x5d0b9b,'color':this[_0xd7c3ec(0x130)][_0xd7c3ec(0x27b)](_0x5d0b9b['color'])}))})))[_0xd7c3ec(0x2fe)](_0xeef339=>{const _0xbd0ee2=_0xd7c3ec;if(this['_removeCollabCursors'](),_0xeef339){const {skeleton:_0x51ffae,cursors:_0x4600f7}=_0xeef339;this[_0xbd0ee2(0x274)](_0x51ffae,_0x4600f7);}})),this[_0xd7c3ec(0x225)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x5adbab,_0x45f95a){const _0x3e6bbb=_0x48e5bc,{scene:_0x3b6df5,mainComponent:_0x5ebd9d}=this[_0x3e6bbb(0xc7)],_0x510478=_0x45f95a['map'](_0x29e99e=>new De(_0x29e99e,_0x3b6df5,_0x5adbab,_0x5ebd9d));this[_0x3e6bbb(0x107)]=_0x510478,this[_0x3e6bbb(0xa5)]=_0x45f95a;}[_0x48e5bc(0x27d)](){const _0xfafb51=_0x48e5bc;this['_removeCollabCursors']();const {scene:_0x58b872,mainComponent:_0x3fff95}=this[_0xfafb51(0xc7)],_0x537d4e=this[_0xfafb51(0x82)][_0xfafb51(0x2bb)](),_0x36f6bc=this[_0xfafb51(0xa5)][_0xfafb51(0x241)](_0x3c5e00=>new De(_0x3c5e00,_0x58b872,_0x537d4e,_0x3fff95));this[_0xfafb51(0x107)]=_0x36f6bc;}[_0x48e5bc(0x2a2)](){const _0xa33357=_0x48e5bc;this[_0xa33357(0x107)]['forEach'](_0x5b2d7e=>_0x5b2d7e[_0xa33357(0x233)]()),this[_0xa33357(0x107)]=[];}[_0x48e5bc(0x194)](){const _0x1a4041=_0x48e5bc,_0x5a733e=[b[_0x1a4041(0x14c)]['id']];this[_0x1a4041(0x173)](this[_0x1a4041(0x174)][_0x1a4041(0x2a0)](_0x469e62=>{const _0x55fade=_0x1a4041;_0x5a733e['includes'](_0x469e62['id'])&&_0x469e62[_0x55fade(0x26e)][_0x55fade(0x1ea)]===this[_0x55fade(0xc7)][_0x55fade(0x1ea)]&&this['_refreshCollabCursors']();}));}[_0x48e5bc(0x225)](){const _0x119640=_0x48e5bc;this[_0x119640(0x173)](a['fromEventSubject'](this[_0x119640(0xc7)][_0x119640(0x1bd)][_0x119640(0xcb)])[_0x119640(0x29b)]($[_0x119640(0x2e1)](_0x5f1bd5=>_0x5f1bd5['type']===p[_0x119640(0x158)][_0x119640(0x28b)]),$[_0x119640(0x25d)](0x10))[_0x119640(0x2fe)](()=>{const _0x1142bc=_0x119640;this[_0x1142bc(0x27d)]();}));}};Ie=vt([W(0x1,a[_0x48e5bc(0x28c)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x48e5bc(0x28c)](x)),W(0x3,a[_0x48e5bc(0x110)]),W(0x4,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0xd5)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x48e5bc(0x135)]{constructor(_0x4c31d5,_0x3cd478){const _0x51f599=_0x48e5bc;super(_0x4c31d5,_0x3cd478),h(this,_0x51f599(0x1fc)),h(this,_0x51f599(0x24f),!0x1),h(this,_0x51f599(0x242)),h(this,'_name',''),h(this,_0x51f599(0x10a),'top'),h(this,_0x51f599(0x16a)),(_0x3cd478&&this[_0x51f599(0x253)](_0x3cd478),this[_0x51f599(0x1f1)]['subscribeEvent'](()=>this[_0x51f599(0x253)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0xb0e773){const _0x387348=_0x48e5bc;var _0x4e6eea,_0x13a31a,_0x55a86f,_0x38cb0c,_0x1310a3,_0x11b36d;this[_0x387348(0x1fc)]=(_0x4e6eea=_0xb0e773['color'])!=null?_0x4e6eea:this[_0x387348(0x1fc)],this[_0x387348(0x24f)]=(_0x13a31a=_0xb0e773[_0x387348(0x2eb)])!=null?_0x13a31a:this['_hovered'],this[_0x387348(0x242)]=(_0x55a86f=_0xb0e773[_0x387348(0x11f)])!=null?_0x55a86f:this[_0x387348(0x242)],this['_name']=(_0x38cb0c=_0xb0e773[_0x387348(0x1be)])!=null?_0x38cb0c:this[_0x387348(0x12c)],this[_0x387348(0x10a)]=(_0x1310a3=_0xb0e773['labelPosition'])!=null?_0x1310a3:this['_labelPosition'],this[_0x387348(0x16a)]=(_0x11b36d=_0xb0e773[_0x387348(0x251)])!=null?_0x11b36d:this['_backgroundColor'],this[_0x387348(0x2b0)]({'width':_0xb0e773[_0x387348(0xb9)],'height':_0xb0e773['height']});}[_0x48e5bc(0xd9)](_0x131492){const _0x484c85=_0x48e5bc,{row:_0x42861f,column:_0x5dbac8}=_0x131492;if(_0x42861f>=this[_0x484c85(0x242)]['startRow']&&_0x42861f<=this[_0x484c85(0x242)][_0x484c85(0x1f5)]&&_0x5dbac8>=this[_0x484c85(0x242)]['startColumn']&&_0x5dbac8<=this[_0x484c85(0x242)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x484c85(0x253)]({'hovered':!0x1});}[_0x48e5bc(0x154)](_0x486786){return!0x1;}[_0x48e5bc(0x2ff)](_0x4ff001){const _0x474fc4=_0x48e5bc;p[_0x474fc4(0x294)]['drawWith'](_0x4ff001,{'width':this[_0x474fc4(0xb9)],'height':this[_0x474fc4(0x83)],'strokeWidth':mt,'stroke':this[_0x474fc4(0x1fc)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x474fc4(0x24f)]&&(_0x4ff001['save'](),_0x4ff001[_0x474fc4(0x2d5)](0x1,0x0,0x0,0x1,this[_0x474fc4(0xb9)],this['_labelPosition']==='bottom'?0x0:-0x14),ee['drawWith'](_0x4ff001,{'text':this[_0x474fc4(0x12c)],'color':this['_color']}),_0x4ff001['restore']());}}var Ct=Object[_0x48e5bc(0x275)],pt=(_0x13a11f,_0x3bcac5,_0x2c4412,_0x8908a6)=>{const _0x2aeed2=_0x48e5bc;for(var _0x3d704e=_0x8908a6>0x1?void 0x0:_0x8908a6?Ct(_0x3bcac5,_0x2c4412):_0x3bcac5,_0x241477=_0x13a11f[_0x2aeed2(0x2c5)]-0x1,_0x4b6ad6;_0x241477>=0x0;_0x241477--)(_0x4b6ad6=_0x13a11f[_0x241477])&&(_0x3d704e=_0x4b6ad6(_0x3d704e)||_0x3d704e);return _0x3d704e;},ae=(_0x3e34f3,_0x335148)=>(_0x33de17,_0x41b241)=>_0x335148(_0x33de17,_0x41b241,_0x3e34f3);const bt=0x1389;let ve=class extends a[_0x48e5bc(0x9d)]{constructor(_0x459706,_0x35b742,_0x5812d6,_0x5e9f58){const _0x205915=_0x48e5bc;super(),h(this,'_cursors',new Set()),h(this,_0x205915(0xbd),null),(this[_0x205915(0xc7)]=_0x459706,this[_0x205915(0x160)]=_0x35b742,this[_0x205915(0x1bc)]=_0x5812d6,this[_0x205915(0x130)]=_0x5e9f58,this[_0x205915(0x1c8)]());}[_0x48e5bc(0x1c8)](){const _0x5e7151=_0x48e5bc;this[_0x5e7151(0x160)][_0x5e7151(0x140)][_0x5e7151(0x29b)]($[_0x5e7151(0xdd)](this[_0x5e7151(0xcc)]),$['switchMap'](_0xaca03d=>{const _0x198cf8=_0x5e7151;if(_0xaca03d){const _0xcc824b=_0xaca03d[_0x198cf8(0xae)];return d[_0x198cf8(0x224)](this[_0x198cf8(0x1bc)]['getCollabCursors$'](this[_0x198cf8(0xc7)][_0x198cf8(0x1ea)]),this[_0x198cf8(0x130)][_0x198cf8(0x2b6)])[_0x198cf8(0x29b)]($[_0x198cf8(0x241)](([_0x4d5be1,_0x234465])=>{const _0x418549=_0x198cf8,_0x40cbc7=new Map();return _0x4d5be1[_0x418549(0x299)]((_0x356db8,_0x2b554b)=>{const _0x391199=_0x418549;if(_0x356db8[_0x391199(0xee)]===_0xcc824b){const _0x5eb048={..._0x356db8};_0x5eb048[_0x391199(0xc1)]=this['_themeService']['getColorFromTheme'](_0x356db8[_0x391199(0xc1)]),_0x40cbc7['set'](_0x2b554b,_0x5eb048);}}),{'skeleton':_0xaca03d,'cursors':_0x40cbc7};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xc61872,cursors:_0x4dc7a5})=>{const _0x3e6be3=_0x5e7151;this[_0x3e6be3(0x2a2)](),_0xc61872&&this[_0x3e6be3(0x274)](_0xc61872,_0x4dc7a5);}),this['_sheetSkeletonManagerService'][_0x5e7151(0x140)]['subscribe'](_0x4adaab=>{const _0x4f60cb=_0x5e7151;if(_0x4adaab==null)return;const {skeleton:_0x3ef0d0}=_0x4adaab,{scene:_0xb61973}=this[_0x4f60cb(0xc7)];_0xb61973[_0x4f60cb(0x23b)][_0x4f60cb(0x240)](a[_0x4f60cb(0xaf)](_0x36a831=>{const _0x23bed7=_0x4f60cb;var _0x21bb90,_0x4eb389;const {offsetX:_0x30ce50,offsetY:_0x3763b7}=_0x36a831,{x:_0x584d06,y:_0x47eaec}=_0xb61973[_0x23bed7(0x146)](p[_0x23bed7(0x15b)][_0x23bed7(0xfb)]([_0x30ce50,_0x3763b7])),{scaleX:_0x573d8b,scaleY:_0x136f06}=_0xb61973[_0x23bed7(0x1d6)](),_0x20ab37=_0xb61973['getViewport'](p[_0x23bed7(0x292)]['VIEW_MAIN']),_0x7d8698=_0xb61973[_0x23bed7(0x162)](p['Vector2'][_0x23bed7(0xfb)]([_0x584d06,_0x47eaec]),_0x20ab37),_0xe7f164=_0x3ef0d0[_0x23bed7(0x120)](_0x30ce50,_0x3763b7,_0x573d8b,_0x136f06,_0x7d8698);((_0x21bb90=this['_lastPointer'])==null?void 0x0:_0x21bb90[_0x23bed7(0xe6)])===_0xe7f164[_0x23bed7(0xe6)]&&((_0x4eb389=this[_0x23bed7(0xbd)])==null?void 0x0:_0x4eb389['row'])===_0xe7f164[_0x23bed7(0x2ba)]||this['_cursors']['forEach'](_0x2cd5c0=>{const _0x404fce=_0x23bed7;_0x2cd5c0[_0x404fce(0xd9)](_0xe7f164);});},0x64));});}[_0x48e5bc(0x274)](_0x23dac3,_0x34db18){const _0x5c738b=_0x48e5bc;var _0x5c32a2;const _0x15e0a9=(_0x5c32a2=this[_0x5c738b(0x160)]['getCurrent']())==null?void 0x0:_0x5c32a2[_0x5c738b(0x200)];if(!_0x15e0a9)return;const _0x3023cb=this[_0x5c738b(0x189)]();if(!_0x3023cb)return;this[_0x5c738b(0xa5)][_0x5c738b(0x299)](_0x5825a3=>{_0x5825a3['makeDirty']();});const {scene:_0x15e90b}=_0x3023cb,_0x250d3c=Et(Array[_0x5c738b(0x15e)](_0x34db18[_0x5c738b(0x269)]()))[_0x5c738b(0x241)](_0x1305ed=>{const _0x75a683=_0x5c738b,{color:_0x54e893,range:_0x52a5c4,name:_0x2a2002,selection:_0x14800d,sheetID:_0xa358f2}=_0x1305ed,{startColumn:_0x139613,startRow:_0x47ac38,endColumn:_0xbed0cf,endRow:_0xf4b4a5}=_0x52a5c4,_0x1d2d06=X[_0x75a683(0x1ca)](_0x47ac38,_0x139613,_0x15e90b,_0x15e0a9),_0x106348=X[_0x75a683(0x1ca)](_0xf4b4a5,_0xbed0cf,_0x15e90b,_0x15e0a9),{columnHeaderHeightAndMarginTop:_0x169f64}=_0x15e0a9,{startX:_0x36cd91,startY:_0x10005a}=_0x1d2d06,{endX:_0x6c2580,endY:_0x4361ab}=_0x106348,_0x3fddfa=_0x6c2580-_0x36cd91,_0x3547d9=_0x4361ab-_0x10005a,_0x59dc53={'labelPosition':_0x10005a-_0x169f64>=K?_0x75a683(0x13f):'bottom','sheetID':_0xa358f2,'range':_0x52a5c4,'color':_0x54e893,'name':_0x2a2002,'selection':_0x14800d,'left':_0x36cd91,'top':_0x10005a,'width':_0x3fddfa,'height':_0x3547d9,'evented':!0x1,'zIndex':bt};return new Ae(_0x2a2002,_0x59dc53);});_0x15e90b[_0x5c738b(0x1e4)](_0x250d3c,gt),this[_0x5c738b(0xa5)]=new Set(_0x250d3c);}[_0x48e5bc(0x2a2)](){const _0x3b08e8=_0x48e5bc;var _0xb4f20a;(_0xb4f20a=this[_0x3b08e8(0xa5)])==null||_0xb4f20a['forEach'](_0x413874=>_0x413874[_0x3b08e8(0x233)]());}[_0x48e5bc(0x189)](){const _0x2c5cc5=_0x48e5bc;return X[_0x2c5cc5(0x262)](this[_0x2c5cc5(0xc7)]['unit'],this[_0x2c5cc5(0xc7)]);}};ve=pt([ae(0x1,a[_0x48e5bc(0x28c)](X[_0x48e5bc(0x1ff)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0xd5)]))],ve);function Et(_0x546f32){const _0x1c7fe1=_0x48e5bc,_0x272327=new Map();return _0x546f32[_0x1c7fe1(0x299)](_0x2c25a1=>{const _0x188f03=_0x1c7fe1;if(_0x272327['has'](_0x2c25a1[_0x188f03(0x108)])){const _0x31645d=_0x272327[_0x188f03(0x20c)](_0x2c25a1[_0x188f03(0x108)]);_0x31645d[_0x188f03(0x1be)]+=',\x20'+_0x2c25a1['name'];}else _0x272327[_0x188f03(0x28a)](_0x2c25a1['selection'],_0x2c25a1);}),Array[_0x1c7fe1(0x15e)](_0x272327[_0x1c7fe1(0x269)]());}var E=function(){const _0x784b14=_0x48e5bc;return E=Object[_0x784b14(0x2c8)]||function(_0x22a618){const _0x4cb4fa=_0x784b14;for(var _0x816be3,_0x48203b=0x1,_0x4b7317=arguments[_0x4cb4fa(0x2c5)];_0x48203b<_0x4b7317;_0x48203b++){_0x816be3=arguments[_0x48203b];for(var _0x55558d in _0x816be3)Object[_0x4cb4fa(0x89)][_0x4cb4fa(0xe9)][_0x4cb4fa(0x1bf)](_0x816be3,_0x55558d)&&(_0x22a618[_0x55558d]=_0x816be3[_0x55558d]);}return _0x22a618;},E[_0x784b14(0x214)](this,arguments);},Tt=function(_0x5b0708,_0x37962d){const _0x307cde=_0x48e5bc;var _0x4f640e={};for(var _0x384c02 in _0x5b0708)Object[_0x307cde(0x89)]['hasOwnProperty'][_0x307cde(0x1bf)](_0x5b0708,_0x384c02)&&_0x37962d['indexOf'](_0x384c02)<0x0&&(_0x4f640e[_0x384c02]=_0x5b0708[_0x384c02]);if(_0x5b0708!=null&&typeof Object[_0x307cde(0x29e)]==_0x307cde(0x302)){for(var _0x3b901d=0x0,_0x384c02=Object[_0x307cde(0x29e)](_0x5b0708);_0x3b901d<_0x384c02[_0x307cde(0x2c5)];_0x3b901d++)_0x37962d[_0x307cde(0x2dc)](_0x384c02[_0x3b901d])<0x0&&Object['prototype'][_0x307cde(0x261)][_0x307cde(0x1bf)](_0x5b0708,_0x384c02[_0x3b901d])&&(_0x4f640e[_0x384c02[_0x3b901d]]=_0x5b0708[_0x384c02[_0x3b901d]]);}return _0x4f640e;},pe=M[_0x48e5bc(0x2ec)](function(_0x28e721,_0x505202){const _0x237eb0=_0x48e5bc;var _0xee6b9f=_0x28e721[_0x237eb0(0x19a)],_0x3a3e4a=_0x28e721['id'],_0xe8a2c9=_0x28e721['className'],_0x7af434=_0x28e721[_0x237eb0(0x2ee)],_0x4d284a=Tt(_0x28e721,[_0x237eb0(0x19a),'id','className',_0x237eb0(0x2ee)]),_0x46db6a=_0x237eb0(0x2c0)[_0x237eb0(0x22b)](_0x3a3e4a,'\x20')['concat'](_0xe8a2c9||'')[_0x237eb0(0x9c)](),_0x1438fd=M['useRef']('_'[_0x237eb0(0x22b)](Dt()));return we(_0xee6b9f,''[_0x237eb0(0x22b)](_0x3a3e4a),{'defIds':_0xee6b9f[_0x237eb0(0x2a4)],'idSuffix':_0x1438fd[_0x237eb0(0x91)]},E({'ref':_0x505202,'className':_0x46db6a},_0x4d284a),_0x7af434);});function we(_0x190669,_0x56bb5e,_0x351ec3,_0x1eab1e,_0x13d6eb){const _0x1dd896=_0x48e5bc;return M[_0x1dd896(0x1c1)](_0x190669[_0x1dd896(0x12b)],E(E({'key':_0x56bb5e},Ot(_0x190669,_0x351ec3,_0x13d6eb)),_0x1eab1e),(Rt(_0x190669,_0x351ec3)['children']||[])[_0x1dd896(0x241)](function(_0x23fe9b,_0x491a8f){const _0x5555aa=_0x1dd896;return we(_0x23fe9b,''[_0x5555aa(0x22b)](_0x56bb5e,'-')[_0x5555aa(0x22b)](_0x190669[_0x5555aa(0x12b)],'-')['concat'](_0x491a8f),_0x351ec3,void 0x0,_0x13d6eb);}));}function Ot(_0x237419,_0x1cbd62,_0x573f4d){const _0x5947d7=_0x48e5bc;var _0x2b6de7=E({},_0x237419[_0x5947d7(0x1c5)]);_0x573f4d!=null&&_0x573f4d[_0x5947d7(0x2d1)]&&_0x2b6de7[_0x5947d7(0x21c)]==='colorChannel1'&&(_0x2b6de7[_0x5947d7(0x21c)]=_0x573f4d[_0x5947d7(0x2d1)]),_0x237419[_0x5947d7(0x12b)]===_0x5947d7(0x14e)&&_0x2b6de7['id']&&(_0x2b6de7['id']=_0x2b6de7['id']+_0x1cbd62[_0x5947d7(0x1dc)]),Object['entries'](_0x2b6de7)[_0x5947d7(0x299)](function(_0x1a4d4a){const _0x5b81f2=_0x5947d7;var _0x16a182=_0x1a4d4a[0x0],_0x3d3e5b=_0x1a4d4a[0x1];_0x16a182===_0x5b81f2(0x14e)&&typeof _0x3d3e5b==_0x5b81f2(0x20e)&&(_0x2b6de7[_0x16a182]=_0x3d3e5b[_0x5b81f2(0x22e)](/url\(#(.*)\)/,_0x5b81f2(0x2da)[_0x5b81f2(0x22b)](_0x1cbd62['idSuffix'],')')));});var _0x57e4c4=_0x1cbd62[_0x5947d7(0x2a4)];return!_0x57e4c4||_0x57e4c4['length']===0x0||(_0x237419['tag']===_0x5947d7(0x21a)&&_0x2b6de7[_0x5947d7(0x287)]&&(_0x2b6de7[_0x5947d7(0x287)]=_0x2b6de7[_0x5947d7(0x287)]+_0x1cbd62[_0x5947d7(0x1dc)]),Object[_0x5947d7(0x1f9)](_0x2b6de7)[_0x5947d7(0x299)](function(_0x59aeb6){const _0x59d350=_0x5947d7;var _0x4fefdd=_0x59aeb6[0x0],_0xe78c43=_0x59aeb6[0x1];typeof _0xe78c43==_0x59d350(0x20e)&&(_0x2b6de7[_0x4fefdd]=_0xe78c43[_0x59d350(0x22e)](/url\(#(.*)\)/,_0x59d350(0x2da)[_0x59d350(0x22b)](_0x1cbd62[_0x59d350(0x1dc)],')')));})),_0x2b6de7;}function Rt(_0x133e9f,_0x4a9534){const _0x3c4c1a=_0x48e5bc;var _0x2add4d,_0xfd4d06=_0x4a9534[_0x3c4c1a(0x2a4)];return!_0xfd4d06||_0xfd4d06[_0x3c4c1a(0x2c5)]===0x0?_0x133e9f:_0x133e9f[_0x3c4c1a(0x12b)]===_0x3c4c1a(0x1a6)&&(!((_0x2add4d=_0x133e9f[_0x3c4c1a(0xb6)])===null||_0x2add4d===void 0x0)&&_0x2add4d['length'])?E(E({},_0x133e9f),{'children':_0x133e9f[_0x3c4c1a(0xb6)]['map'](function(_0x57761e){const _0x125d67=_0x3c4c1a;return typeof _0x57761e['attrs']['id']==_0x125d67(0x20e)&&_0xfd4d06&&_0xfd4d06[_0x125d67(0x2dc)](_0x57761e['attrs']['id'])>-0x1?E(E({},_0x57761e),{'attrs':E(E({},_0x57761e['attrs']),{'id':_0x57761e[_0x125d67(0x1c5)]['id']+_0x4a9534[_0x125d67(0x1dc)]})}):_0x57761e;})}):_0x133e9f;}function Dt(){const _0xfdba75=_0x48e5bc;return Math['random']()[_0xfdba75(0x220)](0x24)[_0xfdba75(0x23e)](0x2,0x8);}pe['displayName']=_0x48e5bc(0x16e);var Ut={'tag':'svg','attrs':{'fill':_0x48e5bc(0x24e),'viewBox':_0x48e5bc(0x2bc),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x48e5bc(0x27e)},'children':[{'tag':_0x48e5bc(0x1d9),'attrs':{'stroke':_0x48e5bc(0xf5),'d':_0x48e5bc(0x169),'strokeLinecap':_0x48e5bc(0x1af),'strokeLinejoin':_0x48e5bc(0x1af),'strokeWidth':1.2}}]},{'tag':_0x48e5bc(0x1a6),'attrs':{},'children':[{'tag':_0x48e5bc(0x247),'attrs':{'id':_0x48e5bc(0xc8)},'children':[{'tag':_0x48e5bc(0x1d9),'attrs':{'fill':_0x48e5bc(0x222),'d':_0x48e5bc(0x9e)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ye=M[_0x48e5bc(0x2ec)](function(_0x582e49,_0x4652d8){const _0x39f440=_0x48e5bc;return M['createElement'](pe,Object[_0x39f440(0x2c8)]({},_0x582e49,{'id':_0x39f440(0x29c),'ref':_0x4652d8,'icon':Ut}));});ye[_0x48e5bc(0x13d)]='OffLineSingle';var Nt={'tag':'svg','attrs':{'fill':'none','viewBox':_0x48e5bc(0x18f),'width':_0x48e5bc(0x18c),'height':_0x48e5bc(0x18c)},'children':[{'tag':'g','attrs':{'clipPath':_0x48e5bc(0x2e6)},'children':[{'tag':_0x48e5bc(0x1d9),'attrs':{'stroke':_0x48e5bc(0xf5),'d':_0x48e5bc(0x1d0),'strokeLinecap':_0x48e5bc(0x1af),'strokeLinejoin':_0x48e5bc(0x1af),'strokeWidth':1.2}}]},{'tag':_0x48e5bc(0x1a6),'attrs':{},'children':[{'tag':_0x48e5bc(0x247),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x48e5bc(0x1d9),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x48e5bc(0xf8)}}]}]}],'defIds':[_0x48e5bc(0x238)]},$e=M[_0x48e5bc(0x2ec)](function(_0x53c3b4,_0x40eda3){const _0x2bdce1=_0x48e5bc;return M['createElement'](pe,Object[_0x2bdce1(0x2c8)]({},_0x53c3b4,{'id':'on-line-single','ref':_0x40eda3,'icon':Nt}));});$e['displayName']=_0x48e5bc(0x284);function Mt(_0x3abd90){const _0x29fff6=_0x48e5bc;switch(_0x3abd90){case u[_0x29fff6(0x11e)][_0x29fff6(0x2e2)]:return _0x29fff6(0x178);case u[_0x29fff6(0x11e)][_0x29fff6(0x97)]:return _0x29fff6(0x244);case u[_0x29fff6(0x11e)][_0x29fff6(0x22c)]:return _0x29fff6(0xf0);case u['CollaborationStatus'][_0x29fff6(0xba)]:return _0x29fff6(0x266);case u[_0x29fff6(0x11e)][_0x29fff6(0x26f)]:case u[_0x29fff6(0x11e)][_0x29fff6(0x203)]:return _0x29fff6(0xd7);case u[_0x29fff6(0x11e)]['SYNCED']:case u[_0x29fff6(0x11e)][_0x29fff6(0x16f)]:return _0x29fff6(0x286);}}function _0x3f84(_0x51654c,_0x573577){const _0x28245e=_0x2824();return _0x3f84=function(_0x3f84e3,_0x390464){_0x3f84e3=_0x3f84e3-0x7e;let _0x150efe=_0x28245e[_0x3f84e3];return _0x150efe;},_0x3f84(_0x51654c,_0x573577);}function xe(_0x157d5e){const _0x48c718=_0x48e5bc,{status$:_0x42a4dd}=_0x157d5e,_0x50b1fc=T[_0x48c718(0x103)](_0x42a4dd,u['CollaborationStatus'][_0x48c718(0xba)]),_0x15112e=T[_0x48c718(0x1ec)](a[_0x48c718(0x223)]),_0x5a9736=T['useDependency'](u[_0x48c718(0x29d)]),_0x56c46c=_0x50b1fc!==u['CollaborationStatus'][_0x48c718(0x2e2)],_0x55657e=_0x15112e['t'](Mt(_0x50b1fc)),_0x10db65=_0x56c46c?P[_0x48c718(0x156)]($e,{}):P[_0x48c718(0x156)](ye,{}),_0x2e9487=M['useCallback'](()=>{const _0x584729=_0x48c718;_0x56c46c||_0x5a9736[_0x584729(0x2a5)]();},[_0x56c46c,_0x5a9736]);function _0x485f15(){const _0x3a1248=_0x48c718;return P[_0x3a1248(0x186)](_0x3a1248(0xe8),{'className':_0x3a1248(0x1fe),'onClick':_0x2e9487,'children':[P[_0x3a1248(0x156)](_0x3a1248(0xe8),{'className':D[_0x3a1248(0x20d)](_0x3a1248(0x1b8),{'univer-text-green-500':_0x56c46c,'univer-text-red-500':!_0x56c46c}),'children':_0x10db65}),P['jsx']('div',{'className':_0x3a1248(0x25c),'children':_0x55657e})]});}return _0x56c46c?_0x485f15():P['jsx'](D[_0x48c718(0x18d)],{'title':_0x15112e['t'](_0x48c718(0x2ac)),'children':_0x485f15()});}var Lt=Object[_0x48e5bc(0x275)],Pt=(_0x4fce49,_0x718af1,_0x300310,_0x340cbd)=>{const _0x3a5662=_0x48e5bc;for(var _0x3d20de=_0x340cbd>0x1?void 0x0:_0x340cbd?Lt(_0x718af1,_0x300310):_0x718af1,_0x17644b=_0x4fce49[_0x3a5662(0x2c5)]-0x1,_0x297437;_0x17644b>=0x0;_0x17644b--)(_0x297437=_0x4fce49[_0x17644b])&&(_0x3d20de=_0x297437(_0x3d20de)||_0x3d20de);return _0x3d20de;},V=(_0x4af0a8,_0xb8da88)=>(_0x431a6f,_0x518e48)=>_0xb8da88(_0x431a6f,_0x518e48,_0x4af0a8);exports[_0x48e5bc(0x1c6)]=class extends a[_0x48e5bc(0xac)]{constructor(_0x45bbf2,_0x167717,_0x4465ec,_0x18e873){const _0x4c4021=_0x48e5bc;super(),h(this,_0x4c4021(0x179),new d['BehaviorSubject'](u[_0x4c4021(0x11e)][_0x4c4021(0xba)])),(this['_univerInstanceService']=_0x45bbf2,this[_0x4c4021(0x126)]=_0x167717,this[_0x4c4021(0x118)]=_0x4465ec,this['_uiPartsService']=_0x18e873,this[_0x4c4021(0x86)](),this[_0x4c4021(0x2df)]());}['_initStatusListener'](){const _0xc2bc07=_0x48e5bc;this[_0xc2bc07(0x173)](this['_univerInstanceService'][_0xc2bc07(0x1e9)][_0xc2bc07(0x29b)](d['switchMap'](()=>{const _0x243002=_0xc2bc07,_0x2542be=this[_0x243002(0x109)][_0x243002(0x2a3)]();return _0x2542be?this[_0x243002(0x118)]['getCollabEntity$'](_0x2542be['getUnitId']()):d['of'](null);}),d['switchMap'](_0x10c3f6=>_0x10c3f6?_0x10c3f6[_0xc2bc07(0x141)]:d['of'](u[_0xc2bc07(0x11e)][_0xc2bc07(0xba)])))[_0xc2bc07(0x2fe)](_0x5c898c=>{const _0x2b3add=_0xc2bc07;this[_0x2b3add(0x179)]['next'](_0x5c898c);}));}[_0x48e5bc(0x86)](){const _0x3b74a1=_0x48e5bc;this['disposeWithMe'](this['_uiPartsService'][_0x3b74a1(0x298)](T[_0x3b74a1(0xbc)][_0x3b74a1(0x279)],()=>T['connectInjector'](At({'status$':this[_0x3b74a1(0x179)][_0x3b74a1(0x2b9)]()}),this[_0x3b74a1(0x126)])));}},exports[_0x48e5bc(0x1c6)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x48e5bc(0x28c)](a['Injector'])),V(0x2,a[_0x48e5bc(0x28c)](u[_0x48e5bc(0x2fd)])),V(0x3,T['IUIPartsService'])],exports[_0x48e5bc(0x1c6)]);function At(_0x5e1a82){const {status$:_0x5d9b0b}=_0x5e1a82;return function(){return P['jsx'](xe,{'status$':_0x5d9b0b});};}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x46c6bd,_0x1af446,_0x7999c5,_0xadc5cc)=>{for(var _0x33684e=_0xadc5cc>0x1?void 0x0:_0xadc5cc?wt(_0x1af446,_0x7999c5):_0x1af446,_0x241bc3=_0x46c6bd['length']-0x1,_0x3a4be6;_0x241bc3>=0x0;_0x241bc3--)(_0x3a4be6=_0x46c6bd[_0x241bc3])&&(_0x33684e=_0x3a4be6(_0x33684e)||_0x33684e);return _0x33684e;},y=(_0x496c55,_0x5a43d3)=>(_0x50f35b,_0x17a48c)=>_0x5a43d3(_0x50f35b,_0x17a48c,_0x496c55);let q=class extends a['Disposable']{constructor(_0x4da281,_0x1c067a,_0x3c8a27,_0x58f1db,_0x30bc75,_0x1f675c){const _0x5bb333=_0x48e5bc;super(),this[_0x5bb333(0x246)]=_0x4da281,this[_0x5bb333(0x2ef)]=_0x1c067a,this[_0x5bb333(0x187)]=_0x3c8a27,this[_0x5bb333(0x208)]=_0x58f1db,this['_notificationService']=_0x30bc75,this[_0x5bb333(0x256)]=_0x1f675c,this[_0x5bb333(0x2c3)](),this[_0x5bb333(0xf3)]();}[_0x48e5bc(0x2c3)](){const _0x579df8=_0x48e5bc;this[_0x579df8(0x173)](this[_0x579df8(0x246)]['registerBeforeClose'](()=>{const _0x3fa611=_0x579df8;if(this['_localCacheService'][_0x3fa611(0xfd)][_0x3fa611(0x267)])return this[_0x3fa611(0x256)]['t'](_0x3fa611(0x265));}));}[_0x48e5bc(0xf3)](){const _0x503685=_0x48e5bc;this[_0x503685(0x173)](this[_0x503685(0x187)][_0x503685(0xd2)][_0x503685(0x2fe)](_0x10a9ea=>{const _0xc8c578=_0x503685;_0x10a9ea['id']===u[_0xc8c578(0x18e)]['OTHER_CLIENT_EDITING']&&this[_0xc8c578(0x208)][_0xc8c578(0x15c)]({'type':D[_0xc8c578(0x2c7)][_0xc8c578(0x1f7)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x10a9ea['id']===u[_0xc8c578(0x18e)][_0xc8c578(0x21d)]&&this[_0xc8c578(0x208)][_0xc8c578(0x15c)]({'type':D[_0xc8c578(0x2c7)]['Warning'],'content':this[_0xc8c578(0x256)]['t'](_0xc8c578(0xb2))}),_0x10a9ea['id']===u[_0xc8c578(0x18e)][_0xc8c578(0x226)]&&this['_notificationService'][_0xc8c578(0x15c)]({'title':this[_0xc8c578(0x256)]['t'](_0xc8c578(0x10b)),'content':this[_0xc8c578(0x256)]['t'](_0xc8c578(0x7f)),'type':_0xc8c578(0x272),'duration':0x0}),_0x10a9ea['id']===u[_0xc8c578(0x18e)][_0xc8c578(0x97)]&&this[_0xc8c578(0x208)][_0xc8c578(0x15c)]({'type':D[_0xc8c578(0x2c7)][_0xc8c578(0xcd)],'content':this['_localeService']['t'](_0xc8c578(0xb2))+'('+_0x10a9ea[_0xc8c578(0x10f)]+')'}),_0x10a9ea['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0xc8c578(0x208)]['show']({'type':D[_0xc8c578(0x2c7)][_0xc8c578(0x1f7)],'content':this['_localeService']['t'](_0x10a9ea['data']||'')}),_0x10a9ea['id']===u[_0xc8c578(0x18e)][_0xc8c578(0xa8)]&&this[_0xc8c578(0x208)][_0xc8c578(0x15c)]({'type':D[_0xc8c578(0x2c7)][_0xc8c578(0x1f7)],'content':this['_localeService']['t'](_0xc8c578(0x172))}),_0x10a9ea['id']===u['CollaborationUIEventId'][_0xc8c578(0x164)]&&this[_0xc8c578(0x208)][_0xc8c578(0x15c)]({'type':D[_0xc8c578(0x2c7)]['Error'],'content':this['_localeService']['t'](_0xc8c578(0x2b1))}),_0x10a9ea['id']===u[_0xc8c578(0x18e)][_0xc8c578(0x207)]&&this[_0xc8c578(0x208)]['show']({'type':D[_0xc8c578(0x2c7)][_0xc8c578(0xcd)],'content':this[_0xc8c578(0x256)]['t'](_0xc8c578(0x268))});}));}};function _0x2824(){const _0x283e60=['SNAPSHOT_INVALID_SNAPSHOT','_drawTextRange','body','UniverCollaborationClientPlugin','fillStyle','invokeId','_eventUnsubscribe','NodePositionConvertToRectRange','_docStateChangeManagerService','DeleteRangeMoveUpCommandId','override','defs','_anchorDot','_assignedColors','deepClone','_anchor','runId','getSheetId','_unitOnClients','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','round','EMAIL_HAS_BEEN_BOUND','_removeClearOtherTimer','post','98zerMGd','2989266oEriRd','_shapes','APPLY_REJECT','InsertColCommandId','univer-flex\x20univer-mr-2\x20univer-text-xl','isArray','startsWith','_scene','_collabCursorController','engine','name','call','LICENSE_EXPORT_SIZE_EXCEEDED','createElement','_cachedData','_transformUndoRedoStack','subunit','attrs','DesktopCollaborationStatusDisplayController','InsertRangeMoveRightCommandId','_init','parse','getCoordByCell','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','purple.300','textRanges','1130412LvHjhj','handleIRemoveRow','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','transformRemoteChangeset','TEXT','black','_logService','result','getAncestorScale','_saveTaskMap','@univerjs/sheets-ui','path','entityInit$','APPLY_DUPLICATED','idSuffix','YUUMI_ALL_TABLES_IS_INVALID','LOCAL_CACHE_INTERVAL','registerRenderModule','getCurrentUnitForType','LICENSE_DISTRO_REJECTED','OTHER_CLIENTS_EDITING','registerRefRange','addObjects','setActiveRange','ENSURE_SNAPSHOT_EXECUTION','UnitStatus','INVITE_CODE_HAS_BEEN_UES','focused$','unitId','_dataLoaderService','useDependency','IConfigService','type','_ensureSubject','lineTo','onPointerEnter$','DOC_RANGE_TYPE','UNIVER_SHEET','_colorAssignService','endRow','NOT_FOUND','Warning','getSheetBySheetId','entries','mergeOverrideWithDependencies','UNAUTHENTICATED','_color','subUnitId','univer-flex\x20univer-items-center','SheetSkeletonManagerService','skeleton','_transformService','min','AWAITING_WITH_PENDING','InsertRangeMoveDownCommandId','@univerjs/network','registerDependencies','SUBMIT_CHANGESET_TIMEOUT','_messageService','selections','unsubscribe','_getScale','get','clsx','string','jiqing.500','IBeforeCloseService','closePath','YUUMI_SUBSCRIPTION_NOT_FOUND','handleInsertRangeMoveRight','apply','MoveRangeCommandId','fromEvent','HTTPService','RECT','SetSelectionsOperation','use','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','fill','CLOSE_ROOM','NodePositionConvertToCursor','_localStorageService','toString','@univerjs-pro/collaboration-client','#fff','LocaleService','combineLatest','_initResize','PERMISSION_DENIED','getUniverSheetInstance','defineProperty','popstate','_session','concat','FETCH_MISS','setConfig','replace','@univerjs/sheets','loadUnit','DocCollaborationEntity','push','dispose','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_disabled','doc.mutation.rich-text-editing','3950152aebfnS','on-line-single_clip0_910_349','IDocClipboardService','UniverCollaborationClientUIPlugin','onPointerMove$','setAlpha','3810639HKGBMW','substring','COLORS','subscribeEvent','map','_range','_docTransformIMECacheService','collabStatus.conflict','TOO_MANY_REQUESTS','_beforeCloseService','clipPath','_configService','isEditing','_urlService','text','debug','EffectRefRangId','none','_hovered','delete','backgroundColor','MemberService','setShapeProps','some','activeSheet$','_localeService','[CollaborationDataLoaderController]','_imageIoService','CollaborationDataLoaderController','_hover','_selfUnitIDs','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','throttleTime','_toggleOffline','ISocketService','font','propertyIsEnumerable','getSheetObject','/run/','_online','collaboration-client.offline-data-not-saved','collabStatus.notCollab','size','session.collaboration-timeout','values','getMemberID','syncEditingCollabCursor','COMPLETION_FINISHED','toDisposable','params','AWAITING','setInterval','@univerjs/rpc','error','DocStateChangeManagerService','_updateCollabCursors','getOwnPropertyDescriptor','RevisionService','m2Prime','replaceState','HEADER_MENU','PY_RUNTIME_SCRIPT_ERROR','getColorFromTheme','_startSheetCollabCursor','_refreshCollabCursors','url(#off-line-single_clip0_910_343)','_createSocketURL','getUnitId','...','YUUMI_URL_COL_OUT_OF_RANGE','INVALID_ARGUMENT','OnLineSingle','_id','collabStatus.synced','xlink:href','generateRandomId','Plugin','set','resize','Inject','location','USERS_LEAVE','getMember','_clearOtherTimers','getCollabCursors$','SHEET_VIEWPORT_KEY','getTypeOfUnitDisposed$','Rect','rxjs','DocIMEInputManagerService','urlChange$','registerComponent','forEach','loadOfflineData','pipe','off-line-single','CollaborationSessionService','getOwnPropertySymbols','createInstance','onCommandExecuted','CollaborationUIEventService','_removeCollabCursors','getFocusedUnit','defIds','reconnect','WebURLService','collab-text-anchor-','IURLService','measureText','init','imageSourceType','collab-client.tooltip.reconnect','UPDATE_CURSOR','then','getValue','transformByState','session.connection-failed','SNAPSHOT_HAS_BEEN_REMOVED','mutations','_renderManagerService','runRefRangeMutations','currentTheme$','15FKsfIE','transformIMECache','asObservable','row','getSkeleton','0\x200\x2016\x2016','@univerjs/ui','RemoteUniscriptService','deserializeRangeWithSheet','univerjs-icon\x20univerjs-icon-','TEXT_RANGE_LAYER_INDEX','getConfig','_setupBeforeClosingHandler','INVITE_CODE_REQUIRED','length','_getAnchorBounding','MessageType','assign','Unknown\x20user','isActive','green.600','Workbook','_send','Tools','getUnitStatus$','Optional','colorChannel1','APPLY_PERMISSION_DENIED','hide','UNDEFINED','transform','cursorInfo$','99FDPYiq','1nyByKi','_registerDependencies','url(#$1','_docSyncEditingCollabCursorService','indexOf','getTypeOfUnitAdded$','m1Prime','_initStatusListener','toStringTag','filter','OFFLINE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_unitStatus','unitID','url(#on-line-single_clip0_910_349)','flatMap','_cursor','DisposableCollection','ILocalCacheService','hovered','forwardRef','ranges','extend','_localCacheService','ColorKit','_roomMembers$','sessionStatus$','_initEntityListener','YUUMI_UNABLE_LOAD_URL','requireSession','searchParams','_transformHistoryAndStateStack','_updateLocalCursor','shareReplay','getActiveRange','split','onRendered','CollaborationController','subscribe','_draw','max','getUndoRedoMutationParamsCache','function','getRangePointData','permission.content','UniverInstanceType','find','_docSkeletonManagerService','height','SetWorksheetActivateCommand','createIdentifier','_initStatusComponent','enableLocalCache','_cursorInfo$','prototype','roomMembers$','moveTo','sessionTicket','WebSocketService','ticket','findNodePositionByCharIndex','@univerjs/design','current','getActiveSheet','WECHAT_HAS_BEEN_BOUND','_entities','ACTIVE_UNIT_EVENT_CHANNEL','_updateSubUnitFromURLParams','CONFLICT','handleInsertCol','unit','_getSaveTimeout','_drawRectRange','trim','RxDisposable','M0\x200H16V16H0z','IUniverInstanceService','restore','YUUMI_AI_RUN_FAILED','YUUMI_NO_CUBOID_FOR_QUESTION','eventID','onPointerLeave$','_cursors','symbol','UNRECOGNIZED','SOCKET_FAILED_RETRY','ISnapshotServerService','34016IIFjJm','exhaustSavingTask','Disposable','CollaborationSocketService','sheetId','debounce','assignAColorForMemberID','MOBILE_HAS_BEEN_BOUND','collaboration.closeRoom','_toggleOnline','WebBrowserSingleActiveUnitService','_registerRenderDependencies','children','@univerjs/engine-render','code','width','NOT_COLLAB','next','BuiltInUIPart','_lastPointer','@univerjs/engine-formula','drawWith','_scheduleSaving','color','_entityInit$','executeCommand','getItem','DataLoaderService','history','_context','off-line-single_clip0_910_343','_colorIndex','saveImage','onTransformChange$','dispose$','Error','collab-text-range-','_httpService','stringify','clearInterval','event$','with','setParam','ThemeService','_onRefRangeChange','collabStatus.syncing','serializeRangeWithSheet','onMouseMove','LOGIN_FAILED','_textBubble','getDocRanges','takeUntil','isTransformMutationsWithChangesetSuccess','_collabCursorState$','_onCursorDelete','_docSkeleton','@univerjs/docs-ui','removeParam','DEFAULT_WS_SESSION_TICKET_URL','_document','column','transformSelections','div','hasOwnProperty','undoState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','DocSelectionManagerService','ILogService','sheetID','_handleHeartbeatEvent','collabStatus.fetchMiss','CollaborationEvent','6290307wAkbjo','_initEvent','_startDocCollabCursor','currentColor','RegularPolygon','_heartbeatTimer','translate(.97)','uni.network.url-service','MUTATION','FromArray','SheetCollabCursorShape','saveTaskMap','mapTo','rxjs/operators','_collabSessionService','getParam','Injector','useObservable','_updateURLWithCurrentState','_initDependencies','runOnServer','_cursorShapes','selection','_univerInstanceService','_labelPosition','permission.title','_refRangeService','collabCursorState$','yellow.400','data','ICommandService','evenodd','handleIRemoveCol','unload','getLocalCacheKey','getRenderById','merge','IRenderManagerService','_collaborationController','transformStateCache','_memberService','_onCursorUpdate','fillText','_handleJoinEvent','CollaborationStatus','range','getCellPositionByOffset','getStateCache','_setupSubUnitSync','CollaborationStatusDisplay','pushState','red.300','_injector','whenReady','LOCAL_CACHE_INTERVAL_KEY','ITransformService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','tag','_name','RemoveRowCommandId','APPLY_NON_SEQUENTIAL_REVISION','search','_themeService','USER_NOT_INVITED_CODE','newValue','884050YrFnJj','setTimeout','Shape','_getSessionTicket','LICENSE_MAX_UNITS_EXCEEDED','cursorInfo','Rectangle','getColor','INTERNAL_ERROR','clearTimeout','displayName','_syncEditingCollabCursorService','top','currentSkeleton$','status$','_render','UNIVER_DOC','YUUMI_ASYNCIO_CANCELLED','NO_OTHER_CLIENTS_EDITING','getRelativeToViewportCoord','unshift','rgba(255,\x20255,\x20255,\x200.01)','updateOfflineData','InsertRowCommandId','debounceTime','SetDocZoomRatioOperation','complete','mask','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_saveCache','add','setUndoRedoMutationParamsCache','CHANGESET_REVISION_CONFILICT','triggerDblclick','_docTransformStateCacheService','jsx','handleInsertRangeMoveDown','TRANSFORM_CHANGE_OBSERVABLE_TYPE','addObject','_handleHover','Vector2','show','RefRangeService','from','_hideTimer','_sheetSkeletonManagerService','YUUMI_RATE_OVER_LIMIT','getVpScrollXYInfoByPosToVp','_docTransformSelectionsService','SOCKET_FAILED','pluginName','_handleEvent','#FFF','_transformPreviousActiveRange','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','_backgroundColor','toRgbString','ALREADY_EXISTS','BehaviorSubject','UniverIcon','PENDING','addHandlerCallback','_getMergeRange','session.will-retry','disposeWithMe','_commandService','BrowserCollaborationSocketService','_instanceService','_scheduleClearOtherTimer','collabStatus.offline','_status$','react/jsx-runtime','save','_docClipboardService','LICENSE_IMPORT_SIZE_EXCEEDED','ONLINE','isTransformMutationFailure','arc','send','APPLY_REVISION_CONFILICT','_config','key','Failed','jsxs','_collaborationUIEventService','href','_getSheetObject','_scheduleHeartbeat','SessionStatus','1em','Tooltip','CollaborationUIEventId','0\x200\x2017\x2016','_doCreateSocket','setItem','DependentOn','INVALID_INVITE_CODE','_initCommandExecutedListener','transformMutation','RichTextEditingMutation','has','disposeUnit','_handleLeaveEvent','icon'];_0x2824=function(){return _0x283e60;};return _0x2824();}q=yt([y(0x0,T[_0x48e5bc(0x210)]),y(0x1,u[_0x48e5bc(0x2ea)]),y(0x2,a['Inject'](u[_0x48e5bc(0x2a1)])),y(0x3,T['IMessageService']),y(0x4,T['INotificationService']),y(0x5,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x223)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x48e5bc(0x85)](_0x48e5bc(0xf9));var xt=Object[_0x48e5bc(0x275)],jt=(_0x2c3c3f,_0x36b22d,_0x18a75c,_0x50c2f0)=>{const _0x33e8a5=_0x48e5bc;for(var _0x16081f=_0x50c2f0>0x1?void 0x0:_0x50c2f0?xt(_0x36b22d,_0x18a75c):_0x36b22d,_0x55480e=_0x2c3c3f[_0x33e8a5(0x2c5)]-0x1,_0x930ef1;_0x55480e>=0x0;_0x55480e--)(_0x930ef1=_0x2c3c3f[_0x55480e])&&(_0x16081f=_0x930ef1(_0x16081f)||_0x16081f);return _0x16081f;},H=(_0x3cb7f8,_0xab1288)=>(_0x4214fb,_0x55ddf0)=>_0xab1288(_0x4214fb,_0x55ddf0,_0x3cb7f8);exports[_0x48e5bc(0x259)]=class extends a[_0x48e5bc(0x9d)]{constructor(_0x55e712,_0x5e602a,_0x275714,_0x2dbb0b,_0x237678){const _0x31cdd4=_0x48e5bc;super(),this[_0x31cdd4(0x24a)]=_0x55e712,this[_0x31cdd4(0x1d4)]=_0x5e602a,this[_0x31cdd4(0x174)]=_0x275714,this['_dataLoaderService']=_0x2dbb0b,_0x237678?_0x237678==null||_0x237678[_0x31cdd4(0x127)]()['then'](()=>this[_0x31cdd4(0x1c8)]()):(this[_0x31cdd4(0x1d4)][_0x31cdd4(0x24c)](_0x31cdd4(0x257),_0x31cdd4(0x234)),this[_0x31cdd4(0x1c8)]());}async[_0x48e5bc(0x1c8)](){const _0x259058=_0x48e5bc,_0x1f7fb3=this[_0x259058(0x24a)][_0x259058(0x101)](_0x259058(0x99)),_0x3f6216=this['_urlService']['getParam'](_0x259058(0x1ee)),_0x135a38=this[_0x259058(0x24a)][_0x259058(0x101)]('subunit');if(!_0x1f7fb3||!_0x3f6216){this[_0x259058(0x1d4)][_0x259058(0x24c)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x45230f=await this[_0x259058(0x1eb)][_0x259058(0x230)](_0x1f7fb3,Number(_0x3f6216),_0x135a38);_0x45230f&&_0x45230f instanceof a[_0x259058(0x2cc)]&&this['_setupSubUnitSync'](_0x45230f);}async[_0x48e5bc(0x122)](_0x472e18){const _0x5eb7a2=_0x48e5bc;await this[_0x5eb7a2(0x96)](_0x472e18),_0x472e18[_0x5eb7a2(0x255)][_0x5eb7a2(0x29b)](d['takeUntil'](this['dispose$']))[_0x5eb7a2(0x2fe)](_0xcf537e=>{_0xcf537e&&this['_updateURLWithCurrentState'](_0xcf537e);}),this['_urlService'][_0x5eb7a2(0x297)][_0x5eb7a2(0x29b)](d[_0x5eb7a2(0xdd)](this[_0x5eb7a2(0xcc)]))[_0x5eb7a2(0x2fe)](()=>this[_0x5eb7a2(0x96)](_0x472e18));}[_0x48e5bc(0x104)](_0x26c317,_0x18ef31=!0x1){const _0x1d42de=_0x48e5bc,_0x29096d=this[_0x1d42de(0x24a)][_0x1d42de(0x101)](_0x1d42de(0x1c4));_0x26c317['getSheetId']()!==_0x29096d&&this[_0x1d42de(0x24a)][_0x1d42de(0xd4)](_0x1d42de(0x1c4),_0x26c317[_0x1d42de(0x1ac)](),_0x18ef31);}async[_0x48e5bc(0x96)](_0x175ffd){const _0x3f4005=_0x48e5bc;var _0x15f9e0;const _0x266f5d=this[_0x3f4005(0x24a)][_0x3f4005(0x101)](_0x3f4005(0x1c4));if(!_0x266f5d||!_0x175ffd['getSheetBySheetId'](_0x266f5d)){const _0x36fedb=_0x175ffd['getUnhiddenWorksheets']()[0x0],_0x419239=_0x175ffd[_0x3f4005(0x1f8)](_0x36fedb);if(!_0x419239)return;this[_0x3f4005(0x104)](_0x419239,!0x0),await this[_0x3f4005(0x174)][_0x3f4005(0xc3)](g[_0x3f4005(0x84)]['id'],{'unitId':_0x175ffd[_0x3f4005(0x280)](),'subUnitId':_0x36fedb});return;}((_0x15f9e0=_0x175ffd[_0x3f4005(0x92)]())==null?void 0x0:_0x15f9e0['getSheetId']())!==_0x266f5d&&await this['_commandService'][_0x3f4005(0xc3)](g[_0x3f4005(0x84)]['id'],{'unitId':_0x175ffd[_0x3f4005(0x280)](),'subUnitId':_0x266f5d});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x48e5bc(0xed)]),H(0x2,a[_0x48e5bc(0x110)]),H(0x3,a[_0x48e5bc(0x28c)](u[_0x48e5bc(0xc5)])),H(0x4,a[_0x48e5bc(0x2d0)](Ke['IRemoteInstanceService']))],exports[_0x48e5bc(0x259)]);var Bt=Object[_0x48e5bc(0x275)],kt=(_0x49f80e,_0x46c9e1,_0x144d3b,_0x551be9)=>{for(var _0x21df55=_0x551be9>0x1?void 0x0:_0x551be9?Bt(_0x46c9e1,_0x144d3b):_0x46c9e1,_0x7f460d=_0x49f80e['length']-0x1,_0x545904;_0x7f460d>=0x0;_0x7f460d--)(_0x545904=_0x49f80e[_0x7f460d])&&(_0x21df55=_0x545904(_0x21df55)||_0x21df55);return _0x21df55;},ce=(_0x58958b,_0x4e5775)=>(_0x1c73d1,_0x5ea788)=>_0x4e5775(_0x1c73d1,_0x5ea788,_0x58958b);let z=class{constructor(_0x47d379,_0x561d0a,_0x32f2a0){const _0x297270=_0x48e5bc;this[_0x297270(0x126)]=_0x47d379,this[_0x297270(0x201)]=_0x561d0a,this[_0x297270(0x2b4)]=_0x32f2a0;}[_0x48e5bc(0x2b8)](_0x36d8c1){const _0x55d30e=_0x48e5bc;this['_transformUndoRedoStack'](_0x36d8c1),this[_0x55d30e(0x168)](_0x36d8c1);}[_0x48e5bc(0x1d1)](_0x2c2390){const _0xdc243c=_0x48e5bc,{unitID:_0x4616b3}=_0x2c2390,_0x2b937c=this[_0xdc243c(0x2b4)]['getRenderById'](_0x4616b3)[_0xdc243c(0xd3)](b[_0xdc243c(0x296)]),{redoCache:_0x2d9a07}=_0x2b937c[_0xdc243c(0x301)]();if(_0x2d9a07[_0xdc243c(0x2c5)]===0x0)return _0x2c2390;let _0x3a7368=a[_0xdc243c(0x2ce)][_0xdc243c(0x1a9)](_0x2c2390[_0xdc243c(0x2b3)][0x0]);for(let _0x34847a=0x0;_0x34847a<_0x2d9a07[_0xdc243c(0x2c5)];_0x34847a++){const _0xa34a84={'id':_0xdc243c(0x236),'params':{..._0x2d9a07[_0x34847a]}},_0x6f34c2=this['_transformService'][_0xdc243c(0x195)](_0x3a7368,_0xa34a84,!0x1);if(m[_0xdc243c(0x17f)](_0x6f34c2))throw _0x6f34c2['error'];_0x3a7368=_0x6f34c2[_0xdc243c(0x2de)];}return{...a[_0xdc243c(0x2ce)][_0xdc243c(0x1a9)](_0x2c2390),'mutations':[_0x3a7368]};}[_0x48e5bc(0x1c3)](_0x1824b6){const _0x48e3eb=_0x48e5bc,{unitID:_0x13993b}=_0x1824b6,_0x4c2d43=this[_0x48e3eb(0x2b4)][_0x48e3eb(0x115)](_0x13993b)[_0x48e3eb(0xd3)](b[_0x48e3eb(0x296)]),{undoCache:_0x5ee7b4,redoCache:_0x577696}=_0x4c2d43[_0x48e3eb(0x301)]();if(_0x5ee7b4[_0x48e3eb(0x2c5)]===0x0||_0x577696['length']===0x0)return;const _0x4cf00f=[],_0x1c494a=[];let _0xe63b8e=a[_0x48e3eb(0x2ce)][_0x48e3eb(0x1a9)](_0x1824b6['mutations'][0x0]),_0x3406b4=a[_0x48e3eb(0x2ce)]['deepClone'](_0x1824b6[_0x48e3eb(0x2b3)][0x0]);for(let _0x16254a=_0x5ee7b4['length']-0x1;_0x16254a>=0x0;_0x16254a--){const _0x2ea0ff={'id':_0x48e3eb(0x236),'params':{..._0x5ee7b4[_0x16254a]}},_0x516011={'id':_0x48e3eb(0x236),'params':{..._0x577696[_0x16254a]}},_0x36dabe=this['_transformService'][_0x48e3eb(0x195)](_0xe63b8e,_0x2ea0ff,!0x1),_0x5686d6=this[_0x48e3eb(0x201)][_0x48e3eb(0x195)](_0x3406b4,_0x516011,!0x1);if(m[_0x48e3eb(0x17f)](_0x36dabe))throw _0x36dabe[_0x48e3eb(0x272)];if(m[_0x48e3eb(0x17f)](_0x5686d6))throw _0x5686d6[_0x48e3eb(0x272)];_0x4cf00f[_0x48e3eb(0x147)](_0x36dabe[_0x48e3eb(0x277)]['params']),_0x1c494a[_0x48e3eb(0x147)](_0x5686d6['m2Prime'][_0x48e3eb(0x26e)]),_0xe63b8e=_0x36dabe[_0x48e3eb(0x2de)],_0x3406b4=_0x5686d6[_0x48e3eb(0x2de)];}_0x4c2d43[_0x48e3eb(0x152)]({'undoCache':_0x4cf00f,'redoCache':_0x1c494a});}[_0x48e5bc(0x168)](_0x17b876){const _0x49ff0f=_0x48e5bc,{unitID:_0x2b90a8}=_0x17b876,_0x3d9726=this['_renderManagerService']['getRenderById'](_0x2b90a8)[_0x49ff0f(0xd3)](b[_0x49ff0f(0x296)]),_0x1ab483=_0x3d9726[_0x49ff0f(0x2fa)]();if(_0x1ab483==null)return;const _0x719554=[{'id':_0x49ff0f(0x236),'params':{'unitId':_0x17b876['unitID'],'actions':null,'textRanges':[_0x1ab483]}}],_0x227243=this['_transformService']['transformMutationsWithChangeset'](_0x17b876,_0x719554);if(!m[_0x49ff0f(0xde)](_0x227243))throw _0x227243['error'];const _0x231c68=_0x227243['m2Prime'][0x0][_0x49ff0f(0x26e)]['textRanges'];Array[_0x49ff0f(0x1b9)](_0x231c68)&&_0x231c68['length']&&_0x3d9726[_0x49ff0f(0x1e5)](_0x231c68[0x0]);}};z=kt([ce(0x0,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x102)])),ce(0x1,m[_0x48e5bc(0x129)]),ce(0x2,p[_0x48e5bc(0x117)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0xad09df,_0x8e87c5,_0x1535e4,_0x326c6b)=>{for(var _0x19b567=_0x326c6b>0x1?void 0x0:_0x326c6b?Ht(_0x8e87c5,_0x1535e4):_0x8e87c5,_0x1f1f28=_0xad09df['length']-0x1,_0x24d854;_0x1f1f28>=0x0;_0x1f1f28--)(_0x24d854=_0xad09df[_0x1f1f28])&&(_0x19b567=_0x24d854(_0x19b567)||_0x19b567);return _0x19b567;},le=(_0x16b1a1,_0x5b9ff8)=>(_0x24fec4,_0x4a4446)=>_0x5b9ff8(_0x24fec4,_0x4a4446,_0x16b1a1);let J=class{constructor(_0x4e1ff1,_0x4009cf,_0x31d66d){const _0xfa81cf=_0x48e5bc;this[_0xfa81cf(0x126)]=_0x4e1ff1,this['_transformService']=_0x4009cf,this[_0xfa81cf(0x1a3)]=_0x31d66d;}[_0x48e5bc(0x119)](_0x4dc118){const _0x4c4538=_0x48e5bc;this[_0x4c4538(0x2f7)](_0x4dc118);}[_0x48e5bc(0x1d1)](_0x4ec304){const _0x6aae36=_0x48e5bc,{unitID:_0x4af69b}=_0x4ec304,{collaboration:_0x2c5ea9}=this[_0x6aae36(0x1a3)][_0x6aae36(0x121)](_0x4af69b);if(_0x2c5ea9[_0x6aae36(0x2c5)]===0x0)return _0x4ec304;let _0x10c922=a['Tools'][_0x6aae36(0x1a9)](_0x4ec304[_0x6aae36(0x2b3)][0x0]);for(let _0x420b79=0x0;_0x420b79<_0x2c5ea9[_0x6aae36(0x2c5)];_0x420b79++){const _0x288e32={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2c5ea9[_0x420b79]['unitId'],..._0x2c5ea9[_0x420b79]['redoState']}},_0xceef18=this[_0x6aae36(0x201)][_0x6aae36(0x195)](_0x10c922,_0x288e32,!0x1);if(m[_0x6aae36(0x17f)](_0xceef18))throw _0xceef18['error'];_0x10c922=_0xceef18['m1Prime'];}return{...a[_0x6aae36(0x2ce)][_0x6aae36(0x1a9)](_0x4ec304),'mutations':[_0x10c922]};}[_0x48e5bc(0x2f7)](_0x2c8a2b){const _0x5ea615=_0x48e5bc,{unitID:_0x563b1e}=_0x2c8a2b,{history:_0x2b0591,collaboration:_0x2b0f11}=this[_0x5ea615(0x1a3)][_0x5ea615(0x121)](_0x563b1e);if(_0x2b0591['length']===0x0&&_0x2b0f11[_0x5ea615(0x2c5)]===0x0)return;const _0x1b10af=[],_0x219969=[];let _0x1e69a0=a['Tools'][_0x5ea615(0x1a9)](_0x2c8a2b[_0x5ea615(0x2b3)][0x0]),_0x5ac24a=a['Tools'][_0x5ea615(0x1a9)](_0x2c8a2b['mutations'][0x0]);for(let _0x453c2c=_0x2b0591[_0x5ea615(0x2c5)]-0x1;_0x453c2c>=0x0;_0x453c2c--){const _0x2b8c9a={'id':_0x5ea615(0x236),'params':{'unitId':_0x2b0591[_0x453c2c][_0x5ea615(0x1ea)],..._0x2b0591[_0x453c2c][_0x5ea615(0xea)]}},_0x56bd95={'id':_0x5ea615(0x236),'params':{'unitId':_0x2b0591[_0x453c2c][_0x5ea615(0x1ea)],..._0x2b0591[_0x453c2c]['redoState']}},_0x4bb0ce=this[_0x5ea615(0x201)][_0x5ea615(0x195)](_0x1e69a0,_0x2b8c9a,!0x1),_0x68f1a0=this['_transformService'][_0x5ea615(0x195)](_0x5ac24a,_0x56bd95,!0x1);if(m[_0x5ea615(0x17f)](_0x4bb0ce))throw _0x4bb0ce[_0x5ea615(0x272)];if(m[_0x5ea615(0x17f)](_0x68f1a0))throw _0x68f1a0[_0x5ea615(0x272)];_0x1b10af[_0x5ea615(0x147)]({..._0x2b0591[_0x453c2c],'undoState':_0x4bb0ce[_0x5ea615(0x277)][_0x5ea615(0x26e)],'redoState':_0x68f1a0[_0x5ea615(0x277)][_0x5ea615(0x26e)]}),_0x1e69a0=_0x4bb0ce[_0x5ea615(0x2de)],_0x5ac24a=_0x68f1a0[_0x5ea615(0x2de)];}_0x1e69a0=a[_0x5ea615(0x2ce)][_0x5ea615(0x1a9)](_0x2c8a2b[_0x5ea615(0x2b3)][0x0]),_0x5ac24a=a['Tools'][_0x5ea615(0x1a9)](_0x2c8a2b['mutations'][0x0]);for(let _0x2ed73a=_0x2b0f11[_0x5ea615(0x2c5)]-0x1;_0x2ed73a>=0x0;_0x2ed73a--){const _0x2b9e0a={'id':_0x5ea615(0x236),'params':{'unitId':_0x2b0f11[_0x2ed73a]['unitId'],..._0x2b0f11[_0x2ed73a][_0x5ea615(0xea)]}},_0x394365={'id':_0x5ea615(0x236),'params':{'unitId':_0x2b0f11[_0x2ed73a][_0x5ea615(0x1ea)],..._0x2b0f11[_0x2ed73a]['redoState']}},_0x4c318d=this[_0x5ea615(0x201)]['transformMutation'](_0x1e69a0,_0x2b9e0a,!0x1),_0x503152=this[_0x5ea615(0x201)]['transformMutation'](_0x5ac24a,_0x394365,!0x1);if(m[_0x5ea615(0x17f)](_0x4c318d))throw _0x4c318d['error'];if(m[_0x5ea615(0x17f)](_0x503152))throw _0x503152['error'];_0x219969[_0x5ea615(0x147)]({..._0x2b0f11[_0x2ed73a],'undoState':_0x4c318d[_0x5ea615(0x277)][_0x5ea615(0x26e)],'redoState':_0x503152[_0x5ea615(0x277)]['params']}),_0x1e69a0=_0x4c318d[_0x5ea615(0x2de)],_0x5ac24a=_0x503152[_0x5ea615(0x2de)];}this['_docStateChangeManagerService']['setStateCache'](_0x563b1e,{'history':_0x1b10af,'collaboration':_0x219969});}};J=Ft([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x48e5bc(0x129)]),le(0x2,a[_0x48e5bc(0x28c)](b[_0x48e5bc(0x273)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0xc6f4f2,_0x827186,_0xb2657e,_0x9debd0)=>{const _0x31f601=_0x48e5bc;for(var _0x59e84e=_0x9debd0>0x1?void 0x0:_0x9debd0?Yt(_0x827186,_0xb2657e):_0x827186,_0x58b9de=_0xc6f4f2[_0x31f601(0x2c5)]-0x1,_0x12132f;_0x58b9de>=0x0;_0x58b9de--)(_0x12132f=_0xc6f4f2[_0x58b9de])&&(_0x59e84e=_0x12132f(_0x59e84e)||_0x59e84e);return _0x59e84e;},Ne=(_0x32dea2,_0x103980)=>(_0x1c59a5,_0x5631d1)=>_0x103980(_0x1c59a5,_0x5631d1,_0x32dea2);let Z=class{constructor(_0x7b7d30,_0x3ea59c){const _0x29e4cb=_0x48e5bc;this[_0x29e4cb(0x126)]=_0x7b7d30,this['_transformService']=_0x3ea59c;}[_0x48e5bc(0xe7)](_0x25d13d){const _0x4aed2b=_0x48e5bc;var _0x239e51;const _0x56bd2b=this[_0x4aed2b(0x126)][_0x4aed2b(0x20c)](Y['DocSelectionManagerService']),_0x3a5426=(_0x239e51=_0x56bd2b[_0x4aed2b(0xdc)]())!=null?_0x239e51:[];if(_0x3a5426[_0x4aed2b(0x2c5)]===0x0)return;const _0x3b08bb=_0x25d13d[_0x4aed2b(0x2e5)],_0x210f9e=[{'id':_0x4aed2b(0x236),'params':{'unitId':_0x3b08bb,'actions':null,'textRanges':_0x3a5426}}],_0x3f1e4c=this['_transformService']['transformMutationsWithChangeset'](_0x25d13d,_0x210f9e);if(!m[_0x4aed2b(0xde)](_0x3f1e4c))throw _0x3f1e4c[_0x4aed2b(0x272)];const _0x34f02c=_0x3f1e4c[_0x4aed2b(0x277)][0x0][_0x4aed2b(0x26e)]['textRanges'];Array[_0x4aed2b(0x1b9)](_0x34f02c)&&_0x34f02c[_0x4aed2b(0x2c5)]&&_0x56bd2b['replaceDocRanges'](_0x34f02c,{'unitId':_0x3b08bb,'subUnitId':_0x3b08bb},!0x1);}};Z=Wt([Ne(0x0,a[_0x48e5bc(0x28c)](a['Injector'])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x48e5bc(0x275)],Xt=(_0x4a7408,_0x326f5a,_0x51f675,_0x25a8ca)=>{for(var _0x59fe3d=_0x25a8ca>0x1?void 0x0:_0x25a8ca?Vt(_0x326f5a,_0x51f675):_0x326f5a,_0x3fe1e8=_0x4a7408['length']-0x1,_0x5cb419;_0x3fe1e8>=0x0;_0x3fe1e8--)(_0x5cb419=_0x4a7408[_0x3fe1e8])&&(_0x59fe3d=_0x5cb419(_0x59fe3d)||_0x59fe3d);return _0x59fe3d;},N=(_0x5b06c0,_0x299208)=>(_0x5b4312,_0x7b577f)=>_0x299208(_0x5b4312,_0x7b577f,_0x5b06c0);let Q=class extends a[_0x48e5bc(0xac)]{constructor(_0x57095a,_0x12f51b,_0x2a6ea6,_0x43f68f,_0x525403,_0xc8e780,_0x31ee57,_0x2c18eb){const _0x3cb2b8=_0x48e5bc;super(),h(this,_0x3cb2b8(0x179),new d[(_0x3cb2b8(0x16d))](u['CollaborationStatus'][_0x3cb2b8(0xba)])),(this[_0x3cb2b8(0x1a3)]=_0x57095a,this[_0x3cb2b8(0x118)]=_0x12f51b,this[_0x3cb2b8(0x243)]=_0x2a6ea6,this[_0x3cb2b8(0x155)]=_0x43f68f,this[_0x3cb2b8(0x163)]=_0x525403,this[_0x3cb2b8(0x2db)]=_0xc8e780,this[_0x3cb2b8(0x208)]=_0x31ee57,this[_0x3cb2b8(0x256)]=_0x2c18eb,this[_0x3cb2b8(0x2f3)]());}['_initEntityListener'](){const _0x27ba1d=_0x48e5bc;this[_0x27ba1d(0x173)](this['_collaborationController'][_0x27ba1d(0x1da)][_0x27ba1d(0x2fe)](_0x1dc532=>{const _0x333767=_0x27ba1d,_0x235412=this[_0x333767(0x1a3)]['docStateChange$'][_0x333767(0x2fe)](_0x516214=>{const _0x55ff1c=_0x333767;if(_0x516214==null)return;const {unitId:_0x4a94b0,redoState:_0x2c9c37,commandId:_0x3cab48}=_0x516214;if(_0x4a94b0!==_0x1dc532[_0x55ff1c(0x2e5)])return;const _0x59452f={'id':_0x3cab48,'type':a['CommandType'][_0x55ff1c(0xfa)],'params':{'unitId':_0x4a94b0,'actions':_0x2c9c37['actions'],'textRanges':null}};_0x1dc532['onLocalMutation'](_0x59452f);});if(_0x1dc532[_0x333767(0x173)](_0x235412),_0x1dc532 instanceof u[_0x333767(0x231)]){const _0x235ff2={'onTransformIME':_0x5d2539=>this[_0x333767(0x243)][_0x333767(0x2b8)](_0x5d2539),'onTransformState':_0x3479bf=>this[_0x333767(0x155)][_0x333767(0x119)](_0x3479bf),'onTransformSelections':_0x54ea47=>this['_docTransformSelectionsService']['transformSelections'](_0x54ea47),'onSyncEditingCollabCursor':_0x24df37=>this['_docSyncEditingCollabCursorService'][_0x333767(0x26b)](_0x24df37),'onTransformRemoteChangesetByIMECache':_0x17e8d4=>this[_0x333767(0x243)][_0x333767(0x1d1)](_0x17e8d4),'onTransformRemoteChangesetByStateCache':_0x572ae3=>this[_0x333767(0x155)][_0x333767(0x1d1)](_0x572ae3)};_0x1dc532[_0x333767(0x170)](_0x235ff2);}}));}};Q=Xt([N(0x0,a[_0x48e5bc(0x28c)](b[_0x48e5bc(0x273)])),N(0x1,a['Inject'](u[_0x48e5bc(0x2fd)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x48e5bc(0x28c)](J)),N(0x4,a[_0x48e5bc(0x28c)](Z)),N(0x5,a[_0x48e5bc(0x28c)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x48e5bc(0x28c)](a['LocaleService']))],Q);var Gt=Object[_0x48e5bc(0x275)],Kt=(_0x5de873,_0x2069ca,_0x1103c5,_0x21e7f4)=>{const _0x5a59a3=_0x48e5bc;for(var _0x34890a=_0x21e7f4>0x1?void 0x0:_0x21e7f4?Gt(_0x2069ca,_0x1103c5):_0x2069ca,_0xaebe88=_0x5de873[_0x5a59a3(0x2c5)]-0x1,_0x4e5526;_0xaebe88>=0x0;_0xaebe88--)(_0x4e5526=_0x5de873[_0xaebe88])&&(_0x34890a=_0x4e5526(_0x34890a)||_0x34890a);return _0x34890a;},_e=(_0x44cc6d,_0x3ae63c)=>(_0x2e6b9a,_0x4b83e6)=>_0x3ae63c(_0x2e6b9a,_0x4b83e6,_0x44cc6d);let ge=class extends a[_0x48e5bc(0xac)]{constructor(_0x4533ed,_0x5750ec,_0x59698e){const _0x1b84d4=_0x48e5bc;super(),h(this,_0x1b84d4(0x1c2),new Map()),h(this,_0x1b84d4(0x1d7),new Map()),h(this,_0x1b84d4(0x235),!0x1),(this[_0x1b84d4(0x248)]=_0x4533ed,this[_0x1b84d4(0x21f)]=_0x5750ec,this['_revisionService']=_0x59698e);}['disableLocalCache'](){const _0x222eed=_0x48e5bc;this[_0x222eed(0x235)]=!0x0;}[_0x48e5bc(0x87)](){const _0x1f0fd7=_0x48e5bc;this[_0x1f0fd7(0x235)]=!0x1;}get[_0x48e5bc(0xfd)](){const _0x2e53fe=_0x48e5bc;return this[_0x2e53fe(0x1d7)];}['dispose'](){const _0x40b95e=_0x48e5bc;this[_0x40b95e(0xab)]()[_0x40b95e(0x2ae)](()=>super['dispose']());}async[_0x48e5bc(0x29a)](_0xcd4f9f){const _0x13eae5=_0x48e5bc;return this[_0x13eae5(0x235)]?null:this['_localStorageService'][_0x13eae5(0xc4)](u[_0x13eae5(0x114)](_0xcd4f9f));}async['saveOfflineData'](_0x110e62,_0x410858){return!!this['_localStorageService']['setItem'](_0x110e62,_0x410858);}[_0x48e5bc(0x149)](_0x455f42,_0x1944e2,_0x3e4bd4,_0x477f3f){const _0x4069e0=_0x48e5bc,_0x3ffcca=this['_revisionService']['getCurrentRevOfUnit'](_0x455f42);this[_0x4069e0(0x1c2)][_0x4069e0(0x28a)](_0x455f42,{'unitID':_0x455f42,'type':_0x1944e2,'awaitingChangeset':_0x3e4bd4,'mutations':_0x477f3f,'rev':_0x3ffcca}),this[_0x4069e0(0x1d7)][_0x4069e0(0x197)](_0x455f42)||this[_0x4069e0(0xc0)](_0x455f42);}[_0x48e5bc(0xc0)](_0x58276f){const _0x488503=_0x48e5bc,_0x5112e9=this[_0x488503(0x9a)]();_0x5112e9===0x0?this['_saveCache'](_0x58276f):this[_0x488503(0x1d7)][_0x488503(0x28a)](_0x58276f,setTimeout(()=>this['_saveCache'](_0x58276f),_0x5112e9));}[_0x48e5bc(0x9a)](){const _0x2dd672=_0x48e5bc;var _0x37978d;return(_0x37978d=this['_configService'][_0x2dd672(0x2c2)](u[_0x2dd672(0x128)]))!=null?_0x37978d:u[_0x2dd672(0x1de)];}[_0x48e5bc(0x150)](_0x388bc0){const _0x43ccae=_0x48e5bc,_0x4ec458=this[_0x43ccae(0x1d7)]['get'](_0x388bc0);return _0x4ec458!==void 0x0&&window[_0x43ccae(0x13c)](_0x4ec458),this[_0x43ccae(0x21f)][_0x43ccae(0x191)](u[_0x43ccae(0x114)](_0x388bc0),this['_cachedData'][_0x43ccae(0x20c)](_0x388bc0))[_0x43ccae(0x2ae)](()=>this[_0x43ccae(0x1d7)][_0x43ccae(0x250)](_0x388bc0));}async[_0x48e5bc(0xab)](){const _0x5ab942=_0x48e5bc,_0x27a81f=[];this[_0x5ab942(0x1d7)][_0x5ab942(0x299)]((_0x5a0409,_0x2d1791)=>{const _0x32471d=_0x5ab942;window[_0x32471d(0x13c)](_0x5a0409),_0x27a81f[_0x32471d(0x232)](this[_0x32471d(0x150)](_0x2d1791)['then'](()=>{const _0x176571=_0x32471d;this[_0x176571(0x1d7)][_0x176571(0x250)](_0x2d1791);}));}),await Promise['all'](_0x27a81f);}};ge=Kt([_e(0x0,a[_0x48e5bc(0x1ed)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x48e5bc(0x28c)](m[_0x48e5bc(0x276)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x270ea0=_0x48e5bc;super(),h(this,_0x270ea0(0x297)),this[_0x270ea0(0x297)]=d[_0x270ea0(0x216)](window,_0x270ea0(0x229))[_0x270ea0(0x29b)](d['takeUntil'](this['dispose$']),d[_0x270ea0(0x2f9)](0x1),d[_0x270ea0(0xfe)](void 0x0));}['setParam'](_0x2bf703,_0x50e338,_0x568364=!0x1){const _0x425ef5=_0x48e5bc,_0x27f38e=new URL(window[_0x425ef5(0x28d)]['href']);_0x27f38e[_0x425ef5(0x2f6)][_0x425ef5(0x28a)](_0x2bf703,_0x50e338),_0x568364?window[_0x425ef5(0xc6)][_0x425ef5(0x278)]('','',_0x27f38e['toString']()):window[_0x425ef5(0xc6)][_0x425ef5(0x124)]('','',_0x27f38e[_0x425ef5(0x220)]());}[_0x48e5bc(0xe3)](_0x91dae9,_0x141157=!0x1){const _0x2e46fe=_0x48e5bc,_0x178a46=new URL(window[_0x2e46fe(0x28d)][_0x2e46fe(0x188)]);_0x178a46[_0x2e46fe(0x2f6)]['delete'](_0x91dae9),_0x141157?window[_0x2e46fe(0xc6)][_0x2e46fe(0x278)]('','',_0x178a46[_0x2e46fe(0x220)]()):window[_0x2e46fe(0xc6)][_0x2e46fe(0x124)]('','',_0x178a46[_0x2e46fe(0x220)]());}['getParam'](_0xeb2ccf){const _0x52ae80=_0x48e5bc;var _0x19427f;return(_0x19427f=new URL(window[_0x52ae80(0x28d)][_0x52ae80(0x188)])[_0x52ae80(0x2f6)][_0x52ae80(0x20c)](_0xeb2ccf))!=null?_0x19427f:void 0x0;}}var qt=Object[_0x48e5bc(0x228)],zt=Object[_0x48e5bc(0x275)],Jt=(_0x114e39,_0x2923c5,_0x2d8d18)=>_0x2923c5 in _0x114e39?qt(_0x114e39,_0x2923c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d8d18}):_0x114e39[_0x2923c5]=_0x2d8d18,Zt=(_0x3ec750,_0x599279,_0x3a2000,_0x4d6425)=>{const _0x594e23=_0x48e5bc;for(var _0x148711=_0x4d6425>0x1?void 0x0:_0x4d6425?zt(_0x599279,_0x3a2000):_0x599279,_0x1fe801=_0x3ec750[_0x594e23(0x2c5)]-0x1,_0x1e7e95;_0x1fe801>=0x0;_0x1fe801--)(_0x1e7e95=_0x3ec750[_0x1fe801])&&(_0x148711=_0x1e7e95(_0x148711)||_0x148711);return _0x148711;},he=(_0xa4ae80,_0x44fc07)=>(_0xa5edc,_0x23fa6a)=>_0x44fc07(_0xa5edc,_0x23fa6a,_0xa4ae80),Qt=(_0x3a8977,_0x906031,_0x4cdc1f)=>Jt(_0x3a8977,_0x906031+'',_0x4cdc1f);const es=_0x48e5bc(0x14f);exports[_0x48e5bc(0x23a)]=class extends a[_0x48e5bc(0x289)]{constructor(_0x1afdd8=Ue,_0x4fbabf,_0x19f91d,_0x18693f){const _0x42fcf3=_0x48e5bc;super(),this[_0x42fcf3(0x183)]=_0x1afdd8,this[_0x42fcf3(0x2b4)]=_0x4fbabf,this['_injector']=_0x19f91d,this[_0x42fcf3(0x248)]=_0x18693f;const {..._0x1b202a}=a['merge']({},Ue,this[_0x42fcf3(0x183)]);this[_0x42fcf3(0x248)][_0x42fcf3(0x22d)]($t,_0x1b202a);}['onStarting'](){const _0x68b788=_0x48e5bc;this[_0x68b788(0x2d9)](),this[_0x68b788(0x105)]();}[_0x48e5bc(0x2fc)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x4ab756=_0x48e5bc;var _0x195dfe;const _0x11bd0b=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x4ab756(0x25f)],{'useClass':G[_0x4ab756(0x8d)]}],[u[_0x4ab756(0x2ea)],{'useClass':ge}],[exports[_0x4ab756(0x1c6)]],[Q],[q],[x],[de],[exports[_0x4ab756(0x259)]]];a[_0x4ab756(0x206)](this[_0x4ab756(0x126)],a[_0x4ab756(0x1fa)](_0x11bd0b,(_0x195dfe=this[_0x4ab756(0x183)])==null?void 0x0:_0x195dfe[_0x4ab756(0x1a5)]));}[_0x48e5bc(0xb5)](){const _0x191c17=_0x48e5bc;this[_0x191c17(0x173)](this['_renderManagerService'][_0x191c17(0x1df)](a[_0x191c17(0x80)][_0x191c17(0x143)],[Ie])),this[_0x191c17(0x173)](this[_0x191c17(0x2b4)]['registerRenderModule'](a[_0x191c17(0x80)][_0x191c17(0x1f3)],[ve]));}[_0x48e5bc(0x105)](){const _0xb4337c=_0x48e5bc;a['touchDependencies'](this[_0xb4337c(0x126)],[[x],[exports[_0xb4337c(0x1c6)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x48e5bc(0x23a)],_0x48e5bc(0x165),es),exports[_0x48e5bc(0x23a)]=Zt([a[_0x48e5bc(0x192)](u[_0x48e5bc(0x19e)]),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x102)])),he(0x3,a['IConfigService'])],exports[_0x48e5bc(0x23a)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x28dc0f,_0x17bf90,_0x1b18f7,_0x228d69)=>{const _0x20c185=_0x48e5bc;for(var _0x4b11a2=_0x228d69>0x1?void 0x0:_0x228d69?ts(_0x17bf90,_0x1b18f7):_0x17bf90,_0x230c98=_0x28dc0f[_0x20c185(0x2c5)]-0x1,_0x554f2a;_0x230c98>=0x0;_0x230c98--)(_0x554f2a=_0x28dc0f[_0x230c98])&&(_0x4b11a2=_0x554f2a(_0x4b11a2)||_0x4b11a2);return _0x4b11a2;},F=(_0x18fde8,_0x296c65)=>(_0xa32b76,_0x4cfd82)=>_0x296c65(_0xa32b76,_0x4cfd82,_0x18fde8);exports[_0x48e5bc(0x175)]=class extends u[_0x48e5bc(0xad)]{constructor(_0xb516f4,_0x53ec64,_0x47e846,_0x5c34b2,_0x548ed0){super(_0xb516f4,_0x53ec64,_0x47e846,_0x5c34b2,_0x548ed0);}async['createSocket'](_0x585464){const _0x4cd59e=_0x48e5bc,_0x435cdd=await this[_0x4cd59e(0x136)](),_0x3fc6cc=this[_0x4cd59e(0x27f)](_0x585464,_0x435cdd);return this[_0x4cd59e(0x190)](_0x3fc6cc);}[_0x48e5bc(0x27f)](_0xed4d16,_0x11da4a){const _0x4fe289=_0x48e5bc,_0x5281c3=typeof window>'u'?new URL(_0xed4d16):new URL(_0xed4d16,window[_0x4fe289(0x28d)]['origin']);_0x5281c3[_0x4fe289(0x2f6)][_0x4fe289(0x28a)](_0x4fe289(0x8c),_0x11da4a);const _0xec52e1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4fe289(0x28d)][_0x4fe289(0x12f)]);return _0xec52e1['get'](_0x4fe289(0x1ab))&&_0x5281c3[_0x4fe289(0x2f6)][_0x4fe289(0x28a)](_0x4fe289(0x1ab),_0xec52e1[_0x4fe289(0x20c)](_0x4fe289(0x1ab))),_0x5281c3[_0x4fe289(0x220)]();}async[_0x48e5bc(0x136)](){const _0x19b1b5=_0x48e5bc;var _0x86835d,_0x3a2f7b,_0xd0cb5f;const _0x1634a2=this[_0x19b1b5(0x248)][_0x19b1b5(0x2c2)](u[_0x19b1b5(0x1cb)]),_0x2dae1b=(_0x86835d=_0x1634a2==null?void 0x0:_0x1634a2['wsSessionTicketUrl'])!=null?_0x86835d:u[_0x19b1b5(0xe4)];return(_0xd0cb5f=(_0x3a2f7b=(await this[_0x19b1b5(0xcf)]['get'](_0x2dae1b,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x3a2f7b[_0x19b1b5(0x8e)])!=null?_0xd0cb5f:'';}},exports[_0x48e5bc(0x175)]=ss([F(0x0,a['Inject'](a['Injector'])),F(0x1,a[_0x48e5bc(0x28c)](G[_0x48e5bc(0x217)])),F(0x2,a[_0x48e5bc(0x1ed)]),F(0x3,a['ILogService']),F(0x4,m[_0x48e5bc(0xa9)])],exports[_0x48e5bc(0x175)]);const Me=0x7530,Le=_0x48e5bc(0x95);class is extends a[_0x48e5bc(0xac)]{constructor(){const _0x39574f=_0x48e5bc;super(),h(this,_0x39574f(0x285),a[_0x39574f(0x288)]()),h(this,_0x39574f(0x25b),new Set()),h(this,_0x39574f(0x1ad),new Map()),h(this,_0x39574f(0xf7),null),h(this,_0x39574f(0x290),new Map()),h(this,_0x39574f(0x2e4),new Map()),this[_0x39574f(0x1c8)]();}[_0x48e5bc(0x233)](){const _0x4d6cff=_0x48e5bc;super['dispose'](),this[_0x4d6cff(0x290)][_0x4d6cff(0x299)]((_0x298b42,_0x1c0e52)=>this[_0x4d6cff(0x1b1)](_0x1c0e52)),this[_0x4d6cff(0xf7)]&&window[_0x4d6cff(0xd1)](this['_heartbeatTimer']);}[_0x48e5bc(0x2cf)](_0x3a5f8e){const _0x25f510=_0x48e5bc;return this[_0x25f510(0x1ef)](_0x3a5f8e)[_0x25f510(0x29b)](d['distinctUntilChanged']());}['editingUnit'](_0x182d55){const _0xa67db6=_0x48e5bc;this[_0xa67db6(0x25b)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0xa67db6(0x25b)][_0xa67db6(0x151)](_0x182d55),this[_0xa67db6(0x2cd)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x182d55],'isForwarded':!0x1});}[_0x48e5bc(0x198)](_0x57adb0){const _0x18510d=_0x48e5bc;this[_0x18510d(0x25b)][_0x18510d(0x250)](_0x57adb0),this[_0x18510d(0x25b)][_0x18510d(0x267)]===0x0&&this[_0x18510d(0xf7)]&&window[_0x18510d(0xd1)](this[_0x18510d(0xf7)]);}[_0x48e5bc(0x1c8)](){const _0x2b1cbb=_0x48e5bc;this[_0x2b1cbb(0x173)](a[_0x2b1cbb(0x26d)](d[_0x2b1cbb(0x216)](window,'storage')[_0x2b1cbb(0x2fe)](_0x4f100b=>{const _0x4e371c=_0x2b1cbb;if(_0x4f100b[_0x4e371c(0x184)]!==Le||!_0x4f100b[_0x4e371c(0x132)])return;const _0x338443=JSON[_0x4e371c(0x1c9)](_0x4f100b['newValue']);this[_0x4e371c(0x166)](_0x338443);}))),window['addEventListener'](_0x2b1cbb(0x113),()=>this[_0x2b1cbb(0x2cd)]({'type':0x1,'memberID':this[_0x2b1cbb(0x285)],'unitIDs':Array[_0x2b1cbb(0x15e)](this[_0x2b1cbb(0x25b)])}));}[_0x48e5bc(0x166)](_0x3006f2){const _0x48bbb9=_0x48e5bc;switch(_0x3006f2[_0x48bbb9(0x1ee)]){case 0x0:this[_0x48bbb9(0x11d)](_0x3006f2);break;case 0x1:this[_0x48bbb9(0x199)](_0x3006f2);break;case 0x2:this[_0x48bbb9(0xef)](_0x3006f2);break;}}[_0x48e5bc(0x11d)](_0x11d6b3){const _0x29b6c8=_0x48e5bc,{unitIDs:_0x36f70a,memberID:_0x2b7b9a,isForwarded:_0x2a176e}=_0x11d6b3;_0x36f70a['forEach'](_0x69c165=>{const _0x3ed1ba=_0x3f84;if(!_0x2a176e&&this[_0x3ed1ba(0x1ad)][_0x3ed1ba(0x197)](_0x69c165)&&this[_0x3ed1ba(0x1ef)](_0x69c165)[_0x3ed1ba(0xbb)](u[_0x3ed1ba(0x1e7)][_0x3ed1ba(0x1e2)]),!this[_0x3ed1ba(0x1ad)]['has'](_0x69c165)||!this['_unitOnClients'][_0x3ed1ba(0x20c)](_0x69c165)['has'](_0x2b7b9a)){const _0x1b55b1=this[_0x3ed1ba(0x1ad)][_0x3ed1ba(0x20c)](_0x69c165)||new Set();_0x1b55b1[_0x3ed1ba(0x151)](_0x2b7b9a),this[_0x3ed1ba(0x1ad)][_0x3ed1ba(0x28a)](_0x69c165,_0x1b55b1),this['_scheduleClearOtherTimer'](_0x2b7b9a);}}),_0x2a176e||this['_send']({'type':0x0,'memberID':this[_0x29b6c8(0x285)],'unitIDs':[...this[_0x29b6c8(0x25b)]],'isForwarded':!0x0});}[_0x48e5bc(0x177)](_0x3d1247){const _0x3c16a5=_0x48e5bc;this[_0x3c16a5(0x1b1)](_0x3d1247);const _0x9b8279=window[_0x3c16a5(0x134)](()=>{const _0x5b1ff4=_0x3c16a5;this[_0x5b1ff4(0x1ad)][_0x5b1ff4(0x299)](_0x287d3d=>{_0x287d3d['delete'](_0x3d1247);});},Me*0x2);this[_0x3c16a5(0x290)][_0x3c16a5(0x28a)](_0x3d1247,_0x9b8279);}['_removeClearOtherTimer'](_0x54f63e){const _0x134b80=_0x48e5bc;if(this[_0x134b80(0x290)]['has'](_0x54f63e)){const _0x14efeb=this['_clearOtherTimers']['get'](_0x54f63e);_0x14efeb&&window[_0x134b80(0x13c)](_0x14efeb),this[_0x134b80(0x290)][_0x134b80(0x28a)](_0x54f63e,null);}}[_0x48e5bc(0x199)](_0x2996c8){const _0x4baa25=_0x48e5bc,{memberID:_0x1c4d54,unitIDs:_0x3c84df}=_0x2996c8;_0x3c84df[_0x4baa25(0x299)](_0x448d89=>{const _0x2779fa=_0x4baa25;var _0x3bae33;const _0x12c92f=this[_0x2779fa(0x1ad)][_0x2779fa(0x20c)](_0x448d89);_0x12c92f&&(_0x12c92f[_0x2779fa(0x250)](_0x1c4d54),(_0x3bae33=this['_ensureSubject'](_0x448d89))==null||_0x3bae33[_0x2779fa(0xbb)](_0x12c92f[_0x2779fa(0x267)]===0x0?u[_0x2779fa(0x1e7)][_0x2779fa(0x145)]:u[_0x2779fa(0x1e7)]['OTHER_CLIENTS_EDITING']));}),this[_0x4baa25(0x1b1)](_0x1c4d54);}['_handleHeartbeatEvent'](_0x17f82d){const _0x5df6e1=_0x48e5bc;this[_0x5df6e1(0x177)](_0x17f82d['memberID']);}[_0x48e5bc(0x2cd)](_0x218991){const _0x1a1cba=_0x48e5bc;localStorage[_0x1a1cba(0x191)](Le,JSON[_0x1a1cba(0xd0)](_0x218991));}[_0x48e5bc(0x18a)](){const _0x2fa0e3=_0x48e5bc;this[_0x2fa0e3(0xf7)]=window[_0x2fa0e3(0x270)](()=>{const _0x21ac10=_0x2fa0e3;this[_0x21ac10(0x2cd)]({'type':0x2,'memberID':this[_0x21ac10(0x285)]});},Me);}[_0x48e5bc(0x1ef)](_0x5e4e5d){const _0x142d23=_0x48e5bc;return this[_0x142d23(0x2e4)][_0x142d23(0x197)](_0x5e4e5d)||this[_0x142d23(0x2e4)][_0x142d23(0x28a)](_0x5e4e5d,new d['BehaviorSubject'](u['UnitStatus'][_0x142d23(0x145)])),this['_unitStatus'][_0x142d23(0x20c)](_0x5e4e5d);}}var Be=(_0x5761c7=>(_0x5761c7[_0x5761c7[_0x48e5bc(0x2d4)]=0x0]=_0x48e5bc(0x2d4),_0x5761c7[_0x5761c7['OK']=0x1]='OK',_0x5761c7[_0x5761c7[_0x48e5bc(0x13b)]=0x2]=_0x48e5bc(0x13b),_0x5761c7[_0x5761c7[_0x48e5bc(0x226)]=0x3]=_0x48e5bc(0x226),_0x5761c7[_0x5761c7[_0x48e5bc(0x1f6)]=0x4]=_0x48e5bc(0x1f6),_0x5761c7[_0x5761c7[_0x48e5bc(0x1fb)]=0x5]=_0x48e5bc(0x1fb),_0x5761c7[_0x5761c7['ALREADY_EXISTS']=0x6]=_0x48e5bc(0x16c),_0x5761c7[_0x5761c7[_0x48e5bc(0x283)]=0x7]=_0x48e5bc(0x283),_0x5761c7[_0x5761c7[_0x48e5bc(0x245)]=0x8]=_0x48e5bc(0x245),_0x5761c7[_0x5761c7[_0x48e5bc(0x26c)]=0x9]=_0x48e5bc(0x26c),_0x5761c7[_0x5761c7[_0x48e5bc(0xda)]=0xa]=_0x48e5bc(0xda),_0x5761c7[_0x5761c7[_0x48e5bc(0x153)]=0x1389]=_0x48e5bc(0x153),_0x5761c7[_0x5761c7[_0x48e5bc(0x19b)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5761c7[_0x5761c7['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x48e5bc(0x2b2),_0x5761c7[_0x5761c7[_0x48e5bc(0x1e6)]=0x1773]=_0x48e5bc(0x1e6),_0x5761c7[_0x5761c7[_0x48e5bc(0x1b6)]=0x1b59]=_0x48e5bc(0x1b6),_0x5761c7[_0x5761c7[_0x48e5bc(0x12e)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5761c7[_0x5761c7[_0x48e5bc(0x182)]=0x1b5b]=_0x48e5bc(0x182),_0x5761c7[_0x5761c7['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x48e5bc(0x2d2),_0x5761c7[_0x5761c7[_0x48e5bc(0x1db)]=0x1b5d]='APPLY_DUPLICATED',_0x5761c7[_0x5761c7['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5761c7[_0x5761c7[_0x48e5bc(0x137)]=0x2329]=_0x48e5bc(0x137),_0x5761c7[_0x5761c7[_0x48e5bc(0x21b)]=0x232a]=_0x48e5bc(0x21b),_0x5761c7[_0x5761c7[_0x48e5bc(0x17d)]=0x232b]=_0x48e5bc(0x17d),_0x5761c7[_0x5761c7[_0x48e5bc(0x1c0)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5761c7[_0x5761c7[_0x48e5bc(0x1e1)]=0x232d]=_0x48e5bc(0x1e1),_0x5761c7[_0x5761c7[_0x48e5bc(0x2f4)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5761c7[_0x5761c7['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x48e5bc(0x282),_0x5761c7[_0x5761c7[_0x48e5bc(0x161)]=0x2713]=_0x48e5bc(0x161),_0x5761c7[_0x5761c7[_0x48e5bc(0x212)]=0x2714]=_0x48e5bc(0x212),_0x5761c7[_0x5761c7[_0x48e5bc(0xa2)]=0x271a]=_0x48e5bc(0xa2),_0x5761c7[_0x5761c7[_0x48e5bc(0x144)]=0x271b]=_0x48e5bc(0x144),_0x5761c7[_0x5761c7[_0x48e5bc(0x12a)]=0x271c]=_0x48e5bc(0x12a),_0x5761c7[_0x5761c7[_0x48e5bc(0x1dd)]=0x271d]=_0x48e5bc(0x1dd),_0x5761c7[_0x5761c7[_0x48e5bc(0xeb)]=0x271e]=_0x48e5bc(0xeb),_0x5761c7[_0x5761c7[_0x48e5bc(0xa1)]=0x271f]=_0x48e5bc(0xa1),_0x5761c7[_0x5761c7[_0x48e5bc(0x27a)]=0x2af9]=_0x48e5bc(0x27a),_0x5761c7[_0x5761c7[_0x48e5bc(0x1e8)]=0x2ee1]=_0x48e5bc(0x1e8),_0x5761c7[_0x5761c7[_0x48e5bc(0x193)]=0x2ee2]=_0x48e5bc(0x193),_0x5761c7[_0x5761c7[_0x48e5bc(0x2c4)]=0x2ee3]=_0x48e5bc(0x2c4),_0x5761c7[_0x5761c7[_0x48e5bc(0x131)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5761c7[_0x5761c7['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5761c7[_0x5761c7[_0x48e5bc(0x93)]=0x32c9]=_0x48e5bc(0x93),_0x5761c7[_0x5761c7[_0x48e5bc(0xb1)]=0x32ca]=_0x48e5bc(0xb1),_0x5761c7[_0x5761c7['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x48e5bc(0x1b0),_0x5761c7[_0x5761c7['UNRECOGNIZED']=-0x1]=_0x48e5bc(0xa7),_0x5761c7))(Be||{}),ns=Object[_0x48e5bc(0x275)],rs=(_0x3775df,_0x35f078,_0x50fee2,_0x1b081b)=>{const _0x5d1a3f=_0x48e5bc;for(var _0x4d1811=_0x1b081b>0x1?void 0x0:_0x1b081b?ns(_0x35f078,_0x50fee2):_0x35f078,_0x345e51=_0x3775df[_0x5d1a3f(0x2c5)]-0x1,_0x1a5ace;_0x345e51>=0x0;_0x345e51--)(_0x1a5ace=_0x3775df[_0x345e51])&&(_0x4d1811=_0x1a5ace(_0x4d1811)||_0x4d1811);return _0x4d1811;},ue=(_0xa4171d,_0xc01865)=>(_0x4bbb10,_0x4450b4)=>_0xc01865(_0x4bbb10,_0x4450b4,_0xa4171d);exports[_0x48e5bc(0x2be)]=class extends a[_0x48e5bc(0xac)]{constructor(_0x5ddab0,_0x20720e,_0x48a4e5){const _0x1a5d6d=_0x48e5bc;super(),this[_0x1a5d6d(0x176)]=_0x5ddab0,this['_httpService']=_0x20720e,this[_0x1a5d6d(0x248)]=_0x48a4e5;}async[_0x48e5bc(0x106)](_0x2e2802,_0x5fd678,_0x2094ec,..._0x20d457){const _0x36152a=_0x48e5bc;var _0x346088,_0x54df14,_0x309745,_0x45d034;const _0x5b3f5d=this[_0x36152a(0x176)]['getFocusedUnit']();if(!_0x5b3f5d)throw new Error(_0x36152a(0x2e3));const _0x3320c6=((_0x346088=this[_0x36152a(0x248)][_0x36152a(0x2c2)](u[_0x36152a(0x1ae)]))!=null?_0x346088:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x2e2802+_0x36152a(0x263)+_0x5fd678,_0x4f38d5=new URL(window[_0x36152a(0x28d)][_0x36152a(0x188)]),_0x255c82={'scriptId':_0x2e2802,'runId':(_0x54df14=_0x4f38d5[_0x36152a(0x2f6)][_0x36152a(0x20c)](_0x36152a(0x1ab)))!=null?_0x54df14:'','function':_0x5fd678,'unitId':_0x5b3f5d[_0x36152a(0x280)](),'argsOfFunction':JSON[_0x36152a(0xd0)](_0x20d457),'invokeId':(_0x309745=_0x2094ec[_0x36152a(0x1a0)])!=null?_0x309745:'','executionId':(_0x45d034=_0x2094ec['executionId'])!=null?_0x45d034:''};try{const _0x1611d1=await this['_httpService'][_0x36152a(0x1b2)](_0x3320c6,{'body':_0x255c82});return _0x1611d1[_0x36152a(0x19d)][_0x36152a(0x272)]&&_0x1611d1[_0x36152a(0x19d)][_0x36152a(0x272)][_0x36152a(0xb8)]!==Be['OK']?'Failed':_0x1611d1['body'][_0x36152a(0x1d5)];}catch{return _0x36152a(0x185);}}},exports[_0x48e5bc(0x2be)]=rs([ue(0x0,a[_0x48e5bc(0x9f)]),ue(0x1,a[_0x48e5bc(0x28c)](G[_0x48e5bc(0x217)])),ue(0x2,a[_0x48e5bc(0x1ed)])],exports['RemoteUniscriptService']),exports[_0x48e5bc(0x123)]=xe,exports[_0x48e5bc(0x2a8)]=be,exports[_0x48e5bc(0xfc)]=Ae,exports[_0x48e5bc(0xb4)]=is,exports[_0x48e5bc(0x2a6)]=je;
1
+ 'use strict';const _0x340a06=_0x18a4;(function(_0xcf767e,_0x499634){const _0x24d3da=_0x18a4,_0x182689=_0xcf767e();while(!![]){try{const _0x534bec=-parseInt(_0x24d3da(0x371))/0x1+parseInt(_0x24d3da(0x226))/0x2*(-parseInt(_0x24d3da(0x201))/0x3)+parseInt(_0x24d3da(0x199))/0x4+-parseInt(_0x24d3da(0x30e))/0x5*(parseInt(_0x24d3da(0x34d))/0x6)+-parseInt(_0x24d3da(0x24d))/0x7*(parseInt(_0x24d3da(0x32d))/0x8)+parseInt(_0x24d3da(0x366))/0x9*(-parseInt(_0x24d3da(0x352))/0xa)+parseInt(_0x24d3da(0x35b))/0xb;if(_0x534bec===_0x499634)break;else _0x182689['push'](_0x182689['shift']());}catch(_0x341761){_0x182689['push'](_0x182689['shift']());}}}(_0x1d2d,0x34bfd));var Ve=Object[_0x340a06(0x2ce)],Xe=(_0x2c770e,_0x187301,_0x512a08)=>_0x187301 in _0x2c770e?Ve(_0x2c770e,_0x187301,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x512a08}):_0x2c770e[_0x187301]=_0x512a08,h=(_0x52a30e,_0x2c1a79,_0x4e8570)=>Xe(_0x52a30e,typeof _0x2c1a79!='symbol'?_0x2c1a79+'':_0x2c1a79,_0x4e8570);Object[_0x340a06(0x2ce)](exports,Symbol[_0x340a06(0x174)],{'value':_0x340a06(0x3ca)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x340a06(0x398)),p=require(_0x340a06(0x3c6)),G=require(_0x340a06(0x176)),b=require(_0x340a06(0x2c2)),Ge=require(_0x340a06(0x175)),d=require(_0x340a06(0x16e)),Y=require('@univerjs/docs'),m=require(_0x340a06(0x217)),Ee=require(_0x340a06(0x3c8)),g=require(_0x340a06(0x234)),$=require(_0x340a06(0x24e)),X=require('@univerjs/sheets-ui'),P=require(_0x340a06(0x1ad)),T=require(_0x340a06(0x255)),D=require(_0x340a06(0x195)),M=require('react'),Ke=require(_0x340a06(0x1b7));var qe=Object[_0x340a06(0x178)],ze=(_0x208008,_0x22a221,_0x2016be,_0x1d043d)=>{const _0x35254e=_0x340a06;for(var _0xcfc08a=_0x1d043d>0x1?void 0x0:_0x1d043d?qe(_0x22a221,_0x2016be):_0x22a221,_0x41f663=_0x208008[_0x35254e(0x36b)]-0x1,_0x574f55;_0x41f663>=0x0;_0x41f663--)(_0x574f55=_0x208008[_0x41f663])&&(_0xcfc08a=_0x574f55(_0xcfc08a)||_0xcfc08a);return _0xcfc08a;},Te=(_0x14a6a0,_0x59b8d5)=>(_0x3dd365,_0x47ea55)=>_0x59b8d5(_0x3dd365,_0x47ea55,_0x14a6a0);let de=class extends a[_0x340a06(0x1ba)]{constructor(_0x67154b,_0x404bd9){const _0x225cdd=_0x340a06;super(),this[_0x225cdd(0x319)]=_0x67154b,this[_0x225cdd(0x1b2)]=_0x404bd9,this[_0x225cdd(0x1e2)]();}[_0x340a06(0x1e2)](){const _0x276b41=_0x340a06,_0x198b55=this;this[_0x276b41(0x1b4)](this[_0x276b41(0x319)]['addClipboardHook']({'onBeforePasteImage':async _0x540ce5=>{const _0x1630c7=_0x276b41,_0x483c06=await _0x198b55[_0x1630c7(0x1b2)][_0x1630c7(0x3ce)](_0x540ce5);return _0x483c06?{'source':_0x483c06[_0x1630c7(0x28c)],'imageSourceType':_0x483c06[_0x1630c7(0x318)]}:null;}}));}};de=ze([Te(0x0,b[_0x340a06(0x202)]),Te(0x1,Ge[_0x340a06(0x22e)])],de);const Oe=[_0x340a06(0x156),'jiqing.500',_0x340a06(0x241),_0x340a06(0x182),_0x340a06(0x37e),_0x340a06(0x2d1)];class me extends a[_0x340a06(0x20a)]{constructor(){const _0x4e4ff2=_0x340a06;super(...arguments),h(this,_0x4e4ff2(0x3ac),new Map()),h(this,_0x4e4ff2(0x27b),0x0);}[_0x340a06(0x1d0)](_0x1a1793){const _0x5a0f1f=_0x340a06;if(this[_0x5a0f1f(0x3ac)][_0x5a0f1f(0x2c0)](_0x1a1793))return this[_0x5a0f1f(0x3ac)]['get'](_0x1a1793);const _0x4e1226=Oe[this[_0x5a0f1f(0x27b)]];return this[_0x5a0f1f(0x27b)]=(this[_0x5a0f1f(0x27b)]+0x1)%Oe[_0x5a0f1f(0x36b)],this[_0x5a0f1f(0x3ac)][_0x5a0f1f(0x2b0)](_0x1a1793,_0x4e1226),_0x4e1226;}}function Pe(_0x1e077c){const _0x47a0d5=_0x340a06;let _0xc48eca='';for(const _0x48eb97 of _0x1e077c){const {startOffset:_0x29a1ae,endOffset:_0x1a50a6,isActive:_0x3de1b8,rangeType:_0x23f24a,segmentId:_0x239814,segmentPage:_0x161b60}=_0x48eb97;_0xc48eca[_0x47a0d5(0x36b)]&&(_0xc48eca+=','),_0xc48eca+=_0x29a1ae+':'+_0x1a50a6+':'+(_0x3de1b8?'1':'0')+':'+_0x23f24a+':'+_0x239814+':'+_0x161b60;}return _0xc48eca;}function Je(_0x465a5d){const _0x74fb28=_0x340a06,_0x2aacc2=_0x465a5d['split'](','),_0x53b157=[];for(const _0x3cd86f of _0x2aacc2){const [_0x17a39c,_0x2e5ee4,_0x49ab81,_0x5ad5c0,_0xe11c0a,_0x5f106e]=_0x3cd86f[_0x74fb28(0x3cd)](':');_0x53b157['push']({'startOffset':Number(_0x17a39c),'endOffset':Number(_0x2e5ee4),'collapsed':_0x17a39c===_0x2e5ee4,'isActive':_0x49ab81==='1','rangeType':_0x5ad5c0===a['DOC_RANGE_TYPE'][_0x74fb28(0x1bf)]?a[_0x74fb28(0x1fc)]['TEXT']:a[_0x74fb28(0x1fc)][_0x74fb28(0x340)],'segmentId':typeof _0xe11c0a==_0x74fb28(0x3b2)?String(_0xe11c0a):'','segmentPage':Number(_0x5f106e!=null?_0x5f106e:-0x1)});}return _0x53b157[_0x74fb28(0x368)](_0x2433cb=>_0x2433cb[_0x74fb28(0x1ca)])||(_0x53b157[0x0][_0x74fb28(0x1ca)]=!0x0),_0x53b157;}class Ce extends a['RxDisposable']{constructor(){const _0x170813=_0x340a06;super(...arguments),h(this,_0x170813(0x2e0),new d[(_0x170813(0x1c8))](null)),h(this,'collabCursorState$',this[_0x170813(0x2e0)][_0x170813(0x205)]());}['syncEditingCollabCursor'](_0x70c8c6){const _0x1f6124=_0x340a06,{unitID:_0x77bf3f,memberID:_0x299c9d,textRanges:_0x8b7758}=_0x70c8c6,_0x3d3f6a=Pe(_0x8b7758);if(_0x3d3f6a==='')return;const _0xbb5b84={'unitID':_0x77bf3f,'memberID':_0x299c9d,'selection':_0x3d3f6a};this[_0x1f6124(0x2e0)][_0x1f6124(0x1e4)](_0xbb5b84);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x59a973,_0x2b265b,_0x53b794,_0xe853aa)=>{const _0x4229c7=_0x340a06;for(var _0x34e2b3=_0xe853aa>0x1?void 0x0:_0xe853aa?Ze(_0x2b265b,_0x53b794):_0x2b265b,_0x1704db=_0x59a973[_0x4229c7(0x36b)]-0x1,_0x1eabfe;_0x1704db>=0x0;_0x1704db--)(_0x1eabfe=_0x59a973[_0x1704db])&&(_0x34e2b3=_0x1eabfe(_0x34e2b3)||_0x34e2b3);return _0x34e2b3;},L=(_0x7f22b4,_0x4bb8b6)=>(_0x214061,_0x5f468c)=>_0x4bb8b6(_0x214061,_0x5f468c,_0x7f22b4);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x2114d4,_0x7c5c40,_0x226389,_0x436fe9,_0x134dea,_0x48d05e,_0x51e76f,_0x3babdb,_0x5216c6){const _0x37ffbf=_0x340a06;super(),h(this,_0x37ffbf(0x2ab),!0x1),h(this,_0x37ffbf(0x1e2),!0x1),h(this,_0x37ffbf(0x390),new d[(_0x37ffbf(0x1c8))](new Map())),h(this,_0x37ffbf(0x2ef),this[_0x37ffbf(0x390)]['asObservable']()),h(this,'_roomMembers$',new d[(_0x37ffbf(0x1c8))]([])),h(this,'roomMembers$',this['_roomMembers$'][_0x37ffbf(0x20b)](d[_0x37ffbf(0x14a)](et))),h(this,_0x37ffbf(0x22d),a['debounce'](_0xb704c9=>{const _0x101ef7=_0x37ffbf,_0x3da9ce={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x101ef7(0x30a)],'memberID':this[_0x101ef7(0x159)][_0x101ef7(0x1dc)](),'selection':Pe(_0xb704c9)}};this[_0x101ef7(0x159)]['send'](_0x3da9ce,this[_0x101ef7(0x30a)]);},tt)),(this[_0x37ffbf(0x30a)]=_0x2114d4,this[_0x37ffbf(0x159)]=_0x7c5c40,this[_0x37ffbf(0x1f4)]=_0x226389,this[_0x37ffbf(0x20e)]=_0x436fe9,this[_0x37ffbf(0x194)]=_0x134dea,this[_0x37ffbf(0x2f6)]=_0x48d05e,this[_0x37ffbf(0x17d)]=_0x51e76f,this[_0x37ffbf(0x247)]=_0x3babdb,this[_0x37ffbf(0x34c)]=_0x5216c6);}get[_0x340a06(0x327)](){const _0xd741d=_0x340a06;return this['_cursorInfo$'][_0xd741d(0x2b8)]();}get[_0x340a06(0x214)](){const _0x171ca5=_0x340a06;return this[_0x171ca5(0x170)]['getValue']();}['dispose'](){const _0xce0391=_0x340a06;super['dispose'](),this[_0xce0391(0x390)]['next'](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0xce0391(0x1e4)]([]),this['_roomMembers$'][_0xce0391(0x367)]();}[_0x340a06(0x3aa)](){const _0x32c60b=_0x340a06;this['_init']||(this[_0x32c60b(0x1e2)]=!0x0,this[_0x32c60b(0x159)]['sessionStatus$']['pipe'](d['takeUntil'](this[_0x32c60b(0x15d)]))['subscribe'](_0x9081f7=>{const _0x4d3328=_0x32c60b;_0x9081f7===u['SessionStatus'][_0x4d3328(0x1f6)]?this[_0x4d3328(0x2a5)]():this[_0x4d3328(0x1d2)]();}),this['_session'][_0x32c60b(0x295)][_0x32c60b(0x20b)](d[_0x32c60b(0x33f)](this[_0x32c60b(0x15d)]))['subscribe'](_0x1cf219=>{const _0x4ad37e=_0x32c60b,_0x54b9d9=_0x1cf219['eventID'];_0x54b9d9===m[_0x4ad37e(0x209)][_0x4ad37e(0x1fb)]&&this[_0x4ad37e(0x146)](_0x1cf219),_0x54b9d9===m[_0x4ad37e(0x209)][_0x4ad37e(0x235)]&&this[_0x4ad37e(0x2be)](_0x1cf219);}),this[_0x32c60b(0x1b4)](this[_0x32c60b(0x34c)][_0x32c60b(0x1d9)](_0x554093=>{const _0x210b6f=_0x32c60b,_0x6f349d=_0x554093[_0x210b6f(0x258)];_0x6f349d!=null&&this[_0x210b6f(0x2ab)]&&_0x554093['id']===Y['SetTextSelectionsOperation']['id']&&_0x6f349d[_0x210b6f(0x36f)]===this[_0x210b6f(0x30a)]&&_0x6f349d['isEditing']===!0x1&&_0x6f349d[_0x210b6f(0x2b5)][_0x210b6f(0x36b)]>0x0&&this['_updateLocalCursor'](_0x6f349d['ranges']);})),this[_0x32c60b(0x2f6)][_0x32c60b(0x213)][_0x32c60b(0x20b)](d[_0x32c60b(0x33f)](this[_0x32c60b(0x15d)]))[_0x32c60b(0x17b)](_0x3dc758=>{const _0x14f86f=_0x32c60b;if((_0x3dc758==null?void 0x0:_0x3dc758['unitID'])!==this[_0x14f86f(0x30a)])return;const _0x54a4ae={'eventID':m['CollaborationEvent'][_0x14f86f(0x1fb)],'data':_0x3dc758};this[_0x14f86f(0x146)](_0x54a4ae);}),this[_0x32c60b(0x1b4)](this[_0x32c60b(0x34c)][_0x32c60b(0x1d9)](_0xf68809=>{const _0x13b477=_0x32c60b;if(_0xf68809[_0x13b477(0x258)]==null)return;const _0x3160eb=_0xf68809['params'];if(_0xf68809['id']!==Y[_0x13b477(0x38a)]['id']||_0x3160eb[_0x13b477(0x36f)]!==this[_0x13b477(0x30a)])return;const _0x4bcc62={'id':'doc.mutation.rich-text-editing','params':_0x3160eb},_0x43b259=this['cursorInfo'];for(const [_0x322529,_0x194895]of _0x43b259){const _0x524227={'id':_0x13b477(0x233),'params':{'unitId':this[_0x13b477(0x30a)],'actions':null,'textRanges':_0x194895[_0x13b477(0x2b5)]}},_0x62545a=this[_0x13b477(0x17d)]['transformMutation'](_0x4bcc62,_0x524227,!0x1);if(m[_0x13b477(0x1f0)](_0x62545a))throw _0x62545a[_0x13b477(0x18d)];_0x43b259['set'](_0x322529,{..._0x194895,'ranges':_0x62545a['m2Prime'][_0x13b477(0x258)]['textRanges']});}queueMicrotask(()=>{const _0x5881e5=_0x13b477;this[_0x5881e5(0x390)]['next'](_0x43b259);});})));}[_0x340a06(0x146)](_0x26425f){const _0x5afc4d=_0x340a06;var _0x353d92,_0x52d095;const {memberID:_0x49ab6c,selection:_0x357d6a}=_0x26425f[_0x5afc4d(0x26c)],_0x28f7a9=Je(_0x357d6a),_0x21c384=(_0x52d095=(_0x353d92=this['_memberService'][_0x5afc4d(0x144)](this[_0x5afc4d(0x30a)],_0x49ab6c))==null?void 0x0:_0x353d92['name'])!=null?_0x52d095:_0x5afc4d(0x307),_0x4d2a86={'color':this['_colorAssignService'][_0x5afc4d(0x1d0)](_0x49ab6c),'name':_0x21c384,'ranges':_0x28f7a9},_0x1f959e=this[_0x5afc4d(0x327)];_0x1f959e[_0x5afc4d(0x2b0)](_0x49ab6c,_0x4d2a86),this[_0x5afc4d(0x390)][_0x5afc4d(0x1e4)](_0x1f959e);}['_onCursorDelete'](_0x11c958){const _0x547b9b=_0x340a06,{memberID:_0x2ad6ea}=_0x11c958[_0x547b9b(0x26c)],_0x13fd39=this['cursorInfo'];_0x13fd39[_0x547b9b(0x142)](_0x2ad6ea),this[_0x547b9b(0x390)]['next'](_0x13fd39);}[_0x340a06(0x2a5)](){const _0x5f204a=_0x340a06;var _0x17395a;if(this['_online']=!0x0,((_0x17395a=this['_univerInstanceService'][_0x5f204a(0x16d)]())==null?void 0x0:_0x17395a['getUnitId']())!==this[_0x5f204a(0x30a)])return;const _0x483fea=this['_injector'][_0x5f204a(0x302)](Y[_0x5f204a(0x22b)])['getDocRanges']();Array[_0x5f204a(0x1a5)](_0x483fea)&&_0x483fea[_0x5f204a(0x36b)]>0x0&&this[_0x5f204a(0x22d)](_0x483fea);}[_0x340a06(0x1d2)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x340a06(0x397)](a[_0x340a06(0x320)])),L(0x3,a[_0x340a06(0x397)](me)),L(0x4,a[_0x340a06(0x397)](u[_0x340a06(0x2a1)])),L(0x5,a[_0x340a06(0x397)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x340a06(0x333)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x340a06(0x178)],it=(_0x45923f,_0x389c43,_0x131e69,_0x4a7375)=>{for(var _0x12a011=_0x4a7375>0x1?void 0x0:_0x4a7375?st(_0x389c43,_0x131e69):_0x389c43,_0x5e8a73=_0x45923f['length']-0x1,_0x9392c5;_0x5e8a73>=0x0;_0x5e8a73--)(_0x9392c5=_0x45923f[_0x5e8a73])&&(_0x12a011=_0x9392c5(_0x12a011)||_0x12a011);return _0x12a011;},w=(_0x44ed6b,_0x33d635)=>(_0x59b678,_0x2f0f92)=>_0x33d635(_0x59b678,_0x2f0f92,_0x44ed6b);const nt=0x12c,rt=0x64,ot=()=>{let _0x48cc8e=[],_0x54449=!0x1;return _0xae8310=>{const _0x3aa371=_0x18a4;_0x48cc8e[_0x3aa371(0x244)](_0xae8310),_0x54449||(_0x54449=!0x0,setTimeout(()=>{const _0x478ab4=_0x3aa371;_0x48cc8e[_0x478ab4(0x31d)](_0x2208e2=>_0x2208e2()),_0x48cc8e=[],_0x54449=!0x1;}));};};let Se=class extends a[_0x340a06(0x1ba)]{constructor(_0x25f5c6,_0x4d0087,_0x1ccdf1,_0x5d5d45,_0x1b4907,_0x192098,_0x342be8,_0xae656){const _0x3bad42=_0x340a06;super(),h(this,'_online',!0x1),h(this,_0x3bad42(0x1e2),!0x1),h(this,_0x3bad42(0x390),new d[(_0x3bad42(0x1c8))](new Map())),h(this,_0x3bad42(0x2ef),this[_0x3bad42(0x390)]['asObservable']()),h(this,_0x3bad42(0x170),new d[(_0x3bad42(0x1c8))]([])),h(this,_0x3bad42(0x349),this[_0x3bad42(0x170)][_0x3bad42(0x20b)](d[_0x3bad42(0x14a)](nt))),h(this,_0x3bad42(0x22d),a['debounce']((_0x4e29ce,_0x51f469)=>{const _0x388de5=_0x3bad42,_0x4c0ad9={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x388de5(0x30a)],'memberID':this['_session'][_0x388de5(0x1dc)](),'selection':Ee[_0x388de5(0x2eb)](_0x4e29ce,_0x51f469[_0x388de5(0x1cb)])}};this[_0x388de5(0x159)][_0x388de5(0x248)](_0x4c0ad9,this[_0x388de5(0x30a)]);},rt)),(this[_0x3bad42(0x30a)]=_0x25f5c6,this[_0x3bad42(0x159)]=_0x4d0087,this[_0x3bad42(0x1f4)]=_0x1ccdf1,this['_colorAssignService']=_0x5d5d45,this['_memberService']=_0x1b4907,this[_0x3bad42(0x247)]=_0x192098,this[_0x3bad42(0x34c)]=_0x342be8,this[_0x3bad42(0x26f)]=_0xae656);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x340a06(0x214)](){const _0x586f83=_0x340a06;return this['_roomMembers$'][_0x586f83(0x2b8)]();}[_0x340a06(0x265)](){const _0xa87d5c=_0x340a06;super['dispose'](),this['_cursorInfo$'][_0xa87d5c(0x1e4)](new Map()),this[_0xa87d5c(0x390)][_0xa87d5c(0x367)](),this[_0xa87d5c(0x170)]['next']([]),this[_0xa87d5c(0x170)][_0xa87d5c(0x367)]();}[_0x340a06(0x3aa)](){const _0x45186a=_0x340a06;this[_0x45186a(0x1e2)]||(this[_0x45186a(0x1e2)]=!0x0,this[_0x45186a(0x159)]['sessionStatus$'][_0x45186a(0x20b)](d[_0x45186a(0x33f)](this[_0x45186a(0x15d)]))[_0x45186a(0x17b)](_0x12594b=>{const _0x3499db=_0x45186a;_0x12594b===u[_0x3499db(0x1c0)]['ONLINE']?this[_0x3499db(0x2a5)]():this[_0x3499db(0x1d2)]();}),this['_session']['event$'][_0x45186a(0x20b)](d['takeUntil'](this[_0x45186a(0x15d)]))[_0x45186a(0x17b)](_0x2ffe34=>{const _0x35b285=_0x45186a,_0xb89b2d=_0x2ffe34[_0x35b285(0x1f7)];_0xb89b2d===m[_0x35b285(0x209)][_0x35b285(0x1fb)]&&this[_0x35b285(0x146)](_0x2ffe34),_0xb89b2d===m[_0x35b285(0x209)]['USERS_LEAVE']&&this[_0x35b285(0x2be)](_0x2ffe34);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x45186a(0x1d9)](_0xba4623=>{const _0x27b545=_0x45186a;if(this[_0x27b545(0x2ab)]&&_0xba4623['id']===g[_0x27b545(0x20d)]['id']&&_0xba4623['params']['unitId']===this[_0x27b545(0x30a)]){const _0xa9391b=_0xba4623['params'];this[_0x27b545(0x22d)](_0xa9391b['subUnitId'],_0xa9391b[_0x27b545(0x2f4)][0x0]);}})));}[_0x340a06(0x146)](_0x4dd6cd){const _0x242f7a=_0x340a06;var _0x46741b,_0xaead8c;const {memberID:_0x9f32e4,selection:_0x1de49b}=_0x4dd6cd['data'],{sheetName:_0x13ec77,range:_0x2d327c}=Ee[_0x242f7a(0x16c)](_0x1de49b),_0x22667f={'name':(_0xaead8c=(_0x46741b=this['_memberService'][_0x242f7a(0x144)](this[_0x242f7a(0x30a)],_0x9f32e4))==null?void 0x0:_0x46741b[_0x242f7a(0x29a)])!=null?_0xaead8c:_0x242f7a(0x307),'range':this[_0x242f7a(0x2f8)](_0x13ec77,_0x2d327c),'sheetID':_0x13ec77,'color':this[_0x242f7a(0x20e)][_0x242f7a(0x1d0)](_0x9f32e4),'selection':_0x1de49b},_0x1b8a3b=this['cursorInfo'];_0x1b8a3b['set'](_0x9f32e4,_0x22667f),this[_0x242f7a(0x390)][_0x242f7a(0x1e4)](_0x1b8a3b);}[_0x340a06(0x2be)](_0x44c21f){const _0x3a6f55=_0x340a06,{memberID:_0x1d4533}=_0x44c21f[_0x3a6f55(0x26c)],_0x1a27dc=this[_0x3a6f55(0x327)];_0x1a27dc[_0x3a6f55(0x142)](_0x1d4533),this[_0x3a6f55(0x390)][_0x3a6f55(0x1e4)](_0x1a27dc);}[_0x340a06(0x2f8)](_0x50eab1,_0xe48d47){const _0x3c571e=_0x340a06;var _0x1fab35,_0x4bd2a1;const _0x574979=(_0x4bd2a1=(_0x1fab35=this[_0x3c571e(0x247)][_0x3c571e(0x197)](this[_0x3c571e(0x30a)]))==null?void 0x0:_0x1fab35['getSheetBySheetId'](_0x50eab1))==null?void 0x0:_0x4bd2a1[_0x3c571e(0x222)]();return(_0x574979==null?void 0x0:_0x574979[_0x3c571e(0x22c)](_0x3352ca=>a[_0x3c571e(0x1a7)]['contains'](_0x3352ca,_0xe48d47)))||_0xe48d47;}['_onRefRangeChange'](){const _0x59d3c7=_0x340a06,_0x499925=new a[(_0x59d3c7(0x329))](),_0x460b24=ot(),_0x22605e=()=>{const _0x2d58a9=_0x59d3c7;_0x499925[_0x2d58a9(0x265)]();const _0x173805=(_0x154d2,_0x3fb0ce,_0x2e4bc2,_0x32fca8)=>{const _0x1927c6=_0x2d58a9;let _0x2518f9=[];switch(_0x154d2['id']){case g[_0x1927c6(0x196)]['DeleteRangeMoveLeftCommandId']:{_0x2518f9=g['handleDeleteRangeMoveLeft'](_0x154d2,_0x32fca8);break;}case g['EffectRefRangId'][_0x1927c6(0x3c7)]:{_0x2518f9=g['handleDeleteRangeMoveUp'](_0x154d2,_0x32fca8);break;}case g['EffectRefRangId'][_0x1927c6(0x2f0)]:{_0x2518f9=g['handleInsertCol'](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)][_0x1927c6(0x190)]:{_0x2518f9=g[_0x1927c6(0x32b)](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)][_0x1927c6(0x3a3)]:{_0x2518f9=g[_0x1927c6(0x3bd)](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)][_0x1927c6(0x229)]:{_0x2518f9=g['handleInsertRow'](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)][_0x1927c6(0x1a2)]:{_0x2518f9=g[_0x1927c6(0x163)](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)]['RemoveColCommandId']:{_0x2518f9=g['handleIRemoveCol'](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)]['RemoveRowCommandId']:{_0x2518f9=g[_0x1927c6(0x34e)](_0x154d2,_0x32fca8);break;}}const _0x1e9e6b=g[_0x1927c6(0x240)](_0x2518f9,_0x32fca8),_0x5490d6=this['cursorInfo'][_0x1927c6(0x302)](_0x3fb0ce);if(_0x5490d6&&_0x1e9e6b){const _0xfda9b8={..._0x5490d6,'range':_0x1e9e6b};this[_0x1927c6(0x327)][_0x1927c6(0x2b0)](_0x3fb0ce,_0xfda9b8),_0x460b24(()=>{const _0x19b7f7=_0x1927c6,_0x3aff6d=this['_refRangeService'][_0x19b7f7(0x148)](_0x1e9e6b,_0x6dd007=>(_0x3aff6d['dispose'](),_0x173805(_0x6dd007,_0x3fb0ce,_0x2e4bc2,_0x1e9e6b)));_0x499925[_0x19b7f7(0x315)](_0x3aff6d);});}return{'redos':[],'undos':[]};};this[_0x2d58a9(0x327)]['forEach']((_0x1e5b1f,_0xa342f)=>{const _0x41b971=_0x2d58a9,{range:_0x172b8b,sheetID:_0x363b63}=_0x1e5b1f,_0x49cd4a=this['_refRangeService'][_0x41b971(0x148)](_0x172b8b,_0x276ab4=>(_0x49cd4a[_0x41b971(0x265)](),_0x173805(_0x276ab4,_0xa342f,_0x363b63,_0x172b8b)));_0x499925['add'](_0x49cd4a);});};this[_0x59d3c7(0x1b4)](a[_0x59d3c7(0x1ec)](this['_cursorInfo$']['subscribe'](()=>{_0x22605e();})));}[_0x340a06(0x2a5)](){const _0x2e3a2a=_0x340a06;var _0x18ee1e,_0x20ea96;if(this[_0x2e3a2a(0x2ab)]=!0x0,((_0x18ee1e=this[_0x2e3a2a(0x247)][_0x2e3a2a(0x16d)]())==null?void 0x0:_0x18ee1e[_0x2e3a2a(0x2e9)]())!==this[_0x2e3a2a(0x30a)])return;const _0x266a21=(_0x20ea96=this[_0x2e3a2a(0x1f4)][_0x2e3a2a(0x302)](g[_0x2e3a2a(0x3ae)])['getCurrentSelections']())==null?void 0x0:_0x20ea96[0x0],_0x287e4e=this[_0x2e3a2a(0x247)][_0x2e3a2a(0x30d)](a[_0x2e3a2a(0x2d0)]['UNIVER_SHEET'])[_0x2e3a2a(0x141)]();_0x266a21&&_0x287e4e&&this['_updateLocalCursor'](_0x287e4e[_0x2e3a2a(0x1e0)](),_0x266a21);}[_0x340a06(0x1d2)](){const _0x33765e=_0x340a06;this[_0x33765e(0x2ab)]=!0x1;}};Se=it([w(0x2,a[_0x340a06(0x397)](a['Injector'])),w(0x3,a[_0x340a06(0x397)](me)),w(0x4,a[_0x340a06(0x397)](u[_0x340a06(0x2a1)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x340a06(0x1f3)]),w(0x7,a[_0x340a06(0x397)](g[_0x340a06(0x39b)]))],Se);var at=Object[_0x340a06(0x178)],ct=(_0x346634,_0x2bb372,_0x343df0,_0x470cc2)=>{for(var _0x242218=_0x470cc2>0x1?void 0x0:_0x470cc2?at(_0x2bb372,_0x343df0):_0x2bb372,_0x28601f=_0x346634['length']-0x1,_0x437f88;_0x28601f>=0x0;_0x28601f--)(_0x437f88=_0x346634[_0x28601f])&&(_0x242218=_0x437f88(_0x242218)||_0x242218);return _0x242218;},ie=(_0x5043ea,_0x5ed046)=>(_0x417666,_0x475b2b)=>_0x5ed046(_0x417666,_0x475b2b,_0x5043ea);let x=class extends a[_0x340a06(0x1ba)]{constructor(_0x146f4a,_0x41d59a,_0x479c81){const _0x3d12ab=_0x340a06;super(),h(this,_0x3d12ab(0x361),new Map()),h(this,_0x3d12ab(0x2cd),new d[(_0x3d12ab(0x308))]()),(this[_0x3d12ab(0x247)]=_0x146f4a,this[_0x3d12ab(0x1f4)]=_0x41d59a,this[_0x3d12ab(0x372)]=_0x479c81,this[_0x3d12ab(0x1e2)]());}[_0x340a06(0x265)](){const _0x1d82b1=_0x340a06;super[_0x1d82b1(0x265)](),this['_entityInit$'][_0x1d82b1(0x367)](),this[_0x1d82b1(0x361)][_0x1d82b1(0x31d)](_0x32e51e=>_0x32e51e[_0x1d82b1(0x265)]());}['getCollabCursors$'](_0x3aab2c){const _0xe9e293=_0x340a06;return this['_entities'][_0xe9e293(0x2c0)](_0x3aab2c)?this[_0xe9e293(0x361)][_0xe9e293(0x302)](_0x3aab2c)[_0xe9e293(0x2ef)]:this[_0xe9e293(0x2cd)][_0xe9e293(0x20b)](d[_0xe9e293(0x296)](_0x533a76=>_0x533a76[_0xe9e293(0x30a)]===_0x3aab2c),d['switchMap'](_0x7a5a6c=>_0x7a5a6c[_0xe9e293(0x2ef)]));}[_0x340a06(0x1e2)](){const _0x528865=_0x340a06;this[_0x528865(0x247)]['getTypeOfUnitAdded$'](a[_0x528865(0x2d0)][_0x528865(0x181)])[_0x528865(0x20b)](d['takeUntil'](this['dispose$']))[_0x528865(0x17b)](async _0x3883d8=>{const _0x5b7c07=_0x528865,_0x306490=_0x3883d8[_0x5b7c07(0x2e9)](),_0x4c6d8a=await this[_0x5b7c07(0x2f9)](_0x306490);this[_0x5b7c07(0x2cd)][_0x5b7c07(0x1e4)](_0x4c6d8a),this[_0x5b7c07(0x361)][_0x5b7c07(0x2b0)](_0x306490,_0x4c6d8a);}),this[_0x528865(0x247)][_0x528865(0x2fd)](a[_0x528865(0x2d0)]['UNIVER_DOC'])[_0x528865(0x20b)](d[_0x528865(0x33f)](this['dispose$']))[_0x528865(0x20b)](d[_0x528865(0x296)](_0x3db17e=>!_0x3db17e[_0x528865(0x2e9)]()[_0x528865(0x186)]('__')))[_0x528865(0x17b)](async _0x178d01=>{const _0x5a4f15=_0x528865,_0x4e808d=_0x178d01['getUnitId'](),_0x571119=await this['_startDocCollabCursor'](_0x4e808d);this[_0x5a4f15(0x2cd)][_0x5a4f15(0x1e4)](_0x571119),this[_0x5a4f15(0x361)]['set'](_0x4e808d,_0x571119);}),d[_0x528865(0x3cc)](this[_0x528865(0x247)][_0x528865(0x162)](a[_0x528865(0x2d0)][_0x528865(0x203)]),this[_0x528865(0x247)][_0x528865(0x162)](a[_0x528865(0x2d0)][_0x528865(0x181)]))[_0x528865(0x20b)](d[_0x528865(0x33f)](this[_0x528865(0x15d)]))[_0x528865(0x17b)](_0x279fa0=>{const _0x38e705=_0x528865,_0x2b546e=_0x279fa0[_0x38e705(0x2e9)](),_0x18d54e=this['_entities'][_0x38e705(0x302)](_0x2b546e);_0x18d54e&&(_0x18d54e[_0x38e705(0x265)](),this[_0x38e705(0x361)][_0x38e705(0x142)](_0x2b546e));});}async[_0x340a06(0x2f9)](_0x537444){const _0x412ddf=_0x340a06,_0x11febd=await this['_collabSessionService'][_0x412ddf(0x184)](_0x537444),_0x111b99=this['_injector'][_0x412ddf(0x17a)](Se,_0x537444,_0x11febd);return _0x111b99[_0x412ddf(0x3aa)](),_0x111b99;}async[_0x340a06(0x2b3)](_0x51aa6f){const _0x36546a=_0x340a06,_0x1b88a2=await this[_0x36546a(0x372)][_0x36546a(0x184)](_0x51aa6f),_0x280d6c=this[_0x36546a(0x1f4)][_0x36546a(0x17a)](fe,_0x51aa6f,_0x1b88a2);return _0x280d6c['init'](),_0x280d6c;}};x=ct([ie(0x0,a[_0x340a06(0x333)]),ie(0x1,a[_0x340a06(0x397)](a['Injector'])),ie(0x2,a[_0x340a06(0x397)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3edf50,_0x51f315){const _0x25646b=_0x340a06;let {radius:_0x29ea8f,width:_0x2e4dd8,height:_0x375e73}=_0x51f315;_0x29ea8f=_0x29ea8f!=null?_0x29ea8f:0x0,_0x2e4dd8=_0x2e4dd8!=null?_0x2e4dd8:0x1e,_0x375e73=_0x375e73!=null?_0x375e73:0x1e;let _0x26d692=0x0,_0x4815bd=0x0,_0x22d80f=0x0;_0x26d692=_0x4815bd=_0x22d80f=Math['min'](_0x29ea8f,_0x2e4dd8/0x2,_0x375e73/0x2),_0x3edf50[_0x25646b(0x183)](),_0x3edf50['moveTo'](_0x26d692,0x0),_0x3edf50['lineTo'](_0x2e4dd8-_0x4815bd,0x0),_0x3edf50[_0x25646b(0x153)](_0x2e4dd8-_0x4815bd,_0x4815bd,_0x4815bd,Math['PI']*0x3/0x2,0x0,!0x1),_0x3edf50[_0x25646b(0x252)](_0x2e4dd8,_0x375e73-_0x22d80f),_0x3edf50[_0x25646b(0x153)](_0x2e4dd8-_0x22d80f,_0x375e73-_0x22d80f,_0x22d80f,0x0,Math['PI']/0x2,!0x1),_0x3edf50[_0x25646b(0x252)](0x0,_0x375e73),_0x3edf50['lineTo'](0x0,_0x26d692),_0x3edf50[_0x25646b(0x153)](_0x26d692,_0x26d692,_0x26d692,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3edf50[_0x25646b(0x2ea)](),_0x51f315['fill']&&(_0x3edf50[_0x25646b(0x180)](),_0x3edf50[_0x25646b(0x260)]=_0x51f315[_0x25646b(0x154)],_0x51f315['fillRule']===_0x25646b(0x3a8)?_0x3edf50[_0x25646b(0x154)](_0x25646b(0x3a8)):_0x3edf50[_0x25646b(0x154)](),_0x3edf50[_0x25646b(0x1a0)]());}class ee extends p[_0x340a06(0x2ee)]{constructor(_0x21b3f4,_0x50b5d5){const _0xdacf98=_0x340a06;super(_0x21b3f4,_0x50b5d5),h(this,_0xdacf98(0x2e6)),h(this,'text'),(this[_0xdacf98(0x2e6)]=_0x50b5d5==null?void 0x0:_0x50b5d5[_0xdacf98(0x2e6)],this[_0xdacf98(0x395)]=_0x50b5d5==null?void 0x0:_0x50b5d5[_0xdacf98(0x395)]);}static[_0x340a06(0x2de)](_0x118777,_0xa3d5fb){const _0x1e707a=_0x340a06,{text:_0x35f4c8,color:_0x5bb355}=_0xa3d5fb;_0x118777[_0x1e707a(0x180)](),_0x118777['font']=_0x1e707a(0x36d);const _0x5c237c=_0x118777['measureText'](_0x35f4c8)['width'],_0x3aff69=Math[_0x1e707a(0x312)](_0x5c237c+0x2*ne,Re);_t(_0x118777,{'height':K,'radius':0x4,'width':_0x3aff69,'fill':_0x5bb355}),_0x118777['fillStyle']=_0x1e707a(0x16b);const _0x285355=ne,_0x4ee27f=K-lt,_0x82c973=Re-0x2*ne;if(_0x5c237c>_0x82c973){let _0x1d953f='',_0x5e5624=0x0;for(const _0x329483 of _0x35f4c8){const _0x13e7ee=_0x118777[_0x1e707a(0x1db)](_0x329483)[_0x1e707a(0x2b9)];if(_0x5e5624+_0x13e7ee<=_0x82c973-_0x118777['measureText']('...')[_0x1e707a(0x2b9)])_0x1d953f+=_0x329483,_0x5e5624+=_0x13e7ee;else{_0x1d953f+=_0x1e707a(0x24c);break;}}_0x118777[_0x1e707a(0x2ff)](_0x1d953f,_0x285355,_0x4ee27f);}else _0x118777[_0x1e707a(0x2ff)](_0x35f4c8,_0x285355,_0x4ee27f);_0x118777[_0x1e707a(0x1a0)]();}['_draw'](_0x5b7762){const _0x5e58c3=_0x340a06;ee[_0x5e58c3(0x2de)](_0x5b7762,this);}}const re='collab-text-anchor-',ht='collab-text-range-',ut=_0x340a06(0x28f),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x340a06(0x1a1);class De{constructor(_0x2998ff,_0x20c6f3,_0x19bdd5,_0x13ebb1){const _0x265ae7=_0x340a06;h(this,'_shapes',[]),h(this,_0x265ae7(0x399),null),h(this,_0x265ae7(0x31b),null),h(this,_0x265ae7(0x300),null),h(this,_0x265ae7(0x269),null),h(this,_0x265ae7(0x160),null),(this[_0x265ae7(0x30f)]=_0x2998ff,this[_0x265ae7(0x289)]=_0x20c6f3,this[_0x265ae7(0x379)]=_0x19bdd5,this[_0x265ae7(0x392)]=_0x13ebb1,this[_0x265ae7(0x3c5)]());}set['_hover'](_0x2af75a){const _0x47cf97=_0x340a06;_0x2af75a?(this[_0x47cf97(0x300)]&&this['_anchorDot'][_0x47cf97(0x39a)](),this[_0x47cf97(0x31b)]&&this[_0x47cf97(0x31b)][_0x47cf97(0x14d)]()):(this[_0x47cf97(0x300)]&&this[_0x47cf97(0x300)]['show'](),this[_0x47cf97(0x31b)]&&this[_0x47cf97(0x31b)][_0x47cf97(0x39a)]());}[_0x340a06(0x265)](){const _0x59298d=_0x340a06;for(const _0x28e5f6 of this[_0x59298d(0x161)])_0x28e5f6[_0x59298d(0x265)]();this[_0x59298d(0x31b)]&&this[_0x59298d(0x31b)]['dispose'](),this[_0x59298d(0x300)]&&this[_0x59298d(0x300)][_0x59298d(0x265)](),this[_0x59298d(0x399)]&&this[_0x59298d(0x399)]['dispose'](),this[_0x59298d(0x160)]&&this['_eventUnsubscribe']();}[_0x340a06(0x3c5)](){const _0x5dc859=_0x340a06;var _0xb1fb2d;const {_docSkeleton:_0x569d0c,_document:_0x288428}=this,{color:_0x39bf70,name:_0xaa97fa,ranges:_0x5bb2e5}=this[_0x5dc859(0x30f)],_0x4771d3=_0x288428[_0x5dc859(0x1b8)](),{docsLeft:_0x55a8dc,docsTop:_0x17ab96}=_0x4771d3,_0x83b4cb=new b[(_0x5dc859(0x242))](_0x4771d3,_0x569d0c);for(const {startOffset:_0x255940,endOffset:_0x107b24,rangeType:_0x1d5f30,segmentId:_0x3918ff,segmentPage:_0x248ff6,collapsed:_0x516a8e,isActive:_0x5cbe37}of _0x5bb2e5){const _0x92c889=_0x569d0c[_0x5dc859(0x19c)](_0x255940,!0x0,_0x3918ff,_0x248ff6);let _0x376240=_0x569d0c[_0x5dc859(0x19c)](_0x107b24,!0x0,_0x3918ff,_0x248ff6);if(_0x376240==null&&(_0x376240=_0x569d0c[_0x5dc859(0x19c)](_0x107b24-0x1,!0x1,_0x3918ff,_0x248ff6)),_0x5cbe37){const {contentBoxPointGroup:_0x32f9e1}=_0x83b4cb[_0x5dc859(0x15f)](_0x376240,_0x376240);if(_0x32f9e1['length']===0x0)continue;this[_0x5dc859(0x343)](_0x39bf70,_0x32f9e1,_0x55a8dc,_0x17ab96,_0xaa97fa),this[_0x5dc859(0x160)]=this['_handleHover']();}if(_0x92c889&&_0x376240){if(_0x1d5f30===a[_0x5dc859(0x1fc)]['RECT']){const _0x3ad42e=new b[(_0x5dc859(0x19d))](_0x4771d3,_0x569d0c),{pointGroup:_0x4e205e}=(_0xb1fb2d=_0x3ad42e[_0x5dc859(0x15f)](_0x92c889,_0x376240))!=null?_0xb1fb2d:{};if(_0x4e205e==null||_0x4e205e['length']===0x0)continue;this[_0x5dc859(0x2f3)](_0x39bf70,_0x4e205e,_0x55a8dc,_0x17ab96);}else{if(!_0x516a8e){const {borderBoxPointGroup:_0x617592}=_0x83b4cb[_0x5dc859(0x15f)](_0x92c889,_0x376240);if(_0x617592[_0x5dc859(0x36b)]===0x0)continue;this[_0x5dc859(0x18e)](_0x39bf70,_0x617592,_0x55a8dc,_0x17ab96);}}}}}[_0x340a06(0x343)](_0x3da1e4,_0x1912b9,_0x28f630,_0x339f5f,_0x5e98ff){const _0x325146=_0x340a06,_0x5c5903=this[_0x325146(0x309)](_0x1912b9),{left:_0x52e57e,top:_0x3a3ce7,height:_0xca6c57}=_0x5c5903,_0x3ad2b6=this[_0x325146(0x369)](),_0x18005e=ft/_0x3ad2b6,_0x4e6cf6=new p[(_0x325146(0x26a))](re+a[_0x325146(0x382)][_0x325146(0x172)](k),{'left':_0x52e57e+_0x28f630-_0x18005e,'top':_0x3a3ce7+_0x339f5f,'height':_0xca6c57,'width':dt,'fill':_0x3da1e4||p['getColor'](a[_0x325146(0x357)][_0x325146(0x15a)],0x0),'strokeWidth':_0x18005e,'stroke':St,'evented':!0x0});this['_anchor']=_0x4e6cf6,this[_0x325146(0x289)][_0x325146(0x39d)](_0x4e6cf6,b[_0x325146(0x1d4)]);const _0x3e8989=new p['Rect'](re+a[_0x325146(0x382)]['generateRandomId'](k),{'left':_0x52e57e+_0x28f630-_0x18005e,'top':_0x3a3ce7+_0x339f5f-oe/0x2,'height':oe,'width':oe,'fill':_0x3da1e4||p[_0x325146(0x37f)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x3da1e4||p[_0x325146(0x37f)](a[_0x325146(0x357)]['black'],0x0),'evented':!0x1});this[_0x325146(0x300)]=_0x3e8989,this[_0x325146(0x289)][_0x325146(0x39d)](_0x3e8989,b[_0x325146(0x1d4)]);const _0x213c6e=new ee(re+a['Tools'][_0x325146(0x172)](k),{'left':_0x52e57e+_0x28f630-_0x18005e,'top':_0x3a3ce7+_0x339f5f-K,'text':_0x5e98ff,'color':_0x3da1e4});this[_0x325146(0x31b)]=_0x213c6e,this['_scene'][_0x325146(0x39d)](_0x213c6e,b[_0x325146(0x1d4)]),this['_hover']=!0x1;}[_0x340a06(0x2d7)](){const _0x3c7be1=_0x340a06,_0x4bea01=this[_0x3c7be1(0x399)]['onPointerEnter$'][_0x3c7be1(0x3bf)](()=>{const _0x588e6b=_0x3c7be1;this[_0x588e6b(0x27a)]=!0x0;}),_0x4aa030=this[_0x3c7be1(0x399)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x278df8=_0x3c7be1;this[_0x278df8(0x269)]&&clearTimeout(this['_hideTimer']),this[_0x278df8(0x269)]=setTimeout(()=>{const _0x288421=_0x278df8;this[_0x288421(0x27a)]=!0x1;},0x7d0);});return()=>{const _0x3eda69=_0x3c7be1;_0x4bea01[_0x3eda69(0x2b7)](),_0x4aa030[_0x3eda69(0x2b7)]();};}[_0x340a06(0x18e)](_0x441b4b,_0x3ad423,_0x1c602c,_0x7d3098){const _0x350683=_0x340a06,_0x5a2a7f=new a[(_0x350683(0x251))](_0x441b4b)[_0x350683(0x140)](0.2)['toRgbString'](),_0x5d9b44=new p['RegularPolygon'](ht+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x3ad423,'fill':_0x5a2a7f||p[_0x350683(0x37f)](a[_0x350683(0x357)][_0x350683(0x15a)],0.2),'left':_0x1c602c,'top':_0x7d3098,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x350683(0x244)](_0x5d9b44),this[_0x350683(0x289)][_0x350683(0x39d)](_0x5d9b44,b[_0x350683(0x1d4)]);}['_drawRectRange'](_0x4898b0,_0x20e243,_0x17f911,_0x35a47d){const _0x2acefd=_0x340a06,_0x503f01=new a[(_0x2acefd(0x251))](_0x4898b0)['setAlpha'](0.2)[_0x2acefd(0x1c1)](),_0x240a74=new p[(_0x2acefd(0x3b8))](ut+a[_0x2acefd(0x382)][_0x2acefd(0x172)](k),{'pointsGroup':_0x20e243,'fill':_0x503f01||p['getColor'](a[_0x2acefd(0x357)]['black'],0.2),'left':_0x17f911,'top':_0x35a47d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2acefd(0x161)][_0x2acefd(0x244)](_0x240a74),this[_0x2acefd(0x289)][_0x2acefd(0x39d)](_0x240a74,b['TEXT_RANGE_LAYER_INDEX']);}[_0x340a06(0x309)](_0x3ad71a){const _0x1a0f7b=_0x3ad71a[0x0],_0x59c6ef=_0x1a0f7b[0x0],_0x470985=_0x1a0f7b[0x2],{x:_0x50bcd7,y:_0x35ce4d}=_0x59c6ef,{x:_0x4cb906,y:_0x584989}=_0x470985;return{'left':_0x50bcd7,'top':_0x35ce4d,'width':_0x4cb906-_0x50bcd7,'height':_0x584989-_0x35ce4d};}[_0x340a06(0x369)](){const _0x24e316=_0x340a06,{scaleX:_0x4dedbd,scaleY:_0x5bd966}=this[_0x24e316(0x289)][_0x24e316(0x354)]();return Math[_0x24e316(0x208)](_0x4dedbd,_0x5bd966);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x2bff76,_0x3b4694,_0x1d77ba,_0x1252b0)=>{const _0x5e80e6=_0x340a06;for(var _0x586863=_0x1252b0>0x1?void 0x0:_0x1252b0?It(_0x3b4694,_0x1d77ba):_0x3b4694,_0x29c147=_0x2bff76[_0x5e80e6(0x36b)]-0x1,_0x12703c;_0x29c147>=0x0;_0x29c147--)(_0x12703c=_0x2bff76[_0x29c147])&&(_0x586863=_0x12703c(_0x586863)||_0x586863);return _0x586863;},W=(_0x5e14e2,_0x3053c0)=>(_0xd20c72,_0x51a988)=>_0x3053c0(_0xd20c72,_0x51a988,_0x5e14e2);let Ie=class extends a[_0x340a06(0x1ba)]{constructor(_0x619223,_0x34523a,_0x2c40ac,_0x2994d0,_0x2550d2){const _0x69c649=_0x340a06;super(),h(this,_0x69c649(0x32a),[]),h(this,_0x69c649(0x2e8),[]),(this[_0x69c649(0x288)]=_0x619223,this[_0x69c649(0x155)]=_0x34523a,this[_0x69c649(0x36a)]=_0x2c40ac,this[_0x69c649(0x34c)]=_0x2994d0,this[_0x69c649(0x169)]=_0x2550d2,this['_init']());}[_0x340a06(0x1e2)](){const _0x3a4b88=_0x340a06,_0x3cc4fe=this['_context'][_0x3a4b88(0x36f)],_0xa9bb52=this[_0x3a4b88(0x155)];this['disposeWithMe'](d[_0x3a4b88(0x2dc)]([this[_0x3a4b88(0x36a)][_0x3a4b88(0x39f)](_0x3cc4fe),this[_0x3a4b88(0x169)][_0x3a4b88(0x1c9)]])[_0x3a4b88(0x20b)]($[_0x3a4b88(0x35f)](([_0x23a803,_0x30ed16])=>({'skeleton':_0xa9bb52[_0x3a4b88(0x28d)](),'cursors':[..._0x23a803[_0x3a4b88(0x313)]()]['flatMap'](_0x41e6c2=>({..._0x41e6c2,'color':this['_themeService'][_0x3a4b88(0x272)](_0x41e6c2[_0x3a4b88(0x2e6)])}))})))['subscribe'](_0x24d07c=>{const _0x5da054=_0x3a4b88;if(this[_0x5da054(0x2c7)](),_0x24d07c){const {skeleton:_0x5c52d7,cursors:_0x4b8d7d}=_0x24d07c;this[_0x5da054(0x2c8)](_0x5c52d7,_0x4b8d7d);}})),this[_0x3a4b88(0x278)](),this[_0x3a4b88(0x1d1)]();}[_0x340a06(0x2c8)](_0x51ae5a,_0x1be846){const _0x1f3755=_0x340a06,{scene:_0x37ac83,mainComponent:_0x58c24b}=this[_0x1f3755(0x288)],_0x27e1eb=_0x1be846[_0x1f3755(0x35f)](_0x16e446=>new De(_0x16e446,_0x37ac83,_0x51ae5a,_0x58c24b));this['_cursorShapes']=_0x27e1eb,this[_0x1f3755(0x2e8)]=_0x1be846;}[_0x340a06(0x1a4)](){const _0x440f33=_0x340a06;this[_0x440f33(0x2c7)]();const {scene:_0x5076d8,mainComponent:_0x1c73a8}=this[_0x440f33(0x288)],_0x2983f1=this[_0x440f33(0x155)]['getSkeleton'](),_0x228d3b=this[_0x440f33(0x2e8)][_0x440f33(0x35f)](_0x2470f4=>new De(_0x2470f4,_0x5076d8,_0x2983f1,_0x1c73a8));this[_0x440f33(0x32a)]=_0x228d3b;}['_removeCollabCursors'](){const _0x28b77b=_0x340a06;this['_cursorShapes']['forEach'](_0xe79936=>_0xe79936[_0x28b77b(0x265)]()),this[_0x28b77b(0x32a)]=[];}[_0x340a06(0x1d1)](){const _0x494bf1=_0x340a06,_0x5e131e=[b[_0x494bf1(0x2cc)]['id']];this[_0x494bf1(0x1b4)](this['_commandService'][_0x494bf1(0x1d9)](_0x1dd83e=>{const _0x28c1c4=_0x494bf1;_0x5e131e[_0x28c1c4(0x3a0)](_0x1dd83e['id'])&&_0x1dd83e[_0x28c1c4(0x258)][_0x28c1c4(0x36f)]===this[_0x28c1c4(0x288)][_0x28c1c4(0x36f)]&&this[_0x28c1c4(0x1a4)]();}));}[_0x340a06(0x278)](){const _0x226121=_0x340a06;this[_0x226121(0x1b4)](a[_0x226121(0x1c4)](this[_0x226121(0x288)][_0x226121(0x2aa)][_0x226121(0x27d)])[_0x226121(0x20b)]($[_0x226121(0x296)](_0x5dda4f=>_0x5dda4f[_0x226121(0x1b0)]===p[_0x226121(0x14b)][_0x226121(0x2e1)]),$[_0x226121(0x20c)](0x10))[_0x226121(0x17b)](()=>{const _0x1c854b=_0x226121;this[_0x1c854b(0x1a4)]();}));}};Ie=vt([W(0x1,a[_0x340a06(0x397)](Y[_0x340a06(0x19e)])),W(0x2,a[_0x340a06(0x397)](x)),W(0x3,a[_0x340a06(0x1f3)]),W(0x4,a[_0x340a06(0x397)](a[_0x340a06(0x23b)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p['Shape']{constructor(_0x5736ef,_0x36c56a){const _0x113ec7=_0x340a06;super(_0x5736ef,_0x36c56a),h(this,_0x113ec7(0x1ea)),h(this,_0x113ec7(0x152),!0x1),h(this,_0x113ec7(0x1ee)),h(this,'_name',''),h(this,_0x113ec7(0x311),_0x113ec7(0x33c)),h(this,_0x113ec7(0x23d)),(_0x36c56a&&this[_0x113ec7(0x324)](_0x36c56a),this['onPointerEnter$'][_0x113ec7(0x3bf)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x113ec7(0x3b3)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x340a06(0x324)](_0x28dd26){const _0x3dfd13=_0x340a06;var _0x45ab52,_0x18c81d,_0xdb840b,_0x9f762b,_0x1dbb7f,_0x3f2e8f;this[_0x3dfd13(0x1ea)]=(_0x45ab52=_0x28dd26[_0x3dfd13(0x2e6)])!=null?_0x45ab52:this[_0x3dfd13(0x1ea)],this[_0x3dfd13(0x152)]=(_0x18c81d=_0x28dd26[_0x3dfd13(0x362)])!=null?_0x18c81d:this[_0x3dfd13(0x152)],this[_0x3dfd13(0x1ee)]=(_0xdb840b=_0x28dd26[_0x3dfd13(0x1cb)])!=null?_0xdb840b:this[_0x3dfd13(0x1ee)],this['_name']=(_0x9f762b=_0x28dd26[_0x3dfd13(0x29a)])!=null?_0x9f762b:this[_0x3dfd13(0x3bc)],this[_0x3dfd13(0x311)]=(_0x1dbb7f=_0x28dd26['labelPosition'])!=null?_0x1dbb7f:this['_labelPosition'],this[_0x3dfd13(0x23d)]=(_0x3f2e8f=_0x28dd26[_0x3dfd13(0x348)])!=null?_0x3f2e8f:this['_backgroundColor'],this[_0x3dfd13(0x359)]({'width':_0x28dd26[_0x3dfd13(0x2b9)],'height':_0x28dd26[_0x3dfd13(0x243)]});}[_0x340a06(0x326)](_0x485cdc){const _0x40f928=_0x340a06,{row:_0x367576,column:_0xd1ec1b}=_0x485cdc;if(_0x367576>=this[_0x40f928(0x1ee)][_0x40f928(0x239)]&&_0x367576<=this[_0x40f928(0x1ee)][_0x40f928(0x1e9)]&&_0xd1ec1b>=this[_0x40f928(0x1ee)][_0x40f928(0x264)]&&_0xd1ec1b<=this[_0x40f928(0x1ee)][_0x40f928(0x185)]){this[_0x40f928(0x324)]({'hovered':!0x0});return;}this[_0x40f928(0x324)]({'hovered':!0x1});}[_0x340a06(0x18c)](_0x281abd){return!0x1;}[_0x340a06(0x275)](_0x390b05){const _0x20df8d=_0x340a06;p[_0x20df8d(0x26a)][_0x20df8d(0x2de)](_0x390b05,{'width':this[_0x20df8d(0x2b9)],'height':this[_0x20df8d(0x243)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x20df8d(0x23d)]}),this[_0x20df8d(0x152)]&&(_0x390b05[_0x20df8d(0x180)](),_0x390b05[_0x20df8d(0x2bd)](0x1,0x0,0x0,0x1,this[_0x20df8d(0x2b9)],this[_0x20df8d(0x311)]===_0x20df8d(0x19b)?0x0:-0x14),ee[_0x20df8d(0x2de)](_0x390b05,{'text':this[_0x20df8d(0x3bc)],'color':this[_0x20df8d(0x1ea)]}),_0x390b05[_0x20df8d(0x1a0)]());}}var Ct=Object[_0x340a06(0x178)],pt=(_0x4122c4,_0x3aeb47,_0x45eed5,_0x88ce44)=>{const _0xd58b57=_0x340a06;for(var _0x1aaf51=_0x88ce44>0x1?void 0x0:_0x88ce44?Ct(_0x3aeb47,_0x45eed5):_0x3aeb47,_0x3ea808=_0x4122c4[_0xd58b57(0x36b)]-0x1,_0x10ce48;_0x3ea808>=0x0;_0x3ea808--)(_0x10ce48=_0x4122c4[_0x3ea808])&&(_0x1aaf51=_0x10ce48(_0x1aaf51)||_0x1aaf51);return _0x1aaf51;},ae=(_0x4b43f0,_0x2938f6)=>(_0x213b7c,_0x1b8312)=>_0x2938f6(_0x213b7c,_0x1b8312,_0x4b43f0);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x513997,_0x13c766,_0x1b977b,_0x2e5224){const _0x4365e6=_0x340a06;super(),h(this,_0x4365e6(0x2e8),new Set()),h(this,_0x4365e6(0x3be),null),(this[_0x4365e6(0x288)]=_0x513997,this[_0x4365e6(0x290)]=_0x13c766,this[_0x4365e6(0x36a)]=_0x1b977b,this[_0x4365e6(0x169)]=_0x2e5224,this['_init']());}[_0x340a06(0x1e2)](){const _0x4d2bf3=_0x340a06;this['_sheetSkeletonManagerService'][_0x4d2bf3(0x210)][_0x4d2bf3(0x20b)]($[_0x4d2bf3(0x33f)](this[_0x4d2bf3(0x15d)]),$[_0x4d2bf3(0x1ab)](_0x4017fb=>{const _0x261d38=_0x4d2bf3;if(_0x4017fb){const _0x3e26f9=_0x4017fb['sheetId'];return d[_0x261d38(0x2dc)](this['_collabCursorController']['getCollabCursors$'](this[_0x261d38(0x288)][_0x261d38(0x36f)]),this['_themeService'][_0x261d38(0x1c9)])[_0x261d38(0x20b)]($[_0x261d38(0x35f)](([_0x426b1a,_0x33720d])=>{const _0x2542f9=_0x261d38,_0x41d338=new Map();return _0x426b1a[_0x2542f9(0x31d)]((_0x26191c,_0x439d8f)=>{const _0x2cf7e7=_0x2542f9;if(_0x26191c['sheetID']===_0x3e26f9){const _0x2e2219={..._0x26191c};_0x2e2219[_0x2cf7e7(0x2e6)]=this[_0x2cf7e7(0x169)][_0x2cf7e7(0x272)](_0x26191c[_0x2cf7e7(0x2e6)]),_0x41d338['set'](_0x439d8f,_0x2e2219);}}),{'skeleton':_0x4017fb,'cursors':_0x41d338};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x4d2bf3(0x17b)](({skeleton:_0x52527f,cursors:_0x3ffb2f})=>{const _0x53f04c=_0x4d2bf3;this['_removeCollabCursors'](),_0x52527f&&this[_0x53f04c(0x2c8)](_0x52527f,_0x3ffb2f);}),this[_0x4d2bf3(0x290)][_0x4d2bf3(0x210)][_0x4d2bf3(0x17b)](_0x51f297=>{const _0x3f901f=_0x4d2bf3;if(_0x51f297==null)return;const {skeleton:_0xa9bfc0}=_0x51f297,{scene:_0x45762c}=this[_0x3f901f(0x288)];_0x45762c['onPointerMove$']['subscribeEvent'](a['debounce'](_0x574ba0=>{const _0x262259=_0x3f901f;var _0x2f503a,_0x587a34;const {offsetX:_0x1e1be6,offsetY:_0x24d66d}=_0x574ba0,{x:_0x3e1d0b,y:_0x71aead}=_0x45762c[_0x262259(0x22a)](p[_0x262259(0x257)]['FromArray']([_0x1e1be6,_0x24d66d])),{scaleX:_0x7ac698,scaleY:_0x2366e3}=_0x45762c[_0x262259(0x354)](),_0xbcd216=_0x45762c[_0x262259(0x375)](p[_0x262259(0x1a9)]['VIEW_MAIN']),_0x9ad944=_0x45762c[_0x262259(0x3b4)](p[_0x262259(0x257)][_0x262259(0x282)]([_0x3e1d0b,_0x71aead]),_0xbcd216),_0x19a9b5=_0xa9bfc0[_0x262259(0x301)](_0x1e1be6,_0x24d66d,_0x7ac698,_0x2366e3,_0x9ad944);((_0x2f503a=this[_0x262259(0x3be)])==null?void 0x0:_0x2f503a[_0x262259(0x323)])===_0x19a9b5['column']&&((_0x587a34=this[_0x262259(0x3be)])==null?void 0x0:_0x587a34[_0x262259(0x35e)])===_0x19a9b5[_0x262259(0x35e)]||this[_0x262259(0x2e8)][_0x262259(0x31d)](_0x294c86=>{const _0x3efb3a=_0x262259;_0x294c86[_0x3efb3a(0x326)](_0x19a9b5);});},0x64));});}[_0x340a06(0x2c8)](_0x7bbb57,_0x2343b4){const _0x240cc4=_0x340a06;var _0x22b0ed;const _0x538d16=(_0x22b0ed=this[_0x240cc4(0x290)][_0x240cc4(0x363)]())==null?void 0x0:_0x22b0ed[_0x240cc4(0x18f)];if(!_0x538d16)return;const _0x29b225=this['_getSheetObject']();if(!_0x29b225)return;this[_0x240cc4(0x2e8)][_0x240cc4(0x31d)](_0x2ba52c=>{const _0x4d7959=_0x240cc4;_0x2ba52c[_0x4d7959(0x2f1)]();});const {scene:_0x4897bf}=_0x29b225,_0x17426c=Et(Array['from'](_0x2343b4['values']()))[_0x240cc4(0x35f)](_0x42b50d=>{const _0x1645af=_0x240cc4,{color:_0x3feead,range:_0x44fcf7,name:_0x2144c2,selection:_0x15adfa,sheetID:_0x55daf9}=_0x42b50d,{startColumn:_0x328a91,startRow:_0x43495d,endColumn:_0x41686d,endRow:_0x4fcb8b}=_0x44fcf7,_0x2abf6a=X['getCoordByCell'](_0x43495d,_0x328a91,_0x4897bf,_0x538d16),_0x261214=X[_0x1645af(0x3c4)](_0x4fcb8b,_0x41686d,_0x4897bf,_0x538d16),{columnHeaderHeightAndMarginTop:_0x593130}=_0x538d16,{startX:_0x4d9427,startY:_0xe1395f}=_0x2abf6a,{endX:_0x2cbf2c,endY:_0x4475ca}=_0x261214,_0x42bbb6=_0x2cbf2c-_0x4d9427,_0x3d0c58=_0x4475ca-_0xe1395f,_0x3daebc={'labelPosition':_0xe1395f-_0x593130>=K?_0x1645af(0x33c):'bottom','sheetID':_0x55daf9,'range':_0x44fcf7,'color':_0x3feead,'name':_0x2144c2,'selection':_0x15adfa,'left':_0x4d9427,'top':_0xe1395f,'width':_0x42bbb6,'height':_0x3d0c58,'evented':!0x1,'zIndex':bt};return new Ae(_0x2144c2,_0x3daebc);});_0x4897bf[_0x240cc4(0x292)](_0x17426c,gt),this['_cursors']=new Set(_0x17426c);}[_0x340a06(0x2c7)](){const _0x22805c=_0x340a06;var _0x2ee3af;(_0x2ee3af=this[_0x22805c(0x2e8)])==null||_0x2ee3af['forEach'](_0x4ee70b=>_0x4ee70b[_0x22805c(0x265)]());}[_0x340a06(0x1be)](){const _0x1c461e=_0x340a06;return X[_0x1c461e(0x316)](this['_context'][_0x1c461e(0x15b)],this[_0x1c461e(0x288)]);}};ve=pt([ae(0x1,a[_0x340a06(0x397)](X[_0x340a06(0x34f)])),ae(0x2,a[_0x340a06(0x397)](x)),ae(0x3,a[_0x340a06(0x397)](a[_0x340a06(0x23b)]))],ve);function Et(_0x2a7095){const _0x25aa49=_0x340a06,_0x24362b=new Map();return _0x2a7095[_0x25aa49(0x31d)](_0x43a73f=>{const _0x4efa57=_0x25aa49;if(_0x24362b[_0x4efa57(0x2c0)](_0x43a73f[_0x4efa57(0x1af)])){const _0x32ce3b=_0x24362b[_0x4efa57(0x302)](_0x43a73f[_0x4efa57(0x1af)]);_0x32ce3b[_0x4efa57(0x29a)]+=',\x20'+_0x43a73f[_0x4efa57(0x29a)];}else _0x24362b['set'](_0x43a73f[_0x4efa57(0x1af)],_0x43a73f);}),Array[_0x25aa49(0x3ad)](_0x24362b[_0x25aa49(0x313)]());}function _0x1d2d(){const _0x52c15a=['updateOfflineData','session.collaboration-timeout','function','IUniverInstanceService','YUUMI_NO_CUBOID_FOR_QUESTION','_heartbeatTimer','INVALID_ARGUMENT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_saveTaskMap','getLocalCacheKey','OTHER_CLIENT_EDITING','on-line-single_clip0_910_349','top','getParam','UniverIcon','takeUntil','RECT','concat','OffLineSingle','_drawAnchor','_initStatusComponent','WebURLService','_config','searchParams','backgroundColor','roomMembers$','xlink:href','fromEvent','_commandService','2106UrqOkN','handleIRemoveRow','SheetSkeletonManagerService','CONNECTOR_DATA_TOO_LARGE','_updateURLWithCurrentState','169010bQWtxQ','collabStatus.offline','getAncestorScale','_handleHeartbeatEvent','urlChange$','COLORS','ILocalCacheService','transformByState','transformStateCache','14487022LMMQpc','memberID','transformMutation','row','map','then','_entities','hovered','getCurrent','saveTaskMap','_handleEvent','225kuhYBD','complete','some','_getScale','_collabCursorController','length','session.connection-failed','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_renderManagerService','unitId','RevisionService','308022CKpZUa','_collabSessionService','APPLY_REVISION_CONFILICT','_transformHistoryAndStateStack','getViewport','onStarting','transformRemoteChangeset','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docSkeleton','setUndoRedoMutationParamsCache','LICENSE_EXPORT_SIZE_EXCEEDED','collabStatus.synced','wsSessionTicketUrl','blue.400','getColor','useDependency','MOBILE_HAS_BEEN_BOUND','Tools','CONFLICT','syncEditingCollabCursor','_handleLeaveEvent','APPLY_NON_SEQUENTIAL_REVISION','apply','mapTo','BrowserCollaborationSocketService','RichTextEditingMutation','CollaborationUIEventId','getCurrentRevOfUnit','collaboration.closeRoom','JOIN_ROOM_FAILED','search','_cursorInfo$','body','_document','_clearOtherTimers','_docTransformSelectionsService','text','className','Inject','@univerjs/core','_anchor','hide','RefRangeService','collabStatus.syncing','addObject','_configService','getCollabCursors$','includes','CommandType','IMessageService','InsertRangeMoveRightCommandId','Workbook','popstate','INotificationService','_logService','evenodd','getSheetBySheetId','init','result','_assignedColors','from','SheetsSelectionsService','ACTIVE_UNIT_EVENT_CHANNEL','CollaborationStatus','SNAPSHOT_HAS_BEEN_REMOVED','string','onPointerLeave$','getVpScrollXYInfoByPosToVp','DataLoaderService','attrs','_removeClearOtherTimer','RegularPolygon','0\x200\x2017\x2016','getUnitStatus$','ISnapshotServerService','_name','handleInsertRangeMoveRight','_lastPointer','subscribeEvent','Error','IURLService','collabStatus.notCollab','M0\x200H16V16H0z','getCoordByCell','_render','@univerjs/engine-render','DeleteRangeMoveUpCommandId','@univerjs/engine-formula','_registerDependencies','Module','newValue','merge','split','saveImage','setAlpha','getActiveSheet','delete','_getSaveTimeout','getMember','_httpService','_onCursorUpdate','jsx','registerRefRange','IRemoteInstanceService','debounceTime','TRANSFORM_CHANGE_OBSERVABLE_TYPE','WECHAT_HAS_BEEN_BOUND','show','connectInjector','_status$','Failed','CollaborationSocketService','_hovered','arc','fill','_docSkeletonManagerService','purple.300','_initEvent','OnLineSingle','_session','black','unit','_setupSubUnitSync','dispose$','/run/','getRangePointData','_eventUnsubscribe','_shapes','getTypeOfUnitDisposed$','handleMoveRange','CollaborationSessionService','getActiveRange','UniverCollaborationClientUIPlugin','undoState','APPLY_PERMISSION_DENIED','_themeService','_selfUnitIDs','#FFF','deserializeRangeWithSheet','getFocusedUnit','rxjs','DocStateChangeManagerService','_roomMembers$','debug','generateRandomId','focused$','toStringTag','@univerjs/drawing','@univerjs/network','textRanges','getOwnPropertyDescriptor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','createInstance','subscribe','editingUnit','_transformService','_unitOnClients','isTransformMutationsWithChangesetSuccess','save','UNIVER_SHEET','red.300','beginPath','requireSession','endColumn','startsWith','colorChannel1','clipPath','Tooltip','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','_saveCache','triggerDblclick','error','_drawTextRange','skeleton','InsertRangeMoveDownCommandId','size','_setupBeforeClosingHandler','location','_memberService','@univerjs/design','EffectRefRangId','getUniverSheetInstance','transformSelections','674880SlsMkk','redoState','bottom','findNodePositionByCharIndex','NodePositionConvertToRectRange','DocSkeletonManagerService','_initEntityListener','restore','rgba(255,\x20255,\x20255,\x200.01)','MoveRangeCommandId','getUnhiddenWorksheets','_refreshCollabCursors','isArray','addHandlerCallback','Rectangle','_docTransformStateCacheService','SHEET_VIEWPORT_KEY','DEFAULT_WS_SESSION_TICKET_URL','switchMap','CollaborationController','react/jsx-runtime','YUUMI_SUBSCRIPTION_NOT_FOUND','selection','type','executeCommand','_imageIoService','collaboration.single-unit.warning','disposeWithMe','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','url(#off-line-single_clip0_910_343)','@univerjs/rpc','getOffsetConfig','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','RxDisposable','subunit','_urlService','MUTATION','_getSheetObject','TEXT','SessionStatus','toRgbString','deepClone','OTHER_CLIENTS_EDITING','fromEventSubject','stringify','_messageService','EMAIL_HAS_BEEN_BOUND','BehaviorSubject','currentTheme$','isActive','range','pluginName','APPLY_DUPLICATED','off-line-single','replace','assignAColorForMemberID','_initCommandExecutedListener','_toggleOffline','AWAITING','TEXT_RANGE_LAYER_INDEX','registerRenderModule','div','registerBeforeClose','univer-flex\x20univer-items-center','onCommandExecuted','storage','measureText','getMemberID','Warning','unload','YUUMI_URL_COL_OUT_OF_RANGE','getSheetId','_ensureSubject','_init','SYNCED','next','LocaleService','use','LOCAL_CACHE_INTERVAL_KEY','[CollaborationDataLoaderController]','endRow','_color','PENDING','toDisposable','_docStateChangeManagerService','_range','HTTPService','isTransformMutationFailure','session.will-retry','reconnect','ICommandService','_injector','toString','ONLINE','eventID','defIds','ISocketService','Optional','UPDATE_CURSOR','DOC_RANGE_TYPE','status$','_collaborationUIEventService','onLocalMutation','call','6FFiJNA','IDocClipboardService','UNIVER_DOC','getCollabEntity$','asObservable','docStateChange$','translate(.97)','max','CollaborationEvent','Disposable','pipe','throttleTime','SetSelectionsOperation','_colorAssignService','clearTimeout','currentSkeleton$','USER_NOT_INVITED_CODE','UNRECOGNIZED','collabCursorState$','roomMembers','INVALID_INVITE_CODE','none','@univerjs-pro/collaboration','NOT_COLLAB','with','_instanceService','Plugin','runId','current','setConfig','_dataLoaderService','entries','CLOSE_ROOM','getMergeData','defs','IRenderManagerService','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','137364RFRRLB','indexOf','href','InsertRowCommandId','getRelativeToViewportCoord','DocSelectionManagerService','find','_updateLocalCursor','IImageIoService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','LICENSE_MAX_UNITS_EXCEEDED','_docTransformIMECacheService','permission.title','doc.mutation.rich-text-editing','@univerjs/sheets','USERS_LEAVE','_beforeCloseService','IConfigService','path','startRow','url(#on-line-single_clip0_910_349)','ThemeService','_transformPreviousActiveRange','_backgroundColor','propertyIsEnumerable','assign','runRefRangeMutations','green.600','NodePositionConvertToCursor','height','push','tag','children','_univerInstanceService','send','0\x200\x2016\x2016','m2Prime','setParam','...','952301UjUBPb','rxjs/operators','_scheduleClearOtherTimer','APPLY_REJECT','ColorKit','lineTo','getStateCache','_revisionService','@univerjs/ui','hasOwnProperty','Vector2','params','exhaustSavingTask','getUndoRedoMutationParamsCache','loadUnit','RemoteUniscriptService','idSuffix','application/json','SNAPSHOT_INVALID_SNAPSHOT','fillStyle','[RemoteUniscriptService]:\x20no\x20focused\x20unit','enableLocalCache','clearInterval','startColumn','dispose','m1Prime','pushState','IBeforeCloseService','_hideTimer','Rect','createIdentifier','data','_transformUndoRedoStack','1em','_refRangeService','history','_createSocketURL','getColorFromTheme','UniverCollaborationClientPlugin','WebBrowserSingleActiveUnitService','_draw','PY_RUNTIME_SCRIPT_ERROR','TOO_MANY_REQUESTS','_initResize','currentColor','_hover','_colorIndex','extend','onTransformChange$','getItem','mask','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','prototype','FromArray','LOGIN_FAILED','collab-client.tooltip.reconnect','createElement','YUUMI_RATE_OVER_LIMIT','univerjs-icon\x20univerjs-icon-','_context','_scene','forwardRef','CollaborationDataLoaderController','source','getSkeleton','INVITE_CODE_HAS_BEEN_UES','collab-rect-range-','_sheetSkeletonManagerService','whenReady','addObjects','univer-flex\x20univer-mr-2\x20univer-text-xl','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','event$','filter','OFFLINE','DesktopCollaborationStatusDisplayController','_cachedData','name','sessionTicket','YUUMI_TABLE_NOT_FOUND_IN_UNIT','round','clsx','setItem','transformMutationsWithChangeset','MemberService','collaboration-client.offline-data-not-saved','loadOfflineData','collabStatus.fetchMiss','_toggleOnline','replaceState','ILogService','all','_getSessionTicket','engine','_online','svg','_docSyncEditingCollabCursorService','displayName','replaceDocRanges','set','off-line-single_clip0_910_343','YUUMI_UNABLE_LOAD_URL','_startDocCollabCursor','onRendered','ranges','random','unsubscribe','getValue','width','executionId','_localStorageService','NO_OTHER_CLIENTS_EDITING','transform','_onCursorDelete','shareReplay','has','mutations','@univerjs/docs-ui','createSocket','_notificationService','_send','_unitStatus','_removeCollabCursors','_updateCollabCursors','SetWorksheetActivateCommand','YUUMI_ASYNCIO_CANCELLED','_collaborationController','SetDocZoomRatioOperation','_entityInit$','defineProperty','code','UniverInstanceType','yellow.400','ILocalStorageService','_updateSubUnitFromURLParams','_registerRenderDependencies','transformIMECache','NOT_FOUND','_handleHover','_doCreateSocket','UnitStatus','getRenderById','#fff','combineLatest','parse','drawWith','YUUMI_ALL_TABLES_IS_INVALID','_collabCursorState$','resize','DocIMEInputManagerService','_initDependencies','INVITE_CODE_ALREADY_BOUND','actions','color','_localeService','_cursors','getUnitId','closePath','serializeRangeWithSheet','ENSURE_SNAPSHOT_EXECUTION','ITransformService','Shape','cursorInfo$','InsertColCommandId','makeDirty','origin','_drawRectRange','selections','INVITE_CODE_REQUIRED','_syncEditingCollabCursorService','LOCAL_CACHE_INTERVAL','_getMergeRange','_startSheetCollabCursor','removeParam','UNAUTHENTICATED','unshift','getTypeOfUnitAdded$','IUIPartsService','fillText','_anchorDot','getCellPositionByOffset','get','_disabled','CollaborationStatusDisplay','LICENSE_IMPORT_SIZE_EXCEEDED','setActiveRange','Unknown\x20user','Subject','_getAnchorBounding','unitID','url(#$1','_id','getCurrentUnitForType','3785kEqwAi','_cursor','PERMISSION_DENIED','_labelPosition','min','values','CHANGESET_REVISION_CONFILICT','add','getSheetObject','MessageType','imageSourceType','_docClipboardService','DocCollaborationEntity','_textBubble','LICENSE_DISTRO_REJECTED','forEach','setStateCache','_scheduleSaving','Injector','on-line-single','_handleJoinEvent','column','setShapeProps','getConfig','onMouseMove','cursorInfo','runOnServer','DisposableCollection','_cursorShapes','handleInsertRangeMoveDown','registerDependencies','8GxWzLh','UNDEFINED','INTERNAL_ERROR'];_0x1d2d=function(){return _0x52c15a;};return _0x1d2d();}var E=function(){const _0xbfe7cd=_0x340a06;return E=Object[_0xbfe7cd(0x23f)]||function(_0x4492df){const _0x236af4=_0xbfe7cd;for(var _0x119171,_0x55abe6=0x1,_0x3aaab0=arguments['length'];_0x55abe6<_0x3aaab0;_0x55abe6++){_0x119171=arguments[_0x55abe6];for(var _0x4f0673 in _0x119171)Object[_0x236af4(0x281)][_0x236af4(0x256)][_0x236af4(0x200)](_0x119171,_0x4f0673)&&(_0x4492df[_0x4f0673]=_0x119171[_0x4f0673]);}return _0x4492df;},E[_0xbfe7cd(0x387)](this,arguments);},Tt=function(_0x286b2a,_0x3cb34b){const _0x146f41=_0x340a06;var _0x227b76={};for(var _0xf42e90 in _0x286b2a)Object[_0x146f41(0x281)]['hasOwnProperty'][_0x146f41(0x200)](_0x286b2a,_0xf42e90)&&_0x3cb34b[_0x146f41(0x227)](_0xf42e90)<0x0&&(_0x227b76[_0xf42e90]=_0x286b2a[_0xf42e90]);if(_0x286b2a!=null&&typeof Object['getOwnPropertySymbols']==_0x146f41(0x332)){for(var _0x4e5909=0x0,_0xf42e90=Object['getOwnPropertySymbols'](_0x286b2a);_0x4e5909<_0xf42e90[_0x146f41(0x36b)];_0x4e5909++)_0x3cb34b[_0x146f41(0x227)](_0xf42e90[_0x4e5909])<0x0&&Object[_0x146f41(0x281)][_0x146f41(0x23e)]['call'](_0x286b2a,_0xf42e90[_0x4e5909])&&(_0x227b76[_0xf42e90[_0x4e5909]]=_0x286b2a[_0xf42e90[_0x4e5909]]);}return _0x227b76;},pe=M[_0x340a06(0x28a)](function(_0x5563cc,_0x317231){const _0x4132fe=_0x340a06;var _0x13ce3b=_0x5563cc['icon'],_0x5b4641=_0x5563cc['id'],_0x13143e=_0x5563cc[_0x4132fe(0x396)],_0xb3bd02=_0x5563cc[_0x4132fe(0x27c)],_0x28b439=Tt(_0x5563cc,['icon','id',_0x4132fe(0x396),'extend']),_0x184c8e=_0x4132fe(0x287)[_0x4132fe(0x341)](_0x5b4641,'\x20')['concat'](_0x13143e||'')['trim'](),_0x2e32e2=M['useRef']('_'[_0x4132fe(0x341)](Dt()));return we(_0x13ce3b,''['concat'](_0x5b4641),{'defIds':_0x13ce3b[_0x4132fe(0x1f8)],'idSuffix':_0x2e32e2[_0x4132fe(0x21d)]},E({'ref':_0x317231,'className':_0x184c8e},_0x28b439),_0xb3bd02);});function we(_0x4ec30f,_0x2cc5fd,_0x3cf96e,_0x4d3146,_0x3e7d24){const _0x2f8a2f=_0x340a06;return M[_0x2f8a2f(0x285)](_0x4ec30f['tag'],E(E({'key':_0x2cc5fd},Ot(_0x4ec30f,_0x3cf96e,_0x3e7d24)),_0x4d3146),(Rt(_0x4ec30f,_0x3cf96e)[_0x2f8a2f(0x246)]||[])[_0x2f8a2f(0x35f)](function(_0xd6ad4c,_0x177941){const _0x10b227=_0x2f8a2f;return we(_0xd6ad4c,''[_0x10b227(0x341)](_0x2cc5fd,'-')['concat'](_0x4ec30f[_0x10b227(0x245)],'-')[_0x10b227(0x341)](_0x177941),_0x3cf96e,void 0x0,_0x3e7d24);}));}function Ot(_0x1d4a80,_0x2713fe,_0x52d29c){const _0x40ad7c=_0x340a06;var _0x466206=E({},_0x1d4a80[_0x40ad7c(0x3b6)]);_0x52d29c!=null&&_0x52d29c[_0x40ad7c(0x187)]&&_0x466206['fill']==='colorChannel1'&&(_0x466206[_0x40ad7c(0x154)]=_0x52d29c['colorChannel1']),_0x1d4a80[_0x40ad7c(0x245)]===_0x40ad7c(0x27f)&&_0x466206['id']&&(_0x466206['id']=_0x466206['id']+_0x2713fe[_0x40ad7c(0x25d)]),Object[_0x40ad7c(0x220)](_0x466206)['forEach'](function(_0x4a2814){const _0x125198=_0x40ad7c;var _0x577bbe=_0x4a2814[0x0],_0x2ca09a=_0x4a2814[0x1];_0x577bbe===_0x125198(0x27f)&&typeof _0x2ca09a=='string'&&(_0x466206[_0x577bbe]=_0x2ca09a[_0x125198(0x1cf)](/url\(#(.*)\)/,_0x125198(0x30b)['concat'](_0x2713fe[_0x125198(0x25d)],')')));});var _0x2e3170=_0x2713fe[_0x40ad7c(0x1f8)];return!_0x2e3170||_0x2e3170['length']===0x0||(_0x1d4a80[_0x40ad7c(0x245)]===_0x40ad7c(0x1e6)&&_0x466206[_0x40ad7c(0x34a)]&&(_0x466206['xlink:href']=_0x466206[_0x40ad7c(0x34a)]+_0x2713fe[_0x40ad7c(0x25d)]),Object[_0x40ad7c(0x220)](_0x466206)['forEach'](function(_0x50e683){const _0x396d3f=_0x40ad7c;var _0x259cdb=_0x50e683[0x0],_0x54d891=_0x50e683[0x1];typeof _0x54d891==_0x396d3f(0x3b2)&&(_0x466206[_0x259cdb]=_0x54d891[_0x396d3f(0x1cf)](/url\(#(.*)\)/,_0x396d3f(0x30b)[_0x396d3f(0x341)](_0x2713fe[_0x396d3f(0x25d)],')')));})),_0x466206;}function Rt(_0x566987,_0x16f31f){const _0xd3dc4e=_0x340a06;var _0x25bd88,_0x273a4a=_0x16f31f[_0xd3dc4e(0x1f8)];return!_0x273a4a||_0x273a4a[_0xd3dc4e(0x36b)]===0x0?_0x566987:_0x566987['tag']===_0xd3dc4e(0x223)&&(!((_0x25bd88=_0x566987[_0xd3dc4e(0x246)])===null||_0x25bd88===void 0x0)&&_0x25bd88[_0xd3dc4e(0x36b)])?E(E({},_0x566987),{'children':_0x566987['children'][_0xd3dc4e(0x35f)](function(_0x436ca9){const _0x1fa560=_0xd3dc4e;return typeof _0x436ca9[_0x1fa560(0x3b6)]['id']==_0x1fa560(0x3b2)&&_0x273a4a&&_0x273a4a[_0x1fa560(0x227)](_0x436ca9[_0x1fa560(0x3b6)]['id'])>-0x1?E(E({},_0x436ca9),{'attrs':E(E({},_0x436ca9[_0x1fa560(0x3b6)]),{'id':_0x436ca9[_0x1fa560(0x3b6)]['id']+_0x16f31f[_0x1fa560(0x25d)]})}):_0x436ca9;})}):_0x566987;}function Dt(){const _0x2d4e73=_0x340a06;return Math[_0x2d4e73(0x2b6)]()[_0x2d4e73(0x1f5)](0x24)['substring'](0x2,0x8);}pe[_0x340a06(0x2ae)]=_0x340a06(0x33e);var Ut={'tag':_0x340a06(0x2ac),'attrs':{'fill':_0x340a06(0x216),'viewBox':_0x340a06(0x249),'width':_0x340a06(0x26e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x340a06(0x1b6)},'children':[{'tag':_0x340a06(0x238),'attrs':{'stroke':_0x340a06(0x279),'d':_0x340a06(0x225),'strokeLinecap':_0x340a06(0x29d),'strokeLinejoin':_0x340a06(0x29d),'strokeWidth':1.2}}]},{'tag':_0x340a06(0x223),'attrs':{},'children':[{'tag':_0x340a06(0x188),'attrs':{'id':_0x340a06(0x2b1)},'children':[{'tag':_0x340a06(0x238),'attrs':{'fill':_0x340a06(0x2db),'d':_0x340a06(0x3c3)}}]}]}],'defIds':[_0x340a06(0x2b1)]},ye=M[_0x340a06(0x28a)](function(_0x233a06,_0x99ad1b){const _0x41af77=_0x340a06;return M[_0x41af77(0x285)](pe,Object[_0x41af77(0x23f)]({},_0x233a06,{'id':_0x41af77(0x1ce),'ref':_0x99ad1b,'icon':Ut}));});ye['displayName']=_0x340a06(0x342);var Nt={'tag':'svg','attrs':{'fill':_0x340a06(0x216),'viewBox':_0x340a06(0x3b9),'width':_0x340a06(0x26e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x340a06(0x23a)},'children':[{'tag':_0x340a06(0x238),'attrs':{'stroke':'currentColor','d':_0x340a06(0x18a),'strokeLinecap':'round','strokeLinejoin':_0x340a06(0x29d),'strokeWidth':1.2}}]},{'tag':_0x340a06(0x223),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x340a06(0x238),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x340a06(0x207)}}]}]}],'defIds':[_0x340a06(0x33b)]},$e=M['forwardRef'](function(_0x15f32f,_0x3f2408){const _0xb208e3=_0x340a06;return M[_0xb208e3(0x285)](pe,Object[_0xb208e3(0x23f)]({},_0x15f32f,{'id':_0xb208e3(0x321),'ref':_0x3f2408,'icon':Nt}));});$e[_0x340a06(0x2ae)]=_0x340a06(0x158);function Mt(_0x4851b1){const _0x185853=_0x340a06;switch(_0x4851b1){case u['CollaborationStatus'][_0x185853(0x297)]:return _0x185853(0x353);case u[_0x185853(0x3b0)]['CONFLICT']:return'collabStatus.conflict';case u['CollaborationStatus']['FETCH_MISS']:return _0x185853(0x2a4);case u['CollaborationStatus'][_0x185853(0x218)]:return _0x185853(0x3c2);case u['CollaborationStatus'][_0x185853(0x1d3)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x185853(0x39c);case u['CollaborationStatus'][_0x185853(0x1e3)]:case u[_0x185853(0x3b0)][_0x185853(0x1eb)]:return _0x185853(0x37c);}}function xe(_0x146200){const _0x112b03=_0x340a06,{status$:_0x2f1b3b}=_0x146200,_0x160a42=T['useObservable'](_0x2f1b3b,u[_0x112b03(0x3b0)]['NOT_COLLAB']),_0x3d757a=T['useDependency'](a[_0x112b03(0x1e5)]),_0x20b110=T[_0x112b03(0x380)](u[_0x112b03(0x164)]),_0x125a1c=_0x160a42!==u[_0x112b03(0x3b0)][_0x112b03(0x297)],_0x1a5bbb=_0x3d757a['t'](Mt(_0x160a42)),_0x3594cb=_0x125a1c?P['jsx']($e,{}):P['jsx'](ye,{}),_0x4e8e4e=M['useCallback'](()=>{const _0x90cb7d=_0x112b03;_0x125a1c||_0x20b110[_0x90cb7d(0x1f2)]();},[_0x125a1c,_0x20b110]);function _0x29e86e(){const _0x2485ca=_0x112b03;return P['jsxs'](_0x2485ca(0x1d6),{'className':_0x2485ca(0x1d8),'onClick':_0x4e8e4e,'children':[P[_0x2485ca(0x147)](_0x2485ca(0x1d6),{'className':D[_0x2485ca(0x29e)](_0x2485ca(0x293),{'univer-text-green-500':_0x125a1c,'univer-text-red-500':!_0x125a1c}),'children':_0x3594cb}),P[_0x2485ca(0x147)](_0x2485ca(0x1d6),{'className':_0x2485ca(0x179),'children':_0x1a5bbb})]});}return _0x125a1c?_0x29e86e():P['jsx'](D[_0x112b03(0x189)],{'title':_0x3d757a['t'](_0x112b03(0x284)),'children':_0x29e86e()});}var Lt=Object[_0x340a06(0x178)],Pt=(_0x2e30bc,_0x253357,_0x425186,_0x5d9e18)=>{const _0x4233e9=_0x340a06;for(var _0x350d35=_0x5d9e18>0x1?void 0x0:_0x5d9e18?Lt(_0x253357,_0x425186):_0x253357,_0x589759=_0x2e30bc[_0x4233e9(0x36b)]-0x1,_0x2760f2;_0x589759>=0x0;_0x589759--)(_0x2760f2=_0x2e30bc[_0x589759])&&(_0x350d35=_0x2760f2(_0x350d35)||_0x350d35);return _0x350d35;},V=(_0x8d2adf,_0x16e7cc)=>(_0x83898f,_0x54db30)=>_0x16e7cc(_0x83898f,_0x54db30,_0x8d2adf);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x340a06(0x20a)]{constructor(_0xd8d272,_0xe42489,_0x35ecfc,_0x2dbbdd){const _0x2ca756=_0x340a06;super(),h(this,'_status$',new d[(_0x2ca756(0x1c8))](u[_0x2ca756(0x3b0)]['NOT_COLLAB'])),(this[_0x2ca756(0x247)]=_0xd8d272,this[_0x2ca756(0x1f4)]=_0xe42489,this['_collaborationController']=_0x35ecfc,this['_uiPartsService']=_0x2dbbdd,this[_0x2ca756(0x344)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x8ae84c=_0x340a06;this['disposeWithMe'](this[_0x8ae84c(0x247)][_0x8ae84c(0x173)][_0x8ae84c(0x20b)](d[_0x8ae84c(0x1ab)](()=>{const _0x401755=_0x8ae84c,_0x228a44=this['_univerInstanceService']['getFocusedUnit']();return _0x228a44?this[_0x401755(0x2cb)][_0x401755(0x204)](_0x228a44['getUnitId']()):d['of'](null);}),d[_0x8ae84c(0x1ab)](_0x18c23b=>_0x18c23b?_0x18c23b[_0x8ae84c(0x1fd)]:d['of'](u[_0x8ae84c(0x3b0)][_0x8ae84c(0x218)])))['subscribe'](_0x45edaa=>{const _0xbba23b=_0x8ae84c;this['_status$'][_0xbba23b(0x1e4)](_0x45edaa);}));}[_0x340a06(0x344)](){const _0x19940b=_0x340a06;this[_0x19940b(0x1b4)](this['_uiPartsService']['registerComponent'](T['BuiltInUIPart']['HEADER_MENU'],()=>T[_0x19940b(0x14e)](At({'status$':this[_0x19940b(0x14f)][_0x19940b(0x205)]()}),this[_0x19940b(0x1f4)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x340a06(0x397)](a[_0x340a06(0x320)])),V(0x2,a['Inject'](u[_0x340a06(0x1ac)])),V(0x3,T[_0x340a06(0x2fe)])],exports[_0x340a06(0x298)]);function At(_0x4e5b5b){const {status$:_0x25893d}=_0x4e5b5b;return function(){const _0x5864a2=_0x18a4;return P[_0x5864a2(0x147)](xe,{'status$':_0x25893d});};}var wt=Object[_0x340a06(0x178)],yt=(_0x406360,_0x336e3c,_0x10e216,_0x907b9b)=>{const _0x562667=_0x340a06;for(var _0x36b8d8=_0x907b9b>0x1?void 0x0:_0x907b9b?wt(_0x336e3c,_0x10e216):_0x336e3c,_0x1aa1eb=_0x406360[_0x562667(0x36b)]-0x1,_0x2922e7;_0x1aa1eb>=0x0;_0x1aa1eb--)(_0x2922e7=_0x406360[_0x1aa1eb])&&(_0x36b8d8=_0x2922e7(_0x36b8d8)||_0x36b8d8);return _0x36b8d8;},y=(_0x844e5e,_0x5e2a89)=>(_0x5960ef,_0x36f2d3)=>_0x5e2a89(_0x5960ef,_0x36f2d3,_0x844e5e);let q=class extends a[_0x340a06(0x20a)]{constructor(_0x2e9a5f,_0x493180,_0x3d9565,_0x162c60,_0x2d5593,_0x4fc207){const _0x35cd7a=_0x340a06;super(),this[_0x35cd7a(0x236)]=_0x2e9a5f,this['_localCacheService']=_0x493180,this[_0x35cd7a(0x1fe)]=_0x3d9565,this[_0x35cd7a(0x1c6)]=_0x162c60,this[_0x35cd7a(0x2c4)]=_0x2d5593,this[_0x35cd7a(0x2e7)]=_0x4fc207,this[_0x35cd7a(0x192)](),this['_initEvent']();}[_0x340a06(0x192)](){const _0x1d348c=_0x340a06;this['disposeWithMe'](this[_0x1d348c(0x236)][_0x1d348c(0x1d7)](()=>{const _0x1d4935=_0x1d348c;if(this['_localCacheService'][_0x1d4935(0x364)]['size'])return this[_0x1d4935(0x2e7)]['t'](_0x1d4935(0x2a2));}));}[_0x340a06(0x157)](){const _0xa863a2=_0x340a06;this[_0xa863a2(0x1b4)](this[_0xa863a2(0x1fe)][_0xa863a2(0x295)]['subscribe'](_0x4411b2=>{const _0x7ad112=_0xa863a2;_0x4411b2['id']===u[_0x7ad112(0x38b)][_0x7ad112(0x33a)]&&this['_messageService']['show']({'type':D['MessageType'][_0x7ad112(0x1dd)],'content':this[_0x7ad112(0x2e7)]['t'](_0x7ad112(0x1b3))}),_0x4411b2['id']===u['CollaborationUIEventId'][_0x7ad112(0x221)]&&this[_0x7ad112(0x1c6)][_0x7ad112(0x14d)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x7ad112(0x38d))}),_0x4411b2['id']===u['CollaborationUIEventId'][_0x7ad112(0x310)]&&this[_0x7ad112(0x2c4)]['show']({'title':this['_localeService']['t'](_0x7ad112(0x232)),'content':this[_0x7ad112(0x2e7)]['t']('permission.content'),'type':'error','duration':0x0}),_0x4411b2['id']===u[_0x7ad112(0x38b)][_0x7ad112(0x383)]&&this[_0x7ad112(0x1c6)][_0x7ad112(0x14d)]({'type':D[_0x7ad112(0x317)][_0x7ad112(0x3c0)],'content':this[_0x7ad112(0x2e7)]['t']('collaboration.closeRoom')+'('+_0x4411b2[_0x7ad112(0x26c)]+')'}),_0x4411b2['id']===u[_0x7ad112(0x38b)][_0x7ad112(0x38e)]&&this[_0x7ad112(0x1c6)][_0x7ad112(0x14d)]({'type':D['MessageType'][_0x7ad112(0x1dd)],'content':this[_0x7ad112(0x2e7)]['t'](_0x4411b2[_0x7ad112(0x26c)]||'')}),_0x4411b2['id']===u[_0x7ad112(0x38b)]['SOCKET_FAILED_RETRY']&&this[_0x7ad112(0x1c6)][_0x7ad112(0x14d)]({'type':D[_0x7ad112(0x317)][_0x7ad112(0x1dd)],'content':this[_0x7ad112(0x2e7)]['t'](_0x7ad112(0x1f1))}),_0x4411b2['id']===u[_0x7ad112(0x38b)]['SOCKET_FAILED']&&this['_messageService'][_0x7ad112(0x14d)]({'type':D[_0x7ad112(0x317)]['Error'],'content':this[_0x7ad112(0x2e7)]['t'](_0x7ad112(0x36c))}),_0x4411b2['id']===u[_0x7ad112(0x38b)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x7ad112(0x1c6)]['show']({'type':D[_0x7ad112(0x317)][_0x7ad112(0x3c0)],'content':this[_0x7ad112(0x2e7)]['t'](_0x7ad112(0x331))});}));}};q=yt([y(0x0,T[_0x340a06(0x268)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x340a06(0x397)](u['CollaborationUIEventService'])),y(0x3,T['IMessageService']),y(0x4,T[_0x340a06(0x3a6)]),y(0x5,a[_0x340a06(0x397)](a[_0x340a06(0x1e5)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x340a06(0x26b)]('uni.network.url-service');var xt=Object[_0x340a06(0x178)],jt=(_0x520c11,_0x54667d,_0x339272,_0x2d1bf8)=>{const _0x2a9d0b=_0x340a06;for(var _0x10ddb2=_0x2d1bf8>0x1?void 0x0:_0x2d1bf8?xt(_0x54667d,_0x339272):_0x54667d,_0x37f0a9=_0x520c11[_0x2a9d0b(0x36b)]-0x1,_0x28366a;_0x37f0a9>=0x0;_0x37f0a9--)(_0x28366a=_0x520c11[_0x37f0a9])&&(_0x10ddb2=_0x28366a(_0x10ddb2)||_0x10ddb2);return _0x10ddb2;},H=(_0x420133,_0x14b0f7)=>(_0x5ac78d,_0x35c719)=>_0x14b0f7(_0x5ac78d,_0x35c719,_0x420133);exports[_0x340a06(0x28b)]=class extends a[_0x340a06(0x1ba)]{constructor(_0x3a5307,_0x436e2a,_0x3ae612,_0x4ff66e,_0x1eb18d){const _0xdabd2a=_0x340a06;super(),this[_0xdabd2a(0x1bc)]=_0x3a5307,this['_logService']=_0x436e2a,this[_0xdabd2a(0x34c)]=_0x3ae612,this[_0xdabd2a(0x21f)]=_0x4ff66e,_0x1eb18d?_0x1eb18d==null||_0x1eb18d[_0xdabd2a(0x291)]()[_0xdabd2a(0x360)](()=>this[_0xdabd2a(0x1e2)]()):(this['_logService']['debug'](_0xdabd2a(0x1e8),_0xdabd2a(0x337)),this[_0xdabd2a(0x1e2)]());}async[_0x340a06(0x1e2)](){const _0x374352=_0x340a06,_0x49e8f2=this['_urlService'][_0x374352(0x33d)]('unit'),_0x357b66=this['_urlService'][_0x374352(0x33d)](_0x374352(0x1b0)),_0x25abf5=this[_0x374352(0x1bc)]['getParam']('subunit');if(!_0x49e8f2||!_0x357b66){this[_0x374352(0x3a7)][_0x374352(0x171)](_0x374352(0x1e8),_0x374352(0x378));return;}const _0x4ddf8c=await this[_0x374352(0x21f)][_0x374352(0x25b)](_0x49e8f2,Number(_0x357b66),_0x25abf5);_0x4ddf8c&&_0x4ddf8c instanceof a[_0x374352(0x3a4)]&&this[_0x374352(0x15c)](_0x4ddf8c);}async['_setupSubUnitSync'](_0x15eb5a){const _0x4738be=_0x340a06;await this[_0x4738be(0x2d3)](_0x15eb5a),_0x15eb5a['activeSheet$'][_0x4738be(0x20b)](d['takeUntil'](this['dispose$']))[_0x4738be(0x17b)](_0x37e160=>{const _0x342afa=_0x4738be;_0x37e160&&this[_0x342afa(0x351)](_0x37e160);}),this['_urlService'][_0x4738be(0x356)][_0x4738be(0x20b)](d[_0x4738be(0x33f)](this[_0x4738be(0x15d)]))['subscribe'](()=>this[_0x4738be(0x2d3)](_0x15eb5a));}['_updateURLWithCurrentState'](_0x45b3f7,_0x5c0118=!0x1){const _0x7c587e=_0x340a06,_0x554bc1=this[_0x7c587e(0x1bc)][_0x7c587e(0x33d)](_0x7c587e(0x1bb));_0x45b3f7[_0x7c587e(0x1e0)]()!==_0x554bc1&&this[_0x7c587e(0x1bc)][_0x7c587e(0x24b)](_0x7c587e(0x1bb),_0x45b3f7[_0x7c587e(0x1e0)](),_0x5c0118);}async[_0x340a06(0x2d3)](_0x55d1c8){const _0xeefb78=_0x340a06;var _0xb4d797;const _0x4d47d3=this[_0xeefb78(0x1bc)]['getParam'](_0xeefb78(0x1bb));if(!_0x4d47d3||!_0x55d1c8['getSheetBySheetId'](_0x4d47d3)){const _0x3bdeb3=_0x55d1c8[_0xeefb78(0x1a3)]()[0x0],_0x286f64=_0x55d1c8[_0xeefb78(0x3a9)](_0x3bdeb3);if(!_0x286f64)return;this[_0xeefb78(0x351)](_0x286f64,!0x0),await this[_0xeefb78(0x34c)][_0xeefb78(0x1b1)](g[_0xeefb78(0x2c9)]['id'],{'unitId':_0x55d1c8[_0xeefb78(0x2e9)](),'subUnitId':_0x3bdeb3});return;}((_0xb4d797=_0x55d1c8[_0xeefb78(0x141)]())==null?void 0x0:_0xb4d797[_0xeefb78(0x1e0)]())!==_0x4d47d3&&await this[_0xeefb78(0x34c)][_0xeefb78(0x1b1)](g[_0xeefb78(0x2c9)]['id'],{'unitId':_0x55d1c8[_0xeefb78(0x2e9)](),'subUnitId':_0x4d47d3});}},exports[_0x340a06(0x28b)]=jt([H(0x0,be),H(0x1,a[_0x340a06(0x2a7)]),H(0x2,a[_0x340a06(0x1f3)]),H(0x3,a[_0x340a06(0x397)](u[_0x340a06(0x3b5)])),H(0x4,a[_0x340a06(0x1fa)](Ke[_0x340a06(0x149)]))],exports[_0x340a06(0x28b)]);var Bt=Object[_0x340a06(0x178)],kt=(_0x3e1a4c,_0x1fbf09,_0x567279,_0x8093b6)=>{const _0x311256=_0x340a06;for(var _0xaf8d68=_0x8093b6>0x1?void 0x0:_0x8093b6?Bt(_0x1fbf09,_0x567279):_0x1fbf09,_0x1c9c39=_0x3e1a4c[_0x311256(0x36b)]-0x1,_0x38fd7c;_0x1c9c39>=0x0;_0x1c9c39--)(_0x38fd7c=_0x3e1a4c[_0x1c9c39])&&(_0xaf8d68=_0x38fd7c(_0xaf8d68)||_0xaf8d68);return _0xaf8d68;},ce=(_0xe97cdd,_0x2eea45)=>(_0x3b9363,_0x520cea)=>_0x2eea45(_0x3b9363,_0x520cea,_0xe97cdd);let z=class{constructor(_0x5e698d,_0x1dc242,_0x437497){const _0x344f91=_0x340a06;this[_0x344f91(0x1f4)]=_0x5e698d,this[_0x344f91(0x17d)]=_0x1dc242,this[_0x344f91(0x36e)]=_0x437497;}[_0x340a06(0x2d5)](_0x4fc03a){const _0x4d82f8=_0x340a06;this[_0x4d82f8(0x26d)](_0x4fc03a),this[_0x4d82f8(0x23c)](_0x4fc03a);}[_0x340a06(0x377)](_0x63d403){const _0x37aec4=_0x340a06,{unitID:_0x395d1e}=_0x63d403,_0x42b0e6=this[_0x37aec4(0x36e)][_0x37aec4(0x2da)](_0x395d1e)[_0x37aec4(0x219)](b['DocIMEInputManagerService']),{redoCache:_0xaa8a60}=_0x42b0e6[_0x37aec4(0x25a)]();if(_0xaa8a60[_0x37aec4(0x36b)]===0x0)return _0x63d403;let _0x5be9d3=a[_0x37aec4(0x382)][_0x37aec4(0x1c2)](_0x63d403[_0x37aec4(0x2c1)][0x0]);for(let _0x414a13=0x0;_0x414a13<_0xaa8a60[_0x37aec4(0x36b)];_0x414a13++){const _0x3857b4={'id':'doc.mutation.rich-text-editing','params':{..._0xaa8a60[_0x414a13]}},_0x15ff95=this[_0x37aec4(0x17d)]['transformMutation'](_0x5be9d3,_0x3857b4,!0x1);if(m['isTransformMutationFailure'](_0x15ff95))throw _0x15ff95[_0x37aec4(0x18d)];_0x5be9d3=_0x15ff95[_0x37aec4(0x266)];}return{...a[_0x37aec4(0x382)][_0x37aec4(0x1c2)](_0x63d403),'mutations':[_0x5be9d3]};}[_0x340a06(0x26d)](_0xc06d97){const _0x39cd2c=_0x340a06,{unitID:_0x54fc64}=_0xc06d97,_0x3b7b93=this['_renderManagerService'][_0x39cd2c(0x2da)](_0x54fc64)['with'](b[_0x39cd2c(0x2e2)]),{undoCache:_0x4a9b96,redoCache:_0x41fd32}=_0x3b7b93['getUndoRedoMutationParamsCache']();if(_0x4a9b96['length']===0x0||_0x41fd32[_0x39cd2c(0x36b)]===0x0)return;const _0x48f5c7=[],_0x5f2450=[];let _0x552df3=a[_0x39cd2c(0x382)][_0x39cd2c(0x1c2)](_0xc06d97['mutations'][0x0]),_0x1cc230=a['Tools'][_0x39cd2c(0x1c2)](_0xc06d97['mutations'][0x0]);for(let _0x269f75=_0x4a9b96[_0x39cd2c(0x36b)]-0x1;_0x269f75>=0x0;_0x269f75--){const _0x3129ce={'id':_0x39cd2c(0x233),'params':{..._0x4a9b96[_0x269f75]}},_0x44eb79={'id':_0x39cd2c(0x233),'params':{..._0x41fd32[_0x269f75]}},_0x5166ad=this['_transformService'][_0x39cd2c(0x35d)](_0x552df3,_0x3129ce,!0x1),_0x5ab44d=this[_0x39cd2c(0x17d)][_0x39cd2c(0x35d)](_0x1cc230,_0x44eb79,!0x1);if(m[_0x39cd2c(0x1f0)](_0x5166ad))throw _0x5166ad[_0x39cd2c(0x18d)];if(m[_0x39cd2c(0x1f0)](_0x5ab44d))throw _0x5ab44d['error'];_0x48f5c7[_0x39cd2c(0x2fc)](_0x5166ad['m2Prime'][_0x39cd2c(0x258)]),_0x5f2450[_0x39cd2c(0x2fc)](_0x5ab44d[_0x39cd2c(0x24a)][_0x39cd2c(0x258)]),_0x552df3=_0x5166ad[_0x39cd2c(0x266)],_0x1cc230=_0x5ab44d[_0x39cd2c(0x266)];}_0x3b7b93[_0x39cd2c(0x37a)]({'undoCache':_0x48f5c7,'redoCache':_0x5f2450});}[_0x340a06(0x23c)](_0x3a69d1){const _0x510562=_0x340a06,{unitID:_0x29eb2e}=_0x3a69d1,_0xf9ed30=this[_0x510562(0x36e)][_0x510562(0x2da)](_0x29eb2e)[_0x510562(0x219)](b[_0x510562(0x2e2)]),_0xf888da=_0xf9ed30[_0x510562(0x165)]();if(_0xf888da==null)return;const _0x19727d=[{'id':_0x510562(0x233),'params':{'unitId':_0x3a69d1[_0x510562(0x30a)],'actions':null,'textRanges':[_0xf888da]}}],_0x56a95b=this[_0x510562(0x17d)][_0x510562(0x2a0)](_0x3a69d1,_0x19727d);if(!m[_0x510562(0x17f)](_0x56a95b))throw _0x56a95b[_0x510562(0x18d)];const _0x35dfe7=_0x56a95b[_0x510562(0x24a)][0x0][_0x510562(0x258)][_0x510562(0x177)];Array[_0x510562(0x1a5)](_0x35dfe7)&&_0x35dfe7[_0x510562(0x36b)]&&_0xf9ed30[_0x510562(0x306)](_0x35dfe7[0x0]);}};z=kt([ce(0x0,a[_0x340a06(0x397)](a[_0x340a06(0x320)])),ce(0x1,m[_0x340a06(0x2ed)]),ce(0x2,p[_0x340a06(0x224)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x5a101e,_0x441db9,_0x4f6a4a,_0x16efde)=>{for(var _0x452901=_0x16efde>0x1?void 0x0:_0x16efde?Ht(_0x441db9,_0x4f6a4a):_0x441db9,_0x52b77e=_0x5a101e['length']-0x1,_0x50eb07;_0x52b77e>=0x0;_0x52b77e--)(_0x50eb07=_0x5a101e[_0x52b77e])&&(_0x452901=_0x50eb07(_0x452901)||_0x452901);return _0x452901;},le=(_0x14f4ed,_0x3ce4cf)=>(_0x2cd2f2,_0x23b882)=>_0x3ce4cf(_0x2cd2f2,_0x23b882,_0x14f4ed);let J=class{constructor(_0x5b4fa2,_0x3f2405,_0x24adbf){const _0xb3ccd1=_0x340a06;this[_0xb3ccd1(0x1f4)]=_0x5b4fa2,this[_0xb3ccd1(0x17d)]=_0x3f2405,this[_0xb3ccd1(0x1ed)]=_0x24adbf;}['transformStateCache'](_0x3426ea){const _0x44c663=_0x340a06;this[_0x44c663(0x374)](_0x3426ea);}[_0x340a06(0x377)](_0xc04f4f){const _0x46fbe6=_0x340a06,{unitID:_0xf43532}=_0xc04f4f,{collaboration:_0x38c108}=this['_docStateChangeManagerService'][_0x46fbe6(0x253)](_0xf43532);if(_0x38c108[_0x46fbe6(0x36b)]===0x0)return _0xc04f4f;let _0x33c9df=a[_0x46fbe6(0x382)][_0x46fbe6(0x1c2)](_0xc04f4f[_0x46fbe6(0x2c1)][0x0]);for(let _0x4dc0e7=0x0;_0x4dc0e7<_0x38c108[_0x46fbe6(0x36b)];_0x4dc0e7++){const _0x45cb4a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38c108[_0x4dc0e7][_0x46fbe6(0x36f)],..._0x38c108[_0x4dc0e7][_0x46fbe6(0x19a)]}},_0x450fcf=this[_0x46fbe6(0x17d)][_0x46fbe6(0x35d)](_0x33c9df,_0x45cb4a,!0x1);if(m['isTransformMutationFailure'](_0x450fcf))throw _0x450fcf[_0x46fbe6(0x18d)];_0x33c9df=_0x450fcf[_0x46fbe6(0x266)];}return{...a['Tools'][_0x46fbe6(0x1c2)](_0xc04f4f),'mutations':[_0x33c9df]};}[_0x340a06(0x374)](_0x5bf351){const _0x328703=_0x340a06,{unitID:_0x235e4a}=_0x5bf351,{history:_0x27c9a1,collaboration:_0x50800a}=this[_0x328703(0x1ed)][_0x328703(0x253)](_0x235e4a);if(_0x27c9a1[_0x328703(0x36b)]===0x0&&_0x50800a[_0x328703(0x36b)]===0x0)return;const _0x44321f=[],_0x3a6119=[];let _0x39cc51=a[_0x328703(0x382)][_0x328703(0x1c2)](_0x5bf351[_0x328703(0x2c1)][0x0]),_0x3c39e3=a[_0x328703(0x382)][_0x328703(0x1c2)](_0x5bf351[_0x328703(0x2c1)][0x0]);for(let _0x3431af=_0x27c9a1[_0x328703(0x36b)]-0x1;_0x3431af>=0x0;_0x3431af--){const _0x17114b={'id':_0x328703(0x233),'params':{'unitId':_0x27c9a1[_0x3431af][_0x328703(0x36f)],..._0x27c9a1[_0x3431af]['undoState']}},_0x5c279f={'id':_0x328703(0x233),'params':{'unitId':_0x27c9a1[_0x3431af]['unitId'],..._0x27c9a1[_0x3431af]['redoState']}},_0x1f8f11=this[_0x328703(0x17d)][_0x328703(0x35d)](_0x39cc51,_0x17114b,!0x1),_0x447d6d=this[_0x328703(0x17d)][_0x328703(0x35d)](_0x3c39e3,_0x5c279f,!0x1);if(m['isTransformMutationFailure'](_0x1f8f11))throw _0x1f8f11[_0x328703(0x18d)];if(m['isTransformMutationFailure'](_0x447d6d))throw _0x447d6d[_0x328703(0x18d)];_0x44321f['unshift']({..._0x27c9a1[_0x3431af],'undoState':_0x1f8f11[_0x328703(0x24a)]['params'],'redoState':_0x447d6d['m2Prime']['params']}),_0x39cc51=_0x1f8f11[_0x328703(0x266)],_0x3c39e3=_0x447d6d['m1Prime'];}_0x39cc51=a[_0x328703(0x382)]['deepClone'](_0x5bf351[_0x328703(0x2c1)][0x0]),_0x3c39e3=a[_0x328703(0x382)][_0x328703(0x1c2)](_0x5bf351[_0x328703(0x2c1)][0x0]);for(let _0x48a1c5=_0x50800a[_0x328703(0x36b)]-0x1;_0x48a1c5>=0x0;_0x48a1c5--){const _0x466f52={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x50800a[_0x48a1c5][_0x328703(0x36f)],..._0x50800a[_0x48a1c5][_0x328703(0x167)]}},_0x5590dc={'id':_0x328703(0x233),'params':{'unitId':_0x50800a[_0x48a1c5]['unitId'],..._0x50800a[_0x48a1c5][_0x328703(0x19a)]}},_0x106f06=this[_0x328703(0x17d)][_0x328703(0x35d)](_0x39cc51,_0x466f52,!0x1),_0x1ac5e5=this[_0x328703(0x17d)][_0x328703(0x35d)](_0x3c39e3,_0x5590dc,!0x1);if(m['isTransformMutationFailure'](_0x106f06))throw _0x106f06[_0x328703(0x18d)];if(m[_0x328703(0x1f0)](_0x1ac5e5))throw _0x1ac5e5[_0x328703(0x18d)];_0x3a6119[_0x328703(0x2fc)]({..._0x50800a[_0x48a1c5],'undoState':_0x106f06[_0x328703(0x24a)]['params'],'redoState':_0x1ac5e5[_0x328703(0x24a)][_0x328703(0x258)]}),_0x39cc51=_0x106f06[_0x328703(0x266)],_0x3c39e3=_0x1ac5e5['m1Prime'];}this[_0x328703(0x1ed)][_0x328703(0x31e)](_0x235e4a,{'history':_0x44321f,'collaboration':_0x3a6119});}};J=Ft([le(0x0,a[_0x340a06(0x397)](a['Injector'])),le(0x1,m[_0x340a06(0x2ed)]),le(0x2,a[_0x340a06(0x397)](b[_0x340a06(0x16f)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x1169cc,_0x1c8231,_0x303a85,_0x23e5f3)=>{const _0xcaca8d=_0x340a06;for(var _0x4c340a=_0x23e5f3>0x1?void 0x0:_0x23e5f3?Yt(_0x1c8231,_0x303a85):_0x1c8231,_0x3adb87=_0x1169cc[_0xcaca8d(0x36b)]-0x1,_0x36c9e5;_0x3adb87>=0x0;_0x3adb87--)(_0x36c9e5=_0x1169cc[_0x3adb87])&&(_0x4c340a=_0x36c9e5(_0x4c340a)||_0x4c340a);return _0x4c340a;},Ne=(_0x2e678b,_0x27427a)=>(_0x28b16a,_0x1c1a81)=>_0x27427a(_0x28b16a,_0x1c1a81,_0x2e678b);let Z=class{constructor(_0x4b80e4,_0x3b8f9c){const _0x2e5dd8=_0x340a06;this[_0x2e5dd8(0x1f4)]=_0x4b80e4,this[_0x2e5dd8(0x17d)]=_0x3b8f9c;}[_0x340a06(0x198)](_0x55393c){const _0x4f89b9=_0x340a06;var _0x25beb2;const _0x468d31=this['_injector']['get'](Y[_0x4f89b9(0x22b)]),_0x6b0887=(_0x25beb2=_0x468d31['getDocRanges']())!=null?_0x25beb2:[];if(_0x6b0887[_0x4f89b9(0x36b)]===0x0)return;const _0x53fb05=_0x55393c[_0x4f89b9(0x30a)],_0x74110e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x53fb05,'actions':null,'textRanges':_0x6b0887}}],_0xb295b=this['_transformService'][_0x4f89b9(0x2a0)](_0x55393c,_0x74110e);if(!m[_0x4f89b9(0x17f)](_0xb295b))throw _0xb295b[_0x4f89b9(0x18d)];const _0x16ce92=_0xb295b[_0x4f89b9(0x24a)][0x0][_0x4f89b9(0x258)][_0x4f89b9(0x177)];Array[_0x4f89b9(0x1a5)](_0x16ce92)&&_0x16ce92[_0x4f89b9(0x36b)]&&_0x468d31[_0x4f89b9(0x2af)](_0x16ce92,{'unitId':_0x53fb05,'subUnitId':_0x53fb05},!0x1);}};Z=Wt([Ne(0x0,a[_0x340a06(0x397)](a[_0x340a06(0x320)])),Ne(0x1,m[_0x340a06(0x2ed)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x2adc70,_0x538ab9,_0x5d2bd4,_0x1022c2)=>{const _0x46530b=_0x340a06;for(var _0x521cf1=_0x1022c2>0x1?void 0x0:_0x1022c2?Vt(_0x538ab9,_0x5d2bd4):_0x538ab9,_0x256f09=_0x2adc70[_0x46530b(0x36b)]-0x1,_0x78d8a3;_0x256f09>=0x0;_0x256f09--)(_0x78d8a3=_0x2adc70[_0x256f09])&&(_0x521cf1=_0x78d8a3(_0x521cf1)||_0x521cf1);return _0x521cf1;},N=(_0x5913ac,_0x534cbc)=>(_0x589dea,_0x57f848)=>_0x534cbc(_0x589dea,_0x57f848,_0x5913ac);let Q=class extends a[_0x340a06(0x20a)]{constructor(_0x1c6f27,_0x5d32c2,_0x4a7e85,_0x4f1af6,_0x465655,_0x240539,_0x58c957,_0x1a85e2){const _0x52391f=_0x340a06;super(),h(this,'_status$',new d[(_0x52391f(0x1c8))](u['CollaborationStatus'][_0x52391f(0x218)])),(this['_docStateChangeManagerService']=_0x1c6f27,this[_0x52391f(0x2cb)]=_0x5d32c2,this[_0x52391f(0x231)]=_0x4a7e85,this[_0x52391f(0x1a8)]=_0x4f1af6,this[_0x52391f(0x394)]=_0x465655,this[_0x52391f(0x2ad)]=_0x240539,this['_messageService']=_0x58c957,this[_0x52391f(0x2e7)]=_0x1a85e2,this[_0x52391f(0x19f)]());}[_0x340a06(0x19f)](){const _0x3286dc=_0x340a06;this[_0x3286dc(0x1b4)](this[_0x3286dc(0x2cb)]['entityInit$']['subscribe'](_0x382ed3=>{const _0x15d58e=_0x3286dc,_0x1dc6eb=this[_0x15d58e(0x1ed)][_0x15d58e(0x206)][_0x15d58e(0x17b)](_0x190357=>{const _0x51bca0=_0x15d58e;if(_0x190357==null)return;const {unitId:_0x47d86a,redoState:_0x2199fa,commandId:_0x4fa9ed}=_0x190357;if(_0x47d86a!==_0x382ed3[_0x51bca0(0x30a)])return;const _0xaf53cc={'id':_0x4fa9ed,'type':a[_0x51bca0(0x3a1)][_0x51bca0(0x1bd)],'params':{'unitId':_0x47d86a,'actions':_0x2199fa[_0x51bca0(0x2e5)],'textRanges':null}};_0x382ed3[_0x51bca0(0x1ff)](_0xaf53cc);});if(_0x382ed3[_0x15d58e(0x1b4)](_0x1dc6eb),_0x382ed3 instanceof u[_0x15d58e(0x31a)]){const _0x4a8e0a={'onTransformIME':_0x2e1a76=>this[_0x15d58e(0x231)][_0x15d58e(0x2d5)](_0x2e1a76),'onTransformState':_0x236454=>this[_0x15d58e(0x1a8)][_0x15d58e(0x35a)](_0x236454),'onTransformSelections':_0x6f8bc5=>this[_0x15d58e(0x394)][_0x15d58e(0x198)](_0x6f8bc5),'onSyncEditingCollabCursor':_0x4f987f=>this[_0x15d58e(0x2ad)][_0x15d58e(0x384)](_0x4f987f),'onTransformRemoteChangesetByIMECache':_0x1fe905=>this[_0x15d58e(0x231)][_0x15d58e(0x377)](_0x1fe905),'onTransformRemoteChangesetByStateCache':_0x56266c=>this[_0x15d58e(0x1a8)][_0x15d58e(0x377)](_0x56266c)};_0x382ed3[_0x15d58e(0x1a6)](_0x4a8e0a);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x340a06(0x16f)])),N(0x1,a[_0x340a06(0x397)](u['CollaborationController'])),N(0x2,a[_0x340a06(0x397)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x340a06(0x397)](Z)),N(0x5,a[_0x340a06(0x397)](Ce)),N(0x6,T[_0x340a06(0x3a2)]),N(0x7,a[_0x340a06(0x397)](a['LocaleService']))],Q);var Gt=Object[_0x340a06(0x178)],Kt=(_0x1d1e82,_0x10f470,_0x1b0943,_0x39dac1)=>{for(var _0x28e5e9=_0x39dac1>0x1?void 0x0:_0x39dac1?Gt(_0x10f470,_0x1b0943):_0x10f470,_0x18d9ee=_0x1d1e82['length']-0x1,_0x3b030c;_0x18d9ee>=0x0;_0x18d9ee--)(_0x3b030c=_0x1d1e82[_0x18d9ee])&&(_0x28e5e9=_0x3b030c(_0x28e5e9)||_0x28e5e9);return _0x28e5e9;},_e=(_0x38b4f3,_0x5e6958)=>(_0x1a7ea0,_0x462786)=>_0x5e6958(_0x1a7ea0,_0x462786,_0x38b4f3);let ge=class extends a[_0x340a06(0x20a)]{constructor(_0x4a2379,_0x19456b,_0xa57ccc){const _0x3f6605=_0x340a06;super(),h(this,'_cachedData',new Map()),h(this,_0x3f6605(0x338),new Map()),h(this,_0x3f6605(0x303),!0x1),(this[_0x3f6605(0x39e)]=_0x4a2379,this[_0x3f6605(0x2bb)]=_0x19456b,this[_0x3f6605(0x254)]=_0xa57ccc);}['disableLocalCache'](){const _0x48e53d=_0x340a06;this[_0x48e53d(0x303)]=!0x0;}[_0x340a06(0x262)](){const _0x518db6=_0x340a06;this[_0x518db6(0x303)]=!0x1;}get[_0x340a06(0x364)](){const _0x2f4590=_0x340a06;return this[_0x2f4590(0x338)];}[_0x340a06(0x265)](){const _0x2ef7cd=_0x340a06;this[_0x2ef7cd(0x259)]()[_0x2ef7cd(0x360)](()=>super['dispose']());}async[_0x340a06(0x2a3)](_0x20db20){const _0x18b1b6=_0x340a06;return this[_0x18b1b6(0x303)]?null:this[_0x18b1b6(0x2bb)][_0x18b1b6(0x27e)](u[_0x18b1b6(0x339)](_0x20db20));}async['saveOfflineData'](_0x3f7295,_0x4e3f6e){const _0x2ef5e4=_0x340a06;return!!this[_0x2ef5e4(0x2bb)]['setItem'](_0x3f7295,_0x4e3f6e);}[_0x340a06(0x330)](_0x449448,_0x296b09,_0x5499c2,_0x3335ce){const _0x4f0e25=_0x340a06,_0x3e2676=this[_0x4f0e25(0x254)][_0x4f0e25(0x38c)](_0x449448);this[_0x4f0e25(0x299)]['set'](_0x449448,{'unitID':_0x449448,'type':_0x296b09,'awaitingChangeset':_0x5499c2,'mutations':_0x3335ce,'rev':_0x3e2676}),this[_0x4f0e25(0x338)][_0x4f0e25(0x2c0)](_0x449448)||this[_0x4f0e25(0x31f)](_0x449448);}['_scheduleSaving'](_0x47ac7c){const _0x3822b0=_0x340a06,_0x5a32b2=this['_getSaveTimeout']();_0x5a32b2===0x0?this[_0x3822b0(0x18b)](_0x47ac7c):this[_0x3822b0(0x338)][_0x3822b0(0x2b0)](_0x47ac7c,setTimeout(()=>this['_saveCache'](_0x47ac7c),_0x5a32b2));}[_0x340a06(0x143)](){const _0x193b7f=_0x340a06;var _0x378cba;return(_0x378cba=this[_0x193b7f(0x39e)][_0x193b7f(0x325)](u[_0x193b7f(0x1e7)]))!=null?_0x378cba:u[_0x193b7f(0x2f7)];}[_0x340a06(0x18b)](_0x545f9a){const _0x6d8f75=_0x340a06,_0x12ef20=this[_0x6d8f75(0x338)][_0x6d8f75(0x302)](_0x545f9a);return _0x12ef20!==void 0x0&&window[_0x6d8f75(0x20f)](_0x12ef20),this['_localStorageService'][_0x6d8f75(0x29f)](u['getLocalCacheKey'](_0x545f9a),this[_0x6d8f75(0x299)][_0x6d8f75(0x302)](_0x545f9a))['then'](()=>this[_0x6d8f75(0x338)]['delete'](_0x545f9a));}async['exhaustSavingTask'](){const _0xb30d07=_0x340a06,_0x465c64=[];this[_0xb30d07(0x338)][_0xb30d07(0x31d)]((_0x2394bc,_0x1f8894)=>{const _0x126a08=_0xb30d07;window[_0x126a08(0x20f)](_0x2394bc),_0x465c64[_0x126a08(0x244)](this['_saveCache'](_0x1f8894)['then'](()=>{const _0x582aeb=_0x126a08;this['_saveTaskMap'][_0x582aeb(0x142)](_0x1f8894);}));}),await Promise[_0xb30d07(0x2a8)](_0x465c64);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x340a06(0x2d2)]),_e(0x2,a['Inject'](m[_0x340a06(0x370)]))],ge);class je extends a[_0x340a06(0x1ba)]{constructor(){const _0x217f20=_0x340a06;super(),h(this,'urlChange$'),this[_0x217f20(0x356)]=d[_0x217f20(0x34b)](window,_0x217f20(0x3a5))[_0x217f20(0x20b)](d[_0x217f20(0x33f)](this[_0x217f20(0x15d)]),d[_0x217f20(0x2bf)](0x1),d[_0x217f20(0x388)](void 0x0));}['setParam'](_0x3b52c6,_0x513e70,_0xb39ade=!0x1){const _0x430c03=_0x340a06,_0x442e08=new URL(window[_0x430c03(0x193)][_0x430c03(0x228)]);_0x442e08[_0x430c03(0x347)][_0x430c03(0x2b0)](_0x3b52c6,_0x513e70),_0xb39ade?window[_0x430c03(0x270)]['replaceState']('','',_0x442e08[_0x430c03(0x1f5)]()):window[_0x430c03(0x270)][_0x430c03(0x267)]('','',_0x442e08[_0x430c03(0x1f5)]());}[_0x340a06(0x2fa)](_0x28dbc0,_0x34ac9b=!0x1){const _0x4ee357=_0x340a06,_0x1d2516=new URL(window[_0x4ee357(0x193)][_0x4ee357(0x228)]);_0x1d2516['searchParams']['delete'](_0x28dbc0),_0x34ac9b?window[_0x4ee357(0x270)][_0x4ee357(0x2a6)]('','',_0x1d2516[_0x4ee357(0x1f5)]()):window[_0x4ee357(0x270)]['pushState']('','',_0x1d2516[_0x4ee357(0x1f5)]());}['getParam'](_0x35d22e){const _0x184494=_0x340a06;var _0x5d6366;return(_0x5d6366=new URL(window['location']['href'])[_0x184494(0x347)]['get'](_0x35d22e))!=null?_0x5d6366:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x340a06(0x178)],Jt=(_0x4f2cba,_0x2c9424,_0x2363cc)=>_0x2c9424 in _0x4f2cba?qt(_0x4f2cba,_0x2c9424,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2363cc}):_0x4f2cba[_0x2c9424]=_0x2363cc,Zt=(_0x5b8e8b,_0xaf05bb,_0x10862c,_0x1c610e)=>{const _0x511209=_0x340a06;for(var _0x87a07b=_0x1c610e>0x1?void 0x0:_0x1c610e?zt(_0xaf05bb,_0x10862c):_0xaf05bb,_0x4180d7=_0x5b8e8b[_0x511209(0x36b)]-0x1,_0x7463e7;_0x4180d7>=0x0;_0x4180d7--)(_0x7463e7=_0x5b8e8b[_0x4180d7])&&(_0x87a07b=_0x7463e7(_0x87a07b)||_0x87a07b);return _0x87a07b;},he=(_0x4fb638,_0x172005)=>(_0xc07f51,_0x399446)=>_0x172005(_0xc07f51,_0x399446,_0x4fb638),Qt=(_0x384aff,_0x228a2b,_0x53d5d5)=>Jt(_0x384aff,_0x228a2b+'',_0x53d5d5);const es=_0x340a06(0x280);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x340a06(0x21b)]{constructor(_0x389c0e=Ue,_0x141024,_0x2aabdd,_0x20fb48){const _0x49663f=_0x340a06;super(),this[_0x49663f(0x346)]=_0x389c0e,this[_0x49663f(0x36e)]=_0x141024,this['_injector']=_0x2aabdd,this[_0x49663f(0x39e)]=_0x20fb48;const {..._0x47c6db}=a[_0x49663f(0x3cc)]({},Ue,this[_0x49663f(0x346)]);this[_0x49663f(0x39e)][_0x49663f(0x21e)]($t,_0x47c6db);}[_0x340a06(0x376)](){const _0x20d8d9=_0x340a06;this[_0x20d8d9(0x3c9)](),this[_0x20d8d9(0x2e3)]();}[_0x340a06(0x2b4)](){this['_registerRenderDependencies']();}[_0x340a06(0x3c9)](){const _0x5f3101=_0x340a06;var _0xf02ccb;const _0x170a2b=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x5f3101(0x1f9)],{'useClass':G['WebSocketService']}],[u[_0x5f3101(0x358)],{'useClass':ge}],[exports[_0x5f3101(0x298)]],[Q],[q],[x],[de],[exports[_0x5f3101(0x28b)]]];a[_0x5f3101(0x32c)](this[_0x5f3101(0x1f4)],a['mergeOverrideWithDependencies'](_0x170a2b,(_0xf02ccb=this[_0x5f3101(0x346)])==null?void 0x0:_0xf02ccb['override']));}[_0x340a06(0x2d4)](){const _0x1d54b7=_0x340a06;this['disposeWithMe'](this[_0x1d54b7(0x36e)][_0x1d54b7(0x1d5)](a['UniverInstanceType'][_0x1d54b7(0x203)],[Ie])),this[_0x1d54b7(0x1b4)](this['_renderManagerService'][_0x1d54b7(0x1d5)](a[_0x1d54b7(0x2d0)][_0x1d54b7(0x181)],[ve]));}['_initDependencies'](){const _0x31e8f7=_0x340a06;a['touchDependencies'](this[_0x31e8f7(0x1f4)],[[x],[exports[_0x31e8f7(0x298)]],[Q],[q],[exports[_0x31e8f7(0x28b)]]]);}},Qt(exports[_0x340a06(0x166)],_0x340a06(0x1cc),es),exports[_0x340a06(0x166)]=Zt([a['DependentOn'](u[_0x340a06(0x273)]),he(0x1,p[_0x340a06(0x224)]),he(0x2,a['Inject'](a[_0x340a06(0x320)])),he(0x3,a[_0x340a06(0x237)])],exports[_0x340a06(0x166)]);function _0x18a4(_0x3a33de,_0x58b2bd){const _0x1d2d12=_0x1d2d();return _0x18a4=function(_0x18a4fc,_0x52429b){_0x18a4fc=_0x18a4fc-0x140;let _0x4c8005=_0x1d2d12[_0x18a4fc];return _0x4c8005;},_0x18a4(_0x3a33de,_0x58b2bd);}var ts=Object[_0x340a06(0x178)],ss=(_0x3402a9,_0x8ec6ac,_0x25dcc2,_0xd90aef)=>{for(var _0x1334cf=_0xd90aef>0x1?void 0x0:_0xd90aef?ts(_0x8ec6ac,_0x25dcc2):_0x8ec6ac,_0x20c32c=_0x3402a9['length']-0x1,_0x36eb2a;_0x20c32c>=0x0;_0x20c32c--)(_0x36eb2a=_0x3402a9[_0x20c32c])&&(_0x1334cf=_0x36eb2a(_0x1334cf)||_0x1334cf);return _0x1334cf;},F=(_0x26b598,_0x32292a)=>(_0x2515c9,_0x53dc0d)=>_0x32292a(_0x2515c9,_0x53dc0d,_0x26b598);exports[_0x340a06(0x389)]=class extends u[_0x340a06(0x151)]{constructor(_0x5c1af5,_0x4928e8,_0x162eab,_0x5ee4f7,_0x4f2c77){super(_0x5c1af5,_0x4928e8,_0x162eab,_0x5ee4f7,_0x4f2c77);}async[_0x340a06(0x2c3)](_0x4efda3){const _0xe16b9d=_0x340a06,_0x14a852=await this[_0xe16b9d(0x2a9)](),_0x554fe2=this[_0xe16b9d(0x271)](_0x4efda3,_0x14a852);return this[_0xe16b9d(0x2d8)](_0x554fe2);}[_0x340a06(0x271)](_0x3960d4,_0x5df204){const _0x5510ca=_0x340a06,_0x52dc6f=typeof window>'u'?new URL(_0x3960d4):new URL(_0x3960d4,window[_0x5510ca(0x193)][_0x5510ca(0x2f2)]);_0x52dc6f[_0x5510ca(0x347)]['set'](_0x5510ca(0x29b),_0x5df204);const _0x37dde1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5510ca(0x193)][_0x5510ca(0x38f)]);return _0x37dde1['get'](_0x5510ca(0x21c))&&_0x52dc6f[_0x5510ca(0x347)][_0x5510ca(0x2b0)]('runId',_0x37dde1[_0x5510ca(0x302)](_0x5510ca(0x21c))),_0x52dc6f['toString']();}async[_0x340a06(0x2a9)](){const _0x5daba8=_0x340a06;var _0x48795f,_0x1874c2,_0x3ec4e4;const _0x369742=this[_0x5daba8(0x39e)][_0x5daba8(0x325)](u[_0x5daba8(0x1b5)]),_0x252f59=(_0x48795f=_0x369742==null?void 0x0:_0x369742[_0x5daba8(0x37d)])!=null?_0x48795f:u[_0x5daba8(0x1aa)];return(_0x3ec4e4=(_0x1874c2=(await this['_httpService']['get'](_0x252f59,{'headers':{'Content-Type':_0x5daba8(0x25e)}}))[_0x5daba8(0x391)])==null?void 0x0:_0x1874c2['ticket'])!=null?_0x3ec4e4:'';}},exports[_0x340a06(0x389)]=ss([F(0x0,a[_0x340a06(0x397)](a[_0x340a06(0x320)])),F(0x1,a[_0x340a06(0x397)](G['HTTPService'])),F(0x2,a['IConfigService']),F(0x3,a[_0x340a06(0x2a7)]),F(0x4,m[_0x340a06(0x3bb)])],exports[_0x340a06(0x389)]);const Me=0x7530,Le=_0x340a06(0x3af);class is extends a[_0x340a06(0x20a)]{constructor(){const _0x4afae0=_0x340a06;super(),h(this,_0x4afae0(0x30c),a['generateRandomId']()),h(this,_0x4afae0(0x16a),new Set()),h(this,_0x4afae0(0x17e),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x4afae0(0x393),new Map()),h(this,'_unitStatus',new Map()),this[_0x4afae0(0x1e2)]();}['dispose'](){const _0x819c33=_0x340a06;super['dispose'](),this[_0x819c33(0x393)][_0x819c33(0x31d)]((_0x3e1888,_0x21a8f7)=>this[_0x819c33(0x3b7)](_0x21a8f7)),this[_0x819c33(0x335)]&&window['clearInterval'](this[_0x819c33(0x335)]);}[_0x340a06(0x3ba)](_0x9147c7){const _0x83633b=_0x340a06;return this[_0x83633b(0x1e1)](_0x9147c7)['pipe'](d['distinctUntilChanged']());}[_0x340a06(0x17c)](_0x466c95){const _0x3055c3=_0x340a06;this[_0x3055c3(0x16a)][_0x3055c3(0x191)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3055c3(0x16a)][_0x3055c3(0x315)](_0x466c95),this[_0x3055c3(0x2c5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x466c95],'isForwarded':!0x1});}['disposeUnit'](_0x4d74c8){const _0x1e337b=_0x340a06;this[_0x1e337b(0x16a)][_0x1e337b(0x142)](_0x4d74c8),this['_selfUnitIDs']['size']===0x0&&this[_0x1e337b(0x335)]&&window[_0x1e337b(0x263)](this[_0x1e337b(0x335)]);}[_0x340a06(0x1e2)](){const _0x2c4034=_0x340a06;this[_0x2c4034(0x1b4)](a[_0x2c4034(0x1ec)](d['fromEvent'](window,_0x2c4034(0x1da))[_0x2c4034(0x17b)](_0x575b35=>{const _0x128ead=_0x2c4034;if(_0x575b35['key']!==Le||!_0x575b35[_0x128ead(0x3cb)])return;const _0xefa134=JSON[_0x128ead(0x2dd)](_0x575b35[_0x128ead(0x3cb)]);this[_0x128ead(0x365)](_0xefa134);}))),window['addEventListener'](_0x2c4034(0x1de),()=>this[_0x2c4034(0x2c5)]({'type':0x1,'memberID':this[_0x2c4034(0x30c)],'unitIDs':Array[_0x2c4034(0x3ad)](this[_0x2c4034(0x16a)])}));}['_handleEvent'](_0x2372cb){const _0x399e28=_0x340a06;switch(_0x2372cb[_0x399e28(0x1b0)]){case 0x0:this[_0x399e28(0x322)](_0x2372cb);break;case 0x1:this[_0x399e28(0x385)](_0x2372cb);break;case 0x2:this['_handleHeartbeatEvent'](_0x2372cb);break;}}[_0x340a06(0x322)](_0x35d633){const _0x78d3e5=_0x340a06,{unitIDs:_0x4026d8,memberID:_0x423e0f,isForwarded:_0xd60b24}=_0x35d633;_0x4026d8['forEach'](_0x1acff6=>{const _0x55d7fe=_0x18a4;if(!_0xd60b24&&this[_0x55d7fe(0x17e)]['has'](_0x1acff6)&&this[_0x55d7fe(0x1e1)](_0x1acff6)[_0x55d7fe(0x1e4)](u[_0x55d7fe(0x2d9)][_0x55d7fe(0x1c3)]),!this[_0x55d7fe(0x17e)]['has'](_0x1acff6)||!this[_0x55d7fe(0x17e)][_0x55d7fe(0x302)](_0x1acff6)[_0x55d7fe(0x2c0)](_0x423e0f)){const _0x5824b5=this['_unitOnClients']['get'](_0x1acff6)||new Set();_0x5824b5[_0x55d7fe(0x315)](_0x423e0f),this['_unitOnClients'][_0x55d7fe(0x2b0)](_0x1acff6,_0x5824b5),this[_0x55d7fe(0x24f)](_0x423e0f);}}),_0xd60b24||this[_0x78d3e5(0x2c5)]({'type':0x0,'memberID':this[_0x78d3e5(0x30c)],'unitIDs':[...this[_0x78d3e5(0x16a)]],'isForwarded':!0x0});}[_0x340a06(0x24f)](_0x77da86){const _0x55688b=_0x340a06;this[_0x55688b(0x3b7)](_0x77da86);const _0x2cf890=window['setTimeout'](()=>{const _0x33c6bc=_0x55688b;this[_0x33c6bc(0x17e)][_0x33c6bc(0x31d)](_0x102f0b=>{const _0x5eab5d=_0x33c6bc;_0x102f0b[_0x5eab5d(0x142)](_0x77da86);});},Me*0x2);this[_0x55688b(0x393)][_0x55688b(0x2b0)](_0x77da86,_0x2cf890);}[_0x340a06(0x3b7)](_0x1f6e90){const _0x54fdb2=_0x340a06;if(this[_0x54fdb2(0x393)][_0x54fdb2(0x2c0)](_0x1f6e90)){const _0x28c73c=this[_0x54fdb2(0x393)][_0x54fdb2(0x302)](_0x1f6e90);_0x28c73c&&window[_0x54fdb2(0x20f)](_0x28c73c),this['_clearOtherTimers'][_0x54fdb2(0x2b0)](_0x1f6e90,null);}}[_0x340a06(0x385)](_0x261558){const _0x5ad373=_0x340a06,{memberID:_0x44f959,unitIDs:_0x2728c6}=_0x261558;_0x2728c6[_0x5ad373(0x31d)](_0x3a5bb7=>{const _0x4c6f8=_0x5ad373;var _0x163cf7;const _0x4a703f=this[_0x4c6f8(0x17e)]['get'](_0x3a5bb7);_0x4a703f&&(_0x4a703f[_0x4c6f8(0x142)](_0x44f959),(_0x163cf7=this[_0x4c6f8(0x1e1)](_0x3a5bb7))==null||_0x163cf7[_0x4c6f8(0x1e4)](_0x4a703f[_0x4c6f8(0x191)]===0x0?u[_0x4c6f8(0x2d9)][_0x4c6f8(0x2bc)]:u[_0x4c6f8(0x2d9)][_0x4c6f8(0x1c3)]));}),this[_0x5ad373(0x3b7)](_0x44f959);}[_0x340a06(0x355)](_0x3e29f6){const _0x17c3d7=_0x340a06;this['_scheduleClearOtherTimer'](_0x3e29f6[_0x17c3d7(0x35c)]);}['_send'](_0x2cf51e){const _0x522d89=_0x340a06;localStorage[_0x522d89(0x29f)](Le,JSON[_0x522d89(0x1c5)](_0x2cf51e));}['_scheduleHeartbeat'](){const _0x4f000b=_0x340a06;this[_0x4f000b(0x335)]=window['setInterval'](()=>{const _0x1cc220=_0x4f000b;this[_0x1cc220(0x2c5)]({'type':0x2,'memberID':this[_0x1cc220(0x30c)]});},Me);}['_ensureSubject'](_0x3b0370){const _0x47467b=_0x340a06;return this['_unitStatus'][_0x47467b(0x2c0)](_0x3b0370)||this[_0x47467b(0x2c6)][_0x47467b(0x2b0)](_0x3b0370,new d[(_0x47467b(0x1c8))](u[_0x47467b(0x2d9)][_0x47467b(0x2bc)])),this[_0x47467b(0x2c6)]['get'](_0x3b0370);}}var Be=(_0xf4df12=>(_0xf4df12[_0xf4df12[_0x340a06(0x32e)]=0x0]=_0x340a06(0x32e),_0xf4df12[_0xf4df12['OK']=0x1]='OK',_0xf4df12[_0xf4df12[_0x340a06(0x32f)]=0x2]=_0x340a06(0x32f),_0xf4df12[_0xf4df12[_0x340a06(0x310)]=0x3]=_0x340a06(0x310),_0xf4df12[_0xf4df12[_0x340a06(0x2d6)]=0x4]=_0x340a06(0x2d6),_0xf4df12[_0xf4df12[_0x340a06(0x2fb)]=0x5]=_0x340a06(0x2fb),_0xf4df12[_0xf4df12['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0xf4df12[_0xf4df12[_0x340a06(0x336)]=0x7]=_0x340a06(0x336),_0xf4df12[_0xf4df12['TOO_MANY_REQUESTS']=0x8]=_0x340a06(0x277),_0xf4df12[_0xf4df12['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0xf4df12[_0xf4df12[_0x340a06(0x283)]=0xa]=_0x340a06(0x283),_0xf4df12[_0xf4df12[_0x340a06(0x314)]=0x1389]=_0x340a06(0x314),_0xf4df12[_0xf4df12[_0x340a06(0x25f)]=0x1771]=_0x340a06(0x25f),_0xf4df12[_0xf4df12[_0x340a06(0x3b1)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xf4df12[_0xf4df12['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x340a06(0x2ec),_0xf4df12[_0xf4df12['APPLY_REJECT']=0x1b59]=_0x340a06(0x250),_0xf4df12[_0xf4df12[_0x340a06(0x386)]=0x1b5a]=_0x340a06(0x386),_0xf4df12[_0xf4df12['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x340a06(0x373),_0xf4df12[_0xf4df12[_0x340a06(0x168)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xf4df12[_0xf4df12[_0x340a06(0x1cd)]=0x1b5d]=_0x340a06(0x1cd),_0xf4df12[_0xf4df12[_0x340a06(0x350)]=0x1f41]=_0x340a06(0x350),_0xf4df12[_0xf4df12[_0x340a06(0x230)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xf4df12[_0xf4df12['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x340a06(0x1b9),_0xf4df12[_0xf4df12[_0x340a06(0x305)]=0x232b]=_0x340a06(0x305),_0xf4df12[_0xf4df12[_0x340a06(0x37b)]=0x232c]=_0x340a06(0x37b),_0xf4df12[_0xf4df12[_0x340a06(0x31c)]=0x232d]=_0x340a06(0x31c),_0xf4df12[_0xf4df12[_0x340a06(0x2b2)]=0x2711]=_0x340a06(0x2b2),_0xf4df12[_0xf4df12[_0x340a06(0x1df)]=0x2712]=_0x340a06(0x1df),_0xf4df12[_0xf4df12['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x340a06(0x286),_0xf4df12[_0xf4df12[_0x340a06(0x1ae)]=0x2714]=_0x340a06(0x1ae),_0xf4df12[_0xf4df12[_0x340a06(0x334)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xf4df12[_0xf4df12[_0x340a06(0x2ca)]=0x271b]=_0x340a06(0x2ca),_0xf4df12[_0xf4df12[_0x340a06(0x29c)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0xf4df12[_0xf4df12[_0x340a06(0x2df)]=0x271d]=_0x340a06(0x2df),_0xf4df12[_0xf4df12[_0x340a06(0x22f)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xf4df12[_0xf4df12['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0xf4df12[_0xf4df12['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x340a06(0x276),_0xf4df12[_0xf4df12[_0x340a06(0x28e)]=0x2ee1]=_0x340a06(0x28e),_0xf4df12[_0xf4df12[_0x340a06(0x215)]=0x2ee2]='INVALID_INVITE_CODE',_0xf4df12[_0xf4df12[_0x340a06(0x2f5)]=0x2ee3]=_0x340a06(0x2f5),_0xf4df12[_0xf4df12[_0x340a06(0x211)]=0x2ee4]=_0x340a06(0x211),_0xf4df12[_0xf4df12[_0x340a06(0x2e4)]=0x2ee5]=_0x340a06(0x2e4),_0xf4df12[_0xf4df12[_0x340a06(0x14c)]=0x32c9]=_0x340a06(0x14c),_0xf4df12[_0xf4df12[_0x340a06(0x381)]=0x32ca]=_0x340a06(0x381),_0xf4df12[_0xf4df12['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x340a06(0x1c7),_0xf4df12[_0xf4df12[_0x340a06(0x212)]=-0x1]=_0x340a06(0x212),_0xf4df12))(Be||{}),ns=Object[_0x340a06(0x178)],rs=(_0x3d453e,_0x462f82,_0x4ccc62,_0x19dc35)=>{const _0x437007=_0x340a06;for(var _0x478afd=_0x19dc35>0x1?void 0x0:_0x19dc35?ns(_0x462f82,_0x4ccc62):_0x462f82,_0x3d3a52=_0x3d453e[_0x437007(0x36b)]-0x1,_0x56feca;_0x3d3a52>=0x0;_0x3d3a52--)(_0x56feca=_0x3d453e[_0x3d3a52])&&(_0x478afd=_0x56feca(_0x478afd)||_0x478afd);return _0x478afd;},ue=(_0x3646a0,_0x5927a7)=>(_0x190c1a,_0x4ba231)=>_0x5927a7(_0x190c1a,_0x4ba231,_0x3646a0);exports['RemoteUniscriptService']=class extends a[_0x340a06(0x20a)]{constructor(_0x157808,_0x4e4895,_0x6eee93){const _0x389175=_0x340a06;super(),this[_0x389175(0x21a)]=_0x157808,this['_httpService']=_0x4e4895,this[_0x389175(0x39e)]=_0x6eee93;}async[_0x340a06(0x328)](_0x5e3345,_0x580769,_0x55f093,..._0x1b3f13){const _0xb94145=_0x340a06;var _0x4f1741,_0x2b81d0,_0x27bc4b,_0x3df5e5;const _0x57e69f=this['_instanceService'][_0xb94145(0x16d)]();if(!_0x57e69f)throw new Error(_0xb94145(0x261));const _0x42f13a=((_0x4f1741=this['_configService']['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x4f1741:u[_0xb94145(0x294)])+'/'+_0x5e3345+_0xb94145(0x15e)+_0x580769,_0x204b34=new URL(window[_0xb94145(0x193)][_0xb94145(0x228)]),_0xc79c33={'scriptId':_0x5e3345,'runId':(_0x2b81d0=_0x204b34[_0xb94145(0x347)][_0xb94145(0x302)]('runId'))!=null?_0x2b81d0:'','function':_0x580769,'unitId':_0x57e69f[_0xb94145(0x2e9)](),'argsOfFunction':JSON[_0xb94145(0x1c5)](_0x1b3f13),'invokeId':(_0x27bc4b=_0x55f093['invokeId'])!=null?_0x27bc4b:'','executionId':(_0x3df5e5=_0x55f093[_0xb94145(0x2ba)])!=null?_0x3df5e5:''};try{const _0x3275bf=await this[_0xb94145(0x145)]['post'](_0x42f13a,{'body':_0xc79c33});return _0x3275bf[_0xb94145(0x391)][_0xb94145(0x18d)]&&_0x3275bf[_0xb94145(0x391)][_0xb94145(0x18d)][_0xb94145(0x2cf)]!==Be['OK']?_0xb94145(0x150):_0x3275bf[_0xb94145(0x391)][_0xb94145(0x3ab)];}catch{return'Failed';}}},exports[_0x340a06(0x25c)]=rs([ue(0x0,a[_0x340a06(0x333)]),ue(0x1,a['Inject'](G[_0x340a06(0x1ef)])),ue(0x2,a[_0x340a06(0x237)])],exports[_0x340a06(0x25c)]),exports[_0x340a06(0x304)]=xe,exports[_0x340a06(0x3c1)]=be,exports['SheetCollabCursorShape']=Ae,exports[_0x340a06(0x274)]=is,exports[_0x340a06(0x345)]=je;
@@ -1 +1 @@
1
- 'use strict';const _0x43fa69=_0x90ba;(function(_0x12ec1c,_0x4dcd5e){const _0x2effc5=_0x90ba,_0xf3c08d=_0x12ec1c();while(!![]){try{const _0x31aba9=parseInt(_0x2effc5(0xaf))/0x1*(parseInt(_0x2effc5(0xb5))/0x2)+-parseInt(_0x2effc5(0xbb))/0x3*(-parseInt(_0x2effc5(0xad))/0x4)+parseInt(_0x2effc5(0xb4))/0x5*(parseInt(_0x2effc5(0xc1))/0x6)+parseInt(_0x2effc5(0xb9))/0x7+-parseInt(_0x2effc5(0xbe))/0x8+parseInt(_0x2effc5(0xc5))/0x9+parseInt(_0x2effc5(0xb7))/0xa*(-parseInt(_0x2effc5(0xc3))/0xb);if(_0x31aba9===_0x4dcd5e)break;else _0xf3c08d['push'](_0xf3c08d['shift']());}catch(_0x4dd7ea){_0xf3c08d['push'](_0xf3c08d['shift']());}}}(_0x16f8,0x8a418));function _0x90ba(_0x3c9d43,_0x4764f3){const _0x16f809=_0x16f8();return _0x90ba=function(_0x90ba7d,_0x42a01f){_0x90ba7d=_0x90ba7d-0xad;let _0x3d3626=_0x16f809[_0x90ba7d];return _0x3d3626;},_0x90ba(_0x3c9d43,_0x4764f3);}const e={'collab-client':{'tooltip':{'reconnect':_0x43fa69(0xc0)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x43fa69(0xc2),'notCollab':'Local\x20file','synced':'Synced','syncing':_0x43fa69(0xae),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x43fa69(0xbf),'will-retry':_0x43fa69(0xb8),'room-full':_0x43fa69(0xbd),'collaboration-timeout':_0x43fa69(0xb2)},'conflict':{'title':_0x43fa69(0xb0),'content':_0x43fa69(0xbc)},'permission':{'title':_0x43fa69(0xc4),'content':_0x43fa69(0xba)},'collaboration':{'single-unit':{'warning':_0x43fa69(0xb3)},'closeRoom':_0x43fa69(0xb6)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x16f8(){const _0x5d652c=['19554JpnrAY','Edit\x20conflicts','11COuEXE','Authentication\x20Error','44253AHbXZn','76RfMUfm','Syncing...','769237SPUiHb','Collaboration\x20Conflict','exports','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1205NFlLcG','2BSUALw','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','5433050itAYHh','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1483363QDuRBy','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','45195AzShFo','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','7584928eRVZDT','Connection\x20failed,\x20please\x20check\x20your\x20network.','Click\x20to\x20Reconnect'];_0x16f8=function(){return _0x5d652c;};return _0x16f8();}module[_0x43fa69(0xb1)]=e;
1
+ 'use strict';const _0x4e74c6=_0x392c;(function(_0x33480f,_0x2672c4){const _0x46b535=_0x392c,_0xe667a5=_0x33480f();while(!![]){try{const _0x2ee084=parseInt(_0x46b535(0xcf))/0x1+-parseInt(_0x46b535(0xe4))/0x2*(-parseInt(_0x46b535(0xd3))/0x3)+-parseInt(_0x46b535(0xe0))/0x4*(-parseInt(_0x46b535(0xd7))/0x5)+-parseInt(_0x46b535(0xcc))/0x6+parseInt(_0x46b535(0xcd))/0x7*(parseInt(_0x46b535(0xdc))/0x8)+-parseInt(_0x46b535(0xca))/0x9*(-parseInt(_0x46b535(0xd4))/0xa)+-parseInt(_0x46b535(0xde))/0xb;if(_0x2ee084===_0x2672c4)break;else _0xe667a5['push'](_0xe667a5['shift']());}catch(_0x264102){_0xe667a5['push'](_0xe667a5['shift']());}}}(_0xf808,0x745c4));function _0xf808(){const _0xaf0f51=['Collaboration\x20Conflict','304pNPunO','Local\x20file','22342012HTNCwK','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','3168040IaOQsF','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','exports','42WuJeyw','36xNBMbw','Connection\x20failed,\x20please\x20check\x20your\x20network.','560448HcJIJY','154931UZKbPv','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','613873HizYCG','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Click\x20to\x20Reconnect','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','26109NlRHYZ','428530HKMIJJ','Synced','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','5zYpIHL','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.','Edit\x20conflicts','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'];_0xf808=function(){return _0xaf0f51;};return _0xf808();}function _0x392c(_0x3cdf35,_0x515c0b){const _0xf8087=_0xf808();return _0x392c=function(_0x392c67,_0x13d821){_0x392c67=_0x392c67-0xca;let _0x4b504c=_0xf8087[_0x392c67];return _0x4b504c;},_0x392c(_0x3cdf35,_0x515c0b);}const e={'collab-client':{'tooltip':{'reconnect':_0x4e74c6(0xd1)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x4e74c6(0xd9),'notCollab':_0x4e74c6(0xdd),'synced':_0x4e74c6(0xd5),'syncing':'Syncing...','offline':_0x4e74c6(0xda)},'session':{'connection-failed':_0x4e74c6(0xcb),'will-retry':_0x4e74c6(0xd2),'room-full':_0x4e74c6(0xe2),'collaboration-timeout':_0x4e74c6(0xd6)},'conflict':{'title':_0x4e74c6(0xdb),'content':_0x4e74c6(0xd8)},'permission':{'title':'Authentication\x20Error','content':_0x4e74c6(0xd0)},'collaboration':{'single-unit':{'warning':_0x4e74c6(0xdf)},'closeRoom':_0x4e74c6(0xce)},'auth':{'needGotoLoginAlert':_0x4e74c6(0xe1)}};module[_0x4e74c6(0xe3)]=e;