@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505191607 → 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 _0x26c500=_0x3071;(function(_0x6412dd,_0x51ca4c){const _0x241c75=_0x3071,_0x4dd831=_0x6412dd();while(!![]){try{const _0x18b93f=-parseInt(_0x241c75(0x10f))/0x1*(-parseInt(_0x241c75(0x107))/0x2)+-parseInt(_0x241c75(0x114))/0x3+-parseInt(_0x241c75(0x108))/0x4*(parseInt(_0x241c75(0x111))/0x5)+-parseInt(_0x241c75(0x106))/0x6+-parseInt(_0x241c75(0x110))/0x7+parseInt(_0x241c75(0x10d))/0x8*(parseInt(_0x241c75(0x116))/0x9)+parseInt(_0x241c75(0x10b))/0xa;if(_0x18b93f===_0x51ca4c)break;else _0x4dd831['push'](_0x4dd831['shift']());}catch(_0x5c9f54){_0x4dd831['push'](_0x4dd831['shift']());}}}(_0x538e,0x1e809));function _0x538e(){const _0x476a07=['@univerjs/core/facade','28lVgHvZ','1479534jwNYyh','12315iybGpM','runOnServer','get','583236zlysys','FUniver','9kRkqLQ','_injector','946428fgvXxp','15868NPxBPY','312NvrSfI','@univerjs-pro/collaboration-client-ui','extend','5424650BYeDbU','RemoteUniscriptService','927568YAvjxf'];_0x538e=function(){return _0x476a07;};return _0x538e();}const t=require(_0x26c500(0x109)),e=require(_0x26c500(0x10e));class c extends e[_0x26c500(0x115)]{[_0x26c500(0x112)](_0xa0210f,_0x4eb0e2,..._0x1e4e1a){const _0x23c53e=_0x26c500;return this[_0x23c53e(0x117)][_0x23c53e(0x113)](t[_0x23c53e(0x10c)])[_0x23c53e(0x112)](_0xa0210f,_0x4eb0e2,{},..._0x1e4e1a);}}function _0x3071(_0x417412,_0x152565){const _0x538e05=_0x538e();return _0x3071=function(_0x3071bc,_0x2d3893){_0x3071bc=_0x3071bc-0x106;let _0x26665a=_0x538e05[_0x3071bc];return _0x26665a;},_0x3071(_0x417412,_0x152565);}e[_0x26c500(0x115)][_0x26c500(0x10a)](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 _0x5e93c2=_0x286c;(function(_0x42c542,_0x3f7a36){const _0x2b5e3a=_0x286c,_0x273339=_0x42c542();while(!![]){try{const _0x21be02=parseInt(_0x2b5e3a(0x251))/0x1*(-parseInt(_0x2b5e3a(0x268))/0x2)+parseInt(_0x2b5e3a(0x3a4))/0x3+parseInt(_0x2b5e3a(0x19b))/0x4+-parseInt(_0x2b5e3a(0x37c))/0x5*(parseInt(_0x2b5e3a(0x2d8))/0x6)+parseInt(_0x2b5e3a(0x1a3))/0x7*(-parseInt(_0x2b5e3a(0x384))/0x8)+parseInt(_0x2b5e3a(0x19a))/0x9*(-parseInt(_0x2b5e3a(0x35e))/0xa)+parseInt(_0x2b5e3a(0x3bf))/0xb*(parseInt(_0x2b5e3a(0x1af))/0xc);if(_0x21be02===_0x3f7a36)break;else _0x273339['push'](_0x273339['shift']());}catch(_0x4be1b9){_0x273339['push'](_0x273339['shift']());}}}(_0x2048,0x72d01));var Ve=Object[_0x5e93c2(0x2cd)],Xe=(_0x565928,_0x304d53,_0x5a0764)=>_0x304d53 in _0x565928?Ve(_0x565928,_0x304d53,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a0764}):_0x565928[_0x304d53]=_0x5a0764,h=(_0x1369ee,_0x307845,_0x5ab5b0)=>Xe(_0x1369ee,typeof _0x307845!=_0x5e93c2(0x29c)?_0x307845+'':_0x307845,_0x5ab5b0);Object[_0x5e93c2(0x2cd)](exports,Symbol[_0x5e93c2(0x329)],{'value':_0x5e93c2(0x405)});const u=require(_0x5e93c2(0x24a)),a=require('@univerjs/core'),p=require(_0x5e93c2(0x21d)),G=require(_0x5e93c2(0x41f)),b=require('@univerjs/docs-ui'),Ge=require(_0x5e93c2(0x1c6)),d=require(_0x5e93c2(0x2c9)),Y=require('@univerjs/docs'),m=require(_0x5e93c2(0x2e3)),Ee=require(_0x5e93c2(0x25a)),g=require(_0x5e93c2(0x1cc)),$=require(_0x5e93c2(0x425)),X=require('@univerjs/sheets-ui'),P=require(_0x5e93c2(0x3b6)),T=require(_0x5e93c2(0x30d)),D=require('@univerjs/design'),M=require(_0x5e93c2(0x358)),Ke=require(_0x5e93c2(0x32b));var qe=Object[_0x5e93c2(0x2a8)],ze=(_0x7ed59f,_0xba0fee,_0x45f002,_0x2c6ed4)=>{for(var _0x21400d=_0x2c6ed4>0x1?void 0x0:_0x2c6ed4?qe(_0xba0fee,_0x45f002):_0xba0fee,_0xce6576=_0x7ed59f['length']-0x1,_0x180208;_0xce6576>=0x0;_0xce6576--)(_0x180208=_0x7ed59f[_0xce6576])&&(_0x21400d=_0x180208(_0x21400d)||_0x21400d);return _0x21400d;},Te=(_0x30aa20,_0xe98cfd)=>(_0x175016,_0x40a131)=>_0xe98cfd(_0x175016,_0x40a131,_0x30aa20);let de=class extends a[_0x5e93c2(0x1b1)]{constructor(_0x4aff41,_0x5c24b4){const _0x253f10=_0x5e93c2;super(),this['_docClipboardService']=_0x4aff41,this['_imageIoService']=_0x5c24b4,this[_0x253f10(0x1a5)]();}[_0x5e93c2(0x1a5)](){const _0x13a023=_0x5e93c2,_0x58d714=this;this[_0x13a023(0x303)](this[_0x13a023(0x399)][_0x13a023(0x37d)]({'onBeforePasteImage':async _0x3002aa=>{const _0x30b049=_0x13a023,_0x469d49=await _0x58d714[_0x30b049(0x217)][_0x30b049(0x1a8)](_0x3002aa);return _0x469d49?{'source':_0x469d49[_0x30b049(0x1d0)],'imageSourceType':_0x469d49[_0x30b049(0x29a)]}:null;}}));}};de=ze([Te(0x0,b[_0x5e93c2(0x408)]),Te(0x1,Ge[_0x5e93c2(0x2bd)])],de);const Oe=[_0x5e93c2(0x371),_0x5e93c2(0x203),_0x5e93c2(0x31f),_0x5e93c2(0x3a9),_0x5e93c2(0x257),_0x5e93c2(0x2c7)];class me extends a['Disposable']{constructor(){const _0x4380a4=_0x5e93c2;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x4380a4(0x411),0x0);}[_0x5e93c2(0x35a)](_0x526364){const _0x2fa829=_0x5e93c2;if(this[_0x2fa829(0x21b)][_0x2fa829(0x395)](_0x526364))return this[_0x2fa829(0x21b)]['get'](_0x526364);const _0x51c89a=Oe[this[_0x2fa829(0x411)]];return this['_colorIndex']=(this[_0x2fa829(0x411)]+0x1)%Oe[_0x2fa829(0x293)],this[_0x2fa829(0x21b)][_0x2fa829(0x3f1)](_0x526364,_0x51c89a),_0x51c89a;}}function Pe(_0x3da61b){const _0x5bd4ed=_0x5e93c2;let _0x350494='';for(const _0x2f91b6 of _0x3da61b){const {startOffset:_0x1d742b,endOffset:_0x50752b,isActive:_0x4fce27,rangeType:_0x52ff30,segmentId:_0x16ad5b,segmentPage:_0x4954f4}=_0x2f91b6;_0x350494[_0x5bd4ed(0x293)]&&(_0x350494+=','),_0x350494+=_0x1d742b+':'+_0x50752b+':'+(_0x4fce27?'1':'0')+':'+_0x52ff30+':'+_0x16ad5b+':'+_0x4954f4;}return _0x350494;}function Je(_0x220575){const _0x4a35a7=_0x5e93c2,_0xe9f93f=_0x220575[_0x4a35a7(0x243)](','),_0x123f3d=[];for(const _0x472b86 of _0xe9f93f){const [_0x5b041e,_0x10fe14,_0x33c693,_0x541722,_0x557b40,_0x204097]=_0x472b86[_0x4a35a7(0x243)](':');_0x123f3d[_0x4a35a7(0x298)]({'startOffset':Number(_0x5b041e),'endOffset':Number(_0x10fe14),'collapsed':_0x5b041e===_0x10fe14,'isActive':_0x33c693==='1','rangeType':_0x541722===a['DOC_RANGE_TYPE'][_0x4a35a7(0x40b)]?a[_0x4a35a7(0x3dd)][_0x4a35a7(0x40b)]:a[_0x4a35a7(0x3dd)][_0x4a35a7(0x332)],'segmentId':typeof _0x557b40=='string'?String(_0x557b40):'','segmentPage':Number(_0x204097!=null?_0x204097:-0x1)});}return _0x123f3d[_0x4a35a7(0x412)](_0xab0389=>_0xab0389[_0x4a35a7(0x30b)])||(_0x123f3d[0x0]['isActive']=!0x0),_0x123f3d;}class Ce extends a['RxDisposable']{constructor(){const _0x58172d=_0x5e93c2;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,'collabCursorState$',this[_0x58172d(0x1a0)][_0x58172d(0x38e)]());}[_0x5e93c2(0x30c)](_0x13ba6d){const _0x7cc3a7=_0x5e93c2,{unitID:_0x47979e,memberID:_0x2923d6,textRanges:_0x530ef9}=_0x13ba6d,_0x15876f=Pe(_0x530ef9);if(_0x15876f==='')return;const _0x468166={'unitID':_0x47979e,'memberID':_0x2923d6,'selection':_0x15876f};this[_0x7cc3a7(0x1a0)][_0x7cc3a7(0x374)](_0x468166);}}var Ze=Object[_0x5e93c2(0x2a8)],Qe=(_0x2824d4,_0x384186,_0x4aa465,_0x207d0b)=>{const _0x4a721b=_0x5e93c2;for(var _0x428130=_0x207d0b>0x1?void 0x0:_0x207d0b?Ze(_0x384186,_0x4aa465):_0x384186,_0x53df28=_0x2824d4[_0x4a721b(0x293)]-0x1,_0x15599c;_0x53df28>=0x0;_0x53df28--)(_0x15599c=_0x2824d4[_0x53df28])&&(_0x428130=_0x15599c(_0x428130)||_0x428130);return _0x428130;},L=(_0x263d57,_0x24da99)=>(_0x16d892,_0x30eeac)=>_0x24da99(_0x16d892,_0x30eeac,_0x263d57);const et=0x12c,tt=0x64;let fe=class extends a[_0x5e93c2(0x1b1)]{constructor(_0x1606e8,_0xaeba90,_0xa3bea3,_0x6eaa18,_0x3ac4bb,_0x3581a5,_0x1bd1b8,_0x212637,_0x2c4203){const _0x11bf8a=_0x5e93c2;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x11bf8a(0x2a1),new d['BehaviorSubject'](new Map())),h(this,_0x11bf8a(0x1ca),this['_cursorInfo$']['asObservable']()),h(this,_0x11bf8a(0x263),new d[(_0x11bf8a(0x3bb))]([])),h(this,_0x11bf8a(0x296),this['_roomMembers$'][_0x11bf8a(0x3a8)](d[_0x11bf8a(0x1c5)](et))),h(this,_0x11bf8a(0x3ea),a[_0x11bf8a(0x1f2)](_0x4d65a5=>{const _0x32438f=_0x11bf8a,_0x409e4e={'eventID':m[_0x32438f(0x361)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x32438f(0x21a)],'memberID':this['_session']['getMemberID'](),'selection':Pe(_0x4d65a5)}};this['_session'][_0x32438f(0x31d)](_0x409e4e,this['unitID']);},tt)),(this[_0x11bf8a(0x21a)]=_0x1606e8,this[_0x11bf8a(0x3dc)]=_0xaeba90,this['_injector']=_0xa3bea3,this[_0x11bf8a(0x3af)]=_0x6eaa18,this[_0x11bf8a(0x1ae)]=_0x3ac4bb,this[_0x11bf8a(0x3d9)]=_0x3581a5,this[_0x11bf8a(0x402)]=_0x1bd1b8,this['_univerInstanceService']=_0x212637,this[_0x11bf8a(0x3cd)]=_0x2c4203);}get['cursorInfo'](){const _0x430108=_0x5e93c2;return this[_0x430108(0x2a1)][_0x430108(0x416)]();}get[_0x5e93c2(0x2d2)](){const _0x192c3a=_0x5e93c2;return this[_0x192c3a(0x263)][_0x192c3a(0x416)]();}[_0x5e93c2(0x2f0)](){const _0x5629c5=_0x5e93c2;super[_0x5629c5(0x2f0)](),this['_cursorInfo$']['next'](new Map()),this[_0x5629c5(0x2a1)]['complete'](),this['_roomMembers$']['next']([]),this[_0x5629c5(0x263)]['complete']();}[_0x5e93c2(0x340)](){const _0x2f4c33=_0x5e93c2;this[_0x2f4c33(0x1a5)]||(this[_0x2f4c33(0x1a5)]=!0x0,this[_0x2f4c33(0x3dc)]['sessionStatus$'][_0x2f4c33(0x3a8)](d[_0x2f4c33(0x301)](this['dispose$']))['subscribe'](_0x163f1c=>{const _0xdc904b=_0x2f4c33;_0x163f1c===u[_0xdc904b(0x201)][_0xdc904b(0x344)]?this[_0xdc904b(0x1fe)]():this[_0xdc904b(0x1dd)]();}),this['_session']['event$'][_0x2f4c33(0x3a8)](d[_0x2f4c33(0x301)](this[_0x2f4c33(0x333)]))[_0x2f4c33(0x369)](_0x2feeca=>{const _0x1c9f32=_0x2f4c33,_0x33116f=_0x2feeca['eventID'];_0x33116f===m[_0x1c9f32(0x361)][_0x1c9f32(0x2fd)]&&this['_onCursorUpdate'](_0x2feeca),_0x33116f===m[_0x1c9f32(0x361)][_0x1c9f32(0x35b)]&&this[_0x1c9f32(0x1c9)](_0x2feeca);}),this[_0x2f4c33(0x303)](this['_commandService'][_0x2f4c33(0x409)](_0x1a2a23=>{const _0x4fc0d8=_0x2f4c33,_0x45bc34=_0x1a2a23['params'];_0x45bc34!=null&&this[_0x4fc0d8(0x292)]&&_0x1a2a23['id']===Y[_0x4fc0d8(0x1f5)]['id']&&_0x45bc34[_0x4fc0d8(0x387)]===this[_0x4fc0d8(0x21a)]&&_0x45bc34['isEditing']===!0x1&&_0x45bc34['ranges']['length']>0x0&&this[_0x4fc0d8(0x3ea)](_0x45bc34[_0x4fc0d8(0x282)]);})),this[_0x2f4c33(0x3d9)][_0x2f4c33(0x39b)]['pipe'](d[_0x2f4c33(0x301)](this[_0x2f4c33(0x333)]))[_0x2f4c33(0x369)](_0xd3dbb2=>{const _0x477674=_0x2f4c33;if((_0xd3dbb2==null?void 0x0:_0xd3dbb2[_0x477674(0x21a)])!==this['unitID'])return;const _0x3257bd={'eventID':m[_0x477674(0x361)]['UPDATE_CURSOR'],'data':_0xd3dbb2};this['_onCursorUpdate'](_0x3257bd);}),this[_0x2f4c33(0x303)](this[_0x2f4c33(0x3cd)][_0x2f4c33(0x409)](_0x2d4bbc=>{const _0x5399cb=_0x2f4c33;if(_0x2d4bbc[_0x5399cb(0x2cc)]==null)return;const _0x3a82a7=_0x2d4bbc[_0x5399cb(0x2cc)];if(_0x2d4bbc['id']!==Y[_0x5399cb(0x1b3)]['id']||_0x3a82a7['unitId']!==this['unitID'])return;const _0x5adef9={'id':_0x5399cb(0x2c4),'params':_0x3a82a7},_0x14ec74=this[_0x5399cb(0x22e)];for(const [_0x40aecc,_0x3d244f]of _0x14ec74){const _0x20bea6={'id':_0x5399cb(0x2c4),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3d244f[_0x5399cb(0x282)]}},_0x10fead=this[_0x5399cb(0x402)]['transformMutation'](_0x5adef9,_0x20bea6,!0x1);if(m[_0x5399cb(0x326)](_0x10fead))throw _0x10fead[_0x5399cb(0x360)];_0x14ec74[_0x5399cb(0x3f1)](_0x40aecc,{..._0x3d244f,'ranges':_0x10fead[_0x5399cb(0x23c)]['params'][_0x5399cb(0x1c7)]});}queueMicrotask(()=>{const _0x30ab2a=_0x5399cb;this[_0x30ab2a(0x2a1)][_0x30ab2a(0x374)](_0x14ec74);});})));}['_onCursorUpdate'](_0xb88850){const _0x1b5204=_0x5e93c2;var _0x18d255,_0x2d04f5;const {memberID:_0x5d0588,selection:_0x46d7aa}=_0xb88850['data'],_0x238531=Je(_0x46d7aa),_0x158f75=(_0x2d04f5=(_0x18d255=this[_0x1b5204(0x1ae)][_0x1b5204(0x242)](this[_0x1b5204(0x21a)],_0x5d0588))==null?void 0x0:_0x18d255[_0x1b5204(0x305)])!=null?_0x2d04f5:_0x1b5204(0x343),_0x1ab77c={'color':this['_colorAssignService'][_0x1b5204(0x35a)](_0x5d0588),'name':_0x158f75,'ranges':_0x238531},_0x37fb44=this[_0x1b5204(0x22e)];_0x37fb44[_0x1b5204(0x3f1)](_0x5d0588,_0x1ab77c),this[_0x1b5204(0x2a1)]['next'](_0x37fb44);}[_0x5e93c2(0x1c9)](_0xc5ebb4){const _0xd4fb4c=_0x5e93c2,{memberID:_0x38bef5}=_0xc5ebb4[_0xd4fb4c(0x2d9)],_0x3fc9c8=this[_0xd4fb4c(0x22e)];_0x3fc9c8[_0xd4fb4c(0x334)](_0x38bef5),this[_0xd4fb4c(0x2a1)]['next'](_0x3fc9c8);}[_0x5e93c2(0x1fe)](){const _0x2de080=_0x5e93c2;var _0x4f1b78;if(this[_0x2de080(0x292)]=!0x0,((_0x4f1b78=this[_0x2de080(0x26e)][_0x2de080(0x1d3)]())==null?void 0x0:_0x4f1b78['getUnitId']())!==this[_0x2de080(0x21a)])return;const _0x479af3=this[_0x2de080(0x319)][_0x2de080(0x2a3)](Y[_0x2de080(0x2ea)])[_0x2de080(0x3b8)]();Array[_0x2de080(0x3e0)](_0x479af3)&&_0x479af3[_0x2de080(0x293)]>0x0&&this[_0x2de080(0x3ea)](_0x479af3);}[_0x5e93c2(0x1dd)](){const _0x3a14f2=_0x5e93c2;this[_0x3a14f2(0x292)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x5e93c2(0x41a)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x5e93c2(0x1c0)](u[_0x5e93c2(0x35c)])),L(0x5,a['Inject'](Ce)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],fe);var st=Object[_0x5e93c2(0x2a8)],it=(_0x4e03bb,_0xd1bc63,_0x1360ca,_0x1472cf)=>{const _0x33a4f4=_0x5e93c2;for(var _0x5744d0=_0x1472cf>0x1?void 0x0:_0x1472cf?st(_0xd1bc63,_0x1360ca):_0xd1bc63,_0x31ff27=_0x4e03bb[_0x33a4f4(0x293)]-0x1,_0x20301d;_0x31ff27>=0x0;_0x31ff27--)(_0x20301d=_0x4e03bb[_0x31ff27])&&(_0x5744d0=_0x20301d(_0x5744d0)||_0x5744d0);return _0x5744d0;},w=(_0x3365bb,_0x3cb626)=>(_0x1deb8d,_0x3c3496)=>_0x3cb626(_0x1deb8d,_0x3c3496,_0x3365bb);const nt=0x12c,rt=0x64,ot=()=>{let _0x777f97=[],_0x51df09=!0x1;return _0x482421=>{_0x777f97['push'](_0x482421),_0x51df09||(_0x51df09=!0x0,setTimeout(()=>{const _0x3010a9=_0x286c;_0x777f97[_0x3010a9(0x2a5)](_0x4042f5=>_0x4042f5()),_0x777f97=[],_0x51df09=!0x1;}));};};let Se=class extends a[_0x5e93c2(0x1b1)]{constructor(_0x184a1c,_0x387d34,_0x5218ad,_0x76b015,_0x4a66e2,_0x8a2846,_0x13bdc3,_0x16c0eb){const _0x35773e=_0x5e93c2;super(),h(this,_0x35773e(0x292),!0x1),h(this,_0x35773e(0x1a5),!0x1),h(this,_0x35773e(0x2a1),new d['BehaviorSubject'](new Map())),h(this,_0x35773e(0x1ca),this[_0x35773e(0x2a1)]['asObservable']()),h(this,_0x35773e(0x263),new d[(_0x35773e(0x3bb))]([])),h(this,_0x35773e(0x296),this[_0x35773e(0x263)][_0x35773e(0x3a8)](d[_0x35773e(0x1c5)](nt))),h(this,_0x35773e(0x3ea),a[_0x35773e(0x1f2)]((_0x5b501b,_0x3cd3aa)=>{const _0x32f6b8=_0x35773e,_0xd11884={'eventID':m[_0x32f6b8(0x361)][_0x32f6b8(0x2fd)],'data':{'unitID':this[_0x32f6b8(0x21a)],'memberID':this[_0x32f6b8(0x3dc)][_0x32f6b8(0x21e)](),'selection':Ee[_0x32f6b8(0x385)](_0x5b501b,_0x3cd3aa['range'])}};this[_0x32f6b8(0x3dc)][_0x32f6b8(0x31d)](_0xd11884,this[_0x32f6b8(0x21a)]);},rt)),(this['unitID']=_0x184a1c,this['_session']=_0x387d34,this['_injector']=_0x5218ad,this[_0x35773e(0x3af)]=_0x76b015,this[_0x35773e(0x1ae)]=_0x4a66e2,this[_0x35773e(0x26e)]=_0x8a2846,this[_0x35773e(0x3cd)]=_0x13bdc3,this['_refRangeService']=_0x16c0eb);}get['cursorInfo'](){const _0xc76a44=_0x5e93c2;return this['_cursorInfo$'][_0xc76a44(0x416)]();}get[_0x5e93c2(0x2d2)](){const _0x5b5157=_0x5e93c2;return this[_0x5b5157(0x263)]['getValue']();}[_0x5e93c2(0x2f0)](){const _0x5081e7=_0x5e93c2;super['dispose'](),this['_cursorInfo$'][_0x5081e7(0x374)](new Map()),this[_0x5081e7(0x2a1)][_0x5081e7(0x23a)](),this[_0x5081e7(0x263)][_0x5081e7(0x374)]([]),this[_0x5081e7(0x263)][_0x5081e7(0x23a)]();}[_0x5e93c2(0x340)](){const _0x40d7db=_0x5e93c2;this[_0x40d7db(0x1a5)]||(this['_init']=!0x0,this[_0x40d7db(0x3dc)][_0x40d7db(0x227)][_0x40d7db(0x3a8)](d['takeUntil'](this[_0x40d7db(0x333)]))['subscribe'](_0x5c7f29=>{const _0x2151db=_0x40d7db;_0x5c7f29===u[_0x2151db(0x201)]['ONLINE']?this[_0x2151db(0x1fe)]():this[_0x2151db(0x1dd)]();}),this[_0x40d7db(0x3dc)][_0x40d7db(0x238)]['pipe'](d[_0x40d7db(0x301)](this['dispose$']))[_0x40d7db(0x369)](_0x13af7c=>{const _0x15ace3=_0x40d7db,_0x32fc35=_0x13af7c[_0x15ace3(0x28d)];_0x32fc35===m[_0x15ace3(0x361)]['UPDATE_CURSOR']&&this[_0x15ace3(0x2d6)](_0x13af7c),_0x32fc35===m[_0x15ace3(0x361)][_0x15ace3(0x35b)]&&this[_0x15ace3(0x1c9)](_0x13af7c);}),this[_0x40d7db(0x304)](),this[_0x40d7db(0x303)](this['_commandService'][_0x40d7db(0x409)](_0x31e939=>{const _0x25ae0c=_0x40d7db;if(this['_online']&&_0x31e939['id']===g['SetSelectionsOperation']['id']&&_0x31e939[_0x25ae0c(0x2cc)][_0x25ae0c(0x387)]===this[_0x25ae0c(0x21a)]){const _0x97d229=_0x31e939[_0x25ae0c(0x2cc)];this['_updateLocalCursor'](_0x97d229[_0x25ae0c(0x349)],_0x97d229[_0x25ae0c(0x205)][0x0]);}})));}[_0x5e93c2(0x2d6)](_0x228987){const _0x50962c=_0x5e93c2;var _0x357a66,_0x4f0062;const {memberID:_0x4dcc5e,selection:_0x2fccb4}=_0x228987[_0x50962c(0x2d9)],{sheetName:_0x36f3ee,range:_0x3fb52b}=Ee['deserializeRangeWithSheet'](_0x2fccb4),_0x3c787d={'name':(_0x4f0062=(_0x357a66=this[_0x50962c(0x1ae)][_0x50962c(0x242)](this[_0x50962c(0x21a)],_0x4dcc5e))==null?void 0x0:_0x357a66['name'])!=null?_0x4f0062:_0x50962c(0x343),'range':this['_getMergeRange'](_0x36f3ee,_0x3fb52b),'sheetID':_0x36f3ee,'color':this[_0x50962c(0x3af)][_0x50962c(0x35a)](_0x4dcc5e),'selection':_0x2fccb4},_0x503bdd=this['cursorInfo'];_0x503bdd[_0x50962c(0x3f1)](_0x4dcc5e,_0x3c787d),this[_0x50962c(0x2a1)][_0x50962c(0x374)](_0x503bdd);}[_0x5e93c2(0x1c9)](_0x5b94e7){const _0x4ee887=_0x5e93c2,{memberID:_0x4ded28}=_0x5b94e7[_0x4ee887(0x2d9)],_0xc7722d=this['cursorInfo'];_0xc7722d[_0x4ee887(0x334)](_0x4ded28),this['_cursorInfo$']['next'](_0xc7722d);}[_0x5e93c2(0x2c2)](_0xe6fb82,_0x2a3383){const _0x46959a=_0x5e93c2;var _0x2c3640,_0x2e25f9;const _0xa6fe9d=(_0x2e25f9=(_0x2c3640=this[_0x46959a(0x26e)]['getUniverSheetInstance'](this[_0x46959a(0x21a)]))==null?void 0x0:_0x2c3640['getSheetBySheetId'](_0xe6fb82))==null?void 0x0:_0x2e25f9['getMergeData']();return(_0xa6fe9d==null?void 0x0:_0xa6fe9d['find'](_0x70d9a5=>a['Rectangle'][_0x46959a(0x37a)](_0x70d9a5,_0x2a3383)))||_0x2a3383;}[_0x5e93c2(0x304)](){const _0x53ad29=_0x5e93c2,_0x26dd18=new a[(_0x53ad29(0x2e4))](),_0x119b6b=ot(),_0x11232a=()=>{const _0x5ccf8e=_0x53ad29;_0x26dd18[_0x5ccf8e(0x2f0)]();const _0x4c6e23=(_0x884b9c,_0x25891f,_0x161e3b,_0x205e94)=>{const _0x7ee06b=_0x5ccf8e;let _0x83aeb2=[];switch(_0x884b9c['id']){case g[_0x7ee06b(0x1e3)][_0x7ee06b(0x280)]:{_0x83aeb2=g[_0x7ee06b(0x249)](_0x884b9c,_0x205e94);break;}case g[_0x7ee06b(0x1e3)][_0x7ee06b(0x2d4)]:{_0x83aeb2=g[_0x7ee06b(0x197)](_0x884b9c,_0x205e94);break;}case g[_0x7ee06b(0x1e3)]['InsertColCommandId']:{_0x83aeb2=g[_0x7ee06b(0x210)](_0x884b9c,_0x205e94);break;}case g[_0x7ee06b(0x1e3)][_0x7ee06b(0x198)]:{_0x83aeb2=g[_0x7ee06b(0x24f)](_0x884b9c,_0x205e94);break;}case g['EffectRefRangId'][_0x7ee06b(0x29f)]:{_0x83aeb2=g[_0x7ee06b(0x1cb)](_0x884b9c,_0x205e94);break;}case g[_0x7ee06b(0x1e3)][_0x7ee06b(0x213)]:{_0x83aeb2=g[_0x7ee06b(0x3e8)](_0x884b9c,_0x205e94);break;}case g[_0x7ee06b(0x1e3)][_0x7ee06b(0x1ee)]:{_0x83aeb2=g['handleMoveRange'](_0x884b9c,_0x205e94);break;}case g[_0x7ee06b(0x1e3)]['RemoveColCommandId']:{_0x83aeb2=g['handleIRemoveCol'](_0x884b9c,_0x205e94);break;}case g[_0x7ee06b(0x1e3)][_0x7ee06b(0x415)]:{_0x83aeb2=g[_0x7ee06b(0x3e1)](_0x884b9c,_0x205e94);break;}}const _0x131b84=g[_0x7ee06b(0x218)](_0x83aeb2,_0x205e94),_0x2c850a=this[_0x7ee06b(0x22e)]['get'](_0x25891f);if(_0x2c850a&&_0x131b84){const _0x3607a3={..._0x2c850a,'range':_0x131b84};this[_0x7ee06b(0x22e)][_0x7ee06b(0x3f1)](_0x25891f,_0x3607a3),_0x119b6b(()=>{const _0x40f8d7=_0x7ee06b,_0x332a88=this[_0x40f8d7(0x3e3)][_0x40f8d7(0x3d1)](_0x131b84,_0x524c3e=>(_0x332a88['dispose'](),_0x4c6e23(_0x524c3e,_0x25891f,_0x161e3b,_0x131b84)));_0x26dd18[_0x40f8d7(0x30a)](_0x332a88);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x665316,_0x2e3922)=>{const _0x18af67=_0x5ccf8e,{range:_0x16915b,sheetID:_0x22f4e6}=_0x665316,_0x3be65b=this[_0x18af67(0x3e3)][_0x18af67(0x3d1)](_0x16915b,_0x46861a=>(_0x3be65b[_0x18af67(0x2f0)](),_0x4c6e23(_0x46861a,_0x2e3922,_0x22f4e6,_0x16915b)));_0x26dd18['add'](_0x3be65b);});};this[_0x53ad29(0x303)](a[_0x53ad29(0x230)](this[_0x53ad29(0x2a1)][_0x53ad29(0x369)](()=>{_0x11232a();})));}[_0x5e93c2(0x1fe)](){const _0x5e17c6=_0x5e93c2;var _0x494cc2,_0x5908dd;if(this[_0x5e17c6(0x292)]=!0x0,((_0x494cc2=this[_0x5e17c6(0x26e)]['getFocusedUnit']())==null?void 0x0:_0x494cc2[_0x5e17c6(0x1e8)]())!==this[_0x5e17c6(0x21a)])return;const _0x337bda=(_0x5908dd=this[_0x5e17c6(0x319)][_0x5e17c6(0x2a3)](g[_0x5e17c6(0x34e)])[_0x5e17c6(0x22c)]())==null?void 0x0:_0x5908dd[0x0],_0x3972d5=this[_0x5e17c6(0x26e)]['getCurrentUnitForType'](a[_0x5e17c6(0x2ff)][_0x5e17c6(0x400)])['getActiveSheet']();_0x337bda&&_0x3972d5&&this[_0x5e17c6(0x3ea)](_0x3972d5['getSheetId'](),_0x337bda);}[_0x5e93c2(0x1dd)](){const _0x4e4c12=_0x5e93c2;this[_0x4e4c12(0x292)]=!0x1;}};Se=it([w(0x2,a['Inject'](a[_0x5e93c2(0x41a)])),w(0x3,a['Inject'](me)),w(0x4,a[_0x5e93c2(0x1c0)](u[_0x5e93c2(0x35c)])),w(0x5,a[_0x5e93c2(0x3e4)]),w(0x6,a[_0x5e93c2(0x410)]),w(0x7,a[_0x5e93c2(0x1c0)](g[_0x5e93c2(0x1bc)]))],Se);var at=Object[_0x5e93c2(0x2a8)],ct=(_0x3454c5,_0x4f4e76,_0x2dc9b1,_0x5e0e72)=>{for(var _0x28074c=_0x5e0e72>0x1?void 0x0:_0x5e0e72?at(_0x4f4e76,_0x2dc9b1):_0x4f4e76,_0x38ece4=_0x3454c5['length']-0x1,_0x1cf91b;_0x38ece4>=0x0;_0x38ece4--)(_0x1cf91b=_0x3454c5[_0x38ece4])&&(_0x28074c=_0x1cf91b(_0x28074c)||_0x28074c);return _0x28074c;},ie=(_0x442510,_0x172888)=>(_0x588b4e,_0x2eff73)=>_0x172888(_0x588b4e,_0x2eff73,_0x442510);let x=class extends a[_0x5e93c2(0x1b1)]{constructor(_0x11e620,_0x222c6c,_0x7f0211){const _0x5fb54a=_0x5e93c2;super(),h(this,_0x5fb54a(0x3b3),new Map()),h(this,_0x5fb54a(0x1fd),new d[(_0x5fb54a(0x1cd))]()),(this[_0x5fb54a(0x26e)]=_0x11e620,this['_injector']=_0x222c6c,this[_0x5fb54a(0x381)]=_0x7f0211,this[_0x5fb54a(0x1a5)]());}[_0x5e93c2(0x2f0)](){const _0x107146=_0x5e93c2;super[_0x107146(0x2f0)](),this[_0x107146(0x1fd)][_0x107146(0x23a)](),this[_0x107146(0x3b3)]['forEach'](_0x167150=>_0x167150[_0x107146(0x2f0)]());}[_0x5e93c2(0x28f)](_0x144d66){const _0x425a01=_0x5e93c2;return this[_0x425a01(0x3b3)][_0x425a01(0x395)](_0x144d66)?this['_entities'][_0x425a01(0x2a3)](_0x144d66)['cursorInfo$']:this[_0x425a01(0x1fd)]['pipe'](d[_0x425a01(0x1db)](_0x530b80=>_0x530b80[_0x425a01(0x21a)]===_0x144d66),d[_0x425a01(0x27e)](_0x468f68=>_0x468f68['cursorInfo$']));}[_0x5e93c2(0x1a5)](){const _0x4cef15=_0x5e93c2;this[_0x4cef15(0x26e)][_0x4cef15(0x40a)](a[_0x4cef15(0x2ff)][_0x4cef15(0x400)])['pipe'](d['takeUntil'](this[_0x4cef15(0x333)]))['subscribe'](async _0x3d488c=>{const _0x4b4c35=_0x4cef15,_0x41fae1=_0x3d488c[_0x4b4c35(0x1e8)](),_0x580f8c=await this[_0x4b4c35(0x1c2)](_0x41fae1);this[_0x4b4c35(0x1fd)][_0x4b4c35(0x374)](_0x580f8c),this[_0x4b4c35(0x3b3)][_0x4b4c35(0x3f1)](_0x41fae1,_0x580f8c);}),this[_0x4cef15(0x26e)][_0x4cef15(0x40a)](a[_0x4cef15(0x2ff)][_0x4cef15(0x270)])['pipe'](d['takeUntil'](this['dispose$']))[_0x4cef15(0x3a8)](d['filter'](_0x56a4e2=>!_0x56a4e2[_0x4cef15(0x1e8)]()['startsWith']('__')))[_0x4cef15(0x369)](async _0x4ba623=>{const _0x220aab=_0x4cef15,_0xa490d8=_0x4ba623['getUnitId'](),_0x586fdb=await this[_0x220aab(0x2ef)](_0xa490d8);this[_0x220aab(0x1fd)]['next'](_0x586fdb),this[_0x220aab(0x3b3)]['set'](_0xa490d8,_0x586fdb);}),d['merge'](this[_0x4cef15(0x26e)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x4cef15(0x270)]),this[_0x4cef15(0x26e)][_0x4cef15(0x231)](a['UniverInstanceType'][_0x4cef15(0x400)]))[_0x4cef15(0x3a8)](d[_0x4cef15(0x301)](this['dispose$']))[_0x4cef15(0x369)](_0x3fcfbb=>{const _0x41d19e=_0x4cef15,_0x4cf9ca=_0x3fcfbb[_0x41d19e(0x1e8)](),_0x186756=this[_0x41d19e(0x3b3)][_0x41d19e(0x2a3)](_0x4cf9ca);_0x186756&&(_0x186756['dispose'](),this[_0x41d19e(0x3b3)][_0x41d19e(0x334)](_0x4cf9ca));});}async[_0x5e93c2(0x1c2)](_0x46fb1c){const _0x447fa9=_0x5e93c2,_0x595d8b=await this['_collabSessionService'][_0x447fa9(0x297)](_0x46fb1c),_0x26faeb=this[_0x447fa9(0x319)][_0x447fa9(0x33c)](Se,_0x46fb1c,_0x595d8b);return _0x26faeb[_0x447fa9(0x340)](),_0x26faeb;}async['_startDocCollabCursor'](_0x4ef6c6){const _0x52d89a=_0x5e93c2,_0x4b0723=await this[_0x52d89a(0x381)]['requireSession'](_0x4ef6c6),_0x15b77f=this[_0x52d89a(0x319)]['createInstance'](fe,_0x4ef6c6,_0x4b0723);return _0x15b77f[_0x52d89a(0x340)](),_0x15b77f;}};x=ct([ie(0x0,a[_0x5e93c2(0x3e4)]),ie(0x1,a[_0x5e93c2(0x1c0)](a[_0x5e93c2(0x41a)])),ie(0x2,a['Inject'](u[_0x5e93c2(0x1a1)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x16291b,_0x1c3d58){const _0x1d220a=_0x5e93c2;let {radius:_0x5d11f5,width:_0x12564b,height:_0x1bc728}=_0x1c3d58;_0x5d11f5=_0x5d11f5!=null?_0x5d11f5:0x0,_0x12564b=_0x12564b!=null?_0x12564b:0x1e,_0x1bc728=_0x1bc728!=null?_0x1bc728:0x1e;let _0x327057=0x0,_0x310d48=0x0,_0x209b71=0x0;_0x327057=_0x310d48=_0x209b71=Math[_0x1d220a(0x3cb)](_0x5d11f5,_0x12564b/0x2,_0x1bc728/0x2),_0x16291b['beginPath'](),_0x16291b[_0x1d220a(0x362)](_0x327057,0x0),_0x16291b[_0x1d220a(0x2a0)](_0x12564b-_0x310d48,0x0),_0x16291b[_0x1d220a(0x3bd)](_0x12564b-_0x310d48,_0x310d48,_0x310d48,Math['PI']*0x3/0x2,0x0,!0x1),_0x16291b[_0x1d220a(0x2a0)](_0x12564b,_0x1bc728-_0x209b71),_0x16291b[_0x1d220a(0x3bd)](_0x12564b-_0x209b71,_0x1bc728-_0x209b71,_0x209b71,0x0,Math['PI']/0x2,!0x1),_0x16291b[_0x1d220a(0x2a0)](0x0,_0x1bc728),_0x16291b['lineTo'](0x0,_0x327057),_0x16291b['arc'](_0x327057,_0x327057,_0x327057,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x16291b['closePath'](),_0x1c3d58['fill']&&(_0x16291b[_0x1d220a(0x35f)](),_0x16291b[_0x1d220a(0x378)]=_0x1c3d58[_0x1d220a(0x41b)],_0x1c3d58[_0x1d220a(0x2b8)]===_0x1d220a(0x3d7)?_0x16291b[_0x1d220a(0x41b)](_0x1d220a(0x3d7)):_0x16291b[_0x1d220a(0x41b)](),_0x16291b[_0x1d220a(0x2ae)]());}class ee extends p[_0x5e93c2(0x3c4)]{constructor(_0x45de5f,_0x4737c5){const _0x318f31=_0x5e93c2;super(_0x45de5f,_0x4737c5),h(this,'color'),h(this,'text'),(this[_0x318f31(0x2bc)]=_0x4737c5==null?void 0x0:_0x4737c5[_0x318f31(0x2bc)],this[_0x318f31(0x275)]=_0x4737c5==null?void 0x0:_0x4737c5[_0x318f31(0x275)]);}static[_0x5e93c2(0x2a9)](_0x5a440b,_0x14d99a){const _0x3bf0b1=_0x5e93c2,{text:_0x2abb84,color:_0x50ea2f}=_0x14d99a;_0x5a440b['save'](),_0x5a440b['font']=_0x3bf0b1(0x2c6);const _0x23ce55=_0x5a440b[_0x3bf0b1(0x32a)](_0x2abb84)[_0x3bf0b1(0x3ac)],_0x2b9c5d=Math[_0x3bf0b1(0x3cb)](_0x23ce55+0x2*ne,Re);_t(_0x5a440b,{'height':K,'radius':0x4,'width':_0x2b9c5d,'fill':_0x50ea2f}),_0x5a440b[_0x3bf0b1(0x378)]=_0x3bf0b1(0x3d6);const _0x17e506=ne,_0x35f381=K-lt,_0x1e23fb=Re-0x2*ne;if(_0x23ce55>_0x1e23fb){let _0x4c635e='',_0x62476b=0x0;for(const _0xd68667 of _0x2abb84){const _0x34e57b=_0x5a440b[_0x3bf0b1(0x32a)](_0xd68667)[_0x3bf0b1(0x3ac)];if(_0x62476b+_0x34e57b<=_0x1e23fb-_0x5a440b[_0x3bf0b1(0x32a)]('...')[_0x3bf0b1(0x3ac)])_0x4c635e+=_0xd68667,_0x62476b+=_0x34e57b;else{_0x4c635e+=_0x3bf0b1(0x2e9);break;}}_0x5a440b[_0x3bf0b1(0x288)](_0x4c635e,_0x17e506,_0x35f381);}else _0x5a440b['fillText'](_0x2abb84,_0x17e506,_0x35f381);_0x5a440b[_0x3bf0b1(0x2ae)]();}[_0x5e93c2(0x236)](_0x436942){ee['drawWith'](_0x436942,this);}}const re=_0x5e93c2(0x2c3),ht=_0x5e93c2(0x25f),ut=_0x5e93c2(0x3c6),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x40ab1b,_0x5bd857,_0x142d7c,_0x1be155){const _0xeab0dc=_0x5e93c2;h(this,'_shapes',[]),h(this,_0xeab0dc(0x352),null),h(this,_0xeab0dc(0x20c),null),h(this,_0xeab0dc(0x1d1),null),h(this,_0xeab0dc(0x3aa),null),h(this,_0xeab0dc(0x2b6),null),(this[_0xeab0dc(0x3c8)]=_0x40ab1b,this[_0xeab0dc(0x376)]=_0x5bd857,this[_0xeab0dc(0x28e)]=_0x142d7c,this[_0xeab0dc(0x1e1)]=_0x1be155,this[_0xeab0dc(0x260)]());}set[_0x5e93c2(0x354)](_0xd9093d){const _0x204cf7=_0x5e93c2;_0xd9093d?(this[_0x204cf7(0x1d1)]&&this[_0x204cf7(0x1d1)][_0x204cf7(0x308)](),this[_0x204cf7(0x20c)]&&this['_textBubble'][_0x204cf7(0x1a2)]()):(this[_0x204cf7(0x1d1)]&&this['_anchorDot'][_0x204cf7(0x1a2)](),this[_0x204cf7(0x20c)]&&this[_0x204cf7(0x20c)][_0x204cf7(0x308)]());}[_0x5e93c2(0x2f0)](){const _0x1d0415=_0x5e93c2;for(const _0x2cda31 of this['_shapes'])_0x2cda31[_0x1d0415(0x2f0)]();this[_0x1d0415(0x20c)]&&this[_0x1d0415(0x20c)][_0x1d0415(0x2f0)](),this[_0x1d0415(0x1d1)]&&this['_anchorDot'][_0x1d0415(0x2f0)](),this[_0x1d0415(0x352)]&&this['_anchor']['dispose'](),this[_0x1d0415(0x2b6)]&&this[_0x1d0415(0x2b6)]();}[_0x5e93c2(0x260)](){const _0x4964b8=_0x5e93c2;var _0x20d6dd;const {_docSkeleton:_0x2d344d,_document:_0x131bc0}=this,{color:_0x7d1352,name:_0x54bb8b,ranges:_0x22bd97}=this[_0x4964b8(0x3c8)],_0x431194=_0x131bc0['getOffsetConfig'](),{docsLeft:_0x16c949,docsTop:_0x32402b}=_0x431194,_0x1f614e=new b[(_0x4964b8(0x313))](_0x431194,_0x2d344d);for(const {startOffset:_0x50e771,endOffset:_0x36a39b,rangeType:_0x415e94,segmentId:_0x1d3c82,segmentPage:_0x313ac3,collapsed:_0x573974,isActive:_0x323728}of _0x22bd97){const _0x11244f=_0x2d344d[_0x4964b8(0x35d)](_0x50e771,!0x0,_0x1d3c82,_0x313ac3);let _0x5e7d30=_0x2d344d[_0x4964b8(0x35d)](_0x36a39b,!0x0,_0x1d3c82,_0x313ac3);if(_0x5e7d30==null&&(_0x5e7d30=_0x2d344d[_0x4964b8(0x35d)](_0x36a39b-0x1,!0x1,_0x1d3c82,_0x313ac3)),_0x323728){const {contentBoxPointGroup:_0x2421db}=_0x1f614e[_0x4964b8(0x1be)](_0x5e7d30,_0x5e7d30);if(_0x2421db[_0x4964b8(0x293)]===0x0)continue;this[_0x4964b8(0x3f2)](_0x7d1352,_0x2421db,_0x16c949,_0x32402b,_0x54bb8b),this[_0x4964b8(0x2b6)]=this[_0x4964b8(0x341)]();}if(_0x11244f&&_0x5e7d30){if(_0x415e94===a[_0x4964b8(0x3dd)][_0x4964b8(0x332)]){const _0xd5feec=new b[(_0x4964b8(0x3b1))](_0x431194,_0x2d344d),{pointGroup:_0x5667}=(_0x20d6dd=_0xd5feec[_0x4964b8(0x1be)](_0x11244f,_0x5e7d30))!=null?_0x20d6dd:{};if(_0x5667==null||_0x5667[_0x4964b8(0x293)]===0x0)continue;this[_0x4964b8(0x31e)](_0x7d1352,_0x5667,_0x16c949,_0x32402b);}else{if(!_0x573974){const {borderBoxPointGroup:_0x517a27}=_0x1f614e[_0x4964b8(0x1be)](_0x11244f,_0x5e7d30);if(_0x517a27[_0x4964b8(0x293)]===0x0)continue;this['_drawTextRange'](_0x7d1352,_0x517a27,_0x16c949,_0x32402b);}}}}}[_0x5e93c2(0x3f2)](_0x1cea32,_0x5ec4f9,_0x120545,_0x29555e,_0x206497){const _0x42d5cc=_0x5e93c2,_0x270890=this[_0x42d5cc(0x302)](_0x5ec4f9),{left:_0xedf67b,top:_0x42e14c,height:_0x4aeca6}=_0x270890,_0x3f6ce9=this[_0x42d5cc(0x3ad)](),_0x1e82ec=ft/_0x3f6ce9,_0x547a70=new p[(_0x42d5cc(0x417))](re+a[_0x42d5cc(0x19d)][_0x42d5cc(0x398)](k),{'left':_0xedf67b+_0x120545-_0x1e82ec,'top':_0x42e14c+_0x29555e,'height':_0x4aeca6,'width':dt,'fill':_0x1cea32||p[_0x42d5cc(0x1c1)](a['COLORS'][_0x42d5cc(0x348)],0x0),'strokeWidth':_0x1e82ec,'stroke':St,'evented':!0x0});this['_anchor']=_0x547a70,this[_0x42d5cc(0x376)][_0x42d5cc(0x252)](_0x547a70,b[_0x42d5cc(0x1a9)]);const _0x36e5a9=new p[(_0x42d5cc(0x417))](re+a[_0x42d5cc(0x19d)][_0x42d5cc(0x398)](k),{'left':_0xedf67b+_0x120545-_0x1e82ec,'top':_0x42e14c+_0x29555e-oe/0x2,'height':oe,'width':oe,'fill':_0x1cea32||p[_0x42d5cc(0x1c1)](a['COLORS'][_0x42d5cc(0x348)],0x0),'strokeWidth':0x0,'stroke':_0x1cea32||p[_0x42d5cc(0x1c1)](a['COLORS'][_0x42d5cc(0x348)],0x0),'evented':!0x1});this[_0x42d5cc(0x1d1)]=_0x36e5a9,this[_0x42d5cc(0x376)][_0x42d5cc(0x252)](_0x36e5a9,b[_0x42d5cc(0x1a9)]);const _0x2b01af=new ee(re+a[_0x42d5cc(0x19d)][_0x42d5cc(0x398)](k),{'left':_0xedf67b+_0x120545-_0x1e82ec,'top':_0x42e14c+_0x29555e-K,'text':_0x206497,'color':_0x1cea32});this[_0x42d5cc(0x20c)]=_0x2b01af,this['_scene'][_0x42d5cc(0x252)](_0x2b01af,b[_0x42d5cc(0x1a9)]),this[_0x42d5cc(0x354)]=!0x1;}[_0x5e93c2(0x341)](){const _0x5128c5=_0x5e93c2,_0x2de4ef=this[_0x5128c5(0x352)][_0x5128c5(0x347)][_0x5128c5(0x390)](()=>{const _0x417071=_0x5128c5;this[_0x417071(0x354)]=!0x0;}),_0x44626d=this[_0x5128c5(0x352)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x1f82b7=_0x5128c5;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x1f82b7(0x3aa)]=setTimeout(()=>{const _0x43d93b=_0x1f82b7;this[_0x43d93b(0x354)]=!0x1;},0x7d0);});return()=>{const _0x32786d=_0x5128c5;_0x2de4ef[_0x32786d(0x421)](),_0x44626d['unsubscribe']();};}[_0x5e93c2(0x258)](_0x575e4c,_0x3d55e6,_0x2fa8e9,_0x162545){const _0x27f969=_0x5e93c2,_0x3d5069=new a['ColorKit'](_0x575e4c)[_0x27f969(0x1ff)](0.2)[_0x27f969(0x2b7)](),_0x42c700=new p['RegularPolygon'](ht+a[_0x27f969(0x19d)][_0x27f969(0x398)](k),{'pointsGroup':_0x3d55e6,'fill':_0x3d5069||p[_0x27f969(0x1c1)](a[_0x27f969(0x204)][_0x27f969(0x348)],0.2),'left':_0x2fa8e9,'top':_0x162545,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27f969(0x1b2)]['push'](_0x42c700),this[_0x27f969(0x376)][_0x27f969(0x252)](_0x42c700,b[_0x27f969(0x1a9)]);}[_0x5e93c2(0x31e)](_0x455a00,_0x3288cf,_0x5a9210,_0x4e118f){const _0x39a20b=_0x5e93c2,_0x4fdc02=new a[(_0x39a20b(0x3b2))](_0x455a00)[_0x39a20b(0x1ff)](0.2)[_0x39a20b(0x2b7)](),_0x245a08=new p[(_0x39a20b(0x3b4))](ut+a[_0x39a20b(0x19d)][_0x39a20b(0x398)](k),{'pointsGroup':_0x3288cf,'fill':_0x4fdc02||p[_0x39a20b(0x1c1)](a[_0x39a20b(0x204)][_0x39a20b(0x348)],0.2),'left':_0x5a9210,'top':_0x4e118f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x39a20b(0x298)](_0x245a08),this[_0x39a20b(0x376)][_0x39a20b(0x252)](_0x245a08,b[_0x39a20b(0x1a9)]);}['_getAnchorBounding'](_0xd14b2){const _0x1a99f4=_0xd14b2[0x0],_0x4ce1ce=_0x1a99f4[0x0],_0x41f235=_0x1a99f4[0x2],{x:_0x36d412,y:_0x5467f6}=_0x4ce1ce,{x:_0x55e8c3,y:_0x34f3fc}=_0x41f235;return{'left':_0x36d412,'top':_0x5467f6,'width':_0x55e8c3-_0x36d412,'height':_0x34f3fc-_0x5467f6};}[_0x5e93c2(0x3ad)](){const _0x1ac42d=_0x5e93c2,{scaleX:_0x2b4c77,scaleY:_0x73a0b6}=this[_0x1ac42d(0x376)][_0x1ac42d(0x3f3)]();return Math[_0x1ac42d(0x29d)](_0x2b4c77,_0x73a0b6);}}var It=Object[_0x5e93c2(0x2a8)],vt=(_0x396458,_0x23700e,_0x52dea1,_0x110b28)=>{const _0x3d060c=_0x5e93c2;for(var _0x3ccf6c=_0x110b28>0x1?void 0x0:_0x110b28?It(_0x23700e,_0x52dea1):_0x23700e,_0x3ce15c=_0x396458[_0x3d060c(0x293)]-0x1,_0x2fbd23;_0x3ce15c>=0x0;_0x3ce15c--)(_0x2fbd23=_0x396458[_0x3ce15c])&&(_0x3ccf6c=_0x2fbd23(_0x3ccf6c)||_0x3ccf6c);return _0x3ccf6c;},W=(_0x102453,_0x273042)=>(_0x3778ff,_0x375041)=>_0x273042(_0x3778ff,_0x375041,_0x102453);let Ie=class extends a[_0x5e93c2(0x1b1)]{constructor(_0x281610,_0x5eed6b,_0x404378,_0x3d2949,_0x29cb0d){const _0x1e0b5c=_0x5e93c2;super(),h(this,_0x1e0b5c(0x26d),[]),h(this,_0x1e0b5c(0x3f6),[]),(this[_0x1e0b5c(0x401)]=_0x281610,this['_docSkeletonManagerService']=_0x5eed6b,this[_0x1e0b5c(0x316)]=_0x404378,this['_commandService']=_0x3d2949,this['_themeService']=_0x29cb0d,this[_0x1e0b5c(0x1a5)]());}['_init'](){const _0x5eb971=_0x5e93c2,_0x108b37=this[_0x5eb971(0x401)][_0x5eb971(0x387)],_0xead9d=this['_docSkeletonManagerService'];this['disposeWithMe'](d['combineLatest']([this['_collabCursorController']['getCollabCursors$'](_0x108b37),this['_themeService'][_0x5eb971(0x3a0)]])['pipe']($[_0x5eb971(0x1e7)](([_0x38b0b5,_0x371a9d])=>({'skeleton':_0xead9d['getSkeleton'](),'cursors':[..._0x38b0b5[_0x5eb971(0x21f)]()][_0x5eb971(0x2ba)](_0x3ed37c=>({..._0x3ed37c,'color':this[_0x5eb971(0x36a)]['getColorFromTheme'](_0x3ed37c[_0x5eb971(0x2bc)])}))})))[_0x5eb971(0x369)](_0x1a590a=>{const _0x11e862=_0x5eb971;if(this[_0x11e862(0x422)](),_0x1a590a){const {skeleton:_0x4a9f3,cursors:_0x4c01d3}=_0x1a590a;this[_0x11e862(0x3da)](_0x4a9f3,_0x4c01d3);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x5e93c2(0x3da)](_0x4f31fd,_0x2d6711){const _0x57cd5b=_0x5e93c2,{scene:_0x160969,mainComponent:_0x123703}=this['_context'],_0x5bb429=_0x2d6711['map'](_0x2c8abb=>new De(_0x2c8abb,_0x160969,_0x4f31fd,_0x123703));this[_0x57cd5b(0x26d)]=_0x5bb429,this[_0x57cd5b(0x3f6)]=_0x2d6711;}[_0x5e93c2(0x403)](){const _0x4f2e78=_0x5e93c2;this['_removeCollabCursors']();const {scene:_0x404172,mainComponent:_0x73816d}=this[_0x4f2e78(0x401)],_0x486941=this[_0x4f2e78(0x355)][_0x4f2e78(0x273)](),_0x389785=this[_0x4f2e78(0x3f6)][_0x4f2e78(0x1e7)](_0x5d1f67=>new De(_0x5d1f67,_0x404172,_0x486941,_0x73816d));this[_0x4f2e78(0x26d)]=_0x389785;}[_0x5e93c2(0x422)](){const _0xf1bc32=_0x5e93c2;this[_0xf1bc32(0x26d)][_0xf1bc32(0x2a5)](_0x4c986a=>_0x4c986a[_0xf1bc32(0x2f0)]()),this['_cursorShapes']=[];}[_0x5e93c2(0x25c)](){const _0x20c9d8=_0x5e93c2,_0x1e3320=[b[_0x20c9d8(0x38b)]['id']];this['disposeWithMe'](this['_commandService'][_0x20c9d8(0x409)](_0x585549=>{const _0x1b85f0=_0x20c9d8;_0x1e3320[_0x1b85f0(0x314)](_0x585549['id'])&&_0x585549[_0x1b85f0(0x2cc)][_0x1b85f0(0x387)]===this['_context'][_0x1b85f0(0x387)]&&this[_0x1b85f0(0x403)]();}));}['_initResize'](){const _0x590db4=_0x5e93c2;this[_0x590db4(0x303)](a['fromEventSubject'](this[_0x590db4(0x401)][_0x590db4(0x3e5)][_0x590db4(0x3e2)])[_0x590db4(0x3a8)]($['filter'](_0x200e84=>_0x200e84[_0x590db4(0x295)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x590db4(0x3f8)]),$[_0x590db4(0x3c7)](0x10))[_0x590db4(0x369)](()=>{const _0x56cb72=_0x590db4;this[_0x56cb72(0x403)]();}));}};Ie=vt([W(0x1,a[_0x5e93c2(0x1c0)](Y[_0x5e93c2(0x24d)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x5e93c2(0x410)]),W(0x4,a[_0x5e93c2(0x1c0)](a[_0x5e93c2(0x291)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p['Shape']{constructor(_0x59bc6c,_0x4bb918){const _0x2c64a9=_0x5e93c2;super(_0x59bc6c,_0x4bb918),h(this,_0x2c64a9(0x320)),h(this,_0x2c64a9(0x1ed),!0x1),h(this,_0x2c64a9(0x1fa)),h(this,_0x2c64a9(0x394),''),h(this,_0x2c64a9(0x2f8),'top'),h(this,'_backgroundColor'),(_0x4bb918&&this['setShapeProps'](_0x4bb918),this['onPointerEnter$'][_0x2c64a9(0x390)](()=>this[_0x2c64a9(0x1f4)]({'hovered':!0x0})),this[_0x2c64a9(0x1ec)][_0x2c64a9(0x390)](()=>this[_0x2c64a9(0x1f4)]({'hovered':!0x1})));}['setShapeProps'](_0x3f03e2){const _0x38fdc2=_0x5e93c2;var _0x291898,_0x24b356,_0x28465b,_0x22aa26,_0x576011,_0x5d4cd0;this[_0x38fdc2(0x320)]=(_0x291898=_0x3f03e2[_0x38fdc2(0x2bc)])!=null?_0x291898:this[_0x38fdc2(0x320)],this[_0x38fdc2(0x1ed)]=(_0x24b356=_0x3f03e2['hovered'])!=null?_0x24b356:this[_0x38fdc2(0x1ed)],this[_0x38fdc2(0x1fa)]=(_0x28465b=_0x3f03e2[_0x38fdc2(0x2cf)])!=null?_0x28465b:this[_0x38fdc2(0x1fa)],this['_name']=(_0x22aa26=_0x3f03e2[_0x38fdc2(0x305)])!=null?_0x22aa26:this[_0x38fdc2(0x394)],this['_labelPosition']=(_0x576011=_0x3f03e2[_0x38fdc2(0x3ca)])!=null?_0x576011:this['_labelPosition'],this[_0x38fdc2(0x1f6)]=(_0x5d4cd0=_0x3f03e2[_0x38fdc2(0x20a)])!=null?_0x5d4cd0:this[_0x38fdc2(0x1f6)],this[_0x38fdc2(0x41c)]({'width':_0x3f03e2[_0x38fdc2(0x3ac)],'height':_0x3f03e2[_0x38fdc2(0x3ab)]});}['onMouseMove'](_0x3478c2){const _0x533a74=_0x5e93c2,{row:_0x4c9b93,column:_0x434317}=_0x3478c2;if(_0x4c9b93>=this[_0x533a74(0x1fa)][_0x533a74(0x25e)]&&_0x4c9b93<=this[_0x533a74(0x1fa)][_0x533a74(0x39c)]&&_0x434317>=this[_0x533a74(0x1fa)][_0x533a74(0x244)]&&_0x434317<=this[_0x533a74(0x1fa)][_0x533a74(0x1d2)]){this[_0x533a74(0x1f4)]({'hovered':!0x0});return;}this[_0x533a74(0x1f4)]({'hovered':!0x1});}[_0x5e93c2(0x254)](_0x33199c){return!0x1;}['_draw'](_0x455593){const _0x142610=_0x5e93c2;p[_0x142610(0x417)]['drawWith'](_0x455593,{'width':this[_0x142610(0x3ac)],'height':this[_0x142610(0x3ab)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x142610(0x1f6)]}),this[_0x142610(0x1ed)]&&(_0x455593['save'](),_0x455593[_0x142610(0x2ac)](0x1,0x0,0x0,0x1,this[_0x142610(0x3ac)],this[_0x142610(0x2f8)]===_0x142610(0x207)?0x0:-0x14),ee[_0x142610(0x2a9)](_0x455593,{'text':this[_0x142610(0x394)],'color':this[_0x142610(0x320)]}),_0x455593[_0x142610(0x2ae)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x1ff117,_0x246c81,_0x164e80,_0x1080a0)=>{for(var _0x3d3a94=_0x1080a0>0x1?void 0x0:_0x1080a0?Ct(_0x246c81,_0x164e80):_0x246c81,_0x366d20=_0x1ff117['length']-0x1,_0x434842;_0x366d20>=0x0;_0x366d20--)(_0x434842=_0x1ff117[_0x366d20])&&(_0x3d3a94=_0x434842(_0x3d3a94)||_0x3d3a94);return _0x3d3a94;},ae=(_0x67e80,_0x4cb89b)=>(_0x1e0137,_0x31d1aa)=>_0x4cb89b(_0x1e0137,_0x31d1aa,_0x67e80);const bt=0x1389;let ve=class extends a[_0x5e93c2(0x1b1)]{constructor(_0x1902ba,_0x201267,_0x86bac1,_0x331331){const _0x4e132a=_0x5e93c2;super(),h(this,_0x4e132a(0x3f6),new Set()),h(this,'_lastPointer',null),(this[_0x4e132a(0x401)]=_0x1902ba,this[_0x4e132a(0x2f7)]=_0x201267,this[_0x4e132a(0x316)]=_0x86bac1,this[_0x4e132a(0x36a)]=_0x331331,this[_0x4e132a(0x1a5)]());}['_init'](){const _0x4a5807=_0x5e93c2;this[_0x4a5807(0x2f7)][_0x4a5807(0x2de)][_0x4a5807(0x3a8)]($[_0x4a5807(0x301)](this[_0x4a5807(0x333)]),$[_0x4a5807(0x27e)](_0x57305a=>{const _0x36de42=_0x4a5807;if(_0x57305a){const _0x4a2582=_0x57305a[_0x36de42(0x367)];return d['combineLatest'](this['_collabCursorController'][_0x36de42(0x28f)](this[_0x36de42(0x401)][_0x36de42(0x387)]),this['_themeService'][_0x36de42(0x3a0)])['pipe']($[_0x36de42(0x1e7)](([_0x3f8cb0,_0x32485a])=>{const _0x5bf372=new Map();return _0x3f8cb0['forEach']((_0x3e8550,_0x9c9952)=>{const _0x3707ab=_0x286c;if(_0x3e8550[_0x3707ab(0x3a7)]===_0x4a2582){const _0x41f27b={..._0x3e8550};_0x41f27b[_0x3707ab(0x2bc)]=this[_0x3707ab(0x36a)][_0x3707ab(0x36f)](_0x3e8550[_0x3707ab(0x2bc)]),_0x5bf372[_0x3707ab(0x3f1)](_0x9c9952,_0x41f27b);}}),{'skeleton':_0x57305a,'cursors':_0x5bf372};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x4a5807(0x369)](({skeleton:_0x128940,cursors:_0x20fdb9})=>{const _0x56ef0d=_0x4a5807;this[_0x56ef0d(0x422)](),_0x128940&&this[_0x56ef0d(0x3da)](_0x128940,_0x20fdb9);}),this[_0x4a5807(0x2f7)][_0x4a5807(0x2de)][_0x4a5807(0x369)](_0x4ce842=>{const _0x468056=_0x4a5807;if(_0x4ce842==null)return;const {skeleton:_0x27b25d}=_0x4ce842,{scene:_0x2c705f}=this[_0x468056(0x401)];_0x2c705f[_0x468056(0x2bf)][_0x468056(0x390)](a['debounce'](_0x8d6e20=>{const _0x19fe21=_0x468056;var _0x5a7c1a,_0x3f49bb;const {offsetX:_0x2ed6ac,offsetY:_0x53bd76}=_0x8d6e20,{x:_0x1b1cc5,y:_0x13280b}=_0x2c705f[_0x19fe21(0x3a6)](p[_0x19fe21(0x2e1)][_0x19fe21(0x219)]([_0x2ed6ac,_0x53bd76])),{scaleX:_0x1df499,scaleY:_0x1ce4da}=_0x2c705f[_0x19fe21(0x3f3)](),_0x4a311a=_0x2c705f['getViewport'](p[_0x19fe21(0x32f)]['VIEW_MAIN']),_0x131ebd=_0x2c705f['getVpScrollXYInfoByPosToVp'](p[_0x19fe21(0x2e1)][_0x19fe21(0x219)]([_0x1b1cc5,_0x13280b]),_0x4a311a),_0x30064f=_0x27b25d['getCellPositionByOffset'](_0x2ed6ac,_0x53bd76,_0x1df499,_0x1ce4da,_0x131ebd);((_0x5a7c1a=this['_lastPointer'])==null?void 0x0:_0x5a7c1a['column'])===_0x30064f[_0x19fe21(0x1fb)]&&((_0x3f49bb=this[_0x19fe21(0x389)])==null?void 0x0:_0x3f49bb['row'])===_0x30064f[_0x19fe21(0x3cc)]||this[_0x19fe21(0x3f6)][_0x19fe21(0x2a5)](_0x23ac81=>{const _0x16d835=_0x19fe21;_0x23ac81[_0x16d835(0x284)](_0x30064f);});},0x64));});}[_0x5e93c2(0x3da)](_0x3d25c6,_0x11b6a7){const _0x40f08b=_0x5e93c2;var _0x37d009;const _0x12bcac=(_0x37d009=this['_sheetSkeletonManagerService'][_0x40f08b(0x2ab)]())==null?void 0x0:_0x37d009[_0x40f08b(0x3eb)];if(!_0x12bcac)return;const _0x5c21cd=this[_0x40f08b(0x34a)]();if(!_0x5c21cd)return;this[_0x40f08b(0x3f6)][_0x40f08b(0x2a5)](_0x2143f4=>{const _0x3cfff2=_0x40f08b;_0x2143f4[_0x3cfff2(0x289)]();});const {scene:_0x32effa}=_0x5c21cd,_0x33c980=Et(Array[_0x40f08b(0x23e)](_0x11b6a7[_0x40f08b(0x21f)]()))['map'](_0x5dadef=>{const _0xfb3479=_0x40f08b,{color:_0x5569f8,range:_0x7a537e,name:_0x4d91fe,selection:_0x341a7d,sheetID:_0x8cfce5}=_0x5dadef,{startColumn:_0x357dc9,startRow:_0x31616b,endColumn:_0x5c1bdf,endRow:_0x3ebb03}=_0x7a537e,_0x3c36e7=X['getCoordByCell'](_0x31616b,_0x357dc9,_0x32effa,_0x12bcac),_0x5fd070=X['getCoordByCell'](_0x3ebb03,_0x5c1bdf,_0x32effa,_0x12bcac),{columnHeaderHeightAndMarginTop:_0xa2d8cf}=_0x12bcac,{startX:_0x1112ec,startY:_0x4cc9d5}=_0x3c36e7,{endX:_0x143907,endY:_0x352915}=_0x5fd070,_0x49957e=_0x143907-_0x1112ec,_0x95993=_0x352915-_0x4cc9d5,_0x1f2526={'labelPosition':_0x4cc9d5-_0xa2d8cf>=K?_0xfb3479(0x418):_0xfb3479(0x207),'sheetID':_0x8cfce5,'range':_0x7a537e,'color':_0x5569f8,'name':_0x4d91fe,'selection':_0x341a7d,'left':_0x1112ec,'top':_0x4cc9d5,'width':_0x49957e,'height':_0x95993,'evented':!0x1,'zIndex':bt};return new Ae(_0x4d91fe,_0x1f2526);});_0x32effa['addObjects'](_0x33c980,gt),this[_0x40f08b(0x3f6)]=new Set(_0x33c980);}[_0x5e93c2(0x422)](){const _0x3064b5=_0x5e93c2;var _0x56036d;(_0x56036d=this[_0x3064b5(0x3f6)])==null||_0x56036d['forEach'](_0x2dfb32=>_0x2dfb32['dispose']());}[_0x5e93c2(0x34a)](){const _0x42f700=_0x5e93c2;return X[_0x42f700(0x1d8)](this[_0x42f700(0x401)][_0x42f700(0x3ba)],this[_0x42f700(0x401)]);}};ve=pt([ae(0x1,a[_0x5e93c2(0x1c0)](X[_0x5e93c2(0x271)])),ae(0x2,a[_0x5e93c2(0x1c0)](x)),ae(0x3,a[_0x5e93c2(0x1c0)](a[_0x5e93c2(0x291)]))],ve);function Et(_0x272694){const _0x2cffd5=_0x5e93c2,_0x40ae10=new Map();return _0x272694[_0x2cffd5(0x2a5)](_0x5453f7=>{const _0x16c09e=_0x2cffd5;if(_0x40ae10[_0x16c09e(0x395)](_0x5453f7[_0x16c09e(0x267)])){const _0xb2524e=_0x40ae10[_0x16c09e(0x2a3)](_0x5453f7[_0x16c09e(0x267)]);_0xb2524e[_0x16c09e(0x305)]+=',\x20'+_0x5453f7['name'];}else _0x40ae10['set'](_0x5453f7[_0x16c09e(0x267)],_0x5453f7);}),Array['from'](_0x40ae10[_0x2cffd5(0x21f)]());}var E=function(){const _0x3f8321=_0x5e93c2;return E=Object[_0x3f8321(0x331)]||function(_0x336afe){const _0x2b1cd9=_0x3f8321;for(var _0x14dd43,_0x773d17=0x1,_0x49c5b1=arguments[_0x2b1cd9(0x293)];_0x773d17<_0x49c5b1;_0x773d17++){_0x14dd43=arguments[_0x773d17];for(var _0x4c37bf in _0x14dd43)Object[_0x2b1cd9(0x388)][_0x2b1cd9(0x1b4)][_0x2b1cd9(0x31a)](_0x14dd43,_0x4c37bf)&&(_0x336afe[_0x4c37bf]=_0x14dd43[_0x4c37bf]);}return _0x336afe;},E['apply'](this,arguments);},Tt=function(_0x5cb230,_0x3ce33c){const _0x1c836a=_0x5e93c2;var _0x4a41db={};for(var _0x1377db in _0x5cb230)Object[_0x1c836a(0x388)][_0x1c836a(0x1b4)][_0x1c836a(0x31a)](_0x5cb230,_0x1377db)&&_0x3ce33c['indexOf'](_0x1377db)<0x0&&(_0x4a41db[_0x1377db]=_0x5cb230[_0x1377db]);if(_0x5cb230!=null&&typeof Object[_0x1c836a(0x3f9)]=='function'){for(var _0x5d3e9b=0x0,_0x1377db=Object[_0x1c836a(0x3f9)](_0x5cb230);_0x5d3e9b<_0x1377db[_0x1c836a(0x293)];_0x5d3e9b++)_0x3ce33c[_0x1c836a(0x2c1)](_0x1377db[_0x5d3e9b])<0x0&&Object[_0x1c836a(0x388)][_0x1c836a(0x1e6)]['call'](_0x5cb230,_0x1377db[_0x5d3e9b])&&(_0x4a41db[_0x1377db[_0x5d3e9b]]=_0x5cb230[_0x1377db[_0x5d3e9b]]);}return _0x4a41db;},pe=M[_0x5e93c2(0x33f)](function(_0x33ef4a,_0x51ddf7){const _0x4d615f=_0x5e93c2;var _0x11c678=_0x33ef4a[_0x4d615f(0x2f4)],_0x4e3673=_0x33ef4a['id'],_0x4d5a92=_0x33ef4a[_0x4d615f(0x3ce)],_0x98102a=_0x33ef4a[_0x4d615f(0x328)],_0x7ab911=Tt(_0x33ef4a,[_0x4d615f(0x2f4),'id',_0x4d615f(0x3ce),_0x4d615f(0x328)]),_0x4e39da=_0x4d615f(0x3e7)['concat'](_0x4e3673,'\x20')[_0x4d615f(0x38a)](_0x4d5a92||'')['trim'](),_0x36d205=M['useRef']('_'['concat'](Dt()));return we(_0x11c678,''[_0x4d615f(0x38a)](_0x4e3673),{'defIds':_0x11c678[_0x4d615f(0x3df)],'idSuffix':_0x36d205[_0x4d615f(0x299)]},E({'ref':_0x51ddf7,'className':_0x4e39da},_0x7ab911),_0x98102a);});function we(_0x382d9e,_0x5f1083,_0x5e55e,_0x30a2b2,_0x5313ae){const _0x533f5d=_0x5e93c2;return M[_0x533f5d(0x1cf)](_0x382d9e[_0x533f5d(0x2fc)],E(E({'key':_0x5f1083},Ot(_0x382d9e,_0x5e55e,_0x5313ae)),_0x30a2b2),(Rt(_0x382d9e,_0x5e55e)[_0x533f5d(0x1d6)]||[])[_0x533f5d(0x1e7)](function(_0x2fe021,_0x26519f){const _0x9251b6=_0x533f5d;return we(_0x2fe021,''[_0x9251b6(0x38a)](_0x5f1083,'-')[_0x9251b6(0x38a)](_0x382d9e[_0x9251b6(0x2fc)],'-')[_0x9251b6(0x38a)](_0x26519f),_0x5e55e,void 0x0,_0x5313ae);}));}function Ot(_0x21c4e7,_0x5295cc,_0xad33a2){const _0x1bf52d=_0x5e93c2;var _0x31f20b=E({},_0x21c4e7[_0x1bf52d(0x3a5)]);_0xad33a2!=null&&_0xad33a2[_0x1bf52d(0x346)]&&_0x31f20b[_0x1bf52d(0x41b)]===_0x1bf52d(0x346)&&(_0x31f20b['fill']=_0xad33a2[_0x1bf52d(0x346)]),_0x21c4e7[_0x1bf52d(0x2fc)]==='mask'&&_0x31f20b['id']&&(_0x31f20b['id']=_0x31f20b['id']+_0x5295cc[_0x1bf52d(0x1b7)]),Object[_0x1bf52d(0x3d5)](_0x31f20b)[_0x1bf52d(0x2a5)](function(_0x34235e){const _0x49cebd=_0x1bf52d;var _0x2aec45=_0x34235e[0x0],_0x2d327f=_0x34235e[0x1];_0x2aec45===_0x49cebd(0x1b8)&&typeof _0x2d327f=='string'&&(_0x31f20b[_0x2aec45]=_0x2d327f['replace'](/url\(#(.*)\)/,_0x49cebd(0x279)[_0x49cebd(0x38a)](_0x5295cc[_0x49cebd(0x1b7)],')')));});var _0xe94c9b=_0x5295cc[_0x1bf52d(0x3df)];return!_0xe94c9b||_0xe94c9b[_0x1bf52d(0x293)]===0x0||(_0x21c4e7[_0x1bf52d(0x2fc)]===_0x1bf52d(0x3ec)&&_0x31f20b[_0x1bf52d(0x1bb)]&&(_0x31f20b[_0x1bf52d(0x1bb)]=_0x31f20b[_0x1bf52d(0x1bb)]+_0x5295cc[_0x1bf52d(0x1b7)]),Object[_0x1bf52d(0x3d5)](_0x31f20b)[_0x1bf52d(0x2a5)](function(_0xa999c4){const _0x45fc14=_0x1bf52d;var _0x2b3b9b=_0xa999c4[0x0],_0x3e9df5=_0xa999c4[0x1];typeof _0x3e9df5==_0x45fc14(0x397)&&(_0x31f20b[_0x2b3b9b]=_0x3e9df5[_0x45fc14(0x3ee)](/url\(#(.*)\)/,_0x45fc14(0x279)[_0x45fc14(0x38a)](_0x5295cc['idSuffix'],')')));})),_0x31f20b;}function Rt(_0x1a73f0,_0x589a37){const _0x382f17=_0x5e93c2;var _0x5699f3,_0x3dd26e=_0x589a37['defIds'];return!_0x3dd26e||_0x3dd26e[_0x382f17(0x293)]===0x0?_0x1a73f0:_0x1a73f0[_0x382f17(0x2fc)]===_0x382f17(0x40d)&&(!((_0x5699f3=_0x1a73f0[_0x382f17(0x1d6)])===null||_0x5699f3===void 0x0)&&_0x5699f3[_0x382f17(0x293)])?E(E({},_0x1a73f0),{'children':_0x1a73f0[_0x382f17(0x1d6)][_0x382f17(0x1e7)](function(_0x36c64e){const _0x55e2c0=_0x382f17;return typeof _0x36c64e[_0x55e2c0(0x3a5)]['id']=='string'&&_0x3dd26e&&_0x3dd26e[_0x55e2c0(0x2c1)](_0x36c64e['attrs']['id'])>-0x1?E(E({},_0x36c64e),{'attrs':E(E({},_0x36c64e['attrs']),{'id':_0x36c64e['attrs']['id']+_0x589a37['idSuffix']})}):_0x36c64e;})}):_0x1a73f0;}function Dt(){const _0x10de4a=_0x5e93c2;return Math[_0x10de4a(0x2f3)]()[_0x10de4a(0x1e2)](0x24)['substring'](0x2,0x8);}function _0x2048(){const _0x4761aa=['CLOSE_ROOM','event$','subunit','complete','IConfigService','m2Prime','enableLocalCache','from','runOnServer','session.connection-failed','DependentOn','getMember','split','startColumn','Warning','_setupSubUnitSync','_heartbeatTimer','CollaborationController','handleDeleteRangeMoveLeft','@univerjs-pro/collaboration-client','getConfig','_send','DocSkeletonManagerService','origin','handleInsertRangeMoveDown','uni.network.url-service','8GouBPa','addObject','collabStatus.fetchMiss','triggerDblclick','UniverCollaborationClientUIPlugin','CollaborationUIEventService','blue.400','_drawTextRange','deepClone','@univerjs/engine-formula','body','_initCommandExecutedListener','collaboration.single-unit.warning','startRow','collab-text-range-','_render','Plugin','OTHER_CLIENTS_EDITING','_roomMembers$','AWAITING','APPLY_DUPLICATED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','selection','3776SDEJwk','m1Prime','round','ITransformService','WebBrowserSingleActiveUnitService','_cursorShapes','_univerInstanceService','on-line-single','UNIVER_DOC','SheetSkeletonManagerService','jsxs','getSkeleton','off-line-single','text','connectInjector','currentColor','_handleHeartbeatEvent','url(#$1','APPLY_REVISION_CONFILICT','addEventListener','ENSURE_SNAPSHOT_EXECUTION','div','switchMap','getActiveSheet','DeleteRangeMoveLeftCommandId','DocStateChangeManagerService','ranges','_localCacheService','onMouseMove','disableLocalCache','HEADER_MENU','svg','fillText','makeDirty','newValue','FETCH_MISS','getStateCache','eventID','_docSkeleton','getCollabCursors$','merge','ThemeService','_online','length','activeSheet$','type','roomMembers$','requireSession','push','current','imageSourceType','transformMutation','symbol','max','0\x200\x2016\x2016','InsertRangeMoveRightCommandId','lineTo','_cursorInfo$','IMessageService','get','OnLineSingle','forEach','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','SUBMIT_CHANGESET_TIMEOUT','getOwnPropertyDescriptor','drawWith','getActiveRange','getCurrent','transform','YUUMI_NO_CUBOID_FOR_QUESTION','restore','getUnitStatus$','mergeOverrideWithDependencies','collaboration-client-ui.config','with','_handleEvent','location','LocaleService','_eventUnsubscribe','toRgbString','fillRule','then','flatMap','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','color','IImageIoService','_configService','onPointerMove$','APPLY_NON_SEQUENTIAL_REVISION','indexOf','_getMergeRange','collab-text-anchor-','doc.mutation.rich-text-editing','ILocalCacheService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','yellow.400','_initDependencies','rxjs','LOGIN_FAILED','_messageService','params','defineProperty','_initStatusComponent','range','_updateSubUnitFromURLParams','ILocalStorageService','roomMembers','LICENSE_DISTRO_REJECTED','DeleteRangeMoveUpCommandId','YUUMI_ALL_TABLES_IS_INVALID','_onCursorUpdate','sessionTicket','6EESBGG','data','_initEntityListener','exhaustSavingTask','_uiPartsService','CommandType','currentSkeleton$','TOO_MANY_REQUESTS','MUTATION','Vector2','UNAUTHENTICATED','@univerjs-pro/collaboration','DisposableCollection','[CollaborationDataLoaderController]','COMPLETION_FINISHED','INVITE_CODE_ALREADY_BOUND','PERMISSION_DENIED','...','DocSelectionManagerService','_ensureSubject','SheetCollabCursorShape','IRemoteInstanceService','none','_startDocCollabCursor','dispose','OFFLINE','ALREADY_EXISTS','random','icon','_handleLeaveEvent','_scheduleClearOtherTimer','_sheetSkeletonManagerService','_labelPosition','useObservable','touchDependencies','pushState','tag','UPDATE_CURSOR','DocCollaborationEntity','UniverInstanceType','getParam','takeUntil','_getAnchorBounding','disposeWithMe','_onRefRangeChange','name','LICENSE_IMPORT_SIZE_EXCEEDED','LOCAL_CACHE_INTERVAL','hide','_removeClearOtherTimer','add','isActive','syncEditingCollabCursor','@univerjs/ui','transformMutationsWithChangeset','Workbook','APPLY_PERMISSION_DENIED','Optional','YUUMI_AI_RUN_FAILED','NodePositionConvertToCursor','includes','CollaborationStatusDisplay','_collabCursorController','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_collaborationController','_injector','call','replaceState','_config','send','_drawRectRange','green.600','_color','_localStorageService','url(#off-line-single_clip0_910_343)','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ACTIVE_UNIT_EVENT_CHANNEL','Tooltip','isTransformMutationFailure','getLocalCacheKey','extend','toStringTag','measureText','@univerjs/rpc','setConfig','OffLineSingle','1em','SHEET_VIEWPORT_KEY','YUUMI_ASYNCIO_CANCELLED','assign','RECT','dispose$','delete','CollaborationSocketService','MessageType','CollaborationDataLoaderController','pluginName','UniverCollaborationClientPlugin','Disposable','editingUnit','createInstance','_getSaveTimeout','0\x200\x2017\x2016','forwardRef','init','_handleHover','OTHER_CLIENT_EDITING','Unknown\x20user','ONLINE','_scheduleSaving','colorChannel1','onPointerEnter$','black','subUnitId','_getSheetObject','on-line-single_clip0_910_349','registerComponent','onRendered','SheetsSelectionsService','reconnect','getUnhiddenWorksheets','mutations','_anchor','urlChange$','_hover','_docSkeletonManagerService','_selfUnitIDs','PENDING','react','CollaborationUIEventId','assignAColorForMemberID','USERS_LEAVE','MemberService','findNodePositionByCharIndex','1700430pKFLIZ','save','error','CollaborationEvent','moveTo','session.will-retry','saveTaskMap','getUndoRedoMutationParamsCache','APPLY_REJECT','sheetId','_createSocketURL','subscribe','_themeService','_getSessionTicket','off-line-single_clip0_910_343','post','clipPath','getColorFromTheme','debug','purple.300','BrowserCollaborationSocketService','/run/','next','YUUMI_URL_COL_OUT_OF_RANGE','_scene','M0\x200H16V16H0z','fillStyle','path','contains','runId','349780VVvWOT','addClipboardHook','INTERNAL_ERROR','setParam','replaceDocRanges','_collabSessionService','HTTPService','whenReady','5448488FbhkNv','serializeRangeWithSheet','result','unitId','prototype','_lastPointer','concat','SetDocZoomRatioOperation','Error','getRenderById','asObservable','INVITE_CODE_HAS_BEEN_UES','subscribeEvent','_beforeCloseService','ISocketService','_unitStatus','_name','has','UNRECOGNIZED','string','generateRandomId','_docClipboardService','_dataLoaderService','collabCursorState$','endRow','#fff','AWAITING_WITH_PENDING','_id','currentTheme$','distinctUntilChanged','clearInterval','searchParams','2523507KjiIlW','attrs','getRelativeToViewportCoord','sheetID','pipe','red.300','_hideTimer','height','width','_getScale','useCallback','_colorAssignService','IBeforeCloseService','NodePositionConvertToRectRange','ColorKit','_entities','RegularPolygon','focused$','react/jsx-runtime','DesktopCollaborationStatusDisplayController','getDocRanges','redoState','unit','BehaviorSubject','_collaborationUIEventService','arc','_handleJoinEvent','11geBrGE','actions','NOT_COLLAB','registerBeforeClose','setUndoRedoMutationParamsCache','Shape','updateOfflineData','collab-rect-range-','throttleTime','_cursor','wsSessionTicketUrl','labelPosition','min','row','_commandService','className','WebURLService','PY_RUNTIME_SCRIPT_ERROR','registerRefRange','addHandlerCallback','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','transformIMECache','entries','#FFF','evenodd','LICENSE_MAX_UNITS_EXCEEDED','_syncEditingCollabCursorService','_updateCollabCursors','all','_session','DOC_RANGE_TYPE','_transformUndoRedoStack','defIds','isArray','handleIRemoveRow','onTransformChange$','_refRangeService','IUniverInstanceService','engine','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','univerjs-icon\x20univerjs-icon-','handleInsertRow','transformSelections','_updateLocalCursor','skeleton','use','WebSocketService','replace','Failed','CONNECTOR_DATA_TOO_LARGE','set','_drawAnchor','getAncestorScale','YUUMI_SUBSCRIPTION_NOT_FOUND','_scheduleHeartbeat','_cursors','_status$','resize','getOwnPropertySymbols','collab-client.tooltip.reconnect','entityInit$','docStateChange$','executeCommand','getItem','INVITE_CODE_REQUIRED','UNIVER_SHEET','_context','_transformService','_refreshCollabCursors','search','Module','_updateURLWithCurrentState','SNAPSHOT_HAS_BEEN_REMOVED','IDocClipboardService','onCommandExecuted','getTypeOfUnitAdded$','TEXT','setStateCache','defs','RevisionService','CHANGESET_REVISION_CONFILICT','ICommandService','_colorIndex','some','getSheetId','LICENSE_EXPORT_SIZE_EXCEEDED','RemoveRowCommandId','getValue','Rect','top','jsx','Injector','fill','transformByState','getSheetBySheetId','_docSyncEditingCollabCursorService','@univerjs/network','USER_NOT_INVITED_CODE','unsubscribe','_removeCollabCursors','RemoteUniscriptService','NO_OTHER_CLIENTS_EDITING','rxjs/operators','isTransformMutationsWithChangesetSuccess','collabStatus.conflict','loadUnit','stringify','handleDeleteRangeMoveUp','InsertRangeMoveDownCommandId','href','36pBSEOD','1506088pYlqdM','displayName','Tools','DataLoaderService','useDependency','_collabCursorState$','CollaborationSessionService','show','7WsONHd','transformRemoteChangeset','_init','status$','_instanceService','saveImage','TEXT_RANGE_LAYER_INDEX','_logService','_docTransformIMECacheService','setActiveRange','translate(.97)','_memberService','8386500pkQkWH','size','RxDisposable','_shapes','RichTextEditingMutation','hasOwnProperty','setItem','_transformPreviousActiveRange','idSuffix','mask','SNAPSHOT_INVALID_SNAPSHOT','INVALID_INVITE_CODE','xlink:href','RefRangeService','registerRenderModule','getRangePointData','WECHAT_HAS_BEEN_BOUND','Inject','getColor','_startSheetCollabCursor','_httpService','onLocalMutation','debounceTime','@univerjs/drawing','textRanges','unshift','_onCursorDelete','cursorInfo$','handleInsertRangeMoveRight','@univerjs/sheets','Subject','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','createElement','source','_anchorDot','endColumn','getFocusedUnit','_cachedData','_transformHistoryAndStateStack','children','UNDEFINED','getSheetObject','CONFLICT','_disabled','filter','_urlService','_toggleOffline','_localeService','clearTimeout','MOBILE_HAS_BEEN_BOUND','_document','toString','EffectRefRangId','removeParam','SetWorksheetActivateCommand','propertyIsEnumerable','map','getUnitId','code','_doCreateSocket','EMAIL_HAS_BEEN_BOUND','onPointerLeave$','_hovered','MoveRangeCommandId','createIdentifier','SYNCED','_unitOnClients','debounce','JOIN_ROOM_FAILED','setShapeProps','SetTextSelectionsOperation','_backgroundColor','_saveTaskMap','_docStateChangeManagerService','disposeUnit','_range','column','popstate','_entityInit$','_toggleOnline','setAlpha','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SessionStatus','UniverIcon','jiqing.500','COLORS','selections','INVALID_ARGUMENT','bottom','collaboration.closeRoom','ISnapshotServerService','backgroundColor','ticket','_textBubble','executionId','YUUMI_RATE_OVER_LIMIT','_setupBeforeClosingHandler','handleInsertCol','parse','ILogService','InsertRowCommandId','url(#on-line-single_clip0_910_349)','IRenderManagerService','_notificationService','_imageIoService','runRefRangeMutations','FromArray','unitID','_assignedColors','_docTransformSelectionsService','@univerjs/engine-render','getMemberID','values','YUUMI_UNABLE_LOAD_URL','history','IUIPartsService','_registerDependencies','_initStatusListener','_clearOtherTimers','DocIMEInputManagerService','sessionStatus$','NOT_FOUND','CollaborationStatus','_saveCache','UnitStatus','getCurrentSelections','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','cursorInfo','collabStatus.synced','toDisposable','getTypeOfUnitDisposed$','_initEvent','transformStateCache','_revisionService','_renderManagerService','_draw'];_0x2048=function(){return _0x4761aa;};return _0x2048();}pe[_0x5e93c2(0x19c)]=_0x5e93c2(0x202);var Ut={'tag':_0x5e93c2(0x287),'attrs':{'fill':'none','viewBox':_0x5e93c2(0x29e),'width':_0x5e93c2(0x32e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5e93c2(0x322)},'children':[{'tag':_0x5e93c2(0x379),'attrs':{'stroke':_0x5e93c2(0x277),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5e93c2(0x40d),'attrs':{},'children':[{'tag':_0x5e93c2(0x36e),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x5e93c2(0x379),'attrs':{'fill':_0x5e93c2(0x39d),'d':_0x5e93c2(0x377)}}]}]}],'defIds':[_0x5e93c2(0x36c)]},ye=M[_0x5e93c2(0x33f)](function(_0x2aea9f,_0x2144e6){const _0x2025ee=_0x5e93c2;return M[_0x2025ee(0x1cf)](pe,Object['assign']({},_0x2aea9f,{'id':_0x2025ee(0x274),'ref':_0x2144e6,'icon':Ut}));});ye[_0x5e93c2(0x19c)]=_0x5e93c2(0x32d);var Nt={'tag':_0x5e93c2(0x287),'attrs':{'fill':_0x5e93c2(0x2ee),'viewBox':_0x5e93c2(0x33e),'width':_0x5e93c2(0x32e),'height':_0x5e93c2(0x32e)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e93c2(0x214)},'children':[{'tag':_0x5e93c2(0x379),'attrs':{'stroke':_0x5e93c2(0x277),'d':_0x5e93c2(0x22d),'strokeLinecap':'round','strokeLinejoin':_0x5e93c2(0x26a),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5e93c2(0x36e),'attrs':{'id':_0x5e93c2(0x34b)},'children':[{'tag':_0x5e93c2(0x379),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x5e93c2(0x1ad)}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0x5e93c2(0x33f)](function(_0x5e4ebf,_0x3eedbd){const _0x5e8f0a=_0x5e93c2;return M[_0x5e8f0a(0x1cf)](pe,Object['assign']({},_0x5e4ebf,{'id':_0x5e8f0a(0x26f),'ref':_0x3eedbd,'icon':Nt}));});$e[_0x5e93c2(0x19c)]=_0x5e93c2(0x2a4);function Mt(_0x429091){const _0x548d7d=_0x5e93c2;switch(_0x429091){case u['CollaborationStatus'][_0x548d7d(0x2f1)]:return'collabStatus.offline';case u[_0x548d7d(0x229)][_0x548d7d(0x1d9)]:return _0x548d7d(0x194);case u[_0x548d7d(0x229)][_0x548d7d(0x28b)]:return _0x548d7d(0x253);case u['CollaborationStatus'][_0x548d7d(0x3c1)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x548d7d(0x264)]:case u[_0x548d7d(0x229)][_0x548d7d(0x39e)]:return'collabStatus.syncing';case u[_0x548d7d(0x229)][_0x548d7d(0x1f0)]:case u[_0x548d7d(0x229)][_0x548d7d(0x357)]:return _0x548d7d(0x22f);}}function xe(_0x36bc34){const _0x3135b=_0x5e93c2,{status$:_0x5944c4}=_0x36bc34,_0x1ec2e8=T[_0x3135b(0x2f9)](_0x5944c4,u[_0x3135b(0x229)][_0x3135b(0x3c1)]),_0x22f8a7=T[_0x3135b(0x19f)](a[_0x3135b(0x2b5)]),_0x56b596=T[_0x3135b(0x19f)](u[_0x3135b(0x1a1)]),_0x2cb888=_0x1ec2e8!==u['CollaborationStatus'][_0x3135b(0x2f1)],_0x1a266c=_0x22f8a7['t'](Mt(_0x1ec2e8)),_0x13b814=_0x2cb888?P[_0x3135b(0x419)]($e,{}):P[_0x3135b(0x419)](ye,{}),_0x4ebb95=M[_0x3135b(0x3ae)](()=>{const _0x374d17=_0x3135b;_0x2cb888||_0x56b596[_0x374d17(0x34f)]();},[_0x2cb888,_0x56b596]);function _0x4b4863(){const _0x2e101e=_0x3135b;return P[_0x2e101e(0x272)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x4ebb95,'children':[P[_0x2e101e(0x419)](_0x2e101e(0x27d),{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x2cb888,'univer-text-red-500':!_0x2cb888}),'children':_0x13b814}),P[_0x2e101e(0x419)]('div',{'className':_0x2e101e(0x3d3),'children':_0x1a266c})]});}return _0x2cb888?_0x4b4863():P['jsx'](D[_0x3135b(0x325)],{'title':_0x22f8a7['t'](_0x3135b(0x3fa)),'children':_0x4b4863()});}var Lt=Object[_0x5e93c2(0x2a8)],Pt=(_0x13f3f4,_0x19f634,_0x17c93f,_0x91e6c0)=>{const _0xb71dcf=_0x5e93c2;for(var _0x564679=_0x91e6c0>0x1?void 0x0:_0x91e6c0?Lt(_0x19f634,_0x17c93f):_0x19f634,_0x2690ce=_0x13f3f4[_0xb71dcf(0x293)]-0x1,_0x1a9dc7;_0x2690ce>=0x0;_0x2690ce--)(_0x1a9dc7=_0x13f3f4[_0x2690ce])&&(_0x564679=_0x1a9dc7(_0x564679)||_0x564679);return _0x564679;},V=(_0x383297,_0x30c192)=>(_0x4ba33d,_0x259ee5)=>_0x30c192(_0x4ba33d,_0x259ee5,_0x383297);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x52123e,_0x3794d5,_0x2a95d2,_0x6d08a0){const _0x24980a=_0x5e93c2;super(),h(this,_0x24980a(0x3f7),new d['BehaviorSubject'](u[_0x24980a(0x229)][_0x24980a(0x3c1)])),(this['_univerInstanceService']=_0x52123e,this[_0x24980a(0x319)]=_0x3794d5,this[_0x24980a(0x318)]=_0x2a95d2,this[_0x24980a(0x2dc)]=_0x6d08a0,this[_0x24980a(0x2ce)](),this[_0x24980a(0x224)]());}[_0x5e93c2(0x224)](){const _0x9a8efd=_0x5e93c2;this[_0x9a8efd(0x303)](this['_univerInstanceService'][_0x9a8efd(0x3b5)][_0x9a8efd(0x3a8)](d[_0x9a8efd(0x27e)](()=>{const _0x15c367=_0x9a8efd,_0x1a0ff0=this[_0x15c367(0x26e)]['getFocusedUnit']();return _0x1a0ff0?this['_collaborationController']['getCollabEntity$'](_0x1a0ff0[_0x15c367(0x1e8)]()):d['of'](null);}),d[_0x9a8efd(0x27e)](_0x332953=>_0x332953?_0x332953[_0x9a8efd(0x1a6)]:d['of'](u[_0x9a8efd(0x229)][_0x9a8efd(0x3c1)])))[_0x9a8efd(0x369)](_0x4e3c5f=>{const _0x241fdd=_0x9a8efd;this[_0x241fdd(0x3f7)][_0x241fdd(0x374)](_0x4e3c5f);}));}['_initStatusComponent'](){const _0x179d2c=_0x5e93c2;this[_0x179d2c(0x303)](this[_0x179d2c(0x2dc)][_0x179d2c(0x34c)](T['BuiltInUIPart'][_0x179d2c(0x286)],()=>T[_0x179d2c(0x276)](At({'status$':this['_status$'][_0x179d2c(0x38e)]()}),this[_0x179d2c(0x319)])));}},exports[_0x5e93c2(0x3b7)]=Pt([V(0x0,a[_0x5e93c2(0x3e4)]),V(0x1,a[_0x5e93c2(0x1c0)](a[_0x5e93c2(0x41a)])),V(0x2,a[_0x5e93c2(0x1c0)](u[_0x5e93c2(0x248)])),V(0x3,T[_0x5e93c2(0x222)])],exports[_0x5e93c2(0x3b7)]);function At(_0x2bc61b){const {status$:_0x11fe64}=_0x2bc61b;return function(){const _0xeeb093=_0x286c;return P[_0xeeb093(0x419)](xe,{'status$':_0x11fe64});};}var wt=Object[_0x5e93c2(0x2a8)],yt=(_0xfd62e7,_0x431b3c,_0x13c107,_0x1ef92d)=>{const _0x7634f4=_0x5e93c2;for(var _0x4a2b4f=_0x1ef92d>0x1?void 0x0:_0x1ef92d?wt(_0x431b3c,_0x13c107):_0x431b3c,_0x29e4ac=_0xfd62e7[_0x7634f4(0x293)]-0x1,_0x5dbb69;_0x29e4ac>=0x0;_0x29e4ac--)(_0x5dbb69=_0xfd62e7[_0x29e4ac])&&(_0x4a2b4f=_0x5dbb69(_0x4a2b4f)||_0x4a2b4f);return _0x4a2b4f;},y=(_0x28912a,_0x3eca53)=>(_0x136c19,_0x4b1b89)=>_0x3eca53(_0x136c19,_0x4b1b89,_0x28912a);let q=class extends a[_0x5e93c2(0x33a)]{constructor(_0x213d88,_0x3fe093,_0x54e5fb,_0x4fd6f6,_0x5a8863,_0x3c32cb){const _0x237f26=_0x5e93c2;super(),this['_beforeCloseService']=_0x213d88,this[_0x237f26(0x283)]=_0x3fe093,this['_collaborationUIEventService']=_0x54e5fb,this['_messageService']=_0x4fd6f6,this[_0x237f26(0x216)]=_0x5a8863,this[_0x237f26(0x1de)]=_0x3c32cb,this['_setupBeforeClosingHandler'](),this[_0x237f26(0x232)]();}[_0x5e93c2(0x20f)](){const _0x1754ee=_0x5e93c2;this[_0x1754ee(0x303)](this[_0x1754ee(0x391)][_0x1754ee(0x3c2)](()=>{const _0xa9f51d=_0x1754ee;if(this[_0xa9f51d(0x283)][_0xa9f51d(0x364)]['size'])return this[_0xa9f51d(0x1de)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x5e93c2(0x232)](){const _0x40cca3=_0x5e93c2;this[_0x40cca3(0x303)](this[_0x40cca3(0x3bc)][_0x40cca3(0x238)][_0x40cca3(0x369)](_0x2dc08b=>{const _0x35dc79=_0x40cca3;_0x2dc08b['id']===u[_0x35dc79(0x359)][_0x35dc79(0x342)]&&this['_messageService'][_0x35dc79(0x1a2)]({'type':D[_0x35dc79(0x336)][_0x35dc79(0x245)],'content':this[_0x35dc79(0x1de)]['t'](_0x35dc79(0x25d))}),_0x2dc08b['id']===u[_0x35dc79(0x359)][_0x35dc79(0x237)]&&this['_messageService'][_0x35dc79(0x1a2)]({'type':D['MessageType']['Warning'],'content':this[_0x35dc79(0x1de)]['t'](_0x35dc79(0x208))}),_0x2dc08b['id']===u[_0x35dc79(0x359)]['PERMISSION_DENIED']&&this['_notificationService'][_0x35dc79(0x1a2)]({'title':this[_0x35dc79(0x1de)]['t']('permission.title'),'content':this[_0x35dc79(0x1de)]['t']('permission.content'),'type':_0x35dc79(0x360),'duration':0x0}),_0x2dc08b['id']===u[_0x35dc79(0x359)][_0x35dc79(0x1d9)]&&this['_messageService'][_0x35dc79(0x1a2)]({'type':D['MessageType']['Error'],'content':this[_0x35dc79(0x1de)]['t'](_0x35dc79(0x208))+'('+_0x2dc08b[_0x35dc79(0x2d9)]+')'}),_0x2dc08b['id']===u['CollaborationUIEventId'][_0x35dc79(0x1f3)]&&this[_0x35dc79(0x2cb)][_0x35dc79(0x1a2)]({'type':D[_0x35dc79(0x336)]['Warning'],'content':this[_0x35dc79(0x1de)]['t'](_0x2dc08b['data']||'')}),_0x2dc08b['id']===u[_0x35dc79(0x359)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x35dc79(0x1a2)]({'type':D[_0x35dc79(0x336)][_0x35dc79(0x245)],'content':this['_localeService']['t'](_0x35dc79(0x363))}),_0x2dc08b['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x35dc79(0x1a2)]({'type':D[_0x35dc79(0x336)][_0x35dc79(0x38c)],'content':this[_0x35dc79(0x1de)]['t'](_0x35dc79(0x240))}),_0x2dc08b['id']===u[_0x35dc79(0x359)][_0x35dc79(0x2a7)]&&this['_messageService'][_0x35dc79(0x1a2)]({'type':D[_0x35dc79(0x336)][_0x35dc79(0x38c)],'content':this[_0x35dc79(0x1de)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0x5e93c2(0x3b0)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x5e93c2(0x1c0)](u[_0x5e93c2(0x256)])),y(0x3,T[_0x5e93c2(0x2a2)]),y(0x4,T['INotificationService']),y(0x5,a[_0x5e93c2(0x1c0)](a[_0x5e93c2(0x2b5)]))],q);const $t=_0x5e93c2(0x2b1),Ue={},be=a[_0x5e93c2(0x1ef)](_0x5e93c2(0x250));var xt=Object[_0x5e93c2(0x2a8)],jt=(_0x5111ec,_0x47f196,_0xafffef,_0x435f9f)=>{for(var _0x499ba9=_0x435f9f>0x1?void 0x0:_0x435f9f?xt(_0x47f196,_0xafffef):_0x47f196,_0x2a73bc=_0x5111ec['length']-0x1,_0x28ab6c;_0x2a73bc>=0x0;_0x2a73bc--)(_0x28ab6c=_0x5111ec[_0x2a73bc])&&(_0x499ba9=_0x28ab6c(_0x499ba9)||_0x499ba9);return _0x499ba9;},H=(_0x5966dd,_0x1600d3)=>(_0x117675,_0xe95505)=>_0x1600d3(_0x117675,_0xe95505,_0x5966dd);exports[_0x5e93c2(0x337)]=class extends a[_0x5e93c2(0x1b1)]{constructor(_0x3bf34a,_0x3f0293,_0x40efb1,_0x17b89a,_0x5f4248){const _0x382258=_0x5e93c2;super(),this['_urlService']=_0x3bf34a,this[_0x382258(0x1aa)]=_0x3f0293,this[_0x382258(0x3cd)]=_0x40efb1,this['_dataLoaderService']=_0x17b89a,_0x5f4248?_0x5f4248==null||_0x5f4248[_0x382258(0x383)]()[_0x382258(0x2b9)](()=>this[_0x382258(0x1a5)]()):(this[_0x382258(0x1aa)][_0x382258(0x370)](_0x382258(0x2e5),_0x382258(0x317)),this[_0x382258(0x1a5)]());}async[_0x5e93c2(0x1a5)](){const _0x257cef=_0x5e93c2,_0x39703c=this[_0x257cef(0x1dc)][_0x257cef(0x300)](_0x257cef(0x3ba)),_0x25bfa2=this['_urlService']['getParam'](_0x257cef(0x295)),_0x4002cb=this[_0x257cef(0x1dc)][_0x257cef(0x300)](_0x257cef(0x239));if(!_0x39703c||!_0x25bfa2){this[_0x257cef(0x1aa)][_0x257cef(0x370)](_0x257cef(0x2e5),_0x257cef(0x3e6));return;}const _0x52f2d4=await this[_0x257cef(0x39a)][_0x257cef(0x195)](_0x39703c,Number(_0x25bfa2),_0x4002cb);_0x52f2d4&&_0x52f2d4 instanceof a[_0x257cef(0x30f)]&&this[_0x257cef(0x246)](_0x52f2d4);}async['_setupSubUnitSync'](_0x3cc3f5){const _0xc64895=_0x5e93c2;await this['_updateSubUnitFromURLParams'](_0x3cc3f5),_0x3cc3f5[_0xc64895(0x294)]['pipe'](d[_0xc64895(0x301)](this[_0xc64895(0x333)]))[_0xc64895(0x369)](_0x19494f=>{const _0x207f61=_0xc64895;_0x19494f&&this[_0x207f61(0x406)](_0x19494f);}),this[_0xc64895(0x1dc)][_0xc64895(0x353)][_0xc64895(0x3a8)](d[_0xc64895(0x301)](this['dispose$']))[_0xc64895(0x369)](()=>this[_0xc64895(0x2d0)](_0x3cc3f5));}['_updateURLWithCurrentState'](_0x99dc81,_0x5b0701=!0x1){const _0x772b7=_0x5e93c2,_0x3779f8=this[_0x772b7(0x1dc)][_0x772b7(0x300)]('subunit');_0x99dc81[_0x772b7(0x413)]()!==_0x3779f8&&this[_0x772b7(0x1dc)][_0x772b7(0x37f)]('subunit',_0x99dc81[_0x772b7(0x413)](),_0x5b0701);}async['_updateSubUnitFromURLParams'](_0x20bea7){const _0x4d5b1a=_0x5e93c2;var _0x32a029;const _0x13cb47=this[_0x4d5b1a(0x1dc)][_0x4d5b1a(0x300)]('subunit');if(!_0x13cb47||!_0x20bea7[_0x4d5b1a(0x41d)](_0x13cb47)){const _0x17d66b=_0x20bea7[_0x4d5b1a(0x350)]()[0x0],_0x29a545=_0x20bea7[_0x4d5b1a(0x41d)](_0x17d66b);if(!_0x29a545)return;this[_0x4d5b1a(0x406)](_0x29a545,!0x0),await this[_0x4d5b1a(0x3cd)][_0x4d5b1a(0x3fd)](g[_0x4d5b1a(0x1e5)]['id'],{'unitId':_0x20bea7[_0x4d5b1a(0x1e8)](),'subUnitId':_0x17d66b});return;}((_0x32a029=_0x20bea7[_0x4d5b1a(0x27f)]())==null?void 0x0:_0x32a029[_0x4d5b1a(0x413)]())!==_0x13cb47&&await this[_0x4d5b1a(0x3cd)][_0x4d5b1a(0x3fd)](g[_0x4d5b1a(0x1e5)]['id'],{'unitId':_0x20bea7[_0x4d5b1a(0x1e8)](),'subUnitId':_0x13cb47});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x5e93c2(0x212)]),H(0x2,a[_0x5e93c2(0x410)]),H(0x3,a[_0x5e93c2(0x1c0)](u[_0x5e93c2(0x19e)])),H(0x4,a[_0x5e93c2(0x311)](Ke[_0x5e93c2(0x2ed)]))],exports[_0x5e93c2(0x337)]);var Bt=Object[_0x5e93c2(0x2a8)],kt=(_0x49371d,_0x1815df,_0xc0b3a3,_0x411771)=>{const _0x5aaafd=_0x5e93c2;for(var _0x486282=_0x411771>0x1?void 0x0:_0x411771?Bt(_0x1815df,_0xc0b3a3):_0x1815df,_0x12d25d=_0x49371d[_0x5aaafd(0x293)]-0x1,_0x1718a9;_0x12d25d>=0x0;_0x12d25d--)(_0x1718a9=_0x49371d[_0x12d25d])&&(_0x486282=_0x1718a9(_0x486282)||_0x486282);return _0x486282;},ce=(_0x1981b1,_0x48fdd5)=>(_0x25973c,_0x341c98)=>_0x48fdd5(_0x25973c,_0x341c98,_0x1981b1);let z=class{constructor(_0x493434,_0x53f0e0,_0x19c846){const _0x2ad8b=_0x5e93c2;this['_injector']=_0x493434,this[_0x2ad8b(0x402)]=_0x53f0e0,this[_0x2ad8b(0x235)]=_0x19c846;}['transformIMECache'](_0x5a059e){const _0x3b9ffa=_0x5e93c2;this[_0x3b9ffa(0x3de)](_0x5a059e),this[_0x3b9ffa(0x1b6)](_0x5a059e);}[_0x5e93c2(0x1a4)](_0x3ab589){const _0x2625bd=_0x5e93c2,{unitID:_0x113c55}=_0x3ab589,_0x8b1599=this[_0x2625bd(0x235)][_0x2625bd(0x38d)](_0x113c55)[_0x2625bd(0x2b2)](b[_0x2625bd(0x226)]),{redoCache:_0x4438b8}=_0x8b1599[_0x2625bd(0x365)]();if(_0x4438b8[_0x2625bd(0x293)]===0x0)return _0x3ab589;let _0x1daae6=a[_0x2625bd(0x19d)][_0x2625bd(0x259)](_0x3ab589[_0x2625bd(0x351)][0x0]);for(let _0x332023=0x0;_0x332023<_0x4438b8[_0x2625bd(0x293)];_0x332023++){const _0x57394b={'id':'doc.mutation.rich-text-editing','params':{..._0x4438b8[_0x332023]}},_0x28e156=this[_0x2625bd(0x402)][_0x2625bd(0x29b)](_0x1daae6,_0x57394b,!0x1);if(m[_0x2625bd(0x326)](_0x28e156))throw _0x28e156[_0x2625bd(0x360)];_0x1daae6=_0x28e156[_0x2625bd(0x269)];}return{...a[_0x2625bd(0x19d)][_0x2625bd(0x259)](_0x3ab589),'mutations':[_0x1daae6]};}[_0x5e93c2(0x3de)](_0x3bba54){const _0x3b1e6a=_0x5e93c2,{unitID:_0x3d4447}=_0x3bba54,_0x76407a=this[_0x3b1e6a(0x235)][_0x3b1e6a(0x38d)](_0x3d4447)[_0x3b1e6a(0x2b2)](b[_0x3b1e6a(0x226)]),{undoCache:_0x17995a,redoCache:_0x5bb96e}=_0x76407a['getUndoRedoMutationParamsCache']();if(_0x17995a['length']===0x0||_0x5bb96e['length']===0x0)return;const _0x2d730a=[],_0x59829b=[];let _0x245232=a[_0x3b1e6a(0x19d)][_0x3b1e6a(0x259)](_0x3bba54[_0x3b1e6a(0x351)][0x0]),_0x2e9b82=a['Tools'][_0x3b1e6a(0x259)](_0x3bba54[_0x3b1e6a(0x351)][0x0]);for(let _0x870098=_0x17995a[_0x3b1e6a(0x293)]-0x1;_0x870098>=0x0;_0x870098--){const _0x18efaa={'id':_0x3b1e6a(0x2c4),'params':{..._0x17995a[_0x870098]}},_0xadff8a={'id':_0x3b1e6a(0x2c4),'params':{..._0x5bb96e[_0x870098]}},_0xa42b30=this[_0x3b1e6a(0x402)]['transformMutation'](_0x245232,_0x18efaa,!0x1),_0x18913c=this[_0x3b1e6a(0x402)]['transformMutation'](_0x2e9b82,_0xadff8a,!0x1);if(m[_0x3b1e6a(0x326)](_0xa42b30))throw _0xa42b30[_0x3b1e6a(0x360)];if(m['isTransformMutationFailure'](_0x18913c))throw _0x18913c[_0x3b1e6a(0x360)];_0x2d730a['unshift'](_0xa42b30[_0x3b1e6a(0x23c)][_0x3b1e6a(0x2cc)]),_0x59829b[_0x3b1e6a(0x1c8)](_0x18913c[_0x3b1e6a(0x23c)]['params']),_0x245232=_0xa42b30[_0x3b1e6a(0x269)],_0x2e9b82=_0x18913c[_0x3b1e6a(0x269)];}_0x76407a[_0x3b1e6a(0x3c3)]({'undoCache':_0x2d730a,'redoCache':_0x59829b});}[_0x5e93c2(0x1b6)](_0xdf9739){const _0x453d86=_0x5e93c2,{unitID:_0x3c629c}=_0xdf9739,_0xb33601=this[_0x453d86(0x235)][_0x453d86(0x38d)](_0x3c629c)[_0x453d86(0x2b2)](b[_0x453d86(0x226)]),_0x349856=_0xb33601[_0x453d86(0x2aa)]();if(_0x349856==null)return;const _0x53f9bd=[{'id':_0x453d86(0x2c4),'params':{'unitId':_0xdf9739[_0x453d86(0x21a)],'actions':null,'textRanges':[_0x349856]}}],_0x268edc=this[_0x453d86(0x402)]['transformMutationsWithChangeset'](_0xdf9739,_0x53f9bd);if(!m[_0x453d86(0x193)](_0x268edc))throw _0x268edc[_0x453d86(0x360)];const _0x268685=_0x268edc[_0x453d86(0x23c)][0x0]['params'][_0x453d86(0x1c7)];Array[_0x453d86(0x3e0)](_0x268685)&&_0x268685[_0x453d86(0x293)]&&_0xb33601[_0x453d86(0x1ac)](_0x268685[0x0]);}};z=kt([ce(0x0,a[_0x5e93c2(0x1c0)](a[_0x5e93c2(0x41a)])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x5e93c2(0x215)])],z);var Ht=Object[_0x5e93c2(0x2a8)],Ft=(_0x3416f5,_0x1fe4ff,_0x4716e5,_0x4a97fd)=>{const _0x52ab28=_0x5e93c2;for(var _0x4a191a=_0x4a97fd>0x1?void 0x0:_0x4a97fd?Ht(_0x1fe4ff,_0x4716e5):_0x1fe4ff,_0x359b00=_0x3416f5[_0x52ab28(0x293)]-0x1,_0x1a0d3f;_0x359b00>=0x0;_0x359b00--)(_0x1a0d3f=_0x3416f5[_0x359b00])&&(_0x4a191a=_0x1a0d3f(_0x4a191a)||_0x4a191a);return _0x4a191a;},le=(_0x3a219b,_0x41c9c8)=>(_0x3db0bd,_0x4c5a68)=>_0x41c9c8(_0x3db0bd,_0x4c5a68,_0x3a219b);let J=class{constructor(_0x152aad,_0x52c548,_0x11bb11){const _0x40f178=_0x5e93c2;this[_0x40f178(0x319)]=_0x152aad,this[_0x40f178(0x402)]=_0x52c548,this[_0x40f178(0x1f8)]=_0x11bb11;}[_0x5e93c2(0x233)](_0x585837){const _0x517643=_0x5e93c2;this[_0x517643(0x1d5)](_0x585837);}[_0x5e93c2(0x1a4)](_0x149a28){const _0x45da13=_0x5e93c2,{unitID:_0xa61712}=_0x149a28,{collaboration:_0x5e5da0}=this[_0x45da13(0x1f8)][_0x45da13(0x28c)](_0xa61712);if(_0x5e5da0[_0x45da13(0x293)]===0x0)return _0x149a28;let _0xb28542=a[_0x45da13(0x19d)][_0x45da13(0x259)](_0x149a28[_0x45da13(0x351)][0x0]);for(let _0x282bcd=0x0;_0x282bcd<_0x5e5da0['length'];_0x282bcd++){const _0x58aaaf={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5e5da0[_0x282bcd][_0x45da13(0x387)],..._0x5e5da0[_0x282bcd][_0x45da13(0x3b9)]}},_0x4e7ba0=this[_0x45da13(0x402)][_0x45da13(0x29b)](_0xb28542,_0x58aaaf,!0x1);if(m['isTransformMutationFailure'](_0x4e7ba0))throw _0x4e7ba0[_0x45da13(0x360)];_0xb28542=_0x4e7ba0[_0x45da13(0x269)];}return{...a['Tools'][_0x45da13(0x259)](_0x149a28),'mutations':[_0xb28542]};}[_0x5e93c2(0x1d5)](_0x91b7c0){const _0x33c5c5=_0x5e93c2,{unitID:_0x58b373}=_0x91b7c0,{history:_0x3c5d1d,collaboration:_0x56b1a7}=this['_docStateChangeManagerService']['getStateCache'](_0x58b373);if(_0x3c5d1d[_0x33c5c5(0x293)]===0x0&&_0x56b1a7['length']===0x0)return;const _0x3a5ac6=[],_0x313679=[];let _0x1534ba=a['Tools']['deepClone'](_0x91b7c0[_0x33c5c5(0x351)][0x0]),_0x4beec4=a['Tools'][_0x33c5c5(0x259)](_0x91b7c0[_0x33c5c5(0x351)][0x0]);for(let _0xf037e7=_0x3c5d1d[_0x33c5c5(0x293)]-0x1;_0xf037e7>=0x0;_0xf037e7--){const _0x4d52ed={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3c5d1d[_0xf037e7]['unitId'],..._0x3c5d1d[_0xf037e7]['undoState']}},_0x444998={'id':_0x33c5c5(0x2c4),'params':{'unitId':_0x3c5d1d[_0xf037e7][_0x33c5c5(0x387)],..._0x3c5d1d[_0xf037e7][_0x33c5c5(0x3b9)]}},_0x3917ac=this[_0x33c5c5(0x402)][_0x33c5c5(0x29b)](_0x1534ba,_0x4d52ed,!0x1),_0x13b02a=this[_0x33c5c5(0x402)]['transformMutation'](_0x4beec4,_0x444998,!0x1);if(m[_0x33c5c5(0x326)](_0x3917ac))throw _0x3917ac[_0x33c5c5(0x360)];if(m[_0x33c5c5(0x326)](_0x13b02a))throw _0x13b02a[_0x33c5c5(0x360)];_0x3a5ac6[_0x33c5c5(0x1c8)]({..._0x3c5d1d[_0xf037e7],'undoState':_0x3917ac[_0x33c5c5(0x23c)][_0x33c5c5(0x2cc)],'redoState':_0x13b02a['m2Prime']['params']}),_0x1534ba=_0x3917ac[_0x33c5c5(0x269)],_0x4beec4=_0x13b02a['m1Prime'];}_0x1534ba=a[_0x33c5c5(0x19d)][_0x33c5c5(0x259)](_0x91b7c0[_0x33c5c5(0x351)][0x0]),_0x4beec4=a[_0x33c5c5(0x19d)][_0x33c5c5(0x259)](_0x91b7c0[_0x33c5c5(0x351)][0x0]);for(let _0x30dd32=_0x56b1a7[_0x33c5c5(0x293)]-0x1;_0x30dd32>=0x0;_0x30dd32--){const _0x37a4a0={'id':_0x33c5c5(0x2c4),'params':{'unitId':_0x56b1a7[_0x30dd32]['unitId'],..._0x56b1a7[_0x30dd32]['undoState']}},_0x14a332={'id':_0x33c5c5(0x2c4),'params':{'unitId':_0x56b1a7[_0x30dd32][_0x33c5c5(0x387)],..._0x56b1a7[_0x30dd32][_0x33c5c5(0x3b9)]}},_0x350b30=this[_0x33c5c5(0x402)][_0x33c5c5(0x29b)](_0x1534ba,_0x37a4a0,!0x1),_0x1a659a=this[_0x33c5c5(0x402)][_0x33c5c5(0x29b)](_0x4beec4,_0x14a332,!0x1);if(m[_0x33c5c5(0x326)](_0x350b30))throw _0x350b30[_0x33c5c5(0x360)];if(m[_0x33c5c5(0x326)](_0x1a659a))throw _0x1a659a['error'];_0x313679[_0x33c5c5(0x1c8)]({..._0x56b1a7[_0x30dd32],'undoState':_0x350b30['m2Prime']['params'],'redoState':_0x1a659a[_0x33c5c5(0x23c)]['params']}),_0x1534ba=_0x350b30[_0x33c5c5(0x269)],_0x4beec4=_0x1a659a[_0x33c5c5(0x269)];}this['_docStateChangeManagerService'][_0x33c5c5(0x40c)](_0x58b373,{'history':_0x3a5ac6,'collaboration':_0x313679});}};J=Ft([le(0x0,a['Inject'](a[_0x5e93c2(0x41a)])),le(0x1,m['ITransformService']),le(0x2,a['Inject'](b[_0x5e93c2(0x281)]))],J);var Yt=Object[_0x5e93c2(0x2a8)],Wt=(_0x30ce37,_0x1084aa,_0x243544,_0x365102)=>{const _0x27ab25=_0x5e93c2;for(var _0x49ca46=_0x365102>0x1?void 0x0:_0x365102?Yt(_0x1084aa,_0x243544):_0x1084aa,_0x25f114=_0x30ce37[_0x27ab25(0x293)]-0x1,_0x5a3dd6;_0x25f114>=0x0;_0x25f114--)(_0x5a3dd6=_0x30ce37[_0x25f114])&&(_0x49ca46=_0x5a3dd6(_0x49ca46)||_0x49ca46);return _0x49ca46;},Ne=(_0x2afe53,_0x25fab7)=>(_0x2d6b15,_0x3bee4d)=>_0x25fab7(_0x2d6b15,_0x3bee4d,_0x2afe53);let Z=class{constructor(_0x54ee99,_0x352e52){const _0x4d5016=_0x5e93c2;this[_0x4d5016(0x319)]=_0x54ee99,this['_transformService']=_0x352e52;}[_0x5e93c2(0x3e9)](_0x21c5d1){const _0x1a5a53=_0x5e93c2;var _0x9170ca;const _0x4f355e=this['_injector']['get'](Y['DocSelectionManagerService']),_0x4b16ab=(_0x9170ca=_0x4f355e[_0x1a5a53(0x3b8)]())!=null?_0x9170ca:[];if(_0x4b16ab[_0x1a5a53(0x293)]===0x0)return;const _0x5789ee=_0x21c5d1[_0x1a5a53(0x21a)],_0x1074ea=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5789ee,'actions':null,'textRanges':_0x4b16ab}}],_0x494b52=this['_transformService'][_0x1a5a53(0x30e)](_0x21c5d1,_0x1074ea);if(!m[_0x1a5a53(0x193)](_0x494b52))throw _0x494b52['error'];const _0x3505ad=_0x494b52[_0x1a5a53(0x23c)][0x0]['params'][_0x1a5a53(0x1c7)];Array['isArray'](_0x3505ad)&&_0x3505ad[_0x1a5a53(0x293)]&&_0x4f355e[_0x1a5a53(0x380)](_0x3505ad,{'unitId':_0x5789ee,'subUnitId':_0x5789ee},!0x1);}};Z=Wt([Ne(0x0,a[_0x5e93c2(0x1c0)](a[_0x5e93c2(0x41a)])),Ne(0x1,m[_0x5e93c2(0x26b)])],Z);var Vt=Object[_0x5e93c2(0x2a8)],Xt=(_0x5df3ff,_0x9a3ef8,_0x33be66,_0x1da400)=>{const _0x15e72c=_0x5e93c2;for(var _0x23648a=_0x1da400>0x1?void 0x0:_0x1da400?Vt(_0x9a3ef8,_0x33be66):_0x9a3ef8,_0x68ea7=_0x5df3ff[_0x15e72c(0x293)]-0x1,_0x580320;_0x68ea7>=0x0;_0x68ea7--)(_0x580320=_0x5df3ff[_0x68ea7])&&(_0x23648a=_0x580320(_0x23648a)||_0x23648a);return _0x23648a;},N=(_0x554534,_0x18b47c)=>(_0x30a7de,_0xa77869)=>_0x18b47c(_0x30a7de,_0xa77869,_0x554534);let Q=class extends a['Disposable']{constructor(_0xdaeaad,_0x34d6cb,_0x5a4954,_0x323282,_0x5d41a3,_0x440af5,_0x345482,_0x27ecb9){const _0x1a9f14=_0x5e93c2;super(),h(this,_0x1a9f14(0x3f7),new d['BehaviorSubject'](u[_0x1a9f14(0x229)][_0x1a9f14(0x3c1)])),(this['_docStateChangeManagerService']=_0xdaeaad,this[_0x1a9f14(0x318)]=_0x34d6cb,this[_0x1a9f14(0x1ab)]=_0x5a4954,this['_docTransformStateCacheService']=_0x323282,this[_0x1a9f14(0x21c)]=_0x5d41a3,this[_0x1a9f14(0x41e)]=_0x440af5,this['_messageService']=_0x345482,this[_0x1a9f14(0x1de)]=_0x27ecb9,this[_0x1a9f14(0x2da)]());}[_0x5e93c2(0x2da)](){const _0x219e90=_0x5e93c2;this[_0x219e90(0x303)](this[_0x219e90(0x318)][_0x219e90(0x3fb)][_0x219e90(0x369)](_0x2813a2=>{const _0x416fce=_0x219e90,_0x590229=this[_0x416fce(0x1f8)][_0x416fce(0x3fc)]['subscribe'](_0x36808b=>{const _0x1eb406=_0x416fce;if(_0x36808b==null)return;const {unitId:_0x151a6d,redoState:_0x31a89b,commandId:_0x6aace2}=_0x36808b;if(_0x151a6d!==_0x2813a2[_0x1eb406(0x21a)])return;const _0x5d617d={'id':_0x6aace2,'type':a[_0x1eb406(0x2dd)][_0x1eb406(0x2e0)],'params':{'unitId':_0x151a6d,'actions':_0x31a89b[_0x1eb406(0x3c0)],'textRanges':null}};_0x2813a2[_0x1eb406(0x1c4)](_0x5d617d);});if(_0x2813a2[_0x416fce(0x303)](_0x590229),_0x2813a2 instanceof u[_0x416fce(0x2fe)]){const _0x35eee6={'onTransformIME':_0x4d95e2=>this[_0x416fce(0x1ab)][_0x416fce(0x3d4)](_0x4d95e2),'onTransformState':_0x55c1a0=>this['_docTransformStateCacheService'][_0x416fce(0x233)](_0x55c1a0),'onTransformSelections':_0x385764=>this[_0x416fce(0x21c)][_0x416fce(0x3e9)](_0x385764),'onSyncEditingCollabCursor':_0x7a812=>this[_0x416fce(0x41e)]['syncEditingCollabCursor'](_0x7a812),'onTransformRemoteChangesetByIMECache':_0x413236=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x413236),'onTransformRemoteChangesetByStateCache':_0x2a4989=>this['_docTransformStateCacheService'][_0x416fce(0x1a4)](_0x2a4989)};_0x2813a2[_0x416fce(0x3d2)](_0x35eee6);}}));}};Q=Xt([N(0x0,a[_0x5e93c2(0x1c0)](b[_0x5e93c2(0x281)])),N(0x1,a[_0x5e93c2(0x1c0)](u[_0x5e93c2(0x248)])),N(0x2,a[_0x5e93c2(0x1c0)](z)),N(0x3,a[_0x5e93c2(0x1c0)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x5e93c2(0x1c0)](Ce)),N(0x6,T[_0x5e93c2(0x2a2)]),N(0x7,a[_0x5e93c2(0x1c0)](a[_0x5e93c2(0x2b5)]))],Q);var Gt=Object[_0x5e93c2(0x2a8)],Kt=(_0xb0cf47,_0x242626,_0x4280c0,_0x3479a3)=>{const _0x4ef259=_0x5e93c2;for(var _0x10c84e=_0x3479a3>0x1?void 0x0:_0x3479a3?Gt(_0x242626,_0x4280c0):_0x242626,_0x481c80=_0xb0cf47[_0x4ef259(0x293)]-0x1,_0x244df1;_0x481c80>=0x0;_0x481c80--)(_0x244df1=_0xb0cf47[_0x481c80])&&(_0x10c84e=_0x244df1(_0x10c84e)||_0x10c84e);return _0x10c84e;},_e=(_0x573231,_0x116758)=>(_0x205a6d,_0x4f2aaa)=>_0x116758(_0x205a6d,_0x4f2aaa,_0x573231);let ge=class extends a[_0x5e93c2(0x33a)]{constructor(_0x1cf06f,_0x5bb9e8,_0xa457cf){const _0x51036d=_0x5e93c2;super(),h(this,_0x51036d(0x1d4),new Map()),h(this,_0x51036d(0x1f7),new Map()),h(this,_0x51036d(0x1da),!0x1),(this[_0x51036d(0x2be)]=_0x1cf06f,this[_0x51036d(0x321)]=_0x5bb9e8,this[_0x51036d(0x234)]=_0xa457cf);}[_0x5e93c2(0x285)](){const _0x2e1e7e=_0x5e93c2;this[_0x2e1e7e(0x1da)]=!0x0;}[_0x5e93c2(0x23d)](){const _0x56af62=_0x5e93c2;this[_0x56af62(0x1da)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x5e93c2(0x2f0)](){const _0x29448e=_0x5e93c2;this[_0x29448e(0x2db)]()['then'](()=>super[_0x29448e(0x2f0)]());}async['loadOfflineData'](_0xb7ee00){const _0x5d392a=_0x5e93c2;return this[_0x5d392a(0x1da)]?null:this[_0x5d392a(0x321)][_0x5d392a(0x3fe)](u[_0x5d392a(0x327)](_0xb7ee00));}async['saveOfflineData'](_0x14390d,_0x957d37){const _0x9e491d=_0x5e93c2;return!!this[_0x9e491d(0x321)][_0x9e491d(0x1b5)](_0x14390d,_0x957d37);}[_0x5e93c2(0x3c5)](_0x4fdc5e,_0x3c235d,_0x2b5c71,_0x505d15){const _0x6167f5=_0x5e93c2,_0xc1fde8=this[_0x6167f5(0x234)]['getCurrentRevOfUnit'](_0x4fdc5e);this[_0x6167f5(0x1d4)][_0x6167f5(0x3f1)](_0x4fdc5e,{'unitID':_0x4fdc5e,'type':_0x3c235d,'awaitingChangeset':_0x2b5c71,'mutations':_0x505d15,'rev':_0xc1fde8}),this['_saveTaskMap'][_0x6167f5(0x395)](_0x4fdc5e)||this[_0x6167f5(0x345)](_0x4fdc5e);}[_0x5e93c2(0x345)](_0x1cac09){const _0x2af72c=_0x5e93c2,_0x300119=this[_0x2af72c(0x33d)]();_0x300119===0x0?this[_0x2af72c(0x22a)](_0x1cac09):this[_0x2af72c(0x1f7)]['set'](_0x1cac09,setTimeout(()=>this['_saveCache'](_0x1cac09),_0x300119));}[_0x5e93c2(0x33d)](){const _0x1ea3df=_0x5e93c2;var _0x4e98eb;return(_0x4e98eb=this[_0x1ea3df(0x2be)][_0x1ea3df(0x24b)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x4e98eb:u[_0x1ea3df(0x307)];}[_0x5e93c2(0x22a)](_0xcb3f07){const _0x2a0eb2=_0x5e93c2,_0x1a902d=this[_0x2a0eb2(0x1f7)][_0x2a0eb2(0x2a3)](_0xcb3f07);return _0x1a902d!==void 0x0&&window[_0x2a0eb2(0x1df)](_0x1a902d),this[_0x2a0eb2(0x321)][_0x2a0eb2(0x1b5)](u[_0x2a0eb2(0x327)](_0xcb3f07),this['_cachedData'][_0x2a0eb2(0x2a3)](_0xcb3f07))[_0x2a0eb2(0x2b9)](()=>this[_0x2a0eb2(0x1f7)]['delete'](_0xcb3f07));}async['exhaustSavingTask'](){const _0x4c1a5c=_0x5e93c2,_0xf1c32b=[];this[_0x4c1a5c(0x1f7)][_0x4c1a5c(0x2a5)]((_0x1e1272,_0x3e91ae)=>{const _0x51dee4=_0x4c1a5c;window['clearTimeout'](_0x1e1272),_0xf1c32b[_0x51dee4(0x298)](this[_0x51dee4(0x22a)](_0x3e91ae)['then'](()=>{const _0x1270e9=_0x51dee4;this[_0x1270e9(0x1f7)][_0x1270e9(0x334)](_0x3e91ae);}));}),await Promise[_0x4c1a5c(0x3db)](_0xf1c32b);}};function _0x286c(_0x1c67a2,_0x193943){const _0x204815=_0x2048();return _0x286c=function(_0x286cdb,_0x23f7f2){_0x286cdb=_0x286cdb-0x193;let _0x2ea11c=_0x204815[_0x286cdb];return _0x2ea11c;},_0x286c(_0x1c67a2,_0x193943);}ge=Kt([_e(0x0,a[_0x5e93c2(0x23b)]),_e(0x1,a[_0x5e93c2(0x2d1)]),_e(0x2,a[_0x5e93c2(0x1c0)](m[_0x5e93c2(0x40e)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x29d193=_0x5e93c2;super(),h(this,_0x29d193(0x353)),this[_0x29d193(0x353)]=d['fromEvent'](window,_0x29d193(0x1fc))['pipe'](d[_0x29d193(0x301)](this['dispose$']),d['shareReplay'](0x1),d['mapTo'](void 0x0));}[_0x5e93c2(0x37f)](_0x435f79,_0x255b61,_0x3166cb=!0x1){const _0x46e6bf=_0x5e93c2,_0x25220a=new URL(window[_0x46e6bf(0x2b4)][_0x46e6bf(0x199)]);_0x25220a['searchParams']['set'](_0x435f79,_0x255b61),_0x3166cb?window['history'][_0x46e6bf(0x31b)]('','',_0x25220a['toString']()):window[_0x46e6bf(0x221)][_0x46e6bf(0x2fb)]('','',_0x25220a[_0x46e6bf(0x1e2)]());}[_0x5e93c2(0x1e4)](_0x10d638,_0x3c0915=!0x1){const _0x264717=_0x5e93c2,_0x5ab8a9=new URL(window['location'][_0x264717(0x199)]);_0x5ab8a9[_0x264717(0x3a3)][_0x264717(0x334)](_0x10d638),_0x3c0915?window[_0x264717(0x221)][_0x264717(0x31b)]('','',_0x5ab8a9[_0x264717(0x1e2)]()):window[_0x264717(0x221)]['pushState']('','',_0x5ab8a9[_0x264717(0x1e2)]());}[_0x5e93c2(0x300)](_0x24eb2b){const _0x3263df=_0x5e93c2;var _0x52b3aa;return(_0x52b3aa=new URL(window[_0x3263df(0x2b4)]['href'])[_0x3263df(0x3a3)][_0x3263df(0x2a3)](_0x24eb2b))!=null?_0x52b3aa:void 0x0;}}var qt=Object['defineProperty'],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x2372e1,_0x5ad8d0,_0x241e34)=>_0x5ad8d0 in _0x2372e1?qt(_0x2372e1,_0x5ad8d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x241e34}):_0x2372e1[_0x5ad8d0]=_0x241e34,Zt=(_0x512c28,_0x36f3d1,_0x42eaa2,_0x3131ad)=>{const _0x5c1020=_0x5e93c2;for(var _0x13177e=_0x3131ad>0x1?void 0x0:_0x3131ad?zt(_0x36f3d1,_0x42eaa2):_0x36f3d1,_0x1ebe97=_0x512c28[_0x5c1020(0x293)]-0x1,_0x5cfa82;_0x1ebe97>=0x0;_0x1ebe97--)(_0x5cfa82=_0x512c28[_0x1ebe97])&&(_0x13177e=_0x5cfa82(_0x13177e)||_0x13177e);return _0x13177e;},he=(_0x132a06,_0x5099c5)=>(_0x50df8d,_0x3e35b5)=>_0x5099c5(_0x50df8d,_0x3e35b5,_0x132a06),Qt=(_0x3a51ff,_0x2fd096,_0x32b4dd)=>Jt(_0x3a51ff,_0x2fd096+'',_0x32b4dd);const es=_0x5e93c2(0x323);exports[_0x5e93c2(0x255)]=class extends a[_0x5e93c2(0x261)]{constructor(_0x354916=Ue,_0x5285e9,_0x3d3f5b,_0x5e5ea5){const _0x2c9567=_0x5e93c2;super(),this[_0x2c9567(0x31c)]=_0x354916,this[_0x2c9567(0x235)]=_0x5285e9,this[_0x2c9567(0x319)]=_0x3d3f5b,this['_configService']=_0x5e5ea5;const {..._0x30d90e}=a[_0x2c9567(0x290)]({},Ue,this['_config']);this[_0x2c9567(0x2be)][_0x2c9567(0x32c)]($t,_0x30d90e);}['onStarting'](){const _0x409bce=_0x5e93c2;this[_0x409bce(0x223)](),this['_initDependencies']();}[_0x5e93c2(0x34d)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x8df05=_0x5e93c2;var _0x24b7fd;const _0x3f07a5=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x8df05(0x392)],{'useClass':G[_0x8df05(0x3ed)]}],[u[_0x8df05(0x2c5)],{'useClass':ge}],[exports[_0x8df05(0x3b7)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this[_0x8df05(0x319)],a[_0x8df05(0x2b0)](_0x3f07a5,(_0x24b7fd=this[_0x8df05(0x31c)])==null?void 0x0:_0x24b7fd['override']));}['_registerRenderDependencies'](){const _0x462d8d=_0x5e93c2;this['disposeWithMe'](this[_0x462d8d(0x235)]['registerRenderModule'](a[_0x462d8d(0x2ff)][_0x462d8d(0x270)],[Ie])),this[_0x462d8d(0x303)](this['_renderManagerService'][_0x462d8d(0x1bd)](a['UniverInstanceType'][_0x462d8d(0x400)],[ve]));}[_0x5e93c2(0x2c8)](){const _0x594f59=_0x5e93c2;a[_0x594f59(0x2fa)](this[_0x594f59(0x319)],[[x],[exports[_0x594f59(0x3b7)]],[Q],[q],[exports[_0x594f59(0x337)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x5e93c2(0x338),es),exports[_0x5e93c2(0x255)]=Zt([a[_0x5e93c2(0x241)](u[_0x5e93c2(0x339)]),he(0x1,p[_0x5e93c2(0x215)]),he(0x2,a[_0x5e93c2(0x1c0)](a[_0x5e93c2(0x41a)])),he(0x3,a[_0x5e93c2(0x23b)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x5e93c2(0x2a8)],ss=(_0x4ac6fb,_0x4425ff,_0x3e8f81,_0x4d24c0)=>{const _0x2f4df4=_0x5e93c2;for(var _0x2bb4d1=_0x4d24c0>0x1?void 0x0:_0x4d24c0?ts(_0x4425ff,_0x3e8f81):_0x4425ff,_0x4c45fd=_0x4ac6fb[_0x2f4df4(0x293)]-0x1,_0x3bd53f;_0x4c45fd>=0x0;_0x4c45fd--)(_0x3bd53f=_0x4ac6fb[_0x4c45fd])&&(_0x2bb4d1=_0x3bd53f(_0x2bb4d1)||_0x2bb4d1);return _0x2bb4d1;},F=(_0x151821,_0x59b7cf)=>(_0x132d81,_0x3a7fe2)=>_0x59b7cf(_0x132d81,_0x3a7fe2,_0x151821);exports[_0x5e93c2(0x372)]=class extends u[_0x5e93c2(0x335)]{constructor(_0x1312ac,_0x4441c5,_0x2633d2,_0x1133fd,_0x37dbca){super(_0x1312ac,_0x4441c5,_0x2633d2,_0x1133fd,_0x37dbca);}async['createSocket'](_0x4f6570){const _0x4a8853=_0x5e93c2,_0x441fc0=await this[_0x4a8853(0x36b)](),_0x2b5441=this[_0x4a8853(0x368)](_0x4f6570,_0x441fc0);return this[_0x4a8853(0x1ea)](_0x2b5441);}[_0x5e93c2(0x368)](_0x42587a,_0xfd8123){const _0x426a0d=_0x5e93c2,_0x80e8e8=typeof window>'u'?new URL(_0x42587a):new URL(_0x42587a,window[_0x426a0d(0x2b4)][_0x426a0d(0x24e)]);_0x80e8e8['searchParams'][_0x426a0d(0x3f1)](_0x426a0d(0x2d7),_0xfd8123);const _0x41b81d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x426a0d(0x404)]);return _0x41b81d[_0x426a0d(0x2a3)](_0x426a0d(0x37b))&&_0x80e8e8['searchParams'][_0x426a0d(0x3f1)](_0x426a0d(0x37b),_0x41b81d[_0x426a0d(0x2a3)](_0x426a0d(0x37b))),_0x80e8e8['toString']();}async[_0x5e93c2(0x36b)](){const _0x13c156=_0x5e93c2;var _0x58c43a,_0x572e01,_0x3232f7;const _0x2cfaa2=this['_configService'][_0x13c156(0x24b)](u[_0x13c156(0x2a6)]),_0x2d34ff=(_0x58c43a=_0x2cfaa2==null?void 0x0:_0x2cfaa2[_0x13c156(0x3c9)])!=null?_0x58c43a:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3232f7=(_0x572e01=(await this[_0x13c156(0x1c3)][_0x13c156(0x2a3)](_0x2d34ff,{'headers':{'Content-Type':'application/json'}}))[_0x13c156(0x25b)])==null?void 0x0:_0x572e01[_0x13c156(0x20b)])!=null?_0x3232f7:'';}},exports[_0x5e93c2(0x372)]=ss([F(0x0,a[_0x5e93c2(0x1c0)](a[_0x5e93c2(0x41a)])),F(0x1,a[_0x5e93c2(0x1c0)](G['HTTPService'])),F(0x2,a['IConfigService']),F(0x3,a['ILogService']),F(0x4,m[_0x5e93c2(0x209)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x5e93c2(0x324);class is extends a[_0x5e93c2(0x33a)]{constructor(){const _0x301271=_0x5e93c2;super(),h(this,_0x301271(0x39f),a[_0x301271(0x398)]()),h(this,_0x301271(0x356),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x301271(0x247),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x301271(0x393),new Map()),this[_0x301271(0x1a5)]();}['dispose'](){const _0x128334=_0x5e93c2;super['dispose'](),this[_0x128334(0x225)][_0x128334(0x2a5)]((_0x519db3,_0x314790)=>this[_0x128334(0x309)](_0x314790)),this[_0x128334(0x247)]&&window[_0x128334(0x3a2)](this[_0x128334(0x247)]);}[_0x5e93c2(0x2af)](_0x5e3fbb){const _0x2e4576=_0x5e93c2;return this['_ensureSubject'](_0x5e3fbb)[_0x2e4576(0x3a8)](d[_0x2e4576(0x3a1)]());}[_0x5e93c2(0x33b)](_0x19f7e7){const _0x2fe8df=_0x5e93c2;this[_0x2fe8df(0x356)][_0x2fe8df(0x1b0)]===0x0&&this[_0x2fe8df(0x3f5)](),this[_0x2fe8df(0x356)][_0x2fe8df(0x30a)](_0x19f7e7),this[_0x2fe8df(0x24c)]({'type':0x0,'memberID':this[_0x2fe8df(0x39f)],'unitIDs':[_0x19f7e7],'isForwarded':!0x1});}[_0x5e93c2(0x1f9)](_0x3adfba){const _0xd42e39=_0x5e93c2;this['_selfUnitIDs'][_0xd42e39(0x334)](_0x3adfba),this[_0xd42e39(0x356)]['size']===0x0&&this['_heartbeatTimer']&&window[_0xd42e39(0x3a2)](this[_0xd42e39(0x247)]);}[_0x5e93c2(0x1a5)](){const _0x586b8c=_0x5e93c2;this[_0x586b8c(0x303)](a[_0x586b8c(0x230)](d['fromEvent'](window,'storage')['subscribe'](_0x79e76b=>{const _0x3912a2=_0x586b8c;if(_0x79e76b['key']!==Le||!_0x79e76b[_0x3912a2(0x28a)])return;const _0xf5107b=JSON[_0x3912a2(0x211)](_0x79e76b[_0x3912a2(0x28a)]);this[_0x3912a2(0x2b3)](_0xf5107b);}))),window[_0x586b8c(0x27b)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x586b8c(0x39f)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x5e93c2(0x2b3)](_0x4d7f15){const _0xe2bb52=_0x5e93c2;switch(_0x4d7f15[_0xe2bb52(0x295)]){case 0x0:this[_0xe2bb52(0x3be)](_0x4d7f15);break;case 0x1:this[_0xe2bb52(0x2f5)](_0x4d7f15);break;case 0x2:this[_0xe2bb52(0x278)](_0x4d7f15);break;}}[_0x5e93c2(0x3be)](_0xf0289b){const _0x10b97a=_0x5e93c2,{unitIDs:_0x6c85fb,memberID:_0x3e7a5d,isForwarded:_0x250ea5}=_0xf0289b;_0x6c85fb[_0x10b97a(0x2a5)](_0x371b8e=>{const _0x1d23cc=_0x10b97a;if(!_0x250ea5&&this[_0x1d23cc(0x1f1)][_0x1d23cc(0x395)](_0x371b8e)&&this[_0x1d23cc(0x2eb)](_0x371b8e)['next'](u[_0x1d23cc(0x22b)][_0x1d23cc(0x262)]),!this[_0x1d23cc(0x1f1)][_0x1d23cc(0x395)](_0x371b8e)||!this[_0x1d23cc(0x1f1)][_0x1d23cc(0x2a3)](_0x371b8e)[_0x1d23cc(0x395)](_0x3e7a5d)){const _0x58579a=this[_0x1d23cc(0x1f1)]['get'](_0x371b8e)||new Set();_0x58579a[_0x1d23cc(0x30a)](_0x3e7a5d),this[_0x1d23cc(0x1f1)][_0x1d23cc(0x3f1)](_0x371b8e,_0x58579a),this[_0x1d23cc(0x2f6)](_0x3e7a5d);}}),_0x250ea5||this[_0x10b97a(0x24c)]({'type':0x0,'memberID':this[_0x10b97a(0x39f)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x5e93c2(0x2f6)](_0x42dd61){const _0x1c744b=_0x5e93c2;this[_0x1c744b(0x309)](_0x42dd61);const _0x524213=window['setTimeout'](()=>{const _0x1df215=_0x1c744b;this[_0x1df215(0x1f1)][_0x1df215(0x2a5)](_0x3c2c35=>{const _0xca16dc=_0x1df215;_0x3c2c35[_0xca16dc(0x334)](_0x42dd61);});},Me*0x2);this[_0x1c744b(0x225)][_0x1c744b(0x3f1)](_0x42dd61,_0x524213);}['_removeClearOtherTimer'](_0x1038cb){const _0x4c4ac2=_0x5e93c2;if(this[_0x4c4ac2(0x225)][_0x4c4ac2(0x395)](_0x1038cb)){const _0x5592fe=this[_0x4c4ac2(0x225)][_0x4c4ac2(0x2a3)](_0x1038cb);_0x5592fe&&window['clearTimeout'](_0x5592fe),this[_0x4c4ac2(0x225)][_0x4c4ac2(0x3f1)](_0x1038cb,null);}}[_0x5e93c2(0x2f5)](_0x458e67){const _0x21ad5b=_0x5e93c2,{memberID:_0x451ed0,unitIDs:_0x1e7c45}=_0x458e67;_0x1e7c45[_0x21ad5b(0x2a5)](_0x77937d=>{const _0x421d22=_0x21ad5b;var _0x54aa60;const _0x87246a=this[_0x421d22(0x1f1)][_0x421d22(0x2a3)](_0x77937d);_0x87246a&&(_0x87246a[_0x421d22(0x334)](_0x451ed0),(_0x54aa60=this[_0x421d22(0x2eb)](_0x77937d))==null||_0x54aa60[_0x421d22(0x374)](_0x87246a[_0x421d22(0x1b0)]===0x0?u[_0x421d22(0x22b)][_0x421d22(0x424)]:u['UnitStatus'][_0x421d22(0x262)]));}),this[_0x21ad5b(0x309)](_0x451ed0);}[_0x5e93c2(0x278)](_0x195925){const _0x444e80=_0x5e93c2;this[_0x444e80(0x2f6)](_0x195925['memberID']);}['_send'](_0x48200a){const _0x4e7d2a=_0x5e93c2;localStorage['setItem'](Le,JSON[_0x4e7d2a(0x196)](_0x48200a));}[_0x5e93c2(0x3f5)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0xeb2ba3=_0x286c;this[_0xeb2ba3(0x24c)]({'type':0x2,'memberID':this[_0xeb2ba3(0x39f)]});},Me);}[_0x5e93c2(0x2eb)](_0x3fb76b){const _0x7ae529=_0x5e93c2;return this[_0x7ae529(0x393)][_0x7ae529(0x395)](_0x3fb76b)||this['_unitStatus'][_0x7ae529(0x3f1)](_0x3fb76b,new d[(_0x7ae529(0x3bb))](u[_0x7ae529(0x22b)][_0x7ae529(0x424)])),this[_0x7ae529(0x393)][_0x7ae529(0x2a3)](_0x3fb76b);}}var Be=(_0x4f70e2=>(_0x4f70e2[_0x4f70e2['UNDEFINED']=0x0]=_0x5e93c2(0x1d7),_0x4f70e2[_0x4f70e2['OK']=0x1]='OK',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x37e)]=0x2]='INTERNAL_ERROR',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x2e8)]=0x3]=_0x5e93c2(0x2e8),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x228)]=0x4]=_0x5e93c2(0x228),_0x4f70e2[_0x4f70e2['UNAUTHENTICATED']=0x5]=_0x5e93c2(0x2e2),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x2f2)]=0x6]=_0x5e93c2(0x2f2),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x206)]=0x7]=_0x5e93c2(0x206),_0x4f70e2[_0x4f70e2['TOO_MANY_REQUESTS']=0x8]=_0x5e93c2(0x2df),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x2e6)]=0x9]='COMPLETION_FINISHED',_0x4f70e2[_0x4f70e2['LOGIN_FAILED']=0xa]=_0x5e93c2(0x2ca),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x40f)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x1b9)]=0x1771]=_0x5e93c2(0x1b9),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x407)]=0x1772]=_0x5e93c2(0x407),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x27c)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x366)]=0x1b59]=_0x5e93c2(0x366),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x2c0)]=0x1b5a]=_0x5e93c2(0x2c0),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x27a)]=0x1b5b]=_0x5e93c2(0x27a),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x310)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x265)]=0x1b5d]='APPLY_DUPLICATED',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x3f0)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x3d8)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4f70e2[_0x4f70e2['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5e93c2(0x266),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x306)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x414)]=0x232c]=_0x5e93c2(0x414),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x2d3)]=0x232d]=_0x5e93c2(0x2d3),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x220)]=0x2711]=_0x5e93c2(0x220),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x375)]=0x2712]=_0x5e93c2(0x375),_0x4f70e2[_0x4f70e2['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5e93c2(0x20e),_0x4f70e2[_0x4f70e2['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5e93c2(0x3f4),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x2ad)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x330)]=0x271b]=_0x5e93c2(0x330),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x200)]=0x271c]=_0x5e93c2(0x200),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x2d5)]=0x271d]=_0x5e93c2(0x2d5),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x1ce)]=0x271e]=_0x5e93c2(0x1ce),_0x4f70e2[_0x4f70e2['YUUMI_AI_RUN_FAILED']=0x271f]=_0x5e93c2(0x312),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x3d0)]=0x2af9]=_0x5e93c2(0x3d0),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x38f)]=0x2ee1]=_0x5e93c2(0x38f),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x1ba)]=0x2ee2]='INVALID_INVITE_CODE',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x3ff)]=0x2ee3]=_0x5e93c2(0x3ff),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x420)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x4f70e2[_0x4f70e2[_0x5e93c2(0x2e7)]=0x2ee5]=_0x5e93c2(0x2e7),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x1bf)]=0x32c9]=_0x5e93c2(0x1bf),_0x4f70e2[_0x4f70e2[_0x5e93c2(0x1e0)]=0x32ca]=_0x5e93c2(0x1e0),_0x4f70e2[_0x4f70e2['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x5e93c2(0x1eb),_0x4f70e2[_0x4f70e2['UNRECOGNIZED']=-0x1]=_0x5e93c2(0x396),_0x4f70e2))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x399a1b,_0x21e376,_0xb12d08,_0xdd71c9)=>{const _0x5dc097=_0x5e93c2;for(var _0x36cabf=_0xdd71c9>0x1?void 0x0:_0xdd71c9?ns(_0x21e376,_0xb12d08):_0x21e376,_0x236011=_0x399a1b[_0x5dc097(0x293)]-0x1,_0x38c9e9;_0x236011>=0x0;_0x236011--)(_0x38c9e9=_0x399a1b[_0x236011])&&(_0x36cabf=_0x38c9e9(_0x36cabf)||_0x36cabf);return _0x36cabf;},ue=(_0x7de068,_0x1f2082)=>(_0x5a9bda,_0x24cf43)=>_0x1f2082(_0x5a9bda,_0x24cf43,_0x7de068);exports[_0x5e93c2(0x423)]=class extends a[_0x5e93c2(0x33a)]{constructor(_0x34d4da,_0x2f7f90,_0x38dd01){const _0x55aa21=_0x5e93c2;super(),this[_0x55aa21(0x1a7)]=_0x34d4da,this[_0x55aa21(0x1c3)]=_0x2f7f90,this[_0x55aa21(0x2be)]=_0x38dd01;}async[_0x5e93c2(0x23f)](_0x3c902d,_0x1f08de,_0x4260b6,..._0x5bd12c){const _0x2a2ef2=_0x5e93c2;var _0xda024a,_0x5f712,_0x5f51b7,_0x447b10;const _0x3e090a=this['_instanceService'][_0x2a2ef2(0x1d3)]();if(!_0x3e090a)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x18d6bf=((_0xda024a=this[_0x2a2ef2(0x2be)][_0x2a2ef2(0x24b)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0xda024a:u[_0x2a2ef2(0x2bb)])+'/'+_0x3c902d+_0x2a2ef2(0x373)+_0x1f08de,_0x58f5b4=new URL(window[_0x2a2ef2(0x2b4)][_0x2a2ef2(0x199)]),_0x14f15e={'scriptId':_0x3c902d,'runId':(_0x5f712=_0x58f5b4[_0x2a2ef2(0x3a3)]['get'](_0x2a2ef2(0x37b)))!=null?_0x5f712:'','function':_0x1f08de,'unitId':_0x3e090a[_0x2a2ef2(0x1e8)](),'argsOfFunction':JSON[_0x2a2ef2(0x196)](_0x5bd12c),'invokeId':(_0x5f51b7=_0x4260b6['invokeId'])!=null?_0x5f51b7:'','executionId':(_0x447b10=_0x4260b6[_0x2a2ef2(0x20d)])!=null?_0x447b10:''};try{const _0x1383f7=await this[_0x2a2ef2(0x1c3)][_0x2a2ef2(0x36d)](_0x18d6bf,{'body':_0x14f15e});return _0x1383f7['body'][_0x2a2ef2(0x360)]&&_0x1383f7[_0x2a2ef2(0x25b)][_0x2a2ef2(0x360)][_0x2a2ef2(0x1e9)]!==Be['OK']?_0x2a2ef2(0x3ef):_0x1383f7['body'][_0x2a2ef2(0x386)];}catch{return'Failed';}}},exports[_0x5e93c2(0x423)]=rs([ue(0x0,a[_0x5e93c2(0x3e4)]),ue(0x1,a[_0x5e93c2(0x1c0)](G[_0x5e93c2(0x382)])),ue(0x2,a[_0x5e93c2(0x23b)])],exports['RemoteUniscriptService']),exports[_0x5e93c2(0x315)]=xe,exports['IURLService']=be,exports[_0x5e93c2(0x2ec)]=Ae,exports[_0x5e93c2(0x26c)]=is,exports[_0x5e93c2(0x3cf)]=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;