@univerjs-pro/collaboration-client 0.2.9 → 0.2.10

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 _0x3022d6=_0xbc10;(function(_0x137f62,_0x25dadd){const _0x5ae9e6=_0xbc10,_0x19d4bc=_0x137f62();while(!![]){try{const _0x1c8c05=parseInt(_0x5ae9e6(0x247))/0x1*(parseInt(_0x5ae9e6(0x3ed))/0x2)+-parseInt(_0x5ae9e6(0x1b5))/0x3+-parseInt(_0x5ae9e6(0x2c1))/0x4*(parseInt(_0x5ae9e6(0x430))/0x5)+-parseInt(_0x5ae9e6(0x27d))/0x6*(parseInt(_0x5ae9e6(0xcb))/0x7)+parseInt(_0x5ae9e6(0x14c))/0x8+parseInt(_0x5ae9e6(0xd9))/0x9+parseInt(_0x5ae9e6(0xa3))/0xa*(-parseInt(_0x5ae9e6(0x228))/0xb);if(_0x1c8c05===_0x25dadd)break;else _0x19d4bc['push'](_0x19d4bc['shift']());}catch(_0x355c8b){_0x19d4bc['push'](_0x19d4bc['shift']());}}}(_0x1991,0x31338));var xt=Object[_0x3022d6(0x131)],Ht=(_0x344738,_0x2f667c,_0x2c472e)=>_0x2f667c in _0x344738?xt(_0x344738,_0x2f667c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c472e}):_0x344738[_0x2f667c]=_0x2c472e,u=(_0x1560d5,_0x321f50,_0x42d4af)=>Ht(_0x1560d5,typeof _0x321f50!='symbol'?_0x321f50+'':_0x321f50,_0x42d4af);Object['defineProperty'](exports,Symbol[_0x3022d6(0x19b)],{'value':_0x3022d6(0x11c)});const o=require(_0x3022d6(0x315)),p=require('@univerjs/sheets'),Q=require(_0x3022d6(0x8b)),L=require(_0x3022d6(0xea)),_=require(_0x3022d6(0x31d)),v=require(_0x3022d6(0x2c6)),E=require(_0x3022d6(0x1cf)),P=require(_0x3022d6(0x417)),U=require('@univerjs/network'),A=require(_0x3022d6(0x453)),b=require(_0x3022d6(0x214)),Ke=require('@univerjs/engine-formula'),xe=require(_0x3022d6(0x8f)),J=require(_0x3022d6(0x294)),y=require('react'),kt=require(_0x3022d6(0x7e)),Bt=require(_0x3022d6(0x23c)),ct=_0x3022d6(0x351),Vt=_0x3022d6(0x45f),lt=_0x3022d6(0xcf),ht=_0x3022d6(0x445),Wt=0x7d0,_t=_0x3022d6(0x3df),Ft=_0x3022d6(0x1e3),ut=_0x3022d6(0x29a),Gt=0x7530,He='HEARTBEAT_TIMEOUT',dt=0x2710,Yt=_0x3022d6(0x3b7),Kt=0x4e20,Xt=_0x3022d6(0x451),qt=0x3,St=_0x3022d6(0x15f),zt=0x3e8,vt=_0x3022d6(0x1ba),Jt=_0x3022d6(0x458),mt='LOGIN_URL_KEY',Zt=_0x3022d6(0x3c7);var gt=(_0x40fb7e=>(_0x40fb7e[_0x40fb7e[_0x3022d6(0x2fc)]=0x0]='UNDEFINED',_0x40fb7e[_0x40fb7e['OK']=0x1]='OK',_0x40fb7e[_0x40fb7e[_0x3022d6(0xba)]=0x2]='INTERNAL_ERROR',_0x40fb7e[_0x40fb7e['PERMISSION_DENIED']=0x3]=_0x3022d6(0x1a9),_0x40fb7e[_0x40fb7e[_0x3022d6(0x3e8)]=0x4]=_0x3022d6(0x3e8),_0x40fb7e[_0x40fb7e[_0x3022d6(0x18c)]=0x5]=_0x3022d6(0x18c),_0x40fb7e[_0x40fb7e[_0x3022d6(0x466)]=0x6]=_0x3022d6(0x466),_0x40fb7e[_0x40fb7e['INVALID_ARGUMENT']=0x7]=_0x3022d6(0x1bf),_0x40fb7e[_0x40fb7e[_0x3022d6(0x2a0)]=0x8]=_0x3022d6(0x2a0),_0x40fb7e[_0x40fb7e[_0x3022d6(0x24b)]=0x9]=_0x3022d6(0x24b),_0x40fb7e[_0x40fb7e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3022d6(0x105),_0x40fb7e[_0x40fb7e[_0x3022d6(0x1eb)]=0x1771]=_0x3022d6(0x1eb),_0x40fb7e[_0x40fb7e[_0x3022d6(0x428)]=0x1772]=_0x3022d6(0x428),_0x40fb7e[_0x40fb7e[_0x3022d6(0x207)]=0x1b59]=_0x3022d6(0x207),_0x40fb7e[_0x40fb7e[_0x3022d6(0x3da)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x40fb7e[_0x40fb7e[_0x3022d6(0x340)]=0x1b5b]=_0x3022d6(0x340),_0x40fb7e[_0x40fb7e[_0x3022d6(0xd0)]=0x1b5c]=_0x3022d6(0xd0),_0x40fb7e[_0x40fb7e['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3022d6(0x2aa),_0x40fb7e[_0x40fb7e[_0x3022d6(0x91)]=0x2329]=_0x3022d6(0x91),_0x40fb7e[_0x40fb7e[_0x3022d6(0x85)]=0x232a]=_0x3022d6(0x85),_0x40fb7e[_0x40fb7e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3022d6(0x1b9),_0x40fb7e[_0x40fb7e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3022d6(0x1b8),_0x40fb7e[_0x40fb7e[_0x3022d6(0x169)]=0x232d]=_0x3022d6(0x169),_0x40fb7e[_0x40fb7e[_0x3022d6(0x33b)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x40fb7e[_0x40fb7e[_0x3022d6(0x212)]=0x2712]=_0x3022d6(0x212),_0x40fb7e[_0x40fb7e['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3022d6(0x2ef),_0x40fb7e[_0x40fb7e[_0x3022d6(0x1be)]=0x2714]=_0x3022d6(0x1be),_0x40fb7e[_0x40fb7e[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x40fb7e))(gt||{}),j=(_0x4d4b84=>(_0x4d4b84[_0x4d4b84[_0x3022d6(0x380)]=0x0]=_0x3022d6(0x380),_0x4d4b84[_0x4d4b84[_0x3022d6(0x237)]=0x1]=_0x3022d6(0x237),_0x4d4b84[_0x4d4b84['UNIVER_SHEET']=0x2]=_0x3022d6(0x2c0),_0x4d4b84[_0x4d4b84[_0x3022d6(0x16c)]=0x3]=_0x3022d6(0x16c),_0x4d4b84[_0x4d4b84[_0x3022d6(0x413)]=0x4]=_0x3022d6(0x413),_0x4d4b84[_0x4d4b84['UNRECOGNIZED']=-0x1]=_0x3022d6(0x322),_0x4d4b84))(j||{}),T=(_0x263be1=>(_0x263be1[_0x263be1[_0x3022d6(0x349)]=0x0]=_0x3022d6(0x349),_0x263be1[_0x263be1[_0x3022d6(0x24a)]=0x1]='HELLO',_0x263be1[_0x263be1[_0x3022d6(0x157)]=0x2]=_0x3022d6(0x157),_0x263be1[_0x263be1['LEAVE']=0x3]=_0x3022d6(0xdc),_0x263be1[_0x263be1[_0x3022d6(0x145)]=0x4]=_0x3022d6(0x145),_0x263be1[_0x263be1[_0x3022d6(0x462)]=0x5]=_0x3022d6(0x462),_0x263be1[_0x263be1[_0x3022d6(0x40c)]=0x6]='RECV',_0x263be1[_0x263be1[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x263be1))(T||{}),ke=(_0x2b0903=>(_0x2b0903[_0x2b0903[_0x3022d6(0x249)]=0x0]='UNKNOWN_CODE',_0x2b0903[_0x2b0903['OK']=0x1]='OK',_0x2b0903[_0x2b0903['FAIL']=0x2]=_0x3022d6(0x2ff),_0x2b0903[_0x2b0903[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x2b0903))(ke||{}),ft=(_0x23a8bb=>(_0x23a8bb[_0x23a8bb[_0x3022d6(0x357)]=0x0]=_0x3022d6(0x357),_0x23a8bb[_0x23a8bb['HttpImport']=0x1]=_0x3022d6(0x3fb),_0x23a8bb[_0x23a8bb[_0x3022d6(0x355)]=0x2]=_0x3022d6(0x355),_0x23a8bb[_0x23a8bb[_0x3022d6(0x449)]=0x3]=_0x3022d6(0x449),_0x23a8bb[_0x23a8bb[_0x3022d6(0x23a)]=0x4]='UnitSnapshot',_0x23a8bb[_0x23a8bb[_0x3022d6(0x322)]=-0x1]='UNRECOGNIZED',_0x23a8bb))(ft||{}),Qt=Object[_0x3022d6(0x131)],es=Object[_0x3022d6(0x2b4)],ts=(_0x4211d1,_0x380bb5,_0x1bcdc6,_0x4178f2)=>{const _0x18c44f=_0x3022d6;for(var _0x22f674=_0x4178f2>0x1?void 0x0:_0x4178f2?es(_0x380bb5,_0x1bcdc6):_0x380bb5,_0x19dad2=_0x4211d1[_0x18c44f(0x2ce)]-0x1,_0x445e22;_0x19dad2>=0x0;_0x19dad2--)(_0x445e22=_0x4211d1[_0x19dad2])&&(_0x22f674=(_0x4178f2?_0x445e22(_0x380bb5,_0x1bcdc6,_0x22f674):_0x445e22(_0x22f674))||_0x22f674);return _0x4178f2&&_0x22f674&&Qt(_0x380bb5,_0x1bcdc6,_0x22f674),_0x22f674;},Xe=(_0x2dfffe,_0x5d368e)=>(_0x1bcd98,_0x221df2)=>_0x5d368e(_0x1bcd98,_0x221df2,_0x2dfffe);let Y=class extends o[_0x3022d6(0x1c9)]{constructor(_0x1ee660,_0x16a4c7){const _0x4d57a9=_0x3022d6;super(),u(this,_0x4d57a9(0x350),new Map()),(this[_0x4d57a9(0x17c)]=_0x1ee660,this['_userManagerService']=_0x16a4c7,this[_0x4d57a9(0x14a)](o[_0x4d57a9(0x24c)](v[_0x4d57a9(0xc5)](this[_0x4d57a9(0x17c)]['getTypeOfUnitDisposed$'](o[_0x4d57a9(0x23f)][_0x4d57a9(0x2c0)])['pipe'](E[_0x4d57a9(0x317)](_0x3b1a4b=>_0x3b1a4b['getUnitId']())),this[_0x4d57a9(0x17c)][_0x4d57a9(0x3ae)](o[_0x4d57a9(0x23f)][_0x4d57a9(0x237)])['pipe'](E[_0x4d57a9(0x317)](_0x21dfe9=>_0x21dfe9[_0x4d57a9(0x29c)]())),this['_univerInstanceService'][_0x4d57a9(0x3ae)](o[_0x4d57a9(0x23f)]['UNIVER_SLIDE'])['pipe'](E[_0x4d57a9(0x317)](_0x5264ca=>_0x5264ca['getUnitId']())))['subscribe'](_0x37c363=>this[_0x4d57a9(0x97)](_0x37c363)))));}[_0x3022d6(0x20e)](_0x4a4096){const _0x1bedcf=_0x3022d6;this['_userManagerService'][_0x1bedcf(0x20e)](_0x4a4096);}[_0x3022d6(0x129)](){const _0x340c7d=_0x3022d6;return this['_userManagerService'][_0x340c7d(0x129)]();}[_0x3022d6(0x165)](_0x3d1db6,_0x58e2ec){const _0x197f19=_0x3022d6;let _0xf181b7=this[_0x197f19(0x350)]['get'](_0x3d1db6);_0xf181b7||(_0xf181b7=new ss(),this[_0x197f19(0x350)][_0x197f19(0x182)](_0x3d1db6,_0xf181b7)),_0xf181b7[_0x197f19(0x165)](_0x58e2ec);}['removeMember'](_0x58f775,_0x560396){const _0x47e57c=_0x3022d6,_0x2172e2=this['_roomMembers'][_0x47e57c(0x84)](_0x58f775);_0x2172e2&&_0x2172e2[_0x47e57c(0x25d)](_0x560396);}['getRoom'](_0x363ec9){const _0xd6f08=_0x3022d6;return this[_0xd6f08(0x350)][_0xd6f08(0x84)](_0x363ec9);}[_0x3022d6(0x18f)](_0x4c13cc,_0xaf5f52){const _0x416d16=_0x3022d6,_0x46036a=this[_0x416d16(0x350)]['get'](_0x4c13cc);if(_0x46036a)return _0x46036a[_0x416d16(0x18f)](_0xaf5f52);}['_removeRoom'](_0x201d3e){const _0x180049=_0x3022d6,_0x6d81e4=this['_roomMembers']['get'](_0x201d3e);_0x6d81e4&&(_0x6d81e4[_0x180049(0x147)](),this[_0x180049(0x350)][_0x180049(0x1af)](_0x201d3e));}[_0x3022d6(0x147)](){const _0x125083=_0x3022d6;this[_0x125083(0x350)][_0x125083(0x3d3)](_0x10a089=>_0x10a089['dispose']()),this[_0x125083(0x350)][_0x125083(0xe4)]();}};Y=ts([Xe(0x0,o[_0x3022d6(0xb8)]),Xe(0x1,o['Inject'](o[_0x3022d6(0x168)]))],Y);class ss extends o[_0x3022d6(0x1c9)]{constructor(){const _0x38be72=_0x3022d6;super(...arguments),u(this,_0x38be72(0x400),new Map());}[_0x3022d6(0x147)](){const _0x52b467=_0x3022d6;this[_0x52b467(0x400)]['clear']();}[_0x3022d6(0x165)](_0x252ca8){const _0x281af3=_0x3022d6;this['_members']['set'](_0x252ca8[_0x281af3(0x36f)],_0x252ca8);}['removeMember'](_0x4f3a18){const _0x5a191c=_0x3022d6;this[_0x5a191c(0x400)][_0x5a191c(0x1af)](_0x4f3a18);}[_0x3022d6(0x18f)](_0x26bff1){const _0xd2bc34=_0x3022d6;return this[_0xd2bc34(0x400)][_0xd2bc34(0x84)](_0x26bff1);}}function It(_0x286f72){const _0x2d149e=_0x3022d6;var _0x283380,_0x502022,_0x113967,_0x4853f6;const _0x2c21c7=_0x286f72[_0x2d149e(0x2be)],_0x40d301=JSON[_0x2d149e(0x2ab)](_0x2c21c7);switch(_0x40d301[_0x2d149e(0x27b)]){case T[_0x2d149e(0x462)]:case T[_0x2d149e(0x24a)]:{const _0xae97b9=_0x40d301['infoRsp'];return{..._0x40d301,'data':_0xae97b9,'cmd':_0x40d301['cmd']};}case T[_0x2d149e(0x157)]:{const _0x77d3d6=_0x40d301['joinRsp'];return{..._0x40d301,'data':_0x77d3d6,'cmd':_0x40d301[_0x2d149e(0x27b)]};}case T[_0x2d149e(0x40c)]:{const _0x4c3868=_0x40d301[_0x2d149e(0x1dd)];switch(_0x4c3868[_0x2d149e(0x31c)]){case _['CollaborationEvent']['PERMISSION_REJ']:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x283380=_0x4c3868[_0x2d149e(0xf7)])==null?void 0x0:_0x283380['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x420)]:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x502022=_0x4c3868[_0x2d149e(0x1a2)])==null?void 0x0:_0x502022['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['NEW_CHANGESETS']:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x113967=_0x4c3868[_0x2d149e(0x40a)])==null?void 0x0:_0x113967['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x459)]:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x4853f6=_0x4c3868[_0x2d149e(0x1e2)])==null?void 0x0:_0x4853f6['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x426)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x125)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['USERS_ENTER']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x345)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['USERS_LEAVE']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x154)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x179)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21a)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x2b3)]:case _[_0x2d149e(0x26c)]['LIVESHARE_OPERATION']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x284)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x3a9)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21a)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _['CollaborationEvent'][_0x2d149e(0x384)]:return{..._0x40d301,'data':_0x4c3868,'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x2bd)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21f)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['UPDATE_PERMISSION_OBJ']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868['updatePermissionObjEvent']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['SHOULD_CLOSE_CONN']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x236)]},'cmd':_0x40d301['cmd']};default:return _0x40d301;}}default:return _0x40d301;}}function pt(_0x2fe806){const _0xadf2ba=_0x3022d6;switch(_0x2fe806[_0xadf2ba(0x27b)]){case T[_0xadf2ba(0x462)]:case T[_0xadf2ba(0x24a)]:return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806['routeKey']});case T[_0xadf2ba(0x145)]:{let _0x9d2086;switch(_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x31c)]){case _['CollaborationEvent']['UPDATE_CURSOR']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)]['UPDATE_CURSOR'],'updateCursorEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x1b6)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)]['USERS_LEAVE'],'leaveEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0xde)],'joinEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x9d2086={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2fe806[_0xadf2ba(0x2be)]['data']};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x176)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x176)],'liveShareOperation':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _[_0xadf2ba(0x26c)]['LIVESHARE_TERMINATE']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x3a9)],'liveShareTerminate':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent'][_0xadf2ba(0xd3)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0xd3)],'liveShareRequestHost':_0x2fe806[_0xadf2ba(0x2be)]['data']};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x2b3)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x2b3)]};break;}default:_0x9d2086={'eventID':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x31c)]};}return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806[_0xadf2ba(0x372)],'collaMsg':_0x9d2086});}case T[_0xadf2ba(0x157)]:return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806['routeKey'],'joinReq':_0x2fe806[_0xadf2ba(0x2be)]});case T[_0xadf2ba(0xdc)]:return JSON['stringify']({'cmd':_0x2fe806['cmd'],'routeKey':_0x2fe806[_0xadf2ba(0x372)],'leaveReq':_0x2fe806[_0xadf2ba(0x2be)]});default:throw new Error(_0xadf2ba(0x300));}}var is=Object['defineProperty'],ns=Object['getOwnPropertyDescriptor'],rs=(_0x295300,_0x25a473,_0x36e9ea,_0x1b5657)=>{const _0x16ebe8=_0x3022d6;for(var _0xbd7ab1=_0x1b5657>0x1?void 0x0:_0x1b5657?ns(_0x25a473,_0x36e9ea):_0x25a473,_0x4a4670=_0x295300[_0x16ebe8(0x2ce)]-0x1,_0x21683f;_0x4a4670>=0x0;_0x4a4670--)(_0x21683f=_0x295300[_0x4a4670])&&(_0xbd7ab1=(_0x1b5657?_0x21683f(_0x25a473,_0x36e9ea,_0xbd7ab1):_0x21683f(_0xbd7ab1))||_0xbd7ab1);return _0x1b5657&&_0xbd7ab1&&is(_0x25a473,_0x36e9ea,_0xbd7ab1),_0xbd7ab1;},se=(_0x235ee3,_0x5794ac)=>(_0x37b5b2,_0x2b4bff)=>_0x5794ac(_0x37b5b2,_0x2b4bff,_0x235ee3);const Be=o[_0x3022d6(0x2f4)](_0x3022d6(0x28a));function os(_0x5f5b4a,_0x1cfdff,_0x1bc97b){const _0xe015b0=_0x3022d6;return _0x5f5b4a+'/'+_0x1cfdff+_0xe015b0(0x3b5)+_0x1bc97b+_0xe015b0(0x454);}exports[_0x3022d6(0x3b0)]=class{constructor(_0x53e780,_0x2b38ba,_0x2c78eb,_0x22912d,_0x55105d){const _0x958d61=_0x3022d6;this[_0x958d61(0x2ae)]=_0x53e780,this[_0x958d61(0x200)]=_0x2b38ba,this[_0x958d61(0xee)]=_0x2c78eb,this[_0x958d61(0x38b)]=_0x22912d,this[_0x958d61(0x307)]=_0x55105d;}[_0x3022d6(0x112)](_0x4ab63f){const _0x225098=_0x3022d6,_0x2c1a0b=this[_0x225098(0x200)][_0x225098(0x112)](_0x4ab63f);if(!_0x2c1a0b)throw new Error(_0x225098(0x11e));const _0x2c3c6f=new o[(_0x225098(0x1fc))](),_0x569ac8=new v[(_0x225098(0x21b))]();_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](_0x2c1a0b[_0x225098(0x2a8)][_0x225098(0x265)](_0x3e1b2f=>_0x569ac8[_0x225098(0x116)](_0x3e1b2f)))),_0x2c3c6f['add'](o[_0x225098(0x24c)](()=>_0x569ac8[_0x225098(0x19e)]()));const _0x147b5b=new v[(_0x225098(0x21b))]();_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](_0x2c1a0b['error$'][_0x225098(0x265)](_0x5d2187=>_0x147b5b[_0x225098(0x116)](_0x5d2187)))),_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](()=>_0x147b5b['complete']()));const _0x81b421=new v[(_0x225098(0x21b))]();_0x2c3c6f['add'](o[_0x225098(0x24c)](_0x2c1a0b[_0x225098(0x40b)][_0x225098(0x265)](_0x486390=>{const _0x54e024=_0x225098,_0x7511d0=It(_0x486390);_0x81b421[_0x54e024(0x116)](_0x7511d0);}))),_0x2c3c6f['add'](o[_0x225098(0x24c)](()=>_0x81b421[_0x225098(0x19e)]()));const _0x47934d=()=>{const _0x32310f=_0x225098;_0x147b5b[_0x32310f(0x116)](new Event(_0x32310f(0x366))),_0x569ac8['next'](new CloseEvent(_0x32310f(0x366))),_0xd7e53c[_0x32310f(0x22c)]();},_0xd7e53c={'memberID':'','close$':_0x569ac8[_0x225098(0x295)](),'error$':_0x147b5b[_0x225098(0x295)](),'open$':_0x2c1a0b[_0x225098(0x25b)],'message$':_0x81b421[_0x225098(0x295)](),'send':_0x44ff56=>{const _0x295cd7=_0x225098;if(_0x44ff56[_0x295cd7(0x27b)]===T[_0x295cd7(0x145)]){if(_0x44ff56[_0x295cd7(0x2be)][_0x295cd7(0x31c)]===_[_0x295cd7(0x26c)][_0x295cd7(0x37d)]){this[_0x295cd7(0x438)](_0xd7e53c,_0x44ff56[_0x295cd7(0x2be)])[_0x295cd7(0x104)](_0x3b160a=>{const _0x37f2c9=_0x295cd7;this[_0x37f2c9(0x38b)][_0x37f2c9(0x404)](_0x3b160a),_0x47934d();});return;}if(_0x44ff56['data']['eventID']===_[_0x295cd7(0x26c)][_0x295cd7(0x44f)]){const _0x21e818=_0x44ff56[_0x295cd7(0x2be)];this['_fetchMissChangesets'](_0x21e818)[_0x295cd7(0x156)](_0xb08435=>{const _0x4fe6de=_0x295cd7;_0x81b421[_0x4fe6de(0x116)]({'cmd':T[_0x4fe6de(0x40c)],'code':ke['OK'],'routeKey':_0x21e818[_0x4fe6de(0x2be)][_0x4fe6de(0x367)],'routeType':'','data':{'eventID':_[_0x4fe6de(0x26c)][_0x4fe6de(0x127)],'data':{'changesets':_0xb08435}}});})['catch'](_0x2666bd=>{const _0x120002=_0x295cd7;this[_0x120002(0x38b)][_0x120002(0x404)](_0x2666bd),_0x47934d();});return;}}_0x2c1a0b['send'](pt(_0x44ff56));},'close':()=>{const _0x482e80=_0x225098;_0x2c1a0b['close'](),_0x2c3c6f[_0x482e80(0x147)]();}};return _0xd7e53c;}async['_submitChangeset'](_0xc6c9c9,_0x52ee93){const _0x3aa633=_0x3022d6;var _0x27b936;const {unitType:_0x25939e,unitID:_0x37d525,changeset:_0x404bd9}=_0x52ee93[_0x3aa633(0x2be)],_0xf0966e={'unitID':_0x37d525,'memberID':_0xc6c9c9['memberID'],'type':_0x25939e,'changeset':_['parseChangesetToProtocol'](_0x404bd9)},_0x16a6b0=os((_0x27b936=this[_0x3aa633(0xee)][_0x3aa633(0x1bd)](vt))!=null?_0x27b936:Jt,_0x25939e,_0x37d525);try{await this[_0x3aa633(0x2ae)][_0x3aa633(0x45d)](_0x16a6b0,{'body':_0xf0966e});}catch(_0x57010d){throw this[_0x3aa633(0x38b)][_0x3aa633(0x404)]('[CollaborationSession]',_0x3aa633(0xc3)),_0x57010d;}}async[_0x3022d6(0xf6)](_0x56ee5b){const _0x3eac13=_0x3022d6,{unitID:_0x57f563,from:_0x492027,to:_0x440964,unitType:_0x288ce9}=_0x56ee5b[_0x3eac13(0x2be)];return(await this[_0x3eac13(0x307)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x57f563,'type':_0x288ce9,'from':_0x492027,'to':_0x440964}))[_0x3eac13(0x183)];}},exports[_0x3022d6(0x3b0)]=rs([se(0x0,o['Inject'](U[_0x3022d6(0x37e)])),se(0x1,o[_0x3022d6(0x291)](U[_0x3022d6(0x2e8)])),se(0x2,o[_0x3022d6(0x3be)]),se(0x3,o['ILogService']),se(0x4,o[_0x3022d6(0x143)])],exports['CollaborationSocketService']);class Ve{constructor(){const _0x3709e8=_0x3022d6;u(this,'_commentUpdate$',new v['Subject']()),u(this,_0x3709e8(0x45b),this[_0x3709e8(0x394)][_0x3709e8(0x295)]());}['onCommentUpdate'](_0x188d74){const _0x3d9c4c=_0x3022d6;this[_0x3d9c4c(0x394)][_0x3d9c4c(0x116)](_0x188d74);}}var as=Object[_0x3022d6(0x131)],cs=Object[_0x3022d6(0x2b4)],Et=(_0x150305,_0x30c649,_0x3f30fe,_0x47ffd1)=>{for(var _0x3ab926=_0x47ffd1>0x1?void 0x0:_0x47ffd1?cs(_0x30c649,_0x3f30fe):_0x30c649,_0x5a92b2=_0x150305['length']-0x1,_0x3093b9;_0x5a92b2>=0x0;_0x5a92b2--)(_0x3093b9=_0x150305[_0x5a92b2])&&(_0x3ab926=(_0x47ffd1?_0x3093b9(_0x30c649,_0x3f30fe,_0x3ab926):_0x3093b9(_0x3ab926))||_0x3ab926);return _0x47ffd1&&_0x3ab926&&as(_0x30c649,_0x3f30fe,_0x3ab926),_0x3ab926;},M=(_0x1af416,_0x7efeec)=>(_0x23bb22,_0xc105c6)=>_0x7efeec(_0x23bb22,_0xc105c6,_0x1af416),G=(_0x2e474b=>(_0x2e474b[_0x2e474b[_0x3022d6(0x1ab)]=0x0]=_0x3022d6(0x1ab),_0x2e474b[_0x2e474b[_0x3022d6(0x297)]=0x1]=_0x3022d6(0x297),_0x2e474b[_0x2e474b['OFFLINE']=0x2]=_0x3022d6(0x316),_0x2e474b[_0x2e474b[_0x3022d6(0x194)]=0x3]=_0x3022d6(0x194),_0x2e474b))(G||{});exports[_0x3022d6(0x343)]=class extends o['RxDisposable']{constructor(_0x4bbe2b,_0x55d84d,_0x26d98e,_0x2ef77d,_0x34108c,_0x1aaf81,_0x22bad2,_0x57170d,_0xe241c7){const _0x3efc7d=_0x3022d6;super(),u(this,_0x3efc7d(0x283),new v[(_0x3efc7d(0x141))](0x0)),u(this,_0x3efc7d(0x370),this[_0x3efc7d(0x283)]['asObservable']()),u(this,'_event$',new v['Subject']()),u(this,'event$',this[_0x3efc7d(0x17b)][_0x3efc7d(0x295)]()),u(this,_0x3efc7d(0x38d)),u(this,_0x3efc7d(0x3c3)),u(this,_0x3efc7d(0xb2)),(this[_0x3efc7d(0x328)]=_0x4bbe2b,this['_logService']=_0x26d98e,this[_0x3efc7d(0x2ed)]=_0x2ef77d,this['_messageService']=_0x34108c,this[_0x3efc7d(0xee)]=_0x1aaf81,this[_0x3efc7d(0x3b1)]=_0x22bad2,this[_0x3efc7d(0x16b)]=_0x57170d,this[_0x3efc7d(0x14f)]=_0xe241c7,_0x55d84d[_0x3efc7d(0x23e)](E[_0x3efc7d(0xc7)](this['dispose$']))[_0x3efc7d(0x265)](_0x424d0f=>{const _0x3d0031=_0x3efc7d;var _0x1a847c;typeof _0x424d0f>'u'||(this[_0x3d0031(0x38d)]=_0x424d0f,_0x424d0f?(this[_0x3d0031(0x320)](_0x424d0f),this[_0x3d0031(0x3c3)]=this[_0x3d0031(0x38d)][_0x3d0031(0x40b)][_0x3d0031(0x265)](_0xec03b7=>{const _0x583b5d=_0x3d0031;_0xec03b7['routeKey']===this[_0x583b5d(0x328)]&&this['_onCombEvent'](_0xec03b7);})):(this[_0x3d0031(0x283)][_0x3d0031(0x116)](0x2),(_0x1a847c=this[_0x3d0031(0x3c3)])==null||_0x1a847c[_0x3d0031(0x2b9)](),this[_0x3d0031(0x3c3)]=null));}),this[_0x3efc7d(0x14a)](this['_beforeCloseService'][_0x3efc7d(0x465)](()=>{const _0xee932b=_0x3efc7d;var _0x25b827;(_0x25b827=this[_0xee932b(0x38d)])==null||_0x25b827[_0xee932b(0x362)]({'cmd':T[_0xee932b(0xdc)],'data':{'roomID':this[_0xee932b(0x328)]}});})));}get['sessionStatus'](){const _0x27898d=_0x3022d6;return this[_0x27898d(0x283)][_0x27898d(0x386)]();}[_0x3022d6(0x3f2)](){const _0x5a1856=_0x3022d6;var _0x270fc7,_0x253f42;return(_0x253f42=(_0x270fc7=this[_0x5a1856(0x38d)])==null?void 0x0:_0x270fc7[_0x5a1856(0x36f)])!=null?_0x253f42:null;}['dispose'](){const _0x251fff=_0x3022d6;super[_0x251fff(0x147)](),this[_0x251fff(0x374)]['next'](),this['dispose$']['complete']();}[_0x3022d6(0x22c)](){const _0x3f32ee=_0x3022d6;var _0x5e6c87,_0x348b77;(_0x5e6c87=this[_0x3f32ee(0x38d)])==null||_0x5e6c87[_0x3f32ee(0x362)]({'cmd':T[_0x3f32ee(0xdc)],'data':{'roomID':this['_unitID']}}),this[_0x3f32ee(0x17b)][_0x3f32ee(0x19e)](),this[_0x3f32ee(0x283)]['complete'](),(_0x348b77=this[_0x3f32ee(0x38d)])==null||_0x348b77[_0x3f32ee(0x22c)](),this[_0x3f32ee(0x147)]();}[_0x3022d6(0x1a4)](_0x2ebd9c){const _0x4b0db9=_0x3022d6;_0x2ebd9c['cmd']===T[_0x4b0db9(0x157)]?this['_onJoinRoomEvent'](_0x2ebd9c):_0x2ebd9c[_0x4b0db9(0x27b)]===T['RECV']&&this[_0x4b0db9(0x268)](_0x2ebd9c);}[_0x3022d6(0x320)](_0x4c0486){const _0x26a4df=_0x3022d6;this['_sessionStatus$'][_0x26a4df(0x116)](0x1),_0x4c0486[_0x26a4df(0x362)]({'cmd':T[_0x26a4df(0x157)],'routeKey':this[_0x26a4df(0x328)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x3022d6(0x93)](_0xc4dc01){const _0x7a3970=_0x3022d6;var _0x313230;if(_0xc4dc01[_0x7a3970(0x2a2)]===ke[_0x7a3970(0x2ff)]){this['_messageService']['show']({'type':Q['MessageType'][_0x7a3970(0x1e0)],'content':this['_localeService']['t'](_0x7a3970(0xa2))}),this[_0x7a3970(0x283)]['next'](0x2);return;}this[_0x7a3970(0x283)][_0x7a3970(0x116)](0x3);const _0xc267a5=(_0x313230=_0xc4dc01[_0x7a3970(0x2be)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x313230[_0x7a3970(0x12d)];_0xc267a5&&_0xc267a5[_0x7a3970(0x3d3)](_0x256952=>this['_memberService'][_0x7a3970(0x165)](this[_0x7a3970(0x328)],_0x256952));}['_onRecvEvent'](_0x4533f2){const _0x5345d8=_0x3022d6;try{const _0x52855c=_0x4533f2[_0x5345d8(0x2be)];switch(_0x52855c[_0x5345d8(0x31c)]){case _[_0x5345d8(0x26c)][_0x5345d8(0xde)]:this[_0x5345d8(0x13c)](_0x52855c),this[_0x5345d8(0x17b)]['next'](_0x52855c);break;case _['CollaborationEvent'][_0x5345d8(0x1b6)]:this[_0x5345d8(0x12b)](_0x52855c),this[_0x5345d8(0x17b)]['next'](_0x52855c);break;case _[_0x5345d8(0x26c)][_0x5345d8(0x420)]:this['_clearCollaborationTimeoutTimer'](),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;case _[_0x5345d8(0x26c)][_0x5345d8(0x384)]:this['_logService']['error'](_0x5345d8(0x92)+JSON[_0x5345d8(0x258)](_0x52855c)),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;case _[_0x5345d8(0x26c)]['COMMENT_UPDATE']:this[_0x5345d8(0x14f)][_0x5345d8(0x1e9)](_0x52855c[_0x5345d8(0x2be)]),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;default:this[_0x5345d8(0x17b)]['next'](_0x52855c);}}catch(_0x704f1f){this['_logService'][_0x5345d8(0x404)](_0x704f1f,_0x4533f2);}}['_onUserJoin'](_0x38bdf0){const _0x8ca08e=_0x3022d6;this['_memberService'][_0x8ca08e(0x165)](this[_0x8ca08e(0x328)],_0x38bdf0[_0x8ca08e(0x2be)]);}[_0x3022d6(0x12b)](_0x226d4d){const _0x2de287=_0x3022d6;this[_0x2de287(0x16b)]['removeMember'](this[_0x2de287(0x328)],_0x226d4d[_0x2de287(0x2be)]['memberID']);}async[_0x3022d6(0x362)](_0x3fe405,_0x5172f6){const _0x5b24dc=_0x3022d6;if(this[_0x5b24dc(0x306)]!==0x3||!this[_0x5b24dc(0x38d)])throw new Error(_0x5b24dc(0x187));try{_0x3fe405['eventID']===_[_0x5b24dc(0x26c)][_0x5b24dc(0x310)]&&this[_0x5b24dc(0x2de)](),this[_0x5b24dc(0x38d)][_0x5b24dc(0x362)]({'cmd':T[_0x5b24dc(0x145)],'routeKey':_0x5172f6,'routeType':'','data':_0x3fe405});}catch(_0x2e9d16){this[_0x5b24dc(0x38b)][_0x5b24dc(0x404)](_0x2e9d16);}}[_0x3022d6(0x2de)](){const _0x4937cb=_0x3022d6;var _0x559ef4;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x174059=_0xbc10;this[_0x174059(0xb2)]=null,this[_0x174059(0x38e)][_0x174059(0x1d3)]({'type':Q[_0x174059(0x1e5)][_0x174059(0x19c)],'content':this[_0x174059(0x3b1)]['t'](_0x174059(0x1d4))});},(_0x559ef4=this[_0x4937cb(0xee)][_0x4937cb(0x1bd)](He))!=null?_0x559ef4:dt);}['_clearCollaborationTimeoutTimer'](){const _0x3ddca7=_0x3022d6;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x3ddca7(0xb2)]),this[_0x3ddca7(0xb2)]=null);}},exports['CollaborationSession']=Et([M(0x2,o[_0x3022d6(0x22f)]),M(0x3,L[_0x3022d6(0x3db)]),M(0x4,L[_0x3022d6(0xaf)]),M(0x5,o[_0x3022d6(0x3be)]),M(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),M(0x7,o[_0x3022d6(0x291)](Y)),M(0x8,o[_0x3022d6(0x291)](Ve))],exports['CollaborationSession']),exports[_0x3022d6(0x2ee)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x50311e,_0x496ed1,_0x277eb6,_0x3b147f,_0x296ed7,_0x38d5cb){const _0x498b88=_0x3022d6;super(),u(this,'_socket$',new v[(_0x498b88(0x141))](void 0x0)),u(this,_0x498b88(0xac),new Map()),u(this,_0x498b88(0x30d),new v['BehaviorSubject'](0x0)),u(this,_0x498b88(0x358),this[_0x498b88(0x30d)]['asObservable']()),u(this,_0x498b88(0x219),!0x1),u(this,_0x498b88(0x318)),u(this,_0x498b88(0xae)),u(this,_0x498b88(0x387)),u(this,'_retryCount',0x0),(this[_0x498b88(0x123)]=_0x50311e,this[_0x498b88(0x3b1)]=_0x496ed1,this[_0x498b88(0x38e)]=_0x277eb6,this[_0x498b88(0x38b)]=_0x3b147f,this[_0x498b88(0xee)]=_0x296ed7,this[_0x498b88(0x19f)]=_0x38d5cb);}get[_0x3022d6(0x38d)](){const _0x481f7e=_0x3022d6;return this[_0x481f7e(0x2e4)]['getValue']();}['dispose'](){const _0x3c2a9a=_0x3022d6;super[_0x3c2a9a(0x147)](),this[_0x3c2a9a(0xac)][_0x3c2a9a(0x3d3)](_0x596b0c=>_0x596b0c[_0x3c2a9a(0x147)]()),this[_0x3c2a9a(0xac)]['clear'](),this['_status$'][_0x3c2a9a(0x19e)]();}async[_0x3022d6(0x3b2)](_0x535be5){const _0x1a3942=_0x3022d6;if(this[_0x1a3942(0xac)][_0x1a3942(0x151)](_0x535be5))return this['_sessions'][_0x1a3942(0x84)](_0x535be5);this['_tryEnsureSocket']();const _0x1bab06=this[_0x1a3942(0x123)][_0x1a3942(0x89)](exports['CollaborationSession'],_0x535be5,this['_socket$']['asObservable']());return this[_0x1a3942(0xac)][_0x1a3942(0x182)](_0x535be5,_0x1bab06),_0x1bab06;}[_0x3022d6(0x186)](_0x392676){const _0x508515=_0x3022d6;var _0x5e4bcd;const _0x100b2f=this[_0x508515(0xac)]['get'](_0x392676);_0x100b2f&&(this[_0x508515(0xac)][_0x508515(0x1af)](_0x392676),_0x100b2f[_0x508515(0x22c)]()),this[_0x508515(0xac)][_0x508515(0x2ca)]||(_0x5e4bcd=this['_socket'])==null||_0x5e4bcd['close']();}['_createSocket'](){const _0x41ae52=_0x3022d6;var _0x32863b;const _0x597158=(_0x32863b=this[_0x41ae52(0xee)]['getConfig'](_t))!=null?_0x32863b:Ft;return this[_0x41ae52(0x19f)][_0x41ae52(0x112)](_0x597158);}['_tryEnsureSocket'](){const _0x1fe93e=_0x3022d6;try{const _0x2bb311=this[_0x1fe93e(0x20a)]();if(_0x2bb311){const _0x48c6fc=_0x2bb311[_0x1fe93e(0x362)];_0x2bb311[_0x1fe93e(0x362)]=_0x40ee79=>(this['_rescheduleHeartbeatEvent'](),_0x48c6fc[_0x1fe93e(0xd6)](_0x2bb311,[_0x40ee79])),_0x2bb311[_0x1fe93e(0x40b)][_0x1fe93e(0x265)](_0x2ba1ba=>this[_0x1fe93e(0x2eb)](_0x2bb311,_0x2ba1ba)),_0x2bb311['error$'][_0x1fe93e(0x23e)](E[_0x1fe93e(0x2e9)](0x1))[_0x1fe93e(0x265)](_0x1a1bda=>this['_logService'][_0x1fe93e(0x404)]('[CollaborationSessionService]:\x20socket\x20error',_0x1a1bda)),_0x2bb311[_0x1fe93e(0x25b)][_0x1fe93e(0x23e)](E[_0x1fe93e(0x2e9)](0x1))[_0x1fe93e(0x265)](()=>{const _0x3cda27=_0x1fe93e;this[_0x3cda27(0x2b2)](_0x2bb311);}),_0x2bb311[_0x1fe93e(0x2a8)][_0x1fe93e(0x23e)](E['take'](0x1))[_0x1fe93e(0x265)](_0x1b98cc=>{const _0x4115ec=_0x1fe93e;this[_0x4115ec(0x38b)][_0x4115ec(0xf9)]('[CollaborationSessionService]',_0x4115ec(0x22e),_0x1b98cc),this[_0x4115ec(0x121)]();});}}catch(_0x38f43d){this['_logService']['error'](_0x38f43d),this['_onConnectionFailed']();}}[_0x3022d6(0x2b2)](_0x203391){const _0x29c4e2=_0x3022d6;this[_0x29c4e2(0x38b)]['debug'](_0x29c4e2(0x359),_0x29c4e2(0x108)),_0x203391[_0x29c4e2(0x362)]({'cmd':T['HELLO']}),this[_0x29c4e2(0x193)]();}[_0x3022d6(0x121)](){const _0x16da08=_0x3022d6;var _0x14b16f;this['_status$'][_0x16da08(0x116)](0x2),this[_0x16da08(0x2e4)][_0x16da08(0x116)](null),this[_0x16da08(0x398)](),this[_0x16da08(0xe9)](),this[_0x16da08(0x219)]=!0x1,this[_0x16da08(0x452)]<((_0x14b16f=this['_configService'][_0x16da08(0x1bd)](Xt))!=null?_0x14b16f:qt)?(this[_0x16da08(0xbc)](this['_retryCount']),this[_0x16da08(0x452)]+=0x1):this[_0x16da08(0x38e)][_0x16da08(0x1d3)]({'type':Q[_0x16da08(0x1e5)][_0x16da08(0x19c)],'content':this[_0x16da08(0x3b1)]['t'](_0x16da08(0x2c2))});}[_0x3022d6(0xbc)](_0x5debf5){const _0x4bee5c=_0x3022d6;var _0x37fe45;const _0x464395=((_0x37fe45=this['_configService']['getConfig'](Yt))!=null?_0x37fe45:Kt)*0x2**_0x5debf5;this['_messageService'][_0x4bee5c(0x1d3)]({'type':Q[_0x4bee5c(0x1e5)]['Warning'],'content':this[_0x4bee5c(0x3b1)]['t'](_0x4bee5c(0xe0))}),this[_0x4bee5c(0x387)]=setTimeout(()=>{const _0x562a98=_0x4bee5c;this[_0x562a98(0x2c9)](),clearTimeout(this[_0x562a98(0x387)]),this['_retryConnectingTimer']=null;},_0x464395);}[_0x3022d6(0x193)](){const _0x408550=_0x3022d6;var _0x502f46;this[_0x408550(0xe9)](),this[_0x408550(0x318)]=setTimeout(()=>this[_0x408550(0x2a4)](),(_0x502f46=this['_configService'][_0x408550(0x1bd)](ut))!=null?_0x502f46:Gt);}[_0x3022d6(0x2a4)](){const _0x31451d=_0x3022d6;this[_0x31451d(0x38d)]['send']({'cmd':T[_0x31451d(0x462)]}),this[_0x31451d(0x155)]();}[_0x3022d6(0x155)](){const _0xb89689=_0x3022d6;var _0x5cade4;this['_timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](),(_0x5cade4=this[_0xb89689(0xee)][_0xb89689(0x1bd)](He))!=null?_0x5cade4:dt);}[_0x3022d6(0x2eb)](_0x21f316,_0x3b2fe9){const _0x477899=_0x3022d6,{cmd:_0x13c3e4}=_0x3b2fe9;_0x13c3e4===T[_0x477899(0x24a)]&&!this['_socketReady']&&(_0x21f316[_0x477899(0x36f)]=_0x3b2fe9[_0x477899(0x2be)]['memberID'],this[_0x477899(0x2e4)][_0x477899(0x116)](_0x21f316),this[_0x477899(0x30d)]['next'](0x3),this[_0x477899(0x219)]=!0x0),_0x13c3e4===T[_0x477899(0x462)]&&this[_0x477899(0x398)](),this[_0x477899(0x193)]();}[_0x3022d6(0xe9)](){const _0x340d41=_0x3022d6;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x340d41(0x318)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x3ed13c=_0x3022d6;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3ed13c(0xae)]=null);}},exports[_0x3022d6(0x2ee)]=Et([M(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),M(0x1,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),M(0x2,L[_0x3022d6(0xaf)]),M(0x3,o['ILogService']),M(0x4,o[_0x3022d6(0x3be)]),M(0x5,Be)],exports[_0x3022d6(0x2ee)]);var ls=Object['defineProperty'],hs=Object['getOwnPropertyDescriptor'],_s=(_0x5efbe1,_0x33b587,_0x471a65,_0x1008a8)=>{const _0x173ff6=_0x3022d6;for(var _0x192979=_0x1008a8>0x1?void 0x0:_0x1008a8?hs(_0x33b587,_0x471a65):_0x33b587,_0x8b15ae=_0x5efbe1[_0x173ff6(0x2ce)]-0x1,_0xa76f8e;_0x8b15ae>=0x0;_0x8b15ae--)(_0xa76f8e=_0x5efbe1[_0x8b15ae])&&(_0x192979=(_0x1008a8?_0xa76f8e(_0x33b587,_0x471a65,_0x192979):_0xa76f8e(_0x192979))||_0x192979);return _0x1008a8&&_0x192979&&ls(_0x33b587,_0x471a65,_0x192979),_0x192979;},ie=(_0x3eb3e7,_0x8ba7f3)=>(_0x55fd9d,_0x2dac49)=>_0x8ba7f3(_0x55fd9d,_0x2dac49,_0x3eb3e7);exports[_0x3022d6(0x174)]=class extends o['Disposable']{constructor(_0x25935f,_0x332295,_0x8dd6e5,_0x58b954,_0x894b28){const _0x4fb45e=_0x3022d6;super(),u(this,_0x4fb45e(0xdf),new Map()),u(this,_0x4fb45e(0x13d),new Map()),u(this,_0x4fb45e(0x44c),!0x1),(this[_0x4fb45e(0xee)]=_0x25935f,this[_0x4fb45e(0x2df)]=_0x332295,this[_0x4fb45e(0x2ed)]=_0x8dd6e5,this[_0x4fb45e(0x3b1)]=_0x58b954,this[_0x4fb45e(0x254)]=_0x894b28,this[_0x4fb45e(0x299)]());}['disableLocalCache'](){const _0x2f2bfe=_0x3022d6;this[_0x2f2bfe(0x44c)]=!0x0;}['enableLocalCache'](){const _0x4d5b4b=_0x3022d6;this[_0x4d5b4b(0x44c)]=!0x1;}[_0x3022d6(0x147)](){const _0x1ea836=_0x3022d6;this[_0x1ea836(0x2e5)]()[_0x1ea836(0x156)](()=>super[_0x1ea836(0x147)]());}async[_0x3022d6(0x3b8)](_0x2bd7ae){const _0x1b12a9=_0x3022d6;return this['_disabled']?null:this['_localStorageService'][_0x1b12a9(0x1e4)](qe(_0x2bd7ae));}async[_0x3022d6(0x25c)](_0x298dbd,_0x3d9c21){const _0x40ba56=_0x3022d6;return!!this[_0x40ba56(0x2df)][_0x40ba56(0x31f)](_0x298dbd,_0x3d9c21);}[_0x3022d6(0xbb)](_0x1c5bed,_0x4e47c4,_0x4eb31e,_0x1ed609){const _0x1ac5dd=_0x3022d6,_0x57bba6=this[_0x1ac5dd(0x254)][_0x1ac5dd(0x33a)](_0x1c5bed);this[_0x1ac5dd(0xdf)][_0x1ac5dd(0x182)](_0x1c5bed,{'unitID':_0x1c5bed,'type':_0x4e47c4,'awaitingChangeset':_0x4eb31e,'mutations':_0x1ed609,'rev':_0x57bba6}),this[_0x1ac5dd(0x13d)]['has'](_0x1c5bed)||this[_0x1ac5dd(0x192)](_0x1c5bed);}[_0x3022d6(0x192)](_0x3d21af){const _0x3560f6=_0x3022d6,_0x55bcda=this['_getSaveTimeout']();_0x55bcda===0x0?this[_0x3560f6(0x443)](_0x3d21af):this['_saveTaskMap'][_0x3560f6(0x182)](_0x3d21af,setTimeout(()=>this[_0x3560f6(0x443)](_0x3d21af),_0x55bcda));}[_0x3022d6(0x234)](){const _0x3624aa=_0x3022d6;var _0x2cd08e;return(_0x2cd08e=this[_0x3624aa(0xee)]['getConfig'](St))!=null?_0x2cd08e:zt;}[_0x3022d6(0x443)](_0x1f1416){const _0x2f5046=_0x3022d6,_0x56c934=this['_saveTaskMap'][_0x2f5046(0x84)](_0x1f1416);return _0x56c934!==void 0x0&&window[_0x2f5046(0x1b4)](_0x56c934),this[_0x2f5046(0x2df)]['setItem'](qe(_0x1f1416),this[_0x2f5046(0xdf)][_0x2f5046(0x84)](_0x1f1416))[_0x2f5046(0x156)](()=>this[_0x2f5046(0x13d)][_0x2f5046(0x1af)](_0x1f1416));}async[_0x3022d6(0x2e5)](){const _0x5bca9b=_0x3022d6,_0x3eb8b9=[];this['_saveTaskMap'][_0x5bca9b(0x3d3)]((_0x169d8f,_0xd45b4)=>{const _0x2a3477=_0x5bca9b;window['clearTimeout'](_0x169d8f),_0x3eb8b9[_0x2a3477(0x42d)](this[_0x2a3477(0x443)](_0xd45b4)[_0x2a3477(0x156)](()=>{const _0xdcd0b6=_0x2a3477;this[_0xdcd0b6(0x13d)][_0xdcd0b6(0x1af)](_0xd45b4);}));}),await Promise[_0x5bca9b(0x3ac)](_0x3eb8b9);}[_0x3022d6(0x299)](){const _0x2442c7=_0x3022d6;this[_0x2442c7(0x14a)](this['_beforeCloseService'][_0x2442c7(0x31a)](()=>{const _0x407bb9=_0x2442c7;if(this['_saveTaskMap'][_0x407bb9(0x2ca)])return this[_0x407bb9(0x3b1)]['t'](_0x407bb9(0x397));}));}},exports['LocalCacheService']=_s([ie(0x0,o['IConfigService']),ie(0x1,o['ILocalStorageService']),ie(0x2,L[_0x3022d6(0x3db)]),ie(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),ie(0x4,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)]))],exports[_0x3022d6(0x174)]);function qe(_0x2b6b36){const _0x3acedd=_0x3022d6;return _0x3acedd(0x211)+_0x2b6b36;}const pe=o['createIdentifier'](_0x3022d6(0x376));var Ct=(_0x54c139=>(_0x54c139[_0x54c139[_0x3022d6(0x3f7)]=0x0]=_0x3022d6(0x3f7),_0x54c139[_0x54c139[_0x3022d6(0x2e1)]=0x1]=_0x3022d6(0x2e1),_0x54c139))(Ct||{});const ze=0x7530,Je='ACTIVE_UNIT_EVENT_CHANNEL';class us extends o[_0x3022d6(0x1c9)]{constructor(){const _0x42beef=_0x3022d6;super(),u(this,'_id',o[_0x42beef(0x418)][_0x42beef(0x24e)]()),u(this,_0x42beef(0x35e),new Set()),u(this,_0x42beef(0x423),new Map()),u(this,_0x42beef(0x42a),null),u(this,'_clearOtherTimers',new Map()),u(this,_0x42beef(0x175),new Map()),this[_0x42beef(0x11b)]();}[_0x3022d6(0x147)](){const _0x484617=_0x3022d6;super[_0x484617(0x147)](),this[_0x484617(0xa8)][_0x484617(0x3d3)]((_0x3bfe7f,_0x6ed19)=>this[_0x484617(0x334)](_0x6ed19)),this['_heartbeatTimer']&&window[_0x484617(0xcd)](this[_0x484617(0x42a)]);}['getUnitStatus$'](_0x5bdf65){const _0x3ca3d0=_0x3022d6;return this[_0x3ca3d0(0x1bc)](_0x5bdf65)[_0x3ca3d0(0x23e)](v[_0x3ca3d0(0x1fe)]());}[_0x3022d6(0x313)](_0x57679c){const _0x2eeb27=_0x3022d6;this['_selfUnitIDs'][_0x2eeb27(0x2ca)]===0x0&&this[_0x2eeb27(0x261)](),this['_selfUnitIDs'][_0x2eeb27(0xe1)](_0x57679c),this[_0x2eeb27(0xff)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x57679c],'isForwarded':!0x1});}['disposeUnit'](_0x261eb2){const _0x103157=_0x3022d6;this[_0x103157(0x35e)][_0x103157(0x1af)](_0x261eb2),this[_0x103157(0x35e)][_0x103157(0x2ca)]===0x0&&this[_0x103157(0x42a)]&&window[_0x103157(0xcd)](this[_0x103157(0x42a)]);}[_0x3022d6(0x11b)](){const _0x454faf=_0x3022d6;this[_0x454faf(0x14a)](o['toDisposable'](v[_0x454faf(0x163)](window,_0x454faf(0x21d))[_0x454faf(0x265)](_0x37086b=>{const _0xb92c89=_0x454faf;if(_0x37086b[_0xb92c89(0xda)]!==Je||!_0x37086b['newValue'])return;const _0x289d84=JSON[_0xb92c89(0x2ab)](_0x37086b[_0xb92c89(0x3d6)]);this[_0xb92c89(0x119)](_0x289d84);}))),window[_0x454faf(0x29d)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x454faf(0x188)],'unitIDs':Array[_0x454faf(0x39f)](this[_0x454faf(0x35e)])}));}[_0x3022d6(0x119)](_0x1bc7f5){const _0x12ec3a=_0x3022d6;switch(_0x1bc7f5[_0x12ec3a(0x1f3)]){case 0x0:this[_0x12ec3a(0x1d6)](_0x1bc7f5);break;case 0x1:this[_0x12ec3a(0x1db)](_0x1bc7f5);break;case 0x2:this['_handleHeartbeatEvent'](_0x1bc7f5);break;}}[_0x3022d6(0x1d6)](_0xecf1f9){const _0xbd12e2=_0x3022d6,{unitIDs:_0x2ed7d7,memberID:_0xb2ea1a,isForwarded:_0x51026f}=_0xecf1f9;_0x2ed7d7[_0xbd12e2(0x3d3)](_0x197e78=>{const _0x354f90=_0xbd12e2;if(!_0x51026f&&this[_0x354f90(0x423)][_0x354f90(0x151)](_0x197e78)&&this[_0x354f90(0x1bc)](_0x197e78)[_0x354f90(0x116)](0x1),!this[_0x354f90(0x423)][_0x354f90(0x151)](_0x197e78)||!this[_0x354f90(0x423)]['get'](_0x197e78)['has'](_0xb2ea1a)){const _0x480e9a=this['_unitOnClients'][_0x354f90(0x84)](_0x197e78)||new Set();_0x480e9a['add'](_0xb2ea1a),this[_0x354f90(0x423)][_0x354f90(0x182)](_0x197e78,_0x480e9a),this[_0x354f90(0x305)](_0xb2ea1a);}}),_0x51026f||this[_0xbd12e2(0xff)]({'type':0x0,'memberID':this[_0xbd12e2(0x188)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3022d6(0x305)](_0xb4cefc){const _0x40d92f=_0x3022d6;this[_0x40d92f(0x334)](_0xb4cefc);const _0x8e46b5=window[_0x40d92f(0x3ba)](()=>{const _0x402c38=_0x40d92f;this['_unitOnClients'][_0x402c38(0x3d3)](_0x5da93d=>{const _0x374487=_0x402c38;_0x5da93d[_0x374487(0x1af)](_0xb4cefc);});},ze*0x2);this[_0x40d92f(0xa8)][_0x40d92f(0x182)](_0xb4cefc,_0x8e46b5);}[_0x3022d6(0x334)](_0x7b44b4){const _0x49c533=_0x3022d6;if(this[_0x49c533(0xa8)][_0x49c533(0x151)](_0x7b44b4)){const _0x43978e=this[_0x49c533(0xa8)]['get'](_0x7b44b4);_0x43978e&&window[_0x49c533(0x1b4)](_0x43978e),this[_0x49c533(0xa8)]['set'](_0x7b44b4,null);}}[_0x3022d6(0x1db)](_0x5d4b60){const _0x5daf42=_0x3022d6,{memberID:_0x818d75,unitIDs:_0x1b41a8}=_0x5d4b60;_0x1b41a8[_0x5daf42(0x3d3)](_0x59b558=>{const _0x335a9a=_0x5daf42;var _0x44b9a9;const _0x4e5a49=this['_unitOnClients'][_0x335a9a(0x84)](_0x59b558);_0x4e5a49&&(_0x4e5a49[_0x335a9a(0x1af)](_0x818d75),(_0x44b9a9=this[_0x335a9a(0x1bc)](_0x59b558))==null||_0x44b9a9['next'](_0x4e5a49['size']===0x0?0x0:0x1));}),this[_0x5daf42(0x334)](_0x818d75);}[_0x3022d6(0x3c9)](_0x35027e){const _0x100d7c=_0x3022d6;this[_0x100d7c(0x305)](_0x35027e[_0x100d7c(0x36f)]);}['_send'](_0x428603){const _0x22b480=_0x3022d6;localStorage[_0x22b480(0x31f)](Je,JSON[_0x22b480(0x258)](_0x428603));}['_scheduleHeartbeat'](){const _0x5df6fd=_0x3022d6;this[_0x5df6fd(0x42a)]=window[_0x5df6fd(0x1aa)](()=>{const _0x52c2bd=_0x5df6fd;this[_0x52c2bd(0xff)]({'type':0x2,'memberID':this[_0x52c2bd(0x188)]});},ze);}[_0x3022d6(0x1bc)](_0x4dc8df){const _0x619c22=_0x3022d6;return this[_0x619c22(0x175)][_0x619c22(0x151)](_0x4dc8df)||this[_0x619c22(0x175)]['set'](_0x4dc8df,new v[(_0x619c22(0x141))](0x0)),this[_0x619c22(0x175)][_0x619c22(0x84)](_0x4dc8df);}}var ds=Object['defineProperty'],Ss=Object[_0x3022d6(0x2b4)],vs=(_0x216560,_0x5787b1,_0x464625,_0x5ca31c)=>{const _0x96976a=_0x3022d6;for(var _0x238240=_0x5ca31c>0x1?void 0x0:_0x5ca31c?Ss(_0x5787b1,_0x464625):_0x5787b1,_0x5922c8=_0x216560[_0x96976a(0x2ce)]-0x1,_0x504353;_0x5922c8>=0x0;_0x5922c8--)(_0x504353=_0x216560[_0x5922c8])&&(_0x238240=(_0x5ca31c?_0x504353(_0x5787b1,_0x464625,_0x238240):_0x504353(_0x238240))||_0x238240);return _0x5ca31c&&_0x238240&&ds(_0x5787b1,_0x464625,_0x238240),_0x238240;},Ze=(_0x28a2b6,_0x4c8dcd)=>(_0x55930c,_0x3eef43)=>_0x4c8dcd(_0x55930c,_0x3eef43,_0x28a2b6);let ve=class{constructor(_0x40752b,_0x30495e){const _0x1e32a7=_0x3022d6;this['_injector']=_0x40752b,this[_0x1e32a7(0x223)]=_0x30495e;}[_0x3022d6(0x377)](_0x572638){const _0x56555b=_0x3022d6;this[_0x56555b(0x2f5)](_0x572638),this[_0x56555b(0x90)](_0x572638);}[_0x3022d6(0x364)](_0x51fe01){const _0x1d7a8d=_0x3022d6,_0xb5b606=this[_0x1d7a8d(0x123)][_0x1d7a8d(0x84)](P[_0x1d7a8d(0x464)]),{redoCache:_0x333deb}=_0xb5b606[_0x1d7a8d(0x41e)]();if(_0x333deb[_0x1d7a8d(0x2ce)]===0x0)return _0x51fe01;let _0x1fd84e=o[_0x1d7a8d(0x418)][_0x1d7a8d(0x201)](_0x51fe01['mutations'][0x0]);for(let _0x1f5997=0x0;_0x1f5997<_0x333deb['length'];_0x1f5997++){const _0x5a21d9={'id':_0x1d7a8d(0x290),'params':{..._0x333deb[_0x1f5997]}},_0x2f89c2=this[_0x1d7a8d(0x223)][_0x1d7a8d(0x28e)](_0x1fd84e,_0x5a21d9,!0x1);if(_['isTransformMutationFailure'](_0x2f89c2))throw _0x2f89c2[_0x1d7a8d(0x404)];_0x1fd84e=_0x2f89c2[_0x1d7a8d(0x39e)];}return{...o[_0x1d7a8d(0x418)][_0x1d7a8d(0x201)](_0x51fe01),'mutations':[_0x1fd84e]};}[_0x3022d6(0x2f5)](_0x5790ed){const _0x59fc47=_0x3022d6,_0x474b46=this[_0x59fc47(0x123)][_0x59fc47(0x84)](P[_0x59fc47(0x464)]),{undoCache:_0x4c6c23,redoCache:_0x1dba12}=_0x474b46[_0x59fc47(0x41e)]();if(_0x4c6c23[_0x59fc47(0x2ce)]===0x0||_0x1dba12[_0x59fc47(0x2ce)]===0x0)return;const _0x531790=[],_0x58c5c0=[];let _0x148472=o[_0x59fc47(0x418)][_0x59fc47(0x201)](_0x5790ed[_0x59fc47(0x2a5)][0x0]),_0x32e0c2=o['Tools'][_0x59fc47(0x201)](_0x5790ed['mutations'][0x0]);for(let _0x5700fa=_0x4c6c23[_0x59fc47(0x2ce)]-0x1;_0x5700fa>=0x0;_0x5700fa--){const _0x4dd3d7={'id':_0x59fc47(0x290),'params':{..._0x4c6c23[_0x5700fa]}},_0x4bdcbd={'id':_0x59fc47(0x290),'params':{..._0x1dba12[_0x5700fa]}},_0x329f05=this[_0x59fc47(0x223)][_0x59fc47(0x28e)](_0x148472,_0x4dd3d7,!0x1),_0x77b3d4=this[_0x59fc47(0x223)]['transformMutation'](_0x32e0c2,_0x4bdcbd,!0x1);if(_[_0x59fc47(0x36a)](_0x329f05))throw _0x329f05['error'];if(_[_0x59fc47(0x36a)](_0x77b3d4))throw _0x77b3d4[_0x59fc47(0x404)];_0x531790['unshift'](_0x329f05[_0x59fc47(0x469)][_0x59fc47(0xd7)]),_0x58c5c0[_0x59fc47(0x3ec)](_0x77b3d4[_0x59fc47(0x469)][_0x59fc47(0xd7)]),_0x148472=_0x329f05[_0x59fc47(0x39e)],_0x32e0c2=_0x77b3d4['m1Prime'];}_0x474b46['setUndoRedoMutationParamsCache']({'undoCache':_0x531790,'redoCache':_0x58c5c0});}[_0x3022d6(0x90)](_0x58addf){const _0x14c88d=_0x3022d6,_0x700f28=this[_0x14c88d(0x123)][_0x14c88d(0x84)](P[_0x14c88d(0x464)]),_0x3f0817=_0x700f28[_0x14c88d(0x7c)]();if(_0x3f0817==null)return;const _0x30fa1c=[{'id':_0x14c88d(0x290),'params':{'unitId':_0x58addf['unitID'],'actions':null,'textRanges':[_0x3f0817]}}],_0x1bede1=this[_0x14c88d(0x223)][_0x14c88d(0x375)](_0x58addf,_0x30fa1c);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1bede1))throw _0x1bede1[_0x14c88d(0x404)];const _0x508d7d=_0x1bede1[_0x14c88d(0x469)][0x0][_0x14c88d(0xd7)]['textRanges'];Array[_0x14c88d(0x3a1)](_0x508d7d)&&_0x508d7d['length']&&_0x700f28['setActiveRange'](_0x508d7d[0x0]);}};ve=vs([Ze(0x0,o['Inject'](o['Injector'])),Ze(0x1,_[_0x3022d6(0x1d1)])],ve);var ms=Object['defineProperty'],gs=Object['getOwnPropertyDescriptor'],fs=(_0x4943a1,_0x513b46,_0x4d2e1f,_0xda901b)=>{const _0x3ad03f=_0x3022d6;for(var _0x8417dc=_0xda901b>0x1?void 0x0:_0xda901b?gs(_0x513b46,_0x4d2e1f):_0x513b46,_0x515f38=_0x4943a1[_0x3ad03f(0x2ce)]-0x1,_0x53719f;_0x515f38>=0x0;_0x515f38--)(_0x53719f=_0x4943a1[_0x515f38])&&(_0x8417dc=(_0xda901b?_0x53719f(_0x513b46,_0x4d2e1f,_0x8417dc):_0x53719f(_0x8417dc))||_0x8417dc);return _0xda901b&&_0x8417dc&&ms(_0x513b46,_0x4d2e1f,_0x8417dc),_0x8417dc;},Qe=(_0x521d19,_0x16ff44)=>(_0x4a172d,_0x576d5d)=>_0x16ff44(_0x4a172d,_0x576d5d,_0x521d19);let me=class{constructor(_0x5b301c,_0xba05d9){const _0x213f0e=_0x3022d6;this[_0x213f0e(0x123)]=_0x5b301c,this[_0x213f0e(0x223)]=_0xba05d9;}['transformSelections'](_0x5bf815){const _0x4aab1c=_0x3022d6;var _0x172ae2;const _0x378ecf=this[_0x4aab1c(0x123)][_0x4aab1c(0x84)](P[_0x4aab1c(0x329)]),_0x5c4b07=(_0x172ae2=_0x378ecf[_0x4aab1c(0x3bd)]())!=null?_0x172ae2:[],_0x186286=_0x5c4b07==null?void 0x0:_0x5c4b07[_0x4aab1c(0x317)](P[_0x4aab1c(0x3f1)]);if(_0x186286['length']===0x0)return;const _0x124bff=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5bf815[_0x4aab1c(0x367)],'actions':null,'textRanges':_0x186286}}],_0x2cb350=this[_0x4aab1c(0x223)][_0x4aab1c(0x375)](_0x5bf815,_0x124bff);if(!_[_0x4aab1c(0x10c)](_0x2cb350))throw _0x2cb350[_0x4aab1c(0x404)];const _0x24d70a=_0x2cb350['m2Prime'][0x0]['params'][_0x4aab1c(0x134)];Array['isArray'](_0x24d70a)&&_0x24d70a[_0x4aab1c(0x2ce)]&&_0x378ecf[_0x4aab1c(0x335)](_0x24d70a,!0x1);}};me=fs([Qe(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),Qe(0x1,_[_0x3022d6(0x1d1)])],me);function bt(_0x9dde2f){const _0xc20c6b=_0x3022d6;let _0x221a32='';for(const _0x1afc88 of _0x9dde2f){const {startOffset:_0x11c009,endOffset:_0x34fcb1,isActive:_0x2c4141}=_0x1afc88;_0x221a32[_0xc20c6b(0x2ce)]&&(_0x221a32+=','),_0x221a32+=_0x11c009+':'+_0x34fcb1+':'+(_0x2c4141?'1':'0');}return _0x221a32;}function Is(_0x232016){const _0x3337de=_0x3022d6,_0xf6a234=_0x232016['split'](','),_0x44efbc=[];for(const _0x55e957 of _0xf6a234){const [_0x598983,_0x1c1b54,_0x23957d]=_0x55e957['split'](':');_0x44efbc[_0x3337de(0x42d)]({'startOffset':Number(_0x598983),'endOffset':Number(_0x1c1b54),'collapsed':_0x598983===_0x1c1b54,'isActive':_0x23957d==='1'});}return _0x44efbc['some'](_0x3fdd7a=>_0x3fdd7a['isActive'])||(_0x44efbc[0x0][_0x3337de(0x311)]=!0x0),_0x44efbc;}class We extends o['RxDisposable']{constructor(){const _0x30522c=_0x3022d6;super(...arguments),u(this,_0x30522c(0x15c),new v[(_0x30522c(0x141))](null)),u(this,_0x30522c(0x3d9),this[_0x30522c(0x15c)][_0x30522c(0x295)]());}[_0x3022d6(0x2fe)](_0x1549c2){const _0x5a65db=_0x3022d6,{unitID:_0x4ba37c,memberID:_0x286a75,textRanges:_0x17fd5a}=_0x1549c2,_0xfbf8c3=bt(_0x17fd5a),_0x56e712={'unitID':_0x4ba37c,'memberID':_0x286a75,'selection':_0xfbf8c3};this[_0x5a65db(0x15c)]['next'](_0x56e712);}}var ps=Object['defineProperty'],Es=Object[_0x3022d6(0x2b4)],Cs=(_0x3f0d1a,_0x358edf,_0x1f789d,_0x59b426)=>{const _0xc70db1=_0x3022d6;for(var _0x4ad5cc=_0x59b426>0x1?void 0x0:_0x59b426?Es(_0x358edf,_0x1f789d):_0x358edf,_0xe11b17=_0x3f0d1a[_0xc70db1(0x2ce)]-0x1,_0x3e0915;_0xe11b17>=0x0;_0xe11b17--)(_0x3e0915=_0x3f0d1a[_0xe11b17])&&(_0x4ad5cc=(_0x59b426?_0x3e0915(_0x358edf,_0x1f789d,_0x4ad5cc):_0x3e0915(_0x4ad5cc))||_0x4ad5cc);return _0x59b426&&_0x4ad5cc&&ps(_0x358edf,_0x1f789d,_0x4ad5cc),_0x4ad5cc;},et=(_0x41730f,_0x7dfd34)=>(_0x5ad6c3,_0x3e4c3f)=>_0x7dfd34(_0x5ad6c3,_0x3e4c3f,_0x41730f);function bs(_0x2d1c1e){const _0x1dea0b=_0x3022d6,{unitID:_0x263411,mutations:_0x32bd98}=_0x2d1c1e;return{'unitId':_0x263411,'subUnitId':_0x32bd98[0x0][_0x1dea0b(0xd7)][_0x1dea0b(0x3d1)]};}let ge=class{constructor(_0x1e3aeb,_0xa5ed21){this['_injector']=_0x1e3aeb,this['_transformService']=_0xa5ed21;}[_0x3022d6(0xbd)](_0x3e28c0){const _0x22d43b=_0x3022d6;var _0x378b22,_0x26a32a,_0x13d21b;const _0x191cad=this[_0x22d43b(0x123)]['get'](p['SheetsSelectionsService']),{unitId:_0x401365,subUnitId:_0x2e921e}=bs(_0x3e28c0),_0x4c276d=_0x191cad[_0x22d43b(0x185)](_0x401365)[_0x22d43b(0xbe)]();if(_0x4c276d[_0x22d43b(0x2ce)]===0x0||!_0x401365||!_0x2e921e)return;const _0x2537b1=[{'id':p['SetSelectionsOperation']['id'],'params':{'unitId':_0x401365,'subUnitId':_0x2e921e,'selections':o[_0x22d43b(0x418)][_0x22d43b(0x201)](_0x4c276d)}}],_0x3cf102=this[_0x22d43b(0x223)][_0x22d43b(0x375)](_0x3e28c0,_0x2537b1);if(!_[_0x22d43b(0x10c)](_0x3cf102))throw _0x3cf102[_0x22d43b(0x404)];const _0x49136e=(_0x13d21b=(_0x26a32a=(_0x378b22=_0x3cf102[_0x22d43b(0x469)][0x0])==null?void 0x0:_0x378b22['params'])==null?void 0x0:_0x26a32a[_0x22d43b(0x2e7)])!=null?_0x13d21b:_0x4c276d;Array[_0x22d43b(0x3a1)](_0x49136e)&&_0x49136e[_0x22d43b(0x2ce)]&&this[_0x22d43b(0x123)][_0x22d43b(0x84)](o['ICommandService'])['executeCommand'](p[_0x22d43b(0x231)]['id'],{'unitId':_0x401365,'subUnitId':_0x2e921e,'selections':_0x49136e});}};ge=Cs([et(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),et(0x1,_['ITransformService'])],ge);const Ts=new Set([p[_0x3022d6(0x3d5)]['id']]);function tt(_0x26f792,_0x512bff,_0x37be72,_0x4ca68f,_0x1646e2){const _0x583edf=_0x3022d6;var _0x4cfa96,_0x412edb,_0x3e8031,_0x4b2f44;const _0x31fdaa=[];for(const _0xc050b6 of _0x26f792)if(Ts[_0x583edf(0x151)](_0xc050b6['id'])){if(_0x31fdaa[_0x583edf(0x2ce)]>0x0)break;_0x31fdaa[_0x583edf(0x42d)](_0xc050b6);break;}else _0x31fdaa[_0x583edf(0x42d)](_0xc050b6);const _0x5675fd=(_0x412edb=(_0x4cfa96=_0x1646e2[_0x583edf(0x129)]())==null?void 0x0:_0x4cfa96[_0x583edf(0x81)])!=null?_0x412edb:'unknown',_0x2beb24=(_0x4b2f44=(_0x3e8031=_0x1646e2[_0x583edf(0x129)]())==null?void 0x0:_0x3e8031[_0x583edf(0x36f)])!=null?_0x4b2f44:_0x583edf(0x2ad);return{'changeset':{'unitID':_0x512bff,'type':_[_0x583edf(0x3c4)](_0x37be72['getUnitType'](_0x512bff)),'baseRev':_0x4ca68f[_0x583edf(0x33a)](_0x512bff),'revision':0x0,'userID':_0x5675fd,'memberID':_0x2beb24,'mutations':_0x31fdaa},'pendingMutations':_0x26f792[_0x583edf(0x21e)](_0x31fdaa[_0x583edf(0x2ce)])};}function Rs(_0xf1d120,_0x3cc37e,_0x222102,_0x419f99,_0x44873a){const _0x49c1c9=_0x3022d6;var _0x163447,_0x2bd26b,_0x3a52cd,_0x472e3a;const _0x1f5291=[_0xf1d120[_0x49c1c9(0xb0)]((_0x6f6420,_0x278660)=>{const _0x5998c1=_0x49c1c9;var _0x3a02a7;const {id:_0x19d1c7}=_0x6f6420,{id:_0x3d8e02,type:_0x3cda21}=_0x278660,_0x5cabbf=(_0x3a02a7=_0x6f6420[_0x5998c1(0xd7)])!=null?_0x3a02a7:{'actions':null},_0x3e48d1=_0x278660[_0x5998c1(0xd7)];if(_0x19d1c7&&_0x19d1c7!==_0x3d8e02)throw new Error(_0x5998c1(0x333)+_0x19d1c7+'\x20-\x20'+_0x3d8e02+'.');return{..._0x6f6420,'id':_0x3d8e02,'type':_0x3cda21,'params':{'unitId':_0x3e48d1[_0x5998c1(0x347)],'textRanges':_0x3e48d1[_0x5998c1(0x134)],'actions':o[_0x5998c1(0x30c)]['compose'](_0x5cabbf[_0x5998c1(0x2d6)],_0x3e48d1['actions'])}};},{})],_0x3d061a=(_0x2bd26b=(_0x163447=_0x44873a[_0x49c1c9(0x129)]())==null?void 0x0:_0x163447[_0x49c1c9(0x81)])!=null?_0x2bd26b:'unknown',_0x1ddd84=(_0x472e3a=(_0x3a52cd=_0x44873a['getCurrentUser']())==null?void 0x0:_0x3a52cd['memberID'])!=null?_0x472e3a:'unknown';return{'changeset':{'unitID':_0x3cc37e,'type':_[_0x49c1c9(0x3c4)](_0x222102[_0x49c1c9(0x110)](_0x3cc37e)),'baseRev':_0x419f99[_0x49c1c9(0x33a)](_0x3cc37e),'revision':0x0,'userID':_0x3d061a,'memberID':_0x1ddd84,'mutations':_0x1f5291},'pendingMutations':[]};}const Os={'id':p[_0x3022d6(0x3f8)]['id'],'type':o[_0x3022d6(0x2c5)]['MUTATION'],'params':{}};var Ds=Object[_0x3022d6(0x131)],Ps=Object[_0x3022d6(0x2b4)],K=(_0x1d63e7,_0x4a8ea0,_0x2cd564,_0x162116)=>{const _0x5c0593=_0x3022d6;for(var _0x28402f=_0x162116>0x1?void 0x0:_0x162116?Ps(_0x4a8ea0,_0x2cd564):_0x4a8ea0,_0x3b6618=_0x1d63e7[_0x5c0593(0x2ce)]-0x1,_0x219653;_0x3b6618>=0x0;_0x3b6618--)(_0x219653=_0x1d63e7[_0x3b6618])&&(_0x28402f=(_0x162116?_0x219653(_0x4a8ea0,_0x2cd564,_0x28402f):_0x219653(_0x28402f))||_0x28402f);return _0x162116&&_0x28402f&&Ds(_0x4a8ea0,_0x2cd564,_0x28402f),_0x28402f;},m=(_0x31e4b6,_0xda1eb5)=>(_0x934e15,_0x1208ae)=>_0xda1eb5(_0x934e15,_0x1208ae,_0x31e4b6),D=(_0x4e40a3=>(_0x4e40a3[_0x3022d6(0x463)]=_0x3022d6(0x159),_0x4e40a3[_0x3022d6(0xf8)]='synced',_0x4e40a3[_0x3022d6(0x270)]=_0x3022d6(0x1ed),_0x4e40a3[_0x3022d6(0x1d0)]=_0x3022d6(0x450),_0x4e40a3['AWAITING_WITH_PENDING']=_0x3022d6(0x3f0),_0x4e40a3[_0x3022d6(0x1d2)]='fetch_missing',_0x4e40a3['CONFLICT']=_0x3022d6(0x3a0),_0x4e40a3[_0x3022d6(0x316)]=_0x3022d6(0x3b3),_0x4e40a3))(D||{});class X{constructor(_0x54a8a9,_0x95156f,_0x573774,_0x50f8fe,_0x1ea378,_0x4ee12a,_0x40f900,_0x1b71b5,_0x2b42d9){const _0x548d79=_0x3022d6;u(this,_0x548d79(0x3e3),null),u(this,'_pendingMutations',[]),(this['unitID']=_0x54a8a9,this[_0x548d79(0x1f3)]=_0x95156f,this[_0x548d79(0x3ce)]=_0x1ea378,this[_0x548d79(0x467)]=_0x4ee12a,this['_undoRedoService']=_0x40f900,this[_0x548d79(0x254)]=_0x1b71b5,this['_localCacheService']=_0x2b42d9,this['_awaitingChangeset']=_0x573774,this[_0x548d79(0x229)]=_0x50f8fe);}[_0x3022d6(0x1ef)](_0x46f82d){const _0x2725e8=_0x3022d6,_0x10f1e2=this[_0x2725e8(0x254)][_0x2725e8(0x33a)](this[_0x2725e8(0x367)]);return _0x46f82d[_0x2725e8(0x33d)]>_0x10f1e2+0x1?(this['_handler'][_0x2725e8(0x2b0)]({'from':_0x10f1e2,'to':_0x46f82d[_0x2725e8(0x33d)]-0x1}),!0x0):!0x1;}[_0x3022d6(0x241)](_0x4a0822){const _0x1e83ac=_0x3022d6;this[_0x1e83ac(0x42c)]['transformUndoRedo'](this['unitID'],_0x4a0822);}['_transformSelections'](_0x1bf423){const _0x525d44=_0x3022d6;var _0x4e462f,_0x50cd91;(_0x50cd91=(_0x4e462f=this[_0x525d44(0x3ce)])[_0x525d44(0x118)])==null||_0x50cd91[_0x525d44(0x422)](_0x4e462f,_0x1bf423);}[_0x3022d6(0x3de)](_0x416d2c){const _0x3ca126=_0x3022d6;var _0x15490d,_0x32a163;return(_0x32a163=(_0x15490d=this[_0x3ca126(0x3ce)])['onTransformIME'])==null?void 0x0:_0x32a163['call'](_0x15490d,_0x416d2c);}['_transformRemoteChangesetByIMECache'](_0x2cbc1e){const _0x53de4b=_0x3022d6;var _0x1f26c9,_0x4d63e8,_0x192ba9;return(_0x192ba9=(_0x4d63e8=(_0x1f26c9=this[_0x53de4b(0x3ce)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4d63e8[_0x53de4b(0x422)](_0x1f26c9,_0x2cbc1e))!=null?_0x192ba9:_0x2cbc1e;}['_syncEditingCollabCursor'](_0x28fd6e){const _0x423166=_0x3022d6;var _0x576b23,_0x1b160f;if(this[_0x423166(0x1f3)]===j[_0x423166(0x237)]){const {unitID:_0x4c5925,mutations:_0x7880ca,memberID:_0x3ac3d0}=_0x28fd6e,_0x496e7a=_0x7880ca[0x0][_0x423166(0xd7)][_0x423166(0x134)];Array['isArray'](_0x496e7a)&&_0x496e7a[_0x423166(0x2ce)]>0x0&&((_0x1b160f=(_0x576b23=this[_0x423166(0x3ce)])['onSyncEditingCollabCursor'])==null||_0x1b160f[_0x423166(0x422)](_0x576b23,{'unitID':_0x4c5925,'memberID':_0x3ac3d0,'textRanges':_0x496e7a}));}}[_0x3022d6(0x34d)](){const _0x9ec650=_0x3022d6;this[_0x9ec650(0x3ea)][_0x9ec650(0xbb)](this[_0x9ec650(0x367)],this[_0x9ec650(0x1f3)],this[_0x9ec650(0x3e3)],this[_0x9ec650(0x229)]);}[_0x3022d6(0x2e2)](){const _0x4ea688=_0x3022d6;return this[_0x4ea688(0x254)][_0x4ea688(0x33a)](this[_0x4ea688(0x367)]);}[_0x3022d6(0x3ad)](){const _0x355d68=_0x3022d6;this[_0x355d68(0x254)]['incrementRevForDocument'](this['unitID']);}[_0x3022d6(0x415)](_0x1e4ca3){const _0x24f1d0=_0x3022d6;var _0x192910;const _0x2ee049=this[_0x24f1d0(0x158)](_0x1e4ca3),_0x2aecaa=o['sequenceExecute'](_0x2ee049[_0x24f1d0(0x2a5)],this[_0x24f1d0(0x467)],{'fromCollab':!0x0});if(!_0x2aecaa[_0x24f1d0(0x3c5)])throw _0x2aecaa[_0x24f1d0(0x404)]instanceof Error?_0x2aecaa[_0x24f1d0(0x404)]:new Error((_0x192910=_0x2aecaa['error'])!=null?_0x192910:_0x24f1d0(0x217));this[_0x24f1d0(0x3de)](_0x2ee049),this['_transformUndoredo'](_0x1e4ca3),this[_0x24f1d0(0xdd)](_0x2ee049),this[_0x24f1d0(0x3c1)](_0x2ee049),this[_0x24f1d0(0x3ad)]();}}let ce=class extends X{constructor(_0x1180ec,_0xa8c4a4,_0xe87f20,_0x2fc83b,_0x418408,_0x350184,_0x3af90f,_0x3d4bde,_0x1feb46,_0x490b7b){const _0x56cafd=_0x3022d6;super(_0x1180ec,_0xa8c4a4,null,[],_0xe87f20,_0x3d4bde,_0x3af90f,_0x2fc83b,_0x418408),u(this,_0x56cafd(0x15b),'synced'),(this[_0x56cafd(0x123)]=_0x350184,this[_0x56cafd(0x38b)]=_0x1feb46,this[_0x56cafd(0x223)]=_0x490b7b);}[_0x3022d6(0x39c)](_0x16fffe){const _0x30fbf6=_0x3022d6,_0x43ae5c=this[_0x30fbf6(0x123)][_0x30fbf6(0x89)]($,this[_0x30fbf6(0x367)],this[_0x30fbf6(0x1f3)],[_0x16fffe],this[_0x30fbf6(0x3ce)]);return _0x43ae5c[_0x30fbf6(0x455)](),_0x43ae5c['_updateLocalCache'](),_0x43ae5c;}['onRemoteChangeset'](_0x129711){const _0x18e7a9=_0x3022d6;if(this[_0x18e7a9(0x1ef)](_0x129711))return this[_0x18e7a9(0x123)][_0x18e7a9(0x89)](H,this[_0x18e7a9(0x367)],this[_0x18e7a9(0x1f3)],null,[],null,[_0x129711],this['_handler']);try{const _0x3811c4=this['_transformService'][_0x18e7a9(0x375)](_0x129711,[Os]);if(_['isTransformMutationsWithChangesetSuccess'](_0x3811c4)){const {c1Prime:_0x567e85}=_0x3811c4;return this[_0x18e7a9(0x415)](_0x567e85),this;}throw _0x3811c4[_0x18e7a9(0x404)];}catch(_0x483141){return this[_0x18e7a9(0x38b)][_0x18e7a9(0x404)](_0x483141),this[_0x18e7a9(0x24f)](!0x1);}}[_0x3022d6(0x24f)](_0x3ef64d){const _0xa6a591=_0x3022d6;return this[_0xa6a591(0x123)][_0xa6a591(0x89)](B,this['unitID'],this[_0xa6a591(0x1f3)],null,[],this[_0xa6a591(0x3ce)],_0x3ef64d);}[_0x3022d6(0xc1)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3022d6(0x19d)](){const _0x11c763=_0x3022d6;throw new Error(_0x11c763(0x389));}[_0x3022d6(0x2b5)](){const _0x5b8f59=_0x3022d6;return this[_0x5b8f59(0x123)]['createInstance'](V,this[_0x5b8f59(0x367)],this[_0x5b8f59(0x1f3)],null,[],this[_0x5b8f59(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ce=K([m(0x3,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x4,o[_0x3022d6(0x291)](exports['LocalCacheService'])),m(0x5,o['Inject'](o[_0x3022d6(0x448)])),m(0x6,o['IUndoRedoService']),m(0x7,o[_0x3022d6(0x3e6)]),m(0x8,o['ILogService']),m(0x9,_['ITransformService'])],ce);let $=class extends X{constructor(_0x478f5c,_0x10b3d6,_0x47898d,_0x3e15d6,_0x518de2,_0x5f3629,_0x35a3bb,_0x15d241,_0x5858cd,_0x55d847,_0x1ebb08,_0x471be0,_0x9c612b,_0x35809f){const _0x1f6cf2=_0x3022d6;super(_0x478f5c,_0x10b3d6,null,_0x47898d,_0x3e15d6,_0x55d847,_0x35809f,_0x5f3629,_0x35a3bb),u(this,_0x1f6cf2(0x15b),_0x1f6cf2(0x1ed)),u(this,_0x1f6cf2(0x3cf),null),u(this,_0x1f6cf2(0x1f4),null),(this[_0x1f6cf2(0x123)]=_0x518de2,this[_0x1f6cf2(0x16b)]=_0x15d241,this[_0x1f6cf2(0x38b)]=_0x5858cd,this[_0x1f6cf2(0xee)]=_0x1ebb08,this[_0x1f6cf2(0x223)]=_0x471be0,this[_0x1f6cf2(0x17c)]=_0x9c612b);}[_0x3022d6(0x39c)](_0x3a8743){const _0x35ce8f=_0x3022d6;return this[_0x35ce8f(0x229)]['push'](_0x3a8743),this[_0x35ce8f(0x34d)](),this;}[_0x3022d6(0x138)](_0x30945e){const _0x37f1db=_0x3022d6;if(this[_0x37f1db(0x1ef)](_0x30945e))return this[_0x37f1db(0x2e6)](),this[_0x37f1db(0x123)][_0x37f1db(0x89)](H,this[_0x37f1db(0x367)],this['type'],null,this[_0x37f1db(0x229)],null,[_0x30945e],this[_0x37f1db(0x3ce)]);try{const _0x1cb749=this['_transformService'][_0x37f1db(0x375)](_0x30945e,this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x1cb749)){const {c1Prime:_0x24c5f2,m2Prime:_0x1dc9a1}=_0x1cb749;this[_0x37f1db(0x415)](_0x24c5f2);const _0x1b7363=this[_0x37f1db(0x123)][_0x37f1db(0x89)]($,this[_0x37f1db(0x367)],this[_0x37f1db(0x1f3)],_0x1dc9a1,this[_0x37f1db(0x3ce)]);return this['_clearScheduledTask'](),_0x1b7363['_schedule'](this[_0x37f1db(0x3cf)]?Math['max'](0x0,new Date()[_0x37f1db(0x1fd)]()-this[_0x37f1db(0x3cf)]):this[_0x37f1db(0x250)]()),_0x1b7363;}throw _0x1cb749[_0x37f1db(0x404)];}catch(_0x3b6761){return this[_0x37f1db(0x38b)][_0x37f1db(0x404)](_0x3b6761),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](){const _0x600518=_0x3022d6;throw new Error(_0x600518(0x1f5));}[_0x3022d6(0x19d)](){const _0x4586c4=_0x3022d6;throw new Error(_0x4586c4(0x14b));}[_0x3022d6(0x2b5)](){const _0x2e2cc3=_0x3022d6;return this['_clearScheduledTask'](),this['_injector'][_0x2e2cc3(0x89)](V,this[_0x2e2cc3(0x367)],this[_0x2e2cc3(0x1f3)],null,this['_pendingMutations'],this[_0x2e2cc3(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x455)](_0x237c9f){const _0x1ed62a=_0x3022d6;_0x237c9f=_0x237c9f!=null?_0x237c9f:this[_0x1ed62a(0x250)](),this[_0x1ed62a(0x3cf)]=new Date()[_0x1ed62a(0x1fd)](),this[_0x1ed62a(0x1f4)]=setTimeout(()=>{const _0x573e65=_0x1ed62a;this[_0x573e65(0x2e6)]();let _0x58c62a=null;switch(this[_0x573e65(0x1f3)]){case j['UNIVER_SHEET']:{_0x58c62a=tt(this['_pendingMutations'],this['unitID'],this[_0x573e65(0x17c)],this['_revisionService'],this['_memberService']);break;}case j[_0x573e65(0x237)]:{this['_pendingMutations']['every'](_0x389115=>_0x389115['id']===P[_0x573e65(0x365)]['id'])?_0x58c62a=Rs(this['_pendingMutations'],this[_0x573e65(0x367)],this[_0x573e65(0x17c)],this[_0x573e65(0x254)],this['_memberService']):_0x58c62a=tt(this['_pendingMutations'],this['unitID'],this[_0x573e65(0x17c)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x573e65(0x461)+this['type']+_0x573e65(0x43d));}const {changeset:_0x39519a,pendingMutations:_0x36d424}=_0x58c62a;this[_0x573e65(0x3ce)]['onSendChangeset'](_0x39519a);const _0x463500=_0x36d424[_0x573e65(0x2ce)]?this[_0x573e65(0x123)][_0x573e65(0x89)](x,this[_0x573e65(0x367)],this[_0x573e65(0x1f3)],_0x39519a,_0x36d424,this[_0x573e65(0x3ce)]):this[_0x573e65(0x123)]['createInstance'](k,this[_0x573e65(0x367)],this[_0x573e65(0x1f3)],_0x39519a,this[_0x573e65(0x3ce)]);_0x463500[_0x573e65(0x34d)](),this[_0x573e65(0x3ce)][_0x573e65(0x218)](this,_0x463500);},_0x237c9f);}['_getSendChangesetTimeout'](){const _0xdd0fd2=_0x3022d6;var _0x58d8b1;return(_0x58d8b1=this['_configService'][_0xdd0fd2(0x1bd)](ht))!=null?_0x58d8b1:Wt;}[_0x3022d6(0x40f)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3022d6(0x2e6)](){const _0x1bcda4=_0x3022d6;this[_0x1bcda4(0x1f4)]!=null&&(clearTimeout(this[_0x1bcda4(0x1f4)]),this[_0x1bcda4(0x1f4)]=null);}[_0x3022d6(0x24f)](_0x305875){const _0x3857cc=_0x3022d6;return this[_0x3857cc(0x2e6)](),this[_0x3857cc(0x123)]['createInstance'](B,this['unitID'],this[_0x3857cc(0x1f3)],null,this[_0x3857cc(0x229)],this[_0x3857cc(0x3ce)],_0x305875);}};$=K([m(0x4,o[_0x3022d6(0x291)](o['Injector'])),m(0x5,o[_0x3022d6(0x291)](_['RevisionService'])),m(0x6,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x7,o[_0x3022d6(0x291)](Y)),m(0x8,o['ILogService']),m(0x9,o[_0x3022d6(0x3e6)]),m(0xa,o[_0x3022d6(0x3be)]),m(0xb,_[_0x3022d6(0x1d1)]),m(0xc,o[_0x3022d6(0xb8)]),m(0xd,o[_0x3022d6(0x114)])],$);let k=class extends X{constructor(_0xad95d0,_0x58fb5e,_0x378de6,_0x2f0da1,_0x559c0e,_0x5e33a4,_0x4947fb,_0x19e90c,_0x52b65f,_0x57e926,_0x1ecf7e){const _0x3afb07=_0x3022d6;super(_0xad95d0,_0x58fb5e,_0x378de6,[],_0x2f0da1,_0x19e90c,_0x1ecf7e,_0x5e33a4,_0x4947fb),u(this,'status',_0x3afb07(0x450)),(this[_0x3afb07(0x123)]=_0x559c0e,this[_0x3afb07(0x38b)]=_0x52b65f,this[_0x3afb07(0x223)]=_0x57e926);}[_0x3022d6(0x39c)](_0x5ee04f){const _0xbb817d=_0x3022d6,_0x38baf3=this[_0xbb817d(0x123)][_0xbb817d(0x89)](x,this['unitID'],this[_0xbb817d(0x1f3)],this['_awaitingChangeset'],[_0x5ee04f],this[_0xbb817d(0x3ce)]);return _0x38baf3[_0xbb817d(0x34d)](),_0x38baf3;}[_0x3022d6(0x138)](_0x328b73){const _0x5c2a96=_0x3022d6;if(this[_0x5c2a96(0x1ef)](_0x328b73))return this[_0x5c2a96(0x123)][_0x5c2a96(0x89)](H,this['unitID'],this[_0x5c2a96(0x1f3)],this[_0x5c2a96(0x3e3)],[],null,[_0x328b73],this[_0x5c2a96(0x3ce)]);try{const _0x4dbc67=this[_0x5c2a96(0x223)][_0x5c2a96(0x232)]([_0x328b73],[this[_0x5c2a96(0x3e3)]],!0x1);if(_[_0x5c2a96(0x2cf)](_0x4dbc67)){const {c1Prime:_0x3a578b,c2Prime:_0xd399ee}=_0x4dbc67;this[_0x5c2a96(0x415)](_0x3a578b[0x0]),_0xd399ee[0x0][_0x5c2a96(0x1da)]=this['_getCurrentRevision']();const _0x3031c6=this[_0x5c2a96(0x123)]['createInstance'](k,this['unitID'],this['type'],_0xd399ee[0x0],this[_0x5c2a96(0x3ce)]);return _0x3031c6[_0x5c2a96(0x34d)](),_0x3031c6;}return this[_0x5c2a96(0x24f)](!0x1);}catch(_0xe14102){return this[_0x5c2a96(0x38b)][_0x5c2a96(0x404)](_0xe14102),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](_0xac73c0){const _0x17c96d=_0x3022d6,_0x12a54d=this[_0x17c96d(0x254)][_0x17c96d(0x33a)](this['unitID']);if(_0xac73c0[_0x17c96d(0x33d)]<_0x12a54d-0x1)return this;if(this[_0x17c96d(0x1ef)](_0xac73c0))return this['_injector'][_0x17c96d(0x89)](H,this[_0x17c96d(0x367)],this[_0x17c96d(0x1f3)],null,[],this[_0x17c96d(0x3e3)],[],this['_handler']);this[_0x17c96d(0x3ad)]();const _0x512f1e=this['_injector'][_0x17c96d(0x89)](ce,this[_0x17c96d(0x367)],this[_0x17c96d(0x1f3)],this[_0x17c96d(0x3ce)]);return _0x512f1e[_0x17c96d(0x34d)](),_0x512f1e;}['onRemoteRej'](_0x4b5783){const _0x1cb382=_0x3022d6;return this[_0x1cb382(0x24f)](!!(_0x4b5783!=null&&_0x4b5783['isPermissionRej']));}[_0x3022d6(0x2b5)](){const _0x481c94=_0x3022d6;return this[_0x481c94(0x123)][_0x481c94(0x89)](V,this[_0x481c94(0x367)],this[_0x481c94(0x1f3)],this[_0x481c94(0x3e3)],[],this['_handler']);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0x12cf20=_0x3022d6;this[_0x12cf20(0x3ce)]['onSendChangeset'](this[_0x12cf20(0x3e3)]);}[_0x3022d6(0x24f)](_0x4509b6){const _0x43c488=_0x3022d6;return this['_injector'][_0x43c488(0x89)](B,this['unitID'],this[_0x43c488(0x1f3)],this[_0x43c488(0x3e3)],[],this['_handler'],_0x4509b6);}};k=K([m(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x5,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x6,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x7,o['ICommandService']),m(0x8,o[_0x3022d6(0x22f)]),m(0x9,_[_0x3022d6(0x1d1)]),m(0xa,o[_0x3022d6(0x114)])],k);let x=class extends X{constructor(_0x540732,_0x18dd8a,_0x445ce1,_0x1575e9,_0x324ca3,_0xd9fb39,_0xc48921,_0x3fad45,_0x1565a0,_0x38b790,_0x22af90,_0x4376a8){const _0x4f6979=_0x3022d6;super(_0x540732,_0x18dd8a,_0x445ce1,_0x1575e9,_0x324ca3,_0x1565a0,_0x4376a8,_0xc48921,_0x3fad45),u(this,_0x4f6979(0x15b),_0x4f6979(0x3f0)),(this[_0x4f6979(0x123)]=_0xd9fb39,this[_0x4f6979(0x38b)]=_0x38b790,this[_0x4f6979(0x223)]=_0x22af90);}[_0x3022d6(0x39c)](_0x36cd02){const _0x5ee7e1=_0x3022d6;return this[_0x5ee7e1(0x229)][_0x5ee7e1(0x42d)](_0x36cd02),this;}[_0x3022d6(0x138)](_0x5f318b){const _0x4988d8=_0x3022d6;if(this['_checkMissing'](_0x5f318b))return this[_0x4988d8(0x123)][_0x4988d8(0x89)](H,this[_0x4988d8(0x367)],this[_0x4988d8(0x1f3)],this[_0x4988d8(0x3e3)],this[_0x4988d8(0x229)],null,[_0x5f318b],this[_0x4988d8(0x3ce)]);try{const _0x14c260=this['_transformService'][_0x4988d8(0x232)]([_0x5f318b],[this[_0x4988d8(0x3e3)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x14c260)){const {c1Prime:_0x3254cc,c2Prime:_0x4ead3a}=_0x14c260,_0x1fc8ee=this[_0x4988d8(0x223)][_0x4988d8(0x375)](_0x3254cc[0x0],this[_0x4988d8(0x229)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x1fc8ee)){const {c1Prime:_0x2ae596,m2Prime:_0x1b45cf}=_0x1fc8ee;return this['_executeRemoteChangeset'](_0x2ae596),_0x4ead3a[0x0]['baseRev']=this[_0x4988d8(0x2e2)](),this[_0x4988d8(0x123)][_0x4988d8(0x89)](x,this['unitID'],this[_0x4988d8(0x1f3)],_0x4ead3a[0x0],_0x1b45cf,this[_0x4988d8(0x3ce)]);}throw _0x1fc8ee[_0x4988d8(0x404)];}throw _0x14c260[_0x4988d8(0x404)];}catch(_0x49480d){return this[_0x4988d8(0x38b)][_0x4988d8(0x404)](_0x49480d),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](_0xbb7b49){const _0x318a76=_0x3022d6;if(this[_0x318a76(0x1ef)](_0xbb7b49))return this[_0x318a76(0x123)][_0x318a76(0x89)](H,this[_0x318a76(0x367)],this[_0x318a76(0x1f3)],null,this['_pendingMutations'],this[_0x318a76(0x3e3)],[],this[_0x318a76(0x3ce)]);this[_0x318a76(0x3ad)]();const _0xd33353=this[_0x318a76(0x123)][_0x318a76(0x89)]($,this[_0x318a76(0x367)],this['type'],this[_0x318a76(0x229)],this['_handler']);return _0xd33353[_0x318a76(0x455)](),_0xd33353[_0x318a76(0x34d)](),_0xd33353;}[_0x3022d6(0x19d)](_0x46c4e8){const _0x54c51b=_0x3022d6;return this[_0x54c51b(0x24f)](!!(_0x46c4e8!=null&&_0x46c4e8[_0x54c51b(0x278)]));}[_0x3022d6(0x2b5)](){const _0x12a183=_0x3022d6;return this[_0x12a183(0x123)][_0x12a183(0x89)](V,this[_0x12a183(0x367)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x12a183(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0x1954c3=_0x3022d6;this[_0x1954c3(0x3ce)][_0x1954c3(0x3f5)](this[_0x1954c3(0x3e3)]);}[_0x3022d6(0x24f)](_0x537625){const _0x44e703=_0x3022d6;return this[_0x44e703(0x123)]['createInstance'](B,this[_0x44e703(0x367)],this[_0x44e703(0x1f3)],null,this[_0x44e703(0x229)],this[_0x44e703(0x3ce)],_0x537625);}};x=K([m(0x5,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x6,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x7,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x8,o['ICommandService']),m(0x9,o[_0x3022d6(0x22f)]),m(0xa,_[_0x3022d6(0x1d1)]),m(0xb,o[_0x3022d6(0x114)])],x);let B=class extends X{constructor(_0x1d14f0,_0x305aa6,_0x175bba,_0x592d17,_0xe4ab68,_0x535609=!0x1,_0x2f1e76,_0x45a94f,_0x2e285d,_0x53d8a4,_0x42897a,_0x299b53,_0x53643b){const _0x61b990=_0x3022d6;super(_0x1d14f0,_0x305aa6,_0x175bba,_0x592d17,_0xe4ab68,_0x45a94f,_0x2e285d,_0x42897a,_0x53d8a4),u(this,_0x61b990(0x15b),_0x61b990(0x3a0)),(this['_isPermissionRej']=_0x535609,this[_0x61b990(0x3a2)]=_0x2f1e76,this[_0x61b990(0x3b1)]=_0x299b53,this['_notificationService']=_0x53643b,this[_0x61b990(0x41d)](),this['_clearLocalCache'](),this[_0x61b990(0x3e9)]());}[_0x3022d6(0x39c)](){return this;}[_0x3022d6(0x138)](){return this;}[_0x3022d6(0xc1)](){return this;}[_0x3022d6(0x19d)](){return this;}['toggleOffline'](){return this;}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0xe1508c=_0x3022d6;throw new Error(_0xe1508c(0x191));}[_0x3022d6(0x8d)](){const _0x3b4916=_0x3022d6;this[_0x3b4916(0x3ea)][_0x3b4916(0xbb)](this[_0x3b4916(0x367)],this['type'],null,[]);}['_showConflictNotification'](){const _0x5c7229=_0x3022d6;this[_0x5c7229(0x2cb)]?this[_0x5c7229(0x2d1)][_0x5c7229(0x1d3)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x5c7229(0x3b1)]['t'](_0x5c7229(0xb5)),'type':'error','duration':0x0}):this['_notificationService'][_0x5c7229(0x1d3)]({'title':this[_0x5c7229(0x3b1)]['t'](_0x5c7229(0x437)),'content':this['_localeService']['t'](_0x5c7229(0x2a7)),'type':_0x5c7229(0x404),'duration':0x0});}['_disableEditing'](){this['_permissionService']['updatePermissionPoint'](new p['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};B=K([m(0x6,o['Inject'](o[_0x3022d6(0x346)])),m(0x7,o[_0x3022d6(0x3e6)]),m(0x8,o[_0x3022d6(0x114)]),m(0x9,o['Inject'](exports['LocalCacheService'])),m(0xa,o['Inject'](_['RevisionService'])),m(0xb,o[_0x3022d6(0x291)](o['LocaleService'])),m(0xc,L[_0x3022d6(0xfd)])],B);let V=class extends X{constructor(_0x575fd6,_0x47952d,_0x2d2ccd,_0x4b5200,_0x2404c6,_0x5003bf,_0x142410,_0x59ee06,_0x295e3a,_0x47503a){const _0x112d35=_0x3022d6;super(_0x575fd6,_0x47952d,_0x2d2ccd,_0x4b5200,_0x2404c6,_0x295e3a,_0x47503a,_0x142410,_0x59ee06),u(this,'status',_0x112d35(0x3b3)),this['_injector']=_0x5003bf;}[_0x3022d6(0x39c)](_0x3d0251){const _0x57749a=_0x3022d6;return this[_0x57749a(0x229)][_0x57749a(0x42d)](_0x3d0251),this[_0x57749a(0x34d)](),this;}['onRemoteChangeset'](_0x1571aa){const _0x46ad6b=_0x3022d6;throw new Error(_0x46ad6b(0x3f6));}[_0x3022d6(0xc1)](){const _0x5d4e27=_0x3022d6;throw new Error(_0x5d4e27(0x41f));}[_0x3022d6(0x19d)](){const _0x485344=_0x3022d6;throw new Error(_0x485344(0x339));}[_0x3022d6(0x2b5)](){return this;}[_0x3022d6(0xbf)](){const {_injector:_0x4afdcc,_pendingMutations:_0xbc93e8,_awaitingChangeset:_0x43e856,unitID:_0x49259e,_handler:_0x33b0a9,type:_0x29f261}=this,_0x346bb5=Tt(_0x4afdcc,_0x49259e,_0x29f261,_0x43e856,_0xbc93e8,_0x33b0a9);return _0x346bb5 instanceof $?_0x346bb5['_schedule']():(_0x346bb5 instanceof x||_0x346bb5 instanceof k)&&_0x346bb5['resend'](),_0x346bb5;}['resend'](){const _0x19b740=_0x3022d6;throw new Error(_0x19b740(0x12e));}};V=K([m(0x5,o[_0x3022d6(0x291)](o['Injector'])),m(0x6,o[_0x3022d6(0x291)](_['RevisionService'])),m(0x7,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x8,o[_0x3022d6(0x3e6)]),m(0x9,o['IUndoRedoService'])],V);let H=class extends X{constructor(_0xed3494,_0x33dd9d,_0x366ee5,_0xb9976,_0x3069eb,_0x4e0ac0,_0x134033,_0x49330e,_0xd6f547,_0x7a70da,_0x325cf5,_0x14a2e2,_0x1f0776,_0x262250){const _0x110326=_0x3022d6;super(_0xed3494,_0x33dd9d,_0x366ee5,_0xb9976,_0x134033,_0x14a2e2,_0x1f0776,_0xd6f547,_0x7a70da),u(this,_0x110326(0x15b),_0x110326(0x28f)),(this['_acknowledgedAwaitingChangeset']=_0x3069eb,this[_0x110326(0x139)]=_0x4e0ac0,this[_0x110326(0x123)]=_0x49330e,this['_logService']=_0x325cf5,this['_transformService']=_0x262250);}['onMissedChangesetFetched'](_0x301a93){const _0x5b6c7f=_0x3022d6;try{const _0x1f496b=[..._0x301a93,...this[_0x5b6c7f(0x139)]],_0x566b5a=[this['_awaitingChangeset']||this[_0x5b6c7f(0xc2)]][_0x5b6c7f(0x1c0)](_0x1c938c=>!!_0x1c938c);let _0x5248cf,_0x450724;if(_0x566b5a[_0x5b6c7f(0x2ce)]){const _0x336cb4=this[_0x5b6c7f(0x223)][_0x5b6c7f(0x232)](_0x1f496b,_0x566b5a,!0x1);if(!_[_0x5b6c7f(0x2cf)](_0x336cb4))throw _0x336cb4[_0x5b6c7f(0x404)];_0x5248cf=_0x336cb4[_0x5b6c7f(0x3c6)],_0x450724=_0x336cb4[_0x5b6c7f(0x41a)];}else _0x5248cf=_0x1f496b,_0x450724=[];let _0x5693b1=this[_0x5b6c7f(0x229)];_0x5248cf[_0x5b6c7f(0x3d3)](_0xa167e9=>{const _0x3deceb=_0x5b6c7f;let _0x33cec9;if(_0x5693b1[_0x3deceb(0x2ce)]){const _0x5eee7f=this[_0x3deceb(0x223)][_0x3deceb(0x375)](_0xa167e9,_0x5693b1);if(!_[_0x3deceb(0x10c)](_0x5eee7f))throw _0x5eee7f[_0x3deceb(0x404)];_0x33cec9=_0x5eee7f[_0x3deceb(0x3c6)],_0x5693b1=_0x5eee7f[_0x3deceb(0x469)];}else _0x33cec9=_0xa167e9;this[_0x3deceb(0x415)](_0x33cec9);}),this[_0x5b6c7f(0xc2)]&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x450724[_0x5b6c7f(0x2ce)]&&(_0x450724[0x0][_0x5b6c7f(0x1da)]=this['_getCurrentRevision']());let _0x1a3fba;if(this['_awaitingChangeset']&&_0x5693b1['length']!==0x0)_0x1a3fba=this['_injector'][_0x5b6c7f(0x89)](x,this[_0x5b6c7f(0x367)],this['type'],_0x450724[0x0],_0x5693b1,this[_0x5b6c7f(0x3ce)]);else{if(this[_0x5b6c7f(0x3e3)]&&_0x5693b1['length']===0x0)_0x450724[0x0][_0x5b6c7f(0x1da)]=this[_0x5b6c7f(0x2e2)](),_0x1a3fba=this['_injector'][_0x5b6c7f(0x89)](k,this['unitID'],this[_0x5b6c7f(0x1f3)],_0x450724[0x0],this['_handler']);else{if(_0x5693b1[_0x5b6c7f(0x2ce)]!==0x0){const _0x6ca3ce=this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)]($,this['unitID'],this['type'],_0x5693b1,this[_0x5b6c7f(0x3ce)]);_0x6ca3ce[_0x5b6c7f(0x455)](),_0x1a3fba=_0x6ca3ce;}else _0x1a3fba=this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)](ce,this[_0x5b6c7f(0x367)],this['type'],this[_0x5b6c7f(0x3ce)]);}}return _0x1a3fba[_0x5b6c7f(0x34d)](),_0x1a3fba;}catch(_0x1c5a53){return this[_0x5b6c7f(0x38b)][_0x5b6c7f(0x404)](_0x5b6c7f(0x1a3),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1c5a53),this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)](B,this[_0x5b6c7f(0x367)],this[_0x5b6c7f(0x1f3)],this[_0x5b6c7f(0x3e3)],this[_0x5b6c7f(0x229)],this[_0x5b6c7f(0x3ce)],!0x1);}}[_0x3022d6(0x40f)](){const _0x1cdea1=_0x3022d6;throw new Error(_0x1cdea1(0x204));}['appendMutation'](_0x15c2e1){const _0x370357=_0x3022d6;return this['_pendingMutations'][_0x370357(0x42d)](_0x15c2e1),this;}[_0x3022d6(0x138)](_0x528053){const _0x24f7fb=_0x3022d6;return this[_0x24f7fb(0x139)][_0x24f7fb(0x42d)](_0x528053),this;}[_0x3022d6(0xc1)](_0x2ceca0){const _0x192ac9=_0x3022d6;if(this[_0x192ac9(0x3e3)])return this[_0x192ac9(0xc2)]=this['_awaitingChangeset'],this[_0x192ac9(0x3e3)]=null,this;throw new Error(_0x192ac9(0xf5));}[_0x3022d6(0x19d)](_0x5bc87f){const _0x4bcf50=_0x3022d6;return this[_0x4bcf50(0x24f)](!!(_0x5bc87f!=null&&_0x5bc87f['isPermissionRej']));}[_0x3022d6(0x2b5)](){const _0x2ef8df=_0x3022d6;return this[_0x2ef8df(0x123)][_0x2ef8df(0x89)](V,this[_0x2ef8df(0x367)],this[_0x2ef8df(0x1f3)],this[_0x2ef8df(0x3e3)],this[_0x2ef8df(0x229)],this[_0x2ef8df(0x3ce)]);}['toggleOnline'](){return this;}[_0x3022d6(0x24f)](_0xd0fe24){const _0x59135d=_0x3022d6;return this['_injector'][_0x59135d(0x89)](B,this[_0x59135d(0x367)],this[_0x59135d(0x1f3)],this[_0x59135d(0x3e3)],this[_0x59135d(0x229)],this['_handler'],_0xd0fe24);}};H=K([m(0x7,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x8,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x9,o['Inject'](exports[_0x3022d6(0x174)])),m(0xa,o[_0x3022d6(0x22f)]),m(0xb,o['ICommandService']),m(0xc,o[_0x3022d6(0x114)]),m(0xd,_[_0x3022d6(0x1d1)])],H);function Tt(_0x365636,_0x213eda,_0x519fde,_0x345076,_0x2a479d,_0x46650e){const _0x31b58a=_0x3022d6;return _0x345076&&_0x2a479d[_0x31b58a(0x2ce)]?_0x365636[_0x31b58a(0x89)](x,_0x213eda,_0x519fde,_0x345076,_0x2a479d,_0x46650e):_0x345076?_0x365636[_0x31b58a(0x89)](k,_0x213eda,_0x519fde,_0x345076,_0x46650e):_0x2a479d['length']?_0x365636['createInstance']($,_0x213eda,_0x519fde,_0x2a479d,_0x46650e):_0x365636[_0x31b58a(0x89)](ce,_0x213eda,_0x519fde,_0x46650e);}var Us=Object[_0x3022d6(0x131)],ws=Object[_0x3022d6(0x2b4)],Ee=(_0x43132f,_0x4cfd39,_0x47ae75,_0x32b9c4)=>{const _0x4d8e18=_0x3022d6;for(var _0x3debec=_0x32b9c4>0x1?void 0x0:_0x32b9c4?ws(_0x4cfd39,_0x47ae75):_0x4cfd39,_0x4d80a7=_0x43132f[_0x4d8e18(0x2ce)]-0x1,_0x59500c;_0x4d80a7>=0x0;_0x4d80a7--)(_0x59500c=_0x43132f[_0x4d80a7])&&(_0x3debec=(_0x32b9c4?_0x59500c(_0x4cfd39,_0x47ae75,_0x3debec):_0x59500c(_0x3debec))||_0x3debec);return _0x32b9c4&&_0x3debec&&Us(_0x4cfd39,_0x47ae75,_0x3debec),_0x3debec;},I=(_0x13dcd9,_0x4ebab0)=>(_0x1c06de,_0x5a8d3e)=>_0x4ebab0(_0x1c06de,_0x5a8d3e,_0x13dcd9);exports['CollaborationController']=class extends o['RxDisposable']{constructor(_0x5e2e76,_0x491d1d,_0x5844e7){const _0xdd5bd2=_0x3022d6;super(),u(this,_0xdd5bd2(0x23d),new Map()),u(this,_0xdd5bd2(0x242),new v[(_0xdd5bd2(0x21b))]()),(this[_0xdd5bd2(0x123)]=_0x5e2e76,this['_collabSessionService']=_0x491d1d,this[_0xdd5bd2(0x17c)]=_0x5844e7,this[_0xdd5bd2(0x11b)]());}[_0x3022d6(0x147)](){const _0x1d1575=_0x3022d6;super[_0x1d1575(0x147)](),this[_0x1d1575(0x23d)][_0x1d1575(0x3d3)](_0x30bbd1=>_0x30bbd1[_0x1d1575(0x147)]()),this['_entities'][_0x1d1575(0xe4)]();}[_0x3022d6(0x18d)](_0x1fc72e){var _0x1442dc;return(_0x1442dc=this['_entities']['get'](_0x1fc72e))!=null?_0x1442dc:null;}[_0x3022d6(0x293)](_0x10637a){const _0x232a25=_0x3022d6,_0x2d920d=this[_0x232a25(0x18d)](_0x10637a);return _0x2d920d?v['of'](_0x2d920d):this[_0x232a25(0x242)][_0x232a25(0x23e)](E[_0x232a25(0x1c0)](_0x23d388=>_0x23d388['unitID']===_0x10637a));}[_0x3022d6(0x11b)](){const _0x449d3c=_0x3022d6;this[_0x449d3c(0x17c)]['getTypeOfUnitAdded$'](o[_0x449d3c(0x23f)][_0x449d3c(0x2c0)])[_0x449d3c(0x23e)](v[_0x449d3c(0xc7)](this['dispose$']),E['delay'](0x10))[_0x449d3c(0x265)](async _0x4c3865=>{const _0x44dcad=_0x449d3c,_0x5a4465=_0x4c3865[_0x44dcad(0x29c)](),_0x6faeec=await this[_0x44dcad(0x2fd)](_0x5a4465,j[_0x44dcad(0x2c0)]);this[_0x44dcad(0x23d)][_0x44dcad(0x182)](_0x5a4465,_0x6faeec);}),this[_0x449d3c(0x17c)][_0x449d3c(0x2f6)](o[_0x449d3c(0x23f)][_0x449d3c(0x237)])['pipe'](v['takeUntil'](this[_0x449d3c(0x374)]),E[_0x449d3c(0x3eb)](0x10))[_0x449d3c(0x23e)](E[_0x449d3c(0x1c0)](_0x1491ca=>!_0x1491ca[_0x449d3c(0x29c)]()[_0x449d3c(0x1f6)]('__')))['subscribe'](async _0x52a7e9=>{const _0x21fec0=_0x449d3c,_0x4d985b=_0x52a7e9[_0x21fec0(0x29c)](),_0x2c8f21=await this[_0x21fec0(0x2fd)](_0x4d985b,j['UNIVER_DOC']);this[_0x21fec0(0x23d)][_0x21fec0(0x182)](_0x4d985b,_0x2c8f21);}),v['merge'](this['_univerInstanceService'][_0x449d3c(0x3ae)](o[_0x449d3c(0x23f)]['UNIVER_SHEET']),this[_0x449d3c(0x17c)][_0x449d3c(0x3ae)](o['UniverInstanceType'][_0x449d3c(0x237)]))[_0x449d3c(0x23e)](v[_0x449d3c(0xc7)](this['dispose$']))['subscribe'](_0x17ebd4=>{const _0xf0ffea=_0x449d3c,_0x3bc1b9=_0x17ebd4[_0xf0ffea(0x29c)](),_0x1aaf75=this[_0xf0ffea(0x23d)][_0xf0ffea(0x84)](_0x3bc1b9);_0x1aaf75&&(_0x1aaf75[_0xf0ffea(0x147)](),this[_0xf0ffea(0x23d)][_0xf0ffea(0x1af)](_0x3bc1b9));});}async[_0x3022d6(0x2fd)](_0x41f989,_0x4fea51){const _0x4cddd4=_0x3022d6,_0x3e99df=await this[_0x4cddd4(0x3e2)][_0x4cddd4(0x3b2)](_0x41f989),_0x24a5ec=this[_0x4cddd4(0x123)][_0x4cddd4(0x89)](this[_0x4cddd4(0x352)](_0x4fea51),_0x41f989,_0x4fea51,_0x3e99df);return await _0x24a5ec['init'](),this[_0x4cddd4(0x242)][_0x4cddd4(0x116)](_0x24a5ec),_0x24a5ec;}[_0x3022d6(0x352)](_0x43312c){const _0x2d8253=_0x3022d6;switch(_0x43312c){case j['UNIVER_DOC']:return Ne;case j[_0x2d8253(0x2c0)]:return exports[_0x2d8253(0x3e4)];default:throw new Error(_0x2d8253(0x3a6)+_0x43312c);}}},exports['CollaborationController']=Ee([o['OnLifecycle'](o[_0x3022d6(0x32a)][_0x3022d6(0xd4)],exports[_0x3022d6(0x431)]),I(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x1,o[_0x3022d6(0x291)](exports['CollaborationSessionService'])),I(0x2,o[_0x3022d6(0xb8)])],exports[_0x3022d6(0x431)]);let fe=class extends o[_0x3022d6(0x460)]{constructor(_0x2fcf48,_0x36c9ba,_0x2ae391,_0x53e4c4,_0x3752b5,_0x11476b,_0x10fdc6,_0xb585cf,_0xc73805,_0x4722a6,_0xaac408,_0x4850a6,_0xb9699b){const _0x219175=_0x3022d6;super(),u(this,_0x219175(0x439),new v[(_0x219175(0x141))](null)),u(this,_0x219175(0x43b),this[_0x219175(0x439)][_0x219175(0x295)]()),u(this,_0x219175(0x2d5)),u(this,_0x219175(0x39a),!0x1),u(this,_0x219175(0x358),this[_0x219175(0x43b)]['pipe'](E[_0x219175(0x317)](_0x211726=>_0x211726?_0x211726[_0x219175(0x15b)]:D[_0x219175(0x316)]),E[_0x219175(0x3af)](0x1))),u(this,_0x219175(0x42f),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x219175(0x367)]=_0x2fcf48,this['_type']=_0x36c9ba,this[_0x219175(0x1b0)]=_0x2ae391,this[_0x219175(0x123)]=_0x53e4c4,this[_0x219175(0x3ea)]=_0x3752b5,this[_0x219175(0x238)]=_0x11476b,this[_0x219175(0x3b1)]=_0x10fdc6,this[_0x219175(0x254)]=_0xb585cf,this[_0x219175(0x38b)]=_0xc73805,this[_0x219175(0x467)]=_0x4722a6,this[_0x219175(0x38e)]=_0xaac408,this[_0x219175(0x3a2)]=_0x4850a6,this[_0x219175(0x15a)]=_0xb9699b);}get[_0x3022d6(0x3bb)](){return this['_state'];}async['init'](){const _0x1ebd90=_0x3022d6;if(this[_0x1ebd90(0x3bb)])throw new Error(_0x1ebd90(0x312));await this['_init']();}['pauseCollaboration'](){const _0x2b79cb=_0x3022d6;return this[_0x2b79cb(0x39a)]=!0x0,o[_0x2b79cb(0x24c)](()=>{const _0x404824=_0x2b79cb;this[_0x404824(0x39a)]=!0x1,this[_0x404824(0x3cd)]();});}[_0x3022d6(0xfe)](_0x4523e6){const _0x2ce5da=_0x3022d6;this[_0x2ce5da(0x2d5)]=_0x4523e6,this[_0x2ce5da(0x439)][_0x2ce5da(0x116)](_0x4523e6);}async['_init'](){const _0x43f2da=_0x3022d6;var _0x5af108;return this[_0x43f2da(0xfe)](await this[_0x43f2da(0x344)]()),this['_singleActiveUnitService']&&((_0x5af108=this[_0x43f2da(0x15a)])==null||_0x5af108[_0x43f2da(0x313)](this[_0x43f2da(0x367)]),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x15a)][_0x43f2da(0x32e)](this['unitID'])[_0x43f2da(0x265)](_0x44c433=>{const _0x10b895=_0x43f2da;this['_logService'][_0x10b895(0xf9)](_0x10b895(0x3dc),_0x10b895(0x429),_0x44c433),_0x44c433===Ct[_0x10b895(0x2e1)]?(this[_0x10b895(0x38e)]['show']({'content':this[_0x10b895(0x3b1)]['t'](_0x10b895(0x1e6)),'type':Q[_0x10b895(0x1e5)]['Warning']}),this[_0x10b895(0x3a2)][_0x10b895(0x27f)](new p[(_0x10b895(0x32f))](this[_0x10b895(0x367)])['id'],!0x1)):this[_0x10b895(0x3a2)]['updatePermissionPoint'](new p[(_0x10b895(0x32f))](this[_0x10b895(0x367)])['id'],!0x0);})))),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x1b0)][_0x43f2da(0x370)][_0x43f2da(0x265)](_0x4ed6b5=>{const _0x542ab1=_0x43f2da;_0x4ed6b5===G[_0x542ab1(0x194)]?this[_0x542ab1(0x30a)]():_0x4ed6b5===G['OFFLINE']&&this[_0x542ab1(0x20b)]();}))),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x1b0)][_0x43f2da(0x144)][_0x43f2da(0x265)](_0x1d72de=>{const _0x155acd=_0x43f2da;try{switch(_0x1d72de['eventID']){case _[_0x155acd(0x26c)][_0x155acd(0x310)]:{this[_0x155acd(0x381)](_['parseProtocolChangeset'](_0x1d72de[_0x155acd(0x2be)]));break;}case _[_0x155acd(0x26c)][_0x155acd(0x420)]:{this['_onRemoteACK'](_0x1d72de['data']);break;}case _[_0x155acd(0x26c)][_0x155acd(0x459)]:{this[_0x155acd(0x3e7)]();break;}case _[_0x155acd(0x26c)][_0x155acd(0x127)]:{this[_0x155acd(0x88)](_0x1d72de['data'][_0x155acd(0x183)][_0x155acd(0x317)](_0x393630=>_[_0x155acd(0xe6)](_0x393630)));break;}case _['CollaborationEvent'][_0x155acd(0x12a)]:this[_0x155acd(0x3e7)]({'isPermissionRej':!0x0});}}catch(_0x1a9945){throw console[_0x155acd(0x404)](_0x155acd(0x44a),_0x1a9945),_0x1a9945;}}))),this[_0x43f2da(0x2d5)];}[_0x3022d6(0x2bc)](){const _0x176e7b=_0x3022d6;this[_0x176e7b(0x42f)]=!0x1;}[_0x3022d6(0xec)](){const _0x301c7e=_0x3022d6;if(this[_0x301c7e(0x42f)])throw new Error(_0x301c7e(0x29f));this[_0x301c7e(0x42f)]=!0x0;}[_0x3022d6(0xa4)](_0x4c66c3){const _0x4dcb5b=_0x3022d6;this[_0x4dcb5b(0xec)](),this[_0x4dcb5b(0xfe)](this[_0x4dcb5b(0x2d5)][_0x4dcb5b(0x39c)](_0x4c66c3)),this[_0x4dcb5b(0x2bc)]();}['_onRemoteChangeset'](_0x3ee877){const _0x2829a5=_0x3022d6;if(!(_0x3ee877[_0x2829a5(0x33d)]<=this[_0x2829a5(0x254)][_0x2829a5(0x33a)](this['unitID']))){if(this[_0x2829a5(0x39a)]){this[_0x2829a5(0xa1)][_0x2829a5(0x42d)](_0x3ee877);return;}this[_0x2829a5(0xd5)](_0x3ee877);}}['_exhaustRemoteChangesetQueue'](){const _0x3731a0=_0x3022d6;this[_0x3731a0(0xa1)][_0x3731a0(0x3d3)](_0x239ddf=>this['_applyRemoteChangeset'](_0x239ddf)),this[_0x3731a0(0xa1)]=[];}[_0x3022d6(0xd5)](_0x4f01ec){const _0x241cc6=_0x3022d6,_0x2c2a37=this['_compressMutationService'][_0x241cc6(0x161)][_0x241cc6(0x3d2)](this['_compressMutationService'][_0x241cc6(0x161)][_0x241cc6(0x35a)]()['COMPRESS_MUTATION_APPLY'])(_0x4f01ec['mutations'],null)||_0x4f01ec['mutations'],_0x5b6ce1={..._0x4f01ec,'mutations':_0x2c2a37};this[_0x241cc6(0xec)](),this[_0x241cc6(0xfe)](this['_state'][_0x241cc6(0x138)](_0x5b6ce1)),this[_0x241cc6(0x2bc)]();}['_onRemoteACK'](_0x538748){const _0x45594f=_0x3022d6;this[_0x45594f(0xec)](),this[_0x45594f(0xfe)](this['_state'][_0x45594f(0xc1)](_0x538748)),this[_0x45594f(0x2bc)]();}[_0x3022d6(0x3e7)](_0x30432c){const _0x297d39=_0x3022d6;this[_0x297d39(0xec)](),this[_0x297d39(0xfe)](this[_0x297d39(0x2d5)]['onRemoteRej'](_0x30432c)),this[_0x297d39(0x2bc)]();}[_0x3022d6(0x88)](_0x432633){const _0x473506=_0x3022d6;if(!(this['_state']instanceof H))throw new TypeError(_0x473506(0x1fb));const _0x56b3a8=_0x432633[_0x473506(0x317)](_0x40751a=>{const _0x4d9300=_0x473506,_0x2ba300=this['_compressMutationService'][_0x4d9300(0x161)][_0x4d9300(0x3d2)](this[_0x4d9300(0x238)][_0x4d9300(0x161)]['getInterceptPoints']()[_0x4d9300(0x9f)])(_0x40751a[_0x4d9300(0x2a5)],null)||_0x40751a[_0x4d9300(0x2a5)];return{..._0x40751a,'mutations':_0x2ba300};});this[_0x473506(0xec)](),this[_0x473506(0xfe)](this[_0x473506(0x2d5)][_0x473506(0x31e)](_0x56b3a8)),this['_unlockTransition']();}[_0x3022d6(0x20b)](){const _0x14a7ea=_0x3022d6;this['_lockTransition'](),this[_0x14a7ea(0xfe)](this[_0x14a7ea(0x2d5)][_0x14a7ea(0x2b5)]()),this[_0x14a7ea(0x2bc)]();}[_0x3022d6(0x30a)](){const _0x542acb=_0x3022d6;this[_0x542acb(0xec)](),this[_0x542acb(0xfe)](this[_0x542acb(0x2d5)][_0x542acb(0xbf)]()),this['_unlockTransition']();}async[_0x3022d6(0x344)](){return new Promise(_0x421371=>{const _0x595c85=_0xbc10;this[_0x595c85(0x1b0)]['sessionStatus$']['pipe'](E[_0x595c85(0x2e9)](0x1))['subscribe'](async _0x4594c6=>{const _0xa18a84=_0x595c85;_0x421371(await this['_createInitialStateImpl'](_0x4594c6===G[_0xa18a84(0x194)]));});});}['_createHandler'](){const _0x1d17a6=this['unitID'];return{'onStateChange':(_0x40fd66,_0x35632b)=>{const _0x44df82=_0xbc10;if(_0x40fd66!==this[_0x44df82(0x2d5)])throw new Error(_0x44df82(0x412)+_0x40fd66[_0x44df82(0x15b)]+'\x0aAfter:\x20'+_0x35632b[_0x44df82(0x15b)]+_0x44df82(0x3cb)+this[_0x44df82(0x2d5)][_0x44df82(0x15b)]);this[_0x44df82(0xfe)](_0x35632b);},'onSendChangeset':_0x1c2eb6=>{const _0x4b5d49=_0xbc10,_0x4c3faa={'eventID':_[_0x4b5d49(0x26c)][_0x4b5d49(0x37d)],'data':{'unitID':_0x1c2eb6[_0x4b5d49(0x367)],'unitType':this['_type'],'changeset':_0x1c2eb6,'memberID':this[_0x4b5d49(0x1b0)][_0x4b5d49(0x3f2)]()}};this[_0x4b5d49(0x1b0)]['send'](_0x4c3faa,this['unitID']);},'onMissingChangesets':({from:_0x175b10,to:_0x18ee4f})=>{const _0x22280b=_0xbc10;this[_0x22280b(0x38b)]['debug']('[CollaborationEntity]',_0x22280b(0x26d)+_0x175b10+_0x22280b(0xc6)+_0x18ee4f);const _0x465f5b={'eventID':_[_0x22280b(0x26c)][_0x22280b(0x44f)],'data':{'unitID':_0x1d17a6,'unitType':this[_0x22280b(0x18a)],'from':_0x175b10,'to':_0x18ee4f}};this['_session'][_0x22280b(0x362)](_0x465f5b,this[_0x22280b(0x367)]);}};}async['_createInitialStateImpl'](_0x4f1e1c){const _0x4fd687=_0x3022d6;var _0x3cfc1d,_0x2f86c1;const _0x53ab13=await this[_0x4fd687(0x3ea)][_0x4fd687(0x3b8)](this[_0x4fd687(0x367)]),_0x1a5d2d=(_0x3cfc1d=_0x53ab13==null?void 0x0:_0x53ab13[_0x4fd687(0x2a5)])!=null?_0x3cfc1d:[],_0x24c06e=(_0x2f86c1=_0x53ab13==null?void 0x0:_0x53ab13[_0x4fd687(0xca)])!=null?_0x2f86c1:null,_0x58ebfc=this[_0x4fd687(0x367)];try{this[_0x4fd687(0x243)](_0x24c06e,_0x1a5d2d);}catch(_0x184ad5){this[_0x4fd687(0x38b)][_0x4fd687(0x404)](_0x184ad5);}const _0x5aaee9=this['_createHandler']();if(_0x4f1e1c){const _0x2a1169=Tt(this[_0x4fd687(0x123)],_0x58ebfc,this[_0x4fd687(0x18a)],_0x24c06e,_0x1a5d2d,_0x5aaee9);return _0x2a1169 instanceof $?_0x2a1169[_0x4fd687(0x455)]():(_0x2a1169 instanceof x||_0x2a1169 instanceof k)&&_0x2a1169[_0x4fd687(0x40f)](),_0x2a1169;}return this[_0x4fd687(0x123)]['createInstance'](V,_0x58ebfc,this[_0x4fd687(0x18a)],_0x24c06e,_0x1a5d2d,_0x5aaee9);}[_0x3022d6(0x243)](_0x47d26e,_0x2e7385){const _0x53e60f=_0x3022d6;var _0x3f77fb,_0x7bfbbc;const _0x5f01cf=this[_0x53e60f(0x238)][_0x53e60f(0x161)][_0x53e60f(0x3d2)](this[_0x53e60f(0x238)]['interceptor'][_0x53e60f(0x35a)]()['COMPRESS_MUTATION_APPLY']);(_0x3f77fb=_0x5f01cf((_0x47d26e==null?void 0x0:_0x47d26e[_0x53e60f(0x2a5)])||[],null))==null||_0x3f77fb[_0x53e60f(0x3d3)](_0x4052a5=>this[_0x53e60f(0x467)][_0x53e60f(0x2a3)](_0x4052a5['id'],_0x4052a5[_0x53e60f(0xd7)])),(_0x7bfbbc=_0x5f01cf(_0x2e7385||[],null))==null||_0x7bfbbc['forEach'](_0x4465d1=>this[_0x53e60f(0x467)][_0x53e60f(0x2a3)](_0x4465d1['id'],_0x4465d1[_0x53e60f(0xd7)]));}};fe=Ee([I(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x4,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),I(0x5,o['Inject'](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),I(0x7,o['Inject'](_['RevisionService'])),I(0x8,o[_0x3022d6(0x22f)]),I(0x9,o['ICommandService']),I(0xa,L[_0x3022d6(0xaf)]),I(0xb,o[_0x3022d6(0x346)]),I(0xc,o[_0x3022d6(0x37a)](pe))],fe);let Ne=class extends fe{constructor(_0xeb18b9,_0x3c5401,_0x2f06fa,_0x5b1f2c,_0x5d1b2b,_0x5b4b3d,_0x508807,_0x2f40f6,_0x3d5994,_0x594176,_0x5d61c8,_0xedf129,_0x211053,_0x28e66c,_0x15bcb7,_0x51abe7,_0x336df5){const _0x22baa7=_0x3022d6;super(_0xeb18b9,_0x3c5401,_0x2f06fa,_0x5b1f2c,_0x5d1b2b,_0x5b4b3d,_0x508807,_0x2f40f6,_0x211053,_0x28e66c,_0x15bcb7,_0x51abe7,_0x336df5),this[_0x22baa7(0x367)]=_0xeb18b9,this['type']=_0x3c5401,this[_0x22baa7(0x31b)]=_0x2f06fa,this[_0x22baa7(0xce)]=_0x3d5994,this[_0x22baa7(0x3c0)]=_0x594176,this['_docTransformSelectionsService']=_0x5d61c8,this[_0x22baa7(0x296)]=_0xedf129;}[_0x3022d6(0xfa)](){const _0x5a9065=_0x3022d6,_0x38173f=super[_0x5a9065(0xfa)]();return _0x38173f[_0x5a9065(0x440)]=_0x2d216c=>this['_docTransformIMECacheService'][_0x5a9065(0x377)](_0x2d216c),_0x38173f[_0x5a9065(0x118)]=_0x3dc004=>this[_0x5a9065(0x2af)]['transformSelections'](_0x3dc004),_0x38173f[_0x5a9065(0x1b2)]=_0x447116=>this[_0x5a9065(0x296)]['syncEditingCollabCursor'](_0x447116),_0x38173f['onTransformRemoteChangesetByIMECache']=_0x54ff5e=>this[_0x5a9065(0x3c0)][_0x5a9065(0x364)](_0x54ff5e),_0x38173f;}async[_0x3022d6(0x11b)](){const _0x175d40=_0x3022d6,_0x4e8d67=await super[_0x175d40(0x11b)]();return this[_0x175d40(0x14a)](this[_0x175d40(0x467)]['onCommandExecuted']((_0xfe5c4e,_0x101370)=>{const _0x96331=_0x175d40;if(_0xfe5c4e[_0x96331(0x1f3)]!==o[_0x96331(0x2c5)][_0x96331(0x146)]||_0x101370!=null&&_0x101370[_0x96331(0x424)]||_0x101370!=null&&_0x101370[_0x96331(0x38a)])return;const _0x3479e3=_0xfe5c4e[_0x96331(0xd7)];if((_0x3479e3==null?void 0x0:_0x3479e3['unitId'])!==this[_0x96331(0x367)])return;let _0x1e1bde=_0xfe5c4e;if(_0x1e1bde['id']===P[_0x96331(0x365)]['id']){const _0x319844=_0x1e1bde[_0x96331(0xd7)];_0x1e1bde={'id':P[_0x96331(0x365)]['id'],'type':o[_0x96331(0x2c5)][_0x96331(0x146)],'params':{'unitId':_0x319844['unitId'],'actions':_0x319844[_0x96331(0x2d6)],'textRanges':null}};}const _0x3bb770=this[_0x96331(0x238)][_0x96331(0x161)][_0x96331(0x3d2)](this[_0x96331(0x238)][_0x96331(0x161)][_0x96331(0x35a)]()[_0x96331(0x30b)])([_0x1e1bde],null)||[_0x1e1bde];this['_onLocalMutation'](_0x3bb770[0x0]);})),_0x4e8d67;}};Ne=Ee([I(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x4,o['Inject'](exports[_0x3022d6(0x174)])),I(0x5,o[_0x3022d6(0x291)](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o['LocaleService'])),I(0x7,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),I(0x8,o[_0x3022d6(0x291)](P[_0x3022d6(0x287)])),I(0x9,o[_0x3022d6(0x291)](ve)),I(0xa,o[_0x3022d6(0x291)](me)),I(0xb,o['Inject'](We)),I(0xc,o[_0x3022d6(0x22f)]),I(0xd,o['ICommandService']),I(0xe,L['IMessageService']),I(0xf,o[_0x3022d6(0x346)]),I(0x10,o[_0x3022d6(0x37a)](pe))],Ne),exports[_0x3022d6(0x3e4)]=class extends fe{constructor(_0x20a9e3,_0xe2094e,_0x394262,_0x3c3334,_0x1f805c,_0x219517,_0x1d8671,_0x235d34,_0x275878,_0x159fa1,_0x259978,_0x522688,_0x1a4ce0,_0x2338f3){const _0x22b2f6=_0x3022d6;super(_0x20a9e3,_0xe2094e,_0x394262,_0x3c3334,_0x1f805c,_0x219517,_0x1d8671,_0x235d34,_0x159fa1,_0x259978,_0x522688,_0x1a4ce0,_0x2338f3),this[_0x22b2f6(0x367)]=_0x20a9e3,this[_0x22b2f6(0x1f3)]=_0xe2094e,this[_0x22b2f6(0x31b)]=_0x394262,this[_0x22b2f6(0x44e)]=_0x275878;}[_0x3022d6(0xfa)](){const _0x22c396=_0x3022d6,_0x53d7a8=super[_0x22c396(0xfa)]();return _0x53d7a8[_0x22c396(0x118)]=_0x4b0ea9=>this[_0x22c396(0x44e)][_0x22c396(0xbd)](_0x4b0ea9),_0x53d7a8;}async[_0x3022d6(0x11b)](){const _0x161557=_0x3022d6,_0x9e3d2b=await super[_0x161557(0x11b)]();return this[_0x161557(0x14a)](this['_commandService'][_0x161557(0x2a1)]((_0x17ddd6,_0x29f65b)=>{const _0x176451=_0x161557;if(_0x17ddd6[_0x176451(0x1f3)]!==o['CommandType'][_0x176451(0x146)]||_0x29f65b!=null&&_0x29f65b[_0x176451(0x424)]||_0x29f65b!=null&&_0x29f65b[_0x176451(0x38a)])return;const _0x40204d=_0x17ddd6[_0x176451(0xd7)];if((_0x40204d==null?void 0x0:_0x40204d[_0x176451(0x347)])!==this[_0x176451(0x367)])return;const _0x2ff0dc=_0x17ddd6,_0xb90525=this[_0x176451(0x238)][_0x176451(0x161)][_0x176451(0x3d2)](this['_compressMutationService'][_0x176451(0x161)][_0x176451(0x35a)]()[_0x176451(0x30b)])([_0x2ff0dc],null)||[_0x2ff0dc];this[_0x176451(0xa4)](_0xb90525[0x0]);})),_0x9e3d2b;}},exports[_0x3022d6(0x3e4)]=Ee([I(0x3,o[_0x3022d6(0x291)](o['Injector'])),I(0x4,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),I(0x5,o[_0x3022d6(0x291)](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),I(0x7,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),I(0x8,o[_0x3022d6(0x291)](ge)),I(0x9,o[_0x3022d6(0x22f)]),I(0xa,o[_0x3022d6(0x3e6)]),I(0xb,L[_0x3022d6(0xaf)]),I(0xc,o[_0x3022d6(0x346)]),I(0xd,o[_0x3022d6(0x37a)](pe))],exports[_0x3022d6(0x3e4)]);const st=[_0x3022d6(0x3bf),_0x3022d6(0x341),_0x3022d6(0x36c),_0x3022d6(0x3b6),_0x3022d6(0x321),_0x3022d6(0xb7)];class Fe extends o[_0x3022d6(0x1c9)]{constructor(){const _0x3f5e7b=_0x3022d6;super(...arguments),u(this,_0x3f5e7b(0x3dd),new Map()),u(this,_0x3f5e7b(0x13b),0x0);}['assignAColorForMemberID'](_0x16f695){const _0x1f0d29=_0x3022d6;if(this[_0x1f0d29(0x3dd)][_0x1f0d29(0x151)](_0x16f695))return this['_assignedColors'][_0x1f0d29(0x84)](_0x16f695);const _0x2c8883=st[this[_0x1f0d29(0x13b)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%st['length'],this[_0x1f0d29(0x3dd)][_0x1f0d29(0x182)](_0x16f695,_0x2c8883),_0x2c8883;}}var Ms=Object[_0x3022d6(0x131)],ys=Object['getOwnPropertyDescriptor'],Ns=(_0x4ce4cb,_0x5b10f1,_0x5d8f8d,_0x4fc7ed)=>{const _0x21fc65=_0x3022d6;for(var _0x16b2df=_0x4fc7ed>0x1?void 0x0:_0x4fc7ed?ys(_0x5b10f1,_0x5d8f8d):_0x5b10f1,_0x491ca1=_0x4ce4cb[_0x21fc65(0x2ce)]-0x1,_0x3b3ffd;_0x491ca1>=0x0;_0x491ca1--)(_0x3b3ffd=_0x4ce4cb[_0x491ca1])&&(_0x16b2df=(_0x4fc7ed?_0x3b3ffd(_0x5b10f1,_0x5d8f8d,_0x16b2df):_0x3b3ffd(_0x16b2df))||_0x16b2df);return _0x4fc7ed&&_0x16b2df&&Ms(_0x5b10f1,_0x5d8f8d,_0x16b2df),_0x16b2df;},q=(_0x534e98,_0x4bd84d)=>(_0x127c99,_0x5337fc)=>_0x4bd84d(_0x127c99,_0x5337fc,_0x534e98);const Ls=0x12c,As=0x64,js=()=>{let _0x1e0ac6=[],_0x4c0342=!0x1;return _0x3a1542=>{_0x1e0ac6['push'](_0x3a1542),_0x4c0342||(_0x4c0342=!0x0,setTimeout(()=>{const _0x5b430c=_0xbc10;_0x1e0ac6[_0x5b430c(0x3d3)](_0x59f2d3=>_0x59f2d3()),_0x1e0ac6=[],_0x4c0342=!0x1;}));};};let Le=class extends o[_0x3022d6(0x460)]{constructor(_0x3d2681,_0x147c26,_0x31fe81,_0x5ab6c4,_0x22b641,_0x35ea40,_0x4a875f,_0x575d2c){const _0x23190b=_0x3022d6;super(),u(this,_0x23190b(0xa7),!0x1),u(this,_0x23190b(0x11b),!0x1),u(this,_0x23190b(0x130),new v[(_0x23190b(0x141))](new Map())),u(this,_0x23190b(0x210),this['_cursorInfo$'][_0x23190b(0x295)]()),u(this,_0x23190b(0x3fa),new v[(_0x23190b(0x141))]([])),u(this,_0x23190b(0xf3),this[_0x23190b(0x3fa)][_0x23190b(0x23e)](v[_0x23190b(0x280)](Ls))),u(this,_0x23190b(0x1f1),xe((_0x387b75,_0x8e0f08)=>{const _0x292851=_0x23190b,_0x158d4d={'eventID':_['CollaborationEvent'][_0x292851(0x426)],'data':{'unitID':this['unitID'],'memberID':this[_0x292851(0x1b0)]['getMemberID'](),'selection':Ke[_0x292851(0x1c1)](_0x387b75,_0x8e0f08[_0x292851(0x271)])}};this['_session'][_0x292851(0x362)](_0x158d4d,this[_0x292851(0x367)]);},As)),(this[_0x23190b(0x367)]=_0x3d2681,this[_0x23190b(0x1b0)]=_0x147c26,this[_0x23190b(0x123)]=_0x31fe81,this[_0x23190b(0x26b)]=_0x5ab6c4,this[_0x23190b(0x16b)]=_0x22b641,this[_0x23190b(0x17c)]=_0x35ea40,this[_0x23190b(0x467)]=_0x4a875f,this['_refRangeService']=_0x575d2c);}get['cursorInfo'](){const _0x585e9c=_0x3022d6;return this[_0x585e9c(0x130)]['getValue']();}get[_0x3022d6(0x240)](){const _0x1475da=_0x3022d6;return this[_0x1475da(0x3fa)][_0x1475da(0x386)]();}['dispose'](){const _0x347ccf=_0x3022d6;super[_0x347ccf(0x147)](),this[_0x347ccf(0x130)]['next'](new Map()),this['_cursorInfo$'][_0x347ccf(0x19e)](),this[_0x347ccf(0x3fa)][_0x347ccf(0x116)]([]),this['_roomMembers$'][_0x347ccf(0x19e)]();}[_0x3022d6(0x388)](){const _0x5780d6=_0x3022d6;this[_0x5780d6(0x11b)]||(this[_0x5780d6(0x11b)]=!0x0,this[_0x5780d6(0x1b0)]['sessionStatus$'][_0x5780d6(0x23e)](v['takeUntil'](this[_0x5780d6(0x374)]))[_0x5780d6(0x265)](_0x1f8f9f=>{const _0x149056=_0x5780d6;_0x1f8f9f===G[_0x149056(0x194)]?this[_0x149056(0x30a)]():this[_0x149056(0x20b)]();}),this['_session']['event$'][_0x5780d6(0x23e)](v['takeUntil'](this['dispose$']))[_0x5780d6(0x265)](_0x269997=>{const _0x55fa8d=_0x5780d6,_0x9f1c9f=_0x269997[_0x55fa8d(0x31c)];_0x9f1c9f===_[_0x55fa8d(0x26c)]['UPDATE_CURSOR']&&this[_0x55fa8d(0xab)](_0x269997),_0x9f1c9f===_['CollaborationEvent'][_0x55fa8d(0x1b6)]&&this['_onCursorDelete'](_0x269997);}),this[_0x5780d6(0x3f9)](),this[_0x5780d6(0x14a)](this['_commandService']['onCommandExecuted'](_0x33ee35=>{const _0x56d2b4=_0x5780d6;if(this['_online']&&_0x33ee35['id']===p[_0x56d2b4(0x231)]['id']&&_0x33ee35[_0x56d2b4(0xd7)][_0x56d2b4(0x347)]===this['unitID']){const _0x130564=_0x33ee35['params'];this['_updateLocalCursor'](_0x130564[_0x56d2b4(0x3d1)],_0x130564[_0x56d2b4(0x2e7)][0x0]);}})));}['_onCursorUpdate'](_0x453cd2){const _0x15ff59=_0x3022d6;var _0x35e629,_0x3b6f85;const {memberID:_0xfe6f7f,selection:_0x352e4e}=_0x453cd2[_0x15ff59(0x2be)],{sheetName:_0xd96678,range:_0x2b5ebc}=Ke[_0x15ff59(0x1a8)](_0x352e4e),_0xe8b54={'name':(_0x3b6f85=(_0x35e629=this[_0x15ff59(0x16b)][_0x15ff59(0x18f)](this[_0x15ff59(0x367)],_0xfe6f7f))==null?void 0x0:_0x35e629[_0x15ff59(0x1fa)])!=null?_0x3b6f85:'Unknown\x20user','range':this[_0x15ff59(0x371)](_0xd96678,_0x2b5ebc),'sheetID':_0xd96678,'color':this['_colorAssignService'][_0x15ff59(0x288)](_0xfe6f7f),'selection':_0x352e4e},_0x4fd53d=this['cursorInfo'];_0x4fd53d[_0x15ff59(0x182)](_0xfe6f7f,_0xe8b54),this[_0x15ff59(0x130)][_0x15ff59(0x116)](_0x4fd53d);}[_0x3022d6(0x16e)](_0x5c0d55){const _0x216e3b=_0x3022d6,{memberID:_0xa15997}=_0x5c0d55[_0x216e3b(0x2be)],_0x1c9452=this[_0x216e3b(0x3ca)];_0x1c9452[_0x216e3b(0x1af)](_0xa15997),this[_0x216e3b(0x130)][_0x216e3b(0x116)](_0x1c9452);}[_0x3022d6(0x371)](_0x20aaa2,_0xb1ee8f){const _0x32a65c=_0x3022d6;var _0x10e095,_0x2c6407;const _0x2163a2=(_0x2c6407=(_0x10e095=this[_0x32a65c(0x17c)][_0x32a65c(0x95)](this[_0x32a65c(0x367)]))==null?void 0x0:_0x10e095['getSheetBySheetId'](_0x20aaa2))==null?void 0x0:_0x2c6407[_0x32a65c(0x34a)]();return(_0x2163a2==null?void 0x0:_0x2163a2[_0x32a65c(0x99)](_0x4c8cbd=>o['Rectangle']['contains'](_0x4c8cbd,_0xb1ee8f)))||_0xb1ee8f;}[_0x3022d6(0x3f9)](){const _0x50022e=_0x3022d6,_0x3ae3cf=new o['DisposableCollection'](),_0x58ad63=js(),_0x47dffb=()=>{const _0x2d729a=_0xbc10;_0x3ae3cf[_0x2d729a(0x147)]();const _0x588c79=(_0x171abd,_0x583f02,_0x3f5b57,_0xb3c34d)=>{const _0x7bafcc=_0x2d729a;let _0x529413=[];switch(_0x171abd['id']){case p['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x529413=p[_0x7bafcc(0x369)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['DeleteRangeMoveUpCommandId']:{_0x529413=p[_0x7bafcc(0x148)](_0x171abd,_0xb3c34d);break;}case p['EffectRefRangId'][_0x7bafcc(0x34e)]:{_0x529413=p[_0x7bafcc(0x1f0)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x2e3)]:{_0x529413=p[_0x7bafcc(0x432)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x1e8)]:{_0x529413=p[_0x7bafcc(0x16a)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0xe3)]:{_0x529413=p['handleInsertRow'](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x86)]:{_0x529413=p['handleMoveRange'](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['RemoveColCommandId']:{_0x529413=p[_0x7bafcc(0x323)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['RemoveRowCommandId']:{_0x529413=p[_0x7bafcc(0x442)](_0x171abd,_0xb3c34d);break;}}const _0x1eea94=p[_0x7bafcc(0xb6)](_0x529413,_0xb3c34d),_0x39bf5f=this[_0x7bafcc(0x3ca)][_0x7bafcc(0x84)](_0x583f02);if(_0x39bf5f&&_0x1eea94){const _0x3ed2d0={..._0x39bf5f,'range':_0x1eea94};this['cursorInfo'][_0x7bafcc(0x182)](_0x583f02,_0x3ed2d0),_0x58ad63(()=>{const _0x12bd55=_0x7bafcc,_0x34897d=this[_0x12bd55(0x286)][_0x12bd55(0x356)](_0x1eea94,_0x573923=>(_0x34897d[_0x12bd55(0x147)](),_0x588c79(_0x573923,_0x583f02,_0x3f5b57,_0x1eea94)));_0x3ae3cf[_0x12bd55(0xe1)](_0x34897d);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2d729a(0x3d3)]((_0x5d2e9c,_0x1b5031)=>{const _0x35ccf0=_0x2d729a,{range:_0x3897a8,sheetID:_0x208c31}=_0x5d2e9c,_0x5ee685=this[_0x35ccf0(0x286)]['registerRefRange'](_0x3897a8,_0x58b2fd=>(_0x5ee685[_0x35ccf0(0x147)](),_0x588c79(_0x58b2fd,_0x1b5031,_0x208c31,_0x3897a8)));_0x3ae3cf['add'](_0x5ee685);});};this[_0x50022e(0x14a)](o[_0x50022e(0x24c)](this[_0x50022e(0x130)]['subscribe'](()=>{_0x47dffb();})));}['_toggleOnline'](){const _0x2a960c=_0x3022d6;var _0x175a4b,_0x8198c6;if(this[_0x2a960c(0xa7)]=!0x0,((_0x175a4b=this['_univerInstanceService'][_0x2a960c(0x45c)]())==null?void 0x0:_0x175a4b[_0x2a960c(0x29c)]())!==this[_0x2a960c(0x367)])return;const _0x4909eb=(_0x8198c6=this[_0x2a960c(0x123)][_0x2a960c(0x84)](p[_0x2a960c(0x303)])[_0x2a960c(0xbe)]())==null?void 0x0:_0x8198c6[0x0],_0x59ade2=this[_0x2a960c(0x17c)]['getCurrentUnitForType'](o[_0x2a960c(0x23f)][_0x2a960c(0x2c0)])[_0x2a960c(0x34b)]();_0x4909eb&&_0x59ade2&&this[_0x2a960c(0x1f1)](_0x59ade2[_0x2a960c(0x3a8)](),_0x4909eb);}[_0x3022d6(0x20b)](){this['_online']=!0x1;}};Le=Ns([q(0x2,o['Inject'](o[_0x3022d6(0x448)])),q(0x3,o[_0x3022d6(0x291)](Fe)),q(0x4,o['Inject'](Y)),q(0x5,o[_0x3022d6(0xb8)]),q(0x6,o[_0x3022d6(0x3e6)]),q(0x7,o[_0x3022d6(0x291)](p['RefRangeService']))],Le);var $s=Object[_0x3022d6(0x131)],xs=Object[_0x3022d6(0x2b4)],Hs=(_0x482d3e,_0x3e2e4f,_0x9ccfe9,_0x31d24d)=>{const _0x1a63a0=_0x3022d6;for(var _0x2e68cc=_0x31d24d>0x1?void 0x0:_0x31d24d?xs(_0x3e2e4f,_0x9ccfe9):_0x3e2e4f,_0x4a462e=_0x482d3e[_0x1a63a0(0x2ce)]-0x1,_0x30c1e3;_0x4a462e>=0x0;_0x4a462e--)(_0x30c1e3=_0x482d3e[_0x4a462e])&&(_0x2e68cc=(_0x31d24d?_0x30c1e3(_0x3e2e4f,_0x9ccfe9,_0x2e68cc):_0x30c1e3(_0x2e68cc))||_0x2e68cc);return _0x31d24d&&_0x2e68cc&&$s(_0x3e2e4f,_0x9ccfe9,_0x2e68cc),_0x2e68cc;},F=(_0x27e7fe,_0x423bc3)=>(_0x37ba10,_0x349b52)=>_0x423bc3(_0x37ba10,_0x349b52,_0x27e7fe);const ks=0x12c,Bs=0x64;let Ae=class extends o[_0x3022d6(0x460)]{constructor(_0x499004,_0x398ecf,_0x323392,_0x38b5bf,_0x57cd51,_0x496d33,_0x17988b,_0x51f4f9,_0x3912e1){const _0x1e3861=_0x3022d6;super(),u(this,_0x1e3861(0xa7),!0x1),u(this,_0x1e3861(0x11b),!0x1),u(this,_0x1e3861(0x130),new v[(_0x1e3861(0x141))](new Map())),u(this,_0x1e3861(0x210),this[_0x1e3861(0x130)][_0x1e3861(0x295)]()),u(this,_0x1e3861(0x3fa),new v['BehaviorSubject']([])),u(this,_0x1e3861(0xf3),this[_0x1e3861(0x3fa)][_0x1e3861(0x23e)](v[_0x1e3861(0x280)](ks))),u(this,_0x1e3861(0x1f1),xe(_0x4ce576=>{const _0x2a4bfb=_0x1e3861,_0x18c8c7={'eventID':_[_0x2a4bfb(0x26c)][_0x2a4bfb(0x426)],'data':{'unitID':this[_0x2a4bfb(0x367)],'memberID':this['_session'][_0x2a4bfb(0x3f2)](),'selection':bt(_0x4ce576)}};this['_session'][_0x2a4bfb(0x362)](_0x18c8c7,this[_0x2a4bfb(0x367)]);},Bs)),(this[_0x1e3861(0x367)]=_0x499004,this[_0x1e3861(0x1b0)]=_0x398ecf,this[_0x1e3861(0x123)]=_0x323392,this[_0x1e3861(0x26b)]=_0x38b5bf,this[_0x1e3861(0x16b)]=_0x57cd51,this['_syncEditingCollabCursorService']=_0x496d33,this[_0x1e3861(0x223)]=_0x17988b,this['_univerInstanceService']=_0x51f4f9,this[_0x1e3861(0x467)]=_0x3912e1);}get[_0x3022d6(0x3ca)](){const _0x24b48a=_0x3022d6;return this['_cursorInfo$'][_0x24b48a(0x386)]();}get[_0x3022d6(0x240)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x1e9ddd=_0x3022d6;super[_0x1e9ddd(0x147)](),this['_cursorInfo$']['next'](new Map()),this[_0x1e9ddd(0x130)][_0x1e9ddd(0x19e)](),this[_0x1e9ddd(0x3fa)]['next']([]),this[_0x1e9ddd(0x3fa)]['complete']();}[_0x3022d6(0x388)](){const _0x26cd26=_0x3022d6;this[_0x26cd26(0x11b)]||(this[_0x26cd26(0x11b)]=!0x0,this['_session'][_0x26cd26(0x370)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this[_0x26cd26(0x374)]))[_0x26cd26(0x265)](_0x124102=>{const _0x1a23d1=_0x26cd26;_0x124102===G[_0x1a23d1(0x194)]?this[_0x1a23d1(0x30a)]():this[_0x1a23d1(0x20b)]();}),this['_session'][_0x26cd26(0x144)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this['dispose$']))[_0x26cd26(0x265)](_0x4828b7=>{const _0x5d016c=_0x26cd26,_0x15fa62=_0x4828b7[_0x5d016c(0x31c)];_0x15fa62===_[_0x5d016c(0x26c)][_0x5d016c(0x426)]&&this['_onCursorUpdate'](_0x4828b7),_0x15fa62===_[_0x5d016c(0x26c)][_0x5d016c(0x1b6)]&&this[_0x5d016c(0x16e)](_0x4828b7);}),this[_0x26cd26(0x14a)](this[_0x26cd26(0x467)]['onCommandExecuted'](_0x522bb2=>{const _0x3b33af=_0x26cd26,_0xd10c11=_0x522bb2[_0x3b33af(0xd7)];_0xd10c11!=null&&this[_0x3b33af(0xa7)]&&_0x522bb2['id']===P[_0x3b33af(0x447)]['id']&&_0xd10c11[_0x3b33af(0x347)]===this[_0x3b33af(0x367)]&&_0xd10c11[_0x3b33af(0x167)]===!0x1&&this[_0x3b33af(0x1f1)](_0xd10c11[_0x3b33af(0x41c)]);})),this[_0x26cd26(0x308)][_0x26cd26(0x3d9)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this['dispose$']))[_0x26cd26(0x265)](_0x5db2a2=>{const _0x4c6953=_0x26cd26;if((_0x5db2a2==null?void 0x0:_0x5db2a2[_0x4c6953(0x367)])!==this[_0x4c6953(0x367)])return;const _0x57ae1b={'eventID':_['CollaborationEvent'][_0x4c6953(0x426)],'data':_0x5db2a2};this[_0x4c6953(0xab)](_0x57ae1b);}),this[_0x26cd26(0x14a)](this[_0x26cd26(0x467)][_0x26cd26(0x2a1)](_0x5aae3b=>{const _0x1ebb07=_0x26cd26;if(_0x5aae3b['params']==null)return;const _0x5316f9=_0x5aae3b[_0x1ebb07(0xd7)];if(_0x5aae3b['id']!==P[_0x1ebb07(0x365)]['id']||_0x5316f9[_0x1ebb07(0x347)]!==this[_0x1ebb07(0x367)])return;const _0x318e39={'id':_0x1ebb07(0x290),'params':_0x5316f9},_0x125d4a=this[_0x1ebb07(0x3ca)];for(const [_0x1fecf6,_0x552a89]of _0x125d4a){const _0x2d9969={'id':_0x1ebb07(0x290),'params':{'unitId':this[_0x1ebb07(0x367)],'actions':null,'textRanges':_0x552a89['ranges']}},_0x5cb14d=this[_0x1ebb07(0x223)][_0x1ebb07(0x28e)](_0x318e39,_0x2d9969,!0x1);if(_['isTransformMutationFailure'](_0x5cb14d))throw _0x5cb14d['error'];_0x125d4a[_0x1ebb07(0x182)](_0x1fecf6,{..._0x552a89,'ranges':_0x5cb14d[_0x1ebb07(0x469)]['params'][_0x1ebb07(0x134)]});}queueMicrotask(()=>{const _0x28502b=_0x1ebb07;this['_cursorInfo$'][_0x28502b(0x116)](_0x125d4a);});})));}[_0x3022d6(0xab)](_0x3ce280){const _0x4ac320=_0x3022d6;var _0x4ac7a7,_0x949b3a;const {memberID:_0x1934ba,selection:_0x4ccae7}=_0x3ce280[_0x4ac320(0x2be)],_0x1aa938=Is(_0x4ccae7),_0x3e1a7f=(_0x949b3a=(_0x4ac7a7=this['_memberService'][_0x4ac320(0x18f)](this[_0x4ac320(0x367)],_0x1934ba))==null?void 0x0:_0x4ac7a7[_0x4ac320(0x1fa)])!=null?_0x949b3a:_0x4ac320(0x1f2),_0x3990bd={'color':this[_0x4ac320(0x26b)][_0x4ac320(0x288)](_0x1934ba),'name':_0x3e1a7f,'ranges':_0x1aa938},_0x42cb94=this['cursorInfo'];_0x42cb94[_0x4ac320(0x182)](_0x1934ba,_0x3990bd),this[_0x4ac320(0x130)]['next'](_0x42cb94);}[_0x3022d6(0x16e)](_0x2ee17b){const _0x550d23=_0x3022d6,{memberID:_0x5e6357}=_0x2ee17b['data'],_0x7c044b=this[_0x550d23(0x3ca)];_0x7c044b[_0x550d23(0x1af)](_0x5e6357),this[_0x550d23(0x130)]['next'](_0x7c044b);}[_0x3022d6(0x30a)](){const _0x542f6b=_0x3022d6;var _0x46bb76;if(this[_0x542f6b(0xa7)]=!0x0,((_0x46bb76=this[_0x542f6b(0x17c)][_0x542f6b(0x45c)]())==null?void 0x0:_0x46bb76['getUnitId']())!==this[_0x542f6b(0x367)])return;const _0x2fe22b=this[_0x542f6b(0x123)][_0x542f6b(0x84)](P[_0x542f6b(0x329)])['getDocRanges'](),_0x2e777e=_0x2fe22b==null?void 0x0:_0x2fe22b[_0x542f6b(0x317)](P[_0x542f6b(0x3f1)]);Array[_0x542f6b(0x3a1)](_0x2e777e)&&_0x2e777e['length']>0x0&&this['_updateLocalCursor'](_0x2e777e);}['_toggleOffline'](){const _0x40fa06=_0x3022d6;this[_0x40fa06(0xa7)]=!0x1;}};Ae=Hs([F(0x2,o[_0x3022d6(0x291)](o['Injector'])),F(0x3,o['Inject'](Fe)),F(0x4,o[_0x3022d6(0x291)](Y)),F(0x5,o[_0x3022d6(0x291)](We)),F(0x6,_['ITransformService']),F(0x7,o[_0x3022d6(0xb8)]),F(0x8,o['ICommandService'])],Ae);var Vs=Object[_0x3022d6(0x131)],Ws=Object[_0x3022d6(0x2b4)],Fs=(_0x5b7d38,_0x53f4ea,_0x43a881,_0x3da234)=>{const _0x2be400=_0x3022d6;for(var _0x2855ff=_0x3da234>0x1?void 0x0:_0x3da234?Ws(_0x53f4ea,_0x43a881):_0x53f4ea,_0x2c3e74=_0x5b7d38[_0x2be400(0x2ce)]-0x1,_0x5563ce;_0x2c3e74>=0x0;_0x2c3e74--)(_0x5563ce=_0x5b7d38[_0x2c3e74])&&(_0x2855ff=(_0x3da234?_0x5563ce(_0x53f4ea,_0x43a881,_0x2855ff):_0x5563ce(_0x2855ff))||_0x2855ff);return _0x3da234&&_0x2855ff&&Vs(_0x53f4ea,_0x43a881,_0x2855ff),_0x2855ff;},Re=(_0x164277,_0x5e90e3)=>(_0x4f9e0b,_0xe67962)=>_0x5e90e3(_0x4f9e0b,_0xe67962,_0x164277);function _0x1991(){const _0x20ed93=['rxjs','url','_clearUndo','_tryEnsureSocket','size','_isPermissionRej','svg','getSkeleton','length','isTransformChangesetsSuccess','onPointerMove$','_notificationService','xlink:href','top','allowed','_state','actions','isTransformMutationsWithChangesetFailure','_color','_snapshotService','_undoStacks','substring','mapTo','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_scheduleCollaborationTimeoutTimer','_localStorageService','LOCAL_CACHE_INTERVAL_KEY','OTHER_CLIENTS_EDITING','_getCurrentRevision','InsertRangeMoveDownCommandId','_socket$','exhaustSavingTask','_clearScheduledTask','selections','WebSocketService','take','restore','_onMessage','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_beforeCloseService','CollaborationSessionService','YUUMI_RATE_OVER_LIMIT','_themeService','_scene','originalMeta','lineTo','createIdentifier','_transformUndoRedoStack','getTypeOfUnitAdded$','trim','onMouseMove','target','includes','/-/object/list','UNDEFINED','_startCollaboration','syncEditingCollabCursor','FAIL','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','IAuthzIoService','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','SheetsSelectionsService','NodePositionConvertToCursor','_scheduleClearOtherTimer','sessionStatus','_snapshotServerService','_syncEditingCollabCursorService','RevisionService','_toggleOnline','COMPRESS_MUTATION_SEND','JSONX','_status$','setShapeProps','colorChannel1','NEW_CHANGESETS','isActive','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','editingUnit','ThemeService','@univerjs/core','OFFLINE','map','_sendHeartbeatTimer','AWAITING_WITH_PENDING','registerBeforeClose','session','eventID','@univerjs-pro/collaboration','onMissedChangesetFetched','setItem','_joinRoom','blue400','UNRECOGNIZED','handleIRemoveCol','univer-online-status-title','initWorkbookPermissionChange','_uiPartsService','patch','_unitID','TextSelectionManagerService','LifecycleStages','closePath','IHTTPImplementation','Ready','getUnitStatus$','WorkbookEditablePermission','UPDATE_PERMISSION_OBJ','Shape','_name','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_removeClearOtherTimer','replaceTextRanges','DataLoaderController','_initUnitPermissionChange','getRangePointData','[OfflineState]:\x20received\x20rejection.','getCurrentRevForDocument','YUUMI_UNABLE_LOAD_URL','univer-online','revision','_cursor','list','APPLY_REVISION_CONFILICT','jiqing500','rev','CollaborationSession','_createInitialState','joinEvent','IPermissionService','unitId','&to=','UNKNOWN_CMD','getMergeData','getActiveSheet','/universer-api/authz','_updateLocalCache','InsertColCommandId','ImageUploadStatusType','_roomMembers','SNAPSHOT_SERVER_URL_KEY','_getCtorByUniverType','hasOwnProperty','_getAnchorBounding','HttpExport','registerRefRange','Undefined','status$','[CollaborationSessionService]','getInterceptPoints','whenReady','propertyIsEnumerable','onPointerLeave$','_selfUnitIDs','getVpScrollXYInfoByPosToVp','_startDocCollabCursor','idSuffix','send','BASE64','transformRemoteChangeset','RichTextEditingMutation','connection\x20error','unitID','Steady','handleDeleteRangeMoveLeft','isTransformMutationFailure','registerRenderModule','verdancy600','startColumn','_replaceFileID','memberID','sessionStatus$','_getMergeRange','routeKey','/object/','dispose$','transformMutationsWithChangeset','univer-pro.collaboration-client.single-active-unit-service','transformIMECache','_labelPosition','defIds','Optional','update','prototype','SUBMIT_CHANGESET','HTTPService','headers','UNIVER_UNKNOWN','_onRemoteChangeset','DocSkeletonManagerService','string','MSG_FOR_ERROR','encode','getValue','_retryConnectingTimer','init','[SyncedState]:\x20received\x20rejection.','onlyLocal','_logService','fillText','_socket','_messageService','DependentOn','IRemoteInstanceService','_setupSubUnitSync','transformUndoRedo','SnapshotService','_commentUpdate$','transformByState','_HTTPService','collaboration-client.offline-data-not-saved','_clearTimeoutTimer','SheetSkeletonManagerService','_collaborationPaused','makeDirty','appendMutation','onlineStatusTitle','m1Prime','from','conflict','isArray','_permissionService','objectType','/universer-api/file/{fileID}/sign-url','getImage','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','selection','getSheetId','LIVESHARE_TERMINATE','searchParams','replace','all','_incrementRevisionNumber','getTypeOfUnitDisposed$','shareReplay','CollaborationSocketService','_localeService','requireSession','offline','_registerDependencies','/unit/','red300','RETRY_CONNECTING_INTERVAL','loadOfflineData','saveSnapshot','setTimeout','state','loadSheet','getDocRanges','IConfigService','purple300','_docTransformIMECacheService','_syncEditingCollabCursor','COLLAB_SUBMIT_CHANGESET_URL_KEY','_socketMessageSubscription','mapDocumentTypeToUniverType','result','c1Prime','/universer-api/oidc/authpage','0\x200\x2016\x2016','_handleHeartbeatEvent','cursorInfo','\x0aCurrent:\x20','text','_exhaustRemoteChangesetQueue','_handler','_scheduleTimestamp','put','subUnitId','fetchThroughInterceptors','forEach','color','InsertSheetMutation','newValue','off-line-single_clip0_910_343','random','collabCursorState$','APPLY_NON_SEQUENTIAL_REVISION','IBeforeCloseService','[CollaborationEntity]','_assignedColors','_transformIMECache','COLLAB_WEB_SOCKET_URL','_draw','encodeURIComponent','_collabSessionService','_awaitingChangeset','SheetCollaborationEntity','fromEventSubject','ICommandService','_onRemoteRejected','NOT_FOUND','_disableEditing','_localCacheService','delay','unshift','8dGgQhj','url(#$1','OnLifecycle','awaiting_with_pending','serializeDocRange','getMemberID','resourceIDs','ImageSourceType','onSendChangeset','[OfflineState]:\x20received\x20changeset.','NO_OTHER_CLIENTS_EDITING','EmptyMutation','_onRefRangeChange','_roomMembers$','HttpImport','_cursorShapes','fetchMissingChangesets','Vector2','_getRedoStack','_members','round','collaborators','UniverIcon','error','_handleHover','_eventUnsubscribe','roles','objectID','activeSheet$','newCsEvent','message$','RECV','path','off-line-single','resend','/collaborator','on-line-single','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNIVER_PROJECT','_urlService','_executeRemoteChangeset','getCoordByCell','@univerjs/docs','Tools','concat','c2Prime','sheetId','ranges','_showConflictNotification','getUndoRedoMutationParamsCache','[OfflineState]:\x20received\x20acknowledgement.','CHANGESET_ACK','defs','call','_unitOnClients','fromCollab','useRef','UPDATE_CURSOR','_startSheetCollabCursor','SNAPSHOT_HAS_BEEN_REMOVED','editing\x20status\x20changed\x20to','_heartbeatTimer','measureText','_undoRedoService','push','FileId','_transitionLocked','4835vlFzud','CollaborationController','handleInsertRangeMoveDown','_getSnapshotAPIPrefix','title','onStarting','children','conflict.title','_submitChangeset','_state$','on-line-single_clip0_910_349','state$','sheetID','\x20in\x20_schedule.','LocaleService','fill','onTransformIME','unitId\x20is\x20not\x20found','handleIRemoveRow','_saveCache','_getAPIPrefix','SEND_CHANGESET_TIMEOUT','_waitCount','SetTextSelectionsOperation','Injector','UnitEmbedded','Error\x20on\x20receiving\x20event','currentSkeleton$','_disabled','subunit','_sheetTransformSelectionsService','FETCH_MISSING','awaiting','RETRY_CONNECTING_MAX_COUNT','_retryCount','@univerjs/drawing','/new_changes','_schedule','transform','_lastPointer','/universer-api/comb','CHANGESET_REJ','connectInjector','commentUpdate$','getFocusedUnit','post','none','/universer-api/snapshot','RxDisposable','[PendingState]:\x20unhandled\x20univer\x20type:\x20','HEARTBEAT','NOT_COLLAB','IMEInputManagerService','registerOnClose','ALREADY_EXISTS','_commandService','collaboration.closeRoom','m2Prime','getActiveRange','createElement','clsx','_getSheetObject','_removeCollabCursors','userID','backgroundColor','SHOULD_CLOSE_CONN','get','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MoveRangeCommandId','_config','_onFetchMissResult','createInstance','_imageSourceCache','@univerjs/design','responseType','_clearLocalCache','entries','lodash/debounce','_transformPreviousActiveRange','LICENSE_MAX_UNITS_EXCEEDED','save\x20fail\x20reason\x20is\x20','_onJoinRoomEvent','_hideTimer','getUniverSheetInstance','VIEWPORT_KEY','_removeRoom','skeleton','find','registerComponent','getResourcesRequest','assign','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','registerHTTPInterceptor','COMPRESS_MUTATION_APPLY','_initMergeInterceptor','_remoteChangesetQueue','session.room-full','8460fIjMFL','_onLocalMutation','HEARTBEAT_TIMEOUT_KEY','IContextService','_online','_clearOtherTimers','objects','IURLService','_onCursorUpdate','_sessions','setParam','_timeoutTimer','IMessageService','reduce','div','_collaborationTimeoutTimer','collabStatus.fetchMiss','getSheetBySheetId','permission.content','runRefRangeMutations','gold400','IUniverInstanceService','black','INTERNAL_ERROR','updateOfflineData','_scheduleReconnection','transformSelections','getCurrentSelections','toggleOnline','AuthzIoHttpService','onRemoteAck','_acknowledgedAwaitingChangeset','submit\x20changeset\x20error!','currentColor','merge','\x20to\x20','takeUntil','socketService','b64DecodeUnicode','awaitingChangeset','210889TPjnCz','localeService','clearInterval','_docStateChangeManagerService','SNAPSHOT_URL_KEY','APPLY_PERMISSION_DENIED','HEADER_MENU','_drawRectRange','LIVESHARE_REQUEST_HOST','Starting','_applyRemoteChangeset','apply','params','getParam','3469671eKcdvi','key','_collaborationSessionService','LEAVE','_transformSelections','USERS_ENTER','_cachedData','session.will-retry','add','className','InsertRowCommandId','clear','SUCCUSS','parseProtocolChangeset','getCurrent','_getAPIPrefixPath','_clearHeartbeatTimer','@univerjs/ui','_drawAnchor','_lockTransition','IImageIoService','_configService','rgba(255,\x20255,\x20255,\x200.01)','urlChange$','UUID','_anchor','roomMembers$','file','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_fetchMissChangesets','permissionRejEvent','SYNCED','debug','_createHandler','_transformStack','action','INotificationService','_updateState','_send','_context','_docSkeletonManagerService','max','SetDocZoomRatioOperation','catch','CHANGESET_REVISION_CONFILICT','_getUploadFileURL','ThresholdInterceptorFactory','socket\x20open.','onPointerEnter$','findNodePositionByCharIndex','hide','isTransformMutationsWithChangesetSuccess','collab-text-anchor-','reverse','_httpService','getUnitType','/rev/','createSocket','row','IUndoRedoService','values','next','COLLAB_WEB_SOCKET_URL_KEY','onTransformSelections','_handleEvent','_updateURLWithCurrentState','_init','Module','_loadDoc','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','arc','/object','_onConnectionFailed','location','_injector','IUIPartsService','updateCursorEvent','_getSignURL','PSEUDO_FETCH_MISSING_RESULT','drawWith','getCurrentUser','PERMISSION_REJ','_onUserLeave','collabStatus.syncing','members','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','enableAuthServer','_cursorInfo$','defineProperty','1em','_range','textRanges','collabStatus.offline','getUnitOnRev','?url=','onRemoteChangeset','_queuedRemoteChangesets','_initStatusComponent','_colorIndex','_onUserJoin','_saveTaskMap','IRenderManagerService','width','_redoStacks','BehaviorSubject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ISnapshotServerService','event$','INGEST','MUTATION','dispose','handleDeleteRangeMoveUp','resize','disposeWithMe','[PendingState]:\x20received\x20rejection.','3004160FOuVSh','saveChangeset','override','_commentService','TEXT_RANGE_LAYER_INDEX','has','isInternalEditorID','[UniverCollaborationClientPlugin]','leaveEvent','_waitForHeartbeatResponse','then','JOIN','_transformRemoteChangesetByIMECache','not_collab','_singleActiveUnitService','status','_collabCursorState$','HTTPRequest','_collabCursorController','LOCAL_CACHE_INTERVAL','deserializeToCombResponse','interceptor','flatMap','fromEvent','Plugin','updateMember','_render','isEditing','UserManagerService','LICENSE_DISTRO_REJECTED','handleInsertRangeMoveRight','_memberService','UNIVER_SLIDE','endRow','_onCursorDelete','fillStyle','_textBubble','concatMap','currentTheme$','_clearRedo','LocalCacheService','_unitStatus','LIVESHARE_OPERATION','startRow','requestParams','LIVESHARE_NEW_HOST','Univer','_event$','_univerInstanceService','#fff','getColor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','history','popstate','set','changesets','_collaborationController','getWorkbookSelections','closeSession','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_id','addImageSourceCache','_type','univer-online-status-icon','UNAUTHENTICATED','getCollabEntity','batchAllowed','getMember','getSheetBlock','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleSaving','_rescheduleHeartbeatEvent','ONLINE','[CollaborationUndoRedoService]','disableLocalCache','_hover','[DataLoaderController]','url(#off-line-single_clip0_910_343)','labelPosition','toStringTag','Error','onRemoteRej','complete','_socketService','/role','collabStatus.conflict','csAckEvent','[FetchMissState]','_onCombEvent','POST','_substituteUndoStack','FromArray','deserializeRangeWithSheet','PERMISSION_DENIED','setInterval','IDLE','_initCommandExecutedListener','body','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','delete','_session','/-/object/-/batch_allowed','onSyncEditingCollabCursor','_change$','clearTimeout','544233WYqNEG','USERS_LEAVE','use','LICENSE_EXPORT_SIZE_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','COLLAB_SUBMIT_CHANGESET_URL','throttleTime','_ensureSubject','getConfig','YUUMI_SUBSCRIPTION_NOT_FOUND','INVALID_ARGUMENT','filter','serializeRangeWithSheet','LOGIN_URL_KEY','workbook','onload','toRgbString','setAlpha','SetWorksheetActivateCommand','/resources','Disposable','BuiltInUIPart','OnLineSingle','collabStatus.synced','collabStatus.notCollab','addObject','rxjs/operators','AWAITING','ITransformService','FETCH_MISS','show','session.collaboration-timeout','addObjects','_handleJoinEvent','append','getUnhiddenWorksheets','_initModules','baseRev','_handleLeaveEvent','clipPath','collaMsg','ImageIoService','EffectRefRangId','Warning','_loadSheet','csRejEvent','ws://127.0.0.1:8000/universer-api/comb/connect','getItem','MessageType','collaboration.single-unit.warning','confirm','InsertRangeMoveRightCommandId','onCommentUpdate','_shapes','SNAPSHOT_INVALID_SNAPSHOT','min','pending','M0\x200H16V16H0z','_checkMissing','handleInsertCol','_updateLocalCursor','Unknown\x20user','type','_sendingTimer','[PendingState]:\x20received\x20acknowledgement.','startsWith','collab-rect-range-','_docSkeleton','displayName','name','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','DisposableCollection','getTime','distinctUntilChanged','DEFAULT_FILE_NAME','_ws','deepClone','src','focused$','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','replaceState','collab-text-range-','APPLY_REJECT','_backgroundColor','VIEW_MAIN','_createSocket','_toggleOffline','_updateStatus','objectActions','setCurrentUser','uni.network.url-service','cursorInfo$','unit-cache-','YUUMI_URL_COL_OUT_OF_RANGE','_sheetSkeletonManagerService','@univerjs/engine-render','font','evenodd','[CollaborationState]:\x20apply\x20error!','onStateChange','_socketReady','liveShareNewHost','Subject','/universer-api/snapshot/','storage','slice','commentUpdateEvent','attrs','collaboratorID','_refreshCollabCursors','_transformService','_updateSubUnitFromURLParams','SnapshotServerOverHTTPService','refreshPermission','_anchorDot','7051RgGdlw','_pendingMutations','_updateCollabCursors','ICollaborationSocketService','close','ERROR_IMAGE','socket\x20close','ILogService','_hovered','SetSelectionsOperation','transformChangesets','UniverCollaborationClientPlugin','_getSaveTimeout','_renderManagerService','shouldCloseConn','UNIVER_DOC','_compressMutationService','_decreaseWaiting','UnitSnapshot','useObservable','@univerjs/rpc','_entities','pipe','UniverInstanceType','roomMembers','_transformUndoredo','_entityInit$','_replayCachedMutations','getAncestorScale','pushState','snapshot','74929SUcquS','listRoles','UNKNOWN_CODE','HELLO','COMPLETION_FINISHED','toDisposable','univer-offline','generateRandomId','_onConflict','_getSendChangesetTimeout','bottom','reject','extend','_revisionService','loadDoc','onlineStatusIcon','forwardRef','stringify','method','_initCloseConn','open$','saveOfflineData','removeMember','indexOf','unit','enableSingleActiveInstanceLock','_scheduleHeartbeat','href','icon','putCollaborators','subscribe','switchMap','toString','_onRecvEvent','DesktopCollaborationStatusDisplayController','image/gif','_colorAssignService','CollaborationEvent','fetching\x20missing\x20changesets\x20from\x20','/allowed','removeParam','PENDING','range','engine','ColorKit','AUTHZ_URL_KEY','_getLoginPath','getCollabCursors$','image/jpeg','isPermissionRej','_initStatusListener','url(#on-line-single_clip0_910_349)','cmd','COLORS','6qRfFpl','...','updatePermissionPoint','debounceTime','getSheetObject','combineLatest','_sessionStatus$','liveShareOperation','resolve','_refRangeService','DocStateChangeManagerService','assignAColorForMemberID','_cursors','univer-pro.collaboration-client-socket-service','RegularPolygon','HEARTBEAT_INTERVAL_KEY','save','transformMutation','fetch_missing','doc.mutation.rich-text-editing','Inject','MergeInterceptorFactory','getCollabEntity$','@univerjs/sheets-ui','asObservable','_docSyncEditingCollabCursorService','JOINING','XHRHTTPImplementation','_setupBeforeClosingHandler','HEARTBEAT_INTERVAL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getUnitId','addEventListener','_document','[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.','TOO_MANY_REQUESTS','onCommandExecuted','code','executeCommand','_sendHeartbeat','mutations','Workbook','conflict.content','close$','getOwnPropertySymbols','CONNECTOR_DATA_TOO_LARGE','parse','column','unknown','_http','_docTransformSelectionsService','onMissingChangesets','image/bmp','_onConnectionOpen','LIVESHARE_FETCH_OPERATIONS','getOwnPropertyDescriptor','toggleOffline','tag','&source=','transformStack\x20failed!','unsubscribe','CommentService','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_unlockTransition','COMMENT_UPDATE','data','Rect','UNIVER_SHEET','436yCIBxr','session.connection-failed','?size=','subscribeEvent','CommandType'];_0x1991=function(){return _0x20ed93;};return _0x1991();}let Z=class extends o[_0x3022d6(0x460)]{constructor(_0x232dc6,_0x297dae,_0x35012a){const _0x50d605=_0x3022d6;super(),u(this,_0x50d605(0x23d),new Map()),u(this,_0x50d605(0x242),new v[(_0x50d605(0x21b))]()),(this[_0x50d605(0x17c)]=_0x232dc6,this[_0x50d605(0x123)]=_0x297dae,this[_0x50d605(0x3e2)]=_0x35012a,this['_init']());}[_0x3022d6(0x147)](){const _0x3b15f2=_0x3022d6;super[_0x3b15f2(0x147)](),this['_entityInit$'][_0x3b15f2(0x19e)](),this[_0x3b15f2(0x23d)][_0x3b15f2(0x3d3)](_0x5cf84c=>_0x5cf84c[_0x3b15f2(0x147)]());}[_0x3022d6(0x276)](_0x4259a2){const _0x1b44a8=_0x3022d6;return this[_0x1b44a8(0x23d)][_0x1b44a8(0x151)](_0x4259a2)?this[_0x1b44a8(0x23d)][_0x1b44a8(0x84)](_0x4259a2)[_0x1b44a8(0x210)]:this[_0x1b44a8(0x242)][_0x1b44a8(0x23e)](v[_0x1b44a8(0x1c0)](_0x50c05e=>_0x50c05e['unitID']===_0x4259a2),v['switchMap'](_0x4f2328=>_0x4f2328[_0x1b44a8(0x210)]));}['_init'](){const _0x106562=_0x3022d6;this[_0x106562(0x17c)]['getTypeOfUnitAdded$'](o[_0x106562(0x23f)][_0x106562(0x2c0)])[_0x106562(0x23e)](v[_0x106562(0xc7)](this[_0x106562(0x374)]))[_0x106562(0x265)](async _0x945a9b=>{const _0x5a3170=_0x106562,_0x10867e=_0x945a9b[_0x5a3170(0x29c)](),_0x205886=await this[_0x5a3170(0x427)](_0x10867e);this[_0x5a3170(0x242)][_0x5a3170(0x116)](_0x205886),this['_entities'][_0x5a3170(0x182)](_0x10867e,_0x205886);}),this[_0x106562(0x17c)][_0x106562(0x2f6)](o[_0x106562(0x23f)][_0x106562(0x237)])['pipe'](v['takeUntil'](this[_0x106562(0x374)]))[_0x106562(0x23e)](v[_0x106562(0x1c0)](_0xa776d7=>!_0xa776d7[_0x106562(0x29c)]()['startsWith']('__')))[_0x106562(0x265)](async _0x44ccb0=>{const _0x38d6d1=_0x106562,_0x119099=_0x44ccb0[_0x38d6d1(0x29c)](),_0x1c515a=await this[_0x38d6d1(0x360)](_0x119099);this[_0x38d6d1(0x242)]['next'](_0x1c515a),this[_0x38d6d1(0x23d)]['set'](_0x119099,_0x1c515a);}),v[_0x106562(0xc5)](this[_0x106562(0x17c)][_0x106562(0x3ae)](o['UniverInstanceType'][_0x106562(0x237)]),this['_univerInstanceService'][_0x106562(0x3ae)](o[_0x106562(0x23f)][_0x106562(0x2c0)]))[_0x106562(0x23e)](v[_0x106562(0xc7)](this[_0x106562(0x374)]))[_0x106562(0x265)](_0x4b11ed=>{const _0x10a2a5=_0x106562,_0x45a268=_0x4b11ed['getUnitId'](),_0x3c3645=this[_0x10a2a5(0x23d)][_0x10a2a5(0x84)](_0x45a268);_0x3c3645&&(_0x3c3645[_0x10a2a5(0x147)](),this[_0x10a2a5(0x23d)][_0x10a2a5(0x1af)](_0x45a268));});}async[_0x3022d6(0x427)](_0x3b5f60){const _0xa312fd=_0x3022d6,_0x20a746=await this['_collabSessionService'][_0xa312fd(0x3b2)](_0x3b5f60),_0x4253b6=this['_injector'][_0xa312fd(0x89)](Le,_0x3b5f60,_0x20a746);return _0x4253b6[_0xa312fd(0x388)](),_0x4253b6;}async[_0x3022d6(0x360)](_0x3e8e4b){const _0x2ff481=_0x3022d6,_0x37346a=await this[_0x2ff481(0x3e2)][_0x2ff481(0x3b2)](_0x3e8e4b),_0x2818e2=this[_0x2ff481(0x123)][_0x2ff481(0x89)](Ae,_0x3e8e4b,_0x37346a);return _0x2818e2[_0x2ff481(0x388)](),_0x2818e2;}};Z=Fs([o[_0x3022d6(0x3ef)](o['LifecycleStages'][_0x3022d6(0xd4)],Z),Re(0x0,o[_0x3022d6(0xb8)]),Re(0x1,o[_0x3022d6(0x291)](o['Injector'])),Re(0x2,o[_0x3022d6(0x291)](exports[_0x3022d6(0x2ee)]))],Z);const le=0x14,it=0xc8,Oe=0x4,Gs=0x5;function Ys(_0x2edb5c,_0x34bb34){const _0x45f535=_0x3022d6;let {radius:_0x5823fe,width:_0x427d30,height:_0x284563}=_0x34bb34;_0x5823fe=_0x5823fe!=null?_0x5823fe:0x0,_0x427d30=_0x427d30!=null?_0x427d30:0x1e,_0x284563=_0x284563!=null?_0x284563:0x1e;let _0x20f0fb=0x0,_0x58dffc=0x0,_0x3a2284=0x0;_0x20f0fb=_0x58dffc=_0x3a2284=Math[_0x45f535(0x1ec)](_0x5823fe,_0x427d30/0x2,_0x284563/0x2),_0x2edb5c['beginPath'](),_0x2edb5c['moveTo'](_0x20f0fb,0x0),_0x2edb5c[_0x45f535(0x2f3)](_0x427d30-_0x58dffc,0x0),_0x2edb5c['arc'](_0x427d30-_0x58dffc,_0x58dffc,_0x58dffc,Math['PI']*0x3/0x2,0x0,!0x1),_0x2edb5c[_0x45f535(0x2f3)](_0x427d30,_0x284563-_0x3a2284),_0x2edb5c[_0x45f535(0x11f)](_0x427d30-_0x3a2284,_0x284563-_0x3a2284,_0x3a2284,0x0,Math['PI']/0x2,!0x1),_0x2edb5c['lineTo'](0x0,_0x284563),_0x2edb5c[_0x45f535(0x2f3)](0x0,_0x20f0fb),_0x2edb5c[_0x45f535(0x11f)](_0x20f0fb,_0x20f0fb,_0x20f0fb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2edb5c[_0x45f535(0x32b)](),_0x34bb34[_0x45f535(0x43f)]&&(_0x2edb5c[_0x45f535(0x28d)](),_0x2edb5c[_0x45f535(0x16f)]=_0x34bb34[_0x45f535(0x43f)],_0x34bb34['fillRule']===_0x45f535(0x216)?_0x2edb5c['fill'](_0x45f535(0x216)):_0x2edb5c['fill'](),_0x2edb5c[_0x45f535(0x2ea)]());}class Ce extends b['Shape']{constructor(_0x3bea77,_0x5da96b){const _0x144c4f=_0x3022d6;super(_0x3bea77,_0x5da96b),u(this,_0x144c4f(0x3d4)),u(this,_0x144c4f(0x3cc)),(this['color']=_0x5da96b==null?void 0x0:_0x5da96b[_0x144c4f(0x3d4)],this[_0x144c4f(0x3cc)]=_0x5da96b==null?void 0x0:_0x5da96b[_0x144c4f(0x3cc)]);}static[_0x3022d6(0x128)](_0x4cba4b,_0x3fe372){const _0x21ae0f=_0x3022d6,{text:_0x19e3c2,color:_0xac1df8}=_0x3fe372;_0x4cba4b[_0x21ae0f(0x28d)](),_0x4cba4b[_0x21ae0f(0x215)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1c4164=_0x4cba4b[_0x21ae0f(0x42b)](_0x19e3c2)[_0x21ae0f(0x13f)],_0x30ab62=Math[_0x21ae0f(0x1ec)](_0x1c4164+0x2*Oe,it);Ys(_0x4cba4b,{'height':le,'radius':0x4,'width':_0x30ab62,'fill':_0xac1df8,'evented':!0x1}),_0x4cba4b['fillStyle']='#FFF';const _0x14132e=Oe,_0x3bb5bf=le-Gs,_0x415b25=it-0x2*Oe;if(_0x1c4164>_0x415b25){let _0x180057='',_0x24e553=0x0;for(const _0x412e9a of _0x19e3c2){const _0x3df609=_0x4cba4b[_0x21ae0f(0x42b)](_0x412e9a)['width'];if(_0x24e553+_0x3df609<=_0x415b25-_0x4cba4b[_0x21ae0f(0x42b)](_0x21ae0f(0x27e))[_0x21ae0f(0x13f)])_0x180057+=_0x412e9a,_0x24e553+=_0x3df609;else{_0x180057+=_0x21ae0f(0x27e);break;}}_0x4cba4b[_0x21ae0f(0x38c)](_0x180057,_0x14132e,_0x3bb5bf);}else _0x4cba4b[_0x21ae0f(0x38c)](_0x19e3c2,_0x14132e,_0x3bb5bf);_0x4cba4b[_0x21ae0f(0x2ea)]();}[_0x3022d6(0x3e0)](_0x37aefa){const _0x22084e=_0x3022d6;Ce[_0x22084e(0x128)](_0x37aefa,this);}}const Ks=0x1,Xs=1.5;class Rt extends b[_0x3022d6(0x331)]{constructor(_0x342ef7,_0x6b98c0){const _0x432242=_0x3022d6;super(_0x342ef7,_0x6b98c0),u(this,'_color'),u(this,_0x432242(0x230),!0x1),u(this,_0x432242(0x133)),u(this,_0x432242(0x332),''),u(this,_0x432242(0x378),_0x432242(0x2d3)),u(this,'_backgroundColor'),(_0x6b98c0&&this[_0x432242(0x30e)](_0x6b98c0),this[_0x432242(0x109)][_0x432242(0x2c4)](()=>this[_0x432242(0x30e)]({'hovered':!0x0})),this[_0x432242(0x35d)][_0x432242(0x2c4)](()=>this[_0x432242(0x30e)]({'hovered':!0x1})));}['setShapeProps'](_0x3bed4f){const _0x5b3d7e=_0x3022d6;var _0x258065,_0x4d14c0,_0x53ce16,_0xcbae31,_0x2b6f9a,_0xc70a0a;this[_0x5b3d7e(0x2d8)]=(_0x258065=_0x3bed4f[_0x5b3d7e(0x3d4)])!=null?_0x258065:this[_0x5b3d7e(0x2d8)],this[_0x5b3d7e(0x230)]=(_0x4d14c0=_0x3bed4f['hovered'])!=null?_0x4d14c0:this[_0x5b3d7e(0x230)],this[_0x5b3d7e(0x133)]=(_0x53ce16=_0x3bed4f['range'])!=null?_0x53ce16:this[_0x5b3d7e(0x133)],this[_0x5b3d7e(0x332)]=(_0xcbae31=_0x3bed4f['name'])!=null?_0xcbae31:this[_0x5b3d7e(0x332)],this[_0x5b3d7e(0x378)]=(_0x2b6f9a=_0x3bed4f[_0x5b3d7e(0x19a)])!=null?_0x2b6f9a:this[_0x5b3d7e(0x378)],this['_backgroundColor']=(_0xc70a0a=_0x3bed4f[_0x5b3d7e(0x82)])!=null?_0xc70a0a:this['_backgroundColor'],this[_0x5b3d7e(0x395)]({'width':_0x3bed4f[_0x5b3d7e(0x13f)],'height':_0x3bed4f['height']});}['onMouseMove'](_0x350b75){const _0x289a57=_0x3022d6,{row:_0xc391cf,column:_0x391383}=_0x350b75;if(_0xc391cf>=this[_0x289a57(0x133)][_0x289a57(0x177)]&&_0xc391cf<=this[_0x289a57(0x133)][_0x289a57(0x16d)]&&_0x391383>=this[_0x289a57(0x133)][_0x289a57(0x36d)]&&_0x391383<=this[_0x289a57(0x133)]['endColumn']){this[_0x289a57(0x30e)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x1f4f29){return!0x1;}['_draw'](_0x59718e){const _0xb96a33=_0x3022d6;b[_0xb96a33(0x2bf)][_0xb96a33(0x128)](_0x59718e,{'width':this[_0xb96a33(0x13f)],'height':this['height'],'strokeWidth':Xs,'stroke':this[_0xb96a33(0x2d8)],'evented':!0x1,'fill':this[_0xb96a33(0x208)]}),this[_0xb96a33(0x230)]&&(_0x59718e[_0xb96a33(0x28d)](),_0x59718e[_0xb96a33(0x456)](0x1,0x0,0x0,0x1,this[_0xb96a33(0x13f)],this[_0xb96a33(0x378)]===_0xb96a33(0x251)?0x0:-le),Ce[_0xb96a33(0x128)](_0x59718e,{'text':this[_0xb96a33(0x332)],'color':this[_0xb96a33(0x2d8)]}),_0x59718e['restore']());}}var qs=Object['defineProperty'],zs=Object[_0x3022d6(0x2b4)],Js=(_0x3aa13d,_0x45407d,_0x233dab,_0x2918de)=>{const _0x5b9390=_0x3022d6;for(var _0x17d4d9=_0x2918de>0x1?void 0x0:_0x2918de?zs(_0x45407d,_0x233dab):_0x45407d,_0x561783=_0x3aa13d[_0x5b9390(0x2ce)]-0x1,_0xc7b38e;_0x561783>=0x0;_0x561783--)(_0xc7b38e=_0x3aa13d[_0x561783])&&(_0x17d4d9=(_0x2918de?_0xc7b38e(_0x45407d,_0x233dab,_0x17d4d9):_0xc7b38e(_0x17d4d9))||_0x17d4d9);return _0x2918de&&_0x17d4d9&&qs(_0x45407d,_0x233dab,_0x17d4d9),_0x17d4d9;},De=(_0xc3d184,_0x2a4a22)=>(_0x9f6b3f,_0x1c875c)=>_0x2a4a22(_0x9f6b3f,_0x1c875c,_0xc3d184);const Zs=0x1389;let je=class extends o[_0x3022d6(0x460)]{constructor(_0x4d393c,_0x5f3317,_0x23de27,_0x5292de){const _0x3d5dea=_0x3022d6;super(),u(this,'_cursors',new Set()),u(this,'_lastPointer',null),(this[_0x3d5dea(0x100)]=_0x4d393c,this[_0x3d5dea(0x213)]=_0x5f3317,this[_0x3d5dea(0x15e)]=_0x23de27,this[_0x3d5dea(0x2f0)]=_0x5292de,this[_0x3d5dea(0x11b)]());}['_init'](){const _0x243d82=_0x3022d6;this[_0x243d82(0x213)][_0x243d82(0x44b)][_0x243d82(0x23e)](E[_0x243d82(0xc7)](this[_0x243d82(0x374)]),E['switchMap'](_0x4c804c=>{const _0x2932e6=_0x243d82;if(_0x4c804c){const _0x5bbbf5=_0x4c804c[_0x2932e6(0x41b)];return v[_0x2932e6(0x282)](this['_collabCursorController'][_0x2932e6(0x276)](this[_0x2932e6(0x100)][_0x2932e6(0x347)]),this[_0x2932e6(0x2f0)]['currentTheme$'])[_0x2932e6(0x23e)](E[_0x2932e6(0x317)](([_0x2b169e,_0x3e8f44])=>{const _0x26d10a=new Map();return _0x2b169e['forEach']((_0x220325,_0x2b8d0d)=>{const _0xfbb881=_0xbc10;if(_0x220325[_0xfbb881(0x43c)]===_0x5bbbf5){const _0x51299e={..._0x220325};_0x51299e[_0xfbb881(0x3d4)]=_0x3e8f44[_0x220325[_0xfbb881(0x3d4)]],_0x26d10a['set'](_0x2b8d0d,_0x51299e);}}),{'skeleton':_0x4c804c,'cursors':_0x26d10a};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x243d82(0x265)](({skeleton:_0x8f0d24,cursors:_0x4963ef})=>{const _0x4816c2=_0x243d82;this[_0x4816c2(0x80)](),_0x8f0d24&&this['_updateCollabCursors'](_0x8f0d24,_0x4963ef);}),this[_0x243d82(0x213)]['currentSkeleton$'][_0x243d82(0x265)](_0x3b1b34=>{const _0x5d54e4=_0x243d82;if(_0x3b1b34==null)return;const {skeleton:_0x29399d}=_0x3b1b34,{scene:_0x5e2c8e}=this['_context'];_0x5e2c8e[_0x5d54e4(0x2d0)][_0x5d54e4(0x2c4)](xe(_0x399af6=>{const _0x110758=_0x5d54e4;var _0x15cc97,_0x4a5003;const {offsetX:_0xadeba4,offsetY:_0x10ee73}=_0x399af6,{x:_0x420f2a,y:_0x2d5269}=_0x5e2c8e['getRelativeToViewportCoord'](b[_0x110758(0x3fe)][_0x110758(0x1a7)]([_0xadeba4,_0x10ee73])),{scaleX:_0x586e02,scaleY:_0x3654f8}=_0x5e2c8e[_0x110758(0x244)](),_0xeaaa39=_0x5e2c8e['getViewport'](J[_0x110758(0x96)][_0x110758(0x209)]),_0x50eae8=_0x5e2c8e[_0x110758(0x35f)](b['Vector2']['FromArray']([_0x420f2a,_0x2d5269]),_0xeaaa39),_0x424466=_0x29399d['getCellPositionByOffset'](_0xadeba4,_0x10ee73,_0x586e02,_0x3654f8,_0x50eae8);((_0x15cc97=this[_0x110758(0x457)])==null?void 0x0:_0x15cc97['column'])===_0x424466[_0x110758(0x2ac)]&&((_0x4a5003=this[_0x110758(0x457)])==null?void 0x0:_0x4a5003[_0x110758(0x113)])===_0x424466[_0x110758(0x113)]||this[_0x110758(0x289)]['forEach'](_0xf813ff=>{const _0x4d6abb=_0x110758;_0xf813ff[_0x4d6abb(0x2f8)](_0x424466);});},0x64));});}['_updateCollabCursors'](_0x162432,_0x36b87b){const _0x271614=_0x3022d6;var _0x1c0a19;const _0x30aad7=(_0x1c0a19=this[_0x271614(0x213)][_0x271614(0xe7)]())==null?void 0x0:_0x1c0a19[_0x271614(0x98)];if(!_0x30aad7)return;const _0x3d4697=this[_0x271614(0x7f)]();if(!_0x3d4697)return;this[_0x271614(0x289)]['forEach'](_0x13bcf8=>{const _0x3f8f82=_0x271614;_0x13bcf8[_0x3f8f82(0x39b)]();});const {scene:_0x21e4f2}=_0x3d4697,_0x11d76f=Qs(Array[_0x271614(0x39f)](_0x36b87b[_0x271614(0x115)]()))[_0x271614(0x317)](_0x33908d=>{const _0x3f133e=_0x271614,{color:_0x4df8a8,range:_0x26408b,name:_0x1e0130,selection:_0x4fac3e,sheetID:_0x3a0b2f}=_0x33908d,{startColumn:_0x4f0145,startRow:_0x58a29f,endColumn:_0x3a0272,endRow:_0x22cf9e}=_0x26408b,_0x16d1e5=J['getCoordByCell'](_0x58a29f,_0x4f0145,_0x21e4f2,_0x30aad7),_0x14414f=J[_0x3f133e(0x416)](_0x22cf9e,_0x3a0272,_0x21e4f2,_0x30aad7),{columnHeaderHeightAndMarginTop:_0x34ac34}=_0x30aad7,{startX:_0x18058c,startY:_0x3faf28}=_0x16d1e5,{endX:_0x3d40df,endY:_0x358303}=_0x14414f,_0x54d9f5=_0x3d40df-_0x18058c,_0x23816e=_0x358303-_0x3faf28,_0x38e694={'labelPosition':_0x3faf28-_0x34ac34>=le?'top':_0x3f133e(0x251),'sheetID':_0x3a0b2f,'range':_0x26408b,'color':_0x4df8a8,'name':_0x1e0130,'selection':_0x4fac3e,'left':_0x18058c,'top':_0x3faf28,'width':_0x54d9f5,'height':_0x23816e,'evented':!0x1,'zIndex':Zs};return new Rt(_0x1e0130,_0x38e694);});_0x21e4f2[_0x271614(0x1d5)](_0x11d76f,Ks),this[_0x271614(0x289)]=new Set(_0x11d76f);}[_0x3022d6(0x80)](){const _0x451085=_0x3022d6;var _0x2f00ee;(_0x2f00ee=this['_cursors'])==null||_0x2f00ee[_0x451085(0x3d3)](_0x2f9d3c=>_0x2f9d3c[_0x451085(0x147)]());}[_0x3022d6(0x7f)](){const _0x329599=_0x3022d6;return J[_0x329599(0x281)](this[_0x329599(0x100)][_0x329599(0x25f)],this[_0x329599(0x100)]);}};je=Js([De(0x1,o[_0x3022d6(0x291)](J[_0x3022d6(0x399)])),De(0x2,o[_0x3022d6(0x291)](Z)),De(0x3,o[_0x3022d6(0x291)](o['ThemeService']))],je);function Qs(_0xb74c3d){const _0x138547=_0x3022d6,_0x3f69df=new Map();return _0xb74c3d[_0x138547(0x3d3)](_0x16f129=>{const _0x3327b4=_0x138547;if(_0x3f69df['has'](_0x16f129[_0x3327b4(0x3a7)])){const _0x286a2d=_0x3f69df[_0x3327b4(0x84)](_0x16f129['selection']);_0x286a2d[_0x3327b4(0x1fa)]+=',\x20'+_0x16f129['name'];}else _0x3f69df[_0x3327b4(0x182)](_0x16f129[_0x3327b4(0x3a7)],_0x16f129);}),Array[_0x138547(0x39f)](_0x3f69df[_0x138547(0x115)]());}var N=function(){const _0x2ac466=_0x3022d6;return N=Object[_0x2ac466(0x9c)]||function(_0x34108f){const _0x5f37a0=_0x2ac466;for(var _0x4ea710,_0x5c63b9=0x1,_0x1292cc=arguments[_0x5f37a0(0x2ce)];_0x5c63b9<_0x1292cc;_0x5c63b9++){_0x4ea710=arguments[_0x5c63b9];for(var _0x1eb999 in _0x4ea710)Object[_0x5f37a0(0x37c)][_0x5f37a0(0x353)]['call'](_0x4ea710,_0x1eb999)&&(_0x34108f[_0x1eb999]=_0x4ea710[_0x1eb999]);}return _0x34108f;},N[_0x2ac466(0xd6)](this,arguments);},ei=function(_0x39f4b8,_0x20d63e){const _0x3175e1=_0x3022d6;var _0x2908b5={};for(var _0x29e71f in _0x39f4b8)Object[_0x3175e1(0x37c)][_0x3175e1(0x353)][_0x3175e1(0x422)](_0x39f4b8,_0x29e71f)&&_0x20d63e[_0x3175e1(0x25e)](_0x29e71f)<0x0&&(_0x2908b5[_0x29e71f]=_0x39f4b8[_0x29e71f]);if(_0x39f4b8!=null&&typeof Object[_0x3175e1(0x2a9)]=='function'){for(var _0x4f6db4=0x0,_0x29e71f=Object[_0x3175e1(0x2a9)](_0x39f4b8);_0x4f6db4<_0x29e71f[_0x3175e1(0x2ce)];_0x4f6db4++)_0x20d63e['indexOf'](_0x29e71f[_0x4f6db4])<0x0&&Object[_0x3175e1(0x37c)][_0x3175e1(0x35c)][_0x3175e1(0x422)](_0x39f4b8,_0x29e71f[_0x4f6db4])&&(_0x2908b5[_0x29e71f[_0x4f6db4]]=_0x39f4b8[_0x29e71f[_0x4f6db4]]);}return _0x2908b5;},Ge=y['forwardRef'](function(_0xe8c99c,_0x5ec6b1){const _0x510bdf=_0x3022d6;var _0x14b232=_0xe8c99c[_0x510bdf(0x263)],_0x2aca30=_0xe8c99c['id'],_0x40d21b=_0xe8c99c[_0x510bdf(0xe2)],_0x2c69da=_0xe8c99c[_0x510bdf(0x253)],_0x4ccd10=ei(_0xe8c99c,[_0x510bdf(0x263),'id',_0x510bdf(0xe2),_0x510bdf(0x253)]),_0x2da550='univerjs-icon\x20univerjs-icon-'[_0x510bdf(0x419)](_0x2aca30,'\x20')['concat'](_0x40d21b||'')[_0x510bdf(0x2f7)](),_0x3ddee3=y[_0x510bdf(0x425)]('_'[_0x510bdf(0x419)](ii()));return Ot(_0x14b232,''[_0x510bdf(0x419)](_0x2aca30),{'defIds':_0x14b232[_0x510bdf(0x379)],'idSuffix':_0x3ddee3['current']},N({'ref':_0x5ec6b1,'className':_0x2da550},_0x4ccd10),_0x2c69da);});function Ot(_0x5b6e71,_0x467606,_0x1e566c,_0x3644dd,_0x14fa7b){const _0x5227cc=_0x3022d6;return y[_0x5227cc(0x7d)](_0x5b6e71['tag'],N(N({'key':_0x467606},ti(_0x5b6e71,_0x1e566c,_0x14fa7b)),_0x3644dd),(si(_0x5b6e71,_0x1e566c)['children']||[])[_0x5227cc(0x317)](function(_0x24fce0,_0xe7e765){const _0x44dcfe=_0x5227cc;return Ot(_0x24fce0,''[_0x44dcfe(0x419)](_0x467606,'-')['concat'](_0x5b6e71['tag'],'-')['concat'](_0xe7e765),_0x1e566c,void 0x0,_0x14fa7b);}));}function ti(_0x5053d1,_0x3f3cec,_0x347d70){const _0x1f2b68=_0x3022d6;var _0x166cea=N({},_0x5053d1[_0x1f2b68(0x220)]);_0x347d70!=null&&_0x347d70['colorChannel1']&&_0x166cea[_0x1f2b68(0x43f)]===_0x1f2b68(0x30f)&&(_0x166cea[_0x1f2b68(0x43f)]=_0x347d70[_0x1f2b68(0x30f)]);var _0x13295e=_0x3f3cec[_0x1f2b68(0x379)];return!_0x13295e||_0x13295e[_0x1f2b68(0x2ce)]===0x0||(_0x5053d1[_0x1f2b68(0x2b6)]===_0x1f2b68(0x1b7)&&_0x166cea['xlink:href']&&(_0x166cea[_0x1f2b68(0x2d2)]=_0x166cea['xlink:href']+_0x3f3cec[_0x1f2b68(0x361)]),Object[_0x1f2b68(0x8e)](_0x166cea)[_0x1f2b68(0x3d3)](function(_0x2f18e6){const _0x34e318=_0x1f2b68;var _0x4a62de=_0x2f18e6[0x0],_0x2a1e82=_0x2f18e6[0x1];typeof _0x2a1e82=='string'&&(_0x166cea[_0x4a62de]=_0x2a1e82['replace'](/url\(#(.*)\)/,_0x34e318(0x3ee)[_0x34e318(0x419)](_0x3f3cec[_0x34e318(0x361)],')')));})),_0x166cea;}function si(_0x2bf097,_0x4435bb){const _0x33e519=_0x3022d6;var _0x197652,_0xa9b418=_0x4435bb['defIds'];return!_0xa9b418||_0xa9b418['length']===0x0?_0x2bf097:_0x2bf097[_0x33e519(0x2b6)]==='defs'&&(!((_0x197652=_0x2bf097['children'])===null||_0x197652===void 0x0)&&_0x197652[_0x33e519(0x2ce)])?N(N({},_0x2bf097),{'children':_0x2bf097[_0x33e519(0x436)][_0x33e519(0x317)](function(_0xdb6428){const _0x26eadc=_0x33e519;return typeof _0xdb6428[_0x26eadc(0x220)]['id']==_0x26eadc(0x383)&&_0xa9b418&&_0xa9b418[_0x26eadc(0x25e)](_0xdb6428[_0x26eadc(0x220)]['id'])>-0x1?N(N({},_0xdb6428),{'attrs':N(N({},_0xdb6428['attrs']),{'id':_0xdb6428['attrs']['id']+_0x4435bb[_0x26eadc(0x361)]})}):_0xdb6428;})}):_0x2bf097;}function ii(){const _0x119000=_0x3022d6;return Math[_0x119000(0x3d8)]()['toString'](0x24)[_0x119000(0x2db)](0x2,0x8);}Ge['displayName']=_0x3022d6(0x403);var ni={'tag':_0x3022d6(0x2cc),'attrs':{'fill':_0x3022d6(0x45e),'viewBox':_0x3022d6(0x3c8),'width':_0x3022d6(0x132),'height':_0x3022d6(0x132)},'children':[{'tag':'g','attrs':{'clipPath':_0x3022d6(0x199)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3022d6(0x9d),'strokeLinecap':_0x3022d6(0x401),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3022d6(0x1dc),'attrs':{'id':_0x3022d6(0x3d7)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'fill':_0x3022d6(0x17d),'d':_0x3022d6(0x1ee)}}]}]}],'defIds':[_0x3022d6(0x3d7)]},Dt=y[_0x3022d6(0x257)](function(_0x26c89e,_0x5c026c){const _0x213ded=_0x3022d6;return y[_0x213ded(0x7d)](Ge,Object[_0x213ded(0x9c)]({},_0x26c89e,{'id':_0x213ded(0x40e),'ref':_0x5c026c,'icon':ni}));});Dt[_0x3022d6(0x1f9)]='OffLineSingle';var ri={'tag':_0x3022d6(0x2cc),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x3022d6(0x132)},'children':[{'tag':'g','attrs':{'clipPath':_0x3022d6(0x27a)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'stroke':_0x3022d6(0xc4),'d':_0x3022d6(0x302),'strokeLinecap':_0x3022d6(0x401),'strokeLinejoin':_0x3022d6(0x401),'strokeWidth':1.2}}]},{'tag':_0x3022d6(0x421),'attrs':{},'children':[{'tag':_0x3022d6(0x1dc),'attrs':{'id':_0x3022d6(0x43a)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'fill':_0x3022d6(0x17d),'d':_0x3022d6(0x1ee),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Pt=y['forwardRef'](function(_0x5780af,_0x57c8c9){const _0x339c2a=_0x3022d6;return y[_0x339c2a(0x7d)](Ge,Object[_0x339c2a(0x9c)]({},_0x5780af,{'id':_0x339c2a(0x411),'ref':_0x57c8c9,'icon':ri}));});Pt[_0x3022d6(0x1f9)]=_0x3022d6(0x1cb);const oi=_0x3022d6(0x18b),ai=_0x3022d6(0x324),ci='univer-online-status',li=_0x3022d6(0x33c),hi=_0x3022d6(0x24d),ne={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x119ebd){const _0x1a70c7=_0x3022d6;switch(_0x119ebd){case D[_0x1a70c7(0x316)]:return _0x1a70c7(0x135);case D['CONFLICT']:return _0x1a70c7(0x1a1);case D['FETCH_MISS']:return _0x1a70c7(0xb3);case D[_0x1a70c7(0x463)]:return _0x1a70c7(0x1cd);case D[_0x1a70c7(0x270)]:case D[_0x1a70c7(0x1d0)]:case D[_0x1a70c7(0x319)]:return _0x1a70c7(0x12c);case D[_0x1a70c7(0xf8)]:return _0x1a70c7(0x1cc);}}function Ut(_0x524d32){const _0x400e06=_0x3022d6,{status$:_0x2a8259}=_0x524d32,_0x3295ce=L[_0x400e06(0x23b)](_0x2a8259,D[_0x400e06(0x463)]),_0x45f144=o['useDependency'](o[_0x400e06(0x43e)]),_0x5ca871=_0x3295ce!==D[_0x400e06(0x316)],_0x2dcca8=_0x45f144['t'](_i(_0x3295ce)),_0x1d51bb=kt(ne['onlineStatus'],{[ne['online']]:_0x5ca871,[ne['offline']]:!_0x5ca871}),_0x38df82=_0x5ca871?y[_0x400e06(0x7d)](Pt,null):y['createElement'](Dt,null);return y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':_0x1d51bb},y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':ne[_0x400e06(0x256)]},_0x38df82),y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':ne[_0x400e06(0x39d)]},_0x2dcca8));}var ui=Object[_0x3022d6(0x131)],di=Object['getOwnPropertyDescriptor'],Si=(_0x41599d,_0x5300c3,_0x2085ed,_0xfb07db)=>{const _0x2f9fc4=_0x3022d6;for(var _0x201f73=_0xfb07db>0x1?void 0x0:_0xfb07db?di(_0x5300c3,_0x2085ed):_0x5300c3,_0x22e295=_0x41599d[_0x2f9fc4(0x2ce)]-0x1,_0x17b5d8;_0x22e295>=0x0;_0x22e295--)(_0x17b5d8=_0x41599d[_0x22e295])&&(_0x201f73=(_0xfb07db?_0x17b5d8(_0x5300c3,_0x2085ed,_0x201f73):_0x17b5d8(_0x201f73))||_0x201f73);return _0xfb07db&&_0x201f73&&ui(_0x5300c3,_0x2085ed,_0x201f73),_0x201f73;},he=(_0x15d59f,_0x118a34)=>(_0xa6152a,_0x2d004b)=>_0x118a34(_0xa6152a,_0x2d004b,_0x15d59f);exports[_0x3022d6(0x269)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x3a016d,_0xc7d70c,_0x2c4e79,_0x22ef6b){const _0x4073a1=_0x3022d6;super(),u(this,_0x4073a1(0x30d),new v[(_0x4073a1(0x141))](D[_0x4073a1(0x463)])),(this[_0x4073a1(0x17c)]=_0x3a016d,this['_uiPartsService']=_0xc7d70c,this[_0x4073a1(0x123)]=_0x2c4e79,this[_0x4073a1(0x184)]=_0x22ef6b,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x3022d6(0x13a)](){const _0x261b2b=_0x3022d6;this[_0x261b2b(0x14a)](this[_0x261b2b(0x326)][_0x261b2b(0x9a)](L[_0x261b2b(0x1ca)][_0x261b2b(0xd1)],()=>o[_0x261b2b(0x45a)](vi({'status$':this['_status$'][_0x261b2b(0x295)]()}),this[_0x261b2b(0x123)])));}[_0x3022d6(0x279)](){const _0x53a634=_0x3022d6;this[_0x53a634(0x14a)](o[_0x53a634(0x24c)](this[_0x53a634(0x17c)][_0x53a634(0x203)][_0x53a634(0x23e)](v[_0x53a634(0x266)](()=>{const _0x385874=_0x53a634,_0x47889b=this[_0x385874(0x17c)][_0x385874(0x45c)]();return _0x47889b?this['_collaborationController'][_0x385874(0x293)](_0x47889b[_0x385874(0x29c)]()):v['of'](null);}),v[_0x53a634(0x266)](_0x20cdcb=>_0x20cdcb?_0x20cdcb['status$']:v['of'](D['NOT_COLLAB'])))[_0x53a634(0x265)](_0x213a81=>{const _0x1bd95f=_0x53a634;this[_0x1bd95f(0x30d)][_0x1bd95f(0x116)](_0x213a81);})));}},exports['DesktopCollaborationStatusDisplayController']=Si([o[_0x3022d6(0x3ef)](o[_0x3022d6(0x32a)]['Starting'],exports[_0x3022d6(0x269)]),he(0x0,o[_0x3022d6(0xb8)]),he(0x1,L[_0x3022d6(0x124)]),he(0x2,o['Inject'](o[_0x3022d6(0x448)])),he(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x431)]))],exports[_0x3022d6(0x269)]);function vi(_0x5d73a5){const {status$:_0x1cc3f6}=_0x5d73a5;return function(){const _0xaa8b48=_0xbc10;return y[_0xaa8b48(0x7d)](Ut,{'status$':_0x1cc3f6});};}const Ye=o[_0x3022d6(0x2f4)](_0x3022d6(0x20f));var mi=Object[_0x3022d6(0x131)],gi=Object['getOwnPropertyDescriptor'],fi=(_0x447b3c,_0x10bd04,_0x220bc4,_0x462cee)=>{for(var _0x4c3fa5=_0x462cee>0x1?void 0x0:_0x462cee?gi(_0x10bd04,_0x220bc4):_0x10bd04,_0x2cb0ae=_0x447b3c['length']-0x1,_0x2dd1f8;_0x2cb0ae>=0x0;_0x2cb0ae--)(_0x2dd1f8=_0x447b3c[_0x2cb0ae])&&(_0x4c3fa5=(_0x462cee?_0x2dd1f8(_0x10bd04,_0x220bc4,_0x4c3fa5):_0x2dd1f8(_0x4c3fa5))||_0x4c3fa5);return _0x462cee&&_0x4c3fa5&&mi(_0x10bd04,_0x220bc4,_0x4c3fa5),_0x4c3fa5;},z=(_0x46a470,_0x3b6322)=>(_0x24c1ca,_0x26e90d)=>_0x3b6322(_0x24c1ca,_0x26e90d,_0x46a470);exports[_0x3022d6(0x336)]=class extends o[_0x3022d6(0x460)]{constructor(_0x10f1b6,_0x4a50cf,_0x200a58,_0x285826,_0x322326,_0x4dabf7){const _0xe46bbc=_0x3022d6;super(),this[_0xe46bbc(0x414)]=_0x10f1b6,this['_logService']=_0x4a50cf,this[_0xe46bbc(0x467)]=_0x200a58,this[_0xe46bbc(0x3ea)]=_0x285826,this[_0xe46bbc(0x2d9)]=_0x322326,_0x4dabf7?_0x4dabf7==null||_0x4dabf7[_0xe46bbc(0x35b)]()[_0xe46bbc(0x156)](()=>this[_0xe46bbc(0x11b)]()):(this[_0xe46bbc(0x38b)][_0xe46bbc(0xf9)](_0xe46bbc(0x198),_0xe46bbc(0x17f)),this['_init']());}async['_init'](){const _0x1eae74=_0x3022d6,_0x72392=this[_0x1eae74(0x414)][_0x1eae74(0xd8)](_0x1eae74(0x25f)),_0x463797=this['_urlService']['getParam'](_0x1eae74(0x1f3));if(!_0x72392||!_0x463797){this[_0x1eae74(0x38b)]['debug'](_0x1eae74(0x198),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x463797)){case j[_0x1eae74(0x2c0)]:{const _0x55eab1=await this[_0x1eae74(0x1e1)](_0x72392);this[_0x1eae74(0x391)](_0x55eab1);break;}case j['UNIVER_DOC']:{await this[_0x1eae74(0x11d)](_0x72392);break;}default:{this[_0x1eae74(0x38b)][_0x1eae74(0x404)]('[DataLoaderController]',_0x1eae74(0x2dd));break;}}}async[_0x3022d6(0x391)](_0x27dfc1){const _0x113115=_0x3022d6;await this[_0x113115(0x224)](_0x27dfc1),_0x27dfc1[_0x113115(0x409)][_0x113115(0x23e)](v['takeUntil'](this[_0x113115(0x374)]))[_0x113115(0x265)](_0x1a3879=>{const _0x5c0690=_0x113115;_0x1a3879&&this[_0x5c0690(0x11a)](_0x1a3879);}),this[_0x113115(0x414)][_0x113115(0xf0)][_0x113115(0x23e)](v[_0x113115(0xc7)](this[_0x113115(0x374)]))[_0x113115(0x265)](()=>this[_0x113115(0x224)](_0x27dfc1));}[_0x3022d6(0x11a)](_0x345ca6,_0x16e0d8=!0x1){const _0x1d08dd=_0x3022d6,_0x2ff214=this[_0x1d08dd(0x414)]['getParam'](_0x1d08dd(0x44d));_0x345ca6[_0x1d08dd(0x3a8)]()!==_0x2ff214&&this[_0x1d08dd(0x414)][_0x1d08dd(0xad)](_0x1d08dd(0x44d),_0x345ca6[_0x1d08dd(0x3a8)](),_0x16e0d8);}async[_0x3022d6(0x224)](_0x40133d){const _0x5584aa=_0x3022d6;var _0x37948b;const _0x5cb5a0=this[_0x5584aa(0x414)][_0x5584aa(0xd8)]('subunit');if(!_0x5cb5a0||!_0x40133d[_0x5584aa(0xb4)](_0x5cb5a0)){const _0x318f11=_0x40133d[_0x5584aa(0x1d8)]()[0x0],_0x4331f2=_0x40133d[_0x5584aa(0xb4)](_0x318f11);if(!_0x4331f2)return;this['_updateURLWithCurrentState'](_0x4331f2,!0x0),await this[_0x5584aa(0x467)][_0x5584aa(0x2a3)](p[_0x5584aa(0x1c7)]['id'],{'unitId':_0x40133d[_0x5584aa(0x29c)](),'subUnitId':_0x318f11});return;}((_0x37948b=_0x40133d[_0x5584aa(0x34b)]())==null?void 0x0:_0x37948b[_0x5584aa(0x3a8)]())!==_0x5cb5a0&&await this[_0x5584aa(0x467)][_0x5584aa(0x2a3)](p['SetWorksheetActivateCommand']['id'],{'unitId':_0x40133d[_0x5584aa(0x29c)](),'subUnitId':_0x5cb5a0});}async['_loadSheet'](_0x2dd0af){const _0x249a55=_0x3022d6;let _0x171d02=0x0;const _0xfb1343=await this['_localCacheService'][_0x249a55(0x3b8)](_0x2dd0af);return _0xfb1343&&(_0xfb1343[_0x249a55(0xca)]||_0xfb1343['mutations'][_0x249a55(0x2ce)]!==0x0)&&(_0x171d02=_0xfb1343[_0x249a55(0x342)]),_0x171d02===0x0&&this['_logService']['debug'](_0x249a55(0x198),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x249a55(0x3bc)](_0x2dd0af,_0x171d02);}async[_0x3022d6(0x11d)](_0x36aaef){const _0x16302f=_0x3022d6;let _0x47db5e=0x0;const _0xfea10f=await this['_localCacheService'][_0x16302f(0x3b8)](_0x36aaef);return _0xfea10f&&(_0xfea10f[_0x16302f(0xca)]||_0xfea10f['mutations'][_0x16302f(0x2ce)]!==0x0)&&(_0x47db5e=_0xfea10f['rev']),_0x47db5e===0x0&&this[_0x16302f(0x38b)][_0x16302f(0xf9)](_0x16302f(0x198),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x16302f(0x2d9)][_0x16302f(0x255)](_0x36aaef,_0x47db5e);}},exports['DataLoaderController']=fi([o['OnLifecycle'](o[_0x3022d6(0x32a)][_0x3022d6(0xd4)],exports[_0x3022d6(0x336)]),z(0x0,Ye),z(0x1,o[_0x3022d6(0x22f)]),z(0x2,o['ICommandService']),z(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),z(0x4,o[_0x3022d6(0x291)](_[_0x3022d6(0x393)])),z(0x5,o['Optional'](Bt[_0x3022d6(0x390)]))],exports[_0x3022d6(0x336)]);var Ii=Object[_0x3022d6(0x131)],pi=Object[_0x3022d6(0x2b4)],Ei=(_0x2ab917,_0x820c24,_0x3820c3,_0x284d94)=>{const _0x436596=_0x3022d6;for(var _0x24e433=_0x284d94>0x1?void 0x0:_0x284d94?pi(_0x820c24,_0x3820c3):_0x820c24,_0xea3f42=_0x2ab917[_0x436596(0x2ce)]-0x1,_0x3b7e49;_0xea3f42>=0x0;_0xea3f42--)(_0x3b7e49=_0x2ab917[_0xea3f42])&&(_0x24e433=(_0x284d94?_0x3b7e49(_0x820c24,_0x3820c3,_0x24e433):_0x3b7e49(_0x24e433))||_0x24e433);return _0x284d94&&_0x24e433&&Ii(_0x820c24,_0x3820c3,_0x24e433),_0x24e433;},nt=(_0xf9a780,_0xd54f6e)=>(_0xcba332,_0x46995e)=>_0xd54f6e(_0xcba332,_0x46995e,_0xf9a780);const Ci=_0x3022d6(0x1ff),bi=_0x3022d6(0x17a);let ue=class extends o['Disposable']{constructor(_0x418202,_0x4a82b0){const _0x37c89f=_0x3022d6;super(),this['_univerInstanceService']=_0x418202,this[_0x37c89f(0xee)]=_0x4a82b0,this[_0x37c89f(0x11b)]();}[_0x3022d6(0x11b)](){const _0x1d83f5=_0x3022d6;this[_0x1d83f5(0x14a)](o[_0x1d83f5(0x24c)](this[_0x1d83f5(0x17c)][_0x1d83f5(0x203)][_0x1d83f5(0x265)](()=>{const _0x1cf256=_0x1d83f5;var _0x42e6c7;const _0x5fa7e8=this[_0x1cf256(0x17c)]['getFocusedUnit']();let _0x186205=(_0x42e6c7=this[_0x1cf256(0xee)][_0x1cf256(0x1bd)](Ci))!=null?_0x42e6c7:bi;_0x5fa7e8 instanceof o[_0x1cf256(0x2a6)]&&(_0x186205=_0x5fa7e8[_0x1cf256(0x1fa)]),document[_0x1cf256(0x434)]=_0x186205;})));}};ue=Ei([o['OnLifecycle'](o['LifecycleStages'][_0x3022d6(0x32d)],ue),nt(0x0,o[_0x3022d6(0xb8)]),nt(0x1,o['IConfigService'])],ue);var Ti=Object['defineProperty'],Ri=Object[_0x3022d6(0x2b4)],Oi=(_0x373aa7,_0x34845b,_0x3c769c,_0x47cb0f)=>{for(var _0x1dfae2=_0x47cb0f>0x1?void 0x0:_0x47cb0f?Ri(_0x34845b,_0x3c769c):_0x34845b,_0x26dbf5=_0x373aa7['length']-0x1,_0x516862;_0x26dbf5>=0x0;_0x26dbf5--)(_0x516862=_0x373aa7[_0x26dbf5])&&(_0x1dfae2=(_0x47cb0f?_0x516862(_0x34845b,_0x3c769c,_0x1dfae2):_0x516862(_0x1dfae2))||_0x1dfae2);return _0x47cb0f&&_0x1dfae2&&Ti(_0x34845b,_0x3c769c,_0x1dfae2),_0x1dfae2;},rt=(_0x211d48,_0x233aea)=>(_0x4480e2,_0x4b4b91)=>_0x233aea(_0x4480e2,_0x4b4b91,_0x211d48);exports['SnapshotServerOverHTTPService']=class{constructor(_0x512580,_0x3da7f5){const _0x4fa6e8=_0x3022d6;this[_0x4fa6e8(0xee)]=_0x512580,this[_0x4fa6e8(0x10f)]=_0x3da7f5;}async[_0x3022d6(0x136)](_0x3a36a7,_0x5c15d3){const _0x40478e=_0x3022d6;var _0x2b8d79;const {unitID:_0x17db55,type:_0x23d5ea,revision:_0x5c5d8e=0x0}=_0x5c15d3,_0x178704=this['_getSnapshotAPIPrefix']()+'/'+_0x23d5ea+_0x40478e(0x3b5)+_0x17db55+_0x40478e(0x111)+_0x5c5d8e,_0x5292b7=(await this['_httpService'][_0x40478e(0x84)](_0x178704))[_0x40478e(0x1ad)],_0x44f102=(_0x2b8d79=_0x5292b7[_0x40478e(0x246)])==null?void 0x0:_0x2b8d79[_0x40478e(0x1c3)];if(_0x44f102){const _0x197afa=_0x44f102==null?void 0x0:_0x44f102[_0x40478e(0x2f2)],_0x3b9c5f=o['textEncoder']['encode'](o['b64DecodeUnicode'](_0x197afa));_0x44f102['originalMeta']=_0x3b9c5f,Object[_0x40478e(0x8e)](_0x44f102['sheets'])[_0x40478e(0x3d3)](([,_0x39a3e4])=>{const _0x2c8882=_0x40478e,_0x341d20=_0x39a3e4[_0x2c8882(0x2f2)],_0x4b3cd6=o['textEncoder'][_0x2c8882(0x385)](o[_0x2c8882(0xc9)](_0x341d20));_0x39a3e4['originalMeta']=_0x4b3cd6;});}return _0x5292b7;}async[_0x3022d6(0x190)](_0x44033a,_0x567241){const _0x361c52=_0x3022d6,{unitID:_0x4a5014,type:_0x25b0e0,blockID:_0x5d635d}=_0x567241,_0x359efe=this[_0x361c52(0x444)]()+'/'+_0x25b0e0+_0x361c52(0x3b5)+_0x4a5014+'/block/'+_0x5d635d;return(await this[_0x361c52(0x10f)]['get'](_0x359efe))['body'];}async[_0x3022d6(0x3fd)](_0x47e961,_0x411cb5){const _0x342ce3=_0x3022d6,{unitID:_0x50b5d5,type:_0x4fae31,from:_0x13b406,to:_0x3f39a8}=_0x411cb5,_0x29c2be=this['_getAPIPrefix']()+'/'+_0x4fae31+_0x342ce3(0x3b5)+_0x50b5d5+'/fetchmissing?from='+_0x13b406+_0x342ce3(0x348)+_0x3f39a8;return(await this[_0x342ce3(0x10f)]['get'](_0x29c2be))[_0x342ce3(0x1ad)];}[_0x3022d6(0x433)](){const _0x1fcee5=_0x3022d6;var _0x520190;return(_0x520190=this[_0x1fcee5(0xee)][_0x1fcee5(0x1bd)](lt))!=null?_0x520190:this[_0x1fcee5(0x444)]();}[_0x3022d6(0x444)](){const _0x148968=_0x3022d6;var _0x4c186a;return(_0x4c186a=this[_0x148968(0xee)][_0x148968(0x1bd)](ct))!=null?_0x4c186a:Vt;}async[_0x3022d6(0x9b)](_0x343b89,_0xffa787){const _0x20b68c=_0x3022d6,_0xb85e18=_0x20b68c(0x21c)+_0xffa787[_0x20b68c(0x1f3)]+_0x20b68c(0x3b5)+_0xffa787['unitID']+_0x20b68c(0x1c8);return(await this[_0x20b68c(0x10f)][_0x20b68c(0x84)](_0xb85e18,{'params':{'resourceId':JSON[_0x20b68c(0x258)](_0xffa787[_0x20b68c(0x3f3)])}}))[_0x20b68c(0x1ad)];}[_0x3022d6(0x3b9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x412f94=_0x3022d6;throw new Error(_0x412f94(0x2ec));}[_0x3022d6(0x14d)](){const _0x137ae7=_0x3022d6;throw new Error(_0x137ae7(0x2ec));}},exports[_0x3022d6(0x225)]=Oi([rt(0x0,o[_0x3022d6(0x3be)]),rt(0x1,o[_0x3022d6(0x291)](U['HTTPService']))],exports[_0x3022d6(0x225)]);var Di=Object[_0x3022d6(0x131)],Pi=Object[_0x3022d6(0x2b4)],Ui=(_0xde67b4,_0x1d58f8,_0x43763b,_0xe47a3d)=>{const _0x4f2308=_0x3022d6;for(var _0x441171=_0xe47a3d>0x1?void 0x0:_0xe47a3d?Pi(_0x1d58f8,_0x43763b):_0x1d58f8,_0x4985df=_0xde67b4[_0x4f2308(0x2ce)]-0x1,_0x1c2158;_0x4985df>=0x0;_0x4985df--)(_0x1c2158=_0xde67b4[_0x4985df])&&(_0x441171=(_0xe47a3d?_0x1c2158(_0x1d58f8,_0x43763b,_0x441171):_0x1c2158(_0x441171))||_0x441171);return _0xe47a3d&&_0x441171&&Di(_0x1d58f8,_0x43763b,_0x441171),_0x441171;},re=(_0x18cce9,_0x1fc7d0)=>(_0x116730,_0x3adb2a)=>_0x1fc7d0(_0x116730,_0x3adb2a,_0x18cce9);let $e=class extends o['LocalUndoRedoService']{constructor(_0x394a69,_0x438863,_0x816939,_0x260ea8,_0x27a0b1){const _0x370de0=_0x3022d6;super(_0x394a69,_0x438863,_0x816939),this[_0x370de0(0x223)]=_0x260ea8,this['_logService']=_0x27a0b1;}[_0x3022d6(0x392)](_0x16dac9,_0x10d2b5){const _0x43b448=_0x3022d6,_0x2ae7ef=this['_getUndoStack'](_0x16dac9);if(_0x2ae7ef)try{const _0x43cfec=this[_0x43b448(0xfb)](_0x2ae7ef,_0x10d2b5);this[_0x43b448(0x1a6)](_0x16dac9,_0x43cfec);}catch(_0x49a0c8){this[_0x43b448(0x38b)]['error']('[CollaborationUndoRedoService]',_0x49a0c8),this[_0x43b448(0x2c8)](_0x16dac9);}const _0x4c7ecf=this['_getRedoStack'](_0x16dac9);if(_0x4c7ecf)try{const _0x1d1c94=this[_0x43b448(0xfb)](_0x4c7ecf,_0x10d2b5);this['_substituteRedoStack'](_0x16dac9,_0x1d1c94);}catch(_0x1cb997){this['_logService'][_0x43b448(0x404)](_0x1cb997),this['_clearRedo'](_0x16dac9);}}[_0x3022d6(0x2c8)](_0x5d4f20){const _0x43fe2d=_0x3022d6,_0x5cc21c=this['_getUndoStack'](_0x5d4f20);_0x5cc21c&&(_0x5cc21c[_0x43fe2d(0x2ce)]=0x0,this['_updateStatus']());}[_0x3022d6(0x173)](_0x581fdd){const _0x2a0eed=_0x3022d6,_0x240a55=this[_0x2a0eed(0x3ff)](_0x581fdd);_0x240a55&&(_0x240a55['length']=0x0,this['_updateStatus']());}[_0x3022d6(0x1a6)](_0xe4d781,_0x524362){const _0x22691c=_0x3022d6;this[_0x22691c(0x2da)]['set'](_0xe4d781,_0x524362),this[_0x22691c(0x20c)]();}['_substituteRedoStack'](_0x497b44,_0x299ad6){const _0x538df0=_0x3022d6;this[_0x538df0(0x140)][_0x538df0(0x182)](_0x497b44,_0x299ad6),this[_0x538df0(0x20c)]();}['_transformStack'](_0x5a1361,_0x8aa5df){const _0x534bc2=_0x3022d6,_0x871fd9=[];let _0x276e67=_0x8aa5df,_0x485a99=_0x8aa5df;for(let _0x1fba1f=_0x5a1361[_0x534bc2(0x2ce)]-0x1;_0x1fba1f>=0x0;_0x1fba1f--){const {unitID:_0x594529,undoMutations:_0x1e13d3,redoMutations:_0x43a925}=_0x5a1361[_0x1fba1f],_0x40492a=this[_0x534bc2(0x223)][_0x534bc2(0x375)](_0x276e67,_0x1e13d3),_0x3498db=this[_0x534bc2(0x223)]['transformMutationsWithChangeset'](_0x485a99,_0x43a925);if(_[_0x534bc2(0x2d7)](_0x40492a)||_['isTransformMutationsWithChangesetFailure'](_0x3498db)){this['_logService'][_0x534bc2(0x404)](_0x534bc2(0x195),_0x534bc2(0x2b8),_0x40492a,_0x3498db);break;}_0x276e67=_0x40492a[_0x534bc2(0x3c6)],_0x485a99=_0x3498db[_0x534bc2(0x3c6)],_0x871fd9[_0x534bc2(0x42d)]({'unitID':_0x594529,'undoMutations':_0x40492a[_0x534bc2(0x469)],'redoMutations':_0x3498db[_0x534bc2(0x469)]});}return _0x871fd9[_0x534bc2(0x10e)]();}};$e=Ui([re(0x0,o[_0x3022d6(0xb8)]),re(0x1,o[_0x3022d6(0x3e6)]),re(0x2,o[_0x3022d6(0xa6)]),re(0x3,_[_0x3022d6(0x1d1)]),re(0x4,o['ILogService'])],$e);class wt extends o['RxDisposable']{constructor(){const _0x517469=_0x3022d6;super(),u(this,_0x517469(0xf0)),this['urlChange$']=v[_0x517469(0x163)](window,_0x517469(0x181))[_0x517469(0x23e)](v[_0x517469(0xc7)](this['dispose$']),v[_0x517469(0x3af)](0x1),v[_0x517469(0x2dc)](void 0x0));}[_0x3022d6(0xad)](_0x22d6ec,_0x5252ef,_0x1ec323=!0x1){const _0xd70a63=_0x3022d6,_0x318282=new URL(window[_0xd70a63(0x122)][_0xd70a63(0x262)]);_0x318282[_0xd70a63(0x3aa)][_0xd70a63(0x182)](_0x22d6ec,_0x5252ef),_0x1ec323?window[_0xd70a63(0x180)]['replaceState']('','',_0x318282[_0xd70a63(0x267)]()):window[_0xd70a63(0x180)][_0xd70a63(0x245)]('','',_0x318282['toString']());}[_0x3022d6(0x26f)](_0x33fe12,_0x106d68=!0x1){const _0x13f16a=_0x3022d6,_0x46c089=new URL(window['location'][_0x13f16a(0x262)]);_0x46c089[_0x13f16a(0x3aa)][_0x13f16a(0x1af)](_0x33fe12),_0x106d68?window[_0x13f16a(0x180)][_0x13f16a(0x205)]('','',_0x46c089[_0x13f16a(0x267)]()):window[_0x13f16a(0x180)][_0x13f16a(0x245)]('','',_0x46c089['toString']());}[_0x3022d6(0xd8)](_0x4e1a76){const _0xafca22=_0x3022d6;var _0x57ae93;return(_0x57ae93=new URL(window['location']['href'])['searchParams'][_0xafca22(0x84)](_0x4e1a76))!=null?_0x57ae93:void 0x0;}}const Pe=_0x3022d6(0x10d),wi=_0x3022d6(0x206),Mi=_0x3022d6(0x1f7),oe=0x6,yi=1.5,Ue=0x4,Ni=1.5,Li=_0x3022d6(0xef);class ot{constructor(_0x468093,_0x21872e,_0x302255,_0xf955b9){const _0x111d6f=_0x3022d6;u(this,'_shapes',[]),u(this,'_anchor',null),u(this,_0x111d6f(0x170),null),u(this,_0x111d6f(0x227),null),u(this,'_hideTimer',null),u(this,_0x111d6f(0x406),null),(this[_0x111d6f(0x33e)]=_0x468093,this['_scene']=_0x21872e,this[_0x111d6f(0x1f8)]=_0x302255,this[_0x111d6f(0x29e)]=_0xf955b9,this[_0x111d6f(0x166)]());}set[_0x3022d6(0x197)](_0x259fe6){const _0x565f06=_0x3022d6;_0x259fe6?(this[_0x565f06(0x227)]&&this['_anchorDot']['hide'](),this[_0x565f06(0x170)]&&this[_0x565f06(0x170)]['show']()):(this[_0x565f06(0x227)]&&this['_anchorDot'][_0x565f06(0x1d3)](),this[_0x565f06(0x170)]&&this[_0x565f06(0x170)][_0x565f06(0x10b)]());}[_0x3022d6(0x147)](){const _0x1396fe=_0x3022d6;for(const _0x4e11ca of this[_0x1396fe(0x1ea)])_0x4e11ca['dispose']();this[_0x1396fe(0x170)]&&this[_0x1396fe(0x170)]['dispose'](),this[_0x1396fe(0x227)]&&this[_0x1396fe(0x227)][_0x1396fe(0x147)](),this[_0x1396fe(0xf2)]&&this[_0x1396fe(0xf2)][_0x1396fe(0x147)](),this[_0x1396fe(0x406)]&&this['_eventUnsubscribe']();}[_0x3022d6(0x166)](){const _0x2d9d68=_0x3022d6;var _0x969afb;const {_docSkeleton:_0x596256,_document:_0x1d172e}=this,{color:_0x2187a3,name:_0x4ae51e,ranges:_0x4a7aa6}=this[_0x2d9d68(0x33e)],_0x4c07db=_0x1d172e['getOffsetConfig'](),{docsLeft:_0x24ec1a,docsTop:_0x2a7d48}=_0x4c07db,_0x254dbc=new b[(_0x2d9d68(0x304))](_0x4c07db,_0x596256);for(const {startOffset:_0x37ec79,endOffset:_0x28a5f7,collapsed:_0x36ef09,isActive:_0x1776b6}of _0x4a7aa6){const _0xf40bff=_0x596256[_0x2d9d68(0x10a)](_0x37ec79),_0x5972af=_0x596256[_0x2d9d68(0x10a)](_0x28a5f7);if(_0x1776b6){const {contentBoxPointGroup:_0x161b0e}=_0x254dbc['getRangePointData'](_0x5972af,_0x5972af);if(_0x161b0e[_0x2d9d68(0x2ce)]===0x0)continue;this[_0x2d9d68(0xeb)](_0x2187a3,_0x161b0e,_0x24ec1a,_0x2a7d48,_0x4ae51e),this[_0x2d9d68(0x406)]=this[_0x2d9d68(0x405)]();}if(!_0x36ef09&&_0xf40bff&&_0x5972af){if(b['isValidRectRange'](_0xf40bff,_0x5972af)){const _0x5f179a=new b['NodePositionConvertToRectRange'](_0x4c07db,_0x596256),{pointGroup:_0x4fa771}=(_0x969afb=_0x5f179a[_0x2d9d68(0x338)](_0xf40bff,_0x5972af))!=null?_0x969afb:{};if(_0x4fa771==null||_0x4fa771['length']===0x0)continue;this[_0x2d9d68(0xd2)](_0x2187a3,_0x4fa771,_0x24ec1a,_0x2a7d48);}else{const {contentBoxPointGroup:_0x24bfdf}=_0x254dbc['getRangePointData'](_0xf40bff,_0x5972af);if(_0x24bfdf[_0x2d9d68(0x2ce)]===0x0)continue;this['_drawTextRange'](_0x2187a3,_0x24bfdf,_0x24ec1a,_0x2a7d48);}}}}[_0x3022d6(0xeb)](_0x9c23f2,_0x58e46c,_0x3c67fb,_0x154e8e,_0x31ac49){const _0x2e0169=_0x3022d6,_0x4066be=this[_0x2e0169(0x354)](_0x58e46c),{left:_0x3ffbde,top:_0x2ff494,height:_0x49c2f4}=_0x4066be,_0x258069=this['_getScale'](),_0x200b19=Ni/_0x258069,_0x2b9f02=new b[(_0x2e0169(0x2bf))](Pe+o[_0x2e0169(0x418)]['generateRandomId'](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e,'height':_0x49c2f4,'width':yi,'fill':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'strokeWidth':_0x200b19,'stroke':Li,'evented':!0x0});this[_0x2e0169(0xf2)]=_0x2b9f02,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0x2b9f02,b[_0x2e0169(0x150)]);const _0xc65cf9=new b[(_0x2e0169(0x2bf))](Pe+o[_0x2e0169(0x418)][_0x2e0169(0x24e)](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'strokeWidth':0x0,'stroke':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'evented':!0x1});this[_0x2e0169(0x227)]=_0xc65cf9,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0xc65cf9,b[_0x2e0169(0x150)]);const _0x19a1fd=new Ce(Pe+o[_0x2e0169(0x418)][_0x2e0169(0x24e)](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e-le,'text':_0x31ac49,'color':_0x9c23f2});this[_0x2e0169(0x170)]=_0x19a1fd,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0x19a1fd,b[_0x2e0169(0x150)]),this['_hover']=!0x1;}[_0x3022d6(0x405)](){const _0x21dba7=_0x3022d6,_0x30e9c5=this[_0x21dba7(0xf2)][_0x21dba7(0x109)][_0x21dba7(0x2c4)](()=>{const _0x1fcaa7=_0x21dba7;this[_0x1fcaa7(0x197)]=!0x0;}),_0x19d66f=this['_anchor'][_0x21dba7(0x35d)][_0x21dba7(0x2c4)](()=>{const _0x557145=_0x21dba7;this[_0x557145(0x94)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x54bb4e=_0x557145;this[_0x54bb4e(0x197)]=!0x1;},0x7d0);});return()=>{const _0x42d948=_0x21dba7;_0x30e9c5[_0x42d948(0x2b9)](),_0x19d66f[_0x42d948(0x2b9)]();};}['_drawTextRange'](_0x5bfb2c,_0x5a9ac9,_0x26b3e7,_0x499b66){const _0x4a7012=_0x3022d6,_0x85f639=new o['ColorKit'](_0x5bfb2c)['setAlpha'](0.2)[_0x4a7012(0x1c5)](),_0x4db5e9=new b[(_0x4a7012(0x28b))](wi+o[_0x4a7012(0x418)]['generateRandomId'](oe),{'pointsGroup':_0x5a9ac9,'fill':_0x85f639||b['getColor'](o[_0x4a7012(0x27c)]['black'],0.2),'left':_0x26b3e7,'top':_0x499b66,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a7012(0x1ea)][_0x4a7012(0x42d)](_0x4db5e9),this[_0x4a7012(0x2f1)][_0x4a7012(0x1ce)](_0x4db5e9,b['TEXT_RANGE_LAYER_INDEX']);}[_0x3022d6(0xd2)](_0x5b85cb,_0x2ff2a2,_0x3a3448,_0x1a5dc6){const _0x41f36d=_0x3022d6,_0x5e721e=new o[(_0x41f36d(0x273))](_0x5b85cb)[_0x41f36d(0x1c6)](0.2)['toRgbString'](),_0x543b75=new b[(_0x41f36d(0x28b))](Mi+o[_0x41f36d(0x418)][_0x41f36d(0x24e)](oe),{'pointsGroup':_0x2ff2a2,'fill':_0x5e721e||b[_0x41f36d(0x17e)](o['COLORS'][_0x41f36d(0xb9)],0.2),'left':_0x3a3448,'top':_0x1a5dc6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x41f36d(0x1ea)][_0x41f36d(0x42d)](_0x543b75),this[_0x41f36d(0x2f1)]['addObject'](_0x543b75,b[_0x41f36d(0x150)]);}[_0x3022d6(0x354)](_0x2cbe0d){const _0x555ec8=_0x2cbe0d[0x0],_0x48d9b4=_0x555ec8[0x0],_0x533457=_0x555ec8[0x2],{x:_0x20eae4,y:_0x56a2b3}=_0x48d9b4,{x:_0x5d2890,y:_0x2c0063}=_0x533457;return{'left':_0x20eae4,'top':_0x56a2b3,'width':_0x5d2890-_0x20eae4,'height':_0x2c0063-_0x56a2b3};}['_getScale'](){const _0x52bb27=_0x3022d6,{scaleX:_0x3a7bed,scaleY:_0x45fc89}=this[_0x52bb27(0x2f1)][_0x52bb27(0x244)]();return Math[_0x52bb27(0x102)](_0x3a7bed,_0x45fc89);}}var Ai=Object[_0x3022d6(0x131)],ji=Object[_0x3022d6(0x2b4)],$i=(_0x239a36,_0x2e10a8,_0x41be8f,_0x4745fc)=>{const _0x50d16c=_0x3022d6;for(var _0x1c6d5f=_0x4745fc>0x1?void 0x0:_0x4745fc?ji(_0x2e10a8,_0x41be8f):_0x2e10a8,_0x12a94f=_0x239a36[_0x50d16c(0x2ce)]-0x1,_0x57e94d;_0x12a94f>=0x0;_0x12a94f--)(_0x57e94d=_0x239a36[_0x12a94f])&&(_0x1c6d5f=(_0x4745fc?_0x57e94d(_0x2e10a8,_0x41be8f,_0x1c6d5f):_0x57e94d(_0x1c6d5f))||_0x1c6d5f);return _0x4745fc&&_0x1c6d5f&&Ai(_0x2e10a8,_0x41be8f,_0x1c6d5f),_0x1c6d5f;},_e=(_0x5a27a1,_0x5bc0f8)=>(_0x5c6a83,_0x437fa3)=>_0x5bc0f8(_0x5c6a83,_0x437fa3,_0x5a27a1);let de=class extends o[_0x3022d6(0x460)]{constructor(_0xa7917c,_0x21eb0b,_0x488d3c,_0x33f0e1,_0x5797a4){const _0x15ee78=_0x3022d6;super(),u(this,'_cursorShapes',[]),u(this,'_cursors',[]),(this[_0x15ee78(0x100)]=_0xa7917c,this[_0x15ee78(0x101)]=_0x21eb0b,this['_collabCursorController']=_0x488d3c,this[_0x15ee78(0x467)]=_0x33f0e1,this[_0x15ee78(0x2f0)]=_0x5797a4,this[_0x15ee78(0x11b)]());}[_0x3022d6(0x11b)](){const _0x2e77c7=_0x3022d6,_0x1b291d=this[_0x2e77c7(0x100)][_0x2e77c7(0x347)],_0x3da3e5=this[_0x2e77c7(0x101)];this[_0x2e77c7(0x14a)](v[_0x2e77c7(0x282)]([this[_0x2e77c7(0x15e)][_0x2e77c7(0x276)](_0x1b291d),this[_0x2e77c7(0x2f0)][_0x2e77c7(0x172)]])['pipe'](E[_0x2e77c7(0x317)](([_0x4ad3c9,_0x2105fe])=>({'skeleton':_0x3da3e5[_0x2e77c7(0x2cd)](),'cursors':[..._0x4ad3c9['values']()][_0x2e77c7(0x162)](_0x6e8858=>({..._0x6e8858,'color':_0x2105fe[_0x6e8858[_0x2e77c7(0x3d4)]]}))})))[_0x2e77c7(0x265)](_0x1df16d=>{const _0xc30eb1=_0x2e77c7;if(this['_removeCollabCursors'](),_0x1df16d){const {skeleton:_0x27e889,cursors:_0xa4b09d}=_0x1df16d;this[_0xc30eb1(0x22a)](_0x27e889,_0xa4b09d);}})),this['_initResize'](),this[_0x2e77c7(0x1ac)]();}[_0x3022d6(0x22a)](_0x401196,_0x4a0af0){const _0x5a6af9=_0x3022d6,{scene:_0x300256,mainComponent:_0xad475b}=this[_0x5a6af9(0x100)],_0x538149=_0x4a0af0[_0x5a6af9(0x317)](_0x4806b5=>new ot(_0x4806b5,_0x300256,_0x401196,_0xad475b));this[_0x5a6af9(0x3fc)]=_0x538149,this[_0x5a6af9(0x289)]=_0x4a0af0;}[_0x3022d6(0x222)](){const _0x4edcc8=_0x3022d6;this['_removeCollabCursors']();const {scene:_0x3bf1d9,mainComponent:_0x3e9487}=this[_0x4edcc8(0x100)],_0x4e8ab5=this[_0x4edcc8(0x101)]['getSkeleton'](),_0x323c11=this['_cursors']['map'](_0x5055fa=>new ot(_0x5055fa,_0x3bf1d9,_0x4e8ab5,_0x3e9487));this[_0x4edcc8(0x3fc)]=_0x323c11;}[_0x3022d6(0x80)](){const _0x486140=_0x3022d6;this[_0x486140(0x3fc)][_0x486140(0x3d3)](_0x1cd38d=>_0x1cd38d[_0x486140(0x147)]()),this[_0x486140(0x3fc)]=[];}['_initCommandExecutedListener'](){const _0x5eb61b=_0x3022d6,_0xf963e=[P[_0x5eb61b(0x103)]['id']];this[_0x5eb61b(0x14a)](this[_0x5eb61b(0x467)][_0x5eb61b(0x2a1)](_0x666573=>{const _0x868318=_0x5eb61b;_0xf963e['includes'](_0x666573['id'])&&_0x666573[_0x868318(0xd7)][_0x868318(0x347)]===this['_context'][_0x868318(0x347)]&&this[_0x868318(0x222)]();}));}['_initResize'](){const _0x1c5c3c=_0x3022d6;this[_0x1c5c3c(0x14a)](o[_0x1c5c3c(0x3e5)](this[_0x1c5c3c(0x100)][_0x1c5c3c(0x272)]['onTransformChange$'])['pipe'](E[_0x1c5c3c(0x1c0)](_0x168538=>_0x168538['type']===b[_0x1c5c3c(0x142)][_0x1c5c3c(0x149)]),E[_0x1c5c3c(0x1bb)](0x10))[_0x1c5c3c(0x265)](()=>{const _0x15ad91=_0x1c5c3c;this[_0x15ad91(0x222)]();}));}};function _0xbc10(_0x529a74,_0x392873){const _0x199194=_0x1991();return _0xbc10=function(_0xbc1022,_0x3aed93){_0xbc1022=_0xbc1022-0x7c;let _0x450b11=_0x199194[_0xbc1022];return _0x450b11;},_0xbc10(_0x529a74,_0x392873);}de=$i([o[_0x3022d6(0x3ef)](o[_0x3022d6(0x32a)][_0x3022d6(0x368)],de),_e(0x1,o['Inject'](P[_0x3022d6(0x382)])),_e(0x2,o[_0x3022d6(0x291)](Z)),_e(0x3,o['ICommandService']),_e(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x314)]))],de);var xi=Object[_0x3022d6(0x131)],Hi=Object['getOwnPropertyDescriptor'],ki=(_0xe7d303,_0x5d3887,_0x3efdba,_0x120476)=>{const _0x451bda=_0x3022d6;for(var _0x2b7dee=_0x120476>0x1?void 0x0:_0x120476?Hi(_0x5d3887,_0x3efdba):_0x5d3887,_0x46e779=_0xe7d303[_0x451bda(0x2ce)]-0x1,_0x2b75fd;_0x46e779>=0x0;_0x46e779--)(_0x2b75fd=_0xe7d303[_0x46e779])&&(_0x2b7dee=(_0x120476?_0x2b75fd(_0x5d3887,_0x3efdba,_0x2b7dee):_0x2b75fd(_0x2b7dee))||_0x2b7dee);return _0x120476&&_0x2b7dee&&xi(_0x5d3887,_0x3efdba,_0x2b7dee),_0x2b7dee;},we=(_0x4dfd66,_0x3af1c7)=>(_0x267593,_0x326429)=>_0x3af1c7(_0x267593,_0x326429,_0x4dfd66);let Ie=class{constructor(_0x590c1f,_0x50793d,_0x540cac){const _0x5d5eda=_0x3022d6;this[_0x5d5eda(0xee)]=_0x590c1f,this[_0x5d5eda(0x10f)]=_0x50793d,this[_0x5d5eda(0xcc)]=_0x540cac,this[_0x5d5eda(0x388)]();}[_0x3022d6(0x388)](){const _0x379959=_0x3022d6;this[_0x379959(0x10f)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5ad23a,_0x8ff70)=>_0x8ff70(_0x5ad23a)[_0x379959(0x23e)](v[_0x379959(0x171)](async _0x101bda=>{const _0x24cf80=_0x379959,_0x2af789=_0x101bda;if(_0x2af789[_0x24cf80(0x15b)]===0x191&&window[_0x24cf80(0x1e7)](this[_0x24cf80(0xcc)]['t']('auth.needGotoLoginAlert'))){const _0x1c0956=window[_0x24cf80(0x3e1)](window[_0x24cf80(0x122)][_0x24cf80(0x262)]);window[_0x24cf80(0x122)][_0x24cf80(0x262)]=this[_0x24cf80(0x275)]()+_0x24cf80(0x137)+_0x1c0956;}return _0x2af789;}))});}[_0x3022d6(0x275)](){const _0x418f52=_0x3022d6;var _0x547adf;return(_0x547adf=this[_0x418f52(0xee)]['getConfig'](mt))!=null?_0x547adf:Zt;}};Ie=ki([we(0x0,o[_0x3022d6(0x3be)]),we(0x1,o[_0x3022d6(0x291)](U[_0x3022d6(0x37e)])),we(0x2,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)]))],Ie);var Bi=Object[_0x3022d6(0x131)],Vi=Object[_0x3022d6(0x2b4)],Wi=(_0x3768ff,_0x25bb55,_0x14cc9f,_0x5d7769)=>{const _0x2d6baa=_0x3022d6;for(var _0x4bd6cd=_0x5d7769>0x1?void 0x0:_0x5d7769?Vi(_0x25bb55,_0x14cc9f):_0x25bb55,_0x4af96b=_0x3768ff[_0x2d6baa(0x2ce)]-0x1,_0x38602d;_0x4af96b>=0x0;_0x4af96b--)(_0x38602d=_0x3768ff[_0x4af96b])&&(_0x4bd6cd=(_0x5d7769?_0x38602d(_0x25bb55,_0x14cc9f,_0x4bd6cd):_0x38602d(_0x4bd6cd))||_0x4bd6cd);return _0x5d7769&&_0x4bd6cd&&Bi(_0x25bb55,_0x14cc9f,_0x4bd6cd),_0x4bd6cd;},at=(_0x2aee3b,_0x275f2c)=>(_0x48af27,_0x1f8cb1)=>_0x275f2c(_0x48af27,_0x1f8cb1,_0x2aee3b);const Mt=_0x3022d6(0x274),Fi=_0x3022d6(0x34c);exports[_0x3022d6(0xc0)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x22d5bc,_0x2b32f0){const _0x47c182=_0x3022d6;super(),this[_0x47c182(0x396)]=_0x22d5bc,this[_0x47c182(0xee)]=_0x2b32f0,this[_0x47c182(0xa0)]();}[_0x3022d6(0xa0)](){const _0x2b3f49=_0x3022d6,_0xf97820=this;this[_0x2b3f49(0x14a)](this[_0x2b3f49(0x396)][_0x2b3f49(0x9e)]({'priority':0x3e7,'interceptor':U[_0x2b3f49(0x292)]({'isMatch'(_0x511737){const _0x455b06=_0x2b3f49;var _0x502ee2;if(_0x511737[_0x455b06(0x259)]===_0x455b06(0x1a5)&&((_0x502ee2=_0x511737[_0x455b06(0x178)])!=null&&_0x502ee2[_0x455b06(0x1ad)])){const {objectID:_0x59ea2f,objectType:_0x46e59e}=_0x511737[_0x455b06(0x178)][_0x455b06(0x1ad)]||{};if(!_0x59ea2f||_0x46e59e===void 0x0)return!0x1;const _0xe546ed=_0xf97820[_0x455b06(0xe8)]()+'/'+_0x46e59e+_0x455b06(0x373)+_0x59ea2f+_0x455b06(0x26e);if(_0x511737[_0x455b06(0x2c7)]===_0xe546ed)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xd04952){const _0x315f27=_0x2b3f49;var _0x53dfaa;return(_0x53dfaa=_0xd04952[_0x315f27(0x178)])==null?void 0x0:_0x53dfaa[_0x315f27(0x1ad)];},'mergeParamsToRequest'(_0x485263,_0x2af748){const _0x67b013=_0x2b3f49,_0x3081c4=_0xf97820[_0x67b013(0xe8)]()+_0x67b013(0x1b1),_0x17efd7=_0x485263[_0x67b013(0xb0)]((_0x56d326,_0x1871a7)=>{const _0xd659e7=_0x67b013,{unitID:_0x361f5b,objectID:_0x69545,objectType:_0x5d24ee,actions:_0x2a4aea}=_0x1871a7;return _0x56d326[_0x361f5b]||(_0x56d326[_0x361f5b]={}),_0x56d326[_0x361f5b][_0x69545]||(_0x56d326[_0x361f5b][_0x69545]={'objectID':_0x69545,'objectType':_0x5d24ee,'actions':[]}),_0x56d326[_0x361f5b][_0x69545][_0xd659e7(0x2d6)][_0xd659e7(0x42d)](..._0x2a4aea),_0x56d326;},{}),_0x4dd689=[];for(const _0x4148a9 in _0x17efd7)for(const _0x413e45 in _0x17efd7[_0x4148a9]){const {actions:_0x38d1c4,objectType:_0x41000c}=_0x17efd7[_0x4148a9][_0x413e45],_0x368b9c=[...new Set(_0x38d1c4)];_0x4dd689[_0x67b013(0x42d)]({'unitID':_0x4148a9,'objectID':_0x413e45,'objectType':_0x41000c,'actions':_0x368b9c});}return new U[(_0x67b013(0x15d))](_0x67b013(0x1a5),_0x3081c4,{'headers':_0x2af748[_0x67b013(0x37f)],'withCredentials':_0x2af748['withCredentials'],'responseType':_0x2af748[_0x67b013(0x8c)],'body':{'requests':_0x4dd689}});}},{'distributeResult'(_0x1117d8,_0x3fa018){const {objectActions:_0x573cee}=_0x1117d8;return _0x3fa018['map'](_0x326ea9=>{const _0x10fce2=_0xbc10,{unitID:_0x469606,objectID:_0x44e292,actions:_0x126cd6}=_0x326ea9,_0x1c7bde=_0x573cee[_0x10fce2(0x99)](_0x12c56c=>_0x12c56c[_0x10fce2(0x367)]===_0x469606&&_0x12c56c[_0x10fce2(0x408)]===_0x44e292),_0x3c4616=_0x126cd6[_0x10fce2(0x317)](_0x52bb01=>_0x1c7bde==null?void 0x0:_0x1c7bde[_0x10fce2(0x2d6)][_0x10fce2(0x99)](_0x45eaeb=>_0x45eaeb[_0x10fce2(0xfc)]===_0x52bb01))['filter'](_0x535d0e=>!!_0x535d0e);return{'config':_0x326ea9,'result':{'actions':_0x3c4616,'error':_0x1117d8['error']}};});}})}));}[_0x3022d6(0xe8)](){const _0x2047ac=_0x3022d6;var _0x16b3ed;return(_0x16b3ed=this[_0x2047ac(0xee)]['getConfig'](Mt))!=null?_0x16b3ed:Fi;}async['create'](_0x37a02b){const _0x1cfac2=_0x3022d6,_0x59b1f2=this[_0x1cfac2(0xe8)]()+'/'+_0x37a02b[_0x1cfac2(0x3a3)]+_0x1cfac2(0x120);return(await this[_0x1cfac2(0x396)][_0x1cfac2(0x45d)](_0x59b1f2,{'body':_0x37a02b}))[_0x1cfac2(0x1ad)][_0x1cfac2(0x408)]||'';}async[_0x3022d6(0x33f)](_0x4009cb){const _0xca9716=_0x3022d6,_0x56ba18=this[_0xca9716(0xe8)]()+_0xca9716(0x2fb);return(await this[_0xca9716(0x396)]['post'](_0x56ba18,{'body':_0x4009cb}))[_0xca9716(0x1ad)][_0xca9716(0xa9)];}async[_0x3022d6(0x37b)](_0x41400e){const _0x15f475=_0x3022d6,_0x41e698=this[_0x15f475(0xe8)]()+'/'+_0x41400e['objectType']+'/object/'+_0x41400e[_0x15f475(0x408)];await this[_0x15f475(0x396)][_0x15f475(0x3d0)](_0x41e698,{'body':_0x41400e});}async[_0x3022d6(0x2d4)](_0x5e6d4d){const _0x235dd4=_0x3022d6,_0x3b4ca2=this[_0x235dd4(0xe8)]()+'/'+_0x5e6d4d[_0x235dd4(0x3a3)]+'/object/'+_0x5e6d4d['objectID']+'/allowed';return(await this[_0x235dd4(0x396)][_0x235dd4(0x45d)](_0x3b4ca2,{'body':_0x5e6d4d}))['body'][_0x235dd4(0x2d6)];}async[_0x3022d6(0x18e)](_0x3fa302){const _0x97bb19=_0x3022d6,_0x2cd8ec=this[_0x97bb19(0xe8)]()+_0x97bb19(0x1b1);return(await this[_0x97bb19(0x396)][_0x97bb19(0x45d)](_0x2cd8ec,{'body':{'requests':_0x3fa302}}))['body'][_0x97bb19(0x20d)];}async[_0x3022d6(0x248)](_0x1018a6){const _0x2e4780=_0x3022d6,_0x46af3e=this[_0x2e4780(0xe8)]()+'/'+_0x1018a6[_0x2e4780(0x3a3)]+_0x2e4780(0x1a0),_0x3452cb=await this[_0x2e4780(0x396)][_0x2e4780(0x45d)](_0x46af3e,{'body':_0x1018a6});return{'roles':_0x3452cb[_0x2e4780(0x1ad)][_0x2e4780(0x407)],'actions':_0x3452cb[_0x2e4780(0x1ad)][_0x2e4780(0x2d6)]};}async['deleteCollaborator'](_0x3bdd77){const _0x1701cf=_0x3022d6,_0x38a3f9=this[_0x1701cf(0xe8)]()+_0x1701cf(0x410);await this['_HTTPService'][_0x1701cf(0x1af)](_0x38a3f9,{'params':{'collaboratorID':_0x3bdd77[_0x1701cf(0x221)],'objectID':_0x3bdd77[_0x1701cf(0x408)],'unitID':_0x3bdd77[_0x1701cf(0x367)]}});}async['updateCollaborator'](_0xd0b606){const _0x21a3d3=_0x3022d6,_0x1fb859=this['_getAPIPrefixPath']()+_0x21a3d3(0x410);await this[_0x21a3d3(0x396)][_0x21a3d3(0x327)](_0x1fb859,{'body':_0xd0b606});}async['createCollaborator'](_0x4106b4){const _0x63bbec=_0x3022d6,_0x3d0943=this[_0x63bbec(0xe8)]()+_0x63bbec(0x410);await this[_0x63bbec(0x396)][_0x63bbec(0x45d)](_0x3d0943,{'body':_0x4106b4});}async['listCollaborators'](_0x140a45){const _0x5f206b=_0x3022d6,_0x503186=this[_0x5f206b(0xe8)]()+_0x5f206b(0x410);return(await this['_HTTPService']['get'](_0x503186,{'params':{'objectID':_0x140a45[_0x5f206b(0x408)],'unitID':_0x140a45[_0x5f206b(0x367)]}}))[_0x5f206b(0x1ad)][_0x5f206b(0x402)];}async[_0x3022d6(0x264)](_0x5beae4){const _0x5cf20b=_0x3022d6,_0x22b871=this['_getAPIPrefixPath']()+_0x5cf20b(0x410);await this[_0x5cf20b(0x396)]['put'](_0x22b871,{'body':_0x5beae4});}},exports[_0x3022d6(0xc0)]=Wi([at(0x0,o[_0x3022d6(0x291)](U[_0x3022d6(0x37e)])),at(0x1,o[_0x3022d6(0x291)](o[_0x3022d6(0x3be)]))],exports[_0x3022d6(0xc0)]);var Gi=Object[_0x3022d6(0x131)],Yi=Object[_0x3022d6(0x2b4)],Ki=(_0x55d51f,_0x229c0b,_0x435cbe,_0x919a58)=>{const _0xdae108=_0x3022d6;for(var _0x22499d=_0x919a58>0x1?void 0x0:_0x919a58?Yi(_0x229c0b,_0x435cbe):_0x229c0b,_0x30aa4a=_0x55d51f[_0xdae108(0x2ce)]-0x1,_0x24f5e0;_0x30aa4a>=0x0;_0x30aa4a--)(_0x24f5e0=_0x55d51f[_0x30aa4a])&&(_0x22499d=(_0x919a58?_0x24f5e0(_0x229c0b,_0x435cbe,_0x22499d):_0x24f5e0(_0x22499d))||_0x22499d);return _0x919a58&&_0x22499d&&Gi(_0x229c0b,_0x435cbe,_0x22499d),_0x22499d;},Me=(_0x1c2159,_0x4d2d9f)=>(_0x5389a7,_0x2cfc99)=>_0x4d2d9f(_0x5389a7,_0x2cfc99,_0x1c2159);const Xi=['image/png',_0x3022d6(0x277),'image/jpg',_0x3022d6(0x26a),_0x3022d6(0x2b1)],qi=0x5*0x400*0x400,zi=_0x3022d6(0x1ae),Ji='/universer-api/stream/file/upload',Zi=_0x3022d6(0x2bb),Qi=_0x3022d6(0x3a4);exports['ImageIoService']=class{constructor(_0x2d7910,_0x3552e1,_0x27958b){const _0x52ed2e=_0x3022d6;u(this,'_waitCount',0x0),u(this,_0x52ed2e(0x1b3),new v['Subject']()),u(this,'change$',this['_change$']),u(this,_0x52ed2e(0x8a),new Map()),(this[_0x52ed2e(0x10f)]=_0x2d7910,this[_0x52ed2e(0xee)]=_0x3552e1,this['_univerInstanceService']=_0x27958b);}['setWaitCount'](_0x53f017){const _0x2de70c=_0x3022d6;this[_0x2de70c(0x446)]=_0x53f017,this[_0x2de70c(0x1b3)][_0x2de70c(0x116)](_0x53f017);}['getImageSourceCache'](_0x4e0772,_0x4e5ace){const _0x5d052a=_0x3022d6;if(_0x4e5ace===A[_0x5d052a(0x3f4)][_0x5d052a(0x363)]){const _0x41c6f1=new Image();return _0x41c6f1[_0x5d052a(0x202)]=_0x4e0772,_0x41c6f1;}return this[_0x5d052a(0x8a)][_0x5d052a(0x84)](_0x4e0772);}[_0x3022d6(0x189)](_0xfa593,_0x2f288e,_0x874729){const _0x1d0802=_0x3022d6;_0x2f288e===A['ImageSourceType'][_0x1d0802(0x363)]||_0x874729==null||this['_imageSourceCache'][_0x1d0802(0x182)](_0xfa593,_0x874729);}async[_0x3022d6(0x3a5)](_0x577445){const _0x2712cb=_0x3022d6;try{const _0x33e798=this[_0x2712cb(0x36e)](this[_0x2712cb(0x126)](),''+_0x577445),_0x4bf161=(await this['_httpService'][_0x2712cb(0x84)](_0x33e798))['body'];return _0x4bf161['error']&&_0x4bf161[_0x2712cb(0x404)][_0x2712cb(0x2a2)]===gt['OK']?Promise[_0x2712cb(0x285)](_0x4bf161[_0x2712cb(0x2c7)]):Promise[_0x2712cb(0x252)](_0x4bf161[_0x2712cb(0x404)]);}catch(_0x2b59be){return Promise[_0x2712cb(0x252)](_0x2b59be);}}async['saveImage'](_0xfbd248){const _0x5e33af=_0x3022d6;let _0x4063b8='';if(!Xi[_0x5e33af(0x2fa)](_0xfbd248[_0x5e33af(0x1f3)]))return this['_decreaseWaiting'](),Promise[_0x5e33af(0x252)](new Error(A['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0xfbd248[_0x5e33af(0x2ca)]>qi)return this[_0x5e33af(0x239)](),Promise[_0x5e33af(0x252)](new Error(A[_0x5e33af(0x34f)]['ERROR_EXCEED_SIZE']));try{const _0x1f3da0=new FormData();_0x1f3da0[_0x5e33af(0x1d7)](_0x5e33af(0xf4),_0xfbd248);const _0x532a11=this[_0x5e33af(0x17c)]['getFocusedUnit'](),_0x3f5c03=_0x532a11==null?void 0x0:_0x532a11[_0x5e33af(0x29c)]();if(!_0x3f5c03)throw new Error(_0x5e33af(0x441));const _0x270676=this[_0x5e33af(0x106)]()+_0x5e33af(0x2c3)+_0xfbd248[_0x5e33af(0x2ca)][_0x5e33af(0x267)]()+_0x5e33af(0x2b7)+ft[_0x5e33af(0x449)]+'&assign='+encodeURIComponent(_0x3f5c03),_0x525e8c=await(await fetch(_0x270676,{'method':_0x5e33af(0x1a5),'body':_0x1f3da0}))['json']();if(typeof _0x525e8c[_0x5e33af(0x42e)]!=_0x5e33af(0x383))return this[_0x5e33af(0x239)](),Promise['reject'](new Error(A[_0x5e33af(0x34f)][_0x5e33af(0x22d)]));_0x4063b8=_0x525e8c[_0x5e33af(0x42e)];}catch{return this[_0x5e33af(0x239)](),Promise[_0x5e33af(0x252)](new Error(A[_0x5e33af(0x34f)][_0x5e33af(0x22d)]));}return new Promise((_0x7d8ec0,_0x1d6ed2)=>{const _0x37a9fe=_0x5e33af,_0x355173=new FileReader();_0x355173['readAsDataURL'](_0xfbd248),_0x355173[_0x37a9fe(0x1c4)]=_0x4bcd50=>{const _0x4b5f33=_0x37a9fe;var _0x18076e;const _0x5b92bb=(_0x18076e=_0x4bcd50[_0x4b5f33(0x2f9)])==null?void 0x0:_0x18076e['result'];if(_0x5b92bb==null){this[_0x4b5f33(0x239)](),_0x1d6ed2(new Error(A[_0x4b5f33(0x34f)][_0x4b5f33(0x22d)]));return;}const _0xe0f8e9=o[_0x4b5f33(0x418)][_0x4b5f33(0x24e)](0x6);_0x7d8ec0({'imageId':_0xe0f8e9,'imageSourceType':A[_0x4b5f33(0x3f4)][_0x4b5f33(0xf1)],'source':_0x4063b8,'base64Cache':_0x5b92bb,'status':A[_0x4b5f33(0x34f)][_0x4b5f33(0xe5)]}),this[_0x4b5f33(0x239)]();};});}['_getUploadFileURL'](){const _0x46d001=_0x3022d6;var _0x7d1d46;return(_0x7d1d46=this['_configService'][_0x46d001(0x1bd)](zi))!=null?_0x7d1d46:Ji;}[_0x3022d6(0x126)](){const _0x2a4a57=_0x3022d6;var _0x5de54c;return(_0x5de54c=this[_0x2a4a57(0xee)][_0x2a4a57(0x1bd)](Zi))!=null?_0x5de54c:Qi;}['_replaceFileID'](_0x63808c,_0x5cf701){const _0x5c4d63=_0x3022d6;return _0x63808c[_0x5c4d63(0x3ab)]('{fileID}',_0x5cf701);}[_0x3022d6(0x239)](){const _0x1ba938=_0x3022d6;this['_waitCount']-=0x1,this['_change$'][_0x1ba938(0x116)](this[_0x1ba938(0x446)]);}},exports[_0x3022d6(0x1de)]=Ki([Me(0x0,o['Inject'](U['HTTPService'])),Me(0x1,o[_0x3022d6(0x3be)]),Me(0x2,o[_0x3022d6(0x291)](o[_0x3022d6(0xb8)]))],exports[_0x3022d6(0x1de)]);var en=Object[_0x3022d6(0x131)],tn=Object[_0x3022d6(0x2b4)],sn=(_0x2615b8,_0x5aba83,_0x487032,_0x2fa78c)=>{for(var _0x14bf79=_0x2fa78c>0x1?void 0x0:_0x2fa78c?tn(_0x5aba83,_0x487032):_0x5aba83,_0x4d04b5=_0x2615b8['length']-0x1,_0x25f268;_0x4d04b5>=0x0;_0x4d04b5--)(_0x25f268=_0x2615b8[_0x4d04b5])&&(_0x14bf79=(_0x2fa78c?_0x25f268(_0x5aba83,_0x487032,_0x14bf79):_0x25f268(_0x14bf79))||_0x14bf79);return _0x2fa78c&&_0x14bf79&&en(_0x5aba83,_0x487032,_0x14bf79),_0x14bf79;},ae=(_0x424331,_0x53f943)=>(_0x1b0475,_0x1c8dfd)=>_0x53f943(_0x1b0475,_0x1c8dfd,_0x424331);let Se=class extends o[_0x3022d6(0x460)]{constructor(_0x511d6d,_0xfaf903,_0x2e8a04,_0xdf82f6,_0x479a8b){const _0x2da27c=_0x3022d6;super(),this['_injector']=_0x511d6d,this[_0x2da27c(0x17c)]=_0xfaf903,this[_0x2da27c(0x3a2)]=_0x2e8a04,this[_0x2da27c(0xdb)]=_0xdf82f6,this[_0x2da27c(0x3b1)]=_0x479a8b,this['_initUnitPermissionChange'](),this[_0x2da27c(0x25a)]();}[_0x3022d6(0x25a)](){const _0x324886=_0x3022d6,_0x161a7d=async _0x480e29=>{const _0x4d04c3=_0xbc10;(await this[_0x4d04c3(0xdb)][_0x4d04c3(0x3b2)](_0x480e29))[_0x4d04c3(0x144)][_0x4d04c3(0x23e)](E[_0x4d04c3(0x1c0)](_0x39ce91=>_0x39ce91[_0x4d04c3(0x31c)]===_['CollaborationEvent'][_0x4d04c3(0x83)]),E[_0x4d04c3(0xc7)](this[_0x4d04c3(0x374)]))[_0x4d04c3(0x265)](_0x4fa8f3=>{const _0x2e395d=_0x4d04c3,_0x506907=_0x4fa8f3,{reason:_0x447084}=_0x506907[_0x2e395d(0x2be)];this[_0x2e395d(0x123)][_0x2e395d(0x84)](L[_0x2e395d(0xaf)])[_0x2e395d(0x1d3)]({'type':Q[_0x2e395d(0x1e5)]['Error'],'content':this[_0x2e395d(0x3b1)]['t'](_0x2e395d(0x468))+'('+_0x447084+')'}),this[_0x2e395d(0x3a2)][_0x2e395d(0x27f)](new p[(_0x2e395d(0x32f))](_0x480e29)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x480e29);});};v['merge'](this[_0x324886(0x17c)][_0x324886(0x2f6)](o[_0x324886(0x23f)][_0x324886(0x2c0)]),this[_0x324886(0x17c)][_0x324886(0x2f6)](o[_0x324886(0x23f)]['UNIVER_DOC']))[_0x324886(0x23e)](E[_0x324886(0x317)](_0x50edca=>_0x50edca['getUnitId']()),E[_0x324886(0x1c0)](_0x284a22=>!o[_0x324886(0x152)](_0x284a22)),E['takeUntil'](this[_0x324886(0x374)]))[_0x324886(0x265)](_0x2bac35=>{_0x161a7d(_0x2bac35);});}[_0x3022d6(0x337)](){const _0x5083ce=_0x3022d6,_0x2cd70e=async _0xc28033=>{const _0x2bca1f=_0xbc10;(await this[_0x2bca1f(0xdb)][_0x2bca1f(0x3b2)](_0xc28033))[_0x2bca1f(0x144)][_0x2bca1f(0x23e)](E[_0x2bca1f(0x1c0)](_0x2e3abf=>_0x2e3abf[_0x2bca1f(0x31c)]===_[_0x2bca1f(0x26c)][_0x2bca1f(0x330)]),E[_0x2bca1f(0xc7)](this[_0x2bca1f(0x374)]))[_0x2bca1f(0x265)](_0x11595b=>{const _0x410da8=_0x2bca1f,_0x34c4ff=_0x11595b,{objectId:_0x2b0083}=_0x34c4ff[_0x410da8(0x2be)],_0xcd28a=this['_injector'][_0x410da8(0x84)](J['SheetPermissionInitController']);_0x2b0083===_0xc28033?_0xcd28a[_0x410da8(0x325)](_0xc28033):_0xcd28a[_0x410da8(0x226)](_0xc28033,_0x2b0083);});};v[_0x5083ce(0xc5)](this['_univerInstanceService'][_0x5083ce(0x2f6)](o[_0x5083ce(0x23f)][_0x5083ce(0x2c0)]),this[_0x5083ce(0x17c)][_0x5083ce(0x2f6)](o[_0x5083ce(0x23f)]['UNIVER_DOC']))[_0x5083ce(0x23e)](E[_0x5083ce(0x317)](_0x2bcf95=>_0x2bcf95[_0x5083ce(0x29c)]()),E[_0x5083ce(0x1c0)](_0x397189=>!o['isInternalEditorID'](_0x397189)),E['takeUntil'](this[_0x5083ce(0x374)]))[_0x5083ce(0x265)](_0x5ccb10=>{_0x2cd70e(_0x5ccb10);});}};Se=sn([o[_0x3022d6(0x3ef)](o['LifecycleStages'][_0x3022d6(0xd4)],Se),ae(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),ae(0x1,o[_0x3022d6(0xb8)]),ae(0x2,o['IPermissionService']),ae(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x2ee)])),ae(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)]))],Se);var yt=Object[_0x3022d6(0x131)],nn=Object[_0x3022d6(0x2b4)],rn=(_0x159d3f,_0x23a720,_0xbe718e)=>_0x23a720 in _0x159d3f?yt(_0x159d3f,_0x23a720,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbe718e}):_0x159d3f[_0x23a720]=_0xbe718e,on=(_0x5b4c88,_0x54efc7,_0x2dee11,_0x5c976b)=>{for(var _0x53b28e=_0x5c976b>0x1?void 0x0:_0x5c976b?nn(_0x54efc7,_0x2dee11):_0x54efc7,_0x3a8005=_0x5b4c88['length']-0x1,_0x2a9cad;_0x3a8005>=0x0;_0x3a8005--)(_0x2a9cad=_0x5b4c88[_0x3a8005])&&(_0x53b28e=(_0x5c976b?_0x2a9cad(_0x54efc7,_0x2dee11,_0x53b28e):_0x2a9cad(_0x53b28e))||_0x53b28e);return _0x5c976b&&_0x53b28e&&yt(_0x54efc7,_0x2dee11,_0x53b28e),_0x53b28e;},ye=(_0x286e6a,_0x4fb3c3)=>(_0x37569d,_0x21c3c2)=>_0x4fb3c3(_0x37569d,_0x21c3c2,_0x286e6a),an=(_0x572745,_0x3e31e5,_0x3b8699)=>rn(_0x572745,_0x3e31e5+'',_0x3b8699);const cn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports['UniverCollaborationClientPlugin']=class extends o[_0x3022d6(0x164)]{constructor(_0x221631,_0x31ff37,_0x2a3527,_0x3af6fd){const _0x36e8a3=_0x3022d6;super(),this['_config']=_0x221631,this[_0x36e8a3(0x38b)]=_0x31ff37,this['_renderManagerService']=_0x2a3527,this[_0x36e8a3(0x123)]=_0x3af6fd;}[_0x3022d6(0x435)](){const _0x1b7820=_0x3022d6;this[_0x1b7820(0x3b4)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x3022d6(0x3b4)](){const _0x410808=_0x3022d6;var _0x2871ff,_0x3be616,_0x3185e0,_0x2b1c55;this[_0x410808(0x123)][_0x410808(0x151)](o['IUndoRedoService'])&&this[_0x410808(0x38b)][_0x410808(0x404)](_0x410808(0x153),_0x410808(0x29b));let _0x5eb54c=[[o[_0x410808(0x114)],{'useClass':$e}],[exports['CollaborationSessionService']],[Fe],[U[_0x410808(0x37e)]],[Ye,{'useClass':wt}],[Y],[exports[_0x410808(0x174)]],[U[_0x410808(0x2e8)]],[ge],[me],[ve],[We],[Ie],[Ve],[Se],[Be,{'useClass':(_0x3be616=(_0x2871ff=this['_config'])==null?void 0x0:_0x2871ff[_0x410808(0xc8)])!=null?_0x3be616:exports[_0x410808(0x3b0)]}],[U[_0x410808(0x32c)],{'useClass':U[_0x410808(0x298)]}],[o[_0x410808(0x143)],{'useClass':exports[_0x410808(0x225)]}],[o[_0x410808(0x301)],{'useClass':exports[_0x410808(0xc0)]}],[A[_0x410808(0xed)],{'useClass':exports[_0x410808(0x1de)]}],[exports[_0x410808(0x431)]],[exports[_0x410808(0x336)]],[exports[_0x410808(0x269)]],[ue],[Z]];(_0x3185e0=this['_config'])!=null&&_0x3185e0[_0x410808(0x260)]&&_0x5eb54c[_0x410808(0x42d)]([pe,{'useClass':us}]),_0x5eb54c=o['mergeOverrideWithDependencies'](_0x5eb54c,(_0x2b1c55=this[_0x410808(0x87)])==null?void 0x0:_0x2b1c55[_0x410808(0x14e)]),_0x5eb54c[_0x410808(0x3d3)](_0x5597b0=>this[_0x410808(0x123)][_0x410808(0xe1)](_0x5597b0)),this[_0x410808(0x1d9)]();}['_registerRenderDependencies'](){const _0xbf1cd=_0x3022d6;this['disposeWithMe'](this['_renderManagerService'][_0xbf1cd(0x36b)](o['UniverInstanceType'][_0xbf1cd(0x237)],[de])),this['disposeWithMe'](this[_0xbf1cd(0x235)][_0xbf1cd(0x36b)](o[_0xbf1cd(0x23f)][_0xbf1cd(0x2c0)],[je]));}['_initModules'](){const _0x50840a=_0x3022d6;var _0x29fe07,_0x11ec11;this[_0x50840a(0x123)]['get'](U['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U[_0x50840a(0x107)]({'maxParallel':0x6})}),(_0x29fe07=this[_0x50840a(0x87)])!=null&&_0x29fe07['enableOfflineEditing']||this[_0x50840a(0x123)][_0x50840a(0x84)](exports[_0x50840a(0x174)])[_0x50840a(0x196)](),(_0x11ec11=this[_0x50840a(0x87)])!=null&&_0x11ec11[_0x50840a(0x12f)]&&this['_injector'][_0x50840a(0x84)](Ie);}},an(exports['UniverCollaborationClientPlugin'],'pluginName',cn),exports['UniverCollaborationClientPlugin']=on([o[_0x3022d6(0x38f)](_['UniverCollaborationPlugin']),ye(0x1,o[_0x3022d6(0x22f)]),ye(0x2,b[_0x3022d6(0x13e)]),ye(0x3,o[_0x3022d6(0x291)](o['Injector']))],exports[_0x3022d6(0x233)]),exports[_0x3022d6(0x274)]=Mt,exports[_0x3022d6(0x3c2)]=vt,exports[_0x3022d6(0x117)]=_t,exports['CollaborationStatus']=D,exports['CollaborationStatusDisplay']=Ut,exports[_0x3022d6(0x2ba)]=Ve,exports[_0x3022d6(0x28c)]=ut,exports[_0x3022d6(0xa5)]=He,exports[_0x3022d6(0x22b)]=Be,exports[_0x3022d6(0xaa)]=Ye,exports[_0x3022d6(0x2e0)]=St,exports[_0x3022d6(0x1c2)]=mt,exports['SEND_CHANGESET_TIMEOUT_KEY']=ht,exports[_0x3022d6(0x351)]=ct,exports[_0x3022d6(0xcf)]=lt,exports['SessionStatus']=G,exports['SheetCollabCursorShape']=Rt,exports['WebURLService']=wt,exports[_0x3022d6(0x160)]=It,exports['serializeCombRequest']=pt;
1
+ 'use strict';const _0x30e940=_0x3b20;(function(_0xc279ef,_0x4d0c06){const _0xe7d95c=_0x3b20,_0x42af52=_0xc279ef();while(!![]){try{const _0x4731be=-parseInt(_0xe7d95c(0x228))/0x1+parseInt(_0xe7d95c(0x3f6))/0x2*(parseInt(_0xe7d95c(0x444))/0x3)+parseInt(_0xe7d95c(0x2cc))/0x4*(-parseInt(_0xe7d95c(0x45f))/0x5)+-parseInt(_0xe7d95c(0x2c7))/0x6+-parseInt(_0xe7d95c(0x339))/0x7*(-parseInt(_0xe7d95c(0x21a))/0x8)+parseInt(_0xe7d95c(0x3ec))/0x9+parseInt(_0xe7d95c(0x13d))/0xa;if(_0x4731be===_0x4d0c06)break;else _0x42af52['push'](_0x42af52['shift']());}catch(_0x2a7f76){_0x42af52['push'](_0x42af52['shift']());}}}(_0x59d8,0x87658));var xt=Object['defineProperty'],Ht=(_0x4535da,_0x2f299b,_0x257fbc)=>_0x2f299b in _0x4535da?xt(_0x4535da,_0x2f299b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x257fbc}):_0x4535da[_0x2f299b]=_0x257fbc,u=(_0xa08ffd,_0x42f1ac,_0x1c0eca)=>Ht(_0xa08ffd,typeof _0x42f1ac!=_0x30e940(0x3b6)?_0x42f1ac+'':_0x42f1ac,_0x1c0eca);Object[_0x30e940(0x36c)](exports,Symbol[_0x30e940(0x23e)],{'value':_0x30e940(0x210)});const o=require(_0x30e940(0x310)),p=require('@univerjs/sheets'),Q=require(_0x30e940(0x254)),L=require(_0x30e940(0x171)),_=require(_0x30e940(0x25b)),v=require(_0x30e940(0x3c4)),E=require(_0x30e940(0x42a)),P=require(_0x30e940(0x279)),U=require('@univerjs/network'),A=require(_0x30e940(0x1e2)),b=require(_0x30e940(0x86)),Ke=require('@univerjs/engine-formula'),xe=require(_0x30e940(0x40a)),J=require(_0x30e940(0x2ce)),y=require(_0x30e940(0x3bf)),kt=require(_0x30e940(0x192)),Bt=require(_0x30e940(0x3f9)),ct='SNAPSHOT_SERVER_URL_KEY',Vt=_0x30e940(0x41b),lt=_0x30e940(0x36e),ht='SEND_CHANGESET_TIMEOUT',Wt=0x7d0,_t='COLLAB_WEB_SOCKET_URL',Ft=_0x30e940(0x197),ut=_0x30e940(0x42e),Gt=0x7530,He=_0x30e940(0x371),dt=0x2710,Yt=_0x30e940(0x2fd),Kt=0x4e20,Xt=_0x30e940(0x305),qt=0x3,St=_0x30e940(0x2fa),zt=0x3e8,vt=_0x30e940(0x2df),Jt='/universer-api/comb',mt=_0x30e940(0x12c),Zt=_0x30e940(0xa8);var gt=(_0x15ad7a=>(_0x15ad7a[_0x15ad7a['UNDEFINED']=0x0]=_0x30e940(0x2ba),_0x15ad7a[_0x15ad7a['OK']=0x1]='OK',_0x15ad7a[_0x15ad7a[_0x30e940(0x136)]=0x2]=_0x30e940(0x136),_0x15ad7a[_0x15ad7a[_0x30e940(0x324)]=0x3]='PERMISSION_DENIED',_0x15ad7a[_0x15ad7a[_0x30e940(0x8a)]=0x4]='NOT_FOUND',_0x15ad7a[_0x15ad7a[_0x30e940(0x2fe)]=0x5]=_0x30e940(0x2fe),_0x15ad7a[_0x15ad7a[_0x30e940(0x3ef)]=0x6]=_0x30e940(0x3ef),_0x15ad7a[_0x15ad7a[_0x30e940(0x2bc)]=0x7]=_0x30e940(0x2bc),_0x15ad7a[_0x15ad7a[_0x30e940(0x91)]=0x8]=_0x30e940(0x91),_0x15ad7a[_0x15ad7a[_0x30e940(0x130)]=0x9]='COMPLETION_FINISHED',_0x15ad7a[_0x15ad7a['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x30e940(0x12b),_0x15ad7a[_0x15ad7a[_0x30e940(0x242)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x15ad7a[_0x15ad7a[_0x30e940(0x2d1)]=0x1772]=_0x30e940(0x2d1),_0x15ad7a[_0x15ad7a['APPLY_REJECT']=0x1b59]=_0x30e940(0x44a),_0x15ad7a[_0x15ad7a[_0x30e940(0x2b5)]=0x1b5a]=_0x30e940(0x2b5),_0x15ad7a[_0x15ad7a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x30e940(0x441),_0x15ad7a[_0x15ad7a[_0x30e940(0x103)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x15ad7a[_0x15ad7a[_0x30e940(0x1fc)]=0x1f41]=_0x30e940(0x1fc),_0x15ad7a[_0x15ad7a[_0x30e940(0x41e)]=0x2329]=_0x30e940(0x41e),_0x15ad7a[_0x15ad7a[_0x30e940(0x2ea)]=0x232a]=_0x30e940(0x2ea),_0x15ad7a[_0x15ad7a[_0x30e940(0x15b)]=0x232b]=_0x30e940(0x15b),_0x15ad7a[_0x15ad7a[_0x30e940(0x118)]=0x232c]=_0x30e940(0x118),_0x15ad7a[_0x15ad7a[_0x30e940(0xef)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x15ad7a[_0x15ad7a[_0x30e940(0x340)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x15ad7a[_0x15ad7a[_0x30e940(0x1a1)]=0x2712]=_0x30e940(0x1a1),_0x15ad7a[_0x15ad7a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x30e940(0x3cb),_0x15ad7a[_0x15ad7a[_0x30e940(0x28f)]=0x2714]=_0x30e940(0x28f),_0x15ad7a[_0x15ad7a[_0x30e940(0x3ed)]=-0x1]=_0x30e940(0x3ed),_0x15ad7a))(gt||{}),j=(_0x5d1b03=>(_0x5d1b03[_0x5d1b03[_0x30e940(0x294)]=0x0]=_0x30e940(0x294),_0x5d1b03[_0x5d1b03[_0x30e940(0x1f4)]=0x1]=_0x30e940(0x1f4),_0x5d1b03[_0x5d1b03['UNIVER_SHEET']=0x2]=_0x30e940(0x390),_0x5d1b03[_0x5d1b03[_0x30e940(0x2f2)]=0x3]=_0x30e940(0x2f2),_0x5d1b03[_0x5d1b03['UNIVER_PROJECT']=0x4]=_0x30e940(0x420),_0x5d1b03[_0x5d1b03['UNRECOGNIZED']=-0x1]=_0x30e940(0x3ed),_0x5d1b03))(j||{}),T=(_0x742740=>(_0x742740[_0x742740['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x742740[_0x742740[_0x30e940(0x229)]=0x1]=_0x30e940(0x229),_0x742740[_0x742740['JOIN']=0x2]='JOIN',_0x742740[_0x742740[_0x30e940(0x296)]=0x3]=_0x30e940(0x296),_0x742740[_0x742740['INGEST']=0x4]=_0x30e940(0x360),_0x742740[_0x742740['HEARTBEAT']=0x5]=_0x30e940(0x272),_0x742740[_0x742740[_0x30e940(0x2f6)]=0x6]=_0x30e940(0x2f6),_0x742740[_0x742740['UNRECOGNIZED']=-0x1]=_0x30e940(0x3ed),_0x742740))(T||{}),ke=(_0x4814f5=>(_0x4814f5[_0x4814f5['UNKNOWN_CODE']=0x0]=_0x30e940(0x17a),_0x4814f5[_0x4814f5['OK']=0x1]='OK',_0x4814f5[_0x4814f5[_0x30e940(0x1ee)]=0x2]=_0x30e940(0x1ee),_0x4814f5[_0x4814f5[_0x30e940(0x3ed)]=-0x1]=_0x30e940(0x3ed),_0x4814f5))(ke||{}),ft=(_0x36fa96=>(_0x36fa96[_0x36fa96[_0x30e940(0xaf)]=0x0]=_0x30e940(0xaf),_0x36fa96[_0x36fa96[_0x30e940(0x276)]=0x1]=_0x30e940(0x276),_0x36fa96[_0x36fa96['HttpExport']=0x2]=_0x30e940(0x2e0),_0x36fa96[_0x36fa96['UnitEmbedded']=0x3]=_0x30e940(0x2bf),_0x36fa96[_0x36fa96[_0x30e940(0x412)]=0x4]='UnitSnapshot',_0x36fa96[_0x36fa96[_0x30e940(0x3ed)]=-0x1]='UNRECOGNIZED',_0x36fa96))(ft||{}),Qt=Object[_0x30e940(0x36c)],es=Object[_0x30e940(0x1a2)],ts=(_0x6b706,_0x443da0,_0x107c85,_0x5f0911)=>{for(var _0x9c7833=_0x5f0911>0x1?void 0x0:_0x5f0911?es(_0x443da0,_0x107c85):_0x443da0,_0x46fbec=_0x6b706['length']-0x1,_0x1d0f1c;_0x46fbec>=0x0;_0x46fbec--)(_0x1d0f1c=_0x6b706[_0x46fbec])&&(_0x9c7833=(_0x5f0911?_0x1d0f1c(_0x443da0,_0x107c85,_0x9c7833):_0x1d0f1c(_0x9c7833))||_0x9c7833);return _0x5f0911&&_0x9c7833&&Qt(_0x443da0,_0x107c85,_0x9c7833),_0x9c7833;},Xe=(_0x43ef73,_0x183155)=>(_0x51a239,_0x4d35fe)=>_0x183155(_0x51a239,_0x4d35fe,_0x43ef73);let Y=class extends o['Disposable']{constructor(_0x555a85,_0x56eec4){const _0x29c0c9=_0x30e940;super(),u(this,_0x29c0c9(0xf8),new Map()),(this['_univerInstanceService']=_0x555a85,this[_0x29c0c9(0x413)]=_0x56eec4,this[_0x29c0c9(0x22c)](o[_0x29c0c9(0xa1)](v[_0x29c0c9(0xbd)](this[_0x29c0c9(0x43f)][_0x29c0c9(0x142)](o[_0x29c0c9(0x37c)]['UNIVER_SHEET'])['pipe'](E[_0x29c0c9(0x120)](_0x12e723=>_0x12e723['getUnitId']())),this[_0x29c0c9(0x43f)]['getTypeOfUnitDisposed$'](o[_0x29c0c9(0x37c)][_0x29c0c9(0x1f4)])[_0x29c0c9(0x2a9)](E['map'](_0x40dd7a=>_0x40dd7a[_0x29c0c9(0x280)]())),this[_0x29c0c9(0x43f)][_0x29c0c9(0x142)](o[_0x29c0c9(0x37c)]['UNIVER_SLIDE'])['pipe'](E[_0x29c0c9(0x120)](_0x113a04=>_0x113a04[_0x29c0c9(0x280)]())))['subscribe'](_0x17efbb=>this[_0x29c0c9(0x41d)](_0x17efbb)))));}[_0x30e940(0x173)](_0x322b27){const _0x56854a=_0x30e940;this[_0x56854a(0x413)][_0x56854a(0x173)](_0x322b27);}[_0x30e940(0x31c)](){const _0x3eeffe=_0x30e940;return this['_userManagerService'][_0x3eeffe(0x31c)]();}['updateMember'](_0x5dffd0,_0x51845f){const _0x45b130=_0x30e940;let _0x3a4ed5=this[_0x45b130(0xf8)]['get'](_0x5dffd0);_0x3a4ed5||(_0x3a4ed5=new ss(),this[_0x45b130(0xf8)]['set'](_0x5dffd0,_0x3a4ed5)),_0x3a4ed5['updateMember'](_0x51845f);}[_0x30e940(0x3e8)](_0x2f54bf,_0x266ed4){const _0x448e6f=_0x30e940,_0x5a555f=this[_0x448e6f(0xf8)][_0x448e6f(0x1f0)](_0x2f54bf);_0x5a555f&&_0x5a555f['removeMember'](_0x266ed4);}[_0x30e940(0x303)](_0x189565){const _0x4b5d90=_0x30e940;return this[_0x4b5d90(0xf8)][_0x4b5d90(0x1f0)](_0x189565);}[_0x30e940(0x275)](_0x334d51,_0x303f61){const _0x59a3c7=_0x30e940,_0x52a6e3=this[_0x59a3c7(0xf8)][_0x59a3c7(0x1f0)](_0x334d51);if(_0x52a6e3)return _0x52a6e3[_0x59a3c7(0x275)](_0x303f61);}[_0x30e940(0x41d)](_0x5a867f){const _0x315ab1=_0x30e940,_0x3f5193=this['_roomMembers'][_0x315ab1(0x1f0)](_0x5a867f);_0x3f5193&&(_0x3f5193[_0x315ab1(0xc6)](),this['_roomMembers'][_0x315ab1(0x244)](_0x5a867f));}[_0x30e940(0xc6)](){const _0x433461=_0x30e940;this[_0x433461(0xf8)][_0x433461(0x277)](_0x317df7=>_0x317df7['dispose']()),this[_0x433461(0xf8)]['clear']();}};Y=ts([Xe(0x0,o[_0x30e940(0x233)]),Xe(0x1,o['Inject'](o[_0x30e940(0x123)]))],Y);class ss extends o[_0x30e940(0x3c3)]{constructor(){const _0x208be4=_0x30e940;super(...arguments),u(this,_0x208be4(0x9a),new Map());}[_0x30e940(0xc6)](){const _0x5e0344=_0x30e940;this[_0x5e0344(0x9a)][_0x5e0344(0x9b)]();}['updateMember'](_0x3b2b80){const _0x31bd5d=_0x30e940;this[_0x31bd5d(0x9a)]['set'](_0x3b2b80['memberID'],_0x3b2b80);}[_0x30e940(0x3e8)](_0x381e28){const _0x106263=_0x30e940;this[_0x106263(0x9a)][_0x106263(0x244)](_0x381e28);}[_0x30e940(0x275)](_0x81f56c){const _0x1410c7=_0x30e940;return this['_members'][_0x1410c7(0x1f0)](_0x81f56c);}}function It(_0x219e18){const _0x48f260=_0x30e940;var _0x5b9cb9,_0x3469b7,_0x4817c2,_0x26f970;const _0x1e2700=_0x219e18['data'],_0x4e3776=JSON[_0x48f260(0x344)](_0x1e2700);switch(_0x4e3776[_0x48f260(0x322)]){case T[_0x48f260(0x272)]:case T[_0x48f260(0x229)]:{const _0x1a7fb9=_0x4e3776[_0x48f260(0x2d0)];return{..._0x4e3776,'data':_0x1a7fb9,'cmd':_0x4e3776[_0x48f260(0x322)]};}case T[_0x48f260(0x3fe)]:{const _0x47b4b3=_0x4e3776[_0x48f260(0x37b)];return{..._0x4e3776,'data':_0x47b4b3,'cmd':_0x4e3776[_0x48f260(0x322)]};}case T[_0x48f260(0x2f6)]:{const _0x4764f8=_0x4e3776['collaMsg'];switch(_0x4764f8['eventID']){case _[_0x48f260(0x284)][_0x48f260(0x327)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x5b9cb9=_0x4764f8[_0x48f260(0x35f)])==null?void 0x0:_0x5b9cb9['cs']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x30d)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x3469b7=_0x4764f8[_0x48f260(0x27b)])==null?void 0x0:_0x3469b7['cs']},'cmd':_0x4e3776['cmd']};case _[_0x48f260(0x284)][_0x48f260(0xa0)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x4817c2=_0x4764f8[_0x48f260(0x184)])==null?void 0x0:_0x4817c2['cs']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _['CollaborationEvent'][_0x48f260(0x2c6)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':(_0x26f970=_0x4764f8['csRejEvent'])==null?void 0x0:_0x26f970['cs']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x89)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0x3d4)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x473)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0xa9)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _['CollaborationEvent'][_0x48f260(0x1c4)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0x3cd)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x252)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['liveShareNewHost']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _['CollaborationEvent'][_0x48f260(0x21d)]:case _[_0x48f260(0x284)][_0x48f260(0x382)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0x145)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)]['LIVESHARE_TERMINATE']:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['liveShareNewHost']},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x37d)]:return{..._0x4e3776,'data':_0x4764f8,'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0x46c)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['commentUpdateEvent']},'cmd':_0x4e3776['cmd']};case _['CollaborationEvent'][_0x48f260(0x1a6)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8[_0x48f260(0xf7)]},'cmd':_0x4e3776[_0x48f260(0x322)]};case _[_0x48f260(0x284)][_0x48f260(0xd1)]:return{..._0x4e3776,'data':{..._0x4764f8,'data':_0x4764f8['shouldCloseConn']},'cmd':_0x4e3776[_0x48f260(0x322)]};default:return _0x4e3776;}}default:return _0x4e3776;}}function pt(_0x51e98d){const _0x3dc209=_0x30e940;switch(_0x51e98d[_0x3dc209(0x322)]){case T['HEARTBEAT']:case T[_0x3dc209(0x229)]:return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d['cmd'],'routeKey':_0x51e98d[_0x3dc209(0x34b)]});case T[_0x3dc209(0x360)]:{let _0xb31a16;switch(_0x51e98d['data'][_0x3dc209(0x15d)]){case _[_0x3dc209(0x284)][_0x3dc209(0x89)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x89)],'updateCursorEvent':_0x51e98d['data'][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x1c4)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x1c4)],'leaveEvent':_0x51e98d[_0x3dc209(0x10a)][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x473)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x473)],'joinEvent':_0x51e98d[_0x3dc209(0x10a)][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x252)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x51e98d[_0x3dc209(0x10a)][_0x3dc209(0x10a)]};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x382)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x382)],'liveShareOperation':_0x51e98d['data']['data']};break;}case _[_0x3dc209(0x284)][_0x3dc209(0x3e5)]:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x3e5)],'liveShareTerminate':_0x51e98d['data'][_0x3dc209(0x10a)]};break;}case _['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0xb31a16={'eventID':_[_0x3dc209(0x284)][_0x3dc209(0x361)],'liveShareRequestHost':_0x51e98d['data'][_0x3dc209(0x10a)]};break;}case _['CollaborationEvent'][_0x3dc209(0x21d)]:{_0xb31a16={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0xb31a16={'eventID':_0x51e98d[_0x3dc209(0x10a)]['eventID']};}return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d[_0x3dc209(0x322)],'routeKey':_0x51e98d['routeKey'],'collaMsg':_0xb31a16});}case T['JOIN']:return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d[_0x3dc209(0x322)],'routeKey':_0x51e98d['routeKey'],'joinReq':_0x51e98d[_0x3dc209(0x10a)]});case T[_0x3dc209(0x296)]:return JSON[_0x3dc209(0x1be)]({'cmd':_0x51e98d[_0x3dc209(0x322)],'routeKey':_0x51e98d[_0x3dc209(0x34b)],'leaveReq':_0x51e98d[_0x3dc209(0x10a)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var is=Object[_0x30e940(0x36c)],ns=Object[_0x30e940(0x1a2)],rs=(_0x4a0301,_0x66e14,_0x3f98a8,_0xf805c9)=>{for(var _0x25659f=_0xf805c9>0x1?void 0x0:_0xf805c9?ns(_0x66e14,_0x3f98a8):_0x66e14,_0x17d3ff=_0x4a0301['length']-0x1,_0x46c184;_0x17d3ff>=0x0;_0x17d3ff--)(_0x46c184=_0x4a0301[_0x17d3ff])&&(_0x25659f=(_0xf805c9?_0x46c184(_0x66e14,_0x3f98a8,_0x25659f):_0x46c184(_0x25659f))||_0x25659f);return _0xf805c9&&_0x25659f&&is(_0x66e14,_0x3f98a8,_0x25659f),_0x25659f;},se=(_0x4fdf8e,_0x25b022)=>(_0x4718c0,_0x8879c8)=>_0x25b022(_0x4718c0,_0x8879c8,_0x4fdf8e);const Be=o[_0x30e940(0x16b)]('univer-pro.collaboration-client-socket-service');function os(_0x4e0ba1,_0x22f0de,_0x2d3e9a){const _0x28782b=_0x30e940;return _0x4e0ba1+'/'+_0x22f0de+_0x28782b(0x1ae)+_0x2d3e9a+'/new_changes';}exports[_0x30e940(0x110)]=class{constructor(_0x448e3d,_0x352a10,_0x5d84d9,_0x41a7c1,_0x5a97e0){const _0x14c7ce=_0x30e940;this['_http']=_0x448e3d,this[_0x14c7ce(0x35a)]=_0x352a10,this[_0x14c7ce(0x160)]=_0x5d84d9,this[_0x14c7ce(0x198)]=_0x41a7c1,this[_0x14c7ce(0x31a)]=_0x5a97e0;}[_0x30e940(0x29f)](_0x379192){const _0x213a8c=_0x30e940,_0x4c3128=this[_0x213a8c(0x35a)][_0x213a8c(0x29f)](_0x379192);if(!_0x4c3128)throw new Error(_0x213a8c(0x3fc));const _0x37e96f=new o[(_0x213a8c(0x16f))](),_0x43fd46=new v['Subject']();_0x37e96f['add'](o[_0x213a8c(0xa1)](_0x4c3128[_0x213a8c(0x392)][_0x213a8c(0x196)](_0x4fb93d=>_0x43fd46[_0x213a8c(0x46e)](_0x4fb93d)))),_0x37e96f['add'](o[_0x213a8c(0xa1)](()=>_0x43fd46[_0x213a8c(0xb0)]()));const _0x1c1d87=new v[(_0x213a8c(0x457))]();_0x37e96f[_0x213a8c(0x418)](o[_0x213a8c(0xa1)](_0x4c3128['error$'][_0x213a8c(0x196)](_0x223733=>_0x1c1d87[_0x213a8c(0x46e)](_0x223733)))),_0x37e96f[_0x213a8c(0x418)](o[_0x213a8c(0xa1)](()=>_0x1c1d87[_0x213a8c(0xb0)]()));const _0x33fe44=new v[(_0x213a8c(0x457))]();_0x37e96f[_0x213a8c(0x418)](o['toDisposable'](_0x4c3128[_0x213a8c(0x3da)]['subscribe'](_0x47eef1=>{const _0x33ecb6=It(_0x47eef1);_0x33fe44['next'](_0x33ecb6);}))),_0x37e96f[_0x213a8c(0x418)](o[_0x213a8c(0xa1)](()=>_0x33fe44[_0x213a8c(0xb0)]()));const _0x3f0e7d=()=>{const _0xb2068=_0x213a8c;_0x1c1d87[_0xb2068(0x46e)](new Event('connection\x20error')),_0x43fd46[_0xb2068(0x46e)](new CloseEvent('connection\x20error')),_0x7eec1c['close']();},_0x7eec1c={'memberID':'','close$':_0x43fd46[_0x213a8c(0x16a)](),'error$':_0x1c1d87[_0x213a8c(0x16a)](),'open$':_0x4c3128[_0x213a8c(0x239)],'message$':_0x33fe44['asObservable'](),'send':_0x5328b6=>{const _0x1443e6=_0x213a8c;if(_0x5328b6[_0x1443e6(0x322)]===T[_0x1443e6(0x360)]){if(_0x5328b6[_0x1443e6(0x10a)][_0x1443e6(0x15d)]===_[_0x1443e6(0x284)][_0x1443e6(0x19c)]){this['_submitChangeset'](_0x7eec1c,_0x5328b6[_0x1443e6(0x10a)])[_0x1443e6(0x1a7)](_0x4246d4=>{const _0xdd18f1=_0x1443e6;this[_0xdd18f1(0x198)][_0xdd18f1(0xf0)](_0x4246d4),_0x3f0e7d();});return;}if(_0x5328b6[_0x1443e6(0x10a)]['eventID']===_['CollaborationEvent'][_0x1443e6(0x105)]){const _0x16fbfc=_0x5328b6[_0x1443e6(0x10a)];this[_0x1443e6(0x23d)](_0x16fbfc)[_0x1443e6(0x9d)](_0xb850f2=>{const _0x554698=_0x1443e6;_0x33fe44[_0x554698(0x46e)]({'cmd':T[_0x554698(0x2f6)],'code':ke['OK'],'routeKey':_0x16fbfc[_0x554698(0x10a)][_0x554698(0x1e6)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x554698(0x124)],'data':{'changesets':_0xb850f2}}});})[_0x1443e6(0x1a7)](_0x5d514b=>{const _0x176d2f=_0x1443e6;this[_0x176d2f(0x198)][_0x176d2f(0xf0)](_0x5d514b),_0x3f0e7d();});return;}}_0x4c3128[_0x1443e6(0x3e9)](pt(_0x5328b6));},'close':()=>{const _0x4179ec=_0x213a8c;_0x4c3128[_0x4179ec(0x21c)](),_0x37e96f['dispose']();}};return _0x7eec1c;}async[_0x30e940(0x2d6)](_0x48c1f1,_0x1c2cdb){const _0x4250da=_0x30e940;var _0x4859e9;const {unitType:_0x39e838,unitID:_0x1b5125,changeset:_0x20cec6}=_0x1c2cdb[_0x4250da(0x10a)],_0x53828f={'unitID':_0x1b5125,'memberID':_0x48c1f1['memberID'],'type':_0x39e838,'changeset':_['parseChangesetToProtocol'](_0x20cec6)},_0x418d9e=os((_0x4859e9=this[_0x4250da(0x160)][_0x4250da(0xfc)](vt))!=null?_0x4859e9:Jt,_0x39e838,_0x1b5125);try{await this[_0x4250da(0x34e)][_0x4250da(0x35c)](_0x418d9e,{'body':_0x53828f});}catch(_0xb09a8d){throw this['_logService']['error'](_0x4250da(0xb7),_0x4250da(0x248)),_0xb09a8d;}}async[_0x30e940(0x23d)](_0xc111cc){const _0x24d997=_0x30e940,{unitID:_0x12d7ca,from:_0x2af553,to:_0x523fce,unitType:_0x562813}=_0xc111cc[_0x24d997(0x10a)];return(await this[_0x24d997(0x31a)][_0x24d997(0x34c)]({'metadata':void 0x0},{'unitID':_0x12d7ca,'type':_0x562813,'from':_0x2af553,'to':_0x523fce}))['changesets'];}},exports[_0x30e940(0x110)]=rs([se(0x0,o[_0x30e940(0xdf)](U[_0x30e940(0x181)])),se(0x1,o[_0x30e940(0xdf)](U[_0x30e940(0x350)])),se(0x2,o[_0x30e940(0x306)]),se(0x3,o[_0x30e940(0x1e7)]),se(0x4,_['ISnapshotServerService'])],exports[_0x30e940(0x110)]);class Ve{constructor(){const _0x8f7403=_0x30e940;u(this,_0x8f7403(0x374),new v[(_0x8f7403(0x457))]()),u(this,'commentUpdate$',this[_0x8f7403(0x374)][_0x8f7403(0x16a)]());}[_0x30e940(0x134)](_0x5774ba){const _0x21256a=_0x30e940;this['_commentUpdate$'][_0x21256a(0x46e)](_0x5774ba);}}var as=Object[_0x30e940(0x36c)],cs=Object[_0x30e940(0x1a2)],Et=(_0x467865,_0x580393,_0x334e87,_0x3524ce)=>{const _0x8852a7=_0x30e940;for(var _0x21329a=_0x3524ce>0x1?void 0x0:_0x3524ce?cs(_0x580393,_0x334e87):_0x580393,_0x5cb679=_0x467865[_0x8852a7(0x3b8)]-0x1,_0x46a19d;_0x5cb679>=0x0;_0x5cb679--)(_0x46a19d=_0x467865[_0x5cb679])&&(_0x21329a=(_0x3524ce?_0x46a19d(_0x580393,_0x334e87,_0x21329a):_0x46a19d(_0x21329a))||_0x21329a);return _0x3524ce&&_0x21329a&&as(_0x580393,_0x334e87,_0x21329a),_0x21329a;},M=(_0x2dd0f3,_0x306cde)=>(_0x120162,_0x5486c9)=>_0x306cde(_0x120162,_0x5486c9,_0x2dd0f3),G=(_0x5c6d53=>(_0x5c6d53[_0x5c6d53[_0x30e940(0x2b8)]=0x0]=_0x30e940(0x2b8),_0x5c6d53[_0x5c6d53[_0x30e940(0x119)]=0x1]=_0x30e940(0x119),_0x5c6d53[_0x5c6d53[_0x30e940(0x32d)]=0x2]=_0x30e940(0x32d),_0x5c6d53[_0x5c6d53[_0x30e940(0x3aa)]=0x3]=_0x30e940(0x3aa),_0x5c6d53))(G||{});exports[_0x30e940(0x3ff)]=class extends o['RxDisposable']{constructor(_0x300d94,_0x50ee02,_0x6ccc52,_0x3b2199,_0x2ea6f0,_0x2f10cd,_0x217e89,_0x56eaf8,_0x1eadf6){const _0xf5555=_0x30e940;super(),u(this,_0xf5555(0x2d3),new v[(_0xf5555(0x2d8))](0x0)),u(this,'sessionStatus$',this[_0xf5555(0x2d3)][_0xf5555(0x16a)]()),u(this,_0xf5555(0x42b),new v[(_0xf5555(0x457))]()),u(this,_0xf5555(0x199),this[_0xf5555(0x42b)][_0xf5555(0x16a)]()),u(this,_0xf5555(0x431)),u(this,_0xf5555(0x287)),u(this,'_collaborationTimeoutTimer'),(this[_0xf5555(0x39b)]=_0x300d94,this[_0xf5555(0x198)]=_0x6ccc52,this[_0xf5555(0x400)]=_0x3b2199,this[_0xf5555(0x255)]=_0x2ea6f0,this[_0xf5555(0x160)]=_0x2f10cd,this['_localeService']=_0x217e89,this[_0xf5555(0x460)]=_0x56eaf8,this[_0xf5555(0x26c)]=_0x1eadf6,_0x50ee02[_0xf5555(0x2a9)](E[_0xf5555(0x3a8)](this[_0xf5555(0x2b1)]))[_0xf5555(0x196)](_0x2d2a9f=>{const _0x49f25b=_0xf5555;var _0x7ee5cb;typeof _0x2d2a9f>'u'||(this[_0x49f25b(0x431)]=_0x2d2a9f,_0x2d2a9f?(this[_0x49f25b(0x315)](_0x2d2a9f),this[_0x49f25b(0x287)]=this[_0x49f25b(0x431)][_0x49f25b(0x3da)]['subscribe'](_0x1e50df=>{const _0x599560=_0x49f25b;_0x1e50df[_0x599560(0x34b)]===this[_0x599560(0x39b)]&&this[_0x599560(0x18c)](_0x1e50df);})):(this['_sessionStatus$']['next'](0x2),(_0x7ee5cb=this[_0x49f25b(0x287)])==null||_0x7ee5cb[_0x49f25b(0xe4)](),this['_socketMessageSubscription']=null));}),this[_0xf5555(0x22c)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x22ab3f=_0xf5555;var _0x57406e;(_0x57406e=this[_0x22ab3f(0x431)])==null||_0x57406e['send']({'cmd':T[_0x22ab3f(0x296)],'data':{'roomID':this[_0x22ab3f(0x39b)]}});})));}get[_0x30e940(0x125)](){const _0x4e9fc8=_0x30e940;return this[_0x4e9fc8(0x2d3)][_0x4e9fc8(0xca)]();}[_0x30e940(0x266)](){const _0x58ca9c=_0x30e940;var _0x24b881,_0x315048;return(_0x315048=(_0x24b881=this[_0x58ca9c(0x431)])==null?void 0x0:_0x24b881[_0x58ca9c(0x1b2)])!=null?_0x315048:null;}[_0x30e940(0xc6)](){const _0x4c0868=_0x30e940;super[_0x4c0868(0xc6)](),this['dispose$']['next'](),this[_0x4c0868(0x2b1)][_0x4c0868(0xb0)]();}[_0x30e940(0x21c)](){const _0xeead4a=_0x30e940;var _0x497d77,_0x55731e;(_0x497d77=this[_0xeead4a(0x431)])==null||_0x497d77[_0xeead4a(0x3e9)]({'cmd':T[_0xeead4a(0x296)],'data':{'roomID':this[_0xeead4a(0x39b)]}}),this[_0xeead4a(0x42b)][_0xeead4a(0xb0)](),this[_0xeead4a(0x2d3)][_0xeead4a(0xb0)](),(_0x55731e=this[_0xeead4a(0x431)])==null||_0x55731e[_0xeead4a(0x21c)](),this[_0xeead4a(0xc6)]();}[_0x30e940(0x18c)](_0x3fe5d2){const _0x3409b4=_0x30e940;_0x3fe5d2[_0x3409b4(0x322)]===T[_0x3409b4(0x3fe)]?this[_0x3409b4(0x166)](_0x3fe5d2):_0x3fe5d2[_0x3409b4(0x322)]===T[_0x3409b4(0x2f6)]&&this[_0x3409b4(0x180)](_0x3fe5d2);}[_0x30e940(0x315)](_0x4e899f){const _0x3a00b9=_0x30e940;this['_sessionStatus$']['next'](0x1),_0x4e899f[_0x3a00b9(0x3e9)]({'cmd':T['JOIN'],'routeKey':this[_0x3a00b9(0x39b)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x30e940(0x166)](_0x3f5742){const _0x34aaea=_0x30e940;var _0x5e5f92;if(_0x3f5742['code']===ke[_0x34aaea(0x1ee)]){this['_messageService'][_0x34aaea(0x157)]({'type':Q['MessageType'][_0x34aaea(0x3d6)],'content':this[_0x34aaea(0x45b)]['t'](_0x34aaea(0x333))}),this['_sessionStatus$']['next'](0x2);return;}this[_0x34aaea(0x2d3)]['next'](0x3);const _0x39d4d4=(_0x5e5f92=_0x3f5742[_0x34aaea(0x10a)][_0x34aaea(0x25c)][this[_0x34aaea(0x39b)]])==null?void 0x0:_0x5e5f92[_0x34aaea(0x1c7)];_0x39d4d4&&_0x39d4d4[_0x34aaea(0x277)](_0xccd721=>this['_memberService'][_0x34aaea(0x12e)](this['_unitID'],_0xccd721));}[_0x30e940(0x180)](_0x5a5c0a){const _0x33a95f=_0x30e940;try{const _0x2d92ab=_0x5a5c0a[_0x33a95f(0x10a)];switch(_0x2d92ab[_0x33a95f(0x15d)]){case _[_0x33a95f(0x284)][_0x33a95f(0x473)]:this[_0x33a95f(0x100)](_0x2d92ab),this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);break;case _['CollaborationEvent']['USERS_LEAVE']:this['_onUserLeave'](_0x2d92ab),this[_0x33a95f(0x42b)]['next'](_0x2d92ab);break;case _['CollaborationEvent'][_0x33a95f(0x30d)]:this['_clearCollaborationTimeoutTimer'](),this[_0x33a95f(0x42b)]['next'](_0x2d92ab);break;case _[_0x33a95f(0x284)][_0x33a95f(0x37d)]:this[_0x33a95f(0x198)][_0x33a95f(0xf0)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x33a95f(0x1be)](_0x2d92ab)),this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);break;case _[_0x33a95f(0x284)][_0x33a95f(0x46c)]:this[_0x33a95f(0x26c)]['onCommentUpdate'](_0x2d92ab[_0x33a95f(0x10a)]),this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);break;default:this[_0x33a95f(0x42b)][_0x33a95f(0x46e)](_0x2d92ab);}}catch(_0x2302b2){this[_0x33a95f(0x198)]['error'](_0x2302b2,_0x5a5c0a);}}[_0x30e940(0x100)](_0x4ca66b){const _0x20ad5d=_0x30e940;this['_memberService'][_0x20ad5d(0x12e)](this[_0x20ad5d(0x39b)],_0x4ca66b[_0x20ad5d(0x10a)]);}['_onUserLeave'](_0x167bf9){const _0x18ba6b=_0x30e940;this[_0x18ba6b(0x460)][_0x18ba6b(0x3e8)](this['_unitID'],_0x167bf9[_0x18ba6b(0x10a)][_0x18ba6b(0x1b2)]);}async[_0x30e940(0x3e9)](_0x137d53,_0x396312){const _0x55a7e9=_0x30e940;if(this[_0x55a7e9(0x125)]!==0x3||!this[_0x55a7e9(0x431)])throw new Error(_0x55a7e9(0x2ae));try{_0x137d53['eventID']===_[_0x55a7e9(0x284)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x55a7e9(0x431)][_0x55a7e9(0x3e9)]({'cmd':T[_0x55a7e9(0x360)],'routeKey':_0x396312,'routeType':'','data':_0x137d53});}catch(_0x4b9062){this[_0x55a7e9(0x198)]['error'](_0x4b9062);}}[_0x30e940(0x336)](){var _0x58afdb;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x136bf8=_0x3b20;this['_collaborationTimeoutTimer']=null,this[_0x136bf8(0x255)][_0x136bf8(0x157)]({'type':Q[_0x136bf8(0x187)][_0x136bf8(0x447)],'content':this['_localeService']['t'](_0x136bf8(0x270))});},(_0x58afdb=this['_configService']['getConfig'](He))!=null?_0x58afdb:dt);}[_0x30e940(0x22f)](){const _0xa19d7d=_0x30e940;this[_0xa19d7d(0x258)]&&(clearTimeout(this[_0xa19d7d(0x258)]),this[_0xa19d7d(0x258)]=null);}},exports[_0x30e940(0x3ff)]=Et([M(0x2,o[_0x30e940(0x1e7)]),M(0x3,L['IBeforeCloseService']),M(0x4,L[_0x30e940(0x3d3)]),M(0x5,o['IConfigService']),M(0x6,o['Inject'](o[_0x30e940(0xfe)])),M(0x7,o[_0x30e940(0xdf)](Y)),M(0x8,o['Inject'](Ve))],exports[_0x30e940(0x3ff)]),exports[_0x30e940(0x373)]=class extends o[_0x30e940(0x3c3)]{constructor(_0x439a40,_0x38d578,_0x3038cf,_0x15c62c,_0x3f95b9,_0x324b55){const _0x319d52=_0x30e940;super(),u(this,_0x319d52(0x42c),new v[(_0x319d52(0x2d8))](void 0x0)),u(this,_0x319d52(0x1f9),new Map()),u(this,_0x319d52(0x3f0),new v['BehaviorSubject'](0x0)),u(this,_0x319d52(0x3e0),this[_0x319d52(0x3f0)][_0x319d52(0x16a)]()),u(this,_0x319d52(0x278),!0x1),u(this,_0x319d52(0x191)),u(this,_0x319d52(0x288)),u(this,_0x319d52(0x36a)),u(this,_0x319d52(0x364),0x0),(this['_injector']=_0x439a40,this[_0x319d52(0x45b)]=_0x38d578,this[_0x319d52(0x255)]=_0x3038cf,this['_logService']=_0x15c62c,this[_0x319d52(0x160)]=_0x3f95b9,this['_socketService']=_0x324b55);}get[_0x30e940(0x431)](){const _0x3a5b46=_0x30e940;return this[_0x3a5b46(0x42c)][_0x3a5b46(0xca)]();}[_0x30e940(0xc6)](){const _0x359d50=_0x30e940;super[_0x359d50(0xc6)](),this[_0x359d50(0x1f9)]['forEach'](_0x56b96d=>_0x56b96d[_0x359d50(0xc6)]()),this['_sessions']['clear'](),this[_0x359d50(0x3f0)][_0x359d50(0xb0)]();}async[_0x30e940(0x470)](_0x5103b2){const _0x36c549=_0x30e940;if(this[_0x36c549(0x1f9)][_0x36c549(0x45c)](_0x5103b2))return this[_0x36c549(0x1f9)][_0x36c549(0x1f0)](_0x5103b2);this['_tryEnsureSocket']();const _0x567680=this['_injector']['createInstance'](exports[_0x36c549(0x3ff)],_0x5103b2,this[_0x36c549(0x42c)][_0x36c549(0x16a)]());return this[_0x36c549(0x1f9)][_0x36c549(0x346)](_0x5103b2,_0x567680),_0x567680;}['closeSession'](_0x787b2){const _0x45ab41=_0x30e940;var _0x153b7e;const _0x4c377d=this[_0x45ab41(0x1f9)]['get'](_0x787b2);_0x4c377d&&(this[_0x45ab41(0x1f9)][_0x45ab41(0x244)](_0x787b2),_0x4c377d[_0x45ab41(0x21c)]()),this['_sessions'][_0x45ab41(0x2f3)]||(_0x153b7e=this[_0x45ab41(0x431)])==null||_0x153b7e['close']();}[_0x30e940(0x11a)](){const _0xdcc870=_0x30e940;var _0x4b148f;const _0x183bf8=(_0x4b148f=this[_0xdcc870(0x160)][_0xdcc870(0xfc)](_t))!=null?_0x4b148f:Ft;return this[_0xdcc870(0x21e)]['createSocket'](_0x183bf8);}[_0x30e940(0x218)](){const _0x2aa7ea=_0x30e940;try{const _0x283f6e=this['_createSocket']();if(_0x283f6e){const _0x1c00b8=_0x283f6e['send'];_0x283f6e[_0x2aa7ea(0x3e9)]=_0x589bca=>(this[_0x2aa7ea(0x3a2)](),_0x1c00b8[_0x2aa7ea(0x3cf)](_0x283f6e,[_0x589bca])),_0x283f6e[_0x2aa7ea(0x3da)][_0x2aa7ea(0x196)](_0x5cdbc1=>this[_0x2aa7ea(0x1c1)](_0x283f6e,_0x5cdbc1)),_0x283f6e[_0x2aa7ea(0x132)][_0x2aa7ea(0x2a9)](E[_0x2aa7ea(0x1f5)](0x1))[_0x2aa7ea(0x196)](_0x1bf513=>this[_0x2aa7ea(0x198)][_0x2aa7ea(0xf0)](_0x2aa7ea(0x375),_0x1bf513)),_0x283f6e[_0x2aa7ea(0x239)][_0x2aa7ea(0x2a9)](E[_0x2aa7ea(0x1f5)](0x1))[_0x2aa7ea(0x196)](()=>{const _0x19649d=_0x2aa7ea;this[_0x19649d(0x21b)](_0x283f6e);}),_0x283f6e['close$'][_0x2aa7ea(0x2a9)](E[_0x2aa7ea(0x1f5)](0x1))[_0x2aa7ea(0x196)](_0x26c59d=>{const _0x587f1e=_0x2aa7ea;this[_0x587f1e(0x198)][_0x587f1e(0x293)](_0x587f1e(0x147),_0x587f1e(0xcb),_0x26c59d),this[_0x587f1e(0x2c9)]();});}}catch(_0x26e338){this[_0x2aa7ea(0x198)]['error'](_0x26e338),this[_0x2aa7ea(0x2c9)]();}}[_0x30e940(0x21b)](_0x2de01a){const _0x43be7d=_0x30e940;this[_0x43be7d(0x198)][_0x43be7d(0x293)](_0x43be7d(0x147),_0x43be7d(0xd8)),_0x2de01a[_0x43be7d(0x3e9)]({'cmd':T[_0x43be7d(0x229)]}),this[_0x43be7d(0x3a2)]();}[_0x30e940(0x2c9)](){const _0x59d862=_0x30e940;var _0x5b569c;this[_0x59d862(0x3f0)]['next'](0x2),this['_socket$'][_0x59d862(0x46e)](null),this[_0x59d862(0x466)](),this[_0x59d862(0x313)](),this['_socketReady']=!0x1,this[_0x59d862(0x364)]<((_0x5b569c=this['_configService'][_0x59d862(0xfc)](Xt))!=null?_0x5b569c:qt)?(this[_0x59d862(0x351)](this[_0x59d862(0x364)]),this[_0x59d862(0x364)]+=0x1):this[_0x59d862(0x255)]['show']({'type':Q[_0x59d862(0x187)][_0x59d862(0x447)],'content':this[_0x59d862(0x45b)]['t'](_0x59d862(0x240))});}[_0x30e940(0x351)](_0x1fad80){const _0x22ed35=_0x30e940;var _0x58e66c;const _0x4f8329=((_0x58e66c=this[_0x22ed35(0x160)]['getConfig'](Yt))!=null?_0x58e66c:Kt)*0x2**_0x1fad80;this[_0x22ed35(0x255)][_0x22ed35(0x157)]({'type':Q['MessageType']['Warning'],'content':this[_0x22ed35(0x45b)]['t'](_0x22ed35(0x2af))}),this[_0x22ed35(0x36a)]=setTimeout(()=>{const _0x1eafb7=_0x22ed35;this[_0x1eafb7(0x218)](),clearTimeout(this[_0x1eafb7(0x36a)]),this['_retryConnectingTimer']=null;},_0x4f8329);}[_0x30e940(0x3a2)](){const _0x129c00=_0x30e940;var _0x52b461;this[_0x129c00(0x313)](),this[_0x129c00(0x191)]=setTimeout(()=>this[_0x129c00(0x30f)](),(_0x52b461=this[_0x129c00(0x160)][_0x129c00(0xfc)](ut))!=null?_0x52b461:Gt);}[_0x30e940(0x30f)](){const _0x6b6fb1=_0x30e940;this['_socket'][_0x6b6fb1(0x3e9)]({'cmd':T['HEARTBEAT']}),this[_0x6b6fb1(0x3d7)]();}[_0x30e940(0x3d7)](){const _0x1fb90c=_0x30e940;var _0x4a6318;this[_0x1fb90c(0x288)]=setTimeout(()=>this[_0x1fb90c(0x2c9)](),(_0x4a6318=this[_0x1fb90c(0x160)][_0x1fb90c(0xfc)](He))!=null?_0x4a6318:dt);}[_0x30e940(0x1c1)](_0x39541c,_0x35ec83){const _0x275828=_0x30e940,{cmd:_0x22cf3e}=_0x35ec83;_0x22cf3e===T[_0x275828(0x229)]&&!this[_0x275828(0x278)]&&(_0x39541c['memberID']=_0x35ec83[_0x275828(0x10a)][_0x275828(0x1b2)],this[_0x275828(0x42c)]['next'](_0x39541c),this[_0x275828(0x3f0)]['next'](0x3),this['_socketReady']=!0x0),_0x22cf3e===T['HEARTBEAT']&&this[_0x275828(0x466)](),this['_rescheduleHeartbeatEvent']();}['_clearHeartbeatTimer'](){const _0x307139=_0x30e940;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x307139(0x191)]),this[_0x307139(0x191)]=null);}[_0x30e940(0x466)](){const _0xce6e23=_0x30e940;this['_timeoutTimer']!=null&&(clearTimeout(this[_0xce6e23(0x288)]),this[_0xce6e23(0x288)]=null);}},exports[_0x30e940(0x373)]=Et([M(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),M(0x1,o[_0x30e940(0xdf)](o['LocaleService'])),M(0x2,L[_0x30e940(0x3d3)]),M(0x3,o[_0x30e940(0x1e7)]),M(0x4,o[_0x30e940(0x306)]),M(0x5,Be)],exports['CollaborationSessionService']);var ls=Object[_0x30e940(0x36c)],hs=Object[_0x30e940(0x1a2)],_s=(_0x51b844,_0x4cb1cb,_0x5819a8,_0x214bec)=>{const _0x17f290=_0x30e940;for(var _0x3997b9=_0x214bec>0x1?void 0x0:_0x214bec?hs(_0x4cb1cb,_0x5819a8):_0x4cb1cb,_0x11b77e=_0x51b844[_0x17f290(0x3b8)]-0x1,_0x16a9a5;_0x11b77e>=0x0;_0x11b77e--)(_0x16a9a5=_0x51b844[_0x11b77e])&&(_0x3997b9=(_0x214bec?_0x16a9a5(_0x4cb1cb,_0x5819a8,_0x3997b9):_0x16a9a5(_0x3997b9))||_0x3997b9);return _0x214bec&&_0x3997b9&&ls(_0x4cb1cb,_0x5819a8,_0x3997b9),_0x3997b9;},ie=(_0x304519,_0x138599)=>(_0x4ebd0e,_0x4e2fb6)=>_0x138599(_0x4ebd0e,_0x4e2fb6,_0x304519);exports[_0x30e940(0x227)]=class extends o[_0x30e940(0x3c3)]{constructor(_0xd4ea3,_0x3496ee,_0x31d792,_0x44ef3a,_0x253a23){const _0x366e62=_0x30e940;super(),u(this,_0x366e62(0x2f5),new Map()),u(this,_0x366e62(0x154),new Map()),u(this,_0x366e62(0x18a),!0x1),(this['_configService']=_0xd4ea3,this['_localStorageService']=_0x3496ee,this[_0x366e62(0x400)]=_0x31d792,this['_localeService']=_0x44ef3a,this[_0x366e62(0x2fb)]=_0x253a23,this['_setupBeforeClosingHandler']());}[_0x30e940(0x422)](){const _0x3f40cd=_0x30e940;this[_0x3f40cd(0x18a)]=!0x0;}[_0x30e940(0x185)](){this['_disabled']=!0x1;}[_0x30e940(0xc6)](){const _0x297a1d=_0x30e940;this[_0x297a1d(0x1b5)]()[_0x297a1d(0x9d)](()=>super[_0x297a1d(0xc6)]());}async[_0x30e940(0x341)](_0x46f6db){const _0x45ef9a=_0x30e940;return this['_disabled']?null:this[_0x45ef9a(0x217)][_0x45ef9a(0x2ca)](qe(_0x46f6db));}async[_0x30e940(0x1a8)](_0x99a4,_0x4533c5){const _0x5c7059=_0x30e940;return!!this[_0x5c7059(0x217)][_0x5c7059(0x471)](_0x99a4,_0x4533c5);}[_0x30e940(0x475)](_0x1d3cfa,_0xf7b71,_0x4e73e9,_0x363e30){const _0x3839a5=_0x30e940,_0x3f3e8d=this['_revisionService'][_0x3839a5(0x17e)](_0x1d3cfa);this[_0x3839a5(0x2f5)][_0x3839a5(0x346)](_0x1d3cfa,{'unitID':_0x1d3cfa,'type':_0xf7b71,'awaitingChangeset':_0x4e73e9,'mutations':_0x363e30,'rev':_0x3f3e8d}),this[_0x3839a5(0x154)][_0x3839a5(0x45c)](_0x1d3cfa)||this['_scheduleSaving'](_0x1d3cfa);}['_scheduleSaving'](_0x2fe35f){const _0x47136b=_0x30e940,_0x54b57a=this[_0x47136b(0x114)]();_0x54b57a===0x0?this[_0x47136b(0x31f)](_0x2fe35f):this['_saveTaskMap'][_0x47136b(0x346)](_0x2fe35f,setTimeout(()=>this[_0x47136b(0x31f)](_0x2fe35f),_0x54b57a));}['_getSaveTimeout'](){const _0x16679e=_0x30e940;var _0xb248de;return(_0xb248de=this[_0x16679e(0x160)][_0x16679e(0xfc)](St))!=null?_0xb248de:zt;}[_0x30e940(0x31f)](_0x28777d){const _0x354e15=_0x30e940,_0x4f7ad9=this['_saveTaskMap'][_0x354e15(0x1f0)](_0x28777d);return _0x4f7ad9!==void 0x0&&window[_0x354e15(0x87)](_0x4f7ad9),this[_0x354e15(0x217)][_0x354e15(0x471)](qe(_0x28777d),this[_0x354e15(0x2f5)]['get'](_0x28777d))[_0x354e15(0x9d)](()=>this[_0x354e15(0x154)]['delete'](_0x28777d));}async[_0x30e940(0x1b5)](){const _0x208e48=_0x30e940,_0x57206b=[];this[_0x208e48(0x154)][_0x208e48(0x277)]((_0x3faf24,_0x494bdb)=>{const _0x48ee75=_0x208e48;window[_0x48ee75(0x87)](_0x3faf24),_0x57206b[_0x48ee75(0x220)](this[_0x48ee75(0x31f)](_0x494bdb)[_0x48ee75(0x9d)](()=>{const _0x456677=_0x48ee75;this[_0x456677(0x154)]['delete'](_0x494bdb);}));}),await Promise[_0x208e48(0x189)](_0x57206b);}['_setupBeforeClosingHandler'](){const _0x377a99=_0x30e940;this[_0x377a99(0x22c)](this[_0x377a99(0x400)][_0x377a99(0x332)](()=>{const _0x3865ab=_0x377a99;if(this[_0x3865ab(0x154)][_0x3865ab(0x2f3)])return this[_0x3865ab(0x45b)]['t'](_0x3865ab(0x19e));}));}},exports[_0x30e940(0x227)]=_s([ie(0x0,o[_0x30e940(0x306)]),ie(0x1,o[_0x30e940(0x3d1)]),ie(0x2,L[_0x30e940(0x462)]),ie(0x3,o[_0x30e940(0xdf)](o['LocaleService'])),ie(0x4,o['Inject'](_[_0x30e940(0x1db)]))],exports[_0x30e940(0x227)]);function qe(_0x11d4fd){return'unit-cache-'+_0x11d4fd;}const pe=o[_0x30e940(0x16b)]('univer-pro.collaboration-client.single-active-unit-service');var Ct=(_0xe36cfc=>(_0xe36cfc[_0xe36cfc[_0x30e940(0x389)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0xe36cfc[_0xe36cfc[_0x30e940(0x140)]=0x1]='OTHER_CLIENTS_EDITING',_0xe36cfc))(Ct||{});const ze=0x7530,Je=_0x30e940(0x36d);class us extends o[_0x30e940(0x3c3)]{constructor(){const _0x5f51b3=_0x30e940;super(),u(this,_0x5f51b3(0x314),o['Tools'][_0x5f51b3(0x108)]()),u(this,_0x5f51b3(0x2e5),new Set()),u(this,_0x5f51b3(0x8d),new Map()),u(this,_0x5f51b3(0x35d),null),u(this,_0x5f51b3(0xe2),new Map()),u(this,'_unitStatus',new Map()),this[_0x5f51b3(0x2eb)]();}['dispose'](){const _0x4a54bc=_0x30e940;super[_0x4a54bc(0xc6)](),this['_clearOtherTimers'][_0x4a54bc(0x277)]((_0x4db719,_0x5ab513)=>this[_0x4a54bc(0x19f)](_0x5ab513)),this[_0x4a54bc(0x35d)]&&window['clearInterval'](this[_0x4a54bc(0x35d)]);}[_0x30e940(0x93)](_0x4010c1){const _0x13bf73=_0x30e940;return this[_0x13bf73(0x3e1)](_0x4010c1)[_0x13bf73(0x2a9)](v[_0x13bf73(0x34f)]());}[_0x30e940(0x23f)](_0x3838c6){const _0x1e594f=_0x30e940;this[_0x1e594f(0x2e5)][_0x1e594f(0x2f3)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1e594f(0x2e5)][_0x1e594f(0x418)](_0x3838c6),this[_0x1e594f(0x2a5)]({'type':0x0,'memberID':this[_0x1e594f(0x314)],'unitIDs':[_0x3838c6],'isForwarded':!0x1});}[_0x30e940(0x299)](_0x1be991){const _0x536e3a=_0x30e940;this[_0x536e3a(0x2e5)][_0x536e3a(0x244)](_0x1be991),this['_selfUnitIDs'][_0x536e3a(0x2f3)]===0x0&&this['_heartbeatTimer']&&window[_0x536e3a(0x25a)](this[_0x536e3a(0x35d)]);}[_0x30e940(0x2eb)](){const _0x2d0a9a=_0x30e940;this['disposeWithMe'](o['toDisposable'](v[_0x2d0a9a(0x30a)](window,'storage')['subscribe'](_0x533861=>{const _0x1cc5f2=_0x2d0a9a;if(_0x533861['key']!==Je||!_0x533861[_0x1cc5f2(0x1a4)])return;const _0x34af59=JSON[_0x1cc5f2(0x344)](_0x533861[_0x1cc5f2(0x1a4)]);this[_0x1cc5f2(0x2b0)](_0x34af59);}))),window[_0x2d0a9a(0x358)]('unload',()=>this[_0x2d0a9a(0x2a5)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2d0a9a(0x16d)](this[_0x2d0a9a(0x2e5)])}));}[_0x30e940(0x2b0)](_0x1cd3ee){const _0x550e3b=_0x30e940;switch(_0x1cd3ee[_0x550e3b(0x312)]){case 0x0:this[_0x550e3b(0x273)](_0x1cd3ee);break;case 0x1:this[_0x550e3b(0x3a4)](_0x1cd3ee);break;case 0x2:this['_handleHeartbeatEvent'](_0x1cd3ee);break;}}[_0x30e940(0x273)](_0x4aba2b){const _0x29cea6=_0x30e940,{unitIDs:_0x1f482f,memberID:_0x2e3765,isForwarded:_0x1527dd}=_0x4aba2b;_0x1f482f[_0x29cea6(0x277)](_0x3282af=>{const _0x7af561=_0x29cea6;if(!_0x1527dd&&this[_0x7af561(0x8d)][_0x7af561(0x45c)](_0x3282af)&&this[_0x7af561(0x3e1)](_0x3282af)[_0x7af561(0x46e)](0x1),!this[_0x7af561(0x8d)]['has'](_0x3282af)||!this['_unitOnClients'][_0x7af561(0x1f0)](_0x3282af)['has'](_0x2e3765)){const _0x1dd385=this['_unitOnClients'][_0x7af561(0x1f0)](_0x3282af)||new Set();_0x1dd385[_0x7af561(0x418)](_0x2e3765),this[_0x7af561(0x8d)][_0x7af561(0x346)](_0x3282af,_0x1dd385),this[_0x7af561(0x34a)](_0x2e3765);}}),_0x1527dd||this[_0x29cea6(0x2a5)]({'type':0x0,'memberID':this[_0x29cea6(0x314)],'unitIDs':[...this[_0x29cea6(0x2e5)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x10640b){const _0x560e1c=_0x30e940;this['_removeClearOtherTimer'](_0x10640b);const _0x2b2178=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x22a198=>{const _0x342856=_0x3b20;_0x22a198[_0x342856(0x244)](_0x10640b);});},ze*0x2);this[_0x560e1c(0xe2)][_0x560e1c(0x346)](_0x10640b,_0x2b2178);}[_0x30e940(0x19f)](_0x1c3208){const _0x17b243=_0x30e940;if(this['_clearOtherTimers'][_0x17b243(0x45c)](_0x1c3208)){const _0x399ffd=this[_0x17b243(0xe2)][_0x17b243(0x1f0)](_0x1c3208);_0x399ffd&&window[_0x17b243(0x87)](_0x399ffd),this[_0x17b243(0xe2)][_0x17b243(0x346)](_0x1c3208,null);}}[_0x30e940(0x3a4)](_0x214464){const _0x16b6d9=_0x30e940,{memberID:_0x1531a3,unitIDs:_0xf4f7a0}=_0x214464;_0xf4f7a0['forEach'](_0x1c9684=>{const _0x11b3c7=_0x3b20;var _0x31eee5;const _0x3d4bba=this[_0x11b3c7(0x8d)][_0x11b3c7(0x1f0)](_0x1c9684);_0x3d4bba&&(_0x3d4bba['delete'](_0x1531a3),(_0x31eee5=this['_ensureSubject'](_0x1c9684))==null||_0x31eee5['next'](_0x3d4bba['size']===0x0?0x0:0x1));}),this[_0x16b6d9(0x19f)](_0x1531a3);}[_0x30e940(0x348)](_0x29bf0d){const _0x3bbbef=_0x30e940;this[_0x3bbbef(0x34a)](_0x29bf0d[_0x3bbbef(0x1b2)]);}[_0x30e940(0x2a5)](_0x1be3f9){const _0x3f431c=_0x30e940;localStorage[_0x3f431c(0x471)](Je,JSON['stringify'](_0x1be3f9));}['_scheduleHeartbeat'](){const _0x38729a=_0x30e940;this[_0x38729a(0x35d)]=window[_0x38729a(0x27e)](()=>{const _0x4036cd=_0x38729a;this[_0x4036cd(0x2a5)]({'type':0x2,'memberID':this[_0x4036cd(0x314)]});},ze);}['_ensureSubject'](_0x1444a4){const _0x10434c=_0x30e940;return this[_0x10434c(0x3a3)][_0x10434c(0x45c)](_0x1444a4)||this[_0x10434c(0x3a3)][_0x10434c(0x346)](_0x1444a4,new v[(_0x10434c(0x2d8))](0x0)),this[_0x10434c(0x3a3)][_0x10434c(0x1f0)](_0x1444a4);}}var ds=Object[_0x30e940(0x36c)],Ss=Object[_0x30e940(0x1a2)],vs=(_0x1a156b,_0x3c3ed2,_0x72a32f,_0x5089c0)=>{const _0x3d68a1=_0x30e940;for(var _0x152f20=_0x5089c0>0x1?void 0x0:_0x5089c0?Ss(_0x3c3ed2,_0x72a32f):_0x3c3ed2,_0x5dd2e3=_0x1a156b[_0x3d68a1(0x3b8)]-0x1,_0xeb4c8c;_0x5dd2e3>=0x0;_0x5dd2e3--)(_0xeb4c8c=_0x1a156b[_0x5dd2e3])&&(_0x152f20=(_0x5089c0?_0xeb4c8c(_0x3c3ed2,_0x72a32f,_0x152f20):_0xeb4c8c(_0x152f20))||_0x152f20);return _0x5089c0&&_0x152f20&&ds(_0x3c3ed2,_0x72a32f,_0x152f20),_0x152f20;},Ze=(_0x25f545,_0x288411)=>(_0x131c1e,_0x267796)=>_0x288411(_0x131c1e,_0x267796,_0x25f545);let ve=class{constructor(_0x3f5875,_0x30b6e2){const _0x1da204=_0x30e940;this[_0x1da204(0x137)]=_0x3f5875,this[_0x1da204(0x3c0)]=_0x30b6e2;}['transformIMECache'](_0xc2d50d){const _0x23d719=_0x30e940;this['_transformUndoRedoStack'](_0xc2d50d),this[_0x23d719(0x2f1)](_0xc2d50d);}[_0x30e940(0x298)](_0x490a10){const _0x8da39f=_0x30e940,_0x2410da=this['_injector']['get'](P[_0x8da39f(0x46b)]),{redoCache:_0x477190}=_0x2410da['getUndoRedoMutationParamsCache']();if(_0x477190[_0x8da39f(0x3b8)]===0x0)return _0x490a10;let _0x504cda=o[_0x8da39f(0x235)]['deepClone'](_0x490a10[_0x8da39f(0x95)][0x0]);for(let _0x1c0ffc=0x0;_0x1c0ffc<_0x477190[_0x8da39f(0x3b8)];_0x1c0ffc++){const _0x461225={'id':_0x8da39f(0x1c9),'params':{..._0x477190[_0x1c0ffc]}},_0x2805be=this['_transformService'][_0x8da39f(0x1bf)](_0x504cda,_0x461225,!0x1);if(_[_0x8da39f(0x1fd)](_0x2805be))throw _0x2805be[_0x8da39f(0xf0)];_0x504cda=_0x2805be[_0x8da39f(0x205)];}return{...o[_0x8da39f(0x235)][_0x8da39f(0x102)](_0x490a10),'mutations':[_0x504cda]};}['_transformUndoRedoStack'](_0x42a1c0){const _0xc7bb4c=_0x30e940,_0x21539e=this[_0xc7bb4c(0x137)][_0xc7bb4c(0x1f0)](P[_0xc7bb4c(0x46b)]),{undoCache:_0x3853c1,redoCache:_0x524fa2}=_0x21539e['getUndoRedoMutationParamsCache']();if(_0x3853c1[_0xc7bb4c(0x3b8)]===0x0||_0x524fa2[_0xc7bb4c(0x3b8)]===0x0)return;const _0x1f6953=[],_0x1bd7a8=[];let _0x431dee=o[_0xc7bb4c(0x235)][_0xc7bb4c(0x102)](_0x42a1c0[_0xc7bb4c(0x95)][0x0]),_0x1761fa=o[_0xc7bb4c(0x235)][_0xc7bb4c(0x102)](_0x42a1c0[_0xc7bb4c(0x95)][0x0]);for(let _0x5981d8=_0x3853c1['length']-0x1;_0x5981d8>=0x0;_0x5981d8--){const _0x412311={'id':_0xc7bb4c(0x1c9),'params':{..._0x3853c1[_0x5981d8]}},_0x28c7b6={'id':_0xc7bb4c(0x1c9),'params':{..._0x524fa2[_0x5981d8]}},_0x5e6da1=this['_transformService'][_0xc7bb4c(0x1bf)](_0x431dee,_0x412311,!0x1),_0x5615a7=this[_0xc7bb4c(0x3c0)][_0xc7bb4c(0x1bf)](_0x1761fa,_0x28c7b6,!0x1);if(_[_0xc7bb4c(0x1fd)](_0x5e6da1))throw _0x5e6da1[_0xc7bb4c(0xf0)];if(_[_0xc7bb4c(0x1fd)](_0x5615a7))throw _0x5615a7[_0xc7bb4c(0xf0)];_0x1f6953[_0xc7bb4c(0x3f2)](_0x5e6da1['m2Prime'][_0xc7bb4c(0x20b)]),_0x1bd7a8[_0xc7bb4c(0x3f2)](_0x5615a7[_0xc7bb4c(0x163)][_0xc7bb4c(0x20b)]),_0x431dee=_0x5e6da1[_0xc7bb4c(0x205)],_0x1761fa=_0x5615a7[_0xc7bb4c(0x205)];}_0x21539e['setUndoRedoMutationParamsCache']({'undoCache':_0x1f6953,'redoCache':_0x1bd7a8});}[_0x30e940(0x2f1)](_0x2bfa5c){const _0x50d406=_0x30e940,_0x3b6640=this['_injector'][_0x50d406(0x1f0)](P[_0x50d406(0x46b)]),_0x59e5e5=_0x3b6640[_0x50d406(0x434)]();if(_0x59e5e5==null)return;const _0x21587f=[{'id':_0x50d406(0x1c9),'params':{'unitId':_0x2bfa5c[_0x50d406(0x1e6)],'actions':null,'textRanges':[_0x59e5e5]}}],_0x5bfe13=this['_transformService'][_0x50d406(0x1c3)](_0x2bfa5c,_0x21587f);if(!_['isTransformMutationsWithChangesetSuccess'](_0x5bfe13))throw _0x5bfe13['error'];const _0x2b35d3=_0x5bfe13[_0x50d406(0x163)][0x0][_0x50d406(0x20b)][_0x50d406(0x146)];Array[_0x50d406(0x281)](_0x2b35d3)&&_0x2b35d3['length']&&_0x3b6640[_0x50d406(0x1fb)](_0x2b35d3[0x0]);}};ve=vs([Ze(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),Ze(0x1,_[_0x30e940(0x2ab)])],ve);var ms=Object['defineProperty'],gs=Object[_0x30e940(0x1a2)],fs=(_0x4529b0,_0x368de4,_0x4b9d07,_0x1a0040)=>{const _0x56f1e2=_0x30e940;for(var _0x26dc60=_0x1a0040>0x1?void 0x0:_0x1a0040?gs(_0x368de4,_0x4b9d07):_0x368de4,_0x12b73f=_0x4529b0[_0x56f1e2(0x3b8)]-0x1,_0x451ecd;_0x12b73f>=0x0;_0x12b73f--)(_0x451ecd=_0x4529b0[_0x12b73f])&&(_0x26dc60=(_0x1a0040?_0x451ecd(_0x368de4,_0x4b9d07,_0x26dc60):_0x451ecd(_0x26dc60))||_0x26dc60);return _0x1a0040&&_0x26dc60&&ms(_0x368de4,_0x4b9d07,_0x26dc60),_0x26dc60;},Qe=(_0x453607,_0x53aa4f)=>(_0x2631dc,_0x41452c)=>_0x53aa4f(_0x2631dc,_0x41452c,_0x453607);let me=class{constructor(_0xd3ead2,_0x257972){const _0x159621=_0x30e940;this[_0x159621(0x137)]=_0xd3ead2,this['_transformService']=_0x257972;}['transformSelections'](_0x207c5d){const _0x3b2798=_0x30e940;var _0x48aced;const _0x92e03b=this[_0x3b2798(0x137)][_0x3b2798(0x1f0)](P[_0x3b2798(0x215)]),_0x328714=(_0x48aced=_0x92e03b['getDocRanges']())!=null?_0x48aced:[],_0x1865b9=_0x328714==null?void 0x0:_0x328714[_0x3b2798(0x120)](P[_0x3b2798(0x13c)]);if(_0x1865b9['length']===0x0)return;const _0x14efba=[{'id':_0x3b2798(0x1c9),'params':{'unitId':_0x207c5d[_0x3b2798(0x1e6)],'actions':null,'textRanges':_0x1865b9}}],_0x3a6863=this['_transformService'][_0x3b2798(0x1c3)](_0x207c5d,_0x14efba);if(!_['isTransformMutationsWithChangesetSuccess'](_0x3a6863))throw _0x3a6863[_0x3b2798(0xf0)];const _0x12108c=_0x3a6863[_0x3b2798(0x163)][0x0][_0x3b2798(0x20b)]['textRanges'];Array[_0x3b2798(0x281)](_0x12108c)&&_0x12108c[_0x3b2798(0x3b8)]&&_0x92e03b[_0x3b2798(0x11f)](_0x12108c,!0x1);}};me=fs([Qe(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),Qe(0x1,_[_0x30e940(0x2ab)])],me);function bt(_0x2e4605){let _0x24b9f9='';for(const _0x14af7b of _0x2e4605){const {startOffset:_0x22f60f,endOffset:_0x521097,isActive:_0x5c734c}=_0x14af7b;_0x24b9f9['length']&&(_0x24b9f9+=','),_0x24b9f9+=_0x22f60f+':'+_0x521097+':'+(_0x5c734c?'1':'0');}return _0x24b9f9;}function Is(_0x3d8fbd){const _0x12d460=_0x30e940,_0x412dc5=_0x3d8fbd[_0x12d460(0x297)](','),_0x4a041f=[];for(const _0x5ecd22 of _0x412dc5){const [_0x5661cf,_0x3d8b9f,_0xae7faf]=_0x5ecd22[_0x12d460(0x297)](':');_0x4a041f[_0x12d460(0x220)]({'startOffset':Number(_0x5661cf),'endOffset':Number(_0x3d8b9f),'collapsed':_0x5661cf===_0x3d8b9f,'isActive':_0xae7faf==='1'});}return _0x4a041f[_0x12d460(0x2f0)](_0x3443a1=>_0x3443a1[_0x12d460(0x2cf)])||(_0x4a041f[0x0][_0x12d460(0x2cf)]=!0x0),_0x4a041f;}class We extends o[_0x30e940(0x1cf)]{constructor(){const _0x205b1c=_0x30e940;super(...arguments),u(this,_0x205b1c(0x216),new v['BehaviorSubject'](null)),u(this,_0x205b1c(0x380),this[_0x205b1c(0x216)]['asObservable']());}[_0x30e940(0x274)](_0x246b05){const _0x35b327=_0x30e940,{unitID:_0x14a392,memberID:_0x397c1e,textRanges:_0x26ffc2}=_0x246b05,_0x298f78=bt(_0x26ffc2),_0x57e5e5={'unitID':_0x14a392,'memberID':_0x397c1e,'selection':_0x298f78};this['_collabCursorState$'][_0x35b327(0x46e)](_0x57e5e5);}}var ps=Object['defineProperty'],Es=Object[_0x30e940(0x1a2)],Cs=(_0x57985d,_0x1b4630,_0x2c5fab,_0x5c8c78)=>{const _0x4b6649=_0x30e940;for(var _0x3a3e38=_0x5c8c78>0x1?void 0x0:_0x5c8c78?Es(_0x1b4630,_0x2c5fab):_0x1b4630,_0x73f938=_0x57985d[_0x4b6649(0x3b8)]-0x1,_0x4c9273;_0x73f938>=0x0;_0x73f938--)(_0x4c9273=_0x57985d[_0x73f938])&&(_0x3a3e38=(_0x5c8c78?_0x4c9273(_0x1b4630,_0x2c5fab,_0x3a3e38):_0x4c9273(_0x3a3e38))||_0x3a3e38);return _0x5c8c78&&_0x3a3e38&&ps(_0x1b4630,_0x2c5fab,_0x3a3e38),_0x3a3e38;},et=(_0x4ef81c,_0x53fe5b)=>(_0x32a7b1,_0x700c47)=>_0x53fe5b(_0x32a7b1,_0x700c47,_0x4ef81c);function bs(_0x3c09da){const _0xedd2b7=_0x30e940,{unitID:_0x4dc41c,mutations:_0x286c90}=_0x3c09da;return{'unitId':_0x4dc41c,'subUnitId':_0x286c90[0x0][_0xedd2b7(0x20b)][_0xedd2b7(0x44c)]};}let ge=class{constructor(_0x7a2a23,_0x804259){const _0xca6554=_0x30e940;this[_0xca6554(0x137)]=_0x7a2a23,this['_transformService']=_0x804259;}[_0x30e940(0x156)](_0x2ed785){const _0x39da94=_0x30e940;var _0x15bf86,_0x16af86,_0x3f63e3;const _0x4e9125=this[_0x39da94(0x137)][_0x39da94(0x1f0)](p[_0x39da94(0x2ed)]),{unitId:_0x4dfd00,subUnitId:_0x4f7810}=bs(_0x2ed785),_0x41e68d=_0x4e9125['getWorkbookSelections'](_0x4dfd00)['getCurrentSelections']();if(_0x41e68d[_0x39da94(0x3b8)]===0x0||!_0x4dfd00||!_0x4f7810)return;const _0x1ae960=[{'id':p[_0x39da94(0x1e4)]['id'],'params':{'unitId':_0x4dfd00,'subUnitId':_0x4f7810,'selections':o['Tools'][_0x39da94(0x102)](_0x41e68d)}}],_0x495161=this[_0x39da94(0x3c0)][_0x39da94(0x1c3)](_0x2ed785,_0x1ae960);if(!_[_0x39da94(0x28a)](_0x495161))throw _0x495161[_0x39da94(0xf0)];const _0x1b7c00=(_0x3f63e3=(_0x16af86=(_0x15bf86=_0x495161[_0x39da94(0x163)][0x0])==null?void 0x0:_0x15bf86[_0x39da94(0x20b)])==null?void 0x0:_0x16af86[_0x39da94(0x2aa)])!=null?_0x3f63e3:_0x41e68d;Array[_0x39da94(0x281)](_0x1b7c00)&&_0x1b7c00[_0x39da94(0x3b8)]&&this[_0x39da94(0x137)][_0x39da94(0x1f0)](o[_0x39da94(0x1c8)])[_0x39da94(0x12d)](p[_0x39da94(0x1e4)]['id'],{'unitId':_0x4dfd00,'subUnitId':_0x4f7810,'selections':_0x1b7c00});}};ge=Cs([et(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),et(0x1,_[_0x30e940(0x2ab)])],ge);const Ts=new Set([p[_0x30e940(0x456)]['id']]);function tt(_0x30f244,_0x252371,_0x15931c,_0x4fca5e,_0x4f28f5){const _0x161859=_0x30e940;var _0x800f1e,_0x359d9a,_0x30a5cd,_0x64f047;const _0xf6f193=[];for(const _0x3d628b of _0x30f244)if(Ts['has'](_0x3d628b['id'])){if(_0xf6f193[_0x161859(0x3b8)]>0x0)break;_0xf6f193[_0x161859(0x220)](_0x3d628b);break;}else _0xf6f193['push'](_0x3d628b);const _0x23ce2d=(_0x359d9a=(_0x800f1e=_0x4f28f5[_0x161859(0x31c)]())==null?void 0x0:_0x800f1e[_0x161859(0x330)])!=null?_0x359d9a:_0x161859(0xa4),_0x2dca5b=(_0x64f047=(_0x30a5cd=_0x4f28f5['getCurrentUser']())==null?void 0x0:_0x30a5cd['memberID'])!=null?_0x64f047:'unknown';return{'changeset':{'unitID':_0x252371,'type':_[_0x161859(0x453)](_0x15931c[_0x161859(0x405)](_0x252371)),'baseRev':_0x4fca5e['getCurrentRevForDocument'](_0x252371),'revision':0x0,'userID':_0x23ce2d,'memberID':_0x2dca5b,'mutations':_0xf6f193},'pendingMutations':_0x30f244[_0x161859(0x2b7)](_0xf6f193['length'])};}function Rs(_0x47964,_0x2a2239,_0xc0024e,_0x364728,_0x166445){const _0x21e769=_0x30e940;var _0x43cf7c,_0x3058fd,_0xe3df41,_0x421d1a;const _0x30c356=[_0x47964['reduce']((_0x32d409,_0x38047d)=>{const _0x3a5d2=_0x3b20;var _0x1499a6;const {id:_0x3cf66a}=_0x32d409,{id:_0x280ad8,type:_0x3082d3}=_0x38047d,_0x1f5650=(_0x1499a6=_0x32d409[_0x3a5d2(0x20b)])!=null?_0x1499a6:{'actions':null},_0x1bd5ed=_0x38047d[_0x3a5d2(0x20b)];if(_0x3cf66a&&_0x3cf66a!==_0x280ad8)throw new Error(_0x3a5d2(0xe6)+_0x3cf66a+_0x3a5d2(0xc1)+_0x280ad8+'.');return{..._0x32d409,'id':_0x280ad8,'type':_0x3082d3,'params':{'unitId':_0x1bd5ed[_0x3a5d2(0x424)],'textRanges':_0x1bd5ed[_0x3a5d2(0x146)],'actions':o[_0x3a5d2(0x33e)][_0x3a5d2(0x35e)](_0x1f5650[_0x3a5d2(0x256)],_0x1bd5ed[_0x3a5d2(0x256)])}};},{})],_0x38ca85=(_0x3058fd=(_0x43cf7c=_0x166445[_0x21e769(0x31c)]())==null?void 0x0:_0x43cf7c[_0x21e769(0x330)])!=null?_0x3058fd:_0x21e769(0xa4),_0x4cd1db=(_0x421d1a=(_0xe3df41=_0x166445[_0x21e769(0x31c)]())==null?void 0x0:_0xe3df41[_0x21e769(0x1b2)])!=null?_0x421d1a:_0x21e769(0xa4);return{'changeset':{'unitID':_0x2a2239,'type':_[_0x21e769(0x453)](_0xc0024e[_0x21e769(0x405)](_0x2a2239)),'baseRev':_0x364728[_0x21e769(0x17e)](_0x2a2239),'revision':0x0,'userID':_0x38ca85,'memberID':_0x4cd1db,'mutations':_0x30c356},'pendingMutations':[]};}const Os={'id':p['EmptyMutation']['id'],'type':o[_0x30e940(0x99)][_0x30e940(0x438)],'params':{}};var Ds=Object[_0x30e940(0x36c)],Ps=Object['getOwnPropertyDescriptor'],K=(_0x59d6fc,_0x4ec3be,_0x365565,_0x411bef)=>{const _0x5d0743=_0x30e940;for(var _0x30f60f=_0x411bef>0x1?void 0x0:_0x411bef?Ps(_0x4ec3be,_0x365565):_0x4ec3be,_0xef27e0=_0x59d6fc[_0x5d0743(0x3b8)]-0x1,_0x5d2529;_0xef27e0>=0x0;_0xef27e0--)(_0x5d2529=_0x59d6fc[_0xef27e0])&&(_0x30f60f=(_0x411bef?_0x5d2529(_0x4ec3be,_0x365565,_0x30f60f):_0x5d2529(_0x30f60f))||_0x30f60f);return _0x411bef&&_0x30f60f&&Ds(_0x4ec3be,_0x365565,_0x30f60f),_0x30f60f;},m=(_0x57648d,_0x8bb7e8)=>(_0x109026,_0x27c021)=>_0x8bb7e8(_0x109026,_0x27c021,_0x57648d),D=(_0x5d12ac=>(_0x5d12ac[_0x30e940(0x25e)]=_0x30e940(0x1dd),_0x5d12ac[_0x30e940(0x9c)]=_0x30e940(0xc7),_0x5d12ac[_0x30e940(0x28e)]='pending',_0x5d12ac[_0x30e940(0x38c)]='awaiting',_0x5d12ac[_0x30e940(0x27c)]='awaiting_with_pending',_0x5d12ac[_0x30e940(0x33d)]=_0x30e940(0x3df),_0x5d12ac['CONFLICT']=_0x30e940(0x33b),_0x5d12ac[_0x30e940(0x32d)]=_0x30e940(0x1cd),_0x5d12ac))(D||{});class X{constructor(_0x1b5586,_0x38ed44,_0x251243,_0x5a5b25,_0x51b8aa,_0x11d82c,_0x2a1c1b,_0x139909,_0x1b8f82){const _0x143b41=_0x30e940;u(this,'_awaitingChangeset',null),u(this,_0x143b41(0x45a),[]),(this['unitID']=_0x1b5586,this[_0x143b41(0x312)]=_0x38ed44,this[_0x143b41(0x28c)]=_0x51b8aa,this[_0x143b41(0x176)]=_0x11d82c,this[_0x143b41(0x2c3)]=_0x2a1c1b,this[_0x143b41(0x2fb)]=_0x139909,this[_0x143b41(0x377)]=_0x1b8f82,this[_0x143b41(0x46d)]=_0x251243,this['_pendingMutations']=_0x5a5b25);}['_checkMissing'](_0x509d64){const _0x3bc6ab=_0x30e940,_0x20b892=this[_0x3bc6ab(0x2fb)][_0x3bc6ab(0x17e)](this[_0x3bc6ab(0x1e6)]);return _0x509d64[_0x3bc6ab(0x448)]>_0x20b892+0x1?(this[_0x3bc6ab(0x28c)][_0x3bc6ab(0x186)]({'from':_0x20b892,'to':_0x509d64[_0x3bc6ab(0x448)]-0x1}),!0x0):!0x1;}[_0x30e940(0xe1)](_0x3db9fa){const _0x4dda55=_0x30e940;this[_0x4dda55(0x2c3)][_0x4dda55(0xa6)](this['unitID'],_0x3db9fa);}[_0x30e940(0x2a0)](_0x123b93){const _0xa704f3=_0x30e940;var _0x3a252b,_0x5a84c2;(_0x5a84c2=(_0x3a252b=this[_0xa704f3(0x28c)])[_0xa704f3(0x29a)])==null||_0x5a84c2[_0xa704f3(0xe3)](_0x3a252b,_0x123b93);}[_0x30e940(0x311)](_0xc8b10a){const _0x3271aa=_0x30e940;var _0x221521,_0x238dfe;return(_0x238dfe=(_0x221521=this[_0x3271aa(0x28c)])['onTransformIME'])==null?void 0x0:_0x238dfe[_0x3271aa(0xe3)](_0x221521,_0xc8b10a);}[_0x30e940(0xc9)](_0x3a97a0){const _0x4bb60d=_0x30e940;var _0x40473b,_0x827f37,_0x5e2da4;return(_0x5e2da4=(_0x827f37=(_0x40473b=this['_handler'])[_0x4bb60d(0x8c)])==null?void 0x0:_0x827f37['call'](_0x40473b,_0x3a97a0))!=null?_0x5e2da4:_0x3a97a0;}[_0x30e940(0x36b)](_0x4db56a){const _0x50149d=_0x30e940;var _0x3b16d6,_0x11b92d;if(this[_0x50149d(0x312)]===j[_0x50149d(0x1f4)]){const {unitID:_0x4ed474,mutations:_0x1e8d49,memberID:_0x4e9ed1}=_0x4db56a,_0x27cbd2=_0x1e8d49[0x0][_0x50149d(0x20b)][_0x50149d(0x146)];Array['isArray'](_0x27cbd2)&&_0x27cbd2['length']>0x0&&((_0x11b92d=(_0x3b16d6=this[_0x50149d(0x28c)])[_0x50149d(0x11c)])==null||_0x11b92d['call'](_0x3b16d6,{'unitID':_0x4ed474,'memberID':_0x4e9ed1,'textRanges':_0x27cbd2}));}}[_0x30e940(0x1b7)](){const _0x2ab779=_0x30e940;this['_localCacheService'][_0x2ab779(0x475)](this[_0x2ab779(0x1e6)],this[_0x2ab779(0x312)],this[_0x2ab779(0x46d)],this[_0x2ab779(0x45a)]);}[_0x30e940(0x372)](){const _0x1071a2=_0x30e940;return this[_0x1071a2(0x2fb)][_0x1071a2(0x17e)](this[_0x1071a2(0x1e6)]);}[_0x30e940(0x204)](){const _0x3a697b=_0x30e940;this[_0x3a697b(0x2fb)]['incrementRevForDocument'](this[_0x3a697b(0x1e6)]);}['_executeRemoteChangeset'](_0x31d4b4){const _0x223f67=_0x30e940;var _0x8bb8c3;const _0xd51093=this[_0x223f67(0xc9)](_0x31d4b4),_0x51aad6=o[_0x223f67(0x26a)](_0xd51093['mutations'],this[_0x223f67(0x176)],{'fromCollab':!0x0});if(!_0x51aad6[_0x223f67(0x3ad)])throw _0x51aad6[_0x223f67(0xf0)]instanceof Error?_0x51aad6[_0x223f67(0xf0)]:new Error((_0x8bb8c3=_0x51aad6[_0x223f67(0xf0)])!=null?_0x8bb8c3:'[CollaborationState]:\x20apply\x20error!');this[_0x223f67(0x311)](_0xd51093),this[_0x223f67(0xe1)](_0x31d4b4),this['_transformSelections'](_0xd51093),this[_0x223f67(0x36b)](_0xd51093),this[_0x223f67(0x204)]();}}let ce=class extends X{constructor(_0x9f940,_0xbedb35,_0x1d06ba,_0x24abf1,_0x5bcdaa,_0x35e092,_0x4092d9,_0x5c4d7c,_0x4cc9c6,_0x51b4ec){const _0x1758a6=_0x30e940;super(_0x9f940,_0xbedb35,null,[],_0x1d06ba,_0x5c4d7c,_0x4092d9,_0x24abf1,_0x5bcdaa),u(this,_0x1758a6(0x1de),_0x1758a6(0xc7)),(this[_0x1758a6(0x137)]=_0x35e092,this[_0x1758a6(0x198)]=_0x4cc9c6,this[_0x1758a6(0x3c0)]=_0x51b4ec);}[_0x30e940(0x223)](_0x4fbe16){const _0x1379ea=_0x30e940,_0x257570=this[_0x1379ea(0x137)][_0x1379ea(0x1c0)]($,this[_0x1379ea(0x1e6)],this[_0x1379ea(0x312)],[_0x4fbe16],this[_0x1379ea(0x28c)]);return _0x257570[_0x1379ea(0x8f)](),_0x257570['_updateLocalCache'](),_0x257570;}['onRemoteChangeset'](_0x29532f){const _0x226e4d=_0x30e940;if(this[_0x226e4d(0x111)](_0x29532f))return this['_injector'][_0x226e4d(0x1c0)](H,this[_0x226e4d(0x1e6)],this[_0x226e4d(0x312)],null,[],null,[_0x29532f],this['_handler']);try{const _0x43a424=this['_transformService'][_0x226e4d(0x1c3)](_0x29532f,[Os]);if(_[_0x226e4d(0x28a)](_0x43a424)){const {c1Prime:_0x27d515}=_0x43a424;return this['_executeRemoteChangeset'](_0x27d515),this;}throw _0x43a424[_0x226e4d(0xf0)];}catch(_0x24b258){return this[_0x226e4d(0x198)][_0x226e4d(0xf0)](_0x24b258),this[_0x226e4d(0xc8)](!0x1);}}['_onConflict'](_0x272bf1){const _0x1db37f=_0x30e940;return this[_0x1db37f(0x137)][_0x1db37f(0x1c0)](B,this[_0x1db37f(0x1e6)],this[_0x1db37f(0x312)],null,[],this[_0x1db37f(0x28c)],_0x272bf1);}['onRemoteAck'](){const _0x8766a=_0x30e940;throw new Error(_0x8766a(0x42f));}[_0x30e940(0x13f)](){const _0x2a8df2=_0x30e940;throw new Error(_0x2a8df2(0x1ff));}[_0x30e940(0x3b2)](){const _0x27226a=_0x30e940;return this[_0x27226a(0x137)]['createInstance'](V,this[_0x27226a(0x1e6)],this['type'],null,[],this[_0x27226a(0x28c)]);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x5d251b=_0x30e940;throw new Error(_0x5d251b(0x3f7));}};ce=K([m(0x3,o[_0x30e940(0xdf)](_['RevisionService'])),m(0x4,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x5,o[_0x30e940(0xdf)](o['Injector'])),m(0x6,o[_0x30e940(0x17f)]),m(0x7,o[_0x30e940(0x1c8)]),m(0x8,o['ILogService']),m(0x9,_[_0x30e940(0x2ab)])],ce);let $=class extends X{constructor(_0xf32b7b,_0x492a18,_0x889235,_0x417e30,_0x13212a,_0x539a2a,_0x9b1768,_0x704c12,_0x19ce5d,_0x3ada1b,_0x4b31ae,_0x2c8393,_0x319af4,_0x4407e9){const _0x2f4b9b=_0x30e940;super(_0xf32b7b,_0x492a18,null,_0x889235,_0x417e30,_0x3ada1b,_0x4407e9,_0x539a2a,_0x9b1768),u(this,'status',_0x2f4b9b(0x112)),u(this,_0x2f4b9b(0x1fa),null),u(this,_0x2f4b9b(0x3dd),null),(this[_0x2f4b9b(0x137)]=_0x13212a,this[_0x2f4b9b(0x460)]=_0x704c12,this[_0x2f4b9b(0x198)]=_0x19ce5d,this[_0x2f4b9b(0x160)]=_0x4b31ae,this[_0x2f4b9b(0x3c0)]=_0x2c8393,this[_0x2f4b9b(0x43f)]=_0x319af4);}['appendMutation'](_0x38b0cb){const _0x2bade9=_0x30e940;return this['_pendingMutations'][_0x2bade9(0x220)](_0x38b0cb),this[_0x2bade9(0x1b7)](),this;}[_0x30e940(0x1c6)](_0x420ac1){const _0xfca586=_0x30e940;if(this[_0xfca586(0x111)](_0x420ac1))return this[_0xfca586(0x1f7)](),this[_0xfca586(0x137)][_0xfca586(0x1c0)](H,this[_0xfca586(0x1e6)],this[_0xfca586(0x312)],null,this[_0xfca586(0x45a)],null,[_0x420ac1],this[_0xfca586(0x28c)]);try{const _0x5592e6=this['_transformService']['transformMutationsWithChangeset'](_0x420ac1,this[_0xfca586(0x45a)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x5592e6)){const {c1Prime:_0x4dd3f3,m2Prime:_0x1609fc}=_0x5592e6;this[_0xfca586(0x369)](_0x4dd3f3);const _0xe0c686=this[_0xfca586(0x137)][_0xfca586(0x1c0)]($,this[_0xfca586(0x1e6)],this[_0xfca586(0x312)],_0x1609fc,this[_0xfca586(0x28c)]);return this[_0xfca586(0x1f7)](),_0xe0c686[_0xfca586(0x8f)](this['_scheduleTimestamp']?Math[_0xfca586(0x261)](0x0,new Date()[_0xfca586(0x23a)]()-this[_0xfca586(0x1fa)]):this['_getSendChangesetTimeout']()),_0xe0c686;}throw _0x5592e6[_0xfca586(0xf0)];}catch(_0x23a541){return this[_0xfca586(0x198)][_0xfca586(0xf0)](_0x23a541),this[_0xfca586(0xc8)](!0x1);}}[_0x30e940(0x32f)](){const _0x2479e3=_0x30e940;throw new Error(_0x2479e3(0x3f3));}[_0x30e940(0x13f)](){const _0x268e9c=_0x30e940;throw new Error(_0x268e9c(0x427));}['toggleOffline'](){const _0x164eeb=_0x30e940;return this[_0x164eeb(0x1f7)](),this[_0x164eeb(0x137)][_0x164eeb(0x1c0)](V,this[_0x164eeb(0x1e6)],this['type'],null,this[_0x164eeb(0x45a)],this[_0x164eeb(0x28c)]);}[_0x30e940(0x20e)](){return this;}['_schedule'](_0x117e62){const _0x5315fd=_0x30e940;_0x117e62=_0x117e62!=null?_0x117e62:this['_getSendChangesetTimeout'](),this[_0x5315fd(0x1fa)]=new Date()[_0x5315fd(0x23a)](),this['_sendingTimer']=setTimeout(()=>{const _0x5d5776=_0x5315fd;this[_0x5d5776(0x1f7)]();let _0x49c7f3=null;switch(this['type']){case j[_0x5d5776(0x390)]:{_0x49c7f3=tt(this[_0x5d5776(0x45a)],this['unitID'],this[_0x5d5776(0x43f)],this[_0x5d5776(0x2fb)],this[_0x5d5776(0x460)]);break;}case j[_0x5d5776(0x1f4)]:{this[_0x5d5776(0x45a)][_0x5d5776(0x435)](_0x3b3753=>_0x3b3753['id']===P[_0x5d5776(0x2ad)]['id'])?_0x49c7f3=Rs(this['_pendingMutations'],this['unitID'],this[_0x5d5776(0x43f)],this[_0x5d5776(0x2fb)],this[_0x5d5776(0x460)]):_0x49c7f3=tt(this[_0x5d5776(0x45a)],this[_0x5d5776(0x1e6)],this['_univerInstanceService'],this[_0x5d5776(0x2fb)],this[_0x5d5776(0x460)]);break;}default:throw new Error(_0x5d5776(0x328)+this[_0x5d5776(0x312)]+'\x20in\x20_schedule.');}const {changeset:_0xb25564,pendingMutations:_0x273ed9}=_0x49c7f3;this[_0x5d5776(0x28c)][_0x5d5776(0x2cb)](_0xb25564);const _0x5c6b54=_0x273ed9[_0x5d5776(0x3b8)]?this[_0x5d5776(0x137)][_0x5d5776(0x1c0)](x,this[_0x5d5776(0x1e6)],this[_0x5d5776(0x312)],_0xb25564,_0x273ed9,this[_0x5d5776(0x28c)]):this[_0x5d5776(0x137)][_0x5d5776(0x1c0)](k,this['unitID'],this[_0x5d5776(0x312)],_0xb25564,this[_0x5d5776(0x28c)]);_0x5c6b54[_0x5d5776(0x1b7)](),this[_0x5d5776(0x28c)][_0x5d5776(0x2d5)](this,_0x5c6b54);},_0x117e62);}[_0x30e940(0x2d2)](){const _0x1d80b0=_0x30e940;var _0x696a50;return(_0x696a50=this[_0x1d80b0(0x160)][_0x1d80b0(0xfc)](ht))!=null?_0x696a50:Wt;}[_0x30e940(0xdd)](){const _0x3e2ff4=_0x30e940;throw new Error(_0x3e2ff4(0x38d));}[_0x30e940(0x1f7)](){const _0x19fd96=_0x30e940;this[_0x19fd96(0x3dd)]!=null&&(clearTimeout(this[_0x19fd96(0x3dd)]),this['_sendingTimer']=null);}[_0x30e940(0xc8)](_0x46ffc5){const _0x268e8b=_0x30e940;return this['_clearScheduledTask'](),this[_0x268e8b(0x137)][_0x268e8b(0x1c0)](B,this[_0x268e8b(0x1e6)],this['type'],null,this['_pendingMutations'],this[_0x268e8b(0x28c)],_0x46ffc5);}};$=K([m(0x4,o[_0x30e940(0xdf)](o['Injector'])),m(0x5,o[_0x30e940(0xdf)](_['RevisionService'])),m(0x6,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x7,o['Inject'](Y)),m(0x8,o[_0x30e940(0x1e7)]),m(0x9,o[_0x30e940(0x1c8)]),m(0xa,o[_0x30e940(0x306)]),m(0xb,_[_0x30e940(0x2ab)]),m(0xc,o['IUniverInstanceService']),m(0xd,o[_0x30e940(0x17f)])],$);let k=class extends X{constructor(_0x45068a,_0x9f7ba5,_0x32a1b5,_0x27e9f6,_0x306e05,_0x327c16,_0x3f115d,_0x176b1c,_0x140bfe,_0x59d0ce,_0x3326f5){const _0x23db12=_0x30e940;super(_0x45068a,_0x9f7ba5,_0x32a1b5,[],_0x27e9f6,_0x176b1c,_0x3326f5,_0x327c16,_0x3f115d),u(this,_0x23db12(0x1de),_0x23db12(0x2e8)),(this[_0x23db12(0x137)]=_0x306e05,this[_0x23db12(0x198)]=_0x140bfe,this[_0x23db12(0x3c0)]=_0x59d0ce);}[_0x30e940(0x223)](_0x5095e4){const _0x598d3e=_0x30e940,_0x43fc08=this[_0x598d3e(0x137)][_0x598d3e(0x1c0)](x,this[_0x598d3e(0x1e6)],this[_0x598d3e(0x312)],this['_awaitingChangeset'],[_0x5095e4],this['_handler']);return _0x43fc08[_0x598d3e(0x1b7)](),_0x43fc08;}['onRemoteChangeset'](_0x2decc7){const _0x17a74a=_0x30e940;if(this['_checkMissing'](_0x2decc7))return this[_0x17a74a(0x137)][_0x17a74a(0x1c0)](H,this[_0x17a74a(0x1e6)],this[_0x17a74a(0x312)],this[_0x17a74a(0x46d)],[],null,[_0x2decc7],this[_0x17a74a(0x28c)]);try{const _0x185fc9=this[_0x17a74a(0x3c0)]['transformChangesets']([_0x2decc7],[this[_0x17a74a(0x46d)]],!0x1);if(_[_0x17a74a(0x38a)](_0x185fc9)){const {c1Prime:_0x1b8157,c2Prime:_0x2f3f44}=_0x185fc9;this['_executeRemoteChangeset'](_0x1b8157[0x0]),_0x2f3f44[0x0][_0x17a74a(0x209)]=this[_0x17a74a(0x372)]();const _0x46a715=this[_0x17a74a(0x137)]['createInstance'](k,this[_0x17a74a(0x1e6)],this[_0x17a74a(0x312)],_0x2f3f44[0x0],this['_handler']);return _0x46a715['_updateLocalCache'](),_0x46a715;}return this['_onConflict'](!0x1);}catch(_0xe1017d){return this[_0x17a74a(0x198)][_0x17a74a(0xf0)](_0xe1017d),this[_0x17a74a(0xc8)](!0x1);}}[_0x30e940(0x32f)](_0x471838){const _0x5b2090=_0x30e940,_0x1a5fd9=this['_revisionService']['getCurrentRevForDocument'](this[_0x5b2090(0x1e6)]);if(_0x471838[_0x5b2090(0x448)]<_0x1a5fd9-0x1)return this;if(this[_0x5b2090(0x111)](_0x471838))return this[_0x5b2090(0x137)][_0x5b2090(0x1c0)](H,this['unitID'],this[_0x5b2090(0x312)],null,[],this[_0x5b2090(0x46d)],[],this['_handler']);this[_0x5b2090(0x204)]();const _0x12a90b=this[_0x5b2090(0x137)]['createInstance'](ce,this[_0x5b2090(0x1e6)],this['type'],this['_handler']);return _0x12a90b[_0x5b2090(0x1b7)](),_0x12a90b;}[_0x30e940(0x13f)](_0x14e291){const _0x450d88=_0x30e940;return this[_0x450d88(0xc8)](!!(_0x14e291!=null&&_0x14e291[_0x450d88(0x463)]));}[_0x30e940(0x3b2)](){const _0x1972ba=_0x30e940;return this[_0x1972ba(0x137)][_0x1972ba(0x1c0)](V,this[_0x1972ba(0x1e6)],this[_0x1972ba(0x312)],this['_awaitingChangeset'],[],this[_0x1972ba(0x28c)]);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x1a99ad=_0x30e940;this['_handler'][_0x1a99ad(0x2cb)](this[_0x1a99ad(0x46d)]);}[_0x30e940(0xc8)](_0x1ed5e0){const _0x460598=_0x30e940;return this[_0x460598(0x137)][_0x460598(0x1c0)](B,this['unitID'],this['type'],this[_0x460598(0x46d)],[],this['_handler'],_0x1ed5e0);}};k=K([m(0x4,o['Inject'](o[_0x30e940(0xc4)])),m(0x5,o['Inject'](_[_0x30e940(0x1db)])),m(0x6,o[_0x30e940(0xdf)](exports['LocalCacheService'])),m(0x7,o[_0x30e940(0x1c8)]),m(0x8,o[_0x30e940(0x1e7)]),m(0x9,_[_0x30e940(0x2ab)]),m(0xa,o[_0x30e940(0x17f)])],k);let x=class extends X{constructor(_0x1243c3,_0xd06ed1,_0x14e029,_0x3cbf0c,_0xf73093,_0x595ea4,_0x54b60c,_0x55c00c,_0x405a05,_0x1a827c,_0x139509,_0x27a5ed){const _0x2c6b4b=_0x30e940;super(_0x1243c3,_0xd06ed1,_0x14e029,_0x3cbf0c,_0xf73093,_0x405a05,_0x27a5ed,_0x54b60c,_0x55c00c),u(this,_0x2c6b4b(0x1de),_0x2c6b4b(0x1d8)),(this[_0x2c6b4b(0x137)]=_0x595ea4,this[_0x2c6b4b(0x198)]=_0x1a827c,this[_0x2c6b4b(0x3c0)]=_0x139509);}[_0x30e940(0x223)](_0x4ba763){return this['_pendingMutations']['push'](_0x4ba763),this;}[_0x30e940(0x1c6)](_0x67b292){const _0x5b9931=_0x30e940;if(this[_0x5b9931(0x111)](_0x67b292))return this[_0x5b9931(0x137)][_0x5b9931(0x1c0)](H,this['unitID'],this[_0x5b9931(0x312)],this[_0x5b9931(0x46d)],this[_0x5b9931(0x45a)],null,[_0x67b292],this[_0x5b9931(0x28c)]);try{const _0x225459=this[_0x5b9931(0x3c0)]['transformChangesets']([_0x67b292],[this[_0x5b9931(0x46d)]],!0x1);if(_[_0x5b9931(0x38a)](_0x225459)){const {c1Prime:_0x538c4d,c2Prime:_0x3cbeb2}=_0x225459,_0x54dce2=this[_0x5b9931(0x3c0)][_0x5b9931(0x1c3)](_0x538c4d[0x0],this['_pendingMutations']);if(_[_0x5b9931(0x28a)](_0x54dce2)){const {c1Prime:_0x348e92,m2Prime:_0x21134c}=_0x54dce2;return this[_0x5b9931(0x369)](_0x348e92),_0x3cbeb2[0x0][_0x5b9931(0x209)]=this[_0x5b9931(0x372)](),this[_0x5b9931(0x137)]['createInstance'](x,this[_0x5b9931(0x1e6)],this[_0x5b9931(0x312)],_0x3cbeb2[0x0],_0x21134c,this[_0x5b9931(0x28c)]);}throw _0x54dce2[_0x5b9931(0xf0)];}throw _0x225459[_0x5b9931(0xf0)];}catch(_0x54c4d1){return this[_0x5b9931(0x198)][_0x5b9931(0xf0)](_0x54c4d1),this['_onConflict'](!0x1);}}[_0x30e940(0x32f)](_0xed51b0){const _0x21dbed=_0x30e940;if(this[_0x21dbed(0x111)](_0xed51b0))return this[_0x21dbed(0x137)][_0x21dbed(0x1c0)](H,this[_0x21dbed(0x1e6)],this[_0x21dbed(0x312)],null,this[_0x21dbed(0x45a)],this[_0x21dbed(0x46d)],[],this['_handler']);this[_0x21dbed(0x204)]();const _0x4aec91=this[_0x21dbed(0x137)][_0x21dbed(0x1c0)]($,this[_0x21dbed(0x1e6)],this['type'],this['_pendingMutations'],this[_0x21dbed(0x28c)]);return _0x4aec91[_0x21dbed(0x8f)](),_0x4aec91[_0x21dbed(0x1b7)](),_0x4aec91;}['onRemoteRej'](_0x17f8ef){const _0x586a19=_0x30e940;return this[_0x586a19(0xc8)](!!(_0x17f8ef!=null&&_0x17f8ef[_0x586a19(0x463)]));}[_0x30e940(0x3b2)](){const _0x468c81=_0x30e940;return this[_0x468c81(0x137)][_0x468c81(0x1c0)](V,this[_0x468c81(0x1e6)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x450c8c=_0x30e940;this[_0x450c8c(0x28c)][_0x450c8c(0x2cb)](this[_0x450c8c(0x46d)]);}[_0x30e940(0xc8)](_0x4b8369){const _0x10f2bc=_0x30e940;return this[_0x10f2bc(0x137)]['createInstance'](B,this[_0x10f2bc(0x1e6)],this[_0x10f2bc(0x312)],null,this[_0x10f2bc(0x45a)],this['_handler'],_0x4b8369);}};x=K([m(0x5,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),m(0x6,o['Inject'](_[_0x30e940(0x1db)])),m(0x7,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x8,o[_0x30e940(0x1c8)]),m(0x9,o[_0x30e940(0x1e7)]),m(0xa,_['ITransformService']),m(0xb,o[_0x30e940(0x17f)])],x);let B=class extends X{constructor(_0x3c6d33,_0xe0ef71,_0x2aa9d5,_0x9ef31d,_0x119961,_0x808bb0=!0x1,_0x3a5079,_0x550e0c,_0x10b72a,_0x2708ab,_0x1c38c9,_0x13b149,_0x145fc1){const _0x44d3ec=_0x30e940;super(_0x3c6d33,_0xe0ef71,_0x2aa9d5,_0x9ef31d,_0x119961,_0x550e0c,_0x10b72a,_0x1c38c9,_0x2708ab),u(this,_0x44d3ec(0x1de),'conflict'),(this[_0x44d3ec(0x121)]=_0x808bb0,this['_permissionService']=_0x3a5079,this[_0x44d3ec(0x45b)]=_0x13b149,this[_0x44d3ec(0xe8)]=_0x145fc1,this[_0x44d3ec(0xd5)](),this[_0x44d3ec(0x10c)](),this['_disableEditing']());}[_0x30e940(0x223)](){return this;}['onRemoteChangeset'](){return this;}[_0x30e940(0x32f)](){return this;}[_0x30e940(0x13f)](){return this;}[_0x30e940(0x3b2)](){return this;}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xdd)](){const _0x247384=_0x30e940;throw new Error(_0x247384(0x411));}[_0x30e940(0x10c)](){const _0x5a437d=_0x30e940;this[_0x5a437d(0x377)]['updateOfflineData'](this['unitID'],this[_0x5a437d(0x312)],null,[]);}[_0x30e940(0xd5)](){const _0x383297=_0x30e940;this['_isPermissionRej']?this['_notificationService']['show']({'title':this[_0x383297(0x45b)]['t'](_0x383297(0x14f)),'content':this[_0x383297(0x45b)]['t'](_0x383297(0x343)),'type':_0x383297(0xf0),'duration':0x0}):this[_0x383297(0xe8)][_0x383297(0x157)]({'title':this['_localeService']['t'](_0x383297(0xf2)),'content':this['_localeService']['t']('conflict.content'),'type':'error','duration':0x0});}['_disableEditing'](){const _0x15268f=_0x30e940;this[_0x15268f(0x153)][_0x15268f(0x289)](new p[(_0x15268f(0x458))](this[_0x15268f(0x1e6)])['id'],!0x1);}};B=K([m(0x6,o[_0x30e940(0xdf)](o['IPermissionService'])),m(0x7,o[_0x30e940(0x1c8)]),m(0x8,o[_0x30e940(0x17f)]),m(0x9,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0xa,o['Inject'](_['RevisionService'])),m(0xb,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)])),m(0xc,L[_0x30e940(0x236)])],B);let V=class extends X{constructor(_0x4a1321,_0x4911d2,_0x193a76,_0xf94193,_0x438d93,_0x35bcb0,_0x2427d5,_0x344c88,_0x46066e,_0x96c9a7){const _0x2fde07=_0x30e940;super(_0x4a1321,_0x4911d2,_0x193a76,_0xf94193,_0x438d93,_0x46066e,_0x96c9a7,_0x2427d5,_0x344c88),u(this,'status',_0x2fde07(0x1cd)),this[_0x2fde07(0x137)]=_0x35bcb0;}[_0x30e940(0x223)](_0x4f0831){const _0x250f54=_0x30e940;return this['_pendingMutations'][_0x250f54(0x220)](_0x4f0831),this['_updateLocalCache'](),this;}[_0x30e940(0x1c6)](_0x1b1f95){const _0x25006d=_0x30e940;throw new Error(_0x25006d(0x357));}[_0x30e940(0x32f)](){const _0x374e1b=_0x30e940;throw new Error(_0x374e1b(0x14c));}[_0x30e940(0x13f)](){const _0x51fa87=_0x30e940;throw new Error(_0x51fa87(0x421));}[_0x30e940(0x3b2)](){return this;}[_0x30e940(0x20e)](){const _0xd10577=_0x30e940,{_injector:_0x535358,_pendingMutations:_0x409bf2,_awaitingChangeset:_0x275ee9,unitID:_0x521934,_handler:_0xa51aee,type:_0x27c45a}=this,_0x125746=Tt(_0x535358,_0x521934,_0x27c45a,_0x275ee9,_0x409bf2,_0xa51aee);return _0x125746 instanceof $?_0x125746[_0xd10577(0x8f)]():(_0x125746 instanceof x||_0x125746 instanceof k)&&_0x125746[_0xd10577(0xdd)](),_0x125746;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};V=K([m(0x5,o[_0x30e940(0xdf)](o['Injector'])),m(0x6,o[_0x30e940(0xdf)](_[_0x30e940(0x1db)])),m(0x7,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0x8,o[_0x30e940(0x1c8)]),m(0x9,o[_0x30e940(0x17f)])],V);let H=class extends X{constructor(_0x22e12a,_0x48fd78,_0x3ebf68,_0x4fe439,_0x3792db,_0x105025,_0x294ae0,_0x12f6b3,_0x1800ee,_0xfa1220,_0x45d9da,_0x53d6ea,_0x4e89bf,_0x5de6d9){const _0x426fce=_0x30e940;super(_0x22e12a,_0x48fd78,_0x3ebf68,_0x4fe439,_0x294ae0,_0x53d6ea,_0x4e89bf,_0x1800ee,_0xfa1220),u(this,'status',_0x426fce(0x3df)),(this[_0x426fce(0xe5)]=_0x3792db,this[_0x426fce(0xff)]=_0x105025,this[_0x426fce(0x137)]=_0x12f6b3,this[_0x426fce(0x198)]=_0x45d9da,this[_0x426fce(0x3c0)]=_0x5de6d9);}[_0x30e940(0x44f)](_0x458b93){const _0xf4a71c=_0x30e940;try{const _0x7f410d=[..._0x458b93,...this[_0xf4a71c(0xff)]],_0x383ee3=[this[_0xf4a71c(0x46d)]||this['_acknowledgedAwaitingChangeset']][_0xf4a71c(0x20a)](_0x5c954a=>!!_0x5c954a);let _0x128f3b,_0x3d33a6;if(_0x383ee3[_0xf4a71c(0x3b8)]){const _0x51fb3d=this[_0xf4a71c(0x3c0)][_0xf4a71c(0x1ab)](_0x7f410d,_0x383ee3,!0x1);if(!_[_0xf4a71c(0x38a)](_0x51fb3d))throw _0x51fb3d[_0xf4a71c(0xf0)];_0x128f3b=_0x51fb3d[_0xf4a71c(0x1f6)],_0x3d33a6=_0x51fb3d[_0xf4a71c(0x409)];}else _0x128f3b=_0x7f410d,_0x3d33a6=[];let _0x36f645=this[_0xf4a71c(0x45a)];_0x128f3b[_0xf4a71c(0x277)](_0x5151a3=>{const _0x4dd1de=_0xf4a71c;let _0xdac9bd;if(_0x36f645[_0x4dd1de(0x3b8)]){const _0x53c787=this[_0x4dd1de(0x3c0)]['transformMutationsWithChangeset'](_0x5151a3,_0x36f645);if(!_[_0x4dd1de(0x28a)](_0x53c787))throw _0x53c787[_0x4dd1de(0xf0)];_0xdac9bd=_0x53c787[_0x4dd1de(0x1f6)],_0x36f645=_0x53c787[_0x4dd1de(0x163)];}else _0xdac9bd=_0x5151a3;this[_0x4dd1de(0x369)](_0xdac9bd);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0xf4a71c(0x46d)]&&_0x3d33a6[_0xf4a71c(0x3b8)]&&(_0x3d33a6[0x0]['baseRev']=this[_0xf4a71c(0x372)]());let _0x599923;if(this[_0xf4a71c(0x46d)]&&_0x36f645[_0xf4a71c(0x3b8)]!==0x0)_0x599923=this[_0xf4a71c(0x137)][_0xf4a71c(0x1c0)](x,this[_0xf4a71c(0x1e6)],this[_0xf4a71c(0x312)],_0x3d33a6[0x0],_0x36f645,this[_0xf4a71c(0x28c)]);else{if(this[_0xf4a71c(0x46d)]&&_0x36f645[_0xf4a71c(0x3b8)]===0x0)_0x3d33a6[0x0][_0xf4a71c(0x209)]=this[_0xf4a71c(0x372)](),_0x599923=this[_0xf4a71c(0x137)][_0xf4a71c(0x1c0)](k,this[_0xf4a71c(0x1e6)],this['type'],_0x3d33a6[0x0],this[_0xf4a71c(0x28c)]);else{if(_0x36f645[_0xf4a71c(0x3b8)]!==0x0){const _0x3b2491=this['_injector'][_0xf4a71c(0x1c0)]($,this[_0xf4a71c(0x1e6)],this['type'],_0x36f645,this[_0xf4a71c(0x28c)]);_0x3b2491[_0xf4a71c(0x8f)](),_0x599923=_0x3b2491;}else _0x599923=this[_0xf4a71c(0x137)][_0xf4a71c(0x1c0)](ce,this[_0xf4a71c(0x1e6)],this[_0xf4a71c(0x312)],this[_0xf4a71c(0x28c)]);}}return _0x599923['_updateLocalCache'](),_0x599923;}catch(_0x1af9fb){return this[_0xf4a71c(0x198)]['error']('[FetchMissState]',_0xf4a71c(0x3ab),_0x1af9fb),this['_injector'][_0xf4a71c(0x1c0)](B,this['unitID'],this[_0xf4a71c(0x312)],this['_awaitingChangeset'],this[_0xf4a71c(0x45a)],this[_0xf4a71c(0x28c)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x30e940(0x223)](_0xc793a3){const _0x91eeb8=_0x30e940;return this[_0x91eeb8(0x45a)]['push'](_0xc793a3),this;}[_0x30e940(0x1c6)](_0xa06a61){const _0x2baa25=_0x30e940;return this[_0x2baa25(0xff)][_0x2baa25(0x220)](_0xa06a61),this;}['onRemoteAck'](_0x51638a){const _0x347257=_0x30e940;if(this[_0x347257(0x46d)])return this[_0x347257(0xe5)]=this[_0x347257(0x46d)],this[_0x347257(0x46d)]=null,this;throw new Error(_0x347257(0x38e));}[_0x30e940(0x13f)](_0x2fec58){const _0x23b838=_0x30e940;return this[_0x23b838(0xc8)](!!(_0x2fec58!=null&&_0x2fec58[_0x23b838(0x463)]));}[_0x30e940(0x3b2)](){const _0x146e57=_0x30e940;return this[_0x146e57(0x137)][_0x146e57(0x1c0)](V,this['unitID'],this[_0x146e57(0x312)],this[_0x146e57(0x46d)],this[_0x146e57(0x45a)],this[_0x146e57(0x28c)]);}[_0x30e940(0x20e)](){return this;}[_0x30e940(0xc8)](_0x35c346){const _0xa40f55=_0x30e940;return this[_0xa40f55(0x137)]['createInstance'](B,this['unitID'],this[_0xa40f55(0x312)],this[_0xa40f55(0x46d)],this[_0xa40f55(0x45a)],this[_0xa40f55(0x28c)],_0x35c346);}};H=K([m(0x7,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),m(0x8,o[_0x30e940(0xdf)](_[_0x30e940(0x1db)])),m(0x9,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),m(0xa,o[_0x30e940(0x1e7)]),m(0xb,o[_0x30e940(0x1c8)]),m(0xc,o[_0x30e940(0x17f)]),m(0xd,_[_0x30e940(0x2ab)])],H);function Tt(_0x1655ae,_0x58c98f,_0x834f25,_0x4e36a0,_0x4094b4,_0x56a169){const _0x2d3cb7=_0x30e940;return _0x4e36a0&&_0x4094b4[_0x2d3cb7(0x3b8)]?_0x1655ae['createInstance'](x,_0x58c98f,_0x834f25,_0x4e36a0,_0x4094b4,_0x56a169):_0x4e36a0?_0x1655ae[_0x2d3cb7(0x1c0)](k,_0x58c98f,_0x834f25,_0x4e36a0,_0x56a169):_0x4094b4[_0x2d3cb7(0x3b8)]?_0x1655ae[_0x2d3cb7(0x1c0)]($,_0x58c98f,_0x834f25,_0x4094b4,_0x56a169):_0x1655ae['createInstance'](ce,_0x58c98f,_0x834f25,_0x56a169);}function _0x59d8(){const _0x5bf993=['_waitForHeartbeatResponse','/universer-api/stream/file/upload','labelPosition','message$','body','_colorAssignService','_sendingTimer','location','fetch_missing','status$','_ensureSubject','selection','getParam','objectType','LIVESHARE_TERMINATE','Shape','_colorIndex','removeMember','send','_snapshotService','loadDoc','3595455GfHXBW','UNRECOGNIZED','image/jpg','ALREADY_EXISTS','_status$','getSheetBySheetId','unshift','[PendingState]:\x20received\x20acknowledgement.','defs','_shapes','143854AXbDxA','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursors','@univerjs/rpc','#fff','_initMergeInterceptor','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','sessionStatus$','JOIN','CollaborationSession','_beforeCloseService','IURLService','objects','SheetCollaborationEntity','lineTo','getUnitType','reject','handleInsertRangeMoveDown','HEARTBEAT_TIMEOUT_KEY','c2Prime','lodash/debounce','AuthzIoHttpService','isEditing','HTTPRequest','LifecycleStages','_docSkeletonManagerService','sheetId','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UnitSnapshot','_userManagerService','deserializeToCombResponse','_loadDoc','_onFetchMissResult','_setupSubUnitSync','add','handleIRemoveRow','_themeService','/universer-api/snapshot','SnapshotServerOverHTTPService','_removeRoom','LICENSE_MAX_UNITS_EXCEEDED','resize','UNIVER_PROJECT','[OfflineState]:\x20received\x20rejection.','disableLocalCache','closePath','unitId','_eventUnsubscribe','registerComponent','[PendingState]:\x20received\x20rejection.','_config','defIds','rxjs/operators','_event$','_socket$','_online','HEARTBEAT_INTERVAL','[SyncedState]:\x20received\x20acknowledgement.','[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.','_socket','searchParams','currentSkeleton$','getActiveRange','every','state$','originalMeta','MUTATION','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','measureText','entries','serializeRangeWithSheet','headers','/-/object/-/batch_allowed','_univerInstanceService','getRelativeToViewportCoord','APPLY_REVISION_CONFILICT','IUIPartsService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','12TWKLfz','_state$','svg','Error','revision','_hover','APPLY_REJECT','localeService','subUnitId','isValidRectRange','width','onMissedChangesetFetched','text','toString','url(#$1','mapDocumentTypeToUniverType','_backgroundColor','_assignedColors','InsertSheetMutation','Subject','WorkbookEditablePermission','colorChannel1','_pendingMutations','_localeService','has','readAsDataURL','toRgbString','5TkzGwq','_memberService','session','IBeforeCloseService','isPermissionRej','findNodePositionByCharIndex','collabStatus.notCollab','_clearTimeoutTimer','saveImage','collabStatus.synced','getFocusedUnit','UniverIcon','IMEInputManagerService','COMMENT_UPDATE','_awaitingChangeset','next','_collaborationController','requireSession','setItem','saveChangeset','USERS_ENTER','[CollaborationEntity]','updateOfflineData','@univerjs/engine-render','clearTimeout','Rect','UPDATE_CURSOR','NOT_FOUND','file','onTransformRemoteChangesetByIMECache','_unitOnClients','div','_schedule','ColorKit','TOO_MANY_REQUESTS','\x0aCurrent:\x20','getUnitStatus$','_getUndoStack','mutations','Optional','_drawRectRange','M0\x200H16V16H0z','CommandType','_members','clear','SYNCED','then','tag','_registerRenderDependencies','NEW_CHANGESETS','toDisposable','_waitCount','IAuthzIoService','unknown','_createHandler','transformUndoRedo','switchMap','/universer-api/oidc/authpage','joinEvent','debounceTime','create','handleMoveRange','image/png','startsWith','Undefined','complete','RefRangeService','url(#off-line-single_clip0_910_343)','_sheetSkeletonManagerService','socketService','resolve','\x0aAfter:\x20','[CollaborationSession]','href','purple300','_substituteRedoStack','_singleActiveUnitService','0\x200\x2016\x2016','merge','hide','_labelPosition','_imageSourceCache','\x20-\x20','state','_unlockTransition','Injector','getTypeOfUnitAdded$','dispose','synced','_onConflict','_transformRemoteChangesetByIMECache','getValue','socket\x20close','auth.needGotoLoginAlert','_collabCursorController','handleDeleteRangeMoveUp','useObservable','\x20to\x20','SHOULD_CLOSE_CONN','onCommandExecuted','assignAColorForMemberID','_transformStack','_showConflictNotification','UNIVER_COLLABORATION_CLIENT_PLUGIN','DocSkeletonManagerService','socket\x20open.','concatMap','XHRHTTPImplementation','_updateURLWithCurrentState','_anchorDot','resend','CollaborationController','Inject','encodeURIComponent','_transformUndoredo','_clearOtherTimers','call','unsubscribe','_acknowledgedAwaitingChangeset','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_range','_notificationService','_compressMutationService','_replayCachedMutations','icon','fill','forwardRef','&source=','LICENSE_DISTRO_REJECTED','error','_onCursorUpdate','conflict.title','ThemeService','image/gif','TEXT_RANGE_LAYER_INDEX','_toggleOnline','updatePermissionObjEvent','_roomMembers','awaitingChangeset','collabStatus.fetchMiss','attrs','getConfig','_cursorInfo$','LocaleService','_queuedRemoteChangesets','_onUserJoin','assign','deepClone','APPLY_PERMISSION_DENIED','onStarting','FETCH_MISSING','_onRemoteChangeset','HEARTBEAT_INTERVAL_KEY','generateRandomId','_getSignURL','data','isInternalEditorID','_clearLocalCache','_initModules','ERROR_EXCEED_SIZE','pluginName','CollaborationSocketService','_checkMissing','pending','VIEW_MAIN','_getSaveTimeout','_renderManagerService','batchAllowed','getCoordByCell','LICENSE_EXPORT_SIZE_EXCEEDED','JOINING','_createSocket','registerRefRange','onSyncEditingCollabCursor','_urlService','allowed','replaceTextRanges','map','_isPermissionRej','_HTTPService','UserManagerService','PSEUDO_FETCH_MISSING_RESULT','sessionStatus','save','override','EXCHANGE_SIGN_URL_SERVER_URL_KEY','interceptor','getUnhiddenWorksheets','CHANGESET_REVISION_CONFILICT','LOGIN_URL_KEY','executeCommand','updateMember','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','COMPLETION_FINISHED','FromArray','error$','pushState','onCommentUpdate','getCollabCursors$','INTERNAL_ERROR','_injector','univer-online-status-title','getCollabEntity','_docStateChangeManagerService','mergeOverrideWithDependencies','serializeDocRange','15747320nxLrzl','_transitionLocked','onRemoteRej','OTHER_CLIENTS_EDITING','0\x200\x2017\x2016','getTypeOfUnitDisposed$','_getMergeRange','univer-online-status-icon','liveShareOperation','textRanges','[CollaborationSessionService]','xlink:href','refreshPermission','Plugin','_undoStacks','[OfflineState]:\x20received\x20acknowledgement.','getColor','values','permission.title','objectID','_initStatusComponent','[CollaborationUndoRedoService]','_permissionService','_saveTaskMap','skeleton','transformSelections','show','_toggleOffline','flatMap','_anchor','LICENSE_IMPORT_SIZE_EXCEEDED','uni.network.url-service','eventID','_getSheetObject','target','_configService','code','SNAPSHOT_SERVER_URL_KEY','m2Prime','_startCollaboration','bottom','_onJoinRoomEvent','?url=','onTransformIME','url','asObservable','createIdentifier','SessionStatus','from','univer-online-status','DisposableCollection','_decreaseWaiting','@univerjs/ui','CommentService','setCurrentUser','drawWith','replaceState','_commandService','POST','ImageUploadStatusType','getSheetBlock','UNKNOWN_CODE','collaboratorID','withCredentials','_docTransformIMECacheService','getCurrentRevForDocument','IUndoRedoService','_onRecvEvent','HTTPService','b64DecodeUnicode','_getAPIPrefix','newCsEvent','enableLocalCache','onMissingChangesets','MessageType','_updateState','all','_disabled','DesktopCollaborationStatusDisplayController','_onCombEvent','ImageIoService','beginPath','getActiveSheet','loadSheet','_sendHeartbeatTimer','clsx','confirm','[DataLoaderController]','parseProtocolChangeset','subscribe','ws://127.0.0.1:8000/universer-api/comb/connect','_logService','event$','_httpService','getDocRanges','SUBMIT_CHANGESET','univerjs-icon\x20univerjs-icon-','collaboration-client.offline-data-not-saved','_removeClearOtherTimer','focused$','YUUMI_URL_COL_OUT_OF_RANGE','getOwnPropertyDescriptor','getOffsetConfig','newValue','saveSheetBlock','UPDATE_PERMISSION_OBJ','catch','saveOfflineData','enableOfflineEditing','_scene','transformChangesets','&assign=','EffectRefRangId','/unit/','collab-rect-range-','action','getSheetObject','memberID','_sheetTransformSelectionsService','onPointerLeave$','exhaustSavingTask','_cursorShapes','_updateLocalCache','1em','_change$','_initUnitPermissionChange','_replaceFileID','requestParams','/collaborator','stringify','transformMutation','createInstance','_onMessage','roomMembers','transformMutationsWithChangeset','USERS_LEAVE','ImageSourceType','onRemoteChangeset','members','ICommandService','doc.mutation.rich-text-editing','BASE64','patch','_handleHover','offline','_getAPIPrefixPath','RxDisposable','unit','getSkeleton','registerHTTPInterceptor','string','propertyIsEnumerable','?size=','_textBubble','_docTransformSelectionsService','awaiting_with_pending','SnapshotService','_refRangeService','RevisionService','onlyLocal','not_collab','status','InsertRangeMoveDownCommandId','popstate','collab-text-anchor-','@univerjs/drawing','MoveRangeCommandId','SetSelectionsOperation','includes','unitID','ILogService','OnLifecycle','COLORS','color','_render','list','InsertRowCommandId','FAIL','top','get','_drawAnchor','IRenderManagerService','transformIMECache','UNIVER_DOC','take','c1Prime','_clearScheduledTask','row','_sessions','_scheduleTimestamp','setActiveRange','CONNECTOR_DATA_TOO_LARGE','isTransformMutationFailure','Univer','[SyncedState]:\x20received\x20rejection.','_entities','/fetchmissing?from=','collab-text-range-','ICollaborationSocketService','_incrementRevisionNumber','m1Prime','image/jpeg','_collaborationPaused','indexOf','baseRev','filter','params','title','_collabSessionService','toggleOnline','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Module','fromCollab','COMPRESS_MUTATION_APPLY','setShapeProps','endRow','TextSelectionManagerService','_collabCursorState$','_localStorageService','_tryEnsureSocket','COLLAB_SUBMIT_CHANGESET_URL_KEY','32uGjmxu','_onConnectionOpen','close','LIVESHARE_FETCH_OPERATIONS','_socketService','_context','push','SheetPermissionInitController','hasOwnProperty','appendMutation','_lockTransition','displayName','/block/','LocalCacheService','1074894UxTZrU','HELLO','getCurrentUnitForType','SUCCUSS','disposeWithMe','_getCtorByUniverType','substring','_clearCollaborationTimeoutTimer','_entityInit$','getCollabEntity$','NodePositionConvertToRectRange','IUniverInstanceService','clipPath','Tools','INotificationService','ISnapshotServerService','backgroundColor','open$','getTime','LocalUndoRedoService','_onRefRangeChange','_fetchMissChangesets','toStringTag','editingUnit','session.connection-failed','_onRemoteRejected','SNAPSHOT_INVALID_SNAPSHOT','className','delete','Starting','subscribeEvent','_getLoginPath','submit\x20changeset\x20error!','encode','blue400','combineLatest','round','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ThresholdInterceptorFactory','whenReady','SheetCollabCursorShape','/object','LIVESHARE_NEW_HOST','off-line-single','@univerjs/design','_messageService','actions','onlineStatusIcon','_collaborationTimeoutTimer','append','clearInterval','@univerjs-pro/collaboration','roomInfos','DependentOn','NOT_COLLAB','collabStatus.syncing','_cursor','max','_onCursorDelete','history','addObjects','registerRenderModule','getMemberID','_getAnchorBounding','_updateStatus','_removeCollabCursors','sequenceExecute','gold400','_commentService','_applyRemoteChangeset','enableAuthServer','resourceIDs','session.collaboration-timeout','_document','HEARTBEAT','_handleJoinEvent','syncEditingCollabCursor','getMember','HttpImport','forEach','_socketReady','@univerjs/docs','SetDocZoomRatioOperation','csAckEvent','AWAITING_WITH_PENDING','...','setInterval','idSuffix','getUnitId','isArray','RegularPolygon','replace','CollaborationEvent','_name','delay','_socketMessageSubscription','_timeoutTimer','updatePermissionPoint','isTransformMutationsWithChangesetSuccess','textEncoder','_handler','getSheetId','PENDING','YUUMI_SUBSCRIPTION_NOT_FOUND','_substituteUndoStack','collabStatus.offline','getCellPositionByOffset','debug','UNIVER_UNKNOWN','restore','LEAVE','split','transformRemoteChangeset','disposeUnit','onTransformSelections','_hideTimer','getCurrent','reduce','getUniverSheetInstance','createSocket','_transformSelections','startRow','_createInitialStateImpl','SetWorksheetActivateCommand','_state','_send','_uiPartsService','getCurrentSelections','contains','pipe','selections','ITransformService','min','RichTextEditingMutation','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','session.will-retry','_handleEvent','dispose$','arc','_getScale','_onLocalMutation','APPLY_NON_SEQUENTIAL_REVISION','listRoles','slice','IDLE','roomMembers$','UNDEFINED','workbook','INVALID_ARGUMENT','InsertColCommandId','onPointerEnter$','UnitEmbedded','collabStatus.conflict','_startDocCollabCursor','_exhaustRemoteChangesetQueue','_undoRedoService','closeSession','endColumn','CHANGESET_REJ','3491616OoOpVa','update','_onConnectionFailed','getItem','onSendChangeset','3214964pBHFxg','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','@univerjs/sheets-ui','isActive','infoRsp','SNAPSHOT_HAS_BEEN_REMOVED','_getSendChangesetTimeout','_sessionStatus$','_initCloseConn','onStateChange','_submitChangeset','/universer-api/snapshot/','BehaviorSubject','_updateLocalCursor','IContextService','_hovered','fetchThroughInterceptors','red300','SEND_CHANGESET_TIMEOUT_KEY','COLLAB_SUBMIT_CHANGESET_URL','HttpExport','getUnitOnRev','updateCollaborator','urlChange$','NodePositionConvertToCursor','_selfUnitIDs','put','getImageSourceCache','awaiting','sheets','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_init','isTransformMutationsWithChangesetFailure','SheetsSelectionsService','Vector2','{fileID}','some','_transformPreviousActiveRange','UNIVER_SLIDE','size','_updateSubUnitFromURLParams','_cachedData','RECV','handleIRemoveCol','fillStyle','fromEventSubject','LOCAL_CACHE_INTERVAL','_revisionService','CollaborationStatusDisplay','RETRY_CONNECTING_INTERVAL','UNAUTHENTICATED','function','getVpScrollXYInfoByPosToVp','AUTHZ_URL_KEY','DocStateChangeManagerService','getRoom','online','RETRY_CONNECTING_MAX_COUNT','IConfigService','on-line-single','moveTo','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','fromEvent','_session','_loadSheet','CHANGESET_ACK','init','_sendHeartbeat','@univerjs/core','_transformIMECache','type','_clearHeartbeatTimer','_id','_joinRoom','currentColor','ranges','concat','rgba(255,\x20255,\x20255,\x200.01)','_snapshotServerService','COMPRESS_MUTATION_SEND','getCurrentUser','deserializeRangeWithSheet','deleteCollaborator','_saveCache','getAncestorScale','src','cmd','getOwnPropertySymbols','PERMISSION_DENIED','Unknown\x20user','collaboration.closeRoom','PERMISSION_REJ','[PendingState]:\x20unhandled\x20univer\x20type:\x20','onPointerMove$','serializeCombRequest','saveSnapshot','on-line-single_clip0_910_349','OFFLINE','find','onRemoteAck','userID','RemoveRowCommandId','registerBeforeClose','session.room-full','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','children','_scheduleCollaborationTimeoutTimer','prototype','_refreshCollabCursors','1318135OvAzKc','Ready','conflict','_getUploadFileURL','FETCH_MISS','JSONX','addObject','YUUMI_UNABLE_LOAD_URL','loadOfflineData','WebURLService','permission.content','parse','column','set','_onRemoteACK','_handleHeartbeatEvent','objectActions','_scheduleClearOtherTimer','routeKey','fetchMissingChangesets','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_http','distinctUntilChanged','WebSocketService','_scheduleReconnection','enableSingleActiveInstanceLock','_startSheetCollabCursor','json','runRefRangeMutations','_syncEditingCollabCursorService','[OfflineState]:\x20received\x20changeset.','addEventListener','_getSnapshotAPIPrefix','_ws','ERROR_IMAGE','post','_heartbeatTimer','compose','permissionRejEvent','INGEST','LIVESHARE_REQUEST_HOST','CompressMutationService','/object/','_retryCount','translate(.97)','editing\x20status\x20changed\x20to','_clearUndo','getImage','_executeRemoteChangeset','_retryConnectingTimer','_syncEditingCollabCursor','defineProperty','ACTIVE_UNIT_EVENT_CHANNEL','SNAPSHOT_URL_KEY','subunit','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','HEARTBEAT_TIMEOUT','_getCurrentRevision','CollaborationSessionService','_commentUpdate$','[CollaborationSessionService]:\x20socket\x20error','onRendered','_localCacheService','#FFF','_remoteChangesetQueue','&to=','joinRsp','UniverInstanceType','MSG_FOR_ERROR','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_updateCollabCursors','collabCursorState$','handleDeleteRangeMoveLeft','LIVESHARE_OPERATION','setParam','_initStatusListener','DataLoaderController','CollaborationStatus','_color','/resources','NO_OTHER_CLIENTS_EDITING','isTransformChangesetsSuccess','change$','AWAITING','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','ERROR_IMAGE_TYPE','UNIVER_SHEET','hovered','close$','_collaborationSessionService','_registerDependencies','path','RemoveColCommandId','/-/object/list','DeleteRangeMoveLeftCommandId','_getRedoStack','cursorInfo','_unitID','setAlpha','image/bmp','_lastPointer','mapTo','startColumn','responseType','_rescheduleHeartbeatEvent','_unitStatus','_handleLeaveEvent','createElement','cursorInfo$','name','takeUntil','range','ONLINE','failed\x20to\x20apply\x20missed\x20changesets!','activeSheet$','result','_roomMembers$','getInterceptPoints','fillText','black','toggleOffline','font','onMouseMove','IImageIoService','symbol','IPermissionService','length','COLLAB_WEB_SOCKET_URL_KEY','throttleTime','method','_docSyncEditingCollabCursorService','height','getRangePointData','react','_transformService','_clearRedo','DeleteRangeMoveUpCommandId','Disposable','rxjs','shareReplay','UniverCollaborationClientPlugin','_initCommandExecutedListener','_type','[UniverCollaborationClientPlugin]','random','YUUMI_RATE_OVER_LIMIT','addImageSourceCache','leaveEvent','_draw','apply','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','ILocalStorageService','Rectangle','IMessageService','updateCursorEvent','collaborators','Warning'];_0x59d8=function(){return _0x5bf993;};return _0x59d8();}var Us=Object[_0x30e940(0x36c)],ws=Object[_0x30e940(0x1a2)],Ee=(_0x479ee1,_0x45abfd,_0x5ee37e,_0x237b2)=>{const _0x2c4960=_0x30e940;for(var _0x420cbd=_0x237b2>0x1?void 0x0:_0x237b2?ws(_0x45abfd,_0x5ee37e):_0x45abfd,_0x1009e0=_0x479ee1[_0x2c4960(0x3b8)]-0x1,_0x59a225;_0x1009e0>=0x0;_0x1009e0--)(_0x59a225=_0x479ee1[_0x1009e0])&&(_0x420cbd=(_0x237b2?_0x59a225(_0x45abfd,_0x5ee37e,_0x420cbd):_0x59a225(_0x420cbd))||_0x420cbd);return _0x237b2&&_0x420cbd&&Us(_0x45abfd,_0x5ee37e,_0x420cbd),_0x420cbd;},I=(_0x20d495,_0x553fce)=>(_0x34a07d,_0x4bbbe4)=>_0x553fce(_0x34a07d,_0x4bbbe4,_0x20d495);exports[_0x30e940(0xde)]=class extends o[_0x30e940(0x1cf)]{constructor(_0x256f41,_0x121c69,_0xe67439){const _0x505cb2=_0x30e940;super(),u(this,_0x505cb2(0x200),new Map()),u(this,_0x505cb2(0x230),new v[(_0x505cb2(0x457))]()),(this['_injector']=_0x256f41,this[_0x505cb2(0x20d)]=_0x121c69,this[_0x505cb2(0x43f)]=_0xe67439,this[_0x505cb2(0x2eb)]());}[_0x30e940(0xc6)](){const _0x243f59=_0x30e940;super[_0x243f59(0xc6)](),this[_0x243f59(0x200)][_0x243f59(0x277)](_0x1b7cf6=>_0x1b7cf6['dispose']()),this[_0x243f59(0x200)][_0x243f59(0x9b)]();}['getCollabEntity'](_0x58b489){const _0x593298=_0x30e940;var _0x38a6cd;return(_0x38a6cd=this[_0x593298(0x200)]['get'](_0x58b489))!=null?_0x38a6cd:null;}[_0x30e940(0x231)](_0x47caea){const _0x60a616=_0x30e940,_0x21627f=this[_0x60a616(0x139)](_0x47caea);return _0x21627f?v['of'](_0x21627f):this[_0x60a616(0x230)][_0x60a616(0x2a9)](E[_0x60a616(0x20a)](_0x135299=>_0x135299['unitID']===_0x47caea));}[_0x30e940(0x2eb)](){const _0x5c83f6=_0x30e940;this['_univerInstanceService'][_0x5c83f6(0xc5)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x5c83f6(0x2a9)](v[_0x5c83f6(0x3a8)](this[_0x5c83f6(0x2b1)]),E['delay'](0x10))['subscribe'](async _0x34c350=>{const _0x1f681e=_0x5c83f6,_0x2f5e01=_0x34c350['getUnitId'](),_0x1ff63a=await this['_startCollaboration'](_0x2f5e01,j[_0x1f681e(0x390)]);this[_0x1f681e(0x200)][_0x1f681e(0x346)](_0x2f5e01,_0x1ff63a);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x5c83f6(0x37c)][_0x5c83f6(0x1f4)])[_0x5c83f6(0x2a9)](v[_0x5c83f6(0x3a8)](this['dispose$']),E[_0x5c83f6(0x286)](0x10))['pipe'](E[_0x5c83f6(0x20a)](_0x5613d9=>!_0x5613d9[_0x5c83f6(0x280)]()[_0x5c83f6(0xae)]('__')))[_0x5c83f6(0x196)](async _0x393cd6=>{const _0x5cc02f=_0x5c83f6,_0x10af0d=_0x393cd6[_0x5cc02f(0x280)](),_0x28aad2=await this['_startCollaboration'](_0x10af0d,j[_0x5cc02f(0x1f4)]);this[_0x5cc02f(0x200)]['set'](_0x10af0d,_0x28aad2);}),v[_0x5c83f6(0xbd)](this[_0x5c83f6(0x43f)][_0x5c83f6(0x142)](o[_0x5c83f6(0x37c)]['UNIVER_SHEET']),this[_0x5c83f6(0x43f)][_0x5c83f6(0x142)](o[_0x5c83f6(0x37c)]['UNIVER_DOC']))['pipe'](v[_0x5c83f6(0x3a8)](this[_0x5c83f6(0x2b1)]))[_0x5c83f6(0x196)](_0x56b52d=>{const _0x3c823d=_0x5c83f6,_0x1ee68f=_0x56b52d[_0x3c823d(0x280)](),_0x4f9e6c=this[_0x3c823d(0x200)][_0x3c823d(0x1f0)](_0x1ee68f);_0x4f9e6c&&(_0x4f9e6c[_0x3c823d(0xc6)](),this[_0x3c823d(0x200)][_0x3c823d(0x244)](_0x1ee68f));});}async[_0x30e940(0x164)](_0x31d678,_0x506882){const _0x52d492=_0x30e940,_0x5791bb=await this[_0x52d492(0x20d)][_0x52d492(0x470)](_0x31d678),_0x551407=this[_0x52d492(0x137)][_0x52d492(0x1c0)](this[_0x52d492(0x22d)](_0x506882),_0x31d678,_0x506882,_0x5791bb);return await _0x551407[_0x52d492(0x30e)](),this[_0x52d492(0x230)][_0x52d492(0x46e)](_0x551407),_0x551407;}[_0x30e940(0x22d)](_0xc2b729){const _0x4b92c9=_0x30e940;switch(_0xc2b729){case j[_0x4b92c9(0x1f4)]:return Ne;case j['UNIVER_SHEET']:return exports[_0x4b92c9(0x403)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0xc2b729);}}},exports[_0x30e940(0xde)]=Ee([o[_0x30e940(0x1e8)](o['LifecycleStages'][_0x30e940(0x245)],exports[_0x30e940(0xde)]),I(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),I(0x1,o[_0x30e940(0xdf)](exports[_0x30e940(0x373)])),I(0x2,o['IUniverInstanceService'])],exports[_0x30e940(0xde)]);let fe=class extends o[_0x30e940(0x1cf)]{constructor(_0x429955,_0x11b556,_0x1eadfb,_0x158d29,_0x52a377,_0x27141a,_0x1734d7,_0x2e2995,_0x137529,_0x66bf4a,_0x21f9ca,_0x1cc66d,_0x3c1180){const _0x3be185=_0x30e940;super(),u(this,_0x3be185(0x445),new v[(_0x3be185(0x2d8))](null)),u(this,_0x3be185(0x436),this['_state$'][_0x3be185(0x16a)]()),u(this,'_state'),u(this,_0x3be185(0x207),!0x1),u(this,_0x3be185(0x3e0),this[_0x3be185(0x436)]['pipe'](E[_0x3be185(0x120)](_0x5e7106=>_0x5e7106?_0x5e7106['status']:D['OFFLINE']),E[_0x3be185(0x3c5)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x3be185(0x379),[]),(this['unitID']=_0x429955,this[_0x3be185(0x3c8)]=_0x11b556,this[_0x3be185(0x30b)]=_0x1eadfb,this[_0x3be185(0x137)]=_0x158d29,this[_0x3be185(0x377)]=_0x52a377,this[_0x3be185(0xe9)]=_0x27141a,this[_0x3be185(0x45b)]=_0x1734d7,this['_revisionService']=_0x2e2995,this['_logService']=_0x137529,this[_0x3be185(0x176)]=_0x66bf4a,this['_messageService']=_0x21f9ca,this[_0x3be185(0x153)]=_0x1cc66d,this['_singleActiveUnitService']=_0x3c1180);}get[_0x30e940(0xc2)](){const _0x511b84=_0x30e940;return this[_0x511b84(0x2a4)];}async[_0x30e940(0x30e)](){const _0x3ca085=_0x30e940;if(this[_0x3ca085(0xc2)])throw new Error(_0x3ca085(0x443));await this[_0x3ca085(0x2eb)]();}['pauseCollaboration'](){const _0x1d2099=_0x30e940;return this[_0x1d2099(0x207)]=!0x0,o[_0x1d2099(0xa1)](()=>{const _0xd0ffe8=_0x1d2099;this['_collaborationPaused']=!0x1,this[_0xd0ffe8(0x2c2)]();});}[_0x30e940(0x188)](_0x1f0baf){const _0x5c9690=_0x30e940;this[_0x5c9690(0x2a4)]=_0x1f0baf,this[_0x5c9690(0x445)]['next'](_0x1f0baf);}async['_init'](){const _0x197eba=_0x30e940;var _0x54fb58;return this['_updateState'](await this['_createInitialState']()),this[_0x197eba(0xbb)]&&((_0x54fb58=this[_0x197eba(0xbb)])==null||_0x54fb58[_0x197eba(0x23f)](this['unitID']),this[_0x197eba(0x22c)](o[_0x197eba(0xa1)](this['_singleActiveUnitService'][_0x197eba(0x93)](this[_0x197eba(0x1e6)])[_0x197eba(0x196)](_0x17170f=>{const _0x14890f=_0x197eba;this[_0x14890f(0x198)][_0x14890f(0x293)](_0x14890f(0x474),_0x14890f(0x366),_0x17170f),_0x17170f===Ct['OTHER_CLIENTS_EDITING']?(this[_0x14890f(0x255)][_0x14890f(0x157)]({'content':this[_0x14890f(0x45b)]['t']('collaboration.single-unit.warning'),'type':Q[_0x14890f(0x187)][_0x14890f(0x3d6)]}),this[_0x14890f(0x153)][_0x14890f(0x289)](new p['WorkbookEditablePermission'](this[_0x14890f(0x1e6)])['id'],!0x1)):this[_0x14890f(0x153)]['updatePermissionPoint'](new p[(_0x14890f(0x458))](this[_0x14890f(0x1e6)])['id'],!0x0);})))),this[_0x197eba(0x22c)](o[_0x197eba(0xa1)](this[_0x197eba(0x30b)][_0x197eba(0x3fd)][_0x197eba(0x196)](_0x575b0e=>{const _0x52798f=_0x197eba;_0x575b0e===G[_0x52798f(0x3aa)]?this[_0x52798f(0xf6)]():_0x575b0e===G[_0x52798f(0x32d)]&&this[_0x52798f(0x158)]();}))),this[_0x197eba(0x22c)](o[_0x197eba(0xa1)](this[_0x197eba(0x30b)][_0x197eba(0x199)]['subscribe'](_0x37a5c5=>{const _0x16a37c=_0x197eba;try{switch(_0x37a5c5['eventID']){case _[_0x16a37c(0x284)][_0x16a37c(0xa0)]:{this[_0x16a37c(0x106)](_[_0x16a37c(0x195)](_0x37a5c5[_0x16a37c(0x10a)]));break;}case _[_0x16a37c(0x284)][_0x16a37c(0x30d)]:{this[_0x16a37c(0x347)](_0x37a5c5[_0x16a37c(0x10a)]);break;}case _[_0x16a37c(0x284)][_0x16a37c(0x2c6)]:{this[_0x16a37c(0x241)]();break;}case _[_0x16a37c(0x284)][_0x16a37c(0x124)]:{this[_0x16a37c(0x416)](_0x37a5c5[_0x16a37c(0x10a)]['changesets'][_0x16a37c(0x120)](_0x4bb8c4=>_[_0x16a37c(0x195)](_0x4bb8c4)));break;}case _[_0x16a37c(0x284)]['PERMISSION_REJ']:this[_0x16a37c(0x241)]({'isPermissionRej':!0x0});}}catch(_0x28bbd5){throw console['error']('Error\x20on\x20receiving\x20event',_0x28bbd5),_0x28bbd5;}}))),this[_0x197eba(0x2a4)];}[_0x30e940(0xc3)](){const _0x138174=_0x30e940;this[_0x138174(0x13e)]=!0x1;}[_0x30e940(0x224)](){const _0x4f031a=_0x30e940;if(this[_0x4f031a(0x13e)])throw new Error(_0x4f031a(0x430));this[_0x4f031a(0x13e)]=!0x0;}['_onLocalMutation'](_0x20ccdd){const _0x5866b7=_0x30e940;this[_0x5866b7(0x224)](),this[_0x5866b7(0x188)](this[_0x5866b7(0x2a4)][_0x5866b7(0x223)](_0x20ccdd)),this['_unlockTransition']();}[_0x30e940(0x106)](_0x8849d){const _0x169dbc=_0x30e940;if(!(_0x8849d[_0x169dbc(0x448)]<=this[_0x169dbc(0x2fb)][_0x169dbc(0x17e)](this[_0x169dbc(0x1e6)]))){if(this[_0x169dbc(0x207)]){this[_0x169dbc(0x379)][_0x169dbc(0x220)](_0x8849d);return;}this[_0x169dbc(0x26d)](_0x8849d);}}[_0x30e940(0x2c2)](){const _0x27ae31=_0x30e940;this[_0x27ae31(0x379)][_0x27ae31(0x277)](_0x371363=>this[_0x27ae31(0x26d)](_0x371363)),this[_0x27ae31(0x379)]=[];}[_0x30e940(0x26d)](_0xa0dc84){const _0xcad71e=_0x30e940,_0x5a4ead=this[_0xcad71e(0xe9)][_0xcad71e(0x129)][_0xcad71e(0x2dc)](this[_0xcad71e(0xe9)]['interceptor'][_0xcad71e(0x3af)]()[_0xcad71e(0x212)])(_0xa0dc84[_0xcad71e(0x95)],null)||_0xa0dc84[_0xcad71e(0x95)],_0x4ff644={..._0xa0dc84,'mutations':_0x5a4ead};this['_lockTransition'](),this['_updateState'](this['_state'][_0xcad71e(0x1c6)](_0x4ff644)),this[_0xcad71e(0xc3)]();}[_0x30e940(0x347)](_0x1bb438){const _0x8e6825=_0x30e940;this[_0x8e6825(0x224)](),this[_0x8e6825(0x188)](this[_0x8e6825(0x2a4)]['onRemoteAck'](_0x1bb438)),this[_0x8e6825(0xc3)]();}[_0x30e940(0x241)](_0x54a733){const _0x503f19=_0x30e940;this[_0x503f19(0x224)](),this[_0x503f19(0x188)](this[_0x503f19(0x2a4)][_0x503f19(0x13f)](_0x54a733)),this['_unlockTransition']();}['_onFetchMissResult'](_0x38b7d2){const _0x280533=_0x30e940;if(!(this['_state']instanceof H))throw new TypeError(_0x280533(0x34d));const _0x2c1d85=_0x38b7d2[_0x280533(0x120)](_0x1ff325=>{const _0x4f801e=_0x280533,_0x39b182=this[_0x4f801e(0xe9)][_0x4f801e(0x129)][_0x4f801e(0x2dc)](this['_compressMutationService']['interceptor'][_0x4f801e(0x3af)]()[_0x4f801e(0x212)])(_0x1ff325[_0x4f801e(0x95)],null)||_0x1ff325[_0x4f801e(0x95)];return{..._0x1ff325,'mutations':_0x39b182};});this[_0x280533(0x224)](),this[_0x280533(0x188)](this[_0x280533(0x2a4)][_0x280533(0x44f)](_0x2c1d85)),this[_0x280533(0xc3)]();}['_toggleOffline'](){const _0x2f9f06=_0x30e940;this[_0x2f9f06(0x224)](),this['_updateState'](this[_0x2f9f06(0x2a4)][_0x2f9f06(0x3b2)]()),this[_0x2f9f06(0xc3)]();}[_0x30e940(0xf6)](){const _0x37f02c=_0x30e940;this['_lockTransition'](),this[_0x37f02c(0x188)](this['_state'][_0x37f02c(0x20e)]()),this[_0x37f02c(0xc3)]();}async['_createInitialState'](){return new Promise(_0x157ab6=>{const _0x443dd5=_0x3b20;this[_0x443dd5(0x30b)][_0x443dd5(0x3fd)][_0x443dd5(0x2a9)](E[_0x443dd5(0x1f5)](0x1))[_0x443dd5(0x196)](async _0x2b29e6=>{const _0x44e61a=_0x443dd5;_0x157ab6(await this[_0x44e61a(0x2a2)](_0x2b29e6===G[_0x44e61a(0x3aa)]));});});}[_0x30e940(0xa5)](){const _0x4f75a7=_0x30e940,_0x3aa8bd=this[_0x4f75a7(0x1e6)];return{'onStateChange':(_0x54ca3a,_0x27bd8f)=>{const _0x4755bc=_0x4f75a7;if(_0x54ca3a!==this[_0x4755bc(0x2a4)])throw new Error(_0x4755bc(0x3d0)+_0x54ca3a['status']+_0x4755bc(0xb6)+_0x27bd8f['status']+_0x4755bc(0x92)+this[_0x4755bc(0x2a4)][_0x4755bc(0x1de)]);this[_0x4755bc(0x188)](_0x27bd8f);},'onSendChangeset':_0x552517=>{const _0xb8bf6c=_0x4f75a7,_0x36c136={'eventID':_[_0xb8bf6c(0x284)][_0xb8bf6c(0x19c)],'data':{'unitID':_0x552517[_0xb8bf6c(0x1e6)],'unitType':this['_type'],'changeset':_0x552517,'memberID':this[_0xb8bf6c(0x30b)][_0xb8bf6c(0x266)]()}};this['_session'][_0xb8bf6c(0x3e9)](_0x36c136,this[_0xb8bf6c(0x1e6)]);},'onMissingChangesets':({from:_0x5e8f93,to:_0x27af4d})=>{const _0x265955=_0x4f75a7;this[_0x265955(0x198)][_0x265955(0x293)](_0x265955(0x474),'fetching\x20missing\x20changesets\x20from\x20'+_0x5e8f93+_0x265955(0xd0)+_0x27af4d);const _0x36334f={'eventID':_['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x3aa8bd,'unitType':this[_0x265955(0x3c8)],'from':_0x5e8f93,'to':_0x27af4d}};this['_session'][_0x265955(0x3e9)](_0x36334f,this[_0x265955(0x1e6)]);}};}async[_0x30e940(0x2a2)](_0x1bfd89){const _0x28a728=_0x30e940;var _0x25b7a2,_0x1ce944;const _0xd8469b=await this[_0x28a728(0x377)][_0x28a728(0x341)](this[_0x28a728(0x1e6)]),_0xdb9f9f=(_0x25b7a2=_0xd8469b==null?void 0x0:_0xd8469b[_0x28a728(0x95)])!=null?_0x25b7a2:[],_0x1a9436=(_0x1ce944=_0xd8469b==null?void 0x0:_0xd8469b[_0x28a728(0xf9)])!=null?_0x1ce944:null,_0x261670=this[_0x28a728(0x1e6)];try{this[_0x28a728(0xea)](_0x1a9436,_0xdb9f9f);}catch(_0x38627b){this[_0x28a728(0x198)][_0x28a728(0xf0)](_0x38627b);}const _0x54e36b=this['_createHandler']();if(_0x1bfd89){const _0x59e747=Tt(this['_injector'],_0x261670,this[_0x28a728(0x3c8)],_0x1a9436,_0xdb9f9f,_0x54e36b);return _0x59e747 instanceof $?_0x59e747[_0x28a728(0x8f)]():(_0x59e747 instanceof x||_0x59e747 instanceof k)&&_0x59e747[_0x28a728(0xdd)](),_0x59e747;}return this[_0x28a728(0x137)][_0x28a728(0x1c0)](V,_0x261670,this[_0x28a728(0x3c8)],_0x1a9436,_0xdb9f9f,_0x54e36b);}[_0x30e940(0xea)](_0x3d87f5,_0x5294d8){const _0x32333f=_0x30e940;var _0x3a4c6e,_0x572c13;const _0x46748d=this[_0x32333f(0xe9)][_0x32333f(0x129)]['fetchThroughInterceptors'](this[_0x32333f(0xe9)]['interceptor'][_0x32333f(0x3af)]()[_0x32333f(0x212)]);(_0x3a4c6e=_0x46748d((_0x3d87f5==null?void 0x0:_0x3d87f5[_0x32333f(0x95)])||[],null))==null||_0x3a4c6e[_0x32333f(0x277)](_0x368d19=>this[_0x32333f(0x176)][_0x32333f(0x12d)](_0x368d19['id'],_0x368d19['params'])),(_0x572c13=_0x46748d(_0x5294d8||[],null))==null||_0x572c13[_0x32333f(0x277)](_0x5ed0e1=>this[_0x32333f(0x176)][_0x32333f(0x12d)](_0x5ed0e1['id'],_0x5ed0e1[_0x32333f(0x20b)]));}};fe=Ee([I(0x3,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),I(0x4,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),I(0x5,o[_0x30e940(0xdf)](_[_0x30e940(0x362)])),I(0x6,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)])),I(0x7,o['Inject'](_[_0x30e940(0x1db)])),I(0x8,o[_0x30e940(0x1e7)]),I(0x9,o[_0x30e940(0x1c8)]),I(0xa,L[_0x30e940(0x3d3)]),I(0xb,o[_0x30e940(0x3b7)]),I(0xc,o[_0x30e940(0x96)](pe))],fe);let Ne=class extends fe{constructor(_0xfda237,_0x47fcb6,_0x355d0f,_0x230c07,_0x23bcf3,_0x75e652,_0x58ef48,_0x5f1e3b,_0x324083,_0x3cba07,_0x24c3a8,_0x236446,_0xfc4a69,_0x3e3394,_0x5a121f,_0x188cf9,_0x5f38a3){const _0x23b17b=_0x30e940;super(_0xfda237,_0x47fcb6,_0x355d0f,_0x230c07,_0x23bcf3,_0x75e652,_0x58ef48,_0x5f1e3b,_0xfc4a69,_0x3e3394,_0x5a121f,_0x188cf9,_0x5f38a3),this[_0x23b17b(0x1e6)]=_0xfda237,this[_0x23b17b(0x312)]=_0x47fcb6,this[_0x23b17b(0x461)]=_0x355d0f,this[_0x23b17b(0x13a)]=_0x324083,this[_0x23b17b(0x17d)]=_0x3cba07,this[_0x23b17b(0x1d7)]=_0x24c3a8,this['_docSyncEditingCollabCursorService']=_0x236446;}[_0x30e940(0xa5)](){const _0x4ece8e=_0x30e940,_0x390f79=super[_0x4ece8e(0xa5)]();return _0x390f79[_0x4ece8e(0x168)]=_0x5c46c2=>this[_0x4ece8e(0x17d)][_0x4ece8e(0x1f3)](_0x5c46c2),_0x390f79[_0x4ece8e(0x29a)]=_0x38d6a7=>this['_docTransformSelectionsService'][_0x4ece8e(0x156)](_0x38d6a7),_0x390f79[_0x4ece8e(0x11c)]=_0x3bae6b=>this[_0x4ece8e(0x3bc)][_0x4ece8e(0x274)](_0x3bae6b),_0x390f79[_0x4ece8e(0x8c)]=_0x32444d=>this[_0x4ece8e(0x17d)][_0x4ece8e(0x298)](_0x32444d),_0x390f79;}async[_0x30e940(0x2eb)](){const _0xb4f0c1=_0x30e940,_0x2f86ab=await super[_0xb4f0c1(0x2eb)]();return this[_0xb4f0c1(0x22c)](this[_0xb4f0c1(0x176)][_0xb4f0c1(0xd2)]((_0x1415d6,_0x395762)=>{const _0x2b5e1a=_0xb4f0c1;if(_0x1415d6[_0x2b5e1a(0x312)]!==o[_0x2b5e1a(0x99)][_0x2b5e1a(0x438)]||_0x395762!=null&&_0x395762[_0x2b5e1a(0x211)]||_0x395762!=null&&_0x395762[_0x2b5e1a(0x1dc)])return;const _0x33fae2=_0x1415d6[_0x2b5e1a(0x20b)];if((_0x33fae2==null?void 0x0:_0x33fae2['unitId'])!==this['unitID'])return;let _0x4fa127=_0x1415d6;if(_0x4fa127['id']===P[_0x2b5e1a(0x2ad)]['id']){const _0x27699d=_0x4fa127[_0x2b5e1a(0x20b)];_0x4fa127={'id':P[_0x2b5e1a(0x2ad)]['id'],'type':o[_0x2b5e1a(0x99)]['MUTATION'],'params':{'unitId':_0x27699d[_0x2b5e1a(0x424)],'actions':_0x27699d['actions'],'textRanges':null}};}const _0x5ec491=this[_0x2b5e1a(0xe9)][_0x2b5e1a(0x129)][_0x2b5e1a(0x2dc)](this[_0x2b5e1a(0xe9)][_0x2b5e1a(0x129)][_0x2b5e1a(0x3af)]()[_0x2b5e1a(0x31b)])([_0x4fa127],null)||[_0x4fa127];this['_onLocalMutation'](_0x5ec491[0x0]);})),_0x2f86ab;}};Ne=Ee([I(0x3,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),I(0x4,o['Inject'](exports[_0x30e940(0x227)])),I(0x5,o[_0x30e940(0xdf)](_[_0x30e940(0x362)])),I(0x6,o[_0x30e940(0xdf)](o['LocaleService'])),I(0x7,o['Inject'](_[_0x30e940(0x1db)])),I(0x8,o[_0x30e940(0xdf)](P[_0x30e940(0x302)])),I(0x9,o[_0x30e940(0xdf)](ve)),I(0xa,o['Inject'](me)),I(0xb,o[_0x30e940(0xdf)](We)),I(0xc,o[_0x30e940(0x1e7)]),I(0xd,o['ICommandService']),I(0xe,L['IMessageService']),I(0xf,o[_0x30e940(0x3b7)]),I(0x10,o['Optional'](pe))],Ne),exports['SheetCollaborationEntity']=class extends fe{constructor(_0x4f4c6e,_0x9bdab2,_0x25ad1c,_0x50ade7,_0x4c1846,_0x16f1a9,_0xc03157,_0x5bd14f,_0x564565,_0x1ee0c6,_0x8a5bae,_0x4d4473,_0x26ad80,_0x4f3a0a){const _0x51ec72=_0x30e940;super(_0x4f4c6e,_0x9bdab2,_0x25ad1c,_0x50ade7,_0x4c1846,_0x16f1a9,_0xc03157,_0x5bd14f,_0x1ee0c6,_0x8a5bae,_0x4d4473,_0x26ad80,_0x4f3a0a),this['unitID']=_0x4f4c6e,this['type']=_0x9bdab2,this[_0x51ec72(0x461)]=_0x25ad1c,this[_0x51ec72(0x1b3)]=_0x564565;}['_createHandler'](){const _0x1297b8=_0x30e940,_0x4239f0=super[_0x1297b8(0xa5)]();return _0x4239f0[_0x1297b8(0x29a)]=_0x17edda=>this['_sheetTransformSelectionsService'][_0x1297b8(0x156)](_0x17edda),_0x4239f0;}async['_init'](){const _0x577219=_0x30e940,_0x3e30bb=await super[_0x577219(0x2eb)]();return this['disposeWithMe'](this[_0x577219(0x176)]['onCommandExecuted']((_0x2fe9d2,_0xecad20)=>{const _0x1a5982=_0x577219;if(_0x2fe9d2[_0x1a5982(0x312)]!==o[_0x1a5982(0x99)][_0x1a5982(0x438)]||_0xecad20!=null&&_0xecad20[_0x1a5982(0x211)]||_0xecad20!=null&&_0xecad20[_0x1a5982(0x1dc)])return;const _0x4ea78d=_0x2fe9d2['params'];if((_0x4ea78d==null?void 0x0:_0x4ea78d[_0x1a5982(0x424)])!==this['unitID'])return;const _0x30cbea=_0x2fe9d2,_0x6cd0cb=this['_compressMutationService'][_0x1a5982(0x129)]['fetchThroughInterceptors'](this[_0x1a5982(0xe9)][_0x1a5982(0x129)][_0x1a5982(0x3af)]()[_0x1a5982(0x31b)])([_0x30cbea],null)||[_0x30cbea];this[_0x1a5982(0x2b4)](_0x6cd0cb[0x0]);})),_0x3e30bb;}},exports[_0x30e940(0x403)]=Ee([I(0x3,o['Inject'](o[_0x30e940(0xc4)])),I(0x4,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),I(0x5,o[_0x30e940(0xdf)](_[_0x30e940(0x362)])),I(0x6,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)])),I(0x7,o['Inject'](_[_0x30e940(0x1db)])),I(0x8,o[_0x30e940(0xdf)](ge)),I(0x9,o[_0x30e940(0x1e7)]),I(0xa,o[_0x30e940(0x1c8)]),I(0xb,L[_0x30e940(0x3d3)]),I(0xc,o[_0x30e940(0x3b7)]),I(0xd,o[_0x30e940(0x96)](pe))],exports[_0x30e940(0x403)]);const st=[_0x30e940(0xb9),'jiqing500','verdancy600',_0x30e940(0x2dd),_0x30e940(0x24a),_0x30e940(0x26b)];function _0x3b20(_0xcd3ab1,_0x2466f9){const _0x59d87c=_0x59d8();return _0x3b20=function(_0x3b2091,_0x36dc77){_0x3b2091=_0x3b2091-0x86;let _0x1dadd8=_0x59d87c[_0x3b2091];return _0x1dadd8;},_0x3b20(_0xcd3ab1,_0x2466f9);}class Fe extends o[_0x30e940(0x3c3)]{constructor(){const _0x5eb775=_0x30e940;super(...arguments),u(this,'_assignedColors',new Map()),u(this,_0x5eb775(0x3e7),0x0);}[_0x30e940(0xd3)](_0x17fbc8){const _0xae9622=_0x30e940;if(this[_0xae9622(0x455)]['has'](_0x17fbc8))return this[_0xae9622(0x455)][_0xae9622(0x1f0)](_0x17fbc8);const _0x314f98=st[this[_0xae9622(0x3e7)]];return this['_colorIndex']=(this[_0xae9622(0x3e7)]+0x1)%st[_0xae9622(0x3b8)],this[_0xae9622(0x455)][_0xae9622(0x346)](_0x17fbc8,_0x314f98),_0x314f98;}}var Ms=Object[_0x30e940(0x36c)],ys=Object[_0x30e940(0x1a2)],Ns=(_0x5ef2aa,_0x21eb5d,_0x58320f,_0x5357af)=>{for(var _0x5f5214=_0x5357af>0x1?void 0x0:_0x5357af?ys(_0x21eb5d,_0x58320f):_0x21eb5d,_0xef3dd3=_0x5ef2aa['length']-0x1,_0x3a5c11;_0xef3dd3>=0x0;_0xef3dd3--)(_0x3a5c11=_0x5ef2aa[_0xef3dd3])&&(_0x5f5214=(_0x5357af?_0x3a5c11(_0x21eb5d,_0x58320f,_0x5f5214):_0x3a5c11(_0x5f5214))||_0x5f5214);return _0x5357af&&_0x5f5214&&Ms(_0x21eb5d,_0x58320f,_0x5f5214),_0x5f5214;},q=(_0x336e8c,_0xaf8ff8)=>(_0x381bcc,_0x53fcd7)=>_0xaf8ff8(_0x381bcc,_0x53fcd7,_0x336e8c);const Ls=0x12c,As=0x64,js=()=>{let _0x5d774f=[],_0x2b4380=!0x1;return _0x5ef214=>{const _0x507a88=_0x3b20;_0x5d774f[_0x507a88(0x220)](_0x5ef214),_0x2b4380||(_0x2b4380=!0x0,setTimeout(()=>{const _0x5b8eb1=_0x507a88;_0x5d774f[_0x5b8eb1(0x277)](_0x4d348c=>_0x4d348c()),_0x5d774f=[],_0x2b4380=!0x1;}));};};let Le=class extends o[_0x30e940(0x1cf)]{constructor(_0x56d214,_0x528102,_0x2c8cee,_0x296538,_0x133b17,_0x33856d,_0x4262e2,_0x13ff6e){const _0x3a2e1e=_0x30e940;super(),u(this,_0x3a2e1e(0x42d),!0x1),u(this,_0x3a2e1e(0x2eb),!0x1),u(this,'_cursorInfo$',new v[(_0x3a2e1e(0x2d8))](new Map())),u(this,_0x3a2e1e(0x3a6),this[_0x3a2e1e(0xfd)][_0x3a2e1e(0x16a)]()),u(this,_0x3a2e1e(0x3ae),new v[(_0x3a2e1e(0x2d8))]([])),u(this,_0x3a2e1e(0x2b9),this[_0x3a2e1e(0x3ae)][_0x3a2e1e(0x2a9)](v[_0x3a2e1e(0xaa)](Ls))),u(this,_0x3a2e1e(0x2d9),xe((_0x3e0ef2,_0x12ed99)=>{const _0x5859cb=_0x3a2e1e,_0x26ae5e={'eventID':_[_0x5859cb(0x284)][_0x5859cb(0x89)],'data':{'unitID':this[_0x5859cb(0x1e6)],'memberID':this['_session'][_0x5859cb(0x266)](),'selection':Ke[_0x5859cb(0x43c)](_0x3e0ef2,_0x12ed99[_0x5859cb(0x3a9)])}};this[_0x5859cb(0x30b)][_0x5859cb(0x3e9)](_0x26ae5e,this[_0x5859cb(0x1e6)]);},As)),(this['unitID']=_0x56d214,this[_0x3a2e1e(0x30b)]=_0x528102,this[_0x3a2e1e(0x137)]=_0x2c8cee,this[_0x3a2e1e(0x3dc)]=_0x296538,this['_memberService']=_0x133b17,this[_0x3a2e1e(0x43f)]=_0x33856d,this[_0x3a2e1e(0x176)]=_0x4262e2,this[_0x3a2e1e(0x1da)]=_0x13ff6e);}get[_0x30e940(0x39a)](){const _0x2687c5=_0x30e940;return this[_0x2687c5(0xfd)][_0x2687c5(0xca)]();}get[_0x30e940(0x1c2)](){const _0x246a09=_0x30e940;return this['_roomMembers$'][_0x246a09(0xca)]();}['dispose'](){const _0x3c9d7e=_0x30e940;super[_0x3c9d7e(0xc6)](),this['_cursorInfo$']['next'](new Map()),this[_0x3c9d7e(0xfd)][_0x3c9d7e(0xb0)](),this[_0x3c9d7e(0x3ae)][_0x3c9d7e(0x46e)]([]),this[_0x3c9d7e(0x3ae)]['complete']();}['init'](){const _0x29d373=_0x30e940;this['_init']||(this['_init']=!0x0,this[_0x29d373(0x30b)][_0x29d373(0x3fd)]['pipe'](v['takeUntil'](this['dispose$']))[_0x29d373(0x196)](_0x204092=>{const _0xc6fe3e=_0x29d373;_0x204092===G[_0xc6fe3e(0x3aa)]?this[_0xc6fe3e(0xf6)]():this[_0xc6fe3e(0x158)]();}),this['_session'][_0x29d373(0x199)]['pipe'](v[_0x29d373(0x3a8)](this['dispose$']))[_0x29d373(0x196)](_0x4c50b4=>{const _0x27fac7=_0x29d373,_0x5b3e6b=_0x4c50b4['eventID'];_0x5b3e6b===_[_0x27fac7(0x284)][_0x27fac7(0x89)]&&this[_0x27fac7(0xf1)](_0x4c50b4),_0x5b3e6b===_[_0x27fac7(0x284)][_0x27fac7(0x1c4)]&&this[_0x27fac7(0x262)](_0x4c50b4);}),this['_onRefRangeChange'](),this[_0x29d373(0x22c)](this[_0x29d373(0x176)][_0x29d373(0xd2)](_0x340017=>{const _0x1e56d9=_0x29d373;if(this[_0x1e56d9(0x42d)]&&_0x340017['id']===p[_0x1e56d9(0x1e4)]['id']&&_0x340017['params'][_0x1e56d9(0x424)]===this[_0x1e56d9(0x1e6)]){const _0x3819f6=_0x340017[_0x1e56d9(0x20b)];this[_0x1e56d9(0x2d9)](_0x3819f6['subUnitId'],_0x3819f6['selections'][0x0]);}})));}[_0x30e940(0xf1)](_0x1fa5a5){const _0x1dc8a3=_0x30e940;var _0x166f9f,_0x4d845e;const {memberID:_0x43fd4f,selection:_0x15dc45}=_0x1fa5a5[_0x1dc8a3(0x10a)],{sheetName:_0x145171,range:_0x396e99}=Ke[_0x1dc8a3(0x31d)](_0x15dc45),_0x5de6fc={'name':(_0x4d845e=(_0x166f9f=this['_memberService'][_0x1dc8a3(0x275)](this[_0x1dc8a3(0x1e6)],_0x43fd4f))==null?void 0x0:_0x166f9f[_0x1dc8a3(0x3a7)])!=null?_0x4d845e:_0x1dc8a3(0x325),'range':this['_getMergeRange'](_0x145171,_0x396e99),'sheetID':_0x145171,'color':this[_0x1dc8a3(0x3dc)]['assignAColorForMemberID'](_0x43fd4f),'selection':_0x15dc45},_0x56bc88=this[_0x1dc8a3(0x39a)];_0x56bc88[_0x1dc8a3(0x346)](_0x43fd4f,_0x5de6fc),this['_cursorInfo$'][_0x1dc8a3(0x46e)](_0x56bc88);}[_0x30e940(0x262)](_0x38ad03){const _0x6e0898=_0x30e940,{memberID:_0x11c949}=_0x38ad03[_0x6e0898(0x10a)],_0x46c471=this[_0x6e0898(0x39a)];_0x46c471[_0x6e0898(0x244)](_0x11c949),this['_cursorInfo$'][_0x6e0898(0x46e)](_0x46c471);}[_0x30e940(0x143)](_0x27a523,_0x175a59){const _0x496998=_0x30e940;var _0x3abd2e,_0x45d5a8;const _0x157cc6=(_0x45d5a8=(_0x3abd2e=this[_0x496998(0x43f)][_0x496998(0x29e)](this[_0x496998(0x1e6)]))==null?void 0x0:_0x3abd2e['getSheetBySheetId'](_0x27a523))==null?void 0x0:_0x45d5a8['getMergeData']();return(_0x157cc6==null?void 0x0:_0x157cc6[_0x496998(0x32e)](_0x59c9d9=>o[_0x496998(0x3d2)][_0x496998(0x2a8)](_0x59c9d9,_0x175a59)))||_0x175a59;}[_0x30e940(0x23c)](){const _0x5e39b8=_0x30e940,_0x1ab8eb=new o[(_0x5e39b8(0x16f))](),_0x4a303e=js(),_0x6a600e=()=>{const _0x11428d=_0x5e39b8;_0x1ab8eb[_0x11428d(0xc6)]();const _0x1809c3=(_0x361ebb,_0x5a6aee,_0x1f74d3,_0x2c431c)=>{const _0x525963=_0x11428d;let _0x3fa50b=[];switch(_0x361ebb['id']){case p[_0x525963(0x1ad)][_0x525963(0x398)]:{_0x3fa50b=p[_0x525963(0x381)](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x3c2)]:{_0x3fa50b=p[_0x525963(0xce)](_0x361ebb,_0x2c431c);break;}case p['EffectRefRangId'][_0x525963(0x2bd)]:{_0x3fa50b=p['handleInsertCol'](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x1df)]:{_0x3fa50b=p[_0x525963(0x407)](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)]['InsertRangeMoveRightCommandId']:{_0x3fa50b=p['handleInsertRangeMoveRight'](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x1ed)]:{_0x3fa50b=p['handleInsertRow'](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x1e3)]:{_0x3fa50b=p[_0x525963(0xac)](_0x361ebb,_0x2c431c);break;}case p[_0x525963(0x1ad)][_0x525963(0x396)]:{_0x3fa50b=p[_0x525963(0x2f7)](_0x361ebb,_0x2c431c);break;}case p['EffectRefRangId'][_0x525963(0x331)]:{_0x3fa50b=p[_0x525963(0x419)](_0x361ebb,_0x2c431c);break;}}const _0x3c1f32=p[_0x525963(0x355)](_0x3fa50b,_0x2c431c),_0x2758d1=this[_0x525963(0x39a)][_0x525963(0x1f0)](_0x5a6aee);if(_0x2758d1&&_0x3c1f32){const _0x28d485={..._0x2758d1,'range':_0x3c1f32};this[_0x525963(0x39a)][_0x525963(0x346)](_0x5a6aee,_0x28d485),_0x4a303e(()=>{const _0x50deae=_0x525963,_0x42c69a=this[_0x50deae(0x1da)][_0x50deae(0x11b)](_0x3c1f32,_0x3b3c84=>(_0x42c69a['dispose'](),_0x1809c3(_0x3b3c84,_0x5a6aee,_0x1f74d3,_0x3c1f32)));_0x1ab8eb[_0x50deae(0x418)](_0x42c69a);});}return{'redos':[],'undos':[]};};this[_0x11428d(0x39a)][_0x11428d(0x277)]((_0x1c20f7,_0xd41eab)=>{const _0x1f9c0f=_0x11428d,{range:_0x51974d,sheetID:_0x38963a}=_0x1c20f7,_0x57b9eb=this[_0x1f9c0f(0x1da)][_0x1f9c0f(0x11b)](_0x51974d,_0x2cfd02=>(_0x57b9eb[_0x1f9c0f(0xc6)](),_0x1809c3(_0x2cfd02,_0xd41eab,_0x38963a,_0x51974d)));_0x1ab8eb[_0x1f9c0f(0x418)](_0x57b9eb);});};this[_0x5e39b8(0x22c)](o[_0x5e39b8(0xa1)](this[_0x5e39b8(0xfd)]['subscribe'](()=>{_0x6a600e();})));}['_toggleOnline'](){const _0x20cc0e=_0x30e940;var _0x1aa511,_0x294de2;if(this[_0x20cc0e(0x42d)]=!0x0,((_0x1aa511=this['_univerInstanceService'][_0x20cc0e(0x469)]())==null?void 0x0:_0x1aa511[_0x20cc0e(0x280)]())!==this[_0x20cc0e(0x1e6)])return;const _0x2fbe1a=(_0x294de2=this[_0x20cc0e(0x137)][_0x20cc0e(0x1f0)](p[_0x20cc0e(0x2ed)])[_0x20cc0e(0x2a7)]())==null?void 0x0:_0x294de2[0x0],_0xad5206=this[_0x20cc0e(0x43f)][_0x20cc0e(0x22a)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x20cc0e(0x18f)]();_0x2fbe1a&&_0xad5206&&this['_updateLocalCursor'](_0xad5206[_0x20cc0e(0x28d)](),_0x2fbe1a);}[_0x30e940(0x158)](){this['_online']=!0x1;}};Le=Ns([q(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),q(0x3,o[_0x30e940(0xdf)](Fe)),q(0x4,o[_0x30e940(0xdf)](Y)),q(0x5,o[_0x30e940(0x233)]),q(0x6,o['ICommandService']),q(0x7,o[_0x30e940(0xdf)](p[_0x30e940(0xb1)]))],Le);var $s=Object['defineProperty'],xs=Object[_0x30e940(0x1a2)],Hs=(_0x792beb,_0x5ebafe,_0x40c732,_0x2abfe3)=>{const _0x1e8f21=_0x30e940;for(var _0x19bd6c=_0x2abfe3>0x1?void 0x0:_0x2abfe3?xs(_0x5ebafe,_0x40c732):_0x5ebafe,_0x37375a=_0x792beb[_0x1e8f21(0x3b8)]-0x1,_0x239543;_0x37375a>=0x0;_0x37375a--)(_0x239543=_0x792beb[_0x37375a])&&(_0x19bd6c=(_0x2abfe3?_0x239543(_0x5ebafe,_0x40c732,_0x19bd6c):_0x239543(_0x19bd6c))||_0x19bd6c);return _0x2abfe3&&_0x19bd6c&&$s(_0x5ebafe,_0x40c732,_0x19bd6c),_0x19bd6c;},F=(_0x369b82,_0x177188)=>(_0x4c2739,_0x2e9754)=>_0x177188(_0x4c2739,_0x2e9754,_0x369b82);const ks=0x12c,Bs=0x64;let Ae=class extends o[_0x30e940(0x1cf)]{constructor(_0x56d93f,_0x24e408,_0x12b06d,_0x17a778,_0x5b76e6,_0x1fee4e,_0x554d63,_0x456e81,_0x287d92){const _0x4e898a=_0x30e940;super(),u(this,_0x4e898a(0x42d),!0x1),u(this,_0x4e898a(0x2eb),!0x1),u(this,_0x4e898a(0xfd),new v[(_0x4e898a(0x2d8))](new Map())),u(this,_0x4e898a(0x3a6),this[_0x4e898a(0xfd)][_0x4e898a(0x16a)]()),u(this,_0x4e898a(0x3ae),new v[(_0x4e898a(0x2d8))]([])),u(this,'roomMembers$',this[_0x4e898a(0x3ae)][_0x4e898a(0x2a9)](v[_0x4e898a(0xaa)](ks))),u(this,_0x4e898a(0x2d9),xe(_0x57f0a6=>{const _0x189852=_0x4e898a,_0x5bc359={'eventID':_['CollaborationEvent'][_0x189852(0x89)],'data':{'unitID':this[_0x189852(0x1e6)],'memberID':this[_0x189852(0x30b)][_0x189852(0x266)](),'selection':bt(_0x57f0a6)}};this[_0x189852(0x30b)][_0x189852(0x3e9)](_0x5bc359,this['unitID']);},Bs)),(this[_0x4e898a(0x1e6)]=_0x56d93f,this['_session']=_0x24e408,this[_0x4e898a(0x137)]=_0x12b06d,this[_0x4e898a(0x3dc)]=_0x17a778,this[_0x4e898a(0x460)]=_0x5b76e6,this[_0x4e898a(0x356)]=_0x1fee4e,this[_0x4e898a(0x3c0)]=_0x554d63,this['_univerInstanceService']=_0x456e81,this[_0x4e898a(0x176)]=_0x287d92);}get[_0x30e940(0x39a)](){const _0x254252=_0x30e940;return this[_0x254252(0xfd)][_0x254252(0xca)]();}get['roomMembers'](){const _0x17e0be=_0x30e940;return this[_0x17e0be(0x3ae)][_0x17e0be(0xca)]();}[_0x30e940(0xc6)](){const _0x55a2d3=_0x30e940;super[_0x55a2d3(0xc6)](),this[_0x55a2d3(0xfd)]['next'](new Map()),this[_0x55a2d3(0xfd)][_0x55a2d3(0xb0)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x55a2d3(0xb0)]();}[_0x30e940(0x30e)](){const _0x3628d8=_0x30e940;this[_0x3628d8(0x2eb)]||(this['_init']=!0x0,this[_0x3628d8(0x30b)][_0x3628d8(0x3fd)][_0x3628d8(0x2a9)](v[_0x3628d8(0x3a8)](this['dispose$']))[_0x3628d8(0x196)](_0x469aa4=>{const _0x19b38c=_0x3628d8;_0x469aa4===G[_0x19b38c(0x3aa)]?this[_0x19b38c(0xf6)]():this['_toggleOffline']();}),this[_0x3628d8(0x30b)][_0x3628d8(0x199)][_0x3628d8(0x2a9)](v['takeUntil'](this['dispose$']))[_0x3628d8(0x196)](_0x172121=>{const _0x1350d3=_0x3628d8,_0x56e857=_0x172121[_0x1350d3(0x15d)];_0x56e857===_[_0x1350d3(0x284)][_0x1350d3(0x89)]&&this[_0x1350d3(0xf1)](_0x172121),_0x56e857===_[_0x1350d3(0x284)]['USERS_LEAVE']&&this[_0x1350d3(0x262)](_0x172121);}),this[_0x3628d8(0x22c)](this['_commandService'][_0x3628d8(0xd2)](_0x1e8f80=>{const _0x3057ed=_0x3628d8,_0x42f892=_0x1e8f80[_0x3057ed(0x20b)];_0x42f892!=null&&this['_online']&&_0x1e8f80['id']===P['SetTextSelectionsOperation']['id']&&_0x42f892['unitId']===this[_0x3057ed(0x1e6)]&&_0x42f892[_0x3057ed(0x40c)]===!0x1&&this[_0x3057ed(0x2d9)](_0x42f892[_0x3057ed(0x317)]);})),this[_0x3628d8(0x356)]['collabCursorState$'][_0x3628d8(0x2a9)](v[_0x3628d8(0x3a8)](this[_0x3628d8(0x2b1)]))[_0x3628d8(0x196)](_0x2d3449=>{const _0x17e602=_0x3628d8;if((_0x2d3449==null?void 0x0:_0x2d3449[_0x17e602(0x1e6)])!==this[_0x17e602(0x1e6)])return;const _0x55c63e={'eventID':_[_0x17e602(0x284)][_0x17e602(0x89)],'data':_0x2d3449};this['_onCursorUpdate'](_0x55c63e);}),this[_0x3628d8(0x22c)](this['_commandService'][_0x3628d8(0xd2)](_0x5d22c7=>{const _0x14b674=_0x3628d8;if(_0x5d22c7[_0x14b674(0x20b)]==null)return;const _0x5884c8=_0x5d22c7['params'];if(_0x5d22c7['id']!==P[_0x14b674(0x2ad)]['id']||_0x5884c8[_0x14b674(0x424)]!==this[_0x14b674(0x1e6)])return;const _0x385a4b={'id':_0x14b674(0x1c9),'params':_0x5884c8},_0x206d0a=this[_0x14b674(0x39a)];for(const [_0x42d4eb,_0x51129d]of _0x206d0a){const _0x468d60={'id':_0x14b674(0x1c9),'params':{'unitId':this[_0x14b674(0x1e6)],'actions':null,'textRanges':_0x51129d[_0x14b674(0x317)]}},_0x2fea6=this[_0x14b674(0x3c0)][_0x14b674(0x1bf)](_0x385a4b,_0x468d60,!0x1);if(_[_0x14b674(0x1fd)](_0x2fea6))throw _0x2fea6[_0x14b674(0xf0)];_0x206d0a['set'](_0x42d4eb,{..._0x51129d,'ranges':_0x2fea6[_0x14b674(0x163)][_0x14b674(0x20b)][_0x14b674(0x146)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x206d0a);});})));}[_0x30e940(0xf1)](_0x3ea244){const _0x374a42=_0x30e940;var _0x4df903,_0xf76d94;const {memberID:_0x5eb251,selection:_0x21d0cb}=_0x3ea244[_0x374a42(0x10a)],_0x490140=Is(_0x21d0cb),_0x1dcb63=(_0xf76d94=(_0x4df903=this['_memberService']['getMember'](this[_0x374a42(0x1e6)],_0x5eb251))==null?void 0x0:_0x4df903[_0x374a42(0x3a7)])!=null?_0xf76d94:_0x374a42(0x325),_0x2fd049={'color':this['_colorAssignService'][_0x374a42(0xd3)](_0x5eb251),'name':_0x1dcb63,'ranges':_0x490140},_0xafe988=this[_0x374a42(0x39a)];_0xafe988[_0x374a42(0x346)](_0x5eb251,_0x2fd049),this[_0x374a42(0xfd)][_0x374a42(0x46e)](_0xafe988);}[_0x30e940(0x262)](_0x4fe954){const _0x1444d4=_0x30e940,{memberID:_0xc2fae3}=_0x4fe954[_0x1444d4(0x10a)],_0x1e5a27=this[_0x1444d4(0x39a)];_0x1e5a27['delete'](_0xc2fae3),this[_0x1444d4(0xfd)][_0x1444d4(0x46e)](_0x1e5a27);}[_0x30e940(0xf6)](){const _0x2976e2=_0x30e940;var _0xe2f44e;if(this['_online']=!0x0,((_0xe2f44e=this['_univerInstanceService'][_0x2976e2(0x469)]())==null?void 0x0:_0xe2f44e[_0x2976e2(0x280)]())!==this[_0x2976e2(0x1e6)])return;const _0x90aa37=this['_injector'][_0x2976e2(0x1f0)](P[_0x2976e2(0x215)])[_0x2976e2(0x19b)](),_0x5b77d6=_0x90aa37==null?void 0x0:_0x90aa37[_0x2976e2(0x120)](P[_0x2976e2(0x13c)]);Array[_0x2976e2(0x281)](_0x5b77d6)&&_0x5b77d6[_0x2976e2(0x3b8)]>0x0&&this[_0x2976e2(0x2d9)](_0x5b77d6);}[_0x30e940(0x158)](){const _0xc63cb2=_0x30e940;this[_0xc63cb2(0x42d)]=!0x1;}};Ae=Hs([F(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),F(0x3,o[_0x30e940(0xdf)](Fe)),F(0x4,o[_0x30e940(0xdf)](Y)),F(0x5,o[_0x30e940(0xdf)](We)),F(0x6,_[_0x30e940(0x2ab)]),F(0x7,o[_0x30e940(0x233)]),F(0x8,o[_0x30e940(0x1c8)])],Ae);var Vs=Object[_0x30e940(0x36c)],Ws=Object[_0x30e940(0x1a2)],Fs=(_0x25663d,_0x1ffdaa,_0x578105,_0x46ecb8)=>{const _0x2a941d=_0x30e940;for(var _0x3de539=_0x46ecb8>0x1?void 0x0:_0x46ecb8?Ws(_0x1ffdaa,_0x578105):_0x1ffdaa,_0x405934=_0x25663d[_0x2a941d(0x3b8)]-0x1,_0x191241;_0x405934>=0x0;_0x405934--)(_0x191241=_0x25663d[_0x405934])&&(_0x3de539=(_0x46ecb8?_0x191241(_0x1ffdaa,_0x578105,_0x3de539):_0x191241(_0x3de539))||_0x3de539);return _0x46ecb8&&_0x3de539&&Vs(_0x1ffdaa,_0x578105,_0x3de539),_0x3de539;},Re=(_0x3deabc,_0xc2b4ce)=>(_0x35d6be,_0x44a767)=>_0xc2b4ce(_0x35d6be,_0x44a767,_0x3deabc);let Z=class extends o[_0x30e940(0x1cf)]{constructor(_0x1f6152,_0x332ad9,_0x1c52ab){const _0x257f01=_0x30e940;super(),u(this,'_entities',new Map()),u(this,_0x257f01(0x230),new v['Subject']()),(this[_0x257f01(0x43f)]=_0x1f6152,this[_0x257f01(0x137)]=_0x332ad9,this[_0x257f01(0x20d)]=_0x1c52ab,this[_0x257f01(0x2eb)]());}[_0x30e940(0xc6)](){const _0x1f07f1=_0x30e940;super['dispose'](),this['_entityInit$']['complete'](),this[_0x1f07f1(0x200)][_0x1f07f1(0x277)](_0x314e2d=>_0x314e2d['dispose']());}[_0x30e940(0x135)](_0xa4a087){const _0x4e93f9=_0x30e940;return this['_entities'][_0x4e93f9(0x45c)](_0xa4a087)?this['_entities'][_0x4e93f9(0x1f0)](_0xa4a087)[_0x4e93f9(0x3a6)]:this[_0x4e93f9(0x230)]['pipe'](v[_0x4e93f9(0x20a)](_0x50d507=>_0x50d507[_0x4e93f9(0x1e6)]===_0xa4a087),v[_0x4e93f9(0xa7)](_0x2da2ff=>_0x2da2ff['cursorInfo$']));}[_0x30e940(0x2eb)](){const _0x1839f8=_0x30e940;this[_0x1839f8(0x43f)][_0x1839f8(0xc5)](o[_0x1839f8(0x37c)][_0x1839f8(0x390)])[_0x1839f8(0x2a9)](v['takeUntil'](this[_0x1839f8(0x2b1)]))[_0x1839f8(0x196)](async _0x3420a9=>{const _0x33db02=_0x1839f8,_0x5ed01e=_0x3420a9['getUnitId'](),_0x493db9=await this[_0x33db02(0x353)](_0x5ed01e);this[_0x33db02(0x230)][_0x33db02(0x46e)](_0x493db9),this[_0x33db02(0x200)][_0x33db02(0x346)](_0x5ed01e,_0x493db9);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x1839f8(0x37c)][_0x1839f8(0x1f4)])[_0x1839f8(0x2a9)](v['takeUntil'](this[_0x1839f8(0x2b1)]))['pipe'](v['filter'](_0x479a6d=>!_0x479a6d[_0x1839f8(0x280)]()[_0x1839f8(0xae)]('__')))[_0x1839f8(0x196)](async _0x46ffed=>{const _0x2d17bf=_0x1839f8,_0x362873=_0x46ffed['getUnitId'](),_0xbff54c=await this[_0x2d17bf(0x2c1)](_0x362873);this['_entityInit$'][_0x2d17bf(0x46e)](_0xbff54c),this[_0x2d17bf(0x200)]['set'](_0x362873,_0xbff54c);}),v[_0x1839f8(0xbd)](this[_0x1839f8(0x43f)][_0x1839f8(0x142)](o[_0x1839f8(0x37c)][_0x1839f8(0x1f4)]),this[_0x1839f8(0x43f)][_0x1839f8(0x142)](o[_0x1839f8(0x37c)][_0x1839f8(0x390)]))['pipe'](v[_0x1839f8(0x3a8)](this[_0x1839f8(0x2b1)]))[_0x1839f8(0x196)](_0x5b2300=>{const _0x4247bf=_0x1839f8,_0x48d43f=_0x5b2300[_0x4247bf(0x280)](),_0x47b8dc=this['_entities']['get'](_0x48d43f);_0x47b8dc&&(_0x47b8dc[_0x4247bf(0xc6)](),this[_0x4247bf(0x200)]['delete'](_0x48d43f));});}async[_0x30e940(0x353)](_0x5e28ad){const _0x4cfb03=_0x30e940,_0x54e858=await this[_0x4cfb03(0x20d)]['requireSession'](_0x5e28ad),_0x2e765b=this[_0x4cfb03(0x137)][_0x4cfb03(0x1c0)](Le,_0x5e28ad,_0x54e858);return _0x2e765b[_0x4cfb03(0x30e)](),_0x2e765b;}async[_0x30e940(0x2c1)](_0x5c1726){const _0x203cb8=_0x30e940,_0x22eddf=await this[_0x203cb8(0x20d)][_0x203cb8(0x470)](_0x5c1726),_0x49672b=this[_0x203cb8(0x137)]['createInstance'](Ae,_0x5c1726,_0x22eddf);return _0x49672b['init'](),_0x49672b;}};Z=Fs([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],Z),Re(0x0,o[_0x30e940(0x233)]),Re(0x1,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),Re(0x2,o[_0x30e940(0xdf)](exports['CollaborationSessionService']))],Z);const le=0x14,it=0xc8,Oe=0x4,Gs=0x5;function Ys(_0x40a9c3,_0x110002){const _0x561ef1=_0x30e940;let {radius:_0x4f75f1,width:_0x1251f8,height:_0x3a3be6}=_0x110002;_0x4f75f1=_0x4f75f1!=null?_0x4f75f1:0x0,_0x1251f8=_0x1251f8!=null?_0x1251f8:0x1e,_0x3a3be6=_0x3a3be6!=null?_0x3a3be6:0x1e;let _0x1283b8=0x0,_0x480311=0x0,_0x101367=0x0;_0x1283b8=_0x480311=_0x101367=Math[_0x561ef1(0x2ac)](_0x4f75f1,_0x1251f8/0x2,_0x3a3be6/0x2),_0x40a9c3[_0x561ef1(0x18e)](),_0x40a9c3[_0x561ef1(0x308)](_0x1283b8,0x0),_0x40a9c3[_0x561ef1(0x404)](_0x1251f8-_0x480311,0x0),_0x40a9c3[_0x561ef1(0x2b2)](_0x1251f8-_0x480311,_0x480311,_0x480311,Math['PI']*0x3/0x2,0x0,!0x1),_0x40a9c3[_0x561ef1(0x404)](_0x1251f8,_0x3a3be6-_0x101367),_0x40a9c3[_0x561ef1(0x2b2)](_0x1251f8-_0x101367,_0x3a3be6-_0x101367,_0x101367,0x0,Math['PI']/0x2,!0x1),_0x40a9c3[_0x561ef1(0x404)](0x0,_0x3a3be6),_0x40a9c3[_0x561ef1(0x404)](0x0,_0x1283b8),_0x40a9c3[_0x561ef1(0x2b2)](_0x1283b8,_0x1283b8,_0x1283b8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x40a9c3[_0x561ef1(0x423)](),_0x110002[_0x561ef1(0xec)]&&(_0x40a9c3[_0x561ef1(0x126)](),_0x40a9c3[_0x561ef1(0x2f8)]=_0x110002['fill'],_0x110002['fillRule']==='evenodd'?_0x40a9c3['fill']('evenodd'):_0x40a9c3[_0x561ef1(0xec)](),_0x40a9c3[_0x561ef1(0x295)]());}class Ce extends b['Shape']{constructor(_0x446aee,_0x4ea86e){const _0x47a779=_0x30e940;super(_0x446aee,_0x4ea86e),u(this,_0x47a779(0x1ea)),u(this,_0x47a779(0x450)),(this[_0x47a779(0x1ea)]=_0x4ea86e==null?void 0x0:_0x4ea86e[_0x47a779(0x1ea)],this['text']=_0x4ea86e==null?void 0x0:_0x4ea86e[_0x47a779(0x450)]);}static['drawWith'](_0x3e1423,_0xc07273){const _0x5d41df=_0x30e940,{text:_0x141fb6,color:_0x443a88}=_0xc07273;_0x3e1423['save'](),_0x3e1423[_0x5d41df(0x3b3)]=_0x5d41df(0x37e);const _0x2c0816=_0x3e1423['measureText'](_0x141fb6)[_0x5d41df(0x44e)],_0x58d718=Math[_0x5d41df(0x2ac)](_0x2c0816+0x2*Oe,it);Ys(_0x3e1423,{'height':le,'radius':0x4,'width':_0x58d718,'fill':_0x443a88,'evented':!0x1}),_0x3e1423[_0x5d41df(0x2f8)]=_0x5d41df(0x378);const _0x2f9b02=Oe,_0x44f2a7=le-Gs,_0x343ae5=it-0x2*Oe;if(_0x2c0816>_0x343ae5){let _0x59322e='',_0x2dd9c6=0x0;for(const _0x474a87 of _0x141fb6){const _0x2d4bc4=_0x3e1423[_0x5d41df(0x43a)](_0x474a87)[_0x5d41df(0x44e)];if(_0x2dd9c6+_0x2d4bc4<=_0x343ae5-_0x3e1423[_0x5d41df(0x43a)](_0x5d41df(0x27d))[_0x5d41df(0x44e)])_0x59322e+=_0x474a87,_0x2dd9c6+=_0x2d4bc4;else{_0x59322e+=_0x5d41df(0x27d);break;}}_0x3e1423[_0x5d41df(0x3b0)](_0x59322e,_0x2f9b02,_0x44f2a7);}else _0x3e1423['fillText'](_0x141fb6,_0x2f9b02,_0x44f2a7);_0x3e1423['restore']();}['_draw'](_0x4ef81e){const _0x3222d7=_0x30e940;Ce[_0x3222d7(0x174)](_0x4ef81e,this);}}const Ks=0x1,Xs=1.5;class Rt extends b[_0x30e940(0x3e6)]{constructor(_0x417306,_0x464f12){const _0x166a97=_0x30e940;super(_0x417306,_0x464f12),u(this,_0x166a97(0x387)),u(this,'_hovered',!0x1),u(this,'_range'),u(this,'_name',''),u(this,_0x166a97(0xbf),_0x166a97(0x1ef)),u(this,'_backgroundColor'),(_0x464f12&&this['setShapeProps'](_0x464f12),this[_0x166a97(0x2be)][_0x166a97(0x246)](()=>this[_0x166a97(0x213)]({'hovered':!0x0})),this['onPointerLeave$'][_0x166a97(0x246)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x30e940(0x213)](_0x25c9c6){const _0xa8d06e=_0x30e940;var _0x4940e4,_0x506ac5,_0x46cc83,_0xca70d8,_0x22f61d,_0x10233e;this[_0xa8d06e(0x387)]=(_0x4940e4=_0x25c9c6[_0xa8d06e(0x1ea)])!=null?_0x4940e4:this['_color'],this['_hovered']=(_0x506ac5=_0x25c9c6[_0xa8d06e(0x391)])!=null?_0x506ac5:this[_0xa8d06e(0x2db)],this[_0xa8d06e(0xe7)]=(_0x46cc83=_0x25c9c6[_0xa8d06e(0x3a9)])!=null?_0x46cc83:this[_0xa8d06e(0xe7)],this[_0xa8d06e(0x285)]=(_0xca70d8=_0x25c9c6[_0xa8d06e(0x3a7)])!=null?_0xca70d8:this[_0xa8d06e(0x285)],this[_0xa8d06e(0xbf)]=(_0x22f61d=_0x25c9c6[_0xa8d06e(0x3d9)])!=null?_0x22f61d:this[_0xa8d06e(0xbf)],this[_0xa8d06e(0x454)]=(_0x10233e=_0x25c9c6[_0xa8d06e(0x238)])!=null?_0x10233e:this[_0xa8d06e(0x454)],this['transformByState']({'width':_0x25c9c6['width'],'height':_0x25c9c6[_0xa8d06e(0x3bd)]});}[_0x30e940(0x3b4)](_0x2954ff){const _0x214ed9=_0x30e940,{row:_0x527bd3,column:_0x494879}=_0x2954ff;if(_0x527bd3>=this[_0x214ed9(0xe7)][_0x214ed9(0x2a1)]&&_0x527bd3<=this['_range'][_0x214ed9(0x214)]&&_0x494879>=this[_0x214ed9(0xe7)][_0x214ed9(0x3a0)]&&_0x494879<=this['_range'][_0x214ed9(0x2c5)]){this[_0x214ed9(0x213)]({'hovered':!0x0});return;}this[_0x214ed9(0x213)]({'hovered':!0x1});}['triggerDblclick'](_0x3758cc){return!0x1;}[_0x30e940(0x3ce)](_0x8af641){const _0x44f621=_0x30e940;b[_0x44f621(0x88)][_0x44f621(0x174)](_0x8af641,{'width':this[_0x44f621(0x44e)],'height':this[_0x44f621(0x3bd)],'strokeWidth':Xs,'stroke':this[_0x44f621(0x387)],'evented':!0x1,'fill':this[_0x44f621(0x454)]}),this['_hovered']&&(_0x8af641[_0x44f621(0x126)](),_0x8af641['transform'](0x1,0x0,0x0,0x1,this[_0x44f621(0x44e)],this[_0x44f621(0xbf)]===_0x44f621(0x165)?0x0:-le),Ce[_0x44f621(0x174)](_0x8af641,{'text':this[_0x44f621(0x285)],'color':this[_0x44f621(0x387)]}),_0x8af641[_0x44f621(0x295)]());}}var qs=Object['defineProperty'],zs=Object[_0x30e940(0x1a2)],Js=(_0x3c7f6f,_0x176b26,_0x26ee22,_0x490a97)=>{for(var _0x64c173=_0x490a97>0x1?void 0x0:_0x490a97?zs(_0x176b26,_0x26ee22):_0x176b26,_0x401149=_0x3c7f6f['length']-0x1,_0x318ba7;_0x401149>=0x0;_0x401149--)(_0x318ba7=_0x3c7f6f[_0x401149])&&(_0x64c173=(_0x490a97?_0x318ba7(_0x176b26,_0x26ee22,_0x64c173):_0x318ba7(_0x64c173))||_0x64c173);return _0x490a97&&_0x64c173&&qs(_0x176b26,_0x26ee22,_0x64c173),_0x64c173;},De=(_0x49dcbd,_0x31f842)=>(_0x53cf5e,_0x48b22)=>_0x31f842(_0x53cf5e,_0x48b22,_0x49dcbd);const Zs=0x1389;let je=class extends o[_0x30e940(0x1cf)]{constructor(_0x1f02d7,_0x8a073,_0x1870cf,_0xf17ea0){const _0x58b7b1=_0x30e940;super(),u(this,_0x58b7b1(0x3f8),new Set()),u(this,'_lastPointer',null),(this[_0x58b7b1(0x21f)]=_0x1f02d7,this[_0x58b7b1(0xb3)]=_0x8a073,this['_collabCursorController']=_0x1870cf,this['_themeService']=_0xf17ea0,this[_0x58b7b1(0x2eb)]());}[_0x30e940(0x2eb)](){const _0x440416=_0x30e940;this['_sheetSkeletonManagerService'][_0x440416(0x433)][_0x440416(0x2a9)](E['takeUntil'](this['dispose$']),E[_0x440416(0xa7)](_0x378d19=>{const _0x21f6fb=_0x440416;if(_0x378d19){const _0x160cba=_0x378d19[_0x21f6fb(0x410)];return v[_0x21f6fb(0x24b)](this[_0x21f6fb(0xcd)][_0x21f6fb(0x135)](this['_context'][_0x21f6fb(0x424)]),this['_themeService']['currentTheme$'])[_0x21f6fb(0x2a9)](E[_0x21f6fb(0x120)](([_0x50e0d3,_0x44a4a3])=>{const _0x259915=new Map();return _0x50e0d3['forEach']((_0x26b0da,_0x3763c4)=>{const _0x3995cc=_0x3b20;if(_0x26b0da['sheetID']===_0x160cba){const _0xbacbe2={..._0x26b0da};_0xbacbe2[_0x3995cc(0x1ea)]=_0x44a4a3[_0x26b0da['color']],_0x259915['set'](_0x3763c4,_0xbacbe2);}}),{'skeleton':_0x378d19,'cursors':_0x259915};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x440416(0x196)](({skeleton:_0x4fb68e,cursors:_0x59be96})=>{const _0x4285e1=_0x440416;this[_0x4285e1(0x269)](),_0x4fb68e&&this[_0x4285e1(0x37f)](_0x4fb68e,_0x59be96);}),this[_0x440416(0xb3)]['currentSkeleton$'][_0x440416(0x196)](_0x5749e4=>{const _0x365e8d=_0x440416;if(_0x5749e4==null)return;const {skeleton:_0x45ae1e}=_0x5749e4,{scene:_0x220579}=this['_context'];_0x220579[_0x365e8d(0x329)][_0x365e8d(0x246)](xe(_0x325444=>{const _0x5fe68=_0x365e8d;var _0x19ab26,_0x31439d;const {offsetX:_0x11036a,offsetY:_0x3002d0}=_0x325444,{x:_0x5a17a6,y:_0x49e168}=_0x220579[_0x5fe68(0x440)](b[_0x5fe68(0x2ee)]['FromArray']([_0x11036a,_0x3002d0])),{scaleX:_0xd56d85,scaleY:_0xc84e8b}=_0x220579[_0x5fe68(0x320)](),_0x15f587=_0x220579['getViewport'](J['VIEWPORT_KEY'][_0x5fe68(0x113)]),_0x1bd287=_0x220579[_0x5fe68(0x300)](b['Vector2'][_0x5fe68(0x131)]([_0x5a17a6,_0x49e168]),_0x15f587),_0x2f0616=_0x45ae1e[_0x5fe68(0x292)](_0x11036a,_0x3002d0,_0xd56d85,_0xc84e8b,_0x1bd287);((_0x19ab26=this[_0x5fe68(0x39e)])==null?void 0x0:_0x19ab26['column'])===_0x2f0616[_0x5fe68(0x345)]&&((_0x31439d=this['_lastPointer'])==null?void 0x0:_0x31439d[_0x5fe68(0x1f8)])===_0x2f0616[_0x5fe68(0x1f8)]||this[_0x5fe68(0x3f8)]['forEach'](_0x4f6127=>{const _0x32b837=_0x5fe68;_0x4f6127[_0x32b837(0x3b4)](_0x2f0616);});},0x64));});}[_0x30e940(0x37f)](_0x412a6e,_0x2b9acf){const _0x1bd90b=_0x30e940;var _0x19c515;const _0x48c30a=(_0x19c515=this[_0x1bd90b(0xb3)][_0x1bd90b(0x29c)]())==null?void 0x0:_0x19c515[_0x1bd90b(0x155)];if(!_0x48c30a)return;const _0x109912=this['_getSheetObject']();if(!_0x109912)return;this[_0x1bd90b(0x3f8)]['forEach'](_0x8720a6=>{_0x8720a6['makeDirty']();});const {scene:_0x16202b}=_0x109912,_0x8ed0d2=Qs(Array[_0x1bd90b(0x16d)](_0x2b9acf[_0x1bd90b(0x14e)]()))[_0x1bd90b(0x120)](_0x3fa39a=>{const _0x597d04=_0x1bd90b,{color:_0x49c12f,range:_0x56fa46,name:_0x47576c,selection:_0x247800,sheetID:_0x20a148}=_0x3fa39a,{startColumn:_0x400bf7,startRow:_0x136d71,endColumn:_0x57f79f,endRow:_0x589ceb}=_0x56fa46,_0x1f90e8=J[_0x597d04(0x117)](_0x136d71,_0x400bf7,_0x16202b,_0x48c30a),_0x414752=J[_0x597d04(0x117)](_0x589ceb,_0x57f79f,_0x16202b,_0x48c30a),{columnHeaderHeightAndMarginTop:_0x4a2620}=_0x48c30a,{startX:_0x5264c8,startY:_0x33ddcb}=_0x1f90e8,{endX:_0x519330,endY:_0x945a8d}=_0x414752,_0x569b47=_0x519330-_0x5264c8,_0x271e34=_0x945a8d-_0x33ddcb,_0x18295e={'labelPosition':_0x33ddcb-_0x4a2620>=le?_0x597d04(0x1ef):'bottom','sheetID':_0x20a148,'range':_0x56fa46,'color':_0x49c12f,'name':_0x47576c,'selection':_0x247800,'left':_0x5264c8,'top':_0x33ddcb,'width':_0x569b47,'height':_0x271e34,'evented':!0x1,'zIndex':Zs};return new Rt(_0x47576c,_0x18295e);});_0x16202b[_0x1bd90b(0x264)](_0x8ed0d2,Ks),this['_cursors']=new Set(_0x8ed0d2);}[_0x30e940(0x269)](){const _0x1b7ebd=_0x30e940;var _0x5bf668;(_0x5bf668=this['_cursors'])==null||_0x5bf668[_0x1b7ebd(0x277)](_0x2efdaa=>_0x2efdaa[_0x1b7ebd(0xc6)]());}[_0x30e940(0x15e)](){const _0x59a3c5=_0x30e940;return J[_0x59a3c5(0x1b1)](this[_0x59a3c5(0x21f)][_0x59a3c5(0x1d0)],this[_0x59a3c5(0x21f)]);}};je=Js([De(0x1,o[_0x30e940(0xdf)](J['SheetSkeletonManagerService'])),De(0x2,o[_0x30e940(0xdf)](Z)),De(0x3,o[_0x30e940(0xdf)](o['ThemeService']))],je);function Qs(_0xbcbbdb){const _0x2ab0aa=_0x30e940,_0x5e375e=new Map();return _0xbcbbdb[_0x2ab0aa(0x277)](_0x44733a=>{const _0x461aae=_0x2ab0aa;if(_0x5e375e[_0x461aae(0x45c)](_0x44733a['selection'])){const _0x2a2b51=_0x5e375e['get'](_0x44733a[_0x461aae(0x3e2)]);_0x2a2b51[_0x461aae(0x3a7)]+=',\x20'+_0x44733a['name'];}else _0x5e375e[_0x461aae(0x346)](_0x44733a[_0x461aae(0x3e2)],_0x44733a);}),Array['from'](_0x5e375e['values']());}var N=function(){const _0x46e080=_0x30e940;return N=Object[_0x46e080(0x101)]||function(_0x280bf8){const _0x3142bd=_0x46e080;for(var _0x2c4073,_0x2e2cb2=0x1,_0x34ff9a=arguments['length'];_0x2e2cb2<_0x34ff9a;_0x2e2cb2++){_0x2c4073=arguments[_0x2e2cb2];for(var _0x4d3cc6 in _0x2c4073)Object[_0x3142bd(0x337)]['hasOwnProperty'][_0x3142bd(0xe3)](_0x2c4073,_0x4d3cc6)&&(_0x280bf8[_0x4d3cc6]=_0x2c4073[_0x4d3cc6]);}return _0x280bf8;},N[_0x46e080(0x3cf)](this,arguments);},ei=function(_0x56b742,_0x53c4a4){const _0x4b61fd=_0x30e940;var _0x588625={};for(var _0x26a9fa in _0x56b742)Object['prototype'][_0x4b61fd(0x222)][_0x4b61fd(0xe3)](_0x56b742,_0x26a9fa)&&_0x53c4a4['indexOf'](_0x26a9fa)<0x0&&(_0x588625[_0x26a9fa]=_0x56b742[_0x26a9fa]);if(_0x56b742!=null&&typeof Object[_0x4b61fd(0x323)]==_0x4b61fd(0x2ff)){for(var _0x522bb8=0x0,_0x26a9fa=Object[_0x4b61fd(0x323)](_0x56b742);_0x522bb8<_0x26a9fa[_0x4b61fd(0x3b8)];_0x522bb8++)_0x53c4a4[_0x4b61fd(0x208)](_0x26a9fa[_0x522bb8])<0x0&&Object[_0x4b61fd(0x337)][_0x4b61fd(0x1d4)][_0x4b61fd(0xe3)](_0x56b742,_0x26a9fa[_0x522bb8])&&(_0x588625[_0x26a9fa[_0x522bb8]]=_0x56b742[_0x26a9fa[_0x522bb8]]);}return _0x588625;},Ge=y['forwardRef'](function(_0x2259bb,_0x5ce95a){const _0x4cbb13=_0x30e940;var _0x8f7778=_0x2259bb['icon'],_0x1aa675=_0x2259bb['id'],_0x194840=_0x2259bb[_0x4cbb13(0x243)],_0x7671e8=_0x2259bb['extend'],_0x16760d=ei(_0x2259bb,[_0x4cbb13(0xeb),'id','className','extend']),_0x50cc1b=_0x4cbb13(0x19d)[_0x4cbb13(0x318)](_0x1aa675,'\x20')[_0x4cbb13(0x318)](_0x194840||'')['trim'](),_0x33cc4d=y['useRef']('_'[_0x4cbb13(0x318)](ii()));return Ot(_0x8f7778,''[_0x4cbb13(0x318)](_0x1aa675),{'defIds':_0x8f7778[_0x4cbb13(0x429)],'idSuffix':_0x33cc4d['current']},N({'ref':_0x5ce95a,'className':_0x50cc1b},_0x16760d),_0x7671e8);});function Ot(_0x953fd2,_0x5672a5,_0x562709,_0x1252a0,_0x3b26ba){const _0x5d5279=_0x30e940;return y[_0x5d5279(0x3a5)](_0x953fd2[_0x5d5279(0x9e)],N(N({'key':_0x5672a5},ti(_0x953fd2,_0x562709,_0x3b26ba)),_0x1252a0),(si(_0x953fd2,_0x562709)[_0x5d5279(0x335)]||[])[_0x5d5279(0x120)](function(_0x12e5e2,_0x30bbf1){const _0x3889ee=_0x5d5279;return Ot(_0x12e5e2,''[_0x3889ee(0x318)](_0x5672a5,'-')[_0x3889ee(0x318)](_0x953fd2[_0x3889ee(0x9e)],'-')[_0x3889ee(0x318)](_0x30bbf1),_0x562709,void 0x0,_0x3b26ba);}));}function ti(_0x17b0b5,_0x5632c6,_0x12095e){const _0x358818=_0x30e940;var _0x41353c=N({},_0x17b0b5['attrs']);_0x12095e!=null&&_0x12095e[_0x358818(0x459)]&&_0x41353c['fill']===_0x358818(0x459)&&(_0x41353c[_0x358818(0xec)]=_0x12095e[_0x358818(0x459)]);var _0x41400b=_0x5632c6[_0x358818(0x429)];return!_0x41400b||_0x41400b[_0x358818(0x3b8)]===0x0||(_0x17b0b5[_0x358818(0x9e)]==='use'&&_0x41353c['xlink:href']&&(_0x41353c['xlink:href']=_0x41353c[_0x358818(0x148)]+_0x5632c6[_0x358818(0x27f)]),Object[_0x358818(0x43b)](_0x41353c)[_0x358818(0x277)](function(_0x3b8b2c){const _0x53f3c4=_0x358818;var _0x2ab1fa=_0x3b8b2c[0x0],_0x27dcf3=_0x3b8b2c[0x1];typeof _0x27dcf3==_0x53f3c4(0x1d3)&&(_0x41353c[_0x2ab1fa]=_0x27dcf3[_0x53f3c4(0x283)](/url\(#(.*)\)/,_0x53f3c4(0x452)[_0x53f3c4(0x318)](_0x5632c6[_0x53f3c4(0x27f)],')')));})),_0x41353c;}function si(_0x4aebfc,_0x5dc4d8){const _0x5283cb=_0x30e940;var _0x41ee60,_0x23cb73=_0x5dc4d8[_0x5283cb(0x429)];return!_0x23cb73||_0x23cb73[_0x5283cb(0x3b8)]===0x0?_0x4aebfc:_0x4aebfc[_0x5283cb(0x9e)]==='defs'&&(!((_0x41ee60=_0x4aebfc[_0x5283cb(0x335)])===null||_0x41ee60===void 0x0)&&_0x41ee60[_0x5283cb(0x3b8)])?N(N({},_0x4aebfc),{'children':_0x4aebfc[_0x5283cb(0x335)][_0x5283cb(0x120)](function(_0x24fcbf){const _0x5265f1=_0x5283cb;return typeof _0x24fcbf[_0x5265f1(0xfb)]['id']==_0x5265f1(0x1d3)&&_0x23cb73&&_0x23cb73[_0x5265f1(0x208)](_0x24fcbf[_0x5265f1(0xfb)]['id'])>-0x1?N(N({},_0x24fcbf),{'attrs':N(N({},_0x24fcbf[_0x5265f1(0xfb)]),{'id':_0x24fcbf[_0x5265f1(0xfb)]['id']+_0x5dc4d8[_0x5265f1(0x27f)]})}):_0x24fcbf;})}):_0x4aebfc;}function ii(){const _0x38afa5=_0x30e940;return Math[_0x38afa5(0x3ca)]()[_0x38afa5(0x451)](0x24)[_0x38afa5(0x22e)](0x2,0x8);}Ge[_0x30e940(0x225)]=_0x30e940(0x46a);var ni={'tag':'svg','attrs':{'fill':'none','viewBox':_0x30e940(0xbc),'width':_0x30e940(0x1b8),'height':_0x30e940(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x30e940(0xb2)},'children':[{'tag':_0x30e940(0x395),'attrs':{'stroke':_0x30e940(0x316),'d':_0x30e940(0x309),'strokeLinecap':_0x30e940(0x24c),'strokeLinejoin':_0x30e940(0x24c),'strokeWidth':1.2}}]},{'tag':_0x30e940(0x3f4),'attrs':{},'children':[{'tag':_0x30e940(0x234),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x30e940(0x3fa),'d':_0x30e940(0x98)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Dt=y[_0x30e940(0xed)](function(_0x76ee13,_0x2139d3){const _0x536884=_0x30e940;return y[_0x536884(0x3a5)](Ge,Object[_0x536884(0x101)]({},_0x76ee13,{'id':_0x536884(0x253),'ref':_0x2139d3,'icon':ni}));});Dt['displayName']='OffLineSingle';var ri={'tag':_0x30e940(0x446),'attrs':{'fill':'none','viewBox':_0x30e940(0x141),'width':'1em','height':_0x30e940(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x30e940(0x395),'attrs':{'stroke':_0x30e940(0x316),'d':_0x30e940(0x439),'strokeLinecap':_0x30e940(0x24c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x30e940(0x234),'attrs':{'id':_0x30e940(0x32c)},'children':[{'tag':'path','attrs':{'fill':_0x30e940(0x3fa),'d':'M0\x200H16V16H0z','transform':_0x30e940(0x365)}}]}]}],'defIds':[_0x30e940(0x32c)]},Pt=y[_0x30e940(0xed)](function(_0x23ff96,_0x14282e){const _0x5d6085=_0x30e940;return y['createElement'](Ge,Object[_0x5d6085(0x101)]({},_0x23ff96,{'id':_0x5d6085(0x307),'ref':_0x14282e,'icon':ri}));});Pt['displayName']='OnLineSingle';const oi=_0x30e940(0x144),ai=_0x30e940(0x138),ci=_0x30e940(0x16e),li='univer-online',hi='univer-offline',ne={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x49908b){const _0x21105f=_0x30e940;switch(_0x49908b){case D[_0x21105f(0x32d)]:return _0x21105f(0x291);case D['CONFLICT']:return _0x21105f(0x2c0);case D[_0x21105f(0x33d)]:return _0x21105f(0xfa);case D[_0x21105f(0x25e)]:return _0x21105f(0x465);case D[_0x21105f(0x28e)]:case D[_0x21105f(0x38c)]:case D[_0x21105f(0x27c)]:return _0x21105f(0x25f);case D[_0x21105f(0x9c)]:return _0x21105f(0x468);}}function Ut(_0x463763){const _0x1b860a=_0x30e940,{status$:_0x1b4434}=_0x463763,_0x2f605b=L[_0x1b860a(0xcf)](_0x1b4434,D[_0x1b860a(0x25e)]),_0x4155db=o['useDependency'](o[_0x1b860a(0xfe)]),_0x162d24=_0x2f605b!==D['OFFLINE'],_0x2d22ff=_0x4155db['t'](_i(_0x2f605b)),_0x38d544=kt(ne['onlineStatus'],{[ne[_0x1b860a(0x304)]]:_0x162d24,[ne[_0x1b860a(0x1cd)]]:!_0x162d24}),_0x178d1a=_0x162d24?y[_0x1b860a(0x3a5)](Pt,null):y[_0x1b860a(0x3a5)](Dt,null);return y[_0x1b860a(0x3a5)](_0x1b860a(0x8e),{'className':_0x38d544},y[_0x1b860a(0x3a5)](_0x1b860a(0x8e),{'className':ne[_0x1b860a(0x257)]},_0x178d1a),y[_0x1b860a(0x3a5)](_0x1b860a(0x8e),{'className':ne['onlineStatusTitle']},_0x2d22ff));}var ui=Object[_0x30e940(0x36c)],di=Object['getOwnPropertyDescriptor'],Si=(_0x57c8f4,_0x19867f,_0x154633,_0x4d8a9d)=>{for(var _0x498f30=_0x4d8a9d>0x1?void 0x0:_0x4d8a9d?di(_0x19867f,_0x154633):_0x19867f,_0x59e3b8=_0x57c8f4['length']-0x1,_0x486784;_0x59e3b8>=0x0;_0x59e3b8--)(_0x486784=_0x57c8f4[_0x59e3b8])&&(_0x498f30=(_0x4d8a9d?_0x486784(_0x19867f,_0x154633,_0x498f30):_0x486784(_0x498f30))||_0x498f30);return _0x4d8a9d&&_0x498f30&&ui(_0x19867f,_0x154633,_0x498f30),_0x498f30;},he=(_0x333a5a,_0x4f3f6e)=>(_0x302a4b,_0xad9344)=>_0x4f3f6e(_0x302a4b,_0xad9344,_0x333a5a);exports[_0x30e940(0x18b)]=class extends o[_0x30e940(0x3c3)]{constructor(_0x13aeff,_0x2e58cc,_0x49cc61,_0x42926c){const _0x562077=_0x30e940;super(),u(this,_0x562077(0x3f0),new v['BehaviorSubject'](D['NOT_COLLAB'])),(this[_0x562077(0x43f)]=_0x13aeff,this[_0x562077(0x2a6)]=_0x2e58cc,this[_0x562077(0x137)]=_0x49cc61,this[_0x562077(0x46f)]=_0x42926c,this[_0x562077(0x151)](),this[_0x562077(0x384)]());}[_0x30e940(0x151)](){const _0x5fcd82=_0x30e940;this[_0x5fcd82(0x22c)](this[_0x5fcd82(0x2a6)][_0x5fcd82(0x426)](L['BuiltInUIPart']['HEADER_MENU'],()=>o['connectInjector'](vi({'status$':this[_0x5fcd82(0x3f0)][_0x5fcd82(0x16a)]()}),this[_0x5fcd82(0x137)])));}[_0x30e940(0x384)](){const _0x285828=_0x30e940;this[_0x285828(0x22c)](o[_0x285828(0xa1)](this['_univerInstanceService'][_0x285828(0x1a0)]['pipe'](v['switchMap'](()=>{const _0xe3b247=_0x285828,_0x239e40=this[_0xe3b247(0x43f)][_0xe3b247(0x469)]();return _0x239e40?this[_0xe3b247(0x46f)][_0xe3b247(0x231)](_0x239e40[_0xe3b247(0x280)]()):v['of'](null);}),v['switchMap'](_0x22e9c4=>_0x22e9c4?_0x22e9c4[_0x285828(0x3e0)]:v['of'](D[_0x285828(0x25e)])))[_0x285828(0x196)](_0xbb120=>{const _0x33fe2b=_0x285828;this[_0x33fe2b(0x3f0)][_0x33fe2b(0x46e)](_0xbb120);})));}},exports[_0x30e940(0x18b)]=Si([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],exports[_0x30e940(0x18b)]),he(0x0,o[_0x30e940(0x233)]),he(0x1,L[_0x30e940(0x442)]),he(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),he(0x3,o['Inject'](exports[_0x30e940(0xde)]))],exports[_0x30e940(0x18b)]);function vi(_0x17bbe0){const {status$:_0x40dfe1}=_0x17bbe0;return function(){const _0x8d4aee=_0x3b20;return y[_0x8d4aee(0x3a5)](Ut,{'status$':_0x40dfe1});};}const Ye=o[_0x30e940(0x16b)](_0x30e940(0x15c));var mi=Object[_0x30e940(0x36c)],gi=Object['getOwnPropertyDescriptor'],fi=(_0x7231db,_0x173302,_0x2321ef,_0x5e3401)=>{const _0x249da8=_0x30e940;for(var _0x52d690=_0x5e3401>0x1?void 0x0:_0x5e3401?gi(_0x173302,_0x2321ef):_0x173302,_0x295453=_0x7231db[_0x249da8(0x3b8)]-0x1,_0x200fc1;_0x295453>=0x0;_0x295453--)(_0x200fc1=_0x7231db[_0x295453])&&(_0x52d690=(_0x5e3401?_0x200fc1(_0x173302,_0x2321ef,_0x52d690):_0x200fc1(_0x52d690))||_0x52d690);return _0x5e3401&&_0x52d690&&mi(_0x173302,_0x2321ef,_0x52d690),_0x52d690;},z=(_0x4beccb,_0x4f2c02)=>(_0xbddb59,_0x2397e9)=>_0x4f2c02(_0xbddb59,_0x2397e9,_0x4beccb);exports[_0x30e940(0x385)]=class extends o['RxDisposable']{constructor(_0x3f4a49,_0x3c01fe,_0x3960d0,_0x1aba87,_0x2f4500,_0x221f72){const _0x471ea9=_0x30e940;super(),this[_0x471ea9(0x11d)]=_0x3f4a49,this[_0x471ea9(0x198)]=_0x3c01fe,this[_0x471ea9(0x176)]=_0x3960d0,this[_0x471ea9(0x377)]=_0x1aba87,this[_0x471ea9(0x3ea)]=_0x2f4500,_0x221f72?_0x221f72==null||_0x221f72[_0x471ea9(0x24f)]()[_0x471ea9(0x9d)](()=>this[_0x471ea9(0x2eb)]()):(this['_logService'][_0x471ea9(0x293)](_0x471ea9(0x194),_0x471ea9(0x24d)),this[_0x471ea9(0x2eb)]());}async['_init'](){const _0x6f1d18=_0x30e940,_0x59868e=this[_0x6f1d18(0x11d)]['getParam'](_0x6f1d18(0x1d0)),_0x328923=this[_0x6f1d18(0x11d)]['getParam'](_0x6f1d18(0x312));if(!_0x59868e||!_0x328923){this[_0x6f1d18(0x198)][_0x6f1d18(0x293)](_0x6f1d18(0x194),_0x6f1d18(0x334));return;}switch(Number(_0x328923)){case j[_0x6f1d18(0x390)]:{const _0x58f91c=await this[_0x6f1d18(0x30c)](_0x59868e);this[_0x6f1d18(0x417)](_0x58f91c);break;}case j[_0x6f1d18(0x1f4)]:{await this[_0x6f1d18(0x415)](_0x59868e);break;}default:{this[_0x6f1d18(0x198)][_0x6f1d18(0xf0)](_0x6f1d18(0x194),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x30e940(0x417)](_0x2adfd9){const _0x94f32b=_0x30e940;await this[_0x94f32b(0x2f4)](_0x2adfd9),_0x2adfd9[_0x94f32b(0x3ac)][_0x94f32b(0x2a9)](v[_0x94f32b(0x3a8)](this[_0x94f32b(0x2b1)]))[_0x94f32b(0x196)](_0x37724a=>{const _0x4e3d0c=_0x94f32b;_0x37724a&&this[_0x4e3d0c(0xdb)](_0x37724a);}),this[_0x94f32b(0x11d)][_0x94f32b(0x2e3)][_0x94f32b(0x2a9)](v['takeUntil'](this[_0x94f32b(0x2b1)]))[_0x94f32b(0x196)](()=>this[_0x94f32b(0x2f4)](_0x2adfd9));}[_0x30e940(0xdb)](_0x440330,_0x32abdc=!0x1){const _0x276899=_0x30e940,_0x4b7d04=this[_0x276899(0x11d)][_0x276899(0x3e3)](_0x276899(0x36f));_0x440330[_0x276899(0x28d)]()!==_0x4b7d04&&this[_0x276899(0x11d)][_0x276899(0x383)](_0x276899(0x36f),_0x440330[_0x276899(0x28d)](),_0x32abdc);}async[_0x30e940(0x2f4)](_0xf22cc9){const _0x4469cd=_0x30e940;var _0x4dbfb2;const _0x1688ba=this[_0x4469cd(0x11d)]['getParam'](_0x4469cd(0x36f));if(!_0x1688ba||!_0xf22cc9[_0x4469cd(0x3f1)](_0x1688ba)){const _0x5c211c=_0xf22cc9[_0x4469cd(0x12a)]()[0x0],_0x124521=_0xf22cc9['getSheetBySheetId'](_0x5c211c);if(!_0x124521)return;this[_0x4469cd(0xdb)](_0x124521,!0x0),await this[_0x4469cd(0x176)]['executeCommand'](p[_0x4469cd(0x2a3)]['id'],{'unitId':_0xf22cc9[_0x4469cd(0x280)](),'subUnitId':_0x5c211c});return;}((_0x4dbfb2=_0xf22cc9[_0x4469cd(0x18f)]())==null?void 0x0:_0x4dbfb2['getSheetId']())!==_0x1688ba&&await this[_0x4469cd(0x176)][_0x4469cd(0x12d)](p[_0x4469cd(0x2a3)]['id'],{'unitId':_0xf22cc9[_0x4469cd(0x280)](),'subUnitId':_0x1688ba});}async[_0x30e940(0x30c)](_0x120cf3){const _0x1f7c70=_0x30e940;let _0x40bcc4=0x0;const _0x45b315=await this['_localCacheService'][_0x1f7c70(0x341)](_0x120cf3);return _0x45b315&&(_0x45b315[_0x1f7c70(0xf9)]||_0x45b315['mutations'][_0x1f7c70(0x3b8)]!==0x0)&&(_0x40bcc4=_0x45b315['rev']),_0x40bcc4===0x0&&this['_logService'][_0x1f7c70(0x293)](_0x1f7c70(0x194),_0x1f7c70(0x370)),this[_0x1f7c70(0x3ea)][_0x1f7c70(0x190)](_0x120cf3,_0x40bcc4);}async[_0x30e940(0x415)](_0x373c23){const _0x4ab854=_0x30e940;let _0x5392bc=0x0;const _0x2430bc=await this[_0x4ab854(0x377)]['loadOfflineData'](_0x373c23);return _0x2430bc&&(_0x2430bc[_0x4ab854(0xf9)]||_0x2430bc[_0x4ab854(0x95)][_0x4ab854(0x3b8)]!==0x0)&&(_0x5392bc=_0x2430bc['rev']),_0x5392bc===0x0&&this[_0x4ab854(0x198)][_0x4ab854(0x293)](_0x4ab854(0x194),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4ab854(0x3ea)][_0x4ab854(0x3eb)](_0x373c23,_0x5392bc);}},exports[_0x30e940(0x385)]=fi([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],exports[_0x30e940(0x385)]),z(0x0,Ye),z(0x1,o[_0x30e940(0x1e7)]),z(0x2,o[_0x30e940(0x1c8)]),z(0x3,o[_0x30e940(0xdf)](exports[_0x30e940(0x227)])),z(0x4,o[_0x30e940(0xdf)](_[_0x30e940(0x1d9)])),z(0x5,o[_0x30e940(0x96)](Bt['IRemoteInstanceService']))],exports[_0x30e940(0x385)]);var Ii=Object[_0x30e940(0x36c)],pi=Object[_0x30e940(0x1a2)],Ei=(_0x367f24,_0x317026,_0x595c86,_0x4ee402)=>{const _0x8f7e2a=_0x30e940;for(var _0xa2e6ad=_0x4ee402>0x1?void 0x0:_0x4ee402?pi(_0x317026,_0x595c86):_0x317026,_0x17970e=_0x367f24[_0x8f7e2a(0x3b8)]-0x1,_0xe84ec2;_0x17970e>=0x0;_0x17970e--)(_0xe84ec2=_0x367f24[_0x17970e])&&(_0xa2e6ad=(_0x4ee402?_0xe84ec2(_0x317026,_0x595c86,_0xa2e6ad):_0xe84ec2(_0xa2e6ad))||_0xa2e6ad);return _0x4ee402&&_0xa2e6ad&&Ii(_0x317026,_0x595c86,_0xa2e6ad),_0xa2e6ad;},nt=(_0x1ce933,_0x157c4d)=>(_0x20028d,_0xff16ca)=>_0x157c4d(_0x20028d,_0xff16ca,_0x1ce933);const Ci='DEFAULT_FILE_NAME',bi=_0x30e940(0x1fe);let ue=class extends o[_0x30e940(0x3c3)]{constructor(_0x495c91,_0x1a538d){const _0x247ca5=_0x30e940;super(),this[_0x247ca5(0x43f)]=_0x495c91,this['_configService']=_0x1a538d,this[_0x247ca5(0x2eb)]();}[_0x30e940(0x2eb)](){const _0xa97b83=_0x30e940;this[_0xa97b83(0x22c)](o['toDisposable'](this[_0xa97b83(0x43f)]['focused$'][_0xa97b83(0x196)](()=>{const _0x35622c=_0xa97b83;var _0x4f492e;const _0xea2b11=this[_0x35622c(0x43f)][_0x35622c(0x469)]();let _0x2a6b0b=(_0x4f492e=this[_0x35622c(0x160)][_0x35622c(0xfc)](Ci))!=null?_0x4f492e:bi;_0xea2b11 instanceof o['Workbook']&&(_0x2a6b0b=_0xea2b11[_0x35622c(0x3a7)]),document[_0x35622c(0x20c)]=_0x2a6b0b;})));}};ue=Ei([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x33a)],ue),nt(0x0,o[_0x30e940(0x233)]),nt(0x1,o[_0x30e940(0x306)])],ue);var Ti=Object['defineProperty'],Ri=Object['getOwnPropertyDescriptor'],Oi=(_0x39ed07,_0x3adcbd,_0x975798,_0x4f0c07)=>{const _0x4a4d99=_0x30e940;for(var _0x14f859=_0x4f0c07>0x1?void 0x0:_0x4f0c07?Ri(_0x3adcbd,_0x975798):_0x3adcbd,_0x137a24=_0x39ed07[_0x4a4d99(0x3b8)]-0x1,_0x388cd3;_0x137a24>=0x0;_0x137a24--)(_0x388cd3=_0x39ed07[_0x137a24])&&(_0x14f859=(_0x4f0c07?_0x388cd3(_0x3adcbd,_0x975798,_0x14f859):_0x388cd3(_0x14f859))||_0x14f859);return _0x4f0c07&&_0x14f859&&Ti(_0x3adcbd,_0x975798,_0x14f859),_0x14f859;},rt=(_0x3ef988,_0x2176e5)=>(_0x4b2d50,_0x1e41ee)=>_0x2176e5(_0x4b2d50,_0x1e41ee,_0x3ef988);exports['SnapshotServerOverHTTPService']=class{constructor(_0x222d25,_0x1fa9af){this['_configService']=_0x222d25,this['_httpService']=_0x1fa9af;}async[_0x30e940(0x2e1)](_0x372d75,_0x1640f3){const _0x225fdc=_0x30e940;var _0x1fa254;const {unitID:_0x2363db,type:_0xde2f0f,revision:_0x1fa69a=0x0}=_0x1640f3,_0x2f286e=this[_0x225fdc(0x359)]()+'/'+_0xde2f0f+_0x225fdc(0x1ae)+_0x2363db+'/rev/'+_0x1fa69a,_0x24e121=(await this[_0x225fdc(0x19a)]['get'](_0x2f286e))[_0x225fdc(0x3db)],_0x597456=(_0x1fa254=_0x24e121['snapshot'])==null?void 0x0:_0x1fa254[_0x225fdc(0x2bb)];if(_0x597456){const _0x3de214=_0x597456==null?void 0x0:_0x597456['originalMeta'],_0xf607ab=_[_0x225fdc(0x28b)][_0x225fdc(0x249)](_[_0x225fdc(0x182)](_0x3de214));_0x597456[_0x225fdc(0x437)]=_0xf607ab,Object[_0x225fdc(0x43b)](_0x597456[_0x225fdc(0x2e9)])[_0x225fdc(0x277)](([,_0xdfea08])=>{const _0x41141a=_0x225fdc,_0x2d2584=_0xdfea08[_0x41141a(0x437)],_0xcaae5d=_[_0x41141a(0x28b)]['encode'](_['b64DecodeUnicode'](_0x2d2584));_0xdfea08[_0x41141a(0x437)]=_0xcaae5d;});}return _0x24e121;}async[_0x30e940(0x179)](_0x1cc65f,_0x311279){const _0x18d8c0=_0x30e940,{unitID:_0x181185,type:_0x883bc2,blockID:_0x13814e}=_0x311279,_0x4d869c=this['_getAPIPrefix']()+'/'+_0x883bc2+_0x18d8c0(0x1ae)+_0x181185+_0x18d8c0(0x226)+_0x13814e;return(await this[_0x18d8c0(0x19a)][_0x18d8c0(0x1f0)](_0x4d869c))[_0x18d8c0(0x3db)];}async[_0x30e940(0x34c)](_0x167528,_0x5c55ba){const _0xabc892=_0x30e940,{unitID:_0x5f4b19,type:_0x81b20f,from:_0x5a4f7f,to:_0xdd42c9}=_0x5c55ba,_0x4c1db1=this['_getAPIPrefix']()+'/'+_0x81b20f+'/unit/'+_0x5f4b19+_0xabc892(0x201)+_0x5a4f7f+_0xabc892(0x37a)+_0xdd42c9;return(await this[_0xabc892(0x19a)][_0xabc892(0x1f0)](_0x4c1db1))[_0xabc892(0x3db)];}[_0x30e940(0x359)](){const _0x21ad7a=_0x30e940;var _0x4339b7;return(_0x4339b7=this[_0x21ad7a(0x160)]['getConfig'](lt))!=null?_0x4339b7:this['_getAPIPrefix']();}[_0x30e940(0x183)](){const _0x3e0ca5=_0x30e940;var _0x3949fe;return(_0x3949fe=this[_0x3e0ca5(0x160)][_0x3e0ca5(0xfc)](ct))!=null?_0x3949fe:Vt;}async['getResourcesRequest'](_0x1ae43f,_0x3d3144){const _0x3ab54c=_0x30e940,_0x463feb=_0x3ab54c(0x2d7)+_0x3d3144['type']+_0x3ab54c(0x1ae)+_0x3d3144[_0x3ab54c(0x1e6)]+_0x3ab54c(0x388);return(await this[_0x3ab54c(0x19a)][_0x3ab54c(0x1f0)](_0x463feb,{'params':{'resourceId':JSON[_0x3ab54c(0x1be)](_0x3d3144[_0x3ab54c(0x26f)])}}))[_0x3ab54c(0x3db)];}[_0x30e940(0x32b)](){const _0x4f4fdd=_0x30e940;throw new Error(_0x4f4fdd(0x12f));}[_0x30e940(0x1a5)](){const _0x1db1e0=_0x30e940;throw new Error(_0x1db1e0(0x12f));}[_0x30e940(0x472)](){const _0x42459c=_0x30e940;throw new Error(_0x42459c(0x12f));}},exports[_0x30e940(0x41c)]=Oi([rt(0x0,o[_0x30e940(0x306)]),rt(0x1,o[_0x30e940(0xdf)](U[_0x30e940(0x181)]))],exports['SnapshotServerOverHTTPService']);var Di=Object[_0x30e940(0x36c)],Pi=Object[_0x30e940(0x1a2)],Ui=(_0x4706b2,_0x595ac1,_0x1fccd0,_0x1b5387)=>{for(var _0x1144b0=_0x1b5387>0x1?void 0x0:_0x1b5387?Pi(_0x595ac1,_0x1fccd0):_0x595ac1,_0x52ef84=_0x4706b2['length']-0x1,_0x41dd71;_0x52ef84>=0x0;_0x52ef84--)(_0x41dd71=_0x4706b2[_0x52ef84])&&(_0x1144b0=(_0x1b5387?_0x41dd71(_0x595ac1,_0x1fccd0,_0x1144b0):_0x41dd71(_0x1144b0))||_0x1144b0);return _0x1b5387&&_0x1144b0&&Di(_0x595ac1,_0x1fccd0,_0x1144b0),_0x1144b0;},re=(_0x214b89,_0x3aef2c)=>(_0x1ce841,_0x3f9a45)=>_0x3aef2c(_0x1ce841,_0x3f9a45,_0x214b89);let $e=class extends o[_0x30e940(0x23b)]{constructor(_0x5bb06e,_0x31d801,_0x1967b9,_0x3a4dd2,_0x26ab61){const _0xf15f7a=_0x30e940;super(_0x5bb06e,_0x31d801,_0x1967b9),this['_transformService']=_0x3a4dd2,this[_0xf15f7a(0x198)]=_0x26ab61;}[_0x30e940(0xa6)](_0x290c88,_0x40e1f1){const _0xba57a4=_0x30e940,_0x22c2a6=this[_0xba57a4(0x94)](_0x290c88);if(_0x22c2a6)try{const _0x369bb2=this[_0xba57a4(0xd4)](_0x22c2a6,_0x40e1f1);this['_substituteUndoStack'](_0x290c88,_0x369bb2);}catch(_0x2b5296){this[_0xba57a4(0x198)][_0xba57a4(0xf0)](_0xba57a4(0x152),_0x2b5296),this[_0xba57a4(0x367)](_0x290c88);}const _0x40685d=this[_0xba57a4(0x399)](_0x290c88);if(_0x40685d)try{const _0x1fa0b6=this[_0xba57a4(0xd4)](_0x40685d,_0x40e1f1);this[_0xba57a4(0xba)](_0x290c88,_0x1fa0b6);}catch(_0x2d07ae){this[_0xba57a4(0x198)][_0xba57a4(0xf0)](_0x2d07ae),this[_0xba57a4(0x3c1)](_0x290c88);}}['_clearUndo'](_0x1ac210){const _0x322718=_0x30e940,_0x3784f5=this['_getUndoStack'](_0x1ac210);_0x3784f5&&(_0x3784f5[_0x322718(0x3b8)]=0x0,this[_0x322718(0x268)]());}['_clearRedo'](_0x3b8679){const _0x4def6b=_0x30e940,_0x3b8d50=this[_0x4def6b(0x399)](_0x3b8679);_0x3b8d50&&(_0x3b8d50[_0x4def6b(0x3b8)]=0x0,this[_0x4def6b(0x268)]());}[_0x30e940(0x290)](_0x2c354e,_0xf3497b){const _0x4f0697=_0x30e940;this[_0x4f0697(0x14b)][_0x4f0697(0x346)](_0x2c354e,_0xf3497b),this[_0x4f0697(0x268)]();}['_substituteRedoStack'](_0xd6523e,_0x5433b0){const _0xa0746f=_0x30e940;this['_redoStacks'][_0xa0746f(0x346)](_0xd6523e,_0x5433b0),this['_updateStatus']();}[_0x30e940(0xd4)](_0x51e614,_0x103b21){const _0x1b5d68=_0x30e940,_0x1c8399=[];let _0x2bb1ff=_0x103b21,_0x11234a=_0x103b21;for(let _0x1f8d96=_0x51e614[_0x1b5d68(0x3b8)]-0x1;_0x1f8d96>=0x0;_0x1f8d96--){const {unitID:_0xf2277a,undoMutations:_0x5b6ceb,redoMutations:_0x1d8799}=_0x51e614[_0x1f8d96],_0x10859f=this[_0x1b5d68(0x3c0)]['transformMutationsWithChangeset'](_0x2bb1ff,_0x5b6ceb),_0x19e569=this[_0x1b5d68(0x3c0)][_0x1b5d68(0x1c3)](_0x11234a,_0x1d8799);if(_['isTransformMutationsWithChangesetFailure'](_0x10859f)||_[_0x1b5d68(0x2ec)](_0x19e569)){this[_0x1b5d68(0x198)][_0x1b5d68(0xf0)](_0x1b5d68(0x152),'transformStack\x20failed!',_0x10859f,_0x19e569);break;}_0x2bb1ff=_0x10859f[_0x1b5d68(0x1f6)],_0x11234a=_0x19e569[_0x1b5d68(0x1f6)],_0x1c8399[_0x1b5d68(0x220)]({'unitID':_0xf2277a,'undoMutations':_0x10859f[_0x1b5d68(0x163)],'redoMutations':_0x19e569[_0x1b5d68(0x163)]});}return _0x1c8399['reverse']();}};$e=Ui([re(0x0,o[_0x30e940(0x233)]),re(0x1,o['ICommandService']),re(0x2,o[_0x30e940(0x2da)]),re(0x3,_[_0x30e940(0x2ab)]),re(0x4,o['ILogService'])],$e);class wt extends o['RxDisposable']{constructor(){const _0x53e2c1=_0x30e940;super(),u(this,_0x53e2c1(0x2e3)),this[_0x53e2c1(0x2e3)]=v['fromEvent'](window,_0x53e2c1(0x1e0))['pipe'](v[_0x53e2c1(0x3a8)](this[_0x53e2c1(0x2b1)]),v[_0x53e2c1(0x3c5)](0x1),v[_0x53e2c1(0x39f)](void 0x0));}[_0x30e940(0x383)](_0x196461,_0x5c24ac,_0x5101c7=!0x1){const _0x3425ea=_0x30e940,_0x36b4ce=new URL(window[_0x3425ea(0x3de)][_0x3425ea(0xb8)]);_0x36b4ce[_0x3425ea(0x432)]['set'](_0x196461,_0x5c24ac),_0x5101c7?window['history'][_0x3425ea(0x175)]('','',_0x36b4ce[_0x3425ea(0x451)]()):window[_0x3425ea(0x263)][_0x3425ea(0x133)]('','',_0x36b4ce[_0x3425ea(0x451)]());}['removeParam'](_0x660f3e,_0x509a12=!0x1){const _0x10080e=_0x30e940,_0x18cd9e=new URL(window[_0x10080e(0x3de)][_0x10080e(0xb8)]);_0x18cd9e['searchParams'][_0x10080e(0x244)](_0x660f3e),_0x509a12?window[_0x10080e(0x263)][_0x10080e(0x175)]('','',_0x18cd9e['toString']()):window[_0x10080e(0x263)][_0x10080e(0x133)]('','',_0x18cd9e[_0x10080e(0x451)]());}[_0x30e940(0x3e3)](_0x34a851){const _0x15e0f2=_0x30e940;var _0x108d31;return(_0x108d31=new URL(window[_0x15e0f2(0x3de)][_0x15e0f2(0xb8)])[_0x15e0f2(0x432)][_0x15e0f2(0x1f0)](_0x34a851))!=null?_0x108d31:void 0x0;}}const Pe=_0x30e940(0x1e1),wi=_0x30e940(0x202),Mi=_0x30e940(0x1af),oe=0x6,yi=1.5,Ue=0x4,Ni=1.5,Li=_0x30e940(0x319);class ot{constructor(_0x404492,_0x3eec4f,_0x2fb599,_0x382c08){const _0x2c3c55=_0x30e940;u(this,'_shapes',[]),u(this,_0x2c3c55(0x15a),null),u(this,_0x2c3c55(0x1d6),null),u(this,_0x2c3c55(0xdc),null),u(this,_0x2c3c55(0x29b),null),u(this,_0x2c3c55(0x425),null),(this[_0x2c3c55(0x260)]=_0x404492,this[_0x2c3c55(0x1aa)]=_0x3eec4f,this['_docSkeleton']=_0x2fb599,this[_0x2c3c55(0x271)]=_0x382c08,this[_0x2c3c55(0x1eb)]());}set[_0x30e940(0x449)](_0x1b8b40){const _0x17be04=_0x30e940;_0x1b8b40?(this[_0x17be04(0xdc)]&&this[_0x17be04(0xdc)]['hide'](),this[_0x17be04(0x1d6)]&&this[_0x17be04(0x1d6)][_0x17be04(0x157)]()):(this[_0x17be04(0xdc)]&&this[_0x17be04(0xdc)][_0x17be04(0x157)](),this[_0x17be04(0x1d6)]&&this[_0x17be04(0x1d6)][_0x17be04(0xbe)]());}[_0x30e940(0xc6)](){const _0x580f56=_0x30e940;for(const _0x539016 of this[_0x580f56(0x3f5)])_0x539016[_0x580f56(0xc6)]();this['_textBubble']&&this['_textBubble'][_0x580f56(0xc6)](),this[_0x580f56(0xdc)]&&this['_anchorDot'][_0x580f56(0xc6)](),this['_anchor']&&this['_anchor'][_0x580f56(0xc6)](),this[_0x580f56(0x425)]&&this[_0x580f56(0x425)]();}[_0x30e940(0x1eb)](){const _0x591b04=_0x30e940;var _0x4c30d1;const {_docSkeleton:_0x34bd9d,_document:_0x2e9856}=this,{color:_0x3b8912,name:_0x19100f,ranges:_0x4b310c}=this[_0x591b04(0x260)],_0x39e92d=_0x2e9856[_0x591b04(0x1a3)](),{docsLeft:_0x3aff84,docsTop:_0x51096f}=_0x39e92d,_0x56d369=new b[(_0x591b04(0x2e4))](_0x39e92d,_0x34bd9d);for(const {startOffset:_0x4ff51f,endOffset:_0xe4780a,collapsed:_0x25eb3f,isActive:_0x44aa8a}of _0x4b310c){const _0x5236b2=_0x34bd9d['findNodePositionByCharIndex'](_0x4ff51f),_0x1398e8=_0x34bd9d[_0x591b04(0x464)](_0xe4780a);if(_0x44aa8a){const {contentBoxPointGroup:_0x91f45e}=_0x56d369[_0x591b04(0x3be)](_0x1398e8,_0x1398e8);if(_0x91f45e[_0x591b04(0x3b8)]===0x0)continue;this['_drawAnchor'](_0x3b8912,_0x91f45e,_0x3aff84,_0x51096f,_0x19100f),this[_0x591b04(0x425)]=this[_0x591b04(0x1cc)]();}if(!_0x25eb3f&&_0x5236b2&&_0x1398e8){if(b[_0x591b04(0x44d)](_0x5236b2,_0x1398e8)){const _0x4737a1=new b[(_0x591b04(0x232))](_0x39e92d,_0x34bd9d),{pointGroup:_0xc3db9c}=(_0x4c30d1=_0x4737a1['getRangePointData'](_0x5236b2,_0x1398e8))!=null?_0x4c30d1:{};if(_0xc3db9c==null||_0xc3db9c[_0x591b04(0x3b8)]===0x0)continue;this[_0x591b04(0x97)](_0x3b8912,_0xc3db9c,_0x3aff84,_0x51096f);}else{const {contentBoxPointGroup:_0x4bb93d}=_0x56d369[_0x591b04(0x3be)](_0x5236b2,_0x1398e8);if(_0x4bb93d[_0x591b04(0x3b8)]===0x0)continue;this['_drawTextRange'](_0x3b8912,_0x4bb93d,_0x3aff84,_0x51096f);}}}}[_0x30e940(0x1f1)](_0xabf337,_0xe3739c,_0x57dedf,_0x64aa3f,_0x1d1ca8){const _0x59b4d9=_0x30e940,_0x56093b=this[_0x59b4d9(0x267)](_0xe3739c),{left:_0x217da7,top:_0x4ce852,height:_0x20ca89}=_0x56093b,_0x3532a1=this[_0x59b4d9(0x2b3)](),_0x21a47b=Ni/_0x3532a1,_0x3c5c27=new b['Rect'](Pe+o[_0x59b4d9(0x235)][_0x59b4d9(0x108)](oe),{'left':_0x217da7+_0x57dedf-_0x21a47b,'top':_0x4ce852+_0x64aa3f,'height':_0x20ca89,'width':yi,'fill':_0xabf337||b[_0x59b4d9(0x14d)](o[_0x59b4d9(0x1e9)]['black'],0x0),'strokeWidth':_0x21a47b,'stroke':Li,'evented':!0x0});this[_0x59b4d9(0x15a)]=_0x3c5c27,this[_0x59b4d9(0x1aa)][_0x59b4d9(0x33f)](_0x3c5c27,b[_0x59b4d9(0xf5)]);const _0x13cb84=new b[(_0x59b4d9(0x88))](Pe+o[_0x59b4d9(0x235)][_0x59b4d9(0x108)](oe),{'left':_0x217da7+_0x57dedf-_0x21a47b,'top':_0x4ce852+_0x64aa3f-Ue/0x2,'height':Ue,'width':Ue,'fill':_0xabf337||b['getColor'](o[_0x59b4d9(0x1e9)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xabf337||b[_0x59b4d9(0x14d)](o[_0x59b4d9(0x1e9)]['black'],0x0),'evented':!0x1});this[_0x59b4d9(0xdc)]=_0x13cb84,this[_0x59b4d9(0x1aa)][_0x59b4d9(0x33f)](_0x13cb84,b[_0x59b4d9(0xf5)]);const _0x3fa108=new Ce(Pe+o[_0x59b4d9(0x235)][_0x59b4d9(0x108)](oe),{'left':_0x217da7+_0x57dedf-_0x21a47b,'top':_0x4ce852+_0x64aa3f-le,'text':_0x1d1ca8,'color':_0xabf337});this[_0x59b4d9(0x1d6)]=_0x3fa108,this[_0x59b4d9(0x1aa)][_0x59b4d9(0x33f)](_0x3fa108,b[_0x59b4d9(0xf5)]),this['_hover']=!0x1;}[_0x30e940(0x1cc)](){const _0x5afb35=_0x30e940,_0x4ff50b=this[_0x5afb35(0x15a)][_0x5afb35(0x2be)][_0x5afb35(0x246)](()=>{const _0x3534dd=_0x5afb35;this[_0x3534dd(0x449)]=!0x0;}),_0x4032d5=this[_0x5afb35(0x15a)][_0x5afb35(0x1b4)][_0x5afb35(0x246)](()=>{const _0x4d48b9=_0x5afb35;this['_hideTimer']&&clearTimeout(this[_0x4d48b9(0x29b)]),this['_hideTimer']=setTimeout(()=>{const _0x46e2f8=_0x4d48b9;this[_0x46e2f8(0x449)]=!0x1;},0x7d0);});return()=>{const _0x1fc95e=_0x5afb35;_0x4ff50b['unsubscribe'](),_0x4032d5[_0x1fc95e(0xe4)]();};}['_drawTextRange'](_0x2dffb8,_0x8eeb19,_0x1d5bb3,_0x2b05a0){const _0x20e1d9=_0x30e940,_0x1ce886=new o[(_0x20e1d9(0x90))](_0x2dffb8)[_0x20e1d9(0x39c)](0.2)[_0x20e1d9(0x45e)](),_0x57d6b0=new b[(_0x20e1d9(0x282))](wi+o['Tools']['generateRandomId'](oe),{'pointsGroup':_0x8eeb19,'fill':_0x1ce886||b[_0x20e1d9(0x14d)](o['COLORS'][_0x20e1d9(0x3b1)],0.2),'left':_0x1d5bb3,'top':_0x2b05a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20e1d9(0x3f5)]['push'](_0x57d6b0),this['_scene'][_0x20e1d9(0x33f)](_0x57d6b0,b['TEXT_RANGE_LAYER_INDEX']);}[_0x30e940(0x97)](_0x4d21b0,_0x434d3b,_0x19be6f,_0x1f55f9){const _0x393b7e=_0x30e940,_0x531be9=new o[(_0x393b7e(0x90))](_0x4d21b0)[_0x393b7e(0x39c)](0.2)[_0x393b7e(0x45e)](),_0x2ba23e=new b[(_0x393b7e(0x282))](Mi+o[_0x393b7e(0x235)][_0x393b7e(0x108)](oe),{'pointsGroup':_0x434d3b,'fill':_0x531be9||b[_0x393b7e(0x14d)](o[_0x393b7e(0x1e9)][_0x393b7e(0x3b1)],0.2),'left':_0x19be6f,'top':_0x1f55f9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x393b7e(0x3f5)][_0x393b7e(0x220)](_0x2ba23e),this[_0x393b7e(0x1aa)][_0x393b7e(0x33f)](_0x2ba23e,b[_0x393b7e(0xf5)]);}[_0x30e940(0x267)](_0x4922d4){const _0x557d7a=_0x4922d4[0x0],_0x186813=_0x557d7a[0x0],_0x4f17cb=_0x557d7a[0x2],{x:_0x2f6ce7,y:_0xe66c11}=_0x186813,{x:_0x3b825e,y:_0xb978e6}=_0x4f17cb;return{'left':_0x2f6ce7,'top':_0xe66c11,'width':_0x3b825e-_0x2f6ce7,'height':_0xb978e6-_0xe66c11};}[_0x30e940(0x2b3)](){const _0x232179=_0x30e940,{scaleX:_0xdb81b1,scaleY:_0x33fb88}=this[_0x232179(0x1aa)][_0x232179(0x320)]();return Math['max'](_0xdb81b1,_0x33fb88);}}var Ai=Object[_0x30e940(0x36c)],ji=Object[_0x30e940(0x1a2)],$i=(_0x28bdff,_0x2b829a,_0xbb1698,_0x261613)=>{const _0x316461=_0x30e940;for(var _0x2f54e4=_0x261613>0x1?void 0x0:_0x261613?ji(_0x2b829a,_0xbb1698):_0x2b829a,_0x558600=_0x28bdff[_0x316461(0x3b8)]-0x1,_0x185ef3;_0x558600>=0x0;_0x558600--)(_0x185ef3=_0x28bdff[_0x558600])&&(_0x2f54e4=(_0x261613?_0x185ef3(_0x2b829a,_0xbb1698,_0x2f54e4):_0x185ef3(_0x2f54e4))||_0x2f54e4);return _0x261613&&_0x2f54e4&&Ai(_0x2b829a,_0xbb1698,_0x2f54e4),_0x2f54e4;},_e=(_0x50fcb4,_0x22c560)=>(_0x2f836c,_0x1c556a)=>_0x22c560(_0x2f836c,_0x1c556a,_0x50fcb4);let de=class extends o[_0x30e940(0x1cf)]{constructor(_0x32f699,_0x2def5a,_0x5ecb12,_0x28eda2,_0xf3cb15){const _0x388a0e=_0x30e940;super(),u(this,_0x388a0e(0x1b6),[]),u(this,'_cursors',[]),(this[_0x388a0e(0x21f)]=_0x32f699,this[_0x388a0e(0x40f)]=_0x2def5a,this['_collabCursorController']=_0x5ecb12,this[_0x388a0e(0x176)]=_0x28eda2,this['_themeService']=_0xf3cb15,this[_0x388a0e(0x2eb)]());}[_0x30e940(0x2eb)](){const _0x21dc06=_0x30e940,_0x5424d8=this[_0x21dc06(0x21f)][_0x21dc06(0x424)],_0x5e6c0e=this[_0x21dc06(0x40f)];this[_0x21dc06(0x22c)](v[_0x21dc06(0x24b)]([this['_collabCursorController']['getCollabCursors$'](_0x5424d8),this[_0x21dc06(0x41a)]['currentTheme$']])['pipe'](E[_0x21dc06(0x120)](([_0x48d6c1,_0x194b34])=>({'skeleton':_0x5e6c0e[_0x21dc06(0x1d1)](),'cursors':[..._0x48d6c1[_0x21dc06(0x14e)]()][_0x21dc06(0x159)](_0xc51a40=>({..._0xc51a40,'color':_0x194b34[_0xc51a40[_0x21dc06(0x1ea)]]}))})))['subscribe'](_0x1daa32=>{const _0x4e6dac=_0x21dc06;if(this[_0x4e6dac(0x269)](),_0x1daa32){const {skeleton:_0x26712d,cursors:_0xadb778}=_0x1daa32;this['_updateCollabCursors'](_0x26712d,_0xadb778);}})),this['_initResize'](),this[_0x21dc06(0x3c7)]();}['_updateCollabCursors'](_0xa5c7a3,_0x2b4233){const _0x5e0b0d=_0x30e940,{scene:_0x4b58b5,mainComponent:_0x1791b7}=this['_context'],_0x23df7d=_0x2b4233[_0x5e0b0d(0x120)](_0x391dbe=>new ot(_0x391dbe,_0x4b58b5,_0xa5c7a3,_0x1791b7));this[_0x5e0b0d(0x1b6)]=_0x23df7d,this[_0x5e0b0d(0x3f8)]=_0x2b4233;}[_0x30e940(0x338)](){const _0xb74949=_0x30e940;this[_0xb74949(0x269)]();const {scene:_0x1a617a,mainComponent:_0x4ddaee}=this[_0xb74949(0x21f)],_0x3976d4=this[_0xb74949(0x40f)][_0xb74949(0x1d1)](),_0x5a3f0d=this[_0xb74949(0x3f8)][_0xb74949(0x120)](_0x8bea7e=>new ot(_0x8bea7e,_0x1a617a,_0x3976d4,_0x4ddaee));this['_cursorShapes']=_0x5a3f0d;}[_0x30e940(0x269)](){const _0x56f66b=_0x30e940;this[_0x56f66b(0x1b6)][_0x56f66b(0x277)](_0x404843=>_0x404843[_0x56f66b(0xc6)]()),this[_0x56f66b(0x1b6)]=[];}['_initCommandExecutedListener'](){const _0x3fcdc8=_0x30e940,_0x34fdab=[P[_0x3fcdc8(0x27a)]['id']];this[_0x3fcdc8(0x22c)](this[_0x3fcdc8(0x176)][_0x3fcdc8(0xd2)](_0x418f8c=>{const _0x29dba2=_0x3fcdc8;_0x34fdab[_0x29dba2(0x1e5)](_0x418f8c['id'])&&_0x418f8c[_0x29dba2(0x20b)][_0x29dba2(0x424)]===this[_0x29dba2(0x21f)][_0x29dba2(0x424)]&&this[_0x29dba2(0x338)]();}));}['_initResize'](){const _0x2fc3de=_0x30e940;this['disposeWithMe'](o[_0x2fc3de(0x2f9)](this['_context']['engine']['onTransformChange$'])[_0x2fc3de(0x2a9)](E[_0x2fc3de(0x20a)](_0x55c69d=>_0x55c69d[_0x2fc3de(0x312)]===b[_0x2fc3de(0x20f)][_0x2fc3de(0x41f)]),E[_0x2fc3de(0x3ba)](0x10))[_0x2fc3de(0x196)](()=>{const _0x4faa7e=_0x2fc3de;this[_0x4faa7e(0x338)]();}));}};de=$i([o['OnLifecycle'](o[_0x30e940(0x40e)]['Steady'],de),_e(0x1,o[_0x30e940(0xdf)](P[_0x30e940(0xd7)])),_e(0x2,o[_0x30e940(0xdf)](Z)),_e(0x3,o[_0x30e940(0x1c8)]),_e(0x4,o[_0x30e940(0xdf)](o[_0x30e940(0xf3)]))],de);var xi=Object[_0x30e940(0x36c)],Hi=Object[_0x30e940(0x1a2)],ki=(_0x579e87,_0xbe6e9a,_0x5cdc85,_0x3a441a)=>{const _0xeda87b=_0x30e940;for(var _0x1643dd=_0x3a441a>0x1?void 0x0:_0x3a441a?Hi(_0xbe6e9a,_0x5cdc85):_0xbe6e9a,_0x25f4d0=_0x579e87[_0xeda87b(0x3b8)]-0x1,_0x309089;_0x25f4d0>=0x0;_0x25f4d0--)(_0x309089=_0x579e87[_0x25f4d0])&&(_0x1643dd=(_0x3a441a?_0x309089(_0xbe6e9a,_0x5cdc85,_0x1643dd):_0x309089(_0x1643dd))||_0x1643dd);return _0x3a441a&&_0x1643dd&&xi(_0xbe6e9a,_0x5cdc85,_0x1643dd),_0x1643dd;},we=(_0x38ea33,_0x43831c)=>(_0x59e2af,_0x47013b)=>_0x43831c(_0x59e2af,_0x47013b,_0x38ea33);let Ie=class{constructor(_0x2b6874,_0x3d421f,_0xbec2b){const _0x1a1f12=_0x30e940;this[_0x1a1f12(0x160)]=_0x2b6874,this[_0x1a1f12(0x19a)]=_0x3d421f,this[_0x1a1f12(0x44b)]=_0xbec2b,this[_0x1a1f12(0x30e)]();}[_0x30e940(0x30e)](){const _0x359960=_0x30e940;this[_0x359960(0x19a)][_0x359960(0x1d2)]({'priority':0x1,'interceptor':(_0x50d65d,_0x1b1b50)=>_0x1b1b50(_0x50d65d)[_0x359960(0x2a9)](v[_0x359960(0xd9)](async _0x277973=>{const _0x6f3359=_0x359960,_0x267c2e=_0x277973;if(_0x267c2e[_0x6f3359(0x1de)]===0x191&&window[_0x6f3359(0x193)](this[_0x6f3359(0x44b)]['t'](_0x6f3359(0xcc)))){const _0x24ed0f=window[_0x6f3359(0xe0)](window[_0x6f3359(0x3de)][_0x6f3359(0xb8)]);window[_0x6f3359(0x3de)][_0x6f3359(0xb8)]=this[_0x6f3359(0x247)]()+_0x6f3359(0x167)+_0x24ed0f;}return _0x267c2e;}))});}[_0x30e940(0x247)](){const _0x5f4db0=_0x30e940;var _0x3f9635;return(_0x3f9635=this[_0x5f4db0(0x160)][_0x5f4db0(0xfc)](mt))!=null?_0x3f9635:Zt;}};Ie=ki([we(0x0,o[_0x30e940(0x306)]),we(0x1,o[_0x30e940(0xdf)](U['HTTPService'])),we(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)]))],Ie);var Bi=Object[_0x30e940(0x36c)],Vi=Object[_0x30e940(0x1a2)],Wi=(_0x26ce9d,_0x1773ce,_0x5de267,_0x4b986b)=>{const _0x3bf628=_0x30e940;for(var _0x2c1b32=_0x4b986b>0x1?void 0x0:_0x4b986b?Vi(_0x1773ce,_0x5de267):_0x1773ce,_0x3c680a=_0x26ce9d[_0x3bf628(0x3b8)]-0x1,_0x1cff10;_0x3c680a>=0x0;_0x3c680a--)(_0x1cff10=_0x26ce9d[_0x3c680a])&&(_0x2c1b32=(_0x4b986b?_0x1cff10(_0x1773ce,_0x5de267,_0x2c1b32):_0x1cff10(_0x2c1b32))||_0x2c1b32);return _0x4b986b&&_0x2c1b32&&Bi(_0x1773ce,_0x5de267,_0x2c1b32),_0x2c1b32;},at=(_0x31d631,_0x12b22b)=>(_0x915da4,_0x731cfc)=>_0x12b22b(_0x915da4,_0x731cfc,_0x31d631);const Mt=_0x30e940(0x301),Fi='/universer-api/authz';exports[_0x30e940(0x40b)]=class extends o[_0x30e940(0x3c3)]{constructor(_0x4bf0ab,_0x515cd0){const _0x220e29=_0x30e940;super(),this['_HTTPService']=_0x4bf0ab,this['_configService']=_0x515cd0,this[_0x220e29(0x3fb)]();}[_0x30e940(0x3fb)](){const _0x33ca5d=_0x30e940,_0x158903=this;this[_0x33ca5d(0x22c)](this['_HTTPService'][_0x33ca5d(0x1d2)]({'priority':0x3e7,'interceptor':U['MergeInterceptorFactory']({'isMatch'(_0x817a88){const _0x256525=_0x33ca5d;var _0x8501f0;if(_0x817a88[_0x256525(0x3bb)]==='POST'&&((_0x8501f0=_0x817a88[_0x256525(0x1bc)])!=null&&_0x8501f0['body'])){const {objectID:_0x247dbd,objectType:_0x31b752}=_0x817a88[_0x256525(0x1bc)][_0x256525(0x3db)]||{};if(!_0x247dbd||_0x31b752===void 0x0)return!0x1;const _0x3a5ff4=_0x158903[_0x256525(0x1ce)]()+'/'+_0x31b752+_0x256525(0x363)+_0x247dbd+'/allowed';if(_0x817a88[_0x256525(0x169)]===_0x3a5ff4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4d8052){const _0x57e71f=_0x33ca5d;var _0x5918c4;return(_0x5918c4=_0x4d8052[_0x57e71f(0x1bc)])==null?void 0x0:_0x5918c4[_0x57e71f(0x3db)];},'mergeParamsToRequest'(_0x5f10f9,_0x2ca4bb){const _0x303bec=_0x33ca5d,_0x53c7f4=_0x158903[_0x303bec(0x1ce)]()+_0x303bec(0x43e),_0x3d7e0d=_0x5f10f9[_0x303bec(0x29d)]((_0x38a3a7,_0x26314e)=>{const {unitID:_0x1595ce,objectID:_0x307676,objectType:_0x35dc5c,actions:_0xd97638}=_0x26314e;return _0x38a3a7[_0x1595ce]||(_0x38a3a7[_0x1595ce]={}),_0x38a3a7[_0x1595ce][_0x307676]||(_0x38a3a7[_0x1595ce][_0x307676]={'objectID':_0x307676,'objectType':_0x35dc5c,'actions':[]}),_0x38a3a7[_0x1595ce][_0x307676]['actions']['push'](..._0xd97638),_0x38a3a7;},{}),_0x31a79c=[];for(const _0x2dde98 in _0x3d7e0d)for(const _0x323f76 in _0x3d7e0d[_0x2dde98]){const {actions:_0x486327,objectType:_0x4f99e9}=_0x3d7e0d[_0x2dde98][_0x323f76],_0x34423a=[...new Set(_0x486327)];_0x31a79c[_0x303bec(0x220)]({'unitID':_0x2dde98,'objectID':_0x323f76,'objectType':_0x4f99e9,'actions':_0x34423a});}return new U[(_0x303bec(0x40d))](_0x303bec(0x177),_0x53c7f4,{'headers':_0x2ca4bb[_0x303bec(0x43d)],'withCredentials':_0x2ca4bb[_0x303bec(0x17c)],'responseType':_0x2ca4bb[_0x303bec(0x3a1)],'body':{'requests':_0x31a79c}});}},{'distributeResult'(_0x4b37bf,_0x525878){const _0x365952=_0x33ca5d,{objectActions:_0x3b140b}=_0x4b37bf;return _0x525878[_0x365952(0x120)](_0x384086=>{const _0x1c93d6=_0x365952,{unitID:_0x240c9a,objectID:_0x3a488a,actions:_0x55f8c3}=_0x384086,_0x10eb60=_0x3b140b[_0x1c93d6(0x32e)](_0x530c27=>_0x530c27[_0x1c93d6(0x1e6)]===_0x240c9a&&_0x530c27[_0x1c93d6(0x150)]===_0x3a488a),_0x5b4802=_0x55f8c3[_0x1c93d6(0x120)](_0x1a9e96=>_0x10eb60==null?void 0x0:_0x10eb60[_0x1c93d6(0x256)][_0x1c93d6(0x32e)](_0x33f0ee=>_0x33f0ee[_0x1c93d6(0x1b0)]===_0x1a9e96))['filter'](_0x263d3e=>!!_0x263d3e);return{'config':_0x384086,'result':{'actions':_0x5b4802,'error':_0x4b37bf['error']}};});}})}));}[_0x30e940(0x1ce)](){const _0x109b33=_0x30e940;var _0x4c32f4;return(_0x4c32f4=this[_0x109b33(0x160)][_0x109b33(0xfc)](Mt))!=null?_0x4c32f4:Fi;}async[_0x30e940(0xab)](_0x49426d){const _0x5f343b=_0x30e940,_0x314803=this[_0x5f343b(0x1ce)]()+'/'+_0x49426d[_0x5f343b(0x3e4)]+_0x5f343b(0x251);return(await this[_0x5f343b(0x122)][_0x5f343b(0x35c)](_0x314803,{'body':_0x49426d}))[_0x5f343b(0x3db)][_0x5f343b(0x150)]||'';}async[_0x30e940(0x1ec)](_0x45d607){const _0x58cc5a=_0x30e940,_0x48a32e=this[_0x58cc5a(0x1ce)]()+_0x58cc5a(0x397);return(await this[_0x58cc5a(0x122)][_0x58cc5a(0x35c)](_0x48a32e,{'body':_0x45d607}))[_0x58cc5a(0x3db)][_0x58cc5a(0x402)];}async[_0x30e940(0x2c8)](_0x59012e){const _0x20d856=_0x30e940,_0xd477ca=this[_0x20d856(0x1ce)]()+'/'+_0x59012e['objectType']+'/object/'+_0x59012e[_0x20d856(0x150)];await this[_0x20d856(0x122)]['put'](_0xd477ca,{'body':_0x59012e});}async[_0x30e940(0x11e)](_0x26cfb9){const _0x419856=_0x30e940,_0x2a9443=this[_0x419856(0x1ce)]()+'/'+_0x26cfb9['objectType']+_0x419856(0x363)+_0x26cfb9[_0x419856(0x150)]+'/allowed';return(await this[_0x419856(0x122)][_0x419856(0x35c)](_0x2a9443,{'body':_0x26cfb9}))['body'][_0x419856(0x256)];}async[_0x30e940(0x116)](_0x19924e){const _0x47e16c=_0x30e940,_0x372ec0=this[_0x47e16c(0x1ce)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService']['post'](_0x372ec0,{'body':{'requests':_0x19924e}}))[_0x47e16c(0x3db)][_0x47e16c(0x349)];}async[_0x30e940(0x2b6)](_0x377a05){const _0x5c5a92=_0x30e940,_0x10b1e7=this[_0x5c5a92(0x1ce)]()+'/'+_0x377a05[_0x5c5a92(0x3e4)]+'/role',_0x229b96=await this[_0x5c5a92(0x122)]['post'](_0x10b1e7,{'body':_0x377a05});return{'roles':_0x229b96[_0x5c5a92(0x3db)]['roles'],'actions':_0x229b96[_0x5c5a92(0x3db)]['actions']};}async[_0x30e940(0x31e)](_0x49cf5b){const _0x535a6c=_0x30e940,_0x36cea1=this[_0x535a6c(0x1ce)]()+_0x535a6c(0x1bd);await this['_HTTPService'][_0x535a6c(0x244)](_0x36cea1,{'params':{'collaboratorID':_0x49cf5b[_0x535a6c(0x17b)],'objectID':_0x49cf5b[_0x535a6c(0x150)],'unitID':_0x49cf5b['unitID']}});}async[_0x30e940(0x2e2)](_0x4f78bf){const _0x48c196=_0x30e940,_0x6b2c65=this[_0x48c196(0x1ce)]()+_0x48c196(0x1bd);await this[_0x48c196(0x122)][_0x48c196(0x1cb)](_0x6b2c65,{'body':_0x4f78bf});}async['createCollaborator'](_0x14ef2b){const _0x5ee571=_0x30e940,_0x77c52b=this['_getAPIPrefixPath']()+_0x5ee571(0x1bd);await this[_0x5ee571(0x122)]['post'](_0x77c52b,{'body':_0x14ef2b});}async['listCollaborators'](_0x3bd1da){const _0x499fd=_0x30e940,_0x3b49ec=this[_0x499fd(0x1ce)]()+_0x499fd(0x1bd);return(await this[_0x499fd(0x122)][_0x499fd(0x1f0)](_0x3b49ec,{'params':{'objectID':_0x3bd1da[_0x499fd(0x150)],'unitID':_0x3bd1da['unitID']}}))[_0x499fd(0x3db)][_0x499fd(0x3d5)];}async['putCollaborators'](_0x3f3802){const _0x53411c=_0x30e940,_0x2f4ec1=this['_getAPIPrefixPath']()+_0x53411c(0x1bd);await this['_HTTPService'][_0x53411c(0x2e6)](_0x2f4ec1,{'body':_0x3f3802});}},exports[_0x30e940(0x40b)]=Wi([at(0x0,o[_0x30e940(0xdf)](U[_0x30e940(0x181)])),at(0x1,o[_0x30e940(0xdf)](o[_0x30e940(0x306)]))],exports[_0x30e940(0x40b)]);var Gi=Object[_0x30e940(0x36c)],Yi=Object[_0x30e940(0x1a2)],Ki=(_0x439cd4,_0x4770b0,_0x537016,_0x16ff2f)=>{const _0x12ccc0=_0x30e940;for(var _0x41b9c8=_0x16ff2f>0x1?void 0x0:_0x16ff2f?Yi(_0x4770b0,_0x537016):_0x4770b0,_0x3b65fc=_0x439cd4[_0x12ccc0(0x3b8)]-0x1,_0x10a2be;_0x3b65fc>=0x0;_0x3b65fc--)(_0x10a2be=_0x439cd4[_0x3b65fc])&&(_0x41b9c8=(_0x16ff2f?_0x10a2be(_0x4770b0,_0x537016,_0x41b9c8):_0x10a2be(_0x41b9c8))||_0x41b9c8);return _0x16ff2f&&_0x41b9c8&&Gi(_0x4770b0,_0x537016,_0x41b9c8),_0x41b9c8;},Me=(_0x5efd63,_0x28148e)=>(_0x2fb968,_0x1fa9ea)=>_0x28148e(_0x2fb968,_0x1fa9ea,_0x5efd63);const Xi=[_0x30e940(0xad),_0x30e940(0x206),_0x30e940(0x3ee),_0x30e940(0xf4),_0x30e940(0x39d)],qi=0x5*0x400*0x400,zi=_0x30e940(0x2cd),Ji=_0x30e940(0x3d8),Zi=_0x30e940(0x128),Qi='/universer-api/file/{fileID}/sign-url';exports['ImageIoService']=class{constructor(_0x515f89,_0x4041d7,_0xdcddc8){const _0x4e0ea8=_0x30e940;u(this,_0x4e0ea8(0xa2),0x0),u(this,_0x4e0ea8(0x1b9),new v[(_0x4e0ea8(0x457))]()),u(this,_0x4e0ea8(0x38b),this[_0x4e0ea8(0x1b9)]),u(this,_0x4e0ea8(0xc0),new Map()),(this[_0x4e0ea8(0x19a)]=_0x515f89,this[_0x4e0ea8(0x160)]=_0x4041d7,this['_univerInstanceService']=_0xdcddc8);}['setWaitCount'](_0x54366c){const _0x2cd80a=_0x30e940;this[_0x2cd80a(0xa2)]=_0x54366c,this['_change$'][_0x2cd80a(0x46e)](_0x54366c);}[_0x30e940(0x2e7)](_0x193c5c,_0x1e3714){const _0x53c098=_0x30e940;if(_0x1e3714===A[_0x53c098(0x1c5)][_0x53c098(0x1ca)]){const _0x198f94=new Image();return _0x198f94[_0x53c098(0x321)]=_0x193c5c,_0x198f94;}return this[_0x53c098(0xc0)][_0x53c098(0x1f0)](_0x193c5c);}[_0x30e940(0x3cc)](_0x2a5944,_0x161982,_0xc4bd49){const _0x45b334=_0x30e940;_0x161982===A[_0x45b334(0x1c5)][_0x45b334(0x1ca)]||_0xc4bd49==null||this['_imageSourceCache'][_0x45b334(0x346)](_0x2a5944,_0xc4bd49);}async[_0x30e940(0x368)](_0x2e057b){const _0x1d1515=_0x30e940;try{const _0x586d03=this[_0x1d1515(0x1bb)](this[_0x1d1515(0x109)](),''+_0x2e057b),_0x451578=(await this[_0x1d1515(0x19a)][_0x1d1515(0x1f0)](_0x586d03))[_0x1d1515(0x3db)];return _0x451578[_0x1d1515(0xf0)]&&_0x451578[_0x1d1515(0xf0)][_0x1d1515(0x161)]===gt['OK']?Promise[_0x1d1515(0xb5)](_0x451578['url']):Promise[_0x1d1515(0x406)](_0x451578[_0x1d1515(0xf0)]);}catch(_0x1684f7){return Promise[_0x1d1515(0x406)](_0x1684f7);}}async[_0x30e940(0x467)](_0x31f061){const _0x5f540f=_0x30e940;let _0xbb56c='';if(!Xi[_0x5f540f(0x1e5)](_0x31f061[_0x5f540f(0x312)]))return this[_0x5f540f(0x170)](),Promise[_0x5f540f(0x406)](new Error(A['ImageUploadStatusType'][_0x5f540f(0x38f)]));if(_0x31f061[_0x5f540f(0x2f3)]>qi)return this[_0x5f540f(0x170)](),Promise['reject'](new Error(A[_0x5f540f(0x178)][_0x5f540f(0x10e)]));try{const _0x337a38=new FormData();_0x337a38[_0x5f540f(0x259)](_0x5f540f(0x8b),_0x31f061);const _0x33063b=this[_0x5f540f(0x43f)][_0x5f540f(0x469)](),_0x381e77=_0x33063b==null?void 0x0:_0x33063b[_0x5f540f(0x280)]();if(!_0x381e77)throw new Error('unitId\x20is\x20not\x20found');const _0x130797=this['_getUploadFileURL']()+_0x5f540f(0x1d5)+_0x31f061['size'][_0x5f540f(0x451)]()+_0x5f540f(0xee)+ft[_0x5f540f(0x2bf)]+_0x5f540f(0x1ac)+encodeURIComponent(_0x381e77),_0x1f47d2=await(await fetch(_0x130797,{'method':_0x5f540f(0x177),'body':_0x337a38}))[_0x5f540f(0x354)]();if(typeof _0x1f47d2['FileId']!=_0x5f540f(0x1d3))return this[_0x5f540f(0x170)](),Promise[_0x5f540f(0x406)](new Error(A[_0x5f540f(0x178)][_0x5f540f(0x35b)]));_0xbb56c=_0x1f47d2['FileId'];}catch{return this[_0x5f540f(0x170)](),Promise['reject'](new Error(A['ImageUploadStatusType'][_0x5f540f(0x35b)]));}return new Promise((_0xc0e88b,_0x2b93ca)=>{const _0x5672f1=_0x5f540f,_0x7ff4da=new FileReader();_0x7ff4da[_0x5672f1(0x45d)](_0x31f061),_0x7ff4da['onload']=_0x55bf13=>{const _0x4f1bee=_0x5672f1;var _0x5f9122;const _0x412d4c=(_0x5f9122=_0x55bf13[_0x4f1bee(0x15f)])==null?void 0x0:_0x5f9122['result'];if(_0x412d4c==null){this[_0x4f1bee(0x170)](),_0x2b93ca(new Error(A['ImageUploadStatusType']['ERROR_IMAGE']));return;}const _0x58a808=o[_0x4f1bee(0x235)][_0x4f1bee(0x108)](0x6);_0xc0e88b({'imageId':_0x58a808,'imageSourceType':A[_0x4f1bee(0x1c5)]['UUID'],'source':_0xbb56c,'base64Cache':_0x412d4c,'status':A['ImageUploadStatusType'][_0x4f1bee(0x22b)]}),this[_0x4f1bee(0x170)]();};});}[_0x30e940(0x33c)](){const _0x1ef51a=_0x30e940;var _0x43c45b;return(_0x43c45b=this['_configService'][_0x1ef51a(0xfc)](zi))!=null?_0x43c45b:Ji;}[_0x30e940(0x109)](){const _0x371a6f=_0x30e940;var _0x40f3dc;return(_0x40f3dc=this[_0x371a6f(0x160)][_0x371a6f(0xfc)](Zi))!=null?_0x40f3dc:Qi;}['_replaceFileID'](_0x5f0c93,_0x3f69a7){const _0x3b449e=_0x30e940;return _0x5f0c93['replace'](_0x3b449e(0x2ef),_0x3f69a7);}[_0x30e940(0x170)](){const _0x3f2868=_0x30e940;this[_0x3f2868(0xa2)]-=0x1,this[_0x3f2868(0x1b9)][_0x3f2868(0x46e)](this[_0x3f2868(0xa2)]);}},exports[_0x30e940(0x18d)]=Ki([Me(0x0,o[_0x30e940(0xdf)](U['HTTPService'])),Me(0x1,o['IConfigService']),Me(0x2,o[_0x30e940(0xdf)](o[_0x30e940(0x233)]))],exports[_0x30e940(0x18d)]);var en=Object[_0x30e940(0x36c)],tn=Object[_0x30e940(0x1a2)],sn=(_0x34e902,_0x2b15ba,_0x4cd29d,_0xcf9fd6)=>{for(var _0x9a6bf4=_0xcf9fd6>0x1?void 0x0:_0xcf9fd6?tn(_0x2b15ba,_0x4cd29d):_0x2b15ba,_0x526820=_0x34e902['length']-0x1,_0x592ec2;_0x526820>=0x0;_0x526820--)(_0x592ec2=_0x34e902[_0x526820])&&(_0x9a6bf4=(_0xcf9fd6?_0x592ec2(_0x2b15ba,_0x4cd29d,_0x9a6bf4):_0x592ec2(_0x9a6bf4))||_0x9a6bf4);return _0xcf9fd6&&_0x9a6bf4&&en(_0x2b15ba,_0x4cd29d,_0x9a6bf4),_0x9a6bf4;},ae=(_0x2bc5c8,_0x267ee3)=>(_0x4e1950,_0x5cd71a)=>_0x267ee3(_0x4e1950,_0x5cd71a,_0x2bc5c8);let Se=class extends o[_0x30e940(0x1cf)]{constructor(_0x8f3b4f,_0x435828,_0x26464d,_0x24b30e,_0x4d607b){const _0x1f18e0=_0x30e940;super(),this[_0x1f18e0(0x137)]=_0x8f3b4f,this[_0x1f18e0(0x43f)]=_0x435828,this[_0x1f18e0(0x153)]=_0x26464d,this[_0x1f18e0(0x393)]=_0x24b30e,this[_0x1f18e0(0x45b)]=_0x4d607b,this[_0x1f18e0(0x1ba)](),this[_0x1f18e0(0x2d4)]();}[_0x30e940(0x2d4)](){const _0x258e75=_0x30e940,_0x42b58d=async _0x56137e=>{const _0x4e04fd=_0x3b20;(await this[_0x4e04fd(0x393)][_0x4e04fd(0x470)](_0x56137e))[_0x4e04fd(0x199)][_0x4e04fd(0x2a9)](E['filter'](_0xd176df=>_0xd176df[_0x4e04fd(0x15d)]===_['CollaborationEvent'][_0x4e04fd(0xd1)]),E[_0x4e04fd(0x3a8)](this[_0x4e04fd(0x2b1)]))[_0x4e04fd(0x196)](_0x384b05=>{const _0x1a711c=_0x4e04fd,_0x2094a8=_0x384b05,{reason:_0x58f6d4}=_0x2094a8[_0x1a711c(0x10a)];this[_0x1a711c(0x137)][_0x1a711c(0x1f0)](L[_0x1a711c(0x3d3)])[_0x1a711c(0x157)]({'type':Q[_0x1a711c(0x187)]['Error'],'content':this[_0x1a711c(0x45b)]['t'](_0x1a711c(0x326))+'('+_0x58f6d4+')'}),this[_0x1a711c(0x153)][_0x1a711c(0x289)](new p[(_0x1a711c(0x458))](_0x56137e)['id'],!0x1),this[_0x1a711c(0x393)][_0x1a711c(0x2c4)](_0x56137e);});};v[_0x258e75(0xbd)](this[_0x258e75(0x43f)][_0x258e75(0xc5)](o['UniverInstanceType'][_0x258e75(0x390)]),this[_0x258e75(0x43f)]['getTypeOfUnitAdded$'](o[_0x258e75(0x37c)]['UNIVER_DOC']))[_0x258e75(0x2a9)](E[_0x258e75(0x120)](_0xce947e=>_0xce947e[_0x258e75(0x280)]()),E['filter'](_0x79e230=>!o['isInternalEditorID'](_0x79e230)),E[_0x258e75(0x3a8)](this[_0x258e75(0x2b1)]))[_0x258e75(0x196)](_0xd68bd1=>{_0x42b58d(_0xd68bd1);});}[_0x30e940(0x1ba)](){const _0x3ead4a=_0x30e940,_0x35048e=async _0x46b175=>{const _0xe8a9ee=_0x3b20;(await this[_0xe8a9ee(0x393)]['requireSession'](_0x46b175))[_0xe8a9ee(0x199)][_0xe8a9ee(0x2a9)](E[_0xe8a9ee(0x20a)](_0x27f0fa=>_0x27f0fa['eventID']===_['CollaborationEvent'][_0xe8a9ee(0x1a6)]),E[_0xe8a9ee(0x3a8)](this[_0xe8a9ee(0x2b1)]))[_0xe8a9ee(0x196)](_0x3b90c6=>{const _0xdf8bbb=_0xe8a9ee,_0x268f35=_0x3b90c6,{objectId:_0x5b1198}=_0x268f35[_0xdf8bbb(0x10a)],_0x47d307=this['_injector'][_0xdf8bbb(0x1f0)](J[_0xdf8bbb(0x221)]);_0x5b1198===_0x46b175?_0x47d307['initWorkbookPermissionChange'](_0x46b175):_0x47d307[_0xdf8bbb(0x149)](_0x46b175,_0x5b1198);});};v['merge'](this[_0x3ead4a(0x43f)][_0x3ead4a(0xc5)](o[_0x3ead4a(0x37c)]['UNIVER_SHEET']),this[_0x3ead4a(0x43f)][_0x3ead4a(0xc5)](o['UniverInstanceType']['UNIVER_DOC']))['pipe'](E[_0x3ead4a(0x120)](_0x21274b=>_0x21274b['getUnitId']()),E[_0x3ead4a(0x20a)](_0xe96b4d=>!o[_0x3ead4a(0x10b)](_0xe96b4d)),E['takeUntil'](this[_0x3ead4a(0x2b1)]))[_0x3ead4a(0x196)](_0x2755c9=>{_0x35048e(_0x2755c9);});}};Se=sn([o[_0x30e940(0x1e8)](o[_0x30e940(0x40e)][_0x30e940(0x245)],Se),ae(0x0,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)])),ae(0x1,o[_0x30e940(0x233)]),ae(0x2,o[_0x30e940(0x3b7)]),ae(0x3,o['Inject'](exports[_0x30e940(0x373)])),ae(0x4,o[_0x30e940(0xdf)](o[_0x30e940(0xfe)]))],Se);var yt=Object[_0x30e940(0x36c)],nn=Object[_0x30e940(0x1a2)],rn=(_0x3864ca,_0x57d579,_0x57ff29)=>_0x57d579 in _0x3864ca?yt(_0x3864ca,_0x57d579,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57ff29}):_0x3864ca[_0x57d579]=_0x57ff29,on=(_0x3b4f17,_0x25353f,_0x4f51c7,_0x295861)=>{const _0x565c77=_0x30e940;for(var _0xe1f273=_0x295861>0x1?void 0x0:_0x295861?nn(_0x25353f,_0x4f51c7):_0x25353f,_0x41601c=_0x3b4f17[_0x565c77(0x3b8)]-0x1,_0x29a4f2;_0x41601c>=0x0;_0x41601c--)(_0x29a4f2=_0x3b4f17[_0x41601c])&&(_0xe1f273=(_0x295861?_0x29a4f2(_0x25353f,_0x4f51c7,_0xe1f273):_0x29a4f2(_0xe1f273))||_0xe1f273);return _0x295861&&_0xe1f273&&yt(_0x25353f,_0x4f51c7,_0xe1f273),_0xe1f273;},ye=(_0x37fbb5,_0x126231)=>(_0x282a38,_0x34fa29)=>_0x126231(_0x282a38,_0x34fa29,_0x37fbb5),an=(_0x435b9e,_0x22e60b,_0x2e0123)=>rn(_0x435b9e,_0x22e60b+'',_0x2e0123);const cn=_0x30e940(0xd6);exports[_0x30e940(0x3c6)]=class extends o[_0x30e940(0x14a)]{constructor(_0x433a8e,_0x4d48b1,_0x23f97b,_0x458fcb){const _0x3685ae=_0x30e940;super(),this[_0x3685ae(0x428)]=_0x433a8e,this['_logService']=_0x4d48b1,this['_renderManagerService']=_0x23f97b,this['_injector']=_0x458fcb;}[_0x30e940(0x104)](){const _0x5b9390=_0x30e940;this[_0x5b9390(0x394)]();}[_0x30e940(0x376)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x10f36f=_0x30e940;var _0x279a06,_0x3c44ee,_0x4a5768,_0x45fc7f;this[_0x10f36f(0x137)][_0x10f36f(0x45c)](o[_0x10f36f(0x17f)])&&this['_logService'][_0x10f36f(0xf0)](_0x10f36f(0x3c9),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0xc2e3fa=[[o[_0x10f36f(0x17f)],{'useClass':$e}],[exports[_0x10f36f(0x373)]],[Fe],[U['HTTPService']],[Ye,{'useClass':wt}],[Y],[exports[_0x10f36f(0x227)]],[U[_0x10f36f(0x350)]],[ge],[me],[ve],[We],[Ie],[Ve],[Se],[Be,{'useClass':(_0x3c44ee=(_0x279a06=this['_config'])==null?void 0x0:_0x279a06[_0x10f36f(0xb4)])!=null?_0x3c44ee:exports['CollaborationSocketService']}],[U['IHTTPImplementation'],{'useClass':U[_0x10f36f(0xda)]}],[_[_0x10f36f(0x237)],{'useClass':exports[_0x10f36f(0x41c)]}],[o[_0x10f36f(0xa3)],{'useClass':exports[_0x10f36f(0x40b)]}],[A[_0x10f36f(0x3b5)],{'useClass':exports[_0x10f36f(0x18d)]}],[exports['CollaborationController']],[exports[_0x10f36f(0x385)]],[exports[_0x10f36f(0x18b)]],[ue],[Z]];(_0x4a5768=this[_0x10f36f(0x428)])!=null&&_0x4a5768[_0x10f36f(0x352)]&&_0xc2e3fa[_0x10f36f(0x220)]([pe,{'useClass':us}]),_0xc2e3fa=o[_0x10f36f(0x13b)](_0xc2e3fa,(_0x45fc7f=this[_0x10f36f(0x428)])==null?void 0x0:_0x45fc7f[_0x10f36f(0x127)]),_0xc2e3fa[_0x10f36f(0x277)](_0x5660db=>this[_0x10f36f(0x137)]['add'](_0x5660db)),this[_0x10f36f(0x10d)]();}[_0x30e940(0x9f)](){const _0x4e1384=_0x30e940;this[_0x4e1384(0x22c)](this[_0x4e1384(0x115)][_0x4e1384(0x265)](o['UniverInstanceType'][_0x4e1384(0x1f4)],[de])),this[_0x4e1384(0x22c)](this[_0x4e1384(0x115)][_0x4e1384(0x265)](o[_0x4e1384(0x37c)][_0x4e1384(0x390)],[je]));}['_initModules'](){const _0x131102=_0x30e940;var _0x28554b,_0x35f55c;this['_injector']['get'](U[_0x131102(0x181)])[_0x131102(0x1d2)]({'priority':0x14,'interceptor':U[_0x131102(0x24e)]({'maxParallel':0x6})}),(_0x28554b=this[_0x131102(0x428)])!=null&&_0x28554b[_0x131102(0x1a9)]||this['_injector'][_0x131102(0x1f0)](exports[_0x131102(0x227)])[_0x131102(0x422)](),(_0x35f55c=this[_0x131102(0x428)])!=null&&_0x35f55c[_0x131102(0x26e)]&&this[_0x131102(0x137)][_0x131102(0x1f0)](Ie);}},an(exports[_0x30e940(0x3c6)],_0x30e940(0x10f),cn),exports['UniverCollaborationClientPlugin']=on([o[_0x30e940(0x25d)](_['UniverCollaborationPlugin']),ye(0x1,o[_0x30e940(0x1e7)]),ye(0x2,b[_0x30e940(0x1f2)]),ye(0x3,o[_0x30e940(0xdf)](o[_0x30e940(0xc4)]))],exports[_0x30e940(0x3c6)]),exports[_0x30e940(0x301)]=Mt,exports[_0x30e940(0x219)]=vt,exports[_0x30e940(0x3b9)]=_t,exports[_0x30e940(0x386)]=D,exports[_0x30e940(0x2fc)]=Ut,exports[_0x30e940(0x172)]=Ve,exports[_0x30e940(0x107)]=ut,exports[_0x30e940(0x408)]=He,exports[_0x30e940(0x203)]=Be,exports[_0x30e940(0x401)]=Ye,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports['LOGIN_URL_KEY']=mt,exports[_0x30e940(0x2de)]=ht,exports[_0x30e940(0x162)]=ct,exports[_0x30e940(0x36e)]=lt,exports[_0x30e940(0x16c)]=G,exports[_0x30e940(0x250)]=Rt,exports[_0x30e940(0x342)]=wt,exports[_0x30e940(0x414)]=It,exports[_0x30e940(0x32a)]=pt;