@univerjs-pro/collaboration-client 0.4.1-nightly.202410271605 → 0.4.1-nightly.202410281606

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 _0x4aaaf0=_0x47ba;(function(_0xb25288,_0x4803be){const _0x3dde52=_0x47ba,_0x277f74=_0xb25288();while(!![]){try{const _0x3701b3=-parseInt(_0x3dde52(0x51c))/0x1*(-parseInt(_0x3dde52(0x57b))/0x2)+parseInt(_0x3dde52(0x40a))/0x3*(parseInt(_0x3dde52(0x2ea))/0x4)+-parseInt(_0x3dde52(0x3fe))/0x5*(-parseInt(_0x3dde52(0x427))/0x6)+-parseInt(_0x3dde52(0x48b))/0x7+parseInt(_0x3dde52(0x35c))/0x8*(parseInt(_0x3dde52(0x518))/0x9)+parseInt(_0x3dde52(0x2dd))/0xa*(-parseInt(_0x3dde52(0x39e))/0xb)+-parseInt(_0x3dde52(0x42f))/0xc*(-parseInt(_0x3dde52(0x29f))/0xd);if(_0x3701b3===_0x4803be)break;else _0x277f74['push'](_0x277f74['shift']());}catch(_0x5b3e6d){_0x277f74['push'](_0x277f74['shift']());}}}(_0x98ab,0xb7bec));var Gt=Object[_0x4aaaf0(0x562)],Yt=(_0x1704e6,_0xb2b0d4,_0x583fa4)=>_0xb2b0d4 in _0x1704e6?Gt(_0x1704e6,_0xb2b0d4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x583fa4}):_0x1704e6[_0xb2b0d4]=_0x583fa4,u=(_0x350e47,_0xca1650,_0x4f030a)=>Yt(_0x350e47,typeof _0xca1650!='symbol'?_0xca1650+'':_0xca1650,_0x4f030a);Object[_0x4aaaf0(0x562)](exports,Symbol[_0x4aaaf0(0x39a)],{'value':_0x4aaaf0(0x598)});const a=require(_0x4aaaf0(0x5ba)),v=require(_0x4aaaf0(0x1b5)),E=require(_0x4aaaf0(0x274)),J=require(_0x4aaaf0(0x5b2)),A=require(_0x4aaaf0(0x260)),U=require(_0x4aaaf0(0x2d6)),_=require(_0x4aaaf0(0x3be)),Kt=require(_0x4aaaf0(0x1b3)),N=require('@univerjs/docs-ui'),C=require('@univerjs/sheets'),O=require('@univerjs/engine-render'),ne=require(_0x4aaaf0(0x3e5)),j=require('@univerjs/drawing'),Qe=require(_0x4aaaf0(0x3fd)),ie=require(_0x4aaaf0(0x307)),y=require('react'),Xt=require('@univerjs/rpc'),qt=require(_0x4aaaf0(0x4cf)),dt=_0x4aaaf0(0x2bf),zt=_0x4aaaf0(0x4fd),St=_0x4aaaf0(0x30c),Jt=_0x4aaaf0(0x2f6),Zt=0x7d0,vt=_0x4aaaf0(0x308),Qt='ws://127.0.0.1:8000/universer-api/comb/connect',mt=_0x4aaaf0(0x316),es=0x7530,Fe=_0x4aaaf0(0x366),gt=0x4e20,ts=0x4e20,ft=_0x4aaaf0(0x4a7),ss=0x3,It=_0x4aaaf0(0x424),is=0x3e8,pt=_0x4aaaf0(0x2e5),ns=_0x4aaaf0(0x364),Ct=_0x4aaaf0(0x594),rs=_0x4aaaf0(0x5de);var Et=(_0x1df6b4=>(_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x242)]=0x0]=_0x4aaaf0(0x242),_0x1df6b4[_0x1df6b4['OK']=0x1]='OK',_0x1df6b4[_0x1df6b4['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x549)]=0x3]=_0x4aaaf0(0x549),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x297)]=0x4]=_0x4aaaf0(0x297),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x393)]=0x5]=_0x4aaaf0(0x393),_0x1df6b4[_0x1df6b4['ALREADY_EXISTS']=0x6]=_0x4aaaf0(0x1f3),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1d0)]=0x7]=_0x4aaaf0(0x1d0),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x527)]=0x8]=_0x4aaaf0(0x527),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x443)]=0x9]=_0x4aaaf0(0x443),_0x1df6b4[_0x1df6b4['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4aaaf0(0x21d),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1f5)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1dd)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x440)]=0x1773]=_0x4aaaf0(0x440),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3e8)]=0x1b59]=_0x4aaaf0(0x3e8),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x555)]=0x1b5a]=_0x4aaaf0(0x555),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3a7)]=0x1b5b]=_0x4aaaf0(0x3a7),_0x1df6b4[_0x1df6b4['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4aaaf0(0x4fb),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x287)]=0x1b5d]=_0x4aaaf0(0x287),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x266)]=0x1f41]=_0x4aaaf0(0x266),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x5ab)]=0x2329]=_0x4aaaf0(0x5ab),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x4eb)]=0x232a]=_0x4aaaf0(0x4eb),_0x1df6b4[_0x1df6b4['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4aaaf0(0x1e3),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3b1)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x503)]=0x232d]=_0x4aaaf0(0x503),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x57c)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x1ca)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x530)]=0x2713]=_0x4aaaf0(0x530),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x3ad)]=0x2714]=_0x4aaaf0(0x3ad),_0x1df6b4[_0x1df6b4[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x1df6b4))(Et||{}),H=(_0x55f0e2=>(_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x20e)]=0x0]=_0x4aaaf0(0x20e),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x238)]=0x1]=_0x4aaaf0(0x238),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x4d0)]=0x2]=_0x4aaaf0(0x4d0),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x592)]=0x3]=_0x4aaaf0(0x592),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x3e3)]=0x4]=_0x4aaaf0(0x3e3),_0x55f0e2[_0x55f0e2[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x55f0e2))(H||{}),b=(_0x13d56a=>(_0x13d56a[_0x13d56a[_0x4aaaf0(0x541)]=0x0]='UNKNOWN_CMD',_0x13d56a[_0x13d56a[_0x4aaaf0(0x437)]=0x1]=_0x4aaaf0(0x437),_0x13d56a[_0x13d56a[_0x4aaaf0(0x29c)]=0x2]=_0x4aaaf0(0x29c),_0x13d56a[_0x13d56a[_0x4aaaf0(0x523)]=0x3]=_0x4aaaf0(0x523),_0x13d56a[_0x13d56a[_0x4aaaf0(0x20c)]=0x4]=_0x4aaaf0(0x20c),_0x13d56a[_0x13d56a[_0x4aaaf0(0x494)]=0x5]=_0x4aaaf0(0x494),_0x13d56a[_0x13d56a[_0x4aaaf0(0x441)]=0x6]=_0x4aaaf0(0x441),_0x13d56a[_0x13d56a[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x13d56a))(b||{}),Ge=(_0x1b1968=>(_0x1b1968[_0x1b1968[_0x4aaaf0(0x403)]=0x0]=_0x4aaaf0(0x403),_0x1b1968[_0x1b1968['OK']=0x1]='OK',_0x1b1968[_0x1b1968[_0x4aaaf0(0x354)]=0x2]=_0x4aaaf0(0x354),_0x1b1968[_0x1b1968[_0x4aaaf0(0x417)]=-0x1]=_0x4aaaf0(0x417),_0x1b1968))(Ge||{}),bt=(_0x5c0751=>(_0x5c0751[_0x5c0751['Undefined']=0x0]=_0x4aaaf0(0x347),_0x5c0751[_0x5c0751[_0x4aaaf0(0x374)]=0x1]=_0x4aaaf0(0x374),_0x5c0751[_0x5c0751['HttpExport']=0x2]=_0x4aaaf0(0x38d),_0x5c0751[_0x5c0751[_0x4aaaf0(0x361)]=0x3]=_0x4aaaf0(0x361),_0x5c0751[_0x5c0751[_0x4aaaf0(0x4bf)]=0x4]=_0x4aaaf0(0x4bf),_0x5c0751[_0x5c0751[_0x4aaaf0(0x417)]=-0x1]='UNRECOGNIZED',_0x5c0751))(bt||{});const $=_0x4aaaf0(0x208),os={};function Tt(_0x49584d){const _0x4fd126=_0x4aaaf0;var _0x5460ce,_0x3b37ed,_0x28b0d8,_0x46ff4e,_0x477598;const _0x279b95=_0x49584d[_0x4fd126(0x2cf)],_0x5217f5=JSON[_0x4fd126(0x249)](_0x279b95);switch(_0x5217f5['cmd']){case b[_0x4fd126(0x494)]:case b['HELLO']:{const _0x34c5fe=_0x5217f5['infoRsp'];return{..._0x5217f5,'data':_0x34c5fe,'cmd':_0x5217f5[_0x4fd126(0x451)]};}case b[_0x4fd126(0x29c)]:{const _0x50eb13=_0x5217f5[_0x4fd126(0x56d)];return{..._0x5217f5,'data':_0x50eb13,'cmd':_0x5217f5['cmd']};}case b['RECV']:{const _0x477b3f=_0x5217f5[_0x4fd126(0x26f)];switch(_0x477b3f[_0x4fd126(0x405)]){case _[_0x4fd126(0x2bb)][_0x4fd126(0x553)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x5460ce=_0x477b3f[_0x4fd126(0x2df)])==null?void 0x0:_0x5460ce['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x540)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x3b37ed=_0x477b3f[_0x4fd126(0x410)])==null?void 0x0:_0x3b37ed['cs']},'cmd':_0x5217f5['cmd']};case _[_0x4fd126(0x2bb)][_0x4fd126(0x258)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x28b0d8=_0x477b3f[_0x4fd126(0x232)])==null?void 0x0:_0x28b0d8['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent']['CHANGESET_REJ']:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x46ff4e=_0x477b3f[_0x4fd126(0x5d6)])==null?void 0x0:_0x46ff4e['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x5d7)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':(_0x477598=_0x477b3f['csShouldRetryEvent'])==null?void 0x0:_0x477598['cs']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x1d5)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x5ae)]},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent'][_0x4fd126(0x475)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x2a2)]},'cmd':_0x5217f5['cmd']};case _['CollaborationEvent'][_0x4fd126(0x3b0)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['leaveEvent']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent'][_0x4fd126(0x1dc)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x49e)]},'cmd':_0x5217f5['cmd']};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x4fd126(0x2bb)]['LIVESHARE_OPERATION']:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['liveShareOperation']},'cmd':_0x5217f5['cmd']};case _['CollaborationEvent'][_0x4fd126(0x5e1)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['liveShareNewHost']},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x5217f5,'data':_0x477b3f,'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x556)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x35b)]},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)]['UPDATE_PERMISSION_OBJ']:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f[_0x4fd126(0x3a4)]},'cmd':_0x5217f5[_0x4fd126(0x451)]};case _[_0x4fd126(0x2bb)][_0x4fd126(0x5d2)]:return{..._0x5217f5,'data':{..._0x477b3f,'data':_0x477b3f['shouldCloseConn']},'cmd':_0x5217f5['cmd']};default:return _0x5217f5;}}default:return _0x5217f5;}}function Rt(_0x3e5f33){const _0x15ebb8=_0x4aaaf0;switch(_0x3e5f33[_0x15ebb8(0x451)]){case b[_0x15ebb8(0x494)]:case b['HELLO']:return JSON[_0x15ebb8(0x24c)]({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33[_0x15ebb8(0x2ab)]});case b['INGEST']:{let _0x42f6a1;switch(_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x405)]){case _['CollaborationEvent']['UPDATE_CURSOR']:{_0x42f6a1={'eventID':_['CollaborationEvent'][_0x15ebb8(0x1d5)],'updateCursorEvent':_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x2cf)]};break;}case _['CollaborationEvent'][_0x15ebb8(0x3b0)]:{_0x42f6a1={'eventID':_['CollaborationEvent'][_0x15ebb8(0x3b0)],'leaveEvent':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)][_0x15ebb8(0x475)],'joinEvent':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)][_0x15ebb8(0x1dc)]:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)][_0x15ebb8(0x1dc)],'liveShareNewHost':_0x3e5f33['data']['data']};break;}case _[_0x15ebb8(0x2bb)][_0x15ebb8(0x5cd)]:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)][_0x15ebb8(0x5e1)]:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)]['LIVESHARE_REQUEST_HOST']:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x3e5f33['data'][_0x15ebb8(0x2cf)]};break;}case _[_0x15ebb8(0x2bb)]['LIVESHARE_FETCH_OPERATIONS']:{_0x42f6a1={'eventID':_[_0x15ebb8(0x2bb)][_0x15ebb8(0x3c0)]};break;}default:_0x42f6a1={'eventID':_0x3e5f33[_0x15ebb8(0x2cf)][_0x15ebb8(0x405)]};}return JSON[_0x15ebb8(0x24c)]({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33[_0x15ebb8(0x2ab)],'collaMsg':_0x42f6a1});}case b[_0x15ebb8(0x29c)]:return JSON['stringify']({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33[_0x15ebb8(0x2ab)],'joinReq':_0x3e5f33[_0x15ebb8(0x2cf)]});case b[_0x15ebb8(0x523)]:return JSON[_0x15ebb8(0x24c)]({'cmd':_0x3e5f33[_0x15ebb8(0x451)],'routeKey':_0x3e5f33['routeKey'],'leaveReq':_0x3e5f33[_0x15ebb8(0x2cf)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var as=Object[_0x4aaaf0(0x562)],cs=Object[_0x4aaaf0(0x28b)],ls=(_0x5360f0,_0x47c9b8,_0x1f0eae,_0x5c3766)=>{const _0x1d7857=_0x4aaaf0;for(var _0x27912f=_0x5c3766>0x1?void 0x0:_0x5c3766?cs(_0x47c9b8,_0x1f0eae):_0x47c9b8,_0x6bc331=_0x5360f0[_0x1d7857(0x31a)]-0x1,_0x2a3c81;_0x6bc331>=0x0;_0x6bc331--)(_0x2a3c81=_0x5360f0[_0x6bc331])&&(_0x27912f=(_0x5c3766?_0x2a3c81(_0x47c9b8,_0x1f0eae,_0x27912f):_0x2a3c81(_0x27912f))||_0x27912f);return _0x5c3766&&_0x27912f&&as(_0x47c9b8,_0x1f0eae,_0x27912f),_0x27912f;},ae=(_0x46566d,_0x537e2c)=>(_0x3ca1c2,_0x25b9c3)=>_0x537e2c(_0x3ca1c2,_0x25b9c3,_0x46566d);const Ye=a[_0x4aaaf0(0x294)](_0x4aaaf0(0x1eb));function hs(_0x3532ab,_0x5b73a8,_0x192542){const _0x15875b=_0x4aaaf0;return _0x3532ab+'/'+_0x5b73a8+_0x15875b(0x406)+_0x192542+_0x15875b(0x4c7);}exports['CollaborationSocketService']=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x1bc63e,_0x322291,_0x4b52e3,_0x333e03,_0xec2bbd){const _0x3cb7f9=_0x4aaaf0;super(),this[_0x3cb7f9(0x40e)]=_0x1bc63e,this[_0x3cb7f9(0x302)]=_0x322291,this[_0x3cb7f9(0x428)]=_0x4b52e3,this['_logService']=_0x333e03,this[_0x3cb7f9(0x33b)]=_0xec2bbd;}['createSocket'](_0x4cf83c){const _0x3cb098=_0x4aaaf0,_0x457fca=this['_ws'][_0x3cb098(0x291)](_0x4cf83c);if(!_0x457fca)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3be332=new a[(_0x3cb098(0x5db))](),_0x357fcf=new v['Subject']();_0x3be332[_0x3cb098(0x24d)](_0x457fca[_0x3cb098(0x241)][_0x3cb098(0x236)](_0x6a5128=>_0x357fcf['next'](_0x6a5128))),_0x3be332[_0x3cb098(0x24d)](a[_0x3cb098(0x2c6)](()=>_0x357fcf[_0x3cb098(0x489)]()));const _0x106c4d=new v[(_0x3cb098(0x1d4))]();_0x3be332[_0x3cb098(0x24d)](_0x457fca[_0x3cb098(0x226)][_0x3cb098(0x236)](_0x1e4926=>_0x106c4d[_0x3cb098(0x3b3)](_0x1e4926))),_0x3be332[_0x3cb098(0x24d)](a[_0x3cb098(0x2c6)](()=>_0x106c4d['complete']()));const _0x2b064e=new v['Subject']();_0x3be332[_0x3cb098(0x24d)](_0x457fca[_0x3cb098(0x499)]['subscribe'](_0x56be2f=>{const _0x3e0bc1=_0x3cb098,_0x37790c=Tt(_0x56be2f);_0x2b064e[_0x3e0bc1(0x3b3)](_0x37790c);})),_0x3be332['add'](a[_0x3cb098(0x2c6)](()=>_0x2b064e['complete']()));let _0x3072e5;const _0x572cdd=()=>{const _0x3a53f=_0x3cb098;_0x106c4d['next'](new Event('connection\x20error')),_0x357fcf[_0x3a53f(0x3b3)](new CloseEvent(_0x3a53f(0x471))),_0x3072e5['close']();};return _0x3072e5={'memberID':'','close$':_0x357fcf[_0x3cb098(0x2a7)](),'error$':_0x106c4d[_0x3cb098(0x2a7)](),'open$':_0x457fca[_0x3cb098(0x283)],'message$':_0x2b064e['asObservable'](),'send':_0x15ba39=>{const _0x554c4f=_0x3cb098;if(_0x15ba39[_0x554c4f(0x451)]===b[_0x554c4f(0x20c)]){if(_0x15ba39[_0x554c4f(0x2cf)][_0x554c4f(0x405)]===_[_0x554c4f(0x2bb)]['SUBMIT_CHANGESET']){this[_0x554c4f(0x370)](_0x3072e5,_0x15ba39['data'])[_0x554c4f(0x483)](_0x236800=>{const _0x13fd0c=_0x554c4f;this[_0x13fd0c(0x360)][_0x13fd0c(0x574)](_0x236800),_0x572cdd();});return;}if(_0x15ba39[_0x554c4f(0x2cf)][_0x554c4f(0x405)]===_[_0x554c4f(0x2bb)][_0x554c4f(0x3c6)]){const _0x4868cd=_0x15ba39[_0x554c4f(0x2cf)];this['_fetchMissChangesets'](_0x4868cd)[_0x554c4f(0x254)](_0x4fb2b2=>{const _0x1f2ff8=_0x554c4f;_0x2b064e[_0x1f2ff8(0x3b3)]({'cmd':b['RECV'],'code':Ge['OK'],'routeKey':_0x4868cd[_0x1f2ff8(0x2cf)]['unitID'],'routeType':'','data':{'eventID':_[_0x1f2ff8(0x2bb)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x4fb2b2}}});})[_0x554c4f(0x483)](_0x5b0b04=>{const _0x5d3915=_0x554c4f;this[_0x5d3915(0x360)]['error'](_0x5b0b04),_0x572cdd();});return;}}_0x457fca[_0x554c4f(0x306)](Rt(_0x15ba39));},'close':()=>{const _0x3b88a2=_0x3cb098;_0x457fca[_0x3b88a2(0x344)](),_0x3be332[_0x3b88a2(0x342)]();}},_0x3072e5;}async[_0x4aaaf0(0x370)](_0x36d6f0,_0x20c142){const _0x1e068a=_0x4aaaf0;var _0x18e4ad,_0x4c61cb;const {unitType:_0x246e09,unitID:_0x331b21,changeset:_0x5302e8}=_0x20c142[_0x1e068a(0x2cf)],_0x53cab7={'unitID':_0x331b21,'memberID':_0x36d6f0[_0x1e068a(0x55c)],'type':_0x246e09,'changeset':_[_0x1e068a(0x231)](_0x5302e8)},_0x26df46=this[_0x1e068a(0x428)][_0x1e068a(0x50b)](pt),_0x2daa96=this[_0x1e068a(0x428)][_0x1e068a(0x50b)]($),_0xbd644e=hs((_0x4c61cb=(_0x18e4ad=_0x2daa96==null?void 0x0:_0x2daa96[_0x1e068a(0x1fa)])!=null?_0x18e4ad:_0x26df46)!=null?_0x4c61cb:ns,_0x246e09,_0x331b21);try{await this[_0x1e068a(0x40e)][_0x1e068a(0x2f3)](_0xbd644e,{'body':_0x53cab7});}catch(_0x3befeb){throw this['_logService']['error'](_0x1e068a(0x25a),_0x1e068a(0x29e)),_0x3befeb;}}async[_0x4aaaf0(0x329)](_0x19ceb6){const _0x44ed16=_0x4aaaf0,{unitID:_0x4201c5,from:_0x55ac54,to:_0x3abcde,unitType:_0x4ebc59}=_0x19ceb6[_0x44ed16(0x2cf)];return(await this[_0x44ed16(0x33b)][_0x44ed16(0x3aa)]({'metadata':void 0x0},{'unitID':_0x4201c5,'type':_0x4ebc59,'from':_0x55ac54,'to':_0x3abcde}))[_0x44ed16(0x2b3)];}},exports['CollaborationSocketService']=ls([ae(0x0,a[_0x4aaaf0(0x1b2)](U['HTTPService'])),ae(0x1,a[_0x4aaaf0(0x1b2)](U[_0x4aaaf0(0x3d6)])),ae(0x2,a[_0x4aaaf0(0x565)]),ae(0x3,a[_0x4aaaf0(0x1d1)]),ae(0x4,_[_0x4aaaf0(0x47d)])],exports[_0x4aaaf0(0x4b4)]);const _s='collaboration_new_changeset';function us(_0x1b96b6){const _0xf55e8d=_0x4aaaf0;return JSON['stringify'](_0x1b96b6)[_0xf55e8d(0x31a)];}class Ke{constructor(){const _0xaaada6=_0x4aaaf0;u(this,_0xaaada6(0x39b),new v[(_0xaaada6(0x1d4))]()),u(this,_0xaaada6(0x40d),this['_commentUpdate$'][_0xaaada6(0x2a7)]());}[_0x4aaaf0(0x209)](_0x37bea9){const _0x5156e2=_0x4aaaf0;this[_0x5156e2(0x39b)][_0x5156e2(0x3b3)](_0x37bea9);}}function _0x47ba(_0x3a3c11,_0x5d5e13){const _0x98ab6b=_0x98ab();return _0x47ba=function(_0x47ba63,_0x521122){_0x47ba63=_0x47ba63-0x1ac;let _0x3bb75b=_0x98ab6b[_0x47ba63];return _0x3bb75b;},_0x47ba(_0x3a3c11,_0x5d5e13);}var ds=Object[_0x4aaaf0(0x562)],Ss=Object[_0x4aaaf0(0x28b)],vs=(_0x5363e1,_0xcd45bf,_0xa6f878,_0x525c20)=>{const _0x535012=_0x4aaaf0;for(var _0x39245b=_0x525c20>0x1?void 0x0:_0x525c20?Ss(_0xcd45bf,_0xa6f878):_0xcd45bf,_0x40258c=_0x5363e1[_0x535012(0x31a)]-0x1,_0x13d34c;_0x40258c>=0x0;_0x40258c--)(_0x13d34c=_0x5363e1[_0x40258c])&&(_0x39245b=(_0x525c20?_0x13d34c(_0xcd45bf,_0xa6f878,_0x39245b):_0x13d34c(_0x39245b))||_0x39245b);return _0x525c20&&_0x39245b&&ds(_0xcd45bf,_0xa6f878,_0x39245b),_0x39245b;},et=(_0x5d34d6,_0x3e952b)=>(_0x2244bb,_0x58fff3)=>_0x3e952b(_0x2244bb,_0x58fff3,_0x5d34d6);exports[_0x4aaaf0(0x50e)]=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x306721,_0x54b61e){const _0x3916c5=_0x4aaaf0;super(),u(this,_0x3916c5(0x2bd),new Map()),(this['_univerInstanceService']=_0x306721,this[_0x3916c5(0x4ee)]=_0x54b61e,this[_0x3916c5(0x367)](a[_0x3916c5(0x2c6)](v[_0x3916c5(0x398)](this[_0x3916c5(0x46d)][_0x3916c5(0x2d5)](a['UniverInstanceType'][_0x3916c5(0x4d0)])[_0x3916c5(0x2b0)](E[_0x3916c5(0x263)](_0x5ce302=>_0x5ce302[_0x3916c5(0x3e2)]())),this[_0x3916c5(0x46d)]['getTypeOfUnitDisposed$'](a[_0x3916c5(0x419)][_0x3916c5(0x238)])[_0x3916c5(0x2b0)](E[_0x3916c5(0x263)](_0x4b63a6=>_0x4b63a6[_0x3916c5(0x3e2)]())),this[_0x3916c5(0x46d)][_0x3916c5(0x2d5)](a[_0x3916c5(0x419)][_0x3916c5(0x592)])[_0x3916c5(0x2b0)](E[_0x3916c5(0x263)](_0x478fbc=>_0x478fbc[_0x3916c5(0x3e2)]())))['subscribe'](_0x5f5b23=>this[_0x3916c5(0x35f)](_0x5f5b23)))));}['setCurrentUser'](_0x5bb5c1){const _0x505390=_0x4aaaf0;this[_0x505390(0x4ee)]['setCurrentUser'](_0x5bb5c1);}['getCurrentUser'](){const _0x406431=_0x4aaaf0;return this['_userManagerService'][_0x406431(0x5d5)]();}[_0x4aaaf0(0x2b4)](_0x109a3b,_0x304d99){const _0x325c1b=_0x4aaaf0;let _0x3fb71b=this[_0x325c1b(0x2bd)]['get'](_0x109a3b);_0x3fb71b||(_0x3fb71b=new ms(),this[_0x325c1b(0x2bd)][_0x325c1b(0x4af)](_0x109a3b,_0x3fb71b)),_0x3fb71b[_0x325c1b(0x2b4)](_0x304d99);}['removeMember'](_0x2f96ef,_0x4c6669){const _0x2730ae=_0x4aaaf0,_0x14f0c3=this[_0x2730ae(0x2bd)][_0x2730ae(0x439)](_0x2f96ef);_0x14f0c3&&_0x14f0c3[_0x2730ae(0x407)](_0x4c6669);}['getRoom'](_0x550dcb){const _0x1a6206=_0x4aaaf0;return this[_0x1a6206(0x2bd)]['get'](_0x550dcb);}[_0x4aaaf0(0x3d1)](_0x4427d3,_0x300b76){const _0x550592=_0x4aaaf0,_0x29d939=this[_0x550592(0x2bd)][_0x550592(0x439)](_0x4427d3);if(_0x29d939)return _0x29d939[_0x550592(0x3d1)](_0x300b76);}[_0x4aaaf0(0x35f)](_0x28c3a2){const _0x211eeb=_0x4aaaf0,_0x4d6fcc=this[_0x211eeb(0x2bd)][_0x211eeb(0x439)](_0x28c3a2);_0x4d6fcc&&(_0x4d6fcc[_0x211eeb(0x342)](),this[_0x211eeb(0x2bd)][_0x211eeb(0x276)](_0x28c3a2));}[_0x4aaaf0(0x342)](){const _0x26a94b=_0x4aaaf0;this[_0x26a94b(0x2bd)]['forEach'](_0x11f114=>_0x11f114[_0x26a94b(0x342)]()),this[_0x26a94b(0x2bd)][_0x26a94b(0x3e4)]();}},exports[_0x4aaaf0(0x50e)]=vs([et(0x0,a[_0x4aaaf0(0x33f)]),et(0x1,a['Inject'](a[_0x4aaaf0(0x2d1)]))],exports[_0x4aaaf0(0x50e)]);class ms extends a[_0x4aaaf0(0x3ef)]{constructor(){const _0x32263f=_0x4aaaf0;super(...arguments),u(this,_0x32263f(0x202),new Map());}[_0x4aaaf0(0x342)](){const _0x58c06d=_0x4aaaf0;this[_0x58c06d(0x202)][_0x58c06d(0x3e4)]();}[_0x4aaaf0(0x2b4)](_0x4dc14){const _0x3c5ec6=_0x4aaaf0;this[_0x3c5ec6(0x202)][_0x3c5ec6(0x4af)](_0x4dc14[_0x3c5ec6(0x55c)],_0x4dc14);}[_0x4aaaf0(0x407)](_0x3b2c11){const _0x50a90e=_0x4aaaf0;this['_members'][_0x50a90e(0x276)](_0x3b2c11);}[_0x4aaaf0(0x3d1)](_0x2cf7a2){const _0x4cf7ac=_0x4aaaf0;return this['_members'][_0x4cf7ac(0x439)](_0x2cf7a2);}[_0x4aaaf0(0x2b2)](){const _0x16d202=_0x4aaaf0;return Array[_0x16d202(0x36c)](this[_0x16d202(0x202)][_0x16d202(0x4ca)]());}}var gs=Object[_0x4aaaf0(0x562)],fs=Object[_0x4aaaf0(0x28b)],Is=(_0x1803a2,_0x5bac17,_0x5ed6c9,_0x731b4b)=>{const _0x10a797=_0x4aaaf0;for(var _0x25d1ed=_0x731b4b>0x1?void 0x0:_0x731b4b?fs(_0x5bac17,_0x5ed6c9):_0x5bac17,_0x5121c0=_0x1803a2[_0x10a797(0x31a)]-0x1,_0x2cc6c3;_0x5121c0>=0x0;_0x5121c0--)(_0x2cc6c3=_0x1803a2[_0x5121c0])&&(_0x25d1ed=(_0x731b4b?_0x2cc6c3(_0x5bac17,_0x5ed6c9,_0x25d1ed):_0x2cc6c3(_0x25d1ed))||_0x25d1ed);return _0x731b4b&&_0x25d1ed&&gs(_0x5bac17,_0x5ed6c9,_0x25d1ed),_0x25d1ed;},G=(_0x48f750,_0x555c0c)=>(_0xcb2cc5,_0x416284)=>_0x555c0c(_0xcb2cc5,_0x416284,_0x48f750),x=(_0x453d47=>(_0x453d47[_0x453d47['IDLE']=0x0]=_0x4aaaf0(0x448),_0x453d47[_0x453d47[_0x4aaaf0(0x580)]=0x1]=_0x4aaaf0(0x580),_0x453d47[_0x453d47[_0x4aaaf0(0x270)]=0x2]=_0x4aaaf0(0x270),_0x453d47[_0x453d47[_0x4aaaf0(0x322)]=0x3]=_0x4aaaf0(0x322),_0x453d47))(x||{});exports[_0x4aaaf0(0x315)]=class extends a['RxDisposable']{constructor(_0x2ad6d1,_0x41f750,_0x4d6334,_0xaca70c,_0x3bcad0,_0x4331e2,_0x5d71fe,_0x1cfe02,_0x2edf56,_0x1984ba){const _0x56fc87=_0x4aaaf0;super(),u(this,_0x56fc87(0x2f5),new v['BehaviorSubject'](0x0)),u(this,'sessionStatus$',this[_0x56fc87(0x2f5)][_0x56fc87(0x2a7)]()),u(this,_0x56fc87(0x5c0),new v['Subject']()),u(this,_0x56fc87(0x467),this['_event$'][_0x56fc87(0x2a7)]()),u(this,_0x56fc87(0x5ca)),u(this,'_socketMessageSubscription'),u(this,_0x56fc87(0x25e)),u(this,'_shouldReportTelemetry',!0x1),u(this,_0x56fc87(0x42a),null),(this[_0x56fc87(0x2b8)]=_0x2ad6d1,this['_logService']=_0x4d6334,this[_0x56fc87(0x31e)]=_0xaca70c,this[_0x56fc87(0x206)]=_0x3bcad0,this['_configService']=_0x4331e2,this[_0x56fc87(0x2af)]=_0x5d71fe,this['_memberService']=_0x1cfe02,this['_commentService']=_0x2edf56,this['_telemetryService']=_0x1984ba,this[_0x56fc87(0x1f1)]=!!this[_0x56fc87(0x4dc)],_0x41f750[_0x56fc87(0x2b0)](v[_0x56fc87(0x4b2)](this[_0x56fc87(0x35d)]))[_0x56fc87(0x236)](_0x5acc74=>{const _0x3bee67=_0x56fc87;var _0x50a72a;typeof _0x5acc74>'u'||(this[_0x3bee67(0x5ca)]=_0x5acc74,_0x5acc74?(this[_0x3bee67(0x2fa)](_0x5acc74),this['_socketMessageSubscription']=_0x5acc74[_0x3bee67(0x499)][_0x3bee67(0x236)](_0x5159b8=>{const _0x4655c6=_0x3bee67;_0x5159b8[_0x4655c6(0x2ab)]===this[_0x4655c6(0x2b8)]&&this['_onCombEvent'](_0x5159b8);})):(this[_0x3bee67(0x46c)](),this[_0x3bee67(0x2f5)]['next'](0x2),(_0x50a72a=this[_0x3bee67(0x5b3)])==null||_0x50a72a[_0x3bee67(0x4ed)](),this['_socketMessageSubscription']=null));}),this[_0x56fc87(0x367)](this['_beforeCloseService'][_0x56fc87(0x510)](()=>{const _0x4575ac=_0x56fc87;var _0x129518;(_0x129518=this[_0x4575ac(0x5ca)])==null||_0x129518['send']({'cmd':b[_0x4575ac(0x523)],'data':{'roomID':this[_0x4575ac(0x2b8)]}});})));}get[_0x4aaaf0(0x5b0)](){const _0x516c26=_0x4aaaf0;return this[_0x516c26(0x2f5)]['getValue']();}[_0x4aaaf0(0x573)](){const _0x10ad1b=_0x4aaaf0;var _0x35f268,_0xc189d8;return(_0xc189d8=(_0x35f268=this[_0x10ad1b(0x5ca)])==null?void 0x0:_0x35f268['memberID'])!=null?_0xc189d8:null;}[_0x4aaaf0(0x342)](){const _0x4a07b0=_0x4aaaf0;super[_0x4a07b0(0x342)](),this[_0x4a07b0(0x35d)][_0x4a07b0(0x3b3)](),this['dispose$'][_0x4a07b0(0x489)]();}[_0x4aaaf0(0x344)](){const _0x5eeddb=_0x4aaaf0;var _0x31bd2a,_0x26d557;this['_throwTelemetryCollaborationNewChangeset'](),(_0x31bd2a=this[_0x5eeddb(0x5ca)])==null||_0x31bd2a[_0x5eeddb(0x306)]({'cmd':b[_0x5eeddb(0x523)],'data':{'roomID':this[_0x5eeddb(0x2b8)]}}),(_0x26d557=this[_0x5eeddb(0x5ca)])==null||_0x26d557[_0x5eeddb(0x344)](),this[_0x5eeddb(0x5c0)][_0x5eeddb(0x489)](),this[_0x5eeddb(0x2f5)]['complete'](),this[_0x5eeddb(0x342)]();}[_0x4aaaf0(0x220)](_0x302aa5){const _0x2cfd79=_0x4aaaf0;_0x302aa5[_0x2cfd79(0x451)]===b['JOIN']?this[_0x2cfd79(0x426)](_0x302aa5):_0x302aa5[_0x2cfd79(0x451)]===b[_0x2cfd79(0x441)]&&this[_0x2cfd79(0x520)](_0x302aa5);}['_joinRoom'](_0x589518){const _0x415409=_0x4aaaf0;this[_0x415409(0x2f5)][_0x415409(0x3b3)](0x1),_0x589518[_0x415409(0x306)]({'cmd':b['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x415409(0x2b8)]}]}});}['_onJoinRoomEvent'](_0x1cb4c7){const _0x1e1597=_0x4aaaf0;var _0x507d24;if(_0x1cb4c7[_0x1e1597(0x512)]===Ge[_0x1e1597(0x354)]){this['_messageService'][_0x1e1597(0x4c5)]({'type':J[_0x1e1597(0x497)]['Warning'],'content':this[_0x1e1597(0x2af)]['t'](_0x1e1597(0x48c))}),this[_0x1e1597(0x2f5)][_0x1e1597(0x3b3)](0x2);return;}this['_sessionStatus$'][_0x1e1597(0x3b3)](0x3);const _0x3df9b5=(_0x507d24=_0x1cb4c7[_0x1e1597(0x2cf)][_0x1e1597(0x30a)][this[_0x1e1597(0x2b8)]])==null?void 0x0:_0x507d24['members'];_0x3df9b5&&_0x3df9b5[_0x1e1597(0x1d6)](_0x4d359a=>this['_memberService'][_0x1e1597(0x2b4)](this[_0x1e1597(0x2b8)],_0x4d359a));}['_onRecvEvent'](_0x5e40e1){const _0x3b20da=_0x4aaaf0;try{const _0x5cd09f=_0x5e40e1['data'];switch(_0x5cd09f[_0x3b20da(0x405)]){case _['CollaborationEvent'][_0x3b20da(0x475)]:this[_0x3b20da(0x27a)](_0x5cd09f),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _[_0x3b20da(0x2bb)][_0x3b20da(0x3b0)]:this['_onUserLeave'](_0x5cd09f),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _[_0x3b20da(0x2bb)][_0x3b20da(0x540)]:case _[_0x3b20da(0x2bb)][_0x3b20da(0x5d7)]:this[_0x3b20da(0x22d)](),this[_0x3b20da(0x284)](),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _['CollaborationEvent'][_0x3b20da(0x45e)]:this[_0x3b20da(0x360)][_0x3b20da(0x574)](_0x3b20da(0x478)+JSON[_0x3b20da(0x24c)](_0x5cd09f)),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;case _['CollaborationEvent'][_0x3b20da(0x556)]:this['_commentService'][_0x3b20da(0x209)](_0x5cd09f[_0x3b20da(0x2cf)]),this[_0x3b20da(0x5c0)][_0x3b20da(0x3b3)](_0x5cd09f);break;default:this[_0x3b20da(0x5c0)]['next'](_0x5cd09f);}}catch(_0x168882){this['_logService']['error'](_0x168882,_0x5e40e1);}}[_0x4aaaf0(0x27a)](_0x125eb3){const _0x34aad2=_0x4aaaf0;this[_0x34aad2(0x529)][_0x34aad2(0x2b4)](this[_0x34aad2(0x2b8)],_0x125eb3[_0x34aad2(0x2cf)]);}[_0x4aaaf0(0x50d)](_0x543ce5){const _0x4bb796=_0x4aaaf0;this[_0x4bb796(0x529)][_0x4bb796(0x407)](this['_unitID'],_0x543ce5[_0x4bb796(0x2cf)][_0x4bb796(0x55c)]);}async[_0x4aaaf0(0x306)](_0x4a2a70,_0x175871){const _0x48c12c=_0x4aaaf0;if(this[_0x48c12c(0x5b0)]!==0x3||!this['_socket'])throw new Error(_0x48c12c(0x581));try{_0x4a2a70[_0x48c12c(0x405)]===_[_0x48c12c(0x2bb)][_0x48c12c(0x47c)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x48c12c(0x551)](_0x4a2a70)),this['_socket'][_0x48c12c(0x306)]({'cmd':b['INGEST'],'routeKey':_0x175871,'routeType':'','data':_0x4a2a70});}catch(_0x509258){this[_0x48c12c(0x360)][_0x48c12c(0x574)](_0x509258);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4b060d=_0x4aaaf0;var _0x49d645;this[_0x4b060d(0x25e)]=window[_0x4b060d(0x3c4)](()=>{const _0x24874f=_0x4b060d;this[_0x24874f(0x25e)]=null,this[_0x24874f(0x206)][_0x24874f(0x4c5)]({'type':J[_0x24874f(0x497)][_0x24874f(0x413)],'content':this['_localeService']['t'](_0x24874f(0x250))});},(_0x49d645=this['_configService'][_0x4b060d(0x50b)](Fe))!=null?_0x49d645:gt);}['_clearCollaborationTimeoutTimer'](){const _0x47aaf9=_0x4aaaf0;this[_0x47aaf9(0x25e)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x4aaaf0(0x551)](_0x193644){const _0x321c5e=_0x4aaaf0;if(!this['_shouldReportTelemetry'])return;const {data:_0x509b24}=_0x193644,{unitID:_0x4bc788,changeset:_0x314f9f}=_0x509b24,{mutations:_0x3ed29f,type:_0x2c5cd4}=_0x314f9f;this[_0x321c5e(0x42a)]={'unitId':_0x4bc788,'type':_0x2c5cd4,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':us(_0x3ed29f)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x43ff1e=_0x4aaaf0;if(this['_shouldReportTelemetry']){if(!this[_0x43ff1e(0x42a)]){this[_0x43ff1e(0x360)][_0x43ff1e(0x574)](_0x43ff1e(0x25a),_0x43ff1e(0x4ac));return;}this['_telemetryInfo'][_0x43ff1e(0x3ce)]=performance[_0x43ff1e(0x58e)](),this[_0x43ff1e(0x42a)]['duration']=this[_0x43ff1e(0x42a)][_0x43ff1e(0x3ce)]-this[_0x43ff1e(0x42a)]['startTime'],this['_telemetryService'][_0x43ff1e(0x3b6)](_s,this['_telemetryInfo']),this[_0x43ff1e(0x42a)]=null;}}[_0x4aaaf0(0x46c)](){const _0x2681d4=_0x4aaaf0;this[_0x2681d4(0x42a)]=null;}},exports['CollaborationSession']=Is([G(0x2,a[_0x4aaaf0(0x1d1)]),G(0x3,A[_0x4aaaf0(0x595)]),G(0x4,A[_0x4aaaf0(0x31b)]),G(0x5,a[_0x4aaaf0(0x565)]),G(0x6,a['Inject'](a[_0x4aaaf0(0x1f6)])),G(0x7,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x50e)])),G(0x8,a[_0x4aaaf0(0x1b2)](Ke)),G(0x9,a[_0x4aaaf0(0x4cd)](Kt[_0x4aaaf0(0x28a)]))],exports['CollaborationSession']);function _0x98ab(){const _0x532f94=['url','target','joinRsp','evenodd','xlink:href','handleIRemoveRow','requireSession','CONFLICT','getMemberID','error','_snapshotService','getUnitType','_initMergeInterceptor','mapTo','_initModules','getCurrent','319006SscOid','YUUMI_UNABLE_LOAD_URL','_revisionService','_sendingTimer','_updateState','JOINING','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_sheetSkeletonManagerService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','change$','updatePermissionPoint','getResourcesRequest','conflict','saveChangeset','_sendHeartbeat','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onConflict','[PendingState]:\x20received\x20rejection.','_collabCursorController','now','_getUndoStack','DeleteRangeMoveUpCommandId','src','UNIVER_SLIDE','executeCommand','LOGIN_URL_KEY','IBeforeCloseService','_resendTimeout','MoveRangeCommandId','Module','concatMap','/role','_setupSubUnitSync','children','setShapeProps','InsertRangeMoveDownCommandId','_getScale','_getMergeRange','getParam','_scheduleSaving','_color','onlineStatusIcon','drawWith','number','_getAPIPrefixPath','Tools','univer-online-status-icon','_injector','LICENSE_MAX_UNITS_EXCEEDED','_transformUndoRedoStack','getRelativeToViewportCoord','updateCursorEvent','_status$','sessionStatus','hovered','@univerjs/design','_socketMessageSubscription','getCollabEntity','RECT','\x20in\x20_schedule.','isTransformMutationsWithChangesetSuccess','_getCtorByUniverType','_state','@univerjs/core','POST','_unitOnClients','0\x200\x2017\x2016','getSheetBySheetId','transformSelections','_event$','_onCursorUpdate','fetching\x20missing\x20changesets\x20from\x20','_document','_handler','interceptor','_initResize','_sender','title','currentSkeleton$','_socket','onReady','mergeOverrideWithDependencies','LIVESHARE_OPERATION','_drawTextRange','objectID','_timeoutTimer','getLatestCsReqIdBySid','SHOULD_CLOSE_CONN','collaborators','_getSignURL','getCurrentUser','csRejEvent','CHANGESET_SHOULD_RETRY','InsertRangeMoveRightCommandId','[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.','useObservable','DisposableCollection','FileId','AuthzIoHttpService','/universer-api/oidc/authpage','ICommandService','fetchMiss','LIVESHARE_TERMINATE','height','MUTATION','collabStatus.syncing','entries','allowed','editing\x20status\x20changed\x20to','Inject','@univerjs/telemetry','combineLatest','rxjs','_updateLocalCursor','onload','VIEW_MAIN','_onRefRangeChange','_getLoginPath','_showConflictNotification','_resendWithTimeout','_listenToOnlineEvent','_clearUndo','_initEventListeners','getCoordByCell','find','ThemeService','endColumn','BASE64','path','throttleTime','all','_scheduleHeartbeat','generateRandomId','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleTimestamp','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','awaitingChangeset','/collaborator','RichTextEditingMutation','INVALID_ARGUMENT','ILogService','_entityInit$','onMissingChangesets','Subject','UPDATE_CURSOR','forEach','init','getUnit','subscribeEvent','createInstance','row','LIVESHARE_NEW_HOST','SNAPSHOT_HAS_BEEN_REMOVED','getAncestorScale','objectActions','includes','setAlpha','DesktopCollaborationStatusDisplayController','LICENSE_IMPORT_SIZE_EXCEEDED','HTTPService','assignAColorForMemberID','_transformUndoredo','tag','_getSheetObject','WorkbookEditablePermission','setInterval','univer-pro.collaboration-client-socket-service','authzUrl','_change$','arc','onTransformIME','enableSingleActiveInstanceLock','_shouldReportTelemetry','_singleActiveUnitService','ALREADY_EXISTS','_refreshCollabCursors','SNAPSHOT_INVALID_SNAPSHOT','LocaleService','_initStatusComponent','_substituteUndoStack','onRemoteAck','collabSubmitChangesetUrl','_lastPointer','onMouseMove','ERROR_EXCEED_SIZE','Shape','_id','registerRefRange','_waitForHeartbeatResponse','_members','_entities','current','colorChannel1','_messageService','\x20to\x20','collaboration-client.config','onCommentUpdate','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','defs','INGEST','disableLocalCache','UNIVER_UNKNOWN','_unlockTransition','clipPath','fillRule','_retryConnectingTimer','getSkeleton','_handleEvent','[UniverCollaborationClientPlugin]','onSyncEditingCollabCursor','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','svg','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_remoteChangesetQueue','resourceIDs','use','CHANGESET_REVISION_CONFILICT','_onRemoteChangeset','DocCollaborationEntity','_onCombEvent','pauseCollaboration','toString','#fff','baseRev','_shapes','error$','url(#off-line-single_clip0_910_343)','_backgroundColor','[CollaborationEntity]','reconnect','getRenderById','unitId','_stopTelemetryCollaborationNewChangeset','isEditing','_socket$','conflict.title','parseChangesetToProtocol','newCsEvent','slice','_disabled','_docTransformSelectionsService','subscribe','_getSendChangesetTimeout','UNIVER_DOC','IHTTPImplementation','collabStatus.synced','_collaborationSessionService','_online','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','handleInsertRangeMoveRight','getCollabEntity$','some','close$','UNDEFINED','_redoStacks','clearTimeout','_render','_retryCount','ACTIVE_UNIT_EVENT_CHANNEL','_name','parse','image/gif','_checkMissing','stringify','add','_getCurrentRevision','image/jpeg','session.collaboration-timeout','NOT_COLLAB','COLLAB_WEB_SOCKET_URL_KEY','_handleJoinEvent','then','newValue','_onOffline','_session','NEW_CHANGESETS','getItem','[CollaborationSession]','onSendChangeset','_localStorageService','RemoveColCommandId','_collaborationTimeoutTimer','state$','@univerjs/ui','AWAITING','every','map','isTransformMutationsWithChangesetFailure','CollaborationController','CONNECTOR_DATA_TOO_LARGE','isPermissionRej','handleInsertRangeMoveDown','HEARTBEAT_INTERVAL_KEY','json','_collabCursorState$','IPermissionService','_startDocCollabCursor','currentColor','collaMsg','OFFLINE','getSheetId','UniverCollaborationPlugin','InsertSheetMutation','rxjs/operators','RxDisposable','delete','_sheetTransformSelectionsService','_candidateSocket','_selfUnitIDs','_onUserJoin','isArray','getVpScrollXYInfoByPosToVp','file','url(#$1','1em','function','_getSaveTimeout','_waitCount','open$','_clearCollaborationTimeoutTimer','fetch_missing','setUndoRedoMutationParamsCache','APPLY_DUPLICATED','ImageUploadStatusType','RETRY_CONNECTING_MAX_COUNT_KEY','ITelemetryService','getOwnPropertyDescriptor','loadSheet','_initUnitPermissionChange','handleInsertCol','DocSelectionManagerService','_permissionService','createSocket','ImageSourceType','_scene','createIdentifier','DataLoaderController','COMPRESS_MUTATION_APPLY','NOT_FOUND','enableAuthServer','[CollaborationState]:\x20apply\x20error!','Rectangle','SheetsSelectionsService','JOIN','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','submit\x20changeset\x20error!','15431GfVgIJ','NO_OTHER_CLIENTS_EDITING','SYNCED','joinEvent','fillStyle','round','_onConnectionFailed','transformUndoRedo','asObservable','_replayCachedMutations','c2Prime','OnLineSingle','routeKey','onRendered','with','InsertColCommandId','_localeService','pipe','name','getAllMembers','changesets','updateMember','_updateLocalCache','collab-rect-range-','mutations','_unitID','m1Prime','permission.title','CollaborationEvent','updateCollaborator','_roomMembers','_transformPreviousActiveRange','SNAPSHOT_SERVER_URL_KEY','HEARTBEAT_TIMEOUT_KEY','_loadSheet','toRgbString','[CollaborationSessionService]','synced','incrementRevOfUnit','toDisposable','useRef','visibilityState','getAttachHeader','black','onRemoteRej','has','ranges','_anchor','data','_labelPosition','UserManagerService','reqId','_collabSessionService','createCollaborator','getTypeOfUnitDisposed$','@univerjs/network','cursorInfo$','getOffsetConfig','onCommandExecuted','x-univer-host','withCredentials','substring','10yJDFkD','[DataLoaderController]','permissionRejEvent','IContextService','_collaborationPaused','IImageIoService','_renderManagerService','_createInitialStateImpl','COLLAB_SUBMIT_CHANGESET_URL','searchParams','setActiveRange','RegularPolygon','_scheduleClearOtherTimer','12GlxOYn','[OfflineState]:\x20received\x20acknowledgement.','_onFetchMissResult','[OfflineState]:\x20received\x20changeset.','Injector','random','SetSelectionsOperation','findNodePositionByCharIndex','column','post','CompressMutationService','_sessionStatus$','SEND_CHANGESET_TIMEOUT','rev','collabWebSocketUrl','state','_joinRoom','[CollaborationUndoRedoService]','ICollaborationSocketService','Error\x20on\x20receiving\x20event','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getUnitOnRev','removeParam','_cursors','_ws','getCurrentSelections','CollaborationStatus','/universer-api/stream/file/upload','send','@univerjs/sheets-ui','COLLAB_WEB_SOCKET_URL','MergeInterceptorFactory','roomInfos','handleDeleteRangeMoveLeft','SNAPSHOT_URL_KEY','retryConnectingInterval','collaboratorID','_httpService','_commandService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','CollaborationStatusDisplay','/-/object/-/batch_allowed','top','CollaborationSession','HEARTBEAT_INTERVAL','listRoles','_rescheduleHeartbeat','image/jpg','length','IMessageService','string','handleInsertRow','_beforeCloseService','_replaceFileID','online','on-line-single_clip0_910_349','ONLINE','_decreaseWaiting','DeleteRangeMoveLeftCommandId','range','deleteCollaborator','restore','concat','_fetchMissChangesets','_createHandler','transformMutation','replace','addObject','none','registerRenderModule','_themeService','history','off-line-single_clip0_910_343','onPointerEnter$','CommentService','addEventListener','_getDownloadEndpointURL','/-/object/list','mapDocumentTypeToUniverType','_HTTPService','transformChangesets','_snapshotServerService','_transformSelections','_init','&assign=','IUniverInstanceService','uni.network.url-service','_disableEditing','dispose','transform','close','hidden','session.connection-failed','Undefined','params','{fileID}','TEXT_RANGE_LAYER_INDEX','Warning','hide','transformMutationsWithChangeset','handleDeleteRangeMoveUp','copyFileMeta','doc.mutation.rich-text-editing','_onLocalMutation','_saveCache','DOC_RANGE_TYPE','FAIL','getCollabCursors$','_type','encode','transformIMECache','setParam','Rect','commentUpdateEvent','233152hHshKS','dispose$','OffLineSingle','_removeRoom','_logService','UnitEmbedded','pending','_getRedoStack','/universer-api/comb','_hover','HEARTBEAT_TIMEOUT','disposeWithMe','docStateChange$','saveOfflineData','_registerDependencies','icon','from','filter','_executeRemoteChangeset','key','_submitChangeset','responseType','getActiveSheet','unshift','HttpImport','XHRHTTPImplementation','SheetCollaborationEntity','/object','SheetPermissionInitController','getSheetObject','handleMoveRange','SnapshotServerOverHTTPService','_onRemoteRejected','HTTPRequest','translate(.97)','_transformService','snapshotServerUrl','setItem','className','[SyncedState]:\x20received\x20rejection.','getRangePointData','...','session','_acknowledgedAwaitingChangeset','sheetID','_docSyncEditingCollabCursorService','jiqing500','_state$','univer-pro.collaboration-client.single-active-unit-service','HttpExport','appendMutation','prototype','getColor','getOwnPropertySymbols','_draw','UNAUTHENTICATED','ColorKit','subUnitId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_startCollaboration','merge','resend','toStringTag','_commentUpdate$','rgba(255,\x20255,\x20255,\x200.01)','_imageSourceCache','13750264keJZOy','DocIMEInputManagerService','_onConnectionOpen','TEXT','_createSocket','EmptyMutation','updatePermissionObjEvent','split','_colorIndex','APPLY_REVISION_CONFILICT','_toggleOffline','m2Prime','fetchMissingChangesets','urlChange$','exhaustSavingTask','YUUMI_SUBSCRIPTION_NOT_FOUND','#FFF','setConfig','USERS_LEAVE','LICENSE_EXPORT_SIZE_EXCEEDED','reverse','next','color','fromEventSubject','capture','toggleOnline','resize','UPDATE_PERMISSION_OBJ','reduce','_exhaustRemoteChangesetQueue','status$','ReplaySubject','@univerjs-pro/collaboration','setShowComponents','LIVESHARE_FETCH_OPERATIONS','ERROR_IMAGE_TYPE','onRemoteChangeset','_getAPIPrefix','setTimeout','cursorInfo','FETCH_MISSING','_isPermissionRej','append','_drawAnchor','_docTransformIMECacheService','fetchThroughInterceptors','_heartbeatTimer','EXCHANGE_SIGN_URL_SERVER_URL_KEY','stopTime','_applyRemoteChangeset','rng','getMember','collabStatus.notCollab','Univer','roomMembers','[SyncedState]:\x20received\x20acknowledgement.','WebSocketService','_changesetReqId','_eventUnsubscribe','attrs','setWaitCount','FETCH_MISS','isTransformChangesetsSuccess','ERROR_IMAGE','_initRequestHeader','body','createElement','COLLAB_SUBMIT_CHANGESET_URL_KEY','getUnitId','UNIVER_PROJECT','clear','@univerjs/docs','_handleHeartbeatEvent','switchMap','APPLY_REJECT','_changesetSessionId','fillText','_docStateChangeManagerService','action','SnapshotService','_cursor','Disposable','url(#on-line-single_clip0_910_349)','c1Prime','off-line-single','_refRangeService','getTime','onMissedChangesetFetched','isTransformMutationFailure','connectInjector','textEncoder','_lockTransition','auth.needGotoLoginAlert','_clearHeartbeatTimer','makeDirty','@univerjs/engine-formula','20vjbjzs','LOCAL_CACHE_INTERVAL_KEY','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','fromEvent','_clearOtherTimers','UNKNOWN_CODE','clearInterval','eventID','/unit/','removeMember','\x0aAfter:\x20','update','234852xDlpEW','_syncEditingCollabCursorService','collabStatus.fetchMiss','commentUpdate$','_http','_textBubble','csAckEvent','getTypeOfUnitAdded$','saveImage','Error','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','visibilitychange','_schedule','UNRECOGNIZED','COLORS','UniverInstanceType','_getSnapshotAPIPrefix','_config','unitID','downloadEndpointUrl','[PendingState]:\x20received\x20acknowledgement.','ITransformService','serializeRangeWithSheet','distinctUntilChanged','runRefRangeMutations','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','LOCAL_CACHE_INTERVAL','status','_onJoinRoomEvent','1722966exJpqd','_configService','_handleLeaveEvent','_telemetryInfo','method','replaceState','getValue','_transformIMECache','1428JnGsKr','readAsDataURL','SEND_CHANGESET_TIMEOUT_KEY','pushState','unload','getUnitStatus$','objectType','loadOfflineData','HELLO','transformRemoteChangeset','get','width','skeleton','SheetCollabCursorShape','_incrementRevisionNumber','_hideTimer','debug','ENSURE_SNAPSHOT_EXECUTION','RECV','BehaviorSubject','COMPLETION_FINISHED','fill','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onlineStatus','onTransformRemoteChangesetByIMECache','IDLE','SheetSkeletonManagerService','originalMeta','_anchorDot','encodeURIComponent','selections','PSEUDO_FETCH_MISSING_RESULT','_setupBeforeClosingHandler','getWorkbookSelections','cmd','_queuedRemoteChangesets','startRow','_toggleOnline','labelPosition','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','IAuthzIoService','collab-text-anchor-','_initCloseConn','offline','_cursorShapes','actions','_syncEditingCollabCursor','MSG_FOR_ERROR','editingUnit','storage','apply','idSuffix','_socketReady','requestParams','updateOfflineData','_resendTimer','event$','_removeCollabCursors','SetDocZoomRatioOperation','IUIPartsService','_getAnchorBounding','_throwTelemetryCollaborationNewChangeset','_univerInstanceService','/universer-api/authz','registerHTTPInterceptor','_urlService','connection\x20error','_collaborationController','Vector2','_substituteRedoStack','USERS_ENTER','startsWith','_sendHeartbeatTimer','save\x20fail\x20reason\x20is\x20','/universer-api/snapshot/','univer-offline','text','SUBMIT_CHANGESET','ISnapshotServerService','reject','_hovered','_registerRenderDependencies','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_loadDoc','catch','equals','_updateURLWithCurrentState','DocStateChangeManagerService','OTHER_CLIENTS_EDITING','onRemoteRetry','complete','call','10505187fvMpiM','session.room-full','signUrlServerUrl','useCallback','CollaborationSessionService','IUndoRedoService','focused$','getInterceptPoints','on-line-single','HEARTBEAT','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','ImageIoService','MessageType','socket$','message$','_updateSubUnitFromURLParams','socketService','LocalCacheService','CommandType','liveShareNewHost','_onMessage','_sessions','_onCursorDelete','registerBeforeClose','unknown','debounceTime','getMergeData','b64DecodeUnicode','RETRY_CONNECTING_MAX_COUNT','_updateStatus','_clearTimeoutTimer','type','override','telemetry\x20info\x20is\x20not\x20initialized','getCurrentRevOfUnit','getUniverSheetInstance','set','_roomMembers$','_cursorInfo$','takeUntil','saveSheetBlock','CollaborationSocketService','deepClone','collaboration.closeRoom','[FetchMissState]','_transitionLocked','enableOfflineEditing','_createInitialState','revision','userID','onPointerLeave$','_pendingMutations','UnitSnapshot','?size=','_getUploadFileURL','patch','_notificationService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','show','loadDoc','/new_changes','NodePositionConvertToRectRange','HEADER_MENU','values','unit-cache-','_transformRemoteChangesetByIMECache','Optional','push','@univerjs-pro/license','UNIVER_SHEET','UniverCollaborationClientPlugin','_send','onTransformSelections','localeService','session.will-retry','subunit','_undoRedoService','sequenceExecute','syncEditingCollabCursor','sessionStatus$','forwardRef','_telemetryService','SetWorksheetActivateCommand','bind','_handleHover','/object/','getUndoRedoMutationParamsCache','_context','getFocusedUnit','extend','refreshPermission','_drawRectRange','save','initWorkbookPermissionChange','_localCacheService','assign','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','moveTo','unsubscribe','_userManagerService','selection','toLowerCase','replaceTextRanges','NodePositionConvertToCursor','randomUUID','collaboration.single-unit.warning','_awaitingChangeset','AUTHZ_URL_KEY','isActive','COMPRESS_MUTATION_SEND','origin','_clearLocalCache','APPLY_PERMISSION_DENIED','roomMembers$','/universer-api/snapshot','_unitStatus','delay','univer-online-status','indexOf','listCollaborators','LICENSE_DISTRO_REJECTED','sid','_removeClearOtherTimer','getDocRanges','\x20-\x20','Unknown\x20user','RevisionService','_docSkeletonManagerService','getConfig','_clearScheduledTask','_onUserLeave','MemberService','unitId\x20is\x20not\x20found','registerOnClose','DocSkeletonManagerService','code','propertyIsEnumerable','_uiPartsService','_ensureSubject','size','_startSheetCollabCursor','414pHMgbV','hasOwnProperty','_colorAssignService','textRanges','4iubrtm','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','measureText','_initStatusListener','_onRecvEvent','ILocalStorageService','getRandomValues','LEAVE','BuiltInUIPart','fromCollab','defIds','TOO_MANY_REQUESTS','_compressMutationService','_memberService','_assignedColors','_range','min','sheetId','_clearRedo','closeSession','YUUMI_RATE_OVER_LIMIT','startColumn','unit','endRow','flatMap','CollaborationEntity','_listenToOfflineEvent','collaboration-session-retry','/fetchmissing?from=','enableLocalCache','EffectRefRangId','awaiting_with_pending','/allowed','href','beginPath','take','CHANGESET_ACK','UNKNOWN_CMD','_transformStack','verdancy600','/universer-api/file/{fileID}/sign-url','max','IRenderManagerService','/block/','_socketService','PERMISSION_DENIED','getImageSourceCache','collabCursorState$','SessionStatus','debounce','currentTheme$','_initCommandExecutedListener','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_startTelemetryCollaborationNewChangeset','lineTo','PERMISSION_REJ','location','APPLY_NON_SEQUENTIAL_REVISION','COMMENT_UPDATE','socket\x20open.','_tryReconnect','_onRemoteRetry','_cachedData','backgroundColor','memberID','result','_updateCollabCursors','_tryEnsureSocket','resolve','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','defineProperty','put','0\x200\x2016\x2016','IConfigService','shareReplay','_saveTaskMap','objects','IURLService','toggleOffline'];_0x98ab=function(){return _0x532f94;};return _0x98ab();}var ps=Object[_0x4aaaf0(0x562)],Cs=Object[_0x4aaaf0(0x28b)],Es=(_0x32188d,_0x5876f0,_0x3f738c,_0x3a538d)=>{for(var _0x496567=_0x3a538d>0x1?void 0x0:_0x3a538d?Cs(_0x5876f0,_0x3f738c):_0x5876f0,_0x41a1cf=_0x32188d['length']-0x1,_0x50aa05;_0x41a1cf>=0x0;_0x41a1cf--)(_0x50aa05=_0x32188d[_0x41a1cf])&&(_0x496567=(_0x3a538d?_0x50aa05(_0x5876f0,_0x3f738c,_0x496567):_0x50aa05(_0x496567))||_0x496567);return _0x3a538d&&_0x496567&&ps(_0x5876f0,_0x3f738c,_0x496567),_0x496567;},ee=(_0x2970a6,_0x491ee5)=>(_0x530fd3,_0x562aee)=>_0x491ee5(_0x530fd3,_0x562aee,_0x2970a6);exports[_0x4aaaf0(0x48f)]=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0xe6a5c2,_0x255a21,_0x4bf47b,_0x4efe67,_0x2a3114,_0x360d9c){const _0x3eda0=_0x4aaaf0;super(),u(this,'_socket$',new v[(_0x3eda0(0x442))](void 0x0)),u(this,_0x3eda0(0x498),this[_0x3eda0(0x22f)][_0x3eda0(0x2a7)]()),u(this,_0x3eda0(0x278),null),u(this,'_sessions',new Map()),u(this,_0x3eda0(0x5af),new v[(_0x3eda0(0x442))](x['IDLE'])),u(this,_0x3eda0(0x3bc),this[_0x3eda0(0x5af)][_0x3eda0(0x2a7)]()),u(this,_0x3eda0(0x463),!0x1),u(this,_0x3eda0(0x212)),u(this,_0x3eda0(0x246),0x0),u(this,_0x3eda0(0x477)),u(this,'_timeoutTimer'),(this[_0x3eda0(0x5aa)]=_0xe6a5c2,this[_0x3eda0(0x2af)]=_0x255a21,this[_0x3eda0(0x206)]=_0x4bf47b,this[_0x3eda0(0x360)]=_0x4efe67,this[_0x3eda0(0x428)]=_0x2a3114,this[_0x3eda0(0x548)]=_0x360d9c,this['_initEventListeners']());}get[_0x4aaaf0(0x5ca)](){const _0x38fc51=_0x4aaaf0;return this['_socket$'][_0x38fc51(0x42d)]();}[_0x4aaaf0(0x1bf)](){const _0x29aa96=_0x4aaaf0;this[_0x29aa96(0x536)](),this[_0x29aa96(0x1bd)]();}[_0x4aaaf0(0x342)](){const _0x1dc50c=_0x4aaaf0;super[_0x1dc50c(0x342)](),this[_0x1dc50c(0x4a0)][_0x1dc50c(0x1d6)](_0x23b0df=>_0x23b0df['dispose']()),this[_0x1dc50c(0x4a0)][_0x1dc50c(0x3e4)](),this[_0x1dc50c(0x5af)]['complete']();}async[_0x4aaaf0(0x571)](_0x3cf592){const _0xa8b62d=_0x4aaaf0;if(this['_sessions'][_0xa8b62d(0x2cc)](_0x3cf592))return this['_sessions'][_0xa8b62d(0x439)](_0x3cf592);this[_0xa8b62d(0x55f)]();const _0x43ef61=this[_0xa8b62d(0x5aa)][_0xa8b62d(0x1da)](exports['CollaborationSession'],_0x3cf592,this[_0xa8b62d(0x22f)][_0xa8b62d(0x2a7)]());return this[_0xa8b62d(0x4a0)]['set'](_0x3cf592,_0x43ef61),_0x43ef61;}[_0x4aaaf0(0x52f)](_0x3ada8c){const _0x2cd242=_0x4aaaf0;var _0x4c4819;const _0x59eca3=this[_0x2cd242(0x4a0)][_0x2cd242(0x439)](_0x3ada8c);_0x59eca3&&(this['_sessions'][_0x2cd242(0x276)](_0x3ada8c),_0x59eca3['close']()),this['_sessions'][_0x2cd242(0x516)]||(_0x4c4819=this[_0x2cd242(0x5ca)])==null||_0x4c4819[_0x2cd242(0x344)]();}['reconnect'](){const _0x25375c=_0x4aaaf0;this['_retryCount']=0x0,this[_0x25375c(0x212)]!=null&&(clearTimeout(this[_0x25375c(0x212)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}[_0x4aaaf0(0x3a2)](){const _0xe20e1d=_0x4aaaf0;var _0x3b0b10,_0x188564;const _0x501135=this[_0xe20e1d(0x428)]['getConfig'](vt),_0x99e097=this[_0xe20e1d(0x428)][_0xe20e1d(0x50b)]($),_0x39c1aa=(_0x188564=(_0x3b0b10=_0x99e097==null?void 0x0:_0x99e097[_0xe20e1d(0x2f8)])!=null?_0x3b0b10:_0x501135)!=null?_0x188564:Qt,_0x14a09c=this['_socketService'][_0xe20e1d(0x291)](_0x39c1aa);return this[_0xe20e1d(0x278)]=_0x14a09c,_0x14a09c;}[_0x4aaaf0(0x55f)](){const _0x5211dc=_0x4aaaf0;var _0xb5203f,_0x530dee;try{const _0x3c20ac=(_0x530dee=(_0xb5203f=this['_socket'])!=null?_0xb5203f:this[_0x5211dc(0x278)])!=null?_0x530dee:this[_0x5211dc(0x3a2)]();if(_0x3c20ac){const _0x500e5d=_0x3c20ac['send'];_0x3c20ac[_0x5211dc(0x306)]=_0x255e3a=>(this[_0x5211dc(0x318)](),_0x500e5d[_0x5211dc(0x461)](_0x3c20ac,[_0x255e3a])),_0x3c20ac[_0x5211dc(0x499)][_0x5211dc(0x236)](_0x34994d=>this['_onMessage'](_0x3c20ac,_0x34994d)),_0x3c20ac[_0x5211dc(0x226)][_0x5211dc(0x2b0)](E[_0x5211dc(0x53f)](0x1))[_0x5211dc(0x236)](_0x50b072=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x50b072)),_0x3c20ac[_0x5211dc(0x283)][_0x5211dc(0x2b0)](E[_0x5211dc(0x53f)](0x1))['subscribe'](()=>{const _0x29672b=_0x5211dc;this[_0x29672b(0x3a0)](_0x3c20ac);}),_0x3c20ac[_0x5211dc(0x241)][_0x5211dc(0x2b0)](E[_0x5211dc(0x53f)](0x1))['subscribe'](_0x1f1fc1=>{const _0x249c15=_0x5211dc;this[_0x249c15(0x360)][_0x249c15(0x43f)]('[CollaborationSessionService]','socket\x20close',_0x1f1fc1),this[_0x249c15(0x2a5)]();});}}catch(_0x24af90){this[_0x5211dc(0x360)][_0x5211dc(0x574)](_0x24af90),this['_onConnectionFailed']();}}[_0x4aaaf0(0x3a0)](_0x5db3cb){const _0x1f3bde=_0x4aaaf0;this['_logService']['debug'](_0x1f3bde(0x2c3),_0x1f3bde(0x557)),_0x5db3cb[_0x1f3bde(0x306)]({'cmd':b[_0x1f3bde(0x437)]}),this['_rescheduleHeartbeat']();}[_0x4aaaf0(0x536)](){const _0x5920c1=_0x4aaaf0;window[_0x5920c1(0x335)]('offline',()=>this['_onOffline']());}[_0x4aaaf0(0x256)](){const _0xf6217=_0x4aaaf0;this[_0xf6217(0x463)]=!0x1,this[_0xf6217(0x278)]=null,this[_0xf6217(0x5af)][_0xf6217(0x3b3)](x[_0xf6217(0x270)]),this['_socket$']['next'](null),this[_0xf6217(0x4a9)](),this[_0xf6217(0x3fb)]();}[_0x4aaaf0(0x2a5)](){const _0x1173d2=_0x4aaaf0;var _0xaf927b;this[_0x1173d2(0x256)](),this[_0x1173d2(0x246)]<((_0xaf927b=this[_0x1173d2(0x428)][_0x1173d2(0x50b)](ft))!=null?_0xaf927b:ss)?(this['_messageService'][_0x1173d2(0x4c5)]({'key':_0x1173d2(0x537),'type':J[_0x1173d2(0x497)][_0x1173d2(0x34b)],'content':this[_0x1173d2(0x2af)]['t'](_0x1173d2(0x4d5))}),this['_tryReconnect']()):this[_0x1173d2(0x206)]['show']({'key':_0x1173d2(0x537),'type':J[_0x1173d2(0x497)][_0x1173d2(0x413)],'content':this[_0x1173d2(0x2af)]['t'](_0x1173d2(0x346))});}[_0x4aaaf0(0x1bd)](){const _0x584cf6=_0x4aaaf0,_0x4d9033=()=>{const _0x240a82=_0x47ba;this[_0x240a82(0x5ca)]||this['reconnect']();},_0x599ef9=()=>{const _0x550b60=_0x47ba;this[_0x550b60(0x5ca)]||document[_0x550b60(0x2c8)]===_0x550b60(0x345)||this['reconnect']();};window[_0x584cf6(0x335)]('online',_0x4d9033),document[_0x584cf6(0x335)](_0x584cf6(0x415),_0x599ef9);}[_0x4aaaf0(0x558)](){const _0x186e42=_0x4aaaf0;var _0x5d89f5;const _0x1a4723=this[_0x186e42(0x246)],_0x3b2c80=this[_0x186e42(0x428)][_0x186e42(0x50b)]($),_0x25efd0=_0x1a4723===0x0?0x0:((_0x5d89f5=_0x3b2c80==null?void 0x0:_0x3b2c80[_0x186e42(0x30d)])!=null?_0x5d89f5:ts)*0x2**_0x1a4723;this[_0x186e42(0x212)]=window[_0x186e42(0x3c4)](()=>{const _0x4e064b=_0x186e42;clearTimeout(this[_0x4e064b(0x212)]),this['_retryConnectingTimer']=null,this[_0x4e064b(0x55f)]();},_0x25efd0),this['_retryCount']+=0x1;}[_0x4aaaf0(0x49f)](_0x10e8ac,_0x145716){const _0x3f5df6=_0x4aaaf0,{cmd:_0x5ab157}=_0x145716;_0x5ab157===b[_0x3f5df6(0x437)]&&!this[_0x3f5df6(0x463)]&&(_0x10e8ac[_0x3f5df6(0x55c)]=_0x145716['data'][_0x3f5df6(0x55c)],this['_socket$'][_0x3f5df6(0x3b3)](_0x10e8ac),this[_0x3f5df6(0x5af)][_0x3f5df6(0x3b3)](x['ONLINE']),this[_0x3f5df6(0x463)]=!0x0,this[_0x3f5df6(0x278)]=null),_0x5ab157===b[_0x3f5df6(0x494)]&&this[_0x3f5df6(0x4a9)](),this[_0x3f5df6(0x318)]();}[_0x4aaaf0(0x318)](){const _0x16f82c=_0x4aaaf0;var _0x5f19d8;this['_clearHeartbeatTimer'](),this[_0x16f82c(0x477)]=window['setTimeout'](()=>this[_0x16f82c(0x589)](),(_0x5f19d8=this[_0x16f82c(0x428)][_0x16f82c(0x50b)](mt))!=null?_0x5f19d8:es);}[_0x4aaaf0(0x589)](){const _0x4a6374=_0x4aaaf0;this[_0x4a6374(0x5ca)]['send']({'cmd':b[_0x4a6374(0x494)]}),this[_0x4a6374(0x201)]();}[_0x4aaaf0(0x201)](){const _0x8e9753=_0x4aaaf0;var _0x36ff0c;this[_0x8e9753(0x5d0)]=window[_0x8e9753(0x3c4)](()=>this[_0x8e9753(0x2a5)](),(_0x36ff0c=this[_0x8e9753(0x428)][_0x8e9753(0x50b)](Fe))!=null?_0x36ff0c:gt);}['_clearHeartbeatTimer'](){const _0x25acdb=_0x4aaaf0;this[_0x25acdb(0x477)]!=null&&(clearTimeout(this[_0x25acdb(0x477)]),this[_0x25acdb(0x477)]=null);}['_clearTimeoutTimer'](){const _0x4a8552=_0x4aaaf0;this[_0x4a8552(0x5d0)]!=null&&(clearTimeout(this[_0x4a8552(0x5d0)]),this[_0x4a8552(0x5d0)]=null);}},exports[_0x4aaaf0(0x48f)]=Es([ee(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),ee(0x1,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1f6)])),ee(0x2,A[_0x4aaaf0(0x31b)]),ee(0x3,a[_0x4aaaf0(0x1d1)]),ee(0x4,a['IConfigService']),ee(0x5,Ye)],exports['CollaborationSessionService']);var R=[];for(var ye=0x0;ye<0x100;++ye)R['push']((ye+0x100)[_0x4aaaf0(0x222)](0x10)[_0x4aaaf0(0x233)](0x1));function bs(_0x5b71a7,_0x343371=0x0){const _0x5bf7ae=_0x4aaaf0;return(R[_0x5b71a7[_0x343371+0x0]]+R[_0x5b71a7[_0x343371+0x1]]+R[_0x5b71a7[_0x343371+0x2]]+R[_0x5b71a7[_0x343371+0x3]]+'-'+R[_0x5b71a7[_0x343371+0x4]]+R[_0x5b71a7[_0x343371+0x5]]+'-'+R[_0x5b71a7[_0x343371+0x6]]+R[_0x5b71a7[_0x343371+0x7]]+'-'+R[_0x5b71a7[_0x343371+0x8]]+R[_0x5b71a7[_0x343371+0x9]]+'-'+R[_0x5b71a7[_0x343371+0xa]]+R[_0x5b71a7[_0x343371+0xb]]+R[_0x5b71a7[_0x343371+0xc]]+R[_0x5b71a7[_0x343371+0xd]]+R[_0x5b71a7[_0x343371+0xe]]+R[_0x5b71a7[_0x343371+0xf]])[_0x5bf7ae(0x4f0)]();}var Se,Ts=new Uint8Array(0x10);function Rs(){const _0x377796=_0x4aaaf0;if(!Se&&(Se=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x377796(0x522)][_0x377796(0x4de)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(Ts);}var Os=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x4aaaf0(0x4f3)][_0x4aaaf0(0x4de)](crypto);const tt={'randomUUID':Os};function Ds(_0xcae6b6,_0x5981b8,_0x4f7965){const _0x475feb=_0x4aaaf0;if(tt[_0x475feb(0x4f3)]&&!_0x5981b8&&!_0xcae6b6)return tt[_0x475feb(0x4f3)]();_0xcae6b6=_0xcae6b6||{};var _0x1c0d32=_0xcae6b6[_0x475feb(0x2ef)]||(_0xcae6b6[_0x475feb(0x3d0)]||Rs)();return _0x1c0d32[0x6]=_0x1c0d32[0x6]&0xf|0x40,_0x1c0d32[0x8]=_0x1c0d32[0x8]&0x3f|0x80,bs(_0x1c0d32);}var ys=Object['defineProperty'],Us=Object[_0x4aaaf0(0x28b)],Ps=(_0x3369ec,_0x190750,_0x514237,_0x207b67)=>{for(var _0xc5a832=_0x207b67>0x1?void 0x0:_0x207b67?Us(_0x190750,_0x514237):_0x190750,_0x33b075=_0x3369ec['length']-0x1,_0x169a08;_0x33b075>=0x0;_0x33b075--)(_0x169a08=_0x3369ec[_0x33b075])&&(_0xc5a832=(_0x207b67?_0x169a08(_0x190750,_0x514237,_0xc5a832):_0x169a08(_0xc5a832))||_0xc5a832);return _0x207b67&&_0xc5a832&&ys(_0x190750,_0x514237,_0xc5a832),_0xc5a832;},Ue=(_0x2987d7,_0x41d988)=>(_0x2d8c24,_0x5e7c63)=>_0x41d988(_0x2d8c24,_0x5e7c63,_0x2987d7);let fe=class{constructor(_0x4daf1e,_0x120c21,_0x1048d0){const _0x3ec976=_0x4aaaf0;this[_0x3ec976(0x5aa)]=_0x4daf1e,this['_transformService']=_0x120c21,this[_0x3ec976(0x2e3)]=_0x1048d0;}[_0x4aaaf0(0x358)](_0x419166){const _0x53241f=_0x4aaaf0;this[_0x53241f(0x5ac)](_0x419166),this[_0x53241f(0x2be)](_0x419166);}[_0x4aaaf0(0x438)](_0x1c1f03){const _0x45f484=_0x4aaaf0,{unitID:_0xf5eff6}=_0x1c1f03,_0x371ffe=this['_renderManagerService']['getRenderById'](_0xf5eff6)['with'](N[_0x45f484(0x39f)]),{redoCache:_0x25b046}=_0x371ffe['getUndoRedoMutationParamsCache']();if(_0x25b046[_0x45f484(0x31a)]===0x0)return _0x1c1f03;let _0x4d0863=a[_0x45f484(0x5a8)]['deepClone'](_0x1c1f03['mutations'][0x0]);for(let _0x35880c=0x0;_0x35880c<_0x25b046[_0x45f484(0x31a)];_0x35880c++){const _0x5f37be={'id':_0x45f484(0x350),'params':{..._0x25b046[_0x35880c]}},_0x4ad26d=this[_0x45f484(0x37f)]['transformMutation'](_0x4d0863,_0x5f37be,!0x1);if(_['isTransformMutationFailure'](_0x4ad26d))throw _0x4ad26d['error'];_0x4d0863=_0x4ad26d[_0x45f484(0x2b9)];}return{...a[_0x45f484(0x5a8)][_0x45f484(0x4b5)](_0x1c1f03),'mutations':[_0x4d0863]};}[_0x4aaaf0(0x5ac)](_0x56fb85){const _0x49472c=_0x4aaaf0,{unitID:_0x141a39}=_0x56fb85,_0x33f088=this[_0x49472c(0x2e3)][_0x49472c(0x22b)](_0x141a39)[_0x49472c(0x2ad)](N['DocIMEInputManagerService']),{undoCache:_0x36bd77,redoCache:_0x290fd0}=_0x33f088[_0x49472c(0x4e1)]();if(_0x36bd77[_0x49472c(0x31a)]===0x0||_0x290fd0[_0x49472c(0x31a)]===0x0)return;const _0x1cc2b3=[],_0x37fd5d=[];let _0x109174=a[_0x49472c(0x5a8)]['deepClone'](_0x56fb85[_0x49472c(0x2b7)][0x0]),_0x53f29c=a[_0x49472c(0x5a8)][_0x49472c(0x4b5)](_0x56fb85['mutations'][0x0]);for(let _0x503d13=_0x36bd77[_0x49472c(0x31a)]-0x1;_0x503d13>=0x0;_0x503d13--){const _0x962d48={'id':_0x49472c(0x350),'params':{..._0x36bd77[_0x503d13]}},_0x1a7be6={'id':_0x49472c(0x350),'params':{..._0x290fd0[_0x503d13]}},_0x23ce44=this[_0x49472c(0x37f)][_0x49472c(0x32b)](_0x109174,_0x962d48,!0x1),_0xfe8cf8=this[_0x49472c(0x37f)][_0x49472c(0x32b)](_0x53f29c,_0x1a7be6,!0x1);if(_[_0x49472c(0x3f6)](_0x23ce44))throw _0x23ce44['error'];if(_[_0x49472c(0x3f6)](_0xfe8cf8))throw _0xfe8cf8[_0x49472c(0x574)];_0x1cc2b3[_0x49472c(0x373)](_0x23ce44[_0x49472c(0x3a9)][_0x49472c(0x348)]),_0x37fd5d[_0x49472c(0x373)](_0xfe8cf8[_0x49472c(0x3a9)][_0x49472c(0x348)]),_0x109174=_0x23ce44[_0x49472c(0x2b9)],_0x53f29c=_0xfe8cf8[_0x49472c(0x2b9)];}_0x33f088[_0x49472c(0x286)]({'undoCache':_0x1cc2b3,'redoCache':_0x37fd5d});}[_0x4aaaf0(0x2be)](_0x316975){const _0x2815ee=_0x4aaaf0,{unitID:_0x1f980a}=_0x316975,_0x4683ec=this[_0x2815ee(0x2e3)][_0x2815ee(0x22b)](_0x1f980a)[_0x2815ee(0x2ad)](N['DocIMEInputManagerService']),_0x1e3a72=_0x4683ec['getActiveRange']();if(_0x1e3a72==null)return;const _0x2fafe0=[{'id':_0x2815ee(0x350),'params':{'unitId':_0x316975[_0x2815ee(0x41c)],'actions':null,'textRanges':[_0x1e3a72]}}],_0x9aeb97=this[_0x2815ee(0x37f)][_0x2815ee(0x34d)](_0x316975,_0x2fafe0);if(!_[_0x2815ee(0x5b7)](_0x9aeb97))throw _0x9aeb97['error'];const _0x203ded=_0x9aeb97[_0x2815ee(0x3a9)][0x0][_0x2815ee(0x348)][_0x2815ee(0x51b)];Array['isArray'](_0x203ded)&&_0x203ded['length']&&_0x4683ec[_0x2815ee(0x2e7)](_0x203ded[0x0]);}};fe=Ps([Ue(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),Ue(0x1,_['ITransformService']),Ue(0x2,O[_0x4aaaf0(0x546)])],fe);var ws=Object[_0x4aaaf0(0x562)],Ns=Object[_0x4aaaf0(0x28b)],Ms=(_0x102820,_0x509795,_0x15413c,_0x3a25f5)=>{const _0x2fe3d8=_0x4aaaf0;for(var _0x5266d1=_0x3a25f5>0x1?void 0x0:_0x3a25f5?Ns(_0x509795,_0x15413c):_0x509795,_0x196530=_0x102820[_0x2fe3d8(0x31a)]-0x1,_0x306fe0;_0x196530>=0x0;_0x196530--)(_0x306fe0=_0x102820[_0x196530])&&(_0x5266d1=(_0x3a25f5?_0x306fe0(_0x509795,_0x15413c,_0x5266d1):_0x306fe0(_0x5266d1))||_0x5266d1);return _0x3a25f5&&_0x5266d1&&ws(_0x509795,_0x15413c,_0x5266d1),_0x5266d1;},ce=(_0x240c5b,_0x2e1996)=>(_0x5d1143,_0x563d07)=>_0x2e1996(_0x5d1143,_0x563d07,_0x240c5b);exports['LocalCacheService']=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x163599,_0x3babf6,_0x631cfa,_0x23c3cf,_0x3efa37){const _0x19debe=_0x4aaaf0;super(),u(this,'_cachedData',new Map()),u(this,_0x19debe(0x567),new Map()),u(this,_0x19debe(0x234),!0x1),(this[_0x19debe(0x428)]=_0x163599,this[_0x19debe(0x25c)]=_0x3babf6,this['_beforeCloseService']=_0x631cfa,this[_0x19debe(0x2af)]=_0x23c3cf,this[_0x19debe(0x57d)]=_0x3efa37,this[_0x19debe(0x44f)]());}[_0x4aaaf0(0x20d)](){const _0x30307e=_0x4aaaf0;this[_0x30307e(0x234)]=!0x0;}[_0x4aaaf0(0x539)](){this['_disabled']=!0x1;}[_0x4aaaf0(0x342)](){const _0x375153=_0x4aaaf0;this['exhaustSavingTask']()[_0x375153(0x254)](()=>super['dispose']());}async[_0x4aaaf0(0x436)](_0x2f19d3){const _0x28e868=_0x4aaaf0;return this[_0x28e868(0x234)]?null:this[_0x28e868(0x25c)][_0x28e868(0x259)](st(_0x2f19d3));}async[_0x4aaaf0(0x369)](_0x183a34,_0x50ab2c){const _0x40d0ed=_0x4aaaf0;return!!this[_0x40d0ed(0x25c)][_0x40d0ed(0x381)](_0x183a34,_0x50ab2c);}[_0x4aaaf0(0x465)](_0xfa5a39,_0x4a92d4,_0x3a4975,_0x1e9af3){const _0x171e80=_0x4aaaf0,_0x2b10dc=this['_revisionService'][_0x171e80(0x4ad)](_0xfa5a39);this[_0x171e80(0x55a)][_0x171e80(0x4af)](_0xfa5a39,{'unitID':_0xfa5a39,'type':_0x4a92d4,'awaitingChangeset':_0x3a4975,'mutations':_0x1e9af3,'rev':_0x2b10dc}),this[_0x171e80(0x567)][_0x171e80(0x2cc)](_0xfa5a39)||this[_0x171e80(0x5a2)](_0xfa5a39);}['_scheduleSaving'](_0x2fd73f){const _0x4db450=_0x4aaaf0,_0x447ce3=this[_0x4db450(0x281)]();_0x447ce3===0x0?this[_0x4db450(0x352)](_0x2fd73f):this[_0x4db450(0x567)]['set'](_0x2fd73f,setTimeout(()=>this['_saveCache'](_0x2fd73f),_0x447ce3));}['_getSaveTimeout'](){const _0x3a8144=_0x4aaaf0;var _0x462945;return(_0x462945=this[_0x3a8144(0x428)]['getConfig'](It))!=null?_0x462945:is;}['_saveCache'](_0x4674cb){const _0x38cdf9=_0x4aaaf0,_0x182cbf=this[_0x38cdf9(0x567)]['get'](_0x4674cb);return _0x182cbf!==void 0x0&&window[_0x38cdf9(0x244)](_0x182cbf),this[_0x38cdf9(0x25c)][_0x38cdf9(0x381)](st(_0x4674cb),this['_cachedData'][_0x38cdf9(0x439)](_0x4674cb))[_0x38cdf9(0x254)](()=>this[_0x38cdf9(0x567)][_0x38cdf9(0x276)](_0x4674cb));}async[_0x4aaaf0(0x3ac)](){const _0xf958ca=_0x4aaaf0,_0x31a665=[];this[_0xf958ca(0x567)][_0xf958ca(0x1d6)]((_0x3a923c,_0x44f9ed)=>{const _0x111be4=_0xf958ca;window[_0x111be4(0x244)](_0x3a923c),_0x31a665['push'](this[_0x111be4(0x352)](_0x44f9ed)[_0x111be4(0x254)](()=>{const _0xf329f9=_0x111be4;this[_0xf329f9(0x567)]['delete'](_0x44f9ed);}));}),await Promise[_0xf958ca(0x1c7)](_0x31a665);}['_setupBeforeClosingHandler'](){const _0x5bf219=_0x4aaaf0;this[_0x5bf219(0x367)](this[_0x5bf219(0x31e)][_0x5bf219(0x4a2)](()=>{const _0xf7996d=_0x5bf219;if(this['_saveTaskMap'][_0xf7996d(0x516)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x4aaaf0(0x49c)]=Ms([ce(0x0,a[_0x4aaaf0(0x565)]),ce(0x1,a[_0x4aaaf0(0x521)]),ce(0x2,A[_0x4aaaf0(0x595)]),ce(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1f6)])),ce(0x4,a['Inject'](_[_0x4aaaf0(0x509)]))],exports['LocalCacheService']);function st(_0x21b8a8){const _0x247a96=_0x4aaaf0;return _0x247a96(0x4cb)+_0x21b8a8;}var As=Object[_0x4aaaf0(0x562)],Ls=Object['getOwnPropertyDescriptor'],$s=(_0x340fab,_0x409db6,_0x19f5d7,_0xdf03ff)=>{for(var _0x4c31c5=_0xdf03ff>0x1?void 0x0:_0xdf03ff?Ls(_0x409db6,_0x19f5d7):_0x409db6,_0x406da2=_0x340fab['length']-0x1,_0xd45fc6;_0x406da2>=0x0;_0x406da2--)(_0xd45fc6=_0x340fab[_0x406da2])&&(_0x4c31c5=(_0xdf03ff?_0xd45fc6(_0x409db6,_0x19f5d7,_0x4c31c5):_0xd45fc6(_0x4c31c5))||_0x4c31c5);return _0xdf03ff&&_0x4c31c5&&As(_0x409db6,_0x19f5d7,_0x4c31c5),_0x4c31c5;},Pe=(_0x585bbd,_0x39065a)=>(_0x2f5b0f,_0x588873)=>_0x39065a(_0x2f5b0f,_0x588873,_0x585bbd);function js(_0x28bd25){const _0x5c7501=_0x4aaaf0,{unitID:_0x326add,mutations:_0x315dff}=_0x28bd25;return{'unitId':_0x326add,'subUnitId':_0x315dff[0x0]['params'][_0x5c7501(0x395)]};}let Ie=class{constructor(_0x26e7af,_0x17fdb5,_0x432165){const _0x23d97f=_0x4aaaf0;this[_0x23d97f(0x5aa)]=_0x26e7af,this['_transformService']=_0x17fdb5,this['_instanceService']=_0x432165;}[_0x4aaaf0(0x5bf)](_0x5d9237){const _0x5a67c8=_0x4aaaf0;var _0x2a1de2,_0x423f14,_0xdde82d,_0x35fcd0;const _0x15a4a1=this[_0x5a67c8(0x5aa)][_0x5a67c8(0x439)](C[_0x5a67c8(0x29b)]),{unitId:_0x34c07e,subUnitId:_0x245cca}=js(_0x5d9237),_0x5f51de=_0x15a4a1[_0x5a67c8(0x450)](_0x34c07e)[_0x5a67c8(0x303)](),_0x2fd6b5=(_0x423f14=(_0x2a1de2=this['_instanceService'][_0x5a67c8(0x1d8)](_0x34c07e))==null?void 0x0:_0x2a1de2[_0x5a67c8(0x372)]())==null?void 0x0:_0x423f14[_0x5a67c8(0x271)]();if(_0x5f51de[_0x5a67c8(0x31a)]===0x0||!_0x34c07e||!_0x245cca)return;const _0x48a07d=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x34c07e,'subUnitId':_0x2fd6b5,'selections':a[_0x5a67c8(0x5a8)][_0x5a67c8(0x4b5)](_0x5f51de)}}],_0x1f57a3=this[_0x5a67c8(0x37f)][_0x5a67c8(0x34d)](_0x5d9237,_0x48a07d);if(!_[_0x5a67c8(0x5b7)](_0x1f57a3))throw _0x1f57a3[_0x5a67c8(0x574)];const _0x3fd60a=(_0x35fcd0=(_0xdde82d=_0x1f57a3[_0x5a67c8(0x3a9)][0x0])==null?void 0x0:_0xdde82d[_0x5a67c8(0x348)])==null?void 0x0:_0x35fcd0[_0x5a67c8(0x44d)];if(Array[_0x5a67c8(0x27b)](_0x3fd60a)&&_0x3fd60a['length']){if(_0x3fd60a['length']===_0x48a07d[0x0]['params'][_0x5a67c8(0x44d)][_0x5a67c8(0x31a)]&&_0x3fd60a[_0x5a67c8(0x262)]((_0x236426,_0x4d5413)=>a[_0x5a67c8(0x29a)][_0x5a67c8(0x484)](_0x236426['range'],_0x48a07d[0x0][_0x5a67c8(0x348)][_0x5a67c8(0x44d)][_0x4d5413][_0x5a67c8(0x325)])))return;this[_0x5a67c8(0x5aa)]['get'](a[_0x5a67c8(0x5df)])[_0x5a67c8(0x593)](C['SetSelectionsOperation']['id'],{'unitId':_0x34c07e,'subUnitId':_0x2fd6b5,'selections':_0x3fd60a});}}};Ie=$s([Pe(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),Pe(0x1,_[_0x4aaaf0(0x41f)]),Pe(0x2,a[_0x4aaaf0(0x33f)])],Ie);const Re=a['createIdentifier'](_0x4aaaf0(0x38c));var Ot=(_0x4aa383=>(_0x4aa383[_0x4aa383[_0x4aaaf0(0x2a0)]=0x0]=_0x4aaaf0(0x2a0),_0x4aa383[_0x4aa383[_0x4aaaf0(0x487)]=0x1]=_0x4aaaf0(0x487),_0x4aa383))(Ot||{});const it=0x7530,nt=_0x4aaaf0(0x247);class Hs extends a[_0x4aaaf0(0x3ef)]{constructor(){const _0x4a339=_0x4aaaf0;super(),u(this,'_id',a['Tools'][_0x4a339(0x1c9)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0x4a339(0x5bc),new Map()),u(this,'_heartbeatTimer',null),u(this,_0x4a339(0x402),new Map()),u(this,_0x4a339(0x4fe),new Map()),this[_0x4a339(0x33d)]();}[_0x4aaaf0(0x342)](){const _0x238f7c=_0x4aaaf0;super['dispose'](),this[_0x238f7c(0x402)][_0x238f7c(0x1d6)]((_0x2cd908,_0x295641)=>this[_0x238f7c(0x505)](_0x295641)),this[_0x238f7c(0x3cc)]&&window['clearInterval'](this[_0x238f7c(0x3cc)]);}['getUnitStatus$'](_0x2188b9){const _0x58e5d2=_0x4aaaf0;return this[_0x58e5d2(0x515)](_0x2188b9)['pipe'](v[_0x58e5d2(0x421)]());}[_0x4aaaf0(0x45f)](_0x1506d2){const _0xfb220=_0x4aaaf0;this[_0xfb220(0x279)][_0xfb220(0x516)]===0x0&&this[_0xfb220(0x1c8)](),this['_selfUnitIDs']['add'](_0x1506d2),this['_send']({'type':0x0,'memberID':this[_0xfb220(0x1ff)],'unitIDs':[_0x1506d2],'isForwarded':!0x1});}['disposeUnit'](_0x428d03){const _0x17651a=_0x4aaaf0;this['_selfUnitIDs']['delete'](_0x428d03),this[_0x17651a(0x279)][_0x17651a(0x516)]===0x0&&this[_0x17651a(0x3cc)]&&window[_0x17651a(0x404)](this[_0x17651a(0x3cc)]);}[_0x4aaaf0(0x33d)](){const _0x1d3a01=_0x4aaaf0;this[_0x1d3a01(0x367)](a[_0x1d3a01(0x2c6)](v[_0x1d3a01(0x401)](window,_0x1d3a01(0x460))['subscribe'](_0x2b5fcc=>{const _0x359ef0=_0x1d3a01;if(_0x2b5fcc[_0x359ef0(0x36f)]!==nt||!_0x2b5fcc['newValue'])return;const _0x34d1e1=JSON[_0x359ef0(0x249)](_0x2b5fcc[_0x359ef0(0x255)]);this[_0x359ef0(0x214)](_0x34d1e1);}))),window[_0x1d3a01(0x335)](_0x1d3a01(0x433),()=>this['_send']({'type':0x1,'memberID':this[_0x1d3a01(0x1ff)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x4aaaf0(0x214)](_0x149fcc){const _0xf1a9=_0x4aaaf0;switch(_0x149fcc[_0xf1a9(0x4aa)]){case 0x0:this[_0xf1a9(0x253)](_0x149fcc);break;case 0x1:this[_0xf1a9(0x429)](_0x149fcc);break;case 0x2:this[_0xf1a9(0x3e6)](_0x149fcc);break;}}[_0x4aaaf0(0x253)](_0x4d836d){const _0x509d16=_0x4aaaf0,{unitIDs:_0x52663e,memberID:_0x4ecbc3,isForwarded:_0x3a430a}=_0x4d836d;_0x52663e[_0x509d16(0x1d6)](_0x1f2504=>{const _0x54612b=_0x509d16;if(!_0x3a430a&&this['_unitOnClients'][_0x54612b(0x2cc)](_0x1f2504)&&this[_0x54612b(0x515)](_0x1f2504)[_0x54612b(0x3b3)](0x1),!this['_unitOnClients'][_0x54612b(0x2cc)](_0x1f2504)||!this[_0x54612b(0x5bc)][_0x54612b(0x439)](_0x1f2504)[_0x54612b(0x2cc)](_0x4ecbc3)){const _0x4c14bb=this[_0x54612b(0x5bc)][_0x54612b(0x439)](_0x1f2504)||new Set();_0x4c14bb[_0x54612b(0x24d)](_0x4ecbc3),this[_0x54612b(0x5bc)][_0x54612b(0x4af)](_0x1f2504,_0x4c14bb),this[_0x54612b(0x2e9)](_0x4ecbc3);}}),_0x3a430a||this[_0x509d16(0x4d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x509d16(0x279)]],'isForwarded':!0x0});}[_0x4aaaf0(0x2e9)](_0x15150d){const _0x44ad87=_0x4aaaf0;this[_0x44ad87(0x505)](_0x15150d);const _0x1721b4=window[_0x44ad87(0x3c4)](()=>{const _0x311735=_0x44ad87;this[_0x311735(0x5bc)][_0x311735(0x1d6)](_0x4f9cec=>{_0x4f9cec['delete'](_0x15150d);});},it*0x2);this[_0x44ad87(0x402)][_0x44ad87(0x4af)](_0x15150d,_0x1721b4);}[_0x4aaaf0(0x505)](_0x346090){const _0x1d2a68=_0x4aaaf0;if(this[_0x1d2a68(0x402)]['has'](_0x346090)){const _0x5b2907=this[_0x1d2a68(0x402)][_0x1d2a68(0x439)](_0x346090);_0x5b2907&&window['clearTimeout'](_0x5b2907),this[_0x1d2a68(0x402)]['set'](_0x346090,null);}}['_handleLeaveEvent'](_0x1613af){const _0x3de052=_0x4aaaf0,{memberID:_0x1a54fb,unitIDs:_0x3eaaad}=_0x1613af;_0x3eaaad[_0x3de052(0x1d6)](_0x247410=>{const _0x2feb1b=_0x3de052;var _0x49fc1f;const _0x362907=this[_0x2feb1b(0x5bc)][_0x2feb1b(0x439)](_0x247410);_0x362907&&(_0x362907[_0x2feb1b(0x276)](_0x1a54fb),(_0x49fc1f=this['_ensureSubject'](_0x247410))==null||_0x49fc1f[_0x2feb1b(0x3b3)](_0x362907[_0x2feb1b(0x516)]===0x0?0x0:0x1));}),this[_0x3de052(0x505)](_0x1a54fb);}[_0x4aaaf0(0x3e6)](_0x14f482){const _0x211c38=_0x4aaaf0;this[_0x211c38(0x2e9)](_0x14f482[_0x211c38(0x55c)]);}['_send'](_0x1f8bd9){const _0x977a23=_0x4aaaf0;localStorage[_0x977a23(0x381)](nt,JSON[_0x977a23(0x24c)](_0x1f8bd9));}['_scheduleHeartbeat'](){const _0x232ad8=_0x4aaaf0;this[_0x232ad8(0x3cc)]=window[_0x232ad8(0x1ea)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},it);}['_ensureSubject'](_0x259a08){const _0x35b34c=_0x4aaaf0;return this['_unitStatus']['has'](_0x259a08)||this[_0x35b34c(0x4fe)][_0x35b34c(0x4af)](_0x259a08,new v['BehaviorSubject'](0x0)),this[_0x35b34c(0x4fe)][_0x35b34c(0x439)](_0x259a08);}}function Dt(_0x4b77ba){let _0x98b98a='';for(const _0x3e6f47 of _0x4b77ba){const {startOffset:_0x8d2b59,endOffset:_0x2e47d8,isActive:_0x19878c,rangeType:_0x527185,segmentId:_0x25843d,segmentPage:_0x5769ff}=_0x3e6f47;_0x98b98a['length']&&(_0x98b98a+=','),_0x98b98a+=_0x8d2b59+':'+_0x2e47d8+':'+(_0x19878c?'1':'0')+':'+_0x527185+':'+_0x25843d+':'+_0x5769ff;}return _0x98b98a;}function xs(_0x2596a9){const _0x2d99fa=_0x4aaaf0,_0xa899ca=_0x2596a9[_0x2d99fa(0x3a5)](','),_0x128b5e=[];for(const _0x57dd90 of _0xa899ca){const [_0x31cdef,_0x5bac73,_0x3e1534,_0x5cc07e,_0x1350e1,_0x242c6b]=_0x57dd90[_0x2d99fa(0x3a5)](':');_0x128b5e[_0x2d99fa(0x4ce)]({'startOffset':Number(_0x31cdef),'endOffset':Number(_0x5bac73),'collapsed':_0x31cdef===_0x5bac73,'isActive':_0x3e1534==='1','rangeType':_0x5cc07e===a['DOC_RANGE_TYPE'][_0x2d99fa(0x3a1)]?a[_0x2d99fa(0x353)]['TEXT']:a[_0x2d99fa(0x353)][_0x2d99fa(0x5b5)],'segmentId':typeof _0x1350e1==_0x2d99fa(0x31c)?String(_0x1350e1):'','segmentPage':Number(_0x242c6b!=null?_0x242c6b:-0x1)});}return _0x128b5e[_0x2d99fa(0x240)](_0x3e67fd=>_0x3e67fd['isActive'])||(_0x128b5e[0x0][_0x2d99fa(0x4f7)]=!0x0),_0x128b5e;}class Xe extends a[_0x4aaaf0(0x275)]{constructor(){const _0x3ee688=_0x4aaaf0;super(...arguments),u(this,_0x3ee688(0x26b),new v[(_0x3ee688(0x442))](null)),u(this,_0x3ee688(0x54b),this[_0x3ee688(0x26b)][_0x3ee688(0x2a7)]());}[_0x4aaaf0(0x4d9)](_0x4232b0){const _0x1e5582=_0x4aaaf0,{unitID:_0x3a1a85,memberID:_0x4e35dc,textRanges:_0x251305}=_0x4232b0,_0x4c446a=Dt(_0x251305);if(_0x4c446a==='')return;const _0x609c4f={'unitID':_0x3a1a85,'memberID':_0x4e35dc,'selection':_0x4c446a};this[_0x1e5582(0x26b)][_0x1e5582(0x3b3)](_0x609c4f);}}var ks=Object[_0x4aaaf0(0x562)],Bs=Object['getOwnPropertyDescriptor'],Vs=(_0x1433d1,_0x572ebd,_0x4642db,_0x516654)=>{const _0x13e2cb=_0x4aaaf0;for(var _0x349cea=_0x516654>0x1?void 0x0:_0x516654?Bs(_0x572ebd,_0x4642db):_0x572ebd,_0x5f38e4=_0x1433d1[_0x13e2cb(0x31a)]-0x1,_0x593076;_0x5f38e4>=0x0;_0x5f38e4--)(_0x593076=_0x1433d1[_0x5f38e4])&&(_0x349cea=(_0x516654?_0x593076(_0x572ebd,_0x4642db,_0x349cea):_0x593076(_0x349cea))||_0x349cea);return _0x516654&&_0x349cea&&ks(_0x572ebd,_0x4642db,_0x349cea),_0x349cea;},rt=(_0x58f03d,_0x3935a0)=>(_0x2d1350,_0x4bb233)=>_0x3935a0(_0x2d1350,_0x4bb233,_0x58f03d);let pe=class{constructor(_0x233cf9,_0x48f681){this['_injector']=_0x233cf9,this['_transformService']=_0x48f681;}['transformSelections'](_0x222491){const _0x5cea0a=_0x4aaaf0;var _0x196c31;const _0x4f6f2e=this['_injector'][_0x5cea0a(0x439)](ne[_0x5cea0a(0x28f)]),_0x1392dd=(_0x196c31=_0x4f6f2e['getDocRanges']())!=null?_0x196c31:[];if(_0x1392dd[_0x5cea0a(0x31a)]===0x0)return;const _0x5aa388=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x222491['unitID'],'actions':null,'textRanges':_0x1392dd}}],_0x2fca4f=this['_transformService'][_0x5cea0a(0x34d)](_0x222491,_0x5aa388);if(!_[_0x5cea0a(0x5b7)](_0x2fca4f))throw _0x2fca4f[_0x5cea0a(0x574)];const _0x3bd96d=_0x2fca4f[_0x5cea0a(0x3a9)][0x0][_0x5cea0a(0x348)][_0x5cea0a(0x51b)];Array[_0x5cea0a(0x27b)](_0x3bd96d)&&_0x3bd96d[_0x5cea0a(0x31a)]&&_0x4f6f2e[_0x5cea0a(0x4f1)](_0x3bd96d,!0x1);}};pe=Vs([rt(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),rt(0x1,_[_0x4aaaf0(0x41f)])],pe);const Ws=new Set([C[_0x4aaaf0(0x273)]['id']]);function ot(_0x4e58b4,_0x44c518,_0x2e8fa4,_0x1491e5,_0x5412d5){const _0x3a6adf=_0x4aaaf0;var _0x4a0061,_0x30b34f,_0x3fa3bd,_0x206cb2;const _0xa476b3=[];for(const _0xd3cfa7 of _0x4e58b4)if(Ws[_0x3a6adf(0x2cc)](_0xd3cfa7['id'])){if(_0xa476b3[_0x3a6adf(0x31a)]>0x0)break;_0xa476b3[_0x3a6adf(0x4ce)](_0xd3cfa7);break;}else _0xa476b3[_0x3a6adf(0x4ce)](_0xd3cfa7);const _0x5b4ca8=(_0x30b34f=(_0x4a0061=_0x5412d5[_0x3a6adf(0x5d5)]())==null?void 0x0:_0x4a0061[_0x3a6adf(0x4bc)])!=null?_0x30b34f:_0x3a6adf(0x4a3),_0x347e11=(_0x206cb2=(_0x3fa3bd=_0x5412d5[_0x3a6adf(0x5d5)]())==null?void 0x0:_0x3fa3bd[_0x3a6adf(0x55c)])!=null?_0x206cb2:'unknown';return{'changeset':{'unitID':_0x44c518,'type':_[_0x3a6adf(0x338)](_0x2e8fa4[_0x3a6adf(0x576)](_0x44c518)),'baseRev':_0x1491e5['getCurrentRevOfUnit'](_0x44c518),'revision':0x0,'userID':_0x5b4ca8,'memberID':_0x347e11,'mutations':_0xa476b3},'pendingMutations':_0x4e58b4['slice'](_0xa476b3['length'])};}function Fs(_0x15d598,_0x5576fd,_0x3ee08c,_0x397f1a,_0x407242){const _0x5eb53f=_0x4aaaf0;var _0x39b2de,_0x548acd,_0x457fe7,_0x14d852;const _0xbf4bfe=[_0x15d598[_0x5eb53f(0x3ba)]((_0x17e938,_0x1dd653)=>{const _0x3fd605=_0x5eb53f;var _0x1df382;const {id:_0x6c12cb}=_0x17e938,{id:_0x1a1f3c,type:_0x53970e}=_0x1dd653,_0x48b136=(_0x1df382=_0x17e938[_0x3fd605(0x348)])!=null?_0x1df382:{'actions':null},_0x36b476=_0x1dd653[_0x3fd605(0x348)];if(_0x6c12cb&&_0x6c12cb!==_0x1a1f3c)throw new Error(_0x3fd605(0x20a)+_0x6c12cb+_0x3fd605(0x507)+_0x1a1f3c+'.');return{..._0x17e938,'id':_0x1a1f3c,'type':_0x53970e,'params':{'unitId':_0x36b476[_0x3fd605(0x22c)],'textRanges':_0x36b476[_0x3fd605(0x51b)],'actions':a['JSONX']['compose'](_0x48b136['actions'],_0x36b476[_0x3fd605(0x45c)])}};},{})],_0x178d76=(_0x548acd=(_0x39b2de=_0x407242[_0x5eb53f(0x5d5)]())==null?void 0x0:_0x39b2de['userID'])!=null?_0x548acd:_0x5eb53f(0x4a3),_0x29b99e=(_0x14d852=(_0x457fe7=_0x407242['getCurrentUser']())==null?void 0x0:_0x457fe7[_0x5eb53f(0x55c)])!=null?_0x14d852:'unknown';return{'changeset':{'unitID':_0x5576fd,'type':_[_0x5eb53f(0x338)](_0x3ee08c[_0x5eb53f(0x576)](_0x5576fd)),'baseRev':_0x397f1a[_0x5eb53f(0x4ad)](_0x5576fd),'revision':0x0,'userID':_0x178d76,'memberID':_0x29b99e,'mutations':_0xbf4bfe},'pendingMutations':[]};}function yt(_0x4090d3,_0xaa914d){const _0x463aa7=_0x4aaaf0,_0x2f6ef3=new v[(_0x463aa7(0x3bd))](0x1);return setTimeout(()=>_0x2f6ef3['next'](_0xaa914d),_0x4090d3),_0x2f6ef3[_0x463aa7(0x2a7)]()['pipe'](v[_0x463aa7(0x53f)](0x1));}const Gs={'id':C[_0x4aaaf0(0x3a3)]['id'],'type':a[_0x4aaaf0(0x49d)]['MUTATION'],'params':{}};var Ys=Object[_0x4aaaf0(0x562)],Ks=Object[_0x4aaaf0(0x28b)],Z=(_0x359ce0,_0x34d820,_0x4d6a62,_0x306b63)=>{const _0x26669d=_0x4aaaf0;for(var _0xbd885b=_0x306b63>0x1?void 0x0:_0x306b63?Ks(_0x34d820,_0x4d6a62):_0x34d820,_0x295783=_0x359ce0[_0x26669d(0x31a)]-0x1,_0x34e16b;_0x295783>=0x0;_0x295783--)(_0x34e16b=_0x359ce0[_0x295783])&&(_0xbd885b=(_0x306b63?_0x34e16b(_0x34d820,_0x4d6a62,_0xbd885b):_0x34e16b(_0xbd885b))||_0xbd885b);return _0x306b63&&_0xbd885b&&Ys(_0x34d820,_0x4d6a62,_0xbd885b),_0xbd885b;},g=(_0x5eb7d7,_0x28e289)=>(_0x13cbe9,_0x1db225)=>_0x28e289(_0x13cbe9,_0x1db225,_0x5eb7d7),D=(_0x5c90b7=>(_0x5c90b7[_0x4aaaf0(0x251)]='not_collab',_0x5c90b7[_0x4aaaf0(0x2a1)]=_0x4aaaf0(0x2c4),_0x5c90b7['PENDING']=_0x4aaaf0(0x362),_0x5c90b7['AWAITING']='awaiting',_0x5c90b7['AWAITING_WITH_PENDING']=_0x4aaaf0(0x53b),_0x5c90b7[_0x4aaaf0(0x3db)]=_0x4aaaf0(0x285),_0x5c90b7[_0x4aaaf0(0x572)]=_0x4aaaf0(0x587),_0x5c90b7['OFFLINE']=_0x4aaaf0(0x45a),_0x5c90b7))(D||{});const Ut=0xea60;class Q{constructor(_0x327db5,_0x1c4312,_0x4b04e4,_0x19ec32,_0x3e8ab7,_0x102262,_0x237e60,_0x19bb62,_0x58b05a){const _0x3a875b=_0x4aaaf0;u(this,_0x3a875b(0x4f5),null),u(this,_0x3a875b(0x4be),[]),(this['unitID']=_0x327db5,this[_0x3a875b(0x4aa)]=_0x1c4312,this['_handler']=_0x3e8ab7,this['_commandService']=_0x102262,this[_0x3a875b(0x4d7)]=_0x237e60,this['_revisionService']=_0x19bb62,this[_0x3a875b(0x4e9)]=_0x58b05a,this[_0x3a875b(0x4f5)]=_0x4b04e4,this[_0x3a875b(0x4be)]=_0x19ec32);}[_0x4aaaf0(0x24b)](_0x4dd6a0){const _0x5d2d66=_0x4aaaf0,_0x358bb5=this[_0x5d2d66(0x57d)][_0x5d2d66(0x4ad)](this[_0x5d2d66(0x41c)]);return _0x4dd6a0[_0x5d2d66(0x4bb)]>_0x358bb5+0x1?(this[_0x5d2d66(0x5c4)][_0x5d2d66(0x1d3)]({'from':_0x358bb5,'to':_0x4dd6a0[_0x5d2d66(0x4bb)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x39c21b){const _0x3e50b7=_0x4aaaf0;this['_undoRedoService']['transformUndoRedo'](this[_0x3e50b7(0x41c)],_0x39c21b);}[_0x4aaaf0(0x33c)](_0x39169d){const _0x4dfcab=_0x4aaaf0;var _0x15ad6a,_0x4ec697;(_0x4ec697=(_0x15ad6a=this[_0x4dfcab(0x5c4)])[_0x4dfcab(0x4d3)])==null||_0x4ec697[_0x4dfcab(0x48a)](_0x15ad6a,_0x39169d);}[_0x4aaaf0(0x42e)](_0x4338ef){const _0x39e1f0=_0x4aaaf0;var _0x2d389f,_0x426e31;return(_0x426e31=(_0x2d389f=this[_0x39e1f0(0x5c4)])[_0x39e1f0(0x1ef)])==null?void 0x0:_0x426e31[_0x39e1f0(0x48a)](_0x2d389f,_0x4338ef);}[_0x4aaaf0(0x4cc)](_0x9e7f42){const _0x428649=_0x4aaaf0;var _0xd84511,_0x472209,_0x578040;return(_0x578040=(_0x472209=(_0xd84511=this['_handler'])[_0x428649(0x447)])==null?void 0x0:_0x472209[_0x428649(0x48a)](_0xd84511,_0x9e7f42))!=null?_0x578040:_0x9e7f42;}['_syncEditingCollabCursor'](_0x2d6490){const _0x2cd134=_0x4aaaf0;var _0x5d1c8b,_0x34739c;if(this[_0x2cd134(0x4aa)]===H[_0x2cd134(0x238)]){const {unitID:_0x3d7e48,mutations:_0x477822,memberID:_0x31d7d1}=_0x2d6490,_0xb84ae5=_0x477822[0x0]['params'][_0x2cd134(0x51b)];Array['isArray'](_0xb84ae5)&&_0xb84ae5['length']>0x0&&((_0x34739c=(_0x5d1c8b=this['_handler'])[_0x2cd134(0x216)])==null||_0x34739c['call'](_0x5d1c8b,{'unitID':_0x3d7e48,'memberID':_0x31d7d1,'textRanges':_0xb84ae5}));}}['_updateLocalCache'](){const _0x49e6dd=_0x4aaaf0;this[_0x49e6dd(0x4e9)]['updateOfflineData'](this['unitID'],this[_0x49e6dd(0x4aa)],this[_0x49e6dd(0x4f5)],this[_0x49e6dd(0x4be)]);}[_0x4aaaf0(0x24e)](){const _0x2ff5f3=_0x4aaaf0;return this[_0x2ff5f3(0x57d)]['getCurrentRevOfUnit'](this[_0x2ff5f3(0x41c)]);}[_0x4aaaf0(0x43d)](){const _0x2bae58=_0x4aaaf0;this['_revisionService'][_0x2bae58(0x2c5)](this[_0x2bae58(0x41c)]);}[_0x4aaaf0(0x36e)](_0x2a2cb5){const _0x56d265=_0x4aaaf0;var _0x2a5cf3;const _0x25d994=this[_0x56d265(0x4cc)](_0x2a2cb5),_0x33092e=a[_0x56d265(0x4d8)](_0x25d994[_0x56d265(0x2b7)],this[_0x56d265(0x310)],{'fromCollab':!0x0});if(!_0x33092e[_0x56d265(0x55d)])throw _0x33092e[_0x56d265(0x574)]instanceof Error?_0x33092e[_0x56d265(0x574)]:new Error((_0x2a5cf3=_0x33092e[_0x56d265(0x574)])!=null?_0x2a5cf3:_0x56d265(0x299));this[_0x56d265(0x42e)](_0x25d994),this[_0x56d265(0x1e6)](_0x2a2cb5),this[_0x56d265(0x33c)](_0x25d994),this[_0x56d265(0x45d)](_0x25d994),this[_0x56d265(0x43d)]();}}let re=class extends Q{constructor(_0x4f0052,_0x16383f,_0x44046a,_0x207366,_0x103a25,_0x14369d,_0x31775c,_0x375a58,_0x49a24d,_0x3206c6){const _0x477a92=_0x4aaaf0;super(_0x4f0052,_0x16383f,null,[],_0x44046a,_0x375a58,_0x31775c,_0x207366,_0x103a25),u(this,_0x477a92(0x425),_0x477a92(0x2c4)),(this[_0x477a92(0x5aa)]=_0x14369d,this['_logService']=_0x49a24d,this[_0x477a92(0x37f)]=_0x3206c6);}[_0x4aaaf0(0x38e)](_0x13f631){const _0x545150=_0x4aaaf0,_0x1e6d2e=this[_0x545150(0x5aa)]['createInstance'](W,this[_0x545150(0x41c)],this['type'],[_0x13f631],this[_0x545150(0x5c4)]);return _0x1e6d2e[_0x545150(0x416)](),_0x1e6d2e[_0x545150(0x2b5)](),_0x1e6d2e;}['onRemoteChangeset'](_0x18800a){const _0x3d0302=_0x4aaaf0;if(this[_0x3d0302(0x24b)](_0x18800a))return this[_0x3d0302(0x5aa)][_0x3d0302(0x1da)](k,this[_0x3d0302(0x41c)],this[_0x3d0302(0x4aa)],null,[],null,[_0x18800a],this[_0x3d0302(0x5c4)]);try{const _0x27e7b3=this[_0x3d0302(0x37f)][_0x3d0302(0x34d)](_0x18800a,[Gs]);if(_[_0x3d0302(0x5b7)](_0x27e7b3)){const {c1Prime:_0x4c9d1a}=_0x27e7b3;return this[_0x3d0302(0x36e)](_0x4c9d1a),this;}throw _0x27e7b3['error'];}catch(_0x2d47c7){return this[_0x3d0302(0x360)][_0x3d0302(0x574)](_0x2d47c7),this[_0x3d0302(0x58b)](!0x1);}}[_0x4aaaf0(0x58b)](_0x3d89fd){const _0x262ef9=_0x4aaaf0;return this[_0x262ef9(0x5aa)][_0x262ef9(0x1da)](K,this['unitID'],this[_0x262ef9(0x4aa)],null,[],this[_0x262ef9(0x5c4)],_0x3d89fd);}['onRemoteAck'](){const _0x55a259=_0x4aaaf0;throw new Error(_0x55a259(0x3d5));}[_0x4aaaf0(0x2cb)](){const _0x433438=_0x4aaaf0;throw new Error(_0x433438(0x383));}[_0x4aaaf0(0x488)](){return this;}[_0x4aaaf0(0x56a)](){const _0x333948=_0x4aaaf0;return this[_0x333948(0x5aa)][_0x333948(0x1da)](X,this[_0x333948(0x41c)],this[_0x333948(0x4aa)],null,[],this[_0x333948(0x5c4)]);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x399)](){const _0x29213e=_0x4aaaf0;throw new Error(_0x29213e(0x414));}[_0x4aaaf0(0x5e0)](){const _0x1ce2c9=_0x4aaaf0,_0xdf90c9=this[_0x1ce2c9(0x57d)][_0x1ce2c9(0x4ad)](this[_0x1ce2c9(0x41c)]);return this[_0x1ce2c9(0x5c4)]['onMissingChangesets']({'from':_0xdf90c9,'to':0x0}),this['_injector'][_0x1ce2c9(0x1da)](k,this[_0x1ce2c9(0x41c)],this[_0x1ce2c9(0x4aa)],null,[],null,[],this[_0x1ce2c9(0x5c4)]);}};re=Z([g(0x3,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),g(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0x5,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x6,a[_0x4aaaf0(0x490)]),g(0x7,a['ICommandService']),g(0x8,a[_0x4aaaf0(0x1d1)]),g(0x9,_[_0x4aaaf0(0x41f)])],re);let W=class extends Q{constructor(_0x17bfa1,_0x2c5146,_0x361d64,_0x17e0fc,_0x35a693,_0x46125b,_0x300a14,_0x56fe6b,_0x506fb8,_0x261be8,_0x474568,_0x1b17ad,_0x316e6c,_0x25f562){const _0x331b30=_0x4aaaf0;super(_0x17bfa1,_0x2c5146,null,_0x361d64,_0x17e0fc,_0x261be8,_0x25f562,_0x46125b,_0x300a14),u(this,_0x331b30(0x425),_0x331b30(0x362)),u(this,_0x331b30(0x1cb),null),u(this,'_sendingTimer',null),(this[_0x331b30(0x5aa)]=_0x35a693,this[_0x331b30(0x529)]=_0x56fe6b,this[_0x331b30(0x360)]=_0x506fb8,this[_0x331b30(0x428)]=_0x474568,this[_0x331b30(0x37f)]=_0x1b17ad,this[_0x331b30(0x46d)]=_0x316e6c);}[_0x4aaaf0(0x38e)](_0x4718ac){const _0xffcfd9=_0x4aaaf0;return this[_0xffcfd9(0x4be)]['push'](_0x4718ac),this[_0xffcfd9(0x2b5)](),this;}[_0x4aaaf0(0x3c2)](_0x592959){const _0x3d6d86=_0x4aaaf0;if(this[_0x3d6d86(0x24b)](_0x592959))return this[_0x3d6d86(0x50c)](),this['_injector'][_0x3d6d86(0x1da)](k,this[_0x3d6d86(0x41c)],this['type'],null,this[_0x3d6d86(0x4be)],null,[_0x592959],this[_0x3d6d86(0x5c4)]);try{const _0x4cc989=this[_0x3d6d86(0x37f)][_0x3d6d86(0x34d)](_0x592959,this[_0x3d6d86(0x4be)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x4cc989)){const {c1Prime:_0x31c6fd,m2Prime:_0x3f3211}=_0x4cc989;this['_executeRemoteChangeset'](_0x31c6fd);const _0x1c5bae=this[_0x3d6d86(0x5aa)]['createInstance'](W,this['unitID'],this['type'],_0x3f3211,this[_0x3d6d86(0x5c4)]);return this['_clearScheduledTask'](),_0x1c5bae[_0x3d6d86(0x416)](this[_0x3d6d86(0x1cb)]?Math[_0x3d6d86(0x545)](0x0,new Date()[_0x3d6d86(0x3f4)]()-this[_0x3d6d86(0x1cb)]):this[_0x3d6d86(0x237)]()),_0x1c5bae;}throw _0x4cc989[_0x3d6d86(0x574)];}catch(_0x509cb0){return this[_0x3d6d86(0x360)][_0x3d6d86(0x574)](_0x509cb0),this[_0x3d6d86(0x58b)](!0x1);}}[_0x4aaaf0(0x1f9)](){const _0x278c2e=_0x4aaaf0;throw new Error(_0x278c2e(0x41e));}[_0x4aaaf0(0x2cb)](){const _0x2fba89=_0x4aaaf0;throw new Error(_0x2fba89(0x58c));}['onRemoteRetry'](){return this;}[_0x4aaaf0(0x56a)](){const _0x15df35=_0x4aaaf0;return this[_0x15df35(0x50c)](),this[_0x15df35(0x5aa)][_0x15df35(0x1da)](X,this[_0x15df35(0x41c)],this[_0x15df35(0x4aa)],null,this[_0x15df35(0x4be)],this['_handler']);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x416)](_0x1ac82e){const _0xcd06dd=_0x4aaaf0,_0x26c626=_0x1ac82e!=null?_0x1ac82e:this[_0xcd06dd(0x237)]();this[_0xcd06dd(0x1cb)]=new Date()[_0xcd06dd(0x3f4)](),this[_0xcd06dd(0x57e)]=window[_0xcd06dd(0x3c4)](()=>{const _0x3904e0=_0xcd06dd;this['_clearScheduledTask']();let _0x523e50=null;switch(this[_0x3904e0(0x4aa)]){case H[_0x3904e0(0x4d0)]:{_0x523e50=ot(this[_0x3904e0(0x4be)],this['unitID'],this[_0x3904e0(0x46d)],this['_revisionService'],this[_0x3904e0(0x529)]);break;}case H['UNIVER_DOC']:{this['_pendingMutations'][_0x3904e0(0x262)](_0x3c3b11=>_0x3c3b11['id']===ne[_0x3904e0(0x1cf)]['id'])?_0x523e50=Fs(this['_pendingMutations'],this['unitID'],this[_0x3904e0(0x46d)],this['_revisionService'],this[_0x3904e0(0x529)]):_0x523e50=ot(this[_0x3904e0(0x4be)],this[_0x3904e0(0x41c)],this[_0x3904e0(0x46d)],this['_revisionService'],this[_0x3904e0(0x529)]);break;}default:throw new Error(_0x3904e0(0x58a)+this[_0x3904e0(0x4aa)]+_0x3904e0(0x5b6));}const {changeset:_0x1310d1,pendingMutations:_0xde62cc}=_0x523e50;this[_0x3904e0(0x5c4)][_0x3904e0(0x25b)](_0x1310d1);const _0x680eeb=_0xde62cc[_0x3904e0(0x31a)]?this[_0x3904e0(0x5aa)][_0x3904e0(0x1da)](F,this[_0x3904e0(0x41c)],this[_0x3904e0(0x4aa)],_0x1310d1,_0xde62cc,this[_0x3904e0(0x5c4)],void 0x0):this[_0x3904e0(0x5aa)][_0x3904e0(0x1da)](Y,this[_0x3904e0(0x41c)],this[_0x3904e0(0x4aa)],_0x1310d1,this[_0x3904e0(0x5c4)]);_0x680eeb['_updateLocalCache'](),this[_0x3904e0(0x5c4)]['onStateChange'](this,_0x680eeb);},_0x26c626);}[_0x4aaaf0(0x237)](){const _0x341fbd=_0x4aaaf0;var _0x2eb849;const _0x36d709=this[_0x341fbd(0x428)][_0x341fbd(0x50b)]($);return(_0x2eb849=_0x36d709==null?void 0x0:_0x36d709['sendChangesetTimeout'])!=null?_0x2eb849:Zt;}[_0x4aaaf0(0x399)](){const _0x3c5a58=_0x4aaaf0;throw new Error(_0x3c5a58(0x51d));}['_clearScheduledTask'](){const _0x2680bb=_0x4aaaf0;this[_0x2680bb(0x57e)]!=null&&(clearTimeout(this[_0x2680bb(0x57e)]),this[_0x2680bb(0x57e)]=null);}['_onConflict'](_0x3ba745){const _0x277eee=_0x4aaaf0;return this['_clearScheduledTask'](),this[_0x277eee(0x5aa)][_0x277eee(0x1da)](K,this['unitID'],this['type'],null,this[_0x277eee(0x4be)],this[_0x277eee(0x5c4)],_0x3ba745);}};W=Z([g(0x4,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x5,a[_0x4aaaf0(0x1b2)](_['RevisionService'])),g(0x6,a['Inject'](exports['LocalCacheService'])),g(0x7,a['Inject'](exports['MemberService'])),g(0x8,a[_0x4aaaf0(0x1d1)]),g(0x9,a[_0x4aaaf0(0x5df)]),g(0xa,a['IConfigService']),g(0xb,_[_0x4aaaf0(0x41f)]),g(0xc,a[_0x4aaaf0(0x33f)]),g(0xd,a[_0x4aaaf0(0x490)])],W);let Y=class extends Q{constructor(_0x2240cc,_0x5d9065,_0x5376aa,_0x5df73d,_0x4ee512,_0x4d28a3,_0xdba732,_0xb392d6,_0x575842,_0x42fbf5,_0x16e55e){const _0xc4047b=_0x4aaaf0;super(_0x2240cc,_0x5d9065,_0x5376aa,[],_0x5df73d,_0xb392d6,_0x16e55e,_0x4d28a3,_0xdba732),u(this,_0xc4047b(0x425),'awaiting'),u(this,_0xc4047b(0x596),0x0),u(this,_0xc4047b(0x466)),u(this,_0xc4047b(0x5c7)),(this[_0xc4047b(0x5aa)]=_0x4ee512,this[_0xc4047b(0x360)]=_0x575842,this[_0xc4047b(0x37f)]=_0x42fbf5);}[_0x4aaaf0(0x38e)](_0x1452cf){const _0x9c9f04=_0x4aaaf0;this[_0x9c9f04(0x50c)]();const _0x6ae0cc=this['_injector']['createInstance'](F,this[_0x9c9f04(0x41c)],this[_0x9c9f04(0x4aa)],this[_0x9c9f04(0x4f5)],[_0x1452cf],this[_0x9c9f04(0x5c4)],this['_resendTimer']);return _0x6ae0cc[_0x9c9f04(0x2b5)](),_0x6ae0cc;}[_0x4aaaf0(0x3c2)](_0x10ceec){const _0x1320e7=_0x4aaaf0;if(this[_0x1320e7(0x24b)](_0x10ceec))return this[_0x1320e7(0x50c)](),this[_0x1320e7(0x5aa)][_0x1320e7(0x1da)](k,this[_0x1320e7(0x41c)],this[_0x1320e7(0x4aa)],this[_0x1320e7(0x4f5)],[],null,[_0x10ceec],this[_0x1320e7(0x5c4)]);try{const _0x51f2a1=this[_0x1320e7(0x37f)][_0x1320e7(0x33a)]([_0x10ceec],[this[_0x1320e7(0x4f5)]],!0x1);if(_[_0x1320e7(0x3dc)](_0x51f2a1)){const {c1Prime:_0x358ef5,c2Prime:_0x39e871}=_0x51f2a1;this[_0x1320e7(0x36e)](_0x358ef5[0x0]),_0x39e871[0x0][_0x1320e7(0x224)]=this[_0x1320e7(0x24e)](),this[_0x1320e7(0x50c)]();const _0x45293a=this[_0x1320e7(0x5aa)][_0x1320e7(0x1da)](Y,this[_0x1320e7(0x41c)],this['type'],_0x39e871[0x0],this[_0x1320e7(0x5c4)]);return _0x45293a[_0x1320e7(0x2b5)](),_0x45293a;}return this['_onConflict'](!0x1);}catch(_0x5a180a){return this[_0x1320e7(0x360)][_0x1320e7(0x574)](_0x5a180a),this[_0x1320e7(0x58b)](!0x1);}}[_0x4aaaf0(0x1f9)](_0x220b95){const _0x294316=_0x4aaaf0;this[_0x294316(0x50c)]();const _0x51490b=this[_0x294316(0x57d)][_0x294316(0x4ad)](this[_0x294316(0x41c)]);if(_0x220b95[_0x294316(0x4bb)]<_0x51490b-0x1)return this;if(this[_0x294316(0x24b)](_0x220b95))return this[_0x294316(0x5aa)][_0x294316(0x1da)](k,this['unitID'],this[_0x294316(0x4aa)],null,[],this[_0x294316(0x4f5)],[],this[_0x294316(0x5c4)]);this[_0x294316(0x43d)]();const _0x4189f5=this[_0x294316(0x5aa)][_0x294316(0x1da)](re,this[_0x294316(0x41c)],this[_0x294316(0x4aa)],this[_0x294316(0x5c4)]);return _0x4189f5[_0x294316(0x2b5)](),_0x4189f5;}[_0x4aaaf0(0x2cb)](_0x279fb7){const _0x5ef1ab=_0x4aaaf0;return this['_onConflict'](!!(_0x279fb7!=null&&_0x279fb7[_0x5ef1ab(0x267)]));}[_0x4aaaf0(0x488)](_0x3e483b){const _0x6ba021=_0x4aaaf0;return this[_0x6ba021(0x596)]>Ut?this[_0x6ba021(0x56a)]():(this['_resendTimer']=yt(this[_0x6ba021(0x596)],{'timeout':this[_0x6ba021(0x596)],'reqId':_0x3e483b[_0x6ba021(0x2d2)]}),this['_sender']=this[_0x6ba021(0x466)]['subscribe'](({reqId:_0x177921,timeout:_0x3a970e})=>{const _0x5627fd=_0x6ba021;this[_0x5627fd(0x1bc)](_0x177921,_0x3a970e);}),this);}[_0x4aaaf0(0x56a)](){const _0x18b209=_0x4aaaf0;return this['_clearScheduledTask'](),this['_injector']['createInstance'](X,this[_0x18b209(0x41c)],this['type'],this[_0x18b209(0x4f5)],[],this[_0x18b209(0x5c4)]);}['toggleOnline'](){return this;}[_0x4aaaf0(0x399)](){const _0x3d721f=_0x4aaaf0;this['_handler']['onSendChangeset'](this[_0x3d721f(0x4f5)]);}[_0x4aaaf0(0x58b)](_0x5a0551){const _0x38c57e=_0x4aaaf0;return this[_0x38c57e(0x50c)](),this[_0x38c57e(0x5aa)][_0x38c57e(0x1da)](K,this['unitID'],this[_0x38c57e(0x4aa)],this[_0x38c57e(0x4f5)],[],this[_0x38c57e(0x5c4)],_0x5a0551);}[_0x4aaaf0(0x1bc)](_0x131de3,_0x659026){const _0x2b236b=_0x4aaaf0;var _0x46ab1e;_0x131de3===((_0x46ab1e=this[_0x2b236b(0x4f5)])==null?void 0x0:_0x46ab1e[_0x2b236b(0x2d2)])&&(this[_0x2b236b(0x399)](),this['_resendTimeout']=_0x659026===0x0?0x3e8:_0x659026*0x2);}[_0x4aaaf0(0x50c)](){const _0x1a828c=_0x4aaaf0;var _0x29cc20;(_0x29cc20=this[_0x1a828c(0x5c7)])==null||_0x29cc20['unsubscribe'](),this[_0x1a828c(0x596)]=0x0;}};Y=Z([g(0x4,a['Inject'](a[_0x4aaaf0(0x2ee)])),g(0x5,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),g(0x6,a[_0x4aaaf0(0x1b2)](exports['LocalCacheService'])),g(0x7,a['ICommandService']),g(0x8,a['ILogService']),g(0x9,_[_0x4aaaf0(0x41f)]),g(0xa,a['IUndoRedoService'])],Y);let F=class extends Q{constructor(_0xcff493,_0x4d457a,_0x766a5b,_0x56e382,_0x3fcff5,_0x10f15d,_0x2bddb1,_0x20ab29,_0x2725e4,_0x2886b5,_0x2ee654,_0x3a6f9c,_0x3d5e4b){const _0x84db2d=_0x4aaaf0;super(_0xcff493,_0x4d457a,_0x766a5b,_0x56e382,_0x3fcff5,_0x2886b5,_0x3d5e4b,_0x20ab29,_0x2725e4),u(this,_0x84db2d(0x425),_0x84db2d(0x53b)),u(this,_0x84db2d(0x596),0x0),u(this,_0x84db2d(0x466)),u(this,'_sender'),(this[_0x84db2d(0x5aa)]=_0x2bddb1,this[_0x84db2d(0x360)]=_0x2ee654,this[_0x84db2d(0x37f)]=_0x3a6f9c,_0x10f15d&&(this[_0x84db2d(0x466)]=_0x10f15d,this['_sender']=this[_0x84db2d(0x466)]['subscribe'](({reqId:_0x2adff5,timeout:_0x26fb94})=>{const _0x1cad5f=_0x84db2d;this[_0x1cad5f(0x1bc)](_0x2adff5,_0x26fb94);})));}['appendMutation'](_0x5d9bda){const _0x186fa9=_0x4aaaf0;return this[_0x186fa9(0x4be)][_0x186fa9(0x4ce)](_0x5d9bda),this;}[_0x4aaaf0(0x3c2)](_0x3b1e6c){const _0x521f5c=_0x4aaaf0;if(this[_0x521f5c(0x24b)](_0x3b1e6c))return this['_clearScheduledTask'](),this['_injector']['createInstance'](k,this[_0x521f5c(0x41c)],this['type'],this[_0x521f5c(0x4f5)],this['_pendingMutations'],null,[_0x3b1e6c],this[_0x521f5c(0x5c4)]);try{const _0x48d4da=this[_0x521f5c(0x37f)][_0x521f5c(0x33a)]([_0x3b1e6c],[this['_awaitingChangeset']],!0x1);if(_[_0x521f5c(0x3dc)](_0x48d4da)){const {c1Prime:_0x514d70,c2Prime:_0x87d95d}=_0x48d4da,_0x43298f=this['_transformService']['transformMutationsWithChangeset'](_0x514d70[0x0],this[_0x521f5c(0x4be)]);if(_[_0x521f5c(0x5b7)](_0x43298f)){const {c1Prime:_0x299687,m2Prime:_0x12320d}=_0x43298f;return this[_0x521f5c(0x36e)](_0x299687),_0x87d95d[0x0][_0x521f5c(0x224)]=this[_0x521f5c(0x24e)](),this[_0x521f5c(0x50c)](),this[_0x521f5c(0x5aa)][_0x521f5c(0x1da)](F,this[_0x521f5c(0x41c)],this[_0x521f5c(0x4aa)],_0x87d95d[0x0],_0x12320d,this[_0x521f5c(0x5c4)],void 0x0);}throw _0x43298f[_0x521f5c(0x574)];}throw _0x48d4da[_0x521f5c(0x574)];}catch(_0x26cfc3){return this[_0x521f5c(0x360)][_0x521f5c(0x574)](_0x26cfc3),this['_onConflict'](!0x1);}}[_0x4aaaf0(0x1f9)](_0x540ac0){const _0x84a4fb=_0x4aaaf0;if(this['_clearScheduledTask'](),this[_0x84a4fb(0x24b)](_0x540ac0))return this[_0x84a4fb(0x5aa)][_0x84a4fb(0x1da)](k,this[_0x84a4fb(0x41c)],this['type'],null,this[_0x84a4fb(0x4be)],this[_0x84a4fb(0x4f5)],[],this[_0x84a4fb(0x5c4)]);this[_0x84a4fb(0x43d)]();const _0x3c173f=this[_0x84a4fb(0x5aa)][_0x84a4fb(0x1da)](W,this[_0x84a4fb(0x41c)],this['type'],this[_0x84a4fb(0x4be)],this[_0x84a4fb(0x5c4)]);return _0x3c173f['_schedule'](),_0x3c173f[_0x84a4fb(0x2b5)](),_0x3c173f;}[_0x4aaaf0(0x2cb)](_0x4f1102){const _0x4877a0=_0x4aaaf0;return this[_0x4877a0(0x58b)](!!(_0x4f1102!=null&&_0x4f1102['isPermissionRej']));}[_0x4aaaf0(0x488)](_0x5b6542){const _0x208204=_0x4aaaf0;return this[_0x208204(0x596)]>Ut?this[_0x208204(0x56a)]():(this['_resendTimer']=yt(this[_0x208204(0x596)],{'timeout':this[_0x208204(0x596)],'reqId':_0x5b6542[_0x208204(0x2d2)]}),this[_0x208204(0x5c7)]=this[_0x208204(0x466)]['subscribe'](({reqId:_0x24216,timeout:_0x494f71})=>{const _0x4705af=_0x208204;this[_0x4705af(0x1bc)](_0x24216,_0x494f71);}),this);}['toggleOffline'](){const _0x2db7dc=_0x4aaaf0;return this['_clearScheduledTask'](),this[_0x2db7dc(0x5aa)][_0x2db7dc(0x1da)](X,this[_0x2db7dc(0x41c)],this[_0x2db7dc(0x4aa)],this['_awaitingChangeset'],this[_0x2db7dc(0x4be)],this[_0x2db7dc(0x5c4)]);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x399)](){const _0x2562e1=_0x4aaaf0;this[_0x2562e1(0x5c4)][_0x2562e1(0x25b)](this[_0x2562e1(0x4f5)]);}[_0x4aaaf0(0x58b)](_0x2471f8){const _0xba74c7=_0x4aaaf0;return this[_0xba74c7(0x50c)](),this[_0xba74c7(0x5aa)]['createInstance'](K,this[_0xba74c7(0x41c)],this['type'],null,this[_0xba74c7(0x4be)],this[_0xba74c7(0x5c4)],_0x2471f8);}[_0x4aaaf0(0x1bc)](_0x270056,_0x473f95){const _0x4a5445=_0x4aaaf0;var _0x52382f;_0x270056===((_0x52382f=this[_0x4a5445(0x4f5)])==null?void 0x0:_0x52382f[_0x4a5445(0x2d2)])&&(this[_0x4a5445(0x399)](),this['_resendTimeout']=_0x473f95===0x0?0x3e8:_0x473f95*0x2);}['_clearScheduledTask'](){const _0x5d074=_0x4aaaf0;var _0x3b637e;(_0x3b637e=this[_0x5d074(0x5c7)])==null||_0x3b637e[_0x5d074(0x4ed)](),this[_0x5d074(0x596)]=0x0;}};F=Z([g(0x6,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x7,a['Inject'](_[_0x4aaaf0(0x509)])),g(0x8,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0x9,a[_0x4aaaf0(0x5df)]),g(0xa,a[_0x4aaaf0(0x1d1)]),g(0xb,_[_0x4aaaf0(0x41f)]),g(0xc,a[_0x4aaaf0(0x490)])],F);let K=class extends Q{constructor(_0x334c95,_0x15bac7,_0x1bb4c5,_0x905ff6,_0x3db291,_0x3197f6=!0x1,_0xcae88,_0x4e746f,_0xa904a0,_0x516880,_0x4403ed,_0x12793a,_0x112603){const _0x1d1a0a=_0x4aaaf0;super(_0x334c95,_0x15bac7,_0x1bb4c5,_0x905ff6,_0x3db291,_0x4e746f,_0xa904a0,_0x4403ed,_0x516880),u(this,_0x1d1a0a(0x425),_0x1d1a0a(0x587)),(this[_0x1d1a0a(0x3c7)]=_0x3197f6,this['_permissionService']=_0xcae88,this[_0x1d1a0a(0x2af)]=_0x12793a,this[_0x1d1a0a(0x4c3)]=_0x112603,this[_0x1d1a0a(0x1bb)](),this[_0x1d1a0a(0x4fa)](),this[_0x1d1a0a(0x341)]());}[_0x4aaaf0(0x38e)](){return this;}[_0x4aaaf0(0x3c2)](){return this;}[_0x4aaaf0(0x1f9)](){return this;}['onRemoteRej'](){return this;}[_0x4aaaf0(0x488)](){return this;}[_0x4aaaf0(0x56a)](){return this;}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x399)](){const _0x449d75=_0x4aaaf0;throw new Error(_0x449d75(0x29d));}[_0x4aaaf0(0x4fa)](){const _0x13ce51=_0x4aaaf0;this['_localCacheService']['updateOfflineData'](this[_0x13ce51(0x41c)],this['type'],null,[]);}[_0x4aaaf0(0x1bb)](){const _0x27bd49=_0x4aaaf0;this[_0x27bd49(0x3c7)]?this['_notificationService'][_0x27bd49(0x4c5)]({'title':this[_0x27bd49(0x2af)]['t'](_0x27bd49(0x2ba)),'content':this[_0x27bd49(0x2af)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x27bd49(0x4c3)][_0x27bd49(0x4c5)]({'title':this[_0x27bd49(0x2af)]['t'](_0x27bd49(0x230)),'content':this[_0x27bd49(0x2af)]['t']('conflict.content'),'type':_0x27bd49(0x574),'duration':0x0});}['_disableEditing'](){const _0x48a607=_0x4aaaf0;this['_permissionService'][_0x48a607(0x585)](new C[(_0x48a607(0x1e9))](this['unitID'])['id'],!0x1);}};K=Z([g(0x6,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x26c)])),g(0x7,a[_0x4aaaf0(0x5df)]),g(0x8,a[_0x4aaaf0(0x490)]),g(0x9,a['Inject'](exports[_0x4aaaf0(0x49c)])),g(0xa,a[_0x4aaaf0(0x1b2)](_['RevisionService'])),g(0xb,a['Inject'](a['LocaleService'])),g(0xc,A['INotificationService'])],K);let X=class extends Q{constructor(_0x29416f,_0x4fa66a,_0x3ed536,_0x4918f9,_0xec43d2,_0x466fb8,_0x3a30ba,_0x5e4409,_0x1d80a6,_0x38438d){const _0x3a3dd6=_0x4aaaf0;super(_0x29416f,_0x4fa66a,_0x3ed536,_0x4918f9,_0xec43d2,_0x1d80a6,_0x38438d,_0x3a30ba,_0x5e4409),u(this,_0x3a3dd6(0x425),_0x3a3dd6(0x45a)),this[_0x3a3dd6(0x5aa)]=_0x466fb8;}[_0x4aaaf0(0x38e)](_0x4fabf7){const _0x1f9f56=_0x4aaaf0;return this[_0x1f9f56(0x4be)]['push'](_0x4fabf7),this[_0x1f9f56(0x2b5)](),this;}[_0x4aaaf0(0x3c2)](_0x4407eb){const _0x5a676f=_0x4aaaf0;throw new Error(_0x5a676f(0x2ed));}[_0x4aaaf0(0x1f9)](){const _0x355695=_0x4aaaf0;throw new Error(_0x355695(0x2eb));}[_0x4aaaf0(0x2cb)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x4aaaf0(0x488)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x16ccd7=_0x4aaaf0,{_injector:_0x3f9438,_pendingMutations:_0x341a37,_awaitingChangeset:_0x503c7c,unitID:_0xd37e5a,_handler:_0x3b0630,type:_0x437884}=this,_0x82ce7f=Pt(_0x3f9438,_0xd37e5a,_0x437884,_0x503c7c,_0x341a37,_0x3b0630);return _0x82ce7f instanceof W?_0x82ce7f[_0x16ccd7(0x416)]():(_0x82ce7f instanceof F||_0x82ce7f instanceof Y)&&_0x82ce7f[_0x16ccd7(0x399)](),_0x82ce7f;}['resend'](){const _0x4681dc=_0x4aaaf0;throw new Error(_0x4681dc(0x456));}};X=Z([g(0x5,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x6,a['Inject'](_[_0x4aaaf0(0x509)])),g(0x7,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0x8,a[_0x4aaaf0(0x5df)]),g(0x9,a[_0x4aaaf0(0x490)])],X);let k=class extends Q{constructor(_0x3d0ffb,_0x1d4d75,_0x458503,_0x5a1239,_0x5bb8a3,_0x59a75e,_0x40ad64,_0x25a614,_0x347bae,_0x1ec464,_0x48236f,_0x5036ea,_0x541193,_0x3e93d3){const _0x2edaa7=_0x4aaaf0;super(_0x3d0ffb,_0x1d4d75,_0x458503,_0x5a1239,_0x40ad64,_0x5036ea,_0x541193,_0x347bae,_0x1ec464),u(this,_0x2edaa7(0x425),_0x2edaa7(0x285)),(this['_acknowledgedAwaitingChangeset']=_0x5bb8a3,this[_0x2edaa7(0x452)]=_0x59a75e,this[_0x2edaa7(0x5aa)]=_0x25a614,this[_0x2edaa7(0x360)]=_0x48236f,this[_0x2edaa7(0x37f)]=_0x3e93d3);}['onMissedChangesetFetched'](_0x1096a0){const _0x5c5bf9=_0x4aaaf0;try{const _0x4a12df=[..._0x1096a0,...this['_queuedRemoteChangesets']],_0x4ade08=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']]['filter'](_0x351f49=>!!_0x351f49);let _0x3672a0,_0x352bcb;if(_0x4ade08[_0x5c5bf9(0x31a)]){const _0x2e6c67=this[_0x5c5bf9(0x37f)][_0x5c5bf9(0x33a)](_0x4a12df,_0x4ade08,!0x1);if(!_['isTransformChangesetsSuccess'](_0x2e6c67))throw _0x2e6c67['error'];_0x3672a0=_0x2e6c67[_0x5c5bf9(0x3f1)],_0x352bcb=_0x2e6c67[_0x5c5bf9(0x2a9)];}else _0x3672a0=_0x4a12df,_0x352bcb=[];let _0x47f002=this[_0x5c5bf9(0x4be)];_0x3672a0[_0x5c5bf9(0x1d6)](_0x1d3a87=>{const _0x56405e=_0x5c5bf9;let _0x142871;if(_0x47f002[_0x56405e(0x31a)]){const _0x179801=this[_0x56405e(0x37f)][_0x56405e(0x34d)](_0x1d3a87,_0x47f002);if(!_[_0x56405e(0x5b7)](_0x179801))throw _0x179801[_0x56405e(0x574)];_0x142871=_0x179801[_0x56405e(0x3f1)],_0x47f002=_0x179801[_0x56405e(0x3a9)];}else _0x142871=_0x1d3a87;this[_0x56405e(0x36e)](_0x142871);}),this['_acknowledgedAwaitingChangeset']&&this[_0x5c5bf9(0x43d)](),this['_awaitingChangeset']&&_0x352bcb[_0x5c5bf9(0x31a)]&&(_0x352bcb[0x0]['baseRev']=this[_0x5c5bf9(0x24e)]());let _0x5d2aa1;if(this[_0x5c5bf9(0x4f5)]&&_0x47f002['length']!==0x0)_0x5d2aa1=this[_0x5c5bf9(0x5aa)][_0x5c5bf9(0x1da)](F,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],_0x352bcb[0x0],_0x47f002,this[_0x5c5bf9(0x5c4)],void 0x0);else{if(this[_0x5c5bf9(0x4f5)]&&_0x47f002[_0x5c5bf9(0x31a)]===0x0)_0x352bcb[0x0][_0x5c5bf9(0x224)]=this[_0x5c5bf9(0x24e)](),_0x5d2aa1=this['_injector'][_0x5c5bf9(0x1da)](Y,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],_0x352bcb[0x0],this[_0x5c5bf9(0x5c4)]);else{if(_0x47f002[_0x5c5bf9(0x31a)]!==0x0){const _0x34f22d=this[_0x5c5bf9(0x5aa)][_0x5c5bf9(0x1da)](W,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],_0x47f002,this[_0x5c5bf9(0x5c4)]);_0x34f22d['_schedule'](),_0x5d2aa1=_0x34f22d;}else _0x5d2aa1=this[_0x5c5bf9(0x5aa)][_0x5c5bf9(0x1da)](re,this[_0x5c5bf9(0x41c)],this[_0x5c5bf9(0x4aa)],this[_0x5c5bf9(0x5c4)]);}}return _0x5d2aa1[_0x5c5bf9(0x2b5)](),_0x5d2aa1;}catch(_0x476764){return this[_0x5c5bf9(0x360)][_0x5c5bf9(0x574)](_0x5c5bf9(0x4b7),'failed\x20to\x20apply\x20missed\x20changesets!',_0x476764),this[_0x5c5bf9(0x5aa)]['createInstance'](K,this[_0x5c5bf9(0x41c)],this['type'],this['_awaitingChangeset'],this[_0x5c5bf9(0x4be)],this['_handler'],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4aaaf0(0x38e)](_0x2426b0){const _0x279f17=_0x4aaaf0;return this[_0x279f17(0x4be)]['push'](_0x2426b0),this;}[_0x4aaaf0(0x3c2)](_0x42bf41){const _0x471e50=_0x4aaaf0;return this[_0x471e50(0x452)]['push'](_0x42bf41),this;}[_0x4aaaf0(0x1f9)](_0xd4adbd){const _0x1ae1fc=_0x4aaaf0;if(this[_0x1ae1fc(0x4f5)])return this[_0x1ae1fc(0x387)]=this['_awaitingChangeset'],this[_0x1ae1fc(0x4f5)]=null,this;throw new Error(_0x1ae1fc(0x311));}[_0x4aaaf0(0x2cb)](_0x563943){const _0xd284b6=_0x4aaaf0;return this['_onConflict'](!!(_0x563943!=null&&_0x563943[_0xd284b6(0x267)]));}[_0x4aaaf0(0x488)](){return this;}[_0x4aaaf0(0x56a)](){const _0x4461ee=_0x4aaaf0;return this[_0x4461ee(0x5aa)][_0x4461ee(0x1da)](X,this['unitID'],this[_0x4461ee(0x4aa)],this['_awaitingChangeset'],this[_0x4461ee(0x4be)],this[_0x4461ee(0x5c4)]);}[_0x4aaaf0(0x3b7)](){return this;}[_0x4aaaf0(0x58b)](_0x239112){const _0x19d530=_0x4aaaf0;return this['_injector']['createInstance'](K,this[_0x19d530(0x41c)],this['type'],this[_0x19d530(0x4f5)],this['_pendingMutations'],this[_0x19d530(0x5c4)],_0x239112);}};k=Z([g(0x7,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),g(0x8,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),g(0x9,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),g(0xa,a[_0x4aaaf0(0x1d1)]),g(0xb,a[_0x4aaaf0(0x5df)]),g(0xc,a[_0x4aaaf0(0x490)]),g(0xd,_[_0x4aaaf0(0x41f)])],k);function Pt(_0x2f0e91,_0x1af7fa,_0x1443e7,_0x2d8f98,_0x45a6b0,_0x408c66){const _0x3cae69=_0x4aaaf0;return _0x2d8f98&&_0x45a6b0['length']?_0x2f0e91['createInstance'](F,_0x1af7fa,_0x1443e7,_0x2d8f98,_0x45a6b0,_0x408c66,void 0x0):_0x2d8f98?_0x2f0e91[_0x3cae69(0x1da)](Y,_0x1af7fa,_0x1443e7,_0x2d8f98,_0x408c66):_0x45a6b0[_0x3cae69(0x31a)]?_0x2f0e91[_0x3cae69(0x1da)](W,_0x1af7fa,_0x1443e7,_0x45a6b0,_0x408c66):_0x2f0e91['createInstance'](re,_0x1af7fa,_0x1443e7,_0x408c66);}var Xs=Object['defineProperty'],qs=Object[_0x4aaaf0(0x28b)],qe=(_0x56eae6,_0x5e49c0,_0x1429e6,_0x465550)=>{const _0x16614b=_0x4aaaf0;for(var _0x5e5151=_0x465550>0x1?void 0x0:_0x465550?qs(_0x5e49c0,_0x1429e6):_0x5e49c0,_0x236ca3=_0x56eae6[_0x16614b(0x31a)]-0x1,_0x11ec56;_0x236ca3>=0x0;_0x236ca3--)(_0x11ec56=_0x56eae6[_0x236ca3])&&(_0x5e5151=(_0x465550?_0x11ec56(_0x5e49c0,_0x1429e6,_0x5e5151):_0x11ec56(_0x5e5151))||_0x5e5151);return _0x465550&&_0x5e5151&&Xs(_0x5e49c0,_0x1429e6,_0x5e5151),_0x5e5151;},p=(_0x44727a,_0x1a2638)=>(_0x193615,_0x1fb18a)=>_0x1a2638(_0x193615,_0x1fb18a,_0x44727a);exports[_0x4aaaf0(0x535)]=class extends a[_0x4aaaf0(0x275)]{constructor(_0x2619be,_0x55a433,_0x31a01b,_0x55b067,_0x4bc337,_0x33cf5a,_0x48d711,_0x70542c,_0x5a6f1f,_0x58d863,_0x2b738a,_0x3a51ba,_0x2adac2){const _0x2b8a4e=_0x4aaaf0;super(),u(this,_0x2b8a4e(0x38b),new v[(_0x2b8a4e(0x442))](null)),u(this,_0x2b8a4e(0x25f),this['_state$'][_0x2b8a4e(0x2a7)]()),u(this,_0x2b8a4e(0x5b9)),u(this,_0x2b8a4e(0x2e1),!0x1),u(this,'_changesetSessionId',''),u(this,_0x2b8a4e(0x3d7),0x0),u(this,_0x2b8a4e(0x3bc),this['state$'][_0x2b8a4e(0x2b0)](v[_0x2b8a4e(0x263)](_0x129b23=>_0x129b23?_0x129b23[_0x2b8a4e(0x425)]:D['OFFLINE']),v[_0x2b8a4e(0x566)](0x1))),u(this,_0x2b8a4e(0x4b8),!0x1),u(this,_0x2b8a4e(0x21a),[]),(this[_0x2b8a4e(0x41c)]=_0x2619be,this[_0x2b8a4e(0x386)]=_0x55a433,this[_0x2b8a4e(0x356)]=_0x31a01b,this['_injector']=_0x55b067,this[_0x2b8a4e(0x4e9)]=_0x4bc337,this['_compressMutationService']=_0x33cf5a,this[_0x2b8a4e(0x2af)]=_0x48d711,this['_revisionService']=_0x70542c,this[_0x2b8a4e(0x360)]=_0x5a6f1f,this[_0x2b8a4e(0x310)]=_0x58d863,this[_0x2b8a4e(0x206)]=_0x2b738a,this[_0x2b8a4e(0x290)]=_0x3a51ba,this[_0x2b8a4e(0x1f2)]=_0x2adac2);}get[_0x4aaaf0(0x2f9)](){return this['_state'];}async[_0x4aaaf0(0x1d7)](){const _0x3940a1=_0x4aaaf0;if(this[_0x3940a1(0x2f9)])throw new Error(_0x3940a1(0x481));await this['_init']();}[_0x4aaaf0(0x221)](){const _0x5292fa=_0x4aaaf0;return this[_0x5292fa(0x2e1)]=!0x0,a[_0x5292fa(0x2c6)](()=>{const _0x45836a=_0x5292fa;this[_0x45836a(0x2e1)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x468f61){const _0x4f22e2=_0x4aaaf0;this[_0x4f22e2(0x5b9)]=_0x468f61,this[_0x4f22e2(0x38b)][_0x4f22e2(0x3b3)](_0x468f61);}async[_0x4aaaf0(0x33d)](){const _0x1accde=_0x4aaaf0;var _0x11ee79;this[_0x1accde(0x57f)](await this[_0x1accde(0x4ba)]()),this[_0x1accde(0x1f2)]&&((_0x11ee79=this[_0x1accde(0x1f2)])==null||_0x11ee79[_0x1accde(0x45f)](this[_0x1accde(0x41c)]),this['disposeWithMe'](this[_0x1accde(0x1f2)][_0x1accde(0x434)](this['unitID'])['subscribe'](_0x358712=>{const _0x241577=_0x1accde;this[_0x241577(0x360)][_0x241577(0x43f)]('[CollaborationEntity]',_0x241577(0x1b1),_0x358712),_0x358712===Ot[_0x241577(0x487)]?(this['_messageService'][_0x241577(0x4c5)]({'content':this[_0x241577(0x2af)]['t'](_0x241577(0x4f4)),'type':J[_0x241577(0x497)][_0x241577(0x34b)]}),this[_0x241577(0x290)][_0x241577(0x585)](new C[(_0x241577(0x1e9))](this[_0x241577(0x41c)])['id'],!0x1),this['_permissionService'][_0x241577(0x3bf)](!0x1)):(this[_0x241577(0x290)][_0x241577(0x585)](new C[(_0x241577(0x1e9))](this[_0x241577(0x41c)])['id'],!0x0),this[_0x241577(0x290)][_0x241577(0x3bf)](!0x0));})));let _0x42eaeb=!0x1;return this[_0x1accde(0x367)](this['session']['sessionStatus$'][_0x1accde(0x236)](_0x20c8dd=>{const _0x46f5ac=_0x1accde;_0x20c8dd===x[_0x46f5ac(0x322)]?this['_toggleOnline'](_0x42eaeb):_0x20c8dd===x[_0x46f5ac(0x270)]&&(_0x42eaeb=!0x0,this[_0x46f5ac(0x3a8)]());})),this[_0x1accde(0x367)](this[_0x1accde(0x386)]['event$'][_0x1accde(0x236)](_0x283be0=>{const _0x5dff72=_0x1accde;try{switch(_0x283be0[_0x5dff72(0x405)]){case _[_0x5dff72(0x2bb)][_0x5dff72(0x258)]:{this[_0x5dff72(0x21e)](_['parseProtocolChangeset'](_0x283be0[_0x5dff72(0x2cf)]));break;}case _[_0x5dff72(0x2bb)][_0x5dff72(0x540)]:{this['_onRemoteACK'](_0x283be0[_0x5dff72(0x2cf)]);break;}case _[_0x5dff72(0x2bb)]['CHANGESET_REJ']:{this[_0x5dff72(0x37c)]();break;}case _[_0x5dff72(0x2bb)][_0x5dff72(0x5d7)]:{this[_0x5dff72(0x559)](_0x283be0['data']);break;}case _['CollaborationEvent'][_0x5dff72(0x44e)]:{this[_0x5dff72(0x2ec)](_0x283be0[_0x5dff72(0x2cf)][_0x5dff72(0x2b3)][_0x5dff72(0x263)](_0x4e0dd4=>_['parseProtocolChangeset'](_0x4e0dd4)));break;}case _[_0x5dff72(0x2bb)]['PERMISSION_REJ']:this[_0x5dff72(0x37c)]({'isPermissionRej':!0x0});}}catch(_0x41d10c){throw console[_0x5dff72(0x574)](_0x5dff72(0x2fd),_0x41d10c),_0x41d10c;}})),this['_state'];}[_0x4aaaf0(0x20f)](){this['_transitionLocked']=!0x1;}[_0x4aaaf0(0x3f9)](){const _0x4b5f5e=_0x4aaaf0;if(this[_0x4b5f5e(0x4b8)])throw new Error(_0x4b5f5e(0x5d9));this[_0x4b5f5e(0x4b8)]=!0x0;}[_0x4aaaf0(0x351)](_0x157721){const _0x4ccea6=_0x4aaaf0;this[_0x4ccea6(0x3f9)](),this[_0x4ccea6(0x57f)](this[_0x4ccea6(0x5b9)][_0x4ccea6(0x38e)](_0x157721)),this[_0x4ccea6(0x20f)]();}['_onRemoteChangeset'](_0x1cff23){const _0x3ed36e=_0x4aaaf0;if(!(_0x1cff23[_0x3ed36e(0x4bb)]<=this[_0x3ed36e(0x57d)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0x3ed36e(0x2e1)]){this[_0x3ed36e(0x21a)][_0x3ed36e(0x4ce)](_0x1cff23);return;}this[_0x3ed36e(0x3cf)](_0x1cff23);}}[_0x4aaaf0(0x3bb)](){const _0x3c8006=_0x4aaaf0;this['_remoteChangesetQueue'][_0x3c8006(0x1d6)](_0x3bd503=>this[_0x3c8006(0x3cf)](_0x3bd503)),this[_0x3c8006(0x21a)]=[];}[_0x4aaaf0(0x3cf)](_0x1a715f){const _0x2cc8ba=_0x4aaaf0,_0x728994=this['_compressMutationService'][_0x2cc8ba(0x5c5)][_0x2cc8ba(0x3cb)](this['_compressMutationService']['interceptor'][_0x2cc8ba(0x492)]()['COMPRESS_MUTATION_APPLY'])(_0x1a715f[_0x2cc8ba(0x2b7)],null)||_0x1a715f[_0x2cc8ba(0x2b7)],_0x1e9620={..._0x1a715f,'mutations':_0x728994};this[_0x2cc8ba(0x3f9)](),this[_0x2cc8ba(0x57f)](this['_state'][_0x2cc8ba(0x3c2)](_0x1e9620)),this[_0x2cc8ba(0x20f)]();}['_onRemoteACK'](_0x3c7b53){const _0x4ea5ee=_0x4aaaf0;this['_lockTransition'](),this[_0x4ea5ee(0x57f)](this[_0x4ea5ee(0x5b9)][_0x4ea5ee(0x1f9)](_0x3c7b53)),this['_unlockTransition']();}[_0x4aaaf0(0x37c)](_0x43458e){const _0x165fc7=_0x4aaaf0;this[_0x165fc7(0x3f9)](),this[_0x165fc7(0x57f)](this[_0x165fc7(0x5b9)]['onRemoteRej'](_0x43458e)),this['_unlockTransition']();}[_0x4aaaf0(0x559)](_0x3b92c3){const _0x1e4f1f=_0x4aaaf0;this[_0x1e4f1f(0x3f9)](),this['_updateState'](this['_state']['onRemoteRetry'](_0x3b92c3)),this[_0x1e4f1f(0x20f)]();}[_0x4aaaf0(0x2ec)](_0x26bf80){const _0x30a952=_0x4aaaf0;if(!(this['_state']instanceof k))throw new TypeError(_0x30a952(0x4c4));const _0x53a5f3=_0x26bf80['map'](_0x2805de=>{const _0x525bb2=_0x30a952,_0x3c59ee=this[_0x525bb2(0x528)][_0x525bb2(0x5c5)]['fetchThroughInterceptors'](this[_0x525bb2(0x528)][_0x525bb2(0x5c5)][_0x525bb2(0x492)]()[_0x525bb2(0x296)])(_0x2805de['mutations'],null)||_0x2805de['mutations'];return{..._0x2805de,'mutations':_0x3c59ee};});this[_0x30a952(0x3f9)](),this[_0x30a952(0x57f)](this[_0x30a952(0x5b9)][_0x30a952(0x3f5)](_0x53a5f3)),this[_0x30a952(0x20f)]();}['_toggleOffline'](){const _0x49037b=_0x4aaaf0;this[_0x49037b(0x3f9)](),this[_0x49037b(0x57f)](this['_state'][_0x49037b(0x56a)]()),this[_0x49037b(0x20f)]();}[_0x4aaaf0(0x454)](_0x4357af=!0x1){const _0x1fbe2b=_0x4aaaf0;this[_0x1fbe2b(0x3f9)](),this['_updateState'](this[_0x1fbe2b(0x5b9)][_0x1fbe2b(0x3b7)]()),this['_unlockTransition']();const _0x414f75=this[_0x1fbe2b(0x5b9)];_0x4357af&&_0x414f75 instanceof re&&(this[_0x1fbe2b(0x3f9)](),this[_0x1fbe2b(0x57f)](_0x414f75[_0x1fbe2b(0x5e0)]()),this[_0x1fbe2b(0x20f)]());}async[_0x4aaaf0(0x4ba)](){return new Promise(_0x57a361=>{const _0x28ad5e=_0x47ba;this[_0x28ad5e(0x386)][_0x28ad5e(0x4da)][_0x28ad5e(0x2b0)](v[_0x28ad5e(0x53f)](0x1))[_0x28ad5e(0x236)](async _0x45518a=>{const _0x5847ef=_0x28ad5e;_0x57a361(await this[_0x5847ef(0x2e4)](_0x45518a===x[_0x5847ef(0x322)]));});});}[_0x4aaaf0(0x32a)](){const _0x16a727=_0x4aaaf0,_0x13e574=this[_0x16a727(0x41c)];return{'onStateChange':(_0x5a02be,_0xdb55f8)=>{const _0x100bd4=_0x16a727;if(_0x5a02be!==this[_0x100bd4(0x5b9)])throw new Error(_0x100bd4(0x219)+_0x5a02be[_0x100bd4(0x425)]+_0x100bd4(0x408)+_0xdb55f8[_0x100bd4(0x425)]+'\x0aCurrent:\x20'+this[_0x100bd4(0x5b9)][_0x100bd4(0x425)]);this[_0x100bd4(0x57f)](_0xdb55f8);},'onSendChangeset':_0x3c3426=>{const _0x58ff92=_0x16a727;_0x3c3426[_0x58ff92(0x504)]||(_0x3c3426['sid']=this[_0x58ff92(0x3e9)],_0x3c3426[_0x58ff92(0x2d2)]=++this[_0x58ff92(0x3d7)]);const _0x2edc15={'eventID':_[_0x58ff92(0x2bb)][_0x58ff92(0x47c)],'data':{'unitID':_0x3c3426[_0x58ff92(0x41c)],'unitType':this[_0x58ff92(0x356)],'changeset':_0x3c3426,'memberID':this[_0x58ff92(0x386)][_0x58ff92(0x573)]()}};this[_0x58ff92(0x386)][_0x58ff92(0x306)](_0x2edc15,this[_0x58ff92(0x41c)]);},'onMissingChangesets':({from:_0x5ec168,to:_0x209247})=>{const _0x121250=_0x16a727;this[_0x121250(0x360)][_0x121250(0x43f)](_0x121250(0x229),_0x121250(0x5c2)+_0x5ec168+_0x121250(0x207)+_0x209247);const _0x45d2ff={'eventID':_[_0x121250(0x2bb)][_0x121250(0x3c6)],'data':{'unitID':_0x13e574,'unitType':this[_0x121250(0x356)],'from':_0x5ec168,'to':_0x209247}};this['session'][_0x121250(0x306)](_0x45d2ff,this[_0x121250(0x41c)]);}};}async['_createInitialStateImpl'](_0x4e9b7b){const _0x434bd3=_0x4aaaf0;var _0x53a2ed,_0x3cd9a8;const _0x44a201=await this[_0x434bd3(0x4e9)][_0x434bd3(0x436)](this['unitID']),_0x4877dd=(_0x53a2ed=_0x44a201==null?void 0x0:_0x44a201['mutations'])!=null?_0x53a2ed:[],_0x4f2af8=(_0x3cd9a8=_0x44a201==null?void 0x0:_0x44a201[_0x434bd3(0x1cd)])!=null?_0x3cd9a8:null,_0x50118d=!!(_0x4f2af8!=null&&_0x4f2af8[_0x434bd3(0x504)])&&!!(_0x4f2af8!=null&&_0x4f2af8[_0x434bd3(0x2d2)]);this['_changesetSessionId']=_0x50118d?_0x4f2af8[_0x434bd3(0x504)]:Ds(),this[_0x434bd3(0x3d7)]=_0x50118d?_0x4f2af8[_0x434bd3(0x2d2)]:0x0;const _0x9fa85f=this[_0x434bd3(0x41c)];try{this[_0x434bd3(0x2a8)](_0x4f2af8,_0x4877dd);}catch(_0x1c8582){this[_0x434bd3(0x360)][_0x434bd3(0x574)](_0x1c8582);}const _0x41dbf0=this[_0x434bd3(0x32a)]();if(_0x4e9b7b){const _0x39287b=Pt(this[_0x434bd3(0x5aa)],_0x9fa85f,this[_0x434bd3(0x356)],_0x4f2af8,_0x4877dd,_0x41dbf0);return _0x39287b instanceof W?_0x39287b[_0x434bd3(0x416)]():(_0x39287b instanceof F||_0x39287b instanceof Y)&&_0x39287b[_0x434bd3(0x399)](),_0x39287b;}return this[_0x434bd3(0x5aa)][_0x434bd3(0x1da)](X,_0x9fa85f,this['_type'],_0x4f2af8,_0x4877dd,_0x41dbf0);}[_0x4aaaf0(0x2a8)](_0x7ed284,_0x48ba84){const _0x304c7f=_0x4aaaf0;var _0x126ad6,_0x28234d;const _0x554a9c=this[_0x304c7f(0x528)]['interceptor'][_0x304c7f(0x3cb)](this[_0x304c7f(0x528)]['interceptor'][_0x304c7f(0x492)]()[_0x304c7f(0x296)]);(_0x126ad6=_0x554a9c((_0x7ed284==null?void 0x0:_0x7ed284[_0x304c7f(0x2b7)])||[],null))==null||_0x126ad6['forEach'](_0x7d3e73=>this[_0x304c7f(0x310)][_0x304c7f(0x593)](_0x7d3e73['id'],_0x7d3e73[_0x304c7f(0x348)])),(_0x28234d=_0x554a9c(_0x48ba84||[],null))==null||_0x28234d['forEach'](_0x178492=>this['_commandService'][_0x304c7f(0x593)](_0x178492['id'],_0x178492[_0x304c7f(0x348)]));}},exports['CollaborationEntity']=qe([p(0x3,a[_0x4aaaf0(0x1b2)](a['Injector'])),p(0x4,a['Inject'](exports[_0x4aaaf0(0x49c)])),p(0x5,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x2f4)])),p(0x6,a[_0x4aaaf0(0x1b2)](a['LocaleService'])),p(0x7,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),p(0x8,a['ILogService']),p(0x9,a['ICommandService']),p(0xa,A[_0x4aaaf0(0x31b)]),p(0xb,a['IPermissionService']),p(0xc,a[_0x4aaaf0(0x4cd)](Re))],exports[_0x4aaaf0(0x535)]),exports[_0x4aaaf0(0x21f)]=class extends exports['CollaborationEntity']{constructor(_0x1b0d2a,_0x91177,_0x5007d2,_0x351e21,_0x86b7ea,_0x1e8038,_0x201500,_0x4ab2b5,_0x1f898e,_0x5d932d,_0x5c9cfd,_0xbd720f,_0x50a064,_0x2567bb,_0x474483,_0x3f2e19,_0x3d49bd){const _0x5f2b0b=_0x4aaaf0;super(_0x1b0d2a,_0x5007d2,_0x91177,_0x351e21,_0x86b7ea,_0x1e8038,_0x201500,_0x4ab2b5,_0x50a064,_0x2567bb,_0x474483,_0x3f2e19,_0x3d49bd),this['unitID']=_0x1b0d2a,this['type']=_0x91177,this[_0x5f2b0b(0x3eb)]=_0x1f898e,this[_0x5f2b0b(0x3ca)]=_0x5d932d,this[_0x5f2b0b(0x235)]=_0x5c9cfd,this[_0x5f2b0b(0x389)]=_0xbd720f;}['_createHandler'](){const _0x32b438=_0x4aaaf0,_0x5c18d9=super[_0x32b438(0x32a)]();return _0x5c18d9[_0x32b438(0x1ef)]=_0x3b0c85=>this[_0x32b438(0x3ca)][_0x32b438(0x358)](_0x3b0c85),_0x5c18d9[_0x32b438(0x4d3)]=_0x39ca6a=>this[_0x32b438(0x235)]['transformSelections'](_0x39ca6a),_0x5c18d9[_0x32b438(0x216)]=_0x4ffab9=>this[_0x32b438(0x389)][_0x32b438(0x4d9)](_0x4ffab9),_0x5c18d9[_0x32b438(0x447)]=_0x5f0827=>this[_0x32b438(0x3ca)][_0x32b438(0x438)](_0x5f0827),_0x5c18d9;}async[_0x4aaaf0(0x33d)](){const _0x2a1344=_0x4aaaf0,_0x2b2f05=await super[_0x2a1344(0x33d)]();return this['_docStateChangeManagerService'][_0x2a1344(0x368)][_0x2a1344(0x2b0)](v[_0x2a1344(0x4b2)](this[_0x2a1344(0x35d)]))[_0x2a1344(0x236)](_0x40f0e8=>{const _0x11b617=_0x2a1344;if(_0x40f0e8==null)return;const {unitId:_0x4aec9e,redoState:_0x49ce74,commandId:_0x7fd12d}=_0x40f0e8;if(_0x4aec9e!==this[_0x11b617(0x41c)])return;const _0x2784c2={'id':_0x7fd12d,'type':a['CommandType'][_0x11b617(0x1ad)],'params':{'unitId':_0x4aec9e,'actions':_0x49ce74[_0x11b617(0x45c)],'textRanges':null}};this[_0x11b617(0x351)](_0x2784c2);}),_0x2b2f05;}},exports[_0x4aaaf0(0x21f)]=qe([p(0x3,a[_0x4aaaf0(0x1b2)](a['Injector'])),p(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),p(0x5,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x2f4)])),p(0x6,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1f6)])),p(0x7,a[_0x4aaaf0(0x1b2)](_['RevisionService'])),p(0x8,a[_0x4aaaf0(0x1b2)](N[_0x4aaaf0(0x486)])),p(0x9,a['Inject'](fe)),p(0xa,a['Inject'](pe)),p(0xb,a[_0x4aaaf0(0x1b2)](Xe)),p(0xc,a[_0x4aaaf0(0x1d1)]),p(0xd,a[_0x4aaaf0(0x5df)]),p(0xe,A[_0x4aaaf0(0x31b)]),p(0xf,a[_0x4aaaf0(0x26c)]),p(0x10,a['Optional'](Re))],exports['DocCollaborationEntity']),exports['SheetCollaborationEntity']=class extends exports[_0x4aaaf0(0x535)]{constructor(_0xc876a0,_0x3189f0,_0x5802bb,_0x23a5a0,_0x311b89,_0x19e8a5,_0x5bbd0b,_0x3f8cb3,_0x5a6b49,_0x26e1f8,_0x1c1b0e,_0x4dc1cc,_0x3bed60,_0x2ce1bf){const _0x390dc=_0x4aaaf0;super(_0xc876a0,_0x5802bb,_0x3189f0,_0x23a5a0,_0x311b89,_0x19e8a5,_0x5bbd0b,_0x3f8cb3,_0x26e1f8,_0x1c1b0e,_0x4dc1cc,_0x3bed60,_0x2ce1bf),this[_0x390dc(0x41c)]=_0xc876a0,this['type']=_0x3189f0,this['_sheetTransformSelectionsService']=_0x5a6b49;}[_0x4aaaf0(0x32a)](){const _0x555a7d=_0x4aaaf0,_0x1ad21c=super[_0x555a7d(0x32a)]();return _0x1ad21c[_0x555a7d(0x4d3)]=_0x13e150=>this[_0x555a7d(0x277)][_0x555a7d(0x5bf)](_0x13e150),_0x1ad21c;}async[_0x4aaaf0(0x33d)](){const _0x5780a0=_0x4aaaf0,_0x24dc70=await super['_init']();return this['disposeWithMe'](this[_0x5780a0(0x310)][_0x5780a0(0x2d9)]((_0x7bd8e2,_0x3a56d7)=>{const _0x1395df=_0x5780a0;if(_0x7bd8e2[_0x1395df(0x4aa)]!==a[_0x1395df(0x49d)][_0x1395df(0x1ad)]||_0x3a56d7!=null&&_0x3a56d7[_0x1395df(0x525)]||_0x3a56d7!=null&&_0x3a56d7['onlyLocal'])return;const _0x5bcf90=_0x7bd8e2[_0x1395df(0x348)];if((_0x5bcf90==null?void 0x0:_0x5bcf90['unitId'])!==this['unitID'])return;const _0x6d018=_0x7bd8e2,_0x3ea411=this[_0x1395df(0x528)][_0x1395df(0x5c5)][_0x1395df(0x3cb)](this[_0x1395df(0x528)]['interceptor'][_0x1395df(0x492)]()[_0x1395df(0x4f8)])([_0x6d018],null)||[_0x6d018];this[_0x1395df(0x351)](_0x3ea411[0x0]);})),_0x24dc70;}},exports['SheetCollaborationEntity']=qe([p(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),p(0x4,a[_0x4aaaf0(0x1b2)](exports['LocalCacheService'])),p(0x5,a[_0x4aaaf0(0x1b2)](_['CompressMutationService'])),p(0x6,a[_0x4aaaf0(0x1b2)](a['LocaleService'])),p(0x7,a[_0x4aaaf0(0x1b2)](_[_0x4aaaf0(0x509)])),p(0x8,a['Inject'](Ie)),p(0x9,a[_0x4aaaf0(0x1d1)]),p(0xa,a['ICommandService']),p(0xb,A['IMessageService']),p(0xc,a[_0x4aaaf0(0x26c)]),p(0xd,a[_0x4aaaf0(0x4cd)](Re))],exports[_0x4aaaf0(0x376)]);var zs=Object['defineProperty'],Js=Object['getOwnPropertyDescriptor'],Zs=(_0x4683d3,_0x527dfb,_0x3203d3,_0x5eaadd)=>{const _0x1b37b0=_0x4aaaf0;for(var _0x18e91a=_0x5eaadd>0x1?void 0x0:_0x5eaadd?Js(_0x527dfb,_0x3203d3):_0x527dfb,_0x5a24ca=_0x4683d3[_0x1b37b0(0x31a)]-0x1,_0x4aa617;_0x5a24ca>=0x0;_0x5a24ca--)(_0x4aa617=_0x4683d3[_0x5a24ca])&&(_0x18e91a=(_0x5eaadd?_0x4aa617(_0x527dfb,_0x3203d3,_0x18e91a):_0x4aa617(_0x18e91a))||_0x18e91a);return _0x5eaadd&&_0x18e91a&&zs(_0x527dfb,_0x3203d3,_0x18e91a),_0x18e91a;},we=(_0x3a6342,_0x29503d)=>(_0x59735e,_0xe08b3d)=>_0x29503d(_0x59735e,_0xe08b3d,_0x3a6342);exports['CollaborationController']=class extends a['RxDisposable']{constructor(_0x2a3ddb,_0x147d04,_0x438e32){const _0x59f7fc=_0x4aaaf0;super(),u(this,_0x59f7fc(0x203),new Map()),u(this,_0x59f7fc(0x1d2),new v['Subject']()),(this['_injector']=_0x2a3ddb,this[_0x59f7fc(0x2d3)]=_0x147d04,this['_univerInstanceService']=_0x438e32,this[_0x59f7fc(0x33d)]());}[_0x4aaaf0(0x342)](){const _0x5bd631=_0x4aaaf0;super[_0x5bd631(0x342)](),this['_entities'][_0x5bd631(0x1d6)](_0x3ae5a4=>_0x3ae5a4[_0x5bd631(0x342)]()),this[_0x5bd631(0x203)][_0x5bd631(0x3e4)]();}[_0x4aaaf0(0x5b4)](_0xc77c99){const _0x900b93=_0x4aaaf0;var _0x474c7a;return(_0x474c7a=this[_0x900b93(0x203)][_0x900b93(0x439)](_0xc77c99))!=null?_0x474c7a:null;}[_0x4aaaf0(0x23f)](_0x447592){const _0x21676e=_0x4aaaf0,_0x2a0be5=this['getCollabEntity'](_0x447592);return _0x2a0be5?v['of'](_0x2a0be5):this[_0x21676e(0x1d2)]['pipe'](E[_0x21676e(0x36d)](_0x54cedb=>_0x54cedb[_0x21676e(0x41c)]===_0x447592));}[_0x4aaaf0(0x33d)](){const _0x1d471d=_0x4aaaf0;this[_0x1d471d(0x46d)]['getTypeOfUnitAdded$'](a[_0x1d471d(0x419)]['UNIVER_SHEET'])[_0x1d471d(0x2b0)](v[_0x1d471d(0x4b2)](this[_0x1d471d(0x35d)]),E[_0x1d471d(0x4ff)](0x10))[_0x1d471d(0x236)](async _0x338d3f=>{const _0x4c1a07=_0x1d471d,_0xe0f820=_0x338d3f[_0x4c1a07(0x3e2)](),_0x250a0b=await this[_0x4c1a07(0x397)](_0xe0f820,H[_0x4c1a07(0x4d0)]);this[_0x4c1a07(0x203)][_0x4c1a07(0x4af)](_0xe0f820,_0x250a0b);}),this[_0x1d471d(0x46d)][_0x1d471d(0x411)](a[_0x1d471d(0x419)][_0x1d471d(0x238)])[_0x1d471d(0x2b0)](v[_0x1d471d(0x4b2)](this[_0x1d471d(0x35d)]),E[_0x1d471d(0x4ff)](0x10))['pipe'](E[_0x1d471d(0x36d)](_0x1c234b=>!_0x1c234b[_0x1d471d(0x3e2)]()[_0x1d471d(0x476)]('__')))['subscribe'](async _0x19dfdb=>{const _0x580407=_0x1d471d,_0x41face=_0x19dfdb[_0x580407(0x3e2)](),_0x5a88a3=await this[_0x580407(0x397)](_0x41face,H[_0x580407(0x238)]);this[_0x580407(0x203)][_0x580407(0x4af)](_0x41face,_0x5a88a3);}),v[_0x1d471d(0x398)](this[_0x1d471d(0x46d)]['getTypeOfUnitDisposed$'](a[_0x1d471d(0x419)][_0x1d471d(0x4d0)]),this['_univerInstanceService'][_0x1d471d(0x2d5)](a[_0x1d471d(0x419)]['UNIVER_DOC']))[_0x1d471d(0x2b0)](v[_0x1d471d(0x4b2)](this['dispose$']))['subscribe'](_0xbc1714=>{const _0x14268f=_0x1d471d,_0x3adae9=_0xbc1714[_0x14268f(0x3e2)](),_0x4375d5=this[_0x14268f(0x203)]['get'](_0x3adae9);_0x4375d5&&(_0x4375d5[_0x14268f(0x342)](),this[_0x14268f(0x203)][_0x14268f(0x276)](_0x3adae9));});}async[_0x4aaaf0(0x397)](_0x33b4a9,_0x24b812){const _0x3313f1=_0x4aaaf0,_0x20ca05=await this[_0x3313f1(0x2d3)][_0x3313f1(0x571)](_0x33b4a9),_0x3e1174=this['_injector'][_0x3313f1(0x1da)](this[_0x3313f1(0x5b8)](_0x24b812),_0x33b4a9,_0x24b812,_0x20ca05);return await _0x3e1174[_0x3313f1(0x1d7)](),this[_0x3313f1(0x1d2)]['next'](_0x3e1174),_0x3e1174;}['_getCtorByUniverType'](_0x549946){const _0x43bf88=_0x4aaaf0;switch(_0x549946){case H[_0x43bf88(0x238)]:return exports[_0x43bf88(0x21f)];case H['UNIVER_SHEET']:return exports[_0x43bf88(0x376)];default:throw new Error(_0x43bf88(0x2fe)+_0x549946);}}},exports[_0x4aaaf0(0x265)]=Zs([we(0x0,a['Inject'](a[_0x4aaaf0(0x2ee)])),we(0x1,a[_0x4aaaf0(0x1b2)](exports['CollaborationSessionService'])),we(0x2,a[_0x4aaaf0(0x33f)])],exports['CollaborationController']);const at=['purple300',_0x4aaaf0(0x38a),_0x4aaaf0(0x543),'red300','blue400','gold400'];class ze extends a[_0x4aaaf0(0x3ef)]{constructor(){const _0x4f1d74=_0x4aaaf0;super(...arguments),u(this,_0x4f1d74(0x52a),new Map()),u(this,_0x4f1d74(0x3a6),0x0);}[_0x4aaaf0(0x1e5)](_0x2d4df8){const _0xdda0ee=_0x4aaaf0;if(this['_assignedColors']['has'](_0x2d4df8))return this[_0xdda0ee(0x52a)][_0xdda0ee(0x439)](_0x2d4df8);const _0x27e060=at[this[_0xdda0ee(0x3a6)]];return this[_0xdda0ee(0x3a6)]=(this[_0xdda0ee(0x3a6)]+0x1)%at[_0xdda0ee(0x31a)],this[_0xdda0ee(0x52a)]['set'](_0x2d4df8,_0x27e060),_0x27e060;}}var Qs=Object[_0x4aaaf0(0x562)],ei=Object[_0x4aaaf0(0x28b)],ti=(_0x4b0ee0,_0x28f3b5,_0x46d3d7,_0x2b28d9)=>{const _0x1e1d0d=_0x4aaaf0;for(var _0x1885f2=_0x2b28d9>0x1?void 0x0:_0x2b28d9?ei(_0x28f3b5,_0x46d3d7):_0x28f3b5,_0x186618=_0x4b0ee0[_0x1e1d0d(0x31a)]-0x1,_0x319f79;_0x186618>=0x0;_0x186618--)(_0x319f79=_0x4b0ee0[_0x186618])&&(_0x1885f2=(_0x2b28d9?_0x319f79(_0x28f3b5,_0x46d3d7,_0x1885f2):_0x319f79(_0x1885f2))||_0x1885f2);return _0x2b28d9&&_0x1885f2&&Qs(_0x28f3b5,_0x46d3d7,_0x1885f2),_0x1885f2;},z=(_0x5b4973,_0x5b7933)=>(_0xfe3330,_0x46dbe8)=>_0x5b7933(_0xfe3330,_0x46dbe8,_0x5b4973);const si=0x12c,ii=0x64;let xe=class extends a[_0x4aaaf0(0x275)]{constructor(_0x446bb1,_0x5ac9ec,_0x4bcab0,_0x1eda92,_0x42358e,_0x43e89e,_0x21fa18,_0x2b8d90,_0x404338){const _0x5a3c85=_0x4aaaf0;super(),u(this,_0x5a3c85(0x23c),!0x1),u(this,_0x5a3c85(0x33d),!0x1),u(this,_0x5a3c85(0x4b1),new v[(_0x5a3c85(0x442))](new Map())),u(this,_0x5a3c85(0x2d7),this['_cursorInfo$'][_0x5a3c85(0x2a7)]()),u(this,_0x5a3c85(0x4b0),new v[(_0x5a3c85(0x442))]([])),u(this,'roomMembers$',this[_0x5a3c85(0x4b0)]['pipe'](v[_0x5a3c85(0x4a4)](si))),u(this,'_updateLocalCursor',a[_0x5a3c85(0x54d)](_0x4a3c2a=>{const _0xfeead8=_0x5a3c85,_0x16ced4={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0xfeead8(0x41c)],'memberID':this[_0xfeead8(0x257)]['getMemberID'](),'selection':Dt(_0x4a3c2a)}};this[_0xfeead8(0x257)][_0xfeead8(0x306)](_0x16ced4,this[_0xfeead8(0x41c)]);},ii)),(this[_0x5a3c85(0x41c)]=_0x446bb1,this[_0x5a3c85(0x257)]=_0x5ac9ec,this[_0x5a3c85(0x5aa)]=_0x4bcab0,this[_0x5a3c85(0x51a)]=_0x1eda92,this[_0x5a3c85(0x529)]=_0x42358e,this[_0x5a3c85(0x40b)]=_0x43e89e,this[_0x5a3c85(0x37f)]=_0x21fa18,this[_0x5a3c85(0x46d)]=_0x2b8d90,this[_0x5a3c85(0x310)]=_0x404338);}get[_0x4aaaf0(0x3c5)](){const _0x4d4f5b=_0x4aaaf0;return this[_0x4d4f5b(0x4b1)][_0x4d4f5b(0x42d)]();}get[_0x4aaaf0(0x3d4)](){const _0x7b91b3=_0x4aaaf0;return this[_0x7b91b3(0x4b0)][_0x7b91b3(0x42d)]();}[_0x4aaaf0(0x342)](){const _0x430b6e=_0x4aaaf0;super['dispose'](),this['_cursorInfo$'][_0x430b6e(0x3b3)](new Map()),this[_0x430b6e(0x4b1)][_0x430b6e(0x489)](),this[_0x430b6e(0x4b0)][_0x430b6e(0x3b3)]([]),this[_0x430b6e(0x4b0)][_0x430b6e(0x489)]();}[_0x4aaaf0(0x1d7)](){const _0x3cb321=_0x4aaaf0;this['_init']||(this[_0x3cb321(0x33d)]=!0x0,this[_0x3cb321(0x257)]['sessionStatus$'][_0x3cb321(0x2b0)](v[_0x3cb321(0x4b2)](this[_0x3cb321(0x35d)]))[_0x3cb321(0x236)](_0x580386=>{const _0x100a94=_0x3cb321;_0x580386===x['ONLINE']?this[_0x100a94(0x454)]():this[_0x100a94(0x3a8)]();}),this['_session']['event$'][_0x3cb321(0x2b0)](v[_0x3cb321(0x4b2)](this[_0x3cb321(0x35d)]))[_0x3cb321(0x236)](_0x278354=>{const _0x1837a2=_0x3cb321,_0x37b56b=_0x278354[_0x1837a2(0x405)];_0x37b56b===_[_0x1837a2(0x2bb)]['UPDATE_CURSOR']&&this[_0x1837a2(0x5c1)](_0x278354),_0x37b56b===_[_0x1837a2(0x2bb)][_0x1837a2(0x3b0)]&&this['_onCursorDelete'](_0x278354);}),this[_0x3cb321(0x367)](this[_0x3cb321(0x310)][_0x3cb321(0x2d9)](_0x413fcc=>{const _0x2855bd=_0x3cb321,_0x47035a=_0x413fcc[_0x2855bd(0x348)];_0x47035a!=null&&this[_0x2855bd(0x23c)]&&_0x413fcc['id']===ne['SetTextSelectionsOperation']['id']&&_0x47035a[_0x2855bd(0x22c)]===this[_0x2855bd(0x41c)]&&_0x47035a[_0x2855bd(0x22e)]===!0x1&&_0x47035a[_0x2855bd(0x2cd)][_0x2855bd(0x31a)]>0x0&&this['_updateLocalCursor'](_0x47035a[_0x2855bd(0x2cd)]);})),this['_syncEditingCollabCursorService'][_0x3cb321(0x54b)][_0x3cb321(0x2b0)](v[_0x3cb321(0x4b2)](this[_0x3cb321(0x35d)]))[_0x3cb321(0x236)](_0x34f2b6=>{const _0x51508a=_0x3cb321;if((_0x34f2b6==null?void 0x0:_0x34f2b6[_0x51508a(0x41c)])!==this[_0x51508a(0x41c)])return;const _0x2f773a={'eventID':_[_0x51508a(0x2bb)][_0x51508a(0x1d5)],'data':_0x34f2b6};this[_0x51508a(0x5c1)](_0x2f773a);}),this[_0x3cb321(0x367)](this[_0x3cb321(0x310)][_0x3cb321(0x2d9)](_0x5e44c0=>{const _0x7dfdee=_0x3cb321;if(_0x5e44c0['params']==null)return;const _0xd9aa04=_0x5e44c0[_0x7dfdee(0x348)];if(_0x5e44c0['id']!==ne[_0x7dfdee(0x1cf)]['id']||_0xd9aa04[_0x7dfdee(0x22c)]!==this[_0x7dfdee(0x41c)])return;const _0x4ac251={'id':'doc.mutation.rich-text-editing','params':_0xd9aa04},_0x379b70=this[_0x7dfdee(0x3c5)];for(const [_0x2bfdbe,_0x2c17b3]of _0x379b70){const _0x13ed71={'id':_0x7dfdee(0x350),'params':{'unitId':this[_0x7dfdee(0x41c)],'actions':null,'textRanges':_0x2c17b3[_0x7dfdee(0x2cd)]}},_0x56e390=this[_0x7dfdee(0x37f)]['transformMutation'](_0x4ac251,_0x13ed71,!0x1);if(_[_0x7dfdee(0x3f6)](_0x56e390))throw _0x56e390[_0x7dfdee(0x574)];_0x379b70[_0x7dfdee(0x4af)](_0x2bfdbe,{..._0x2c17b3,'ranges':_0x56e390[_0x7dfdee(0x3a9)][_0x7dfdee(0x348)]['textRanges']});}queueMicrotask(()=>{const _0x4bc735=_0x7dfdee;this[_0x4bc735(0x4b1)][_0x4bc735(0x3b3)](_0x379b70);});})));}[_0x4aaaf0(0x5c1)](_0x5a924c){const _0x5b3152=_0x4aaaf0;var _0xde8552,_0x28bc62;const {memberID:_0x1fb5c5,selection:_0x47c16c}=_0x5a924c['data'],_0x576427=xs(_0x47c16c),_0x21fdc5=(_0x28bc62=(_0xde8552=this[_0x5b3152(0x529)][_0x5b3152(0x3d1)](this[_0x5b3152(0x41c)],_0x1fb5c5))==null?void 0x0:_0xde8552['name'])!=null?_0x28bc62:'Unknown\x20user',_0xf878e7={'color':this[_0x5b3152(0x51a)][_0x5b3152(0x1e5)](_0x1fb5c5),'name':_0x21fdc5,'ranges':_0x576427},_0x9090cd=this[_0x5b3152(0x3c5)];_0x9090cd[_0x5b3152(0x4af)](_0x1fb5c5,_0xf878e7),this[_0x5b3152(0x4b1)]['next'](_0x9090cd);}[_0x4aaaf0(0x4a1)](_0x1c32db){const _0x334b6b=_0x4aaaf0,{memberID:_0x409403}=_0x1c32db['data'],_0x49b006=this[_0x334b6b(0x3c5)];_0x49b006[_0x334b6b(0x276)](_0x409403),this[_0x334b6b(0x4b1)][_0x334b6b(0x3b3)](_0x49b006);}[_0x4aaaf0(0x454)](){const _0x3f0762=_0x4aaaf0;var _0x2a973c;if(this[_0x3f0762(0x23c)]=!0x0,((_0x2a973c=this[_0x3f0762(0x46d)][_0x3f0762(0x4e3)]())==null?void 0x0:_0x2a973c['getUnitId']())!==this['unitID'])return;const _0x2831a2=this[_0x3f0762(0x5aa)]['get'](ne[_0x3f0762(0x28f)])[_0x3f0762(0x506)]();Array[_0x3f0762(0x27b)](_0x2831a2)&&_0x2831a2[_0x3f0762(0x31a)]>0x0&&this[_0x3f0762(0x1b6)](_0x2831a2);}['_toggleOffline'](){const _0x290d7f=_0x4aaaf0;this[_0x290d7f(0x23c)]=!0x1;}};xe=ti([z(0x2,a['Inject'](a[_0x4aaaf0(0x2ee)])),z(0x3,a[_0x4aaaf0(0x1b2)](ze)),z(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x50e)])),z(0x5,a[_0x4aaaf0(0x1b2)](Xe)),z(0x6,_[_0x4aaaf0(0x41f)]),z(0x7,a[_0x4aaaf0(0x33f)]),z(0x8,a[_0x4aaaf0(0x5df)])],xe);var ni=Object[_0x4aaaf0(0x562)],ri=Object[_0x4aaaf0(0x28b)],oi=(_0xab9de7,_0x955cc3,_0x4f1d90,_0x52910e)=>{for(var _0x25ae88=_0x52910e>0x1?void 0x0:_0x52910e?ri(_0x955cc3,_0x4f1d90):_0x955cc3,_0x2d0402=_0xab9de7['length']-0x1,_0x5de2f3;_0x2d0402>=0x0;_0x2d0402--)(_0x5de2f3=_0xab9de7[_0x2d0402])&&(_0x25ae88=(_0x52910e?_0x5de2f3(_0x955cc3,_0x4f1d90,_0x25ae88):_0x5de2f3(_0x25ae88))||_0x25ae88);return _0x52910e&&_0x25ae88&&ni(_0x955cc3,_0x4f1d90,_0x25ae88),_0x25ae88;},te=(_0x1a5eb0,_0x5941b3)=>(_0x3febbf,_0x52de7b)=>_0x5941b3(_0x3febbf,_0x52de7b,_0x1a5eb0);const ai=0x12c,ci=0x64,li=()=>{let _0xa551fb=[],_0x12eb3a=!0x1;return _0x578ec3=>{const _0x1bdbfc=_0x47ba;_0xa551fb[_0x1bdbfc(0x4ce)](_0x578ec3),_0x12eb3a||(_0x12eb3a=!0x0,setTimeout(()=>{const _0x2d029d=_0x1bdbfc;_0xa551fb[_0x2d029d(0x1d6)](_0x1373cd=>_0x1373cd()),_0xa551fb=[],_0x12eb3a=!0x1;}));};};let ke=class extends a[_0x4aaaf0(0x275)]{constructor(_0x50e692,_0x120b87,_0x4f4c1a,_0x1a71b7,_0x2ce18a,_0xd6d851,_0x19faf5,_0x1874fb){const _0x21090b=_0x4aaaf0;super(),u(this,_0x21090b(0x23c),!0x1),u(this,_0x21090b(0x33d),!0x1),u(this,_0x21090b(0x4b1),new v[(_0x21090b(0x442))](new Map())),u(this,'cursorInfo$',this[_0x21090b(0x4b1)][_0x21090b(0x2a7)]()),u(this,_0x21090b(0x4b0),new v[(_0x21090b(0x442))]([])),u(this,_0x21090b(0x4fc),this[_0x21090b(0x4b0)][_0x21090b(0x2b0)](v[_0x21090b(0x4a4)](ai))),u(this,'_updateLocalCursor',a[_0x21090b(0x54d)]((_0x2c3048,_0x53ed20)=>{const _0x137d39=_0x21090b,_0x1e0c32={'eventID':_['CollaborationEvent'][_0x137d39(0x1d5)],'data':{'unitID':this[_0x137d39(0x41c)],'memberID':this[_0x137d39(0x257)]['getMemberID'](),'selection':Qe[_0x137d39(0x420)](_0x2c3048,_0x53ed20[_0x137d39(0x325)])}};this['_session'][_0x137d39(0x306)](_0x1e0c32,this[_0x137d39(0x41c)]);},ci)),(this['unitID']=_0x50e692,this[_0x21090b(0x257)]=_0x120b87,this[_0x21090b(0x5aa)]=_0x4f4c1a,this['_colorAssignService']=_0x1a71b7,this[_0x21090b(0x529)]=_0x2ce18a,this['_univerInstanceService']=_0xd6d851,this[_0x21090b(0x310)]=_0x19faf5,this[_0x21090b(0x3f3)]=_0x1874fb);}get[_0x4aaaf0(0x3c5)](){const _0x2e5e95=_0x4aaaf0;return this[_0x2e5e95(0x4b1)]['getValue']();}get[_0x4aaaf0(0x3d4)](){const _0x5b43d6=_0x4aaaf0;return this[_0x5b43d6(0x4b0)][_0x5b43d6(0x42d)]();}['dispose'](){const _0x139058=_0x4aaaf0;super['dispose'](),this['_cursorInfo$'][_0x139058(0x3b3)](new Map()),this[_0x139058(0x4b1)][_0x139058(0x489)](),this[_0x139058(0x4b0)][_0x139058(0x3b3)]([]),this['_roomMembers$'][_0x139058(0x489)]();}[_0x4aaaf0(0x1d7)](){const _0x55c2bc=_0x4aaaf0;this[_0x55c2bc(0x33d)]||(this['_init']=!0x0,this[_0x55c2bc(0x257)][_0x55c2bc(0x4da)][_0x55c2bc(0x2b0)](v[_0x55c2bc(0x4b2)](this[_0x55c2bc(0x35d)]))[_0x55c2bc(0x236)](_0x3aab95=>{const _0x55b0f8=_0x55c2bc;_0x3aab95===x['ONLINE']?this['_toggleOnline']():this[_0x55b0f8(0x3a8)]();}),this[_0x55c2bc(0x257)]['event$']['pipe'](v[_0x55c2bc(0x4b2)](this['dispose$']))['subscribe'](_0x1c91ae=>{const _0x104596=_0x55c2bc,_0x24fcd7=_0x1c91ae[_0x104596(0x405)];_0x24fcd7===_['CollaborationEvent'][_0x104596(0x1d5)]&&this[_0x104596(0x5c1)](_0x1c91ae),_0x24fcd7===_[_0x104596(0x2bb)][_0x104596(0x3b0)]&&this[_0x104596(0x4a1)](_0x1c91ae);}),this[_0x55c2bc(0x1b9)](),this[_0x55c2bc(0x367)](this[_0x55c2bc(0x310)][_0x55c2bc(0x2d9)](_0x12f255=>{const _0xb520ca=_0x55c2bc;if(this['_online']&&_0x12f255['id']===C[_0xb520ca(0x2f0)]['id']&&_0x12f255['params'][_0xb520ca(0x22c)]===this[_0xb520ca(0x41c)]){const _0x291c54=_0x12f255[_0xb520ca(0x348)];this['_updateLocalCursor'](_0x291c54[_0xb520ca(0x395)],_0x291c54[_0xb520ca(0x44d)][0x0]);}})));}[_0x4aaaf0(0x5c1)](_0x16580b){const _0x518441=_0x4aaaf0;var _0x39c371,_0x16b377;const {memberID:_0x4d0fac,selection:_0x41993b}=_0x16580b['data'],{sheetName:_0x44b98e,range:_0xcfc1c0}=Qe['deserializeRangeWithSheet'](_0x41993b),_0x2d293f={'name':(_0x16b377=(_0x39c371=this[_0x518441(0x529)][_0x518441(0x3d1)](this[_0x518441(0x41c)],_0x4d0fac))==null?void 0x0:_0x39c371['name'])!=null?_0x16b377:_0x518441(0x508),'range':this[_0x518441(0x5a0)](_0x44b98e,_0xcfc1c0),'sheetID':_0x44b98e,'color':this[_0x518441(0x51a)]['assignAColorForMemberID'](_0x4d0fac),'selection':_0x41993b},_0x3f5ec7=this[_0x518441(0x3c5)];_0x3f5ec7[_0x518441(0x4af)](_0x4d0fac,_0x2d293f),this[_0x518441(0x4b1)][_0x518441(0x3b3)](_0x3f5ec7);}[_0x4aaaf0(0x4a1)](_0x342e37){const _0x30897d=_0x4aaaf0,{memberID:_0x280eca}=_0x342e37[_0x30897d(0x2cf)],_0x252a1c=this[_0x30897d(0x3c5)];_0x252a1c[_0x30897d(0x276)](_0x280eca),this[_0x30897d(0x4b1)]['next'](_0x252a1c);}['_getMergeRange'](_0x1696e5,_0x1576ba){const _0x42dc5e=_0x4aaaf0;var _0x2c0d84,_0x442e6c;const _0x412846=(_0x442e6c=(_0x2c0d84=this[_0x42dc5e(0x46d)][_0x42dc5e(0x4ae)](this[_0x42dc5e(0x41c)]))==null?void 0x0:_0x2c0d84[_0x42dc5e(0x5be)](_0x1696e5))==null?void 0x0:_0x442e6c[_0x42dc5e(0x4a5)]();return(_0x412846==null?void 0x0:_0x412846[_0x42dc5e(0x1c1)](_0x2f1c9a=>a['Rectangle']['contains'](_0x2f1c9a,_0x1576ba)))||_0x1576ba;}[_0x4aaaf0(0x1b9)](){const _0x52b32b=_0x4aaaf0,_0x126a31=new a[(_0x52b32b(0x5db))](),_0x5be4f6=li(),_0x58e61f=()=>{const _0x430273=_0x52b32b;_0x126a31[_0x430273(0x342)]();const _0x366e1e=(_0x51c414,_0x110996,_0x14094a,_0x1c606e)=>{const _0xd5f490=_0x430273;let _0x326eee=[];switch(_0x51c414['id']){case C[_0xd5f490(0x53a)][_0xd5f490(0x324)]:{_0x326eee=C[_0xd5f490(0x30b)](_0x51c414,_0x1c606e);break;}case C['EffectRefRangId'][_0xd5f490(0x590)]:{_0x326eee=C[_0xd5f490(0x34e)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x2ae)]:{_0x326eee=C[_0xd5f490(0x28e)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x59e)]:{_0x326eee=C[_0xd5f490(0x268)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x5d8)]:{_0x326eee=C[_0xd5f490(0x23e)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)]['InsertRowCommandId']:{_0x326eee=C[_0xd5f490(0x31d)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x597)]:{_0x326eee=C[_0xd5f490(0x37a)](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)][_0xd5f490(0x25d)]:{_0x326eee=C['handleIRemoveCol'](_0x51c414,_0x1c606e);break;}case C[_0xd5f490(0x53a)]['RemoveRowCommandId']:{_0x326eee=C[_0xd5f490(0x570)](_0x51c414,_0x1c606e);break;}}const _0x398af8=C[_0xd5f490(0x422)](_0x326eee,_0x1c606e),_0x3c1747=this[_0xd5f490(0x3c5)]['get'](_0x110996);if(_0x3c1747&&_0x398af8){const _0x213f6b={..._0x3c1747,'range':_0x398af8};this[_0xd5f490(0x3c5)][_0xd5f490(0x4af)](_0x110996,_0x213f6b),_0x5be4f6(()=>{const _0x3dc092=_0xd5f490,_0x923d5f=this[_0x3dc092(0x3f3)]['registerRefRange'](_0x398af8,_0x2ea046=>(_0x923d5f['dispose'](),_0x366e1e(_0x2ea046,_0x110996,_0x14094a,_0x398af8)));_0x126a31[_0x3dc092(0x24d)](_0x923d5f);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x430273(0x1d6)]((_0x2e5c81,_0x5ca381)=>{const _0x8e8454=_0x430273,{range:_0x5eee4b,sheetID:_0x3a6775}=_0x2e5c81,_0x511f00=this[_0x8e8454(0x3f3)][_0x8e8454(0x200)](_0x5eee4b,_0x37bc69=>(_0x511f00[_0x8e8454(0x342)](),_0x366e1e(_0x37bc69,_0x5ca381,_0x3a6775,_0x5eee4b)));_0x126a31[_0x8e8454(0x24d)](_0x511f00);});};this[_0x52b32b(0x367)](a[_0x52b32b(0x2c6)](this[_0x52b32b(0x4b1)][_0x52b32b(0x236)](()=>{_0x58e61f();})));}[_0x4aaaf0(0x454)](){const _0x2d9390=_0x4aaaf0;var _0x209ae6,_0x373433;if(this['_online']=!0x0,((_0x209ae6=this[_0x2d9390(0x46d)][_0x2d9390(0x4e3)]())==null?void 0x0:_0x209ae6[_0x2d9390(0x3e2)]())!==this['unitID'])return;const _0x552a5e=(_0x373433=this[_0x2d9390(0x5aa)][_0x2d9390(0x439)](C['SheetsSelectionsService'])[_0x2d9390(0x303)]())==null?void 0x0:_0x373433[0x0],_0x2be567=this[_0x2d9390(0x46d)]['getCurrentUnitForType'](a[_0x2d9390(0x419)][_0x2d9390(0x4d0)])[_0x2d9390(0x372)]();_0x552a5e&&_0x2be567&&this['_updateLocalCursor'](_0x2be567[_0x2d9390(0x271)](),_0x552a5e);}[_0x4aaaf0(0x3a8)](){const _0x4838d7=_0x4aaaf0;this[_0x4838d7(0x23c)]=!0x1;}};ke=oi([te(0x2,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),te(0x3,a[_0x4aaaf0(0x1b2)](ze)),te(0x4,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x50e)])),te(0x5,a[_0x4aaaf0(0x33f)]),te(0x6,a[_0x4aaaf0(0x5df)]),te(0x7,a['Inject'](C['RefRangeService']))],ke);var hi=Object[_0x4aaaf0(0x562)],_i=Object[_0x4aaaf0(0x28b)],ui=(_0x1295db,_0x2a607b,_0x5d1bdc,_0x3c8fcf)=>{const _0x20d660=_0x4aaaf0;for(var _0xf645d6=_0x3c8fcf>0x1?void 0x0:_0x3c8fcf?_i(_0x2a607b,_0x5d1bdc):_0x2a607b,_0x5416db=_0x1295db[_0x20d660(0x31a)]-0x1,_0x3673aa;_0x5416db>=0x0;_0x5416db--)(_0x3673aa=_0x1295db[_0x5416db])&&(_0xf645d6=(_0x3c8fcf?_0x3673aa(_0x2a607b,_0x5d1bdc,_0xf645d6):_0x3673aa(_0xf645d6))||_0xf645d6);return _0x3c8fcf&&_0xf645d6&&hi(_0x2a607b,_0x5d1bdc,_0xf645d6),_0xf645d6;},Ne=(_0x2fc968,_0x97cc44)=>(_0x4739cc,_0x205e43)=>_0x97cc44(_0x4739cc,_0x205e43,_0x2fc968);let oe=class extends a[_0x4aaaf0(0x275)]{constructor(_0x25d88e,_0x429c47,_0x19d49d){const _0x2dc638=_0x4aaaf0;super(),u(this,_0x2dc638(0x203),new Map()),u(this,_0x2dc638(0x1d2),new v[(_0x2dc638(0x1d4))]()),(this[_0x2dc638(0x46d)]=_0x25d88e,this['_injector']=_0x429c47,this['_collabSessionService']=_0x19d49d,this[_0x2dc638(0x33d)]());}[_0x4aaaf0(0x342)](){const _0x562d34=_0x4aaaf0;super[_0x562d34(0x342)](),this[_0x562d34(0x1d2)]['complete'](),this[_0x562d34(0x203)]['forEach'](_0x3c7e21=>_0x3c7e21[_0x562d34(0x342)]());}[_0x4aaaf0(0x355)](_0x4d3371){const _0x4f16b4=_0x4aaaf0;return this['_entities'][_0x4f16b4(0x2cc)](_0x4d3371)?this[_0x4f16b4(0x203)]['get'](_0x4d3371)['cursorInfo$']:this['_entityInit$'][_0x4f16b4(0x2b0)](v[_0x4f16b4(0x36d)](_0x31f58c=>_0x31f58c[_0x4f16b4(0x41c)]===_0x4d3371),v[_0x4f16b4(0x3e7)](_0x52ae1c=>_0x52ae1c[_0x4f16b4(0x2d7)]));}[_0x4aaaf0(0x33d)](){const _0x24695f=_0x4aaaf0;this[_0x24695f(0x46d)][_0x24695f(0x411)](a[_0x24695f(0x419)]['UNIVER_SHEET'])[_0x24695f(0x2b0)](v[_0x24695f(0x4b2)](this['dispose$']))[_0x24695f(0x236)](async _0x1499c0=>{const _0x3ea605=_0x24695f,_0xea0fa9=_0x1499c0['getUnitId'](),_0x571001=await this[_0x3ea605(0x517)](_0xea0fa9);this[_0x3ea605(0x1d2)][_0x3ea605(0x3b3)](_0x571001),this[_0x3ea605(0x203)][_0x3ea605(0x4af)](_0xea0fa9,_0x571001);}),this['_univerInstanceService'][_0x24695f(0x411)](a[_0x24695f(0x419)][_0x24695f(0x238)])[_0x24695f(0x2b0)](v[_0x24695f(0x4b2)](this[_0x24695f(0x35d)]))[_0x24695f(0x2b0)](v['filter'](_0x5d209d=>!_0x5d209d[_0x24695f(0x3e2)]()[_0x24695f(0x476)]('__')))[_0x24695f(0x236)](async _0x3a245e=>{const _0x13df96=_0x24695f,_0x1d200c=_0x3a245e[_0x13df96(0x3e2)](),_0x1802c4=await this[_0x13df96(0x26d)](_0x1d200c);this['_entityInit$']['next'](_0x1802c4),this['_entities'][_0x13df96(0x4af)](_0x1d200c,_0x1802c4);}),v[_0x24695f(0x398)](this[_0x24695f(0x46d)][_0x24695f(0x2d5)](a[_0x24695f(0x419)]['UNIVER_DOC']),this[_0x24695f(0x46d)]['getTypeOfUnitDisposed$'](a[_0x24695f(0x419)][_0x24695f(0x4d0)]))[_0x24695f(0x2b0)](v['takeUntil'](this['dispose$']))['subscribe'](_0x37b0a1=>{const _0x448b66=_0x24695f,_0x1e3933=_0x37b0a1['getUnitId'](),_0x3c5936=this['_entities'][_0x448b66(0x439)](_0x1e3933);_0x3c5936&&(_0x3c5936[_0x448b66(0x342)](),this[_0x448b66(0x203)][_0x448b66(0x276)](_0x1e3933));});}async[_0x4aaaf0(0x517)](_0x190569){const _0xb9f4db=_0x4aaaf0,_0xcb38c7=await this[_0xb9f4db(0x2d3)][_0xb9f4db(0x571)](_0x190569),_0x463c85=this[_0xb9f4db(0x5aa)][_0xb9f4db(0x1da)](ke,_0x190569,_0xcb38c7);return _0x463c85[_0xb9f4db(0x1d7)](),_0x463c85;}async[_0x4aaaf0(0x26d)](_0x406764){const _0x3e495d=_0x4aaaf0,_0x234faf=await this[_0x3e495d(0x2d3)]['requireSession'](_0x406764),_0x4b7c9e=this[_0x3e495d(0x5aa)][_0x3e495d(0x1da)](xe,_0x406764,_0x234faf);return _0x4b7c9e[_0x3e495d(0x1d7)](),_0x4b7c9e;}};oe=ui([Ne(0x0,a[_0x4aaaf0(0x33f)]),Ne(0x1,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),Ne(0x2,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x48f)]))],oe);const de=0x14,ct=0xc8,Me=0x4,di=0x5;function Si(_0x28f3c7,_0x2a48ae){const _0x476e15=_0x4aaaf0;let {radius:_0x47cfee,width:_0x1dc167,height:_0x40a503}=_0x2a48ae;_0x47cfee=_0x47cfee!=null?_0x47cfee:0x0,_0x1dc167=_0x1dc167!=null?_0x1dc167:0x1e,_0x40a503=_0x40a503!=null?_0x40a503:0x1e;let _0x268bdd=0x0,_0xdbb106=0x0,_0x5600ce=0x0;_0x268bdd=_0xdbb106=_0x5600ce=Math[_0x476e15(0x52c)](_0x47cfee,_0x1dc167/0x2,_0x40a503/0x2),_0x28f3c7[_0x476e15(0x53e)](),_0x28f3c7[_0x476e15(0x4ec)](_0x268bdd,0x0),_0x28f3c7[_0x476e15(0x552)](_0x1dc167-_0xdbb106,0x0),_0x28f3c7[_0x476e15(0x1ee)](_0x1dc167-_0xdbb106,_0xdbb106,_0xdbb106,Math['PI']*0x3/0x2,0x0,!0x1),_0x28f3c7[_0x476e15(0x552)](_0x1dc167,_0x40a503-_0x5600ce),_0x28f3c7[_0x476e15(0x1ee)](_0x1dc167-_0x5600ce,_0x40a503-_0x5600ce,_0x5600ce,0x0,Math['PI']/0x2,!0x1),_0x28f3c7[_0x476e15(0x552)](0x0,_0x40a503),_0x28f3c7[_0x476e15(0x552)](0x0,_0x268bdd),_0x28f3c7[_0x476e15(0x1ee)](_0x268bdd,_0x268bdd,_0x268bdd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x28f3c7['closePath'](),_0x2a48ae['fill']&&(_0x28f3c7['save'](),_0x28f3c7[_0x476e15(0x2a3)]=_0x2a48ae[_0x476e15(0x444)],_0x2a48ae[_0x476e15(0x211)]===_0x476e15(0x56e)?_0x28f3c7[_0x476e15(0x444)](_0x476e15(0x56e)):_0x28f3c7[_0x476e15(0x444)](),_0x28f3c7[_0x476e15(0x327)]());}class Oe extends O[_0x4aaaf0(0x1fe)]{constructor(_0x7cebe5,_0x225ebc){const _0x19674e=_0x4aaaf0;super(_0x7cebe5,_0x225ebc),u(this,'color'),u(this,'text'),(this['color']=_0x225ebc==null?void 0x0:_0x225ebc[_0x19674e(0x3b4)],this[_0x19674e(0x47b)]=_0x225ebc==null?void 0x0:_0x225ebc[_0x19674e(0x47b)]);}static[_0x4aaaf0(0x5a5)](_0x14ae01,_0x5c35df){const _0x375579=_0x4aaaf0,{text:_0x434790,color:_0x38ae3}=_0x5c35df;_0x14ae01[_0x375579(0x4e7)](),_0x14ae01['font']=_0x375579(0x396);const _0x5c6671=_0x14ae01['measureText'](_0x434790)[_0x375579(0x43a)],_0x3a6ca7=Math[_0x375579(0x52c)](_0x5c6671+0x2*Me,ct);Si(_0x14ae01,{'height':de,'radius':0x4,'width':_0x3a6ca7,'fill':_0x38ae3,'evented':!0x1}),_0x14ae01['fillStyle']=_0x375579(0x3ae);const _0x2f516f=Me,_0x1f4761=de-di,_0x4286fe=ct-0x2*Me;if(_0x5c6671>_0x4286fe){let _0x29a026='',_0x2b5f49=0x0;for(const _0xb87d89 of _0x434790){const _0xb8b063=_0x14ae01[_0x375579(0x51e)](_0xb87d89)[_0x375579(0x43a)];if(_0x2b5f49+_0xb8b063<=_0x4286fe-_0x14ae01[_0x375579(0x51e)](_0x375579(0x385))[_0x375579(0x43a)])_0x29a026+=_0xb87d89,_0x2b5f49+=_0xb8b063;else{_0x29a026+=_0x375579(0x385);break;}}_0x14ae01['fillText'](_0x29a026,_0x2f516f,_0x1f4761);}else _0x14ae01[_0x375579(0x3ea)](_0x434790,_0x2f516f,_0x1f4761);_0x14ae01[_0x375579(0x327)]();}[_0x4aaaf0(0x392)](_0x113c98){const _0x261f60=_0x4aaaf0;Oe[_0x261f60(0x5a5)](_0x113c98,this);}}const Ae=_0x4aaaf0(0x458),vi='collab-text-range-',mi=_0x4aaaf0(0x2b6),le=0x6,gi=1.5,Le=0x4,fi=1.5,Ii=_0x4aaaf0(0x39c);class lt{constructor(_0x1cc02a,_0x2e1ac7,_0x202f08,_0x862165){const _0x32a8c2=_0x4aaaf0;u(this,_0x32a8c2(0x225),[]),u(this,_0x32a8c2(0x2ce),null),u(this,'_textBubble',null),u(this,_0x32a8c2(0x44b),null),u(this,_0x32a8c2(0x43e),null),u(this,_0x32a8c2(0x3d8),null),(this[_0x32a8c2(0x3ee)]=_0x1cc02a,this[_0x32a8c2(0x293)]=_0x2e1ac7,this['_docSkeleton']=_0x202f08,this[_0x32a8c2(0x5c3)]=_0x862165,this[_0x32a8c2(0x245)]());}set[_0x4aaaf0(0x365)](_0x5d00fb){const _0x42d97d=_0x4aaaf0;_0x5d00fb?(this[_0x42d97d(0x44b)]&&this[_0x42d97d(0x44b)][_0x42d97d(0x34c)](),this['_textBubble']&&this[_0x42d97d(0x40f)][_0x42d97d(0x4c5)]()):(this[_0x42d97d(0x44b)]&&this[_0x42d97d(0x44b)][_0x42d97d(0x4c5)](),this[_0x42d97d(0x40f)]&&this[_0x42d97d(0x40f)][_0x42d97d(0x34c)]());}[_0x4aaaf0(0x342)](){const _0xeb8960=_0x4aaaf0;for(const _0x3ee8fb of this[_0xeb8960(0x225)])_0x3ee8fb['dispose']();this[_0xeb8960(0x40f)]&&this[_0xeb8960(0x40f)][_0xeb8960(0x342)](),this['_anchorDot']&&this[_0xeb8960(0x44b)][_0xeb8960(0x342)](),this['_anchor']&&this[_0xeb8960(0x2ce)][_0xeb8960(0x342)](),this['_eventUnsubscribe']&&this[_0xeb8960(0x3d8)]();}[_0x4aaaf0(0x245)](){const _0x1ac95c=_0x4aaaf0;var _0x363b8b;const {_docSkeleton:_0x1420d2,_document:_0x3cd7d4}=this,{color:_0x495d52,name:_0x32472f,ranges:_0x44d57e}=this[_0x1ac95c(0x3ee)],_0x9e47bf=_0x3cd7d4[_0x1ac95c(0x2d8)](),{docsLeft:_0x1651c4,docsTop:_0x28944c}=_0x9e47bf,_0x5a3cea=new N[(_0x1ac95c(0x4f2))](_0x9e47bf,_0x1420d2);for(const {startOffset:_0x3c217b,endOffset:_0x428204,rangeType:_0x143810,segmentId:_0x17a981,segmentPage:_0x1bd319,collapsed:_0x3c361d,isActive:_0x22382d}of _0x44d57e){const _0x1317fb=_0x1420d2['findNodePositionByCharIndex'](_0x3c217b,!0x0,_0x17a981,_0x1bd319);let _0x565d62=_0x1420d2[_0x1ac95c(0x2f1)](_0x428204,!0x0,_0x17a981,_0x1bd319);if(_0x565d62==null&&(_0x565d62=_0x1420d2['findNodePositionByCharIndex'](_0x428204-0x1,!0x1,_0x17a981,_0x1bd319)),_0x22382d){const {contentBoxPointGroup:_0x504237}=_0x5a3cea[_0x1ac95c(0x384)](_0x565d62,_0x565d62);if(_0x504237[_0x1ac95c(0x31a)]===0x0)continue;this[_0x1ac95c(0x3c9)](_0x495d52,_0x504237,_0x1651c4,_0x28944c,_0x32472f),this[_0x1ac95c(0x3d8)]=this[_0x1ac95c(0x4df)]();}if(!_0x3c361d&&_0x1317fb&&_0x565d62){if(_0x143810===a[_0x1ac95c(0x353)]['RECT']){const _0x488433=new N[(_0x1ac95c(0x4c8))](_0x9e47bf,_0x1420d2),{pointGroup:_0x1f5535}=(_0x363b8b=_0x488433['getRangePointData'](_0x1317fb,_0x565d62))!=null?_0x363b8b:{};if(_0x1f5535==null||_0x1f5535[_0x1ac95c(0x31a)]===0x0)continue;this[_0x1ac95c(0x4e6)](_0x495d52,_0x1f5535,_0x1651c4,_0x28944c);}else{const {borderBoxPointGroup:_0x15392a}=_0x5a3cea['getRangePointData'](_0x1317fb,_0x565d62);if(_0x15392a[_0x1ac95c(0x31a)]===0x0)continue;this['_drawTextRange'](_0x495d52,_0x15392a,_0x1651c4,_0x28944c);}}}}[_0x4aaaf0(0x3c9)](_0x21795c,_0x4262e7,_0x582230,_0x308403,_0x3fdcbc){const _0x3353f5=_0x4aaaf0,_0x7c8238=this['_getAnchorBounding'](_0x4262e7),{left:_0x2bda45,top:_0x46ac00,height:_0x450b58}=_0x7c8238,_0x5a6a8c=this[_0x3353f5(0x59f)](),_0x53dfb6=fi/_0x5a6a8c,_0x540df4=new O[(_0x3353f5(0x35a))](Ae+a['Tools'][_0x3353f5(0x1c9)](le),{'left':_0x2bda45+_0x582230-_0x53dfb6,'top':_0x46ac00+_0x308403,'height':_0x450b58,'width':gi,'fill':_0x21795c||O[_0x3353f5(0x390)](a['COLORS']['black'],0x0),'strokeWidth':_0x53dfb6,'stroke':Ii,'evented':!0x0});this[_0x3353f5(0x2ce)]=_0x540df4,this[_0x3353f5(0x293)][_0x3353f5(0x32d)](_0x540df4,N[_0x3353f5(0x34a)]);const _0x29b435=new O[(_0x3353f5(0x35a))](Ae+a[_0x3353f5(0x5a8)]['generateRandomId'](le),{'left':_0x2bda45+_0x582230-_0x53dfb6,'top':_0x46ac00+_0x308403-Le/0x2,'height':Le,'width':Le,'fill':_0x21795c||O[_0x3353f5(0x390)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x21795c||O['getColor'](a[_0x3353f5(0x418)][_0x3353f5(0x2ca)],0x0),'evented':!0x1});this[_0x3353f5(0x44b)]=_0x29b435,this['_scene'][_0x3353f5(0x32d)](_0x29b435,N[_0x3353f5(0x34a)]);const _0x28ca99=new Oe(Ae+a[_0x3353f5(0x5a8)][_0x3353f5(0x1c9)](le),{'left':_0x2bda45+_0x582230-_0x53dfb6,'top':_0x46ac00+_0x308403-de,'text':_0x3fdcbc,'color':_0x21795c});this[_0x3353f5(0x40f)]=_0x28ca99,this[_0x3353f5(0x293)][_0x3353f5(0x32d)](_0x28ca99,N['TEXT_RANGE_LAYER_INDEX']),this[_0x3353f5(0x365)]=!0x1;}[_0x4aaaf0(0x4df)](){const _0x161209=_0x4aaaf0,_0x1905ee=this[_0x161209(0x2ce)]['onPointerEnter$'][_0x161209(0x1d9)](()=>{this['_hover']=!0x0;}),_0x13e055=this[_0x161209(0x2ce)][_0x161209(0x4bd)][_0x161209(0x1d9)](()=>{const _0x2f89d2=_0x161209;this[_0x2f89d2(0x43e)]&&clearTimeout(this[_0x2f89d2(0x43e)]),this['_hideTimer']=setTimeout(()=>{const _0x3ccacb=_0x2f89d2;this[_0x3ccacb(0x365)]=!0x1;},0x7d0);});return()=>{const _0x1bd373=_0x161209;_0x1905ee['unsubscribe'](),_0x13e055[_0x1bd373(0x4ed)]();};}[_0x4aaaf0(0x5ce)](_0x3d471e,_0x4bfd2c,_0x342dc5,_0x350fe2){const _0x1e6b00=_0x4aaaf0,_0x8a0f1f=new a[(_0x1e6b00(0x394))](_0x3d471e)[_0x1e6b00(0x1e1)](0.2)['toRgbString'](),_0x11f178=new O[(_0x1e6b00(0x2e8))](vi+a['Tools'][_0x1e6b00(0x1c9)](le),{'pointsGroup':_0x4bfd2c,'fill':_0x8a0f1f||O[_0x1e6b00(0x390)](a[_0x1e6b00(0x418)]['black'],0.2),'left':_0x342dc5,'top':_0x350fe2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1e6b00(0x4ce)](_0x11f178),this['_scene']['addObject'](_0x11f178,N['TEXT_RANGE_LAYER_INDEX']);}[_0x4aaaf0(0x4e6)](_0xf490a7,_0x406408,_0x17afbe,_0x14c345){const _0x4f00d8=_0x4aaaf0,_0x592b16=new a[(_0x4f00d8(0x394))](_0xf490a7)[_0x4f00d8(0x1e1)](0.2)[_0x4f00d8(0x2c2)](),_0x193623=new O['RegularPolygon'](mi+a['Tools'][_0x4f00d8(0x1c9)](le),{'pointsGroup':_0x406408,'fill':_0x592b16||O[_0x4f00d8(0x390)](a[_0x4f00d8(0x418)][_0x4f00d8(0x2ca)],0.2),'left':_0x17afbe,'top':_0x14c345,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f00d8(0x225)]['push'](_0x193623),this['_scene'][_0x4f00d8(0x32d)](_0x193623,N[_0x4f00d8(0x34a)]);}[_0x4aaaf0(0x46b)](_0x102c50){const _0x460e31=_0x102c50[0x0],_0x5d59f5=_0x460e31[0x0],_0x473d38=_0x460e31[0x2],{x:_0x30ab32,y:_0x2a764a}=_0x5d59f5,{x:_0x32a421,y:_0x44565b}=_0x473d38;return{'left':_0x30ab32,'top':_0x2a764a,'width':_0x32a421-_0x30ab32,'height':_0x44565b-_0x2a764a};}[_0x4aaaf0(0x59f)](){const _0x2c8875=_0x4aaaf0,{scaleX:_0x26c010,scaleY:_0x14d19e}=this[_0x2c8875(0x293)]['getAncestorScale']();return Math['max'](_0x26c010,_0x14d19e);}}var pi=Object['defineProperty'],Ci=Object[_0x4aaaf0(0x28b)],Ei=(_0x33d311,_0x85ac0d,_0x6cc3df,_0x5b3ae2)=>{const _0x36cb15=_0x4aaaf0;for(var _0xbad9ef=_0x5b3ae2>0x1?void 0x0:_0x5b3ae2?Ci(_0x85ac0d,_0x6cc3df):_0x85ac0d,_0x41f100=_0x33d311[_0x36cb15(0x31a)]-0x1,_0x3034ca;_0x41f100>=0x0;_0x41f100--)(_0x3034ca=_0x33d311[_0x41f100])&&(_0xbad9ef=(_0x5b3ae2?_0x3034ca(_0x85ac0d,_0x6cc3df,_0xbad9ef):_0x3034ca(_0xbad9ef))||_0xbad9ef);return _0x5b3ae2&&_0xbad9ef&&pi(_0x85ac0d,_0x6cc3df,_0xbad9ef),_0xbad9ef;},ve=(_0x2c62e2,_0x3edce0)=>(_0x19fcdc,_0x32668c)=>_0x3edce0(_0x19fcdc,_0x32668c,_0x2c62e2);let Be=class extends a[_0x4aaaf0(0x275)]{constructor(_0x1aa164,_0x3a8b6c,_0x132e81,_0x3a9c2e,_0x241cd3){const _0x9cc77a=_0x4aaaf0;super(),u(this,_0x9cc77a(0x45b),[]),u(this,_0x9cc77a(0x301),[]),(this[_0x9cc77a(0x4e2)]=_0x1aa164,this['_docSkeletonManagerService']=_0x3a8b6c,this[_0x9cc77a(0x58d)]=_0x132e81,this['_commandService']=_0x3a9c2e,this[_0x9cc77a(0x330)]=_0x241cd3,this[_0x9cc77a(0x33d)]());}[_0x4aaaf0(0x33d)](){const _0x589203=_0x4aaaf0,_0x5f5bcf=this[_0x589203(0x4e2)][_0x589203(0x22c)],_0x449f07=this[_0x589203(0x50a)];this['disposeWithMe'](v['combineLatest']([this[_0x589203(0x58d)][_0x589203(0x355)](_0x5f5bcf),this['_themeService'][_0x589203(0x54e)]])[_0x589203(0x2b0)](E[_0x589203(0x263)](([_0x567c6a,_0x1dd5ca])=>({'skeleton':_0x449f07[_0x589203(0x213)](),'cursors':[..._0x567c6a[_0x589203(0x4ca)]()][_0x589203(0x534)](_0x21173c=>({..._0x21173c,'color':_0x1dd5ca[_0x21173c[_0x589203(0x3b4)]]}))})))[_0x589203(0x236)](_0x17ad34=>{if(this['_removeCollabCursors'](),_0x17ad34){const {skeleton:_0x38d7e5,cursors:_0x9eb196}=_0x17ad34;this['_updateCollabCursors'](_0x38d7e5,_0x9eb196);}})),this[_0x589203(0x5c6)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x1daa3c,_0x3e6cfc){const _0x24b514=_0x4aaaf0,{scene:_0x3fca04,mainComponent:_0x5b68bc}=this[_0x24b514(0x4e2)],_0x2cd873=_0x3e6cfc[_0x24b514(0x263)](_0x29b321=>new lt(_0x29b321,_0x3fca04,_0x1daa3c,_0x5b68bc));this['_cursorShapes']=_0x2cd873,this['_cursors']=_0x3e6cfc;}[_0x4aaaf0(0x1f4)](){const _0x39e592=_0x4aaaf0;this[_0x39e592(0x468)]();const {scene:_0x103515,mainComponent:_0x2fa967}=this[_0x39e592(0x4e2)],_0x37db87=this['_docSkeletonManagerService']['getSkeleton'](),_0xf71bd2=this[_0x39e592(0x301)]['map'](_0x5ef126=>new lt(_0x5ef126,_0x103515,_0x37db87,_0x2fa967));this[_0x39e592(0x45b)]=_0xf71bd2;}[_0x4aaaf0(0x468)](){const _0x3df0f1=_0x4aaaf0;this[_0x3df0f1(0x45b)][_0x3df0f1(0x1d6)](_0x27f80e=>_0x27f80e[_0x3df0f1(0x342)]()),this[_0x3df0f1(0x45b)]=[];}[_0x4aaaf0(0x54f)](){const _0xb29c6=_0x4aaaf0,_0x46e559=[N[_0xb29c6(0x469)]['id']];this['disposeWithMe'](this[_0xb29c6(0x310)]['onCommandExecuted'](_0x5e8d01=>{const _0x379399=_0xb29c6;_0x46e559[_0x379399(0x1e0)](_0x5e8d01['id'])&&_0x5e8d01[_0x379399(0x348)][_0x379399(0x22c)]===this[_0x379399(0x4e2)][_0x379399(0x22c)]&&this['_refreshCollabCursors']();}));}[_0x4aaaf0(0x5c6)](){const _0x5578c4=_0x4aaaf0;this[_0x5578c4(0x367)](a[_0x5578c4(0x3b5)](this['_context']['engine']['onTransformChange$'])['pipe'](E[_0x5578c4(0x36d)](_0x30b242=>_0x30b242[_0x5578c4(0x4aa)]===O[_0x5578c4(0x550)][_0x5578c4(0x3b8)]),E[_0x5578c4(0x1c6)](0x10))[_0x5578c4(0x236)](()=>{const _0xfc8b92=_0x5578c4;this[_0xfc8b92(0x1f4)]();}));}};Be=Ei([ve(0x1,a[_0x4aaaf0(0x1b2)](ne[_0x4aaaf0(0x511)])),ve(0x2,a['Inject'](oe)),ve(0x3,a[_0x4aaaf0(0x5df)]),ve(0x4,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1c2)]))],Be);const bi=0x1,Ti=1.5;class wt extends O[_0x4aaaf0(0x1fe)]{constructor(_0x447de2,_0x539adc){const _0x26e841=_0x4aaaf0;super(_0x447de2,_0x539adc),u(this,_0x26e841(0x5a3)),u(this,_0x26e841(0x47f),!0x1),u(this,_0x26e841(0x52b)),u(this,_0x26e841(0x248),''),u(this,_0x26e841(0x2d0),_0x26e841(0x314)),u(this,'_backgroundColor'),(_0x539adc&&this[_0x26e841(0x59d)](_0x539adc),this[_0x26e841(0x333)]['subscribeEvent'](()=>this[_0x26e841(0x59d)]({'hovered':!0x0})),this[_0x26e841(0x4bd)][_0x26e841(0x1d9)](()=>this[_0x26e841(0x59d)]({'hovered':!0x1})));}[_0x4aaaf0(0x59d)](_0xd91d65){const _0x3c199d=_0x4aaaf0;var _0x129dae,_0x1ecf53,_0x4a5ec7,_0x1f79d4,_0x279595,_0xf5d7d;this[_0x3c199d(0x5a3)]=(_0x129dae=_0xd91d65['color'])!=null?_0x129dae:this['_color'],this['_hovered']=(_0x1ecf53=_0xd91d65[_0x3c199d(0x5b1)])!=null?_0x1ecf53:this[_0x3c199d(0x47f)],this[_0x3c199d(0x52b)]=(_0x4a5ec7=_0xd91d65[_0x3c199d(0x325)])!=null?_0x4a5ec7:this[_0x3c199d(0x52b)],this[_0x3c199d(0x248)]=(_0x1f79d4=_0xd91d65[_0x3c199d(0x2b1)])!=null?_0x1f79d4:this['_name'],this['_labelPosition']=(_0x279595=_0xd91d65[_0x3c199d(0x455)])!=null?_0x279595:this[_0x3c199d(0x2d0)],this[_0x3c199d(0x228)]=(_0xf5d7d=_0xd91d65[_0x3c199d(0x55b)])!=null?_0xf5d7d:this['_backgroundColor'],this['transformByState']({'width':_0xd91d65['width'],'height':_0xd91d65[_0x3c199d(0x1ac)]});}[_0x4aaaf0(0x1fc)](_0x1c30fa){const _0xbe5578=_0x4aaaf0,{row:_0xc66ad0,column:_0x30d818}=_0x1c30fa;if(_0xc66ad0>=this[_0xbe5578(0x52b)][_0xbe5578(0x453)]&&_0xc66ad0<=this[_0xbe5578(0x52b)][_0xbe5578(0x533)]&&_0x30d818>=this['_range'][_0xbe5578(0x531)]&&_0x30d818<=this[_0xbe5578(0x52b)][_0xbe5578(0x1c3)]){this[_0xbe5578(0x59d)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x525cc3){return!0x1;}[_0x4aaaf0(0x392)](_0x5219b6){const _0x26b47c=_0x4aaaf0;O[_0x26b47c(0x35a)]['drawWith'](_0x5219b6,{'width':this[_0x26b47c(0x43a)],'height':this['height'],'strokeWidth':Ti,'stroke':this[_0x26b47c(0x5a3)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x26b47c(0x47f)]&&(_0x5219b6[_0x26b47c(0x4e7)](),_0x5219b6[_0x26b47c(0x343)](0x1,0x0,0x0,0x1,this[_0x26b47c(0x43a)],this[_0x26b47c(0x2d0)]==='bottom'?0x0:-de),Oe['drawWith'](_0x5219b6,{'text':this['_name'],'color':this[_0x26b47c(0x5a3)]}),_0x5219b6[_0x26b47c(0x327)]());}}var Ri=Object['defineProperty'],Oi=Object[_0x4aaaf0(0x28b)],Di=(_0x451d84,_0x1b028f,_0x247994,_0x330b32)=>{const _0x26409e=_0x4aaaf0;for(var _0x15a71d=_0x330b32>0x1?void 0x0:_0x330b32?Oi(_0x1b028f,_0x247994):_0x1b028f,_0x167857=_0x451d84[_0x26409e(0x31a)]-0x1,_0xbc9100;_0x167857>=0x0;_0x167857--)(_0xbc9100=_0x451d84[_0x167857])&&(_0x15a71d=(_0x330b32?_0xbc9100(_0x1b028f,_0x247994,_0x15a71d):_0xbc9100(_0x15a71d))||_0x15a71d);return _0x330b32&&_0x15a71d&&Ri(_0x1b028f,_0x247994,_0x15a71d),_0x15a71d;},$e=(_0x41526a,_0x37a82b)=>(_0xdc9cb8,_0x1a676f)=>_0x37a82b(_0xdc9cb8,_0x1a676f,_0x41526a);const yi=0x1389;let Ve=class extends a[_0x4aaaf0(0x275)]{constructor(_0x469d94,_0xa943c8,_0x27bcf0,_0xdb710a){const _0x405355=_0x4aaaf0;super(),u(this,_0x405355(0x301),new Set()),u(this,_0x405355(0x1fb),null),(this[_0x405355(0x4e2)]=_0x469d94,this[_0x405355(0x582)]=_0xa943c8,this[_0x405355(0x58d)]=_0x27bcf0,this['_themeService']=_0xdb710a,this[_0x405355(0x33d)]());}[_0x4aaaf0(0x33d)](){const _0x5ef63c=_0x4aaaf0;this[_0x5ef63c(0x582)][_0x5ef63c(0x5c9)][_0x5ef63c(0x2b0)](E[_0x5ef63c(0x4b2)](this['dispose$']),E['switchMap'](_0x7a213f=>{const _0x382508=_0x5ef63c;if(_0x7a213f){const _0x2235f2=_0x7a213f[_0x382508(0x52d)];return v[_0x382508(0x1b4)](this[_0x382508(0x58d)][_0x382508(0x355)](this[_0x382508(0x4e2)][_0x382508(0x22c)]),this[_0x382508(0x330)][_0x382508(0x54e)])[_0x382508(0x2b0)](E['map'](([_0x2b263a,_0x495b2d])=>{const _0xac5677=_0x382508,_0x8cc173=new Map();return _0x2b263a[_0xac5677(0x1d6)]((_0x1d1913,_0x5f5df2)=>{const _0x17238f=_0xac5677;if(_0x1d1913[_0x17238f(0x388)]===_0x2235f2){const _0x47e1f2={..._0x1d1913};_0x47e1f2[_0x17238f(0x3b4)]=_0x495b2d[_0x1d1913[_0x17238f(0x3b4)]],_0x8cc173[_0x17238f(0x4af)](_0x5f5df2,_0x47e1f2);}}),{'skeleton':_0x7a213f,'cursors':_0x8cc173};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x5ef63c(0x236)](({skeleton:_0x46d718,cursors:_0x1953ed})=>{const _0x59d41e=_0x5ef63c;this[_0x59d41e(0x468)](),_0x46d718&&this['_updateCollabCursors'](_0x46d718,_0x1953ed);}),this[_0x5ef63c(0x582)][_0x5ef63c(0x5c9)][_0x5ef63c(0x236)](_0x1e423c=>{const _0x4c40bc=_0x5ef63c;if(_0x1e423c==null)return;const {skeleton:_0x4a67b2}=_0x1e423c,{scene:_0x336c47}=this['_context'];_0x336c47['onPointerMove$']['subscribeEvent'](a[_0x4c40bc(0x54d)](_0x2dfd2a=>{const _0x2e871c=_0x4c40bc;var _0x213347,_0x57e16a;const {offsetX:_0x980b7a,offsetY:_0x347dbf}=_0x2dfd2a,{x:_0xd8a146,y:_0x3857bb}=_0x336c47[_0x2e871c(0x5ad)](O[_0x2e871c(0x473)]['FromArray']([_0x980b7a,_0x347dbf])),{scaleX:_0x3fa620,scaleY:_0x4e05c0}=_0x336c47[_0x2e871c(0x1de)](),_0x4bea6a=_0x336c47['getViewport'](ie['VIEWPORT_KEY'][_0x2e871c(0x1b8)]),_0x1cd3e1=_0x336c47[_0x2e871c(0x27c)](O[_0x2e871c(0x473)]['FromArray']([_0xd8a146,_0x3857bb]),_0x4bea6a),_0x174d93=_0x4a67b2['getCellPositionByOffset'](_0x980b7a,_0x347dbf,_0x3fa620,_0x4e05c0,_0x1cd3e1);((_0x213347=this[_0x2e871c(0x1fb)])==null?void 0x0:_0x213347[_0x2e871c(0x2f2)])===_0x174d93['column']&&((_0x57e16a=this[_0x2e871c(0x1fb)])==null?void 0x0:_0x57e16a[_0x2e871c(0x1db)])===_0x174d93[_0x2e871c(0x1db)]||this[_0x2e871c(0x301)][_0x2e871c(0x1d6)](_0x187b09=>{const _0x473209=_0x2e871c;_0x187b09[_0x473209(0x1fc)](_0x174d93);});},0x64));});}[_0x4aaaf0(0x55e)](_0x55374e,_0x31dc3e){const _0x351e0c=_0x4aaaf0;var _0xc0aae2;const _0x2f4ca5=(_0xc0aae2=this['_sheetSkeletonManagerService'][_0x351e0c(0x57a)]())==null?void 0x0:_0xc0aae2[_0x351e0c(0x43b)];if(!_0x2f4ca5)return;const _0x2a318f=this[_0x351e0c(0x1e8)]();if(!_0x2a318f)return;this[_0x351e0c(0x301)]['forEach'](_0x43f7a4=>{const _0x1d0559=_0x351e0c;_0x43f7a4[_0x1d0559(0x3fc)]();});const {scene:_0x445288}=_0x2a318f,_0x1e672f=Ui(Array[_0x351e0c(0x36c)](_0x31dc3e[_0x351e0c(0x4ca)]()))['map'](_0x516f29=>{const _0x4ed9b3=_0x351e0c,{color:_0x17fbcc,range:_0x1d79c7,name:_0x20f6d0,selection:_0x4b1c28,sheetID:_0x42e40e}=_0x516f29,{startColumn:_0x21c32d,startRow:_0x26978f,endColumn:_0x4c87fe,endRow:_0x4b5cef}=_0x1d79c7,_0x1355b0=ie[_0x4ed9b3(0x1c0)](_0x26978f,_0x21c32d,_0x445288,_0x2f4ca5),_0x8bf623=ie[_0x4ed9b3(0x1c0)](_0x4b5cef,_0x4c87fe,_0x445288,_0x2f4ca5),{columnHeaderHeightAndMarginTop:_0x12596b}=_0x2f4ca5,{startX:_0x3409ca,startY:_0x1df6a5}=_0x1355b0,{endX:_0x1d5cf0,endY:_0x58833f}=_0x8bf623,_0xc88b0=_0x1d5cf0-_0x3409ca,_0x18bc2f=_0x58833f-_0x1df6a5,_0x5d8751={'labelPosition':_0x1df6a5-_0x12596b>=de?_0x4ed9b3(0x314):'bottom','sheetID':_0x42e40e,'range':_0x1d79c7,'color':_0x17fbcc,'name':_0x20f6d0,'selection':_0x4b1c28,'left':_0x3409ca,'top':_0x1df6a5,'width':_0xc88b0,'height':_0x18bc2f,'evented':!0x1,'zIndex':yi};return new wt(_0x20f6d0,_0x5d8751);});_0x445288['addObjects'](_0x1e672f,bi),this[_0x351e0c(0x301)]=new Set(_0x1e672f);}[_0x4aaaf0(0x468)](){const _0x14340d=_0x4aaaf0;var _0x36b2d1;(_0x36b2d1=this[_0x14340d(0x301)])==null||_0x36b2d1['forEach'](_0x2859fc=>_0x2859fc[_0x14340d(0x342)]());}[_0x4aaaf0(0x1e8)](){const _0x4349a2=_0x4aaaf0;return ie[_0x4349a2(0x379)](this['_context'][_0x4349a2(0x532)],this['_context']);}};Ve=Di([$e(0x1,a[_0x4aaaf0(0x1b2)](ie[_0x4aaaf0(0x449)])),$e(0x2,a[_0x4aaaf0(0x1b2)](oe)),$e(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x1c2)]))],Ve);function Ui(_0xf6fc47){const _0x329c2f=_0x4aaaf0,_0x12db33=new Map();return _0xf6fc47[_0x329c2f(0x1d6)](_0x3a2495=>{const _0x518a5f=_0x329c2f;if(_0x12db33[_0x518a5f(0x2cc)](_0x3a2495[_0x518a5f(0x4ef)])){const _0x526e9b=_0x12db33[_0x518a5f(0x439)](_0x3a2495['selection']);_0x526e9b[_0x518a5f(0x2b1)]+=',\x20'+_0x3a2495['name'];}else _0x12db33[_0x518a5f(0x4af)](_0x3a2495[_0x518a5f(0x4ef)],_0x3a2495);}),Array[_0x329c2f(0x36c)](_0x12db33['values']());}var M=function(){const _0x65fd5d=_0x4aaaf0;return M=Object[_0x65fd5d(0x4ea)]||function(_0xb24d0c){const _0x2fb3bf=_0x65fd5d;for(var _0x2e77be,_0x38fe4d=0x1,_0x2ca08c=arguments['length'];_0x38fe4d<_0x2ca08c;_0x38fe4d++){_0x2e77be=arguments[_0x38fe4d];for(var _0x5d34c4 in _0x2e77be)Object['prototype'][_0x2fb3bf(0x519)][_0x2fb3bf(0x48a)](_0x2e77be,_0x5d34c4)&&(_0xb24d0c[_0x5d34c4]=_0x2e77be[_0x5d34c4]);}return _0xb24d0c;},M[_0x65fd5d(0x461)](this,arguments);},Pi=function(_0x192510,_0x52065a){const _0x4d6f31=_0x4aaaf0;var _0x4def9a={};for(var _0x9fda7 in _0x192510)Object['prototype'][_0x4d6f31(0x519)][_0x4d6f31(0x48a)](_0x192510,_0x9fda7)&&_0x52065a[_0x4d6f31(0x501)](_0x9fda7)<0x0&&(_0x4def9a[_0x9fda7]=_0x192510[_0x9fda7]);if(_0x192510!=null&&typeof Object[_0x4d6f31(0x391)]==_0x4d6f31(0x280)){for(var _0x208b1b=0x0,_0x9fda7=Object[_0x4d6f31(0x391)](_0x192510);_0x208b1b<_0x9fda7['length'];_0x208b1b++)_0x52065a[_0x4d6f31(0x501)](_0x9fda7[_0x208b1b])<0x0&&Object[_0x4d6f31(0x38f)][_0x4d6f31(0x513)][_0x4d6f31(0x48a)](_0x192510,_0x9fda7[_0x208b1b])&&(_0x4def9a[_0x9fda7[_0x208b1b]]=_0x192510[_0x9fda7[_0x208b1b]]);}return _0x4def9a;},Je=y[_0x4aaaf0(0x4db)](function(_0x2658e6,_0x572e4){const _0x5d9b59=_0x4aaaf0;var _0x384bc0=_0x2658e6[_0x5d9b59(0x36b)],_0x12b784=_0x2658e6['id'],_0x1c6ca1=_0x2658e6[_0x5d9b59(0x382)],_0x2598de=_0x2658e6[_0x5d9b59(0x4e4)],_0x459e00=Pi(_0x2658e6,[_0x5d9b59(0x36b),'id','className','extend']),_0x51a60d='univerjs-icon\x20univerjs-icon-'[_0x5d9b59(0x328)](_0x12b784,'\x20')[_0x5d9b59(0x328)](_0x1c6ca1||'')['trim'](),_0x25c5d5=y[_0x5d9b59(0x2c7)]('_'[_0x5d9b59(0x328)](Mi()));return Nt(_0x384bc0,''[_0x5d9b59(0x328)](_0x12b784),{'defIds':_0x384bc0[_0x5d9b59(0x526)],'idSuffix':_0x25c5d5[_0x5d9b59(0x204)]},M({'ref':_0x572e4,'className':_0x51a60d},_0x459e00),_0x2598de);});function Nt(_0x399c50,_0x47f8e7,_0x276987,_0xbbbb30,_0x403ceb){const _0x3c4cf5=_0x4aaaf0;return y[_0x3c4cf5(0x3e0)](_0x399c50[_0x3c4cf5(0x1e7)],M(M({'key':_0x47f8e7},wi(_0x399c50,_0x276987,_0x403ceb)),_0xbbbb30),(Ni(_0x399c50,_0x276987)[_0x3c4cf5(0x59c)]||[])[_0x3c4cf5(0x263)](function(_0x3a41f0,_0x23f43c){const _0x291fff=_0x3c4cf5;return Nt(_0x3a41f0,''[_0x291fff(0x328)](_0x47f8e7,'-')['concat'](_0x399c50[_0x291fff(0x1e7)],'-')[_0x291fff(0x328)](_0x23f43c),_0x276987,void 0x0,_0x403ceb);}));}function wi(_0x468e52,_0x25ec27,_0x21bc05){const _0x4323b9=_0x4aaaf0;var _0x4dbbf0=M({},_0x468e52[_0x4323b9(0x3d9)]);_0x21bc05!=null&&_0x21bc05[_0x4323b9(0x205)]&&_0x4dbbf0[_0x4323b9(0x444)]==='colorChannel1'&&(_0x4dbbf0[_0x4323b9(0x444)]=_0x21bc05[_0x4323b9(0x205)]);var _0x431667=_0x25ec27[_0x4323b9(0x526)];return!_0x431667||_0x431667[_0x4323b9(0x31a)]===0x0||(_0x468e52['tag']===_0x4323b9(0x21c)&&_0x4dbbf0[_0x4323b9(0x56f)]&&(_0x4dbbf0['xlink:href']=_0x4dbbf0['xlink:href']+_0x25ec27[_0x4323b9(0x462)]),Object[_0x4323b9(0x1af)](_0x4dbbf0)[_0x4323b9(0x1d6)](function(_0x3e3dac){const _0x58a58c=_0x4323b9;var _0x535cec=_0x3e3dac[0x0],_0x2e8d6d=_0x3e3dac[0x1];typeof _0x2e8d6d==_0x58a58c(0x31c)&&(_0x4dbbf0[_0x535cec]=_0x2e8d6d[_0x58a58c(0x32c)](/url\(#(.*)\)/,_0x58a58c(0x27e)['concat'](_0x25ec27['idSuffix'],')')));})),_0x4dbbf0;}function Ni(_0xdaeef2,_0x4e7ba2){const _0xf863e0=_0x4aaaf0;var _0x27aec5,_0x440372=_0x4e7ba2[_0xf863e0(0x526)];return!_0x440372||_0x440372['length']===0x0?_0xdaeef2:_0xdaeef2['tag']==='defs'&&(!((_0x27aec5=_0xdaeef2[_0xf863e0(0x59c)])===null||_0x27aec5===void 0x0)&&_0x27aec5[_0xf863e0(0x31a)])?M(M({},_0xdaeef2),{'children':_0xdaeef2[_0xf863e0(0x59c)]['map'](function(_0xb7fe99){const _0x3b1d87=_0xf863e0;return typeof _0xb7fe99['attrs']['id']==_0x3b1d87(0x31c)&&_0x440372&&_0x440372[_0x3b1d87(0x501)](_0xb7fe99[_0x3b1d87(0x3d9)]['id'])>-0x1?M(M({},_0xb7fe99),{'attrs':M(M({},_0xb7fe99[_0x3b1d87(0x3d9)]),{'id':_0xb7fe99['attrs']['id']+_0x4e7ba2[_0x3b1d87(0x462)]})}):_0xb7fe99;})}):_0xdaeef2;}function Mi(){const _0x35ce3b=_0x4aaaf0;return Math['random']()[_0x35ce3b(0x222)](0x24)[_0x35ce3b(0x2dc)](0x2,0x8);}Je['displayName']='UniverIcon';var Ai={'tag':_0x4aaaf0(0x218),'attrs':{'fill':_0x4aaaf0(0x32e),'viewBox':_0x4aaaf0(0x564),'width':'1em','height':_0x4aaaf0(0x27f)},'children':[{'tag':'g','attrs':{'clipPath':_0x4aaaf0(0x227)},'children':[{'tag':'path','attrs':{'stroke':_0x4aaaf0(0x26e),'d':_0x4aaaf0(0x1cc),'strokeLinecap':'round','strokeLinejoin':_0x4aaaf0(0x2a4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4aaaf0(0x210),'attrs':{'id':_0x4aaaf0(0x332)},'children':[{'tag':_0x4aaaf0(0x1c5),'attrs':{'fill':_0x4aaaf0(0x223),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Mt=y[_0x4aaaf0(0x4db)](function(_0x530c8a,_0x2efe2a){const _0x40b776=_0x4aaaf0;return y[_0x40b776(0x3e0)](Je,Object[_0x40b776(0x4ea)]({},_0x530c8a,{'id':_0x40b776(0x3f2),'ref':_0x2efe2a,'icon':Ai}));});Mt['displayName']=_0x4aaaf0(0x35e);var Li={'tag':_0x4aaaf0(0x218),'attrs':{'fill':'none','viewBox':_0x4aaaf0(0x5bd),'width':_0x4aaaf0(0x27f),'height':_0x4aaaf0(0x27f)},'children':[{'tag':'g','attrs':{'clipPath':_0x4aaaf0(0x3f0)},'children':[{'tag':_0x4aaaf0(0x1c5),'attrs':{'stroke':_0x4aaaf0(0x26e),'d':_0x4aaaf0(0x495),'strokeLinecap':_0x4aaaf0(0x2a4),'strokeLinejoin':_0x4aaaf0(0x2a4),'strokeWidth':1.2}}]},{'tag':_0x4aaaf0(0x20b),'attrs':{},'children':[{'tag':_0x4aaaf0(0x210),'attrs':{'id':_0x4aaaf0(0x321)},'children':[{'tag':'path','attrs':{'fill':_0x4aaaf0(0x223),'d':'M0\x200H16V16H0z','transform':_0x4aaaf0(0x37e)}}]}]}],'defIds':[_0x4aaaf0(0x321)]},At=y[_0x4aaaf0(0x4db)](function(_0x390bea,_0x1d73b9){const _0x5f13bf=_0x4aaaf0;return y[_0x5f13bf(0x3e0)](Je,Object[_0x5f13bf(0x4ea)]({},_0x390bea,{'id':_0x5f13bf(0x493),'ref':_0x1d73b9,'icon':Li}));});At['displayName']=_0x4aaaf0(0x2aa);function Lt(_0x4d3130){const _0xbbaa15=_0x4aaaf0;var _0x213caa,_0x40a33e,_0x46e80c='';if(typeof _0x4d3130=='string'||typeof _0x4d3130==_0xbbaa15(0x5a6))_0x46e80c+=_0x4d3130;else{if(typeof _0x4d3130=='object'){if(Array[_0xbbaa15(0x27b)](_0x4d3130)){var _0x2f295c=_0x4d3130[_0xbbaa15(0x31a)];for(_0x213caa=0x0;_0x213caa<_0x2f295c;_0x213caa++)_0x4d3130[_0x213caa]&&(_0x40a33e=Lt(_0x4d3130[_0x213caa]))&&(_0x46e80c&&(_0x46e80c+='\x20'),_0x46e80c+=_0x40a33e);}else{for(_0x40a33e in _0x4d3130)_0x4d3130[_0x40a33e]&&(_0x46e80c&&(_0x46e80c+='\x20'),_0x46e80c+=_0x40a33e);}}}return _0x46e80c;}function $i(){const _0xf87e3a=_0x4aaaf0;for(var _0x15fa10,_0x2a9867,_0x4e1c0c=0x0,_0x53b4df='',_0x3f19f1=arguments[_0xf87e3a(0x31a)];_0x4e1c0c<_0x3f19f1;_0x4e1c0c++)(_0x15fa10=arguments[_0x4e1c0c])&&(_0x2a9867=Lt(_0x15fa10))&&(_0x53b4df&&(_0x53b4df+='\x20'),_0x53b4df+=_0x2a9867);return _0x53b4df;}const ji=_0x4aaaf0(0x5a9),Hi='univer-online-status-title',xi=_0x4aaaf0(0x500),ki='univer-online',Bi=_0x4aaaf0(0x47a),he={'onlineStatusIcon':ji,'onlineStatusTitle':Hi,'onlineStatus':xi,'online':ki,'offline':Bi};function Vi(_0xb922d2){const _0x4c41d5=_0x4aaaf0;switch(_0xb922d2){case D[_0x4c41d5(0x270)]:return'collabStatus.offline';case D[_0x4c41d5(0x572)]:return'collabStatus.conflict';case D['FETCH_MISS']:return _0x4c41d5(0x40c);case D[_0x4c41d5(0x251)]:return _0x4c41d5(0x3d2);case D[_0x4c41d5(0x261)]:case D['AWAITING_WITH_PENDING']:return _0x4c41d5(0x1ae);case D[_0x4c41d5(0x2a1)]:case D['PENDING']:return _0x4c41d5(0x23a);}}function $t(_0x1114c6){const _0x4273a6=_0x4aaaf0,{status$:_0x419e63}=_0x1114c6,_0x3d3481=A[_0x4273a6(0x5da)](_0x419e63,D[_0x4273a6(0x251)]),_0x52f51e=a['useDependency'](a['LocaleService']),_0x109761=a['useDependency'](exports[_0x4273a6(0x48f)]),_0x338d37=_0x3d3481!==D[_0x4273a6(0x270)],_0x216150=_0x52f51e['t'](Vi(_0x3d3481)),_0x23c249=$i(he[_0x4273a6(0x446)],{[he[_0x4273a6(0x320)]]:_0x338d37,[he[_0x4273a6(0x45a)]]:!_0x338d37}),_0x49354b=_0x338d37?y[_0x4273a6(0x3e0)](At,null):y['createElement'](Mt,null),_0x1864f6=y[_0x4273a6(0x48e)](()=>{const _0x477a2e=_0x4273a6;_0x338d37||_0x109761[_0x477a2e(0x22a)]();},[_0x338d37,_0x109761]);function _0x52eb88(){const _0x37bdf0=_0x4273a6;return y[_0x37bdf0(0x3e0)]('div',{'className':_0x23c249,'onClick':_0x1864f6},y['createElement']('div',{'className':he[_0x37bdf0(0x5a4)]},_0x49354b),y[_0x37bdf0(0x3e0)]('div',{'className':he['onlineStatusTitle']},_0x216150));}return _0x338d37?_0x52eb88():y[_0x4273a6(0x3e0)](J['Tooltip'],{'title':_0x52f51e['t']('collab-client.tooltip.reconnect')},_0x52eb88());}var Wi=Object['defineProperty'],Fi=Object[_0x4aaaf0(0x28b)],Gi=(_0x37f3d3,_0x298e4c,_0x3f080e,_0xbb574d)=>{const _0x3fa287=_0x4aaaf0;for(var _0xd2d701=_0xbb574d>0x1?void 0x0:_0xbb574d?Fi(_0x298e4c,_0x3f080e):_0x298e4c,_0x178faa=_0x37f3d3[_0x3fa287(0x31a)]-0x1,_0x4c7404;_0x178faa>=0x0;_0x178faa--)(_0x4c7404=_0x37f3d3[_0x178faa])&&(_0xd2d701=(_0xbb574d?_0x4c7404(_0x298e4c,_0x3f080e,_0xd2d701):_0x4c7404(_0xd2d701))||_0xd2d701);return _0xbb574d&&_0xd2d701&&Wi(_0x298e4c,_0x3f080e,_0xd2d701),_0xd2d701;},me=(_0x3e1149,_0x102235)=>(_0x21ec34,_0x549125)=>_0x102235(_0x21ec34,_0x549125,_0x3e1149);exports[_0x4aaaf0(0x1e2)]=class extends a['Disposable']{constructor(_0x5341a5,_0x5af320,_0x451944,_0x487f88){const _0x3b4ea8=_0x4aaaf0;super(),u(this,_0x3b4ea8(0x5af),new v[(_0x3b4ea8(0x442))](D['NOT_COLLAB'])),(this[_0x3b4ea8(0x46d)]=_0x5341a5,this[_0x3b4ea8(0x514)]=_0x5af320,this['_injector']=_0x451944,this[_0x3b4ea8(0x472)]=_0x487f88,this[_0x3b4ea8(0x1f7)](),this[_0x3b4ea8(0x51f)]());}[_0x4aaaf0(0x51f)](){const _0x47eef8=_0x4aaaf0;this[_0x47eef8(0x367)](this[_0x47eef8(0x46d)][_0x47eef8(0x491)][_0x47eef8(0x2b0)](v[_0x47eef8(0x3e7)](()=>{const _0x4986ac=_0x47eef8,_0x1d4e94=this[_0x4986ac(0x46d)][_0x4986ac(0x4e3)]();return _0x1d4e94?this[_0x4986ac(0x472)]['getCollabEntity$'](_0x1d4e94['getUnitId']()):v['of'](null);}),v[_0x47eef8(0x3e7)](_0x5b141c=>_0x5b141c?_0x5b141c['status$']:v['of'](D[_0x47eef8(0x251)])))['subscribe'](_0x3a60b2=>{const _0x6229a9=_0x47eef8;this[_0x6229a9(0x5af)][_0x6229a9(0x3b3)](_0x3a60b2);}));}[_0x4aaaf0(0x1f7)](){const _0x5611c1=_0x4aaaf0;this[_0x5611c1(0x367)](this[_0x5611c1(0x514)]['registerComponent'](A[_0x5611c1(0x524)][_0x5611c1(0x4c9)],()=>a[_0x5611c1(0x3f7)](Yi({'status$':this[_0x5611c1(0x5af)][_0x5611c1(0x2a7)]()}),this[_0x5611c1(0x5aa)])));}},exports[_0x4aaaf0(0x1e2)]=Gi([me(0x0,a['IUniverInstanceService']),me(0x1,A[_0x4aaaf0(0x46a)]),me(0x2,a[_0x4aaaf0(0x1b2)](a['Injector'])),me(0x3,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x265)]))],exports['DesktopCollaborationStatusDisplayController']);function Yi(_0x50206e){const {status$:_0x516af8}=_0x50206e;return function(){const _0x10d140=_0x47ba;return y[_0x10d140(0x3e0)]($t,{'status$':_0x516af8});};}const Ze=a['createIdentifier'](_0x4aaaf0(0x340));var Ki=Object[_0x4aaaf0(0x562)],Xi=Object[_0x4aaaf0(0x28b)],qi=(_0x318fdb,_0x54448a,_0x7ec55a,_0x11d511)=>{const _0x23f796=_0x4aaaf0;for(var _0x2ca9ff=_0x11d511>0x1?void 0x0:_0x11d511?Xi(_0x54448a,_0x7ec55a):_0x54448a,_0x59c9c2=_0x318fdb[_0x23f796(0x31a)]-0x1,_0x5e0cf0;_0x59c9c2>=0x0;_0x59c9c2--)(_0x5e0cf0=_0x318fdb[_0x59c9c2])&&(_0x2ca9ff=(_0x11d511?_0x5e0cf0(_0x54448a,_0x7ec55a,_0x2ca9ff):_0x5e0cf0(_0x2ca9ff))||_0x2ca9ff);return _0x11d511&&_0x2ca9ff&&Ki(_0x54448a,_0x7ec55a,_0x2ca9ff),_0x2ca9ff;},se=(_0x12a245,_0x31eb65)=>(_0x5dbb97,_0x556cf9)=>_0x31eb65(_0x5dbb97,_0x556cf9,_0x12a245);exports[_0x4aaaf0(0x295)]=class extends a[_0x4aaaf0(0x275)]{constructor(_0x2eeda9,_0xb66de5,_0x3b94c8,_0x39be7e,_0x2a21a0,_0x465386){const _0x31f0e3=_0x4aaaf0;super(),this['_urlService']=_0x2eeda9,this['_logService']=_0xb66de5,this[_0x31f0e3(0x310)]=_0x3b94c8,this[_0x31f0e3(0x4e9)]=_0x39be7e,this[_0x31f0e3(0x575)]=_0x2a21a0,_0x465386?_0x465386==null||_0x465386['whenReady']()[_0x31f0e3(0x254)](()=>this[_0x31f0e3(0x33d)]()):(this[_0x31f0e3(0x360)][_0x31f0e3(0x43f)](_0x31f0e3(0x2de),_0x31f0e3(0x23d)),this[_0x31f0e3(0x33d)]());}async[_0x4aaaf0(0x33d)](){const _0x518475=_0x4aaaf0,_0x885f8=this[_0x518475(0x470)][_0x518475(0x5a1)](_0x518475(0x532)),_0xe55d48=this[_0x518475(0x470)]['getParam'](_0x518475(0x4aa));if(!_0x885f8||!_0xe55d48){this[_0x518475(0x360)][_0x518475(0x43f)](_0x518475(0x2de),_0x518475(0x400));return;}switch(Number(_0xe55d48)){case H[_0x518475(0x4d0)]:{const _0x36b83c=await this[_0x518475(0x2c1)](_0x885f8);this['_setupSubUnitSync'](_0x36b83c);break;}case H[_0x518475(0x238)]:{await this[_0x518475(0x482)](_0x885f8);break;}default:{this[_0x518475(0x360)]['error'](_0x518475(0x2de),_0x518475(0x583));break;}}}async[_0x4aaaf0(0x59b)](_0x4f2e09){const _0x3556fd=_0x4aaaf0;await this['_updateSubUnitFromURLParams'](_0x4f2e09),_0x4f2e09['activeSheet$'][_0x3556fd(0x2b0)](v[_0x3556fd(0x4b2)](this[_0x3556fd(0x35d)]))[_0x3556fd(0x236)](_0x4a2e90=>{const _0x15122f=_0x3556fd;_0x4a2e90&&this[_0x15122f(0x485)](_0x4a2e90);}),this['_urlService'][_0x3556fd(0x3ab)]['pipe'](v[_0x3556fd(0x4b2)](this[_0x3556fd(0x35d)]))[_0x3556fd(0x236)](()=>this[_0x3556fd(0x49a)](_0x4f2e09));}[_0x4aaaf0(0x485)](_0x573f2d,_0x282b95=!0x1){const _0xd1c308=_0x4aaaf0,_0x1ba5b7=this[_0xd1c308(0x470)][_0xd1c308(0x5a1)](_0xd1c308(0x4d6));_0x573f2d[_0xd1c308(0x271)]()!==_0x1ba5b7&&this[_0xd1c308(0x470)][_0xd1c308(0x359)](_0xd1c308(0x4d6),_0x573f2d['getSheetId'](),_0x282b95);}async[_0x4aaaf0(0x49a)](_0x56b545){const _0x582830=_0x4aaaf0;var _0x245ddc;const _0x32612c=this['_urlService'][_0x582830(0x5a1)](_0x582830(0x4d6));if(!_0x32612c||!_0x56b545[_0x582830(0x5be)](_0x32612c)){const _0x2391a8=_0x56b545['getUnhiddenWorksheets']()[0x0],_0x4f9858=_0x56b545[_0x582830(0x5be)](_0x2391a8);if(!_0x4f9858)return;this[_0x582830(0x485)](_0x4f9858,!0x0),await this[_0x582830(0x310)]['executeCommand'](C[_0x582830(0x4dd)]['id'],{'unitId':_0x56b545[_0x582830(0x3e2)](),'subUnitId':_0x2391a8});return;}((_0x245ddc=_0x56b545[_0x582830(0x372)]())==null?void 0x0:_0x245ddc[_0x582830(0x271)]())!==_0x32612c&&await this['_commandService'][_0x582830(0x593)](C[_0x582830(0x4dd)]['id'],{'unitId':_0x56b545[_0x582830(0x3e2)](),'subUnitId':_0x32612c});}async['_loadSheet'](_0x950a56){const _0x44651c=_0x4aaaf0;let _0x2ae914=0x0;const _0x315ffe=await this[_0x44651c(0x4e9)][_0x44651c(0x436)](_0x950a56);return _0x315ffe&&(_0x315ffe[_0x44651c(0x1cd)]||_0x315ffe['mutations'][_0x44651c(0x31a)]!==0x0)&&(_0x2ae914=_0x315ffe[_0x44651c(0x2f7)]),_0x2ae914===0x0&&this['_logService'][_0x44651c(0x43f)]('[DataLoaderController]',_0x44651c(0x561)),this['_snapshotService'][_0x44651c(0x28c)](_0x950a56,_0x2ae914);}async[_0x4aaaf0(0x482)](_0x376e76){const _0x3558c6=_0x4aaaf0;let _0x2a98e4=0x0;const _0x127249=await this[_0x3558c6(0x4e9)][_0x3558c6(0x436)](_0x376e76);return _0x127249&&(_0x127249['awaitingChangeset']||_0x127249[_0x3558c6(0x2b7)][_0x3558c6(0x31a)]!==0x0)&&(_0x2a98e4=_0x127249['rev']),_0x2a98e4===0x0&&this[_0x3558c6(0x360)][_0x3558c6(0x43f)]('[DataLoaderController]',_0x3558c6(0x561)),this[_0x3558c6(0x575)][_0x3558c6(0x4c6)](_0x376e76,_0x2a98e4);}},exports[_0x4aaaf0(0x295)]=qi([se(0x0,Ze),se(0x1,a[_0x4aaaf0(0x1d1)]),se(0x2,a['ICommandService']),se(0x3,a[_0x4aaaf0(0x1b2)](exports[_0x4aaaf0(0x49c)])),se(0x4,a['Inject'](_[_0x4aaaf0(0x3ed)])),se(0x5,a['Optional'](Xt['IRemoteInstanceService']))],exports[_0x4aaaf0(0x295)]);var zi=Object[_0x4aaaf0(0x562)],Ji=Object['getOwnPropertyDescriptor'],Zi=(_0x42183b,_0x61c70b,_0x45ec25,_0x180876)=>{const _0x5a382e=_0x4aaaf0;for(var _0x15f65e=_0x180876>0x1?void 0x0:_0x180876?Ji(_0x61c70b,_0x45ec25):_0x61c70b,_0x470215=_0x42183b[_0x5a382e(0x31a)]-0x1,_0x10443b;_0x470215>=0x0;_0x470215--)(_0x10443b=_0x42183b[_0x470215])&&(_0x15f65e=(_0x180876?_0x10443b(_0x61c70b,_0x45ec25,_0x15f65e):_0x10443b(_0x15f65e))||_0x15f65e);return _0x180876&&_0x15f65e&&zi(_0x61c70b,_0x45ec25,_0x15f65e),_0x15f65e;},ht=(_0x2a7d2a,_0x413027)=>(_0x342f51,_0x5433f7)=>_0x413027(_0x342f51,_0x5433f7,_0x2a7d2a);const Qi='DEFAULT_FILE_NAME',en=_0x4aaaf0(0x3d3);let Ce=class extends a[_0x4aaaf0(0x3ef)]{constructor(_0x1868f5,_0x44e8cd){const _0xfed1c7=_0x4aaaf0;super(),this[_0xfed1c7(0x46d)]=_0x1868f5,this[_0xfed1c7(0x428)]=_0x44e8cd,this['_init']();}[_0x4aaaf0(0x33d)](){const _0x877c4f=_0x4aaaf0;this['disposeWithMe'](this[_0x877c4f(0x46d)]['focused$'][_0x877c4f(0x236)](()=>{const _0x3d6b7e=_0x877c4f;var _0x415435;const _0x5ae94a=this[_0x3d6b7e(0x46d)]['getFocusedUnit']();let _0x3ae003=(_0x415435=this['_configService'][_0x3d6b7e(0x50b)](Qi))!=null?_0x415435:en;_0x5ae94a instanceof a['Workbook']&&(_0x3ae003=_0x5ae94a[_0x3d6b7e(0x2b1)]),document[_0x3d6b7e(0x5c8)]=_0x3ae003;}));}};Ce=Zi([ht(0x0,a[_0x4aaaf0(0x33f)]),ht(0x1,a[_0x4aaaf0(0x565)])],Ce);var tn=Object['defineProperty'],sn=Object[_0x4aaaf0(0x28b)],nn=(_0x25483d,_0xf0108,_0x17806e,_0x5a6e7f)=>{const _0x3aa12c=_0x4aaaf0;for(var _0x1ae97a=_0x5a6e7f>0x1?void 0x0:_0x5a6e7f?sn(_0xf0108,_0x17806e):_0xf0108,_0xdf6dfd=_0x25483d[_0x3aa12c(0x31a)]-0x1,_0x1ecd29;_0xdf6dfd>=0x0;_0xdf6dfd--)(_0x1ecd29=_0x25483d[_0xdf6dfd])&&(_0x1ae97a=(_0x5a6e7f?_0x1ecd29(_0xf0108,_0x17806e,_0x1ae97a):_0x1ecd29(_0x1ae97a))||_0x1ae97a);return _0x5a6e7f&&_0x1ae97a&&tn(_0xf0108,_0x17806e,_0x1ae97a),_0x1ae97a;},je=(_0x4b0c3c,_0x421bd4)=>(_0x333ae7,_0xf9b732)=>_0x421bd4(_0x333ae7,_0xf9b732,_0x4b0c3c);let Ee=class{constructor(_0x3911b9,_0x208443,_0x35c0){const _0x308b05=_0x4aaaf0;this[_0x308b05(0x428)]=_0x3911b9,this['_httpService']=_0x208443,this['localeService']=_0x35c0,this['init']();}[_0x4aaaf0(0x1d7)](){const _0x23084f=_0x4aaaf0;this[_0x23084f(0x30f)][_0x23084f(0x46f)]({'priority':0x1,'interceptor':(_0x258bbc,_0x4eefaa)=>_0x4eefaa(_0x258bbc)[_0x23084f(0x2b0)](v[_0x23084f(0x599)](async _0x20f9d9=>{const _0x113b9b=_0x23084f,_0xafd6ed=_0x20f9d9;if(_0xafd6ed['status']===0x191&&window['confirm'](this[_0x113b9b(0x4d4)]['t'](_0x113b9b(0x3fa)))){const _0x3a26e9=window[_0x113b9b(0x44c)](window[_0x113b9b(0x554)]['href']);window[_0x113b9b(0x554)][_0x113b9b(0x53d)]=this[_0x113b9b(0x1ba)]()+'?url='+_0x3a26e9;}return _0xafd6ed;}))});}[_0x4aaaf0(0x1ba)](){const _0x455dd2=_0x4aaaf0;var _0x3a3a17,_0x45c9fc;const _0x216875=this['_configService']['getConfig'](Ct),_0x40d72f=this[_0x455dd2(0x428)][_0x455dd2(0x50b)]($);return(_0x45c9fc=(_0x3a3a17=_0x40d72f==null?void 0x0:_0x40d72f['loginUrlKey'])!=null?_0x3a3a17:_0x216875)!=null?_0x45c9fc:rs;}};Ee=nn([je(0x0,a['IConfigService']),je(0x1,a[_0x4aaaf0(0x1b2)](U['HTTPService'])),je(0x2,a['Inject'](a[_0x4aaaf0(0x1f6)]))],Ee);var rn=Object[_0x4aaaf0(0x562)],on=Object['getOwnPropertyDescriptor'],an=(_0x189956,_0x5cac16,_0x14ac10,_0x1e7748)=>{for(var _0x335396=_0x1e7748>0x1?void 0x0:_0x1e7748?on(_0x5cac16,_0x14ac10):_0x5cac16,_0x490c74=_0x189956['length']-0x1,_0x59a914;_0x490c74>=0x0;_0x490c74--)(_0x59a914=_0x189956[_0x490c74])&&(_0x335396=(_0x1e7748?_0x59a914(_0x5cac16,_0x14ac10,_0x335396):_0x59a914(_0x335396))||_0x335396);return _0x1e7748&&_0x335396&&rn(_0x5cac16,_0x14ac10,_0x335396),_0x335396;},_t=(_0x44a9c9,_0x4096af)=>(_0x382d1c,_0x17ad20)=>_0x4096af(_0x382d1c,_0x17ad20,_0x44a9c9);const jt=_0x4aaaf0(0x4f6),cn=_0x4aaaf0(0x46e);exports[_0x4aaaf0(0x5dd)]=class extends a['Disposable']{constructor(_0x2bccf0,_0x1c6fb7){const _0x5456c0=_0x4aaaf0;super(),this[_0x5456c0(0x339)]=_0x2bccf0,this['_configService']=_0x1c6fb7,this[_0x5456c0(0x577)]();}['_initMergeInterceptor'](){const _0x2575fd=_0x4aaaf0,_0x1261ea=this;this['disposeWithMe'](this[_0x2575fd(0x339)][_0x2575fd(0x46f)]({'priority':0x3e7,'interceptor':U[_0x2575fd(0x309)]({'isMatch'(_0x286d63){const _0x76456d=_0x2575fd;var _0x497965;if(_0x286d63[_0x76456d(0x42b)]===_0x76456d(0x5bb)&&((_0x497965=_0x286d63[_0x76456d(0x464)])!=null&&_0x497965['body'])){const {objectID:_0x4626ef,objectType:_0xc41916}=_0x286d63['requestParams'][_0x76456d(0x3df)]||{};if(!_0x4626ef||_0xc41916===void 0x0)return!0x1;const _0x5e68c0=_0x1261ea['_getAPIPrefixPath']()+'/'+_0xc41916+_0x76456d(0x4e0)+_0x4626ef+_0x76456d(0x53c);if(_0x286d63[_0x76456d(0x56b)]===_0x5e68c0)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1e88af){const _0x322b51=_0x2575fd;var _0x4f7b22;return(_0x4f7b22=_0x1e88af[_0x322b51(0x464)])==null?void 0x0:_0x4f7b22[_0x322b51(0x3df)];},'mergeParamsToRequest'(_0x49f4d2,_0x276da0){const _0x25e3eb=_0x2575fd,_0x3ac792=_0x1261ea['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x364fe5=_0x49f4d2[_0x25e3eb(0x3ba)]((_0x585637,_0x393fd3)=>{const _0x5bde5a=_0x25e3eb,{unitID:_0x5f356a,objectID:_0x296fce,objectType:_0x3b52cc,actions:_0xd3b998}=_0x393fd3;return _0x585637[_0x5f356a]||(_0x585637[_0x5f356a]={}),_0x585637[_0x5f356a][_0x296fce]||(_0x585637[_0x5f356a][_0x296fce]={'objectID':_0x296fce,'objectType':_0x3b52cc,'actions':[]}),_0x585637[_0x5f356a][_0x296fce][_0x5bde5a(0x45c)][_0x5bde5a(0x4ce)](..._0xd3b998),_0x585637;},{}),_0x31060b=[];for(const _0x90aea7 in _0x364fe5)for(const _0x386c5e in _0x364fe5[_0x90aea7]){const {actions:_0x4924bf,objectType:_0x4c57ad}=_0x364fe5[_0x90aea7][_0x386c5e],_0x562679=[...new Set(_0x4924bf)];_0x31060b[_0x25e3eb(0x4ce)]({'unitID':_0x90aea7,'objectID':_0x386c5e,'objectType':_0x4c57ad,'actions':_0x562679});}return new U[(_0x25e3eb(0x37d))](_0x25e3eb(0x5bb),_0x3ac792,{'headers':_0x276da0['headers'],'withCredentials':_0x276da0[_0x25e3eb(0x2db)],'responseType':_0x276da0[_0x25e3eb(0x371)],'body':{'requests':_0x31060b}});}},{'distributeResult'(_0x40a325,_0xa9bc80){const _0x4e7ecd=_0x2575fd,{objectActions:_0x7b2c92}=_0x40a325;return _0xa9bc80[_0x4e7ecd(0x263)](_0x620636=>{const _0x4feb0a=_0x4e7ecd,{unitID:_0x7e011c,objectID:_0x4ccf40,actions:_0x56a810}=_0x620636,_0x51ec1b=_0x7b2c92['find'](_0x19cc76=>_0x19cc76[_0x4feb0a(0x41c)]===_0x7e011c&&_0x19cc76[_0x4feb0a(0x5cf)]===_0x4ccf40),_0x542728=_0x56a810[_0x4feb0a(0x263)](_0x585268=>_0x51ec1b==null?void 0x0:_0x51ec1b[_0x4feb0a(0x45c)]['find'](_0x29782f=>_0x29782f[_0x4feb0a(0x3ec)]===_0x585268))['filter'](_0x355ef8=>!!_0x355ef8);return{'config':_0x620636,'result':{'actions':_0x542728,'error':_0x40a325[_0x4feb0a(0x574)]}};});}})}));}['_getAPIPrefixPath'](){const _0x347469=_0x4aaaf0;var _0x1ee8ac,_0xf5b292;const _0x29b2c2=this[_0x347469(0x428)]['getConfig'](jt),_0x56a282=this['_configService'][_0x347469(0x50b)]($);return(_0xf5b292=(_0x1ee8ac=_0x56a282==null?void 0x0:_0x56a282[_0x347469(0x1ec)])!=null?_0x1ee8ac:_0x29b2c2)!=null?_0xf5b292:cn;}async['create'](_0x54974a){const _0x13530b=_0x4aaaf0,_0x7aecb8=this[_0x13530b(0x5a7)]()+'/'+_0x54974a[_0x13530b(0x435)]+_0x13530b(0x377);return(await this['_HTTPService']['post'](_0x7aecb8,{'body':_0x54974a}))[_0x13530b(0x3df)][_0x13530b(0x5cf)]||'';}async['list'](_0x4e3a8f){const _0x10c69d=_0x4aaaf0,_0x16aa3e=this[_0x10c69d(0x5a7)]()+_0x10c69d(0x337);return(await this[_0x10c69d(0x339)][_0x10c69d(0x2f3)](_0x16aa3e,{'body':_0x4e3a8f}))[_0x10c69d(0x3df)][_0x10c69d(0x568)];}async[_0x4aaaf0(0x409)](_0x37e002){const _0xc22508=_0x4aaaf0,_0x5be31a=this[_0xc22508(0x5a7)]()+'/'+_0x37e002[_0xc22508(0x435)]+'/object/'+_0x37e002[_0xc22508(0x5cf)];await this[_0xc22508(0x339)][_0xc22508(0x563)](_0x5be31a,{'body':_0x37e002});}async[_0x4aaaf0(0x1b0)](_0x3753fd){const _0x55cf94=_0x4aaaf0,_0x177602=this[_0x55cf94(0x5a7)]()+'/'+_0x3753fd['objectType']+_0x55cf94(0x4e0)+_0x3753fd[_0x55cf94(0x5cf)]+_0x55cf94(0x53c);return(await this[_0x55cf94(0x339)][_0x55cf94(0x2f3)](_0x177602,{'body':_0x3753fd}))['body'][_0x55cf94(0x45c)];}async['batchAllowed'](_0x520b09){const _0x3556da=_0x4aaaf0,_0x4d7b4b=this[_0x3556da(0x5a7)]()+_0x3556da(0x313);return(await this[_0x3556da(0x339)][_0x3556da(0x2f3)](_0x4d7b4b,{'body':{'requests':_0x520b09}}))['body'][_0x3556da(0x1df)];}async[_0x4aaaf0(0x317)](_0xfb4ea6){const _0x7ecff=_0x4aaaf0,_0x3b6006=this[_0x7ecff(0x5a7)]()+'/'+_0xfb4ea6[_0x7ecff(0x435)]+_0x7ecff(0x59a),_0x5ab6f6=await this[_0x7ecff(0x339)][_0x7ecff(0x2f3)](_0x3b6006,{'body':_0xfb4ea6});return{'roles':_0x5ab6f6['body']['roles'],'actions':_0x5ab6f6[_0x7ecff(0x3df)][_0x7ecff(0x45c)]};}async[_0x4aaaf0(0x326)](_0x59f23e){const _0x230856=_0x4aaaf0,_0x480985=this[_0x230856(0x5a7)]()+_0x230856(0x1ce);await this[_0x230856(0x339)]['delete'](_0x480985,{'params':{'collaboratorID':_0x59f23e[_0x230856(0x30e)],'objectID':_0x59f23e[_0x230856(0x5cf)],'unitID':_0x59f23e[_0x230856(0x41c)]}});}async[_0x4aaaf0(0x2bc)](_0x403054){const _0x139830=_0x4aaaf0,_0x2c2d05=this['_getAPIPrefixPath']()+_0x139830(0x1ce);await this['_HTTPService'][_0x139830(0x4c2)](_0x2c2d05,{'body':_0x403054});}async[_0x4aaaf0(0x2d4)](_0x34a7c3){const _0x5711df=_0x4aaaf0,_0x229816=this[_0x5711df(0x5a7)]()+_0x5711df(0x1ce);await this[_0x5711df(0x339)][_0x5711df(0x2f3)](_0x229816,{'body':_0x34a7c3});}async[_0x4aaaf0(0x502)](_0x4b2e46){const _0x9d6e91=_0x4aaaf0,_0x12c4eb=this[_0x9d6e91(0x5a7)]()+_0x9d6e91(0x1ce);return(await this[_0x9d6e91(0x339)][_0x9d6e91(0x439)](_0x12c4eb,{'params':{'objectID':_0x4b2e46[_0x9d6e91(0x5cf)],'unitID':_0x4b2e46[_0x9d6e91(0x41c)]}}))[_0x9d6e91(0x3df)][_0x9d6e91(0x5d3)];}async['putCollaborators'](_0x43dbcf){const _0x225f13=_0x4aaaf0,_0x37e4a0=this['_getAPIPrefixPath']()+_0x225f13(0x1ce);await this['_HTTPService'][_0x225f13(0x563)](_0x37e4a0,{'body':_0x43dbcf});}},exports['AuthzIoHttpService']=an([_t(0x0,a[_0x4aaaf0(0x1b2)](U[_0x4aaaf0(0x1e4)])),_t(0x1,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x565)]))],exports[_0x4aaaf0(0x5dd)]);var ln=Object['defineProperty'],hn=Object[_0x4aaaf0(0x28b)],_n=(_0x5030ef,_0x485309,_0x1b8428,_0x3a053d)=>{const _0x5787b2=_0x4aaaf0;for(var _0x1e5dc6=_0x3a053d>0x1?void 0x0:_0x3a053d?hn(_0x485309,_0x1b8428):_0x485309,_0x3da69b=_0x5030ef[_0x5787b2(0x31a)]-0x1,_0x21c522;_0x3da69b>=0x0;_0x3da69b--)(_0x21c522=_0x5030ef[_0x3da69b])&&(_0x1e5dc6=(_0x3a053d?_0x21c522(_0x485309,_0x1b8428,_0x1e5dc6):_0x21c522(_0x1e5dc6))||_0x1e5dc6);return _0x3a053d&&_0x1e5dc6&&ln(_0x485309,_0x1b8428,_0x1e5dc6),_0x1e5dc6;},un=(_0x1db807,_0x51a97f)=>(_0x29e2e,_0x564d48)=>_0x51a97f(_0x29e2e,_0x564d48,_0x1db807);let be=class{constructor(_0x1b4c2d){const _0x581cd1=_0x4aaaf0;this['_httpService']=_0x1b4c2d,this[_0x581cd1(0x3de)]();}[_0x4aaaf0(0x3de)](){const _0x46c0fa=_0x4aaaf0;this[_0x46c0fa(0x30f)][_0x46c0fa(0x46f)]({'interceptor':(_0x350af0,_0x3329ed)=>{const _0x360c99=_0x46c0fa,_0x277871=_0x350af0['headers'],_0x53df22=qt[_0x360c99(0x2c9)]();return _0x53df22&&_0x277871[_0x360c99(0x4af)](_0x360c99(0x2da),_0x53df22),_0x3329ed(_0x350af0);}});}};be=_n([un(0x0,a['Inject'](U[_0x4aaaf0(0x1e4)]))],be);var dn=Object[_0x4aaaf0(0x562)],Sn=Object[_0x4aaaf0(0x28b)],vn=(_0x2f0150,_0x573642,_0x4b00d4,_0x2474b1)=>{const _0x231f3d=_0x4aaaf0;for(var _0x104bd0=_0x2474b1>0x1?void 0x0:_0x2474b1?Sn(_0x573642,_0x4b00d4):_0x573642,_0x47fe87=_0x2f0150[_0x231f3d(0x31a)]-0x1,_0xa6aff0;_0x47fe87>=0x0;_0x47fe87--)(_0xa6aff0=_0x2f0150[_0x47fe87])&&(_0x104bd0=(_0x2474b1?_0xa6aff0(_0x573642,_0x4b00d4,_0x104bd0):_0xa6aff0(_0x104bd0))||_0x104bd0);return _0x2474b1&&_0x104bd0&&dn(_0x573642,_0x4b00d4,_0x104bd0),_0x104bd0;},He=(_0x29e046,_0x4c0ba2)=>(_0x2e3a60,_0x3727c7)=>_0x4c0ba2(_0x2e3a60,_0x3727c7,_0x29e046);const mn=['image/png',_0x4aaaf0(0x24f),_0x4aaaf0(0x319),_0x4aaaf0(0x24a),'image/bmp'],gn=0x5*0x400*0x400,fn=_0x4aaaf0(0x423),In=_0x4aaaf0(0x305),pn=_0x4aaaf0(0x3cd),Cn=_0x4aaaf0(0x544);exports['ImageIoService']=class{constructor(_0x410d42,_0x33adc3,_0x3ca569){const _0x3022d7=_0x4aaaf0;u(this,_0x3022d7(0x282),0x0),u(this,_0x3022d7(0x1ed),new v[(_0x3022d7(0x1d4))]()),u(this,_0x3022d7(0x584),this['_change$']),u(this,'_imageSourceCache',new Map()),(this[_0x3022d7(0x30f)]=_0x410d42,this[_0x3022d7(0x428)]=_0x33adc3,this[_0x3022d7(0x46d)]=_0x3ca569);}[_0x4aaaf0(0x3da)](_0x12a4a7){const _0x5bbf98=_0x4aaaf0;this[_0x5bbf98(0x282)]=_0x12a4a7,this[_0x5bbf98(0x1ed)]['next'](_0x12a4a7);}[_0x4aaaf0(0x54a)](_0x3adda3,_0x5cd783){const _0xf3742=_0x4aaaf0;if(_0x5cd783===j['ImageSourceType'][_0xf3742(0x1c4)]){const _0x186573=new Image();return _0x186573[_0xf3742(0x591)]=_0x3adda3,_0x186573;}return this[_0xf3742(0x39d)][_0xf3742(0x439)](_0x3adda3);}['addImageSourceCache'](_0x1cf84d,_0x20b006,_0x4c1c6){const _0x38abe9=_0x4aaaf0;_0x20b006===j[_0x38abe9(0x292)]['BASE64']||_0x4c1c6==null||this[_0x38abe9(0x39d)][_0x38abe9(0x4af)](_0x1cf84d,_0x4c1c6);}async['getImage'](_0xf1b5c7){const _0x357d52=_0x4aaaf0;try{const _0x3cc9e6=this['_replaceFileID'](this[_0x357d52(0x5d4)](),''+_0xf1b5c7),_0x4d2a46=(await this[_0x357d52(0x30f)][_0x357d52(0x439)](_0x3cc9e6))[_0x357d52(0x3df)];if(_0x4d2a46['error']&&_0x4d2a46[_0x357d52(0x574)][_0x357d52(0x512)]===Et['OK']){const _0x34be56=new URL(_0x4d2a46['url'],this[_0x357d52(0x336)]())['toString']();return Promise[_0x357d52(0x560)](_0x34be56);}return Promise['reject'](_0x4d2a46[_0x357d52(0x574)]);}catch(_0x20a5a6){return Promise[_0x357d52(0x47e)](_0x20a5a6);}}async[_0x4aaaf0(0x412)](_0x3ae8ad){const _0x3b7bf5=_0x4aaaf0;let _0x51a425='';if(!mn[_0x3b7bf5(0x1e0)](_0x3ae8ad[_0x3b7bf5(0x4aa)]))return this['_decreaseWaiting'](),Promise[_0x3b7bf5(0x47e)](new Error(j[_0x3b7bf5(0x288)][_0x3b7bf5(0x3c1)]));if(_0x3ae8ad[_0x3b7bf5(0x516)]>gn)return this['_decreaseWaiting'](),Promise['reject'](new Error(j[_0x3b7bf5(0x288)][_0x3b7bf5(0x1fd)]));try{const _0x1985e6=new FormData();_0x1985e6[_0x3b7bf5(0x3c8)](_0x3b7bf5(0x27d),_0x3ae8ad);const _0x118606=this[_0x3b7bf5(0x46d)][_0x3b7bf5(0x4e3)](),_0x3d6b9a=_0x118606==null?void 0x0:_0x118606[_0x3b7bf5(0x3e2)]();if(!_0x3d6b9a)throw new Error(_0x3b7bf5(0x50f));const _0x35b029=this[_0x3b7bf5(0x4c1)]()+_0x3b7bf5(0x4c0)+_0x3ae8ad[_0x3b7bf5(0x516)][_0x3b7bf5(0x222)]()+'&source='+bt[_0x3b7bf5(0x361)]+_0x3b7bf5(0x33e)+encodeURIComponent(_0x3d6b9a),_0x578606=await(await fetch(_0x35b029,{'method':_0x3b7bf5(0x5bb),'body':_0x1985e6}))[_0x3b7bf5(0x26a)]();if(typeof _0x578606[_0x3b7bf5(0x5dc)]!=_0x3b7bf5(0x31c))return this[_0x3b7bf5(0x323)](),Promise[_0x3b7bf5(0x47e)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE']));_0x51a425=_0x578606[_0x3b7bf5(0x5dc)];}catch{return this[_0x3b7bf5(0x323)](),Promise[_0x3b7bf5(0x47e)](new Error(j[_0x3b7bf5(0x288)][_0x3b7bf5(0x3dd)]));}return new Promise((_0x5a8b74,_0x4d6da0)=>{const _0x1db5a0=_0x3b7bf5,_0x2e8fe6=new FileReader();_0x2e8fe6[_0x1db5a0(0x430)](_0x3ae8ad),_0x2e8fe6[_0x1db5a0(0x1b7)]=_0x3c62c6=>{const _0x2ae06b=_0x1db5a0;var _0x593057;const _0x352061=(_0x593057=_0x3c62c6[_0x2ae06b(0x56c)])==null?void 0x0:_0x593057[_0x2ae06b(0x55d)];if(_0x352061==null){this[_0x2ae06b(0x323)](),_0x4d6da0(new Error(j[_0x2ae06b(0x288)][_0x2ae06b(0x3dd)]));return;}const _0x56eae2=a['Tools'][_0x2ae06b(0x1c9)](0x6);_0x5a8b74({'imageId':_0x56eae2,'imageSourceType':j['ImageSourceType']['UUID'],'source':_0x51a425,'base64Cache':_0x352061,'status':j[_0x2ae06b(0x288)]['SUCCUSS']}),this[_0x2ae06b(0x323)]();};});}['_getUploadFileURL'](){const _0x50405a=_0x4aaaf0;var _0x5d02b9,_0x346f2f;const _0x145485=this[_0x50405a(0x428)][_0x50405a(0x50b)](fn),_0xde9cf8=this['_configService']['getConfig']($);return(_0x346f2f=(_0x5d02b9=_0xde9cf8==null?void 0x0:_0xde9cf8['uploadFileServerUrl'])!=null?_0x5d02b9:_0x145485)!=null?_0x346f2f:In;}[_0x4aaaf0(0x5d4)](){const _0xd1f8c3=_0x4aaaf0;var _0x353d0b,_0x52a52d;const _0xf1111c=this[_0xd1f8c3(0x428)][_0xd1f8c3(0x50b)](pn),_0x59e6f6=this[_0xd1f8c3(0x428)][_0xd1f8c3(0x50b)]($);return(_0x52a52d=(_0x353d0b=_0x59e6f6==null?void 0x0:_0x59e6f6[_0xd1f8c3(0x48d)])!=null?_0x353d0b:_0xf1111c)!=null?_0x52a52d:Cn;}['_getDownloadEndpointURL'](){const _0x389228=_0x4aaaf0;var _0x2437f8;const _0x4a0163=this[_0x389228(0x428)]['getConfig']($);return(_0x2437f8=_0x4a0163==null?void 0x0:_0x4a0163[_0x389228(0x41d)])!=null?_0x2437f8:location[_0x389228(0x4f9)];}[_0x4aaaf0(0x31f)](_0x1a6ffb,_0x5acbd3){const _0x122bbe=_0x4aaaf0;return _0x1a6ffb[_0x122bbe(0x32c)](_0x122bbe(0x349),_0x5acbd3);}[_0x4aaaf0(0x323)](){const _0x4e80a7=_0x4aaaf0;this[_0x4e80a7(0x282)]-=0x1,this['_change$'][_0x4e80a7(0x3b3)](this[_0x4e80a7(0x282)]);}},exports[_0x4aaaf0(0x496)]=vn([He(0x0,a['Inject'](U['HTTPService'])),He(0x1,a[_0x4aaaf0(0x565)]),He(0x2,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x33f)]))],exports[_0x4aaaf0(0x496)]);var En=Object[_0x4aaaf0(0x562)],bn=Object['getOwnPropertyDescriptor'],Tn=(_0x34d887,_0x33cf59,_0x477a54,_0x20c75d)=>{const _0x4d95d5=_0x4aaaf0;for(var _0x2e5a9e=_0x20c75d>0x1?void 0x0:_0x20c75d?bn(_0x33cf59,_0x477a54):_0x33cf59,_0x3bb3a8=_0x34d887[_0x4d95d5(0x31a)]-0x1,_0x481157;_0x3bb3a8>=0x0;_0x3bb3a8--)(_0x481157=_0x34d887[_0x3bb3a8])&&(_0x2e5a9e=(_0x20c75d?_0x481157(_0x33cf59,_0x477a54,_0x2e5a9e):_0x481157(_0x2e5a9e))||_0x2e5a9e);return _0x20c75d&&_0x2e5a9e&&En(_0x33cf59,_0x477a54,_0x2e5a9e),_0x2e5a9e;},_e=(_0x2e6dd8,_0x416221)=>(_0x4d38b7,_0x431a94)=>_0x416221(_0x4d38b7,_0x431a94,_0x2e6dd8);let Te=class extends a[_0x4aaaf0(0x275)]{constructor(_0x46fd46,_0x523f94,_0x4e5c6c,_0xa9e546,_0x29289a){const _0x4e1650=_0x4aaaf0;super(),this[_0x4e1650(0x5aa)]=_0x46fd46,this[_0x4e1650(0x46d)]=_0x523f94,this[_0x4e1650(0x290)]=_0x4e5c6c,this[_0x4e1650(0x23b)]=_0xa9e546,this[_0x4e1650(0x2af)]=_0x29289a,this[_0x4e1650(0x28d)](),this[_0x4e1650(0x459)]();}[_0x4aaaf0(0x459)](){const _0x1a3f2d=_0x4aaaf0,_0x25fc24=async _0x10bbb3=>{const _0x2b5c25=_0x47ba;(await this[_0x2b5c25(0x23b)][_0x2b5c25(0x571)](_0x10bbb3))[_0x2b5c25(0x467)][_0x2b5c25(0x2b0)](E[_0x2b5c25(0x36d)](_0x289c21=>_0x289c21[_0x2b5c25(0x405)]===_[_0x2b5c25(0x2bb)][_0x2b5c25(0x5d2)]),E[_0x2b5c25(0x4b2)](this[_0x2b5c25(0x35d)]))[_0x2b5c25(0x236)](_0x321ca9=>{const _0x5b45df=_0x2b5c25,_0x56c68a=_0x321ca9,{reason:_0x2611b5}=_0x56c68a['data'];this[_0x5b45df(0x5aa)][_0x5b45df(0x439)](A[_0x5b45df(0x31b)])['show']({'type':J[_0x5b45df(0x497)][_0x5b45df(0x413)],'content':this[_0x5b45df(0x2af)]['t'](_0x5b45df(0x4b6))+'('+_0x2611b5+')'}),this[_0x5b45df(0x290)][_0x5b45df(0x585)](new C[(_0x5b45df(0x1e9))](_0x10bbb3)['id'],!0x1),this[_0x5b45df(0x23b)][_0x5b45df(0x52f)](_0x10bbb3);});};v[_0x1a3f2d(0x398)](this['_univerInstanceService'][_0x1a3f2d(0x411)](a[_0x1a3f2d(0x419)]['UNIVER_SHEET']),this[_0x1a3f2d(0x46d)][_0x1a3f2d(0x411)](a['UniverInstanceType'][_0x1a3f2d(0x238)]))[_0x1a3f2d(0x2b0)](E[_0x1a3f2d(0x263)](_0x4b880e=>_0x4b880e[_0x1a3f2d(0x3e2)]()),E['filter'](_0x462244=>!a['isInternalEditorID'](_0x462244)),E['takeUntil'](this['dispose$']))[_0x1a3f2d(0x236)](_0x29e0ab=>{_0x25fc24(_0x29e0ab);});}[_0x4aaaf0(0x28d)](){const _0x3ca538=_0x4aaaf0,_0x18109d=async _0x39470b=>{const _0x19d98d=_0x47ba;(await this[_0x19d98d(0x23b)][_0x19d98d(0x571)](_0x39470b))['event$'][_0x19d98d(0x2b0)](E[_0x19d98d(0x36d)](_0x96f4d=>_0x96f4d[_0x19d98d(0x405)]===_[_0x19d98d(0x2bb)][_0x19d98d(0x3b9)]),E[_0x19d98d(0x4b2)](this[_0x19d98d(0x35d)]))[_0x19d98d(0x236)](_0x5f4bc2=>{const _0x1a0cdd=_0x19d98d,_0x5765eb=_0x5f4bc2,{objectId:_0x3d56fc}=_0x5765eb['data'],_0x25c945=this[_0x1a0cdd(0x5aa)][_0x1a0cdd(0x439)](ie[_0x1a0cdd(0x378)]);_0x3d56fc===_0x39470b?_0x25c945[_0x1a0cdd(0x4e8)](_0x39470b):_0x25c945[_0x1a0cdd(0x4e5)](_0x39470b,_0x3d56fc);});};v[_0x3ca538(0x398)](this['_univerInstanceService'][_0x3ca538(0x411)](a[_0x3ca538(0x419)]['UNIVER_SHEET']),this[_0x3ca538(0x46d)]['getTypeOfUnitAdded$'](a[_0x3ca538(0x419)]['UNIVER_DOC']))[_0x3ca538(0x2b0)](E[_0x3ca538(0x263)](_0x5e0a60=>_0x5e0a60[_0x3ca538(0x3e2)]()),E['filter'](_0x48f145=>!a['isInternalEditorID'](_0x48f145)),E['takeUntil'](this[_0x3ca538(0x35d)]))[_0x3ca538(0x236)](_0x3641b5=>{_0x18109d(_0x3641b5);});}};Te=Tn([_e(0x0,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),_e(0x1,a[_0x4aaaf0(0x33f)]),_e(0x2,a[_0x4aaaf0(0x26c)]),_e(0x3,a[_0x4aaaf0(0x1b2)](exports['CollaborationSessionService'])),_e(0x4,a[_0x4aaaf0(0x1b2)](a['LocaleService']))],Te);var Rn=Object[_0x4aaaf0(0x562)],On=Object[_0x4aaaf0(0x28b)],Dn=(_0xad74d4,_0x5d0d02,_0x34ad27,_0x30fcc8)=>{const _0x250bb1=_0x4aaaf0;for(var _0x2e04d8=_0x30fcc8>0x1?void 0x0:_0x30fcc8?On(_0x5d0d02,_0x34ad27):_0x5d0d02,_0x472983=_0xad74d4[_0x250bb1(0x31a)]-0x1,_0x73fce6;_0x472983>=0x0;_0x472983--)(_0x73fce6=_0xad74d4[_0x472983])&&(_0x2e04d8=(_0x30fcc8?_0x73fce6(_0x5d0d02,_0x34ad27,_0x2e04d8):_0x73fce6(_0x2e04d8))||_0x2e04d8);return _0x30fcc8&&_0x2e04d8&&Rn(_0x5d0d02,_0x34ad27,_0x2e04d8),_0x2e04d8;},ut=(_0x464aa6,_0x38a3a0)=>(_0x296c92,_0x28b624)=>_0x38a3a0(_0x296c92,_0x28b624,_0x464aa6);exports[_0x4aaaf0(0x37b)]=class{constructor(_0x4e9e57,_0x48f431){const _0x3536ba=_0x4aaaf0;this['_configService']=_0x4e9e57,this[_0x3536ba(0x30f)]=_0x48f431;}async[_0x4aaaf0(0x2ff)](_0x111e76,_0xdf541c){const _0x3eecca=_0x4aaaf0;var _0x449223;const {unitID:_0x3f622b,type:_0x3b3b08,revision:_0x1ee24f=0x0}=_0xdf541c,_0x4cfaeb=this[_0x3eecca(0x41a)]()+'/'+_0x3b3b08+_0x3eecca(0x406)+_0x3f622b+'/rev/'+_0x1ee24f,_0x24f25c=(await this[_0x3eecca(0x30f)][_0x3eecca(0x439)](_0x4cfaeb))[_0x3eecca(0x3df)],_0x2dab8b=(_0x449223=_0x24f25c['snapshot'])==null?void 0x0:_0x449223['workbook'];if(_0x2dab8b){const _0x89e232=_0x2dab8b==null?void 0x0:_0x2dab8b[_0x3eecca(0x44a)],_0x54eff3=_[_0x3eecca(0x3f8)][_0x3eecca(0x357)](_[_0x3eecca(0x4a6)](_0x89e232));_0x2dab8b[_0x3eecca(0x44a)]=_0x54eff3,Object['entries'](_0x2dab8b['sheets'])[_0x3eecca(0x1d6)](([,_0x9aa831])=>{const _0x24da81=_0x3eecca,_0x36731b=_0x9aa831[_0x24da81(0x44a)],_0x2c67ed=_['textEncoder'][_0x24da81(0x357)](_['b64DecodeUnicode'](_0x36731b));_0x9aa831['originalMeta']=_0x2c67ed;});}return _0x24f25c;}async['getSheetBlock'](_0x3835f2,_0xc80f8b){const _0x168c22=_0x4aaaf0,{unitID:_0x5534f5,type:_0x34d04d,blockID:_0x3d9785}=_0xc80f8b,_0x19fa46=this[_0x168c22(0x3c3)]()+'/'+_0x34d04d+_0x168c22(0x406)+_0x5534f5+_0x168c22(0x547)+_0x3d9785;return(await this[_0x168c22(0x30f)][_0x168c22(0x439)](_0x19fa46))[_0x168c22(0x3df)];}async['getDeserializedSheetBlock'](_0x1b915a,_0x56e90e){const _0x26a1f9=_0x4aaaf0,{unitID:_0x4fbd02,type:_0x194137,blockID:_0x503d55}=_0x56e90e,_0x193eb6=this['_getAPIPrefix']()+'/block/'+_0x194137+'/unit/'+_0x4fbd02+_0x26a1f9(0x547)+_0x503d55;return(await this[_0x26a1f9(0x30f)][_0x26a1f9(0x439)](_0x193eb6))[_0x26a1f9(0x3df)];}async[_0x4aaaf0(0x3aa)](_0x4ba812,_0x4ce4de){const _0x5411fb=_0x4aaaf0,{unitID:_0x265cd,type:_0x5778e8,from:_0x10469f,to:_0x529b7a}=_0x4ce4de,_0x1a2703=this[_0x5411fb(0x3c3)]()+'/'+_0x5778e8+_0x5411fb(0x406)+_0x265cd+_0x5411fb(0x538)+_0x10469f+'&to='+_0x529b7a;return(await this[_0x5411fb(0x30f)]['get'](_0x1a2703))[_0x5411fb(0x3df)];}[_0x4aaaf0(0x41a)](){const _0x2568fc=_0x4aaaf0;var _0x82f32c;return(_0x82f32c=this[_0x2568fc(0x428)][_0x2568fc(0x50b)](St))!=null?_0x82f32c:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x3ab5a6=_0x4aaaf0;var _0x52e879,_0x1d88a6;const _0x601079=this['_configService'][_0x3ab5a6(0x50b)](dt),_0x20d3e8=this['_configService'][_0x3ab5a6(0x50b)]($);return(_0x1d88a6=(_0x52e879=_0x20d3e8==null?void 0x0:_0x20d3e8[_0x3ab5a6(0x380)])!=null?_0x52e879:_0x601079)!=null?_0x1d88a6:zt;}async[_0x4aaaf0(0x586)](_0x7adc5b,_0x2b7197){const _0x3e75e1=_0x4aaaf0,_0xdc34e0=_0x3e75e1(0x479)+_0x2b7197[_0x3e75e1(0x4aa)]+_0x3e75e1(0x406)+_0x2b7197[_0x3e75e1(0x41c)]+'/resources';return(await this[_0x3e75e1(0x30f)][_0x3e75e1(0x439)](_0xdc34e0,{'params':{'resourceId':JSON[_0x3e75e1(0x24c)](_0x2b7197[_0x3e75e1(0x21b)])}}))[_0x3e75e1(0x3df)];}['saveSnapshot'](){const _0x2f9188=_0x4aaaf0;throw new Error(_0x2f9188(0x217));}[_0x4aaaf0(0x4b3)](){const _0x3f0b2b=_0x4aaaf0;throw new Error(_0x3f0b2b(0x217));}[_0x4aaaf0(0x588)](){const _0x53de03=_0x4aaaf0;throw new Error(_0x53de03(0x217));}[_0x4aaaf0(0x34f)](){const _0x34e3e7=_0x4aaaf0;throw new Error(_0x34e3e7(0x217));}[_0x4aaaf0(0x5d1)](){const _0x4134c2=_0x4aaaf0;throw new Error(_0x4134c2(0x217));}},exports[_0x4aaaf0(0x37b)]=Dn([ut(0x0,a[_0x4aaaf0(0x565)]),ut(0x1,a['Inject'](U[_0x4aaaf0(0x1e4)]))],exports[_0x4aaaf0(0x37b)]);var yn=Object['defineProperty'],Un=Object[_0x4aaaf0(0x28b)],Pn=(_0x14eb9f,_0x40993e,_0x321949,_0x471b7a)=>{const _0x4e17f9=_0x4aaaf0;for(var _0xfaa375=_0x471b7a>0x1?void 0x0:_0x471b7a?Un(_0x40993e,_0x321949):_0x40993e,_0x2085fb=_0x14eb9f[_0x4e17f9(0x31a)]-0x1,_0x33fdad;_0x2085fb>=0x0;_0x2085fb--)(_0x33fdad=_0x14eb9f[_0x2085fb])&&(_0xfaa375=(_0x471b7a?_0x33fdad(_0x40993e,_0x321949,_0xfaa375):_0x33fdad(_0xfaa375))||_0xfaa375);return _0x471b7a&&_0xfaa375&&yn(_0x40993e,_0x321949,_0xfaa375),_0xfaa375;},ue=(_0x1ef500,_0x2dc71a)=>(_0x32d001,_0x2a86d4)=>_0x2dc71a(_0x32d001,_0x2a86d4,_0x1ef500);let We=class extends a['LocalUndoRedoService']{constructor(_0x6dd072,_0x48bbb6,_0x5b3272,_0x1fdb3a,_0x5ae958){const _0x43454c=_0x4aaaf0;super(_0x6dd072,_0x48bbb6,_0x5b3272),this[_0x43454c(0x37f)]=_0x1fdb3a,this[_0x43454c(0x360)]=_0x5ae958;}[_0x4aaaf0(0x2a6)](_0x57c8d0,_0x4635f2){const _0x58325b=_0x4aaaf0,_0x4dbd83=this['_getUndoStack'](_0x57c8d0);if(_0x4dbd83)try{const _0x40eeda=this[_0x58325b(0x542)](_0x4dbd83,_0x4635f2);this[_0x58325b(0x1f8)](_0x57c8d0,_0x40eeda);}catch(_0x370c3f){this[_0x58325b(0x360)][_0x58325b(0x574)]('[CollaborationUndoRedoService]',_0x370c3f),this[_0x58325b(0x1be)](_0x57c8d0);}const _0x544191=this[_0x58325b(0x363)](_0x57c8d0);if(_0x544191)try{const _0x2f20a6=this[_0x58325b(0x542)](_0x544191,_0x4635f2);this[_0x58325b(0x474)](_0x57c8d0,_0x2f20a6);}catch(_0x139cd5){this['_logService'][_0x58325b(0x574)](_0x139cd5),this[_0x58325b(0x52e)](_0x57c8d0);}}[_0x4aaaf0(0x1be)](_0x1bdb92){const _0x5a0226=_0x4aaaf0,_0x4b32fc=this[_0x5a0226(0x58f)](_0x1bdb92);_0x4b32fc&&(_0x4b32fc[_0x5a0226(0x31a)]=0x0,this[_0x5a0226(0x4a8)]());}[_0x4aaaf0(0x52e)](_0x254b41){const _0x10e5ee=_0x4aaaf0,_0x495dda=this[_0x10e5ee(0x363)](_0x254b41);_0x495dda&&(_0x495dda[_0x10e5ee(0x31a)]=0x0,this[_0x10e5ee(0x4a8)]());}[_0x4aaaf0(0x1f8)](_0xd28568,_0x8bae81){const _0x3457cc=_0x4aaaf0;this['_undoStacks']['set'](_0xd28568,_0x8bae81),this[_0x3457cc(0x4a8)]();}[_0x4aaaf0(0x474)](_0x4673b2,_0x33937f){const _0x2c13d8=_0x4aaaf0;this[_0x2c13d8(0x243)][_0x2c13d8(0x4af)](_0x4673b2,_0x33937f),this[_0x2c13d8(0x4a8)]();}[_0x4aaaf0(0x542)](_0x143cff,_0xc60324){const _0x1f74e7=_0x4aaaf0,_0x10f6e8=[];let _0x1e8da1=_0xc60324,_0x57c5be=_0xc60324;for(let _0x135939=_0x143cff[_0x1f74e7(0x31a)]-0x1;_0x135939>=0x0;_0x135939--){const {unitID:_0x39edbf,undoMutations:_0x18a4a2,redoMutations:_0x17b42b}=_0x143cff[_0x135939],_0x4221ce=this[_0x1f74e7(0x37f)][_0x1f74e7(0x34d)](_0x1e8da1,_0x18a4a2),_0x2388b2=this[_0x1f74e7(0x37f)][_0x1f74e7(0x34d)](_0x57c5be,_0x17b42b);if(_[_0x1f74e7(0x264)](_0x4221ce)||_['isTransformMutationsWithChangesetFailure'](_0x2388b2)){this[_0x1f74e7(0x360)][_0x1f74e7(0x574)](_0x1f74e7(0x2fb),'transformStack\x20failed!',_0x4221ce,_0x2388b2);break;}_0x1e8da1=_0x4221ce[_0x1f74e7(0x3f1)],_0x57c5be=_0x2388b2[_0x1f74e7(0x3f1)],_0x10f6e8[_0x1f74e7(0x4ce)]({'unitID':_0x39edbf,'undoMutations':_0x4221ce['m2Prime'],'redoMutations':_0x2388b2[_0x1f74e7(0x3a9)]});}return _0x10f6e8[_0x1f74e7(0x3b2)]();}};We=Pn([ue(0x0,a[_0x4aaaf0(0x33f)]),ue(0x1,a[_0x4aaaf0(0x5df)]),ue(0x2,a[_0x4aaaf0(0x2e0)]),ue(0x3,_['ITransformService']),ue(0x4,a['ILogService'])],We);class Ht extends a['RxDisposable']{constructor(){const _0x1aab55=_0x4aaaf0;super(),u(this,'urlChange$'),this[_0x1aab55(0x3ab)]=v[_0x1aab55(0x401)](window,'popstate')['pipe'](v[_0x1aab55(0x4b2)](this[_0x1aab55(0x35d)]),v[_0x1aab55(0x566)](0x1),v[_0x1aab55(0x578)](void 0x0));}[_0x4aaaf0(0x359)](_0x3ca1a9,_0x29206f,_0x31a315=!0x1){const _0x8fb2df=_0x4aaaf0,_0x157d47=new URL(window[_0x8fb2df(0x554)][_0x8fb2df(0x53d)]);_0x157d47[_0x8fb2df(0x2e6)][_0x8fb2df(0x4af)](_0x3ca1a9,_0x29206f),_0x31a315?window[_0x8fb2df(0x331)][_0x8fb2df(0x42c)]('','',_0x157d47[_0x8fb2df(0x222)]()):window[_0x8fb2df(0x331)]['pushState']('','',_0x157d47[_0x8fb2df(0x222)]());}[_0x4aaaf0(0x300)](_0x60dd0f,_0x5d9652=!0x1){const _0x732a61=_0x4aaaf0,_0x4b3b6d=new URL(window[_0x732a61(0x554)][_0x732a61(0x53d)]);_0x4b3b6d['searchParams'][_0x732a61(0x276)](_0x60dd0f),_0x5d9652?window[_0x732a61(0x331)][_0x732a61(0x42c)]('','',_0x4b3b6d[_0x732a61(0x222)]()):window[_0x732a61(0x331)][_0x732a61(0x432)]('','',_0x4b3b6d['toString']());}['getParam'](_0x53fa4e){const _0x5b8de5=_0x4aaaf0;var _0x56230d;return(_0x56230d=new URL(window['location'][_0x5b8de5(0x53d)])[_0x5b8de5(0x2e6)][_0x5b8de5(0x439)](_0x53fa4e))!=null?_0x56230d:void 0x0;}}var xt=Object[_0x4aaaf0(0x562)],wn=Object[_0x4aaaf0(0x28b)],Nn=(_0x692535,_0x747abd,_0x3dbf48)=>_0x747abd in _0x692535?xt(_0x692535,_0x747abd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dbf48}):_0x692535[_0x747abd]=_0x3dbf48,Mn=(_0x392a48,_0x471e42,_0x2aafc1,_0x1ef3f6)=>{const _0x5eb4b0=_0x4aaaf0;for(var _0xe8cc74=_0x1ef3f6>0x1?void 0x0:_0x1ef3f6?wn(_0x471e42,_0x2aafc1):_0x471e42,_0x153db2=_0x392a48[_0x5eb4b0(0x31a)]-0x1,_0xf0a9bb;_0x153db2>=0x0;_0x153db2--)(_0xf0a9bb=_0x392a48[_0x153db2])&&(_0xe8cc74=(_0x1ef3f6?_0xf0a9bb(_0x471e42,_0x2aafc1,_0xe8cc74):_0xf0a9bb(_0xe8cc74))||_0xe8cc74);return _0x1ef3f6&&_0xe8cc74&&xt(_0x471e42,_0x2aafc1,_0xe8cc74),_0xe8cc74;},ge=(_0x4b2d56,_0x1b8fd3)=>(_0x1982cf,_0x1ab5f7)=>_0x1b8fd3(_0x1982cf,_0x1ab5f7,_0x4b2d56),An=(_0x5eccbd,_0x1a7523,_0x1677ae)=>Nn(_0x5eccbd,_0x1a7523+'',_0x1677ae);const Ln='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x4aaaf0(0x4d1)]=class extends a['Plugin']{constructor(_0x4779ad=os,_0x1f06dd,_0x145f59,_0x144db1,_0x3b5952){const _0x5ecb4a=_0x4aaaf0;super(),this[_0x5ecb4a(0x41b)]=_0x4779ad,this['_logService']=_0x1f06dd,this['_renderManagerService']=_0x145f59,this['_injector']=_0x144db1,this[_0x5ecb4a(0x428)]=_0x3b5952;const {..._0x1c56a5}=this[_0x5ecb4a(0x41b)];this[_0x5ecb4a(0x428)][_0x5ecb4a(0x3af)]($,_0x1c56a5);}['onStarting'](){const _0x2e82b2=_0x4aaaf0;this['_registerDependencies'](),a['touchDependencies'](this['_injector'],[[oe],[exports[_0x2e82b2(0x295)]],[Te]]);}[_0x4aaaf0(0x5cb)](){a['touchDependencies'](this['_injector'],[[Ce]]);}[_0x4aaaf0(0x2ac)](){const _0x248d3c=_0x4aaaf0;this[_0x248d3c(0x480)]();}[_0x4aaaf0(0x36a)](){const _0x58220b=_0x4aaaf0;var _0x4a6545,_0x15df86,_0x40f7e8,_0x3789b8;this[_0x58220b(0x5aa)]['has'](a['IUndoRedoService'])&&this[_0x58220b(0x360)][_0x58220b(0x574)](_0x58220b(0x215),_0x58220b(0x445));let _0x5ec4cb=[[a[_0x58220b(0x490)],{'useClass':We}],[exports['CollaborationSessionService']],[ze],[U['HTTPService']],[Ze,{'useClass':Ht}],[exports['MemberService']],[exports[_0x58220b(0x49c)]],[U['WebSocketService']],[Ie],[pe],[fe],[Xe],[Ee],[be],[Ke],[Te],[Ye,{'useClass':(_0x15df86=(_0x4a6545=this['_config'])==null?void 0x0:_0x4a6545[_0x58220b(0x49b)])!=null?_0x15df86:exports[_0x58220b(0x4b4)]}],[U[_0x58220b(0x239)],{'useClass':U[_0x58220b(0x375)]}],[_[_0x58220b(0x47d)],{'useClass':exports[_0x58220b(0x37b)]}],[a[_0x58220b(0x457)],{'useClass':exports[_0x58220b(0x5dd)]}],[j[_0x58220b(0x2e2)],{'useClass':exports['ImageIoService']}],[exports[_0x58220b(0x265)]],[exports['DataLoaderController']],[exports[_0x58220b(0x1e2)]],[Ce],[oe]];(_0x40f7e8=this[_0x58220b(0x41b)])!=null&&_0x40f7e8[_0x58220b(0x1f0)]&&_0x5ec4cb[_0x58220b(0x4ce)]([Re,{'useClass':Hs}]),_0x5ec4cb=a[_0x58220b(0x5cc)](_0x5ec4cb,(_0x3789b8=this[_0x58220b(0x41b)])==null?void 0x0:_0x3789b8[_0x58220b(0x4ab)]),_0x5ec4cb[_0x58220b(0x1d6)](_0x3eceb4=>this[_0x58220b(0x5aa)][_0x58220b(0x24d)](_0x3eceb4)),this[_0x58220b(0x579)]();}['_registerRenderDependencies'](){const _0x93a9b6=_0x4aaaf0;this[_0x93a9b6(0x367)](this[_0x93a9b6(0x2e3)][_0x93a9b6(0x32f)](a[_0x93a9b6(0x419)][_0x93a9b6(0x238)],[Be])),this[_0x93a9b6(0x367)](this[_0x93a9b6(0x2e3)][_0x93a9b6(0x32f)](a[_0x93a9b6(0x419)][_0x93a9b6(0x4d0)],[Ve]));}[_0x4aaaf0(0x579)](){const _0xe8ed6=_0x4aaaf0;var _0x104575,_0x49c607;this[_0xe8ed6(0x5aa)][_0xe8ed6(0x439)](U[_0xe8ed6(0x1e4)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0xe8ed6(0x5aa)][_0xe8ed6(0x439)](be),(_0x104575=this[_0xe8ed6(0x41b)])!=null&&_0x104575[_0xe8ed6(0x4b9)]||this[_0xe8ed6(0x5aa)]['get'](exports['LocalCacheService'])[_0xe8ed6(0x20d)](),(_0x49c607=this[_0xe8ed6(0x41b)])!=null&&_0x49c607[_0xe8ed6(0x298)]&&this[_0xe8ed6(0x5aa)][_0xe8ed6(0x439)](Ee),this[_0xe8ed6(0x5aa)]['get'](exports[_0xe8ed6(0x265)]),this[_0xe8ed6(0x5aa)][_0xe8ed6(0x2cc)](exports['DesktopCollaborationStatusDisplayController'])&&this['_injector']['get'](exports[_0xe8ed6(0x1e2)]);}},An(exports['UniverCollaborationClientPlugin'],'pluginName',Ln),exports['UniverCollaborationClientPlugin']=Mn([a['DependentOn'](_[_0x4aaaf0(0x272)]),ge(0x1,a[_0x4aaaf0(0x1d1)]),ge(0x2,O[_0x4aaaf0(0x546)]),ge(0x3,a[_0x4aaaf0(0x1b2)](a[_0x4aaaf0(0x2ee)])),ge(0x4,a[_0x4aaaf0(0x565)])],exports[_0x4aaaf0(0x4d1)]),exports[_0x4aaaf0(0x4f6)]=jt,exports[_0x4aaaf0(0x3e1)]=pt,exports[_0x4aaaf0(0x252)]=vt,exports[_0x4aaaf0(0x304)]=D,exports[_0x4aaaf0(0x312)]=$t,exports[_0x4aaaf0(0x334)]=Ke,exports[_0x4aaaf0(0x269)]=mt,exports[_0x4aaaf0(0x2c0)]=Fe,exports[_0x4aaaf0(0x2fc)]=Ye,exports[_0x4aaaf0(0x569)]=Ze,exports[_0x4aaaf0(0x3ff)]=It,exports[_0x4aaaf0(0x594)]=Ct,exports[_0x4aaaf0(0x289)]=ft,exports[_0x4aaaf0(0x431)]=Jt,exports[_0x4aaaf0(0x2bf)]=dt,exports[_0x4aaaf0(0x30c)]=St,exports[_0x4aaaf0(0x54c)]=x,exports[_0x4aaaf0(0x43c)]=wt,exports['WebURLService']=Ht,exports['deserializeToCombResponse']=Tt,exports['serializeCombRequest']=Rt;
1
+ 'use strict';const _0x5a5813=_0x14f1;(function(_0x421d00,_0x3f310f){const _0x1f627d=_0x14f1,_0x36d209=_0x421d00();while(!![]){try{const _0x1a13db=parseInt(_0x1f627d(0x4a0))/0x1*(-parseInt(_0x1f627d(0x3d8))/0x2)+parseInt(_0x1f627d(0x2fd))/0x3+parseInt(_0x1f627d(0x177))/0x4*(parseInt(_0x1f627d(0x2ab))/0x5)+parseInt(_0x1f627d(0x217))/0x6+parseInt(_0x1f627d(0x3ad))/0x7+parseInt(_0x1f627d(0x3dd))/0x8+-parseInt(_0x1f627d(0x3b0))/0x9*(parseInt(_0x1f627d(0xbf))/0xa);if(_0x1a13db===_0x3f310f)break;else _0x36d209['push'](_0x36d209['shift']());}catch(_0x40ed7f){_0x36d209['push'](_0x36d209['shift']());}}}(_0x1d52,0x5f95e));var Gt=Object[_0x5a5813(0x40e)],Yt=(_0x1bc20b,_0x50542e,_0x2dae86)=>_0x50542e in _0x1bc20b?Gt(_0x1bc20b,_0x50542e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dae86}):_0x1bc20b[_0x50542e]=_0x2dae86,u=(_0x790214,_0x3fc56e,_0x583163)=>Yt(_0x790214,typeof _0x3fc56e!=_0x5a5813(0x11e)?_0x3fc56e+'':_0x3fc56e,_0x583163);Object[_0x5a5813(0x40e)](exports,Symbol['toStringTag'],{'value':_0x5a5813(0x97)});const a=require(_0x5a5813(0x347)),v=require(_0x5a5813(0x32f)),E=require(_0x5a5813(0x262)),J=require(_0x5a5813(0x26e)),A=require('@univerjs/ui'),w=require('@univerjs/network'),_=require(_0x5a5813(0x3f6)),Kt=require(_0x5a5813(0x495)),N=require(_0x5a5813(0x3b7)),C=require(_0x5a5813(0x257)),O=require(_0x5a5813(0x2d2)),ne=require(_0x5a5813(0x299)),j=require(_0x5a5813(0x1a7)),Qe=require(_0x5a5813(0x12b)),ie=require(_0x5a5813(0x387)),y=require(_0x5a5813(0x1bf)),Xt=require(_0x5a5813(0x249)),qt=require(_0x5a5813(0x414)),dt='SNAPSHOT_SERVER_URL_KEY',zt='/universer-api/snapshot',St=_0x5a5813(0x26c),Jt=_0x5a5813(0xb6),Zt=0x7d0,vt='COLLAB_WEB_SOCKET_URL',Qt=_0x5a5813(0x494),mt='HEARTBEAT_INTERVAL',es=0x7530,Fe='HEARTBEAT_TIMEOUT',gt=0x4e20,ts=0x4e20,ft=_0x5a5813(0x10e),ss=0x3,It='LOCAL_CACHE_INTERVAL',is=0x3e8,pt=_0x5a5813(0x371),ns=_0x5a5813(0x313),Ct=_0x5a5813(0x475),rs='/universer-api/oidc/authpage';var Et=(_0x1a81b4=>(_0x1a81b4[_0x1a81b4[_0x5a5813(0x48e)]=0x0]=_0x5a5813(0x48e),_0x1a81b4[_0x1a81b4['OK']=0x1]='OK',_0x1a81b4[_0x1a81b4[_0x5a5813(0x1b8)]=0x2]=_0x5a5813(0x1b8),_0x1a81b4[_0x1a81b4['PERMISSION_DENIED']=0x3]=_0x5a5813(0x4aa),_0x1a81b4[_0x1a81b4[_0x5a5813(0x1aa)]=0x4]=_0x5a5813(0x1aa),_0x1a81b4[_0x1a81b4[_0x5a5813(0x2f6)]=0x5]=_0x5a5813(0x2f6),_0x1a81b4[_0x1a81b4[_0x5a5813(0x1e1)]=0x6]=_0x5a5813(0x1e1),_0x1a81b4[_0x1a81b4[_0x5a5813(0xb2)]=0x7]=_0x5a5813(0xb2),_0x1a81b4[_0x1a81b4[_0x5a5813(0x49f)]=0x8]=_0x5a5813(0x49f),_0x1a81b4[_0x1a81b4['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x1a81b4[_0x1a81b4[_0x5a5813(0x326)]=0x1389]=_0x5a5813(0x326),_0x1a81b4[_0x1a81b4[_0x5a5813(0x3bd)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1a81b4[_0x1a81b4[_0x5a5813(0x123)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1a81b4[_0x1a81b4[_0x5a5813(0x2bc)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x1a81b4[_0x1a81b4['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x1a81b4[_0x1a81b4[_0x5a5813(0x182)]=0x1b5a]=_0x5a5813(0x182),_0x1a81b4[_0x1a81b4['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1a81b4[_0x1a81b4['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1a81b4[_0x1a81b4[_0x5a5813(0x109)]=0x1b5d]=_0x5a5813(0x109),_0x1a81b4[_0x1a81b4['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x5a5813(0x1a4),_0x1a81b4[_0x1a81b4[_0x5a5813(0x2c3)]=0x2329]=_0x5a5813(0x2c3),_0x1a81b4[_0x1a81b4[_0x5a5813(0x1b4)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1a81b4[_0x1a81b4['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x5a5813(0x110),_0x1a81b4[_0x1a81b4[_0x5a5813(0xcc)]=0x232c]=_0x5a5813(0xcc),_0x1a81b4[_0x1a81b4['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x1a81b4[_0x1a81b4[_0x5a5813(0x27a)]=0x2711]=_0x5a5813(0x27a),_0x1a81b4[_0x1a81b4[_0x5a5813(0x2d5)]=0x2712]=_0x5a5813(0x2d5),_0x1a81b4[_0x1a81b4['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5a5813(0x47c),_0x1a81b4[_0x1a81b4[_0x5a5813(0x3b2)]=0x2714]=_0x5a5813(0x3b2),_0x1a81b4[_0x1a81b4[_0x5a5813(0x264)]=-0x1]=_0x5a5813(0x264),_0x1a81b4))(Et||{}),H=(_0x32d092=>(_0x32d092[_0x32d092[_0x5a5813(0x176)]=0x0]=_0x5a5813(0x176),_0x32d092[_0x32d092[_0x5a5813(0x2fe)]=0x1]=_0x5a5813(0x2fe),_0x32d092[_0x32d092['UNIVER_SHEET']=0x2]=_0x5a5813(0xe6),_0x32d092[_0x32d092[_0x5a5813(0x482)]=0x3]=_0x5a5813(0x482),_0x32d092[_0x32d092['UNIVER_PROJECT']=0x4]=_0x5a5813(0x224),_0x32d092[_0x32d092[_0x5a5813(0x264)]=-0x1]='UNRECOGNIZED',_0x32d092))(H||{}),b=(_0x5cbec1=>(_0x5cbec1[_0x5cbec1[_0x5a5813(0x338)]=0x0]=_0x5a5813(0x338),_0x5cbec1[_0x5cbec1['HELLO']=0x1]=_0x5a5813(0x3f4),_0x5cbec1[_0x5cbec1[_0x5a5813(0x477)]=0x2]='JOIN',_0x5cbec1[_0x5cbec1[_0x5a5813(0x1e9)]=0x3]='LEAVE',_0x5cbec1[_0x5cbec1['INGEST']=0x4]=_0x5a5813(0xb3),_0x5cbec1[_0x5cbec1[_0x5a5813(0x1d0)]=0x5]=_0x5a5813(0x1d0),_0x5cbec1[_0x5cbec1[_0x5a5813(0x32c)]=0x6]=_0x5a5813(0x32c),_0x5cbec1[_0x5cbec1['UNRECOGNIZED']=-0x1]=_0x5a5813(0x264),_0x5cbec1))(b||{}),Ge=(_0x1e9c83=>(_0x1e9c83[_0x1e9c83[_0x5a5813(0x1b7)]=0x0]=_0x5a5813(0x1b7),_0x1e9c83[_0x1e9c83['OK']=0x1]='OK',_0x1e9c83[_0x1e9c83[_0x5a5813(0x3c5)]=0x2]=_0x5a5813(0x3c5),_0x1e9c83[_0x1e9c83[_0x5a5813(0x264)]=-0x1]=_0x5a5813(0x264),_0x1e9c83))(Ge||{}),bt=(_0xeb3d5f=>(_0xeb3d5f[_0xeb3d5f[_0x5a5813(0x314)]=0x0]=_0x5a5813(0x314),_0xeb3d5f[_0xeb3d5f['HttpImport']=0x1]=_0x5a5813(0x2e4),_0xeb3d5f[_0xeb3d5f['HttpExport']=0x2]=_0x5a5813(0x2d4),_0xeb3d5f[_0xeb3d5f[_0x5a5813(0x19c)]=0x3]='UnitEmbedded',_0xeb3d5f[_0xeb3d5f[_0x5a5813(0x2c7)]=0x4]=_0x5a5813(0x2c7),_0xeb3d5f[_0xeb3d5f[_0x5a5813(0x264)]=-0x1]=_0x5a5813(0x264),_0xeb3d5f))(bt||{});const $=_0x5a5813(0x2bd),os={};function Tt(_0x396197){const _0x365df2=_0x5a5813;var _0xa047d1,_0x1c5734,_0x19af53,_0x44a7f1,_0x491287;const _0x317dbd=_0x396197[_0x365df2(0x9c)],_0x528d44=JSON['parse'](_0x317dbd);switch(_0x528d44['cmd']){case b[_0x365df2(0x1d0)]:case b[_0x365df2(0x3f4)]:{const _0x345c22=_0x528d44[_0x365df2(0x231)];return{..._0x528d44,'data':_0x345c22,'cmd':_0x528d44[_0x365df2(0xf4)]};}case b[_0x365df2(0x477)]:{const _0x6e613b=_0x528d44['joinRsp'];return{..._0x528d44,'data':_0x6e613b,'cmd':_0x528d44[_0x365df2(0xf4)]};}case b[_0x365df2(0x32c)]:{const _0x46f2a5=_0x528d44['collaMsg'];switch(_0x46f2a5[_0x365df2(0x25e)]){case _[_0x365df2(0x409)][_0x365df2(0x8e)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':(_0xa047d1=_0x46f2a5[_0x365df2(0x23c)])==null?void 0x0:_0xa047d1['cs']},'cmd':_0x528d44['cmd']};case _[_0x365df2(0x409)][_0x365df2(0x11f)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':(_0x1c5734=_0x46f2a5[_0x365df2(0x2cc)])==null?void 0x0:_0x1c5734['cs']},'cmd':_0x528d44[_0x365df2(0xf4)]};case _[_0x365df2(0x409)][_0x365df2(0x28b)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':(_0x19af53=_0x46f2a5[_0x365df2(0x3f7)])==null?void 0x0:_0x19af53['cs']},'cmd':_0x528d44[_0x365df2(0xf4)]};case _['CollaborationEvent'][_0x365df2(0x144)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':(_0x44a7f1=_0x46f2a5[_0x365df2(0x4a9)])==null?void 0x0:_0x44a7f1['cs']},'cmd':_0x528d44['cmd']};case _[_0x365df2(0x409)][_0x365df2(0x15f)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':(_0x491287=_0x46f2a5[_0x365df2(0x3d4)])==null?void 0x0:_0x491287['cs']},'cmd':_0x528d44[_0x365df2(0xf4)]};case _[_0x365df2(0x409)][_0x365df2(0x107)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':_0x46f2a5['updateCursorEvent']},'cmd':_0x528d44[_0x365df2(0xf4)]};case _[_0x365df2(0x409)]['USERS_ENTER']:return{..._0x528d44,'data':{..._0x46f2a5,'data':_0x46f2a5[_0x365df2(0x1f6)]},'cmd':_0x528d44[_0x365df2(0xf4)]};case _[_0x365df2(0x409)][_0x365df2(0x12e)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':_0x46f2a5[_0x365df2(0x474)]},'cmd':_0x528d44['cmd']};case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x528d44,'data':{..._0x46f2a5,'data':_0x46f2a5[_0x365df2(0x405)]},'cmd':_0x528d44[_0x365df2(0xf4)]};case _[_0x365df2(0x409)][_0x365df2(0x192)]:case _['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x528d44,'data':{..._0x46f2a5,'data':_0x46f2a5[_0x365df2(0x279)]},'cmd':_0x528d44[_0x365df2(0xf4)]};case _['CollaborationEvent'][_0x365df2(0x1c3)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':_0x46f2a5[_0x365df2(0x405)]},'cmd':_0x528d44['cmd']};case _['CollaborationEvent'][_0x365df2(0x33f)]:return{..._0x528d44,'data':_0x46f2a5,'cmd':_0x528d44['cmd']};case _[_0x365df2(0x409)][_0x365df2(0x390)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':_0x46f2a5['commentUpdateEvent']},'cmd':_0x528d44[_0x365df2(0xf4)]};case _[_0x365df2(0x409)][_0x365df2(0x43f)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':_0x46f2a5['updatePermissionObjEvent']},'cmd':_0x528d44[_0x365df2(0xf4)]};case _['CollaborationEvent'][_0x365df2(0xba)]:return{..._0x528d44,'data':{..._0x46f2a5,'data':_0x46f2a5[_0x365df2(0x2c1)]},'cmd':_0x528d44['cmd']};default:return _0x528d44;}}default:return _0x528d44;}}function Rt(_0x160ae6){const _0x2d7d93=_0x5a5813;switch(_0x160ae6[_0x2d7d93(0xf4)]){case b[_0x2d7d93(0x1d0)]:case b[_0x2d7d93(0x3f4)]:return JSON[_0x2d7d93(0x4ac)]({'cmd':_0x160ae6[_0x2d7d93(0xf4)],'routeKey':_0x160ae6['routeKey']});case b[_0x2d7d93(0xb3)]:{let _0xd03cff;switch(_0x160ae6[_0x2d7d93(0x9c)][_0x2d7d93(0x25e)]){case _[_0x2d7d93(0x409)]['UPDATE_CURSOR']:{_0xd03cff={'eventID':_[_0x2d7d93(0x409)][_0x2d7d93(0x107)],'updateCursorEvent':_0x160ae6[_0x2d7d93(0x9c)][_0x2d7d93(0x9c)]};break;}case _[_0x2d7d93(0x409)][_0x2d7d93(0x12e)]:{_0xd03cff={'eventID':_[_0x2d7d93(0x409)][_0x2d7d93(0x12e)],'leaveEvent':_0x160ae6[_0x2d7d93(0x9c)][_0x2d7d93(0x9c)]};break;}case _[_0x2d7d93(0x409)][_0x2d7d93(0x2f8)]:{_0xd03cff={'eventID':_[_0x2d7d93(0x409)][_0x2d7d93(0x2f8)],'joinEvent':_0x160ae6[_0x2d7d93(0x9c)][_0x2d7d93(0x9c)]};break;}case _[_0x2d7d93(0x409)][_0x2d7d93(0x226)]:{_0xd03cff={'eventID':_[_0x2d7d93(0x409)][_0x2d7d93(0x226)],'liveShareNewHost':_0x160ae6[_0x2d7d93(0x9c)][_0x2d7d93(0x9c)]};break;}case _[_0x2d7d93(0x409)]['LIVESHARE_OPERATION']:{_0xd03cff={'eventID':_[_0x2d7d93(0x409)][_0x2d7d93(0x39a)],'liveShareOperation':_0x160ae6[_0x2d7d93(0x9c)][_0x2d7d93(0x9c)]};break;}case _['CollaborationEvent'][_0x2d7d93(0x1c3)]:{_0xd03cff={'eventID':_[_0x2d7d93(0x409)][_0x2d7d93(0x1c3)],'liveShareTerminate':_0x160ae6['data'][_0x2d7d93(0x9c)]};break;}case _['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0xd03cff={'eventID':_[_0x2d7d93(0x409)][_0x2d7d93(0x142)],'liveShareRequestHost':_0x160ae6[_0x2d7d93(0x9c)][_0x2d7d93(0x9c)]};break;}case _[_0x2d7d93(0x409)][_0x2d7d93(0x192)]:{_0xd03cff={'eventID':_['CollaborationEvent'][_0x2d7d93(0x192)]};break;}default:_0xd03cff={'eventID':_0x160ae6[_0x2d7d93(0x9c)]['eventID']};}return JSON[_0x2d7d93(0x4ac)]({'cmd':_0x160ae6[_0x2d7d93(0xf4)],'routeKey':_0x160ae6[_0x2d7d93(0x35b)],'collaMsg':_0xd03cff});}case b['JOIN']:return JSON['stringify']({'cmd':_0x160ae6[_0x2d7d93(0xf4)],'routeKey':_0x160ae6[_0x2d7d93(0x35b)],'joinReq':_0x160ae6['data']});case b[_0x2d7d93(0x1e9)]:return JSON['stringify']({'cmd':_0x160ae6['cmd'],'routeKey':_0x160ae6[_0x2d7d93(0x35b)],'leaveReq':_0x160ae6['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var as=Object[_0x5a5813(0x40e)],cs=Object[_0x5a5813(0x3b4)],ls=(_0x1a2fa2,_0x5b73ce,_0x14b6e5,_0x2b6e91)=>{const _0x44357c=_0x5a5813;for(var _0x1605d1=_0x2b6e91>0x1?void 0x0:_0x2b6e91?cs(_0x5b73ce,_0x14b6e5):_0x5b73ce,_0x316a9d=_0x1a2fa2[_0x44357c(0x492)]-0x1,_0x765d21;_0x316a9d>=0x0;_0x316a9d--)(_0x765d21=_0x1a2fa2[_0x316a9d])&&(_0x1605d1=(_0x2b6e91?_0x765d21(_0x5b73ce,_0x14b6e5,_0x1605d1):_0x765d21(_0x1605d1))||_0x1605d1);return _0x2b6e91&&_0x1605d1&&as(_0x5b73ce,_0x14b6e5,_0x1605d1),_0x1605d1;},ae=(_0x53dbbc,_0x1892be)=>(_0x302903,_0x29162)=>_0x1892be(_0x302903,_0x29162,_0x53dbbc);const Ye=a[_0x5a5813(0x8f)]('univer-pro.collaboration-client-socket-service');function hs(_0xae85b,_0x1c6a7f,_0x1f903a){const _0x15f9a5=_0x5a5813;return _0xae85b+'/'+_0x1c6a7f+_0x15f9a5(0x2cf)+_0x1f903a+_0x15f9a5(0x14c);}exports[_0x5a5813(0x277)]=class extends a[_0x5a5813(0x183)]{constructor(_0x4cd021,_0x4b9d0f,_0x21c9b,_0x25349d,_0x1ce1a8){const _0xfa98d5=_0x5a5813;super(),this[_0xfa98d5(0x2dc)]=_0x4cd021,this['_ws']=_0x4b9d0f,this[_0xfa98d5(0x36e)]=_0x21c9b,this[_0xfa98d5(0x452)]=_0x25349d,this[_0xfa98d5(0x442)]=_0x1ce1a8;}[_0x5a5813(0x1f9)](_0x40ec2d){const _0xb8e3f1=_0x5a5813,_0x3d5274=this[_0xb8e3f1(0x10a)][_0xb8e3f1(0x1f9)](_0x40ec2d);if(!_0x3d5274)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1bf547=new a[(_0xb8e3f1(0xd1))](),_0x11531c=new v[(_0xb8e3f1(0x98))]();_0x1bf547[_0xb8e3f1(0x3a1)](_0x3d5274[_0xb8e3f1(0x171)][_0xb8e3f1(0x11c)](_0x428734=>_0x11531c[_0xb8e3f1(0x33b)](_0x428734))),_0x1bf547[_0xb8e3f1(0x3a1)](a[_0xb8e3f1(0x293)](()=>_0x11531c['complete']()));const _0x78c749=new v[(_0xb8e3f1(0x98))]();_0x1bf547[_0xb8e3f1(0x3a1)](_0x3d5274[_0xb8e3f1(0x1d7)][_0xb8e3f1(0x11c)](_0x30a855=>_0x78c749[_0xb8e3f1(0x33b)](_0x30a855))),_0x1bf547['add'](a[_0xb8e3f1(0x293)](()=>_0x78c749[_0xb8e3f1(0x1f8)]()));const _0x474e6d=new v[(_0xb8e3f1(0x98))]();_0x1bf547[_0xb8e3f1(0x3a1)](_0x3d5274[_0xb8e3f1(0x49a)][_0xb8e3f1(0x11c)](_0x471de7=>{const _0x1245c0=_0xb8e3f1,_0x5971ac=Tt(_0x471de7);_0x474e6d[_0x1245c0(0x33b)](_0x5971ac);})),_0x1bf547['add'](a['toDisposable'](()=>_0x474e6d[_0xb8e3f1(0x1f8)]()));let _0x56105f;const _0x5a5725=()=>{const _0x51f588=_0xb8e3f1;_0x78c749[_0x51f588(0x33b)](new Event(_0x51f588(0x24f))),_0x11531c[_0x51f588(0x33b)](new CloseEvent(_0x51f588(0x24f))),_0x56105f[_0x51f588(0x2f1)]();};return _0x56105f={'memberID':'','close$':_0x11531c['asObservable'](),'error$':_0x78c749[_0xb8e3f1(0x195)](),'open$':_0x3d5274[_0xb8e3f1(0x43d)],'message$':_0x474e6d[_0xb8e3f1(0x195)](),'send':_0x5f44d7=>{const _0xf68e33=_0xb8e3f1;if(_0x5f44d7[_0xf68e33(0xf4)]===b[_0xf68e33(0xb3)]){if(_0x5f44d7[_0xf68e33(0x9c)][_0xf68e33(0x25e)]===_[_0xf68e33(0x409)][_0xf68e33(0x2f0)]){this[_0xf68e33(0x4ba)](_0x56105f,_0x5f44d7[_0xf68e33(0x9c)])[_0xf68e33(0x3a6)](_0x5423ed=>{const _0x39fce1=_0xf68e33;this[_0x39fce1(0x452)][_0x39fce1(0x122)](_0x5423ed),_0x5a5725();});return;}if(_0x5f44d7[_0xf68e33(0x9c)][_0xf68e33(0x25e)]===_[_0xf68e33(0x409)]['FETCH_MISSING']){const _0x23c3cc=_0x5f44d7['data'];this[_0xf68e33(0x463)](_0x23c3cc)[_0xf68e33(0x2a3)](_0x49d6d4=>{const _0x216563=_0xf68e33;_0x474e6d[_0x216563(0x33b)]({'cmd':b['RECV'],'code':Ge['OK'],'routeKey':_0x23c3cc[_0x216563(0x9c)][_0x216563(0x129)],'routeType':'','data':{'eventID':_[_0x216563(0x409)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x49d6d4}}});})[_0xf68e33(0x3a6)](_0x4b569e=>{const _0xfe2f47=_0xf68e33;this[_0xfe2f47(0x452)][_0xfe2f47(0x122)](_0x4b569e),_0x5a5725();});return;}}_0x3d5274['send'](Rt(_0x5f44d7));},'close':()=>{const _0x539585=_0xb8e3f1;_0x3d5274[_0x539585(0x2f1)](),_0x1bf547[_0x539585(0x34b)]();}},_0x56105f;}async[_0x5a5813(0x4ba)](_0x38c43a,_0x40ca07){const _0x1117cc=_0x5a5813;var _0x20b0d0,_0xfaf8ec;const {unitType:_0x542926,unitID:_0x15561d,changeset:_0x2768e8}=_0x40ca07['data'],_0x1520c5={'unitID':_0x15561d,'memberID':_0x38c43a[_0x1117cc(0x2de)],'type':_0x542926,'changeset':_['parseChangesetToProtocol'](_0x2768e8)},_0x50e65a=this[_0x1117cc(0x36e)][_0x1117cc(0x322)](pt),_0x3353b3=this[_0x1117cc(0x36e)][_0x1117cc(0x322)]($),_0x1f304b=hs((_0xfaf8ec=(_0x20b0d0=_0x3353b3==null?void 0x0:_0x3353b3[_0x1117cc(0x17e)])!=null?_0x20b0d0:_0x50e65a)!=null?_0xfaf8ec:ns,_0x542926,_0x15561d);try{await this[_0x1117cc(0x2dc)]['post'](_0x1f304b,{'body':_0x1520c5});}catch(_0x5eb836){throw this['_logService'][_0x1117cc(0x122)](_0x1117cc(0x487),_0x1117cc(0x23d)),_0x5eb836;}}async[_0x5a5813(0x463)](_0x5bfa1c){const _0x2d1f07=_0x5a5813,{unitID:_0x122042,from:_0x4a9878,to:_0x6f0bff,unitType:_0x40f80c}=_0x5bfa1c[_0x2d1f07(0x9c)];return(await this['_snapshotServerService'][_0x2d1f07(0x2d8)]({'metadata':void 0x0},{'unitID':_0x122042,'type':_0x40f80c,'from':_0x4a9878,'to':_0x6f0bff}))[_0x2d1f07(0x40b)];}},exports[_0x5a5813(0x277)]=ls([ae(0x0,a['Inject'](w[_0x5a5813(0x1fd)])),ae(0x1,a[_0x5a5813(0x9b)](w[_0x5a5813(0x31b)])),ae(0x2,a[_0x5a5813(0x341)]),ae(0x3,a[_0x5a5813(0x398)]),ae(0x4,_[_0x5a5813(0x3b8)])],exports[_0x5a5813(0x277)]);const _s='collaboration_new_changeset';function us(_0x5d9c39){const _0x184da0=_0x5a5813;return JSON[_0x184da0(0x4ac)](_0x5d9c39)[_0x184da0(0x492)];}class Ke{constructor(){const _0x1fe6d2=_0x5a5813;u(this,_0x1fe6d2(0x479),new v[(_0x1fe6d2(0x98))]()),u(this,_0x1fe6d2(0x292),this[_0x1fe6d2(0x479)][_0x1fe6d2(0x195)]());}[_0x5a5813(0x2a2)](_0x37efd1){this['_commentUpdate$']['next'](_0x37efd1);}}var ds=Object[_0x5a5813(0x40e)],Ss=Object[_0x5a5813(0x3b4)],vs=(_0xc1e6a5,_0x27279e,_0xaa57d4,_0x199a11)=>{const _0x3f4bca=_0x5a5813;for(var _0x293545=_0x199a11>0x1?void 0x0:_0x199a11?Ss(_0x27279e,_0xaa57d4):_0x27279e,_0xb129ab=_0xc1e6a5[_0x3f4bca(0x492)]-0x1,_0x49c343;_0xb129ab>=0x0;_0xb129ab--)(_0x49c343=_0xc1e6a5[_0xb129ab])&&(_0x293545=(_0x199a11?_0x49c343(_0x27279e,_0xaa57d4,_0x293545):_0x49c343(_0x293545))||_0x293545);return _0x199a11&&_0x293545&&ds(_0x27279e,_0xaa57d4,_0x293545),_0x293545;},et=(_0x5bd9c3,_0x3ef434)=>(_0x4add9a,_0x32ea90)=>_0x3ef434(_0x4add9a,_0x32ea90,_0x5bd9c3);exports[_0x5a5813(0x2d7)]=class extends a[_0x5a5813(0x183)]{constructor(_0x5daad7,_0x4373e3){const _0x17807d=_0x5a5813;super(),u(this,'_roomMembers',new Map()),(this[_0x17807d(0x15d)]=_0x5daad7,this[_0x17807d(0xbc)]=_0x4373e3,this[_0x17807d(0xd3)](a[_0x17807d(0x293)](v['merge'](this[_0x17807d(0x15d)][_0x17807d(0x36f)](a[_0x17807d(0x48a)][_0x17807d(0xe6)])['pipe'](E[_0x17807d(0x29a)](_0x2d26c9=>_0x2d26c9[_0x17807d(0x488)]())),this[_0x17807d(0x15d)][_0x17807d(0x36f)](a[_0x17807d(0x48a)]['UNIVER_DOC'])[_0x17807d(0x2dd)](E[_0x17807d(0x29a)](_0x554659=>_0x554659[_0x17807d(0x488)]())),this[_0x17807d(0x15d)]['getTypeOfUnitDisposed$'](a[_0x17807d(0x48a)][_0x17807d(0x482)])[_0x17807d(0x2dd)](E[_0x17807d(0x29a)](_0x26d292=>_0x26d292[_0x17807d(0x488)]())))[_0x17807d(0x11c)](_0x39db87=>this[_0x17807d(0x21f)](_0x39db87)))));}[_0x5a5813(0x248)](_0x211525){const _0x2a301b=_0x5a5813;this[_0x2a301b(0xbc)]['setCurrentUser'](_0x211525);}['getCurrentUser'](){const _0x13aa87=_0x5a5813;return this[_0x13aa87(0xbc)][_0x13aa87(0x421)]();}['updateMember'](_0x50c2d6,_0x1a99e9){const _0x19fb94=_0x5a5813;let _0x25647f=this[_0x19fb94(0x366)]['get'](_0x50c2d6);_0x25647f||(_0x25647f=new ms(),this[_0x19fb94(0x366)][_0x19fb94(0x3a9)](_0x50c2d6,_0x25647f)),_0x25647f[_0x19fb94(0xc8)](_0x1a99e9);}[_0x5a5813(0x198)](_0x2ec46d,_0x375cbf){const _0x13088b=_0x5a5813,_0x55d1db=this['_roomMembers'][_0x13088b(0x4a8)](_0x2ec46d);_0x55d1db&&_0x55d1db[_0x13088b(0x198)](_0x375cbf);}[_0x5a5813(0x356)](_0x28a71c){const _0x2616d9=_0x5a5813;return this[_0x2616d9(0x366)][_0x2616d9(0x4a8)](_0x28a71c);}['getMember'](_0x2c1ba6,_0x52b43f){const _0xca939c=_0x5a5813,_0x35aae2=this[_0xca939c(0x366)][_0xca939c(0x4a8)](_0x2c1ba6);if(_0x35aae2)return _0x35aae2['getMember'](_0x52b43f);}[_0x5a5813(0x21f)](_0x115261){const _0x59c2c9=_0x5a5813,_0x219559=this[_0x59c2c9(0x366)][_0x59c2c9(0x4a8)](_0x115261);_0x219559&&(_0x219559[_0x59c2c9(0x34b)](),this[_0x59c2c9(0x366)]['delete'](_0x115261));}[_0x5a5813(0x34b)](){const _0x2a8ac3=_0x5a5813;this['_roomMembers'][_0x2a8ac3(0x1f2)](_0x57ce60=>_0x57ce60['dispose']()),this[_0x2a8ac3(0x366)][_0x2a8ac3(0x132)]();}},exports[_0x5a5813(0x2d7)]=vs([et(0x0,a[_0x5a5813(0x411)]),et(0x1,a['Inject'](a[_0x5a5813(0x4a4)]))],exports['MemberService']);class ms extends a[_0x5a5813(0x183)]{constructor(){const _0xe9fb4=_0x5a5813;super(...arguments),u(this,_0xe9fb4(0x459),new Map());}[_0x5a5813(0x34b)](){const _0x4aa876=_0x5a5813;this[_0x4aa876(0x459)][_0x4aa876(0x132)]();}['updateMember'](_0x5bd551){const _0x51b03d=_0x5a5813;this[_0x51b03d(0x459)]['set'](_0x5bd551['memberID'],_0x5bd551);}[_0x5a5813(0x198)](_0x5d9b89){const _0x3ae010=_0x5a5813;this[_0x3ae010(0x459)]['delete'](_0x5d9b89);}[_0x5a5813(0x4a3)](_0x4f3a37){const _0x4d7d3d=_0x5a5813;return this['_members'][_0x4d7d3d(0x4a8)](_0x4f3a37);}[_0x5a5813(0x3a7)](){const _0x3f63cd=_0x5a5813;return Array['from'](this[_0x3f63cd(0x459)][_0x3f63cd(0xb8)]());}}var gs=Object['defineProperty'],fs=Object[_0x5a5813(0x3b4)],Is=(_0x5389ed,_0xdb120f,_0x4c1803,_0x179937)=>{const _0x232917=_0x5a5813;for(var _0x66469d=_0x179937>0x1?void 0x0:_0x179937?fs(_0xdb120f,_0x4c1803):_0xdb120f,_0x282679=_0x5389ed[_0x232917(0x492)]-0x1,_0x421198;_0x282679>=0x0;_0x282679--)(_0x421198=_0x5389ed[_0x282679])&&(_0x66469d=(_0x179937?_0x421198(_0xdb120f,_0x4c1803,_0x66469d):_0x421198(_0x66469d))||_0x66469d);return _0x179937&&_0x66469d&&gs(_0xdb120f,_0x4c1803,_0x66469d),_0x66469d;},G=(_0x38da76,_0x1d8236)=>(_0x2381eb,_0x4634ab)=>_0x1d8236(_0x2381eb,_0x4634ab,_0x38da76),x=(_0x525608=>(_0x525608[_0x525608[_0x5a5813(0x38d)]=0x0]='IDLE',_0x525608[_0x525608[_0x5a5813(0x1fb)]=0x1]=_0x5a5813(0x1fb),_0x525608[_0x525608[_0x5a5813(0x11a)]=0x2]=_0x5a5813(0x11a),_0x525608[_0x525608[_0x5a5813(0x469)]=0x3]='ONLINE',_0x525608))(x||{});exports[_0x5a5813(0x47e)]=class extends a[_0x5a5813(0x18f)]{constructor(_0x230615,_0x220688,_0x1c9b8b,_0x4c290b,_0x2381ed,_0x2ccc11,_0x57c460,_0x5d7d39,_0x32dc45,_0x18f1ca){const _0x152325=_0x5a5813;super(),u(this,_0x152325(0x111),new v['BehaviorSubject'](0x0)),u(this,'sessionStatus$',this[_0x152325(0x111)][_0x152325(0x195)]()),u(this,_0x152325(0x395),new v['Subject']()),u(this,'event$',this[_0x152325(0x395)]['asObservable']()),u(this,_0x152325(0x435)),u(this,_0x152325(0x1ac)),u(this,'_collaborationTimeoutTimer'),u(this,_0x152325(0x1d1),!0x1),u(this,_0x152325(0x4bc),null),(this[_0x152325(0x2d1)]=_0x230615,this[_0x152325(0x452)]=_0x1c9b8b,this[_0x152325(0x1bb)]=_0x4c290b,this[_0x152325(0x3f9)]=_0x2381ed,this[_0x152325(0x36e)]=_0x2ccc11,this['_localeService']=_0x57c460,this[_0x152325(0x3c2)]=_0x5d7d39,this[_0x152325(0x312)]=_0x32dc45,this['_telemetryService']=_0x18f1ca,this[_0x152325(0x1d1)]=!!this[_0x152325(0x370)],_0x220688[_0x152325(0x2dd)](v[_0x152325(0x460)](this[_0x152325(0x207)]))[_0x152325(0x11c)](_0x474ac0=>{const _0x220409=_0x152325;var _0x57ac3d;typeof _0x474ac0>'u'||(this[_0x220409(0x435)]=_0x474ac0,_0x474ac0?(this[_0x220409(0x3ab)](_0x474ac0),this['_socketMessageSubscription']=_0x474ac0[_0x220409(0x49a)][_0x220409(0x11c)](_0x1c1bec=>{const _0x312e54=_0x220409;_0x1c1bec['routeKey']===this[_0x312e54(0x2d1)]&&this[_0x312e54(0x297)](_0x1c1bec);})):(this[_0x220409(0x102)](),this[_0x220409(0x111)][_0x220409(0x33b)](0x2),(_0x57ac3d=this[_0x220409(0x1ac)])==null||_0x57ac3d[_0x220409(0x242)](),this[_0x220409(0x1ac)]=null));}),this[_0x152325(0xd3)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x19d515=_0x152325;var _0x1d9d28;(_0x1d9d28=this[_0x19d515(0x435)])==null||_0x1d9d28['send']({'cmd':b[_0x19d515(0x1e9)],'data':{'roomID':this[_0x19d515(0x2d1)]}});})));}get[_0x5a5813(0x381)](){const _0x26cb90=_0x5a5813;return this['_sessionStatus$'][_0x26cb90(0x4ae)]();}[_0x5a5813(0xbe)](){const _0x491f2d=_0x5a5813;var _0x424195,_0x11c4d3;return(_0x11c4d3=(_0x424195=this[_0x491f2d(0x435)])==null?void 0x0:_0x424195[_0x491f2d(0x2de)])!=null?_0x11c4d3:null;}[_0x5a5813(0x34b)](){const _0x411e20=_0x5a5813;super[_0x411e20(0x34b)](),this['dispose$']['next'](),this[_0x411e20(0x207)][_0x411e20(0x1f8)]();}[_0x5a5813(0x2f1)](){const _0x35b446=_0x5a5813;var _0x8ce9e3,_0x3207f2;this[_0x35b446(0x102)](),(_0x8ce9e3=this[_0x35b446(0x435)])==null||_0x8ce9e3[_0x35b446(0x408)]({'cmd':b[_0x35b446(0x1e9)],'data':{'roomID':this[_0x35b446(0x2d1)]}}),(_0x3207f2=this['_socket'])==null||_0x3207f2[_0x35b446(0x2f1)](),this[_0x35b446(0x395)][_0x35b446(0x1f8)](),this[_0x35b446(0x111)][_0x35b446(0x1f8)](),this[_0x35b446(0x34b)]();}[_0x5a5813(0x297)](_0xc4c0a0){const _0x1bb94d=_0x5a5813;_0xc4c0a0['cmd']===b['JOIN']?this[_0x1bb94d(0x1ca)](_0xc4c0a0):_0xc4c0a0['cmd']===b[_0x1bb94d(0x32c)]&&this[_0x1bb94d(0x269)](_0xc4c0a0);}[_0x5a5813(0x3ab)](_0x3bb189){const _0x535911=_0x5a5813;this['_sessionStatus$'][_0x535911(0x33b)](0x1),_0x3bb189['send']({'cmd':b[_0x535911(0x477)],'routeKey':this[_0x535911(0x2d1)],'routeType':'','data':{'rooms':[{'roomID':this[_0x535911(0x2d1)]}]}});}[_0x5a5813(0x1ca)](_0x4d2019){const _0x54c58b=_0x5a5813;var _0x5d775b;if(_0x4d2019[_0x54c58b(0x28c)]===Ge[_0x54c58b(0x3c5)]){this[_0x54c58b(0x3f9)][_0x54c58b(0x29d)]({'type':J[_0x54c58b(0x359)]['Warning'],'content':this[_0x54c58b(0x36a)]['t']('session.room-full')}),this[_0x54c58b(0x111)][_0x54c58b(0x33b)](0x2);return;}this[_0x54c58b(0x111)][_0x54c58b(0x33b)](0x3);const _0x28aedb=(_0x5d775b=_0x4d2019[_0x54c58b(0x9c)][_0x54c58b(0x3ec)][this[_0x54c58b(0x2d1)]])==null?void 0x0:_0x5d775b[_0x54c58b(0x2f3)];_0x28aedb&&_0x28aedb[_0x54c58b(0x1f2)](_0x7cacd6=>this[_0x54c58b(0x3c2)]['updateMember'](this['_unitID'],_0x7cacd6));}['_onRecvEvent'](_0x59fe4b){const _0x2e5dc7=_0x5a5813;try{const _0x1646e1=_0x59fe4b[_0x2e5dc7(0x9c)];switch(_0x1646e1[_0x2e5dc7(0x25e)]){case _['CollaborationEvent']['USERS_ENTER']:this['_onUserJoin'](_0x1646e1),this[_0x2e5dc7(0x395)][_0x2e5dc7(0x33b)](_0x1646e1);break;case _[_0x2e5dc7(0x409)][_0x2e5dc7(0x12e)]:this[_0x2e5dc7(0x45e)](_0x1646e1),this[_0x2e5dc7(0x395)]['next'](_0x1646e1);break;case _[_0x2e5dc7(0x409)]['CHANGESET_ACK']:case _[_0x2e5dc7(0x409)][_0x2e5dc7(0x15f)]:this[_0x2e5dc7(0x3a2)](),this[_0x2e5dc7(0x34a)](),this[_0x2e5dc7(0x395)][_0x2e5dc7(0x33b)](_0x1646e1);break;case _[_0x2e5dc7(0x409)][_0x2e5dc7(0x33f)]:this[_0x2e5dc7(0x452)][_0x2e5dc7(0x122)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x1646e1)),this[_0x2e5dc7(0x395)][_0x2e5dc7(0x33b)](_0x1646e1);break;case _['CollaborationEvent'][_0x2e5dc7(0x390)]:this[_0x2e5dc7(0x312)][_0x2e5dc7(0x2a2)](_0x1646e1[_0x2e5dc7(0x9c)]),this[_0x2e5dc7(0x395)][_0x2e5dc7(0x33b)](_0x1646e1);break;default:this[_0x2e5dc7(0x395)][_0x2e5dc7(0x33b)](_0x1646e1);}}catch(_0x5c4cdb){this['_logService'][_0x2e5dc7(0x122)](_0x5c4cdb,_0x59fe4b);}}[_0x5a5813(0x33c)](_0x544bf5){const _0x1231b9=_0x5a5813;this[_0x1231b9(0x3c2)][_0x1231b9(0xc8)](this[_0x1231b9(0x2d1)],_0x544bf5[_0x1231b9(0x9c)]);}['_onUserLeave'](_0x5503c7){const _0x39e311=_0x5a5813;this[_0x39e311(0x3c2)][_0x39e311(0x198)](this[_0x39e311(0x2d1)],_0x5503c7[_0x39e311(0x9c)]['memberID']);}async[_0x5a5813(0x408)](_0x3a5510,_0x2a2aed){const _0x69a17c=_0x5a5813;if(this[_0x69a17c(0x381)]!==0x3||!this[_0x69a17c(0x435)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x3a5510[_0x69a17c(0x25e)]===_['CollaborationEvent'][_0x69a17c(0x2f0)]&&(this[_0x69a17c(0x484)](),this[_0x69a17c(0x18a)](_0x3a5510)),this[_0x69a17c(0x435)]['send']({'cmd':b[_0x69a17c(0xb3)],'routeKey':_0x2a2aed,'routeType':'','data':_0x3a5510});}catch(_0x3be8f3){this['_logService'][_0x69a17c(0x122)](_0x3be8f3);}}[_0x5a5813(0x484)](){const _0x3be26e=_0x5a5813;var _0x3f77fc;this[_0x3be26e(0x3e6)]=window[_0x3be26e(0x9a)](()=>{const _0x5a90f4=_0x3be26e;this[_0x5a90f4(0x3e6)]=null,this[_0x5a90f4(0x3f9)]['show']({'type':J[_0x5a90f4(0x359)][_0x5a90f4(0x1ae)],'content':this['_localeService']['t'](_0x5a90f4(0x28d))});},(_0x3f77fc=this['_configService'][_0x3be26e(0x322)](Fe))!=null?_0x3f77fc:gt);}[_0x5a5813(0x34a)](){const _0x5c8db5=_0x5a5813;this[_0x5c8db5(0x3e6)]&&(clearTimeout(this[_0x5c8db5(0x3e6)]),this[_0x5c8db5(0x3e6)]=null);}[_0x5a5813(0x18a)](_0x9e6be5){const _0x3c9b1b=_0x5a5813;if(!this[_0x3c9b1b(0x1d1)])return;const {data:_0x11c414}=_0x9e6be5,{unitID:_0x6b3edb,changeset:_0x412b1d}=_0x11c414,{mutations:_0x6d4c7b,type:_0x3481d1}=_0x412b1d;this[_0x3c9b1b(0x4bc)]={'unitId':_0x6b3edb,'type':_0x3481d1,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':us(_0x6d4c7b)};}[_0x5a5813(0x3a2)](){const _0x2757a8=_0x5a5813;if(this['_shouldReportTelemetry']){if(!this[_0x2757a8(0x4bc)]){this[_0x2757a8(0x452)][_0x2757a8(0x122)](_0x2757a8(0x487),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x2757a8(0x4bc)][_0x2757a8(0x141)]=performance[_0x2757a8(0x90)](),this[_0x2757a8(0x4bc)][_0x2757a8(0x350)]=this[_0x2757a8(0x4bc)]['stopTime']-this[_0x2757a8(0x4bc)][_0x2757a8(0x12f)],this[_0x2757a8(0x370)][_0x2757a8(0x4b7)](_s,this['_telemetryInfo']),this[_0x2757a8(0x4bc)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x62f014=_0x5a5813;this[_0x62f014(0x4bc)]=null;}},exports[_0x5a5813(0x47e)]=Is([G(0x2,a[_0x5a5813(0x398)]),G(0x3,A['IBeforeCloseService']),G(0x4,A[_0x5a5813(0x48f)]),G(0x5,a[_0x5a5813(0x341)]),G(0x6,a['Inject'](a[_0x5a5813(0x20b)])),G(0x7,a['Inject'](exports[_0x5a5813(0x2d7)])),G(0x8,a[_0x5a5813(0x9b)](Ke)),G(0x9,a['Optional'](Kt[_0x5a5813(0xab)]))],exports['CollaborationSession']);var ps=Object[_0x5a5813(0x40e)],Cs=Object[_0x5a5813(0x3b4)],Es=(_0x28f570,_0x529225,_0xc65e68,_0x294e13)=>{const _0x392211=_0x5a5813;for(var _0x23dcc6=_0x294e13>0x1?void 0x0:_0x294e13?Cs(_0x529225,_0xc65e68):_0x529225,_0x4e85bc=_0x28f570[_0x392211(0x492)]-0x1,_0x48d84b;_0x4e85bc>=0x0;_0x4e85bc--)(_0x48d84b=_0x28f570[_0x4e85bc])&&(_0x23dcc6=(_0x294e13?_0x48d84b(_0x529225,_0xc65e68,_0x23dcc6):_0x48d84b(_0x23dcc6))||_0x23dcc6);return _0x294e13&&_0x23dcc6&&ps(_0x529225,_0xc65e68,_0x23dcc6),_0x23dcc6;},ee=(_0x2d15e8,_0x13bd06)=>(_0x1ac813,_0x262077)=>_0x13bd06(_0x1ac813,_0x262077,_0x2d15e8);exports['CollaborationSessionService']=class extends a[_0x5a5813(0x183)]{constructor(_0x3121cb,_0x5cb447,_0x5988bc,_0x465baa,_0x2c655c,_0x2622c8){const _0x351b6b=_0x5a5813;super(),u(this,_0x351b6b(0x1be),new v[(_0x351b6b(0xd2))](void 0x0)),u(this,_0x351b6b(0x331),this[_0x351b6b(0x1be)][_0x351b6b(0x195)]()),u(this,'_candidateSocket',null),u(this,_0x351b6b(0x1c5),new Map()),u(this,_0x351b6b(0x496),new v['BehaviorSubject'](x[_0x351b6b(0x38d)])),u(this,_0x351b6b(0x424),this[_0x351b6b(0x496)]['asObservable']()),u(this,_0x351b6b(0x3d1),!0x1),u(this,_0x351b6b(0x2da)),u(this,_0x351b6b(0x403),0x0),u(this,_0x351b6b(0x298)),u(this,_0x351b6b(0x34c)),(this[_0x351b6b(0x33a)]=_0x3121cb,this[_0x351b6b(0x36a)]=_0x5cb447,this[_0x351b6b(0x3f9)]=_0x5988bc,this[_0x351b6b(0x452)]=_0x465baa,this[_0x351b6b(0x36e)]=_0x2c655c,this[_0x351b6b(0x1ad)]=_0x2622c8,this[_0x351b6b(0x2a0)]());}get[_0x5a5813(0x435)](){const _0x5bdb7d=_0x5a5813;return this[_0x5bdb7d(0x1be)]['getValue']();}['_initEventListeners'](){const _0x36f6ea=_0x5a5813;this[_0x36f6ea(0x462)](),this[_0x36f6ea(0x19e)]();}['dispose'](){const _0x52a7c8=_0x5a5813;super[_0x52a7c8(0x34b)](),this[_0x52a7c8(0x1c5)][_0x52a7c8(0x1f2)](_0x3a3694=>_0x3a3694[_0x52a7c8(0x34b)]()),this[_0x52a7c8(0x1c5)]['clear'](),this[_0x52a7c8(0x496)][_0x52a7c8(0x1f8)]();}async[_0x5a5813(0x44c)](_0x4bf8ae){const _0x5e2209=_0x5a5813;if(this['_sessions'][_0x5e2209(0xce)](_0x4bf8ae))return this['_sessions'][_0x5e2209(0x4a8)](_0x4bf8ae);this[_0x5e2209(0x283)]();const _0x462afc=this[_0x5e2209(0x33a)][_0x5e2209(0x127)](exports['CollaborationSession'],_0x4bf8ae,this[_0x5e2209(0x1be)][_0x5e2209(0x195)]());return this[_0x5e2209(0x1c5)][_0x5e2209(0x3a9)](_0x4bf8ae,_0x462afc),_0x462afc;}[_0x5a5813(0x38a)](_0x2f2a6e){const _0x5a122b=_0x5a5813;var _0x48c173;const _0x19f777=this[_0x5a122b(0x1c5)][_0x5a122b(0x4a8)](_0x2f2a6e);_0x19f777&&(this[_0x5a122b(0x1c5)][_0x5a122b(0x1a3)](_0x2f2a6e),_0x19f777[_0x5a122b(0x2f1)]()),this['_sessions'][_0x5a122b(0xa1)]||(_0x48c173=this['_socket'])==null||_0x48c173[_0x5a122b(0x2f1)]();}['reconnect'](){const _0x313437=_0x5a5813;this['_retryCount']=0x0,this[_0x313437(0x2da)]!=null&&(clearTimeout(this[_0x313437(0x2da)]),this[_0x313437(0x2da)]=null),this[_0x313437(0x197)]();}[_0x5a5813(0x239)](){const _0x53a9fa=_0x5a5813;var _0x2d11a0,_0x192440;const _0xd72e4b=this[_0x53a9fa(0x36e)][_0x53a9fa(0x322)](vt),_0x18bfe8=this['_configService'][_0x53a9fa(0x322)]($),_0x495ca0=(_0x192440=(_0x2d11a0=_0x18bfe8==null?void 0x0:_0x18bfe8[_0x53a9fa(0x410)])!=null?_0x2d11a0:_0xd72e4b)!=null?_0x192440:Qt,_0x16010b=this[_0x53a9fa(0x1ad)][_0x53a9fa(0x1f9)](_0x495ca0);return this[_0x53a9fa(0x3e3)]=_0x16010b,_0x16010b;}[_0x5a5813(0x283)](){const _0x12b62f=_0x5a5813;var _0x4a9863,_0x55bf52;try{const _0xcccb5c=(_0x55bf52=(_0x4a9863=this[_0x12b62f(0x435)])!=null?_0x4a9863:this[_0x12b62f(0x3e3)])!=null?_0x55bf52:this[_0x12b62f(0x239)]();if(_0xcccb5c){const _0xc94b6e=_0xcccb5c[_0x12b62f(0x408)];_0xcccb5c['send']=_0x157ba7=>(this[_0x12b62f(0x2b9)](),_0xc94b6e[_0x12b62f(0xeb)](_0xcccb5c,[_0x157ba7])),_0xcccb5c[_0x12b62f(0x49a)][_0x12b62f(0x11c)](_0x4627d3=>this[_0x12b62f(0xf3)](_0xcccb5c,_0x4627d3)),_0xcccb5c[_0x12b62f(0x1d7)]['pipe'](E[_0x12b62f(0x48c)](0x1))[_0x12b62f(0x11c)](_0x4504c9=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x4504c9)),_0xcccb5c[_0x12b62f(0x43d)]['pipe'](E[_0x12b62f(0x48c)](0x1))[_0x12b62f(0x11c)](()=>{const _0x2823f6=_0x12b62f;this[_0x2823f6(0x26d)](_0xcccb5c);}),_0xcccb5c['close$'][_0x12b62f(0x2dd)](E[_0x12b62f(0x48c)](0x1))[_0x12b62f(0x11c)](_0x447981=>{const _0x56a11e=_0x12b62f;this[_0x56a11e(0x452)][_0x56a11e(0x404)](_0x56a11e(0x401),_0x56a11e(0xa7),_0x447981),this[_0x56a11e(0x11b)]();});}}catch(_0x5c783a){this[_0x12b62f(0x452)]['error'](_0x5c783a),this[_0x12b62f(0x11b)]();}}[_0x5a5813(0x26d)](_0xea66e3){const _0x2872c4=_0x5a5813;this[_0x2872c4(0x452)][_0x2872c4(0x404)]('[CollaborationSessionService]',_0x2872c4(0x13c)),_0xea66e3[_0x2872c4(0x408)]({'cmd':b[_0x2872c4(0x3f4)]}),this['_rescheduleHeartbeat']();}[_0x5a5813(0x462)](){const _0x2cd03c=_0x5a5813;window['addEventListener'](_0x2cd03c(0x240),()=>this[_0x2cd03c(0xdc)]());}['_onOffline'](){const _0x3fe4a5=_0x5a5813;this[_0x3fe4a5(0x3d1)]=!0x1,this[_0x3fe4a5(0x3e3)]=null,this[_0x3fe4a5(0x496)][_0x3fe4a5(0x33b)](x[_0x3fe4a5(0x11a)]),this[_0x3fe4a5(0x1be)][_0x3fe4a5(0x33b)](null),this[_0x3fe4a5(0x43e)](),this[_0x3fe4a5(0x340)]();}[_0x5a5813(0x11b)](){const _0x5ae5eb=_0x5a5813;var _0x20ae6f;this[_0x5ae5eb(0xdc)](),this['_retryCount']<((_0x20ae6f=this[_0x5ae5eb(0x36e)]['getConfig'](ft))!=null?_0x20ae6f:ss)?(this[_0x5ae5eb(0x3f9)][_0x5ae5eb(0x29d)]({'key':_0x5ae5eb(0x397),'type':J[_0x5ae5eb(0x359)][_0x5ae5eb(0x328)],'content':this[_0x5ae5eb(0x36a)]['t'](_0x5ae5eb(0x15a))}),this[_0x5ae5eb(0x197)]()):this[_0x5ae5eb(0x3f9)][_0x5ae5eb(0x29d)]({'key':_0x5ae5eb(0x397),'type':J[_0x5ae5eb(0x359)][_0x5ae5eb(0x1ae)],'content':this[_0x5ae5eb(0x36a)]['t']('session.connection-failed')});}[_0x5a5813(0x19e)](){const _0x2edde4=_0x5a5813,_0x436117=()=>{const _0x59acce=_0x14f1;this[_0x59acce(0x435)]||this['reconnect']();},_0x4f3577=()=>{const _0x4211db=_0x14f1;this['_socket']||document[_0x4211db(0x325)]===_0x4211db(0x191)||this[_0x4211db(0x24d)]();};window['addEventListener'](_0x2edde4(0x480),_0x436117),document['addEventListener']('visibilitychange',_0x4f3577);}[_0x5a5813(0x197)](){const _0x414373=_0x5a5813;var _0x1883c2;const _0x4eeb1b=this[_0x414373(0x403)],_0x2ba9b5=this[_0x414373(0x36e)][_0x414373(0x322)]($),_0x4bcdec=_0x4eeb1b===0x0?0x0:((_0x1883c2=_0x2ba9b5==null?void 0x0:_0x2ba9b5['retryConnectingInterval'])!=null?_0x1883c2:ts)*0x2**_0x4eeb1b;this['_retryConnectingTimer']=window[_0x414373(0x9a)](()=>{const _0x1686aa=_0x414373;clearTimeout(this[_0x1686aa(0x2da)]),this[_0x1686aa(0x2da)]=null,this[_0x1686aa(0x283)]();},_0x4bcdec),this[_0x414373(0x403)]+=0x1;}[_0x5a5813(0xf3)](_0x45a7d7,_0x5a13b3){const _0x3513e3=_0x5a5813,{cmd:_0x3fa73f}=_0x5a13b3;_0x3fa73f===b[_0x3513e3(0x3f4)]&&!this[_0x3513e3(0x3d1)]&&(_0x45a7d7[_0x3513e3(0x2de)]=_0x5a13b3['data'][_0x3513e3(0x2de)],this[_0x3513e3(0x1be)][_0x3513e3(0x33b)](_0x45a7d7),this[_0x3513e3(0x496)][_0x3513e3(0x33b)](x[_0x3513e3(0x469)]),this['_socketReady']=!0x0,this[_0x3513e3(0x3e3)]=null),_0x3fa73f===b['HEARTBEAT']&&this[_0x3513e3(0x43e)](),this[_0x3513e3(0x2b9)]();}[_0x5a5813(0x2b9)](){const _0x392903=_0x5a5813;var _0x5b60ac;this['_clearHeartbeatTimer'](),this[_0x392903(0x298)]=window[_0x392903(0x9a)](()=>this['_sendHeartbeat'](),(_0x5b60ac=this[_0x392903(0x36e)]['getConfig'](mt))!=null?_0x5b60ac:es);}['_sendHeartbeat'](){const _0x8988de=_0x5a5813;this[_0x8988de(0x435)]['send']({'cmd':b['HEARTBEAT']}),this[_0x8988de(0x3ee)]();}[_0x5a5813(0x3ee)](){const _0x1fe95a=_0x5a5813;var _0x20e22b;this[_0x1fe95a(0x34c)]=window[_0x1fe95a(0x9a)](()=>this[_0x1fe95a(0x11b)](),(_0x20e22b=this[_0x1fe95a(0x36e)][_0x1fe95a(0x322)](Fe))!=null?_0x20e22b:gt);}[_0x5a5813(0x340)](){const _0x469aeb=_0x5a5813;this[_0x469aeb(0x298)]!=null&&(clearTimeout(this[_0x469aeb(0x298)]),this[_0x469aeb(0x298)]=null);}[_0x5a5813(0x43e)](){const _0x1b3243=_0x5a5813;this[_0x1b3243(0x34c)]!=null&&(clearTimeout(this[_0x1b3243(0x34c)]),this[_0x1b3243(0x34c)]=null);}},exports[_0x5a5813(0x1e5)]=Es([ee(0x0,a[_0x5a5813(0x9b)](a['Injector'])),ee(0x1,a['Inject'](a[_0x5a5813(0x20b)])),ee(0x2,A[_0x5a5813(0x48f)]),ee(0x3,a['ILogService']),ee(0x4,a[_0x5a5813(0x341)]),ee(0x5,Ye)],exports[_0x5a5813(0x1e5)]);var R=[];for(var ye=0x0;ye<0x100;++ye)R[_0x5a5813(0x37f)]((ye+0x100)['toString'](0x10)[_0x5a5813(0x2e2)](0x1));function bs(_0x301468,_0x4f5748=0x0){return(R[_0x301468[_0x4f5748+0x0]]+R[_0x301468[_0x4f5748+0x1]]+R[_0x301468[_0x4f5748+0x2]]+R[_0x301468[_0x4f5748+0x3]]+'-'+R[_0x301468[_0x4f5748+0x4]]+R[_0x301468[_0x4f5748+0x5]]+'-'+R[_0x301468[_0x4f5748+0x6]]+R[_0x301468[_0x4f5748+0x7]]+'-'+R[_0x301468[_0x4f5748+0x8]]+R[_0x301468[_0x4f5748+0x9]]+'-'+R[_0x301468[_0x4f5748+0xa]]+R[_0x301468[_0x4f5748+0xb]]+R[_0x301468[_0x4f5748+0xc]]+R[_0x301468[_0x4f5748+0xd]]+R[_0x301468[_0x4f5748+0xe]]+R[_0x301468[_0x4f5748+0xf]])['toLowerCase']();}var Se,Ts=new Uint8Array(0x10);function Rs(){const _0x25716b=_0x5a5813;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x25716b(0x317)]&&crypto[_0x25716b(0x317)][_0x25716b(0x154)](crypto),!Se))throw new Error(_0x25716b(0x3af));return Se(Ts);}var Os=typeof crypto<'u'&&crypto[_0x5a5813(0x47b)]&&crypto[_0x5a5813(0x47b)][_0x5a5813(0x154)](crypto);const tt={'randomUUID':Os};function Ds(_0x4c57d7,_0x5d6a09,_0x2b7f69){const _0x3fe16b=_0x5a5813;if(tt[_0x3fe16b(0x47b)]&&!_0x5d6a09&&!_0x4c57d7)return tt[_0x3fe16b(0x47b)]();_0x4c57d7=_0x4c57d7||{};var _0x2fee57=_0x4c57d7[_0x3fe16b(0x193)]||(_0x4c57d7[_0x3fe16b(0x309)]||Rs)();return _0x2fee57[0x6]=_0x2fee57[0x6]&0xf|0x40,_0x2fee57[0x8]=_0x2fee57[0x8]&0x3f|0x80,bs(_0x2fee57);}function _0x14f1(_0x2e2828,_0x4793e5){const _0x1d5209=_0x1d52();return _0x14f1=function(_0x14f1e5,_0x2253b9){_0x14f1e5=_0x14f1e5-0x8a;let _0x542936=_0x1d5209[_0x14f1e5];return _0x542936;},_0x14f1(_0x2e2828,_0x4793e5);}var ys=Object[_0x5a5813(0x40e)],Us=Object[_0x5a5813(0x3b4)],Ps=(_0x1fa0be,_0x50a701,_0x39c7cc,_0x5aa037)=>{const _0x1fc45d=_0x5a5813;for(var _0x3ce5e3=_0x5aa037>0x1?void 0x0:_0x5aa037?Us(_0x50a701,_0x39c7cc):_0x50a701,_0x4a5b92=_0x1fa0be[_0x1fc45d(0x492)]-0x1,_0x305c33;_0x4a5b92>=0x0;_0x4a5b92--)(_0x305c33=_0x1fa0be[_0x4a5b92])&&(_0x3ce5e3=(_0x5aa037?_0x305c33(_0x50a701,_0x39c7cc,_0x3ce5e3):_0x305c33(_0x3ce5e3))||_0x3ce5e3);return _0x5aa037&&_0x3ce5e3&&ys(_0x50a701,_0x39c7cc,_0x3ce5e3),_0x3ce5e3;},Ue=(_0x5d25de,_0x3455b2)=>(_0x4ec15a,_0x1343ed)=>_0x3455b2(_0x4ec15a,_0x1343ed,_0x5d25de);let fe=class{constructor(_0x4fb01c,_0x359807,_0x1bca03){const _0x9b13a3=_0x5a5813;this[_0x9b13a3(0x33a)]=_0x4fb01c,this[_0x9b13a3(0x3c9)]=_0x359807,this[_0x9b13a3(0x135)]=_0x1bca03;}[_0x5a5813(0x26f)](_0x1da9f4){const _0xca0b7b=_0x5a5813;this[_0xca0b7b(0x2f7)](_0x1da9f4),this['_transformPreviousActiveRange'](_0x1da9f4);}['transformRemoteChangeset'](_0x17264b){const _0x227a49=_0x5a5813,{unitID:_0x37d908}=_0x17264b,_0x382208=this[_0x227a49(0x135)][_0x227a49(0x22e)](_0x37d908)[_0x227a49(0xaf)](N[_0x227a49(0x2a6)]),{redoCache:_0x5d4059}=_0x382208[_0x227a49(0xe7)]();if(_0x5d4059['length']===0x0)return _0x17264b;let _0x5bfd3a=a['Tools'][_0x227a49(0x124)](_0x17264b[_0x227a49(0x2ad)][0x0]);for(let _0x725f37=0x0;_0x725f37<_0x5d4059['length'];_0x725f37++){const _0xaaf071={'id':_0x227a49(0x15b),'params':{..._0x5d4059[_0x725f37]}},_0x4d1ccd=this[_0x227a49(0x3c9)][_0x227a49(0x200)](_0x5bfd3a,_0xaaf071,!0x1);if(_[_0x227a49(0xc6)](_0x4d1ccd))throw _0x4d1ccd[_0x227a49(0x122)];_0x5bfd3a=_0x4d1ccd[_0x227a49(0x18c)];}return{...a[_0x227a49(0x17c)][_0x227a49(0x124)](_0x17264b),'mutations':[_0x5bfd3a]};}[_0x5a5813(0x2f7)](_0x52a0e7){const _0x2ae29a=_0x5a5813,{unitID:_0xfc1ca5}=_0x52a0e7,_0x371ac8=this[_0x2ae29a(0x135)][_0x2ae29a(0x22e)](_0xfc1ca5)[_0x2ae29a(0xaf)](N[_0x2ae29a(0x2a6)]),{undoCache:_0x4d48e4,redoCache:_0x19428e}=_0x371ac8[_0x2ae29a(0xe7)]();if(_0x4d48e4[_0x2ae29a(0x492)]===0x0||_0x19428e['length']===0x0)return;const _0x54c11b=[],_0x5c5962=[];let _0x20f4f2=a[_0x2ae29a(0x17c)][_0x2ae29a(0x124)](_0x52a0e7['mutations'][0x0]),_0x58a474=a[_0x2ae29a(0x17c)]['deepClone'](_0x52a0e7['mutations'][0x0]);for(let _0x7de7f=_0x4d48e4['length']-0x1;_0x7de7f>=0x0;_0x7de7f--){const _0x178c54={'id':_0x2ae29a(0x15b),'params':{..._0x4d48e4[_0x7de7f]}},_0xe5a73e={'id':_0x2ae29a(0x15b),'params':{..._0x19428e[_0x7de7f]}},_0x409f9a=this[_0x2ae29a(0x3c9)][_0x2ae29a(0x200)](_0x20f4f2,_0x178c54,!0x1),_0x595b30=this[_0x2ae29a(0x3c9)][_0x2ae29a(0x200)](_0x58a474,_0xe5a73e,!0x1);if(_[_0x2ae29a(0xc6)](_0x409f9a))throw _0x409f9a['error'];if(_['isTransformMutationFailure'](_0x595b30))throw _0x595b30[_0x2ae29a(0x122)];_0x54c11b['unshift'](_0x409f9a['m2Prime'][_0x2ae29a(0x31e)]),_0x5c5962[_0x2ae29a(0x38f)](_0x595b30[_0x2ae29a(0x472)]['params']),_0x20f4f2=_0x409f9a[_0x2ae29a(0x18c)],_0x58a474=_0x595b30['m1Prime'];}_0x371ac8[_0x2ae29a(0x190)]({'undoCache':_0x54c11b,'redoCache':_0x5c5962});}[_0x5a5813(0x389)](_0x4b5653){const _0x7bc3e9=_0x5a5813,{unitID:_0x3a44c0}=_0x4b5653,_0x5bb0da=this[_0x7bc3e9(0x135)][_0x7bc3e9(0x22e)](_0x3a44c0)['with'](N['DocIMEInputManagerService']),_0x573b99=_0x5bb0da[_0x7bc3e9(0xe3)]();if(_0x573b99==null)return;const _0x1a60ea=[{'id':_0x7bc3e9(0x15b),'params':{'unitId':_0x4b5653[_0x7bc3e9(0x129)],'actions':null,'textRanges':[_0x573b99]}}],_0x2d4772=this['_transformService'][_0x7bc3e9(0x20f)](_0x4b5653,_0x1a60ea);if(!_['isTransformMutationsWithChangesetSuccess'](_0x2d4772))throw _0x2d4772[_0x7bc3e9(0x122)];const _0x530061=_0x2d4772[_0x7bc3e9(0x472)][0x0]['params'][_0x7bc3e9(0x1e2)];Array['isArray'](_0x530061)&&_0x530061[_0x7bc3e9(0x492)]&&_0x5bb0da['setActiveRange'](_0x530061[0x0]);}};fe=Ps([Ue(0x0,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),Ue(0x1,_[_0x5a5813(0xa0)]),Ue(0x2,O['IRenderManagerService'])],fe);var ws=Object[_0x5a5813(0x40e)],Ns=Object['getOwnPropertyDescriptor'],Ms=(_0x2d34ea,_0xfeba06,_0x56d0a6,_0x36c9e6)=>{const _0x35f925=_0x5a5813;for(var _0x28edd4=_0x36c9e6>0x1?void 0x0:_0x36c9e6?Ns(_0xfeba06,_0x56d0a6):_0xfeba06,_0x237c88=_0x2d34ea[_0x35f925(0x492)]-0x1,_0x5d1c71;_0x237c88>=0x0;_0x237c88--)(_0x5d1c71=_0x2d34ea[_0x237c88])&&(_0x28edd4=(_0x36c9e6?_0x5d1c71(_0xfeba06,_0x56d0a6,_0x28edd4):_0x5d1c71(_0x28edd4))||_0x28edd4);return _0x36c9e6&&_0x28edd4&&ws(_0xfeba06,_0x56d0a6,_0x28edd4),_0x28edd4;},ce=(_0x480a3b,_0x3b160e)=>(_0x41b63a,_0x5c926f)=>_0x3b160e(_0x41b63a,_0x5c926f,_0x480a3b);exports[_0x5a5813(0x112)]=class extends a[_0x5a5813(0x183)]{constructor(_0x29dde7,_0x21fd21,_0x4716a7,_0x4c7e44,_0x329bdd){const _0x1f7704=_0x5a5813;super(),u(this,_0x1f7704(0x235),new Map()),u(this,_0x1f7704(0x38e),new Map()),u(this,'_disabled',!0x1),(this['_configService']=_0x29dde7,this[_0x1f7704(0x2a9)]=_0x21fd21,this[_0x1f7704(0x1bb)]=_0x4716a7,this[_0x1f7704(0x36a)]=_0x4c7e44,this[_0x1f7704(0x27f)]=_0x329bdd,this[_0x1f7704(0x3ba)]());}['disableLocalCache'](){const _0xb398a2=_0x5a5813;this[_0xb398a2(0x222)]=!0x0;}[_0x5a5813(0x3dc)](){const _0x5dbd0c=_0x5a5813;this[_0x5dbd0c(0x222)]=!0x1;}[_0x5a5813(0x34b)](){const _0x2d1f44=_0x5a5813;this['exhaustSavingTask']()[_0x2d1f44(0x2a3)](()=>super['dispose']());}async[_0x5a5813(0x321)](_0x3917e5){const _0x374ef4=_0x5a5813;return this[_0x374ef4(0x222)]?null:this[_0x374ef4(0x2a9)]['getItem'](st(_0x3917e5));}async['saveOfflineData'](_0x2cd512,_0x40a543){const _0x5b0f39=_0x5a5813;return!!this[_0x5b0f39(0x2a9)]['setItem'](_0x2cd512,_0x40a543);}[_0x5a5813(0x2a8)](_0x1c8458,_0x167824,_0xe72379,_0x1850f5){const _0x543270=_0x5a5813,_0x21db06=this['_revisionService'][_0x543270(0x18d)](_0x1c8458);this[_0x543270(0x235)][_0x543270(0x3a9)](_0x1c8458,{'unitID':_0x1c8458,'type':_0x167824,'awaitingChangeset':_0xe72379,'mutations':_0x1850f5,'rev':_0x21db06}),this[_0x543270(0x38e)][_0x543270(0xce)](_0x1c8458)||this[_0x543270(0x315)](_0x1c8458);}[_0x5a5813(0x315)](_0x38e7f6){const _0x582180=_0x5a5813,_0x322bc3=this[_0x582180(0xd7)]();_0x322bc3===0x0?this[_0x582180(0x91)](_0x38e7f6):this['_saveTaskMap'][_0x582180(0x3a9)](_0x38e7f6,setTimeout(()=>this[_0x582180(0x91)](_0x38e7f6),_0x322bc3));}[_0x5a5813(0xd7)](){const _0xe21b01=_0x5a5813;var _0x4d1f27;return(_0x4d1f27=this[_0xe21b01(0x36e)][_0xe21b01(0x322)](It))!=null?_0x4d1f27:is;}['_saveCache'](_0x21e4e1){const _0x4ba5cc=_0x5a5813,_0x2155d3=this[_0x4ba5cc(0x38e)]['get'](_0x21e4e1);return _0x2155d3!==void 0x0&&window['clearTimeout'](_0x2155d3),this[_0x4ba5cc(0x2a9)][_0x4ba5cc(0xa2)](st(_0x21e4e1),this['_cachedData'][_0x4ba5cc(0x4a8)](_0x21e4e1))[_0x4ba5cc(0x2a3)](()=>this[_0x4ba5cc(0x38e)][_0x4ba5cc(0x1a3)](_0x21e4e1));}async[_0x5a5813(0x3e9)](){const _0x25a267=_0x5a5813,_0x4ec04e=[];this[_0x25a267(0x38e)][_0x25a267(0x1f2)]((_0x3f78b0,_0x1cf29b)=>{const _0x4e6143=_0x25a267;window[_0x4e6143(0x3a4)](_0x3f78b0),_0x4ec04e[_0x4e6143(0x37f)](this['_saveCache'](_0x1cf29b)[_0x4e6143(0x2a3)](()=>{const _0x377f98=_0x4e6143;this[_0x377f98(0x38e)][_0x377f98(0x1a3)](_0x1cf29b);}));}),await Promise[_0x25a267(0x140)](_0x4ec04e);}[_0x5a5813(0x3ba)](){const _0x193952=_0x5a5813;this['disposeWithMe'](this[_0x193952(0x1bb)][_0x193952(0x464)](()=>{const _0xc5b04d=_0x193952;if(this[_0xc5b04d(0x38e)][_0xc5b04d(0xa1)])return this[_0xc5b04d(0x36a)]['t']('collaboration-client.offline-data-not-saved');}));}},exports['LocalCacheService']=Ms([ce(0x0,a[_0x5a5813(0x341)]),ce(0x1,a['ILocalStorageService']),ce(0x2,A['IBeforeCloseService']),ce(0x3,a[_0x5a5813(0x9b)](a[_0x5a5813(0x20b)])),ce(0x4,a[_0x5a5813(0x9b)](_[_0x5a5813(0x17d)]))],exports[_0x5a5813(0x112)]);function st(_0x4b68de){const _0x2898bf=_0x5a5813;return _0x2898bf(0x29e)+_0x4b68de;}var As=Object[_0x5a5813(0x40e)],Ls=Object[_0x5a5813(0x3b4)],$s=(_0x49539d,_0x12262d,_0x42fd4c,_0x561c21)=>{const _0x44da38=_0x5a5813;for(var _0x1c69f1=_0x561c21>0x1?void 0x0:_0x561c21?Ls(_0x12262d,_0x42fd4c):_0x12262d,_0x1478ec=_0x49539d[_0x44da38(0x492)]-0x1,_0x2809f0;_0x1478ec>=0x0;_0x1478ec--)(_0x2809f0=_0x49539d[_0x1478ec])&&(_0x1c69f1=(_0x561c21?_0x2809f0(_0x12262d,_0x42fd4c,_0x1c69f1):_0x2809f0(_0x1c69f1))||_0x1c69f1);return _0x561c21&&_0x1c69f1&&As(_0x12262d,_0x42fd4c,_0x1c69f1),_0x1c69f1;},Pe=(_0x12df59,_0x1fa0b1)=>(_0xb7a3a6,_0x179724)=>_0x1fa0b1(_0xb7a3a6,_0x179724,_0x12df59);function js(_0x38e4d1){const _0x2e4c43=_0x5a5813,{unitID:_0x3ac1a8,mutations:_0x503f5b}=_0x38e4d1;return{'unitId':_0x3ac1a8,'subUnitId':_0x503f5b[0x0][_0x2e4c43(0x31e)]['subUnitId']};}let Ie=class{constructor(_0x28d805,_0x10a452,_0x403869){const _0x4722bd=_0x5a5813;this[_0x4722bd(0x33a)]=_0x28d805,this['_transformService']=_0x10a452,this[_0x4722bd(0x44a)]=_0x403869;}['transformSelections'](_0x5435ef){const _0x258574=_0x5a5813;var _0x5b5430,_0x43be4f,_0x2897d0,_0x5007df;const _0xac0835=this[_0x258574(0x33a)]['get'](C['SheetsSelectionsService']),{unitId:_0x3ab1a8,subUnitId:_0x2a280e}=js(_0x5435ef),_0x548d6a=_0xac0835[_0x258574(0x1f4)](_0x3ab1a8)[_0x258574(0x3ac)](),_0x28f754=(_0x43be4f=(_0x5b5430=this[_0x258574(0x44a)][_0x258574(0x45c)](_0x3ab1a8))==null?void 0x0:_0x5b5430[_0x258574(0x3a8)]())==null?void 0x0:_0x43be4f[_0x258574(0x13f)]();if(_0x548d6a[_0x258574(0x492)]===0x0||!_0x3ab1a8||!_0x2a280e)return;const _0xcec9e8=[{'id':C[_0x258574(0x10f)]['id'],'params':{'unitId':_0x3ab1a8,'subUnitId':_0x28f754,'selections':a[_0x258574(0x17c)][_0x258574(0x124)](_0x548d6a)}}],_0x3fc7e=this[_0x258574(0x3c9)]['transformMutationsWithChangeset'](_0x5435ef,_0xcec9e8);if(!_[_0x258574(0x307)](_0x3fc7e))throw _0x3fc7e[_0x258574(0x122)];const _0x5e4e0e=(_0x5007df=(_0x2897d0=_0x3fc7e[_0x258574(0x472)][0x0])==null?void 0x0:_0x2897d0[_0x258574(0x31e)])==null?void 0x0:_0x5007df['selections'];if(Array['isArray'](_0x5e4e0e)&&_0x5e4e0e['length']){if(_0x5e4e0e[_0x258574(0x492)]===_0xcec9e8[0x0][_0x258574(0x31e)][_0x258574(0x3e1)][_0x258574(0x492)]&&_0x5e4e0e['every']((_0x3fbebb,_0x18a703)=>a[_0x258574(0x2b7)][_0x258574(0x1b3)](_0x3fbebb['range'],_0xcec9e8[0x0]['params'][_0x258574(0x3e1)][_0x18a703]['range'])))return;this[_0x258574(0x33a)][_0x258574(0x4a8)](a[_0x258574(0x3cc)])[_0x258574(0x39c)](C[_0x258574(0x10f)]['id'],{'unitId':_0x3ab1a8,'subUnitId':_0x28f754,'selections':_0x5e4e0e});}}};Ie=$s([Pe(0x0,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),Pe(0x1,_['ITransformService']),Pe(0x2,a[_0x5a5813(0x411)])],Ie);const Re=a[_0x5a5813(0x8f)](_0x5a5813(0x265));var Ot=(_0x3cba88=>(_0x3cba88[_0x3cba88[_0x5a5813(0x13e)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3cba88[_0x3cba88[_0x5a5813(0x31f)]=0x1]=_0x5a5813(0x31f),_0x3cba88))(Ot||{});const it=0x7530,nt=_0x5a5813(0x36b);class Hs extends a[_0x5a5813(0x183)]{constructor(){const _0x40a663=_0x5a5813;super(),u(this,_0x40a663(0x1f5),a[_0x40a663(0x17c)][_0x40a663(0x330)]()),u(this,_0x40a663(0x2a1),new Set()),u(this,'_unitOnClients',new Map()),u(this,_0x40a663(0x348),null),u(this,'_clearOtherTimers',new Map()),u(this,_0x40a663(0x42b),new Map()),this[_0x40a663(0x412)]();}[_0x5a5813(0x34b)](){const _0x1ad341=_0x5a5813;super[_0x1ad341(0x34b)](),this[_0x1ad341(0x3e8)]['forEach']((_0x555525,_0x407dfb)=>this['_removeClearOtherTimer'](_0x407dfb)),this[_0x1ad341(0x348)]&&window[_0x1ad341(0x120)](this[_0x1ad341(0x348)]);}[_0x5a5813(0x458)](_0x45c559){const _0x2fac56=_0x5a5813;return this[_0x2fac56(0x374)](_0x45c559)['pipe'](v['distinctUntilChanged']());}[_0x5a5813(0x4b2)](_0x16e17c){const _0x204a01=_0x5a5813;this[_0x204a01(0x2a1)][_0x204a01(0xa1)]===0x0&&this[_0x204a01(0x40c)](),this[_0x204a01(0x2a1)][_0x204a01(0x3a1)](_0x16e17c),this[_0x204a01(0x35f)]({'type':0x0,'memberID':this[_0x204a01(0x1f5)],'unitIDs':[_0x16e17c],'isForwarded':!0x1});}[_0x5a5813(0x24b)](_0x200260){const _0x3b0c2e=_0x5a5813;this[_0x3b0c2e(0x2a1)][_0x3b0c2e(0x1a3)](_0x200260),this[_0x3b0c2e(0x2a1)][_0x3b0c2e(0xa1)]===0x0&&this['_heartbeatTimer']&&window[_0x3b0c2e(0x120)](this[_0x3b0c2e(0x348)]);}[_0x5a5813(0x412)](){const _0x1cabdf=_0x5a5813;this[_0x1cabdf(0xd3)](a[_0x1cabdf(0x293)](v[_0x1cabdf(0xd4)](window,_0x1cabdf(0x8a))[_0x1cabdf(0x11c)](_0x16e2ad=>{const _0x38ce7a=_0x1cabdf;if(_0x16e2ad[_0x38ce7a(0x22c)]!==nt||!_0x16e2ad[_0x38ce7a(0x117)])return;const _0x8c0777=JSON['parse'](_0x16e2ad[_0x38ce7a(0x117)]);this[_0x38ce7a(0x43b)](_0x8c0777);}))),window[_0x1cabdf(0x1cc)](_0x1cabdf(0x1ea),()=>this[_0x1cabdf(0x35f)]({'type':0x1,'memberID':this[_0x1cabdf(0x1f5)],'unitIDs':Array[_0x1cabdf(0x1a1)](this[_0x1cabdf(0x2a1)])}));}[_0x5a5813(0x43b)](_0x302b54){const _0x10721c=_0x5a5813;switch(_0x302b54[_0x10721c(0x41d)]){case 0x0:this['_handleJoinEvent'](_0x302b54);break;case 0x1:this[_0x10721c(0x349)](_0x302b54);break;case 0x2:this[_0x10721c(0x254)](_0x302b54);break;}}['_handleJoinEvent'](_0x5351c7){const _0x5c4653=_0x5a5813,{unitIDs:_0x3dba00,memberID:_0x3d0394,isForwarded:_0x19a9a4}=_0x5351c7;_0x3dba00[_0x5c4653(0x1f2)](_0x497f2c=>{const _0x21c0b2=_0x5c4653;if(!_0x19a9a4&&this[_0x21c0b2(0x95)][_0x21c0b2(0xce)](_0x497f2c)&&this[_0x21c0b2(0x374)](_0x497f2c)[_0x21c0b2(0x33b)](0x1),!this['_unitOnClients'][_0x21c0b2(0xce)](_0x497f2c)||!this[_0x21c0b2(0x95)]['get'](_0x497f2c)[_0x21c0b2(0xce)](_0x3d0394)){const _0x37da78=this[_0x21c0b2(0x95)][_0x21c0b2(0x4a8)](_0x497f2c)||new Set();_0x37da78[_0x21c0b2(0x3a1)](_0x3d0394),this['_unitOnClients'][_0x21c0b2(0x3a9)](_0x497f2c,_0x37da78),this['_scheduleClearOtherTimer'](_0x3d0394);}}),_0x19a9a4||this[_0x5c4653(0x35f)]({'type':0x0,'memberID':this[_0x5c4653(0x1f5)],'unitIDs':[...this[_0x5c4653(0x2a1)]],'isForwarded':!0x0});}[_0x5a5813(0x250)](_0x2363a7){this['_removeClearOtherTimer'](_0x2363a7);const _0x447544=window['setTimeout'](()=>{const _0x123c48=_0x14f1;this[_0x123c48(0x95)][_0x123c48(0x1f2)](_0x2684c8=>{const _0xbb61d6=_0x123c48;_0x2684c8[_0xbb61d6(0x1a3)](_0x2363a7);});},it*0x2);this['_clearOtherTimers']['set'](_0x2363a7,_0x447544);}[_0x5a5813(0x453)](_0x377463){const _0x1cd8b9=_0x5a5813;if(this['_clearOtherTimers']['has'](_0x377463)){const _0x22413c=this[_0x1cd8b9(0x3e8)][_0x1cd8b9(0x4a8)](_0x377463);_0x22413c&&window['clearTimeout'](_0x22413c),this['_clearOtherTimers']['set'](_0x377463,null);}}[_0x5a5813(0x349)](_0x112853){const _0x1696f9=_0x5a5813,{memberID:_0x4c8485,unitIDs:_0x58b980}=_0x112853;_0x58b980['forEach'](_0x556966=>{const _0x82c44a=_0x14f1;var _0x1b93d9;const _0x3732de=this[_0x82c44a(0x95)][_0x82c44a(0x4a8)](_0x556966);_0x3732de&&(_0x3732de['delete'](_0x4c8485),(_0x1b93d9=this[_0x82c44a(0x374)](_0x556966))==null||_0x1b93d9['next'](_0x3732de[_0x82c44a(0xa1)]===0x0?0x0:0x1));}),this[_0x1696f9(0x453)](_0x4c8485);}['_handleHeartbeatEvent'](_0x900b0){const _0x24b3a4=_0x5a5813;this[_0x24b3a4(0x250)](_0x900b0[_0x24b3a4(0x2de)]);}['_send'](_0x117f97){const _0x10848e=_0x5a5813;localStorage['setItem'](nt,JSON[_0x10848e(0x4ac)](_0x117f97));}['_scheduleHeartbeat'](){const _0x409526=_0x5a5813;this[_0x409526(0x348)]=window['setInterval'](()=>{const _0x44cd26=_0x409526;this[_0x44cd26(0x35f)]({'type':0x2,'memberID':this['_id']});},it);}['_ensureSubject'](_0x245e48){const _0x214163=_0x5a5813;return this['_unitStatus']['has'](_0x245e48)||this[_0x214163(0x42b)][_0x214163(0x3a9)](_0x245e48,new v[(_0x214163(0xd2))](0x0)),this['_unitStatus'][_0x214163(0x4a8)](_0x245e48);}}function Dt(_0x4a9832){const _0x1a7966=_0x5a5813;let _0x131d68='';for(const _0x178c55 of _0x4a9832){const {startOffset:_0x47f05d,endOffset:_0x3836e0,isActive:_0x37d11d,rangeType:_0x2c7d45,segmentId:_0x446f34,segmentPage:_0x5e12e6}=_0x178c55;_0x131d68[_0x1a7966(0x492)]&&(_0x131d68+=','),_0x131d68+=_0x47f05d+':'+_0x3836e0+':'+(_0x37d11d?'1':'0')+':'+_0x2c7d45+':'+_0x446f34+':'+_0x5e12e6;}return _0x131d68;}function xs(_0x58fc68){const _0x32e64e=_0x5a5813,_0x35f072=_0x58fc68['split'](','),_0x9ed749=[];for(const _0x1592d8 of _0x35f072){const [_0x406eae,_0x55eccb,_0x256aa0,_0x17728a,_0x5b6733,_0x47a56e]=_0x1592d8[_0x32e64e(0x434)](':');_0x9ed749[_0x32e64e(0x37f)]({'startOffset':Number(_0x406eae),'endOffset':Number(_0x55eccb),'collapsed':_0x406eae===_0x55eccb,'isActive':_0x256aa0==='1','rangeType':_0x17728a===a[_0x32e64e(0x152)][_0x32e64e(0x13b)]?a[_0x32e64e(0x152)]['TEXT']:a[_0x32e64e(0x152)][_0x32e64e(0x14e)],'segmentId':typeof _0x5b6733==_0x32e64e(0x16d)?String(_0x5b6733):'','segmentPage':Number(_0x47a56e!=null?_0x47a56e:-0x1)});}return _0x9ed749['some'](_0xf4a31e=>_0xf4a31e[_0x32e64e(0x178)])||(_0x9ed749[0x0][_0x32e64e(0x178)]=!0x0),_0x9ed749;}class Xe extends a[_0x5a5813(0x18f)]{constructor(){const _0x5eda61=_0x5a5813;super(...arguments),u(this,_0x5eda61(0x1b6),new v['BehaviorSubject'](null)),u(this,_0x5eda61(0x361),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x2bfa03){const _0x4e317e=_0x5a5813,{unitID:_0x21094d,memberID:_0x119052,textRanges:_0x1f74d7}=_0x2bfa03,_0x2c078f=Dt(_0x1f74d7);if(_0x2c078f==='')return;const _0x47837f={'unitID':_0x21094d,'memberID':_0x119052,'selection':_0x2c078f};this[_0x4e317e(0x1b6)][_0x4e317e(0x33b)](_0x47837f);}}var ks=Object[_0x5a5813(0x40e)],Bs=Object['getOwnPropertyDescriptor'],Vs=(_0x2b40b7,_0x3d9150,_0x54933b,_0x1bdc41)=>{const _0x60af2d=_0x5a5813;for(var _0x435297=_0x1bdc41>0x1?void 0x0:_0x1bdc41?Bs(_0x3d9150,_0x54933b):_0x3d9150,_0x179f01=_0x2b40b7[_0x60af2d(0x492)]-0x1,_0x261d3f;_0x179f01>=0x0;_0x179f01--)(_0x261d3f=_0x2b40b7[_0x179f01])&&(_0x435297=(_0x1bdc41?_0x261d3f(_0x3d9150,_0x54933b,_0x435297):_0x261d3f(_0x435297))||_0x435297);return _0x1bdc41&&_0x435297&&ks(_0x3d9150,_0x54933b,_0x435297),_0x435297;},rt=(_0x3c53f,_0x55a322)=>(_0x4d5ed2,_0x5cde61)=>_0x55a322(_0x4d5ed2,_0x5cde61,_0x3c53f);let pe=class{constructor(_0x4ff3aa,_0x39bec3){const _0x53e28e=_0x5a5813;this['_injector']=_0x4ff3aa,this[_0x53e28e(0x3c9)]=_0x39bec3;}[_0x5a5813(0xa8)](_0x2e8cb4){const _0x384561=_0x5a5813;var _0x2731ba;const _0x56c2b6=this[_0x384561(0x33a)][_0x384561(0x4a8)](ne['DocSelectionManagerService']),_0x266dd7=(_0x2731ba=_0x56c2b6[_0x384561(0x251)]())!=null?_0x2731ba:[];if(_0x266dd7[_0x384561(0x492)]===0x0)return;const _0x16214b=[{'id':_0x384561(0x15b),'params':{'unitId':_0x2e8cb4[_0x384561(0x129)],'actions':null,'textRanges':_0x266dd7}}],_0x2424ba=this[_0x384561(0x3c9)][_0x384561(0x20f)](_0x2e8cb4,_0x16214b);if(!_['isTransformMutationsWithChangesetSuccess'](_0x2424ba))throw _0x2424ba[_0x384561(0x122)];const _0x18bc90=_0x2424ba['m2Prime'][0x0][_0x384561(0x31e)][_0x384561(0x1e2)];Array[_0x384561(0xf0)](_0x18bc90)&&_0x18bc90[_0x384561(0x492)]&&_0x56c2b6['replaceTextRanges'](_0x18bc90,!0x1);}};pe=Vs([rt(0x0,a['Inject'](a[_0x5a5813(0x30e)])),rt(0x1,_[_0x5a5813(0xa0)])],pe);const Ws=new Set([C[_0x5a5813(0x28a)]['id']]);function ot(_0x360f13,_0xc3d7d6,_0x2f3e23,_0x53c838,_0x3eb34d){const _0x55a0ae=_0x5a5813;var _0x13f059,_0xa25546,_0x4cee61,_0x578e98;const _0x4272c1=[];for(const _0x3a7226 of _0x360f13)if(Ws[_0x55a0ae(0xce)](_0x3a7226['id'])){if(_0x4272c1[_0x55a0ae(0x492)]>0x0)break;_0x4272c1[_0x55a0ae(0x37f)](_0x3a7226);break;}else _0x4272c1[_0x55a0ae(0x37f)](_0x3a7226);const _0x59980e=(_0xa25546=(_0x13f059=_0x3eb34d['getCurrentUser']())==null?void 0x0:_0x13f059[_0x55a0ae(0x204)])!=null?_0xa25546:_0x55a0ae(0x1b2),_0x14761c=(_0x578e98=(_0x4cee61=_0x3eb34d[_0x55a0ae(0x421)]())==null?void 0x0:_0x4cee61[_0x55a0ae(0x2de)])!=null?_0x578e98:_0x55a0ae(0x1b2);return{'changeset':{'unitID':_0xc3d7d6,'type':_[_0x55a0ae(0x318)](_0x2f3e23['getUnitType'](_0xc3d7d6)),'baseRev':_0x53c838[_0x55a0ae(0x18d)](_0xc3d7d6),'revision':0x0,'userID':_0x59980e,'memberID':_0x14761c,'mutations':_0x4272c1},'pendingMutations':_0x360f13['slice'](_0x4272c1['length'])};}function Fs(_0x223c51,_0x26ff52,_0x8901c7,_0x366cf3,_0x2759e5){const _0x5c5505=_0x5a5813;var _0x16542f,_0x4a29bd,_0x4016c9,_0x2dc720;const _0x25ce90=[_0x223c51['reduce']((_0x126f5f,_0x248bd0)=>{const _0xa7bc48=_0x14f1;var _0x6336c0;const {id:_0x115d55}=_0x126f5f,{id:_0x246d60,type:_0x424bae}=_0x248bd0,_0x344115=(_0x6336c0=_0x126f5f[_0xa7bc48(0x31e)])!=null?_0x6336c0:{'actions':null},_0x1b9f9d=_0x248bd0[_0xa7bc48(0x31e)];if(_0x115d55&&_0x115d55!==_0x246d60)throw new Error(_0xa7bc48(0x3e4)+_0x115d55+_0xa7bc48(0x310)+_0x246d60+'.');return{..._0x126f5f,'id':_0x246d60,'type':_0x424bae,'params':{'unitId':_0x1b9f9d[_0xa7bc48(0x396)],'textRanges':_0x1b9f9d[_0xa7bc48(0x1e2)],'actions':a[_0xa7bc48(0x114)][_0xa7bc48(0x14a)](_0x344115[_0xa7bc48(0x14d)],_0x1b9f9d[_0xa7bc48(0x14d)])}};},{})],_0x5e5575=(_0x4a29bd=(_0x16542f=_0x2759e5[_0x5c5505(0x421)]())==null?void 0x0:_0x16542f[_0x5c5505(0x204)])!=null?_0x4a29bd:_0x5c5505(0x1b2),_0x2e8a07=(_0x2dc720=(_0x4016c9=_0x2759e5[_0x5c5505(0x421)]())==null?void 0x0:_0x4016c9[_0x5c5505(0x2de)])!=null?_0x2dc720:_0x5c5505(0x1b2);return{'changeset':{'unitID':_0x26ff52,'type':_[_0x5c5505(0x318)](_0x8901c7[_0x5c5505(0xdd)](_0x26ff52)),'baseRev':_0x366cf3[_0x5c5505(0x18d)](_0x26ff52),'revision':0x0,'userID':_0x5e5575,'memberID':_0x2e8a07,'mutations':_0x25ce90},'pendingMutations':[]};}function yt(_0x5e4c5c,_0x203734){const _0x21fe5a=_0x5a5813,_0x50f1e1=new v['ReplaySubject'](0x1);return setTimeout(()=>_0x50f1e1[_0x21fe5a(0x33b)](_0x203734),_0x5e4c5c),_0x50f1e1['asObservable']()[_0x21fe5a(0x2dd)](v[_0x21fe5a(0x48c)](0x1));}const Gs={'id':C[_0x5a5813(0x149)]['id'],'type':a[_0x5a5813(0x368)]['MUTATION'],'params':{}};var Ys=Object[_0x5a5813(0x40e)],Ks=Object[_0x5a5813(0x3b4)],Z=(_0x3daa7c,_0x27a978,_0x2dee0f,_0x2e285e)=>{const _0x29ed15=_0x5a5813;for(var _0x2278e4=_0x2e285e>0x1?void 0x0:_0x2e285e?Ks(_0x27a978,_0x2dee0f):_0x27a978,_0x425b2e=_0x3daa7c[_0x29ed15(0x492)]-0x1,_0x686dfc;_0x425b2e>=0x0;_0x425b2e--)(_0x686dfc=_0x3daa7c[_0x425b2e])&&(_0x2278e4=(_0x2e285e?_0x686dfc(_0x27a978,_0x2dee0f,_0x2278e4):_0x686dfc(_0x2278e4))||_0x2278e4);return _0x2e285e&&_0x2278e4&&Ys(_0x27a978,_0x2dee0f,_0x2278e4),_0x2278e4;},g=(_0x14a1fb,_0x318641)=>(_0x36ae0c,_0x350ec1)=>_0x318641(_0x36ae0c,_0x350ec1,_0x14a1fb),D=(_0x1dacf8=>(_0x1dacf8[_0x5a5813(0x136)]=_0x5a5813(0x291),_0x1dacf8[_0x5a5813(0x41f)]=_0x5a5813(0x286),_0x1dacf8[_0x5a5813(0x24a)]=_0x5a5813(0x393),_0x1dacf8[_0x5a5813(0x9d)]='awaiting',_0x1dacf8[_0x5a5813(0x2ae)]=_0x5a5813(0x205),_0x1dacf8[_0x5a5813(0x19a)]=_0x5a5813(0x1eb),_0x1dacf8[_0x5a5813(0x335)]=_0x5a5813(0x3cd),_0x1dacf8[_0x5a5813(0x11a)]=_0x5a5813(0x240),_0x1dacf8))(D||{});const Ut=0xea60;class Q{constructor(_0x2647de,_0x5e1721,_0x411fdb,_0x4f8944,_0x4012f2,_0x5c3f57,_0x43438f,_0x1a09f6,_0x21a3e6){const _0x42e7c5=_0x5a5813;u(this,_0x42e7c5(0x1fa),null),u(this,_0x42e7c5(0x36d),[]),(this['unitID']=_0x2647de,this[_0x42e7c5(0x41d)]=_0x5e1721,this[_0x42e7c5(0x1e3)]=_0x4012f2,this[_0x42e7c5(0x159)]=_0x5c3f57,this[_0x42e7c5(0x418)]=_0x43438f,this[_0x42e7c5(0x27f)]=_0x1a09f6,this[_0x42e7c5(0x15c)]=_0x21a3e6,this[_0x42e7c5(0x1fa)]=_0x411fdb,this[_0x42e7c5(0x36d)]=_0x4f8944);}[_0x5a5813(0x32e)](_0x142880){const _0xef5c13=_0x5a5813,_0x15fc54=this[_0xef5c13(0x27f)][_0xef5c13(0x18d)](this['unitID']);return _0x142880[_0xef5c13(0x3fd)]>_0x15fc54+0x1?(this[_0xef5c13(0x1e3)][_0xef5c13(0x245)]({'from':_0x15fc54,'to':_0x142880[_0xef5c13(0x3fd)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x21a683){const _0x1fbc15=_0x5a5813;this[_0x1fbc15(0x418)][_0x1fbc15(0x27d)](this[_0x1fbc15(0x129)],_0x21a683);}[_0x5a5813(0x354)](_0x966b66){const _0x2a0cfe=_0x5a5813;var _0x2ebd52,_0x1fd599;(_0x1fd599=(_0x2ebd52=this[_0x2a0cfe(0x1e3)])[_0x2a0cfe(0x467)])==null||_0x1fd599['call'](_0x2ebd52,_0x966b66);}[_0x5a5813(0x14b)](_0x3d6b07){const _0x4bae02=_0x5a5813;var _0xd4de86,_0x18b2b1;return(_0x18b2b1=(_0xd4de86=this['_handler'])[_0x4bae02(0x180)])==null?void 0x0:_0x18b2b1[_0x4bae02(0x288)](_0xd4de86,_0x3d6b07);}[_0x5a5813(0x10c)](_0x49dea3){const _0x428405=_0x5a5813;var _0x3e584f,_0x3dab89,_0x5b8135;return(_0x5b8135=(_0x3dab89=(_0x3e584f=this[_0x428405(0x1e3)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3dab89[_0x428405(0x288)](_0x3e584f,_0x49dea3))!=null?_0x5b8135:_0x49dea3;}[_0x5a5813(0x439)](_0x4a6021){const _0x2956ee=_0x5a5813;var _0x382ae6,_0x364e8c;if(this[_0x2956ee(0x41d)]===H[_0x2956ee(0x2fe)]){const {unitID:_0x212739,mutations:_0x4508dc,memberID:_0xc93006}=_0x4a6021,_0x2b6417=_0x4508dc[0x0][_0x2956ee(0x31e)][_0x2956ee(0x1e2)];Array[_0x2956ee(0xf0)](_0x2b6417)&&_0x2b6417[_0x2956ee(0x492)]>0x0&&((_0x364e8c=(_0x382ae6=this[_0x2956ee(0x1e3)])[_0x2956ee(0x150)])==null||_0x364e8c[_0x2956ee(0x288)](_0x382ae6,{'unitID':_0x212739,'memberID':_0xc93006,'textRanges':_0x2b6417}));}}[_0x5a5813(0x43a)](){const _0x46e20f=_0x5a5813;this[_0x46e20f(0x15c)][_0x46e20f(0x2a8)](this[_0x46e20f(0x129)],this[_0x46e20f(0x41d)],this['_awaitingChangeset'],this[_0x46e20f(0x36d)]);}['_getCurrentRevision'](){const _0x48f5b9=_0x5a5813;return this[_0x48f5b9(0x27f)][_0x48f5b9(0x18d)](this['unitID']);}['_incrementRevisionNumber'](){const _0x248fb3=_0x5a5813;this[_0x248fb3(0x27f)]['incrementRevOfUnit'](this[_0x248fb3(0x129)]);}['_executeRemoteChangeset'](_0x312cb2){const _0xb1576e=_0x5a5813;var _0x5e0bd5;const _0x473452=this['_transformRemoteChangesetByIMECache'](_0x312cb2),_0x459a49=a[_0xb1576e(0x478)](_0x473452[_0xb1576e(0x2ad)],this[_0xb1576e(0x159)],{'fromCollab':!0x0});if(!_0x459a49['result'])throw _0x459a49['error']instanceof Error?_0x459a49['error']:new Error((_0x5e0bd5=_0x459a49[_0xb1576e(0x122)])!=null?_0x5e0bd5:_0xb1576e(0x1de));this[_0xb1576e(0x14b)](_0x473452),this[_0xb1576e(0x2b2)](_0x312cb2),this[_0xb1576e(0x354)](_0x473452),this[_0xb1576e(0x439)](_0x473452),this['_incrementRevisionNumber']();}}let re=class extends Q{constructor(_0xe52e1d,_0xe9530,_0x3090da,_0x14ecd2,_0x2d3c31,_0x409742,_0x1bb076,_0x135252,_0x24e74f,_0x205aa0){const _0x493497=_0x5a5813;super(_0xe52e1d,_0xe9530,null,[],_0x3090da,_0x135252,_0x1bb076,_0x14ecd2,_0x2d3c31),u(this,_0x493497(0x473),'synced'),(this[_0x493497(0x33a)]=_0x409742,this['_logService']=_0x24e74f,this[_0x493497(0x3c9)]=_0x205aa0);}['appendMutation'](_0x3dc0a4){const _0x451ee9=_0x5a5813,_0xb151c5=this[_0x451ee9(0x33a)][_0x451ee9(0x127)](W,this[_0x451ee9(0x129)],this[_0x451ee9(0x41d)],[_0x3dc0a4],this['_handler']);return _0xb151c5[_0x451ee9(0xc5)](),_0xb151c5[_0x451ee9(0x43a)](),_0xb151c5;}[_0x5a5813(0x274)](_0x200eb8){const _0x5c1de8=_0x5a5813;if(this[_0x5c1de8(0x32e)](_0x200eb8))return this[_0x5c1de8(0x33a)][_0x5c1de8(0x127)](k,this['unitID'],this['type'],null,[],null,[_0x200eb8],this['_handler']);try{const _0x3a49f5=this[_0x5c1de8(0x3c9)][_0x5c1de8(0x20f)](_0x200eb8,[Gs]);if(_[_0x5c1de8(0x307)](_0x3a49f5)){const {c1Prime:_0x24c3ac}=_0x3a49f5;return this[_0x5c1de8(0x267)](_0x24c3ac),this;}throw _0x3a49f5[_0x5c1de8(0x122)];}catch(_0x4bbd2e){return this[_0x5c1de8(0x452)][_0x5c1de8(0x122)](_0x4bbd2e),this['_onConflict'](!0x1);}}[_0x5a5813(0x3cf)](_0xe9af8b){const _0x4b4acf=_0x5a5813;return this['_injector']['createInstance'](K,this[_0x4b4acf(0x129)],this[_0x4b4acf(0x41d)],null,[],this['_handler'],_0xe9af8b);}[_0x5a5813(0x294)](){const _0x4e1dc9=_0x5a5813;throw new Error(_0x4e1dc9(0x333));}[_0x5a5813(0x416)](){const _0x48c706=_0x5a5813;throw new Error(_0x48c706(0x2df));}[_0x5a5813(0x188)](){return this;}[_0x5a5813(0x4b3)](){const _0x8255a2=_0x5a5813;return this[_0x8255a2(0x33a)][_0x8255a2(0x127)](X,this['unitID'],this[_0x8255a2(0x41d)],null,[],this[_0x8255a2(0x1e3)]);}['toggleOnline'](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5a5813(0x2ca)](){const _0x47e86d=_0x5a5813,_0x23bad2=this[_0x47e86d(0x27f)][_0x47e86d(0x18d)](this[_0x47e86d(0x129)]);return this[_0x47e86d(0x1e3)][_0x47e86d(0x245)]({'from':_0x23bad2,'to':0x0}),this[_0x47e86d(0x33a)][_0x47e86d(0x127)](k,this['unitID'],this['type'],null,[],null,[],this[_0x47e86d(0x1e3)]);}};re=Z([g(0x3,a[_0x5a5813(0x9b)](_['RevisionService'])),g(0x4,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x112)])),g(0x5,a['Inject'](a[_0x5a5813(0x30e)])),g(0x6,a[_0x5a5813(0x34d)]),g(0x7,a['ICommandService']),g(0x8,a[_0x5a5813(0x398)]),g(0x9,_[_0x5a5813(0xa0)])],re);let W=class extends Q{constructor(_0xff94bd,_0x58aeaa,_0x4b9129,_0x12980b,_0x2503c7,_0x3a5675,_0xbef143,_0x3dfc57,_0x57938c,_0x28c917,_0x3623fb,_0x31d230,_0x4a0be4,_0x46221c){const _0x3642cd=_0x5a5813;super(_0xff94bd,_0x58aeaa,null,_0x4b9129,_0x12980b,_0x28c917,_0x46221c,_0x3a5675,_0xbef143),u(this,_0x3642cd(0x473),_0x3642cd(0x393)),u(this,_0x3642cd(0x468),null),u(this,_0x3642cd(0x173),null),(this['_injector']=_0x2503c7,this[_0x3642cd(0x3c2)]=_0x3dfc57,this[_0x3642cd(0x452)]=_0x57938c,this['_configService']=_0x3623fb,this[_0x3642cd(0x3c9)]=_0x31d230,this[_0x3642cd(0x15d)]=_0x4a0be4);}[_0x5a5813(0x445)](_0x2a54ed){const _0xfd95e=_0x5a5813;return this[_0xfd95e(0x36d)][_0xfd95e(0x37f)](_0x2a54ed),this[_0xfd95e(0x43a)](),this;}[_0x5a5813(0x274)](_0x4409ea){const _0x14ab56=_0x5a5813;if(this[_0x14ab56(0x32e)](_0x4409ea))return this['_clearScheduledTask'](),this[_0x14ab56(0x33a)]['createInstance'](k,this[_0x14ab56(0x129)],this['type'],null,this[_0x14ab56(0x36d)],null,[_0x4409ea],this[_0x14ab56(0x1e3)]);try{const _0xaea751=this[_0x14ab56(0x3c9)][_0x14ab56(0x20f)](_0x4409ea,this[_0x14ab56(0x36d)]);if(_['isTransformMutationsWithChangesetSuccess'](_0xaea751)){const {c1Prime:_0x13eeb3,m2Prime:_0x10bf1a}=_0xaea751;this[_0x14ab56(0x267)](_0x13eeb3);const _0x4f227d=this['_injector'][_0x14ab56(0x127)](W,this[_0x14ab56(0x129)],this[_0x14ab56(0x41d)],_0x10bf1a,this[_0x14ab56(0x1e3)]);return this['_clearScheduledTask'](),_0x4f227d['_schedule'](this[_0x14ab56(0x468)]?Math[_0x14ab56(0x1f3)](0x0,new Date()['getTime']()-this[_0x14ab56(0x468)]):this[_0x14ab56(0x168)]()),_0x4f227d;}throw _0xaea751[_0x14ab56(0x122)];}catch(_0x3e23b3){return this[_0x14ab56(0x452)][_0x14ab56(0x122)](_0x3e23b3),this[_0x14ab56(0x3cf)](!0x1);}}[_0x5a5813(0x294)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5a5813(0x416)](){throw new Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x5b5bb9=_0x5a5813;return this['_clearScheduledTask'](),this['_injector']['createInstance'](X,this['unitID'],this[_0x5b5bb9(0x41d)],null,this[_0x5b5bb9(0x36d)],this['_handler']);}[_0x5a5813(0x400)](){return this;}['_schedule'](_0x2ba95b){const _0x5197d8=_0x5a5813,_0x4c8ad1=_0x2ba95b!=null?_0x2ba95b:this[_0x5197d8(0x168)]();this[_0x5197d8(0x468)]=new Date()[_0x5197d8(0x47d)](),this[_0x5197d8(0x173)]=window[_0x5197d8(0x9a)](()=>{const _0x129e47=_0x5197d8;this['_clearScheduledTask']();let _0x4f15fb=null;switch(this['type']){case H[_0x129e47(0xe6)]:{_0x4f15fb=ot(this[_0x129e47(0x36d)],this['unitID'],this[_0x129e47(0x15d)],this[_0x129e47(0x27f)],this[_0x129e47(0x3c2)]);break;}case H[_0x129e47(0x2fe)]:{this[_0x129e47(0x36d)][_0x129e47(0x1a9)](_0x1ee785=>_0x1ee785['id']===ne['RichTextEditingMutation']['id'])?_0x4f15fb=Fs(this[_0x129e47(0x36d)],this['unitID'],this[_0x129e47(0x15d)],this[_0x129e47(0x27f)],this[_0x129e47(0x3c2)]):_0x4f15fb=ot(this[_0x129e47(0x36d)],this[_0x129e47(0x129)],this[_0x129e47(0x15d)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x129e47(0x446)+this[_0x129e47(0x41d)]+_0x129e47(0x329));}const {changeset:_0x4d8b0d,pendingMutations:_0x172ac}=_0x4f15fb;this[_0x129e47(0x1e3)]['onSendChangeset'](_0x4d8b0d);const _0x25370c=_0x172ac[_0x129e47(0x492)]?this[_0x129e47(0x33a)][_0x129e47(0x127)](F,this[_0x129e47(0x129)],this[_0x129e47(0x41d)],_0x4d8b0d,_0x172ac,this['_handler'],void 0x0):this[_0x129e47(0x33a)][_0x129e47(0x127)](Y,this[_0x129e47(0x129)],this['type'],_0x4d8b0d,this[_0x129e47(0x1e3)]);_0x25370c[_0x129e47(0x43a)](),this[_0x129e47(0x1e3)][_0x129e47(0x2a4)](this,_0x25370c);},_0x4c8ad1);}['_getSendChangesetTimeout'](){const _0x2cd84b=_0x5a5813;var _0x23d96d;const _0x327cbd=this['_configService'][_0x2cd84b(0x322)]($);return(_0x23d96d=_0x327cbd==null?void 0x0:_0x327cbd[_0x2cd84b(0x490)])!=null?_0x23d96d:Zt;}[_0x5a5813(0x21e)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5a5813(0x46f)](){const _0x2d2280=_0x5a5813;this[_0x2d2280(0x173)]!=null&&(clearTimeout(this[_0x2d2280(0x173)]),this[_0x2d2280(0x173)]=null);}[_0x5a5813(0x3cf)](_0x1a841a){const _0x48996d=_0x5a5813;return this[_0x48996d(0x46f)](),this[_0x48996d(0x33a)][_0x48996d(0x127)](K,this[_0x48996d(0x129)],this[_0x48996d(0x41d)],null,this[_0x48996d(0x36d)],this[_0x48996d(0x1e3)],_0x1a841a);}};function _0x1d52(){const _0x3f0428=['LIVESHARE_OPERATION','getVpScrollXYInfoByPosToVp','executeCommand','_collaborationController','backgroundColor','isTransformChangesetsSuccess','_onFetchMissResult','add','_stopTelemetryCollaborationNewChangeset','extend','clearTimeout','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','catch','getAllMembers','getActiveSheet','set','loginUrlKey','_joinRoom','getCurrentSelections','3508274HjOhng','attrs','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','1881JtSbeH','/allowed','YUUMI_SUBSCRIPTION_NOT_FOUND','getInterceptPoints','getOwnPropertyDescriptor','_getSheetObject','_onRefRangeChange','@univerjs/docs-ui','ISnapshotServerService','_HTTPService','_setupBeforeClosingHandler','1em','_backgroundColor','SNAPSHOT_INVALID_SNAPSHOT','RETRY_CONNECTING_MAX_COUNT_KEY','setShapeProps','top','_onRemoteACK','_memberService','_docSkeletonManagerService','put','FAIL','handleInsertCol','_entityInit$','_shapes','_transformService','onTransformRemoteChangesetByIMECache','workbook','ICommandService','conflict','updatePermissionPoint','_onConflict','current','_socketReady','rev','_changesetReqId','csShouldRetryEvent','COMPRESS_MUTATION_APPLY','_getRedoStack','_unlockTransition','26QFdyXs','responseType','headers','isPermissionRej','enableLocalCache','5435832NZimZm','_updateLocalCursor','_render','_eventUnsubscribe','selections','_cursorShapes','_candidateSocket','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','allowed','_collaborationTimeoutTimer','subscribeEvent','_clearOtherTimers','exhaustSavingTask','_undoStacks','engine','roomInfos','getOffsetConfig','_waitForHeartbeatResponse','_getCurrentRevision','_startSheetCollabCursor','DocStateChangeManagerService','delay','forwardRef','HELLO','VIEW_MAIN','@univerjs-pro/collaboration','newCsEvent','\x0aAfter:\x20','_messageService','setShowComponents','_getMergeRange','enableSingleActiveInstanceLock','revision','_state$','closePath','toggleOnline','[CollaborationSessionService]','_decreaseWaiting','_retryCount','debug','liveShareNewHost','unitId\x20is\x20not\x20found','svg','send','CollaborationEvent','_changesetSessionId','changesets','_scheduleHeartbeat','save','defineProperty','&source=','collabWebSocketUrl','IUniverInstanceService','_init','readAsDataURL','@univerjs-pro/license','objectActions','onRemoteRej','_imageSourceCache','_undoRedoService','enableOfflineEditing','SetDocZoomRatioOperation','DesktopCollaborationStatusDisplayController','idSuffix','type','_anchor','SYNCED','_updateURLWithCurrentState','getCurrentUser','_entities','hasOwnProperty','status$','_incrementRevisionNumber','univer-online-status','_online','getRelativeToViewportCoord','getTypeOfUnitAdded$','awaiting','_unitStatus','saveSheetBlock','_cursors','IRemoteInstanceService','localeService','getColor','getAttachHeader','onPointerEnter$','_transitionLocked','split','_socket','/universer-api/file/{fileID}/sign-url','cursorInfo$','SetTextSelectionsOperation','_syncEditingCollabCursor','_updateLocalCache','_handleEvent','range','open$','_clearTimeoutTimer','UPDATE_PERMISSION_OBJ','snapshot','result','_snapshotServerService','Tooltip','moveTo','appendMutation','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_updateCollabCursors','_toggleOnline','HEADER_MENU','_instanceService','deserializeToCombResponse','requireSession','contains','getUnhiddenWorksheets','path','_range','ThresholdInterceptorFactory','_logService','_removeClearOtherTimer','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_substituteRedoStack','_disableEditing','_registerRenderDependencies','getUnitStatus$','_members','isEditing','handleIRemoveCol','getUnit','saveSnapshot','_onUserLeave','update','takeUntil','IContextService','_listenToOfflineEvent','_fetchMissChangesets','registerBeforeClose','_startDocCollabCursor','onlineStatus','onTransformSelections','_scheduleTimestamp','ONLINE','AuthzIoHttpService','beginPath','labelPosition','DocSkeletonManagerService','DeleteRangeMoveUpCommandId','_clearScheduledTask','_docStateChangeManagerService','_color','m2Prime','status','leaveEvent','LOGIN_URL_KEY','registerComponent','JOIN','sequenceExecute','_commentUpdate$','off-line-single','randomUUID','YUUMI_RATE_OVER_LIMIT','getTime','CollaborationSession','InsertRowCommandId','online','_getDownloadEndpointURL','UNIVER_SLIDE','_collabSessionService','_scheduleCollaborationTimeoutTimer','_cursor','children','[CollaborationSession]','getUnitId','concatMap','UniverInstanceType','MoveRangeCommandId','take','ColorKit','UNDEFINED','IMessageService','sendChangesetTimeout','/universer-api/snapshot/','length','bottom','ws://127.0.0.1:8000/universer-api/comb/connect','@univerjs/telemetry','_status$','fill','triggerDblclick','fillText','message$','getSheetBySheetId','href','file','defs','TOO_MANY_REQUESTS','49949mxLibt','_applyRemoteChangeset','editing\x20status\x20changed\x20to','getMember','UserManagerService','getOwnPropertySymbols','ranges','_onLocalMutation','get','csRejEvent','PERMISSION_DENIED','/-/object/list','stringify','transformChangesets','getValue','currentSkeleton$','create','className','editingUnit','toggleOffline','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','roles','/universer-api/stream/file/upload','capture','getCurrent','_initCloseConn','_submitChangeset','_anchorDot','_telemetryInfo','_loadSheet','unit','post','storage','filter','fromCollab','ERROR_EXCEED_SIZE','PERMISSION_REJ','createIdentifier','now','_saveCache','debounceTime','url','#FFF','_unitOnClients','CompressMutationService','Module','Subject','_onCursorDelete','setTimeout','Inject','data','AWAITING','SheetsSelectionsService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','ITransformService','size','setItem','interceptor','reject','getImage','encode','socket\x20close','transformSelections','_draw','M0\x200H16V16H0z','ITelemetryService','find','_singleActiveUnitService','EffectRefRangId','with','image/gif','handleDeleteRangeMoveUp','INVALID_ARGUMENT','INGEST','onRendered','_docTransformSelectionsService','SEND_CHANGESET_TIMEOUT','cursorInfo','values','fromEventSubject','SHOULD_CLOSE_CONN','none','_userManagerService','OffLineSingle','getMemberID','42290xkVayA','DocCollaborationEntity','onlyLocal','_getAnchorBounding','_lastPointer','_syncEditingCollabCursorService','_schedule','isTransformMutationFailure','setAlpha','updateMember','MUTATION','_resendTimer','_permissionService','LICENSE_EXPORT_SIZE_EXCEEDED','_updateStatus','has','DEFAULT_FILE_NAME','BuiltInUIPart','DisposableCollection','BehaviorSubject','disposeWithMe','fromEvent','/collaborator','IImageIoService','_getSaveTimeout','_hover','sheetId','IUIPartsService','onPointerMove$','_onOffline','getUnitType','json','collaborators','findNodePositionByCharIndex','skeleton','_redoStacks','getActiveRange','hide','method','UNIVER_SHEET','getUndoRedoMutationParamsCache','Optional','_scene','ImageUploadStatusType','apply','_initRequestHeader','getRangePointData','UNIVER_COLLABORATION_CLIENT_PLUGIN','IAuthzIoService','isArray','_snapshotService','_session','_onMessage','cmd','popstate','switchMap','_colorAssignService','serializeCombRequest','&to=','_drawTextRange','url(#on-line-single_clip0_910_349)','runRefRangeMutations','_notificationService','SEND_CHANGESET_TIMEOUT_KEY','SnapshotServerOverHTTPService','getCurrentUnitForType','ERROR_IMAGE','_throwTelemetryCollaborationNewChangeset','_hideTimer','[FetchMissState]','_docSkeleton','useDependency','UPDATE_CURSOR','transformRemoteChangeset','APPLY_DUPLICATED','_ws','drawWith','_transformRemoteChangesetByIMECache','getSkeleton','RETRY_CONNECTING_MAX_COUNT','SetSelectionsOperation','LICENSE_IMPORT_SIZE_EXCEEDED','_sessionStatus$','LocalCacheService','useObservable','JSONX','\x20to\x20','_document','newValue','number','univer-online-status-icon','OFFLINE','_onConnectionFailed','subscribe','debounce','symbol','CHANGESET_ACK','clearInterval','MergeInterceptorFactory','error','SNAPSHOT_HAS_BEEN_REMOVED','deepClone','state$','SessionStatus','createInstance','CollaborationEntity','unitID','image/png','@univerjs/engine-formula','_hovered','_refreshCollabCursors','USERS_LEAVE','startTime','registerRefRange','reverse','clear','_sheetSkeletonManagerService','getImageSourceCache','_renderManagerService','NOT_COLLAB','session','getLatestCsReqIdBySid','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_lockTransition','TEXT','socket\x20open.','socketService','NO_OTHER_CLIENTS_EDITING','getSheetId','all','stopTime','LIVESHARE_REQUEST_HOST','_transformStack','CHANGESET_REJ','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','_queuedRemoteChangesets','on-line-single','univer-online-status-title','EmptyMutation','compose','_transformIMECache','/new_changes','actions','RECT','getViewport','onSyncEditingCollabCursor','change$','DOC_RANGE_TYPE','useRef','bind','auth.needGotoLoginAlert','black','deserializeRangeWithSheet','override','_commandService','session.will-retry','doc.mutation.rich-text-editing','_localCacheService','_univerInstanceService','_cursorInfo$','CHANGESET_SHOULD_RETRY','_isPermissionRej','_initDependencies','addObject','_getUndoStack','concat','registerHTTPInterceptor','_type','SheetCollabCursorShape','_getSendChangesetTimeout','_docSyncEditingCollabCursorService','_clearUndo','LOCAL_CACHE_INTERVAL_KEY','_getAPIPrefix','string','listCollaborators','_colorIndex','InsertRangeMoveRightCommandId','close$','collab-text-anchor-','_sendingTimer','object','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UNIVER_UNKNOWN','4iuFYiL','isActive','UUID','_updateState','_loadDoc','Tools','RevisionService','collabSubmitChangesetUrl','c1Prime','onTransformIME','onPointerLeave$','APPLY_NON_SEQUENTIAL_REVISION','Disposable','_uiPartsService','currentTheme$','handleMoveRange','encodeURIComponent','onRemoteRetry','target','_startTelemetryCollaborationNewChangeset','width','m1Prime','getCurrentRevOfUnit','collab-client.tooltip.reconnect','RxDisposable','setUndoRedoMutationParamsCache','hidden','LIVESHARE_FETCH_OPERATIONS','random','fetching\x20missing\x20changesets\x20from\x20','asObservable','collabStatus.synced','_tryReconnect','removeMember','CollaborationController','FETCH_MISS','connectInjector','UnitEmbedded','arc','_listenToOnlineEvent','event$','focused$','from','originalMeta','delete','CONNECTOR_DATA_TOO_LARGE','Error\x20on\x20receiving\x20event','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','@univerjs/drawing','requestParams','every','NOT_FOUND','url(#off-line-single_clip0_910_343)','_socketMessageSubscription','_socketService','Error','body','url(#$1','_getCtorByUniverType','unknown','equals','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','isTransformMutationsWithChangesetFailure','_collabCursorState$','UNKNOWN_CODE','INTERNAL_ERROR','LocalUndoRedoService','?url=','_beforeCloseService','_createInitialStateImpl','_getSnapshotAPIPrefix','_socket$','react','RemoveRowCommandId','onSendChangeset','[OfflineState]:\x20received\x20rejection.','LIVESHARE_TERMINATE','NodePositionConvertToRectRange','_sessions','onlineStatusTitle','toRgbString','_removeCollabCursors','history','_onJoinRoomEvent','reqId','addEventListener','Shape','_handleHover','collaboration.closeRoom','HEARTBEAT','_shouldReportTelemetry','_httpService','endRow','prototype','displayName','uni.network.url-service','error$','SnapshotService','ImageIoService','InsertRangeMoveDownCommandId','assign','name','objectID','[CollaborationState]:\x20apply\x20error!','colorChannel1','CollaborationStatus','ALREADY_EXISTS','textRanges','_handler','handleInsertRow','CollaborationSessionService','loadDoc','tag','urlChange$','LEAVE','unload','fetch_missing','column','WorkbookEditablePermission','row','DataLoaderController','collabStatus.syncing','_substituteUndoStack','forEach','max','getWorkbookSelections','_id','joinEvent','_getUploadFileURL','complete','createSocket','_awaitingChangeset','JOINING','_initResize','HTTPService','onMouseMove','_getAPIPrefixPath','transformMutation','endColumn','univer-online','mapTo','userID','awaiting_with_pending','_registerDependencies','dispose$','RefRangeService','_compressMutationService','_replayCachedMutations','LocaleService','shareReplay','collaboration.single-unit.warning','isInternalEditorID','transformMutationsWithChangeset','SNAPSHOT_SERVER_URL_KEY','_urlService','onMissedChangesetFetched','fetchThroughInterceptors','_context','OnLineSingle','&assign=','724812JrwgsK','collabStatus.notCollab','assignAColorForMemberID','searchParams','ICollaborationSocketService','c2Prime','touchDependencies','resend','_removeRoom','getUniverSheetInstance','image/bmp','_disabled','_getSignURL','UNIVER_PROJECT','/object','LIVESHARE_NEW_HOST','getSheetBlock','getResourcesRequest','UniverNetworkPlugin','uploadFileServerUrl','resize','key','copyFileMeta','getRenderById','handleInsertRangeMoveDown','_replaceFileID','infoRsp','/block/','ImageSourceType','#fff','_cachedData','AUTHZ_URL_KEY','_remoteChangesetQueue','_createHandler','_createSocket','off-line-single_clip0_910_343','merge','permissionRejEvent','submit\x20changeset\x20error!','_collaborationPaused','_change$','offline','onStarting','unsubscribe','makeDirty','RichTextEditingMutation','onMissingChangesets','_createInitialState','docStateChange$','setCurrentUser','@univerjs/rpc','PENDING','disposeUnit','[CollaborationUndoRedoService]','reconnect','_state','connection\x20error','_scheduleClearOtherTimer','getDocRanges','getCollabEntity','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_handleHeartbeatEvent','COLLAB_WEB_SOCKET_URL_KEY','action','@univerjs/sheets','image/jpeg','sheetID','setParam','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','restore','activeSheet$','eventID','addImageSourceCache','_collaborationSessionService','SheetCollaborationEntity','rxjs/operators','IPermissionService','UNRECOGNIZED','univer-pro.collaboration-client.single-active-unit-service','_getLoginPath','_executeRemoteChangeset','_name','_onRecvEvent','_onRemoteRejected','_exhaustRemoteChangesetQueue','SNAPSHOT_URL_KEY','_onConnectionOpen','@univerjs/design','transformIMECache','verdancy600','SetWorksheetActivateCommand','_setupSubUnitSync','defIds','onRemoteChangeset','getParam','indexOf','CollaborationSocketService','Rect','liveShareOperation','YUUMI_UNABLE_LOAD_URL','_updateSubUnitFromURLParams','collab-text-range-','transformUndoRedo','saveImage','_revisionService','text','/object/','_clearLocalCache','_tryEnsureSocket','selection','COLLAB_SUBMIT_CHANGESET_URL_KEY','synced','[DataLoaderController]','call','HTTPRequest','InsertSheetMutation','NEW_CHANGESETS','code','session.collaboration-timeout','hovered','state','_config','not_collab','commentUpdate$','toDisposable','onRemoteAck','listRoles','init','_onCombEvent','_sendHeartbeatTimer','@univerjs/docs','map','SheetSkeletonManagerService','deleteCollaborator','show','unit-cache-','HEARTBEAT_INTERVAL_KEY','_initEventListeners','_selfUnitIDs','onCommentUpdate','then','onStateChange','getCellPositionByOffset','DocIMEInputManagerService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','updateOfflineData','_localStorageService','univer-offline','1560235ojVZMR','INotificationService','mutations','AWAITING_WITH_PENDING','_initUnitPermissionChange','_waitCount','/-/object/-/batch_allowed','_transformUndoredo','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','\x0aCurrent:\x20','_clearRedo','Rectangle','round','_rescheduleHeartbeat','trim','UniverCollaborationClientPlugin','ENSURE_SNAPSHOT_EXECUTION','collaboration-client.config','min','collabStatus.conflict','RegularPolygon','shouldCloseConn','collaboratorID','LICENSE_MAX_UNITS_EXCEEDED','...','ThemeService','SheetPermissionInitController','UnitSnapshot','_initStatusComponent','_collabCursorController','fetchMiss','POST','csAckEvent','height','/resources','/unit/','lineTo','_unitID','@univerjs/engine-render','transform','HttpExport','YUUMI_URL_COL_OUT_OF_RANGE','image/jpg','MemberService','fetchMissingChangesets','includes','_retryConnectingTimer','_initCommandExecutedListener','_http','pipe','memberID','[SyncedState]:\x20received\x20rejection.','pushState','getCollabCursors$','slice','_startCollaboration','HttpImport','substring','_themeService','_onCursorUpdate','collabStatus.offline','BASE64','createElement','sid','reduce','entries','_roomMembers$','_initMergeInterceptor','SUBMIT_CHANGESET','close','onCommandExecuted','members','[OfflineState]:\x20received\x20acknowledgement.','startsWith','UNAUTHENTICATED','_transformUndoRedoStack','USERS_ENTER','div','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','DependentOn','_sender','933618gvSOZN','UNIVER_DOC','_labelPosition','propertyIsEnumerable','disableLocalCache','combineLatest','measureText','registerRenderModule','evenodd','fillStyle','isTransformMutationsWithChangesetSuccess','withCredentials','rng','blue400','_drawAnchor','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_assignedColors','Injector','RemoveColCommandId','\x20-\x20','color','_commentService','/universer-api/comb','Undefined','_scheduleSaving','purple300','getRandomValues','mapDocumentTypeToUniverType','location','_resendWithTimeout','WebSocketService','getCoordByCell','_showConflictNotification','params','OTHER_CLIENTS_EDITING','sheets','loadOfflineData','getConfig','conflict.title','handleIRemoveRow','visibilityState','CHANGESET_REVISION_CONFILICT','icon','Warning','\x20in\x20_schedule.','xlink:href','updateCollaborator','RECV','FileId','_checkMissing','rxjs','generateRandomId','socket$','resolve','[SyncedState]:\x20received\x20acknowledgement.','subUnitId','CONFLICT','translate(.97)','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','UNKNOWN_CMD','NodePositionConvertToCursor','_injector','next','_onUserJoin','0\x200\x2016\x2016','getFocusedUnit','MSG_FOR_ERROR','_clearHeartbeatTimer','IConfigService','COLORS','batchAllowed','_onRemoteChangeset','_initStatusListener','_textBubble','@univerjs/core','_heartbeatTimer','_handleLeaveEvent','_clearCollaborationTimeoutTimer','dispose','_timeoutTimer','IUndoRedoService','TEXT_RANGE_LAYER_INDEX','objectType','duration','startColumn','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','0\x200\x2017\x2016','_transformSelections','fillRule','getRoom','awaitingChangeset','univerjs-icon\x20univerjs-icon-','MessageType','removeParam','routeKey','clipPath','roomMembers$','on-line-single_clip0_910_349','_send','useCallback','collabCursorState$','_drawRectRange','transformByState','[UniverCollaborationClientPlugin]','b64DecodeUnicode','_roomMembers','sessionStatus$','CommandType','downloadEndpointUrl','_localeService','ACTIVE_UNIT_EVENT_CHANNEL','_acknowledgedAwaitingChangeset','_pendingMutations','_configService','getTypeOfUnitDisposed$','_telemetryService','COLLAB_SUBMIT_CHANGESET_URL','_toggleOffline','_onRemoteRetry','_ensureSubject','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getCollabEntity$','onReady','registerDependencies','handleInsertRangeMoveRight','permission.content','_getScale','rgba(255,\x20255,\x20255,\x200.01)','parseProtocolChangeset','syncEditingCollabCursor','push','_refRangeService','sessionStatus','toString','Vector2','pauseCollaboration','SUCCUSS','textEncoder','@univerjs/sheets-ui','_resendTimeout','_transformPreviousActiveRange','closeSession','title','FromArray','IDLE','_saveTaskMap','unshift','COMMENT_UPDATE','initWorkbookPermissionChange','Workbook','pending','subunit','_event$','unitId','collaboration-session-retry','ILogService','VIEWPORT_KEY'];_0x1d52=function(){return _0x3f0428;};return _0x1d52();}W=Z([g(0x4,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),g(0x5,a[_0x5a5813(0x9b)](_[_0x5a5813(0x17d)])),g(0x6,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x112)])),g(0x7,a[_0x5a5813(0x9b)](exports['MemberService'])),g(0x8,a[_0x5a5813(0x398)]),g(0x9,a[_0x5a5813(0x3cc)]),g(0xa,a[_0x5a5813(0x341)]),g(0xb,_[_0x5a5813(0xa0)]),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0x5a5813(0x34d)])],W);let Y=class extends Q{constructor(_0x42ecf7,_0x46e920,_0x41e2d5,_0x1dc085,_0x11d8af,_0x190a76,_0x310ee7,_0x118427,_0x8844b8,_0x472005,_0x202502){const _0x1c3e33=_0x5a5813;super(_0x42ecf7,_0x46e920,_0x41e2d5,[],_0x1dc085,_0x118427,_0x202502,_0x190a76,_0x310ee7),u(this,_0x1c3e33(0x473),_0x1c3e33(0x42a)),u(this,'_resendTimeout',0x0),u(this,_0x1c3e33(0xca)),u(this,_0x1c3e33(0x2fc)),(this[_0x1c3e33(0x33a)]=_0x11d8af,this[_0x1c3e33(0x452)]=_0x8844b8,this['_transformService']=_0x472005);}[_0x5a5813(0x445)](_0x3a803a){const _0x53daad=_0x5a5813;this['_clearScheduledTask']();const _0x1b9c33=this['_injector'][_0x53daad(0x127)](F,this['unitID'],this['type'],this[_0x53daad(0x1fa)],[_0x3a803a],this[_0x53daad(0x1e3)],this[_0x53daad(0xca)]);return _0x1b9c33[_0x53daad(0x43a)](),_0x1b9c33;}[_0x5a5813(0x274)](_0x2f6759){const _0x2bf792=_0x5a5813;if(this['_checkMissing'](_0x2f6759))return this['_clearScheduledTask'](),this['_injector'][_0x2bf792(0x127)](k,this[_0x2bf792(0x129)],this[_0x2bf792(0x41d)],this[_0x2bf792(0x1fa)],[],null,[_0x2f6759],this[_0x2bf792(0x1e3)]);try{const _0x3291e9=this[_0x2bf792(0x3c9)]['transformChangesets']([_0x2f6759],[this[_0x2bf792(0x1fa)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x3291e9)){const {c1Prime:_0x1e60bb,c2Prime:_0x1cbf49}=_0x3291e9;this[_0x2bf792(0x267)](_0x1e60bb[0x0]),_0x1cbf49[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask']();const _0x2d1925=this['_injector'][_0x2bf792(0x127)](Y,this['unitID'],this['type'],_0x1cbf49[0x0],this[_0x2bf792(0x1e3)]);return _0x2d1925[_0x2bf792(0x43a)](),_0x2d1925;}return this[_0x2bf792(0x3cf)](!0x1);}catch(_0x38ac4a){return this[_0x2bf792(0x452)][_0x2bf792(0x122)](_0x38ac4a),this[_0x2bf792(0x3cf)](!0x1);}}[_0x5a5813(0x294)](_0x10401e){const _0x5d8e0a=_0x5a5813;this[_0x5d8e0a(0x46f)]();const _0x36187a=this[_0x5d8e0a(0x27f)][_0x5d8e0a(0x18d)](this['unitID']);if(_0x10401e[_0x5d8e0a(0x3fd)]<_0x36187a-0x1)return this;if(this[_0x5d8e0a(0x32e)](_0x10401e))return this['_injector'][_0x5d8e0a(0x127)](k,this[_0x5d8e0a(0x129)],this[_0x5d8e0a(0x41d)],null,[],this[_0x5d8e0a(0x1fa)],[],this[_0x5d8e0a(0x1e3)]);this[_0x5d8e0a(0x425)]();const _0x330d41=this[_0x5d8e0a(0x33a)][_0x5d8e0a(0x127)](re,this[_0x5d8e0a(0x129)],this[_0x5d8e0a(0x41d)],this[_0x5d8e0a(0x1e3)]);return _0x330d41[_0x5d8e0a(0x43a)](),_0x330d41;}[_0x5a5813(0x416)](_0x1b41fc){const _0x404d89=_0x5a5813;return this[_0x404d89(0x3cf)](!!(_0x1b41fc!=null&&_0x1b41fc[_0x404d89(0x3db)]));}[_0x5a5813(0x188)](_0x26c546){const _0x28ce53=_0x5a5813;return this[_0x28ce53(0x388)]>Ut?this[_0x28ce53(0x4b3)]():(this[_0x28ce53(0xca)]=yt(this[_0x28ce53(0x388)],{'timeout':this['_resendTimeout'],'reqId':_0x26c546[_0x28ce53(0x1cb)]}),this[_0x28ce53(0x2fc)]=this[_0x28ce53(0xca)][_0x28ce53(0x11c)](({reqId:_0x3e05e8,timeout:_0x4c2a6f})=>{const _0x5c34ec=_0x28ce53;this[_0x5c34ec(0x31a)](_0x3e05e8,_0x4c2a6f);}),this);}[_0x5a5813(0x4b3)](){const _0x579603=_0x5a5813;return this['_clearScheduledTask'](),this[_0x579603(0x33a)]['createInstance'](X,this[_0x579603(0x129)],this[_0x579603(0x41d)],this[_0x579603(0x1fa)],[],this['_handler']);}[_0x5a5813(0x400)](){return this;}[_0x5a5813(0x21e)](){const _0x420a22=_0x5a5813;this[_0x420a22(0x1e3)][_0x420a22(0x1c1)](this[_0x420a22(0x1fa)]);}['_onConflict'](_0x3715df){const _0x584df7=_0x5a5813;return this['_clearScheduledTask'](),this[_0x584df7(0x33a)]['createInstance'](K,this[_0x584df7(0x129)],this['type'],this[_0x584df7(0x1fa)],[],this[_0x584df7(0x1e3)],_0x3715df);}[_0x5a5813(0x31a)](_0x251c0a,_0x2e2840){const _0x47336b=_0x5a5813;var _0x178509;_0x251c0a===((_0x178509=this[_0x47336b(0x1fa)])==null?void 0x0:_0x178509[_0x47336b(0x1cb)])&&(this[_0x47336b(0x21e)](),this[_0x47336b(0x388)]=_0x2e2840===0x0?0x3e8:_0x2e2840*0x2);}[_0x5a5813(0x46f)](){const _0xebdb17=_0x5a5813;var _0x4c2683;(_0x4c2683=this['_sender'])==null||_0x4c2683[_0xebdb17(0x242)](),this[_0xebdb17(0x388)]=0x0;}};Y=Z([g(0x4,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),g(0x5,a[_0x5a5813(0x9b)](_[_0x5a5813(0x17d)])),g(0x6,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x112)])),g(0x7,a[_0x5a5813(0x3cc)]),g(0x8,a[_0x5a5813(0x398)]),g(0x9,_[_0x5a5813(0xa0)]),g(0xa,a[_0x5a5813(0x34d)])],Y);let F=class extends Q{constructor(_0x2b36b1,_0x46c2d4,_0x11894f,_0x5cff85,_0x464e4c,_0x40d039,_0x59d02c,_0x540690,_0x5db48a,_0x20bde8,_0x583254,_0x44f9bc,_0x594fff){const _0x39d32a=_0x5a5813;super(_0x2b36b1,_0x46c2d4,_0x11894f,_0x5cff85,_0x464e4c,_0x20bde8,_0x594fff,_0x540690,_0x5db48a),u(this,_0x39d32a(0x473),_0x39d32a(0x205)),u(this,_0x39d32a(0x388),0x0),u(this,_0x39d32a(0xca)),u(this,_0x39d32a(0x2fc)),(this[_0x39d32a(0x33a)]=_0x59d02c,this[_0x39d32a(0x452)]=_0x583254,this[_0x39d32a(0x3c9)]=_0x44f9bc,_0x40d039&&(this[_0x39d32a(0xca)]=_0x40d039,this['_sender']=this[_0x39d32a(0xca)][_0x39d32a(0x11c)](({reqId:_0x3fe489,timeout:_0x1dde34})=>{this['_resendWithTimeout'](_0x3fe489,_0x1dde34);})));}[_0x5a5813(0x445)](_0x5e0e25){const _0x2bb586=_0x5a5813;return this[_0x2bb586(0x36d)][_0x2bb586(0x37f)](_0x5e0e25),this;}[_0x5a5813(0x274)](_0x1d32d0){const _0x18d68f=_0x5a5813;if(this[_0x18d68f(0x32e)](_0x1d32d0))return this[_0x18d68f(0x46f)](),this['_injector'][_0x18d68f(0x127)](k,this[_0x18d68f(0x129)],this[_0x18d68f(0x41d)],this['_awaitingChangeset'],this[_0x18d68f(0x36d)],null,[_0x1d32d0],this[_0x18d68f(0x1e3)]);try{const _0x368092=this[_0x18d68f(0x3c9)][_0x18d68f(0x4ad)]([_0x1d32d0],[this[_0x18d68f(0x1fa)]],!0x1);if(_[_0x18d68f(0x39f)](_0x368092)){const {c1Prime:_0x21f507,c2Prime:_0x2b25b0}=_0x368092,_0x344941=this[_0x18d68f(0x3c9)][_0x18d68f(0x20f)](_0x21f507[0x0],this[_0x18d68f(0x36d)]);if(_[_0x18d68f(0x307)](_0x344941)){const {c1Prime:_0x2cf640,m2Prime:_0x17e92d}=_0x344941;return this['_executeRemoteChangeset'](_0x2cf640),_0x2b25b0[0x0]['baseRev']=this[_0x18d68f(0x3ef)](),this['_clearScheduledTask'](),this[_0x18d68f(0x33a)][_0x18d68f(0x127)](F,this[_0x18d68f(0x129)],this[_0x18d68f(0x41d)],_0x2b25b0[0x0],_0x17e92d,this[_0x18d68f(0x1e3)],void 0x0);}throw _0x344941[_0x18d68f(0x122)];}throw _0x368092[_0x18d68f(0x122)];}catch(_0x4b3654){return this[_0x18d68f(0x452)]['error'](_0x4b3654),this['_onConflict'](!0x1);}}[_0x5a5813(0x294)](_0x3c5792){const _0x277e22=_0x5a5813;if(this[_0x277e22(0x46f)](),this[_0x277e22(0x32e)](_0x3c5792))return this[_0x277e22(0x33a)][_0x277e22(0x127)](k,this[_0x277e22(0x129)],this[_0x277e22(0x41d)],null,this[_0x277e22(0x36d)],this[_0x277e22(0x1fa)],[],this[_0x277e22(0x1e3)]);this['_incrementRevisionNumber']();const _0x150056=this[_0x277e22(0x33a)]['createInstance'](W,this[_0x277e22(0x129)],this[_0x277e22(0x41d)],this['_pendingMutations'],this[_0x277e22(0x1e3)]);return _0x150056['_schedule'](),_0x150056[_0x277e22(0x43a)](),_0x150056;}[_0x5a5813(0x416)](_0x352e2c){const _0x460fe2=_0x5a5813;return this[_0x460fe2(0x3cf)](!!(_0x352e2c!=null&&_0x352e2c[_0x460fe2(0x3db)]));}[_0x5a5813(0x188)](_0x56228c){const _0x1b1d92=_0x5a5813;return this[_0x1b1d92(0x388)]>Ut?this[_0x1b1d92(0x4b3)]():(this[_0x1b1d92(0xca)]=yt(this[_0x1b1d92(0x388)],{'timeout':this['_resendTimeout'],'reqId':_0x56228c['reqId']}),this['_sender']=this[_0x1b1d92(0xca)][_0x1b1d92(0x11c)](({reqId:_0x5ae9f1,timeout:_0x1bb796})=>{const _0x53e440=_0x1b1d92;this[_0x53e440(0x31a)](_0x5ae9f1,_0x1bb796);}),this);}[_0x5a5813(0x4b3)](){const _0x4655c3=_0x5a5813;return this[_0x4655c3(0x46f)](),this[_0x4655c3(0x33a)][_0x4655c3(0x127)](X,this[_0x4655c3(0x129)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x4655c3(0x1e3)]);}[_0x5a5813(0x400)](){return this;}[_0x5a5813(0x21e)](){const _0x396fd4=_0x5a5813;this[_0x396fd4(0x1e3)][_0x396fd4(0x1c1)](this[_0x396fd4(0x1fa)]);}[_0x5a5813(0x3cf)](_0x267238){const _0x165e6d=_0x5a5813;return this[_0x165e6d(0x46f)](),this[_0x165e6d(0x33a)]['createInstance'](K,this['unitID'],this['type'],null,this[_0x165e6d(0x36d)],this[_0x165e6d(0x1e3)],_0x267238);}[_0x5a5813(0x31a)](_0x4a0d73,_0x10002a){const _0x196147=_0x5a5813;var _0x363edb;_0x4a0d73===((_0x363edb=this[_0x196147(0x1fa)])==null?void 0x0:_0x363edb[_0x196147(0x1cb)])&&(this[_0x196147(0x21e)](),this[_0x196147(0x388)]=_0x10002a===0x0?0x3e8:_0x10002a*0x2);}['_clearScheduledTask'](){const _0x4f1559=_0x5a5813;var _0x14bf76;(_0x14bf76=this[_0x4f1559(0x2fc)])==null||_0x14bf76[_0x4f1559(0x242)](),this[_0x4f1559(0x388)]=0x0;}};F=Z([g(0x6,a['Inject'](a['Injector'])),g(0x7,a[_0x5a5813(0x9b)](_[_0x5a5813(0x17d)])),g(0x8,a[_0x5a5813(0x9b)](exports['LocalCacheService'])),g(0x9,a['ICommandService']),g(0xa,a[_0x5a5813(0x398)]),g(0xb,_[_0x5a5813(0xa0)]),g(0xc,a['IUndoRedoService'])],F);let K=class extends Q{constructor(_0x5b015b,_0x32ed58,_0x3a01c,_0x1d085f,_0x30eeb2,_0x25032a=!0x1,_0x5ddec3,_0x3c8bbc,_0x30d27d,_0x20f5bc,_0x228403,_0x2133aa,_0x20933f){const _0x1ca6d7=_0x5a5813;super(_0x5b015b,_0x32ed58,_0x3a01c,_0x1d085f,_0x30eeb2,_0x3c8bbc,_0x30d27d,_0x228403,_0x20f5bc),u(this,'status',_0x1ca6d7(0x3cd)),(this['_isPermissionRej']=_0x25032a,this[_0x1ca6d7(0xcb)]=_0x5ddec3,this[_0x1ca6d7(0x36a)]=_0x2133aa,this[_0x1ca6d7(0xfd)]=_0x20933f,this[_0x1ca6d7(0x31d)](),this['_clearLocalCache'](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x5a5813(0x274)](){return this;}[_0x5a5813(0x294)](){return this;}[_0x5a5813(0x416)](){return this;}[_0x5a5813(0x188)](){return this;}[_0x5a5813(0x4b3)](){return this;}['toggleOnline'](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5a5813(0x282)](){const _0x51bb8e=_0x5a5813;this[_0x51bb8e(0x15c)][_0x51bb8e(0x2a8)](this[_0x51bb8e(0x129)],this[_0x51bb8e(0x41d)],null,[]);}['_showConflictNotification'](){const _0x3c0373=_0x5a5813;this[_0x3c0373(0x160)]?this[_0x3c0373(0xfd)][_0x3c0373(0x29d)]({'title':this[_0x3c0373(0x36a)]['t']('permission.title'),'content':this[_0x3c0373(0x36a)]['t'](_0x3c0373(0x37a)),'type':_0x3c0373(0x122),'duration':0x0}):this[_0x3c0373(0xfd)][_0x3c0373(0x29d)]({'title':this[_0x3c0373(0x36a)]['t'](_0x3c0373(0x323)),'content':this[_0x3c0373(0x36a)]['t']('conflict.content'),'type':_0x3c0373(0x122),'duration':0x0});}[_0x5a5813(0x456)](){const _0x33e189=_0x5a5813;this['_permissionService']['updatePermissionPoint'](new C[(_0x33e189(0x1ed))](this[_0x33e189(0x129)])['id'],!0x1);}};K=Z([g(0x6,a[_0x5a5813(0x9b)](a[_0x5a5813(0x263)])),g(0x7,a[_0x5a5813(0x3cc)]),g(0x8,a[_0x5a5813(0x34d)]),g(0x9,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x112)])),g(0xa,a[_0x5a5813(0x9b)](_[_0x5a5813(0x17d)])),g(0xb,a['Inject'](a[_0x5a5813(0x20b)])),g(0xc,A[_0x5a5813(0x2ac)])],K);let X=class extends Q{constructor(_0x3decc6,_0x37b2aa,_0x18f8ef,_0xee9573,_0x145bcd,_0x4f53bf,_0x52519e,_0x4eb8ac,_0x59de1e,_0xbdcabc){const _0x318476=_0x5a5813;super(_0x3decc6,_0x37b2aa,_0x18f8ef,_0xee9573,_0x145bcd,_0x59de1e,_0xbdcabc,_0x52519e,_0x4eb8ac),u(this,_0x318476(0x473),_0x318476(0x240)),this[_0x318476(0x33a)]=_0x4f53bf;}['appendMutation'](_0x5bfb0d){const _0x53c578=_0x5a5813;return this['_pendingMutations'][_0x53c578(0x37f)](_0x5bfb0d),this[_0x53c578(0x43a)](),this;}['onRemoteChangeset'](_0x166f53){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x4f4e0c=_0x5a5813;throw new Error(_0x4f4e0c(0x2f4));}[_0x5a5813(0x416)](){const _0x1d2344=_0x5a5813;throw new Error(_0x1d2344(0x1c2));}[_0x5a5813(0x188)](){return this;}[_0x5a5813(0x4b3)](){return this;}[_0x5a5813(0x400)](){const _0x57aff7=_0x5a5813,{_injector:_0x10c572,_pendingMutations:_0x4e8412,_awaitingChangeset:_0xf8b412,unitID:_0x15bc5c,_handler:_0x48b935,type:_0x5f2c8c}=this,_0x53a94b=Pt(_0x10c572,_0x15bc5c,_0x5f2c8c,_0xf8b412,_0x4e8412,_0x48b935);return _0x53a94b instanceof W?_0x53a94b['_schedule']():(_0x53a94b instanceof F||_0x53a94b instanceof Y)&&_0x53a94b[_0x57aff7(0x21e)](),_0x53a94b;}[_0x5a5813(0x21e)](){const _0x5c2d4a=_0x5a5813;throw new Error(_0x5c2d4a(0x352));}};X=Z([g(0x5,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),g(0x6,a[_0x5a5813(0x9b)](_[_0x5a5813(0x17d)])),g(0x7,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x112)])),g(0x8,a[_0x5a5813(0x3cc)]),g(0x9,a[_0x5a5813(0x34d)])],X);let k=class extends Q{constructor(_0x22e3a3,_0x52bf42,_0x4f049c,_0x7f48f0,_0x51ff96,_0x1ec1bb,_0x16f310,_0x57db01,_0x56f98e,_0x2e9ee5,_0x1aa73d,_0x3bae70,_0x1d58ad,_0xdbf46f){const _0x998024=_0x5a5813;super(_0x22e3a3,_0x52bf42,_0x4f049c,_0x7f48f0,_0x16f310,_0x3bae70,_0x1d58ad,_0x56f98e,_0x2e9ee5),u(this,_0x998024(0x473),_0x998024(0x1eb)),(this[_0x998024(0x36c)]=_0x51ff96,this[_0x998024(0x146)]=_0x1ec1bb,this['_injector']=_0x57db01,this[_0x998024(0x452)]=_0x1aa73d,this[_0x998024(0x3c9)]=_0xdbf46f);}[_0x5a5813(0x212)](_0x3d77bd){const _0xf66694=_0x5a5813;try{const _0x3edaed=[..._0x3d77bd,...this[_0xf66694(0x146)]],_0x5735da=[this[_0xf66694(0x1fa)]||this[_0xf66694(0x36c)]]['filter'](_0x429445=>!!_0x429445);let _0x1855eb,_0x246431;if(_0x5735da[_0xf66694(0x492)]){const _0x3420e5=this[_0xf66694(0x3c9)][_0xf66694(0x4ad)](_0x3edaed,_0x5735da,!0x1);if(!_[_0xf66694(0x39f)](_0x3420e5))throw _0x3420e5[_0xf66694(0x122)];_0x1855eb=_0x3420e5[_0xf66694(0x17f)],_0x246431=_0x3420e5[_0xf66694(0x21c)];}else _0x1855eb=_0x3edaed,_0x246431=[];let _0x594d65=this['_pendingMutations'];_0x1855eb[_0xf66694(0x1f2)](_0x592a28=>{const _0x38249d=_0xf66694;let _0x194bdb;if(_0x594d65[_0x38249d(0x492)]){const _0x26847e=this[_0x38249d(0x3c9)][_0x38249d(0x20f)](_0x592a28,_0x594d65);if(!_[_0x38249d(0x307)](_0x26847e))throw _0x26847e[_0x38249d(0x122)];_0x194bdb=_0x26847e['c1Prime'],_0x594d65=_0x26847e[_0x38249d(0x472)];}else _0x194bdb=_0x592a28;this[_0x38249d(0x267)](_0x194bdb);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x246431[_0xf66694(0x492)]&&(_0x246431[0x0]['baseRev']=this[_0xf66694(0x3ef)]());let _0x441ae5;if(this['_awaitingChangeset']&&_0x594d65[_0xf66694(0x492)]!==0x0)_0x441ae5=this[_0xf66694(0x33a)][_0xf66694(0x127)](F,this[_0xf66694(0x129)],this[_0xf66694(0x41d)],_0x246431[0x0],_0x594d65,this[_0xf66694(0x1e3)],void 0x0);else{if(this['_awaitingChangeset']&&_0x594d65['length']===0x0)_0x246431[0x0]['baseRev']=this['_getCurrentRevision'](),_0x441ae5=this['_injector'][_0xf66694(0x127)](Y,this['unitID'],this[_0xf66694(0x41d)],_0x246431[0x0],this['_handler']);else{if(_0x594d65[_0xf66694(0x492)]!==0x0){const _0x4779de=this[_0xf66694(0x33a)]['createInstance'](W,this[_0xf66694(0x129)],this[_0xf66694(0x41d)],_0x594d65,this['_handler']);_0x4779de[_0xf66694(0xc5)](),_0x441ae5=_0x4779de;}else _0x441ae5=this[_0xf66694(0x33a)][_0xf66694(0x127)](re,this[_0xf66694(0x129)],this['type'],this[_0xf66694(0x1e3)]);}}return _0x441ae5[_0xf66694(0x43a)](),_0x441ae5;}catch(_0x339d6e){return this[_0xf66694(0x452)][_0xf66694(0x122)](_0xf66694(0x104),'failed\x20to\x20apply\x20missed\x20changesets!',_0x339d6e),this[_0xf66694(0x33a)][_0xf66694(0x127)](K,this[_0xf66694(0x129)],this[_0xf66694(0x41d)],this[_0xf66694(0x1fa)],this[_0xf66694(0x36d)],this[_0xf66694(0x1e3)],!0x1);}}['resend'](){const _0x21296a=_0x5a5813;throw new Error(_0x21296a(0x3a5));}['appendMutation'](_0x47051c){const _0x232596=_0x5a5813;return this[_0x232596(0x36d)][_0x232596(0x37f)](_0x47051c),this;}[_0x5a5813(0x274)](_0x296152){const _0x4e7d1d=_0x5a5813;return this[_0x4e7d1d(0x146)][_0x4e7d1d(0x37f)](_0x296152),this;}[_0x5a5813(0x294)](_0x1a5788){const _0x4915ae=_0x5a5813;if(this[_0x4915ae(0x1fa)])return this[_0x4915ae(0x36c)]=this[_0x4915ae(0x1fa)],this['_awaitingChangeset']=null,this;throw new Error(_0x4915ae(0x2fa));}[_0x5a5813(0x416)](_0xdf5090){return this['_onConflict'](!!(_0xdf5090!=null&&_0xdf5090['isPermissionRej']));}[_0x5a5813(0x188)](){return this;}[_0x5a5813(0x4b3)](){const _0x42891b=_0x5a5813;return this[_0x42891b(0x33a)][_0x42891b(0x127)](X,this[_0x42891b(0x129)],this[_0x42891b(0x41d)],this[_0x42891b(0x1fa)],this[_0x42891b(0x36d)],this[_0x42891b(0x1e3)]);}['toggleOnline'](){return this;}[_0x5a5813(0x3cf)](_0x596bc1){const _0x352c8a=_0x5a5813;return this[_0x352c8a(0x33a)]['createInstance'](K,this[_0x352c8a(0x129)],this[_0x352c8a(0x41d)],this['_awaitingChangeset'],this[_0x352c8a(0x36d)],this[_0x352c8a(0x1e3)],_0x596bc1);}};k=Z([g(0x7,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),g(0x8,a[_0x5a5813(0x9b)](_[_0x5a5813(0x17d)])),g(0x9,a['Inject'](exports['LocalCacheService'])),g(0xa,a[_0x5a5813(0x398)]),g(0xb,a['ICommandService']),g(0xc,a[_0x5a5813(0x34d)]),g(0xd,_[_0x5a5813(0xa0)])],k);function Pt(_0x3113ce,_0x5c944b,_0x4aa4b4,_0x306b5b,_0x45faf7,_0x28d463){const _0x27c583=_0x5a5813;return _0x306b5b&&_0x45faf7['length']?_0x3113ce[_0x27c583(0x127)](F,_0x5c944b,_0x4aa4b4,_0x306b5b,_0x45faf7,_0x28d463,void 0x0):_0x306b5b?_0x3113ce[_0x27c583(0x127)](Y,_0x5c944b,_0x4aa4b4,_0x306b5b,_0x28d463):_0x45faf7[_0x27c583(0x492)]?_0x3113ce[_0x27c583(0x127)](W,_0x5c944b,_0x4aa4b4,_0x45faf7,_0x28d463):_0x3113ce['createInstance'](re,_0x5c944b,_0x4aa4b4,_0x28d463);}var Xs=Object[_0x5a5813(0x40e)],qs=Object[_0x5a5813(0x3b4)],qe=(_0x52d0a7,_0x301594,_0x4ba0a0,_0x139869)=>{const _0x457b4b=_0x5a5813;for(var _0xd4916d=_0x139869>0x1?void 0x0:_0x139869?qs(_0x301594,_0x4ba0a0):_0x301594,_0x500032=_0x52d0a7[_0x457b4b(0x492)]-0x1,_0x243069;_0x500032>=0x0;_0x500032--)(_0x243069=_0x52d0a7[_0x500032])&&(_0xd4916d=(_0x139869?_0x243069(_0x301594,_0x4ba0a0,_0xd4916d):_0x243069(_0xd4916d))||_0xd4916d);return _0x139869&&_0xd4916d&&Xs(_0x301594,_0x4ba0a0,_0xd4916d),_0xd4916d;},p=(_0x2fa03a,_0x4fc89e)=>(_0x5f9f16,_0x42a960)=>_0x4fc89e(_0x5f9f16,_0x42a960,_0x2fa03a);exports[_0x5a5813(0x128)]=class extends a['RxDisposable']{constructor(_0x1deb61,_0x247309,_0x4a097c,_0x33e9bf,_0x5152c0,_0x2e16d0,_0x19e17e,_0x5d6a2a,_0x31f4cf,_0x39f1de,_0x24ca2d,_0x2fcd2e,_0x3989dc){const _0x2e1f95=_0x5a5813;super(),u(this,'_state$',new v['BehaviorSubject'](null)),u(this,_0x2e1f95(0x125),this[_0x2e1f95(0x3fe)][_0x2e1f95(0x195)]()),u(this,'_state'),u(this,_0x2e1f95(0x23e),!0x1),u(this,_0x2e1f95(0x40a),''),u(this,_0x2e1f95(0x3d3),0x0),u(this,_0x2e1f95(0x424),this[_0x2e1f95(0x125)][_0x2e1f95(0x2dd)](v[_0x2e1f95(0x29a)](_0xbc51f2=>_0xbc51f2?_0xbc51f2[_0x2e1f95(0x473)]:D['OFFLINE']),v[_0x2e1f95(0x20c)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x2e1f95(0x237),[]),(this[_0x2e1f95(0x129)]=_0x1deb61,this['session']=_0x247309,this[_0x2e1f95(0x166)]=_0x4a097c,this[_0x2e1f95(0x33a)]=_0x33e9bf,this[_0x2e1f95(0x15c)]=_0x5152c0,this[_0x2e1f95(0x209)]=_0x2e16d0,this[_0x2e1f95(0x36a)]=_0x19e17e,this[_0x2e1f95(0x27f)]=_0x5d6a2a,this[_0x2e1f95(0x452)]=_0x31f4cf,this[_0x2e1f95(0x159)]=_0x39f1de,this['_messageService']=_0x24ca2d,this[_0x2e1f95(0xcb)]=_0x2fcd2e,this['_singleActiveUnitService']=_0x3989dc);}get[_0x5a5813(0x28f)](){const _0x29eb9d=_0x5a5813;return this[_0x29eb9d(0x24e)];}async[_0x5a5813(0x296)](){const _0x5b97ff=_0x5a5813;if(this[_0x5b97ff(0x28f)])throw new Error(_0x5b97ff(0x25b));await this[_0x5b97ff(0x412)]();}[_0x5a5813(0x384)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x35ade4=_0x14f1;this[_0x35ade4(0x23e)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x37fedf){const _0x1a0769=_0x5a5813;this['_state']=_0x37fedf,this[_0x1a0769(0x3fe)]['next'](_0x37fedf);}async['_init'](){const _0x1336bc=_0x5a5813;var _0x232e77;this[_0x1336bc(0x17a)](await this['_createInitialState']()),this['_singleActiveUnitService']&&((_0x232e77=this[_0x1336bc(0xad)])==null||_0x232e77[_0x1336bc(0x4b2)](this[_0x1336bc(0x129)]),this[_0x1336bc(0xd3)](this[_0x1336bc(0xad)][_0x1336bc(0x458)](this[_0x1336bc(0x129)])[_0x1336bc(0x11c)](_0x4e04dd=>{const _0x591db7=_0x1336bc;this['_logService'][_0x591db7(0x404)]('[CollaborationEntity]',_0x591db7(0x4a2),_0x4e04dd),_0x4e04dd===Ot[_0x591db7(0x31f)]?(this['_messageService'][_0x591db7(0x29d)]({'content':this[_0x591db7(0x36a)]['t'](_0x591db7(0x20d)),'type':J[_0x591db7(0x359)][_0x591db7(0x328)]}),this[_0x591db7(0xcb)][_0x591db7(0x3ce)](new C[(_0x591db7(0x1ed))](this['unitID'])['id'],!0x1),this[_0x591db7(0xcb)][_0x591db7(0x3fa)](!0x1)):(this[_0x591db7(0xcb)][_0x591db7(0x3ce)](new C[(_0x591db7(0x1ed))](this['unitID'])['id'],!0x0),this[_0x591db7(0xcb)][_0x591db7(0x3fa)](!0x0));})));let _0x17288f=!0x1;return this[_0x1336bc(0xd3)](this[_0x1336bc(0x137)]['sessionStatus$'][_0x1336bc(0x11c)](_0x30f43f=>{const _0x266160=_0x1336bc;_0x30f43f===x[_0x266160(0x469)]?this[_0x266160(0x448)](_0x17288f):_0x30f43f===x['OFFLINE']&&(_0x17288f=!0x0,this[_0x266160(0x372)]());})),this[_0x1336bc(0xd3)](this[_0x1336bc(0x137)][_0x1336bc(0x19f)]['subscribe'](_0x3a1f64=>{const _0x31c2c8=_0x1336bc;try{switch(_0x3a1f64['eventID']){case _[_0x31c2c8(0x409)]['NEW_CHANGESETS']:{this[_0x31c2c8(0x344)](_[_0x31c2c8(0x37d)](_0x3a1f64[_0x31c2c8(0x9c)]));break;}case _[_0x31c2c8(0x409)][_0x31c2c8(0x11f)]:{this[_0x31c2c8(0x3c1)](_0x3a1f64['data']);break;}case _[_0x31c2c8(0x409)]['CHANGESET_REJ']:{this[_0x31c2c8(0x26a)]();break;}case _[_0x31c2c8(0x409)][_0x31c2c8(0x15f)]:{this[_0x31c2c8(0x373)](_0x3a1f64[_0x31c2c8(0x9c)]);break;}case _['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x31c2c8(0x3a0)](_0x3a1f64[_0x31c2c8(0x9c)][_0x31c2c8(0x40b)][_0x31c2c8(0x29a)](_0x4a96ea=>_['parseProtocolChangeset'](_0x4a96ea)));break;}case _[_0x31c2c8(0x409)][_0x31c2c8(0x8e)]:this[_0x31c2c8(0x26a)]({'isPermissionRej':!0x0});}}catch(_0x477393){throw console[_0x31c2c8(0x122)](_0x31c2c8(0x1a5),_0x477393),_0x477393;}})),this[_0x1336bc(0x24e)];}[_0x5a5813(0x3d7)](){this['_transitionLocked']=!0x1;}[_0x5a5813(0x13a)](){const _0x3d9951=_0x5a5813;if(this['_transitionLocked'])throw new Error('[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.');this[_0x3d9951(0x433)]=!0x0;}[_0x5a5813(0x4a7)](_0x3168f3){const _0x16626c=_0x5a5813;this[_0x16626c(0x13a)](),this[_0x16626c(0x17a)](this[_0x16626c(0x24e)][_0x16626c(0x445)](_0x3168f3)),this[_0x16626c(0x3d7)]();}[_0x5a5813(0x344)](_0x5bd496){const _0x49d893=_0x5a5813;if(!(_0x5bd496['revision']<=this['_revisionService'][_0x49d893(0x18d)](this['unitID']))){if(this[_0x49d893(0x23e)]){this[_0x49d893(0x237)][_0x49d893(0x37f)](_0x5bd496);return;}this[_0x49d893(0x4a1)](_0x5bd496);}}[_0x5a5813(0x26b)](){const _0x4a3ba8=_0x5a5813;this['_remoteChangesetQueue'][_0x4a3ba8(0x1f2)](_0x7b2eb8=>this['_applyRemoteChangeset'](_0x7b2eb8)),this['_remoteChangesetQueue']=[];}[_0x5a5813(0x4a1)](_0x2e3f75){const _0x1c7f7f=_0x5a5813,_0x2966b1=this[_0x1c7f7f(0x209)][_0x1c7f7f(0xa3)]['fetchThroughInterceptors'](this[_0x1c7f7f(0x209)][_0x1c7f7f(0xa3)][_0x1c7f7f(0x3b3)]()[_0x1c7f7f(0x3d5)])(_0x2e3f75['mutations'],null)||_0x2e3f75[_0x1c7f7f(0x2ad)],_0x1e8962={..._0x2e3f75,'mutations':_0x2966b1};this[_0x1c7f7f(0x13a)](),this[_0x1c7f7f(0x17a)](this[_0x1c7f7f(0x24e)][_0x1c7f7f(0x274)](_0x1e8962)),this[_0x1c7f7f(0x3d7)]();}['_onRemoteACK'](_0x4fc818){const _0x84ca83=_0x5a5813;this['_lockTransition'](),this[_0x84ca83(0x17a)](this[_0x84ca83(0x24e)][_0x84ca83(0x294)](_0x4fc818)),this[_0x84ca83(0x3d7)]();}[_0x5a5813(0x26a)](_0x1de2a9){const _0x3ce48a=_0x5a5813;this[_0x3ce48a(0x13a)](),this['_updateState'](this['_state'][_0x3ce48a(0x416)](_0x1de2a9)),this[_0x3ce48a(0x3d7)]();}[_0x5a5813(0x373)](_0x5e5ba0){const _0xd3f6b=_0x5a5813;this[_0xd3f6b(0x13a)](),this['_updateState'](this[_0xd3f6b(0x24e)][_0xd3f6b(0x188)](_0x5e5ba0)),this[_0xd3f6b(0x3d7)]();}[_0x5a5813(0x3a0)](_0xbede95){const _0x25a4e9=_0x5a5813;if(!(this[_0x25a4e9(0x24e)]instanceof k))throw new TypeError(_0x25a4e9(0x2b3));const _0x28aed0=_0xbede95['map'](_0x430820=>{const _0x13bd18=_0x25a4e9,_0xd75dc9=this['_compressMutationService'][_0x13bd18(0xa3)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x13bd18(0xa3)][_0x13bd18(0x3b3)]()[_0x13bd18(0x3d5)])(_0x430820['mutations'],null)||_0x430820['mutations'];return{..._0x430820,'mutations':_0xd75dc9};});this[_0x25a4e9(0x13a)](),this[_0x25a4e9(0x17a)](this[_0x25a4e9(0x24e)]['onMissedChangesetFetched'](_0x28aed0)),this[_0x25a4e9(0x3d7)]();}['_toggleOffline'](){const _0x20de94=_0x5a5813;this[_0x20de94(0x13a)](),this[_0x20de94(0x17a)](this[_0x20de94(0x24e)][_0x20de94(0x4b3)]()),this[_0x20de94(0x3d7)]();}['_toggleOnline'](_0x3145d3=!0x1){const _0x3f7f12=_0x5a5813;this[_0x3f7f12(0x13a)](),this['_updateState'](this[_0x3f7f12(0x24e)][_0x3f7f12(0x400)]()),this[_0x3f7f12(0x3d7)]();const _0x578b3f=this[_0x3f7f12(0x24e)];_0x3145d3&&_0x578b3f instanceof re&&(this['_lockTransition'](),this['_updateState'](_0x578b3f['fetchMiss']()),this[_0x3f7f12(0x3d7)]());}async[_0x5a5813(0x246)](){return new Promise(_0x63f90d=>{const _0x597138=_0x14f1;this[_0x597138(0x137)][_0x597138(0x367)][_0x597138(0x2dd)](v[_0x597138(0x48c)](0x1))[_0x597138(0x11c)](async _0x176318=>{const _0x5d0903=_0x597138;_0x63f90d(await this[_0x5d0903(0x1bc)](_0x176318===x[_0x5d0903(0x469)]));});});}['_createHandler'](){const _0x4e577f=_0x5a5813,_0x4a0786=this[_0x4e577f(0x129)];return{'onStateChange':(_0x2db5bc,_0x1344ee)=>{const _0x2bd4e6=_0x4e577f;if(_0x2db5bc!==this[_0x2bd4e6(0x24e)])throw new Error(_0x2bd4e6(0x253)+_0x2db5bc[_0x2bd4e6(0x473)]+_0x2bd4e6(0x3f8)+_0x1344ee[_0x2bd4e6(0x473)]+_0x2bd4e6(0x2b5)+this[_0x2bd4e6(0x24e)][_0x2bd4e6(0x473)]);this[_0x2bd4e6(0x17a)](_0x1344ee);},'onSendChangeset':_0x353887=>{const _0x476b85=_0x4e577f;_0x353887[_0x476b85(0x2eb)]||(_0x353887[_0x476b85(0x2eb)]=this[_0x476b85(0x40a)],_0x353887[_0x476b85(0x1cb)]=++this[_0x476b85(0x3d3)]);const _0x4309ae={'eventID':_['CollaborationEvent'][_0x476b85(0x2f0)],'data':{'unitID':_0x353887[_0x476b85(0x129)],'unitType':this[_0x476b85(0x166)],'changeset':_0x353887,'memberID':this['session'][_0x476b85(0xbe)]()}};this[_0x476b85(0x137)][_0x476b85(0x408)](_0x4309ae,this['unitID']);},'onMissingChangesets':({from:_0x42ecb7,to:_0x5392d3})=>{const _0x37b4d8=_0x4e577f;this['_logService'][_0x37b4d8(0x404)]('[CollaborationEntity]',_0x37b4d8(0x194)+_0x42ecb7+_0x37b4d8(0x115)+_0x5392d3);const _0x3c126b={'eventID':_[_0x37b4d8(0x409)]['FETCH_MISSING'],'data':{'unitID':_0x4a0786,'unitType':this[_0x37b4d8(0x166)],'from':_0x42ecb7,'to':_0x5392d3}};this[_0x37b4d8(0x137)]['send'](_0x3c126b,this[_0x37b4d8(0x129)]);}};}async[_0x5a5813(0x1bc)](_0x1c4355){const _0x16b337=_0x5a5813;var _0x63fb42,_0x179fbf;const _0x2530b0=await this[_0x16b337(0x15c)][_0x16b337(0x321)](this[_0x16b337(0x129)]),_0x35a8c5=(_0x63fb42=_0x2530b0==null?void 0x0:_0x2530b0[_0x16b337(0x2ad)])!=null?_0x63fb42:[],_0x164b1e=(_0x179fbf=_0x2530b0==null?void 0x0:_0x2530b0[_0x16b337(0x357)])!=null?_0x179fbf:null,_0x5a059d=!!(_0x164b1e!=null&&_0x164b1e[_0x16b337(0x2eb)])&&!!(_0x164b1e!=null&&_0x164b1e[_0x16b337(0x1cb)]);this['_changesetSessionId']=_0x5a059d?_0x164b1e[_0x16b337(0x2eb)]:Ds(),this[_0x16b337(0x3d3)]=_0x5a059d?_0x164b1e['reqId']:0x0;const _0x38608a=this[_0x16b337(0x129)];try{this[_0x16b337(0x20a)](_0x164b1e,_0x35a8c5);}catch(_0x42bbf6){this[_0x16b337(0x452)][_0x16b337(0x122)](_0x42bbf6);}const _0x4003f1=this[_0x16b337(0x238)]();if(_0x1c4355){const _0x1a7ca7=Pt(this[_0x16b337(0x33a)],_0x38608a,this[_0x16b337(0x166)],_0x164b1e,_0x35a8c5,_0x4003f1);return _0x1a7ca7 instanceof W?_0x1a7ca7[_0x16b337(0xc5)]():(_0x1a7ca7 instanceof F||_0x1a7ca7 instanceof Y)&&_0x1a7ca7[_0x16b337(0x21e)](),_0x1a7ca7;}return this[_0x16b337(0x33a)][_0x16b337(0x127)](X,_0x38608a,this[_0x16b337(0x166)],_0x164b1e,_0x35a8c5,_0x4003f1);}[_0x5a5813(0x20a)](_0x17fdb1,_0x161451){const _0x376dfe=_0x5a5813;var _0x1356c0,_0x32f810;const _0x161fad=this[_0x376dfe(0x209)][_0x376dfe(0xa3)][_0x376dfe(0x213)](this[_0x376dfe(0x209)][_0x376dfe(0xa3)][_0x376dfe(0x3b3)]()['COMPRESS_MUTATION_APPLY']);(_0x1356c0=_0x161fad((_0x17fdb1==null?void 0x0:_0x17fdb1[_0x376dfe(0x2ad)])||[],null))==null||_0x1356c0['forEach'](_0x41bfc4=>this[_0x376dfe(0x159)]['executeCommand'](_0x41bfc4['id'],_0x41bfc4['params'])),(_0x32f810=_0x161fad(_0x161451||[],null))==null||_0x32f810['forEach'](_0x45926a=>this[_0x376dfe(0x159)][_0x376dfe(0x39c)](_0x45926a['id'],_0x45926a['params']));}},exports['CollaborationEntity']=qe([p(0x3,a['Inject'](a[_0x5a5813(0x30e)])),p(0x4,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x112)])),p(0x5,a[_0x5a5813(0x9b)](_['CompressMutationService'])),p(0x6,a[_0x5a5813(0x9b)](a['LocaleService'])),p(0x7,a['Inject'](_[_0x5a5813(0x17d)])),p(0x8,a[_0x5a5813(0x398)]),p(0x9,a[_0x5a5813(0x3cc)]),p(0xa,A[_0x5a5813(0x48f)]),p(0xb,a[_0x5a5813(0x263)]),p(0xc,a['Optional'](Re))],exports[_0x5a5813(0x128)]),exports[_0x5a5813(0xc0)]=class extends exports[_0x5a5813(0x128)]{constructor(_0x13502f,_0x1b44e0,_0x16cce7,_0x4a7255,_0x1e9913,_0x1f7402,_0x24eb52,_0x8b7653,_0x1f27ce,_0x9453cb,_0x307c6e,_0x1f203f,_0x580ef2,_0xba8757,_0x21a73b,_0x4c9e88,_0x1e191d){const _0x24dac1=_0x5a5813;super(_0x13502f,_0x16cce7,_0x1b44e0,_0x4a7255,_0x1e9913,_0x1f7402,_0x24eb52,_0x8b7653,_0x580ef2,_0xba8757,_0x21a73b,_0x4c9e88,_0x1e191d),this[_0x24dac1(0x129)]=_0x13502f,this[_0x24dac1(0x41d)]=_0x1b44e0,this[_0x24dac1(0x470)]=_0x1f27ce,this['_docTransformIMECacheService']=_0x9453cb,this[_0x24dac1(0xb5)]=_0x307c6e,this[_0x24dac1(0x169)]=_0x1f203f;}[_0x5a5813(0x238)](){const _0x11c58e=_0x5a5813,_0x292690=super['_createHandler']();return _0x292690[_0x11c58e(0x180)]=_0x58e714=>this['_docTransformIMECacheService'][_0x11c58e(0x26f)](_0x58e714),_0x292690[_0x11c58e(0x467)]=_0x4c5212=>this[_0x11c58e(0xb5)][_0x11c58e(0xa8)](_0x4c5212),_0x292690[_0x11c58e(0x150)]=_0x2d4959=>this['_docSyncEditingCollabCursorService'][_0x11c58e(0x37e)](_0x2d4959),_0x292690[_0x11c58e(0x3ca)]=_0x537bd6=>this['_docTransformIMECacheService'][_0x11c58e(0x108)](_0x537bd6),_0x292690;}async[_0x5a5813(0x412)](){const _0x43765f=_0x5a5813,_0x2ed3fe=await super[_0x43765f(0x412)]();return this[_0x43765f(0x470)][_0x43765f(0x247)]['pipe'](v[_0x43765f(0x460)](this[_0x43765f(0x207)]))[_0x43765f(0x11c)](_0x1070e6=>{const _0x5c436f=_0x43765f;if(_0x1070e6==null)return;const {unitId:_0x999072,redoState:_0x491870,commandId:_0x40de0d}=_0x1070e6;if(_0x999072!==this[_0x5c436f(0x129)])return;const _0x42d6f9={'id':_0x40de0d,'type':a[_0x5c436f(0x368)]['MUTATION'],'params':{'unitId':_0x999072,'actions':_0x491870[_0x5c436f(0x14d)],'textRanges':null}};this[_0x5c436f(0x4a7)](_0x42d6f9);}),_0x2ed3fe;}},exports[_0x5a5813(0xc0)]=qe([p(0x3,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),p(0x4,a[_0x5a5813(0x9b)](exports['LocalCacheService'])),p(0x5,a['Inject'](_['CompressMutationService'])),p(0x6,a[_0x5a5813(0x9b)](a[_0x5a5813(0x20b)])),p(0x7,a[_0x5a5813(0x9b)](_[_0x5a5813(0x17d)])),p(0x8,a[_0x5a5813(0x9b)](N[_0x5a5813(0x3f1)])),p(0x9,a['Inject'](fe)),p(0xa,a[_0x5a5813(0x9b)](pe)),p(0xb,a[_0x5a5813(0x9b)](Xe)),p(0xc,a[_0x5a5813(0x398)]),p(0xd,a['ICommandService']),p(0xe,A[_0x5a5813(0x48f)]),p(0xf,a[_0x5a5813(0x263)]),p(0x10,a[_0x5a5813(0xe8)](Re))],exports[_0x5a5813(0xc0)]),exports[_0x5a5813(0x261)]=class extends exports[_0x5a5813(0x128)]{constructor(_0x5c8316,_0x24b834,_0x24ab58,_0x54d78d,_0x2ec2e5,_0x10a2fd,_0x47315d,_0x12e9b6,_0x2c457f,_0xf6e826,_0x539d4d,_0x2dabcc,_0x5b2427,_0x3bf12a){const _0x20a9c9=_0x5a5813;super(_0x5c8316,_0x24ab58,_0x24b834,_0x54d78d,_0x2ec2e5,_0x10a2fd,_0x47315d,_0x12e9b6,_0xf6e826,_0x539d4d,_0x2dabcc,_0x5b2427,_0x3bf12a),this[_0x20a9c9(0x129)]=_0x5c8316,this[_0x20a9c9(0x41d)]=_0x24b834,this['_sheetTransformSelectionsService']=_0x2c457f;}['_createHandler'](){const _0x1818cf=_0x5a5813,_0x584b6c=super['_createHandler']();return _0x584b6c[_0x1818cf(0x467)]=_0x513332=>this['_sheetTransformSelectionsService'][_0x1818cf(0xa8)](_0x513332),_0x584b6c;}async[_0x5a5813(0x412)](){const _0x25dd08=_0x5a5813,_0x5cfa80=await super[_0x25dd08(0x412)]();return this[_0x25dd08(0xd3)](this['_commandService']['onCommandExecuted']((_0x506a77,_0x3dbd17)=>{const _0x174431=_0x25dd08;if(_0x506a77[_0x174431(0x41d)]!==a[_0x174431(0x368)][_0x174431(0xc9)]||_0x3dbd17!=null&&_0x3dbd17[_0x174431(0x8c)]||_0x3dbd17!=null&&_0x3dbd17[_0x174431(0xc1)])return;const _0x5d951b=_0x506a77[_0x174431(0x31e)];if((_0x5d951b==null?void 0x0:_0x5d951b[_0x174431(0x396)])!==this[_0x174431(0x129)])return;const _0x4a69d8=_0x506a77,_0x1467b5=this[_0x174431(0x209)][_0x174431(0xa3)][_0x174431(0x213)](this[_0x174431(0x209)]['interceptor'][_0x174431(0x3b3)]()['COMPRESS_MUTATION_SEND'])([_0x4a69d8],null)||[_0x4a69d8];this['_onLocalMutation'](_0x1467b5[0x0]);})),_0x5cfa80;}},exports[_0x5a5813(0x261)]=qe([p(0x3,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),p(0x4,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x112)])),p(0x5,a[_0x5a5813(0x9b)](_[_0x5a5813(0x96)])),p(0x6,a[_0x5a5813(0x9b)](a[_0x5a5813(0x20b)])),p(0x7,a[_0x5a5813(0x9b)](_[_0x5a5813(0x17d)])),p(0x8,a['Inject'](Ie)),p(0x9,a[_0x5a5813(0x398)]),p(0xa,a[_0x5a5813(0x3cc)]),p(0xb,A[_0x5a5813(0x48f)]),p(0xc,a['IPermissionService']),p(0xd,a[_0x5a5813(0xe8)](Re))],exports[_0x5a5813(0x261)]);var zs=Object[_0x5a5813(0x40e)],Js=Object[_0x5a5813(0x3b4)],Zs=(_0x236b6f,_0xe17601,_0x3090ee,_0x1d2d15)=>{const _0x248c32=_0x5a5813;for(var _0x2ec56d=_0x1d2d15>0x1?void 0x0:_0x1d2d15?Js(_0xe17601,_0x3090ee):_0xe17601,_0xbb4041=_0x236b6f[_0x248c32(0x492)]-0x1,_0x4a9daa;_0xbb4041>=0x0;_0xbb4041--)(_0x4a9daa=_0x236b6f[_0xbb4041])&&(_0x2ec56d=(_0x1d2d15?_0x4a9daa(_0xe17601,_0x3090ee,_0x2ec56d):_0x4a9daa(_0x2ec56d))||_0x2ec56d);return _0x1d2d15&&_0x2ec56d&&zs(_0xe17601,_0x3090ee,_0x2ec56d),_0x2ec56d;},we=(_0x3666b3,_0xddae9d)=>(_0x17421d,_0x533a58)=>_0xddae9d(_0x17421d,_0x533a58,_0x3666b3);exports[_0x5a5813(0x199)]=class extends a['RxDisposable']{constructor(_0x58bf9c,_0x193504,_0x378a8a){const _0x3c2423=_0x5a5813;super(),u(this,_0x3c2423(0x422),new Map()),u(this,_0x3c2423(0x3c7),new v[(_0x3c2423(0x98))]()),(this[_0x3c2423(0x33a)]=_0x58bf9c,this['_collabSessionService']=_0x193504,this['_univerInstanceService']=_0x378a8a,this[_0x3c2423(0x412)]());}[_0x5a5813(0x34b)](){const _0x57a0f4=_0x5a5813;super[_0x57a0f4(0x34b)](),this[_0x57a0f4(0x422)][_0x57a0f4(0x1f2)](_0x3428fe=>_0x3428fe['dispose']()),this[_0x57a0f4(0x422)][_0x57a0f4(0x132)]();}[_0x5a5813(0x252)](_0x1c7e27){const _0x2a2dba=_0x5a5813;var _0x20f0ed;return(_0x20f0ed=this[_0x2a2dba(0x422)][_0x2a2dba(0x4a8)](_0x1c7e27))!=null?_0x20f0ed:null;}[_0x5a5813(0x376)](_0x956c8d){const _0xf21b52=_0x5a5813,_0x106a86=this[_0xf21b52(0x252)](_0x956c8d);return _0x106a86?v['of'](_0x106a86):this[_0xf21b52(0x3c7)]['pipe'](E[_0xf21b52(0x8b)](_0x433da7=>_0x433da7[_0xf21b52(0x129)]===_0x956c8d));}[_0x5a5813(0x412)](){const _0x3dcb01=_0x5a5813;this[_0x3dcb01(0x15d)]['getTypeOfUnitAdded$'](a[_0x3dcb01(0x48a)][_0x3dcb01(0xe6)])[_0x3dcb01(0x2dd)](v['takeUntil'](this[_0x3dcb01(0x207)]),E[_0x3dcb01(0x3f2)](0x10))[_0x3dcb01(0x11c)](async _0x1364f1=>{const _0x36f9d5=_0x3dcb01,_0x12815d=_0x1364f1['getUnitId'](),_0x5573c7=await this[_0x36f9d5(0x2e3)](_0x12815d,H[_0x36f9d5(0xe6)]);this[_0x36f9d5(0x422)]['set'](_0x12815d,_0x5573c7);}),this[_0x3dcb01(0x15d)][_0x3dcb01(0x429)](a['UniverInstanceType'][_0x3dcb01(0x2fe)])['pipe'](v[_0x3dcb01(0x460)](this['dispose$']),E['delay'](0x10))[_0x3dcb01(0x2dd)](E[_0x3dcb01(0x8b)](_0x4d91ba=>!_0x4d91ba[_0x3dcb01(0x488)]()['startsWith']('__')))[_0x3dcb01(0x11c)](async _0x442f66=>{const _0x4aa7ea=_0x3dcb01,_0x55ba6f=_0x442f66[_0x4aa7ea(0x488)](),_0x891377=await this['_startCollaboration'](_0x55ba6f,H['UNIVER_DOC']);this[_0x4aa7ea(0x422)][_0x4aa7ea(0x3a9)](_0x55ba6f,_0x891377);}),v[_0x3dcb01(0x23b)](this[_0x3dcb01(0x15d)][_0x3dcb01(0x36f)](a[_0x3dcb01(0x48a)][_0x3dcb01(0xe6)]),this[_0x3dcb01(0x15d)][_0x3dcb01(0x36f)](a[_0x3dcb01(0x48a)][_0x3dcb01(0x2fe)]))['pipe'](v[_0x3dcb01(0x460)](this[_0x3dcb01(0x207)]))['subscribe'](_0x5c52fa=>{const _0x1abe98=_0x3dcb01,_0x581c72=_0x5c52fa[_0x1abe98(0x488)](),_0xec18dc=this[_0x1abe98(0x422)]['get'](_0x581c72);_0xec18dc&&(_0xec18dc[_0x1abe98(0x34b)](),this[_0x1abe98(0x422)]['delete'](_0x581c72));});}async[_0x5a5813(0x2e3)](_0x2be2fd,_0x54960a){const _0x1a62b0=_0x5a5813,_0x2ad75c=await this['_collabSessionService'][_0x1a62b0(0x44c)](_0x2be2fd),_0x3bc9f4=this['_injector'][_0x1a62b0(0x127)](this['_getCtorByUniverType'](_0x54960a),_0x2be2fd,_0x54960a,_0x2ad75c);return await _0x3bc9f4[_0x1a62b0(0x296)](),this[_0x1a62b0(0x3c7)]['next'](_0x3bc9f4),_0x3bc9f4;}[_0x5a5813(0x1b1)](_0x18b16d){const _0x355a42=_0x5a5813;switch(_0x18b16d){case H['UNIVER_DOC']:return exports[_0x355a42(0xc0)];case H[_0x355a42(0xe6)]:return exports[_0x355a42(0x261)];default:throw new Error(_0x355a42(0x1a6)+_0x18b16d);}}},exports[_0x5a5813(0x199)]=Zs([we(0x0,a['Inject'](a[_0x5a5813(0x30e)])),we(0x1,a[_0x5a5813(0x9b)](exports['CollaborationSessionService'])),we(0x2,a['IUniverInstanceService'])],exports[_0x5a5813(0x199)]);const at=[_0x5a5813(0x316),'jiqing500',_0x5a5813(0x270),'red300',_0x5a5813(0x30a),'gold400'];class ze extends a[_0x5a5813(0x183)]{constructor(){const _0x409438=_0x5a5813;super(...arguments),u(this,_0x409438(0x30d),new Map()),u(this,_0x409438(0x16f),0x0);}['assignAColorForMemberID'](_0x52335e){const _0x4c5842=_0x5a5813;if(this[_0x4c5842(0x30d)][_0x4c5842(0xce)](_0x52335e))return this[_0x4c5842(0x30d)][_0x4c5842(0x4a8)](_0x52335e);const _0x5edd3b=at[this[_0x4c5842(0x16f)]];return this[_0x4c5842(0x16f)]=(this[_0x4c5842(0x16f)]+0x1)%at[_0x4c5842(0x492)],this['_assignedColors']['set'](_0x52335e,_0x5edd3b),_0x5edd3b;}}var Qs=Object[_0x5a5813(0x40e)],ei=Object['getOwnPropertyDescriptor'],ti=(_0x5dbc99,_0x475741,_0x21777e,_0x3d176e)=>{const _0x4097f0=_0x5a5813;for(var _0x2a44cf=_0x3d176e>0x1?void 0x0:_0x3d176e?ei(_0x475741,_0x21777e):_0x475741,_0x303834=_0x5dbc99[_0x4097f0(0x492)]-0x1,_0x5dd8e5;_0x303834>=0x0;_0x303834--)(_0x5dd8e5=_0x5dbc99[_0x303834])&&(_0x2a44cf=(_0x3d176e?_0x5dd8e5(_0x475741,_0x21777e,_0x2a44cf):_0x5dd8e5(_0x2a44cf))||_0x2a44cf);return _0x3d176e&&_0x2a44cf&&Qs(_0x475741,_0x21777e,_0x2a44cf),_0x2a44cf;},z=(_0x18421a,_0x461f2e)=>(_0x1fa508,_0x37b4fe)=>_0x461f2e(_0x1fa508,_0x37b4fe,_0x18421a);const si=0x12c,ii=0x64;let xe=class extends a[_0x5a5813(0x18f)]{constructor(_0x26f76c,_0x128cc4,_0xb94d56,_0x333ebf,_0x4c425b,_0x49dd18,_0x3a7125,_0x366f90,_0x11deff){const _0x110d8b=_0x5a5813;super(),u(this,_0x110d8b(0x427),!0x1),u(this,_0x110d8b(0x412),!0x1),u(this,_0x110d8b(0x15e),new v[(_0x110d8b(0xd2))](new Map())),u(this,_0x110d8b(0x437),this[_0x110d8b(0x15e)][_0x110d8b(0x195)]()),u(this,'_roomMembers$',new v['BehaviorSubject']([])),u(this,_0x110d8b(0x35d),this[_0x110d8b(0x2ee)]['pipe'](v['debounceTime'](si))),u(this,_0x110d8b(0x3de),a[_0x110d8b(0x11d)](_0x575c97=>{const _0x26e762=_0x110d8b,_0x3c9fdf={'eventID':_[_0x26e762(0x409)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x26e762(0x129)],'memberID':this[_0x26e762(0xf2)][_0x26e762(0xbe)](),'selection':Dt(_0x575c97)}};this['_session'][_0x26e762(0x408)](_0x3c9fdf,this[_0x26e762(0x129)]);},ii)),(this[_0x110d8b(0x129)]=_0x26f76c,this[_0x110d8b(0xf2)]=_0x128cc4,this[_0x110d8b(0x33a)]=_0xb94d56,this[_0x110d8b(0xf7)]=_0x333ebf,this[_0x110d8b(0x3c2)]=_0x4c425b,this[_0x110d8b(0xc4)]=_0x49dd18,this[_0x110d8b(0x3c9)]=_0x3a7125,this[_0x110d8b(0x15d)]=_0x366f90,this[_0x110d8b(0x159)]=_0x11deff);}get[_0x5a5813(0xb7)](){const _0x58f380=_0x5a5813;return this['_cursorInfo$'][_0x58f380(0x4ae)]();}get['roomMembers'](){const _0x4afd41=_0x5a5813;return this[_0x4afd41(0x2ee)][_0x4afd41(0x4ae)]();}[_0x5a5813(0x34b)](){const _0x4356f1=_0x5a5813;super[_0x4356f1(0x34b)](),this[_0x4356f1(0x15e)][_0x4356f1(0x33b)](new Map()),this[_0x4356f1(0x15e)][_0x4356f1(0x1f8)](),this[_0x4356f1(0x2ee)]['next']([]),this[_0x4356f1(0x2ee)][_0x4356f1(0x1f8)]();}['init'](){const _0x6f99b8=_0x5a5813;this['_init']||(this[_0x6f99b8(0x412)]=!0x0,this[_0x6f99b8(0xf2)][_0x6f99b8(0x367)][_0x6f99b8(0x2dd)](v[_0x6f99b8(0x460)](this[_0x6f99b8(0x207)]))[_0x6f99b8(0x11c)](_0x33bec2=>{const _0x429a4e=_0x6f99b8;_0x33bec2===x[_0x429a4e(0x469)]?this[_0x429a4e(0x448)]():this[_0x429a4e(0x372)]();}),this[_0x6f99b8(0xf2)][_0x6f99b8(0x19f)][_0x6f99b8(0x2dd)](v[_0x6f99b8(0x460)](this['dispose$']))[_0x6f99b8(0x11c)](_0x767a81=>{const _0x3deb6e=_0x6f99b8,_0x29a061=_0x767a81['eventID'];_0x29a061===_[_0x3deb6e(0x409)][_0x3deb6e(0x107)]&&this[_0x3deb6e(0x2e7)](_0x767a81),_0x29a061===_[_0x3deb6e(0x409)][_0x3deb6e(0x12e)]&&this['_onCursorDelete'](_0x767a81);}),this[_0x6f99b8(0xd3)](this['_commandService'][_0x6f99b8(0x2f2)](_0x4ec445=>{const _0x2a7ede=_0x6f99b8,_0x1cbf15=_0x4ec445[_0x2a7ede(0x31e)];_0x1cbf15!=null&&this['_online']&&_0x4ec445['id']===ne[_0x2a7ede(0x438)]['id']&&_0x1cbf15[_0x2a7ede(0x396)]===this[_0x2a7ede(0x129)]&&_0x1cbf15[_0x2a7ede(0x45a)]===!0x1&&_0x1cbf15[_0x2a7ede(0x4a6)]['length']>0x0&&this[_0x2a7ede(0x3de)](_0x1cbf15['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$']['pipe'](v[_0x6f99b8(0x460)](this[_0x6f99b8(0x207)]))[_0x6f99b8(0x11c)](_0x2006a4=>{const _0x5a20b6=_0x6f99b8;if((_0x2006a4==null?void 0x0:_0x2006a4['unitID'])!==this['unitID'])return;const _0x2e9a18={'eventID':_[_0x5a20b6(0x409)][_0x5a20b6(0x107)],'data':_0x2006a4};this[_0x5a20b6(0x2e7)](_0x2e9a18);}),this[_0x6f99b8(0xd3)](this['_commandService']['onCommandExecuted'](_0x4e59b7=>{const _0x1b1a77=_0x6f99b8;if(_0x4e59b7[_0x1b1a77(0x31e)]==null)return;const _0x182388=_0x4e59b7[_0x1b1a77(0x31e)];if(_0x4e59b7['id']!==ne[_0x1b1a77(0x244)]['id']||_0x182388[_0x1b1a77(0x396)]!==this['unitID'])return;const _0x28ced2={'id':'doc.mutation.rich-text-editing','params':_0x182388},_0x33106e=this['cursorInfo'];for(const [_0x4035db,_0x129f2a]of _0x33106e){const _0x406b69={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1b1a77(0x129)],'actions':null,'textRanges':_0x129f2a[_0x1b1a77(0x4a6)]}},_0x582020=this['_transformService'][_0x1b1a77(0x200)](_0x28ced2,_0x406b69,!0x1);if(_[_0x1b1a77(0xc6)](_0x582020))throw _0x582020[_0x1b1a77(0x122)];_0x33106e[_0x1b1a77(0x3a9)](_0x4035db,{..._0x129f2a,'ranges':_0x582020[_0x1b1a77(0x472)][_0x1b1a77(0x31e)][_0x1b1a77(0x1e2)]});}queueMicrotask(()=>{const _0x2a02d3=_0x1b1a77;this[_0x2a02d3(0x15e)]['next'](_0x33106e);});})));}[_0x5a5813(0x2e7)](_0x4f541f){const _0x1673e9=_0x5a5813;var _0x1a4271,_0x37b052;const {memberID:_0x2d6b84,selection:_0x335bdf}=_0x4f541f[_0x1673e9(0x9c)],_0x40ba5c=xs(_0x335bdf),_0x127f05=(_0x37b052=(_0x1a4271=this[_0x1673e9(0x3c2)][_0x1673e9(0x4a3)](this[_0x1673e9(0x129)],_0x2d6b84))==null?void 0x0:_0x1a4271[_0x1673e9(0x1dc)])!=null?_0x37b052:'Unknown\x20user',_0xe36dce={'color':this[_0x1673e9(0xf7)][_0x1673e9(0x219)](_0x2d6b84),'name':_0x127f05,'ranges':_0x40ba5c},_0x11fdf4=this[_0x1673e9(0xb7)];_0x11fdf4[_0x1673e9(0x3a9)](_0x2d6b84,_0xe36dce),this['_cursorInfo$']['next'](_0x11fdf4);}[_0x5a5813(0x99)](_0x2d5790){const _0x4fb8f4=_0x5a5813,{memberID:_0x1c8edd}=_0x2d5790[_0x4fb8f4(0x9c)],_0x49f282=this['cursorInfo'];_0x49f282[_0x4fb8f4(0x1a3)](_0x1c8edd),this['_cursorInfo$'][_0x4fb8f4(0x33b)](_0x49f282);}[_0x5a5813(0x448)](){const _0x3500f0=_0x5a5813;var _0x4cfe0b;if(this['_online']=!0x0,((_0x4cfe0b=this[_0x3500f0(0x15d)][_0x3500f0(0x33e)]())==null?void 0x0:_0x4cfe0b[_0x3500f0(0x488)]())!==this[_0x3500f0(0x129)])return;const _0x5272ee=this[_0x3500f0(0x33a)][_0x3500f0(0x4a8)](ne['DocSelectionManagerService'])[_0x3500f0(0x251)]();Array[_0x3500f0(0xf0)](_0x5272ee)&&_0x5272ee[_0x3500f0(0x492)]>0x0&&this[_0x3500f0(0x3de)](_0x5272ee);}[_0x5a5813(0x372)](){const _0x3221b8=_0x5a5813;this[_0x3221b8(0x427)]=!0x1;}};xe=ti([z(0x2,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),z(0x3,a[_0x5a5813(0x9b)](ze)),z(0x4,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x2d7)])),z(0x5,a[_0x5a5813(0x9b)](Xe)),z(0x6,_['ITransformService']),z(0x7,a['IUniverInstanceService']),z(0x8,a[_0x5a5813(0x3cc)])],xe);var ni=Object['defineProperty'],ri=Object[_0x5a5813(0x3b4)],oi=(_0x118d1a,_0x1d4d98,_0x50d981,_0x5376d5)=>{const _0x3032cf=_0x5a5813;for(var _0x2f29ea=_0x5376d5>0x1?void 0x0:_0x5376d5?ri(_0x1d4d98,_0x50d981):_0x1d4d98,_0x5dbbb7=_0x118d1a[_0x3032cf(0x492)]-0x1,_0xb0f64e;_0x5dbbb7>=0x0;_0x5dbbb7--)(_0xb0f64e=_0x118d1a[_0x5dbbb7])&&(_0x2f29ea=(_0x5376d5?_0xb0f64e(_0x1d4d98,_0x50d981,_0x2f29ea):_0xb0f64e(_0x2f29ea))||_0x2f29ea);return _0x5376d5&&_0x2f29ea&&ni(_0x1d4d98,_0x50d981,_0x2f29ea),_0x2f29ea;},te=(_0x4f5c4d,_0x1521b9)=>(_0x52def4,_0x5cd8f4)=>_0x1521b9(_0x52def4,_0x5cd8f4,_0x4f5c4d);const ai=0x12c,ci=0x64,li=()=>{let _0x549123=[],_0x1843c7=!0x1;return _0x19e877=>{const _0x39dc55=_0x14f1;_0x549123[_0x39dc55(0x37f)](_0x19e877),_0x1843c7||(_0x1843c7=!0x0,setTimeout(()=>{const _0x50951c=_0x39dc55;_0x549123[_0x50951c(0x1f2)](_0x2f3c34=>_0x2f3c34()),_0x549123=[],_0x1843c7=!0x1;}));};};let ke=class extends a[_0x5a5813(0x18f)]{constructor(_0x4729fe,_0x2a4620,_0x5784be,_0x44ff6f,_0x3bebba,_0x14a820,_0x11f868,_0x7787a8){const _0x37e7b2=_0x5a5813;super(),u(this,_0x37e7b2(0x427),!0x1),u(this,_0x37e7b2(0x412),!0x1),u(this,_0x37e7b2(0x15e),new v[(_0x37e7b2(0xd2))](new Map())),u(this,_0x37e7b2(0x437),this[_0x37e7b2(0x15e)][_0x37e7b2(0x195)]()),u(this,_0x37e7b2(0x2ee),new v[(_0x37e7b2(0xd2))]([])),u(this,_0x37e7b2(0x35d),this[_0x37e7b2(0x2ee)][_0x37e7b2(0x2dd)](v[_0x37e7b2(0x92)](ai))),u(this,'_updateLocalCursor',a[_0x37e7b2(0x11d)]((_0x8c03e9,_0x29b1be)=>{const _0x2d9e07=_0x37e7b2,_0x2453ea={'eventID':_[_0x2d9e07(0x409)][_0x2d9e07(0x107)],'data':{'unitID':this[_0x2d9e07(0x129)],'memberID':this[_0x2d9e07(0xf2)]['getMemberID'](),'selection':Qe['serializeRangeWithSheet'](_0x8c03e9,_0x29b1be['range'])}};this['_session'][_0x2d9e07(0x408)](_0x2453ea,this[_0x2d9e07(0x129)]);},ci)),(this[_0x37e7b2(0x129)]=_0x4729fe,this['_session']=_0x2a4620,this[_0x37e7b2(0x33a)]=_0x5784be,this[_0x37e7b2(0xf7)]=_0x44ff6f,this[_0x37e7b2(0x3c2)]=_0x3bebba,this[_0x37e7b2(0x15d)]=_0x14a820,this[_0x37e7b2(0x159)]=_0x11f868,this['_refRangeService']=_0x7787a8);}get[_0x5a5813(0xb7)](){const _0x49821f=_0x5a5813;return this[_0x49821f(0x15e)]['getValue']();}get['roomMembers'](){const _0x2760fa=_0x5a5813;return this[_0x2760fa(0x2ee)][_0x2760fa(0x4ae)]();}[_0x5a5813(0x34b)](){const _0x1533b0=_0x5a5813;super[_0x1533b0(0x34b)](),this[_0x1533b0(0x15e)][_0x1533b0(0x33b)](new Map()),this[_0x1533b0(0x15e)][_0x1533b0(0x1f8)](),this[_0x1533b0(0x2ee)]['next']([]),this[_0x1533b0(0x2ee)][_0x1533b0(0x1f8)]();}[_0x5a5813(0x296)](){const _0x566098=_0x5a5813;this[_0x566098(0x412)]||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](v['takeUntil'](this['dispose$']))['subscribe'](_0x269643=>{const _0x15da20=_0x566098;_0x269643===x[_0x15da20(0x469)]?this[_0x15da20(0x448)]():this[_0x15da20(0x372)]();}),this[_0x566098(0xf2)][_0x566098(0x19f)][_0x566098(0x2dd)](v['takeUntil'](this[_0x566098(0x207)]))[_0x566098(0x11c)](_0x3bae9b=>{const _0x2b6600=_0x566098,_0x276a94=_0x3bae9b['eventID'];_0x276a94===_[_0x2b6600(0x409)][_0x2b6600(0x107)]&&this['_onCursorUpdate'](_0x3bae9b),_0x276a94===_[_0x2b6600(0x409)][_0x2b6600(0x12e)]&&this[_0x2b6600(0x99)](_0x3bae9b);}),this[_0x566098(0x3b6)](),this[_0x566098(0xd3)](this[_0x566098(0x159)][_0x566098(0x2f2)](_0x51503b=>{const _0x791a24=_0x566098;if(this[_0x791a24(0x427)]&&_0x51503b['id']===C[_0x791a24(0x10f)]['id']&&_0x51503b[_0x791a24(0x31e)][_0x791a24(0x396)]===this[_0x791a24(0x129)]){const _0x4942f6=_0x51503b[_0x791a24(0x31e)];this[_0x791a24(0x3de)](_0x4942f6[_0x791a24(0x334)],_0x4942f6['selections'][0x0]);}})));}[_0x5a5813(0x2e7)](_0x42a0c8){const _0xde68d3=_0x5a5813;var _0x44e84d,_0x38c053;const {memberID:_0x51a58f,selection:_0xd49dbf}=_0x42a0c8[_0xde68d3(0x9c)],{sheetName:_0x2dcc46,range:_0xbf6478}=Qe[_0xde68d3(0x157)](_0xd49dbf),_0x35cc08={'name':(_0x38c053=(_0x44e84d=this[_0xde68d3(0x3c2)]['getMember'](this[_0xde68d3(0x129)],_0x51a58f))==null?void 0x0:_0x44e84d['name'])!=null?_0x38c053:'Unknown\x20user','range':this[_0xde68d3(0x3fb)](_0x2dcc46,_0xbf6478),'sheetID':_0x2dcc46,'color':this[_0xde68d3(0xf7)][_0xde68d3(0x219)](_0x51a58f),'selection':_0xd49dbf},_0x2c0592=this[_0xde68d3(0xb7)];_0x2c0592[_0xde68d3(0x3a9)](_0x51a58f,_0x35cc08),this['_cursorInfo$']['next'](_0x2c0592);}[_0x5a5813(0x99)](_0x51c76b){const _0x2d4c38=_0x5a5813,{memberID:_0x3813e2}=_0x51c76b[_0x2d4c38(0x9c)],_0x1415d7=this[_0x2d4c38(0xb7)];_0x1415d7[_0x2d4c38(0x1a3)](_0x3813e2),this[_0x2d4c38(0x15e)]['next'](_0x1415d7);}[_0x5a5813(0x3fb)](_0x269e2a,_0x50fd56){const _0x3b211d=_0x5a5813;var _0x8aa950,_0x2c21b6;const _0x7d496c=(_0x2c21b6=(_0x8aa950=this[_0x3b211d(0x15d)][_0x3b211d(0x220)](this[_0x3b211d(0x129)]))==null?void 0x0:_0x8aa950[_0x3b211d(0x49b)](_0x269e2a))==null?void 0x0:_0x2c21b6['getMergeData']();return(_0x7d496c==null?void 0x0:_0x7d496c[_0x3b211d(0xac)](_0x2453c8=>a[_0x3b211d(0x2b7)][_0x3b211d(0x44d)](_0x2453c8,_0x50fd56)))||_0x50fd56;}[_0x5a5813(0x3b6)](){const _0x31b033=_0x5a5813,_0x459159=new a[(_0x31b033(0xd1))](),_0x8c1a3f=li(),_0x1fd5bd=()=>{const _0x3686df=_0x31b033;_0x459159['dispose']();const _0x32ce29=(_0x3da0bf,_0xb9dda,_0x4f5f0d,_0x3098b8)=>{const _0x500cc7=_0x14f1;let _0x3efa42=[];switch(_0x3da0bf['id']){case C[_0x500cc7(0xae)]['DeleteRangeMoveLeftCommandId']:{_0x3efa42=C['handleDeleteRangeMoveLeft'](_0x3da0bf,_0x3098b8);break;}case C[_0x500cc7(0xae)][_0x500cc7(0x46e)]:{_0x3efa42=C[_0x500cc7(0xb1)](_0x3da0bf,_0x3098b8);break;}case C[_0x500cc7(0xae)]['InsertColCommandId']:{_0x3efa42=C[_0x500cc7(0x3c6)](_0x3da0bf,_0x3098b8);break;}case C['EffectRefRangId'][_0x500cc7(0x1da)]:{_0x3efa42=C[_0x500cc7(0x22f)](_0x3da0bf,_0x3098b8);break;}case C[_0x500cc7(0xae)][_0x500cc7(0x170)]:{_0x3efa42=C[_0x500cc7(0x379)](_0x3da0bf,_0x3098b8);break;}case C[_0x500cc7(0xae)][_0x500cc7(0x47f)]:{_0x3efa42=C[_0x500cc7(0x1e4)](_0x3da0bf,_0x3098b8);break;}case C[_0x500cc7(0xae)][_0x500cc7(0x48b)]:{_0x3efa42=C[_0x500cc7(0x186)](_0x3da0bf,_0x3098b8);break;}case C['EffectRefRangId'][_0x500cc7(0x30f)]:{_0x3efa42=C[_0x500cc7(0x45b)](_0x3da0bf,_0x3098b8);break;}case C[_0x500cc7(0xae)][_0x500cc7(0x1c0)]:{_0x3efa42=C[_0x500cc7(0x324)](_0x3da0bf,_0x3098b8);break;}}const _0x56db92=C[_0x500cc7(0xfc)](_0x3efa42,_0x3098b8),_0x5e4881=this[_0x500cc7(0xb7)][_0x500cc7(0x4a8)](_0xb9dda);if(_0x5e4881&&_0x56db92){const _0x3892c2={..._0x5e4881,'range':_0x56db92};this[_0x500cc7(0xb7)]['set'](_0xb9dda,_0x3892c2),_0x8c1a3f(()=>{const _0x28d7a1=_0x500cc7,_0x4bf744=this['_refRangeService'][_0x28d7a1(0x130)](_0x56db92,_0x17f8a2=>(_0x4bf744[_0x28d7a1(0x34b)](),_0x32ce29(_0x17f8a2,_0xb9dda,_0x4f5f0d,_0x56db92)));_0x459159[_0x28d7a1(0x3a1)](_0x4bf744);});}return{'redos':[],'undos':[]};};this[_0x3686df(0xb7)][_0x3686df(0x1f2)]((_0x468b97,_0x533efa)=>{const _0x53ea2d=_0x3686df,{range:_0x38177f,sheetID:_0x3a6fe9}=_0x468b97,_0x60888e=this[_0x53ea2d(0x380)][_0x53ea2d(0x130)](_0x38177f,_0x12ffac=>(_0x60888e[_0x53ea2d(0x34b)](),_0x32ce29(_0x12ffac,_0x533efa,_0x3a6fe9,_0x38177f)));_0x459159['add'](_0x60888e);});};this['disposeWithMe'](a[_0x31b033(0x293)](this[_0x31b033(0x15e)]['subscribe'](()=>{_0x1fd5bd();})));}[_0x5a5813(0x448)](){const _0x47c6bc=_0x5a5813;var _0x3a207f,_0x14cbbc;if(this['_online']=!0x0,((_0x3a207f=this['_univerInstanceService'][_0x47c6bc(0x33e)]())==null?void 0x0:_0x3a207f[_0x47c6bc(0x488)]())!==this['unitID'])return;const _0x361e05=(_0x14cbbc=this[_0x47c6bc(0x33a)]['get'](C[_0x47c6bc(0x9e)])[_0x47c6bc(0x3ac)]())==null?void 0x0:_0x14cbbc[0x0],_0x346f9c=this[_0x47c6bc(0x15d)][_0x47c6bc(0x100)](a[_0x47c6bc(0x48a)][_0x47c6bc(0xe6)])[_0x47c6bc(0x3a8)]();_0x361e05&&_0x346f9c&&this[_0x47c6bc(0x3de)](_0x346f9c[_0x47c6bc(0x13f)](),_0x361e05);}[_0x5a5813(0x372)](){const _0x3f8a04=_0x5a5813;this[_0x3f8a04(0x427)]=!0x1;}};ke=oi([te(0x2,a['Inject'](a[_0x5a5813(0x30e)])),te(0x3,a[_0x5a5813(0x9b)](ze)),te(0x4,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x2d7)])),te(0x5,a[_0x5a5813(0x411)]),te(0x6,a[_0x5a5813(0x3cc)]),te(0x7,a['Inject'](C[_0x5a5813(0x208)]))],ke);var hi=Object[_0x5a5813(0x40e)],_i=Object[_0x5a5813(0x3b4)],ui=(_0x14f129,_0x1ae1dc,_0x4f0cd7,_0x49212d)=>{const _0x278fb0=_0x5a5813;for(var _0x45bc0f=_0x49212d>0x1?void 0x0:_0x49212d?_i(_0x1ae1dc,_0x4f0cd7):_0x1ae1dc,_0x3b8d1e=_0x14f129[_0x278fb0(0x492)]-0x1,_0x14b4cb;_0x3b8d1e>=0x0;_0x3b8d1e--)(_0x14b4cb=_0x14f129[_0x3b8d1e])&&(_0x45bc0f=(_0x49212d?_0x14b4cb(_0x1ae1dc,_0x4f0cd7,_0x45bc0f):_0x14b4cb(_0x45bc0f))||_0x45bc0f);return _0x49212d&&_0x45bc0f&&hi(_0x1ae1dc,_0x4f0cd7,_0x45bc0f),_0x45bc0f;},Ne=(_0x623a15,_0x5e380f)=>(_0xe2dfd5,_0x23a28b)=>_0x5e380f(_0xe2dfd5,_0x23a28b,_0x623a15);let oe=class extends a[_0x5a5813(0x18f)]{constructor(_0x5acaac,_0x28f2a9,_0x209246){const _0x37615f=_0x5a5813;super(),u(this,_0x37615f(0x422),new Map()),u(this,_0x37615f(0x3c7),new v[(_0x37615f(0x98))]()),(this[_0x37615f(0x15d)]=_0x5acaac,this[_0x37615f(0x33a)]=_0x28f2a9,this[_0x37615f(0x483)]=_0x209246,this[_0x37615f(0x412)]());}['dispose'](){const _0x39f454=_0x5a5813;super['dispose'](),this[_0x39f454(0x3c7)][_0x39f454(0x1f8)](),this[_0x39f454(0x422)]['forEach'](_0x231ee8=>_0x231ee8[_0x39f454(0x34b)]());}['getCollabCursors$'](_0x4724c1){const _0x50a17e=_0x5a5813;return this[_0x50a17e(0x422)]['has'](_0x4724c1)?this[_0x50a17e(0x422)]['get'](_0x4724c1)['cursorInfo$']:this['_entityInit$']['pipe'](v['filter'](_0x4dd8a1=>_0x4dd8a1[_0x50a17e(0x129)]===_0x4724c1),v[_0x50a17e(0xf6)](_0xbe5a83=>_0xbe5a83[_0x50a17e(0x437)]));}[_0x5a5813(0x412)](){const _0x19139f=_0x5a5813;this['_univerInstanceService'][_0x19139f(0x429)](a[_0x19139f(0x48a)][_0x19139f(0xe6)])[_0x19139f(0x2dd)](v['takeUntil'](this[_0x19139f(0x207)]))[_0x19139f(0x11c)](async _0x54d136=>{const _0x564ccb=_0x19139f,_0x34e118=_0x54d136[_0x564ccb(0x488)](),_0x447d6f=await this[_0x564ccb(0x3f0)](_0x34e118);this[_0x564ccb(0x3c7)]['next'](_0x447d6f),this[_0x564ccb(0x422)][_0x564ccb(0x3a9)](_0x34e118,_0x447d6f);}),this['_univerInstanceService'][_0x19139f(0x429)](a[_0x19139f(0x48a)]['UNIVER_DOC'])[_0x19139f(0x2dd)](v[_0x19139f(0x460)](this['dispose$']))[_0x19139f(0x2dd)](v[_0x19139f(0x8b)](_0x263231=>!_0x263231[_0x19139f(0x488)]()[_0x19139f(0x2f5)]('__')))[_0x19139f(0x11c)](async _0x27c346=>{const _0x6d57b8=_0x19139f,_0x2b1d89=_0x27c346['getUnitId'](),_0x1a6e40=await this[_0x6d57b8(0x465)](_0x2b1d89);this[_0x6d57b8(0x3c7)][_0x6d57b8(0x33b)](_0x1a6e40),this[_0x6d57b8(0x422)][_0x6d57b8(0x3a9)](_0x2b1d89,_0x1a6e40);}),v[_0x19139f(0x23b)](this[_0x19139f(0x15d)]['getTypeOfUnitDisposed$'](a[_0x19139f(0x48a)][_0x19139f(0x2fe)]),this['_univerInstanceService'][_0x19139f(0x36f)](a['UniverInstanceType'][_0x19139f(0xe6)]))[_0x19139f(0x2dd)](v[_0x19139f(0x460)](this['dispose$']))[_0x19139f(0x11c)](_0xc5b91e=>{const _0x45f501=_0x19139f,_0x22011c=_0xc5b91e[_0x45f501(0x488)](),_0xca4779=this[_0x45f501(0x422)][_0x45f501(0x4a8)](_0x22011c);_0xca4779&&(_0xca4779[_0x45f501(0x34b)](),this[_0x45f501(0x422)][_0x45f501(0x1a3)](_0x22011c));});}async[_0x5a5813(0x3f0)](_0x3bdcb0){const _0x28ca93=_0x5a5813,_0x2030c4=await this[_0x28ca93(0x483)]['requireSession'](_0x3bdcb0),_0x303e54=this['_injector'][_0x28ca93(0x127)](ke,_0x3bdcb0,_0x2030c4);return _0x303e54[_0x28ca93(0x296)](),_0x303e54;}async[_0x5a5813(0x465)](_0x215b07){const _0x2d1594=_0x5a5813,_0x5b1323=await this[_0x2d1594(0x483)][_0x2d1594(0x44c)](_0x215b07),_0x5ce815=this[_0x2d1594(0x33a)][_0x2d1594(0x127)](xe,_0x215b07,_0x5b1323);return _0x5ce815['init'](),_0x5ce815;}};oe=ui([Ne(0x0,a[_0x5a5813(0x411)]),Ne(0x1,a['Inject'](a[_0x5a5813(0x30e)])),Ne(0x2,a[_0x5a5813(0x9b)](exports['CollaborationSessionService']))],oe);const de=0x14,ct=0xc8,Me=0x4,di=0x5;function Si(_0x200992,_0x40237a){const _0x260138=_0x5a5813;let {radius:_0x500e10,width:_0x468114,height:_0x55ff8c}=_0x40237a;_0x500e10=_0x500e10!=null?_0x500e10:0x0,_0x468114=_0x468114!=null?_0x468114:0x1e,_0x55ff8c=_0x55ff8c!=null?_0x55ff8c:0x1e;let _0x3f6666=0x0,_0x559ec4=0x0,_0x1dfd9a=0x0;_0x3f6666=_0x559ec4=_0x1dfd9a=Math[_0x260138(0x2be)](_0x500e10,_0x468114/0x2,_0x55ff8c/0x2),_0x200992[_0x260138(0x46b)](),_0x200992[_0x260138(0x444)](_0x3f6666,0x0),_0x200992[_0x260138(0x2d0)](_0x468114-_0x559ec4,0x0),_0x200992['arc'](_0x468114-_0x559ec4,_0x559ec4,_0x559ec4,Math['PI']*0x3/0x2,0x0,!0x1),_0x200992[_0x260138(0x2d0)](_0x468114,_0x55ff8c-_0x1dfd9a),_0x200992[_0x260138(0x19d)](_0x468114-_0x1dfd9a,_0x55ff8c-_0x1dfd9a,_0x1dfd9a,0x0,Math['PI']/0x2,!0x1),_0x200992[_0x260138(0x2d0)](0x0,_0x55ff8c),_0x200992[_0x260138(0x2d0)](0x0,_0x3f6666),_0x200992[_0x260138(0x19d)](_0x3f6666,_0x3f6666,_0x3f6666,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x200992[_0x260138(0x3ff)](),_0x40237a[_0x260138(0x497)]&&(_0x200992[_0x260138(0x40d)](),_0x200992['fillStyle']=_0x40237a['fill'],_0x40237a[_0x260138(0x355)]===_0x260138(0x305)?_0x200992[_0x260138(0x497)](_0x260138(0x305)):_0x200992[_0x260138(0x497)](),_0x200992[_0x260138(0x25c)]());}class Oe extends O[_0x5a5813(0x1cd)]{constructor(_0x3dfd8f,_0x2b4685){const _0xa25df2=_0x5a5813;super(_0x3dfd8f,_0x2b4685),u(this,'color'),u(this,_0xa25df2(0x280)),(this[_0xa25df2(0x311)]=_0x2b4685==null?void 0x0:_0x2b4685['color'],this[_0xa25df2(0x280)]=_0x2b4685==null?void 0x0:_0x2b4685[_0xa25df2(0x280)]);}static[_0x5a5813(0x10b)](_0x2ec086,_0x5cd316){const _0xdcb45e=_0x5a5813,{text:_0x4712f6,color:_0x105e41}=_0x5cd316;_0x2ec086[_0xdcb45e(0x40d)](),_0x2ec086['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x78e980=_0x2ec086[_0xdcb45e(0x303)](_0x4712f6)[_0xdcb45e(0x18b)],_0x56b4c8=Math[_0xdcb45e(0x2be)](_0x78e980+0x2*Me,ct);Si(_0x2ec086,{'height':de,'radius':0x4,'width':_0x56b4c8,'fill':_0x105e41,'evented':!0x1}),_0x2ec086[_0xdcb45e(0x306)]=_0xdcb45e(0x94);const _0xcc8d47=Me,_0x18fc8b=de-di,_0x3f4538=ct-0x2*Me;if(_0x78e980>_0x3f4538){let _0x241eb5='',_0x5e02fc=0x0;for(const _0x29e8be of _0x4712f6){const _0x48720e=_0x2ec086[_0xdcb45e(0x303)](_0x29e8be)[_0xdcb45e(0x18b)];if(_0x5e02fc+_0x48720e<=_0x3f4538-_0x2ec086[_0xdcb45e(0x303)](_0xdcb45e(0x2c4))['width'])_0x241eb5+=_0x29e8be,_0x5e02fc+=_0x48720e;else{_0x241eb5+=_0xdcb45e(0x2c4);break;}}_0x2ec086[_0xdcb45e(0x499)](_0x241eb5,_0xcc8d47,_0x18fc8b);}else _0x2ec086['fillText'](_0x4712f6,_0xcc8d47,_0x18fc8b);_0x2ec086[_0xdcb45e(0x25c)]();}['_draw'](_0x51633a){const _0x245455=_0x5a5813;Oe[_0x245455(0x10b)](_0x51633a,this);}}const Ae=_0x5a5813(0x172),vi=_0x5a5813(0x27c),mi='collab-rect-range-',le=0x6,gi=1.5,Le=0x4,fi=1.5,Ii=_0x5a5813(0x37c);class lt{constructor(_0x5d88aa,_0x90a753,_0x419a78,_0x29cd6e){const _0x3399e1=_0x5a5813;u(this,_0x3399e1(0x3c8),[]),u(this,'_anchor',null),u(this,_0x3399e1(0x346),null),u(this,'_anchorDot',null),u(this,_0x3399e1(0x103),null),u(this,_0x3399e1(0x3e0),null),(this['_cursor']=_0x5d88aa,this[_0x3399e1(0xe9)]=_0x90a753,this[_0x3399e1(0x105)]=_0x419a78,this[_0x3399e1(0x116)]=_0x29cd6e,this['_render']());}set[_0x5a5813(0xd8)](_0x488336){const _0x415788=_0x5a5813;_0x488336?(this[_0x415788(0x4bb)]&&this[_0x415788(0x4bb)][_0x415788(0xe4)](),this['_textBubble']&&this[_0x415788(0x346)][_0x415788(0x29d)]()):(this[_0x415788(0x4bb)]&&this['_anchorDot'][_0x415788(0x29d)](),this[_0x415788(0x346)]&&this[_0x415788(0x346)][_0x415788(0xe4)]());}[_0x5a5813(0x34b)](){const _0x216c91=_0x5a5813;for(const _0x76c35d of this[_0x216c91(0x3c8)])_0x76c35d[_0x216c91(0x34b)]();this[_0x216c91(0x346)]&&this[_0x216c91(0x346)][_0x216c91(0x34b)](),this['_anchorDot']&&this[_0x216c91(0x4bb)]['dispose'](),this[_0x216c91(0x41e)]&&this['_anchor'][_0x216c91(0x34b)](),this[_0x216c91(0x3e0)]&&this['_eventUnsubscribe']();}[_0x5a5813(0x3df)](){const _0x209520=_0x5a5813;var _0x26fb00;const {_docSkeleton:_0x98e420,_document:_0x90bbe4}=this,{color:_0x453742,name:_0x1f1b98,ranges:_0x1ca7eb}=this[_0x209520(0x485)],_0x211cb3=_0x90bbe4[_0x209520(0x3ed)](),{docsLeft:_0x1f5095,docsTop:_0x5bbdbb}=_0x211cb3,_0x3b4b9d=new N[(_0x209520(0x339))](_0x211cb3,_0x98e420);for(const {startOffset:_0x1f014a,endOffset:_0x137824,rangeType:_0x5cc7e4,segmentId:_0x50588b,segmentPage:_0x4998e3,collapsed:_0x235bad,isActive:_0xfadde7}of _0x1ca7eb){const _0x501934=_0x98e420[_0x209520(0xe0)](_0x1f014a,!0x0,_0x50588b,_0x4998e3);let _0x39de7f=_0x98e420[_0x209520(0xe0)](_0x137824,!0x0,_0x50588b,_0x4998e3);if(_0x39de7f==null&&(_0x39de7f=_0x98e420[_0x209520(0xe0)](_0x137824-0x1,!0x1,_0x50588b,_0x4998e3)),_0xfadde7){const {contentBoxPointGroup:_0x1d9bda}=_0x3b4b9d[_0x209520(0xed)](_0x39de7f,_0x39de7f);if(_0x1d9bda[_0x209520(0x492)]===0x0)continue;this[_0x209520(0x30b)](_0x453742,_0x1d9bda,_0x1f5095,_0x5bbdbb,_0x1f1b98),this['_eventUnsubscribe']=this[_0x209520(0x1ce)]();}if(!_0x235bad&&_0x501934&&_0x39de7f){if(_0x5cc7e4===a['DOC_RANGE_TYPE']['RECT']){const _0x9eb1a5=new N[(_0x209520(0x1c4))](_0x211cb3,_0x98e420),{pointGroup:_0x3a5d97}=(_0x26fb00=_0x9eb1a5['getRangePointData'](_0x501934,_0x39de7f))!=null?_0x26fb00:{};if(_0x3a5d97==null||_0x3a5d97[_0x209520(0x492)]===0x0)continue;this[_0x209520(0x362)](_0x453742,_0x3a5d97,_0x1f5095,_0x5bbdbb);}else{const {borderBoxPointGroup:_0x31e491}=_0x3b4b9d[_0x209520(0xed)](_0x501934,_0x39de7f);if(_0x31e491['length']===0x0)continue;this['_drawTextRange'](_0x453742,_0x31e491,_0x1f5095,_0x5bbdbb);}}}}[_0x5a5813(0x30b)](_0x23ade4,_0x9ca9d0,_0x58141c,_0x5d68f0,_0x303da2){const _0x23c911=_0x5a5813,_0x1b9a51=this[_0x23c911(0xc2)](_0x9ca9d0),{left:_0x68e97b,top:_0x3c3fd3,height:_0x1cef08}=_0x1b9a51,_0x4fd604=this['_getScale'](),_0x32f8c9=fi/_0x4fd604,_0x534ea5=new O[(_0x23c911(0x278))](Ae+a['Tools'][_0x23c911(0x330)](le),{'left':_0x68e97b+_0x58141c-_0x32f8c9,'top':_0x3c3fd3+_0x5d68f0,'height':_0x1cef08,'width':gi,'fill':_0x23ade4||O[_0x23c911(0x430)](a[_0x23c911(0x342)][_0x23c911(0x156)],0x0),'strokeWidth':_0x32f8c9,'stroke':Ii,'evented':!0x0});this[_0x23c911(0x41e)]=_0x534ea5,this[_0x23c911(0xe9)]['addObject'](_0x534ea5,N[_0x23c911(0x34e)]);const _0x21df31=new O['Rect'](Ae+a[_0x23c911(0x17c)][_0x23c911(0x330)](le),{'left':_0x68e97b+_0x58141c-_0x32f8c9,'top':_0x3c3fd3+_0x5d68f0-Le/0x2,'height':Le,'width':Le,'fill':_0x23ade4||O[_0x23c911(0x430)](a[_0x23c911(0x342)][_0x23c911(0x156)],0x0),'strokeWidth':0x0,'stroke':_0x23ade4||O['getColor'](a[_0x23c911(0x342)][_0x23c911(0x156)],0x0),'evented':!0x1});this[_0x23c911(0x4bb)]=_0x21df31,this[_0x23c911(0xe9)][_0x23c911(0x162)](_0x21df31,N[_0x23c911(0x34e)]);const _0x584dde=new Oe(Ae+a[_0x23c911(0x17c)][_0x23c911(0x330)](le),{'left':_0x68e97b+_0x58141c-_0x32f8c9,'top':_0x3c3fd3+_0x5d68f0-de,'text':_0x303da2,'color':_0x23ade4});this['_textBubble']=_0x584dde,this[_0x23c911(0xe9)][_0x23c911(0x162)](_0x584dde,N[_0x23c911(0x34e)]),this['_hover']=!0x1;}['_handleHover'](){const _0xdffd29=_0x5a5813,_0x6a5163=this[_0xdffd29(0x41e)][_0xdffd29(0x432)]['subscribeEvent'](()=>{const _0x608a1a=_0xdffd29;this[_0x608a1a(0xd8)]=!0x0;}),_0x167478=this[_0xdffd29(0x41e)]['onPointerLeave$'][_0xdffd29(0x3e7)](()=>{const _0xfe7a69=_0xdffd29;this[_0xfe7a69(0x103)]&&clearTimeout(this[_0xfe7a69(0x103)]),this[_0xfe7a69(0x103)]=setTimeout(()=>{const _0x1afd6f=_0xfe7a69;this[_0x1afd6f(0xd8)]=!0x1;},0x7d0);});return()=>{const _0x5de040=_0xdffd29;_0x6a5163[_0x5de040(0x242)](),_0x167478[_0x5de040(0x242)]();};}[_0x5a5813(0xfa)](_0x1d0526,_0x1d2eb8,_0x5d3f5c,_0x4c0b9f){const _0x280665=_0x5a5813,_0x5628e7=new a[(_0x280665(0x48d))](_0x1d0526)[_0x280665(0xc7)](0.2)['toRgbString'](),_0x9fe6a3=new O[(_0x280665(0x2c0))](vi+a[_0x280665(0x17c)][_0x280665(0x330)](le),{'pointsGroup':_0x1d2eb8,'fill':_0x5628e7||O[_0x280665(0x430)](a[_0x280665(0x342)]['black'],0.2),'left':_0x5d3f5c,'top':_0x4c0b9f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x280665(0x3c8)][_0x280665(0x37f)](_0x9fe6a3),this[_0x280665(0xe9)]['addObject'](_0x9fe6a3,N['TEXT_RANGE_LAYER_INDEX']);}[_0x5a5813(0x362)](_0x5e02c7,_0x2956b8,_0x445594,_0x379842){const _0x3aabff=_0x5a5813,_0x318371=new a['ColorKit'](_0x5e02c7)['setAlpha'](0.2)[_0x3aabff(0x1c7)](),_0x536a4b=new O[(_0x3aabff(0x2c0))](mi+a[_0x3aabff(0x17c)][_0x3aabff(0x330)](le),{'pointsGroup':_0x2956b8,'fill':_0x318371||O[_0x3aabff(0x430)](a['COLORS'][_0x3aabff(0x156)],0.2),'left':_0x445594,'top':_0x379842,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3aabff(0x37f)](_0x536a4b),this[_0x3aabff(0xe9)][_0x3aabff(0x162)](_0x536a4b,N[_0x3aabff(0x34e)]);}['_getAnchorBounding'](_0x5a8a83){const _0x36232d=_0x5a8a83[0x0],_0x2c0a4a=_0x36232d[0x0],_0x4fd6d0=_0x36232d[0x2],{x:_0x53ce8b,y:_0x516afb}=_0x2c0a4a,{x:_0xb4684e,y:_0x20985b}=_0x4fd6d0;return{'left':_0x53ce8b,'top':_0x516afb,'width':_0xb4684e-_0x53ce8b,'height':_0x20985b-_0x516afb};}[_0x5a5813(0x37b)](){const _0x4affae=_0x5a5813,{scaleX:_0x57d9e1,scaleY:_0x43ea24}=this[_0x4affae(0xe9)]['getAncestorScale']();return Math['max'](_0x57d9e1,_0x43ea24);}}var pi=Object[_0x5a5813(0x40e)],Ci=Object[_0x5a5813(0x3b4)],Ei=(_0x35f5a9,_0x3d6747,_0x358039,_0x536001)=>{for(var _0x1bcfa4=_0x536001>0x1?void 0x0:_0x536001?Ci(_0x3d6747,_0x358039):_0x3d6747,_0x26e18c=_0x35f5a9['length']-0x1,_0x330ac5;_0x26e18c>=0x0;_0x26e18c--)(_0x330ac5=_0x35f5a9[_0x26e18c])&&(_0x1bcfa4=(_0x536001?_0x330ac5(_0x3d6747,_0x358039,_0x1bcfa4):_0x330ac5(_0x1bcfa4))||_0x1bcfa4);return _0x536001&&_0x1bcfa4&&pi(_0x3d6747,_0x358039,_0x1bcfa4),_0x1bcfa4;},ve=(_0x3454c3,_0x4d418e)=>(_0x4d57ad,_0x236690)=>_0x4d418e(_0x4d57ad,_0x236690,_0x3454c3);let Be=class extends a[_0x5a5813(0x18f)]{constructor(_0x270707,_0x8fe00,_0x350297,_0x463506,_0x7786e8){const _0x29f05c=_0x5a5813;super(),u(this,_0x29f05c(0x3e2),[]),u(this,'_cursors',[]),(this[_0x29f05c(0x214)]=_0x270707,this[_0x29f05c(0x3c3)]=_0x8fe00,this[_0x29f05c(0x2c9)]=_0x350297,this['_commandService']=_0x463506,this[_0x29f05c(0x2e6)]=_0x7786e8,this[_0x29f05c(0x412)]());}[_0x5a5813(0x412)](){const _0x27d8f3=_0x5a5813,_0x140593=this['_context']['unitId'],_0x4b5c31=this[_0x27d8f3(0x3c3)];this[_0x27d8f3(0xd3)](v[_0x27d8f3(0x302)]([this[_0x27d8f3(0x2c9)][_0x27d8f3(0x2e1)](_0x140593),this[_0x27d8f3(0x2e6)]['currentTheme$']])[_0x27d8f3(0x2dd)](E['map'](([_0xfd033d,_0x4cede4])=>({'skeleton':_0x4b5c31[_0x27d8f3(0x10d)](),'cursors':[..._0xfd033d[_0x27d8f3(0xb8)]()]['flatMap'](_0x16d54d=>({..._0x16d54d,'color':_0x4cede4[_0x16d54d[_0x27d8f3(0x311)]]}))})))[_0x27d8f3(0x11c)](_0x44ef3d=>{const _0x1f4e34=_0x27d8f3;if(this[_0x1f4e34(0x1c8)](),_0x44ef3d){const {skeleton:_0x3a3d9f,cursors:_0x20995c}=_0x44ef3d;this[_0x1f4e34(0x447)](_0x3a3d9f,_0x20995c);}})),this[_0x27d8f3(0x1fc)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x459b1f,_0x5c9992){const _0x4294ab=_0x5a5813,{scene:_0x45dae1,mainComponent:_0x1138ce}=this[_0x4294ab(0x214)],_0x4e095a=_0x5c9992['map'](_0x52c9d1=>new lt(_0x52c9d1,_0x45dae1,_0x459b1f,_0x1138ce));this[_0x4294ab(0x3e2)]=_0x4e095a,this['_cursors']=_0x5c9992;}[_0x5a5813(0x12d)](){const _0x270d62=_0x5a5813;this[_0x270d62(0x1c8)]();const {scene:_0x431007,mainComponent:_0x54fd29}=this[_0x270d62(0x214)],_0x2064a3=this[_0x270d62(0x3c3)][_0x270d62(0x10d)](),_0x4500e5=this['_cursors'][_0x270d62(0x29a)](_0x463fce=>new lt(_0x463fce,_0x431007,_0x2064a3,_0x54fd29));this[_0x270d62(0x3e2)]=_0x4500e5;}['_removeCollabCursors'](){const _0x2408e4=_0x5a5813;this['_cursorShapes'][_0x2408e4(0x1f2)](_0x342f65=>_0x342f65[_0x2408e4(0x34b)]()),this[_0x2408e4(0x3e2)]=[];}[_0x5a5813(0x2db)](){const _0x82856f=_0x5a5813,_0x58d78b=[N[_0x82856f(0x41a)]['id']];this[_0x82856f(0xd3)](this[_0x82856f(0x159)][_0x82856f(0x2f2)](_0x53ae55=>{const _0x55cc91=_0x82856f;_0x58d78b[_0x55cc91(0x2d9)](_0x53ae55['id'])&&_0x53ae55['params'][_0x55cc91(0x396)]===this[_0x55cc91(0x214)][_0x55cc91(0x396)]&&this[_0x55cc91(0x12d)]();}));}[_0x5a5813(0x1fc)](){const _0xb3f673=_0x5a5813;this[_0xb3f673(0xd3)](a[_0xb3f673(0xb9)](this['_context'][_0xb3f673(0x3eb)]['onTransformChange$'])[_0xb3f673(0x2dd)](E['filter'](_0x278bee=>_0x278bee[_0xb3f673(0x41d)]===O[_0xb3f673(0x30c)][_0xb3f673(0x22b)]),E['throttleTime'](0x10))[_0xb3f673(0x11c)](()=>{const _0x4f61d2=_0xb3f673;this[_0x4f61d2(0x12d)]();}));}};Be=Ei([ve(0x1,a[_0x5a5813(0x9b)](ne[_0x5a5813(0x46d)])),ve(0x2,a['Inject'](oe)),ve(0x3,a[_0x5a5813(0x3cc)]),ve(0x4,a['Inject'](a[_0x5a5813(0x2c5)]))],Be);const bi=0x1,Ti=1.5;class wt extends O[_0x5a5813(0x1cd)]{constructor(_0x18e1b3,_0x1f9d2e){const _0x14362f=_0x5a5813;super(_0x18e1b3,_0x1f9d2e),u(this,'_color'),u(this,_0x14362f(0x12c),!0x1),u(this,_0x14362f(0x450)),u(this,_0x14362f(0x268),''),u(this,_0x14362f(0x2ff),_0x14362f(0x3c0)),u(this,_0x14362f(0x3bc)),(_0x1f9d2e&&this[_0x14362f(0x3bf)](_0x1f9d2e),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x14362f(0x3bf)]({'hovered':!0x0})),this[_0x14362f(0x181)][_0x14362f(0x3e7)](()=>this[_0x14362f(0x3bf)]({'hovered':!0x1})));}[_0x5a5813(0x3bf)](_0x2ffaff){const _0x2e31cc=_0x5a5813;var _0x125225,_0x5253ed,_0x52ce0a,_0x228724,_0x160675,_0x5d781c;this[_0x2e31cc(0x471)]=(_0x125225=_0x2ffaff['color'])!=null?_0x125225:this['_color'],this[_0x2e31cc(0x12c)]=(_0x5253ed=_0x2ffaff[_0x2e31cc(0x28e)])!=null?_0x5253ed:this[_0x2e31cc(0x12c)],this[_0x2e31cc(0x450)]=(_0x52ce0a=_0x2ffaff[_0x2e31cc(0x43c)])!=null?_0x52ce0a:this[_0x2e31cc(0x450)],this[_0x2e31cc(0x268)]=(_0x228724=_0x2ffaff[_0x2e31cc(0x1dc)])!=null?_0x228724:this[_0x2e31cc(0x268)],this['_labelPosition']=(_0x160675=_0x2ffaff[_0x2e31cc(0x46c)])!=null?_0x160675:this['_labelPosition'],this[_0x2e31cc(0x3bc)]=(_0x5d781c=_0x2ffaff[_0x2e31cc(0x39e)])!=null?_0x5d781c:this[_0x2e31cc(0x3bc)],this[_0x2e31cc(0x363)]({'width':_0x2ffaff[_0x2e31cc(0x18b)],'height':_0x2ffaff[_0x2e31cc(0x2cd)]});}[_0x5a5813(0x1fe)](_0x51834d){const _0x2f7b25=_0x5a5813,{row:_0x3c3aa5,column:_0x75c326}=_0x51834d;if(_0x3c3aa5>=this['_range']['startRow']&&_0x3c3aa5<=this[_0x2f7b25(0x450)][_0x2f7b25(0x1d3)]&&_0x75c326>=this[_0x2f7b25(0x450)][_0x2f7b25(0x351)]&&_0x75c326<=this['_range'][_0x2f7b25(0x201)]){this[_0x2f7b25(0x3bf)]({'hovered':!0x0});return;}this[_0x2f7b25(0x3bf)]({'hovered':!0x1});}[_0x5a5813(0x498)](_0x556e84){return!0x1;}[_0x5a5813(0xa9)](_0x29c15c){const _0x136d97=_0x5a5813;O['Rect'][_0x136d97(0x10b)](_0x29c15c,{'width':this[_0x136d97(0x18b)],'height':this[_0x136d97(0x2cd)],'strokeWidth':Ti,'stroke':this[_0x136d97(0x471)],'evented':!0x1,'fill':this[_0x136d97(0x3bc)]}),this[_0x136d97(0x12c)]&&(_0x29c15c['save'](),_0x29c15c[_0x136d97(0x2d3)](0x1,0x0,0x0,0x1,this[_0x136d97(0x18b)],this[_0x136d97(0x2ff)]===_0x136d97(0x493)?0x0:-de),Oe['drawWith'](_0x29c15c,{'text':this[_0x136d97(0x268)],'color':this[_0x136d97(0x471)]}),_0x29c15c[_0x136d97(0x25c)]());}}var Ri=Object[_0x5a5813(0x40e)],Oi=Object[_0x5a5813(0x3b4)],Di=(_0x1f4eef,_0x1aacc2,_0x27758d,_0x3746f1)=>{const _0x2e5f5a=_0x5a5813;for(var _0x27cd4e=_0x3746f1>0x1?void 0x0:_0x3746f1?Oi(_0x1aacc2,_0x27758d):_0x1aacc2,_0x396f1f=_0x1f4eef[_0x2e5f5a(0x492)]-0x1,_0xa1832e;_0x396f1f>=0x0;_0x396f1f--)(_0xa1832e=_0x1f4eef[_0x396f1f])&&(_0x27cd4e=(_0x3746f1?_0xa1832e(_0x1aacc2,_0x27758d,_0x27cd4e):_0xa1832e(_0x27cd4e))||_0x27cd4e);return _0x3746f1&&_0x27cd4e&&Ri(_0x1aacc2,_0x27758d,_0x27cd4e),_0x27cd4e;},$e=(_0x1d22ac,_0x2ea37c)=>(_0x1f00c7,_0x557abc)=>_0x2ea37c(_0x1f00c7,_0x557abc,_0x1d22ac);const yi=0x1389;let Ve=class extends a[_0x5a5813(0x18f)]{constructor(_0x36e014,_0x206b02,_0x22e051,_0x1bc7fb){const _0x894ba8=_0x5a5813;super(),u(this,_0x894ba8(0x42d),new Set()),u(this,_0x894ba8(0xc3),null),(this[_0x894ba8(0x214)]=_0x36e014,this[_0x894ba8(0x133)]=_0x206b02,this[_0x894ba8(0x2c9)]=_0x22e051,this[_0x894ba8(0x2e6)]=_0x1bc7fb,this[_0x894ba8(0x412)]());}[_0x5a5813(0x412)](){const _0x408a8c=_0x5a5813;this[_0x408a8c(0x133)][_0x408a8c(0x4af)]['pipe'](E['takeUntil'](this[_0x408a8c(0x207)]),E[_0x408a8c(0xf6)](_0x313813=>{const _0x533bae=_0x408a8c;if(_0x313813){const _0x289aba=_0x313813[_0x533bae(0xd9)];return v[_0x533bae(0x302)](this['_collabCursorController'][_0x533bae(0x2e1)](this[_0x533bae(0x214)][_0x533bae(0x396)]),this['_themeService'][_0x533bae(0x185)])[_0x533bae(0x2dd)](E['map'](([_0x13b0b9,_0x4182da])=>{const _0x284b04=new Map();return _0x13b0b9['forEach']((_0x2dd50f,_0x5b7adf)=>{const _0xc3bab1=_0x14f1;if(_0x2dd50f[_0xc3bab1(0x259)]===_0x289aba){const _0x562948={..._0x2dd50f};_0x562948[_0xc3bab1(0x311)]=_0x4182da[_0x2dd50f[_0xc3bab1(0x311)]],_0x284b04[_0xc3bab1(0x3a9)](_0x5b7adf,_0x562948);}}),{'skeleton':_0x313813,'cursors':_0x284b04};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x408a8c(0x11c)](({skeleton:_0x29e096,cursors:_0x38ad94})=>{const _0xe52c0=_0x408a8c;this[_0xe52c0(0x1c8)](),_0x29e096&&this[_0xe52c0(0x447)](_0x29e096,_0x38ad94);}),this[_0x408a8c(0x133)]['currentSkeleton$']['subscribe'](_0x5d7946=>{const _0x4921c0=_0x408a8c;if(_0x5d7946==null)return;const {skeleton:_0x37bda0}=_0x5d7946,{scene:_0x25f9c0}=this[_0x4921c0(0x214)];_0x25f9c0[_0x4921c0(0xdb)][_0x4921c0(0x3e7)](a[_0x4921c0(0x11d)](_0xd9c5f0=>{const _0xeaf68a=_0x4921c0;var _0x1fcce8,_0x4a9eae;const {offsetX:_0x5a2cfb,offsetY:_0x4316af}=_0xd9c5f0,{x:_0x439dc1,y:_0x12c9fb}=_0x25f9c0[_0xeaf68a(0x428)](O[_0xeaf68a(0x383)][_0xeaf68a(0x38c)]([_0x5a2cfb,_0x4316af])),{scaleX:_0x2e2f0a,scaleY:_0x3e3a9e}=_0x25f9c0['getAncestorScale'](),_0x19904f=_0x25f9c0[_0xeaf68a(0x14f)](ie[_0xeaf68a(0x399)][_0xeaf68a(0x3f5)]),_0x4e1f52=_0x25f9c0[_0xeaf68a(0x39b)](O[_0xeaf68a(0x383)]['FromArray']([_0x439dc1,_0x12c9fb]),_0x19904f),_0x5cd385=_0x37bda0[_0xeaf68a(0x2a5)](_0x5a2cfb,_0x4316af,_0x2e2f0a,_0x3e3a9e,_0x4e1f52);((_0x1fcce8=this[_0xeaf68a(0xc3)])==null?void 0x0:_0x1fcce8[_0xeaf68a(0x1ec)])===_0x5cd385[_0xeaf68a(0x1ec)]&&((_0x4a9eae=this[_0xeaf68a(0xc3)])==null?void 0x0:_0x4a9eae[_0xeaf68a(0x1ee)])===_0x5cd385[_0xeaf68a(0x1ee)]||this[_0xeaf68a(0x42d)][_0xeaf68a(0x1f2)](_0x211331=>{const _0x216266=_0xeaf68a;_0x211331[_0x216266(0x1fe)](_0x5cd385);});},0x64));});}[_0x5a5813(0x447)](_0x20a914,_0x45694b){const _0x49551f=_0x5a5813;var _0x5d404c;const _0xef70fa=(_0x5d404c=this['_sheetSkeletonManagerService'][_0x49551f(0x4b8)]())==null?void 0x0:_0x5d404c[_0x49551f(0xe1)];if(!_0xef70fa)return;const _0x15d0ea=this[_0x49551f(0x3b5)]();if(!_0x15d0ea)return;this['_cursors'][_0x49551f(0x1f2)](_0x2f0d39=>{const _0x7ff61f=_0x49551f;_0x2f0d39[_0x7ff61f(0x243)]();});const {scene:_0x59f1e8}=_0x15d0ea,_0x3a0a39=Ui(Array[_0x49551f(0x1a1)](_0x45694b[_0x49551f(0xb8)]()))[_0x49551f(0x29a)](_0x29d0b9=>{const _0x13784e=_0x49551f,{color:_0x44397d,range:_0xd8c117,name:_0x237bbf,selection:_0x153132,sheetID:_0x4256f3}=_0x29d0b9,{startColumn:_0x4a9053,startRow:_0x54cb43,endColumn:_0x35444f,endRow:_0x3ffc33}=_0xd8c117,_0x3a02b1=ie['getCoordByCell'](_0x54cb43,_0x4a9053,_0x59f1e8,_0xef70fa),_0x41a288=ie[_0x13784e(0x31c)](_0x3ffc33,_0x35444f,_0x59f1e8,_0xef70fa),{columnHeaderHeightAndMarginTop:_0x59ac1f}=_0xef70fa,{startX:_0x160ec9,startY:_0x443eeb}=_0x3a02b1,{endX:_0x4a6be3,endY:_0x59746a}=_0x41a288,_0x34ee81=_0x4a6be3-_0x160ec9,_0x451abd=_0x59746a-_0x443eeb,_0x5759de={'labelPosition':_0x443eeb-_0x59ac1f>=de?'top':_0x13784e(0x493),'sheetID':_0x4256f3,'range':_0xd8c117,'color':_0x44397d,'name':_0x237bbf,'selection':_0x153132,'left':_0x160ec9,'top':_0x443eeb,'width':_0x34ee81,'height':_0x451abd,'evented':!0x1,'zIndex':yi};return new wt(_0x237bbf,_0x5759de);});_0x59f1e8['addObjects'](_0x3a0a39,bi),this[_0x49551f(0x42d)]=new Set(_0x3a0a39);}[_0x5a5813(0x1c8)](){const _0x3ddb17=_0x5a5813;var _0x5bac6d;(_0x5bac6d=this[_0x3ddb17(0x42d)])==null||_0x5bac6d[_0x3ddb17(0x1f2)](_0x32f115=>_0x32f115[_0x3ddb17(0x34b)]());}['_getSheetObject'](){const _0x4f600b=_0x5a5813;return ie['getSheetObject'](this[_0x4f600b(0x214)][_0x4f600b(0x4be)],this[_0x4f600b(0x214)]);}};Ve=Di([$e(0x1,a[_0x5a5813(0x9b)](ie[_0x5a5813(0x29b)])),$e(0x2,a['Inject'](oe)),$e(0x3,a['Inject'](a['ThemeService']))],Ve);function Ui(_0x2ab584){const _0x5bd01e=_0x5a5813,_0x2edf05=new Map();return _0x2ab584[_0x5bd01e(0x1f2)](_0x3dcdc3=>{const _0x2dec23=_0x5bd01e;if(_0x2edf05[_0x2dec23(0xce)](_0x3dcdc3[_0x2dec23(0x284)])){const _0x3be93a=_0x2edf05[_0x2dec23(0x4a8)](_0x3dcdc3[_0x2dec23(0x284)]);_0x3be93a['name']+=',\x20'+_0x3dcdc3[_0x2dec23(0x1dc)];}else _0x2edf05[_0x2dec23(0x3a9)](_0x3dcdc3['selection'],_0x3dcdc3);}),Array[_0x5bd01e(0x1a1)](_0x2edf05[_0x5bd01e(0xb8)]());}var M=function(){const _0x10a0f0=_0x5a5813;return M=Object[_0x10a0f0(0x1db)]||function(_0x10a6c3){const _0x5bb187=_0x10a0f0;for(var _0x15e372,_0x33c631=0x1,_0x332de9=arguments[_0x5bb187(0x492)];_0x33c631<_0x332de9;_0x33c631++){_0x15e372=arguments[_0x33c631];for(var _0x340e14 in _0x15e372)Object[_0x5bb187(0x1d4)]['hasOwnProperty'][_0x5bb187(0x288)](_0x15e372,_0x340e14)&&(_0x10a6c3[_0x340e14]=_0x15e372[_0x340e14]);}return _0x10a6c3;},M[_0x10a0f0(0xeb)](this,arguments);},Pi=function(_0x411b32,_0x2ced7b){const _0x43fade=_0x5a5813;var _0x4b38c0={};for(var _0x18201a in _0x411b32)Object['prototype'][_0x43fade(0x423)][_0x43fade(0x288)](_0x411b32,_0x18201a)&&_0x2ced7b[_0x43fade(0x276)](_0x18201a)<0x0&&(_0x4b38c0[_0x18201a]=_0x411b32[_0x18201a]);if(_0x411b32!=null&&typeof Object[_0x43fade(0x4a5)]=='function'){for(var _0x14e1e7=0x0,_0x18201a=Object['getOwnPropertySymbols'](_0x411b32);_0x14e1e7<_0x18201a[_0x43fade(0x492)];_0x14e1e7++)_0x2ced7b['indexOf'](_0x18201a[_0x14e1e7])<0x0&&Object[_0x43fade(0x1d4)][_0x43fade(0x300)]['call'](_0x411b32,_0x18201a[_0x14e1e7])&&(_0x4b38c0[_0x18201a[_0x14e1e7]]=_0x411b32[_0x18201a[_0x14e1e7]]);}return _0x4b38c0;},Je=y[_0x5a5813(0x3f3)](function(_0x35ee5a,_0x598926){const _0x506b56=_0x5a5813;var _0x2a84a2=_0x35ee5a[_0x506b56(0x327)],_0x5a0c73=_0x35ee5a['id'],_0x5776ec=_0x35ee5a[_0x506b56(0x4b1)],_0x1c7ea9=_0x35ee5a[_0x506b56(0x3a3)],_0x3f809b=Pi(_0x35ee5a,[_0x506b56(0x327),'id',_0x506b56(0x4b1),_0x506b56(0x3a3)]),_0xc527b2=_0x506b56(0x358)['concat'](_0x5a0c73,'\x20')[_0x506b56(0x164)](_0x5776ec||'')[_0x506b56(0x2ba)](),_0x7cd5b5=y[_0x506b56(0x153)]('_'[_0x506b56(0x164)](Mi()));return Nt(_0x2a84a2,''['concat'](_0x5a0c73),{'defIds':_0x2a84a2[_0x506b56(0x273)],'idSuffix':_0x7cd5b5[_0x506b56(0x3d0)]},M({'ref':_0x598926,'className':_0xc527b2},_0x3f809b),_0x1c7ea9);});function Nt(_0x546dfa,_0x5db7e4,_0x4c0ccc,_0x1ec6d2,_0x4a8bb7){const _0x47625f=_0x5a5813;return y['createElement'](_0x546dfa[_0x47625f(0x1e7)],M(M({'key':_0x5db7e4},wi(_0x546dfa,_0x4c0ccc,_0x4a8bb7)),_0x1ec6d2),(Ni(_0x546dfa,_0x4c0ccc)['children']||[])[_0x47625f(0x29a)](function(_0x1afe4a,_0x45560c){const _0x41af17=_0x47625f;return Nt(_0x1afe4a,''['concat'](_0x5db7e4,'-')[_0x41af17(0x164)](_0x546dfa['tag'],'-')[_0x41af17(0x164)](_0x45560c),_0x4c0ccc,void 0x0,_0x4a8bb7);}));}function wi(_0x34b377,_0x4c99a6,_0x5bf6ce){const _0x36d4af=_0x5a5813;var _0x2dee83=M({},_0x34b377[_0x36d4af(0x3ae)]);_0x5bf6ce!=null&&_0x5bf6ce[_0x36d4af(0x1df)]&&_0x2dee83[_0x36d4af(0x497)]==='colorChannel1'&&(_0x2dee83[_0x36d4af(0x497)]=_0x5bf6ce[_0x36d4af(0x1df)]);var _0x2c781f=_0x4c99a6[_0x36d4af(0x273)];return!_0x2c781f||_0x2c781f[_0x36d4af(0x492)]===0x0||(_0x34b377[_0x36d4af(0x1e7)]==='use'&&_0x2dee83[_0x36d4af(0x32a)]&&(_0x2dee83[_0x36d4af(0x32a)]=_0x2dee83[_0x36d4af(0x32a)]+_0x4c99a6['idSuffix']),Object[_0x36d4af(0x2ed)](_0x2dee83)['forEach'](function(_0x2d47aa){const _0x339f34=_0x36d4af;var _0x1814cb=_0x2d47aa[0x0],_0x3be1b2=_0x2d47aa[0x1];typeof _0x3be1b2==_0x339f34(0x16d)&&(_0x2dee83[_0x1814cb]=_0x3be1b2['replace'](/url\(#(.*)\)/,_0x339f34(0x1b0)['concat'](_0x4c99a6[_0x339f34(0x41c)],')')));})),_0x2dee83;}function Ni(_0x41784e,_0x2dfb24){const _0x45bf26=_0x5a5813;var _0x24f9c6,_0x3c165e=_0x2dfb24[_0x45bf26(0x273)];return!_0x3c165e||_0x3c165e[_0x45bf26(0x492)]===0x0?_0x41784e:_0x41784e[_0x45bf26(0x1e7)]===_0x45bf26(0x49e)&&(!((_0x24f9c6=_0x41784e['children'])===null||_0x24f9c6===void 0x0)&&_0x24f9c6[_0x45bf26(0x492)])?M(M({},_0x41784e),{'children':_0x41784e[_0x45bf26(0x486)][_0x45bf26(0x29a)](function(_0xbea6bb){const _0x3e1285=_0x45bf26;return typeof _0xbea6bb[_0x3e1285(0x3ae)]['id']==_0x3e1285(0x16d)&&_0x3c165e&&_0x3c165e['indexOf'](_0xbea6bb[_0x3e1285(0x3ae)]['id'])>-0x1?M(M({},_0xbea6bb),{'attrs':M(M({},_0xbea6bb['attrs']),{'id':_0xbea6bb[_0x3e1285(0x3ae)]['id']+_0x2dfb24['idSuffix']})}):_0xbea6bb;})}):_0x41784e;}function Mi(){const _0xc03825=_0x5a5813;return Math[_0xc03825(0x193)]()[_0xc03825(0x382)](0x24)[_0xc03825(0x2e5)](0x2,0x8);}Je[_0x5a5813(0x1d5)]='UniverIcon';var Ai={'tag':_0x5a5813(0x407),'attrs':{'fill':_0x5a5813(0xbb),'viewBox':_0x5a5813(0x33d),'width':'1em','height':_0x5a5813(0x3bb)},'children':[{'tag':'g','attrs':{'clipPath':_0x5a5813(0x1ab)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x5a5813(0x145),'strokeLinecap':'round','strokeLinejoin':_0x5a5813(0x2b8),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5a5813(0x35c),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x5a5813(0x44f),'attrs':{'fill':_0x5a5813(0x234),'d':_0x5a5813(0xaa)}}]}]}],'defIds':[_0x5a5813(0x23a)]},Mt=y['forwardRef'](function(_0x1ac6f4,_0x1bd57f){const _0x3f3f1c=_0x5a5813;return y['createElement'](Je,Object[_0x3f3f1c(0x1db)]({},_0x1ac6f4,{'id':_0x3f3f1c(0x47a),'ref':_0x1bd57f,'icon':Ai}));});Mt[_0x5a5813(0x1d5)]=_0x5a5813(0xbd);var Li={'tag':_0x5a5813(0x407),'attrs':{'fill':'none','viewBox':_0x5a5813(0x353),'width':_0x5a5813(0x3bb),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5a5813(0xfb)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x5a5813(0x337),'strokeLinecap':_0x5a5813(0x2b8),'strokeLinejoin':_0x5a5813(0x2b8),'strokeWidth':1.2}}]},{'tag':_0x5a5813(0x49e),'attrs':{},'children':[{'tag':_0x5a5813(0x35c),'attrs':{'id':_0x5a5813(0x35e)},'children':[{'tag':_0x5a5813(0x44f),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x5a5813(0x336)}}]}]}],'defIds':[_0x5a5813(0x35e)]},At=y['forwardRef'](function(_0x227116,_0x6cfa36){const _0x40746d=_0x5a5813;return y[_0x40746d(0x2ea)](Je,Object['assign']({},_0x227116,{'id':_0x40746d(0x147),'ref':_0x6cfa36,'icon':Li}));});At['displayName']=_0x5a5813(0x215);function Lt(_0x48a12b){const _0x342244=_0x5a5813;var _0x193ff4,_0x161825,_0x5d3b94='';if(typeof _0x48a12b==_0x342244(0x16d)||typeof _0x48a12b==_0x342244(0x118))_0x5d3b94+=_0x48a12b;else{if(typeof _0x48a12b==_0x342244(0x174)){if(Array['isArray'](_0x48a12b)){var _0x367c90=_0x48a12b[_0x342244(0x492)];for(_0x193ff4=0x0;_0x193ff4<_0x367c90;_0x193ff4++)_0x48a12b[_0x193ff4]&&(_0x161825=Lt(_0x48a12b[_0x193ff4]))&&(_0x5d3b94&&(_0x5d3b94+='\x20'),_0x5d3b94+=_0x161825);}else{for(_0x161825 in _0x48a12b)_0x48a12b[_0x161825]&&(_0x5d3b94&&(_0x5d3b94+='\x20'),_0x5d3b94+=_0x161825);}}}return _0x5d3b94;}function $i(){const _0x2507b9=_0x5a5813;for(var _0x4ef3d0,_0x2490d2,_0x48f247=0x0,_0x21d9f2='',_0x1bbea3=arguments[_0x2507b9(0x492)];_0x48f247<_0x1bbea3;_0x48f247++)(_0x4ef3d0=arguments[_0x48f247])&&(_0x2490d2=Lt(_0x4ef3d0))&&(_0x21d9f2&&(_0x21d9f2+='\x20'),_0x21d9f2+=_0x2490d2);return _0x21d9f2;}const ji=_0x5a5813(0x119),Hi=_0x5a5813(0x148),xi=_0x5a5813(0x426),ki=_0x5a5813(0x202),Bi=_0x5a5813(0x2aa),he={'onlineStatusIcon':ji,'onlineStatusTitle':Hi,'onlineStatus':xi,'online':ki,'offline':Bi};function Vi(_0xf9e7ca){const _0x3867f2=_0x5a5813;switch(_0xf9e7ca){case D[_0x3867f2(0x11a)]:return _0x3867f2(0x2e8);case D['CONFLICT']:return _0x3867f2(0x2bf);case D[_0x3867f2(0x19a)]:return'collabStatus.fetchMiss';case D[_0x3867f2(0x136)]:return _0x3867f2(0x218);case D['AWAITING']:case D[_0x3867f2(0x2ae)]:return _0x3867f2(0x1f0);case D['SYNCED']:case D[_0x3867f2(0x24a)]:return _0x3867f2(0x196);}}function $t(_0x4767f9){const _0x415cbb=_0x5a5813,{status$:_0x3b4aa3}=_0x4767f9,_0x30add0=A[_0x415cbb(0x113)](_0x3b4aa3,D[_0x415cbb(0x136)]),_0x115050=a[_0x415cbb(0x106)](a[_0x415cbb(0x20b)]),_0x522d0a=a[_0x415cbb(0x106)](exports[_0x415cbb(0x1e5)]),_0xcc96f2=_0x30add0!==D['OFFLINE'],_0x3ecb27=_0x115050['t'](Vi(_0x30add0)),_0x3624c6=$i(he[_0x415cbb(0x466)],{[he[_0x415cbb(0x480)]]:_0xcc96f2,[he[_0x415cbb(0x240)]]:!_0xcc96f2}),_0x317866=_0xcc96f2?y['createElement'](At,null):y[_0x415cbb(0x2ea)](Mt,null),_0x5b8a9e=y[_0x415cbb(0x360)](()=>{const _0x3c9825=_0x415cbb;_0xcc96f2||_0x522d0a[_0x3c9825(0x24d)]();},[_0xcc96f2,_0x522d0a]);function _0x4c6714(){const _0x2f6192=_0x415cbb;return y[_0x2f6192(0x2ea)](_0x2f6192(0x2f9),{'className':_0x3624c6,'onClick':_0x5b8a9e},y[_0x2f6192(0x2ea)](_0x2f6192(0x2f9),{'className':he['onlineStatusIcon']},_0x317866),y[_0x2f6192(0x2ea)](_0x2f6192(0x2f9),{'className':he[_0x2f6192(0x1c6)]},_0x3ecb27));}return _0xcc96f2?_0x4c6714():y[_0x415cbb(0x2ea)](J[_0x415cbb(0x443)],{'title':_0x115050['t'](_0x415cbb(0x18e))},_0x4c6714());}var Wi=Object[_0x5a5813(0x40e)],Fi=Object[_0x5a5813(0x3b4)],Gi=(_0x23f575,_0x284ea0,_0x185684,_0x532fbb)=>{const _0x415e68=_0x5a5813;for(var _0x11d22c=_0x532fbb>0x1?void 0x0:_0x532fbb?Fi(_0x284ea0,_0x185684):_0x284ea0,_0x85aaf7=_0x23f575[_0x415e68(0x492)]-0x1,_0x5ce50a;_0x85aaf7>=0x0;_0x85aaf7--)(_0x5ce50a=_0x23f575[_0x85aaf7])&&(_0x11d22c=(_0x532fbb?_0x5ce50a(_0x284ea0,_0x185684,_0x11d22c):_0x5ce50a(_0x11d22c))||_0x11d22c);return _0x532fbb&&_0x11d22c&&Wi(_0x284ea0,_0x185684,_0x11d22c),_0x11d22c;},me=(_0x1a055a,_0x3d98ed)=>(_0x22664e,_0x20a945)=>_0x3d98ed(_0x22664e,_0x20a945,_0x1a055a);exports[_0x5a5813(0x41b)]=class extends a[_0x5a5813(0x183)]{constructor(_0x2d38ef,_0x1630aa,_0x2cfef3,_0x41aec5){const _0x6e2f17=_0x5a5813;super(),u(this,_0x6e2f17(0x496),new v['BehaviorSubject'](D['NOT_COLLAB'])),(this[_0x6e2f17(0x15d)]=_0x2d38ef,this[_0x6e2f17(0x184)]=_0x1630aa,this[_0x6e2f17(0x33a)]=_0x2cfef3,this[_0x6e2f17(0x39d)]=_0x41aec5,this[_0x6e2f17(0x2c8)](),this[_0x6e2f17(0x345)]());}[_0x5a5813(0x345)](){const _0x427418=_0x5a5813;this[_0x427418(0xd3)](this[_0x427418(0x15d)]['focused$'][_0x427418(0x2dd)](v['switchMap'](()=>{const _0x2721c7=_0x427418,_0x4b492f=this['_univerInstanceService'][_0x2721c7(0x33e)]();return _0x4b492f?this[_0x2721c7(0x39d)][_0x2721c7(0x376)](_0x4b492f['getUnitId']()):v['of'](null);}),v[_0x427418(0xf6)](_0x24b982=>_0x24b982?_0x24b982[_0x427418(0x424)]:v['of'](D[_0x427418(0x136)])))[_0x427418(0x11c)](_0x45c72b=>{const _0x1979d6=_0x427418;this['_status$'][_0x1979d6(0x33b)](_0x45c72b);}));}['_initStatusComponent'](){const _0x5a04d3=_0x5a5813;this[_0x5a04d3(0xd3)](this[_0x5a04d3(0x184)][_0x5a04d3(0x476)](A[_0x5a04d3(0xd0)][_0x5a04d3(0x449)],()=>a[_0x5a04d3(0x19b)](Yi({'status$':this[_0x5a04d3(0x496)][_0x5a04d3(0x195)]()}),this[_0x5a04d3(0x33a)])));}},exports[_0x5a5813(0x41b)]=Gi([me(0x0,a[_0x5a5813(0x411)]),me(0x1,A[_0x5a5813(0xda)]),me(0x2,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),me(0x3,a['Inject'](exports[_0x5a5813(0x199)]))],exports[_0x5a5813(0x41b)]);function Yi(_0x28a6c8){const {status$:_0x288d73}=_0x28a6c8;return function(){const _0x448cab=_0x14f1;return y[_0x448cab(0x2ea)]($t,{'status$':_0x288d73});};}const Ze=a[_0x5a5813(0x8f)](_0x5a5813(0x1d6));var Ki=Object[_0x5a5813(0x40e)],Xi=Object[_0x5a5813(0x3b4)],qi=(_0x2d23c8,_0x266311,_0x515f76,_0x101f1b)=>{for(var _0x5b4c12=_0x101f1b>0x1?void 0x0:_0x101f1b?Xi(_0x266311,_0x515f76):_0x266311,_0x42ad5d=_0x2d23c8['length']-0x1,_0x303217;_0x42ad5d>=0x0;_0x42ad5d--)(_0x303217=_0x2d23c8[_0x42ad5d])&&(_0x5b4c12=(_0x101f1b?_0x303217(_0x266311,_0x515f76,_0x5b4c12):_0x303217(_0x5b4c12))||_0x5b4c12);return _0x101f1b&&_0x5b4c12&&Ki(_0x266311,_0x515f76,_0x5b4c12),_0x5b4c12;},se=(_0x4cd519,_0x23013a)=>(_0x17761c,_0x32d3c3)=>_0x23013a(_0x17761c,_0x32d3c3,_0x4cd519);exports[_0x5a5813(0x1ef)]=class extends a[_0x5a5813(0x18f)]{constructor(_0x1f07d4,_0x54f383,_0x48fd51,_0x194ebe,_0x1e86d4,_0x23957c){const _0x5f0fff=_0x5a5813;super(),this[_0x5f0fff(0x211)]=_0x1f07d4,this[_0x5f0fff(0x452)]=_0x54f383,this[_0x5f0fff(0x159)]=_0x48fd51,this[_0x5f0fff(0x15c)]=_0x194ebe,this[_0x5f0fff(0xf1)]=_0x1e86d4,_0x23957c?_0x23957c==null||_0x23957c['whenReady']()[_0x5f0fff(0x2a3)](()=>this['_init']()):(this[_0x5f0fff(0x452)][_0x5f0fff(0x404)](_0x5f0fff(0x287),_0x5f0fff(0x175)),this[_0x5f0fff(0x412)]());}async[_0x5a5813(0x412)](){const _0x1cf969=_0x5a5813,_0x3cbb47=this[_0x1cf969(0x211)][_0x1cf969(0x275)](_0x1cf969(0x4be)),_0x586e77=this[_0x1cf969(0x211)]['getParam']('type');if(!_0x3cbb47||!_0x586e77){this['_logService'][_0x1cf969(0x404)]('[DataLoaderController]',_0x1cf969(0x454));return;}switch(Number(_0x586e77)){case H['UNIVER_SHEET']:{const _0x24c8c5=await this['_loadSheet'](_0x3cbb47);this[_0x1cf969(0x272)](_0x24c8c5);break;}case H['UNIVER_DOC']:{await this[_0x1cf969(0x17b)](_0x3cbb47);break;}default:{this['_logService']['error']('[DataLoaderController]',_0x1cf969(0x375));break;}}}async[_0x5a5813(0x272)](_0x1b57c9){const _0x893fe8=_0x5a5813;await this[_0x893fe8(0x27b)](_0x1b57c9),_0x1b57c9[_0x893fe8(0x25d)]['pipe'](v[_0x893fe8(0x460)](this[_0x893fe8(0x207)]))['subscribe'](_0x3a0cba=>{_0x3a0cba&&this['_updateURLWithCurrentState'](_0x3a0cba);}),this[_0x893fe8(0x211)][_0x893fe8(0x1e8)]['pipe'](v[_0x893fe8(0x460)](this[_0x893fe8(0x207)]))[_0x893fe8(0x11c)](()=>this['_updateSubUnitFromURLParams'](_0x1b57c9));}[_0x5a5813(0x420)](_0x86a6ca,_0x1ecf9f=!0x1){const _0x3fca2c=_0x5a5813,_0x453665=this[_0x3fca2c(0x211)][_0x3fca2c(0x275)](_0x3fca2c(0x394));_0x86a6ca[_0x3fca2c(0x13f)]()!==_0x453665&&this[_0x3fca2c(0x211)]['setParam']('subunit',_0x86a6ca[_0x3fca2c(0x13f)](),_0x1ecf9f);}async[_0x5a5813(0x27b)](_0x466152){const _0x553a49=_0x5a5813;var _0x4a621e;const _0x580fe3=this['_urlService'][_0x553a49(0x275)]('subunit');if(!_0x580fe3||!_0x466152[_0x553a49(0x49b)](_0x580fe3)){const _0x3943f8=_0x466152[_0x553a49(0x44e)]()[0x0],_0x5d7d38=_0x466152['getSheetBySheetId'](_0x3943f8);if(!_0x5d7d38)return;this[_0x553a49(0x420)](_0x5d7d38,!0x0),await this['_commandService']['executeCommand'](C[_0x553a49(0x271)]['id'],{'unitId':_0x466152[_0x553a49(0x488)](),'subUnitId':_0x3943f8});return;}((_0x4a621e=_0x466152['getActiveSheet']())==null?void 0x0:_0x4a621e[_0x553a49(0x13f)]())!==_0x580fe3&&await this['_commandService'][_0x553a49(0x39c)](C[_0x553a49(0x271)]['id'],{'unitId':_0x466152['getUnitId'](),'subUnitId':_0x580fe3});}async[_0x5a5813(0x4bd)](_0x4f9d32){const _0x4fd189=_0x5a5813;let _0xe40fae=0x0;const _0x455e32=await this[_0x4fd189(0x15c)][_0x4fd189(0x321)](_0x4f9d32);return _0x455e32&&(_0x455e32['awaitingChangeset']||_0x455e32['mutations'][_0x4fd189(0x492)]!==0x0)&&(_0xe40fae=_0x455e32[_0x4fd189(0x3d2)]),_0xe40fae===0x0&&this[_0x4fd189(0x452)][_0x4fd189(0x404)](_0x4fd189(0x287),_0x4fd189(0x9f)),this[_0x4fd189(0xf1)]['loadSheet'](_0x4f9d32,_0xe40fae);}async[_0x5a5813(0x17b)](_0x42d436){const _0xfe8cfc=_0x5a5813;let _0x55aeef=0x0;const _0x1e593a=await this['_localCacheService']['loadOfflineData'](_0x42d436);return _0x1e593a&&(_0x1e593a[_0xfe8cfc(0x357)]||_0x1e593a[_0xfe8cfc(0x2ad)][_0xfe8cfc(0x492)]!==0x0)&&(_0x55aeef=_0x1e593a[_0xfe8cfc(0x3d2)]),_0x55aeef===0x0&&this[_0xfe8cfc(0x452)]['debug'](_0xfe8cfc(0x287),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0xfe8cfc(0x1e6)](_0x42d436,_0x55aeef);}},exports[_0x5a5813(0x1ef)]=qi([se(0x0,Ze),se(0x1,a[_0x5a5813(0x398)]),se(0x2,a[_0x5a5813(0x3cc)]),se(0x3,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x112)])),se(0x4,a[_0x5a5813(0x9b)](_[_0x5a5813(0x1d8)])),se(0x5,a[_0x5a5813(0xe8)](Xt[_0x5a5813(0x42e)]))],exports[_0x5a5813(0x1ef)]);var zi=Object['defineProperty'],Ji=Object['getOwnPropertyDescriptor'],Zi=(_0x1d2e1d,_0x2876df,_0x3eade3,_0x26d4f4)=>{for(var _0x36bd80=_0x26d4f4>0x1?void 0x0:_0x26d4f4?Ji(_0x2876df,_0x3eade3):_0x2876df,_0x57d2c7=_0x1d2e1d['length']-0x1,_0x37b856;_0x57d2c7>=0x0;_0x57d2c7--)(_0x37b856=_0x1d2e1d[_0x57d2c7])&&(_0x36bd80=(_0x26d4f4?_0x37b856(_0x2876df,_0x3eade3,_0x36bd80):_0x37b856(_0x36bd80))||_0x36bd80);return _0x26d4f4&&_0x36bd80&&zi(_0x2876df,_0x3eade3,_0x36bd80),_0x36bd80;},ht=(_0x52194c,_0x4a759f)=>(_0x171ecc,_0x32fb61)=>_0x4a759f(_0x171ecc,_0x32fb61,_0x52194c);const Qi=_0x5a5813(0xcf),en='Univer';let Ce=class extends a[_0x5a5813(0x183)]{constructor(_0x5adede,_0x298c82){const _0xb28255=_0x5a5813;super(),this[_0xb28255(0x15d)]=_0x5adede,this[_0xb28255(0x36e)]=_0x298c82,this[_0xb28255(0x412)]();}[_0x5a5813(0x412)](){const _0x14a995=_0x5a5813;this[_0x14a995(0xd3)](this[_0x14a995(0x15d)][_0x14a995(0x1a0)][_0x14a995(0x11c)](()=>{const _0x1439f0=_0x14a995;var _0x3cea60;const _0x57706d=this[_0x1439f0(0x15d)][_0x1439f0(0x33e)]();let _0x405d5b=(_0x3cea60=this[_0x1439f0(0x36e)]['getConfig'](Qi))!=null?_0x3cea60:en;_0x57706d instanceof a[_0x1439f0(0x392)]&&(_0x405d5b=_0x57706d['name']),document[_0x1439f0(0x38b)]=_0x405d5b;}));}};Ce=Zi([ht(0x0,a[_0x5a5813(0x411)]),ht(0x1,a[_0x5a5813(0x341)])],Ce);var tn=Object[_0x5a5813(0x40e)],sn=Object['getOwnPropertyDescriptor'],nn=(_0x247e36,_0x5532de,_0xf23507,_0x21e0e6)=>{const _0x3b0d5d=_0x5a5813;for(var _0x5b2050=_0x21e0e6>0x1?void 0x0:_0x21e0e6?sn(_0x5532de,_0xf23507):_0x5532de,_0xfbc99=_0x247e36[_0x3b0d5d(0x492)]-0x1,_0x4bfb9b;_0xfbc99>=0x0;_0xfbc99--)(_0x4bfb9b=_0x247e36[_0xfbc99])&&(_0x5b2050=(_0x21e0e6?_0x4bfb9b(_0x5532de,_0xf23507,_0x5b2050):_0x4bfb9b(_0x5b2050))||_0x5b2050);return _0x21e0e6&&_0x5b2050&&tn(_0x5532de,_0xf23507,_0x5b2050),_0x5b2050;},je=(_0x3706b8,_0x3e894c)=>(_0x5b75f9,_0x179d49)=>_0x3e894c(_0x5b75f9,_0x179d49,_0x3706b8);let Ee=class{constructor(_0x4cabb4,_0x5696ba,_0xccea1d){const _0x47f8c3=_0x5a5813;this[_0x47f8c3(0x36e)]=_0x4cabb4,this[_0x47f8c3(0x1d2)]=_0x5696ba,this[_0x47f8c3(0x42f)]=_0xccea1d,this[_0x47f8c3(0x296)]();}[_0x5a5813(0x296)](){const _0x3790ba=_0x5a5813;this[_0x3790ba(0x1d2)][_0x3790ba(0x165)]({'priority':0x1,'interceptor':(_0x408f47,_0x191369)=>_0x191369(_0x408f47)[_0x3790ba(0x2dd)](v[_0x3790ba(0x489)](async _0x31e71f=>{const _0x3c0235=_0x3790ba,_0x192d50=_0x31e71f;if(_0x192d50[_0x3c0235(0x473)]===0x191&&window['confirm'](this[_0x3c0235(0x42f)]['t'](_0x3c0235(0x155)))){const _0xf18f8d=window[_0x3c0235(0x187)](window[_0x3c0235(0x319)][_0x3c0235(0x49c)]);window[_0x3c0235(0x319)][_0x3c0235(0x49c)]=this[_0x3c0235(0x266)]()+_0x3c0235(0x1ba)+_0xf18f8d;}return _0x192d50;}))});}[_0x5a5813(0x266)](){const _0x7c0635=_0x5a5813;var _0x101466,_0x5bb28a;const _0x297a1d=this[_0x7c0635(0x36e)][_0x7c0635(0x322)](Ct),_0x3450ee=this['_configService'][_0x7c0635(0x322)]($);return(_0x5bb28a=(_0x101466=_0x3450ee==null?void 0x0:_0x3450ee[_0x7c0635(0x3aa)])!=null?_0x101466:_0x297a1d)!=null?_0x5bb28a:rs;}};Ee=nn([je(0x0,a[_0x5a5813(0x341)]),je(0x1,a[_0x5a5813(0x9b)](w[_0x5a5813(0x1fd)])),je(0x2,a['Inject'](a[_0x5a5813(0x20b)]))],Ee);var rn=Object['defineProperty'],on=Object['getOwnPropertyDescriptor'],an=(_0xfe04ac,_0x598e11,_0xd745ca,_0x2acf53)=>{const _0x3ba14c=_0x5a5813;for(var _0x1bb162=_0x2acf53>0x1?void 0x0:_0x2acf53?on(_0x598e11,_0xd745ca):_0x598e11,_0x2da03a=_0xfe04ac[_0x3ba14c(0x492)]-0x1,_0x2308b4;_0x2da03a>=0x0;_0x2da03a--)(_0x2308b4=_0xfe04ac[_0x2da03a])&&(_0x1bb162=(_0x2acf53?_0x2308b4(_0x598e11,_0xd745ca,_0x1bb162):_0x2308b4(_0x1bb162))||_0x1bb162);return _0x2acf53&&_0x1bb162&&rn(_0x598e11,_0xd745ca,_0x1bb162),_0x1bb162;},_t=(_0xfebbf3,_0x403d8c)=>(_0x2d3a78,_0xf1ad8b)=>_0x403d8c(_0x2d3a78,_0xf1ad8b,_0xfebbf3);const jt=_0x5a5813(0x236),cn='/universer-api/authz';exports[_0x5a5813(0x46a)]=class extends a[_0x5a5813(0x183)]{constructor(_0x29ec6e,_0x1f6c43){const _0x3a27d7=_0x5a5813;super(),this[_0x3a27d7(0x3b9)]=_0x29ec6e,this[_0x3a27d7(0x36e)]=_0x1f6c43,this[_0x3a27d7(0x2ef)]();}[_0x5a5813(0x2ef)](){const _0x54568c=_0x5a5813,_0x3882f5=this;this[_0x54568c(0xd3)](this['_HTTPService'][_0x54568c(0x165)]({'priority':0x3e7,'interceptor':w[_0x54568c(0x121)]({'isMatch'(_0x33d24c){const _0x50e037=_0x54568c;var _0x4af1be;if(_0x33d24c[_0x50e037(0xe5)]===_0x50e037(0x2cb)&&((_0x4af1be=_0x33d24c[_0x50e037(0x1a8)])!=null&&_0x4af1be['body'])){const {objectID:_0x2a46ee,objectType:_0x2cea1b}=_0x33d24c[_0x50e037(0x1a8)][_0x50e037(0x1af)]||{};if(!_0x2a46ee||_0x2cea1b===void 0x0)return!0x1;const _0x4b1e55=_0x3882f5[_0x50e037(0x1ff)]()+'/'+_0x2cea1b+_0x50e037(0x281)+_0x2a46ee+_0x50e037(0x3b1);if(_0x33d24c[_0x50e037(0x93)]===_0x4b1e55)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5bb864){const _0x2c46a0=_0x54568c;var _0x299701;return(_0x299701=_0x5bb864[_0x2c46a0(0x1a8)])==null?void 0x0:_0x299701[_0x2c46a0(0x1af)];},'mergeParamsToRequest'(_0x496e66,_0x13c590){const _0x3b2e9b=_0x54568c,_0x2bb682=_0x3882f5['_getAPIPrefixPath']()+_0x3b2e9b(0x2b1),_0x3ec507=_0x496e66[_0x3b2e9b(0x2ec)]((_0x5d5aa3,_0x4623c7)=>{const _0x491f7a=_0x3b2e9b,{unitID:_0x3a4426,objectID:_0x1c819c,objectType:_0x1f5208,actions:_0x8277fa}=_0x4623c7;return _0x5d5aa3[_0x3a4426]||(_0x5d5aa3[_0x3a4426]={}),_0x5d5aa3[_0x3a4426][_0x1c819c]||(_0x5d5aa3[_0x3a4426][_0x1c819c]={'objectID':_0x1c819c,'objectType':_0x1f5208,'actions':[]}),_0x5d5aa3[_0x3a4426][_0x1c819c][_0x491f7a(0x14d)][_0x491f7a(0x37f)](..._0x8277fa),_0x5d5aa3;},{}),_0x365dfb=[];for(const _0x42bfaa in _0x3ec507)for(const _0x320d7c in _0x3ec507[_0x42bfaa]){const {actions:_0x3f3d52,objectType:_0x5b42b4}=_0x3ec507[_0x42bfaa][_0x320d7c],_0x48a2b0=[...new Set(_0x3f3d52)];_0x365dfb[_0x3b2e9b(0x37f)]({'unitID':_0x42bfaa,'objectID':_0x320d7c,'objectType':_0x5b42b4,'actions':_0x48a2b0});}return new w[(_0x3b2e9b(0x289))](_0x3b2e9b(0x2cb),_0x2bb682,{'headers':_0x13c590[_0x3b2e9b(0x3da)],'withCredentials':_0x13c590[_0x3b2e9b(0x308)],'responseType':_0x13c590[_0x3b2e9b(0x3d9)],'body':{'requests':_0x365dfb}});}},{'distributeResult'(_0xf10f9f,_0x5205d5){const _0x4daea2=_0x54568c,{objectActions:_0x1482bb}=_0xf10f9f;return _0x5205d5[_0x4daea2(0x29a)](_0x430b44=>{const _0x3d3f7f=_0x4daea2,{unitID:_0x15116,objectID:_0x10adb1,actions:_0x4565b6}=_0x430b44,_0x30c4e6=_0x1482bb[_0x3d3f7f(0xac)](_0x5d473f=>_0x5d473f[_0x3d3f7f(0x129)]===_0x15116&&_0x5d473f['objectID']===_0x10adb1),_0x37aacb=_0x4565b6[_0x3d3f7f(0x29a)](_0xb6dc7e=>_0x30c4e6==null?void 0x0:_0x30c4e6[_0x3d3f7f(0x14d)][_0x3d3f7f(0xac)](_0x41c9f5=>_0x41c9f5[_0x3d3f7f(0x256)]===_0xb6dc7e))[_0x3d3f7f(0x8b)](_0x3e3b7f=>!!_0x3e3b7f);return{'config':_0x430b44,'result':{'actions':_0x37aacb,'error':_0xf10f9f[_0x3d3f7f(0x122)]}};});}})}));}[_0x5a5813(0x1ff)](){const _0x4d13ab=_0x5a5813;var _0x1f4aba,_0x52a5a6;const _0xc43f3=this[_0x4d13ab(0x36e)]['getConfig'](jt),_0x54f5bb=this[_0x4d13ab(0x36e)]['getConfig']($);return(_0x52a5a6=(_0x1f4aba=_0x54f5bb==null?void 0x0:_0x54f5bb['authzUrl'])!=null?_0x1f4aba:_0xc43f3)!=null?_0x52a5a6:cn;}async[_0x5a5813(0x4b0)](_0x5d51b6){const _0x61e642=_0x5a5813,_0x1c77f8=this['_getAPIPrefixPath']()+'/'+_0x5d51b6[_0x61e642(0x34f)]+_0x61e642(0x225);return(await this[_0x61e642(0x3b9)][_0x61e642(0x4bf)](_0x1c77f8,{'body':_0x5d51b6}))[_0x61e642(0x1af)][_0x61e642(0x1dd)]||'';}async['list'](_0x11202b){const _0x9f4729=_0x5a5813,_0x3ece=this['_getAPIPrefixPath']()+_0x9f4729(0x4ab);return(await this['_HTTPService']['post'](_0x3ece,{'body':_0x11202b}))[_0x9f4729(0x1af)]['objects'];}async[_0x5a5813(0x45f)](_0x2b9a36){const _0x1e0c7b=_0x5a5813,_0x5305df=this[_0x1e0c7b(0x1ff)]()+'/'+_0x2b9a36['objectType']+_0x1e0c7b(0x281)+_0x2b9a36[_0x1e0c7b(0x1dd)];await this['_HTTPService']['put'](_0x5305df,{'body':_0x2b9a36});}async[_0x5a5813(0x3e5)](_0x21e153){const _0x3c77ac=_0x5a5813,_0xd79805=this['_getAPIPrefixPath']()+'/'+_0x21e153[_0x3c77ac(0x34f)]+_0x3c77ac(0x281)+_0x21e153[_0x3c77ac(0x1dd)]+_0x3c77ac(0x3b1);return(await this['_HTTPService'][_0x3c77ac(0x4bf)](_0xd79805,{'body':_0x21e153}))[_0x3c77ac(0x1af)]['actions'];}async[_0x5a5813(0x343)](_0x16d9fc){const _0xd2e4f=_0x5a5813,_0x9caf68=this[_0xd2e4f(0x1ff)]()+_0xd2e4f(0x2b1);return(await this[_0xd2e4f(0x3b9)][_0xd2e4f(0x4bf)](_0x9caf68,{'body':{'requests':_0x16d9fc}}))[_0xd2e4f(0x1af)][_0xd2e4f(0x415)];}async[_0x5a5813(0x295)](_0x4c04f5){const _0x341790=_0x5a5813,_0x571e63=this[_0x341790(0x1ff)]()+'/'+_0x4c04f5[_0x341790(0x34f)]+'/role',_0x6fe460=await this[_0x341790(0x3b9)]['post'](_0x571e63,{'body':_0x4c04f5});return{'roles':_0x6fe460[_0x341790(0x1af)][_0x341790(0x4b5)],'actions':_0x6fe460[_0x341790(0x1af)][_0x341790(0x14d)]};}async[_0x5a5813(0x29c)](_0x4ea3d6){const _0x373d2e=_0x5a5813,_0x24be87=this['_getAPIPrefixPath']()+_0x373d2e(0xd5);await this[_0x373d2e(0x3b9)]['delete'](_0x24be87,{'params':{'collaboratorID':_0x4ea3d6[_0x373d2e(0x2c2)],'objectID':_0x4ea3d6[_0x373d2e(0x1dd)],'unitID':_0x4ea3d6['unitID']}});}async[_0x5a5813(0x32b)](_0xd7dc9e){const _0x4facc5=_0x5a5813,_0xc53eb6=this['_getAPIPrefixPath']()+_0x4facc5(0xd5);await this[_0x4facc5(0x3b9)]['patch'](_0xc53eb6,{'body':_0xd7dc9e});}async['createCollaborator'](_0x1091d9){const _0x29f5f7=_0x5a5813,_0x134d91=this['_getAPIPrefixPath']()+_0x29f5f7(0xd5);await this['_HTTPService'][_0x29f5f7(0x4bf)](_0x134d91,{'body':_0x1091d9});}async[_0x5a5813(0x16e)](_0x16d2ec){const _0x42bd8a=_0x5a5813,_0x5a863b=this['_getAPIPrefixPath']()+_0x42bd8a(0xd5);return(await this[_0x42bd8a(0x3b9)]['get'](_0x5a863b,{'params':{'objectID':_0x16d2ec['objectID'],'unitID':_0x16d2ec['unitID']}}))[_0x42bd8a(0x1af)][_0x42bd8a(0xdf)];}async['putCollaborators'](_0x59e0e5){const _0x4d2472=_0x5a5813,_0x5ef055=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x4d2472(0x3b9)][_0x4d2472(0x3c4)](_0x5ef055,{'body':_0x59e0e5});}},exports[_0x5a5813(0x46a)]=an([_t(0x0,a[_0x5a5813(0x9b)](w[_0x5a5813(0x1fd)])),_t(0x1,a[_0x5a5813(0x9b)](a[_0x5a5813(0x341)]))],exports[_0x5a5813(0x46a)]);var ln=Object[_0x5a5813(0x40e)],hn=Object['getOwnPropertyDescriptor'],_n=(_0xfd1bc8,_0x3f2351,_0x106a70,_0x1a2b20)=>{const _0x38bb94=_0x5a5813;for(var _0x463fd4=_0x1a2b20>0x1?void 0x0:_0x1a2b20?hn(_0x3f2351,_0x106a70):_0x3f2351,_0x57337d=_0xfd1bc8[_0x38bb94(0x492)]-0x1,_0x2ed92a;_0x57337d>=0x0;_0x57337d--)(_0x2ed92a=_0xfd1bc8[_0x57337d])&&(_0x463fd4=(_0x1a2b20?_0x2ed92a(_0x3f2351,_0x106a70,_0x463fd4):_0x2ed92a(_0x463fd4))||_0x463fd4);return _0x1a2b20&&_0x463fd4&&ln(_0x3f2351,_0x106a70,_0x463fd4),_0x463fd4;},un=(_0x3b40c9,_0x4d2c57)=>(_0x23dcd7,_0x22bd63)=>_0x4d2c57(_0x23dcd7,_0x22bd63,_0x3b40c9);let be=class{constructor(_0x29e544){const _0x35009d=_0x5a5813;this[_0x35009d(0x1d2)]=_0x29e544,this['_initRequestHeader']();}[_0x5a5813(0xec)](){const _0x4c5f56=_0x5a5813;this[_0x4c5f56(0x1d2)][_0x4c5f56(0x165)]({'interceptor':(_0x504165,_0x176119)=>{const _0x4e5b3b=_0x4c5f56,_0x3fdc48=_0x504165['headers'],_0x363388=qt[_0x4e5b3b(0x431)]();return _0x363388&&_0x3fdc48[_0x4e5b3b(0x3a9)]('x-univer-host',_0x363388),_0x176119(_0x504165);}});}};be=_n([un(0x0,a[_0x5a5813(0x9b)](w[_0x5a5813(0x1fd)]))],be);var dn=Object[_0x5a5813(0x40e)],Sn=Object['getOwnPropertyDescriptor'],vn=(_0x34070f,_0x5f3eee,_0x5906b3,_0xc02573)=>{const _0x2387a3=_0x5a5813;for(var _0x3956f1=_0xc02573>0x1?void 0x0:_0xc02573?Sn(_0x5f3eee,_0x5906b3):_0x5f3eee,_0x3db217=_0x34070f[_0x2387a3(0x492)]-0x1,_0x4f30ca;_0x3db217>=0x0;_0x3db217--)(_0x4f30ca=_0x34070f[_0x3db217])&&(_0x3956f1=(_0xc02573?_0x4f30ca(_0x5f3eee,_0x5906b3,_0x3956f1):_0x4f30ca(_0x3956f1))||_0x3956f1);return _0xc02573&&_0x3956f1&&dn(_0x5f3eee,_0x5906b3,_0x3956f1),_0x3956f1;},He=(_0x59b3c0,_0x200e39)=>(_0x5a95f,_0x7b5b22)=>_0x200e39(_0x5a95f,_0x7b5b22,_0x59b3c0);const mn=[_0x5a5813(0x12a),_0x5a5813(0x258),_0x5a5813(0x2d6),_0x5a5813(0xb0),_0x5a5813(0x221)],gn=0x5*0x400*0x400,fn=_0x5a5813(0x2a7),In=_0x5a5813(0x4b6),pn=_0x5a5813(0x139),Cn=_0x5a5813(0x436);exports[_0x5a5813(0x1d9)]=class{constructor(_0x230d74,_0x3a5ed2,_0x137314){const _0x38ef78=_0x5a5813;u(this,_0x38ef78(0x2b0),0x0),u(this,'_change$',new v[(_0x38ef78(0x98))]()),u(this,_0x38ef78(0x151),this['_change$']),u(this,_0x38ef78(0x417),new Map()),(this[_0x38ef78(0x1d2)]=_0x230d74,this[_0x38ef78(0x36e)]=_0x3a5ed2,this[_0x38ef78(0x15d)]=_0x137314);}['setWaitCount'](_0x32447b){const _0x3cee9c=_0x5a5813;this[_0x3cee9c(0x2b0)]=_0x32447b,this[_0x3cee9c(0x23f)]['next'](_0x32447b);}[_0x5a5813(0x134)](_0x361979,_0xd72221){const _0x5da42b=_0x5a5813;if(_0xd72221===j['ImageSourceType']['BASE64']){const _0x151685=new Image();return _0x151685['src']=_0x361979,_0x151685;}return this[_0x5da42b(0x417)][_0x5da42b(0x4a8)](_0x361979);}[_0x5a5813(0x25f)](_0x553bff,_0x47a33c,_0x3b29f7){const _0x3cd6de=_0x5a5813;_0x47a33c===j[_0x3cd6de(0x233)][_0x3cd6de(0x2e9)]||_0x3b29f7==null||this[_0x3cd6de(0x417)][_0x3cd6de(0x3a9)](_0x553bff,_0x3b29f7);}async[_0x5a5813(0xa5)](_0x2bb18f){const _0x4054c8=_0x5a5813;try{const _0x204ede=this['_replaceFileID'](this[_0x4054c8(0x223)](),''+_0x2bb18f),_0x44f7ed=(await this[_0x4054c8(0x1d2)][_0x4054c8(0x4a8)](_0x204ede))[_0x4054c8(0x1af)];if(_0x44f7ed[_0x4054c8(0x122)]&&_0x44f7ed['error']['code']===Et['OK']){const _0x451fed=new URL(_0x44f7ed['url'],this[_0x4054c8(0x481)]())[_0x4054c8(0x382)]();return Promise[_0x4054c8(0x332)](_0x451fed);}return Promise[_0x4054c8(0xa4)](_0x44f7ed['error']);}catch(_0x29b5fc){return Promise[_0x4054c8(0xa4)](_0x29b5fc);}}async[_0x5a5813(0x27e)](_0x4bd562){const _0x50d2ac=_0x5a5813;let _0x5a7628='';if(!mn[_0x50d2ac(0x2d9)](_0x4bd562[_0x50d2ac(0x41d)]))return this[_0x50d2ac(0x402)](),Promise['reject'](new Error(j[_0x50d2ac(0xea)]['ERROR_IMAGE_TYPE']));if(_0x4bd562['size']>gn)return this[_0x50d2ac(0x402)](),Promise[_0x50d2ac(0xa4)](new Error(j[_0x50d2ac(0xea)][_0x50d2ac(0x8d)]));try{const _0x5d37bb=new FormData();_0x5d37bb['append'](_0x50d2ac(0x49d),_0x4bd562);const _0x584a84=this['_univerInstanceService'][_0x50d2ac(0x33e)](),_0x1951b0=_0x584a84==null?void 0x0:_0x584a84[_0x50d2ac(0x488)]();if(!_0x1951b0)throw new Error(_0x50d2ac(0x406));const _0x5ec5fa=this[_0x50d2ac(0x1f7)]()+'?size='+_0x4bd562[_0x50d2ac(0xa1)][_0x50d2ac(0x382)]()+_0x50d2ac(0x40f)+bt['UnitEmbedded']+_0x50d2ac(0x216)+encodeURIComponent(_0x1951b0),_0x7fa193=await(await fetch(_0x5ec5fa,{'method':'POST','body':_0x5d37bb}))[_0x50d2ac(0xde)]();if(typeof _0x7fa193['FileId']!=_0x50d2ac(0x16d))return this['_decreaseWaiting'](),Promise[_0x50d2ac(0xa4)](new Error(j[_0x50d2ac(0xea)][_0x50d2ac(0x101)]));_0x5a7628=_0x7fa193[_0x50d2ac(0x32d)];}catch{return this[_0x50d2ac(0x402)](),Promise[_0x50d2ac(0xa4)](new Error(j[_0x50d2ac(0xea)]['ERROR_IMAGE']));}return new Promise((_0x257ead,_0xb5eb08)=>{const _0x4b268d=_0x50d2ac,_0x1f4ec7=new FileReader();_0x1f4ec7[_0x4b268d(0x413)](_0x4bd562),_0x1f4ec7['onload']=_0x53ea95=>{const _0x5c39e1=_0x4b268d;var _0x3585f6;const _0x1625f=(_0x3585f6=_0x53ea95[_0x5c39e1(0x189)])==null?void 0x0:_0x3585f6[_0x5c39e1(0x441)];if(_0x1625f==null){this['_decreaseWaiting'](),_0xb5eb08(new Error(j[_0x5c39e1(0xea)][_0x5c39e1(0x101)]));return;}const _0x3e4ba7=a[_0x5c39e1(0x17c)][_0x5c39e1(0x330)](0x6);_0x257ead({'imageId':_0x3e4ba7,'imageSourceType':j[_0x5c39e1(0x233)][_0x5c39e1(0x179)],'source':_0x5a7628,'base64Cache':_0x1625f,'status':j[_0x5c39e1(0xea)][_0x5c39e1(0x385)]}),this[_0x5c39e1(0x402)]();};});}[_0x5a5813(0x1f7)](){const _0x1f27a4=_0x5a5813;var _0x38ceb8,_0xca130e;const _0x1d3ba6=this[_0x1f27a4(0x36e)][_0x1f27a4(0x322)](fn),_0x4e1476=this[_0x1f27a4(0x36e)][_0x1f27a4(0x322)]($);return(_0xca130e=(_0x38ceb8=_0x4e1476==null?void 0x0:_0x4e1476[_0x1f27a4(0x22a)])!=null?_0x38ceb8:_0x1d3ba6)!=null?_0xca130e:In;}[_0x5a5813(0x223)](){const _0x2cadd5=_0x5a5813;var _0x4bdc88,_0x4cb83e;const _0x5d3eab=this[_0x2cadd5(0x36e)]['getConfig'](pn),_0x136437=this[_0x2cadd5(0x36e)][_0x2cadd5(0x322)]($);return(_0x4cb83e=(_0x4bdc88=_0x136437==null?void 0x0:_0x136437['signUrlServerUrl'])!=null?_0x4bdc88:_0x5d3eab)!=null?_0x4cb83e:Cn;}[_0x5a5813(0x481)](){const _0xd3ef03=_0x5a5813;var _0x4800bf;const _0x102c7f=this[_0xd3ef03(0x36e)]['getConfig']($);return(_0x4800bf=_0x102c7f==null?void 0x0:_0x102c7f[_0xd3ef03(0x369)])!=null?_0x4800bf:location['origin'];}[_0x5a5813(0x230)](_0x1ee470,_0x365533){return _0x1ee470['replace']('{fileID}',_0x365533);}[_0x5a5813(0x402)](){const _0x4c5613=_0x5a5813;this[_0x4c5613(0x2b0)]-=0x1,this[_0x4c5613(0x23f)]['next'](this[_0x4c5613(0x2b0)]);}},exports['ImageIoService']=vn([He(0x0,a[_0x5a5813(0x9b)](w['HTTPService'])),He(0x1,a[_0x5a5813(0x341)]),He(0x2,a[_0x5a5813(0x9b)](a[_0x5a5813(0x411)]))],exports[_0x5a5813(0x1d9)]);var En=Object['defineProperty'],bn=Object[_0x5a5813(0x3b4)],Tn=(_0x5ef590,_0x5a2e1a,_0x31f2e6,_0x50ba1a)=>{const _0x16c5fe=_0x5a5813;for(var _0x1867b8=_0x50ba1a>0x1?void 0x0:_0x50ba1a?bn(_0x5a2e1a,_0x31f2e6):_0x5a2e1a,_0x366473=_0x5ef590[_0x16c5fe(0x492)]-0x1,_0x26719d;_0x366473>=0x0;_0x366473--)(_0x26719d=_0x5ef590[_0x366473])&&(_0x1867b8=(_0x50ba1a?_0x26719d(_0x5a2e1a,_0x31f2e6,_0x1867b8):_0x26719d(_0x1867b8))||_0x1867b8);return _0x50ba1a&&_0x1867b8&&En(_0x5a2e1a,_0x31f2e6,_0x1867b8),_0x1867b8;},_e=(_0x22f35f,_0x2346c4)=>(_0x1f1296,_0x1a5a07)=>_0x2346c4(_0x1f1296,_0x1a5a07,_0x22f35f);let Te=class extends a[_0x5a5813(0x18f)]{constructor(_0x3189cf,_0x606b,_0x515e3b,_0x1d2236,_0x31a9f5){const _0x14a15b=_0x5a5813;super(),this[_0x14a15b(0x33a)]=_0x3189cf,this[_0x14a15b(0x15d)]=_0x606b,this['_permissionService']=_0x515e3b,this['_collaborationSessionService']=_0x1d2236,this[_0x14a15b(0x36a)]=_0x31a9f5,this[_0x14a15b(0x2af)](),this[_0x14a15b(0x4b9)]();}[_0x5a5813(0x4b9)](){const _0x12065d=_0x5a5813,_0x38ae85=async _0x1dc175=>{const _0x1c9029=_0x14f1;(await this[_0x1c9029(0x260)][_0x1c9029(0x44c)](_0x1dc175))[_0x1c9029(0x19f)]['pipe'](E[_0x1c9029(0x8b)](_0x1f48fa=>_0x1f48fa[_0x1c9029(0x25e)]===_[_0x1c9029(0x409)][_0x1c9029(0xba)]),E[_0x1c9029(0x460)](this[_0x1c9029(0x207)]))[_0x1c9029(0x11c)](_0x404b2c=>{const _0x35e12c=_0x1c9029,_0x31d633=_0x404b2c,{reason:_0x457eba}=_0x31d633[_0x35e12c(0x9c)];this[_0x35e12c(0x33a)][_0x35e12c(0x4a8)](A[_0x35e12c(0x48f)])[_0x35e12c(0x29d)]({'type':J[_0x35e12c(0x359)][_0x35e12c(0x1ae)],'content':this[_0x35e12c(0x36a)]['t'](_0x35e12c(0x1cf))+'('+_0x457eba+')'}),this['_permissionService'][_0x35e12c(0x3ce)](new C['WorkbookEditablePermission'](_0x1dc175)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x1dc175);});};v[_0x12065d(0x23b)](this[_0x12065d(0x15d)][_0x12065d(0x429)](a[_0x12065d(0x48a)][_0x12065d(0xe6)]),this[_0x12065d(0x15d)][_0x12065d(0x429)](a[_0x12065d(0x48a)][_0x12065d(0x2fe)]))[_0x12065d(0x2dd)](E[_0x12065d(0x29a)](_0x1b2097=>_0x1b2097[_0x12065d(0x488)]()),E[_0x12065d(0x8b)](_0x3074b2=>!a[_0x12065d(0x20e)](_0x3074b2)),E['takeUntil'](this['dispose$']))[_0x12065d(0x11c)](_0x137531=>{_0x38ae85(_0x137531);});}[_0x5a5813(0x2af)](){const _0x45b3eb=_0x5a5813,_0xc4aecb=async _0x228999=>{const _0x456d44=_0x14f1;(await this[_0x456d44(0x260)]['requireSession'](_0x228999))[_0x456d44(0x19f)][_0x456d44(0x2dd)](E[_0x456d44(0x8b)](_0x4d1061=>_0x4d1061['eventID']===_[_0x456d44(0x409)][_0x456d44(0x43f)]),E[_0x456d44(0x460)](this[_0x456d44(0x207)]))[_0x456d44(0x11c)](_0xa1f6ff=>{const _0x56c6b=_0x456d44,_0xcb90e9=_0xa1f6ff,{objectId:_0x20fac1}=_0xcb90e9['data'],_0x4c5696=this[_0x56c6b(0x33a)][_0x56c6b(0x4a8)](ie[_0x56c6b(0x2c6)]);_0x20fac1===_0x228999?_0x4c5696[_0x56c6b(0x391)](_0x228999):_0x4c5696['refreshPermission'](_0x228999,_0x20fac1);});};v[_0x45b3eb(0x23b)](this[_0x45b3eb(0x15d)][_0x45b3eb(0x429)](a[_0x45b3eb(0x48a)]['UNIVER_SHEET']),this[_0x45b3eb(0x15d)][_0x45b3eb(0x429)](a['UniverInstanceType'][_0x45b3eb(0x2fe)]))[_0x45b3eb(0x2dd)](E[_0x45b3eb(0x29a)](_0x3d7310=>_0x3d7310[_0x45b3eb(0x488)]()),E[_0x45b3eb(0x8b)](_0x3845a9=>!a[_0x45b3eb(0x20e)](_0x3845a9)),E[_0x45b3eb(0x460)](this['dispose$']))[_0x45b3eb(0x11c)](_0x5ece71=>{_0xc4aecb(_0x5ece71);});}};Te=Tn([_e(0x0,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),_e(0x1,a['IUniverInstanceService']),_e(0x2,a['IPermissionService']),_e(0x3,a[_0x5a5813(0x9b)](exports[_0x5a5813(0x1e5)])),_e(0x4,a[_0x5a5813(0x9b)](a[_0x5a5813(0x20b)]))],Te);var Rn=Object[_0x5a5813(0x40e)],On=Object['getOwnPropertyDescriptor'],Dn=(_0x40dc8e,_0x2d4b25,_0x426c5e,_0x432336)=>{const _0x304cd9=_0x5a5813;for(var _0x3d2eee=_0x432336>0x1?void 0x0:_0x432336?On(_0x2d4b25,_0x426c5e):_0x2d4b25,_0x322618=_0x40dc8e[_0x304cd9(0x492)]-0x1,_0x1afe0f;_0x322618>=0x0;_0x322618--)(_0x1afe0f=_0x40dc8e[_0x322618])&&(_0x3d2eee=(_0x432336?_0x1afe0f(_0x2d4b25,_0x426c5e,_0x3d2eee):_0x1afe0f(_0x3d2eee))||_0x3d2eee);return _0x432336&&_0x3d2eee&&Rn(_0x2d4b25,_0x426c5e,_0x3d2eee),_0x3d2eee;},ut=(_0x385d24,_0x232c89)=>(_0x8ddbae,_0xeb205a)=>_0x232c89(_0x8ddbae,_0xeb205a,_0x385d24);exports[_0x5a5813(0xff)]=class{constructor(_0x59c6a6,_0x239b2a){const _0x3db51b=_0x5a5813;this[_0x3db51b(0x36e)]=_0x59c6a6,this[_0x3db51b(0x1d2)]=_0x239b2a;}async['getUnitOnRev'](_0x2e02ca,_0x43bdbc){const _0x8f58e4=_0x5a5813;var _0x55efd0;const {unitID:_0x3f11a1,type:_0x30fa6c,revision:_0xf3729f=0x0}=_0x43bdbc,_0x5c0a70=this[_0x8f58e4(0x1bd)]()+'/'+_0x30fa6c+_0x8f58e4(0x2cf)+_0x3f11a1+'/rev/'+_0xf3729f,_0x25b0c2=(await this['_httpService'][_0x8f58e4(0x4a8)](_0x5c0a70))[_0x8f58e4(0x1af)],_0x499c54=(_0x55efd0=_0x25b0c2[_0x8f58e4(0x440)])==null?void 0x0:_0x55efd0[_0x8f58e4(0x3cb)];if(_0x499c54){const _0x1a142e=_0x499c54==null?void 0x0:_0x499c54['originalMeta'],_0x1165a9=_[_0x8f58e4(0x386)][_0x8f58e4(0xa6)](_['b64DecodeUnicode'](_0x1a142e));_0x499c54[_0x8f58e4(0x1a2)]=_0x1165a9,Object['entries'](_0x499c54[_0x8f58e4(0x320)])['forEach'](([,_0x2cbb65])=>{const _0x223501=_0x8f58e4,_0x357bd3=_0x2cbb65['originalMeta'],_0x2f4e47=_[_0x223501(0x386)]['encode'](_[_0x223501(0x365)](_0x357bd3));_0x2cbb65[_0x223501(0x1a2)]=_0x2f4e47;});}return _0x25b0c2;}async[_0x5a5813(0x227)](_0x30ed54,_0x4ffb20){const _0x588f63=_0x5a5813,{unitID:_0x7e5c55,type:_0x2ebcfe,blockID:_0x2d5f9b}=_0x4ffb20,_0x28bdb2=this[_0x588f63(0x16c)]()+'/'+_0x2ebcfe+_0x588f63(0x2cf)+_0x7e5c55+'/block/'+_0x2d5f9b;return(await this[_0x588f63(0x1d2)][_0x588f63(0x4a8)](_0x28bdb2))['body'];}async['getDeserializedSheetBlock'](_0x11346b,_0x27d1b9){const _0x2ce303=_0x5a5813,{unitID:_0x10c7e3,type:_0x2cb5f8,blockID:_0x4d0776}=_0x27d1b9,_0x20c48d=this[_0x2ce303(0x16c)]()+'/block/'+_0x2cb5f8+'/unit/'+_0x10c7e3+_0x2ce303(0x232)+_0x4d0776;return(await this['_httpService'][_0x2ce303(0x4a8)](_0x20c48d))[_0x2ce303(0x1af)];}async[_0x5a5813(0x2d8)](_0x43e78c,_0x2310b6){const _0x25b860=_0x5a5813,{unitID:_0x383a80,type:_0x4705ce,from:_0x3073df,to:_0x52073c}=_0x2310b6,_0x38cf79=this[_0x25b860(0x16c)]()+'/'+_0x4705ce+'/unit/'+_0x383a80+'/fetchmissing?from='+_0x3073df+_0x25b860(0xf9)+_0x52073c;return(await this[_0x25b860(0x1d2)][_0x25b860(0x4a8)](_0x38cf79))[_0x25b860(0x1af)];}[_0x5a5813(0x1bd)](){const _0x4b5e53=_0x5a5813;var _0x2969fe;return(_0x2969fe=this['_configService'][_0x4b5e53(0x322)](St))!=null?_0x2969fe:this[_0x4b5e53(0x16c)]();}['_getAPIPrefix'](){const _0x52ce2b=_0x5a5813;var _0x42bbef,_0x4f90ba;const _0x276b26=this['_configService']['getConfig'](dt),_0x51d81a=this['_configService'][_0x52ce2b(0x322)]($);return(_0x4f90ba=(_0x42bbef=_0x51d81a==null?void 0x0:_0x51d81a['snapshotServerUrl'])!=null?_0x42bbef:_0x276b26)!=null?_0x4f90ba:zt;}async[_0x5a5813(0x228)](_0x218c29,_0x3fff19){const _0x3f30a5=_0x5a5813,_0x4ccc81=_0x3f30a5(0x491)+_0x3fff19[_0x3f30a5(0x41d)]+'/unit/'+_0x3fff19['unitID']+_0x3f30a5(0x2ce);return(await this['_httpService']['get'](_0x4ccc81,{'params':{'resourceId':JSON['stringify'](_0x3fff19['resourceIDs'])}}))[_0x3f30a5(0x1af)];}[_0x5a5813(0x45d)](){const _0x46033f=_0x5a5813;throw new Error(_0x46033f(0x4b4));}[_0x5a5813(0x42c)](){const _0x3693ed=_0x5a5813;throw new Error(_0x3693ed(0x4b4));}['saveChangeset'](){const _0xfad600=_0x5a5813;throw new Error(_0xfad600(0x4b4));}[_0x5a5813(0x22d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5a5813(0x138)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports['SnapshotServerOverHTTPService']=Dn([ut(0x0,a['IConfigService']),ut(0x1,a[_0x5a5813(0x9b)](w[_0x5a5813(0x1fd)]))],exports[_0x5a5813(0xff)]);var yn=Object[_0x5a5813(0x40e)],Un=Object[_0x5a5813(0x3b4)],Pn=(_0xa4b837,_0xe9dc74,_0x3f0219,_0x413afd)=>{const _0x3e8091=_0x5a5813;for(var _0x4f1bb2=_0x413afd>0x1?void 0x0:_0x413afd?Un(_0xe9dc74,_0x3f0219):_0xe9dc74,_0x4bd731=_0xa4b837[_0x3e8091(0x492)]-0x1,_0x3607ba;_0x4bd731>=0x0;_0x4bd731--)(_0x3607ba=_0xa4b837[_0x4bd731])&&(_0x4f1bb2=(_0x413afd?_0x3607ba(_0xe9dc74,_0x3f0219,_0x4f1bb2):_0x3607ba(_0x4f1bb2))||_0x4f1bb2);return _0x413afd&&_0x4f1bb2&&yn(_0xe9dc74,_0x3f0219,_0x4f1bb2),_0x4f1bb2;},ue=(_0x54ae80,_0x5b7e52)=>(_0x1f1331,_0x21698c)=>_0x5b7e52(_0x1f1331,_0x21698c,_0x54ae80);let We=class extends a[_0x5a5813(0x1b9)]{constructor(_0x26de12,_0x136894,_0x44c44f,_0x82d7e7,_0x3af0e1){const _0x8610b6=_0x5a5813;super(_0x26de12,_0x136894,_0x44c44f),this[_0x8610b6(0x3c9)]=_0x82d7e7,this['_logService']=_0x3af0e1;}[_0x5a5813(0x27d)](_0x19858d,_0x4e5a0e){const _0x1ff2ec=_0x5a5813,_0x7d4f9=this[_0x1ff2ec(0x163)](_0x19858d);if(_0x7d4f9)try{const _0x4b87df=this[_0x1ff2ec(0x143)](_0x7d4f9,_0x4e5a0e);this[_0x1ff2ec(0x1f1)](_0x19858d,_0x4b87df);}catch(_0x3d3b7){this['_logService']['error'](_0x1ff2ec(0x24c),_0x3d3b7),this[_0x1ff2ec(0x16a)](_0x19858d);}const _0xc67957=this[_0x1ff2ec(0x3d6)](_0x19858d);if(_0xc67957)try{const _0x50842b=this[_0x1ff2ec(0x143)](_0xc67957,_0x4e5a0e);this[_0x1ff2ec(0x455)](_0x19858d,_0x50842b);}catch(_0x38e50a){this[_0x1ff2ec(0x452)]['error'](_0x38e50a),this['_clearRedo'](_0x19858d);}}[_0x5a5813(0x16a)](_0x109dad){const _0x71d416=_0x5a5813,_0xb15689=this['_getUndoStack'](_0x109dad);_0xb15689&&(_0xb15689[_0x71d416(0x492)]=0x0,this['_updateStatus']());}[_0x5a5813(0x2b6)](_0x3f70c6){const _0x4d0352=_0x5a5813,_0x169bcc=this[_0x4d0352(0x3d6)](_0x3f70c6);_0x169bcc&&(_0x169bcc[_0x4d0352(0x492)]=0x0,this['_updateStatus']());}[_0x5a5813(0x1f1)](_0x1a219a,_0x231819){const _0x26df23=_0x5a5813;this[_0x26df23(0x3ea)][_0x26df23(0x3a9)](_0x1a219a,_0x231819),this[_0x26df23(0xcd)]();}['_substituteRedoStack'](_0x4983ef,_0x4edc4c){const _0x386d35=_0x5a5813;this[_0x386d35(0xe2)][_0x386d35(0x3a9)](_0x4983ef,_0x4edc4c),this[_0x386d35(0xcd)]();}[_0x5a5813(0x143)](_0xd73bc,_0x4f4e3f){const _0x32bfb9=_0x5a5813,_0x38e8c9=[];let _0x4c9551=_0x4f4e3f,_0x45433a=_0x4f4e3f;for(let _0x3fbe4e=_0xd73bc[_0x32bfb9(0x492)]-0x1;_0x3fbe4e>=0x0;_0x3fbe4e--){const {unitID:_0x1bdc3c,undoMutations:_0x2fb4bc,redoMutations:_0x57f34e}=_0xd73bc[_0x3fbe4e],_0x2e69a8=this['_transformService'][_0x32bfb9(0x20f)](_0x4c9551,_0x2fb4bc),_0x5ca4c0=this[_0x32bfb9(0x3c9)]['transformMutationsWithChangeset'](_0x45433a,_0x57f34e);if(_[_0x32bfb9(0x1b5)](_0x2e69a8)||_[_0x32bfb9(0x1b5)](_0x5ca4c0)){this[_0x32bfb9(0x452)][_0x32bfb9(0x122)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x2e69a8,_0x5ca4c0);break;}_0x4c9551=_0x2e69a8[_0x32bfb9(0x17f)],_0x45433a=_0x5ca4c0['c1Prime'],_0x38e8c9[_0x32bfb9(0x37f)]({'unitID':_0x1bdc3c,'undoMutations':_0x2e69a8[_0x32bfb9(0x472)],'redoMutations':_0x5ca4c0[_0x32bfb9(0x472)]});}return _0x38e8c9[_0x32bfb9(0x131)]();}};We=Pn([ue(0x0,a[_0x5a5813(0x411)]),ue(0x1,a[_0x5a5813(0x3cc)]),ue(0x2,a[_0x5a5813(0x461)]),ue(0x3,_[_0x5a5813(0xa0)]),ue(0x4,a['ILogService'])],We);class Ht extends a[_0x5a5813(0x18f)]{constructor(){const _0x49b2bf=_0x5a5813;super(),u(this,_0x49b2bf(0x1e8)),this[_0x49b2bf(0x1e8)]=v[_0x49b2bf(0xd4)](window,_0x49b2bf(0xf5))[_0x49b2bf(0x2dd)](v[_0x49b2bf(0x460)](this[_0x49b2bf(0x207)]),v['shareReplay'](0x1),v[_0x49b2bf(0x203)](void 0x0));}[_0x5a5813(0x25a)](_0x4b5f45,_0x3faf0e,_0x59eee2=!0x1){const _0x2b012c=_0x5a5813,_0xaf393c=new URL(window[_0x2b012c(0x319)]['href']);_0xaf393c['searchParams'][_0x2b012c(0x3a9)](_0x4b5f45,_0x3faf0e),_0x59eee2?window[_0x2b012c(0x1c9)]['replaceState']('','',_0xaf393c[_0x2b012c(0x382)]()):window[_0x2b012c(0x1c9)][_0x2b012c(0x2e0)]('','',_0xaf393c[_0x2b012c(0x382)]());}[_0x5a5813(0x35a)](_0x179c7d,_0x171984=!0x1){const _0x378188=_0x5a5813,_0x2e100f=new URL(window[_0x378188(0x319)]['href']);_0x2e100f[_0x378188(0x21a)][_0x378188(0x1a3)](_0x179c7d),_0x171984?window['history']['replaceState']('','',_0x2e100f['toString']()):window['history']['pushState']('','',_0x2e100f[_0x378188(0x382)]());}['getParam'](_0x35b9e8){const _0x57db9e=_0x5a5813;var _0x85dec;return(_0x85dec=new URL(window[_0x57db9e(0x319)]['href'])[_0x57db9e(0x21a)][_0x57db9e(0x4a8)](_0x35b9e8))!=null?_0x85dec:void 0x0;}}var xt=Object['defineProperty'],wn=Object[_0x5a5813(0x3b4)],Nn=(_0x528430,_0x33bdfd,_0x5c1c38)=>_0x33bdfd in _0x528430?xt(_0x528430,_0x33bdfd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c1c38}):_0x528430[_0x33bdfd]=_0x5c1c38,Mn=(_0x5019f0,_0x289ed7,_0x417d21,_0x2582b7)=>{const _0x4ba691=_0x5a5813;for(var _0x23401c=_0x2582b7>0x1?void 0x0:_0x2582b7?wn(_0x289ed7,_0x417d21):_0x289ed7,_0x43b5b9=_0x5019f0[_0x4ba691(0x492)]-0x1,_0x2addd7;_0x43b5b9>=0x0;_0x43b5b9--)(_0x2addd7=_0x5019f0[_0x43b5b9])&&(_0x23401c=(_0x2582b7?_0x2addd7(_0x289ed7,_0x417d21,_0x23401c):_0x2addd7(_0x23401c))||_0x23401c);return _0x2582b7&&_0x23401c&&xt(_0x289ed7,_0x417d21,_0x23401c),_0x23401c;},ge=(_0x499b23,_0x415925)=>(_0x4ac696,_0x45b146)=>_0x415925(_0x4ac696,_0x45b146,_0x499b23),An=(_0x4bd326,_0xf9f0e1,_0x3caf70)=>Nn(_0x4bd326,_0xf9f0e1+'',_0x3caf70);const Ln=_0x5a5813(0xee);exports['UniverCollaborationClientPlugin']=class extends a['Plugin']{constructor(_0x1aca1e=os,_0x4b34ea,_0x233478,_0x4cfc0f,_0x124c0e){const _0x5bc19e=_0x5a5813;super(),this['_config']=_0x1aca1e,this[_0x5bc19e(0x452)]=_0x4b34ea,this[_0x5bc19e(0x135)]=_0x233478,this[_0x5bc19e(0x33a)]=_0x4cfc0f,this[_0x5bc19e(0x36e)]=_0x124c0e;const {..._0x5e103a}=this[_0x5bc19e(0x290)];this[_0x5bc19e(0x36e)]['setConfig']($,_0x5e103a);}[_0x5a5813(0x241)](){const _0xea45e7=_0x5a5813;this[_0xea45e7(0x206)](),this[_0xea45e7(0x161)]();}[_0x5a5813(0x377)](){a['touchDependencies'](this['_injector'],[[Ce]]);}[_0x5a5813(0xb4)](){const _0x470735=_0x5a5813;this[_0x470735(0x457)]();}[_0x5a5813(0x206)](){const _0xd2dd88=_0x5a5813;var _0x2ed2bb,_0x3aefc3,_0x552d65,_0x271663;this[_0xd2dd88(0x33a)]['has'](a[_0xd2dd88(0x34d)])&&this['_logService'][_0xd2dd88(0x122)](_0xd2dd88(0x364),_0xd2dd88(0x2b4));const _0x164142=[[a[_0xd2dd88(0x34d)],{'useClass':We}],[exports[_0xd2dd88(0x1e5)]],[ze],[Ze,{'useClass':Ht}],[exports['MemberService']],[exports[_0xd2dd88(0x112)]],[w['WebSocketService']],[Ie],[pe],[fe],[Xe],[Ee],[be],[Ke],[Te],[Ye,{'useClass':(_0x3aefc3=(_0x2ed2bb=this[_0xd2dd88(0x290)])==null?void 0x0:_0x2ed2bb[_0xd2dd88(0x13d)])!=null?_0x3aefc3:exports[_0xd2dd88(0x277)]}],[_['ISnapshotServerService'],{'useClass':exports['SnapshotServerOverHTTPService']}],[a[_0xd2dd88(0xef)],{'useClass':exports['AuthzIoHttpService']}],[j[_0xd2dd88(0xd6)],{'useClass':exports[_0xd2dd88(0x1d9)]}],[exports['CollaborationController']],[exports[_0xd2dd88(0x1ef)]],[exports[_0xd2dd88(0x41b)]],[Ce],[oe]];(_0x552d65=this[_0xd2dd88(0x290)])!=null&&_0x552d65[_0xd2dd88(0x3fc)]&&_0x164142[_0xd2dd88(0x37f)]([Re,{'useClass':Hs}]),a[_0xd2dd88(0x378)](this['_injector'],a['mergeOverrideWithDependencies'](_0x164142,(_0x271663=this[_0xd2dd88(0x290)])==null?void 0x0:_0x271663[_0xd2dd88(0x158)]));}[_0x5a5813(0x457)](){const _0x33bcdb=_0x5a5813;this[_0x33bcdb(0xd3)](this[_0x33bcdb(0x135)][_0x33bcdb(0x304)](a[_0x33bcdb(0x48a)]['UNIVER_DOC'],[Be])),this[_0x33bcdb(0xd3)](this[_0x33bcdb(0x135)]['registerRenderModule'](a[_0x33bcdb(0x48a)][_0x33bcdb(0xe6)],[Ve]));}['_initDependencies'](){const _0x52e8ac=_0x5a5813;var _0x1a3c65,_0x1f7320;this[_0x52e8ac(0x33a)][_0x52e8ac(0x4a8)](w[_0x52e8ac(0x1fd)])[_0x52e8ac(0x165)]({'priority':0x14,'interceptor':w[_0x52e8ac(0x451)]({'maxParallel':0x6})}),(_0x1a3c65=this['_config'])!=null&&_0x1a3c65[_0x52e8ac(0x419)]||this[_0x52e8ac(0x33a)][_0x52e8ac(0x4a8)](exports['LocalCacheService'])[_0x52e8ac(0x301)](),(_0x1f7320=this[_0x52e8ac(0x290)])!=null&&_0x1f7320['enableAuthServer']&&a[_0x52e8ac(0x21d)](this[_0x52e8ac(0x33a)],[[Ee]]),a['touchDependencies'](this['_injector'],[[be],[oe],[exports['DataLoaderController']],[exports[_0x52e8ac(0x199)]],[exports['DesktopCollaborationStatusDisplayController']],[Te]]);}},An(exports[_0x5a5813(0x2bb)],'pluginName',Ln),exports[_0x5a5813(0x2bb)]=Mn([a[_0x5a5813(0x2fb)](_['UniverCollaborationPlugin'],w[_0x5a5813(0x229)]),ge(0x1,a['ILogService']),ge(0x2,O['IRenderManagerService']),ge(0x3,a[_0x5a5813(0x9b)](a[_0x5a5813(0x30e)])),ge(0x4,a[_0x5a5813(0x341)])],exports[_0x5a5813(0x2bb)]),exports['AUTHZ_URL_KEY']=jt,exports[_0x5a5813(0x285)]=pt,exports[_0x5a5813(0x255)]=vt,exports[_0x5a5813(0x1e0)]=D,exports['CollaborationStatusDisplay']=$t,exports['CommentService']=Ke,exports[_0x5a5813(0x29f)]=mt,exports['HEARTBEAT_TIMEOUT_KEY']=Fe,exports[_0x5a5813(0x21b)]=Ye,exports['IURLService']=Ze,exports[_0x5a5813(0x16b)]=It,exports[_0x5a5813(0x475)]=Ct,exports[_0x5a5813(0x3be)]=ft,exports[_0x5a5813(0xfe)]=Jt,exports[_0x5a5813(0x210)]=dt,exports[_0x5a5813(0x26c)]=St,exports[_0x5a5813(0x126)]=x,exports[_0x5a5813(0x167)]=wt,exports['WebURLService']=Ht,exports[_0x5a5813(0x44b)]=Tt,exports[_0x5a5813(0xf8)]=Rt;