@univerjs-pro/collaboration-client 0.4.1-experimental.20241023-bbb123f → 0.4.1-experimental.20241024-9717e6c

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 _0x519e85=_0x5923;(function(_0x4de3cc,_0x25bdde){const _0x4a46af=_0x5923,_0x273b76=_0x4de3cc();while(!![]){try{const _0x489103=-parseInt(_0x4a46af(0x2d4))/0x1*(parseInt(_0x4a46af(0x3f0))/0x2)+-parseInt(_0x4a46af(0x434))/0x3*(parseInt(_0x4a46af(0x2a0))/0x4)+parseInt(_0x4a46af(0x35c))/0x5*(-parseInt(_0x4a46af(0x208))/0x6)+-parseInt(_0x4a46af(0x1b5))/0x7+-parseInt(_0x4a46af(0x212))/0x8*(-parseInt(_0x4a46af(0x34c))/0x9)+-parseInt(_0x4a46af(0x1c3))/0xa+parseInt(_0x4a46af(0x4c5))/0xb;if(_0x489103===_0x25bdde)break;else _0x273b76['push'](_0x273b76['shift']());}catch(_0x5b50e0){_0x273b76['push'](_0x273b76['shift']());}}}(_0x257f,0x5245d));var Yt=Object[_0x519e85(0x1d9)],Kt=(_0x2648ad,_0x41fad8,_0x5beff4)=>_0x41fad8 in _0x2648ad?Yt(_0x2648ad,_0x41fad8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5beff4}):_0x2648ad[_0x41fad8]=_0x5beff4,u=(_0x2d434b,_0x2010cd,_0x4f1516)=>Kt(_0x2d434b,typeof _0x2010cd!=_0x519e85(0x48b)?_0x2010cd+'':_0x2010cd,_0x4f1516);Object[_0x519e85(0x1d9)](exports,Symbol[_0x519e85(0x306)],{'value':'Module'});const a=require(_0x519e85(0x511)),v=require(_0x519e85(0x487)),E=require('rxjs/operators'),q=require('@univerjs/design'),A=require('@univerjs/ui'),w=require(_0x519e85(0x1c0)),_=require('@univerjs-pro/collaboration'),qt=require(_0x519e85(0x2b2)),N=require(_0x519e85(0x3c4)),C=require(_0x519e85(0x27b)),D=require(_0x519e85(0x25d)),se=require(_0x519e85(0x4b5)),j=require(_0x519e85(0x4da)),et=require(_0x519e85(0x1d4)),te=require(_0x519e85(0x2b1)),P=require('react'),Xt=require(_0x519e85(0x3aa)),zt=require(_0x519e85(0x4c9)),St=_0x519e85(0x196),Jt='/universer-api/snapshot',vt=_0x519e85(0x3a8),Zt=_0x519e85(0x2e7),Qt=0x7d0,mt=_0x519e85(0x3ae),es=_0x519e85(0x2fd),gt='HEARTBEAT_INTERVAL',ts=0x7530,Ge=_0x519e85(0x1fa),ft=0x4e20,ss=0x4e20,It=_0x519e85(0x401),is=0x3,pt=_0x519e85(0x137),ns=0x3e8,Ct=_0x519e85(0x2d2),rs='/universer-api/comb',Et=_0x519e85(0x403),os=_0x519e85(0x46d);var bt=(_0x512e58=>(_0x512e58[_0x512e58[_0x519e85(0x46c)]=0x0]=_0x519e85(0x46c),_0x512e58[_0x512e58['OK']=0x1]='OK',_0x512e58[_0x512e58['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x512e58[_0x512e58['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x512e58[_0x512e58[_0x519e85(0x286)]=0x4]=_0x519e85(0x286),_0x512e58[_0x512e58[_0x519e85(0x473)]=0x5]=_0x519e85(0x473),_0x512e58[_0x512e58[_0x519e85(0x33e)]=0x6]=_0x519e85(0x33e),_0x512e58[_0x512e58[_0x519e85(0x2ee)]=0x7]=_0x519e85(0x2ee),_0x512e58[_0x512e58[_0x519e85(0x1d5)]=0x8]=_0x519e85(0x1d5),_0x512e58[_0x512e58[_0x519e85(0x4d1)]=0x9]=_0x519e85(0x4d1),_0x512e58[_0x512e58[_0x519e85(0x4be)]=0x1389]=_0x519e85(0x4be),_0x512e58[_0x512e58[_0x519e85(0x31e)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x512e58[_0x512e58[_0x519e85(0x19b)]=0x1772]=_0x519e85(0x19b),_0x512e58[_0x512e58[_0x519e85(0x133)]=0x1773]=_0x519e85(0x133),_0x512e58[_0x512e58[_0x519e85(0x53a)]=0x1b59]=_0x519e85(0x53a),_0x512e58[_0x512e58['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x519e85(0x3ce),_0x512e58[_0x512e58['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x512e58[_0x512e58[_0x519e85(0x24a)]=0x1b5c]=_0x519e85(0x24a),_0x512e58[_0x512e58[_0x519e85(0x13b)]=0x1b5d]=_0x519e85(0x13b),_0x512e58[_0x512e58[_0x519e85(0x30d)]=0x1f41]=_0x519e85(0x30d),_0x512e58[_0x512e58[_0x519e85(0x527)]=0x2329]=_0x519e85(0x527),_0x512e58[_0x512e58[_0x519e85(0x31c)]=0x232a]=_0x519e85(0x31c),_0x512e58[_0x512e58[_0x519e85(0x32e)]=0x232b]=_0x519e85(0x32e),_0x512e58[_0x512e58[_0x519e85(0x495)]=0x232c]=_0x519e85(0x495),_0x512e58[_0x512e58['LICENSE_DISTRO_REJECTED']=0x232d]=_0x519e85(0x356),_0x512e58[_0x512e58[_0x519e85(0x3fc)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x512e58[_0x512e58['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x512e58[_0x512e58['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x512e58[_0x512e58['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x519e85(0x38e),_0x512e58[_0x512e58['UNRECOGNIZED']=-0x1]=_0x519e85(0x346),_0x512e58))(bt||{}),$=(_0x549f73=>(_0x549f73[_0x549f73[_0x519e85(0x24d)]=0x0]='UNIVER_UNKNOWN',_0x549f73[_0x549f73[_0x519e85(0x33b)]=0x1]=_0x519e85(0x33b),_0x549f73[_0x549f73[_0x519e85(0x2ed)]=0x2]='UNIVER_SHEET',_0x549f73[_0x549f73['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0x549f73[_0x549f73[_0x519e85(0x13c)]=0x4]=_0x519e85(0x13c),_0x549f73[_0x549f73[_0x519e85(0x346)]=-0x1]=_0x519e85(0x346),_0x549f73))($||{}),b=(_0x193fc2=>(_0x193fc2[_0x193fc2[_0x519e85(0x54b)]=0x0]=_0x519e85(0x54b),_0x193fc2[_0x193fc2[_0x519e85(0x2e8)]=0x1]=_0x519e85(0x2e8),_0x193fc2[_0x193fc2[_0x519e85(0x4f1)]=0x2]=_0x519e85(0x4f1),_0x193fc2[_0x193fc2[_0x519e85(0x36b)]=0x3]=_0x519e85(0x36b),_0x193fc2[_0x193fc2[_0x519e85(0x31b)]=0x4]=_0x519e85(0x31b),_0x193fc2[_0x193fc2[_0x519e85(0x391)]=0x5]=_0x519e85(0x391),_0x193fc2[_0x193fc2[_0x519e85(0x41e)]=0x6]='RECV',_0x193fc2[_0x193fc2['UNRECOGNIZED']=-0x1]=_0x519e85(0x346),_0x193fc2))(b||{}),Ye=(_0x1bb44b=>(_0x1bb44b[_0x1bb44b[_0x519e85(0x428)]=0x0]='UNKNOWN_CODE',_0x1bb44b[_0x1bb44b['OK']=0x1]='OK',_0x1bb44b[_0x1bb44b['FAIL']=0x2]=_0x519e85(0x2cb),_0x1bb44b[_0x1bb44b[_0x519e85(0x346)]=-0x1]=_0x519e85(0x346),_0x1bb44b))(Ye||{}),Tt=(_0x578884=>(_0x578884[_0x578884[_0x519e85(0x41f)]=0x0]=_0x519e85(0x41f),_0x578884[_0x578884[_0x519e85(0x44c)]=0x1]=_0x519e85(0x44c),_0x578884[_0x578884[_0x519e85(0x4d0)]=0x2]=_0x519e85(0x4d0),_0x578884[_0x578884[_0x519e85(0x353)]=0x3]='UnitEmbedded',_0x578884[_0x578884[_0x519e85(0x305)]=0x4]=_0x519e85(0x305),_0x578884[_0x578884[_0x519e85(0x346)]=-0x1]=_0x519e85(0x346),_0x578884))(Tt||{});const L=_0x519e85(0x12f),as={};function Rt(_0x1b47eb){const _0x1944b0=_0x519e85;var _0x53aede,_0x433925,_0x20c5dd,_0x5142c0,_0x471ea3;const _0x385142=_0x1b47eb['data'],_0x7b8a3b=JSON['parse'](_0x385142);switch(_0x7b8a3b[_0x1944b0(0x289)]){case b[_0x1944b0(0x391)]:case b['HELLO']:{const _0x16cd9b=_0x7b8a3b[_0x1944b0(0x263)];return{..._0x7b8a3b,'data':_0x16cd9b,'cmd':_0x7b8a3b[_0x1944b0(0x289)]};}case b[_0x1944b0(0x4f1)]:{const _0x367258=_0x7b8a3b['joinRsp'];return{..._0x7b8a3b,'data':_0x367258,'cmd':_0x7b8a3b[_0x1944b0(0x289)]};}case b[_0x1944b0(0x41e)]:{const _0x26739c=_0x7b8a3b[_0x1944b0(0x34f)];switch(_0x26739c['eventID']){case _[_0x1944b0(0x3f2)][_0x1944b0(0x3b5)]:return{..._0x7b8a3b,'data':{..._0x26739c,'data':(_0x53aede=_0x26739c[_0x1944b0(0x3fe)])==null?void 0x0:_0x53aede['cs']},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _['CollaborationEvent'][_0x1944b0(0x3bb)]:return{..._0x7b8a3b,'data':{..._0x26739c,'data':(_0x433925=_0x26739c['csAckEvent'])==null?void 0x0:_0x433925['cs']},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _[_0x1944b0(0x3f2)][_0x1944b0(0x316)]:return{..._0x7b8a3b,'data':{..._0x26739c,'data':(_0x20c5dd=_0x26739c[_0x1944b0(0x461)])==null?void 0x0:_0x20c5dd['cs']},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _[_0x1944b0(0x3f2)]['CHANGESET_REJ']:return{..._0x7b8a3b,'data':{..._0x26739c,'data':(_0x5142c0=_0x26739c[_0x1944b0(0x448)])==null?void 0x0:_0x5142c0['cs']},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _[_0x1944b0(0x3f2)][_0x1944b0(0x225)]:return{..._0x7b8a3b,'data':{..._0x26739c,'data':(_0x471ea3=_0x26739c[_0x1944b0(0x365)])==null?void 0x0:_0x471ea3['cs']},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _[_0x1944b0(0x3f2)][_0x1944b0(0x2c8)]:return{..._0x7b8a3b,'data':{..._0x26739c,'data':_0x26739c['updateCursorEvent']},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _['CollaborationEvent']['USERS_ENTER']:return{..._0x7b8a3b,'data':{..._0x26739c,'data':_0x26739c[_0x1944b0(0x2a9)]},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _[_0x1944b0(0x3f2)][_0x1944b0(0x28b)]:return{..._0x7b8a3b,'data':{..._0x26739c,'data':_0x26739c[_0x1944b0(0x41c)]},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _[_0x1944b0(0x3f2)][_0x1944b0(0x2d7)]:return{..._0x7b8a3b,'data':{..._0x26739c,'data':_0x26739c[_0x1944b0(0x36e)]},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _['CollaborationEvent'][_0x1944b0(0x384)]:case _['CollaborationEvent'][_0x1944b0(0x343)]:return{..._0x7b8a3b,'data':{..._0x26739c,'data':_0x26739c['liveShareOperation']},'cmd':_0x7b8a3b['cmd']};case _[_0x1944b0(0x3f2)]['LIVESHARE_TERMINATE']:return{..._0x7b8a3b,'data':{..._0x26739c,'data':_0x26739c[_0x1944b0(0x36e)]},'cmd':_0x7b8a3b['cmd']};case _[_0x1944b0(0x3f2)][_0x1944b0(0x1f1)]:return{..._0x7b8a3b,'data':_0x26739c,'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _[_0x1944b0(0x3f2)][_0x1944b0(0x37e)]:return{..._0x7b8a3b,'data':{..._0x26739c,'data':_0x26739c[_0x1944b0(0x1ae)]},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _[_0x1944b0(0x3f2)][_0x1944b0(0x213)]:return{..._0x7b8a3b,'data':{..._0x26739c,'data':_0x26739c[_0x1944b0(0x2c5)]},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};case _[_0x1944b0(0x3f2)]['SHOULD_CLOSE_CONN']:return{..._0x7b8a3b,'data':{..._0x26739c,'data':_0x26739c[_0x1944b0(0x251)]},'cmd':_0x7b8a3b[_0x1944b0(0x289)]};default:return _0x7b8a3b;}}default:return _0x7b8a3b;}}function Ot(_0x1a646b){const _0x570429=_0x519e85;switch(_0x1a646b['cmd']){case b[_0x570429(0x391)]:case b[_0x570429(0x2e8)]:return JSON[_0x570429(0x425)]({'cmd':_0x1a646b['cmd'],'routeKey':_0x1a646b[_0x570429(0x20e)]});case b[_0x570429(0x31b)]:{let _0x35e1dd;switch(_0x1a646b['data'][_0x570429(0x3ba)]){case _[_0x570429(0x3f2)][_0x570429(0x2c8)]:{_0x35e1dd={'eventID':_['CollaborationEvent'][_0x570429(0x2c8)],'updateCursorEvent':_0x1a646b[_0x570429(0x229)][_0x570429(0x229)]};break;}case _[_0x570429(0x3f2)][_0x570429(0x28b)]:{_0x35e1dd={'eventID':_[_0x570429(0x3f2)]['USERS_LEAVE'],'leaveEvent':_0x1a646b['data'][_0x570429(0x229)]};break;}case _[_0x570429(0x3f2)][_0x570429(0x489)]:{_0x35e1dd={'eventID':_[_0x570429(0x3f2)]['USERS_ENTER'],'joinEvent':_0x1a646b[_0x570429(0x229)][_0x570429(0x229)]};break;}case _[_0x570429(0x3f2)][_0x570429(0x2d7)]:{_0x35e1dd={'eventID':_[_0x570429(0x3f2)][_0x570429(0x2d7)],'liveShareNewHost':_0x1a646b[_0x570429(0x229)]['data']};break;}case _[_0x570429(0x3f2)]['LIVESHARE_OPERATION']:{_0x35e1dd={'eventID':_[_0x570429(0x3f2)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x1a646b[_0x570429(0x229)][_0x570429(0x229)]};break;}case _['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x35e1dd={'eventID':_[_0x570429(0x3f2)][_0x570429(0x402)],'liveShareTerminate':_0x1a646b[_0x570429(0x229)][_0x570429(0x229)]};break;}case _[_0x570429(0x3f2)]['LIVESHARE_REQUEST_HOST']:{_0x35e1dd={'eventID':_[_0x570429(0x3f2)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x1a646b['data']['data']};break;}case _[_0x570429(0x3f2)][_0x570429(0x384)]:{_0x35e1dd={'eventID':_['CollaborationEvent'][_0x570429(0x384)]};break;}default:_0x35e1dd={'eventID':_0x1a646b['data'][_0x570429(0x3ba)]};}return JSON['stringify']({'cmd':_0x1a646b['cmd'],'routeKey':_0x1a646b['routeKey'],'collaMsg':_0x35e1dd});}case b['JOIN']:return JSON[_0x570429(0x425)]({'cmd':_0x1a646b[_0x570429(0x289)],'routeKey':_0x1a646b[_0x570429(0x20e)],'joinReq':_0x1a646b[_0x570429(0x229)]});case b['LEAVE']:return JSON[_0x570429(0x425)]({'cmd':_0x1a646b[_0x570429(0x289)],'routeKey':_0x1a646b[_0x570429(0x20e)],'leaveReq':_0x1a646b['data']});default:throw new Error(_0x570429(0x475));}}var cs=Object[_0x519e85(0x1d9)],ls=Object[_0x519e85(0x361)],hs=(_0x53bf62,_0x28a2ad,_0x1e8b87,_0x108821)=>{const _0x4b5535=_0x519e85;for(var _0x479dbd=_0x108821>0x1?void 0x0:_0x108821?ls(_0x28a2ad,_0x1e8b87):_0x28a2ad,_0x1059ec=_0x53bf62[_0x4b5535(0x4c3)]-0x1,_0x385ad2;_0x1059ec>=0x0;_0x1059ec--)(_0x385ad2=_0x53bf62[_0x1059ec])&&(_0x479dbd=(_0x108821?_0x385ad2(_0x28a2ad,_0x1e8b87,_0x479dbd):_0x385ad2(_0x479dbd))||_0x479dbd);return _0x108821&&_0x479dbd&&cs(_0x28a2ad,_0x1e8b87,_0x479dbd),_0x479dbd;},ae=(_0x486341,_0x37a06e)=>(_0x18e733,_0x1e9c76)=>_0x37a06e(_0x18e733,_0x1e9c76,_0x486341);const Ke=a[_0x519e85(0x29c)]('univer-pro.collaboration-client-socket-service');function _s(_0x29e148,_0x24ffbc,_0x50cf32){const _0x4106cf=_0x519e85;return _0x29e148+'/'+_0x24ffbc+_0x4106cf(0x31f)+_0x50cf32+'/new_changes';}exports[_0x519e85(0x318)]=class extends a[_0x519e85(0x317)]{constructor(_0x3b9b5f,_0x4ca75f,_0x23f7fd,_0x3da3ea,_0x2b0df7){const _0x2b675b=_0x519e85;super(),this[_0x2b675b(0x50c)]=_0x3b9b5f,this['_ws']=_0x4ca75f,this[_0x2b675b(0x240)]=_0x23f7fd,this['_logService']=_0x3da3ea,this[_0x2b675b(0x219)]=_0x2b0df7;}[_0x519e85(0x488)](_0x2893de){const _0x268edc=_0x519e85,_0x4bb59a=this['_ws']['createSocket'](_0x2893de);if(!_0x4bb59a)throw new Error(_0x268edc(0x33a));const _0x4552c1=new a[(_0x268edc(0x416))](),_0x16a9a8=new v[(_0x268edc(0x1d2))]();_0x4552c1[_0x268edc(0x2c3)](_0x4bb59a[_0x268edc(0x41a)][_0x268edc(0x33d)](_0x3fc84a=>_0x16a9a8['next'](_0x3fc84a))),_0x4552c1['add'](a[_0x268edc(0x49a)](()=>_0x16a9a8[_0x268edc(0x2e3)]()));const _0x3f9e66=new v[(_0x268edc(0x1d2))]();_0x4552c1[_0x268edc(0x2c3)](_0x4bb59a[_0x268edc(0x23c)][_0x268edc(0x33d)](_0x89ac0a=>_0x3f9e66[_0x268edc(0x4a5)](_0x89ac0a))),_0x4552c1[_0x268edc(0x2c3)](a['toDisposable'](()=>_0x3f9e66['complete']()));const _0xe494df=new v[(_0x268edc(0x1d2))]();_0x4552c1[_0x268edc(0x2c3)](_0x4bb59a['message$'][_0x268edc(0x33d)](_0x589e06=>{const _0x1f853c=_0x268edc,_0x43f26e=Rt(_0x589e06);_0xe494df[_0x1f853c(0x4a5)](_0x43f26e);})),_0x4552c1[_0x268edc(0x2c3)](a['toDisposable'](()=>_0xe494df[_0x268edc(0x2e3)]()));let _0x52844a;const _0x2add74=()=>{const _0x4b321f=_0x268edc;_0x3f9e66[_0x4b321f(0x4a5)](new Event(_0x4b321f(0x142))),_0x16a9a8[_0x4b321f(0x4a5)](new CloseEvent(_0x4b321f(0x142))),_0x52844a[_0x4b321f(0x380)]();};return _0x52844a={'memberID':'','close$':_0x16a9a8[_0x268edc(0x441)](),'error$':_0x3f9e66[_0x268edc(0x441)](),'open$':_0x4bb59a[_0x268edc(0x3a3)],'message$':_0xe494df[_0x268edc(0x441)](),'send':_0x1ce209=>{const _0x174506=_0x268edc;if(_0x1ce209['cmd']===b[_0x174506(0x31b)]){if(_0x1ce209[_0x174506(0x229)][_0x174506(0x3ba)]===_[_0x174506(0x3f2)][_0x174506(0x23a)]){this[_0x174506(0x1e7)](_0x52844a,_0x1ce209[_0x174506(0x229)])[_0x174506(0x496)](_0x537f51=>{const _0x337763=_0x174506;this['_logService'][_0x337763(0x2bf)](_0x537f51),_0x2add74();});return;}if(_0x1ce209[_0x174506(0x229)][_0x174506(0x3ba)]===_[_0x174506(0x3f2)][_0x174506(0x292)]){const _0x4b365e=_0x1ce209[_0x174506(0x229)];this[_0x174506(0x3f1)](_0x4b365e)['then'](_0x2d4060=>{const _0x3fff4e=_0x174506;_0xe494df[_0x3fff4e(0x4a5)]({'cmd':b[_0x3fff4e(0x41e)],'code':Ye['OK'],'routeKey':_0x4b365e[_0x3fff4e(0x229)]['unitID'],'routeType':'','data':{'eventID':_[_0x3fff4e(0x3f2)][_0x3fff4e(0x3a7)],'data':{'changesets':_0x2d4060}}});})[_0x174506(0x496)](_0x51f57a=>{const _0x39c666=_0x174506;this[_0x39c666(0x438)][_0x39c666(0x2bf)](_0x51f57a),_0x2add74();});return;}}_0x4bb59a[_0x174506(0x234)](Ot(_0x1ce209));},'close':()=>{const _0x3778ac=_0x268edc;_0x4bb59a['close'](),_0x4552c1[_0x3778ac(0x1b0)]();}},_0x52844a;}async['_submitChangeset'](_0x376419,_0x1ffca5){const _0x50798a=_0x519e85;var _0x254884,_0x1db098;const {unitType:_0xa039d2,unitID:_0x141df1,changeset:_0x352335}=_0x1ffca5[_0x50798a(0x229)],_0x4bb1da={'unitID':_0x141df1,'memberID':_0x376419[_0x50798a(0x244)],'type':_0xa039d2,'changeset':_[_0x50798a(0x158)](_0x352335)},_0x4d04eb=this[_0x50798a(0x240)][_0x50798a(0x2a1)](Ct),_0x35729a=this[_0x50798a(0x240)][_0x50798a(0x2a1)](L),_0x375d86=_s((_0x1db098=(_0x254884=_0x35729a==null?void 0x0:_0x35729a[_0x50798a(0x232)])!=null?_0x254884:_0x4d04eb)!=null?_0x1db098:rs,_0xa039d2,_0x141df1);try{await this['_http'][_0x50798a(0x18c)](_0x375d86,{'body':_0x4bb1da});}catch(_0x16b533){throw this[_0x50798a(0x438)]['error'](_0x50798a(0x389),'submit\x20changeset\x20error!'),_0x16b533;}}async['_fetchMissChangesets'](_0x36a7e6){const _0x4f427b=_0x519e85,{unitID:_0x294019,from:_0x57976e,to:_0x44b415,unitType:_0x405523}=_0x36a7e6[_0x4f427b(0x229)];return(await this[_0x4f427b(0x219)][_0x4f427b(0x42f)]({'metadata':void 0x0},{'unitID':_0x294019,'type':_0x405523,'from':_0x57976e,'to':_0x44b415}))[_0x4f427b(0x406)];}},exports[_0x519e85(0x318)]=hs([ae(0x0,a[_0x519e85(0x2ce)](w[_0x519e85(0x43d)])),ae(0x1,a['Inject'](w[_0x519e85(0x328)])),ae(0x2,a[_0x519e85(0x1ab)]),ae(0x3,a[_0x519e85(0x481)]),ae(0x4,_[_0x519e85(0x193)])],exports['CollaborationSocketService']);const us=_0x519e85(0x38f);function ds(_0x13f20a){const _0x41c5d6=_0x519e85;return JSON[_0x41c5d6(0x425)](_0x13f20a)['length'];}class qe{constructor(){const _0x4ac304=_0x519e85;u(this,'_commentUpdate$',new v[(_0x4ac304(0x1d2))]()),u(this,_0x4ac304(0x539),this[_0x4ac304(0x459)][_0x4ac304(0x441)]());}[_0x519e85(0x192)](_0x4a1f41){const _0x3f58a4=_0x519e85;this[_0x3f58a4(0x459)][_0x3f58a4(0x4a5)](_0x4a1f41);}}function _0x257f(){const _0xf11ab9=['subunit','_startDocCollabCursor','children','UNDEFINED','/universer-api/oidc/authpage','_scheduleSaving','event$','onlineStatusTitle','_compressMutationService','column','UNAUTHENTICATED','_backgroundColor','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','signUrlServerUrl','sessionStatus$','_sheetTransformSelectionsService','pipe','auth.needGotoLoginAlert','BASE64','setItem','actions','Rect','prototype','transformMutationsWithChangeset','ILogService','_userManagerService','addObjects','session','collabWebSocketUrl','IUIPartsService','rxjs','createSocket','USERS_ENTER','DocIMEInputManagerService','symbol','color','disposeWithMe','transformMutation','ONLINE','red300','[CollaborationUndoRedoService]','isTransformChangesetsSuccess','currentSkeleton$','registerBeforeClose','LICENSE_EXPORT_SIZE_EXCEEDED','catch','doc.mutation.rich-text-editing','getColor','_handleJoinEvent','toDisposable','_clearScheduledTask','font','cursorInfo$','BehaviorSubject','combineLatest','saveSnapshot','name','/-/object/-/batch_allowed','sendChangesetTimeout','_labelPosition','next','_collaborationController','_scheduleCollaborationTimeoutTimer','getUnitId','_clearLocalCache','_entityInit$','_scheduleHeartbeat','sheetID','_loadDoc','reconnect','getCurrentRevOfUnit','COLORS','save\x20fail\x20reason\x20is\x20','UniverCollaborationClientPlugin','CHANGESET_REJ','&source=','@univerjs/docs','OnLineSingle','row','_refreshCollabCursors','useDependency','registerOnClose','fetchThroughInterceptors','icon','history','CHANGESET_REVISION_CONFILICT','getOwnPropertySymbols','_members','OffLineSingle','_exhaustRemoteChangesetQueue','length','IDLE','21120418rjONpL','unshift','[PendingState]:\x20received\x20acknowledgement.','displayName','@univerjs-pro/license','range','change$','generateRandomId','getCellPositionByOffset','target','getSheetId','HttpExport','COMPLETION_FINISHED','onTransformSelections','conflict.content','filter','reject','&to=','OFFLINE','onPointerMove$','SheetSkeletonManagerService','@univerjs/drawing','duration','Optional','fillRule','state$','copyFileMeta','_localeService','/object/','_localStorageService','_getSaveTimeout','replace','_socketService','/resources','parse','transformUndoRedo','NO_OTHER_CLIENTS_EDITING','_scheduleClearOtherTimer','_socket$','useRef','POST','useObservable','findNodePositionByCharIndex','_createInitialStateImpl','JOIN','univer-online-status','idSuffix','fromEventSubject','withCredentials','getImageSourceCache','_online','fillText','_status$','originalMeta','type','hide','refreshPermission','encode','onStarting','SheetCollabCursorShape','assignAColorForMemberID','serializeRangeWithSheet','clipPath','_resendTimer','ImageUploadStatusType','isTransformMutationFailure','override','onRemoteAck','0\x200\x2016\x2016','onload','reduce','_http','push','_setupSubUnitSync','socket\x20open.','mapDocumentTypeToUniverType','@univerjs/core','_assignedColors','unitId','_clearTimeoutTimer','_onRemoteRejected','_syncEditingCollabCursor','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','show','interceptor','ThemeService','merge','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_substituteUndoStack','_unitOnClients','visibilityState','title','loadSheet','_clearUndo','IUniverInstanceService','confirm','_transformIMECache','LICENSE_MAX_UNITS_EXCEEDED','_replayCachedMutations','...','number','none','connectInjector','_toggleOnline','_univerInstanceService','permission.content','lineTo','onSyncEditingCollabCursor','use','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_listenToOnlineEvent','urlChange$','_getCurrentRevision','collabCursorState$','subscribeEvent','commentUpdate$','APPLY_REJECT','onRemoteRetry','handleInsertRangeMoveRight','1em','unsubscribe','_socketReady','setAlpha','setInterval','pushState','getRelativeToViewportCoord','_uiPartsService','params','/rev/','_heartbeatTimer','_localCacheService','UniverIcon','CollaborationSession','UNKNOWN_CMD','save','list','status','getUnitType','div','collaboration-client.config','addObject','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','incrementRevOfUnit','ENSURE_SNAPSHOT_EXECUTION','unitId\x20is\x20not\x20found','_draw','\x20-\x20','LOCAL_CACHE_INTERVAL','newValue','SYNCED','jiqing500','APPLY_DUPLICATED','UNIVER_PROJECT','setTimeout','saveOfflineData','objectID','saveSheetBlock','_handleHeartbeatEvent','connection\x20error','skeleton','toggleOffline','hasOwnProperty','getSheetBySheetId','ICommandService','_onRemoteRetry','_lastPointer','editingUnit','setWaitCount','on-line-single','gold400','ColorKit','collaboration-client.offline-data-not-saved','href','getUndoRedoMutationParamsCache','runRefRangeMutations','createInstance','unknown','socketService','enableAuthServer','image/bmp','parseChangesetToProtocol','_clearHeartbeatTimer','TEXT_RANGE_LAYER_INDEX','/block/','/fetchmissing?from=','IMessageService','failed\x20to\x20apply\x20missed\x20changesets!','session.connection-failed','AWAITING','offline','_resendTimeout','getCurrent','off-line-single_clip0_910_343','_updateCollabCursors','getRandomValues','_getDownloadEndpointURL','sheetId','unit','objectType','stopTime','_onFetchMissResult','InsertRowCommandId','/collaborator','url','addEventListener','NodePositionConvertToCursor','Tools','_createInitialState','svg','RegularPolygon','_transformUndoredo','snapshot','_startCollaboration','UNIVER_COLLABORATION_CLIENT_PLUGIN','[CollaborationState]:\x20apply\x20error!','CollaborationEntity','M0\x200H16V16H0z','_sendHeartbeatTimer','loginUrlKey','#fff','concat','JOINING','userID','_getLoginPath','engine','_injector','getResourcesRequest','setParam','CollaborationStatus','exhaustSavingTask','collab-rect-range-','clear','post','ITransformService','_incrementRevisionNumber','_shouldReportTelemetry','isValidRectRange','onMouseMove','onCommentUpdate','ISnapshotServerService','getDocRanges','collab-client.tooltip.reconnect','SNAPSHOT_SERVER_URL_KEY','min','onMissedChangesetFetched','_telemetryInfo','clearInterval','SNAPSHOT_HAS_BEEN_REMOVED','equals','b64DecodeUnicode','ImageSourceType','uploadFileServerUrl','switchMap','collaboration-session-retry','ERROR_IMAGE','registerRenderModule','ERROR_EXCEED_SIZE','getValue','delete','sid','_updateStatus','updatePermissionPoint','searchParams','IConfigService','_getAPIPrefix','resize','commentUpdateEvent','_awaitingChangeset','dispose','AWAITING_WITH_PENDING','collabStatus.fetchMiss','getRoom','requestParams','233107IoJMkY','createElement','_sessionStatus$','executeCommand','action','_onConnectionFailed','_type','onPointerEnter$','getFocusedUnit','getActiveRange','textRanges','@univerjs/network','_candidateSocket','loadOfflineData','4668980TAhand','synced','FETCH_MISS','getParam','_selfUnitIDs','transformChangesets','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','text','NOT_COLLAB','assign','_docSkeletonManagerService','image/gif','closeSession','string','toggleOnline','Subject','COLLAB_WEB_SOCKET_URL_KEY','@univerjs/engine-formula','TOO_MANY_REQUESTS','handleInsertRow','_onConflict','find','defineProperty','PENDING','?url=','toRgbString','_renderManagerService','origin','off-line-single','setActiveRange','m2Prime','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','Warning','onTransformChange$','_scheduleTimestamp','debug','_submitChangeset','getUnhiddenWorksheets','Rectangle','0\x200\x2017\x2016','visibilitychange','concatMap','collabStatus.conflict','_disableEditing','url(#$1','_unitID','MSG_FOR_ERROR','_pendingMutations','_clearOtherTimers','hidden','_sheetSkeletonManagerService','sheets','_sessions','_retryCount','DeleteRangeMoveLeftCommandId','HEARTBEAT_TIMEOUT','InsertRangeMoveDownCommandId','shareReplay','delay','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','baseRev','Tooltip','_handleEvent','downloadEndpointUrl','_onUserLeave','_substituteRedoStack','_toggleOffline','_removeCollabCursors','_onCursorUpdate','696eipGNp','_eventUnsubscribe','getRenderById','_onLocalMutation','DeleteRangeMoveUpCommandId','_colorAssignService','routeKey','_disabled','RichTextEditingMutation','_onRecvEvent','476456onpMVl','UPDATE_PERMISSION_OBJ','InsertSheetMutation','deepClone','workbook','_getSnapshotAPIPrefix','docStateChange$','_snapshotServerService','_imageSourceCache','awaitingChangeset','_shapes','_getAnchorBounding','measureText','beginPath','transformStack\x20failed!','_getSheetObject','_clearRedo','_ensureSubject','_resendWithTimeout','CHANGESET_SHOULD_RETRY','_clearCollaborationTimeoutTimer','roomInfos','fill','data','_beforeCloseService','updateCollaborator','_sender','from','session.will-retry','set','[CollaborationEntity]','mutations','collabSubmitChangesetUrl','debounceTime','send','getCurrentUser','[SyncedState]:\x20received\x20acknowledgement.','Plugin','map','IRenderManagerService','SUBMIT_CHANGESET','isInternalEditorID','error$','removeMember','_getSendChangesetTimeout','_onCombEvent','_configService','EmptyMutation','ITelemetryService','slice','memberID','getViewport','_tryEnsureSocket','ranges','transformRemoteChangeset','IUndoRedoService','APPLY_PERMISSION_DENIED','forwardRef','_updateLocalCache','UNIVER_UNKNOWN','ReplaySubject','telemetry\x20info\x20is\x20not\x20initialized','_loadSheet','shouldCloseConn','_instanceService','dispose$','takeUntil','_themeService','useCallback','c1Prime','_getCtorByUniverType','_cursor','status$','socket$','MessageType','@univerjs/engine-render','IPermissionService','_initModules','disposeUnit','_redoStacks','popstate','infoRsp','_initRequestHeader','_waitCount','UniverCollaborationPlugin','allowed','_onUserJoin','onReady','CollaborationController','LocalCacheService','randomUUID','_urlService','_unitStatus','[SyncedState]:\x20received\x20rejection.','_acknowledgedAwaitingChangeset','_config','onRemoteRej','requireSession','moveTo','rev','isTransformMutationsWithChangesetSuccess','height','EffectRefRangId','saveChangeset','getMemberID','@univerjs/sheets','putCollaborators','forEach','VIEW_MAIN','not_collab','SetDocZoomRatioOperation','registerHTTPInterceptor','defIds','getTypeOfUnitDisposed$','isActive','getAncestorScale','NOT_FOUND','_updateSubUnitFromURLParams','authzUrl','cmd','apply','USERS_LEAVE','_document','onlyLocal','_sendingTimer','addImageSourceCache','appendMutation','CommandType','FETCH_MISSING','ACTIVE_UNIT_EVENT_CHANNEL','collabStatus.syncing','IBeforeCloseService','parseProtocolChangeset','_entities','_socket','getMember','subUnitId','touchDependencies','createIdentifier','DataLoaderController','_colorIndex','_sendHeartbeat','1602716cNeAEo','getConfig','RxDisposable','_transformRemoteChangesetByIMECache','_color','collabStatus.notCollab','_telemetryService','patch','_queuedRemoteChangesets','joinEvent','SetWorksheetActivateCommand','_changesetReqId','_collaborationPaused','indexOf','_transitionLocked','getCollabEntity$','_registerRenderDependencies','@univerjs/sheets-ui','@univerjs/telemetry','c2Prime','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','tag','setUndoRedoMutationParamsCache','max','_getUndoStack','_waitForHeartbeatResponse','getCurrentUnitForType','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_updateURLWithCurrentState','_checkMissing','_startTelemetryCollaborationNewChangeset','error','readAsDataURL','JSONX','arc','add','_hover','updatePermissionObjEvent','_name','IImageIoService','UPDATE_CURSOR','transformSelections','_removeClearOtherTimer','FAIL','_render','RefRangeService','Inject','session.collaboration-timeout','univer-online','m1Prime','COLLAB_SUBMIT_CHANGESET_URL','random','1aNhcqG','setCurrentUser','SheetCollaborationEntity','LIVESHARE_NEW_HOST','_createSocket','collaboratorID','_lockTransition','_getAPIPrefixPath','CollaborationSessionService','getOffsetConfig','getAttachHeader','_updateState','_permissionService','translate(.97)','revision','complete','throttleTime','result','handleDeleteRangeMoveLeft','SEND_CHANGESET_TIMEOUT','HELLO','Vector2','_initUnitPermissionChange','_docSyncEditingCollabCursorService','SEND_CHANGESET_TIMEOUT_KEY','UNIVER_SHEET','INVALID_ARGUMENT','UniverInstanceType','_onOffline','_drawTextRange','isArray','unload','_onCursorDelete','listCollaborators','_getMergeRange','pending','_handler','getRangePointData','conflict','_undoRedoService','put','ws://127.0.0.1:8000/universer-api/comb/connect','_tryReconnect','HEARTBEAT_INTERVAL_KEY','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','AuthzIoHttpService','unit-cache-','url(#off-line-single_clip0_910_343)','_getUploadFileURL','UnitSnapshot','toStringTag','onlineStatus','getWorkbookSelections','_undoStacks','_transformStack','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','TRANSFORM_CHANGE_OBSERVABLE_TYPE','CONNECTOR_DATA_TOO_LARGE','mergeOverrideWithDependencies','_joinRoom','x-univer-host','isTransformMutationsWithChangesetFailure','take','_cursorInfo$','/universer-api/authz','DependentOn','NEW_CHANGESETS','Disposable','CollaborationSocketService','drawWith','headers','INGEST','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_drawAnchor','SNAPSHOT_INVALID_SNAPSHOT','/unit/','evenodd','Workbook','LocaleService','_notificationService','editing\x20status\x20changed\x20to','\x20in\x20_schedule.','_hideTimer','registerRefRange','WebSocketService','debounce','defs','mapTo','batchAllowed','has','LICENSE_IMPORT_SIZE_EXCEEDED','_handleLeaveEvent','distinctUntilChanged','clearTimeout','getCoordByCell','FileId','CommentService','round','location','_roomMembers','getLatestCsReqIdBySid','_docSkeleton','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','UNIVER_DOC','_collabSessionService','subscribe','ALREADY_EXISTS','_getSignURL','NodePositionConvertToRectRange','split','extend','LIVESHARE_OPERATION','_send','getUnit','UNRECOGNIZED','handleDeleteRangeMoveUp','disableLocalCache','[OfflineState]:\x20received\x20changeset.','OTHER_CLIENTS_EDITING','CONFLICT','45xAlahK','SnapshotServerOverHTTPService','onRemoteChangeset','collaMsg','fillStyle','className','handleMoveRange','UnitEmbedded','_isPermissionRej','hovered','LICENSE_DISTRO_REJECTED','startsWith','_timeoutTimer','HEARTBEAT_TIMEOUT_KEY','_onRefRangeChange','deserializeToCombResponse','18940sWpqgv','_applyRemoteChangeset','_id','_transformSelections','_registerDependencies','getOwnPropertyDescriptor','fromCollab','_getRedoStack','_initStatusListener','csShouldRetryEvent','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_roomMembers$','onCommandExecuted','flatMap','_throwTelemetryCollaborationNewChangeset','LEAVE','/universer-api/snapshot/','every','liveShareNewHost','permission.title','getCollabCursors$','unitID','_refRangeService','_rescheduleHeartbeat','/universer-api/file/{fileID}/sign-url','getTypeOfUnitAdded$','_retryConnectingTimer','_anchor','univer-offline','_httpService','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','isPermissionRej','_remoteChangesetQueue','onStateChange','COMMENT_UPDATE','[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.','close','uni.network.url-service','restore','_context','LIVESHARE_FETCH_OPERATIONS','on-line-single_clip0_910_349','_anchorDot','_syncEditingCollabCursorService','_onJoinRoomEvent','[CollaborationSession]','Unknown\x20user','getUnitOnRev','ImageIoService','onSendChangeset','YUUMI_SUBSCRIPTION_NOT_FOUND','collaboration_new_changeset','onTransformIME','HEARTBEAT','_change$','width','call','cursorInfo','startRow','_drawRectRange','then','xlink:href','_initMergeInterceptor','getCurrentSelections','_getScale','values','_hovered','IHTTPImplementation','UUID','awaiting_with_pending','{fileID}','open$','_decreaseWaiting','_changesetSessionId','create','PSEUDO_FETCH_MISSING_RESULT','SNAPSHOT_URL_KEY','_messageService','@univerjs/rpc','RETRY_CONNECTING_MAX_COUNT_KEY','onMissingChangesets','_commentService','COLLAB_WEB_SOCKET_URL','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_initStatusComponent','_session','toString','blue400','FromArray','PERMISSION_REJ','_collaborationTimeoutTimer','SheetsSelectionsService','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','/allowed','eventID','CHANGESET_ACK','fetchMiss','purple300','message$','[PendingState]:\x20received\x20rejection.','initWorkbookPermissionChange','updateOfflineData','_replaceFileID','_scene','@univerjs/docs-ui','with','focused$','colorChannel1','conflict.title','SetSelectionsOperation','_initResize','_transformUndoRedoStack','_snapshotService','attrs','APPLY_NON_SEQUENTIAL_REVISION','replaceTextRanges','_collaborationSessionService','collaborators','rgba(255,\x20255,\x20255,\x200.01)','_singleActiveUnitService','_cachedData','_collabCursorState$','_range','_commandService','_memberService','Shape','[DataLoaderController]','_state','_init','selections','_executeRemoteChangeset','currentColor','top','resend','_docTransformIMECacheService','resolve','_onRemoteACK','bind','body','selection','current','_textBubble','[UniverCollaborationClientPlugin]','capture','_cursors','compose','onlineStatusIcon','getImage','1081096kEEheD','_fetchMissChangesets','CollaborationEvent','get','localeService','currentTheme$','_saveCache','_schedule','state','awaiting','_removeRoom','_event$','YUUMI_UNABLE_LOAD_URL','&assign=','permissionRejEvent','_socketMessageSubscription','_createHandler','RETRY_CONNECTING_MAX_COUNT','LIVESHARE_TERMINATE','LOGIN_URL_KEY','whenReady','setShapeProps','changesets','LOCAL_CACHE_INTERVAL_KEY','size','getActiveSheet','key','_HTTPService','_initEventListeners','getMergeData','_onMessage','reqId','_listenToOfflineEvent','fromEvent','_startSheetCollabCursor','WorkbookEditablePermission','Error','_collabCursorController','DisposableCollection','pluginName','DocCollaborationEntity','#FFF','close$','black','leaveEvent','syncEditingCollabCursor','RECV','Undefined','contains','roomMembers$','append','toLowerCase','file','stringify','enableOfflineEditing','handleInsertRangeMoveDown','UNKNOWN_CODE','DocSelectionManagerService','getCollabEntity','transformIMECache','_updateLocalCursor','Injector','trim','fetchMissingChangesets','endColumn','[OfflineState]:\x20received\x20rejection.','WebURLService','roomMembers','3ekpIeQ','_transformService','univer-pro.collaboration-client.single-active-unit-service','snapshotServerUrl','_logService','\x0aAfter:\x20','online','EXCHANGE_SIGN_URL_SERVER_URL_KEY','SnapshotService','HTTPService','enableLocalCache','/role','COMPRESS_MUTATION_APPLY','asObservable','_state$','_unlockTransition','[FetchMissState]','_setupBeforeClosingHandler','updateMember','init','csRejEvent','MoveRangeCommandId','MUTATION','onRendered','HttpImport','CompressMutationService','getInterceptPoints','_showConflictNotification','getTime','_cursorShapes','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','replaceState','session.room-full','textEncoder','setConfig','path','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_commentUpdate$','_saveTaskMap','sessionStatus','method','_onConnectionOpen','src','[CollaborationSessionService]','object','newCsEvent','function','_revisionService','UNIVER_SLIDE','DesktopCollaborationStatusDisplayController','sequenceExecute','RevisionService','_docTransformSelectionsService'];_0x257f=function(){return _0xf11ab9;};return _0x257f();}var Ss=Object[_0x519e85(0x1d9)],vs=Object[_0x519e85(0x361)],ms=(_0x167d73,_0x53fa93,_0x416ffa,_0x18c2a1)=>{const _0x190e52=_0x519e85;for(var _0x52503f=_0x18c2a1>0x1?void 0x0:_0x18c2a1?vs(_0x53fa93,_0x416ffa):_0x53fa93,_0x555928=_0x167d73[_0x190e52(0x4c3)]-0x1,_0x43db53;_0x555928>=0x0;_0x555928--)(_0x43db53=_0x167d73[_0x555928])&&(_0x52503f=(_0x18c2a1?_0x43db53(_0x53fa93,_0x416ffa,_0x52503f):_0x43db53(_0x52503f))||_0x52503f);return _0x18c2a1&&_0x52503f&&Ss(_0x53fa93,_0x416ffa,_0x52503f),_0x52503f;},tt=(_0x3d88a8,_0x215f60)=>(_0x3a5270,_0x16c8e5)=>_0x215f60(_0x3a5270,_0x16c8e5,_0x3d88a8);let X=class extends a['Disposable']{constructor(_0x48a2ab,_0x2525ac){const _0x485804=_0x519e85;super(),u(this,_0x485804(0x337),new Map()),(this[_0x485804(0x52e)]=_0x48a2ab,this[_0x485804(0x482)]=_0x2525ac,this[_0x485804(0x48d)](a['toDisposable'](v['merge'](this[_0x485804(0x52e)]['getTypeOfUnitDisposed$'](a[_0x485804(0x2ef)][_0x485804(0x2ed)])[_0x485804(0x479)](E[_0x485804(0x238)](_0x5ba540=>_0x5ba540[_0x485804(0x4a8)]())),this[_0x485804(0x52e)][_0x485804(0x283)](a[_0x485804(0x2ef)][_0x485804(0x33b)])['pipe'](E[_0x485804(0x238)](_0x44644a=>_0x44644a['getUnitId']())),this[_0x485804(0x52e)]['getTypeOfUnitDisposed$'](a[_0x485804(0x2ef)][_0x485804(0x464)])['pipe'](E['map'](_0x389b09=>_0x389b09[_0x485804(0x4a8)]())))['subscribe'](_0x4a09be=>this[_0x485804(0x3fa)](_0x4a09be)))));}['setCurrentUser'](_0x722c50){const _0x3bef23=_0x519e85;this[_0x3bef23(0x482)][_0x3bef23(0x2d5)](_0x722c50);}[_0x519e85(0x235)](){const _0x6ea829=_0x519e85;return this[_0x6ea829(0x482)]['getCurrentUser']();}[_0x519e85(0x446)](_0x554e36,_0xbeb177){const _0x49a6b5=_0x519e85;let _0x533b1b=this[_0x49a6b5(0x337)][_0x49a6b5(0x3f3)](_0x554e36);_0x533b1b||(_0x533b1b=new gs(),this[_0x49a6b5(0x337)]['set'](_0x554e36,_0x533b1b)),_0x533b1b[_0x49a6b5(0x446)](_0xbeb177);}[_0x519e85(0x23d)](_0x7114f1,_0x7a8b1d){const _0x348c2c=_0x519e85,_0x184513=this[_0x348c2c(0x337)]['get'](_0x7114f1);_0x184513&&_0x184513[_0x348c2c(0x23d)](_0x7a8b1d);}[_0x519e85(0x1b3)](_0x13318c){const _0x4dbb3f=_0x519e85;return this[_0x4dbb3f(0x337)][_0x4dbb3f(0x3f3)](_0x13318c);}['getMember'](_0x20a6de,_0x4a4732){const _0x58860c=_0x519e85,_0x374830=this['_roomMembers'][_0x58860c(0x3f3)](_0x20a6de);if(_0x374830)return _0x374830[_0x58860c(0x299)](_0x4a4732);}[_0x519e85(0x3fa)](_0x5dc270){const _0x4ecfb6=_0x519e85,_0x1b9385=this[_0x4ecfb6(0x337)]['get'](_0x5dc270);_0x1b9385&&(_0x1b9385[_0x4ecfb6(0x1b0)](),this[_0x4ecfb6(0x337)][_0x4ecfb6(0x1a6)](_0x5dc270));}[_0x519e85(0x1b0)](){const _0x27a524=_0x519e85;this[_0x27a524(0x337)][_0x27a524(0x27d)](_0x11c787=>_0x11c787[_0x27a524(0x1b0)]()),this['_roomMembers'][_0x27a524(0x18b)]();}};X=ms([tt(0x0,a[_0x519e85(0x524)]),tt(0x1,a[_0x519e85(0x2ce)](a['UserManagerService']))],X);class gs extends a['Disposable']{constructor(){const _0x578dc3=_0x519e85;super(...arguments),u(this,_0x578dc3(0x4c0),new Map());}[_0x519e85(0x1b0)](){const _0x315a34=_0x519e85;this[_0x315a34(0x4c0)][_0x315a34(0x18b)]();}[_0x519e85(0x446)](_0x1e8a0e){const _0xc3e6d1=_0x519e85;this[_0xc3e6d1(0x4c0)][_0xc3e6d1(0x22f)](_0x1e8a0e[_0xc3e6d1(0x244)],_0x1e8a0e);}[_0x519e85(0x23d)](_0x498071){const _0x32cc3b=_0x519e85;this[_0x32cc3b(0x4c0)][_0x32cc3b(0x1a6)](_0x498071);}['getMember'](_0x5add8c){const _0xca9dce=_0x519e85;return this[_0xca9dce(0x4c0)][_0xca9dce(0x3f3)](_0x5add8c);}}var fs=Object['defineProperty'],Is=Object[_0x519e85(0x361)],ps=(_0x2ec7a2,_0x92c94c,_0x1c06bd,_0x4593d0)=>{const _0x285d7c=_0x519e85;for(var _0x30335c=_0x4593d0>0x1?void 0x0:_0x4593d0?Is(_0x92c94c,_0x1c06bd):_0x92c94c,_0x45997a=_0x2ec7a2[_0x285d7c(0x4c3)]-0x1,_0x250028;_0x45997a>=0x0;_0x45997a--)(_0x250028=_0x2ec7a2[_0x45997a])&&(_0x30335c=(_0x4593d0?_0x250028(_0x92c94c,_0x1c06bd,_0x30335c):_0x250028(_0x30335c))||_0x30335c);return _0x4593d0&&_0x30335c&&fs(_0x92c94c,_0x1c06bd,_0x30335c),_0x30335c;},V=(_0x4470d0,_0x4cfdb8)=>(_0x516234,_0x4ec334)=>_0x4cfdb8(_0x516234,_0x4ec334,_0x4470d0),H=(_0x1cc86d=>(_0x1cc86d[_0x1cc86d[_0x519e85(0x4c4)]=0x0]=_0x519e85(0x4c4),_0x1cc86d[_0x1cc86d[_0x519e85(0x181)]=0x1]='JOINING',_0x1cc86d[_0x1cc86d[_0x519e85(0x4d7)]=0x2]=_0x519e85(0x4d7),_0x1cc86d[_0x1cc86d[_0x519e85(0x48f)]=0x3]=_0x519e85(0x48f),_0x1cc86d))(H||{});exports[_0x519e85(0x54a)]=class extends a[_0x519e85(0x2a2)]{constructor(_0x389583,_0x4cc7d9,_0x25d133,_0x4fd259,_0x3e19e7,_0x43536f,_0x3159f0,_0x47a3ab,_0x310253,_0x384744){const _0x31f1d6=_0x519e85;super(),u(this,'_sessionStatus$',new v[(_0x31f1d6(0x49e))](0x0)),u(this,'sessionStatus$',this[_0x31f1d6(0x1b7)][_0x31f1d6(0x441)]()),u(this,_0x31f1d6(0x3fb),new v['Subject']()),u(this,_0x31f1d6(0x46f),this[_0x31f1d6(0x3fb)]['asObservable']()),u(this,_0x31f1d6(0x298)),u(this,'_socketMessageSubscription'),u(this,_0x31f1d6(0x3b6)),u(this,_0x31f1d6(0x18f),!0x1),u(this,'_telemetryInfo',null),(this[_0x31f1d6(0x1f0)]=_0x389583,this[_0x31f1d6(0x438)]=_0x25d133,this[_0x31f1d6(0x22a)]=_0x4fd259,this[_0x31f1d6(0x3a9)]=_0x3e19e7,this['_configService']=_0x43536f,this['_localeService']=_0x3159f0,this[_0x31f1d6(0x3d8)]=_0x47a3ab,this[_0x31f1d6(0x3ad)]=_0x310253,this[_0x31f1d6(0x2a6)]=_0x384744,this[_0x31f1d6(0x18f)]=!!this[_0x31f1d6(0x2a6)],_0x4cc7d9[_0x31f1d6(0x479)](v[_0x31f1d6(0x254)](this['dispose$']))[_0x31f1d6(0x33d)](_0x4f4a40=>{const _0x3a5f3f=_0x31f1d6;var _0x251e22;typeof _0x4f4a40>'u'||(this[_0x3a5f3f(0x298)]=_0x4f4a40,_0x4f4a40?(this[_0x3a5f3f(0x30f)](_0x4f4a40),this[_0x3a5f3f(0x3ff)]=_0x4f4a40[_0x3a5f3f(0x3be)][_0x3a5f3f(0x33d)](_0x43db6e=>{const _0x2dcc20=_0x3a5f3f;_0x43db6e[_0x2dcc20(0x20e)]===this[_0x2dcc20(0x1f0)]&&this[_0x2dcc20(0x23f)](_0x43db6e);})):(this[_0x3a5f3f(0x36a)](),this[_0x3a5f3f(0x1b7)]['next'](0x2),(_0x251e22=this[_0x3a5f3f(0x3ff)])==null||_0x251e22[_0x3a5f3f(0x53e)](),this[_0x3a5f3f(0x3ff)]=null));}),this['disposeWithMe'](this[_0x31f1d6(0x22a)][_0x31f1d6(0x4ba)](()=>{const _0x59b65e=_0x31f1d6;var _0x5eada8;(_0x5eada8=this[_0x59b65e(0x298)])==null||_0x5eada8[_0x59b65e(0x234)]({'cmd':b[_0x59b65e(0x36b)],'data':{'roomID':this['_unitID']}});})));}get[_0x519e85(0x45b)](){const _0x4e8d1c=_0x519e85;return this['_sessionStatus$'][_0x4e8d1c(0x1a5)]();}['getMemberID'](){const _0xb8789=_0x519e85;var _0x12e5d0,_0x292d83;return(_0x292d83=(_0x12e5d0=this[_0xb8789(0x298)])==null?void 0x0:_0x12e5d0[_0xb8789(0x244)])!=null?_0x292d83:null;}[_0x519e85(0x1b0)](){const _0x123e8d=_0x519e85;super[_0x123e8d(0x1b0)](),this[_0x123e8d(0x253)][_0x123e8d(0x4a5)](),this[_0x123e8d(0x253)]['complete']();}[_0x519e85(0x380)](){const _0x451add=_0x519e85;var _0x477498,_0x2be474;this[_0x451add(0x36a)](),(_0x477498=this[_0x451add(0x298)])==null||_0x477498[_0x451add(0x234)]({'cmd':b[_0x451add(0x36b)],'data':{'roomID':this[_0x451add(0x1f0)]}}),(_0x2be474=this[_0x451add(0x298)])==null||_0x2be474['close'](),this[_0x451add(0x3fb)][_0x451add(0x2e3)](),this[_0x451add(0x1b7)][_0x451add(0x2e3)](),this[_0x451add(0x1b0)]();}[_0x519e85(0x23f)](_0xd2b9d3){const _0x28e799=_0x519e85;_0xd2b9d3['cmd']===b[_0x28e799(0x4f1)]?this['_onJoinRoomEvent'](_0xd2b9d3):_0xd2b9d3[_0x28e799(0x289)]===b[_0x28e799(0x41e)]&&this['_onRecvEvent'](_0xd2b9d3);}[_0x519e85(0x30f)](_0x18fbed){const _0x570403=_0x519e85;this[_0x570403(0x1b7)][_0x570403(0x4a5)](0x1),_0x18fbed[_0x570403(0x234)]({'cmd':b[_0x570403(0x4f1)],'routeKey':this[_0x570403(0x1f0)],'routeType':'','data':{'rooms':[{'roomID':this[_0x570403(0x1f0)]}]}});}[_0x519e85(0x388)](_0x1126f9){const _0x4dd1fc=_0x519e85;var _0xdec183;if(_0x1126f9['code']===Ye[_0x4dd1fc(0x2cb)]){this[_0x4dd1fc(0x3a9)][_0x4dd1fc(0x519)]({'type':q[_0x4dd1fc(0x25c)]['Warning'],'content':this[_0x4dd1fc(0x4e0)]['t'](_0x4dd1fc(0x454))}),this[_0x4dd1fc(0x1b7)][_0x4dd1fc(0x4a5)](0x2);return;}this[_0x4dd1fc(0x1b7)][_0x4dd1fc(0x4a5)](0x3);const _0x41406e=(_0xdec183=_0x1126f9[_0x4dd1fc(0x229)][_0x4dd1fc(0x227)][this['_unitID']])==null?void 0x0:_0xdec183['members'];_0x41406e&&_0x41406e[_0x4dd1fc(0x27d)](_0x4ee915=>this[_0x4dd1fc(0x3d8)][_0x4dd1fc(0x446)](this[_0x4dd1fc(0x1f0)],_0x4ee915));}[_0x519e85(0x211)](_0xd737ee){const _0x51d1a5=_0x519e85;try{const _0x60f1d9=_0xd737ee[_0x51d1a5(0x229)];switch(_0x60f1d9[_0x51d1a5(0x3ba)]){case _['CollaborationEvent'][_0x51d1a5(0x489)]:this[_0x51d1a5(0x268)](_0x60f1d9),this['_event$'][_0x51d1a5(0x4a5)](_0x60f1d9);break;case _[_0x51d1a5(0x3f2)]['USERS_LEAVE']:this[_0x51d1a5(0x203)](_0x60f1d9),this['_event$'][_0x51d1a5(0x4a5)](_0x60f1d9);break;case _[_0x51d1a5(0x3f2)][_0x51d1a5(0x3bb)]:case _['CollaborationEvent'][_0x51d1a5(0x225)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x51d1a5(0x226)](),this[_0x51d1a5(0x3fb)][_0x51d1a5(0x4a5)](_0x60f1d9);break;case _['CollaborationEvent']['MSG_FOR_ERROR']:this['_logService'][_0x51d1a5(0x2bf)](_0x51d1a5(0x4b1)+JSON[_0x51d1a5(0x425)](_0x60f1d9)),this['_event$']['next'](_0x60f1d9);break;case _[_0x51d1a5(0x3f2)][_0x51d1a5(0x37e)]:this[_0x51d1a5(0x3ad)][_0x51d1a5(0x192)](_0x60f1d9[_0x51d1a5(0x229)]),this[_0x51d1a5(0x3fb)][_0x51d1a5(0x4a5)](_0x60f1d9);break;default:this[_0x51d1a5(0x3fb)][_0x51d1a5(0x4a5)](_0x60f1d9);}}catch(_0x497537){this['_logService'][_0x51d1a5(0x2bf)](_0x497537,_0xd737ee);}}[_0x519e85(0x268)](_0xeb9e3b){const _0x4d066b=_0x519e85;this[_0x4d066b(0x3d8)][_0x4d066b(0x446)](this[_0x4d066b(0x1f0)],_0xeb9e3b[_0x4d066b(0x229)]);}[_0x519e85(0x203)](_0x53356b){const _0x718f4b=_0x519e85;this[_0x718f4b(0x3d8)]['removeMember'](this[_0x718f4b(0x1f0)],_0x53356b[_0x718f4b(0x229)][_0x718f4b(0x244)]);}async[_0x519e85(0x234)](_0x5114a3,_0x119285){const _0x2f624e=_0x519e85;if(this[_0x2f624e(0x45b)]!==0x3||!this[_0x2f624e(0x298)])throw new Error(_0x2f624e(0x2b4));try{_0x5114a3['eventID']===_['CollaborationEvent'][_0x2f624e(0x23a)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x5114a3)),this[_0x2f624e(0x298)]['send']({'cmd':b['INGEST'],'routeKey':_0x119285,'routeType':'','data':_0x5114a3});}catch(_0x27dde3){this[_0x2f624e(0x438)][_0x2f624e(0x2bf)](_0x27dde3);}}[_0x519e85(0x4a7)](){const _0x6e0768=_0x519e85;var _0x34482b;this[_0x6e0768(0x3b6)]=window[_0x6e0768(0x13d)](()=>{const _0x14675c=_0x6e0768;this['_collaborationTimeoutTimer']=null,this[_0x14675c(0x3a9)][_0x14675c(0x519)]({'type':q[_0x14675c(0x25c)][_0x14675c(0x414)],'content':this[_0x14675c(0x4e0)]['t'](_0x14675c(0x2cf))});},(_0x34482b=this[_0x6e0768(0x240)][_0x6e0768(0x2a1)](Ge))!=null?_0x34482b:ft);}[_0x519e85(0x226)](){const _0x49d33c=_0x519e85;this[_0x49d33c(0x3b6)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x49d33c(0x3b6)]=null);}[_0x519e85(0x2be)](_0x598223){const _0x3b029a=_0x519e85;if(!this[_0x3b029a(0x18f)])return;const {data:_0x129cba}=_0x598223,{unitID:_0x353f07,changeset:_0xe73bc8}=_0x129cba,{mutations:_0xf3e14d,type:_0x3c8bf6}=_0xe73bc8;this[_0x3b029a(0x199)]={'unitId':_0x353f07,'type':_0x3c8bf6,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':ds(_0xf3e14d)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x41c799=_0x519e85;if(this[_0x41c799(0x18f)]){if(!this[_0x41c799(0x199)]){this[_0x41c799(0x438)][_0x41c799(0x2bf)](_0x41c799(0x389),_0x41c799(0x24f));return;}this[_0x41c799(0x199)][_0x41c799(0x16b)]=performance['now'](),this[_0x41c799(0x199)][_0x41c799(0x4db)]=this[_0x41c799(0x199)]['stopTime']-this['_telemetryInfo']['startTime'],this['_telemetryService'][_0x41c799(0x3eb)](us,this[_0x41c799(0x199)]),this['_telemetryInfo']=null;}}[_0x519e85(0x36a)](){const _0x569d49=_0x519e85;this[_0x569d49(0x199)]=null;}},exports[_0x519e85(0x54a)]=ps([V(0x2,a[_0x519e85(0x481)]),V(0x3,A[_0x519e85(0x295)]),V(0x4,A[_0x519e85(0x15d)]),V(0x5,a[_0x519e85(0x1ab)]),V(0x6,a[_0x519e85(0x2ce)](a[_0x519e85(0x322)])),V(0x7,a[_0x519e85(0x2ce)](X)),V(0x8,a[_0x519e85(0x2ce)](qe)),V(0x9,a[_0x519e85(0x4dc)](qt[_0x519e85(0x242)]))],exports[_0x519e85(0x54a)]);var Cs=Object[_0x519e85(0x1d9)],Es=Object[_0x519e85(0x361)],bs=(_0x3055f5,_0x1a0bed,_0xdd762a,_0x5cb45c)=>{for(var _0x3218a7=_0x5cb45c>0x1?void 0x0:_0x5cb45c?Es(_0x1a0bed,_0xdd762a):_0x1a0bed,_0x15f459=_0x3055f5['length']-0x1,_0x12b723;_0x15f459>=0x0;_0x15f459--)(_0x12b723=_0x3055f5[_0x15f459])&&(_0x3218a7=(_0x5cb45c?_0x12b723(_0x1a0bed,_0xdd762a,_0x3218a7):_0x12b723(_0x3218a7))||_0x3218a7);return _0x5cb45c&&_0x3218a7&&Cs(_0x1a0bed,_0xdd762a,_0x3218a7),_0x3218a7;},Z=(_0x5533e4,_0x443f68)=>(_0x49f1cd,_0x20e1c0)=>_0x443f68(_0x49f1cd,_0x20e1c0,_0x5533e4);exports[_0x519e85(0x2dc)]=class extends a[_0x519e85(0x317)]{constructor(_0x357efc,_0x141a1c,_0x1f3b07,_0x33871f,_0x58f53b,_0x214216){const _0x1784fb=_0x519e85;super(),u(this,_0x1784fb(0x4eb),new v[(_0x1784fb(0x49e))](void 0x0)),u(this,_0x1784fb(0x25b),this[_0x1784fb(0x4eb)]['asObservable']()),u(this,_0x1784fb(0x1c1),null),u(this,_0x1784fb(0x1f7),new Map()),u(this,_0x1784fb(0x4f9),new v[(_0x1784fb(0x49e))](H[_0x1784fb(0x4c4)])),u(this,_0x1784fb(0x25a),this['_status$']['asObservable']()),u(this,_0x1784fb(0x53f),!0x1),u(this,_0x1784fb(0x376)),u(this,_0x1784fb(0x1f8),0x0),u(this,_0x1784fb(0x17d)),u(this,_0x1784fb(0x358)),(this[_0x1784fb(0x185)]=_0x357efc,this[_0x1784fb(0x4e0)]=_0x141a1c,this[_0x1784fb(0x3a9)]=_0x1f3b07,this[_0x1784fb(0x438)]=_0x33871f,this[_0x1784fb(0x240)]=_0x58f53b,this['_socketService']=_0x214216,this[_0x1784fb(0x40c)]());}get['_socket'](){const _0x51b6b9=_0x519e85;return this[_0x51b6b9(0x4eb)][_0x51b6b9(0x1a5)]();}[_0x519e85(0x40c)](){const _0x2b8060=_0x519e85;this[_0x2b8060(0x410)](),this['_listenToOnlineEvent']();}[_0x519e85(0x1b0)](){const _0x315e2b=_0x519e85;super[_0x315e2b(0x1b0)](),this[_0x315e2b(0x1f7)][_0x315e2b(0x27d)](_0x5a9982=>_0x5a9982[_0x315e2b(0x1b0)]()),this[_0x315e2b(0x1f7)][_0x315e2b(0x18b)](),this[_0x315e2b(0x4f9)][_0x315e2b(0x2e3)]();}async['requireSession'](_0x1e1c3b){const _0x5954df=_0x519e85;if(this[_0x5954df(0x1f7)]['has'](_0x1e1c3b))return this[_0x5954df(0x1f7)]['get'](_0x1e1c3b);this[_0x5954df(0x246)]();const _0xb39432=this[_0x5954df(0x185)][_0x5954df(0x153)](exports[_0x5954df(0x54a)],_0x1e1c3b,this[_0x5954df(0x4eb)]['asObservable']());return this['_sessions'][_0x5954df(0x22f)](_0x1e1c3b,_0xb39432),_0xb39432;}[_0x519e85(0x1cf)](_0x178f8c){const _0x21f378=_0x519e85;var _0x4a00ae;const _0x5e803c=this[_0x21f378(0x1f7)][_0x21f378(0x3f3)](_0x178f8c);_0x5e803c&&(this[_0x21f378(0x1f7)]['delete'](_0x178f8c),_0x5e803c['close']()),this[_0x21f378(0x1f7)][_0x21f378(0x408)]||(_0x4a00ae=this[_0x21f378(0x298)])==null||_0x4a00ae[_0x21f378(0x380)]();}[_0x519e85(0x4ae)](){const _0x282857=_0x519e85;this['_retryCount']=0x0,this[_0x282857(0x376)]!=null&&(clearTimeout(this[_0x282857(0x376)]),this[_0x282857(0x376)]=null),this['_tryReconnect']();}[_0x519e85(0x2d8)](){const _0x70316a=_0x519e85;var _0x27cd45,_0x56085b;const _0x40f88a=this[_0x70316a(0x240)][_0x70316a(0x2a1)](mt),_0x44bf92=this[_0x70316a(0x240)]['getConfig'](L),_0x36fa95=(_0x56085b=(_0x27cd45=_0x44bf92==null?void 0x0:_0x44bf92[_0x70316a(0x485)])!=null?_0x27cd45:_0x40f88a)!=null?_0x56085b:es,_0x31e9fc=this[_0x70316a(0x4e5)][_0x70316a(0x488)](_0x36fa95);return this[_0x70316a(0x1c1)]=_0x31e9fc,_0x31e9fc;}['_tryEnsureSocket'](){const _0x9c889a=_0x519e85;var _0xd9b6a5,_0x591673;try{const _0x3727f7=(_0x591673=(_0xd9b6a5=this[_0x9c889a(0x298)])!=null?_0xd9b6a5:this['_candidateSocket'])!=null?_0x591673:this[_0x9c889a(0x2d8)]();if(_0x3727f7){const _0x7d6e9b=_0x3727f7[_0x9c889a(0x234)];_0x3727f7[_0x9c889a(0x234)]=_0x384b6f=>(this[_0x9c889a(0x373)](),_0x7d6e9b[_0x9c889a(0x28a)](_0x3727f7,[_0x384b6f])),_0x3727f7['message$'][_0x9c889a(0x33d)](_0x345733=>this[_0x9c889a(0x40e)](_0x3727f7,_0x345733)),_0x3727f7['error$'][_0x9c889a(0x479)](E['take'](0x1))['subscribe'](_0x486a2c=>this[_0x9c889a(0x438)][_0x9c889a(0x2bf)]('[CollaborationSessionService]:\x20socket\x20error',_0x486a2c)),_0x3727f7[_0x9c889a(0x3a3)]['pipe'](E[_0x9c889a(0x312)](0x1))[_0x9c889a(0x33d)](()=>{const _0x2c26b2=_0x9c889a;this[_0x2c26b2(0x45d)](_0x3727f7);}),_0x3727f7[_0x9c889a(0x41a)][_0x9c889a(0x479)](E[_0x9c889a(0x312)](0x1))['subscribe'](_0x5797b2=>{const _0xf06b38=_0x9c889a;this[_0xf06b38(0x438)][_0xf06b38(0x1e6)]('[CollaborationSessionService]','socket\x20close',_0x5797b2),this[_0xf06b38(0x1ba)]();});}}catch(_0x5a614b){this[_0x9c889a(0x438)]['error'](_0x5a614b),this['_onConnectionFailed']();}}[_0x519e85(0x45d)](_0x5a43fc){const _0x46e14e=_0x519e85;this['_logService'][_0x46e14e(0x1e6)](_0x46e14e(0x45f),_0x46e14e(0x50f)),_0x5a43fc[_0x46e14e(0x234)]({'cmd':b['HELLO']}),this[_0x46e14e(0x373)]();}[_0x519e85(0x410)](){const _0x531b67=_0x519e85;window[_0x531b67(0x170)]('offline',()=>this['_onOffline']());}[_0x519e85(0x2f0)](){const _0xe8e930=_0x519e85;this[_0xe8e930(0x53f)]=!0x1,this[_0xe8e930(0x1c1)]=null,this[_0xe8e930(0x4f9)]['next'](H['OFFLINE']),this[_0xe8e930(0x4eb)][_0xe8e930(0x4a5)](null),this[_0xe8e930(0x514)](),this[_0xe8e930(0x159)]();}['_onConnectionFailed'](){const _0x1a0a7b=_0x519e85;var _0xd64c35;this['_onOffline'](),this['_retryCount']<((_0xd64c35=this[_0x1a0a7b(0x240)][_0x1a0a7b(0x2a1)](It))!=null?_0xd64c35:is)?(this['_messageService']['show']({'key':_0x1a0a7b(0x1a1),'type':q['MessageType']['Warning'],'content':this[_0x1a0a7b(0x4e0)]['t'](_0x1a0a7b(0x22e))}),this[_0x1a0a7b(0x2fe)]()):this[_0x1a0a7b(0x3a9)][_0x1a0a7b(0x519)]({'key':_0x1a0a7b(0x1a1),'type':q[_0x1a0a7b(0x25c)][_0x1a0a7b(0x414)],'content':this[_0x1a0a7b(0x4e0)]['t'](_0x1a0a7b(0x15f))});}[_0x519e85(0x534)](){const _0x5aecde=_0x519e85,_0xe0a931=()=>{const _0x2d86ca=_0x5923;this[_0x2d86ca(0x298)]||this[_0x2d86ca(0x4ae)]();},_0x2bd2a2=()=>{const _0x2d5f01=_0x5923;this[_0x2d5f01(0x298)]||document[_0x2d5f01(0x520)]===_0x2d5f01(0x1f4)||this['reconnect']();};window[_0x5aecde(0x170)]('online',_0xe0a931),document[_0x5aecde(0x170)](_0x5aecde(0x1eb),_0x2bd2a2);}[_0x519e85(0x2fe)](){const _0x39cdf9=_0x519e85;var _0x14fd17;const _0x940cc1=this[_0x39cdf9(0x1f8)],_0x43a48d=this[_0x39cdf9(0x240)]['getConfig'](L),_0x557a29=_0x940cc1===0x0?0x0:((_0x14fd17=_0x43a48d==null?void 0x0:_0x43a48d['retryConnectingInterval'])!=null?_0x14fd17:ss)*0x2**_0x940cc1;this[_0x39cdf9(0x376)]=window[_0x39cdf9(0x13d)](()=>{const _0xfaf2e6=_0x39cdf9;clearTimeout(this[_0xfaf2e6(0x376)]),this[_0xfaf2e6(0x376)]=null,this[_0xfaf2e6(0x246)]();},_0x557a29),this[_0x39cdf9(0x1f8)]+=0x1;}[_0x519e85(0x40e)](_0x32fc29,_0x2dfe92){const _0x59a03b=_0x519e85,{cmd:_0x465582}=_0x2dfe92;_0x465582===b[_0x59a03b(0x2e8)]&&!this[_0x59a03b(0x53f)]&&(_0x32fc29[_0x59a03b(0x244)]=_0x2dfe92['data']['memberID'],this[_0x59a03b(0x4eb)][_0x59a03b(0x4a5)](_0x32fc29),this[_0x59a03b(0x4f9)]['next'](H[_0x59a03b(0x48f)]),this[_0x59a03b(0x53f)]=!0x0,this[_0x59a03b(0x1c1)]=null),_0x465582===b[_0x59a03b(0x391)]&&this['_clearTimeoutTimer'](),this[_0x59a03b(0x373)]();}['_rescheduleHeartbeat'](){const _0x2b1e4c=_0x519e85;var _0x42c5b1;this[_0x2b1e4c(0x159)](),this[_0x2b1e4c(0x17d)]=window['setTimeout'](()=>this[_0x2b1e4c(0x29f)](),(_0x42c5b1=this[_0x2b1e4c(0x240)]['getConfig'](gt))!=null?_0x42c5b1:ts);}[_0x519e85(0x29f)](){const _0xc37c9a=_0x519e85;this['_socket'][_0xc37c9a(0x234)]({'cmd':b[_0xc37c9a(0x391)]}),this[_0xc37c9a(0x2b9)]();}[_0x519e85(0x2b9)](){const _0x364805=_0x519e85;var _0x1ebeba;this['_timeoutTimer']=window[_0x364805(0x13d)](()=>this[_0x364805(0x1ba)](),(_0x1ebeba=this[_0x364805(0x240)]['getConfig'](Ge))!=null?_0x1ebeba:ft);}[_0x519e85(0x159)](){const _0x441ff5=_0x519e85;this[_0x441ff5(0x17d)]!=null&&(clearTimeout(this[_0x441ff5(0x17d)]),this[_0x441ff5(0x17d)]=null);}['_clearTimeoutTimer'](){const _0x16f819=_0x519e85;this[_0x16f819(0x358)]!=null&&(clearTimeout(this[_0x16f819(0x358)]),this[_0x16f819(0x358)]=null);}},exports[_0x519e85(0x2dc)]=bs([Z(0x0,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),Z(0x1,a[_0x519e85(0x2ce)](a['LocaleService'])),Z(0x2,A[_0x519e85(0x15d)]),Z(0x3,a['ILogService']),Z(0x4,a[_0x519e85(0x1ab)]),Z(0x5,Ke)],exports[_0x519e85(0x2dc)]);var O=[];for(var Ue=0x0;Ue<0x100;++Ue)O[_0x519e85(0x50d)]((Ue+0x100)[_0x519e85(0x3b2)](0x10)[_0x519e85(0x243)](0x1));function Ts(_0x4601d3,_0x413412=0x0){const _0x57610c=_0x519e85;return(O[_0x4601d3[_0x413412+0x0]]+O[_0x4601d3[_0x413412+0x1]]+O[_0x4601d3[_0x413412+0x2]]+O[_0x4601d3[_0x413412+0x3]]+'-'+O[_0x4601d3[_0x413412+0x4]]+O[_0x4601d3[_0x413412+0x5]]+'-'+O[_0x4601d3[_0x413412+0x6]]+O[_0x4601d3[_0x413412+0x7]]+'-'+O[_0x4601d3[_0x413412+0x8]]+O[_0x4601d3[_0x413412+0x9]]+'-'+O[_0x4601d3[_0x413412+0xa]]+O[_0x4601d3[_0x413412+0xb]]+O[_0x4601d3[_0x413412+0xc]]+O[_0x4601d3[_0x413412+0xd]]+O[_0x4601d3[_0x413412+0xe]]+O[_0x4601d3[_0x413412+0xf]])[_0x57610c(0x423)]();}var Se,Rs=new Uint8Array(0x10);function Os(){const _0x412fa8=_0x519e85;if(!Se&&(Se=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x412fa8(0x166)][_0x412fa8(0x3e5)](crypto),!Se))throw new Error(_0x412fa8(0x3b8));return Se(Rs);}var Ds=typeof crypto<'u'&&crypto[_0x519e85(0x26c)]&&crypto[_0x519e85(0x26c)][_0x519e85(0x3e5)](crypto);const st={'randomUUID':Ds};function ys(_0x11fc90,_0x25f851,_0x3c2d81){const _0x5f51a9=_0x519e85;if(st[_0x5f51a9(0x26c)]&&!_0x25f851&&!_0x11fc90)return st[_0x5f51a9(0x26c)]();_0x11fc90=_0x11fc90||{};var _0x45040c=_0x11fc90[_0x5f51a9(0x2d3)]||(_0x11fc90['rng']||Os)();return _0x45040c[0x6]=_0x45040c[0x6]&0xf|0x40,_0x45040c[0x8]=_0x45040c[0x8]&0x3f|0x80,Ts(_0x45040c);}var Us=Object['defineProperty'],Ps=Object[_0x519e85(0x361)],ws=(_0x639cca,_0x952d7f,_0x3e2114,_0x27e1d3)=>{const _0x3fef0c=_0x519e85;for(var _0x5f2c34=_0x27e1d3>0x1?void 0x0:_0x27e1d3?Ps(_0x952d7f,_0x3e2114):_0x952d7f,_0x41c18c=_0x639cca[_0x3fef0c(0x4c3)]-0x1,_0x19c56d;_0x41c18c>=0x0;_0x41c18c--)(_0x19c56d=_0x639cca[_0x41c18c])&&(_0x5f2c34=(_0x27e1d3?_0x19c56d(_0x952d7f,_0x3e2114,_0x5f2c34):_0x19c56d(_0x5f2c34))||_0x5f2c34);return _0x27e1d3&&_0x5f2c34&&Us(_0x952d7f,_0x3e2114,_0x5f2c34),_0x5f2c34;},Pe=(_0x1f7c90,_0x2c46b7)=>(_0x445fc8,_0x5585a8)=>_0x2c46b7(_0x445fc8,_0x5585a8,_0x1f7c90);let fe=class{constructor(_0x1fc83c,_0x5a67f6,_0x2f93e8){const _0x17ec30=_0x519e85;this[_0x17ec30(0x185)]=_0x1fc83c,this[_0x17ec30(0x435)]=_0x5a67f6,this[_0x17ec30(0x1dd)]=_0x2f93e8;}[_0x519e85(0x42b)](_0x21b897){const _0x23d0c7=_0x519e85;this[_0x23d0c7(0x3cb)](_0x21b897),this['_transformPreviousActiveRange'](_0x21b897);}[_0x519e85(0x248)](_0x34c1e2){const _0x4be202=_0x519e85,{unitID:_0x40486e}=_0x34c1e2,_0x19851b=this[_0x4be202(0x1dd)][_0x4be202(0x20a)](_0x40486e)[_0x4be202(0x3c5)](N[_0x4be202(0x48a)]),{redoCache:_0x469154}=_0x19851b[_0x4be202(0x151)]();if(_0x469154['length']===0x0)return _0x34c1e2;let _0xed692=a[_0x4be202(0x172)]['deepClone'](_0x34c1e2[_0x4be202(0x231)][0x0]);for(let _0x602753=0x0;_0x602753<_0x469154[_0x4be202(0x4c3)];_0x602753++){const _0x492652={'id':'doc.mutation.rich-text-editing','params':{..._0x469154[_0x602753]}},_0x4fafc1=this[_0x4be202(0x435)]['transformMutation'](_0xed692,_0x492652,!0x1);if(_[_0x4be202(0x506)](_0x4fafc1))throw _0x4fafc1[_0x4be202(0x2bf)];_0xed692=_0x4fafc1['m1Prime'];}return{...a[_0x4be202(0x172)][_0x4be202(0x215)](_0x34c1e2),'mutations':[_0xed692]};}[_0x519e85(0x3cb)](_0x59cc24){const _0x5e4341=_0x519e85,{unitID:_0x3ec7d0}=_0x59cc24,_0x16a1dd=this[_0x5e4341(0x1dd)][_0x5e4341(0x20a)](_0x3ec7d0)[_0x5e4341(0x3c5)](N[_0x5e4341(0x48a)]),{undoCache:_0x276ba1,redoCache:_0x355ecc}=_0x16a1dd['getUndoRedoMutationParamsCache']();if(_0x276ba1[_0x5e4341(0x4c3)]===0x0||_0x355ecc[_0x5e4341(0x4c3)]===0x0)return;const _0x41538e=[],_0x46a7cc=[];let _0x1690d2=a['Tools'][_0x5e4341(0x215)](_0x59cc24[_0x5e4341(0x231)][0x0]),_0x35b267=a['Tools'][_0x5e4341(0x215)](_0x59cc24[_0x5e4341(0x231)][0x0]);for(let _0x4c1df6=_0x276ba1[_0x5e4341(0x4c3)]-0x1;_0x4c1df6>=0x0;_0x4c1df6--){const _0x3c7f85={'id':'doc.mutation.rich-text-editing','params':{..._0x276ba1[_0x4c1df6]}},_0x43680a={'id':_0x5e4341(0x497),'params':{..._0x355ecc[_0x4c1df6]}},_0x43369d=this['_transformService'][_0x5e4341(0x48e)](_0x1690d2,_0x3c7f85,!0x1),_0x2cf173=this[_0x5e4341(0x435)]['transformMutation'](_0x35b267,_0x43680a,!0x1);if(_['isTransformMutationFailure'](_0x43369d))throw _0x43369d['error'];if(_[_0x5e4341(0x506)](_0x2cf173))throw _0x2cf173[_0x5e4341(0x2bf)];_0x41538e['unshift'](_0x43369d['m2Prime'][_0x5e4341(0x545)]),_0x46a7cc[_0x5e4341(0x4c6)](_0x2cf173[_0x5e4341(0x1e1)]['params']),_0x1690d2=_0x43369d[_0x5e4341(0x2d1)],_0x35b267=_0x2cf173['m1Prime'];}_0x16a1dd[_0x5e4341(0x2b6)]({'undoCache':_0x41538e,'redoCache':_0x46a7cc});}['_transformPreviousActiveRange'](_0x322027){const _0x48174e=_0x519e85,{unitID:_0x42e0fc}=_0x322027,_0x52d534=this[_0x48174e(0x1dd)][_0x48174e(0x20a)](_0x42e0fc)['with'](N[_0x48174e(0x48a)]),_0x362912=_0x52d534[_0x48174e(0x1be)]();if(_0x362912==null)return;const _0x12a2d5=[{'id':_0x48174e(0x497),'params':{'unitId':_0x322027['unitID'],'actions':null,'textRanges':[_0x362912]}}],_0x18733c=this[_0x48174e(0x435)]['transformMutationsWithChangeset'](_0x322027,_0x12a2d5);if(!_[_0x48174e(0x276)](_0x18733c))throw _0x18733c[_0x48174e(0x2bf)];const _0x558c6e=_0x18733c['m2Prime'][0x0]['params'][_0x48174e(0x1bf)];Array[_0x48174e(0x2f2)](_0x558c6e)&&_0x558c6e[_0x48174e(0x4c3)]&&_0x52d534[_0x48174e(0x1e0)](_0x558c6e[0x0]);}};fe=ws([Pe(0x0,a[_0x519e85(0x2ce)](a['Injector'])),Pe(0x1,_['ITransformService']),Pe(0x2,D[_0x519e85(0x239)])],fe);var Ns=Object[_0x519e85(0x1d9)],Ms=Object[_0x519e85(0x361)],As=(_0x3fe2c4,_0x3da984,_0x2c212b,_0x55a856)=>{const _0x410b60=_0x519e85;for(var _0x304998=_0x55a856>0x1?void 0x0:_0x55a856?Ms(_0x3da984,_0x2c212b):_0x3da984,_0x26b43d=_0x3fe2c4[_0x410b60(0x4c3)]-0x1,_0xc2ee4b;_0x26b43d>=0x0;_0x26b43d--)(_0xc2ee4b=_0x3fe2c4[_0x26b43d])&&(_0x304998=(_0x55a856?_0xc2ee4b(_0x3da984,_0x2c212b,_0x304998):_0xc2ee4b(_0x304998))||_0x304998);return _0x55a856&&_0x304998&&Ns(_0x3da984,_0x2c212b,_0x304998),_0x304998;},ce=(_0x26324d,_0x1d8ad0)=>(_0x68e73c,_0x4415c0)=>_0x1d8ad0(_0x68e73c,_0x4415c0,_0x26324d);exports[_0x519e85(0x26b)]=class extends a[_0x519e85(0x317)]{constructor(_0x370428,_0x415c35,_0x5cafba,_0x1c0c6c,_0x2d823b){const _0x1730ba=_0x519e85;super(),u(this,_0x1730ba(0x3d4),new Map()),u(this,_0x1730ba(0x45a),new Map()),u(this,_0x1730ba(0x20f),!0x1),(this[_0x1730ba(0x240)]=_0x370428,this[_0x1730ba(0x4e2)]=_0x415c35,this['_beforeCloseService']=_0x5cafba,this[_0x1730ba(0x4e0)]=_0x1c0c6c,this[_0x1730ba(0x463)]=_0x2d823b,this[_0x1730ba(0x445)]());}[_0x519e85(0x348)](){this['_disabled']=!0x0;}[_0x519e85(0x43e)](){const _0xcbb5e6=_0x519e85;this[_0xcbb5e6(0x20f)]=!0x1;}[_0x519e85(0x1b0)](){const _0x5d65f4=_0x519e85;this[_0x5d65f4(0x189)]()[_0x5d65f4(0x398)](()=>super[_0x5d65f4(0x1b0)]());}async[_0x519e85(0x1c2)](_0x209656){const _0x1e6b7e=_0x519e85;return this['_disabled']?null:this[_0x1e6b7e(0x4e2)]['getItem'](it(_0x209656));}async[_0x519e85(0x13e)](_0x196942,_0x4fc2a2){const _0x2c3a55=_0x519e85;return!!this[_0x2c3a55(0x4e2)]['setItem'](_0x196942,_0x4fc2a2);}['updateOfflineData'](_0x4c4368,_0x55d1b3,_0x594d13,_0xbfd2c7){const _0x274598=_0x519e85,_0x5fe730=this['_revisionService']['getCurrentRevOfUnit'](_0x4c4368);this[_0x274598(0x3d4)][_0x274598(0x22f)](_0x4c4368,{'unitID':_0x4c4368,'type':_0x55d1b3,'awaitingChangeset':_0x594d13,'mutations':_0xbfd2c7,'rev':_0x5fe730}),this[_0x274598(0x45a)]['has'](_0x4c4368)||this[_0x274598(0x46e)](_0x4c4368);}[_0x519e85(0x46e)](_0x36d883){const _0x4ec2a8=_0x519e85,_0xbd262f=this[_0x4ec2a8(0x4e3)]();_0xbd262f===0x0?this['_saveCache'](_0x36d883):this[_0x4ec2a8(0x45a)]['set'](_0x36d883,setTimeout(()=>this[_0x4ec2a8(0x3f6)](_0x36d883),_0xbd262f));}[_0x519e85(0x4e3)](){const _0x430826=_0x519e85;var _0x200552;return(_0x200552=this[_0x430826(0x240)][_0x430826(0x2a1)](pt))!=null?_0x200552:ns;}[_0x519e85(0x3f6)](_0x2b0929){const _0xe83d6c=_0x519e85,_0x3fd61b=this['_saveTaskMap'][_0xe83d6c(0x3f3)](_0x2b0929);return _0x3fd61b!==void 0x0&&window['clearTimeout'](_0x3fd61b),this[_0xe83d6c(0x4e2)]['setItem'](it(_0x2b0929),this[_0xe83d6c(0x3d4)][_0xe83d6c(0x3f3)](_0x2b0929))[_0xe83d6c(0x398)](()=>this[_0xe83d6c(0x45a)]['delete'](_0x2b0929));}async[_0x519e85(0x189)](){const _0x2dd015=_0x519e85,_0xd73082=[];this['_saveTaskMap'][_0x2dd015(0x27d)]((_0xd1a032,_0x10943b)=>{const _0x4f2761=_0x2dd015;window[_0x4f2761(0x331)](_0xd1a032),_0xd73082[_0x4f2761(0x50d)](this[_0x4f2761(0x3f6)](_0x10943b)[_0x4f2761(0x398)](()=>{const _0x143a98=_0x4f2761;this['_saveTaskMap'][_0x143a98(0x1a6)](_0x10943b);}));}),await Promise['all'](_0xd73082);}[_0x519e85(0x445)](){const _0xcb1424=_0x519e85;this[_0xcb1424(0x48d)](this[_0xcb1424(0x22a)][_0xcb1424(0x494)](()=>{const _0x5062cb=_0xcb1424;if(this[_0x5062cb(0x45a)]['size'])return this[_0x5062cb(0x4e0)]['t'](_0x5062cb(0x14f));}));}},exports[_0x519e85(0x26b)]=As([ce(0x0,a[_0x519e85(0x1ab)]),ce(0x1,a['ILocalStorageService']),ce(0x2,A[_0x519e85(0x295)]),ce(0x3,a[_0x519e85(0x2ce)](a['LocaleService'])),ce(0x4,a[_0x519e85(0x2ce)](_[_0x519e85(0x467)]))],exports['LocalCacheService']);function it(_0x370627){const _0x228c01=_0x519e85;return _0x228c01(0x302)+_0x370627;}var Ls=Object[_0x519e85(0x1d9)],js=Object[_0x519e85(0x361)],$s=(_0x3e6fe3,_0x1ca5af,_0x228da8,_0x4ccd68)=>{const _0x4f76f4=_0x519e85;for(var _0x20c11d=_0x4ccd68>0x1?void 0x0:_0x4ccd68?js(_0x1ca5af,_0x228da8):_0x1ca5af,_0x42515d=_0x3e6fe3[_0x4f76f4(0x4c3)]-0x1,_0x5ed638;_0x42515d>=0x0;_0x42515d--)(_0x5ed638=_0x3e6fe3[_0x42515d])&&(_0x20c11d=(_0x4ccd68?_0x5ed638(_0x1ca5af,_0x228da8,_0x20c11d):_0x5ed638(_0x20c11d))||_0x20c11d);return _0x4ccd68&&_0x20c11d&&Ls(_0x1ca5af,_0x228da8,_0x20c11d),_0x20c11d;},we=(_0x206e1d,_0x467cb)=>(_0x3105fc,_0x4f51d5)=>_0x467cb(_0x3105fc,_0x4f51d5,_0x206e1d);function Hs(_0x524e0e){const _0xc2de96=_0x519e85,{unitID:_0x376518,mutations:_0x265770}=_0x524e0e;return{'unitId':_0x376518,'subUnitId':_0x265770[0x0][_0xc2de96(0x545)][_0xc2de96(0x29a)]};}let Ie=class{constructor(_0x32d7e4,_0xceed3c,_0x3c1f69){const _0x1ef779=_0x519e85;this[_0x1ef779(0x185)]=_0x32d7e4,this[_0x1ef779(0x435)]=_0xceed3c,this[_0x1ef779(0x252)]=_0x3c1f69;}[_0x519e85(0x2c9)](_0x143764){const _0x3ae527=_0x519e85;var _0x5c6101,_0x1e1ad3,_0x408316,_0x1db2c7;const _0x1ded37=this['_injector'][_0x3ae527(0x3f3)](C[_0x3ae527(0x3b7)]),{unitId:_0x4e716e,subUnitId:_0x3426cd}=Hs(_0x143764),_0x37aa7e=_0x1ded37[_0x3ae527(0x308)](_0x4e716e)[_0x3ae527(0x39b)](),_0x3c3239=(_0x1e1ad3=(_0x5c6101=this[_0x3ae527(0x252)][_0x3ae527(0x345)](_0x4e716e))==null?void 0x0:_0x5c6101[_0x3ae527(0x409)]())==null?void 0x0:_0x1e1ad3[_0x3ae527(0x4cf)]();if(_0x37aa7e[_0x3ae527(0x4c3)]===0x0||!_0x4e716e||!_0x3426cd)return;const _0x5da430=[{'id':C[_0x3ae527(0x3c9)]['id'],'params':{'unitId':_0x4e716e,'subUnitId':_0x3c3239,'selections':a[_0x3ae527(0x172)][_0x3ae527(0x215)](_0x37aa7e)}}],_0x1df039=this[_0x3ae527(0x435)][_0x3ae527(0x480)](_0x143764,_0x5da430);if(!_[_0x3ae527(0x276)](_0x1df039))throw _0x1df039[_0x3ae527(0x2bf)];const _0x2f1c87=(_0x1db2c7=(_0x408316=_0x1df039[_0x3ae527(0x1e1)][0x0])==null?void 0x0:_0x408316[_0x3ae527(0x545)])==null?void 0x0:_0x1db2c7['selections'];if(Array[_0x3ae527(0x2f2)](_0x2f1c87)&&_0x2f1c87[_0x3ae527(0x4c3)]){if(_0x2f1c87[_0x3ae527(0x4c3)]===_0x5da430[0x0][_0x3ae527(0x545)][_0x3ae527(0x3dd)][_0x3ae527(0x4c3)]&&_0x2f1c87['every']((_0x5de952,_0x30d0d2)=>a[_0x3ae527(0x1e9)][_0x3ae527(0x19c)](_0x5de952[_0x3ae527(0x4ca)],_0x5da430[0x0]['params'][_0x3ae527(0x3dd)][_0x30d0d2][_0x3ae527(0x4ca)])))return;this[_0x3ae527(0x185)]['get'](a['ICommandService'])[_0x3ae527(0x1b8)](C[_0x3ae527(0x3c9)]['id'],{'unitId':_0x4e716e,'subUnitId':_0x3c3239,'selections':_0x2f1c87});}}};Ie=$s([we(0x0,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),we(0x1,_[_0x519e85(0x18d)]),we(0x2,a['IUniverInstanceService'])],Ie);const Re=a[_0x519e85(0x29c)](_0x519e85(0x436));var Dt=(_0xc5eeae=>(_0xc5eeae[_0xc5eeae[_0x519e85(0x4e9)]=0x0]=_0x519e85(0x4e9),_0xc5eeae[_0xc5eeae[_0x519e85(0x34a)]=0x1]=_0x519e85(0x34a),_0xc5eeae))(Dt||{});const nt=0x7530,rt=_0x519e85(0x293);class xs extends a['Disposable']{constructor(){const _0x30aa21=_0x519e85;super(),u(this,_0x30aa21(0x35e),a['Tools'][_0x30aa21(0x4cc)]()),u(this,_0x30aa21(0x1c7),new Set()),u(this,_0x30aa21(0x51f),new Map()),u(this,_0x30aa21(0x547),null),u(this,_0x30aa21(0x1f3),new Map()),u(this,_0x30aa21(0x26e),new Map()),this[_0x30aa21(0x3dc)]();}['dispose'](){const _0x350901=_0x519e85;super['dispose'](),this[_0x350901(0x1f3)][_0x350901(0x27d)]((_0x1f9e37,_0x4e38cd)=>this[_0x350901(0x2ca)](_0x4e38cd)),this['_heartbeatTimer']&&window[_0x350901(0x19a)](this[_0x350901(0x547)]);}['getUnitStatus$'](_0x2c9953){const _0x57087e=_0x519e85;return this[_0x57087e(0x223)](_0x2c9953)[_0x57087e(0x479)](v[_0x57087e(0x330)]());}[_0x519e85(0x14a)](_0x30ed92){const _0x2f6da8=_0x519e85;this['_selfUnitIDs']['size']===0x0&&this[_0x2f6da8(0x4ab)](),this[_0x2f6da8(0x1c7)]['add'](_0x30ed92),this[_0x2f6da8(0x344)]({'type':0x0,'memberID':this[_0x2f6da8(0x35e)],'unitIDs':[_0x30ed92],'isForwarded':!0x1});}[_0x519e85(0x260)](_0x13a35a){const _0x4db9c0=_0x519e85;this[_0x4db9c0(0x1c7)]['delete'](_0x13a35a),this[_0x4db9c0(0x1c7)][_0x4db9c0(0x408)]===0x0&&this[_0x4db9c0(0x547)]&&window[_0x4db9c0(0x19a)](this['_heartbeatTimer']);}['_init'](){const _0x8a1e98=_0x519e85;this[_0x8a1e98(0x48d)](a[_0x8a1e98(0x49a)](v['fromEvent'](window,'storage')['subscribe'](_0x48a640=>{const _0x4ae397=_0x8a1e98;if(_0x48a640[_0x4ae397(0x40a)]!==rt||!_0x48a640[_0x4ae397(0x138)])return;const _0x151052=JSON[_0x4ae397(0x4e7)](_0x48a640['newValue']);this[_0x4ae397(0x201)](_0x151052);}))),window['addEventListener'](_0x8a1e98(0x2f3),()=>this[_0x8a1e98(0x344)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x8a1e98(0x22d)](this['_selfUnitIDs'])}));}[_0x519e85(0x201)](_0x417773){const _0x5970e5=_0x519e85;switch(_0x417773[_0x5970e5(0x4fb)]){case 0x0:this[_0x5970e5(0x499)](_0x417773);break;case 0x1:this[_0x5970e5(0x32f)](_0x417773);break;case 0x2:this['_handleHeartbeatEvent'](_0x417773);break;}}[_0x519e85(0x499)](_0x157d3d){const _0x221c33=_0x519e85,{unitIDs:_0x43a576,memberID:_0x1cb64f,isForwarded:_0x4cb70a}=_0x157d3d;_0x43a576[_0x221c33(0x27d)](_0x33ded9=>{const _0x11fe8e=_0x221c33;if(!_0x4cb70a&&this[_0x11fe8e(0x51f)][_0x11fe8e(0x32d)](_0x33ded9)&&this[_0x11fe8e(0x223)](_0x33ded9)[_0x11fe8e(0x4a5)](0x1),!this[_0x11fe8e(0x51f)]['has'](_0x33ded9)||!this[_0x11fe8e(0x51f)]['get'](_0x33ded9)[_0x11fe8e(0x32d)](_0x1cb64f)){const _0x26abde=this[_0x11fe8e(0x51f)][_0x11fe8e(0x3f3)](_0x33ded9)||new Set();_0x26abde['add'](_0x1cb64f),this[_0x11fe8e(0x51f)][_0x11fe8e(0x22f)](_0x33ded9,_0x26abde),this[_0x11fe8e(0x4ea)](_0x1cb64f);}}),_0x4cb70a||this[_0x221c33(0x344)]({'type':0x0,'memberID':this[_0x221c33(0x35e)],'unitIDs':[...this[_0x221c33(0x1c7)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x561256){const _0x59be23=_0x519e85;this[_0x59be23(0x2ca)](_0x561256);const _0x16b100=window['setTimeout'](()=>{const _0x21a1a8=_0x59be23;this['_unitOnClients'][_0x21a1a8(0x27d)](_0x20bbc4=>{const _0x48d9e3=_0x21a1a8;_0x20bbc4[_0x48d9e3(0x1a6)](_0x561256);});},nt*0x2);this['_clearOtherTimers'][_0x59be23(0x22f)](_0x561256,_0x16b100);}[_0x519e85(0x2ca)](_0x1e4889){const _0x5a754d=_0x519e85;if(this['_clearOtherTimers']['has'](_0x1e4889)){const _0x1d8b9f=this[_0x5a754d(0x1f3)][_0x5a754d(0x3f3)](_0x1e4889);_0x1d8b9f&&window['clearTimeout'](_0x1d8b9f),this[_0x5a754d(0x1f3)][_0x5a754d(0x22f)](_0x1e4889,null);}}[_0x519e85(0x32f)](_0x1ee9dd){const _0x549977=_0x519e85,{memberID:_0x10e091,unitIDs:_0x39c63}=_0x1ee9dd;_0x39c63['forEach'](_0x47751c=>{const _0x531826=_0x5923;var _0x39994f;const _0x5af3c9=this['_unitOnClients'][_0x531826(0x3f3)](_0x47751c);_0x5af3c9&&(_0x5af3c9['delete'](_0x10e091),(_0x39994f=this[_0x531826(0x223)](_0x47751c))==null||_0x39994f[_0x531826(0x4a5)](_0x5af3c9['size']===0x0?0x0:0x1));}),this[_0x549977(0x2ca)](_0x10e091);}[_0x519e85(0x141)](_0x893808){const _0x3da3de=_0x519e85;this[_0x3da3de(0x4ea)](_0x893808[_0x3da3de(0x244)]);}[_0x519e85(0x344)](_0x82575b){const _0x5a6784=_0x519e85;localStorage[_0x5a6784(0x47c)](rt,JSON[_0x5a6784(0x425)](_0x82575b));}['_scheduleHeartbeat'](){const _0x1a0180=_0x519e85;this[_0x1a0180(0x547)]=window[_0x1a0180(0x541)](()=>{const _0x1a61ac=_0x1a0180;this[_0x1a61ac(0x344)]({'type':0x2,'memberID':this[_0x1a61ac(0x35e)]});},nt);}[_0x519e85(0x223)](_0x9b1afe){const _0x34f257=_0x519e85;return this[_0x34f257(0x26e)][_0x34f257(0x32d)](_0x9b1afe)||this['_unitStatus'][_0x34f257(0x22f)](_0x9b1afe,new v[(_0x34f257(0x49e))](0x0)),this[_0x34f257(0x26e)][_0x34f257(0x3f3)](_0x9b1afe);}}function yt(_0x1a0947){const _0x4f49cb=_0x519e85;let _0x181ee2='';for(const _0x1cab6b of _0x1a0947){const {startOffset:_0x38296c,endOffset:_0xe58eff,isActive:_0x43ad0e}=_0x1cab6b;_0x181ee2[_0x4f49cb(0x4c3)]&&(_0x181ee2+=','),_0x181ee2+=_0x38296c+':'+_0xe58eff+':'+(_0x43ad0e?'1':'0');}return _0x181ee2;}function ks(_0x4318bb){const _0x5c33f6=_0x519e85,_0x536ee2=_0x4318bb[_0x5c33f6(0x341)](','),_0x25a2a5=[];for(const _0x368346 of _0x536ee2){const [_0x1c004f,_0x35ff0a,_0x12e8e0]=_0x368346[_0x5c33f6(0x341)](':');_0x25a2a5[_0x5c33f6(0x50d)]({'startOffset':Number(_0x1c004f),'endOffset':Number(_0x35ff0a),'collapsed':_0x1c004f===_0x35ff0a,'isActive':_0x12e8e0==='1'});}return _0x25a2a5['some'](_0x393321=>_0x393321[_0x5c33f6(0x284)])||(_0x25a2a5[0x0]['isActive']=!0x0),_0x25a2a5;}class Xe extends a[_0x519e85(0x2a2)]{constructor(){const _0x540375=_0x519e85;super(...arguments),u(this,_0x540375(0x3d5),new v[(_0x540375(0x49e))](null)),u(this,_0x540375(0x537),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x454d93){const _0x5b0e81=_0x519e85,{unitID:_0x3eaf60,memberID:_0x27ddc4,textRanges:_0xc1dbb3}=_0x454d93,_0x2f550b=yt(_0xc1dbb3),_0x32d23d={'unitID':_0x3eaf60,'memberID':_0x27ddc4,'selection':_0x2f550b};this[_0x5b0e81(0x3d5)]['next'](_0x32d23d);}}var Bs=Object[_0x519e85(0x1d9)],Vs=Object['getOwnPropertyDescriptor'],Ws=(_0x43a2ce,_0x35f0ab,_0x4efe71,_0x3dba81)=>{for(var _0x318f5e=_0x3dba81>0x1?void 0x0:_0x3dba81?Vs(_0x35f0ab,_0x4efe71):_0x35f0ab,_0x5ceb9f=_0x43a2ce['length']-0x1,_0x32ce83;_0x5ceb9f>=0x0;_0x5ceb9f--)(_0x32ce83=_0x43a2ce[_0x5ceb9f])&&(_0x318f5e=(_0x3dba81?_0x32ce83(_0x35f0ab,_0x4efe71,_0x318f5e):_0x32ce83(_0x318f5e))||_0x318f5e);return _0x3dba81&&_0x318f5e&&Bs(_0x35f0ab,_0x4efe71,_0x318f5e),_0x318f5e;},ot=(_0x315e6c,_0x870025)=>(_0x43f064,_0x37a118)=>_0x870025(_0x43f064,_0x37a118,_0x315e6c);let pe=class{constructor(_0x2b7209,_0x1fc9a1){const _0x5a2e0d=_0x519e85;this[_0x5a2e0d(0x185)]=_0x2b7209,this[_0x5a2e0d(0x435)]=_0x1fc9a1;}['transformSelections'](_0x140a47){const _0x1209ff=_0x519e85;var _0x223fee;const _0x292943=this['_injector'][_0x1209ff(0x3f3)](se['DocSelectionManagerService']),_0x42cac5=(_0x223fee=_0x292943[_0x1209ff(0x194)]())!=null?_0x223fee:[];if(_0x42cac5[_0x1209ff(0x4c3)]===0x0)return;const _0x4b9ed1=[{'id':_0x1209ff(0x497),'params':{'unitId':_0x140a47[_0x1209ff(0x371)],'actions':null,'textRanges':_0x42cac5}}],_0x27e242=this[_0x1209ff(0x435)][_0x1209ff(0x480)](_0x140a47,_0x4b9ed1);if(!_[_0x1209ff(0x276)](_0x27e242))throw _0x27e242[_0x1209ff(0x2bf)];const _0x5af242=_0x27e242[_0x1209ff(0x1e1)][0x0][_0x1209ff(0x545)][_0x1209ff(0x1bf)];Array[_0x1209ff(0x2f2)](_0x5af242)&&_0x5af242[_0x1209ff(0x4c3)]&&_0x292943[_0x1209ff(0x3cf)](_0x5af242,!0x1);}};pe=Ws([ot(0x0,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),ot(0x1,_[_0x519e85(0x18d)])],pe);const Fs=new Set([C[_0x519e85(0x214)]['id']]);function at(_0x4c3315,_0x119328,_0x169ab3,_0x4ad9a8,_0x27fe89){const _0x1c1ce4=_0x519e85;var _0x328de6,_0x285901,_0x43f57f,_0x291789;const _0x68b96c=[];for(const _0x16f06d of _0x4c3315)if(Fs[_0x1c1ce4(0x32d)](_0x16f06d['id'])){if(_0x68b96c[_0x1c1ce4(0x4c3)]>0x0)break;_0x68b96c['push'](_0x16f06d);break;}else _0x68b96c['push'](_0x16f06d);const _0xa47e4e=(_0x285901=(_0x328de6=_0x27fe89[_0x1c1ce4(0x235)]())==null?void 0x0:_0x328de6[_0x1c1ce4(0x182)])!=null?_0x285901:_0x1c1ce4(0x154),_0x13dceb=(_0x291789=(_0x43f57f=_0x27fe89[_0x1c1ce4(0x235)]())==null?void 0x0:_0x43f57f[_0x1c1ce4(0x244)])!=null?_0x291789:_0x1c1ce4(0x154);return{'changeset':{'unitID':_0x119328,'type':_['mapDocumentTypeToUniverType'](_0x169ab3[_0x1c1ce4(0x12d)](_0x119328)),'baseRev':_0x4ad9a8[_0x1c1ce4(0x4af)](_0x119328),'revision':0x0,'userID':_0xa47e4e,'memberID':_0x13dceb,'mutations':_0x68b96c},'pendingMutations':_0x4c3315['slice'](_0x68b96c['length'])};}function Gs(_0x197758,_0x5186d2,_0x2164e5,_0x2a712b,_0x5aad12){const _0x1e8b2e=_0x519e85;var _0x1085d2,_0x19f2c9,_0xf32a55,_0x32c623;const _0xa3c591=[_0x197758[_0x1e8b2e(0x50b)]((_0x397827,_0x431e07)=>{const _0xb3f3b9=_0x1e8b2e;var _0x135113;const {id:_0x37cace}=_0x397827,{id:_0x423dcd,type:_0x95ee51}=_0x431e07,_0x44311b=(_0x135113=_0x397827[_0xb3f3b9(0x545)])!=null?_0x135113:{'actions':null},_0x5870c6=_0x431e07[_0xb3f3b9(0x545)];if(_0x37cace&&_0x37cace!==_0x423dcd)throw new Error(_0xb3f3b9(0x131)+_0x37cace+_0xb3f3b9(0x136)+_0x423dcd+'.');return{..._0x397827,'id':_0x423dcd,'type':_0x95ee51,'params':{'unitId':_0x5870c6[_0xb3f3b9(0x513)],'textRanges':_0x5870c6['textRanges'],'actions':a[_0xb3f3b9(0x2c1)][_0xb3f3b9(0x3ed)](_0x44311b[_0xb3f3b9(0x47d)],_0x5870c6['actions'])}};},{})],_0x3fa7a4=(_0x19f2c9=(_0x1085d2=_0x5aad12['getCurrentUser']())==null?void 0x0:_0x1085d2[_0x1e8b2e(0x182)])!=null?_0x19f2c9:'unknown',_0x5df13e=(_0x32c623=(_0xf32a55=_0x5aad12[_0x1e8b2e(0x235)]())==null?void 0x0:_0xf32a55[_0x1e8b2e(0x244)])!=null?_0x32c623:_0x1e8b2e(0x154);return{'changeset':{'unitID':_0x5186d2,'type':_[_0x1e8b2e(0x510)](_0x2164e5[_0x1e8b2e(0x12d)](_0x5186d2)),'baseRev':_0x2a712b[_0x1e8b2e(0x4af)](_0x5186d2),'revision':0x0,'userID':_0x3fa7a4,'memberID':_0x5df13e,'mutations':_0xa3c591},'pendingMutations':[]};}function Ut(_0x577a64,_0x35d7ee){const _0x1093da=_0x519e85,_0x6a6fa9=new v[(_0x1093da(0x24e))](0x1);return setTimeout(()=>_0x6a6fa9[_0x1093da(0x4a5)](_0x35d7ee),_0x577a64),_0x6a6fa9[_0x1093da(0x441)]()[_0x1093da(0x479)](v[_0x1093da(0x312)](0x1));}const Ys={'id':C[_0x519e85(0x241)]['id'],'type':a[_0x519e85(0x291)][_0x519e85(0x44a)],'params':{}};var Ks=Object[_0x519e85(0x1d9)],qs=Object[_0x519e85(0x361)],z=(_0x595de9,_0x4cc8dc,_0x1f95c0,_0x3de70e)=>{const _0x257bf6=_0x519e85;for(var _0xcfbf3e=_0x3de70e>0x1?void 0x0:_0x3de70e?qs(_0x4cc8dc,_0x1f95c0):_0x4cc8dc,_0x4db4e0=_0x595de9[_0x257bf6(0x4c3)]-0x1,_0xc4d9a7;_0x4db4e0>=0x0;_0x4db4e0--)(_0xc4d9a7=_0x595de9[_0x4db4e0])&&(_0xcfbf3e=(_0x3de70e?_0xc4d9a7(_0x4cc8dc,_0x1f95c0,_0xcfbf3e):_0xc4d9a7(_0xcfbf3e))||_0xcfbf3e);return _0x3de70e&&_0xcfbf3e&&Ks(_0x4cc8dc,_0x1f95c0,_0xcfbf3e),_0xcfbf3e;},g=(_0x3ae127,_0x279645)=>(_0x4c4cf4,_0x1f81ff)=>_0x279645(_0x4c4cf4,_0x1f81ff,_0x3ae127),U=(_0x2f9d71=>(_0x2f9d71[_0x519e85(0x1cb)]=_0x519e85(0x27f),_0x2f9d71[_0x519e85(0x139)]=_0x519e85(0x1c4),_0x2f9d71['PENDING']=_0x519e85(0x2f7),_0x2f9d71[_0x519e85(0x160)]=_0x519e85(0x3f9),_0x2f9d71[_0x519e85(0x1b1)]=_0x519e85(0x3a1),_0x2f9d71[_0x519e85(0x1c5)]='fetch_missing',_0x2f9d71[_0x519e85(0x34b)]=_0x519e85(0x2fa),_0x2f9d71[_0x519e85(0x4d7)]=_0x519e85(0x161),_0x2f9d71))(U||{});const Pt=0xea60;class J{constructor(_0x38b5bc,_0x236b90,_0x4d1e80,_0x52eda3,_0x43fd13,_0x12dd32,_0x1ed78d,_0x5419d7,_0x172b57){const _0x353149=_0x519e85;u(this,'_awaitingChangeset',null),u(this,'_pendingMutations',[]),(this['unitID']=_0x38b5bc,this[_0x353149(0x4fb)]=_0x236b90,this[_0x353149(0x2f8)]=_0x43fd13,this[_0x353149(0x3d7)]=_0x12dd32,this[_0x353149(0x2fb)]=_0x1ed78d,this[_0x353149(0x463)]=_0x5419d7,this[_0x353149(0x548)]=_0x172b57,this['_awaitingChangeset']=_0x4d1e80,this['_pendingMutations']=_0x52eda3);}['_checkMissing'](_0x6b5861){const _0x37c19f=_0x519e85,_0x596485=this[_0x37c19f(0x463)][_0x37c19f(0x4af)](this[_0x37c19f(0x371)]);return _0x6b5861[_0x37c19f(0x2e2)]>_0x596485+0x1?(this[_0x37c19f(0x2f8)][_0x37c19f(0x3ac)]({'from':_0x596485,'to':_0x6b5861[_0x37c19f(0x2e2)]-0x1}),!0x0):!0x1;}[_0x519e85(0x176)](_0x45ed85){const _0x2ca1a2=_0x519e85;this[_0x2ca1a2(0x2fb)][_0x2ca1a2(0x4e8)](this[_0x2ca1a2(0x371)],_0x45ed85);}[_0x519e85(0x35f)](_0x2473d8){const _0x1a6d5a=_0x519e85;var _0x245ef5,_0x236779;(_0x236779=(_0x245ef5=this['_handler'])['onTransformSelections'])==null||_0x236779[_0x1a6d5a(0x394)](_0x245ef5,_0x2473d8);}[_0x519e85(0x526)](_0x395562){const _0x3a58de=_0x519e85;var _0x4cdf60,_0x3be3b6;return(_0x3be3b6=(_0x4cdf60=this[_0x3a58de(0x2f8)])['onTransformIME'])==null?void 0x0:_0x3be3b6[_0x3a58de(0x394)](_0x4cdf60,_0x395562);}[_0x519e85(0x2a3)](_0x2cfc22){const _0x1e622f=_0x519e85;var _0x2dd0c3,_0x45b09c,_0x5c43cb;return(_0x5c43cb=(_0x45b09c=(_0x2dd0c3=this[_0x1e622f(0x2f8)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x45b09c['call'](_0x2dd0c3,_0x2cfc22))!=null?_0x5c43cb:_0x2cfc22;}[_0x519e85(0x516)](_0x305520){const _0x27a787=_0x519e85;var _0x37e646,_0x567fb8;if(this['type']===$[_0x27a787(0x33b)]){const {unitID:_0x550ae7,mutations:_0x4407ef,memberID:_0x39b250}=_0x305520,_0x27de08=_0x4407ef[0x0][_0x27a787(0x545)]['textRanges'];Array[_0x27a787(0x2f2)](_0x27de08)&&_0x27de08[_0x27a787(0x4c3)]>0x0&&((_0x567fb8=(_0x37e646=this['_handler'])[_0x27a787(0x531)])==null||_0x567fb8['call'](_0x37e646,{'unitID':_0x550ae7,'memberID':_0x39b250,'textRanges':_0x27de08}));}}['_updateLocalCache'](){const _0xbf947e=_0x519e85;this[_0xbf947e(0x548)][_0xbf947e(0x3c1)](this[_0xbf947e(0x371)],this[_0xbf947e(0x4fb)],this[_0xbf947e(0x1af)],this[_0xbf947e(0x1f2)]);}[_0x519e85(0x536)](){const _0x35726d=_0x519e85;return this['_revisionService'][_0x35726d(0x4af)](this[_0x35726d(0x371)]);}['_incrementRevisionNumber'](){const _0x183969=_0x519e85;this[_0x183969(0x463)][_0x183969(0x132)](this['unitID']);}[_0x519e85(0x3de)](_0x3829f5){const _0x1504df=_0x519e85;var _0x4aee42;const _0x27ae09=this[_0x1504df(0x2a3)](_0x3829f5),_0x1b8826=a[_0x1504df(0x466)](_0x27ae09['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x1b8826[_0x1504df(0x2e5)])throw _0x1b8826['error']instanceof Error?_0x1b8826[_0x1504df(0x2bf)]:new Error((_0x4aee42=_0x1b8826[_0x1504df(0x2bf)])!=null?_0x4aee42:_0x1504df(0x17a));this[_0x1504df(0x526)](_0x27ae09),this['_transformUndoredo'](_0x3829f5),this[_0x1504df(0x35f)](_0x27ae09),this[_0x1504df(0x516)](_0x27ae09),this[_0x1504df(0x18e)]();}}let ie=class extends J{constructor(_0x25082a,_0x4d85f2,_0x12a199,_0x3d4f71,_0x2a7a2f,_0x812891,_0x52cede,_0x30c764,_0x59424d,_0x287ab4){const _0x570c30=_0x519e85;super(_0x25082a,_0x4d85f2,null,[],_0x12a199,_0x30c764,_0x52cede,_0x3d4f71,_0x2a7a2f),u(this,_0x570c30(0x12c),_0x570c30(0x1c4)),(this['_injector']=_0x812891,this[_0x570c30(0x438)]=_0x59424d,this[_0x570c30(0x435)]=_0x287ab4);}[_0x519e85(0x290)](_0x1c9b98){const _0xaf5879=_0x519e85,_0x230b66=this[_0xaf5879(0x185)][_0xaf5879(0x153)](k,this['unitID'],this[_0xaf5879(0x4fb)],[_0x1c9b98],this[_0xaf5879(0x2f8)]);return _0x230b66[_0xaf5879(0x3f7)](),_0x230b66[_0xaf5879(0x24c)](),_0x230b66;}[_0x519e85(0x34e)](_0x978616){const _0x46f460=_0x519e85;if(this[_0x46f460(0x2bd)](_0x978616))return this[_0x46f460(0x185)]['createInstance'](x,this[_0x46f460(0x371)],this[_0x46f460(0x4fb)],null,[],null,[_0x978616],this['_handler']);try{const _0x5f0bba=this[_0x46f460(0x435)][_0x46f460(0x480)](_0x978616,[Ys]);if(_[_0x46f460(0x276)](_0x5f0bba)){const {c1Prime:_0x46e3cb}=_0x5f0bba;return this[_0x46f460(0x3de)](_0x46e3cb),this;}throw _0x5f0bba[_0x46f460(0x2bf)];}catch(_0xa7eb8c){return this[_0x46f460(0x438)][_0x46f460(0x2bf)](_0xa7eb8c),this[_0x46f460(0x1d7)](!0x1);}}[_0x519e85(0x1d7)](_0x508ac7){const _0x1fe490=_0x519e85;return this[_0x1fe490(0x185)][_0x1fe490(0x153)](F,this[_0x1fe490(0x371)],this[_0x1fe490(0x4fb)],null,[],this['_handler'],_0x508ac7);}[_0x519e85(0x508)](){const _0xa791f2=_0x519e85;throw new Error(_0xa791f2(0x236));}[_0x519e85(0x272)](){const _0x108b69=_0x519e85;throw new Error(_0x108b69(0x26f));}[_0x519e85(0x53b)](){return this;}[_0x519e85(0x144)](){const _0x465de1=_0x519e85;return this[_0x465de1(0x185)][_0x465de1(0x153)](G,this['unitID'],this[_0x465de1(0x4fb)],null,[],this['_handler']);}[_0x519e85(0x1d1)](){return this;}[_0x519e85(0x3e1)](){const _0x5bb154=_0x519e85;throw new Error(_0x5bb154(0x2bb));}['fetchMiss'](){const _0xa7c45d=_0x519e85,_0x1e2849=this['_revisionService']['getCurrentRevOfUnit'](this[_0xa7c45d(0x371)]);return this[_0xa7c45d(0x2f8)][_0xa7c45d(0x3ac)]({'from':_0x1e2849,'to':0x0}),this[_0xa7c45d(0x185)][_0xa7c45d(0x153)](x,this[_0xa7c45d(0x371)],this[_0xa7c45d(0x4fb)],null,[],null,[],this[_0xa7c45d(0x2f8)]);}};ie=z([g(0x3,a[_0x519e85(0x2ce)](_[_0x519e85(0x467)])),g(0x4,a[_0x519e85(0x2ce)](exports[_0x519e85(0x26b)])),g(0x5,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),g(0x6,a[_0x519e85(0x249)]),g(0x7,a[_0x519e85(0x147)]),g(0x8,a[_0x519e85(0x481)]),g(0x9,_[_0x519e85(0x18d)])],ie);let k=class extends J{constructor(_0x2425b7,_0x22cbaa,_0xce0e0d,_0x5f1527,_0x1157be,_0x55d042,_0x16aa96,_0x4e59f4,_0xf9928b,_0x1053b0,_0x44139d,_0x44bfdb,_0xdcf7f2,_0x22ccab){const _0x55402c=_0x519e85;super(_0x2425b7,_0x22cbaa,null,_0xce0e0d,_0x5f1527,_0x1053b0,_0x22ccab,_0x55d042,_0x16aa96),u(this,_0x55402c(0x12c),_0x55402c(0x2f7)),u(this,'_scheduleTimestamp',null),u(this,_0x55402c(0x28e),null),(this[_0x55402c(0x185)]=_0x1157be,this[_0x55402c(0x3d8)]=_0x4e59f4,this[_0x55402c(0x438)]=_0xf9928b,this[_0x55402c(0x240)]=_0x44139d,this['_transformService']=_0x44bfdb,this['_univerInstanceService']=_0xdcf7f2);}[_0x519e85(0x290)](_0x1b8b27){const _0x1a183a=_0x519e85;return this[_0x1a183a(0x1f2)]['push'](_0x1b8b27),this[_0x1a183a(0x24c)](),this;}['onRemoteChangeset'](_0x4678d7){const _0x5d447c=_0x519e85;if(this[_0x5d447c(0x2bd)](_0x4678d7))return this[_0x5d447c(0x49b)](),this['_injector'][_0x5d447c(0x153)](x,this[_0x5d447c(0x371)],this[_0x5d447c(0x4fb)],null,this['_pendingMutations'],null,[_0x4678d7],this['_handler']);try{const _0x1202f2=this[_0x5d447c(0x435)][_0x5d447c(0x480)](_0x4678d7,this[_0x5d447c(0x1f2)]);if(_[_0x5d447c(0x276)](_0x1202f2)){const {c1Prime:_0x31cfe5,m2Prime:_0x1af8c4}=_0x1202f2;this[_0x5d447c(0x3de)](_0x31cfe5);const _0x45e030=this[_0x5d447c(0x185)][_0x5d447c(0x153)](k,this[_0x5d447c(0x371)],this[_0x5d447c(0x4fb)],_0x1af8c4,this[_0x5d447c(0x2f8)]);return this[_0x5d447c(0x49b)](),_0x45e030[_0x5d447c(0x3f7)](this[_0x5d447c(0x1e5)]?Math[_0x5d447c(0x2b7)](0x0,new Date()[_0x5d447c(0x450)]()-this['_scheduleTimestamp']):this[_0x5d447c(0x23e)]()),_0x45e030;}throw _0x1202f2['error'];}catch(_0x1fd306){return this['_logService'][_0x5d447c(0x2bf)](_0x1fd306),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x22f824=_0x519e85;throw new Error(_0x22f824(0x4c7));}[_0x519e85(0x272)](){const _0x1fb761=_0x519e85;throw new Error(_0x1fb761(0x3bf));}[_0x519e85(0x53b)](){return this;}[_0x519e85(0x144)](){const _0x18ba3=_0x519e85;return this[_0x18ba3(0x49b)](),this[_0x18ba3(0x185)][_0x18ba3(0x153)](G,this['unitID'],this[_0x18ba3(0x4fb)],null,this[_0x18ba3(0x1f2)],this[_0x18ba3(0x2f8)]);}[_0x519e85(0x1d1)](){return this;}['_schedule'](_0x54ea63){const _0x18d7a4=_0x519e85,_0x59b56d=_0x54ea63!=null?_0x54ea63:this['_getSendChangesetTimeout']();this[_0x18d7a4(0x1e5)]=new Date()[_0x18d7a4(0x450)](),this[_0x18d7a4(0x28e)]=window['setTimeout'](()=>{const _0x10f4ab=_0x18d7a4;this['_clearScheduledTask']();let _0x3ac57e=null;switch(this[_0x10f4ab(0x4fb)]){case $[_0x10f4ab(0x2ed)]:{_0x3ac57e=at(this['_pendingMutations'],this[_0x10f4ab(0x371)],this['_univerInstanceService'],this[_0x10f4ab(0x463)],this['_memberService']);break;}case $['UNIVER_DOC']:{this[_0x10f4ab(0x1f2)][_0x10f4ab(0x36d)](_0xd6e2bf=>_0xd6e2bf['id']===se[_0x10f4ab(0x210)]['id'])?_0x3ac57e=Gs(this[_0x10f4ab(0x1f2)],this[_0x10f4ab(0x371)],this[_0x10f4ab(0x52e)],this[_0x10f4ab(0x463)],this[_0x10f4ab(0x3d8)]):_0x3ac57e=at(this['_pendingMutations'],this[_0x10f4ab(0x371)],this[_0x10f4ab(0x52e)],this[_0x10f4ab(0x463)],this[_0x10f4ab(0x3d8)]);break;}default:throw new Error(_0x10f4ab(0x51d)+this[_0x10f4ab(0x4fb)]+_0x10f4ab(0x325));}const {changeset:_0x13e448,pendingMutations:_0x1041ce}=_0x3ac57e;this['_handler'][_0x10f4ab(0x38d)](_0x13e448);const _0x249216=_0x1041ce['length']?this[_0x10f4ab(0x185)][_0x10f4ab(0x153)](B,this['unitID'],this[_0x10f4ab(0x4fb)],_0x13e448,_0x1041ce,this['_handler'],void 0x0):this[_0x10f4ab(0x185)][_0x10f4ab(0x153)](W,this[_0x10f4ab(0x371)],this['type'],_0x13e448,this[_0x10f4ab(0x2f8)]);_0x249216['_updateLocalCache'](),this[_0x10f4ab(0x2f8)][_0x10f4ab(0x37d)](this,_0x249216);},_0x59b56d);}[_0x519e85(0x23e)](){const _0x3270d9=_0x519e85;var _0x515ada;const _0xe0cd9b=this[_0x3270d9(0x240)]['getConfig'](L);return(_0x515ada=_0xe0cd9b==null?void 0x0:_0xe0cd9b[_0x3270d9(0x4a3)])!=null?_0x515ada:Qt;}[_0x519e85(0x3e1)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x3a88f6=_0x519e85;this['_sendingTimer']!=null&&(clearTimeout(this[_0x3a88f6(0x28e)]),this[_0x3a88f6(0x28e)]=null);}[_0x519e85(0x1d7)](_0x2ab092){const _0x3de155=_0x519e85;return this[_0x3de155(0x49b)](),this[_0x3de155(0x185)]['createInstance'](F,this[_0x3de155(0x371)],this[_0x3de155(0x4fb)],null,this[_0x3de155(0x1f2)],this[_0x3de155(0x2f8)],_0x2ab092);}};k=z([g(0x4,a[_0x519e85(0x2ce)](a['Injector'])),g(0x5,a['Inject'](_[_0x519e85(0x467)])),g(0x6,a[_0x519e85(0x2ce)](exports[_0x519e85(0x26b)])),g(0x7,a[_0x519e85(0x2ce)](X)),g(0x8,a[_0x519e85(0x481)]),g(0x9,a[_0x519e85(0x147)]),g(0xa,a[_0x519e85(0x1ab)]),g(0xb,_[_0x519e85(0x18d)]),g(0xc,a[_0x519e85(0x524)]),g(0xd,a['IUndoRedoService'])],k);let W=class extends J{constructor(_0x2ff95d,_0x1a38a6,_0x34ce6b,_0x10c2b1,_0x282140,_0x28324d,_0x1dfe81,_0x39fdaf,_0x2b29f4,_0x26ca0e,_0x169bd9){const _0x171d4e=_0x519e85;super(_0x2ff95d,_0x1a38a6,_0x34ce6b,[],_0x10c2b1,_0x39fdaf,_0x169bd9,_0x28324d,_0x1dfe81),u(this,_0x171d4e(0x12c),'awaiting'),u(this,_0x171d4e(0x162),0x0),u(this,_0x171d4e(0x504)),u(this,_0x171d4e(0x22c)),(this[_0x171d4e(0x185)]=_0x282140,this['_logService']=_0x2b29f4,this['_transformService']=_0x26ca0e);}[_0x519e85(0x290)](_0x5dfa5e){const _0xcead46=_0x519e85;this['_clearScheduledTask']();const _0x5ec08e=this[_0xcead46(0x185)]['createInstance'](B,this[_0xcead46(0x371)],this[_0xcead46(0x4fb)],this[_0xcead46(0x1af)],[_0x5dfa5e],this[_0xcead46(0x2f8)],this['_resendTimer']);return _0x5ec08e[_0xcead46(0x24c)](),_0x5ec08e;}['onRemoteChangeset'](_0x3cd191){const _0xd4d3ef=_0x519e85;if(this['_checkMissing'](_0x3cd191))return this[_0xd4d3ef(0x49b)](),this[_0xd4d3ef(0x185)][_0xd4d3ef(0x153)](x,this[_0xd4d3ef(0x371)],this[_0xd4d3ef(0x4fb)],this['_awaitingChangeset'],[],null,[_0x3cd191],this['_handler']);try{const _0x53504e=this[_0xd4d3ef(0x435)]['transformChangesets']([_0x3cd191],[this[_0xd4d3ef(0x1af)]],!0x1);if(_[_0xd4d3ef(0x492)](_0x53504e)){const {c1Prime:_0x1fe24c,c2Prime:_0x31c1bd}=_0x53504e;this[_0xd4d3ef(0x3de)](_0x1fe24c[0x0]),_0x31c1bd[0x0][_0xd4d3ef(0x1ff)]=this[_0xd4d3ef(0x536)](),this[_0xd4d3ef(0x49b)]();const _0x445f08=this['_injector'][_0xd4d3ef(0x153)](W,this[_0xd4d3ef(0x371)],this[_0xd4d3ef(0x4fb)],_0x31c1bd[0x0],this[_0xd4d3ef(0x2f8)]);return _0x445f08[_0xd4d3ef(0x24c)](),_0x445f08;}return this[_0xd4d3ef(0x1d7)](!0x1);}catch(_0x41c118){return this[_0xd4d3ef(0x438)][_0xd4d3ef(0x2bf)](_0x41c118),this[_0xd4d3ef(0x1d7)](!0x1);}}[_0x519e85(0x508)](_0x419b39){const _0x306e10=_0x519e85;this[_0x306e10(0x49b)]();const _0x3f79=this['_revisionService']['getCurrentRevOfUnit'](this[_0x306e10(0x371)]);if(_0x419b39[_0x306e10(0x2e2)]<_0x3f79-0x1)return this;if(this[_0x306e10(0x2bd)](_0x419b39))return this[_0x306e10(0x185)][_0x306e10(0x153)](x,this[_0x306e10(0x371)],this['type'],null,[],this['_awaitingChangeset'],[],this[_0x306e10(0x2f8)]);this[_0x306e10(0x18e)]();const _0x218caf=this[_0x306e10(0x185)][_0x306e10(0x153)](ie,this[_0x306e10(0x371)],this[_0x306e10(0x4fb)],this[_0x306e10(0x2f8)]);return _0x218caf[_0x306e10(0x24c)](),_0x218caf;}[_0x519e85(0x272)](_0x4b1f99){const _0x119c99=_0x519e85;return this[_0x119c99(0x1d7)](!!(_0x4b1f99!=null&&_0x4b1f99['isPermissionRej']));}[_0x519e85(0x53b)](_0x562857){const _0xacc510=_0x519e85;return this[_0xacc510(0x162)]>Pt?this['toggleOffline']():(this[_0xacc510(0x504)]=Ut(this[_0xacc510(0x162)],{'timeout':this[_0xacc510(0x162)],'reqId':_0x562857[_0xacc510(0x40f)]}),this[_0xacc510(0x22c)]=this[_0xacc510(0x504)][_0xacc510(0x33d)](({reqId:_0x5b7109,timeout:_0x4982ac})=>{const _0x547c89=_0xacc510;this[_0x547c89(0x224)](_0x5b7109,_0x4982ac);}),this);}[_0x519e85(0x144)](){const _0x35da1b=_0x519e85;return this[_0x35da1b(0x49b)](),this['_injector'][_0x35da1b(0x153)](G,this[_0x35da1b(0x371)],this[_0x35da1b(0x4fb)],this[_0x35da1b(0x1af)],[],this[_0x35da1b(0x2f8)]);}['toggleOnline'](){return this;}[_0x519e85(0x3e1)](){const _0x18ef8c=_0x519e85;this['_handler'][_0x18ef8c(0x38d)](this[_0x18ef8c(0x1af)]);}[_0x519e85(0x1d7)](_0x4364d5){const _0x4790e9=_0x519e85;return this[_0x4790e9(0x49b)](),this[_0x4790e9(0x185)][_0x4790e9(0x153)](F,this['unitID'],this[_0x4790e9(0x4fb)],this[_0x4790e9(0x1af)],[],this[_0x4790e9(0x2f8)],_0x4364d5);}[_0x519e85(0x224)](_0xaf9da8,_0x58ff0a){const _0x10132d=_0x519e85;var _0xb6150e;_0xaf9da8===((_0xb6150e=this[_0x10132d(0x1af)])==null?void 0x0:_0xb6150e['reqId'])&&(this['resend'](),this[_0x10132d(0x162)]=_0x58ff0a===0x0?0x3e8:_0x58ff0a*0x2);}[_0x519e85(0x49b)](){const _0x2486c7=_0x519e85;var _0x568e49;(_0x568e49=this[_0x2486c7(0x22c)])==null||_0x568e49['unsubscribe'](),this[_0x2486c7(0x162)]=0x0;}};W=z([g(0x4,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),g(0x5,a[_0x519e85(0x2ce)](_[_0x519e85(0x467)])),g(0x6,a['Inject'](exports[_0x519e85(0x26b)])),g(0x7,a[_0x519e85(0x147)]),g(0x8,a['ILogService']),g(0x9,_[_0x519e85(0x18d)]),g(0xa,a['IUndoRedoService'])],W);let B=class extends J{constructor(_0x3f66e4,_0x5a3ee6,_0x806a57,_0x449619,_0x3e74fb,_0x1d2aa3,_0x287f09,_0x30a8a4,_0x160dd1,_0x47707c,_0x3fff88,_0xfc866e,_0x250239){const _0x54fff8=_0x519e85;super(_0x3f66e4,_0x5a3ee6,_0x806a57,_0x449619,_0x3e74fb,_0x47707c,_0x250239,_0x30a8a4,_0x160dd1),u(this,'status',_0x54fff8(0x3a1)),u(this,'_resendTimeout',0x0),u(this,'_resendTimer'),u(this,'_sender'),(this['_injector']=_0x287f09,this['_logService']=_0x3fff88,this['_transformService']=_0xfc866e,_0x1d2aa3&&(this[_0x54fff8(0x504)]=_0x1d2aa3,this['_sender']=this['_resendTimer'][_0x54fff8(0x33d)](({reqId:_0x365163,timeout:_0x3a0893})=>{const _0x3e937f=_0x54fff8;this[_0x3e937f(0x224)](_0x365163,_0x3a0893);})));}[_0x519e85(0x290)](_0x17c2ac){const _0x48d1bf=_0x519e85;return this[_0x48d1bf(0x1f2)][_0x48d1bf(0x50d)](_0x17c2ac),this;}['onRemoteChangeset'](_0x321812){const _0x126099=_0x519e85;if(this[_0x126099(0x2bd)](_0x321812))return this['_clearScheduledTask'](),this[_0x126099(0x185)][_0x126099(0x153)](x,this[_0x126099(0x371)],this['type'],this[_0x126099(0x1af)],this['_pendingMutations'],null,[_0x321812],this[_0x126099(0x2f8)]);try{const _0x382619=this[_0x126099(0x435)]['transformChangesets']([_0x321812],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x382619)){const {c1Prime:_0xc7acfd,c2Prime:_0x381278}=_0x382619,_0x134834=this[_0x126099(0x435)]['transformMutationsWithChangeset'](_0xc7acfd[0x0],this[_0x126099(0x1f2)]);if(_[_0x126099(0x276)](_0x134834)){const {c1Prime:_0x5780af,m2Prime:_0x167111}=_0x134834;return this[_0x126099(0x3de)](_0x5780af),_0x381278[0x0][_0x126099(0x1ff)]=this['_getCurrentRevision'](),this[_0x126099(0x49b)](),this[_0x126099(0x185)][_0x126099(0x153)](B,this[_0x126099(0x371)],this['type'],_0x381278[0x0],_0x167111,this[_0x126099(0x2f8)],void 0x0);}throw _0x134834['error'];}throw _0x382619[_0x126099(0x2bf)];}catch(_0x2ed907){return this['_logService'][_0x126099(0x2bf)](_0x2ed907),this[_0x126099(0x1d7)](!0x1);}}[_0x519e85(0x508)](_0x5798a4){const _0x47e3ad=_0x519e85;if(this[_0x47e3ad(0x49b)](),this[_0x47e3ad(0x2bd)](_0x5798a4))return this[_0x47e3ad(0x185)][_0x47e3ad(0x153)](x,this['unitID'],this[_0x47e3ad(0x4fb)],null,this[_0x47e3ad(0x1f2)],this[_0x47e3ad(0x1af)],[],this['_handler']);this[_0x47e3ad(0x18e)]();const _0x41ea50=this[_0x47e3ad(0x185)][_0x47e3ad(0x153)](k,this[_0x47e3ad(0x371)],this[_0x47e3ad(0x4fb)],this[_0x47e3ad(0x1f2)],this['_handler']);return _0x41ea50[_0x47e3ad(0x3f7)](),_0x41ea50[_0x47e3ad(0x24c)](),_0x41ea50;}[_0x519e85(0x272)](_0x43ffd7){return this['_onConflict'](!!(_0x43ffd7!=null&&_0x43ffd7['isPermissionRej']));}[_0x519e85(0x53b)](_0x48a22d){const _0x2cf8fc=_0x519e85;return this[_0x2cf8fc(0x162)]>Pt?this[_0x2cf8fc(0x144)]():(this[_0x2cf8fc(0x504)]=Ut(this[_0x2cf8fc(0x162)],{'timeout':this['_resendTimeout'],'reqId':_0x48a22d[_0x2cf8fc(0x40f)]}),this[_0x2cf8fc(0x22c)]=this[_0x2cf8fc(0x504)][_0x2cf8fc(0x33d)](({reqId:_0x467c38,timeout:_0x457fbd})=>{const _0x271626=_0x2cf8fc;this[_0x271626(0x224)](_0x467c38,_0x457fbd);}),this);}[_0x519e85(0x144)](){const _0x11f478=_0x519e85;return this[_0x11f478(0x49b)](),this['_injector']['createInstance'](G,this['unitID'],this[_0x11f478(0x4fb)],this[_0x11f478(0x1af)],this[_0x11f478(0x1f2)],this[_0x11f478(0x2f8)]);}[_0x519e85(0x1d1)](){return this;}[_0x519e85(0x3e1)](){const _0x197528=_0x519e85;this[_0x197528(0x2f8)][_0x197528(0x38d)](this[_0x197528(0x1af)]);}[_0x519e85(0x1d7)](_0x256b7c){const _0x36a5af=_0x519e85;return this['_clearScheduledTask'](),this[_0x36a5af(0x185)][_0x36a5af(0x153)](F,this[_0x36a5af(0x371)],this[_0x36a5af(0x4fb)],null,this[_0x36a5af(0x1f2)],this[_0x36a5af(0x2f8)],_0x256b7c);}[_0x519e85(0x224)](_0x3754b1,_0x214c8a){const _0x1a23fe=_0x519e85;var _0x2bf760;_0x3754b1===((_0x2bf760=this[_0x1a23fe(0x1af)])==null?void 0x0:_0x2bf760[_0x1a23fe(0x40f)])&&(this[_0x1a23fe(0x3e1)](),this['_resendTimeout']=_0x214c8a===0x0?0x3e8:_0x214c8a*0x2);}[_0x519e85(0x49b)](){const _0x136f1b=_0x519e85;var _0x1199fd;(_0x1199fd=this[_0x136f1b(0x22c)])==null||_0x1199fd[_0x136f1b(0x53e)](),this[_0x136f1b(0x162)]=0x0;}};B=z([g(0x6,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),g(0x7,a['Inject'](_['RevisionService'])),g(0x8,a[_0x519e85(0x2ce)](exports[_0x519e85(0x26b)])),g(0x9,a[_0x519e85(0x147)]),g(0xa,a[_0x519e85(0x481)]),g(0xb,_[_0x519e85(0x18d)]),g(0xc,a['IUndoRedoService'])],B);let F=class extends J{constructor(_0x251ea9,_0x402150,_0x130696,_0x5202ba,_0x17d706,_0x3ab76a=!0x1,_0x534dc0,_0x242e70,_0x4ca3da,_0x584678,_0x52c257,_0x4f4510,_0x2111eb){const _0x36b78e=_0x519e85;super(_0x251ea9,_0x402150,_0x130696,_0x5202ba,_0x17d706,_0x242e70,_0x4ca3da,_0x52c257,_0x584678),u(this,_0x36b78e(0x12c),_0x36b78e(0x2fa)),(this['_isPermissionRej']=_0x3ab76a,this['_permissionService']=_0x534dc0,this[_0x36b78e(0x4e0)]=_0x4f4510,this[_0x36b78e(0x323)]=_0x2111eb,this['_showConflictNotification'](),this[_0x36b78e(0x4a9)](),this[_0x36b78e(0x1ee)]());}['appendMutation'](){return this;}[_0x519e85(0x34e)](){return this;}[_0x519e85(0x508)](){return this;}[_0x519e85(0x272)](){return this;}[_0x519e85(0x53b)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x415d1b=_0x519e85;throw new Error(_0x415d1b(0x1e2));}['_clearLocalCache'](){const _0x28ac2f=_0x519e85;this[_0x28ac2f(0x548)][_0x28ac2f(0x3c1)](this[_0x28ac2f(0x371)],this[_0x28ac2f(0x4fb)],null,[]);}[_0x519e85(0x44f)](){const _0x408d34=_0x519e85;this[_0x408d34(0x354)]?this[_0x408d34(0x323)]['show']({'title':this[_0x408d34(0x4e0)]['t'](_0x408d34(0x36f)),'content':this['_localeService']['t'](_0x408d34(0x52f)),'type':_0x408d34(0x2bf),'duration':0x0}):this[_0x408d34(0x323)]['show']({'title':this[_0x408d34(0x4e0)]['t'](_0x408d34(0x3c8)),'content':this['_localeService']['t'](_0x408d34(0x4d3)),'type':_0x408d34(0x2bf),'duration':0x0});}['_disableEditing'](){const _0x2db173=_0x519e85;this[_0x2db173(0x2e0)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this[_0x2db173(0x371)])['id'],!0x1);}};F=z([g(0x6,a[_0x519e85(0x2ce)](a[_0x519e85(0x25e)])),g(0x7,a[_0x519e85(0x147)]),g(0x8,a['IUndoRedoService']),g(0x9,a['Inject'](exports[_0x519e85(0x26b)])),g(0xa,a[_0x519e85(0x2ce)](_['RevisionService'])),g(0xb,a[_0x519e85(0x2ce)](a[_0x519e85(0x322)])),g(0xc,A['INotificationService'])],F);let G=class extends J{constructor(_0x59bbdd,_0x503e79,_0x53d8cb,_0x4b0f02,_0x515e94,_0x1fe3d,_0xe560b8,_0x3d91ba,_0x62042e,_0x451514){const _0x5ee41c=_0x519e85;super(_0x59bbdd,_0x503e79,_0x53d8cb,_0x4b0f02,_0x515e94,_0x62042e,_0x451514,_0xe560b8,_0x3d91ba),u(this,_0x5ee41c(0x12c),'offline'),this[_0x5ee41c(0x185)]=_0x1fe3d;}[_0x519e85(0x290)](_0x4c0b09){const _0x36065c=_0x519e85;return this[_0x36065c(0x1f2)][_0x36065c(0x50d)](_0x4c0b09),this[_0x36065c(0x24c)](),this;}[_0x519e85(0x34e)](_0x335406){const _0x4938e7=_0x519e85;throw new Error(_0x4938e7(0x349));}[_0x519e85(0x508)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x519e85(0x272)](){const _0x5045a1=_0x519e85;throw new Error(_0x5045a1(0x431));}['onRemoteRetry'](){return this;}[_0x519e85(0x144)](){return this;}[_0x519e85(0x1d1)](){const _0x4b39af=_0x519e85,{_injector:_0x91cdd2,_pendingMutations:_0x181ecc,_awaitingChangeset:_0x2206d8,unitID:_0x19abaf,_handler:_0x288ea6,type:_0x576689}=this,_0x42ecb2=wt(_0x91cdd2,_0x19abaf,_0x576689,_0x2206d8,_0x181ecc,_0x288ea6);return _0x42ecb2 instanceof k?_0x42ecb2['_schedule']():(_0x42ecb2 instanceof B||_0x42ecb2 instanceof W)&&_0x42ecb2[_0x4b39af(0x3e1)](),_0x42ecb2;}[_0x519e85(0x3e1)](){const _0x2259cc=_0x519e85;throw new Error(_0x2259cc(0x452));}};G=z([g(0x5,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),g(0x6,a['Inject'](_['RevisionService'])),g(0x7,a['Inject'](exports[_0x519e85(0x26b)])),g(0x8,a[_0x519e85(0x147)]),g(0x9,a[_0x519e85(0x249)])],G);let x=class extends J{constructor(_0x5a5825,_0x2377a1,_0x21994c,_0x1b9936,_0x4f7cff,_0x8eecb5,_0x471b06,_0x5d2a13,_0x245359,_0x415cff,_0x62a2b3,_0x2dc3b9,_0x1cd5fc,_0x27f3f8){const _0x51032d=_0x519e85;super(_0x5a5825,_0x2377a1,_0x21994c,_0x1b9936,_0x471b06,_0x2dc3b9,_0x1cd5fc,_0x245359,_0x415cff),u(this,'status','fetch_missing'),(this[_0x51032d(0x270)]=_0x4f7cff,this[_0x51032d(0x2a8)]=_0x8eecb5,this['_injector']=_0x5d2a13,this[_0x51032d(0x438)]=_0x62a2b3,this[_0x51032d(0x435)]=_0x27f3f8);}[_0x519e85(0x198)](_0x11487b){const _0x171968=_0x519e85;try{const _0x26143a=[..._0x11487b,...this[_0x171968(0x2a8)]],_0x296da7=[this[_0x171968(0x1af)]||this[_0x171968(0x270)]][_0x171968(0x4d4)](_0x1fb0eb=>!!_0x1fb0eb);let _0x5150f1,_0x4120cb;if(_0x296da7['length']){const _0x181e08=this['_transformService'][_0x171968(0x1c8)](_0x26143a,_0x296da7,!0x1);if(!_[_0x171968(0x492)](_0x181e08))throw _0x181e08[_0x171968(0x2bf)];_0x5150f1=_0x181e08['c1Prime'],_0x4120cb=_0x181e08[_0x171968(0x2b3)];}else _0x5150f1=_0x26143a,_0x4120cb=[];let _0x4ca90f=this[_0x171968(0x1f2)];_0x5150f1[_0x171968(0x27d)](_0x3618a2=>{const _0x2eddc0=_0x171968;let _0x1dd950;if(_0x4ca90f[_0x2eddc0(0x4c3)]){const _0x27082f=this['_transformService'][_0x2eddc0(0x480)](_0x3618a2,_0x4ca90f);if(!_[_0x2eddc0(0x276)](_0x27082f))throw _0x27082f['error'];_0x1dd950=_0x27082f['c1Prime'],_0x4ca90f=_0x27082f['m2Prime'];}else _0x1dd950=_0x3618a2;this[_0x2eddc0(0x3de)](_0x1dd950);}),this[_0x171968(0x270)]&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x4120cb['length']&&(_0x4120cb[0x0]['baseRev']=this[_0x171968(0x536)]());let _0x11dfb8;if(this[_0x171968(0x1af)]&&_0x4ca90f['length']!==0x0)_0x11dfb8=this[_0x171968(0x185)]['createInstance'](B,this[_0x171968(0x371)],this[_0x171968(0x4fb)],_0x4120cb[0x0],_0x4ca90f,this[_0x171968(0x2f8)],void 0x0);else{if(this[_0x171968(0x1af)]&&_0x4ca90f[_0x171968(0x4c3)]===0x0)_0x4120cb[0x0]['baseRev']=this['_getCurrentRevision'](),_0x11dfb8=this[_0x171968(0x185)][_0x171968(0x153)](W,this[_0x171968(0x371)],this[_0x171968(0x4fb)],_0x4120cb[0x0],this['_handler']);else{if(_0x4ca90f[_0x171968(0x4c3)]!==0x0){const _0x1ab0ef=this[_0x171968(0x185)]['createInstance'](k,this[_0x171968(0x371)],this[_0x171968(0x4fb)],_0x4ca90f,this[_0x171968(0x2f8)]);_0x1ab0ef['_schedule'](),_0x11dfb8=_0x1ab0ef;}else _0x11dfb8=this[_0x171968(0x185)][_0x171968(0x153)](ie,this['unitID'],this[_0x171968(0x4fb)],this[_0x171968(0x2f8)]);}}return _0x11dfb8[_0x171968(0x24c)](),_0x11dfb8;}catch(_0x4b0a81){return this['_logService'][_0x171968(0x2bf)](_0x171968(0x444),_0x171968(0x15e),_0x4b0a81),this['_injector']['createInstance'](F,this['unitID'],this[_0x171968(0x4fb)],this[_0x171968(0x1af)],this['_pendingMutations'],this[_0x171968(0x2f8)],!0x1);}}[_0x519e85(0x3e1)](){const _0x147300=_0x519e85;throw new Error(_0x147300(0x366));}[_0x519e85(0x290)](_0x2b1ea3){const _0x4de52e=_0x519e85;return this['_pendingMutations'][_0x4de52e(0x50d)](_0x2b1ea3),this;}[_0x519e85(0x34e)](_0xefa79c){return this['_queuedRemoteChangesets']['push'](_0xefa79c),this;}['onRemoteAck'](_0x21a43a){const _0x431cbb=_0x519e85;if(this[_0x431cbb(0x1af)])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this[_0x431cbb(0x1af)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x519e85(0x272)](_0x5b6a04){const _0x2705d5=_0x519e85;return this[_0x2705d5(0x1d7)](!!(_0x5b6a04!=null&&_0x5b6a04[_0x2705d5(0x37b)]));}['onRemoteRetry'](){return this;}[_0x519e85(0x144)](){const _0x28204a=_0x519e85;return this[_0x28204a(0x185)]['createInstance'](G,this[_0x28204a(0x371)],this[_0x28204a(0x4fb)],this[_0x28204a(0x1af)],this[_0x28204a(0x1f2)],this['_handler']);}[_0x519e85(0x1d1)](){return this;}[_0x519e85(0x1d7)](_0x138d69){const _0x2a8735=_0x519e85;return this[_0x2a8735(0x185)]['createInstance'](F,this[_0x2a8735(0x371)],this[_0x2a8735(0x4fb)],this[_0x2a8735(0x1af)],this[_0x2a8735(0x1f2)],this[_0x2a8735(0x2f8)],_0x138d69);}};x=z([g(0x7,a['Inject'](a['Injector'])),g(0x8,a[_0x519e85(0x2ce)](_[_0x519e85(0x467)])),g(0x9,a[_0x519e85(0x2ce)](exports[_0x519e85(0x26b)])),g(0xa,a[_0x519e85(0x481)]),g(0xb,a[_0x519e85(0x147)]),g(0xc,a[_0x519e85(0x249)]),g(0xd,_[_0x519e85(0x18d)])],x);function wt(_0x312082,_0xe663e7,_0xa97cbf,_0x1c92c5,_0x531010,_0x5b99f4){const _0x3533cd=_0x519e85;return _0x1c92c5&&_0x531010[_0x3533cd(0x4c3)]?_0x312082[_0x3533cd(0x153)](B,_0xe663e7,_0xa97cbf,_0x1c92c5,_0x531010,_0x5b99f4,void 0x0):_0x1c92c5?_0x312082['createInstance'](W,_0xe663e7,_0xa97cbf,_0x1c92c5,_0x5b99f4):_0x531010[_0x3533cd(0x4c3)]?_0x312082[_0x3533cd(0x153)](k,_0xe663e7,_0xa97cbf,_0x531010,_0x5b99f4):_0x312082['createInstance'](ie,_0xe663e7,_0xa97cbf,_0x5b99f4);}var Xs=Object[_0x519e85(0x1d9)],zs=Object[_0x519e85(0x361)],ze=(_0x14cee8,_0x50eacd,_0x11b1ed,_0x15f61e)=>{const _0x3785fc=_0x519e85;for(var _0x34296a=_0x15f61e>0x1?void 0x0:_0x15f61e?zs(_0x50eacd,_0x11b1ed):_0x50eacd,_0x21e346=_0x14cee8[_0x3785fc(0x4c3)]-0x1,_0x365947;_0x21e346>=0x0;_0x21e346--)(_0x365947=_0x14cee8[_0x21e346])&&(_0x34296a=(_0x15f61e?_0x365947(_0x50eacd,_0x11b1ed,_0x34296a):_0x365947(_0x34296a))||_0x34296a);return _0x15f61e&&_0x34296a&&Xs(_0x50eacd,_0x11b1ed,_0x34296a),_0x34296a;},p=(_0x1cf812,_0x13f151)=>(_0x9053d,_0x451042)=>_0x13f151(_0x9053d,_0x451042,_0x1cf812);exports[_0x519e85(0x17b)]=class extends a[_0x519e85(0x2a2)]{constructor(_0x80d330,_0x10f1f3,_0x3c9651,_0x331da1,_0x11187e,_0x4b3836,_0x31148f,_0x436fb2,_0x12c6e9,_0x5efbfd,_0x4d1376,_0xea16fe,_0x59bc60){const _0x42fbac=_0x519e85;super(),u(this,'_state$',new v[(_0x42fbac(0x49e))](null)),u(this,_0x42fbac(0x4de),this[_0x42fbac(0x442)][_0x42fbac(0x441)]()),u(this,_0x42fbac(0x3db)),u(this,_0x42fbac(0x2ac),!0x1),u(this,_0x42fbac(0x3a5),''),u(this,'_changesetReqId',0x0),u(this,_0x42fbac(0x25a),this['state$'][_0x42fbac(0x479)](v[_0x42fbac(0x238)](_0x3f492a=>_0x3f492a?_0x3f492a[_0x42fbac(0x12c)]:U[_0x42fbac(0x4d7)]),v[_0x42fbac(0x1fc)](0x1))),u(this,_0x42fbac(0x2ae),!0x1),u(this,_0x42fbac(0x37c),[]),(this['unitID']=_0x80d330,this[_0x42fbac(0x484)]=_0x10f1f3,this['_type']=_0x3c9651,this[_0x42fbac(0x185)]=_0x331da1,this['_localCacheService']=_0x11187e,this['_compressMutationService']=_0x4b3836,this[_0x42fbac(0x4e0)]=_0x31148f,this[_0x42fbac(0x463)]=_0x436fb2,this[_0x42fbac(0x438)]=_0x12c6e9,this[_0x42fbac(0x3d7)]=_0x5efbfd,this[_0x42fbac(0x3a9)]=_0x4d1376,this[_0x42fbac(0x2e0)]=_0xea16fe,this[_0x42fbac(0x3d3)]=_0x59bc60);}get[_0x519e85(0x3f8)](){const _0xfe3826=_0x519e85;return this[_0xfe3826(0x3db)];}async[_0x519e85(0x447)](){const _0x5d9964=_0x519e85;if(this[_0x5d9964(0x3f8)])throw new Error(_0x5d9964(0x533));await this[_0x5d9964(0x3dc)]();}['pauseCollaboration'](){const _0x3492ae=_0x519e85;return this[_0x3492ae(0x2ac)]=!0x0,a[_0x3492ae(0x49a)](()=>{const _0x26b9da=_0x3492ae;this[_0x26b9da(0x2ac)]=!0x1,this[_0x26b9da(0x4c2)]();});}['_updateState'](_0x532b21){const _0x4e7c8b=_0x519e85;this[_0x4e7c8b(0x3db)]=_0x532b21,this['_state$'][_0x4e7c8b(0x4a5)](_0x532b21);}async[_0x519e85(0x3dc)](){const _0x5bcd68=_0x519e85;var _0x39de9b;this['_updateState'](await this[_0x5bcd68(0x173)]()),this[_0x5bcd68(0x3d3)]&&((_0x39de9b=this[_0x5bcd68(0x3d3)])==null||_0x39de9b['editingUnit'](this[_0x5bcd68(0x371)]),this[_0x5bcd68(0x48d)](this[_0x5bcd68(0x3d3)]['getUnitStatus$'](this[_0x5bcd68(0x371)])['subscribe'](_0x318ffa=>{const _0x461380=_0x5bcd68;this[_0x461380(0x438)]['debug'](_0x461380(0x230),_0x461380(0x324),_0x318ffa),_0x318ffa===Dt[_0x461380(0x34a)]?(this['_messageService'][_0x461380(0x519)]({'content':this[_0x461380(0x4e0)]['t']('collaboration.single-unit.warning'),'type':q['MessageType'][_0x461380(0x1e3)]}),this[_0x461380(0x2e0)][_0x461380(0x1a9)](new C[(_0x461380(0x413))](this[_0x461380(0x371)])['id'],!0x1)):this[_0x461380(0x2e0)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this[_0x461380(0x371)])['id'],!0x0);})));let _0x23d6d2=!0x1;return this[_0x5bcd68(0x48d)](this[_0x5bcd68(0x484)][_0x5bcd68(0x477)][_0x5bcd68(0x33d)](_0x1c7477=>{const _0x380fe0=_0x5bcd68;_0x1c7477===H[_0x380fe0(0x48f)]?this[_0x380fe0(0x52d)](_0x23d6d2):_0x1c7477===H['OFFLINE']&&(_0x23d6d2=!0x0,this[_0x380fe0(0x205)]());})),this[_0x5bcd68(0x48d)](this[_0x5bcd68(0x484)][_0x5bcd68(0x46f)][_0x5bcd68(0x33d)](_0x39b7c9=>{const _0x5331b0=_0x5bcd68;try{switch(_0x39b7c9['eventID']){case _[_0x5331b0(0x3f2)][_0x5331b0(0x316)]:{this['_onRemoteChangeset'](_[_0x5331b0(0x296)](_0x39b7c9['data']));break;}case _['CollaborationEvent']['CHANGESET_ACK']:{this[_0x5331b0(0x3e4)](_0x39b7c9['data']);break;}case _['CollaborationEvent'][_0x5331b0(0x4b3)]:{this['_onRemoteRejected']();break;}case _[_0x5331b0(0x3f2)][_0x5331b0(0x225)]:{this[_0x5331b0(0x148)](_0x39b7c9[_0x5331b0(0x229)]);break;}case _[_0x5331b0(0x3f2)][_0x5331b0(0x3a7)]:{this[_0x5331b0(0x16c)](_0x39b7c9[_0x5331b0(0x229)][_0x5331b0(0x406)]['map'](_0x3010fa=>_[_0x5331b0(0x296)](_0x3010fa)));break;}case _[_0x5331b0(0x3f2)][_0x5331b0(0x3b5)]:this[_0x5331b0(0x515)]({'isPermissionRej':!0x0});}}catch(_0x4ebc48){throw console[_0x5331b0(0x2bf)]('Error\x20on\x20receiving\x20event',_0x4ebc48),_0x4ebc48;}})),this['_state'];}['_unlockTransition'](){const _0x428b29=_0x519e85;this[_0x428b29(0x2ae)]=!0x1;}[_0x519e85(0x2da)](){const _0x51d872=_0x519e85;if(this[_0x51d872(0x2ae)])throw new Error(_0x51d872(0x37f));this[_0x51d872(0x2ae)]=!0x0;}[_0x519e85(0x20b)](_0x1333b3){const _0x201f0f=_0x519e85;this[_0x201f0f(0x2da)](),this['_updateState'](this[_0x201f0f(0x3db)][_0x201f0f(0x290)](_0x1333b3)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x397254){const _0x610379=_0x519e85;if(!(_0x397254[_0x610379(0x2e2)]<=this[_0x610379(0x463)][_0x610379(0x4af)](this[_0x610379(0x371)]))){if(this[_0x610379(0x2ac)]){this['_remoteChangesetQueue'][_0x610379(0x50d)](_0x397254);return;}this['_applyRemoteChangeset'](_0x397254);}}[_0x519e85(0x4c2)](){const _0x2dea98=_0x519e85;this[_0x2dea98(0x37c)][_0x2dea98(0x27d)](_0x17ec06=>this[_0x2dea98(0x35d)](_0x17ec06)),this['_remoteChangesetQueue']=[];}[_0x519e85(0x35d)](_0x3bb706){const _0x4daafc=_0x519e85,_0xcaab32=this['_compressMutationService'][_0x4daafc(0x51a)][_0x4daafc(0x4bb)](this[_0x4daafc(0x471)][_0x4daafc(0x51a)][_0x4daafc(0x44e)]()[_0x4daafc(0x440)])(_0x3bb706[_0x4daafc(0x231)],null)||_0x3bb706[_0x4daafc(0x231)],_0x2315f2={..._0x3bb706,'mutations':_0xcaab32};this[_0x4daafc(0x2da)](),this[_0x4daafc(0x2df)](this[_0x4daafc(0x3db)]['onRemoteChangeset'](_0x2315f2)),this[_0x4daafc(0x443)]();}['_onRemoteACK'](_0x26eeb0){const _0x494561=_0x519e85;this[_0x494561(0x2da)](),this[_0x494561(0x2df)](this[_0x494561(0x3db)][_0x494561(0x508)](_0x26eeb0)),this[_0x494561(0x443)]();}[_0x519e85(0x515)](_0x23d02a){const _0x389cc3=_0x519e85;this[_0x389cc3(0x2da)](),this['_updateState'](this['_state'][_0x389cc3(0x272)](_0x23d02a)),this[_0x389cc3(0x443)]();}[_0x519e85(0x148)](_0x287eee){const _0x2a0678=_0x519e85;this[_0x2a0678(0x2da)](),this[_0x2a0678(0x2df)](this[_0x2a0678(0x3db)]['onRemoteRetry'](_0x287eee)),this[_0x2a0678(0x443)]();}['_onFetchMissResult'](_0x16fd54){const _0x4c5238=_0x519e85;if(!(this['_state']instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x345d0b=_0x16fd54[_0x4c5238(0x238)](_0x1f4b00=>{const _0x4ff9fd=_0x4c5238,_0x52bb44=this['_compressMutationService'][_0x4ff9fd(0x51a)]['fetchThroughInterceptors'](this[_0x4ff9fd(0x471)][_0x4ff9fd(0x51a)][_0x4ff9fd(0x44e)]()[_0x4ff9fd(0x440)])(_0x1f4b00[_0x4ff9fd(0x231)],null)||_0x1f4b00[_0x4ff9fd(0x231)];return{..._0x1f4b00,'mutations':_0x52bb44};});this['_lockTransition'](),this[_0x4c5238(0x2df)](this[_0x4c5238(0x3db)]['onMissedChangesetFetched'](_0x345d0b)),this[_0x4c5238(0x443)]();}[_0x519e85(0x205)](){const _0x499c49=_0x519e85;this[_0x499c49(0x2da)](),this[_0x499c49(0x2df)](this['_state']['toggleOffline']()),this['_unlockTransition']();}[_0x519e85(0x52d)](_0x50e660=!0x1){const _0x33517e=_0x519e85;this[_0x33517e(0x2da)](),this[_0x33517e(0x2df)](this[_0x33517e(0x3db)][_0x33517e(0x1d1)]()),this[_0x33517e(0x443)]();const _0x1e28eb=this[_0x33517e(0x3db)];_0x50e660&&_0x1e28eb instanceof ie&&(this['_lockTransition'](),this[_0x33517e(0x2df)](_0x1e28eb[_0x33517e(0x3bc)]()),this[_0x33517e(0x443)]());}async[_0x519e85(0x173)](){return new Promise(_0x293324=>{const _0x3f795f=_0x5923;this[_0x3f795f(0x484)][_0x3f795f(0x477)]['pipe'](v['take'](0x1))['subscribe'](async _0x7474be=>{const _0x2ab427=_0x3f795f;_0x293324(await this[_0x2ab427(0x4f0)](_0x7474be===H[_0x2ab427(0x48f)]));});});}['_createHandler'](){const _0x29810a=_0x519e85,_0x2435bb=this[_0x29810a(0x371)];return{'onStateChange':(_0x4f5364,_0x238024)=>{const _0x3996fd=_0x29810a;if(_0x4f5364!==this['_state'])throw new Error(_0x3996fd(0x1c9)+_0x4f5364[_0x3996fd(0x12c)]+_0x3996fd(0x439)+_0x238024['status']+'\x0aCurrent:\x20'+this[_0x3996fd(0x3db)]['status']);this[_0x3996fd(0x2df)](_0x238024);},'onSendChangeset':_0x463487=>{const _0x1c8359=_0x29810a;_0x463487[_0x1c8359(0x1a7)]||(_0x463487['sid']=this['_changesetSessionId'],_0x463487['reqId']=++this[_0x1c8359(0x2ab)]);const _0x2414ab={'eventID':_[_0x1c8359(0x3f2)][_0x1c8359(0x23a)],'data':{'unitID':_0x463487['unitID'],'unitType':this[_0x1c8359(0x1bb)],'changeset':_0x463487,'memberID':this[_0x1c8359(0x484)][_0x1c8359(0x27a)]()}};this[_0x1c8359(0x484)][_0x1c8359(0x234)](_0x2414ab,this[_0x1c8359(0x371)]);},'onMissingChangesets':({from:_0x18e1df,to:_0x2f2408})=>{const _0xc257b3=_0x29810a;this[_0xc257b3(0x438)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x18e1df+'\x20to\x20'+_0x2f2408);const _0x177a37={'eventID':_[_0xc257b3(0x3f2)]['FETCH_MISSING'],'data':{'unitID':_0x2435bb,'unitType':this[_0xc257b3(0x1bb)],'from':_0x18e1df,'to':_0x2f2408}};this[_0xc257b3(0x484)][_0xc257b3(0x234)](_0x177a37,this['unitID']);}};}async['_createInitialStateImpl'](_0x4d6fda){const _0x45aaee=_0x519e85;var _0x2747ba,_0x148384;const _0x21fc50=await this['_localCacheService'][_0x45aaee(0x1c2)](this['unitID']),_0x228c30=(_0x2747ba=_0x21fc50==null?void 0x0:_0x21fc50[_0x45aaee(0x231)])!=null?_0x2747ba:[],_0x505aaa=(_0x148384=_0x21fc50==null?void 0x0:_0x21fc50[_0x45aaee(0x21b)])!=null?_0x148384:null,_0x28e4e4=!!(_0x505aaa!=null&&_0x505aaa[_0x45aaee(0x1a7)])&&!!(_0x505aaa!=null&&_0x505aaa[_0x45aaee(0x40f)]);this[_0x45aaee(0x3a5)]=_0x28e4e4?_0x505aaa[_0x45aaee(0x1a7)]:ys(),this[_0x45aaee(0x2ab)]=_0x28e4e4?_0x505aaa[_0x45aaee(0x40f)]:0x0;const _0x36e260=this[_0x45aaee(0x371)];try{this['_replayCachedMutations'](_0x505aaa,_0x228c30);}catch(_0x4d6a6b){this[_0x45aaee(0x438)][_0x45aaee(0x2bf)](_0x4d6a6b);}const _0x413df9=this[_0x45aaee(0x400)]();if(_0x4d6fda){const _0x4b155f=wt(this[_0x45aaee(0x185)],_0x36e260,this[_0x45aaee(0x1bb)],_0x505aaa,_0x228c30,_0x413df9);return _0x4b155f instanceof k?_0x4b155f[_0x45aaee(0x3f7)]():(_0x4b155f instanceof B||_0x4b155f instanceof W)&&_0x4b155f[_0x45aaee(0x3e1)](),_0x4b155f;}return this[_0x45aaee(0x185)][_0x45aaee(0x153)](G,_0x36e260,this[_0x45aaee(0x1bb)],_0x505aaa,_0x228c30,_0x413df9);}[_0x519e85(0x528)](_0x4db9c2,_0x3ddfd2){const _0x128e21=_0x519e85;var _0x35cf1d,_0x5eb656;const _0x25b3c3=this[_0x128e21(0x471)]['interceptor'][_0x128e21(0x4bb)](this[_0x128e21(0x471)]['interceptor'][_0x128e21(0x44e)]()['COMPRESS_MUTATION_APPLY']);(_0x35cf1d=_0x25b3c3((_0x4db9c2==null?void 0x0:_0x4db9c2['mutations'])||[],null))==null||_0x35cf1d[_0x128e21(0x27d)](_0x2335b2=>this[_0x128e21(0x3d7)][_0x128e21(0x1b8)](_0x2335b2['id'],_0x2335b2[_0x128e21(0x545)])),(_0x5eb656=_0x25b3c3(_0x3ddfd2||[],null))==null||_0x5eb656[_0x128e21(0x27d)](_0x3c0150=>this[_0x128e21(0x3d7)][_0x128e21(0x1b8)](_0x3c0150['id'],_0x3c0150[_0x128e21(0x545)]));}},exports[_0x519e85(0x17b)]=ze([p(0x3,a['Inject'](a[_0x519e85(0x42d)])),p(0x4,a[_0x519e85(0x2ce)](exports['LocalCacheService'])),p(0x5,a[_0x519e85(0x2ce)](_[_0x519e85(0x44d)])),p(0x6,a[_0x519e85(0x2ce)](a['LocaleService'])),p(0x7,a['Inject'](_[_0x519e85(0x467)])),p(0x8,a[_0x519e85(0x481)]),p(0x9,a[_0x519e85(0x147)]),p(0xa,A[_0x519e85(0x15d)]),p(0xb,a[_0x519e85(0x25e)]),p(0xc,a['Optional'](Re))],exports[_0x519e85(0x17b)]),exports[_0x519e85(0x418)]=class extends exports['CollaborationEntity']{constructor(_0x243cef,_0x4da878,_0x47016b,_0x5694d4,_0x3357bc,_0x58ff35,_0x1e79e4,_0x302bd1,_0x273cef,_0x732480,_0x594ee3,_0x58bd56,_0x733e7b,_0x54a34f,_0x3fbe15,_0x321aca,_0xcaaf1d){const _0x187dc2=_0x519e85;super(_0x243cef,_0x47016b,_0x4da878,_0x5694d4,_0x3357bc,_0x58ff35,_0x1e79e4,_0x302bd1,_0x733e7b,_0x54a34f,_0x3fbe15,_0x321aca,_0xcaaf1d),this[_0x187dc2(0x371)]=_0x243cef,this['type']=_0x4da878,this['_docStateChangeManagerService']=_0x273cef,this[_0x187dc2(0x3e2)]=_0x732480,this[_0x187dc2(0x468)]=_0x594ee3,this['_docSyncEditingCollabCursorService']=_0x58bd56;}[_0x519e85(0x400)](){const _0x33ac26=_0x519e85,_0x328572=super['_createHandler']();return _0x328572[_0x33ac26(0x390)]=_0x329dec=>this[_0x33ac26(0x3e2)]['transformIMECache'](_0x329dec),_0x328572[_0x33ac26(0x4d2)]=_0x22d77f=>this[_0x33ac26(0x468)][_0x33ac26(0x2c9)](_0x22d77f),_0x328572['onSyncEditingCollabCursor']=_0x3a2197=>this[_0x33ac26(0x2eb)][_0x33ac26(0x41d)](_0x3a2197),_0x328572['onTransformRemoteChangesetByIMECache']=_0x254313=>this[_0x33ac26(0x3e2)][_0x33ac26(0x248)](_0x254313),_0x328572;}async[_0x519e85(0x3dc)](){const _0x3664e6=_0x519e85,_0x145b78=await super['_init']();return this['_docStateChangeManagerService'][_0x3664e6(0x218)][_0x3664e6(0x479)](v[_0x3664e6(0x254)](this['dispose$']))[_0x3664e6(0x33d)](_0x4b8e90=>{const _0x23a4ad=_0x3664e6;if(_0x4b8e90==null)return;const {unitId:_0x1dd954,redoState:_0x37d1cf,commandId:_0x2616dc}=_0x4b8e90;if(_0x1dd954!==this[_0x23a4ad(0x371)])return;const _0x5e6c96={'id':_0x2616dc,'type':a[_0x23a4ad(0x291)]['MUTATION'],'params':{'unitId':_0x1dd954,'actions':_0x37d1cf[_0x23a4ad(0x47d)],'textRanges':null}};this[_0x23a4ad(0x20b)](_0x5e6c96);}),_0x145b78;}},exports[_0x519e85(0x418)]=ze([p(0x3,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),p(0x4,a[_0x519e85(0x2ce)](exports[_0x519e85(0x26b)])),p(0x5,a[_0x519e85(0x2ce)](_[_0x519e85(0x44d)])),p(0x6,a[_0x519e85(0x2ce)](a[_0x519e85(0x322)])),p(0x7,a[_0x519e85(0x2ce)](_[_0x519e85(0x467)])),p(0x8,a[_0x519e85(0x2ce)](N['DocStateChangeManagerService'])),p(0x9,a[_0x519e85(0x2ce)](fe)),p(0xa,a[_0x519e85(0x2ce)](pe)),p(0xb,a[_0x519e85(0x2ce)](Xe)),p(0xc,a['ILogService']),p(0xd,a[_0x519e85(0x147)]),p(0xe,A['IMessageService']),p(0xf,a[_0x519e85(0x25e)]),p(0x10,a[_0x519e85(0x4dc)](Re))],exports[_0x519e85(0x418)]),exports[_0x519e85(0x2d6)]=class extends exports['CollaborationEntity']{constructor(_0x11aee9,_0x52e247,_0x477a20,_0xc5930c,_0xd9b751,_0x23cf07,_0x1400a3,_0x279f1f,_0x5cbb90,_0x5f593f,_0x1493d3,_0x5bec29,_0xe76da8,_0x53b0fb){const _0x48dbb2=_0x519e85;super(_0x11aee9,_0x477a20,_0x52e247,_0xc5930c,_0xd9b751,_0x23cf07,_0x1400a3,_0x279f1f,_0x5f593f,_0x1493d3,_0x5bec29,_0xe76da8,_0x53b0fb),this['unitID']=_0x11aee9,this[_0x48dbb2(0x4fb)]=_0x52e247,this[_0x48dbb2(0x478)]=_0x5cbb90;}['_createHandler'](){const _0x357612=_0x519e85,_0x29fdc3=super[_0x357612(0x400)]();return _0x29fdc3[_0x357612(0x4d2)]=_0x69cd37=>this['_sheetTransformSelectionsService'][_0x357612(0x2c9)](_0x69cd37),_0x29fdc3;}async[_0x519e85(0x3dc)](){const _0x493e1b=_0x519e85,_0x5f87d7=await super[_0x493e1b(0x3dc)]();return this[_0x493e1b(0x48d)](this['_commandService'][_0x493e1b(0x368)]((_0x580620,_0x477719)=>{const _0x170dd0=_0x493e1b;if(_0x580620['type']!==a[_0x170dd0(0x291)][_0x170dd0(0x44a)]||_0x477719!=null&&_0x477719[_0x170dd0(0x362)]||_0x477719!=null&&_0x477719[_0x170dd0(0x28d)])return;const _0x3b3685=_0x580620[_0x170dd0(0x545)];if((_0x3b3685==null?void 0x0:_0x3b3685[_0x170dd0(0x513)])!==this[_0x170dd0(0x371)])return;const _0x5f0fd3=_0x580620,_0x3c4537=this[_0x170dd0(0x471)][_0x170dd0(0x51a)][_0x170dd0(0x4bb)](this[_0x170dd0(0x471)][_0x170dd0(0x51a)][_0x170dd0(0x44e)]()['COMPRESS_MUTATION_SEND'])([_0x5f0fd3],null)||[_0x5f0fd3];this[_0x170dd0(0x20b)](_0x3c4537[0x0]);})),_0x5f87d7;}},exports[_0x519e85(0x2d6)]=ze([p(0x3,a['Inject'](a['Injector'])),p(0x4,a[_0x519e85(0x2ce)](exports[_0x519e85(0x26b)])),p(0x5,a[_0x519e85(0x2ce)](_[_0x519e85(0x44d)])),p(0x6,a['Inject'](a['LocaleService'])),p(0x7,a[_0x519e85(0x2ce)](_[_0x519e85(0x467)])),p(0x8,a[_0x519e85(0x2ce)](Ie)),p(0x9,a['ILogService']),p(0xa,a[_0x519e85(0x147)]),p(0xb,A[_0x519e85(0x15d)]),p(0xc,a[_0x519e85(0x25e)]),p(0xd,a[_0x519e85(0x4dc)](Re))],exports[_0x519e85(0x2d6)]);var Js=Object[_0x519e85(0x1d9)],Zs=Object[_0x519e85(0x361)],Qs=(_0x539adc,_0x4df08d,_0x8f524e,_0x14153)=>{const _0x51e77b=_0x519e85;for(var _0x2447cb=_0x14153>0x1?void 0x0:_0x14153?Zs(_0x4df08d,_0x8f524e):_0x4df08d,_0x5e29a6=_0x539adc[_0x51e77b(0x4c3)]-0x1,_0x49e98b;_0x5e29a6>=0x0;_0x5e29a6--)(_0x49e98b=_0x539adc[_0x5e29a6])&&(_0x2447cb=(_0x14153?_0x49e98b(_0x4df08d,_0x8f524e,_0x2447cb):_0x49e98b(_0x2447cb))||_0x2447cb);return _0x14153&&_0x2447cb&&Js(_0x4df08d,_0x8f524e,_0x2447cb),_0x2447cb;},Ne=(_0x174a7d,_0x364ca9)=>(_0x1975e4,_0x273c89)=>_0x364ca9(_0x1975e4,_0x273c89,_0x174a7d);exports[_0x519e85(0x26a)]=class extends a[_0x519e85(0x2a2)]{constructor(_0x3df443,_0x498d53,_0x3aa5a2){const _0x508ed2=_0x519e85;super(),u(this,_0x508ed2(0x297),new Map()),u(this,_0x508ed2(0x4aa),new v[(_0x508ed2(0x1d2))]()),(this['_injector']=_0x3df443,this[_0x508ed2(0x33c)]=_0x498d53,this[_0x508ed2(0x52e)]=_0x3aa5a2,this[_0x508ed2(0x3dc)]());}[_0x519e85(0x1b0)](){const _0x31e093=_0x519e85;super[_0x31e093(0x1b0)](),this['_entities']['forEach'](_0x3d4045=>_0x3d4045['dispose']()),this[_0x31e093(0x297)][_0x31e093(0x18b)]();}[_0x519e85(0x42a)](_0x4ff934){const _0x4ebec9=_0x519e85;var _0x2195c2;return(_0x2195c2=this[_0x4ebec9(0x297)][_0x4ebec9(0x3f3)](_0x4ff934))!=null?_0x2195c2:null;}[_0x519e85(0x2af)](_0x46c66d){const _0x38a6fd=_0x519e85,_0x4d0dad=this[_0x38a6fd(0x42a)](_0x46c66d);return _0x4d0dad?v['of'](_0x4d0dad):this[_0x38a6fd(0x4aa)][_0x38a6fd(0x479)](E[_0x38a6fd(0x4d4)](_0x2a9247=>_0x2a9247[_0x38a6fd(0x371)]===_0x46c66d));}[_0x519e85(0x3dc)](){const _0x2ed49f=_0x519e85;this['_univerInstanceService'][_0x2ed49f(0x375)](a[_0x2ed49f(0x2ef)][_0x2ed49f(0x2ed)])['pipe'](v['takeUntil'](this[_0x2ed49f(0x253)]),E['delay'](0x10))['subscribe'](async _0x172090=>{const _0x18d81c=_0x2ed49f,_0x4f6ab9=_0x172090[_0x18d81c(0x4a8)](),_0x5edd6b=await this[_0x18d81c(0x178)](_0x4f6ab9,$[_0x18d81c(0x2ed)]);this[_0x18d81c(0x297)][_0x18d81c(0x22f)](_0x4f6ab9,_0x5edd6b);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x2ed49f(0x2ef)][_0x2ed49f(0x33b)])[_0x2ed49f(0x479)](v[_0x2ed49f(0x254)](this['dispose$']),E[_0x2ed49f(0x1fd)](0x10))[_0x2ed49f(0x479)](E[_0x2ed49f(0x4d4)](_0x4ba627=>!_0x4ba627[_0x2ed49f(0x4a8)]()[_0x2ed49f(0x357)]('__')))[_0x2ed49f(0x33d)](async _0x1ae051=>{const _0x28f268=_0x2ed49f,_0x49339e=_0x1ae051[_0x28f268(0x4a8)](),_0x60cfe5=await this[_0x28f268(0x178)](_0x49339e,$[_0x28f268(0x33b)]);this['_entities']['set'](_0x49339e,_0x60cfe5);}),v['merge'](this[_0x2ed49f(0x52e)][_0x2ed49f(0x283)](a[_0x2ed49f(0x2ef)][_0x2ed49f(0x2ed)]),this['_univerInstanceService'][_0x2ed49f(0x283)](a[_0x2ed49f(0x2ef)]['UNIVER_DOC']))[_0x2ed49f(0x479)](v['takeUntil'](this[_0x2ed49f(0x253)]))['subscribe'](_0x6d196b=>{const _0x476c76=_0x2ed49f,_0x11036c=_0x6d196b[_0x476c76(0x4a8)](),_0x4c8ffc=this[_0x476c76(0x297)][_0x476c76(0x3f3)](_0x11036c);_0x4c8ffc&&(_0x4c8ffc[_0x476c76(0x1b0)](),this[_0x476c76(0x297)][_0x476c76(0x1a6)](_0x11036c));});}async[_0x519e85(0x178)](_0x39e0a5,_0x2503c1){const _0xf97cd5=_0x519e85,_0x4ad42f=await this[_0xf97cd5(0x33c)]['requireSession'](_0x39e0a5),_0x42c2ba=this['_injector'][_0xf97cd5(0x153)](this[_0xf97cd5(0x258)](_0x2503c1),_0x39e0a5,_0x2503c1,_0x4ad42f);return await _0x42c2ba[_0xf97cd5(0x447)](),this[_0xf97cd5(0x4aa)]['next'](_0x42c2ba),_0x42c2ba;}[_0x519e85(0x258)](_0x157e92){const _0x3ca4a9=_0x519e85;switch(_0x157e92){case $['UNIVER_DOC']:return exports[_0x3ca4a9(0x418)];case $[_0x3ca4a9(0x2ed)]:return exports[_0x3ca4a9(0x2d6)];default:throw new Error(_0x3ca4a9(0x300)+_0x157e92);}}},exports['CollaborationController']=Qs([Ne(0x0,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),Ne(0x1,a['Inject'](exports[_0x519e85(0x2dc)])),Ne(0x2,a['IUniverInstanceService'])],exports[_0x519e85(0x26a)]);const ct=[_0x519e85(0x3bd),_0x519e85(0x13a),'verdancy600',_0x519e85(0x490),_0x519e85(0x3b3),_0x519e85(0x14d)];class Je extends a['Disposable']{constructor(){const _0x297731=_0x519e85;super(...arguments),u(this,_0x297731(0x512),new Map()),u(this,_0x297731(0x29e),0x0);}['assignAColorForMemberID'](_0x392ad2){const _0x267102=_0x519e85;if(this[_0x267102(0x512)]['has'](_0x392ad2))return this[_0x267102(0x512)][_0x267102(0x3f3)](_0x392ad2);const _0x5ae599=ct[this[_0x267102(0x29e)]];return this[_0x267102(0x29e)]=(this[_0x267102(0x29e)]+0x1)%ct['length'],this[_0x267102(0x512)][_0x267102(0x22f)](_0x392ad2,_0x5ae599),_0x5ae599;}}var ei=Object[_0x519e85(0x1d9)],ti=Object[_0x519e85(0x361)],si=(_0x261a4b,_0x320d0e,_0x1a558c,_0x5f5d02)=>{const _0x30b65d=_0x519e85;for(var _0xdbac1f=_0x5f5d02>0x1?void 0x0:_0x5f5d02?ti(_0x320d0e,_0x1a558c):_0x320d0e,_0x724860=_0x261a4b[_0x30b65d(0x4c3)]-0x1,_0xcf0104;_0x724860>=0x0;_0x724860--)(_0xcf0104=_0x261a4b[_0x724860])&&(_0xdbac1f=(_0x5f5d02?_0xcf0104(_0x320d0e,_0x1a558c,_0xdbac1f):_0xcf0104(_0xdbac1f))||_0xdbac1f);return _0x5f5d02&&_0xdbac1f&&ei(_0x320d0e,_0x1a558c,_0xdbac1f),_0xdbac1f;},K=(_0x429cf4,_0x762cb4)=>(_0x4dafe5,_0x55fcb4)=>_0x762cb4(_0x4dafe5,_0x55fcb4,_0x429cf4);const ii=0x12c,ni=0x64;let ke=class extends a[_0x519e85(0x2a2)]{constructor(_0x11a65a,_0x23d98b,_0x1e5b45,_0x45a3c6,_0x46862a,_0x7b4bea,_0x2b95a3,_0x1158e3,_0x3a5e59){const _0x33ce8a=_0x519e85;super(),u(this,_0x33ce8a(0x4f7),!0x1),u(this,_0x33ce8a(0x3dc),!0x1),u(this,_0x33ce8a(0x313),new v['BehaviorSubject'](new Map())),u(this,_0x33ce8a(0x49d),this[_0x33ce8a(0x313)]['asObservable']()),u(this,'_roomMembers$',new v[(_0x33ce8a(0x49e))]([])),u(this,_0x33ce8a(0x421),this['_roomMembers$'][_0x33ce8a(0x479)](v[_0x33ce8a(0x233)](ii))),u(this,_0x33ce8a(0x42c),a[_0x33ce8a(0x329)](_0x33e83f=>{const _0x150aa7=_0x33ce8a,_0x20bf7a={'eventID':_[_0x150aa7(0x3f2)][_0x150aa7(0x2c8)],'data':{'unitID':this[_0x150aa7(0x371)],'memberID':this[_0x150aa7(0x3b1)][_0x150aa7(0x27a)](),'selection':yt(_0x33e83f)}};this['_session'][_0x150aa7(0x234)](_0x20bf7a,this[_0x150aa7(0x371)]);},ni)),(this[_0x33ce8a(0x371)]=_0x11a65a,this['_session']=_0x23d98b,this[_0x33ce8a(0x185)]=_0x1e5b45,this[_0x33ce8a(0x20d)]=_0x45a3c6,this['_memberService']=_0x46862a,this[_0x33ce8a(0x387)]=_0x7b4bea,this[_0x33ce8a(0x435)]=_0x2b95a3,this[_0x33ce8a(0x52e)]=_0x1158e3,this[_0x33ce8a(0x3d7)]=_0x3a5e59);}get[_0x519e85(0x395)](){const _0x423055=_0x519e85;return this[_0x423055(0x313)][_0x423055(0x1a5)]();}get[_0x519e85(0x433)](){const _0x23e45b=_0x519e85;return this[_0x23e45b(0x367)]['getValue']();}[_0x519e85(0x1b0)](){const _0x5baa21=_0x519e85;super['dispose'](),this['_cursorInfo$'][_0x5baa21(0x4a5)](new Map()),this[_0x5baa21(0x313)]['complete'](),this['_roomMembers$'][_0x5baa21(0x4a5)]([]),this['_roomMembers$'][_0x5baa21(0x2e3)]();}[_0x519e85(0x447)](){const _0x4784c8=_0x519e85;this[_0x4784c8(0x3dc)]||(this[_0x4784c8(0x3dc)]=!0x0,this[_0x4784c8(0x3b1)][_0x4784c8(0x477)][_0x4784c8(0x479)](v[_0x4784c8(0x254)](this['dispose$']))[_0x4784c8(0x33d)](_0x343b26=>{const _0x5a8152=_0x4784c8;_0x343b26===H[_0x5a8152(0x48f)]?this[_0x5a8152(0x52d)]():this[_0x5a8152(0x205)]();}),this['_session']['event$'][_0x4784c8(0x479)](v[_0x4784c8(0x254)](this['dispose$']))[_0x4784c8(0x33d)](_0x36a492=>{const _0x65e84a=_0x4784c8,_0x4f4812=_0x36a492[_0x65e84a(0x3ba)];_0x4f4812===_[_0x65e84a(0x3f2)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x36a492),_0x4f4812===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x65e84a(0x2f4)](_0x36a492);}),this['disposeWithMe'](this[_0x4784c8(0x3d7)]['onCommandExecuted'](_0x5264a3=>{const _0x8805ee=_0x4784c8,_0x1134d7=_0x5264a3[_0x8805ee(0x545)];_0x1134d7!=null&&this[_0x8805ee(0x4f7)]&&_0x5264a3['id']===se['SetTextSelectionsOperation']['id']&&_0x1134d7[_0x8805ee(0x513)]===this[_0x8805ee(0x371)]&&_0x1134d7['isEditing']===!0x1&&this[_0x8805ee(0x42c)](_0x1134d7['ranges']);})),this[_0x4784c8(0x387)][_0x4784c8(0x537)]['pipe'](v[_0x4784c8(0x254)](this[_0x4784c8(0x253)]))[_0x4784c8(0x33d)](_0x256fb6=>{const _0x4f4012=_0x4784c8;if((_0x256fb6==null?void 0x0:_0x256fb6['unitID'])!==this[_0x4f4012(0x371)])return;const _0x2b559a={'eventID':_['CollaborationEvent'][_0x4f4012(0x2c8)],'data':_0x256fb6};this['_onCursorUpdate'](_0x2b559a);}),this['disposeWithMe'](this[_0x4784c8(0x3d7)][_0x4784c8(0x368)](_0x125d9e=>{const _0xa90db=_0x4784c8;if(_0x125d9e['params']==null)return;const _0x3a9515=_0x125d9e[_0xa90db(0x545)];if(_0x125d9e['id']!==se['RichTextEditingMutation']['id']||_0x3a9515[_0xa90db(0x513)]!==this[_0xa90db(0x371)])return;const _0x4c86f8={'id':_0xa90db(0x497),'params':_0x3a9515},_0x2a2722=this[_0xa90db(0x395)];for(const [_0x1cc727,_0x5eb1f0]of _0x2a2722){const _0x3613c9={'id':_0xa90db(0x497),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5eb1f0[_0xa90db(0x247)]}},_0x49cd=this[_0xa90db(0x435)][_0xa90db(0x48e)](_0x4c86f8,_0x3613c9,!0x1);if(_['isTransformMutationFailure'](_0x49cd))throw _0x49cd['error'];_0x2a2722['set'](_0x1cc727,{..._0x5eb1f0,'ranges':_0x49cd['m2Prime']['params'][_0xa90db(0x1bf)]});}queueMicrotask(()=>{const _0x373b08=_0xa90db;this[_0x373b08(0x313)][_0x373b08(0x4a5)](_0x2a2722);});})));}[_0x519e85(0x207)](_0x37de12){const _0x105c6c=_0x519e85;var _0x41386f,_0x5c80db;const {memberID:_0x3b5f59,selection:_0x3f6f35}=_0x37de12[_0x105c6c(0x229)],_0x3e52ad=ks(_0x3f6f35),_0x1ee2fb=(_0x5c80db=(_0x41386f=this[_0x105c6c(0x3d8)][_0x105c6c(0x299)](this[_0x105c6c(0x371)],_0x3b5f59))==null?void 0x0:_0x41386f[_0x105c6c(0x4a1)])!=null?_0x5c80db:'Unknown\x20user',_0x58af44={'color':this[_0x105c6c(0x20d)][_0x105c6c(0x501)](_0x3b5f59),'name':_0x1ee2fb,'ranges':_0x3e52ad},_0x3c1d31=this['cursorInfo'];_0x3c1d31[_0x105c6c(0x22f)](_0x3b5f59,_0x58af44),this[_0x105c6c(0x313)][_0x105c6c(0x4a5)](_0x3c1d31);}[_0x519e85(0x2f4)](_0x38f2fc){const _0x180a73=_0x519e85,{memberID:_0x382c9d}=_0x38f2fc[_0x180a73(0x229)],_0x2007e3=this[_0x180a73(0x395)];_0x2007e3['delete'](_0x382c9d),this[_0x180a73(0x313)][_0x180a73(0x4a5)](_0x2007e3);}[_0x519e85(0x52d)](){const _0x387204=_0x519e85;var _0x443070;if(this[_0x387204(0x4f7)]=!0x0,((_0x443070=this[_0x387204(0x52e)][_0x387204(0x1bd)]())==null?void 0x0:_0x443070[_0x387204(0x4a8)]())!==this[_0x387204(0x371)])return;const _0xe47c2a=this[_0x387204(0x185)][_0x387204(0x3f3)](se[_0x387204(0x429)])[_0x387204(0x194)]();Array[_0x387204(0x2f2)](_0xe47c2a)&&_0xe47c2a[_0x387204(0x4c3)]>0x0&&this[_0x387204(0x42c)](_0xe47c2a);}['_toggleOffline'](){const _0x2c47fb=_0x519e85;this[_0x2c47fb(0x4f7)]=!0x1;}};ke=si([K(0x2,a['Inject'](a[_0x519e85(0x42d)])),K(0x3,a[_0x519e85(0x2ce)](Je)),K(0x4,a['Inject'](X)),K(0x5,a['Inject'](Xe)),K(0x6,_[_0x519e85(0x18d)]),K(0x7,a[_0x519e85(0x524)]),K(0x8,a[_0x519e85(0x147)])],ke);var ri=Object[_0x519e85(0x1d9)],oi=Object[_0x519e85(0x361)],ai=(_0x183c1e,_0xae1ed9,_0x1a067d,_0x2c8e31)=>{const _0x2ad4af=_0x519e85;for(var _0x311b2e=_0x2c8e31>0x1?void 0x0:_0x2c8e31?oi(_0xae1ed9,_0x1a067d):_0xae1ed9,_0x1fe143=_0x183c1e[_0x2ad4af(0x4c3)]-0x1,_0x3f453a;_0x1fe143>=0x0;_0x1fe143--)(_0x3f453a=_0x183c1e[_0x1fe143])&&(_0x311b2e=(_0x2c8e31?_0x3f453a(_0xae1ed9,_0x1a067d,_0x311b2e):_0x3f453a(_0x311b2e))||_0x311b2e);return _0x2c8e31&&_0x311b2e&&ri(_0xae1ed9,_0x1a067d,_0x311b2e),_0x311b2e;},Q=(_0x5a24cd,_0x52f4c0)=>(_0x348873,_0x849be1)=>_0x52f4c0(_0x348873,_0x849be1,_0x5a24cd);const ci=0x12c,li=0x64,hi=()=>{let _0x3d8333=[],_0x2baeb6=!0x1;return _0xb730ea=>{const _0x10c916=_0x5923;_0x3d8333[_0x10c916(0x50d)](_0xb730ea),_0x2baeb6||(_0x2baeb6=!0x0,setTimeout(()=>{const _0x285b44=_0x10c916;_0x3d8333[_0x285b44(0x27d)](_0x3906b6=>_0x3906b6()),_0x3d8333=[],_0x2baeb6=!0x1;}));};};let Be=class extends a['RxDisposable']{constructor(_0x2086e1,_0x4fdddb,_0x5bab6c,_0xb17f7a,_0xc2d757,_0x42e5c5,_0x1dcf0e,_0x286b9d){const _0x2122cc=_0x519e85;super(),u(this,_0x2122cc(0x4f7),!0x1),u(this,_0x2122cc(0x3dc),!0x1),u(this,_0x2122cc(0x313),new v[(_0x2122cc(0x49e))](new Map())),u(this,_0x2122cc(0x49d),this[_0x2122cc(0x313)][_0x2122cc(0x441)]()),u(this,'_roomMembers$',new v[(_0x2122cc(0x49e))]([])),u(this,'roomMembers$',this['_roomMembers$'][_0x2122cc(0x479)](v[_0x2122cc(0x233)](ci))),u(this,_0x2122cc(0x42c),a['debounce']((_0x237ef8,_0x421443)=>{const _0x15a4ac=_0x2122cc,_0x53d891={'eventID':_[_0x15a4ac(0x3f2)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x15a4ac(0x371)],'memberID':this[_0x15a4ac(0x3b1)][_0x15a4ac(0x27a)](),'selection':et[_0x15a4ac(0x502)](_0x237ef8,_0x421443[_0x15a4ac(0x4ca)])}};this['_session'][_0x15a4ac(0x234)](_0x53d891,this[_0x15a4ac(0x371)]);},li)),(this['unitID']=_0x2086e1,this[_0x2122cc(0x3b1)]=_0x4fdddb,this['_injector']=_0x5bab6c,this[_0x2122cc(0x20d)]=_0xb17f7a,this[_0x2122cc(0x3d8)]=_0xc2d757,this[_0x2122cc(0x52e)]=_0x42e5c5,this[_0x2122cc(0x3d7)]=_0x1dcf0e,this[_0x2122cc(0x372)]=_0x286b9d);}get[_0x519e85(0x395)](){const _0xa52c60=_0x519e85;return this[_0xa52c60(0x313)]['getValue']();}get[_0x519e85(0x433)](){const _0xf88ab0=_0x519e85;return this[_0xf88ab0(0x367)]['getValue']();}[_0x519e85(0x1b0)](){const _0x25bfa2=_0x519e85;super[_0x25bfa2(0x1b0)](),this['_cursorInfo$']['next'](new Map()),this[_0x25bfa2(0x313)][_0x25bfa2(0x2e3)](),this[_0x25bfa2(0x367)][_0x25bfa2(0x4a5)]([]),this[_0x25bfa2(0x367)][_0x25bfa2(0x2e3)]();}[_0x519e85(0x447)](){const _0x421b0c=_0x519e85;this[_0x421b0c(0x3dc)]||(this[_0x421b0c(0x3dc)]=!0x0,this[_0x421b0c(0x3b1)][_0x421b0c(0x477)][_0x421b0c(0x479)](v[_0x421b0c(0x254)](this[_0x421b0c(0x253)]))[_0x421b0c(0x33d)](_0x4b7816=>{const _0x1acf6e=_0x421b0c;_0x4b7816===H[_0x1acf6e(0x48f)]?this[_0x1acf6e(0x52d)]():this[_0x1acf6e(0x205)]();}),this[_0x421b0c(0x3b1)][_0x421b0c(0x46f)][_0x421b0c(0x479)](v[_0x421b0c(0x254)](this['dispose$']))[_0x421b0c(0x33d)](_0x4f3c3f=>{const _0x233d11=_0x421b0c,_0x4b9f18=_0x4f3c3f['eventID'];_0x4b9f18===_[_0x233d11(0x3f2)][_0x233d11(0x2c8)]&&this[_0x233d11(0x207)](_0x4f3c3f),_0x4b9f18===_['CollaborationEvent'][_0x233d11(0x28b)]&&this[_0x233d11(0x2f4)](_0x4f3c3f);}),this['_onRefRangeChange'](),this[_0x421b0c(0x48d)](this[_0x421b0c(0x3d7)][_0x421b0c(0x368)](_0x52adf7=>{const _0x1d0152=_0x421b0c;if(this[_0x1d0152(0x4f7)]&&_0x52adf7['id']===C[_0x1d0152(0x3c9)]['id']&&_0x52adf7['params'][_0x1d0152(0x513)]===this[_0x1d0152(0x371)]){const _0x1ae656=_0x52adf7[_0x1d0152(0x545)];this[_0x1d0152(0x42c)](_0x1ae656['subUnitId'],_0x1ae656[_0x1d0152(0x3dd)][0x0]);}})));}[_0x519e85(0x207)](_0x30b09c){const _0x5be61b=_0x519e85;var _0xfee332,_0x22017e;const {memberID:_0x19e0d0,selection:_0x56ab10}=_0x30b09c['data'],{sheetName:_0x39a0a2,range:_0x3882c4}=et['deserializeRangeWithSheet'](_0x56ab10),_0x37566d={'name':(_0x22017e=(_0xfee332=this[_0x5be61b(0x3d8)][_0x5be61b(0x299)](this[_0x5be61b(0x371)],_0x19e0d0))==null?void 0x0:_0xfee332['name'])!=null?_0x22017e:_0x5be61b(0x38a),'range':this[_0x5be61b(0x2f6)](_0x39a0a2,_0x3882c4),'sheetID':_0x39a0a2,'color':this[_0x5be61b(0x20d)]['assignAColorForMemberID'](_0x19e0d0),'selection':_0x56ab10},_0x19541b=this[_0x5be61b(0x395)];_0x19541b[_0x5be61b(0x22f)](_0x19e0d0,_0x37566d),this[_0x5be61b(0x313)][_0x5be61b(0x4a5)](_0x19541b);}[_0x519e85(0x2f4)](_0x45320b){const _0x4a36b9=_0x519e85,{memberID:_0x2483f5}=_0x45320b['data'],_0x42f4d4=this[_0x4a36b9(0x395)];_0x42f4d4[_0x4a36b9(0x1a6)](_0x2483f5),this[_0x4a36b9(0x313)][_0x4a36b9(0x4a5)](_0x42f4d4);}[_0x519e85(0x2f6)](_0x1d2e49,_0x381885){const _0x2bf92b=_0x519e85;var _0x39ff6a,_0x178e68;const _0x4cf70a=(_0x178e68=(_0x39ff6a=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x2bf92b(0x371)]))==null?void 0x0:_0x39ff6a[_0x2bf92b(0x146)](_0x1d2e49))==null?void 0x0:_0x178e68[_0x2bf92b(0x40d)]();return(_0x4cf70a==null?void 0x0:_0x4cf70a['find'](_0x309e0e=>a[_0x2bf92b(0x1e9)][_0x2bf92b(0x420)](_0x309e0e,_0x381885)))||_0x381885;}[_0x519e85(0x35a)](){const _0x3a5ccb=_0x519e85,_0x19aab1=new a['DisposableCollection'](),_0x4ddeea=hi(),_0x18aa68=()=>{const _0x2b29e6=_0x5923;_0x19aab1[_0x2b29e6(0x1b0)]();const _0x3e9e58=(_0x22a554,_0x4ce268,_0x265ce3,_0x17a76e)=>{const _0x257b8e=_0x2b29e6;let _0x358519=[];switch(_0x22a554['id']){case C[_0x257b8e(0x278)][_0x257b8e(0x1f9)]:{_0x358519=C[_0x257b8e(0x2e6)](_0x22a554,_0x17a76e);break;}case C[_0x257b8e(0x278)][_0x257b8e(0x20c)]:{_0x358519=C[_0x257b8e(0x347)](_0x22a554,_0x17a76e);break;}case C[_0x257b8e(0x278)]['InsertColCommandId']:{_0x358519=C['handleInsertCol'](_0x22a554,_0x17a76e);break;}case C[_0x257b8e(0x278)][_0x257b8e(0x1fb)]:{_0x358519=C[_0x257b8e(0x427)](_0x22a554,_0x17a76e);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x358519=C[_0x257b8e(0x53c)](_0x22a554,_0x17a76e);break;}case C[_0x257b8e(0x278)][_0x257b8e(0x16d)]:{_0x358519=C[_0x257b8e(0x1d6)](_0x22a554,_0x17a76e);break;}case C['EffectRefRangId'][_0x257b8e(0x449)]:{_0x358519=C[_0x257b8e(0x352)](_0x22a554,_0x17a76e);break;}case C[_0x257b8e(0x278)]['RemoveColCommandId']:{_0x358519=C['handleIRemoveCol'](_0x22a554,_0x17a76e);break;}case C['EffectRefRangId']['RemoveRowCommandId']:{_0x358519=C['handleIRemoveRow'](_0x22a554,_0x17a76e);break;}}const _0x96a2f5=C[_0x257b8e(0x152)](_0x358519,_0x17a76e),_0x411e28=this[_0x257b8e(0x395)][_0x257b8e(0x3f3)](_0x4ce268);if(_0x411e28&&_0x96a2f5){const _0x5b9d0b={..._0x411e28,'range':_0x96a2f5};this['cursorInfo'][_0x257b8e(0x22f)](_0x4ce268,_0x5b9d0b),_0x4ddeea(()=>{const _0x7a7e11=_0x257b8e,_0x463b8a=this['_refRangeService'][_0x7a7e11(0x327)](_0x96a2f5,_0x3356f2=>(_0x463b8a[_0x7a7e11(0x1b0)](),_0x3e9e58(_0x3356f2,_0x4ce268,_0x265ce3,_0x96a2f5)));_0x19aab1['add'](_0x463b8a);});}return{'redos':[],'undos':[]};};this[_0x2b29e6(0x395)]['forEach']((_0x52b074,_0x1b1ca3)=>{const _0x106d96=_0x2b29e6,{range:_0x204113,sheetID:_0x50baef}=_0x52b074,_0x17d120=this['_refRangeService'][_0x106d96(0x327)](_0x204113,_0x2214e6=>(_0x17d120[_0x106d96(0x1b0)](),_0x3e9e58(_0x2214e6,_0x1b1ca3,_0x50baef,_0x204113)));_0x19aab1[_0x106d96(0x2c3)](_0x17d120);});};this[_0x3a5ccb(0x48d)](a[_0x3a5ccb(0x49a)](this[_0x3a5ccb(0x313)][_0x3a5ccb(0x33d)](()=>{_0x18aa68();})));}['_toggleOnline'](){const _0x2060ad=_0x519e85;var _0x30cd23,_0x277be8;if(this['_online']=!0x0,((_0x30cd23=this[_0x2060ad(0x52e)]['getFocusedUnit']())==null?void 0x0:_0x30cd23['getUnitId']())!==this[_0x2060ad(0x371)])return;const _0x13f6d2=(_0x277be8=this[_0x2060ad(0x185)][_0x2060ad(0x3f3)](C[_0x2060ad(0x3b7)])[_0x2060ad(0x39b)]())==null?void 0x0:_0x277be8[0x0],_0x38764e=this[_0x2060ad(0x52e)][_0x2060ad(0x2ba)](a[_0x2060ad(0x2ef)][_0x2060ad(0x2ed)])[_0x2060ad(0x409)]();_0x13f6d2&&_0x38764e&&this[_0x2060ad(0x42c)](_0x38764e['getSheetId'](),_0x13f6d2);}[_0x519e85(0x205)](){const _0x10bfe0=_0x519e85;this[_0x10bfe0(0x4f7)]=!0x1;}};Be=ai([Q(0x2,a[_0x519e85(0x2ce)](a['Injector'])),Q(0x3,a[_0x519e85(0x2ce)](Je)),Q(0x4,a[_0x519e85(0x2ce)](X)),Q(0x5,a[_0x519e85(0x524)]),Q(0x6,a[_0x519e85(0x147)]),Q(0x7,a[_0x519e85(0x2ce)](C[_0x519e85(0x2cd)]))],Be);var _i=Object['defineProperty'],ui=Object['getOwnPropertyDescriptor'],di=(_0xcdf34e,_0x2d2320,_0xdf583c,_0x281ddc)=>{const _0x1fd1fe=_0x519e85;for(var _0x5d8159=_0x281ddc>0x1?void 0x0:_0x281ddc?ui(_0x2d2320,_0xdf583c):_0x2d2320,_0x367ba5=_0xcdf34e[_0x1fd1fe(0x4c3)]-0x1,_0x44a94a;_0x367ba5>=0x0;_0x367ba5--)(_0x44a94a=_0xcdf34e[_0x367ba5])&&(_0x5d8159=(_0x281ddc?_0x44a94a(_0x2d2320,_0xdf583c,_0x5d8159):_0x44a94a(_0x5d8159))||_0x5d8159);return _0x281ddc&&_0x5d8159&&_i(_0x2d2320,_0xdf583c,_0x5d8159),_0x5d8159;},Me=(_0x3f1b28,_0x47653e)=>(_0x23aef9,_0x5be5c7)=>_0x47653e(_0x23aef9,_0x5be5c7,_0x3f1b28);let ne=class extends a['RxDisposable']{constructor(_0x371f37,_0x3e4e61,_0x5581c9){const _0x34d64e=_0x519e85;super(),u(this,'_entities',new Map()),u(this,'_entityInit$',new v['Subject']()),(this[_0x34d64e(0x52e)]=_0x371f37,this[_0x34d64e(0x185)]=_0x3e4e61,this[_0x34d64e(0x33c)]=_0x5581c9,this[_0x34d64e(0x3dc)]());}[_0x519e85(0x1b0)](){const _0x48b6ed=_0x519e85;super[_0x48b6ed(0x1b0)](),this[_0x48b6ed(0x4aa)][_0x48b6ed(0x2e3)](),this[_0x48b6ed(0x297)]['forEach'](_0x713cd2=>_0x713cd2[_0x48b6ed(0x1b0)]());}[_0x519e85(0x370)](_0x57953e){const _0x2ab1ce=_0x519e85;return this[_0x2ab1ce(0x297)][_0x2ab1ce(0x32d)](_0x57953e)?this[_0x2ab1ce(0x297)][_0x2ab1ce(0x3f3)](_0x57953e)[_0x2ab1ce(0x49d)]:this[_0x2ab1ce(0x4aa)][_0x2ab1ce(0x479)](v[_0x2ab1ce(0x4d4)](_0x53f364=>_0x53f364[_0x2ab1ce(0x371)]===_0x57953e),v[_0x2ab1ce(0x1a0)](_0x4664eb=>_0x4664eb[_0x2ab1ce(0x49d)]));}[_0x519e85(0x3dc)](){const _0x5ed2f5=_0x519e85;this[_0x5ed2f5(0x52e)][_0x5ed2f5(0x375)](a['UniverInstanceType'][_0x5ed2f5(0x2ed)])[_0x5ed2f5(0x479)](v['takeUntil'](this[_0x5ed2f5(0x253)]))['subscribe'](async _0x453598=>{const _0xf20434=_0x5ed2f5,_0x275926=_0x453598[_0xf20434(0x4a8)](),_0x5e0689=await this[_0xf20434(0x412)](_0x275926);this[_0xf20434(0x4aa)][_0xf20434(0x4a5)](_0x5e0689),this[_0xf20434(0x297)][_0xf20434(0x22f)](_0x275926,_0x5e0689);}),this[_0x5ed2f5(0x52e)][_0x5ed2f5(0x375)](a[_0x5ed2f5(0x2ef)]['UNIVER_DOC'])['pipe'](v[_0x5ed2f5(0x254)](this[_0x5ed2f5(0x253)]))[_0x5ed2f5(0x479)](v[_0x5ed2f5(0x4d4)](_0x9141de=>!_0x9141de[_0x5ed2f5(0x4a8)]()[_0x5ed2f5(0x357)]('__')))[_0x5ed2f5(0x33d)](async _0x3f0ae0=>{const _0x10d5b4=_0x5ed2f5,_0x3c6069=_0x3f0ae0[_0x10d5b4(0x4a8)](),_0x30f527=await this[_0x10d5b4(0x46a)](_0x3c6069);this[_0x10d5b4(0x4aa)][_0x10d5b4(0x4a5)](_0x30f527),this[_0x10d5b4(0x297)][_0x10d5b4(0x22f)](_0x3c6069,_0x30f527);}),v[_0x5ed2f5(0x51c)](this[_0x5ed2f5(0x52e)][_0x5ed2f5(0x283)](a[_0x5ed2f5(0x2ef)]['UNIVER_DOC']),this[_0x5ed2f5(0x52e)][_0x5ed2f5(0x283)](a[_0x5ed2f5(0x2ef)][_0x5ed2f5(0x2ed)]))['pipe'](v[_0x5ed2f5(0x254)](this['dispose$']))['subscribe'](_0x5c2179=>{const _0x3b35de=_0x5ed2f5,_0x4386f2=_0x5c2179[_0x3b35de(0x4a8)](),_0x401dda=this[_0x3b35de(0x297)]['get'](_0x4386f2);_0x401dda&&(_0x401dda['dispose'](),this[_0x3b35de(0x297)][_0x3b35de(0x1a6)](_0x4386f2));});}async[_0x519e85(0x412)](_0x4b93c7){const _0x13601b=_0x519e85,_0x1bc7e7=await this['_collabSessionService'][_0x13601b(0x273)](_0x4b93c7),_0x2d64f1=this[_0x13601b(0x185)][_0x13601b(0x153)](Be,_0x4b93c7,_0x1bc7e7);return _0x2d64f1[_0x13601b(0x447)](),_0x2d64f1;}async[_0x519e85(0x46a)](_0x58c068){const _0x285daf=_0x519e85,_0x5d6ca0=await this[_0x285daf(0x33c)]['requireSession'](_0x58c068),_0x4095fb=this[_0x285daf(0x185)][_0x285daf(0x153)](ke,_0x58c068,_0x5d6ca0);return _0x4095fb[_0x285daf(0x447)](),_0x4095fb;}};ne=di([Me(0x0,a['IUniverInstanceService']),Me(0x1,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),Me(0x2,a[_0x519e85(0x2ce)](exports[_0x519e85(0x2dc)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,Si=0x5;function vi(_0x37ea87,_0x511c6b){const _0x18a640=_0x519e85;let {radius:_0x2c88c5,width:_0x5dadd0,height:_0x516839}=_0x511c6b;_0x2c88c5=_0x2c88c5!=null?_0x2c88c5:0x0,_0x5dadd0=_0x5dadd0!=null?_0x5dadd0:0x1e,_0x516839=_0x516839!=null?_0x516839:0x1e;let _0x200ac4=0x0,_0x477218=0x0,_0x19351c=0x0;_0x200ac4=_0x477218=_0x19351c=Math[_0x18a640(0x197)](_0x2c88c5,_0x5dadd0/0x2,_0x516839/0x2),_0x37ea87[_0x18a640(0x21f)](),_0x37ea87[_0x18a640(0x274)](_0x200ac4,0x0),_0x37ea87['lineTo'](_0x5dadd0-_0x477218,0x0),_0x37ea87[_0x18a640(0x2c2)](_0x5dadd0-_0x477218,_0x477218,_0x477218,Math['PI']*0x3/0x2,0x0,!0x1),_0x37ea87[_0x18a640(0x530)](_0x5dadd0,_0x516839-_0x19351c),_0x37ea87['arc'](_0x5dadd0-_0x19351c,_0x516839-_0x19351c,_0x19351c,0x0,Math['PI']/0x2,!0x1),_0x37ea87[_0x18a640(0x530)](0x0,_0x516839),_0x37ea87['lineTo'](0x0,_0x200ac4),_0x37ea87[_0x18a640(0x2c2)](_0x200ac4,_0x200ac4,_0x200ac4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x37ea87['closePath'](),_0x511c6b[_0x18a640(0x228)]&&(_0x37ea87[_0x18a640(0x12a)](),_0x37ea87[_0x18a640(0x350)]=_0x511c6b[_0x18a640(0x228)],_0x511c6b[_0x18a640(0x4dd)]===_0x18a640(0x320)?_0x37ea87['fill'](_0x18a640(0x320)):_0x37ea87[_0x18a640(0x228)](),_0x37ea87['restore']());}class Oe extends D[_0x519e85(0x3d9)]{constructor(_0x2107c3,_0x44c4e8){const _0x6a4714=_0x519e85;super(_0x2107c3,_0x44c4e8),u(this,_0x6a4714(0x48c)),u(this,_0x6a4714(0x1ca)),(this['color']=_0x44c4e8==null?void 0x0:_0x44c4e8[_0x6a4714(0x48c)],this[_0x6a4714(0x1ca)]=_0x44c4e8==null?void 0x0:_0x44c4e8['text']);}static[_0x519e85(0x319)](_0x168171,_0x5caeb1){const _0x56d76d=_0x519e85,{text:_0x55515e,color:_0x217a2a}=_0x5caeb1;_0x168171[_0x56d76d(0x12a)](),_0x168171[_0x56d76d(0x49c)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x476d48=_0x168171[_0x56d76d(0x21e)](_0x55515e)[_0x56d76d(0x393)],_0x28e159=Math[_0x56d76d(0x197)](_0x476d48+0x2*Ae,lt);vi(_0x168171,{'height':de,'radius':0x4,'width':_0x28e159,'fill':_0x217a2a,'evented':!0x1}),_0x168171[_0x56d76d(0x350)]=_0x56d76d(0x419);const _0x2586c6=Ae,_0x1ae845=de-Si,_0x55741c=lt-0x2*Ae;if(_0x476d48>_0x55741c){let _0x4ad1f8='',_0x5932fe=0x0;for(const _0x11ba03 of _0x55515e){const _0x4b4126=_0x168171['measureText'](_0x11ba03)[_0x56d76d(0x393)];if(_0x5932fe+_0x4b4126<=_0x55741c-_0x168171[_0x56d76d(0x21e)](_0x56d76d(0x529))[_0x56d76d(0x393)])_0x4ad1f8+=_0x11ba03,_0x5932fe+=_0x4b4126;else{_0x4ad1f8+='...';break;}}_0x168171['fillText'](_0x4ad1f8,_0x2586c6,_0x1ae845);}else _0x168171[_0x56d76d(0x4f8)](_0x55515e,_0x2586c6,_0x1ae845);_0x168171[_0x56d76d(0x382)]();}['_draw'](_0x460202){Oe['drawWith'](_0x460202,this);}}const Le='collab-text-anchor-',mi='collab-text-range-',gi=_0x519e85(0x18a),le=0x6,fi=1.5,je=0x4,Ii=1.5,pi=_0x519e85(0x3d2);class ht{constructor(_0x3471ad,_0x45679d,_0x245eb6,_0x1000ba){const _0x248973=_0x519e85;u(this,_0x248973(0x21c),[]),u(this,_0x248973(0x377),null),u(this,_0x248973(0x3e9),null),u(this,_0x248973(0x386),null),u(this,_0x248973(0x326),null),u(this,_0x248973(0x209),null),(this['_cursor']=_0x3471ad,this['_scene']=_0x45679d,this[_0x248973(0x339)]=_0x245eb6,this[_0x248973(0x28c)]=_0x1000ba,this[_0x248973(0x2cc)]());}set[_0x519e85(0x2c4)](_0x94652a){const _0x2e3a6a=_0x519e85;_0x94652a?(this[_0x2e3a6a(0x386)]&&this[_0x2e3a6a(0x386)][_0x2e3a6a(0x4fc)](),this['_textBubble']&&this[_0x2e3a6a(0x3e9)][_0x2e3a6a(0x519)]()):(this[_0x2e3a6a(0x386)]&&this[_0x2e3a6a(0x386)][_0x2e3a6a(0x519)](),this[_0x2e3a6a(0x3e9)]&&this[_0x2e3a6a(0x3e9)][_0x2e3a6a(0x4fc)]());}[_0x519e85(0x1b0)](){const _0x9b1ac=_0x519e85;for(const _0x37cfc7 of this['_shapes'])_0x37cfc7['dispose']();this[_0x9b1ac(0x3e9)]&&this['_textBubble'][_0x9b1ac(0x1b0)](),this[_0x9b1ac(0x386)]&&this[_0x9b1ac(0x386)][_0x9b1ac(0x1b0)](),this['_anchor']&&this[_0x9b1ac(0x377)]['dispose'](),this['_eventUnsubscribe']&&this[_0x9b1ac(0x209)]();}[_0x519e85(0x2cc)](){const _0x199622=_0x519e85;var _0x2dc585;const {_docSkeleton:_0x53519b,_document:_0x12797d}=this,{color:_0xa2eb3,name:_0x34fe05,ranges:_0x59c518}=this[_0x199622(0x259)],_0x958ba2=_0x12797d[_0x199622(0x2dd)](),{docsLeft:_0x405334,docsTop:_0x5de72e}=_0x958ba2,_0x2bc58b=new N[(_0x199622(0x171))](_0x958ba2,_0x53519b);for(const {startOffset:_0x8b1541,endOffset:_0x1bb3c7,collapsed:_0x3ba02c,isActive:_0x42d303}of _0x59c518){const _0x437a0a=_0x53519b[_0x199622(0x4ef)](_0x8b1541),_0x111c6b=_0x53519b[_0x199622(0x4ef)](_0x1bb3c7);if(_0x42d303){const {contentBoxPointGroup:_0x314ea8}=_0x2bc58b[_0x199622(0x2f9)](_0x111c6b,_0x111c6b);if(_0x314ea8[_0x199622(0x4c3)]===0x0)continue;this['_drawAnchor'](_0xa2eb3,_0x314ea8,_0x405334,_0x5de72e,_0x34fe05),this[_0x199622(0x209)]=this['_handleHover']();}if(!_0x3ba02c&&_0x437a0a&&_0x111c6b){if(N[_0x199622(0x190)](_0x437a0a,_0x111c6b)){const _0x395e86=new N[(_0x199622(0x340))](_0x958ba2,_0x53519b),{pointGroup:_0x33c4b0}=(_0x2dc585=_0x395e86[_0x199622(0x2f9)](_0x437a0a,_0x111c6b))!=null?_0x2dc585:{};if(_0x33c4b0==null||_0x33c4b0[_0x199622(0x4c3)]===0x0)continue;this['_drawRectRange'](_0xa2eb3,_0x33c4b0,_0x405334,_0x5de72e);}else{const {contentBoxPointGroup:_0x23b602}=_0x2bc58b[_0x199622(0x2f9)](_0x437a0a,_0x111c6b);if(_0x23b602[_0x199622(0x4c3)]===0x0)continue;this[_0x199622(0x2f1)](_0xa2eb3,_0x23b602,_0x405334,_0x5de72e);}}}}[_0x519e85(0x31d)](_0x24887d,_0x48177f,_0x5bde32,_0x569542,_0x313e3b){const _0x4afb48=_0x519e85,_0x46c81d=this[_0x4afb48(0x21d)](_0x48177f),{left:_0x5b556a,top:_0x34ab99,height:_0x716594}=_0x46c81d,_0x2b5a98=this[_0x4afb48(0x39c)](),_0x9a9e4f=Ii/_0x2b5a98,_0x2875b6=new D[(_0x4afb48(0x47e))](Le+a[_0x4afb48(0x172)][_0x4afb48(0x4cc)](le),{'left':_0x5b556a+_0x5bde32-_0x9a9e4f,'top':_0x34ab99+_0x569542,'height':_0x716594,'width':fi,'fill':_0x24887d||D['getColor'](a[_0x4afb48(0x4b0)][_0x4afb48(0x41b)],0x0),'strokeWidth':_0x9a9e4f,'stroke':pi,'evented':!0x0});this[_0x4afb48(0x377)]=_0x2875b6,this[_0x4afb48(0x3c3)][_0x4afb48(0x130)](_0x2875b6,N[_0x4afb48(0x15a)]);const _0x30ffec=new D[(_0x4afb48(0x47e))](Le+a[_0x4afb48(0x172)]['generateRandomId'](le),{'left':_0x5b556a+_0x5bde32-_0x9a9e4f,'top':_0x34ab99+_0x569542-je/0x2,'height':je,'width':je,'fill':_0x24887d||D['getColor'](a[_0x4afb48(0x4b0)][_0x4afb48(0x41b)],0x0),'strokeWidth':0x0,'stroke':_0x24887d||D['getColor'](a[_0x4afb48(0x4b0)]['black'],0x0),'evented':!0x1});this[_0x4afb48(0x386)]=_0x30ffec,this['_scene']['addObject'](_0x30ffec,N['TEXT_RANGE_LAYER_INDEX']);const _0x2235b2=new Oe(Le+a['Tools']['generateRandomId'](le),{'left':_0x5b556a+_0x5bde32-_0x9a9e4f,'top':_0x34ab99+_0x569542-de,'text':_0x313e3b,'color':_0x24887d});this['_textBubble']=_0x2235b2,this[_0x4afb48(0x3c3)][_0x4afb48(0x130)](_0x2235b2,N[_0x4afb48(0x15a)]),this[_0x4afb48(0x2c4)]=!0x1;}['_handleHover'](){const _0x5e5ce7=_0x519e85,_0x457168=this[_0x5e5ce7(0x377)][_0x5e5ce7(0x1bc)][_0x5e5ce7(0x538)](()=>{const _0x2057c9=_0x5e5ce7;this[_0x2057c9(0x2c4)]=!0x0;}),_0x5843ab=this[_0x5e5ce7(0x377)]['onPointerLeave$'][_0x5e5ce7(0x538)](()=>{const _0x4c3400=_0x5e5ce7;this[_0x4c3400(0x326)]&&clearTimeout(this['_hideTimer']),this[_0x4c3400(0x326)]=setTimeout(()=>{const _0x278dd1=_0x4c3400;this[_0x278dd1(0x2c4)]=!0x1;},0x7d0);});return()=>{const _0x32a755=_0x5e5ce7;_0x457168[_0x32a755(0x53e)](),_0x5843ab[_0x32a755(0x53e)]();};}['_drawTextRange'](_0x561049,_0xa9fa42,_0x471183,_0x29aa92){const _0xde5202=_0x519e85,_0x412760=new a[(_0xde5202(0x14e))](_0x561049)[_0xde5202(0x540)](0.2)[_0xde5202(0x1dc)](),_0x178ca3=new D[(_0xde5202(0x175))](mi+a['Tools'][_0xde5202(0x4cc)](le),{'pointsGroup':_0xa9fa42,'fill':_0x412760||D['getColor'](a[_0xde5202(0x4b0)][_0xde5202(0x41b)],0.2),'left':_0x471183,'top':_0x29aa92,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xde5202(0x21c)]['push'](_0x178ca3),this[_0xde5202(0x3c3)][_0xde5202(0x130)](_0x178ca3,N['TEXT_RANGE_LAYER_INDEX']);}[_0x519e85(0x397)](_0xa2650b,_0x2bc827,_0x511e18,_0x53570a){const _0x3838f1=_0x519e85,_0xa610be=new a['ColorKit'](_0xa2650b)['setAlpha'](0.2)[_0x3838f1(0x1dc)](),_0x3c5b68=new D[(_0x3838f1(0x175))](gi+a[_0x3838f1(0x172)][_0x3838f1(0x4cc)](le),{'pointsGroup':_0x2bc827,'fill':_0xa610be||D[_0x3838f1(0x498)](a[_0x3838f1(0x4b0)][_0x3838f1(0x41b)],0.2),'left':_0x511e18,'top':_0x53570a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3838f1(0x21c)][_0x3838f1(0x50d)](_0x3c5b68),this[_0x3838f1(0x3c3)]['addObject'](_0x3c5b68,N[_0x3838f1(0x15a)]);}[_0x519e85(0x21d)](_0x173c36){const _0x3a4bab=_0x173c36[0x0],_0x5b8075=_0x3a4bab[0x0],_0x45e842=_0x3a4bab[0x2],{x:_0x4fc2c4,y:_0xa4cc42}=_0x5b8075,{x:_0x280b2e,y:_0x477951}=_0x45e842;return{'left':_0x4fc2c4,'top':_0xa4cc42,'width':_0x280b2e-_0x4fc2c4,'height':_0x477951-_0xa4cc42};}['_getScale'](){const _0x57d5ac=_0x519e85,{scaleX:_0x4c827f,scaleY:_0x5ef015}=this['_scene']['getAncestorScale']();return Math[_0x57d5ac(0x2b7)](_0x4c827f,_0x5ef015);}}var Ci=Object[_0x519e85(0x1d9)],Ei=Object[_0x519e85(0x361)],bi=(_0x236b67,_0x276d58,_0x30e3ed,_0x326ae4)=>{for(var _0x53522c=_0x326ae4>0x1?void 0x0:_0x326ae4?Ei(_0x276d58,_0x30e3ed):_0x276d58,_0x596e76=_0x236b67['length']-0x1,_0x1b31c2;_0x596e76>=0x0;_0x596e76--)(_0x1b31c2=_0x236b67[_0x596e76])&&(_0x53522c=(_0x326ae4?_0x1b31c2(_0x276d58,_0x30e3ed,_0x53522c):_0x1b31c2(_0x53522c))||_0x53522c);return _0x326ae4&&_0x53522c&&Ci(_0x276d58,_0x30e3ed,_0x53522c),_0x53522c;},ve=(_0x591bbf,_0x593c34)=>(_0x4e42e9,_0x197e45)=>_0x593c34(_0x4e42e9,_0x197e45,_0x591bbf);let Ve=class extends a[_0x519e85(0x2a2)]{constructor(_0x4f4398,_0xf7a336,_0x270b7d,_0x2239eb,_0x385855){const _0x40200a=_0x519e85;super(),u(this,_0x40200a(0x451),[]),u(this,_0x40200a(0x3ec),[]),(this[_0x40200a(0x383)]=_0x4f4398,this[_0x40200a(0x1cd)]=_0xf7a336,this[_0x40200a(0x415)]=_0x270b7d,this[_0x40200a(0x3d7)]=_0x2239eb,this['_themeService']=_0x385855,this['_init']());}[_0x519e85(0x3dc)](){const _0x1bd4e4=_0x519e85,_0x344204=this[_0x1bd4e4(0x383)][_0x1bd4e4(0x513)],_0x34be4f=this[_0x1bd4e4(0x1cd)];this[_0x1bd4e4(0x48d)](v[_0x1bd4e4(0x49f)]([this[_0x1bd4e4(0x415)][_0x1bd4e4(0x370)](_0x344204),this['_themeService'][_0x1bd4e4(0x3f5)]])['pipe'](E['map'](([_0x322f1f,_0x7de5f3])=>({'skeleton':_0x34be4f['getSkeleton'](),'cursors':[..._0x322f1f['values']()][_0x1bd4e4(0x369)](_0x573639=>({..._0x573639,'color':_0x7de5f3[_0x573639[_0x1bd4e4(0x48c)]]}))})))[_0x1bd4e4(0x33d)](_0x37dc90=>{const _0x40a895=_0x1bd4e4;if(this[_0x40a895(0x206)](),_0x37dc90){const {skeleton:_0x3c2181,cursors:_0x225d79}=_0x37dc90;this[_0x40a895(0x165)](_0x3c2181,_0x225d79);}})),this[_0x1bd4e4(0x3ca)](),this['_initCommandExecutedListener']();}[_0x519e85(0x165)](_0x565ff0,_0x4bcdb3){const _0x2a408b=_0x519e85,{scene:_0x21b308,mainComponent:_0x4655af}=this[_0x2a408b(0x383)],_0x441666=_0x4bcdb3[_0x2a408b(0x238)](_0x5c1cc5=>new ht(_0x5c1cc5,_0x21b308,_0x565ff0,_0x4655af));this[_0x2a408b(0x451)]=_0x441666,this[_0x2a408b(0x3ec)]=_0x4bcdb3;}[_0x519e85(0x4b8)](){const _0x5b9bd5=_0x519e85;this[_0x5b9bd5(0x206)]();const {scene:_0x57ab60,mainComponent:_0x2e16b3}=this[_0x5b9bd5(0x383)],_0x1cfbef=this[_0x5b9bd5(0x1cd)]['getSkeleton'](),_0x2f8acd=this[_0x5b9bd5(0x3ec)]['map'](_0x399409=>new ht(_0x399409,_0x57ab60,_0x1cfbef,_0x2e16b3));this[_0x5b9bd5(0x451)]=_0x2f8acd;}[_0x519e85(0x206)](){const _0x26e632=_0x519e85;this[_0x26e632(0x451)][_0x26e632(0x27d)](_0x223dff=>_0x223dff[_0x26e632(0x1b0)]()),this[_0x26e632(0x451)]=[];}['_initCommandExecutedListener'](){const _0x5bdb33=_0x519e85,_0x7ee98b=[N[_0x5bdb33(0x280)]['id']];this[_0x5bdb33(0x48d)](this[_0x5bdb33(0x3d7)][_0x5bdb33(0x368)](_0x1f19ea=>{const _0x22073b=_0x5bdb33;_0x7ee98b['includes'](_0x1f19ea['id'])&&_0x1f19ea[_0x22073b(0x545)]['unitId']===this['_context'][_0x22073b(0x513)]&&this[_0x22073b(0x4b8)]();}));}[_0x519e85(0x3ca)](){const _0x3a5c25=_0x519e85;this[_0x3a5c25(0x48d)](a[_0x3a5c25(0x4f4)](this[_0x3a5c25(0x383)][_0x3a5c25(0x184)][_0x3a5c25(0x1e4)])['pipe'](E[_0x3a5c25(0x4d4)](_0x563ca2=>_0x563ca2[_0x3a5c25(0x4fb)]===D[_0x3a5c25(0x30c)][_0x3a5c25(0x1ad)]),E[_0x3a5c25(0x2e4)](0x10))[_0x3a5c25(0x33d)](()=>{const _0x33369f=_0x3a5c25;this[_0x33369f(0x4b8)]();}));}};Ve=bi([ve(0x1,a[_0x519e85(0x2ce)](se['DocSkeletonManagerService'])),ve(0x2,a[_0x519e85(0x2ce)](ne)),ve(0x3,a[_0x519e85(0x147)]),ve(0x4,a['Inject'](a[_0x519e85(0x51b)]))],Ve);const Ti=0x1,Ri=1.5;class Nt extends D[_0x519e85(0x3d9)]{constructor(_0xc38cf4,_0x564e36){const _0x404ef2=_0x519e85;super(_0xc38cf4,_0x564e36),u(this,'_color'),u(this,_0x404ef2(0x39e),!0x1),u(this,_0x404ef2(0x3d6)),u(this,_0x404ef2(0x2c6),''),u(this,'_labelPosition',_0x404ef2(0x3e0)),u(this,_0x404ef2(0x474)),(_0x564e36&&this[_0x404ef2(0x405)](_0x564e36),this[_0x404ef2(0x1bc)][_0x404ef2(0x538)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x404ef2(0x538)](()=>this[_0x404ef2(0x405)]({'hovered':!0x1})));}['setShapeProps'](_0x50a78){const _0x496961=_0x519e85;var _0x1ab281,_0x3d77f2,_0x5200b8,_0x52be99,_0x32d043,_0x2d57bb;this[_0x496961(0x2a4)]=(_0x1ab281=_0x50a78[_0x496961(0x48c)])!=null?_0x1ab281:this['_color'],this['_hovered']=(_0x3d77f2=_0x50a78[_0x496961(0x355)])!=null?_0x3d77f2:this[_0x496961(0x39e)],this[_0x496961(0x3d6)]=(_0x5200b8=_0x50a78['range'])!=null?_0x5200b8:this[_0x496961(0x3d6)],this['_name']=(_0x52be99=_0x50a78['name'])!=null?_0x52be99:this[_0x496961(0x2c6)],this[_0x496961(0x4a4)]=(_0x32d043=_0x50a78['labelPosition'])!=null?_0x32d043:this[_0x496961(0x4a4)],this[_0x496961(0x474)]=(_0x2d57bb=_0x50a78['backgroundColor'])!=null?_0x2d57bb:this[_0x496961(0x474)],this['transformByState']({'width':_0x50a78[_0x496961(0x393)],'height':_0x50a78[_0x496961(0x277)]});}[_0x519e85(0x191)](_0x497d35){const _0x1381e3=_0x519e85,{row:_0x489ab2,column:_0x21fe12}=_0x497d35;if(_0x489ab2>=this[_0x1381e3(0x3d6)][_0x1381e3(0x396)]&&_0x489ab2<=this[_0x1381e3(0x3d6)]['endRow']&&_0x21fe12>=this[_0x1381e3(0x3d6)]['startColumn']&&_0x21fe12<=this['_range'][_0x1381e3(0x430)]){this[_0x1381e3(0x405)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x1da8d2){return!0x1;}[_0x519e85(0x135)](_0x1adb43){const _0x66d069=_0x519e85;D['Rect'][_0x66d069(0x319)](_0x1adb43,{'width':this[_0x66d069(0x393)],'height':this[_0x66d069(0x277)],'strokeWidth':Ri,'stroke':this[_0x66d069(0x2a4)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x66d069(0x39e)]&&(_0x1adb43[_0x66d069(0x12a)](),_0x1adb43['transform'](0x1,0x0,0x0,0x1,this[_0x66d069(0x393)],this[_0x66d069(0x4a4)]==='bottom'?0x0:-de),Oe[_0x66d069(0x319)](_0x1adb43,{'text':this[_0x66d069(0x2c6)],'color':this['_color']}),_0x1adb43[_0x66d069(0x382)]());}}var Oi=Object[_0x519e85(0x1d9)],Di=Object[_0x519e85(0x361)],yi=(_0xb4808b,_0x5bdb46,_0x4f57e7,_0x1b7a43)=>{const _0x3ed3be=_0x519e85;for(var _0x298c99=_0x1b7a43>0x1?void 0x0:_0x1b7a43?Di(_0x5bdb46,_0x4f57e7):_0x5bdb46,_0x86183a=_0xb4808b[_0x3ed3be(0x4c3)]-0x1,_0x3f7848;_0x86183a>=0x0;_0x86183a--)(_0x3f7848=_0xb4808b[_0x86183a])&&(_0x298c99=(_0x1b7a43?_0x3f7848(_0x5bdb46,_0x4f57e7,_0x298c99):_0x3f7848(_0x298c99))||_0x298c99);return _0x1b7a43&&_0x298c99&&Oi(_0x5bdb46,_0x4f57e7,_0x298c99),_0x298c99;},$e=(_0x8a95e1,_0x4331e5)=>(_0x46fb36,_0x268358)=>_0x4331e5(_0x46fb36,_0x268358,_0x8a95e1);const Ui=0x1389;let We=class extends a['RxDisposable']{constructor(_0x3ccf33,_0xe0ca37,_0x1f1785,_0x30eb78){const _0x478536=_0x519e85;super(),u(this,'_cursors',new Set()),u(this,_0x478536(0x149),null),(this[_0x478536(0x383)]=_0x3ccf33,this[_0x478536(0x1f5)]=_0xe0ca37,this[_0x478536(0x415)]=_0x1f1785,this[_0x478536(0x255)]=_0x30eb78,this[_0x478536(0x3dc)]());}[_0x519e85(0x3dc)](){const _0x1d8f84=_0x519e85;this['_sheetSkeletonManagerService'][_0x1d8f84(0x493)][_0x1d8f84(0x479)](E[_0x1d8f84(0x254)](this[_0x1d8f84(0x253)]),E['switchMap'](_0x1d01dc=>{const _0x11127f=_0x1d8f84;if(_0x1d01dc){const _0x144e15=_0x1d01dc[_0x11127f(0x168)];return v[_0x11127f(0x49f)](this['_collabCursorController']['getCollabCursors$'](this['_context']['unitId']),this[_0x11127f(0x255)][_0x11127f(0x3f5)])[_0x11127f(0x479)](E[_0x11127f(0x238)](([_0x230461,_0x433ad5])=>{const _0x474c84=_0x11127f,_0x579b41=new Map();return _0x230461[_0x474c84(0x27d)]((_0x3a7850,_0x3ffbad)=>{const _0x578a00=_0x474c84;if(_0x3a7850[_0x578a00(0x4ac)]===_0x144e15){const _0x5e8775={..._0x3a7850};_0x5e8775[_0x578a00(0x48c)]=_0x433ad5[_0x3a7850[_0x578a00(0x48c)]],_0x579b41[_0x578a00(0x22f)](_0x3ffbad,_0x5e8775);}}),{'skeleton':_0x1d01dc,'cursors':_0x579b41};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x1d8f84(0x33d)](({skeleton:_0x221311,cursors:_0x5b7731})=>{const _0x50b372=_0x1d8f84;this[_0x50b372(0x206)](),_0x221311&&this[_0x50b372(0x165)](_0x221311,_0x5b7731);}),this['_sheetSkeletonManagerService'][_0x1d8f84(0x493)][_0x1d8f84(0x33d)](_0x4eed43=>{const _0x106442=_0x1d8f84;if(_0x4eed43==null)return;const {skeleton:_0x48ef95}=_0x4eed43,{scene:_0x17171f}=this[_0x106442(0x383)];_0x17171f[_0x106442(0x4d8)][_0x106442(0x538)](a[_0x106442(0x329)](_0x335c0c=>{const _0xfeb403=_0x106442;var _0xdb0b13,_0x9f0476;const {offsetX:_0x162302,offsetY:_0xfbee4d}=_0x335c0c,{x:_0xe1b58b,y:_0x18c36a}=_0x17171f[_0xfeb403(0x543)](D[_0xfeb403(0x2e9)][_0xfeb403(0x3b4)]([_0x162302,_0xfbee4d])),{scaleX:_0xf92dbd,scaleY:_0x2edd54}=_0x17171f[_0xfeb403(0x285)](),_0x274abb=_0x17171f[_0xfeb403(0x245)](te['VIEWPORT_KEY'][_0xfeb403(0x27e)]),_0x340070=_0x17171f['getVpScrollXYInfoByPosToVp'](D['Vector2'][_0xfeb403(0x3b4)]([_0xe1b58b,_0x18c36a]),_0x274abb),_0x58f2b9=_0x48ef95[_0xfeb403(0x4cd)](_0x162302,_0xfbee4d,_0xf92dbd,_0x2edd54,_0x340070);((_0xdb0b13=this[_0xfeb403(0x149)])==null?void 0x0:_0xdb0b13['column'])===_0x58f2b9[_0xfeb403(0x472)]&&((_0x9f0476=this['_lastPointer'])==null?void 0x0:_0x9f0476[_0xfeb403(0x4b7)])===_0x58f2b9[_0xfeb403(0x4b7)]||this['_cursors'][_0xfeb403(0x27d)](_0x50c22b=>{const _0x2969b9=_0xfeb403;_0x50c22b[_0x2969b9(0x191)](_0x58f2b9);});},0x64));});}[_0x519e85(0x165)](_0x57c37a,_0x4b308f){const _0x3e47f5=_0x519e85;var _0x3de315;const _0x1a6ab1=(_0x3de315=this[_0x3e47f5(0x1f5)][_0x3e47f5(0x163)]())==null?void 0x0:_0x3de315[_0x3e47f5(0x143)];if(!_0x1a6ab1)return;const _0x394c27=this[_0x3e47f5(0x221)]();if(!_0x394c27)return;this[_0x3e47f5(0x3ec)]['forEach'](_0x44a319=>{_0x44a319['makeDirty']();});const {scene:_0x241384}=_0x394c27,_0x4d1aa6=Pi(Array[_0x3e47f5(0x22d)](_0x4b308f[_0x3e47f5(0x39d)]()))[_0x3e47f5(0x238)](_0x5bcd95=>{const _0x1a7868=_0x3e47f5,{color:_0x9d58ae,range:_0x59e09f,name:_0x2af221,selection:_0x2e6c85,sheetID:_0xb6786a}=_0x5bcd95,{startColumn:_0x3db0cf,startRow:_0x46764b,endColumn:_0xc4d987,endRow:_0xb02581}=_0x59e09f,_0x2328ae=te[_0x1a7868(0x332)](_0x46764b,_0x3db0cf,_0x241384,_0x1a6ab1),_0x555d2a=te[_0x1a7868(0x332)](_0xb02581,_0xc4d987,_0x241384,_0x1a6ab1),{columnHeaderHeightAndMarginTop:_0xbaaed3}=_0x1a6ab1,{startX:_0x3ba458,startY:_0x2fbe0c}=_0x2328ae,{endX:_0xf66842,endY:_0x43ecd8}=_0x555d2a,_0x48da47=_0xf66842-_0x3ba458,_0x1105bc=_0x43ecd8-_0x2fbe0c,_0x4002bb={'labelPosition':_0x2fbe0c-_0xbaaed3>=de?_0x1a7868(0x3e0):'bottom','sheetID':_0xb6786a,'range':_0x59e09f,'color':_0x9d58ae,'name':_0x2af221,'selection':_0x2e6c85,'left':_0x3ba458,'top':_0x2fbe0c,'width':_0x48da47,'height':_0x1105bc,'evented':!0x1,'zIndex':Ui};return new Nt(_0x2af221,_0x4002bb);});_0x241384[_0x3e47f5(0x483)](_0x4d1aa6,Ti),this[_0x3e47f5(0x3ec)]=new Set(_0x4d1aa6);}[_0x519e85(0x206)](){const _0x398c6d=_0x519e85;var _0x4b0487;(_0x4b0487=this[_0x398c6d(0x3ec)])==null||_0x4b0487[_0x398c6d(0x27d)](_0xfd107b=>_0xfd107b[_0x398c6d(0x1b0)]());}['_getSheetObject'](){const _0x4e00ce=_0x519e85;return te['getSheetObject'](this[_0x4e00ce(0x383)][_0x4e00ce(0x169)],this['_context']);}};We=yi([$e(0x1,a['Inject'](te[_0x519e85(0x4d9)])),$e(0x2,a[_0x519e85(0x2ce)](ne)),$e(0x3,a[_0x519e85(0x2ce)](a[_0x519e85(0x51b)]))],We);function Pi(_0x5f044f){const _0x4e3129=_0x519e85,_0xaab2f8=new Map();return _0x5f044f[_0x4e3129(0x27d)](_0x2bb13a=>{const _0x29f4fe=_0x4e3129;if(_0xaab2f8[_0x29f4fe(0x32d)](_0x2bb13a['selection'])){const _0x24d301=_0xaab2f8[_0x29f4fe(0x3f3)](_0x2bb13a[_0x29f4fe(0x3e7)]);_0x24d301[_0x29f4fe(0x4a1)]+=',\x20'+_0x2bb13a[_0x29f4fe(0x4a1)];}else _0xaab2f8['set'](_0x2bb13a['selection'],_0x2bb13a);}),Array[_0x4e3129(0x22d)](_0xaab2f8[_0x4e3129(0x39d)]());}var M=function(){return M=Object['assign']||function(_0x274c26){const _0x28b3aa=_0x5923;for(var _0x1557d3,_0x17a0a8=0x1,_0x1595fa=arguments[_0x28b3aa(0x4c3)];_0x17a0a8<_0x1595fa;_0x17a0a8++){_0x1557d3=arguments[_0x17a0a8];for(var _0x12e1b3 in _0x1557d3)Object[_0x28b3aa(0x47f)][_0x28b3aa(0x145)][_0x28b3aa(0x394)](_0x1557d3,_0x12e1b3)&&(_0x274c26[_0x12e1b3]=_0x1557d3[_0x12e1b3]);}return _0x274c26;},M['apply'](this,arguments);},wi=function(_0x4eec40,_0x3d6790){const _0x201f14=_0x519e85;var _0x1d3fe9={};for(var _0x167e6e in _0x4eec40)Object[_0x201f14(0x47f)][_0x201f14(0x145)]['call'](_0x4eec40,_0x167e6e)&&_0x3d6790[_0x201f14(0x2ad)](_0x167e6e)<0x0&&(_0x1d3fe9[_0x167e6e]=_0x4eec40[_0x167e6e]);if(_0x4eec40!=null&&typeof Object[_0x201f14(0x4bf)]==_0x201f14(0x462)){for(var _0x1f4b40=0x0,_0x167e6e=Object[_0x201f14(0x4bf)](_0x4eec40);_0x1f4b40<_0x167e6e[_0x201f14(0x4c3)];_0x1f4b40++)_0x3d6790['indexOf'](_0x167e6e[_0x1f4b40])<0x0&&Object[_0x201f14(0x47f)]['propertyIsEnumerable'][_0x201f14(0x394)](_0x4eec40,_0x167e6e[_0x1f4b40])&&(_0x1d3fe9[_0x167e6e[_0x1f4b40]]=_0x4eec40[_0x167e6e[_0x1f4b40]]);}return _0x1d3fe9;},Ze=P[_0x519e85(0x24b)](function(_0x5b7c01,_0x3c1817){const _0x1c3645=_0x519e85;var _0x5f3068=_0x5b7c01[_0x1c3645(0x4bc)],_0x1e876b=_0x5b7c01['id'],_0x39c74f=_0x5b7c01[_0x1c3645(0x351)],_0x3b3072=_0x5b7c01[_0x1c3645(0x342)],_0x44ec2f=wi(_0x5b7c01,[_0x1c3645(0x4bc),'id',_0x1c3645(0x351),_0x1c3645(0x342)]),_0x19192f='univerjs-icon\x20univerjs-icon-'[_0x1c3645(0x180)](_0x1e876b,'\x20')[_0x1c3645(0x180)](_0x39c74f||'')[_0x1c3645(0x42e)](),_0x22888b=P[_0x1c3645(0x4ec)]('_'[_0x1c3645(0x180)](Ai()));return Mt(_0x5f3068,''[_0x1c3645(0x180)](_0x1e876b),{'defIds':_0x5f3068['defIds'],'idSuffix':_0x22888b[_0x1c3645(0x3e8)]},M({'ref':_0x3c1817,'className':_0x19192f},_0x44ec2f),_0x3b3072);});function Mt(_0x55c06e,_0x470373,_0x69a9e6,_0x5ab9e3,_0x1c5c93){const _0x2ed4c4=_0x519e85;return P['createElement'](_0x55c06e['tag'],M(M({'key':_0x470373},Ni(_0x55c06e,_0x69a9e6,_0x1c5c93)),_0x5ab9e3),(Mi(_0x55c06e,_0x69a9e6)['children']||[])[_0x2ed4c4(0x238)](function(_0x4b1a35,_0x4d8cd6){const _0x2095b6=_0x2ed4c4;return Mt(_0x4b1a35,''['concat'](_0x470373,'-')[_0x2095b6(0x180)](_0x55c06e[_0x2095b6(0x2b5)],'-')[_0x2095b6(0x180)](_0x4d8cd6),_0x69a9e6,void 0x0,_0x1c5c93);}));}function Ni(_0x18105f,_0x5297d2,_0x3ed90e){const _0x456cc4=_0x519e85;var _0x82e601=M({},_0x18105f[_0x456cc4(0x3cd)]);_0x3ed90e!=null&&_0x3ed90e[_0x456cc4(0x3c7)]&&_0x82e601['fill']===_0x456cc4(0x3c7)&&(_0x82e601[_0x456cc4(0x228)]=_0x3ed90e[_0x456cc4(0x3c7)]);var _0x57fc5a=_0x5297d2[_0x456cc4(0x282)];return!_0x57fc5a||_0x57fc5a['length']===0x0||(_0x18105f[_0x456cc4(0x2b5)]===_0x456cc4(0x532)&&_0x82e601[_0x456cc4(0x399)]&&(_0x82e601['xlink:href']=_0x82e601[_0x456cc4(0x399)]+_0x5297d2['idSuffix']),Object['entries'](_0x82e601)[_0x456cc4(0x27d)](function(_0x27e41f){const _0x5bd623=_0x456cc4;var _0x19e07f=_0x27e41f[0x0],_0x5cc37b=_0x27e41f[0x1];typeof _0x5cc37b==_0x5bd623(0x1d0)&&(_0x82e601[_0x19e07f]=_0x5cc37b[_0x5bd623(0x4e4)](/url\(#(.*)\)/,_0x5bd623(0x1ef)[_0x5bd623(0x180)](_0x5297d2[_0x5bd623(0x4f3)],')')));})),_0x82e601;}function Mi(_0x1aac86,_0x3eccf1){const _0x11012f=_0x519e85;var _0x1477b2,_0x305462=_0x3eccf1[_0x11012f(0x282)];return!_0x305462||_0x305462[_0x11012f(0x4c3)]===0x0?_0x1aac86:_0x1aac86[_0x11012f(0x2b5)]===_0x11012f(0x32a)&&(!((_0x1477b2=_0x1aac86[_0x11012f(0x46b)])===null||_0x1477b2===void 0x0)&&_0x1477b2['length'])?M(M({},_0x1aac86),{'children':_0x1aac86['children'][_0x11012f(0x238)](function(_0x47c187){const _0x58b014=_0x11012f;return typeof _0x47c187['attrs']['id']==_0x58b014(0x1d0)&&_0x305462&&_0x305462['indexOf'](_0x47c187['attrs']['id'])>-0x1?M(M({},_0x47c187),{'attrs':M(M({},_0x47c187[_0x58b014(0x3cd)]),{'id':_0x47c187['attrs']['id']+_0x3eccf1[_0x58b014(0x4f3)]})}):_0x47c187;})}):_0x1aac86;}function Ai(){const _0x15cf21=_0x519e85;return Math[_0x15cf21(0x2d3)]()[_0x15cf21(0x3b2)](0x24)['substring'](0x2,0x8);}Ze[_0x519e85(0x4c8)]=_0x519e85(0x549);var Li={'tag':_0x519e85(0x174),'attrs':{'fill':_0x519e85(0x52b),'viewBox':_0x519e85(0x509),'width':_0x519e85(0x53d),'height':_0x519e85(0x53d)},'children':[{'tag':'g','attrs':{'clipPath':_0x519e85(0x303)},'children':[{'tag':_0x519e85(0x457),'attrs':{'stroke':_0x519e85(0x3df),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x519e85(0x335),'strokeLinejoin':_0x519e85(0x335),'strokeWidth':1.2}}]},{'tag':_0x519e85(0x32a),'attrs':{},'children':[{'tag':_0x519e85(0x503),'attrs':{'id':_0x519e85(0x164)},'children':[{'tag':'path','attrs':{'fill':_0x519e85(0x17f),'d':_0x519e85(0x17c)}}]}]}],'defIds':['off-line-single_clip0_910_343']},At=P[_0x519e85(0x24b)](function(_0x108718,_0x1f413c){const _0x4ee68d=_0x519e85;return P[_0x4ee68d(0x1b6)](Ze,Object['assign']({},_0x108718,{'id':_0x4ee68d(0x1df),'ref':_0x1f413c,'icon':Li}));});At['displayName']=_0x519e85(0x4c1);var ji={'tag':_0x519e85(0x174),'attrs':{'fill':_0x519e85(0x52b),'viewBox':_0x519e85(0x1ea),'width':_0x519e85(0x53d),'height':_0x519e85(0x53d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x519e85(0x457),'attrs':{'stroke':_0x519e85(0x3df),'d':_0x519e85(0x37a),'strokeLinecap':'round','strokeLinejoin':_0x519e85(0x335),'strokeWidth':1.2}}]},{'tag':_0x519e85(0x32a),'attrs':{},'children':[{'tag':_0x519e85(0x503),'attrs':{'id':_0x519e85(0x385)},'children':[{'tag':_0x519e85(0x457),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x519e85(0x2e1)}}]}]}],'defIds':[_0x519e85(0x385)]},Lt=P['forwardRef'](function(_0x2c461f,_0x50b8be){const _0x45c0bd=_0x519e85;return P[_0x45c0bd(0x1b6)](Ze,Object[_0x45c0bd(0x1cc)]({},_0x2c461f,{'id':_0x45c0bd(0x14c),'ref':_0x50b8be,'icon':ji}));});Lt[_0x519e85(0x4c8)]=_0x519e85(0x4b6);function jt(_0x3111d4){const _0x38b9b2=_0x519e85;var _0x58a952,_0x7f1469,_0x91756c='';if(typeof _0x3111d4==_0x38b9b2(0x1d0)||typeof _0x3111d4==_0x38b9b2(0x52a))_0x91756c+=_0x3111d4;else{if(typeof _0x3111d4==_0x38b9b2(0x460)){if(Array[_0x38b9b2(0x2f2)](_0x3111d4)){var _0x1bb771=_0x3111d4[_0x38b9b2(0x4c3)];for(_0x58a952=0x0;_0x58a952<_0x1bb771;_0x58a952++)_0x3111d4[_0x58a952]&&(_0x7f1469=jt(_0x3111d4[_0x58a952]))&&(_0x91756c&&(_0x91756c+='\x20'),_0x91756c+=_0x7f1469);}else{for(_0x7f1469 in _0x3111d4)_0x3111d4[_0x7f1469]&&(_0x91756c&&(_0x91756c+='\x20'),_0x91756c+=_0x7f1469);}}}return _0x91756c;}function $i(){const _0x6bf70f=_0x519e85;for(var _0x4c4962,_0x3bf40b,_0x1d6359=0x0,_0x4433aa='',_0x626b32=arguments[_0x6bf70f(0x4c3)];_0x1d6359<_0x626b32;_0x1d6359++)(_0x4c4962=arguments[_0x1d6359])&&(_0x3bf40b=jt(_0x4c4962))&&(_0x4433aa&&(_0x4433aa+='\x20'),_0x4433aa+=_0x3bf40b);return _0x4433aa;}const Hi='univer-online-status-icon',xi='univer-online-status-title',ki=_0x519e85(0x4f2),Bi=_0x519e85(0x2d0),Vi=_0x519e85(0x378),he={'onlineStatusIcon':Hi,'onlineStatusTitle':xi,'onlineStatus':ki,'online':Bi,'offline':Vi};function Wi(_0xc452e3){const _0x1e1b04=_0x519e85;switch(_0xc452e3){case U[_0x1e1b04(0x4d7)]:return'collabStatus.offline';case U[_0x1e1b04(0x34b)]:return _0x1e1b04(0x1ed);case U[_0x1e1b04(0x1c5)]:return _0x1e1b04(0x1b2);case U[_0x1e1b04(0x1cb)]:return _0x1e1b04(0x2a5);case U[_0x1e1b04(0x160)]:case U[_0x1e1b04(0x1b1)]:return _0x1e1b04(0x294);case U['SYNCED']:case U[_0x1e1b04(0x1da)]:return'collabStatus.synced';}}function $t(_0x32c1f4){const _0x29796d=_0x519e85,{status$:_0x1c6315}=_0x32c1f4,_0x2367d4=A[_0x29796d(0x4ee)](_0x1c6315,U['NOT_COLLAB']),_0x30db65=a[_0x29796d(0x4b9)](a[_0x29796d(0x322)]),_0x2c0efc=a[_0x29796d(0x4b9)](exports['CollaborationSessionService']),_0x228bfd=_0x2367d4!==U[_0x29796d(0x4d7)],_0x50b2e4=_0x30db65['t'](Wi(_0x2367d4)),_0xe389dd=$i(he[_0x29796d(0x307)],{[he[_0x29796d(0x43a)]]:_0x228bfd,[he[_0x29796d(0x161)]]:!_0x228bfd}),_0x499283=_0x228bfd?P[_0x29796d(0x1b6)](Lt,null):P['createElement'](At,null),_0x157163=P[_0x29796d(0x256)](()=>{const _0x5220a0=_0x29796d;_0x228bfd||_0x2c0efc[_0x5220a0(0x4ae)]();},[_0x228bfd,_0x2c0efc]);function _0x1456e6(){const _0x59f7fb=_0x29796d;return P['createElement'](_0x59f7fb(0x12e),{'className':_0xe389dd,'onClick':_0x157163},P[_0x59f7fb(0x1b6)](_0x59f7fb(0x12e),{'className':he[_0x59f7fb(0x3ee)]},_0x499283),P[_0x59f7fb(0x1b6)](_0x59f7fb(0x12e),{'className':he[_0x59f7fb(0x470)]},_0x50b2e4));}return _0x228bfd?_0x1456e6():P['createElement'](q[_0x29796d(0x200)],{'title':_0x30db65['t'](_0x29796d(0x195))},_0x1456e6());}var Fi=Object[_0x519e85(0x1d9)],Gi=Object[_0x519e85(0x361)],Yi=(_0x389ea9,_0x3f161f,_0x411bd9,_0x37ed72)=>{for(var _0x1b129e=_0x37ed72>0x1?void 0x0:_0x37ed72?Gi(_0x3f161f,_0x411bd9):_0x3f161f,_0x48202d=_0x389ea9['length']-0x1,_0x33b1ec;_0x48202d>=0x0;_0x48202d--)(_0x33b1ec=_0x389ea9[_0x48202d])&&(_0x1b129e=(_0x37ed72?_0x33b1ec(_0x3f161f,_0x411bd9,_0x1b129e):_0x33b1ec(_0x1b129e))||_0x1b129e);return _0x37ed72&&_0x1b129e&&Fi(_0x3f161f,_0x411bd9,_0x1b129e),_0x1b129e;},me=(_0x2c4286,_0x45f0cd)=>(_0x370abb,_0x100e2e)=>_0x45f0cd(_0x370abb,_0x100e2e,_0x2c4286);exports[_0x519e85(0x465)]=class extends a[_0x519e85(0x317)]{constructor(_0x575d5c,_0x17142c,_0x4dfaf7,_0x3a2811){const _0x46c847=_0x519e85;super(),u(this,_0x46c847(0x4f9),new v['BehaviorSubject'](U[_0x46c847(0x1cb)])),(this[_0x46c847(0x52e)]=_0x575d5c,this[_0x46c847(0x544)]=_0x17142c,this[_0x46c847(0x185)]=_0x4dfaf7,this[_0x46c847(0x4a6)]=_0x3a2811,this[_0x46c847(0x3b0)](),this[_0x46c847(0x364)]());}[_0x519e85(0x364)](){const _0x5953e5=_0x519e85;this[_0x5953e5(0x48d)](this[_0x5953e5(0x52e)][_0x5953e5(0x3c6)]['pipe'](v[_0x5953e5(0x1a0)](()=>{const _0x17c764=_0x5953e5,_0x311ae1=this[_0x17c764(0x52e)]['getFocusedUnit']();return _0x311ae1?this[_0x17c764(0x4a6)][_0x17c764(0x2af)](_0x311ae1[_0x17c764(0x4a8)]()):v['of'](null);}),v[_0x5953e5(0x1a0)](_0x7e6f62=>_0x7e6f62?_0x7e6f62['status$']:v['of'](U['NOT_COLLAB'])))['subscribe'](_0x266fdf=>{const _0x1f5804=_0x5953e5;this[_0x1f5804(0x4f9)][_0x1f5804(0x4a5)](_0x266fdf);}));}[_0x519e85(0x3b0)](){const _0x18645c=_0x519e85;this['disposeWithMe'](this[_0x18645c(0x544)]['registerComponent'](A['BuiltInUIPart']['HEADER_MENU'],()=>a[_0x18645c(0x52c)](Ki({'status$':this['_status$'][_0x18645c(0x441)]()}),this[_0x18645c(0x185)])));}},exports['DesktopCollaborationStatusDisplayController']=Yi([me(0x0,a[_0x519e85(0x524)]),me(0x1,A[_0x519e85(0x486)]),me(0x2,a[_0x519e85(0x2ce)](a['Injector'])),me(0x3,a[_0x519e85(0x2ce)](exports['CollaborationController']))],exports['DesktopCollaborationStatusDisplayController']);function Ki(_0xb49602){const {status$:_0x415036}=_0xb49602;return function(){const _0x5cad3d=_0x5923;return P[_0x5cad3d(0x1b6)]($t,{'status$':_0x415036});};}const Qe=a[_0x519e85(0x29c)](_0x519e85(0x381));var qi=Object[_0x519e85(0x1d9)],Xi=Object[_0x519e85(0x361)],zi=(_0x493f87,_0x3004b9,_0x2e98dc,_0x438b52)=>{for(var _0x94036f=_0x438b52>0x1?void 0x0:_0x438b52?Xi(_0x3004b9,_0x2e98dc):_0x3004b9,_0x1ed8fc=_0x493f87['length']-0x1,_0x47ccf3;_0x1ed8fc>=0x0;_0x1ed8fc--)(_0x47ccf3=_0x493f87[_0x1ed8fc])&&(_0x94036f=(_0x438b52?_0x47ccf3(_0x3004b9,_0x2e98dc,_0x94036f):_0x47ccf3(_0x94036f))||_0x94036f);return _0x438b52&&_0x94036f&&qi(_0x3004b9,_0x2e98dc,_0x94036f),_0x94036f;},ee=(_0x33913f,_0x5be0bc)=>(_0x396fbf,_0x13193d)=>_0x5be0bc(_0x396fbf,_0x13193d,_0x33913f);exports[_0x519e85(0x29d)]=class extends a[_0x519e85(0x2a2)]{constructor(_0x244337,_0x3f9a5b,_0x3a1441,_0x331269,_0x376ca7,_0x4ccf88){const _0x3ff38e=_0x519e85;super(),this[_0x3ff38e(0x26d)]=_0x244337,this['_logService']=_0x3f9a5b,this['_commandService']=_0x3a1441,this[_0x3ff38e(0x548)]=_0x331269,this[_0x3ff38e(0x3cc)]=_0x376ca7,_0x4ccf88?_0x4ccf88==null||_0x4ccf88[_0x3ff38e(0x404)]()[_0x3ff38e(0x398)](()=>this[_0x3ff38e(0x3dc)]()):(this['_logService']['debug']('[DataLoaderController]',_0x3ff38e(0x1fe)),this[_0x3ff38e(0x3dc)]());}async[_0x519e85(0x3dc)](){const _0x2a351d=_0x519e85,_0x70dd6f=this[_0x2a351d(0x26d)][_0x2a351d(0x1c6)](_0x2a351d(0x169)),_0x313e46=this['_urlService']['getParam'](_0x2a351d(0x4fb));if(!_0x70dd6f||!_0x313e46){this[_0x2a351d(0x438)][_0x2a351d(0x1e6)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x313e46)){case $['UNIVER_SHEET']:{const _0x10f678=await this[_0x2a351d(0x250)](_0x70dd6f);this[_0x2a351d(0x50e)](_0x10f678);break;}case $['UNIVER_DOC']:{await this[_0x2a351d(0x4ad)](_0x70dd6f);break;}default:{this[_0x2a351d(0x438)][_0x2a351d(0x2bf)](_0x2a351d(0x3da),_0x2a351d(0x517));break;}}}async['_setupSubUnitSync'](_0x1c69ec){const _0x5e6702=_0x519e85;await this[_0x5e6702(0x287)](_0x1c69ec),_0x1c69ec['activeSheet$'][_0x5e6702(0x479)](v[_0x5e6702(0x254)](this['dispose$']))['subscribe'](_0x22be9c=>{const _0x1accc2=_0x5e6702;_0x22be9c&&this[_0x1accc2(0x2bc)](_0x22be9c);}),this[_0x5e6702(0x26d)]['urlChange$'][_0x5e6702(0x479)](v['takeUntil'](this[_0x5e6702(0x253)]))[_0x5e6702(0x33d)](()=>this[_0x5e6702(0x287)](_0x1c69ec));}[_0x519e85(0x2bc)](_0x5f03ec,_0x238cae=!0x1){const _0x48ada9=_0x519e85,_0x13c5f6=this[_0x48ada9(0x26d)][_0x48ada9(0x1c6)](_0x48ada9(0x469));_0x5f03ec[_0x48ada9(0x4cf)]()!==_0x13c5f6&&this[_0x48ada9(0x26d)]['setParam'](_0x48ada9(0x469),_0x5f03ec[_0x48ada9(0x4cf)](),_0x238cae);}async[_0x519e85(0x287)](_0xea1f1b){const _0x41cf52=_0x519e85;var _0x2fb0c3;const _0x152cec=this[_0x41cf52(0x26d)][_0x41cf52(0x1c6)]('subunit');if(!_0x152cec||!_0xea1f1b[_0x41cf52(0x146)](_0x152cec)){const _0x2bc7b8=_0xea1f1b[_0x41cf52(0x1e8)]()[0x0],_0x2d5c73=_0xea1f1b[_0x41cf52(0x146)](_0x2bc7b8);if(!_0x2d5c73)return;this[_0x41cf52(0x2bc)](_0x2d5c73,!0x0),await this['_commandService'][_0x41cf52(0x1b8)](C[_0x41cf52(0x2aa)]['id'],{'unitId':_0xea1f1b[_0x41cf52(0x4a8)](),'subUnitId':_0x2bc7b8});return;}((_0x2fb0c3=_0xea1f1b[_0x41cf52(0x409)]())==null?void 0x0:_0x2fb0c3['getSheetId']())!==_0x152cec&&await this['_commandService'][_0x41cf52(0x1b8)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0xea1f1b[_0x41cf52(0x4a8)](),'subUnitId':_0x152cec});}async['_loadSheet'](_0x4b54b1){const _0x9e6a3e=_0x519e85;let _0x42945d=0x0;const _0x23d4d9=await this[_0x9e6a3e(0x548)][_0x9e6a3e(0x1c2)](_0x4b54b1);return _0x23d4d9&&(_0x23d4d9[_0x9e6a3e(0x21b)]||_0x23d4d9[_0x9e6a3e(0x231)]['length']!==0x0)&&(_0x42945d=_0x23d4d9[_0x9e6a3e(0x275)]),_0x42945d===0x0&&this[_0x9e6a3e(0x438)][_0x9e6a3e(0x1e6)](_0x9e6a3e(0x3da),_0x9e6a3e(0x3af)),this['_snapshotService'][_0x9e6a3e(0x522)](_0x4b54b1,_0x42945d);}async[_0x519e85(0x4ad)](_0x3390a1){const _0x11b96d=_0x519e85;let _0x45d82a=0x0;const _0x47fb73=await this[_0x11b96d(0x548)][_0x11b96d(0x1c2)](_0x3390a1);return _0x47fb73&&(_0x47fb73[_0x11b96d(0x21b)]||_0x47fb73['mutations'][_0x11b96d(0x4c3)]!==0x0)&&(_0x45d82a=_0x47fb73[_0x11b96d(0x275)]),_0x45d82a===0x0&&this[_0x11b96d(0x438)]['debug']('[DataLoaderController]',_0x11b96d(0x3af)),this[_0x11b96d(0x3cc)]['loadDoc'](_0x3390a1,_0x45d82a);}},exports[_0x519e85(0x29d)]=zi([ee(0x0,Qe),ee(0x1,a[_0x519e85(0x481)]),ee(0x2,a[_0x519e85(0x147)]),ee(0x3,a[_0x519e85(0x2ce)](exports[_0x519e85(0x26b)])),ee(0x4,a[_0x519e85(0x2ce)](_[_0x519e85(0x43c)])),ee(0x5,a[_0x519e85(0x4dc)](Xt['IRemoteInstanceService']))],exports['DataLoaderController']);function _0x5923(_0x136457,_0x283cf1){const _0x257fc0=_0x257f();return _0x5923=function(_0x592370,_0x570c29){_0x592370=_0x592370-0x12a;let _0x3f8bed=_0x257fc0[_0x592370];return _0x3f8bed;},_0x5923(_0x136457,_0x283cf1);}var Ji=Object[_0x519e85(0x1d9)],Zi=Object[_0x519e85(0x361)],Qi=(_0x2acae9,_0x3d8270,_0x289e7e,_0x4249e5)=>{const _0x5a0829=_0x519e85;for(var _0x5a98d7=_0x4249e5>0x1?void 0x0:_0x4249e5?Zi(_0x3d8270,_0x289e7e):_0x3d8270,_0x1b03c9=_0x2acae9[_0x5a0829(0x4c3)]-0x1,_0x14c54a;_0x1b03c9>=0x0;_0x1b03c9--)(_0x14c54a=_0x2acae9[_0x1b03c9])&&(_0x5a98d7=(_0x4249e5?_0x14c54a(_0x3d8270,_0x289e7e,_0x5a98d7):_0x14c54a(_0x5a98d7))||_0x5a98d7);return _0x4249e5&&_0x5a98d7&&Ji(_0x3d8270,_0x289e7e,_0x5a98d7),_0x5a98d7;},_t=(_0x574b06,_0x5d0ab9)=>(_0x360962,_0x13e342)=>_0x5d0ab9(_0x360962,_0x13e342,_0x574b06);const en='DEFAULT_FILE_NAME',tn='Univer';let Ce=class extends a['Disposable']{constructor(_0x4433ad,_0x33aa4d){const _0x341bf4=_0x519e85;super(),this[_0x341bf4(0x52e)]=_0x4433ad,this[_0x341bf4(0x240)]=_0x33aa4d,this[_0x341bf4(0x3dc)]();}[_0x519e85(0x3dc)](){const _0x3c96d3=_0x519e85;this['disposeWithMe'](this[_0x3c96d3(0x52e)][_0x3c96d3(0x3c6)][_0x3c96d3(0x33d)](()=>{const _0x5b98d1=_0x3c96d3;var _0x3be37e;const _0x3533c5=this['_univerInstanceService'][_0x5b98d1(0x1bd)]();let _0x4c25bb=(_0x3be37e=this[_0x5b98d1(0x240)]['getConfig'](en))!=null?_0x3be37e:tn;_0x3533c5 instanceof a[_0x5b98d1(0x321)]&&(_0x4c25bb=_0x3533c5['name']),document[_0x5b98d1(0x521)]=_0x4c25bb;}));}};Ce=Qi([_t(0x0,a[_0x519e85(0x524)]),_t(0x1,a['IConfigService'])],Ce);var sn=Object[_0x519e85(0x1d9)],nn=Object['getOwnPropertyDescriptor'],rn=(_0x38ce45,_0xb0445b,_0x328eb4,_0x32b381)=>{for(var _0x585b48=_0x32b381>0x1?void 0x0:_0x32b381?nn(_0xb0445b,_0x328eb4):_0xb0445b,_0x1ef4c0=_0x38ce45['length']-0x1,_0x2c8347;_0x1ef4c0>=0x0;_0x1ef4c0--)(_0x2c8347=_0x38ce45[_0x1ef4c0])&&(_0x585b48=(_0x32b381?_0x2c8347(_0xb0445b,_0x328eb4,_0x585b48):_0x2c8347(_0x585b48))||_0x585b48);return _0x32b381&&_0x585b48&&sn(_0xb0445b,_0x328eb4,_0x585b48),_0x585b48;},He=(_0x24c4c4,_0x2ebce1)=>(_0x31e781,_0x5d06cb)=>_0x2ebce1(_0x31e781,_0x5d06cb,_0x24c4c4);let Ee=class{constructor(_0x2d48e4,_0x567f23,_0x1346b6){const _0x3a4e2a=_0x519e85;this['_configService']=_0x2d48e4,this[_0x3a4e2a(0x379)]=_0x567f23,this[_0x3a4e2a(0x3f4)]=_0x1346b6,this[_0x3a4e2a(0x447)]();}[_0x519e85(0x447)](){const _0x31e226=_0x519e85;this['_httpService'][_0x31e226(0x281)]({'priority':0x1,'interceptor':(_0x26c526,_0x3ff4f8)=>_0x3ff4f8(_0x26c526)[_0x31e226(0x479)](v[_0x31e226(0x1ec)](async _0x37da8e=>{const _0x489d27=_0x31e226,_0x32254f=_0x37da8e;if(_0x32254f['status']===0x191&&window[_0x489d27(0x525)](this[_0x489d27(0x3f4)]['t'](_0x489d27(0x47a)))){const _0x6a4280=window['encodeURIComponent'](window[_0x489d27(0x336)][_0x489d27(0x150)]);window[_0x489d27(0x336)][_0x489d27(0x150)]=this[_0x489d27(0x183)]()+_0x489d27(0x1db)+_0x6a4280;}return _0x32254f;}))});}[_0x519e85(0x183)](){const _0x14c4f0=_0x519e85;var _0x1ece01,_0x4c9eaa;const _0x46303d=this['_configService'][_0x14c4f0(0x2a1)](Et),_0x3d23e4=this[_0x14c4f0(0x240)][_0x14c4f0(0x2a1)](L);return(_0x4c9eaa=(_0x1ece01=_0x3d23e4==null?void 0x0:_0x3d23e4[_0x14c4f0(0x17e)])!=null?_0x1ece01:_0x46303d)!=null?_0x4c9eaa:os;}};Ee=rn([He(0x0,a[_0x519e85(0x1ab)]),He(0x1,a[_0x519e85(0x2ce)](w['HTTPService'])),He(0x2,a[_0x519e85(0x2ce)](a[_0x519e85(0x322)]))],Ee);var on=Object[_0x519e85(0x1d9)],an=Object[_0x519e85(0x361)],cn=(_0x8ba40f,_0x5e71ce,_0x2823a3,_0x11ed71)=>{const _0x421eab=_0x519e85;for(var _0x49b719=_0x11ed71>0x1?void 0x0:_0x11ed71?an(_0x5e71ce,_0x2823a3):_0x5e71ce,_0x37d2d4=_0x8ba40f[_0x421eab(0x4c3)]-0x1,_0x3bb37e;_0x37d2d4>=0x0;_0x37d2d4--)(_0x3bb37e=_0x8ba40f[_0x37d2d4])&&(_0x49b719=(_0x11ed71?_0x3bb37e(_0x5e71ce,_0x2823a3,_0x49b719):_0x3bb37e(_0x49b719))||_0x49b719);return _0x11ed71&&_0x49b719&&on(_0x5e71ce,_0x2823a3,_0x49b719),_0x49b719;},ut=(_0x1f85bf,_0x2a1084)=>(_0x3558e7,_0x175e97)=>_0x2a1084(_0x3558e7,_0x175e97,_0x1f85bf);const Ht='AUTHZ_URL_KEY',ln=_0x519e85(0x314);exports[_0x519e85(0x301)]=class extends a[_0x519e85(0x317)]{constructor(_0x550abc,_0x3963e1){const _0x2678c4=_0x519e85;super(),this[_0x2678c4(0x40b)]=_0x550abc,this[_0x2678c4(0x240)]=_0x3963e1,this[_0x2678c4(0x39a)]();}['_initMergeInterceptor'](){const _0x311181=_0x519e85,_0x3a7c75=this;this[_0x311181(0x48d)](this[_0x311181(0x40b)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':w['MergeInterceptorFactory']({'isMatch'(_0x380a45){const _0x7f2e1d=_0x311181;var _0x6f9539;if(_0x380a45[_0x7f2e1d(0x45c)]===_0x7f2e1d(0x4ed)&&((_0x6f9539=_0x380a45[_0x7f2e1d(0x1b4)])!=null&&_0x6f9539[_0x7f2e1d(0x3e6)])){const {objectID:_0x130a3e,objectType:_0x379fd4}=_0x380a45[_0x7f2e1d(0x1b4)][_0x7f2e1d(0x3e6)]||{};if(!_0x130a3e||_0x379fd4===void 0x0)return!0x1;const _0x459112=_0x3a7c75[_0x7f2e1d(0x2db)]()+'/'+_0x379fd4+'/object/'+_0x130a3e+'/allowed';if(_0x380a45['url']===_0x459112)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x555b7c){const _0xb8d00a=_0x311181;var _0x591857;return(_0x591857=_0x555b7c['requestParams'])==null?void 0x0:_0x591857[_0xb8d00a(0x3e6)];},'mergeParamsToRequest'(_0x331364,_0x20010c){const _0x8b65d3=_0x311181,_0x1ad0e7=_0x3a7c75[_0x8b65d3(0x2db)]()+_0x8b65d3(0x4a2),_0x351940=_0x331364[_0x8b65d3(0x50b)]((_0x5a2b90,_0x1d6d40)=>{const _0x11eb60=_0x8b65d3,{unitID:_0x1f6480,objectID:_0x5422fa,objectType:_0x191f96,actions:_0x145051}=_0x1d6d40;return _0x5a2b90[_0x1f6480]||(_0x5a2b90[_0x1f6480]={}),_0x5a2b90[_0x1f6480][_0x5422fa]||(_0x5a2b90[_0x1f6480][_0x5422fa]={'objectID':_0x5422fa,'objectType':_0x191f96,'actions':[]}),_0x5a2b90[_0x1f6480][_0x5422fa]['actions'][_0x11eb60(0x50d)](..._0x145051),_0x5a2b90;},{}),_0x1c7ca0=[];for(const _0x5e83e2 in _0x351940)for(const _0x11a8cd in _0x351940[_0x5e83e2]){const {actions:_0x3d19d2,objectType:_0x5c657d}=_0x351940[_0x5e83e2][_0x11a8cd],_0xac5736=[...new Set(_0x3d19d2)];_0x1c7ca0['push']({'unitID':_0x5e83e2,'objectID':_0x11a8cd,'objectType':_0x5c657d,'actions':_0xac5736});}return new w['HTTPRequest'](_0x8b65d3(0x4ed),_0x1ad0e7,{'headers':_0x20010c[_0x8b65d3(0x31a)],'withCredentials':_0x20010c[_0x8b65d3(0x4f5)],'responseType':_0x20010c['responseType'],'body':{'requests':_0x1c7ca0}});}},{'distributeResult'(_0x57cf3b,_0x5bc164){const _0x1c1eb1=_0x311181,{objectActions:_0xa8bab7}=_0x57cf3b;return _0x5bc164[_0x1c1eb1(0x238)](_0x55ad0d=>{const _0x47268d=_0x1c1eb1,{unitID:_0x3b58e9,objectID:_0x7f9b4f,actions:_0x10c3b4}=_0x55ad0d,_0xae9e29=_0xa8bab7[_0x47268d(0x1d8)](_0x37d57c=>_0x37d57c['unitID']===_0x3b58e9&&_0x37d57c[_0x47268d(0x13f)]===_0x7f9b4f),_0x1bd98a=_0x10c3b4['map'](_0x4b4f69=>_0xae9e29==null?void 0x0:_0xae9e29[_0x47268d(0x47d)][_0x47268d(0x1d8)](_0x31b00a=>_0x31b00a[_0x47268d(0x1b9)]===_0x4b4f69))['filter'](_0x874783=>!!_0x874783);return{'config':_0x55ad0d,'result':{'actions':_0x1bd98a,'error':_0x57cf3b[_0x47268d(0x2bf)]}};});}})}));}[_0x519e85(0x2db)](){const _0x2cbb21=_0x519e85;var _0x33b07f,_0x1dfd71;const _0x5373f5=this[_0x2cbb21(0x240)][_0x2cbb21(0x2a1)](Ht),_0x38db94=this['_configService']['getConfig'](L);return(_0x1dfd71=(_0x33b07f=_0x38db94==null?void 0x0:_0x38db94[_0x2cbb21(0x288)])!=null?_0x33b07f:_0x5373f5)!=null?_0x1dfd71:ln;}async[_0x519e85(0x3a6)](_0x403931){const _0x14bab9=_0x519e85,_0xd7e703=this[_0x14bab9(0x2db)]()+'/'+_0x403931['objectType']+'/object';return(await this[_0x14bab9(0x40b)][_0x14bab9(0x18c)](_0xd7e703,{'body':_0x403931}))[_0x14bab9(0x3e6)][_0x14bab9(0x13f)]||'';}async[_0x519e85(0x12b)](_0x28425d){const _0x17656b=_0x519e85,_0x388b65=this[_0x17656b(0x2db)]()+'/-/object/list';return(await this[_0x17656b(0x40b)][_0x17656b(0x18c)](_0x388b65,{'body':_0x28425d}))['body']['objects'];}async['update'](_0x3d50da){const _0x505569=_0x519e85,_0x7426d6=this['_getAPIPrefixPath']()+'/'+_0x3d50da[_0x505569(0x16a)]+_0x505569(0x4e1)+_0x3d50da[_0x505569(0x13f)];await this[_0x505569(0x40b)][_0x505569(0x2fc)](_0x7426d6,{'body':_0x3d50da});}async[_0x519e85(0x267)](_0x4188f1){const _0x4f893c=_0x519e85,_0x24dc5c=this[_0x4f893c(0x2db)]()+'/'+_0x4188f1[_0x4f893c(0x16a)]+_0x4f893c(0x4e1)+_0x4188f1[_0x4f893c(0x13f)]+_0x4f893c(0x3b9);return(await this[_0x4f893c(0x40b)][_0x4f893c(0x18c)](_0x24dc5c,{'body':_0x4188f1}))[_0x4f893c(0x3e6)]['actions'];}async[_0x519e85(0x32c)](_0x39afea){const _0x7c9e67=_0x519e85,_0x5d1c9c=this[_0x7c9e67(0x2db)]()+_0x7c9e67(0x4a2);return(await this['_HTTPService'][_0x7c9e67(0x18c)](_0x5d1c9c,{'body':{'requests':_0x39afea}}))[_0x7c9e67(0x3e6)]['objectActions'];}async['listRoles'](_0x50a69f){const _0x3dc2a8=_0x519e85,_0x4e2028=this[_0x3dc2a8(0x2db)]()+'/'+_0x50a69f[_0x3dc2a8(0x16a)]+_0x3dc2a8(0x43f),_0x1e3abb=await this[_0x3dc2a8(0x40b)]['post'](_0x4e2028,{'body':_0x50a69f});return{'roles':_0x1e3abb[_0x3dc2a8(0x3e6)]['roles'],'actions':_0x1e3abb['body'][_0x3dc2a8(0x47d)]};}async['deleteCollaborator'](_0x1ec341){const _0x3a1809=_0x519e85,_0x3373d5=this[_0x3a1809(0x2db)]()+'/collaborator';await this[_0x3a1809(0x40b)][_0x3a1809(0x1a6)](_0x3373d5,{'params':{'collaboratorID':_0x1ec341[_0x3a1809(0x2d9)],'objectID':_0x1ec341[_0x3a1809(0x13f)],'unitID':_0x1ec341[_0x3a1809(0x371)]}});}async[_0x519e85(0x22b)](_0x1f2884){const _0x30513d=_0x519e85,_0x24e695=this['_getAPIPrefixPath']()+_0x30513d(0x16e);await this[_0x30513d(0x40b)][_0x30513d(0x2a7)](_0x24e695,{'body':_0x1f2884});}async['createCollaborator'](_0x3b7d34){const _0x46db80=_0x519e85,_0x5d8dc9=this[_0x46db80(0x2db)]()+_0x46db80(0x16e);await this[_0x46db80(0x40b)]['post'](_0x5d8dc9,{'body':_0x3b7d34});}async[_0x519e85(0x2f5)](_0x188dea){const _0xeefff5=_0x519e85,_0x5dd454=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0xeefff5(0x40b)]['get'](_0x5dd454,{'params':{'objectID':_0x188dea['objectID'],'unitID':_0x188dea[_0xeefff5(0x371)]}}))[_0xeefff5(0x3e6)][_0xeefff5(0x3d1)];}async[_0x519e85(0x27c)](_0x4fba27){const _0x4ffabc=_0x519e85,_0x14c880=this[_0x4ffabc(0x2db)]()+_0x4ffabc(0x16e);await this[_0x4ffabc(0x40b)][_0x4ffabc(0x2fc)](_0x14c880,{'body':_0x4fba27});}},exports[_0x519e85(0x301)]=cn([ut(0x0,a[_0x519e85(0x2ce)](w[_0x519e85(0x43d)])),ut(0x1,a['Inject'](a['IConfigService']))],exports[_0x519e85(0x301)]);var hn=Object[_0x519e85(0x1d9)],_n=Object[_0x519e85(0x361)],un=(_0xaa39ce,_0x4d9eb3,_0x1adcc4,_0x33722b)=>{const _0x559090=_0x519e85;for(var _0x888c37=_0x33722b>0x1?void 0x0:_0x33722b?_n(_0x4d9eb3,_0x1adcc4):_0x4d9eb3,_0x26fd8d=_0xaa39ce[_0x559090(0x4c3)]-0x1,_0x3c16db;_0x26fd8d>=0x0;_0x26fd8d--)(_0x3c16db=_0xaa39ce[_0x26fd8d])&&(_0x888c37=(_0x33722b?_0x3c16db(_0x4d9eb3,_0x1adcc4,_0x888c37):_0x3c16db(_0x888c37))||_0x888c37);return _0x33722b&&_0x888c37&&hn(_0x4d9eb3,_0x1adcc4,_0x888c37),_0x888c37;},dn=(_0x11902,_0x54e260)=>(_0x544192,_0x18138a)=>_0x54e260(_0x544192,_0x18138a,_0x11902);let be=class{constructor(_0x5d677c){const _0x4983a3=_0x519e85;this['_httpService']=_0x5d677c,this[_0x4983a3(0x264)]();}[_0x519e85(0x264)](){const _0x46889a=_0x519e85;this[_0x46889a(0x379)][_0x46889a(0x281)]({'interceptor':(_0x236fb0,_0x1bd92f)=>{const _0x56a376=_0x46889a,_0x187ba2=_0x236fb0['headers'],_0x405438=zt[_0x56a376(0x2de)]();return _0x405438&&_0x187ba2[_0x56a376(0x22f)](_0x56a376(0x310),_0x405438),_0x1bd92f(_0x236fb0);}});}};be=un([dn(0x0,a[_0x519e85(0x2ce)](w[_0x519e85(0x43d)]))],be);var Sn=Object[_0x519e85(0x1d9)],vn=Object[_0x519e85(0x361)],mn=(_0x2be071,_0x40b651,_0x48d380,_0x491802)=>{const _0x552eeb=_0x519e85;for(var _0x204ec5=_0x491802>0x1?void 0x0:_0x491802?vn(_0x40b651,_0x48d380):_0x40b651,_0x4a9be8=_0x2be071[_0x552eeb(0x4c3)]-0x1,_0x44a6d1;_0x4a9be8>=0x0;_0x4a9be8--)(_0x44a6d1=_0x2be071[_0x4a9be8])&&(_0x204ec5=(_0x491802?_0x44a6d1(_0x40b651,_0x48d380,_0x204ec5):_0x44a6d1(_0x204ec5))||_0x204ec5);return _0x491802&&_0x204ec5&&Sn(_0x40b651,_0x48d380,_0x204ec5),_0x204ec5;},xe=(_0x3d84ad,_0x35a3fe)=>(_0x2c4fc4,_0xa63c0d)=>_0x35a3fe(_0x2c4fc4,_0xa63c0d,_0x3d84ad);const gn=['image/png','image/jpeg','image/jpg',_0x519e85(0x1ce),_0x519e85(0x157)],fn=0x5*0x400*0x400,In=_0x519e85(0x458),pn='/universer-api/stream/file/upload',Cn=_0x519e85(0x43b),En=_0x519e85(0x374);exports[_0x519e85(0x38c)]=class{constructor(_0x4e43ce,_0x39eebf,_0x21a461){const _0x2b92b0=_0x519e85;u(this,'_waitCount',0x0),u(this,_0x2b92b0(0x392),new v['Subject']()),u(this,_0x2b92b0(0x4cb),this[_0x2b92b0(0x392)]),u(this,_0x2b92b0(0x21a),new Map()),(this[_0x2b92b0(0x379)]=_0x4e43ce,this[_0x2b92b0(0x240)]=_0x39eebf,this[_0x2b92b0(0x52e)]=_0x21a461);}[_0x519e85(0x14b)](_0x4b5d27){const _0x348eff=_0x519e85;this[_0x348eff(0x265)]=_0x4b5d27,this[_0x348eff(0x392)][_0x348eff(0x4a5)](_0x4b5d27);}[_0x519e85(0x4f6)](_0x4c9e32,_0x3d1018){const _0x499b88=_0x519e85;if(_0x3d1018===j[_0x499b88(0x19e)][_0x499b88(0x47b)]){const _0x32563d=new Image();return _0x32563d[_0x499b88(0x45e)]=_0x4c9e32,_0x32563d;}return this[_0x499b88(0x21a)]['get'](_0x4c9e32);}[_0x519e85(0x28f)](_0x5e0ddd,_0x3beaa7,_0x54cda3){const _0x4ef2da=_0x519e85;_0x3beaa7===j[_0x4ef2da(0x19e)]['BASE64']||_0x54cda3==null||this[_0x4ef2da(0x21a)][_0x4ef2da(0x22f)](_0x5e0ddd,_0x54cda3);}async[_0x519e85(0x3ef)](_0xb93be1){const _0x405395=_0x519e85;try{const _0x48054c=this['_replaceFileID'](this[_0x405395(0x33f)](),''+_0xb93be1),_0x15ac46=(await this[_0x405395(0x379)]['get'](_0x48054c))['body'];if(_0x15ac46[_0x405395(0x2bf)]&&_0x15ac46[_0x405395(0x2bf)]['code']===bt['OK']){const _0x16d8b3=new URL(_0x15ac46[_0x405395(0x16f)],this[_0x405395(0x167)]())[_0x405395(0x3b2)]();return Promise[_0x405395(0x3e3)](_0x16d8b3);}return Promise[_0x405395(0x4d5)](_0x15ac46[_0x405395(0x2bf)]);}catch(_0x4b0c08){return Promise[_0x405395(0x4d5)](_0x4b0c08);}}async['saveImage'](_0x484a00){const _0x5126ac=_0x519e85;let _0x36e3b3='';if(!gn['includes'](_0x484a00[_0x5126ac(0x4fb)]))return this['_decreaseWaiting'](),Promise[_0x5126ac(0x4d5)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0x484a00[_0x5126ac(0x408)]>fn)return this['_decreaseWaiting'](),Promise[_0x5126ac(0x4d5)](new Error(j[_0x5126ac(0x505)][_0x5126ac(0x1a4)]));try{const _0x3d8ce1=new FormData();_0x3d8ce1[_0x5126ac(0x422)](_0x5126ac(0x424),_0x484a00);const _0x9c81b9=this['_univerInstanceService']['getFocusedUnit'](),_0x3aa752=_0x9c81b9==null?void 0x0:_0x9c81b9[_0x5126ac(0x4a8)]();if(!_0x3aa752)throw new Error(_0x5126ac(0x134));const _0x5ae070=this[_0x5126ac(0x304)]()+'?size='+_0x484a00['size'][_0x5126ac(0x3b2)]()+_0x5126ac(0x4b4)+Tt[_0x5126ac(0x353)]+_0x5126ac(0x3fd)+encodeURIComponent(_0x3aa752),_0x274cbc=await(await fetch(_0x5ae070,{'method':_0x5126ac(0x4ed),'body':_0x3d8ce1}))['json']();if(typeof _0x274cbc[_0x5126ac(0x333)]!='string')return this[_0x5126ac(0x3a4)](),Promise['reject'](new Error(j[_0x5126ac(0x505)][_0x5126ac(0x1a2)]));_0x36e3b3=_0x274cbc[_0x5126ac(0x333)];}catch{return this[_0x5126ac(0x3a4)](),Promise[_0x5126ac(0x4d5)](new Error(j[_0x5126ac(0x505)][_0x5126ac(0x1a2)]));}return new Promise((_0x5b1b32,_0x5c942e)=>{const _0x59fa14=_0x5126ac,_0x3e1ca9=new FileReader();_0x3e1ca9[_0x59fa14(0x2c0)](_0x484a00),_0x3e1ca9[_0x59fa14(0x50a)]=_0x582b94=>{const _0x2860e0=_0x59fa14;var _0x1ee343;const _0x26f033=(_0x1ee343=_0x582b94[_0x2860e0(0x4ce)])==null?void 0x0:_0x1ee343[_0x2860e0(0x2e5)];if(_0x26f033==null){this[_0x2860e0(0x3a4)](),_0x5c942e(new Error(j[_0x2860e0(0x505)][_0x2860e0(0x1a2)]));return;}const _0x4a6499=a[_0x2860e0(0x172)][_0x2860e0(0x4cc)](0x6);_0x5b1b32({'imageId':_0x4a6499,'imageSourceType':j[_0x2860e0(0x19e)][_0x2860e0(0x3a0)],'source':_0x36e3b3,'base64Cache':_0x26f033,'status':j[_0x2860e0(0x505)]['SUCCUSS']}),this[_0x2860e0(0x3a4)]();};});}[_0x519e85(0x304)](){const _0x3c9079=_0x519e85;var _0x2aefc4,_0x3a22e9;const _0x3cc77b=this[_0x3c9079(0x240)][_0x3c9079(0x2a1)](In),_0x214b5e=this[_0x3c9079(0x240)]['getConfig'](L);return(_0x3a22e9=(_0x2aefc4=_0x214b5e==null?void 0x0:_0x214b5e[_0x3c9079(0x19f)])!=null?_0x2aefc4:_0x3cc77b)!=null?_0x3a22e9:pn;}[_0x519e85(0x33f)](){const _0x2e51b5=_0x519e85;var _0x185e8d,_0x3acc73;const _0x4dd226=this[_0x2e51b5(0x240)][_0x2e51b5(0x2a1)](Cn),_0x382a04=this[_0x2e51b5(0x240)]['getConfig'](L);return(_0x3acc73=(_0x185e8d=_0x382a04==null?void 0x0:_0x382a04[_0x2e51b5(0x476)])!=null?_0x185e8d:_0x4dd226)!=null?_0x3acc73:En;}[_0x519e85(0x167)](){const _0x290e02=_0x519e85;var _0x50d605;const _0x1b032f=this[_0x290e02(0x240)]['getConfig'](L);return(_0x50d605=_0x1b032f==null?void 0x0:_0x1b032f[_0x290e02(0x202)])!=null?_0x50d605:location[_0x290e02(0x1de)];}[_0x519e85(0x3c2)](_0xfe31f2,_0x1f14ba){const _0xc3373b=_0x519e85;return _0xfe31f2[_0xc3373b(0x4e4)](_0xc3373b(0x3a2),_0x1f14ba);}[_0x519e85(0x3a4)](){const _0xcef4f4=_0x519e85;this['_waitCount']-=0x1,this[_0xcef4f4(0x392)][_0xcef4f4(0x4a5)](this['_waitCount']);}},exports[_0x519e85(0x38c)]=mn([xe(0x0,a['Inject'](w[_0x519e85(0x43d)])),xe(0x1,a[_0x519e85(0x1ab)]),xe(0x2,a[_0x519e85(0x2ce)](a['IUniverInstanceService']))],exports[_0x519e85(0x38c)]);var bn=Object[_0x519e85(0x1d9)],Tn=Object[_0x519e85(0x361)],Rn=(_0x31299e,_0x2dfc88,_0x8d104a,_0x575b75)=>{const _0x45e07c=_0x519e85;for(var _0x36bffd=_0x575b75>0x1?void 0x0:_0x575b75?Tn(_0x2dfc88,_0x8d104a):_0x2dfc88,_0x1ffb40=_0x31299e[_0x45e07c(0x4c3)]-0x1,_0x2676b7;_0x1ffb40>=0x0;_0x1ffb40--)(_0x2676b7=_0x31299e[_0x1ffb40])&&(_0x36bffd=(_0x575b75?_0x2676b7(_0x2dfc88,_0x8d104a,_0x36bffd):_0x2676b7(_0x36bffd))||_0x36bffd);return _0x575b75&&_0x36bffd&&bn(_0x2dfc88,_0x8d104a,_0x36bffd),_0x36bffd;},_e=(_0x564c76,_0x3f7a09)=>(_0x25b3c6,_0x189791)=>_0x3f7a09(_0x25b3c6,_0x189791,_0x564c76);let Te=class extends a[_0x519e85(0x2a2)]{constructor(_0x4371c2,_0xb398e5,_0x5e1c05,_0x27bfda,_0x5bd9a7){const _0x5adb4d=_0x519e85;super(),this[_0x5adb4d(0x185)]=_0x4371c2,this[_0x5adb4d(0x52e)]=_0xb398e5,this[_0x5adb4d(0x2e0)]=_0x5e1c05,this[_0x5adb4d(0x3d0)]=_0x27bfda,this[_0x5adb4d(0x4e0)]=_0x5bd9a7,this[_0x5adb4d(0x2ea)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x5c5627=_0x519e85,_0x3e46c4=async _0x529b42=>{const _0x1bf77a=_0x5923;(await this[_0x1bf77a(0x3d0)][_0x1bf77a(0x273)](_0x529b42))[_0x1bf77a(0x46f)]['pipe'](E[_0x1bf77a(0x4d4)](_0x7a1630=>_0x7a1630['eventID']===_[_0x1bf77a(0x3f2)]['SHOULD_CLOSE_CONN']),E[_0x1bf77a(0x254)](this[_0x1bf77a(0x253)]))[_0x1bf77a(0x33d)](_0x258c50=>{const _0x3f657f=_0x1bf77a,_0x4c1e3f=_0x258c50,{reason:_0x1415f3}=_0x4c1e3f[_0x3f657f(0x229)];this[_0x3f657f(0x185)]['get'](A[_0x3f657f(0x15d)])[_0x3f657f(0x519)]({'type':q[_0x3f657f(0x25c)][_0x3f657f(0x414)],'content':this[_0x3f657f(0x4e0)]['t']('collaboration.closeRoom')+'('+_0x1415f3+')'}),this[_0x3f657f(0x2e0)]['updatePermissionPoint'](new C[(_0x3f657f(0x413))](_0x529b42)['id'],!0x1),this[_0x3f657f(0x3d0)][_0x3f657f(0x1cf)](_0x529b42);});};v[_0x5c5627(0x51c)](this[_0x5c5627(0x52e)][_0x5c5627(0x375)](a[_0x5c5627(0x2ef)][_0x5c5627(0x2ed)]),this[_0x5c5627(0x52e)][_0x5c5627(0x375)](a[_0x5c5627(0x2ef)][_0x5c5627(0x33b)]))['pipe'](E[_0x5c5627(0x238)](_0x50ca3e=>_0x50ca3e[_0x5c5627(0x4a8)]()),E[_0x5c5627(0x4d4)](_0x586cf1=>!a[_0x5c5627(0x23b)](_0x586cf1)),E[_0x5c5627(0x254)](this[_0x5c5627(0x253)]))['subscribe'](_0x4860c7=>{_0x3e46c4(_0x4860c7);});}['_initUnitPermissionChange'](){const _0xaa37d9=_0x519e85,_0x5610b8=async _0x40aa34=>{const _0x5391a1=_0x5923;(await this[_0x5391a1(0x3d0)][_0x5391a1(0x273)](_0x40aa34))[_0x5391a1(0x46f)][_0x5391a1(0x479)](E[_0x5391a1(0x4d4)](_0xeae7de=>_0xeae7de[_0x5391a1(0x3ba)]===_[_0x5391a1(0x3f2)][_0x5391a1(0x213)]),E[_0x5391a1(0x254)](this[_0x5391a1(0x253)]))[_0x5391a1(0x33d)](_0x28c71c=>{const _0x3d668f=_0x5391a1,_0x394b02=_0x28c71c,{objectId:_0x42e0db}=_0x394b02[_0x3d668f(0x229)],_0x5b3f5f=this[_0x3d668f(0x185)][_0x3d668f(0x3f3)](te['SheetPermissionInitController']);_0x42e0db===_0x40aa34?_0x5b3f5f[_0x3d668f(0x3c0)](_0x40aa34):_0x5b3f5f[_0x3d668f(0x4fd)](_0x40aa34,_0x42e0db);});};v[_0xaa37d9(0x51c)](this[_0xaa37d9(0x52e)][_0xaa37d9(0x375)](a[_0xaa37d9(0x2ef)][_0xaa37d9(0x2ed)]),this[_0xaa37d9(0x52e)][_0xaa37d9(0x375)](a[_0xaa37d9(0x2ef)]['UNIVER_DOC']))[_0xaa37d9(0x479)](E['map'](_0x3b92f5=>_0x3b92f5[_0xaa37d9(0x4a8)]()),E[_0xaa37d9(0x4d4)](_0xafc8c7=>!a[_0xaa37d9(0x23b)](_0xafc8c7)),E[_0xaa37d9(0x254)](this['dispose$']))[_0xaa37d9(0x33d)](_0x693a75=>{_0x5610b8(_0x693a75);});}};Te=Rn([_e(0x0,a[_0x519e85(0x2ce)](a[_0x519e85(0x42d)])),_e(0x1,a[_0x519e85(0x524)]),_e(0x2,a['IPermissionService']),_e(0x3,a['Inject'](exports[_0x519e85(0x2dc)])),_e(0x4,a[_0x519e85(0x2ce)](a[_0x519e85(0x322)]))],Te);var On=Object['defineProperty'],Dn=Object[_0x519e85(0x361)],yn=(_0x12d21a,_0x4040b8,_0x40d487,_0x31ed63)=>{const _0x1e46b8=_0x519e85;for(var _0x20593a=_0x31ed63>0x1?void 0x0:_0x31ed63?Dn(_0x4040b8,_0x40d487):_0x4040b8,_0x58069e=_0x12d21a[_0x1e46b8(0x4c3)]-0x1,_0x4eb6db;_0x58069e>=0x0;_0x58069e--)(_0x4eb6db=_0x12d21a[_0x58069e])&&(_0x20593a=(_0x31ed63?_0x4eb6db(_0x4040b8,_0x40d487,_0x20593a):_0x4eb6db(_0x20593a))||_0x20593a);return _0x31ed63&&_0x20593a&&On(_0x4040b8,_0x40d487,_0x20593a),_0x20593a;},dt=(_0x538e4d,_0x293dae)=>(_0x29f972,_0x490ae9)=>_0x293dae(_0x29f972,_0x490ae9,_0x538e4d);exports[_0x519e85(0x34d)]=class{constructor(_0x446939,_0x4b4769){const _0x4e4256=_0x519e85;this[_0x4e4256(0x240)]=_0x446939,this[_0x4e4256(0x379)]=_0x4b4769;}async[_0x519e85(0x38b)](_0x46b646,_0x597bc4){const _0x215c98=_0x519e85;var _0xb68c2d;const {unitID:_0x2ff736,type:_0x45932e,revision:_0x554948=0x0}=_0x597bc4,_0x1495fd=this['_getSnapshotAPIPrefix']()+'/'+_0x45932e+_0x215c98(0x31f)+_0x2ff736+_0x215c98(0x546)+_0x554948,_0x5b349b=(await this[_0x215c98(0x379)][_0x215c98(0x3f3)](_0x1495fd))[_0x215c98(0x3e6)],_0x2beb9f=(_0xb68c2d=_0x5b349b[_0x215c98(0x177)])==null?void 0x0:_0xb68c2d[_0x215c98(0x216)];if(_0x2beb9f){const _0x1bfdd8=_0x2beb9f==null?void 0x0:_0x2beb9f[_0x215c98(0x4fa)],_0x370803=_[_0x215c98(0x455)][_0x215c98(0x4fe)](_[_0x215c98(0x19d)](_0x1bfdd8));_0x2beb9f['originalMeta']=_0x370803,Object['entries'](_0x2beb9f[_0x215c98(0x1f6)])[_0x215c98(0x27d)](([,_0x2bc4f1])=>{const _0x53f2d0=_0x215c98,_0x494c70=_0x2bc4f1[_0x53f2d0(0x4fa)],_0xb52af7=_[_0x53f2d0(0x455)]['encode'](_['b64DecodeUnicode'](_0x494c70));_0x2bc4f1[_0x53f2d0(0x4fa)]=_0xb52af7;});}return _0x5b349b;}async['getSheetBlock'](_0x3d1151,_0xbe72be){const _0x76c1ee=_0x519e85,{unitID:_0x157e94,type:_0x3a983d,blockID:_0x442be0}=_0xbe72be,_0x30a9d8=this[_0x76c1ee(0x1ac)]()+'/'+_0x3a983d+_0x76c1ee(0x31f)+_0x157e94+'/block/'+_0x442be0;return(await this[_0x76c1ee(0x379)][_0x76c1ee(0x3f3)](_0x30a9d8))['body'];}async['getDeserializedSheetBlock'](_0x328f15,_0x385d58){const _0x3ee446=_0x519e85,{unitID:_0x5f0520,type:_0x3900f1,blockID:_0x303619}=_0x385d58,_0x507a07=this[_0x3ee446(0x1ac)]()+_0x3ee446(0x15b)+_0x3900f1+_0x3ee446(0x31f)+_0x5f0520+_0x3ee446(0x15b)+_0x303619;return(await this['_httpService'][_0x3ee446(0x3f3)](_0x507a07))[_0x3ee446(0x3e6)];}async[_0x519e85(0x42f)](_0x50b48d,_0x12698c){const _0x1bebbc=_0x519e85,{unitID:_0x43af96,type:_0x1fefd9,from:_0x3cae57,to:_0x4f7d0a}=_0x12698c,_0x4f1349=this[_0x1bebbc(0x1ac)]()+'/'+_0x1fefd9+_0x1bebbc(0x31f)+_0x43af96+_0x1bebbc(0x15c)+_0x3cae57+_0x1bebbc(0x4d6)+_0x4f7d0a;return(await this['_httpService'][_0x1bebbc(0x3f3)](_0x4f1349))[_0x1bebbc(0x3e6)];}[_0x519e85(0x217)](){const _0x316ce1=_0x519e85;var _0x5b5a5e;return(_0x5b5a5e=this['_configService'][_0x316ce1(0x2a1)](vt))!=null?_0x5b5a5e:this[_0x316ce1(0x1ac)]();}[_0x519e85(0x1ac)](){const _0x12e1af=_0x519e85;var _0x3bc653,_0xf37508;const _0x485314=this['_configService'][_0x12e1af(0x2a1)](St),_0xece83c=this['_configService']['getConfig'](L);return(_0xf37508=(_0x3bc653=_0xece83c==null?void 0x0:_0xece83c[_0x12e1af(0x437)])!=null?_0x3bc653:_0x485314)!=null?_0xf37508:Jt;}async[_0x519e85(0x186)](_0x300025,_0x13b0f2){const _0x3774cf=_0x519e85,_0x4c8063=_0x3774cf(0x36c)+_0x13b0f2[_0x3774cf(0x4fb)]+_0x3774cf(0x31f)+_0x13b0f2[_0x3774cf(0x371)]+_0x3774cf(0x4e6);return(await this['_httpService'][_0x3774cf(0x3f3)](_0x4c8063,{'params':{'resourceId':JSON[_0x3774cf(0x425)](_0x13b0f2['resourceIDs'])}}))[_0x3774cf(0x3e6)];}[_0x519e85(0x4a0)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x519e85(0x140)](){const _0x9cfa37=_0x519e85;throw new Error(_0x9cfa37(0x518));}[_0x519e85(0x279)](){const _0x447562=_0x519e85;throw new Error(_0x447562(0x518));}[_0x519e85(0x4df)](){const _0x251c30=_0x519e85;throw new Error(_0x251c30(0x518));}[_0x519e85(0x338)](){const _0x408055=_0x519e85;throw new Error(_0x408055(0x518));}},exports[_0x519e85(0x34d)]=yn([dt(0x0,a['IConfigService']),dt(0x1,a[_0x519e85(0x2ce)](w[_0x519e85(0x43d)]))],exports[_0x519e85(0x34d)]);var Un=Object[_0x519e85(0x1d9)],Pn=Object[_0x519e85(0x361)],wn=(_0x324970,_0x7d3e4a,_0xfa858c,_0x4f3804)=>{const _0x36c495=_0x519e85;for(var _0x33d3be=_0x4f3804>0x1?void 0x0:_0x4f3804?Pn(_0x7d3e4a,_0xfa858c):_0x7d3e4a,_0x4bd97a=_0x324970[_0x36c495(0x4c3)]-0x1,_0x42902b;_0x4bd97a>=0x0;_0x4bd97a--)(_0x42902b=_0x324970[_0x4bd97a])&&(_0x33d3be=(_0x4f3804?_0x42902b(_0x7d3e4a,_0xfa858c,_0x33d3be):_0x42902b(_0x33d3be))||_0x33d3be);return _0x4f3804&&_0x33d3be&&Un(_0x7d3e4a,_0xfa858c,_0x33d3be),_0x33d3be;},ue=(_0xf97f,_0xc2ea59)=>(_0x472f47,_0x428815)=>_0xc2ea59(_0x472f47,_0x428815,_0xf97f);let Fe=class extends a['LocalUndoRedoService']{constructor(_0x40ae39,_0x360158,_0x147f74,_0x29cbf4,_0x250f67){const _0x5760cf=_0x519e85;super(_0x40ae39,_0x360158,_0x147f74),this[_0x5760cf(0x435)]=_0x29cbf4,this[_0x5760cf(0x438)]=_0x250f67;}[_0x519e85(0x4e8)](_0x25e016,_0x24415c){const _0x2f741d=_0x519e85,_0x4490c7=this['_getUndoStack'](_0x25e016);if(_0x4490c7)try{const _0x2dac67=this[_0x2f741d(0x30a)](_0x4490c7,_0x24415c);this[_0x2f741d(0x51e)](_0x25e016,_0x2dac67);}catch(_0x329a7f){this[_0x2f741d(0x438)][_0x2f741d(0x2bf)]('[CollaborationUndoRedoService]',_0x329a7f),this[_0x2f741d(0x523)](_0x25e016);}const _0x323c9f=this[_0x2f741d(0x363)](_0x25e016);if(_0x323c9f)try{const _0x38180e=this['_transformStack'](_0x323c9f,_0x24415c);this[_0x2f741d(0x204)](_0x25e016,_0x38180e);}catch(_0x404494){this['_logService']['error'](_0x404494),this[_0x2f741d(0x222)](_0x25e016);}}[_0x519e85(0x523)](_0x390bca){const _0x4ba0a7=_0x519e85,_0x7012b0=this[_0x4ba0a7(0x2b8)](_0x390bca);_0x7012b0&&(_0x7012b0[_0x4ba0a7(0x4c3)]=0x0,this[_0x4ba0a7(0x1a8)]());}[_0x519e85(0x222)](_0x588931){const _0x139b4a=_0x519e85,_0xa82b4a=this[_0x139b4a(0x363)](_0x588931);_0xa82b4a&&(_0xa82b4a[_0x139b4a(0x4c3)]=0x0,this['_updateStatus']());}[_0x519e85(0x51e)](_0x4b59e7,_0x122d69){const _0x4d16b5=_0x519e85;this[_0x4d16b5(0x309)][_0x4d16b5(0x22f)](_0x4b59e7,_0x122d69),this[_0x4d16b5(0x1a8)]();}[_0x519e85(0x204)](_0x4d75fc,_0x38a2af){const _0xfea187=_0x519e85;this[_0xfea187(0x261)][_0xfea187(0x22f)](_0x4d75fc,_0x38a2af),this[_0xfea187(0x1a8)]();}['_transformStack'](_0x338675,_0xeeb195){const _0x43e11c=_0x519e85,_0x2562c5=[];let _0x106c55=_0xeeb195,_0x49bb76=_0xeeb195;for(let _0xa58bfb=_0x338675[_0x43e11c(0x4c3)]-0x1;_0xa58bfb>=0x0;_0xa58bfb--){const {unitID:_0x462a8b,undoMutations:_0x4c7870,redoMutations:_0x4c9c78}=_0x338675[_0xa58bfb],_0x1166f7=this[_0x43e11c(0x435)][_0x43e11c(0x480)](_0x106c55,_0x4c7870),_0x1e7a99=this[_0x43e11c(0x435)]['transformMutationsWithChangeset'](_0x49bb76,_0x4c9c78);if(_[_0x43e11c(0x311)](_0x1166f7)||_[_0x43e11c(0x311)](_0x1e7a99)){this['_logService']['error'](_0x43e11c(0x491),_0x43e11c(0x220),_0x1166f7,_0x1e7a99);break;}_0x106c55=_0x1166f7[_0x43e11c(0x257)],_0x49bb76=_0x1e7a99[_0x43e11c(0x257)],_0x2562c5['push']({'unitID':_0x462a8b,'undoMutations':_0x1166f7[_0x43e11c(0x1e1)],'redoMutations':_0x1e7a99[_0x43e11c(0x1e1)]});}return _0x2562c5['reverse']();}};Fe=wn([ue(0x0,a[_0x519e85(0x524)]),ue(0x1,a[_0x519e85(0x147)]),ue(0x2,a['IContextService']),ue(0x3,_['ITransformService']),ue(0x4,a['ILogService'])],Fe);class xt extends a[_0x519e85(0x2a2)]{constructor(){const _0xf39791=_0x519e85;super(),u(this,_0xf39791(0x535)),this['urlChange$']=v[_0xf39791(0x411)](window,_0xf39791(0x262))['pipe'](v[_0xf39791(0x254)](this['dispose$']),v[_0xf39791(0x1fc)](0x1),v[_0xf39791(0x32b)](void 0x0));}[_0x519e85(0x187)](_0x38fa9e,_0xe03d85,_0x1b17cf=!0x1){const _0x7dc44a=_0x519e85,_0x3feaa6=new URL(window[_0x7dc44a(0x336)][_0x7dc44a(0x150)]);_0x3feaa6[_0x7dc44a(0x1aa)]['set'](_0x38fa9e,_0xe03d85),_0x1b17cf?window['history'][_0x7dc44a(0x453)]('','',_0x3feaa6['toString']()):window[_0x7dc44a(0x4bd)][_0x7dc44a(0x542)]('','',_0x3feaa6['toString']());}['removeParam'](_0x564116,_0x47e6d9=!0x1){const _0x5620d6=_0x519e85,_0x11b7e7=new URL(window['location'][_0x5620d6(0x150)]);_0x11b7e7[_0x5620d6(0x1aa)][_0x5620d6(0x1a6)](_0x564116),_0x47e6d9?window[_0x5620d6(0x4bd)][_0x5620d6(0x453)]('','',_0x11b7e7[_0x5620d6(0x3b2)]()):window[_0x5620d6(0x4bd)][_0x5620d6(0x542)]('','',_0x11b7e7['toString']());}[_0x519e85(0x1c6)](_0x220ce6){const _0x3f815e=_0x519e85;var _0x2eac97;return(_0x2eac97=new URL(window[_0x3f815e(0x336)]['href'])[_0x3f815e(0x1aa)]['get'](_0x220ce6))!=null?_0x2eac97:void 0x0;}}var kt=Object[_0x519e85(0x1d9)],Nn=Object[_0x519e85(0x361)],Mn=(_0x4b0192,_0x1e91ee,_0x4df129)=>_0x1e91ee in _0x4b0192?kt(_0x4b0192,_0x1e91ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4df129}):_0x4b0192[_0x1e91ee]=_0x4df129,An=(_0x12a56d,_0x5e5f92,_0x4cba4d,_0x473bf9)=>{for(var _0x21e614=_0x473bf9>0x1?void 0x0:_0x473bf9?Nn(_0x5e5f92,_0x4cba4d):_0x5e5f92,_0x420fda=_0x12a56d['length']-0x1,_0x241269;_0x420fda>=0x0;_0x420fda--)(_0x241269=_0x12a56d[_0x420fda])&&(_0x21e614=(_0x473bf9?_0x241269(_0x5e5f92,_0x4cba4d,_0x21e614):_0x241269(_0x21e614))||_0x21e614);return _0x473bf9&&_0x21e614&&kt(_0x5e5f92,_0x4cba4d,_0x21e614),_0x21e614;},ge=(_0x1b976a,_0x47edc2)=>(_0x414b92,_0x2056d3)=>_0x47edc2(_0x414b92,_0x2056d3,_0x1b976a),Ln=(_0x3d582a,_0x269106,_0x162ea8)=>Mn(_0x3d582a,_0x269106+'',_0x162ea8);const jn=_0x519e85(0x179);exports[_0x519e85(0x4b2)]=class extends a[_0x519e85(0x237)]{constructor(_0x18a377=as,_0x4ee7f6,_0x65eb82,_0x3a9f1a,_0x40354a){const _0x2bfec7=_0x519e85;super(),this[_0x2bfec7(0x271)]=_0x18a377,this['_logService']=_0x4ee7f6,this['_renderManagerService']=_0x65eb82,this['_injector']=_0x3a9f1a,this[_0x2bfec7(0x240)]=_0x40354a;const {..._0x44e9b5}=this[_0x2bfec7(0x271)];this[_0x2bfec7(0x240)][_0x2bfec7(0x456)](L,_0x44e9b5);}[_0x519e85(0x4ff)](){const _0x3db2cd=_0x519e85;this[_0x3db2cd(0x360)](),a['touchDependencies'](this[_0x3db2cd(0x185)],[[ne],[exports[_0x3db2cd(0x29d)]],[Te]]);}[_0x519e85(0x269)](){const _0x556bbc=_0x519e85;a[_0x556bbc(0x29b)](this[_0x556bbc(0x185)],[[Ce]]);}[_0x519e85(0x44b)](){const _0x44898e=_0x519e85;this[_0x44898e(0x2b0)]();}[_0x519e85(0x360)](){const _0x3f64f5=_0x519e85;var _0x53f7cf,_0x3a4351,_0xff8712,_0x157175;this[_0x3f64f5(0x185)]['has'](a[_0x3f64f5(0x249)])&&this[_0x3f64f5(0x438)][_0x3f64f5(0x2bf)](_0x3f64f5(0x3ea),_0x3f64f5(0x30b));let _0x337af2=[[a[_0x3f64f5(0x249)],{'useClass':Fe}],[exports[_0x3f64f5(0x2dc)]],[Je],[w['HTTPService']],[Qe,{'useClass':xt}],[X],[exports[_0x3f64f5(0x26b)]],[w['WebSocketService']],[Ie],[pe],[fe],[Xe],[Ee],[be],[qe],[Te],[Ke,{'useClass':(_0x3a4351=(_0x53f7cf=this[_0x3f64f5(0x271)])==null?void 0x0:_0x53f7cf[_0x3f64f5(0x155)])!=null?_0x3a4351:exports['CollaborationSocketService']}],[w[_0x3f64f5(0x39f)],{'useClass':w['XHRHTTPImplementation']}],[_[_0x3f64f5(0x193)],{'useClass':exports['SnapshotServerOverHTTPService']}],[a['IAuthzIoService'],{'useClass':exports[_0x3f64f5(0x301)]}],[j[_0x3f64f5(0x2c7)],{'useClass':exports[_0x3f64f5(0x38c)]}],[exports['CollaborationController']],[exports['DataLoaderController']],[exports['DesktopCollaborationStatusDisplayController']],[Ce],[ne]];(_0xff8712=this['_config'])!=null&&_0xff8712['enableSingleActiveInstanceLock']&&_0x337af2['push']([Re,{'useClass':xs}]),_0x337af2=a[_0x3f64f5(0x30e)](_0x337af2,(_0x157175=this['_config'])==null?void 0x0:_0x157175[_0x3f64f5(0x507)]),_0x337af2[_0x3f64f5(0x27d)](_0x3532d7=>this['_injector']['add'](_0x3532d7)),this[_0x3f64f5(0x25f)]();}[_0x519e85(0x2b0)](){const _0x152680=_0x519e85;this[_0x152680(0x48d)](this[_0x152680(0x1dd)][_0x152680(0x1a3)](a[_0x152680(0x2ef)][_0x152680(0x33b)],[Ve])),this[_0x152680(0x48d)](this['_renderManagerService'][_0x152680(0x1a3)](a[_0x152680(0x2ef)][_0x152680(0x2ed)],[We]));}[_0x519e85(0x25f)](){const _0xb1ff7b=_0x519e85;var _0x2b87bb,_0x30f800;this['_injector'][_0xb1ff7b(0x3f3)](w[_0xb1ff7b(0x43d)])[_0xb1ff7b(0x281)]({'priority':0x14,'interceptor':w['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_injector'][_0xb1ff7b(0x3f3)](be),(_0x2b87bb=this['_config'])!=null&&_0x2b87bb[_0xb1ff7b(0x426)]||this[_0xb1ff7b(0x185)][_0xb1ff7b(0x3f3)](exports[_0xb1ff7b(0x26b)])[_0xb1ff7b(0x348)](),(_0x30f800=this[_0xb1ff7b(0x271)])!=null&&_0x30f800[_0xb1ff7b(0x156)]&&this[_0xb1ff7b(0x185)][_0xb1ff7b(0x3f3)](Ee),this[_0xb1ff7b(0x185)]['get'](exports[_0xb1ff7b(0x26a)]),this[_0xb1ff7b(0x185)]['has'](exports[_0xb1ff7b(0x465)])&&this['_injector'][_0xb1ff7b(0x3f3)](exports[_0xb1ff7b(0x465)]);}},Ln(exports[_0x519e85(0x4b2)],_0x519e85(0x417),jn),exports['UniverCollaborationClientPlugin']=An([a[_0x519e85(0x315)](_[_0x519e85(0x266)]),ge(0x1,a['ILogService']),ge(0x2,D[_0x519e85(0x239)]),ge(0x3,a['Inject'](a[_0x519e85(0x42d)])),ge(0x4,a[_0x519e85(0x1ab)])],exports[_0x519e85(0x4b2)]),exports['AUTHZ_URL_KEY']=Ht,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=Ct,exports[_0x519e85(0x1d3)]=mt,exports[_0x519e85(0x188)]=U,exports['CollaborationStatusDisplay']=$t,exports[_0x519e85(0x334)]=qe,exports[_0x519e85(0x2ff)]=gt,exports[_0x519e85(0x359)]=Ge,exports['ICollaborationSocketService']=Ke,exports['IURLService']=Qe,exports[_0x519e85(0x407)]=pt,exports[_0x519e85(0x403)]=Et,exports[_0x519e85(0x3ab)]=It,exports[_0x519e85(0x2ec)]=Zt,exports[_0x519e85(0x196)]=St,exports[_0x519e85(0x3a8)]=vt,exports['SessionStatus']=H,exports[_0x519e85(0x500)]=Nt,exports[_0x519e85(0x432)]=xt,exports[_0x519e85(0x35b)]=Rt,exports['serializeCombRequest']=Ot;
1
+ 'use strict';const _0x1cd32e=_0xcf6e;(function(_0x5159c2,_0x1340b3){const _0x1103e0=_0xcf6e,_0x182198=_0x5159c2();while(!![]){try{const _0x133d37=-parseInt(_0x1103e0(0x4f3))/0x1+parseInt(_0x1103e0(0x2f1))/0x2+parseInt(_0x1103e0(0x4db))/0x3*(-parseInt(_0x1103e0(0x3c1))/0x4)+-parseInt(_0x1103e0(0x452))/0x5+-parseInt(_0x1103e0(0x338))/0x6*(-parseInt(_0x1103e0(0x173))/0x7)+parseInt(_0x1103e0(0x298))/0x8+parseInt(_0x1103e0(0x483))/0x9;if(_0x133d37===_0x1340b3)break;else _0x182198['push'](_0x182198['shift']());}catch(_0x45059c){_0x182198['push'](_0x182198['shift']());}}}(_0x38e5,0x489f0));var Yt=Object[_0x1cd32e(0x528)],Kt=(_0x177b07,_0x1619af,_0x1cc72d)=>_0x1619af in _0x177b07?Yt(_0x177b07,_0x1619af,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cc72d}):_0x177b07[_0x1619af]=_0x1cc72d,u=(_0xc18d4d,_0x9618d6,_0x263bb6)=>Kt(_0xc18d4d,typeof _0x9618d6!=_0x1cd32e(0x4b0)?_0x9618d6+'':_0x9618d6,_0x263bb6);Object[_0x1cd32e(0x528)](exports,Symbol[_0x1cd32e(0x257)],{'value':_0x1cd32e(0x1ad)});const a=require(_0x1cd32e(0x1db)),v=require(_0x1cd32e(0x3d9)),E=require(_0x1cd32e(0x117)),q=require('@univerjs/design'),A=require(_0x1cd32e(0x148)),w=require('@univerjs/network'),_=require(_0x1cd32e(0x2a5)),qt=require(_0x1cd32e(0x114)),N=require(_0x1cd32e(0x289)),C=require(_0x1cd32e(0x489)),D=require('@univerjs/engine-render'),se=require(_0x1cd32e(0x3f1)),j=require(_0x1cd32e(0x426)),et=require(_0x1cd32e(0x18e)),te=require(_0x1cd32e(0x206)),P=require(_0x1cd32e(0x340)),Xt=require(_0x1cd32e(0x29a)),zt=require(_0x1cd32e(0x45f)),St=_0x1cd32e(0x42e),Jt=_0x1cd32e(0x3e0),vt=_0x1cd32e(0x254),Zt='SEND_CHANGESET_TIMEOUT',Qt=0x7d0,mt=_0x1cd32e(0x239),es=_0x1cd32e(0x1f4),gt=_0x1cd32e(0x43d),ts=0x7530,Ge='HEARTBEAT_TIMEOUT',ft=0x4e20,ss=0x4e20,It=_0x1cd32e(0x28d),is=0x3,pt=_0x1cd32e(0x4b1),ns=0x3e8,Ct='COLLAB_SUBMIT_CHANGESET_URL',rs=_0x1cd32e(0x14c),Et=_0x1cd32e(0x2a2),os=_0x1cd32e(0x530);var bt=(_0x13fb42=>(_0x13fb42[_0x13fb42[_0x1cd32e(0x2ad)]=0x0]='UNDEFINED',_0x13fb42[_0x13fb42['OK']=0x1]='OK',_0x13fb42[_0x13fb42[_0x1cd32e(0x133)]=0x2]=_0x1cd32e(0x133),_0x13fb42[_0x13fb42['PERMISSION_DENIED']=0x3]=_0x1cd32e(0x487),_0x13fb42[_0x13fb42['NOT_FOUND']=0x4]=_0x1cd32e(0x157),_0x13fb42[_0x13fb42[_0x1cd32e(0x1d4)]=0x5]=_0x1cd32e(0x1d4),_0x13fb42[_0x13fb42[_0x1cd32e(0x15f)]=0x6]=_0x1cd32e(0x15f),_0x13fb42[_0x13fb42[_0x1cd32e(0x393)]=0x7]='INVALID_ARGUMENT',_0x13fb42[_0x13fb42[_0x1cd32e(0x34b)]=0x8]='TOO_MANY_REQUESTS',_0x13fb42[_0x13fb42[_0x1cd32e(0x1d2)]=0x9]=_0x1cd32e(0x1d2),_0x13fb42[_0x13fb42[_0x1cd32e(0x3d0)]=0x1389]=_0x1cd32e(0x3d0),_0x13fb42[_0x13fb42[_0x1cd32e(0x30c)]=0x1771]=_0x1cd32e(0x30c),_0x13fb42[_0x13fb42['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x1cd32e(0x379),_0x13fb42[_0x13fb42[_0x1cd32e(0x129)]=0x1773]=_0x1cd32e(0x129),_0x13fb42[_0x13fb42[_0x1cd32e(0x2a0)]=0x1b59]=_0x1cd32e(0x2a0),_0x13fb42[_0x13fb42[_0x1cd32e(0x2cc)]=0x1b5a]=_0x1cd32e(0x2cc),_0x13fb42[_0x13fb42[_0x1cd32e(0x11d)]=0x1b5b]=_0x1cd32e(0x11d),_0x13fb42[_0x13fb42['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x1cd32e(0x245),_0x13fb42[_0x13fb42[_0x1cd32e(0x485)]=0x1b5d]=_0x1cd32e(0x485),_0x13fb42[_0x13fb42['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x13fb42[_0x13fb42[_0x1cd32e(0x189)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x13fb42[_0x13fb42[_0x1cd32e(0x3a1)]=0x232a]=_0x1cd32e(0x3a1),_0x13fb42[_0x13fb42[_0x1cd32e(0x2cd)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x13fb42[_0x13fb42[_0x1cd32e(0x2af)]=0x232c]=_0x1cd32e(0x2af),_0x13fb42[_0x13fb42['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1cd32e(0x1b8),_0x13fb42[_0x13fb42[_0x1cd32e(0x36d)]=0x2711]=_0x1cd32e(0x36d),_0x13fb42[_0x13fb42['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x1cd32e(0x1a7),_0x13fb42[_0x13fb42['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x1cd32e(0x44b),_0x13fb42[_0x13fb42['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x1cd32e(0x4a8),_0x13fb42[_0x13fb42['UNRECOGNIZED']=-0x1]=_0x1cd32e(0x48b),_0x13fb42))(bt||{}),$=(_0x50162b=>(_0x50162b[_0x50162b[_0x1cd32e(0x167)]=0x0]=_0x1cd32e(0x167),_0x50162b[_0x50162b[_0x1cd32e(0x3dc)]=0x1]=_0x1cd32e(0x3dc),_0x50162b[_0x50162b[_0x1cd32e(0x4aa)]=0x2]='UNIVER_SHEET',_0x50162b[_0x50162b[_0x1cd32e(0x1b5)]=0x3]=_0x1cd32e(0x1b5),_0x50162b[_0x50162b[_0x1cd32e(0x2da)]=0x4]='UNIVER_PROJECT',_0x50162b[_0x50162b['UNRECOGNIZED']=-0x1]=_0x1cd32e(0x48b),_0x50162b))($||{}),b=(_0x34bbce=>(_0x34bbce[_0x34bbce['UNKNOWN_CMD']=0x0]=_0x1cd32e(0x10b),_0x34bbce[_0x34bbce[_0x1cd32e(0x47b)]=0x1]=_0x1cd32e(0x47b),_0x34bbce[_0x34bbce[_0x1cd32e(0x244)]=0x2]=_0x1cd32e(0x244),_0x34bbce[_0x34bbce[_0x1cd32e(0x22e)]=0x3]=_0x1cd32e(0x22e),_0x34bbce[_0x34bbce[_0x1cd32e(0x26c)]=0x4]=_0x1cd32e(0x26c),_0x34bbce[_0x34bbce['HEARTBEAT']=0x5]='HEARTBEAT',_0x34bbce[_0x34bbce['RECV']=0x6]=_0x1cd32e(0x16e),_0x34bbce[_0x34bbce[_0x1cd32e(0x48b)]=-0x1]=_0x1cd32e(0x48b),_0x34bbce))(b||{}),Ye=(_0x4d236f=>(_0x4d236f[_0x4d236f[_0x1cd32e(0x4ef)]=0x0]='UNKNOWN_CODE',_0x4d236f[_0x4d236f['OK']=0x1]='OK',_0x4d236f[_0x4d236f['FAIL']=0x2]=_0x1cd32e(0x35c),_0x4d236f[_0x4d236f[_0x1cd32e(0x48b)]=-0x1]=_0x1cd32e(0x48b),_0x4d236f))(Ye||{}),Tt=(_0x9cc796=>(_0x9cc796[_0x9cc796[_0x1cd32e(0x46a)]=0x0]='Undefined',_0x9cc796[_0x9cc796[_0x1cd32e(0x52c)]=0x1]='HttpImport',_0x9cc796[_0x9cc796[_0x1cd32e(0x1a5)]=0x2]=_0x1cd32e(0x1a5),_0x9cc796[_0x9cc796[_0x1cd32e(0x13a)]=0x3]=_0x1cd32e(0x13a),_0x9cc796[_0x9cc796[_0x1cd32e(0x404)]=0x4]=_0x1cd32e(0x404),_0x9cc796[_0x9cc796[_0x1cd32e(0x48b)]=-0x1]=_0x1cd32e(0x48b),_0x9cc796))(Tt||{});const L='collaboration-client.config',as={};function Rt(_0x50e455){const _0x19f60f=_0x1cd32e;var _0xc457f1,_0x2b379f,_0x453d4a,_0xcb9a34,_0x3ab633;const _0x1c0580=_0x50e455[_0x19f60f(0x370)],_0xaf7f5b=JSON[_0x19f60f(0x146)](_0x1c0580);switch(_0xaf7f5b[_0x19f60f(0x1e6)]){case b[_0x19f60f(0x232)]:case b[_0x19f60f(0x47b)]:{const _0x248988=_0xaf7f5b['infoRsp'];return{..._0xaf7f5b,'data':_0x248988,'cmd':_0xaf7f5b['cmd']};}case b[_0x19f60f(0x244)]:{const _0x1dac54=_0xaf7f5b['joinRsp'];return{..._0xaf7f5b,'data':_0x1dac54,'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};}case b[_0x19f60f(0x16e)]:{const _0x3f23df=_0xaf7f5b[_0x19f60f(0x15a)];switch(_0x3f23df[_0x19f60f(0x137)]){case _[_0x19f60f(0x3e7)]['PERMISSION_REJ']:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':(_0xc457f1=_0x3f23df['permissionRejEvent'])==null?void 0x0:_0xc457f1['cs']},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _[_0x19f60f(0x3e7)][_0x19f60f(0x14f)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':(_0x2b379f=_0x3f23df[_0x19f60f(0x249)])==null?void 0x0:_0x2b379f['cs']},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _[_0x19f60f(0x3e7)]['NEW_CHANGESETS']:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':(_0x453d4a=_0x3f23df[_0x19f60f(0x35d)])==null?void 0x0:_0x453d4a['cs']},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _[_0x19f60f(0x3e7)][_0x19f60f(0x159)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':(_0xcb9a34=_0x3f23df['csRejEvent'])==null?void 0x0:_0xcb9a34['cs']},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _[_0x19f60f(0x3e7)]['CHANGESET_SHOULD_RETRY']:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':(_0x3ab633=_0x3f23df[_0x19f60f(0x323)])==null?void 0x0:_0x3ab633['cs']},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _[_0x19f60f(0x3e7)][_0x19f60f(0x139)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':_0x3f23df['updateCursorEvent']},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _['CollaborationEvent'][_0x19f60f(0x1ab)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':_0x3f23df[_0x19f60f(0x19e)]},'cmd':_0xaf7f5b['cmd']};case _[_0x19f60f(0x3e7)][_0x19f60f(0x37f)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':_0x3f23df[_0x19f60f(0x521)]},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _['CollaborationEvent'][_0x19f60f(0x4c3)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':_0x3f23df[_0x19f60f(0x20c)]},'cmd':_0xaf7f5b['cmd']};case _[_0x19f60f(0x3e7)][_0x19f60f(0x4e0)]:case _['CollaborationEvent'][_0x19f60f(0x536)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':_0x3f23df['liveShareOperation']},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _[_0x19f60f(0x3e7)][_0x19f60f(0x4f4)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':_0x3f23df['liveShareNewHost']},'cmd':_0xaf7f5b['cmd']};case _['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0xaf7f5b,'data':_0x3f23df,'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _[_0x19f60f(0x3e7)][_0x19f60f(0x3c5)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':_0x3f23df[_0x19f60f(0x334)]},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _[_0x19f60f(0x3e7)][_0x19f60f(0x438)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':_0x3f23df[_0x19f60f(0x51a)]},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};case _[_0x19f60f(0x3e7)][_0x19f60f(0x212)]:return{..._0xaf7f5b,'data':{..._0x3f23df,'data':_0x3f23df[_0x19f60f(0x37e)]},'cmd':_0xaf7f5b[_0x19f60f(0x1e6)]};default:return _0xaf7f5b;}}default:return _0xaf7f5b;}}function Ot(_0x2818ac){const _0x4909d3=_0x1cd32e;switch(_0x2818ac['cmd']){case b[_0x4909d3(0x232)]:case b[_0x4909d3(0x47b)]:return JSON[_0x4909d3(0x2d6)]({'cmd':_0x2818ac[_0x4909d3(0x1e6)],'routeKey':_0x2818ac[_0x4909d3(0x365)]});case b['INGEST']:{let _0x13c789;switch(_0x2818ac[_0x4909d3(0x370)]['eventID']){case _[_0x4909d3(0x3e7)][_0x4909d3(0x139)]:{_0x13c789={'eventID':_[_0x4909d3(0x3e7)][_0x4909d3(0x139)],'updateCursorEvent':_0x2818ac['data'][_0x4909d3(0x370)]};break;}case _[_0x4909d3(0x3e7)]['USERS_LEAVE']:{_0x13c789={'eventID':_[_0x4909d3(0x3e7)]['USERS_LEAVE'],'leaveEvent':_0x2818ac[_0x4909d3(0x370)][_0x4909d3(0x370)]};break;}case _['CollaborationEvent'][_0x4909d3(0x1ab)]:{_0x13c789={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x2818ac[_0x4909d3(0x370)][_0x4909d3(0x370)]};break;}case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x13c789={'eventID':_[_0x4909d3(0x3e7)][_0x4909d3(0x4c3)],'liveShareNewHost':_0x2818ac[_0x4909d3(0x370)][_0x4909d3(0x370)]};break;}case _[_0x4909d3(0x3e7)][_0x4909d3(0x536)]:{_0x13c789={'eventID':_[_0x4909d3(0x3e7)][_0x4909d3(0x536)],'liveShareOperation':_0x2818ac[_0x4909d3(0x370)]['data']};break;}case _[_0x4909d3(0x3e7)]['LIVESHARE_TERMINATE']:{_0x13c789={'eventID':_[_0x4909d3(0x3e7)][_0x4909d3(0x4f4)],'liveShareTerminate':_0x2818ac[_0x4909d3(0x370)]['data']};break;}case _[_0x4909d3(0x3e7)][_0x4909d3(0x406)]:{_0x13c789={'eventID':_['CollaborationEvent'][_0x4909d3(0x406)],'liveShareRequestHost':_0x2818ac[_0x4909d3(0x370)][_0x4909d3(0x370)]};break;}case _[_0x4909d3(0x3e7)][_0x4909d3(0x4e0)]:{_0x13c789={'eventID':_[_0x4909d3(0x3e7)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x13c789={'eventID':_0x2818ac['data']['eventID']};}return JSON[_0x4909d3(0x2d6)]({'cmd':_0x2818ac[_0x4909d3(0x1e6)],'routeKey':_0x2818ac[_0x4909d3(0x365)],'collaMsg':_0x13c789});}case b[_0x4909d3(0x244)]:return JSON[_0x4909d3(0x2d6)]({'cmd':_0x2818ac[_0x4909d3(0x1e6)],'routeKey':_0x2818ac[_0x4909d3(0x365)],'joinReq':_0x2818ac[_0x4909d3(0x370)]});case b[_0x4909d3(0x22e)]:return JSON[_0x4909d3(0x2d6)]({'cmd':_0x2818ac['cmd'],'routeKey':_0x2818ac[_0x4909d3(0x365)],'leaveReq':_0x2818ac[_0x4909d3(0x370)]});default:throw new Error(_0x4909d3(0x501));}}var cs=Object[_0x1cd32e(0x528)],ls=Object[_0x1cd32e(0x41c)],hs=(_0x358fb4,_0x1712a0,_0x4da086,_0xbfd00d)=>{const _0x1ccb92=_0x1cd32e;for(var _0x53d000=_0xbfd00d>0x1?void 0x0:_0xbfd00d?ls(_0x1712a0,_0x4da086):_0x1712a0,_0x3901cb=_0x358fb4[_0x1ccb92(0x23c)]-0x1,_0x558839;_0x3901cb>=0x0;_0x3901cb--)(_0x558839=_0x358fb4[_0x3901cb])&&(_0x53d000=(_0xbfd00d?_0x558839(_0x1712a0,_0x4da086,_0x53d000):_0x558839(_0x53d000))||_0x53d000);return _0xbfd00d&&_0x53d000&&cs(_0x1712a0,_0x4da086,_0x53d000),_0x53d000;},ae=(_0x5913ea,_0x39f829)=>(_0x463553,_0x193f0f)=>_0x39f829(_0x463553,_0x193f0f,_0x5913ea);const Ke=a[_0x1cd32e(0x45e)]('univer-pro.collaboration-client-socket-service');function _s(_0x5ee36e,_0x4684f2,_0x1ce7db){const _0x482727=_0x1cd32e;return _0x5ee36e+'/'+_0x4684f2+'/unit/'+_0x1ce7db+_0x482727(0x21d);}exports[_0x1cd32e(0x39c)]=class extends a[_0x1cd32e(0x32f)]{constructor(_0x32097f,_0x269eb5,_0x58c1e2,_0x373c64,_0x5a1df0){const _0x56fa4d=_0x1cd32e;super(),this[_0x56fa4d(0x2b4)]=_0x32097f,this[_0x56fa4d(0x3c8)]=_0x269eb5,this['_configService']=_0x58c1e2,this['_logService']=_0x373c64,this[_0x56fa4d(0x116)]=_0x5a1df0;}['createSocket'](_0x5846d4){const _0x328ebd=_0x1cd32e,_0x5a90ee=this[_0x328ebd(0x3c8)][_0x328ebd(0x332)](_0x5846d4);if(!_0x5a90ee)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1655eb=new a['DisposableCollection'](),_0xd8b027=new v[(_0x328ebd(0x153))]();_0x1655eb[_0x328ebd(0x33a)](_0x5a90ee[_0x328ebd(0x526)][_0x328ebd(0x22b)](_0x377ef6=>_0xd8b027[_0x328ebd(0x203)](_0x377ef6))),_0x1655eb['add'](a[_0x328ebd(0x381)](()=>_0xd8b027['complete']()));const _0x1f6d81=new v[(_0x328ebd(0x153))]();_0x1655eb[_0x328ebd(0x33a)](_0x5a90ee['error$'][_0x328ebd(0x22b)](_0x4a2dca=>_0x1f6d81[_0x328ebd(0x203)](_0x4a2dca))),_0x1655eb[_0x328ebd(0x33a)](a[_0x328ebd(0x381)](()=>_0x1f6d81[_0x328ebd(0x321)]()));const _0x5d3929=new v[(_0x328ebd(0x153))]();_0x1655eb[_0x328ebd(0x33a)](_0x5a90ee['message$'][_0x328ebd(0x22b)](_0x3452a3=>{const _0x1ae6b1=_0x328ebd,_0x51a7f4=Rt(_0x3452a3);_0x5d3929[_0x1ae6b1(0x203)](_0x51a7f4);})),_0x1655eb['add'](a[_0x328ebd(0x381)](()=>_0x5d3929[_0x328ebd(0x321)]()));let _0x13ad86;const _0x1e46e3=()=>{const _0x5d9a90=_0x328ebd;_0x1f6d81[_0x5d9a90(0x203)](new Event(_0x5d9a90(0x161))),_0xd8b027[_0x5d9a90(0x203)](new CloseEvent('connection\x20error')),_0x13ad86[_0x5d9a90(0x1d0)]();};return _0x13ad86={'memberID':'','close$':_0xd8b027['asObservable'](),'error$':_0x1f6d81['asObservable'](),'open$':_0x5a90ee['open$'],'message$':_0x5d3929[_0x328ebd(0x109)](),'send':_0x5512c8=>{const _0x1395da=_0x328ebd;if(_0x5512c8[_0x1395da(0x1e6)]===b[_0x1395da(0x26c)]){if(_0x5512c8[_0x1395da(0x370)][_0x1395da(0x137)]===_[_0x1395da(0x3e7)][_0x1395da(0x402)]){this[_0x1395da(0x33c)](_0x13ad86,_0x5512c8[_0x1395da(0x370)])[_0x1395da(0x1e3)](_0x1a42b4=>{const _0x420dbd=_0x1395da;this[_0x420dbd(0x252)]['error'](_0x1a42b4),_0x1e46e3();});return;}if(_0x5512c8['data']['eventID']===_[_0x1395da(0x3e7)]['FETCH_MISSING']){const _0x57f73c=_0x5512c8[_0x1395da(0x370)];this[_0x1395da(0x3bb)](_0x57f73c)[_0x1395da(0x205)](_0x2d0491=>{const _0x26b621=_0x1395da;_0x5d3929['next']({'cmd':b[_0x26b621(0x16e)],'code':Ye['OK'],'routeKey':_0x57f73c['data'][_0x26b621(0x3f7)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x26b621(0x364)],'data':{'changesets':_0x2d0491}}});})[_0x1395da(0x1e3)](_0x4dea18=>{const _0x45a5b1=_0x1395da;this[_0x45a5b1(0x252)][_0x45a5b1(0x275)](_0x4dea18),_0x1e46e3();});return;}}_0x5a90ee['send'](Ot(_0x5512c8));},'close':()=>{const _0x4b7cf7=_0x328ebd;_0x5a90ee[_0x4b7cf7(0x1d0)](),_0x1655eb[_0x4b7cf7(0x477)]();}},_0x13ad86;}async['_submitChangeset'](_0x4c0c11,_0x553f11){const _0x4391e2=_0x1cd32e;var _0x2bbc7a,_0x8b34d;const {unitType:_0x319882,unitID:_0x53aebe,changeset:_0x1e266b}=_0x553f11[_0x4391e2(0x370)],_0x1e8378={'unitID':_0x53aebe,'memberID':_0x4c0c11[_0x4391e2(0x240)],'type':_0x319882,'changeset':_['parseChangesetToProtocol'](_0x1e266b)},_0x1a6650=this[_0x4391e2(0x29d)][_0x4391e2(0x3da)](Ct),_0x5c48ce=this[_0x4391e2(0x29d)][_0x4391e2(0x3da)](L),_0x17c01c=_s((_0x8b34d=(_0x2bbc7a=_0x5c48ce==null?void 0x0:_0x5c48ce[_0x4391e2(0x424)])!=null?_0x2bbc7a:_0x1a6650)!=null?_0x8b34d:rs,_0x319882,_0x53aebe);try{await this[_0x4391e2(0x2b4)]['post'](_0x17c01c,{'body':_0x1e8378});}catch(_0x186e22){throw this[_0x4391e2(0x252)][_0x4391e2(0x275)](_0x4391e2(0x211),_0x4391e2(0x130)),_0x186e22;}}async[_0x1cd32e(0x3bb)](_0x29d22b){const _0x5a1c30=_0x1cd32e,{unitID:_0x252a7f,from:_0xb45f64,to:_0x15b9d5,unitType:_0x42670b}=_0x29d22b[_0x5a1c30(0x370)];return(await this[_0x5a1c30(0x116)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x252a7f,'type':_0x42670b,'from':_0xb45f64,'to':_0x15b9d5}))[_0x5a1c30(0x188)];}},exports[_0x1cd32e(0x39c)]=hs([ae(0x0,a[_0x1cd32e(0x151)](w[_0x1cd32e(0x32b)])),ae(0x1,a[_0x1cd32e(0x151)](w[_0x1cd32e(0x3c9)])),ae(0x2,a[_0x1cd32e(0x4d2)]),ae(0x3,a[_0x1cd32e(0x38c)]),ae(0x4,_[_0x1cd32e(0x174)])],exports[_0x1cd32e(0x39c)]);const us=_0x1cd32e(0x4bb);function ds(_0xa41296){const _0x68f340=_0x1cd32e;return JSON[_0x68f340(0x2d6)](_0xa41296)[_0x68f340(0x23c)];}class qe{constructor(){const _0x38b471=_0x1cd32e;u(this,_0x38b471(0x36a),new v[(_0x38b471(0x153))]()),u(this,_0x38b471(0x444),this[_0x38b471(0x36a)]['asObservable']());}[_0x1cd32e(0x2b0)](_0x46d21b){const _0xf1296a=_0x1cd32e;this[_0xf1296a(0x36a)][_0xf1296a(0x203)](_0x46d21b);}}var Ss=Object[_0x1cd32e(0x528)],vs=Object[_0x1cd32e(0x41c)],ms=(_0x43ef4f,_0x347aab,_0x38643e,_0x540c08)=>{const _0x1ed980=_0x1cd32e;for(var _0x261ff9=_0x540c08>0x1?void 0x0:_0x540c08?vs(_0x347aab,_0x38643e):_0x347aab,_0x21f1ab=_0x43ef4f[_0x1ed980(0x23c)]-0x1,_0x231df5;_0x21f1ab>=0x0;_0x21f1ab--)(_0x231df5=_0x43ef4f[_0x21f1ab])&&(_0x261ff9=(_0x540c08?_0x231df5(_0x347aab,_0x38643e,_0x261ff9):_0x231df5(_0x261ff9))||_0x261ff9);return _0x540c08&&_0x261ff9&&Ss(_0x347aab,_0x38643e,_0x261ff9),_0x261ff9;},tt=(_0x591b8f,_0x4a759a)=>(_0x14f985,_0x5e87ed)=>_0x4a759a(_0x14f985,_0x5e87ed,_0x591b8f);let X=class extends a[_0x1cd32e(0x32f)]{constructor(_0x45a143,_0x181da1){const _0x256cc4=_0x1cd32e;super(),u(this,_0x256cc4(0x3f9),new Map()),(this[_0x256cc4(0x4bd)]=_0x45a143,this[_0x256cc4(0x49d)]=_0x181da1,this['disposeWithMe'](a['toDisposable'](v[_0x256cc4(0x4da)](this[_0x256cc4(0x4bd)][_0x256cc4(0x197)](a[_0x256cc4(0x309)][_0x256cc4(0x4aa)])[_0x256cc4(0x430)](E[_0x256cc4(0x479)](_0x4946b4=>_0x4946b4['getUnitId']())),this[_0x256cc4(0x4bd)]['getTypeOfUnitDisposed$'](a[_0x256cc4(0x309)]['UNIVER_DOC'])['pipe'](E['map'](_0x57b06a=>_0x57b06a[_0x256cc4(0x1fe)]())),this[_0x256cc4(0x4bd)][_0x256cc4(0x197)](a[_0x256cc4(0x309)][_0x256cc4(0x1b5)])[_0x256cc4(0x430)](E[_0x256cc4(0x479)](_0x626b2c=>_0x626b2c[_0x256cc4(0x1fe)]())))['subscribe'](_0x2763a2=>this[_0x256cc4(0x36f)](_0x2763a2)))));}[_0x1cd32e(0x496)](_0xcd03c0){const _0x11cf6f=_0x1cd32e;this[_0x11cf6f(0x49d)][_0x11cf6f(0x496)](_0xcd03c0);}[_0x1cd32e(0x2ed)](){return this['_userManagerService']['getCurrentUser']();}[_0x1cd32e(0x199)](_0x4f4d51,_0x5b1415){const _0x2d1740=_0x1cd32e;let _0xbec37d=this['_roomMembers'][_0x2d1740(0x2bd)](_0x4f4d51);_0xbec37d||(_0xbec37d=new gs(),this[_0x2d1740(0x3f9)][_0x2d1740(0x10c)](_0x4f4d51,_0xbec37d)),_0xbec37d[_0x2d1740(0x199)](_0x5b1415);}[_0x1cd32e(0x218)](_0x2d5350,_0x53d77a){const _0x44c13b=_0x1cd32e,_0x39a153=this[_0x44c13b(0x3f9)]['get'](_0x2d5350);_0x39a153&&_0x39a153[_0x44c13b(0x218)](_0x53d77a);}[_0x1cd32e(0x335)](_0x104bc2){const _0x56daf1=_0x1cd32e;return this[_0x56daf1(0x3f9)]['get'](_0x104bc2);}['getMember'](_0x3cad72,_0x1f642d){const _0x18d6e9=_0x1cd32e,_0x20e75a=this['_roomMembers'][_0x18d6e9(0x2bd)](_0x3cad72);if(_0x20e75a)return _0x20e75a[_0x18d6e9(0x16f)](_0x1f642d);}[_0x1cd32e(0x36f)](_0x4ebf4d){const _0x4e0264=_0x1cd32e,_0x426919=this['_roomMembers'][_0x4e0264(0x2bd)](_0x4ebf4d);_0x426919&&(_0x426919['dispose'](),this[_0x4e0264(0x3f9)]['delete'](_0x4ebf4d));}[_0x1cd32e(0x477)](){const _0x3b94c7=_0x1cd32e;this[_0x3b94c7(0x3f9)][_0x3b94c7(0x12a)](_0x4b749b=>_0x4b749b[_0x3b94c7(0x477)]()),this[_0x3b94c7(0x3f9)][_0x3b94c7(0x15d)]();}};X=ms([tt(0x0,a['IUniverInstanceService']),tt(0x1,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x3ee)]))],X);class gs extends a[_0x1cd32e(0x32f)]{constructor(){super(...arguments),u(this,'_members',new Map());}['dispose'](){const _0x65b989=_0x1cd32e;this[_0x65b989(0x1be)][_0x65b989(0x15d)]();}['updateMember'](_0x51fe74){const _0x187484=_0x1cd32e;this[_0x187484(0x1be)][_0x187484(0x10c)](_0x51fe74[_0x187484(0x240)],_0x51fe74);}[_0x1cd32e(0x218)](_0x1a4e15){const _0x206612=_0x1cd32e;this[_0x206612(0x1be)][_0x206612(0x27e)](_0x1a4e15);}['getMember'](_0x5444c4){const _0x3d6be8=_0x1cd32e;return this[_0x3d6be8(0x1be)][_0x3d6be8(0x2bd)](_0x5444c4);}}var fs=Object['defineProperty'],Is=Object[_0x1cd32e(0x41c)],ps=(_0x54682c,_0x20787d,_0x3dcb7b,_0x49f887)=>{const _0x5f0648=_0x1cd32e;for(var _0x249674=_0x49f887>0x1?void 0x0:_0x49f887?Is(_0x20787d,_0x3dcb7b):_0x20787d,_0x2d81b4=_0x54682c[_0x5f0648(0x23c)]-0x1,_0x1a2aa4;_0x2d81b4>=0x0;_0x2d81b4--)(_0x1a2aa4=_0x54682c[_0x2d81b4])&&(_0x249674=(_0x49f887?_0x1a2aa4(_0x20787d,_0x3dcb7b,_0x249674):_0x1a2aa4(_0x249674))||_0x249674);return _0x49f887&&_0x249674&&fs(_0x20787d,_0x3dcb7b,_0x249674),_0x249674;},V=(_0x4bfb8f,_0x43f58c)=>(_0xfdb765,_0x333c63)=>_0x43f58c(_0xfdb765,_0x333c63,_0x4bfb8f),H=(_0x154157=>(_0x154157[_0x154157['IDLE']=0x0]=_0x1cd32e(0x31c),_0x154157[_0x154157[_0x1cd32e(0x2e9)]=0x1]=_0x1cd32e(0x2e9),_0x154157[_0x154157[_0x1cd32e(0x3c2)]=0x2]=_0x1cd32e(0x3c2),_0x154157[_0x154157[_0x1cd32e(0x345)]=0x3]=_0x1cd32e(0x345),_0x154157))(H||{});exports[_0x1cd32e(0x508)]=class extends a[_0x1cd32e(0x29e)]{constructor(_0x1776ff,_0x26565f,_0x25c0cc,_0x1e55ed,_0x1507fe,_0x57ba38,_0x1cac3d,_0x415b6e,_0x2410e8,_0x2bb8e2){const _0x2fad59=_0x1cd32e;super(),u(this,_0x2fad59(0x2b9),new v[(_0x2fad59(0x518))](0x0)),u(this,_0x2fad59(0x3f8),this[_0x2fad59(0x2b9)]['asObservable']()),u(this,_0x2fad59(0x310),new v[(_0x2fad59(0x153))]()),u(this,_0x2fad59(0x495),this[_0x2fad59(0x310)]['asObservable']()),u(this,_0x2fad59(0x28a)),u(this,'_socketMessageSubscription'),u(this,_0x2fad59(0x17b)),u(this,_0x2fad59(0x2d7),!0x1),u(this,_0x2fad59(0x290),null),(this[_0x2fad59(0x18c)]=_0x1776ff,this['_logService']=_0x25c0cc,this['_beforeCloseService']=_0x1e55ed,this['_messageService']=_0x1507fe,this[_0x2fad59(0x29d)]=_0x57ba38,this['_localeService']=_0x1cac3d,this[_0x2fad59(0x329)]=_0x415b6e,this[_0x2fad59(0x433)]=_0x2410e8,this[_0x2fad59(0x166)]=_0x2bb8e2,this[_0x2fad59(0x2d7)]=!!this[_0x2fad59(0x166)],_0x26565f[_0x2fad59(0x430)](v['takeUntil'](this[_0x2fad59(0x4eb)]))[_0x2fad59(0x22b)](_0xeb5c20=>{const _0x26bb2f=_0x2fad59;var _0x5a2162;typeof _0xeb5c20>'u'||(this[_0x26bb2f(0x28a)]=_0xeb5c20,_0xeb5c20?(this[_0x26bb2f(0x397)](_0xeb5c20),this['_socketMessageSubscription']=_0xeb5c20[_0x26bb2f(0x3b1)][_0x26bb2f(0x22b)](_0x19a147=>{const _0x48a841=_0x26bb2f;_0x19a147[_0x48a841(0x365)]===this[_0x48a841(0x18c)]&&this[_0x48a841(0x361)](_0x19a147);})):(this[_0x26bb2f(0x3ae)](),this[_0x26bb2f(0x2b9)]['next'](0x2),(_0x5a2162=this['_socketMessageSubscription'])==null||_0x5a2162['unsubscribe'](),this[_0x26bb2f(0x2d0)]=null));}),this[_0x2fad59(0x3d2)](this['_beforeCloseService'][_0x2fad59(0x2dd)](()=>{const _0x162f20=_0x2fad59;var _0xb8f811;(_0xb8f811=this[_0x162f20(0x28a)])==null||_0xb8f811[_0x162f20(0x3d5)]({'cmd':b[_0x162f20(0x22e)],'data':{'roomID':this['_unitID']}});})));}get[_0x1cd32e(0x2e5)](){const _0x36f535=_0x1cd32e;return this[_0x36f535(0x2b9)]['getValue']();}['getMemberID'](){const _0xc1d568=_0x1cd32e;var _0x34e2e4,_0x5f30bd;return(_0x5f30bd=(_0x34e2e4=this[_0xc1d568(0x28a)])==null?void 0x0:_0x34e2e4[_0xc1d568(0x240)])!=null?_0x5f30bd:null;}[_0x1cd32e(0x477)](){const _0x2d7a63=_0x1cd32e;super[_0x2d7a63(0x477)](),this[_0x2d7a63(0x4eb)][_0x2d7a63(0x203)](),this['dispose$'][_0x2d7a63(0x321)]();}[_0x1cd32e(0x1d0)](){const _0xdaf875=_0x1cd32e;var _0xed4468,_0x477a3d;this[_0xdaf875(0x3ae)](),(_0xed4468=this[_0xdaf875(0x28a)])==null||_0xed4468[_0xdaf875(0x3d5)]({'cmd':b[_0xdaf875(0x22e)],'data':{'roomID':this[_0xdaf875(0x18c)]}}),(_0x477a3d=this[_0xdaf875(0x28a)])==null||_0x477a3d[_0xdaf875(0x1d0)](),this['_event$'][_0xdaf875(0x321)](),this[_0xdaf875(0x2b9)][_0xdaf875(0x321)](),this[_0xdaf875(0x477)]();}[_0x1cd32e(0x361)](_0x1baf1e){const _0x148e6f=_0x1cd32e;_0x1baf1e[_0x148e6f(0x1e6)]===b['JOIN']?this[_0x148e6f(0x210)](_0x1baf1e):_0x1baf1e['cmd']===b['RECV']&&this[_0x148e6f(0x2f6)](_0x1baf1e);}[_0x1cd32e(0x397)](_0x1cbc9a){const _0x31e556=_0x1cd32e;this['_sessionStatus$'][_0x31e556(0x203)](0x1),_0x1cbc9a['send']({'cmd':b['JOIN'],'routeKey':this[_0x31e556(0x18c)],'routeType':'','data':{'rooms':[{'roomID':this[_0x31e556(0x18c)]}]}});}[_0x1cd32e(0x210)](_0x4c19c5){const _0x54330c=_0x1cd32e;var _0x172337;if(_0x4c19c5[_0x54330c(0x1ac)]===Ye[_0x54330c(0x35c)]){this[_0x54330c(0x278)][_0x54330c(0x3df)]({'type':q[_0x54330c(0x28f)][_0x54330c(0x27c)],'content':this[_0x54330c(0x3fd)]['t'](_0x54330c(0x10e))}),this['_sessionStatus$'][_0x54330c(0x203)](0x2);return;}this['_sessionStatus$'][_0x54330c(0x203)](0x3);const _0x39bc93=(_0x172337=_0x4c19c5[_0x54330c(0x370)]['roomInfos'][this[_0x54330c(0x18c)]])==null?void 0x0:_0x172337['members'];_0x39bc93&&_0x39bc93[_0x54330c(0x12a)](_0x589c43=>this[_0x54330c(0x329)][_0x54330c(0x199)](this[_0x54330c(0x18c)],_0x589c43));}['_onRecvEvent'](_0x140315){const _0x1a4948=_0x1cd32e;try{const _0xe132d2=_0x140315[_0x1a4948(0x370)];switch(_0xe132d2['eventID']){case _[_0x1a4948(0x3e7)]['USERS_ENTER']:this['_onUserJoin'](_0xe132d2),this[_0x1a4948(0x310)][_0x1a4948(0x203)](_0xe132d2);break;case _['CollaborationEvent'][_0x1a4948(0x37f)]:this[_0x1a4948(0x3ea)](_0xe132d2),this['_event$']['next'](_0xe132d2);break;case _['CollaborationEvent'][_0x1a4948(0x14f)]:case _[_0x1a4948(0x3e7)][_0x1a4948(0x511)]:this[_0x1a4948(0x367)](),this[_0x1a4948(0x1b7)](),this[_0x1a4948(0x310)]['next'](_0xe132d2);break;case _[_0x1a4948(0x3e7)][_0x1a4948(0x21b)]:this['_logService'][_0x1a4948(0x275)](_0x1a4948(0x4df)+JSON[_0x1a4948(0x2d6)](_0xe132d2)),this['_event$'][_0x1a4948(0x203)](_0xe132d2);break;case _[_0x1a4948(0x3e7)][_0x1a4948(0x3c5)]:this['_commentService'][_0x1a4948(0x2b0)](_0xe132d2['data']),this[_0x1a4948(0x310)][_0x1a4948(0x203)](_0xe132d2);break;default:this[_0x1a4948(0x310)][_0x1a4948(0x203)](_0xe132d2);}}catch(_0x4609f6){this[_0x1a4948(0x252)][_0x1a4948(0x275)](_0x4609f6,_0x140315);}}['_onUserJoin'](_0x3fe228){const _0x422930=_0x1cd32e;this[_0x422930(0x329)][_0x422930(0x199)](this['_unitID'],_0x3fe228[_0x422930(0x370)]);}[_0x1cd32e(0x3ea)](_0x24ba30){const _0x46098c=_0x1cd32e;this[_0x46098c(0x329)][_0x46098c(0x218)](this[_0x46098c(0x18c)],_0x24ba30[_0x46098c(0x370)][_0x46098c(0x240)]);}async[_0x1cd32e(0x3d5)](_0x3dab7a,_0x5770a7){const _0x3ad090=_0x1cd32e;if(this[_0x3ad090(0x2e5)]!==0x3||!this[_0x3ad090(0x28a)])throw new Error(_0x3ad090(0x1cb));try{_0x3dab7a[_0x3ad090(0x137)]===_['CollaborationEvent']['SUBMIT_CHANGESET']&&(this[_0x3ad090(0x25b)](),this[_0x3ad090(0x4bf)](_0x3dab7a)),this[_0x3ad090(0x28a)]['send']({'cmd':b['INGEST'],'routeKey':_0x5770a7,'routeType':'','data':_0x3dab7a});}catch(_0x64c027){this[_0x3ad090(0x252)][_0x3ad090(0x275)](_0x64c027);}}[_0x1cd32e(0x25b)](){const _0x9f6112=_0x1cd32e;var _0x120cc5;this[_0x9f6112(0x17b)]=window[_0x9f6112(0x3b3)](()=>{const _0x47e956=_0x9f6112;this[_0x47e956(0x17b)]=null,this[_0x47e956(0x278)]['show']({'type':q[_0x47e956(0x28f)][_0x47e956(0x376)],'content':this['_localeService']['t'](_0x47e956(0x265))});},(_0x120cc5=this[_0x9f6112(0x29d)][_0x9f6112(0x3da)](Ge))!=null?_0x120cc5:ft);}[_0x1cd32e(0x1b7)](){const _0x42bec4=_0x1cd32e;this[_0x42bec4(0x17b)]&&(clearTimeout(this[_0x42bec4(0x17b)]),this[_0x42bec4(0x17b)]=null);}[_0x1cd32e(0x4bf)](_0x29e2fa){const _0x49760a=_0x1cd32e;if(!this[_0x49760a(0x2d7)])return;const {data:_0x23c16a}=_0x29e2fa,{unitID:_0x5ee223,changeset:_0x1b1df}=_0x23c16a,{mutations:_0x5c2fc8,type:_0x33dc31}=_0x1b1df;this[_0x49760a(0x290)]={'unitId':_0x5ee223,'type':_0x33dc31,'startTime':performance[_0x49760a(0x3c0)](),'stopTime':0x0,'duration':0x0,'size':ds(_0x5c2fc8)};}[_0x1cd32e(0x367)](){const _0x1f198c=_0x1cd32e;if(this[_0x1f198c(0x2d7)]){if(!this[_0x1f198c(0x290)]){this['_logService'][_0x1f198c(0x275)](_0x1f198c(0x211),_0x1f198c(0x443));return;}this[_0x1f198c(0x290)][_0x1f198c(0x1b9)]=performance[_0x1f198c(0x3c0)](),this[_0x1f198c(0x290)][_0x1f198c(0x4f6)]=this[_0x1f198c(0x290)][_0x1f198c(0x1b9)]-this[_0x1f198c(0x290)]['startTime'],this['_telemetryService'][_0x1f198c(0x168)](us,this['_telemetryInfo']),this[_0x1f198c(0x290)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x409167=_0x1cd32e;this[_0x409167(0x290)]=null;}},exports[_0x1cd32e(0x508)]=ps([V(0x2,a[_0x1cd32e(0x38c)]),V(0x3,A[_0x1cd32e(0x418)]),V(0x4,A[_0x1cd32e(0x53e)]),V(0x5,a[_0x1cd32e(0x4d2)]),V(0x6,a[_0x1cd32e(0x151)](a['LocaleService'])),V(0x7,a[_0x1cd32e(0x151)](X)),V(0x8,a[_0x1cd32e(0x151)](qe)),V(0x9,a[_0x1cd32e(0x1a9)](qt['ITelemetryService']))],exports[_0x1cd32e(0x508)]);var Cs=Object['defineProperty'],Es=Object[_0x1cd32e(0x41c)],bs=(_0x1eb5c4,_0xcc013,_0x15a3ee,_0x348b8e)=>{for(var _0x4d0ddf=_0x348b8e>0x1?void 0x0:_0x348b8e?Es(_0xcc013,_0x15a3ee):_0xcc013,_0x3ce5cd=_0x1eb5c4['length']-0x1,_0xd65fd5;_0x3ce5cd>=0x0;_0x3ce5cd--)(_0xd65fd5=_0x1eb5c4[_0x3ce5cd])&&(_0x4d0ddf=(_0x348b8e?_0xd65fd5(_0xcc013,_0x15a3ee,_0x4d0ddf):_0xd65fd5(_0x4d0ddf))||_0x4d0ddf);return _0x348b8e&&_0x4d0ddf&&Cs(_0xcc013,_0x15a3ee,_0x4d0ddf),_0x4d0ddf;},Z=(_0x3e6010,_0x58624b)=>(_0x439214,_0x4ad3a4)=>_0x58624b(_0x439214,_0x4ad3a4,_0x3e6010);exports[_0x1cd32e(0x169)]=class extends a['Disposable']{constructor(_0x460395,_0x50029e,_0x20fb29,_0xdffb7,_0x13b7dd,_0x100b35){const _0x42dd67=_0x1cd32e;super(),u(this,_0x42dd67(0x4e3),new v['BehaviorSubject'](void 0x0)),u(this,'socket$',this[_0x42dd67(0x4e3)][_0x42dd67(0x109)]()),u(this,_0x42dd67(0x32e),null),u(this,_0x42dd67(0x3a5),new Map()),u(this,_0x42dd67(0x2f5),new v[(_0x42dd67(0x518))](H[_0x42dd67(0x31c)])),u(this,'status$',this[_0x42dd67(0x2f5)][_0x42dd67(0x109)]()),u(this,_0x42dd67(0x3b2),!0x1),u(this,_0x42dd67(0x53a)),u(this,_0x42dd67(0x385),0x0),u(this,'_sendHeartbeatTimer'),u(this,_0x42dd67(0x287)),(this['_injector']=_0x460395,this['_localeService']=_0x50029e,this[_0x42dd67(0x278)]=_0x20fb29,this[_0x42dd67(0x252)]=_0xdffb7,this[_0x42dd67(0x29d)]=_0x13b7dd,this[_0x42dd67(0x15e)]=_0x100b35,this[_0x42dd67(0x380)]());}get[_0x1cd32e(0x28a)](){const _0x3ef3f3=_0x1cd32e;return this['_socket$'][_0x3ef3f3(0x119)]();}[_0x1cd32e(0x380)](){const _0x4002fd=_0x1cd32e;this[_0x4002fd(0x416)](),this[_0x4002fd(0x35e)]();}['dispose'](){const _0x1ccd03=_0x1cd32e;super['dispose'](),this[_0x1ccd03(0x3a5)][_0x1ccd03(0x12a)](_0x1a8918=>_0x1a8918['dispose']()),this['_sessions'][_0x1ccd03(0x15d)](),this[_0x1ccd03(0x2f5)]['complete']();}async[_0x1cd32e(0x196)](_0x2b3fbc){const _0x1ee827=_0x1cd32e;if(this[_0x1ee827(0x3a5)][_0x1ee827(0x46c)](_0x2b3fbc))return this[_0x1ee827(0x3a5)][_0x1ee827(0x2bd)](_0x2b3fbc);this['_tryEnsureSocket']();const _0x4d44c7=this[_0x1ee827(0x33d)][_0x1ee827(0x53f)](exports[_0x1ee827(0x508)],_0x2b3fbc,this['_socket$']['asObservable']());return this[_0x1ee827(0x3a5)][_0x1ee827(0x10c)](_0x2b3fbc,_0x4d44c7),_0x4d44c7;}['closeSession'](_0x21bacb){const _0x5491b5=_0x1cd32e;var _0x198c18;const _0x585c85=this['_sessions'][_0x5491b5(0x2bd)](_0x21bacb);_0x585c85&&(this[_0x5491b5(0x3a5)][_0x5491b5(0x27e)](_0x21bacb),_0x585c85['close']()),this[_0x5491b5(0x3a5)][_0x5491b5(0x4be)]||(_0x198c18=this[_0x5491b5(0x28a)])==null||_0x198c18[_0x5491b5(0x1d0)]();}[_0x1cd32e(0x49e)](){const _0x1a7757=_0x1cd32e;this[_0x1a7757(0x385)]=0x0,this[_0x1a7757(0x53a)]!=null&&(clearTimeout(this[_0x1a7757(0x53a)]),this[_0x1a7757(0x53a)]=null),this['_tryReconnect']();}[_0x1cd32e(0x39d)](){const _0x5243b5=_0x1cd32e;var _0xddeb38,_0x33c1d7;const _0x3cfab6=this[_0x5243b5(0x29d)]['getConfig'](mt),_0x4e8dfd=this[_0x5243b5(0x29d)][_0x5243b5(0x3da)](L),_0x2344f9=(_0x33c1d7=(_0xddeb38=_0x4e8dfd==null?void 0x0:_0x4e8dfd[_0x5243b5(0x461)])!=null?_0xddeb38:_0x3cfab6)!=null?_0x33c1d7:es,_0x4499d0=this[_0x5243b5(0x15e)][_0x5243b5(0x332)](_0x2344f9);return this[_0x5243b5(0x32e)]=_0x4499d0,_0x4499d0;}[_0x1cd32e(0x3e6)](){const _0x2ca971=_0x1cd32e;var _0x42e1b6,_0x4545ed;try{const _0x3e4d1a=(_0x4545ed=(_0x42e1b6=this[_0x2ca971(0x28a)])!=null?_0x42e1b6:this[_0x2ca971(0x32e)])!=null?_0x4545ed:this[_0x2ca971(0x39d)]();if(_0x3e4d1a){const _0x565bc6=_0x3e4d1a[_0x2ca971(0x3d5)];_0x3e4d1a[_0x2ca971(0x3d5)]=_0xd7cd7c=>(this[_0x2ca971(0x122)](),_0x565bc6['apply'](_0x3e4d1a,[_0xd7cd7c])),_0x3e4d1a[_0x2ca971(0x3b1)][_0x2ca971(0x22b)](_0x47d0f6=>this[_0x2ca971(0x43a)](_0x3e4d1a,_0x47d0f6)),_0x3e4d1a['error$'][_0x2ca971(0x430)](E['take'](0x1))[_0x2ca971(0x22b)](_0x54b2a0=>this[_0x2ca971(0x252)]['error'](_0x2ca971(0x2c8),_0x54b2a0)),_0x3e4d1a[_0x2ca971(0x145)][_0x2ca971(0x430)](E[_0x2ca971(0x3f4)](0x1))[_0x2ca971(0x22b)](()=>{const _0x3da2f1=_0x2ca971;this[_0x3da2f1(0x284)](_0x3e4d1a);}),_0x3e4d1a['close$'][_0x2ca971(0x430)](E[_0x2ca971(0x3f4)](0x1))[_0x2ca971(0x22b)](_0x23b627=>{const _0x47deeb=_0x2ca971;this[_0x47deeb(0x252)]['debug'](_0x47deeb(0x1ef),_0x47deeb(0x2db),_0x23b627),this['_onConnectionFailed']();});}}catch(_0x2ba4ac){this[_0x2ca971(0x252)][_0x2ca971(0x275)](_0x2ba4ac),this['_onConnectionFailed']();}}[_0x1cd32e(0x284)](_0x384cdf){const _0x2e6254=_0x1cd32e;this[_0x2e6254(0x252)]['debug'](_0x2e6254(0x1ef),_0x2e6254(0x4a1)),_0x384cdf[_0x2e6254(0x3d5)]({'cmd':b[_0x2e6254(0x47b)]}),this['_rescheduleHeartbeat']();}[_0x1cd32e(0x416)](){const _0x20279a=_0x1cd32e;window[_0x20279a(0x421)](_0x20279a(0x17d),()=>this['_onOffline']());}[_0x1cd32e(0x176)](){const _0x21c351=_0x1cd32e;this[_0x21c351(0x3b2)]=!0x1,this['_candidateSocket']=null,this[_0x21c351(0x2f5)][_0x21c351(0x203)](H[_0x21c351(0x3c2)]),this[_0x21c351(0x4e3)][_0x21c351(0x203)](null),this[_0x21c351(0x285)](),this[_0x21c351(0x520)]();}[_0x1cd32e(0x474)](){const _0x354c96=_0x1cd32e;var _0x9109d4;this[_0x354c96(0x176)](),this['_retryCount']<((_0x9109d4=this['_configService']['getConfig'](It))!=null?_0x9109d4:is)?(this[_0x354c96(0x278)]['show']({'key':_0x354c96(0x236),'type':q[_0x354c96(0x28f)][_0x354c96(0x27c)],'content':this[_0x354c96(0x3fd)]['t'](_0x354c96(0x431))}),this[_0x354c96(0x33b)]()):this[_0x354c96(0x278)][_0x354c96(0x3df)]({'key':_0x354c96(0x236),'type':q[_0x354c96(0x28f)][_0x354c96(0x376)],'content':this[_0x354c96(0x3fd)]['t'](_0x354c96(0x3ef))});}[_0x1cd32e(0x35e)](){const _0x4f8db4=_0x1cd32e,_0x41f7e4=()=>{const _0x2686c4=_0xcf6e;this[_0x2686c4(0x28a)]||this['reconnect']();},_0x4985b7=()=>{const _0x2c9d3e=_0xcf6e;this[_0x2c9d3e(0x28a)]||document[_0x2c9d3e(0x2a9)]==='hidden'||this[_0x2c9d3e(0x49e)]();};window[_0x4f8db4(0x421)]('online',_0x41f7e4),document['addEventListener'](_0x4f8db4(0x3d3),_0x4985b7);}[_0x1cd32e(0x33b)](){const _0x147c61=_0x1cd32e;var _0x4106ad;const _0xf52143=this[_0x147c61(0x385)],_0x5a10de=this[_0x147c61(0x29d)][_0x147c61(0x3da)](L),_0x460f2f=_0xf52143===0x0?0x0:((_0x4106ad=_0x5a10de==null?void 0x0:_0x5a10de[_0x147c61(0x1e8)])!=null?_0x4106ad:ss)*0x2**_0xf52143;this[_0x147c61(0x53a)]=window['setTimeout'](()=>{const _0x50a3f0=_0x147c61;clearTimeout(this[_0x50a3f0(0x53a)]),this['_retryConnectingTimer']=null,this[_0x50a3f0(0x3e6)]();},_0x460f2f),this[_0x147c61(0x385)]+=0x1;}['_onMessage'](_0x583f35,_0x1e1004){const _0x1f7732=_0x1cd32e,{cmd:_0x11e291}=_0x1e1004;_0x11e291===b[_0x1f7732(0x47b)]&&!this[_0x1f7732(0x3b2)]&&(_0x583f35['memberID']=_0x1e1004['data']['memberID'],this[_0x1f7732(0x4e3)][_0x1f7732(0x203)](_0x583f35),this[_0x1f7732(0x2f5)][_0x1f7732(0x203)](H[_0x1f7732(0x345)]),this[_0x1f7732(0x3b2)]=!0x0,this['_candidateSocket']=null),_0x11e291===b[_0x1f7732(0x232)]&&this[_0x1f7732(0x285)](),this[_0x1f7732(0x122)]();}[_0x1cd32e(0x122)](){const _0x1bfde6=_0x1cd32e;var _0x55835d;this['_clearHeartbeatTimer'](),this[_0x1bfde6(0x143)]=window[_0x1bfde6(0x3b3)](()=>this[_0x1bfde6(0x3e3)](),(_0x55835d=this[_0x1bfde6(0x29d)][_0x1bfde6(0x3da)](gt))!=null?_0x55835d:ts);}[_0x1cd32e(0x3e3)](){const _0x48f20b=_0x1cd32e;this[_0x48f20b(0x28a)][_0x48f20b(0x3d5)]({'cmd':b[_0x48f20b(0x232)]}),this[_0x48f20b(0x306)]();}[_0x1cd32e(0x306)](){const _0xb03137=_0x1cd32e;var _0x3929d2;this[_0xb03137(0x287)]=window[_0xb03137(0x3b3)](()=>this['_onConnectionFailed'](),(_0x3929d2=this[_0xb03137(0x29d)][_0xb03137(0x3da)](Ge))!=null?_0x3929d2:ft);}['_clearHeartbeatTimer'](){const _0x314fb8=_0x1cd32e;this[_0x314fb8(0x143)]!=null&&(clearTimeout(this[_0x314fb8(0x143)]),this[_0x314fb8(0x143)]=null);}[_0x1cd32e(0x285)](){const _0x4f772e=_0x1cd32e;this[_0x4f772e(0x287)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},exports[_0x1cd32e(0x169)]=bs([Z(0x0,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),Z(0x1,a['Inject'](a['LocaleService'])),Z(0x2,A[_0x1cd32e(0x53e)]),Z(0x3,a['ILogService']),Z(0x4,a[_0x1cd32e(0x4d2)]),Z(0x5,Ke)],exports[_0x1cd32e(0x169)]);var O=[];for(var Ue=0x0;Ue<0x100;++Ue)O[_0x1cd32e(0x435)]((Ue+0x100)['toString'](0x10)['slice'](0x1));function Ts(_0x47f42f,_0x6ee080=0x0){const _0x33291e=_0x1cd32e;return(O[_0x47f42f[_0x6ee080+0x0]]+O[_0x47f42f[_0x6ee080+0x1]]+O[_0x47f42f[_0x6ee080+0x2]]+O[_0x47f42f[_0x6ee080+0x3]]+'-'+O[_0x47f42f[_0x6ee080+0x4]]+O[_0x47f42f[_0x6ee080+0x5]]+'-'+O[_0x47f42f[_0x6ee080+0x6]]+O[_0x47f42f[_0x6ee080+0x7]]+'-'+O[_0x47f42f[_0x6ee080+0x8]]+O[_0x47f42f[_0x6ee080+0x9]]+'-'+O[_0x47f42f[_0x6ee080+0xa]]+O[_0x47f42f[_0x6ee080+0xb]]+O[_0x47f42f[_0x6ee080+0xc]]+O[_0x47f42f[_0x6ee080+0xd]]+O[_0x47f42f[_0x6ee080+0xe]]+O[_0x47f42f[_0x6ee080+0xf]])[_0x33291e(0x3c4)]();}var Se,Rs=new Uint8Array(0x10);function Os(){const _0x4ac87e=_0x1cd32e;if(!Se&&(Se=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x4ac87e(0x401)][_0x4ac87e(0x2bc)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(Rs);}var Ds=typeof crypto<'u'&&crypto[_0x1cd32e(0x395)]&&crypto[_0x1cd32e(0x395)]['bind'](crypto);const st={'randomUUID':Ds};function ys(_0x3d9c62,_0x4d57b5,_0x16eda6){const _0x30528a=_0x1cd32e;if(st[_0x30528a(0x395)]&&!_0x4d57b5&&!_0x3d9c62)return st['randomUUID']();_0x3d9c62=_0x3d9c62||{};var _0x34da10=_0x3d9c62[_0x30528a(0x439)]||(_0x3d9c62[_0x30528a(0x24c)]||Os)();return _0x34da10[0x6]=_0x34da10[0x6]&0xf|0x40,_0x34da10[0x8]=_0x34da10[0x8]&0x3f|0x80,Ts(_0x34da10);}var Us=Object['defineProperty'],Ps=Object[_0x1cd32e(0x41c)],ws=(_0x8edeb3,_0x2b4425,_0x139923,_0x467547)=>{const _0x16f527=_0x1cd32e;for(var _0x1fad67=_0x467547>0x1?void 0x0:_0x467547?Ps(_0x2b4425,_0x139923):_0x2b4425,_0x336f3b=_0x8edeb3[_0x16f527(0x23c)]-0x1,_0x70523b;_0x336f3b>=0x0;_0x336f3b--)(_0x70523b=_0x8edeb3[_0x336f3b])&&(_0x1fad67=(_0x467547?_0x70523b(_0x2b4425,_0x139923,_0x1fad67):_0x70523b(_0x1fad67))||_0x1fad67);return _0x467547&&_0x1fad67&&Us(_0x2b4425,_0x139923,_0x1fad67),_0x1fad67;},Pe=(_0x21ddff,_0x126a6e)=>(_0x3cf27a,_0x11b20c)=>_0x126a6e(_0x3cf27a,_0x11b20c,_0x21ddff);let fe=class{constructor(_0x49269e,_0x206b25,_0x2067e0){const _0x4c2051=_0x1cd32e;this[_0x4c2051(0x33d)]=_0x49269e,this[_0x4c2051(0x3d7)]=_0x206b25,this[_0x4c2051(0x2d2)]=_0x2067e0;}[_0x1cd32e(0x3c6)](_0x2a3665){const _0x3cb0ba=_0x1cd32e;this[_0x3cb0ba(0x171)](_0x2a3665),this[_0x3cb0ba(0x1a8)](_0x2a3665);}[_0x1cd32e(0x3e4)](_0x3bb912){const _0x228955=_0x1cd32e,{unitID:_0x15b3f7}=_0x3bb912,_0x5023db=this[_0x228955(0x2d2)]['getRenderById'](_0x15b3f7)[_0x228955(0x15c)](N[_0x228955(0x43c)]),{redoCache:_0xefe079}=_0x5023db['getUndoRedoMutationParamsCache']();if(_0xefe079[_0x228955(0x23c)]===0x0)return _0x3bb912;let _0x37d307=a['Tools'][_0x228955(0x208)](_0x3bb912['mutations'][0x0]);for(let _0x25d0fb=0x0;_0x25d0fb<_0xefe079['length'];_0x25d0fb++){const _0x586517={'id':_0x228955(0x45c),'params':{..._0xefe079[_0x25d0fb]}},_0x4b9aeb=this['_transformService'][_0x228955(0x14b)](_0x37d307,_0x586517,!0x1);if(_['isTransformMutationFailure'](_0x4b9aeb))throw _0x4b9aeb['error'];_0x37d307=_0x4b9aeb['m1Prime'];}return{...a[_0x228955(0x541)]['deepClone'](_0x3bb912),'mutations':[_0x37d307]};}['_transformUndoRedoStack'](_0x1a40a5){const _0x1143aa=_0x1cd32e,{unitID:_0x475683}=_0x1a40a5,_0x3637e3=this[_0x1143aa(0x2d2)]['getRenderById'](_0x475683)[_0x1143aa(0x15c)](N[_0x1143aa(0x43c)]),{undoCache:_0x1102b8,redoCache:_0x57b3d7}=_0x3637e3[_0x1143aa(0x42a)]();if(_0x1102b8[_0x1143aa(0x23c)]===0x0||_0x57b3d7['length']===0x0)return;const _0x5b7a89=[],_0xc1766e=[];let _0x60af64=a[_0x1143aa(0x541)]['deepClone'](_0x1a40a5[_0x1143aa(0x423)][0x0]),_0x99eeea=a[_0x1143aa(0x541)][_0x1143aa(0x208)](_0x1a40a5[_0x1143aa(0x423)][0x0]);for(let _0x508115=_0x1102b8[_0x1143aa(0x23c)]-0x1;_0x508115>=0x0;_0x508115--){const _0x5d6732={'id':_0x1143aa(0x45c),'params':{..._0x1102b8[_0x508115]}},_0x4d8c33={'id':_0x1143aa(0x45c),'params':{..._0x57b3d7[_0x508115]}},_0x1c5c11=this[_0x1143aa(0x3d7)][_0x1143aa(0x14b)](_0x60af64,_0x5d6732,!0x1),_0x26d1c4=this[_0x1143aa(0x3d7)][_0x1143aa(0x14b)](_0x99eeea,_0x4d8c33,!0x1);if(_[_0x1143aa(0x1fb)](_0x1c5c11))throw _0x1c5c11[_0x1143aa(0x275)];if(_[_0x1143aa(0x1fb)](_0x26d1c4))throw _0x26d1c4['error'];_0x5b7a89[_0x1143aa(0x2e4)](_0x1c5c11[_0x1143aa(0x52d)]['params']),_0xc1766e[_0x1143aa(0x2e4)](_0x26d1c4[_0x1143aa(0x52d)]['params']),_0x60af64=_0x1c5c11[_0x1143aa(0x2a1)],_0x99eeea=_0x26d1c4[_0x1143aa(0x2a1)];}_0x3637e3[_0x1143aa(0x3a0)]({'undoCache':_0x5b7a89,'redoCache':_0xc1766e});}[_0x1cd32e(0x1a8)](_0x3ae44b){const _0x11cca5=_0x1cd32e,{unitID:_0x1b775c}=_0x3ae44b,_0x1846fc=this[_0x11cca5(0x2d2)][_0x11cca5(0x4fc)](_0x1b775c)['with'](N['DocIMEInputManagerService']),_0x571f20=_0x1846fc[_0x11cca5(0x1cd)]();if(_0x571f20==null)return;const _0x4ca322=[{'id':_0x11cca5(0x45c),'params':{'unitId':_0x3ae44b[_0x11cca5(0x3f7)],'actions':null,'textRanges':[_0x571f20]}}],_0x4ce1e5=this[_0x11cca5(0x3d7)]['transformMutationsWithChangeset'](_0x3ae44b,_0x4ca322);if(!_[_0x11cca5(0x2c5)](_0x4ce1e5))throw _0x4ce1e5[_0x11cca5(0x275)];const _0x30432a=_0x4ce1e5[_0x11cca5(0x52d)][0x0][_0x11cca5(0x1ea)]['textRanges'];Array['isArray'](_0x30432a)&&_0x30432a[_0x11cca5(0x23c)]&&_0x1846fc[_0x11cca5(0x389)](_0x30432a[0x0]);}};fe=ws([Pe(0x0,a['Inject'](a[_0x1cd32e(0x2e8)])),Pe(0x1,_[_0x1cd32e(0x4f5)]),Pe(0x2,D[_0x1cd32e(0x4d6)])],fe);var Ns=Object[_0x1cd32e(0x528)],Ms=Object['getOwnPropertyDescriptor'],As=(_0x54c054,_0x36221c,_0x2a9fec,_0x557ea2)=>{const _0x4c976c=_0x1cd32e;for(var _0x15b38c=_0x557ea2>0x1?void 0x0:_0x557ea2?Ms(_0x36221c,_0x2a9fec):_0x36221c,_0x560d68=_0x54c054[_0x4c976c(0x23c)]-0x1,_0x1bd9e8;_0x560d68>=0x0;_0x560d68--)(_0x1bd9e8=_0x54c054[_0x560d68])&&(_0x15b38c=(_0x557ea2?_0x1bd9e8(_0x36221c,_0x2a9fec,_0x15b38c):_0x1bd9e8(_0x15b38c))||_0x15b38c);return _0x557ea2&&_0x15b38c&&Ns(_0x36221c,_0x2a9fec,_0x15b38c),_0x15b38c;},ce=(_0x470727,_0x3878c2)=>(_0x39fa9b,_0x48847d)=>_0x3878c2(_0x39fa9b,_0x48847d,_0x470727);exports[_0x1cd32e(0x272)]=class extends a[_0x1cd32e(0x32f)]{constructor(_0x362d92,_0x30b7a7,_0x20d62e,_0x4daa84,_0x35f911){const _0x32bf83=_0x1cd32e;super(),u(this,'_cachedData',new Map()),u(this,_0x32bf83(0x436),new Map()),u(this,_0x32bf83(0x10f),!0x1),(this[_0x32bf83(0x29d)]=_0x362d92,this[_0x32bf83(0x11b)]=_0x30b7a7,this[_0x32bf83(0x419)]=_0x20d62e,this[_0x32bf83(0x3fd)]=_0x4daa84,this[_0x32bf83(0x4d3)]=_0x35f911,this[_0x32bf83(0x4ff)]());}[_0x1cd32e(0x3f3)](){this['_disabled']=!0x0;}[_0x1cd32e(0x473)](){const _0x4aaa69=_0x1cd32e;this[_0x4aaa69(0x10f)]=!0x1;}[_0x1cd32e(0x477)](){const _0x37d16d=_0x1cd32e;this['exhaustSavingTask']()[_0x37d16d(0x205)](()=>super['dispose']());}async[_0x1cd32e(0x115)](_0x4de46f){const _0x9e395e=_0x1cd32e;return this[_0x9e395e(0x10f)]?null:this[_0x9e395e(0x11b)][_0x9e395e(0x234)](it(_0x4de46f));}async[_0x1cd32e(0x225)](_0x36eb32,_0x3d117b){const _0x4f5270=_0x1cd32e;return!!this[_0x4f5270(0x11b)][_0x4f5270(0x467)](_0x36eb32,_0x3d117b);}[_0x1cd32e(0x460)](_0x564f7c,_0x25983b,_0x389184,_0x205c6c){const _0x4fadaa=_0x1cd32e,_0x4a0b61=this[_0x4fadaa(0x4d3)][_0x4fadaa(0x493)](_0x564f7c);this['_cachedData'][_0x4fadaa(0x10c)](_0x564f7c,{'unitID':_0x564f7c,'type':_0x25983b,'awaitingChangeset':_0x389184,'mutations':_0x205c6c,'rev':_0x4a0b61}),this[_0x4fadaa(0x436)][_0x4fadaa(0x46c)](_0x564f7c)||this[_0x4fadaa(0x21a)](_0x564f7c);}['_scheduleSaving'](_0x296b31){const _0x405205=_0x1cd32e,_0x1e2dea=this[_0x405205(0x3ec)]();_0x1e2dea===0x0?this[_0x405205(0x465)](_0x296b31):this[_0x405205(0x436)]['set'](_0x296b31,setTimeout(()=>this[_0x405205(0x465)](_0x296b31),_0x1e2dea));}['_getSaveTimeout'](){const _0x376dc4=_0x1cd32e;var _0x36fb4b;return(_0x36fb4b=this[_0x376dc4(0x29d)][_0x376dc4(0x3da)](pt))!=null?_0x36fb4b:ns;}[_0x1cd32e(0x465)](_0x2f26c2){const _0x1b436d=_0x1cd32e,_0x22e16d=this[_0x1b436d(0x436)][_0x1b436d(0x2bd)](_0x2f26c2);return _0x22e16d!==void 0x0&&window[_0x1b436d(0x302)](_0x22e16d),this[_0x1b436d(0x11b)][_0x1b436d(0x467)](it(_0x2f26c2),this[_0x1b436d(0x53b)][_0x1b436d(0x2bd)](_0x2f26c2))[_0x1b436d(0x205)](()=>this[_0x1b436d(0x436)][_0x1b436d(0x27e)](_0x2f26c2));}async['exhaustSavingTask'](){const _0x10f710=_0x1cd32e,_0x5d9129=[];this['_saveTaskMap'][_0x10f710(0x12a)]((_0x343abf,_0x346ec2)=>{const _0x27ef11=_0x10f710;window[_0x27ef11(0x302)](_0x343abf),_0x5d9129[_0x27ef11(0x435)](this[_0x27ef11(0x465)](_0x346ec2)['then'](()=>{const _0x45d3d1=_0x27ef11;this['_saveTaskMap'][_0x45d3d1(0x27e)](_0x346ec2);}));}),await Promise[_0x10f710(0x1e5)](_0x5d9129);}['_setupBeforeClosingHandler'](){const _0x2c0e2b=_0x1cd32e;this[_0x2c0e2b(0x3d2)](this[_0x2c0e2b(0x419)][_0x2c0e2b(0x1ca)](()=>{const _0x53666d=_0x2c0e2b;if(this['_saveTaskMap']['size'])return this[_0x53666d(0x3fd)]['t'](_0x53666d(0x328));}));}},exports['LocalCacheService']=As([ce(0x0,a[_0x1cd32e(0x4d2)]),ce(0x1,a['ILocalStorageService']),ce(0x2,A[_0x1cd32e(0x418)]),ce(0x3,a['Inject'](a['LocaleService'])),ce(0x4,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x12c)]))],exports[_0x1cd32e(0x272)]);function it(_0x2d57e4){const _0x572295=_0x1cd32e;return _0x572295(0x292)+_0x2d57e4;}var Ls=Object[_0x1cd32e(0x528)],js=Object['getOwnPropertyDescriptor'],$s=(_0x3f1dae,_0x3b77cf,_0x5652f3,_0x33971b)=>{const _0x51834a=_0x1cd32e;for(var _0x13c2b7=_0x33971b>0x1?void 0x0:_0x33971b?js(_0x3b77cf,_0x5652f3):_0x3b77cf,_0xffd034=_0x3f1dae[_0x51834a(0x23c)]-0x1,_0xc746aa;_0xffd034>=0x0;_0xffd034--)(_0xc746aa=_0x3f1dae[_0xffd034])&&(_0x13c2b7=(_0x33971b?_0xc746aa(_0x3b77cf,_0x5652f3,_0x13c2b7):_0xc746aa(_0x13c2b7))||_0x13c2b7);return _0x33971b&&_0x13c2b7&&Ls(_0x3b77cf,_0x5652f3,_0x13c2b7),_0x13c2b7;},we=(_0x3df1a8,_0x2c7efa)=>(_0x1f9cff,_0x124af8)=>_0x2c7efa(_0x1f9cff,_0x124af8,_0x3df1a8);function Hs(_0x12a732){const _0x27c32f=_0x1cd32e,{unitID:_0x179dbb,mutations:_0xe896a6}=_0x12a732;return{'unitId':_0x179dbb,'subUnitId':_0xe896a6[0x0][_0x27c32f(0x1ea)][_0x27c32f(0x542)]};}let Ie=class{constructor(_0x26d5a2,_0x173d07,_0x509a99){const _0x299e33=_0x1cd32e;this[_0x299e33(0x33d)]=_0x26d5a2,this['_transformService']=_0x173d07,this['_instanceService']=_0x509a99;}[_0x1cd32e(0x4e9)](_0x50c009){const _0x3ac729=_0x1cd32e;var _0x1ba9f0,_0x4097df,_0x13b766,_0x66045f;const _0x53e385=this[_0x3ac729(0x33d)][_0x3ac729(0x2bd)](C[_0x3ac729(0x266)]),{unitId:_0x158214,subUnitId:_0x59cc61}=Hs(_0x50c009),_0x1a4519=_0x53e385[_0x3ac729(0x3bc)](_0x158214)['getCurrentSelections'](),_0x547727=(_0x4097df=(_0x1ba9f0=this[_0x3ac729(0x32c)][_0x3ac729(0x36e)](_0x158214))==null?void 0x0:_0x1ba9f0['getActiveSheet']())==null?void 0x0:_0x4097df['getSheetId']();if(_0x1a4519[_0x3ac729(0x23c)]===0x0||!_0x158214||!_0x59cc61)return;const _0x505e9b=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x158214,'subUnitId':_0x547727,'selections':a['Tools']['deepClone'](_0x1a4519)}}],_0x29955d=this[_0x3ac729(0x3d7)][_0x3ac729(0x24d)](_0x50c009,_0x505e9b);if(!_[_0x3ac729(0x2c5)](_0x29955d))throw _0x29955d['error'];const _0x14c75f=(_0x66045f=(_0x13b766=_0x29955d['m2Prime'][0x0])==null?void 0x0:_0x13b766['params'])==null?void 0x0:_0x66045f['selections'];if(Array[_0x3ac729(0x2b8)](_0x14c75f)&&_0x14c75f['length']){if(_0x14c75f['length']===_0x505e9b[0x0][_0x3ac729(0x1ea)][_0x3ac729(0x28c)][_0x3ac729(0x23c)]&&_0x14c75f[_0x3ac729(0x459)]((_0x22c575,_0x293f44)=>a[_0x3ac729(0x480)][_0x3ac729(0x214)](_0x22c575[_0x3ac729(0x237)],_0x505e9b[0x0][_0x3ac729(0x1ea)][_0x3ac729(0x28c)][_0x293f44]['range'])))return;this['_injector'][_0x3ac729(0x2bd)](a[_0x3ac729(0x1ee)])['executeCommand'](C[_0x3ac729(0x388)]['id'],{'unitId':_0x158214,'subUnitId':_0x547727,'selections':_0x14c75f});}}};Ie=$s([we(0x0,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),we(0x1,_['ITransformService']),we(0x2,a['IUniverInstanceService'])],Ie);const Re=a[_0x1cd32e(0x45e)](_0x1cd32e(0x2b6));var Dt=(_0xec4291=>(_0xec4291[_0xec4291[_0x1cd32e(0x2e1)]=0x0]=_0x1cd32e(0x2e1),_0xec4291[_0xec4291[_0x1cd32e(0x523)]=0x1]=_0x1cd32e(0x523),_0xec4291))(Dt||{});const nt=0x7530,rt=_0x1cd32e(0x118);class xs extends a[_0x1cd32e(0x32f)]{constructor(){const _0x3b158b=_0x1cd32e;super(),u(this,_0x3b158b(0x4f8),a[_0x3b158b(0x541)]['generateRandomId']()),u(this,_0x3b158b(0x414),new Set()),u(this,_0x3b158b(0x498),new Map()),u(this,'_heartbeatTimer',null),u(this,_0x3b158b(0x276),new Map()),u(this,_0x3b158b(0x3c3),new Map()),this[_0x3b158b(0x3d1)]();}[_0x1cd32e(0x477)](){const _0x44cd7b=_0x1cd32e;super[_0x44cd7b(0x477)](),this[_0x44cd7b(0x276)][_0x44cd7b(0x12a)]((_0x5efc18,_0x2ee165)=>this[_0x44cd7b(0x194)](_0x2ee165)),this[_0x44cd7b(0x34d)]&&window[_0x44cd7b(0x12d)](this[_0x44cd7b(0x34d)]);}[_0x1cd32e(0x491)](_0x3db5ed){const _0xe7b12b=_0x1cd32e;return this[_0xe7b12b(0x405)](_0x3db5ed)[_0xe7b12b(0x430)](v[_0xe7b12b(0x261)]());}['editingUnit'](_0x12288b){const _0x10dc32=_0x1cd32e;this[_0x10dc32(0x414)]['size']===0x0&&this[_0x10dc32(0x204)](),this[_0x10dc32(0x414)][_0x10dc32(0x33a)](_0x12288b),this['_send']({'type':0x0,'memberID':this[_0x10dc32(0x4f8)],'unitIDs':[_0x12288b],'isForwarded':!0x1});}[_0x1cd32e(0x339)](_0x304c30){const _0x37d105=_0x1cd32e;this[_0x37d105(0x414)][_0x37d105(0x27e)](_0x304c30),this[_0x37d105(0x414)][_0x37d105(0x4be)]===0x0&&this[_0x37d105(0x34d)]&&window[_0x37d105(0x12d)](this[_0x37d105(0x34d)]);}[_0x1cd32e(0x3d1)](){const _0x1a10cc=_0x1cd32e;this[_0x1a10cc(0x3d2)](a[_0x1a10cc(0x381)](v[_0x1a10cc(0x307)](window,_0x1a10cc(0x31a))[_0x1a10cc(0x22b)](_0x50c753=>{const _0xa1beb9=_0x1a10cc;if(_0x50c753[_0xa1beb9(0x3a8)]!==rt||!_0x50c753[_0xa1beb9(0x31d)])return;const _0x3ed8ef=JSON[_0xa1beb9(0x146)](_0x50c753['newValue']);this['_handleEvent'](_0x3ed8ef);}))),window[_0x1a10cc(0x421)](_0x1a10cc(0x481),()=>this[_0x1a10cc(0x3f0)]({'type':0x1,'memberID':this[_0x1a10cc(0x4f8)],'unitIDs':Array['from'](this[_0x1a10cc(0x414)])}));}[_0x1cd32e(0x138)](_0x1bcf98){const _0x306055=_0x1cd32e;switch(_0x1bcf98[_0x306055(0x3eb)]){case 0x0:this[_0x306055(0x403)](_0x1bcf98);break;case 0x1:this[_0x306055(0x288)](_0x1bcf98);break;case 0x2:this[_0x306055(0x233)](_0x1bcf98);break;}}[_0x1cd32e(0x403)](_0x4eaae9){const _0x926ea9=_0x1cd32e,{unitIDs:_0x3bf05b,memberID:_0x2cd1ef,isForwarded:_0x569f42}=_0x4eaae9;_0x3bf05b[_0x926ea9(0x12a)](_0x27cf09=>{const _0x11471c=_0x926ea9;if(!_0x569f42&&this['_unitOnClients']['has'](_0x27cf09)&&this[_0x11471c(0x405)](_0x27cf09)[_0x11471c(0x203)](0x1),!this[_0x11471c(0x498)][_0x11471c(0x46c)](_0x27cf09)||!this[_0x11471c(0x498)][_0x11471c(0x2bd)](_0x27cf09)[_0x11471c(0x46c)](_0x2cd1ef)){const _0x2565ef=this['_unitOnClients'][_0x11471c(0x2bd)](_0x27cf09)||new Set();_0x2565ef[_0x11471c(0x33a)](_0x2cd1ef),this[_0x11471c(0x498)][_0x11471c(0x10c)](_0x27cf09,_0x2565ef),this[_0x11471c(0x32d)](_0x2cd1ef);}}),_0x569f42||this[_0x926ea9(0x3f0)]({'type':0x0,'memberID':this[_0x926ea9(0x4f8)],'unitIDs':[...this[_0x926ea9(0x414)]],'isForwarded':!0x0});}[_0x1cd32e(0x32d)](_0x116034){const _0x3bb16b=_0x1cd32e;this[_0x3bb16b(0x194)](_0x116034);const _0x37682f=window[_0x3bb16b(0x3b3)](()=>{const _0x190389=_0x3bb16b;this[_0x190389(0x498)][_0x190389(0x12a)](_0x288fa4=>{const _0x540dfe=_0x190389;_0x288fa4[_0x540dfe(0x27e)](_0x116034);});},nt*0x2);this['_clearOtherTimers'][_0x3bb16b(0x10c)](_0x116034,_0x37682f);}[_0x1cd32e(0x194)](_0x2aef29){const _0x121ac8=_0x1cd32e;if(this[_0x121ac8(0x276)][_0x121ac8(0x46c)](_0x2aef29)){const _0x906a40=this[_0x121ac8(0x276)][_0x121ac8(0x2bd)](_0x2aef29);_0x906a40&&window[_0x121ac8(0x302)](_0x906a40),this['_clearOtherTimers'][_0x121ac8(0x10c)](_0x2aef29,null);}}[_0x1cd32e(0x288)](_0x59c912){const _0x4c8503=_0x1cd32e,{memberID:_0x2a6d23,unitIDs:_0x4f4581}=_0x59c912;_0x4f4581[_0x4c8503(0x12a)](_0x1fe383=>{const _0x2df9d8=_0x4c8503;var _0x3e7e96;const _0x4d86ee=this[_0x2df9d8(0x498)][_0x2df9d8(0x2bd)](_0x1fe383);_0x4d86ee&&(_0x4d86ee[_0x2df9d8(0x27e)](_0x2a6d23),(_0x3e7e96=this[_0x2df9d8(0x405)](_0x1fe383))==null||_0x3e7e96[_0x2df9d8(0x203)](_0x4d86ee[_0x2df9d8(0x4be)]===0x0?0x0:0x1));}),this[_0x4c8503(0x194)](_0x2a6d23);}[_0x1cd32e(0x233)](_0x20c1e7){const _0x45eb3b=_0x1cd32e;this['_scheduleClearOtherTimer'](_0x20c1e7[_0x45eb3b(0x240)]);}[_0x1cd32e(0x3f0)](_0x11a059){const _0x1edf3b=_0x1cd32e;localStorage[_0x1edf3b(0x467)](rt,JSON[_0x1edf3b(0x2d6)](_0x11a059));}[_0x1cd32e(0x204)](){const _0x1aeb48=_0x1cd32e;this[_0x1aeb48(0x34d)]=window[_0x1aeb48(0x369)](()=>{const _0x34d8dd=_0x1aeb48;this['_send']({'type':0x2,'memberID':this[_0x34d8dd(0x4f8)]});},nt);}['_ensureSubject'](_0x6997c5){const _0x4b1461=_0x1cd32e;return this[_0x4b1461(0x3c3)][_0x4b1461(0x46c)](_0x6997c5)||this['_unitStatus'][_0x4b1461(0x10c)](_0x6997c5,new v['BehaviorSubject'](0x0)),this['_unitStatus'][_0x4b1461(0x2bd)](_0x6997c5);}}function yt(_0x4f26fc){const _0x30c902=_0x1cd32e;let _0x2f60cf='';for(const _0x3b56f4 of _0x4f26fc){const {startOffset:_0x59376b,endOffset:_0x21ac1e,isActive:_0x6d4276}=_0x3b56f4;_0x2f60cf[_0x30c902(0x23c)]&&(_0x2f60cf+=','),_0x2f60cf+=_0x59376b+':'+_0x21ac1e+':'+(_0x6d4276?'1':'0');}return _0x2f60cf;}function ks(_0x55cf96){const _0x172c7f=_0x1cd32e,_0x2ffa97=_0x55cf96['split'](','),_0x2301a8=[];for(const _0x255777 of _0x2ffa97){const [_0x5724d6,_0x37c8ed,_0x46f290]=_0x255777[_0x172c7f(0x1d5)](':');_0x2301a8['push']({'startOffset':Number(_0x5724d6),'endOffset':Number(_0x37c8ed),'collapsed':_0x5724d6===_0x37c8ed,'isActive':_0x46f290==='1'});}return _0x2301a8[_0x172c7f(0x1da)](_0x4280f9=>_0x4280f9['isActive'])||(_0x2301a8[0x0][_0x172c7f(0x39e)]=!0x0),_0x2301a8;}class Xe extends a[_0x1cd32e(0x29e)]{constructor(){const _0x572e72=_0x1cd32e;super(...arguments),u(this,'_collabCursorState$',new v[(_0x572e72(0x518))](null)),u(this,_0x572e72(0x2e7),this['_collabCursorState$']['asObservable']());}[_0x1cd32e(0x1a2)](_0x349a1e){const _0x364539=_0x1cd32e,{unitID:_0x511051,memberID:_0x422e5c,textRanges:_0x58acbc}=_0x349a1e,_0x40156c=yt(_0x58acbc),_0x43e3fa={'unitID':_0x511051,'memberID':_0x422e5c,'selection':_0x40156c};this[_0x364539(0x231)][_0x364539(0x203)](_0x43e3fa);}}var Bs=Object['defineProperty'],Vs=Object['getOwnPropertyDescriptor'],Ws=(_0x2e191e,_0x56ab51,_0x28c08e,_0x4ecd4a)=>{for(var _0x2cc769=_0x4ecd4a>0x1?void 0x0:_0x4ecd4a?Vs(_0x56ab51,_0x28c08e):_0x56ab51,_0x8f8f51=_0x2e191e['length']-0x1,_0x52ca3b;_0x8f8f51>=0x0;_0x8f8f51--)(_0x52ca3b=_0x2e191e[_0x8f8f51])&&(_0x2cc769=(_0x4ecd4a?_0x52ca3b(_0x56ab51,_0x28c08e,_0x2cc769):_0x52ca3b(_0x2cc769))||_0x2cc769);return _0x4ecd4a&&_0x2cc769&&Bs(_0x56ab51,_0x28c08e,_0x2cc769),_0x2cc769;},ot=(_0x2286b2,_0x5bce09)=>(_0xa6edf1,_0x372376)=>_0x5bce09(_0xa6edf1,_0x372376,_0x2286b2);let pe=class{constructor(_0x18d934,_0x18cdb9){const _0x511e07=_0x1cd32e;this[_0x511e07(0x33d)]=_0x18d934,this['_transformService']=_0x18cdb9;}[_0x1cd32e(0x4e9)](_0x486d9d){const _0x37c728=_0x1cd32e;var _0x317800;const _0x7c5866=this[_0x37c728(0x33d)][_0x37c728(0x2bd)](se[_0x37c728(0x534)]),_0x5d22f8=(_0x317800=_0x7c5866[_0x37c728(0x113)]())!=null?_0x317800:[];if(_0x5d22f8[_0x37c728(0x23c)]===0x0)return;const _0x2752cb=[{'id':_0x37c728(0x45c),'params':{'unitId':_0x486d9d[_0x37c728(0x3f7)],'actions':null,'textRanges':_0x5d22f8}}],_0x26c514=this[_0x37c728(0x3d7)]['transformMutationsWithChangeset'](_0x486d9d,_0x2752cb);if(!_[_0x37c728(0x2c5)](_0x26c514))throw _0x26c514[_0x37c728(0x275)];const _0xc24539=_0x26c514[_0x37c728(0x52d)][0x0][_0x37c728(0x1ea)]['textRanges'];Array[_0x37c728(0x2b8)](_0xc24539)&&_0xc24539[_0x37c728(0x23c)]&&_0x7c5866['replaceTextRanges'](_0xc24539,!0x1);}};pe=Ws([ot(0x0,a['Inject'](a[_0x1cd32e(0x2e8)])),ot(0x1,_['ITransformService'])],pe);const Fs=new Set([C[_0x1cd32e(0x4a3)]['id']]);function at(_0x4a9ed2,_0x5186bc,_0x2116d3,_0x558546,_0x43fc7d){const _0x2c68b4=_0x1cd32e;var _0x2ae927,_0x49a76f,_0x3694f2,_0x1f95a2;const _0x4f70ba=[];for(const _0x2565fb of _0x4a9ed2)if(Fs[_0x2c68b4(0x46c)](_0x2565fb['id'])){if(_0x4f70ba[_0x2c68b4(0x23c)]>0x0)break;_0x4f70ba['push'](_0x2565fb);break;}else _0x4f70ba['push'](_0x2565fb);const _0x5b0c80=(_0x49a76f=(_0x2ae927=_0x43fc7d[_0x2c68b4(0x2ed)]())==null?void 0x0:_0x2ae927['userID'])!=null?_0x49a76f:_0x2c68b4(0x17e),_0x317cb8=(_0x1f95a2=(_0x3694f2=_0x43fc7d[_0x2c68b4(0x2ed)]())==null?void 0x0:_0x3694f2[_0x2c68b4(0x240)])!=null?_0x1f95a2:_0x2c68b4(0x17e);return{'changeset':{'unitID':_0x5186bc,'type':_[_0x2c68b4(0x3b4)](_0x2116d3[_0x2c68b4(0x468)](_0x5186bc)),'baseRev':_0x558546[_0x2c68b4(0x493)](_0x5186bc),'revision':0x0,'userID':_0x5b0c80,'memberID':_0x317cb8,'mutations':_0x4f70ba},'pendingMutations':_0x4a9ed2[_0x2c68b4(0x48a)](_0x4f70ba[_0x2c68b4(0x23c)])};}function _0xcf6e(_0x5bc628,_0x3b1f9c){const _0x38e52f=_0x38e5();return _0xcf6e=function(_0xcf6e0a,_0x4ad1fb){_0xcf6e0a=_0xcf6e0a-0x109;let _0x57aaa5=_0x38e52f[_0xcf6e0a];return _0x57aaa5;},_0xcf6e(_0x5bc628,_0x3b1f9c);}function Gs(_0x6b144f,_0x25a594,_0x416cd7,_0x2a6911,_0x2f9c5d){const _0x501bfd=_0x1cd32e;var _0x313f26,_0x32c939,_0xcf587a,_0x4a58f6;const _0x286858=[_0x6b144f[_0x501bfd(0x40e)]((_0x116448,_0x36e15f)=>{const _0x4af9a0=_0x501bfd;var _0x408a2e;const {id:_0x293237}=_0x116448,{id:_0x35a55b,type:_0x249038}=_0x36e15f,_0x427878=(_0x408a2e=_0x116448[_0x4af9a0(0x1ea)])!=null?_0x408a2e:{'actions':null},_0x131d1c=_0x36e15f[_0x4af9a0(0x1ea)];if(_0x293237&&_0x293237!==_0x35a55b)throw new Error(_0x4af9a0(0x4d8)+_0x293237+_0x4af9a0(0x318)+_0x35a55b+'.');return{..._0x116448,'id':_0x35a55b,'type':_0x249038,'params':{'unitId':_0x131d1c[_0x4af9a0(0x543)],'textRanges':_0x131d1c[_0x4af9a0(0x391)],'actions':a[_0x4af9a0(0x4d4)][_0x4af9a0(0x47c)](_0x427878[_0x4af9a0(0x299)],_0x131d1c[_0x4af9a0(0x299)])}};},{})],_0x5fc1c2=(_0x32c939=(_0x313f26=_0x2f9c5d['getCurrentUser']())==null?void 0x0:_0x313f26[_0x501bfd(0x3cc)])!=null?_0x32c939:_0x501bfd(0x17e),_0x2df520=(_0x4a58f6=(_0xcf587a=_0x2f9c5d['getCurrentUser']())==null?void 0x0:_0xcf587a[_0x501bfd(0x240)])!=null?_0x4a58f6:'unknown';return{'changeset':{'unitID':_0x25a594,'type':_[_0x501bfd(0x3b4)](_0x416cd7['getUnitType'](_0x25a594)),'baseRev':_0x2a6911['getCurrentRevOfUnit'](_0x25a594),'revision':0x0,'userID':_0x5fc1c2,'memberID':_0x2df520,'mutations':_0x286858},'pendingMutations':[]};}function Ut(_0x2cb7b9,_0xcbb71c){const _0x869f74=_0x1cd32e,_0xcc1946=new v[(_0x869f74(0x111))](0x1);return setTimeout(()=>_0xcc1946[_0x869f74(0x203)](_0xcbb71c),_0x2cb7b9),_0xcc1946[_0x869f74(0x109)]()[_0x869f74(0x430)](v['take'](0x1));}const Ys={'id':C[_0x1cd32e(0x226)]['id'],'type':a[_0x1cd32e(0x1c5)][_0x1cd32e(0x537)],'params':{}};var Ks=Object[_0x1cd32e(0x528)],qs=Object[_0x1cd32e(0x41c)],z=(_0x3b2a48,_0x135103,_0x19cbc9,_0x28dc78)=>{for(var _0x5a0ace=_0x28dc78>0x1?void 0x0:_0x28dc78?qs(_0x135103,_0x19cbc9):_0x135103,_0x278afc=_0x3b2a48['length']-0x1,_0x2cdca6;_0x278afc>=0x0;_0x278afc--)(_0x2cdca6=_0x3b2a48[_0x278afc])&&(_0x5a0ace=(_0x28dc78?_0x2cdca6(_0x135103,_0x19cbc9,_0x5a0ace):_0x2cdca6(_0x5a0ace))||_0x5a0ace);return _0x28dc78&&_0x5a0ace&&Ks(_0x135103,_0x19cbc9,_0x5a0ace),_0x5a0ace;},g=(_0x32fb41,_0x175752)=>(_0x1a1916,_0x15df63)=>_0x175752(_0x1a1916,_0x15df63,_0x32fb41),U=(_0x1ac146=>(_0x1ac146['NOT_COLLAB']=_0x1cd32e(0x24f),_0x1ac146[_0x1cd32e(0x27f)]=_0x1cd32e(0x2fc),_0x1ac146[_0x1cd32e(0x247)]=_0x1cd32e(0x251),_0x1ac146[_0x1cd32e(0x308)]='awaiting',_0x1ac146[_0x1cd32e(0x152)]='awaiting_with_pending',_0x1ac146[_0x1cd32e(0x2f2)]=_0x1cd32e(0x25a),_0x1ac146[_0x1cd32e(0x23b)]=_0x1cd32e(0x24e),_0x1ac146[_0x1cd32e(0x3c2)]=_0x1cd32e(0x17d),_0x1ac146))(U||{});const Pt=0xea60;class J{constructor(_0x40d423,_0x34c871,_0x2f0069,_0x1ea05e,_0x5aef00,_0x26b42a,_0x279791,_0xc72191,_0x4e4f08){const _0x54cbbf=_0x1cd32e;u(this,_0x54cbbf(0x3d4),null),u(this,_0x54cbbf(0x1f6),[]),(this[_0x54cbbf(0x3f7)]=_0x40d423,this['type']=_0x34c871,this[_0x54cbbf(0x20b)]=_0x5aef00,this[_0x54cbbf(0x45a)]=_0x26b42a,this[_0x54cbbf(0x2cf)]=_0x279791,this[_0x54cbbf(0x4d3)]=_0xc72191,this[_0x54cbbf(0x35b)]=_0x4e4f08,this[_0x54cbbf(0x3d4)]=_0x2f0069,this[_0x54cbbf(0x1f6)]=_0x1ea05e);}['_checkMissing'](_0x308b6e){const _0x3a0dd0=_0x1cd32e,_0x2ce51f=this['_revisionService']['getCurrentRevOfUnit'](this[_0x3a0dd0(0x3f7)]);return _0x308b6e[_0x3a0dd0(0x4ce)]>_0x2ce51f+0x1?(this[_0x3a0dd0(0x20b)][_0x3a0dd0(0x4de)]({'from':_0x2ce51f,'to':_0x308b6e['revision']-0x1}),!0x0):!0x1;}[_0x1cd32e(0x24b)](_0x14efde){const _0x43d4c1=_0x1cd32e;this['_undoRedoService'][_0x43d4c1(0x40c)](this[_0x43d4c1(0x3f7)],_0x14efde);}[_0x1cd32e(0x3fc)](_0x337be7){const _0x5da5b3=_0x1cd32e;var _0x3dd6af,_0xaeece5;(_0xaeece5=(_0x3dd6af=this['_handler'])[_0x5da5b3(0x409)])==null||_0xaeece5['call'](_0x3dd6af,_0x337be7);}['_transformIMECache'](_0x3f2720){const _0x5dc3dc=_0x1cd32e;var _0x444388,_0x4c3516;return(_0x4c3516=(_0x444388=this[_0x5dc3dc(0x20b)])[_0x5dc3dc(0x1b4)])==null?void 0x0:_0x4c3516['call'](_0x444388,_0x3f2720);}[_0x1cd32e(0x3e5)](_0x3cad52){const _0x187842=_0x1cd32e;var _0x5059db,_0x483609,_0x5a1128;return(_0x5a1128=(_0x483609=(_0x5059db=this[_0x187842(0x20b)])[_0x187842(0x478)])==null?void 0x0:_0x483609[_0x187842(0x124)](_0x5059db,_0x3cad52))!=null?_0x5a1128:_0x3cad52;}[_0x1cd32e(0x35a)](_0x95209c){const _0x469d7d=_0x1cd32e;var _0x58934e,_0x42a971;if(this[_0x469d7d(0x3eb)]===$['UNIVER_DOC']){const {unitID:_0x1e5ac3,mutations:_0x2de722,memberID:_0x3dec3f}=_0x95209c,_0x317137=_0x2de722[0x0][_0x469d7d(0x1ea)][_0x469d7d(0x391)];Array[_0x469d7d(0x2b8)](_0x317137)&&_0x317137[_0x469d7d(0x23c)]>0x0&&((_0x42a971=(_0x58934e=this[_0x469d7d(0x20b)])[_0x469d7d(0x112)])==null||_0x42a971[_0x469d7d(0x124)](_0x58934e,{'unitID':_0x1e5ac3,'memberID':_0x3dec3f,'textRanges':_0x317137}));}}[_0x1cd32e(0x42c)](){const _0x418b2e=_0x1cd32e;this[_0x418b2e(0x35b)][_0x418b2e(0x460)](this[_0x418b2e(0x3f7)],this['type'],this[_0x418b2e(0x3d4)],this[_0x418b2e(0x1f6)]);}[_0x1cd32e(0x326)](){const _0x2c3081=_0x1cd32e;return this[_0x2c3081(0x4d3)][_0x2c3081(0x493)](this[_0x2c3081(0x3f7)]);}[_0x1cd32e(0x454)](){const _0x13544e=_0x1cd32e;this[_0x13544e(0x4d3)][_0x13544e(0x18d)](this[_0x13544e(0x3f7)]);}[_0x1cd32e(0x40f)](_0x1ba6a2){const _0x15266a=_0x1cd32e;var _0x4f549b;const _0x4f91d6=this[_0x15266a(0x3e5)](_0x1ba6a2),_0x5b1a4e=a[_0x15266a(0x305)](_0x4f91d6[_0x15266a(0x423)],this[_0x15266a(0x45a)],{'fromCollab':!0x0});if(!_0x5b1a4e[_0x15266a(0x19a)])throw _0x5b1a4e[_0x15266a(0x275)]instanceof Error?_0x5b1a4e[_0x15266a(0x275)]:new Error((_0x4f549b=_0x5b1a4e[_0x15266a(0x275)])!=null?_0x4f549b:_0x15266a(0x259));this[_0x15266a(0x1cf)](_0x4f91d6),this['_transformUndoredo'](_0x1ba6a2),this[_0x15266a(0x3fc)](_0x4f91d6),this[_0x15266a(0x35a)](_0x4f91d6),this[_0x15266a(0x454)]();}}let ie=class extends J{constructor(_0x13d173,_0x410942,_0x15aa24,_0x5c5bfd,_0x468e58,_0x142b97,_0xe8f4cc,_0x34ef49,_0x5ae937,_0x214462){const _0xd1c2eb=_0x1cd32e;super(_0x13d173,_0x410942,null,[],_0x15aa24,_0x34ef49,_0xe8f4cc,_0x5c5bfd,_0x468e58),u(this,'status',_0xd1c2eb(0x2fc)),(this['_injector']=_0x142b97,this[_0xd1c2eb(0x252)]=_0x5ae937,this[_0xd1c2eb(0x3d7)]=_0x214462);}[_0x1cd32e(0x246)](_0x109df6){const _0x312b6d=_0x1cd32e,_0x367f4d=this[_0x312b6d(0x33d)][_0x312b6d(0x53f)](k,this['unitID'],this[_0x312b6d(0x3eb)],[_0x109df6],this[_0x312b6d(0x20b)]);return _0x367f4d['_schedule'](),_0x367f4d[_0x312b6d(0x42c)](),_0x367f4d;}[_0x1cd32e(0x13b)](_0x2e68a5){const _0x5bf488=_0x1cd32e;if(this[_0x5bf488(0x3be)](_0x2e68a5))return this[_0x5bf488(0x33d)][_0x5bf488(0x53f)](x,this[_0x5bf488(0x3f7)],this[_0x5bf488(0x3eb)],null,[],null,[_0x2e68a5],this[_0x5bf488(0x20b)]);try{const _0x537b08=this[_0x5bf488(0x3d7)][_0x5bf488(0x24d)](_0x2e68a5,[Ys]);if(_[_0x5bf488(0x2c5)](_0x537b08)){const {c1Prime:_0xb5c3e5}=_0x537b08;return this[_0x5bf488(0x40f)](_0xb5c3e5),this;}throw _0x537b08[_0x5bf488(0x275)];}catch(_0x4e58a2){return this['_logService'][_0x5bf488(0x275)](_0x4e58a2),this[_0x5bf488(0x315)](!0x1);}}['_onConflict'](_0x526342){const _0x2658a3=_0x1cd32e;return this[_0x2658a3(0x33d)][_0x2658a3(0x53f)](F,this[_0x2658a3(0x3f7)],this[_0x2658a3(0x3eb)],null,[],this[_0x2658a3(0x20b)],_0x526342);}['onRemoteAck'](){const _0x52ab35=_0x1cd32e;throw new Error(_0x52ab35(0x1c7));}[_0x1cd32e(0x28e)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x1cd32e(0x13d)](){return this;}['toggleOffline'](){const _0xccc2b2=_0x1cd32e;return this[_0xccc2b2(0x33d)][_0xccc2b2(0x53f)](G,this[_0xccc2b2(0x3f7)],this['type'],null,[],this[_0xccc2b2(0x20b)]);}[_0x1cd32e(0x458)](){return this;}['resend'](){const _0x265b17=_0x1cd32e;throw new Error(_0x265b17(0x1ce));}[_0x1cd32e(0x19f)](){const _0x20af9f=_0x1cd32e,_0x9d1295=this[_0x20af9f(0x4d3)]['getCurrentRevOfUnit'](this[_0x20af9f(0x3f7)]);return this[_0x20af9f(0x20b)][_0x20af9f(0x4de)]({'from':_0x9d1295,'to':0x0}),this['_injector'][_0x20af9f(0x53f)](x,this['unitID'],this[_0x20af9f(0x3eb)],null,[],null,[],this[_0x20af9f(0x20b)]);}};ie=z([g(0x3,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x12c)])),g(0x4,a['Inject'](exports['LocalCacheService'])),g(0x5,a[_0x1cd32e(0x151)](a['Injector'])),g(0x6,a['IUndoRedoService']),g(0x7,a[_0x1cd32e(0x1ee)]),g(0x8,a['ILogService']),g(0x9,_[_0x1cd32e(0x4f5)])],ie);let k=class extends J{constructor(_0x37686f,_0x26c2ec,_0x474610,_0x3ad401,_0x3aefca,_0x3c4132,_0x3bf0fd,_0x46e3c9,_0x2310fc,_0x2db830,_0x6edbbb,_0x4a7a0e,_0x31dc01,_0x4a76ef){const _0x53e77f=_0x1cd32e;super(_0x37686f,_0x26c2ec,null,_0x474610,_0x3ad401,_0x2db830,_0x4a76ef,_0x3c4132,_0x3bf0fd),u(this,_0x53e77f(0x2d8),_0x53e77f(0x251)),u(this,'_scheduleTimestamp',null),u(this,'_sendingTimer',null),(this[_0x53e77f(0x33d)]=_0x3aefca,this[_0x53e77f(0x329)]=_0x46e3c9,this[_0x53e77f(0x252)]=_0x2310fc,this['_configService']=_0x6edbbb,this[_0x53e77f(0x3d7)]=_0x4a7a0e,this['_univerInstanceService']=_0x31dc01);}[_0x1cd32e(0x246)](_0x5074cd){const _0x29c511=_0x1cd32e;return this[_0x29c511(0x1f6)][_0x29c511(0x435)](_0x5074cd),this[_0x29c511(0x42c)](),this;}['onRemoteChangeset'](_0x58ce97){const _0x892064=_0x1cd32e;if(this[_0x892064(0x3be)](_0x58ce97))return this[_0x892064(0x262)](),this[_0x892064(0x33d)][_0x892064(0x53f)](x,this[_0x892064(0x3f7)],this[_0x892064(0x3eb)],null,this['_pendingMutations'],null,[_0x58ce97],this[_0x892064(0x20b)]);try{const _0x38cda2=this[_0x892064(0x3d7)][_0x892064(0x24d)](_0x58ce97,this[_0x892064(0x1f6)]);if(_[_0x892064(0x2c5)](_0x38cda2)){const {c1Prime:_0x482d34,m2Prime:_0x468810}=_0x38cda2;this[_0x892064(0x40f)](_0x482d34);const _0x24f4f2=this[_0x892064(0x33d)][_0x892064(0x53f)](k,this[_0x892064(0x3f7)],this[_0x892064(0x3eb)],_0x468810,this[_0x892064(0x20b)]);return this[_0x892064(0x262)](),_0x24f4f2['_schedule'](this[_0x892064(0x156)]?Math[_0x892064(0x23e)](0x0,new Date()[_0x892064(0x44a)]()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x24f4f2;}throw _0x38cda2[_0x892064(0x275)];}catch(_0x2bd58c){return this[_0x892064(0x252)]['error'](_0x2bd58c),this[_0x892064(0x315)](!0x1);}}[_0x1cd32e(0x417)](){const _0x2946e6=_0x1cd32e;throw new Error(_0x2946e6(0x26f));}[_0x1cd32e(0x28e)](){const _0xaa67ae=_0x1cd32e;throw new Error(_0xaa67ae(0x1f7));}[_0x1cd32e(0x13d)](){return this;}[_0x1cd32e(0x142)](){const _0x4ce534=_0x1cd32e;return this[_0x4ce534(0x262)](),this[_0x4ce534(0x33d)][_0x4ce534(0x53f)](G,this[_0x4ce534(0x3f7)],this[_0x4ce534(0x3eb)],null,this[_0x4ce534(0x1f6)],this[_0x4ce534(0x20b)]);}[_0x1cd32e(0x458)](){return this;}[_0x1cd32e(0x386)](_0x3ef556){const _0x1b733b=_0x1cd32e,_0x240244=_0x3ef556!=null?_0x3ef556:this[_0x1b733b(0x172)]();this['_scheduleTimestamp']=new Date()[_0x1b733b(0x44a)](),this[_0x1b733b(0x201)]=window[_0x1b733b(0x3b3)](()=>{const _0x4c6de0=_0x1b733b;this[_0x4c6de0(0x262)]();let _0x69cad0=null;switch(this[_0x4c6de0(0x3eb)]){case $[_0x4c6de0(0x4aa)]:{_0x69cad0=at(this[_0x4c6de0(0x1f6)],this[_0x4c6de0(0x3f7)],this[_0x4c6de0(0x4bd)],this[_0x4c6de0(0x4d3)],this[_0x4c6de0(0x329)]);break;}case $['UNIVER_DOC']:{this[_0x4c6de0(0x1f6)][_0x4c6de0(0x459)](_0x2f7953=>_0x2f7953['id']===se[_0x4c6de0(0x10a)]['id'])?_0x69cad0=Gs(this[_0x4c6de0(0x1f6)],this['unitID'],this['_univerInstanceService'],this[_0x4c6de0(0x4d3)],this[_0x4c6de0(0x329)]):_0x69cad0=at(this[_0x4c6de0(0x1f6)],this[_0x4c6de0(0x3f7)],this['_univerInstanceService'],this[_0x4c6de0(0x4d3)],this[_0x4c6de0(0x329)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x4c6de0(0x224));}const {changeset:_0x49e8ce,pendingMutations:_0x3e9b5d}=_0x69cad0;this[_0x4c6de0(0x20b)]['onSendChangeset'](_0x49e8ce);const _0x4e90d0=_0x3e9b5d[_0x4c6de0(0x23c)]?this['_injector'][_0x4c6de0(0x53f)](B,this['unitID'],this[_0x4c6de0(0x3eb)],_0x49e8ce,_0x3e9b5d,this['_handler'],void 0x0):this[_0x4c6de0(0x33d)]['createInstance'](W,this[_0x4c6de0(0x3f7)],this[_0x4c6de0(0x3eb)],_0x49e8ce,this['_handler']);_0x4e90d0[_0x4c6de0(0x42c)](),this[_0x4c6de0(0x20b)]['onStateChange'](this,_0x4e90d0);},_0x240244);}['_getSendChangesetTimeout'](){const _0x12f4cf=_0x1cd32e;var _0x282867;const _0x3c9966=this[_0x12f4cf(0x29d)][_0x12f4cf(0x3da)](L);return(_0x282867=_0x3c9966==null?void 0x0:_0x3c9966[_0x12f4cf(0x1d6)])!=null?_0x282867:Qt;}[_0x1cd32e(0x4c4)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1cd32e(0x262)](){const _0x131301=_0x1cd32e;this['_sendingTimer']!=null&&(clearTimeout(this[_0x131301(0x201)]),this[_0x131301(0x201)]=null);}['_onConflict'](_0x2c6a65){const _0x12ba7f=_0x1cd32e;return this[_0x12ba7f(0x262)](),this[_0x12ba7f(0x33d)][_0x12ba7f(0x53f)](F,this[_0x12ba7f(0x3f7)],this[_0x12ba7f(0x3eb)],null,this[_0x12ba7f(0x1f6)],this[_0x12ba7f(0x20b)],_0x2c6a65);}};k=z([g(0x4,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),g(0x5,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x12c)])),g(0x6,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x272)])),g(0x7,a[_0x1cd32e(0x151)](X)),g(0x8,a['ILogService']),g(0x9,a[_0x1cd32e(0x1ee)]),g(0xa,a[_0x1cd32e(0x4d2)]),g(0xb,_[_0x1cd32e(0x4f5)]),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0x1cd32e(0x11a)])],k);let W=class extends J{constructor(_0x4951b0,_0x25f762,_0x56e9e0,_0x1baf65,_0x39d1a2,_0x48d4fb,_0xfdf9f7,_0x415121,_0x1897e3,_0x5cfde7,_0x322dc1){const _0x158e5c=_0x1cd32e;super(_0x4951b0,_0x25f762,_0x56e9e0,[],_0x1baf65,_0x415121,_0x322dc1,_0x48d4fb,_0xfdf9f7),u(this,_0x158e5c(0x2d8),_0x158e5c(0x154)),u(this,_0x158e5c(0x4d0),0x0),u(this,_0x158e5c(0x515)),u(this,_0x158e5c(0x394)),(this[_0x158e5c(0x33d)]=_0x39d1a2,this[_0x158e5c(0x252)]=_0x1897e3,this['_transformService']=_0x5cfde7);}[_0x1cd32e(0x246)](_0x472bb1){const _0x5cc4bc=_0x1cd32e;this[_0x5cc4bc(0x262)]();const _0x333d98=this[_0x5cc4bc(0x33d)][_0x5cc4bc(0x53f)](B,this[_0x5cc4bc(0x3f7)],this[_0x5cc4bc(0x3eb)],this['_awaitingChangeset'],[_0x472bb1],this[_0x5cc4bc(0x20b)],this[_0x5cc4bc(0x515)]);return _0x333d98[_0x5cc4bc(0x42c)](),_0x333d98;}['onRemoteChangeset'](_0x21fe10){const _0xe8d0aa=_0x1cd32e;if(this[_0xe8d0aa(0x3be)](_0x21fe10))return this[_0xe8d0aa(0x262)](),this[_0xe8d0aa(0x33d)][_0xe8d0aa(0x53f)](x,this[_0xe8d0aa(0x3f7)],this[_0xe8d0aa(0x3eb)],this[_0xe8d0aa(0x3d4)],[],null,[_0x21fe10],this[_0xe8d0aa(0x20b)]);try{const _0x27f320=this[_0xe8d0aa(0x3d7)][_0xe8d0aa(0x466)]([_0x21fe10],[this['_awaitingChangeset']],!0x1);if(_[_0xe8d0aa(0x525)](_0x27f320)){const {c1Prime:_0x14f5e0,c2Prime:_0x487cb8}=_0x27f320;this['_executeRemoteChangeset'](_0x14f5e0[0x0]),_0x487cb8[0x0][_0xe8d0aa(0x21c)]=this[_0xe8d0aa(0x326)](),this['_clearScheduledTask']();const _0x80ea4b=this[_0xe8d0aa(0x33d)]['createInstance'](W,this['unitID'],this[_0xe8d0aa(0x3eb)],_0x487cb8[0x0],this[_0xe8d0aa(0x20b)]);return _0x80ea4b[_0xe8d0aa(0x42c)](),_0x80ea4b;}return this[_0xe8d0aa(0x315)](!0x1);}catch(_0x56ebc4){return this['_logService'][_0xe8d0aa(0x275)](_0x56ebc4),this[_0xe8d0aa(0x315)](!0x1);}}[_0x1cd32e(0x417)](_0x4752e5){const _0x5cb1de=_0x1cd32e;this[_0x5cb1de(0x262)]();const _0x5c88a1=this[_0x5cb1de(0x4d3)][_0x5cb1de(0x493)](this[_0x5cb1de(0x3f7)]);if(_0x4752e5['revision']<_0x5c88a1-0x1)return this;if(this[_0x5cb1de(0x3be)](_0x4752e5))return this[_0x5cb1de(0x33d)][_0x5cb1de(0x53f)](x,this[_0x5cb1de(0x3f7)],this[_0x5cb1de(0x3eb)],null,[],this['_awaitingChangeset'],[],this[_0x5cb1de(0x20b)]);this[_0x5cb1de(0x454)]();const _0x9605a4=this[_0x5cb1de(0x33d)][_0x5cb1de(0x53f)](ie,this[_0x5cb1de(0x3f7)],this[_0x5cb1de(0x3eb)],this['_handler']);return _0x9605a4[_0x5cb1de(0x42c)](),_0x9605a4;}[_0x1cd32e(0x28e)](_0x69035c){const _0x43e70b=_0x1cd32e;return this[_0x43e70b(0x315)](!!(_0x69035c!=null&&_0x69035c[_0x43e70b(0x4f1)]));}[_0x1cd32e(0x13d)](_0x48a665){const _0x492ae6=_0x1cd32e;return this['_resendTimeout']>Pt?this[_0x492ae6(0x142)]():(this['_resendTimer']=Ut(this[_0x492ae6(0x4d0)],{'timeout':this[_0x492ae6(0x4d0)],'reqId':_0x48a665[_0x492ae6(0x3f2)]}),this[_0x492ae6(0x394)]=this[_0x492ae6(0x515)][_0x492ae6(0x22b)](({reqId:_0x15b055,timeout:_0xde82c3})=>{const _0x1234ca=_0x492ae6;this[_0x1234ca(0x312)](_0x15b055,_0xde82c3);}),this);}[_0x1cd32e(0x142)](){const _0x2de5b0=_0x1cd32e;return this['_clearScheduledTask'](),this[_0x2de5b0(0x33d)]['createInstance'](G,this[_0x2de5b0(0x3f7)],this[_0x2de5b0(0x3eb)],this[_0x2de5b0(0x3d4)],[],this[_0x2de5b0(0x20b)]);}[_0x1cd32e(0x458)](){return this;}[_0x1cd32e(0x4c4)](){const _0x52d73e=_0x1cd32e;this['_handler']['onSendChangeset'](this[_0x52d73e(0x3d4)]);}[_0x1cd32e(0x315)](_0x71c753){const _0x43cbdc=_0x1cd32e;return this[_0x43cbdc(0x262)](),this[_0x43cbdc(0x33d)][_0x43cbdc(0x53f)](F,this[_0x43cbdc(0x3f7)],this[_0x43cbdc(0x3eb)],this['_awaitingChangeset'],[],this[_0x43cbdc(0x20b)],_0x71c753);}[_0x1cd32e(0x312)](_0x58bd31,_0x27a159){const _0x4230f3=_0x1cd32e;var _0x33bc1f;_0x58bd31===((_0x33bc1f=this[_0x4230f3(0x3d4)])==null?void 0x0:_0x33bc1f[_0x4230f3(0x3f2)])&&(this[_0x4230f3(0x4c4)](),this[_0x4230f3(0x4d0)]=_0x27a159===0x0?0x3e8:_0x27a159*0x2);}[_0x1cd32e(0x262)](){const _0x2959ce=_0x1cd32e;var _0x48f3d5;(_0x48f3d5=this['_sender'])==null||_0x48f3d5['unsubscribe'](),this[_0x2959ce(0x4d0)]=0x0;}};W=z([g(0x4,a['Inject'](a[_0x1cd32e(0x2e8)])),g(0x5,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x12c)])),g(0x6,a['Inject'](exports[_0x1cd32e(0x272)])),g(0x7,a[_0x1cd32e(0x1ee)]),g(0x8,a['ILogService']),g(0x9,_[_0x1cd32e(0x4f5)]),g(0xa,a[_0x1cd32e(0x11a)])],W);let B=class extends J{constructor(_0x36c530,_0x5f81a5,_0x3e378b,_0x695ffa,_0x129970,_0x2a4249,_0x19a5db,_0x484cd3,_0xe448c4,_0x5b8947,_0x57a80a,_0x1c56ae,_0x288658){const _0x2292ff=_0x1cd32e;super(_0x36c530,_0x5f81a5,_0x3e378b,_0x695ffa,_0x129970,_0x5b8947,_0x288658,_0x484cd3,_0xe448c4),u(this,_0x2292ff(0x2d8),_0x2292ff(0x243)),u(this,'_resendTimeout',0x0),u(this,'_resendTimer'),u(this,_0x2292ff(0x394)),(this[_0x2292ff(0x33d)]=_0x19a5db,this['_logService']=_0x57a80a,this[_0x2292ff(0x3d7)]=_0x1c56ae,_0x2a4249&&(this[_0x2292ff(0x515)]=_0x2a4249,this[_0x2292ff(0x394)]=this[_0x2292ff(0x515)][_0x2292ff(0x22b)](({reqId:_0x225a8f,timeout:_0x8b3129})=>{const _0x4acc81=_0x2292ff;this[_0x4acc81(0x312)](_0x225a8f,_0x8b3129);})));}[_0x1cd32e(0x246)](_0x15c124){const _0x454794=_0x1cd32e;return this[_0x454794(0x1f6)]['push'](_0x15c124),this;}['onRemoteChangeset'](_0x133775){const _0x45ff7c=_0x1cd32e;if(this[_0x45ff7c(0x3be)](_0x133775))return this[_0x45ff7c(0x262)](),this[_0x45ff7c(0x33d)][_0x45ff7c(0x53f)](x,this[_0x45ff7c(0x3f7)],this[_0x45ff7c(0x3eb)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x133775],this[_0x45ff7c(0x20b)]);try{const _0x286d1c=this[_0x45ff7c(0x3d7)][_0x45ff7c(0x466)]([_0x133775],[this[_0x45ff7c(0x3d4)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x286d1c)){const {c1Prime:_0x225dd1,c2Prime:_0x392248}=_0x286d1c,_0x18b021=this['_transformService'][_0x45ff7c(0x24d)](_0x225dd1[0x0],this[_0x45ff7c(0x1f6)]);if(_[_0x45ff7c(0x2c5)](_0x18b021)){const {c1Prime:_0x18eff2,m2Prime:_0x1d483b}=_0x18b021;return this[_0x45ff7c(0x40f)](_0x18eff2),_0x392248[0x0][_0x45ff7c(0x21c)]=this[_0x45ff7c(0x326)](),this[_0x45ff7c(0x262)](),this['_injector']['createInstance'](B,this[_0x45ff7c(0x3f7)],this[_0x45ff7c(0x3eb)],_0x392248[0x0],_0x1d483b,this[_0x45ff7c(0x20b)],void 0x0);}throw _0x18b021[_0x45ff7c(0x275)];}throw _0x286d1c[_0x45ff7c(0x275)];}catch(_0x40a81d){return this['_logService'][_0x45ff7c(0x275)](_0x40a81d),this[_0x45ff7c(0x315)](!0x1);}}[_0x1cd32e(0x417)](_0x446154){const _0x13afbc=_0x1cd32e;if(this[_0x13afbc(0x262)](),this[_0x13afbc(0x3be)](_0x446154))return this[_0x13afbc(0x33d)][_0x13afbc(0x53f)](x,this[_0x13afbc(0x3f7)],this[_0x13afbc(0x3eb)],null,this['_pendingMutations'],this[_0x13afbc(0x3d4)],[],this[_0x13afbc(0x20b)]);this['_incrementRevisionNumber']();const _0x16caa3=this['_injector'][_0x13afbc(0x53f)](k,this[_0x13afbc(0x3f7)],this[_0x13afbc(0x3eb)],this[_0x13afbc(0x1f6)],this['_handler']);return _0x16caa3['_schedule'](),_0x16caa3[_0x13afbc(0x42c)](),_0x16caa3;}[_0x1cd32e(0x28e)](_0x9bbd8){const _0x4a69ed=_0x1cd32e;return this[_0x4a69ed(0x315)](!!(_0x9bbd8!=null&&_0x9bbd8[_0x4a69ed(0x4f1)]));}[_0x1cd32e(0x13d)](_0xddee62){const _0x298beb=_0x1cd32e;return this[_0x298beb(0x4d0)]>Pt?this[_0x298beb(0x142)]():(this[_0x298beb(0x515)]=Ut(this[_0x298beb(0x4d0)],{'timeout':this[_0x298beb(0x4d0)],'reqId':_0xddee62[_0x298beb(0x3f2)]}),this[_0x298beb(0x394)]=this['_resendTimer'][_0x298beb(0x22b)](({reqId:_0x47b65f,timeout:_0x31a2fc})=>{const _0x110e3b=_0x298beb;this[_0x110e3b(0x312)](_0x47b65f,_0x31a2fc);}),this);}[_0x1cd32e(0x142)](){const _0x495a61=_0x1cd32e;return this['_clearScheduledTask'](),this[_0x495a61(0x33d)][_0x495a61(0x53f)](G,this[_0x495a61(0x3f7)],this[_0x495a61(0x3eb)],this[_0x495a61(0x3d4)],this['_pendingMutations'],this[_0x495a61(0x20b)]);}[_0x1cd32e(0x458)](){return this;}[_0x1cd32e(0x4c4)](){const _0x1f9d61=_0x1cd32e;this[_0x1f9d61(0x20b)][_0x1f9d61(0x524)](this['_awaitingChangeset']);}[_0x1cd32e(0x315)](_0x1ba0db){const _0x535647=_0x1cd32e;return this[_0x535647(0x262)](),this[_0x535647(0x33d)][_0x535647(0x53f)](F,this[_0x535647(0x3f7)],this[_0x535647(0x3eb)],null,this[_0x535647(0x1f6)],this[_0x535647(0x20b)],_0x1ba0db);}[_0x1cd32e(0x312)](_0x504129,_0x501a4f){const _0x2160dc=_0x1cd32e;var _0x5e0bc7;_0x504129===((_0x5e0bc7=this[_0x2160dc(0x3d4)])==null?void 0x0:_0x5e0bc7[_0x2160dc(0x3f2)])&&(this[_0x2160dc(0x4c4)](),this['_resendTimeout']=_0x501a4f===0x0?0x3e8:_0x501a4f*0x2);}[_0x1cd32e(0x262)](){const _0x2df498=_0x1cd32e;var _0x87b79d;(_0x87b79d=this['_sender'])==null||_0x87b79d['unsubscribe'](),this[_0x2df498(0x4d0)]=0x0;}};B=z([g(0x6,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),g(0x7,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x12c)])),g(0x8,a['Inject'](exports[_0x1cd32e(0x272)])),g(0x9,a[_0x1cd32e(0x1ee)]),g(0xa,a[_0x1cd32e(0x38c)]),g(0xb,_[_0x1cd32e(0x4f5)]),g(0xc,a['IUndoRedoService'])],B);let F=class extends J{constructor(_0x345dad,_0x5b4129,_0x3a9d71,_0x19a324,_0x2460ef,_0x12adc7=!0x1,_0x3cfbfa,_0x23348f,_0x55e542,_0xcf0350,_0x184c0c,_0x1f7993,_0x1109eb){const _0x2128f5=_0x1cd32e;super(_0x345dad,_0x5b4129,_0x3a9d71,_0x19a324,_0x2460ef,_0x23348f,_0x55e542,_0x184c0c,_0xcf0350),u(this,'status',_0x2128f5(0x24e)),(this[_0x2128f5(0x4e2)]=_0x12adc7,this[_0x2128f5(0x202)]=_0x3cfbfa,this[_0x2128f5(0x3fd)]=_0x1f7993,this[_0x2128f5(0x26b)]=_0x1109eb,this[_0x2128f5(0x17a)](),this['_clearLocalCache'](),this[_0x2128f5(0x30a)]());}[_0x1cd32e(0x246)](){return this;}[_0x1cd32e(0x13b)](){return this;}[_0x1cd32e(0x417)](){return this;}['onRemoteRej'](){return this;}['onRemoteRetry'](){return this;}[_0x1cd32e(0x142)](){return this;}[_0x1cd32e(0x458)](){return this;}[_0x1cd32e(0x4c4)](){const _0x83a11c=_0x1cd32e;throw new Error(_0x83a11c(0x3ac));}['_clearLocalCache'](){const _0x5913a7=_0x1cd32e;this[_0x5913a7(0x35b)][_0x5913a7(0x460)](this[_0x5913a7(0x3f7)],this[_0x5913a7(0x3eb)],null,[]);}['_showConflictNotification'](){const _0x22ed00=_0x1cd32e;this['_isPermissionRej']?this[_0x22ed00(0x26b)]['show']({'title':this[_0x22ed00(0x3fd)]['t'](_0x22ed00(0x16b)),'content':this[_0x22ed00(0x3fd)]['t']('permission.content'),'type':'error','duration':0x0}):this['_notificationService'][_0x22ed00(0x3df)]({'title':this[_0x22ed00(0x3fd)]['t']('conflict.title'),'content':this[_0x22ed00(0x3fd)]['t'](_0x22ed00(0x12b)),'type':_0x22ed00(0x275),'duration':0x0});}['_disableEditing'](){const _0x47a91c=_0x1cd32e;this[_0x47a91c(0x202)]['updatePermissionPoint'](new C[(_0x47a91c(0x41a))](this[_0x47a91c(0x3f7)])['id'],!0x1);}};F=z([g(0x6,a[_0x1cd32e(0x151)](a['IPermissionService'])),g(0x7,a['ICommandService']),g(0x8,a[_0x1cd32e(0x11a)]),g(0x9,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x272)])),g(0xa,a['Inject'](_[_0x1cd32e(0x12c)])),g(0xb,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x223)])),g(0xc,A[_0x1cd32e(0x331)])],F);let G=class extends J{constructor(_0x1c5677,_0x5d650c,_0x54d3e1,_0x5765c6,_0x28144b,_0x45615c,_0x3a0dc1,_0x267018,_0x4fcf19,_0x23983c){const _0x506f39=_0x1cd32e;super(_0x1c5677,_0x5d650c,_0x54d3e1,_0x5765c6,_0x28144b,_0x4fcf19,_0x23983c,_0x3a0dc1,_0x267018),u(this,'status',_0x506f39(0x17d)),this['_injector']=_0x45615c;}[_0x1cd32e(0x246)](_0x37dce3){const _0x19f08d=_0x1cd32e;return this[_0x19f08d(0x1f6)][_0x19f08d(0x435)](_0x37dce3),this[_0x19f08d(0x42c)](),this;}['onRemoteChangeset'](_0x31f181){const _0x3c52b2=_0x1cd32e;throw new Error(_0x3c52b2(0x1e0));}[_0x1cd32e(0x417)](){const _0x4792c1=_0x1cd32e;throw new Error(_0x4792c1(0x4cb));}['onRemoteRej'](){const _0x58f3b9=_0x1cd32e;throw new Error(_0x58f3b9(0x506));}[_0x1cd32e(0x13d)](){return this;}[_0x1cd32e(0x142)](){return this;}['toggleOnline'](){const _0x55724c=_0x1cd32e,{_injector:_0x5a4f32,_pendingMutations:_0xf99786,_awaitingChangeset:_0x3a2343,unitID:_0x4175fb,_handler:_0x34d2e2,type:_0x1573b6}=this,_0x13a276=wt(_0x5a4f32,_0x4175fb,_0x1573b6,_0x3a2343,_0xf99786,_0x34d2e2);return _0x13a276 instanceof k?_0x13a276[_0x55724c(0x386)]():(_0x13a276 instanceof B||_0x13a276 instanceof W)&&_0x13a276[_0x55724c(0x4c4)](),_0x13a276;}[_0x1cd32e(0x4c4)](){const _0x166523=_0x1cd32e;throw new Error(_0x166523(0x295));}};G=z([g(0x5,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),g(0x6,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x12c)])),g(0x7,a[_0x1cd32e(0x151)](exports['LocalCacheService'])),g(0x8,a[_0x1cd32e(0x1ee)]),g(0x9,a[_0x1cd32e(0x11a)])],G);let x=class extends J{constructor(_0x188c3d,_0x4797b6,_0x498cf5,_0x3af27a,_0x57ba12,_0xee498d,_0x58f345,_0xad7246,_0x5d6cef,_0x4856bd,_0x18d0b3,_0x34700b,_0x5310af,_0x5aff2e){const _0x5165db=_0x1cd32e;super(_0x188c3d,_0x4797b6,_0x498cf5,_0x3af27a,_0x58f345,_0x34700b,_0x5310af,_0x5d6cef,_0x4856bd),u(this,_0x5165db(0x2d8),_0x5165db(0x25a)),(this[_0x5165db(0x2d4)]=_0x57ba12,this[_0x5165db(0x2ee)]=_0xee498d,this[_0x5165db(0x33d)]=_0xad7246,this[_0x5165db(0x252)]=_0x18d0b3,this[_0x5165db(0x3d7)]=_0x5aff2e);}[_0x1cd32e(0x337)](_0x2df118){const _0x524f9f=_0x1cd32e;try{const _0x3ca2e1=[..._0x2df118,...this[_0x524f9f(0x2ee)]],_0x23c5f0=[this[_0x524f9f(0x3d4)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x57787a=>!!_0x57787a);let _0x2e767e,_0x554bdc;if(_0x23c5f0[_0x524f9f(0x23c)]){const _0x17217=this['_transformService'][_0x524f9f(0x466)](_0x3ca2e1,_0x23c5f0,!0x1);if(!_[_0x524f9f(0x525)](_0x17217))throw _0x17217[_0x524f9f(0x275)];_0x2e767e=_0x17217[_0x524f9f(0x123)],_0x554bdc=_0x17217['c2Prime'];}else _0x2e767e=_0x3ca2e1,_0x554bdc=[];let _0x6ce34a=this[_0x524f9f(0x1f6)];_0x2e767e[_0x524f9f(0x12a)](_0x26d48a=>{const _0x2927d5=_0x524f9f;let _0x43118b;if(_0x6ce34a[_0x2927d5(0x23c)]){const _0xed4ecb=this[_0x2927d5(0x3d7)][_0x2927d5(0x24d)](_0x26d48a,_0x6ce34a);if(!_[_0x2927d5(0x2c5)](_0xed4ecb))throw _0xed4ecb[_0x2927d5(0x275)];_0x43118b=_0xed4ecb[_0x2927d5(0x123)],_0x6ce34a=_0xed4ecb['m2Prime'];}else _0x43118b=_0x26d48a;this[_0x2927d5(0x40f)](_0x43118b);}),this[_0x524f9f(0x2d4)]&&this[_0x524f9f(0x454)](),this[_0x524f9f(0x3d4)]&&_0x554bdc[_0x524f9f(0x23c)]&&(_0x554bdc[0x0][_0x524f9f(0x21c)]=this[_0x524f9f(0x326)]());let _0x312f29;if(this[_0x524f9f(0x3d4)]&&_0x6ce34a[_0x524f9f(0x23c)]!==0x0)_0x312f29=this[_0x524f9f(0x33d)][_0x524f9f(0x53f)](B,this['unitID'],this[_0x524f9f(0x3eb)],_0x554bdc[0x0],_0x6ce34a,this[_0x524f9f(0x20b)],void 0x0);else{if(this[_0x524f9f(0x3d4)]&&_0x6ce34a[_0x524f9f(0x23c)]===0x0)_0x554bdc[0x0][_0x524f9f(0x21c)]=this['_getCurrentRevision'](),_0x312f29=this[_0x524f9f(0x33d)][_0x524f9f(0x53f)](W,this[_0x524f9f(0x3f7)],this[_0x524f9f(0x3eb)],_0x554bdc[0x0],this[_0x524f9f(0x20b)]);else{if(_0x6ce34a[_0x524f9f(0x23c)]!==0x0){const _0x25844f=this[_0x524f9f(0x33d)][_0x524f9f(0x53f)](k,this[_0x524f9f(0x3f7)],this[_0x524f9f(0x3eb)],_0x6ce34a,this[_0x524f9f(0x20b)]);_0x25844f[_0x524f9f(0x386)](),_0x312f29=_0x25844f;}else _0x312f29=this[_0x524f9f(0x33d)][_0x524f9f(0x53f)](ie,this['unitID'],this[_0x524f9f(0x3eb)],this['_handler']);}}return _0x312f29[_0x524f9f(0x42c)](),_0x312f29;}catch(_0x588726){return this[_0x524f9f(0x252)]['error'](_0x524f9f(0x50c),_0x524f9f(0x538),_0x588726),this[_0x524f9f(0x33d)]['createInstance'](F,this[_0x524f9f(0x3f7)],this[_0x524f9f(0x3eb)],this[_0x524f9f(0x3d4)],this[_0x524f9f(0x1f6)],this[_0x524f9f(0x20b)],!0x1);}}[_0x1cd32e(0x4c4)](){const _0x3fe0f9=_0x1cd32e;throw new Error(_0x3fe0f9(0x366));}[_0x1cd32e(0x246)](_0x1af0bf){const _0x3c73fc=_0x1cd32e;return this[_0x3c73fc(0x1f6)][_0x3c73fc(0x435)](_0x1af0bf),this;}[_0x1cd32e(0x13b)](_0x2d80a7){return this['_queuedRemoteChangesets']['push'](_0x2d80a7),this;}['onRemoteAck'](_0x3c5ce6){const _0x1ad842=_0x1cd32e;if(this[_0x1ad842(0x3d4)])return this['_acknowledgedAwaitingChangeset']=this[_0x1ad842(0x3d4)],this[_0x1ad842(0x3d4)]=null,this;throw new Error(_0x1ad842(0x291));}[_0x1cd32e(0x28e)](_0x3d023b){const _0x163422=_0x1cd32e;return this[_0x163422(0x315)](!!(_0x3d023b!=null&&_0x3d023b[_0x163422(0x4f1)]));}[_0x1cd32e(0x13d)](){return this;}['toggleOffline'](){const _0x491ac3=_0x1cd32e;return this[_0x491ac3(0x33d)][_0x491ac3(0x53f)](G,this[_0x491ac3(0x3f7)],this[_0x491ac3(0x3eb)],this[_0x491ac3(0x3d4)],this[_0x491ac3(0x1f6)],this['_handler']);}[_0x1cd32e(0x458)](){return this;}[_0x1cd32e(0x315)](_0x3f6fc8){const _0x272dfe=_0x1cd32e;return this[_0x272dfe(0x33d)]['createInstance'](F,this[_0x272dfe(0x3f7)],this[_0x272dfe(0x3eb)],this[_0x272dfe(0x3d4)],this[_0x272dfe(0x1f6)],this[_0x272dfe(0x20b)],_0x3f6fc8);}};x=z([g(0x7,a[_0x1cd32e(0x151)](a['Injector'])),g(0x8,a[_0x1cd32e(0x151)](_['RevisionService'])),g(0x9,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x272)])),g(0xa,a[_0x1cd32e(0x38c)]),g(0xb,a['ICommandService']),g(0xc,a[_0x1cd32e(0x11a)]),g(0xd,_[_0x1cd32e(0x4f5)])],x);function wt(_0x6f14d7,_0x42fd80,_0xd72b50,_0x2c78e0,_0x2f752e,_0x2d810d){const _0x14266c=_0x1cd32e;return _0x2c78e0&&_0x2f752e[_0x14266c(0x23c)]?_0x6f14d7[_0x14266c(0x53f)](B,_0x42fd80,_0xd72b50,_0x2c78e0,_0x2f752e,_0x2d810d,void 0x0):_0x2c78e0?_0x6f14d7['createInstance'](W,_0x42fd80,_0xd72b50,_0x2c78e0,_0x2d810d):_0x2f752e[_0x14266c(0x23c)]?_0x6f14d7[_0x14266c(0x53f)](k,_0x42fd80,_0xd72b50,_0x2f752e,_0x2d810d):_0x6f14d7['createInstance'](ie,_0x42fd80,_0xd72b50,_0x2d810d);}var Xs=Object[_0x1cd32e(0x528)],zs=Object[_0x1cd32e(0x41c)],ze=(_0x272c1a,_0x379f8d,_0x52f9a6,_0x34c82d)=>{const _0xbd189f=_0x1cd32e;for(var _0x1b1b2f=_0x34c82d>0x1?void 0x0:_0x34c82d?zs(_0x379f8d,_0x52f9a6):_0x379f8d,_0x3418d9=_0x272c1a[_0xbd189f(0x23c)]-0x1,_0x2ee5fb;_0x3418d9>=0x0;_0x3418d9--)(_0x2ee5fb=_0x272c1a[_0x3418d9])&&(_0x1b1b2f=(_0x34c82d?_0x2ee5fb(_0x379f8d,_0x52f9a6,_0x1b1b2f):_0x2ee5fb(_0x1b1b2f))||_0x1b1b2f);return _0x34c82d&&_0x1b1b2f&&Xs(_0x379f8d,_0x52f9a6,_0x1b1b2f),_0x1b1b2f;},p=(_0x2e0aad,_0x38e8a7)=>(_0xcfa8aa,_0x1f9622)=>_0x38e8a7(_0xcfa8aa,_0x1f9622,_0x2e0aad);exports[_0x1cd32e(0x1d9)]=class extends a['RxDisposable']{constructor(_0x29f120,_0x284a8a,_0x1dd0fb,_0x56255d,_0x44e15f,_0x4ce3e7,_0x39dcc0,_0x4cecec,_0xa23df6,_0x7b7013,_0x57bb8d,_0x7f6ce7,_0x415b34){const _0x3dc542=_0x1cd32e;super(),u(this,_0x3dc542(0x3db),new v['BehaviorSubject'](null)),u(this,_0x3dc542(0x27b),this[_0x3dc542(0x3db)]['asObservable']()),u(this,_0x3dc542(0x110)),u(this,_0x3dc542(0x215),!0x1),u(this,_0x3dc542(0x52b),''),u(this,_0x3dc542(0x1c8),0x0),u(this,_0x3dc542(0x440),this['state$'][_0x3dc542(0x430)](v[_0x3dc542(0x479)](_0x3e7a93=>_0x3e7a93?_0x3e7a93['status']:U[_0x3dc542(0x3c2)]),v['shareReplay'](0x1))),u(this,_0x3dc542(0x422),!0x1),u(this,_0x3dc542(0x25c),[]),(this[_0x3dc542(0x3f7)]=_0x29f120,this[_0x3dc542(0x446)]=_0x284a8a,this[_0x3dc542(0x4c6)]=_0x1dd0fb,this[_0x3dc542(0x33d)]=_0x56255d,this[_0x3dc542(0x35b)]=_0x44e15f,this[_0x3dc542(0x4b7)]=_0x4ce3e7,this[_0x3dc542(0x3fd)]=_0x39dcc0,this['_revisionService']=_0x4cecec,this[_0x3dc542(0x252)]=_0xa23df6,this[_0x3dc542(0x45a)]=_0x7b7013,this['_messageService']=_0x57bb8d,this[_0x3dc542(0x202)]=_0x7f6ce7,this[_0x3dc542(0x195)]=_0x415b34);}get[_0x1cd32e(0x162)](){const _0x4d2614=_0x1cd32e;return this[_0x4d2614(0x110)];}async[_0x1cd32e(0x2bf)](){const _0x24d4e7=_0x1cd32e;if(this[_0x24d4e7(0x162)])throw new Error(_0x24d4e7(0x260));await this[_0x24d4e7(0x3d1)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x38405b=_0xcf6e;this[_0x38405b(0x215)]=!0x1,this[_0x38405b(0x359)]();});}[_0x1cd32e(0x1cc)](_0x317e76){this['_state']=_0x317e76,this['_state$']['next'](_0x317e76);}async[_0x1cd32e(0x3d1)](){const _0x51413c=_0x1cd32e;var _0x13dfd4;this['_updateState'](await this['_createInitialState']()),this[_0x51413c(0x195)]&&((_0x13dfd4=this[_0x51413c(0x195)])==null||_0x13dfd4[_0x51413c(0x354)](this[_0x51413c(0x3f7)]),this[_0x51413c(0x3d2)](this[_0x51413c(0x195)]['getUnitStatus$'](this[_0x51413c(0x3f7)])['subscribe'](_0x2954ce=>{const _0x582765=_0x51413c;this['_logService'][_0x582765(0x1f1)]('[CollaborationEntity]',_0x582765(0x396),_0x2954ce),_0x2954ce===Dt[_0x582765(0x523)]?(this[_0x582765(0x278)][_0x582765(0x3df)]({'content':this[_0x582765(0x3fd)]['t'](_0x582765(0x191)),'type':q[_0x582765(0x28f)]['Warning']}),this[_0x582765(0x202)][_0x582765(0x399)](new C[(_0x582765(0x41a))](this[_0x582765(0x3f7)])['id'],!0x1)):this[_0x582765(0x202)]['updatePermissionPoint'](new C[(_0x582765(0x41a))](this[_0x582765(0x3f7)])['id'],!0x0);})));let _0xf686c6=!0x1;return this[_0x51413c(0x3d2)](this[_0x51413c(0x446)][_0x51413c(0x3f8)][_0x51413c(0x22b)](_0x2c5a77=>{const _0x1ac5fd=_0x51413c;_0x2c5a77===H[_0x1ac5fd(0x345)]?this['_toggleOnline'](_0xf686c6):_0x2c5a77===H[_0x1ac5fd(0x3c2)]&&(_0xf686c6=!0x0,this['_toggleOffline']());})),this[_0x51413c(0x3d2)](this['session']['event$'][_0x51413c(0x22b)](_0x2a7c45=>{const _0x2f7e41=_0x51413c;try{switch(_0x2a7c45['eventID']){case _[_0x2f7e41(0x3e7)][_0x2f7e41(0x350)]:{this[_0x2f7e41(0x140)](_[_0x2f7e41(0x3ed)](_0x2a7c45[_0x2f7e41(0x370)]));break;}case _[_0x2f7e41(0x3e7)]['CHANGESET_ACK']:{this['_onRemoteACK'](_0x2a7c45['data']);break;}case _['CollaborationEvent'][_0x2f7e41(0x159)]:{this[_0x2f7e41(0x2bb)]();break;}case _[_0x2f7e41(0x3e7)][_0x2f7e41(0x511)]:{this[_0x2f7e41(0x2ca)](_0x2a7c45['data']);break;}case _['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x2f7e41(0x20f)](_0x2a7c45[_0x2f7e41(0x370)][_0x2f7e41(0x188)]['map'](_0x8cfefa=>_['parseProtocolChangeset'](_0x8cfefa)));break;}case _['CollaborationEvent'][_0x2f7e41(0x4ae)]:this[_0x2f7e41(0x2bb)]({'isPermissionRej':!0x0});}}catch(_0x175337){throw console[_0x2f7e41(0x275)](_0x2f7e41(0x40b),_0x175337),_0x175337;}})),this['_state'];}[_0x1cd32e(0x3b5)](){const _0xa4b5b1=_0x1cd32e;this[_0xa4b5b1(0x422)]=!0x1;}[_0x1cd32e(0x360)](){const _0x3b86d0=_0x1cd32e;if(this[_0x3b86d0(0x422)])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[_0x3b86d0(0x422)]=!0x0;}['_onLocalMutation'](_0x3d74ee){const _0x2aeb93=_0x1cd32e;this[_0x2aeb93(0x360)](),this[_0x2aeb93(0x1cc)](this['_state'][_0x2aeb93(0x246)](_0x3d74ee)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x82e5fc){const _0x205f10=_0x1cd32e;if(!(_0x82e5fc['revision']<=this['_revisionService'][_0x205f10(0x493)](this[_0x205f10(0x3f7)]))){if(this[_0x205f10(0x215)]){this[_0x205f10(0x25c)][_0x205f10(0x435)](_0x82e5fc);return;}this[_0x205f10(0x450)](_0x82e5fc);}}['_exhaustRemoteChangesetQueue'](){const _0xbc8ea3=_0x1cd32e;this[_0xbc8ea3(0x25c)][_0xbc8ea3(0x12a)](_0x5911f3=>this[_0xbc8ea3(0x450)](_0x5911f3)),this[_0xbc8ea3(0x25c)]=[];}['_applyRemoteChangeset'](_0x3f7da8){const _0x3f23a3=_0x1cd32e,_0x25e279=this['_compressMutationService'][_0x3f23a3(0x2ae)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x3f23a3(0x2d1)])(_0x3f7da8[_0x3f23a3(0x423)],null)||_0x3f7da8['mutations'],_0x395ef0={..._0x3f7da8,'mutations':_0x25e279};this[_0x3f23a3(0x360)](),this[_0x3f23a3(0x1cc)](this[_0x3f23a3(0x110)]['onRemoteChangeset'](_0x395ef0)),this[_0x3f23a3(0x3b5)]();}[_0x1cd32e(0x2fa)](_0x2cbe2f){const _0x991ab9=_0x1cd32e;this[_0x991ab9(0x360)](),this[_0x991ab9(0x1cc)](this[_0x991ab9(0x110)]['onRemoteAck'](_0x2cbe2f)),this[_0x991ab9(0x3b5)]();}[_0x1cd32e(0x2bb)](_0x4c0d16){const _0x4e8172=_0x1cd32e;this[_0x4e8172(0x360)](),this[_0x4e8172(0x1cc)](this['_state']['onRemoteRej'](_0x4c0d16)),this['_unlockTransition']();}[_0x1cd32e(0x2ca)](_0x4c26c6){const _0x5b3ece=_0x1cd32e;this[_0x5b3ece(0x360)](),this[_0x5b3ece(0x1cc)](this[_0x5b3ece(0x110)]['onRemoteRetry'](_0x4c26c6)),this[_0x5b3ece(0x3b5)]();}['_onFetchMissResult'](_0x5ee0f6){const _0x3e00ae=_0x1cd32e;if(!(this['_state']instanceof x))throw new TypeError(_0x3e00ae(0x4bc));const _0x34ce10=_0x5ee0f6[_0x3e00ae(0x479)](_0x25bbb6=>{const _0x1f93ee=_0x3e00ae,_0x703704=this[_0x1f93ee(0x4b7)]['interceptor'][_0x1f93ee(0x352)](this[_0x1f93ee(0x4b7)][_0x1f93ee(0x2ae)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x25bbb6['mutations'],null)||_0x25bbb6['mutations'];return{..._0x25bbb6,'mutations':_0x703704};});this['_lockTransition'](),this[_0x3e00ae(0x1cc)](this['_state']['onMissedChangesetFetched'](_0x34ce10)),this[_0x3e00ae(0x3b5)]();}[_0x1cd32e(0x51e)](){const _0x4a7fcf=_0x1cd32e;this['_lockTransition'](),this[_0x4a7fcf(0x1cc)](this[_0x4a7fcf(0x110)][_0x4a7fcf(0x142)]()),this[_0x4a7fcf(0x3b5)]();}[_0x1cd32e(0x271)](_0xbb1c5f=!0x1){const _0x569296=_0x1cd32e;this[_0x569296(0x360)](),this[_0x569296(0x1cc)](this[_0x569296(0x110)][_0x569296(0x458)]()),this[_0x569296(0x3b5)]();const _0xfcc331=this[_0x569296(0x110)];_0xbb1c5f&&_0xfcc331 instanceof ie&&(this[_0x569296(0x360)](),this[_0x569296(0x1cc)](_0xfcc331[_0x569296(0x19f)]()),this[_0x569296(0x3b5)]());}async[_0x1cd32e(0x235)](){return new Promise(_0x29f0ea=>{const _0x4b8b08=_0xcf6e;this['session'][_0x4b8b08(0x3f8)][_0x4b8b08(0x430)](v['take'](0x1))['subscribe'](async _0x2bac09=>{const _0x12d3a3=_0x4b8b08;_0x29f0ea(await this[_0x12d3a3(0x519)](_0x2bac09===H[_0x12d3a3(0x345)]));});});}['_createHandler'](){const _0x5175b7=_0x1cd32e,_0x210237=this[_0x5175b7(0x3f7)];return{'onStateChange':(_0x14c100,_0x3be655)=>{const _0xb1e67f=_0x5175b7;if(_0x14c100!==this[_0xb1e67f(0x110)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x14c100['status']+_0xb1e67f(0x3e1)+_0x3be655[_0xb1e67f(0x2d8)]+_0xb1e67f(0x2e2)+this[_0xb1e67f(0x110)]['status']);this[_0xb1e67f(0x1cc)](_0x3be655);},'onSendChangeset':_0x4dfd1b=>{const _0x475041=_0x5175b7;_0x4dfd1b[_0x475041(0x20a)]||(_0x4dfd1b[_0x475041(0x20a)]=this[_0x475041(0x52b)],_0x4dfd1b[_0x475041(0x3f2)]=++this[_0x475041(0x1c8)]);const _0x95c8b6={'eventID':_[_0x475041(0x3e7)][_0x475041(0x402)],'data':{'unitID':_0x4dfd1b['unitID'],'unitType':this[_0x475041(0x4c6)],'changeset':_0x4dfd1b,'memberID':this[_0x475041(0x446)][_0x475041(0x2be)]()}};this['session'][_0x475041(0x3d5)](_0x95c8b6,this[_0x475041(0x3f7)]);},'onMissingChangesets':({from:_0x1f00b8,to:_0x15c299})=>{const _0x502745=_0x5175b7;this['_logService'][_0x502745(0x1f1)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x1f00b8+_0x502745(0x4d5)+_0x15c299);const _0xeadab2={'eventID':_['CollaborationEvent'][_0x502745(0x3b6)],'data':{'unitID':_0x210237,'unitType':this[_0x502745(0x4c6)],'from':_0x1f00b8,'to':_0x15c299}};this[_0x502745(0x446)][_0x502745(0x3d5)](_0xeadab2,this['unitID']);}};}async[_0x1cd32e(0x519)](_0x1eb574){const _0x207fe4=_0x1cd32e;var _0x588cbc,_0xf45428;const _0x4cab2d=await this[_0x207fe4(0x35b)][_0x207fe4(0x115)](this[_0x207fe4(0x3f7)]),_0x4bd1f8=(_0x588cbc=_0x4cab2d==null?void 0x0:_0x4cab2d[_0x207fe4(0x423)])!=null?_0x588cbc:[],_0x1cd98c=(_0xf45428=_0x4cab2d==null?void 0x0:_0x4cab2d[_0x207fe4(0x428)])!=null?_0xf45428:null,_0x5b73a9=!!(_0x1cd98c!=null&&_0x1cd98c['sid'])&&!!(_0x1cd98c!=null&&_0x1cd98c[_0x207fe4(0x3f2)]);this[_0x207fe4(0x52b)]=_0x5b73a9?_0x1cd98c['sid']:ys(),this['_changesetReqId']=_0x5b73a9?_0x1cd98c[_0x207fe4(0x3f2)]:0x0;const _0x7c27cf=this[_0x207fe4(0x3f7)];try{this[_0x207fe4(0x2ea)](_0x1cd98c,_0x4bd1f8);}catch(_0x509c96){this[_0x207fe4(0x252)][_0x207fe4(0x275)](_0x509c96);}const _0x1c2ba1=this[_0x207fe4(0x4cc)]();if(_0x1eb574){const _0x2d4c97=wt(this['_injector'],_0x7c27cf,this[_0x207fe4(0x4c6)],_0x1cd98c,_0x4bd1f8,_0x1c2ba1);return _0x2d4c97 instanceof k?_0x2d4c97[_0x207fe4(0x386)]():(_0x2d4c97 instanceof B||_0x2d4c97 instanceof W)&&_0x2d4c97[_0x207fe4(0x4c4)](),_0x2d4c97;}return this[_0x207fe4(0x33d)][_0x207fe4(0x53f)](G,_0x7c27cf,this[_0x207fe4(0x4c6)],_0x1cd98c,_0x4bd1f8,_0x1c2ba1);}[_0x1cd32e(0x2ea)](_0x3b96e5,_0x1a1b3e){const _0x1a696e=_0x1cd32e;var _0x20284d,_0x323590;const _0x24da4b=this[_0x1a696e(0x4b7)][_0x1a696e(0x2ae)][_0x1a696e(0x352)](this[_0x1a696e(0x4b7)][_0x1a696e(0x2ae)][_0x1a696e(0x3f6)]()[_0x1a696e(0x2d1)]);(_0x20284d=_0x24da4b((_0x3b96e5==null?void 0x0:_0x3b96e5['mutations'])||[],null))==null||_0x20284d[_0x1a696e(0x12a)](_0x3d53b6=>this[_0x1a696e(0x45a)][_0x1a696e(0x26d)](_0x3d53b6['id'],_0x3d53b6[_0x1a696e(0x1ea)])),(_0x323590=_0x24da4b(_0x1a1b3e||[],null))==null||_0x323590[_0x1a696e(0x12a)](_0x1af575=>this[_0x1a696e(0x45a)][_0x1a696e(0x26d)](_0x1af575['id'],_0x1af575[_0x1a696e(0x1ea)]));}},exports[_0x1cd32e(0x1d9)]=ze([p(0x3,a[_0x1cd32e(0x151)](a['Injector'])),p(0x4,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x272)])),p(0x5,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x27d)])),p(0x6,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x223)])),p(0x7,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x12c)])),p(0x8,a[_0x1cd32e(0x38c)]),p(0x9,a[_0x1cd32e(0x1ee)]),p(0xa,A[_0x1cd32e(0x53e)]),p(0xb,a[_0x1cd32e(0x19c)]),p(0xc,a[_0x1cd32e(0x1a9)](Re))],exports[_0x1cd32e(0x1d9)]),exports[_0x1cd32e(0x4ea)]=class extends exports[_0x1cd32e(0x1d9)]{constructor(_0x1a38a6,_0x2efa6a,_0x3d92c5,_0x467ea3,_0xfaee36,_0x163a1b,_0x3c45d2,_0x1a5fe7,_0xc36e40,_0x565e84,_0x5b0193,_0x1d2f45,_0x59878a,_0x45311f,_0x5637ff,_0xd358a,_0x4d84c4){const _0xce0c64=_0x1cd32e;super(_0x1a38a6,_0x3d92c5,_0x2efa6a,_0x467ea3,_0xfaee36,_0x163a1b,_0x3c45d2,_0x1a5fe7,_0x59878a,_0x45311f,_0x5637ff,_0xd358a,_0x4d84c4),this['unitID']=_0x1a38a6,this['type']=_0x2efa6a,this[_0xce0c64(0x2ce)]=_0xc36e40,this[_0xce0c64(0x1c3)]=_0x565e84,this['_docTransformSelectionsService']=_0x5b0193,this[_0xce0c64(0x4ad)]=_0x1d2f45;}[_0x1cd32e(0x4cc)](){const _0x5abb0a=_0x1cd32e,_0x32ecc7=super[_0x5abb0a(0x4cc)]();return _0x32ecc7[_0x5abb0a(0x1b4)]=_0xde83bd=>this[_0x5abb0a(0x1c3)]['transformIMECache'](_0xde83bd),_0x32ecc7[_0x5abb0a(0x409)]=_0x399906=>this[_0x5abb0a(0x50f)][_0x5abb0a(0x4e9)](_0x399906),_0x32ecc7[_0x5abb0a(0x112)]=_0x1b7f4b=>this[_0x5abb0a(0x4ad)][_0x5abb0a(0x1a2)](_0x1b7f4b),_0x32ecc7[_0x5abb0a(0x478)]=_0x55cedd=>this[_0x5abb0a(0x1c3)][_0x5abb0a(0x3e4)](_0x55cedd),_0x32ecc7;}async[_0x1cd32e(0x3d1)](){const _0xda796c=_0x1cd32e,_0x3c676f=await super[_0xda796c(0x3d1)]();return this[_0xda796c(0x2ce)][_0xda796c(0x410)][_0xda796c(0x430)](v[_0xda796c(0x165)](this[_0xda796c(0x4eb)]))['subscribe'](_0x1ac0ee=>{const _0x54055f=_0xda796c;if(_0x1ac0ee==null)return;const {unitId:_0x2018e9,redoState:_0x1650d3,commandId:_0x5620dd}=_0x1ac0ee;if(_0x2018e9!==this[_0x54055f(0x3f7)])return;const _0x5cf201={'id':_0x5620dd,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x2018e9,'actions':_0x1650d3['actions'],'textRanges':null}};this['_onLocalMutation'](_0x5cf201);}),_0x3c676f;}},exports[_0x1cd32e(0x4ea)]=ze([p(0x3,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),p(0x4,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x272)])),p(0x5,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x27d)])),p(0x6,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x223)])),p(0x7,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x12c)])),p(0x8,a[_0x1cd32e(0x151)](N['DocStateChangeManagerService'])),p(0x9,a['Inject'](fe)),p(0xa,a[_0x1cd32e(0x151)](pe)),p(0xb,a[_0x1cd32e(0x151)](Xe)),p(0xc,a[_0x1cd32e(0x38c)]),p(0xd,a['ICommandService']),p(0xe,A['IMessageService']),p(0xf,a[_0x1cd32e(0x19c)]),p(0x10,a['Optional'](Re))],exports[_0x1cd32e(0x4ea)]),exports[_0x1cd32e(0x3a9)]=class extends exports[_0x1cd32e(0x1d9)]{constructor(_0x33beea,_0x4b3c40,_0x520947,_0x4d5e8e,_0x2953b5,_0x2a13a0,_0x1aed1,_0x27605b,_0x15edd7,_0x11f09e,_0x1de7e7,_0x13355f,_0x124146,_0x514424){const _0x42cc94=_0x1cd32e;super(_0x33beea,_0x520947,_0x4b3c40,_0x4d5e8e,_0x2953b5,_0x2a13a0,_0x1aed1,_0x27605b,_0x11f09e,_0x1de7e7,_0x13355f,_0x124146,_0x514424),this[_0x42cc94(0x3f7)]=_0x33beea,this['type']=_0x4b3c40,this['_sheetTransformSelectionsService']=_0x15edd7;}[_0x1cd32e(0x4cc)](){const _0x314886=_0x1cd32e,_0x38a744=super[_0x314886(0x4cc)]();return _0x38a744[_0x314886(0x409)]=_0x1b5a0c=>this[_0x314886(0x1e9)][_0x314886(0x4e9)](_0x1b5a0c),_0x38a744;}async[_0x1cd32e(0x3d1)](){const _0x2af0e1=_0x1cd32e,_0x492d3d=await super[_0x2af0e1(0x3d1)]();return this[_0x2af0e1(0x3d2)](this['_commandService'][_0x2af0e1(0x47a)]((_0x320378,_0x5ed442)=>{const _0x155335=_0x2af0e1;if(_0x320378[_0x155335(0x3eb)]!==a[_0x155335(0x1c5)][_0x155335(0x537)]||_0x5ed442!=null&&_0x5ed442[_0x155335(0x509)]||_0x5ed442!=null&&_0x5ed442[_0x155335(0x41b)])return;const _0x542de4=_0x320378['params'];if((_0x542de4==null?void 0x0:_0x542de4['unitId'])!==this['unitID'])return;const _0x2aa007=_0x320378,_0x408609=this[_0x155335(0x4b7)][_0x155335(0x2ae)][_0x155335(0x352)](this['_compressMutationService'][_0x155335(0x2ae)][_0x155335(0x3f6)]()[_0x155335(0x209)])([_0x2aa007],null)||[_0x2aa007];this[_0x155335(0x3cd)](_0x408609[0x0]);})),_0x492d3d;}},exports[_0x1cd32e(0x3a9)]=ze([p(0x3,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),p(0x4,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x272)])),p(0x5,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x27d)])),p(0x6,a['Inject'](a[_0x1cd32e(0x223)])),p(0x7,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x12c)])),p(0x8,a[_0x1cd32e(0x151)](Ie)),p(0x9,a[_0x1cd32e(0x38c)]),p(0xa,a[_0x1cd32e(0x1ee)]),p(0xb,A[_0x1cd32e(0x53e)]),p(0xc,a[_0x1cd32e(0x19c)]),p(0xd,a['Optional'](Re))],exports[_0x1cd32e(0x3a9)]);var Js=Object[_0x1cd32e(0x528)],Zs=Object[_0x1cd32e(0x41c)],Qs=(_0x3ec4bc,_0x5bf4b9,_0x2b5720,_0x26e4ba)=>{const _0x3f581e=_0x1cd32e;for(var _0x9df0ec=_0x26e4ba>0x1?void 0x0:_0x26e4ba?Zs(_0x5bf4b9,_0x2b5720):_0x5bf4b9,_0x38baa6=_0x3ec4bc[_0x3f581e(0x23c)]-0x1,_0x55acb6;_0x38baa6>=0x0;_0x38baa6--)(_0x55acb6=_0x3ec4bc[_0x38baa6])&&(_0x9df0ec=(_0x26e4ba?_0x55acb6(_0x5bf4b9,_0x2b5720,_0x9df0ec):_0x55acb6(_0x9df0ec))||_0x9df0ec);return _0x26e4ba&&_0x9df0ec&&Js(_0x5bf4b9,_0x2b5720,_0x9df0ec),_0x9df0ec;},Ne=(_0x22f341,_0x166a50)=>(_0x537b21,_0x20467b)=>_0x166a50(_0x537b21,_0x20467b,_0x22f341);exports[_0x1cd32e(0x378)]=class extends a['RxDisposable']{constructor(_0x135f68,_0xea14be,_0x1a510d){const _0x4ee170=_0x1cd32e;super(),u(this,'_entities',new Map()),u(this,'_entityInit$',new v['Subject']()),(this[_0x4ee170(0x33d)]=_0x135f68,this[_0x4ee170(0x29b)]=_0xea14be,this[_0x4ee170(0x4bd)]=_0x1a510d,this[_0x4ee170(0x3d1)]());}[_0x1cd32e(0x477)](){const _0x12f034=_0x1cd32e;super[_0x12f034(0x477)](),this[_0x12f034(0x31e)][_0x12f034(0x12a)](_0x5397fa=>_0x5397fa[_0x12f034(0x477)]()),this['_entities'][_0x12f034(0x15d)]();}[_0x1cd32e(0x471)](_0x2fd1d9){const _0x5b0905=_0x1cd32e;var _0x5a3f01;return(_0x5a3f01=this[_0x5b0905(0x31e)][_0x5b0905(0x2bd)](_0x2fd1d9))!=null?_0x5a3f01:null;}['getCollabEntity$'](_0x5972fd){const _0x3568a9=_0x1cd32e,_0x3714b8=this[_0x3568a9(0x471)](_0x5972fd);return _0x3714b8?v['of'](_0x3714b8):this[_0x3568a9(0x3b8)][_0x3568a9(0x430)](E[_0x3568a9(0x181)](_0x12267d=>_0x12267d[_0x3568a9(0x3f7)]===_0x5972fd));}['_init'](){const _0x27ff11=_0x1cd32e;this[_0x27ff11(0x4bd)][_0x27ff11(0x2a4)](a[_0x27ff11(0x309)][_0x27ff11(0x4aa)])['pipe'](v[_0x27ff11(0x165)](this[_0x27ff11(0x4eb)]),E['delay'](0x10))[_0x27ff11(0x22b)](async _0x4d13aa=>{const _0x33c9c6=_0x27ff11,_0x37fc90=_0x4d13aa['getUnitId'](),_0x236192=await this[_0x33c9c6(0x377)](_0x37fc90,$[_0x33c9c6(0x4aa)]);this[_0x33c9c6(0x31e)][_0x33c9c6(0x10c)](_0x37fc90,_0x236192);}),this[_0x27ff11(0x4bd)][_0x27ff11(0x2a4)](a[_0x27ff11(0x309)][_0x27ff11(0x3dc)])['pipe'](v[_0x27ff11(0x165)](this[_0x27ff11(0x4eb)]),E['delay'](0x10))['pipe'](E[_0x27ff11(0x181)](_0x5d29fa=>!_0x5d29fa[_0x27ff11(0x1fe)]()[_0x27ff11(0x390)]('__')))[_0x27ff11(0x22b)](async _0x276057=>{const _0x5834a3=_0x27ff11,_0xf6d4d0=_0x276057[_0x5834a3(0x1fe)](),_0x261066=await this[_0x5834a3(0x377)](_0xf6d4d0,$['UNIVER_DOC']);this[_0x5834a3(0x31e)][_0x5834a3(0x10c)](_0xf6d4d0,_0x261066);}),v[_0x27ff11(0x4da)](this[_0x27ff11(0x4bd)][_0x27ff11(0x197)](a[_0x27ff11(0x309)][_0x27ff11(0x4aa)]),this[_0x27ff11(0x4bd)]['getTypeOfUnitDisposed$'](a[_0x27ff11(0x309)][_0x27ff11(0x3dc)]))[_0x27ff11(0x430)](v['takeUntil'](this['dispose$']))['subscribe'](_0x5ed276=>{const _0x58ee16=_0x27ff11,_0x7665a0=_0x5ed276[_0x58ee16(0x1fe)](),_0x2ce661=this[_0x58ee16(0x31e)][_0x58ee16(0x2bd)](_0x7665a0);_0x2ce661&&(_0x2ce661[_0x58ee16(0x477)](),this[_0x58ee16(0x31e)][_0x58ee16(0x27e)](_0x7665a0));});}async[_0x1cd32e(0x377)](_0x51178a,_0x212865){const _0x16c287=_0x1cd32e,_0xf2f2da=await this[_0x16c287(0x29b)][_0x16c287(0x196)](_0x51178a),_0x1c0c52=this['_injector'][_0x16c287(0x53f)](this[_0x16c287(0x447)](_0x212865),_0x51178a,_0x212865,_0xf2f2da);return await _0x1c0c52[_0x16c287(0x2bf)](),this['_entityInit$']['next'](_0x1c0c52),_0x1c0c52;}[_0x1cd32e(0x447)](_0x287eb6){const _0x5a2135=_0x1cd32e;switch(_0x287eb6){case $['UNIVER_DOC']:return exports[_0x5a2135(0x4ea)];case $[_0x5a2135(0x4aa)]:return exports[_0x5a2135(0x3a9)];default:throw new Error(_0x5a2135(0x4b6)+_0x287eb6);}}},exports[_0x1cd32e(0x378)]=Qs([Ne(0x0,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),Ne(0x1,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x169)])),Ne(0x2,a[_0x1cd32e(0x4b5)])],exports[_0x1cd32e(0x378)]);const ct=[_0x1cd32e(0x34e),_0x1cd32e(0x1bb),_0x1cd32e(0x4e5),_0x1cd32e(0x220),_0x1cd32e(0x217),_0x1cd32e(0x160)];class Je extends a[_0x1cd32e(0x32f)]{constructor(){const _0x594f50=_0x1cd32e;super(...arguments),u(this,_0x594f50(0x4b8),new Map()),u(this,_0x594f50(0x463),0x0);}[_0x1cd32e(0x427)](_0x1253c0){const _0x49c18b=_0x1cd32e;if(this[_0x49c18b(0x4b8)][_0x49c18b(0x46c)](_0x1253c0))return this['_assignedColors'][_0x49c18b(0x2bd)](_0x1253c0);const _0x19a1fc=ct[this[_0x49c18b(0x463)]];return this[_0x49c18b(0x463)]=(this[_0x49c18b(0x463)]+0x1)%ct[_0x49c18b(0x23c)],this['_assignedColors'][_0x49c18b(0x10c)](_0x1253c0,_0x19a1fc),_0x19a1fc;}}var ei=Object['defineProperty'],ti=Object[_0x1cd32e(0x41c)],si=(_0x1a1e16,_0x4ad0b8,_0x141fc6,_0x1a6ebb)=>{for(var _0x4123ef=_0x1a6ebb>0x1?void 0x0:_0x1a6ebb?ti(_0x4ad0b8,_0x141fc6):_0x4ad0b8,_0x132979=_0x1a1e16['length']-0x1,_0x1f9959;_0x132979>=0x0;_0x132979--)(_0x1f9959=_0x1a1e16[_0x132979])&&(_0x4123ef=(_0x1a6ebb?_0x1f9959(_0x4ad0b8,_0x141fc6,_0x4123ef):_0x1f9959(_0x4123ef))||_0x4123ef);return _0x1a6ebb&&_0x4123ef&&ei(_0x4ad0b8,_0x141fc6,_0x4123ef),_0x4123ef;},K=(_0x441c16,_0x5918a3)=>(_0x319ca1,_0x2849b8)=>_0x5918a3(_0x319ca1,_0x2849b8,_0x441c16);const ii=0x12c,ni=0x64;let ke=class extends a[_0x1cd32e(0x29e)]{constructor(_0x549d95,_0x2bd9ac,_0x590b20,_0x58c44c,_0x2dd258,_0x41922e,_0xd46aef,_0x5b0700,_0x5046b5){const _0x53ddd6=_0x1cd32e;super(),u(this,_0x53ddd6(0x38f),!0x1),u(this,_0x53ddd6(0x3d1),!0x1),u(this,'_cursorInfo$',new v[(_0x53ddd6(0x518))](new Map())),u(this,_0x53ddd6(0x192),this[_0x53ddd6(0x29f)][_0x53ddd6(0x109)]()),u(this,_0x53ddd6(0x374),new v[(_0x53ddd6(0x518))]([])),u(this,'roomMembers$',this[_0x53ddd6(0x374)][_0x53ddd6(0x430)](v[_0x53ddd6(0x4d7)](ii))),u(this,_0x53ddd6(0x51f),a[_0x53ddd6(0x415)](_0x4fd6c1=>{const _0x5e7efd=_0x53ddd6,_0x4aca1a={'eventID':_[_0x5e7efd(0x3e7)][_0x5e7efd(0x139)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':yt(_0x4fd6c1)}};this[_0x5e7efd(0x26a)][_0x5e7efd(0x3d5)](_0x4aca1a,this['unitID']);},ni)),(this['unitID']=_0x549d95,this[_0x53ddd6(0x26a)]=_0x2bd9ac,this[_0x53ddd6(0x33d)]=_0x590b20,this[_0x53ddd6(0x1b1)]=_0x58c44c,this[_0x53ddd6(0x329)]=_0x2dd258,this[_0x53ddd6(0x135)]=_0x41922e,this[_0x53ddd6(0x3d7)]=_0xd46aef,this[_0x53ddd6(0x4bd)]=_0x5b0700,this[_0x53ddd6(0x45a)]=_0x5046b5);}get[_0x1cd32e(0x319)](){const _0x3161b0=_0x1cd32e;return this[_0x3161b0(0x29f)][_0x3161b0(0x119)]();}get[_0x1cd32e(0x14e)](){return this['_roomMembers$']['getValue']();}[_0x1cd32e(0x477)](){const _0x4f12b0=_0x1cd32e;super[_0x4f12b0(0x477)](),this['_cursorInfo$'][_0x4f12b0(0x203)](new Map()),this[_0x4f12b0(0x29f)][_0x4f12b0(0x321)](),this[_0x4f12b0(0x374)][_0x4f12b0(0x203)]([]),this[_0x4f12b0(0x374)][_0x4f12b0(0x321)]();}['init'](){const _0x658fce=_0x1cd32e;this[_0x658fce(0x3d1)]||(this[_0x658fce(0x3d1)]=!0x0,this[_0x658fce(0x26a)][_0x658fce(0x3f8)][_0x658fce(0x430)](v[_0x658fce(0x165)](this[_0x658fce(0x4eb)]))[_0x658fce(0x22b)](_0x5c2706=>{const _0x16c410=_0x658fce;_0x5c2706===H['ONLINE']?this['_toggleOnline']():this[_0x16c410(0x51e)]();}),this['_session'][_0x658fce(0x495)][_0x658fce(0x430)](v[_0x658fce(0x165)](this[_0x658fce(0x4eb)]))[_0x658fce(0x22b)](_0x58a1bf=>{const _0x514aea=_0x658fce,_0x244a5a=_0x58a1bf[_0x514aea(0x137)];_0x244a5a===_[_0x514aea(0x3e7)][_0x514aea(0x139)]&&this[_0x514aea(0x14d)](_0x58a1bf),_0x244a5a===_[_0x514aea(0x3e7)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x58a1bf);}),this[_0x658fce(0x3d2)](this[_0x658fce(0x45a)][_0x658fce(0x47a)](_0x452d5c=>{const _0x11dbd0=_0x658fce,_0xe58b68=_0x452d5c['params'];_0xe58b68!=null&&this[_0x11dbd0(0x38f)]&&_0x452d5c['id']===se[_0x11dbd0(0x507)]['id']&&_0xe58b68[_0x11dbd0(0x543)]===this[_0x11dbd0(0x3f7)]&&_0xe58b68[_0x11dbd0(0x4a6)]===!0x1&&this[_0x11dbd0(0x51f)](_0xe58b68['ranges']);})),this[_0x658fce(0x135)]['collabCursorState$'][_0x658fce(0x430)](v[_0x658fce(0x165)](this[_0x658fce(0x4eb)]))[_0x658fce(0x22b)](_0x790753=>{const _0x5bdd31=_0x658fce;if((_0x790753==null?void 0x0:_0x790753[_0x5bdd31(0x3f7)])!==this[_0x5bdd31(0x3f7)])return;const _0x3d55fb={'eventID':_[_0x5bdd31(0x3e7)][_0x5bdd31(0x139)],'data':_0x790753};this[_0x5bdd31(0x14d)](_0x3d55fb);}),this[_0x658fce(0x3d2)](this[_0x658fce(0x45a)][_0x658fce(0x47a)](_0x1be5b2=>{const _0x363d2c=_0x658fce;if(_0x1be5b2[_0x363d2c(0x1ea)]==null)return;const _0x3f78e8=_0x1be5b2['params'];if(_0x1be5b2['id']!==se[_0x363d2c(0x10a)]['id']||_0x3f78e8[_0x363d2c(0x543)]!==this['unitID'])return;const _0xfa2aaf={'id':_0x363d2c(0x45c),'params':_0x3f78e8},_0x40aaa7=this['cursorInfo'];for(const [_0x51efd7,_0x50edca]of _0x40aaa7){const _0x25c2be={'id':_0x363d2c(0x45c),'params':{'unitId':this[_0x363d2c(0x3f7)],'actions':null,'textRanges':_0x50edca[_0x363d2c(0x1e4)]}},_0x50ae22=this[_0x363d2c(0x3d7)]['transformMutation'](_0xfa2aaf,_0x25c2be,!0x1);if(_[_0x363d2c(0x1fb)](_0x50ae22))throw _0x50ae22[_0x363d2c(0x275)];_0x40aaa7[_0x363d2c(0x10c)](_0x51efd7,{..._0x50edca,'ranges':_0x50ae22['m2Prime'][_0x363d2c(0x1ea)][_0x363d2c(0x391)]});}queueMicrotask(()=>{const _0x4e5c79=_0x363d2c;this['_cursorInfo$'][_0x4e5c79(0x203)](_0x40aaa7);});})));}['_onCursorUpdate'](_0x5a1d63){const _0x540492=_0x1cd32e;var _0x3f32de,_0x2be827;const {memberID:_0x41e4bc,selection:_0x51ce9a}=_0x5a1d63[_0x540492(0x370)],_0x31deff=ks(_0x51ce9a),_0x25e772=(_0x2be827=(_0x3f32de=this[_0x540492(0x329)][_0x540492(0x16f)](this[_0x540492(0x3f7)],_0x41e4bc))==null?void 0x0:_0x3f32de[_0x540492(0x497)])!=null?_0x2be827:_0x540492(0x3cf),_0x102c0b={'color':this['_colorAssignService'][_0x540492(0x427)](_0x41e4bc),'name':_0x25e772,'ranges':_0x31deff},_0x5cd1e3=this[_0x540492(0x319)];_0x5cd1e3[_0x540492(0x10c)](_0x41e4bc,_0x102c0b),this['_cursorInfo$'][_0x540492(0x203)](_0x5cd1e3);}[_0x1cd32e(0x28b)](_0x1bc009){const _0x31bee4=_0x1cd32e,{memberID:_0x569865}=_0x1bc009[_0x31bee4(0x370)],_0x12d12b=this['cursorInfo'];_0x12d12b['delete'](_0x569865),this[_0x31bee4(0x29f)]['next'](_0x12d12b);}[_0x1cd32e(0x271)](){const _0x1487d0=_0x1cd32e;var _0x101319;if(this[_0x1487d0(0x38f)]=!0x0,((_0x101319=this[_0x1487d0(0x4bd)][_0x1487d0(0x150)]())==null?void 0x0:_0x101319[_0x1487d0(0x1fe)]())!==this[_0x1487d0(0x3f7)])return;const _0x2f2bd5=this[_0x1487d0(0x33d)][_0x1487d0(0x2bd)](se['DocSelectionManagerService'])[_0x1487d0(0x113)]();Array['isArray'](_0x2f2bd5)&&_0x2f2bd5[_0x1487d0(0x23c)]>0x0&&this[_0x1487d0(0x51f)](_0x2f2bd5);}['_toggleOffline'](){const _0x52e3af=_0x1cd32e;this[_0x52e3af(0x38f)]=!0x1;}};ke=si([K(0x2,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),K(0x3,a[_0x1cd32e(0x151)](Je)),K(0x4,a[_0x1cd32e(0x151)](X)),K(0x5,a[_0x1cd32e(0x151)](Xe)),K(0x6,_[_0x1cd32e(0x4f5)]),K(0x7,a[_0x1cd32e(0x4b5)]),K(0x8,a[_0x1cd32e(0x1ee)])],ke);var ri=Object['defineProperty'],oi=Object['getOwnPropertyDescriptor'],ai=(_0xec7067,_0x4d039b,_0x17220a,_0x5cdd5c)=>{const _0x3003b8=_0x1cd32e;for(var _0x2a9f50=_0x5cdd5c>0x1?void 0x0:_0x5cdd5c?oi(_0x4d039b,_0x17220a):_0x4d039b,_0x2f9a39=_0xec7067[_0x3003b8(0x23c)]-0x1,_0x47c24f;_0x2f9a39>=0x0;_0x2f9a39--)(_0x47c24f=_0xec7067[_0x2f9a39])&&(_0x2a9f50=(_0x5cdd5c?_0x47c24f(_0x4d039b,_0x17220a,_0x2a9f50):_0x47c24f(_0x2a9f50))||_0x2a9f50);return _0x5cdd5c&&_0x2a9f50&&ri(_0x4d039b,_0x17220a,_0x2a9f50),_0x2a9f50;},Q=(_0x50234a,_0x3de859)=>(_0x188756,_0x38f9ad)=>_0x3de859(_0x188756,_0x38f9ad,_0x50234a);const ci=0x12c,li=0x64,hi=()=>{let _0x3ee643=[],_0x51fafe=!0x1;return _0x25172b=>{const _0x106b2a=_0xcf6e;_0x3ee643[_0x106b2a(0x435)](_0x25172b),_0x51fafe||(_0x51fafe=!0x0,setTimeout(()=>{const _0x1654ec=_0x106b2a;_0x3ee643[_0x1654ec(0x12a)](_0x1541d3=>_0x1541d3()),_0x3ee643=[],_0x51fafe=!0x1;}));};};let Be=class extends a['RxDisposable']{constructor(_0x55a224,_0x256591,_0x4406bc,_0x23fd5c,_0x3db909,_0xf0d17b,_0x2d2701,_0x27b4ff){const _0x2e3350=_0x1cd32e;super(),u(this,_0x2e3350(0x38f),!0x1),u(this,_0x2e3350(0x3d1),!0x1),u(this,_0x2e3350(0x29f),new v[(_0x2e3350(0x518))](new Map())),u(this,_0x2e3350(0x192),this[_0x2e3350(0x29f)][_0x2e3350(0x109)]()),u(this,_0x2e3350(0x374),new v[(_0x2e3350(0x518))]([])),u(this,_0x2e3350(0x342),this[_0x2e3350(0x374)][_0x2e3350(0x430)](v[_0x2e3350(0x4d7)](ci))),u(this,_0x2e3350(0x51f),a['debounce']((_0x43284a,_0x431602)=>{const _0x4da099=_0x2e3350,_0x3bb5d8={'eventID':_[_0x4da099(0x3e7)][_0x4da099(0x139)],'data':{'unitID':this[_0x4da099(0x3f7)],'memberID':this['_session'][_0x4da099(0x2be)](),'selection':et['serializeRangeWithSheet'](_0x43284a,_0x431602[_0x4da099(0x237)])}};this[_0x4da099(0x26a)][_0x4da099(0x3d5)](_0x3bb5d8,this[_0x4da099(0x3f7)]);},li)),(this[_0x2e3350(0x3f7)]=_0x55a224,this[_0x2e3350(0x26a)]=_0x256591,this[_0x2e3350(0x33d)]=_0x4406bc,this['_colorAssignService']=_0x23fd5c,this[_0x2e3350(0x329)]=_0x3db909,this[_0x2e3350(0x4bd)]=_0xf0d17b,this[_0x2e3350(0x45a)]=_0x2d2701,this['_refRangeService']=_0x27b4ff);}get[_0x1cd32e(0x319)](){const _0x2ea4c2=_0x1cd32e;return this[_0x2ea4c2(0x29f)][_0x2ea4c2(0x119)]();}get['roomMembers'](){const _0x3bb71d=_0x1cd32e;return this[_0x3bb71d(0x374)][_0x3bb71d(0x119)]();}[_0x1cd32e(0x477)](){const _0x53b894=_0x1cd32e;super[_0x53b894(0x477)](),this[_0x53b894(0x29f)]['next'](new Map()),this[_0x53b894(0x29f)]['complete'](),this[_0x53b894(0x374)][_0x53b894(0x203)]([]),this[_0x53b894(0x374)][_0x53b894(0x321)]();}['init'](){const _0x270700=_0x1cd32e;this[_0x270700(0x3d1)]||(this['_init']=!0x0,this[_0x270700(0x26a)]['sessionStatus$'][_0x270700(0x430)](v['takeUntil'](this['dispose$']))[_0x270700(0x22b)](_0x195e5e=>{const _0x51aeca=_0x270700;_0x195e5e===H[_0x51aeca(0x345)]?this[_0x51aeca(0x271)]():this[_0x51aeca(0x51e)]();}),this[_0x270700(0x26a)]['event$'][_0x270700(0x430)](v[_0x270700(0x165)](this['dispose$']))['subscribe'](_0x2193d1=>{const _0x69cf75=_0x270700,_0x2fe3ec=_0x2193d1['eventID'];_0x2fe3ec===_[_0x69cf75(0x3e7)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x2193d1),_0x2fe3ec===_['CollaborationEvent'][_0x69cf75(0x37f)]&&this[_0x69cf75(0x28b)](_0x2193d1);}),this[_0x270700(0x13c)](),this[_0x270700(0x3d2)](this[_0x270700(0x45a)][_0x270700(0x47a)](_0x327709=>{const _0x2dd0e2=_0x270700;if(this[_0x2dd0e2(0x38f)]&&_0x327709['id']===C[_0x2dd0e2(0x388)]['id']&&_0x327709[_0x2dd0e2(0x1ea)][_0x2dd0e2(0x543)]===this['unitID']){const _0x461b0f=_0x327709[_0x2dd0e2(0x1ea)];this[_0x2dd0e2(0x51f)](_0x461b0f[_0x2dd0e2(0x542)],_0x461b0f['selections'][0x0]);}})));}['_onCursorUpdate'](_0x168e90){const _0x5c0c84=_0x1cd32e;var _0x2b32e3,_0x38fbc2;const {memberID:_0x45fd85,selection:_0x1056c6}=_0x168e90[_0x5c0c84(0x370)],{sheetName:_0x43c0a0,range:_0x306637}=et[_0x5c0c84(0x16a)](_0x1056c6),_0xa2bf0c={'name':(_0x38fbc2=(_0x2b32e3=this['_memberService'][_0x5c0c84(0x16f)](this[_0x5c0c84(0x3f7)],_0x45fd85))==null?void 0x0:_0x2b32e3['name'])!=null?_0x38fbc2:_0x5c0c84(0x3cf),'range':this[_0x5c0c84(0x347)](_0x43c0a0,_0x306637),'sheetID':_0x43c0a0,'color':this['_colorAssignService'][_0x5c0c84(0x427)](_0x45fd85),'selection':_0x1056c6},_0x3ac616=this[_0x5c0c84(0x319)];_0x3ac616['set'](_0x45fd85,_0xa2bf0c),this[_0x5c0c84(0x29f)][_0x5c0c84(0x203)](_0x3ac616);}[_0x1cd32e(0x28b)](_0x47adf6){const _0x938a59=_0x1cd32e,{memberID:_0x1f3736}=_0x47adf6[_0x938a59(0x370)],_0x53ee4f=this['cursorInfo'];_0x53ee4f[_0x938a59(0x27e)](_0x1f3736),this[_0x938a59(0x29f)][_0x938a59(0x203)](_0x53ee4f);}['_getMergeRange'](_0x41c957,_0x17ca35){const _0x2dce82=_0x1cd32e;var _0x52351f,_0x4c7b37;const _0x97006e=(_0x4c7b37=(_0x52351f=this[_0x2dce82(0x4bd)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x52351f['getSheetBySheetId'](_0x41c957))==null?void 0x0:_0x4c7b37[_0x2dce82(0x49b)]();return(_0x97006e==null?void 0x0:_0x97006e[_0x2dce82(0x238)](_0x3bfa06=>a[_0x2dce82(0x480)][_0x2dce82(0x2eb)](_0x3bfa06,_0x17ca35)))||_0x17ca35;}[_0x1cd32e(0x13c)](){const _0x577d30=_0x1cd32e,_0x559fd7=new a[(_0x577d30(0x304))](),_0x3d1d37=hi(),_0x40f350=()=>{const _0x300562=_0x577d30;_0x559fd7[_0x300562(0x477)]();const _0xc7371=(_0x473b9c,_0x4684cc,_0x36aab0,_0x5f4e71)=>{const _0x19ed31=_0x300562;let _0x3b833d=[];switch(_0x473b9c['id']){case C[_0x19ed31(0x2ef)][_0x19ed31(0x392)]:{_0x3b833d=C['handleDeleteRangeMoveLeft'](_0x473b9c,_0x5f4e71);break;}case C[_0x19ed31(0x2ef)][_0x19ed31(0x268)]:{_0x3b833d=C[_0x19ed31(0x46d)](_0x473b9c,_0x5f4e71);break;}case C[_0x19ed31(0x2ef)][_0x19ed31(0x2c1)]:{_0x3b833d=C['handleInsertCol'](_0x473b9c,_0x5f4e71);break;}case C[_0x19ed31(0x2ef)][_0x19ed31(0x29c)]:{_0x3b833d=C[_0x19ed31(0x193)](_0x473b9c,_0x5f4e71);break;}case C['EffectRefRangId'][_0x19ed31(0x37c)]:{_0x3b833d=C[_0x19ed31(0x25e)](_0x473b9c,_0x5f4e71);break;}case C[_0x19ed31(0x2ef)][_0x19ed31(0x248)]:{_0x3b833d=C[_0x19ed31(0x44f)](_0x473b9c,_0x5f4e71);break;}case C[_0x19ed31(0x2ef)][_0x19ed31(0x43b)]:{_0x3b833d=C[_0x19ed31(0x46f)](_0x473b9c,_0x5f4e71);break;}case C[_0x19ed31(0x2ef)][_0x19ed31(0x42d)]:{_0x3b833d=C[_0x19ed31(0x44d)](_0x473b9c,_0x5f4e71);break;}case C['EffectRefRangId'][_0x19ed31(0x13f)]:{_0x3b833d=C[_0x19ed31(0x2d5)](_0x473b9c,_0x5f4e71);break;}}const _0x2faf8c=C['runRefRangeMutations'](_0x3b833d,_0x5f4e71),_0x1481d4=this['cursorInfo'][_0x19ed31(0x2bd)](_0x4684cc);if(_0x1481d4&&_0x2faf8c){const _0x2198a4={..._0x1481d4,'range':_0x2faf8c};this[_0x19ed31(0x319)][_0x19ed31(0x10c)](_0x4684cc,_0x2198a4),_0x3d1d37(()=>{const _0x40bb0c=_0x19ed31,_0x480544=this[_0x40bb0c(0x1b2)][_0x40bb0c(0x4dd)](_0x2faf8c,_0x207471=>(_0x480544[_0x40bb0c(0x477)](),_0xc7371(_0x207471,_0x4684cc,_0x36aab0,_0x2faf8c)));_0x559fd7[_0x40bb0c(0x33a)](_0x480544);});}return{'redos':[],'undos':[]};};this[_0x300562(0x319)][_0x300562(0x12a)]((_0x3cf1dc,_0x27c371)=>{const _0x4cbcbc=_0x300562,{range:_0x18b7c2,sheetID:_0x3f787a}=_0x3cf1dc,_0x182d5a=this[_0x4cbcbc(0x1b2)][_0x4cbcbc(0x4dd)](_0x18b7c2,_0x58fe80=>(_0x182d5a['dispose'](),_0xc7371(_0x58fe80,_0x27c371,_0x3f787a,_0x18b7c2)));_0x559fd7[_0x4cbcbc(0x33a)](_0x182d5a);});};this[_0x577d30(0x3d2)](a['toDisposable'](this['_cursorInfo$']['subscribe'](()=>{_0x40f350();})));}['_toggleOnline'](){const _0x423249=_0x1cd32e;var _0x328d11,_0x15e43d;if(this['_online']=!0x0,((_0x328d11=this[_0x423249(0x4bd)][_0x423249(0x150)]())==null?void 0x0:_0x328d11[_0x423249(0x1fe)]())!==this[_0x423249(0x3f7)])return;const _0x1a4ed0=(_0x15e43d=this[_0x423249(0x33d)][_0x423249(0x2bd)](C[_0x423249(0x266)])[_0x423249(0x375)]())==null?void 0x0:_0x15e43d[0x0],_0x304005=this[_0x423249(0x4bd)]['getCurrentUnitForType'](a[_0x423249(0x309)][_0x423249(0x4aa)])['getActiveSheet']();_0x1a4ed0&&_0x304005&&this[_0x423249(0x51f)](_0x304005[_0x423249(0x2df)](),_0x1a4ed0);}[_0x1cd32e(0x51e)](){const _0xc44aa5=_0x1cd32e;this[_0xc44aa5(0x38f)]=!0x1;}};Be=ai([Q(0x2,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),Q(0x3,a['Inject'](Je)),Q(0x4,a[_0x1cd32e(0x151)](X)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a[_0x1cd32e(0x1ee)]),Q(0x7,a[_0x1cd32e(0x151)](C['RefRangeService']))],Be);var _i=Object['defineProperty'],ui=Object[_0x1cd32e(0x41c)],di=(_0x3a9458,_0x23587a,_0x1257bc,_0x2a79b9)=>{const _0x3109be=_0x1cd32e;for(var _0xdf1842=_0x2a79b9>0x1?void 0x0:_0x2a79b9?ui(_0x23587a,_0x1257bc):_0x23587a,_0x5c499f=_0x3a9458[_0x3109be(0x23c)]-0x1,_0x25de54;_0x5c499f>=0x0;_0x5c499f--)(_0x25de54=_0x3a9458[_0x5c499f])&&(_0xdf1842=(_0x2a79b9?_0x25de54(_0x23587a,_0x1257bc,_0xdf1842):_0x25de54(_0xdf1842))||_0xdf1842);return _0x2a79b9&&_0xdf1842&&_i(_0x23587a,_0x1257bc,_0xdf1842),_0xdf1842;},Me=(_0x209f2f,_0x4d55c8)=>(_0x18ac0d,_0x3e5c17)=>_0x4d55c8(_0x18ac0d,_0x3e5c17,_0x209f2f);let ne=class extends a[_0x1cd32e(0x29e)]{constructor(_0x125d8b,_0x4cceab,_0x32ce28){const _0x28fbb7=_0x1cd32e;super(),u(this,_0x28fbb7(0x31e),new Map()),u(this,'_entityInit$',new v[(_0x28fbb7(0x153))]()),(this[_0x28fbb7(0x4bd)]=_0x125d8b,this[_0x28fbb7(0x33d)]=_0x4cceab,this['_collabSessionService']=_0x32ce28,this[_0x28fbb7(0x3d1)]());}[_0x1cd32e(0x477)](){const _0x5afe0b=_0x1cd32e;super[_0x5afe0b(0x477)](),this[_0x5afe0b(0x3b8)]['complete'](),this[_0x5afe0b(0x31e)]['forEach'](_0x1ce9a2=>_0x1ce9a2[_0x5afe0b(0x477)]());}[_0x1cd32e(0x33f)](_0x10460c){const _0xf472ac=_0x1cd32e;return this[_0xf472ac(0x31e)][_0xf472ac(0x46c)](_0x10460c)?this[_0xf472ac(0x31e)][_0xf472ac(0x2bd)](_0x10460c)['cursorInfo$']:this['_entityInit$'][_0xf472ac(0x430)](v[_0xf472ac(0x181)](_0xb23dc3=>_0xb23dc3[_0xf472ac(0x3f7)]===_0x10460c),v[_0xf472ac(0x3af)](_0x2b796c=>_0x2b796c[_0xf472ac(0x192)]));}[_0x1cd32e(0x3d1)](){const _0x4ed609=_0x1cd32e;this[_0x4ed609(0x4bd)][_0x4ed609(0x2a4)](a[_0x4ed609(0x309)][_0x4ed609(0x4aa)])[_0x4ed609(0x430)](v[_0x4ed609(0x165)](this[_0x4ed609(0x4eb)]))[_0x4ed609(0x22b)](async _0x2d08e6=>{const _0x6f03f2=_0x4ed609,_0xd9e065=_0x2d08e6[_0x6f03f2(0x1fe)](),_0x3e3936=await this['_startSheetCollabCursor'](_0xd9e065);this['_entityInit$'][_0x6f03f2(0x203)](_0x3e3936),this[_0x6f03f2(0x31e)]['set'](_0xd9e065,_0x3e3936);}),this[_0x4ed609(0x4bd)][_0x4ed609(0x2a4)](a[_0x4ed609(0x309)]['UNIVER_DOC'])[_0x4ed609(0x430)](v[_0x4ed609(0x165)](this[_0x4ed609(0x4eb)]))[_0x4ed609(0x430)](v[_0x4ed609(0x181)](_0x27468c=>!_0x27468c[_0x4ed609(0x1fe)]()[_0x4ed609(0x390)]('__')))[_0x4ed609(0x22b)](async _0x7112f2=>{const _0x49c2e5=_0x4ed609,_0x4f1c9e=_0x7112f2['getUnitId'](),_0x3d2a1c=await this[_0x49c2e5(0x505)](_0x4f1c9e);this[_0x49c2e5(0x3b8)][_0x49c2e5(0x203)](_0x3d2a1c),this[_0x49c2e5(0x31e)][_0x49c2e5(0x10c)](_0x4f1c9e,_0x3d2a1c);}),v['merge'](this[_0x4ed609(0x4bd)][_0x4ed609(0x197)](a[_0x4ed609(0x309)][_0x4ed609(0x3dc)]),this[_0x4ed609(0x4bd)][_0x4ed609(0x197)](a[_0x4ed609(0x309)][_0x4ed609(0x4aa)]))['pipe'](v[_0x4ed609(0x165)](this[_0x4ed609(0x4eb)]))[_0x4ed609(0x22b)](_0x1d2ecd=>{const _0x2fd7d1=_0x4ed609,_0x19c6a4=_0x1d2ecd[_0x2fd7d1(0x1fe)](),_0xe342f1=this[_0x2fd7d1(0x31e)][_0x2fd7d1(0x2bd)](_0x19c6a4);_0xe342f1&&(_0xe342f1[_0x2fd7d1(0x477)](),this['_entities']['delete'](_0x19c6a4));});}async[_0x1cd32e(0x2d9)](_0x2c65a0){const _0x2b25cd=_0x1cd32e,_0x5df4ca=await this['_collabSessionService'][_0x2b25cd(0x196)](_0x2c65a0),_0x417f16=this[_0x2b25cd(0x33d)][_0x2b25cd(0x53f)](Be,_0x2c65a0,_0x5df4ca);return _0x417f16['init'](),_0x417f16;}async['_startDocCollabCursor'](_0x2ea64d){const _0x588be0=_0x1cd32e,_0x1e665c=await this['_collabSessionService'][_0x588be0(0x196)](_0x2ea64d),_0x18cacd=this[_0x588be0(0x33d)][_0x588be0(0x53f)](ke,_0x2ea64d,_0x1e665c);return _0x18cacd['init'](),_0x18cacd;}};ne=di([Me(0x0,a['IUniverInstanceService']),Me(0x1,a['Inject'](a[_0x1cd32e(0x2e8)])),Me(0x2,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x169)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,Si=0x5;function vi(_0x476253,_0x2df54d){const _0x58d32c=_0x1cd32e;let {radius:_0x274c6b,width:_0x228718,height:_0x4dffed}=_0x2df54d;_0x274c6b=_0x274c6b!=null?_0x274c6b:0x0,_0x228718=_0x228718!=null?_0x228718:0x1e,_0x4dffed=_0x4dffed!=null?_0x4dffed:0x1e;let _0x29eb37=0x0,_0x49ce9d=0x0,_0x1e8117=0x0;_0x29eb37=_0x49ce9d=_0x1e8117=Math[_0x58d32c(0x52a)](_0x274c6b,_0x228718/0x2,_0x4dffed/0x2),_0x476253['beginPath'](),_0x476253[_0x58d32c(0x229)](_0x29eb37,0x0),_0x476253[_0x58d32c(0x1c4)](_0x228718-_0x49ce9d,0x0),_0x476253[_0x58d32c(0x303)](_0x228718-_0x49ce9d,_0x49ce9d,_0x49ce9d,Math['PI']*0x3/0x2,0x0,!0x1),_0x476253[_0x58d32c(0x1c4)](_0x228718,_0x4dffed-_0x1e8117),_0x476253[_0x58d32c(0x303)](_0x228718-_0x1e8117,_0x4dffed-_0x1e8117,_0x1e8117,0x0,Math['PI']/0x2,!0x1),_0x476253[_0x58d32c(0x1c4)](0x0,_0x4dffed),_0x476253[_0x58d32c(0x1c4)](0x0,_0x29eb37),_0x476253['arc'](_0x29eb37,_0x29eb37,_0x29eb37,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x476253[_0x58d32c(0x4e1)](),_0x2df54d['fill']&&(_0x476253['save'](),_0x476253[_0x58d32c(0x407)]=_0x2df54d[_0x58d32c(0x357)],_0x2df54d[_0x58d32c(0x343)]===_0x58d32c(0x4d9)?_0x476253[_0x58d32c(0x357)]('evenodd'):_0x476253['fill'](),_0x476253['restore']());}class Oe extends D[_0x1cd32e(0x1a4)]{constructor(_0x2b8ead,_0x311ca5){const _0x26fa5e=_0x1cd32e;super(_0x2b8ead,_0x311ca5),u(this,_0x26fa5e(0x216)),u(this,'text'),(this[_0x26fa5e(0x216)]=_0x311ca5==null?void 0x0:_0x311ca5['color'],this['text']=_0x311ca5==null?void 0x0:_0x311ca5[_0x26fa5e(0x177)]);}static[_0x1cd32e(0x2ec)](_0x3c03d5,_0x530c57){const _0xdb9080=_0x1cd32e,{text:_0x1bf38d,color:_0x488707}=_0x530c57;_0x3c03d5['save'](),_0x3c03d5[_0xdb9080(0x46e)]=_0xdb9080(0x187);const _0x50f36d=_0x3c03d5[_0xdb9080(0x221)](_0x1bf38d)[_0xdb9080(0x1c2)],_0x1fba75=Math[_0xdb9080(0x52a)](_0x50f36d+0x2*Ae,lt);vi(_0x3c03d5,{'height':de,'radius':0x4,'width':_0x1fba75,'fill':_0x488707,'evented':!0x1}),_0x3c03d5[_0xdb9080(0x407)]=_0xdb9080(0x273);const _0x563071=Ae,_0x346f37=de-Si,_0x219c27=lt-0x2*Ae;if(_0x50f36d>_0x219c27){let _0x58eefe='',_0x9be58c=0x0;for(const _0x3e2d85 of _0x1bf38d){const _0x1eda72=_0x3c03d5[_0xdb9080(0x221)](_0x3e2d85)[_0xdb9080(0x1c2)];if(_0x9be58c+_0x1eda72<=_0x219c27-_0x3c03d5[_0xdb9080(0x221)](_0xdb9080(0x4cd))[_0xdb9080(0x1c2)])_0x58eefe+=_0x3e2d85,_0x9be58c+=_0x1eda72;else{_0x58eefe+='...';break;}}_0x3c03d5['fillText'](_0x58eefe,_0x563071,_0x346f37);}else _0x3c03d5[_0xdb9080(0x2f8)](_0x1bf38d,_0x563071,_0x346f37);_0x3c03d5[_0xdb9080(0x164)]();}[_0x1cd32e(0x1ff)](_0x3d8e82){const _0x445c2a=_0x1cd32e;Oe[_0x445c2a(0x2ec)](_0x3d8e82,this);}}const Le='collab-text-anchor-',mi=_0x1cd32e(0x2de),gi=_0x1cd32e(0x280),le=0x6,fi=1.5,je=0x4,Ii=1.5,pi=_0x1cd32e(0x4e6);class ht{constructor(_0x5e7012,_0x8948b4,_0x429d00,_0x5ca0d2){const _0xfcb93f=_0x1cd32e;u(this,_0xfcb93f(0x368),[]),u(this,_0xfcb93f(0x457),null),u(this,'_textBubble',null),u(this,_0xfcb93f(0x2ba),null),u(this,_0xfcb93f(0x322),null),u(this,_0xfcb93f(0x1d7),null),(this['_cursor']=_0x5e7012,this[_0xfcb93f(0x1fd)]=_0x8948b4,this[_0xfcb93f(0x17c)]=_0x429d00,this[_0xfcb93f(0x1e7)]=_0x5ca0d2,this[_0xfcb93f(0x3e2)]());}set['_hover'](_0xabccff){const _0x4dfd0c=_0x1cd32e;_0xabccff?(this[_0x4dfd0c(0x2ba)]&&this[_0x4dfd0c(0x2ba)][_0x4dfd0c(0x449)](),this[_0x4dfd0c(0x2e3)]&&this['_textBubble']['show']()):(this[_0x4dfd0c(0x2ba)]&&this[_0x4dfd0c(0x2ba)][_0x4dfd0c(0x3df)](),this['_textBubble']&&this[_0x4dfd0c(0x2e3)]['hide']());}[_0x1cd32e(0x477)](){const _0x17af9f=_0x1cd32e;for(const _0x263d89 of this['_shapes'])_0x263d89['dispose']();this[_0x17af9f(0x2e3)]&&this[_0x17af9f(0x2e3)]['dispose'](),this[_0x17af9f(0x2ba)]&&this[_0x17af9f(0x2ba)][_0x17af9f(0x477)](),this['_anchor']&&this['_anchor']['dispose'](),this[_0x17af9f(0x1d7)]&&this['_eventUnsubscribe']();}[_0x1cd32e(0x3e2)](){const _0x249954=_0x1cd32e;var _0x41b0b0;const {_docSkeleton:_0x1ba15a,_document:_0xf2550c}=this,{color:_0x386258,name:_0x44a4e4,ranges:_0x2e63f2}=this['_cursor'],_0x195be2=_0xf2550c[_0x249954(0x3a7)](),{docsLeft:_0x32d7ab,docsTop:_0x5c7e49}=_0x195be2,_0x42599b=new N[(_0x249954(0x297))](_0x195be2,_0x1ba15a);for(const {startOffset:_0x2bb83a,endOffset:_0x268bc8,collapsed:_0x333396,isActive:_0x2d2f3a}of _0x2e63f2){const _0x326644=_0x1ba15a['findNodePositionByCharIndex'](_0x2bb83a),_0x254e39=_0x1ba15a[_0x249954(0x2b5)](_0x268bc8);if(_0x2d2f3a){const {contentBoxPointGroup:_0x2b0035}=_0x42599b['getRangePointData'](_0x254e39,_0x254e39);if(_0x2b0035['length']===0x0)continue;this[_0x249954(0x4c0)](_0x386258,_0x2b0035,_0x32d7ab,_0x5c7e49,_0x44a4e4),this['_eventUnsubscribe']=this[_0x249954(0x49f)]();}if(!_0x333396&&_0x326644&&_0x254e39){if(N[_0x249954(0x532)](_0x326644,_0x254e39)){const _0x3a340d=new N[(_0x249954(0x22c))](_0x195be2,_0x1ba15a),{pointGroup:_0x5333cb}=(_0x41b0b0=_0x3a340d['getRangePointData'](_0x326644,_0x254e39))!=null?_0x41b0b0:{};if(_0x5333cb==null||_0x5333cb[_0x249954(0x23c)]===0x0)continue;this[_0x249954(0x219)](_0x386258,_0x5333cb,_0x32d7ab,_0x5c7e49);}else{const {contentBoxPointGroup:_0x8152e3}=_0x42599b[_0x249954(0x21e)](_0x326644,_0x254e39);if(_0x8152e3[_0x249954(0x23c)]===0x0)continue;this['_drawTextRange'](_0x386258,_0x8152e3,_0x32d7ab,_0x5c7e49);}}}}[_0x1cd32e(0x4c0)](_0x48ec55,_0x514b5f,_0x566b36,_0x36d12c,_0x545f2a){const _0x2b3f20=_0x1cd32e,_0x82b0e0=this[_0x2b3f20(0x420)](_0x514b5f),{left:_0x27d0d6,top:_0x3b4a70,height:_0x31d7ad}=_0x82b0e0,_0x5ece3e=this[_0x2b3f20(0x228)](),_0xb7df80=Ii/_0x5ece3e,_0x23c09a=new D['Rect'](Le+a[_0x2b3f20(0x541)][_0x2b3f20(0x3ce)](le),{'left':_0x27d0d6+_0x566b36-_0xb7df80,'top':_0x3b4a70+_0x36d12c,'height':_0x31d7ad,'width':fi,'fill':_0x48ec55||D['getColor'](a[_0x2b3f20(0x50a)][_0x2b3f20(0x4ca)],0x0),'strokeWidth':_0xb7df80,'stroke':pi,'evented':!0x0});this[_0x2b3f20(0x457)]=_0x23c09a,this['_scene'][_0x2b3f20(0x3ca)](_0x23c09a,N[_0x2b3f20(0x25f)]);const _0x58ef82=new D[(_0x2b3f20(0x363))](Le+a[_0x2b3f20(0x541)][_0x2b3f20(0x3ce)](le),{'left':_0x27d0d6+_0x566b36-_0xb7df80,'top':_0x3b4a70+_0x36d12c-je/0x2,'height':je,'width':je,'fill':_0x48ec55||D[_0x2b3f20(0x147)](a[_0x2b3f20(0x50a)][_0x2b3f20(0x4ca)],0x0),'strokeWidth':0x0,'stroke':_0x48ec55||D['getColor'](a[_0x2b3f20(0x50a)][_0x2b3f20(0x4ca)],0x0),'evented':!0x1});this['_anchorDot']=_0x58ef82,this['_scene']['addObject'](_0x58ef82,N[_0x2b3f20(0x25f)]);const _0x491661=new Oe(Le+a['Tools'][_0x2b3f20(0x3ce)](le),{'left':_0x27d0d6+_0x566b36-_0xb7df80,'top':_0x3b4a70+_0x36d12c-de,'text':_0x545f2a,'color':_0x48ec55});this[_0x2b3f20(0x2e3)]=_0x491661,this[_0x2b3f20(0x1fd)][_0x2b3f20(0x3ca)](_0x491661,N[_0x2b3f20(0x25f)]),this[_0x2b3f20(0x11f)]=!0x1;}['_handleHover'](){const _0x46918b=_0x1cd32e,_0x4a6c8e=this[_0x46918b(0x457)][_0x46918b(0x1f2)]['subscribeEvent'](()=>{const _0x2146fd=_0x46918b;this[_0x2146fd(0x11f)]=!0x0;}),_0x47e541=this['_anchor']['onPointerLeave$']['subscribeEvent'](()=>{const _0x5b7689=_0x46918b;this[_0x5b7689(0x322)]&&clearTimeout(this[_0x5b7689(0x322)]),this['_hideTimer']=setTimeout(()=>{const _0x12dc25=_0x5b7689;this[_0x12dc25(0x11f)]=!0x1;},0x7d0);});return()=>{const _0xf6bd02=_0x46918b;_0x4a6c8e[_0xf6bd02(0x4a9)](),_0x47e541['unsubscribe']();};}['_drawTextRange'](_0x25492e,_0x565f3e,_0x58ae5f,_0x152b6d){const _0x25bf44=_0x1cd32e,_0x220800=new a[(_0x25bf44(0x1dc))](_0x25492e)[_0x25bf44(0x4c2)](0.2)[_0x25bf44(0x1dd)](),_0x4160c7=new D['RegularPolygon'](mi+a['Tools'][_0x25bf44(0x3ce)](le),{'pointsGroup':_0x565f3e,'fill':_0x220800||D['getColor'](a[_0x25bf44(0x50a)][_0x25bf44(0x4ca)],0.2),'left':_0x58ae5f,'top':_0x152b6d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x25bf44(0x435)](_0x4160c7),this[_0x25bf44(0x1fd)][_0x25bf44(0x3ca)](_0x4160c7,N[_0x25bf44(0x25f)]);}[_0x1cd32e(0x219)](_0x1fd709,_0x276950,_0x50192c,_0x1dca1c){const _0x4eb84f=_0x1cd32e,_0x5d435b=new a[(_0x4eb84f(0x1dc))](_0x1fd709)['setAlpha'](0.2)[_0x4eb84f(0x1dd)](),_0x4ff85d=new D[(_0x4eb84f(0x23a))](gi+a[_0x4eb84f(0x541)][_0x4eb84f(0x3ce)](le),{'pointsGroup':_0x276950,'fill':_0x5d435b||D[_0x4eb84f(0x147)](a['COLORS']['black'],0.2),'left':_0x50192c,'top':_0x1dca1c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4eb84f(0x368)][_0x4eb84f(0x435)](_0x4ff85d),this[_0x4eb84f(0x1fd)][_0x4eb84f(0x3ca)](_0x4ff85d,N[_0x4eb84f(0x25f)]);}[_0x1cd32e(0x420)](_0x574eac){const _0x11ff45=_0x574eac[0x0],_0x241a58=_0x11ff45[0x0],_0x1dce9a=_0x11ff45[0x2],{x:_0x2bd65b,y:_0xa98954}=_0x241a58,{x:_0x198318,y:_0x278b02}=_0x1dce9a;return{'left':_0x2bd65b,'top':_0xa98954,'width':_0x198318-_0x2bd65b,'height':_0x278b02-_0xa98954};}[_0x1cd32e(0x228)](){const _0x231262=_0x1cd32e,{scaleX:_0x3b1eb0,scaleY:_0x2b4749}=this[_0x231262(0x1fd)][_0x231262(0x22d)]();return Math[_0x231262(0x23e)](_0x3b1eb0,_0x2b4749);}}var Ci=Object[_0x1cd32e(0x528)],Ei=Object[_0x1cd32e(0x41c)],bi=(_0x48c083,_0x10e690,_0x15ef6b,_0x17399c)=>{const _0x328644=_0x1cd32e;for(var _0x3d0bb6=_0x17399c>0x1?void 0x0:_0x17399c?Ei(_0x10e690,_0x15ef6b):_0x10e690,_0x9c5629=_0x48c083[_0x328644(0x23c)]-0x1,_0x29976a;_0x9c5629>=0x0;_0x9c5629--)(_0x29976a=_0x48c083[_0x9c5629])&&(_0x3d0bb6=(_0x17399c?_0x29976a(_0x10e690,_0x15ef6b,_0x3d0bb6):_0x29976a(_0x3d0bb6))||_0x3d0bb6);return _0x17399c&&_0x3d0bb6&&Ci(_0x10e690,_0x15ef6b,_0x3d0bb6),_0x3d0bb6;},ve=(_0x44d4c8,_0x11bf82)=>(_0x5a576b,_0x4901ff)=>_0x11bf82(_0x5a576b,_0x4901ff,_0x44d4c8);let Ve=class extends a[_0x1cd32e(0x29e)]{constructor(_0x105323,_0x53701a,_0xb40d94,_0x2b93be,_0x5d7d9e){const _0x30604e=_0x1cd32e;super(),u(this,_0x30604e(0x4cf),[]),u(this,_0x30604e(0x2ab),[]),(this[_0x30604e(0x282)]=_0x105323,this[_0x30604e(0x488)]=_0x53701a,this['_collabCursorController']=_0xb40d94,this[_0x30604e(0x45a)]=_0x2b93be,this[_0x30604e(0x4a0)]=_0x5d7d9e,this['_init']());}[_0x1cd32e(0x3d1)](){const _0x36d46c=_0x1cd32e,_0x4a5f97=this[_0x36d46c(0x282)][_0x36d46c(0x543)],_0x524d2d=this[_0x36d46c(0x488)];this[_0x36d46c(0x3d2)](v[_0x36d46c(0x514)]([this[_0x36d46c(0x256)][_0x36d46c(0x33f)](_0x4a5f97),this[_0x36d46c(0x4a0)][_0x36d46c(0x408)]])['pipe'](E[_0x36d46c(0x479)](([_0x3e70e2,_0x5dfd7a])=>({'skeleton':_0x524d2d[_0x36d46c(0x241)](),'cursors':[..._0x3e70e2[_0x36d46c(0x53d)]()]['flatMap'](_0x210565=>({..._0x210565,'color':_0x5dfd7a[_0x210565[_0x36d46c(0x216)]]}))})))[_0x36d46c(0x22b)](_0x2fb1b8=>{const _0x1b6c1a=_0x36d46c;if(this[_0x1b6c1a(0x3d8)](),_0x2fb1b8){const {skeleton:_0x5b696b,cursors:_0x5d46ef}=_0x2fb1b8;this['_updateCollabCursors'](_0x5b696b,_0x5d46ef);}})),this['_initResize'](),this[_0x36d46c(0x4ba)]();}['_updateCollabCursors'](_0x455bca,_0x1525e3){const _0x350f99=_0x1cd32e,{scene:_0xfa1b52,mainComponent:_0x535254}=this[_0x350f99(0x282)],_0x1fed43=_0x1525e3[_0x350f99(0x479)](_0xfd9362=>new ht(_0xfd9362,_0xfa1b52,_0x455bca,_0x535254));this['_cursorShapes']=_0x1fed43,this[_0x350f99(0x2ab)]=_0x1525e3;}[_0x1cd32e(0x34c)](){const _0x4b08d0=_0x1cd32e;this[_0x4b08d0(0x3d8)]();const {scene:_0x2f814b,mainComponent:_0x115c25}=this[_0x4b08d0(0x282)],_0x5f2d00=this[_0x4b08d0(0x488)][_0x4b08d0(0x241)](),_0x4d84f1=this[_0x4b08d0(0x2ab)]['map'](_0x6ed33a=>new ht(_0x6ed33a,_0x2f814b,_0x5f2d00,_0x115c25));this[_0x4b08d0(0x4cf)]=_0x4d84f1;}[_0x1cd32e(0x3d8)](){const _0x25fba4=_0x1cd32e;this[_0x25fba4(0x4cf)][_0x25fba4(0x12a)](_0x156bb7=>_0x156bb7['dispose']()),this['_cursorShapes']=[];}[_0x1cd32e(0x4ba)](){const _0x2a3cf7=_0x1cd32e,_0x38e927=[N[_0x2a3cf7(0x4c9)]['id']];this[_0x2a3cf7(0x3d2)](this['_commandService']['onCommandExecuted'](_0x199b22=>{const _0x1fdf61=_0x2a3cf7;_0x38e927[_0x1fdf61(0x351)](_0x199b22['id'])&&_0x199b22[_0x1fdf61(0x1ea)][_0x1fdf61(0x543)]===this[_0x1fdf61(0x282)][_0x1fdf61(0x543)]&&this['_refreshCollabCursors']();}));}[_0x1cd32e(0x3e9)](){const _0x3546a9=_0x1cd32e;this[_0x3546a9(0x3d2)](a[_0x3546a9(0x222)](this[_0x3546a9(0x282)][_0x3546a9(0x144)][_0x3546a9(0x346)])[_0x3546a9(0x430)](E[_0x3546a9(0x181)](_0x427088=>_0x427088[_0x3546a9(0x3eb)]===D['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3546a9(0x3d6)]),E[_0x3546a9(0x42b)](0x10))[_0x3546a9(0x22b)](()=>{const _0x388770=_0x3546a9;this[_0x388770(0x34c)]();}));}};Ve=bi([ve(0x1,a[_0x1cd32e(0x151)](se[_0x1cd32e(0x2aa)])),ve(0x2,a[_0x1cd32e(0x151)](ne)),ve(0x3,a[_0x1cd32e(0x1ee)]),ve(0x4,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x121)]))],Ve);const Ti=0x1,Ri=1.5;class Nt extends D[_0x1cd32e(0x1a4)]{constructor(_0x2a9a0c,_0x2fac21){const _0x5854d7=_0x1cd32e;super(_0x2a9a0c,_0x2fac21),u(this,_0x5854d7(0x2f7)),u(this,'_hovered',!0x1),u(this,_0x5854d7(0x2fd)),u(this,_0x5854d7(0x1f0),''),u(this,_0x5854d7(0x4d1),_0x5854d7(0x4b9)),u(this,_0x5854d7(0x183)),(_0x2fac21&&this[_0x5854d7(0x362)](_0x2fac21),this[_0x5854d7(0x1f2)][_0x5854d7(0x490)](()=>this[_0x5854d7(0x362)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x5854d7(0x362)]({'hovered':!0x1})));}[_0x1cd32e(0x362)](_0x4b4a18){const _0x47e273=_0x1cd32e;var _0xc5a993,_0x188870,_0x31caa5,_0x3012d6,_0x5c9d35,_0x6491e6;this['_color']=(_0xc5a993=_0x4b4a18[_0x47e273(0x216)])!=null?_0xc5a993:this['_color'],this[_0x47e273(0x39b)]=(_0x188870=_0x4b4a18['hovered'])!=null?_0x188870:this[_0x47e273(0x39b)],this[_0x47e273(0x2fd)]=(_0x31caa5=_0x4b4a18[_0x47e273(0x237)])!=null?_0x31caa5:this[_0x47e273(0x2fd)],this[_0x47e273(0x1f0)]=(_0x3012d6=_0x4b4a18[_0x47e273(0x497)])!=null?_0x3012d6:this[_0x47e273(0x1f0)],this[_0x47e273(0x4d1)]=(_0x5c9d35=_0x4b4a18[_0x47e273(0x4ab)])!=null?_0x5c9d35:this[_0x47e273(0x4d1)],this[_0x47e273(0x183)]=(_0x6491e6=_0x4b4a18[_0x47e273(0x358)])!=null?_0x6491e6:this[_0x47e273(0x183)],this[_0x47e273(0x1a1)]({'width':_0x4b4a18[_0x47e273(0x1c2)],'height':_0x4b4a18['height']});}[_0x1cd32e(0x324)](_0x59b22f){const _0x12388d=_0x1cd32e,{row:_0xbc29e6,column:_0x4877cc}=_0x59b22f;if(_0xbc29e6>=this[_0x12388d(0x2fd)][_0x12388d(0x41f)]&&_0xbc29e6<=this[_0x12388d(0x2fd)]['endRow']&&_0x4877cc>=this['_range']['startColumn']&&_0x4877cc<=this[_0x12388d(0x2fd)][_0x12388d(0x3c7)]){this[_0x12388d(0x362)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x1cd32e(0x185)](_0x78e2f7){return!0x1;}['_draw'](_0x68c771){const _0x3f39b8=_0x1cd32e;D['Rect'][_0x3f39b8(0x2ec)](_0x68c771,{'width':this[_0x3f39b8(0x1c2)],'height':this['height'],'strokeWidth':Ri,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x68c771[_0x3f39b8(0x353)](),_0x68c771[_0x3f39b8(0x472)](0x1,0x0,0x0,0x1,this[_0x3f39b8(0x1c2)],this[_0x3f39b8(0x4d1)]===_0x3f39b8(0x441)?0x0:-de),Oe[_0x3f39b8(0x2ec)](_0x68c771,{'text':this[_0x3f39b8(0x1f0)],'color':this['_color']}),_0x68c771[_0x3f39b8(0x164)]());}}var Oi=Object[_0x1cd32e(0x528)],Di=Object[_0x1cd32e(0x41c)],yi=(_0x36348b,_0xc2b7bd,_0x42b14f,_0x2ab8d6)=>{const _0x190ab5=_0x1cd32e;for(var _0x2cb20d=_0x2ab8d6>0x1?void 0x0:_0x2ab8d6?Di(_0xc2b7bd,_0x42b14f):_0xc2b7bd,_0x468dee=_0x36348b[_0x190ab5(0x23c)]-0x1,_0x22ff0d;_0x468dee>=0x0;_0x468dee--)(_0x22ff0d=_0x36348b[_0x468dee])&&(_0x2cb20d=(_0x2ab8d6?_0x22ff0d(_0xc2b7bd,_0x42b14f,_0x2cb20d):_0x22ff0d(_0x2cb20d))||_0x2cb20d);return _0x2ab8d6&&_0x2cb20d&&Oi(_0xc2b7bd,_0x42b14f,_0x2cb20d),_0x2cb20d;},$e=(_0x3b8daf,_0x116a6f)=>(_0x430956,_0x813085)=>_0x116a6f(_0x430956,_0x813085,_0x3b8daf);const Ui=0x1389;let We=class extends a['RxDisposable']{constructor(_0x35956c,_0x3193ce,_0x47fb6f,_0xd01389){const _0xd8231c=_0x1cd32e;super(),u(this,_0xd8231c(0x2ab),new Set()),u(this,'_lastPointer',null),(this[_0xd8231c(0x282)]=_0x35956c,this[_0xd8231c(0x1aa)]=_0x3193ce,this[_0xd8231c(0x256)]=_0x47fb6f,this['_themeService']=_0xd01389,this['_init']());}[_0x1cd32e(0x3d1)](){const _0xf1ae2d=_0x1cd32e;this['_sheetSkeletonManagerService'][_0xf1ae2d(0x4af)][_0xf1ae2d(0x430)](E[_0xf1ae2d(0x165)](this[_0xf1ae2d(0x4eb)]),E[_0xf1ae2d(0x3af)](_0x34b2cf=>{const _0x39b4ee=_0xf1ae2d;if(_0x34b2cf){const _0x5e9176=_0x34b2cf[_0x39b4ee(0x2f4)];return v[_0x39b4ee(0x514)](this['_collabCursorController'][_0x39b4ee(0x33f)](this[_0x39b4ee(0x282)][_0x39b4ee(0x543)]),this[_0x39b4ee(0x4a0)]['currentTheme$'])[_0x39b4ee(0x430)](E['map'](([_0x568bcf,_0x1a3b36])=>{const _0x5b95e8=_0x39b4ee,_0x5bc68e=new Map();return _0x568bcf[_0x5b95e8(0x12a)]((_0x39c3ad,_0x5dc597)=>{const _0x3ae3ee=_0x5b95e8;if(_0x39c3ad[_0x3ae3ee(0x25d)]===_0x5e9176){const _0x25d7ca={..._0x39c3ad};_0x25d7ca['color']=_0x1a3b36[_0x39c3ad[_0x3ae3ee(0x216)]],_0x5bc68e[_0x3ae3ee(0x10c)](_0x5dc597,_0x25d7ca);}}),{'skeleton':_0x34b2cf,'cursors':_0x5bc68e};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0xf1ae2d(0x22b)](({skeleton:_0x1d094e,cursors:_0x422695})=>{const _0x6db6b6=_0xf1ae2d;this[_0x6db6b6(0x3d8)](),_0x1d094e&&this[_0x6db6b6(0x50d)](_0x1d094e,_0x422695);}),this[_0xf1ae2d(0x1aa)][_0xf1ae2d(0x4af)]['subscribe'](_0x1682ca=>{const _0x50497a=_0xf1ae2d;if(_0x1682ca==null)return;const {skeleton:_0x3bcd07}=_0x1682ca,{scene:_0x50e4a6}=this[_0x50497a(0x282)];_0x50e4a6[_0x50497a(0x2f0)][_0x50497a(0x490)](a[_0x50497a(0x415)](_0x4e4f64=>{const _0x4c8b91=_0x50497a;var _0x426864,_0x395d28;const {offsetX:_0x3806ec,offsetY:_0x3c2bdd}=_0x4e4f64,{x:_0x379c12,y:_0x310568}=_0x50e4a6[_0x4c8b91(0x2c0)](D[_0x4c8b91(0x535)][_0x4c8b91(0x445)]([_0x3806ec,_0x3c2bdd])),{scaleX:_0x3ff994,scaleY:_0x9269af}=_0x50e4a6[_0x4c8b91(0x22d)](),_0x54582f=_0x50e4a6[_0x4c8b91(0x180)](te[_0x4c8b91(0x198)]['VIEW_MAIN']),_0x5a57b2=_0x50e4a6[_0x4c8b91(0x1fc)](D[_0x4c8b91(0x535)]['FromArray']([_0x379c12,_0x310568]),_0x54582f),_0x49b97e=_0x3bcd07[_0x4c8b91(0x3de)](_0x3806ec,_0x3c2bdd,_0x3ff994,_0x9269af,_0x5a57b2);((_0x426864=this[_0x4c8b91(0x1d1)])==null?void 0x0:_0x426864[_0x4c8b91(0x341)])===_0x49b97e[_0x4c8b91(0x341)]&&((_0x395d28=this[_0x4c8b91(0x1d1)])==null?void 0x0:_0x395d28[_0x4c8b91(0x179)])===_0x49b97e[_0x4c8b91(0x179)]||this[_0x4c8b91(0x2ab)]['forEach'](_0x4d9a43=>{_0x4d9a43['onMouseMove'](_0x49b97e);});},0x64));});}[_0x1cd32e(0x50d)](_0x1e38ea,_0x42e1f7){const _0x3936a7=_0x1cd32e;var _0x43827a;const _0x5d467f=(_0x43827a=this[_0x3936a7(0x1aa)][_0x3936a7(0x1a6)]())==null?void 0x0:_0x43827a[_0x3936a7(0x4f7)];if(!_0x5d467f)return;const _0x362a9e=this['_getSheetObject']();if(!_0x362a9e)return;this[_0x3936a7(0x2ab)]['forEach'](_0x2e97f4=>{_0x2e97f4['makeDirty']();});const {scene:_0x360268}=_0x362a9e,_0x5567d8=Pi(Array['from'](_0x42e1f7[_0x3936a7(0x53d)]()))['map'](_0x324356=>{const _0x43a345=_0x3936a7,{color:_0x4ea41c,range:_0x261344,name:_0x191fd0,selection:_0x3e5181,sheetID:_0x3ab1f8}=_0x324356,{startColumn:_0x2d518e,startRow:_0x2b423c,endColumn:_0x1da7e2,endRow:_0x16e93a}=_0x261344,_0x3bc674=te['getCoordByCell'](_0x2b423c,_0x2d518e,_0x360268,_0x5d467f),_0x2a38e2=te['getCoordByCell'](_0x16e93a,_0x1da7e2,_0x360268,_0x5d467f),{columnHeaderHeightAndMarginTop:_0xf4176b}=_0x5d467f,{startX:_0x19cdf7,startY:_0x3864f4}=_0x3bc674,{endX:_0x176c65,endY:_0x38c434}=_0x2a38e2,_0x1f8379=_0x176c65-_0x19cdf7,_0x39350b=_0x38c434-_0x3864f4,_0x402a7e={'labelPosition':_0x3864f4-_0xf4176b>=de?'top':_0x43a345(0x441),'sheetID':_0x3ab1f8,'range':_0x261344,'color':_0x4ea41c,'name':_0x191fd0,'selection':_0x3e5181,'left':_0x19cdf7,'top':_0x3864f4,'width':_0x1f8379,'height':_0x39350b,'evented':!0x1,'zIndex':Ui};return new Nt(_0x191fd0,_0x402a7e);});_0x360268['addObjects'](_0x5567d8,Ti),this[_0x3936a7(0x2ab)]=new Set(_0x5567d8);}['_removeCollabCursors'](){const _0x482087=_0x1cd32e;var _0x19edaa;(_0x19edaa=this[_0x482087(0x2ab)])==null||_0x19edaa[_0x482087(0x12a)](_0x315c59=>_0x315c59[_0x482087(0x477)]());}[_0x1cd32e(0x253)](){const _0x32c587=_0x1cd32e;return te['getSheetObject'](this[_0x32c587(0x282)][_0x32c587(0x11e)],this[_0x32c587(0x282)]);}};We=yi([$e(0x1,a[_0x1cd32e(0x151)](te[_0x1cd32e(0x2e6)])),$e(0x2,a[_0x1cd32e(0x151)](ne)),$e(0x3,a[_0x1cd32e(0x151)](a['ThemeService']))],We);function Pi(_0x195984){const _0x5bc464=_0x1cd32e,_0xf35798=new Map();return _0x195984[_0x5bc464(0x12a)](_0x50a8cc=>{const _0x323793=_0x5bc464;if(_0xf35798['has'](_0x50a8cc[_0x323793(0x512)])){const _0x46b2b3=_0xf35798[_0x323793(0x2bd)](_0x50a8cc[_0x323793(0x512)]);_0x46b2b3[_0x323793(0x497)]+=',\x20'+_0x50a8cc[_0x323793(0x497)];}else _0xf35798[_0x323793(0x10c)](_0x50a8cc[_0x323793(0x512)],_0x50a8cc);}),Array[_0x5bc464(0x3f5)](_0xf35798[_0x5bc464(0x53d)]());}var M=function(){const _0x4e862d=_0x1cd32e;return M=Object[_0x4e862d(0x4a7)]||function(_0x5b14d5){const _0x32d000=_0x4e862d;for(var _0x36166b,_0x16586d=0x1,_0x445086=arguments[_0x32d000(0x23c)];_0x16586d<_0x445086;_0x16586d++){_0x36166b=arguments[_0x16586d];for(var _0x15969c in _0x36166b)Object[_0x32d000(0x19b)][_0x32d000(0x2b7)][_0x32d000(0x124)](_0x36166b,_0x15969c)&&(_0x5b14d5[_0x15969c]=_0x36166b[_0x15969c]);}return _0x5b14d5;},M[_0x4e862d(0x3b0)](this,arguments);},wi=function(_0x2907b8,_0x28495b){const _0x2c1e3f=_0x1cd32e;var _0x104086={};for(var _0x1297e9 in _0x2907b8)Object[_0x2c1e3f(0x19b)]['hasOwnProperty'][_0x2c1e3f(0x124)](_0x2907b8,_0x1297e9)&&_0x28495b['indexOf'](_0x1297e9)<0x0&&(_0x104086[_0x1297e9]=_0x2907b8[_0x1297e9]);if(_0x2907b8!=null&&typeof Object[_0x2c1e3f(0x4c7)]==_0x2c1e3f(0x2b3)){for(var _0x497ebb=0x0,_0x1297e9=Object['getOwnPropertySymbols'](_0x2907b8);_0x497ebb<_0x1297e9[_0x2c1e3f(0x23c)];_0x497ebb++)_0x28495b['indexOf'](_0x1297e9[_0x497ebb])<0x0&&Object[_0x2c1e3f(0x19b)][_0x2c1e3f(0x429)][_0x2c1e3f(0x124)](_0x2907b8,_0x1297e9[_0x497ebb])&&(_0x104086[_0x1297e9[_0x497ebb]]=_0x2907b8[_0x1297e9[_0x497ebb]]);}return _0x104086;},Ze=P['forwardRef'](function(_0x47b7fa,_0x142ea4){const _0x2e5cf4=_0x1cd32e;var _0x2565e0=_0x47b7fa[_0x2e5cf4(0x4a5)],_0x30c1bb=_0x47b7fa['id'],_0x40f014=_0x47b7fa['className'],_0x5bad30=_0x47b7fa['extend'],_0x17a5e2=wi(_0x47b7fa,['icon','id',_0x2e5cf4(0x30f),_0x2e5cf4(0x48c)]),_0x41c57a=_0x2e5cf4(0x313)['concat'](_0x30c1bb,'\x20')['concat'](_0x40f014||'')[_0x2e5cf4(0x462)](),_0x142f66=P[_0x2e5cf4(0x127)]('_'[_0x2e5cf4(0x4dc)](Ai()));return Mt(_0x2565e0,''[_0x2e5cf4(0x4dc)](_0x30c1bb),{'defIds':_0x2565e0[_0x2e5cf4(0x51c)],'idSuffix':_0x142f66[_0x2e5cf4(0x1ed)]},M({'ref':_0x142ea4,'className':_0x41c57a},_0x17a5e2),_0x5bad30);});function Mt(_0x5dd0b2,_0x8673ca,_0x206624,_0x1985b0,_0xcd92f){const _0x187dca=_0x1cd32e;return P[_0x187dca(0x513)](_0x5dd0b2[_0x187dca(0x227)],M(M({'key':_0x8673ca},Ni(_0x5dd0b2,_0x206624,_0xcd92f)),_0x1985b0),(Mi(_0x5dd0b2,_0x206624)[_0x187dca(0x50e)]||[])[_0x187dca(0x479)](function(_0x2e1e0b,_0x1760cc){const _0x4192a4=_0x187dca;return Mt(_0x2e1e0b,''[_0x4192a4(0x4dc)](_0x8673ca,'-')[_0x4192a4(0x4dc)](_0x5dd0b2[_0x4192a4(0x227)],'-')[_0x4192a4(0x4dc)](_0x1760cc),_0x206624,void 0x0,_0xcd92f);}));}function Ni(_0x28b539,_0x43dc77,_0x26624b){const _0x1fee12=_0x1cd32e;var _0x14da4a=M({},_0x28b539[_0x1fee12(0x2ac)]);_0x26624b!=null&&_0x26624b[_0x1fee12(0x1a3)]&&_0x14da4a[_0x1fee12(0x357)]===_0x1fee12(0x1a3)&&(_0x14da4a[_0x1fee12(0x357)]=_0x26624b[_0x1fee12(0x1a3)]);var _0xc99fb0=_0x43dc77[_0x1fee12(0x51c)];return!_0xc99fb0||_0xc99fb0['length']===0x0||(_0x28b539[_0x1fee12(0x227)]===_0x1fee12(0x279)&&_0x14da4a[_0x1fee12(0x387)]&&(_0x14da4a[_0x1fee12(0x387)]=_0x14da4a[_0x1fee12(0x387)]+_0x43dc77['idSuffix']),Object['entries'](_0x14da4a)[_0x1fee12(0x12a)](function(_0xd945db){const _0x403dd6=_0x1fee12;var _0x44de6f=_0xd945db[0x0],_0x1415f7=_0xd945db[0x1];typeof _0x1415f7==_0x403dd6(0x1eb)&&(_0x14da4a[_0x44de6f]=_0x1415f7[_0x403dd6(0x475)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x43dc77[_0x403dd6(0x320)],')')));})),_0x14da4a;}function Mi(_0x25c2bc,_0x2e61af){const _0x247766=_0x1cd32e;var _0x4ea7b7,_0x421669=_0x2e61af[_0x247766(0x51c)];return!_0x421669||_0x421669[_0x247766(0x23c)]===0x0?_0x25c2bc:_0x25c2bc[_0x247766(0x227)]==='defs'&&(!((_0x4ea7b7=_0x25c2bc[_0x247766(0x50e)])===null||_0x4ea7b7===void 0x0)&&_0x4ea7b7['length'])?M(M({},_0x25c2bc),{'children':_0x25c2bc[_0x247766(0x50e)]['map'](function(_0x5df443){const _0x128889=_0x247766;return typeof _0x5df443['attrs']['id']==_0x128889(0x1eb)&&_0x421669&&_0x421669[_0x128889(0x17f)](_0x5df443[_0x128889(0x2ac)]['id'])>-0x1?M(M({},_0x5df443),{'attrs':M(M({},_0x5df443[_0x128889(0x2ac)]),{'id':_0x5df443[_0x128889(0x2ac)]['id']+_0x2e61af[_0x128889(0x320)]})}):_0x5df443;})}):_0x25c2bc;}function Ai(){const _0x1739e8=_0x1cd32e;return Math[_0x1739e8(0x439)]()['toString'](0x24)[_0x1739e8(0x499)](0x2,0x8);}Ze[_0x1cd32e(0x4b3)]='UniverIcon';var Li={'tag':_0x1cd32e(0x4f0),'attrs':{'fill':_0x1cd32e(0x464),'viewBox':_0x1cd32e(0x1bf),'width':_0x1cd32e(0x4c1),'height':_0x1cd32e(0x4c1)},'children':[{'tag':'g','attrs':{'clipPath':_0x1cd32e(0x533)},'children':[{'tag':_0x1cd32e(0x300),'attrs':{'stroke':_0x1cd32e(0x1a0),'d':_0x1cd32e(0x2b2),'strokeLinecap':_0x1cd32e(0x51d),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1cd32e(0x3a4),'attrs':{},'children':[{'tag':_0x1cd32e(0x1e2),'attrs':{'id':_0x1cd32e(0x3a3)},'children':[{'tag':_0x1cd32e(0x300),'attrs':{'fill':_0x1cd32e(0x37d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x1cd32e(0x3a3)]},At=P[_0x1cd32e(0x4b2)](function(_0x292dde,_0x4c79c9){const _0xb73ef=_0x1cd32e;return P[_0xb73ef(0x513)](Ze,Object[_0xb73ef(0x4a7)]({},_0x292dde,{'id':_0xb73ef(0x40a),'ref':_0x4c79c9,'icon':Li}));});At[_0x1cd32e(0x4b3)]=_0x1cd32e(0x504);var ji={'tag':_0x1cd32e(0x4f0),'attrs':{'fill':_0x1cd32e(0x464),'viewBox':_0x1cd32e(0x4fd),'width':_0x1cd32e(0x4c1),'height':_0x1cd32e(0x4c1)},'children':[{'tag':'g','attrs':{'clipPath':_0x1cd32e(0x126)},'children':[{'tag':'path','attrs':{'stroke':_0x1cd32e(0x1a0),'d':_0x1cd32e(0x384),'strokeLinecap':_0x1cd32e(0x51d),'strokeLinejoin':_0x1cd32e(0x51d),'strokeWidth':1.2}}]},{'tag':_0x1cd32e(0x3a4),'attrs':{},'children':[{'tag':_0x1cd32e(0x1e2),'attrs':{'id':_0x1cd32e(0x267)},'children':[{'tag':'path','attrs':{'fill':_0x1cd32e(0x37d),'d':_0x1cd32e(0x1f3),'transform':_0x1cd32e(0x1bd)}}]}]}],'defIds':[_0x1cd32e(0x267)]},Lt=P[_0x1cd32e(0x4b2)](function(_0x1029d4,_0x50a088){const _0x4328d2=_0x1cd32e;return P[_0x4328d2(0x513)](Ze,Object['assign']({},_0x1029d4,{'id':_0x4328d2(0x48f),'ref':_0x50a088,'icon':ji}));});Lt[_0x1cd32e(0x4b3)]='OnLineSingle';function jt(_0x584065){const _0x547670=_0x1cd32e;var _0x24a7c2,_0x32ab61,_0x5d7fac='';if(typeof _0x584065==_0x547670(0x1eb)||typeof _0x584065==_0x547670(0x325))_0x5d7fac+=_0x584065;else{if(typeof _0x584065==_0x547670(0x1e1)){if(Array[_0x547670(0x2b8)](_0x584065)){var _0x50a436=_0x584065['length'];for(_0x24a7c2=0x0;_0x24a7c2<_0x50a436;_0x24a7c2++)_0x584065[_0x24a7c2]&&(_0x32ab61=jt(_0x584065[_0x24a7c2]))&&(_0x5d7fac&&(_0x5d7fac+='\x20'),_0x5d7fac+=_0x32ab61);}else{for(_0x32ab61 in _0x584065)_0x584065[_0x32ab61]&&(_0x5d7fac&&(_0x5d7fac+='\x20'),_0x5d7fac+=_0x32ab61);}}}return _0x5d7fac;}function $i(){const _0x10d32b=_0x1cd32e;for(var _0x92008a,_0x45514e,_0x21b93d=0x0,_0x58d225='',_0x1e10dc=arguments[_0x10d32b(0x23c)];_0x21b93d<_0x1e10dc;_0x21b93d++)(_0x92008a=arguments[_0x21b93d])&&(_0x45514e=jt(_0x92008a))&&(_0x58d225&&(_0x58d225+='\x20'),_0x58d225+=_0x45514e);return _0x58d225;}const Hi=_0x1cd32e(0x53c),xi='univer-online-status-title',ki=_0x1cd32e(0x540),Bi=_0x1cd32e(0x4f9),Vi=_0x1cd32e(0x1fa),he={'onlineStatusIcon':Hi,'onlineStatusTitle':xi,'onlineStatus':ki,'online':Bi,'offline':Vi};function Wi(_0x89e763){const _0x44d6c6=_0x1cd32e;switch(_0x89e763){case U[_0x44d6c6(0x3c2)]:return'collabStatus.offline';case U[_0x44d6c6(0x23b)]:return _0x44d6c6(0x49c);case U[_0x44d6c6(0x2f2)]:return'collabStatus.fetchMiss';case U[_0x44d6c6(0x2fe)]:return'collabStatus.notCollab';case U[_0x44d6c6(0x308)]:case U[_0x44d6c6(0x152)]:return _0x44d6c6(0x286);case U[_0x44d6c6(0x27f)]:case U['PENDING']:return _0x44d6c6(0x149);}}function $t(_0x1ebc3d){const _0x50266d=_0x1cd32e,{status$:_0x4f8826}=_0x1ebc3d,_0x4b00dc=A[_0x50266d(0x20e)](_0x4f8826,U[_0x50266d(0x2fe)]),_0x2aa488=a[_0x50266d(0x437)](a[_0x50266d(0x223)]),_0x1b03b3=a[_0x50266d(0x437)](exports['CollaborationSessionService']),_0x164ab1=_0x4b00dc!==U['OFFLINE'],_0x8e24c8=_0x2aa488['t'](Wi(_0x4b00dc)),_0x3a8c85=$i(he[_0x50266d(0x3ad)],{[he['online']]:_0x164ab1,[he[_0x50266d(0x17d)]]:!_0x164ab1}),_0x45d7fa=_0x164ab1?P[_0x50266d(0x513)](Lt,null):P[_0x50266d(0x513)](At,null),_0x446507=P[_0x50266d(0x453)](()=>{_0x164ab1||_0x1b03b3['reconnect']();},[_0x164ab1,_0x1b03b3]);function _0x244244(){const _0x5d82b3=_0x50266d;return P[_0x5d82b3(0x513)](_0x5d82b3(0x12e),{'className':_0x3a8c85,'onClick':_0x446507},P[_0x5d82b3(0x513)](_0x5d82b3(0x12e),{'className':he['onlineStatusIcon']},_0x45d7fa),P['createElement']('div',{'className':he['onlineStatusTitle']},_0x8e24c8));}return _0x164ab1?_0x244244():P[_0x50266d(0x513)](q[_0x50266d(0x1c6)],{'title':_0x2aa488['t']('collab-client.tooltip.reconnect')},_0x244244());}var Fi=Object[_0x1cd32e(0x528)],Gi=Object[_0x1cd32e(0x41c)],Yi=(_0x1ed739,_0x8f3e31,_0x471124,_0x899380)=>{for(var _0x551421=_0x899380>0x1?void 0x0:_0x899380?Gi(_0x8f3e31,_0x471124):_0x8f3e31,_0x3ced31=_0x1ed739['length']-0x1,_0xe8ec45;_0x3ced31>=0x0;_0x3ced31--)(_0xe8ec45=_0x1ed739[_0x3ced31])&&(_0x551421=(_0x899380?_0xe8ec45(_0x8f3e31,_0x471124,_0x551421):_0xe8ec45(_0x551421))||_0x551421);return _0x899380&&_0x551421&&Fi(_0x8f3e31,_0x471124,_0x551421),_0x551421;},me=(_0x1c48a1,_0x3006b2)=>(_0x2ad706,_0x14a4a6)=>_0x3006b2(_0x2ad706,_0x14a4a6,_0x1c48a1);exports[_0x1cd32e(0x44e)]=class extends a[_0x1cd32e(0x32f)]{constructor(_0x520bc2,_0x25679f,_0x3780da,_0x568ade){const _0x46534f=_0x1cd32e;super(),u(this,_0x46534f(0x2f5),new v['BehaviorSubject'](U[_0x46534f(0x2fe)])),(this['_univerInstanceService']=_0x520bc2,this[_0x46534f(0x2f9)]=_0x25679f,this[_0x46534f(0x33d)]=_0x3780da,this[_0x46534f(0x3a6)]=_0x568ade,this[_0x46534f(0x47e)](),this[_0x46534f(0x412)]());}[_0x1cd32e(0x412)](){const _0x3cfa1e=_0x1cd32e;this[_0x3cfa1e(0x3d2)](this['_univerInstanceService'][_0x3cfa1e(0x36c)]['pipe'](v['switchMap'](()=>{const _0x2b73da=_0x3cfa1e,_0x242cd2=this[_0x2b73da(0x4bd)][_0x2b73da(0x150)]();return _0x242cd2?this['_collaborationController'][_0x2b73da(0x283)](_0x242cd2[_0x2b73da(0x1fe)]()):v['of'](null);}),v['switchMap'](_0x478c4a=>_0x478c4a?_0x478c4a[_0x3cfa1e(0x440)]:v['of'](U[_0x3cfa1e(0x2fe)])))[_0x3cfa1e(0x22b)](_0x856bf9=>{const _0x6ff93d=_0x3cfa1e;this['_status$'][_0x6ff93d(0x203)](_0x856bf9);}));}[_0x1cd32e(0x47e)](){const _0x3c1478=_0x1cd32e;this[_0x3c1478(0x3d2)](this[_0x3c1478(0x2f9)][_0x3c1478(0x476)](A[_0x3c1478(0x52e)]['HEADER_MENU'],()=>a[_0x3c1478(0x1af)](Ki({'status$':this[_0x3c1478(0x2f5)][_0x3c1478(0x109)]()}),this[_0x3c1478(0x33d)])));}},exports[_0x1cd32e(0x44e)]=Yi([me(0x0,a[_0x1cd32e(0x4b5)]),me(0x1,A[_0x1cd32e(0x2ff)]),me(0x2,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),me(0x3,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x378)]))],exports[_0x1cd32e(0x44e)]);function Ki(_0x51133a){const {status$:_0x3fbbf3}=_0x51133a;return function(){const _0x205015=_0xcf6e;return P[_0x205015(0x513)]($t,{'status$':_0x3fbbf3});};}const Qe=a[_0x1cd32e(0x45e)](_0x1cd32e(0x1b0));var qi=Object[_0x1cd32e(0x528)],Xi=Object[_0x1cd32e(0x41c)],zi=(_0x329dbc,_0xfdcd25,_0x1d46d2,_0x1d399c)=>{for(var _0x1a3713=_0x1d399c>0x1?void 0x0:_0x1d399c?Xi(_0xfdcd25,_0x1d46d2):_0xfdcd25,_0xb0dc3e=_0x329dbc['length']-0x1,_0x360ebc;_0xb0dc3e>=0x0;_0xb0dc3e--)(_0x360ebc=_0x329dbc[_0xb0dc3e])&&(_0x1a3713=(_0x1d399c?_0x360ebc(_0xfdcd25,_0x1d46d2,_0x1a3713):_0x360ebc(_0x1a3713))||_0x1a3713);return _0x1d399c&&_0x1a3713&&qi(_0xfdcd25,_0x1d46d2,_0x1a3713),_0x1a3713;},ee=(_0x2111d6,_0x28ce4e)=>(_0x187ca6,_0x10cb96)=>_0x28ce4e(_0x187ca6,_0x10cb96,_0x2111d6);exports[_0x1cd32e(0x311)]=class extends a[_0x1cd32e(0x29e)]{constructor(_0x510df7,_0x2ec567,_0x34da17,_0x2e7aca,_0x5b1e80,_0x5e8f98){const _0x224402=_0x1cd32e;super(),this[_0x224402(0x2c4)]=_0x510df7,this['_logService']=_0x2ec567,this[_0x224402(0x45a)]=_0x34da17,this[_0x224402(0x35b)]=_0x2e7aca,this[_0x224402(0x136)]=_0x5b1e80,_0x5e8f98?_0x5e8f98==null||_0x5e8f98[_0x224402(0x482)]()[_0x224402(0x205)](()=>this['_init']()):(this[_0x224402(0x252)][_0x224402(0x1f1)](_0x224402(0x13e),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x1cd32e(0x3d1)](){const _0x4b0514=_0x1cd32e,_0x2683fb=this['_urlService']['getParam'](_0x4b0514(0x11e)),_0x138e0c=this[_0x4b0514(0x2c4)][_0x4b0514(0x413)](_0x4b0514(0x3eb));if(!_0x2683fb||!_0x138e0c){this[_0x4b0514(0x252)]['debug'](_0x4b0514(0x13e),_0x4b0514(0x500));return;}switch(Number(_0x138e0c)){case $[_0x4b0514(0x4aa)]:{const _0x502287=await this['_loadSheet'](_0x2683fb);this[_0x4b0514(0x34a)](_0x502287);break;}case $[_0x4b0514(0x3dc)]:{await this[_0x4b0514(0x400)](_0x2683fb);break;}default:{this[_0x4b0514(0x252)][_0x4b0514(0x275)](_0x4b0514(0x13e),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async['_setupSubUnitSync'](_0x4b05ff){const _0x46c048=_0x1cd32e;await this[_0x46c048(0x2a7)](_0x4b05ff),_0x4b05ff['activeSheet$'][_0x46c048(0x430)](v[_0x46c048(0x165)](this[_0x46c048(0x4eb)]))[_0x46c048(0x22b)](_0x5a759e=>{const _0x1ccdd9=_0x46c048;_0x5a759e&&this[_0x1ccdd9(0x470)](_0x5a759e);}),this[_0x46c048(0x2c4)]['urlChange$'][_0x46c048(0x430)](v[_0x46c048(0x165)](this[_0x46c048(0x4eb)]))[_0x46c048(0x22b)](()=>this[_0x46c048(0x2a7)](_0x4b05ff));}[_0x1cd32e(0x470)](_0x244a4e,_0xe3972=!0x1){const _0x380541=_0x1cd32e,_0x1936cb=this[_0x380541(0x2c4)][_0x380541(0x413)](_0x380541(0x22f));_0x244a4e[_0x380541(0x2df)]()!==_0x1936cb&&this[_0x380541(0x2c4)][_0x380541(0x1c1)](_0x380541(0x22f),_0x244a4e['getSheetId'](),_0xe3972);}async['_updateSubUnitFromURLParams'](_0x47b703){const _0x4d0e9c=_0x1cd32e;var _0x260d37;const _0x4c8708=this[_0x4d0e9c(0x2c4)]['getParam']('subunit');if(!_0x4c8708||!_0x47b703['getSheetBySheetId'](_0x4c8708)){const _0x477fc2=_0x47b703[_0x4d0e9c(0x1ba)]()[0x0],_0x577112=_0x47b703[_0x4d0e9c(0x455)](_0x477fc2);if(!_0x577112)return;this[_0x4d0e9c(0x470)](_0x577112,!0x0),await this[_0x4d0e9c(0x45a)][_0x4d0e9c(0x26d)](C[_0x4d0e9c(0x3cb)]['id'],{'unitId':_0x47b703[_0x4d0e9c(0x1fe)](),'subUnitId':_0x477fc2});return;}((_0x260d37=_0x47b703[_0x4d0e9c(0x40d)]())==null?void 0x0:_0x260d37['getSheetId']())!==_0x4c8708&&await this['_commandService'][_0x4d0e9c(0x26d)](C[_0x4d0e9c(0x3cb)]['id'],{'unitId':_0x47b703[_0x4d0e9c(0x1fe)](),'subUnitId':_0x4c8708});}async[_0x1cd32e(0x3ff)](_0x59593d){const _0x288acc=_0x1cd32e;let _0x3ef7b5=0x0;const _0x4fc98c=await this[_0x288acc(0x35b)][_0x288acc(0x115)](_0x59593d);return _0x4fc98c&&(_0x4fc98c['awaitingChangeset']||_0x4fc98c[_0x288acc(0x423)]['length']!==0x0)&&(_0x3ef7b5=_0x4fc98c[_0x288acc(0x344)]),_0x3ef7b5===0x0&&this[_0x288acc(0x252)][_0x288acc(0x1f1)](_0x288acc(0x13e),_0x288acc(0x41d)),this[_0x288acc(0x136)]['loadSheet'](_0x59593d,_0x3ef7b5);}async['_loadDoc'](_0x598696){const _0x3b45d2=_0x1cd32e;let _0x493575=0x0;const _0x1f3085=await this[_0x3b45d2(0x35b)][_0x3b45d2(0x115)](_0x598696);return _0x1f3085&&(_0x1f3085[_0x3b45d2(0x428)]||_0x1f3085['mutations']['length']!==0x0)&&(_0x493575=_0x1f3085[_0x3b45d2(0x344)]),_0x493575===0x0&&this[_0x3b45d2(0x252)][_0x3b45d2(0x1f1)](_0x3b45d2(0x13e),_0x3b45d2(0x41d)),this['_snapshotService']['loadDoc'](_0x598696,_0x493575);}},exports[_0x1cd32e(0x311)]=zi([ee(0x0,Qe),ee(0x1,a[_0x1cd32e(0x38c)]),ee(0x2,a[_0x1cd32e(0x1ee)]),ee(0x3,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x272)])),ee(0x4,a[_0x1cd32e(0x151)](_[_0x1cd32e(0x442)])),ee(0x5,a[_0x1cd32e(0x1a9)](Xt['IRemoteInstanceService']))],exports['DataLoaderController']);var Ji=Object[_0x1cd32e(0x528)],Zi=Object[_0x1cd32e(0x41c)],Qi=(_0x264649,_0x269f90,_0x101750,_0x522823)=>{const _0x4ecffa=_0x1cd32e;for(var _0x5ee2f6=_0x522823>0x1?void 0x0:_0x522823?Zi(_0x269f90,_0x101750):_0x269f90,_0x156a23=_0x264649[_0x4ecffa(0x23c)]-0x1,_0x4dad55;_0x156a23>=0x0;_0x156a23--)(_0x4dad55=_0x264649[_0x156a23])&&(_0x5ee2f6=(_0x522823?_0x4dad55(_0x269f90,_0x101750,_0x5ee2f6):_0x4dad55(_0x5ee2f6))||_0x5ee2f6);return _0x522823&&_0x5ee2f6&&Ji(_0x269f90,_0x101750,_0x5ee2f6),_0x5ee2f6;},_t=(_0x2d5d5a,_0x1ff797)=>(_0x1c3576,_0x3a3a8a)=>_0x1ff797(_0x1c3576,_0x3a3a8a,_0x2d5d5a);const en='DEFAULT_FILE_NAME',tn=_0x1cd32e(0x314);let Ce=class extends a[_0x1cd32e(0x32f)]{constructor(_0x1fbe0c,_0xc9b9a5){const _0x45698b=_0x1cd32e;super(),this['_univerInstanceService']=_0x1fbe0c,this[_0x45698b(0x29d)]=_0xc9b9a5,this[_0x45698b(0x3d1)]();}[_0x1cd32e(0x3d1)](){const _0x4fa892=_0x1cd32e;this['disposeWithMe'](this[_0x4fa892(0x4bd)][_0x4fa892(0x36c)]['subscribe'](()=>{const _0x4446e4=_0x4fa892;var _0x5ed108;const _0x146cd3=this['_univerInstanceService'][_0x4446e4(0x150)]();let _0x456bde=(_0x5ed108=this[_0x4446e4(0x29d)][_0x4446e4(0x3da)](en))!=null?_0x5ed108:tn;_0x146cd3 instanceof a['Workbook']&&(_0x456bde=_0x146cd3[_0x4446e4(0x497)]),document[_0x4446e4(0x242)]=_0x456bde;}));}};Ce=Qi([_t(0x0,a[_0x1cd32e(0x4b5)]),_t(0x1,a[_0x1cd32e(0x4d2)])],Ce);var sn=Object['defineProperty'],nn=Object[_0x1cd32e(0x41c)],rn=(_0x202dfa,_0x3a01e9,_0x3c3fa6,_0xfb595e)=>{const _0x560edc=_0x1cd32e;for(var _0x5033a8=_0xfb595e>0x1?void 0x0:_0xfb595e?nn(_0x3a01e9,_0x3c3fa6):_0x3a01e9,_0x5e3f57=_0x202dfa[_0x560edc(0x23c)]-0x1,_0x6701c7;_0x5e3f57>=0x0;_0x5e3f57--)(_0x6701c7=_0x202dfa[_0x5e3f57])&&(_0x5033a8=(_0xfb595e?_0x6701c7(_0x3a01e9,_0x3c3fa6,_0x5033a8):_0x6701c7(_0x5033a8))||_0x5033a8);return _0xfb595e&&_0x5033a8&&sn(_0x3a01e9,_0x3c3fa6,_0x5033a8),_0x5033a8;},He=(_0x238c4e,_0xbd69ec)=>(_0x3c247d,_0x350247)=>_0xbd69ec(_0x3c247d,_0x350247,_0x238c4e);let Ee=class{constructor(_0x4198e6,_0x578a35,_0x218730){const _0x35f09a=_0x1cd32e;this[_0x35f09a(0x29d)]=_0x4198e6,this[_0x35f09a(0x382)]=_0x578a35,this[_0x35f09a(0x4e8)]=_0x218730,this[_0x35f09a(0x2bf)]();}['init'](){const _0x63a6bb=_0x1cd32e;this[_0x63a6bb(0x382)][_0x63a6bb(0x18b)]({'priority':0x1,'interceptor':(_0x574c52,_0x255213)=>_0x255213(_0x574c52)[_0x63a6bb(0x430)](v['concatMap'](async _0x897744=>{const _0xd9a468=_0x63a6bb,_0x46ad0b=_0x897744;if(_0x46ad0b[_0xd9a468(0x2d8)]===0x191&&window['confirm'](this[_0xd9a468(0x4e8)]['t']('auth.needGotoLoginAlert'))){const _0x2ab5f6=window[_0xd9a468(0x27a)](window[_0xd9a468(0x336)]['href']);window['location'][_0xd9a468(0x30e)]=this[_0xd9a468(0x22a)]()+_0xd9a468(0x45d)+_0x2ab5f6;}return _0x46ad0b;}))});}[_0x1cd32e(0x22a)](){const _0x532d4d=_0x1cd32e;var _0x408150,_0x2feaa4;const _0x5b7466=this[_0x532d4d(0x29d)][_0x532d4d(0x3da)](Et),_0x2c3793=this[_0x532d4d(0x29d)][_0x532d4d(0x3da)](L);return(_0x2feaa4=(_0x408150=_0x2c3793==null?void 0x0:_0x2c3793[_0x532d4d(0x3b9)])!=null?_0x408150:_0x5b7466)!=null?_0x2feaa4:os;}};Ee=rn([He(0x0,a[_0x1cd32e(0x4d2)]),He(0x1,a[_0x1cd32e(0x151)](w['HTTPService'])),He(0x2,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x223)]))],Ee);var on=Object['defineProperty'],an=Object['getOwnPropertyDescriptor'],cn=(_0x5cb1d7,_0xabfa49,_0x530b37,_0x2bdb0c)=>{for(var _0xf6304b=_0x2bdb0c>0x1?void 0x0:_0x2bdb0c?an(_0xabfa49,_0x530b37):_0xabfa49,_0x1702f2=_0x5cb1d7['length']-0x1,_0x15c979;_0x1702f2>=0x0;_0x1702f2--)(_0x15c979=_0x5cb1d7[_0x1702f2])&&(_0xf6304b=(_0x2bdb0c?_0x15c979(_0xabfa49,_0x530b37,_0xf6304b):_0x15c979(_0xf6304b))||_0xf6304b);return _0x2bdb0c&&_0xf6304b&&on(_0xabfa49,_0x530b37,_0xf6304b),_0xf6304b;},ut=(_0x3760bc,_0x1e98c9)=>(_0x3b23fe,_0x39e020)=>_0x1e98c9(_0x3b23fe,_0x39e020,_0x3760bc);const Ht=_0x1cd32e(0x4fb),ln=_0x1cd32e(0x296);exports[_0x1cd32e(0x175)]=class extends a[_0x1cd32e(0x32f)]{constructor(_0x215810,_0x189564){const _0x339dd0=_0x1cd32e;super(),this[_0x339dd0(0x1b6)]=_0x215810,this[_0x339dd0(0x29d)]=_0x189564,this[_0x339dd0(0x255)]();}['_initMergeInterceptor'](){const _0x461db4=_0x1cd32e,_0x903801=this;this[_0x461db4(0x3d2)](this[_0x461db4(0x1b6)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':w[_0x461db4(0x15b)]({'isMatch'(_0x408308){const _0x15dcb8=_0x461db4;var _0x2f00a2;if(_0x408308[_0x15dcb8(0x434)]===_0x15dcb8(0x4f2)&&((_0x2f00a2=_0x408308[_0x15dcb8(0x230)])!=null&&_0x2f00a2['body'])){const {objectID:_0x3ece58,objectType:_0xe2a16b}=_0x408308['requestParams']['body']||{};if(!_0x3ece58||_0xe2a16b===void 0x0)return!0x1;const _0x14e9ac=_0x903801[_0x15dcb8(0x1f5)]()+'/'+_0xe2a16b+_0x15dcb8(0x4a4)+_0x3ece58+_0x15dcb8(0x1d3);if(_0x408308[_0x15dcb8(0x432)]===_0x14e9ac)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x340d5f){const _0x3cb51a=_0x461db4;var _0x4b777a;return(_0x4b777a=_0x340d5f[_0x3cb51a(0x230)])==null?void 0x0:_0x4b777a[_0x3cb51a(0x14a)];},'mergeParamsToRequest'(_0x559b0c,_0xd86670){const _0x3c681e=_0x461db4,_0x543657=_0x903801[_0x3c681e(0x1f5)]()+'/-/object/-/batch_allowed',_0x423325=_0x559b0c['reduce']((_0x5073ee,_0x16c3b4)=>{const _0x10fbdb=_0x3c681e,{unitID:_0x150ac3,objectID:_0x34b0da,objectType:_0x53f7a1,actions:_0x3efe67}=_0x16c3b4;return _0x5073ee[_0x150ac3]||(_0x5073ee[_0x150ac3]={}),_0x5073ee[_0x150ac3][_0x34b0da]||(_0x5073ee[_0x150ac3][_0x34b0da]={'objectID':_0x34b0da,'objectType':_0x53f7a1,'actions':[]}),_0x5073ee[_0x150ac3][_0x34b0da][_0x10fbdb(0x299)][_0x10fbdb(0x435)](..._0x3efe67),_0x5073ee;},{}),_0x25fa8d=[];for(const _0x3d88f7 in _0x423325)for(const _0x55a508 in _0x423325[_0x3d88f7]){const {actions:_0x401b0a,objectType:_0x380f95}=_0x423325[_0x3d88f7][_0x55a508],_0x42eef3=[...new Set(_0x401b0a)];_0x25fa8d['push']({'unitID':_0x3d88f7,'objectID':_0x55a508,'objectType':_0x380f95,'actions':_0x42eef3});}return new w[(_0x3c681e(0x448))](_0x3c681e(0x4f2),_0x543657,{'headers':_0xd86670['headers'],'withCredentials':_0xd86670['withCredentials'],'responseType':_0xd86670[_0x3c681e(0x2c9)],'body':{'requests':_0x25fa8d}});}},{'distributeResult'(_0x52e530,_0x198475){const _0xbe1d7c=_0x461db4,{objectActions:_0x55b4de}=_0x52e530;return _0x198475[_0xbe1d7c(0x479)](_0x44a544=>{const _0x2137eb=_0xbe1d7c,{unitID:_0x15e9a7,objectID:_0xae1867,actions:_0x3c6070}=_0x44a544,_0x5de974=_0x55b4de['find'](_0x402f06=>_0x402f06[_0x2137eb(0x3f7)]===_0x15e9a7&&_0x402f06[_0x2137eb(0x170)]===_0xae1867),_0x1619b7=_0x3c6070[_0x2137eb(0x479)](_0x43e68b=>_0x5de974==null?void 0x0:_0x5de974[_0x2137eb(0x299)][_0x2137eb(0x238)](_0x9f4ff1=>_0x9f4ff1[_0x2137eb(0x3fa)]===_0x43e68b))[_0x2137eb(0x181)](_0x4c0c0c=>!!_0x4c0c0c);return{'config':_0x44a544,'result':{'actions':_0x1619b7,'error':_0x52e530['error']}};});}})}));}[_0x1cd32e(0x1f5)](){const _0x151984=_0x1cd32e;var _0x1f5a74,_0x636f6f;const _0x325e67=this[_0x151984(0x29d)][_0x151984(0x3da)](Ht),_0x3d4d0d=this[_0x151984(0x29d)][_0x151984(0x3da)](L);return(_0x636f6f=(_0x1f5a74=_0x3d4d0d==null?void 0x0:_0x3d4d0d[_0x151984(0x517)])!=null?_0x1f5a74:_0x325e67)!=null?_0x636f6f:ln;}async[_0x1cd32e(0x41e)](_0x1e60d2){const _0x5f0b71=_0x1cd32e,_0xb9cc26=this[_0x5f0b71(0x1f5)]()+'/'+_0x1e60d2[_0x5f0b71(0x1de)]+'/object';return(await this['_HTTPService'][_0x5f0b71(0x2e0)](_0xb9cc26,{'body':_0x1e60d2}))[_0x5f0b71(0x14a)][_0x5f0b71(0x170)]||'';}async['list'](_0x109fbb){const _0x153eeb=_0x1cd32e,_0x30d28b=this[_0x153eeb(0x1f5)]()+_0x153eeb(0x527);return(await this[_0x153eeb(0x1b6)][_0x153eeb(0x2e0)](_0x30d28b,{'body':_0x109fbb}))['body'][_0x153eeb(0x30d)];}async[_0x1cd32e(0x371)](_0x4678d8){const _0x5d14eb=_0x1cd32e,_0x271368=this[_0x5d14eb(0x1f5)]()+'/'+_0x4678d8[_0x5d14eb(0x1de)]+'/object/'+_0x4678d8[_0x5d14eb(0x170)];await this[_0x5d14eb(0x1b6)]['put'](_0x271368,{'body':_0x4678d8});}async[_0x1cd32e(0x16c)](_0x2fb8c6){const _0x17ea25=_0x1cd32e,_0x35ab92=this[_0x17ea25(0x1f5)]()+'/'+_0x2fb8c6[_0x17ea25(0x1de)]+_0x17ea25(0x4a4)+_0x2fb8c6[_0x17ea25(0x170)]+_0x17ea25(0x1d3);return(await this[_0x17ea25(0x1b6)][_0x17ea25(0x2e0)](_0x35ab92,{'body':_0x2fb8c6}))['body']['actions'];}async['batchAllowed'](_0x4825b3){const _0x90eef3=_0x1cd32e,_0xc92b86=this[_0x90eef3(0x1f5)]()+'/-/object/-/batch_allowed';return(await this[_0x90eef3(0x1b6)][_0x90eef3(0x2e0)](_0xc92b86,{'body':{'requests':_0x4825b3}}))[_0x90eef3(0x14a)][_0x90eef3(0x3dd)];}async[_0x1cd32e(0x10d)](_0x377b5e){const _0x36223d=_0x1cd32e,_0x8f9100=this[_0x36223d(0x1f5)]()+'/'+_0x377b5e[_0x36223d(0x1de)]+_0x36223d(0x348),_0x46b145=await this[_0x36223d(0x1b6)]['post'](_0x8f9100,{'body':_0x377b5e});return{'roles':_0x46b145[_0x36223d(0x14a)]['roles'],'actions':_0x46b145[_0x36223d(0x14a)]['actions']};}async[_0x1cd32e(0x4ac)](_0x353119){const _0x89ee37=_0x1cd32e,_0x5a4c9f=this[_0x89ee37(0x1f5)]()+_0x89ee37(0x12f);await this[_0x89ee37(0x1b6)]['delete'](_0x5a4c9f,{'params':{'collaboratorID':_0x353119['collaboratorID'],'objectID':_0x353119[_0x89ee37(0x170)],'unitID':_0x353119[_0x89ee37(0x3f7)]}});}async[_0x1cd32e(0x373)](_0x2b1dc9){const _0x587c02=_0x1cd32e,_0x4c3303=this[_0x587c02(0x1f5)]()+_0x587c02(0x12f);await this['_HTTPService'][_0x587c02(0x207)](_0x4c3303,{'body':_0x2b1dc9});}async['createCollaborator'](_0x3a472b){const _0x111854=_0x1cd32e,_0x58e1cc=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x111854(0x1b6)][_0x111854(0x2e0)](_0x58e1cc,{'body':_0x3a472b});}async['listCollaborators'](_0x530513){const _0x4871b9=_0x1cd32e,_0x51a4f4=this['_getAPIPrefixPath']()+_0x4871b9(0x12f);return(await this[_0x4871b9(0x1b6)]['get'](_0x51a4f4,{'params':{'objectID':_0x530513[_0x4871b9(0x170)],'unitID':_0x530513['unitID']}}))[_0x4871b9(0x14a)][_0x4871b9(0x120)];}async[_0x1cd32e(0x4a2)](_0x13df5d){const _0x148a36=_0x1cd32e,_0x35d6ab=this['_getAPIPrefixPath']()+_0x148a36(0x12f);await this['_HTTPService']['put'](_0x35d6ab,{'body':_0x13df5d});}},exports[_0x1cd32e(0x175)]=cn([ut(0x0,a[_0x1cd32e(0x151)](w[_0x1cd32e(0x32b)])),ut(0x1,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x4d2)]))],exports['AuthzIoHttpService']);var hn=Object[_0x1cd32e(0x528)],_n=Object[_0x1cd32e(0x41c)],un=(_0xf4c4da,_0x521eb5,_0x5a0e0f,_0x50cce1)=>{const _0x5063f1=_0x1cd32e;for(var _0x558829=_0x50cce1>0x1?void 0x0:_0x50cce1?_n(_0x521eb5,_0x5a0e0f):_0x521eb5,_0x4b3a75=_0xf4c4da[_0x5063f1(0x23c)]-0x1,_0x486dd0;_0x4b3a75>=0x0;_0x4b3a75--)(_0x486dd0=_0xf4c4da[_0x4b3a75])&&(_0x558829=(_0x50cce1?_0x486dd0(_0x521eb5,_0x5a0e0f,_0x558829):_0x486dd0(_0x558829))||_0x558829);return _0x50cce1&&_0x558829&&hn(_0x521eb5,_0x5a0e0f,_0x558829),_0x558829;},dn=(_0x256ecb,_0x519a90)=>(_0x2512a9,_0x51c4c6)=>_0x519a90(_0x2512a9,_0x51c4c6,_0x256ecb);let be=class{constructor(_0x5e585c){const _0x15e416=_0x1cd32e;this[_0x15e416(0x382)]=_0x5e585c,this['_initRequestHeader']();}[_0x1cd32e(0x141)](){const _0x59f72d=_0x1cd32e;this[_0x59f72d(0x382)][_0x59f72d(0x18b)]({'interceptor':(_0x2aafca,_0x5d8400)=>{const _0x152cb6=_0x59f72d,_0x3886ed=_0x2aafca[_0x152cb6(0x23d)],_0x294e3c=zt[_0x152cb6(0x178)]();return _0x294e3c&&_0x3886ed[_0x152cb6(0x10c)]('x-univer-host',_0x294e3c),_0x5d8400(_0x2aafca);}});}};be=un([dn(0x0,a[_0x1cd32e(0x151)](w[_0x1cd32e(0x32b)]))],be);var Sn=Object['defineProperty'],vn=Object[_0x1cd32e(0x41c)],mn=(_0x12f5a7,_0x42b671,_0x41bc2c,_0x5cffc0)=>{const _0x291e4e=_0x1cd32e;for(var _0xb7cff3=_0x5cffc0>0x1?void 0x0:_0x5cffc0?vn(_0x42b671,_0x41bc2c):_0x42b671,_0x53b4db=_0x12f5a7[_0x291e4e(0x23c)]-0x1,_0x43cfb4;_0x53b4db>=0x0;_0x53b4db--)(_0x43cfb4=_0x12f5a7[_0x53b4db])&&(_0xb7cff3=(_0x5cffc0?_0x43cfb4(_0x42b671,_0x41bc2c,_0xb7cff3):_0x43cfb4(_0xb7cff3))||_0xb7cff3);return _0x5cffc0&&_0xb7cff3&&Sn(_0x42b671,_0x41bc2c,_0xb7cff3),_0xb7cff3;},xe=(_0x339f76,_0x26977c)=>(_0x27e82a,_0x426877)=>_0x26977c(_0x27e82a,_0x426877,_0x339f76);const gn=[_0x1cd32e(0x383),_0x1cd32e(0x250),_0x1cd32e(0x316),'image/gif',_0x1cd32e(0x411)],fn=0x5*0x400*0x400,In=_0x1cd32e(0x21f),pn=_0x1cd32e(0x270),Cn=_0x1cd32e(0x522),En='/universer-api/file/{fileID}/sign-url';exports[_0x1cd32e(0x2c7)]=class{constructor(_0x9158c6,_0x30676d,_0x1d906a){const _0x164c35=_0x1cd32e;u(this,_0x164c35(0x200),0x0),u(this,_0x164c35(0x502),new v['Subject']()),u(this,'change$',this[_0x164c35(0x502)]),u(this,_0x164c35(0x51b),new Map()),(this[_0x164c35(0x382)]=_0x9158c6,this['_configService']=_0x30676d,this[_0x164c35(0x4bd)]=_0x1d906a);}[_0x1cd32e(0x44c)](_0x2748ae){const _0x397be1=_0x1cd32e;this[_0x397be1(0x200)]=_0x2748ae,this['_change$'][_0x397be1(0x203)](_0x2748ae);}[_0x1cd32e(0x293)](_0x3ed85f,_0x384cd1){const _0x105afb=_0x1cd32e;if(_0x384cd1===j[_0x105afb(0x31b)][_0x105afb(0x263)]){const _0x430dce=new Image();return _0x430dce[_0x105afb(0x1df)]=_0x3ed85f,_0x430dce;}return this[_0x105afb(0x51b)][_0x105afb(0x2bd)](_0x3ed85f);}['addImageSourceCache'](_0x1b9864,_0x101907,_0xb162fd){const _0xef9a6f=_0x1cd32e;_0x101907===j[_0xef9a6f(0x31b)][_0xef9a6f(0x263)]||_0xb162fd==null||this['_imageSourceCache'][_0xef9a6f(0x10c)](_0x1b9864,_0xb162fd);}async[_0x1cd32e(0x349)](_0x471dcb){const _0x15f7c3=_0x1cd32e;try{const _0x1213e9=this[_0x15f7c3(0x34f)](this[_0x15f7c3(0x39a)](),''+_0x471dcb),_0x2636c1=(await this[_0x15f7c3(0x382)]['get'](_0x1213e9))[_0x15f7c3(0x14a)];if(_0x2636c1[_0x15f7c3(0x275)]&&_0x2636c1[_0x15f7c3(0x275)][_0x15f7c3(0x1ac)]===bt['OK']){const _0x5ca230=new URL(_0x2636c1[_0x15f7c3(0x432)],this['_getDownloadEndpointURL']())[_0x15f7c3(0x1f9)]();return Promise[_0x15f7c3(0x2a6)](_0x5ca230);}return Promise[_0x15f7c3(0x494)](_0x2636c1[_0x15f7c3(0x275)]);}catch(_0x5b0071){return Promise[_0x15f7c3(0x494)](_0x5b0071);}}async['saveImage'](_0x15b0f6){const _0x35e4af=_0x1cd32e;let _0x10e35d='';if(!gn[_0x35e4af(0x351)](_0x15b0f6[_0x35e4af(0x3eb)]))return this[_0x35e4af(0x3bf)](),Promise[_0x35e4af(0x494)](new Error(j[_0x35e4af(0x372)]['ERROR_IMAGE_TYPE']));if(_0x15b0f6[_0x35e4af(0x4be)]>fn)return this[_0x35e4af(0x3bf)](),Promise[_0x35e4af(0x494)](new Error(j[_0x35e4af(0x372)][_0x35e4af(0x3a2)]));try{const _0x30bd01=new FormData();_0x30bd01[_0x35e4af(0x1c9)](_0x35e4af(0x1ae),_0x15b0f6);const _0x107e9d=this[_0x35e4af(0x4bd)][_0x35e4af(0x150)](),_0x42ed44=_0x107e9d==null?void 0x0:_0x107e9d[_0x35e4af(0x1fe)]();if(!_0x42ed44)throw new Error(_0x35e4af(0x2dc));const _0x48c4fb=this[_0x35e4af(0x274)]()+_0x35e4af(0x301)+_0x15b0f6[_0x35e4af(0x4be)][_0x35e4af(0x1f9)]()+_0x35e4af(0x531)+Tt[_0x35e4af(0x13a)]+'&assign='+encodeURIComponent(_0x42ed44),_0x54f6bd=await(await fetch(_0x48c4fb,{'method':_0x35e4af(0x4f2),'body':_0x30bd01}))[_0x35e4af(0x38a)]();if(typeof _0x54f6bd[_0x35e4af(0x1f8)]!=_0x35e4af(0x1eb))return this['_decreaseWaiting'](),Promise[_0x35e4af(0x494)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE']));_0x10e35d=_0x54f6bd[_0x35e4af(0x1f8)];}catch{return this[_0x35e4af(0x3bf)](),Promise[_0x35e4af(0x494)](new Error(j['ImageUploadStatusType'][_0x35e4af(0x3ab)]));}return new Promise((_0x3827b3,_0x1acad3)=>{const _0x3fc041=_0x35e4af,_0x64133f=new FileReader();_0x64133f[_0x3fc041(0x492)](_0x15b0f6),_0x64133f['onload']=_0x1c8d2f=>{const _0x22be44=_0x3fc041;var _0x2c1d58;const _0x54a3ea=(_0x2c1d58=_0x1c8d2f[_0x22be44(0x1bc)])==null?void 0x0:_0x2c1d58[_0x22be44(0x19a)];if(_0x54a3ea==null){this[_0x22be44(0x3bf)](),_0x1acad3(new Error(j[_0x22be44(0x372)][_0x22be44(0x3ab)]));return;}const _0x5dcf13=a['Tools'][_0x22be44(0x3ce)](0x6);_0x3827b3({'imageId':_0x5dcf13,'imageSourceType':j[_0x22be44(0x31b)][_0x22be44(0x3ba)],'source':_0x10e35d,'base64Cache':_0x54a3ea,'status':j[_0x22be44(0x372)][_0x22be44(0x38d)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0xdf606a=_0x1cd32e;var _0x329052,_0x516424;const _0x662641=this[_0xdf606a(0x29d)]['getConfig'](In),_0x43c62a=this[_0xdf606a(0x29d)][_0xdf606a(0x3da)](L);return(_0x516424=(_0x329052=_0x43c62a==null?void 0x0:_0x43c62a[_0xdf606a(0x186)])!=null?_0x329052:_0x662641)!=null?_0x516424:pn;}[_0x1cd32e(0x39a)](){const _0xed66aa=_0x1cd32e;var _0x454d58,_0xef4868;const _0x2b9799=this[_0xed66aa(0x29d)]['getConfig'](Cn),_0x558ac7=this['_configService']['getConfig'](L);return(_0xef4868=(_0x454d58=_0x558ac7==null?void 0x0:_0x558ac7[_0xed66aa(0x158)])!=null?_0x454d58:_0x2b9799)!=null?_0xef4868:En;}[_0x1cd32e(0x258)](){const _0xc94ced=_0x1cd32e;var _0x48ccab;const _0x122d86=this[_0xc94ced(0x29d)][_0xc94ced(0x3da)](L);return(_0x48ccab=_0x122d86==null?void 0x0:_0x122d86[_0xc94ced(0x333)])!=null?_0x48ccab:location[_0xc94ced(0x356)];}['_replaceFileID'](_0x50fa3b,_0x22c76c){const _0x23a8ef=_0x1cd32e;return _0x50fa3b[_0x23a8ef(0x475)](_0x23a8ef(0x38e),_0x22c76c);}[_0x1cd32e(0x3bf)](){const _0x2a236b=_0x1cd32e;this[_0x2a236b(0x200)]-=0x1,this[_0x2a236b(0x502)][_0x2a236b(0x203)](this[_0x2a236b(0x200)]);}},exports[_0x1cd32e(0x2c7)]=mn([xe(0x0,a[_0x1cd32e(0x151)](w['HTTPService'])),xe(0x1,a[_0x1cd32e(0x4d2)]),xe(0x2,a['Inject'](a['IUniverInstanceService']))],exports['ImageIoService']);var bn=Object[_0x1cd32e(0x528)],Tn=Object[_0x1cd32e(0x41c)],Rn=(_0x3fea1c,_0x21214e,_0x21525c,_0x4361ff)=>{const _0x1263bc=_0x1cd32e;for(var _0x2f3337=_0x4361ff>0x1?void 0x0:_0x4361ff?Tn(_0x21214e,_0x21525c):_0x21214e,_0x1aa88b=_0x3fea1c[_0x1263bc(0x23c)]-0x1,_0x49d4e6;_0x1aa88b>=0x0;_0x1aa88b--)(_0x49d4e6=_0x3fea1c[_0x1aa88b])&&(_0x2f3337=(_0x4361ff?_0x49d4e6(_0x21214e,_0x21525c,_0x2f3337):_0x49d4e6(_0x2f3337))||_0x2f3337);return _0x4361ff&&_0x2f3337&&bn(_0x21214e,_0x21525c,_0x2f3337),_0x2f3337;},_e=(_0x453ff6,_0x14eead)=>(_0x12de52,_0x418a79)=>_0x14eead(_0x12de52,_0x418a79,_0x453ff6);let Te=class extends a[_0x1cd32e(0x29e)]{constructor(_0x16372f,_0x4388af,_0x3c4400,_0x3b9863,_0x38372c){const _0x5415f4=_0x1cd32e;super(),this[_0x5415f4(0x33d)]=_0x16372f,this['_univerInstanceService']=_0x4388af,this[_0x5415f4(0x202)]=_0x3c4400,this[_0x5415f4(0x281)]=_0x3b9863,this[_0x5415f4(0x3fd)]=_0x38372c,this[_0x5415f4(0x4ed)](),this[_0x5415f4(0x1d8)]();}[_0x1cd32e(0x1d8)](){const _0x120b84=_0x1cd32e,_0x1374b3=async _0x1c2331=>{const _0x67bf79=_0xcf6e;(await this[_0x67bf79(0x281)][_0x67bf79(0x196)](_0x1c2331))[_0x67bf79(0x495)][_0x67bf79(0x430)](E[_0x67bf79(0x181)](_0x5f242d=>_0x5f242d[_0x67bf79(0x137)]===_['CollaborationEvent'][_0x67bf79(0x212)]),E[_0x67bf79(0x165)](this[_0x67bf79(0x4eb)]))[_0x67bf79(0x22b)](_0x3af194=>{const _0x1d58d9=_0x67bf79,_0x131aa4=_0x3af194,{reason:_0x5eaa16}=_0x131aa4[_0x1d58d9(0x370)];this[_0x1d58d9(0x33d)]['get'](A[_0x1d58d9(0x53e)])[_0x1d58d9(0x3df)]({'type':q[_0x1d58d9(0x28f)][_0x1d58d9(0x376)],'content':this[_0x1d58d9(0x3fd)]['t'](_0x1d58d9(0x3bd))+'('+_0x5eaa16+')'}),this[_0x1d58d9(0x202)][_0x1d58d9(0x399)](new C['WorkbookEditablePermission'](_0x1c2331)['id'],!0x1),this['_collaborationSessionService'][_0x1d58d9(0x163)](_0x1c2331);});};v[_0x120b84(0x4da)](this[_0x120b84(0x4bd)][_0x120b84(0x2a4)](a[_0x120b84(0x309)][_0x120b84(0x4aa)]),this[_0x120b84(0x4bd)][_0x120b84(0x2a4)](a[_0x120b84(0x309)][_0x120b84(0x3dc)]))[_0x120b84(0x430)](E[_0x120b84(0x479)](_0x134fe0=>_0x134fe0[_0x120b84(0x1fe)]()),E[_0x120b84(0x181)](_0x27133d=>!a[_0x120b84(0x128)](_0x27133d)),E[_0x120b84(0x165)](this[_0x120b84(0x4eb)]))[_0x120b84(0x22b)](_0x298a39=>{_0x1374b3(_0x298a39);});}[_0x1cd32e(0x4ed)](){const _0x25a72e=_0x1cd32e,_0x3a7742=async _0x1ef633=>{const _0x1ac871=_0xcf6e;(await this[_0x1ac871(0x281)]['requireSession'](_0x1ef633))[_0x1ac871(0x495)][_0x1ac871(0x430)](E['filter'](_0xc963de=>_0xc963de[_0x1ac871(0x137)]===_['CollaborationEvent'][_0x1ac871(0x438)]),E[_0x1ac871(0x165)](this[_0x1ac871(0x4eb)]))[_0x1ac871(0x22b)](_0x129199=>{const _0x27911d=_0x1ac871,_0x114365=_0x129199,{objectId:_0x5d9174}=_0x114365[_0x27911d(0x370)],_0x3751d9=this[_0x27911d(0x33d)][_0x27911d(0x2bd)](te[_0x27911d(0x48e)]);_0x5d9174===_0x1ef633?_0x3751d9['initWorkbookPermissionChange'](_0x1ef633):_0x3751d9[_0x27911d(0x1ec)](_0x1ef633,_0x5d9174);});};v['merge'](this[_0x25a72e(0x4bd)][_0x25a72e(0x2a4)](a['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x25a72e(0x309)]['UNIVER_DOC']))['pipe'](E[_0x25a72e(0x479)](_0x384477=>_0x384477[_0x25a72e(0x1fe)]()),E[_0x25a72e(0x181)](_0x5a4cd4=>!a[_0x25a72e(0x128)](_0x5a4cd4)),E[_0x25a72e(0x165)](this[_0x25a72e(0x4eb)]))['subscribe'](_0x4385f7=>{_0x3a7742(_0x4385f7);});}};Te=Rn([_e(0x0,a['Inject'](a[_0x1cd32e(0x2e8)])),_e(0x1,a['IUniverInstanceService']),_e(0x2,a[_0x1cd32e(0x19c)]),_e(0x3,a[_0x1cd32e(0x151)](exports[_0x1cd32e(0x169)])),_e(0x4,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x223)]))],Te);var On=Object[_0x1cd32e(0x528)],Dn=Object[_0x1cd32e(0x41c)],yn=(_0x5d8966,_0x471bd6,_0x337e17,_0x37b53f)=>{const _0x268b88=_0x1cd32e;for(var _0x2ec1e6=_0x37b53f>0x1?void 0x0:_0x37b53f?Dn(_0x471bd6,_0x337e17):_0x471bd6,_0x28525d=_0x5d8966[_0x268b88(0x23c)]-0x1,_0x3ea46f;_0x28525d>=0x0;_0x28525d--)(_0x3ea46f=_0x5d8966[_0x28525d])&&(_0x2ec1e6=(_0x37b53f?_0x3ea46f(_0x471bd6,_0x337e17,_0x2ec1e6):_0x3ea46f(_0x2ec1e6))||_0x2ec1e6);return _0x37b53f&&_0x2ec1e6&&On(_0x471bd6,_0x337e17,_0x2ec1e6),_0x2ec1e6;},dt=(_0x52c193,_0xc849a9)=>(_0x15398c,_0x579aaa)=>_0xc849a9(_0x15398c,_0x579aaa,_0x52c193);exports[_0x1cd32e(0x4fe)]=class{constructor(_0x40debe,_0x3406a3){const _0x259787=_0x1cd32e;this[_0x259787(0x29d)]=_0x40debe,this[_0x259787(0x382)]=_0x3406a3;}async[_0x1cd32e(0x2d3)](_0x135dbb,_0x4347a5){const _0x5472ef=_0x1cd32e;var _0x161a67;const {unitID:_0x50336e,type:_0x476c01,revision:_0x47e839=0x0}=_0x4347a5,_0x3d1483=this[_0x5472ef(0x37b)]()+'/'+_0x476c01+_0x5472ef(0x4ec)+_0x50336e+_0x5472ef(0x50b)+_0x47e839,_0x4ec347=(await this[_0x5472ef(0x382)][_0x5472ef(0x2bd)](_0x3d1483))[_0x5472ef(0x14a)],_0x5a47d1=(_0x161a67=_0x4ec347['snapshot'])==null?void 0x0:_0x161a67['workbook'];if(_0x5a47d1){const _0x3a983b=_0x5a47d1==null?void 0x0:_0x5a47d1[_0x5472ef(0x26e)],_0x48d944=_[_0x5472ef(0x30b)]['encode'](_[_0x5472ef(0x37a)](_0x3a983b));_0x5a47d1['originalMeta']=_0x48d944,Object[_0x5472ef(0x486)](_0x5a47d1['sheets'])['forEach'](([,_0x4b93da])=>{const _0x3ade9e=_0x5472ef,_0x12bfbb=_0x4b93da[_0x3ade9e(0x26e)],_0x9d3645=_['textEncoder'][_0x3ade9e(0x18a)](_[_0x3ade9e(0x37a)](_0x12bfbb));_0x4b93da['originalMeta']=_0x9d3645;});}return _0x4ec347;}async['getSheetBlock'](_0x3a8e72,_0x316147){const _0x5410f8=_0x1cd32e,{unitID:_0x34e30e,type:_0x383029,blockID:_0x397632}=_0x316147,_0x3d0b9f=this[_0x5410f8(0x2a8)]()+'/'+_0x383029+_0x5410f8(0x4ec)+_0x34e30e+_0x5410f8(0x516)+_0x397632;return(await this[_0x5410f8(0x382)][_0x5410f8(0x2bd)](_0x3d0b9f))[_0x5410f8(0x14a)];}async[_0x1cd32e(0x20d)](_0x30de59,_0x4071e2){const _0x3f0fbd=_0x1cd32e,{unitID:_0x3e0180,type:_0x1f85a1,blockID:_0x35f417}=_0x4071e2,_0x5374a8=this[_0x3f0fbd(0x2a8)]()+_0x3f0fbd(0x516)+_0x1f85a1+'/unit/'+_0x3e0180+'/block/'+_0x35f417;return(await this[_0x3f0fbd(0x382)]['get'](_0x5374a8))['body'];}async[_0x1cd32e(0x4b4)](_0x18f779,_0x3328bd){const _0x56f196=_0x1cd32e,{unitID:_0x325832,type:_0x17f443,from:_0x3eb9f0,to:_0x1966c4}=_0x3328bd,_0x4a6ec0=this[_0x56f196(0x2a8)]()+'/'+_0x17f443+_0x56f196(0x4ec)+_0x325832+_0x56f196(0x2c2)+_0x3eb9f0+'&to='+_0x1966c4;return(await this[_0x56f196(0x382)]['get'](_0x4a6ec0))['body'];}['_getSnapshotAPIPrefix'](){const _0x233fe6=_0x1cd32e;var _0x2b03d8;return(_0x2b03d8=this[_0x233fe6(0x29d)][_0x233fe6(0x3da)](vt))!=null?_0x2b03d8:this[_0x233fe6(0x2a8)]();}['_getAPIPrefix'](){const _0xdcefd1=_0x1cd32e;var _0x1555c9,_0x1f09f7;const _0xa91d04=this[_0xdcefd1(0x29d)][_0xdcefd1(0x3da)](St),_0x409a9f=this[_0xdcefd1(0x29d)]['getConfig'](L);return(_0x1f09f7=(_0x1555c9=_0x409a9f==null?void 0x0:_0x409a9f[_0xdcefd1(0x2f3)])!=null?_0x1555c9:_0xa91d04)!=null?_0x1f09f7:Jt;}async['getResourcesRequest'](_0x31ee76,_0x30694d){const _0x22a860=_0x1cd32e,_0x4ee1d1=_0x22a860(0x184)+_0x30694d[_0x22a860(0x3eb)]+_0x22a860(0x4ec)+_0x30694d[_0x22a860(0x3f7)]+_0x22a860(0x451);return(await this[_0x22a860(0x382)][_0x22a860(0x2bd)](_0x4ee1d1,{'params':{'resourceId':JSON[_0x22a860(0x2d6)](_0x30694d[_0x22a860(0x4ee)])}}))['body'];}[_0x1cd32e(0x529)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1cd32e(0x4c5)](){const _0x3b37c0=_0x1cd32e;throw new Error(_0x3b37c0(0x43f));}[_0x1cd32e(0x19d)](){const _0xb4b111=_0x1cd32e;throw new Error(_0xb4b111(0x43f));}[_0x1cd32e(0x182)](){const _0x4291d5=_0x1cd32e;throw new Error(_0x4291d5(0x43f));}[_0x1cd32e(0x132)](){const _0x557d2d=_0x1cd32e;throw new Error(_0x557d2d(0x43f));}},exports['SnapshotServerOverHTTPService']=yn([dt(0x0,a[_0x1cd32e(0x4d2)]),dt(0x1,a[_0x1cd32e(0x151)](w[_0x1cd32e(0x32b)]))],exports[_0x1cd32e(0x4fe)]);function _0x38e5(){const _0x3b6a0a=['userID','_onLocalMutation','generateRandomId','Unknown\x20user','CHANGESET_REVISION_CONFILICT','_init','disposeWithMe','visibilitychange','_awaitingChangeset','send','resize','_transformService','_removeCollabCursors','rxjs','getConfig','_state$','UNIVER_DOC','objectActions','getCellPositionByOffset','show','/universer-api/snapshot','\x0aAfter:\x20','_render','_sendHeartbeat','transformRemoteChangeset','_transformRemoteChangesetByIMECache','_tryEnsureSocket','CollaborationEvent','IAuthzIoService','_initResize','_onUserLeave','type','_getSaveTimeout','parseProtocolChangeset','UserManagerService','session.connection-failed','_send','@univerjs/docs','reqId','disableLocalCache','take','from','getInterceptPoints','unitID','sessionStatus$','_roomMembers','action','HEARTBEAT_INTERVAL_KEY','_transformSelections','_localeService','pluginName','_loadSheet','_loadDoc','getRandomValues','SUBMIT_CHANGESET','_handleJoinEvent','UnitSnapshot','_ensureSubject','LIVESHARE_REQUEST_HOST','fillStyle','currentTheme$','onTransformSelections','off-line-single','Error\x20on\x20receiving\x20event','transformUndoRedo','getActiveSheet','reduce','_executeRemoteChangeset','docStateChange$','image/bmp','_initStatusListener','getParam','_selfUnitIDs','debounce','_listenToOfflineEvent','onRemoteAck','IBeforeCloseService','_beforeCloseService','WorkbookEditablePermission','onlyLocal','getOwnPropertyDescriptor','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','create','startRow','_getAnchorBounding','addEventListener','_transitionLocked','mutations','collabSubmitChangesetUrl','DependentOn','@univerjs/drawing','assignAColorForMemberID','awaitingChangeset','propertyIsEnumerable','getUndoRedoMutationParamsCache','throttleTime','_updateLocalCache','RemoveColCommandId','SNAPSHOT_SERVER_URL_KEY','SheetCollabCursorShape','pipe','session.will-retry','url','_commentService','method','push','_saveTaskMap','useDependency','UPDATE_PERMISSION_OBJ','random','_onMessage','MoveRangeCommandId','DocIMEInputManagerService','HEARTBEAT_INTERVAL','LOCAL_CACHE_INTERVAL_KEY','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','status$','bottom','SnapshotService','telemetry\x20info\x20is\x20not\x20initialized','commentUpdate$','FromArray','session','_getCtorByUniverType','HTTPRequest','hide','getTime','YUUMI_RATE_OVER_LIMIT','setWaitCount','handleIRemoveCol','DesktopCollaborationStatusDisplayController','handleInsertRow','_applyRemoteChangeset','/resources','2685745sMUkFL','useCallback','_incrementRevisionNumber','getSheetBySheetId','pushState','_anchor','toggleOnline','every','_commandService','_getUndoStack','doc.mutation.rich-text-editing','?url=','createIdentifier','@univerjs-pro/license','updateOfflineData','collabWebSocketUrl','trim','_colorIndex','none','_saveCache','transformChangesets','setItem','getUnitType','_transformStack','Undefined','touchDependencies','has','handleDeleteRangeMoveUp','font','handleMoveRange','_updateURLWithCurrentState','getCollabEntity','transform','enableLocalCache','_onConnectionFailed','replace','registerComponent','dispose','onTransformRemoteChangesetByIMECache','map','onCommandExecuted','HELLO','compose','socketService','_initStatusComponent','_config','Rectangle','unload','whenReady','5973129ELkHca','UNIVER_COLLABORATION_CLIENT_PLUGIN','APPLY_DUPLICATED','entries','PERMISSION_DENIED','_docSkeletonManagerService','@univerjs/sheets','slice','UNRECOGNIZED','extend','IHTTPImplementation','SheetPermissionInitController','on-line-single','subscribeEvent','getUnitStatus$','readAsDataURL','getCurrentRevOfUnit','reject','event$','setCurrentUser','name','_unitOnClients','substring','registerRenderModule','getMergeData','collabStatus.conflict','_userManagerService','reconnect','_handleHover','_themeService','socket\x20open.','putCollaborators','InsertSheetMutation','/object/','icon','isEditing','assign','YUUMI_SUBSCRIPTION_NOT_FOUND','unsubscribe','UNIVER_SHEET','labelPosition','deleteCollaborator','_docSyncEditingCollabCursorService','PERMISSION_REJ','currentSkeleton$','symbol','LOCAL_CACHE_INTERVAL','forwardRef','displayName','fetchMissingChangesets','IUniverInstanceService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_compressMutationService','_assignedColors','top','_initCommandExecutedListener','collaboration_new_changeset','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_univerInstanceService','size','_startTelemetryCollaborationNewChangeset','_drawAnchor','1em','setAlpha','LIVESHARE_NEW_HOST','resend','saveSheetBlock','_type','getOwnPropertySymbols','[CollaborationUndoRedoService]','SetDocZoomRatioOperation','black','[OfflineState]:\x20received\x20acknowledgement.','_createHandler','...','revision','_cursorShapes','_resendTimeout','_labelPosition','IConfigService','_revisionService','JSONX','\x20to\x20','IRenderManagerService','debounceTime','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','evenodd','merge','816141GfmvXN','concat','registerRefRange','onMissingChangesets','save\x20fail\x20reason\x20is\x20','LIVESHARE_FETCH_OPERATIONS','closePath','_isPermissionRej','_socket$','enableSingleActiveInstanceLock','verdancy600','rgba(255,\x20255,\x20255,\x200.01)','ThresholdInterceptorFactory','localeService','transformSelections','DocCollaborationEntity','dispose$','/unit/','_initUnitPermissionChange','resourceIDs','UNKNOWN_CODE','svg','isPermissionRej','POST','508634xCDwdb','LIVESHARE_TERMINATE','ITransformService','duration','skeleton','_id','univer-online','popstate','AUTHZ_URL_KEY','getRenderById','0\x200\x2017\x2016','SnapshotServerOverHTTPService','_setupBeforeClosingHandler','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_change$','_initModules','OffLineSingle','_startDocCollabCursor','[OfflineState]:\x20received\x20rejection.','SetTextSelectionsOperation','CollaborationSession','fromCollab','COLORS','/rev/','[FetchMissState]','_updateCollabCursors','children','_docTransformSelectionsService','CollaborationStatusDisplay','CHANGESET_SHOULD_RETRY','selection','createElement','combineLatest','_resendTimer','/block/','authzUrl','BehaviorSubject','_createInitialStateImpl','updatePermissionObjEvent','_imageSourceCache','defIds','round','_toggleOffline','_updateLocalCursor','_clearHeartbeatTimer','leaveEvent','EXCHANGE_SIGN_URL_SERVER_URL_KEY','OTHER_CLIENTS_EDITING','onSendChangeset','isTransformChangesetsSuccess','close$','/-/object/list','defineProperty','saveSnapshot','min','_changesetSessionId','HttpImport','m2Prime','BuiltInUIPart','XHRHTTPImplementation','/universer-api/oidc/authpage','&source=','isValidRectRange','url(#off-line-single_clip0_910_343)','DocSelectionManagerService','Vector2','LIVESHARE_OPERATION','MUTATION','failed\x20to\x20apply\x20missed\x20changesets!','removeParam','_retryConnectingTimer','_cachedData','univer-online-status-icon','values','IMessageService','createInstance','univer-online-status','Tools','subUnitId','unitId','_substituteRedoStack','asObservable','RichTextEditingMutation','UNKNOWN_CMD','set','listRoles','session.room-full','_disabled','_state','ReplaySubject','onSyncEditingCollabCursor','getDocRanges','@univerjs/telemetry','loadOfflineData','_snapshotServerService','rxjs/operators','ACTIVE_UNIT_EVENT_CHANNEL','getValue','IUndoRedoService','_localStorageService','transformStack\x20failed!','APPLY_REVISION_CONFILICT','unit','_hover','collaborators','ThemeService','_rescheduleHeartbeat','c1Prime','call','urlChange$','url(#on-line-single_clip0_910_349)','useRef','isInternalEditorID','ENSURE_SNAPSHOT_EXECUTION','forEach','conflict.content','RevisionService','clearInterval','div','/collaborator','submit\x20changeset\x20error!','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getLatestCsReqIdBySid','INTERNAL_ERROR','override','_syncEditingCollabCursorService','_snapshotService','eventID','_handleEvent','UPDATE_CURSOR','UnitEmbedded','onRemoteChangeset','_onRefRangeChange','onRemoteRetry','[DataLoaderController]','RemoveRowCommandId','_onRemoteChangeset','_initRequestHeader','toggleOffline','_sendHeartbeatTimer','engine','open$','parse','getColor','@univerjs/ui','collabStatus.synced','body','transformMutation','/universer-api/comb','_onCursorUpdate','roomMembers','CHANGESET_ACK','getFocusedUnit','Inject','AWAITING_WITH_PENDING','Subject','awaiting','_registerDependencies','_scheduleTimestamp','NOT_FOUND','signUrlServerUrl','CHANGESET_REJ','collaMsg','MergeInterceptorFactory','with','clear','_socketService','ALREADY_EXISTS','gold400','connection\x20error','state','closeSession','restore','takeUntil','_telemetryService','UNIVER_UNKNOWN','capture','CollaborationSessionService','deserializeRangeWithSheet','permission.title','allowed','enableOfflineEditing','RECV','getMember','objectID','_transformUndoRedoStack','_getSendChangesetTimeout','12796icfUBG','ISnapshotServerService','AuthzIoHttpService','_onOffline','text','getAttachHeader','row','_showConflictNotification','_collaborationTimeoutTimer','_docSkeleton','offline','unknown','indexOf','getViewport','filter','copyFileMeta','_backgroundColor','/universer-api/snapshot/','triggerDblclick','uploadFileServerUrl','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','changesets','LICENSE_MAX_UNITS_EXCEEDED','encode','registerHTTPInterceptor','_unitID','incrementRevOfUnit','@univerjs/engine-formula','onStarting','_updateStatus','collaboration.single-unit.warning','cursorInfo$','handleInsertRangeMoveDown','_removeClearOtherTimer','_singleActiveUnitService','requireSession','getTypeOfUnitDisposed$','VIEWPORT_KEY','updateMember','result','prototype','IPermissionService','saveChangeset','joinEvent','fetchMiss','currentColor','transformByState','syncEditingCollabCursor','colorChannel1','Shape','HttpExport','getCurrent','YUUMI_URL_COL_OUT_OF_RANGE','_transformPreviousActiveRange','Optional','_sheetSkeletonManagerService','USERS_ENTER','code','Module','file','connectInjector','uni.network.url-service','_colorAssignService','_refRangeService','_clearRedo','onTransformIME','UNIVER_SLIDE','_HTTPService','_clearCollaborationTimeoutTimer','LICENSE_DISTRO_REJECTED','stopTime','getUnhiddenWorksheets','jiqing500','target','translate(.97)','_members','0\x200\x2016\x2016','_redoStacks','setParam','width','_docTransformIMECacheService','lineTo','CommandType','Tooltip','[SyncedState]:\x20received\x20acknowledgement.','_changesetReqId','append','registerBeforeClose','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_updateState','getActiveRange','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_transformIMECache','close','_lastPointer','COMPLETION_FINISHED','/allowed','UNAUTHENTICATED','split','sendChangesetTimeout','_eventUnsubscribe','_initCloseConn','CollaborationEntity','some','@univerjs/core','ColorKit','toRgbString','objectType','src','[OfflineState]:\x20received\x20changeset.','object','clipPath','catch','ranges','all','cmd','_document','retryConnectingInterval','_sheetTransformSelectionsService','params','string','refreshPermission','current','ICommandService','[CollaborationSessionService]','_name','debug','onPointerEnter$','M0\x200H16V16H0z','ws://127.0.0.1:8000/universer-api/comb/connect','_getAPIPrefixPath','_pendingMutations','[PendingState]:\x20received\x20rejection.','FileId','toString','univer-offline','isTransformMutationFailure','getVpScrollXYInfoByPosToVp','_scene','getUnitId','_draw','_waitCount','_sendingTimer','_permissionService','next','_scheduleHeartbeat','then','@univerjs/sheets-ui','patch','deepClone','COMPRESS_MUTATION_SEND','sid','_handler','liveShareNewHost','getDeserializedSheetBlock','useObservable','_onFetchMissResult','_onJoinRoomEvent','[CollaborationSession]','SHOULD_CLOSE_CONN','ICollaborationSocketService','equals','_collaborationPaused','color','blue400','removeMember','_drawRectRange','_scheduleSaving','MSG_FOR_ERROR','baseRev','/new_changes','getRangePointData','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','red300','measureText','fromEventSubject','LocaleService','\x20in\x20_schedule.','saveOfflineData','EmptyMutation','tag','_getScale','moveTo','_getLoginPath','subscribe','NodePositionConvertToRectRange','getAncestorScale','LEAVE','subunit','requestParams','_collabCursorState$','HEARTBEAT','_handleHeartbeatEvent','getItem','_createInitialState','collaboration-session-retry','range','find','COLLAB_WEB_SOCKET_URL','RegularPolygon','CONFLICT','length','headers','max','SEND_CHANGESET_TIMEOUT_KEY','memberID','getSkeleton','title','awaiting_with_pending','JOIN','APPLY_PERMISSION_DENIED','appendMutation','PENDING','InsertRowCommandId','csAckEvent','shareReplay','_transformUndoredo','rng','transformMutationsWithChangeset','conflict','not_collab','image/jpeg','pending','_logService','_getSheetObject','SNAPSHOT_URL_KEY','_initMergeInterceptor','_collabCursorController','toStringTag','_getDownloadEndpointURL','[CollaborationState]:\x20apply\x20error!','fetch_missing','_scheduleCollaborationTimeoutTimer','_remoteChangesetQueue','sheetID','handleInsertRangeMoveRight','TEXT_RANGE_LAYER_INDEX','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','distinctUntilChanged','_clearScheduledTask','BASE64','[UniverCollaborationClientPlugin]','session.collaboration-timeout','SheetsSelectionsService','on-line-single_clip0_910_349','DeleteRangeMoveUpCommandId','reverse','_session','_notificationService','INGEST','executeCommand','originalMeta','[PendingState]:\x20received\x20acknowledgement.','/universer-api/stream/file/upload','_toggleOnline','LocalCacheService','#FFF','_getUploadFileURL','error','_clearOtherTimers','_undoStacks','_messageService','use','encodeURIComponent','state$','Warning','CompressMutationService','delete','SYNCED','collab-rect-range-','_collaborationSessionService','_context','getCollabEntity$','_onConnectionOpen','_clearTimeoutTimer','collabStatus.syncing','_timeoutTimer','_handleLeaveEvent','@univerjs/docs-ui','_socket','_onCursorDelete','selections','RETRY_CONNECTING_MAX_COUNT','onRemoteRej','MessageType','_telemetryInfo','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','unit-cache-','getImageSourceCache','_getRedoStack','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/universer-api/authz','NodePositionConvertToCursor','4153928WFGaaX','actions','@univerjs/rpc','_collabSessionService','InsertRangeMoveDownCommandId','_configService','RxDisposable','_cursorInfo$','APPLY_REJECT','m1Prime','LOGIN_URL_KEY','IContextService','getTypeOfUnitAdded$','@univerjs-pro/collaboration','resolve','_updateSubUnitFromURLParams','_getAPIPrefix','visibilityState','DocSkeletonManagerService','_cursors','attrs','UNDEFINED','interceptor','LICENSE_EXPORT_SIZE_EXCEEDED','onCommentUpdate','COLLAB_SUBMIT_CHANGESET_URL_KEY','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','function','_http','findNodePositionByCharIndex','univer-pro.collaboration-client.single-active-unit-service','hasOwnProperty','isArray','_sessionStatus$','_anchorDot','_onRemoteRejected','bind','get','getMemberID','init','getRelativeToViewportCoord','InsertColCommandId','/fetchmissing?from=','RETRY_CONNECTING_MAX_COUNT_KEY','_urlService','isTransformMutationsWithChangesetSuccess','CollaborationStatus','ImageIoService','[CollaborationSessionService]:\x20socket\x20error','responseType','_onRemoteRetry','UniverCollaborationPlugin','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_IMPORT_SIZE_EXCEEDED','_docStateChangeManagerService','_undoRedoService','_socketMessageSubscription','COMPRESS_MUTATION_APPLY','_renderManagerService','getUnitOnRev','_acknowledgedAwaitingChangeset','handleIRemoveRow','stringify','_shouldReportTelemetry','status','_startSheetCollabCursor','UNIVER_PROJECT','socket\x20close','unitId\x20is\x20not\x20found','registerOnClose','collab-text-range-','getSheetId','post','NO_OTHER_CLIENTS_EDITING','\x0aCurrent:\x20','_textBubble','unshift','sessionStatus','SheetSkeletonManagerService','collabCursorState$','Injector','JOINING','_replayCachedMutations','contains','drawWith','getCurrentUser','_queuedRemoteChangesets','EffectRefRangId','onPointerMove$','1127310gqwfrq','FETCH_MISS','snapshotServerUrl','sheetId','_status$','_onRecvEvent','_color','fillText','_uiPartsService','_onRemoteACK','enableAuthServer','synced','_range','NOT_COLLAB','IUIPartsService','path','?size=','clearTimeout','arc','DisposableCollection','sequenceExecute','_waitForHeartbeatResponse','fromEvent','AWAITING','UniverInstanceType','_disableEditing','textEncoder','SNAPSHOT_INVALID_SNAPSHOT','objects','href','className','_event$','DataLoaderController','_resendWithTimeout','univerjs-icon\x20univerjs-icon-','Univer','_onConflict','image/jpg','CommentService','\x20-\x20','cursorInfo','storage','ImageSourceType','IDLE','newValue','_entities','UniverCollaborationClientPlugin','idSuffix','complete','_hideTimer','csShouldRetryEvent','onMouseMove','number','_getCurrentRevision','_clearUndo','collaboration-client.offline-data-not-saved','_memberService','searchParams','HTTPService','_instanceService','_scheduleClearOtherTimer','_candidateSocket','Disposable','SessionStatus','INotificationService','createSocket','downloadEndpointUrl','commentUpdateEvent','getRoom','location','onMissedChangesetFetched','462HkUYdR','disposeUnit','add','_tryReconnect','_submitChangeset','_injector','mapTo','getCollabCursors$','react','column','roomMembers$','fillRule','rev','ONLINE','onTransformChange$','_getMergeRange','/role','getImage','_setupSubUnitSync','TOO_MANY_REQUESTS','_refreshCollabCursors','_heartbeatTimer','purple300','_replaceFileID','NEW_CHANGESETS','includes','fetchThroughInterceptors','save','editingUnit','IURLService','origin','fill','backgroundColor','_exhaustRemoteChangesetQueue','_syncEditingCollabCursor','_localCacheService','FAIL','newCsEvent','_listenToOnlineEvent','isTransformMutationsWithChangesetFailure','_lockTransition','_onCombEvent','setShapeProps','Rect','PSEUDO_FETCH_MISSING_RESULT','routeKey','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_stopTelemetryCollaborationNewChangeset','_shapes','setInterval','_commentUpdate$','replaceState','focused$','YUUMI_UNABLE_LOAD_URL','getUnit','_removeRoom','data','update','ImageUploadStatusType','updateCollaborator','_roomMembers$','getCurrentSelections','Error','_startCollaboration','CollaborationController','SNAPSHOT_HAS_BEEN_REMOVED','b64DecodeUnicode','_getSnapshotAPIPrefix','InsertRangeMoveRightCommandId','#fff','shouldCloseConn','USERS_LEAVE','_initEventListeners','toDisposable','_httpService','image/png','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','_retryCount','_schedule','xlink:href','SetSelectionsOperation','setActiveRange','json','history','ILogService','SUCCUSS','{fileID}','_online','startsWith','textRanges','DeleteRangeMoveLeftCommandId','INVALID_ARGUMENT','_sender','randomUUID','editing\x20status\x20changed\x20to','_joinRoom','mergeOverrideWithDependencies','updatePermissionPoint','_getSignURL','_hovered','CollaborationSocketService','_createSocket','isActive','_registerRenderDependencies','setUndoRedoMutationParamsCache','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ERROR_EXCEED_SIZE','off-line-single_clip0_910_343','defs','_sessions','_collaborationController','getOffsetConfig','key','SheetCollaborationEntity','_substituteUndoStack','ERROR_IMAGE','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onlineStatus','_throwTelemetryCollaborationNewChangeset','switchMap','apply','message$','_socketReady','setTimeout','mapDocumentTypeToUniverType','_unlockTransition','FETCH_MISSING','LocalUndoRedoService','_entityInit$','loginUrlKey','UUID','_fetchMissChangesets','getWorkbookSelections','collaboration.closeRoom','_checkMissing','_decreaseWaiting','now','8RubzIg','OFFLINE','_unitStatus','toLowerCase','COMMENT_UPDATE','transformIMECache','endColumn','_ws','WebSocketService','addObject','SetWorksheetActivateCommand'];_0x38e5=function(){return _0x3b6a0a;};return _0x38e5();}var Un=Object['defineProperty'],Pn=Object[_0x1cd32e(0x41c)],wn=(_0x222fdc,_0x335ac9,_0x498a1b,_0x1373b1)=>{const _0xa2ce8b=_0x1cd32e;for(var _0x24d1ba=_0x1373b1>0x1?void 0x0:_0x1373b1?Pn(_0x335ac9,_0x498a1b):_0x335ac9,_0x459fe3=_0x222fdc[_0xa2ce8b(0x23c)]-0x1,_0x21f511;_0x459fe3>=0x0;_0x459fe3--)(_0x21f511=_0x222fdc[_0x459fe3])&&(_0x24d1ba=(_0x1373b1?_0x21f511(_0x335ac9,_0x498a1b,_0x24d1ba):_0x21f511(_0x24d1ba))||_0x24d1ba);return _0x1373b1&&_0x24d1ba&&Un(_0x335ac9,_0x498a1b,_0x24d1ba),_0x24d1ba;},ue=(_0x4bed8e,_0x27762c)=>(_0x19add4,_0x1d1c4f)=>_0x27762c(_0x19add4,_0x1d1c4f,_0x4bed8e);let Fe=class extends a[_0x1cd32e(0x3b7)]{constructor(_0x1e161a,_0x7b09f5,_0x1047d2,_0x1526ce,_0x8dc0f1){const _0x3621f2=_0x1cd32e;super(_0x1e161a,_0x7b09f5,_0x1047d2),this[_0x3621f2(0x3d7)]=_0x1526ce,this[_0x3621f2(0x252)]=_0x8dc0f1;}[_0x1cd32e(0x40c)](_0x2d95b3,_0x4bed26){const _0x6c6086=_0x1cd32e,_0x2bde30=this[_0x6c6086(0x45b)](_0x2d95b3);if(_0x2bde30)try{const _0x475040=this[_0x6c6086(0x469)](_0x2bde30,_0x4bed26);this[_0x6c6086(0x3aa)](_0x2d95b3,_0x475040);}catch(_0x36adc){this['_logService'][_0x6c6086(0x275)]('[CollaborationUndoRedoService]',_0x36adc),this[_0x6c6086(0x327)](_0x2d95b3);}const _0x371ea5=this[_0x6c6086(0x294)](_0x2d95b3);if(_0x371ea5)try{const _0x3c7284=this[_0x6c6086(0x469)](_0x371ea5,_0x4bed26);this['_substituteRedoStack'](_0x2d95b3,_0x3c7284);}catch(_0x3ceb77){this[_0x6c6086(0x252)]['error'](_0x3ceb77),this[_0x6c6086(0x1b3)](_0x2d95b3);}}[_0x1cd32e(0x327)](_0x4db998){const _0xba47a2=_0x1cd32e,_0x7e9cf3=this['_getUndoStack'](_0x4db998);_0x7e9cf3&&(_0x7e9cf3['length']=0x0,this[_0xba47a2(0x190)]());}[_0x1cd32e(0x1b3)](_0x1c641b){const _0x561d16=_0x1cd32e,_0x123df7=this[_0x561d16(0x294)](_0x1c641b);_0x123df7&&(_0x123df7[_0x561d16(0x23c)]=0x0,this[_0x561d16(0x190)]());}[_0x1cd32e(0x3aa)](_0x10706f,_0x5401e2){const _0x15cae7=_0x1cd32e;this[_0x15cae7(0x277)][_0x15cae7(0x10c)](_0x10706f,_0x5401e2),this[_0x15cae7(0x190)]();}[_0x1cd32e(0x544)](_0x16982b,_0x1b70c3){const _0x3cc1f6=_0x1cd32e;this[_0x3cc1f6(0x1c0)]['set'](_0x16982b,_0x1b70c3),this[_0x3cc1f6(0x190)]();}[_0x1cd32e(0x469)](_0x5a4ebd,_0x2dc7af){const _0x238afd=_0x1cd32e,_0x4c8a27=[];let _0x202267=_0x2dc7af,_0x5c64ee=_0x2dc7af;for(let _0x29c010=_0x5a4ebd[_0x238afd(0x23c)]-0x1;_0x29c010>=0x0;_0x29c010--){const {unitID:_0x355054,undoMutations:_0x442736,redoMutations:_0x5799b2}=_0x5a4ebd[_0x29c010],_0xf7ce62=this[_0x238afd(0x3d7)][_0x238afd(0x24d)](_0x202267,_0x442736),_0x148317=this[_0x238afd(0x3d7)]['transformMutationsWithChangeset'](_0x5c64ee,_0x5799b2);if(_[_0x238afd(0x35f)](_0xf7ce62)||_[_0x238afd(0x35f)](_0x148317)){this['_logService'][_0x238afd(0x275)](_0x238afd(0x4c8),_0x238afd(0x11c),_0xf7ce62,_0x148317);break;}_0x202267=_0xf7ce62[_0x238afd(0x123)],_0x5c64ee=_0x148317[_0x238afd(0x123)],_0x4c8a27['push']({'unitID':_0x355054,'undoMutations':_0xf7ce62[_0x238afd(0x52d)],'redoMutations':_0x148317[_0x238afd(0x52d)]});}return _0x4c8a27[_0x238afd(0x269)]();}};Fe=wn([ue(0x0,a[_0x1cd32e(0x4b5)]),ue(0x1,a[_0x1cd32e(0x1ee)]),ue(0x2,a[_0x1cd32e(0x2a3)]),ue(0x3,_[_0x1cd32e(0x4f5)]),ue(0x4,a['ILogService'])],Fe);class xt extends a[_0x1cd32e(0x29e)]{constructor(){const _0x445af9=_0x1cd32e;super(),u(this,_0x445af9(0x125)),this['urlChange$']=v[_0x445af9(0x307)](window,_0x445af9(0x4fa))['pipe'](v[_0x445af9(0x165)](this['dispose$']),v[_0x445af9(0x24a)](0x1),v[_0x445af9(0x33e)](void 0x0));}[_0x1cd32e(0x1c1)](_0x269931,_0x5f36e4,_0x398a58=!0x1){const _0x524d5a=_0x1cd32e,_0x1ddc7f=new URL(window[_0x524d5a(0x336)][_0x524d5a(0x30e)]);_0x1ddc7f['searchParams'][_0x524d5a(0x10c)](_0x269931,_0x5f36e4),_0x398a58?window[_0x524d5a(0x38b)][_0x524d5a(0x36b)]('','',_0x1ddc7f[_0x524d5a(0x1f9)]()):window[_0x524d5a(0x38b)][_0x524d5a(0x456)]('','',_0x1ddc7f[_0x524d5a(0x1f9)]());}[_0x1cd32e(0x539)](_0x1029eb,_0x4c1997=!0x1){const _0x3b6fce=_0x1cd32e,_0x283953=new URL(window[_0x3b6fce(0x336)]['href']);_0x283953[_0x3b6fce(0x32a)][_0x3b6fce(0x27e)](_0x1029eb),_0x4c1997?window[_0x3b6fce(0x38b)][_0x3b6fce(0x36b)]('','',_0x283953['toString']()):window[_0x3b6fce(0x38b)][_0x3b6fce(0x456)]('','',_0x283953[_0x3b6fce(0x1f9)]());}[_0x1cd32e(0x413)](_0x3f155f){const _0x1573e3=_0x1cd32e;var _0x164d5c;return(_0x164d5c=new URL(window['location'][_0x1573e3(0x30e)])[_0x1573e3(0x32a)][_0x1573e3(0x2bd)](_0x3f155f))!=null?_0x164d5c:void 0x0;}}var kt=Object[_0x1cd32e(0x528)],Nn=Object['getOwnPropertyDescriptor'],Mn=(_0x29ecf1,_0xe7b8c3,_0xffb68d)=>_0xe7b8c3 in _0x29ecf1?kt(_0x29ecf1,_0xe7b8c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xffb68d}):_0x29ecf1[_0xe7b8c3]=_0xffb68d,An=(_0x63aaeb,_0x24ce9a,_0x4ca872,_0x594b54)=>{const _0x228eb7=_0x1cd32e;for(var _0x117b2d=_0x594b54>0x1?void 0x0:_0x594b54?Nn(_0x24ce9a,_0x4ca872):_0x24ce9a,_0x1d83c2=_0x63aaeb[_0x228eb7(0x23c)]-0x1,_0x169fa7;_0x1d83c2>=0x0;_0x1d83c2--)(_0x169fa7=_0x63aaeb[_0x1d83c2])&&(_0x117b2d=(_0x594b54?_0x169fa7(_0x24ce9a,_0x4ca872,_0x117b2d):_0x169fa7(_0x117b2d))||_0x117b2d);return _0x594b54&&_0x117b2d&&kt(_0x24ce9a,_0x4ca872,_0x117b2d),_0x117b2d;},ge=(_0x5d00d5,_0x35a6cb)=>(_0x16ca02,_0x21804d)=>_0x35a6cb(_0x16ca02,_0x21804d,_0x5d00d5),Ln=(_0x4ec9e1,_0x2a87fb,_0x42d257)=>Mn(_0x4ec9e1,_0x2a87fb+'',_0x42d257);const jn=_0x1cd32e(0x484);exports[_0x1cd32e(0x31f)]=class extends a['Plugin']{constructor(_0x4e488e=as,_0x460c72,_0x10e4a8,_0x400a53,_0x4b101a){const _0x31c410=_0x1cd32e;super(),this['_config']=_0x4e488e,this[_0x31c410(0x252)]=_0x460c72,this[_0x31c410(0x2d2)]=_0x10e4a8,this[_0x31c410(0x33d)]=_0x400a53,this[_0x31c410(0x29d)]=_0x4b101a;const {..._0x55d406}=this[_0x31c410(0x47f)];this['_configService']['setConfig'](L,_0x55d406);}[_0x1cd32e(0x18f)](){const _0x4518f3=_0x1cd32e;this[_0x4518f3(0x155)](),a[_0x4518f3(0x46b)](this[_0x4518f3(0x33d)],[[ne],[exports[_0x4518f3(0x311)]],[Te]]);}['onReady'](){const _0x360e5b=_0x1cd32e;a[_0x360e5b(0x46b)](this[_0x360e5b(0x33d)],[[Ce]]);}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x472608=_0x1cd32e;var _0x45b4c6,_0x3bf2c8,_0x5e178f,_0x5bf32f;this[_0x472608(0x33d)][_0x472608(0x46c)](a[_0x472608(0x11a)])&&this[_0x472608(0x252)]['error'](_0x472608(0x264),_0x472608(0x131));let _0x57490d=[[a['IUndoRedoService'],{'useClass':Fe}],[exports['CollaborationSessionService']],[Je],[w['HTTPService']],[Qe,{'useClass':xt}],[X],[exports[_0x472608(0x272)]],[w[_0x472608(0x3c9)]],[Ie],[pe],[fe],[Xe],[Ee],[be],[qe],[Te],[Ke,{'useClass':(_0x3bf2c8=(_0x45b4c6=this[_0x472608(0x47f)])==null?void 0x0:_0x45b4c6[_0x472608(0x47d)])!=null?_0x3bf2c8:exports[_0x472608(0x39c)]}],[w[_0x472608(0x48d)],{'useClass':w[_0x472608(0x52f)]}],[_[_0x472608(0x174)],{'useClass':exports[_0x472608(0x4fe)]}],[a[_0x472608(0x3e8)],{'useClass':exports[_0x472608(0x175)]}],[j['IImageIoService'],{'useClass':exports[_0x472608(0x2c7)]}],[exports['CollaborationController']],[exports[_0x472608(0x311)]],[exports[_0x472608(0x44e)]],[Ce],[ne]];(_0x5e178f=this[_0x472608(0x47f)])!=null&&_0x5e178f[_0x472608(0x4e4)]&&_0x57490d[_0x472608(0x435)]([Re,{'useClass':xs}]),_0x57490d=a[_0x472608(0x398)](_0x57490d,(_0x5bf32f=this[_0x472608(0x47f)])==null?void 0x0:_0x5bf32f[_0x472608(0x134)]),_0x57490d['forEach'](_0x35cfc0=>this[_0x472608(0x33d)][_0x472608(0x33a)](_0x35cfc0)),this[_0x472608(0x503)]();}[_0x1cd32e(0x39f)](){const _0x3328ab=_0x1cd32e;this[_0x3328ab(0x3d2)](this[_0x3328ab(0x2d2)][_0x3328ab(0x49a)](a['UniverInstanceType']['UNIVER_DOC'],[Ve])),this['disposeWithMe'](this[_0x3328ab(0x2d2)][_0x3328ab(0x49a)](a[_0x3328ab(0x309)]['UNIVER_SHEET'],[We]));}[_0x1cd32e(0x503)](){const _0x195387=_0x1cd32e;var _0x207865,_0x2db7c0;this[_0x195387(0x33d)][_0x195387(0x2bd)](w[_0x195387(0x32b)])[_0x195387(0x18b)]({'priority':0x14,'interceptor':w[_0x195387(0x4e7)]({'maxParallel':0x6})}),this[_0x195387(0x33d)][_0x195387(0x2bd)](be),(_0x207865=this[_0x195387(0x47f)])!=null&&_0x207865[_0x195387(0x16d)]||this[_0x195387(0x33d)][_0x195387(0x2bd)](exports[_0x195387(0x272)])['disableLocalCache'](),(_0x2db7c0=this['_config'])!=null&&_0x2db7c0[_0x195387(0x2fb)]&&this[_0x195387(0x33d)][_0x195387(0x2bd)](Ee),this['_injector'][_0x195387(0x2bd)](exports[_0x195387(0x378)]),this[_0x195387(0x33d)][_0x195387(0x46c)](exports[_0x195387(0x44e)])&&this[_0x195387(0x33d)]['get'](exports['DesktopCollaborationStatusDisplayController']);}},Ln(exports[_0x1cd32e(0x31f)],_0x1cd32e(0x3fe),jn),exports['UniverCollaborationClientPlugin']=An([a[_0x1cd32e(0x425)](_[_0x1cd32e(0x2cb)]),ge(0x1,a['ILogService']),ge(0x2,D[_0x1cd32e(0x4d6)]),ge(0x3,a[_0x1cd32e(0x151)](a[_0x1cd32e(0x2e8)])),ge(0x4,a[_0x1cd32e(0x4d2)])],exports[_0x1cd32e(0x31f)]),exports[_0x1cd32e(0x4fb)]=Ht,exports[_0x1cd32e(0x2b1)]=Ct,exports['COLLAB_WEB_SOCKET_URL_KEY']=mt,exports[_0x1cd32e(0x2c6)]=U,exports[_0x1cd32e(0x510)]=$t,exports[_0x1cd32e(0x317)]=qe,exports[_0x1cd32e(0x3fb)]=gt,exports['HEARTBEAT_TIMEOUT_KEY']=Ge,exports[_0x1cd32e(0x213)]=Ke,exports[_0x1cd32e(0x355)]=Qe,exports[_0x1cd32e(0x43e)]=pt,exports[_0x1cd32e(0x2a2)]=Et,exports[_0x1cd32e(0x2c3)]=It,exports[_0x1cd32e(0x23f)]=Zt,exports[_0x1cd32e(0x42e)]=St,exports[_0x1cd32e(0x254)]=vt,exports[_0x1cd32e(0x330)]=H,exports[_0x1cd32e(0x42f)]=Nt,exports['WebURLService']=xt,exports['deserializeToCombResponse']=Rt,exports['serializeCombRequest']=Ot;