@univerjs-pro/collaboration-client 0.4.0-nightly.202410171606 → 0.4.0-nightly.202410290723

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/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x24c410=_0x3b7c;(function(_0xabd5cf,_0x27345c){const _0x593b54=_0x3b7c,_0x315401=_0xabd5cf();while(!![]){try{const _0x4c87a6=parseInt(_0x593b54(0x42b))/0x1+parseInt(_0x593b54(0x4e2))/0x2+parseInt(_0x593b54(0x585))/0x3+-parseInt(_0x593b54(0x5a5))/0x4*(parseInt(_0x593b54(0x1dd))/0x5)+-parseInt(_0x593b54(0x4cd))/0x6+parseInt(_0x593b54(0x542))/0x7+parseInt(_0x593b54(0x2b4))/0x8*(-parseInt(_0x593b54(0x49f))/0x9);if(_0x4c87a6===_0x27345c)break;else _0x315401['push'](_0x315401['shift']());}catch(_0x5dffad){_0x315401['push'](_0x315401['shift']());}}}(_0x1183,0xa3d40));var Ft=Object[_0x24c410(0x5d0)],Gt=(_0x371224,_0x4cd725,_0x3a08e3)=>_0x4cd725 in _0x371224?Ft(_0x371224,_0x4cd725,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a08e3}):_0x371224[_0x4cd725]=_0x3a08e3,u=(_0x228334,_0x59b69d,_0xcc3292)=>Gt(_0x228334,typeof _0x59b69d!='symbol'?_0x59b69d+'':_0x59b69d,_0xcc3292);Object[_0x24c410(0x5d0)](exports,Symbol[_0x24c410(0x4ad)],{'value':_0x24c410(0x201)});const a=require(_0x24c410(0x530)),v=require(_0x24c410(0x395)),E=require(_0x24c410(0x376)),X=require(_0x24c410(0x58d)),A=require(_0x24c410(0x5db)),w=require(_0x24c410(0x593)),_=require(_0x24c410(0x21a)),Yt=require(_0x24c410(0x261)),N=require(_0x24c410(0x327)),C=require('@univerjs/sheets'),O=require(_0x24c410(0x354)),se=require('@univerjs/docs'),j=require(_0x24c410(0x318)),et=require('@univerjs/engine-formula'),te=require(_0x24c410(0x5ee)),P=require(_0x24c410(0x4ed)),Kt=require(_0x24c410(0x280)),Xt=require(_0x24c410(0x499)),St=_0x24c410(0x207),qt='/universer-api/snapshot',vt=_0x24c410(0x36c),zt=_0x24c410(0x27d),Jt=0x7d0,gt='COLLAB_WEB_SOCKET_URL',Zt=_0x24c410(0x380),mt='HEARTBEAT_INTERVAL',Qt=0x7530,Ge=_0x24c410(0x394),ft=0x4e20,es=0x4e20,It=_0x24c410(0x3a8),ts=0x3,pt=_0x24c410(0x47e),ss=0x3e8,Ct=_0x24c410(0x331),is='/universer-api/comb',Et=_0x24c410(0x5ca),ns='/universer-api/oidc/authpage';var bt=(_0x48935f=>(_0x48935f[_0x48935f['UNDEFINED']=0x0]=_0x24c410(0x1f7),_0x48935f[_0x48935f['OK']=0x1]='OK',_0x48935f[_0x48935f[_0x24c410(0x29c)]=0x2]='INTERNAL_ERROR',_0x48935f[_0x48935f[_0x24c410(0x503)]=0x3]=_0x24c410(0x503),_0x48935f[_0x48935f[_0x24c410(0x5b6)]=0x4]=_0x24c410(0x5b6),_0x48935f[_0x48935f[_0x24c410(0x29a)]=0x5]='UNAUTHENTICATED',_0x48935f[_0x48935f[_0x24c410(0x320)]=0x6]='ALREADY_EXISTS',_0x48935f[_0x48935f[_0x24c410(0x3ef)]=0x7]=_0x24c410(0x3ef),_0x48935f[_0x48935f[_0x24c410(0x360)]=0x8]=_0x24c410(0x360),_0x48935f[_0x48935f['COMPLETION_FINISHED']=0x9]=_0x24c410(0x407),_0x48935f[_0x48935f[_0x24c410(0x475)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x48935f[_0x48935f[_0x24c410(0x4e0)]=0x1771]=_0x24c410(0x4e0),_0x48935f[_0x48935f['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x24c410(0x316),_0x48935f[_0x48935f['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x24c410(0x2e3),_0x48935f[_0x48935f[_0x24c410(0x2c9)]=0x1b59]=_0x24c410(0x2c9),_0x48935f[_0x48935f[_0x24c410(0x3c9)]=0x1b5a]=_0x24c410(0x3c9),_0x48935f[_0x48935f[_0x24c410(0x46a)]=0x1b5b]=_0x24c410(0x46a),_0x48935f[_0x48935f['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x24c410(0x33b),_0x48935f[_0x48935f[_0x24c410(0x1fa)]=0x1b5d]=_0x24c410(0x1fa),_0x48935f[_0x48935f[_0x24c410(0x3c4)]=0x1f41]=_0x24c410(0x3c4),_0x48935f[_0x48935f[_0x24c410(0x233)]=0x2329]=_0x24c410(0x233),_0x48935f[_0x48935f[_0x24c410(0x385)]=0x232a]=_0x24c410(0x385),_0x48935f[_0x48935f[_0x24c410(0x447)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x48935f[_0x48935f['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x24c410(0x212),_0x48935f[_0x48935f[_0x24c410(0x361)]=0x232d]=_0x24c410(0x361),_0x48935f[_0x48935f['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x24c410(0x451),_0x48935f[_0x48935f[_0x24c410(0x240)]=0x2712]=_0x24c410(0x240),_0x48935f[_0x48935f['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x48935f[_0x48935f['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x24c410(0x2ba),_0x48935f[_0x48935f[_0x24c410(0x5ae)]=-0x1]=_0x24c410(0x5ae),_0x48935f))(bt||{}),$=(_0x226069=>(_0x226069[_0x226069[_0x24c410(0x246)]=0x0]='UNIVER_UNKNOWN',_0x226069[_0x226069[_0x24c410(0x489)]=0x1]=_0x24c410(0x489),_0x226069[_0x226069[_0x24c410(0x236)]=0x2]=_0x24c410(0x236),_0x226069[_0x226069[_0x24c410(0x28f)]=0x3]='UNIVER_SLIDE',_0x226069[_0x226069[_0x24c410(0x5b1)]=0x4]=_0x24c410(0x5b1),_0x226069[_0x226069[_0x24c410(0x5ae)]=-0x1]='UNRECOGNIZED',_0x226069))($||{}),b=(_0x32da05=>(_0x32da05[_0x32da05['UNKNOWN_CMD']=0x0]=_0x24c410(0x52b),_0x32da05[_0x32da05[_0x24c410(0x303)]=0x1]='HELLO',_0x32da05[_0x32da05['JOIN']=0x2]=_0x24c410(0x5d7),_0x32da05[_0x32da05[_0x24c410(0x2f2)]=0x3]=_0x24c410(0x2f2),_0x32da05[_0x32da05['INGEST']=0x4]=_0x24c410(0x50f),_0x32da05[_0x32da05[_0x24c410(0x3d8)]=0x5]='HEARTBEAT',_0x32da05[_0x32da05[_0x24c410(0x219)]=0x6]=_0x24c410(0x219),_0x32da05[_0x32da05[_0x24c410(0x5ae)]=-0x1]=_0x24c410(0x5ae),_0x32da05))(b||{}),Ye=(_0x3d74c1=>(_0x3d74c1[_0x3d74c1['UNKNOWN_CODE']=0x0]=_0x24c410(0x4c9),_0x3d74c1[_0x3d74c1['OK']=0x1]='OK',_0x3d74c1[_0x3d74c1[_0x24c410(0x250)]=0x2]=_0x24c410(0x250),_0x3d74c1[_0x3d74c1['UNRECOGNIZED']=-0x1]=_0x24c410(0x5ae),_0x3d74c1))(Ye||{}),Tt=(_0x2461f3=>(_0x2461f3[_0x2461f3[_0x24c410(0x311)]=0x0]=_0x24c410(0x311),_0x2461f3[_0x2461f3[_0x24c410(0x358)]=0x1]='HttpImport',_0x2461f3[_0x2461f3['HttpExport']=0x2]=_0x24c410(0x302),_0x2461f3[_0x2461f3[_0x24c410(0x335)]=0x3]=_0x24c410(0x335),_0x2461f3[_0x2461f3[_0x24c410(0x4d4)]=0x4]=_0x24c410(0x4d4),_0x2461f3[_0x2461f3[_0x24c410(0x5ae)]=-0x1]=_0x24c410(0x5ae),_0x2461f3))(Tt||{});const L=_0x24c410(0x24f),rs={};function Rt(_0x5d8350){const _0x377fdf=_0x24c410;var _0x41f045,_0x16ba7f,_0x2a1219,_0x89f6af;const _0x959b3d=_0x5d8350['data'],_0x9ce7c0=JSON['parse'](_0x959b3d);switch(_0x9ce7c0[_0x377fdf(0x559)]){case b[_0x377fdf(0x3d8)]:case b[_0x377fdf(0x303)]:{const _0x21cabd=_0x9ce7c0[_0x377fdf(0x5bd)];return{..._0x9ce7c0,'data':_0x21cabd,'cmd':_0x9ce7c0[_0x377fdf(0x559)]};}case b[_0x377fdf(0x5d7)]:{const _0x22f74a=_0x9ce7c0['joinRsp'];return{..._0x9ce7c0,'data':_0x22f74a,'cmd':_0x9ce7c0['cmd']};}case b[_0x377fdf(0x219)]:{const _0x3f9031=_0x9ce7c0['collaMsg'];switch(_0x3f9031[_0x377fdf(0x3b1)]){case _['CollaborationEvent'][_0x377fdf(0x3f5)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':(_0x41f045=_0x3f9031[_0x377fdf(0x4f0)])==null?void 0x0:_0x41f045['cs']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x297)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':(_0x16ba7f=_0x3f9031['csAckEvent'])==null?void 0x0:_0x16ba7f['cs']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x535)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':(_0x2a1219=_0x3f9031[_0x377fdf(0x4e8)])==null?void 0x0:_0x2a1219['cs']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x3a2)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':(_0x89f6af=_0x3f9031['csRejEvent'])==null?void 0x0:_0x89f6af['cs']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _['CollaborationEvent'][_0x377fdf(0x27a)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031['updateCursorEvent']},'cmd':_0x9ce7c0['cmd']};case _['CollaborationEvent'][_0x377fdf(0x368)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x48c)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x45f)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x58b)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x2bc)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x377fdf(0x4f8)][_0x377fdf(0x292)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031['liveShareOperation']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x2bc)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x235)]:return{..._0x9ce7c0,'data':_0x3f9031,'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x525)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031['commentUpdateEvent']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _['CollaborationEvent'][_0x377fdf(0x43f)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x3da)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _['CollaborationEvent'][_0x377fdf(0x3db)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x441)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};default:return _0x9ce7c0;}}default:return _0x9ce7c0;}}function Ot(_0x37aa5b){const _0x1c4737=_0x24c410;switch(_0x37aa5b[_0x1c4737(0x559)]){case b['HEARTBEAT']:case b[_0x1c4737(0x303)]:return JSON[_0x1c4737(0x34b)]({'cmd':_0x37aa5b['cmd'],'routeKey':_0x37aa5b[_0x1c4737(0x3f9)]});case b[_0x1c4737(0x50f)]:{let _0x18a57a;switch(_0x37aa5b['data'][_0x1c4737(0x3b1)]){case _['CollaborationEvent'][_0x1c4737(0x27a)]:{_0x18a57a={'eventID':_['CollaborationEvent'][_0x1c4737(0x27a)],'updateCursorEvent':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x486)]};break;}case _['CollaborationEvent'][_0x1c4737(0x45f)]:{_0x18a57a={'eventID':_[_0x1c4737(0x4f8)][_0x1c4737(0x45f)],'leaveEvent':_0x37aa5b[_0x1c4737(0x486)]['data']};break;}case _[_0x1c4737(0x4f8)][_0x1c4737(0x368)]:{_0x18a57a={'eventID':_[_0x1c4737(0x4f8)][_0x1c4737(0x368)],'joinEvent':_0x37aa5b['data']['data']};break;}case _['CollaborationEvent'][_0x1c4737(0x4e7)]:{_0x18a57a={'eventID':_[_0x1c4737(0x4f8)][_0x1c4737(0x4e7)],'liveShareNewHost':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x486)]};break;}case _[_0x1c4737(0x4f8)][_0x1c4737(0x292)]:{_0x18a57a={'eventID':_[_0x1c4737(0x4f8)][_0x1c4737(0x292)],'liveShareOperation':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x486)]};break;}case _[_0x1c4737(0x4f8)][_0x1c4737(0x4eb)]:{_0x18a57a={'eventID':_['CollaborationEvent'][_0x1c4737(0x4eb)],'liveShareTerminate':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x486)]};break;}case _[_0x1c4737(0x4f8)][_0x1c4737(0x4c2)]:{_0x18a57a={'eventID':_[_0x1c4737(0x4f8)][_0x1c4737(0x4c2)],'liveShareRequestHost':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x486)]};break;}case _[_0x1c4737(0x4f8)][_0x1c4737(0x24a)]:{_0x18a57a={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x18a57a={'eventID':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x3b1)]};}return JSON['stringify']({'cmd':_0x37aa5b[_0x1c4737(0x559)],'routeKey':_0x37aa5b['routeKey'],'collaMsg':_0x18a57a});}case b[_0x1c4737(0x5d7)]:return JSON[_0x1c4737(0x34b)]({'cmd':_0x37aa5b['cmd'],'routeKey':_0x37aa5b[_0x1c4737(0x3f9)],'joinReq':_0x37aa5b[_0x1c4737(0x486)]});case b[_0x1c4737(0x2f2)]:return JSON['stringify']({'cmd':_0x37aa5b['cmd'],'routeKey':_0x37aa5b[_0x1c4737(0x3f9)],'leaveReq':_0x37aa5b['data']});default:throw new Error(_0x1c4737(0x31a));}}var os=Object[_0x24c410(0x5d0)],as=Object[_0x24c410(0x3e3)],cs=(_0x1be08a,_0x54bb65,_0x43ae60,_0x318c74)=>{const _0x3f54cf=_0x24c410;for(var _0xd79465=_0x318c74>0x1?void 0x0:_0x318c74?as(_0x54bb65,_0x43ae60):_0x54bb65,_0x31b054=_0x1be08a[_0x3f54cf(0x25b)]-0x1,_0x346ce3;_0x31b054>=0x0;_0x31b054--)(_0x346ce3=_0x1be08a[_0x31b054])&&(_0xd79465=(_0x318c74?_0x346ce3(_0x54bb65,_0x43ae60,_0xd79465):_0x346ce3(_0xd79465))||_0xd79465);return _0x318c74&&_0xd79465&&os(_0x54bb65,_0x43ae60,_0xd79465),_0xd79465;},ae=(_0x19d330,_0x3aa7e7)=>(_0x2435d3,_0xdbd175)=>_0x3aa7e7(_0x2435d3,_0xdbd175,_0x19d330);const Ke=a['createIdentifier'](_0x24c410(0x4c0));function ls(_0x53ed34,_0x4c5149,_0x3932c3){return _0x53ed34+'/'+_0x4c5149+'/unit/'+_0x3932c3+'/new_changes';}exports[_0x24c410(0x487)]=class extends a[_0x24c410(0x2f0)]{constructor(_0x3feaaf,_0x3ea6ea,_0x51bb24,_0x45e7ca,_0x8df23d){const _0xa1009b=_0x24c410;super(),this['_http']=_0x3feaaf,this['_ws']=_0x3ea6ea,this[_0xa1009b(0x4c8)]=_0x51bb24,this[_0xa1009b(0x518)]=_0x45e7ca,this[_0xa1009b(0x288)]=_0x8df23d;}[_0x24c410(0x4c1)](_0x3ce6a){const _0x241f0d=_0x24c410,_0x53c958=this[_0x241f0d(0x435)]['createSocket'](_0x3ce6a);if(!_0x53c958)throw new Error(_0x241f0d(0x413));const _0x344906=new a[(_0x241f0d(0x46f))](),_0x5c8c5e=new v[(_0x241f0d(0x29b))]();_0x344906[_0x241f0d(0x3d0)](_0x53c958['close$'][_0x241f0d(0x359)](_0xe8625b=>_0x5c8c5e[_0x241f0d(0x4a9)](_0xe8625b))),_0x344906[_0x241f0d(0x3d0)](a[_0x241f0d(0x2ab)](()=>_0x5c8c5e[_0x241f0d(0x4a3)]()));const _0x594909=new v['Subject']();_0x344906[_0x241f0d(0x3d0)](_0x53c958[_0x241f0d(0x442)]['subscribe'](_0x5ab141=>_0x594909['next'](_0x5ab141))),_0x344906[_0x241f0d(0x3d0)](a['toDisposable'](()=>_0x594909['complete']()));const _0x151411=new v['Subject']();_0x344906[_0x241f0d(0x3d0)](_0x53c958[_0x241f0d(0x539)][_0x241f0d(0x359)](_0x5d4358=>{const _0x12146a=_0x241f0d,_0x5d8ad9=Rt(_0x5d4358);_0x151411[_0x12146a(0x4a9)](_0x5d8ad9);})),_0x344906[_0x241f0d(0x3d0)](a['toDisposable'](()=>_0x151411[_0x241f0d(0x4a3)]()));let _0x4a7d42;const _0x405435=()=>{const _0x4e6848=_0x241f0d;_0x594909[_0x4e6848(0x4a9)](new Event(_0x4e6848(0x299))),_0x5c8c5e[_0x4e6848(0x4a9)](new CloseEvent(_0x4e6848(0x299))),_0x4a7d42['close']();};return _0x4a7d42={'memberID':'','close$':_0x5c8c5e[_0x241f0d(0x343)](),'error$':_0x594909[_0x241f0d(0x343)](),'open$':_0x53c958[_0x241f0d(0x342)],'message$':_0x151411['asObservable'](),'send':_0x43e70e=>{const _0x501620=_0x241f0d;if(_0x43e70e['cmd']===b['INGEST']){if(_0x43e70e[_0x501620(0x486)]['eventID']===_[_0x501620(0x4f8)][_0x501620(0x48a)]){this[_0x501620(0x418)](_0x4a7d42,_0x43e70e['data'])[_0x501620(0x513)](_0x9a519f=>{const _0x296fe9=_0x501620;this[_0x296fe9(0x518)][_0x296fe9(0x553)](_0x9a519f),_0x405435();});return;}if(_0x43e70e[_0x501620(0x486)]['eventID']===_['CollaborationEvent'][_0x501620(0x547)]){const _0x5ce9cd=_0x43e70e[_0x501620(0x486)];this[_0x501620(0x283)](_0x5ce9cd)[_0x501620(0x33f)](_0x4c6504=>{const _0x49184a=_0x501620;_0x151411[_0x49184a(0x4a9)]({'cmd':b['RECV'],'code':Ye['OK'],'routeKey':_0x5ce9cd[_0x49184a(0x486)][_0x49184a(0x4a2)],'routeType':'','data':{'eventID':_[_0x49184a(0x4f8)][_0x49184a(0x50a)],'data':{'changesets':_0x4c6504}}});})['catch'](_0xacb8c2=>{const _0x4ce2e4=_0x501620;this[_0x4ce2e4(0x518)][_0x4ce2e4(0x553)](_0xacb8c2),_0x405435();});return;}}_0x53c958[_0x501620(0x2b6)](Ot(_0x43e70e));},'close':()=>{const _0x5c373a=_0x241f0d;_0x53c958[_0x5c373a(0x2e4)](),_0x344906['dispose']();}},_0x4a7d42;}async[_0x24c410(0x418)](_0x38df8b,_0x21fb93){const _0x361f95=_0x24c410;var _0x2bee37,_0x599341;const {unitType:_0xfbdd6,unitID:_0xe55c2,changeset:_0x524f25}=_0x21fb93[_0x361f95(0x486)],_0x489662={'unitID':_0xe55c2,'memberID':_0x38df8b[_0x361f95(0x259)],'type':_0xfbdd6,'changeset':_[_0x361f95(0x5f0)](_0x524f25)},_0x101bf5=this[_0x361f95(0x4c8)][_0x361f95(0x5bf)](Ct),_0x3cc86b=this[_0x361f95(0x4c8)][_0x361f95(0x5bf)](L),_0x280d52=ls((_0x599341=(_0x2bee37=_0x3cc86b==null?void 0x0:_0x3cc86b[_0x361f95(0x26d)])!=null?_0x2bee37:_0x101bf5)!=null?_0x599341:is,_0xfbdd6,_0xe55c2);try{await this[_0x361f95(0x454)][_0x361f95(0x264)](_0x280d52,{'body':_0x489662});}catch(_0x5822a5){throw this[_0x361f95(0x518)][_0x361f95(0x553)](_0x361f95(0x217),_0x361f95(0x4a1)),_0x5822a5;}}async['_fetchMissChangesets'](_0x536a86){const _0x19057e=_0x24c410,{unitID:_0x2b381c,from:_0x596354,to:_0x3a33f2,unitType:_0xa6e061}=_0x536a86[_0x19057e(0x486)];return(await this[_0x19057e(0x288)][_0x19057e(0x4ff)]({'metadata':void 0x0},{'unitID':_0x2b381c,'type':_0xa6e061,'from':_0x596354,'to':_0x3a33f2}))[_0x19057e(0x496)];}},exports[_0x24c410(0x487)]=cs([ae(0x0,a['Inject'](w[_0x24c410(0x238)])),ae(0x1,a[_0x24c410(0x349)](w[_0x24c410(0x1fc)])),ae(0x2,a[_0x24c410(0x1df)]),ae(0x3,a[_0x24c410(0x40f)]),ae(0x4,_['ISnapshotServerService'])],exports['CollaborationSocketService']);const hs=_0x24c410(0x430);function _s(_0x5e5442){const _0x1677f0=_0x24c410;return JSON[_0x1677f0(0x34b)](_0x5e5442)['length'];}class Xe{constructor(){const _0xcdadb1=_0x24c410;u(this,'_commentUpdate$',new v[(_0xcdadb1(0x29b))]()),u(this,_0xcdadb1(0x1d5),this[_0xcdadb1(0x3d4)]['asObservable']());}[_0x24c410(0x5f3)](_0x2a5c35){const _0x29bab2=_0x24c410;this[_0x29bab2(0x3d4)][_0x29bab2(0x4a9)](_0x2a5c35);}}var us=Object[_0x24c410(0x5d0)],ds=Object[_0x24c410(0x3e3)],Ss=(_0x14a729,_0x537248,_0x22b4a6,_0x3c7f18)=>{const _0x49cf8b=_0x24c410;for(var _0x4110eb=_0x3c7f18>0x1?void 0x0:_0x3c7f18?ds(_0x537248,_0x22b4a6):_0x537248,_0x1e0086=_0x14a729[_0x49cf8b(0x25b)]-0x1,_0x4d3c97;_0x1e0086>=0x0;_0x1e0086--)(_0x4d3c97=_0x14a729[_0x1e0086])&&(_0x4110eb=(_0x3c7f18?_0x4d3c97(_0x537248,_0x22b4a6,_0x4110eb):_0x4d3c97(_0x4110eb))||_0x4110eb);return _0x3c7f18&&_0x4110eb&&us(_0x537248,_0x22b4a6,_0x4110eb),_0x4110eb;},tt=(_0x143cc1,_0x2fd2e5)=>(_0x45af73,_0x168860)=>_0x2fd2e5(_0x45af73,_0x168860,_0x143cc1);let q=class extends a[_0x24c410(0x2f0)]{constructor(_0x44b04b,_0x585090){const _0x389f96=_0x24c410;super(),u(this,_0x389f96(0x3f7),new Map()),(this[_0x389f96(0x329)]=_0x44b04b,this[_0x389f96(0x5ad)]=_0x585090,this[_0x389f96(0x4b2)](a[_0x389f96(0x2ab)](v[_0x389f96(0x3e7)](this[_0x389f96(0x329)][_0x389f96(0x5c0)](a['UniverInstanceType'][_0x389f96(0x236)])['pipe'](E[_0x389f96(0x24d)](_0x3907ac=>_0x3907ac['getUnitId']())),this['_univerInstanceService'][_0x389f96(0x5c0)](a[_0x389f96(0x461)][_0x389f96(0x489)])['pipe'](E['map'](_0x83469e=>_0x83469e['getUnitId']())),this[_0x389f96(0x329)][_0x389f96(0x5c0)](a[_0x389f96(0x461)][_0x389f96(0x28f)])['pipe'](E[_0x389f96(0x24d)](_0x22c9e1=>_0x22c9e1[_0x389f96(0x444)]())))[_0x389f96(0x359)](_0x2532ac=>this[_0x389f96(0x45d)](_0x2532ac)))));}[_0x24c410(0x23b)](_0x688936){const _0x1ea4ec=_0x24c410;this['_userManagerService'][_0x1ea4ec(0x23b)](_0x688936);}['getCurrentUser'](){const _0x1c2d9e=_0x24c410;return this[_0x1c2d9e(0x5ad)][_0x1c2d9e(0x507)]();}[_0x24c410(0x4f7)](_0xa13f64,_0x31b671){const _0x380695=_0x24c410;let _0x3c64a6=this[_0x380695(0x3f7)][_0x380695(0x40c)](_0xa13f64);_0x3c64a6||(_0x3c64a6=new vs(),this[_0x380695(0x3f7)][_0x380695(0x48d)](_0xa13f64,_0x3c64a6)),_0x3c64a6[_0x380695(0x4f7)](_0x31b671);}[_0x24c410(0x41e)](_0x93177c,_0x36e6fa){const _0xc72691=_0x24c410,_0x3bccd7=this[_0xc72691(0x3f7)][_0xc72691(0x40c)](_0x93177c);_0x3bccd7&&_0x3bccd7['removeMember'](_0x36e6fa);}[_0x24c410(0x4e3)](_0xb83f1f){const _0x35b6e5=_0x24c410;return this[_0x35b6e5(0x3f7)]['get'](_0xb83f1f);}[_0x24c410(0x523)](_0x52ee25,_0x1ad542){const _0x3fcda8=_0x24c410,_0x1282cb=this[_0x3fcda8(0x3f7)][_0x3fcda8(0x40c)](_0x52ee25);if(_0x1282cb)return _0x1282cb[_0x3fcda8(0x523)](_0x1ad542);}[_0x24c410(0x45d)](_0x71218e){const _0x59fb1a=_0x24c410,_0x11692f=this[_0x59fb1a(0x3f7)][_0x59fb1a(0x40c)](_0x71218e);_0x11692f&&(_0x11692f[_0x59fb1a(0x54a)](),this[_0x59fb1a(0x3f7)]['delete'](_0x71218e));}['dispose'](){const _0x593821=_0x24c410;this[_0x593821(0x3f7)][_0x593821(0x202)](_0x5be706=>_0x5be706[_0x593821(0x54a)]()),this[_0x593821(0x3f7)][_0x593821(0x353)]();}};q=Ss([tt(0x0,a['IUniverInstanceService']),tt(0x1,a['Inject'](a['UserManagerService']))],q);class vs extends a[_0x24c410(0x2f0)]{constructor(){const _0x412584=_0x24c410;super(...arguments),u(this,_0x412584(0x3ae),new Map());}['dispose'](){const _0x3e87e6=_0x24c410;this['_members'][_0x3e87e6(0x353)]();}[_0x24c410(0x4f7)](_0x12dbb3){const _0x1d010e=_0x24c410;this[_0x1d010e(0x3ae)][_0x1d010e(0x48d)](_0x12dbb3[_0x1d010e(0x259)],_0x12dbb3);}[_0x24c410(0x41e)](_0x217899){this['_members']['delete'](_0x217899);}[_0x24c410(0x523)](_0x95fd6f){const _0x1fb4d4=_0x24c410;return this[_0x1fb4d4(0x3ae)][_0x1fb4d4(0x40c)](_0x95fd6f);}}var gs=Object[_0x24c410(0x5d0)],ms=Object[_0x24c410(0x3e3)],fs=(_0x3f2c49,_0x30e685,_0x3c7ae0,_0x5a35bd)=>{const _0x105a40=_0x24c410;for(var _0x39e14c=_0x5a35bd>0x1?void 0x0:_0x5a35bd?ms(_0x30e685,_0x3c7ae0):_0x30e685,_0x40abcf=_0x3f2c49[_0x105a40(0x25b)]-0x1,_0x454f5b;_0x40abcf>=0x0;_0x40abcf--)(_0x454f5b=_0x3f2c49[_0x40abcf])&&(_0x39e14c=(_0x5a35bd?_0x454f5b(_0x30e685,_0x3c7ae0,_0x39e14c):_0x454f5b(_0x39e14c))||_0x39e14c);return _0x5a35bd&&_0x39e14c&&gs(_0x30e685,_0x3c7ae0,_0x39e14c),_0x39e14c;},V=(_0x376486,_0xea2ed6)=>(_0x8bba0a,_0x1d87f)=>_0xea2ed6(_0x8bba0a,_0x1d87f,_0x376486),H=(_0x2aca4e=>(_0x2aca4e[_0x2aca4e[_0x24c410(0x434)]=0x0]=_0x24c410(0x434),_0x2aca4e[_0x2aca4e[_0x24c410(0x445)]=0x1]=_0x24c410(0x445),_0x2aca4e[_0x2aca4e[_0x24c410(0x3e9)]=0x2]=_0x24c410(0x3e9),_0x2aca4e[_0x2aca4e['ONLINE']=0x3]=_0x24c410(0x2ae),_0x2aca4e))(H||{});exports[_0x24c410(0x579)]=class extends a[_0x24c410(0x284)]{constructor(_0x270ad8,_0x4a5d2c,_0x1030a4,_0x4a199a,_0x78fbe8,_0x4b75d8,_0x3e5a75,_0x205825,_0x529c0c,_0x109b0e){const _0x453dda=_0x24c410;super(),u(this,_0x453dda(0x4b0),new v[(_0x453dda(0x39d))](0x0)),u(this,_0x453dda(0x1f2),this['_sessionStatus$']['asObservable']()),u(this,_0x453dda(0x325),new v['Subject']()),u(this,_0x453dda(0x5ba),this[_0x453dda(0x325)][_0x453dda(0x343)]()),u(this,_0x453dda(0x567)),u(this,_0x453dda(0x55e)),u(this,_0x453dda(0x37f)),u(this,_0x453dda(0x38e),!0x1),u(this,_0x453dda(0x25a),null),(this[_0x453dda(0x3fb)]=_0x270ad8,this['_logService']=_0x1030a4,this[_0x453dda(0x252)]=_0x4a199a,this[_0x453dda(0x3c7)]=_0x78fbe8,this[_0x453dda(0x4c8)]=_0x4b75d8,this['_localeService']=_0x3e5a75,this[_0x453dda(0x4a4)]=_0x205825,this[_0x453dda(0x29f)]=_0x529c0c,this[_0x453dda(0x5be)]=_0x109b0e,this[_0x453dda(0x38e)]=!!this[_0x453dda(0x5be)],_0x4a5d2c[_0x453dda(0x404)](v['takeUntil'](this['dispose$']))[_0x453dda(0x359)](_0xd7a995=>{const _0xcbfa9b=_0x453dda;var _0x305c58;typeof _0xd7a995>'u'||(this['_socket']=_0xd7a995,_0xd7a995?(this[_0xcbfa9b(0x536)](_0xd7a995),this[_0xcbfa9b(0x55e)]=_0xd7a995['message$'][_0xcbfa9b(0x359)](_0x935713=>{const _0x24a99a=_0xcbfa9b;_0x935713[_0x24a99a(0x3f9)]===this['_unitID']&&this[_0x24a99a(0x215)](_0x935713);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0xcbfa9b(0x4b0)]['next'](0x2),(_0x305c58=this['_socketMessageSubscription'])==null||_0x305c58['unsubscribe'](),this[_0xcbfa9b(0x55e)]=null));}),this['disposeWithMe'](this[_0x453dda(0x252)][_0x453dda(0x2a6)](()=>{const _0x59e4fb=_0x453dda;var _0x23fd3f;(_0x23fd3f=this[_0x59e4fb(0x567)])==null||_0x23fd3f[_0x59e4fb(0x2b6)]({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x24c410(0x204)](){const _0x1b16ac=_0x24c410;return this[_0x1b16ac(0x4b0)][_0x1b16ac(0x49a)]();}[_0x24c410(0x577)](){const _0x354637=_0x24c410;var _0x2715b3,_0x96f778;return(_0x96f778=(_0x2715b3=this[_0x354637(0x567)])==null?void 0x0:_0x2715b3[_0x354637(0x259)])!=null?_0x96f778:null;}['dispose'](){const _0xfea1a7=_0x24c410;super['dispose'](),this['dispose$'][_0xfea1a7(0x4a9)](),this[_0xfea1a7(0x22f)][_0xfea1a7(0x4a3)]();}[_0x24c410(0x2e4)](){const _0x3ba5f6=_0x24c410;var _0x9ace2e,_0x550055;this[_0x3ba5f6(0x459)](),(_0x9ace2e=this[_0x3ba5f6(0x567)])==null||_0x9ace2e[_0x3ba5f6(0x2b6)]({'cmd':b[_0x3ba5f6(0x2f2)],'data':{'roomID':this[_0x3ba5f6(0x3fb)]}}),(_0x550055=this[_0x3ba5f6(0x567)])==null||_0x550055[_0x3ba5f6(0x2e4)](),this[_0x3ba5f6(0x325)][_0x3ba5f6(0x4a3)](),this[_0x3ba5f6(0x4b0)][_0x3ba5f6(0x4a3)](),this[_0x3ba5f6(0x54a)]();}['_onCombEvent'](_0x4ed0ec){const _0x541223=_0x24c410;_0x4ed0ec[_0x541223(0x559)]===b[_0x541223(0x5d7)]?this[_0x541223(0x56b)](_0x4ed0ec):_0x4ed0ec[_0x541223(0x559)]===b[_0x541223(0x219)]&&this[_0x541223(0x549)](_0x4ed0ec);}['_joinRoom'](_0x3c96f8){const _0x19cdb4=_0x24c410;this[_0x19cdb4(0x4b0)][_0x19cdb4(0x4a9)](0x1),_0x3c96f8[_0x19cdb4(0x2b6)]({'cmd':b[_0x19cdb4(0x5d7)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x19cdb4(0x3fb)]}]}});}['_onJoinRoomEvent'](_0x55d5d7){const _0x3777ce=_0x24c410;var _0xfc527b;if(_0x55d5d7[_0x3777ce(0x5e4)]===Ye['FAIL']){this[_0x3777ce(0x3c7)][_0x3777ce(0x3bc)]({'type':X['MessageType']['Warning'],'content':this[_0x3777ce(0x319)]['t'](_0x3777ce(0x5dd))}),this[_0x3777ce(0x4b0)]['next'](0x2);return;}this[_0x3777ce(0x4b0)][_0x3777ce(0x4a9)](0x3);const _0x599f72=(_0xfc527b=_0x55d5d7[_0x3777ce(0x486)][_0x3777ce(0x3b9)][this['_unitID']])==null?void 0x0:_0xfc527b[_0x3777ce(0x47f)];_0x599f72&&_0x599f72['forEach'](_0x2d5494=>this[_0x3777ce(0x4a4)]['updateMember'](this['_unitID'],_0x2d5494));}[_0x24c410(0x549)](_0x4dac66){const _0x2d3def=_0x24c410;try{const _0x2fc45e=_0x4dac66[_0x2d3def(0x486)];switch(_0x2fc45e[_0x2d3def(0x3b1)]){case _[_0x2d3def(0x4f8)][_0x2d3def(0x368)]:this['_onUserJoin'](_0x2fc45e),this[_0x2d3def(0x325)][_0x2d3def(0x4a9)](_0x2fc45e);break;case _[_0x2d3def(0x4f8)][_0x2d3def(0x45f)]:this[_0x2d3def(0x39e)](_0x2fc45e),this[_0x2d3def(0x325)][_0x2d3def(0x4a9)](_0x2fc45e);break;case _['CollaborationEvent'][_0x2d3def(0x297)]:this[_0x2d3def(0x21c)](),this[_0x2d3def(0x57d)](),this['_event$']['next'](_0x2fc45e);break;case _['CollaborationEvent'][_0x2d3def(0x235)]:this['_logService']['error'](_0x2d3def(0x3b7)+JSON['stringify'](_0x2fc45e)),this['_event$'][_0x2d3def(0x4a9)](_0x2fc45e);break;case _[_0x2d3def(0x4f8)][_0x2d3def(0x525)]:this[_0x2d3def(0x29f)][_0x2d3def(0x5f3)](_0x2fc45e[_0x2d3def(0x486)]),this[_0x2d3def(0x325)][_0x2d3def(0x4a9)](_0x2fc45e);break;default:this[_0x2d3def(0x325)]['next'](_0x2fc45e);}}catch(_0x4280eb){this[_0x2d3def(0x518)]['error'](_0x4280eb,_0x4dac66);}}[_0x24c410(0x4e4)](_0x120f8e){const _0xaca110=_0x24c410;this[_0xaca110(0x4a4)][_0xaca110(0x4f7)](this[_0xaca110(0x3fb)],_0x120f8e[_0xaca110(0x486)]);}[_0x24c410(0x39e)](_0x5b9f85){const _0x437af5=_0x24c410;this['_memberService'][_0x437af5(0x41e)](this[_0x437af5(0x3fb)],_0x5b9f85[_0x437af5(0x486)][_0x437af5(0x259)]);}async[_0x24c410(0x2b6)](_0x1eee6b,_0x45a3e0){const _0x4d6369=_0x24c410;if(this[_0x4d6369(0x204)]!==0x3||!this[_0x4d6369(0x567)])throw new Error(_0x4d6369(0x550));try{_0x1eee6b['eventID']===_['CollaborationEvent'][_0x4d6369(0x48a)]&&(this[_0x4d6369(0x2ac)](),this['_startTelemetryCollaborationNewChangeset'](_0x1eee6b)),this[_0x4d6369(0x567)]['send']({'cmd':b[_0x4d6369(0x50f)],'routeKey':_0x45a3e0,'routeType':'','data':_0x1eee6b});}catch(_0x244891){this[_0x4d6369(0x518)][_0x4d6369(0x553)](_0x244891);}}['_scheduleCollaborationTimeoutTimer'](){const _0x402ff0=_0x24c410;var _0x5b0780;this[_0x402ff0(0x37f)]=window[_0x402ff0(0x387)](()=>{const _0x2ba6ac=_0x402ff0;this['_collaborationTimeoutTimer']=null,this[_0x2ba6ac(0x3c7)]['show']({'type':X['MessageType'][_0x2ba6ac(0x214)],'content':this[_0x2ba6ac(0x319)]['t'](_0x2ba6ac(0x5de))});},(_0x5b0780=this[_0x402ff0(0x4c8)][_0x402ff0(0x5bf)](Ge))!=null?_0x5b0780:ft);}[_0x24c410(0x57d)](){const _0x3068c7=_0x24c410;this[_0x3068c7(0x37f)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x24c410(0x275)](_0x432b52){const _0x4f3c2c=_0x24c410;if(!this[_0x4f3c2c(0x38e)])return;const {data:_0x28656e}=_0x432b52,{unitID:_0x176e2c,changeset:_0x366529}=_0x28656e,{mutations:_0x169467,type:_0x5a736b}=_0x366529;this[_0x4f3c2c(0x25a)]={'unitId':_0x176e2c,'type':_0x5a736b,'startTime':performance[_0x4f3c2c(0x3a7)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x169467)};}[_0x24c410(0x21c)](){const _0x1ed2ea=_0x24c410;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x1ed2ea(0x518)][_0x1ed2ea(0x553)]('[CollaborationSession]',_0x1ed2ea(0x2cc));return;}this[_0x1ed2ea(0x25a)][_0x1ed2ea(0x1ed)]=performance[_0x1ed2ea(0x3a7)](),this[_0x1ed2ea(0x25a)][_0x1ed2ea(0x40d)]=this[_0x1ed2ea(0x25a)][_0x1ed2ea(0x1ed)]-this[_0x1ed2ea(0x25a)]['startTime'],this[_0x1ed2ea(0x5be)][_0x1ed2ea(0x1e2)](hs,this[_0x1ed2ea(0x25a)]),this[_0x1ed2ea(0x25a)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x1bee8c=_0x24c410;this[_0x1bee8c(0x25a)]=null;}},exports[_0x24c410(0x579)]=fs([V(0x2,a[_0x24c410(0x40f)]),V(0x3,A[_0x24c410(0x515)]),V(0x4,A[_0x24c410(0x4b3)]),V(0x5,a[_0x24c410(0x1df)]),V(0x6,a['Inject'](a[_0x24c410(0x388)])),V(0x7,a['Inject'](q)),V(0x8,a['Inject'](Xe)),V(0x9,a['Optional'](Yt[_0x24c410(0x226)]))],exports['CollaborationSession']);var Is=Object[_0x24c410(0x5d0)],ps=Object[_0x24c410(0x3e3)],Cs=(_0x13f5f6,_0x2c5001,_0x5baa39,_0x39a781)=>{const _0x2b834c=_0x24c410;for(var _0x5ea4ef=_0x39a781>0x1?void 0x0:_0x39a781?ps(_0x2c5001,_0x5baa39):_0x2c5001,_0x24b577=_0x13f5f6[_0x2b834c(0x25b)]-0x1,_0x52e2e8;_0x24b577>=0x0;_0x24b577--)(_0x52e2e8=_0x13f5f6[_0x24b577])&&(_0x5ea4ef=(_0x39a781?_0x52e2e8(_0x2c5001,_0x5baa39,_0x5ea4ef):_0x52e2e8(_0x5ea4ef))||_0x5ea4ef);return _0x39a781&&_0x5ea4ef&&Is(_0x2c5001,_0x5baa39,_0x5ea4ef),_0x5ea4ef;},Z=(_0x5828f4,_0x1a43c4)=>(_0x465a26,_0xb5cae2)=>_0x1a43c4(_0x465a26,_0xb5cae2,_0x5828f4);exports['CollaborationSessionService']=class extends a['Disposable']{constructor(_0x3fea1e,_0x5cdfb8,_0x3befdc,_0x5c33eb,_0x3ad2ad,_0x3d4d9b){const _0x258f77=_0x24c410;super(),u(this,'_socket$',new v[(_0x258f77(0x39d))](void 0x0)),u(this,'socket$',this[_0x258f77(0x4cb)]['asObservable']()),u(this,'_candidateSocket',null),u(this,_0x258f77(0x35c),new Map()),u(this,_0x258f77(0x268),new v[(_0x258f77(0x39d))](H[_0x258f77(0x434)])),u(this,_0x258f77(0x2bf),this[_0x258f77(0x268)][_0x258f77(0x343)]()),u(this,'_socketReady',!0x1),u(this,_0x258f77(0x4bb)),u(this,_0x258f77(0x381),0x0),u(this,_0x258f77(0x581)),u(this,'_timeoutTimer'),(this[_0x258f77(0x495)]=_0x3fea1e,this['_localeService']=_0x5cdfb8,this[_0x258f77(0x3c7)]=_0x3befdc,this[_0x258f77(0x518)]=_0x5c33eb,this[_0x258f77(0x4c8)]=_0x3ad2ad,this[_0x258f77(0x42c)]=_0x3d4d9b,this[_0x258f77(0x571)]());}get['_socket'](){const _0x44977d=_0x24c410;return this[_0x44977d(0x4cb)][_0x44977d(0x49a)]();}['_initEventListeners'](){this['_listenToOfflineEvent'](),this['_listenToOnlineEvent']();}[_0x24c410(0x54a)](){const _0x31a07b=_0x24c410;super['dispose'](),this[_0x31a07b(0x35c)][_0x31a07b(0x202)](_0x1b694d=>_0x1b694d[_0x31a07b(0x54a)]()),this['_sessions'][_0x31a07b(0x353)](),this['_status$']['complete']();}async[_0x24c410(0x2b7)](_0x56a9bc){const _0x5e3a77=_0x24c410;if(this['_sessions']['has'](_0x56a9bc))return this[_0x5e3a77(0x35c)][_0x5e3a77(0x40c)](_0x56a9bc);this[_0x5e3a77(0x4ca)]();const _0x69ff8f=this[_0x5e3a77(0x495)]['createInstance'](exports[_0x5e3a77(0x579)],_0x56a9bc,this[_0x5e3a77(0x4cb)]['asObservable']());return this[_0x5e3a77(0x35c)][_0x5e3a77(0x48d)](_0x56a9bc,_0x69ff8f),_0x69ff8f;}[_0x24c410(0x28d)](_0x479551){const _0x4b2b3c=_0x24c410;var _0x21b2a0;const _0xa7cac=this['_sessions'][_0x4b2b3c(0x40c)](_0x479551);_0xa7cac&&(this[_0x4b2b3c(0x35c)]['delete'](_0x479551),_0xa7cac[_0x4b2b3c(0x2e4)]()),this['_sessions'][_0x4b2b3c(0x3b5)]||(_0x21b2a0=this[_0x4b2b3c(0x567)])==null||_0x21b2a0[_0x4b2b3c(0x2e4)]();}[_0x24c410(0x5b3)](){const _0x475c51=_0x24c410;this[_0x475c51(0x381)]=0x0,this[_0x475c51(0x4bb)]!=null&&(clearTimeout(this[_0x475c51(0x4bb)]),this[_0x475c51(0x4bb)]=null),this[_0x475c51(0x46c)]();}['_createSocket'](){const _0x1c4564=_0x24c410;var _0x11b959,_0xc35d98;const _0x25adb3=this['_configService']['getConfig'](gt),_0x2a8804=this[_0x1c4564(0x4c8)][_0x1c4564(0x5bf)](L),_0x38d885=(_0xc35d98=(_0x11b959=_0x2a8804==null?void 0x0:_0x2a8804[_0x1c4564(0x386)])!=null?_0x11b959:_0x25adb3)!=null?_0xc35d98:Zt,_0x696bf1=this[_0x1c4564(0x42c)][_0x1c4564(0x4c1)](_0x38d885);return this['_candidateSocket']=_0x696bf1,_0x696bf1;}[_0x24c410(0x4ca)](){const _0x66eb0d=_0x24c410;var _0x3dc521,_0x4544d7;try{const _0x4cf3e0=(_0x4544d7=(_0x3dc521=this[_0x66eb0d(0x567)])!=null?_0x3dc521:this[_0x66eb0d(0x56f)])!=null?_0x4544d7:this[_0x66eb0d(0x537)]();if(_0x4cf3e0){const _0x169f78=_0x4cf3e0[_0x66eb0d(0x2b6)];_0x4cf3e0[_0x66eb0d(0x2b6)]=_0x500e91=>(this[_0x66eb0d(0x5ec)](),_0x169f78['apply'](_0x4cf3e0,[_0x500e91])),_0x4cf3e0['message$'][_0x66eb0d(0x359)](_0x5134cc=>this[_0x66eb0d(0x27c)](_0x4cf3e0,_0x5134cc)),_0x4cf3e0[_0x66eb0d(0x442)][_0x66eb0d(0x404)](E[_0x66eb0d(0x2fb)](0x1))[_0x66eb0d(0x359)](_0x3cf754=>this[_0x66eb0d(0x518)][_0x66eb0d(0x553)](_0x66eb0d(0x448),_0x3cf754)),_0x4cf3e0['open$']['pipe'](E[_0x66eb0d(0x2fb)](0x1))[_0x66eb0d(0x359)](()=>{this['_onConnectionOpen'](_0x4cf3e0);}),_0x4cf3e0[_0x66eb0d(0x580)][_0x66eb0d(0x404)](E[_0x66eb0d(0x2fb)](0x1))[_0x66eb0d(0x359)](_0x3141b7=>{const _0x3b3286=_0x66eb0d;this[_0x3b3286(0x518)][_0x3b3286(0x347)](_0x3b3286(0x39b),'socket\x20close',_0x3141b7),this[_0x3b3286(0x3b6)]();});}}catch(_0x505cf2){this['_logService'][_0x66eb0d(0x553)](_0x505cf2),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x1d4971){const _0x34519d=_0x24c410;this[_0x34519d(0x518)][_0x34519d(0x347)](_0x34519d(0x39b),_0x34519d(0x3e5)),_0x1d4971[_0x34519d(0x2b6)]({'cmd':b[_0x34519d(0x303)]}),this[_0x34519d(0x5ec)]();}[_0x24c410(0x541)](){const _0x2e29a0=_0x24c410;window[_0x2e29a0(0x40a)]('offline',()=>this[_0x2e29a0(0x367)]());}['_onOffline'](){const _0x5111e3=_0x24c410;this[_0x5111e3(0x3c0)]=!0x1,this[_0x5111e3(0x56f)]=null,this['_status$'][_0x5111e3(0x4a9)](H[_0x5111e3(0x3e9)]),this[_0x5111e3(0x4cb)][_0x5111e3(0x4a9)](null),this[_0x5111e3(0x260)](),this[_0x5111e3(0x51c)]();}[_0x24c410(0x3b6)](){const _0x58dd93=_0x24c410;var _0x2ad021;this[_0x58dd93(0x367)](),this['_retryCount']<((_0x2ad021=this[_0x58dd93(0x4c8)][_0x58dd93(0x5bf)](It))!=null?_0x2ad021:ts)?(this[_0x58dd93(0x3c7)][_0x58dd93(0x3bc)]({'key':_0x58dd93(0x3b3),'type':X[_0x58dd93(0x365)][_0x58dd93(0x573)],'content':this[_0x58dd93(0x319)]['t'](_0x58dd93(0x5e1))}),this['_tryReconnect']()):this['_messageService']['show']({'key':_0x58dd93(0x3b3),'type':X[_0x58dd93(0x365)]['Error'],'content':this[_0x58dd93(0x319)]['t'](_0x58dd93(0x5b5))});}[_0x24c410(0x25e)](){const _0x1c8eb0=_0x24c410,_0x50ebcc=()=>{const _0x53f539=_0x3b7c;this[_0x53f539(0x567)]||this['reconnect']();},_0x12e1b1=()=>{const _0x21f0be=_0x3b7c;this[_0x21f0be(0x567)]||document[_0x21f0be(0x574)]===_0x21f0be(0x4a5)||this['reconnect']();};window[_0x1c8eb0(0x40a)]('online',_0x50ebcc),document[_0x1c8eb0(0x40a)](_0x1c8eb0(0x51b),_0x12e1b1);}[_0x24c410(0x46c)](){const _0x3c0f3a=_0x24c410;var _0x3cda27;const _0x465698=this[_0x3c0f3a(0x381)],_0x50a3f2=this['_configService'][_0x3c0f3a(0x5bf)](L),_0x77ec52=_0x465698===0x0?0x0:((_0x3cda27=_0x50a3f2==null?void 0x0:_0x50a3f2['retryConnectingInterval'])!=null?_0x3cda27:es)*0x2**_0x465698;this[_0x3c0f3a(0x4bb)]=window[_0x3c0f3a(0x387)](()=>{const _0x4d3403=_0x3c0f3a;clearTimeout(this[_0x4d3403(0x4bb)]),this['_retryConnectingTimer']=null,this[_0x4d3403(0x4ca)]();},_0x77ec52),this[_0x3c0f3a(0x381)]+=0x1;}['_onMessage'](_0x3e6ab6,_0x14d2e9){const _0x344bcb=_0x24c410,{cmd:_0x23b8a2}=_0x14d2e9;_0x23b8a2===b['HELLO']&&!this[_0x344bcb(0x3c0)]&&(_0x3e6ab6[_0x344bcb(0x259)]=_0x14d2e9[_0x344bcb(0x486)]['memberID'],this[_0x344bcb(0x4cb)][_0x344bcb(0x4a9)](_0x3e6ab6),this[_0x344bcb(0x268)][_0x344bcb(0x4a9)](H['ONLINE']),this[_0x344bcb(0x3c0)]=!0x0,this['_candidateSocket']=null),_0x23b8a2===b[_0x344bcb(0x3d8)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x24c410(0x5ec)](){const _0x5b6128=_0x24c410;var _0x45e0f6;this[_0x5b6128(0x51c)](),this[_0x5b6128(0x581)]=window[_0x5b6128(0x387)](()=>this['_sendHeartbeat'](),(_0x45e0f6=this[_0x5b6128(0x4c8)][_0x5b6128(0x5bf)](mt))!=null?_0x45e0f6:Qt);}[_0x24c410(0x429)](){const _0x40087d=_0x24c410;this['_socket'][_0x40087d(0x2b6)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x24c410(0x43c)](){const _0x48b2e1=_0x24c410;var _0x504cc6;this[_0x48b2e1(0x587)]=window[_0x48b2e1(0x387)](()=>this['_onConnectionFailed'](),(_0x504cc6=this['_configService'][_0x48b2e1(0x5bf)](Ge))!=null?_0x504cc6:ft);}[_0x24c410(0x51c)](){const _0x301e2b=_0x24c410;this[_0x301e2b(0x581)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x24c410(0x260)](){const _0xde3004=_0x24c410;this[_0xde3004(0x587)]!=null&&(clearTimeout(this[_0xde3004(0x587)]),this[_0xde3004(0x587)]=null);}},exports['CollaborationSessionService']=Cs([Z(0x0,a['Inject'](a[_0x24c410(0x4f6)])),Z(0x1,a[_0x24c410(0x349)](a['LocaleService'])),Z(0x2,A[_0x24c410(0x4b3)]),Z(0x3,a[_0x24c410(0x40f)]),Z(0x4,a[_0x24c410(0x1df)]),Z(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R['push']((Ue+0x100)['toString'](0x10)[_0x24c410(0x1e8)](0x1));function Es(_0x223973,_0x4b1e92=0x0){const _0x1778a7=_0x24c410;return(R[_0x223973[_0x4b1e92+0x0]]+R[_0x223973[_0x4b1e92+0x1]]+R[_0x223973[_0x4b1e92+0x2]]+R[_0x223973[_0x4b1e92+0x3]]+'-'+R[_0x223973[_0x4b1e92+0x4]]+R[_0x223973[_0x4b1e92+0x5]]+'-'+R[_0x223973[_0x4b1e92+0x6]]+R[_0x223973[_0x4b1e92+0x7]]+'-'+R[_0x223973[_0x4b1e92+0x8]]+R[_0x223973[_0x4b1e92+0x9]]+'-'+R[_0x223973[_0x4b1e92+0xa]]+R[_0x223973[_0x4b1e92+0xb]]+R[_0x223973[_0x4b1e92+0xc]]+R[_0x223973[_0x4b1e92+0xd]]+R[_0x223973[_0x4b1e92+0xe]]+R[_0x223973[_0x4b1e92+0xf]])[_0x1778a7(0x362)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x39590e=_0x24c410;if(!Se&&(Se=typeof crypto<'u'&&crypto['getRandomValues']&&crypto['getRandomValues'][_0x39590e(0x424)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(bs);}var Rs=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x24c410(0x59e)][_0x24c410(0x424)](crypto);const st={'randomUUID':Rs};function Os(_0xa83402,_0x4fef26,_0x1dc21d){const _0x431714=_0x24c410;if(st['randomUUID']&&!_0x4fef26&&!_0xa83402)return st['randomUUID']();_0xa83402=_0xa83402||{};var _0x810390=_0xa83402[_0x431714(0x247)]||(_0xa83402[_0x431714(0x3f0)]||Ts)();return _0x810390[0x6]=_0x810390[0x6]&0xf|0x40,_0x810390[0x8]=_0x810390[0x8]&0x3f|0x80,Es(_0x810390);}var Ds=Object[_0x24c410(0x5d0)],ys=Object['getOwnPropertyDescriptor'],Us=(_0x579015,_0x555265,_0x5e4954,_0x4469d3)=>{const _0x5757ed=_0x24c410;for(var _0x2751a9=_0x4469d3>0x1?void 0x0:_0x4469d3?ys(_0x555265,_0x5e4954):_0x555265,_0x5cfb4a=_0x579015[_0x5757ed(0x25b)]-0x1,_0x3cb5ce;_0x5cfb4a>=0x0;_0x5cfb4a--)(_0x3cb5ce=_0x579015[_0x5cfb4a])&&(_0x2751a9=(_0x4469d3?_0x3cb5ce(_0x555265,_0x5e4954,_0x2751a9):_0x3cb5ce(_0x2751a9))||_0x2751a9);return _0x4469d3&&_0x2751a9&&Ds(_0x555265,_0x5e4954,_0x2751a9),_0x2751a9;},Pe=(_0x2fd14e,_0x5c7c2b)=>(_0xaa91a,_0x1ce890)=>_0x5c7c2b(_0xaa91a,_0x1ce890,_0x2fd14e);let fe=class{constructor(_0x48b1e1,_0x46c92d,_0x1ea4b6){const _0x3424ea=_0x24c410;this[_0x3424ea(0x495)]=_0x48b1e1,this['_transformService']=_0x46c92d,this[_0x3424ea(0x322)]=_0x1ea4b6;}[_0x24c410(0x2f5)](_0xc71278){const _0x5ab34e=_0x24c410;this[_0x5ab34e(0x23c)](_0xc71278),this[_0x5ab34e(0x432)](_0xc71278);}[_0x24c410(0x2cb)](_0x3728f8){const _0x27fada=_0x24c410,{unitID:_0x303f8b}=_0x3728f8,_0x35c924=this[_0x27fada(0x322)][_0x27fada(0x4c7)](_0x303f8b)[_0x27fada(0x51d)](N[_0x27fada(0x1de)]),{redoCache:_0x28d9d9}=_0x35c924['getUndoRedoMutationParamsCache']();if(_0x28d9d9[_0x27fada(0x25b)]===0x0)return _0x3728f8;let _0x58e1c3=a[_0x27fada(0x45b)]['deepClone'](_0x3728f8[_0x27fada(0x4a6)][0x0]);for(let _0x528f69=0x0;_0x528f69<_0x28d9d9[_0x27fada(0x25b)];_0x528f69++){const _0x27d8c3={'id':_0x27fada(0x4fa),'params':{..._0x28d9d9[_0x528f69]}},_0x3f327e=this['_transformService'][_0x27fada(0x2c3)](_0x58e1c3,_0x27d8c3,!0x1);if(_[_0x27fada(0x37d)](_0x3f327e))throw _0x3f327e[_0x27fada(0x553)];_0x58e1c3=_0x3f327e[_0x27fada(0x58c)];}return{...a['Tools']['deepClone'](_0x3728f8),'mutations':[_0x58e1c3]};}[_0x24c410(0x23c)](_0x3b0376){const _0x3cbb58=_0x24c410,{unitID:_0xe154a9}=_0x3b0376,_0x36f2f4=this[_0x3cbb58(0x322)][_0x3cbb58(0x4c7)](_0xe154a9)['with'](N[_0x3cbb58(0x1de)]),{undoCache:_0xd314b2,redoCache:_0x49a85a}=_0x36f2f4['getUndoRedoMutationParamsCache']();if(_0xd314b2[_0x3cbb58(0x25b)]===0x0||_0x49a85a[_0x3cbb58(0x25b)]===0x0)return;const _0x328daf=[],_0x1c2945=[];let _0x2dd86d=a[_0x3cbb58(0x45b)][_0x3cbb58(0x1f5)](_0x3b0376['mutations'][0x0]),_0x2e1c43=a['Tools'][_0x3cbb58(0x1f5)](_0x3b0376['mutations'][0x0]);for(let _0x1f461d=_0xd314b2[_0x3cbb58(0x25b)]-0x1;_0x1f461d>=0x0;_0x1f461d--){const _0xc4a167={'id':_0x3cbb58(0x4fa),'params':{..._0xd314b2[_0x1f461d]}},_0x5f5a86={'id':_0x3cbb58(0x4fa),'params':{..._0x49a85a[_0x1f461d]}},_0x45f72b=this[_0x3cbb58(0x317)][_0x3cbb58(0x2c3)](_0x2dd86d,_0xc4a167,!0x1),_0x40bd79=this['_transformService'][_0x3cbb58(0x2c3)](_0x2e1c43,_0x5f5a86,!0x1);if(_[_0x3cbb58(0x37d)](_0x45f72b))throw _0x45f72b[_0x3cbb58(0x553)];if(_[_0x3cbb58(0x37d)](_0x40bd79))throw _0x40bd79['error'];_0x328daf[_0x3cbb58(0x4fe)](_0x45f72b[_0x3cbb58(0x2cd)][_0x3cbb58(0x57a)]),_0x1c2945['unshift'](_0x40bd79[_0x3cbb58(0x2cd)][_0x3cbb58(0x57a)]),_0x2dd86d=_0x45f72b['m1Prime'],_0x2e1c43=_0x40bd79['m1Prime'];}_0x36f2f4[_0x3cbb58(0x437)]({'undoCache':_0x328daf,'redoCache':_0x1c2945});}[_0x24c410(0x432)](_0x32e4c0){const _0x38e5d3=_0x24c410,{unitID:_0x3923f2}=_0x32e4c0,_0xd1dd3c=this['_renderManagerService']['getRenderById'](_0x3923f2)[_0x38e5d3(0x51d)](N['DocIMEInputManagerService']),_0x3c7312=_0xd1dd3c['getActiveRange']();if(_0x3c7312==null)return;const _0x30c510=[{'id':_0x38e5d3(0x4fa),'params':{'unitId':_0x32e4c0['unitID'],'actions':null,'textRanges':[_0x3c7312]}}],_0x456268=this[_0x38e5d3(0x317)][_0x38e5d3(0x26f)](_0x32e4c0,_0x30c510);if(!_[_0x38e5d3(0x31d)](_0x456268))throw _0x456268['error'];const _0x44e96f=_0x456268['m2Prime'][0x0][_0x38e5d3(0x57a)][_0x38e5d3(0x566)];Array['isArray'](_0x44e96f)&&_0x44e96f[_0x38e5d3(0x25b)]&&_0xd1dd3c['setActiveRange'](_0x44e96f[0x0]);}};fe=Us([Pe(0x0,a[_0x24c410(0x349)](a['Injector'])),Pe(0x1,_[_0x24c410(0x2ec)]),Pe(0x2,O[_0x24c410(0x3ca)])],fe);var Ps=Object[_0x24c410(0x5d0)],ws=Object[_0x24c410(0x3e3)],Ns=(_0x653336,_0x422cb6,_0x472081,_0x64b630)=>{for(var _0x50af1d=_0x64b630>0x1?void 0x0:_0x64b630?ws(_0x422cb6,_0x472081):_0x422cb6,_0xaeb8ab=_0x653336['length']-0x1,_0x1d7737;_0xaeb8ab>=0x0;_0xaeb8ab--)(_0x1d7737=_0x653336[_0xaeb8ab])&&(_0x50af1d=(_0x64b630?_0x1d7737(_0x422cb6,_0x472081,_0x50af1d):_0x1d7737(_0x50af1d))||_0x50af1d);return _0x64b630&&_0x50af1d&&Ps(_0x422cb6,_0x472081,_0x50af1d),_0x50af1d;},ce=(_0x22940f,_0x56dc4d)=>(_0x57d5a6,_0x143c0f)=>_0x56dc4d(_0x57d5a6,_0x143c0f,_0x22940f);function _0x3b7c(_0x39b7c9,_0x37e14d){const _0x11833d=_0x1183();return _0x3b7c=function(_0x3b7c80,_0x43ba01){_0x3b7c80=_0x3b7c80-0x1cc;let _0x19e287=_0x11833d[_0x3b7c80];return _0x19e287;},_0x3b7c(_0x39b7c9,_0x37e14d);}exports['LocalCacheService']=class extends a[_0x24c410(0x2f0)]{constructor(_0x53b994,_0x5dda55,_0x49ff3a,_0x5df385,_0x4695da){const _0x50bf5e=_0x24c410;super(),u(this,_0x50bf5e(0x5c8),new Map()),u(this,'_saveTaskMap',new Map()),u(this,_0x50bf5e(0x44c),!0x1),(this[_0x50bf5e(0x4c8)]=_0x53b994,this[_0x50bf5e(0x242)]=_0x5dda55,this['_beforeCloseService']=_0x49ff3a,this[_0x50bf5e(0x319)]=_0x5df385,this[_0x50bf5e(0x2d3)]=_0x4695da,this[_0x50bf5e(0x1ec)]());}[_0x24c410(0x5c1)](){const _0x372344=_0x24c410;this[_0x372344(0x44c)]=!0x0;}['enableLocalCache'](){const _0xb6cb61=_0x24c410;this[_0xb6cb61(0x44c)]=!0x1;}[_0x24c410(0x54a)](){const _0x55fe4c=_0x24c410;this[_0x55fe4c(0x4d6)]()['then'](()=>super[_0x55fe4c(0x54a)]());}async[_0x24c410(0x38c)](_0x28c38f){const _0x55d58d=_0x24c410;return this[_0x55d58d(0x44c)]?null:this[_0x55d58d(0x242)]['getItem'](it(_0x28c38f));}async[_0x24c410(0x2a8)](_0x18a885,_0x3f035b){return!!this['_localStorageService']['setItem'](_0x18a885,_0x3f035b);}[_0x24c410(0x2c8)](_0x5843ee,_0xb08d30,_0x29be5d,_0x13b22b){const _0x37e5ec=_0x24c410,_0x117701=this[_0x37e5ec(0x2d3)]['getCurrentRevOfUnit'](_0x5843ee);this[_0x37e5ec(0x5c8)][_0x37e5ec(0x48d)](_0x5843ee,{'unitID':_0x5843ee,'type':_0xb08d30,'awaitingChangeset':_0x29be5d,'mutations':_0x13b22b,'rev':_0x117701}),this[_0x37e5ec(0x3d2)][_0x37e5ec(0x3d7)](_0x5843ee)||this[_0x37e5ec(0x417)](_0x5843ee);}[_0x24c410(0x417)](_0x5f3dca){const _0x292bfa=_0x24c410,_0xa6756d=this[_0x292bfa(0x38f)]();_0xa6756d===0x0?this[_0x292bfa(0x2ad)](_0x5f3dca):this[_0x292bfa(0x3d2)][_0x292bfa(0x48d)](_0x5f3dca,setTimeout(()=>this[_0x292bfa(0x2ad)](_0x5f3dca),_0xa6756d));}[_0x24c410(0x38f)](){const _0x1fdc9a=_0x24c410;var _0x21873b;return(_0x21873b=this[_0x1fdc9a(0x4c8)][_0x1fdc9a(0x5bf)](pt))!=null?_0x21873b:ss;}[_0x24c410(0x2ad)](_0x3ff585){const _0x59f81b=_0x24c410,_0x198365=this[_0x59f81b(0x3d2)][_0x59f81b(0x40c)](_0x3ff585);return _0x198365!==void 0x0&&window[_0x59f81b(0x476)](_0x198365),this[_0x59f81b(0x242)][_0x59f81b(0x382)](it(_0x3ff585),this['_cachedData'][_0x59f81b(0x40c)](_0x3ff585))[_0x59f81b(0x33f)](()=>this['_saveTaskMap'][_0x59f81b(0x5a3)](_0x3ff585));}async[_0x24c410(0x4d6)](){const _0x568e93=_0x24c410,_0x2285dd=[];this[_0x568e93(0x3d2)][_0x568e93(0x202)]((_0x7048c2,_0x45fca6)=>{const _0x23b83e=_0x568e93;window[_0x23b83e(0x476)](_0x7048c2),_0x2285dd[_0x23b83e(0x222)](this[_0x23b83e(0x2ad)](_0x45fca6)['then'](()=>{const _0x57088d=_0x23b83e;this[_0x57088d(0x3d2)][_0x57088d(0x5a3)](_0x45fca6);}));}),await Promise['all'](_0x2285dd);}[_0x24c410(0x1ec)](){const _0x35a741=_0x24c410;this['disposeWithMe'](this[_0x35a741(0x252)][_0x35a741(0x2bd)](()=>{const _0x37ede7=_0x35a741;if(this['_saveTaskMap'][_0x37ede7(0x3b5)])return this['_localeService']['t'](_0x37ede7(0x4ec));}));}},exports[_0x24c410(0x205)]=Ns([ce(0x0,a[_0x24c410(0x1df)]),ce(0x1,a['ILocalStorageService']),ce(0x2,A['IBeforeCloseService']),ce(0x3,a['Inject'](a[_0x24c410(0x388)])),ce(0x4,a[_0x24c410(0x349)](_[_0x24c410(0x4a7)]))],exports[_0x24c410(0x205)]);function it(_0x7917fe){const _0x4570e7=_0x24c410;return _0x4570e7(0x480)+_0x7917fe;}var Ms=Object[_0x24c410(0x5d0)],As=Object[_0x24c410(0x3e3)],Ls=(_0x51a856,_0x496b69,_0x3e269d,_0x26e4aa)=>{const _0xc00e15=_0x24c410;for(var _0x36cc8f=_0x26e4aa>0x1?void 0x0:_0x26e4aa?As(_0x496b69,_0x3e269d):_0x496b69,_0x4b79bc=_0x51a856[_0xc00e15(0x25b)]-0x1,_0x19a9d4;_0x4b79bc>=0x0;_0x4b79bc--)(_0x19a9d4=_0x51a856[_0x4b79bc])&&(_0x36cc8f=(_0x26e4aa?_0x19a9d4(_0x496b69,_0x3e269d,_0x36cc8f):_0x19a9d4(_0x36cc8f))||_0x36cc8f);return _0x26e4aa&&_0x36cc8f&&Ms(_0x496b69,_0x3e269d,_0x36cc8f),_0x36cc8f;},we=(_0x551bad,_0x1895d3)=>(_0x39c2fe,_0xfcb3be)=>_0x1895d3(_0x39c2fe,_0xfcb3be,_0x551bad);function js(_0x2086a){const _0xab84e2=_0x24c410,{unitID:_0xff38ab,mutations:_0x3ba66c}=_0x2086a;return{'unitId':_0xff38ab,'subUnitId':_0x3ba66c[0x0][_0xab84e2(0x57a)][_0xab84e2(0x4b9)]};}let Ie=class{constructor(_0x54f609,_0x2d9f0a,_0x316757){const _0x3b8567=_0x24c410;this[_0x3b8567(0x495)]=_0x54f609,this['_transformService']=_0x2d9f0a,this[_0x3b8567(0x54c)]=_0x316757;}['transformSelections'](_0x352880){const _0x86084c=_0x24c410;var _0x2dddb1,_0x522322,_0x31423d,_0x17ef19;const _0x5cad6e=this['_injector'][_0x86084c(0x40c)](C[_0x86084c(0x4ac)]),{unitId:_0x2f390d,subUnitId:_0x3475fd}=js(_0x352880),_0xe6919b=_0x5cad6e[_0x86084c(0x590)](_0x2f390d)[_0x86084c(0x1ef)](),_0x161d37=(_0x522322=(_0x2dddb1=this['_instanceService'][_0x86084c(0x423)](_0x2f390d))==null?void 0x0:_0x2dddb1['getActiveSheet']())==null?void 0x0:_0x522322[_0x86084c(0x5b7)]();if(_0xe6919b['length']===0x0||!_0x2f390d||!_0x3475fd)return;const _0x22c75e=[{'id':C[_0x86084c(0x56a)]['id'],'params':{'unitId':_0x2f390d,'subUnitId':_0x161d37,'selections':a[_0x86084c(0x45b)][_0x86084c(0x1f5)](_0xe6919b)}}],_0x178b43=this[_0x86084c(0x317)]['transformMutationsWithChangeset'](_0x352880,_0x22c75e);if(!_[_0x86084c(0x31d)](_0x178b43))throw _0x178b43[_0x86084c(0x553)];const _0x2ac734=(_0x17ef19=(_0x31423d=_0x178b43[_0x86084c(0x2cd)][0x0])==null?void 0x0:_0x31423d[_0x86084c(0x57a)])==null?void 0x0:_0x17ef19[_0x86084c(0x5b8)];Array[_0x86084c(0x2fa)](_0x2ac734)&&_0x2ac734[_0x86084c(0x25b)]&&this['_injector']['get'](a[_0x86084c(0x494)])['executeCommand'](C[_0x86084c(0x56a)]['id'],{'unitId':_0x2f390d,'subUnitId':_0x161d37,'selections':_0x2ac734});}};Ie=Ls([we(0x0,a[_0x24c410(0x349)](a['Injector'])),we(0x1,_[_0x24c410(0x2ec)]),we(0x2,a['IUniverInstanceService'])],Ie);const Re=a[_0x24c410(0x2ee)]('univer-pro.collaboration-client.single-active-unit-service');var Dt=(_0x306a8e=>(_0x306a8e[_0x306a8e[_0x24c410(0x59d)]=0x0]=_0x24c410(0x59d),_0x306a8e[_0x306a8e[_0x24c410(0x5e5)]=0x1]=_0x24c410(0x5e5),_0x306a8e))(Dt||{});const nt=0x7530,rt=_0x24c410(0x216);class $s extends a[_0x24c410(0x2f0)]{constructor(){const _0xc69008=_0x24c410;super(),u(this,_0xc69008(0x30a),a[_0xc69008(0x45b)][_0xc69008(0x497)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0xc69008(0x4d2),new Map()),u(this,_0xc69008(0x348),null),u(this,'_clearOtherTimers',new Map()),u(this,'_unitStatus',new Map()),this[_0xc69008(0x393)]();}[_0x24c410(0x54a)](){const _0x3b4613=_0x24c410;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x3b69a1,_0xb8a551)=>this[_0x3b4613(0x1d3)](_0xb8a551)),this[_0x3b4613(0x348)]&&window[_0x3b4613(0x38b)](this[_0x3b4613(0x348)]);}[_0x24c410(0x526)](_0x993541){const _0xd7fe78=_0x24c410;return this['_ensureSubject'](_0x993541)['pipe'](v[_0xd7fe78(0x52e)]());}[_0x24c410(0x582)](_0x3897e2){const _0x4383a3=_0x24c410;this[_0x4383a3(0x3cc)][_0x4383a3(0x3b5)]===0x0&&this[_0x4383a3(0x569)](),this[_0x4383a3(0x3cc)]['add'](_0x3897e2),this[_0x4383a3(0x4b7)]({'type':0x0,'memberID':this[_0x4383a3(0x30a)],'unitIDs':[_0x3897e2],'isForwarded':!0x1});}[_0x24c410(0x1db)](_0x48783a){const _0x2f5987=_0x24c410;this[_0x2f5987(0x3cc)][_0x2f5987(0x5a3)](_0x48783a),this[_0x2f5987(0x3cc)][_0x2f5987(0x3b5)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x2f5987(0x348)]);}[_0x24c410(0x393)](){const _0x8e255f=_0x24c410;this[_0x8e255f(0x4b2)](a[_0x8e255f(0x2ab)](v[_0x8e255f(0x54f)](window,_0x8e255f(0x40b))[_0x8e255f(0x359)](_0xe7fc3e=>{const _0x5ee5ee=_0x8e255f;if(_0xe7fc3e[_0x5ee5ee(0x30b)]!==rt||!_0xe7fc3e['newValue'])return;const _0x20c8bf=JSON['parse'](_0xe7fc3e['newValue']);this[_0x5ee5ee(0x267)](_0x20c8bf);}))),window[_0x8e255f(0x40a)](_0x8e255f(0x484),()=>this['_send']({'type':0x1,'memberID':this[_0x8e255f(0x30a)],'unitIDs':Array[_0x8e255f(0x229)](this[_0x8e255f(0x3cc)])}));}[_0x24c410(0x267)](_0xa55385){const _0x15c1a8=_0x24c410;switch(_0xa55385[_0x15c1a8(0x28b)]){case 0x0:this[_0x15c1a8(0x4bf)](_0xa55385);break;case 0x1:this[_0x15c1a8(0x558)](_0xa55385);break;case 0x2:this['_handleHeartbeatEvent'](_0xa55385);break;}}[_0x24c410(0x4bf)](_0x5a8311){const _0x14d6c8=_0x24c410,{unitIDs:_0x5e9948,memberID:_0x98b6a5,isForwarded:_0x223750}=_0x5a8311;_0x5e9948[_0x14d6c8(0x202)](_0x40e035=>{const _0x141dba=_0x14d6c8;if(!_0x223750&&this[_0x141dba(0x4d2)][_0x141dba(0x3d7)](_0x40e035)&&this['_ensureSubject'](_0x40e035)['next'](0x1),!this[_0x141dba(0x4d2)][_0x141dba(0x3d7)](_0x40e035)||!this[_0x141dba(0x4d2)][_0x141dba(0x40c)](_0x40e035)[_0x141dba(0x3d7)](_0x98b6a5)){const _0x45e0aa=this['_unitOnClients'][_0x141dba(0x40c)](_0x40e035)||new Set();_0x45e0aa[_0x141dba(0x3d0)](_0x98b6a5),this[_0x141dba(0x4d2)][_0x141dba(0x48d)](_0x40e035,_0x45e0aa),this['_scheduleClearOtherTimer'](_0x98b6a5);}}),_0x223750||this[_0x14d6c8(0x4b7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x14d6c8(0x3cc)]],'isForwarded':!0x0});}[_0x24c410(0x471)](_0x26ab50){const _0x2d3836=_0x24c410;this[_0x2d3836(0x1d3)](_0x26ab50);const _0x240471=window[_0x2d3836(0x387)](()=>{const _0x4136d7=_0x2d3836;this[_0x4136d7(0x4d2)][_0x4136d7(0x202)](_0x6cc278=>{const _0x4318ee=_0x4136d7;_0x6cc278[_0x4318ee(0x5a3)](_0x26ab50);});},nt*0x2);this[_0x2d3836(0x20b)]['set'](_0x26ab50,_0x240471);}[_0x24c410(0x1d3)](_0x48338c){const _0x12edca=_0x24c410;if(this['_clearOtherTimers'][_0x12edca(0x3d7)](_0x48338c)){const _0x4789d4=this['_clearOtherTimers'][_0x12edca(0x40c)](_0x48338c);_0x4789d4&&window[_0x12edca(0x476)](_0x4789d4),this[_0x12edca(0x20b)][_0x12edca(0x48d)](_0x48338c,null);}}[_0x24c410(0x558)](_0x18352c){const _0x35fe58=_0x24c410,{memberID:_0x4cea35,unitIDs:_0x4736e0}=_0x18352c;_0x4736e0[_0x35fe58(0x202)](_0x54c25a=>{const _0x32c355=_0x35fe58;var _0x541ab2;const _0x4ad3b0=this[_0x32c355(0x4d2)][_0x32c355(0x40c)](_0x54c25a);_0x4ad3b0&&(_0x4ad3b0[_0x32c355(0x5a3)](_0x4cea35),(_0x541ab2=this[_0x32c355(0x224)](_0x54c25a))==null||_0x541ab2['next'](_0x4ad3b0[_0x32c355(0x3b5)]===0x0?0x0:0x1));}),this[_0x35fe58(0x1d3)](_0x4cea35);}['_handleHeartbeatEvent'](_0x63f4e6){const _0x2632ef=_0x24c410;this[_0x2632ef(0x471)](_0x63f4e6[_0x2632ef(0x259)]);}[_0x24c410(0x4b7)](_0x1c28f1){const _0x1bb006=_0x24c410;localStorage[_0x1bb006(0x382)](rt,JSON[_0x1bb006(0x34b)](_0x1c28f1));}[_0x24c410(0x569)](){const _0x6a1e2c=_0x24c410;this['_heartbeatTimer']=window[_0x6a1e2c(0x390)](()=>{const _0x3a200d=_0x6a1e2c;this[_0x3a200d(0x4b7)]({'type':0x2,'memberID':this[_0x3a200d(0x30a)]});},nt);}[_0x24c410(0x224)](_0x170dc7){const _0x3c9e64=_0x24c410;return this[_0x3c9e64(0x54b)][_0x3c9e64(0x3d7)](_0x170dc7)||this[_0x3c9e64(0x54b)]['set'](_0x170dc7,new v[(_0x3c9e64(0x39d))](0x0)),this['_unitStatus'][_0x3c9e64(0x40c)](_0x170dc7);}}function yt(_0x4d9c38){const _0x21c1c7=_0x24c410;let _0x1cff63='';for(const _0x25cdfe of _0x4d9c38){const {startOffset:_0x57714f,endOffset:_0x1d2afa,isActive:_0xf31cd6}=_0x25cdfe;_0x1cff63[_0x21c1c7(0x25b)]&&(_0x1cff63+=','),_0x1cff63+=_0x57714f+':'+_0x1d2afa+':'+(_0xf31cd6?'1':'0');}return _0x1cff63;}function Hs(_0x1e35db){const _0x2e30b3=_0x24c410,_0x574aea=_0x1e35db['split'](','),_0x1ad807=[];for(const _0x1d8df7 of _0x574aea){const [_0x579477,_0x142059,_0x5a8fe6]=_0x1d8df7[_0x2e30b3(0x337)](':');_0x1ad807[_0x2e30b3(0x222)]({'startOffset':Number(_0x579477),'endOffset':Number(_0x142059),'collapsed':_0x579477===_0x142059,'isActive':_0x5a8fe6==='1'});}return _0x1ad807['some'](_0x408985=>_0x408985[_0x2e30b3(0x4b1)])||(_0x1ad807[0x0]['isActive']=!0x0),_0x1ad807;}class qe extends a[_0x24c410(0x284)]{constructor(){const _0x2df4f3=_0x24c410;super(...arguments),u(this,_0x2df4f3(0x1cd),new v[(_0x2df4f3(0x39d))](null)),u(this,_0x2df4f3(0x5c4),this[_0x2df4f3(0x1cd)]['asObservable']());}['syncEditingCollabCursor'](_0x1b45e0){const _0x56fa2a=_0x24c410,{unitID:_0x487af3,memberID:_0x2ce896,textRanges:_0x61d94d}=_0x1b45e0,_0x3a1c80=yt(_0x61d94d),_0x2a054b={'unitID':_0x487af3,'memberID':_0x2ce896,'selection':_0x3a1c80};this[_0x56fa2a(0x1cd)][_0x56fa2a(0x4a9)](_0x2a054b);}}var xs=Object[_0x24c410(0x5d0)],ks=Object[_0x24c410(0x3e3)],Bs=(_0x29adea,_0x345e20,_0x3c798a,_0x49c3d0)=>{const _0x100825=_0x24c410;for(var _0x335b18=_0x49c3d0>0x1?void 0x0:_0x49c3d0?ks(_0x345e20,_0x3c798a):_0x345e20,_0x5167e1=_0x29adea[_0x100825(0x25b)]-0x1,_0x43153d;_0x5167e1>=0x0;_0x5167e1--)(_0x43153d=_0x29adea[_0x5167e1])&&(_0x335b18=(_0x49c3d0?_0x43153d(_0x345e20,_0x3c798a,_0x335b18):_0x43153d(_0x335b18))||_0x335b18);return _0x49c3d0&&_0x335b18&&xs(_0x345e20,_0x3c798a,_0x335b18),_0x335b18;},ot=(_0x4d6143,_0x6049da)=>(_0x42caff,_0xbd49c3)=>_0x6049da(_0x42caff,_0xbd49c3,_0x4d6143);let pe=class{constructor(_0x11303b,_0x37526e){const _0x3356fa=_0x24c410;this[_0x3356fa(0x495)]=_0x11303b,this[_0x3356fa(0x317)]=_0x37526e;}[_0x24c410(0x5e8)](_0xcb7ecf){const _0x18c01a=_0x24c410;var _0x564aef;const _0xc32e60=this[_0x18c01a(0x495)][_0x18c01a(0x40c)](se['DocSelectionManagerService']),_0x5c59cb=(_0x564aef=_0xc32e60['getDocRanges']())!=null?_0x564aef:[];if(_0x5c59cb['length']===0x0)return;const _0x282a90=[{'id':_0x18c01a(0x4fa),'params':{'unitId':_0xcb7ecf['unitID'],'actions':null,'textRanges':_0x5c59cb}}],_0x26fdf2=this[_0x18c01a(0x317)][_0x18c01a(0x26f)](_0xcb7ecf,_0x282a90);if(!_['isTransformMutationsWithChangesetSuccess'](_0x26fdf2))throw _0x26fdf2['error'];const _0x556cbd=_0x26fdf2[_0x18c01a(0x2cd)][0x0]['params'][_0x18c01a(0x566)];Array['isArray'](_0x556cbd)&&_0x556cbd[_0x18c01a(0x25b)]&&_0xc32e60[_0x18c01a(0x31c)](_0x556cbd,!0x1);}};pe=Bs([ot(0x0,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),ot(0x1,_[_0x24c410(0x2ec)])],pe);const Vs=new Set([C[_0x24c410(0x290)]['id']]);function at(_0x580f58,_0x34ef7d,_0x2f726f,_0x328b82,_0x190be2){const _0x5a479f=_0x24c410;var _0x219c3c,_0x143bae,_0x3f83fc,_0x114cb6;const _0x344c30=[];for(const _0x2e9242 of _0x580f58)if(Vs['has'](_0x2e9242['id'])){if(_0x344c30[_0x5a479f(0x25b)]>0x0)break;_0x344c30[_0x5a479f(0x222)](_0x2e9242);break;}else _0x344c30[_0x5a479f(0x222)](_0x2e9242);const _0x15adbf=(_0x143bae=(_0x219c3c=_0x190be2[_0x5a479f(0x507)]())==null?void 0x0:_0x219c3c[_0x5a479f(0x1e4)])!=null?_0x143bae:'unknown',_0x2f351a=(_0x114cb6=(_0x3f83fc=_0x190be2[_0x5a479f(0x507)]())==null?void 0x0:_0x3f83fc['memberID'])!=null?_0x114cb6:'unknown';return{'changeset':{'unitID':_0x34ef7d,'type':_[_0x5a479f(0x4d5)](_0x2f726f['getUnitType'](_0x34ef7d)),'baseRev':_0x328b82[_0x5a479f(0x23d)](_0x34ef7d),'revision':0x0,'userID':_0x15adbf,'memberID':_0x2f351a,'mutations':_0x344c30},'pendingMutations':_0x580f58[_0x5a479f(0x1e8)](_0x344c30[_0x5a479f(0x25b)])};}function Ws(_0x1ef09e,_0xaf4617,_0x17e1b1,_0x2e59dd,_0x5bc41c){const _0x4669a3=_0x24c410;var _0x201ad6,_0x43572f,_0x13a60c,_0x16dfd1;const _0x145673=[_0x1ef09e['reduce']((_0x376fb2,_0x4b2fb0)=>{const _0x1afa90=_0x3b7c;var _0x817636;const {id:_0x29a377}=_0x376fb2,{id:_0x162159,type:_0x25ed70}=_0x4b2fb0,_0x600b49=(_0x817636=_0x376fb2['params'])!=null?_0x817636:{'actions':null},_0x1952f9=_0x4b2fb0[_0x1afa90(0x57a)];if(_0x29a377&&_0x29a377!==_0x162159)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x29a377+_0x1afa90(0x2b2)+_0x162159+'.');return{..._0x376fb2,'id':_0x162159,'type':_0x25ed70,'params':{'unitId':_0x1952f9['unitId'],'textRanges':_0x1952f9[_0x1afa90(0x566)],'actions':a[_0x1afa90(0x2fc)][_0x1afa90(0x3e1)](_0x600b49['actions'],_0x1952f9[_0x1afa90(0x599)])}};},{})],_0x265b7d=(_0x43572f=(_0x201ad6=_0x5bc41c[_0x4669a3(0x507)]())==null?void 0x0:_0x201ad6['userID'])!=null?_0x43572f:_0x4669a3(0x28e),_0x315e83=(_0x16dfd1=(_0x13a60c=_0x5bc41c[_0x4669a3(0x507)]())==null?void 0x0:_0x13a60c[_0x4669a3(0x259)])!=null?_0x16dfd1:_0x4669a3(0x28e);return{'changeset':{'unitID':_0xaf4617,'type':_['mapDocumentTypeToUniverType'](_0x17e1b1['getUnitType'](_0xaf4617)),'baseRev':_0x2e59dd[_0x4669a3(0x23d)](_0xaf4617),'revision':0x0,'userID':_0x265b7d,'memberID':_0x315e83,'mutations':_0x145673},'pendingMutations':[]};}const Fs={'id':C[_0x24c410(0x32d)]['id'],'type':a['CommandType'][_0x24c410(0x5b0)],'params':{}};var Gs=Object['defineProperty'],Ys=Object[_0x24c410(0x3e3)],z=(_0x24bb55,_0x3a86ae,_0x2c3fad,_0x3b926f)=>{const _0x240847=_0x24c410;for(var _0x392ab7=_0x3b926f>0x1?void 0x0:_0x3b926f?Ys(_0x3a86ae,_0x2c3fad):_0x3a86ae,_0xef2998=_0x24bb55[_0x240847(0x25b)]-0x1,_0x1a7f12;_0xef2998>=0x0;_0xef2998--)(_0x1a7f12=_0x24bb55[_0xef2998])&&(_0x392ab7=(_0x3b926f?_0x1a7f12(_0x3a86ae,_0x2c3fad,_0x392ab7):_0x1a7f12(_0x392ab7))||_0x392ab7);return _0x3b926f&&_0x392ab7&&Gs(_0x3a86ae,_0x2c3fad,_0x392ab7),_0x392ab7;},m=(_0xbd887f,_0x26da52)=>(_0xf9a421,_0x404eef)=>_0x26da52(_0xf9a421,_0x404eef,_0xbd887f),U=(_0x14a7cf=>(_0x14a7cf[_0x24c410(0x2ea)]=_0x24c410(0x1f0),_0x14a7cf[_0x24c410(0x4fb)]=_0x24c410(0x289),_0x14a7cf[_0x24c410(0x263)]=_0x24c410(0x237),_0x14a7cf['AWAITING']=_0x24c410(0x256),_0x14a7cf[_0x24c410(0x26e)]=_0x24c410(0x277),_0x14a7cf['FETCH_MISS']='fetch_missing',_0x14a7cf[_0x24c410(0x26a)]=_0x24c410(0x4fc),_0x14a7cf[_0x24c410(0x3e9)]=_0x24c410(0x231),_0x14a7cf))(U||{});class J{constructor(_0x1d78f4,_0x388641,_0xe6834f,_0x3c1299,_0x607093,_0x2ac35b,_0x5f2646,_0x22132c,_0x3ab0b0){const _0x36cac2=_0x24c410;u(this,_0x36cac2(0x575),null),u(this,_0x36cac2(0x5ea),[]),(this[_0x36cac2(0x4a2)]=_0x1d78f4,this[_0x36cac2(0x28b)]=_0x388641,this[_0x36cac2(0x5dc)]=_0x607093,this[_0x36cac2(0x2ed)]=_0x2ac35b,this[_0x36cac2(0x4b4)]=_0x5f2646,this['_revisionService']=_0x22132c,this['_localCacheService']=_0x3ab0b0,this[_0x36cac2(0x575)]=_0xe6834f,this['_pendingMutations']=_0x3c1299);}[_0x24c410(0x583)](_0x3ee99b){const _0x197ede=_0x24c410,_0x26d93b=this['_revisionService']['getCurrentRevOfUnit'](this[_0x197ede(0x4a2)]);return _0x3ee99b[_0x197ede(0x492)]>_0x26d93b+0x1?(this[_0x197ede(0x5dc)]['onMissingChangesets']({'from':_0x26d93b,'to':_0x3ee99b[_0x197ede(0x492)]-0x1}),!0x0):!0x1;}[_0x24c410(0x234)](_0x2e118f){const _0x27a61e=_0x24c410;this[_0x27a61e(0x4b4)][_0x27a61e(0x330)](this[_0x27a61e(0x4a2)],_0x2e118f);}['_transformSelections'](_0x5e3817){const _0x245bf1=_0x24c410;var _0x562a53,_0x2f3d60;(_0x2f3d60=(_0x562a53=this[_0x245bf1(0x5dc)])['onTransformSelections'])==null||_0x2f3d60[_0x245bf1(0x5a2)](_0x562a53,_0x5e3817);}[_0x24c410(0x477)](_0x484e06){const _0x1d94f0=_0x24c410;var _0x228dcb,_0x4a6ba;return(_0x4a6ba=(_0x228dcb=this[_0x1d94f0(0x5dc)])['onTransformIME'])==null?void 0x0:_0x4a6ba['call'](_0x228dcb,_0x484e06);}['_transformRemoteChangesetByIMECache'](_0x3c5cc9){const _0x122cfc=_0x24c410;var _0x20c3d3,_0x4e397c,_0x22913a;return(_0x22913a=(_0x4e397c=(_0x20c3d3=this[_0x122cfc(0x5dc)])[_0x122cfc(0x31b)])==null?void 0x0:_0x4e397c['call'](_0x20c3d3,_0x3c5cc9))!=null?_0x22913a:_0x3c5cc9;}['_syncEditingCollabCursor'](_0x54fa10){const _0x139a18=_0x24c410;var _0x1b8af9,_0x181f09;if(this[_0x139a18(0x28b)]===$[_0x139a18(0x489)]){const {unitID:_0x52b0fe,mutations:_0xf80dda,memberID:_0x4d0eed}=_0x54fa10,_0x156f8f=_0xf80dda[0x0]['params'][_0x139a18(0x566)];Array[_0x139a18(0x2fa)](_0x156f8f)&&_0x156f8f[_0x139a18(0x25b)]>0x0&&((_0x181f09=(_0x1b8af9=this['_handler'])[_0x139a18(0x255)])==null||_0x181f09[_0x139a18(0x5a2)](_0x1b8af9,{'unitID':_0x52b0fe,'memberID':_0x4d0eed,'textRanges':_0x156f8f}));}}['_updateLocalCache'](){const _0x24a250=_0x24c410;this[_0x24a250(0x2b3)]['updateOfflineData'](this[_0x24a250(0x4a2)],this['type'],this[_0x24a250(0x575)],this[_0x24a250(0x5ea)]);}[_0x24c410(0x371)](){const _0x2b679d=_0x24c410;return this[_0x2b679d(0x2d3)][_0x2b679d(0x23d)](this[_0x2b679d(0x4a2)]);}[_0x24c410(0x296)](){const _0xe706ed=_0x24c410;this[_0xe706ed(0x2d3)][_0xe706ed(0x1d7)](this[_0xe706ed(0x4a2)]);}[_0x24c410(0x37c)](_0x5008a6){const _0x1efcfd=_0x24c410;var _0x12482c;const _0x5ab176=this[_0x1efcfd(0x370)](_0x5008a6),_0x19046e=a['sequenceExecute'](_0x5ab176['mutations'],this[_0x1efcfd(0x2ed)],{'fromCollab':!0x0});if(!_0x19046e[_0x1efcfd(0x3fc)])throw _0x19046e[_0x1efcfd(0x553)]instanceof Error?_0x19046e[_0x1efcfd(0x553)]:new Error((_0x12482c=_0x19046e[_0x1efcfd(0x553)])!=null?_0x12482c:_0x1efcfd(0x572));this[_0x1efcfd(0x477)](_0x5ab176),this[_0x1efcfd(0x234)](_0x5008a6),this[_0x1efcfd(0x23f)](_0x5ab176),this[_0x1efcfd(0x1ee)](_0x5ab176),this['_incrementRevisionNumber']();}}function _0x1183(){const _0x96a64d=['isTransformMutationsWithChangesetFailure','close$','_sendHeartbeatTimer','editingUnit','_checkMissing','subscribeEvent','1590918KvGVtI','fillStyle','_timeoutTimer','_name','M0\x200H16V16H0z','lineTo','leaveEvent','m1Prime','@univerjs/design','_backgroundColor','_toggleOnline','getWorkbookSelections','_registerDependencies','deserializeRangeWithSheet','@univerjs/network','NodePositionConvertToRectRange','snapshotServerUrl','change$','currentColor','uploadFileServerUrl','actions','_context','ERROR_EXCEED_SIZE','_scheduleTimestamp','NO_OTHER_CLIENTS_EDITING','randomUUID','gold400','getUnitOnRev','put','call','delete','failed\x20to\x20apply\x20missed\x20changesets!','4qHVUdc','hovered','FileId','_getUploadFileURL','xlink:href','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','collab-text-anchor-','function','_userManagerService','UNRECOGNIZED','getInterceptPoints','MUTATION','UNIVER_PROJECT','enableAuthServer','reconnect','univer-online-status-title','session.connection-failed','NOT_FOUND','getSheetId','selections','Tooltip','event$','baseRev','path','infoRsp','_telemetryService','getConfig','getTypeOfUnitDisposed$','disableLocalCache','getDocRanges','_getAPIPrefixPath','collabCursorState$','RegularPolygon','[FetchMissState]','_shapes','_cachedData','handleIRemoveRow','LOGIN_URL_KEY','Optional','/universer-api/file/{fileID}/sign-url','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','filter','_hovered','defineProperty','_snapshotService','hide','getMergeData','CommandType','unsubscribe','_collabSessionService','JOIN','/collaborator','top','HEARTBEAT_TIMEOUT_KEY','@univerjs/ui','_handler','session.room-full','session.collaboration-timeout','SheetCollaborationEntity','univer-online','session.will-retry','COMPRESS_MUTATION_SEND','TEXT_RANGE_LAYER_INDEX','code','OTHER_CLIENTS_EDITING','_change$','endRow','transformSelections','IUniverInstanceService','_pendingMutations','getSheetObject','_rescheduleHeartbeat','_disableEditing','@univerjs/sheets-ui','_changesetReqId','parseChangesetToProtocol','_updateSubUnitFromURLParams','fillRule','onCommentUpdate','snapshot','column','width','_compressMutationService','_collabCursorState$','getRelativeToViewportCoord','includes','_startCollaboration','UniverCollaborationClientPlugin','_startSheetCollabCursor','_removeClearOtherTimer','_color','commentUpdate$','getTypeOfUnitAdded$','incrementRevOfUnit','univerjs-icon\x20univerjs-icon-','RichTextEditingMutation','/universer-api/snapshot/','disposeUnit','collabStatus.fetchMiss','2909695RGJfnW','DocIMEInputManagerService','IConfigService','createElement','SheetCollabCursorShape','capture','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','userID','allowed','initWorkbookPermissionChange','UniverIcon','slice','cursorInfo$','_anchorDot','onlineStatus','_setupBeforeClosingHandler','stopTime','_syncEditingCollabCursor','getCurrentSelections','not_collab','_online','sessionStatus$','_textBubble','setConfig','deepClone','ImageSourceType','UNDEFINED','POST','_initCommandExecutedListener','APPLY_DUPLICATED','_isPermissionRej','WebSocketService','_getSendChangesetTimeout','url(#$1','InsertColCommandId','RemoveColCommandId','Module','forEach','/block/','sessionStatus','LocalCacheService','endColumn','SNAPSHOT_SERVER_URL_KEY','_onLocalMutation','collabStatus.offline','encode','_clearOtherTimers','onMissedChangesetFetched','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','session','switchMap','_initStatusComponent','_roomMembers$','LICENSE_EXPORT_SIZE_EXCEEDED','responseType','Error','_onCombEvent','ACTIVE_UNIT_EVENT_CHANNEL','[CollaborationSession]','_hideTimer','RECV','@univerjs-pro/collaboration','onPointerLeave$','_stopTelemetryCollaborationNewChangeset','batchAllowed','CollaborationStatus','sid','_uiPartsService','&source=','push','_permissionService','_ensureSubject','#FFF','ITelemetryService','createCollaborator','_createInitialStateImpl','from','_replaceFileID','registerHTTPInterceptor','EffectRefRangId','reduce','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose$','UniverCollaborationPlugin','offline','assign','LICENSE_MAX_UNITS_EXCEEDED','_transformUndoredo','MSG_FOR_ERROR','UNIVER_SHEET','pending','HTTPService','registerRenderModule','removeParam','setCurrentUser','_transformUndoRedoStack','getCurrentRevOfUnit','max','_transformSelections','YUUMI_URL_COL_OUT_OF_RANGE','[CollaborationEntity]','_localStorageService','HTTPRequest','IUIPartsService','onPointerEnter$','UNIVER_UNKNOWN','random','createInstance','_queuedRemoteChangesets','LIVESHARE_FETCH_OPERATIONS','round','setWaitCount','map','listCollaborators','collaboration-client.config','FAIL','useDependency','_beforeCloseService','unitId','_undoStacks','onSyncEditingCollabCursor','awaiting','[OfflineState]:\x20received\x20changeset.','[DataLoaderController]','memberID','_telemetryInfo','length','propertyIsEnumerable','_removeCollabCursors','_listenToOnlineEvent','create','_clearTimeoutTimer','@univerjs/telemetry','_cursors','PENDING','post','Vector2','_themeService','_handleEvent','_status$','_redoStacks','CONFLICT','getVpScrollXYInfoByPosToVp','getSheetBlock','collabSubmitChangesetUrl','AWAITING_WITH_PENDING','transformMutationsWithChangeset','_onCursorDelete','/unit/','collaborators','currentTheme$','collab-rect-range-','_startTelemetryCollaborationNewChangeset','refreshPermission','awaiting_with_pending','SessionStatus','file','UPDATE_CURSOR','selection','_onMessage','SEND_CHANGESET_TIMEOUT','none','IPermissionService','@univerjs/rpc','appendMutation','LOCAL_CACHE_INTERVAL_KEY','_fetchMissChangesets','RxDisposable','_drawRectRange','IUndoRedoService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_snapshotServerService','synced','_state','type','extend','closeSession','unknown','UNIVER_SLIDE','InsertSheetMutation','startsWith','LIVESHARE_OPERATION','0\x200\x2016\x2016','_docTransformIMECacheService','concat','_incrementRevisionNumber','CHANGESET_ACK','_exhaustRemoteChangesetQueue','connection\x20error','UNAUTHENTICATED','Subject','INTERNAL_ERROR','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_remoteChangesetQueue','_commentService','DeleteRangeMoveLeftCommandId','CollaborationSessionService','handleInsertCol','ThemeService','_docSyncEditingCollabCursorService','syncEditingCollabCursor','registerOnClose','objectID','saveOfflineData','save','resize','toDisposable','_scheduleCollaborationTimeoutTimer','_saveCache','ONLINE','_updateCollabCursors','_updateURLWithCurrentState','takeUntil','\x20-\x20','_localCacheService','1961032bsdJmG','_imageSourceCache','send','requireSession','roomMembers','flatMap','YUUMI_SUBSCRIPTION_NOT_FOUND','onload','liveShareNewHost','registerBeforeClose','_setupSubUnitSync','status$','[SyncedState]:\x20received\x20rejection.','svg','awaitingChangeset','transformMutation','getSkeleton','transformChangesets','_httpService','_getSignURL','updateOfflineData','APPLY_REJECT','resourceIDs','transformRemoteChangeset','telemetry\x20info\x20is\x20not\x20initialized','m2Prime','color','combineLatest','replace','loginUrlKey','mapTo','_revisionService','Univer','_getScale','executeCommand','saveSnapshot','getResourcesRequest','b64DecodeUnicode','Rectangle','XHRHTTPImplementation','loadSheet','_docSkeletonManagerService','0\x200\x2017\x2016','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','activeSheet$','getCurrentUnitForType','getTime','ENSURE_SNAPSHOT_EXECUTION','close','_substituteUndoStack','pauseCollaboration','colorChannel1','onSendChangeset','Shape','NOT_COLLAB','SetDocZoomRatioOperation','ITransformService','_commandService','createIdentifier','univer-offline','Disposable','_initUnitPermissionChange','LEAVE','collab-client.tooltip.reconnect','SnapshotService','transformIMECache','range','onPointerMove$','c1Prime','COLLAB_WEB_SOCKET_URL_KEY','isArray','take','JSONX','listRoles','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onlineStatusIcon','collaboratorID','docStateChange$','HttpExport','HELLO','_loadDoc','_getRedoStack','_syncEditingCollabCursorService','_clearRedo','getCoordByCell','_getAPIPrefix','_id','key','getAttachHeader','...','pluginName','sheets','IAuthzIoService','Undefined','_showConflictNotification','Workbook','useCallback','verdancy600','SNAPSHOT_HAS_BEEN_REMOVED','_transformService','@univerjs/drawing','_localeService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onTransformRemoteChangesetByIMECache','replaceTextRanges','isTransformMutationsWithChangesetSuccess','RemoveRowCommandId','conflict.title','ALREADY_EXISTS','_initRequestHeader','_renderManagerService','_onRemoteACK','collab-text-range-','_event$','_hover','@univerjs/docs-ui','\x0aCurrent:\x20','_univerInstanceService','roomMembers$','permission.title','online','EmptyMutation','/object/','getViewport','transformUndoRedo','COLLAB_SUBMIT_CHANGESET_URL','getCollabCursors$','Error\x20on\x20receiving\x20event','url(#off-line-single_clip0_910_343)','UnitEmbedded','red300','split','tag','/resources','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','APPLY_PERMISSION_DENIED','&to=','_waitCount','_unlockTransition','then','onStateChange','BuiltInUIPart','open$','asObservable','collabStatus.syncing','throttleTime','body','debug','_heartbeatTimer','Inject','CompressMutationService','stringify','handleInsertRangeMoveDown','_registerRenderDependencies','OffLineSingle','toRgbString','isInternalEditorID','_initModules','_sendingTimer','clear','@univerjs/engine-render','focused$','name','use','HttpImport','subscribe','getCollabEntity$','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_sessions','purple300','CollaborationStatusDisplay','saveSheetBlock','TOO_MANY_REQUESTS','LICENSE_DISTRO_REJECTED','toLowerCase','_colorAssignService','displayName','MessageType','\x20in\x20_schedule.','_onOffline','USERS_ENTER','?size=','_drawAnchor','_clearLocalCache','SNAPSHOT_URL_KEY','Unknown\x20user','_collabCursorController','localeService','_transformRemoteChangesetByIMECache','_getCurrentRevision','arc','[PendingState]:\x20received\x20acknowledgement.','_cursorInfo$','attrs','rxjs/operators','getCurrent','onCommandExecuted','assignAColorForMemberID','sheetID','_anchor','_executeRemoteChangeset','isTransformMutationFailure','AuthzIoHttpService','_collaborationTimeoutTimer','ws://127.0.0.1:8000/universer-api/comb/connect','_retryCount','setItem','downloadEndpointUrl','handleIRemoveCol','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','collabWebSocketUrl','setTimeout','LocaleService','copyFileMeta','defs','clearInterval','loadOfflineData','children','_shouldReportTelemetry','_getSaveTimeout','setInterval','href','_loadSheet','_init','HEARTBEAT_TIMEOUT','rxjs','authzUrl','fetchThroughInterceptors','/universer-api/authz','_applyRemoteChangeset','_getSheetObject','[CollaborationSessionService]','encodeURIComponent','BehaviorSubject','_onUserLeave','getFocusedUnit','debounceTime','/-/object/-/batch_allowed','CHANGESET_REJ','_entityInit$','onRemoteRej','_decreaseWaiting','_initResize','now','RETRY_CONNECTING_MAX_COUNT','sendChangesetTimeout','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_session','concatMap','editing\x20status\x20changed\x20to','_members','whenReady','putCollaborators','eventID','_type','collaboration-session-retry','row','size','_onConnectionFailed','save\x20fail\x20reason\x20is\x20','url','roomInfos','COLLAB_SUBMIT_CHANGESET_URL_KEY','triggerDblclick','show','/-/object/list','_transformStack','min','_socketReady','_getAnchorBounding','_clearScheduledTask','black','CONNECTOR_DATA_TOO_LARGE','resend','collaboration.single-unit.warning','_messageService','/rev/','APPLY_NON_SEQUENTIAL_REVISION','IRenderManagerService','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','_selfUnitIDs','bottom','CommentService','_createInitialState','add','action','_saveTaskMap','getCellPositionByOffset','_commentUpdate$','_drawTextRange','IRemoteInstanceService','has','HEARTBEAT','_lockTransition','updatePermissionObjEvent','SHOULD_CLOSE_CONN','trim','rgba(255,\x20255,\x20255,\x200.01)','_getUndoStack','CollaborationController','override','compose','DocCollaborationEntity','getOwnPropertyDescriptor','objectType','socket\x20open.','onlineStatusTitle','merge','_docStateChangeManagerService','OFFLINE','list','SnapshotServerOverHTTPService','reqId','_changesetSessionId','permission.content','INVALID_ARGUMENT','rng','getLatestCsReqIdBySid','WebURLService','find','[PendingState]:\x20received\x20rejection.','PERMISSION_REJ','off-line-single_clip0_910_343','_roomMembers','SheetPermissionInitController','routeKey','onRemoteAck','_unitID','result','VIEWPORT_KEY','getOffsetConfig','confirm','debounce','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','currentSkeleton$','indexOf','pipe','_docTransformSelectionsService','image/png','COMPLETION_FINISHED','pushState','ranges','addEventListener','storage','get','duration','x-univer-host','ILogService','delay','/universer-api/stream/file/upload','getColor','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','univer-online-status','auth.needGotoLoginAlert','_onRemoteRejected','_scheduleSaving','_submitChangeset','[OfflineState]:\x20received\x20rejection.','ERROR_IMAGE','setAlpha','getActiveSheet','AUTHZ_URL_KEY','removeMember','WorkbookEditablePermission','fromEventSubject','requestParams','INotificationService','getUnit','bind','forwardRef','append','RETRY_CONNECTING_MAX_COUNT_KEY','headers','_sendHeartbeat','COMPRESS_MUTATION_APPLY','900172ehRcIK','_socketService','rev','_acknowledgedAwaitingChangeset','collabStatus.conflict','collaboration_new_changeset','_cursorShapes','_transformPreviousActiveRange','_entities','IDLE','_ws','mergeOverrideWithDependencies','setUndoRedoMutationParamsCache','objectActions','on-line-single_clip0_910_349','_state$','InsertRangeMoveRightCommandId','_waitForHeartbeatResponse','replaceState','_colorIndex','UPDATE_PERMISSION_OBJ','_range','shouldCloseConn','error$','urlChange$','getUnitId','JOINING','startColumn','LICENSE_IMPORT_SIZE_EXCEEDED','[CollaborationSessionService]:\x20socket\x20error','_transitionLocked','connectInjector','contains','_disabled','getSheetBySheetId','runRefRangeMutations','ColorKit','_getMergeRange','YUUMI_UNABLE_LOAD_URL','labelPosition','_replayCachedMutations','_http','onTransformIME','OnLineSingle','_scene','COLORS','_throwTelemetryCollaborationNewChangeset','_draw','Tools','url(#on-line-single_clip0_910_349)','_removeRoom','_getDownloadEndpointURL','USERS_LEAVE','DocSkeletonManagerService','UniverInstanceType','_initMergeInterceptor','state','Plugin','[UniverCollaborationClientPlugin]','textEncoder','off-line-single','getParam','_urlService','APPLY_REVISION_CONFILICT','updatePermissionPoint','_tryReconnect','_collaborationController','Rect','DisposableCollection','_sheetSkeletonManagerService','_scheduleClearOtherTimer','addImageSourceCache','onTransformSelections','_collaborationSessionService','CHANGESET_REVISION_CONFILICT','clearTimeout','_transformIMECache','init','status','shareReplay','getDeserializedSheetBlock','_updateStatus','text','LOCAL_CACHE_INTERVAL','members','unit-cache-','_onRemoteChangeset','target','FromArray','unload','SUCCUSS','data','CollaborationSocketService','[SyncedState]:\x20received\x20acknowledgement.','UNIVER_DOC','SUBMIT_CHANGESET','_refRangeService','joinEvent','set','hasOwnProperty','DocStateChangeManagerService','_schedule','_initCloseConn','revision','/allowed','ICommandService','_injector','changesets','generateRandomId','SetWorksheetActivateCommand','@univerjs-pro/license','getValue','values','withCredentials','resolve','_updateLocalCache','72lXRPCs','number','submit\x20changeset\x20error!','unitID','complete','_memberService','hidden','mutations','RevisionService','getCollabEntity','next','_labelPosition','_HTTPService','SheetsSelectionsService','toStringTag','_render','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessionStatus$','isActive','disposeWithMe','IMessageService','_undoRedoService','title','SEND_CHANGESET_TIMEOUT_KEY','_send','toggleOnline','subUnitId','_lastPointer','_retryConnectingTimer','toggleOffline','objects','_onCursorUpdate','_handleJoinEvent','univer-pro.collaboration-client-socket-service','createSocket','LIVESHARE_REQUEST_HOST','CollaborationEntity','unit','serializeRangeWithSheet','signUrlServerUrl','getRenderById','_configService','UNKNOWN_CODE','_tryEnsureSocket','_socket$','_updateLocalCursor','3173100ZvAKyI','AWAITING','icon','_config','#fff','_unitOnClients','fill','UnitSnapshot','mapDocumentTypeToUniverType','exhaustSavingTask','[OfflineState]:\x20received\x20acknowledgement.','DataLoaderController','isPermissionRej','_getLoginPath','image/jpg','className','_assignedColors','addObject','DesktopCollaborationStatusDisplayController','SNAPSHOT_INVALID_SNAPSHOT','subunit','2616400OHwPmu','getRoom','_onUserJoin','saveChangeset','IURLService','LIVESHARE_NEW_HOST','newCsEvent','parseProtocolChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','LIVESHARE_TERMINATE','collaboration-client.offline-data-not-saved','react','isTransformChangesetsSuccess','translate(.97)','permissionRejEvent','measureText','ISnapshotServerService','/role','EXCHANGE_SIGN_URL_SERVER_URL_KEY','interceptor','Injector','updateMember','CollaborationEvent','socketService','doc.mutation.rich-text-editing','SYNCED','conflict','registerRefRange','unshift','fetchMissingChangesets','startRow','json','onlyLocal','PERMISSION_DENIED','BASE64','UUID','HEADER_MENU','getCurrentUser','IContextService','ImageUploadStatusType','PSEUDO_FETCH_MISSING_RESULT','\x0aAfter:\x20','deserializeToCombResponse','_onConflict','onMissingChangesets','INGEST','_toggleOffline','_getSnapshotAPIPrefix','cursorInfo','catch','_onRefRangeChange','IBeforeCloseService','registerComponent','_eventUnsubscribe','_logService','_cursor','_refreshCollabCursors','visibilitychange','_clearHeartbeatTimer','with','originalMeta','_updateState','isValidRectRange','_handleHover','ICollaborationSocketService','getMember','_sheetTransformSelectionsService','COMMENT_UPDATE','getUnitStatus$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','InsertRowCommandId','setShapeProps','popstate','UNKNOWN_CMD','_collaborationPaused','SetTextSelectionsOperation','distinctUntilChanged','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','@univerjs/core','image/gif','getAncestorScale','MergeInterceptorFactory','_getCtorByUniverType','NEW_CHANGESETS','_joinRoom','_createSocket','entries','message$','handleDeleteRangeMoveLeft','reject','prototype','handleInsertRangeMoveRight','transform','fillText','onRemoteChangeset','_listenToOfflineEvent','7029281vWBveU','backgroundColor','_singleActiveUnitService','getRangePointData','[CollaborationUndoRedoService]','FETCH_MISSING','fetchMiss','_onRecvEvent','dispose','_unitStatus','_instanceService','defIds','getImage','fromEvent','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','{fileID}','drawWith','error','origin','ImageIoService','_docSkeleton','_createHandler','_handleLeaveEvent','cmd','roles','_notificationService','_onFetchMissResult','handleInsertRow','_socketMessageSubscription','string','unitId\x20is\x20not\x20found','findNodePositionByCharIndex','searchParams','handleDeleteRangeMoveUp','location','history','textRanges','_socket','state$','_scheduleHeartbeat','SetSelectionsOperation','_onJoinRoomEvent','addObjects','_clearUndo','1em','_candidateSocket','workbook','_initEventListeners','[CollaborationState]:\x20apply\x20error!','Warning','visibilityState','_awaitingChangeset','useRef','getMemberID','toString','CollaborationSession','params','_startDocCollabCursor','idSuffix','_clearCollaborationTimeoutTimer','div'];_0x1183=function(){return _0x96a64d;};return _0x1183();}let ie=class extends J{constructor(_0x2897bd,_0x3c0d19,_0x4e2fc1,_0x334928,_0x394300,_0x2111f7,_0x1a34d5,_0x37dbc2,_0x26dcd0,_0x20bfe5){const _0x2e202d=_0x24c410;super(_0x2897bd,_0x3c0d19,null,[],_0x4e2fc1,_0x37dbc2,_0x1a34d5,_0x334928,_0x394300),u(this,'status',_0x2e202d(0x289)),(this[_0x2e202d(0x495)]=_0x2111f7,this[_0x2e202d(0x518)]=_0x26dcd0,this[_0x2e202d(0x317)]=_0x20bfe5);}['appendMutation'](_0x53e9b9){const _0x3c0890=_0x24c410,_0x1326d3=this[_0x3c0890(0x495)][_0x3c0890(0x248)](k,this[_0x3c0890(0x4a2)],this[_0x3c0890(0x28b)],[_0x53e9b9],this[_0x3c0890(0x5dc)]);return _0x1326d3[_0x3c0890(0x490)](),_0x1326d3[_0x3c0890(0x49e)](),_0x1326d3;}['onRemoteChangeset'](_0x46bd70){const _0x292208=_0x24c410;if(this[_0x292208(0x583)](_0x46bd70))return this[_0x292208(0x495)][_0x292208(0x248)](x,this[_0x292208(0x4a2)],this[_0x292208(0x28b)],null,[],null,[_0x46bd70],this[_0x292208(0x5dc)]);try{const _0x16d74a=this[_0x292208(0x317)][_0x292208(0x26f)](_0x46bd70,[Fs]);if(_[_0x292208(0x31d)](_0x16d74a)){const {c1Prime:_0x486779}=_0x16d74a;return this[_0x292208(0x37c)](_0x486779),this;}throw _0x16d74a[_0x292208(0x553)];}catch(_0x720c82){return this[_0x292208(0x518)]['error'](_0x720c82),this['_onConflict'](!0x1);}}[_0x24c410(0x50d)](_0x4bafa8){const _0x2edd5a=_0x24c410;return this[_0x2edd5a(0x495)]['createInstance'](F,this[_0x2edd5a(0x4a2)],this[_0x2edd5a(0x28b)],null,[],this[_0x2edd5a(0x5dc)],_0x4bafa8);}[_0x24c410(0x3fa)](){const _0x3ed85a=_0x24c410;throw new Error(_0x3ed85a(0x488));}[_0x24c410(0x3a4)](){const _0x38610c=_0x24c410;throw new Error(_0x38610c(0x2c0));}[_0x24c410(0x4bc)](){const _0x5528fc=_0x24c410;return this[_0x5528fc(0x495)]['createInstance'](G,this[_0x5528fc(0x4a2)],this[_0x5528fc(0x28b)],null,[],this[_0x5528fc(0x5dc)]);}['toggleOnline'](){return this;}[_0x24c410(0x3c5)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x488307=_0x24c410,_0x8b0b69=this['_revisionService'][_0x488307(0x23d)](this[_0x488307(0x4a2)]);return this[_0x488307(0x5dc)][_0x488307(0x50e)]({'from':_0x8b0b69,'to':0x0}),this[_0x488307(0x495)][_0x488307(0x248)](x,this[_0x488307(0x4a2)],this['type'],null,[],null,[],this[_0x488307(0x5dc)]);}};ie=z([m(0x3,a[_0x24c410(0x349)](_[_0x24c410(0x4a7)])),m(0x4,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),m(0x5,a['Inject'](a[_0x24c410(0x4f6)])),m(0x6,a[_0x24c410(0x286)]),m(0x7,a[_0x24c410(0x494)]),m(0x8,a[_0x24c410(0x40f)]),m(0x9,_[_0x24c410(0x2ec)])],ie);let k=class extends J{constructor(_0x5b8d4a,_0x5782da,_0x324ffe,_0x5e5bcf,_0xa5658a,_0x539403,_0x427250,_0xb97181,_0x56a032,_0x53502f,_0x43a2df,_0x389286,_0x2a9b5a,_0x104006){const _0x3d56ee=_0x24c410;super(_0x5b8d4a,_0x5782da,null,_0x324ffe,_0x5e5bcf,_0x53502f,_0x104006,_0x539403,_0x427250),u(this,_0x3d56ee(0x479),_0x3d56ee(0x237)),u(this,_0x3d56ee(0x59c),null),u(this,_0x3d56ee(0x352),null),(this[_0x3d56ee(0x495)]=_0xa5658a,this[_0x3d56ee(0x4a4)]=_0xb97181,this[_0x3d56ee(0x518)]=_0x56a032,this['_configService']=_0x43a2df,this[_0x3d56ee(0x317)]=_0x389286,this[_0x3d56ee(0x329)]=_0x2a9b5a);}[_0x24c410(0x281)](_0x57177a){const _0x187c1a=_0x24c410;return this[_0x187c1a(0x5ea)][_0x187c1a(0x222)](_0x57177a),this[_0x187c1a(0x49e)](),this;}[_0x24c410(0x540)](_0x535ac1){const _0x2c4947=_0x24c410;if(this[_0x2c4947(0x583)](_0x535ac1))return this[_0x2c4947(0x3c2)](),this[_0x2c4947(0x495)][_0x2c4947(0x248)](x,this[_0x2c4947(0x4a2)],this[_0x2c4947(0x28b)],null,this[_0x2c4947(0x5ea)],null,[_0x535ac1],this[_0x2c4947(0x5dc)]);try{const _0x2fe04f=this[_0x2c4947(0x317)][_0x2c4947(0x26f)](_0x535ac1,this[_0x2c4947(0x5ea)]);if(_[_0x2c4947(0x31d)](_0x2fe04f)){const {c1Prime:_0x3329cb,m2Prime:_0x25bcf9}=_0x2fe04f;this[_0x2c4947(0x37c)](_0x3329cb);const _0x5d7a53=this['_injector'][_0x2c4947(0x248)](k,this[_0x2c4947(0x4a2)],this['type'],_0x25bcf9,this[_0x2c4947(0x5dc)]);return this[_0x2c4947(0x3c2)](),_0x5d7a53[_0x2c4947(0x490)](this[_0x2c4947(0x59c)]?Math['max'](0x0,new Date()[_0x2c4947(0x2e2)]()-this[_0x2c4947(0x59c)]):this[_0x2c4947(0x1fd)]()),_0x5d7a53;}throw _0x2fe04f[_0x2c4947(0x553)];}catch(_0x295655){return this[_0x2c4947(0x518)][_0x2c4947(0x553)](_0x295655),this[_0x2c4947(0x50d)](!0x1);}}['onRemoteAck'](){const _0x5eccdf=_0x24c410;throw new Error(_0x5eccdf(0x373));}[_0x24c410(0x3a4)](){const _0xb47d51=_0x24c410;throw new Error(_0xb47d51(0x3f4));}[_0x24c410(0x4bc)](){const _0x2d30a6=_0x24c410;return this['_clearScheduledTask'](),this['_injector'][_0x2d30a6(0x248)](G,this[_0x2d30a6(0x4a2)],this[_0x2d30a6(0x28b)],null,this['_pendingMutations'],this[_0x2d30a6(0x5dc)]);}['toggleOnline'](){return this;}['_schedule'](_0x333a59){const _0x3b14aa=_0x24c410,_0x42a60c=_0x333a59!=null?_0x333a59:this['_getSendChangesetTimeout']();this[_0x3b14aa(0x59c)]=new Date()[_0x3b14aa(0x2e2)](),this[_0x3b14aa(0x352)]=window[_0x3b14aa(0x387)](()=>{const _0x1a2c27=_0x3b14aa;this[_0x1a2c27(0x3c2)]();let _0x1d95b3=null;switch(this[_0x1a2c27(0x28b)]){case $[_0x1a2c27(0x236)]:{_0x1d95b3=at(this['_pendingMutations'],this[_0x1a2c27(0x4a2)],this['_univerInstanceService'],this[_0x1a2c27(0x2d3)],this[_0x1a2c27(0x4a4)]);break;}case $[_0x1a2c27(0x489)]:{this['_pendingMutations']['every'](_0x232659=>_0x232659['id']===se[_0x1a2c27(0x1d9)]['id'])?_0x1d95b3=Ws(this[_0x1a2c27(0x5ea)],this['unitID'],this[_0x1a2c27(0x329)],this[_0x1a2c27(0x2d3)],this[_0x1a2c27(0x4a4)]):_0x1d95b3=at(this[_0x1a2c27(0x5ea)],this[_0x1a2c27(0x4a2)],this[_0x1a2c27(0x329)],this[_0x1a2c27(0x2d3)],this[_0x1a2c27(0x4a4)]);break;}default:throw new Error(_0x1a2c27(0x3aa)+this[_0x1a2c27(0x28b)]+_0x1a2c27(0x366));}const {changeset:_0x450aab,pendingMutations:_0x3dda4a}=_0x1d95b3;this[_0x1a2c27(0x5dc)]['onSendChangeset'](_0x450aab);const _0x2b5c3e=_0x3dda4a['length']?this[_0x1a2c27(0x495)][_0x1a2c27(0x248)](B,this[_0x1a2c27(0x4a2)],this[_0x1a2c27(0x28b)],_0x450aab,_0x3dda4a,this[_0x1a2c27(0x5dc)]):this[_0x1a2c27(0x495)][_0x1a2c27(0x248)](W,this[_0x1a2c27(0x4a2)],this[_0x1a2c27(0x28b)],_0x450aab,this['_handler']);_0x2b5c3e['_updateLocalCache'](),this['_handler'][_0x1a2c27(0x340)](this,_0x2b5c3e);},_0x42a60c);}[_0x24c410(0x1fd)](){const _0x1b0739=_0x24c410;var _0x476e09;const _0x1e360a=this[_0x1b0739(0x4c8)][_0x1b0739(0x5bf)](L);return(_0x476e09=_0x1e360a==null?void 0x0:_0x1e360a[_0x1b0739(0x3a9)])!=null?_0x476e09:Jt;}[_0x24c410(0x3c5)](){const _0x436667=_0x24c410;throw new Error(_0x436667(0x401));}['_clearScheduledTask'](){const _0x3f2ba4=_0x24c410;this[_0x3f2ba4(0x352)]!=null&&(clearTimeout(this[_0x3f2ba4(0x352)]),this[_0x3f2ba4(0x352)]=null);}[_0x24c410(0x50d)](_0x159362){const _0xfa27d=_0x24c410;return this[_0xfa27d(0x3c2)](),this['_injector'][_0xfa27d(0x248)](F,this[_0xfa27d(0x4a2)],this['type'],null,this[_0xfa27d(0x5ea)],this['_handler'],_0x159362);}};k=z([m(0x4,a['Inject'](a['Injector'])),m(0x5,a['Inject'](_[_0x24c410(0x4a7)])),m(0x6,a[_0x24c410(0x349)](exports['LocalCacheService'])),m(0x7,a[_0x24c410(0x349)](q)),m(0x8,a['ILogService']),m(0x9,a[_0x24c410(0x494)]),m(0xa,a[_0x24c410(0x1df)]),m(0xb,_[_0x24c410(0x2ec)]),m(0xc,a[_0x24c410(0x5e9)]),m(0xd,a[_0x24c410(0x286)])],k);let W=class extends J{constructor(_0x43cdc7,_0x15ff69,_0x5e9ea8,_0x1e9624,_0x38f30d,_0x1f0b06,_0x17227a,_0x22a9a5,_0x24f146,_0x10d874,_0x529895){const _0x2c4d39=_0x24c410;super(_0x43cdc7,_0x15ff69,_0x5e9ea8,[],_0x1e9624,_0x22a9a5,_0x529895,_0x1f0b06,_0x17227a),u(this,_0x2c4d39(0x479),_0x2c4d39(0x256)),(this[_0x2c4d39(0x495)]=_0x38f30d,this['_logService']=_0x24f146,this['_transformService']=_0x10d874);}['appendMutation'](_0x5d09c3){const _0x584d89=_0x24c410,_0x5497c1=this[_0x584d89(0x495)]['createInstance'](B,this['unitID'],this['type'],this[_0x584d89(0x575)],[_0x5d09c3],this[_0x584d89(0x5dc)]);return _0x5497c1['_updateLocalCache'](),_0x5497c1;}[_0x24c410(0x540)](_0x2d0fc4){const _0x57d032=_0x24c410;if(this[_0x57d032(0x583)](_0x2d0fc4))return this[_0x57d032(0x495)][_0x57d032(0x248)](x,this[_0x57d032(0x4a2)],this['type'],this['_awaitingChangeset'],[],null,[_0x2d0fc4],this[_0x57d032(0x5dc)]);try{const _0x5bd918=this[_0x57d032(0x317)][_0x57d032(0x2c5)]([_0x2d0fc4],[this[_0x57d032(0x575)]],!0x1);if(_[_0x57d032(0x4ee)](_0x5bd918)){const {c1Prime:_0x2fa96d,c2Prime:_0x62bb05}=_0x5bd918;this[_0x57d032(0x37c)](_0x2fa96d[0x0]),_0x62bb05[0x0][_0x57d032(0x5bb)]=this[_0x57d032(0x371)]();const _0x545a1b=this['_injector'][_0x57d032(0x248)](W,this[_0x57d032(0x4a2)],this['type'],_0x62bb05[0x0],this[_0x57d032(0x5dc)]);return _0x545a1b[_0x57d032(0x49e)](),_0x545a1b;}return this[_0x57d032(0x50d)](!0x1);}catch(_0x27a183){return this['_logService']['error'](_0x27a183),this[_0x57d032(0x50d)](!0x1);}}[_0x24c410(0x3fa)](_0x368977){const _0x515305=_0x24c410,_0x4b1c30=this['_revisionService']['getCurrentRevOfUnit'](this[_0x515305(0x4a2)]);if(_0x368977['revision']<_0x4b1c30-0x1)return this;if(this[_0x515305(0x583)](_0x368977))return this[_0x515305(0x495)][_0x515305(0x248)](x,this[_0x515305(0x4a2)],this[_0x515305(0x28b)],null,[],this[_0x515305(0x575)],[],this[_0x515305(0x5dc)]);this['_incrementRevisionNumber']();const _0x223c2f=this[_0x515305(0x495)][_0x515305(0x248)](ie,this[_0x515305(0x4a2)],this[_0x515305(0x28b)],this[_0x515305(0x5dc)]);return _0x223c2f[_0x515305(0x49e)](),_0x223c2f;}[_0x24c410(0x3a4)](_0x5c28e9){const _0x4e5123=_0x24c410;return this[_0x4e5123(0x50d)](!!(_0x5c28e9!=null&&_0x5c28e9[_0x4e5123(0x4d9)]));}[_0x24c410(0x4bc)](){const _0x318206=_0x24c410;return this[_0x318206(0x495)]['createInstance'](G,this['unitID'],this[_0x318206(0x28b)],this[_0x318206(0x575)],[],this[_0x318206(0x5dc)]);}['toggleOnline'](){return this;}['resend'](){const _0x59141f=_0x24c410;this[_0x59141f(0x5dc)][_0x59141f(0x2e8)](this['_awaitingChangeset']);}[_0x24c410(0x50d)](_0x569911){const _0x2a23fc=_0x24c410;return this['_injector'][_0x2a23fc(0x248)](F,this['unitID'],this[_0x2a23fc(0x28b)],this[_0x2a23fc(0x575)],[],this['_handler'],_0x569911);}};W=z([m(0x4,a[_0x24c410(0x349)](a['Injector'])),m(0x5,a['Inject'](_[_0x24c410(0x4a7)])),m(0x6,a[_0x24c410(0x349)](exports['LocalCacheService'])),m(0x7,a['ICommandService']),m(0x8,a[_0x24c410(0x40f)]),m(0x9,_[_0x24c410(0x2ec)]),m(0xa,a[_0x24c410(0x286)])],W);let B=class extends J{constructor(_0x2b7480,_0xe92c44,_0x210079,_0x582761,_0x54d4c4,_0x5a4b3d,_0x2764f1,_0x505ee5,_0x43c947,_0x38196a,_0x5abc8c,_0x91f870){const _0x40b7cd=_0x24c410;super(_0x2b7480,_0xe92c44,_0x210079,_0x582761,_0x54d4c4,_0x43c947,_0x91f870,_0x2764f1,_0x505ee5),u(this,_0x40b7cd(0x479),_0x40b7cd(0x277)),(this[_0x40b7cd(0x495)]=_0x5a4b3d,this[_0x40b7cd(0x518)]=_0x38196a,this[_0x40b7cd(0x317)]=_0x5abc8c);}['appendMutation'](_0x5ad789){const _0x4b86ac=_0x24c410;return this[_0x4b86ac(0x5ea)][_0x4b86ac(0x222)](_0x5ad789),this;}[_0x24c410(0x540)](_0x39f412){const _0x596c01=_0x24c410;if(this[_0x596c01(0x583)](_0x39f412))return this[_0x596c01(0x495)][_0x596c01(0x248)](x,this['unitID'],this[_0x596c01(0x28b)],this['_awaitingChangeset'],this[_0x596c01(0x5ea)],null,[_0x39f412],this[_0x596c01(0x5dc)]);try{const _0x5edc23=this['_transformService'][_0x596c01(0x2c5)]([_0x39f412],[this[_0x596c01(0x575)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x5edc23)){const {c1Prime:_0x5bddaa,c2Prime:_0x3716a0}=_0x5edc23,_0x5ccd00=this[_0x596c01(0x317)][_0x596c01(0x26f)](_0x5bddaa[0x0],this['_pendingMutations']);if(_[_0x596c01(0x31d)](_0x5ccd00)){const {c1Prime:_0x242dfd,m2Prime:_0x52e049}=_0x5ccd00;return this[_0x596c01(0x37c)](_0x242dfd),_0x3716a0[0x0][_0x596c01(0x5bb)]=this[_0x596c01(0x371)](),this[_0x596c01(0x495)][_0x596c01(0x248)](B,this['unitID'],this[_0x596c01(0x28b)],_0x3716a0[0x0],_0x52e049,this[_0x596c01(0x5dc)]);}throw _0x5ccd00[_0x596c01(0x553)];}throw _0x5edc23['error'];}catch(_0x314421){return this[_0x596c01(0x518)][_0x596c01(0x553)](_0x314421),this[_0x596c01(0x50d)](!0x1);}}[_0x24c410(0x3fa)](_0x821c92){const _0x15a3c3=_0x24c410;if(this['_checkMissing'](_0x821c92))return this[_0x15a3c3(0x495)][_0x15a3c3(0x248)](x,this[_0x15a3c3(0x4a2)],this[_0x15a3c3(0x28b)],null,this[_0x15a3c3(0x5ea)],this['_awaitingChangeset'],[],this[_0x15a3c3(0x5dc)]);this['_incrementRevisionNumber']();const _0xa6ce1=this[_0x15a3c3(0x495)]['createInstance'](k,this['unitID'],this[_0x15a3c3(0x28b)],this['_pendingMutations'],this[_0x15a3c3(0x5dc)]);return _0xa6ce1[_0x15a3c3(0x490)](),_0xa6ce1[_0x15a3c3(0x49e)](),_0xa6ce1;}[_0x24c410(0x3a4)](_0x2c8779){const _0x1e97f7=_0x24c410;return this[_0x1e97f7(0x50d)](!!(_0x2c8779!=null&&_0x2c8779['isPermissionRej']));}['toggleOffline'](){const _0x5c02ac=_0x24c410;return this['_injector'][_0x5c02ac(0x248)](G,this[_0x5c02ac(0x4a2)],this[_0x5c02ac(0x28b)],this[_0x5c02ac(0x575)],this[_0x5c02ac(0x5ea)],this[_0x5c02ac(0x5dc)]);}[_0x24c410(0x4b8)](){return this;}[_0x24c410(0x3c5)](){const _0x2c2f3c=_0x24c410;this[_0x2c2f3c(0x5dc)]['onSendChangeset'](this[_0x2c2f3c(0x575)]);}['_onConflict'](_0x3262ee){const _0x4c9d8f=_0x24c410;return this[_0x4c9d8f(0x495)][_0x4c9d8f(0x248)](F,this[_0x4c9d8f(0x4a2)],this[_0x4c9d8f(0x28b)],null,this[_0x4c9d8f(0x5ea)],this['_handler'],_0x3262ee);}};B=z([m(0x5,a['Inject'](a[_0x24c410(0x4f6)])),m(0x6,a['Inject'](_[_0x24c410(0x4a7)])),m(0x7,a['Inject'](exports[_0x24c410(0x205)])),m(0x8,a[_0x24c410(0x494)]),m(0x9,a[_0x24c410(0x40f)]),m(0xa,_['ITransformService']),m(0xb,a[_0x24c410(0x286)])],B);let F=class extends J{constructor(_0x10e112,_0x3c9f53,_0x5c1b66,_0x392a14,_0x22ec13,_0x3cedda=!0x1,_0x5e1f0d,_0x39d6e0,_0x59b1e5,_0x3b82ba,_0x33c24d,_0x1694e7,_0x46c287){const _0x4c6eea=_0x24c410;super(_0x10e112,_0x3c9f53,_0x5c1b66,_0x392a14,_0x22ec13,_0x39d6e0,_0x59b1e5,_0x33c24d,_0x3b82ba),u(this,_0x4c6eea(0x479),_0x4c6eea(0x4fc)),(this['_isPermissionRej']=_0x3cedda,this[_0x4c6eea(0x223)]=_0x5e1f0d,this[_0x4c6eea(0x319)]=_0x1694e7,this['_notificationService']=_0x46c287,this[_0x4c6eea(0x312)](),this[_0x4c6eea(0x36b)](),this[_0x4c6eea(0x5ed)]());}[_0x24c410(0x281)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x24c410(0x3a4)](){return this;}[_0x24c410(0x4bc)](){return this;}['toggleOnline'](){return this;}[_0x24c410(0x3c5)](){const _0x175f08=_0x24c410;throw new Error(_0x175f08(0x22e));}[_0x24c410(0x36b)](){const _0x1dff4e=_0x24c410;this[_0x1dff4e(0x2b3)]['updateOfflineData'](this['unitID'],this['type'],null,[]);}['_showConflictNotification'](){const _0x12f3ea=_0x24c410;this[_0x12f3ea(0x1fb)]?this[_0x12f3ea(0x55b)][_0x12f3ea(0x3bc)]({'title':this['_localeService']['t'](_0x12f3ea(0x32b)),'content':this[_0x12f3ea(0x319)]['t'](_0x12f3ea(0x3ee)),'type':_0x12f3ea(0x553),'duration':0x0}):this[_0x12f3ea(0x55b)][_0x12f3ea(0x3bc)]({'title':this['_localeService']['t'](_0x12f3ea(0x31f)),'content':this[_0x12f3ea(0x319)]['t']('conflict.content'),'type':_0x12f3ea(0x553),'duration':0x0});}[_0x24c410(0x5ed)](){const _0x5303e6=_0x24c410;this[_0x5303e6(0x223)]['updatePermissionPoint'](new C[(_0x5303e6(0x41f))](this[_0x5303e6(0x4a2)])['id'],!0x1);}};F=z([m(0x6,a[_0x24c410(0x349)](a[_0x24c410(0x27f)])),m(0x7,a['ICommandService']),m(0x8,a['IUndoRedoService']),m(0x9,a['Inject'](exports[_0x24c410(0x205)])),m(0xa,a[_0x24c410(0x349)](_[_0x24c410(0x4a7)])),m(0xb,a[_0x24c410(0x349)](a[_0x24c410(0x388)])),m(0xc,A[_0x24c410(0x422)])],F);let G=class extends J{constructor(_0x4d3d64,_0x108951,_0x117332,_0x26f2c1,_0x30bb00,_0x1f6133,_0x36bbb8,_0x387bef,_0x3f701a,_0x44e436){const _0x2a6825=_0x24c410;super(_0x4d3d64,_0x108951,_0x117332,_0x26f2c1,_0x30bb00,_0x3f701a,_0x44e436,_0x36bbb8,_0x387bef),u(this,_0x2a6825(0x479),_0x2a6825(0x231)),this[_0x2a6825(0x495)]=_0x1f6133;}[_0x24c410(0x281)](_0x86858a){const _0x449f5d=_0x24c410;return this[_0x449f5d(0x5ea)][_0x449f5d(0x222)](_0x86858a),this[_0x449f5d(0x49e)](),this;}[_0x24c410(0x540)](_0x27ec85){const _0x4d6972=_0x24c410;throw new Error(_0x4d6972(0x257));}[_0x24c410(0x3fa)](){const _0x577ee0=_0x24c410;throw new Error(_0x577ee0(0x4d7));}['onRemoteRej'](){const _0x1bc6f9=_0x24c410;throw new Error(_0x1bc6f9(0x419));}[_0x24c410(0x4bc)](){return this;}[_0x24c410(0x4b8)](){const _0x30e0f3=_0x24c410,{_injector:_0x16053b,_pendingMutations:_0x415d70,_awaitingChangeset:_0x30abdf,unitID:_0xea3d79,_handler:_0x3ebd05,type:_0x1e0b40}=this,_0x40f639=Ut(_0x16053b,_0xea3d79,_0x1e0b40,_0x30abdf,_0x415d70,_0x3ebd05);return _0x40f639 instanceof k?_0x40f639[_0x30e0f3(0x490)]():(_0x40f639 instanceof B||_0x40f639 instanceof W)&&_0x40f639['resend'](),_0x40f639;}[_0x24c410(0x3c5)](){const _0x27bab7=_0x24c410;throw new Error(_0x27bab7(0x2fe));}};G=z([m(0x5,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),m(0x6,a[_0x24c410(0x349)](_['RevisionService'])),m(0x7,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),m(0x8,a[_0x24c410(0x494)]),m(0x9,a[_0x24c410(0x286)])],G);let x=class extends J{constructor(_0x4f5e3d,_0x4e3db0,_0xaf9652,_0x92ee73,_0x259ea3,_0xae6abd,_0x41ba04,_0x55df91,_0x7501bf,_0x3a0f60,_0x16628d,_0xaa3ead,_0xa49aec,_0x7614e){const _0xcc9d09=_0x24c410;super(_0x4f5e3d,_0x4e3db0,_0xaf9652,_0x92ee73,_0x41ba04,_0xaa3ead,_0xa49aec,_0x7501bf,_0x3a0f60),u(this,_0xcc9d09(0x479),'fetch_missing'),(this[_0xcc9d09(0x42e)]=_0x259ea3,this[_0xcc9d09(0x249)]=_0xae6abd,this[_0xcc9d09(0x495)]=_0x55df91,this[_0xcc9d09(0x518)]=_0x16628d,this['_transformService']=_0x7614e);}[_0x24c410(0x20c)](_0x5a85d0){const _0x56d59a=_0x24c410;try{const _0x4ab519=[..._0x5a85d0,...this['_queuedRemoteChangesets']],_0x4612d9=[this[_0x56d59a(0x575)]||this[_0x56d59a(0x42e)]][_0x56d59a(0x5ce)](_0x3c4fd5=>!!_0x3c4fd5);let _0x7af0fa,_0x3a8d3d;if(_0x4612d9[_0x56d59a(0x25b)]){const _0x2ad0e2=this[_0x56d59a(0x317)][_0x56d59a(0x2c5)](_0x4ab519,_0x4612d9,!0x1);if(!_[_0x56d59a(0x4ee)](_0x2ad0e2))throw _0x2ad0e2[_0x56d59a(0x553)];_0x7af0fa=_0x2ad0e2[_0x56d59a(0x2f8)],_0x3a8d3d=_0x2ad0e2['c2Prime'];}else _0x7af0fa=_0x4ab519,_0x3a8d3d=[];let _0x3b92ac=this['_pendingMutations'];_0x7af0fa[_0x56d59a(0x202)](_0x432221=>{const _0x546678=_0x56d59a;let _0x470425;if(_0x3b92ac[_0x546678(0x25b)]){const _0x577bf9=this[_0x546678(0x317)][_0x546678(0x26f)](_0x432221,_0x3b92ac);if(!_[_0x546678(0x31d)](_0x577bf9))throw _0x577bf9[_0x546678(0x553)];_0x470425=_0x577bf9[_0x546678(0x2f8)],_0x3b92ac=_0x577bf9['m2Prime'];}else _0x470425=_0x432221;this[_0x546678(0x37c)](_0x470425);}),this[_0x56d59a(0x42e)]&&this[_0x56d59a(0x296)](),this[_0x56d59a(0x575)]&&_0x3a8d3d[_0x56d59a(0x25b)]&&(_0x3a8d3d[0x0][_0x56d59a(0x5bb)]=this[_0x56d59a(0x371)]());let _0x18fd1b;if(this[_0x56d59a(0x575)]&&_0x3b92ac[_0x56d59a(0x25b)]!==0x0)_0x18fd1b=this[_0x56d59a(0x495)][_0x56d59a(0x248)](B,this['unitID'],this['type'],_0x3a8d3d[0x0],_0x3b92ac,this[_0x56d59a(0x5dc)]);else{if(this['_awaitingChangeset']&&_0x3b92ac[_0x56d59a(0x25b)]===0x0)_0x3a8d3d[0x0][_0x56d59a(0x5bb)]=this['_getCurrentRevision'](),_0x18fd1b=this['_injector'][_0x56d59a(0x248)](W,this[_0x56d59a(0x4a2)],this['type'],_0x3a8d3d[0x0],this[_0x56d59a(0x5dc)]);else{if(_0x3b92ac[_0x56d59a(0x25b)]!==0x0){const _0x4334dc=this['_injector']['createInstance'](k,this[_0x56d59a(0x4a2)],this[_0x56d59a(0x28b)],_0x3b92ac,this[_0x56d59a(0x5dc)]);_0x4334dc['_schedule'](),_0x18fd1b=_0x4334dc;}else _0x18fd1b=this[_0x56d59a(0x495)][_0x56d59a(0x248)](ie,this['unitID'],this[_0x56d59a(0x28b)],this[_0x56d59a(0x5dc)]);}}return _0x18fd1b['_updateLocalCache'](),_0x18fd1b;}catch(_0x17addc){return this[_0x56d59a(0x518)][_0x56d59a(0x553)](_0x56d59a(0x5c6),_0x56d59a(0x5a4),_0x17addc),this[_0x56d59a(0x495)]['createInstance'](F,this[_0x56d59a(0x4a2)],this[_0x56d59a(0x28b)],this[_0x56d59a(0x575)],this[_0x56d59a(0x5ea)],this['_handler'],!0x1);}}[_0x24c410(0x3c5)](){const _0x53db81=_0x24c410;throw new Error(_0x53db81(0x4af));}[_0x24c410(0x281)](_0x130c31){const _0x4a743a=_0x24c410;return this[_0x4a743a(0x5ea)][_0x4a743a(0x222)](_0x130c31),this;}[_0x24c410(0x540)](_0x1c73aa){const _0x295b8e=_0x24c410;return this[_0x295b8e(0x249)][_0x295b8e(0x222)](_0x1c73aa),this;}['onRemoteAck'](_0x8244c6){const _0x12464e=_0x24c410;if(this[_0x12464e(0x575)])return this[_0x12464e(0x42e)]=this['_awaitingChangeset'],this[_0x12464e(0x575)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x24c410(0x3a4)](_0x20aae4){const _0x3399b1=_0x24c410;return this[_0x3399b1(0x50d)](!!(_0x20aae4!=null&&_0x20aae4[_0x3399b1(0x4d9)]));}[_0x24c410(0x4bc)](){const _0x332ee5=_0x24c410;return this['_injector']['createInstance'](G,this[_0x332ee5(0x4a2)],this[_0x332ee5(0x28b)],this[_0x332ee5(0x575)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x24c410(0x50d)](_0x37282a){const _0x211751=_0x24c410;return this[_0x211751(0x495)][_0x211751(0x248)](F,this[_0x211751(0x4a2)],this[_0x211751(0x28b)],this[_0x211751(0x575)],this['_pendingMutations'],this[_0x211751(0x5dc)],_0x37282a);}};x=z([m(0x7,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),m(0x8,a[_0x24c410(0x349)](_['RevisionService'])),m(0x9,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),m(0xa,a[_0x24c410(0x40f)]),m(0xb,a[_0x24c410(0x494)]),m(0xc,a[_0x24c410(0x286)]),m(0xd,_[_0x24c410(0x2ec)])],x);function Ut(_0x3cef90,_0x4755c6,_0x206106,_0x3ba222,_0x3a94dc,_0x2589ff){const _0x1ce567=_0x24c410;return _0x3ba222&&_0x3a94dc[_0x1ce567(0x25b)]?_0x3cef90['createInstance'](B,_0x4755c6,_0x206106,_0x3ba222,_0x3a94dc,_0x2589ff):_0x3ba222?_0x3cef90['createInstance'](W,_0x4755c6,_0x206106,_0x3ba222,_0x2589ff):_0x3a94dc['length']?_0x3cef90[_0x1ce567(0x248)](k,_0x4755c6,_0x206106,_0x3a94dc,_0x2589ff):_0x3cef90[_0x1ce567(0x248)](ie,_0x4755c6,_0x206106,_0x2589ff);}var Ks=Object[_0x24c410(0x5d0)],Xs=Object[_0x24c410(0x3e3)],ze=(_0x630493,_0x5642da,_0xe27def,_0x53e751)=>{for(var _0x5f4b72=_0x53e751>0x1?void 0x0:_0x53e751?Xs(_0x5642da,_0xe27def):_0x5642da,_0x5ac314=_0x630493['length']-0x1,_0x5e528c;_0x5ac314>=0x0;_0x5ac314--)(_0x5e528c=_0x630493[_0x5ac314])&&(_0x5f4b72=(_0x53e751?_0x5e528c(_0x5642da,_0xe27def,_0x5f4b72):_0x5e528c(_0x5f4b72))||_0x5f4b72);return _0x53e751&&_0x5f4b72&&Ks(_0x5642da,_0xe27def,_0x5f4b72),_0x5f4b72;},I=(_0x4f1b12,_0x4edd44)=>(_0xc7fc5c,_0x18e445)=>_0x4edd44(_0xc7fc5c,_0x18e445,_0x4f1b12);exports[_0x24c410(0x4c3)]=class extends a[_0x24c410(0x284)]{constructor(_0x2926c6,_0x391b83,_0x5a7f36,_0x4c985c,_0x2012e4,_0x266ea0,_0x3ca9d2,_0x525005,_0x5d3de9,_0x7ea742,_0x1af171,_0x5c3457,_0x23617d){const _0x10a3a7=_0x24c410;super(),u(this,_0x10a3a7(0x43a),new v[(_0x10a3a7(0x39d))](null)),u(this,_0x10a3a7(0x568),this['_state$'][_0x10a3a7(0x343)]()),u(this,'_state'),u(this,_0x10a3a7(0x52c),!0x1),u(this,_0x10a3a7(0x3ed),''),u(this,_0x10a3a7(0x5ef),0x0),u(this,_0x10a3a7(0x2bf),this[_0x10a3a7(0x568)][_0x10a3a7(0x404)](v[_0x10a3a7(0x24d)](_0x1b8685=>_0x1b8685?_0x1b8685[_0x10a3a7(0x479)]:U[_0x10a3a7(0x3e9)]),v['shareReplay'](0x1))),u(this,_0x10a3a7(0x449),!0x1),u(this,_0x10a3a7(0x29e),[]),(this[_0x10a3a7(0x4a2)]=_0x2926c6,this[_0x10a3a7(0x20e)]=_0x391b83,this['_type']=_0x5a7f36,this[_0x10a3a7(0x495)]=_0x4c985c,this[_0x10a3a7(0x2b3)]=_0x2012e4,this['_compressMutationService']=_0x266ea0,this[_0x10a3a7(0x319)]=_0x3ca9d2,this[_0x10a3a7(0x2d3)]=_0x525005,this['_logService']=_0x5d3de9,this[_0x10a3a7(0x2ed)]=_0x7ea742,this[_0x10a3a7(0x3c7)]=_0x1af171,this['_permissionService']=_0x5c3457,this[_0x10a3a7(0x544)]=_0x23617d);}get['state'](){return this['_state'];}async[_0x24c410(0x478)](){const _0x823659=_0x24c410;if(this[_0x823659(0x463)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x823659(0x393)]();}[_0x24c410(0x2e6)](){const _0x3f32db=_0x24c410;return this[_0x3f32db(0x52c)]=!0x0,a[_0x3f32db(0x2ab)](()=>{const _0x479176=_0x3f32db;this['_collaborationPaused']=!0x1,this[_0x479176(0x298)]();});}[_0x24c410(0x51f)](_0x3be36e){const _0xf88607=_0x24c410;this[_0xf88607(0x28a)]=_0x3be36e,this[_0xf88607(0x43a)][_0xf88607(0x4a9)](_0x3be36e);}async[_0x24c410(0x393)](){const _0xc607a7=_0x24c410;var _0x5df4fd;this[_0xc607a7(0x51f)](await this[_0xc607a7(0x3cf)]()),this[_0xc607a7(0x544)]&&((_0x5df4fd=this['_singleActiveUnitService'])==null||_0x5df4fd[_0xc607a7(0x582)](this[_0xc607a7(0x4a2)]),this[_0xc607a7(0x4b2)](this['_singleActiveUnitService'][_0xc607a7(0x526)](this[_0xc607a7(0x4a2)])['subscribe'](_0x1e6cc2=>{const _0x4e9b41=_0xc607a7;this[_0x4e9b41(0x518)]['debug'](_0x4e9b41(0x241),_0x4e9b41(0x3ad),_0x1e6cc2),_0x1e6cc2===Dt[_0x4e9b41(0x5e5)]?(this['_messageService'][_0x4e9b41(0x3bc)]({'content':this[_0x4e9b41(0x319)]['t'](_0x4e9b41(0x3c6)),'type':X[_0x4e9b41(0x365)][_0x4e9b41(0x573)]}),this[_0x4e9b41(0x223)]['updatePermissionPoint'](new C[(_0x4e9b41(0x41f))](this[_0x4e9b41(0x4a2)])['id'],!0x1)):this[_0x4e9b41(0x223)][_0x4e9b41(0x46b)](new C[(_0x4e9b41(0x41f))](this[_0x4e9b41(0x4a2)])['id'],!0x0);})));let _0x2e732b=!0x1;return this[_0xc607a7(0x4b2)](this[_0xc607a7(0x20e)]['sessionStatus$'][_0xc607a7(0x359)](_0x52532f=>{const _0x4b1b13=_0xc607a7;_0x52532f===H[_0x4b1b13(0x2ae)]?this[_0x4b1b13(0x58f)](_0x2e732b):_0x52532f===H[_0x4b1b13(0x3e9)]&&(_0x2e732b=!0x0,this[_0x4b1b13(0x510)]());})),this[_0xc607a7(0x4b2)](this['session'][_0xc607a7(0x5ba)][_0xc607a7(0x359)](_0x25925b=>{const _0x26c0a9=_0xc607a7;try{switch(_0x25925b[_0x26c0a9(0x3b1)]){case _[_0x26c0a9(0x4f8)][_0x26c0a9(0x535)]:{this['_onRemoteChangeset'](_[_0x26c0a9(0x4e9)](_0x25925b[_0x26c0a9(0x486)]));break;}case _[_0x26c0a9(0x4f8)]['CHANGESET_ACK']:{this['_onRemoteACK'](_0x25925b['data']);break;}case _[_0x26c0a9(0x4f8)][_0x26c0a9(0x3a2)]:{this[_0x26c0a9(0x416)]();break;}case _[_0x26c0a9(0x4f8)][_0x26c0a9(0x50a)]:{this[_0x26c0a9(0x55c)](_0x25925b[_0x26c0a9(0x486)][_0x26c0a9(0x496)][_0x26c0a9(0x24d)](_0x264b77=>_['parseProtocolChangeset'](_0x264b77)));break;}case _['CollaborationEvent']['PERMISSION_REJ']:this[_0x26c0a9(0x416)]({'isPermissionRej':!0x0});}}catch(_0x4a1fba){throw console[_0x26c0a9(0x553)](_0x26c0a9(0x333),_0x4a1fba),_0x4a1fba;}})),this[_0xc607a7(0x28a)];}['_unlockTransition'](){const _0x91f2a8=_0x24c410;this[_0x91f2a8(0x449)]=!0x1;}['_lockTransition'](){const _0xa97471=_0x24c410;if(this['_transitionLocked'])throw new Error(_0xa97471(0x3cb));this['_transitionLocked']=!0x0;}[_0x24c410(0x208)](_0x10dc74){const _0x81c667=_0x24c410;this[_0x81c667(0x3d9)](),this[_0x81c667(0x51f)](this[_0x81c667(0x28a)][_0x81c667(0x281)](_0x10dc74)),this[_0x81c667(0x33e)]();}[_0x24c410(0x481)](_0x5565b9){const _0x35b1e9=_0x24c410;if(!(_0x5565b9['revision']<=this[_0x35b1e9(0x2d3)][_0x35b1e9(0x23d)](this['unitID']))){if(this[_0x35b1e9(0x52c)]){this[_0x35b1e9(0x29e)]['push'](_0x5565b9);return;}this[_0x35b1e9(0x399)](_0x5565b9);}}[_0x24c410(0x298)](){const _0x42705c=_0x24c410;this[_0x42705c(0x29e)]['forEach'](_0x32e4f3=>this[_0x42705c(0x399)](_0x32e4f3)),this[_0x42705c(0x29e)]=[];}['_applyRemoteChangeset'](_0x841868){const _0x255eef=_0x24c410,_0x2a1ade=this['_compressMutationService'][_0x255eef(0x4f5)][_0x255eef(0x397)](this['_compressMutationService'][_0x255eef(0x4f5)][_0x255eef(0x5af)]()[_0x255eef(0x42a)])(_0x841868[_0x255eef(0x4a6)],null)||_0x841868[_0x255eef(0x4a6)],_0x3f51f7={..._0x841868,'mutations':_0x2a1ade};this[_0x255eef(0x3d9)](),this[_0x255eef(0x51f)](this[_0x255eef(0x28a)]['onRemoteChangeset'](_0x3f51f7)),this[_0x255eef(0x33e)]();}[_0x24c410(0x323)](_0x3412a8){const _0x49290d=_0x24c410;this['_lockTransition'](),this[_0x49290d(0x51f)](this[_0x49290d(0x28a)][_0x49290d(0x3fa)](_0x3412a8)),this[_0x49290d(0x33e)]();}[_0x24c410(0x416)](_0x12657f){const _0x1e8288=_0x24c410;this[_0x1e8288(0x3d9)](),this[_0x1e8288(0x51f)](this['_state'][_0x1e8288(0x3a4)](_0x12657f)),this[_0x1e8288(0x33e)]();}[_0x24c410(0x55c)](_0x3d74aa){const _0x5cf266=_0x24c410;if(!(this[_0x5cf266(0x28a)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x5af620=_0x3d74aa[_0x5cf266(0x24d)](_0x516480=>{const _0xfec63a=_0x5cf266,_0x2a59b6=this[_0xfec63a(0x1cc)][_0xfec63a(0x4f5)][_0xfec63a(0x397)](this[_0xfec63a(0x1cc)][_0xfec63a(0x4f5)][_0xfec63a(0x5af)]()[_0xfec63a(0x42a)])(_0x516480[_0xfec63a(0x4a6)],null)||_0x516480[_0xfec63a(0x4a6)];return{..._0x516480,'mutations':_0x2a59b6};});this[_0x5cf266(0x3d9)](),this[_0x5cf266(0x51f)](this[_0x5cf266(0x28a)][_0x5cf266(0x20c)](_0x5af620)),this['_unlockTransition']();}[_0x24c410(0x510)](){const _0x5500b8=_0x24c410;this[_0x5500b8(0x3d9)](),this[_0x5500b8(0x51f)](this[_0x5500b8(0x28a)]['toggleOffline']()),this[_0x5500b8(0x33e)]();}['_toggleOnline'](_0x217e90=!0x1){const _0x292bf9=_0x24c410;this[_0x292bf9(0x3d9)](),this[_0x292bf9(0x51f)](this[_0x292bf9(0x28a)][_0x292bf9(0x4b8)]()),this['_unlockTransition']();const _0x22bfe6=this[_0x292bf9(0x28a)];_0x217e90&&_0x22bfe6 instanceof ie&&(this['_lockTransition'](),this[_0x292bf9(0x51f)](_0x22bfe6[_0x292bf9(0x548)]()),this[_0x292bf9(0x33e)]());}async['_createInitialState'](){return new Promise(_0xbd2667=>{const _0x28f48b=_0x3b7c;this[_0x28f48b(0x20e)][_0x28f48b(0x1f2)]['pipe'](v[_0x28f48b(0x2fb)](0x1))['subscribe'](async _0x5a34ff=>{const _0x45247d=_0x28f48b;_0xbd2667(await this[_0x45247d(0x228)](_0x5a34ff===H['ONLINE']));});});}[_0x24c410(0x557)](){const _0x35260f=_0x24c410,_0x473d4f=this[_0x35260f(0x4a2)];return{'onStateChange':(_0x2c9211,_0x3f54ee)=>{const _0xd1da5d=_0x35260f;if(_0x2c9211!==this[_0xd1da5d(0x28a)])throw new Error(_0xd1da5d(0x5aa)+_0x2c9211[_0xd1da5d(0x479)]+_0xd1da5d(0x50b)+_0x3f54ee['status']+_0xd1da5d(0x328)+this[_0xd1da5d(0x28a)]['status']);this[_0xd1da5d(0x51f)](_0x3f54ee);},'onSendChangeset':_0x20f8a4=>{const _0x5238f1=_0x35260f;_0x20f8a4[_0x5238f1(0x21f)]||(_0x20f8a4[_0x5238f1(0x21f)]=this[_0x5238f1(0x3ed)],_0x20f8a4['reqId']=++this[_0x5238f1(0x5ef)]);const _0x4adb43={'eventID':_[_0x5238f1(0x4f8)][_0x5238f1(0x48a)],'data':{'unitID':_0x20f8a4['unitID'],'unitType':this['_type'],'changeset':_0x20f8a4,'memberID':this['session'][_0x5238f1(0x577)]()}};this['session'][_0x5238f1(0x2b6)](_0x4adb43,this[_0x5238f1(0x4a2)]);},'onMissingChangesets':({from:_0x8152ae,to:_0x35c3d6})=>{const _0x2682ef=_0x35260f;this[_0x2682ef(0x518)][_0x2682ef(0x347)](_0x2682ef(0x241),'fetching\x20missing\x20changesets\x20from\x20'+_0x8152ae+'\x20to\x20'+_0x35c3d6);const _0x3def53={'eventID':_[_0x2682ef(0x4f8)]['FETCH_MISSING'],'data':{'unitID':_0x473d4f,'unitType':this[_0x2682ef(0x3b2)],'from':_0x8152ae,'to':_0x35c3d6}};this[_0x2682ef(0x20e)]['send'](_0x3def53,this[_0x2682ef(0x4a2)]);}};}async['_createInitialStateImpl'](_0x55a287){const _0x5698c7=_0x24c410;var _0x4a7606,_0xca5d09;const _0x201847=await this[_0x5698c7(0x2b3)][_0x5698c7(0x38c)](this['unitID']),_0x2984ca=(_0x4a7606=_0x201847==null?void 0x0:_0x201847['mutations'])!=null?_0x4a7606:[],_0x337b0d=(_0xca5d09=_0x201847==null?void 0x0:_0x201847[_0x5698c7(0x2c2)])!=null?_0xca5d09:null,_0x22049e=!!(_0x337b0d!=null&&_0x337b0d['sid'])&&!!(_0x337b0d!=null&&_0x337b0d[_0x5698c7(0x3ec)]);this[_0x5698c7(0x3ed)]=_0x22049e?_0x337b0d['sid']:Os(),this[_0x5698c7(0x5ef)]=_0x22049e?_0x337b0d[_0x5698c7(0x3ec)]:0x0;const _0xf09e3b=this[_0x5698c7(0x4a2)];try{this[_0x5698c7(0x453)](_0x337b0d,_0x2984ca);}catch(_0x297822){this[_0x5698c7(0x518)]['error'](_0x297822);}const _0x232463=this[_0x5698c7(0x557)]();if(_0x55a287){const _0x17ce32=Ut(this[_0x5698c7(0x495)],_0xf09e3b,this[_0x5698c7(0x3b2)],_0x337b0d,_0x2984ca,_0x232463);return _0x17ce32 instanceof k?_0x17ce32['_schedule']():(_0x17ce32 instanceof B||_0x17ce32 instanceof W)&&_0x17ce32[_0x5698c7(0x3c5)](),_0x17ce32;}return this[_0x5698c7(0x495)][_0x5698c7(0x248)](G,_0xf09e3b,this[_0x5698c7(0x3b2)],_0x337b0d,_0x2984ca,_0x232463);}['_replayCachedMutations'](_0x302d8b,_0x919ca4){const _0x3e48ee=_0x24c410;var _0x248f10,_0x5469c7;const _0x9bedbb=this[_0x3e48ee(0x1cc)][_0x3e48ee(0x4f5)][_0x3e48ee(0x397)](this[_0x3e48ee(0x1cc)][_0x3e48ee(0x4f5)]['getInterceptPoints']()[_0x3e48ee(0x42a)]);(_0x248f10=_0x9bedbb((_0x302d8b==null?void 0x0:_0x302d8b[_0x3e48ee(0x4a6)])||[],null))==null||_0x248f10[_0x3e48ee(0x202)](_0x42e8cd=>this[_0x3e48ee(0x2ed)]['executeCommand'](_0x42e8cd['id'],_0x42e8cd[_0x3e48ee(0x57a)])),(_0x5469c7=_0x9bedbb(_0x919ca4||[],null))==null||_0x5469c7[_0x3e48ee(0x202)](_0x3ba6ad=>this[_0x3e48ee(0x2ed)][_0x3e48ee(0x2d6)](_0x3ba6ad['id'],_0x3ba6ad[_0x3e48ee(0x57a)]));}},exports[_0x24c410(0x4c3)]=ze([I(0x3,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),I(0x4,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),I(0x5,a[_0x24c410(0x349)](_['CompressMutationService'])),I(0x6,a[_0x24c410(0x349)](a[_0x24c410(0x388)])),I(0x7,a[_0x24c410(0x349)](_['RevisionService'])),I(0x8,a[_0x24c410(0x40f)]),I(0x9,a[_0x24c410(0x494)]),I(0xa,A[_0x24c410(0x4b3)]),I(0xb,a[_0x24c410(0x27f)]),I(0xc,a[_0x24c410(0x5cb)](Re))],exports[_0x24c410(0x4c3)]),exports['DocCollaborationEntity']=class extends exports[_0x24c410(0x4c3)]{constructor(_0x2f3a3b,_0xa6545b,_0x543354,_0x4461a3,_0x482592,_0x1e4442,_0x535d6d,_0x3c5457,_0x3d47b8,_0x196340,_0x636d33,_0x5a494e,_0x4c9346,_0xdad508,_0x3b0da7,_0x53e75a,_0xd3c628){const _0x540423=_0x24c410;super(_0x2f3a3b,_0x543354,_0xa6545b,_0x4461a3,_0x482592,_0x1e4442,_0x535d6d,_0x3c5457,_0x4c9346,_0xdad508,_0x3b0da7,_0x53e75a,_0xd3c628),this[_0x540423(0x4a2)]=_0x2f3a3b,this[_0x540423(0x28b)]=_0xa6545b,this[_0x540423(0x3e8)]=_0x3d47b8,this[_0x540423(0x294)]=_0x196340,this[_0x540423(0x405)]=_0x636d33,this[_0x540423(0x2a4)]=_0x5a494e;}[_0x24c410(0x557)](){const _0x3cb357=_0x24c410,_0x2e6a4b=super['_createHandler']();return _0x2e6a4b[_0x3cb357(0x455)]=_0x145669=>this['_docTransformIMECacheService'][_0x3cb357(0x2f5)](_0x145669),_0x2e6a4b[_0x3cb357(0x473)]=_0x377fe2=>this[_0x3cb357(0x405)][_0x3cb357(0x5e8)](_0x377fe2),_0x2e6a4b[_0x3cb357(0x255)]=_0x2dbd57=>this[_0x3cb357(0x2a4)][_0x3cb357(0x2a5)](_0x2dbd57),_0x2e6a4b[_0x3cb357(0x31b)]=_0x59e31f=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x59e31f),_0x2e6a4b;}async[_0x24c410(0x393)](){const _0x5e5040=_0x24c410,_0x5ec5d2=await super[_0x5e5040(0x393)]();return this[_0x5e5040(0x3e8)][_0x5e5040(0x301)][_0x5e5040(0x404)](v[_0x5e5040(0x2b1)](this[_0x5e5040(0x22f)]))[_0x5e5040(0x359)](_0x3b5385=>{const _0x1f413f=_0x5e5040;if(_0x3b5385==null)return;const {unitId:_0x29c7d1,redoState:_0x3bbf3,commandId:_0x5faf4f}=_0x3b5385;if(_0x29c7d1!==this['unitID'])return;const _0x89e200={'id':_0x5faf4f,'type':a[_0x1f413f(0x5d4)][_0x1f413f(0x5b0)],'params':{'unitId':_0x29c7d1,'actions':_0x3bbf3[_0x1f413f(0x599)],'textRanges':null}};this['_onLocalMutation'](_0x89e200);}),_0x5ec5d2;}},exports[_0x24c410(0x3e2)]=ze([I(0x3,a['Inject'](a[_0x24c410(0x4f6)])),I(0x4,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),I(0x5,a['Inject'](_['CompressMutationService'])),I(0x6,a['Inject'](a['LocaleService'])),I(0x7,a[_0x24c410(0x349)](_['RevisionService'])),I(0x8,a[_0x24c410(0x349)](N[_0x24c410(0x48f)])),I(0x9,a[_0x24c410(0x349)](fe)),I(0xa,a[_0x24c410(0x349)](pe)),I(0xb,a[_0x24c410(0x349)](qe)),I(0xc,a[_0x24c410(0x40f)]),I(0xd,a[_0x24c410(0x494)]),I(0xe,A[_0x24c410(0x4b3)]),I(0xf,a[_0x24c410(0x27f)]),I(0x10,a[_0x24c410(0x5cb)](Re))],exports[_0x24c410(0x3e2)]),exports[_0x24c410(0x5df)]=class extends exports[_0x24c410(0x4c3)]{constructor(_0x2371b9,_0x57372a,_0x53d4d0,_0x29a911,_0x5f11b8,_0x143f11,_0x4ffc51,_0x2bb424,_0xdd9f1b,_0x56ea8a,_0x43f2de,_0x4b5359,_0x33d8dd,_0x15d44e){const _0xc554cf=_0x24c410;super(_0x2371b9,_0x53d4d0,_0x57372a,_0x29a911,_0x5f11b8,_0x143f11,_0x4ffc51,_0x2bb424,_0x56ea8a,_0x43f2de,_0x4b5359,_0x33d8dd,_0x15d44e),this[_0xc554cf(0x4a2)]=_0x2371b9,this[_0xc554cf(0x28b)]=_0x57372a,this[_0xc554cf(0x524)]=_0xdd9f1b;}[_0x24c410(0x557)](){const _0x434e7b=_0x24c410,_0x11ce48=super['_createHandler']();return _0x11ce48[_0x434e7b(0x473)]=_0x2d983b=>this[_0x434e7b(0x524)][_0x434e7b(0x5e8)](_0x2d983b),_0x11ce48;}async['_init'](){const _0x522b0a=_0x24c410,_0x1fba88=await super[_0x522b0a(0x393)]();return this['disposeWithMe'](this[_0x522b0a(0x2ed)][_0x522b0a(0x378)]((_0x2fca71,_0x758dd5)=>{const _0x39740d=_0x522b0a;if(_0x2fca71[_0x39740d(0x28b)]!==a[_0x39740d(0x5d4)]['MUTATION']||_0x758dd5!=null&&_0x758dd5['fromCollab']||_0x758dd5!=null&&_0x758dd5[_0x39740d(0x502)])return;const _0x4da852=_0x2fca71[_0x39740d(0x57a)];if((_0x4da852==null?void 0x0:_0x4da852[_0x39740d(0x253)])!==this[_0x39740d(0x4a2)])return;const _0x4c9112=_0x2fca71,_0x1f9f8f=this['_compressMutationService'][_0x39740d(0x4f5)][_0x39740d(0x397)](this[_0x39740d(0x1cc)]['interceptor'][_0x39740d(0x5af)]()[_0x39740d(0x5e2)])([_0x4c9112],null)||[_0x4c9112];this[_0x39740d(0x208)](_0x1f9f8f[0x0]);})),_0x1fba88;}},exports[_0x24c410(0x5df)]=ze([I(0x3,a[_0x24c410(0x349)](a['Injector'])),I(0x4,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),I(0x5,a['Inject'](_[_0x24c410(0x34a)])),I(0x6,a[_0x24c410(0x349)](a['LocaleService'])),I(0x7,a[_0x24c410(0x349)](_['RevisionService'])),I(0x8,a[_0x24c410(0x349)](Ie)),I(0x9,a[_0x24c410(0x40f)]),I(0xa,a['ICommandService']),I(0xb,A[_0x24c410(0x4b3)]),I(0xc,a[_0x24c410(0x27f)]),I(0xd,a[_0x24c410(0x5cb)](Re))],exports[_0x24c410(0x5df)]);var qs=Object['defineProperty'],zs=Object[_0x24c410(0x3e3)],Js=(_0x498288,_0x537364,_0x3e2b38,_0x51c008)=>{const _0xda2a5c=_0x24c410;for(var _0x29dc50=_0x51c008>0x1?void 0x0:_0x51c008?zs(_0x537364,_0x3e2b38):_0x537364,_0x5b1c40=_0x498288[_0xda2a5c(0x25b)]-0x1,_0x3e5e63;_0x5b1c40>=0x0;_0x5b1c40--)(_0x3e5e63=_0x498288[_0x5b1c40])&&(_0x29dc50=(_0x51c008?_0x3e5e63(_0x537364,_0x3e2b38,_0x29dc50):_0x3e5e63(_0x29dc50))||_0x29dc50);return _0x51c008&&_0x29dc50&&qs(_0x537364,_0x3e2b38,_0x29dc50),_0x29dc50;},Ne=(_0x4531d2,_0x301e29)=>(_0x368a34,_0x982f7)=>_0x301e29(_0x368a34,_0x982f7,_0x4531d2);exports[_0x24c410(0x3df)]=class extends a[_0x24c410(0x284)]{constructor(_0x1d7569,_0x2a2881,_0x192370){const _0x207e1e=_0x24c410;super(),u(this,_0x207e1e(0x433),new Map()),u(this,_0x207e1e(0x3a3),new v['Subject']()),(this[_0x207e1e(0x495)]=_0x1d7569,this[_0x207e1e(0x5d6)]=_0x2a2881,this[_0x207e1e(0x329)]=_0x192370,this[_0x207e1e(0x393)]());}['dispose'](){const _0x5917a3=_0x24c410;super[_0x5917a3(0x54a)](),this['_entities'][_0x5917a3(0x202)](_0x17f256=>_0x17f256[_0x5917a3(0x54a)]()),this['_entities']['clear']();}[_0x24c410(0x4a8)](_0x598374){const _0x38b5fc=_0x24c410;var _0x5ddfbd;return(_0x5ddfbd=this[_0x38b5fc(0x433)][_0x38b5fc(0x40c)](_0x598374))!=null?_0x5ddfbd:null;}[_0x24c410(0x35a)](_0x1adf45){const _0x2d048d=_0x24c410,_0x4308ed=this[_0x2d048d(0x4a8)](_0x1adf45);return _0x4308ed?v['of'](_0x4308ed):this['_entityInit$'][_0x2d048d(0x404)](E['filter'](_0x1a0681=>_0x1a0681[_0x2d048d(0x4a2)]===_0x1adf45));}['_init'](){const _0x135ca3=_0x24c410;this[_0x135ca3(0x329)][_0x135ca3(0x1d6)](a[_0x135ca3(0x461)][_0x135ca3(0x236)])[_0x135ca3(0x404)](v[_0x135ca3(0x2b1)](this[_0x135ca3(0x22f)]),E['delay'](0x10))[_0x135ca3(0x359)](async _0x4d8302=>{const _0x412186=_0x135ca3,_0xe2ba04=_0x4d8302[_0x412186(0x444)](),_0x3b094f=await this['_startCollaboration'](_0xe2ba04,$[_0x412186(0x236)]);this[_0x412186(0x433)][_0x412186(0x48d)](_0xe2ba04,_0x3b094f);}),this[_0x135ca3(0x329)][_0x135ca3(0x1d6)](a[_0x135ca3(0x461)][_0x135ca3(0x489)])['pipe'](v[_0x135ca3(0x2b1)](this[_0x135ca3(0x22f)]),E[_0x135ca3(0x410)](0x10))[_0x135ca3(0x404)](E[_0x135ca3(0x5ce)](_0x942c46=>!_0x942c46[_0x135ca3(0x444)]()[_0x135ca3(0x291)]('__')))[_0x135ca3(0x359)](async _0x251b0a=>{const _0x35370e=_0x135ca3,_0x556b0d=_0x251b0a[_0x35370e(0x444)](),_0x2d35a8=await this[_0x35370e(0x1d0)](_0x556b0d,$[_0x35370e(0x489)]);this[_0x35370e(0x433)][_0x35370e(0x48d)](_0x556b0d,_0x2d35a8);}),v['merge'](this[_0x135ca3(0x329)][_0x135ca3(0x5c0)](a[_0x135ca3(0x461)][_0x135ca3(0x236)]),this[_0x135ca3(0x329)][_0x135ca3(0x5c0)](a[_0x135ca3(0x461)][_0x135ca3(0x489)]))[_0x135ca3(0x404)](v[_0x135ca3(0x2b1)](this[_0x135ca3(0x22f)]))['subscribe'](_0x30bfc6=>{const _0x56e5a4=_0x135ca3,_0x15cebb=_0x30bfc6[_0x56e5a4(0x444)](),_0x1214c7=this[_0x56e5a4(0x433)][_0x56e5a4(0x40c)](_0x15cebb);_0x1214c7&&(_0x1214c7['dispose'](),this[_0x56e5a4(0x433)][_0x56e5a4(0x5a3)](_0x15cebb));});}async[_0x24c410(0x1d0)](_0x2e42b2,_0x4d00a0){const _0x48c067=_0x24c410,_0x3b0698=await this[_0x48c067(0x5d6)][_0x48c067(0x2b7)](_0x2e42b2),_0x3d29a3=this[_0x48c067(0x495)][_0x48c067(0x248)](this[_0x48c067(0x534)](_0x4d00a0),_0x2e42b2,_0x4d00a0,_0x3b0698);return await _0x3d29a3[_0x48c067(0x478)](),this[_0x48c067(0x3a3)][_0x48c067(0x4a9)](_0x3d29a3),_0x3d29a3;}[_0x24c410(0x534)](_0x3109f1){const _0x48c269=_0x24c410;switch(_0x3109f1){case $['UNIVER_DOC']:return exports[_0x48c269(0x3e2)];case $[_0x48c269(0x236)]:return exports[_0x48c269(0x5df)];default:throw new Error(_0x48c269(0x5cd)+_0x3109f1);}}},exports[_0x24c410(0x3df)]=Js([Ne(0x0,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),Ne(0x1,a['Inject'](exports[_0x24c410(0x2a1)])),Ne(0x2,a['IUniverInstanceService'])],exports[_0x24c410(0x3df)]);const ct=[_0x24c410(0x35d),'jiqing500',_0x24c410(0x315),_0x24c410(0x336),'blue400',_0x24c410(0x59f)];class Je extends a[_0x24c410(0x2f0)]{constructor(){super(...arguments),u(this,'_assignedColors',new Map()),u(this,'_colorIndex',0x0);}[_0x24c410(0x379)](_0x20ba83){const _0x578139=_0x24c410;if(this[_0x578139(0x4dd)][_0x578139(0x3d7)](_0x20ba83))return this[_0x578139(0x4dd)][_0x578139(0x40c)](_0x20ba83);const _0x3619d9=ct[this[_0x578139(0x43e)]];return this[_0x578139(0x43e)]=(this[_0x578139(0x43e)]+0x1)%ct[_0x578139(0x25b)],this[_0x578139(0x4dd)][_0x578139(0x48d)](_0x20ba83,_0x3619d9),_0x3619d9;}}var Zs=Object['defineProperty'],Qs=Object[_0x24c410(0x3e3)],ei=(_0x380c10,_0x1e0976,_0x1311b9,_0x49e963)=>{for(var _0x2a3c1f=_0x49e963>0x1?void 0x0:_0x49e963?Qs(_0x1e0976,_0x1311b9):_0x1e0976,_0x113cad=_0x380c10['length']-0x1,_0x2603c4;_0x113cad>=0x0;_0x113cad--)(_0x2603c4=_0x380c10[_0x113cad])&&(_0x2a3c1f=(_0x49e963?_0x2603c4(_0x1e0976,_0x1311b9,_0x2a3c1f):_0x2603c4(_0x2a3c1f))||_0x2a3c1f);return _0x49e963&&_0x2a3c1f&&Zs(_0x1e0976,_0x1311b9,_0x2a3c1f),_0x2a3c1f;},K=(_0x4cd48e,_0x5bb733)=>(_0x4d5ce2,_0xac42f9)=>_0x5bb733(_0x4d5ce2,_0xac42f9,_0x4cd48e);const ti=0x12c,si=0x64;let ke=class extends a[_0x24c410(0x284)]{constructor(_0x2ef132,_0x2c8e91,_0x411be9,_0xcd7ab6,_0x3544ae,_0x1eeeb4,_0x321264,_0x27e78a,_0x178391){const _0xc35d82=_0x24c410;super(),u(this,'_online',!0x1),u(this,'_init',!0x1),u(this,_0xc35d82(0x374),new v[(_0xc35d82(0x39d))](new Map())),u(this,_0xc35d82(0x1e9),this[_0xc35d82(0x374)][_0xc35d82(0x343)]()),u(this,_0xc35d82(0x211),new v['BehaviorSubject']([])),u(this,'roomMembers$',this[_0xc35d82(0x211)][_0xc35d82(0x404)](v[_0xc35d82(0x3a0)](ti))),u(this,_0xc35d82(0x4cc),a[_0xc35d82(0x400)](_0x48c7b6=>{const _0xe883cc=_0xc35d82,_0x47eb39={'eventID':_[_0xe883cc(0x4f8)][_0xe883cc(0x27a)],'data':{'unitID':this[_0xe883cc(0x4a2)],'memberID':this[_0xe883cc(0x3ab)]['getMemberID'](),'selection':yt(_0x48c7b6)}};this[_0xe883cc(0x3ab)][_0xe883cc(0x2b6)](_0x47eb39,this[_0xe883cc(0x4a2)]);},si)),(this[_0xc35d82(0x4a2)]=_0x2ef132,this['_session']=_0x2c8e91,this[_0xc35d82(0x495)]=_0x411be9,this[_0xc35d82(0x363)]=_0xcd7ab6,this[_0xc35d82(0x4a4)]=_0x3544ae,this['_syncEditingCollabCursorService']=_0x1eeeb4,this[_0xc35d82(0x317)]=_0x321264,this[_0xc35d82(0x329)]=_0x27e78a,this['_commandService']=_0x178391);}get['cursorInfo'](){const _0x4c71f3=_0x24c410;return this[_0x4c71f3(0x374)][_0x4c71f3(0x49a)]();}get[_0x24c410(0x2b8)](){const _0x1d91ae=_0x24c410;return this[_0x1d91ae(0x211)][_0x1d91ae(0x49a)]();}[_0x24c410(0x54a)](){const _0x31cefa=_0x24c410;super[_0x31cefa(0x54a)](),this[_0x31cefa(0x374)][_0x31cefa(0x4a9)](new Map()),this['_cursorInfo$'][_0x31cefa(0x4a3)](),this[_0x31cefa(0x211)]['next']([]),this[_0x31cefa(0x211)]['complete']();}[_0x24c410(0x478)](){const _0xd2002f=_0x24c410;this[_0xd2002f(0x393)]||(this[_0xd2002f(0x393)]=!0x0,this['_session'][_0xd2002f(0x1f2)][_0xd2002f(0x404)](v['takeUntil'](this[_0xd2002f(0x22f)]))[_0xd2002f(0x359)](_0x85158e=>{const _0x1844f4=_0xd2002f;_0x85158e===H[_0x1844f4(0x2ae)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0xd2002f(0x3ab)][_0xd2002f(0x5ba)][_0xd2002f(0x404)](v[_0xd2002f(0x2b1)](this[_0xd2002f(0x22f)]))[_0xd2002f(0x359)](_0x2f394f=>{const _0x29ddf4=_0xd2002f,_0x360d66=_0x2f394f['eventID'];_0x360d66===_[_0x29ddf4(0x4f8)][_0x29ddf4(0x27a)]&&this[_0x29ddf4(0x4be)](_0x2f394f),_0x360d66===_[_0x29ddf4(0x4f8)][_0x29ddf4(0x45f)]&&this['_onCursorDelete'](_0x2f394f);}),this[_0xd2002f(0x4b2)](this[_0xd2002f(0x2ed)]['onCommandExecuted'](_0x611a18=>{const _0x1a0c3b=_0xd2002f,_0x55148e=_0x611a18['params'];_0x55148e!=null&&this[_0x1a0c3b(0x1f1)]&&_0x611a18['id']===se[_0x1a0c3b(0x52d)]['id']&&_0x55148e['unitId']===this[_0x1a0c3b(0x4a2)]&&_0x55148e['isEditing']===!0x1&&this['_updateLocalCursor'](_0x55148e[_0x1a0c3b(0x409)]);})),this[_0xd2002f(0x306)][_0xd2002f(0x5c4)]['pipe'](v[_0xd2002f(0x2b1)](this[_0xd2002f(0x22f)]))[_0xd2002f(0x359)](_0x1e8d04=>{const _0xb1a883=_0xd2002f;if((_0x1e8d04==null?void 0x0:_0x1e8d04['unitID'])!==this[_0xb1a883(0x4a2)])return;const _0x2f03cd={'eventID':_['CollaborationEvent'][_0xb1a883(0x27a)],'data':_0x1e8d04};this[_0xb1a883(0x4be)](_0x2f03cd);}),this['disposeWithMe'](this[_0xd2002f(0x2ed)]['onCommandExecuted'](_0x3478f6=>{const _0x138618=_0xd2002f;if(_0x3478f6['params']==null)return;const _0x5e55af=_0x3478f6[_0x138618(0x57a)];if(_0x3478f6['id']!==se[_0x138618(0x1d9)]['id']||_0x5e55af[_0x138618(0x253)]!==this[_0x138618(0x4a2)])return;const _0x1e933a={'id':_0x138618(0x4fa),'params':_0x5e55af},_0x32c7f3=this[_0x138618(0x512)];for(const [_0xc7d8d5,_0x9d0be1]of _0x32c7f3){const _0x367f1e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x9d0be1[_0x138618(0x409)]}},_0x2cd1df=this[_0x138618(0x317)][_0x138618(0x2c3)](_0x1e933a,_0x367f1e,!0x1);if(_['isTransformMutationFailure'](_0x2cd1df))throw _0x2cd1df[_0x138618(0x553)];_0x32c7f3[_0x138618(0x48d)](_0xc7d8d5,{..._0x9d0be1,'ranges':_0x2cd1df['m2Prime'][_0x138618(0x57a)][_0x138618(0x566)]});}queueMicrotask(()=>{const _0x3015a4=_0x138618;this['_cursorInfo$'][_0x3015a4(0x4a9)](_0x32c7f3);});})));}['_onCursorUpdate'](_0xa38009){const _0x4e26bb=_0x24c410;var _0x210471,_0x301ca8;const {memberID:_0x27f196,selection:_0x2da470}=_0xa38009[_0x4e26bb(0x486)],_0x4dc47f=Hs(_0x2da470),_0x57738a=(_0x301ca8=(_0x210471=this['_memberService']['getMember'](this[_0x4e26bb(0x4a2)],_0x27f196))==null?void 0x0:_0x210471[_0x4e26bb(0x356)])!=null?_0x301ca8:_0x4e26bb(0x36d),_0x5a0663={'color':this[_0x4e26bb(0x363)][_0x4e26bb(0x379)](_0x27f196),'name':_0x57738a,'ranges':_0x4dc47f},_0x3f08b9=this[_0x4e26bb(0x512)];_0x3f08b9['set'](_0x27f196,_0x5a0663),this['_cursorInfo$']['next'](_0x3f08b9);}[_0x24c410(0x270)](_0x4cad34){const _0x1edd7e=_0x24c410,{memberID:_0x20b138}=_0x4cad34[_0x1edd7e(0x486)],_0x2cedb6=this[_0x1edd7e(0x512)];_0x2cedb6[_0x1edd7e(0x5a3)](_0x20b138),this[_0x1edd7e(0x374)][_0x1edd7e(0x4a9)](_0x2cedb6);}[_0x24c410(0x58f)](){const _0x58982a=_0x24c410;var _0x393dec;if(this[_0x58982a(0x1f1)]=!0x0,((_0x393dec=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x393dec[_0x58982a(0x444)]())!==this['unitID'])return;const _0x4511c9=this[_0x58982a(0x495)]['get'](se['DocSelectionManagerService'])[_0x58982a(0x5c2)]();Array[_0x58982a(0x2fa)](_0x4511c9)&&_0x4511c9[_0x58982a(0x25b)]>0x0&&this['_updateLocalCursor'](_0x4511c9);}['_toggleOffline'](){const _0x2e1b08=_0x24c410;this[_0x2e1b08(0x1f1)]=!0x1;}};ke=ei([K(0x2,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),K(0x3,a[_0x24c410(0x349)](Je)),K(0x4,a[_0x24c410(0x349)](q)),K(0x5,a[_0x24c410(0x349)](qe)),K(0x6,_[_0x24c410(0x2ec)]),K(0x7,a[_0x24c410(0x5e9)]),K(0x8,a[_0x24c410(0x494)])],ke);var ii=Object['defineProperty'],ni=Object['getOwnPropertyDescriptor'],ri=(_0x14ac49,_0x2224cd,_0xfe828e,_0x23c438)=>{const _0x3c1099=_0x24c410;for(var _0x11f2ca=_0x23c438>0x1?void 0x0:_0x23c438?ni(_0x2224cd,_0xfe828e):_0x2224cd,_0x589b63=_0x14ac49[_0x3c1099(0x25b)]-0x1,_0x4e9196;_0x589b63>=0x0;_0x589b63--)(_0x4e9196=_0x14ac49[_0x589b63])&&(_0x11f2ca=(_0x23c438?_0x4e9196(_0x2224cd,_0xfe828e,_0x11f2ca):_0x4e9196(_0x11f2ca))||_0x11f2ca);return _0x23c438&&_0x11f2ca&&ii(_0x2224cd,_0xfe828e,_0x11f2ca),_0x11f2ca;},Q=(_0x10e6b9,_0x5bf871)=>(_0x34ceed,_0x19119d)=>_0x5bf871(_0x34ceed,_0x19119d,_0x10e6b9);const oi=0x12c,ai=0x64,ci=()=>{let _0x1b8457=[],_0x55c6da=!0x1;return _0x4807a2=>{const _0x4ea1df=_0x3b7c;_0x1b8457[_0x4ea1df(0x222)](_0x4807a2),_0x55c6da||(_0x55c6da=!0x0,setTimeout(()=>{const _0x1a1efc=_0x4ea1df;_0x1b8457[_0x1a1efc(0x202)](_0x2da25c=>_0x2da25c()),_0x1b8457=[],_0x55c6da=!0x1;}));};};let Be=class extends a[_0x24c410(0x284)]{constructor(_0x3b9fac,_0x55e48b,_0x208826,_0x295ecb,_0xee6687,_0x3dd882,_0x100bf3,_0x2c9092){const _0x58185c=_0x24c410;super(),u(this,'_online',!0x1),u(this,'_init',!0x1),u(this,_0x58185c(0x374),new v['BehaviorSubject'](new Map())),u(this,'cursorInfo$',this[_0x58185c(0x374)][_0x58185c(0x343)]()),u(this,_0x58185c(0x211),new v[(_0x58185c(0x39d))]([])),u(this,_0x58185c(0x32a),this[_0x58185c(0x211)][_0x58185c(0x404)](v['debounceTime'](oi))),u(this,_0x58185c(0x4cc),a[_0x58185c(0x400)]((_0x19cb95,_0x792477)=>{const _0x506cae=_0x58185c,_0x46d5b7={'eventID':_[_0x506cae(0x4f8)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x506cae(0x3ab)][_0x506cae(0x577)](),'selection':et[_0x506cae(0x4c5)](_0x19cb95,_0x792477['range'])}};this[_0x506cae(0x3ab)][_0x506cae(0x2b6)](_0x46d5b7,this['unitID']);},ai)),(this['unitID']=_0x3b9fac,this[_0x58185c(0x3ab)]=_0x55e48b,this[_0x58185c(0x495)]=_0x208826,this[_0x58185c(0x363)]=_0x295ecb,this[_0x58185c(0x4a4)]=_0xee6687,this['_univerInstanceService']=_0x3dd882,this[_0x58185c(0x2ed)]=_0x100bf3,this[_0x58185c(0x48b)]=_0x2c9092);}get[_0x24c410(0x512)](){const _0x14989f=_0x24c410;return this[_0x14989f(0x374)][_0x14989f(0x49a)]();}get['roomMembers'](){const _0x5cec7a=_0x24c410;return this[_0x5cec7a(0x211)][_0x5cec7a(0x49a)]();}[_0x24c410(0x54a)](){const _0x162519=_0x24c410;super['dispose'](),this[_0x162519(0x374)][_0x162519(0x4a9)](new Map()),this['_cursorInfo$'][_0x162519(0x4a3)](),this[_0x162519(0x211)][_0x162519(0x4a9)]([]),this['_roomMembers$'][_0x162519(0x4a3)]();}[_0x24c410(0x478)](){const _0x33cce7=_0x24c410;this[_0x33cce7(0x393)]||(this[_0x33cce7(0x393)]=!0x0,this['_session'][_0x33cce7(0x1f2)][_0x33cce7(0x404)](v['takeUntil'](this[_0x33cce7(0x22f)]))[_0x33cce7(0x359)](_0xd382c9=>{const _0x17a06f=_0x33cce7;_0xd382c9===H['ONLINE']?this[_0x17a06f(0x58f)]():this[_0x17a06f(0x510)]();}),this['_session'][_0x33cce7(0x5ba)][_0x33cce7(0x404)](v[_0x33cce7(0x2b1)](this['dispose$']))[_0x33cce7(0x359)](_0x2893bd=>{const _0x5b2963=_0x33cce7,_0x3ad14a=_0x2893bd[_0x5b2963(0x3b1)];_0x3ad14a===_[_0x5b2963(0x4f8)][_0x5b2963(0x27a)]&&this['_onCursorUpdate'](_0x2893bd),_0x3ad14a===_['CollaborationEvent'][_0x5b2963(0x45f)]&&this[_0x5b2963(0x270)](_0x2893bd);}),this[_0x33cce7(0x514)](),this['disposeWithMe'](this[_0x33cce7(0x2ed)][_0x33cce7(0x378)](_0x4d4b6c=>{const _0x36a8c4=_0x33cce7;if(this['_online']&&_0x4d4b6c['id']===C[_0x36a8c4(0x56a)]['id']&&_0x4d4b6c[_0x36a8c4(0x57a)][_0x36a8c4(0x253)]===this[_0x36a8c4(0x4a2)]){const _0x3ef10c=_0x4d4b6c[_0x36a8c4(0x57a)];this[_0x36a8c4(0x4cc)](_0x3ef10c[_0x36a8c4(0x4b9)],_0x3ef10c['selections'][0x0]);}})));}['_onCursorUpdate'](_0x222a8a){const _0x2622c0=_0x24c410;var _0xe5cec8,_0x298849;const {memberID:_0x4894ea,selection:_0x521798}=_0x222a8a[_0x2622c0(0x486)],{sheetName:_0x448f71,range:_0x190ae6}=et[_0x2622c0(0x592)](_0x521798),_0x4a7669={'name':(_0x298849=(_0xe5cec8=this[_0x2622c0(0x4a4)][_0x2622c0(0x523)](this[_0x2622c0(0x4a2)],_0x4894ea))==null?void 0x0:_0xe5cec8[_0x2622c0(0x356)])!=null?_0x298849:_0x2622c0(0x36d),'range':this[_0x2622c0(0x450)](_0x448f71,_0x190ae6),'sheetID':_0x448f71,'color':this[_0x2622c0(0x363)]['assignAColorForMemberID'](_0x4894ea),'selection':_0x521798},_0x17b2d3=this[_0x2622c0(0x512)];_0x17b2d3[_0x2622c0(0x48d)](_0x4894ea,_0x4a7669),this[_0x2622c0(0x374)][_0x2622c0(0x4a9)](_0x17b2d3);}[_0x24c410(0x270)](_0x5049f3){const _0x242b70=_0x24c410,{memberID:_0x3cf62a}=_0x5049f3[_0x242b70(0x486)],_0xa21216=this[_0x242b70(0x512)];_0xa21216[_0x242b70(0x5a3)](_0x3cf62a),this['_cursorInfo$'][_0x242b70(0x4a9)](_0xa21216);}[_0x24c410(0x450)](_0x460305,_0x411542){const _0x636ba2=_0x24c410;var _0x228b23,_0x318efd;const _0x1a295f=(_0x318efd=(_0x228b23=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x636ba2(0x4a2)]))==null?void 0x0:_0x228b23[_0x636ba2(0x44d)](_0x460305))==null?void 0x0:_0x318efd[_0x636ba2(0x5d3)]();return(_0x1a295f==null?void 0x0:_0x1a295f[_0x636ba2(0x3f3)](_0x2bb06c=>a[_0x636ba2(0x2da)][_0x636ba2(0x44b)](_0x2bb06c,_0x411542)))||_0x411542;}[_0x24c410(0x514)](){const _0x7827f4=_0x24c410,_0x361ffe=new a[(_0x7827f4(0x46f))](),_0x519e7c=ci(),_0x33d288=()=>{const _0x4087a5=_0x7827f4;_0x361ffe[_0x4087a5(0x54a)]();const _0xb0b9b3=(_0x5de563,_0x39f973,_0xc63e55,_0x411d6d)=>{const _0x297e30=_0x4087a5;let _0x5cff75=[];switch(_0x5de563['id']){case C[_0x297e30(0x22c)][_0x297e30(0x2a0)]:{_0x5cff75=C[_0x297e30(0x53a)](_0x5de563,_0x411d6d);break;}case C['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x5cff75=C[_0x297e30(0x563)](_0x5de563,_0x411d6d);break;}case C['EffectRefRangId'][_0x297e30(0x1ff)]:{_0x5cff75=C[_0x297e30(0x2a2)](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)]['InsertRangeMoveDownCommandId']:{_0x5cff75=C[_0x297e30(0x34c)](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)][_0x297e30(0x43b)]:{_0x5cff75=C[_0x297e30(0x53d)](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)][_0x297e30(0x528)]:{_0x5cff75=C[_0x297e30(0x55d)](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)]['MoveRangeCommandId']:{_0x5cff75=C['handleMoveRange'](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)][_0x297e30(0x200)]:{_0x5cff75=C[_0x297e30(0x384)](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)][_0x297e30(0x31e)]:{_0x5cff75=C[_0x297e30(0x5c9)](_0x5de563,_0x411d6d);break;}}const _0x1e77d7=C[_0x297e30(0x44e)](_0x5cff75,_0x411d6d),_0xe34eb6=this[_0x297e30(0x512)][_0x297e30(0x40c)](_0x39f973);if(_0xe34eb6&&_0x1e77d7){const _0x174930={..._0xe34eb6,'range':_0x1e77d7};this[_0x297e30(0x512)]['set'](_0x39f973,_0x174930),_0x519e7c(()=>{const _0x8b452c=_0x297e30,_0x24b6c8=this[_0x8b452c(0x48b)][_0x8b452c(0x4fd)](_0x1e77d7,_0x143a1d=>(_0x24b6c8[_0x8b452c(0x54a)](),_0xb0b9b3(_0x143a1d,_0x39f973,_0xc63e55,_0x1e77d7)));_0x361ffe[_0x8b452c(0x3d0)](_0x24b6c8);});}return{'redos':[],'undos':[]};};this[_0x4087a5(0x512)][_0x4087a5(0x202)]((_0x1c0d19,_0x5bf5f8)=>{const _0x28a8cc=_0x4087a5,{range:_0x128f31,sheetID:_0x22180c}=_0x1c0d19,_0x59f063=this[_0x28a8cc(0x48b)]['registerRefRange'](_0x128f31,_0x2b99b0=>(_0x59f063[_0x28a8cc(0x54a)](),_0xb0b9b3(_0x2b99b0,_0x5bf5f8,_0x22180c,_0x128f31)));_0x361ffe[_0x28a8cc(0x3d0)](_0x59f063);});};this[_0x7827f4(0x4b2)](a[_0x7827f4(0x2ab)](this['_cursorInfo$'][_0x7827f4(0x359)](()=>{_0x33d288();})));}[_0x24c410(0x58f)](){const _0x325305=_0x24c410;var _0x5a546f,_0x31a5d2;if(this[_0x325305(0x1f1)]=!0x0,((_0x5a546f=this[_0x325305(0x329)][_0x325305(0x39f)]())==null?void 0x0:_0x5a546f[_0x325305(0x444)]())!==this['unitID'])return;const _0x42e8f6=(_0x31a5d2=this[_0x325305(0x495)]['get'](C['SheetsSelectionsService'])[_0x325305(0x1ef)]())==null?void 0x0:_0x31a5d2[0x0],_0xb7037c=this[_0x325305(0x329)][_0x325305(0x2e1)](a[_0x325305(0x461)][_0x325305(0x236)])[_0x325305(0x41c)]();_0x42e8f6&&_0xb7037c&&this[_0x325305(0x4cc)](_0xb7037c[_0x325305(0x5b7)](),_0x42e8f6);}[_0x24c410(0x510)](){const _0x27d181=_0x24c410;this[_0x27d181(0x1f1)]=!0x1;}};Be=ri([Q(0x2,a[_0x24c410(0x349)](a['Injector'])),Q(0x3,a[_0x24c410(0x349)](Je)),Q(0x4,a[_0x24c410(0x349)](q)),Q(0x5,a[_0x24c410(0x5e9)]),Q(0x6,a['ICommandService']),Q(0x7,a[_0x24c410(0x349)](C['RefRangeService']))],Be);var li=Object[_0x24c410(0x5d0)],hi=Object[_0x24c410(0x3e3)],_i=(_0x107b39,_0x786dd0,_0xb3f8b6,_0x786d5f)=>{const _0x5ac673=_0x24c410;for(var _0x36f4dc=_0x786d5f>0x1?void 0x0:_0x786d5f?hi(_0x786dd0,_0xb3f8b6):_0x786dd0,_0x44eaf9=_0x107b39[_0x5ac673(0x25b)]-0x1,_0x50c789;_0x44eaf9>=0x0;_0x44eaf9--)(_0x50c789=_0x107b39[_0x44eaf9])&&(_0x36f4dc=(_0x786d5f?_0x50c789(_0x786dd0,_0xb3f8b6,_0x36f4dc):_0x50c789(_0x36f4dc))||_0x36f4dc);return _0x786d5f&&_0x36f4dc&&li(_0x786dd0,_0xb3f8b6,_0x36f4dc),_0x36f4dc;},Me=(_0x305ff4,_0xfd7d00)=>(_0x4eacdf,_0x4ebd9a)=>_0xfd7d00(_0x4eacdf,_0x4ebd9a,_0x305ff4);let ne=class extends a['RxDisposable']{constructor(_0x5789d0,_0x289ae1,_0x33236f){const _0x51b3f3=_0x24c410;super(),u(this,_0x51b3f3(0x433),new Map()),u(this,_0x51b3f3(0x3a3),new v[(_0x51b3f3(0x29b))]()),(this['_univerInstanceService']=_0x5789d0,this[_0x51b3f3(0x495)]=_0x289ae1,this[_0x51b3f3(0x5d6)]=_0x33236f,this[_0x51b3f3(0x393)]());}[_0x24c410(0x54a)](){const _0x1be542=_0x24c410;super[_0x1be542(0x54a)](),this[_0x1be542(0x3a3)][_0x1be542(0x4a3)](),this[_0x1be542(0x433)][_0x1be542(0x202)](_0x5217d=>_0x5217d[_0x1be542(0x54a)]());}[_0x24c410(0x332)](_0x496ef5){const _0x5c1f3e=_0x24c410;return this[_0x5c1f3e(0x433)][_0x5c1f3e(0x3d7)](_0x496ef5)?this[_0x5c1f3e(0x433)][_0x5c1f3e(0x40c)](_0x496ef5)['cursorInfo$']:this[_0x5c1f3e(0x3a3)][_0x5c1f3e(0x404)](v['filter'](_0x2d4dab=>_0x2d4dab[_0x5c1f3e(0x4a2)]===_0x496ef5),v[_0x5c1f3e(0x20f)](_0x35503a=>_0x35503a['cursorInfo$']));}[_0x24c410(0x393)](){const _0x195722=_0x24c410;this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x195722(0x236)])[_0x195722(0x404)](v[_0x195722(0x2b1)](this[_0x195722(0x22f)]))[_0x195722(0x359)](async _0x144c90=>{const _0x424153=_0x195722,_0x4c004c=_0x144c90[_0x424153(0x444)](),_0x1f2c41=await this[_0x424153(0x1d2)](_0x4c004c);this[_0x424153(0x3a3)][_0x424153(0x4a9)](_0x1f2c41),this['_entities']['set'](_0x4c004c,_0x1f2c41);}),this[_0x195722(0x329)][_0x195722(0x1d6)](a[_0x195722(0x461)]['UNIVER_DOC'])[_0x195722(0x404)](v[_0x195722(0x2b1)](this['dispose$']))[_0x195722(0x404)](v[_0x195722(0x5ce)](_0x3cc4db=>!_0x3cc4db[_0x195722(0x444)]()['startsWith']('__')))['subscribe'](async _0xed5d6e=>{const _0x11d542=_0x195722,_0x1039bd=_0xed5d6e[_0x11d542(0x444)](),_0x2b5144=await this[_0x11d542(0x57b)](_0x1039bd);this[_0x11d542(0x3a3)]['next'](_0x2b5144),this['_entities']['set'](_0x1039bd,_0x2b5144);}),v[_0x195722(0x3e7)](this[_0x195722(0x329)][_0x195722(0x5c0)](a['UniverInstanceType'][_0x195722(0x489)]),this[_0x195722(0x329)]['getTypeOfUnitDisposed$'](a[_0x195722(0x461)][_0x195722(0x236)]))[_0x195722(0x404)](v[_0x195722(0x2b1)](this['dispose$']))['subscribe'](_0x22de6a=>{const _0x4b91e3=_0x195722,_0x3581b8=_0x22de6a[_0x4b91e3(0x444)](),_0x45bde1=this[_0x4b91e3(0x433)][_0x4b91e3(0x40c)](_0x3581b8);_0x45bde1&&(_0x45bde1[_0x4b91e3(0x54a)](),this['_entities'][_0x4b91e3(0x5a3)](_0x3581b8));});}async[_0x24c410(0x1d2)](_0x397e90){const _0xfc0567=_0x24c410,_0x532aa0=await this['_collabSessionService'][_0xfc0567(0x2b7)](_0x397e90),_0x232c46=this[_0xfc0567(0x495)][_0xfc0567(0x248)](Be,_0x397e90,_0x532aa0);return _0x232c46[_0xfc0567(0x478)](),_0x232c46;}async[_0x24c410(0x57b)](_0x26fcb8){const _0x28b340=_0x24c410,_0x32eba2=await this[_0x28b340(0x5d6)][_0x28b340(0x2b7)](_0x26fcb8),_0x1d4463=this[_0x28b340(0x495)][_0x28b340(0x248)](ke,_0x26fcb8,_0x32eba2);return _0x1d4463[_0x28b340(0x478)](),_0x1d4463;}};ne=_i([Me(0x0,a[_0x24c410(0x5e9)]),Me(0x1,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),Me(0x2,a[_0x24c410(0x349)](exports[_0x24c410(0x2a1)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x240c40,_0x12f284){const _0x37f914=_0x24c410;let {radius:_0x3673ea,width:_0x18c98b,height:_0x2ad609}=_0x12f284;_0x3673ea=_0x3673ea!=null?_0x3673ea:0x0,_0x18c98b=_0x18c98b!=null?_0x18c98b:0x1e,_0x2ad609=_0x2ad609!=null?_0x2ad609:0x1e;let _0x44a90c=0x0,_0x451387=0x0,_0x79b73d=0x0;_0x44a90c=_0x451387=_0x79b73d=Math[_0x37f914(0x3bf)](_0x3673ea,_0x18c98b/0x2,_0x2ad609/0x2),_0x240c40['beginPath'](),_0x240c40['moveTo'](_0x44a90c,0x0),_0x240c40['lineTo'](_0x18c98b-_0x451387,0x0),_0x240c40[_0x37f914(0x372)](_0x18c98b-_0x451387,_0x451387,_0x451387,Math['PI']*0x3/0x2,0x0,!0x1),_0x240c40[_0x37f914(0x58a)](_0x18c98b,_0x2ad609-_0x79b73d),_0x240c40[_0x37f914(0x372)](_0x18c98b-_0x79b73d,_0x2ad609-_0x79b73d,_0x79b73d,0x0,Math['PI']/0x2,!0x1),_0x240c40['lineTo'](0x0,_0x2ad609),_0x240c40['lineTo'](0x0,_0x44a90c),_0x240c40[_0x37f914(0x372)](_0x44a90c,_0x44a90c,_0x44a90c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x240c40['closePath'](),_0x12f284[_0x37f914(0x4d3)]&&(_0x240c40[_0x37f914(0x2a9)](),_0x240c40[_0x37f914(0x586)]=_0x12f284[_0x37f914(0x4d3)],_0x12f284[_0x37f914(0x5f2)]==='evenodd'?_0x240c40[_0x37f914(0x4d3)]('evenodd'):_0x240c40[_0x37f914(0x4d3)](),_0x240c40['restore']());}class Oe extends O['Shape']{constructor(_0x29267c,_0x5664b4){const _0x36ddc4=_0x24c410;super(_0x29267c,_0x5664b4),u(this,'color'),u(this,_0x36ddc4(0x47d)),(this[_0x36ddc4(0x2ce)]=_0x5664b4==null?void 0x0:_0x5664b4[_0x36ddc4(0x2ce)],this[_0x36ddc4(0x47d)]=_0x5664b4==null?void 0x0:_0x5664b4[_0x36ddc4(0x47d)]);}static['drawWith'](_0xb05b2a,_0x3bf73c){const _0x68b83e=_0x24c410,{text:_0x4125c7,color:_0x3f7052}=_0x3bf73c;_0xb05b2a['save'](),_0xb05b2a['font']=_0x68b83e(0x527);const _0x2e74a6=_0xb05b2a[_0x68b83e(0x4f1)](_0x4125c7)[_0x68b83e(0x5f6)],_0xd57295=Math[_0x68b83e(0x3bf)](_0x2e74a6+0x2*Ae,lt);di(_0xb05b2a,{'height':de,'radius':0x4,'width':_0xd57295,'fill':_0x3f7052,'evented':!0x1}),_0xb05b2a[_0x68b83e(0x586)]=_0x68b83e(0x225);const _0xca8bc1=Ae,_0x320220=de-ui,_0x4377aa=lt-0x2*Ae;if(_0x2e74a6>_0x4377aa){let _0x10cda5='',_0x525b68=0x0;for(const _0x2eaee9 of _0x4125c7){const _0x3240ae=_0xb05b2a[_0x68b83e(0x4f1)](_0x2eaee9)[_0x68b83e(0x5f6)];if(_0x525b68+_0x3240ae<=_0x4377aa-_0xb05b2a[_0x68b83e(0x4f1)](_0x68b83e(0x30d))['width'])_0x10cda5+=_0x2eaee9,_0x525b68+=_0x3240ae;else{_0x10cda5+=_0x68b83e(0x30d);break;}}_0xb05b2a[_0x68b83e(0x53f)](_0x10cda5,_0xca8bc1,_0x320220);}else _0xb05b2a[_0x68b83e(0x53f)](_0x4125c7,_0xca8bc1,_0x320220);_0xb05b2a['restore']();}[_0x24c410(0x45a)](_0x2290e6){const _0x53a280=_0x24c410;Oe[_0x53a280(0x552)](_0x2290e6,this);}}const Le=_0x24c410(0x5ab),Si=_0x24c410(0x324),vi=_0x24c410(0x274),le=0x6,gi=1.5,je=0x4,mi=1.5,fi=_0x24c410(0x3dd);class ht{constructor(_0x5572f5,_0x35e70e,_0x5794d2,_0x46e951){const _0x383360=_0x24c410;u(this,_0x383360(0x5c7),[]),u(this,_0x383360(0x37b),null),u(this,_0x383360(0x1f3),null),u(this,_0x383360(0x1ea),null),u(this,_0x383360(0x218),null),u(this,_0x383360(0x517),null),(this['_cursor']=_0x5572f5,this[_0x383360(0x457)]=_0x35e70e,this[_0x383360(0x556)]=_0x5794d2,this['_document']=_0x46e951,this[_0x383360(0x4ae)]());}set[_0x24c410(0x326)](_0x32d633){const _0x13dd2f=_0x24c410;_0x32d633?(this[_0x13dd2f(0x1ea)]&&this[_0x13dd2f(0x1ea)][_0x13dd2f(0x5d2)](),this[_0x13dd2f(0x1f3)]&&this[_0x13dd2f(0x1f3)][_0x13dd2f(0x3bc)]()):(this[_0x13dd2f(0x1ea)]&&this[_0x13dd2f(0x1ea)][_0x13dd2f(0x3bc)](),this[_0x13dd2f(0x1f3)]&&this[_0x13dd2f(0x1f3)][_0x13dd2f(0x5d2)]());}[_0x24c410(0x54a)](){const _0x2130b0=_0x24c410;for(const _0x1dd49d of this[_0x2130b0(0x5c7)])_0x1dd49d[_0x2130b0(0x54a)]();this['_textBubble']&&this[_0x2130b0(0x1f3)]['dispose'](),this[_0x2130b0(0x1ea)]&&this[_0x2130b0(0x1ea)][_0x2130b0(0x54a)](),this[_0x2130b0(0x37b)]&&this['_anchor'][_0x2130b0(0x54a)](),this['_eventUnsubscribe']&&this[_0x2130b0(0x517)]();}[_0x24c410(0x4ae)](){const _0x1994cf=_0x24c410;var _0x2a8482;const {_docSkeleton:_0x387a25,_document:_0x3e469e}=this,{color:_0x10c353,name:_0xdf0776,ranges:_0x5ca937}=this[_0x1994cf(0x519)],_0x5da15a=_0x3e469e[_0x1994cf(0x3fe)](),{docsLeft:_0x5c5c1f,docsTop:_0x30882b}=_0x5da15a,_0x598945=new N['NodePositionConvertToCursor'](_0x5da15a,_0x387a25);for(const {startOffset:_0xd89f7b,endOffset:_0x593159,collapsed:_0x13cf3c,isActive:_0x2d8fc0}of _0x5ca937){const _0x1ad757=_0x387a25[_0x1994cf(0x561)](_0xd89f7b),_0x3c6525=_0x387a25[_0x1994cf(0x561)](_0x593159);if(_0x2d8fc0){const {contentBoxPointGroup:_0x4d1082}=_0x598945[_0x1994cf(0x545)](_0x3c6525,_0x3c6525);if(_0x4d1082[_0x1994cf(0x25b)]===0x0)continue;this[_0x1994cf(0x36a)](_0x10c353,_0x4d1082,_0x5c5c1f,_0x30882b,_0xdf0776),this['_eventUnsubscribe']=this[_0x1994cf(0x521)]();}if(!_0x13cf3c&&_0x1ad757&&_0x3c6525){if(N[_0x1994cf(0x520)](_0x1ad757,_0x3c6525)){const _0x38ee8c=new N[(_0x1994cf(0x594))](_0x5da15a,_0x387a25),{pointGroup:_0x467f9f}=(_0x2a8482=_0x38ee8c[_0x1994cf(0x545)](_0x1ad757,_0x3c6525))!=null?_0x2a8482:{};if(_0x467f9f==null||_0x467f9f[_0x1994cf(0x25b)]===0x0)continue;this[_0x1994cf(0x285)](_0x10c353,_0x467f9f,_0x5c5c1f,_0x30882b);}else{const {contentBoxPointGroup:_0x36cb4b}=_0x598945['getRangePointData'](_0x1ad757,_0x3c6525);if(_0x36cb4b[_0x1994cf(0x25b)]===0x0)continue;this[_0x1994cf(0x3d5)](_0x10c353,_0x36cb4b,_0x5c5c1f,_0x30882b);}}}}[_0x24c410(0x36a)](_0x1cc1e3,_0x12934e,_0x4363c1,_0x25964d,_0x33f90c){const _0x2ffab4=_0x24c410,_0x2f5020=this[_0x2ffab4(0x3c1)](_0x12934e),{left:_0xe0ea74,top:_0x3ad527,height:_0x503551}=_0x2f5020,_0x20ed7f=this[_0x2ffab4(0x2d5)](),_0x400506=mi/_0x20ed7f,_0x322ece=new O[(_0x2ffab4(0x46e))](Le+a[_0x2ffab4(0x45b)][_0x2ffab4(0x497)](le),{'left':_0xe0ea74+_0x4363c1-_0x400506,'top':_0x3ad527+_0x25964d,'height':_0x503551,'width':gi,'fill':_0x1cc1e3||O[_0x2ffab4(0x412)](a[_0x2ffab4(0x458)][_0x2ffab4(0x3c3)],0x0),'strokeWidth':_0x400506,'stroke':fi,'evented':!0x0});this[_0x2ffab4(0x37b)]=_0x322ece,this[_0x2ffab4(0x457)][_0x2ffab4(0x4de)](_0x322ece,N[_0x2ffab4(0x5e3)]);const _0x4a77ec=new O[(_0x2ffab4(0x46e))](Le+a[_0x2ffab4(0x45b)][_0x2ffab4(0x497)](le),{'left':_0xe0ea74+_0x4363c1-_0x400506,'top':_0x3ad527+_0x25964d-je/0x2,'height':je,'width':je,'fill':_0x1cc1e3||O[_0x2ffab4(0x412)](a[_0x2ffab4(0x458)][_0x2ffab4(0x3c3)],0x0),'strokeWidth':0x0,'stroke':_0x1cc1e3||O['getColor'](a[_0x2ffab4(0x458)][_0x2ffab4(0x3c3)],0x0),'evented':!0x1});this[_0x2ffab4(0x1ea)]=_0x4a77ec,this[_0x2ffab4(0x457)][_0x2ffab4(0x4de)](_0x4a77ec,N[_0x2ffab4(0x5e3)]);const _0x2ba8f5=new Oe(Le+a[_0x2ffab4(0x45b)]['generateRandomId'](le),{'left':_0xe0ea74+_0x4363c1-_0x400506,'top':_0x3ad527+_0x25964d-de,'text':_0x33f90c,'color':_0x1cc1e3});this['_textBubble']=_0x2ba8f5,this[_0x2ffab4(0x457)]['addObject'](_0x2ba8f5,N['TEXT_RANGE_LAYER_INDEX']),this[_0x2ffab4(0x326)]=!0x1;}['_handleHover'](){const _0x12b725=_0x24c410,_0x2ae6a4=this[_0x12b725(0x37b)][_0x12b725(0x245)][_0x12b725(0x584)](()=>{const _0x3fcbb9=_0x12b725;this[_0x3fcbb9(0x326)]=!0x0;}),_0x53e0a6=this[_0x12b725(0x37b)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x5d6961=_0x12b725;this[_0x5d6961(0x218)]&&clearTimeout(this['_hideTimer']),this[_0x5d6961(0x218)]=setTimeout(()=>{const _0xfa3bd1=_0x5d6961;this[_0xfa3bd1(0x326)]=!0x1;},0x7d0);});return()=>{const _0x2f3f96=_0x12b725;_0x2ae6a4['unsubscribe'](),_0x53e0a6[_0x2f3f96(0x5d5)]();};}[_0x24c410(0x3d5)](_0x51ad76,_0x7c819a,_0x33e305,_0x4a21f4){const _0x475e2e=_0x24c410,_0xecbe25=new a['ColorKit'](_0x51ad76)[_0x475e2e(0x41b)](0.2)[_0x475e2e(0x34f)](),_0x465e87=new O['RegularPolygon'](Si+a['Tools'][_0x475e2e(0x497)](le),{'pointsGroup':_0x7c819a,'fill':_0xecbe25||O['getColor'](a[_0x475e2e(0x458)][_0x475e2e(0x3c3)],0.2),'left':_0x33e305,'top':_0x4a21f4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x475e2e(0x5c7)][_0x475e2e(0x222)](_0x465e87),this['_scene'][_0x475e2e(0x4de)](_0x465e87,N[_0x475e2e(0x5e3)]);}[_0x24c410(0x285)](_0x570174,_0xa4dab3,_0x838d0e,_0x585d57){const _0x210c9b=_0x24c410,_0x143288=new a[(_0x210c9b(0x44f))](_0x570174)['setAlpha'](0.2)[_0x210c9b(0x34f)](),_0x3ab16a=new O[(_0x210c9b(0x5c5))](vi+a['Tools'][_0x210c9b(0x497)](le),{'pointsGroup':_0xa4dab3,'fill':_0x143288||O[_0x210c9b(0x412)](a[_0x210c9b(0x458)]['black'],0.2),'left':_0x838d0e,'top':_0x585d57,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x210c9b(0x5c7)][_0x210c9b(0x222)](_0x3ab16a),this[_0x210c9b(0x457)]['addObject'](_0x3ab16a,N['TEXT_RANGE_LAYER_INDEX']);}[_0x24c410(0x3c1)](_0x3f9aa2){const _0xf9e6a3=_0x3f9aa2[0x0],_0x404906=_0xf9e6a3[0x0],_0x2b1349=_0xf9e6a3[0x2],{x:_0x33b28b,y:_0x1d6511}=_0x404906,{x:_0x497b73,y:_0x2b2da4}=_0x2b1349;return{'left':_0x33b28b,'top':_0x1d6511,'width':_0x497b73-_0x33b28b,'height':_0x2b2da4-_0x1d6511};}[_0x24c410(0x2d5)](){const _0x54d224=_0x24c410,{scaleX:_0x53c962,scaleY:_0x2eb07b}=this[_0x54d224(0x457)][_0x54d224(0x532)]();return Math[_0x54d224(0x23e)](_0x53c962,_0x2eb07b);}}var Ii=Object[_0x24c410(0x5d0)],pi=Object[_0x24c410(0x3e3)],Ci=(_0x160eab,_0xb7f845,_0x4a26fb,_0x2e3245)=>{const _0x5bb6be=_0x24c410;for(var _0x4b4f17=_0x2e3245>0x1?void 0x0:_0x2e3245?pi(_0xb7f845,_0x4a26fb):_0xb7f845,_0x56d0b2=_0x160eab[_0x5bb6be(0x25b)]-0x1,_0x5199ff;_0x56d0b2>=0x0;_0x56d0b2--)(_0x5199ff=_0x160eab[_0x56d0b2])&&(_0x4b4f17=(_0x2e3245?_0x5199ff(_0xb7f845,_0x4a26fb,_0x4b4f17):_0x5199ff(_0x4b4f17))||_0x4b4f17);return _0x2e3245&&_0x4b4f17&&Ii(_0xb7f845,_0x4a26fb,_0x4b4f17),_0x4b4f17;},ve=(_0x123527,_0x120f45)=>(_0x4ceab2,_0x149d24)=>_0x120f45(_0x4ceab2,_0x149d24,_0x123527);let Ve=class extends a['RxDisposable']{constructor(_0x475258,_0x128dc7,_0x5bb240,_0x21a891,_0x22d1c5){const _0x14a2eb=_0x24c410;super(),u(this,_0x14a2eb(0x431),[]),u(this,'_cursors',[]),(this[_0x14a2eb(0x59a)]=_0x475258,this[_0x14a2eb(0x2dd)]=_0x128dc7,this['_collabCursorController']=_0x5bb240,this[_0x14a2eb(0x2ed)]=_0x21a891,this[_0x14a2eb(0x266)]=_0x22d1c5,this[_0x14a2eb(0x393)]());}[_0x24c410(0x393)](){const _0x30f308=_0x24c410,_0x3b8550=this[_0x30f308(0x59a)][_0x30f308(0x253)],_0x31b2e9=this[_0x30f308(0x2dd)];this['disposeWithMe'](v[_0x30f308(0x2cf)]([this[_0x30f308(0x36e)][_0x30f308(0x332)](_0x3b8550),this[_0x30f308(0x266)][_0x30f308(0x273)]])['pipe'](E[_0x30f308(0x24d)](([_0x59bfce,_0x1e5660])=>({'skeleton':_0x31b2e9[_0x30f308(0x2c4)](),'cursors':[..._0x59bfce['values']()][_0x30f308(0x2b9)](_0x3b49d1=>({..._0x3b49d1,'color':_0x1e5660[_0x3b49d1[_0x30f308(0x2ce)]]}))})))[_0x30f308(0x359)](_0x36c259=>{const _0x5576c4=_0x30f308;if(this[_0x5576c4(0x25d)](),_0x36c259){const {skeleton:_0x4cfe43,cursors:_0x85c24e}=_0x36c259;this[_0x5576c4(0x2af)](_0x4cfe43,_0x85c24e);}})),this[_0x30f308(0x3a6)](),this[_0x30f308(0x1f9)]();}[_0x24c410(0x2af)](_0x3934de,_0x23483a){const _0x52451f=_0x24c410,{scene:_0x4b7ecb,mainComponent:_0x212ea5}=this['_context'],_0x270a9e=_0x23483a[_0x52451f(0x24d)](_0x1bb316=>new ht(_0x1bb316,_0x4b7ecb,_0x3934de,_0x212ea5));this[_0x52451f(0x431)]=_0x270a9e,this[_0x52451f(0x262)]=_0x23483a;}[_0x24c410(0x51a)](){const _0x236640=_0x24c410;this['_removeCollabCursors']();const {scene:_0x5b7461,mainComponent:_0x5013f9}=this[_0x236640(0x59a)],_0x5270db=this[_0x236640(0x2dd)][_0x236640(0x2c4)](),_0xa78cb7=this[_0x236640(0x262)][_0x236640(0x24d)](_0x2de76a=>new ht(_0x2de76a,_0x5b7461,_0x5270db,_0x5013f9));this['_cursorShapes']=_0xa78cb7;}[_0x24c410(0x25d)](){const _0x56ecc0=_0x24c410;this[_0x56ecc0(0x431)]['forEach'](_0x7adec0=>_0x7adec0[_0x56ecc0(0x54a)]()),this[_0x56ecc0(0x431)]=[];}[_0x24c410(0x1f9)](){const _0x2448d6=_0x24c410,_0xff6f8a=[N[_0x2448d6(0x2eb)]['id']];this[_0x2448d6(0x4b2)](this[_0x2448d6(0x2ed)]['onCommandExecuted'](_0x1a5c6b=>{const _0xbb707b=_0x2448d6;_0xff6f8a['includes'](_0x1a5c6b['id'])&&_0x1a5c6b[_0xbb707b(0x57a)]['unitId']===this[_0xbb707b(0x59a)][_0xbb707b(0x253)]&&this[_0xbb707b(0x51a)]();}));}[_0x24c410(0x3a6)](){const _0x3c4d72=_0x24c410;this[_0x3c4d72(0x4b2)](a[_0x3c4d72(0x420)](this[_0x3c4d72(0x59a)]['engine']['onTransformChange$'])[_0x3c4d72(0x404)](E[_0x3c4d72(0x5ce)](_0x1d7a10=>_0x1d7a10[_0x3c4d72(0x28b)]===O[_0x3c4d72(0x29d)][_0x3c4d72(0x2aa)]),E[_0x3c4d72(0x345)](0x10))[_0x3c4d72(0x359)](()=>{const _0x19f083=_0x3c4d72;this[_0x19f083(0x51a)]();}));}};Ve=Ci([ve(0x1,a[_0x24c410(0x349)](se[_0x24c410(0x460)])),ve(0x2,a[_0x24c410(0x349)](ne)),ve(0x3,a[_0x24c410(0x494)]),ve(0x4,a[_0x24c410(0x349)](a[_0x24c410(0x2a3)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends O[_0x24c410(0x2e9)]{constructor(_0x1cf81c,_0x37f6ec){const _0x4e43a9=_0x24c410;super(_0x1cf81c,_0x37f6ec),u(this,_0x4e43a9(0x1d4)),u(this,_0x4e43a9(0x5cf),!0x1),u(this,'_range'),u(this,_0x4e43a9(0x588),''),u(this,_0x4e43a9(0x4aa),_0x4e43a9(0x5d9)),u(this,'_backgroundColor'),(_0x37f6ec&&this[_0x4e43a9(0x529)](_0x37f6ec),this[_0x4e43a9(0x245)]['subscribeEvent'](()=>this[_0x4e43a9(0x529)]({'hovered':!0x0})),this[_0x4e43a9(0x21b)][_0x4e43a9(0x584)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x24c410(0x529)](_0x3fa885){const _0x523452=_0x24c410;var _0x4baa0c,_0x26cc32,_0x2f40f1,_0x17fff7,_0x53a856,_0x829c92;this[_0x523452(0x1d4)]=(_0x4baa0c=_0x3fa885['color'])!=null?_0x4baa0c:this[_0x523452(0x1d4)],this[_0x523452(0x5cf)]=(_0x26cc32=_0x3fa885[_0x523452(0x5a6)])!=null?_0x26cc32:this[_0x523452(0x5cf)],this[_0x523452(0x440)]=(_0x2f40f1=_0x3fa885[_0x523452(0x2f6)])!=null?_0x2f40f1:this['_range'],this[_0x523452(0x588)]=(_0x17fff7=_0x3fa885['name'])!=null?_0x17fff7:this['_name'],this[_0x523452(0x4aa)]=(_0x53a856=_0x3fa885[_0x523452(0x452)])!=null?_0x53a856:this[_0x523452(0x4aa)],this[_0x523452(0x58e)]=(_0x829c92=_0x3fa885[_0x523452(0x543)])!=null?_0x829c92:this['_backgroundColor'],this['transformByState']({'width':_0x3fa885[_0x523452(0x5f6)],'height':_0x3fa885['height']});}['onMouseMove'](_0x4a5587){const _0x28d1c4=_0x24c410,{row:_0xa226ce,column:_0x237d55}=_0x4a5587;if(_0xa226ce>=this[_0x28d1c4(0x440)][_0x28d1c4(0x500)]&&_0xa226ce<=this[_0x28d1c4(0x440)][_0x28d1c4(0x5e7)]&&_0x237d55>=this[_0x28d1c4(0x440)][_0x28d1c4(0x446)]&&_0x237d55<=this[_0x28d1c4(0x440)][_0x28d1c4(0x206)]){this[_0x28d1c4(0x529)]({'hovered':!0x0});return;}this[_0x28d1c4(0x529)]({'hovered':!0x1});}[_0x24c410(0x3bb)](_0x203ed1){return!0x1;}[_0x24c410(0x45a)](_0x369838){const _0xeb9731=_0x24c410;O[_0xeb9731(0x46e)][_0xeb9731(0x552)](_0x369838,{'width':this[_0xeb9731(0x5f6)],'height':this['height'],'strokeWidth':bi,'stroke':this[_0xeb9731(0x1d4)],'evented':!0x1,'fill':this[_0xeb9731(0x58e)]}),this[_0xeb9731(0x5cf)]&&(_0x369838[_0xeb9731(0x2a9)](),_0x369838[_0xeb9731(0x53e)](0x1,0x0,0x0,0x1,this[_0xeb9731(0x5f6)],this['_labelPosition']===_0xeb9731(0x3cd)?0x0:-de),Oe[_0xeb9731(0x552)](_0x369838,{'text':this['_name'],'color':this[_0xeb9731(0x1d4)]}),_0x369838['restore']());}}var Ti=Object[_0x24c410(0x5d0)],Ri=Object['getOwnPropertyDescriptor'],Oi=(_0xda6190,_0x3eddcf,_0x6e90a0,_0x1921f7)=>{const _0x52bbc4=_0x24c410;for(var _0x1ebfd4=_0x1921f7>0x1?void 0x0:_0x1921f7?Ri(_0x3eddcf,_0x6e90a0):_0x3eddcf,_0x145193=_0xda6190[_0x52bbc4(0x25b)]-0x1,_0x2f9353;_0x145193>=0x0;_0x145193--)(_0x2f9353=_0xda6190[_0x145193])&&(_0x1ebfd4=(_0x1921f7?_0x2f9353(_0x3eddcf,_0x6e90a0,_0x1ebfd4):_0x2f9353(_0x1ebfd4))||_0x1ebfd4);return _0x1921f7&&_0x1ebfd4&&Ti(_0x3eddcf,_0x6e90a0,_0x1ebfd4),_0x1ebfd4;},$e=(_0x50d7b3,_0x4714c4)=>(_0x29a9a1,_0x483d94)=>_0x4714c4(_0x29a9a1,_0x483d94,_0x50d7b3);const Di=0x1389;let We=class extends a['RxDisposable']{constructor(_0x52f2c7,_0x14b28f,_0x170f3a,_0x247327){const _0xf4c1ab=_0x24c410;super(),u(this,'_cursors',new Set()),u(this,_0xf4c1ab(0x4ba),null),(this[_0xf4c1ab(0x59a)]=_0x52f2c7,this[_0xf4c1ab(0x470)]=_0x14b28f,this[_0xf4c1ab(0x36e)]=_0x170f3a,this[_0xf4c1ab(0x266)]=_0x247327,this[_0xf4c1ab(0x393)]());}['_init'](){const _0x20ab57=_0x24c410;this[_0x20ab57(0x470)][_0x20ab57(0x402)][_0x20ab57(0x404)](E[_0x20ab57(0x2b1)](this[_0x20ab57(0x22f)]),E[_0x20ab57(0x20f)](_0x32f9ca=>{const _0x30fc4c=_0x20ab57;if(_0x32f9ca){const _0x11dc87=_0x32f9ca['sheetId'];return v['combineLatest'](this[_0x30fc4c(0x36e)][_0x30fc4c(0x332)](this['_context'][_0x30fc4c(0x253)]),this[_0x30fc4c(0x266)][_0x30fc4c(0x273)])[_0x30fc4c(0x404)](E[_0x30fc4c(0x24d)](([_0x50a924,_0x24b180])=>{const _0x2a7fa6=_0x30fc4c,_0x3344ce=new Map();return _0x50a924[_0x2a7fa6(0x202)]((_0x335ab2,_0x1d90fb)=>{const _0xa69682=_0x2a7fa6;if(_0x335ab2[_0xa69682(0x37a)]===_0x11dc87){const _0xc4ddbd={..._0x335ab2};_0xc4ddbd[_0xa69682(0x2ce)]=_0x24b180[_0x335ab2[_0xa69682(0x2ce)]],_0x3344ce[_0xa69682(0x48d)](_0x1d90fb,_0xc4ddbd);}}),{'skeleton':_0x32f9ca,'cursors':_0x3344ce};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1889c5,cursors:_0x53b1b3})=>{const _0x1c0405=_0x20ab57;this[_0x1c0405(0x25d)](),_0x1889c5&&this['_updateCollabCursors'](_0x1889c5,_0x53b1b3);}),this[_0x20ab57(0x470)][_0x20ab57(0x402)][_0x20ab57(0x359)](_0x209137=>{const _0x4a7612=_0x20ab57;if(_0x209137==null)return;const {skeleton:_0x34b3ed}=_0x209137,{scene:_0x189517}=this[_0x4a7612(0x59a)];_0x189517[_0x4a7612(0x2f7)]['subscribeEvent'](a['debounce'](_0x37ca52=>{const _0x14da14=_0x4a7612;var _0x5859db,_0x2ea291;const {offsetX:_0x177c0f,offsetY:_0x122d97}=_0x37ca52,{x:_0x4509be,y:_0x350f1e}=_0x189517[_0x14da14(0x1ce)](O[_0x14da14(0x265)]['FromArray']([_0x177c0f,_0x122d97])),{scaleX:_0x3c9986,scaleY:_0x2989c8}=_0x189517[_0x14da14(0x532)](),_0x57ee70=_0x189517[_0x14da14(0x32f)](te[_0x14da14(0x3fd)]['VIEW_MAIN']),_0x400062=_0x189517[_0x14da14(0x26b)](O[_0x14da14(0x265)][_0x14da14(0x483)]([_0x4509be,_0x350f1e]),_0x57ee70),_0x29e503=_0x34b3ed[_0x14da14(0x3d3)](_0x177c0f,_0x122d97,_0x3c9986,_0x2989c8,_0x400062);((_0x5859db=this[_0x14da14(0x4ba)])==null?void 0x0:_0x5859db[_0x14da14(0x5f5)])===_0x29e503[_0x14da14(0x5f5)]&&((_0x2ea291=this[_0x14da14(0x4ba)])==null?void 0x0:_0x2ea291['row'])===_0x29e503[_0x14da14(0x3b4)]||this[_0x14da14(0x262)]['forEach'](_0x34876d=>{_0x34876d['onMouseMove'](_0x29e503);});},0x64));});}['_updateCollabCursors'](_0x41ada6,_0x3b6022){const _0x108367=_0x24c410;var _0x135b4b;const _0x3b11eb=(_0x135b4b=this['_sheetSkeletonManagerService'][_0x108367(0x377)]())==null?void 0x0:_0x135b4b['skeleton'];if(!_0x3b11eb)return;const _0x430cf5=this['_getSheetObject']();if(!_0x430cf5)return;this['_cursors'][_0x108367(0x202)](_0x233901=>{_0x233901['makeDirty']();});const {scene:_0x3bd178}=_0x430cf5,_0x6ccc32=yi(Array['from'](_0x3b6022[_0x108367(0x49b)]()))[_0x108367(0x24d)](_0x5e91b7=>{const _0x2acf8d=_0x108367,{color:_0x1dd4ea,range:_0xa98b6d,name:_0x21f569,selection:_0xe9c193,sheetID:_0x5a0315}=_0x5e91b7,{startColumn:_0x587ffa,startRow:_0x56b9b0,endColumn:_0x4b9b68,endRow:_0x38665e}=_0xa98b6d,_0x64d95d=te['getCoordByCell'](_0x56b9b0,_0x587ffa,_0x3bd178,_0x3b11eb),_0x1279c5=te[_0x2acf8d(0x308)](_0x38665e,_0x4b9b68,_0x3bd178,_0x3b11eb),{columnHeaderHeightAndMarginTop:_0x1a0c58}=_0x3b11eb,{startX:_0x3b1e84,startY:_0x51dcfd}=_0x64d95d,{endX:_0x4f5e91,endY:_0x4f7532}=_0x1279c5,_0x3c9a1f=_0x4f5e91-_0x3b1e84,_0x39ab41=_0x4f7532-_0x51dcfd,_0x357411={'labelPosition':_0x51dcfd-_0x1a0c58>=de?_0x2acf8d(0x5d9):_0x2acf8d(0x3cd),'sheetID':_0x5a0315,'range':_0xa98b6d,'color':_0x1dd4ea,'name':_0x21f569,'selection':_0xe9c193,'left':_0x3b1e84,'top':_0x51dcfd,'width':_0x3c9a1f,'height':_0x39ab41,'evented':!0x1,'zIndex':Di};return new Pt(_0x21f569,_0x357411);});_0x3bd178[_0x108367(0x56c)](_0x6ccc32,Ei),this[_0x108367(0x262)]=new Set(_0x6ccc32);}[_0x24c410(0x25d)](){const _0x366eaf=_0x24c410;var _0x2816ac;(_0x2816ac=this[_0x366eaf(0x262)])==null||_0x2816ac[_0x366eaf(0x202)](_0x294762=>_0x294762['dispose']());}[_0x24c410(0x39a)](){const _0x29fd18=_0x24c410;return te[_0x29fd18(0x5eb)](this[_0x29fd18(0x59a)][_0x29fd18(0x4c4)],this[_0x29fd18(0x59a)]);}};We=Oi([$e(0x1,a[_0x24c410(0x349)](te['SheetSkeletonManagerService'])),$e(0x2,a[_0x24c410(0x349)](ne)),$e(0x3,a[_0x24c410(0x349)](a[_0x24c410(0x2a3)]))],We);function yi(_0x38a75e){const _0x394b53=_0x24c410,_0xbe872c=new Map();return _0x38a75e[_0x394b53(0x202)](_0x102142=>{const _0x244535=_0x394b53;if(_0xbe872c[_0x244535(0x3d7)](_0x102142[_0x244535(0x27b)])){const _0x480005=_0xbe872c[_0x244535(0x40c)](_0x102142[_0x244535(0x27b)]);_0x480005[_0x244535(0x356)]+=',\x20'+_0x102142[_0x244535(0x356)];}else _0xbe872c[_0x244535(0x48d)](_0x102142[_0x244535(0x27b)],_0x102142);}),Array['from'](_0xbe872c[_0x394b53(0x49b)]());}var M=function(){const _0x505afe=_0x24c410;return M=Object[_0x505afe(0x232)]||function(_0x38679e){const _0x3684ba=_0x505afe;for(var _0x413370,_0x1a7a76=0x1,_0x21ef18=arguments['length'];_0x1a7a76<_0x21ef18;_0x1a7a76++){_0x413370=arguments[_0x1a7a76];for(var _0x3bd367 in _0x413370)Object[_0x3684ba(0x53c)][_0x3684ba(0x48e)][_0x3684ba(0x5a2)](_0x413370,_0x3bd367)&&(_0x38679e[_0x3bd367]=_0x413370[_0x3bd367]);}return _0x38679e;},M['apply'](this,arguments);},Ui=function(_0x1f0ec4,_0x2e7bbf){const _0x15c1a1=_0x24c410;var _0x3e523e={};for(var _0x9bf7dd in _0x1f0ec4)Object[_0x15c1a1(0x53c)][_0x15c1a1(0x48e)][_0x15c1a1(0x5a2)](_0x1f0ec4,_0x9bf7dd)&&_0x2e7bbf[_0x15c1a1(0x403)](_0x9bf7dd)<0x0&&(_0x3e523e[_0x9bf7dd]=_0x1f0ec4[_0x9bf7dd]);if(_0x1f0ec4!=null&&typeof Object['getOwnPropertySymbols']==_0x15c1a1(0x5ac)){for(var _0x2e08bb=0x0,_0x9bf7dd=Object['getOwnPropertySymbols'](_0x1f0ec4);_0x2e08bb<_0x9bf7dd['length'];_0x2e08bb++)_0x2e7bbf[_0x15c1a1(0x403)](_0x9bf7dd[_0x2e08bb])<0x0&&Object['prototype'][_0x15c1a1(0x25c)][_0x15c1a1(0x5a2)](_0x1f0ec4,_0x9bf7dd[_0x2e08bb])&&(_0x3e523e[_0x9bf7dd[_0x2e08bb]]=_0x1f0ec4[_0x9bf7dd[_0x2e08bb]]);}return _0x3e523e;},Ze=P[_0x24c410(0x425)](function(_0x1d7818,_0x35974a){const _0xc9cea8=_0x24c410;var _0x5645c4=_0x1d7818[_0xc9cea8(0x4cf)],_0x40b37a=_0x1d7818['id'],_0x2de351=_0x1d7818[_0xc9cea8(0x4dc)],_0x557fe9=_0x1d7818[_0xc9cea8(0x28c)],_0x160602=Ui(_0x1d7818,[_0xc9cea8(0x4cf),'id','className',_0xc9cea8(0x28c)]),_0x116d21=_0xc9cea8(0x1d8)['concat'](_0x40b37a,'\x20')[_0xc9cea8(0x295)](_0x2de351||'')[_0xc9cea8(0x3dc)](),_0x5c7e0d=P[_0xc9cea8(0x576)]('_'[_0xc9cea8(0x295)](Ni()));return wt(_0x5645c4,''[_0xc9cea8(0x295)](_0x40b37a),{'defIds':_0x5645c4['defIds'],'idSuffix':_0x5c7e0d['current']},M({'ref':_0x35974a,'className':_0x116d21},_0x160602),_0x557fe9);});function wt(_0xe5c892,_0x28f410,_0x30942a,_0x444f97,_0x274ba9){const _0x27ee97=_0x24c410;return P[_0x27ee97(0x1e0)](_0xe5c892[_0x27ee97(0x338)],M(M({'key':_0x28f410},Pi(_0xe5c892,_0x30942a,_0x274ba9)),_0x444f97),(wi(_0xe5c892,_0x30942a)[_0x27ee97(0x38d)]||[])['map'](function(_0x14a848,_0x4f4b30){const _0x3abe37=_0x27ee97;return wt(_0x14a848,''['concat'](_0x28f410,'-')['concat'](_0xe5c892[_0x3abe37(0x338)],'-')[_0x3abe37(0x295)](_0x4f4b30),_0x30942a,void 0x0,_0x274ba9);}));}function Pi(_0x509d59,_0x5112e6,_0x55231d){const _0x5818b6=_0x24c410;var _0x9160c6=M({},_0x509d59[_0x5818b6(0x375)]);_0x55231d!=null&&_0x55231d['colorChannel1']&&_0x9160c6[_0x5818b6(0x4d3)]===_0x5818b6(0x2e7)&&(_0x9160c6[_0x5818b6(0x4d3)]=_0x55231d[_0x5818b6(0x2e7)]);var _0x1cddcc=_0x5112e6[_0x5818b6(0x54d)];return!_0x1cddcc||_0x1cddcc[_0x5818b6(0x25b)]===0x0||(_0x509d59[_0x5818b6(0x338)]===_0x5818b6(0x357)&&_0x9160c6[_0x5818b6(0x5a9)]&&(_0x9160c6['xlink:href']=_0x9160c6[_0x5818b6(0x5a9)]+_0x5112e6[_0x5818b6(0x57c)]),Object[_0x5818b6(0x538)](_0x9160c6)[_0x5818b6(0x202)](function(_0x5b8179){const _0x5a7182=_0x5818b6;var _0x8bc83e=_0x5b8179[0x0],_0x2c2c04=_0x5b8179[0x1];typeof _0x2c2c04=='string'&&(_0x9160c6[_0x8bc83e]=_0x2c2c04[_0x5a7182(0x2d0)](/url\(#(.*)\)/,_0x5a7182(0x1fe)[_0x5a7182(0x295)](_0x5112e6[_0x5a7182(0x57c)],')')));})),_0x9160c6;}function wi(_0xd69de1,_0x4605b2){const _0x2346de=_0x24c410;var _0x40d892,_0x2124e4=_0x4605b2[_0x2346de(0x54d)];return!_0x2124e4||_0x2124e4[_0x2346de(0x25b)]===0x0?_0xd69de1:_0xd69de1[_0x2346de(0x338)]===_0x2346de(0x38a)&&(!((_0x40d892=_0xd69de1[_0x2346de(0x38d)])===null||_0x40d892===void 0x0)&&_0x40d892[_0x2346de(0x25b)])?M(M({},_0xd69de1),{'children':_0xd69de1[_0x2346de(0x38d)][_0x2346de(0x24d)](function(_0xf9cfe6){const _0x2d581a=_0x2346de;return typeof _0xf9cfe6[_0x2d581a(0x375)]['id']==_0x2d581a(0x55f)&&_0x2124e4&&_0x2124e4['indexOf'](_0xf9cfe6['attrs']['id'])>-0x1?M(M({},_0xf9cfe6),{'attrs':M(M({},_0xf9cfe6[_0x2d581a(0x375)]),{'id':_0xf9cfe6[_0x2d581a(0x375)]['id']+_0x4605b2[_0x2d581a(0x57c)]})}):_0xf9cfe6;})}):_0xd69de1;}function Ni(){const _0x49611b=_0x24c410;return Math[_0x49611b(0x247)]()[_0x49611b(0x578)](0x24)['substring'](0x2,0x8);}Ze[_0x24c410(0x364)]=_0x24c410(0x1e7);var Mi={'tag':'svg','attrs':{'fill':_0x24c410(0x27e),'viewBox':_0x24c410(0x293),'width':_0x24c410(0x56e),'height':_0x24c410(0x56e)},'children':[{'tag':'g','attrs':{'clipPath':_0x24c410(0x334)},'children':[{'tag':_0x24c410(0x5bc),'attrs':{'stroke':_0x24c410(0x597),'d':_0x24c410(0x2df),'strokeLinecap':_0x24c410(0x24b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x24c410(0x38a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x24c410(0x3f6)},'children':[{'tag':_0x24c410(0x5bc),'attrs':{'fill':_0x24c410(0x4d1),'d':_0x24c410(0x589)}}]}]}],'defIds':[_0x24c410(0x3f6)]},Nt=P[_0x24c410(0x425)](function(_0x256bca,_0x3e2296){const _0x1f7188=_0x24c410;return P['createElement'](Ze,Object[_0x1f7188(0x232)]({},_0x256bca,{'id':_0x1f7188(0x467),'ref':_0x3e2296,'icon':Mi}));});Nt[_0x24c410(0x364)]=_0x24c410(0x34e);var Ai={'tag':_0x24c410(0x2c1),'attrs':{'fill':_0x24c410(0x27e),'viewBox':_0x24c410(0x2de),'width':_0x24c410(0x56e),'height':_0x24c410(0x56e)},'children':[{'tag':'g','attrs':{'clipPath':_0x24c410(0x45c)},'children':[{'tag':_0x24c410(0x5bc),'attrs':{'stroke':_0x24c410(0x597),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x24c410(0x24b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x24c410(0x38a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x24c410(0x439)},'children':[{'tag':_0x24c410(0x5bc),'attrs':{'fill':_0x24c410(0x4d1),'d':_0x24c410(0x589),'transform':_0x24c410(0x4ef)}}]}]}],'defIds':[_0x24c410(0x439)]},Mt=P[_0x24c410(0x425)](function(_0x31b160,_0x1fa4f8){const _0x3d7ba0=_0x24c410;return P[_0x3d7ba0(0x1e0)](Ze,Object['assign']({},_0x31b160,{'id':'on-line-single','ref':_0x1fa4f8,'icon':Ai}));});Mt['displayName']=_0x24c410(0x456);function At(_0x5ccc50){const _0x2372f7=_0x24c410;var _0x3fa349,_0x1b14d7,_0x27c30f='';if(typeof _0x5ccc50=='string'||typeof _0x5ccc50==_0x2372f7(0x4a0))_0x27c30f+=_0x5ccc50;else{if(typeof _0x5ccc50=='object'){if(Array['isArray'](_0x5ccc50)){var _0x5e70fd=_0x5ccc50[_0x2372f7(0x25b)];for(_0x3fa349=0x0;_0x3fa349<_0x5e70fd;_0x3fa349++)_0x5ccc50[_0x3fa349]&&(_0x1b14d7=At(_0x5ccc50[_0x3fa349]))&&(_0x27c30f&&(_0x27c30f+='\x20'),_0x27c30f+=_0x1b14d7);}else{for(_0x1b14d7 in _0x5ccc50)_0x5ccc50[_0x1b14d7]&&(_0x27c30f&&(_0x27c30f+='\x20'),_0x27c30f+=_0x1b14d7);}}}return _0x27c30f;}function Li(){const _0x3e2508=_0x24c410;for(var _0x25daf3,_0x2dddaf,_0x38ad1f=0x0,_0x3a7d97='',_0x415111=arguments[_0x3e2508(0x25b)];_0x38ad1f<_0x415111;_0x38ad1f++)(_0x25daf3=arguments[_0x38ad1f])&&(_0x2dddaf=At(_0x25daf3))&&(_0x3a7d97&&(_0x3a7d97+='\x20'),_0x3a7d97+=_0x2dddaf);return _0x3a7d97;}const ji='univer-online-status-icon',$i=_0x24c410(0x5b4),Hi=_0x24c410(0x414),xi=_0x24c410(0x5e0),ki=_0x24c410(0x2ef),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x59111d){const _0x4b1354=_0x24c410;switch(_0x59111d){case U['OFFLINE']:return _0x4b1354(0x209);case U[_0x4b1354(0x26a)]:return _0x4b1354(0x42f);case U['FETCH_MISS']:return _0x4b1354(0x1dc);case U[_0x4b1354(0x2ea)]:return'collabStatus.notCollab';case U[_0x4b1354(0x263)]:case U[_0x4b1354(0x4ce)]:case U[_0x4b1354(0x26e)]:return _0x4b1354(0x344);case U[_0x4b1354(0x4fb)]:return'collabStatus.synced';}}function Lt(_0x358f82){const _0x1fc557=_0x24c410,{status$:_0x29eaed}=_0x358f82,_0x1fa7f8=A['useObservable'](_0x29eaed,U[_0x1fc557(0x2ea)]),_0x16df21=a[_0x1fc557(0x251)](a[_0x1fc557(0x388)]),_0x1c43ab=a[_0x1fc557(0x251)](exports['CollaborationSessionService']),_0xf8a0b=_0x1fa7f8!==U[_0x1fc557(0x3e9)],_0x230b2d=_0x16df21['t'](Bi(_0x1fa7f8)),_0x4bdc0f=Li(he[_0x1fc557(0x1eb)],{[he[_0x1fc557(0x32c)]]:_0xf8a0b,[he['offline']]:!_0xf8a0b}),_0xe56505=_0xf8a0b?P[_0x1fc557(0x1e0)](Mt,null):P['createElement'](Nt,null),_0x49142a=P[_0x1fc557(0x314)](()=>{const _0x2551dd=_0x1fc557;_0xf8a0b||_0x1c43ab[_0x2551dd(0x5b3)]();},[_0xf8a0b,_0x1c43ab]);function _0x45be80(){const _0x45de4d=_0x1fc557;return P[_0x45de4d(0x1e0)](_0x45de4d(0x57e),{'className':_0x4bdc0f,'onClick':_0x49142a},P[_0x45de4d(0x1e0)](_0x45de4d(0x57e),{'className':he[_0x45de4d(0x2ff)]},_0xe56505),P[_0x45de4d(0x1e0)](_0x45de4d(0x57e),{'className':he[_0x45de4d(0x3e6)]},_0x230b2d));}return _0xf8a0b?_0x45be80():P[_0x1fc557(0x1e0)](X[_0x1fc557(0x5b9)],{'title':_0x16df21['t'](_0x1fc557(0x2f3))},_0x45be80());}var Vi=Object[_0x24c410(0x5d0)],Wi=Object['getOwnPropertyDescriptor'],Fi=(_0x531b34,_0xbb8c1a,_0x45bcc6,_0x3db839)=>{for(var _0x563d78=_0x3db839>0x1?void 0x0:_0x3db839?Wi(_0xbb8c1a,_0x45bcc6):_0xbb8c1a,_0x23dd25=_0x531b34['length']-0x1,_0x97a6e6;_0x23dd25>=0x0;_0x23dd25--)(_0x97a6e6=_0x531b34[_0x23dd25])&&(_0x563d78=(_0x3db839?_0x97a6e6(_0xbb8c1a,_0x45bcc6,_0x563d78):_0x97a6e6(_0x563d78))||_0x563d78);return _0x3db839&&_0x563d78&&Vi(_0xbb8c1a,_0x45bcc6,_0x563d78),_0x563d78;},ge=(_0x4577e5,_0x512441)=>(_0x4fcb7d,_0x2ba5e3)=>_0x512441(_0x4fcb7d,_0x2ba5e3,_0x4577e5);exports[_0x24c410(0x4df)]=class extends a[_0x24c410(0x2f0)]{constructor(_0x4c2723,_0x2e9efa,_0x3822ac,_0x3c143f){const _0x168085=_0x24c410;super(),u(this,'_status$',new v['BehaviorSubject'](U[_0x168085(0x2ea)])),(this[_0x168085(0x329)]=_0x4c2723,this[_0x168085(0x220)]=_0x2e9efa,this[_0x168085(0x495)]=_0x3822ac,this[_0x168085(0x46d)]=_0x3c143f,this[_0x168085(0x210)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x4533af=_0x24c410;this[_0x4533af(0x4b2)](this[_0x4533af(0x329)][_0x4533af(0x355)][_0x4533af(0x404)](v['switchMap'](()=>{const _0xd4e302=_0x4533af,_0x2f80fa=this['_univerInstanceService'][_0xd4e302(0x39f)]();return _0x2f80fa?this[_0xd4e302(0x46d)][_0xd4e302(0x35a)](_0x2f80fa[_0xd4e302(0x444)]()):v['of'](null);}),v[_0x4533af(0x20f)](_0x444e39=>_0x444e39?_0x444e39[_0x4533af(0x2bf)]:v['of'](U[_0x4533af(0x2ea)])))[_0x4533af(0x359)](_0x4362aa=>{const _0x2bf419=_0x4533af;this[_0x2bf419(0x268)][_0x2bf419(0x4a9)](_0x4362aa);}));}[_0x24c410(0x210)](){const _0x9d353=_0x24c410;this[_0x9d353(0x4b2)](this[_0x9d353(0x220)][_0x9d353(0x516)](A[_0x9d353(0x341)][_0x9d353(0x506)],()=>a[_0x9d353(0x44a)](Gi({'status$':this[_0x9d353(0x268)][_0x9d353(0x343)]()}),this[_0x9d353(0x495)])));}},exports['DesktopCollaborationStatusDisplayController']=Fi([ge(0x0,a['IUniverInstanceService']),ge(0x1,A[_0x24c410(0x244)]),ge(0x2,a[_0x24c410(0x349)](a['Injector'])),ge(0x3,a[_0x24c410(0x349)](exports[_0x24c410(0x3df)]))],exports['DesktopCollaborationStatusDisplayController']);function Gi(_0x775bb9){const {status$:_0x3699ae}=_0x775bb9;return function(){const _0xd64e7c=_0x3b7c;return P[_0xd64e7c(0x1e0)](Lt,{'status$':_0x3699ae});};}const Qe=a[_0x24c410(0x2ee)]('uni.network.url-service');var Yi=Object[_0x24c410(0x5d0)],Ki=Object[_0x24c410(0x3e3)],Xi=(_0x7877e2,_0x4934fb,_0x310ee4,_0x54be77)=>{const _0x1b9713=_0x24c410;for(var _0x16c2e8=_0x54be77>0x1?void 0x0:_0x54be77?Ki(_0x4934fb,_0x310ee4):_0x4934fb,_0x1525ec=_0x7877e2[_0x1b9713(0x25b)]-0x1,_0x1266f5;_0x1525ec>=0x0;_0x1525ec--)(_0x1266f5=_0x7877e2[_0x1525ec])&&(_0x16c2e8=(_0x54be77?_0x1266f5(_0x4934fb,_0x310ee4,_0x16c2e8):_0x1266f5(_0x16c2e8))||_0x16c2e8);return _0x54be77&&_0x16c2e8&&Yi(_0x4934fb,_0x310ee4,_0x16c2e8),_0x16c2e8;},ee=(_0x26fae6,_0x4d9cca)=>(_0x274fb1,_0x30a377)=>_0x4d9cca(_0x274fb1,_0x30a377,_0x26fae6);exports[_0x24c410(0x4d8)]=class extends a[_0x24c410(0x284)]{constructor(_0x159a78,_0xc5f99d,_0x4889f6,_0x527bc4,_0x5a7840,_0x53e296){const _0x42c645=_0x24c410;super(),this[_0x42c645(0x469)]=_0x159a78,this[_0x42c645(0x518)]=_0xc5f99d,this[_0x42c645(0x2ed)]=_0x4889f6,this[_0x42c645(0x2b3)]=_0x527bc4,this[_0x42c645(0x5d1)]=_0x5a7840,_0x53e296?_0x53e296==null||_0x53e296[_0x42c645(0x3af)]()[_0x42c645(0x33f)](()=>this[_0x42c645(0x393)]()):(this['_logService']['debug']('[DataLoaderController]',_0x42c645(0x1e3)),this['_init']());}async[_0x24c410(0x393)](){const _0x46f57d=_0x24c410,_0x16a8e2=this[_0x46f57d(0x469)][_0x46f57d(0x468)](_0x46f57d(0x4c4)),_0x33bc52=this[_0x46f57d(0x469)][_0x46f57d(0x468)](_0x46f57d(0x28b));if(!_0x16a8e2||!_0x33bc52){this[_0x46f57d(0x518)][_0x46f57d(0x347)](_0x46f57d(0x258),_0x46f57d(0x287));return;}switch(Number(_0x33bc52)){case $['UNIVER_SHEET']:{const _0x2c3c18=await this[_0x46f57d(0x392)](_0x16a8e2);this['_setupSubUnitSync'](_0x2c3c18);break;}case $[_0x46f57d(0x489)]:{await this[_0x46f57d(0x304)](_0x16a8e2);break;}default:{this[_0x46f57d(0x518)]['error'](_0x46f57d(0x258),_0x46f57d(0x35b));break;}}}async[_0x24c410(0x2be)](_0x143526){const _0x2f9703=_0x24c410;await this[_0x2f9703(0x5f1)](_0x143526),_0x143526[_0x2f9703(0x2e0)]['pipe'](v['takeUntil'](this['dispose$']))[_0x2f9703(0x359)](_0x2c7c09=>{_0x2c7c09&&this['_updateURLWithCurrentState'](_0x2c7c09);}),this['_urlService'][_0x2f9703(0x443)][_0x2f9703(0x404)](v['takeUntil'](this[_0x2f9703(0x22f)]))['subscribe'](()=>this[_0x2f9703(0x5f1)](_0x143526));}[_0x24c410(0x2b0)](_0x22cd1a,_0x5d84a4=!0x1){const _0x4a35be=_0x24c410,_0xe820c0=this['_urlService'][_0x4a35be(0x468)](_0x4a35be(0x4e1));_0x22cd1a[_0x4a35be(0x5b7)]()!==_0xe820c0&&this['_urlService']['setParam']('subunit',_0x22cd1a[_0x4a35be(0x5b7)](),_0x5d84a4);}async[_0x24c410(0x5f1)](_0x15dd09){const _0x5c360f=_0x24c410;var _0x766f0;const _0x16e6c2=this[_0x5c360f(0x469)]['getParam'](_0x5c360f(0x4e1));if(!_0x16e6c2||!_0x15dd09['getSheetBySheetId'](_0x16e6c2)){const _0x38cccf=_0x15dd09['getUnhiddenWorksheets']()[0x0],_0x4b7d1f=_0x15dd09[_0x5c360f(0x44d)](_0x38cccf);if(!_0x4b7d1f)return;this[_0x5c360f(0x2b0)](_0x4b7d1f,!0x0),await this['_commandService']['executeCommand'](C[_0x5c360f(0x498)]['id'],{'unitId':_0x15dd09['getUnitId'](),'subUnitId':_0x38cccf});return;}((_0x766f0=_0x15dd09['getActiveSheet']())==null?void 0x0:_0x766f0[_0x5c360f(0x5b7)]())!==_0x16e6c2&&await this['_commandService'][_0x5c360f(0x2d6)](C[_0x5c360f(0x498)]['id'],{'unitId':_0x15dd09[_0x5c360f(0x444)](),'subUnitId':_0x16e6c2});}async[_0x24c410(0x392)](_0x42d001){const _0x258e6d=_0x24c410;let _0x7835e6=0x0;const _0x10dbec=await this[_0x258e6d(0x2b3)]['loadOfflineData'](_0x42d001);return _0x10dbec&&(_0x10dbec[_0x258e6d(0x2c2)]||_0x10dbec[_0x258e6d(0x4a6)][_0x258e6d(0x25b)]!==0x0)&&(_0x7835e6=_0x10dbec[_0x258e6d(0x42d)]),_0x7835e6===0x0&&this[_0x258e6d(0x518)][_0x258e6d(0x347)](_0x258e6d(0x258),_0x258e6d(0x4ea)),this[_0x258e6d(0x5d1)][_0x258e6d(0x2dc)](_0x42d001,_0x7835e6);}async['_loadDoc'](_0x1e70b6){const _0x4e4947=_0x24c410;let _0x9d724f=0x0;const _0x5c99a2=await this[_0x4e4947(0x2b3)][_0x4e4947(0x38c)](_0x1e70b6);return _0x5c99a2&&(_0x5c99a2[_0x4e4947(0x2c2)]||_0x5c99a2[_0x4e4947(0x4a6)][_0x4e4947(0x25b)]!==0x0)&&(_0x9d724f=_0x5c99a2['rev']),_0x9d724f===0x0&&this[_0x4e4947(0x518)]['debug'](_0x4e4947(0x258),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4e4947(0x5d1)]['loadDoc'](_0x1e70b6,_0x9d724f);}},exports[_0x24c410(0x4d8)]=Xi([ee(0x0,Qe),ee(0x1,a[_0x24c410(0x40f)]),ee(0x2,a[_0x24c410(0x494)]),ee(0x3,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),ee(0x4,a[_0x24c410(0x349)](_[_0x24c410(0x2f4)])),ee(0x5,a[_0x24c410(0x5cb)](Kt[_0x24c410(0x3d6)]))],exports['DataLoaderController']);var qi=Object[_0x24c410(0x5d0)],zi=Object[_0x24c410(0x3e3)],Ji=(_0x36672e,_0x459ca8,_0x54e7ec,_0x4a1044)=>{const _0x3bf49f=_0x24c410;for(var _0x5a4464=_0x4a1044>0x1?void 0x0:_0x4a1044?zi(_0x459ca8,_0x54e7ec):_0x459ca8,_0x1c306d=_0x36672e[_0x3bf49f(0x25b)]-0x1,_0x23b44c;_0x1c306d>=0x0;_0x1c306d--)(_0x23b44c=_0x36672e[_0x1c306d])&&(_0x5a4464=(_0x4a1044?_0x23b44c(_0x459ca8,_0x54e7ec,_0x5a4464):_0x23b44c(_0x5a4464))||_0x5a4464);return _0x4a1044&&_0x5a4464&&qi(_0x459ca8,_0x54e7ec,_0x5a4464),_0x5a4464;},_t=(_0x1bd6c3,_0x1f9f36)=>(_0x2f6e9e,_0x4cef14)=>_0x1f9f36(_0x2f6e9e,_0x4cef14,_0x1bd6c3);const Zi='DEFAULT_FILE_NAME',Qi=_0x24c410(0x2d4);let Ce=class extends a[_0x24c410(0x2f0)]{constructor(_0x55f469,_0x2141a7){const _0x57ee99=_0x24c410;super(),this[_0x57ee99(0x329)]=_0x55f469,this['_configService']=_0x2141a7,this[_0x57ee99(0x393)]();}[_0x24c410(0x393)](){const _0x5b3c42=_0x24c410;this[_0x5b3c42(0x4b2)](this[_0x5b3c42(0x329)][_0x5b3c42(0x355)][_0x5b3c42(0x359)](()=>{const _0x371fa7=_0x5b3c42;var _0xade931;const _0x58b952=this[_0x371fa7(0x329)][_0x371fa7(0x39f)]();let _0x31b4b6=(_0xade931=this[_0x371fa7(0x4c8)]['getConfig'](Zi))!=null?_0xade931:Qi;_0x58b952 instanceof a[_0x371fa7(0x313)]&&(_0x31b4b6=_0x58b952['name']),document[_0x371fa7(0x4b5)]=_0x31b4b6;}));}};Ce=Ji([_t(0x0,a[_0x24c410(0x5e9)]),_t(0x1,a['IConfigService'])],Ce);var en=Object[_0x24c410(0x5d0)],tn=Object[_0x24c410(0x3e3)],sn=(_0x3ef98f,_0x146f44,_0x4f4be7,_0x1779bd)=>{const _0x580b91=_0x24c410;for(var _0x16a44d=_0x1779bd>0x1?void 0x0:_0x1779bd?tn(_0x146f44,_0x4f4be7):_0x146f44,_0x1a4bdb=_0x3ef98f[_0x580b91(0x25b)]-0x1,_0x1ff2cb;_0x1a4bdb>=0x0;_0x1a4bdb--)(_0x1ff2cb=_0x3ef98f[_0x1a4bdb])&&(_0x16a44d=(_0x1779bd?_0x1ff2cb(_0x146f44,_0x4f4be7,_0x16a44d):_0x1ff2cb(_0x16a44d))||_0x16a44d);return _0x1779bd&&_0x16a44d&&en(_0x146f44,_0x4f4be7,_0x16a44d),_0x16a44d;},He=(_0x29f2a7,_0x19a1a5)=>(_0x4b0789,_0x188c81)=>_0x19a1a5(_0x4b0789,_0x188c81,_0x29f2a7);let Ee=class{constructor(_0x2056a5,_0x40746a,_0x3f4392){const _0xe4dd94=_0x24c410;this[_0xe4dd94(0x4c8)]=_0x2056a5,this['_httpService']=_0x40746a,this['localeService']=_0x3f4392,this[_0xe4dd94(0x478)]();}['init'](){const _0x47749b=_0x24c410;this[_0x47749b(0x2c6)][_0x47749b(0x22b)]({'priority':0x1,'interceptor':(_0x23c3b9,_0x560fd6)=>_0x560fd6(_0x23c3b9)[_0x47749b(0x404)](v[_0x47749b(0x3ac)](async _0x1848f7=>{const _0x270d87=_0x47749b,_0x5e3ab6=_0x1848f7;if(_0x5e3ab6[_0x270d87(0x479)]===0x191&&window[_0x270d87(0x3ff)](this[_0x270d87(0x36f)]['t'](_0x270d87(0x415)))){const _0xf90245=window[_0x270d87(0x39c)](window[_0x270d87(0x564)][_0x270d87(0x391)]);window[_0x270d87(0x564)]['href']=this[_0x270d87(0x4da)]()+'?url='+_0xf90245;}return _0x5e3ab6;}))});}[_0x24c410(0x4da)](){const _0x200a9c=_0x24c410;var _0x436144,_0xee3ea2;const _0x2b0715=this['_configService'][_0x200a9c(0x5bf)](Et),_0x118177=this[_0x200a9c(0x4c8)]['getConfig'](L);return(_0xee3ea2=(_0x436144=_0x118177==null?void 0x0:_0x118177[_0x200a9c(0x2d1)])!=null?_0x436144:_0x2b0715)!=null?_0xee3ea2:ns;}};Ee=sn([He(0x0,a[_0x24c410(0x1df)]),He(0x1,a[_0x24c410(0x349)](w[_0x24c410(0x238)])),He(0x2,a[_0x24c410(0x349)](a[_0x24c410(0x388)]))],Ee);var nn=Object[_0x24c410(0x5d0)],rn=Object[_0x24c410(0x3e3)],on=(_0x68c620,_0x1d78e8,_0x4776a1,_0x769241)=>{for(var _0xd882be=_0x769241>0x1?void 0x0:_0x769241?rn(_0x1d78e8,_0x4776a1):_0x1d78e8,_0xd09212=_0x68c620['length']-0x1,_0x6435c6;_0xd09212>=0x0;_0xd09212--)(_0x6435c6=_0x68c620[_0xd09212])&&(_0xd882be=(_0x769241?_0x6435c6(_0x1d78e8,_0x4776a1,_0xd882be):_0x6435c6(_0xd882be))||_0xd882be);return _0x769241&&_0xd882be&&nn(_0x1d78e8,_0x4776a1,_0xd882be),_0xd882be;},ut=(_0x55ad60,_0x428b75)=>(_0x187822,_0x2e039f)=>_0x428b75(_0x187822,_0x2e039f,_0x55ad60);const jt=_0x24c410(0x41d),an=_0x24c410(0x398);exports['AuthzIoHttpService']=class extends a[_0x24c410(0x2f0)]{constructor(_0x4ea79b,_0x1b7d80){const _0x4b78a5=_0x24c410;super(),this['_HTTPService']=_0x4ea79b,this[_0x4b78a5(0x4c8)]=_0x1b7d80,this[_0x4b78a5(0x462)]();}[_0x24c410(0x462)](){const _0x146b4d=_0x24c410,_0x86990e=this;this[_0x146b4d(0x4b2)](this[_0x146b4d(0x4ab)][_0x146b4d(0x22b)]({'priority':0x3e7,'interceptor':w[_0x146b4d(0x533)]({'isMatch'(_0x5b8567){const _0x235678=_0x146b4d;var _0x17462c;if(_0x5b8567['method']===_0x235678(0x1f8)&&((_0x17462c=_0x5b8567[_0x235678(0x421)])!=null&&_0x17462c[_0x235678(0x346)])){const {objectID:_0x538bf4,objectType:_0x350fce}=_0x5b8567[_0x235678(0x421)][_0x235678(0x346)]||{};if(!_0x538bf4||_0x350fce===void 0x0)return!0x1;const _0x4d0866=_0x86990e[_0x235678(0x5c3)]()+'/'+_0x350fce+'/object/'+_0x538bf4+_0x235678(0x493);if(_0x5b8567[_0x235678(0x3b8)]===_0x4d0866)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4d662b){const _0x5c5651=_0x146b4d;var _0x5e6a4b;return(_0x5e6a4b=_0x4d662b[_0x5c5651(0x421)])==null?void 0x0:_0x5e6a4b[_0x5c5651(0x346)];},'mergeParamsToRequest'(_0x195377,_0x56d392){const _0xd258a1=_0x146b4d,_0x248841=_0x86990e[_0xd258a1(0x5c3)]()+_0xd258a1(0x3a1),_0x5934b3=_0x195377[_0xd258a1(0x22d)]((_0x4c5a2a,_0x5b3cbf)=>{const _0x4e34fa=_0xd258a1,{unitID:_0x56486a,objectID:_0x2ad4ad,objectType:_0x5d5c04,actions:_0x348252}=_0x5b3cbf;return _0x4c5a2a[_0x56486a]||(_0x4c5a2a[_0x56486a]={}),_0x4c5a2a[_0x56486a][_0x2ad4ad]||(_0x4c5a2a[_0x56486a][_0x2ad4ad]={'objectID':_0x2ad4ad,'objectType':_0x5d5c04,'actions':[]}),_0x4c5a2a[_0x56486a][_0x2ad4ad][_0x4e34fa(0x599)][_0x4e34fa(0x222)](..._0x348252),_0x4c5a2a;},{}),_0x191dac=[];for(const _0x50c4de in _0x5934b3)for(const _0x7219a in _0x5934b3[_0x50c4de]){const {actions:_0x1f0b4b,objectType:_0x43bbf7}=_0x5934b3[_0x50c4de][_0x7219a],_0x499e72=[...new Set(_0x1f0b4b)];_0x191dac[_0xd258a1(0x222)]({'unitID':_0x50c4de,'objectID':_0x7219a,'objectType':_0x43bbf7,'actions':_0x499e72});}return new w[(_0xd258a1(0x243))]('POST',_0x248841,{'headers':_0x56d392['headers'],'withCredentials':_0x56d392[_0xd258a1(0x49c)],'responseType':_0x56d392[_0xd258a1(0x213)],'body':{'requests':_0x191dac}});}},{'distributeResult'(_0x4c6311,_0x45ee5c){const {objectActions:_0x50b843}=_0x4c6311;return _0x45ee5c['map'](_0x3c666f=>{const _0x3683dc=_0x3b7c,{unitID:_0x18533e,objectID:_0x2d3fe4,actions:_0x67b6f1}=_0x3c666f,_0x56c590=_0x50b843[_0x3683dc(0x3f3)](_0x2a38cf=>_0x2a38cf[_0x3683dc(0x4a2)]===_0x18533e&&_0x2a38cf['objectID']===_0x2d3fe4),_0x3c503b=_0x67b6f1[_0x3683dc(0x24d)](_0x212dee=>_0x56c590==null?void 0x0:_0x56c590[_0x3683dc(0x599)][_0x3683dc(0x3f3)](_0xfb9dce=>_0xfb9dce[_0x3683dc(0x3d1)]===_0x212dee))[_0x3683dc(0x5ce)](_0xef9627=>!!_0xef9627);return{'config':_0x3c666f,'result':{'actions':_0x3c503b,'error':_0x4c6311[_0x3683dc(0x553)]}};});}})}));}[_0x24c410(0x5c3)](){const _0x37c5ef=_0x24c410;var _0x144f0c,_0x1d1678;const _0x407c39=this[_0x37c5ef(0x4c8)][_0x37c5ef(0x5bf)](jt),_0x35cc02=this[_0x37c5ef(0x4c8)][_0x37c5ef(0x5bf)](L);return(_0x1d1678=(_0x144f0c=_0x35cc02==null?void 0x0:_0x35cc02[_0x37c5ef(0x396)])!=null?_0x144f0c:_0x407c39)!=null?_0x1d1678:an;}async[_0x24c410(0x25f)](_0x8ef275){const _0x57d7b9=_0x24c410,_0x55c074=this[_0x57d7b9(0x5c3)]()+'/'+_0x8ef275[_0x57d7b9(0x3e4)]+'/object';return(await this[_0x57d7b9(0x4ab)][_0x57d7b9(0x264)](_0x55c074,{'body':_0x8ef275}))['body'][_0x57d7b9(0x2a7)]||'';}async[_0x24c410(0x3ea)](_0x50ff46){const _0x31febf=_0x24c410,_0x18d79a=this[_0x31febf(0x5c3)]()+_0x31febf(0x3bd);return(await this[_0x31febf(0x4ab)][_0x31febf(0x264)](_0x18d79a,{'body':_0x50ff46}))[_0x31febf(0x346)][_0x31febf(0x4bd)];}async['update'](_0x42f8e4){const _0x40a65f=_0x24c410,_0x3223bc=this[_0x40a65f(0x5c3)]()+'/'+_0x42f8e4[_0x40a65f(0x3e4)]+'/object/'+_0x42f8e4['objectID'];await this[_0x40a65f(0x4ab)][_0x40a65f(0x5a1)](_0x3223bc,{'body':_0x42f8e4});}async[_0x24c410(0x1e5)](_0xfa16b1){const _0x468eee=_0x24c410,_0x4da6c8=this[_0x468eee(0x5c3)]()+'/'+_0xfa16b1['objectType']+_0x468eee(0x32e)+_0xfa16b1[_0x468eee(0x2a7)]+_0x468eee(0x493);return(await this[_0x468eee(0x4ab)][_0x468eee(0x264)](_0x4da6c8,{'body':_0xfa16b1}))['body']['actions'];}async[_0x24c410(0x21d)](_0x1f4495){const _0x36278f=_0x24c410,_0xae6af6=this['_getAPIPrefixPath']()+_0x36278f(0x3a1);return(await this[_0x36278f(0x4ab)][_0x36278f(0x264)](_0xae6af6,{'body':{'requests':_0x1f4495}}))[_0x36278f(0x346)][_0x36278f(0x438)];}async[_0x24c410(0x2fd)](_0x180c46){const _0x1786f9=_0x24c410,_0x53dbdf=this[_0x1786f9(0x5c3)]()+'/'+_0x180c46[_0x1786f9(0x3e4)]+_0x1786f9(0x4f3),_0xfdd784=await this[_0x1786f9(0x4ab)][_0x1786f9(0x264)](_0x53dbdf,{'body':_0x180c46});return{'roles':_0xfdd784[_0x1786f9(0x346)][_0x1786f9(0x55a)],'actions':_0xfdd784['body'][_0x1786f9(0x599)]};}async['deleteCollaborator'](_0x7075b){const _0x32896f=_0x24c410,_0x459edb=this['_getAPIPrefixPath']()+_0x32896f(0x5d8);await this[_0x32896f(0x4ab)][_0x32896f(0x5a3)](_0x459edb,{'params':{'collaboratorID':_0x7075b[_0x32896f(0x300)],'objectID':_0x7075b['objectID'],'unitID':_0x7075b[_0x32896f(0x4a2)]}});}async['updateCollaborator'](_0x5cac0f){const _0x142bd5=_0x24c410,_0x1245f5=this['_getAPIPrefixPath']()+_0x142bd5(0x5d8);await this[_0x142bd5(0x4ab)]['patch'](_0x1245f5,{'body':_0x5cac0f});}async[_0x24c410(0x227)](_0x30fcd7){const _0x41a87d=_0x24c410,_0xc2ea0c=this['_getAPIPrefixPath']()+_0x41a87d(0x5d8);await this[_0x41a87d(0x4ab)][_0x41a87d(0x264)](_0xc2ea0c,{'body':_0x30fcd7});}async[_0x24c410(0x24e)](_0x117966){const _0xcaf308=_0x24c410,_0x59a628=this[_0xcaf308(0x5c3)]()+_0xcaf308(0x5d8);return(await this['_HTTPService'][_0xcaf308(0x40c)](_0x59a628,{'params':{'objectID':_0x117966[_0xcaf308(0x2a7)],'unitID':_0x117966[_0xcaf308(0x4a2)]}}))[_0xcaf308(0x346)][_0xcaf308(0x272)];}async[_0x24c410(0x3b0)](_0x5e1fca){const _0x59ad74=_0x24c410,_0x1f5682=this['_getAPIPrefixPath']()+_0x59ad74(0x5d8);await this[_0x59ad74(0x4ab)]['put'](_0x1f5682,{'body':_0x5e1fca});}},exports[_0x24c410(0x37e)]=on([ut(0x0,a[_0x24c410(0x349)](w[_0x24c410(0x238)])),ut(0x1,a[_0x24c410(0x349)](a[_0x24c410(0x1df)]))],exports[_0x24c410(0x37e)]);var cn=Object[_0x24c410(0x5d0)],ln=Object[_0x24c410(0x3e3)],hn=(_0x34155d,_0x4c0a8f,_0x46caa5,_0x6c1e22)=>{const _0x3fe923=_0x24c410;for(var _0x5bb838=_0x6c1e22>0x1?void 0x0:_0x6c1e22?ln(_0x4c0a8f,_0x46caa5):_0x4c0a8f,_0x170adc=_0x34155d[_0x3fe923(0x25b)]-0x1,_0x2eac67;_0x170adc>=0x0;_0x170adc--)(_0x2eac67=_0x34155d[_0x170adc])&&(_0x5bb838=(_0x6c1e22?_0x2eac67(_0x4c0a8f,_0x46caa5,_0x5bb838):_0x2eac67(_0x5bb838))||_0x5bb838);return _0x6c1e22&&_0x5bb838&&cn(_0x4c0a8f,_0x46caa5,_0x5bb838),_0x5bb838;},_n=(_0x223da6,_0x4d82f6)=>(_0x40c0d,_0x4aca61)=>_0x4d82f6(_0x40c0d,_0x4aca61,_0x223da6);let be=class{constructor(_0x5d4139){const _0x2a25cb=_0x24c410;this[_0x2a25cb(0x2c6)]=_0x5d4139,this[_0x2a25cb(0x321)]();}[_0x24c410(0x321)](){const _0x4ed18a=_0x24c410;this['_httpService'][_0x4ed18a(0x22b)]({'interceptor':(_0x29988f,_0x327191)=>{const _0xaf5e07=_0x4ed18a,_0x3e10fc=_0x29988f[_0xaf5e07(0x428)],_0x33b5d0=Xt[_0xaf5e07(0x30c)]();return _0x33b5d0&&_0x3e10fc[_0xaf5e07(0x48d)](_0xaf5e07(0x40e),_0x33b5d0),_0x327191(_0x29988f);}});}};be=hn([_n(0x0,a[_0x24c410(0x349)](w[_0x24c410(0x238)]))],be);var un=Object[_0x24c410(0x5d0)],dn=Object[_0x24c410(0x3e3)],Sn=(_0x403955,_0x3a9d6a,_0x533ecd,_0x14a298)=>{for(var _0x252ddc=_0x14a298>0x1?void 0x0:_0x14a298?dn(_0x3a9d6a,_0x533ecd):_0x3a9d6a,_0x4d459c=_0x403955['length']-0x1,_0x2f205c;_0x4d459c>=0x0;_0x4d459c--)(_0x2f205c=_0x403955[_0x4d459c])&&(_0x252ddc=(_0x14a298?_0x2f205c(_0x3a9d6a,_0x533ecd,_0x252ddc):_0x2f205c(_0x252ddc))||_0x252ddc);return _0x14a298&&_0x252ddc&&un(_0x3a9d6a,_0x533ecd,_0x252ddc),_0x252ddc;},xe=(_0x4d559c,_0x8eca81)=>(_0x72c653,_0x4db941)=>_0x8eca81(_0x72c653,_0x4db941,_0x4d559c);const vn=[_0x24c410(0x406),'image/jpeg',_0x24c410(0x4db),_0x24c410(0x531),'image/bmp'],gn=0x5*0x400*0x400,mn=_0x24c410(0x33a),fn=_0x24c410(0x411),In=_0x24c410(0x4f4),pn=_0x24c410(0x5cc);exports['ImageIoService']=class{constructor(_0x4e09dc,_0xf9717b,_0x5c3fcf){const _0x2e4a61=_0x24c410;u(this,_0x2e4a61(0x33d),0x0),u(this,_0x2e4a61(0x5e6),new v[(_0x2e4a61(0x29b))]()),u(this,_0x2e4a61(0x596),this[_0x2e4a61(0x5e6)]),u(this,_0x2e4a61(0x2b5),new Map()),(this[_0x2e4a61(0x2c6)]=_0x4e09dc,this[_0x2e4a61(0x4c8)]=_0xf9717b,this[_0x2e4a61(0x329)]=_0x5c3fcf);}[_0x24c410(0x24c)](_0x2cad81){const _0x288677=_0x24c410;this[_0x288677(0x33d)]=_0x2cad81,this['_change$'][_0x288677(0x4a9)](_0x2cad81);}['getImageSourceCache'](_0x1d5329,_0x8ed187){const _0x5bede5=_0x24c410;if(_0x8ed187===j['ImageSourceType'][_0x5bede5(0x504)]){const _0x5aa588=new Image();return _0x5aa588['src']=_0x1d5329,_0x5aa588;}return this[_0x5bede5(0x2b5)]['get'](_0x1d5329);}[_0x24c410(0x472)](_0x41b298,_0x542c09,_0x366acf){const _0x14361a=_0x24c410;_0x542c09===j[_0x14361a(0x1f6)][_0x14361a(0x504)]||_0x366acf==null||this[_0x14361a(0x2b5)][_0x14361a(0x48d)](_0x41b298,_0x366acf);}async[_0x24c410(0x54e)](_0x4bb27b){const _0x372df5=_0x24c410;try{const _0x1ed39c=this[_0x372df5(0x22a)](this[_0x372df5(0x2c7)](),''+_0x4bb27b),_0x4f6e8e=(await this['_httpService'][_0x372df5(0x40c)](_0x1ed39c))['body'];if(_0x4f6e8e[_0x372df5(0x553)]&&_0x4f6e8e[_0x372df5(0x553)][_0x372df5(0x5e4)]===bt['OK']){const _0x3765ec=new URL(_0x4f6e8e[_0x372df5(0x3b8)],this[_0x372df5(0x45e)]())['toString']();return Promise[_0x372df5(0x49d)](_0x3765ec);}return Promise[_0x372df5(0x53b)](_0x4f6e8e[_0x372df5(0x553)]);}catch(_0x4cb98a){return Promise['reject'](_0x4cb98a);}}async['saveImage'](_0x3abcc9){const _0x52c796=_0x24c410;let _0x201c6e='';if(!vn[_0x52c796(0x1cf)](_0x3abcc9[_0x52c796(0x28b)]))return this[_0x52c796(0x3a5)](),Promise['reject'](new Error(j[_0x52c796(0x509)]['ERROR_IMAGE_TYPE']));if(_0x3abcc9[_0x52c796(0x3b5)]>gn)return this[_0x52c796(0x3a5)](),Promise[_0x52c796(0x53b)](new Error(j['ImageUploadStatusType'][_0x52c796(0x59b)]));try{const _0x5cff8f=new FormData();_0x5cff8f[_0x52c796(0x426)](_0x52c796(0x279),_0x3abcc9);const _0x466d99=this[_0x52c796(0x329)][_0x52c796(0x39f)](),_0xa1e97f=_0x466d99==null?void 0x0:_0x466d99['getUnitId']();if(!_0xa1e97f)throw new Error(_0x52c796(0x560));const _0x2431d7=this[_0x52c796(0x5a8)]()+_0x52c796(0x369)+_0x3abcc9[_0x52c796(0x3b5)][_0x52c796(0x578)]()+_0x52c796(0x221)+Tt[_0x52c796(0x335)]+'&assign='+encodeURIComponent(_0xa1e97f),_0x420ac6=await(await fetch(_0x2431d7,{'method':_0x52c796(0x1f8),'body':_0x5cff8f}))[_0x52c796(0x501)]();if(typeof _0x420ac6[_0x52c796(0x5a7)]!=_0x52c796(0x55f))return this[_0x52c796(0x3a5)](),Promise[_0x52c796(0x53b)](new Error(j[_0x52c796(0x509)][_0x52c796(0x41a)]));_0x201c6e=_0x420ac6[_0x52c796(0x5a7)];}catch{return this['_decreaseWaiting'](),Promise[_0x52c796(0x53b)](new Error(j['ImageUploadStatusType'][_0x52c796(0x41a)]));}return new Promise((_0x182a56,_0x2a6f02)=>{const _0x4ffa2d=_0x52c796,_0x4114b3=new FileReader();_0x4114b3['readAsDataURL'](_0x3abcc9),_0x4114b3[_0x4ffa2d(0x2bb)]=_0x44d9c9=>{const _0x5453ca=_0x4ffa2d;var _0x90452e;const _0x130a0c=(_0x90452e=_0x44d9c9[_0x5453ca(0x482)])==null?void 0x0:_0x90452e['result'];if(_0x130a0c==null){this[_0x5453ca(0x3a5)](),_0x2a6f02(new Error(j[_0x5453ca(0x509)][_0x5453ca(0x41a)]));return;}const _0x6ddbe7=a[_0x5453ca(0x45b)][_0x5453ca(0x497)](0x6);_0x182a56({'imageId':_0x6ddbe7,'imageSourceType':j[_0x5453ca(0x1f6)][_0x5453ca(0x505)],'source':_0x201c6e,'base64Cache':_0x130a0c,'status':j['ImageUploadStatusType'][_0x5453ca(0x485)]}),this[_0x5453ca(0x3a5)]();};});}[_0x24c410(0x5a8)](){const _0x1f2fde=_0x24c410;var _0x21f3c4,_0x550d7f;const _0x37feb3=this[_0x1f2fde(0x4c8)][_0x1f2fde(0x5bf)](mn),_0x327bc6=this[_0x1f2fde(0x4c8)][_0x1f2fde(0x5bf)](L);return(_0x550d7f=(_0x21f3c4=_0x327bc6==null?void 0x0:_0x327bc6[_0x1f2fde(0x598)])!=null?_0x21f3c4:_0x37feb3)!=null?_0x550d7f:fn;}[_0x24c410(0x2c7)](){const _0xcaf02a=_0x24c410;var _0x45d7de,_0xeace8e;const _0x287a8f=this[_0xcaf02a(0x4c8)]['getConfig'](In),_0x38c59f=this[_0xcaf02a(0x4c8)][_0xcaf02a(0x5bf)](L);return(_0xeace8e=(_0x45d7de=_0x38c59f==null?void 0x0:_0x38c59f[_0xcaf02a(0x4c6)])!=null?_0x45d7de:_0x287a8f)!=null?_0xeace8e:pn;}[_0x24c410(0x45e)](){const _0x1eed1c=_0x24c410;var _0x1a3259;const _0xabeb09=this[_0x1eed1c(0x4c8)]['getConfig'](L);return(_0x1a3259=_0xabeb09==null?void 0x0:_0xabeb09[_0x1eed1c(0x383)])!=null?_0x1a3259:location[_0x1eed1c(0x554)];}['_replaceFileID'](_0x9ed12b,_0x41c745){const _0x186f55=_0x24c410;return _0x9ed12b[_0x186f55(0x2d0)](_0x186f55(0x551),_0x41c745);}[_0x24c410(0x3a5)](){const _0x4cae8c=_0x24c410;this['_waitCount']-=0x1,this['_change$'][_0x4cae8c(0x4a9)](this['_waitCount']);}},exports[_0x24c410(0x555)]=Sn([xe(0x0,a[_0x24c410(0x349)](w[_0x24c410(0x238)])),xe(0x1,a[_0x24c410(0x1df)]),xe(0x2,a['Inject'](a['IUniverInstanceService']))],exports['ImageIoService']);var Cn=Object['defineProperty'],En=Object['getOwnPropertyDescriptor'],bn=(_0x4dd19a,_0xc867e8,_0xd0eca9,_0x4e78d4)=>{const _0xe1778c=_0x24c410;for(var _0xfa89ba=_0x4e78d4>0x1?void 0x0:_0x4e78d4?En(_0xc867e8,_0xd0eca9):_0xc867e8,_0x253881=_0x4dd19a[_0xe1778c(0x25b)]-0x1,_0x1f63ad;_0x253881>=0x0;_0x253881--)(_0x1f63ad=_0x4dd19a[_0x253881])&&(_0xfa89ba=(_0x4e78d4?_0x1f63ad(_0xc867e8,_0xd0eca9,_0xfa89ba):_0x1f63ad(_0xfa89ba))||_0xfa89ba);return _0x4e78d4&&_0xfa89ba&&Cn(_0xc867e8,_0xd0eca9,_0xfa89ba),_0xfa89ba;},_e=(_0x132e20,_0x2e5d8c)=>(_0x501781,_0x5d2f0b)=>_0x2e5d8c(_0x501781,_0x5d2f0b,_0x132e20);let Te=class extends a[_0x24c410(0x284)]{constructor(_0x2ca1f6,_0x321404,_0x3518f6,_0x45fdbc,_0x9885dd){const _0x2b1fcc=_0x24c410;super(),this[_0x2b1fcc(0x495)]=_0x2ca1f6,this['_univerInstanceService']=_0x321404,this[_0x2b1fcc(0x223)]=_0x3518f6,this[_0x2b1fcc(0x474)]=_0x45fdbc,this[_0x2b1fcc(0x319)]=_0x9885dd,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x24c410(0x491)](){const _0x6d1736=_0x24c410,_0x5b5c1f=async _0x53e1c7=>{const _0x5d8914=_0x3b7c;(await this['_collaborationSessionService']['requireSession'](_0x53e1c7))['event$'][_0x5d8914(0x404)](E['filter'](_0x54b476=>_0x54b476[_0x5d8914(0x3b1)]===_[_0x5d8914(0x4f8)][_0x5d8914(0x3db)]),E[_0x5d8914(0x2b1)](this[_0x5d8914(0x22f)]))['subscribe'](_0x36c8a4=>{const _0x3600e1=_0x5d8914,_0x2abc45=_0x36c8a4,{reason:_0x3a6ad7}=_0x2abc45[_0x3600e1(0x486)];this[_0x3600e1(0x495)][_0x3600e1(0x40c)](A[_0x3600e1(0x4b3)])[_0x3600e1(0x3bc)]({'type':X['MessageType'][_0x3600e1(0x214)],'content':this[_0x3600e1(0x319)]['t']('collaboration.closeRoom')+'('+_0x3a6ad7+')'}),this[_0x3600e1(0x223)]['updatePermissionPoint'](new C[(_0x3600e1(0x41f))](_0x53e1c7)['id'],!0x1),this[_0x3600e1(0x474)][_0x3600e1(0x28d)](_0x53e1c7);});};v['merge'](this[_0x6d1736(0x329)][_0x6d1736(0x1d6)](a[_0x6d1736(0x461)][_0x6d1736(0x236)]),this[_0x6d1736(0x329)]['getTypeOfUnitAdded$'](a[_0x6d1736(0x461)][_0x6d1736(0x489)]))[_0x6d1736(0x404)](E[_0x6d1736(0x24d)](_0x223797=>_0x223797[_0x6d1736(0x444)]()),E[_0x6d1736(0x5ce)](_0x1f56f3=>!a[_0x6d1736(0x350)](_0x1f56f3)),E['takeUntil'](this[_0x6d1736(0x22f)]))[_0x6d1736(0x359)](_0x239a61=>{_0x5b5c1f(_0x239a61);});}[_0x24c410(0x2f1)](){const _0x5f13b1=_0x24c410,_0x2adfd7=async _0x458598=>{const _0x52da08=_0x3b7c;(await this[_0x52da08(0x474)]['requireSession'](_0x458598))[_0x52da08(0x5ba)][_0x52da08(0x404)](E[_0x52da08(0x5ce)](_0x217c45=>_0x217c45[_0x52da08(0x3b1)]===_[_0x52da08(0x4f8)]['UPDATE_PERMISSION_OBJ']),E['takeUntil'](this['dispose$']))[_0x52da08(0x359)](_0xa5c99f=>{const _0x430fb3=_0x52da08,_0xa93a7=_0xa5c99f,{objectId:_0x201c67}=_0xa93a7[_0x430fb3(0x486)],_0x1c8fdf=this['_injector']['get'](te[_0x430fb3(0x3f8)]);_0x201c67===_0x458598?_0x1c8fdf[_0x430fb3(0x1e6)](_0x458598):_0x1c8fdf[_0x430fb3(0x276)](_0x458598,_0x201c67);});};v[_0x5f13b1(0x3e7)](this['_univerInstanceService'][_0x5f13b1(0x1d6)](a[_0x5f13b1(0x461)][_0x5f13b1(0x236)]),this[_0x5f13b1(0x329)]['getTypeOfUnitAdded$'](a[_0x5f13b1(0x461)]['UNIVER_DOC']))[_0x5f13b1(0x404)](E[_0x5f13b1(0x24d)](_0x45b2f3=>_0x45b2f3[_0x5f13b1(0x444)]()),E[_0x5f13b1(0x5ce)](_0x3a0bc4=>!a[_0x5f13b1(0x350)](_0x3a0bc4)),E['takeUntil'](this[_0x5f13b1(0x22f)]))[_0x5f13b1(0x359)](_0x1d378f=>{_0x2adfd7(_0x1d378f);});}};Te=bn([_e(0x0,a[_0x24c410(0x349)](a['Injector'])),_e(0x1,a['IUniverInstanceService']),_e(0x2,a[_0x24c410(0x27f)]),_e(0x3,a[_0x24c410(0x349)](exports[_0x24c410(0x2a1)])),_e(0x4,a[_0x24c410(0x349)](a[_0x24c410(0x388)]))],Te);var Tn=Object[_0x24c410(0x5d0)],Rn=Object[_0x24c410(0x3e3)],On=(_0x286f35,_0x37e16d,_0x9554ff,_0x521520)=>{for(var _0x2489cb=_0x521520>0x1?void 0x0:_0x521520?Rn(_0x37e16d,_0x9554ff):_0x37e16d,_0x116fd5=_0x286f35['length']-0x1,_0x218f87;_0x116fd5>=0x0;_0x116fd5--)(_0x218f87=_0x286f35[_0x116fd5])&&(_0x2489cb=(_0x521520?_0x218f87(_0x37e16d,_0x9554ff,_0x2489cb):_0x218f87(_0x2489cb))||_0x2489cb);return _0x521520&&_0x2489cb&&Tn(_0x37e16d,_0x9554ff,_0x2489cb),_0x2489cb;},dt=(_0x5d1715,_0x25535f)=>(_0x1cfc21,_0x799079)=>_0x25535f(_0x1cfc21,_0x799079,_0x5d1715);exports['SnapshotServerOverHTTPService']=class{constructor(_0xf9f376,_0x2d3706){const _0x2503e5=_0x24c410;this[_0x2503e5(0x4c8)]=_0xf9f376,this[_0x2503e5(0x2c6)]=_0x2d3706;}async[_0x24c410(0x5a0)](_0x3dc458,_0x201142){const _0x5c078b=_0x24c410;var _0x1bb55f;const {unitID:_0x144f55,type:_0x42ee57,revision:_0x4f86a5=0x0}=_0x201142,_0x2a31c7=this[_0x5c078b(0x511)]()+'/'+_0x42ee57+_0x5c078b(0x271)+_0x144f55+_0x5c078b(0x3c8)+_0x4f86a5,_0x295587=(await this[_0x5c078b(0x2c6)][_0x5c078b(0x40c)](_0x2a31c7))[_0x5c078b(0x346)],_0x210204=(_0x1bb55f=_0x295587[_0x5c078b(0x5f4)])==null?void 0x0:_0x1bb55f[_0x5c078b(0x570)];if(_0x210204){const _0x112ee4=_0x210204==null?void 0x0:_0x210204[_0x5c078b(0x51e)],_0x38648e=_[_0x5c078b(0x466)][_0x5c078b(0x20a)](_[_0x5c078b(0x2d9)](_0x112ee4));_0x210204[_0x5c078b(0x51e)]=_0x38648e,Object[_0x5c078b(0x538)](_0x210204[_0x5c078b(0x30f)])[_0x5c078b(0x202)](([,_0x3fe8c5])=>{const _0x52663c=_0x5c078b,_0x34cfb4=_0x3fe8c5[_0x52663c(0x51e)],_0xf12a3f=_['textEncoder'][_0x52663c(0x20a)](_['b64DecodeUnicode'](_0x34cfb4));_0x3fe8c5[_0x52663c(0x51e)]=_0xf12a3f;});}return _0x295587;}async[_0x24c410(0x26c)](_0xfbb748,_0x4f6d01){const _0x165830=_0x24c410,{unitID:_0x57488d,type:_0x1ae05e,blockID:_0x46eac8}=_0x4f6d01,_0x40a73f=this[_0x165830(0x309)]()+'/'+_0x1ae05e+'/unit/'+_0x57488d+_0x165830(0x203)+_0x46eac8;return(await this[_0x165830(0x2c6)][_0x165830(0x40c)](_0x40a73f))[_0x165830(0x346)];}async[_0x24c410(0x47b)](_0x4ccf6c,_0x50c7a2){const _0x29a19e=_0x24c410,{unitID:_0x1c07c6,type:_0x87c6f4,blockID:_0x325e87}=_0x50c7a2,_0x1ef748=this['_getAPIPrefix']()+_0x29a19e(0x203)+_0x87c6f4+_0x29a19e(0x271)+_0x1c07c6+_0x29a19e(0x203)+_0x325e87;return(await this[_0x29a19e(0x2c6)][_0x29a19e(0x40c)](_0x1ef748))['body'];}async[_0x24c410(0x4ff)](_0x37e193,_0x539375){const _0x1493b1=_0x24c410,{unitID:_0x8ceb5c,type:_0x22100d,from:_0x36b88e,to:_0x3c671f}=_0x539375,_0x5e10d9=this[_0x1493b1(0x309)]()+'/'+_0x22100d+_0x1493b1(0x271)+_0x8ceb5c+'/fetchmissing?from='+_0x36b88e+_0x1493b1(0x33c)+_0x3c671f;return(await this[_0x1493b1(0x2c6)][_0x1493b1(0x40c)](_0x5e10d9))[_0x1493b1(0x346)];}['_getSnapshotAPIPrefix'](){const _0x146e49=_0x24c410;var _0xe0691d;return(_0xe0691d=this[_0x146e49(0x4c8)][_0x146e49(0x5bf)](vt))!=null?_0xe0691d:this[_0x146e49(0x309)]();}[_0x24c410(0x309)](){const _0x5b93ee=_0x24c410;var _0x4186c4,_0x4f4a6d;const _0x2be5fe=this[_0x5b93ee(0x4c8)]['getConfig'](St),_0x303c74=this['_configService'][_0x5b93ee(0x5bf)](L);return(_0x4f4a6d=(_0x4186c4=_0x303c74==null?void 0x0:_0x303c74[_0x5b93ee(0x595)])!=null?_0x4186c4:_0x2be5fe)!=null?_0x4f4a6d:qt;}async[_0x24c410(0x2d8)](_0x4cc1f2,_0x546de4){const _0x3b4ad4=_0x24c410,_0x5944a6=_0x3b4ad4(0x1da)+_0x546de4['type']+_0x3b4ad4(0x271)+_0x546de4[_0x3b4ad4(0x4a2)]+_0x3b4ad4(0x339);return(await this[_0x3b4ad4(0x2c6)][_0x3b4ad4(0x40c)](_0x5944a6,{'params':{'resourceId':JSON[_0x3b4ad4(0x34b)](_0x546de4[_0x3b4ad4(0x2ca)])}}))[_0x3b4ad4(0x346)];}[_0x24c410(0x2d7)](){const _0x56e87b=_0x24c410;throw new Error(_0x56e87b(0x52f));}[_0x24c410(0x35f)](){const _0x5b729b=_0x24c410;throw new Error(_0x5b729b(0x52f));}[_0x24c410(0x4e5)](){const _0x213a0a=_0x24c410;throw new Error(_0x213a0a(0x52f));}[_0x24c410(0x389)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x24c410(0x3f1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x24c410(0x3eb)]=On([dt(0x0,a[_0x24c410(0x1df)]),dt(0x1,a[_0x24c410(0x349)](w['HTTPService']))],exports[_0x24c410(0x3eb)]);var Dn=Object[_0x24c410(0x5d0)],yn=Object[_0x24c410(0x3e3)],Un=(_0x214b8d,_0x4e69bf,_0x5ca3f2,_0x26429a)=>{const _0x4c6988=_0x24c410;for(var _0x35b6af=_0x26429a>0x1?void 0x0:_0x26429a?yn(_0x4e69bf,_0x5ca3f2):_0x4e69bf,_0x2b077e=_0x214b8d[_0x4c6988(0x25b)]-0x1,_0x2e5498;_0x2b077e>=0x0;_0x2b077e--)(_0x2e5498=_0x214b8d[_0x2b077e])&&(_0x35b6af=(_0x26429a?_0x2e5498(_0x4e69bf,_0x5ca3f2,_0x35b6af):_0x2e5498(_0x35b6af))||_0x35b6af);return _0x26429a&&_0x35b6af&&Dn(_0x4e69bf,_0x5ca3f2,_0x35b6af),_0x35b6af;},ue=(_0x4a0118,_0x2935b2)=>(_0x23adcf,_0x3de92d)=>_0x2935b2(_0x23adcf,_0x3de92d,_0x4a0118);let Fe=class extends a['LocalUndoRedoService']{constructor(_0x331d46,_0x531e4c,_0x28870c,_0x31fac7,_0xc51def){const _0x349bd7=_0x24c410;super(_0x331d46,_0x531e4c,_0x28870c),this[_0x349bd7(0x317)]=_0x31fac7,this[_0x349bd7(0x518)]=_0xc51def;}[_0x24c410(0x330)](_0x5d0f56,_0x4c208c){const _0x5b4771=_0x24c410,_0x59d477=this['_getUndoStack'](_0x5d0f56);if(_0x59d477)try{const _0x2936cb=this['_transformStack'](_0x59d477,_0x4c208c);this['_substituteUndoStack'](_0x5d0f56,_0x2936cb);}catch(_0x42175e){this[_0x5b4771(0x518)]['error'](_0x5b4771(0x546),_0x42175e),this[_0x5b4771(0x56d)](_0x5d0f56);}const _0x59c5f9=this['_getRedoStack'](_0x5d0f56);if(_0x59c5f9)try{const _0x373aa9=this[_0x5b4771(0x3be)](_0x59c5f9,_0x4c208c);this['_substituteRedoStack'](_0x5d0f56,_0x373aa9);}catch(_0x11c8df){this['_logService'][_0x5b4771(0x553)](_0x11c8df),this[_0x5b4771(0x307)](_0x5d0f56);}}[_0x24c410(0x56d)](_0x5c55a8){const _0x368b1f=_0x24c410,_0x4a2329=this[_0x368b1f(0x3de)](_0x5c55a8);_0x4a2329&&(_0x4a2329[_0x368b1f(0x25b)]=0x0,this[_0x368b1f(0x47c)]());}[_0x24c410(0x307)](_0x12bdd0){const _0x524b83=_0x24c410,_0xd34cf4=this[_0x524b83(0x305)](_0x12bdd0);_0xd34cf4&&(_0xd34cf4['length']=0x0,this[_0x524b83(0x47c)]());}[_0x24c410(0x2e5)](_0x490c1b,_0x2465c6){const _0x6189cc=_0x24c410;this[_0x6189cc(0x254)][_0x6189cc(0x48d)](_0x490c1b,_0x2465c6),this[_0x6189cc(0x47c)]();}['_substituteRedoStack'](_0x13cce8,_0x132931){const _0x5d465e=_0x24c410;this[_0x5d465e(0x269)][_0x5d465e(0x48d)](_0x13cce8,_0x132931),this[_0x5d465e(0x47c)]();}[_0x24c410(0x3be)](_0x21f9b1,_0x3938ba){const _0x50e022=_0x24c410,_0x3bdb9c=[];let _0x2109e8=_0x3938ba,_0x47b594=_0x3938ba;for(let _0x3d5e45=_0x21f9b1['length']-0x1;_0x3d5e45>=0x0;_0x3d5e45--){const {unitID:_0x26dee6,undoMutations:_0x50f5f9,redoMutations:_0x250edd}=_0x21f9b1[_0x3d5e45],_0x44255e=this[_0x50e022(0x317)][_0x50e022(0x26f)](_0x2109e8,_0x50f5f9),_0x6c3a78=this['_transformService'][_0x50e022(0x26f)](_0x47b594,_0x250edd);if(_[_0x50e022(0x57f)](_0x44255e)||_[_0x50e022(0x57f)](_0x6c3a78)){this[_0x50e022(0x518)][_0x50e022(0x553)](_0x50e022(0x546),'transformStack\x20failed!',_0x44255e,_0x6c3a78);break;}_0x2109e8=_0x44255e[_0x50e022(0x2f8)],_0x47b594=_0x6c3a78[_0x50e022(0x2f8)],_0x3bdb9c['push']({'unitID':_0x26dee6,'undoMutations':_0x44255e[_0x50e022(0x2cd)],'redoMutations':_0x6c3a78[_0x50e022(0x2cd)]});}return _0x3bdb9c['reverse']();}};Fe=Un([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['ICommandService']),ue(0x2,a[_0x24c410(0x508)]),ue(0x3,_[_0x24c410(0x2ec)]),ue(0x4,a['ILogService'])],Fe);class $t extends a[_0x24c410(0x284)]{constructor(){const _0x129795=_0x24c410;super(),u(this,_0x129795(0x443)),this['urlChange$']=v[_0x129795(0x54f)](window,_0x129795(0x52a))[_0x129795(0x404)](v[_0x129795(0x2b1)](this['dispose$']),v[_0x129795(0x47a)](0x1),v[_0x129795(0x2d2)](void 0x0));}['setParam'](_0x34d9c4,_0x3f9f17,_0x8f0d54=!0x1){const _0x16f8cc=_0x24c410,_0x37f13d=new URL(window[_0x16f8cc(0x564)][_0x16f8cc(0x391)]);_0x37f13d[_0x16f8cc(0x562)][_0x16f8cc(0x48d)](_0x34d9c4,_0x3f9f17),_0x8f0d54?window[_0x16f8cc(0x565)][_0x16f8cc(0x43d)]('','',_0x37f13d[_0x16f8cc(0x578)]()):window[_0x16f8cc(0x565)][_0x16f8cc(0x408)]('','',_0x37f13d[_0x16f8cc(0x578)]());}[_0x24c410(0x23a)](_0x48e2e4,_0x22bf49=!0x1){const _0x3570ff=_0x24c410,_0x3b79e2=new URL(window[_0x3570ff(0x564)]['href']);_0x3b79e2[_0x3570ff(0x562)][_0x3570ff(0x5a3)](_0x48e2e4),_0x22bf49?window['history'][_0x3570ff(0x43d)]('','',_0x3b79e2['toString']()):window[_0x3570ff(0x565)][_0x3570ff(0x408)]('','',_0x3b79e2[_0x3570ff(0x578)]());}['getParam'](_0x4949ca){const _0x4431cd=_0x24c410;var _0x3d7b07;return(_0x3d7b07=new URL(window[_0x4431cd(0x564)]['href'])[_0x4431cd(0x562)][_0x4431cd(0x40c)](_0x4949ca))!=null?_0x3d7b07:void 0x0;}}var Ht=Object['defineProperty'],Pn=Object[_0x24c410(0x3e3)],wn=(_0xcc237e,_0x2f576b,_0x59743b)=>_0x2f576b in _0xcc237e?Ht(_0xcc237e,_0x2f576b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59743b}):_0xcc237e[_0x2f576b]=_0x59743b,Nn=(_0x4592f7,_0x569a35,_0x312b09,_0x10f7a4)=>{for(var _0x2c186b=_0x10f7a4>0x1?void 0x0:_0x10f7a4?Pn(_0x569a35,_0x312b09):_0x569a35,_0x302a7b=_0x4592f7['length']-0x1,_0x47a08b;_0x302a7b>=0x0;_0x302a7b--)(_0x47a08b=_0x4592f7[_0x302a7b])&&(_0x2c186b=(_0x10f7a4?_0x47a08b(_0x569a35,_0x312b09,_0x2c186b):_0x47a08b(_0x2c186b))||_0x2c186b);return _0x10f7a4&&_0x2c186b&&Ht(_0x569a35,_0x312b09,_0x2c186b),_0x2c186b;},me=(_0x5a8325,_0x303e2a)=>(_0x4457bd,_0x5ecc7d)=>_0x303e2a(_0x4457bd,_0x5ecc7d,_0x5a8325),Mn=(_0x594b0e,_0xfb8e92,_0x128a87)=>wn(_0x594b0e,_0xfb8e92+'',_0x128a87);const An='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x24c410(0x1d1)]=class extends a[_0x24c410(0x464)]{constructor(_0x55e890=rs,_0x214595,_0x3fb390,_0x4e3a3d,_0x4e2b87){const _0x5867cb=_0x24c410;super(),this[_0x5867cb(0x4d0)]=_0x55e890,this[_0x5867cb(0x518)]=_0x214595,this[_0x5867cb(0x322)]=_0x3fb390,this[_0x5867cb(0x495)]=_0x4e3a3d,this[_0x5867cb(0x4c8)]=_0x4e2b87;const {..._0x22f7cd}=this[_0x5867cb(0x4d0)];this[_0x5867cb(0x4c8)][_0x5867cb(0x1f4)](L,_0x22f7cd);}['onStarting'](){const _0x1556db=_0x24c410;this[_0x1556db(0x591)](),a['touchDependencies'](this[_0x1556db(0x495)],[[ne],[exports[_0x1556db(0x4d8)]],[Te]]);}['onReady'](){const _0x8d8f5c=_0x24c410;a['touchDependencies'](this[_0x8d8f5c(0x495)],[[Ce]]);}['onRendered'](){this['_registerRenderDependencies']();}[_0x24c410(0x591)](){const _0x49a20a=_0x24c410;var _0x38e513,_0x46624d,_0x4a9b84,_0x2fc618;this[_0x49a20a(0x495)][_0x49a20a(0x3d7)](a[_0x49a20a(0x286)])&&this[_0x49a20a(0x518)][_0x49a20a(0x553)](_0x49a20a(0x465),_0x49a20a(0x20d));let _0x41eeeb=[[a['IUndoRedoService'],{'useClass':Fe}],[exports['CollaborationSessionService']],[Je],[w[_0x49a20a(0x238)]],[Qe,{'useClass':$t}],[q],[exports[_0x49a20a(0x205)]],[w[_0x49a20a(0x1fc)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x46624d=(_0x38e513=this['_config'])==null?void 0x0:_0x38e513[_0x49a20a(0x4f9)])!=null?_0x46624d:exports[_0x49a20a(0x487)]}],[w['IHTTPImplementation'],{'useClass':w[_0x49a20a(0x2db)]}],[_[_0x49a20a(0x4f2)],{'useClass':exports[_0x49a20a(0x3eb)]}],[a[_0x49a20a(0x310)],{'useClass':exports[_0x49a20a(0x37e)]}],[j['IImageIoService'],{'useClass':exports['ImageIoService']}],[exports[_0x49a20a(0x3df)]],[exports[_0x49a20a(0x4d8)]],[exports['DesktopCollaborationStatusDisplayController']],[Ce],[ne]];(_0x4a9b84=this['_config'])!=null&&_0x4a9b84['enableSingleActiveInstanceLock']&&_0x41eeeb[_0x49a20a(0x222)]([Re,{'useClass':$s}]),_0x41eeeb=a[_0x49a20a(0x436)](_0x41eeeb,(_0x2fc618=this['_config'])==null?void 0x0:_0x2fc618[_0x49a20a(0x3e0)]),_0x41eeeb[_0x49a20a(0x202)](_0x108409=>this['_injector'][_0x49a20a(0x3d0)](_0x108409)),this[_0x49a20a(0x351)]();}[_0x24c410(0x34d)](){const _0x5a4c06=_0x24c410;this[_0x5a4c06(0x4b2)](this['_renderManagerService']['registerRenderModule'](a[_0x5a4c06(0x461)][_0x5a4c06(0x489)],[Ve])),this[_0x5a4c06(0x4b2)](this[_0x5a4c06(0x322)][_0x5a4c06(0x239)](a[_0x5a4c06(0x461)][_0x5a4c06(0x236)],[We]));}[_0x24c410(0x351)](){const _0x3de43d=_0x24c410;var _0x1ef053,_0x540b5a;this[_0x3de43d(0x495)]['get'](w['HTTPService'])[_0x3de43d(0x22b)]({'priority':0x14,'interceptor':w['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x3de43d(0x495)][_0x3de43d(0x40c)](be),(_0x1ef053=this[_0x3de43d(0x4d0)])!=null&&_0x1ef053['enableOfflineEditing']||this['_injector']['get'](exports['LocalCacheService'])[_0x3de43d(0x5c1)](),(_0x540b5a=this[_0x3de43d(0x4d0)])!=null&&_0x540b5a[_0x3de43d(0x5b2)]&&this['_injector'][_0x3de43d(0x40c)](Ee),this[_0x3de43d(0x495)][_0x3de43d(0x40c)](exports['CollaborationController']),this[_0x3de43d(0x495)][_0x3de43d(0x3d7)](exports[_0x3de43d(0x4df)])&&this[_0x3de43d(0x495)]['get'](exports['DesktopCollaborationStatusDisplayController']);}},Mn(exports[_0x24c410(0x1d1)],_0x24c410(0x30e),An),exports[_0x24c410(0x1d1)]=Nn([a['DependentOn'](_[_0x24c410(0x230)]),me(0x1,a[_0x24c410(0x40f)]),me(0x2,O[_0x24c410(0x3ca)]),me(0x3,a[_0x24c410(0x349)](a['Injector'])),me(0x4,a[_0x24c410(0x1df)])],exports['UniverCollaborationClientPlugin']),exports[_0x24c410(0x41d)]=jt,exports[_0x24c410(0x3ba)]=Ct,exports[_0x24c410(0x2f9)]=gt,exports[_0x24c410(0x21e)]=U,exports[_0x24c410(0x35e)]=Lt,exports[_0x24c410(0x3ce)]=Xe,exports['HEARTBEAT_INTERVAL_KEY']=mt,exports[_0x24c410(0x5da)]=Ge,exports[_0x24c410(0x522)]=Ke,exports[_0x24c410(0x4e6)]=Qe,exports[_0x24c410(0x282)]=pt,exports['LOGIN_URL_KEY']=Et,exports[_0x24c410(0x427)]=It,exports[_0x24c410(0x4b6)]=zt,exports[_0x24c410(0x207)]=St,exports['SNAPSHOT_URL_KEY']=vt,exports[_0x24c410(0x278)]=H,exports[_0x24c410(0x1e1)]=Pt,exports[_0x24c410(0x3f2)]=$t,exports[_0x24c410(0x50c)]=Rt,exports['serializeCombRequest']=Ot;
1
+ 'use strict';const _0x265f71=_0x5b21;(function(_0x272437,_0x2da9e7){const _0x2e7038=_0x5b21,_0x12db9d=_0x272437();while(!![]){try{const _0x2908cd=-parseInt(_0x2e7038(0x377))/0x1*(parseInt(_0x2e7038(0x532))/0x2)+parseInt(_0x2e7038(0x1fa))/0x3+parseInt(_0x2e7038(0x3ed))/0x4*(parseInt(_0x2e7038(0x4b8))/0x5)+-parseInt(_0x2e7038(0x3cc))/0x6*(parseInt(_0x2e7038(0x566))/0x7)+parseInt(_0x2e7038(0x242))/0x8*(parseInt(_0x2e7038(0x4f7))/0x9)+-parseInt(_0x2e7038(0x378))/0xa*(parseInt(_0x2e7038(0x353))/0xb)+parseInt(_0x2e7038(0x271))/0xc;if(_0x2908cd===_0x2da9e7)break;else _0x12db9d['push'](_0x12db9d['shift']());}catch(_0x166ba2){_0x12db9d['push'](_0x12db9d['shift']());}}}(_0x13c0,0xa095f));var Ft=Object[_0x265f71(0x39e)],Gt=(_0x394e3e,_0x2eea4f,_0x3b500c)=>_0x2eea4f in _0x394e3e?Ft(_0x394e3e,_0x2eea4f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b500c}):_0x394e3e[_0x2eea4f]=_0x3b500c,u=(_0xad7dda,_0x293f88,_0x5d2029)=>Gt(_0xad7dda,typeof _0x293f88!=_0x265f71(0x5b0)?_0x293f88+'':_0x293f88,_0x5d2029);Object[_0x265f71(0x39e)](exports,Symbol[_0x265f71(0x2d6)],{'value':_0x265f71(0x5b8)});const a=require('@univerjs/core'),v=require(_0x265f71(0x5cd)),E=require(_0x265f71(0x531)),X=require(_0x265f71(0x457)),A=require(_0x265f71(0x425)),N=require('@univerjs/network'),_=require('@univerjs-pro/collaboration'),Yt=require(_0x265f71(0x340)),w=require(_0x265f71(0x5bc)),C=require(_0x265f71(0x294)),O=require(_0x265f71(0x332)),se=require('@univerjs/docs'),j=require('@univerjs/drawing'),et=require(_0x265f71(0x55f)),te=require(_0x265f71(0x238)),P=require(_0x265f71(0x384)),Kt=require(_0x265f71(0x4a0)),Xt=require(_0x265f71(0x4c2)),St=_0x265f71(0x2fc),qt=_0x265f71(0x4ea),vt=_0x265f71(0x4ef),zt=_0x265f71(0x3ee),Jt=0x7d0,gt='COLLAB_WEB_SOCKET_URL',Zt=_0x265f71(0x5dc),ft='HEARTBEAT_INTERVAL',Qt=0x7530,Ge='HEARTBEAT_TIMEOUT',mt=0x4e20,es=0x4e20,It='RETRY_CONNECTING_MAX_COUNT',ts=0x3,pt=_0x265f71(0x3aa),ss=0x3e8,Ct=_0x265f71(0x2ae),is=_0x265f71(0x4e7),Et='LOGIN_URL_KEY',ns='/universer-api/oidc/authpage';var bt=(_0x3cdc2e=>(_0x3cdc2e[_0x3cdc2e[_0x265f71(0x575)]=0x0]=_0x265f71(0x575),_0x3cdc2e[_0x3cdc2e['OK']=0x1]='OK',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x31d)]=0x2]='INTERNAL_ERROR',_0x3cdc2e[_0x3cdc2e['PERMISSION_DENIED']=0x3]=_0x265f71(0x3b7),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x212)]=0x4]=_0x265f71(0x212),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x277)]=0x5]=_0x265f71(0x277),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x5ed)]=0x6]=_0x265f71(0x5ed),_0x3cdc2e[_0x3cdc2e['INVALID_ARGUMENT']=0x7]=_0x265f71(0x4da),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x26d)]=0x8]=_0x265f71(0x26d),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x349)]=0x9]=_0x265f71(0x349),_0x3cdc2e[_0x3cdc2e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x265f71(0x3ca),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x446)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x3bf)]=0x1772]=_0x265f71(0x3bf),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x481)]=0x1773]=_0x265f71(0x481),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x520)]=0x1b59]='APPLY_REJECT',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x476)]=0x1b5a]=_0x265f71(0x476),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x1d3)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x5ce)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x3fb)]=0x1b5d]=_0x265f71(0x3fb),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x304)]=0x1f41]=_0x265f71(0x304),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x499)]=0x2329]=_0x265f71(0x499),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x4b7)]=0x232a]=_0x265f71(0x4b7),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x2d3)]=0x232b]=_0x265f71(0x2d3),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x4ed)]=0x232c]=_0x265f71(0x4ed),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x2bf)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3cdc2e[_0x3cdc2e[_0x265f71(0x45e)]=0x2711]=_0x265f71(0x45e),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x38f)]=0x2712]=_0x265f71(0x38f),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x568)]=0x2713]=_0x265f71(0x568),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x2fa)]=0x2714]=_0x265f71(0x2fa),_0x3cdc2e[_0x3cdc2e[_0x265f71(0x5f3)]=-0x1]=_0x265f71(0x5f3),_0x3cdc2e))(bt||{}),$=(_0xf845f9=>(_0xf845f9[_0xf845f9[_0x265f71(0x1f6)]=0x0]=_0x265f71(0x1f6),_0xf845f9[_0xf845f9[_0x265f71(0x2d2)]=0x1]=_0x265f71(0x2d2),_0xf845f9[_0xf845f9[_0x265f71(0x527)]=0x2]=_0x265f71(0x527),_0xf845f9[_0xf845f9['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0xf845f9[_0xf845f9[_0x265f71(0x506)]=0x4]='UNIVER_PROJECT',_0xf845f9[_0xf845f9[_0x265f71(0x5f3)]=-0x1]=_0x265f71(0x5f3),_0xf845f9))($||{}),b=(_0x2dbbfc=>(_0x2dbbfc[_0x2dbbfc[_0x265f71(0x4e3)]=0x0]='UNKNOWN_CMD',_0x2dbbfc[_0x2dbbfc[_0x265f71(0x2d5)]=0x1]=_0x265f71(0x2d5),_0x2dbbfc[_0x2dbbfc[_0x265f71(0x514)]=0x2]=_0x265f71(0x514),_0x2dbbfc[_0x2dbbfc['LEAVE']=0x3]=_0x265f71(0x4fb),_0x2dbbfc[_0x2dbbfc[_0x265f71(0x578)]=0x4]=_0x265f71(0x578),_0x2dbbfc[_0x2dbbfc[_0x265f71(0x511)]=0x5]=_0x265f71(0x511),_0x2dbbfc[_0x2dbbfc[_0x265f71(0x410)]=0x6]='RECV',_0x2dbbfc[_0x2dbbfc['UNRECOGNIZED']=-0x1]=_0x265f71(0x5f3),_0x2dbbfc))(b||{}),Ye=(_0x2b8d3b=>(_0x2b8d3b[_0x2b8d3b[_0x265f71(0x523)]=0x0]=_0x265f71(0x523),_0x2b8d3b[_0x2b8d3b['OK']=0x1]='OK',_0x2b8d3b[_0x2b8d3b[_0x265f71(0x364)]=0x2]=_0x265f71(0x364),_0x2b8d3b[_0x2b8d3b[_0x265f71(0x5f3)]=-0x1]=_0x265f71(0x5f3),_0x2b8d3b))(Ye||{}),Tt=(_0x1ae0e6=>(_0x1ae0e6[_0x1ae0e6['Undefined']=0x0]=_0x265f71(0x264),_0x1ae0e6[_0x1ae0e6['HttpImport']=0x1]=_0x265f71(0x201),_0x1ae0e6[_0x1ae0e6[_0x265f71(0x5dd)]=0x2]=_0x265f71(0x5dd),_0x1ae0e6[_0x1ae0e6[_0x265f71(0x3e2)]=0x3]='UnitEmbedded',_0x1ae0e6[_0x1ae0e6[_0x265f71(0x2b1)]=0x4]='UnitSnapshot',_0x1ae0e6[_0x1ae0e6[_0x265f71(0x5f3)]=-0x1]=_0x265f71(0x5f3),_0x1ae0e6))(Tt||{});const L='collaboration-client.config',rs={};function Rt(_0x574c5f){const _0x2ae66d=_0x265f71;var _0x1db241,_0xed3043,_0x2e0f93,_0x3a789f;const _0x2a4429=_0x574c5f[_0x2ae66d(0x485)],_0x1d9730=JSON['parse'](_0x2a4429);switch(_0x1d9730['cmd']){case b[_0x2ae66d(0x511)]:case b['HELLO']:{const _0x305440=_0x1d9730['infoRsp'];return{..._0x1d9730,'data':_0x305440,'cmd':_0x1d9730[_0x2ae66d(0x258)]};}case b[_0x2ae66d(0x514)]:{const _0x5f40c5=_0x1d9730[_0x2ae66d(0x291)];return{..._0x1d9730,'data':_0x5f40c5,'cmd':_0x1d9730[_0x2ae66d(0x258)]};}case b['RECV']:{const _0x355356=_0x1d9730[_0x2ae66d(0x246)];switch(_0x355356[_0x2ae66d(0x32e)]){case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x3f8)]:return{..._0x1d9730,'data':{..._0x355356,'data':(_0x1db241=_0x355356[_0x2ae66d(0x41c)])==null?void 0x0:_0x1db241['cs']},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x552)]:return{..._0x1d9730,'data':{..._0x355356,'data':(_0xed3043=_0x355356[_0x2ae66d(0x389)])==null?void 0x0:_0xed3043['cs']},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x296)]:return{..._0x1d9730,'data':{..._0x355356,'data':(_0x2e0f93=_0x355356[_0x2ae66d(0x225)])==null?void 0x0:_0x2e0f93['cs']},'cmd':_0x1d9730['cmd']};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x22f)]:return{..._0x1d9730,'data':{..._0x355356,'data':(_0x3a789f=_0x355356[_0x2ae66d(0x37a)])==null?void 0x0:_0x3a789f['cs']},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x2c5)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x1e5)]},'cmd':_0x1d9730['cmd']};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x20a)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x254)]},'cmd':_0x1d9730['cmd']};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x1ef)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x5c9)]},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x400)]},'cmd':_0x1d9730['cmd']};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x5bd)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x39d)]},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x37f)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x400)]},'cmd':_0x1d9730['cmd']};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x267)]:return{..._0x1d9730,'data':_0x355356,'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _[_0x2ae66d(0x4d9)][_0x2ae66d(0x2d9)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x57a)]},'cmd':_0x1d9730['cmd']};case _['CollaborationEvent'][_0x2ae66d(0x2e6)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x5f1)]},'cmd':_0x1d9730[_0x2ae66d(0x258)]};case _['CollaborationEvent'][_0x2ae66d(0x23f)]:return{..._0x1d9730,'data':{..._0x355356,'data':_0x355356[_0x2ae66d(0x2ec)]},'cmd':_0x1d9730[_0x2ae66d(0x258)]};default:return _0x1d9730;}}default:return _0x1d9730;}}function Ot(_0x5a7597){const _0x4bf071=_0x265f71;switch(_0x5a7597['cmd']){case b['HEARTBEAT']:case b[_0x4bf071(0x2d5)]:return JSON[_0x4bf071(0x4d4)]({'cmd':_0x5a7597[_0x4bf071(0x258)],'routeKey':_0x5a7597[_0x4bf071(0x36d)]});case b[_0x4bf071(0x578)]:{let _0x4137ec;switch(_0x5a7597['data']['eventID']){case _[_0x4bf071(0x4d9)][_0x4bf071(0x2c5)]:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)]['UPDATE_CURSOR'],'updateCursorEvent':_0x5a7597['data'][_0x4bf071(0x485)]};break;}case _['CollaborationEvent'][_0x4bf071(0x1ef)]:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)][_0x4bf071(0x1ef)],'leaveEvent':_0x5a7597[_0x4bf071(0x485)]['data']};break;}case _['CollaborationEvent'][_0x4bf071(0x20a)]:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)]['USERS_ENTER'],'joinEvent':_0x5a7597[_0x4bf071(0x485)][_0x4bf071(0x485)]};break;}case _[_0x4bf071(0x4d9)]['LIVESHARE_NEW_HOST']:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)][_0x4bf071(0x1e6)],'liveShareNewHost':_0x5a7597[_0x4bf071(0x485)][_0x4bf071(0x485)]};break;}case _[_0x4bf071(0x4d9)]['LIVESHARE_OPERATION']:{_0x4137ec={'eventID':_['CollaborationEvent'][_0x4bf071(0x5bd)],'liveShareOperation':_0x5a7597[_0x4bf071(0x485)][_0x4bf071(0x485)]};break;}case _[_0x4bf071(0x4d9)][_0x4bf071(0x37f)]:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)][_0x4bf071(0x37f)],'liveShareTerminate':_0x5a7597[_0x4bf071(0x485)][_0x4bf071(0x485)]};break;}case _[_0x4bf071(0x4d9)][_0x4bf071(0x2c0)]:{_0x4137ec={'eventID':_[_0x4bf071(0x4d9)][_0x4bf071(0x2c0)],'liveShareRequestHost':_0x5a7597[_0x4bf071(0x485)]['data']};break;}case _[_0x4bf071(0x4d9)][_0x4bf071(0x3d7)]:{_0x4137ec={'eventID':_['CollaborationEvent'][_0x4bf071(0x3d7)]};break;}default:_0x4137ec={'eventID':_0x5a7597[_0x4bf071(0x485)][_0x4bf071(0x32e)]};}return JSON[_0x4bf071(0x4d4)]({'cmd':_0x5a7597['cmd'],'routeKey':_0x5a7597['routeKey'],'collaMsg':_0x4137ec});}case b[_0x4bf071(0x514)]:return JSON[_0x4bf071(0x4d4)]({'cmd':_0x5a7597[_0x4bf071(0x258)],'routeKey':_0x5a7597['routeKey'],'joinReq':_0x5a7597[_0x4bf071(0x485)]});case b['LEAVE']:return JSON[_0x4bf071(0x4d4)]({'cmd':_0x5a7597[_0x4bf071(0x258)],'routeKey':_0x5a7597[_0x4bf071(0x36d)],'leaveReq':_0x5a7597[_0x4bf071(0x485)]});default:throw new Error(_0x4bf071(0x524));}}var os=Object['defineProperty'],as=Object[_0x265f71(0x307)],cs=(_0x38013e,_0x4ebbc0,_0x25315f,_0x2c7baf)=>{const _0x559e3d=_0x265f71;for(var _0x213c97=_0x2c7baf>0x1?void 0x0:_0x2c7baf?as(_0x4ebbc0,_0x25315f):_0x4ebbc0,_0x4f4b12=_0x38013e[_0x559e3d(0x2ce)]-0x1,_0x479435;_0x4f4b12>=0x0;_0x4f4b12--)(_0x479435=_0x38013e[_0x4f4b12])&&(_0x213c97=(_0x2c7baf?_0x479435(_0x4ebbc0,_0x25315f,_0x213c97):_0x479435(_0x213c97))||_0x213c97);return _0x2c7baf&&_0x213c97&&os(_0x4ebbc0,_0x25315f,_0x213c97),_0x213c97;},ae=(_0x4b343f,_0x91dcf2)=>(_0x2d59ae,_0xdfceba)=>_0x91dcf2(_0x2d59ae,_0xdfceba,_0x4b343f);const Ke=a[_0x265f71(0x4bd)](_0x265f71(0x2a3));function ls(_0x5a8c0b,_0x5958d2,_0x3224ea){const _0x47d033=_0x265f71;return _0x5a8c0b+'/'+_0x5958d2+_0x47d033(0x1f1)+_0x3224ea+'/new_changes';}exports['CollaborationSocketService']=class extends a['Disposable']{constructor(_0xc61923,_0x18492c,_0x4edd8c,_0x5511cb,_0x5c4d39){const _0x297d06=_0x265f71;super(),this['_http']=_0xc61923,this[_0x297d06(0x565)]=_0x18492c,this['_configService']=_0x4edd8c,this[_0x297d06(0x4e4)]=_0x5511cb,this[_0x297d06(0x4f5)]=_0x5c4d39;}[_0x265f71(0x588)](_0x3cf73e){const _0x591c14=_0x265f71,_0x758c1e=this[_0x591c14(0x565)][_0x591c14(0x588)](_0x3cf73e);if(!_0x758c1e)throw new Error(_0x591c14(0x5e9));const _0x4415cd=new a[(_0x591c14(0x34c))](),_0x3d4254=new v[(_0x591c14(0x23e))]();_0x4415cd[_0x591c14(0x4bb)](_0x758c1e[_0x591c14(0x41d)][_0x591c14(0x1d2)](_0x11aeaa=>_0x3d4254[_0x591c14(0x53f)](_0x11aeaa))),_0x4415cd[_0x591c14(0x4bb)](a[_0x591c14(0x526)](()=>_0x3d4254[_0x591c14(0x4e8)]()));const _0x4fab7e=new v[(_0x591c14(0x23e))]();_0x4415cd[_0x591c14(0x4bb)](_0x758c1e[_0x591c14(0x5d0)][_0x591c14(0x1d2)](_0x31e558=>_0x4fab7e['next'](_0x31e558))),_0x4415cd['add'](a['toDisposable'](()=>_0x4fab7e[_0x591c14(0x4e8)]()));const _0x17d903=new v[(_0x591c14(0x23e))]();_0x4415cd[_0x591c14(0x4bb)](_0x758c1e[_0x591c14(0x49a)][_0x591c14(0x1d2)](_0x157232=>{const _0x3ab427=Rt(_0x157232);_0x17d903['next'](_0x3ab427);})),_0x4415cd[_0x591c14(0x4bb)](a[_0x591c14(0x526)](()=>_0x17d903['complete']()));let _0x245a4e;const _0x1f701c=()=>{const _0x26a44e=_0x591c14;_0x4fab7e['next'](new Event('connection\x20error')),_0x3d4254[_0x26a44e(0x53f)](new CloseEvent(_0x26a44e(0x326))),_0x245a4e['close']();};return _0x245a4e={'memberID':'','close$':_0x3d4254[_0x591c14(0x406)](),'error$':_0x4fab7e[_0x591c14(0x406)](),'open$':_0x758c1e[_0x591c14(0x5eb)],'message$':_0x17d903[_0x591c14(0x406)](),'send':_0x5a0eb7=>{const _0x1b4fea=_0x591c14;if(_0x5a0eb7[_0x1b4fea(0x258)]===b[_0x1b4fea(0x578)]){if(_0x5a0eb7['data'][_0x1b4fea(0x32e)]===_[_0x1b4fea(0x4d9)][_0x1b4fea(0x3c2)]){this['_submitChangeset'](_0x245a4e,_0x5a0eb7[_0x1b4fea(0x485)])['catch'](_0x488b1c=>{const _0x47daf8=_0x1b4fea;this[_0x47daf8(0x4e4)]['error'](_0x488b1c),_0x1f701c();});return;}if(_0x5a0eb7[_0x1b4fea(0x485)][_0x1b4fea(0x32e)]===_[_0x1b4fea(0x4d9)]['FETCH_MISSING']){const _0x3eca21=_0x5a0eb7[_0x1b4fea(0x485)];this[_0x1b4fea(0x255)](_0x3eca21)[_0x1b4fea(0x473)](_0x1e465b=>{const _0x40f56a=_0x1b4fea;_0x17d903[_0x40f56a(0x53f)]({'cmd':b[_0x40f56a(0x410)],'code':Ye['OK'],'routeKey':_0x3eca21['data'][_0x40f56a(0x597)],'routeType':'','data':{'eventID':_[_0x40f56a(0x4d9)][_0x40f56a(0x4dc)],'data':{'changesets':_0x1e465b}}});})[_0x1b4fea(0x30d)](_0xbe80b7=>{const _0x16c9dc=_0x1b4fea;this[_0x16c9dc(0x4e4)][_0x16c9dc(0x273)](_0xbe80b7),_0x1f701c();});return;}}_0x758c1e[_0x1b4fea(0x22c)](Ot(_0x5a0eb7));},'close':()=>{const _0x5d46bb=_0x591c14;_0x758c1e[_0x5d46bb(0x57d)](),_0x4415cd[_0x5d46bb(0x456)]();}},_0x245a4e;}async['_submitChangeset'](_0x1add5d,_0x45c4c4){const _0x13c16e=_0x265f71;var _0x5cf8b9,_0x11a6b7;const {unitType:_0xd4d138,unitID:_0x11f336,changeset:_0x48f202}=_0x45c4c4[_0x13c16e(0x485)],_0x154838={'unitID':_0x11f336,'memberID':_0x1add5d[_0x13c16e(0x2d8)],'type':_0xd4d138,'changeset':_[_0x13c16e(0x4d3)](_0x48f202)},_0x59a46f=this[_0x13c16e(0x26f)][_0x13c16e(0x572)](Ct),_0x24cd65=this[_0x13c16e(0x26f)][_0x13c16e(0x572)](L),_0x4338da=ls((_0x11a6b7=(_0x5cf8b9=_0x24cd65==null?void 0x0:_0x24cd65[_0x13c16e(0x2cb)])!=null?_0x5cf8b9:_0x59a46f)!=null?_0x11a6b7:is,_0xd4d138,_0x11f336);try{await this[_0x13c16e(0x1d5)][_0x13c16e(0x3ef)](_0x4338da,{'body':_0x154838});}catch(_0x37b8ed){throw this[_0x13c16e(0x4e4)]['error'](_0x13c16e(0x30b),_0x13c16e(0x537)),_0x37b8ed;}}async['_fetchMissChangesets'](_0x9598aa){const _0x397cd0=_0x265f71,{unitID:_0x45bbe4,from:_0x5746b6,to:_0x12e3f2,unitType:_0xd3c33a}=_0x9598aa[_0x397cd0(0x485)];return(await this[_0x397cd0(0x4f5)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x45bbe4,'type':_0xd3c33a,'from':_0x5746b6,'to':_0x12e3f2}))[_0x397cd0(0x5f5)];}},exports[_0x265f71(0x205)]=cs([ae(0x0,a[_0x265f71(0x599)](N[_0x265f71(0x56a)])),ae(0x1,a[_0x265f71(0x599)](N[_0x265f71(0x3b4)])),ae(0x2,a[_0x265f71(0x230)]),ae(0x3,a[_0x265f71(0x54c)]),ae(0x4,_[_0x265f71(0x600)])],exports[_0x265f71(0x205)]);const hs=_0x265f71(0x53e);function _s(_0x6ef821){const _0x212ea7=_0x265f71;return JSON[_0x212ea7(0x4d4)](_0x6ef821)[_0x212ea7(0x2ce)];}class Xe{constructor(){const _0x3d5cd5=_0x265f71;u(this,_0x3d5cd5(0x237),new v[(_0x3d5cd5(0x23e))]()),u(this,'commentUpdate$',this[_0x3d5cd5(0x237)][_0x3d5cd5(0x406)]());}[_0x265f71(0x20b)](_0x42bf90){const _0x16a0bc=_0x265f71;this[_0x16a0bc(0x237)]['next'](_0x42bf90);}}var us=Object[_0x265f71(0x39e)],ds=Object[_0x265f71(0x307)],Ss=(_0x3f9495,_0x1baf89,_0x275872,_0x12c5ad)=>{const _0x482bd7=_0x265f71;for(var _0x280da8=_0x12c5ad>0x1?void 0x0:_0x12c5ad?ds(_0x1baf89,_0x275872):_0x1baf89,_0x23be89=_0x3f9495[_0x482bd7(0x2ce)]-0x1,_0x44068f;_0x23be89>=0x0;_0x23be89--)(_0x44068f=_0x3f9495[_0x23be89])&&(_0x280da8=(_0x12c5ad?_0x44068f(_0x1baf89,_0x275872,_0x280da8):_0x44068f(_0x280da8))||_0x280da8);return _0x12c5ad&&_0x280da8&&us(_0x1baf89,_0x275872,_0x280da8),_0x280da8;},tt=(_0x3fe253,_0x418a71)=>(_0x1251a0,_0x15ba99)=>_0x418a71(_0x1251a0,_0x15ba99,_0x3fe253);let q=class extends a['Disposable']{constructor(_0x23dfe0,_0x46ed08){const _0x2f3d51=_0x265f71;super(),u(this,'_roomMembers',new Map()),(this[_0x2f3d51(0x4c5)]=_0x23dfe0,this[_0x2f3d51(0x44e)]=_0x46ed08,this[_0x2f3d51(0x256)](a[_0x2f3d51(0x526)](v[_0x2f3d51(0x4cf)](this[_0x2f3d51(0x4c5)]['getTypeOfUnitDisposed$'](a[_0x2f3d51(0x1f4)][_0x2f3d51(0x527)])[_0x2f3d51(0x337)](E[_0x2f3d51(0x5e5)](_0x3de798=>_0x3de798[_0x2f3d51(0x4fa)]())),this[_0x2f3d51(0x4c5)]['getTypeOfUnitDisposed$'](a[_0x2f3d51(0x1f4)][_0x2f3d51(0x2d2)])[_0x2f3d51(0x337)](E[_0x2f3d51(0x5e5)](_0x3d94f3=>_0x3d94f3['getUnitId']())),this[_0x2f3d51(0x4c5)][_0x2f3d51(0x598)](a['UniverInstanceType']['UNIVER_SLIDE'])['pipe'](E[_0x2f3d51(0x5e5)](_0x54d63a=>_0x54d63a[_0x2f3d51(0x4fa)]())))[_0x2f3d51(0x1d2)](_0x4f0a5a=>this[_0x2f3d51(0x275)](_0x4f0a5a)))));}['setCurrentUser'](_0x4b2363){const _0x4480c9=_0x265f71;this['_userManagerService'][_0x4480c9(0x5f8)](_0x4b2363);}['getCurrentUser'](){const _0x2a87e3=_0x265f71;return this[_0x2a87e3(0x44e)][_0x2a87e3(0x4ab)]();}[_0x265f71(0x5ae)](_0x498565,_0x2bd1cb){const _0x4c3812=_0x265f71;let _0x1a20e3=this[_0x4c3812(0x309)][_0x4c3812(0x224)](_0x498565);_0x1a20e3||(_0x1a20e3=new vs(),this['_roomMembers'][_0x4c3812(0x2c4)](_0x498565,_0x1a20e3)),_0x1a20e3[_0x4c3812(0x5ae)](_0x2bd1cb);}['removeMember'](_0x231a33,_0x2442f4){const _0x2b56fb=_0x265f71,_0x3be82f=this[_0x2b56fb(0x309)][_0x2b56fb(0x224)](_0x231a33);_0x3be82f&&_0x3be82f['removeMember'](_0x2442f4);}[_0x265f71(0x347)](_0x56e701){const _0x4ab6de=_0x265f71;return this[_0x4ab6de(0x309)][_0x4ab6de(0x224)](_0x56e701);}[_0x265f71(0x390)](_0x48613e,_0x888a34){const _0x22f51b=_0x265f71,_0x53aa59=this[_0x22f51b(0x309)][_0x22f51b(0x224)](_0x48613e);if(_0x53aa59)return _0x53aa59[_0x22f51b(0x390)](_0x888a34);}[_0x265f71(0x275)](_0x231d43){const _0x534509=_0x265f71,_0x1a8e6e=this['_roomMembers']['get'](_0x231d43);_0x1a8e6e&&(_0x1a8e6e[_0x534509(0x456)](),this[_0x534509(0x309)][_0x534509(0x1eb)](_0x231d43));}['dispose'](){const _0x3f6def=_0x265f71;this[_0x3f6def(0x309)]['forEach'](_0x53b581=>_0x53b581[_0x3f6def(0x456)]()),this[_0x3f6def(0x309)][_0x3f6def(0x547)]();}};q=Ss([tt(0x0,a[_0x265f71(0x5ad)]),tt(0x1,a['Inject'](a[_0x265f71(0x394)]))],q);class vs extends a[_0x265f71(0x1d4)]{constructor(){const _0x447bbb=_0x265f71;super(...arguments),u(this,_0x447bbb(0x23d),new Map());}[_0x265f71(0x456)](){const _0x44f40c=_0x265f71;this[_0x44f40c(0x23d)]['clear']();}['updateMember'](_0x2d3591){const _0x7f271d=_0x265f71;this[_0x7f271d(0x23d)][_0x7f271d(0x2c4)](_0x2d3591['memberID'],_0x2d3591);}[_0x265f71(0x582)](_0x119db2){const _0x35f372=_0x265f71;this['_members'][_0x35f372(0x1eb)](_0x119db2);}[_0x265f71(0x390)](_0x264c40){const _0x28eff0=_0x265f71;return this[_0x28eff0(0x23d)][_0x28eff0(0x224)](_0x264c40);}}var gs=Object['defineProperty'],fs=Object['getOwnPropertyDescriptor'],ms=(_0x470716,_0x909012,_0x34a2f9,_0x5039b9)=>{for(var _0x33d55b=_0x5039b9>0x1?void 0x0:_0x5039b9?fs(_0x909012,_0x34a2f9):_0x909012,_0x3ca0a7=_0x470716['length']-0x1,_0x32c5eb;_0x3ca0a7>=0x0;_0x3ca0a7--)(_0x32c5eb=_0x470716[_0x3ca0a7])&&(_0x33d55b=(_0x5039b9?_0x32c5eb(_0x909012,_0x34a2f9,_0x33d55b):_0x32c5eb(_0x33d55b))||_0x33d55b);return _0x5039b9&&_0x33d55b&&gs(_0x909012,_0x34a2f9,_0x33d55b),_0x33d55b;},V=(_0x3aaed7,_0x3e4639)=>(_0x1e8082,_0x44f491)=>_0x3e4639(_0x1e8082,_0x44f491,_0x3aaed7),H=(_0x2f7278=>(_0x2f7278[_0x2f7278[_0x265f71(0x402)]=0x0]=_0x265f71(0x402),_0x2f7278[_0x2f7278[_0x265f71(0x306)]=0x1]=_0x265f71(0x306),_0x2f7278[_0x2f7278[_0x265f71(0x4f3)]=0x2]=_0x265f71(0x4f3),_0x2f7278[_0x2f7278[_0x265f71(0x40f)]=0x3]=_0x265f71(0x40f),_0x2f7278))(H||{});exports['CollaborationSession']=class extends a[_0x265f71(0x459)]{constructor(_0x3e567d,_0x4b5f86,_0x5b8b90,_0x1f6082,_0x50f460,_0x135622,_0x162b35,_0x359c59,_0x52a668,_0x4680af){const _0x264038=_0x265f71;super(),u(this,'_sessionStatus$',new v['BehaviorSubject'](0x0)),u(this,'sessionStatus$',this[_0x264038(0x3dc)][_0x264038(0x406)]()),u(this,'_event$',new v[(_0x264038(0x23e))]()),u(this,_0x264038(0x59e),this[_0x264038(0x2af)][_0x264038(0x406)]()),u(this,_0x264038(0x371)),u(this,_0x264038(0x55b)),u(this,_0x264038(0x301)),u(this,_0x264038(0x4bc),!0x1),u(this,_0x264038(0x386),null),(this['_unitID']=_0x3e567d,this[_0x264038(0x4e4)]=_0x5b8b90,this['_beforeCloseService']=_0x1f6082,this[_0x264038(0x4dd)]=_0x50f460,this[_0x264038(0x26f)]=_0x135622,this[_0x264038(0x315)]=_0x162b35,this[_0x264038(0x452)]=_0x359c59,this[_0x264038(0x29a)]=_0x52a668,this[_0x264038(0x3ec)]=_0x4680af,this[_0x264038(0x4bc)]=!!this[_0x264038(0x3ec)],_0x4b5f86[_0x264038(0x337)](v[_0x264038(0x321)](this[_0x264038(0x3e4)]))['subscribe'](_0x365daa=>{const _0x1881fd=_0x264038;var _0x4f87d1;typeof _0x365daa>'u'||(this[_0x1881fd(0x371)]=_0x365daa,_0x365daa?(this[_0x1881fd(0x202)](_0x365daa),this[_0x1881fd(0x55b)]=_0x365daa[_0x1881fd(0x49a)][_0x1881fd(0x1d2)](_0x50482a=>{const _0x2bd361=_0x1881fd;_0x50482a[_0x2bd361(0x36d)]===this[_0x2bd361(0x37c)]&&this[_0x2bd361(0x5cf)](_0x50482a);})):(this[_0x1881fd(0x47c)](),this[_0x1881fd(0x3dc)][_0x1881fd(0x53f)](0x2),(_0x4f87d1=this['_socketMessageSubscription'])==null||_0x4f87d1['unsubscribe'](),this[_0x1881fd(0x55b)]=null));}),this[_0x264038(0x256)](this[_0x264038(0x5f0)][_0x264038(0x504)](()=>{const _0x2888d1=_0x264038;var _0x31c213;(_0x31c213=this[_0x2888d1(0x371)])==null||_0x31c213['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x2888d1(0x37c)]}});})));}get[_0x265f71(0x5aa)](){const _0x29045b=_0x265f71;return this[_0x29045b(0x3dc)][_0x29045b(0x4bf)]();}['getMemberID'](){var _0x31a32b,_0x3cf298;return(_0x3cf298=(_0x31a32b=this['_socket'])==null?void 0x0:_0x31a32b['memberID'])!=null?_0x3cf298:null;}['dispose'](){const _0x351bce=_0x265f71;super['dispose'](),this[_0x351bce(0x3e4)][_0x351bce(0x53f)](),this['dispose$'][_0x351bce(0x4e8)]();}[_0x265f71(0x57d)](){const _0xf75adb=_0x265f71;var _0xf2201,_0x819d6b;this['_throwTelemetryCollaborationNewChangeset'](),(_0xf2201=this[_0xf75adb(0x371)])==null||_0xf2201[_0xf75adb(0x22c)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0xf75adb(0x37c)]}}),(_0x819d6b=this[_0xf75adb(0x371)])==null||_0x819d6b['close'](),this[_0xf75adb(0x2af)][_0xf75adb(0x4e8)](),this[_0xf75adb(0x3dc)]['complete'](),this[_0xf75adb(0x456)]();}[_0x265f71(0x5cf)](_0xf8fd4a){const _0x148948=_0x265f71;_0xf8fd4a[_0x148948(0x258)]===b[_0x148948(0x514)]?this[_0x148948(0x346)](_0xf8fd4a):_0xf8fd4a[_0x148948(0x258)]===b[_0x148948(0x410)]&&this['_onRecvEvent'](_0xf8fd4a);}[_0x265f71(0x202)](_0x2f246c){const _0xe41555=_0x265f71;this['_sessionStatus$']['next'](0x1),_0x2f246c[_0xe41555(0x22c)]({'cmd':b[_0xe41555(0x514)],'routeKey':this[_0xe41555(0x37c)],'routeType':'','data':{'rooms':[{'roomID':this[_0xe41555(0x37c)]}]}});}[_0x265f71(0x346)](_0x4c4034){const _0x3fd3ff=_0x265f71;var _0x1e8c27;if(_0x4c4034[_0x3fd3ff(0x1fe)]===Ye['FAIL']){this[_0x3fd3ff(0x4dd)][_0x3fd3ff(0x508)]({'type':X[_0x3fd3ff(0x28b)][_0x3fd3ff(0x3e7)],'content':this[_0x3fd3ff(0x315)]['t'](_0x3fd3ff(0x495))}),this[_0x3fd3ff(0x3dc)][_0x3fd3ff(0x53f)](0x2);return;}this[_0x3fd3ff(0x3dc)][_0x3fd3ff(0x53f)](0x3);const _0x3cafbe=(_0x1e8c27=_0x4c4034['data'][_0x3fd3ff(0x33c)][this[_0x3fd3ff(0x37c)]])==null?void 0x0:_0x1e8c27[_0x3fd3ff(0x368)];_0x3cafbe&&_0x3cafbe[_0x3fd3ff(0x5f9)](_0x750bfa=>this[_0x3fd3ff(0x452)]['updateMember'](this[_0x3fd3ff(0x37c)],_0x750bfa));}['_onRecvEvent'](_0x4d455d){const _0x30563d=_0x265f71;try{const _0x1c2f3c=_0x4d455d[_0x30563d(0x485)];switch(_0x1c2f3c[_0x30563d(0x32e)]){case _['CollaborationEvent']['USERS_ENTER']:this[_0x30563d(0x412)](_0x1c2f3c),this[_0x30563d(0x2af)][_0x30563d(0x53f)](_0x1c2f3c);break;case _[_0x30563d(0x4d9)][_0x30563d(0x1ef)]:this[_0x30563d(0x4e1)](_0x1c2f3c),this[_0x30563d(0x2af)][_0x30563d(0x53f)](_0x1c2f3c);break;case _[_0x30563d(0x4d9)][_0x30563d(0x552)]:this[_0x30563d(0x535)](),this[_0x30563d(0x39b)](),this[_0x30563d(0x2af)]['next'](_0x1c2f3c);break;case _['CollaborationEvent'][_0x30563d(0x267)]:this[_0x30563d(0x4e4)][_0x30563d(0x273)](_0x30563d(0x49e)+JSON[_0x30563d(0x4d4)](_0x1c2f3c)),this[_0x30563d(0x2af)][_0x30563d(0x53f)](_0x1c2f3c);break;case _[_0x30563d(0x4d9)][_0x30563d(0x2d9)]:this[_0x30563d(0x29a)]['onCommentUpdate'](_0x1c2f3c['data']),this[_0x30563d(0x2af)][_0x30563d(0x53f)](_0x1c2f3c);break;default:this['_event$'][_0x30563d(0x53f)](_0x1c2f3c);}}catch(_0x418e38){this[_0x30563d(0x4e4)][_0x30563d(0x273)](_0x418e38,_0x4d455d);}}[_0x265f71(0x412)](_0x9a511d){const _0x214e96=_0x265f71;this[_0x214e96(0x452)]['updateMember'](this[_0x214e96(0x37c)],_0x9a511d['data']);}[_0x265f71(0x4e1)](_0x36fae4){const _0x185f80=_0x265f71;this[_0x185f80(0x452)][_0x185f80(0x582)](this[_0x185f80(0x37c)],_0x36fae4[_0x185f80(0x485)][_0x185f80(0x2d8)]);}async[_0x265f71(0x22c)](_0x3c948b,_0x264c3f){const _0x12cb6a=_0x265f71;if(this[_0x12cb6a(0x5aa)]!==0x3||!this['_socket'])throw new Error(_0x12cb6a(0x4a2));try{_0x3c948b[_0x12cb6a(0x32e)]===_['CollaborationEvent'][_0x12cb6a(0x3c2)]&&(this[_0x12cb6a(0x44b)](),this[_0x12cb6a(0x1fd)](_0x3c948b)),this['_socket'][_0x12cb6a(0x22c)]({'cmd':b['INGEST'],'routeKey':_0x264c3f,'routeType':'','data':_0x3c948b});}catch(_0x1e1a36){this[_0x12cb6a(0x4e4)][_0x12cb6a(0x273)](_0x1e1a36);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2f8354=_0x265f71;var _0xff5e2a;this[_0x2f8354(0x301)]=window[_0x2f8354(0x53a)](()=>{const _0x449b75=_0x2f8354;this['_collaborationTimeoutTimer']=null,this[_0x449b75(0x4dd)]['show']({'type':X['MessageType'][_0x449b75(0x22a)],'content':this[_0x449b75(0x315)]['t']('session.collaboration-timeout')});},(_0xff5e2a=this[_0x2f8354(0x26f)][_0x2f8354(0x572)](Ge))!=null?_0xff5e2a:mt);}[_0x265f71(0x39b)](){const _0x5e3eab=_0x265f71;this[_0x5e3eab(0x301)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x265f71(0x1fd)](_0x12bbb0){const _0x5c79d8=_0x265f71;if(!this[_0x5c79d8(0x4bc)])return;const {data:_0x23c991}=_0x12bbb0,{unitID:_0x27e0f8,changeset:_0x21a22d}=_0x23c991,{mutations:_0x2b06dd,type:_0x589014}=_0x21a22d;this[_0x5c79d8(0x386)]={'unitId':_0x27e0f8,'type':_0x589014,'startTime':performance[_0x5c79d8(0x3d3)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x2b06dd)};}[_0x265f71(0x535)](){const _0x1da6af=_0x265f71;if(this[_0x1da6af(0x4bc)]){if(!this['_telemetryInfo']){this[_0x1da6af(0x4e4)]['error'](_0x1da6af(0x30b),_0x1da6af(0x203));return;}this['_telemetryInfo']['stopTime']=performance[_0x1da6af(0x3d3)](),this[_0x1da6af(0x386)]['duration']=this[_0x1da6af(0x386)][_0x1da6af(0x483)]-this[_0x1da6af(0x386)][_0x1da6af(0x56f)],this['_telemetryService']['capture'](hs,this['_telemetryInfo']),this[_0x1da6af(0x386)]=null;}}[_0x265f71(0x47c)](){const _0x373811=_0x265f71;this[_0x373811(0x386)]=null;}},exports[_0x265f71(0x2ca)]=ms([V(0x2,a[_0x265f71(0x54c)]),V(0x3,A['IBeforeCloseService']),V(0x4,A[_0x265f71(0x4b2)]),V(0x5,a['IConfigService']),V(0x6,a[_0x265f71(0x599)](a[_0x265f71(0x42a)])),V(0x7,a[_0x265f71(0x599)](q)),V(0x8,a[_0x265f71(0x599)](Xe)),V(0x9,a['Optional'](Yt['ITelemetryService']))],exports['CollaborationSession']);var Is=Object[_0x265f71(0x39e)],ps=Object[_0x265f71(0x307)],Cs=(_0x200a60,_0x500392,_0x12ed97,_0x5a2d0f)=>{const _0x4a0d36=_0x265f71;for(var _0x4e4e7d=_0x5a2d0f>0x1?void 0x0:_0x5a2d0f?ps(_0x500392,_0x12ed97):_0x500392,_0x559f8e=_0x200a60[_0x4a0d36(0x2ce)]-0x1,_0x2e00f4;_0x559f8e>=0x0;_0x559f8e--)(_0x2e00f4=_0x200a60[_0x559f8e])&&(_0x4e4e7d=(_0x5a2d0f?_0x2e00f4(_0x500392,_0x12ed97,_0x4e4e7d):_0x2e00f4(_0x4e4e7d))||_0x4e4e7d);return _0x5a2d0f&&_0x4e4e7d&&Is(_0x500392,_0x12ed97,_0x4e4e7d),_0x4e4e7d;},Z=(_0x4cd5dc,_0x228972)=>(_0xff6540,_0x5cfd2a)=>_0x228972(_0xff6540,_0x5cfd2a,_0x4cd5dc);exports[_0x265f71(0x1f2)]=class extends a[_0x265f71(0x1d4)]{constructor(_0x46e26f,_0x48cf5a,_0x144803,_0x1ebcc3,_0xeb7873,_0x25b3ac){const _0x2f7e4e=_0x265f71;super(),u(this,'_socket$',new v['BehaviorSubject'](void 0x0)),u(this,_0x2f7e4e(0x5d8),this['_socket$'][_0x2f7e4e(0x406)]()),u(this,_0x2f7e4e(0x48c),null),u(this,_0x2f7e4e(0x2cf),new Map()),u(this,_0x2f7e4e(0x32c),new v[(_0x2f7e4e(0x5e4))](H[_0x2f7e4e(0x402)])),u(this,_0x2f7e4e(0x348),this[_0x2f7e4e(0x32c)]['asObservable']()),u(this,_0x2f7e4e(0x24a),!0x1),u(this,_0x2f7e4e(0x505)),u(this,_0x2f7e4e(0x414),0x0),u(this,'_sendHeartbeatTimer'),u(this,_0x2f7e4e(0x2ff)),(this[_0x2f7e4e(0x555)]=_0x46e26f,this[_0x2f7e4e(0x315)]=_0x48cf5a,this[_0x2f7e4e(0x4dd)]=_0x144803,this[_0x2f7e4e(0x4e4)]=_0x1ebcc3,this[_0x2f7e4e(0x26f)]=_0xeb7873,this[_0x2f7e4e(0x438)]=_0x25b3ac,this[_0x2f7e4e(0x3e5)]());}get[_0x265f71(0x371)](){const _0x125f4b=_0x265f71;return this['_socket$'][_0x125f4b(0x4bf)]();}['_initEventListeners'](){const _0x521f17=_0x265f71;this[_0x521f17(0x3be)](),this[_0x521f17(0x247)]();}[_0x265f71(0x456)](){const _0x273f73=_0x265f71;super['dispose'](),this['_sessions'][_0x273f73(0x5f9)](_0x279fe3=>_0x279fe3['dispose']()),this[_0x273f73(0x2cf)][_0x273f73(0x547)](),this[_0x273f73(0x32c)][_0x273f73(0x4e8)]();}async[_0x265f71(0x430)](_0x24f3c9){const _0x5f449e=_0x265f71;if(this[_0x5f449e(0x2cf)]['has'](_0x24f3c9))return this[_0x5f449e(0x2cf)][_0x5f449e(0x224)](_0x24f3c9);this[_0x5f449e(0x5ff)]();const _0x2e7639=this[_0x5f449e(0x555)][_0x5f449e(0x27f)](exports['CollaborationSession'],_0x24f3c9,this[_0x5f449e(0x248)][_0x5f449e(0x406)]());return this[_0x5f449e(0x2cf)][_0x5f449e(0x2c4)](_0x24f3c9,_0x2e7639),_0x2e7639;}['closeSession'](_0x5ea0cc){const _0x29d37b=_0x265f71;var _0x3cb902;const _0x2a82c5=this[_0x29d37b(0x2cf)][_0x29d37b(0x224)](_0x5ea0cc);_0x2a82c5&&(this[_0x29d37b(0x2cf)][_0x29d37b(0x1eb)](_0x5ea0cc),_0x2a82c5[_0x29d37b(0x57d)]()),this['_sessions'][_0x29d37b(0x2c2)]||(_0x3cb902=this[_0x29d37b(0x371)])==null||_0x3cb902[_0x29d37b(0x57d)]();}['reconnect'](){const _0x20e956=_0x265f71;this[_0x20e956(0x414)]=0x0,this[_0x20e956(0x505)]!=null&&(clearTimeout(this[_0x20e956(0x505)]),this[_0x20e956(0x505)]=null),this[_0x20e956(0x408)]();}[_0x265f71(0x420)](){const _0x53e232=_0x265f71;var _0x3bde92,_0x1908d5;const _0x54962c=this['_configService'][_0x53e232(0x572)](gt),_0x5b8a77=this['_configService']['getConfig'](L),_0x55765a=(_0x1908d5=(_0x3bde92=_0x5b8a77==null?void 0x0:_0x5b8a77[_0x53e232(0x419)])!=null?_0x3bde92:_0x54962c)!=null?_0x1908d5:Zt,_0x14d91b=this[_0x53e232(0x438)][_0x53e232(0x588)](_0x55765a);return this['_candidateSocket']=_0x14d91b,_0x14d91b;}['_tryEnsureSocket'](){const _0x51382b=_0x265f71;var _0x404a22,_0x4f3d0e;try{const _0x15c974=(_0x4f3d0e=(_0x404a22=this['_socket'])!=null?_0x404a22:this[_0x51382b(0x48c)])!=null?_0x4f3d0e:this['_createSocket']();if(_0x15c974){const _0x3d7599=_0x15c974[_0x51382b(0x22c)];_0x15c974[_0x51382b(0x22c)]=_0x44a91a=>(this[_0x51382b(0x4fc)](),_0x3d7599[_0x51382b(0x245)](_0x15c974,[_0x44a91a])),_0x15c974[_0x51382b(0x49a)][_0x51382b(0x1d2)](_0x4cffa7=>this[_0x51382b(0x45a)](_0x15c974,_0x4cffa7)),_0x15c974[_0x51382b(0x5d0)][_0x51382b(0x337)](E[_0x51382b(0x266)](0x1))[_0x51382b(0x1d2)](_0x243091=>this[_0x51382b(0x4e4)]['error'](_0x51382b(0x25f),_0x243091)),_0x15c974[_0x51382b(0x5eb)][_0x51382b(0x337)](E[_0x51382b(0x266)](0x1))[_0x51382b(0x1d2)](()=>{const _0x40f9ee=_0x51382b;this[_0x40f9ee(0x5c7)](_0x15c974);}),_0x15c974[_0x51382b(0x41d)][_0x51382b(0x337)](E[_0x51382b(0x266)](0x1))[_0x51382b(0x1d2)](_0x4a86a5=>{const _0x44a8a5=_0x51382b;this['_logService'][_0x44a8a5(0x3f6)](_0x44a8a5(0x265),_0x44a8a5(0x5a7),_0x4a86a5),this[_0x44a8a5(0x2c1)]();});}}catch(_0xf2e504){this[_0x51382b(0x4e4)][_0x51382b(0x273)](_0xf2e504),this[_0x51382b(0x2c1)]();}}[_0x265f71(0x5c7)](_0x5eee19){const _0x281cc4=_0x265f71;this['_logService'][_0x281cc4(0x3f6)]('[CollaborationSessionService]',_0x281cc4(0x354)),_0x5eee19[_0x281cc4(0x22c)]({'cmd':b[_0x281cc4(0x2d5)]}),this[_0x281cc4(0x4fc)]();}['_listenToOfflineEvent'](){const _0xb4918=_0x265f71;window[_0xb4918(0x40a)]('offline',()=>this[_0xb4918(0x36a)]());}[_0x265f71(0x36a)](){const _0x197b11=_0x265f71;this[_0x197b11(0x24a)]=!0x1,this['_candidateSocket']=null,this[_0x197b11(0x32c)][_0x197b11(0x53f)](H[_0x197b11(0x4f3)]),this[_0x197b11(0x248)][_0x197b11(0x53f)](null),this['_clearTimeoutTimer'](),this[_0x197b11(0x450)]();}['_onConnectionFailed'](){const _0x3b7a7f=_0x265f71;var _0x4d337a;this['_onOffline'](),this[_0x3b7a7f(0x414)]<((_0x4d337a=this[_0x3b7a7f(0x26f)][_0x3b7a7f(0x572)](It))!=null?_0x4d337a:ts)?(this[_0x3b7a7f(0x4dd)][_0x3b7a7f(0x508)]({'key':_0x3b7a7f(0x58c),'type':X[_0x3b7a7f(0x28b)]['Warning'],'content':this[_0x3b7a7f(0x315)]['t'](_0x3b7a7f(0x209))}),this['_tryReconnect']()):this[_0x3b7a7f(0x4dd)][_0x3b7a7f(0x508)]({'key':_0x3b7a7f(0x58c),'type':X['MessageType'][_0x3b7a7f(0x22a)],'content':this['_localeService']['t'](_0x3b7a7f(0x343))});}['_listenToOnlineEvent'](){const _0x5984e6=_0x265f71,_0x344f24=()=>{const _0xd124fb=_0x5b21;this[_0xd124fb(0x371)]||this[_0xd124fb(0x393)]();},_0x5a838e=()=>{const _0x3bd325=_0x5b21;this[_0x3bd325(0x371)]||document['visibilityState']===_0x3bd325(0x49b)||this[_0x3bd325(0x393)]();};window[_0x5984e6(0x40a)]('online',_0x344f24),document['addEventListener'](_0x5984e6(0x283),_0x5a838e);}[_0x265f71(0x408)](){const _0x5bd7e0=_0x265f71;var _0x5777b9;const _0x1418fa=this['_retryCount'],_0xe0b8e9=this[_0x5bd7e0(0x26f)][_0x5bd7e0(0x572)](L),_0x11eb9d=_0x1418fa===0x0?0x0:((_0x5777b9=_0xe0b8e9==null?void 0x0:_0xe0b8e9['retryConnectingInterval'])!=null?_0x5777b9:es)*0x2**_0x1418fa;this[_0x5bd7e0(0x505)]=window[_0x5bd7e0(0x53a)](()=>{const _0x674ab2=_0x5bd7e0;clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this[_0x674ab2(0x5ff)]();},_0x11eb9d),this['_retryCount']+=0x1;}[_0x265f71(0x45a)](_0x5a6bab,_0x45a858){const _0x1a362c=_0x265f71,{cmd:_0x45cf34}=_0x45a858;_0x45cf34===b[_0x1a362c(0x2d5)]&&!this[_0x1a362c(0x24a)]&&(_0x5a6bab[_0x1a362c(0x2d8)]=_0x45a858[_0x1a362c(0x485)][_0x1a362c(0x2d8)],this[_0x1a362c(0x248)][_0x1a362c(0x53f)](_0x5a6bab),this['_status$'][_0x1a362c(0x53f)](H['ONLINE']),this[_0x1a362c(0x24a)]=!0x0,this[_0x1a362c(0x48c)]=null),_0x45cf34===b[_0x1a362c(0x511)]&&this['_clearTimeoutTimer'](),this[_0x1a362c(0x4fc)]();}[_0x265f71(0x4fc)](){const _0x624375=_0x265f71;var _0x3d6827;this[_0x624375(0x450)](),this[_0x624375(0x569)]=window['setTimeout'](()=>this[_0x624375(0x416)](),(_0x3d6827=this['_configService']['getConfig'](ft))!=null?_0x3d6827:Qt);}['_sendHeartbeat'](){const _0x300cd5=_0x265f71;this['_socket'][_0x300cd5(0x22c)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x265f71(0x4a4)](){const _0x48c72e=_0x265f71;var _0x455cc8;this[_0x48c72e(0x2ff)]=window['setTimeout'](()=>this['_onConnectionFailed'](),(_0x455cc8=this[_0x48c72e(0x26f)]['getConfig'](Ge))!=null?_0x455cc8:mt);}['_clearHeartbeatTimer'](){this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x265f71(0x536)](){const _0x103d6b=_0x265f71;this[_0x103d6b(0x2ff)]!=null&&(clearTimeout(this[_0x103d6b(0x2ff)]),this[_0x103d6b(0x2ff)]=null);}},exports[_0x265f71(0x1f2)]=Cs([Z(0x0,a['Inject'](a[_0x265f71(0x1fc)])),Z(0x1,a[_0x265f71(0x599)](a[_0x265f71(0x42a)])),Z(0x2,A[_0x265f71(0x4b2)]),Z(0x3,a['ILogService']),Z(0x4,a[_0x265f71(0x230)]),Z(0x5,Ke)],exports[_0x265f71(0x1f2)]);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R[_0x265f71(0x48f)]((Ue+0x100)['toString'](0x10)['slice'](0x1));function Es(_0x26ef96,_0x322db6=0x0){const _0x2b1ca2=_0x265f71;return(R[_0x26ef96[_0x322db6+0x0]]+R[_0x26ef96[_0x322db6+0x1]]+R[_0x26ef96[_0x322db6+0x2]]+R[_0x26ef96[_0x322db6+0x3]]+'-'+R[_0x26ef96[_0x322db6+0x4]]+R[_0x26ef96[_0x322db6+0x5]]+'-'+R[_0x26ef96[_0x322db6+0x6]]+R[_0x26ef96[_0x322db6+0x7]]+'-'+R[_0x26ef96[_0x322db6+0x8]]+R[_0x26ef96[_0x322db6+0x9]]+'-'+R[_0x26ef96[_0x322db6+0xa]]+R[_0x26ef96[_0x322db6+0xb]]+R[_0x26ef96[_0x322db6+0xc]]+R[_0x26ef96[_0x322db6+0xd]]+R[_0x26ef96[_0x322db6+0xe]]+R[_0x26ef96[_0x322db6+0xf]])[_0x2b1ca2(0x487)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x12101d=_0x265f71;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x12101d(0x2f7)]&&crypto[_0x12101d(0x2f7)][_0x12101d(0x47e)](crypto),!Se))throw new Error(_0x12101d(0x229));return Se(bs);}var Rs=typeof crypto<'u'&&crypto[_0x265f71(0x534)]&&crypto[_0x265f71(0x534)]['bind'](crypto);const st={'randomUUID':Rs};function Os(_0x8b4979,_0x987f7,_0xe4c0ff){const _0x2bffa9=_0x265f71;if(st[_0x2bffa9(0x534)]&&!_0x987f7&&!_0x8b4979)return st[_0x2bffa9(0x534)]();_0x8b4979=_0x8b4979||{};var _0x793810=_0x8b4979[_0x2bffa9(0x546)]||(_0x8b4979['rng']||Ts)();return _0x793810[0x6]=_0x793810[0x6]&0xf|0x40,_0x793810[0x8]=_0x793810[0x8]&0x3f|0x80,Es(_0x793810);}var Ds=Object[_0x265f71(0x39e)],ys=Object[_0x265f71(0x307)],Us=(_0x573159,_0x2f8fff,_0x2c493a,_0x597e38)=>{const _0x357a59=_0x265f71;for(var _0x2f2113=_0x597e38>0x1?void 0x0:_0x597e38?ys(_0x2f8fff,_0x2c493a):_0x2f8fff,_0x185c4e=_0x573159[_0x357a59(0x2ce)]-0x1,_0x571118;_0x185c4e>=0x0;_0x185c4e--)(_0x571118=_0x573159[_0x185c4e])&&(_0x2f2113=(_0x597e38?_0x571118(_0x2f8fff,_0x2c493a,_0x2f2113):_0x571118(_0x2f2113))||_0x2f2113);return _0x597e38&&_0x2f2113&&Ds(_0x2f8fff,_0x2c493a,_0x2f2113),_0x2f2113;},Pe=(_0x5adf50,_0x453305)=>(_0x39b915,_0x9513eb)=>_0x453305(_0x39b915,_0x9513eb,_0x5adf50);let me=class{constructor(_0x3bb2fc,_0x5d8fac,_0x19f821){const _0x4c16e1=_0x265f71;this[_0x4c16e1(0x555)]=_0x3bb2fc,this[_0x4c16e1(0x21f)]=_0x5d8fac,this[_0x4c16e1(0x320)]=_0x19f821;}[_0x265f71(0x3b9)](_0x302894){const _0x2589a4=_0x265f71;this[_0x2589a4(0x3de)](_0x302894),this[_0x2589a4(0x2c6)](_0x302894);}[_0x265f71(0x51c)](_0x1aef29){const _0x2e6698=_0x265f71,{unitID:_0x39875c}=_0x1aef29,_0x2fe160=this[_0x2e6698(0x320)]['getRenderById'](_0x39875c)['with'](w[_0x2e6698(0x43c)]),{redoCache:_0x423b24}=_0x2fe160[_0x2e6698(0x27a)]();if(_0x423b24['length']===0x0)return _0x1aef29;let _0x3dce0d=a[_0x2e6698(0x2de)]['deepClone'](_0x1aef29[_0x2e6698(0x39f)][0x0]);for(let _0x4152ac=0x0;_0x4152ac<_0x423b24['length'];_0x4152ac++){const _0x543f02={'id':_0x2e6698(0x1d8),'params':{..._0x423b24[_0x4152ac]}},_0x4f5281=this[_0x2e6698(0x21f)][_0x2e6698(0x251)](_0x3dce0d,_0x543f02,!0x1);if(_[_0x2e6698(0x4f2)](_0x4f5281))throw _0x4f5281[_0x2e6698(0x273)];_0x3dce0d=_0x4f5281[_0x2e6698(0x5cc)];}return{...a[_0x2e6698(0x2de)][_0x2e6698(0x47d)](_0x1aef29),'mutations':[_0x3dce0d]};}[_0x265f71(0x3de)](_0x179f2c){const _0x1e5767=_0x265f71,{unitID:_0x4af8b2}=_0x179f2c,_0x1097a7=this[_0x1e5767(0x320)][_0x1e5767(0x522)](_0x4af8b2)[_0x1e5767(0x298)](w[_0x1e5767(0x43c)]),{undoCache:_0x37426e,redoCache:_0x17634a}=_0x1097a7[_0x1e5767(0x27a)]();if(_0x37426e[_0x1e5767(0x2ce)]===0x0||_0x17634a[_0x1e5767(0x2ce)]===0x0)return;const _0x1ce8ab=[],_0x496c20=[];let _0x21e2cf=a['Tools'][_0x1e5767(0x47d)](_0x179f2c[_0x1e5767(0x39f)][0x0]),_0x5d3288=a[_0x1e5767(0x2de)][_0x1e5767(0x47d)](_0x179f2c[_0x1e5767(0x39f)][0x0]);for(let _0x4f023d=_0x37426e['length']-0x1;_0x4f023d>=0x0;_0x4f023d--){const _0x14b4e2={'id':'doc.mutation.rich-text-editing','params':{..._0x37426e[_0x4f023d]}},_0x455c55={'id':_0x1e5767(0x1d8),'params':{..._0x17634a[_0x4f023d]}},_0x581132=this[_0x1e5767(0x21f)][_0x1e5767(0x251)](_0x21e2cf,_0x14b4e2,!0x1),_0x3d0a10=this[_0x1e5767(0x21f)][_0x1e5767(0x251)](_0x5d3288,_0x455c55,!0x1);if(_['isTransformMutationFailure'](_0x581132))throw _0x581132[_0x1e5767(0x273)];if(_[_0x1e5767(0x4f2)](_0x3d0a10))throw _0x3d0a10['error'];_0x1ce8ab[_0x1e5767(0x558)](_0x581132[_0x1e5767(0x482)]['params']),_0x496c20[_0x1e5767(0x558)](_0x3d0a10[_0x1e5767(0x482)][_0x1e5767(0x466)]),_0x21e2cf=_0x581132[_0x1e5767(0x5cc)],_0x5d3288=_0x3d0a10[_0x1e5767(0x5cc)];}_0x1097a7[_0x1e5767(0x32a)]({'undoCache':_0x1ce8ab,'redoCache':_0x496c20});}['_transformPreviousActiveRange'](_0x29f05d){const _0x172baf=_0x265f71,{unitID:_0x1cdb52}=_0x29f05d,_0x1a9ba7=this[_0x172baf(0x320)][_0x172baf(0x522)](_0x1cdb52)[_0x172baf(0x298)](w[_0x172baf(0x43c)]),_0x41ec35=_0x1a9ba7[_0x172baf(0x5ab)]();if(_0x41ec35==null)return;const _0xa5596c=[{'id':_0x172baf(0x1d8),'params':{'unitId':_0x29f05d[_0x172baf(0x597)],'actions':null,'textRanges':[_0x41ec35]}}],_0x28a776=this['_transformService']['transformMutationsWithChangeset'](_0x29f05d,_0xa5596c);if(!_['isTransformMutationsWithChangesetSuccess'](_0x28a776))throw _0x28a776['error'];const _0x126b69=_0x28a776[_0x172baf(0x482)][0x0][_0x172baf(0x466)][_0x172baf(0x21b)];Array[_0x172baf(0x235)](_0x126b69)&&_0x126b69['length']&&_0x1a9ba7[_0x172baf(0x323)](_0x126b69[0x0]);}};me=Us([Pe(0x0,a[_0x265f71(0x599)](a['Injector'])),Pe(0x1,_['ITransformService']),Pe(0x2,O['IRenderManagerService'])],me);var Ps=Object[_0x265f71(0x39e)],ws=Object[_0x265f71(0x307)],Ns=(_0xc3e7e8,_0xf05392,_0x45e383,_0x2b3216)=>{const _0x1c01fc=_0x265f71;for(var _0x2fff8a=_0x2b3216>0x1?void 0x0:_0x2b3216?ws(_0xf05392,_0x45e383):_0xf05392,_0x5d2a65=_0xc3e7e8[_0x1c01fc(0x2ce)]-0x1,_0x3a67e4;_0x5d2a65>=0x0;_0x5d2a65--)(_0x3a67e4=_0xc3e7e8[_0x5d2a65])&&(_0x2fff8a=(_0x2b3216?_0x3a67e4(_0xf05392,_0x45e383,_0x2fff8a):_0x3a67e4(_0x2fff8a))||_0x2fff8a);return _0x2b3216&&_0x2fff8a&&Ps(_0xf05392,_0x45e383,_0x2fff8a),_0x2fff8a;},ce=(_0x2d9468,_0x205465)=>(_0x4126d6,_0x1315e6)=>_0x205465(_0x4126d6,_0x1315e6,_0x2d9468);exports['LocalCacheService']=class extends a[_0x265f71(0x1d4)]{constructor(_0x2d86fc,_0x4554e9,_0xee8cae,_0x1be189,_0x44739b){const _0x4d910a=_0x265f71;super(),u(this,_0x4d910a(0x2cc),new Map()),u(this,_0x4d910a(0x261),new Map()),u(this,_0x4d910a(0x5a4),!0x1),(this['_configService']=_0x2d86fc,this['_localStorageService']=_0x4554e9,this['_beforeCloseService']=_0xee8cae,this['_localeService']=_0x1be189,this[_0x4d910a(0x4f8)]=_0x44739b,this[_0x4d910a(0x4ba)]());}[_0x265f71(0x2c8)](){const _0x3f04e8=_0x265f71;this[_0x3f04e8(0x5a4)]=!0x0;}[_0x265f71(0x30f)](){const _0x446251=_0x265f71;this[_0x446251(0x5a4)]=!0x1;}[_0x265f71(0x456)](){const _0x465581=_0x265f71;this[_0x465581(0x544)]()[_0x465581(0x473)](()=>super[_0x465581(0x456)]());}async['loadOfflineData'](_0x483a19){const _0x4e4765=_0x265f71;return this[_0x4e4765(0x5a4)]?null:this[_0x4e4765(0x557)][_0x4e4765(0x3e6)](it(_0x483a19));}async[_0x265f71(0x551)](_0x2b687e,_0x2262be){return!!this['_localStorageService']['setItem'](_0x2b687e,_0x2262be);}['updateOfflineData'](_0xe69f6e,_0x12c807,_0x482065,_0x1759ca){const _0x2ab2c6=_0x265f71,_0x58b5ca=this[_0x2ab2c6(0x4f8)]['getCurrentRevOfUnit'](_0xe69f6e);this['_cachedData'][_0x2ab2c6(0x2c4)](_0xe69f6e,{'unitID':_0xe69f6e,'type':_0x12c807,'awaitingChangeset':_0x482065,'mutations':_0x1759ca,'rev':_0x58b5ca}),this[_0x2ab2c6(0x261)][_0x2ab2c6(0x3c3)](_0xe69f6e)||this[_0x2ab2c6(0x303)](_0xe69f6e);}[_0x265f71(0x303)](_0x38fb08){const _0x2a140d=_0x265f71,_0x2a9988=this[_0x2a140d(0x48e)]();_0x2a9988===0x0?this['_saveCache'](_0x38fb08):this['_saveTaskMap']['set'](_0x38fb08,setTimeout(()=>this[_0x2a140d(0x2f0)](_0x38fb08),_0x2a9988));}['_getSaveTimeout'](){const _0x3a76f8=_0x265f71;var _0x149117;return(_0x149117=this['_configService'][_0x3a76f8(0x572)](pt))!=null?_0x149117:ss;}[_0x265f71(0x2f0)](_0x26ff4b){const _0x1261ff=_0x265f71,_0x40f789=this[_0x1261ff(0x261)][_0x1261ff(0x224)](_0x26ff4b);return _0x40f789!==void 0x0&&window[_0x1261ff(0x50d)](_0x40f789),this['_localStorageService'][_0x1261ff(0x434)](it(_0x26ff4b),this[_0x1261ff(0x2cc)][_0x1261ff(0x224)](_0x26ff4b))[_0x1261ff(0x473)](()=>this[_0x1261ff(0x261)][_0x1261ff(0x1eb)](_0x26ff4b));}async[_0x265f71(0x544)](){const _0x5d1e57=_0x265f71,_0x586231=[];this[_0x5d1e57(0x261)][_0x5d1e57(0x5f9)]((_0x36b51e,_0x19d133)=>{const _0x395e04=_0x5d1e57;window[_0x395e04(0x50d)](_0x36b51e),_0x586231[_0x395e04(0x48f)](this[_0x395e04(0x2f0)](_0x19d133)[_0x395e04(0x473)](()=>{const _0x1453e5=_0x395e04;this[_0x1453e5(0x261)]['delete'](_0x19d133);}));}),await Promise[_0x5d1e57(0x3fd)](_0x586231);}['_setupBeforeClosingHandler'](){const _0x59528c=_0x265f71;this[_0x59528c(0x256)](this[_0x59528c(0x5f0)][_0x59528c(0x58d)](()=>{const _0x563c84=_0x59528c;if(this['_saveTaskMap'][_0x563c84(0x2c2)])return this['_localeService']['t'](_0x563c84(0x262));}));}},exports['LocalCacheService']=Ns([ce(0x0,a[_0x265f71(0x230)]),ce(0x1,a[_0x265f71(0x33d)]),ce(0x2,A[_0x265f71(0x5c0)]),ce(0x3,a[_0x265f71(0x599)](a[_0x265f71(0x42a)])),ce(0x4,a[_0x265f71(0x599)](_[_0x265f71(0x475)]))],exports[_0x265f71(0x573)]);function it(_0x59914b){const _0xd63758=_0x265f71;return _0xd63758(0x26e)+_0x59914b;}var Ms=Object[_0x265f71(0x39e)],As=Object[_0x265f71(0x307)],Ls=(_0x168227,_0x577432,_0x3fa8e6,_0x57b1fb)=>{const _0x171ab5=_0x265f71;for(var _0x4a59e2=_0x57b1fb>0x1?void 0x0:_0x57b1fb?As(_0x577432,_0x3fa8e6):_0x577432,_0x20b6fd=_0x168227[_0x171ab5(0x2ce)]-0x1,_0x3b3f1d;_0x20b6fd>=0x0;_0x20b6fd--)(_0x3b3f1d=_0x168227[_0x20b6fd])&&(_0x4a59e2=(_0x57b1fb?_0x3b3f1d(_0x577432,_0x3fa8e6,_0x4a59e2):_0x3b3f1d(_0x4a59e2))||_0x4a59e2);return _0x57b1fb&&_0x4a59e2&&Ms(_0x577432,_0x3fa8e6,_0x4a59e2),_0x4a59e2;},we=(_0x4b8864,_0x373af9)=>(_0x4b8d21,_0x4784fe)=>_0x373af9(_0x4b8d21,_0x4784fe,_0x4b8864);function js(_0x4e4757){const _0x1af439=_0x265f71,{unitID:_0x2c57d2,mutations:_0x1d2c8c}=_0x4e4757;return{'unitId':_0x2c57d2,'subUnitId':_0x1d2c8c[0x0][_0x1af439(0x466)][_0x1af439(0x345)]};}let Ie=class{constructor(_0x4f4578,_0xb9ce11,_0x2651a7){const _0x5a9e2c=_0x265f71;this[_0x5a9e2c(0x555)]=_0x4f4578,this[_0x5a9e2c(0x21f)]=_0xb9ce11,this[_0x5a9e2c(0x512)]=_0x2651a7;}[_0x265f71(0x498)](_0xbcf7d5){const _0x18b0d8=_0x265f71;var _0x509975,_0xbc6435,_0x3fa8d8,_0x294950;const _0xab7060=this[_0x18b0d8(0x555)][_0x18b0d8(0x224)](C[_0x18b0d8(0x442)]),{unitId:_0x26b216,subUnitId:_0x19d165}=js(_0xbcf7d5),_0x38c736=_0xab7060[_0x18b0d8(0x50f)](_0x26b216)[_0x18b0d8(0x50e)](),_0x646b1a=(_0xbc6435=(_0x509975=this['_instanceService'][_0x18b0d8(0x5ef)](_0x26b216))==null?void 0x0:_0x509975[_0x18b0d8(0x2bc)]())==null?void 0x0:_0xbc6435['getSheetId']();if(_0x38c736[_0x18b0d8(0x2ce)]===0x0||!_0x26b216||!_0x19d165)return;const _0x2367af=[{'id':C[_0x18b0d8(0x31f)]['id'],'params':{'unitId':_0x26b216,'subUnitId':_0x646b1a,'selections':a[_0x18b0d8(0x2de)][_0x18b0d8(0x47d)](_0x38c736)}}],_0x574ff9=this[_0x18b0d8(0x21f)]['transformMutationsWithChangeset'](_0xbcf7d5,_0x2367af);if(!_[_0x18b0d8(0x2dd)](_0x574ff9))throw _0x574ff9[_0x18b0d8(0x273)];const _0x166036=(_0x294950=(_0x3fa8d8=_0x574ff9[_0x18b0d8(0x482)][0x0])==null?void 0x0:_0x3fa8d8[_0x18b0d8(0x466)])==null?void 0x0:_0x294950[_0x18b0d8(0x403)];Array['isArray'](_0x166036)&&_0x166036[_0x18b0d8(0x2ce)]&&this[_0x18b0d8(0x555)]['get'](a[_0x18b0d8(0x596)])[_0x18b0d8(0x336)](C[_0x18b0d8(0x31f)]['id'],{'unitId':_0x26b216,'subUnitId':_0x646b1a,'selections':_0x166036});}};Ie=Ls([we(0x0,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),we(0x1,_[_0x265f71(0x41b)]),we(0x2,a[_0x265f71(0x5ad)])],Ie);const Re=a[_0x265f71(0x4bd)](_0x265f71(0x4ee));var Dt=(_0x206c14=>(_0x206c14[_0x206c14[_0x265f71(0x44f)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x206c14[_0x206c14[_0x265f71(0x219)]=0x1]=_0x265f71(0x219),_0x206c14))(Dt||{});const nt=0x7530,rt='ACTIVE_UNIT_EVENT_CHANNEL';class $s extends a[_0x265f71(0x1d4)]{constructor(){const _0x7e751d=_0x265f71;super(),u(this,_0x7e751d(0x5a5),a[_0x7e751d(0x2de)]['generateRandomId']()),u(this,_0x7e751d(0x5d3),new Set()),u(this,_0x7e751d(0x5c5),new Map()),u(this,_0x7e751d(0x3ae),null),u(this,_0x7e751d(0x300),new Map()),u(this,_0x7e751d(0x5d4),new Map()),this[_0x7e751d(0x211)]();}['dispose'](){const _0x294cfe=_0x265f71;super['dispose'](),this[_0x294cfe(0x300)]['forEach']((_0x247328,_0xf02ddf)=>this[_0x294cfe(0x49c)](_0xf02ddf)),this[_0x294cfe(0x3ae)]&&window[_0x294cfe(0x1ec)](this[_0x294cfe(0x3ae)]);}[_0x265f71(0x460)](_0xc6b8fb){const _0x84dd1d=_0x265f71;return this[_0x84dd1d(0x56e)](_0xc6b8fb)[_0x84dd1d(0x337)](v[_0x84dd1d(0x43f)]());}[_0x265f71(0x28a)](_0x4dec16){const _0x1af727=_0x265f71;this[_0x1af727(0x5d3)]['size']===0x0&&this[_0x1af727(0x3cd)](),this[_0x1af727(0x5d3)]['add'](_0x4dec16),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x4dec16],'isForwarded':!0x1});}[_0x265f71(0x3dd)](_0x1a0ba9){const _0xd45afb=_0x265f71;this['_selfUnitIDs'][_0xd45afb(0x1eb)](_0x1a0ba9),this[_0xd45afb(0x5d3)][_0xd45afb(0x2c2)]===0x0&&this[_0xd45afb(0x3ae)]&&window[_0xd45afb(0x1ec)](this[_0xd45afb(0x3ae)]);}[_0x265f71(0x211)](){const _0x3bf4ae=_0x265f71;this[_0x3bf4ae(0x256)](a['toDisposable'](v[_0x3bf4ae(0x56c)](window,_0x3bf4ae(0x3bb))[_0x3bf4ae(0x1d2)](_0x3fa940=>{const _0x12b360=_0x3bf4ae;if(_0x3fa940['key']!==rt||!_0x3fa940[_0x12b360(0x1e4)])return;const _0x272943=JSON['parse'](_0x3fa940['newValue']);this[_0x12b360(0x49d)](_0x272943);}))),window[_0x3bf4ae(0x40a)](_0x3bf4ae(0x2fb),()=>this[_0x3bf4ae(0x35e)]({'type':0x1,'memberID':this[_0x3bf4ae(0x5a5)],'unitIDs':Array[_0x3bf4ae(0x1f3)](this[_0x3bf4ae(0x5d3)])}));}['_handleEvent'](_0x2aeed3){const _0x18b9b5=_0x265f71;switch(_0x2aeed3[_0x18b9b5(0x38a)]){case 0x0:this['_handleJoinEvent'](_0x2aeed3);break;case 0x1:this['_handleLeaveEvent'](_0x2aeed3);break;case 0x2:this[_0x18b9b5(0x3ba)](_0x2aeed3);break;}}[_0x265f71(0x374)](_0x641e93){const _0x1b317a=_0x265f71,{unitIDs:_0x42ea20,memberID:_0xc3194e,isForwarded:_0x2bfd97}=_0x641e93;_0x42ea20[_0x1b317a(0x5f9)](_0x1f0983=>{const _0x59d7f5=_0x1b317a;if(!_0x2bfd97&&this[_0x59d7f5(0x5c5)][_0x59d7f5(0x3c3)](_0x1f0983)&&this['_ensureSubject'](_0x1f0983)[_0x59d7f5(0x53f)](0x1),!this[_0x59d7f5(0x5c5)][_0x59d7f5(0x3c3)](_0x1f0983)||!this[_0x59d7f5(0x5c5)]['get'](_0x1f0983)[_0x59d7f5(0x3c3)](_0xc3194e)){const _0xbefa16=this[_0x59d7f5(0x5c5)][_0x59d7f5(0x224)](_0x1f0983)||new Set();_0xbefa16['add'](_0xc3194e),this['_unitOnClients'][_0x59d7f5(0x2c4)](_0x1f0983,_0xbefa16),this[_0x59d7f5(0x28c)](_0xc3194e);}}),_0x2bfd97||this[_0x1b317a(0x35e)]({'type':0x0,'memberID':this[_0x1b317a(0x5a5)],'unitIDs':[...this[_0x1b317a(0x5d3)]],'isForwarded':!0x0});}[_0x265f71(0x28c)](_0x4ec11d){const _0x1bd0c8=_0x265f71;this[_0x1bd0c8(0x49c)](_0x4ec11d);const _0x17899d=window[_0x1bd0c8(0x53a)](()=>{const _0x554fd7=_0x1bd0c8;this[_0x554fd7(0x5c5)][_0x554fd7(0x5f9)](_0x5c8b77=>{const _0x408e31=_0x554fd7;_0x5c8b77[_0x408e31(0x1eb)](_0x4ec11d);});},nt*0x2);this[_0x1bd0c8(0x300)][_0x1bd0c8(0x2c4)](_0x4ec11d,_0x17899d);}['_removeClearOtherTimer'](_0xfddd5c){const _0x4b6a5f=_0x265f71;if(this[_0x4b6a5f(0x300)][_0x4b6a5f(0x3c3)](_0xfddd5c)){const _0x23ed24=this[_0x4b6a5f(0x300)][_0x4b6a5f(0x224)](_0xfddd5c);_0x23ed24&&window[_0x4b6a5f(0x50d)](_0x23ed24),this[_0x4b6a5f(0x300)][_0x4b6a5f(0x2c4)](_0xfddd5c,null);}}[_0x265f71(0x4a7)](_0x300cb3){const {memberID:_0x2ae1bd,unitIDs:_0x5c6817}=_0x300cb3;_0x5c6817['forEach'](_0x2bdbf6=>{const _0x5713af=_0x5b21;var _0x6421b;const _0x1425d2=this[_0x5713af(0x5c5)]['get'](_0x2bdbf6);_0x1425d2&&(_0x1425d2['delete'](_0x2ae1bd),(_0x6421b=this[_0x5713af(0x56e)](_0x2bdbf6))==null||_0x6421b['next'](_0x1425d2['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x2ae1bd);}['_handleHeartbeatEvent'](_0x16ccb5){const _0x1c2220=_0x265f71;this[_0x1c2220(0x28c)](_0x16ccb5['memberID']);}[_0x265f71(0x35e)](_0x5cb0fd){const _0x5812bb=_0x265f71;localStorage[_0x5812bb(0x434)](rt,JSON['stringify'](_0x5cb0fd));}[_0x265f71(0x3cd)](){const _0x5bb2ab=_0x265f71;this['_heartbeatTimer']=window[_0x5bb2ab(0x405)](()=>{const _0x59ff4f=_0x5bb2ab;this['_send']({'type':0x2,'memberID':this[_0x59ff4f(0x5a5)]});},nt);}['_ensureSubject'](_0x3cd017){const _0x5bd936=_0x265f71;return this[_0x5bd936(0x5d4)][_0x5bd936(0x3c3)](_0x3cd017)||this[_0x5bd936(0x5d4)][_0x5bd936(0x2c4)](_0x3cd017,new v[(_0x5bd936(0x5e4))](0x0)),this[_0x5bd936(0x5d4)][_0x5bd936(0x224)](_0x3cd017);}}function yt(_0x4ed289){const _0x31cecb=_0x265f71;let _0x182b5f='';for(const _0x22acf5 of _0x4ed289){const {startOffset:_0x537452,endOffset:_0x41c407,isActive:_0x44a4e4}=_0x22acf5;_0x182b5f[_0x31cecb(0x2ce)]&&(_0x182b5f+=','),_0x182b5f+=_0x537452+':'+_0x41c407+':'+(_0x44a4e4?'1':'0');}return _0x182b5f;}function Hs(_0x41c84c){const _0xecfd22=_0x265f71,_0xddf3c6=_0x41c84c[_0xecfd22(0x1e1)](','),_0x2e7ef5=[];for(const _0x7c84dc of _0xddf3c6){const [_0x9a276d,_0x1572c9,_0x286bfd]=_0x7c84dc[_0xecfd22(0x1e1)](':');_0x2e7ef5['push']({'startOffset':Number(_0x9a276d),'endOffset':Number(_0x1572c9),'collapsed':_0x9a276d===_0x1572c9,'isActive':_0x286bfd==='1'});}return _0x2e7ef5['some'](_0x198c0f=>_0x198c0f[_0xecfd22(0x407)])||(_0x2e7ef5[0x0][_0xecfd22(0x407)]=!0x0),_0x2e7ef5;}class qe extends a[_0x265f71(0x459)]{constructor(){const _0x5b4e14=_0x265f71;super(...arguments),u(this,'_collabCursorState$',new v[(_0x5b4e14(0x5e4))](null)),u(this,'collabCursorState$',this[_0x5b4e14(0x58a)]['asObservable']());}[_0x265f71(0x21e)](_0x41053b){const _0x3523dc=_0x265f71,{unitID:_0x3b1aeb,memberID:_0x512230,textRanges:_0x592ea1}=_0x41053b,_0x4efb44=yt(_0x592ea1),_0x5d5be2={'unitID':_0x3b1aeb,'memberID':_0x512230,'selection':_0x4efb44};this['_collabCursorState$'][_0x3523dc(0x53f)](_0x5d5be2);}}var xs=Object['defineProperty'],ks=Object[_0x265f71(0x307)],Bs=(_0x30b9e0,_0x53d496,_0xd83e2f,_0x4abf6c)=>{const _0x2d7de0=_0x265f71;for(var _0x4b42af=_0x4abf6c>0x1?void 0x0:_0x4abf6c?ks(_0x53d496,_0xd83e2f):_0x53d496,_0x4d3631=_0x30b9e0[_0x2d7de0(0x2ce)]-0x1,_0x11d14f;_0x4d3631>=0x0;_0x4d3631--)(_0x11d14f=_0x30b9e0[_0x4d3631])&&(_0x4b42af=(_0x4abf6c?_0x11d14f(_0x53d496,_0xd83e2f,_0x4b42af):_0x11d14f(_0x4b42af))||_0x4b42af);return _0x4abf6c&&_0x4b42af&&xs(_0x53d496,_0xd83e2f,_0x4b42af),_0x4b42af;},ot=(_0x2217ea,_0x14b065)=>(_0x2c36c5,_0x2219ff)=>_0x14b065(_0x2c36c5,_0x2219ff,_0x2217ea);let pe=class{constructor(_0x3b598b,_0x2ff1f4){const _0x4e2787=_0x265f71;this[_0x4e2787(0x555)]=_0x3b598b,this[_0x4e2787(0x21f)]=_0x2ff1f4;}['transformSelections'](_0x5ed3e6){const _0xf310e1=_0x265f71;var _0x168d05;const _0x4e90bc=this[_0xf310e1(0x555)][_0xf310e1(0x224)](se[_0xf310e1(0x292)]),_0x30efb4=(_0x168d05=_0x4e90bc['getDocRanges']())!=null?_0x168d05:[];if(_0x30efb4['length']===0x0)return;const _0x3488c5=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5ed3e6[_0xf310e1(0x597)],'actions':null,'textRanges':_0x30efb4}}],_0x161181=this[_0xf310e1(0x21f)]['transformMutationsWithChangeset'](_0x5ed3e6,_0x3488c5);if(!_[_0xf310e1(0x2dd)](_0x161181))throw _0x161181[_0xf310e1(0x273)];const _0x269d9d=_0x161181[_0xf310e1(0x482)][0x0]['params'][_0xf310e1(0x21b)];Array[_0xf310e1(0x235)](_0x269d9d)&&_0x269d9d[_0xf310e1(0x2ce)]&&_0x4e90bc[_0xf310e1(0x5e0)](_0x269d9d,!0x1);}};pe=Bs([ot(0x0,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),ot(0x1,_[_0x265f71(0x41b)])],pe);const Vs=new Set([C['InsertSheetMutation']['id']]);function at(_0xc33e72,_0x522d52,_0x3f25d1,_0x707ade,_0x438bb0){const _0x4fc8c3=_0x265f71;var _0x1cd6d0,_0x1b92df,_0x3eda8e,_0x141f3d;const _0x3e3850=[];for(const _0x94032f of _0xc33e72)if(Vs[_0x4fc8c3(0x3c3)](_0x94032f['id'])){if(_0x3e3850[_0x4fc8c3(0x2ce)]>0x0)break;_0x3e3850[_0x4fc8c3(0x48f)](_0x94032f);break;}else _0x3e3850[_0x4fc8c3(0x48f)](_0x94032f);const _0x1d9d0a=(_0x1b92df=(_0x1cd6d0=_0x438bb0[_0x4fc8c3(0x4ab)]())==null?void 0x0:_0x1cd6d0[_0x4fc8c3(0x23b)])!=null?_0x1b92df:_0x4fc8c3(0x477),_0x942c1e=(_0x141f3d=(_0x3eda8e=_0x438bb0['getCurrentUser']())==null?void 0x0:_0x3eda8e[_0x4fc8c3(0x2d8)])!=null?_0x141f3d:'unknown';return{'changeset':{'unitID':_0x522d52,'type':_[_0x4fc8c3(0x2b4)](_0x3f25d1['getUnitType'](_0x522d52)),'baseRev':_0x707ade[_0x4fc8c3(0x45d)](_0x522d52),'revision':0x0,'userID':_0x1d9d0a,'memberID':_0x942c1e,'mutations':_0x3e3850},'pendingMutations':_0xc33e72[_0x4fc8c3(0x3b8)](_0x3e3850[_0x4fc8c3(0x2ce)])};}function Ws(_0x361afe,_0x14322f,_0xcb1098,_0x563dda,_0x34a4be){const _0x48845e=_0x265f71;var _0x9ec347,_0x34a413,_0x1af0f5,_0x3d85b5;const _0x74fb10=[_0x361afe[_0x48845e(0x5a3)]((_0x3ee358,_0x2d68e0)=>{const _0x373116=_0x48845e;var _0x384f2d;const {id:_0x9caf99}=_0x3ee358,{id:_0x441bc0,type:_0x5de107}=_0x2d68e0,_0x1b5951=(_0x384f2d=_0x3ee358[_0x373116(0x466)])!=null?_0x384f2d:{'actions':null},_0x486753=_0x2d68e0[_0x373116(0x466)];if(_0x9caf99&&_0x9caf99!==_0x441bc0)throw new Error(_0x373116(0x4aa)+_0x9caf99+_0x373116(0x45c)+_0x441bc0+'.');return{..._0x3ee358,'id':_0x441bc0,'type':_0x5de107,'params':{'unitId':_0x486753[_0x373116(0x3ce)],'textRanges':_0x486753[_0x373116(0x21b)],'actions':a[_0x373116(0x480)]['compose'](_0x1b5951['actions'],_0x486753[_0x373116(0x490)])}};},{})],_0x2907b3=(_0x34a413=(_0x9ec347=_0x34a4be[_0x48845e(0x4ab)]())==null?void 0x0:_0x9ec347['userID'])!=null?_0x34a413:_0x48845e(0x477),_0x2035ed=(_0x3d85b5=(_0x1af0f5=_0x34a4be[_0x48845e(0x4ab)]())==null?void 0x0:_0x1af0f5[_0x48845e(0x2d8)])!=null?_0x3d85b5:_0x48845e(0x477);return{'changeset':{'unitID':_0x14322f,'type':_[_0x48845e(0x2b4)](_0xcb1098[_0x48845e(0x305)](_0x14322f)),'baseRev':_0x563dda['getCurrentRevOfUnit'](_0x14322f),'revision':0x0,'userID':_0x2907b3,'memberID':_0x2035ed,'mutations':_0x74fb10},'pendingMutations':[]};}const Fs={'id':C['EmptyMutation']['id'],'type':a['CommandType']['MUTATION'],'params':{}};var Gs=Object[_0x265f71(0x39e)],Ys=Object[_0x265f71(0x307)],z=(_0x3f5408,_0x1e46f3,_0x262e32,_0x3f705a)=>{for(var _0x3554d8=_0x3f705a>0x1?void 0x0:_0x3f705a?Ys(_0x1e46f3,_0x262e32):_0x1e46f3,_0x4a1bcb=_0x3f5408['length']-0x1,_0x1b6959;_0x4a1bcb>=0x0;_0x4a1bcb--)(_0x1b6959=_0x3f5408[_0x4a1bcb])&&(_0x3554d8=(_0x3f705a?_0x1b6959(_0x1e46f3,_0x262e32,_0x3554d8):_0x1b6959(_0x3554d8))||_0x3554d8);return _0x3f705a&&_0x3554d8&&Gs(_0x1e46f3,_0x262e32,_0x3554d8),_0x3554d8;},f=(_0x278470,_0xa25d7d)=>(_0x33d427,_0xfe5ea1)=>_0xa25d7d(_0x33d427,_0xfe5ea1,_0x278470),U=(_0x567580=>(_0x567580[_0x265f71(0x5da)]=_0x265f71(0x54d),_0x567580[_0x265f71(0x395)]='synced',_0x567580[_0x265f71(0x3db)]='pending',_0x567580[_0x265f71(0x5db)]=_0x265f71(0x38d),_0x567580[_0x265f71(0x360)]=_0x265f71(0x30e),_0x567580['FETCH_MISS']='fetch_missing',_0x567580[_0x265f71(0x4e2)]='conflict',_0x567580[_0x265f71(0x4f3)]='offline',_0x567580))(U||{});class J{constructor(_0x27debf,_0x41d440,_0x2db578,_0x277c99,_0x464e50,_0x5f0d4b,_0x3b127b,_0x148730,_0x4cd56a){const _0x3e662f=_0x265f71;u(this,_0x3e662f(0x443),null),u(this,'_pendingMutations',[]),(this['unitID']=_0x27debf,this['type']=_0x41d440,this[_0x3e662f(0x3b0)]=_0x464e50,this[_0x3e662f(0x530)]=_0x5f0d4b,this['_undoRedoService']=_0x3b127b,this[_0x3e662f(0x4f8)]=_0x148730,this['_localCacheService']=_0x4cd56a,this[_0x3e662f(0x443)]=_0x2db578,this[_0x3e662f(0x257)]=_0x277c99);}[_0x265f71(0x5b6)](_0x2c14a7){const _0x296692=_0x265f71,_0xa2ef61=this['_revisionService'][_0x296692(0x45d)](this[_0x296692(0x597)]);return _0x2c14a7[_0x296692(0x5b1)]>_0xa2ef61+0x1?(this['_handler'][_0x296692(0x44d)]({'from':_0xa2ef61,'to':_0x2c14a7[_0x296692(0x5b1)]-0x1}),!0x0):!0x1;}[_0x265f71(0x5ec)](_0xb69263){const _0x317139=_0x265f71;this[_0x317139(0x42e)]['transformUndoRedo'](this[_0x317139(0x597)],_0xb69263);}[_0x265f71(0x5cb)](_0x513766){const _0x169dd2=_0x265f71;var _0x49feed,_0x2b75d9;(_0x2b75d9=(_0x49feed=this[_0x169dd2(0x3b0)])['onTransformSelections'])==null||_0x2b75d9[_0x169dd2(0x5ba)](_0x49feed,_0x513766);}[_0x265f71(0x359)](_0x9ac765){const _0x294f91=_0x265f71;var _0x53741b,_0x43f7be;return(_0x43f7be=(_0x53741b=this[_0x294f91(0x3b0)])[_0x294f91(0x23c)])==null?void 0x0:_0x43f7be[_0x294f91(0x5ba)](_0x53741b,_0x9ac765);}[_0x265f71(0x439)](_0x4a3031){const _0xe523c=_0x265f71;var _0xbf7002,_0x9aadcc,_0x23e573;return(_0x23e573=(_0x9aadcc=(_0xbf7002=this['_handler'])[_0xe523c(0x56b)])==null?void 0x0:_0x9aadcc[_0xe523c(0x5ba)](_0xbf7002,_0x4a3031))!=null?_0x23e573:_0x4a3031;}['_syncEditingCollabCursor'](_0x2a02ce){const _0xd36d87=_0x265f71;var _0x3bf6cd,_0x3ede3a;if(this[_0xd36d87(0x38a)]===$[_0xd36d87(0x2d2)]){const {unitID:_0x2a49e0,mutations:_0x2eda20,memberID:_0x1338ef}=_0x2a02ce,_0x210086=_0x2eda20[0x0][_0xd36d87(0x466)][_0xd36d87(0x21b)];Array[_0xd36d87(0x235)](_0x210086)&&_0x210086['length']>0x0&&((_0x3ede3a=(_0x3bf6cd=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x3ede3a['call'](_0x3bf6cd,{'unitID':_0x2a49e0,'memberID':_0x1338ef,'textRanges':_0x210086}));}}[_0x265f71(0x586)](){const _0xf4c1db=_0x265f71;this[_0xf4c1db(0x41e)][_0xf4c1db(0x3c5)](this['unitID'],this[_0xf4c1db(0x38a)],this[_0xf4c1db(0x443)],this[_0xf4c1db(0x257)]);}[_0x265f71(0x286)](){const _0x372e07=_0x265f71;return this[_0x372e07(0x4f8)]['getCurrentRevOfUnit'](this[_0x372e07(0x597)]);}['_incrementRevisionNumber'](){const _0x209c6e=_0x265f71;this[_0x209c6e(0x4f8)]['incrementRevOfUnit'](this[_0x209c6e(0x597)]);}[_0x265f71(0x4b4)](_0x29815b){const _0x1eb77b=_0x265f71;var _0x4cfd04;const _0x2adee0=this[_0x1eb77b(0x439)](_0x29815b),_0x39d0dd=a[_0x1eb77b(0x4cc)](_0x2adee0['mutations'],this[_0x1eb77b(0x530)],{'fromCollab':!0x0});if(!_0x39d0dd[_0x1eb77b(0x46e)])throw _0x39d0dd[_0x1eb77b(0x273)]instanceof Error?_0x39d0dd[_0x1eb77b(0x273)]:new Error((_0x4cfd04=_0x39d0dd[_0x1eb77b(0x273)])!=null?_0x4cfd04:'[CollaborationState]:\x20apply\x20error!');this[_0x1eb77b(0x359)](_0x2adee0),this['_transformUndoredo'](_0x29815b),this[_0x1eb77b(0x5cb)](_0x2adee0),this[_0x1eb77b(0x3a0)](_0x2adee0),this['_incrementRevisionNumber']();}}let ie=class extends J{constructor(_0x439c42,_0x2beab1,_0x1f1ca1,_0x9de603,_0x2154e8,_0xc286e7,_0x3aab95,_0x3b147d,_0x56f7b0,_0x39e300){const _0x9b89e7=_0x265f71;super(_0x439c42,_0x2beab1,null,[],_0x1f1ca1,_0x3b147d,_0x3aab95,_0x9de603,_0x2154e8),u(this,_0x9b89e7(0x399),_0x9b89e7(0x451)),(this[_0x9b89e7(0x555)]=_0xc286e7,this['_logService']=_0x56f7b0,this[_0x9b89e7(0x21f)]=_0x39e300);}['appendMutation'](_0x4680c9){const _0x15eb83=_0x265f71,_0x4022ad=this['_injector'][_0x15eb83(0x27f)](k,this['unitID'],this[_0x15eb83(0x38a)],[_0x4680c9],this[_0x15eb83(0x3b0)]);return _0x4022ad['_schedule'](),_0x4022ad[_0x15eb83(0x586)](),_0x4022ad;}['onRemoteChangeset'](_0x20d193){const _0x80698f=_0x265f71;if(this[_0x80698f(0x5b6)](_0x20d193))return this['_injector'][_0x80698f(0x27f)](x,this[_0x80698f(0x597)],this['type'],null,[],null,[_0x20d193],this['_handler']);try{const _0xd6176f=this[_0x80698f(0x21f)][_0x80698f(0x4ae)](_0x20d193,[Fs]);if(_[_0x80698f(0x2dd)](_0xd6176f)){const {c1Prime:_0x57a1aa}=_0xd6176f;return this['_executeRemoteChangeset'](_0x57a1aa),this;}throw _0xd6176f[_0x80698f(0x273)];}catch(_0x4f22f0){return this[_0x80698f(0x4e4)][_0x80698f(0x273)](_0x4f22f0),this[_0x80698f(0x4d7)](!0x1);}}[_0x265f71(0x4d7)](_0x38c60d){const _0x3f9940=_0x265f71;return this['_injector'][_0x3f9940(0x27f)](F,this[_0x3f9940(0x597)],this[_0x3f9940(0x38a)],null,[],this[_0x3f9940(0x3b0)],_0x38c60d);}[_0x265f71(0x325)](){const _0x105d34=_0x265f71;throw new Error(_0x105d34(0x33e));}[_0x265f71(0x216)](){const _0x153eff=_0x265f71;throw new Error(_0x153eff(0x470));}[_0x265f71(0x50a)](){const _0x1268bc=_0x265f71;return this[_0x1268bc(0x555)]['createInstance'](G,this['unitID'],this[_0x1268bc(0x38a)],null,[],this[_0x1268bc(0x3b0)]);}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x584)](){const _0x3ac3dd=_0x265f71;throw new Error(_0x3ac3dd(0x3ea));}[_0x265f71(0x493)](){const _0x1be841=_0x265f71,_0x4c81c9=this[_0x1be841(0x4f8)][_0x1be841(0x45d)](this['unitID']);return this[_0x1be841(0x3b0)][_0x1be841(0x44d)]({'from':_0x4c81c9,'to':0x0}),this[_0x1be841(0x555)][_0x1be841(0x27f)](x,this[_0x1be841(0x597)],this[_0x1be841(0x38a)],null,[],null,[],this['_handler']);}};ie=z([f(0x3,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),f(0x4,a[_0x265f71(0x599)](exports['LocalCacheService'])),f(0x5,a['Inject'](a['Injector'])),f(0x6,a[_0x265f71(0x538)]),f(0x7,a[_0x265f71(0x596)]),f(0x8,a[_0x265f71(0x54c)]),f(0x9,_[_0x265f71(0x41b)])],ie);let k=class extends J{constructor(_0x34ed8e,_0x654e21,_0xfc7c68,_0x27fbb2,_0x5ca089,_0x232afe,_0x45bbc7,_0x6d4b4e,_0x495497,_0x45ad50,_0x55b196,_0x58453d,_0x5ea637,_0x5ac245){const _0x50127a=_0x265f71;super(_0x34ed8e,_0x654e21,null,_0xfc7c68,_0x27fbb2,_0x45ad50,_0x5ac245,_0x232afe,_0x45bbc7),u(this,'status',_0x50127a(0x4c7)),u(this,_0x50127a(0x4b6),null),u(this,_0x50127a(0x503),null),(this['_injector']=_0x5ca089,this['_memberService']=_0x6d4b4e,this['_logService']=_0x495497,this['_configService']=_0x55b196,this[_0x50127a(0x21f)]=_0x58453d,this['_univerInstanceService']=_0x5ea637);}[_0x265f71(0x3e3)](_0x5294bf){const _0x1876c7=_0x265f71;return this[_0x1876c7(0x257)][_0x1876c7(0x48f)](_0x5294bf),this['_updateLocalCache'](),this;}[_0x265f71(0x297)](_0x2cdff3){const _0x158a7a=_0x265f71;if(this[_0x158a7a(0x5b6)](_0x2cdff3))return this[_0x158a7a(0x3a5)](),this['_injector']['createInstance'](x,this[_0x158a7a(0x597)],this[_0x158a7a(0x38a)],null,this['_pendingMutations'],null,[_0x2cdff3],this[_0x158a7a(0x3b0)]);try{const _0x174ce2=this[_0x158a7a(0x21f)][_0x158a7a(0x4ae)](_0x2cdff3,this['_pendingMutations']);if(_[_0x158a7a(0x2dd)](_0x174ce2)){const {c1Prime:_0x4edcdd,m2Prime:_0x3008db}=_0x174ce2;this[_0x158a7a(0x4b4)](_0x4edcdd);const _0x2cce65=this[_0x158a7a(0x555)][_0x158a7a(0x27f)](k,this['unitID'],this[_0x158a7a(0x38a)],_0x3008db,this['_handler']);return this[_0x158a7a(0x3a5)](),_0x2cce65[_0x158a7a(0x53c)](this[_0x158a7a(0x4b6)]?Math[_0x158a7a(0x3d2)](0x0,new Date()[_0x158a7a(0x510)]()-this[_0x158a7a(0x4b6)]):this[_0x158a7a(0x217)]()),_0x2cce65;}throw _0x174ce2[_0x158a7a(0x273)];}catch(_0x3f4d50){return this[_0x158a7a(0x4e4)][_0x158a7a(0x273)](_0x3f4d50),this[_0x158a7a(0x4d7)](!0x1);}}[_0x265f71(0x325)](){const _0x51e02e=_0x265f71;throw new Error(_0x51e02e(0x40b));}['onRemoteRej'](){const _0x4ef63f=_0x265f71;throw new Error(_0x4ef63f(0x293));}[_0x265f71(0x50a)](){const _0x36ee7c=_0x265f71;return this[_0x36ee7c(0x3a5)](),this['_injector']['createInstance'](G,this[_0x36ee7c(0x597)],this[_0x36ee7c(0x38a)],null,this[_0x36ee7c(0x257)],this['_handler']);}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x53c)](_0x4a31b6){const _0x5cca32=_0x265f71,_0x59b2c0=_0x4a31b6!=null?_0x4a31b6:this[_0x5cca32(0x217)]();this[_0x5cca32(0x4b6)]=new Date()[_0x5cca32(0x510)](),this[_0x5cca32(0x503)]=window[_0x5cca32(0x53a)](()=>{const _0x3d2f30=_0x5cca32;this[_0x3d2f30(0x3a5)]();let _0x3433db=null;switch(this[_0x3d2f30(0x38a)]){case $[_0x3d2f30(0x527)]:{_0x3433db=at(this[_0x3d2f30(0x257)],this[_0x3d2f30(0x597)],this[_0x3d2f30(0x4c5)],this[_0x3d2f30(0x4f8)],this[_0x3d2f30(0x452)]);break;}case $[_0x3d2f30(0x2d2)]:{this[_0x3d2f30(0x257)][_0x3d2f30(0x541)](_0x22872c=>_0x22872c['id']===se[_0x3d2f30(0x54b)]['id'])?_0x3433db=Ws(this[_0x3d2f30(0x257)],this['unitID'],this[_0x3d2f30(0x4c5)],this['_revisionService'],this[_0x3d2f30(0x452)]):_0x3433db=at(this[_0x3d2f30(0x257)],this[_0x3d2f30(0x597)],this[_0x3d2f30(0x4c5)],this[_0x3d2f30(0x4f8)],this[_0x3d2f30(0x452)]);break;}default:throw new Error(_0x3d2f30(0x556)+this['type']+_0x3d2f30(0x46d));}const {changeset:_0x479972,pendingMutations:_0x1c0efd}=_0x3433db;this[_0x3d2f30(0x3b0)][_0x3d2f30(0x478)](_0x479972);const _0x5808a5=_0x1c0efd[_0x3d2f30(0x2ce)]?this[_0x3d2f30(0x555)]['createInstance'](B,this[_0x3d2f30(0x597)],this[_0x3d2f30(0x38a)],_0x479972,_0x1c0efd,this[_0x3d2f30(0x3b0)]):this['_injector']['createInstance'](W,this['unitID'],this[_0x3d2f30(0x38a)],_0x479972,this[_0x3d2f30(0x3b0)]);_0x5808a5['_updateLocalCache'](),this[_0x3d2f30(0x3b0)][_0x3d2f30(0x3c1)](this,_0x5808a5);},_0x59b2c0);}[_0x265f71(0x217)](){const _0x5a7b9a=_0x265f71;var _0x182cd0;const _0x3bbce2=this[_0x5a7b9a(0x26f)][_0x5a7b9a(0x572)](L);return(_0x182cd0=_0x3bbce2==null?void 0x0:_0x3bbce2['sendChangesetTimeout'])!=null?_0x182cd0:Jt;}['resend'](){const _0x1c0599=_0x265f71;throw new Error(_0x1c0599(0x231));}[_0x265f71(0x3a5)](){const _0x56a843=_0x265f71;this[_0x56a843(0x503)]!=null&&(clearTimeout(this[_0x56a843(0x503)]),this[_0x56a843(0x503)]=null);}[_0x265f71(0x4d7)](_0x45d6ed){const _0x3faddf=_0x265f71;return this[_0x3faddf(0x3a5)](),this[_0x3faddf(0x555)][_0x3faddf(0x27f)](F,this[_0x3faddf(0x597)],this[_0x3faddf(0x38a)],null,this['_pendingMutations'],this[_0x3faddf(0x3b0)],_0x45d6ed);}};k=z([f(0x4,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),f(0x5,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),f(0x6,a['Inject'](exports[_0x265f71(0x573)])),f(0x7,a[_0x265f71(0x599)](q)),f(0x8,a[_0x265f71(0x54c)]),f(0x9,a['ICommandService']),f(0xa,a[_0x265f71(0x230)]),f(0xb,_['ITransformService']),f(0xc,a[_0x265f71(0x5ad)]),f(0xd,a[_0x265f71(0x538)])],k);let W=class extends J{constructor(_0x1db7a3,_0x55457a,_0x1dca2e,_0x2ed6e7,_0x44535a,_0x22541e,_0x4e04a6,_0x283f1d,_0x22a109,_0x31eb2a,_0x2ebb1a){const _0xe64686=_0x265f71;super(_0x1db7a3,_0x55457a,_0x1dca2e,[],_0x2ed6e7,_0x283f1d,_0x2ebb1a,_0x22541e,_0x4e04a6),u(this,_0xe64686(0x399),'awaiting'),(this[_0xe64686(0x555)]=_0x44535a,this[_0xe64686(0x4e4)]=_0x22a109,this[_0xe64686(0x21f)]=_0x31eb2a);}[_0x265f71(0x3e3)](_0x2c2a91){const _0x4a8777=_0x265f71,_0x8d4024=this[_0x4a8777(0x555)]['createInstance'](B,this[_0x4a8777(0x597)],this[_0x4a8777(0x38a)],this[_0x4a8777(0x443)],[_0x2c2a91],this[_0x4a8777(0x3b0)]);return _0x8d4024[_0x4a8777(0x586)](),_0x8d4024;}[_0x265f71(0x297)](_0x58cd1c){const _0x471d5a=_0x265f71;if(this[_0x471d5a(0x5b6)](_0x58cd1c))return this[_0x471d5a(0x555)]['createInstance'](x,this[_0x471d5a(0x597)],this[_0x471d5a(0x38a)],this[_0x471d5a(0x443)],[],null,[_0x58cd1c],this[_0x471d5a(0x3b0)]);try{const _0x4e3aa9=this[_0x471d5a(0x21f)][_0x471d5a(0x5a8)]([_0x58cd1c],[this[_0x471d5a(0x443)]],!0x1);if(_[_0x471d5a(0x2f2)](_0x4e3aa9)){const {c1Prime:_0x202547,c2Prime:_0x11133f}=_0x4e3aa9;this[_0x471d5a(0x4b4)](_0x202547[0x0]),_0x11133f[0x0]['baseRev']=this['_getCurrentRevision']();const _0x4a08ef=this[_0x471d5a(0x555)][_0x471d5a(0x27f)](W,this[_0x471d5a(0x597)],this[_0x471d5a(0x38a)],_0x11133f[0x0],this['_handler']);return _0x4a08ef[_0x471d5a(0x586)](),_0x4a08ef;}return this[_0x471d5a(0x4d7)](!0x1);}catch(_0x53f047){return this['_logService']['error'](_0x53f047),this[_0x471d5a(0x4d7)](!0x1);}}[_0x265f71(0x325)](_0x542eb2){const _0x99b18a=_0x265f71,_0x3c4d79=this['_revisionService'][_0x99b18a(0x45d)](this[_0x99b18a(0x597)]);if(_0x542eb2[_0x99b18a(0x5b1)]<_0x3c4d79-0x1)return this;if(this['_checkMissing'](_0x542eb2))return this[_0x99b18a(0x555)][_0x99b18a(0x27f)](x,this[_0x99b18a(0x597)],this[_0x99b18a(0x38a)],null,[],this[_0x99b18a(0x443)],[],this[_0x99b18a(0x3b0)]);this[_0x99b18a(0x31a)]();const _0x558dcd=this['_injector'][_0x99b18a(0x27f)](ie,this['unitID'],this[_0x99b18a(0x38a)],this['_handler']);return _0x558dcd['_updateLocalCache'](),_0x558dcd;}[_0x265f71(0x216)](_0x27d320){const _0x2b552f=_0x265f71;return this['_onConflict'](!!(_0x27d320!=null&&_0x27d320[_0x2b552f(0x52a)]));}[_0x265f71(0x50a)](){const _0x463d8b=_0x265f71;return this['_injector'][_0x463d8b(0x27f)](G,this[_0x463d8b(0x597)],this[_0x463d8b(0x38a)],this['_awaitingChangeset'],[],this[_0x463d8b(0x3b0)]);}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x584)](){const _0x2346d9=_0x265f71;this[_0x2346d9(0x3b0)]['onSendChangeset'](this[_0x2346d9(0x443)]);}['_onConflict'](_0x903d95){const _0xf9d768=_0x265f71;return this[_0xf9d768(0x555)][_0xf9d768(0x27f)](F,this[_0xf9d768(0x597)],this[_0xf9d768(0x38a)],this['_awaitingChangeset'],[],this[_0xf9d768(0x3b0)],_0x903d95);}};W=z([f(0x4,a[_0x265f71(0x599)](a['Injector'])),f(0x5,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),f(0x6,a[_0x265f71(0x599)](exports[_0x265f71(0x573)])),f(0x7,a['ICommandService']),f(0x8,a[_0x265f71(0x54c)]),f(0x9,_[_0x265f71(0x41b)]),f(0xa,a[_0x265f71(0x538)])],W);let B=class extends J{constructor(_0xdf7e2c,_0x1bccc4,_0x202749,_0x44f1cf,_0x349c9f,_0x5ab575,_0x5905f3,_0x4d3d8e,_0x1b3cef,_0x378be0,_0x3f757f,_0x41efcd){const _0x51f91e=_0x265f71;super(_0xdf7e2c,_0x1bccc4,_0x202749,_0x44f1cf,_0x349c9f,_0x1b3cef,_0x41efcd,_0x5905f3,_0x4d3d8e),u(this,_0x51f91e(0x399),_0x51f91e(0x30e)),(this[_0x51f91e(0x555)]=_0x5ab575,this['_logService']=_0x378be0,this[_0x51f91e(0x21f)]=_0x3f757f);}[_0x265f71(0x3e3)](_0xce8700){const _0x3b2504=_0x265f71;return this[_0x3b2504(0x257)]['push'](_0xce8700),this;}[_0x265f71(0x297)](_0x5d19c9){const _0x484312=_0x265f71;if(this[_0x484312(0x5b6)](_0x5d19c9))return this['_injector']['createInstance'](x,this['unitID'],this[_0x484312(0x38a)],this[_0x484312(0x443)],this[_0x484312(0x257)],null,[_0x5d19c9],this[_0x484312(0x3b0)]);try{const _0x4a82c1=this[_0x484312(0x21f)][_0x484312(0x5a8)]([_0x5d19c9],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x4a82c1)){const {c1Prime:_0x4e17c3,c2Prime:_0x3d1550}=_0x4a82c1,_0x17e2e4=this[_0x484312(0x21f)]['transformMutationsWithChangeset'](_0x4e17c3[0x0],this[_0x484312(0x257)]);if(_[_0x484312(0x2dd)](_0x17e2e4)){const {c1Prime:_0x58d38a,m2Prime:_0x3c0770}=_0x17e2e4;return this[_0x484312(0x4b4)](_0x58d38a),_0x3d1550[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x484312(0x555)][_0x484312(0x27f)](B,this['unitID'],this[_0x484312(0x38a)],_0x3d1550[0x0],_0x3c0770,this[_0x484312(0x3b0)]);}throw _0x17e2e4[_0x484312(0x273)];}throw _0x4a82c1['error'];}catch(_0x170186){return this['_logService'][_0x484312(0x273)](_0x170186),this[_0x484312(0x4d7)](!0x1);}}[_0x265f71(0x325)](_0x1461f0){const _0x1d59b7=_0x265f71;if(this['_checkMissing'](_0x1461f0))return this[_0x1d59b7(0x555)][_0x1d59b7(0x27f)](x,this[_0x1d59b7(0x597)],this[_0x1d59b7(0x38a)],null,this[_0x1d59b7(0x257)],this['_awaitingChangeset'],[],this[_0x1d59b7(0x3b0)]);this['_incrementRevisionNumber']();const _0x430c2b=this[_0x1d59b7(0x555)][_0x1d59b7(0x27f)](k,this['unitID'],this[_0x1d59b7(0x38a)],this[_0x1d59b7(0x257)],this[_0x1d59b7(0x3b0)]);return _0x430c2b[_0x1d59b7(0x53c)](),_0x430c2b[_0x1d59b7(0x586)](),_0x430c2b;}['onRemoteRej'](_0x40b739){const _0x20f4c7=_0x265f71;return this[_0x20f4c7(0x4d7)](!!(_0x40b739!=null&&_0x40b739[_0x20f4c7(0x52a)]));}[_0x265f71(0x50a)](){const _0x28c927=_0x265f71;return this[_0x28c927(0x555)][_0x28c927(0x27f)](G,this['unitID'],this[_0x28c927(0x38a)],this[_0x28c927(0x443)],this[_0x28c927(0x257)],this[_0x28c927(0x3b0)]);}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x584)](){const _0x516f9a=_0x265f71;this[_0x516f9a(0x3b0)][_0x516f9a(0x478)](this[_0x516f9a(0x443)]);}[_0x265f71(0x4d7)](_0x524ab4){const _0xa5517=_0x265f71;return this[_0xa5517(0x555)][_0xa5517(0x27f)](F,this['unitID'],this[_0xa5517(0x38a)],null,this[_0xa5517(0x257)],this[_0xa5517(0x3b0)],_0x524ab4);}};function _0x5b21(_0x548d71,_0x395cdd){const _0x13c0b1=_0x13c0();return _0x5b21=function(_0x5b218c,_0x435063){_0x5b218c=_0x5b218c-0x1d1;let _0x162032=_0x13c0b1[_0x5b218c];return _0x162032;},_0x5b21(_0x548d71,_0x395cdd);}B=z([f(0x5,a['Inject'](a[_0x265f71(0x1fc)])),f(0x6,a[_0x265f71(0x599)](_['RevisionService'])),f(0x7,a[_0x265f71(0x599)](exports[_0x265f71(0x573)])),f(0x8,a[_0x265f71(0x596)]),f(0x9,a['ILogService']),f(0xa,_[_0x265f71(0x41b)]),f(0xb,a['IUndoRedoService'])],B);let F=class extends J{constructor(_0x18c586,_0x31c033,_0xde0cf7,_0x2fdd5f,_0xb58dfc,_0x3dd245=!0x1,_0x4b1fb0,_0x4898bf,_0x2df32e,_0x283843,_0x427821,_0x3b8d5a,_0x2c8050){const _0x2d7524=_0x265f71;super(_0x18c586,_0x31c033,_0xde0cf7,_0x2fdd5f,_0xb58dfc,_0x4898bf,_0x2df32e,_0x427821,_0x283843),u(this,'status',_0x2d7524(0x5f4)),(this[_0x2d7524(0x369)]=_0x3dd245,this['_permissionService']=_0x4b1fb0,this[_0x2d7524(0x315)]=_0x3b8d5a,this[_0x2d7524(0x2c3)]=_0x2c8050,this[_0x2d7524(0x5c6)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x265f71(0x3e3)](){return this;}[_0x265f71(0x297)](){return this;}[_0x265f71(0x325)](){return this;}[_0x265f71(0x216)](){return this;}[_0x265f71(0x50a)](){return this;}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x584)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x265f71(0x1e3)](){const _0x138e0d=_0x265f71;this[_0x138e0d(0x41e)][_0x138e0d(0x3c5)](this['unitID'],this['type'],null,[]);}[_0x265f71(0x5c6)](){const _0xb1a27d=_0x265f71;this[_0xb1a27d(0x369)]?this[_0xb1a27d(0x2c3)][_0xb1a27d(0x508)]({'title':this[_0xb1a27d(0x315)]['t']('permission.title'),'content':this['_localeService']['t'](_0xb1a27d(0x2ee)),'type':_0xb1a27d(0x273),'duration':0x0}):this[_0xb1a27d(0x2c3)][_0xb1a27d(0x508)]({'title':this['_localeService']['t'](_0xb1a27d(0x3f3)),'content':this[_0xb1a27d(0x315)]['t']('conflict.content'),'type':_0xb1a27d(0x273),'duration':0x0});}[_0x265f71(0x21a)](){const _0x5c63f0=_0x265f71;this[_0x5c63f0(0x449)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this[_0x5c63f0(0x597)])['id'],!0x1);}};F=z([f(0x6,a['Inject'](a[_0x265f71(0x2b6)])),f(0x7,a['ICommandService']),f(0x8,a[_0x265f71(0x538)]),f(0x9,a[_0x265f71(0x599)](exports[_0x265f71(0x573)])),f(0xa,a['Inject'](_[_0x265f71(0x475)])),f(0xb,a['Inject'](a[_0x265f71(0x42a)])),f(0xc,A[_0x265f71(0x4d8)])],F);let G=class extends J{constructor(_0x2974e0,_0x2e3176,_0x2e8335,_0x8df924,_0x5cfcac,_0x5f9fcd,_0xe881a1,_0xa4f55,_0x31b5ee,_0x20e063){const _0x42b78e=_0x265f71;super(_0x2974e0,_0x2e3176,_0x2e8335,_0x8df924,_0x5cfcac,_0x31b5ee,_0x20e063,_0xe881a1,_0xa4f55),u(this,_0x42b78e(0x399),_0x42b78e(0x2f8)),this['_injector']=_0x5f9fcd;}['appendMutation'](_0xddf948){const _0x472d61=_0x265f71;return this[_0x472d61(0x257)][_0x472d61(0x48f)](_0xddf948),this['_updateLocalCache'](),this;}[_0x265f71(0x297)](_0x22e67f){const _0x478911=_0x265f71;throw new Error(_0x478911(0x1da));}[_0x265f71(0x325)](){const _0x4852fc=_0x265f71;throw new Error(_0x4852fc(0x4cd));}[_0x265f71(0x216)](){const _0x13a330=_0x265f71;throw new Error(_0x13a330(0x220));}[_0x265f71(0x50a)](){return this;}['toggleOnline'](){const _0x561d70=_0x265f71,{_injector:_0x5a4654,_pendingMutations:_0x46c607,_awaitingChangeset:_0x14005a,unitID:_0x3c60ee,_handler:_0x1833be,type:_0xb85588}=this,_0x129904=Ut(_0x5a4654,_0x3c60ee,_0xb85588,_0x14005a,_0x46c607,_0x1833be);return _0x129904 instanceof k?_0x129904[_0x561d70(0x53c)]():(_0x129904 instanceof B||_0x129904 instanceof W)&&_0x129904['resend'](),_0x129904;}[_0x265f71(0x584)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};G=z([f(0x5,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),f(0x6,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),f(0x7,a[_0x265f71(0x599)](exports['LocalCacheService'])),f(0x8,a[_0x265f71(0x596)]),f(0x9,a['IUndoRedoService'])],G);let x=class extends J{constructor(_0x337992,_0x4aa33a,_0x351698,_0x193123,_0x2f190c,_0x23e130,_0x4260c2,_0x568edc,_0xb3f32d,_0x438c9f,_0x574bc6,_0x1f639b,_0xc662e5,_0x23ec4b){const _0x26369f=_0x265f71;super(_0x337992,_0x4aa33a,_0x351698,_0x193123,_0x4260c2,_0x1f639b,_0xc662e5,_0xb3f32d,_0x438c9f),u(this,_0x26369f(0x399),_0x26369f(0x4c3)),(this[_0x26369f(0x515)]=_0x2f190c,this[_0x26369f(0x3c4)]=_0x23e130,this['_injector']=_0x568edc,this[_0x26369f(0x4e4)]=_0x574bc6,this[_0x26369f(0x21f)]=_0x23ec4b);}[_0x265f71(0x4c6)](_0x3ccf36){const _0x1c1f2e=_0x265f71;try{const _0x57101d=[..._0x3ccf36,...this['_queuedRemoteChangesets']],_0x45f6e7=[this[_0x1c1f2e(0x443)]||this['_acknowledgedAwaitingChangeset']][_0x1c1f2e(0x3a9)](_0x267f29=>!!_0x267f29);let _0x6af93,_0x21f562;if(_0x45f6e7[_0x1c1f2e(0x2ce)]){const _0x21ae4f=this['_transformService'][_0x1c1f2e(0x5a8)](_0x57101d,_0x45f6e7,!0x1);if(!_[_0x1c1f2e(0x2f2)](_0x21ae4f))throw _0x21ae4f['error'];_0x6af93=_0x21ae4f[_0x1c1f2e(0x350)],_0x21f562=_0x21ae4f[_0x1c1f2e(0x27b)];}else _0x6af93=_0x57101d,_0x21f562=[];let _0x42e3d7=this['_pendingMutations'];_0x6af93[_0x1c1f2e(0x5f9)](_0x30c522=>{const _0x272d29=_0x1c1f2e;let _0x24be9c;if(_0x42e3d7[_0x272d29(0x2ce)]){const _0x1ca302=this[_0x272d29(0x21f)]['transformMutationsWithChangeset'](_0x30c522,_0x42e3d7);if(!_[_0x272d29(0x2dd)](_0x1ca302))throw _0x1ca302['error'];_0x24be9c=_0x1ca302['c1Prime'],_0x42e3d7=_0x1ca302['m2Prime'];}else _0x24be9c=_0x30c522;this['_executeRemoteChangeset'](_0x24be9c);}),this[_0x1c1f2e(0x515)]&&this[_0x1c1f2e(0x31a)](),this['_awaitingChangeset']&&_0x21f562['length']&&(_0x21f562[0x0]['baseRev']=this[_0x1c1f2e(0x286)]());let _0x31e028;if(this['_awaitingChangeset']&&_0x42e3d7[_0x1c1f2e(0x2ce)]!==0x0)_0x31e028=this[_0x1c1f2e(0x555)][_0x1c1f2e(0x27f)](B,this['unitID'],this[_0x1c1f2e(0x38a)],_0x21f562[0x0],_0x42e3d7,this[_0x1c1f2e(0x3b0)]);else{if(this[_0x1c1f2e(0x443)]&&_0x42e3d7[_0x1c1f2e(0x2ce)]===0x0)_0x21f562[0x0][_0x1c1f2e(0x33a)]=this[_0x1c1f2e(0x286)](),_0x31e028=this[_0x1c1f2e(0x555)]['createInstance'](W,this['unitID'],this[_0x1c1f2e(0x38a)],_0x21f562[0x0],this[_0x1c1f2e(0x3b0)]);else{if(_0x42e3d7[_0x1c1f2e(0x2ce)]!==0x0){const _0x348b43=this[_0x1c1f2e(0x555)]['createInstance'](k,this[_0x1c1f2e(0x597)],this['type'],_0x42e3d7,this[_0x1c1f2e(0x3b0)]);_0x348b43[_0x1c1f2e(0x53c)](),_0x31e028=_0x348b43;}else _0x31e028=this[_0x1c1f2e(0x555)][_0x1c1f2e(0x27f)](ie,this['unitID'],this['type'],this[_0x1c1f2e(0x3b0)]);}}return _0x31e028[_0x1c1f2e(0x586)](),_0x31e028;}catch(_0x4b4a29){return this[_0x1c1f2e(0x4e4)][_0x1c1f2e(0x273)](_0x1c1f2e(0x3e0),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4b4a29),this[_0x1c1f2e(0x555)]['createInstance'](F,this[_0x1c1f2e(0x597)],this[_0x1c1f2e(0x38a)],this[_0x1c1f2e(0x443)],this[_0x1c1f2e(0x257)],this['_handler'],!0x1);}}['resend'](){const _0x575209=_0x265f71;throw new Error(_0x575209(0x3f1));}[_0x265f71(0x3e3)](_0x37de69){const _0x5e88d4=_0x265f71;return this[_0x5e88d4(0x257)]['push'](_0x37de69),this;}[_0x265f71(0x297)](_0x606ce8){const _0x9ac896=_0x265f71;return this[_0x9ac896(0x3c4)][_0x9ac896(0x48f)](_0x606ce8),this;}[_0x265f71(0x325)](_0x1a26c5){const _0x150872=_0x265f71;if(this[_0x150872(0x443)])return this[_0x150872(0x515)]=this[_0x150872(0x443)],this['_awaitingChangeset']=null,this;throw new Error(_0x150872(0x516));}[_0x265f71(0x216)](_0x4b7c02){const _0x5060f6=_0x265f71;return this[_0x5060f6(0x4d7)](!!(_0x4b7c02!=null&&_0x4b7c02[_0x5060f6(0x52a)]));}['toggleOffline'](){const _0x593461=_0x265f71;return this[_0x593461(0x555)][_0x593461(0x27f)](G,this[_0x593461(0x597)],this[_0x593461(0x38a)],this['_awaitingChangeset'],this[_0x593461(0x257)],this[_0x593461(0x3b0)]);}[_0x265f71(0x38b)](){return this;}[_0x265f71(0x4d7)](_0x105549){const _0xfdb7d7=_0x265f71;return this[_0xfdb7d7(0x555)][_0xfdb7d7(0x27f)](F,this[_0xfdb7d7(0x597)],this[_0xfdb7d7(0x38a)],this[_0xfdb7d7(0x443)],this[_0xfdb7d7(0x257)],this[_0xfdb7d7(0x3b0)],_0x105549);}};x=z([f(0x7,a[_0x265f71(0x599)](a['Injector'])),f(0x8,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),f(0x9,a[_0x265f71(0x599)](exports[_0x265f71(0x573)])),f(0xa,a[_0x265f71(0x54c)]),f(0xb,a[_0x265f71(0x596)]),f(0xc,a[_0x265f71(0x538)]),f(0xd,_['ITransformService'])],x);function Ut(_0xa66080,_0x6a5be2,_0x216162,_0x284969,_0x1766a7,_0x5e5811){const _0x2a3107=_0x265f71;return _0x284969&&_0x1766a7[_0x2a3107(0x2ce)]?_0xa66080['createInstance'](B,_0x6a5be2,_0x216162,_0x284969,_0x1766a7,_0x5e5811):_0x284969?_0xa66080[_0x2a3107(0x27f)](W,_0x6a5be2,_0x216162,_0x284969,_0x5e5811):_0x1766a7['length']?_0xa66080[_0x2a3107(0x27f)](k,_0x6a5be2,_0x216162,_0x1766a7,_0x5e5811):_0xa66080[_0x2a3107(0x27f)](ie,_0x6a5be2,_0x216162,_0x5e5811);}var Ks=Object[_0x265f71(0x39e)],Xs=Object[_0x265f71(0x307)],ze=(_0x3a28a5,_0x4f5bc2,_0x2ba6ea,_0x1978f8)=>{const _0x39f869=_0x265f71;for(var _0x12022c=_0x1978f8>0x1?void 0x0:_0x1978f8?Xs(_0x4f5bc2,_0x2ba6ea):_0x4f5bc2,_0x41eba1=_0x3a28a5[_0x39f869(0x2ce)]-0x1,_0x17bc91;_0x41eba1>=0x0;_0x41eba1--)(_0x17bc91=_0x3a28a5[_0x41eba1])&&(_0x12022c=(_0x1978f8?_0x17bc91(_0x4f5bc2,_0x2ba6ea,_0x12022c):_0x17bc91(_0x12022c))||_0x12022c);return _0x1978f8&&_0x12022c&&Ks(_0x4f5bc2,_0x2ba6ea,_0x12022c),_0x12022c;},I=(_0x5170ed,_0x6573ac)=>(_0x533255,_0x2e2507)=>_0x6573ac(_0x533255,_0x2e2507,_0x5170ed);exports[_0x265f71(0x55d)]=class extends a['RxDisposable']{constructor(_0x4806c6,_0x16f524,_0x188136,_0x4f33ec,_0xf7991f,_0xa2bc21,_0x478580,_0xbb0c34,_0x245baa,_0x444756,_0xcac2b,_0x3a9069,_0x19c86e){const _0x589062=_0x265f71;super(),u(this,_0x589062(0x5e7),new v['BehaviorSubject'](null)),u(this,_0x589062(0x548),this[_0x589062(0x5e7)]['asObservable']()),u(this,_0x589062(0x51d)),u(this,'_collaborationPaused',!0x1),u(this,_0x589062(0x2b5),''),u(this,'_changesetReqId',0x0),u(this,_0x589062(0x348),this[_0x589062(0x548)][_0x589062(0x337)](v[_0x589062(0x5e5)](_0x118475=>_0x118475?_0x118475[_0x589062(0x399)]:U[_0x589062(0x4f3)]),v[_0x589062(0x4df)](0x1))),u(this,_0x589062(0x52d),!0x1),u(this,_0x589062(0x2e5),[]),(this[_0x589062(0x597)]=_0x4806c6,this[_0x589062(0x46c)]=_0x16f524,this[_0x589062(0x4b0)]=_0x188136,this[_0x589062(0x555)]=_0x4f33ec,this[_0x589062(0x41e)]=_0xf7991f,this[_0x589062(0x44c)]=_0xa2bc21,this[_0x589062(0x315)]=_0x478580,this['_revisionService']=_0xbb0c34,this[_0x589062(0x4e4)]=_0x245baa,this['_commandService']=_0x444756,this[_0x589062(0x4dd)]=_0xcac2b,this['_permissionService']=_0x3a9069,this['_singleActiveUnitService']=_0x19c86e);}get[_0x265f71(0x423)](){const _0x43ee19=_0x265f71;return this[_0x43ee19(0x51d)];}async[_0x265f71(0x4e6)](){const _0x465b9e=_0x265f71;if(this[_0x465b9e(0x423)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x465b9e(0x211)]();}[_0x265f71(0x1de)](){const _0x551354=_0x265f71;return this[_0x551354(0x2f4)]=!0x0,a[_0x551354(0x526)](()=>{const _0x12f52b=_0x551354;this['_collaborationPaused']=!0x1,this[_0x12f52b(0x2eb)]();});}[_0x265f71(0x421)](_0x124c6d){const _0x5f501e=_0x265f71;this[_0x5f501e(0x51d)]=_0x124c6d,this['_state$']['next'](_0x124c6d);}async[_0x265f71(0x211)](){const _0x32e119=_0x265f71;var _0x534c25;this[_0x32e119(0x421)](await this[_0x32e119(0x260)]()),this[_0x32e119(0x48a)]&&((_0x534c25=this['_singleActiveUnitService'])==null||_0x534c25[_0x32e119(0x28a)](this['unitID']),this[_0x32e119(0x256)](this['_singleActiveUnitService'][_0x32e119(0x460)](this[_0x32e119(0x597)])[_0x32e119(0x1d2)](_0x3ff19f=>{const _0xb7200d=_0x32e119;this['_logService'][_0xb7200d(0x3f6)](_0xb7200d(0x20e),_0xb7200d(0x507),_0x3ff19f),_0x3ff19f===Dt['OTHER_CLIENTS_EDITING']?(this[_0xb7200d(0x4dd)][_0xb7200d(0x508)]({'content':this[_0xb7200d(0x315)]['t'](_0xb7200d(0x4a9)),'type':X[_0xb7200d(0x28b)][_0xb7200d(0x3e7)]}),this[_0xb7200d(0x449)]['updatePermissionPoint'](new C[(_0xb7200d(0x40d))](this[_0xb7200d(0x597)])['id'],!0x1)):this[_0xb7200d(0x449)][_0xb7200d(0x5f6)](new C[(_0xb7200d(0x40d))](this[_0xb7200d(0x597)])['id'],!0x0);})));let _0x5f0bd9=!0x1;return this[_0x32e119(0x256)](this['session'][_0x32e119(0x491)][_0x32e119(0x1d2)](_0x75252f=>{const _0x3fd474=_0x32e119;_0x75252f===H[_0x3fd474(0x40f)]?this[_0x3fd474(0x328)](_0x5f0bd9):_0x75252f===H['OFFLINE']&&(_0x5f0bd9=!0x0,this[_0x3fd474(0x2d4)]());})),this[_0x32e119(0x256)](this[_0x32e119(0x46c)][_0x32e119(0x59e)][_0x32e119(0x1d2)](_0x1bf603=>{const _0x2d86b5=_0x32e119;try{switch(_0x1bf603[_0x2d86b5(0x32e)]){case _['CollaborationEvent'][_0x2d86b5(0x296)]:{this[_0x2d86b5(0x469)](_[_0x2d86b5(0x4c4)](_0x1bf603[_0x2d86b5(0x485)]));break;}case _[_0x2d86b5(0x4d9)]['CHANGESET_ACK']:{this[_0x2d86b5(0x2f1)](_0x1bf603[_0x2d86b5(0x485)]);break;}case _['CollaborationEvent'][_0x2d86b5(0x22f)]:{this[_0x2d86b5(0x1e9)]();break;}case _[_0x2d86b5(0x4d9)][_0x2d86b5(0x4dc)]:{this['_onFetchMissResult'](_0x1bf603[_0x2d86b5(0x485)][_0x2d86b5(0x5f5)][_0x2d86b5(0x5e5)](_0x3e272b=>_['parseProtocolChangeset'](_0x3e272b)));break;}case _[_0x2d86b5(0x4d9)][_0x2d86b5(0x3f8)]:this[_0x2d86b5(0x1e9)]({'isPermissionRej':!0x0});}}catch(_0x46ff1f){throw console[_0x2d86b5(0x273)](_0x2d86b5(0x39c),_0x46ff1f),_0x46ff1f;}})),this[_0x32e119(0x51d)];}[_0x265f71(0x484)](){this['_transitionLocked']=!0x1;}[_0x265f71(0x2fe)](){const _0x14f537=_0x265f71;if(this[_0x14f537(0x52d)])throw new Error(_0x14f537(0x5ea));this[_0x14f537(0x52d)]=!0x0;}[_0x265f71(0x432)](_0x485073){const _0x5e15b8=_0x265f71;this[_0x5e15b8(0x2fe)](),this[_0x5e15b8(0x421)](this[_0x5e15b8(0x51d)]['appendMutation'](_0x485073)),this[_0x5e15b8(0x484)]();}['_onRemoteChangeset'](_0x20cf99){const _0x26bb1d=_0x265f71;if(!(_0x20cf99[_0x26bb1d(0x5b1)]<=this[_0x26bb1d(0x4f8)][_0x26bb1d(0x45d)](this['unitID']))){if(this[_0x26bb1d(0x2f4)]){this['_remoteChangesetQueue'][_0x26bb1d(0x48f)](_0x20cf99);return;}this[_0x26bb1d(0x3df)](_0x20cf99);}}['_exhaustRemoteChangesetQueue'](){const _0x14cb54=_0x265f71;this[_0x14cb54(0x2e5)][_0x14cb54(0x5f9)](_0x147358=>this['_applyRemoteChangeset'](_0x147358)),this[_0x14cb54(0x2e5)]=[];}['_applyRemoteChangeset'](_0x472db7){const _0x233b6c=_0x265f71,_0x25f89f=this['_compressMutationService'][_0x233b6c(0x5b9)][_0x233b6c(0x27c)](this[_0x233b6c(0x44c)][_0x233b6c(0x5b9)][_0x233b6c(0x362)]()['COMPRESS_MUTATION_APPLY'])(_0x472db7[_0x233b6c(0x39f)],null)||_0x472db7[_0x233b6c(0x39f)],_0x13339b={..._0x472db7,'mutations':_0x25f89f};this[_0x233b6c(0x2fe)](),this[_0x233b6c(0x421)](this['_state'][_0x233b6c(0x297)](_0x13339b)),this[_0x233b6c(0x484)]();}[_0x265f71(0x2f1)](_0x508583){const _0xf30c9=_0x265f71;this['_lockTransition'](),this[_0xf30c9(0x421)](this['_state'][_0xf30c9(0x325)](_0x508583)),this[_0xf30c9(0x484)]();}['_onRemoteRejected'](_0x5e084c){const _0x492071=_0x265f71;this[_0x492071(0x2fe)](),this[_0x492071(0x421)](this[_0x492071(0x51d)][_0x492071(0x216)](_0x5e084c)),this['_unlockTransition']();}[_0x265f71(0x57f)](_0x155e6a){const _0x561934=_0x265f71;if(!(this[_0x561934(0x51d)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x2af957=_0x155e6a[_0x561934(0x5e5)](_0x2fb2ed=>{const _0x420548=_0x561934,_0x43eb9f=this[_0x420548(0x44c)]['interceptor'][_0x420548(0x27c)](this[_0x420548(0x44c)][_0x420548(0x5b9)]['getInterceptPoints']()[_0x420548(0x240)])(_0x2fb2ed[_0x420548(0x39f)],null)||_0x2fb2ed[_0x420548(0x39f)];return{..._0x2fb2ed,'mutations':_0x43eb9f};});this[_0x561934(0x2fe)](),this[_0x561934(0x421)](this[_0x561934(0x51d)][_0x561934(0x4c6)](_0x2af957)),this[_0x561934(0x484)]();}[_0x265f71(0x2d4)](){const _0x4e2ee0=_0x265f71;this[_0x4e2ee0(0x2fe)](),this[_0x4e2ee0(0x421)](this[_0x4e2ee0(0x51d)][_0x4e2ee0(0x50a)]()),this[_0x4e2ee0(0x484)]();}[_0x265f71(0x328)](_0xab1318=!0x1){const _0x4ce7f3=_0x265f71;this[_0x4ce7f3(0x2fe)](),this[_0x4ce7f3(0x421)](this[_0x4ce7f3(0x51d)][_0x4ce7f3(0x38b)]()),this['_unlockTransition']();const _0x6f3183=this[_0x4ce7f3(0x51d)];_0xab1318&&_0x6f3183 instanceof ie&&(this[_0x4ce7f3(0x2fe)](),this[_0x4ce7f3(0x421)](_0x6f3183[_0x4ce7f3(0x493)]()),this[_0x4ce7f3(0x484)]());}async['_createInitialState'](){return new Promise(_0x20f8f0=>{const _0x8fadc=_0x5b21;this[_0x8fadc(0x46c)]['sessionStatus$']['pipe'](v[_0x8fadc(0x266)](0x1))[_0x8fadc(0x1d2)](async _0x55816a=>{const _0x5b47a4=_0x8fadc;_0x20f8f0(await this[_0x5b47a4(0x497)](_0x55816a===H[_0x5b47a4(0x40f)]));});});}[_0x265f71(0x1fb)](){const _0x3d96b1=_0x265f71,_0x2fe1e7=this[_0x3d96b1(0x597)];return{'onStateChange':(_0x260b89,_0x427696)=>{const _0x4b1bf1=_0x3d96b1;if(_0x260b89!==this[_0x4b1bf1(0x51d)])throw new Error(_0x4b1bf1(0x2e3)+_0x260b89[_0x4b1bf1(0x399)]+_0x4b1bf1(0x4be)+_0x427696[_0x4b1bf1(0x399)]+_0x4b1bf1(0x2e9)+this[_0x4b1bf1(0x51d)][_0x4b1bf1(0x399)]);this[_0x4b1bf1(0x421)](_0x427696);},'onSendChangeset':_0x1c1afb=>{const _0x3fe3e0=_0x3d96b1;_0x1c1afb[_0x3fe3e0(0x388)]||(_0x1c1afb[_0x3fe3e0(0x388)]=this[_0x3fe3e0(0x2b5)],_0x1c1afb[_0x3fe3e0(0x1f5)]=++this[_0x3fe3e0(0x3a4)]);const _0x2ee167={'eventID':_[_0x3fe3e0(0x4d9)][_0x3fe3e0(0x3c2)],'data':{'unitID':_0x1c1afb['unitID'],'unitType':this['_type'],'changeset':_0x1c1afb,'memberID':this[_0x3fe3e0(0x46c)][_0x3fe3e0(0x3fe)]()}};this['session']['send'](_0x2ee167,this[_0x3fe3e0(0x597)]);},'onMissingChangesets':({from:_0x38768e,to:_0x2c5e02})=>{const _0xa6ac98=_0x3d96b1;this[_0xa6ac98(0x4e4)]['debug']('[CollaborationEntity]',_0xa6ac98(0x518)+_0x38768e+_0xa6ac98(0x36f)+_0x2c5e02);const _0x4e3962={'eventID':_[_0xa6ac98(0x4d9)][_0xa6ac98(0x4ec)],'data':{'unitID':_0x2fe1e7,'unitType':this[_0xa6ac98(0x4b0)],'from':_0x38768e,'to':_0x2c5e02}};this[_0xa6ac98(0x46c)][_0xa6ac98(0x22c)](_0x4e3962,this['unitID']);}};}async[_0x265f71(0x497)](_0x391a22){const _0x1a3a42=_0x265f71;var _0x16d47c,_0x22f760;const _0x1122f3=await this[_0x1a3a42(0x41e)]['loadOfflineData'](this[_0x1a3a42(0x597)]),_0x4788b6=(_0x16d47c=_0x1122f3==null?void 0x0:_0x1122f3[_0x1a3a42(0x39f)])!=null?_0x16d47c:[],_0x1af111=(_0x22f760=_0x1122f3==null?void 0x0:_0x1122f3[_0x1a3a42(0x2ad)])!=null?_0x22f760:null,_0x540a2e=!!(_0x1af111!=null&&_0x1af111[_0x1a3a42(0x388)])&&!!(_0x1af111!=null&&_0x1af111[_0x1a3a42(0x1f5)]);this['_changesetSessionId']=_0x540a2e?_0x1af111[_0x1a3a42(0x388)]:Os(),this[_0x1a3a42(0x3a4)]=_0x540a2e?_0x1af111[_0x1a3a42(0x1f5)]:0x0;const _0x36ad57=this[_0x1a3a42(0x597)];try{this['_replayCachedMutations'](_0x1af111,_0x4788b6);}catch(_0x130b72){this['_logService'][_0x1a3a42(0x273)](_0x130b72);}const _0x568569=this[_0x1a3a42(0x1fb)]();if(_0x391a22){const _0x4ec6b6=Ut(this[_0x1a3a42(0x555)],_0x36ad57,this[_0x1a3a42(0x4b0)],_0x1af111,_0x4788b6,_0x568569);return _0x4ec6b6 instanceof k?_0x4ec6b6[_0x1a3a42(0x53c)]():(_0x4ec6b6 instanceof B||_0x4ec6b6 instanceof W)&&_0x4ec6b6[_0x1a3a42(0x584)](),_0x4ec6b6;}return this[_0x1a3a42(0x555)][_0x1a3a42(0x27f)](G,_0x36ad57,this[_0x1a3a42(0x4b0)],_0x1af111,_0x4788b6,_0x568569);}[_0x265f71(0x250)](_0x334dca,_0x2c4fa9){const _0x349280=_0x265f71;var _0x34fced,_0xdf585c;const _0x4a8245=this[_0x349280(0x44c)]['interceptor'][_0x349280(0x27c)](this[_0x349280(0x44c)][_0x349280(0x5b9)][_0x349280(0x362)]()['COMPRESS_MUTATION_APPLY']);(_0x34fced=_0x4a8245((_0x334dca==null?void 0x0:_0x334dca[_0x349280(0x39f)])||[],null))==null||_0x34fced[_0x349280(0x5f9)](_0xe54c7b=>this[_0x349280(0x530)][_0x349280(0x336)](_0xe54c7b['id'],_0xe54c7b[_0x349280(0x466)])),(_0xdf585c=_0x4a8245(_0x2c4fa9||[],null))==null||_0xdf585c['forEach'](_0x5edce6=>this['_commandService'][_0x349280(0x336)](_0x5edce6['id'],_0x5edce6[_0x349280(0x466)]));}},exports[_0x265f71(0x55d)]=ze([I(0x3,a['Inject'](a['Injector'])),I(0x4,a[_0x265f71(0x599)](exports[_0x265f71(0x573)])),I(0x5,a['Inject'](_[_0x265f71(0x47a)])),I(0x6,a['Inject'](a[_0x265f71(0x42a)])),I(0x7,a['Inject'](_[_0x265f71(0x475)])),I(0x8,a[_0x265f71(0x54c)]),I(0x9,a['ICommandService']),I(0xa,A[_0x265f71(0x4b2)]),I(0xb,a[_0x265f71(0x2b6)]),I(0xc,a[_0x265f71(0x3a3)](Re))],exports[_0x265f71(0x55d)]),exports[_0x265f71(0x5a0)]=class extends exports[_0x265f71(0x55d)]{constructor(_0x45048c,_0x58cf82,_0x4fbef2,_0x320752,_0x58b62d,_0x582415,_0x3878b1,_0x3f45dd,_0x185fa1,_0x4c54dc,_0x52ae90,_0x19e6c4,_0x11b0af,_0x14acb1,_0x311e1c,_0x2717d0,_0x2f61db){const _0x3812f2=_0x265f71;super(_0x45048c,_0x4fbef2,_0x58cf82,_0x320752,_0x58b62d,_0x582415,_0x3878b1,_0x3f45dd,_0x11b0af,_0x14acb1,_0x311e1c,_0x2717d0,_0x2f61db),this[_0x3812f2(0x597)]=_0x45048c,this['type']=_0x58cf82,this[_0x3812f2(0x2db)]=_0x185fa1,this[_0x3812f2(0x461)]=_0x4c54dc,this['_docTransformSelectionsService']=_0x52ae90,this[_0x3812f2(0x422)]=_0x19e6c4;}[_0x265f71(0x1fb)](){const _0x3346e6=_0x265f71,_0x493b34=super[_0x3346e6(0x1fb)]();return _0x493b34[_0x3346e6(0x23c)]=_0x1bd070=>this[_0x3346e6(0x461)]['transformIMECache'](_0x1bd070),_0x493b34['onTransformSelections']=_0x34c802=>this[_0x3346e6(0x553)][_0x3346e6(0x498)](_0x34c802),_0x493b34[_0x3346e6(0x468)]=_0x1ee8df=>this[_0x3346e6(0x422)][_0x3346e6(0x21e)](_0x1ee8df),_0x493b34[_0x3346e6(0x56b)]=_0x35ce1e=>this[_0x3346e6(0x461)][_0x3346e6(0x51c)](_0x35ce1e),_0x493b34;}async['_init'](){const _0x1672b7=_0x265f71,_0x565c7c=await super[_0x1672b7(0x211)]();return this[_0x1672b7(0x2db)][_0x1672b7(0x3b2)][_0x1672b7(0x337)](v[_0x1672b7(0x321)](this[_0x1672b7(0x3e4)]))[_0x1672b7(0x1d2)](_0x1a62e1=>{const _0x1ac98b=_0x1672b7;if(_0x1a62e1==null)return;const {unitId:_0x460ce5,redoState:_0x285df8,commandId:_0x2c6a60}=_0x1a62e1;if(_0x460ce5!==this[_0x1ac98b(0x597)])return;const _0x42efce={'id':_0x2c6a60,'type':a['CommandType'][_0x1ac98b(0x4d0)],'params':{'unitId':_0x460ce5,'actions':_0x285df8[_0x1ac98b(0x490)],'textRanges':null}};this[_0x1ac98b(0x432)](_0x42efce);}),_0x565c7c;}},exports[_0x265f71(0x5a0)]=ze([I(0x3,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),I(0x4,a['Inject'](exports[_0x265f71(0x573)])),I(0x5,a[_0x265f71(0x599)](_['CompressMutationService'])),I(0x6,a[_0x265f71(0x599)](a[_0x265f71(0x42a)])),I(0x7,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),I(0x8,a[_0x265f71(0x599)](w[_0x265f71(0x41a)])),I(0x9,a[_0x265f71(0x599)](me)),I(0xa,a[_0x265f71(0x599)](pe)),I(0xb,a[_0x265f71(0x599)](qe)),I(0xc,a[_0x265f71(0x54c)]),I(0xd,a[_0x265f71(0x596)]),I(0xe,A[_0x265f71(0x4b2)]),I(0xf,a['IPermissionService']),I(0x10,a[_0x265f71(0x3a3)](Re))],exports['DocCollaborationEntity']),exports[_0x265f71(0x4b3)]=class extends exports['CollaborationEntity']{constructor(_0x5471ed,_0x48cb5d,_0x5e1242,_0x41c2bb,_0x2a5270,_0x2bb571,_0x40d6ee,_0x14fd74,_0x2546c6,_0x5008c5,_0x348dc7,_0x1b199a,_0x2fc022,_0x16a437){const _0x4a90f6=_0x265f71;super(_0x5471ed,_0x5e1242,_0x48cb5d,_0x41c2bb,_0x2a5270,_0x2bb571,_0x40d6ee,_0x14fd74,_0x5008c5,_0x348dc7,_0x1b199a,_0x2fc022,_0x16a437),this[_0x4a90f6(0x597)]=_0x5471ed,this[_0x4a90f6(0x38a)]=_0x48cb5d,this['_sheetTransformSelectionsService']=_0x2546c6;}[_0x265f71(0x1fb)](){const _0x55ba7b=_0x265f71,_0x4939de=super[_0x55ba7b(0x1fb)]();return _0x4939de['onTransformSelections']=_0x21a1ff=>this[_0x55ba7b(0x45f)][_0x55ba7b(0x498)](_0x21a1ff),_0x4939de;}async[_0x265f71(0x211)](){const _0x17770b=_0x265f71,_0x4ee361=await super['_init']();return this[_0x17770b(0x256)](this[_0x17770b(0x530)]['onCommandExecuted']((_0x3aeace,_0x67ded3)=>{const _0xef7350=_0x17770b;if(_0x3aeace[_0xef7350(0x38a)]!==a[_0xef7350(0x26b)]['MUTATION']||_0x67ded3!=null&&_0x67ded3[_0xef7350(0x3e9)]||_0x67ded3!=null&&_0x67ded3[_0xef7350(0x4d6)])return;const _0x36d069=_0x3aeace['params'];if((_0x36d069==null?void 0x0:_0x36d069[_0xef7350(0x3ce)])!==this[_0xef7350(0x597)])return;const _0x4182c8=_0x3aeace,_0x42df12=this[_0xef7350(0x44c)][_0xef7350(0x5b9)]['fetchThroughInterceptors'](this[_0xef7350(0x44c)][_0xef7350(0x5b9)]['getInterceptPoints']()[_0xef7350(0x322)])([_0x4182c8],null)||[_0x4182c8];this[_0xef7350(0x432)](_0x42df12[0x0]);})),_0x4ee361;}},exports[_0x265f71(0x4b3)]=ze([I(0x3,a['Inject'](a[_0x265f71(0x1fc)])),I(0x4,a['Inject'](exports[_0x265f71(0x573)])),I(0x5,a[_0x265f71(0x599)](_[_0x265f71(0x47a)])),I(0x6,a[_0x265f71(0x599)](a['LocaleService'])),I(0x7,a[_0x265f71(0x599)](_[_0x265f71(0x475)])),I(0x8,a['Inject'](Ie)),I(0x9,a[_0x265f71(0x54c)]),I(0xa,a['ICommandService']),I(0xb,A[_0x265f71(0x4b2)]),I(0xc,a[_0x265f71(0x2b6)]),I(0xd,a[_0x265f71(0x3a3)](Re))],exports[_0x265f71(0x4b3)]);var qs=Object[_0x265f71(0x39e)],zs=Object[_0x265f71(0x307)],Js=(_0x534f3b,_0x56bbca,_0x2a6a69,_0x38cc92)=>{for(var _0x423387=_0x38cc92>0x1?void 0x0:_0x38cc92?zs(_0x56bbca,_0x2a6a69):_0x56bbca,_0x2bcae0=_0x534f3b['length']-0x1,_0x5361d0;_0x2bcae0>=0x0;_0x2bcae0--)(_0x5361d0=_0x534f3b[_0x2bcae0])&&(_0x423387=(_0x38cc92?_0x5361d0(_0x56bbca,_0x2a6a69,_0x423387):_0x5361d0(_0x423387))||_0x423387);return _0x38cc92&&_0x423387&&qs(_0x56bbca,_0x2a6a69,_0x423387),_0x423387;},Ne=(_0x4f9ee3,_0x1cbf2d)=>(_0x454db6,_0x3cb66c)=>_0x1cbf2d(_0x454db6,_0x3cb66c,_0x4f9ee3);exports['CollaborationController']=class extends a[_0x265f71(0x459)]{constructor(_0xe7a90a,_0x182c50,_0x26f13d){const _0x5d2da6=_0x265f71;super(),u(this,'_entities',new Map()),u(this,_0x5d2da6(0x37e),new v[(_0x5d2da6(0x23e))]()),(this[_0x5d2da6(0x555)]=_0xe7a90a,this['_collabSessionService']=_0x182c50,this[_0x5d2da6(0x4c5)]=_0x26f13d,this['_init']());}[_0x265f71(0x456)](){const _0x5bde97=_0x265f71;super[_0x5bde97(0x456)](),this[_0x5bde97(0x59f)][_0x5bde97(0x5f9)](_0x1fcf78=>_0x1fcf78[_0x5bde97(0x456)]()),this[_0x5bde97(0x59f)][_0x5bde97(0x547)]();}[_0x265f71(0x31b)](_0x5b2dee){const _0x12d147=_0x265f71;var _0x1c303d;return(_0x1c303d=this[_0x12d147(0x59f)][_0x12d147(0x224)](_0x5b2dee))!=null?_0x1c303d:null;}[_0x265f71(0x4d1)](_0x1bc266){const _0x27f73a=_0x265f71,_0x213ba4=this[_0x27f73a(0x31b)](_0x1bc266);return _0x213ba4?v['of'](_0x213ba4):this[_0x27f73a(0x37e)][_0x27f73a(0x337)](E[_0x27f73a(0x3a9)](_0x5f930f=>_0x5f930f['unitID']===_0x1bc266));}[_0x265f71(0x211)](){const _0x336a91=_0x265f71;this[_0x336a91(0x4c5)]['getTypeOfUnitAdded$'](a[_0x336a91(0x1f4)][_0x336a91(0x527)])[_0x336a91(0x337)](v['takeUntil'](this[_0x336a91(0x3e4)]),E[_0x336a91(0x327)](0x10))[_0x336a91(0x1d2)](async _0x320751=>{const _0x1a44ab=_0x336a91,_0x4fbd2a=_0x320751[_0x1a44ab(0x4fa)](),_0x5470ad=await this['_startCollaboration'](_0x4fbd2a,$['UNIVER_SHEET']);this[_0x1a44ab(0x59f)][_0x1a44ab(0x2c4)](_0x4fbd2a,_0x5470ad);}),this['_univerInstanceService'][_0x336a91(0x21d)](a[_0x336a91(0x1f4)][_0x336a91(0x2d2)])[_0x336a91(0x337)](v[_0x336a91(0x321)](this[_0x336a91(0x3e4)]),E[_0x336a91(0x327)](0x10))['pipe'](E['filter'](_0x4a75b1=>!_0x4a75b1[_0x336a91(0x4fa)]()['startsWith']('__')))[_0x336a91(0x1d2)](async _0x38adb5=>{const _0x6a0073=_0x336a91,_0x1f6593=_0x38adb5[_0x6a0073(0x4fa)](),_0x4b0388=await this['_startCollaboration'](_0x1f6593,$['UNIVER_DOC']);this[_0x6a0073(0x59f)][_0x6a0073(0x2c4)](_0x1f6593,_0x4b0388);}),v[_0x336a91(0x4cf)](this[_0x336a91(0x4c5)][_0x336a91(0x598)](a[_0x336a91(0x1f4)]['UNIVER_SHEET']),this[_0x336a91(0x4c5)][_0x336a91(0x598)](a['UniverInstanceType'][_0x336a91(0x2d2)]))[_0x336a91(0x337)](v[_0x336a91(0x321)](this[_0x336a91(0x3e4)]))['subscribe'](_0x50b0f9=>{const _0x1977b1=_0x336a91,_0x2ec0d0=_0x50b0f9[_0x1977b1(0x4fa)](),_0x2d0ce9=this[_0x1977b1(0x59f)]['get'](_0x2ec0d0);_0x2d0ce9&&(_0x2d0ce9[_0x1977b1(0x456)](),this['_entities'][_0x1977b1(0x1eb)](_0x2ec0d0));});}async[_0x265f71(0x429)](_0x46d945,_0x10d086){const _0x517207=_0x265f71,_0xf8abe4=await this[_0x517207(0x226)][_0x517207(0x430)](_0x46d945),_0x5608ee=this['_injector'][_0x517207(0x27f)](this['_getCtorByUniverType'](_0x10d086),_0x46d945,_0x10d086,_0xf8abe4);return await _0x5608ee[_0x517207(0x4e6)](),this[_0x517207(0x37e)]['next'](_0x5608ee),_0x5608ee;}[_0x265f71(0x2ed)](_0x5ad117){const _0x63e7a7=_0x265f71;switch(_0x5ad117){case $[_0x63e7a7(0x2d2)]:return exports['DocCollaborationEntity'];case $[_0x63e7a7(0x527)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x63e7a7(0x335)+_0x5ad117);}}},exports['CollaborationController']=Js([Ne(0x0,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),Ne(0x1,a[_0x265f71(0x599)](exports[_0x265f71(0x1f2)])),Ne(0x2,a[_0x265f71(0x5ad)])],exports[_0x265f71(0x208)]);const ct=[_0x265f71(0x585),_0x265f71(0x554),_0x265f71(0x2b0),_0x265f71(0x1f7),_0x265f71(0x279),_0x265f71(0x1d7)];class Je extends a[_0x265f71(0x1d4)]{constructor(){const _0x35cf56=_0x265f71;super(...arguments),u(this,_0x35cf56(0x4e0),new Map()),u(this,_0x35cf56(0x5c8),0x0);}[_0x265f71(0x59a)](_0x1aa08e){const _0x2f9a45=_0x265f71;if(this[_0x2f9a45(0x4e0)]['has'](_0x1aa08e))return this[_0x2f9a45(0x4e0)][_0x2f9a45(0x224)](_0x1aa08e);const _0x468615=ct[this[_0x2f9a45(0x5c8)]];return this[_0x2f9a45(0x5c8)]=(this[_0x2f9a45(0x5c8)]+0x1)%ct[_0x2f9a45(0x2ce)],this[_0x2f9a45(0x4e0)][_0x2f9a45(0x2c4)](_0x1aa08e,_0x468615),_0x468615;}}var Zs=Object[_0x265f71(0x39e)],Qs=Object['getOwnPropertyDescriptor'],ei=(_0x50e1e3,_0x42718e,_0x3f0115,_0x2c04d4)=>{for(var _0x1b5b3b=_0x2c04d4>0x1?void 0x0:_0x2c04d4?Qs(_0x42718e,_0x3f0115):_0x42718e,_0x5abe52=_0x50e1e3['length']-0x1,_0x135419;_0x5abe52>=0x0;_0x5abe52--)(_0x135419=_0x50e1e3[_0x5abe52])&&(_0x1b5b3b=(_0x2c04d4?_0x135419(_0x42718e,_0x3f0115,_0x1b5b3b):_0x135419(_0x1b5b3b))||_0x1b5b3b);return _0x2c04d4&&_0x1b5b3b&&Zs(_0x42718e,_0x3f0115,_0x1b5b3b),_0x1b5b3b;},K=(_0xcd45be,_0x3875db)=>(_0x71745a,_0x158567)=>_0x3875db(_0x71745a,_0x158567,_0xcd45be);const ti=0x12c,si=0x64;let ke=class extends a[_0x265f71(0x459)]{constructor(_0x15bcbf,_0x113743,_0x4cd153,_0xf08777,_0xe10c47,_0x6b05da,_0x1c5129,_0x2c8565,_0x3b763c){const _0x4deeb3=_0x265f71;super(),u(this,_0x4deeb3(0x4d5),!0x1),u(this,'_init',!0x1),u(this,_0x4deeb3(0x436),new v[(_0x4deeb3(0x5e4))](new Map())),u(this,_0x4deeb3(0x358),this[_0x4deeb3(0x436)]['asObservable']()),u(this,'_roomMembers$',new v[(_0x4deeb3(0x5e4))]([])),u(this,_0x4deeb3(0x418),this[_0x4deeb3(0x2f3)]['pipe'](v[_0x4deeb3(0x4a3)](ti))),u(this,_0x4deeb3(0x35a),a[_0x4deeb3(0x424)](_0x33fbc3=>{const _0x53465a=_0x4deeb3,_0x47f98c={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x53465a(0x4b1)][_0x53465a(0x3fe)](),'selection':yt(_0x33fbc3)}};this[_0x53465a(0x4b1)]['send'](_0x47f98c,this[_0x53465a(0x597)]);},si)),(this[_0x4deeb3(0x597)]=_0x15bcbf,this['_session']=_0x113743,this[_0x4deeb3(0x555)]=_0x4cd153,this[_0x4deeb3(0x36b)]=_0xf08777,this[_0x4deeb3(0x452)]=_0xe10c47,this[_0x4deeb3(0x28e)]=_0x6b05da,this[_0x4deeb3(0x21f)]=_0x1c5129,this[_0x4deeb3(0x4c5)]=_0x2c8565,this['_commandService']=_0x3b763c);}get[_0x265f71(0x35c)](){const _0x39995e=_0x265f71;return this['_cursorInfo$'][_0x39995e(0x4bf)]();}get['roomMembers'](){const _0x3033e3=_0x265f71;return this[_0x3033e3(0x2f3)][_0x3033e3(0x4bf)]();}['dispose'](){const _0x1e2149=_0x265f71;super[_0x1e2149(0x456)](),this['_cursorInfo$'][_0x1e2149(0x53f)](new Map()),this[_0x1e2149(0x436)][_0x1e2149(0x4e8)](),this['_roomMembers$'][_0x1e2149(0x53f)]([]),this[_0x1e2149(0x2f3)][_0x1e2149(0x4e8)]();}[_0x265f71(0x4e6)](){const _0x1e33ac=_0x265f71;this[_0x1e33ac(0x211)]||(this[_0x1e33ac(0x211)]=!0x0,this[_0x1e33ac(0x4b1)][_0x1e33ac(0x491)][_0x1e33ac(0x337)](v[_0x1e33ac(0x321)](this[_0x1e33ac(0x3e4)]))[_0x1e33ac(0x1d2)](_0x3c1c97=>{const _0x5bc61d=_0x1e33ac;_0x3c1c97===H['ONLINE']?this[_0x5bc61d(0x328)]():this[_0x5bc61d(0x2d4)]();}),this[_0x1e33ac(0x4b1)]['event$']['pipe'](v[_0x1e33ac(0x321)](this[_0x1e33ac(0x3e4)]))[_0x1e33ac(0x1d2)](_0x5a19cc=>{const _0x35c6f4=_0x1e33ac,_0x35975a=_0x5a19cc[_0x35c6f4(0x32e)];_0x35975a===_[_0x35c6f4(0x4d9)][_0x35c6f4(0x2c5)]&&this[_0x35c6f4(0x4ca)](_0x5a19cc),_0x35975a===_[_0x35c6f4(0x4d9)][_0x35c6f4(0x1ef)]&&this[_0x35c6f4(0x5ac)](_0x5a19cc);}),this[_0x1e33ac(0x256)](this[_0x1e33ac(0x530)][_0x1e33ac(0x295)](_0x50ea2e=>{const _0x5f27f7=_0x1e33ac,_0x292be1=_0x50ea2e[_0x5f27f7(0x466)];_0x292be1!=null&&this[_0x5f27f7(0x4d5)]&&_0x50ea2e['id']===se['SetTextSelectionsOperation']['id']&&_0x292be1['unitId']===this[_0x5f27f7(0x597)]&&_0x292be1[_0x5f27f7(0x39a)]===!0x1&&this['_updateLocalCursor'](_0x292be1[_0x5f27f7(0x567)]);})),this[_0x1e33ac(0x28e)]['collabCursorState$'][_0x1e33ac(0x337)](v[_0x1e33ac(0x321)](this[_0x1e33ac(0x3e4)]))['subscribe'](_0x2267f5=>{const _0x4bbf98=_0x1e33ac;if((_0x2267f5==null?void 0x0:_0x2267f5[_0x4bbf98(0x597)])!==this['unitID'])return;const _0x46b3f7={'eventID':_['CollaborationEvent'][_0x4bbf98(0x2c5)],'data':_0x2267f5};this[_0x4bbf98(0x4ca)](_0x46b3f7);}),this[_0x1e33ac(0x256)](this[_0x1e33ac(0x530)][_0x1e33ac(0x295)](_0x144ac8=>{const _0x441206=_0x1e33ac;if(_0x144ac8[_0x441206(0x466)]==null)return;const _0x431488=_0x144ac8['params'];if(_0x144ac8['id']!==se['RichTextEditingMutation']['id']||_0x431488[_0x441206(0x3ce)]!==this[_0x441206(0x597)])return;const _0x5d3a9f={'id':_0x441206(0x1d8),'params':_0x431488},_0x590930=this[_0x441206(0x35c)];for(const [_0x7286ae,_0x55a53f]of _0x590930){const _0x22a24c={'id':_0x441206(0x1d8),'params':{'unitId':this[_0x441206(0x597)],'actions':null,'textRanges':_0x55a53f[_0x441206(0x567)]}},_0x2692b6=this[_0x441206(0x21f)][_0x441206(0x251)](_0x5d3a9f,_0x22a24c,!0x1);if(_[_0x441206(0x4f2)](_0x2692b6))throw _0x2692b6[_0x441206(0x273)];_0x590930['set'](_0x7286ae,{..._0x55a53f,'ranges':_0x2692b6[_0x441206(0x482)][_0x441206(0x466)]['textRanges']});}queueMicrotask(()=>{const _0x5105f3=_0x441206;this[_0x5105f3(0x436)]['next'](_0x590930);});})));}[_0x265f71(0x4ca)](_0x32e4fe){const _0x4deb9f=_0x265f71;var _0x5932d7,_0x1ca935;const {memberID:_0x52a414,selection:_0x199f8e}=_0x32e4fe[_0x4deb9f(0x485)],_0x509aa5=Hs(_0x199f8e),_0x4bc682=(_0x1ca935=(_0x5932d7=this[_0x4deb9f(0x452)][_0x4deb9f(0x390)](this[_0x4deb9f(0x597)],_0x52a414))==null?void 0x0:_0x5932d7[_0x4deb9f(0x24e)])!=null?_0x1ca935:_0x4deb9f(0x2e0),_0x3d37ca={'color':this[_0x4deb9f(0x36b)][_0x4deb9f(0x59a)](_0x52a414),'name':_0x4bc682,'ranges':_0x509aa5},_0x49de39=this[_0x4deb9f(0x35c)];_0x49de39[_0x4deb9f(0x2c4)](_0x52a414,_0x3d37ca),this[_0x4deb9f(0x436)]['next'](_0x49de39);}[_0x265f71(0x5ac)](_0x454d40){const _0x371af1=_0x265f71,{memberID:_0x2074e7}=_0x454d40[_0x371af1(0x485)],_0x248870=this[_0x371af1(0x35c)];_0x248870['delete'](_0x2074e7),this['_cursorInfo$']['next'](_0x248870);}['_toggleOnline'](){const _0x3837d5=_0x265f71;var _0x311ae7;if(this['_online']=!0x0,((_0x311ae7=this['_univerInstanceService'][_0x3837d5(0x52f)]())==null?void 0x0:_0x311ae7[_0x3837d5(0x4fa)]())!==this[_0x3837d5(0x597)])return;const _0x3b3da2=this[_0x3837d5(0x555)][_0x3837d5(0x224)](se[_0x3837d5(0x292)])[_0x3837d5(0x29c)]();Array[_0x3837d5(0x235)](_0x3b3da2)&&_0x3b3da2[_0x3837d5(0x2ce)]>0x0&&this[_0x3837d5(0x35a)](_0x3b3da2);}[_0x265f71(0x2d4)](){this['_online']=!0x1;}};ke=ei([K(0x2,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),K(0x3,a[_0x265f71(0x599)](Je)),K(0x4,a[_0x265f71(0x599)](q)),K(0x5,a[_0x265f71(0x599)](qe)),K(0x6,_[_0x265f71(0x41b)]),K(0x7,a['IUniverInstanceService']),K(0x8,a[_0x265f71(0x596)])],ke);var ii=Object[_0x265f71(0x39e)],ni=Object['getOwnPropertyDescriptor'],ri=(_0x50e9a1,_0x353b21,_0x317743,_0x441c66)=>{const _0x29bf23=_0x265f71;for(var _0x4375d1=_0x441c66>0x1?void 0x0:_0x441c66?ni(_0x353b21,_0x317743):_0x353b21,_0x2e15e9=_0x50e9a1[_0x29bf23(0x2ce)]-0x1,_0x2537d0;_0x2e15e9>=0x0;_0x2e15e9--)(_0x2537d0=_0x50e9a1[_0x2e15e9])&&(_0x4375d1=(_0x441c66?_0x2537d0(_0x353b21,_0x317743,_0x4375d1):_0x2537d0(_0x4375d1))||_0x4375d1);return _0x441c66&&_0x4375d1&&ii(_0x353b21,_0x317743,_0x4375d1),_0x4375d1;},Q=(_0x329be6,_0x50d469)=>(_0x4d35e4,_0x3aa101)=>_0x50d469(_0x4d35e4,_0x3aa101,_0x329be6);const oi=0x12c,ai=0x64,ci=()=>{let _0x3fa9b6=[],_0x43ca55=!0x1;return _0x3144c4=>{const _0x1bef7d=_0x5b21;_0x3fa9b6[_0x1bef7d(0x48f)](_0x3144c4),_0x43ca55||(_0x43ca55=!0x0,setTimeout(()=>{const _0x4b02ec=_0x1bef7d;_0x3fa9b6[_0x4b02ec(0x5f9)](_0x57932c=>_0x57932c()),_0x3fa9b6=[],_0x43ca55=!0x1;}));};};let Be=class extends a['RxDisposable']{constructor(_0x466f42,_0x311fe6,_0x1e6d9a,_0xc21eed,_0x478aee,_0x82efc,_0x1b000a,_0x5c1161){const _0x208cea=_0x265f71;super(),u(this,_0x208cea(0x4d5),!0x1),u(this,_0x208cea(0x211),!0x1),u(this,'_cursorInfo$',new v['BehaviorSubject'](new Map())),u(this,_0x208cea(0x358),this[_0x208cea(0x436)]['asObservable']()),u(this,_0x208cea(0x2f3),new v[(_0x208cea(0x5e4))]([])),u(this,'roomMembers$',this[_0x208cea(0x2f3)][_0x208cea(0x337)](v[_0x208cea(0x4a3)](oi))),u(this,_0x208cea(0x35a),a['debounce']((_0x169d36,_0x155330)=>{const _0x1ab27a=_0x208cea,_0x4fed96={'eventID':_['CollaborationEvent'][_0x1ab27a(0x2c5)],'data':{'unitID':this[_0x1ab27a(0x597)],'memberID':this[_0x1ab27a(0x4b1)][_0x1ab27a(0x3fe)](),'selection':et[_0x1ab27a(0x545)](_0x169d36,_0x155330[_0x1ab27a(0x361)])}};this[_0x1ab27a(0x4b1)][_0x1ab27a(0x22c)](_0x4fed96,this[_0x1ab27a(0x597)]);},ai)),(this['unitID']=_0x466f42,this['_session']=_0x311fe6,this['_injector']=_0x1e6d9a,this[_0x208cea(0x36b)]=_0xc21eed,this['_memberService']=_0x478aee,this[_0x208cea(0x4c5)]=_0x82efc,this['_commandService']=_0x1b000a,this[_0x208cea(0x3c8)]=_0x5c1161);}get['cursorInfo'](){const _0x38d78c=_0x265f71;return this[_0x38d78c(0x436)][_0x38d78c(0x4bf)]();}get['roomMembers'](){const _0x5776c0=_0x265f71;return this[_0x5776c0(0x2f3)]['getValue']();}[_0x265f71(0x456)](){const _0x5278f3=_0x265f71;super[_0x5278f3(0x456)](),this[_0x5278f3(0x436)][_0x5278f3(0x53f)](new Map()),this['_cursorInfo$'][_0x5278f3(0x4e8)](),this[_0x5278f3(0x2f3)]['next']([]),this[_0x5278f3(0x2f3)]['complete']();}[_0x265f71(0x4e6)](){const _0x5e0a5d=_0x265f71;this[_0x5e0a5d(0x211)]||(this[_0x5e0a5d(0x211)]=!0x0,this[_0x5e0a5d(0x4b1)][_0x5e0a5d(0x491)][_0x5e0a5d(0x337)](v[_0x5e0a5d(0x321)](this[_0x5e0a5d(0x3e4)]))[_0x5e0a5d(0x1d2)](_0x1b4113=>{const _0x2e0760=_0x5e0a5d;_0x1b4113===H[_0x2e0760(0x40f)]?this[_0x2e0760(0x328)]():this[_0x2e0760(0x2d4)]();}),this['_session']['event$'][_0x5e0a5d(0x337)](v[_0x5e0a5d(0x321)](this[_0x5e0a5d(0x3e4)]))['subscribe'](_0x30c972=>{const _0x22dd2a=_0x5e0a5d,_0x359c75=_0x30c972['eventID'];_0x359c75===_[_0x22dd2a(0x4d9)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x30c972),_0x359c75===_[_0x22dd2a(0x4d9)]['USERS_LEAVE']&&this[_0x22dd2a(0x5ac)](_0x30c972);}),this[_0x5e0a5d(0x589)](),this[_0x5e0a5d(0x256)](this[_0x5e0a5d(0x530)][_0x5e0a5d(0x295)](_0x2bbc49=>{const _0x44fa28=_0x5e0a5d;if(this[_0x44fa28(0x4d5)]&&_0x2bbc49['id']===C[_0x44fa28(0x31f)]['id']&&_0x2bbc49['params'][_0x44fa28(0x3ce)]===this[_0x44fa28(0x597)]){const _0x4a7ae5=_0x2bbc49[_0x44fa28(0x466)];this['_updateLocalCursor'](_0x4a7ae5[_0x44fa28(0x345)],_0x4a7ae5[_0x44fa28(0x403)][0x0]);}})));}[_0x265f71(0x4ca)](_0x383946){const _0x307ab2=_0x265f71;var _0x13ded8,_0x101f4e;const {memberID:_0x397ae6,selection:_0x3b622f}=_0x383946['data'],{sheetName:_0x10cda4,range:_0x52c43a}=et[_0x307ab2(0x284)](_0x3b622f),_0x14654a={'name':(_0x101f4e=(_0x13ded8=this['_memberService'][_0x307ab2(0x390)](this[_0x307ab2(0x597)],_0x397ae6))==null?void 0x0:_0x13ded8[_0x307ab2(0x24e)])!=null?_0x101f4e:_0x307ab2(0x2e0),'range':this['_getMergeRange'](_0x10cda4,_0x52c43a),'sheetID':_0x10cda4,'color':this['_colorAssignService'][_0x307ab2(0x59a)](_0x397ae6),'selection':_0x3b622f},_0x3772a9=this['cursorInfo'];_0x3772a9[_0x307ab2(0x2c4)](_0x397ae6,_0x14654a),this[_0x307ab2(0x436)][_0x307ab2(0x53f)](_0x3772a9);}[_0x265f71(0x5ac)](_0x18cef7){const _0x59e8df=_0x265f71,{memberID:_0x137524}=_0x18cef7[_0x59e8df(0x485)],_0x58339f=this[_0x59e8df(0x35c)];_0x58339f[_0x59e8df(0x1eb)](_0x137524),this[_0x59e8df(0x436)][_0x59e8df(0x53f)](_0x58339f);}[_0x265f71(0x2df)](_0x2e6a41,_0x206b5a){const _0x58368f=_0x265f71;var _0x1087c1,_0x5bfd69;const _0x93a8f0=(_0x5bfd69=(_0x1087c1=this[_0x58368f(0x4c5)]['getUniverSheetInstance'](this[_0x58368f(0x597)]))==null?void 0x0:_0x1087c1[_0x58368f(0x587)](_0x2e6a41))==null?void 0x0:_0x5bfd69[_0x58368f(0x4cb)]();return(_0x93a8f0==null?void 0x0:_0x93a8f0[_0x58368f(0x5c4)](_0x18dddb=>a['Rectangle'][_0x58368f(0x3d5)](_0x18dddb,_0x206b5a)))||_0x206b5a;}[_0x265f71(0x589)](){const _0x512246=_0x265f71,_0x5305c4=new a[(_0x512246(0x34c))](),_0x259fbf=ci(),_0x3b3683=()=>{const _0x29e9da=_0x512246;_0x5305c4[_0x29e9da(0x456)]();const _0x1d626e=(_0x4079dd,_0x5328ef,_0x4a2932,_0x50a483)=>{const _0x5f4a2d=_0x29e9da;let _0x94441d=[];switch(_0x4079dd['id']){case C[_0x5f4a2d(0x3a8)]['DeleteRangeMoveLeftCommandId']:{_0x94441d=C[_0x5f4a2d(0x311)](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)][_0x5f4a2d(0x379)]:{_0x94441d=C['handleDeleteRangeMoveUp'](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)][_0x5f4a2d(0x4eb)]:{_0x94441d=C[_0x5f4a2d(0x58e)](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)][_0x5f4a2d(0x2ba)]:{_0x94441d=C['handleInsertRangeMoveDown'](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)]['InsertRangeMoveRightCommandId']:{_0x94441d=C['handleInsertRangeMoveRight'](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)]['InsertRowCommandId']:{_0x94441d=C[_0x5f4a2d(0x5e1)](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)]['MoveRangeCommandId']:{_0x94441d=C['handleMoveRange'](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)][_0x5f4a2d(0x5de)]:{_0x94441d=C['handleIRemoveCol'](_0x4079dd,_0x50a483);break;}case C[_0x5f4a2d(0x3a8)][_0x5f4a2d(0x35d)]:{_0x94441d=C[_0x5f4a2d(0x259)](_0x4079dd,_0x50a483);break;}}const _0x23f74f=C[_0x5f4a2d(0x5ee)](_0x94441d,_0x50a483),_0x1f6a7d=this[_0x5f4a2d(0x35c)][_0x5f4a2d(0x224)](_0x5328ef);if(_0x1f6a7d&&_0x23f74f){const _0x273414={..._0x1f6a7d,'range':_0x23f74f};this['cursorInfo'][_0x5f4a2d(0x2c4)](_0x5328ef,_0x273414),_0x259fbf(()=>{const _0x1a20b8=_0x5f4a2d,_0x16f7d2=this[_0x1a20b8(0x3c8)]['registerRefRange'](_0x23f74f,_0x47fb0c=>(_0x16f7d2[_0x1a20b8(0x456)](),_0x1d626e(_0x47fb0c,_0x5328ef,_0x4a2932,_0x23f74f)));_0x5305c4[_0x1a20b8(0x4bb)](_0x16f7d2);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x4b69e8,_0x5ccd30)=>{const _0x2482ec=_0x29e9da,{range:_0x272194,sheetID:_0x853b49}=_0x4b69e8,_0x334151=this[_0x2482ec(0x3c8)][_0x2482ec(0x351)](_0x272194,_0x3fca57=>(_0x334151[_0x2482ec(0x456)](),_0x1d626e(_0x3fca57,_0x5ccd30,_0x853b49,_0x272194)));_0x5305c4[_0x2482ec(0x4bb)](_0x334151);});};this[_0x512246(0x256)](a[_0x512246(0x526)](this[_0x512246(0x436)][_0x512246(0x1d2)](()=>{_0x3b3683();})));}[_0x265f71(0x328)](){const _0x2a034f=_0x265f71;var _0x227b70,_0x137605;if(this[_0x2a034f(0x4d5)]=!0x0,((_0x227b70=this[_0x2a034f(0x4c5)][_0x2a034f(0x52f)]())==null?void 0x0:_0x227b70[_0x2a034f(0x4fa)]())!==this['unitID'])return;const _0x273f53=(_0x137605=this[_0x2a034f(0x555)][_0x2a034f(0x224)](C[_0x2a034f(0x442)])[_0x2a034f(0x50e)]())==null?void 0x0:_0x137605[0x0],_0x3d3e35=this[_0x2a034f(0x4c5)]['getCurrentUnitForType'](a[_0x2a034f(0x1f4)][_0x2a034f(0x527)])[_0x2a034f(0x2bc)]();_0x273f53&&_0x3d3e35&&this['_updateLocalCursor'](_0x3d3e35[_0x2a034f(0x24d)](),_0x273f53);}[_0x265f71(0x2d4)](){this['_online']=!0x1;}};Be=ri([Q(0x2,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),Q(0x3,a['Inject'](Je)),Q(0x4,a['Inject'](q)),Q(0x5,a[_0x265f71(0x5ad)]),Q(0x6,a[_0x265f71(0x596)]),Q(0x7,a[_0x265f71(0x599)](C['RefRangeService']))],Be);var li=Object['defineProperty'],hi=Object[_0x265f71(0x307)],_i=(_0x45f603,_0x571c23,_0x58ad13,_0x24d031)=>{for(var _0x3f7c95=_0x24d031>0x1?void 0x0:_0x24d031?hi(_0x571c23,_0x58ad13):_0x571c23,_0x2eea9c=_0x45f603['length']-0x1,_0x431895;_0x2eea9c>=0x0;_0x2eea9c--)(_0x431895=_0x45f603[_0x2eea9c])&&(_0x3f7c95=(_0x24d031?_0x431895(_0x571c23,_0x58ad13,_0x3f7c95):_0x431895(_0x3f7c95))||_0x3f7c95);return _0x24d031&&_0x3f7c95&&li(_0x571c23,_0x58ad13,_0x3f7c95),_0x3f7c95;},Me=(_0x42b87c,_0x3045fa)=>(_0x382f4d,_0x3bcb10)=>_0x3045fa(_0x382f4d,_0x3bcb10,_0x42b87c);let ne=class extends a[_0x265f71(0x459)]{constructor(_0x28b05c,_0x6a8f67,_0x310965){const _0x367c8c=_0x265f71;super(),u(this,_0x367c8c(0x59f),new Map()),u(this,_0x367c8c(0x37e),new v[(_0x367c8c(0x23e))]()),(this[_0x367c8c(0x4c5)]=_0x28b05c,this[_0x367c8c(0x555)]=_0x6a8f67,this[_0x367c8c(0x226)]=_0x310965,this[_0x367c8c(0x211)]());}['dispose'](){const _0x2c8f7a=_0x265f71;super[_0x2c8f7a(0x456)](),this['_entityInit$'][_0x2c8f7a(0x4e8)](),this[_0x2c8f7a(0x59f)][_0x2c8f7a(0x5f9)](_0x58b9b5=>_0x58b9b5[_0x2c8f7a(0x456)]());}[_0x265f71(0x574)](_0x314987){const _0x3fd03c=_0x265f71;return this['_entities']['has'](_0x314987)?this['_entities']['get'](_0x314987)[_0x3fd03c(0x358)]:this['_entityInit$']['pipe'](v[_0x3fd03c(0x3a9)](_0x6664f1=>_0x6664f1[_0x3fd03c(0x597)]===_0x314987),v['switchMap'](_0x3e16c3=>_0x3e16c3['cursorInfo$']));}[_0x265f71(0x211)](){const _0x4e4d4d=_0x265f71;this['_univerInstanceService'][_0x4e4d4d(0x21d)](a[_0x4e4d4d(0x1f4)][_0x4e4d4d(0x527)])[_0x4e4d4d(0x337)](v[_0x4e4d4d(0x321)](this[_0x4e4d4d(0x3e4)]))[_0x4e4d4d(0x1d2)](async _0x4aca4c=>{const _0x256081=_0x4e4d4d,_0x44acd4=_0x4aca4c[_0x256081(0x4fa)](),_0x56d0d6=await this[_0x256081(0x54e)](_0x44acd4);this[_0x256081(0x37e)][_0x256081(0x53f)](_0x56d0d6),this['_entities'][_0x256081(0x2c4)](_0x44acd4,_0x56d0d6);}),this[_0x4e4d4d(0x4c5)]['getTypeOfUnitAdded$'](a[_0x4e4d4d(0x1f4)]['UNIVER_DOC'])[_0x4e4d4d(0x337)](v['takeUntil'](this[_0x4e4d4d(0x3e4)]))[_0x4e4d4d(0x337)](v['filter'](_0x402f8a=>!_0x402f8a['getUnitId']()['startsWith']('__')))[_0x4e4d4d(0x1d2)](async _0xe0d409=>{const _0x177f48=_0x4e4d4d,_0x3cca66=_0xe0d409[_0x177f48(0x4fa)](),_0x1daeb3=await this[_0x177f48(0x282)](_0x3cca66);this[_0x177f48(0x37e)][_0x177f48(0x53f)](_0x1daeb3),this[_0x177f48(0x59f)][_0x177f48(0x2c4)](_0x3cca66,_0x1daeb3);}),v[_0x4e4d4d(0x4cf)](this['_univerInstanceService'][_0x4e4d4d(0x598)](a['UniverInstanceType']['UNIVER_DOC']),this[_0x4e4d4d(0x4c5)][_0x4e4d4d(0x598)](a[_0x4e4d4d(0x1f4)]['UNIVER_SHEET']))[_0x4e4d4d(0x337)](v[_0x4e4d4d(0x321)](this[_0x4e4d4d(0x3e4)]))[_0x4e4d4d(0x1d2)](_0x2106c4=>{const _0x4302e4=_0x4e4d4d,_0x224a63=_0x2106c4['getUnitId'](),_0x3af5bc=this[_0x4302e4(0x59f)][_0x4302e4(0x224)](_0x224a63);_0x3af5bc&&(_0x3af5bc[_0x4302e4(0x456)](),this[_0x4302e4(0x59f)]['delete'](_0x224a63));});}async['_startSheetCollabCursor'](_0x56e76d){const _0x137b03=_0x265f71,_0x2ac14c=await this[_0x137b03(0x226)][_0x137b03(0x430)](_0x56e76d),_0x54dc83=this[_0x137b03(0x555)]['createInstance'](Be,_0x56e76d,_0x2ac14c);return _0x54dc83['init'](),_0x54dc83;}async[_0x265f71(0x282)](_0x1821e4){const _0x444998=_0x265f71,_0x7b30c=await this[_0x444998(0x226)][_0x444998(0x430)](_0x1821e4),_0x2cead2=this[_0x444998(0x555)][_0x444998(0x27f)](ke,_0x1821e4,_0x7b30c);return _0x2cead2['init'](),_0x2cead2;}};ne=_i([Me(0x0,a[_0x265f71(0x5ad)]),Me(0x1,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),Me(0x2,a['Inject'](exports[_0x265f71(0x1f2)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x2cb12c,_0x49096c){const _0xdd2daa=_0x265f71;let {radius:_0x94437d,width:_0x5650dc,height:_0x1c56fa}=_0x49096c;_0x94437d=_0x94437d!=null?_0x94437d:0x0,_0x5650dc=_0x5650dc!=null?_0x5650dc:0x1e,_0x1c56fa=_0x1c56fa!=null?_0x1c56fa:0x1e;let _0x241166=0x0,_0x2242ef=0x0,_0x38b798=0x0;_0x241166=_0x2242ef=_0x38b798=Math[_0xdd2daa(0x579)](_0x94437d,_0x5650dc/0x2,_0x1c56fa/0x2),_0x2cb12c[_0xdd2daa(0x54f)](),_0x2cb12c[_0xdd2daa(0x2d0)](_0x241166,0x0),_0x2cb12c[_0xdd2daa(0x4a5)](_0x5650dc-_0x2242ef,0x0),_0x2cb12c[_0xdd2daa(0x32f)](_0x5650dc-_0x2242ef,_0x2242ef,_0x2242ef,Math['PI']*0x3/0x2,0x0,!0x1),_0x2cb12c[_0xdd2daa(0x4a5)](_0x5650dc,_0x1c56fa-_0x38b798),_0x2cb12c['arc'](_0x5650dc-_0x38b798,_0x1c56fa-_0x38b798,_0x38b798,0x0,Math['PI']/0x2,!0x1),_0x2cb12c[_0xdd2daa(0x4a5)](0x0,_0x1c56fa),_0x2cb12c[_0xdd2daa(0x4a5)](0x0,_0x241166),_0x2cb12c[_0xdd2daa(0x32f)](_0x241166,_0x241166,_0x241166,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2cb12c[_0xdd2daa(0x529)](),_0x49096c[_0xdd2daa(0x381)]&&(_0x2cb12c[_0xdd2daa(0x2b9)](),_0x2cb12c[_0xdd2daa(0x4a1)]=_0x49096c[_0xdd2daa(0x381)],_0x49096c['fillRule']===_0xdd2daa(0x5fd)?_0x2cb12c[_0xdd2daa(0x381)](_0xdd2daa(0x5fd)):_0x2cb12c[_0xdd2daa(0x381)](),_0x2cb12c[_0xdd2daa(0x492)]());}class Oe extends O['Shape']{constructor(_0x265256,_0x3565c5){const _0x6c5c1d=_0x265f71;super(_0x265256,_0x3565c5),u(this,_0x6c5c1d(0x2b3)),u(this,_0x6c5c1d(0x49f)),(this['color']=_0x3565c5==null?void 0x0:_0x3565c5[_0x6c5c1d(0x2b3)],this[_0x6c5c1d(0x49f)]=_0x3565c5==null?void 0x0:_0x3565c5[_0x6c5c1d(0x49f)]);}static['drawWith'](_0x223c79,_0x15c8ce){const _0x29e8cd=_0x265f71,{text:_0x490fa2,color:_0x45c565}=_0x15c8ce;_0x223c79[_0x29e8cd(0x2b9)](),_0x223c79[_0x29e8cd(0x59b)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x583439=_0x223c79[_0x29e8cd(0x50b)](_0x490fa2)[_0x29e8cd(0x207)],_0x3c79ca=Math[_0x29e8cd(0x579)](_0x583439+0x2*Ae,lt);di(_0x223c79,{'height':de,'radius':0x4,'width':_0x3c79ca,'fill':_0x45c565,'evented':!0x1}),_0x223c79['fillStyle']=_0x29e8cd(0x2da);const _0x3ef641=Ae,_0x5a4bd8=de-ui,_0x172d22=lt-0x2*Ae;if(_0x583439>_0x172d22){let _0x3d759e='',_0xbc202d=0x0;for(const _0x1a90ef of _0x490fa2){const _0x537d60=_0x223c79[_0x29e8cd(0x50b)](_0x1a90ef)[_0x29e8cd(0x207)];if(_0xbc202d+_0x537d60<=_0x172d22-_0x223c79[_0x29e8cd(0x50b)](_0x29e8cd(0x2ac))[_0x29e8cd(0x207)])_0x3d759e+=_0x1a90ef,_0xbc202d+=_0x537d60;else{_0x3d759e+=_0x29e8cd(0x2ac);break;}}_0x223c79[_0x29e8cd(0x366)](_0x3d759e,_0x3ef641,_0x5a4bd8);}else _0x223c79[_0x29e8cd(0x366)](_0x490fa2,_0x3ef641,_0x5a4bd8);_0x223c79['restore']();}[_0x265f71(0x3b6)](_0x26ed88){const _0x49a618=_0x265f71;Oe[_0x49a618(0x583)](_0x26ed88,this);}}const Le=_0x265f71(0x2a4),Si=_0x265f71(0x367),vi=_0x265f71(0x329),le=0x6,gi=1.5,je=0x4,fi=1.5,mi=_0x265f71(0x3c9);class ht{constructor(_0x570523,_0x21d871,_0x5e6d66,_0x2c559d){const _0x1d15c1=_0x265f71;u(this,'_shapes',[]),u(this,_0x1d15c1(0x2fd),null),u(this,_0x1d15c1(0x2ab),null),u(this,_0x1d15c1(0x3d8),null),u(this,_0x1d15c1(0x427),null),u(this,_0x1d15c1(0x428),null),(this[_0x1d15c1(0x23a)]=_0x570523,this[_0x1d15c1(0x2ef)]=_0x21d871,this[_0x1d15c1(0x241)]=_0x5e6d66,this['_document']=_0x2c559d,this[_0x1d15c1(0x1d9)]());}set[_0x265f71(0x447)](_0x404436){const _0x3e246e=_0x265f71;_0x404436?(this[_0x3e246e(0x3d8)]&&this[_0x3e246e(0x3d8)]['hide'](),this[_0x3e246e(0x2ab)]&&this[_0x3e246e(0x2ab)]['show']()):(this['_anchorDot']&&this[_0x3e246e(0x3d8)][_0x3e246e(0x508)](),this[_0x3e246e(0x2ab)]&&this[_0x3e246e(0x2ab)][_0x3e246e(0x458)]());}[_0x265f71(0x456)](){const _0x1c662d=_0x265f71;for(const _0x1c8c16 of this[_0x1c662d(0x581)])_0x1c8c16['dispose']();this[_0x1c662d(0x2ab)]&&this['_textBubble'][_0x1c662d(0x456)](),this[_0x1c662d(0x3d8)]&&this[_0x1c662d(0x3d8)]['dispose'](),this[_0x1c662d(0x2fd)]&&this[_0x1c662d(0x2fd)][_0x1c662d(0x456)](),this[_0x1c662d(0x428)]&&this[_0x1c662d(0x428)]();}[_0x265f71(0x1d9)](){const _0x54bb91=_0x265f71;var _0x4e168d;const {_docSkeleton:_0x573351,_document:_0x259573}=this,{color:_0x24ce6a,name:_0x16904d,ranges:_0x888d41}=this[_0x54bb91(0x23a)],_0x4d5382=_0x259573[_0x54bb91(0x409)](),{docsLeft:_0x44b028,docsTop:_0x2495c3}=_0x4d5382,_0xa55948=new w['NodePositionConvertToCursor'](_0x4d5382,_0x573351);for(const {startOffset:_0x5200a7,endOffset:_0x5a9b63,collapsed:_0x1b6c81,isActive:_0x30a737}of _0x888d41){const _0x9671bf=_0x573351['findNodePositionByCharIndex'](_0x5200a7),_0x42d932=_0x573351['findNodePositionByCharIndex'](_0x5a9b63);if(_0x30a737){const {contentBoxPointGroup:_0x42d20b}=_0xa55948[_0x54bb91(0x48d)](_0x42d932,_0x42d932);if(_0x42d20b['length']===0x0)continue;this[_0x54bb91(0x210)](_0x24ce6a,_0x42d20b,_0x44b028,_0x2495c3,_0x16904d),this[_0x54bb91(0x428)]=this[_0x54bb91(0x1ea)]();}if(!_0x1b6c81&&_0x9671bf&&_0x42d932){if(w['isValidRectRange'](_0x9671bf,_0x42d932)){const _0xc59407=new w[(_0x54bb91(0x380))](_0x4d5382,_0x573351),{pointGroup:_0x565840}=(_0x4e168d=_0xc59407[_0x54bb91(0x48d)](_0x9671bf,_0x42d932))!=null?_0x4e168d:{};if(_0x565840==null||_0x565840[_0x54bb91(0x2ce)]===0x0)continue;this[_0x54bb91(0x35b)](_0x24ce6a,_0x565840,_0x44b028,_0x2495c3);}else{const {contentBoxPointGroup:_0x4d3b33}=_0xa55948[_0x54bb91(0x48d)](_0x9671bf,_0x42d932);if(_0x4d3b33[_0x54bb91(0x2ce)]===0x0)continue;this['_drawTextRange'](_0x24ce6a,_0x4d3b33,_0x44b028,_0x2495c3);}}}}[_0x265f71(0x210)](_0x5c1634,_0x2cee79,_0x13d0dd,_0x14345c,_0xeac7fa){const _0x15f41c=_0x265f71,_0x19b227=this[_0x15f41c(0x356)](_0x2cee79),{left:_0x183641,top:_0x466742,height:_0x47a035}=_0x19b227,_0x43d9f1=this['_getScale'](),_0x38378a=fi/_0x43d9f1,_0x3e224c=new O[(_0x15f41c(0x221))](Le+a[_0x15f41c(0x2de)][_0x15f41c(0x3eb)](le),{'left':_0x183641+_0x13d0dd-_0x38378a,'top':_0x466742+_0x14345c,'height':_0x47a035,'width':gi,'fill':_0x5c1634||O[_0x15f41c(0x357)](a[_0x15f41c(0x528)][_0x15f41c(0x5c3)],0x0),'strokeWidth':_0x38378a,'stroke':mi,'evented':!0x0});this['_anchor']=_0x3e224c,this[_0x15f41c(0x2ef)][_0x15f41c(0x550)](_0x3e224c,w['TEXT_RANGE_LAYER_INDEX']);const _0x87e311=new O[(_0x15f41c(0x221))](Le+a[_0x15f41c(0x2de)]['generateRandomId'](le),{'left':_0x183641+_0x13d0dd-_0x38378a,'top':_0x466742+_0x14345c-je/0x2,'height':je,'width':je,'fill':_0x5c1634||O[_0x15f41c(0x357)](a[_0x15f41c(0x528)][_0x15f41c(0x5c3)],0x0),'strokeWidth':0x0,'stroke':_0x5c1634||O[_0x15f41c(0x357)](a['COLORS'][_0x15f41c(0x5c3)],0x0),'evented':!0x1});this[_0x15f41c(0x3d8)]=_0x87e311,this[_0x15f41c(0x2ef)][_0x15f41c(0x550)](_0x87e311,w[_0x15f41c(0x411)]);const _0x135e17=new Oe(Le+a[_0x15f41c(0x2de)][_0x15f41c(0x3eb)](le),{'left':_0x183641+_0x13d0dd-_0x38378a,'top':_0x466742+_0x14345c-de,'text':_0xeac7fa,'color':_0x5c1634});this['_textBubble']=_0x135e17,this[_0x15f41c(0x2ef)][_0x15f41c(0x550)](_0x135e17,w[_0x15f41c(0x411)]),this[_0x15f41c(0x447)]=!0x1;}[_0x265f71(0x1ea)](){const _0x594669=_0x265f71,_0x516bd2=this['_anchor'][_0x594669(0x2bb)][_0x594669(0x5d5)](()=>{this['_hover']=!0x0;}),_0x1e3736=this[_0x594669(0x2fd)][_0x594669(0x4a6)][_0x594669(0x5d5)](()=>{const _0x395eef=_0x594669;this[_0x395eef(0x427)]&&clearTimeout(this[_0x395eef(0x427)]),this[_0x395eef(0x427)]=setTimeout(()=>{const _0x1a4e9a=_0x395eef;this[_0x1a4e9a(0x447)]=!0x1;},0x7d0);});return()=>{const _0x1a4afb=_0x594669;_0x516bd2['unsubscribe'](),_0x1e3736[_0x1a4afb(0x471)]();};}[_0x265f71(0x4c1)](_0xb7d1ea,_0x321017,_0x2ca110,_0x307fb2){const _0x25e0eb=_0x265f71,_0x171372=new a[(_0x25e0eb(0x268))](_0xb7d1ea)[_0x25e0eb(0x396)](0.2)[_0x25e0eb(0x2be)](),_0x5906ca=new O[(_0x25e0eb(0x24b))](Si+a[_0x25e0eb(0x2de)][_0x25e0eb(0x3eb)](le),{'pointsGroup':_0x321017,'fill':_0x171372||O[_0x25e0eb(0x357)](a[_0x25e0eb(0x528)][_0x25e0eb(0x5c3)],0.2),'left':_0x2ca110,'top':_0x307fb2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25e0eb(0x581)][_0x25e0eb(0x48f)](_0x5906ca),this[_0x25e0eb(0x2ef)][_0x25e0eb(0x550)](_0x5906ca,w['TEXT_RANGE_LAYER_INDEX']);}[_0x265f71(0x35b)](_0x5eca89,_0x1663c8,_0x599ca2,_0x811264){const _0x3f244e=_0x265f71,_0x47aea5=new a[(_0x3f244e(0x268))](_0x5eca89)['setAlpha'](0.2)[_0x3f244e(0x2be)](),_0xe6a9ec=new O[(_0x3f244e(0x24b))](vi+a[_0x3f244e(0x2de)][_0x3f244e(0x3eb)](le),{'pointsGroup':_0x1663c8,'fill':_0x47aea5||O[_0x3f244e(0x357)](a[_0x3f244e(0x528)][_0x3f244e(0x5c3)],0.2),'left':_0x599ca2,'top':_0x811264,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3f244e(0x48f)](_0xe6a9ec),this[_0x3f244e(0x2ef)]['addObject'](_0xe6a9ec,w[_0x3f244e(0x411)]);}[_0x265f71(0x356)](_0x394603){const _0x3f3790=_0x394603[0x0],_0x2cbf88=_0x3f3790[0x0],_0x541daf=_0x3f3790[0x2],{x:_0x11909b,y:_0x3aff7d}=_0x2cbf88,{x:_0x432527,y:_0x2fb389}=_0x541daf;return{'left':_0x11909b,'top':_0x3aff7d,'width':_0x432527-_0x11909b,'height':_0x2fb389-_0x3aff7d};}[_0x265f71(0x496)](){const _0x4e30fe=_0x265f71,{scaleX:_0x5d3f29,scaleY:_0x5e8e93}=this[_0x4e30fe(0x2ef)][_0x4e30fe(0x58b)]();return Math['max'](_0x5d3f29,_0x5e8e93);}}var Ii=Object['defineProperty'],pi=Object[_0x265f71(0x307)],Ci=(_0x17882a,_0x5439d2,_0x4522b2,_0x424624)=>{const _0x56cc17=_0x265f71;for(var _0x15cf07=_0x424624>0x1?void 0x0:_0x424624?pi(_0x5439d2,_0x4522b2):_0x5439d2,_0x52964d=_0x17882a[_0x56cc17(0x2ce)]-0x1,_0x450670;_0x52964d>=0x0;_0x52964d--)(_0x450670=_0x17882a[_0x52964d])&&(_0x15cf07=(_0x424624?_0x450670(_0x5439d2,_0x4522b2,_0x15cf07):_0x450670(_0x15cf07))||_0x15cf07);return _0x424624&&_0x15cf07&&Ii(_0x5439d2,_0x4522b2,_0x15cf07),_0x15cf07;},ve=(_0x299534,_0x2e98b1)=>(_0x163d50,_0x285b64)=>_0x2e98b1(_0x163d50,_0x285b64,_0x299534);let Ve=class extends a[_0x265f71(0x459)]{constructor(_0x4d5d11,_0x7e56d3,_0x1451b8,_0x31c0fc,_0x2e9b2c){const _0x42ef9e=_0x265f71;super(),u(this,'_cursorShapes',[]),u(this,'_cursors',[]),(this[_0x42ef9e(0x444)]=_0x4d5d11,this[_0x42ef9e(0x4fd)]=_0x7e56d3,this[_0x42ef9e(0x472)]=_0x1451b8,this[_0x42ef9e(0x530)]=_0x31c0fc,this[_0x42ef9e(0x51f)]=_0x2e9b2c,this[_0x42ef9e(0x211)]());}[_0x265f71(0x211)](){const _0x2edeae=_0x265f71,_0x1e3d1a=this['_context'][_0x2edeae(0x3ce)],_0x3362c5=this['_docSkeletonManagerService'];this[_0x2edeae(0x256)](v[_0x2edeae(0x27e)]([this[_0x2edeae(0x472)][_0x2edeae(0x574)](_0x1e3d1a),this[_0x2edeae(0x51f)][_0x2edeae(0x4b5)]])[_0x2edeae(0x337)](E[_0x2edeae(0x5e5)](([_0x5f29c4,_0x2bee59])=>({'skeleton':_0x3362c5[_0x2edeae(0x594)](),'cursors':[..._0x5f29c4['values']()][_0x2edeae(0x3f0)](_0x2c9174=>({..._0x2c9174,'color':_0x2bee59[_0x2c9174[_0x2edeae(0x2b3)]]}))})))[_0x2edeae(0x1d2)](_0x25720e=>{const _0x357b1c=_0x2edeae;if(this[_0x357b1c(0x46f)](),_0x25720e){const {skeleton:_0x41acf5,cursors:_0x475946}=_0x25720e;this[_0x357b1c(0x25e)](_0x41acf5,_0x475946);}})),this[_0x2edeae(0x25a)](),this[_0x2edeae(0x204)]();}[_0x265f71(0x25e)](_0x58138c,_0x4ae10c){const _0x1b7280=_0x265f71,{scene:_0x367b72,mainComponent:_0x3a00e3}=this['_context'],_0x29ccac=_0x4ae10c[_0x1b7280(0x5e5)](_0x52b23b=>new ht(_0x52b23b,_0x367b72,_0x58138c,_0x3a00e3));this[_0x1b7280(0x223)]=_0x29ccac,this[_0x1b7280(0x3af)]=_0x4ae10c;}[_0x265f71(0x4f0)](){const _0x374582=_0x265f71;this[_0x374582(0x46f)]();const {scene:_0xd8de3a,mainComponent:_0x5cfe45}=this['_context'],_0x49e571=this['_docSkeletonManagerService']['getSkeleton'](),_0x5a71fe=this[_0x374582(0x3af)]['map'](_0x5df183=>new ht(_0x5df183,_0xd8de3a,_0x49e571,_0x5cfe45));this[_0x374582(0x223)]=_0x5a71fe;}['_removeCollabCursors'](){const _0x36e31=_0x265f71;this[_0x36e31(0x223)]['forEach'](_0x45f3df=>_0x45f3df['dispose']()),this[_0x36e31(0x223)]=[];}[_0x265f71(0x204)](){const _0x2d6a82=_0x265f71,_0x287903=[w[_0x2d6a82(0x5c2)]['id']];this[_0x2d6a82(0x256)](this['_commandService'][_0x2d6a82(0x295)](_0x5c7f70=>{const _0x2dd564=_0x2d6a82;_0x287903[_0x2dd564(0x5bf)](_0x5c7f70['id'])&&_0x5c7f70['params'][_0x2dd564(0x3ce)]===this[_0x2dd564(0x444)]['unitId']&&this[_0x2dd564(0x4f0)]();}));}['_initResize'](){const _0x55f171=_0x265f71;this[_0x55f171(0x256)](a[_0x55f171(0x31e)](this[_0x55f171(0x444)][_0x55f171(0x244)][_0x55f171(0x417)])[_0x55f171(0x337)](E['filter'](_0x2fee02=>_0x2fee02[_0x55f171(0x38a)]===O[_0x55f171(0x339)][_0x55f171(0x570)]),E['throttleTime'](0x10))[_0x55f171(0x1d2)](()=>{const _0x3c708a=_0x55f171;this[_0x3c708a(0x4f0)]();}));}};Ve=Ci([ve(0x1,a[_0x265f71(0x599)](se[_0x265f71(0x440)])),ve(0x2,a[_0x265f71(0x599)](ne)),ve(0x3,a['ICommandService']),ve(0x4,a['Inject'](a[_0x265f71(0x398)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends O[_0x265f71(0x53b)]{constructor(_0x37085a,_0x67c579){const _0x29b3cf=_0x265f71;super(_0x37085a,_0x67c579),u(this,_0x29b3cf(0x299)),u(this,_0x29b3cf(0x3a6),!0x1),u(this,'_range'),u(this,_0x29b3cf(0x2f5),''),u(this,_0x29b3cf(0x30c),_0x29b3cf(0x22e)),u(this,_0x29b3cf(0x3c0)),(_0x67c579&&this[_0x29b3cf(0x3d9)](_0x67c579),this['onPointerEnter$'][_0x29b3cf(0x5d5)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x29b3cf(0x4a6)][_0x29b3cf(0x5d5)](()=>this[_0x29b3cf(0x3d9)]({'hovered':!0x1})));}[_0x265f71(0x3d9)](_0x1b5628){const _0xb2ecd7=_0x265f71;var _0x4245bc,_0x1fc60b,_0x5a64ca,_0x4fe972,_0x37b9af,_0xd9808;this[_0xb2ecd7(0x299)]=(_0x4245bc=_0x1b5628[_0xb2ecd7(0x2b3)])!=null?_0x4245bc:this['_color'],this['_hovered']=(_0x1fc60b=_0x1b5628[_0xb2ecd7(0x29b)])!=null?_0x1fc60b:this[_0xb2ecd7(0x3a6)],this[_0xb2ecd7(0x2a0)]=(_0x5a64ca=_0x1b5628[_0xb2ecd7(0x361)])!=null?_0x5a64ca:this['_range'],this[_0xb2ecd7(0x2f5)]=(_0x4fe972=_0x1b5628[_0xb2ecd7(0x24e)])!=null?_0x4fe972:this[_0xb2ecd7(0x2f5)],this[_0xb2ecd7(0x30c)]=(_0x37b9af=_0x1b5628['labelPosition'])!=null?_0x37b9af:this['_labelPosition'],this[_0xb2ecd7(0x3c0)]=(_0xd9808=_0x1b5628[_0xb2ecd7(0x488)])!=null?_0xd9808:this[_0xb2ecd7(0x3c0)],this['transformByState']({'width':_0x1b5628[_0xb2ecd7(0x207)],'height':_0x1b5628[_0xb2ecd7(0x433)]});}[_0x265f71(0x27d)](_0xbba56a){const _0x101b36=_0x265f71,{row:_0x1af7b6,column:_0x1be501}=_0xbba56a;if(_0x1af7b6>=this[_0x101b36(0x2a0)][_0x101b36(0x3cb)]&&_0x1af7b6<=this[_0x101b36(0x2a0)][_0x101b36(0x34f)]&&_0x1be501>=this[_0x101b36(0x2a0)][_0x101b36(0x5fe)]&&_0x1be501<=this[_0x101b36(0x2a0)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x101b36(0x3d9)]({'hovered':!0x1});}[_0x265f71(0x47b)](_0x5b42ad){return!0x1;}[_0x265f71(0x3b6)](_0xc84a10){const _0x54c9f3=_0x265f71;O[_0x54c9f3(0x221)][_0x54c9f3(0x583)](_0xc84a10,{'width':this[_0x54c9f3(0x207)],'height':this['height'],'strokeWidth':bi,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x54c9f3(0x3a6)]&&(_0xc84a10[_0x54c9f3(0x2b9)](),_0xc84a10[_0x54c9f3(0x561)](0x1,0x0,0x0,0x1,this['width'],this[_0x54c9f3(0x30c)]===_0x54c9f3(0x2c9)?0x0:-de),Oe[_0x54c9f3(0x583)](_0xc84a10,{'text':this[_0x54c9f3(0x2f5)],'color':this[_0x54c9f3(0x299)]}),_0xc84a10[_0x54c9f3(0x492)]());}}var Ti=Object[_0x265f71(0x39e)],Ri=Object[_0x265f71(0x307)],Oi=(_0x14fe05,_0x24fe42,_0x5e75d1,_0x120d9b)=>{const _0x55017e=_0x265f71;for(var _0x284b89=_0x120d9b>0x1?void 0x0:_0x120d9b?Ri(_0x24fe42,_0x5e75d1):_0x24fe42,_0xce8dbd=_0x14fe05[_0x55017e(0x2ce)]-0x1,_0x2adf6f;_0xce8dbd>=0x0;_0xce8dbd--)(_0x2adf6f=_0x14fe05[_0xce8dbd])&&(_0x284b89=(_0x120d9b?_0x2adf6f(_0x24fe42,_0x5e75d1,_0x284b89):_0x2adf6f(_0x284b89))||_0x284b89);return _0x120d9b&&_0x284b89&&Ti(_0x24fe42,_0x5e75d1,_0x284b89),_0x284b89;},$e=(_0x91f13c,_0x231dd7)=>(_0x3de32,_0x234e56)=>_0x231dd7(_0x3de32,_0x234e56,_0x91f13c);const Di=0x1389;let We=class extends a[_0x265f71(0x459)]{constructor(_0x202817,_0x8dfbd6,_0x5a98a2,_0x270c1){const _0x271f59=_0x265f71;super(),u(this,'_cursors',new Set()),u(this,_0x271f59(0x3f5),null),(this[_0x271f59(0x444)]=_0x202817,this[_0x271f59(0x29e)]=_0x8dfbd6,this[_0x271f59(0x472)]=_0x5a98a2,this[_0x271f59(0x51f)]=_0x270c1,this[_0x271f59(0x211)]());}[_0x265f71(0x211)](){const _0x30d66a=_0x265f71;this[_0x30d66a(0x29e)]['currentSkeleton$']['pipe'](E[_0x30d66a(0x321)](this['dispose$']),E['switchMap'](_0x2b5fae=>{const _0x1b123c=_0x30d66a;if(_0x2b5fae){const _0x47ab26=_0x2b5fae[_0x1b123c(0x5a9)];return v[_0x1b123c(0x27e)](this[_0x1b123c(0x472)][_0x1b123c(0x574)](this[_0x1b123c(0x444)][_0x1b123c(0x3ce)]),this[_0x1b123c(0x51f)][_0x1b123c(0x4b5)])[_0x1b123c(0x337)](E['map'](([_0x211f81,_0x640614])=>{const _0x449e2a=_0x1b123c,_0x1ef7e9=new Map();return _0x211f81[_0x449e2a(0x5f9)]((_0x376f80,_0x233b86)=>{const _0x252a34=_0x449e2a;if(_0x376f80[_0x252a34(0x370)]===_0x47ab26){const _0x503316={..._0x376f80};_0x503316[_0x252a34(0x2b3)]=_0x640614[_0x376f80[_0x252a34(0x2b3)]],_0x1ef7e9['set'](_0x233b86,_0x503316);}}),{'skeleton':_0x2b5fae,'cursors':_0x1ef7e9};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x30d66a(0x1d2)](({skeleton:_0x1b116d,cursors:_0x51f0d3})=>{const _0x4a4f45=_0x30d66a;this[_0x4a4f45(0x46f)](),_0x1b116d&&this['_updateCollabCursors'](_0x1b116d,_0x51f0d3);}),this[_0x30d66a(0x29e)][_0x30d66a(0x218)][_0x30d66a(0x1d2)](_0x4a9005=>{const _0x1101ac=_0x30d66a;if(_0x4a9005==null)return;const {skeleton:_0x103898}=_0x4a9005,{scene:_0x322d7b}=this[_0x1101ac(0x444)];_0x322d7b[_0x1101ac(0x253)]['subscribeEvent'](a['debounce'](_0xe38189=>{const _0x1b3b98=_0x1101ac;var _0xbb6766,_0x2ad5ba;const {offsetX:_0x2b406f,offsetY:_0x247bb8}=_0xe38189,{x:_0x2eb962,y:_0x1107ce}=_0x322d7b[_0x1b3b98(0x341)](O[_0x1b3b98(0x494)][_0x1b3b98(0x2ea)]([_0x2b406f,_0x247bb8])),{scaleX:_0x49e3a7,scaleY:_0x95b5b}=_0x322d7b[_0x1b3b98(0x58b)](),_0x331b0c=_0x322d7b[_0x1b3b98(0x549)](te['VIEWPORT_KEY']['VIEW_MAIN']),_0x2dd82d=_0x322d7b[_0x1b3b98(0x20c)](O['Vector2'][_0x1b3b98(0x2ea)]([_0x2eb962,_0x1107ce]),_0x331b0c),_0x204d91=_0x103898['getCellPositionByOffset'](_0x2b406f,_0x247bb8,_0x49e3a7,_0x95b5b,_0x2dd82d);((_0xbb6766=this['_lastPointer'])==null?void 0x0:_0xbb6766[_0x1b3b98(0x3e1)])===_0x204d91[_0x1b3b98(0x3e1)]&&((_0x2ad5ba=this[_0x1b3b98(0x3f5)])==null?void 0x0:_0x2ad5ba[_0x1b3b98(0x525)])===_0x204d91['row']||this[_0x1b3b98(0x3af)][_0x1b3b98(0x5f9)](_0x14ecdf=>{const _0x557cba=_0x1b3b98;_0x14ecdf[_0x557cba(0x27d)](_0x204d91);});},0x64));});}[_0x265f71(0x25e)](_0x1383f1,_0x3d47d6){const _0x2f78cf=_0x265f71;var _0x5ef678;const _0x1fdc4a=(_0x5ef678=this[_0x2f78cf(0x29e)][_0x2f78cf(0x40c)]())==null?void 0x0:_0x5ef678[_0x2f78cf(0x4ad)];if(!_0x1fdc4a)return;const _0x5959c8=this[_0x2f78cf(0x519)]();if(!_0x5959c8)return;this[_0x2f78cf(0x3af)][_0x2f78cf(0x5f9)](_0x2d9c53=>{_0x2d9c53['makeDirty']();});const {scene:_0x174d35}=_0x5959c8,_0x3870b8=yi(Array[_0x2f78cf(0x1f3)](_0x3d47d6[_0x2f78cf(0x43e)]()))['map'](_0x475ae9=>{const _0xbc0312=_0x2f78cf,{color:_0x23be8f,range:_0x5a284b,name:_0x467d07,selection:_0x4adeb5,sheetID:_0x11e34e}=_0x475ae9,{startColumn:_0x287ff7,startRow:_0x5dfcdd,endColumn:_0x404516,endRow:_0x24fb6d}=_0x5a284b,_0x135405=te[_0xbc0312(0x2aa)](_0x5dfcdd,_0x287ff7,_0x174d35,_0x1fdc4a),_0xfa9de2=te[_0xbc0312(0x2aa)](_0x24fb6d,_0x404516,_0x174d35,_0x1fdc4a),{columnHeaderHeightAndMarginTop:_0x47e06e}=_0x1fdc4a,{startX:_0xe5ecfe,startY:_0x3a88aa}=_0x135405,{endX:_0x4721d3,endY:_0x1fe7e7}=_0xfa9de2,_0x405869=_0x4721d3-_0xe5ecfe,_0x10c996=_0x1fe7e7-_0x3a88aa,_0x19d9e4={'labelPosition':_0x3a88aa-_0x47e06e>=de?_0xbc0312(0x22e):_0xbc0312(0x2c9),'sheetID':_0x11e34e,'range':_0x5a284b,'color':_0x23be8f,'name':_0x467d07,'selection':_0x4adeb5,'left':_0xe5ecfe,'top':_0x3a88aa,'width':_0x405869,'height':_0x10c996,'evented':!0x1,'zIndex':Di};return new Pt(_0x467d07,_0x19d9e4);});_0x174d35[_0x2f78cf(0x40e)](_0x3870b8,Ei),this[_0x2f78cf(0x3af)]=new Set(_0x3870b8);}[_0x265f71(0x46f)](){const _0x1306b8=_0x265f71;var _0x292f4a;(_0x292f4a=this[_0x1306b8(0x3af)])==null||_0x292f4a['forEach'](_0x1aec32=>_0x1aec32['dispose']());}[_0x265f71(0x519)](){const _0x1387ac=_0x265f71;return te[_0x1387ac(0x29d)](this[_0x1387ac(0x444)][_0x1387ac(0x4fe)],this[_0x1387ac(0x444)]);}};We=Oi([$e(0x1,a[_0x265f71(0x599)](te[_0x265f71(0x5b4)])),$e(0x2,a['Inject'](ne)),$e(0x3,a['Inject'](a['ThemeService']))],We);function yi(_0x571f62){const _0x34e7f9=_0x265f71,_0x1db4af=new Map();return _0x571f62[_0x34e7f9(0x5f9)](_0x4723cc=>{const _0x15cf42=_0x34e7f9;if(_0x1db4af[_0x15cf42(0x3c3)](_0x4723cc[_0x15cf42(0x5a1)])){const _0xd239ae=_0x1db4af['get'](_0x4723cc[_0x15cf42(0x5a1)]);_0xd239ae[_0x15cf42(0x24e)]+=',\x20'+_0x4723cc[_0x15cf42(0x24e)];}else _0x1db4af['set'](_0x4723cc['selection'],_0x4723cc);}),Array[_0x34e7f9(0x1f3)](_0x1db4af[_0x34e7f9(0x43e)]());}var M=function(){const _0x30cc44=_0x265f71;return M=Object[_0x30cc44(0x392)]||function(_0x35e7d8){const _0x5aae9d=_0x30cc44;for(var _0x286336,_0xff529e=0x1,_0x5aa4a5=arguments[_0x5aae9d(0x2ce)];_0xff529e<_0x5aa4a5;_0xff529e++){_0x286336=arguments[_0xff529e];for(var _0x21da00 in _0x286336)Object[_0x5aae9d(0x2e8)][_0x5aae9d(0x314)][_0x5aae9d(0x5ba)](_0x286336,_0x21da00)&&(_0x35e7d8[_0x21da00]=_0x286336[_0x21da00]);}return _0x35e7d8;},M['apply'](this,arguments);},Ui=function(_0x9fa185,_0xfc4a2d){const _0x405c96=_0x265f71;var _0x1be75b={};for(var _0x364fa5 in _0x9fa185)Object[_0x405c96(0x2e8)][_0x405c96(0x314)][_0x405c96(0x5ba)](_0x9fa185,_0x364fa5)&&_0xfc4a2d[_0x405c96(0x45b)](_0x364fa5)<0x0&&(_0x1be75b[_0x364fa5]=_0x9fa185[_0x364fa5]);if(_0x9fa185!=null&&typeof Object[_0x405c96(0x313)]=='function'){for(var _0x330f03=0x0,_0x364fa5=Object[_0x405c96(0x313)](_0x9fa185);_0x330f03<_0x364fa5[_0x405c96(0x2ce)];_0x330f03++)_0xfc4a2d[_0x405c96(0x45b)](_0x364fa5[_0x330f03])<0x0&&Object[_0x405c96(0x2e8)][_0x405c96(0x5bb)][_0x405c96(0x5ba)](_0x9fa185,_0x364fa5[_0x330f03])&&(_0x1be75b[_0x364fa5[_0x330f03]]=_0x9fa185[_0x364fa5[_0x330f03]]);}return _0x1be75b;},Ze=P[_0x265f71(0x5e8)](function(_0x5df808,_0x4274f2){const _0x208d42=_0x265f71;var _0x20fcd2=_0x5df808[_0x208d42(0x2e7)],_0x1c9640=_0x5df808['id'],_0xe56f47=_0x5df808[_0x208d42(0x29f)],_0x108bb0=_0x5df808['extend'],_0x27aac0=Ui(_0x5df808,[_0x208d42(0x2e7),'id',_0x208d42(0x29f),_0x208d42(0x391)]),_0x2309b5=_0x208d42(0x376)['concat'](_0x1c9640,'\x20')['concat'](_0xe56f47||'')[_0x208d42(0x2c7)](),_0x3b9e38=P[_0x208d42(0x539)]('_'[_0x208d42(0x34b)](Ni()));return wt(_0x20fcd2,''[_0x208d42(0x34b)](_0x1c9640),{'defIds':_0x20fcd2['defIds'],'idSuffix':_0x3b9e38[_0x208d42(0x571)]},M({'ref':_0x4274f2,'className':_0x2309b5},_0x27aac0),_0x108bb0);});function wt(_0x3a1c85,_0x492e40,_0x3f47b9,_0x4f126c,_0x12ed1b){const _0x1f40b0=_0x265f71;return P['createElement'](_0x3a1c85[_0x1f40b0(0x2a8)],M(M({'key':_0x492e40},Pi(_0x3a1c85,_0x3f47b9,_0x12ed1b)),_0x4f126c),(wi(_0x3a1c85,_0x3f47b9)[_0x1f40b0(0x382)]||[])[_0x1f40b0(0x5e5)](function(_0x3f22ed,_0x334990){const _0x405c01=_0x1f40b0;return wt(_0x3f22ed,''['concat'](_0x492e40,'-')[_0x405c01(0x34b)](_0x3a1c85[_0x405c01(0x2a8)],'-')[_0x405c01(0x34b)](_0x334990),_0x3f47b9,void 0x0,_0x12ed1b);}));}function Pi(_0xbaaa3d,_0x4061b0,_0x566bf7){const _0x86ae6d=_0x265f71;var _0x1846f8=M({},_0xbaaa3d[_0x86ae6d(0x302)]);_0x566bf7!=null&&_0x566bf7[_0x86ae6d(0x24f)]&&_0x1846f8['fill']===_0x86ae6d(0x24f)&&(_0x1846f8[_0x86ae6d(0x381)]=_0x566bf7[_0x86ae6d(0x24f)]);var _0x1355b7=_0x4061b0[_0x86ae6d(0x3bc)];return!_0x1355b7||_0x1355b7[_0x86ae6d(0x2ce)]===0x0||(_0xbaaa3d['tag']===_0x86ae6d(0x334)&&_0x1846f8[_0x86ae6d(0x3a2)]&&(_0x1846f8['xlink:href']=_0x1846f8[_0x86ae6d(0x3a2)]+_0x4061b0[_0x86ae6d(0x3d6)]),Object[_0x86ae6d(0x445)](_0x1846f8)[_0x86ae6d(0x5f9)](function(_0x181a2d){const _0x244d90=_0x86ae6d;var _0x19af1a=_0x181a2d[0x0],_0x1ceecd=_0x181a2d[0x1];typeof _0x1ceecd==_0x244d90(0x33b)&&(_0x1846f8[_0x19af1a]=_0x1ceecd['replace'](/url\(#(.*)\)/,_0x244d90(0x372)['concat'](_0x4061b0['idSuffix'],')')));})),_0x1846f8;}function wi(_0xdd9b4c,_0x3ea32f){const _0x2c03bd=_0x265f71;var _0x121b80,_0x12e20d=_0x3ea32f[_0x2c03bd(0x3bc)];return!_0x12e20d||_0x12e20d[_0x2c03bd(0x2ce)]===0x0?_0xdd9b4c:_0xdd9b4c[_0x2c03bd(0x2a8)]===_0x2c03bd(0x1db)&&(!((_0x121b80=_0xdd9b4c[_0x2c03bd(0x382)])===null||_0x121b80===void 0x0)&&_0x121b80[_0x2c03bd(0x2ce)])?M(M({},_0xdd9b4c),{'children':_0xdd9b4c[_0x2c03bd(0x382)][_0x2c03bd(0x5e5)](function(_0x24a39f){const _0xc00612=_0x2c03bd;return typeof _0x24a39f[_0xc00612(0x302)]['id']==_0xc00612(0x33b)&&_0x12e20d&&_0x12e20d[_0xc00612(0x45b)](_0x24a39f[_0xc00612(0x302)]['id'])>-0x1?M(M({},_0x24a39f),{'attrs':M(M({},_0x24a39f[_0xc00612(0x302)]),{'id':_0x24a39f[_0xc00612(0x302)]['id']+_0x3ea32f[_0xc00612(0x3d6)]})}):_0x24a39f;})}):_0xdd9b4c;}function Ni(){const _0x58ed65=_0x265f71;return Math[_0x58ed65(0x546)]()[_0x58ed65(0x249)](0x24)['substring'](0x2,0x8);}Ze[_0x265f71(0x290)]=_0x265f71(0x274);var Mi={'tag':'svg','attrs':{'fill':_0x265f71(0x533),'viewBox':_0x265f71(0x4e9),'width':'1em','height':_0x265f71(0x54a)},'children':[{'tag':'g','attrs':{'clipPath':_0x265f71(0x338)},'children':[{'tag':_0x265f71(0x5d6),'attrs':{'stroke':'currentColor','d':_0x265f71(0x34a),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x265f71(0x232)},'children':[{'tag':_0x265f71(0x5d6),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x265f71(0x232)]},Nt=P['forwardRef'](function(_0x3ac083,_0x17e813){const _0x13ad13=_0x265f71;return P[_0x13ad13(0x4c8)](Ze,Object[_0x13ad13(0x392)]({},_0x3ac083,{'id':_0x13ad13(0x55e),'ref':_0x17e813,'icon':Mi}));});Nt[_0x265f71(0x290)]=_0x265f71(0x31c);var Ai={'tag':_0x265f71(0x42f),'attrs':{'fill':_0x265f71(0x533),'viewBox':_0x265f71(0x243),'width':_0x265f71(0x54a),'height':_0x265f71(0x54a)},'children':[{'tag':'g','attrs':{'clipPath':_0x265f71(0x3e8)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x265f71(0x34e),'strokeLinecap':_0x265f71(0x486),'strokeLinejoin':_0x265f71(0x486),'strokeWidth':1.2}}]},{'tag':_0x265f71(0x1db),'attrs':{},'children':[{'tag':_0x265f71(0x51e),'attrs':{'id':_0x265f71(0x344)},'children':[{'tag':_0x265f71(0x5d6),'attrs':{'fill':_0x265f71(0x385),'d':_0x265f71(0x55c),'transform':_0x265f71(0x4e5)}}]}]}],'defIds':[_0x265f71(0x344)]},Mt=P['forwardRef'](function(_0x265bc6,_0xe16fe5){const _0x2a00b5=_0x265f71;return P['createElement'](Ze,Object[_0x2a00b5(0x392)]({},_0x265bc6,{'id':_0x2a00b5(0x464),'ref':_0xe16fe5,'icon':Ai}));});Mt[_0x265f71(0x290)]=_0x265f71(0x5be);function At(_0x545811){const _0x5d3349=_0x265f71;var _0x4d6bad,_0x25c23b,_0x400675='';if(typeof _0x545811==_0x5d3349(0x33b)||typeof _0x545811==_0x5d3349(0x564))_0x400675+=_0x545811;else{if(typeof _0x545811=='object'){if(Array['isArray'](_0x545811)){var _0x53056c=_0x545811['length'];for(_0x4d6bad=0x0;_0x4d6bad<_0x53056c;_0x4d6bad++)_0x545811[_0x4d6bad]&&(_0x25c23b=At(_0x545811[_0x4d6bad]))&&(_0x400675&&(_0x400675+='\x20'),_0x400675+=_0x25c23b);}else{for(_0x25c23b in _0x545811)_0x545811[_0x25c23b]&&(_0x400675&&(_0x400675+='\x20'),_0x400675+=_0x25c23b);}}}return _0x400675;}function Li(){const _0x13a564=_0x265f71;for(var _0x58042c,_0x35922b,_0x49491d=0x0,_0x2b2f18='',_0x216c08=arguments[_0x13a564(0x2ce)];_0x49491d<_0x216c08;_0x49491d++)(_0x58042c=arguments[_0x49491d])&&(_0x35922b=At(_0x58042c))&&(_0x2b2f18&&(_0x2b2f18+='\x20'),_0x2b2f18+=_0x35922b);return _0x2b2f18;}const ji=_0x265f71(0x5f7),$i=_0x265f71(0x57b),Hi=_0x265f71(0x43a),xi=_0x265f71(0x53d),ki=_0x265f71(0x397),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x4f332d){const _0x26bae9=_0x265f71;switch(_0x4f332d){case U[_0x26bae9(0x4f3)]:return _0x26bae9(0x46b);case U[_0x26bae9(0x4e2)]:return _0x26bae9(0x413);case U[_0x26bae9(0x59c)]:return'collabStatus.fetchMiss';case U[_0x26bae9(0x5da)]:return'collabStatus.notCollab';case U['PENDING']:case U[_0x26bae9(0x5db)]:case U['AWAITING_WITH_PENDING']:return _0x26bae9(0x4af);case U[_0x26bae9(0x395)]:return _0x26bae9(0x2e2);}}function Lt(_0x452fc4){const _0x3f4877=_0x265f71,{status$:_0x3174b8}=_0x452fc4,_0x44f6bf=A[_0x3f4877(0x2e4)](_0x3174b8,U[_0x3f4877(0x5da)]),_0xbf3c86=a[_0x3f4877(0x2a1)](a[_0x3f4877(0x42a)]),_0x3cbd8c=a[_0x3f4877(0x2a1)](exports[_0x3f4877(0x1f2)]),_0xa3de25=_0x44f6bf!==U[_0x3f4877(0x4f3)],_0x5c9ecc=_0xbf3c86['t'](Bi(_0x44f6bf)),_0x444d1b=Li(he[_0x3f4877(0x34d)],{[he[_0x3f4877(0x4de)]]:_0xa3de25,[he[_0x3f4877(0x2f8)]]:!_0xa3de25}),_0xb30fb9=_0xa3de25?P['createElement'](Mt,null):P[_0x3f4877(0x4c8)](Nt,null),_0x2105a6=P[_0x3f4877(0x4a8)](()=>{const _0x1380d1=_0x3f4877;_0xa3de25||_0x3cbd8c[_0x1380d1(0x393)]();},[_0xa3de25,_0x3cbd8c]);function _0x49f242(){const _0x593dd8=_0x3f4877;return P['createElement']('div',{'className':_0x444d1b,'onClick':_0x2105a6},P['createElement'](_0x593dd8(0x2a5),{'className':he[_0x593dd8(0x542)]},_0xb30fb9),P['createElement'](_0x593dd8(0x2a5),{'className':he['onlineStatusTitle']},_0x5c9ecc));}return _0xa3de25?_0x49f242():P[_0x3f4877(0x4c8)](X[_0x3f4877(0x3d1)],{'title':_0xbf3c86['t']('collab-client.tooltip.reconnect')},_0x49f242());}var Vi=Object[_0x265f71(0x39e)],Wi=Object[_0x265f71(0x307)],Fi=(_0x5ecb4a,_0x18908d,_0x3496e3,_0x14f8a4)=>{const _0x4601b4=_0x265f71;for(var _0xb8ca0b=_0x14f8a4>0x1?void 0x0:_0x14f8a4?Wi(_0x18908d,_0x3496e3):_0x18908d,_0x4059c9=_0x5ecb4a[_0x4601b4(0x2ce)]-0x1,_0x2b92e3;_0x4059c9>=0x0;_0x4059c9--)(_0x2b92e3=_0x5ecb4a[_0x4059c9])&&(_0xb8ca0b=(_0x14f8a4?_0x2b92e3(_0x18908d,_0x3496e3,_0xb8ca0b):_0x2b92e3(_0xb8ca0b))||_0xb8ca0b);return _0x14f8a4&&_0xb8ca0b&&Vi(_0x18908d,_0x3496e3,_0xb8ca0b),_0xb8ca0b;},ge=(_0x28fa7d,_0x4e48b0)=>(_0x4266c0,_0x167655)=>_0x4e48b0(_0x4266c0,_0x167655,_0x28fa7d);exports[_0x265f71(0x319)]=class extends a[_0x265f71(0x1d4)]{constructor(_0x40aa11,_0x3d71f4,_0x2ee4d0,_0x4197a7){const _0x1440af=_0x265f71;super(),u(this,_0x1440af(0x32c),new v[(_0x1440af(0x5e4))](U[_0x1440af(0x5da)])),(this[_0x1440af(0x4c5)]=_0x40aa11,this[_0x1440af(0x330)]=_0x3d71f4,this[_0x1440af(0x555)]=_0x2ee4d0,this[_0x1440af(0x3cf)]=_0x4197a7,this[_0x1440af(0x2e1)](),this[_0x1440af(0x502)]());}[_0x265f71(0x502)](){const _0x22ae41=_0x265f71;this['disposeWithMe'](this['_univerInstanceService'][_0x22ae41(0x1f9)][_0x22ae41(0x337)](v[_0x22ae41(0x280)](()=>{const _0x2b8de4=_0x22ae41,_0x256fa9=this['_univerInstanceService'][_0x2b8de4(0x52f)]();return _0x256fa9?this[_0x2b8de4(0x3cf)][_0x2b8de4(0x4d1)](_0x256fa9[_0x2b8de4(0x4fa)]()):v['of'](null);}),v[_0x22ae41(0x280)](_0x49f3c9=>_0x49f3c9?_0x49f3c9[_0x22ae41(0x348)]:v['of'](U[_0x22ae41(0x5da)])))['subscribe'](_0x5f86c8=>{const _0x3c02c1=_0x22ae41;this[_0x3c02c1(0x32c)][_0x3c02c1(0x53f)](_0x5f86c8);}));}[_0x265f71(0x2e1)](){const _0x31bdee=_0x265f71;this[_0x31bdee(0x256)](this[_0x31bdee(0x330)]['registerComponent'](A[_0x31bdee(0x1e0)][_0x31bdee(0x5d7)],()=>a[_0x31bdee(0x363)](Gi({'status$':this['_status$'][_0x31bdee(0x406)]()}),this['_injector'])));}},exports[_0x265f71(0x319)]=Fi([ge(0x0,a['IUniverInstanceService']),ge(0x1,A[_0x265f71(0x3a1)]),ge(0x2,a[_0x265f71(0x599)](a['Injector'])),ge(0x3,a['Inject'](exports[_0x265f71(0x208)]))],exports[_0x265f71(0x319)]);function Gi(_0x1b23fc){const {status$:_0x490e87}=_0x1b23fc;return function(){const _0x1e4417=_0x5b21;return P[_0x1e4417(0x4c8)](Lt,{'status$':_0x490e87});};}const Qe=a['createIdentifier'](_0x265f71(0x559));var Yi=Object[_0x265f71(0x39e)],Ki=Object[_0x265f71(0x307)],Xi=(_0xc3e247,_0x59b2f8,_0x3c9b44,_0x3e1c28)=>{const _0x4fc1cd=_0x265f71;for(var _0x3e407f=_0x3e1c28>0x1?void 0x0:_0x3e1c28?Ki(_0x59b2f8,_0x3c9b44):_0x59b2f8,_0x96eae2=_0xc3e247[_0x4fc1cd(0x2ce)]-0x1,_0x4548d6;_0x96eae2>=0x0;_0x96eae2--)(_0x4548d6=_0xc3e247[_0x96eae2])&&(_0x3e407f=(_0x3e1c28?_0x4548d6(_0x59b2f8,_0x3c9b44,_0x3e407f):_0x4548d6(_0x3e407f))||_0x3e407f);return _0x3e1c28&&_0x3e407f&&Yi(_0x59b2f8,_0x3c9b44,_0x3e407f),_0x3e407f;},ee=(_0x19e2eb,_0x42f580)=>(_0x83546b,_0x5a6926)=>_0x42f580(_0x83546b,_0x5a6926,_0x19e2eb);exports[_0x265f71(0x4ff)]=class extends a[_0x265f71(0x459)]{constructor(_0x247014,_0x1f74b4,_0x5c4975,_0x500b28,_0x4cad1c,_0xa83592){const _0x5ae65f=_0x265f71;super(),this[_0x5ae65f(0x5a2)]=_0x247014,this[_0x5ae65f(0x4e4)]=_0x1f74b4,this[_0x5ae65f(0x530)]=_0x5c4975,this[_0x5ae65f(0x41e)]=_0x500b28,this[_0x5ae65f(0x308)]=_0x4cad1c,_0xa83592?_0xa83592==null||_0xa83592[_0x5ae65f(0x5b2)]()[_0x5ae65f(0x473)](()=>this[_0x5ae65f(0x211)]()):(this[_0x5ae65f(0x4e4)]['debug'](_0x5ae65f(0x3b3),_0x5ae65f(0x3b1)),this['_init']());}async['_init'](){const _0x4745d0=_0x265f71,_0x6add29=this['_urlService'][_0x4745d0(0x233)](_0x4745d0(0x4fe)),_0x2ef289=this[_0x4745d0(0x5a2)][_0x4745d0(0x233)]('type');if(!_0x6add29||!_0x2ef289){this['_logService'][_0x4745d0(0x3f6)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2ef289)){case $[_0x4745d0(0x527)]:{const _0xcd8d57=await this['_loadSheet'](_0x6add29);this['_setupSubUnitSync'](_0xcd8d57);break;}case $['UNIVER_DOC']:{await this[_0x4745d0(0x47f)](_0x6add29);break;}default:{this[_0x4745d0(0x4e4)][_0x4745d0(0x273)](_0x4745d0(0x3b3),_0x4745d0(0x2d1));break;}}}async[_0x265f71(0x3d4)](_0x671b64){const _0x3bd45b=_0x265f71;await this[_0x3bd45b(0x342)](_0x671b64),_0x671b64[_0x3bd45b(0x3da)][_0x3bd45b(0x337)](v[_0x3bd45b(0x321)](this[_0x3bd45b(0x3e4)]))[_0x3bd45b(0x1d2)](_0x579d0f=>{const _0x32c805=_0x3bd45b;_0x579d0f&&this[_0x32c805(0x3ab)](_0x579d0f);}),this[_0x3bd45b(0x5a2)][_0x3bd45b(0x1ee)]['pipe'](v[_0x3bd45b(0x321)](this['dispose$']))[_0x3bd45b(0x1d2)](()=>this[_0x3bd45b(0x342)](_0x671b64));}['_updateURLWithCurrentState'](_0x220dbe,_0x3259d4=!0x1){const _0x38d34e=_0x265f71,_0x448287=this['_urlService']['getParam'](_0x38d34e(0x317));_0x220dbe[_0x38d34e(0x24d)]()!==_0x448287&&this[_0x38d34e(0x5a2)][_0x38d34e(0x489)](_0x38d34e(0x317),_0x220dbe[_0x38d34e(0x24d)](),_0x3259d4);}async[_0x265f71(0x342)](_0x3c4863){const _0x54dbb1=_0x265f71;var _0x3ac4ee;const _0x40058c=this['_urlService'][_0x54dbb1(0x233)](_0x54dbb1(0x317));if(!_0x40058c||!_0x3c4863[_0x54dbb1(0x587)](_0x40058c)){const _0xc6288b=_0x3c4863[_0x54dbb1(0x5d2)]()[0x0],_0x26d088=_0x3c4863['getSheetBySheetId'](_0xc6288b);if(!_0x26d088)return;this[_0x54dbb1(0x3ab)](_0x26d088,!0x0),await this[_0x54dbb1(0x530)][_0x54dbb1(0x336)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x3c4863[_0x54dbb1(0x4fa)](),'subUnitId':_0xc6288b});return;}((_0x3ac4ee=_0x3c4863['getActiveSheet']())==null?void 0x0:_0x3ac4ee['getSheetId']())!==_0x40058c&&await this[_0x54dbb1(0x530)][_0x54dbb1(0x336)](C[_0x54dbb1(0x331)]['id'],{'unitId':_0x3c4863['getUnitId'](),'subUnitId':_0x40058c});}async[_0x265f71(0x1f8)](_0xfe6287){const _0x145551=_0x265f71;let _0x22d4c8=0x0;const _0x4b4927=await this['_localCacheService']['loadOfflineData'](_0xfe6287);return _0x4b4927&&(_0x4b4927['awaitingChangeset']||_0x4b4927[_0x145551(0x39f)][_0x145551(0x2ce)]!==0x0)&&(_0x22d4c8=_0x4b4927['rev']),_0x22d4c8===0x0&&this[_0x145551(0x4e4)]['debug']('[DataLoaderController]',_0x145551(0x437)),this[_0x145551(0x308)][_0x145551(0x236)](_0xfe6287,_0x22d4c8);}async['_loadDoc'](_0x302907){const _0x40bdfe=_0x265f71;let _0x20eeb1=0x0;const _0x39a123=await this[_0x40bdfe(0x41e)]['loadOfflineData'](_0x302907);return _0x39a123&&(_0x39a123[_0x40bdfe(0x2ad)]||_0x39a123[_0x40bdfe(0x39f)]['length']!==0x0)&&(_0x20eeb1=_0x39a123[_0x40bdfe(0x3fc)]),_0x20eeb1===0x0&&this[_0x40bdfe(0x4e4)]['debug'](_0x40bdfe(0x3b3),_0x40bdfe(0x437)),this[_0x40bdfe(0x308)][_0x40bdfe(0x48b)](_0x302907,_0x20eeb1);}},exports[_0x265f71(0x4ff)]=Xi([ee(0x0,Qe),ee(0x1,a[_0x265f71(0x54c)]),ee(0x2,a['ICommandService']),ee(0x3,a['Inject'](exports[_0x265f71(0x573)])),ee(0x4,a[_0x265f71(0x599)](_['SnapshotService'])),ee(0x5,a['Optional'](Kt[_0x265f71(0x227)]))],exports[_0x265f71(0x4ff)]);var qi=Object[_0x265f71(0x39e)],zi=Object[_0x265f71(0x307)],Ji=(_0x1caa69,_0x2fa03a,_0x236657,_0x225fdb)=>{const _0x3dde42=_0x265f71;for(var _0x550965=_0x225fdb>0x1?void 0x0:_0x225fdb?zi(_0x2fa03a,_0x236657):_0x2fa03a,_0x4a5df2=_0x1caa69[_0x3dde42(0x2ce)]-0x1,_0x571507;_0x4a5df2>=0x0;_0x4a5df2--)(_0x571507=_0x1caa69[_0x4a5df2])&&(_0x550965=(_0x225fdb?_0x571507(_0x2fa03a,_0x236657,_0x550965):_0x571507(_0x550965))||_0x550965);return _0x225fdb&&_0x550965&&qi(_0x2fa03a,_0x236657,_0x550965),_0x550965;},_t=(_0x1b9f79,_0x4cf05b)=>(_0x287f8e,_0x57f0ae)=>_0x4cf05b(_0x287f8e,_0x57f0ae,_0x1b9f79);const Zi=_0x265f71(0x22b),Qi=_0x265f71(0x25d);let Ce=class extends a[_0x265f71(0x1d4)]{constructor(_0x39cb42,_0x448d49){const _0x594ed8=_0x265f71;super(),this[_0x594ed8(0x4c5)]=_0x39cb42,this[_0x594ed8(0x26f)]=_0x448d49,this[_0x594ed8(0x211)]();}[_0x265f71(0x211)](){const _0x428696=_0x265f71;this[_0x428696(0x256)](this['_univerInstanceService'][_0x428696(0x1f9)][_0x428696(0x1d2)](()=>{const _0xec8715=_0x428696;var _0x4688c3;const _0x4de12a=this[_0xec8715(0x4c5)][_0xec8715(0x52f)]();let _0x5d0be5=(_0x4688c3=this['_configService']['getConfig'](Zi))!=null?_0x4688c3:Qi;_0x4de12a instanceof a['Workbook']&&(_0x5d0be5=_0x4de12a[_0xec8715(0x24e)]),document['title']=_0x5d0be5;}));}};Ce=Ji([_t(0x0,a['IUniverInstanceService']),_t(0x1,a['IConfigService'])],Ce);var en=Object[_0x265f71(0x39e)],tn=Object[_0x265f71(0x307)],sn=(_0x45de5f,_0x3b1922,_0x1dcdfa,_0x197c24)=>{for(var _0x27f985=_0x197c24>0x1?void 0x0:_0x197c24?tn(_0x3b1922,_0x1dcdfa):_0x3b1922,_0x43e700=_0x45de5f['length']-0x1,_0x1fa703;_0x43e700>=0x0;_0x43e700--)(_0x1fa703=_0x45de5f[_0x43e700])&&(_0x27f985=(_0x197c24?_0x1fa703(_0x3b1922,_0x1dcdfa,_0x27f985):_0x1fa703(_0x27f985))||_0x27f985);return _0x197c24&&_0x27f985&&en(_0x3b1922,_0x1dcdfa,_0x27f985),_0x27f985;},He=(_0x2f2c57,_0x5b5608)=>(_0x332962,_0x327f80)=>_0x5b5608(_0x332962,_0x327f80,_0x2f2c57);function _0x13c0(){const _0x3515fb=['useRef','setTimeout','Shape','_schedule','univer-online','collaboration_new_changeset','next','change$','every','onlineStatusIcon','allowed','exhaustSavingTask','serializeRangeWithSheet','random','clear','state$','getViewport','1em','RichTextEditingMutation','ILogService','not_collab','_startSheetCollabCursor','beginPath','addObject','saveOfflineData','CHANGESET_ACK','_docTransformSelectionsService','jiqing500','_injector','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_localStorageService','unshift','uni.network.url-service','override','_socketMessageSubscription','M0\x200H16V16H0z','CollaborationEntity','off-line-single','@univerjs/engine-formula','objectType','transform','BASE64','&to=','number','_ws','773703zDTMEo','ranges','YUUMI_RATE_OVER_LIMIT','_sendHeartbeatTimer','HTTPService','onTransformRemoteChangesetByIMECache','fromEvent','/collaborator','_ensureSubject','startTime','resize','current','getConfig','LocalCacheService','getCollabCursors$','UNDEFINED','[CollaborationUndoRedoService]','_getRedoStack','INGEST','min','commentUpdateEvent','univer-online-status-title','_HTTPService','close','SEND_CHANGESET_TIMEOUT_KEY','_onFetchMissResult','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_shapes','removeMember','drawWith','resend','purple300','_updateLocalCache','getSheetBySheetId','createSocket','_onRefRangeChange','_collabCursorState$','getAncestorScale','collaboration-session-retry','registerBeforeClose','handleInsertCol','originalMeta','IURLService','HEARTBEAT_INTERVAL_KEY','_waitCount','image/png','getSkeleton','enableSingleActiveInstanceLock','ICommandService','unitID','getTypeOfUnitDisposed$','Inject','assignAColorForMemberID','font','FETCH_MISS','append','event$','_entities','DocCollaborationEntity','selection','_urlService','reduce','_disabled','_id','url','socket\x20close','transformChangesets','sheetId','sessionStatus','getActiveRange','_onCursorDelete','IUniverInstanceService','updateMember','CollaborationStatus','symbol','revision','whenReady','encode','SheetSkeletonManagerService','getSheetBlock','_checkMissing','/universer-api/file/{fileID}/sign-url','Module','interceptor','call','propertyIsEnumerable','@univerjs/docs-ui','LIVESHARE_OPERATION','OnLineSingle','includes','IBeforeCloseService','LocalUndoRedoService','SetDocZoomRatioOperation','black','find','_unitOnClients','_showConflictNotification','_onConnectionOpen','_colorIndex','leaveEvent','withCredentials','_transformSelections','m1Prime','rxjs','APPLY_PERMISSION_DENIED','_onCombEvent','error$','POST','getUnhiddenWorksheets','_selfUnitIDs','_unitStatus','subscribeEvent','path','HEADER_MENU','socket$','objects','NOT_COLLAB','AWAITING','ws://127.0.0.1:8000/universer-api/comb/connect','HttpExport','RemoveColCommandId','x-univer-host','replaceTextRanges','handleInsertRow','_substituteRedoStack','snapshot','BehaviorSubject','map','searchParams','_state$','forwardRef','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','open$','_transformUndoredo','ALREADY_EXISTS','runRefRangeMutations','getUnit','_beforeCloseService','updatePermissionObjEvent','signUrlServerUrl','UNRECOGNIZED','conflict','changesets','updatePermissionPoint','univer-online-status-icon','setCurrentUser','forEach','IImageIoService','_getUploadFileURL','file','evenodd','startColumn','_tryEnsureSocket','ISnapshotServerService','href','subscribe','APPLY_REVISION_CONFILICT','Disposable','_http','image/jpeg','gold400','doc.mutation.rich-text-editing','_render','[OfflineState]:\x20received\x20changeset.','defs','method','deserializeToCombResponse','pauseCollaboration','_getLoginPath','BuiltInUIPart','split','_decreaseWaiting','_clearLocalCache','newValue','updateCursorEvent','LIVESHARE_NEW_HOST','isInternalEditorID','getUnitOnRev','_onRemoteRejected','_handleHover','delete','clearInterval','CollaborationStatusDisplay','urlChange$','USERS_LEAVE','put','/unit/','CollaborationSessionService','from','UniverInstanceType','reqId','UNIVER_UNKNOWN','red300','_loadSheet','focused$','2025270SvpYnN','_createHandler','Injector','_startTelemetryCollaborationNewChangeset','code','SessionStatus','sheets','HttpImport','_joinRoom','telemetry\x20info\x20is\x20not\x20initialized','_initCommandExecutedListener','CollaborationSocketService','_registerRenderDependencies','width','CollaborationController','session.will-retry','USERS_ENTER','onCommentUpdate','getVpScrollXYInfoByPosToVp','UniverCollaborationPlugin','[CollaborationEntity]','pluginName','_drawAnchor','_init','NOT_FOUND','readAsDataURL','UniverNetworkPlugin','_getSignURL','onRemoteRej','_getSendChangesetTimeout','currentSkeleton$','OTHER_CLIENTS_EDITING','_disableEditing','textRanges','EXCHANGE_SIGN_URL_SERVER_URL_KEY','getTypeOfUnitAdded$','syncEditingCollabCursor','_transformService','[OfflineState]:\x20received\x20rejection.','Rect','LOGIN_URL_KEY','_cursorShapes','get','newCsEvent','_collabSessionService','IRemoteInstanceService','registerHTTPInterceptor','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','Error','DEFAULT_FILE_NAME','send','_getDownloadEndpointURL','top','CHANGESET_REJ','IConfigService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','off-line-single_clip0_910_343','getParam','?size=','isArray','loadSheet','_commentUpdate$','@univerjs/sheets-ui','_redoStacks','_cursor','userID','onTransformIME','_members','Subject','SHOULD_CLOSE_CONN','COMPRESS_MUTATION_APPLY','_docSkeleton','632SFlQvW','0\x200\x2017\x2016','engine','apply','collaMsg','_listenToOnlineEvent','_socket$','toString','_socketReady','RegularPolygon','/resources','getSheetId','name','colorChannel1','_replayCachedMutations','transformMutation','SheetPermissionInitController','onPointerMove$','joinEvent','_fetchMissChangesets','disposeWithMe','_pendingMutations','cmd','handleIRemoveRow','_initResize','touchDependencies','_imageSourceCache','Univer','_updateCollabCursors','[CollaborationSessionService]:\x20socket\x20error','_createInitialState','_saveTaskMap','collaboration-client.offline-data-not-saved','COLLAB_WEB_SOCKET_URL_KEY','Undefined','[CollaborationSessionService]','take','MSG_FOR_ERROR','ColorKit','_getAPIPrefix','ImageIoService','CommandType','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','TOO_MANY_REQUESTS','unit-cache-','_configService','/object/','19268196NnxGku','SUCCUSS','error','UniverIcon','_removeRoom','ERROR_IMAGE','UNAUTHENTICATED','/block/','blue400','getUndoRedoMutationParamsCache','c2Prime','fetchThroughInterceptors','onMouseMove','combineLatest','createInstance','switchMap','popstate','_startDocCollabCursor','visibilitychange','deserializeRangeWithSheet','_substituteUndoStack','_getCurrentRevision','patch','UniverCollaborationClientPlugin','_initModules','editingUnit','MessageType','_scheduleClearOtherTimer','_initCloseConn','_syncEditingCollabCursorService','/universer-api/stream/file/upload','displayName','joinRsp','DocSelectionManagerService','[PendingState]:\x20received\x20rejection.','@univerjs/sheets','onCommandExecuted','NEW_CHANGESETS','onRemoteChangeset','with','_color','_commentService','hovered','getDocRanges','getSheetObject','_sheetSkeletonManagerService','className','_range','useDependency','/-/object/-/batch_allowed','univer-pro.collaboration-client-socket-service','collab-text-anchor-','div','LOCAL_CACHE_INTERVAL_KEY','_config','tag','saveSheetBlock','getCoordByCell','_textBubble','...','awaitingChangeset','COLLAB_SUBMIT_CHANGESET_URL','_event$','verdancy600','UnitSnapshot','registerRenderModule','color','mapDocumentTypeToUniverType','_changesetSessionId','IPermissionService','b64DecodeUnicode','resourceIDs','save','InsertRangeMoveDownCommandId','onPointerEnter$','getActiveSheet','origin','toRgbString','LICENSE_DISTRO_REJECTED','LIVESHARE_REQUEST_HOST','_onConnectionFailed','size','_notificationService','set','UPDATE_CURSOR','_transformPreviousActiveRange','trim','disableLocalCache','bottom','CollaborationSession','collabSubmitChangesetUrl','_cachedData','/-/object/list','length','_sessions','moveTo','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNIVER_DOC','LICENSE_IMPORT_SIZE_EXCEEDED','_toggleOffline','HELLO','toStringTag','_initRequestHeader','memberID','COMMENT_UPDATE','#FFF','_docStateChangeManagerService','_getUndoStack','isTransformMutationsWithChangesetSuccess','Tools','_getMergeRange','Unknown\x20user','_initStatusComponent','collabStatus.synced','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','useObservable','_remoteChangesetQueue','UPDATE_PERMISSION_OBJ','icon','prototype','\x0aCurrent:\x20','FromArray','_exhaustRemoteChangesetQueue','shouldCloseConn','_getCtorByUniverType','permission.content','_scene','_saveCache','_onRemoteACK','isTransformChangesetsSuccess','_roomMembers$','_collaborationPaused','_name','getLatestCsReqIdBySid','getRandomValues','offline','reject','YUUMI_SUBSCRIPTION_NOT_FOUND','unload','SNAPSHOT_SERVER_URL_KEY','_anchor','_lockTransition','_timeoutTimer','_clearOtherTimers','_collaborationTimeoutTimer','attrs','_scheduleSaving','CONNECTOR_DATA_TOO_LARGE','getUnitType','JOINING','getOwnPropertyDescriptor','_snapshotService','_roomMembers','fetchMissingChangesets','[CollaborationSession]','_labelPosition','catch','awaiting_with_pending','enableLocalCache','isTransformMutationsWithChangesetFailure','handleDeleteRangeMoveLeft','replace','getOwnPropertySymbols','hasOwnProperty','_localeService','requestParams','subunit','encodeURIComponent','DesktopCollaborationStatusDisplayController','_incrementRevisionNumber','getCollabEntity','OffLineSingle','INTERNAL_ERROR','fromEventSubject','SetSelectionsOperation','_renderManagerService','takeUntil','COMPRESS_MUTATION_SEND','setActiveRange','_getAPIPrefixPath','onRemoteAck','connection\x20error','delay','_toggleOnline','collab-rect-range-','setUndoRedoMutationParamsCache','getAttachHeader','_status$','textEncoder','eventID','arc','_uiPartsService','SetWorksheetActivateCommand','@univerjs/engine-render','collaborators','use','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','executeCommand','pipe','url(#off-line-single_clip0_910_343)','TRANSFORM_CHANGE_OBSERVABLE_TYPE','baseRev','string','roomInfos','ILocalStorageService','[SyncedState]:\x20received\x20acknowledgement.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','@univerjs/telemetry','getRelativeToViewportCoord','_updateSubUnitFromURLParams','session.connection-failed','on-line-single_clip0_910_349','subUnitId','_onJoinRoomEvent','getRoom','status$','COMPLETION_FINISHED','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','concat','DisposableCollection','onlineStatus','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','endRow','c1Prime','registerRefRange','onload','3927ULuzAN','socket\x20open.','getDeserializedSheetBlock','_getAnchorBounding','getColor','cursorInfo$','_transformIMECache','_updateLocalCursor','_drawRectRange','cursorInfo','RemoveRowCommandId','_send','_registerDependencies','AWAITING_WITH_PENDING','range','getInterceptPoints','connectInjector','FAIL','workbook','fillText','collab-text-range-','members','_isPermissionRej','_onOffline','_colorAssignService','_replaceFileID','routeKey','_getSnapshotAPIPrefix','\x20to\x20','sheetID','_socket','url(#$1','history','_handleJoinEvent','ICollaborationSocketService','univerjs-icon\x20univerjs-icon-','22widUFU','34380YUYILb','DeleteRangeMoveUpCommandId','csRejEvent','/universer-api/authz','_unitID','/universer-api/snapshot/','_entityInit$','LIVESHARE_TERMINATE','NodePositionConvertToRectRange','fill','children','snapshotServerUrl','react','#fff','_telemetryInfo','ImageUploadStatusType','sid','csAckEvent','type','toggleOnline','SnapshotServerOverHTTPService','awaiting','image/gif','YUUMI_URL_COL_OUT_OF_RANGE','getMember','extend','assign','reconnect','UserManagerService','SYNCED','setAlpha','univer-offline','ThemeService','status','isEditing','_clearCollaborationTimeoutTimer','Error\x20on\x20receiving\x20event','liveShareOperation','defineProperty','mutations','_syncEditingCollabCursor','IUIPartsService','xlink:href','Optional','_changesetReqId','_clearScheduledTask','_hovered','UUID','EffectRefRangId','filter','LOCAL_CACHE_INTERVAL','_updateURLWithCurrentState','closeSession','ImageSourceType','_heartbeatTimer','_cursors','_handler','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','docStateChange$','[DataLoaderController]','WebSocketService','onReady','_draw','PERMISSION_DENIED','slice','transformIMECache','_handleHeartbeatEvent','storage','defIds','CommentService','_listenToOfflineEvent','SNAPSHOT_HAS_BEEN_REMOVED','_backgroundColor','onStateChange','SUBMIT_CHANGESET','has','_queuedRemoteChangesets','updateOfflineData','getImageSourceCache','_httpService','_refRangeService','rgba(255,\x20255,\x20255,\x200.01)','CHANGESET_REVISION_CONFILICT','startRow','36rXpoUb','_scheduleHeartbeat','unitId','_collaborationController','&source=','Tooltip','max','now','_setupSubUnitSync','contains','idSuffix','LIVESHARE_FETCH_OPERATIONS','_anchorDot','setShapeProps','activeSheet$','PENDING','_sessionStatus$','disposeUnit','_transformUndoRedoStack','_applyRemoteChangeset','[FetchMissState]','column','UnitEmbedded','appendMutation','dispose$','_initEventListeners','getItem','Warning','url(#on-line-single_clip0_910_349)','fromCollab','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','generateRandomId','_telemetryService','1987060YmzCIB','SEND_CHANGESET_TIMEOUT','post','flatMap','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','target','conflict.title','loginUrlKey','_lastPointer','debug','_updateStatus','PERMISSION_REJ','image/jpg','DependentOn','APPLY_DUPLICATED','rev','all','getMemberID','_change$','liveShareNewHost','FileId','IDLE','selections','headers','setInterval','asObservable','isActive','_tryReconnect','getOffsetConfig','addEventListener','[PendingState]:\x20received\x20acknowledgement.','getCurrent','WorkbookEditablePermission','addObjects','ONLINE','RECV','TEXT_RANGE_LAYER_INDEX','_onUserJoin','collabStatus.conflict','_retryCount','_clearUndo','_sendHeartbeat','onTransformChange$','roomMembers$','collabWebSocketUrl','DocStateChangeManagerService','ITransformService','permissionRejEvent','close$','_localCacheService','AuthzIoHttpService','_createSocket','_updateState','_docSyncEditingCollabCursorService','state','debounce','@univerjs/ui','HTTPRequest','_hideTimer','_eventUnsubscribe','_startCollaboration','LocaleService','_transformStack','ERROR_IMAGE_TYPE','IAuthzIoService','_undoRedoService','svg','requireSession','create','_onLocalMutation','height','setItem','confirm','_cursorInfo$','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_socketService','_transformRemoteChangesetByIMECache','univer-online-status','body','DocIMEInputManagerService','removeParam','values','distinctUntilChanged','DocSkeletonManagerService','copyFileMeta','SheetsSelectionsService','_awaitingChangeset','_context','entries','SNAPSHOT_INVALID_SNAPSHOT','_hover','_collaborationSessionService','_permissionService','saveSnapshot','_scheduleCollaborationTimeoutTimer','_compressMutationService','onMissingChangesets','_userManagerService','NO_OTHER_CLIENTS_EDITING','_clearHeartbeatTimer','synced','_memberService','roles','objectID','updateCollaborator','dispose','@univerjs/design','hide','RxDisposable','_onMessage','indexOf','\x20-\x20','getCurrentRevOfUnit','YUUMI_UNABLE_LOAD_URL','_sheetTransformSelectionsService','getUnitStatus$','_docTransformIMECacheService','downloadEndpointUrl','concatMap','on-line-single','location','params','/object','onSyncEditingCollabCursor','_onRemoteChangeset','deleteCollaborator','collabStatus.offline','session','\x20in\x20_schedule.','result','_removeCollabCursors','[SyncedState]:\x20received\x20rejection.','unsubscribe','_collabCursorController','then','SheetCollabCursorShape','RevisionService','APPLY_NON_SEQUENTIAL_REVISION','unknown','onSendChangeset','ERROR_EXCEED_SIZE','CompressMutationService','triggerDblclick','_throwTelemetryCollaborationNewChangeset','deepClone','bind','_loadDoc','JSONX','ENSURE_SNAPSHOT_EXECUTION','m2Prime','stopTime','_unlockTransition','data','round','toLowerCase','backgroundColor','setParam','_singleActiveUnitService','loadDoc','_candidateSocket','getRangePointData','_getSaveTimeout','push','actions','sessionStatus$','restore','fetchMiss','Vector2','session.room-full','_getScale','_createInitialStateImpl','transformSelections','LICENSE_MAX_UNITS_EXCEEDED','message$','hidden','_removeClearOtherTimer','_handleEvent','save\x20fail\x20reason\x20is\x20','text','@univerjs/rpc','fillStyle','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','debounceTime','_waitForHeartbeatResponse','lineTo','onPointerLeave$','_handleLeaveEvent','useCallback','collaboration.single-unit.warning','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getCurrentUser','{fileID}','skeleton','transformMutationsWithChangeset','collabStatus.syncing','_type','_session','IMessageService','SheetCollaborationEntity','_executeRemoteChangeset','currentTheme$','_scheduleTimestamp','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','5LQyxDa','authzUrl','_setupBeforeClosingHandler','add','_shouldReportTelemetry','createIdentifier','\x0aAfter:\x20','getValue','addImageSourceCache','_drawTextRange','@univerjs-pro/license','fetch_missing','parseProtocolChangeset','_univerInstanceService','onMissedChangesetFetched','pending','createElement','_initUnitPermissionChange','_onCursorUpdate','getMergeData','sequenceExecute','[OfflineState]:\x20received\x20acknowledgement.','/rev/','merge','MUTATION','getCollabEntity$','&assign=','parseChangesetToProtocol','stringify','_online','onlyLocal','_onConflict','INotificationService','CollaborationEvent','INVALID_ARGUMENT','onStarting','PSEUDO_FETCH_MISSING_RESULT','_messageService','online','shareReplay','_assignedColors','_onUserLeave','CONFLICT','UNKNOWN_CMD','_logService','translate(.97)','init','/universer-api/comb','complete','0\x200\x2016\x2016','/universer-api/snapshot','InsertColCommandId','FETCH_MISSING','LICENSE_EXPORT_SIZE_EXCEEDED','univer-pro.collaboration-client.single-active-unit-service','SNAPSHOT_URL_KEY','_refreshCollabCursors','_initMergeInterceptor','isTransformMutationFailure','OFFLINE','getResourcesRequest','_snapshotServerService','[UniverCollaborationClientPlugin]','30645ORRYbY','_revisionService','pushState','getUnitId','LEAVE','_rescheduleHeartbeat','_docSkeletonManagerService','unit','DataLoaderController','reverse','localeService','_initStatusListener','_sendingTimer','registerOnClose','_retryConnectingTimer','UNIVER_PROJECT','editing\x20status\x20changed\x20to','show','replaceState','toggleOffline','measureText','serializeCombRequest','clearTimeout','getCurrentSelections','getWorkbookSelections','getTime','HEARTBEAT','_instanceService','auth.needGotoLoginAlert','JOIN','_acknowledgedAwaitingChangeset','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','list','fetching\x20missing\x20changesets\x20from\x20','_getSheetObject','HEARTBEAT_TIMEOUT_KEY','refreshPermission','transformRemoteChangeset','_state','clipPath','_themeService','APPLY_REJECT','enableAuthServer','getRenderById','UNKNOWN_CODE','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','row','toDisposable','UNIVER_SHEET','COLORS','closePath','isPermissionRej','setWaitCount','transformStack\x20failed!','_transitionLocked','json','getFocusedUnit','_commandService','rxjs/operators','45294eXikmh','none','randomUUID','_stopTelemetryCollaborationNewChangeset','_clearTimeoutTimer','submit\x20changeset\x20error!','IUndoRedoService'];_0x13c0=function(){return _0x3515fb;};return _0x13c0();}let Ee=class{constructor(_0x5ec5d5,_0x283f26,_0x201a53){const _0x18b9b4=_0x265f71;this[_0x18b9b4(0x26f)]=_0x5ec5d5,this[_0x18b9b4(0x3c7)]=_0x283f26,this[_0x18b9b4(0x501)]=_0x201a53,this[_0x18b9b4(0x4e6)]();}['init'](){const _0x174556=_0x265f71;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x9395d1,_0x20cfbd)=>_0x20cfbd(_0x9395d1)[_0x174556(0x337)](v[_0x174556(0x463)](async _0x50700f=>{const _0x282ca4=_0x174556,_0x4ba91a=_0x50700f;if(_0x4ba91a['status']===0x191&&window[_0x282ca4(0x435)](this[_0x282ca4(0x501)]['t'](_0x282ca4(0x513)))){const _0x3d3b29=window[_0x282ca4(0x318)](window[_0x282ca4(0x465)][_0x282ca4(0x1d1)]);window['location'][_0x282ca4(0x1d1)]=this[_0x282ca4(0x1df)]()+'?url='+_0x3d3b29;}return _0x4ba91a;}))});}['_getLoginPath'](){const _0x5017e0=_0x265f71;var _0x28c3af,_0x4972d1;const _0x4e6a0d=this[_0x5017e0(0x26f)][_0x5017e0(0x572)](Et),_0x4f7670=this[_0x5017e0(0x26f)][_0x5017e0(0x572)](L);return(_0x4972d1=(_0x28c3af=_0x4f7670==null?void 0x0:_0x4f7670[_0x5017e0(0x3f4)])!=null?_0x28c3af:_0x4e6a0d)!=null?_0x4972d1:ns;}};Ee=sn([He(0x0,a['IConfigService']),He(0x1,a[_0x265f71(0x599)](N[_0x265f71(0x56a)])),He(0x2,a[_0x265f71(0x599)](a['LocaleService']))],Ee);var nn=Object[_0x265f71(0x39e)],rn=Object[_0x265f71(0x307)],on=(_0x5d0524,_0x5bbe0a,_0x159a27,_0x50cecf)=>{const _0x2357ed=_0x265f71;for(var _0x2d95ed=_0x50cecf>0x1?void 0x0:_0x50cecf?rn(_0x5bbe0a,_0x159a27):_0x5bbe0a,_0xca07be=_0x5d0524[_0x2357ed(0x2ce)]-0x1,_0x5c63c3;_0xca07be>=0x0;_0xca07be--)(_0x5c63c3=_0x5d0524[_0xca07be])&&(_0x2d95ed=(_0x50cecf?_0x5c63c3(_0x5bbe0a,_0x159a27,_0x2d95ed):_0x5c63c3(_0x2d95ed))||_0x2d95ed);return _0x50cecf&&_0x2d95ed&&nn(_0x5bbe0a,_0x159a27,_0x2d95ed),_0x2d95ed;},ut=(_0x37f78a,_0x9dfa17)=>(_0x4257a3,_0x32c4ba)=>_0x9dfa17(_0x4257a3,_0x32c4ba,_0x37f78a);const jt='AUTHZ_URL_KEY',an=_0x265f71(0x37b);exports[_0x265f71(0x41f)]=class extends a[_0x265f71(0x1d4)]{constructor(_0x49a84f,_0x5bb57f){const _0x1acef0=_0x265f71;super(),this[_0x1acef0(0x57c)]=_0x49a84f,this[_0x1acef0(0x26f)]=_0x5bb57f,this[_0x1acef0(0x4f1)]();}[_0x265f71(0x4f1)](){const _0x2d8115=_0x265f71,_0xebf11e=this;this[_0x2d8115(0x256)](this['_HTTPService'][_0x2d8115(0x228)]({'priority':0x3e7,'interceptor':N['MergeInterceptorFactory']({'isMatch'(_0xc4d6bb){const _0x1d2725=_0x2d8115;var _0x40b13a;if(_0xc4d6bb[_0x1d2725(0x1dc)]==='POST'&&((_0x40b13a=_0xc4d6bb[_0x1d2725(0x316)])!=null&&_0x40b13a[_0x1d2725(0x43b)])){const {objectID:_0x581d44,objectType:_0x564622}=_0xc4d6bb[_0x1d2725(0x316)][_0x1d2725(0x43b)]||{};if(!_0x581d44||_0x564622===void 0x0)return!0x1;const _0x4d2760=_0xebf11e[_0x1d2725(0x324)]()+'/'+_0x564622+_0x1d2725(0x270)+_0x581d44+'/allowed';if(_0xc4d6bb[_0x1d2725(0x5a6)]===_0x4d2760)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xf8efd1){const _0x37f6ab=_0x2d8115;var _0x4ab96b;return(_0x4ab96b=_0xf8efd1[_0x37f6ab(0x316)])==null?void 0x0:_0x4ab96b[_0x37f6ab(0x43b)];},'mergeParamsToRequest'(_0x27a45c,_0x51e706){const _0xaff5b5=_0x2d8115,_0x284f6f=_0xebf11e[_0xaff5b5(0x324)]()+_0xaff5b5(0x2a2),_0x57b2d8=_0x27a45c['reduce']((_0x4d38d3,_0x2663f7)=>{const _0x15a1d3=_0xaff5b5,{unitID:_0x9aee34,objectID:_0x270046,objectType:_0x2c5b5e,actions:_0x827cec}=_0x2663f7;return _0x4d38d3[_0x9aee34]||(_0x4d38d3[_0x9aee34]={}),_0x4d38d3[_0x9aee34][_0x270046]||(_0x4d38d3[_0x9aee34][_0x270046]={'objectID':_0x270046,'objectType':_0x2c5b5e,'actions':[]}),_0x4d38d3[_0x9aee34][_0x270046][_0x15a1d3(0x490)][_0x15a1d3(0x48f)](..._0x827cec),_0x4d38d3;},{}),_0x556049=[];for(const _0x3ae000 in _0x57b2d8)for(const _0x71bc80 in _0x57b2d8[_0x3ae000]){const {actions:_0x249441,objectType:_0x45ef10}=_0x57b2d8[_0x3ae000][_0x71bc80],_0x25d407=[...new Set(_0x249441)];_0x556049[_0xaff5b5(0x48f)]({'unitID':_0x3ae000,'objectID':_0x71bc80,'objectType':_0x45ef10,'actions':_0x25d407});}return new N[(_0xaff5b5(0x426))](_0xaff5b5(0x5d1),_0x284f6f,{'headers':_0x51e706['headers'],'withCredentials':_0x51e706[_0xaff5b5(0x5ca)],'responseType':_0x51e706['responseType'],'body':{'requests':_0x556049}});}},{'distributeResult'(_0x28f6f8,_0x4028e8){const _0xaa1902=_0x2d8115,{objectActions:_0x553c5b}=_0x28f6f8;return _0x4028e8[_0xaa1902(0x5e5)](_0x5c7885=>{const _0x40872f=_0xaa1902,{unitID:_0x59a142,objectID:_0x44f6ff,actions:_0x5c6c73}=_0x5c7885,_0xad24e3=_0x553c5b[_0x40872f(0x5c4)](_0x377747=>_0x377747['unitID']===_0x59a142&&_0x377747[_0x40872f(0x454)]===_0x44f6ff),_0x1d2f4a=_0x5c6c73[_0x40872f(0x5e5)](_0x9dd9c1=>_0xad24e3==null?void 0x0:_0xad24e3[_0x40872f(0x490)][_0x40872f(0x5c4)](_0x9b637c=>_0x9b637c['action']===_0x9dd9c1))[_0x40872f(0x3a9)](_0x1a18e4=>!!_0x1a18e4);return{'config':_0x5c7885,'result':{'actions':_0x1d2f4a,'error':_0x28f6f8['error']}};});}})}));}[_0x265f71(0x324)](){const _0x2aff62=_0x265f71;var _0x3ecc73,_0x45711a;const _0x548142=this[_0x2aff62(0x26f)][_0x2aff62(0x572)](jt),_0x560063=this[_0x2aff62(0x26f)][_0x2aff62(0x572)](L);return(_0x45711a=(_0x3ecc73=_0x560063==null?void 0x0:_0x560063[_0x2aff62(0x4b9)])!=null?_0x3ecc73:_0x548142)!=null?_0x45711a:an;}async[_0x265f71(0x431)](_0x949743){const _0x1c8377=_0x265f71,_0x73ac17=this['_getAPIPrefixPath']()+'/'+_0x949743[_0x1c8377(0x560)]+_0x1c8377(0x467);return(await this['_HTTPService'][_0x1c8377(0x3ef)](_0x73ac17,{'body':_0x949743}))[_0x1c8377(0x43b)][_0x1c8377(0x454)]||'';}async[_0x265f71(0x517)](_0x2266af){const _0x2778c4=_0x265f71,_0x40862c=this['_getAPIPrefixPath']()+_0x2778c4(0x2cd);return(await this[_0x2778c4(0x57c)][_0x2778c4(0x3ef)](_0x40862c,{'body':_0x2266af}))[_0x2778c4(0x43b)][_0x2778c4(0x5d9)];}async['update'](_0x5db304){const _0x433db2=_0x265f71,_0x4e77f2=this[_0x433db2(0x324)]()+'/'+_0x5db304['objectType']+_0x433db2(0x270)+_0x5db304[_0x433db2(0x454)];await this['_HTTPService'][_0x433db2(0x1f0)](_0x4e77f2,{'body':_0x5db304});}async[_0x265f71(0x543)](_0x403641){const _0x4baee7=_0x265f71,_0x4185f5=this[_0x4baee7(0x324)]()+'/'+_0x403641['objectType']+'/object/'+_0x403641[_0x4baee7(0x454)]+'/allowed';return(await this[_0x4baee7(0x57c)]['post'](_0x4185f5,{'body':_0x403641}))[_0x4baee7(0x43b)]['actions'];}async['batchAllowed'](_0x25ac52){const _0x47d0df=_0x265f71,_0x473910=this[_0x47d0df(0x324)]()+_0x47d0df(0x2a2);return(await this['_HTTPService']['post'](_0x473910,{'body':{'requests':_0x25ac52}}))['body']['objectActions'];}async['listRoles'](_0xafe775){const _0x1c9bad=_0x265f71,_0x46bada=this[_0x1c9bad(0x324)]()+'/'+_0xafe775[_0x1c9bad(0x560)]+'/role',_0x39529a=await this[_0x1c9bad(0x57c)]['post'](_0x46bada,{'body':_0xafe775});return{'roles':_0x39529a[_0x1c9bad(0x43b)][_0x1c9bad(0x453)],'actions':_0x39529a[_0x1c9bad(0x43b)][_0x1c9bad(0x490)]};}async[_0x265f71(0x46a)](_0x5632d7){const _0x21696f=_0x265f71,_0x4a1c4b=this['_getAPIPrefixPath']()+_0x21696f(0x56d);await this[_0x21696f(0x57c)][_0x21696f(0x1eb)](_0x4a1c4b,{'params':{'collaboratorID':_0x5632d7['collaboratorID'],'objectID':_0x5632d7[_0x21696f(0x454)],'unitID':_0x5632d7[_0x21696f(0x597)]}});}async[_0x265f71(0x455)](_0x47b037){const _0x464f0b=_0x265f71,_0x24bcde=this[_0x464f0b(0x324)]()+'/collaborator';await this['_HTTPService'][_0x464f0b(0x287)](_0x24bcde,{'body':_0x47b037});}async['createCollaborator'](_0x421993){const _0x17997a=_0x265f71,_0x23d5e1=this[_0x17997a(0x324)]()+'/collaborator';await this[_0x17997a(0x57c)][_0x17997a(0x3ef)](_0x23d5e1,{'body':_0x421993});}async['listCollaborators'](_0x507572){const _0x485e0d=_0x265f71,_0x8455b7=this['_getAPIPrefixPath']()+'/collaborator';return(await this['_HTTPService'][_0x485e0d(0x224)](_0x8455b7,{'params':{'objectID':_0x507572[_0x485e0d(0x454)],'unitID':_0x507572[_0x485e0d(0x597)]}}))[_0x485e0d(0x43b)][_0x485e0d(0x333)];}async['putCollaborators'](_0x1210e8){const _0x73b7d1=_0x265f71,_0x2279d1=this[_0x73b7d1(0x324)]()+_0x73b7d1(0x56d);await this[_0x73b7d1(0x57c)]['put'](_0x2279d1,{'body':_0x1210e8});}},exports['AuthzIoHttpService']=on([ut(0x0,a['Inject'](N[_0x265f71(0x56a)])),ut(0x1,a[_0x265f71(0x599)](a[_0x265f71(0x230)]))],exports[_0x265f71(0x41f)]);var cn=Object['defineProperty'],ln=Object[_0x265f71(0x307)],hn=(_0x58268f,_0x37c602,_0x343571,_0x5d475a)=>{const _0x21039e=_0x265f71;for(var _0x103d79=_0x5d475a>0x1?void 0x0:_0x5d475a?ln(_0x37c602,_0x343571):_0x37c602,_0x12f061=_0x58268f[_0x21039e(0x2ce)]-0x1,_0x111e13;_0x12f061>=0x0;_0x12f061--)(_0x111e13=_0x58268f[_0x12f061])&&(_0x103d79=(_0x5d475a?_0x111e13(_0x37c602,_0x343571,_0x103d79):_0x111e13(_0x103d79))||_0x103d79);return _0x5d475a&&_0x103d79&&cn(_0x37c602,_0x343571,_0x103d79),_0x103d79;},_n=(_0x13702d,_0x23cee2)=>(_0x27428e,_0x19a459)=>_0x23cee2(_0x27428e,_0x19a459,_0x13702d);let be=class{constructor(_0x2f985a){const _0xce6824=_0x265f71;this[_0xce6824(0x3c7)]=_0x2f985a,this[_0xce6824(0x2d7)]();}['_initRequestHeader'](){const _0x1be8a3=_0x265f71;this[_0x1be8a3(0x3c7)]['registerHTTPInterceptor']({'interceptor':(_0x193e72,_0x1a69c0)=>{const _0x524b76=_0x1be8a3,_0x38c197=_0x193e72[_0x524b76(0x404)],_0x2b6a31=Xt[_0x524b76(0x32b)]();return _0x2b6a31&&_0x38c197['set'](_0x524b76(0x5df),_0x2b6a31),_0x1a69c0(_0x193e72);}});}};be=hn([_n(0x0,a['Inject'](N['HTTPService']))],be);var un=Object['defineProperty'],dn=Object[_0x265f71(0x307)],Sn=(_0x3bd855,_0x3de274,_0x2b5dfd,_0x25c1f5)=>{for(var _0x228e86=_0x25c1f5>0x1?void 0x0:_0x25c1f5?dn(_0x3de274,_0x2b5dfd):_0x3de274,_0x4384cf=_0x3bd855['length']-0x1,_0x5afc37;_0x4384cf>=0x0;_0x4384cf--)(_0x5afc37=_0x3bd855[_0x4384cf])&&(_0x228e86=(_0x25c1f5?_0x5afc37(_0x3de274,_0x2b5dfd,_0x228e86):_0x5afc37(_0x228e86))||_0x228e86);return _0x25c1f5&&_0x228e86&&un(_0x3de274,_0x2b5dfd,_0x228e86),_0x228e86;},xe=(_0x3aa6ac,_0x4bd214)=>(_0x202ad3,_0x525878)=>_0x4bd214(_0x202ad3,_0x525878,_0x3aa6ac);const vn=[_0x265f71(0x593),_0x265f71(0x1d6),_0x265f71(0x3f9),_0x265f71(0x38e),'image/bmp'],gn=0x5*0x400*0x400,fn=_0x265f71(0x26c),mn=_0x265f71(0x28f),In=_0x265f71(0x21c),pn=_0x265f71(0x5b7);exports[_0x265f71(0x26a)]=class{constructor(_0x1a84ab,_0x234a85,_0x599ead){const _0x122041=_0x265f71;u(this,_0x122041(0x592),0x0),u(this,_0x122041(0x3ff),new v[(_0x122041(0x23e))]()),u(this,_0x122041(0x540),this[_0x122041(0x3ff)]),u(this,_0x122041(0x25c),new Map()),(this[_0x122041(0x3c7)]=_0x1a84ab,this['_configService']=_0x234a85,this[_0x122041(0x4c5)]=_0x599ead);}[_0x265f71(0x52b)](_0x463d65){const _0x827d77=_0x265f71;this[_0x827d77(0x592)]=_0x463d65,this[_0x827d77(0x3ff)]['next'](_0x463d65);}[_0x265f71(0x3c6)](_0x51ff16,_0x1c4528){const _0x5467fd=_0x265f71;if(_0x1c4528===j[_0x5467fd(0x3ad)][_0x5467fd(0x562)]){const _0x57d396=new Image();return _0x57d396['src']=_0x51ff16,_0x57d396;}return this[_0x5467fd(0x25c)]['get'](_0x51ff16);}[_0x265f71(0x4c0)](_0x1a7c6b,_0x1c68c2,_0x27ab66){const _0x3c85a8=_0x265f71;_0x1c68c2===j[_0x3c85a8(0x3ad)]['BASE64']||_0x27ab66==null||this[_0x3c85a8(0x25c)][_0x3c85a8(0x2c4)](_0x1a7c6b,_0x27ab66);}async['getImage'](_0x2c2d74){const _0x32f0f4=_0x265f71;try{const _0x23d5fc=this['_replaceFileID'](this['_getSignURL'](),''+_0x2c2d74),_0x93532e=(await this[_0x32f0f4(0x3c7)][_0x32f0f4(0x224)](_0x23d5fc))[_0x32f0f4(0x43b)];if(_0x93532e[_0x32f0f4(0x273)]&&_0x93532e[_0x32f0f4(0x273)][_0x32f0f4(0x1fe)]===bt['OK']){const _0x5e5128=new URL(_0x93532e[_0x32f0f4(0x5a6)],this[_0x32f0f4(0x22d)]())[_0x32f0f4(0x249)]();return Promise['resolve'](_0x5e5128);}return Promise[_0x32f0f4(0x2f9)](_0x93532e['error']);}catch(_0x30b1cf){return Promise[_0x32f0f4(0x2f9)](_0x30b1cf);}}async['saveImage'](_0x391e90){const _0x5c36fd=_0x265f71;let _0x296814='';if(!vn[_0x5c36fd(0x5bf)](_0x391e90[_0x5c36fd(0x38a)]))return this[_0x5c36fd(0x1e2)](),Promise[_0x5c36fd(0x2f9)](new Error(j[_0x5c36fd(0x387)][_0x5c36fd(0x42c)]));if(_0x391e90[_0x5c36fd(0x2c2)]>gn)return this[_0x5c36fd(0x1e2)](),Promise['reject'](new Error(j[_0x5c36fd(0x387)][_0x5c36fd(0x479)]));try{const _0x193850=new FormData();_0x193850[_0x5c36fd(0x59d)](_0x5c36fd(0x5fc),_0x391e90);const _0x49b0cc=this[_0x5c36fd(0x4c5)][_0x5c36fd(0x52f)](),_0x51549f=_0x49b0cc==null?void 0x0:_0x49b0cc['getUnitId']();if(!_0x51549f)throw new Error('unitId\x20is\x20not\x20found');const _0x4dcef2=this['_getUploadFileURL']()+_0x5c36fd(0x234)+_0x391e90[_0x5c36fd(0x2c2)][_0x5c36fd(0x249)]()+_0x5c36fd(0x3d0)+Tt[_0x5c36fd(0x3e2)]+_0x5c36fd(0x4d2)+encodeURIComponent(_0x51549f),_0x11a027=await(await fetch(_0x4dcef2,{'method':_0x5c36fd(0x5d1),'body':_0x193850}))[_0x5c36fd(0x52e)]();if(typeof _0x11a027[_0x5c36fd(0x401)]!='string')return this[_0x5c36fd(0x1e2)](),Promise[_0x5c36fd(0x2f9)](new Error(j[_0x5c36fd(0x387)]['ERROR_IMAGE']));_0x296814=_0x11a027[_0x5c36fd(0x401)];}catch{return this[_0x5c36fd(0x1e2)](),Promise[_0x5c36fd(0x2f9)](new Error(j[_0x5c36fd(0x387)][_0x5c36fd(0x276)]));}return new Promise((_0x1573bf,_0x7bd5c9)=>{const _0x4b9df4=_0x5c36fd,_0x1cd1f5=new FileReader();_0x1cd1f5[_0x4b9df4(0x213)](_0x391e90),_0x1cd1f5[_0x4b9df4(0x352)]=_0x367d98=>{const _0x4d9895=_0x4b9df4;var _0x5bfc5f;const _0x4e6c6c=(_0x5bfc5f=_0x367d98[_0x4d9895(0x3f2)])==null?void 0x0:_0x5bfc5f[_0x4d9895(0x46e)];if(_0x4e6c6c==null){this[_0x4d9895(0x1e2)](),_0x7bd5c9(new Error(j[_0x4d9895(0x387)][_0x4d9895(0x276)]));return;}const _0x5b95d6=a['Tools'][_0x4d9895(0x3eb)](0x6);_0x1573bf({'imageId':_0x5b95d6,'imageSourceType':j[_0x4d9895(0x3ad)][_0x4d9895(0x3a7)],'source':_0x296814,'base64Cache':_0x4e6c6c,'status':j[_0x4d9895(0x387)][_0x4d9895(0x272)]}),this[_0x4d9895(0x1e2)]();};});}[_0x265f71(0x5fb)](){const _0x4b0337=_0x265f71;var _0x3bc4ec,_0x54f022;const _0x1ac628=this[_0x4b0337(0x26f)]['getConfig'](fn),_0x4c0721=this[_0x4b0337(0x26f)]['getConfig'](L);return(_0x54f022=(_0x3bc4ec=_0x4c0721==null?void 0x0:_0x4c0721['uploadFileServerUrl'])!=null?_0x3bc4ec:_0x1ac628)!=null?_0x54f022:mn;}[_0x265f71(0x215)](){const _0x2ff6a2=_0x265f71;var _0x325c9f,_0x45429c;const _0x1c3bde=this[_0x2ff6a2(0x26f)]['getConfig'](In),_0x5aac93=this['_configService'][_0x2ff6a2(0x572)](L);return(_0x45429c=(_0x325c9f=_0x5aac93==null?void 0x0:_0x5aac93[_0x2ff6a2(0x5f2)])!=null?_0x325c9f:_0x1c3bde)!=null?_0x45429c:pn;}[_0x265f71(0x22d)](){const _0x1270d0=_0x265f71;var _0x59ca73;const _0x5db610=this[_0x1270d0(0x26f)][_0x1270d0(0x572)](L);return(_0x59ca73=_0x5db610==null?void 0x0:_0x5db610[_0x1270d0(0x462)])!=null?_0x59ca73:location[_0x1270d0(0x2bd)];}[_0x265f71(0x36c)](_0x9791bf,_0x55015b){const _0x235527=_0x265f71;return _0x9791bf[_0x235527(0x312)](_0x235527(0x4ac),_0x55015b);}['_decreaseWaiting'](){const _0xf960ae=_0x265f71;this['_waitCount']-=0x1,this['_change$'][_0xf960ae(0x53f)](this[_0xf960ae(0x592)]);}},exports[_0x265f71(0x26a)]=Sn([xe(0x0,a[_0x265f71(0x599)](N['HTTPService'])),xe(0x1,a[_0x265f71(0x230)]),xe(0x2,a['Inject'](a[_0x265f71(0x5ad)]))],exports[_0x265f71(0x26a)]);var Cn=Object[_0x265f71(0x39e)],En=Object['getOwnPropertyDescriptor'],bn=(_0x251fd1,_0xd9824d,_0x5230f7,_0x58824b)=>{const _0xe7ed58=_0x265f71;for(var _0x32d520=_0x58824b>0x1?void 0x0:_0x58824b?En(_0xd9824d,_0x5230f7):_0xd9824d,_0xad2041=_0x251fd1[_0xe7ed58(0x2ce)]-0x1,_0x579f5c;_0xad2041>=0x0;_0xad2041--)(_0x579f5c=_0x251fd1[_0xad2041])&&(_0x32d520=(_0x58824b?_0x579f5c(_0xd9824d,_0x5230f7,_0x32d520):_0x579f5c(_0x32d520))||_0x32d520);return _0x58824b&&_0x32d520&&Cn(_0xd9824d,_0x5230f7,_0x32d520),_0x32d520;},_e=(_0x53674b,_0x2f7d39)=>(_0x487e4e,_0x1ecee2)=>_0x2f7d39(_0x487e4e,_0x1ecee2,_0x53674b);let Te=class extends a[_0x265f71(0x459)]{constructor(_0x395c08,_0x140083,_0x39e58c,_0x117fdd,_0x4c5bf0){const _0x306ff1=_0x265f71;super(),this[_0x306ff1(0x555)]=_0x395c08,this[_0x306ff1(0x4c5)]=_0x140083,this[_0x306ff1(0x449)]=_0x39e58c,this['_collaborationSessionService']=_0x117fdd,this[_0x306ff1(0x315)]=_0x4c5bf0,this[_0x306ff1(0x4c9)](),this[_0x306ff1(0x28d)]();}['_initCloseConn'](){const _0x27ffd1=_0x265f71,_0x496c90=async _0x17096e=>{const _0x561b46=_0x5b21;(await this[_0x561b46(0x448)]['requireSession'](_0x17096e))[_0x561b46(0x59e)]['pipe'](E['filter'](_0x5f205f=>_0x5f205f[_0x561b46(0x32e)]===_[_0x561b46(0x4d9)]['SHOULD_CLOSE_CONN']),E[_0x561b46(0x321)](this['dispose$']))[_0x561b46(0x1d2)](_0x172190=>{const _0x3b548b=_0x561b46,_0x1823a5=_0x172190,{reason:_0x18deb1}=_0x1823a5[_0x3b548b(0x485)];this[_0x3b548b(0x555)]['get'](A[_0x3b548b(0x4b2)])[_0x3b548b(0x508)]({'type':X[_0x3b548b(0x28b)][_0x3b548b(0x22a)],'content':this[_0x3b548b(0x315)]['t']('collaboration.closeRoom')+'('+_0x18deb1+')'}),this['_permissionService']['updatePermissionPoint'](new C['WorkbookEditablePermission'](_0x17096e)['id'],!0x1),this[_0x3b548b(0x448)][_0x3b548b(0x3ac)](_0x17096e);});};v[_0x27ffd1(0x4cf)](this[_0x27ffd1(0x4c5)][_0x27ffd1(0x21d)](a[_0x27ffd1(0x1f4)][_0x27ffd1(0x527)]),this['_univerInstanceService'][_0x27ffd1(0x21d)](a[_0x27ffd1(0x1f4)][_0x27ffd1(0x2d2)]))['pipe'](E[_0x27ffd1(0x5e5)](_0xcb0bcf=>_0xcb0bcf[_0x27ffd1(0x4fa)]()),E[_0x27ffd1(0x3a9)](_0x323635=>!a['isInternalEditorID'](_0x323635)),E[_0x27ffd1(0x321)](this[_0x27ffd1(0x3e4)]))[_0x27ffd1(0x1d2)](_0x56928f=>{_0x496c90(_0x56928f);});}[_0x265f71(0x4c9)](){const _0x397b30=_0x265f71,_0x56117e=async _0x40224a=>{const _0x4beab8=_0x5b21;(await this[_0x4beab8(0x448)][_0x4beab8(0x430)](_0x40224a))['event$'][_0x4beab8(0x337)](E[_0x4beab8(0x3a9)](_0x3e2d82=>_0x3e2d82[_0x4beab8(0x32e)]===_[_0x4beab8(0x4d9)][_0x4beab8(0x2e6)]),E[_0x4beab8(0x321)](this[_0x4beab8(0x3e4)]))[_0x4beab8(0x1d2)](_0x4090f6=>{const _0x13ef73=_0x4beab8,_0x50b90d=_0x4090f6,{objectId:_0x5c6382}=_0x50b90d[_0x13ef73(0x485)],_0x4ba271=this[_0x13ef73(0x555)]['get'](te[_0x13ef73(0x252)]);_0x5c6382===_0x40224a?_0x4ba271['initWorkbookPermissionChange'](_0x40224a):_0x4ba271[_0x13ef73(0x51b)](_0x40224a,_0x5c6382);});};v['merge'](this[_0x397b30(0x4c5)][_0x397b30(0x21d)](a[_0x397b30(0x1f4)][_0x397b30(0x527)]),this[_0x397b30(0x4c5)]['getTypeOfUnitAdded$'](a[_0x397b30(0x1f4)]['UNIVER_DOC']))['pipe'](E['map'](_0x31722f=>_0x31722f[_0x397b30(0x4fa)]()),E[_0x397b30(0x3a9)](_0x5ac1fd=>!a[_0x397b30(0x1e7)](_0x5ac1fd)),E[_0x397b30(0x321)](this[_0x397b30(0x3e4)]))['subscribe'](_0x38fc87=>{_0x56117e(_0x38fc87);});}};Te=bn([_e(0x0,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),_e(0x1,a[_0x265f71(0x5ad)]),_e(0x2,a['IPermissionService']),_e(0x3,a[_0x265f71(0x599)](exports['CollaborationSessionService'])),_e(0x4,a['Inject'](a[_0x265f71(0x42a)]))],Te);var Tn=Object[_0x265f71(0x39e)],Rn=Object[_0x265f71(0x307)],On=(_0x509355,_0x166a34,_0x1f00d8,_0x57c336)=>{const _0x1bb4ac=_0x265f71;for(var _0x363370=_0x57c336>0x1?void 0x0:_0x57c336?Rn(_0x166a34,_0x1f00d8):_0x166a34,_0x459d6e=_0x509355[_0x1bb4ac(0x2ce)]-0x1,_0x37fabe;_0x459d6e>=0x0;_0x459d6e--)(_0x37fabe=_0x509355[_0x459d6e])&&(_0x363370=(_0x57c336?_0x37fabe(_0x166a34,_0x1f00d8,_0x363370):_0x37fabe(_0x363370))||_0x363370);return _0x57c336&&_0x363370&&Tn(_0x166a34,_0x1f00d8,_0x363370),_0x363370;},dt=(_0x2ada0f,_0x314f1b)=>(_0xa652e9,_0x1a0b8e)=>_0x314f1b(_0xa652e9,_0x1a0b8e,_0x2ada0f);exports['SnapshotServerOverHTTPService']=class{constructor(_0x35b86c,_0x5a8e60){const _0x56d344=_0x265f71;this[_0x56d344(0x26f)]=_0x35b86c,this[_0x56d344(0x3c7)]=_0x5a8e60;}async[_0x265f71(0x1e8)](_0x15e948,_0x10db91){const _0x56e0d0=_0x265f71;var _0x26e9bf;const {unitID:_0x1603b8,type:_0x370173,revision:_0x3d4935=0x0}=_0x10db91,_0x1e95ae=this[_0x56e0d0(0x36e)]()+'/'+_0x370173+_0x56e0d0(0x1f1)+_0x1603b8+_0x56e0d0(0x4ce)+_0x3d4935,_0x2b4d41=(await this[_0x56e0d0(0x3c7)][_0x56e0d0(0x224)](_0x1e95ae))[_0x56e0d0(0x43b)],_0x21dd09=(_0x26e9bf=_0x2b4d41[_0x56e0d0(0x5e3)])==null?void 0x0:_0x26e9bf[_0x56e0d0(0x365)];if(_0x21dd09){const _0x167c2d=_0x21dd09==null?void 0x0:_0x21dd09[_0x56e0d0(0x58f)],_0x182939=_[_0x56e0d0(0x32d)][_0x56e0d0(0x5b3)](_[_0x56e0d0(0x2b7)](_0x167c2d));_0x21dd09[_0x56e0d0(0x58f)]=_0x182939,Object[_0x56e0d0(0x445)](_0x21dd09[_0x56e0d0(0x200)])['forEach'](([,_0x137774])=>{const _0x556088=_0x56e0d0,_0x5f4fed=_0x137774['originalMeta'],_0x1930d0=_[_0x556088(0x32d)][_0x556088(0x5b3)](_['b64DecodeUnicode'](_0x5f4fed));_0x137774[_0x556088(0x58f)]=_0x1930d0;});}return _0x2b4d41;}async[_0x265f71(0x5b5)](_0x12fd99,_0xa49801){const _0x191513=_0x265f71,{unitID:_0x3f3b74,type:_0x103278,blockID:_0x4f2119}=_0xa49801,_0x5a0d36=this[_0x191513(0x269)]()+'/'+_0x103278+_0x191513(0x1f1)+_0x3f3b74+'/block/'+_0x4f2119;return(await this[_0x191513(0x3c7)][_0x191513(0x224)](_0x5a0d36))[_0x191513(0x43b)];}async[_0x265f71(0x355)](_0x2f5a3e,_0x13dbcf){const _0x52ce53=_0x265f71,{unitID:_0x5bb277,type:_0x10d53c,blockID:_0x387be5}=_0x13dbcf,_0x1b4c8f=this['_getAPIPrefix']()+_0x52ce53(0x278)+_0x10d53c+'/unit/'+_0x5bb277+'/block/'+_0x387be5;return(await this[_0x52ce53(0x3c7)]['get'](_0x1b4c8f))[_0x52ce53(0x43b)];}async[_0x265f71(0x30a)](_0x48d7c8,_0x48ebf1){const _0x1a09d1=_0x265f71,{unitID:_0x206377,type:_0x57beec,from:_0x556579,to:_0x13303c}=_0x48ebf1,_0xf357f0=this[_0x1a09d1(0x269)]()+'/'+_0x57beec+_0x1a09d1(0x1f1)+_0x206377+'/fetchmissing?from='+_0x556579+_0x1a09d1(0x563)+_0x13303c;return(await this[_0x1a09d1(0x3c7)][_0x1a09d1(0x224)](_0xf357f0))[_0x1a09d1(0x43b)];}[_0x265f71(0x36e)](){const _0x56aaea=_0x265f71;var _0x312270;return(_0x312270=this['_configService'][_0x56aaea(0x572)](vt))!=null?_0x312270:this[_0x56aaea(0x269)]();}[_0x265f71(0x269)](){const _0x1830a5=_0x265f71;var _0x3e104c,_0x2ea24c;const _0x4ba482=this['_configService'][_0x1830a5(0x572)](St),_0x5e5249=this['_configService'][_0x1830a5(0x572)](L);return(_0x2ea24c=(_0x3e104c=_0x5e5249==null?void 0x0:_0x5e5249[_0x1830a5(0x383)])!=null?_0x3e104c:_0x4ba482)!=null?_0x2ea24c:qt;}async[_0x265f71(0x4f4)](_0x3b6bc9,_0x4ade16){const _0x2ad8c3=_0x265f71,_0x1d12ef=_0x2ad8c3(0x37d)+_0x4ade16['type']+_0x2ad8c3(0x1f1)+_0x4ade16['unitID']+_0x2ad8c3(0x24c);return(await this[_0x2ad8c3(0x3c7)][_0x2ad8c3(0x224)](_0x1d12ef,{'params':{'resourceId':JSON[_0x2ad8c3(0x4d4)](_0x4ade16[_0x2ad8c3(0x2b8)])}}))['body'];}[_0x265f71(0x44a)](){const _0x86133=_0x265f71;throw new Error(_0x86133(0x33f));}[_0x265f71(0x2a9)](){const _0x2888b8=_0x265f71;throw new Error(_0x2888b8(0x33f));}['saveChangeset'](){const _0x1d5f09=_0x265f71;throw new Error(_0x1d5f09(0x33f));}[_0x265f71(0x441)](){const _0x3c0a2b=_0x265f71;throw new Error(_0x3c0a2b(0x33f));}[_0x265f71(0x2f6)](){const _0x7ee9dc=_0x265f71;throw new Error(_0x7ee9dc(0x33f));}},exports[_0x265f71(0x38c)]=On([dt(0x0,a[_0x265f71(0x230)]),dt(0x1,a['Inject'](N[_0x265f71(0x56a)]))],exports[_0x265f71(0x38c)]);var Dn=Object[_0x265f71(0x39e)],yn=Object['getOwnPropertyDescriptor'],Un=(_0x57c389,_0x4ed1ff,_0x3b0b02,_0x518b1a)=>{const _0x140368=_0x265f71;for(var _0x13eb41=_0x518b1a>0x1?void 0x0:_0x518b1a?yn(_0x4ed1ff,_0x3b0b02):_0x4ed1ff,_0x10605d=_0x57c389[_0x140368(0x2ce)]-0x1,_0x19e835;_0x10605d>=0x0;_0x10605d--)(_0x19e835=_0x57c389[_0x10605d])&&(_0x13eb41=(_0x518b1a?_0x19e835(_0x4ed1ff,_0x3b0b02,_0x13eb41):_0x19e835(_0x13eb41))||_0x13eb41);return _0x518b1a&&_0x13eb41&&Dn(_0x4ed1ff,_0x3b0b02,_0x13eb41),_0x13eb41;},ue=(_0x1f0130,_0x3912d8)=>(_0x49f64e,_0x2355b2)=>_0x3912d8(_0x49f64e,_0x2355b2,_0x1f0130);let Fe=class extends a[_0x265f71(0x5c1)]{constructor(_0x593466,_0x59c4c1,_0x526c33,_0x2caaaf,_0x31af7b){const _0x4a6ef2=_0x265f71;super(_0x593466,_0x59c4c1,_0x526c33),this[_0x4a6ef2(0x21f)]=_0x2caaaf,this[_0x4a6ef2(0x4e4)]=_0x31af7b;}['transformUndoRedo'](_0x478bd0,_0xa42804){const _0x57588a=_0x265f71,_0x133f93=this[_0x57588a(0x2dc)](_0x478bd0);if(_0x133f93)try{const _0x145622=this[_0x57588a(0x42b)](_0x133f93,_0xa42804);this['_substituteUndoStack'](_0x478bd0,_0x145622);}catch(_0x484336){this['_logService'][_0x57588a(0x273)]('[CollaborationUndoRedoService]',_0x484336),this[_0x57588a(0x415)](_0x478bd0);}const _0x14c25b=this[_0x57588a(0x577)](_0x478bd0);if(_0x14c25b)try{const _0x4d6eb4=this['_transformStack'](_0x14c25b,_0xa42804);this[_0x57588a(0x5e2)](_0x478bd0,_0x4d6eb4);}catch(_0x470da7){this['_logService'][_0x57588a(0x273)](_0x470da7),this['_clearRedo'](_0x478bd0);}}['_clearUndo'](_0x166063){const _0x5684a3=_0x265f71,_0x529c79=this[_0x5684a3(0x2dc)](_0x166063);_0x529c79&&(_0x529c79[_0x5684a3(0x2ce)]=0x0,this[_0x5684a3(0x3f7)]());}['_clearRedo'](_0x504d2f){const _0x39ee0c=_0x265f71,_0x2fbde9=this[_0x39ee0c(0x577)](_0x504d2f);_0x2fbde9&&(_0x2fbde9[_0x39ee0c(0x2ce)]=0x0,this[_0x39ee0c(0x3f7)]());}[_0x265f71(0x285)](_0x284485,_0x5a9f6e){const _0x57ecdc=_0x265f71;this['_undoStacks'][_0x57ecdc(0x2c4)](_0x284485,_0x5a9f6e),this[_0x57ecdc(0x3f7)]();}[_0x265f71(0x5e2)](_0x48167f,_0x2f2f85){const _0x108f07=_0x265f71;this[_0x108f07(0x239)][_0x108f07(0x2c4)](_0x48167f,_0x2f2f85),this[_0x108f07(0x3f7)]();}[_0x265f71(0x42b)](_0x5ef91d,_0x39d5d2){const _0x434a89=_0x265f71,_0x5277e3=[];let _0x1c732d=_0x39d5d2,_0x476601=_0x39d5d2;for(let _0x348cdc=_0x5ef91d[_0x434a89(0x2ce)]-0x1;_0x348cdc>=0x0;_0x348cdc--){const {unitID:_0x3be69c,undoMutations:_0x4d4a7e,redoMutations:_0x5a9d93}=_0x5ef91d[_0x348cdc],_0x51f305=this[_0x434a89(0x21f)]['transformMutationsWithChangeset'](_0x1c732d,_0x4d4a7e),_0x127210=this[_0x434a89(0x21f)]['transformMutationsWithChangeset'](_0x476601,_0x5a9d93);if(_[_0x434a89(0x310)](_0x51f305)||_['isTransformMutationsWithChangesetFailure'](_0x127210)){this[_0x434a89(0x4e4)]['error'](_0x434a89(0x576),_0x434a89(0x52c),_0x51f305,_0x127210);break;}_0x1c732d=_0x51f305['c1Prime'],_0x476601=_0x127210[_0x434a89(0x350)],_0x5277e3[_0x434a89(0x48f)]({'unitID':_0x3be69c,'undoMutations':_0x51f305[_0x434a89(0x482)],'redoMutations':_0x127210['m2Prime']});}return _0x5277e3[_0x434a89(0x500)]();}};Fe=Un([ue(0x0,a[_0x265f71(0x5ad)]),ue(0x1,a[_0x265f71(0x596)]),ue(0x2,a['IContextService']),ue(0x3,_['ITransformService']),ue(0x4,a[_0x265f71(0x54c)])],Fe);class $t extends a['RxDisposable']{constructor(){const _0x32f374=_0x265f71;super(),u(this,_0x32f374(0x1ee)),this['urlChange$']=v[_0x32f374(0x56c)](window,_0x32f374(0x281))[_0x32f374(0x337)](v['takeUntil'](this[_0x32f374(0x3e4)]),v[_0x32f374(0x4df)](0x1),v['mapTo'](void 0x0));}[_0x265f71(0x489)](_0x46001f,_0x312cef,_0x70a24f=!0x1){const _0x4fb2fd=_0x265f71,_0xe28db8=new URL(window[_0x4fb2fd(0x465)][_0x4fb2fd(0x1d1)]);_0xe28db8['searchParams']['set'](_0x46001f,_0x312cef),_0x70a24f?window['history'][_0x4fb2fd(0x509)]('','',_0xe28db8[_0x4fb2fd(0x249)]()):window[_0x4fb2fd(0x373)][_0x4fb2fd(0x4f9)]('','',_0xe28db8[_0x4fb2fd(0x249)]());}[_0x265f71(0x43d)](_0x1ba635,_0x48d119=!0x1){const _0x3fbdba=_0x265f71,_0x5a90fd=new URL(window[_0x3fbdba(0x465)][_0x3fbdba(0x1d1)]);_0x5a90fd['searchParams']['delete'](_0x1ba635),_0x48d119?window[_0x3fbdba(0x373)]['replaceState']('','',_0x5a90fd[_0x3fbdba(0x249)]()):window[_0x3fbdba(0x373)]['pushState']('','',_0x5a90fd[_0x3fbdba(0x249)]());}['getParam'](_0x23a842){const _0x38dfad=_0x265f71;var _0x296962;return(_0x296962=new URL(window[_0x38dfad(0x465)][_0x38dfad(0x1d1)])[_0x38dfad(0x5e6)][_0x38dfad(0x224)](_0x23a842))!=null?_0x296962:void 0x0;}}var Ht=Object[_0x265f71(0x39e)],Pn=Object[_0x265f71(0x307)],wn=(_0x44906a,_0x12656a,_0x4392bc)=>_0x12656a in _0x44906a?Ht(_0x44906a,_0x12656a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4392bc}):_0x44906a[_0x12656a]=_0x4392bc,Nn=(_0x511113,_0x17a8ef,_0x3963f4,_0x39b5ff)=>{for(var _0x5d83ed=_0x39b5ff>0x1?void 0x0:_0x39b5ff?Pn(_0x17a8ef,_0x3963f4):_0x17a8ef,_0x58b826=_0x511113['length']-0x1,_0x2497eb;_0x58b826>=0x0;_0x58b826--)(_0x2497eb=_0x511113[_0x58b826])&&(_0x5d83ed=(_0x39b5ff?_0x2497eb(_0x17a8ef,_0x3963f4,_0x5d83ed):_0x2497eb(_0x5d83ed))||_0x5d83ed);return _0x39b5ff&&_0x5d83ed&&Ht(_0x17a8ef,_0x3963f4,_0x5d83ed),_0x5d83ed;},fe=(_0x1504cd,_0x3faffc)=>(_0x5bb465,_0x4d9c31)=>_0x3faffc(_0x5bb465,_0x4d9c31,_0x1504cd),Mn=(_0x1161ce,_0x27943c,_0x43f059)=>wn(_0x1161ce,_0x27943c+'',_0x43f059);const An='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x265f71(0x288)]=class extends a['Plugin']{constructor(_0x2b540b=rs,_0x387572,_0x3b38fd,_0x5db4fc,_0x530a40){const _0x4874cb=_0x265f71;super(),this[_0x4874cb(0x2a7)]=_0x2b540b,this[_0x4874cb(0x4e4)]=_0x387572,this['_renderManagerService']=_0x3b38fd,this[_0x4874cb(0x555)]=_0x5db4fc,this[_0x4874cb(0x26f)]=_0x530a40;const {..._0x3bca61}=this['_config'];this[_0x4874cb(0x26f)]['setConfig'](L,_0x3bca61);}[_0x265f71(0x4db)](){const _0x3b12f2=_0x265f71;this[_0x3b12f2(0x35f)](),a[_0x3b12f2(0x25b)](this[_0x3b12f2(0x555)],[[ne],[exports[_0x3b12f2(0x4ff)]],[Te]]);}[_0x265f71(0x3b5)](){const _0x3f9620=_0x265f71;a[_0x3f9620(0x25b)](this['_injector'],[[Ce]]);}['onRendered'](){const _0x59cb55=_0x265f71;this[_0x59cb55(0x206)]();}[_0x265f71(0x35f)](){const _0x590eff=_0x265f71;var _0x2096d2,_0xb006dd,_0x26dee2,_0xe3c246;this['_injector'][_0x590eff(0x3c3)](a[_0x590eff(0x538)])&&this['_logService']['error'](_0x590eff(0x4f6),_0x590eff(0x580));let _0x5e91bb=[[a[_0x590eff(0x538)],{'useClass':Fe}],[exports[_0x590eff(0x1f2)]],[Je],[Qe,{'useClass':$t}],[q],[exports[_0x590eff(0x573)]],[N['WebSocketService']],[Ie],[pe],[me],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0xb006dd=(_0x2096d2=this[_0x590eff(0x2a7)])==null?void 0x0:_0x2096d2['socketService'])!=null?_0xb006dd:exports[_0x590eff(0x205)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x590eff(0x38c)]}],[a[_0x590eff(0x42d)],{'useClass':exports[_0x590eff(0x41f)]}],[j[_0x590eff(0x5fa)],{'useClass':exports[_0x590eff(0x26a)]}],[exports[_0x590eff(0x208)]],[exports[_0x590eff(0x4ff)]],[exports['DesktopCollaborationStatusDisplayController']],[Ce],[ne]];(_0x26dee2=this['_config'])!=null&&_0x26dee2[_0x590eff(0x595)]&&_0x5e91bb['push']([Re,{'useClass':$s}]),_0x5e91bb=a['mergeOverrideWithDependencies'](_0x5e91bb,(_0xe3c246=this['_config'])==null?void 0x0:_0xe3c246[_0x590eff(0x55a)]),_0x5e91bb[_0x590eff(0x5f9)](_0x10855f=>this[_0x590eff(0x555)]['add'](_0x10855f)),this[_0x590eff(0x289)]();}['_registerRenderDependencies'](){const _0x3127b9=_0x265f71;this['disposeWithMe'](this[_0x3127b9(0x320)][_0x3127b9(0x2b2)](a[_0x3127b9(0x1f4)]['UNIVER_DOC'],[Ve])),this[_0x3127b9(0x256)](this[_0x3127b9(0x320)][_0x3127b9(0x2b2)](a[_0x3127b9(0x1f4)][_0x3127b9(0x527)],[We]));}['_initModules'](){const _0x51abe1=_0x265f71;var _0x5f4cc0,_0x3d7b8b;this[_0x51abe1(0x555)][_0x51abe1(0x224)](N[_0x51abe1(0x56a)])[_0x51abe1(0x228)]({'priority':0x14,'interceptor':N['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x51abe1(0x555)][_0x51abe1(0x224)](be),(_0x5f4cc0=this['_config'])!=null&&_0x5f4cc0['enableOfflineEditing']||this[_0x51abe1(0x555)][_0x51abe1(0x224)](exports[_0x51abe1(0x573)])[_0x51abe1(0x2c8)](),(_0x3d7b8b=this[_0x51abe1(0x2a7)])!=null&&_0x3d7b8b[_0x51abe1(0x521)]&&this[_0x51abe1(0x555)][_0x51abe1(0x224)](Ee),this[_0x51abe1(0x555)]['get'](exports['CollaborationController']),this['_injector'][_0x51abe1(0x3c3)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x51abe1(0x555)][_0x51abe1(0x224)](exports[_0x51abe1(0x319)]);}},Mn(exports[_0x265f71(0x288)],_0x265f71(0x20f),An),exports[_0x265f71(0x288)]=Nn([a[_0x265f71(0x3fa)](_[_0x265f71(0x20d)],N[_0x265f71(0x214)]),fe(0x1,a['ILogService']),fe(0x2,O['IRenderManagerService']),fe(0x3,a[_0x265f71(0x599)](a[_0x265f71(0x1fc)])),fe(0x4,a[_0x265f71(0x230)])],exports[_0x265f71(0x288)]),exports['AUTHZ_URL_KEY']=jt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=Ct,exports[_0x265f71(0x263)]=gt,exports[_0x265f71(0x5af)]=U,exports[_0x265f71(0x1ed)]=Lt,exports[_0x265f71(0x3bd)]=Xe,exports[_0x265f71(0x591)]=ft,exports[_0x265f71(0x51a)]=Ge,exports[_0x265f71(0x375)]=Ke,exports[_0x265f71(0x590)]=Qe,exports[_0x265f71(0x2a6)]=pt,exports[_0x265f71(0x222)]=Et,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=It,exports[_0x265f71(0x57e)]=zt,exports[_0x265f71(0x2fc)]=St,exports[_0x265f71(0x4ef)]=vt,exports[_0x265f71(0x1ff)]=H,exports[_0x265f71(0x474)]=Pt,exports['WebURLService']=$t,exports[_0x265f71(0x1dd)]=Rt,exports[_0x265f71(0x50c)]=Ot;