@univerjs-pro/collaboration-client 0.4.0-nightly.202410131605 → 0.4.0-nightly.202410141606

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 _0x945337=_0x38f3;(function(_0xa48716,_0x1119e9){const _0x7353fd=_0x38f3,_0x137d20=_0xa48716();while(!![]){try{const _0xc56291=parseInt(_0x7353fd(0x560))/0x1+parseInt(_0x7353fd(0x364))/0x2+-parseInt(_0x7353fd(0x192))/0x3+parseInt(_0x7353fd(0x17b))/0x4*(-parseInt(_0x7353fd(0x2b0))/0x5)+-parseInt(_0x7353fd(0x461))/0x6+parseInt(_0x7353fd(0x3ec))/0x7+parseInt(_0x7353fd(0x1c5))/0x8*(-parseInt(_0x7353fd(0x185))/0x9);if(_0xc56291===_0x1119e9)break;else _0x137d20['push'](_0x137d20['shift']());}catch(_0x2a6b6d){_0x137d20['push'](_0x137d20['shift']());}}}(_0x336a,0x494bf));var kt=Object[_0x945337(0x24b)],Bt=(_0x1c9b74,_0x4d1cca,_0x453581)=>_0x4d1cca in _0x1c9b74?kt(_0x1c9b74,_0x4d1cca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x453581}):_0x1c9b74[_0x4d1cca]=_0x453581,d=(_0x3206a2,_0x339db8,_0x557312)=>Bt(_0x3206a2,typeof _0x339db8!='symbol'?_0x339db8+'':_0x339db8,_0x557312);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x945337(0x30d)});const a=require(_0x945337(0x49f)),v=require(_0x945337(0x1fc)),E=require(_0x945337(0x3b4)),X=require(_0x945337(0x26f)),N=require(_0x945337(0x553)),P=require(_0x945337(0x2f6)),_=require(_0x945337(0x1e1)),Vt=require(_0x945337(0x189)),V=require('@univerjs/docs'),w=require(_0x945337(0x53b)),C=require(_0x945337(0x381)),R=require(_0x945337(0x236)),L=require(_0x945337(0x291)),Je=require(_0x945337(0x418)),te=require('@univerjs/sheets-ui'),U=require(_0x945337(0x3d6)),Wt=require(_0x945337(0x3a9)),Ft=require(_0x945337(0x4e8)),ht=_0x945337(0x54e),Gt=_0x945337(0x413),_t=_0x945337(0x438),Yt=_0x945337(0x46c),Kt=0x7d0,ut='COLLAB_WEB_SOCKET_URL',Xt=_0x945337(0x25b),dt=_0x945337(0x380),qt=0x7530,Ve=_0x945337(0x535),St=0x4e20,zt=0x4e20,vt='RETRY_CONNECTING_MAX_COUNT',Jt=0x3,ft=_0x945337(0x55b),Zt=0x3e8,gt=_0x945337(0x374),Qt=_0x945337(0x35c),mt=_0x945337(0x2d4),es=_0x945337(0x308);var It=(_0x39ad3a=>(_0x39ad3a[_0x39ad3a[_0x945337(0x276)]=0x0]=_0x945337(0x276),_0x39ad3a[_0x39ad3a['OK']=0x1]='OK',_0x39ad3a[_0x39ad3a[_0x945337(0x2ef)]=0x2]=_0x945337(0x2ef),_0x39ad3a[_0x39ad3a[_0x945337(0x190)]=0x3]=_0x945337(0x190),_0x39ad3a[_0x39ad3a[_0x945337(0x4dc)]=0x4]=_0x945337(0x4dc),_0x39ad3a[_0x39ad3a[_0x945337(0x355)]=0x5]=_0x945337(0x355),_0x39ad3a[_0x39ad3a[_0x945337(0x281)]=0x6]=_0x945337(0x281),_0x39ad3a[_0x39ad3a[_0x945337(0x1cb)]=0x7]='INVALID_ARGUMENT',_0x39ad3a[_0x39ad3a[_0x945337(0x229)]=0x8]=_0x945337(0x229),_0x39ad3a[_0x39ad3a[_0x945337(0x29e)]=0x9]=_0x945337(0x29e),_0x39ad3a[_0x39ad3a[_0x945337(0x2c2)]=0x1389]=_0x945337(0x2c2),_0x39ad3a[_0x39ad3a[_0x945337(0x541)]=0x1771]=_0x945337(0x541),_0x39ad3a[_0x39ad3a[_0x945337(0x48f)]=0x1772]=_0x945337(0x48f),_0x39ad3a[_0x39ad3a[_0x945337(0x537)]=0x1b59]=_0x945337(0x537),_0x39ad3a[_0x39ad3a[_0x945337(0x273)]=0x1b5a]=_0x945337(0x273),_0x39ad3a[_0x39ad3a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x945337(0x3e7),_0x39ad3a[_0x39ad3a[_0x945337(0x575)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x39ad3a[_0x39ad3a[_0x945337(0x4f6)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x39ad3a[_0x39ad3a[_0x945337(0x2da)]=0x2329]=_0x945337(0x2da),_0x39ad3a[_0x39ad3a[_0x945337(0x347)]=0x232a]=_0x945337(0x347),_0x39ad3a[_0x39ad3a[_0x945337(0x18b)]=0x232b]=_0x945337(0x18b),_0x39ad3a[_0x39ad3a[_0x945337(0x3bb)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x39ad3a[_0x39ad3a['LICENSE_DISTRO_REJECTED']=0x232d]=_0x945337(0x34b),_0x39ad3a[_0x39ad3a[_0x945337(0x492)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x39ad3a[_0x39ad3a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x945337(0x1b9),_0x39ad3a[_0x39ad3a[_0x945337(0x3a0)]=0x2713]=_0x945337(0x3a0),_0x39ad3a[_0x39ad3a[_0x945337(0x1bd)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x39ad3a[_0x39ad3a[_0x945337(0x202)]=-0x1]='UNRECOGNIZED',_0x39ad3a))(It||{}),j=(_0x5c47d7=>(_0x5c47d7[_0x5c47d7[_0x945337(0x52e)]=0x0]=_0x945337(0x52e),_0x5c47d7[_0x5c47d7['UNIVER_DOC']=0x1]=_0x945337(0x395),_0x5c47d7[_0x5c47d7['UNIVER_SHEET']=0x2]=_0x945337(0x53c),_0x5c47d7[_0x5c47d7[_0x945337(0x16e)]=0x3]=_0x945337(0x16e),_0x5c47d7[_0x5c47d7[_0x945337(0x216)]=0x4]=_0x945337(0x216),_0x5c47d7[_0x5c47d7[_0x945337(0x202)]=-0x1]='UNRECOGNIZED',_0x5c47d7))(j||{}),b=(_0x2d3efb=>(_0x2d3efb[_0x2d3efb[_0x945337(0x460)]=0x0]='UNKNOWN_CMD',_0x2d3efb[_0x2d3efb[_0x945337(0x25f)]=0x1]=_0x945337(0x25f),_0x2d3efb[_0x2d3efb[_0x945337(0x4e2)]=0x2]=_0x945337(0x4e2),_0x2d3efb[_0x2d3efb[_0x945337(0x1f3)]=0x3]=_0x945337(0x1f3),_0x2d3efb[_0x2d3efb[_0x945337(0x455)]=0x4]=_0x945337(0x455),_0x2d3efb[_0x2d3efb[_0x945337(0x489)]=0x5]=_0x945337(0x489),_0x2d3efb[_0x2d3efb[_0x945337(0x2f4)]=0x6]=_0x945337(0x2f4),_0x2d3efb[_0x2d3efb[_0x945337(0x202)]=-0x1]=_0x945337(0x202),_0x2d3efb))(b||{}),We=(_0xed2db3=>(_0xed2db3[_0xed2db3[_0x945337(0x3e6)]=0x0]=_0x945337(0x3e6),_0xed2db3[_0xed2db3['OK']=0x1]='OK',_0xed2db3[_0xed2db3['FAIL']=0x2]='FAIL',_0xed2db3[_0xed2db3['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0xed2db3))(We||{}),pt=(_0x49b95a=>(_0x49b95a[_0x49b95a[_0x945337(0x2d2)]=0x0]=_0x945337(0x2d2),_0x49b95a[_0x49b95a[_0x945337(0x557)]=0x1]=_0x945337(0x557),_0x49b95a[_0x49b95a[_0x945337(0x45a)]=0x2]=_0x945337(0x45a),_0x49b95a[_0x49b95a[_0x945337(0x29b)]=0x3]=_0x945337(0x29b),_0x49b95a[_0x49b95a[_0x945337(0x1f2)]=0x4]=_0x945337(0x1f2),_0x49b95a[_0x49b95a[_0x945337(0x202)]=-0x1]=_0x945337(0x202),_0x49b95a))(pt||{});const A=_0x945337(0x4bd),ts={};function Ct(_0xbe7210){const _0x4f89e5=_0x945337;var _0x5d0cba,_0x4b3d07,_0x1a550f,_0x1f3cbb;const _0x218f05=_0xbe7210[_0x4f89e5(0x375)],_0x20c12a=JSON[_0x4f89e5(0x2e0)](_0x218f05);switch(_0x20c12a[_0x4f89e5(0x4ef)]){case b[_0x4f89e5(0x489)]:case b[_0x4f89e5(0x25f)]:{const _0x416509=_0x20c12a[_0x4f89e5(0x3a2)];return{..._0x20c12a,'data':_0x416509,'cmd':_0x20c12a['cmd']};}case b[_0x4f89e5(0x4e2)]:{const _0x41fce4=_0x20c12a[_0x4f89e5(0x29c)];return{..._0x20c12a,'data':_0x41fce4,'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};}case b[_0x4f89e5(0x2f4)]:{const _0x2694f7=_0x20c12a[_0x4f89e5(0x29a)];switch(_0x2694f7[_0x4f89e5(0x170)]){case _['CollaborationEvent'][_0x4f89e5(0x186)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x5d0cba=_0x2694f7['permissionRejEvent'])==null?void 0x0:_0x5d0cba['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x1f1)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x4b3d07=_0x2694f7['csAckEvent'])==null?void 0x0:_0x4b3d07['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x3c6)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x1a550f=_0x2694f7['newCsEvent'])==null?void 0x0:_0x1a550f['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x573)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x1f3cbb=_0x2694f7['csRejEvent'])==null?void 0x0:_0x1f3cbb['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x206)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x20d)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)]['USERS_ENTER']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7['joinEvent']},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x3cb)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x253)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x500)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x245)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x487)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7['liveShareOperation']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x3cd)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x245)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x2d1)]:return{..._0x20c12a,'data':_0x2694f7,'cmd':_0x20c12a['cmd']};case _['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x1e4)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)]['UPDATE_PERMISSION_OBJ']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x360)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x2d8)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x1a1)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};default:return _0x20c12a;}}default:return _0x20c12a;}}function Et(_0x46d26c){const _0x5e43ff=_0x945337;switch(_0x46d26c['cmd']){case b['HEARTBEAT']:case b[_0x5e43ff(0x25f)]:return JSON[_0x5e43ff(0x22d)]({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)]});case b[_0x5e43ff(0x455)]:{let _0x54e5b1;switch(_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x170)]){case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x206)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x206)],'updateCursorEvent':_0x46d26c['data'][_0x5e43ff(0x375)]};break;}case _['CollaborationEvent'][_0x5e43ff(0x3cb)]:{_0x54e5b1={'eventID':_['CollaborationEvent'][_0x5e43ff(0x3cb)],'leaveEvent':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)]['USERS_ENTER']:{_0x54e5b1={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x46d26c[_0x5e43ff(0x375)]['data']};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x500)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x500)],'liveShareNewHost':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)]['LIVESHARE_OPERATION']:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x487)],'liveShareOperation':_0x46d26c[_0x5e43ff(0x375)]['data']};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x3cd)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x3cd)],'liveShareTerminate':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x2c8)]:{_0x54e5b1={'eventID':_['CollaborationEvent'][_0x5e43ff(0x2c8)],'liveShareRequestHost':_0x46d26c['data']['data']};break;}case _['CollaborationEvent'][_0x5e43ff(0x30c)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x30c)]};break;}default:_0x54e5b1={'eventID':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x170)]};}return JSON['stringify']({'cmd':_0x46d26c['cmd'],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)],'collaMsg':_0x54e5b1});}case b['JOIN']:return JSON['stringify']({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)],'joinReq':_0x46d26c[_0x5e43ff(0x375)]});case b['LEAVE']:return JSON[_0x5e43ff(0x22d)]({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c['routeKey'],'leaveReq':_0x46d26c[_0x5e43ff(0x375)]});default:throw new Error(_0x5e43ff(0x432));}}var ss=Object['defineProperty'],is=Object[_0x945337(0x3e2)],ns=(_0xebcb19,_0x4cbdc6,_0x29e0e2,_0x289869)=>{for(var _0x2e668a=_0x289869>0x1?void 0x0:_0x289869?is(_0x4cbdc6,_0x29e0e2):_0x4cbdc6,_0x1c214d=_0xebcb19['length']-0x1,_0xcbe805;_0x1c214d>=0x0;_0x1c214d--)(_0xcbe805=_0xebcb19[_0x1c214d])&&(_0x2e668a=(_0x289869?_0xcbe805(_0x4cbdc6,_0x29e0e2,_0x2e668a):_0xcbe805(_0x2e668a))||_0x2e668a);return _0x289869&&_0x2e668a&&ss(_0x4cbdc6,_0x29e0e2,_0x2e668a),_0x2e668a;},oe=(_0x2e6c81,_0x3c84cf)=>(_0x53455a,_0x4c7450)=>_0x3c84cf(_0x53455a,_0x4c7450,_0x2e6c81);const Fe=a['createIdentifier'](_0x945337(0x2ee));function rs(_0x4e6f08,_0x47b81f,_0x560bf6){const _0x58dd11=_0x945337;return _0x4e6f08+'/'+_0x47b81f+'/unit/'+_0x560bf6+_0x58dd11(0x32c);}exports[_0x945337(0x305)]=class extends a[_0x945337(0x45b)]{constructor(_0x1cb429,_0x1a47a5,_0x176484,_0x27f073,_0x3f598f){const _0x2e8b1b=_0x945337;super(),this[_0x2e8b1b(0x266)]=_0x1cb429,this[_0x2e8b1b(0x390)]=_0x1a47a5,this[_0x2e8b1b(0x4f8)]=_0x176484,this[_0x2e8b1b(0x4ae)]=_0x27f073,this[_0x2e8b1b(0x54d)]=_0x3f598f;}['createSocket'](_0x30e3c8){const _0x3f546f=_0x945337,_0x4857c3=this[_0x3f546f(0x390)][_0x3f546f(0x452)](_0x30e3c8);if(!_0x4857c3)throw new Error(_0x3f546f(0x499));const _0x53f45b=new a[(_0x3f546f(0x275))](),_0x3a71d0=new v[(_0x3f546f(0x36e))]();_0x53f45b[_0x3f546f(0x18a)](_0x4857c3[_0x3f546f(0x343)][_0x3f546f(0x397)](_0x90eefd=>_0x3a71d0[_0x3f546f(0x3ca)](_0x90eefd))),_0x53f45b[_0x3f546f(0x18a)](a[_0x3f546f(0x296)](()=>_0x3a71d0[_0x3f546f(0x531)]()));const _0x1d2c3d=new v['Subject']();_0x53f45b['add'](_0x4857c3[_0x3f546f(0x4b5)]['subscribe'](_0x499ab3=>_0x1d2c3d[_0x3f546f(0x3ca)](_0x499ab3))),_0x53f45b[_0x3f546f(0x18a)](a[_0x3f546f(0x296)](()=>_0x1d2c3d['complete']()));const _0x46a200=new v['Subject']();_0x53f45b[_0x3f546f(0x18a)](_0x4857c3[_0x3f546f(0x3dc)][_0x3f546f(0x397)](_0x58f5b6=>{const _0x737eaf=_0x3f546f,_0xa5fadc=Ct(_0x58f5b6);_0x46a200[_0x737eaf(0x3ca)](_0xa5fadc);})),_0x53f45b[_0x3f546f(0x18a)](a['toDisposable'](()=>_0x46a200[_0x3f546f(0x531)]()));let _0x5879cb;const _0xbe866e=()=>{const _0x282ada=_0x3f546f;_0x1d2c3d[_0x282ada(0x3ca)](new Event('connection\x20error')),_0x3a71d0[_0x282ada(0x3ca)](new CloseEvent(_0x282ada(0x3ae))),_0x5879cb[_0x282ada(0x322)]();};return _0x5879cb={'memberID':'','close$':_0x3a71d0[_0x3f546f(0x19b)](),'error$':_0x1d2c3d[_0x3f546f(0x19b)](),'open$':_0x4857c3[_0x3f546f(0x445)],'message$':_0x46a200['asObservable'](),'send':_0x59cbea=>{const _0x41a3c0=_0x3f546f;if(_0x59cbea[_0x41a3c0(0x4ef)]===b['INGEST']){if(_0x59cbea['data']['eventID']===_[_0x41a3c0(0x4eb)][_0x41a3c0(0x56d)]){this[_0x41a3c0(0x2f7)](_0x5879cb,_0x59cbea['data'])[_0x41a3c0(0x3ff)](_0x1579ce=>{const _0x17c0ec=_0x41a3c0;this[_0x17c0ec(0x4ae)]['error'](_0x1579ce),_0xbe866e();});return;}if(_0x59cbea[_0x41a3c0(0x375)][_0x41a3c0(0x170)]===_[_0x41a3c0(0x4eb)][_0x41a3c0(0x51d)]){const _0x3eed85=_0x59cbea[_0x41a3c0(0x375)];this[_0x41a3c0(0x412)](_0x3eed85)['then'](_0x3d2fca=>{const _0x26f5fe=_0x41a3c0;_0x46a200[_0x26f5fe(0x3ca)]({'cmd':b[_0x26f5fe(0x2f4)],'code':We['OK'],'routeKey':_0x3eed85[_0x26f5fe(0x375)][_0x26f5fe(0x1da)],'routeType':'','data':{'eventID':_[_0x26f5fe(0x4eb)][_0x26f5fe(0x4b7)],'data':{'changesets':_0x3d2fca}}});})['catch'](_0x64e661=>{const _0x3d1ae8=_0x41a3c0;this[_0x3d1ae8(0x4ae)]['error'](_0x64e661),_0xbe866e();});return;}}_0x4857c3['send'](Et(_0x59cbea));},'close':()=>{const _0x1aaa0f=_0x3f546f;_0x4857c3[_0x1aaa0f(0x322)](),_0x53f45b['dispose']();}},_0x5879cb;}async['_submitChangeset'](_0x466b29,_0x25b373){const _0x1e60b6=_0x945337;var _0x88ac27,_0x285af7;const {unitType:_0x5d086a,unitID:_0x6b1d6b,changeset:_0x120925}=_0x25b373[_0x1e60b6(0x375)],_0x411a8c={'unitID':_0x6b1d6b,'memberID':_0x466b29[_0x1e60b6(0x2ab)],'type':_0x5d086a,'changeset':_[_0x1e60b6(0x21d)](_0x120925)},_0x2ce0f4=this[_0x1e60b6(0x4f8)][_0x1e60b6(0x258)](gt),_0x6ea042=this['_configService'][_0x1e60b6(0x258)](A),_0x5bc3ad=rs((_0x285af7=(_0x88ac27=_0x6ea042==null?void 0x0:_0x6ea042[_0x1e60b6(0x377)])!=null?_0x88ac27:_0x2ce0f4)!=null?_0x285af7:Qt,_0x5d086a,_0x6b1d6b);try{await this['_http']['post'](_0x5bc3ad,{'body':_0x411a8c});}catch(_0x5d3d5d){throw this['_logService']['error'](_0x1e60b6(0x393),'submit\x20changeset\x20error!'),_0x5d3d5d;}}async[_0x945337(0x412)](_0x53a62b){const _0x4c7c3d=_0x945337,{unitID:_0x5b423d,from:_0x20ffbc,to:_0x5994ee,unitType:_0x11001b}=_0x53a62b[_0x4c7c3d(0x375)];return(await this[_0x4c7c3d(0x54d)][_0x4c7c3d(0x55d)]({'metadata':void 0x0},{'unitID':_0x5b423d,'type':_0x11001b,'from':_0x20ffbc,'to':_0x5994ee}))[_0x4c7c3d(0x37c)];}},exports['CollaborationSocketService']=ns([oe(0x0,a[_0x945337(0x4fa)](P[_0x945337(0x22e)])),oe(0x1,a[_0x945337(0x4fa)](P['WebSocketService'])),oe(0x2,a[_0x945337(0x1f7)]),oe(0x3,a[_0x945337(0x48c)]),oe(0x4,_['ISnapshotServerService'])],exports[_0x945337(0x305)]);const os=_0x945337(0x4b8);function as(_0x34430c){const _0x3036ed=_0x945337;return JSON[_0x3036ed(0x22d)](_0x34430c)['length'];}class Ge{constructor(){const _0x3eb5ef=_0x945337;d(this,_0x3eb5ef(0x2a1),new v['Subject']()),d(this,'commentUpdate$',this['_commentUpdate$'][_0x3eb5ef(0x19b)]());}['onCommentUpdate'](_0x578e8b){const _0x4eac04=_0x945337;this[_0x4eac04(0x2a1)]['next'](_0x578e8b);}}var cs=Object[_0x945337(0x24b)],ls=Object[_0x945337(0x3e2)],hs=(_0x1883e5,_0x58e953,_0x1cc1b8,_0x1625b1)=>{for(var _0x1046ad=_0x1625b1>0x1?void 0x0:_0x1625b1?ls(_0x58e953,_0x1cc1b8):_0x58e953,_0x10ace6=_0x1883e5['length']-0x1,_0xf467a;_0x10ace6>=0x0;_0x10ace6--)(_0xf467a=_0x1883e5[_0x10ace6])&&(_0x1046ad=(_0x1625b1?_0xf467a(_0x58e953,_0x1cc1b8,_0x1046ad):_0xf467a(_0x1046ad))||_0x1046ad);return _0x1625b1&&_0x1046ad&&cs(_0x58e953,_0x1cc1b8,_0x1046ad),_0x1046ad;},Ze=(_0x342364,_0x23698e)=>(_0x428d5d,_0x1033e2)=>_0x23698e(_0x428d5d,_0x1033e2,_0x342364);let q=class extends a[_0x945337(0x45b)]{constructor(_0x24f0ac,_0x25ff0c){const _0x46e7b9=_0x945337;super(),d(this,_0x46e7b9(0x568),new Map()),(this[_0x46e7b9(0x337)]=_0x24f0ac,this['_userManagerService']=_0x25ff0c,this[_0x46e7b9(0x50a)](a[_0x46e7b9(0x296)](v['merge'](this[_0x46e7b9(0x337)]['getTypeOfUnitDisposed$'](a[_0x46e7b9(0x3b1)][_0x46e7b9(0x53c)])[_0x46e7b9(0x550)](E[_0x46e7b9(0x2c1)](_0x3c3c91=>_0x3c3c91[_0x46e7b9(0x352)]())),this[_0x46e7b9(0x337)][_0x46e7b9(0x18e)](a[_0x46e7b9(0x3b1)]['UNIVER_DOC'])[_0x46e7b9(0x550)](E['map'](_0x4e78ab=>_0x4e78ab['getUnitId']())),this[_0x46e7b9(0x337)][_0x46e7b9(0x18e)](a['UniverInstanceType'][_0x46e7b9(0x16e)])[_0x46e7b9(0x550)](E[_0x46e7b9(0x2c1)](_0xacf866=>_0xacf866['getUnitId']())))['subscribe'](_0x23c54b=>this[_0x46e7b9(0x469)](_0x23c54b)))));}[_0x945337(0x342)](_0x470da6){const _0x38228f=_0x945337;this[_0x38228f(0x569)][_0x38228f(0x342)](_0x470da6);}[_0x945337(0x307)](){const _0x5bb3c2=_0x945337;return this['_userManagerService'][_0x5bb3c2(0x307)]();}[_0x945337(0x181)](_0x2bb2a8,_0x2fd658){const _0x4c4787=_0x945337;let _0x3db60e=this[_0x4c4787(0x568)]['get'](_0x2bb2a8);_0x3db60e||(_0x3db60e=new _s(),this[_0x4c4787(0x568)]['set'](_0x2bb2a8,_0x3db60e)),_0x3db60e[_0x4c4787(0x181)](_0x2fd658);}[_0x945337(0x41c)](_0x5f22c2,_0x5e3701){const _0x5dee8b=_0x945337,_0x4c6818=this[_0x5dee8b(0x568)][_0x5dee8b(0x3eb)](_0x5f22c2);_0x4c6818&&_0x4c6818['removeMember'](_0x5e3701);}[_0x945337(0x1c2)](_0x2e1160){const _0x5446a2=_0x945337;return this[_0x5446a2(0x568)][_0x5446a2(0x3eb)](_0x2e1160);}[_0x945337(0x467)](_0x591069,_0x3c53bc){const _0x7ed942=_0x945337,_0x12f3e3=this[_0x7ed942(0x568)][_0x7ed942(0x3eb)](_0x591069);if(_0x12f3e3)return _0x12f3e3[_0x7ed942(0x467)](_0x3c53bc);}[_0x945337(0x469)](_0x58459c){const _0x185a09=_0x945337,_0x5a973c=this[_0x185a09(0x568)][_0x185a09(0x3eb)](_0x58459c);_0x5a973c&&(_0x5a973c[_0x185a09(0x1eb)](),this[_0x185a09(0x568)][_0x185a09(0x532)](_0x58459c));}[_0x945337(0x1eb)](){const _0x5017dd=_0x945337;this[_0x5017dd(0x568)][_0x5017dd(0x278)](_0x3684d0=>_0x3684d0[_0x5017dd(0x1eb)]()),this[_0x5017dd(0x568)][_0x5017dd(0x196)]();}};q=hs([Ze(0x0,a[_0x945337(0x57b)]),Ze(0x1,a[_0x945337(0x4fa)](a[_0x945337(0x40e)]))],q);class _s extends a[_0x945337(0x45b)]{constructor(){const _0xb94c1=_0x945337;super(...arguments),d(this,_0xb94c1(0x428),new Map());}[_0x945337(0x1eb)](){const _0x38c9ac=_0x945337;this[_0x38c9ac(0x428)]['clear']();}[_0x945337(0x181)](_0xe4898d){const _0x45bfe3=_0x945337;this[_0x45bfe3(0x428)][_0x45bfe3(0x4a8)](_0xe4898d[_0x45bfe3(0x2ab)],_0xe4898d);}[_0x945337(0x41c)](_0x12f2fe){const _0x213ff6=_0x945337;this[_0x213ff6(0x428)]['delete'](_0x12f2fe);}[_0x945337(0x467)](_0x4ca019){const _0x4b352d=_0x945337;return this[_0x4b352d(0x428)]['get'](_0x4ca019);}}var us=Object[_0x945337(0x24b)],ds=Object[_0x945337(0x3e2)],Ss=(_0x1165ab,_0x36cec5,_0x5607e9,_0x6872ec)=>{const _0x2cd50c=_0x945337;for(var _0x54460d=_0x6872ec>0x1?void 0x0:_0x6872ec?ds(_0x36cec5,_0x5607e9):_0x36cec5,_0x5ed831=_0x1165ab[_0x2cd50c(0x3f0)]-0x1,_0x12d68c;_0x5ed831>=0x0;_0x5ed831--)(_0x12d68c=_0x1165ab[_0x5ed831])&&(_0x54460d=(_0x6872ec?_0x12d68c(_0x36cec5,_0x5607e9,_0x54460d):_0x12d68c(_0x54460d))||_0x54460d);return _0x6872ec&&_0x54460d&&us(_0x36cec5,_0x5607e9,_0x54460d),_0x54460d;},B=(_0x1507b6,_0x358d44)=>(_0xbecf55,_0xb20be8)=>_0x358d44(_0xbecf55,_0xb20be8,_0x1507b6),$=(_0x4587ff=>(_0x4587ff[_0x4587ff['IDLE']=0x0]=_0x945337(0x263),_0x4587ff[_0x4587ff[_0x945337(0x399)]=0x1]=_0x945337(0x399),_0x4587ff[_0x4587ff['OFFLINE']=0x2]=_0x945337(0x482),_0x4587ff[_0x4587ff['ONLINE']=0x3]=_0x945337(0x42e),_0x4587ff))($||{});exports[_0x945337(0x30a)]=class extends a[_0x945337(0x538)]{constructor(_0x572415,_0x359569,_0x3321de,_0x468498,_0x18876b,_0x46c56e,_0x57f218,_0x123122,_0x5ef093,_0x5e2711){const _0x182f59=_0x945337;super(),d(this,_0x182f59(0x310),new v[(_0x182f59(0x52c))](0x0)),d(this,'sessionStatus$',this[_0x182f59(0x310)][_0x182f59(0x19b)]()),d(this,_0x182f59(0x51b),new v[(_0x182f59(0x36e))]()),d(this,_0x182f59(0x23f),this[_0x182f59(0x51b)][_0x182f59(0x19b)]()),d(this,_0x182f59(0x3fe)),d(this,_0x182f59(0x45e)),d(this,_0x182f59(0x57a)),d(this,_0x182f59(0x338),!0x1),d(this,_0x182f59(0x237),null),(this[_0x182f59(0x20f)]=_0x572415,this[_0x182f59(0x4ae)]=_0x3321de,this[_0x182f59(0x22a)]=_0x468498,this[_0x182f59(0x392)]=_0x18876b,this[_0x182f59(0x4f8)]=_0x46c56e,this[_0x182f59(0x21a)]=_0x57f218,this[_0x182f59(0x526)]=_0x123122,this[_0x182f59(0x4cd)]=_0x5ef093,this[_0x182f59(0x2b8)]=_0x5e2711,this['_shouldReportTelemetry']=!!this[_0x182f59(0x2b8)],_0x359569[_0x182f59(0x550)](v[_0x182f59(0x43c)](this[_0x182f59(0x2ec)]))[_0x182f59(0x397)](_0xbb71fd=>{const _0xd140db=_0x182f59;var _0x55976e;typeof _0xbb71fd>'u'||(this[_0xd140db(0x3fe)]=_0xbb71fd,_0xbb71fd?(this[_0xd140db(0x1cd)](_0xbb71fd),this[_0xd140db(0x45e)]=_0xbb71fd[_0xd140db(0x3dc)][_0xd140db(0x397)](_0x2aa116=>{const _0x359701=_0xd140db;_0x2aa116[_0x359701(0x1c6)]===this[_0x359701(0x20f)]&&this[_0x359701(0x51c)](_0x2aa116);})):(this[_0xd140db(0x232)](),this[_0xd140db(0x310)][_0xd140db(0x3ca)](0x2),(_0x55976e=this['_socketMessageSubscription'])==null||_0x55976e[_0xd140db(0x346)](),this['_socketMessageSubscription']=null));}),this[_0x182f59(0x50a)](this[_0x182f59(0x22a)][_0x182f59(0x46e)](()=>{const _0x2837b1=_0x182f59;var _0x375720;(_0x375720=this['_socket'])==null||_0x375720[_0x2837b1(0x2a2)]({'cmd':b[_0x2837b1(0x1f3)],'data':{'roomID':this[_0x2837b1(0x20f)]}});})));}get[_0x945337(0x290)](){const _0x258240=_0x945337;return this[_0x258240(0x310)][_0x258240(0x2d6)]();}[_0x945337(0x56a)](){const _0x11faa3=_0x945337;var _0x3d8602,_0x3ce90e;return(_0x3ce90e=(_0x3d8602=this[_0x11faa3(0x3fe)])==null?void 0x0:_0x3d8602[_0x11faa3(0x2ab)])!=null?_0x3ce90e:null;}[_0x945337(0x1eb)](){const _0x1a4215=_0x945337;super['dispose'](),this[_0x1a4215(0x2ec)]['next'](),this[_0x1a4215(0x2ec)][_0x1a4215(0x531)]();}[_0x945337(0x322)](){const _0x197480=_0x945337;var _0x78284d,_0x2336d6;this[_0x197480(0x232)](),(_0x78284d=this[_0x197480(0x3fe)])==null||_0x78284d[_0x197480(0x2a2)]({'cmd':b[_0x197480(0x1f3)],'data':{'roomID':this['_unitID']}}),(_0x2336d6=this['_socket'])==null||_0x2336d6[_0x197480(0x322)](),this[_0x197480(0x51b)]['complete'](),this[_0x197480(0x310)]['complete'](),this['dispose']();}['_onCombEvent'](_0x27ca13){const _0x1a7299=_0x945337;_0x27ca13[_0x1a7299(0x4ef)]===b['JOIN']?this[_0x1a7299(0x326)](_0x27ca13):_0x27ca13[_0x1a7299(0x4ef)]===b[_0x1a7299(0x2f4)]&&this[_0x1a7299(0x1f4)](_0x27ca13);}['_joinRoom'](_0x51de92){const _0x2c8e17=_0x945337;this[_0x2c8e17(0x310)][_0x2c8e17(0x3ca)](0x1),_0x51de92[_0x2c8e17(0x2a2)]({'cmd':b['JOIN'],'routeKey':this[_0x2c8e17(0x20f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2c8e17(0x20f)]}]}});}[_0x945337(0x326)](_0x117680){const _0x2f2c03=_0x945337;var _0x2a03ce;if(_0x117680[_0x2f2c03(0x20c)]===We['FAIL']){this[_0x2f2c03(0x392)][_0x2f2c03(0x411)]({'type':X[_0x2f2c03(0x367)][_0x2f2c03(0x19d)],'content':this[_0x2f2c03(0x21a)]['t'](_0x2f2c03(0x20a))}),this[_0x2f2c03(0x310)]['next'](0x2);return;}this[_0x2f2c03(0x310)][_0x2f2c03(0x3ca)](0x3);const _0x224b14=(_0x2a03ce=_0x117680['data'][_0x2f2c03(0x241)][this[_0x2f2c03(0x20f)]])==null?void 0x0:_0x2a03ce[_0x2f2c03(0x30b)];_0x224b14&&_0x224b14[_0x2f2c03(0x278)](_0x5b2505=>this[_0x2f2c03(0x526)]['updateMember'](this[_0x2f2c03(0x20f)],_0x5b2505));}['_onRecvEvent'](_0x437081){const _0x187221=_0x945337;try{const _0x2613ff=_0x437081[_0x187221(0x375)];switch(_0x2613ff[_0x187221(0x170)]){case _[_0x187221(0x4eb)][_0x187221(0x1d2)]:this[_0x187221(0x50b)](_0x2613ff),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;case _['CollaborationEvent'][_0x187221(0x3cb)]:this['_onUserLeave'](_0x2613ff),this['_event$']['next'](_0x2613ff);break;case _[_0x187221(0x4eb)][_0x187221(0x1f1)]:this[_0x187221(0x52f)](),this[_0x187221(0x1e5)](),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;case _[_0x187221(0x4eb)][_0x187221(0x2d1)]:this[_0x187221(0x4ae)][_0x187221(0x2e8)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x2613ff)),this[_0x187221(0x51b)][_0x187221(0x3ca)](_0x2613ff);break;case _['CollaborationEvent']['COMMENT_UPDATE']:this[_0x187221(0x4cd)][_0x187221(0x39c)](_0x2613ff[_0x187221(0x375)]),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;default:this[_0x187221(0x51b)][_0x187221(0x3ca)](_0x2613ff);}}catch(_0x336304){this[_0x187221(0x4ae)]['error'](_0x336304,_0x437081);}}['_onUserJoin'](_0x1661f5){const _0x4176e1=_0x945337;this[_0x4176e1(0x526)][_0x4176e1(0x181)](this[_0x4176e1(0x20f)],_0x1661f5[_0x4176e1(0x375)]);}[_0x945337(0x3c9)](_0x4f2830){const _0x31085f=_0x945337;this[_0x31085f(0x526)]['removeMember'](this[_0x31085f(0x20f)],_0x4f2830['data'][_0x31085f(0x2ab)]);}async[_0x945337(0x2a2)](_0x48d621,_0x261afa){const _0x4ba1c5=_0x945337;if(this[_0x4ba1c5(0x290)]!==0x3||!this[_0x4ba1c5(0x3fe)])throw new Error(_0x4ba1c5(0x4f1));try{_0x48d621[_0x4ba1c5(0x170)]===_[_0x4ba1c5(0x4eb)][_0x4ba1c5(0x56d)]&&(this[_0x4ba1c5(0x335)](),this[_0x4ba1c5(0x4c1)](_0x48d621)),this[_0x4ba1c5(0x3fe)][_0x4ba1c5(0x2a2)]({'cmd':b[_0x4ba1c5(0x455)],'routeKey':_0x261afa,'routeType':'','data':_0x48d621});}catch(_0x2c4c63){this[_0x4ba1c5(0x4ae)]['error'](_0x2c4c63);}}[_0x945337(0x335)](){const _0x12dda8=_0x945337;var _0x5299eb;this['_collaborationTimeoutTimer']=window[_0x12dda8(0x191)](()=>{const _0x291199=_0x12dda8;this['_collaborationTimeoutTimer']=null,this[_0x291199(0x392)][_0x291199(0x411)]({'type':X[_0x291199(0x367)][_0x291199(0x372)],'content':this['_localeService']['t'](_0x291199(0x388))});},(_0x5299eb=this[_0x12dda8(0x4f8)][_0x12dda8(0x258)](Ve))!=null?_0x5299eb:St);}[_0x945337(0x1e5)](){const _0x2ba216=_0x945337;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x2ba216(0x57a)]),this['_collaborationTimeoutTimer']=null);}[_0x945337(0x4c1)](_0x58bad3){const _0x2ce149=_0x945337;if(!this[_0x2ce149(0x338)])return;const {data:_0x5c9aa7}=_0x58bad3,{unitID:_0x225b38,changeset:_0x68aee1}=_0x5c9aa7,{mutations:_0xb3d02d,type:_0x31fb8c}=_0x68aee1;this[_0x2ce149(0x237)]={'unitId':_0x225b38,'type':_0x31fb8c,'startTime':performance[_0x2ce149(0x405)](),'stopTime':0x0,'duration':0x0,'size':as(_0xb3d02d)};}[_0x945337(0x52f)](){const _0x277cc7=_0x945337;if(this[_0x277cc7(0x338)]){if(!this[_0x277cc7(0x237)]){this[_0x277cc7(0x4ae)][_0x277cc7(0x2e8)](_0x277cc7(0x393),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x277cc7(0x237)][_0x277cc7(0x2f3)]=performance[_0x277cc7(0x405)](),this[_0x277cc7(0x237)][_0x277cc7(0x3ac)]=this[_0x277cc7(0x237)][_0x277cc7(0x2f3)]-this[_0x277cc7(0x237)]['startTime'],this['_telemetryService'][_0x277cc7(0x222)](os,this[_0x277cc7(0x237)]),this[_0x277cc7(0x237)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x298731=_0x945337;this[_0x298731(0x237)]=null;}},exports[_0x945337(0x30a)]=Ss([B(0x2,a[_0x945337(0x48c)]),B(0x3,N[_0x945337(0x4f0)]),B(0x4,N[_0x945337(0x2b2)]),B(0x5,a[_0x945337(0x1f7)]),B(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),B(0x7,a[_0x945337(0x4fa)](q)),B(0x8,a['Inject'](Ge)),B(0x9,a[_0x945337(0x188)](Vt[_0x945337(0x25d)]))],exports[_0x945337(0x30a)]);var vs=Object['defineProperty'],fs=Object[_0x945337(0x3e2)],gs=(_0x145b3f,_0x3338df,_0x807908,_0x3d0c69)=>{for(var _0x51fe1e=_0x3d0c69>0x1?void 0x0:_0x3d0c69?fs(_0x3338df,_0x807908):_0x3338df,_0x37bf5f=_0x145b3f['length']-0x1,_0xeb631a;_0x37bf5f>=0x0;_0x37bf5f--)(_0xeb631a=_0x145b3f[_0x37bf5f])&&(_0x51fe1e=(_0x3d0c69?_0xeb631a(_0x3338df,_0x807908,_0x51fe1e):_0xeb631a(_0x51fe1e))||_0x51fe1e);return _0x3d0c69&&_0x51fe1e&&vs(_0x3338df,_0x807908,_0x51fe1e),_0x51fe1e;},Z=(_0x49fe0d,_0x4b6661)=>(_0x13690c,_0x6c7f17)=>_0x4b6661(_0x13690c,_0x6c7f17,_0x49fe0d);exports[_0x945337(0x3a5)]=class extends a['Disposable']{constructor(_0x152453,_0x49dbe3,_0x107907,_0xdc5d56,_0x150db4,_0x49b705){const _0x1928dc=_0x945337;super(),d(this,'_socket$',new v[(_0x1928dc(0x52c))](void 0x0)),d(this,_0x1928dc(0x2ea),this[_0x1928dc(0x56c)][_0x1928dc(0x19b)]()),d(this,'_candidateSocket',null),d(this,'_sessions',new Map()),d(this,'_status$',new v['BehaviorSubject']($[_0x1928dc(0x263)])),d(this,_0x1928dc(0x259),this[_0x1928dc(0x35a)][_0x1928dc(0x19b)]()),d(this,_0x1928dc(0x554),!0x1),d(this,_0x1928dc(0x480)),d(this,_0x1928dc(0x437),0x0),d(this,'_sendHeartbeatTimer'),d(this,'_timeoutTimer'),(this[_0x1928dc(0x3dd)]=_0x152453,this[_0x1928dc(0x21a)]=_0x49dbe3,this['_messageService']=_0x107907,this['_logService']=_0xdc5d56,this[_0x1928dc(0x4f8)]=_0x150db4,this[_0x1928dc(0x562)]=_0x49b705,this['_initEventListeners']());}get[_0x945337(0x3fe)](){const _0x13f416=_0x945337;return this[_0x13f416(0x56c)][_0x13f416(0x2d6)]();}[_0x945337(0x4d0)](){const _0x3abb76=_0x945337;this['_listenToOfflineEvent'](),this[_0x3abb76(0x3e4)]();}['dispose'](){const _0x2f4e03=_0x945337;super['dispose'](),this[_0x2f4e03(0x175)][_0x2f4e03(0x278)](_0x580052=>_0x580052[_0x2f4e03(0x1eb)]()),this[_0x2f4e03(0x175)][_0x2f4e03(0x196)](),this['_status$']['complete']();}async[_0x945337(0x369)](_0xa3c5d3){const _0x1b143b=_0x945337;if(this[_0x1b143b(0x175)]['has'](_0xa3c5d3))return this[_0x1b143b(0x175)][_0x1b143b(0x3eb)](_0xa3c5d3);this['_tryEnsureSocket']();const _0x22d7b5=this[_0x1b143b(0x3dd)][_0x1b143b(0x39d)](exports[_0x1b143b(0x30a)],_0xa3c5d3,this[_0x1b143b(0x56c)]['asObservable']());return this[_0x1b143b(0x175)][_0x1b143b(0x4a8)](_0xa3c5d3,_0x22d7b5),_0x22d7b5;}[_0x945337(0x350)](_0x95b134){const _0x4ef981=_0x945337;var _0x2f3671;const _0x3f53f5=this[_0x4ef981(0x175)][_0x4ef981(0x3eb)](_0x95b134);_0x3f53f5&&(this[_0x4ef981(0x175)]['delete'](_0x95b134),_0x3f53f5[_0x4ef981(0x322)]()),this[_0x4ef981(0x175)][_0x4ef981(0x17e)]||(_0x2f3671=this[_0x4ef981(0x3fe)])==null||_0x2f3671[_0x4ef981(0x322)]();}['reconnect'](){const _0x1b252d=_0x945337;this[_0x1b252d(0x437)]=0x0,this[_0x1b252d(0x480)]!=null&&(clearTimeout(this[_0x1b252d(0x480)]),this[_0x1b252d(0x480)]=null),this[_0x1b252d(0x483)]();}[_0x945337(0x3c3)](){const _0xb546dd=_0x945337;var _0x32fa8c,_0x48ad4b;const _0xe4ac42=this[_0xb546dd(0x4f8)][_0xb546dd(0x258)](ut),_0x1eee85=this[_0xb546dd(0x4f8)]['getConfig'](A),_0x2332fc=(_0x48ad4b=(_0x32fa8c=_0x1eee85==null?void 0x0:_0x1eee85[_0xb546dd(0x2af)])!=null?_0x32fa8c:_0xe4ac42)!=null?_0x48ad4b:Xt,_0x3bcb43=this['_socketService'][_0xb546dd(0x452)](_0x2332fc);return this['_candidateSocket']=_0x3bcb43,_0x3bcb43;}[_0x945337(0x465)](){const _0x213d0b=_0x945337;var _0x1f59e5,_0x200486;try{const _0x39df2b=(_0x200486=(_0x1f59e5=this[_0x213d0b(0x3fe)])!=null?_0x1f59e5:this[_0x213d0b(0x3e5)])!=null?_0x200486:this[_0x213d0b(0x3c3)]();if(_0x39df2b){const _0x21d5aa=_0x39df2b[_0x213d0b(0x2a2)];_0x39df2b[_0x213d0b(0x2a2)]=_0xf4db16=>(this[_0x213d0b(0x579)](),_0x21d5aa['apply'](_0x39df2b,[_0xf4db16])),_0x39df2b[_0x213d0b(0x3dc)][_0x213d0b(0x397)](_0x4d392=>this[_0x213d0b(0x518)](_0x39df2b,_0x4d392)),_0x39df2b[_0x213d0b(0x4b5)]['pipe'](E[_0x213d0b(0x551)](0x1))[_0x213d0b(0x397)](_0x372180=>this[_0x213d0b(0x4ae)][_0x213d0b(0x2e8)](_0x213d0b(0x426),_0x372180)),_0x39df2b[_0x213d0b(0x445)][_0x213d0b(0x550)](E['take'](0x1))['subscribe'](()=>{const _0x51a0ca=_0x213d0b;this[_0x51a0ca(0x1d3)](_0x39df2b);}),_0x39df2b[_0x213d0b(0x343)][_0x213d0b(0x550)](E['take'](0x1))[_0x213d0b(0x397)](_0x30ce0b=>{const _0x24c8b1=_0x213d0b;this[_0x24c8b1(0x4ae)][_0x24c8b1(0x44c)](_0x24c8b1(0x282),_0x24c8b1(0x17d),_0x30ce0b),this[_0x24c8b1(0x4de)]();});}}catch(_0x2eb525){this[_0x213d0b(0x4ae)]['error'](_0x2eb525),this[_0x213d0b(0x4de)]();}}[_0x945337(0x1d3)](_0x3d0f38){const _0x102705=_0x945337;this[_0x102705(0x4ae)][_0x102705(0x44c)](_0x102705(0x282),_0x102705(0x3c4)),_0x3d0f38[_0x102705(0x2a2)]({'cmd':b['HELLO']}),this['_rescheduleHeartbeat']();}[_0x945337(0x410)](){const _0x1a7dda=_0x945337;window[_0x1a7dda(0x1ea)](_0x1a7dda(0x1c1),()=>this[_0x1a7dda(0x50f)]());}[_0x945337(0x50f)](){const _0x458cb0=_0x945337;this['_socketReady']=!0x1,this[_0x458cb0(0x3e5)]=null,this[_0x458cb0(0x35a)][_0x458cb0(0x3ca)]($[_0x458cb0(0x482)]),this['_socket$'][_0x458cb0(0x3ca)](null),this[_0x458cb0(0x501)](),this[_0x458cb0(0x21c)]();}[_0x945337(0x4de)](){const _0x99224b=_0x945337;var _0x10f23f;this[_0x99224b(0x50f)](),this[_0x99224b(0x437)]<((_0x10f23f=this['_configService']['getConfig'](vt))!=null?_0x10f23f:Jt)?(this[_0x99224b(0x392)]['show']({'key':'collaboration-session-retry','type':X[_0x99224b(0x367)][_0x99224b(0x19d)],'content':this[_0x99224b(0x21a)]['t'](_0x99224b(0x389))}),this[_0x99224b(0x483)]()):this['_messageService'][_0x99224b(0x411)]({'key':'collaboration-session-retry','type':X[_0x99224b(0x367)]['Error'],'content':this[_0x99224b(0x21a)]['t']('session.connection-failed')});}[_0x945337(0x3e4)](){const _0x9df1fc=_0x945337,_0xa679b5=()=>{const _0x2d7eb6=_0x38f3;this[_0x2d7eb6(0x3fe)]||this['reconnect']();},_0x1fab0d=()=>{const _0x7ed857=_0x38f3;this['_socket']||document[_0x7ed857(0x252)]==='hidden'||this[_0x7ed857(0x4cc)]();};window['addEventListener'](_0x9df1fc(0x2c3),_0xa679b5),document[_0x9df1fc(0x1ea)](_0x9df1fc(0x570),_0x1fab0d);}[_0x945337(0x483)](){const _0x44cf94=_0x945337;var _0x175f8b;const _0x47d90d=this[_0x44cf94(0x437)],_0x20c978=this['_configService'][_0x44cf94(0x258)](A),_0x4d4150=_0x47d90d===0x0?0x0:((_0x175f8b=_0x20c978==null?void 0x0:_0x20c978[_0x44cf94(0x396)])!=null?_0x175f8b:zt)*0x2**_0x47d90d;this[_0x44cf94(0x480)]=window['setTimeout'](()=>{const _0x581cdf=_0x44cf94;clearTimeout(this[_0x581cdf(0x480)]),this['_retryConnectingTimer']=null,this[_0x581cdf(0x465)]();},_0x4d4150),this[_0x44cf94(0x437)]+=0x1;}[_0x945337(0x518)](_0x1a6396,_0x3e05a9){const _0x4ec95e=_0x945337,{cmd:_0x22e019}=_0x3e05a9;_0x22e019===b['HELLO']&&!this[_0x4ec95e(0x554)]&&(_0x1a6396[_0x4ec95e(0x2ab)]=_0x3e05a9[_0x4ec95e(0x375)][_0x4ec95e(0x2ab)],this[_0x4ec95e(0x56c)]['next'](_0x1a6396),this['_status$'][_0x4ec95e(0x3ca)]($[_0x4ec95e(0x42e)]),this[_0x4ec95e(0x554)]=!0x0,this[_0x4ec95e(0x3e5)]=null),_0x22e019===b[_0x4ec95e(0x489)]&&this[_0x4ec95e(0x501)](),this[_0x4ec95e(0x579)]();}[_0x945337(0x579)](){const _0x14cc36=_0x945337;var _0x1fb4c7;this[_0x14cc36(0x21c)](),this[_0x14cc36(0x529)]=window[_0x14cc36(0x191)](()=>this[_0x14cc36(0x1bf)](),(_0x1fb4c7=this['_configService'][_0x14cc36(0x258)](dt))!=null?_0x1fb4c7:qt);}['_sendHeartbeat'](){const _0x3dfffe=_0x945337;this[_0x3dfffe(0x3fe)]['send']({'cmd':b[_0x3dfffe(0x489)]}),this['_waitForHeartbeatResponse']();}[_0x945337(0x2dc)](){const _0x2b0382=_0x945337;var _0x3471ab;this['_timeoutTimer']=window[_0x2b0382(0x191)](()=>this[_0x2b0382(0x4de)](),(_0x3471ab=this[_0x2b0382(0x4f8)][_0x2b0382(0x258)](Ve))!=null?_0x3471ab:St);}[_0x945337(0x21c)](){const _0x2e418b=_0x945337;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2e418b(0x529)]),this[_0x2e418b(0x529)]=null);}[_0x945337(0x501)](){const _0x29fbbe=_0x945337;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x29fbbe(0x475)]),this[_0x29fbbe(0x475)]=null);}},exports['CollaborationSessionService']=gs([Z(0x0,a['Inject'](a['Injector'])),Z(0x1,a[_0x945337(0x4fa)](a['LocaleService'])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x945337(0x48c)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0x945337(0x24b)],Is=Object[_0x945337(0x3e2)],ps=(_0x4b9396,_0x5d20c2,_0x594158,_0x4b664b)=>{for(var _0xf8506=_0x4b664b>0x1?void 0x0:_0x4b664b?Is(_0x5d20c2,_0x594158):_0x5d20c2,_0x11145b=_0x4b9396['length']-0x1,_0x872b46;_0x11145b>=0x0;_0x11145b--)(_0x872b46=_0x4b9396[_0x11145b])&&(_0xf8506=(_0x4b664b?_0x872b46(_0x5d20c2,_0x594158,_0xf8506):_0x872b46(_0xf8506))||_0xf8506);return _0x4b664b&&_0xf8506&&ms(_0x5d20c2,_0x594158,_0xf8506),_0xf8506;},De=(_0x432036,_0x5b274e)=>(_0x49a5c9,_0x24dff3)=>_0x5b274e(_0x49a5c9,_0x24dff3,_0x432036);let fe=class{constructor(_0x528c38,_0x3ca70a,_0x1bb1c2){const _0x1dac88=_0x945337;this[_0x1dac88(0x3dd)]=_0x528c38,this[_0x1dac88(0x4f2)]=_0x3ca70a,this[_0x1dac88(0x277)]=_0x1bb1c2;}[_0x945337(0x1d1)](_0x4b4948){const _0x146011=_0x945337;this['_transformUndoRedoStack'](_0x4b4948),this[_0x146011(0x511)](_0x4b4948);}[_0x945337(0x201)](_0x52b687){const _0x39ea5d=_0x945337,{unitID:_0x2eb46e}=_0x52b687,_0x399d98=this[_0x39ea5d(0x277)][_0x39ea5d(0x474)](_0x2eb46e)[_0x39ea5d(0x545)](w['DocIMEInputManagerService']),{redoCache:_0x51ac2e}=_0x399d98['getUndoRedoMutationParamsCache']();if(_0x51ac2e[_0x39ea5d(0x3f0)]===0x0)return _0x52b687;let _0x327089=a['Tools'][_0x39ea5d(0x2fe)](_0x52b687[_0x39ea5d(0x435)][0x0]);for(let _0x138ab1=0x0;_0x138ab1<_0x51ac2e[_0x39ea5d(0x3f0)];_0x138ab1++){const _0x208ba8={'id':_0x39ea5d(0x333),'params':{..._0x51ac2e[_0x138ab1]}},_0x27c8c4=this[_0x39ea5d(0x4f2)][_0x39ea5d(0x34c)](_0x327089,_0x208ba8,!0x1);if(_[_0x39ea5d(0x420)](_0x27c8c4))throw _0x27c8c4['error'];_0x327089=_0x27c8c4[_0x39ea5d(0x1f9)];}return{...a[_0x39ea5d(0x4ea)][_0x39ea5d(0x2fe)](_0x52b687),'mutations':[_0x327089]};}[_0x945337(0x456)](_0x30bf68){const _0x4343c1=_0x945337,{unitID:_0xb5490}=_0x30bf68,_0x2c6277=this[_0x4343c1(0x277)][_0x4343c1(0x474)](_0xb5490)[_0x4343c1(0x545)](w['DocIMEInputManagerService']),{undoCache:_0x5dd7e4,redoCache:_0xd9c821}=_0x2c6277[_0x4343c1(0x3f6)]();if(_0x5dd7e4['length']===0x0||_0xd9c821[_0x4343c1(0x3f0)]===0x0)return;const _0x53fd79=[],_0x597bab=[];let _0x5948e0=a[_0x4343c1(0x4ea)][_0x4343c1(0x2fe)](_0x30bf68[_0x4343c1(0x435)][0x0]),_0xc7b081=a['Tools'][_0x4343c1(0x2fe)](_0x30bf68[_0x4343c1(0x435)][0x0]);for(let _0x52e81f=_0x5dd7e4[_0x4343c1(0x3f0)]-0x1;_0x52e81f>=0x0;_0x52e81f--){const _0x18284c={'id':_0x4343c1(0x333),'params':{..._0x5dd7e4[_0x52e81f]}},_0x38be56={'id':_0x4343c1(0x333),'params':{..._0xd9c821[_0x52e81f]}},_0x2ee338=this[_0x4343c1(0x4f2)][_0x4343c1(0x34c)](_0x5948e0,_0x18284c,!0x1),_0x2a68ce=this[_0x4343c1(0x4f2)][_0x4343c1(0x34c)](_0xc7b081,_0x38be56,!0x1);if(_[_0x4343c1(0x420)](_0x2ee338))throw _0x2ee338[_0x4343c1(0x2e8)];if(_[_0x4343c1(0x420)](_0x2a68ce))throw _0x2a68ce[_0x4343c1(0x2e8)];_0x53fd79['unshift'](_0x2ee338[_0x4343c1(0x178)][_0x4343c1(0x17c)]),_0x597bab[_0x4343c1(0x3c8)](_0x2a68ce['m2Prime'][_0x4343c1(0x17c)]),_0x5948e0=_0x2ee338[_0x4343c1(0x1f9)],_0xc7b081=_0x2a68ce[_0x4343c1(0x1f9)];}_0x2c6277[_0x4343c1(0x37e)]({'undoCache':_0x53fd79,'redoCache':_0x597bab});}[_0x945337(0x511)](_0x435d39){const _0x127cd4=_0x945337,{unitID:_0x41f330}=_0x435d39,_0x422320=this[_0x127cd4(0x277)][_0x127cd4(0x474)](_0x41f330)['with'](w[_0x127cd4(0x349)]),_0x3bf790=_0x422320['getActiveRange']();if(_0x3bf790==null)return;const _0x18198f=[{'id':_0x127cd4(0x333),'params':{'unitId':_0x435d39[_0x127cd4(0x1da)],'actions':null,'textRanges':[_0x3bf790]}}],_0x1531a6=this[_0x127cd4(0x4f2)][_0x127cd4(0x4df)](_0x435d39,_0x18198f);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1531a6))throw _0x1531a6[_0x127cd4(0x2e8)];const _0x59ad35=_0x1531a6['m2Prime'][0x0][_0x127cd4(0x17c)]['textRanges'];Array[_0x127cd4(0x48e)](_0x59ad35)&&_0x59ad35[_0x127cd4(0x3f0)]&&_0x422320[_0x127cd4(0x345)](_0x59ad35[0x0]);}};fe=ps([De(0x0,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),De(0x1,_[_0x945337(0x429)]),De(0x2,R[_0x945337(0x2c4)])],fe);var Cs=Object[_0x945337(0x24b)],Es=Object[_0x945337(0x3e2)],bs=(_0x47e384,_0x315431,_0x320af2,_0x2ca51c)=>{const _0x113c19=_0x945337;for(var _0xfeb2e7=_0x2ca51c>0x1?void 0x0:_0x2ca51c?Es(_0x315431,_0x320af2):_0x315431,_0x2d73e2=_0x47e384[_0x113c19(0x3f0)]-0x1,_0x4e02ab;_0x2d73e2>=0x0;_0x2d73e2--)(_0x4e02ab=_0x47e384[_0x2d73e2])&&(_0xfeb2e7=(_0x2ca51c?_0x4e02ab(_0x315431,_0x320af2,_0xfeb2e7):_0x4e02ab(_0xfeb2e7))||_0xfeb2e7);return _0x2ca51c&&_0xfeb2e7&&Cs(_0x315431,_0x320af2,_0xfeb2e7),_0xfeb2e7;},ae=(_0x13c6b3,_0x260db6)=>(_0x440024,_0x3caa59)=>_0x260db6(_0x440024,_0x3caa59,_0x13c6b3);exports[_0x945337(0x3a3)]=class extends a['Disposable']{constructor(_0x65f8fc,_0x146c58,_0x5a2332,_0xb2b72b,_0x81ffe3){const _0x140260=_0x945337;super(),d(this,_0x140260(0x2b1),new Map()),d(this,_0x140260(0x1db),new Map()),d(this,'_disabled',!0x1),(this[_0x140260(0x4f8)]=_0x65f8fc,this[_0x140260(0x1b3)]=_0x146c58,this[_0x140260(0x22a)]=_0x5a2332,this[_0x140260(0x21a)]=_0xb2b72b,this[_0x140260(0x1df)]=_0x81ffe3,this[_0x140260(0x332)]());}[_0x945337(0x19e)](){this['_disabled']=!0x0;}[_0x945337(0x3ea)](){const _0xcaaef3=_0x945337;this[_0xcaaef3(0x339)]=!0x1;}[_0x945337(0x1eb)](){const _0x347815=_0x945337;this[_0x347815(0x249)]()[_0x347815(0x33c)](()=>super['dispose']());}async[_0x945337(0x2d0)](_0x31f37e){const _0x12bbda=_0x945337;return this[_0x12bbda(0x339)]?null:this[_0x12bbda(0x1b3)][_0x12bbda(0x373)](Qe(_0x31f37e));}async[_0x945337(0x1d5)](_0x5f08dc,_0x2c69b5){const _0x5483e2=_0x945337;return!!this['_localStorageService'][_0x5483e2(0x539)](_0x5f08dc,_0x2c69b5);}[_0x945337(0x478)](_0x341bef,_0x208bb2,_0x4c9658,_0x279f9d){const _0x54a35c=_0x945337,_0x4c1c2d=this[_0x54a35c(0x1df)]['getCurrentRevOfUnit'](_0x341bef);this[_0x54a35c(0x2b1)]['set'](_0x341bef,{'unitID':_0x341bef,'type':_0x208bb2,'awaitingChangeset':_0x4c9658,'mutations':_0x279f9d,'rev':_0x4c1c2d}),this[_0x54a35c(0x1db)][_0x54a35c(0x384)](_0x341bef)||this[_0x54a35c(0x379)](_0x341bef);}[_0x945337(0x379)](_0x4ca41d){const _0x54f158=_0x945337,_0x13bd0a=this['_getSaveTimeout']();_0x13bd0a===0x0?this[_0x54f158(0x1ba)](_0x4ca41d):this[_0x54f158(0x1db)][_0x54f158(0x4a8)](_0x4ca41d,setTimeout(()=>this[_0x54f158(0x1ba)](_0x4ca41d),_0x13bd0a));}['_getSaveTimeout'](){const _0x5ac85e=_0x945337;var _0x378131;return(_0x378131=this[_0x5ac85e(0x4f8)][_0x5ac85e(0x258)](ft))!=null?_0x378131:Zt;}[_0x945337(0x1ba)](_0x19f5c2){const _0x5e1702=_0x945337,_0x183774=this[_0x5e1702(0x1db)][_0x5e1702(0x3eb)](_0x19f5c2);return _0x183774!==void 0x0&&window['clearTimeout'](_0x183774),this['_localStorageService'][_0x5e1702(0x539)](Qe(_0x19f5c2),this['_cachedData'][_0x5e1702(0x3eb)](_0x19f5c2))[_0x5e1702(0x33c)](()=>this[_0x5e1702(0x1db)][_0x5e1702(0x532)](_0x19f5c2));}async[_0x945337(0x249)](){const _0xa23ab1=_0x945337,_0x3d39f1=[];this[_0xa23ab1(0x1db)][_0xa23ab1(0x278)]((_0x2f298b,_0x239d12)=>{const _0x43017e=_0xa23ab1;window['clearTimeout'](_0x2f298b),_0x3d39f1[_0x43017e(0x3b0)](this[_0x43017e(0x1ba)](_0x239d12)[_0x43017e(0x33c)](()=>{const _0x143674=_0x43017e;this[_0x143674(0x1db)]['delete'](_0x239d12);}));}),await Promise['all'](_0x3d39f1);}['_setupBeforeClosingHandler'](){const _0x12eb03=_0x945337;this[_0x12eb03(0x50a)](this[_0x12eb03(0x22a)][_0x12eb03(0x226)](()=>{const _0x2685de=_0x12eb03;if(this['_saveTaskMap'][_0x2685de(0x17e)])return this['_localeService']['t'](_0x2685de(0x37d));}));}},exports[_0x945337(0x3a3)]=bs([ae(0x0,a['IConfigService']),ae(0x1,a['ILocalStorageService']),ae(0x2,N[_0x945337(0x4f0)]),ae(0x3,a['Inject'](a[_0x945337(0x299)])),ae(0x4,a[_0x945337(0x4fa)](_[_0x945337(0x574)]))],exports['LocalCacheService']);function Qe(_0x197f2a){const _0x29af2a=_0x945337;return _0x29af2a(0x214)+_0x197f2a;}var Ts=Object[_0x945337(0x24b)],Rs=Object[_0x945337(0x3e2)],Os=(_0x29a423,_0x43510c,_0x4108aa,_0x4baeeb)=>{const _0x3eb295=_0x945337;for(var _0x599eaf=_0x4baeeb>0x1?void 0x0:_0x4baeeb?Rs(_0x43510c,_0x4108aa):_0x43510c,_0x5df3ba=_0x29a423[_0x3eb295(0x3f0)]-0x1,_0x259bd8;_0x5df3ba>=0x0;_0x5df3ba--)(_0x259bd8=_0x29a423[_0x5df3ba])&&(_0x599eaf=(_0x4baeeb?_0x259bd8(_0x43510c,_0x4108aa,_0x599eaf):_0x259bd8(_0x599eaf))||_0x599eaf);return _0x4baeeb&&_0x599eaf&&Ts(_0x43510c,_0x4108aa,_0x599eaf),_0x599eaf;},ye=(_0x3878d6,_0x288cbf)=>(_0x17d82b,_0x481ce9)=>_0x288cbf(_0x17d82b,_0x481ce9,_0x3878d6);function Ds(_0x24aca8){const _0x1f988d=_0x945337,{unitID:_0x4472a7,mutations:_0x534153}=_0x24aca8;return{'unitId':_0x4472a7,'subUnitId':_0x534153[0x0][_0x1f988d(0x17c)][_0x1f988d(0x215)]};}let ge=class{constructor(_0x27abcf,_0x583db8,_0x6443df){const _0xfadf4e=_0x945337;this[_0xfadf4e(0x3dd)]=_0x27abcf,this[_0xfadf4e(0x4f2)]=_0x583db8,this[_0xfadf4e(0x3f4)]=_0x6443df;}[_0x945337(0x463)](_0x2ac23a){const _0xf87398=_0x945337;var _0x2ff856,_0x4ca257,_0x5f2be0,_0x417246;const _0x1658d0=this['_injector'][_0xf87398(0x3eb)](C[_0xf87398(0x403)]),{unitId:_0x1c11f5,subUnitId:_0x362f3f}=Ds(_0x2ac23a),_0x4e53c9=_0x1658d0[_0xf87398(0x471)](_0x1c11f5)[_0xf87398(0x57f)](),_0x30e285=(_0x4ca257=(_0x2ff856=this[_0xf87398(0x3f4)]['getUnit'](_0x1c11f5))==null?void 0x0:_0x2ff856[_0xf87398(0x4be)]())==null?void 0x0:_0x4ca257['getSheetId']();if(_0x4e53c9[_0xf87398(0x3f0)]===0x0||!_0x1c11f5||!_0x362f3f)return;const _0x5323cd=[{'id':C[_0xf87398(0x4d1)]['id'],'params':{'unitId':_0x1c11f5,'subUnitId':_0x30e285,'selections':a['Tools'][_0xf87398(0x2fe)](_0x4e53c9)}}],_0x4eea70=this[_0xf87398(0x4f2)][_0xf87398(0x4df)](_0x2ac23a,_0x5323cd);if(!_[_0xf87398(0x3f7)](_0x4eea70))throw _0x4eea70[_0xf87398(0x2e8)];const _0x8e4cc6=(_0x417246=(_0x5f2be0=_0x4eea70['m2Prime'][0x0])==null?void 0x0:_0x5f2be0[_0xf87398(0x17c)])==null?void 0x0:_0x417246[_0xf87398(0x53f)];Array[_0xf87398(0x48e)](_0x8e4cc6)&&_0x8e4cc6[_0xf87398(0x3f0)]&&this['_injector'][_0xf87398(0x3eb)](a[_0xf87398(0x400)])[_0xf87398(0x505)](C['SetSelectionsOperation']['id'],{'unitId':_0x1c11f5,'subUnitId':_0x30e285,'selections':_0x8e4cc6});}};ge=Os([ye(0x0,a['Inject'](a['Injector'])),ye(0x1,_[_0x945337(0x429)]),ye(0x2,a[_0x945337(0x57b)])],ge);const be=a[_0x945337(0x36a)](_0x945337(0x26a));var bt=(_0x4c216c=>(_0x4c216c[_0x4c216c[_0x945337(0x4d4)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x4c216c[_0x4c216c[_0x945337(0x2fd)]=0x1]=_0x945337(0x2fd),_0x4c216c))(bt||{});const et=0x7530,tt=_0x945337(0x1fa);class ys extends a['Disposable']{constructor(){const _0x4689d4=_0x945337;super(),d(this,_0x4689d4(0x534),a[_0x4689d4(0x4ea)][_0x4689d4(0x227)]()),d(this,_0x4689d4(0x4b3),new Set()),d(this,'_unitOnClients',new Map()),d(this,'_heartbeatTimer',null),d(this,_0x4689d4(0x204),new Map()),d(this,_0x4689d4(0x2c5),new Map()),this[_0x4689d4(0x458)]();}[_0x945337(0x1eb)](){const _0x1c755b=_0x945337;super[_0x1c755b(0x1eb)](),this[_0x1c755b(0x204)][_0x1c755b(0x278)]((_0x4b6e43,_0x5bf2fa)=>this[_0x1c755b(0x4f9)](_0x5bf2fa)),this[_0x1c755b(0x1bb)]&&window[_0x1c755b(0x453)](this['_heartbeatTimer']);}['getUnitStatus$'](_0xf27a3a){const _0x24355c=_0x945337;return this[_0x24355c(0x472)](_0xf27a3a)[_0x24355c(0x550)](v[_0x24355c(0x578)]());}[_0x945337(0x507)](_0x3ba87b){const _0x37a4b5=_0x945337;this[_0x37a4b5(0x4b3)]['size']===0x0&&this[_0x37a4b5(0x49a)](),this['_selfUnitIDs']['add'](_0x3ba87b),this[_0x37a4b5(0x583)]({'type':0x0,'memberID':this[_0x37a4b5(0x534)],'unitIDs':[_0x3ba87b],'isForwarded':!0x1});}[_0x945337(0x4c9)](_0x288dc0){const _0x15c026=_0x945337;this[_0x15c026(0x4b3)][_0x15c026(0x532)](_0x288dc0),this['_selfUnitIDs'][_0x15c026(0x17e)]===0x0&&this[_0x15c026(0x1bb)]&&window[_0x15c026(0x453)](this['_heartbeatTimer']);}[_0x945337(0x458)](){const _0xcfc091=_0x945337;this[_0xcfc091(0x50a)](a[_0xcfc091(0x296)](v[_0xcfc091(0x223)](window,_0xcfc091(0x31c))[_0xcfc091(0x397)](_0x2411ca=>{const _0x3ea18f=_0xcfc091;if(_0x2411ca[_0x3ea18f(0x269)]!==tt||!_0x2411ca[_0x3ea18f(0x287)])return;const _0x57372e=JSON[_0x3ea18f(0x2e0)](_0x2411ca['newValue']);this[_0x3ea18f(0x1c7)](_0x57372e);}))),window['addEventListener']('unload',()=>this[_0xcfc091(0x583)]({'type':0x1,'memberID':this[_0xcfc091(0x534)],'unitIDs':Array[_0xcfc091(0x3f2)](this[_0xcfc091(0x4b3)])}));}[_0x945337(0x1c7)](_0x1cc4e1){const _0x2a4f80=_0x945337;switch(_0x1cc4e1[_0x2a4f80(0x243)]){case 0x0:this[_0x2a4f80(0x23b)](_0x1cc4e1);break;case 0x1:this[_0x2a4f80(0x2e6)](_0x1cc4e1);break;case 0x2:this[_0x2a4f80(0x3d5)](_0x1cc4e1);break;}}['_handleJoinEvent'](_0x8f6b67){const _0x5e59d1=_0x945337,{unitIDs:_0x42f0cb,memberID:_0x230bb3,isForwarded:_0x3e143e}=_0x8f6b67;_0x42f0cb['forEach'](_0x12936e=>{const _0x21a12a=_0x38f3;if(!_0x3e143e&&this[_0x21a12a(0x254)][_0x21a12a(0x384)](_0x12936e)&&this[_0x21a12a(0x472)](_0x12936e)[_0x21a12a(0x3ca)](0x1),!this[_0x21a12a(0x254)][_0x21a12a(0x384)](_0x12936e)||!this[_0x21a12a(0x254)]['get'](_0x12936e)[_0x21a12a(0x384)](_0x230bb3)){const _0x418327=this['_unitOnClients'][_0x21a12a(0x3eb)](_0x12936e)||new Set();_0x418327[_0x21a12a(0x18a)](_0x230bb3),this[_0x21a12a(0x254)]['set'](_0x12936e,_0x418327),this[_0x21a12a(0x3d4)](_0x230bb3);}}),_0x3e143e||this[_0x5e59d1(0x583)]({'type':0x0,'memberID':this[_0x5e59d1(0x534)],'unitIDs':[...this[_0x5e59d1(0x4b3)]],'isForwarded':!0x0});}[_0x945337(0x3d4)](_0x8582dd){const _0x36fc95=_0x945337;this[_0x36fc95(0x4f9)](_0x8582dd);const _0x30eed1=window[_0x36fc95(0x191)](()=>{const _0x295644=_0x36fc95;this['_unitOnClients'][_0x295644(0x278)](_0x278f4a=>{const _0x55b4f6=_0x295644;_0x278f4a[_0x55b4f6(0x532)](_0x8582dd);});},et*0x2);this[_0x36fc95(0x204)][_0x36fc95(0x4a8)](_0x8582dd,_0x30eed1);}[_0x945337(0x4f9)](_0x1602ca){const _0x4a0fe7=_0x945337;if(this[_0x4a0fe7(0x204)][_0x4a0fe7(0x384)](_0x1602ca)){const _0x358cd4=this['_clearOtherTimers'][_0x4a0fe7(0x3eb)](_0x1602ca);_0x358cd4&&window[_0x4a0fe7(0x509)](_0x358cd4),this['_clearOtherTimers'][_0x4a0fe7(0x4a8)](_0x1602ca,null);}}[_0x945337(0x2e6)](_0x5eeca9){const _0x1dd8b2=_0x945337,{memberID:_0x189aa1,unitIDs:_0x5c65db}=_0x5eeca9;_0x5c65db['forEach'](_0xa91862=>{const _0x55173c=_0x38f3;var _0x375d31;const _0x2d0be6=this[_0x55173c(0x254)][_0x55173c(0x3eb)](_0xa91862);_0x2d0be6&&(_0x2d0be6[_0x55173c(0x532)](_0x189aa1),(_0x375d31=this[_0x55173c(0x472)](_0xa91862))==null||_0x375d31[_0x55173c(0x3ca)](_0x2d0be6[_0x55173c(0x17e)]===0x0?0x0:0x1));}),this[_0x1dd8b2(0x4f9)](_0x189aa1);}['_handleHeartbeatEvent'](_0x177aee){const _0x15071a=_0x945337;this[_0x15071a(0x3d4)](_0x177aee[_0x15071a(0x2ab)]);}['_send'](_0x826abf){const _0x162eee=_0x945337;localStorage[_0x162eee(0x539)](tt,JSON[_0x162eee(0x22d)](_0x826abf));}['_scheduleHeartbeat'](){const _0x482c89=_0x945337;this[_0x482c89(0x1bb)]=window[_0x482c89(0x330)](()=>{const _0x4a2553=_0x482c89;this[_0x4a2553(0x583)]({'type':0x2,'memberID':this['_id']});},et);}[_0x945337(0x472)](_0x119ef7){const _0x3b85c1=_0x945337;return this[_0x3b85c1(0x2c5)]['has'](_0x119ef7)||this['_unitStatus'][_0x3b85c1(0x4a8)](_0x119ef7,new v[(_0x3b85c1(0x52c))](0x0)),this[_0x3b85c1(0x2c5)]['get'](_0x119ef7);}}function Tt(_0x124cab){const _0x3084e1=_0x945337;let _0x390d60='';for(const _0x599cc5 of _0x124cab){const {startOffset:_0x227c3b,endOffset:_0x1ed78d,isActive:_0x3eac78}=_0x599cc5;_0x390d60[_0x3084e1(0x3f0)]&&(_0x390d60+=','),_0x390d60+=_0x227c3b+':'+_0x1ed78d+':'+(_0x3eac78?'1':'0');}return _0x390d60;}function Us(_0x155c39){const _0x25300d=_0x945337,_0x2f9a0f=_0x155c39[_0x25300d(0x45c)](','),_0x2ee330=[];for(const _0x2775b0 of _0x2f9a0f){const [_0xddd380,_0x472e34,_0xcb986c]=_0x2775b0[_0x25300d(0x45c)](':');_0x2ee330[_0x25300d(0x3b0)]({'startOffset':Number(_0xddd380),'endOffset':Number(_0x472e34),'collapsed':_0xddd380===_0x472e34,'isActive':_0xcb986c==='1'});}return _0x2ee330['some'](_0x12e785=>_0x12e785[_0x25300d(0x3db)])||(_0x2ee330[0x0][_0x25300d(0x3db)]=!0x0),_0x2ee330;}class Ye extends a[_0x945337(0x538)]{constructor(){const _0x5bee9e=_0x945337;super(...arguments),d(this,_0x5bee9e(0x582),new v[(_0x5bee9e(0x52c))](null)),d(this,_0x5bee9e(0x23e),this[_0x5bee9e(0x582)][_0x5bee9e(0x19b)]());}[_0x945337(0x271)](_0xe5d895){const _0x1f4eee=_0x945337,{unitID:_0x57aa10,memberID:_0x31f9f2,textRanges:_0x9fcf74}=_0xe5d895,_0xa0bfcd=Tt(_0x9fcf74),_0x52e83f={'unitID':_0x57aa10,'memberID':_0x31f9f2,'selection':_0xa0bfcd};this[_0x1f4eee(0x582)][_0x1f4eee(0x3ca)](_0x52e83f);}}var Ps=Object[_0x945337(0x24b)],ws=Object[_0x945337(0x3e2)],Ms=(_0x148505,_0x2934bf,_0x21ead1,_0x1d521b)=>{const _0x3ea87f=_0x945337;for(var _0x479a63=_0x1d521b>0x1?void 0x0:_0x1d521b?ws(_0x2934bf,_0x21ead1):_0x2934bf,_0x156423=_0x148505[_0x3ea87f(0x3f0)]-0x1,_0x232b95;_0x156423>=0x0;_0x156423--)(_0x232b95=_0x148505[_0x156423])&&(_0x479a63=(_0x1d521b?_0x232b95(_0x2934bf,_0x21ead1,_0x479a63):_0x232b95(_0x479a63))||_0x479a63);return _0x1d521b&&_0x479a63&&Ps(_0x2934bf,_0x21ead1,_0x479a63),_0x479a63;},st=(_0x4ce950,_0xac32a3)=>(_0x50bd13,_0x4c4814)=>_0xac32a3(_0x50bd13,_0x4c4814,_0x4ce950);let me=class{constructor(_0x3b16f8,_0x5127c5){const _0x123759=_0x945337;this[_0x123759(0x3dd)]=_0x3b16f8,this[_0x123759(0x4f2)]=_0x5127c5;}[_0x945337(0x463)](_0x133cb1){const _0x3e3eb0=_0x945337;var _0x2bc918;const _0x5ecf6d=this[_0x3e3eb0(0x3dd)][_0x3e3eb0(0x3eb)](V[_0x3e3eb0(0x1e0)]),_0xd2b192=(_0x2bc918=_0x5ecf6d[_0x3e3eb0(0x351)]())!=null?_0x2bc918:[];if(_0xd2b192[_0x3e3eb0(0x3f0)]===0x0)return;const _0x5e21ef=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x133cb1[_0x3e3eb0(0x1da)],'actions':null,'textRanges':_0xd2b192}}],_0x128103=this[_0x3e3eb0(0x4f2)][_0x3e3eb0(0x4df)](_0x133cb1,_0x5e21ef);if(!_['isTransformMutationsWithChangesetSuccess'](_0x128103))throw _0x128103[_0x3e3eb0(0x2e8)];const _0x41615b=_0x128103[_0x3e3eb0(0x178)][0x0]['params'][_0x3e3eb0(0x485)];Array[_0x3e3eb0(0x48e)](_0x41615b)&&_0x41615b['length']&&_0x5ecf6d['replaceTextRanges'](_0x41615b,!0x1);}};me=Ms([st(0x0,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),st(0x1,_[_0x945337(0x429)])],me);const Ns=new Set([C[_0x945337(0x1b4)]['id']]);function it(_0x2178e8,_0x490897,_0x25d842,_0x57b35c,_0x10423d){const _0x2d446c=_0x945337;var _0x11795b,_0x4a5109,_0x2192ed,_0x2de3c6;const _0x3483e5=[];for(const _0x253c5d of _0x2178e8)if(Ns[_0x2d446c(0x384)](_0x253c5d['id'])){if(_0x3483e5['length']>0x0)break;_0x3483e5['push'](_0x253c5d);break;}else _0x3483e5[_0x2d446c(0x3b0)](_0x253c5d);const _0x28b66e=(_0x4a5109=(_0x11795b=_0x10423d[_0x2d446c(0x307)]())==null?void 0x0:_0x11795b[_0x2d446c(0x4e9)])!=null?_0x4a5109:_0x2d446c(0x45d),_0x1f8cc9=(_0x2de3c6=(_0x2192ed=_0x10423d[_0x2d446c(0x307)]())==null?void 0x0:_0x2192ed[_0x2d446c(0x2ab)])!=null?_0x2de3c6:'unknown';return{'changeset':{'unitID':_0x490897,'type':_[_0x2d446c(0x543)](_0x25d842[_0x2d446c(0x27c)](_0x490897)),'baseRev':_0x57b35c[_0x2d446c(0x436)](_0x490897),'revision':0x0,'userID':_0x28b66e,'memberID':_0x1f8cc9,'mutations':_0x3483e5},'pendingMutations':_0x2178e8['slice'](_0x3483e5[_0x2d446c(0x3f0)])};}function As(_0x10828b,_0xe5c7aa,_0x1acfea,_0xaf7c99,_0x398922){const _0x1086cc=_0x945337;var _0x2f3028,_0x38b990,_0x847f92,_0x3326f2;const _0x14bb9c=[_0x10828b[_0x1086cc(0x580)]((_0x16e671,_0x7c8c97)=>{const _0x109d41=_0x1086cc;var _0x46b416;const {id:_0x359a04}=_0x16e671,{id:_0x37aa9c,type:_0x472b07}=_0x7c8c97,_0x2322ff=(_0x46b416=_0x16e671['params'])!=null?_0x46b416:{'actions':null},_0x4e0e4c=_0x7c8c97['params'];if(_0x359a04&&_0x359a04!==_0x37aa9c)throw new Error(_0x109d41(0x514)+_0x359a04+'\x20-\x20'+_0x37aa9c+'.');return{..._0x16e671,'id':_0x37aa9c,'type':_0x472b07,'params':{'unitId':_0x4e0e4c['unitId'],'textRanges':_0x4e0e4c['textRanges'],'actions':a['JSONX'][_0x109d41(0x4b0)](_0x2322ff[_0x109d41(0x3ef)],_0x4e0e4c[_0x109d41(0x3ef)])}};},{})],_0x410337=(_0x38b990=(_0x2f3028=_0x398922[_0x1086cc(0x307)]())==null?void 0x0:_0x2f3028[_0x1086cc(0x4e9)])!=null?_0x38b990:_0x1086cc(0x45d),_0x29e141=(_0x3326f2=(_0x847f92=_0x398922[_0x1086cc(0x307)]())==null?void 0x0:_0x847f92[_0x1086cc(0x2ab)])!=null?_0x3326f2:_0x1086cc(0x45d);return{'changeset':{'unitID':_0xe5c7aa,'type':_[_0x1086cc(0x543)](_0x1acfea[_0x1086cc(0x27c)](_0xe5c7aa)),'baseRev':_0xaf7c99['getCurrentRevOfUnit'](_0xe5c7aa),'revision':0x0,'userID':_0x410337,'memberID':_0x29e141,'mutations':_0x14bb9c},'pendingMutations':[]};}const Ls={'id':C[_0x945337(0x3d7)]['id'],'type':a[_0x945337(0x2fb)]['MUTATION'],'params':{}};var js=Object['defineProperty'],$s=Object[_0x945337(0x3e2)],z=(_0xb40d41,_0x352fe2,_0x337cfa,_0xf5965f)=>{const _0x41500f=_0x945337;for(var _0x25bb19=_0xf5965f>0x1?void 0x0:_0xf5965f?$s(_0x352fe2,_0x337cfa):_0x352fe2,_0x3b2546=_0xb40d41[_0x41500f(0x3f0)]-0x1,_0x7d414d;_0x3b2546>=0x0;_0x3b2546--)(_0x7d414d=_0xb40d41[_0x3b2546])&&(_0x25bb19=(_0xf5965f?_0x7d414d(_0x352fe2,_0x337cfa,_0x25bb19):_0x7d414d(_0x25bb19))||_0x25bb19);return _0xf5965f&&_0x25bb19&&js(_0x352fe2,_0x337cfa,_0x25bb19),_0x25bb19;},g=(_0x3364fb,_0x2a4b89)=>(_0x1f7f1a,_0x291287)=>_0x2a4b89(_0x1f7f1a,_0x291287,_0x3364fb),y=(_0x34c214=>(_0x34c214['NOT_COLLAB']=_0x945337(0x2bd),_0x34c214[_0x945337(0x4fb)]=_0x945337(0x4ad),_0x34c214[_0x945337(0x1a2)]=_0x945337(0x358),_0x34c214[_0x945337(0x2c9)]=_0x945337(0x3ba),_0x34c214[_0x945337(0x564)]=_0x945337(0x1ec),_0x34c214[_0x945337(0x2bf)]=_0x945337(0x24f),_0x34c214[_0x945337(0x486)]=_0x945337(0x3d3),_0x34c214[_0x945337(0x482)]=_0x945337(0x1c1),_0x34c214))(y||{});class J{constructor(_0x50e770,_0x2a2d82,_0x90f9c3,_0x48a2c7,_0x2e369c,_0xada5e8,_0x5e4889,_0xa2c0bc,_0x42caa3){const _0x6b5f80=_0x945337;d(this,_0x6b5f80(0x423),null),d(this,_0x6b5f80(0x194),[]),(this[_0x6b5f80(0x1da)]=_0x50e770,this[_0x6b5f80(0x243)]=_0x2a2d82,this[_0x6b5f80(0x404)]=_0x2e369c,this[_0x6b5f80(0x256)]=_0xada5e8,this[_0x6b5f80(0x217)]=_0x5e4889,this[_0x6b5f80(0x1df)]=_0xa2c0bc,this[_0x6b5f80(0x576)]=_0x42caa3,this[_0x6b5f80(0x423)]=_0x90f9c3,this['_pendingMutations']=_0x48a2c7);}['_checkMissing'](_0xac8a6e){const _0x3aa100=_0x945337,_0x428121=this[_0x3aa100(0x1df)]['getCurrentRevOfUnit'](this[_0x3aa100(0x1da)]);return _0xac8a6e[_0x3aa100(0x289)]>_0x428121+0x1?(this[_0x3aa100(0x404)][_0x3aa100(0x324)]({'from':_0x428121,'to':_0xac8a6e[_0x3aa100(0x289)]-0x1}),!0x0):!0x1;}[_0x945337(0x2c7)](_0x36bed7){const _0x574999=_0x945337;this[_0x574999(0x217)][_0x574999(0x1d0)](this[_0x574999(0x1da)],_0x36bed7);}[_0x945337(0x448)](_0x57629b){const _0x56968d=_0x945337;var _0x232419,_0x47e5c7;(_0x47e5c7=(_0x232419=this['_handler'])[_0x56968d(0x454)])==null||_0x47e5c7['call'](_0x232419,_0x57629b);}[_0x945337(0x334)](_0x53f89c){const _0x37b998=_0x945337;var _0x338d67,_0x28f1f5;return(_0x28f1f5=(_0x338d67=this[_0x37b998(0x404)])[_0x37b998(0x3d2)])==null?void 0x0:_0x28f1f5[_0x37b998(0x441)](_0x338d67,_0x53f89c);}[_0x945337(0x497)](_0x208d53){const _0x526f68=_0x945337;var _0x18100e,_0x281f98,_0x57a774;return(_0x57a774=(_0x281f98=(_0x18100e=this[_0x526f68(0x404)])[_0x526f68(0x1b1)])==null?void 0x0:_0x281f98[_0x526f68(0x441)](_0x18100e,_0x208d53))!=null?_0x57a774:_0x208d53;}[_0x945337(0x2b3)](_0x182f5a){const _0x577cb6=_0x945337;var _0x4d5d7b,_0x490ba8;if(this[_0x577cb6(0x243)]===j['UNIVER_DOC']){const {unitID:_0x5901a2,mutations:_0x48c239,memberID:_0x591151}=_0x182f5a,_0x1a1f27=_0x48c239[0x0]['params'][_0x577cb6(0x485)];Array[_0x577cb6(0x48e)](_0x1a1f27)&&_0x1a1f27[_0x577cb6(0x3f0)]>0x0&&((_0x490ba8=(_0x4d5d7b=this[_0x577cb6(0x404)])[_0x577cb6(0x54a)])==null||_0x490ba8['call'](_0x4d5d7b,{'unitID':_0x5901a2,'memberID':_0x591151,'textRanges':_0x1a1f27}));}}[_0x945337(0x581)](){const _0x609db7=_0x945337;this[_0x609db7(0x576)]['updateOfflineData'](this[_0x609db7(0x1da)],this[_0x609db7(0x243)],this[_0x609db7(0x423)],this['_pendingMutations']);}[_0x945337(0x1c0)](){const _0x27069e=_0x945337;return this[_0x27069e(0x1df)][_0x27069e(0x436)](this[_0x27069e(0x1da)]);}[_0x945337(0x2d7)](){const _0x2a4ca2=_0x945337;this['_revisionService'][_0x2a4ca2(0x4d8)](this['unitID']);}[_0x945337(0x363)](_0x4bf075){const _0x308872=_0x945337;var _0x2fe336;const _0x1d38e4=this['_transformRemoteChangesetByIMECache'](_0x4bf075),_0x13bb8c=a[_0x308872(0x39a)](_0x1d38e4[_0x308872(0x435)],this[_0x308872(0x256)],{'fromCollab':!0x0});if(!_0x13bb8c[_0x308872(0x331)])throw _0x13bb8c[_0x308872(0x2e8)]instanceof Error?_0x13bb8c[_0x308872(0x2e8)]:new Error((_0x2fe336=_0x13bb8c[_0x308872(0x2e8)])!=null?_0x2fe336:_0x308872(0x2de));this[_0x308872(0x334)](_0x1d38e4),this[_0x308872(0x2c7)](_0x4bf075),this[_0x308872(0x448)](_0x1d38e4),this['_syncEditingCollabCursor'](_0x1d38e4),this[_0x308872(0x2d7)]();}}let se=class extends J{constructor(_0x588e6a,_0x47b21d,_0x2df9c7,_0x14389d,_0x56cfb8,_0x207c43,_0x582cb7,_0x2d5af2,_0x4edb3f,_0xe12a29){const _0x2e4554=_0x945337;super(_0x588e6a,_0x47b21d,null,[],_0x2df9c7,_0x2d5af2,_0x582cb7,_0x14389d,_0x56cfb8),d(this,_0x2e4554(0x44d),'synced'),(this[_0x2e4554(0x3dd)]=_0x207c43,this[_0x2e4554(0x4ae)]=_0x4edb3f,this[_0x2e4554(0x4f2)]=_0xe12a29);}[_0x945337(0x561)](_0x137776){const _0x293b6e=_0x945337,_0x18f7f8=this['_injector'][_0x293b6e(0x39d)](x,this[_0x293b6e(0x1da)],this[_0x293b6e(0x243)],[_0x137776],this[_0x293b6e(0x404)]);return _0x18f7f8[_0x293b6e(0x2bc)](),_0x18f7f8[_0x293b6e(0x581)](),_0x18f7f8;}['onRemoteChangeset'](_0x2937bc){const _0x269718=_0x945337;if(this[_0x269718(0x35d)](_0x2937bc))return this['_injector'][_0x269718(0x39d)](H,this[_0x269718(0x1da)],this[_0x269718(0x243)],null,[],null,[_0x2937bc],this['_handler']);try{const _0x304193=this['_transformService'][_0x269718(0x4df)](_0x2937bc,[Ls]);if(_[_0x269718(0x3f7)](_0x304193)){const {c1Prime:_0x27075e}=_0x304193;return this['_executeRemoteChangeset'](_0x27075e),this;}throw _0x304193['error'];}catch(_0x2476ea){return this[_0x269718(0x4ae)][_0x269718(0x2e8)](_0x2476ea),this[_0x269718(0x3f5)](!0x1);}}[_0x945337(0x3f5)](_0x59732d){const _0x4a2cc9=_0x945337;return this[_0x4a2cc9(0x3dd)][_0x4a2cc9(0x39d)](F,this[_0x4a2cc9(0x1da)],this[_0x4a2cc9(0x243)],null,[],this[_0x4a2cc9(0x404)],_0x59732d);}['onRemoteAck'](){const _0x2669ee=_0x945337;throw new Error(_0x2669ee(0x50e));}[_0x945337(0x294)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x945337(0x506)](){const _0x1c6831=_0x945337;return this[_0x1c6831(0x3dd)][_0x1c6831(0x39d)](G,this[_0x1c6831(0x1da)],this['type'],null,[],this[_0x1c6831(0x404)]);}[_0x945337(0x267)](){return this;}[_0x945337(0x4a4)](){const _0x2fa7a6=_0x945337;throw new Error(_0x2fa7a6(0x3d8));}[_0x945337(0x2e2)](){const _0x5443c8=_0x945337,_0x3db652=this[_0x5443c8(0x1df)]['getCurrentRevOfUnit'](this[_0x5443c8(0x1da)]);return this[_0x5443c8(0x404)][_0x5443c8(0x324)]({'from':_0x3db652,'to':0x0}),this[_0x5443c8(0x3dd)]['createInstance'](H,this[_0x5443c8(0x1da)],this[_0x5443c8(0x243)],null,[],null,[],this[_0x5443c8(0x404)]);}};se=z([g(0x3,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0x4,a[_0x945337(0x4fa)](exports['LocalCacheService'])),g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x38b)]),g(0x7,a[_0x945337(0x400)]),g(0x8,a['ILogService']),g(0x9,_[_0x945337(0x429)])],se);let x=class extends J{constructor(_0x412cff,_0x57aebd,_0x572848,_0xdce8c8,_0x5ee1d2,_0x51abab,_0x34e288,_0x8e86e1,_0x46e0de,_0x4ff8a8,_0x5434dd,_0x50d27e,_0xaf42f5,_0x689533){const _0x18f15a=_0x945337;super(_0x412cff,_0x57aebd,null,_0x572848,_0xdce8c8,_0x4ff8a8,_0x689533,_0x51abab,_0x34e288),d(this,_0x18f15a(0x44d),_0x18f15a(0x358)),d(this,_0x18f15a(0x41b),null),d(this,_0x18f15a(0x549),null),(this[_0x18f15a(0x3dd)]=_0x5ee1d2,this[_0x18f15a(0x526)]=_0x8e86e1,this['_logService']=_0x46e0de,this[_0x18f15a(0x4f8)]=_0x5434dd,this[_0x18f15a(0x4f2)]=_0x50d27e,this[_0x18f15a(0x337)]=_0xaf42f5);}['appendMutation'](_0x5d52b0){const _0x4e4ba6=_0x945337;return this[_0x4e4ba6(0x194)]['push'](_0x5d52b0),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xeda696){const _0x105be4=_0x945337;if(this[_0x105be4(0x35d)](_0xeda696))return this[_0x105be4(0x47e)](),this[_0x105be4(0x3dd)]['createInstance'](H,this[_0x105be4(0x1da)],this[_0x105be4(0x243)],null,this[_0x105be4(0x194)],null,[_0xeda696],this[_0x105be4(0x404)]);try{const _0x4b13bc=this[_0x105be4(0x4f2)][_0x105be4(0x4df)](_0xeda696,this[_0x105be4(0x194)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x4b13bc)){const {c1Prime:_0x815735,m2Prime:_0x2410ec}=_0x4b13bc;this[_0x105be4(0x363)](_0x815735);const _0x59ccba=this[_0x105be4(0x3dd)][_0x105be4(0x39d)](x,this['unitID'],this[_0x105be4(0x243)],_0x2410ec,this[_0x105be4(0x404)]);return this[_0x105be4(0x47e)](),_0x59ccba[_0x105be4(0x2bc)](this['_scheduleTimestamp']?Math[_0x105be4(0x25c)](0x0,new Date()[_0x105be4(0x548)]()-this[_0x105be4(0x41b)]):this[_0x105be4(0x2dd)]()),_0x59ccba;}throw _0x4b13bc[_0x105be4(0x2e8)];}catch(_0x390393){return this[_0x105be4(0x4ae)][_0x105be4(0x2e8)](_0x390393),this[_0x105be4(0x3f5)](!0x1);}}['onRemoteAck'](){const _0x1b86cf=_0x945337;throw new Error(_0x1b86cf(0x4a0));}[_0x945337(0x294)](){const _0x2229a7=_0x945337;throw new Error(_0x2229a7(0x516));}['toggleOffline'](){const _0x15b610=_0x945337;return this[_0x15b610(0x47e)](),this[_0x15b610(0x3dd)]['createInstance'](G,this[_0x15b610(0x1da)],this[_0x15b610(0x243)],null,this[_0x15b610(0x194)],this[_0x15b610(0x404)]);}['toggleOnline'](){return this;}['_schedule'](_0x2cf31e){const _0x5eab48=_0x945337,_0x21f151=_0x2cf31e!=null?_0x2cf31e:this[_0x5eab48(0x2dd)]();this['_scheduleTimestamp']=new Date()[_0x5eab48(0x548)](),this[_0x5eab48(0x549)]=window[_0x5eab48(0x191)](()=>{const _0x14800d=_0x5eab48;this[_0x14800d(0x47e)]();let _0x10f2af=null;switch(this[_0x14800d(0x243)]){case j[_0x14800d(0x53c)]:{_0x10f2af=it(this[_0x14800d(0x194)],this['unitID'],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]);break;}case j[_0x14800d(0x395)]:{this[_0x14800d(0x194)]['every'](_0x21d9ea=>_0x21d9ea['id']===V[_0x14800d(0x316)]['id'])?_0x10f2af=As(this[_0x14800d(0x194)],this[_0x14800d(0x1da)],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]):_0x10f2af=it(this['_pendingMutations'],this[_0x14800d(0x1da)],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]);break;}default:throw new Error(_0x14800d(0x31d)+this[_0x14800d(0x243)]+_0x14800d(0x2f2));}const {changeset:_0x1029c3,pendingMutations:_0x611d72}=_0x10f2af;this[_0x14800d(0x404)][_0x14800d(0x468)](_0x1029c3);const _0xc792f7=_0x611d72['length']?this[_0x14800d(0x3dd)][_0x14800d(0x39d)](k,this[_0x14800d(0x1da)],this[_0x14800d(0x243)],_0x1029c3,_0x611d72,this[_0x14800d(0x404)]):this['_injector'][_0x14800d(0x39d)](W,this[_0x14800d(0x1da)],this[_0x14800d(0x243)],_0x1029c3,this[_0x14800d(0x404)]);_0xc792f7['_updateLocalCache'](),this[_0x14800d(0x404)][_0x14800d(0x20e)](this,_0xc792f7);},_0x21f151);}[_0x945337(0x2dd)](){const _0x3fc188=_0x945337;var _0xba7890;const _0xaf034=this[_0x3fc188(0x4f8)]['getConfig'](A);return(_0xba7890=_0xaf034==null?void 0x0:_0xaf034['sendChangesetTimeout'])!=null?_0xba7890:Kt;}[_0x945337(0x4a4)](){const _0x4bf310=_0x945337;throw new Error(_0x4bf310(0x1cf));}['_clearScheduledTask'](){const _0x41b97b=_0x945337;this['_sendingTimer']!=null&&(clearTimeout(this[_0x41b97b(0x549)]),this['_sendingTimer']=null);}[_0x945337(0x3f5)](_0x2490b0){const _0x15c6a1=_0x945337;return this[_0x15c6a1(0x47e)](),this[_0x15c6a1(0x3dd)][_0x15c6a1(0x39d)](F,this[_0x15c6a1(0x1da)],this[_0x15c6a1(0x243)],null,this[_0x15c6a1(0x194)],this[_0x15c6a1(0x404)],_0x2490b0);}};x=z([g(0x4,a['Inject'](a['Injector'])),g(0x5,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x6,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x7,a[_0x945337(0x4fa)](q)),g(0x8,a[_0x945337(0x48c)]),g(0x9,a[_0x945337(0x400)]),g(0xa,a[_0x945337(0x1f7)]),g(0xb,_['ITransformService']),g(0xc,a[_0x945337(0x57b)]),g(0xd,a[_0x945337(0x38b)])],x);let W=class extends J{constructor(_0x538d91,_0x3f37db,_0x5f5c12,_0x4c741a,_0x2a392e,_0x2c8ccf,_0x3b5408,_0x42bfef,_0x1a6590,_0x1d2ab4,_0x4aa720){const _0x370454=_0x945337;super(_0x538d91,_0x3f37db,_0x5f5c12,[],_0x4c741a,_0x42bfef,_0x4aa720,_0x2c8ccf,_0x3b5408),d(this,'status',_0x370454(0x3ba)),(this[_0x370454(0x3dd)]=_0x2a392e,this[_0x370454(0x4ae)]=_0x1a6590,this['_transformService']=_0x1d2ab4);}[_0x945337(0x561)](_0x33c544){const _0x54b8a8=_0x945337,_0x15b746=this[_0x54b8a8(0x3dd)][_0x54b8a8(0x39d)](k,this[_0x54b8a8(0x1da)],this[_0x54b8a8(0x243)],this[_0x54b8a8(0x423)],[_0x33c544],this['_handler']);return _0x15b746['_updateLocalCache'](),_0x15b746;}[_0x945337(0x1d4)](_0x55ce04){const _0x1cfabc=_0x945337;if(this['_checkMissing'](_0x55ce04))return this['_injector'][_0x1cfabc(0x39d)](H,this[_0x1cfabc(0x1da)],this['type'],this[_0x1cfabc(0x423)],[],null,[_0x55ce04],this['_handler']);try{const _0x2b1326=this['_transformService'][_0x1cfabc(0x558)]([_0x55ce04],[this[_0x1cfabc(0x423)]],!0x1);if(_[_0x1cfabc(0x301)](_0x2b1326)){const {c1Prime:_0x425c25,c2Prime:_0x4ce499}=_0x2b1326;this['_executeRemoteChangeset'](_0x425c25[0x0]),_0x4ce499[0x0][_0x1cfabc(0x2f9)]=this[_0x1cfabc(0x1c0)]();const _0x2f8b53=this[_0x1cfabc(0x3dd)]['createInstance'](W,this['unitID'],this[_0x1cfabc(0x243)],_0x4ce499[0x0],this['_handler']);return _0x2f8b53[_0x1cfabc(0x581)](),_0x2f8b53;}return this[_0x1cfabc(0x3f5)](!0x1);}catch(_0x6552ea){return this[_0x1cfabc(0x4ae)][_0x1cfabc(0x2e8)](_0x6552ea),this[_0x1cfabc(0x3f5)](!0x1);}}[_0x945337(0x344)](_0x2d7d17){const _0x294e8c=_0x945337,_0x44f0f9=this[_0x294e8c(0x1df)][_0x294e8c(0x436)](this[_0x294e8c(0x1da)]);if(_0x2d7d17[_0x294e8c(0x289)]<_0x44f0f9-0x1)return this;if(this[_0x294e8c(0x35d)](_0x2d7d17))return this[_0x294e8c(0x3dd)][_0x294e8c(0x39d)](H,this[_0x294e8c(0x1da)],this['type'],null,[],this[_0x294e8c(0x423)],[],this[_0x294e8c(0x404)]);this[_0x294e8c(0x2d7)]();const _0x94a190=this[_0x294e8c(0x3dd)][_0x294e8c(0x39d)](se,this[_0x294e8c(0x1da)],this[_0x294e8c(0x243)],this[_0x294e8c(0x404)]);return _0x94a190[_0x294e8c(0x581)](),_0x94a190;}[_0x945337(0x294)](_0x4cca65){const _0x40b7c1=_0x945337;return this[_0x40b7c1(0x3f5)](!!(_0x4cca65!=null&&_0x4cca65['isPermissionRej']));}[_0x945337(0x506)](){const _0x8bdda=_0x945337;return this[_0x8bdda(0x3dd)][_0x8bdda(0x39d)](G,this[_0x8bdda(0x1da)],this[_0x8bdda(0x243)],this[_0x8bdda(0x423)],[],this[_0x8bdda(0x404)]);}['toggleOnline'](){return this;}[_0x945337(0x4a4)](){const _0x5b3bf3=_0x945337;this[_0x5b3bf3(0x404)][_0x5b3bf3(0x468)](this['_awaitingChangeset']);}[_0x945337(0x3f5)](_0x593c01){const _0x381473=_0x945337;return this[_0x381473(0x3dd)]['createInstance'](F,this[_0x381473(0x1da)],this['type'],this[_0x381473(0x423)],[],this[_0x381473(0x404)],_0x593c01);}};W=z([g(0x4,a['Inject'](a[_0x945337(0x2b5)])),g(0x5,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x6,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x7,a[_0x945337(0x400)]),g(0x8,a[_0x945337(0x48c)]),g(0x9,_[_0x945337(0x429)]),g(0xa,a[_0x945337(0x38b)])],W);let k=class extends J{constructor(_0x4315ef,_0x17ed98,_0x5c3861,_0x56132d,_0x58d492,_0x374f4a,_0xc9abc4,_0x55c8fd,_0x2a2452,_0x17867e,_0xcb8efa,_0x44147a){const _0x7ed69c=_0x945337;super(_0x4315ef,_0x17ed98,_0x5c3861,_0x56132d,_0x58d492,_0x2a2452,_0x44147a,_0xc9abc4,_0x55c8fd),d(this,_0x7ed69c(0x44d),_0x7ed69c(0x1ec)),(this[_0x7ed69c(0x3dd)]=_0x374f4a,this[_0x7ed69c(0x4ae)]=_0x17867e,this['_transformService']=_0xcb8efa);}[_0x945337(0x561)](_0x3350e4){return this['_pendingMutations']['push'](_0x3350e4),this;}[_0x945337(0x1d4)](_0x45aea0){const _0x3c41c4=_0x945337;if(this[_0x3c41c4(0x35d)](_0x45aea0))return this['_injector'][_0x3c41c4(0x39d)](H,this[_0x3c41c4(0x1da)],this[_0x3c41c4(0x243)],this['_awaitingChangeset'],this[_0x3c41c4(0x194)],null,[_0x45aea0],this[_0x3c41c4(0x404)]);try{const _0x417d0e=this[_0x3c41c4(0x4f2)][_0x3c41c4(0x558)]([_0x45aea0],[this[_0x3c41c4(0x423)]],!0x1);if(_[_0x3c41c4(0x301)](_0x417d0e)){const {c1Prime:_0x1231dc,c2Prime:_0x59c96d}=_0x417d0e,_0xd858fd=this[_0x3c41c4(0x4f2)][_0x3c41c4(0x4df)](_0x1231dc[0x0],this[_0x3c41c4(0x194)]);if(_[_0x3c41c4(0x3f7)](_0xd858fd)){const {c1Prime:_0x4b28e5,m2Prime:_0x734ea0}=_0xd858fd;return this[_0x3c41c4(0x363)](_0x4b28e5),_0x59c96d[0x0][_0x3c41c4(0x2f9)]=this[_0x3c41c4(0x1c0)](),this[_0x3c41c4(0x3dd)][_0x3c41c4(0x39d)](k,this[_0x3c41c4(0x1da)],this[_0x3c41c4(0x243)],_0x59c96d[0x0],_0x734ea0,this[_0x3c41c4(0x404)]);}throw _0xd858fd[_0x3c41c4(0x2e8)];}throw _0x417d0e['error'];}catch(_0x5bea25){return this[_0x3c41c4(0x4ae)][_0x3c41c4(0x2e8)](_0x5bea25),this[_0x3c41c4(0x3f5)](!0x1);}}['onRemoteAck'](_0x2fde04){const _0x7ee547=_0x945337;if(this['_checkMissing'](_0x2fde04))return this[_0x7ee547(0x3dd)][_0x7ee547(0x39d)](H,this[_0x7ee547(0x1da)],this[_0x7ee547(0x243)],null,this[_0x7ee547(0x194)],this['_awaitingChangeset'],[],this[_0x7ee547(0x404)]);this[_0x7ee547(0x2d7)]();const _0x1f6aae=this[_0x7ee547(0x3dd)][_0x7ee547(0x39d)](x,this[_0x7ee547(0x1da)],this['type'],this[_0x7ee547(0x194)],this[_0x7ee547(0x404)]);return _0x1f6aae['_schedule'](),_0x1f6aae['_updateLocalCache'](),_0x1f6aae;}[_0x945337(0x294)](_0x3df7e4){const _0x2f04e4=_0x945337;return this[_0x2f04e4(0x3f5)](!!(_0x3df7e4!=null&&_0x3df7e4[_0x2f04e4(0x3a1)]));}['toggleOffline'](){const _0x323478=_0x945337;return this[_0x323478(0x3dd)]['createInstance'](G,this[_0x323478(0x1da)],this[_0x323478(0x243)],this[_0x323478(0x423)],this[_0x323478(0x194)],this[_0x323478(0x404)]);}[_0x945337(0x267)](){return this;}['resend'](){const _0x38c548=_0x945337;this[_0x38c548(0x404)][_0x38c548(0x468)](this['_awaitingChangeset']);}['_onConflict'](_0xd9a54c){const _0x5d8d62=_0x945337;return this[_0x5d8d62(0x3dd)]['createInstance'](F,this[_0x5d8d62(0x1da)],this['type'],null,this['_pendingMutations'],this[_0x5d8d62(0x404)],_0xd9a54c);}};function _0x38f3(_0xa19542,_0x550d50){const _0x336a95=_0x336a();return _0x38f3=function(_0x38f3d7,_0x35a2f0){_0x38f3d7=_0x38f3d7-0x16e;let _0x122e0c=_0x336a95[_0x38f3d7];return _0x122e0c;},_0x38f3(_0xa19542,_0x550d50);}k=z([g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0x7,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x8,a['ICommandService']),g(0x9,a['ILogService']),g(0xa,_['ITransformService']),g(0xb,a[_0x945337(0x38b)])],k);let F=class extends J{constructor(_0x2c0c6c,_0x321307,_0x27b5c2,_0x1b3957,_0x9d6c63,_0x5667cf=!0x1,_0x36be64,_0x327317,_0x3ebb5e,_0x404f16,_0x99c795,_0x5263fc,_0x465eaa){const _0xf3ef9c=_0x945337;super(_0x2c0c6c,_0x321307,_0x27b5c2,_0x1b3957,_0x9d6c63,_0x327317,_0x3ebb5e,_0x99c795,_0x404f16),d(this,_0xf3ef9c(0x44d),_0xf3ef9c(0x3d3)),(this[_0xf3ef9c(0x260)]=_0x5667cf,this['_permissionService']=_0x36be64,this['_localeService']=_0x5263fc,this[_0xf3ef9c(0x555)]=_0x465eaa,this[_0xf3ef9c(0x250)](),this[_0xf3ef9c(0x313)](),this[_0xf3ef9c(0x53a)]());}[_0x945337(0x561)](){return this;}[_0x945337(0x1d4)](){return this;}[_0x945337(0x344)](){return this;}[_0x945337(0x294)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x945337(0x4a4)](){const _0x5835f7=_0x945337;throw new Error(_0x5835f7(0x1ca));}[_0x945337(0x313)](){const _0x2b4906=_0x945337;this['_localCacheService'][_0x2b4906(0x478)](this[_0x2b4906(0x1da)],this['type'],null,[]);}[_0x945337(0x250)](){const _0x578e0a=_0x945337;this[_0x578e0a(0x260)]?this[_0x578e0a(0x555)][_0x578e0a(0x411)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x578e0a(0x21a)]['t'](_0x578e0a(0x3b6)),'type':_0x578e0a(0x2e8),'duration':0x0}):this[_0x578e0a(0x555)][_0x578e0a(0x411)]({'title':this[_0x578e0a(0x21a)]['t'](_0x578e0a(0x572)),'content':this['_localeService']['t'](_0x578e0a(0x283)),'type':_0x578e0a(0x2e8),'duration':0x0});}[_0x945337(0x53a)](){const _0x375c7b=_0x945337;this[_0x375c7b(0x209)][_0x375c7b(0x470)](new C[(_0x375c7b(0x298))](this[_0x375c7b(0x1da)])['id'],!0x1);}};F=z([g(0x6,a[_0x945337(0x4fa)](a['IPermissionService'])),g(0x7,a['ICommandService']),g(0x8,a[_0x945337(0x38b)]),g(0x9,a['Inject'](exports[_0x945337(0x3a3)])),g(0xa,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0xb,a['Inject'](a[_0x945337(0x299)])),g(0xc,N[_0x945337(0x3a8)])],F);let G=class extends J{constructor(_0x589141,_0x31ba2d,_0x488c5d,_0x554022,_0x2136cd,_0x5e1f17,_0x3d5725,_0x171831,_0x27df95,_0x322936){const _0x3ad709=_0x945337;super(_0x589141,_0x31ba2d,_0x488c5d,_0x554022,_0x2136cd,_0x27df95,_0x322936,_0x3d5725,_0x171831),d(this,_0x3ad709(0x44d),'offline'),this[_0x3ad709(0x3dd)]=_0x5e1f17;}[_0x945337(0x561)](_0x3fc65a){const _0x15c4de=_0x945337;return this['_pendingMutations'][_0x15c4de(0x3b0)](_0x3fc65a),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x45f0e0){const _0x1da536=_0x945337;throw new Error(_0x1da536(0x4cf));}[_0x945337(0x344)](){const _0x52c831=_0x945337;throw new Error(_0x52c831(0x20b));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x945337(0x506)](){return this;}[_0x945337(0x267)](){const _0x53bcf5=_0x945337,{_injector:_0x18213b,_pendingMutations:_0x57b2a9,_awaitingChangeset:_0x9487a2,unitID:_0x36a44e,_handler:_0x5aaef5,type:_0x75e53}=this,_0x37e066=Rt(_0x18213b,_0x36a44e,_0x75e53,_0x9487a2,_0x57b2a9,_0x5aaef5);return _0x37e066 instanceof x?_0x37e066[_0x53bcf5(0x2bc)]():(_0x37e066 instanceof k||_0x37e066 instanceof W)&&_0x37e066[_0x53bcf5(0x4a4)](),_0x37e066;}[_0x945337(0x4a4)](){const _0x34dedf=_0x945337;throw new Error(_0x34dedf(0x359));}};G=z([g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x7,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x8,a['ICommandService']),g(0x9,a[_0x945337(0x38b)])],G);let H=class extends J{constructor(_0x438696,_0x50d732,_0x41d5a8,_0x331ac6,_0x388801,_0x3e82d9,_0x3fa600,_0x296028,_0x5903c0,_0xca5bf4,_0x288411,_0x4f0a80,_0xdda2af,_0x42ebd0){const _0x4b9f57=_0x945337;super(_0x438696,_0x50d732,_0x41d5a8,_0x331ac6,_0x3fa600,_0x4f0a80,_0xdda2af,_0x5903c0,_0xca5bf4),d(this,_0x4b9f57(0x44d),'fetch_missing'),(this[_0x4b9f57(0x1be)]=_0x388801,this[_0x4b9f57(0x2a7)]=_0x3e82d9,this['_injector']=_0x296028,this[_0x4b9f57(0x4ae)]=_0x288411,this[_0x4b9f57(0x4f2)]=_0x42ebd0);}[_0x945337(0x443)](_0x4bce27){const _0x20fc3e=_0x945337;try{const _0x5bced7=[..._0x4bce27,...this[_0x20fc3e(0x2a7)]],_0x597815=[this[_0x20fc3e(0x423)]||this[_0x20fc3e(0x1be)]]['filter'](_0x3c926e=>!!_0x3c926e);let _0x48ab2f,_0x1d56b5;if(_0x597815[_0x20fc3e(0x3f0)]){const _0x366210=this[_0x20fc3e(0x4f2)]['transformChangesets'](_0x5bced7,_0x597815,!0x1);if(!_['isTransformChangesetsSuccess'](_0x366210))throw _0x366210[_0x20fc3e(0x2e8)];_0x48ab2f=_0x366210[_0x20fc3e(0x44e)],_0x1d56b5=_0x366210[_0x20fc3e(0x4a1)];}else _0x48ab2f=_0x5bced7,_0x1d56b5=[];let _0x8a9a0d=this[_0x20fc3e(0x194)];_0x48ab2f[_0x20fc3e(0x278)](_0x272d23=>{const _0x103dac=_0x20fc3e;let _0x2dbf10;if(_0x8a9a0d[_0x103dac(0x3f0)]){const _0x5c9239=this[_0x103dac(0x4f2)][_0x103dac(0x4df)](_0x272d23,_0x8a9a0d);if(!_[_0x103dac(0x3f7)](_0x5c9239))throw _0x5c9239[_0x103dac(0x2e8)];_0x2dbf10=_0x5c9239[_0x103dac(0x44e)],_0x8a9a0d=_0x5c9239[_0x103dac(0x178)];}else _0x2dbf10=_0x272d23;this[_0x103dac(0x363)](_0x2dbf10);}),this[_0x20fc3e(0x1be)]&&this[_0x20fc3e(0x2d7)](),this[_0x20fc3e(0x423)]&&_0x1d56b5[_0x20fc3e(0x3f0)]&&(_0x1d56b5[0x0]['baseRev']=this[_0x20fc3e(0x1c0)]());let _0x2aedcf;if(this[_0x20fc3e(0x423)]&&_0x8a9a0d[_0x20fc3e(0x3f0)]!==0x0)_0x2aedcf=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](k,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],_0x1d56b5[0x0],_0x8a9a0d,this['_handler']);else{if(this[_0x20fc3e(0x423)]&&_0x8a9a0d[_0x20fc3e(0x3f0)]===0x0)_0x1d56b5[0x0][_0x20fc3e(0x2f9)]=this[_0x20fc3e(0x1c0)](),_0x2aedcf=this['_injector'][_0x20fc3e(0x39d)](W,this['unitID'],this[_0x20fc3e(0x243)],_0x1d56b5[0x0],this[_0x20fc3e(0x404)]);else{if(_0x8a9a0d[_0x20fc3e(0x3f0)]!==0x0){const _0x1f35b5=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](x,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],_0x8a9a0d,this[_0x20fc3e(0x404)]);_0x1f35b5['_schedule'](),_0x2aedcf=_0x1f35b5;}else _0x2aedcf=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](se,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],this[_0x20fc3e(0x404)]);}}return _0x2aedcf[_0x20fc3e(0x581)](),_0x2aedcf;}catch(_0x204437){return this[_0x20fc3e(0x4ae)][_0x20fc3e(0x2e8)]('[FetchMissState]',_0x20fc3e(0x2fa),_0x204437),this[_0x20fc3e(0x3dd)]['createInstance'](F,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],this[_0x20fc3e(0x423)],this[_0x20fc3e(0x194)],this[_0x20fc3e(0x404)],!0x1);}}[_0x945337(0x4a4)](){const _0x1e2c27=_0x945337;throw new Error(_0x1e2c27(0x4bb));}['appendMutation'](_0x1f1f4a){const _0x5cb801=_0x945337;return this[_0x5cb801(0x194)]['push'](_0x1f1f4a),this;}[_0x945337(0x1d4)](_0x22b341){const _0x46e446=_0x945337;return this[_0x46e446(0x2a7)]['push'](_0x22b341),this;}[_0x945337(0x344)](_0x1f3b16){const _0x1a9785=_0x945337;if(this[_0x1a9785(0x423)])return this[_0x1a9785(0x1be)]=this[_0x1a9785(0x423)],this[_0x1a9785(0x423)]=null,this;throw new Error(_0x1a9785(0x38f));}['onRemoteRej'](_0x2d5552){const _0x3c993e=_0x945337;return this[_0x3c993e(0x3f5)](!!(_0x2d5552!=null&&_0x2d5552[_0x3c993e(0x3a1)]));}['toggleOffline'](){const _0x3af520=_0x945337;return this[_0x3af520(0x3dd)][_0x3af520(0x39d)](G,this[_0x3af520(0x1da)],this[_0x3af520(0x243)],this[_0x3af520(0x423)],this['_pendingMutations'],this[_0x3af520(0x404)]);}['toggleOnline'](){return this;}[_0x945337(0x3f5)](_0x1975e1){const _0x310b8e=_0x945337;return this[_0x310b8e(0x3dd)][_0x310b8e(0x39d)](F,this[_0x310b8e(0x1da)],this['type'],this[_0x310b8e(0x423)],this[_0x310b8e(0x194)],this['_handler'],_0x1975e1);}};H=z([g(0x7,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x8,a['Inject'](_[_0x945337(0x574)])),g(0x9,a[_0x945337(0x4fa)](exports['LocalCacheService'])),g(0xa,a[_0x945337(0x48c)]),g(0xb,a[_0x945337(0x400)]),g(0xc,a[_0x945337(0x38b)]),g(0xd,_[_0x945337(0x429)])],H);function Rt(_0x3cc55f,_0x108087,_0x33c2ae,_0x1ab03f,_0x20b5aa,_0x50ef39){const _0x646f13=_0x945337;return _0x1ab03f&&_0x20b5aa[_0x646f13(0x3f0)]?_0x3cc55f['createInstance'](k,_0x108087,_0x33c2ae,_0x1ab03f,_0x20b5aa,_0x50ef39):_0x1ab03f?_0x3cc55f['createInstance'](W,_0x108087,_0x33c2ae,_0x1ab03f,_0x50ef39):_0x20b5aa[_0x646f13(0x3f0)]?_0x3cc55f[_0x646f13(0x39d)](x,_0x108087,_0x33c2ae,_0x20b5aa,_0x50ef39):_0x3cc55f[_0x646f13(0x39d)](se,_0x108087,_0x33c2ae,_0x50ef39);}var Hs=Object[_0x945337(0x24b)],xs=Object[_0x945337(0x3e2)],Ke=(_0x1563eb,_0x609d68,_0x5ca567,_0x1c67a8)=>{const _0x4fd08c=_0x945337;for(var _0x2ba57e=_0x1c67a8>0x1?void 0x0:_0x1c67a8?xs(_0x609d68,_0x5ca567):_0x609d68,_0x5aa8cc=_0x1563eb[_0x4fd08c(0x3f0)]-0x1,_0x1e2b81;_0x5aa8cc>=0x0;_0x5aa8cc--)(_0x1e2b81=_0x1563eb[_0x5aa8cc])&&(_0x2ba57e=(_0x1c67a8?_0x1e2b81(_0x609d68,_0x5ca567,_0x2ba57e):_0x1e2b81(_0x2ba57e))||_0x2ba57e);return _0x1c67a8&&_0x2ba57e&&Hs(_0x609d68,_0x5ca567,_0x2ba57e),_0x2ba57e;},I=(_0x5e7b11,_0x240df3)=>(_0x501f55,_0x55c61a)=>_0x240df3(_0x501f55,_0x55c61a,_0x5e7b11);exports[_0x945337(0x23c)]=class extends a[_0x945337(0x538)]{constructor(_0x2c3ace,_0x3953d4,_0x9eb3a3,_0x360998,_0x12d71e,_0x38b1c8,_0x2710de,_0x2b8d6f,_0x569818,_0x39e28e,_0x3d7f0b,_0x55b02d,_0x35981b){const _0x307b68=_0x945337;super(),d(this,'_state$',new v[(_0x307b68(0x52c))](null)),d(this,'state$',this['_state$'][_0x307b68(0x19b)]()),d(this,_0x307b68(0x171)),d(this,_0x307b68(0x3fd),!0x1),d(this,'status$',this['state$'][_0x307b68(0x550)](v[_0x307b68(0x2c1)](_0x32bdcc=>_0x32bdcc?_0x32bdcc[_0x307b68(0x44d)]:y[_0x307b68(0x482)]),v[_0x307b68(0x421)](0x1))),d(this,_0x307b68(0x520),!0x1),d(this,_0x307b68(0x1b7),[]),(this[_0x307b68(0x1da)]=_0x2c3ace,this['session']=_0x3953d4,this[_0x307b68(0x1ad)]=_0x9eb3a3,this[_0x307b68(0x3dd)]=_0x360998,this[_0x307b68(0x576)]=_0x12d71e,this[_0x307b68(0x17f)]=_0x38b1c8,this[_0x307b68(0x21a)]=_0x2710de,this[_0x307b68(0x1df)]=_0x2b8d6f,this[_0x307b68(0x4ae)]=_0x569818,this[_0x307b68(0x256)]=_0x39e28e,this[_0x307b68(0x392)]=_0x3d7f0b,this['_permissionService']=_0x55b02d,this[_0x307b68(0x328)]=_0x35981b);}get[_0x945337(0x198)](){const _0xf663b1=_0x945337;return this[_0xf663b1(0x171)];}async[_0x945337(0x55a)](){const _0x1c1151=_0x945337;if(this[_0x1c1151(0x198)])throw new Error(_0x1c1151(0x1ef));await this[_0x1c1151(0x458)]();}[_0x945337(0x4c4)](){const _0x3ab12c=_0x945337;return this['_collaborationPaused']=!0x0,a[_0x3ab12c(0x296)](()=>{const _0x3d71f3=_0x3ab12c;this[_0x3d71f3(0x3fd)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x945337(0x31a)](_0x5522ee){const _0xbfcf2c=_0x945337;this[_0xbfcf2c(0x171)]=_0x5522ee,this[_0xbfcf2c(0x4fc)]['next'](_0x5522ee);}async['_init'](){const _0x4c65f9=_0x945337;var _0x27eb7d;this[_0x4c65f9(0x31a)](await this['_createInitialState']()),this[_0x4c65f9(0x328)]&&((_0x27eb7d=this[_0x4c65f9(0x328)])==null||_0x27eb7d['editingUnit'](this[_0x4c65f9(0x1da)]),this[_0x4c65f9(0x50a)](this[_0x4c65f9(0x328)][_0x4c65f9(0x321)](this[_0x4c65f9(0x1da)])[_0x4c65f9(0x397)](_0x3f3803=>{const _0x4b8882=_0x4c65f9;this[_0x4b8882(0x4ae)]['debug'](_0x4b8882(0x2ad),'editing\x20status\x20changed\x20to',_0x3f3803),_0x3f3803===bt[_0x4b8882(0x2fd)]?(this[_0x4b8882(0x392)][_0x4b8882(0x411)]({'content':this[_0x4b8882(0x21a)]['t'](_0x4b8882(0x402)),'type':X[_0x4b8882(0x367)]['Warning']}),this[_0x4b8882(0x209)]['updatePermissionPoint'](new C[(_0x4b8882(0x298))](this['unitID'])['id'],!0x1)):this[_0x4b8882(0x209)][_0x4b8882(0x470)](new C[(_0x4b8882(0x298))](this[_0x4b8882(0x1da)])['id'],!0x0);})));let _0x31f4c8=!0x1;return this[_0x4c65f9(0x50a)](this['session'][_0x4c65f9(0x37f)]['subscribe'](_0xe27901=>{const _0x48bb62=_0x4c65f9;_0xe27901===$[_0x48bb62(0x42e)]?this[_0x48bb62(0x415)](_0x31f4c8):_0xe27901===$[_0x48bb62(0x482)]&&(_0x31f4c8=!0x0,this['_toggleOffline']());})),this[_0x4c65f9(0x50a)](this[_0x4c65f9(0x318)][_0x4c65f9(0x23f)][_0x4c65f9(0x397)](_0x1de06c=>{const _0x57f627=_0x4c65f9;try{switch(_0x1de06c[_0x57f627(0x170)]){case _[_0x57f627(0x4eb)][_0x57f627(0x3c6)]:{this[_0x57f627(0x1f5)](_['parseProtocolChangeset'](_0x1de06c[_0x57f627(0x375)]));break;}case _['CollaborationEvent'][_0x57f627(0x1f1)]:{this[_0x57f627(0x521)](_0x1de06c['data']);break;}case _[_0x57f627(0x4eb)]['CHANGESET_REJ']:{this[_0x57f627(0x33d)]();break;}case _['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x57f627(0x3f9)](_0x1de06c[_0x57f627(0x375)][_0x57f627(0x37c)][_0x57f627(0x2c1)](_0x334a92=>_[_0x57f627(0x37a)](_0x334a92)));break;}case _['CollaborationEvent'][_0x57f627(0x186)]:this[_0x57f627(0x33d)]({'isPermissionRej':!0x0});}}catch(_0x2a46cf){throw console[_0x57f627(0x2e8)](_0x57f627(0x4a9),_0x2a46cf),_0x2a46cf;}})),this[_0x4c65f9(0x171)];}[_0x945337(0x3b7)](){const _0x1bc813=_0x945337;this[_0x1bc813(0x520)]=!0x1;}[_0x945337(0x4ce)](){const _0x4658d0=_0x945337;if(this[_0x4658d0(0x520)])throw new Error(_0x4658d0(0x29d));this[_0x4658d0(0x520)]=!0x0;}[_0x945337(0x285)](_0x176141){const _0x5510c0=_0x945337;this[_0x5510c0(0x4ce)](),this[_0x5510c0(0x31a)](this['_state'][_0x5510c0(0x561)](_0x176141)),this[_0x5510c0(0x3b7)]();}[_0x945337(0x1f5)](_0x125f82){const _0x53f209=_0x945337;if(!(_0x125f82[_0x53f209(0x289)]<=this[_0x53f209(0x1df)]['getCurrentRevOfUnit'](this[_0x53f209(0x1da)]))){if(this['_collaborationPaused']){this[_0x53f209(0x1b7)]['push'](_0x125f82);return;}this[_0x53f209(0x2ff)](_0x125f82);}}['_exhaustRemoteChangesetQueue'](){const _0x3352e0=_0x945337;this[_0x3352e0(0x1b7)][_0x3352e0(0x278)](_0x415814=>this['_applyRemoteChangeset'](_0x415814)),this[_0x3352e0(0x1b7)]=[];}[_0x945337(0x2ff)](_0x1b352d){const _0x2c9135=_0x945337,_0x1b82b4=this['_compressMutationService'][_0x2c9135(0x3b9)]['fetchThroughInterceptors'](this[_0x2c9135(0x17f)][_0x2c9135(0x3b9)]['getInterceptPoints']()[_0x2c9135(0x361)])(_0x1b352d[_0x2c9135(0x435)],null)||_0x1b352d[_0x2c9135(0x435)],_0x30e2cb={..._0x1b352d,'mutations':_0x1b82b4};this[_0x2c9135(0x4ce)](),this[_0x2c9135(0x31a)](this[_0x2c9135(0x171)]['onRemoteChangeset'](_0x30e2cb)),this[_0x2c9135(0x3b7)]();}[_0x945337(0x521)](_0x19f2f6){const _0x16468e=_0x945337;this['_lockTransition'](),this[_0x16468e(0x31a)](this['_state'][_0x16468e(0x344)](_0x19f2f6)),this[_0x16468e(0x3b7)]();}['_onRemoteRejected'](_0xf9236d){const _0x4a1903=_0x945337;this['_lockTransition'](),this['_updateState'](this['_state'][_0x4a1903(0x294)](_0xf9236d)),this['_unlockTransition']();}['_onFetchMissResult'](_0x3d7547){const _0x5adbf4=_0x945337;if(!(this[_0x5adbf4(0x171)]instanceof H))throw new TypeError(_0x5adbf4(0x311));const _0x32eeb3=_0x3d7547[_0x5adbf4(0x2c1)](_0x127ebd=>{const _0x48ddf9=_0x5adbf4,_0x29265b=this[_0x48ddf9(0x17f)][_0x48ddf9(0x3b9)][_0x48ddf9(0x40a)](this['_compressMutationService']['interceptor'][_0x48ddf9(0x1a8)]()[_0x48ddf9(0x361)])(_0x127ebd[_0x48ddf9(0x435)],null)||_0x127ebd[_0x48ddf9(0x435)];return{..._0x127ebd,'mutations':_0x29265b};});this[_0x5adbf4(0x4ce)](),this[_0x5adbf4(0x31a)](this[_0x5adbf4(0x171)]['onMissedChangesetFetched'](_0x32eeb3)),this[_0x5adbf4(0x3b7)]();}['_toggleOffline'](){const _0x48076e=_0x945337;this['_lockTransition'](),this[_0x48076e(0x31a)](this[_0x48076e(0x171)]['toggleOffline']()),this['_unlockTransition']();}[_0x945337(0x415)](_0x321225=!0x1){const _0x4669cd=_0x945337;this[_0x4669cd(0x4ce)](),this['_updateState'](this[_0x4669cd(0x171)][_0x4669cd(0x267)]()),this[_0x4669cd(0x3b7)]();const _0x43552b=this[_0x4669cd(0x171)];_0x321225&&_0x43552b instanceof se&&(this[_0x4669cd(0x4ce)](),this[_0x4669cd(0x31a)](_0x43552b[_0x4669cd(0x2e2)]()),this[_0x4669cd(0x3b7)]());}async[_0x945337(0x4e7)](){return new Promise(_0x24c48d=>{const _0x288091=_0x38f3;this[_0x288091(0x318)][_0x288091(0x37f)][_0x288091(0x550)](v[_0x288091(0x551)](0x1))[_0x288091(0x397)](async _0x1fc791=>{const _0x50ac68=_0x288091;_0x24c48d(await this[_0x50ac68(0x48a)](_0x1fc791===$[_0x50ac68(0x42e)]));});});}['_createHandler'](){const _0x1e35be=_0x945337,_0x592502=this[_0x1e35be(0x1da)];return{'onStateChange':(_0x2f95f8,_0x214f83)=>{const _0x5acd4d=_0x1e35be;if(_0x2f95f8!==this['_state'])throw new Error(_0x5acd4d(0x261)+_0x2f95f8[_0x5acd4d(0x44d)]+_0x5acd4d(0x40f)+_0x214f83[_0x5acd4d(0x44d)]+_0x5acd4d(0x47f)+this['_state']['status']);this[_0x5acd4d(0x31a)](_0x214f83);},'onSendChangeset':_0x6996bb=>{const _0x2f5ae7=_0x1e35be,_0x18e6d6={'eventID':_[_0x2f5ae7(0x4eb)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x6996bb[_0x2f5ae7(0x1da)],'unitType':this['_type'],'changeset':_0x6996bb,'memberID':this[_0x2f5ae7(0x318)][_0x2f5ae7(0x56a)]()}};this[_0x2f5ae7(0x318)]['send'](_0x18e6d6,this[_0x2f5ae7(0x1da)]);},'onMissingChangesets':({from:_0x1d89c6,to:_0x4e4e05})=>{const _0x93867a=_0x1e35be;this[_0x93867a(0x4ae)]['debug']('[CollaborationEntity]',_0x93867a(0x28c)+_0x1d89c6+'\x20to\x20'+_0x4e4e05);const _0x313f58={'eventID':_[_0x93867a(0x4eb)][_0x93867a(0x51d)],'data':{'unitID':_0x592502,'unitType':this[_0x93867a(0x1ad)],'from':_0x1d89c6,'to':_0x4e4e05}};this['session'][_0x93867a(0x2a2)](_0x313f58,this[_0x93867a(0x1da)]);}};}async[_0x945337(0x48a)](_0x26b6c9){const _0x35ba3e=_0x945337;var _0x7ad0f4,_0x1b7449;const _0x579e62=await this[_0x35ba3e(0x576)]['loadOfflineData'](this[_0x35ba3e(0x1da)]),_0x190cfc=(_0x7ad0f4=_0x579e62==null?void 0x0:_0x579e62[_0x35ba3e(0x435)])!=null?_0x7ad0f4:[],_0x3f2100=(_0x1b7449=_0x579e62==null?void 0x0:_0x579e62['awaitingChangeset'])!=null?_0x1b7449:null,_0x12b822=this[_0x35ba3e(0x1da)];try{this[_0x35ba3e(0x4cb)](_0x3f2100,_0x190cfc);}catch(_0x48728a){this[_0x35ba3e(0x4ae)][_0x35ba3e(0x2e8)](_0x48728a);}const _0x1ac125=this[_0x35ba3e(0x19c)]();if(_0x26b6c9){const _0x4bdeb1=Rt(this['_injector'],_0x12b822,this[_0x35ba3e(0x1ad)],_0x3f2100,_0x190cfc,_0x1ac125);return _0x4bdeb1 instanceof x?_0x4bdeb1[_0x35ba3e(0x2bc)]():(_0x4bdeb1 instanceof k||_0x4bdeb1 instanceof W)&&_0x4bdeb1[_0x35ba3e(0x4a4)](),_0x4bdeb1;}return this[_0x35ba3e(0x3dd)][_0x35ba3e(0x39d)](G,_0x12b822,this[_0x35ba3e(0x1ad)],_0x3f2100,_0x190cfc,_0x1ac125);}[_0x945337(0x4cb)](_0x4d80e6,_0x248a14){const _0xa00741=_0x945337;var _0x2f8d55,_0x286cd7;const _0x2fdfc1=this[_0xa00741(0x17f)]['interceptor']['fetchThroughInterceptors'](this[_0xa00741(0x17f)]['interceptor'][_0xa00741(0x1a8)]()['COMPRESS_MUTATION_APPLY']);(_0x2f8d55=_0x2fdfc1((_0x4d80e6==null?void 0x0:_0x4d80e6['mutations'])||[],null))==null||_0x2f8d55[_0xa00741(0x278)](_0xecef79=>this['_commandService'][_0xa00741(0x505)](_0xecef79['id'],_0xecef79['params'])),(_0x286cd7=_0x2fdfc1(_0x248a14||[],null))==null||_0x286cd7[_0xa00741(0x278)](_0x1c42d6=>this['_commandService'][_0xa00741(0x505)](_0x1c42d6['id'],_0x1c42d6['params']));}},exports[_0x945337(0x23c)]=Ke([I(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a[_0x945337(0x4fa)](_[_0x945337(0x1aa)])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),I(0x8,a[_0x945337(0x48c)]),I(0x9,a[_0x945337(0x400)]),I(0xa,N[_0x945337(0x2b2)]),I(0xb,a[_0x945337(0x414)]),I(0xc,a[_0x945337(0x188)](be))],exports[_0x945337(0x23c)]),exports[_0x945337(0x295)]=class extends exports[_0x945337(0x23c)]{constructor(_0x3c3197,_0x266a60,_0x29313d,_0x18e83f,_0x1ff179,_0x33b66d,_0x3b44a4,_0x503768,_0x4a8e8d,_0x2f58a5,_0xf52646,_0x202d15,_0x10e043,_0x48655b,_0x2b3f3b,_0x16d3c6,_0x1cbdb1){const _0xd401a3=_0x945337;super(_0x3c3197,_0x29313d,_0x266a60,_0x18e83f,_0x1ff179,_0x33b66d,_0x3b44a4,_0x503768,_0x10e043,_0x48655b,_0x2b3f3b,_0x16d3c6,_0x1cbdb1),this[_0xd401a3(0x1da)]=_0x3c3197,this[_0xd401a3(0x243)]=_0x266a60,this[_0xd401a3(0x182)]=_0x4a8e8d,this[_0xd401a3(0x172)]=_0x2f58a5,this['_docTransformSelectionsService']=_0xf52646,this[_0xd401a3(0x25e)]=_0x202d15;}['_createHandler'](){const _0x222aa2=_0x945337,_0x320040=super['_createHandler']();return _0x320040[_0x222aa2(0x3d2)]=_0x412ed5=>this[_0x222aa2(0x172)][_0x222aa2(0x1d1)](_0x412ed5),_0x320040[_0x222aa2(0x454)]=_0x1f4115=>this['_docTransformSelectionsService'][_0x222aa2(0x463)](_0x1f4115),_0x320040['onSyncEditingCollabCursor']=_0xaa5985=>this[_0x222aa2(0x25e)][_0x222aa2(0x271)](_0xaa5985),_0x320040[_0x222aa2(0x1b1)]=_0x48b627=>this[_0x222aa2(0x172)]['transformRemoteChangeset'](_0x48b627),_0x320040;}async[_0x945337(0x458)](){const _0x3b1302=_0x945337,_0x50ad2=await super[_0x3b1302(0x458)]();return this[_0x3b1302(0x50a)](this[_0x3b1302(0x256)][_0x3b1302(0x3ad)]((_0x134e90,_0x3795d9)=>{const _0x3fe17e=_0x3b1302;if(_0x134e90[_0x3fe17e(0x243)]!==a[_0x3fe17e(0x2fb)][_0x3fe17e(0x36f)]||_0x3795d9!=null&&_0x3795d9['fromCollab']||_0x3795d9!=null&&_0x3795d9[_0x3fe17e(0x1f0)])return;const _0x1ff5a7=_0x134e90['params'];if((_0x1ff5a7==null?void 0x0:_0x1ff5a7[_0x3fe17e(0x212)])!==this[_0x3fe17e(0x1da)])return;let _0x21cf37=_0x134e90;if(_0x21cf37['id']===V[_0x3fe17e(0x316)]['id']){const _0xf675ed=_0x21cf37[_0x3fe17e(0x17c)];_0x21cf37={'id':V[_0x3fe17e(0x316)]['id'],'type':a[_0x3fe17e(0x2fb)]['MUTATION'],'params':{'unitId':_0xf675ed[_0x3fe17e(0x212)],'actions':_0xf675ed[_0x3fe17e(0x3ef)],'textRanges':null}};}const _0x474aed=this['_compressMutationService']['interceptor'][_0x3fe17e(0x40a)](this[_0x3fe17e(0x17f)][_0x3fe17e(0x3b9)][_0x3fe17e(0x1a8)]()[_0x3fe17e(0x4c2)])([_0x21cf37],null)||[_0x21cf37];this[_0x3fe17e(0x285)](_0x474aed[0x0]);})),_0x50ad2;}},exports[_0x945337(0x295)]=Ke([I(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a['Inject'](_['CompressMutationService'])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_['RevisionService'])),I(0x8,a[_0x945337(0x4fa)](w['DocStateChangeManagerService'])),I(0x9,a[_0x945337(0x4fa)](fe)),I(0xa,a[_0x945337(0x4fa)](me)),I(0xb,a['Inject'](Ye)),I(0xc,a[_0x945337(0x48c)]),I(0xd,a['ICommandService']),I(0xe,N['IMessageService']),I(0xf,a[_0x945337(0x414)]),I(0x10,a[_0x945337(0x188)](be))],exports['DocCollaborationEntity']),exports['SheetCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x423f82,_0x37ab75,_0x21be21,_0x5be169,_0x3244f4,_0x4a8b40,_0x4cf9fd,_0x33e71c,_0x3e3ae2,_0x5e65ed,_0x448007,_0xd415d6,_0x5cafb0,_0x54ca1a){const _0x50ec23=_0x945337;super(_0x423f82,_0x21be21,_0x37ab75,_0x5be169,_0x3244f4,_0x4a8b40,_0x4cf9fd,_0x33e71c,_0x5e65ed,_0x448007,_0xd415d6,_0x5cafb0,_0x54ca1a),this[_0x50ec23(0x1da)]=_0x423f82,this['type']=_0x37ab75,this[_0x50ec23(0x50c)]=_0x3e3ae2;}[_0x945337(0x19c)](){const _0x52a489=_0x945337,_0x533f4a=super[_0x52a489(0x19c)]();return _0x533f4a[_0x52a489(0x454)]=_0x225d00=>this[_0x52a489(0x50c)][_0x52a489(0x463)](_0x225d00),_0x533f4a;}async[_0x945337(0x458)](){const _0x2c0c3c=_0x945337,_0xf8df4f=await super[_0x2c0c3c(0x458)]();return this[_0x2c0c3c(0x50a)](this[_0x2c0c3c(0x256)][_0x2c0c3c(0x3ad)]((_0x317709,_0x7ee253)=>{const _0x28311a=_0x2c0c3c;if(_0x317709['type']!==a[_0x28311a(0x2fb)][_0x28311a(0x36f)]||_0x7ee253!=null&&_0x7ee253[_0x28311a(0x4aa)]||_0x7ee253!=null&&_0x7ee253[_0x28311a(0x1f0)])return;const _0x42dea1=_0x317709['params'];if((_0x42dea1==null?void 0x0:_0x42dea1[_0x28311a(0x212)])!==this[_0x28311a(0x1da)])return;const _0x64b0b7=_0x317709,_0x30fae1=this[_0x28311a(0x17f)][_0x28311a(0x3b9)][_0x28311a(0x40a)](this[_0x28311a(0x17f)][_0x28311a(0x3b9)][_0x28311a(0x1a8)]()[_0x28311a(0x4c2)])([_0x64b0b7],null)||[_0x64b0b7];this['_onLocalMutation'](_0x30fae1[0x0]);})),_0xf8df4f;}},exports[_0x945337(0x4dd)]=Ke([I(0x3,a['Inject'](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a[_0x945337(0x4fa)](_[_0x945337(0x1aa)])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_['RevisionService'])),I(0x8,a[_0x945337(0x4fa)](ge)),I(0x9,a[_0x945337(0x48c)]),I(0xa,a[_0x945337(0x400)]),I(0xb,N[_0x945337(0x2b2)]),I(0xc,a[_0x945337(0x414)]),I(0xd,a['Optional'](be))],exports[_0x945337(0x4dd)]);var ks=Object[_0x945337(0x24b)],Bs=Object[_0x945337(0x3e2)],Vs=(_0xc7f3ce,_0x171703,_0x320c42,_0xae8f68)=>{const _0x2c1d76=_0x945337;for(var _0x24e668=_0xae8f68>0x1?void 0x0:_0xae8f68?Bs(_0x171703,_0x320c42):_0x171703,_0x4d865b=_0xc7f3ce[_0x2c1d76(0x3f0)]-0x1,_0x4bae11;_0x4d865b>=0x0;_0x4d865b--)(_0x4bae11=_0xc7f3ce[_0x4d865b])&&(_0x24e668=(_0xae8f68?_0x4bae11(_0x171703,_0x320c42,_0x24e668):_0x4bae11(_0x24e668))||_0x24e668);return _0xae8f68&&_0x24e668&&ks(_0x171703,_0x320c42,_0x24e668),_0x24e668;},Ue=(_0x30842e,_0x12fe95)=>(_0x545fc1,_0x3f440b)=>_0x12fe95(_0x545fc1,_0x3f440b,_0x30842e);exports[_0x945337(0x4ee)]=class extends a[_0x945337(0x538)]{constructor(_0x3133d4,_0x45e489,_0x3dfd26){const _0x10a16f=_0x945337;super(),d(this,_0x10a16f(0x565),new Map()),d(this,_0x10a16f(0x32d),new v[(_0x10a16f(0x36e))]()),(this[_0x10a16f(0x3dd)]=_0x3133d4,this['_collabSessionService']=_0x45e489,this[_0x10a16f(0x337)]=_0x3dfd26,this[_0x10a16f(0x458)]());}[_0x945337(0x1eb)](){const _0x5c7c0b=_0x945337;super[_0x5c7c0b(0x1eb)](),this[_0x5c7c0b(0x565)][_0x5c7c0b(0x278)](_0x368c07=>_0x368c07[_0x5c7c0b(0x1eb)]()),this[_0x5c7c0b(0x565)]['clear']();}[_0x945337(0x27d)](_0x16666e){var _0x2c37a8;return(_0x2c37a8=this['_entities']['get'](_0x16666e))!=null?_0x2c37a8:null;}[_0x945337(0x4b1)](_0x40b5bd){const _0x5e657d=_0x945337,_0x1fd78b=this[_0x5e657d(0x27d)](_0x40b5bd);return _0x1fd78b?v['of'](_0x1fd78b):this[_0x5e657d(0x32d)][_0x5e657d(0x550)](E[_0x5e657d(0x1dc)](_0x7cf465=>_0x7cf465[_0x5e657d(0x1da)]===_0x40b5bd));}[_0x945337(0x458)](){const _0x28d98d=_0x945337;this['_univerInstanceService'][_0x28d98d(0x51e)](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]),E[_0x28d98d(0x4d7)](0x10))[_0x28d98d(0x397)](async _0x4e5040=>{const _0x57be5c=_0x28d98d,_0x5eeda3=_0x4e5040[_0x57be5c(0x352)](),_0x5216dc=await this[_0x57be5c(0x417)](_0x5eeda3,j[_0x57be5c(0x53c)]);this[_0x57be5c(0x565)]['set'](_0x5eeda3,_0x5216dc);}),this[_0x28d98d(0x337)]['getTypeOfUnitAdded$'](a[_0x28d98d(0x3b1)]['UNIVER_DOC'])['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]),E[_0x28d98d(0x4d7)](0x10))['pipe'](E[_0x28d98d(0x1dc)](_0x1712b7=>!_0x1712b7[_0x28d98d(0x352)]()[_0x28d98d(0x2aa)]('__')))[_0x28d98d(0x397)](async _0x319efc=>{const _0x4537d9=_0x28d98d,_0x2f2e5e=_0x319efc[_0x4537d9(0x352)](),_0x3ebbe5=await this['_startCollaboration'](_0x2f2e5e,j[_0x4537d9(0x395)]);this[_0x4537d9(0x565)][_0x4537d9(0x4a8)](_0x2f2e5e,_0x3ebbe5);}),v[_0x28d98d(0x515)](this[_0x28d98d(0x337)][_0x28d98d(0x18e)](a[_0x28d98d(0x3b1)]['UNIVER_SHEET']),this[_0x28d98d(0x337)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]))[_0x28d98d(0x397)](_0x33a15a=>{const _0x5f3841=_0x28d98d,_0x4c69fd=_0x33a15a[_0x5f3841(0x352)](),_0xc5d13e=this[_0x5f3841(0x565)]['get'](_0x4c69fd);_0xc5d13e&&(_0xc5d13e[_0x5f3841(0x1eb)](),this['_entities']['delete'](_0x4c69fd));});}async[_0x945337(0x417)](_0x25ddc8,_0x5f0857){const _0x3c7c51=_0x945337,_0x40fb39=await this[_0x3c7c51(0x407)][_0x3c7c51(0x369)](_0x25ddc8),_0x25b29a=this['_injector'][_0x3c7c51(0x39d)](this[_0x3c7c51(0x16f)](_0x5f0857),_0x25ddc8,_0x5f0857,_0x40fb39);return await _0x25b29a[_0x3c7c51(0x55a)](),this['_entityInit$'][_0x3c7c51(0x3ca)](_0x25b29a),_0x25b29a;}['_getCtorByUniverType'](_0x121c7f){const _0x509c26=_0x945337;switch(_0x121c7f){case j[_0x509c26(0x395)]:return exports[_0x509c26(0x295)];case j[_0x509c26(0x53c)]:return exports[_0x509c26(0x4dd)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x121c7f);}}},exports[_0x945337(0x4ee)]=Vs([Ue(0x0,a['Inject'](a[_0x945337(0x2b5)])),Ue(0x1,a[_0x945337(0x4fa)](exports['CollaborationSessionService'])),Ue(0x2,a[_0x945337(0x57b)])],exports[_0x945337(0x4ee)]);const nt=[_0x945337(0x46f),_0x945337(0x3c0),_0x945337(0x4a6),'red300',_0x945337(0x3a4),'gold400'];class Xe extends a[_0x945337(0x45b)]{constructor(){const _0x3cd7c7=_0x945337;super(...arguments),d(this,_0x3cd7c7(0x502),new Map()),d(this,_0x3cd7c7(0x286),0x0);}['assignAColorForMemberID'](_0x1157e1){const _0xc61de6=_0x945337;if(this[_0xc61de6(0x502)][_0xc61de6(0x384)](_0x1157e1))return this[_0xc61de6(0x502)]['get'](_0x1157e1);const _0x36eb06=nt[this['_colorIndex']];return this[_0xc61de6(0x286)]=(this[_0xc61de6(0x286)]+0x1)%nt[_0xc61de6(0x3f0)],this[_0xc61de6(0x502)][_0xc61de6(0x4a8)](_0x1157e1,_0x36eb06),_0x36eb06;}}var Ws=Object[_0x945337(0x24b)],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x234042,_0xd5e2dc,_0xb8883b,_0x44a596)=>{const _0x12d550=_0x945337;for(var _0x3f4a43=_0x44a596>0x1?void 0x0:_0x44a596?Fs(_0xd5e2dc,_0xb8883b):_0xd5e2dc,_0x47d166=_0x234042[_0x12d550(0x3f0)]-0x1,_0x41dc7e;_0x47d166>=0x0;_0x47d166--)(_0x41dc7e=_0x234042[_0x47d166])&&(_0x3f4a43=(_0x44a596?_0x41dc7e(_0xd5e2dc,_0xb8883b,_0x3f4a43):_0x41dc7e(_0x3f4a43))||_0x3f4a43);return _0x44a596&&_0x3f4a43&&Ws(_0xd5e2dc,_0xb8883b,_0x3f4a43),_0x3f4a43;},K=(_0x31d690,_0x5d74f9)=>(_0x376657,_0xe85349)=>_0x5d74f9(_0x376657,_0xe85349,_0x31d690);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x945337(0x538)]{constructor(_0x490813,_0x2bedb3,_0x539af8,_0xf61bb2,_0x4d4f9d,_0x2def9e,_0x303577,_0x57240d,_0x5120a6){const _0x3e2284=_0x945337;super(),d(this,_0x3e2284(0x270),!0x1),d(this,_0x3e2284(0x458),!0x1),d(this,_0x3e2284(0x4bc),new v[(_0x3e2284(0x52c))](new Map())),d(this,_0x3e2284(0x247),this[_0x3e2284(0x4bc)][_0x3e2284(0x19b)]()),d(this,'_roomMembers$',new v[(_0x3e2284(0x52c))]([])),d(this,_0x3e2284(0x493),this[_0x3e2284(0x228)]['pipe'](v[_0x3e2284(0x3ee)](Ys))),d(this,_0x3e2284(0x4a7),a[_0x3e2284(0x49c)](_0x3198a6=>{const _0x54a9b0=_0x3e2284,_0x5d2602={'eventID':_['CollaborationEvent'][_0x54a9b0(0x206)],'data':{'unitID':this[_0x54a9b0(0x1da)],'memberID':this[_0x54a9b0(0x1e9)][_0x54a9b0(0x56a)](),'selection':Tt(_0x3198a6)}};this[_0x54a9b0(0x1e9)]['send'](_0x5d2602,this[_0x54a9b0(0x1da)]);},Ks)),(this[_0x3e2284(0x1da)]=_0x490813,this[_0x3e2284(0x1e9)]=_0x2bedb3,this[_0x3e2284(0x3dd)]=_0x539af8,this['_colorAssignService']=_0xf61bb2,this[_0x3e2284(0x526)]=_0x4d4f9d,this['_syncEditingCollabCursorService']=_0x2def9e,this[_0x3e2284(0x4f2)]=_0x303577,this['_univerInstanceService']=_0x57240d,this['_commandService']=_0x5120a6);}get[_0x945337(0x496)](){const _0x300f74=_0x945337;return this['_cursorInfo$'][_0x300f74(0x2d6)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x945337(0x1eb)](){const _0x24ee13=_0x945337;super[_0x24ee13(0x1eb)](),this['_cursorInfo$'][_0x24ee13(0x3ca)](new Map()),this['_cursorInfo$'][_0x24ee13(0x531)](),this[_0x24ee13(0x228)][_0x24ee13(0x3ca)]([]),this['_roomMembers$'][_0x24ee13(0x531)]();}[_0x945337(0x55a)](){const _0x458d97=_0x945337;this[_0x458d97(0x458)]||(this[_0x458d97(0x458)]=!0x0,this['_session'][_0x458d97(0x37f)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this[_0x458d97(0x2ec)]))[_0x458d97(0x397)](_0x5a6e1d=>{const _0x2c869e=_0x458d97;_0x5a6e1d===$[_0x2c869e(0x42e)]?this[_0x2c869e(0x415)]():this[_0x2c869e(0x218)]();}),this[_0x458d97(0x1e9)][_0x458d97(0x23f)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this['dispose$']))[_0x458d97(0x397)](_0x1687f2=>{const _0x451c2a=_0x458d97,_0x41e54c=_0x1687f2['eventID'];_0x41e54c===_['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1687f2),_0x41e54c===_[_0x451c2a(0x4eb)][_0x451c2a(0x3cb)]&&this[_0x451c2a(0x210)](_0x1687f2);}),this[_0x458d97(0x50a)](this[_0x458d97(0x256)]['onCommandExecuted'](_0x19f83a=>{const _0xfce9ee=_0x458d97,_0x5d8c5c=_0x19f83a[_0xfce9ee(0x17c)];_0x5d8c5c!=null&&this[_0xfce9ee(0x270)]&&_0x19f83a['id']===V['SetTextSelectionsOperation']['id']&&_0x5d8c5c[_0xfce9ee(0x212)]===this[_0xfce9ee(0x1da)]&&_0x5d8c5c[_0xfce9ee(0x571)]===!0x1&&this['_updateLocalCursor'](_0x5d8c5c[_0xfce9ee(0x542)]);})),this['_syncEditingCollabCursorService'][_0x458d97(0x23e)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this[_0x458d97(0x2ec)]))[_0x458d97(0x397)](_0x8aab4a=>{const _0x3255f3=_0x458d97;if((_0x8aab4a==null?void 0x0:_0x8aab4a['unitID'])!==this[_0x3255f3(0x1da)])return;const _0x4e8667={'eventID':_[_0x3255f3(0x4eb)][_0x3255f3(0x206)],'data':_0x8aab4a};this[_0x3255f3(0x1b8)](_0x4e8667);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2895ff=>{const _0x4976d7=_0x458d97;if(_0x2895ff['params']==null)return;const _0x1d2db8=_0x2895ff[_0x4976d7(0x17c)];if(_0x2895ff['id']!==V['RichTextEditingMutation']['id']||_0x1d2db8[_0x4976d7(0x212)]!==this[_0x4976d7(0x1da)])return;const _0x56d60b={'id':_0x4976d7(0x333),'params':_0x1d2db8},_0x5f353e=this[_0x4976d7(0x496)];for(const [_0x2cb237,_0x342db8]of _0x5f353e){const _0xe44a35={'id':_0x4976d7(0x333),'params':{'unitId':this[_0x4976d7(0x1da)],'actions':null,'textRanges':_0x342db8[_0x4976d7(0x542)]}},_0xcc5c89=this[_0x4976d7(0x4f2)][_0x4976d7(0x34c)](_0x56d60b,_0xe44a35,!0x1);if(_[_0x4976d7(0x420)](_0xcc5c89))throw _0xcc5c89[_0x4976d7(0x2e8)];_0x5f353e['set'](_0x2cb237,{..._0x342db8,'ranges':_0xcc5c89[_0x4976d7(0x178)][_0x4976d7(0x17c)][_0x4976d7(0x485)]});}queueMicrotask(()=>{const _0x184d4b=_0x4976d7;this[_0x184d4b(0x4bc)][_0x184d4b(0x3ca)](_0x5f353e);});})));}['_onCursorUpdate'](_0x2eb5a1){const _0x104cf8=_0x945337;var _0x4144da,_0x2cf84b;const {memberID:_0x4377f4,selection:_0x31c8bc}=_0x2eb5a1[_0x104cf8(0x375)],_0x32ae7b=Us(_0x31c8bc),_0x166ccc=(_0x2cf84b=(_0x4144da=this[_0x104cf8(0x526)][_0x104cf8(0x467)](this[_0x104cf8(0x1da)],_0x4377f4))==null?void 0x0:_0x4144da[_0x104cf8(0x508)])!=null?_0x2cf84b:_0x104cf8(0x3c2),_0x277ec2={'color':this['_colorAssignService'][_0x104cf8(0x2ac)](_0x4377f4),'name':_0x166ccc,'ranges':_0x32ae7b},_0x493e96=this['cursorInfo'];_0x493e96[_0x104cf8(0x4a8)](_0x4377f4,_0x277ec2),this[_0x104cf8(0x4bc)][_0x104cf8(0x3ca)](_0x493e96);}[_0x945337(0x210)](_0x4c474f){const _0x3a13bc=_0x945337,{memberID:_0x35dd51}=_0x4c474f[_0x3a13bc(0x375)],_0x1505bf=this['cursorInfo'];_0x1505bf[_0x3a13bc(0x532)](_0x35dd51),this['_cursorInfo$'][_0x3a13bc(0x3ca)](_0x1505bf);}[_0x945337(0x415)](){const _0x299005=_0x945337;var _0x2766fc;if(this['_online']=!0x0,((_0x2766fc=this[_0x299005(0x337)][_0x299005(0x255)]())==null?void 0x0:_0x2766fc[_0x299005(0x352)]())!==this[_0x299005(0x1da)])return;const _0x573078=this[_0x299005(0x3dd)][_0x299005(0x3eb)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x299005(0x48e)](_0x573078)&&_0x573078[_0x299005(0x3f0)]>0x0&&this[_0x299005(0x4a7)](_0x573078);}['_toggleOffline'](){const _0x236c96=_0x945337;this[_0x236c96(0x270)]=!0x1;}};$e=Gs([K(0x2,a[_0x945337(0x4fa)](a['Injector'])),K(0x3,a[_0x945337(0x4fa)](Xe)),K(0x4,a[_0x945337(0x4fa)](q)),K(0x5,a[_0x945337(0x4fa)](Ye)),K(0x6,_[_0x945337(0x429)]),K(0x7,a['IUniverInstanceService']),K(0x8,a[_0x945337(0x400)])],$e);var Xs=Object[_0x945337(0x24b)],qs=Object[_0x945337(0x3e2)],zs=(_0x17336c,_0x507f83,_0x2e536a,_0x443758)=>{for(var _0x41bacd=_0x443758>0x1?void 0x0:_0x443758?qs(_0x507f83,_0x2e536a):_0x507f83,_0x4720f9=_0x17336c['length']-0x1,_0xf2b72b;_0x4720f9>=0x0;_0x4720f9--)(_0xf2b72b=_0x17336c[_0x4720f9])&&(_0x41bacd=(_0x443758?_0xf2b72b(_0x507f83,_0x2e536a,_0x41bacd):_0xf2b72b(_0x41bacd))||_0x41bacd);return _0x443758&&_0x41bacd&&Xs(_0x507f83,_0x2e536a,_0x41bacd),_0x41bacd;},Q=(_0x3a087c,_0xfd9136)=>(_0x304a32,_0x19ea31)=>_0xfd9136(_0x304a32,_0x19ea31,_0x3a087c);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x2b6685=[],_0x4cf71b=!0x1;return _0x5da6c2=>{const _0x1743f5=_0x38f3;_0x2b6685[_0x1743f5(0x3b0)](_0x5da6c2),_0x4cf71b||(_0x4cf71b=!0x0,setTimeout(()=>{const _0x5308f4=_0x1743f5;_0x2b6685[_0x5308f4(0x278)](_0x549e81=>_0x549e81()),_0x2b6685=[],_0x4cf71b=!0x1;}));};};let He=class extends a[_0x945337(0x538)]{constructor(_0x35d5a3,_0x3e80cb,_0x438a85,_0x4311f4,_0x3ee91f,_0x427a2c,_0x3ad57b,_0x41c2c2){const _0x5a1c4f=_0x945337;super(),d(this,_0x5a1c4f(0x270),!0x1),d(this,'_init',!0x1),d(this,_0x5a1c4f(0x4bc),new v['BehaviorSubject'](new Map())),d(this,_0x5a1c4f(0x247),this[_0x5a1c4f(0x4bc)][_0x5a1c4f(0x19b)]()),d(this,_0x5a1c4f(0x228),new v['BehaviorSubject']([])),d(this,_0x5a1c4f(0x493),this['_roomMembers$'][_0x5a1c4f(0x550)](v[_0x5a1c4f(0x3ee)](Js))),d(this,_0x5a1c4f(0x4a7),a[_0x5a1c4f(0x49c)]((_0x1879bb,_0x578cba)=>{const _0xe8c8a=_0x5a1c4f,_0x2807ed={'eventID':_[_0xe8c8a(0x4eb)][_0xe8c8a(0x206)],'data':{'unitID':this[_0xe8c8a(0x1da)],'memberID':this[_0xe8c8a(0x1e9)][_0xe8c8a(0x56a)](),'selection':Je[_0xe8c8a(0x251)](_0x1879bb,_0x578cba[_0xe8c8a(0x25a)])}};this[_0xe8c8a(0x1e9)][_0xe8c8a(0x2a2)](_0x2807ed,this[_0xe8c8a(0x1da)]);},Zs)),(this['unitID']=_0x35d5a3,this['_session']=_0x3e80cb,this[_0x5a1c4f(0x3dd)]=_0x438a85,this['_colorAssignService']=_0x4311f4,this['_memberService']=_0x3ee91f,this['_univerInstanceService']=_0x427a2c,this[_0x5a1c4f(0x256)]=_0x3ad57b,this[_0x5a1c4f(0x385)]=_0x41c2c2);}get[_0x945337(0x496)](){const _0x3ddf53=_0x945337;return this[_0x3ddf53(0x4bc)][_0x3ddf53(0x2d6)]();}get['roomMembers'](){const _0x3542d2=_0x945337;return this[_0x3542d2(0x228)]['getValue']();}['dispose'](){const _0x1c2937=_0x945337;super[_0x1c2937(0x1eb)](),this['_cursorInfo$'][_0x1c2937(0x3ca)](new Map()),this[_0x1c2937(0x4bc)][_0x1c2937(0x531)](),this[_0x1c2937(0x228)]['next']([]),this[_0x1c2937(0x228)]['complete']();}['init'](){const _0x57bc12=_0x945337;this['_init']||(this[_0x57bc12(0x458)]=!0x0,this[_0x57bc12(0x1e9)][_0x57bc12(0x37f)]['pipe'](v['takeUntil'](this['dispose$']))[_0x57bc12(0x397)](_0x34a446=>{const _0x2f17f7=_0x57bc12;_0x34a446===$['ONLINE']?this[_0x2f17f7(0x415)]():this[_0x2f17f7(0x218)]();}),this[_0x57bc12(0x1e9)][_0x57bc12(0x23f)][_0x57bc12(0x550)](v[_0x57bc12(0x43c)](this[_0x57bc12(0x2ec)]))['subscribe'](_0x41ec47=>{const _0x2e5cbe=_0x57bc12,_0x1d591b=_0x41ec47[_0x2e5cbe(0x170)];_0x1d591b===_[_0x2e5cbe(0x4eb)][_0x2e5cbe(0x206)]&&this[_0x2e5cbe(0x1b8)](_0x41ec47),_0x1d591b===_[_0x2e5cbe(0x4eb)][_0x2e5cbe(0x3cb)]&&this[_0x2e5cbe(0x210)](_0x41ec47);}),this['_onRefRangeChange'](),this[_0x57bc12(0x50a)](this[_0x57bc12(0x256)]['onCommandExecuted'](_0x4ee6f6=>{const _0x13087e=_0x57bc12;if(this[_0x13087e(0x270)]&&_0x4ee6f6['id']===C[_0x13087e(0x4d1)]['id']&&_0x4ee6f6[_0x13087e(0x17c)][_0x13087e(0x212)]===this[_0x13087e(0x1da)]){const _0x1a6beb=_0x4ee6f6[_0x13087e(0x17c)];this[_0x13087e(0x4a7)](_0x1a6beb[_0x13087e(0x215)],_0x1a6beb[_0x13087e(0x53f)][0x0]);}})));}['_onCursorUpdate'](_0x44d616){const _0x153aec=_0x945337;var _0x3c91b5,_0x1be3c4;const {memberID:_0x4b859f,selection:_0x18a407}=_0x44d616[_0x153aec(0x375)],{sheetName:_0x39f5a3,range:_0x305843}=Je[_0x153aec(0x387)](_0x18a407),_0x18c5e0={'name':(_0x1be3c4=(_0x3c91b5=this[_0x153aec(0x526)][_0x153aec(0x467)](this[_0x153aec(0x1da)],_0x4b859f))==null?void 0x0:_0x3c91b5['name'])!=null?_0x1be3c4:_0x153aec(0x3c2),'range':this['_getMergeRange'](_0x39f5a3,_0x305843),'sheetID':_0x39f5a3,'color':this[_0x153aec(0x239)][_0x153aec(0x2ac)](_0x4b859f),'selection':_0x18a407},_0x4fa73d=this[_0x153aec(0x496)];_0x4fa73d['set'](_0x4b859f,_0x18c5e0),this[_0x153aec(0x4bc)][_0x153aec(0x3ca)](_0x4fa73d);}['_onCursorDelete'](_0x5501cb){const _0x347524=_0x945337,{memberID:_0x404df5}=_0x5501cb[_0x347524(0x375)],_0x138f11=this[_0x347524(0x496)];_0x138f11[_0x347524(0x532)](_0x404df5),this[_0x347524(0x4bc)][_0x347524(0x3ca)](_0x138f11);}[_0x945337(0x246)](_0x17bb34,_0x2a3afe){const _0x56debe=_0x945337;var _0x403c76,_0x3370d1;const _0x37f95c=(_0x3370d1=(_0x403c76=this[_0x56debe(0x337)][_0x56debe(0x224)](this[_0x56debe(0x1da)]))==null?void 0x0:_0x403c76['getSheetBySheetId'](_0x17bb34))==null?void 0x0:_0x3370d1[_0x56debe(0x544)]();return(_0x37f95c==null?void 0x0:_0x37f95c['find'](_0x53826d=>a[_0x56debe(0x1ff)][_0x56debe(0x36d)](_0x53826d,_0x2a3afe)))||_0x2a3afe;}['_onRefRangeChange'](){const _0x449f21=_0x945337,_0x25215c=new a[(_0x449f21(0x275))](),_0x49a8d2=Qs(),_0x7d752=()=>{const _0x9165cc=_0x449f21;_0x25215c['dispose']();const _0x543776=(_0x51da36,_0x1d7dcf,_0x3be053,_0x40b7db)=>{const _0x226ad8=_0x38f3;let _0x5eb90a=[];switch(_0x51da36['id']){case C['EffectRefRangId'][_0x226ad8(0x56e)]:{_0x5eb90a=C[_0x226ad8(0x1a7)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x36b)]:{_0x5eb90a=C[_0x226ad8(0x174)](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)][_0x226ad8(0x244)]:{_0x5eb90a=C[_0x226ad8(0x513)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x19f)]:{_0x5eb90a=C[_0x226ad8(0x476)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x5eb90a=C['handleInsertRangeMoveRight'](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x1e2)]:{_0x5eb90a=C[_0x226ad8(0x213)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x3a6)]:{_0x5eb90a=C[_0x226ad8(0x4ec)](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)][_0x226ad8(0x21f)]:{_0x5eb90a=C['handleIRemoveCol'](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)]['RemoveRowCommandId']:{_0x5eb90a=C[_0x226ad8(0x235)](_0x51da36,_0x40b7db);break;}}const _0x56b77e=C[_0x226ad8(0x1fb)](_0x5eb90a,_0x40b7db),_0xf85cf6=this[_0x226ad8(0x496)][_0x226ad8(0x3eb)](_0x1d7dcf);if(_0xf85cf6&&_0x56b77e){const _0x4bd0c3={..._0xf85cf6,'range':_0x56b77e};this[_0x226ad8(0x496)][_0x226ad8(0x4a8)](_0x1d7dcf,_0x4bd0c3),_0x49a8d2(()=>{const _0x4d8c73=_0x226ad8,_0x5b44e9=this[_0x4d8c73(0x385)][_0x4d8c73(0x425)](_0x56b77e,_0x10d563=>(_0x5b44e9[_0x4d8c73(0x1eb)](),_0x543776(_0x10d563,_0x1d7dcf,_0x3be053,_0x56b77e)));_0x25215c[_0x4d8c73(0x18a)](_0x5b44e9);});}return{'redos':[],'undos':[]};};this[_0x9165cc(0x496)]['forEach']((_0x12faf0,_0x44b028)=>{const _0x4640f0=_0x9165cc,{range:_0x1d202d,sheetID:_0x179076}=_0x12faf0,_0x4b9c27=this[_0x4640f0(0x385)][_0x4640f0(0x425)](_0x1d202d,_0x587baa=>(_0x4b9c27[_0x4640f0(0x1eb)](),_0x543776(_0x587baa,_0x44b028,_0x179076,_0x1d202d)));_0x25215c['add'](_0x4b9c27);});};this['disposeWithMe'](a['toDisposable'](this[_0x449f21(0x4bc)][_0x449f21(0x397)](()=>{_0x7d752();})));}['_toggleOnline'](){const _0x306c6d=_0x945337;var _0x3ea472,_0x3c361f;if(this[_0x306c6d(0x270)]=!0x0,((_0x3ea472=this['_univerInstanceService'][_0x306c6d(0x255)]())==null?void 0x0:_0x3ea472[_0x306c6d(0x352)]())!==this['unitID'])return;const _0x52c8d0=(_0x3c361f=this[_0x306c6d(0x3dd)][_0x306c6d(0x3eb)](C[_0x306c6d(0x403)])[_0x306c6d(0x57f)]())==null?void 0x0:_0x3c361f[0x0],_0x18e48a=this[_0x306c6d(0x337)][_0x306c6d(0x528)](a[_0x306c6d(0x3b1)][_0x306c6d(0x53c)])['getActiveSheet']();_0x52c8d0&&_0x18e48a&&this['_updateLocalCursor'](_0x18e48a[_0x306c6d(0x221)](),_0x52c8d0);}[_0x945337(0x218)](){const _0x14a47b=_0x945337;this[_0x14a47b(0x270)]=!0x1;}};He=zs([Q(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),Q(0x3,a[_0x945337(0x4fa)](Xe)),Q(0x4,a[_0x945337(0x4fa)](q)),Q(0x5,a[_0x945337(0x57b)]),Q(0x6,a[_0x945337(0x400)]),Q(0x7,a[_0x945337(0x4fa)](C[_0x945337(0x2e3)]))],He);var ei=Object[_0x945337(0x24b)],ti=Object[_0x945337(0x3e2)],si=(_0x3637b7,_0x288c99,_0x4db61f,_0x146976)=>{const _0x571244=_0x945337;for(var _0x1b5faf=_0x146976>0x1?void 0x0:_0x146976?ti(_0x288c99,_0x4db61f):_0x288c99,_0x334a4b=_0x3637b7[_0x571244(0x3f0)]-0x1,_0x25f797;_0x334a4b>=0x0;_0x334a4b--)(_0x25f797=_0x3637b7[_0x334a4b])&&(_0x1b5faf=(_0x146976?_0x25f797(_0x288c99,_0x4db61f,_0x1b5faf):_0x25f797(_0x1b5faf))||_0x1b5faf);return _0x146976&&_0x1b5faf&&ei(_0x288c99,_0x4db61f,_0x1b5faf),_0x1b5faf;},Pe=(_0x5c9361,_0x5b4c0d)=>(_0x390513,_0x2cafe4)=>_0x5b4c0d(_0x390513,_0x2cafe4,_0x5c9361);let ie=class extends a[_0x945337(0x538)]{constructor(_0x4a613f,_0x35bb96,_0x3566fc){const _0x297632=_0x945337;super(),d(this,'_entities',new Map()),d(this,_0x297632(0x32d),new v[(_0x297632(0x36e))]()),(this['_univerInstanceService']=_0x4a613f,this[_0x297632(0x3dd)]=_0x35bb96,this[_0x297632(0x407)]=_0x3566fc,this[_0x297632(0x458)]());}[_0x945337(0x1eb)](){const _0x376ff1=_0x945337;super[_0x376ff1(0x1eb)](),this['_entityInit$'][_0x376ff1(0x531)](),this[_0x376ff1(0x565)][_0x376ff1(0x278)](_0x1cba43=>_0x1cba43[_0x376ff1(0x1eb)]());}[_0x945337(0x2c6)](_0x5688c2){const _0x3553f1=_0x945337;return this[_0x3553f1(0x565)][_0x3553f1(0x384)](_0x5688c2)?this['_entities'][_0x3553f1(0x3eb)](_0x5688c2)[_0x3553f1(0x247)]:this[_0x3553f1(0x32d)]['pipe'](v[_0x3553f1(0x1dc)](_0x28d7fd=>_0x28d7fd[_0x3553f1(0x1da)]===_0x5688c2),v['switchMap'](_0x2b43cf=>_0x2b43cf['cursorInfo$']));}[_0x945337(0x458)](){const _0x3575b1=_0x945337;this[_0x3575b1(0x337)][_0x3575b1(0x51e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x53c)])['pipe'](v[_0x3575b1(0x43c)](this['dispose$']))[_0x3575b1(0x397)](async _0x224c96=>{const _0x4214a6=_0x3575b1,_0x29d880=_0x224c96['getUnitId'](),_0x4ff3e1=await this[_0x4214a6(0x32a)](_0x29d880);this[_0x4214a6(0x32d)][_0x4214a6(0x3ca)](_0x4ff3e1),this[_0x4214a6(0x565)][_0x4214a6(0x4a8)](_0x29d880,_0x4ff3e1);}),this[_0x3575b1(0x337)][_0x3575b1(0x51e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x395)])[_0x3575b1(0x550)](v[_0x3575b1(0x43c)](this[_0x3575b1(0x2ec)]))['pipe'](v[_0x3575b1(0x1dc)](_0x2a5c77=>!_0x2a5c77['getUnitId']()[_0x3575b1(0x2aa)]('__')))['subscribe'](async _0x1af05e=>{const _0x403326=_0x3575b1,_0x5b612e=_0x1af05e['getUnitId'](),_0x5753c6=await this[_0x403326(0x43b)](_0x5b612e);this[_0x403326(0x32d)][_0x403326(0x3ca)](_0x5753c6),this['_entities'][_0x403326(0x4a8)](_0x5b612e,_0x5753c6);}),v[_0x3575b1(0x515)](this[_0x3575b1(0x337)][_0x3575b1(0x18e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x395)]),this[_0x3575b1(0x337)][_0x3575b1(0x18e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x53c)]))[_0x3575b1(0x550)](v['takeUntil'](this['dispose$']))['subscribe'](_0x34c1f6=>{const _0x49cb2a=_0x3575b1,_0xe38696=_0x34c1f6[_0x49cb2a(0x352)](),_0x5b9e02=this[_0x49cb2a(0x565)][_0x49cb2a(0x3eb)](_0xe38696);_0x5b9e02&&(_0x5b9e02[_0x49cb2a(0x1eb)](),this[_0x49cb2a(0x565)][_0x49cb2a(0x532)](_0xe38696));});}async[_0x945337(0x32a)](_0x3bdbb8){const _0xf8fd2f=_0x945337,_0x88888d=await this[_0xf8fd2f(0x407)][_0xf8fd2f(0x369)](_0x3bdbb8),_0x211101=this[_0xf8fd2f(0x3dd)][_0xf8fd2f(0x39d)](He,_0x3bdbb8,_0x88888d);return _0x211101[_0xf8fd2f(0x55a)](),_0x211101;}async[_0x945337(0x43b)](_0x1984cd){const _0x35a73b=_0x945337,_0x5e6cde=await this[_0x35a73b(0x407)]['requireSession'](_0x1984cd),_0x2a0af5=this[_0x35a73b(0x3dd)][_0x35a73b(0x39d)]($e,_0x1984cd,_0x5e6cde);return _0x2a0af5[_0x35a73b(0x55a)](),_0x2a0af5;}};ie=si([Pe(0x0,a[_0x945337(0x57b)]),Pe(0x1,a[_0x945337(0x4fa)](a['Injector'])),Pe(0x2,a[_0x945337(0x4fa)](exports[_0x945337(0x3a5)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x422780,_0x25565a){const _0x4f36ef=_0x945337;let {radius:_0x191735,width:_0x2ecfcb,height:_0x4131f2}=_0x25565a;_0x191735=_0x191735!=null?_0x191735:0x0,_0x2ecfcb=_0x2ecfcb!=null?_0x2ecfcb:0x1e,_0x4131f2=_0x4131f2!=null?_0x4131f2:0x1e;let _0x58bbb4=0x0,_0x250308=0x0,_0x504099=0x0;_0x58bbb4=_0x250308=_0x504099=Math['min'](_0x191735,_0x2ecfcb/0x2,_0x4131f2/0x2),_0x422780[_0x4f36ef(0x4e5)](),_0x422780[_0x4f36ef(0x546)](_0x58bbb4,0x0),_0x422780[_0x4f36ef(0x329)](_0x2ecfcb-_0x250308,0x0),_0x422780['arc'](_0x2ecfcb-_0x250308,_0x250308,_0x250308,Math['PI']*0x3/0x2,0x0,!0x1),_0x422780['lineTo'](_0x2ecfcb,_0x4131f2-_0x504099),_0x422780[_0x4f36ef(0x386)](_0x2ecfcb-_0x504099,_0x4131f2-_0x504099,_0x504099,0x0,Math['PI']/0x2,!0x1),_0x422780['lineTo'](0x0,_0x4131f2),_0x422780[_0x4f36ef(0x329)](0x0,_0x58bbb4),_0x422780[_0x4f36ef(0x386)](_0x58bbb4,_0x58bbb4,_0x58bbb4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x422780['closePath'](),_0x25565a[_0x4f36ef(0x18c)]&&(_0x422780['save'](),_0x422780[_0x4f36ef(0x42c)]=_0x25565a[_0x4f36ef(0x18c)],_0x25565a[_0x4f36ef(0x38d)]===_0x4f36ef(0x439)?_0x422780[_0x4f36ef(0x18c)](_0x4f36ef(0x439)):_0x422780[_0x4f36ef(0x18c)](),_0x422780[_0x4f36ef(0x44b)]());}class Te extends R[_0x945337(0x366)]{constructor(_0x8e0119,_0x322db9){const _0x2cfa25=_0x945337;super(_0x8e0119,_0x322db9),d(this,_0x2cfa25(0x22b)),d(this,_0x2cfa25(0x4c8)),(this[_0x2cfa25(0x22b)]=_0x322db9==null?void 0x0:_0x322db9[_0x2cfa25(0x22b)],this[_0x2cfa25(0x4c8)]=_0x322db9==null?void 0x0:_0x322db9[_0x2cfa25(0x4c8)]);}static[_0x945337(0x39e)](_0x3d0090,_0x421397){const _0x7ad74e=_0x945337,{text:_0x4940dd,color:_0x392e04}=_0x421397;_0x3d0090[_0x7ad74e(0x4ab)](),_0x3d0090['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x345f55=_0x3d0090[_0x7ad74e(0x38a)](_0x4940dd)['width'],_0x1d17df=Math[_0x7ad74e(0x354)](_0x345f55+0x2*we,rt);ni(_0x3d0090,{'height':ue,'radius':0x4,'width':_0x1d17df,'fill':_0x392e04,'evented':!0x1}),_0x3d0090['fillStyle']=_0x7ad74e(0x309);const _0x213428=we,_0x8fe22f=ue-ii,_0x24cee5=rt-0x2*we;if(_0x345f55>_0x24cee5){let _0x260599='',_0x46c08f=0x0;for(const _0x2430e2 of _0x4940dd){const _0x1ee339=_0x3d0090[_0x7ad74e(0x38a)](_0x2430e2)[_0x7ad74e(0x1bc)];if(_0x46c08f+_0x1ee339<=_0x24cee5-_0x3d0090[_0x7ad74e(0x38a)]('...')[_0x7ad74e(0x1bc)])_0x260599+=_0x2430e2,_0x46c08f+=_0x1ee339;else{_0x260599+=_0x7ad74e(0x2ba);break;}}_0x3d0090[_0x7ad74e(0x274)](_0x260599,_0x213428,_0x8fe22f);}else _0x3d0090[_0x7ad74e(0x274)](_0x4940dd,_0x213428,_0x8fe22f);_0x3d0090[_0x7ad74e(0x44b)]();}[_0x945337(0x481)](_0x475ffc){const _0x16447c=_0x945337;Te[_0x16447c(0x39e)](_0x475ffc,this);}}const Me=_0x945337(0x200),ri='collab-text-range-',oi=_0x945337(0x41f),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x945337(0x27b);class ot{constructor(_0x117381,_0x5d6457,_0x50261d,_0x26d736){const _0xdc3ae=_0x945337;d(this,_0xdc3ae(0x556),[]),d(this,_0xdc3ae(0x401),null),d(this,_0xdc3ae(0x4e0),null),d(this,'_anchorDot',null),d(this,_0xdc3ae(0x3d1),null),d(this,_0xdc3ae(0x4c6),null),(this['_cursor']=_0x117381,this['_scene']=_0x5d6457,this['_docSkeleton']=_0x50261d,this[_0xdc3ae(0x327)]=_0x26d736,this['_render']());}set[_0x945337(0x4ff)](_0x157945){const _0x3b4567=_0x945337;_0x157945?(this[_0x3b4567(0x3e0)]&&this[_0x3b4567(0x3e0)][_0x3b4567(0x566)](),this[_0x3b4567(0x4e0)]&&this[_0x3b4567(0x4e0)][_0x3b4567(0x411)]()):(this[_0x3b4567(0x3e0)]&&this[_0x3b4567(0x3e0)]['show'](),this['_textBubble']&&this[_0x3b4567(0x4e0)]['hide']());}[_0x945337(0x1eb)](){const _0x40f36e=_0x945337;for(const _0x3f4b90 of this[_0x40f36e(0x556)])_0x3f4b90['dispose']();this['_textBubble']&&this[_0x40f36e(0x4e0)]['dispose'](),this[_0x40f36e(0x3e0)]&&this[_0x40f36e(0x3e0)][_0x40f36e(0x1eb)](),this[_0x40f36e(0x401)]&&this[_0x40f36e(0x401)][_0x40f36e(0x1eb)](),this['_eventUnsubscribe']&&this[_0x40f36e(0x4c6)]();}['_render'](){const _0x5f4a8d=_0x945337;var _0x279d02;const {_docSkeleton:_0x220900,_document:_0x2b87bb}=this,{color:_0x23a638,name:_0x1d74f6,ranges:_0x30da0b}=this[_0x5f4a8d(0x32b)],_0x2109c0=_0x2b87bb[_0x5f4a8d(0x26d)](),{docsLeft:_0x3bf1a3,docsTop:_0x505255}=_0x2109c0,_0x81d62b=new w['NodePositionConvertToCursor'](_0x2109c0,_0x220900);for(const {startOffset:_0x58f2dd,endOffset:_0x3dbe4b,collapsed:_0x4800af,isActive:_0x44fcec}of _0x30da0b){const _0x5a1e5f=_0x220900[_0x5f4a8d(0x46a)](_0x58f2dd),_0x799f45=_0x220900['findNodePositionByCharIndex'](_0x3dbe4b);if(_0x44fcec){const {contentBoxPointGroup:_0x2e1911}=_0x81d62b[_0x5f4a8d(0x54f)](_0x799f45,_0x799f45);if(_0x2e1911['length']===0x0)continue;this[_0x5f4a8d(0x450)](_0x23a638,_0x2e1911,_0x3bf1a3,_0x505255,_0x1d74f6),this[_0x5f4a8d(0x4c6)]=this['_handleHover']();}if(!_0x4800af&&_0x5a1e5f&&_0x799f45){if(w[_0x5f4a8d(0x2f0)](_0x5a1e5f,_0x799f45)){const _0xc7dfe8=new w[(_0x5f4a8d(0x211))](_0x2109c0,_0x220900),{pointGroup:_0xb4710e}=(_0x279d02=_0xc7dfe8[_0x5f4a8d(0x54f)](_0x5a1e5f,_0x799f45))!=null?_0x279d02:{};if(_0xb4710e==null||_0xb4710e[_0x5f4a8d(0x3f0)]===0x0)continue;this[_0x5f4a8d(0x563)](_0x23a638,_0xb4710e,_0x3bf1a3,_0x505255);}else{const {contentBoxPointGroup:_0x3712d0}=_0x81d62b[_0x5f4a8d(0x54f)](_0x5a1e5f,_0x799f45);if(_0x3712d0[_0x5f4a8d(0x3f0)]===0x0)continue;this[_0x5f4a8d(0x3aa)](_0x23a638,_0x3712d0,_0x3bf1a3,_0x505255);}}}}[_0x945337(0x450)](_0x991b32,_0x7b77d,_0xfea517,_0x436faa,_0x2d0ce6){const _0x36445a=_0x945337,_0x16df93=this[_0x36445a(0x1e7)](_0x7b77d),{left:_0x245045,top:_0x118e79,height:_0x382bce}=_0x16df93,_0x4cddb0=this[_0x36445a(0x303)](),_0x560312=ci/_0x4cddb0,_0x2edf53=new R[(_0x36445a(0x1f8))](Me+a[_0x36445a(0x4ea)][_0x36445a(0x227)](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa,'height':_0x382bce,'width':ai,'fill':_0x991b32||R[_0x36445a(0x32e)](a[_0x36445a(0x27a)][_0x36445a(0x484)],0x0),'strokeWidth':_0x560312,'stroke':li,'evented':!0x0});this[_0x36445a(0x401)]=_0x2edf53,this['_scene'][_0x36445a(0x4a5)](_0x2edf53,w[_0x36445a(0x48b)]);const _0xdb98b2=new R[(_0x36445a(0x1f8))](Me+a[_0x36445a(0x4ea)][_0x36445a(0x227)](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x991b32||R[_0x36445a(0x32e)](a[_0x36445a(0x27a)][_0x36445a(0x484)],0x0),'strokeWidth':0x0,'stroke':_0x991b32||R['getColor'](a[_0x36445a(0x27a)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0xdb98b2,this['_scene'][_0x36445a(0x4a5)](_0xdb98b2,w[_0x36445a(0x48b)]);const _0x3f8f83=new Te(Me+a[_0x36445a(0x4ea)]['generateRandomId'](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa-ue,'text':_0x2d0ce6,'color':_0x991b32});this[_0x36445a(0x4e0)]=_0x3f8f83,this[_0x36445a(0x52d)][_0x36445a(0x4a5)](_0x3f8f83,w['TEXT_RANGE_LAYER_INDEX']),this[_0x36445a(0x4ff)]=!0x1;}['_handleHover'](){const _0x19a697=_0x945337,_0x504c02=this[_0x19a697(0x401)]['onPointerEnter$'][_0x19a697(0x28a)](()=>{const _0x3e45eb=_0x19a697;this[_0x3e45eb(0x4ff)]=!0x0;}),_0x3c49ef=this[_0x19a697(0x401)][_0x19a697(0x4c0)][_0x19a697(0x28a)](()=>{const _0x5d0b42=_0x19a697;this[_0x5d0b42(0x3d1)]&&clearTimeout(this['_hideTimer']),this[_0x5d0b42(0x3d1)]=setTimeout(()=>{const _0x495c7c=_0x5d0b42;this[_0x495c7c(0x4ff)]=!0x1;},0x7d0);});return()=>{const _0x4ac040=_0x19a697;_0x504c02[_0x4ac040(0x346)](),_0x3c49ef[_0x4ac040(0x346)]();};}[_0x945337(0x3aa)](_0x1ed666,_0x13fa76,_0xb197ed,_0x1ba8bd){const _0x5b7fba=_0x945337,_0xdc262d=new a['ColorKit'](_0x1ed666)[_0x5b7fba(0x29f)](0.2)[_0x5b7fba(0x35b)](),_0x5ea3be=new R[(_0x5b7fba(0x1fe))](ri+a[_0x5b7fba(0x4ea)][_0x5b7fba(0x227)](ce),{'pointsGroup':_0x13fa76,'fill':_0xdc262d||R['getColor'](a[_0x5b7fba(0x27a)][_0x5b7fba(0x484)],0.2),'left':_0xb197ed,'top':_0x1ba8bd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b7fba(0x556)]['push'](_0x5ea3be),this['_scene'][_0x5b7fba(0x4a5)](_0x5ea3be,w[_0x5b7fba(0x48b)]);}[_0x945337(0x563)](_0x3c73dd,_0x247da3,_0xe352a4,_0x5ad3c6){const _0x560689=_0x945337,_0x236904=new a[(_0x560689(0x1a4))](_0x3c73dd)[_0x560689(0x29f)](0.2)['toRgbString'](),_0xd68263=new R[(_0x560689(0x1fe))](oi+a[_0x560689(0x4ea)][_0x560689(0x227)](ce),{'pointsGroup':_0x247da3,'fill':_0x236904||R[_0x560689(0x32e)](a[_0x560689(0x27a)][_0x560689(0x484)],0.2),'left':_0xe352a4,'top':_0x5ad3c6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x560689(0x3b0)](_0xd68263),this[_0x560689(0x52d)][_0x560689(0x4a5)](_0xd68263,w[_0x560689(0x48b)]);}['_getAnchorBounding'](_0x3d9efa){const _0x7fb43a=_0x3d9efa[0x0],_0x508e43=_0x7fb43a[0x0],_0x27bbda=_0x7fb43a[0x2],{x:_0x3c970a,y:_0x1ea9fb}=_0x508e43,{x:_0x38bc6a,y:_0xb52cbb}=_0x27bbda;return{'left':_0x3c970a,'top':_0x1ea9fb,'width':_0x38bc6a-_0x3c970a,'height':_0xb52cbb-_0x1ea9fb};}[_0x945337(0x303)](){const _0x549e7d=_0x945337,{scaleX:_0x4b9960,scaleY:_0x4f0427}=this[_0x549e7d(0x52d)][_0x549e7d(0x394)]();return Math[_0x549e7d(0x25c)](_0x4b9960,_0x4f0427);}}var hi=Object[_0x945337(0x24b)],_i=Object['getOwnPropertyDescriptor'],ui=(_0x989dd,_0x4daac4,_0x2b25e7,_0x1f30d1)=>{for(var _0x48e5a6=_0x1f30d1>0x1?void 0x0:_0x1f30d1?_i(_0x4daac4,_0x2b25e7):_0x4daac4,_0x4a1875=_0x989dd['length']-0x1,_0x271052;_0x4a1875>=0x0;_0x4a1875--)(_0x271052=_0x989dd[_0x4a1875])&&(_0x48e5a6=(_0x1f30d1?_0x271052(_0x4daac4,_0x2b25e7,_0x48e5a6):_0x271052(_0x48e5a6))||_0x48e5a6);return _0x1f30d1&&_0x48e5a6&&hi(_0x4daac4,_0x2b25e7,_0x48e5a6),_0x48e5a6;},de=(_0x41caa7,_0x297d6a)=>(_0x32ca0f,_0x5c00b0)=>_0x297d6a(_0x32ca0f,_0x5c00b0,_0x41caa7);let xe=class extends a[_0x945337(0x538)]{constructor(_0x24d042,_0x38f4f2,_0x962181,_0x18db58,_0x6af205){const _0x2045e8=_0x945337;super(),d(this,_0x2045e8(0x2f5),[]),d(this,_0x2045e8(0x3b8),[]),(this['_context']=_0x24d042,this[_0x2045e8(0x3f3)]=_0x38f4f2,this[_0x2045e8(0x356)]=_0x962181,this['_commandService']=_0x18db58,this[_0x2045e8(0x42d)]=_0x6af205,this[_0x2045e8(0x458)]());}[_0x945337(0x458)](){const _0x35b169=_0x945337,_0x4eb326=this[_0x35b169(0x3e8)][_0x35b169(0x212)],_0x5e6288=this[_0x35b169(0x3f3)];this[_0x35b169(0x50a)](v[_0x35b169(0x2b4)]([this['_collabCursorController'][_0x35b169(0x2c6)](_0x4eb326),this[_0x35b169(0x42d)][_0x35b169(0x3f8)]])[_0x35b169(0x550)](E[_0x35b169(0x2c1)](([_0x5bda81,_0x57e71a])=>({'skeleton':_0x5e6288['getSkeleton'](),'cursors':[..._0x5bda81[_0x35b169(0x27f)]()][_0x35b169(0x365)](_0x587fec=>({..._0x587fec,'color':_0x57e71a[_0x587fec['color']]}))})))['subscribe'](_0x25413f=>{const _0x222ee2=_0x35b169;if(this['_removeCollabCursors'](),_0x25413f){const {skeleton:_0x306ba4,cursors:_0x89dc97}=_0x25413f;this[_0x222ee2(0x376)](_0x306ba4,_0x89dc97);}})),this['_initResize'](),this[_0x35b169(0x4c7)]();}[_0x945337(0x376)](_0x8d2b4a,_0x337486){const _0x2b8098=_0x945337,{scene:_0x531f3f,mainComponent:_0x4d7aa9}=this[_0x2b8098(0x3e8)],_0x225aff=_0x337486[_0x2b8098(0x2c1)](_0x29cf29=>new ot(_0x29cf29,_0x531f3f,_0x8d2b4a,_0x4d7aa9));this['_cursorShapes']=_0x225aff,this[_0x2b8098(0x3b8)]=_0x337486;}[_0x945337(0x3be)](){const _0x5bf801=_0x945337;this[_0x5bf801(0x3bf)]();const {scene:_0x1a1984,mainComponent:_0x432f29}=this[_0x5bf801(0x3e8)],_0x47710c=this['_docSkeletonManagerService'][_0x5bf801(0x176)](),_0x17bc1d=this[_0x5bf801(0x3b8)][_0x5bf801(0x2c1)](_0x5eb294=>new ot(_0x5eb294,_0x1a1984,_0x47710c,_0x432f29));this[_0x5bf801(0x2f5)]=_0x17bc1d;}['_removeCollabCursors'](){const _0x57564f=_0x945337;this[_0x57564f(0x2f5)][_0x57564f(0x278)](_0x2aff1f=>_0x2aff1f['dispose']()),this[_0x57564f(0x2f5)]=[];}[_0x945337(0x4c7)](){const _0x4d1df1=_0x945337,_0x5ec294=[w['SetDocZoomRatioOperation']['id']];this[_0x4d1df1(0x50a)](this[_0x4d1df1(0x256)][_0x4d1df1(0x3ad)](_0x4f5f44=>{const _0x4f538c=_0x4d1df1;_0x5ec294[_0x4f538c(0x38c)](_0x4f5f44['id'])&&_0x4f5f44[_0x4f538c(0x17c)][_0x4f538c(0x212)]===this['_context'][_0x4f538c(0x212)]&&this[_0x4f538c(0x3be)]();}));}[_0x945337(0x52b)](){const _0x1af575=_0x945337;this[_0x1af575(0x50a)](a[_0x1af575(0x3fc)](this[_0x1af575(0x3e8)][_0x1af575(0x1ac)][_0x1af575(0x31e)])[_0x1af575(0x550)](E[_0x1af575(0x1dc)](_0x1e7a6c=>_0x1e7a6c[_0x1af575(0x243)]===R['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1af575(0x391)]),E[_0x1af575(0x1d8)](0x10))[_0x1af575(0x397)](()=>{const _0x24f8b3=_0x1af575;this[_0x24f8b3(0x3be)]();}));}};xe=ui([de(0x1,a['Inject'](V[_0x945337(0x447)])),de(0x2,a['Inject'](ie)),de(0x3,a[_0x945337(0x400)]),de(0x4,a['Inject'](a[_0x945337(0x2a4)]))],xe);const di=0x1,Si=1.5;class Ot extends R['Shape']{constructor(_0x382b78,_0x3779df){const _0x4defd6=_0x945337;super(_0x382b78,_0x3779df),d(this,_0x4defd6(0x197)),d(this,_0x4defd6(0x49b),!0x1),d(this,_0x4defd6(0x225)),d(this,_0x4defd6(0x203),''),d(this,_0x4defd6(0x33e),_0x4defd6(0x22f)),d(this,_0x4defd6(0x353)),(_0x3779df&&this[_0x4defd6(0x382)](_0x3779df),this[_0x4defd6(0x44f)][_0x4defd6(0x28a)](()=>this[_0x4defd6(0x382)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x4defd6(0x382)]({'hovered':!0x1})));}[_0x945337(0x382)](_0x287536){const _0x570ee2=_0x945337;var _0x5b3b1e,_0x3876a4,_0x3da982,_0x2da7dd,_0x4f8726,_0x29b3f1;this['_color']=(_0x5b3b1e=_0x287536[_0x570ee2(0x22b)])!=null?_0x5b3b1e:this[_0x570ee2(0x197)],this['_hovered']=(_0x3876a4=_0x287536[_0x570ee2(0x240)])!=null?_0x3876a4:this[_0x570ee2(0x49b)],this[_0x570ee2(0x225)]=(_0x3da982=_0x287536[_0x570ee2(0x25a)])!=null?_0x3da982:this[_0x570ee2(0x225)],this[_0x570ee2(0x203)]=(_0x2da7dd=_0x287536[_0x570ee2(0x508)])!=null?_0x2da7dd:this[_0x570ee2(0x203)],this['_labelPosition']=(_0x4f8726=_0x287536[_0x570ee2(0x370)])!=null?_0x4f8726:this[_0x570ee2(0x33e)],this[_0x570ee2(0x353)]=(_0x29b3f1=_0x287536[_0x570ee2(0x304)])!=null?_0x29b3f1:this[_0x570ee2(0x353)],this[_0x570ee2(0x3ce)]({'width':_0x287536['width'],'height':_0x287536[_0x570ee2(0x2f8)]});}[_0x945337(0x3de)](_0x57635f){const _0x165e2c=_0x945337,{row:_0x2f3c3d,column:_0x232bf1}=_0x57635f;if(_0x2f3c3d>=this['_range']['startRow']&&_0x2f3c3d<=this['_range']['endRow']&&_0x232bf1>=this[_0x165e2c(0x225)][_0x165e2c(0x462)]&&_0x232bf1<=this['_range'][_0x165e2c(0x284)]){this[_0x165e2c(0x382)]({'hovered':!0x0});return;}this[_0x165e2c(0x382)]({'hovered':!0x1});}[_0x945337(0x26c)](_0x3efa56){return!0x1;}[_0x945337(0x481)](_0x5ce87e){const _0xc6af58=_0x945337;R[_0xc6af58(0x1f8)][_0xc6af58(0x39e)](_0x5ce87e,{'width':this[_0xc6af58(0x1bc)],'height':this['height'],'strokeWidth':Si,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc6af58(0x353)]}),this['_hovered']&&(_0x5ce87e[_0xc6af58(0x4ab)](),_0x5ce87e[_0xc6af58(0x449)](0x1,0x0,0x0,0x1,this['width'],this[_0xc6af58(0x33e)]===_0xc6af58(0x4db)?0x0:-ue),Te[_0xc6af58(0x39e)](_0x5ce87e,{'text':this[_0xc6af58(0x203)],'color':this[_0xc6af58(0x197)]}),_0x5ce87e[_0xc6af58(0x44b)]());}}var vi=Object['defineProperty'],fi=Object[_0x945337(0x3e2)],gi=(_0x407ab8,_0x4c00f8,_0x373964,_0x4a72a9)=>{const _0x138567=_0x945337;for(var _0x1f1413=_0x4a72a9>0x1?void 0x0:_0x4a72a9?fi(_0x4c00f8,_0x373964):_0x4c00f8,_0x115274=_0x407ab8[_0x138567(0x3f0)]-0x1,_0x11988a;_0x115274>=0x0;_0x115274--)(_0x11988a=_0x407ab8[_0x115274])&&(_0x1f1413=(_0x4a72a9?_0x11988a(_0x4c00f8,_0x373964,_0x1f1413):_0x11988a(_0x1f1413))||_0x1f1413);return _0x4a72a9&&_0x1f1413&&vi(_0x4c00f8,_0x373964,_0x1f1413),_0x1f1413;},Ae=(_0x171099,_0x6b642f)=>(_0x58973f,_0x3386c6)=>_0x6b642f(_0x58973f,_0x3386c6,_0x171099);const mi=0x1389;let ke=class extends a[_0x945337(0x538)]{constructor(_0x5343df,_0x30c5c6,_0x1796b5,_0x5b4ace){const _0x11c3b7=_0x945337;super(),d(this,_0x11c3b7(0x3b8),new Set()),d(this,_0x11c3b7(0x43a),null),(this[_0x11c3b7(0x3e8)]=_0x5343df,this[_0x11c3b7(0x2a6)]=_0x30c5c6,this[_0x11c3b7(0x356)]=_0x1796b5,this[_0x11c3b7(0x42d)]=_0x5b4ace,this['_init']());}[_0x945337(0x458)](){const _0x18035=_0x945337;this[_0x18035(0x2a6)]['currentSkeleton$'][_0x18035(0x550)](E[_0x18035(0x43c)](this['dispose$']),E[_0x18035(0x442)](_0x3e5bae=>{const _0x19f80e=_0x18035;if(_0x3e5bae){const _0x12481d=_0x3e5bae['sheetId'];return v[_0x19f80e(0x2b4)](this[_0x19f80e(0x356)][_0x19f80e(0x2c6)](this[_0x19f80e(0x3e8)][_0x19f80e(0x212)]),this[_0x19f80e(0x42d)][_0x19f80e(0x3f8)])[_0x19f80e(0x550)](E[_0x19f80e(0x2c1)](([_0x24a336,_0x3e0d04])=>{const _0x51a473=_0x19f80e,_0x3edf26=new Map();return _0x24a336[_0x51a473(0x278)]((_0x28be31,_0x363970)=>{const _0x3b2cfc=_0x51a473;if(_0x28be31[_0x3b2cfc(0x264)]===_0x12481d){const _0x5dcc5e={..._0x28be31};_0x5dcc5e['color']=_0x3e0d04[_0x28be31[_0x3b2cfc(0x22b)]],_0x3edf26[_0x3b2cfc(0x4a8)](_0x363970,_0x5dcc5e);}}),{'skeleton':_0x3e5bae,'cursors':_0x3edf26};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x18035(0x397)](({skeleton:_0x17e714,cursors:_0x596d7c})=>{const _0xb27546=_0x18035;this[_0xb27546(0x3bf)](),_0x17e714&&this[_0xb27546(0x376)](_0x17e714,_0x596d7c);}),this[_0x18035(0x2a6)][_0x18035(0x3d0)][_0x18035(0x397)](_0x4c0ac4=>{const _0x159a99=_0x18035;if(_0x4c0ac4==null)return;const {skeleton:_0x208a6c}=_0x4c0ac4,{scene:_0x41adfe}=this[_0x159a99(0x3e8)];_0x41adfe[_0x159a99(0x3af)][_0x159a99(0x28a)](a[_0x159a99(0x49c)](_0x1bc98d=>{const _0xb86ed0=_0x159a99;var _0x298f34,_0x2818de;const {offsetX:_0x238577,offsetY:_0x3ea516}=_0x1bc98d,{x:_0x5b3cee,y:_0x205e06}=_0x41adfe['getRelativeToViewportCoord'](R[_0xb86ed0(0x490)]['FromArray']([_0x238577,_0x3ea516])),{scaleX:_0x44b130,scaleY:_0x1a8718}=_0x41adfe[_0xb86ed0(0x394)](),_0x45e64b=_0x41adfe[_0xb86ed0(0x195)](te[_0xb86ed0(0x3d9)][_0xb86ed0(0x37b)]),_0x15f2a3=_0x41adfe[_0xb86ed0(0x207)](R['Vector2']['FromArray']([_0x5b3cee,_0x205e06]),_0x45e64b),_0x5b9c0f=_0x208a6c[_0xb86ed0(0x2cb)](_0x238577,_0x3ea516,_0x44b130,_0x1a8718,_0x15f2a3);((_0x298f34=this['_lastPointer'])==null?void 0x0:_0x298f34[_0xb86ed0(0x4b4)])===_0x5b9c0f[_0xb86ed0(0x4b4)]&&((_0x2818de=this[_0xb86ed0(0x43a)])==null?void 0x0:_0x2818de[_0xb86ed0(0x3fb)])===_0x5b9c0f[_0xb86ed0(0x3fb)]||this['_cursors'][_0xb86ed0(0x278)](_0x17d95e=>{const _0x40849c=_0xb86ed0;_0x17d95e[_0x40849c(0x3de)](_0x5b9c0f);});},0x64));});}[_0x945337(0x376)](_0x3dceac,_0x21231e){const _0x32dd3e=_0x945337;var _0x3ab2c4;const _0x57b547=(_0x3ab2c4=this[_0x32dd3e(0x2a6)]['getCurrent']())==null?void 0x0:_0x3ab2c4['skeleton'];if(!_0x57b547)return;const _0x24d4fb=this[_0x32dd3e(0x419)]();if(!_0x24d4fb)return;this['_cursors'][_0x32dd3e(0x278)](_0x1b9d50=>{const _0x34c204=_0x32dd3e;_0x1b9d50[_0x34c204(0x2e5)]();});const {scene:_0x2bce08}=_0x24d4fb,_0x300722=Ii(Array[_0x32dd3e(0x3f2)](_0x21231e[_0x32dd3e(0x27f)]()))[_0x32dd3e(0x2c1)](_0x6f3596=>{const _0x1e9894=_0x32dd3e,{color:_0x5c82c9,range:_0x5de28e,name:_0x510418,selection:_0x3f1139,sheetID:_0x9a22c4}=_0x6f3596,{startColumn:_0x52e607,startRow:_0x5a2df1,endColumn:_0x15a109,endRow:_0x11b1c4}=_0x5de28e,_0x6c9e46=te[_0x1e9894(0x39f)](_0x5a2df1,_0x52e607,_0x2bce08,_0x57b547),_0x5abc55=te['getCoordByCell'](_0x11b1c4,_0x15a109,_0x2bce08,_0x57b547),{columnHeaderHeightAndMarginTop:_0xd15b2b}=_0x57b547,{startX:_0x1b2110,startY:_0x20132d}=_0x6c9e46,{endX:_0x1becf0,endY:_0x294fed}=_0x5abc55,_0x50c104=_0x1becf0-_0x1b2110,_0x3116fe=_0x294fed-_0x20132d,_0x59acbb={'labelPosition':_0x20132d-_0xd15b2b>=ue?_0x1e9894(0x22f):_0x1e9894(0x4db),'sheetID':_0x9a22c4,'range':_0x5de28e,'color':_0x5c82c9,'name':_0x510418,'selection':_0x3f1139,'left':_0x1b2110,'top':_0x20132d,'width':_0x50c104,'height':_0x3116fe,'evented':!0x1,'zIndex':mi};return new Ot(_0x510418,_0x59acbb);});_0x2bce08[_0x32dd3e(0x477)](_0x300722,di),this[_0x32dd3e(0x3b8)]=new Set(_0x300722);}[_0x945337(0x3bf)](){const _0xe65db5=_0x945337;var _0x3e34c3;(_0x3e34c3=this[_0xe65db5(0x3b8)])==null||_0x3e34c3[_0xe65db5(0x278)](_0x566d60=>_0x566d60[_0xe65db5(0x1eb)]());}[_0x945337(0x419)](){const _0x528281=_0x945337;return te[_0x528281(0x2b9)](this['_context'][_0x528281(0x42a)],this['_context']);}};ke=gi([Ae(0x1,a[_0x945337(0x4fa)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](ie)),Ae(0x3,a[_0x945337(0x4fa)](a['ThemeService']))],ke);function Ii(_0x23850c){const _0x1120d8=_0x945337,_0x4e8b12=new Map();return _0x23850c[_0x1120d8(0x278)](_0x2883f0=>{const _0x14d839=_0x1120d8;if(_0x4e8b12[_0x14d839(0x384)](_0x2883f0[_0x14d839(0x2a9)])){const _0x31f281=_0x4e8b12[_0x14d839(0x3eb)](_0x2883f0[_0x14d839(0x2a9)]);_0x31f281[_0x14d839(0x508)]+=',\x20'+_0x2883f0[_0x14d839(0x508)];}else _0x4e8b12[_0x14d839(0x4a8)](_0x2883f0[_0x14d839(0x2a9)],_0x2883f0);}),Array[_0x1120d8(0x3f2)](_0x4e8b12[_0x1120d8(0x27f)]());}var M=function(){const _0x1d8d38=_0x945337;return M=Object[_0x1d8d38(0x33f)]||function(_0x1d15be){const _0x10d6b0=_0x1d8d38;for(var _0x3a2043,_0x455f00=0x1,_0x38d634=arguments[_0x10d6b0(0x3f0)];_0x455f00<_0x38d634;_0x455f00++){_0x3a2043=arguments[_0x455f00];for(var _0x3f5ec5 in _0x3a2043)Object['prototype'][_0x10d6b0(0x47c)][_0x10d6b0(0x441)](_0x3a2043,_0x3f5ec5)&&(_0x1d15be[_0x3f5ec5]=_0x3a2043[_0x3f5ec5]);}return _0x1d15be;},M[_0x1d8d38(0x319)](this,arguments);},pi=function(_0x43af07,_0x430b1c){const _0x535be6=_0x945337;var _0xffdf0={};for(var _0x4e2ed2 in _0x43af07)Object['prototype'][_0x535be6(0x47c)]['call'](_0x43af07,_0x4e2ed2)&&_0x430b1c[_0x535be6(0x1a0)](_0x4e2ed2)<0x0&&(_0xffdf0[_0x4e2ed2]=_0x43af07[_0x4e2ed2]);if(_0x43af07!=null&&typeof Object[_0x535be6(0x34e)]==_0x535be6(0x408)){for(var _0x2f1599=0x0,_0x4e2ed2=Object['getOwnPropertySymbols'](_0x43af07);_0x2f1599<_0x4e2ed2['length'];_0x2f1599++)_0x430b1c[_0x535be6(0x1a0)](_0x4e2ed2[_0x2f1599])<0x0&&Object[_0x535be6(0x4c5)][_0x535be6(0x242)][_0x535be6(0x441)](_0x43af07,_0x4e2ed2[_0x2f1599])&&(_0xffdf0[_0x4e2ed2[_0x2f1599]]=_0x43af07[_0x4e2ed2[_0x2f1599]]);}return _0xffdf0;},qe=U[_0x945337(0x43e)](function(_0x1de81e,_0x32e8e6){const _0x222901=_0x945337;var _0x1ad02b=_0x1de81e[_0x222901(0x42b)],_0x281d90=_0x1de81e['id'],_0x351cc9=_0x1de81e[_0x222901(0x320)],_0x99b8b3=_0x1de81e['extend'],_0x4ac30f=pi(_0x1de81e,[_0x222901(0x42b),'id',_0x222901(0x320),_0x222901(0x4ca)]),_0x1e80bd='univerjs-icon\x20univerjs-icon-'[_0x222901(0x53d)](_0x281d90,'\x20')[_0x222901(0x53d)](_0x351cc9||'')[_0x222901(0x302)](),_0x527902=U['useRef']('_'[_0x222901(0x53d)](bi()));return Dt(_0x1ad02b,''[_0x222901(0x53d)](_0x281d90),{'defIds':_0x1ad02b['defIds'],'idSuffix':_0x527902[_0x222901(0x262)]},M({'ref':_0x32e8e6,'className':_0x1e80bd},_0x4ac30f),_0x99b8b3);});function Dt(_0x4364e3,_0x369eed,_0x1409ff,_0x488054,_0x1a5a9d){const _0x48f674=_0x945337;return U[_0x48f674(0x1b0)](_0x4364e3['tag'],M(M({'key':_0x369eed},Ci(_0x4364e3,_0x1409ff,_0x1a5a9d)),_0x488054),(Ei(_0x4364e3,_0x1409ff)[_0x48f674(0x362)]||[])[_0x48f674(0x2c1)](function(_0x3e6013,_0x1f98da){const _0x3ce9d4=_0x48f674;return Dt(_0x3e6013,''[_0x3ce9d4(0x53d)](_0x369eed,'-')[_0x3ce9d4(0x53d)](_0x4364e3[_0x3ce9d4(0x231)],'-')[_0x3ce9d4(0x53d)](_0x1f98da),_0x1409ff,void 0x0,_0x1a5a9d);}));}function Ci(_0x18428a,_0x48524e,_0x127852){const _0x1f8298=_0x945337;var _0x5c02e6=M({},_0x18428a[_0x1f8298(0x53e)]);_0x127852!=null&&_0x127852[_0x1f8298(0x306)]&&_0x5c02e6['fill']===_0x1f8298(0x306)&&(_0x5c02e6[_0x1f8298(0x18c)]=_0x127852[_0x1f8298(0x306)]);var _0x448bd4=_0x48524e[_0x1f8298(0x1c4)];return!_0x448bd4||_0x448bd4['length']===0x0||(_0x18428a[_0x1f8298(0x231)]===_0x1f8298(0x4b6)&&_0x5c02e6[_0x1f8298(0x233)]&&(_0x5c02e6[_0x1f8298(0x233)]=_0x5c02e6[_0x1f8298(0x233)]+_0x48524e[_0x1f8298(0x48d)]),Object[_0x1f8298(0x519)](_0x5c02e6)[_0x1f8298(0x278)](function(_0x51b0ec){const _0x4d6d17=_0x1f8298;var _0x591810=_0x51b0ec[0x0],_0x3c68b1=_0x51b0ec[0x1];typeof _0x3c68b1==_0x4d6d17(0x312)&&(_0x5c02e6[_0x591810]=_0x3c68b1[_0x4d6d17(0x559)](/url\(#(.*)\)/,_0x4d6d17(0x26e)[_0x4d6d17(0x53d)](_0x48524e[_0x4d6d17(0x48d)],')')));})),_0x5c02e6;}function _0x336a(){const _0x512a6d=['_assignedColors','M0\x200H16V16H0z','url(#on-line-single_clip0_910_349)','executeCommand','toggleOffline','editingUnit','name','clearTimeout','disposeWithMe','_onUserJoin','_sheetTransformSelectionsService','/object/','[SyncedState]:\x20received\x20acknowledgement.','_onOffline','/collaborator','_transformPreviousActiveRange','[UniverCollaborationClientPlugin]','handleInsertCol','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','merge','[PendingState]:\x20received\x20rejection.','&source=','_onMessage','entries','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_event$','_onCombEvent','FETCH_MISSING','getTypeOfUnitAdded$','reverse','_transitionLocked','_onRemoteACK','UUID','_getSignURL','patch','allowed','_memberService','IURLService','getCurrentUnitForType','_sendHeartbeatTimer','_HTTPService','_initResize','BehaviorSubject','_scene','UNIVER_UNKNOWN','_stopTelemetryCollaborationNewChangeset','_urlService','complete','delete','_initModules','_id','HEARTBEAT_TIMEOUT','number','APPLY_REJECT','RxDisposable','setItem','_disableEditing','@univerjs/docs-ui','UNIVER_SHEET','concat','attrs','selections','/role','SNAPSHOT_INVALID_SNAPSHOT','ranges','mapDocumentTypeToUniverType','getMergeData','with','moveTo','AUTHZ_URL_KEY','getTime','_sendingTimer','onSyncEditingCollabCursor','currentColor','ERROR_IMAGE_TYPE','_snapshotServerService','SNAPSHOT_SERVER_URL_KEY','getRangePointData','pipe','take','isTransformMutationsWithChangesetFailure','@univerjs/ui','_socketReady','_notificationService','_shapes','HttpImport','transformChangesets','replace','init','LOCAL_CACHE_INTERVAL','_imageSourceCache','fetchMissingChangesets','&assign=','path','241760yEVuai','appendMutation','_socketService','_drawRectRange','AWAITING_WITH_PENDING','_entities','hide','collabStatus.fetchMiss','_roomMembers','_userManagerService','getMemberID','urlChange$','_socket$','SUBMIT_CHANGESET','DeleteRangeMoveLeftCommandId','image/png','visibilitychange','isEditing','conflict.title','CHANGESET_REJ','RevisionService','APPLY_PERMISSION_DENIED','_localCacheService','_getUndoStack','distinctUntilChanged','_rescheduleHeartbeat','_collaborationTimeoutTimer','IUniverInstanceService','[DataLoaderController]','image/bmp','useCallback','getCurrentSelections','reduce','_updateLocalCache','_collabCursorState$','_send','UNIVER_SLIDE','_getCtorByUniverType','eventID','_state','_docTransformIMECacheService','getUnhiddenWorksheets','handleDeleteRangeMoveUp','_sessions','getSkeleton','update','m2Prime','saveSheetBlock','requestParams','1086932aayVoP','params','socket\x20close','size','_compressMutationService','whenReady','updateMember','_docStateChangeManagerService','collaboration.closeRoom','readAsDataURL','11430iuYShX','PERMISSION_REJ','LocalUndoRedoService','Optional','@univerjs/telemetry','add','LICENSE_IMPORT_SIZE_EXCEEDED','fill','activeSheet$','getTypeOfUnitDisposed$','resolve','PERMISSION_DENIED','setTimeout','300462gpYfov','round','_pendingMutations','getViewport','clear','_color','state','_registerDependencies','b64DecodeUnicode','asObservable','_createHandler','Warning','disableLocalCache','InsertRangeMoveDownCommandId','indexOf','shouldCloseConn','PENDING','mapTo','ColorKit','getImageSourceCache','HTTPRequest','handleDeleteRangeMoveLeft','getInterceptPoints','_collaborationController','CompressMutationService','json','engine','_type','objectActions','title','createElement','onTransformRemoteChangesetByIMECache','getSheetBySheetId','_localStorageService','InsertSheetMutation','removeParam','awaitingChangeset','_remoteChangesetQueue','_onCursorUpdate','YUUMI_URL_COL_OUT_OF_RANGE','_saveCache','_heartbeatTimer','width','YUUMI_SUBSCRIPTION_NOT_FOUND','_acknowledgedAwaitingChangeset','_sendHeartbeat','_getCurrentRevision','offline','getRoom','downloadEndpointUrl','defIds','2864HHgxkI','routeKey','_handleEvent','HEARTBEAT_TIMEOUT_KEY','_replaceFileID','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','INVALID_ARGUMENT','_waitCount','_joinRoom','DesktopCollaborationStatusDisplayController','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','transformUndoRedo','transformIMECache','USERS_ENTER','_onConnectionOpen','onRemoteChangeset','saveOfflineData','_updateURLWithCurrentState','_getSnapshotAPIPrefix','throttleTime','ERROR_IMAGE','unitID','_saveTaskMap','filter','isInternalEditorID','confirm','_revisionService','DocSelectionManagerService','@univerjs-pro/collaboration','InsertRowCommandId','withCredentials','commentUpdateEvent','_clearCollaborationTimeoutTimer','/-/object/-/batch_allowed','_getAnchorBounding','url','_session','addEventListener','dispose','awaiting_with_pending','/block/','objectID','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onlyLocal','CHANGESET_ACK','UnitSnapshot','LEAVE','_onRecvEvent','_onRemoteChangeset','_undoStacks','IConfigService','Rect','m1Prime','ACTIVE_UNIT_EVENT_CHANNEL','runRefRangeMutations','rxjs','Plugin','RegularPolygon','Rectangle','collab-text-anchor-','transformRemoteChangeset','UNRECOGNIZED','_name','_clearOtherTimers','div','UPDATE_CURSOR','getVpScrollXYInfoByPosToVp','image/jpeg','_permissionService','session.room-full','[OfflineState]:\x20received\x20acknowledgement.','code','updateCursorEvent','onStateChange','_unitID','_onCursorDelete','NodePositionConvertToRectRange','unitId','handleInsertRow','unit-cache-','subUnitId','UNIVER_PROJECT','_undoRedoService','_toggleOffline','url(#off-line-single_clip0_910_343)','_localeService','src','_clearHeartbeatTimer','parseChangesetToProtocol','getParam','RemoveColCommandId','OnLineSingle','getSheetId','capture','fromEvent','getUniverSheetInstance','_range','registerBeforeClose','generateRandomId','_roomMembers$','TOO_MANY_REQUESTS','_beforeCloseService','color','_snapshotService','stringify','HTTPService','top','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','tag','_throwTelemetryCollaborationNewChangeset','xlink:href','collabStatus.notCollab','handleIRemoveRow','@univerjs/engine-render','_telemetryInfo','useDependency','_colorAssignService','find','_handleJoinEvent','CollaborationEntity','signUrlServerUrl','collabCursorState$','event$','hovered','roomInfos','propertyIsEnumerable','type','InsertColCommandId','liveShareNewHost','_getMergeRange','cursorInfo$','registerHTTPInterceptor','exhaustSavingTask','rev','defineProperty','pluginName','loginUrlKey','EffectRefRangId','fetch_missing','_showConflictNotification','serializeRangeWithSheet','visibilityState','leaveEvent','_unitOnClients','getFocusedUnit','_commandService','_uiPartsService','getConfig','status$','range','ws://127.0.0.1:8000/universer-api/comb/connect','max','ITelemetryService','_docSyncEditingCollabCursorService','HELLO','_isPermissionRej','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','current','IDLE','sheetID','/universer-api/stream/file/upload','_http','toggleOnline','IUIPartsService','key','univer-pro.collaboration-client.single-active-unit-service','list','triggerDblclick','getOffsetConfig','url(#$1','@univerjs/design','_online','syncEditingCollabCursor','_setupSubUnitSync','APPLY_NON_SEQUENTIAL_REVISION','fillText','DisposableCollection','UNDEFINED','_renderManagerService','forEach','reject','COLORS','rgba(255,\x20255,\x20255,\x200.01)','getUnitType','getCollabEntity','x-univer-host','values','append','ALREADY_EXISTS','[CollaborationSessionService]','conflict.content','endColumn','_onLocalMutation','_colorIndex','newValue','_loadSheet','revision','subscribeEvent','enableAuthServer','fetching\x20missing\x20changesets\x20from\x20','registerComponent','1em','clipPath','sessionStatus','@univerjs/drawing','DependentOn','UniverIcon','onRemoteRej','DocCollaborationEntity','toDisposable','registerRenderModule','WorkbookEditablePermission','LocaleService','collaMsg','UnitEmbedded','joinRsp','[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.','COMPLETION_FINISHED','setAlpha','HEADER_MENU','_commentUpdate$','send','BASE64','ThemeService','put','_sheetSkeletonManagerService','_queuedRemoteChangesets','UniverCollaborationPlugin','selection','startsWith','memberID','assignAColorForMemberID','[CollaborationEntity]','encodeURIComponent','collabWebSocketUrl','5cbmHJn','_cachedData','IMessageService','_syncEditingCollabCursor','combineLatest','Injector','/object','DEFAULT_FILE_NAME','_telemetryService','getSheetObject','...','_initStatusComponent','_schedule','not_collab','createCollaborator','FETCH_MISS','CollaborationStatus','map','CHANGESET_REVISION_CONFILICT','online','IRenderManagerService','_unitStatus','getCollabCursors$','_transformUndoredo','LIVESHARE_REQUEST_HOST','AWAITING','_transformStack','getCellPositionByOffset','/resources','history','WebSocketService','objects','loadOfflineData','MSG_FOR_ERROR','Undefined','_initRequestHeader','LOGIN_URL_KEY','IRemoteInstanceService','getValue','_incrementRevisionNumber','SHOULD_CLOSE_CONN','focused$','LICENSE_MAX_UNITS_EXCEEDED','getAttachHeader','_waitForHeartbeatResponse','_getSendChangesetTimeout','[CollaborationState]:\x20apply\x20error!','searchParams','parse','none','fetchMiss','RefRangeService','#fff','makeDirty','_handleLeaveEvent','onlineStatus','error','onRendered','socket$','_initStatusListener','dispose$','replaceState','univer-pro.collaboration-client-socket-service','INTERNAL_ERROR','isValidRectRange','encode','\x20in\x20_schedule.','stopTime','RECV','_cursorShapes','@univerjs/network','_submitChangeset','height','baseRev','failed\x20to\x20apply\x20missed\x20changesets!','CommandType','/fetchmissing?from=','OTHER_CLIENTS_EDITING','deepClone','_applyRemoteChangeset','UniverCollaborationClientPlugin','isTransformChangesetsSuccess','trim','_getScale','backgroundColor','CollaborationSocketService','colorChannel1','getCurrentUser','/universer-api/oidc/authpage','#FFF','CollaborationSession','members','LIVESHARE_FETCH_OPERATIONS','Module','getSheetBlock','create','_sessionStatus$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','string','_clearLocalCache','onload','POST','RichTextEditingMutation','auth.needGotoLoginAlert','session','apply','_updateState','snapshot','storage','[PendingState]:\x20unhandled\x20univer\x20type:\x20','onTransformChange$','_initMergeInterceptor','className','getUnitStatus$','close','UNIVER_COLLABORATION_CLIENT_PLUGIN','onMissingChangesets','displayName','_onJoinRoomEvent','_document','_singleActiveUnitService','lineTo','_startSheetCollabCursor','_cursor','/new_changes','_entityInit$','getColor','substring','setInterval','result','_setupBeforeClosingHandler','doc.mutation.rich-text-editing','_transformIMECache','_scheduleCollaborationTimeoutTimer','ThresholdInterceptorFactory','_univerInstanceService','_shouldReportTelemetry','_disabled','getUnitOnRev','loadDoc','then','_onRemoteRejected','_labelPosition','assign','change$','origin','setCurrentUser','close$','onRemoteAck','setActiveRange','unsubscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','0\x200\x2017\x2016','DocIMEInputManagerService','enableOfflineEditing','LICENSE_DISTRO_REJECTED','transformMutation','_clearRedo','getOwnPropertySymbols','_loadDoc','closeSession','getDocRanges','getUnitId','_backgroundColor','min','UNAUTHENTICATED','_collabCursorController','_getUploadFileURL','pending','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_status$','toRgbString','/universer-api/comb','_checkMissing','/unit/','body','updatePermissionObjEvent','COMPRESS_MUTATION_APPLY','children','_executeRemoteChangeset','1031720ckQJOD','flatMap','Shape','MessageType','deserializeToCombResponse','requireSession','createIdentifier','DeleteRangeMoveUpCommandId','mergeOverrideWithDependencies','contains','Subject','MUTATION','labelPosition','ERROR_EXCEED_SIZE','Error','getItem','COLLAB_SUBMIT_CHANGESET_URL','data','_updateCollabCursors','collabSubmitChangesetUrl','location','_scheduleSaving','parseProtocolChangeset','VIEW_MAIN','changesets','collaboration-client.offline-data-not-saved','setUndoRedoMutationParamsCache','sessionStatus$','HEARTBEAT_INTERVAL','@univerjs/sheets','setShapeProps','/allowed','has','_refRangeService','arc','deserializeRangeWithSheet','session.collaboration-timeout','session.will-retry','measureText','IUndoRedoService','includes','fillRule','NOT_COLLAB','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_ws','resize','_messageService','[CollaborationSession]','getAncestorScale','UNIVER_DOC','retryConnectingInterval','subscribe','_initCloseConn','JOINING','sequenceExecute','serializeCombRequest','onCommentUpdate','createInstance','drawWith','getCoordByCell','YUUMI_RATE_OVER_LIMIT','isPermissionRej','infoRsp','LocalCacheService','blue400','CollaborationSessionService','MoveRangeCommandId','socketService','INotificationService','@univerjs/rpc','_drawTextRange','WebURLService','duration','onCommandExecuted','connection\x20error','onPointerMove$','push','UniverInstanceType','FileId','_getAPIPrefix','rxjs/operators','touchDependencies','permission.content','_unlockTransition','_cursors','interceptor','awaiting','LICENSE_EXPORT_SIZE_EXCEEDED','/universer-api/file/{fileID}/sign-url','MergeInterceptorFactory','_refreshCollabCursors','_removeCollabCursors','jiqing500','saveImage','Unknown\x20user','_createSocket','socket\x20open.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','NEW_CHANGESETS','onlineStatusTitle','unshift','_onUserLeave','next','USERS_LEAVE','SnapshotServerOverHTTPService','LIVESHARE_TERMINATE','transformByState','COLLAB_WEB_SOCKET_URL_KEY','currentSkeleton$','_hideTimer','onTransformIME','conflict','_scheduleClearOtherTimer','_handleHeartbeatEvent','react','EmptyMutation','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','VIEWPORT_KEY','off-line-single','isActive','message$','_injector','onMouseMove','SEND_CHANGESET_TIMEOUT_KEY','_anchorDot','collaboratorID','getOwnPropertyDescriptor','originalMeta','_listenToOnlineEvent','_candidateSocket','UNKNOWN_CODE','APPLY_REVISION_CONFILICT','_context','_updateSubUnitFromURLParams','enableLocalCache','get','3969847YPwRmY','collabStatus.synced','debounceTime','actions','length','CollaborationStatusDisplay','from','_docSkeletonManagerService','_instanceService','_onConflict','getUndoRedoMutationParamsCache','isTransformMutationsWithChangesetSuccess','currentTheme$','_onFetchMissResult','BuiltInUIPart','row','fromEventSubject','_collaborationPaused','_socket','catch','ICommandService','_anchor','collaboration.single-unit.warning','SheetsSelectionsService','_handler','now','collabStatus.conflict','_collabSessionService','function','href','fetchThroughInterceptors','AuthzIoHttpService','getResourcesRequest','saveChangeset','UserManagerService','\x0aAfter:\x20','_listenToOfflineEvent','show','_fetchMissChangesets','/universer-api/snapshot','IPermissionService','_toggleOnline','_change$','_startCollaboration','@univerjs/engine-formula','_getSheetObject','_clearUndo','_scheduleTimestamp','removeMember','uni.network.url-service','refreshPermission','collab-rect-range-','isTransformMutationFailure','shareReplay','_updateStatus','_awaitingChangeset','copyFileMeta','registerRefRange','[CollaborationSessionService]:\x20socket\x20error','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_members','ITransformService','unit','icon','fillStyle','_themeService','ONLINE','method','?url=','headers','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','objectType','roles','mutations','getCurrentRevOfUnit','_retryCount','SNAPSHOT_URL_KEY','evenodd','_lastPointer','_startDocCollabCursor','takeUntil','Workbook','forwardRef','textEncoder','initWorkbookPermissionChange','call','switchMap','onMissedChangesetFetched','/-/object/list','open$','onReady','DocSkeletonManagerService','_transformSelections','transform','setConfig','restore','debug','status','c1Prime','onPointerEnter$','_drawAnchor','LOCAL_CACHE_INTERVAL_KEY','createSocket','clearInterval','onTransformSelections','INGEST','_transformUndoRedoStack','popstate','_init','collaborators','HttpExport','Disposable','split','unknown','_socketMessageSubscription','uploadFileServerUrl','UNKNOWN_CMD','1187826nlirzv','startColumn','transformSelections','_decreaseWaiting','_tryEnsureSocket','toString','getMember','onSendChangeset','_removeRoom','findNodePositionByCharIndex','SetWorksheetActivateCommand','SEND_CHANGESET_TIMEOUT','subunit','registerOnClose','purple300','updatePermissionPoint','getWorkbookSelections','_ensureSubject','onlineStatusIcon','getRenderById','_timeoutTimer','handleInsertRangeMoveDown','addObjects','updateOfflineData','ImageIoService','[CollaborationUndoRedoService]','setParam','hasOwnProperty','/rev/','_clearScheduledTask','\x0aCurrent:\x20','_retryConnectingTimer','_draw','OFFLINE','_tryReconnect','black','textRanges','CONFLICT','LIVESHARE_OPERATION','ImageSourceType','HEARTBEAT','_createInitialStateImpl','TEXT_RANGE_LAYER_INDEX','ILogService','idSuffix','isArray','SNAPSHOT_HAS_BEEN_REMOVED','Vector2','_collaborationSessionService','YUUMI_UNABLE_LOAD_URL','roomMembers$','deleteCollaborator','_substituteUndoStack','cursorInfo','_transformRemoteChangesetByIMECache','0\x200\x2016\x2016','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_scheduleHeartbeat','_hovered','debounce','listRoles','IImageIoService','@univerjs/core','[PendingState]:\x20received\x20acknowledgement.','c2Prime','_getAPIPrefixPath','getImage','resend','addObject','verdancy600','_updateLocalCursor','set','Error\x20on\x20receiving\x20event','fromCollab','save','ImageUploadStatusType','synced','_logService','image/gif','compose','getCollabEntity$','ISnapshotServerService','_selfUnitIDs','column','error$','use','PSEUDO_FETCH_MISSING_RESULT','collaboration_new_changeset','svg','_getRedoStack','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursorInfo$','collaboration-client.config','getActiveSheet','/universer-api/authz','onPointerLeave$','_startTelemetryCollaborationNewChangeset','COMPRESS_MUTATION_SEND','off-line-single_clip0_910_343','pauseCollaboration','prototype','_eventUnsubscribe','_initCommandExecutedListener','text','disposeUnit','extend','_replayCachedMutations','reconnect','_commentService','_lockTransition','[OfflineState]:\x20received\x20changeset.','_initEventListeners','SetSelectionsOperation','_substituteRedoStack','?size=','NO_OTHER_CLIENTS_EDITING','DataLoaderController','authzUrl','delay','incrementRevOfUnit','pushState','post','bottom','NOT_FOUND','SheetCollaborationEntity','_onConnectionFailed','transformMutationsWithChangeset','_textBubble','sheets','JOIN','univer-online','collab-client.tooltip.reconnect','beginPath','univer-online-status-icon','_createInitialState','@univerjs-pro/license','userID','Tools','CollaborationEvent','handleMoveRange','_httpService','CollaborationController','cmd','IBeforeCloseService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformService','on-line-single_clip0_910_349','univer-online-status-title','localeService','CONNECTOR_DATA_TOO_LARGE','CommentService','_configService','_removeClearOtherTimer','Inject','SYNCED','_state$','file','_config','_hover','LIVESHARE_NEW_HOST','_clearTimeoutTimer'];_0x336a=function(){return _0x512a6d;};return _0x336a();}function Ei(_0x4e7f35,_0x3e7b44){const _0x1b45f2=_0x945337;var _0x498380,_0x40b3a5=_0x3e7b44[_0x1b45f2(0x1c4)];return!_0x40b3a5||_0x40b3a5['length']===0x0?_0x4e7f35:_0x4e7f35[_0x1b45f2(0x231)]==='defs'&&(!((_0x498380=_0x4e7f35[_0x1b45f2(0x362)])===null||_0x498380===void 0x0)&&_0x498380['length'])?M(M({},_0x4e7f35),{'children':_0x4e7f35['children'][_0x1b45f2(0x2c1)](function(_0x3c8905){const _0xf5e05c=_0x1b45f2;return typeof _0x3c8905['attrs']['id']==_0xf5e05c(0x312)&&_0x40b3a5&&_0x40b3a5[_0xf5e05c(0x1a0)](_0x3c8905[_0xf5e05c(0x53e)]['id'])>-0x1?M(M({},_0x3c8905),{'attrs':M(M({},_0x3c8905['attrs']),{'id':_0x3c8905[_0xf5e05c(0x53e)]['id']+_0x3e7b44['idSuffix']})}):_0x3c8905;})}):_0x4e7f35;}function bi(){const _0x243240=_0x945337;return Math['random']()['toString'](0x24)[_0x243240(0x32f)](0x2,0x8);}qe[_0x945337(0x325)]=_0x945337(0x293);var Ti={'tag':_0x945337(0x4b9),'attrs':{'fill':_0x945337(0x2e1),'viewBox':_0x945337(0x498),'width':_0x945337(0x28e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x945337(0x219)},'children':[{'tag':_0x945337(0x55f),'attrs':{'stroke':_0x945337(0x54b),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x945337(0x193),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x945337(0x4c3)},'children':[{'tag':'path','attrs':{'fill':_0x945337(0x2e4),'d':_0x945337(0x503)}}]}]}],'defIds':[_0x945337(0x4c3)]},yt=U[_0x945337(0x43e)](function(_0x1ca6f7,_0x3dc532){const _0x4335ee=_0x945337;return U[_0x4335ee(0x1b0)](qe,Object['assign']({},_0x1ca6f7,{'id':_0x4335ee(0x3da),'ref':_0x3dc532,'icon':Ti}));});yt[_0x945337(0x325)]='OffLineSingle';var Ri={'tag':_0x945337(0x4b9),'attrs':{'fill':'none','viewBox':_0x945337(0x348),'width':_0x945337(0x28e),'height':_0x945337(0x28e)},'children':[{'tag':'g','attrs':{'clipPath':_0x945337(0x504)},'children':[{'tag':_0x945337(0x55f),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x945337(0x193),'strokeLinejoin':_0x945337(0x193),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x945337(0x28f),'attrs':{'id':_0x945337(0x4f3)},'children':[{'tag':_0x945337(0x55f),'attrs':{'fill':_0x945337(0x2e4),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ut=U[_0x945337(0x43e)](function(_0x56657c,_0x24b3c9){const _0x423fe0=_0x945337;return U[_0x423fe0(0x1b0)](qe,Object['assign']({},_0x56657c,{'id':'on-line-single','ref':_0x24b3c9,'icon':Ri}));});Ut[_0x945337(0x325)]=_0x945337(0x220);function Pt(_0x2ab697){const _0x5cd919=_0x945337;var _0x8e07f3,_0x158d4f,_0x1aa24f='';if(typeof _0x2ab697=='string'||typeof _0x2ab697==_0x5cd919(0x536))_0x1aa24f+=_0x2ab697;else{if(typeof _0x2ab697=='object'){if(Array[_0x5cd919(0x48e)](_0x2ab697)){var _0x112610=_0x2ab697[_0x5cd919(0x3f0)];for(_0x8e07f3=0x0;_0x8e07f3<_0x112610;_0x8e07f3++)_0x2ab697[_0x8e07f3]&&(_0x158d4f=Pt(_0x2ab697[_0x8e07f3]))&&(_0x1aa24f&&(_0x1aa24f+='\x20'),_0x1aa24f+=_0x158d4f);}else{for(_0x158d4f in _0x2ab697)_0x2ab697[_0x158d4f]&&(_0x1aa24f&&(_0x1aa24f+='\x20'),_0x1aa24f+=_0x158d4f);}}}return _0x1aa24f;}function Oi(){const _0x3ee2d8=_0x945337;for(var _0x34b847,_0x29019b,_0x338aee=0x0,_0x4a5559='',_0x25fc35=arguments[_0x3ee2d8(0x3f0)];_0x338aee<_0x25fc35;_0x338aee++)(_0x34b847=arguments[_0x338aee])&&(_0x29019b=Pt(_0x34b847))&&(_0x4a5559&&(_0x4a5559+='\x20'),_0x4a5559+=_0x29019b);return _0x4a5559;}const Di=_0x945337(0x4e6),yi=_0x945337(0x4f4),Ui='univer-online-status',Pi=_0x945337(0x4e3),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x314525){const _0x416818=_0x945337;switch(_0x314525){case y[_0x416818(0x482)]:return'collabStatus.offline';case y[_0x416818(0x486)]:return _0x416818(0x406);case y[_0x416818(0x2bf)]:return _0x416818(0x567);case y['NOT_COLLAB']:return _0x416818(0x234);case y['PENDING']:case y['AWAITING']:case y[_0x416818(0x564)]:return'collabStatus.syncing';case y[_0x416818(0x4fb)]:return _0x416818(0x3ed);}}function wt(_0x4e2955){const _0x367217=_0x945337,{status$:_0x531e4a}=_0x4e2955,_0x305a5e=N['useObservable'](_0x531e4a,y['NOT_COLLAB']),_0x2e1e3d=a[_0x367217(0x238)](a[_0x367217(0x299)]),_0x33d2be=a['useDependency'](exports[_0x367217(0x3a5)]),_0x9cd7e4=_0x305a5e!==y[_0x367217(0x482)],_0x2771d5=_0x2e1e3d['t'](Mi(_0x305a5e)),_0x2ac032=Oi(le[_0x367217(0x2e7)],{[le['online']]:_0x9cd7e4,[le['offline']]:!_0x9cd7e4}),_0x2ae141=_0x9cd7e4?U[_0x367217(0x1b0)](Ut,null):U['createElement'](yt,null),_0x5ec467=U[_0x367217(0x57e)](()=>{const _0x3410f9=_0x367217;_0x9cd7e4||_0x33d2be[_0x3410f9(0x4cc)]();},[_0x9cd7e4,_0x33d2be]);function _0x5b59a1(){const _0x32e0fc=_0x367217;return U[_0x32e0fc(0x1b0)](_0x32e0fc(0x205),{'className':_0x2ac032,'onClick':_0x5ec467},U[_0x32e0fc(0x1b0)](_0x32e0fc(0x205),{'className':le[_0x32e0fc(0x473)]},_0x2ae141),U['createElement']('div',{'className':le[_0x32e0fc(0x3c7)]},_0x2771d5));}return _0x9cd7e4?_0x5b59a1():U[_0x367217(0x1b0)](X['Tooltip'],{'title':_0x2e1e3d['t'](_0x367217(0x4e4))},_0x5b59a1());}var Ni=Object[_0x945337(0x24b)],Ai=Object[_0x945337(0x3e2)],Li=(_0x307e80,_0xdca99a,_0x1e74d3,_0x867667)=>{for(var _0x857a0d=_0x867667>0x1?void 0x0:_0x867667?Ai(_0xdca99a,_0x1e74d3):_0xdca99a,_0x57f97d=_0x307e80['length']-0x1,_0x48405f;_0x57f97d>=0x0;_0x57f97d--)(_0x48405f=_0x307e80[_0x57f97d])&&(_0x857a0d=(_0x867667?_0x48405f(_0xdca99a,_0x1e74d3,_0x857a0d):_0x48405f(_0x857a0d))||_0x857a0d);return _0x867667&&_0x857a0d&&Ni(_0xdca99a,_0x1e74d3,_0x857a0d),_0x857a0d;},Se=(_0x3d146f,_0x59a9f0)=>(_0x125e27,_0x4885ae)=>_0x59a9f0(_0x125e27,_0x4885ae,_0x3d146f);exports[_0x945337(0x1ce)]=class extends a[_0x945337(0x45b)]{constructor(_0x2937cd,_0x13741a,_0x1c2902,_0x3d4c23){const _0xc3f7d2=_0x945337;super(),d(this,_0xc3f7d2(0x35a),new v[(_0xc3f7d2(0x52c))](y[_0xc3f7d2(0x38e)])),(this[_0xc3f7d2(0x337)]=_0x2937cd,this[_0xc3f7d2(0x257)]=_0x13741a,this['_injector']=_0x1c2902,this[_0xc3f7d2(0x1a9)]=_0x3d4c23,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x945337(0x2eb)](){const _0x3c2ef3=_0x945337;this[_0x3c2ef3(0x50a)](this['_univerInstanceService'][_0x3c2ef3(0x2d9)][_0x3c2ef3(0x550)](v[_0x3c2ef3(0x442)](()=>{const _0x28fc32=_0x3c2ef3,_0x489930=this[_0x28fc32(0x337)][_0x28fc32(0x255)]();return _0x489930?this[_0x28fc32(0x1a9)][_0x28fc32(0x4b1)](_0x489930['getUnitId']()):v['of'](null);}),v[_0x3c2ef3(0x442)](_0x4e8224=>_0x4e8224?_0x4e8224[_0x3c2ef3(0x259)]:v['of'](y[_0x3c2ef3(0x38e)])))['subscribe'](_0x134090=>{const _0x48d68f=_0x3c2ef3;this['_status$'][_0x48d68f(0x3ca)](_0x134090);}));}[_0x945337(0x2bb)](){const _0x5b2fc2=_0x945337;this['disposeWithMe'](this[_0x5b2fc2(0x257)][_0x5b2fc2(0x28d)](N[_0x5b2fc2(0x3fa)][_0x5b2fc2(0x2a0)],()=>a['connectInjector'](ji({'status$':this[_0x5b2fc2(0x35a)][_0x5b2fc2(0x19b)]()}),this['_injector'])));}},exports[_0x945337(0x1ce)]=Li([Se(0x0,a[_0x945337(0x57b)]),Se(0x1,N[_0x945337(0x268)]),Se(0x2,a['Inject'](a[_0x945337(0x2b5)])),Se(0x3,a['Inject'](exports[_0x945337(0x4ee)]))],exports['DesktopCollaborationStatusDisplayController']);function ji(_0x32ff78){const {status$:_0x4a917e}=_0x32ff78;return function(){return U['createElement'](wt,{'status$':_0x4a917e});};}const ze=a[_0x945337(0x36a)](_0x945337(0x41d));var $i=Object[_0x945337(0x24b)],Hi=Object[_0x945337(0x3e2)],xi=(_0xabce67,_0x52147d,_0x42d62c,_0x4c59f8)=>{const _0x20b5e3=_0x945337;for(var _0x436d3f=_0x4c59f8>0x1?void 0x0:_0x4c59f8?Hi(_0x52147d,_0x42d62c):_0x52147d,_0x4d0914=_0xabce67[_0x20b5e3(0x3f0)]-0x1,_0x12e7e8;_0x4d0914>=0x0;_0x4d0914--)(_0x12e7e8=_0xabce67[_0x4d0914])&&(_0x436d3f=(_0x4c59f8?_0x12e7e8(_0x52147d,_0x42d62c,_0x436d3f):_0x12e7e8(_0x436d3f))||_0x436d3f);return _0x4c59f8&&_0x436d3f&&$i(_0x52147d,_0x42d62c,_0x436d3f),_0x436d3f;},ee=(_0x492fcf,_0x3b562d)=>(_0x4e3f29,_0x349aad)=>_0x3b562d(_0x4e3f29,_0x349aad,_0x492fcf);exports['DataLoaderController']=class extends a[_0x945337(0x538)]{constructor(_0x2ec97a,_0x458cf4,_0x2f92df,_0x1cdef2,_0x7c0e74,_0x15fe94){const _0x52a799=_0x945337;super(),this[_0x52a799(0x530)]=_0x2ec97a,this[_0x52a799(0x4ae)]=_0x458cf4,this[_0x52a799(0x256)]=_0x2f92df,this['_localCacheService']=_0x1cdef2,this[_0x52a799(0x22c)]=_0x7c0e74,_0x15fe94?_0x15fe94==null||_0x15fe94[_0x52a799(0x180)]()[_0x52a799(0x33c)](()=>this[_0x52a799(0x458)]()):(this[_0x52a799(0x4ae)][_0x52a799(0x44c)](_0x52a799(0x57c),_0x52a799(0x230)),this[_0x52a799(0x458)]());}async[_0x945337(0x458)](){const _0x5b38bc=_0x945337,_0x13c5e0=this[_0x5b38bc(0x530)][_0x5b38bc(0x21e)](_0x5b38bc(0x42a)),_0x2e7dce=this[_0x5b38bc(0x530)][_0x5b38bc(0x21e)]('type');if(!_0x13c5e0||!_0x2e7dce){this[_0x5b38bc(0x4ae)][_0x5b38bc(0x44c)](_0x5b38bc(0x57c),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2e7dce)){case j[_0x5b38bc(0x53c)]:{const _0x4f4e45=await this[_0x5b38bc(0x288)](_0x13c5e0);this['_setupSubUnitSync'](_0x4f4e45);break;}case j[_0x5b38bc(0x395)]:{await this[_0x5b38bc(0x34f)](_0x13c5e0);break;}default:{this[_0x5b38bc(0x4ae)][_0x5b38bc(0x2e8)](_0x5b38bc(0x57c),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x945337(0x272)](_0x10faec){const _0x697f6d=_0x945337;await this[_0x697f6d(0x3e9)](_0x10faec),_0x10faec[_0x697f6d(0x18d)]['pipe'](v['takeUntil'](this[_0x697f6d(0x2ec)]))['subscribe'](_0x12df2d=>{const _0x27b19d=_0x697f6d;_0x12df2d&&this[_0x27b19d(0x1d6)](_0x12df2d);}),this[_0x697f6d(0x530)]['urlChange$'][_0x697f6d(0x550)](v[_0x697f6d(0x43c)](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x10faec));}[_0x945337(0x1d6)](_0x424f43,_0x3a1f28=!0x1){const _0x14a353=_0x945337,_0x450af6=this[_0x14a353(0x530)]['getParam'](_0x14a353(0x46d));_0x424f43[_0x14a353(0x221)]()!==_0x450af6&&this[_0x14a353(0x530)][_0x14a353(0x47b)]('subunit',_0x424f43[_0x14a353(0x221)](),_0x3a1f28);}async[_0x945337(0x3e9)](_0x4165a0){const _0x1bc096=_0x945337;var _0x42e40c;const _0x38e89a=this[_0x1bc096(0x530)]['getParam'](_0x1bc096(0x46d));if(!_0x38e89a||!_0x4165a0[_0x1bc096(0x1b2)](_0x38e89a)){const _0x2e0c3e=_0x4165a0[_0x1bc096(0x173)]()[0x0],_0x446cdf=_0x4165a0[_0x1bc096(0x1b2)](_0x2e0c3e);if(!_0x446cdf)return;this[_0x1bc096(0x1d6)](_0x446cdf,!0x0),await this[_0x1bc096(0x256)]['executeCommand'](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x4165a0[_0x1bc096(0x352)](),'subUnitId':_0x2e0c3e});return;}((_0x42e40c=_0x4165a0[_0x1bc096(0x4be)]())==null?void 0x0:_0x42e40c[_0x1bc096(0x221)]())!==_0x38e89a&&await this[_0x1bc096(0x256)][_0x1bc096(0x505)](C[_0x1bc096(0x46b)]['id'],{'unitId':_0x4165a0[_0x1bc096(0x352)](),'subUnitId':_0x38e89a});}async[_0x945337(0x288)](_0x3cbca0){const _0x418c72=_0x945337;let _0x35d5d4=0x0;const _0x37683b=await this[_0x418c72(0x576)]['loadOfflineData'](_0x3cbca0);return _0x37683b&&(_0x37683b['awaitingChangeset']||_0x37683b['mutations'][_0x418c72(0x3f0)]!==0x0)&&(_0x35d5d4=_0x37683b[_0x418c72(0x24a)]),_0x35d5d4===0x0&&this[_0x418c72(0x4ae)][_0x418c72(0x44c)](_0x418c72(0x57c),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x418c72(0x22c)]['loadSheet'](_0x3cbca0,_0x35d5d4);}async[_0x945337(0x34f)](_0x1e0b13){const _0x5c8ac2=_0x945337;let _0x352d36=0x0;const _0x49d194=await this['_localCacheService']['loadOfflineData'](_0x1e0b13);return _0x49d194&&(_0x49d194[_0x5c8ac2(0x1b6)]||_0x49d194[_0x5c8ac2(0x435)][_0x5c8ac2(0x3f0)]!==0x0)&&(_0x352d36=_0x49d194[_0x5c8ac2(0x24a)]),_0x352d36===0x0&&this[_0x5c8ac2(0x4ae)][_0x5c8ac2(0x44c)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x5c8ac2(0x33b)](_0x1e0b13,_0x352d36);}},exports[_0x945337(0x4d5)]=xi([ee(0x0,ze),ee(0x1,a[_0x945337(0x48c)]),ee(0x2,a[_0x945337(0x400)]),ee(0x3,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),ee(0x4,a['Inject'](_['SnapshotService'])),ee(0x5,a[_0x945337(0x188)](Wt[_0x945337(0x2d5)]))],exports['DataLoaderController']);var ki=Object[_0x945337(0x24b)],Bi=Object[_0x945337(0x3e2)],Vi=(_0x4a73d9,_0x296a39,_0x7b7e18,_0x29e5ce)=>{const _0x57f9e5=_0x945337;for(var _0x4ecfd3=_0x29e5ce>0x1?void 0x0:_0x29e5ce?Bi(_0x296a39,_0x7b7e18):_0x296a39,_0x2e6f06=_0x4a73d9[_0x57f9e5(0x3f0)]-0x1,_0x5d8b2f;_0x2e6f06>=0x0;_0x2e6f06--)(_0x5d8b2f=_0x4a73d9[_0x2e6f06])&&(_0x4ecfd3=(_0x29e5ce?_0x5d8b2f(_0x296a39,_0x7b7e18,_0x4ecfd3):_0x5d8b2f(_0x4ecfd3))||_0x4ecfd3);return _0x29e5ce&&_0x4ecfd3&&ki(_0x296a39,_0x7b7e18,_0x4ecfd3),_0x4ecfd3;},at=(_0x49d4e0,_0x18bef5)=>(_0x5b47d6,_0x4adb21)=>_0x18bef5(_0x5b47d6,_0x4adb21,_0x49d4e0);const Wi=_0x945337(0x2b7),Fi='Univer';let Ie=class extends a[_0x945337(0x45b)]{constructor(_0x15ce03,_0x416651){const _0x54beeb=_0x945337;super(),this[_0x54beeb(0x337)]=_0x15ce03,this[_0x54beeb(0x4f8)]=_0x416651,this[_0x54beeb(0x458)]();}['_init'](){const _0x108c02=_0x945337;this[_0x108c02(0x50a)](this['_univerInstanceService'][_0x108c02(0x2d9)]['subscribe'](()=>{const _0x41f86e=_0x108c02;var _0x207478;const _0x25ad1f=this[_0x41f86e(0x337)][_0x41f86e(0x255)]();let _0x10346c=(_0x207478=this['_configService'][_0x41f86e(0x258)](Wi))!=null?_0x207478:Fi;_0x25ad1f instanceof a[_0x41f86e(0x43d)]&&(_0x10346c=_0x25ad1f['name']),document[_0x41f86e(0x1af)]=_0x10346c;}));}};Ie=Vi([at(0x0,a['IUniverInstanceService']),at(0x1,a[_0x945337(0x1f7)])],Ie);var Gi=Object[_0x945337(0x24b)],Yi=Object[_0x945337(0x3e2)],Ki=(_0x2ddd55,_0x46a38b,_0xd6d35b,_0x555e77)=>{const _0x345ede=_0x945337;for(var _0x312f2a=_0x555e77>0x1?void 0x0:_0x555e77?Yi(_0x46a38b,_0xd6d35b):_0x46a38b,_0x3643a8=_0x2ddd55[_0x345ede(0x3f0)]-0x1,_0x1ac59c;_0x3643a8>=0x0;_0x3643a8--)(_0x1ac59c=_0x2ddd55[_0x3643a8])&&(_0x312f2a=(_0x555e77?_0x1ac59c(_0x46a38b,_0xd6d35b,_0x312f2a):_0x1ac59c(_0x312f2a))||_0x312f2a);return _0x555e77&&_0x312f2a&&Gi(_0x46a38b,_0xd6d35b,_0x312f2a),_0x312f2a;},Le=(_0x4e606e,_0x5db1a1)=>(_0x4d7404,_0x498fe1)=>_0x5db1a1(_0x4d7404,_0x498fe1,_0x4e606e);let pe=class{constructor(_0xbe6018,_0x24858d,_0xdfc72c){const _0x590416=_0x945337;this['_configService']=_0xbe6018,this['_httpService']=_0x24858d,this['localeService']=_0xdfc72c,this[_0x590416(0x55a)]();}['init'](){const _0x3cb731=_0x945337;this[_0x3cb731(0x4ed)][_0x3cb731(0x248)]({'priority':0x1,'interceptor':(_0x30c952,_0x56e380)=>_0x56e380(_0x30c952)[_0x3cb731(0x550)](v['concatMap'](async _0x480f07=>{const _0x22db54=_0x3cb731,_0x4cf382=_0x480f07;if(_0x4cf382[_0x22db54(0x44d)]===0x191&&window[_0x22db54(0x1de)](this[_0x22db54(0x4f5)]['t'](_0x22db54(0x317)))){const _0x5cca43=window[_0x22db54(0x2ae)](window[_0x22db54(0x378)][_0x22db54(0x409)]);window[_0x22db54(0x378)]['href']=this['_getLoginPath']()+_0x22db54(0x430)+_0x5cca43;}return _0x4cf382;}))});}['_getLoginPath'](){const _0x370138=_0x945337;var _0x2a1ac5,_0x441b46;const _0xe7b121=this[_0x370138(0x4f8)][_0x370138(0x258)](mt),_0x4f0ccb=this[_0x370138(0x4f8)]['getConfig'](A);return(_0x441b46=(_0x2a1ac5=_0x4f0ccb==null?void 0x0:_0x4f0ccb[_0x370138(0x24d)])!=null?_0x2a1ac5:_0xe7b121)!=null?_0x441b46:es;}};pe=Ki([Le(0x0,a[_0x945337(0x1f7)]),Le(0x1,a[_0x945337(0x4fa)](P[_0x945337(0x22e)])),Le(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x299)]))],pe);var Xi=Object['defineProperty'],qi=Object[_0x945337(0x3e2)],zi=(_0x3d686c,_0x286206,_0x4a5660,_0x4c99f5)=>{const _0x795989=_0x945337;for(var _0xbc1552=_0x4c99f5>0x1?void 0x0:_0x4c99f5?qi(_0x286206,_0x4a5660):_0x286206,_0x2509ae=_0x3d686c[_0x795989(0x3f0)]-0x1,_0x395006;_0x2509ae>=0x0;_0x2509ae--)(_0x395006=_0x3d686c[_0x2509ae])&&(_0xbc1552=(_0x4c99f5?_0x395006(_0x286206,_0x4a5660,_0xbc1552):_0x395006(_0xbc1552))||_0xbc1552);return _0x4c99f5&&_0xbc1552&&Xi(_0x286206,_0x4a5660,_0xbc1552),_0xbc1552;},ct=(_0x258445,_0x34b7f0)=>(_0x13a1ec,_0x4ffeda)=>_0x34b7f0(_0x13a1ec,_0x4ffeda,_0x258445);const Mt='AUTHZ_URL_KEY',Ji=_0x945337(0x4bf);exports[_0x945337(0x40b)]=class extends a[_0x945337(0x45b)]{constructor(_0x8eea89,_0x409cc6){const _0x31306e=_0x945337;super(),this[_0x31306e(0x52a)]=_0x8eea89,this[_0x31306e(0x4f8)]=_0x409cc6,this[_0x31306e(0x31f)]();}[_0x945337(0x31f)](){const _0x1eb650=_0x945337,_0x2e8071=this;this[_0x1eb650(0x50a)](this['_HTTPService'][_0x1eb650(0x248)]({'priority':0x3e7,'interceptor':P[_0x1eb650(0x3bd)]({'isMatch'(_0x14421e){const _0x498202=_0x1eb650;var _0x40b789;if(_0x14421e[_0x498202(0x42f)]===_0x498202(0x315)&&((_0x40b789=_0x14421e[_0x498202(0x17a)])!=null&&_0x40b789[_0x498202(0x35f)])){const {objectID:_0x18cb3e,objectType:_0x51df05}=_0x14421e['requestParams'][_0x498202(0x35f)]||{};if(!_0x18cb3e||_0x51df05===void 0x0)return!0x1;const _0x142c4c=_0x2e8071[_0x498202(0x4a2)]()+'/'+_0x51df05+_0x498202(0x50d)+_0x18cb3e+_0x498202(0x383);if(_0x14421e[_0x498202(0x1e8)]===_0x142c4c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x728d51){const _0x590caa=_0x1eb650;var _0x5b3f9e;return(_0x5b3f9e=_0x728d51[_0x590caa(0x17a)])==null?void 0x0:_0x5b3f9e[_0x590caa(0x35f)];},'mergeParamsToRequest'(_0x24ed89,_0x44e1ec){const _0x1b4c9f=_0x1eb650,_0x1313fc=_0x2e8071[_0x1b4c9f(0x4a2)]()+_0x1b4c9f(0x1e6),_0xdffc24=_0x24ed89[_0x1b4c9f(0x580)]((_0x18a1a5,_0x331a02)=>{const _0x3a2d5d=_0x1b4c9f,{unitID:_0x1fb642,objectID:_0x48c291,objectType:_0x16dc8a,actions:_0x51a9cd}=_0x331a02;return _0x18a1a5[_0x1fb642]||(_0x18a1a5[_0x1fb642]={}),_0x18a1a5[_0x1fb642][_0x48c291]||(_0x18a1a5[_0x1fb642][_0x48c291]={'objectID':_0x48c291,'objectType':_0x16dc8a,'actions':[]}),_0x18a1a5[_0x1fb642][_0x48c291][_0x3a2d5d(0x3ef)][_0x3a2d5d(0x3b0)](..._0x51a9cd),_0x18a1a5;},{}),_0x3dd070=[];for(const _0x5c281b in _0xdffc24)for(const _0x17d153 in _0xdffc24[_0x5c281b]){const {actions:_0x51e4df,objectType:_0x4f491e}=_0xdffc24[_0x5c281b][_0x17d153],_0x56749d=[...new Set(_0x51e4df)];_0x3dd070[_0x1b4c9f(0x3b0)]({'unitID':_0x5c281b,'objectID':_0x17d153,'objectType':_0x4f491e,'actions':_0x56749d});}return new P[(_0x1b4c9f(0x1a6))](_0x1b4c9f(0x315),_0x1313fc,{'headers':_0x44e1ec[_0x1b4c9f(0x431)],'withCredentials':_0x44e1ec[_0x1b4c9f(0x1e3)],'responseType':_0x44e1ec['responseType'],'body':{'requests':_0x3dd070}});}},{'distributeResult'(_0x4ffe1e,_0x293dea){const {objectActions:_0x447d7d}=_0x4ffe1e;return _0x293dea['map'](_0x44e8ec=>{const _0x2c9a69=_0x38f3,{unitID:_0x43b2fa,objectID:_0x360f87,actions:_0x300d3f}=_0x44e8ec,_0x47648c=_0x447d7d[_0x2c9a69(0x23a)](_0x5964f0=>_0x5964f0[_0x2c9a69(0x1da)]===_0x43b2fa&&_0x5964f0['objectID']===_0x360f87),_0x19ef4f=_0x300d3f[_0x2c9a69(0x2c1)](_0x15691b=>_0x47648c==null?void 0x0:_0x47648c[_0x2c9a69(0x3ef)]['find'](_0x54144b=>_0x54144b['action']===_0x15691b))[_0x2c9a69(0x1dc)](_0x501a83=>!!_0x501a83);return{'config':_0x44e8ec,'result':{'actions':_0x19ef4f,'error':_0x4ffe1e[_0x2c9a69(0x2e8)]}};});}})}));}[_0x945337(0x4a2)](){const _0x485c60=_0x945337;var _0x245917,_0x1f2d66;const _0x1bdf7f=this[_0x485c60(0x4f8)][_0x485c60(0x258)](Mt),_0x3ef77d=this[_0x485c60(0x4f8)][_0x485c60(0x258)](A);return(_0x1f2d66=(_0x245917=_0x3ef77d==null?void 0x0:_0x3ef77d[_0x485c60(0x4d6)])!=null?_0x245917:_0x1bdf7f)!=null?_0x1f2d66:Ji;}async[_0x945337(0x30f)](_0x543a0c){const _0x246b44=_0x945337,_0x1b9468=this[_0x246b44(0x4a2)]()+'/'+_0x543a0c[_0x246b44(0x433)]+_0x246b44(0x2b6);return(await this['_HTTPService'][_0x246b44(0x4da)](_0x1b9468,{'body':_0x543a0c}))[_0x246b44(0x35f)][_0x246b44(0x1ee)]||'';}async[_0x945337(0x26b)](_0x5d62ea){const _0x277352=_0x945337,_0x5c428c=this[_0x277352(0x4a2)]()+_0x277352(0x444);return(await this[_0x277352(0x52a)][_0x277352(0x4da)](_0x5c428c,{'body':_0x5d62ea}))[_0x277352(0x35f)][_0x277352(0x2cf)];}async[_0x945337(0x177)](_0x433cd9){const _0x46e232=_0x945337,_0x82dbb2=this[_0x46e232(0x4a2)]()+'/'+_0x433cd9[_0x46e232(0x433)]+_0x46e232(0x50d)+_0x433cd9[_0x46e232(0x1ee)];await this[_0x46e232(0x52a)]['put'](_0x82dbb2,{'body':_0x433cd9});}async[_0x945337(0x525)](_0x1609c1){const _0x2b2d3c=_0x945337,_0x68a325=this[_0x2b2d3c(0x4a2)]()+'/'+_0x1609c1['objectType']+_0x2b2d3c(0x50d)+_0x1609c1['objectID']+_0x2b2d3c(0x383);return(await this['_HTTPService'][_0x2b2d3c(0x4da)](_0x68a325,{'body':_0x1609c1}))[_0x2b2d3c(0x35f)][_0x2b2d3c(0x3ef)];}async['batchAllowed'](_0x31bed6){const _0x3f6bcc=_0x945337,_0x3c7bec=this[_0x3f6bcc(0x4a2)]()+_0x3f6bcc(0x1e6);return(await this[_0x3f6bcc(0x52a)][_0x3f6bcc(0x4da)](_0x3c7bec,{'body':{'requests':_0x31bed6}}))[_0x3f6bcc(0x35f)][_0x3f6bcc(0x1ae)];}async[_0x945337(0x49d)](_0x458144){const _0x124a13=_0x945337,_0x1d7f4a=this['_getAPIPrefixPath']()+'/'+_0x458144[_0x124a13(0x433)]+_0x124a13(0x540),_0x4740bb=await this[_0x124a13(0x52a)][_0x124a13(0x4da)](_0x1d7f4a,{'body':_0x458144});return{'roles':_0x4740bb[_0x124a13(0x35f)][_0x124a13(0x434)],'actions':_0x4740bb[_0x124a13(0x35f)][_0x124a13(0x3ef)]};}async[_0x945337(0x494)](_0xf7d9ad){const _0x5ec6c0=_0x945337,_0x407078=this[_0x5ec6c0(0x4a2)]()+_0x5ec6c0(0x510);await this[_0x5ec6c0(0x52a)]['delete'](_0x407078,{'params':{'collaboratorID':_0xf7d9ad[_0x5ec6c0(0x3e1)],'objectID':_0xf7d9ad[_0x5ec6c0(0x1ee)],'unitID':_0xf7d9ad[_0x5ec6c0(0x1da)]}});}async['updateCollaborator'](_0x3a3e97){const _0x1258d3=_0x945337,_0x2ab2ba=this[_0x1258d3(0x4a2)]()+_0x1258d3(0x510);await this['_HTTPService'][_0x1258d3(0x524)](_0x2ab2ba,{'body':_0x3a3e97});}async[_0x945337(0x2be)](_0x442f95){const _0x47b357=_0x945337,_0x1e9035=this[_0x47b357(0x4a2)]()+_0x47b357(0x510);await this[_0x47b357(0x52a)][_0x47b357(0x4da)](_0x1e9035,{'body':_0x442f95});}async['listCollaborators'](_0x44f5f3){const _0x51c2e7=_0x945337,_0x4b8288=this[_0x51c2e7(0x4a2)]()+_0x51c2e7(0x510);return(await this[_0x51c2e7(0x52a)][_0x51c2e7(0x3eb)](_0x4b8288,{'params':{'objectID':_0x44f5f3[_0x51c2e7(0x1ee)],'unitID':_0x44f5f3['unitID']}}))[_0x51c2e7(0x35f)][_0x51c2e7(0x459)];}async['putCollaborators'](_0x1a115d){const _0xaada9f=_0x945337,_0x2db2aa=this[_0xaada9f(0x4a2)]()+_0xaada9f(0x510);await this[_0xaada9f(0x52a)][_0xaada9f(0x2a5)](_0x2db2aa,{'body':_0x1a115d});}},exports[_0x945337(0x40b)]=zi([ct(0x0,a['Inject'](P[_0x945337(0x22e)])),ct(0x1,a[_0x945337(0x4fa)](a[_0x945337(0x1f7)]))],exports[_0x945337(0x40b)]);var Zi=Object[_0x945337(0x24b)],Qi=Object[_0x945337(0x3e2)],en=(_0x439d3b,_0x36a68c,_0x5af289,_0x59a45a)=>{const _0x6f2fd8=_0x945337;for(var _0x46811b=_0x59a45a>0x1?void 0x0:_0x59a45a?Qi(_0x36a68c,_0x5af289):_0x36a68c,_0x4ca905=_0x439d3b[_0x6f2fd8(0x3f0)]-0x1,_0x26e2ca;_0x4ca905>=0x0;_0x4ca905--)(_0x26e2ca=_0x439d3b[_0x4ca905])&&(_0x46811b=(_0x59a45a?_0x26e2ca(_0x36a68c,_0x5af289,_0x46811b):_0x26e2ca(_0x46811b))||_0x46811b);return _0x59a45a&&_0x46811b&&Zi(_0x36a68c,_0x5af289,_0x46811b),_0x46811b;},tn=(_0x3d5396,_0xda5140)=>(_0x5d1cb4,_0x474409)=>_0xda5140(_0x5d1cb4,_0x474409,_0x3d5396);let Ce=class{constructor(_0x490ee6){const _0x3ef684=_0x945337;this[_0x3ef684(0x4ed)]=_0x490ee6,this[_0x3ef684(0x2d3)]();}[_0x945337(0x2d3)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x3d04ee,_0x2fda50)=>{const _0x14526c=_0x38f3,_0x36f0f3=_0x3d04ee['headers'],_0x1c3419=Ft[_0x14526c(0x2db)]();return _0x1c3419&&_0x36f0f3[_0x14526c(0x4a8)](_0x14526c(0x27e),_0x1c3419),_0x2fda50(_0x3d04ee);}});}};Ce=en([tn(0x0,a[_0x945337(0x4fa)](P[_0x945337(0x22e)]))],Ce);var sn=Object['defineProperty'],nn=Object[_0x945337(0x3e2)],rn=(_0xa1f6a0,_0x4d9696,_0x41424,_0x173c7a)=>{const _0x14bb0d=_0x945337;for(var _0x4e37ed=_0x173c7a>0x1?void 0x0:_0x173c7a?nn(_0x4d9696,_0x41424):_0x4d9696,_0x2a1d94=_0xa1f6a0[_0x14bb0d(0x3f0)]-0x1,_0xeb155a;_0x2a1d94>=0x0;_0x2a1d94--)(_0xeb155a=_0xa1f6a0[_0x2a1d94])&&(_0x4e37ed=(_0x173c7a?_0xeb155a(_0x4d9696,_0x41424,_0x4e37ed):_0xeb155a(_0x4e37ed))||_0x4e37ed);return _0x173c7a&&_0x4e37ed&&sn(_0x4d9696,_0x41424,_0x4e37ed),_0x4e37ed;},je=(_0x67ba3c,_0x2cc672)=>(_0x24893e,_0x31a7a1)=>_0x2cc672(_0x24893e,_0x31a7a1,_0x67ba3c);const on=[_0x945337(0x56f),_0x945337(0x208),'image/jpg',_0x945337(0x4af),_0x945337(0x57d)],an=0x5*0x400*0x400,cn=_0x945337(0x51a),ln=_0x945337(0x265),hn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_n=_0x945337(0x3bc);exports['ImageIoService']=class{constructor(_0x4ccb43,_0x4b18a9,_0x54e430){const _0x28cb1c=_0x945337;d(this,_0x28cb1c(0x1cc),0x0),d(this,_0x28cb1c(0x416),new v[(_0x28cb1c(0x36e))]()),d(this,_0x28cb1c(0x340),this[_0x28cb1c(0x416)]),d(this,_0x28cb1c(0x55c),new Map()),(this['_httpService']=_0x4ccb43,this[_0x28cb1c(0x4f8)]=_0x4b18a9,this[_0x28cb1c(0x337)]=_0x54e430);}['setWaitCount'](_0x41283a){const _0x503c5c=_0x945337;this[_0x503c5c(0x1cc)]=_0x41283a,this['_change$']['next'](_0x41283a);}[_0x945337(0x1a5)](_0x375473,_0x4234cc){const _0x4ad759=_0x945337;if(_0x4234cc===L[_0x4ad759(0x488)][_0x4ad759(0x2a3)]){const _0x77c404=new Image();return _0x77c404[_0x4ad759(0x21b)]=_0x375473,_0x77c404;}return this[_0x4ad759(0x55c)][_0x4ad759(0x3eb)](_0x375473);}['addImageSourceCache'](_0x31e9ac,_0x33a65d,_0x2276eb){const _0x3912c3=_0x945337;_0x33a65d===L[_0x3912c3(0x488)][_0x3912c3(0x2a3)]||_0x2276eb==null||this[_0x3912c3(0x55c)][_0x3912c3(0x4a8)](_0x31e9ac,_0x2276eb);}async[_0x945337(0x4a3)](_0x593130){const _0x1b519e=_0x945337;try{const _0x22e53e=this[_0x1b519e(0x1c9)](this[_0x1b519e(0x523)](),''+_0x593130),_0x5d01a0=(await this[_0x1b519e(0x4ed)][_0x1b519e(0x3eb)](_0x22e53e))[_0x1b519e(0x35f)];if(_0x5d01a0[_0x1b519e(0x2e8)]&&_0x5d01a0[_0x1b519e(0x2e8)][_0x1b519e(0x20c)]===It['OK']){const _0x1869a2=new URL(_0x5d01a0[_0x1b519e(0x1e8)],this['_getDownloadEndpointURL']())[_0x1b519e(0x466)]();return Promise[_0x1b519e(0x18f)](_0x1869a2);}return Promise[_0x1b519e(0x279)](_0x5d01a0[_0x1b519e(0x2e8)]);}catch(_0x5026fe){return Promise[_0x1b519e(0x279)](_0x5026fe);}}async[_0x945337(0x3c1)](_0xe78a1f){const _0x49a358=_0x945337;let _0xa6415f='';if(!on[_0x49a358(0x38c)](_0xe78a1f['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(L['ImageUploadStatusType'][_0x49a358(0x54c)]));if(_0xe78a1f[_0x49a358(0x17e)]>an)return this['_decreaseWaiting'](),Promise[_0x49a358(0x279)](new Error(L[_0x49a358(0x4ac)][_0x49a358(0x371)]));try{const _0x3774d3=new FormData();_0x3774d3[_0x49a358(0x280)](_0x49a358(0x4fd),_0xe78a1f);const _0x2e80bf=this[_0x49a358(0x337)][_0x49a358(0x255)](),_0x3dc71e=_0x2e80bf==null?void 0x0:_0x2e80bf[_0x49a358(0x352)]();if(!_0x3dc71e)throw new Error('unitId\x20is\x20not\x20found');const _0x33392f=this[_0x49a358(0x357)]()+_0x49a358(0x4d3)+_0xe78a1f['size'][_0x49a358(0x466)]()+_0x49a358(0x517)+pt[_0x49a358(0x29b)]+_0x49a358(0x55e)+encodeURIComponent(_0x3dc71e),_0x2d1f72=await(await fetch(_0x33392f,{'method':_0x49a358(0x315),'body':_0x3774d3}))[_0x49a358(0x1ab)]();if(typeof _0x2d1f72['FileId']!=_0x49a358(0x312))return this[_0x49a358(0x464)](),Promise[_0x49a358(0x279)](new Error(L['ImageUploadStatusType'][_0x49a358(0x1d9)]));_0xa6415f=_0x2d1f72[_0x49a358(0x3b2)];}catch{return this['_decreaseWaiting'](),Promise[_0x49a358(0x279)](new Error(L[_0x49a358(0x4ac)][_0x49a358(0x1d9)]));}return new Promise((_0x4f4be8,_0x1e95d0)=>{const _0x5a5d67=_0x49a358,_0x382e90=new FileReader();_0x382e90[_0x5a5d67(0x184)](_0xe78a1f),_0x382e90[_0x5a5d67(0x314)]=_0x9fa56a=>{const _0x2fb230=_0x5a5d67;var _0x2b6078;const _0x556ad4=(_0x2b6078=_0x9fa56a['target'])==null?void 0x0:_0x2b6078[_0x2fb230(0x331)];if(_0x556ad4==null){this['_decreaseWaiting'](),_0x1e95d0(new Error(L['ImageUploadStatusType'][_0x2fb230(0x1d9)]));return;}const _0x17830c=a[_0x2fb230(0x4ea)][_0x2fb230(0x227)](0x6);_0x4f4be8({'imageId':_0x17830c,'imageSourceType':L[_0x2fb230(0x488)][_0x2fb230(0x522)],'source':_0xa6415f,'base64Cache':_0x556ad4,'status':L[_0x2fb230(0x4ac)]['SUCCUSS']}),this[_0x2fb230(0x464)]();};});}[_0x945337(0x357)](){const _0x3a6894=_0x945337;var _0x103b70,_0x9985e1;const _0x10c3d2=this[_0x3a6894(0x4f8)][_0x3a6894(0x258)](cn),_0x39154e=this['_configService'][_0x3a6894(0x258)](A);return(_0x9985e1=(_0x103b70=_0x39154e==null?void 0x0:_0x39154e[_0x3a6894(0x45f)])!=null?_0x103b70:_0x10c3d2)!=null?_0x9985e1:ln;}['_getSignURL'](){const _0x46b569=_0x945337;var _0x1fedf4,_0x3b15bb;const _0x429c54=this['_configService'][_0x46b569(0x258)](hn),_0x17a250=this['_configService'][_0x46b569(0x258)](A);return(_0x3b15bb=(_0x1fedf4=_0x17a250==null?void 0x0:_0x17a250[_0x46b569(0x23d)])!=null?_0x1fedf4:_0x429c54)!=null?_0x3b15bb:_n;}['_getDownloadEndpointURL'](){const _0x50cfde=_0x945337;var _0x505650;const _0x19c684=this[_0x50cfde(0x4f8)]['getConfig'](A);return(_0x505650=_0x19c684==null?void 0x0:_0x19c684[_0x50cfde(0x1c3)])!=null?_0x505650:location[_0x50cfde(0x341)];}['_replaceFileID'](_0x4dd1d0,_0x24fc36){const _0x28bef9=_0x945337;return _0x4dd1d0[_0x28bef9(0x559)]('{fileID}',_0x24fc36);}['_decreaseWaiting'](){const _0xdcc7c7=_0x945337;this[_0xdcc7c7(0x1cc)]-=0x1,this[_0xdcc7c7(0x416)][_0xdcc7c7(0x3ca)](this[_0xdcc7c7(0x1cc)]);}},exports[_0x945337(0x479)]=rn([je(0x0,a['Inject'](P[_0x945337(0x22e)])),je(0x1,a[_0x945337(0x1f7)]),je(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x57b)]))],exports[_0x945337(0x479)]);var un=Object[_0x945337(0x24b)],dn=Object[_0x945337(0x3e2)],Sn=(_0xeda5db,_0x187138,_0x304549,_0x9ed41b)=>{const _0x5b5d8a=_0x945337;for(var _0xc163b0=_0x9ed41b>0x1?void 0x0:_0x9ed41b?dn(_0x187138,_0x304549):_0x187138,_0x579608=_0xeda5db[_0x5b5d8a(0x3f0)]-0x1,_0x60a977;_0x579608>=0x0;_0x579608--)(_0x60a977=_0xeda5db[_0x579608])&&(_0xc163b0=(_0x9ed41b?_0x60a977(_0x187138,_0x304549,_0xc163b0):_0x60a977(_0xc163b0))||_0xc163b0);return _0x9ed41b&&_0xc163b0&&un(_0x187138,_0x304549,_0xc163b0),_0xc163b0;},he=(_0x496790,_0x2893b0)=>(_0x2ce484,_0x3dabfc)=>_0x2893b0(_0x2ce484,_0x3dabfc,_0x496790);let Ee=class extends a[_0x945337(0x538)]{constructor(_0x1d6445,_0x4d5aea,_0x947766,_0x2ad3c2,_0x11642f){const _0x4b88ee=_0x945337;super(),this[_0x4b88ee(0x3dd)]=_0x1d6445,this[_0x4b88ee(0x337)]=_0x4d5aea,this['_permissionService']=_0x947766,this[_0x4b88ee(0x491)]=_0x2ad3c2,this[_0x4b88ee(0x21a)]=_0x11642f,this['_initUnitPermissionChange'](),this[_0x4b88ee(0x398)]();}[_0x945337(0x398)](){const _0x43d51a=_0x945337,_0x24b84c=async _0x440a28=>{const _0x709dad=_0x38f3;(await this['_collaborationSessionService'][_0x709dad(0x369)](_0x440a28))[_0x709dad(0x23f)][_0x709dad(0x550)](E[_0x709dad(0x1dc)](_0x3b7915=>_0x3b7915[_0x709dad(0x170)]===_[_0x709dad(0x4eb)][_0x709dad(0x2d8)]),E[_0x709dad(0x43c)](this[_0x709dad(0x2ec)]))[_0x709dad(0x397)](_0x4a8930=>{const _0x37cdc8=_0x709dad,_0x58514f=_0x4a8930,{reason:_0x3c7ceb}=_0x58514f[_0x37cdc8(0x375)];this[_0x37cdc8(0x3dd)][_0x37cdc8(0x3eb)](N['IMessageService'])[_0x37cdc8(0x411)]({'type':X[_0x37cdc8(0x367)][_0x37cdc8(0x372)],'content':this[_0x37cdc8(0x21a)]['t'](_0x37cdc8(0x183))+'('+_0x3c7ceb+')'}),this[_0x37cdc8(0x209)][_0x37cdc8(0x470)](new C[(_0x37cdc8(0x298))](_0x440a28)['id'],!0x1),this['_collaborationSessionService'][_0x37cdc8(0x350)](_0x440a28);});};v[_0x43d51a(0x515)](this[_0x43d51a(0x337)][_0x43d51a(0x51e)](a[_0x43d51a(0x3b1)]['UNIVER_SHEET']),this[_0x43d51a(0x337)]['getTypeOfUnitAdded$'](a[_0x43d51a(0x3b1)][_0x43d51a(0x395)]))['pipe'](E[_0x43d51a(0x2c1)](_0x1bfbf3=>_0x1bfbf3[_0x43d51a(0x352)]()),E[_0x43d51a(0x1dc)](_0x3463bc=>!a[_0x43d51a(0x1dd)](_0x3463bc)),E[_0x43d51a(0x43c)](this['dispose$']))[_0x43d51a(0x397)](_0x4d2273=>{_0x24b84c(_0x4d2273);});}['_initUnitPermissionChange'](){const _0x5f3f4d=_0x945337,_0x10445c=async _0x394fe0=>{const _0x87ea45=_0x38f3;(await this['_collaborationSessionService'][_0x87ea45(0x369)](_0x394fe0))['event$'][_0x87ea45(0x550)](E['filter'](_0x33e089=>_0x33e089['eventID']===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E[_0x87ea45(0x43c)](this[_0x87ea45(0x2ec)]))[_0x87ea45(0x397)](_0x55db0a=>{const _0xc17e11=_0x87ea45,_0x45085b=_0x55db0a,{objectId:_0x59af19}=_0x45085b[_0xc17e11(0x375)],_0x11b242=this[_0xc17e11(0x3dd)][_0xc17e11(0x3eb)](te['SheetPermissionInitController']);_0x59af19===_0x394fe0?_0x11b242[_0xc17e11(0x440)](_0x394fe0):_0x11b242[_0xc17e11(0x41e)](_0x394fe0,_0x59af19);});};v[_0x5f3f4d(0x515)](this[_0x5f3f4d(0x337)][_0x5f3f4d(0x51e)](a[_0x5f3f4d(0x3b1)][_0x5f3f4d(0x53c)]),this[_0x5f3f4d(0x337)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x5f3f4d(0x395)]))['pipe'](E['map'](_0x24ce4b=>_0x24ce4b['getUnitId']()),E['filter'](_0x555c7c=>!a[_0x5f3f4d(0x1dd)](_0x555c7c)),E[_0x5f3f4d(0x43c)](this['dispose$']))[_0x5f3f4d(0x397)](_0x1f8d1d=>{_0x10445c(_0x1f8d1d);});}};Ee=Sn([he(0x0,a['Inject'](a[_0x945337(0x2b5)])),he(0x1,a['IUniverInstanceService']),he(0x2,a[_0x945337(0x414)]),he(0x3,a[_0x945337(0x4fa)](exports['CollaborationSessionService'])),he(0x4,a[_0x945337(0x4fa)](a[_0x945337(0x299)]))],Ee);var vn=Object[_0x945337(0x24b)],fn=Object[_0x945337(0x3e2)],gn=(_0x506f3c,_0x5203c3,_0x3701ea,_0x30ca28)=>{for(var _0xbfdc4a=_0x30ca28>0x1?void 0x0:_0x30ca28?fn(_0x5203c3,_0x3701ea):_0x5203c3,_0x26f5ad=_0x506f3c['length']-0x1,_0x4fad1f;_0x26f5ad>=0x0;_0x26f5ad--)(_0x4fad1f=_0x506f3c[_0x26f5ad])&&(_0xbfdc4a=(_0x30ca28?_0x4fad1f(_0x5203c3,_0x3701ea,_0xbfdc4a):_0x4fad1f(_0xbfdc4a))||_0xbfdc4a);return _0x30ca28&&_0xbfdc4a&&vn(_0x5203c3,_0x3701ea,_0xbfdc4a),_0xbfdc4a;},lt=(_0x58707c,_0xc2a03c)=>(_0x17b25a,_0x31a76b)=>_0xc2a03c(_0x17b25a,_0x31a76b,_0x58707c);exports[_0x945337(0x3cc)]=class{constructor(_0x1030a1,_0x4edecc){const _0x34ea7b=_0x945337;this[_0x34ea7b(0x4f8)]=_0x1030a1,this[_0x34ea7b(0x4ed)]=_0x4edecc;}async[_0x945337(0x33a)](_0x2d3b02,_0x5809ad){const _0x3dc87a=_0x945337;var _0x5415b0;const {unitID:_0x5555a4,type:_0x45b7e6,revision:_0x27b04a=0x0}=_0x5809ad,_0x2b3967=this[_0x3dc87a(0x1d7)]()+'/'+_0x45b7e6+_0x3dc87a(0x35e)+_0x5555a4+_0x3dc87a(0x47d)+_0x27b04a,_0x582f41=(await this['_httpService'][_0x3dc87a(0x3eb)](_0x2b3967))[_0x3dc87a(0x35f)],_0x5d339e=(_0x5415b0=_0x582f41[_0x3dc87a(0x31b)])==null?void 0x0:_0x5415b0['workbook'];if(_0x5d339e){const _0x1c3815=_0x5d339e==null?void 0x0:_0x5d339e[_0x3dc87a(0x3e3)],_0x1d6504=_[_0x3dc87a(0x43f)][_0x3dc87a(0x2f1)](_[_0x3dc87a(0x19a)](_0x1c3815));_0x5d339e['originalMeta']=_0x1d6504,Object[_0x3dc87a(0x519)](_0x5d339e[_0x3dc87a(0x4e1)])['forEach'](([,_0x4871be])=>{const _0x32edf1=_0x3dc87a,_0xa806ea=_0x4871be[_0x32edf1(0x3e3)],_0x1fa780=_['textEncoder'][_0x32edf1(0x2f1)](_[_0x32edf1(0x19a)](_0xa806ea));_0x4871be[_0x32edf1(0x3e3)]=_0x1fa780;});}return _0x582f41;}async[_0x945337(0x30e)](_0x130ddc,_0x12e667){const _0x1ddf7c=_0x945337,{unitID:_0xddf8f3,type:_0x5b4042,blockID:_0x223224}=_0x12e667,_0x1c5fbf=this[_0x1ddf7c(0x3b3)]()+'/'+_0x5b4042+'/unit/'+_0xddf8f3+_0x1ddf7c(0x1ed)+_0x223224;return(await this[_0x1ddf7c(0x4ed)][_0x1ddf7c(0x3eb)](_0x1c5fbf))[_0x1ddf7c(0x35f)];}async['getDeserializedSheetBlock'](_0x40abec,_0x4ded00){const _0x2fcd49=_0x945337,{unitID:_0x4756f9,type:_0x4de1be,blockID:_0x1da9df}=_0x4ded00,_0xe0b9f3=this[_0x2fcd49(0x3b3)]()+'/block/'+_0x4de1be+_0x2fcd49(0x35e)+_0x4756f9+_0x2fcd49(0x1ed)+_0x1da9df;return(await this[_0x2fcd49(0x4ed)][_0x2fcd49(0x3eb)](_0xe0b9f3))[_0x2fcd49(0x35f)];}async['fetchMissingChangesets'](_0x542c39,_0x31dbd7){const _0x1e824b=_0x945337,{unitID:_0x434fd3,type:_0x47e5f2,from:_0x46ccf5,to:_0x1bc6bc}=_0x31dbd7,_0x5d543b=this['_getAPIPrefix']()+'/'+_0x47e5f2+_0x1e824b(0x35e)+_0x434fd3+_0x1e824b(0x2fc)+_0x46ccf5+'&to='+_0x1bc6bc;return(await this['_httpService'][_0x1e824b(0x3eb)](_0x5d543b))['body'];}[_0x945337(0x1d7)](){const _0x4ecc8d=_0x945337;var _0x112bdd;return(_0x112bdd=this[_0x4ecc8d(0x4f8)][_0x4ecc8d(0x258)](_t))!=null?_0x112bdd:this[_0x4ecc8d(0x3b3)]();}[_0x945337(0x3b3)](){const _0x2bb731=_0x945337;var _0x17a162,_0x1d1cff;const _0x1b7489=this['_configService'][_0x2bb731(0x258)](ht),_0x42d2ec=this[_0x2bb731(0x4f8)][_0x2bb731(0x258)](A);return(_0x1d1cff=(_0x17a162=_0x42d2ec==null?void 0x0:_0x42d2ec['snapshotServerUrl'])!=null?_0x17a162:_0x1b7489)!=null?_0x1d1cff:Gt;}async[_0x945337(0x40c)](_0x3be683,_0x4d512c){const _0x54e5e2=_0x945337,_0x57acc4='/universer-api/snapshot/'+_0x4d512c['type']+_0x54e5e2(0x35e)+_0x4d512c[_0x54e5e2(0x1da)]+_0x54e5e2(0x2cc);return(await this[_0x54e5e2(0x4ed)][_0x54e5e2(0x3eb)](_0x57acc4,{'params':{'resourceId':JSON[_0x54e5e2(0x22d)](_0x4d512c['resourceIDs'])}}))[_0x54e5e2(0x35f)];}['saveSnapshot'](){const _0x2c18f1=_0x945337;throw new Error(_0x2c18f1(0x3c5));}[_0x945337(0x179)](){const _0x1618f8=_0x945337;throw new Error(_0x1618f8(0x3c5));}[_0x945337(0x40d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x945337(0x424)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x945337(0x3cc)]=gn([lt(0x0,a['IConfigService']),lt(0x1,a['Inject'](P[_0x945337(0x22e)]))],exports['SnapshotServerOverHTTPService']);var mn=Object[_0x945337(0x24b)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5a4113,_0x6f3323,_0x54c6a6,_0x1068b0)=>{const _0x40441c=_0x945337;for(var _0x1150a8=_0x1068b0>0x1?void 0x0:_0x1068b0?In(_0x6f3323,_0x54c6a6):_0x6f3323,_0x33c2e6=_0x5a4113[_0x40441c(0x3f0)]-0x1,_0xe2345;_0x33c2e6>=0x0;_0x33c2e6--)(_0xe2345=_0x5a4113[_0x33c2e6])&&(_0x1150a8=(_0x1068b0?_0xe2345(_0x6f3323,_0x54c6a6,_0x1150a8):_0xe2345(_0x1150a8))||_0x1150a8);return _0x1068b0&&_0x1150a8&&mn(_0x6f3323,_0x54c6a6,_0x1150a8),_0x1150a8;},_e=(_0x216f88,_0x3ceace)=>(_0x2298dd,_0x59db1c)=>_0x3ceace(_0x2298dd,_0x59db1c,_0x216f88);let Be=class extends a[_0x945337(0x187)]{constructor(_0x63b7b6,_0x5b738d,_0x19fbcf,_0x21c1e1,_0x49f521){const _0x1f8d79=_0x945337;super(_0x63b7b6,_0x5b738d,_0x19fbcf),this['_transformService']=_0x21c1e1,this[_0x1f8d79(0x4ae)]=_0x49f521;}[_0x945337(0x1d0)](_0x1c2d5f,_0x2bbd21){const _0x2955c0=_0x945337,_0x2f7eec=this[_0x2955c0(0x577)](_0x1c2d5f);if(_0x2f7eec)try{const _0x39dea2=this['_transformStack'](_0x2f7eec,_0x2bbd21);this[_0x2955c0(0x495)](_0x1c2d5f,_0x39dea2);}catch(_0x341ea9){this[_0x2955c0(0x4ae)][_0x2955c0(0x2e8)](_0x2955c0(0x47a),_0x341ea9),this[_0x2955c0(0x41a)](_0x1c2d5f);}const _0x4c0443=this[_0x2955c0(0x4ba)](_0x1c2d5f);if(_0x4c0443)try{const _0x2aaa69=this[_0x2955c0(0x2ca)](_0x4c0443,_0x2bbd21);this[_0x2955c0(0x4d2)](_0x1c2d5f,_0x2aaa69);}catch(_0x5946c2){this[_0x2955c0(0x4ae)]['error'](_0x5946c2),this['_clearRedo'](_0x1c2d5f);}}[_0x945337(0x41a)](_0x29ac7c){const _0x438a32=_0x945337,_0x4c0191=this[_0x438a32(0x577)](_0x29ac7c);_0x4c0191&&(_0x4c0191[_0x438a32(0x3f0)]=0x0,this['_updateStatus']());}[_0x945337(0x34d)](_0x1f52c4){const _0x2b9658=_0x945337,_0x9d4347=this[_0x2b9658(0x4ba)](_0x1f52c4);_0x9d4347&&(_0x9d4347[_0x2b9658(0x3f0)]=0x0,this[_0x2b9658(0x422)]());}[_0x945337(0x495)](_0x2bbf99,_0x46bf0b){const _0x47bc54=_0x945337;this[_0x47bc54(0x1f6)]['set'](_0x2bbf99,_0x46bf0b),this[_0x47bc54(0x422)]();}[_0x945337(0x4d2)](_0xa08074,_0x2411a1){const _0x56763a=_0x945337;this['_redoStacks'][_0x56763a(0x4a8)](_0xa08074,_0x2411a1),this[_0x56763a(0x422)]();}[_0x945337(0x2ca)](_0x31ecaf,_0x512883){const _0x240d68=_0x945337,_0x3faa7f=[];let _0x195e16=_0x512883,_0x583ba3=_0x512883;for(let _0x407f7f=_0x31ecaf[_0x240d68(0x3f0)]-0x1;_0x407f7f>=0x0;_0x407f7f--){const {unitID:_0xdaa35a,undoMutations:_0x5d9eb0,redoMutations:_0x2bc98e}=_0x31ecaf[_0x407f7f],_0xf8e809=this[_0x240d68(0x4f2)]['transformMutationsWithChangeset'](_0x195e16,_0x5d9eb0),_0x35360a=this[_0x240d68(0x4f2)][_0x240d68(0x4df)](_0x583ba3,_0x2bc98e);if(_['isTransformMutationsWithChangesetFailure'](_0xf8e809)||_[_0x240d68(0x552)](_0x35360a)){this[_0x240d68(0x4ae)][_0x240d68(0x2e8)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0xf8e809,_0x35360a);break;}_0x195e16=_0xf8e809[_0x240d68(0x44e)],_0x583ba3=_0x35360a['c1Prime'],_0x3faa7f[_0x240d68(0x3b0)]({'unitID':_0xdaa35a,'undoMutations':_0xf8e809[_0x240d68(0x178)],'redoMutations':_0x35360a[_0x240d68(0x178)]});}return _0x3faa7f[_0x240d68(0x51f)]();}};Be=pn([_e(0x0,a['IUniverInstanceService']),_e(0x1,a[_0x945337(0x400)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x945337(0x429)]),_e(0x4,a['ILogService'])],Be);class Nt extends a[_0x945337(0x538)]{constructor(){const _0x1a6989=_0x945337;super(),d(this,_0x1a6989(0x56b)),this[_0x1a6989(0x56b)]=v['fromEvent'](window,_0x1a6989(0x457))[_0x1a6989(0x550)](v[_0x1a6989(0x43c)](this[_0x1a6989(0x2ec)]),v[_0x1a6989(0x421)](0x1),v[_0x1a6989(0x1a3)](void 0x0));}[_0x945337(0x47b)](_0x1a41e8,_0x51da4e,_0x12a94a=!0x1){const _0xe70366=_0x945337,_0x321b77=new URL(window[_0xe70366(0x378)][_0xe70366(0x409)]);_0x321b77['searchParams'][_0xe70366(0x4a8)](_0x1a41e8,_0x51da4e),_0x12a94a?window[_0xe70366(0x2cd)]['replaceState']('','',_0x321b77['toString']()):window[_0xe70366(0x2cd)][_0xe70366(0x4d9)]('','',_0x321b77[_0xe70366(0x466)]());}[_0x945337(0x1b5)](_0x1ea143,_0x1ab068=!0x1){const _0x482d43=_0x945337,_0x3ea3c1=new URL(window[_0x482d43(0x378)]['href']);_0x3ea3c1[_0x482d43(0x2df)]['delete'](_0x1ea143),_0x1ab068?window[_0x482d43(0x2cd)][_0x482d43(0x2ed)]('','',_0x3ea3c1[_0x482d43(0x466)]()):window[_0x482d43(0x2cd)][_0x482d43(0x4d9)]('','',_0x3ea3c1[_0x482d43(0x466)]());}[_0x945337(0x21e)](_0x5b803f){const _0x2bc2c4=_0x945337;var _0x45ada9;return(_0x45ada9=new URL(window[_0x2bc2c4(0x378)][_0x2bc2c4(0x409)])[_0x2bc2c4(0x2df)]['get'](_0x5b803f))!=null?_0x45ada9:void 0x0;}}var At=Object['defineProperty'],Cn=Object['getOwnPropertyDescriptor'],En=(_0x500179,_0x3eec32,_0x51c288)=>_0x3eec32 in _0x500179?At(_0x500179,_0x3eec32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51c288}):_0x500179[_0x3eec32]=_0x51c288,bn=(_0x50e67a,_0x1dc922,_0x5366c8,_0x5cb5cf)=>{const _0x222cb2=_0x945337;for(var _0x3929c3=_0x5cb5cf>0x1?void 0x0:_0x5cb5cf?Cn(_0x1dc922,_0x5366c8):_0x1dc922,_0x48ae40=_0x50e67a[_0x222cb2(0x3f0)]-0x1,_0x10ba21;_0x48ae40>=0x0;_0x48ae40--)(_0x10ba21=_0x50e67a[_0x48ae40])&&(_0x3929c3=(_0x5cb5cf?_0x10ba21(_0x1dc922,_0x5366c8,_0x3929c3):_0x10ba21(_0x3929c3))||_0x3929c3);return _0x5cb5cf&&_0x3929c3&&At(_0x1dc922,_0x5366c8,_0x3929c3),_0x3929c3;},ve=(_0x2e1a8a,_0x44ea97)=>(_0x4fcffd,_0x48a174)=>_0x44ea97(_0x4fcffd,_0x48a174,_0x2e1a8a),Tn=(_0x348f70,_0x29e6d2,_0x46db22)=>En(_0x348f70,_0x29e6d2+'',_0x46db22);const Rn=_0x945337(0x323);exports[_0x945337(0x300)]=class extends a[_0x945337(0x1fd)]{constructor(_0x370ac5=ts,_0x5a79e,_0x2512a8,_0x240cf9,_0xa2ee7d){const _0x3ba533=_0x945337;super(),this[_0x3ba533(0x4fe)]=_0x370ac5,this[_0x3ba533(0x4ae)]=_0x5a79e,this[_0x3ba533(0x277)]=_0x2512a8,this[_0x3ba533(0x3dd)]=_0x240cf9,this['_configService']=_0xa2ee7d;const {..._0x2da3ad}=this[_0x3ba533(0x4fe)];this[_0x3ba533(0x4f8)][_0x3ba533(0x44a)](A,_0x2da3ad);}['onStarting'](){const _0x18e188=_0x945337;this[_0x18e188(0x199)](),a[_0x18e188(0x3b5)](this[_0x18e188(0x3dd)],[[ie],[exports[_0x18e188(0x4d5)]],[Ee]]);}[_0x945337(0x446)](){const _0x3cfffc=_0x945337;a[_0x3cfffc(0x3b5)](this[_0x3cfffc(0x3dd)],[[Ie]]);}[_0x945337(0x2e9)](){this['_registerRenderDependencies']();}[_0x945337(0x199)](){const _0x126ffa=_0x945337;var _0x5d6d6d,_0x4da76f,_0x4d6134,_0x4d4334;this[_0x126ffa(0x3dd)][_0x126ffa(0x384)](a[_0x126ffa(0x38b)])&&this['_logService'][_0x126ffa(0x2e8)](_0x126ffa(0x512),_0x126ffa(0x427));let _0x3ab063=[[a[_0x126ffa(0x38b)],{'useClass':Be}],[exports[_0x126ffa(0x3a5)]],[Xe],[P['HTTPService']],[ze,{'useClass':Nt}],[q],[exports[_0x126ffa(0x3a3)]],[P[_0x126ffa(0x2ce)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x4da76f=(_0x5d6d6d=this[_0x126ffa(0x4fe)])==null?void 0x0:_0x5d6d6d[_0x126ffa(0x3a7)])!=null?_0x4da76f:exports['CollaborationSocketService']}],[P['IHTTPImplementation'],{'useClass':P['XHRHTTPImplementation']}],[_[_0x126ffa(0x4b2)],{'useClass':exports[_0x126ffa(0x3cc)]}],[a['IAuthzIoService'],{'useClass':exports[_0x126ffa(0x40b)]}],[L[_0x126ffa(0x49e)],{'useClass':exports['ImageIoService']}],[exports[_0x126ffa(0x4ee)]],[exports[_0x126ffa(0x4d5)]],[exports[_0x126ffa(0x1ce)]],[Ie],[ie]];(_0x4d6134=this[_0x126ffa(0x4fe)])!=null&&_0x4d6134['enableSingleActiveInstanceLock']&&_0x3ab063['push']([be,{'useClass':ys}]),_0x3ab063=a[_0x126ffa(0x36c)](_0x3ab063,(_0x4d4334=this[_0x126ffa(0x4fe)])==null?void 0x0:_0x4d4334['override']),_0x3ab063[_0x126ffa(0x278)](_0x5511a8=>this[_0x126ffa(0x3dd)][_0x126ffa(0x18a)](_0x5511a8)),this[_0x126ffa(0x533)]();}['_registerRenderDependencies'](){const _0x326a3f=_0x945337;this[_0x326a3f(0x50a)](this[_0x326a3f(0x277)]['registerRenderModule'](a[_0x326a3f(0x3b1)]['UNIVER_DOC'],[xe])),this[_0x326a3f(0x50a)](this[_0x326a3f(0x277)][_0x326a3f(0x297)](a[_0x326a3f(0x3b1)][_0x326a3f(0x53c)],[ke]));}['_initModules'](){const _0x1472d3=_0x945337;var _0xa8d765,_0x5b4b0f;this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](P[_0x1472d3(0x22e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':P[_0x1472d3(0x336)]({'maxParallel':0x6})}),this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](Ce),(_0xa8d765=this[_0x1472d3(0x4fe)])!=null&&_0xa8d765[_0x1472d3(0x34a)]||this['_injector'][_0x1472d3(0x3eb)](exports['LocalCacheService'])[_0x1472d3(0x19e)](),(_0x5b4b0f=this['_config'])!=null&&_0x5b4b0f[_0x1472d3(0x28b)]&&this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](pe),this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](exports[_0x1472d3(0x4ee)]),this[_0x1472d3(0x3dd)][_0x1472d3(0x384)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](exports[_0x1472d3(0x1ce)]);}},Tn(exports['UniverCollaborationClientPlugin'],_0x945337(0x24c),Rn),exports['UniverCollaborationClientPlugin']=bn([a[_0x945337(0x292)](_[_0x945337(0x2a8)]),ve(0x1,a[_0x945337(0x48c)]),ve(0x2,R[_0x945337(0x2c4)]),ve(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),ve(0x4,a[_0x945337(0x1f7)])],exports[_0x945337(0x300)]),exports[_0x945337(0x547)]=Mt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=gt,exports[_0x945337(0x3cf)]=ut,exports[_0x945337(0x2c0)]=y,exports[_0x945337(0x3f1)]=wt,exports[_0x945337(0x4f7)]=Ge,exports['HEARTBEAT_INTERVAL_KEY']=dt,exports[_0x945337(0x1c8)]=Ve,exports['ICollaborationSocketService']=Fe,exports[_0x945337(0x527)]=ze,exports[_0x945337(0x451)]=ft,exports['LOGIN_URL_KEY']=mt,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=vt,exports[_0x945337(0x3df)]=Yt,exports[_0x945337(0x54e)]=ht,exports[_0x945337(0x438)]=_t,exports['SessionStatus']=$,exports['SheetCollabCursorShape']=Ot,exports[_0x945337(0x3ab)]=Nt,exports[_0x945337(0x368)]=Ct,exports[_0x945337(0x39b)]=Et;
1
+ 'use strict';const _0x2f1425=_0x4554;(function(_0xb12dcf,_0x4fc039){const _0x4d2d8a=_0x4554,_0x1e756b=_0xb12dcf();while(!![]){try{const _0x19aa96=-parseInt(_0x4d2d8a(0x3ff))/0x1*(parseInt(_0x4d2d8a(0x1c1))/0x2)+parseInt(_0x4d2d8a(0x4d6))/0x3+parseInt(_0x4d2d8a(0x249))/0x4*(parseInt(_0x4d2d8a(0x24a))/0x5)+parseInt(_0x4d2d8a(0x443))/0x6*(-parseInt(_0x4d2d8a(0x47b))/0x7)+parseInt(_0x4d2d8a(0x3db))/0x8+parseInt(_0x4d2d8a(0x478))/0x9+-parseInt(_0x4d2d8a(0x37f))/0xa*(parseInt(_0x4d2d8a(0x54d))/0xb);if(_0x19aa96===_0x4fc039)break;else _0x1e756b['push'](_0x1e756b['shift']());}catch(_0x421662){_0x1e756b['push'](_0x1e756b['shift']());}}}(_0x995d,0x34def));var kt=Object[_0x2f1425(0x1cf)],Bt=(_0x33c644,_0x1921b8,_0xd4e34c)=>_0x1921b8 in _0x33c644?kt(_0x33c644,_0x1921b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd4e34c}):_0x33c644[_0x1921b8]=_0xd4e34c,d=(_0x371f3a,_0x3fa37e,_0x19905)=>Bt(_0x371f3a,typeof _0x3fa37e!=_0x2f1425(0x519)?_0x3fa37e+'':_0x3fa37e,_0x19905);function _0x995d(){const _0x45e97c=['univerjs-icon\x20univerjs-icon-','parseProtocolChangeset','_snapshotService','CollaborationController','SheetCollaborationEntity','onMissingChangesets','getCellPositionByOffset','_initEventListeners','width','/allowed','event$','_listenToOnlineEvent','_injector','editing\x20status\x20changed\x20to','_onJoinRoomEvent','Rectangle','rev','getRangePointData','next','Warning','onCommentUpdate','collaboration-client.config','univer-online-status','...','handleInsertRangeMoveDown','roomInfos','/fetchmissing?from=','LocalCacheService','_id','b64DecodeUnicode','Vector2','_event$','Workbook','/new_changes','DocIMEInputManagerService','_syncEditingCollabCursorService','_onCursorUpdate','_createInitialStateImpl','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','findNodePositionByCharIndex','_undoStacks','toggleOnline','_transitionLocked','symbol','COLORS','min','toString','_uiPartsService','getActiveSheet','signUrlServerUrl','saveSnapshot','SheetCollabCursorShape','_setupSubUnitSync','entries','transformChangesets','Undefined','_createInitialState','saveImage','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','icon','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[CollaborationEntity]','getVpScrollXYInfoByPosToVp','push','routeKey','ThemeService','1em','_permissionService','refreshPermission','close','loadDoc','debounce','_collaborationController','includes','RemoveRowCommandId','registerRefRange','getViewport','deepClone','useObservable','pipe','indexOf','x-univer-host','closeSession','CommentService','_onMessage','joinEvent','_onCursorDelete','_color','_commentUpdate$','_lockTransition','purple300','SUBMIT_CHANGESET','_removeRoom','getRoom','UNIVER_COLLABORATION_CLIENT_PLUGIN','22PGYZUJ','_assignedColors','UNRECOGNIZED','stopTime','copyFileMeta','DocSkeletonManagerService','_initCloseConn','SheetSkeletonManagerService','has','isPermissionRej','replace','unshift','LICENSE_IMPORT_SIZE_EXCEEDED','AWAITING','DesktopCollaborationStatusDisplayController','RevisionService','transformMutationsWithChangeset','visibilitychange','call','roomMembers','useRef','_logService','permissionRejEvent','requestParams','CollaborationEvent','disableLocalCache','awaiting_with_pending','currentColor','mutations','objectID','_initStatusComponent','localeService','status$','_tryEnsureSocket','toRgbString','_textBubble','off-line-single_clip0_910_343','TRANSFORM_CHANGE_OBSERVABLE_TYPE','DocStateChangeManagerService','method','BASE64','_timeoutTimer','_getSendChangesetTimeout','getAncestorScale','ImageIoService','unload','UNAUTHENTICATED','_onRemoteChangeset','number','RichTextEditingMutation','top','defIds','getUnhiddenWorksheets','_roomMembers$','_initUnitPermissionChange','univer-online','_commentService','JOIN','objectType','updateMember','InsertColCommandId','editingUnit','_updateSubUnitFromURLParams','_updateState','with','forwardRef','INotificationService','_config','collab-text-range-','SetSelectionsOperation','collaboration-session-retry','generateRandomId','RECV','getCurrentUser','eventID','_notificationService','merge','url(#on-line-single_clip0_910_349)','getSkeleton','_hideTimer','IPermissionService','serializeRangeWithSheet','combineLatest','@univerjs-pro/collaboration','registerBeforeClose','url(#$1','_imageSourceCache','children','unitId\x20is\x20not\x20found','HEARTBEAT','off-line-single','getFocusedUnit','NodePositionConvertToRectRange','CollaborationSocketService','ERROR_EXCEED_SIZE','toStringTag','clearInterval','startsWith','put','_sessions','textEncoder','onPointerMove$','_getAnchorBounding','univer-pro.collaboration-client-socket-service','requireSession','_scene','_drawTextRange','rgba(255,\x20255,\x20255,\x200.01)','#FFF','onlyLocal','listCollaborators','transformUndoRedo','_labelPosition','workbook','patch','Error','pending','append','updateCursorEvent','status','getCurrentUnitForType','_replaceFileID','TEXT_RANGE_LAYER_INDEX','show','change$','resize','_startCollaboration','_transformUndoRedoStack','getSheetId','UNIVER_SHEET','_heartbeatTimer','2566wdwORd','whenReady','_configService','image/jpeg','_incrementRevisionNumber','univer-pro.collaboration-client.single-active-unit-service','COLLAB_SUBMIT_CHANGESET_URL','getUndoRedoMutationParamsCache','map','onlineStatusTitle','_exhaustRemoteChangesetQueue','_pendingMutations','ONLINE','BuiltInUIPart','defineProperty','DEFAULT_FILE_NAME','_scheduleHeartbeat','onTransformSelections','getCurrent','CollaborationSessionService','stringify','_sendHeartbeatTimer','distinctUntilChanged','downloadEndpointUrl','submit\x20changeset\x20error!','_selfUnitIDs','startColumn','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_getSheetObject','getWorkbookSelections','UNIVER_SLIDE','session','sheetID','_messageService','collaboration-client.offline-data-not-saved','_executeRemoteChangeset','socketService','_getAPIPrefixPath','moveTo','IRemoteInstanceService','_themeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','connectInjector','close$','_type','_getDownloadEndpointURL','cursorInfo','{fileID}','url','_initModules','fillStyle','_colorAssignService','_socketReady','CONNECTOR_DATA_TOO_LARGE','_online','CollaborationStatusDisplay','_refreshCollabCursors','getUnitId','_queuedRemoteChangesets','backgroundColor','add','fetchMissingChangesets','UserManagerService','baseRev','_http','updateOfflineData','fill','confirm','_backgroundColor','engine','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','AUTHZ_URL_KEY','onSendChangeset','_anchorDot','handleIRemoveRow','UPDATE_CURSOR','_scheduleTimestamp','EXCHANGE_SIGN_URL_SERVER_URL_KEY','[DataLoaderController]','_shouldReportTelemetry','/rev/','saveChangeset','_startTelemetryCollaborationNewChangeset','getParam','IHTTPImplementation','getCollabEntity','addImageSourceCache','@univerjs/core','commentUpdateEvent','addEventListener','apply','currentSkeleton$','BehaviorSubject','triggerDblclick','/universer-api/stream/file/upload','PERMISSION_REJ','interceptor','isTransformChangesetsSuccess','@univerjs/drawing','WorkbookEditablePermission','unsubscribe','_context','onStateChange','_cursors','_docSkeleton','svg','_syncEditingCollabCursor','collab-text-anchor-','allowed','title','createElement','_userManagerService','Univer','createIdentifier','_transformIMECache','hide','dispose','href','random','/collaborator','tag','_updateStatus','_getSnapshotAPIPrefix','withCredentials','serializeCombRequest','_onConnectionFailed','key','concat','column','_unitID','univer-online-status-icon','connection\x20error','SEND_CHANGESET_TIMEOUT_KEY','HttpExport','color','jiqing500','65740vvwIMx','120ZYkEnZ','colorChannel1','setUndoRedoMutationParamsCache','idSuffix','endRow','removeMember','popstate','_socketMessageSubscription','FAIL','SNAPSHOT_INVALID_SNAPSHOT','Plugin','_removeCollabCursors','setCurrentUser','DeleteRangeMoveLeftCommandId','getRenderById','onlineStatusIcon','_handleHeartbeatEvent','RxDisposable','_transformPreviousActiveRange','LICENSE_EXPORT_SIZE_EXCEEDED','MoveRangeCommandId','USERS_ENTER','getTypeOfUnitDisposed$','SUCCUSS','selections','rxjs/operators','getItem','_clearUndo','WebSocketService','getValue','clipPath','SEND_CHANGESET_TIMEOUT','isEditing','registerRenderModule','restore','onMouseMove','_getAPIPrefix','ITelemetryService','_getRedoStack','NO_OTHER_CLIENTS_EDITING','SetWorksheetActivateCommand','YUUMI_RATE_OVER_LIMIT','SNAPSHOT_URL_KEY','takeUntil','COLLAB_WEB_SOCKET_URL','LEAVE','_getMergeRange','IDLE','getOwnPropertySymbols','evenodd','collaboration.single-unit.warning','_drawAnchor','debug','image/png','getMemberID','_waitForHeartbeatResponse','YUUMI_URL_COL_OUT_OF_RANGE','replaceState','csRejEvent','sessionStatus','MergeInterceptorFactory','headers','catch','updateCollaborator','_localCacheService','LIVESHARE_FETCH_OPERATIONS','responseType','@univerjs/engine-formula','forEach','delete','setWaitCount','UNIVER_PROJECT','UPDATE_PERMISSION_OBJ','concatMap','Rect','_docSyncEditingCollabCursorService','_beforeCloseService','_docTransformIMECacheService','ITransformService','conflict','INGEST','[UniverCollaborationClientPlugin]','_acknowledgedAwaitingChangeset','deserializeRangeWithSheet','setParam','max','_sendHeartbeat','session.collaboration-timeout','enableAuthServer','_localStorageService','_cachedData','data','verdancy600','getUnitOnRev','useDependency','&source=','putCollaborators','getOwnPropertyDescriptor','clearTimeout','getColor','slice','getSheetBySheetId','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','/universer-api/snapshot','_disabled','commentUpdate$','dispose$','onMissedChangesetFetched','collaborators','filter','urlChange$','Error\x20on\x20receiving\x20event','JOINING','save\x20fail\x20reason\x20is\x20','getUnitType','addObject','setAlpha','?size=','_clearLocalCache','_onRecvEvent','setShapeProps','lineTo','UUID','appendMutation','_initResize','#fff','revision','collab-rect-range-','Unknown\x20user','collabStatus.offline','@univerjs/design','IUIPartsService','assign','className','HTTPRequest','isTransformMutationFailure','body','syncEditingCollabCursor','_clearScheduledTask','none','useCallback','LocaleService','DataLoaderController','location','_sheetSkeletonManagerService','sequenceExecute','actions','_httpService','PSEUDO_FETCH_MISSING_RESULT','toDisposable','values','transform','DeleteRangeMoveUpCommandId','ILogService','_onOffline','subUnitId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','RETRY_CONNECTING_MAX_COUNT','fromEventSubject','take','xlink:href','_disableEditing','/-/object/-/batch_allowed','pauseCollaboration','_clearRedo','defs','[CollaborationUndoRedoService]','EmptyMutation','startTime','failed\x20to\x20apply\x20missed\x20changesets!','_handleLeaveEvent','_name','_refRangeService','_stopTelemetryCollaborationNewChangeset','displayName','UniverCollaborationClientPlugin','_snapshotServerService','_registerRenderDependencies','init','asObservable','mapTo','unknown','EffectRefRangId','online','Module','_initStatusListener','transformRemoteChangeset','_createSocket','exhaustSavingTask','_isPermissionRej','?url=','DisposableCollection','_telemetryInfo','_lastPointer','awaitingChangeset','subunit','_send','IURLService','_collaborationTimeoutTimer','resolve','_checkMissing','then','_cursorShapes','_telemetryService','toggleOffline','handleDeleteRangeMoveLeft','disposeUnit','\x20in\x20_schedule.','_sheetTransformSelectionsService','_socket$','isValidRectRange','post','now','snapshotServerUrl','debounceTime','AuthzIoHttpService','path','_instanceService','SYNCED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','FromArray','ACTIVE_UNIT_EVENT_CHANNEL','isTransformMutationsWithChangesetFailure','_saveTaskMap','getUnitStatus$','CollaborationEntity','_status$','snapshot','reconnect','_getCtorByUniverType','isActive','COLLAB_SUBMIT_CHANGESET_URL_KEY','@univerjs/sheets','[PendingState]:\x20unhandled\x20univer\x20type:\x20','fetch_missing','drawWith','round','_updateURLWithCurrentState','getCollabCursors$','resend','[OfflineState]:\x20received\x20acknowledgement.','onload','[FetchMissState]','_range','getUnit','_shapes','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_revisionService','complete','HELLO','ranges','_setupBeforeClosingHandler','react','OnLineSingle','error','registerOnClose','_scheduleClearOtherTimer','_updateLocalCursor','isTransformMutationsWithChangesetSuccess','APPLY_NON_SEQUENTIAL_REVISION','split','_init','_ws','deleteCollaborator','endColumn','_unlockTransition','_startSheetCollabCursor','FETCH_MISSING','_retryConnectingTimer','_updateCollabCursors','DocCollaborationEntity','_HTTPService','NOT_COLLAB','result','APPLY_REVISION_CONFILICT','IAuthzIoService','COLLAB_WEB_SOCKET_URL_KEY','UniverInstanceType','POST','_registerDependencies','size','cursorInfo$','[SyncedState]:\x20received\x20acknowledgement.','_tryReconnect','_transformRemoteChangesetByIMECache','collabStatus.notCollab','Subject','cmd','collabCursorState$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','@univerjs/docs','_getUploadFileURL','set','update','_transformStack','getInterceptPoints','_clearHeartbeatTimer','executeCommand','_clearOtherTimers','reduce','_showConflictNotification','_renderManagerService','_state$','onPointerEnter$','_startDocCollabCursor','_onCombEvent','_scheduleCollaborationTimeoutTimer','save','selection','2171050FWbquZ','ThresholdInterceptorFactory','ColorKit','handleMoveRange','onReady','getCollabEntity$','ILocalStorageService','NodePositionConvertToCursor','Disposable','permission.title','onRemoteChangeset','/unit/','memberID','loadSheet','length','telemetry\x20info\x20is\x20not\x20initialized','_collabCursorState$','_onFetchMissResult','AWAITING_WITH_PENDING','_socket','onPointerLeave$','IBeforeCloseService','_hover','LIVESHARE_OPERATION','roles','getMember','setTimeout','every','_getSignURL','listRoles','delay','UNIVER_UNKNOWN','compose','HTTPService','OFFLINE','file','_getCurrentRevision','&to=','SNAPSHOT_SERVER_URL_KEY','_hovered','sessionStatus$','labelPosition','initWorkbookPermissionChange','m1Prime','/role','flatMap','collaMsg','_candidateSocket','/resources','all','currentTheme$','_docStateChangeManagerService','_clearCollaborationTimeoutTimer','UNKNOWN_CODE','getDeserializedSheetBlock','DocSelectionManagerService','collabStatus.conflict','height','_schedule','_retryCount','@univerjs-pro/license','c1Prime','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRefRangeChange','CommandType','_toggleOffline','FileId','MUTATION','offline','collab-client.tooltip.reconnect','type','state','RETRY_CONNECTING_MAX_COUNT_KEY','trim','OTHER_CLIENTS_EDITING','subscribe','_sessionStatus$','_onUserLeave','0\x200\x2016\x2016','PERMISSION_DENIED','handleInsertRangeMoveRight','_transformSelections','_eventUnsubscribe','YUUMI_UNABLE_LOAD_URL','/universer-api/authz','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','params','handleInsertRow','switchMap','_undoRedoService','RefRangeService','_collabCursorController','988320abuhHU','VIEWPORT_KEY','IImageIoService','_members','UNIVER_DOC','removeParam','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','image/bmp','_docTransformSelectionsService','objectActions','_initRequestHeader','_getScale','ALREADY_EXISTS','_collaborationSessionService','setItem','runRefRangeMutations','_unitStatus','_localeService','CONFLICT','_ensureSubject','getRelativeToViewportCoord','MSG_FOR_ERROR','CompressMutationService','string','transformIMECache','_loadDoc','LICENSE_MAX_UNITS_EXCEEDED','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','getCurrentRevOfUnit','@univerjs/ui','ws://127.0.0.1:8000/universer-api/comb/connect','attrs','_collaborationPaused','sendChangesetTimeout','_transformService','LocalUndoRedoService','299bSQAqu','PENDING','ImageSourceType','_docSkeletonManagerService','&assign=','open$','LICENSE_DISTRO_REJECTED','unitId','on-line-single_clip0_910_349','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','m2Prime','liveShareNewHost','onCommandExecuted','_unitOnClients','arc','reject','text','uploadFileServerUrl','HEARTBEAT_TIMEOUT','CHANGESET_ACK','originalMeta','extend','_onConflict','_change$','onRemoteAck','COMPLETION_FINISHED','getActiveRange','collabStatus.fetchMiss','get','RegularPolygon','subscribeEvent','APPLY_PERMISSION_DENIED','collaboratorID','fromCollab','deserializeToCombResponse','_anchor','collabWebSocketUrl','createSocket','disposeWithMe','_onRemoteACK','message$','error$','prototype','_getUndoStack','Optional','_awaitingChangeset','NOT_FOUND','ImageUploadStatusType','state$','conflict.content','roomMembers$','transformByState','awaiting','_decreaseWaiting','createCollaborator','_throwTelemetryCollaborationNewChangeset','unitID','_socketService','YUUMI_SUBSCRIPTION_NOT_FOUND','authzUrl','onRendered','retryConnectingInterval','_updateLocalCache','enableOfflineEditing','_memberService','collaboration.closeRoom','clear','/block/','827592cZKjXh','changesets','assignAColorForMemberID','SheetsSelectionsService','_onConnectionOpen','UnitSnapshot','COMPRESS_MUTATION_APPLY','action','_rescheduleHeartbeat','measureText','APPLY_REJECT','incrementRevOfUnit','function','Injector','[CollaborationSession]','SheetPermissionInitController','getCoordByCell','pluginName','univer-offline','IRenderManagerService','members','_univerInstanceService','makeDirty','SnapshotServerOverHTTPService','IUndoRedoService','skeleton','_sendingTimer','find','_render','_handleJoinEvent','_compressMutationService','_toggleOnline','blue400','TOO_MANY_REQUESTS','collabSubmitChangesetUrl','capture','fillText','IUniverInstanceService','parseChangesetToProtocol','name','[CollaborationSessionService]','\x20to\x20','[CollaborationState]:\x20apply\x20error!','synced','_entityInit$','_handleEvent','onRemoteRej','_session','_state','target','pushState','isArray','ICommandService','3025251khOign','UNKNOWN_CMD','readAsDataURL','7ZqTJit','_removeClearOtherTimer','IConfigService','_draw','touchDependencies','getConfig','shouldCloseConn','HttpImport','sheets','LIVESHARE_NEW_HOST','_createHandler','_roomMembers','_waitCount','_joinRoom','fetchMiss','DependentOn','_drawRectRange','IMessageService','textRanges','_urlService','/universer-api/file/{fileID}/sign-url','getDocRanges','socket$','LOGIN_URL_KEY','registerHTTPInterceptor','Tools','HEARTBEAT_INTERVAL_KEY','setConfig','[OfflineState]:\x20received\x20rejection.','JSONX','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','0\x200\x2017\x2016','SessionStatus','createInstance','saveOfflineData','UNDEFINED','_saveCache','_remoteChangesetQueue','isInternalEditorID','UnitEmbedded','handleDeleteRangeMoveUp','\x0aAfter:\x20','getSheetObject','range','history','fetchThroughInterceptors','src','_redoStacks','_clearTimeoutTimer','newCsEvent','black','json','USERS_LEAVE','_substituteRedoStack','setActiveRange','_commandService','unit','object','loadOfflineData','send','div','M0\x200H16V16H0z','_fetchMissChangesets','\x20-\x20','_getLoginPath','red300','shareReplay','joinRsp','FETCH_MISS','/object/','_colorIndex','_loadSheet','_handler','_getSaveTimeout','batchAllowed','Shape','univer-online-status-title','encode','MessageType','SHOULD_CLOSE_CONN','CollaborationSession','updatePermissionPoint','_applyRemoteChangeset','sheetId','activeSheet$','CHANGESET_REVISION_CONFILICT','Inject','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','ERROR_IMAGE_TYPE','focused$','_entities','954597xemJTI','_singleActiveUnitService','transformMutation','VIEW_MAIN','searchParams','SnapshotService','InsertRangeMoveDownCommandId','CHANGESET_REJ','parse','transformSelections','_cursorInfo$','_scheduleSaving','mapDocumentTypeToUniverType','substring','getTypeOfUnitAdded$','doc.mutation.rich-text-editing','reverse','on-line-single','_collabSessionService','c2Prime','_onRemoteRejected','from','collaboration_new_changeset','hasOwnProperty'];_0x995d=function(){return _0x45e97c;};return _0x995d();}Object[_0x2f1425(0x1cf)](exports,Symbol[_0x2f1425(0x19d)],{'value':_0x2f1425(0x302)});const a=require(_0x2f1425(0x218)),v=require('rxjs'),E=require(_0x2f1425(0x263)),X=require(_0x2f1425(0x2cc)),N=require(_0x2f1425(0x3f8)),P=require('@univerjs/network'),_=require(_0x2f1425(0x191)),Vt=require('@univerjs/telemetry'),V=require(_0x2f1425(0x36c)),w=require('@univerjs/docs-ui'),C=require(_0x2f1425(0x332)),R=require('@univerjs/engine-render'),L=require(_0x2f1425(0x223)),Je=require(_0x2f1425(0x28d)),te=require('@univerjs/sheets-ui'),U=require(_0x2f1425(0x346)),Wt=require('@univerjs/rpc'),Ft=require(_0x2f1425(0x3bb)),ht=_0x2f1425(0x3a5),Gt=_0x2f1425(0x2b1),_t=_0x2f1425(0x274),Yt=_0x2f1425(0x269),Kt=0x7d0,ut=_0x2f1425(0x276),Xt=_0x2f1425(0x3f9),dt='HEARTBEAT_INTERVAL',qt=0x7530,Ve=_0x2f1425(0x411),St=0x4e20,zt=0x4e20,vt=_0x2f1425(0x2e7),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt=_0x2f1425(0x1c7),Qt='/universer-api/comb',mt=_0x2f1425(0x492),es='/universer-api/oidc/authpage';var It=(_0x7bf35=>(_0x7bf35[_0x7bf35[_0x2f1425(0x49e)]=0x0]=_0x2f1425(0x49e),_0x7bf35[_0x7bf35['OK']=0x1]='OK',_0x7bf35[_0x7bf35['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x7bf35[_0x7bf35[_0x2f1425(0x3ce)]=0x3]=_0x2f1425(0x3ce),_0x7bf35[_0x7bf35[_0x2f1425(0x42d)]=0x4]=_0x2f1425(0x42d),_0x7bf35[_0x7bf35[_0x2f1425(0x57b)]=0x5]='UNAUTHENTICATED',_0x7bf35[_0x7bf35[_0x2f1425(0x3e7)]=0x6]=_0x2f1425(0x3e7),_0x7bf35[_0x7bf35['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x7bf35[_0x7bf35['TOO_MANY_REQUESTS']=0x8]=_0x2f1425(0x464),_0x7bf35[_0x7bf35[_0x2f1425(0x418)]=0x9]=_0x2f1425(0x418),_0x7bf35[_0x7bf35[_0x2f1425(0x4d0)]=0x1389]=_0x2f1425(0x4d0),_0x7bf35[_0x7bf35[_0x2f1425(0x253)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x7bf35[_0x7bf35['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x7bf35[_0x7bf35[_0x2f1425(0x44d)]=0x1b59]=_0x2f1425(0x44d),_0x7bf35[_0x7bf35[_0x2f1425(0x34d)]=0x1b5a]=_0x2f1425(0x34d),_0x7bf35[_0x7bf35[_0x2f1425(0x35c)]=0x1b5b]=_0x2f1425(0x35c),_0x7bf35[_0x7bf35[_0x2f1425(0x41e)]=0x1b5c]=_0x2f1425(0x41e),_0x7bf35[_0x7bf35[_0x2f1425(0x1f6)]=0x1f41]=_0x2f1425(0x1f6),_0x7bf35[_0x7bf35[_0x2f1425(0x3f5)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x528)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x559)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x25d)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x405)]=0x232d]=_0x2f1425(0x405),_0x7bf35[_0x7bf35[_0x2f1425(0x3d2)]=0x2711]=_0x2f1425(0x3d2),_0x7bf35[_0x7bf35[_0x2f1425(0x282)]=0x2712]=_0x2f1425(0x282),_0x7bf35[_0x7bf35['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2f1425(0x273),_0x7bf35[_0x7bf35[_0x2f1425(0x439)]=0x2714]=_0x2f1425(0x439),_0x7bf35[_0x7bf35[_0x2f1425(0x54f)]=-0x1]='UNRECOGNIZED',_0x7bf35))(It||{}),j=(_0x5f4dab=>(_0x5f4dab[_0x5f4dab['UNIVER_UNKNOWN']=0x0]=_0x2f1425(0x39e),_0x5f4dab[_0x5f4dab['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x5f4dab[_0x5f4dab[_0x2f1425(0x1bf)]=0x2]='UNIVER_SHEET',_0x5f4dab[_0x5f4dab[_0x2f1425(0x1df)]=0x3]=_0x2f1425(0x1df),_0x5f4dab[_0x5f4dab[_0x2f1425(0x291)]=0x4]=_0x2f1425(0x291),_0x5f4dab[_0x5f4dab[_0x2f1425(0x54f)]=-0x1]=_0x2f1425(0x54f),_0x5f4dab))(j||{}),b=(_0x28fcad=>(_0x28fcad[_0x28fcad[_0x2f1425(0x479)]=0x0]='UNKNOWN_CMD',_0x28fcad[_0x28fcad[_0x2f1425(0x343)]=0x1]='HELLO',_0x28fcad[_0x28fcad['JOIN']=0x2]=_0x2f1425(0x177),_0x28fcad[_0x28fcad[_0x2f1425(0x277)]=0x3]=_0x2f1425(0x277),_0x28fcad[_0x28fcad['INGEST']=0x4]='INGEST',_0x28fcad[_0x28fcad[_0x2f1425(0x197)]=0x5]=_0x2f1425(0x197),_0x28fcad[_0x28fcad[_0x2f1425(0x186)]=0x6]=_0x2f1425(0x186),_0x28fcad[_0x28fcad['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x28fcad))(b||{}),We=(_0x4cbdcf=>(_0x4cbdcf[_0x4cbdcf['UNKNOWN_CODE']=0x0]=_0x2f1425(0x3b4),_0x4cbdcf[_0x4cbdcf['OK']=0x1]='OK',_0x4cbdcf[_0x4cbdcf[_0x2f1425(0x252)]=0x2]=_0x2f1425(0x252),_0x4cbdcf[_0x4cbdcf['UNRECOGNIZED']=-0x1]=_0x2f1425(0x54f),_0x4cbdcf))(We||{}),pt=(_0x1763c9=>(_0x1763c9[_0x1763c9[_0x2f1425(0x525)]=0x0]=_0x2f1425(0x525),_0x1763c9[_0x1763c9[_0x2f1425(0x482)]=0x1]=_0x2f1425(0x482),_0x1763c9[_0x1763c9[_0x2f1425(0x246)]=0x2]=_0x2f1425(0x246),_0x1763c9[_0x1763c9[_0x2f1425(0x4a2)]=0x3]=_0x2f1425(0x4a2),_0x1763c9[_0x1763c9[_0x2f1425(0x448)]=0x4]=_0x2f1425(0x448),_0x1763c9[_0x1763c9[_0x2f1425(0x54f)]=-0x1]=_0x2f1425(0x54f),_0x1763c9))(pt||{});const A=_0x2f1425(0x503),ts={};function Ct(_0x394bab){const _0x3c6562=_0x2f1425;var _0x736ae2,_0x2d7081,_0x227efc,_0x38b94f;const _0x5e186f=_0x394bab[_0x3c6562(0x2a5)],_0x2031cd=JSON['parse'](_0x5e186f);switch(_0x2031cd[_0x3c6562(0x369)]){case b['HEARTBEAT']:case b[_0x3c6562(0x343)]:{const _0xcfa1ed=_0x2031cd['infoRsp'];return{..._0x2031cd,'data':_0xcfa1ed,'cmd':_0x2031cd[_0x3c6562(0x369)]};}case b[_0x3c6562(0x177)]:{const _0x5c7bf9=_0x2031cd[_0x3c6562(0x4be)];return{..._0x2031cd,'data':_0x5c7bf9,'cmd':_0x2031cd[_0x3c6562(0x369)]};}case b['RECV']:{const _0x109889=_0x2031cd[_0x3c6562(0x3ad)];switch(_0x109889[_0x3c6562(0x188)]){case _['CollaborationEvent'][_0x3c6562(0x220)]:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x736ae2=_0x109889[_0x3c6562(0x563)])==null?void 0x0:_0x736ae2['cs']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)][_0x3c6562(0x412)]:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x2d7081=_0x109889['csAckEvent'])==null?void 0x0:_0x2d7081['cs']},'cmd':_0x2031cd['cmd']};case _['CollaborationEvent']['NEW_CHANGESETS']:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x227efc=_0x109889[_0x3c6562(0x4ac)])==null?void 0x0:_0x227efc['cs']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)][_0x3c6562(0x4dd)]:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x38b94f=_0x109889[_0x3c6562(0x284)])==null?void 0x0:_0x38b94f['cs']},'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)][_0x3c6562(0x20c)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x1b4)]},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _['CollaborationEvent'][_0x3c6562(0x25f)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x543)]},'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)][_0x3c6562(0x4af)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['leaveEvent']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)]['LIVESHARE_NEW_HOST']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['liveShareNewHost']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)][_0x3c6562(0x28b)]:case _['CollaborationEvent'][_0x3c6562(0x396)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['liveShareOperation']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)]['LIVESHARE_TERMINATE']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x40a)]},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2031cd,'data':_0x109889,'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)]['COMMENT_UPDATE']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x219)]},'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)][_0x3c6562(0x292)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['updatePermissionObjEvent']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)]['SHOULD_CLOSE_CONN']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x481)]},'cmd':_0x2031cd[_0x3c6562(0x369)]};default:return _0x2031cd;}}default:return _0x2031cd;}}function Et(_0x1d6e91){const _0x344def=_0x2f1425;switch(_0x1d6e91[_0x344def(0x369)]){case b[_0x344def(0x197)]:case b[_0x344def(0x343)]:return JSON['stringify']({'cmd':_0x1d6e91['cmd'],'routeKey':_0x1d6e91[_0x344def(0x52e)]});case b[_0x344def(0x29a)]:{let _0x30b4fc;switch(_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x188)]){case _[_0x344def(0x565)][_0x344def(0x20c)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x20c)],'updateCursorEvent':_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x4af)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)]['USERS_LEAVE'],'leaveEvent':_0x1d6e91['data'][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x25f)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x25f)],'joinEvent':_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x484)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x484)],'liveShareNewHost':_0x1d6e91['data'][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x396)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x396)],'liveShareOperation':_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)]['LIVESHARE_TERMINATE']:{_0x30b4fc={'eventID':_[_0x344def(0x565)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1d6e91['data']['data']};break;}case _['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x30b4fc={'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x1d6e91[_0x344def(0x2a5)]['data']};break;}case _[_0x344def(0x565)][_0x344def(0x28b)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x28b)]};break;}default:_0x30b4fc={'eventID':_0x1d6e91['data'][_0x344def(0x188)]};}return JSON[_0x344def(0x1d5)]({'cmd':_0x1d6e91['cmd'],'routeKey':_0x1d6e91['routeKey'],'collaMsg':_0x30b4fc});}case b['JOIN']:return JSON[_0x344def(0x1d5)]({'cmd':_0x1d6e91[_0x344def(0x369)],'routeKey':_0x1d6e91['routeKey'],'joinReq':_0x1d6e91[_0x344def(0x2a5)]});case b['LEAVE']:return JSON[_0x344def(0x1d5)]({'cmd':_0x1d6e91[_0x344def(0x369)],'routeKey':_0x1d6e91[_0x344def(0x52e)],'leaveReq':_0x1d6e91[_0x344def(0x2a5)]});default:throw new Error(_0x344def(0x36b));}}var ss=Object[_0x2f1425(0x1cf)],is=Object[_0x2f1425(0x2ab)],ns=(_0x153e86,_0x46b654,_0x1d7511,_0x2dcb50)=>{for(var _0x263578=_0x2dcb50>0x1?void 0x0:_0x2dcb50?is(_0x46b654,_0x1d7511):_0x46b654,_0x27fe71=_0x153e86['length']-0x1,_0x33ba63;_0x27fe71>=0x0;_0x27fe71--)(_0x33ba63=_0x153e86[_0x27fe71])&&(_0x263578=(_0x2dcb50?_0x33ba63(_0x46b654,_0x1d7511,_0x263578):_0x33ba63(_0x263578))||_0x263578);return _0x2dcb50&&_0x263578&&ss(_0x46b654,_0x1d7511,_0x263578),_0x263578;},oe=(_0x1ae20d,_0x52df62)=>(_0x2a25cc,_0x1da1ce)=>_0x52df62(_0x2a25cc,_0x1da1ce,_0x1ae20d);const Fe=a[_0x2f1425(0x232)](_0x2f1425(0x1a5));function rs(_0x1837c4,_0x2e36aa,_0x1158a4){const _0x421be9=_0x2f1425;return _0x1837c4+'/'+_0x2e36aa+_0x421be9(0x38a)+_0x1158a4+_0x421be9(0x50f);}exports[_0x2f1425(0x19b)]=class extends a[_0x2f1425(0x387)]{constructor(_0x16caa9,_0x14b2fd,_0x13b67e,_0x233d49,_0x5917b4){const _0x245426=_0x2f1425;super(),this['_http']=_0x16caa9,this[_0x245426(0x350)]=_0x14b2fd,this[_0x245426(0x1c3)]=_0x13b67e,this[_0x245426(0x562)]=_0x233d49,this[_0x245426(0x2fa)]=_0x5917b4;}[_0x2f1425(0x424)](_0x40ed34){const _0x4af499=_0x2f1425,_0x1e7206=this[_0x4af499(0x350)]['createSocket'](_0x40ed34);if(!_0x1e7206)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x534443=new a[(_0x4af499(0x309))](),_0x3b2be5=new v[(_0x4af499(0x368))]();_0x534443[_0x4af499(0x1fd)](_0x1e7206[_0x4af499(0x1ec)][_0x4af499(0x3ca)](_0x1472e2=>_0x3b2be5[_0x4af499(0x500)](_0x1472e2))),_0x534443['add'](a[_0x4af499(0x2df)](()=>_0x3b2be5[_0x4af499(0x342)]()));const _0x4f364e=new v[(_0x4af499(0x368))]();_0x534443[_0x4af499(0x1fd)](_0x1e7206[_0x4af499(0x428)]['subscribe'](_0x34e18b=>_0x4f364e[_0x4af499(0x500)](_0x34e18b))),_0x534443[_0x4af499(0x1fd)](a[_0x4af499(0x2df)](()=>_0x4f364e[_0x4af499(0x342)]()));const _0x55b9a5=new v[(_0x4af499(0x368))]();_0x534443[_0x4af499(0x1fd)](_0x1e7206[_0x4af499(0x427)][_0x4af499(0x3ca)](_0x3d5420=>{const _0x41c217=_0x4af499,_0x433106=Ct(_0x3d5420);_0x55b9a5[_0x41c217(0x500)](_0x433106);})),_0x534443['add'](a['toDisposable'](()=>_0x55b9a5[_0x4af499(0x342)]()));let _0x656385;const _0x299656=()=>{const _0x52bf38=_0x4af499;_0x4f364e[_0x52bf38(0x500)](new Event(_0x52bf38(0x244))),_0x3b2be5['next'](new CloseEvent(_0x52bf38(0x244))),_0x656385[_0x52bf38(0x533)]();};return _0x656385={'memberID':'','close$':_0x3b2be5[_0x4af499(0x2fd)](),'error$':_0x4f364e[_0x4af499(0x2fd)](),'open$':_0x1e7206[_0x4af499(0x404)],'message$':_0x55b9a5[_0x4af499(0x2fd)](),'send':_0x2c726a=>{const _0x1598a1=_0x4af499;if(_0x2c726a[_0x1598a1(0x369)]===b[_0x1598a1(0x29a)]){if(_0x2c726a[_0x1598a1(0x2a5)][_0x1598a1(0x188)]===_[_0x1598a1(0x565)]['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x656385,_0x2c726a['data'])[_0x1598a1(0x288)](_0x31c340=>{const _0x57582f=_0x1598a1;this[_0x57582f(0x562)][_0x57582f(0x348)](_0x31c340),_0x299656();});return;}if(_0x2c726a[_0x1598a1(0x2a5)][_0x1598a1(0x188)]===_[_0x1598a1(0x565)][_0x1598a1(0x355)]){const _0x4d48c5=_0x2c726a[_0x1598a1(0x2a5)];this[_0x1598a1(0x4b9)](_0x4d48c5)['then'](_0x3a7a9a=>{const _0x2f957c=_0x1598a1;_0x55b9a5['next']({'cmd':b[_0x2f957c(0x186)],'code':We['OK'],'routeKey':_0x4d48c5[_0x2f957c(0x2a5)][_0x2f957c(0x437)],'routeType':'','data':{'eventID':_[_0x2f957c(0x565)][_0x2f957c(0x2de)],'data':{'changesets':_0x3a7a9a}}});})['catch'](_0x3cf383=>{this['_logService']['error'](_0x3cf383),_0x299656();});return;}}_0x1e7206[_0x1598a1(0x4b6)](Et(_0x2c726a));},'close':()=>{const _0x38755e=_0x4af499;_0x1e7206['close'](),_0x534443[_0x38755e(0x235)]();}},_0x656385;}async['_submitChangeset'](_0x49f290,_0x56a844){const _0x36497d=_0x2f1425;var _0xdf0df3,_0xf0d4b6;const {unitType:_0x23b3e8,unitID:_0x128bfa,changeset:_0x7210d0}=_0x56a844[_0x36497d(0x2a5)],_0x565860={'unitID':_0x128bfa,'memberID':_0x49f290['memberID'],'type':_0x23b3e8,'changeset':_[_0x36497d(0x469)](_0x7210d0)},_0x4167fd=this['_configService'][_0x36497d(0x480)](gt),_0xa4cb98=this[_0x36497d(0x1c3)][_0x36497d(0x480)](A),_0x29f031=rs((_0xf0d4b6=(_0xdf0df3=_0xa4cb98==null?void 0x0:_0xa4cb98[_0x36497d(0x465)])!=null?_0xdf0df3:_0x4167fd)!=null?_0xf0d4b6:Qt,_0x23b3e8,_0x128bfa);try{await this[_0x36497d(0x201)][_0x36497d(0x31d)](_0x29f031,{'body':_0x565860});}catch(_0x52b8c0){throw this['_logService'][_0x36497d(0x348)](_0x36497d(0x451),_0x36497d(0x1d9)),_0x52b8c0;}}async[_0x2f1425(0x4b9)](_0x167b49){const _0x541644=_0x2f1425,{unitID:_0xde33af,from:_0x31c729,to:_0xb77176,unitType:_0x5b01c8}=_0x167b49[_0x541644(0x2a5)];return(await this[_0x541644(0x2fa)][_0x541644(0x1fe)]({'metadata':void 0x0},{'unitID':_0xde33af,'type':_0x5b01c8,'from':_0x31c729,'to':_0xb77176}))['changesets'];}},exports[_0x2f1425(0x19b)]=ns([oe(0x0,a['Inject'](P[_0x2f1425(0x3a0)])),oe(0x1,a['Inject'](P[_0x2f1425(0x266)])),oe(0x2,a[_0x2f1425(0x47d)]),oe(0x3,a[_0x2f1425(0x2e3)]),oe(0x4,_['ISnapshotServerService'])],exports[_0x2f1425(0x19b)]);const os=_0x2f1425(0x4ec);function as(_0x397ece){const _0x4226f3=_0x2f1425;return JSON[_0x4226f3(0x1d5)](_0x397ece)[_0x4226f3(0x38d)];}class Ge{constructor(){const _0x1e6199=_0x2f1425;d(this,_0x1e6199(0x546),new v[(_0x1e6199(0x368))]()),d(this,_0x1e6199(0x2b3),this[_0x1e6199(0x546)][_0x1e6199(0x2fd)]());}[_0x2f1425(0x502)](_0x2856f2){const _0x1a6f52=_0x2f1425;this[_0x1a6f52(0x546)][_0x1a6f52(0x500)](_0x2856f2);}}var cs=Object['defineProperty'],ls=Object[_0x2f1425(0x2ab)],hs=(_0x225c15,_0x28d82b,_0x125e8b,_0x3ced1c)=>{const _0x460a35=_0x2f1425;for(var _0x817b3=_0x3ced1c>0x1?void 0x0:_0x3ced1c?ls(_0x28d82b,_0x125e8b):_0x28d82b,_0x349914=_0x225c15[_0x460a35(0x38d)]-0x1,_0x329820;_0x349914>=0x0;_0x349914--)(_0x329820=_0x225c15[_0x349914])&&(_0x817b3=(_0x3ced1c?_0x329820(_0x28d82b,_0x125e8b,_0x817b3):_0x329820(_0x817b3))||_0x817b3);return _0x3ced1c&&_0x817b3&&cs(_0x28d82b,_0x125e8b,_0x817b3),_0x817b3;},Ze=(_0x569619,_0x4b11c6)=>(_0x7c4248,_0x31b2da)=>_0x4b11c6(_0x7c4248,_0x31b2da,_0x569619);let q=class extends a[_0x2f1425(0x387)]{constructor(_0x396234,_0x4460dd){const _0x38ebcf=_0x2f1425;super(),d(this,_0x38ebcf(0x486),new Map()),(this[_0x38ebcf(0x458)]=_0x396234,this[_0x38ebcf(0x230)]=_0x4460dd,this[_0x38ebcf(0x425)](a['toDisposable'](v[_0x38ebcf(0x18a)](this['_univerInstanceService'][_0x38ebcf(0x260)](a['UniverInstanceType'][_0x38ebcf(0x1bf)])['pipe'](E[_0x38ebcf(0x1c9)](_0x107d9c=>_0x107d9c['getUnitId']())),this[_0x38ebcf(0x458)][_0x38ebcf(0x260)](a['UniverInstanceType']['UNIVER_DOC'])[_0x38ebcf(0x53d)](E[_0x38ebcf(0x1c9)](_0x3f83df=>_0x3f83df[_0x38ebcf(0x1fa)]())),this[_0x38ebcf(0x458)]['getTypeOfUnitDisposed$'](a[_0x38ebcf(0x35f)][_0x38ebcf(0x1df)])[_0x38ebcf(0x53d)](E[_0x38ebcf(0x1c9)](_0xc4c7a6=>_0xc4c7a6[_0x38ebcf(0x1fa)]())))[_0x38ebcf(0x3ca)](_0x3501ba=>this['_removeRoom'](_0x3501ba)))));}[_0x2f1425(0x256)](_0x3b01c9){const _0xa30072=_0x2f1425;this[_0xa30072(0x230)][_0xa30072(0x256)](_0x3b01c9);}[_0x2f1425(0x187)](){const _0x5493b9=_0x2f1425;return this[_0x5493b9(0x230)]['getCurrentUser']();}[_0x2f1425(0x179)](_0x2a53d3,_0x251d2a){const _0x1c0cda=_0x2f1425;let _0x23975d=this['_roomMembers']['get'](_0x2a53d3);_0x23975d||(_0x23975d=new _s(),this[_0x1c0cda(0x486)][_0x1c0cda(0x36e)](_0x2a53d3,_0x23975d)),_0x23975d[_0x1c0cda(0x179)](_0x251d2a);}[_0x2f1425(0x24f)](_0x3ed5ec,_0x226323){const _0x364dd4=_0x2f1425,_0x522bbd=this[_0x364dd4(0x486)]['get'](_0x3ed5ec);_0x522bbd&&_0x522bbd[_0x364dd4(0x24f)](_0x226323);}[_0x2f1425(0x54b)](_0x86936c){return this['_roomMembers']['get'](_0x86936c);}[_0x2f1425(0x398)](_0x14e09e,_0x30af88){const _0x170f58=_0x2f1425,_0x1bc06f=this['_roomMembers'][_0x170f58(0x41b)](_0x14e09e);if(_0x1bc06f)return _0x1bc06f[_0x170f58(0x398)](_0x30af88);}[_0x2f1425(0x54a)](_0x9b76fc){const _0x4ebe2d=_0x2f1425,_0x46c568=this[_0x4ebe2d(0x486)][_0x4ebe2d(0x41b)](_0x9b76fc);_0x46c568&&(_0x46c568[_0x4ebe2d(0x235)](),this[_0x4ebe2d(0x486)][_0x4ebe2d(0x28f)](_0x9b76fc));}[_0x2f1425(0x235)](){const _0x4b5659=_0x2f1425;this[_0x4b5659(0x486)][_0x4b5659(0x28e)](_0x2925c2=>_0x2925c2[_0x4b5659(0x235)]()),this[_0x4b5659(0x486)][_0x4b5659(0x441)]();}};q=hs([Ze(0x0,a['IUniverInstanceService']),Ze(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x1ff)]))],q);class _s extends a['Disposable']{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x2f1425(0x235)](){const _0xcb2e8=_0x2f1425;this['_members'][_0xcb2e8(0x441)]();}[_0x2f1425(0x179)](_0x11c0b7){const _0x3539f9=_0x2f1425;this['_members'][_0x3539f9(0x36e)](_0x11c0b7[_0x3539f9(0x38b)],_0x11c0b7);}[_0x2f1425(0x24f)](_0x44aeb1){const _0x4b66c7=_0x2f1425;this[_0x4b66c7(0x3de)][_0x4b66c7(0x28f)](_0x44aeb1);}[_0x2f1425(0x398)](_0x5b70c0){const _0x39ef5c=_0x2f1425;return this[_0x39ef5c(0x3de)][_0x39ef5c(0x41b)](_0x5b70c0);}}var us=Object[_0x2f1425(0x1cf)],ds=Object[_0x2f1425(0x2ab)],Ss=(_0x5f4e78,_0x4b8218,_0x619fa2,_0x9c8508)=>{for(var _0x22f3ce=_0x9c8508>0x1?void 0x0:_0x9c8508?ds(_0x4b8218,_0x619fa2):_0x4b8218,_0x4094c0=_0x5f4e78['length']-0x1,_0xb19bb9;_0x4094c0>=0x0;_0x4094c0--)(_0xb19bb9=_0x5f4e78[_0x4094c0])&&(_0x22f3ce=(_0x9c8508?_0xb19bb9(_0x4b8218,_0x619fa2,_0x22f3ce):_0xb19bb9(_0x22f3ce))||_0x22f3ce);return _0x9c8508&&_0x22f3ce&&us(_0x4b8218,_0x619fa2,_0x22f3ce),_0x22f3ce;},B=(_0x540230,_0x2909fa)=>(_0x4b1a52,_0x47e8ec)=>_0x2909fa(_0x4b1a52,_0x47e8ec,_0x540230),$=(_0x13ea19=>(_0x13ea19[_0x13ea19[_0x2f1425(0x279)]=0x0]=_0x2f1425(0x279),_0x13ea19[_0x13ea19[_0x2f1425(0x2ba)]=0x1]='JOINING',_0x13ea19[_0x13ea19[_0x2f1425(0x3a1)]=0x2]='OFFLINE',_0x13ea19[_0x13ea19[_0x2f1425(0x1cd)]=0x3]=_0x2f1425(0x1cd),_0x13ea19))($||{});exports[_0x2f1425(0x4cb)]=class extends a[_0x2f1425(0x25b)]{constructor(_0x36b7fd,_0x3006c8,_0x3c5064,_0x278f39,_0x5d328c,_0x43860c,_0xd25b4a,_0x54d663,_0x50b3ca,_0x2ed8b0){const _0x1df250=_0x2f1425;super(),d(this,_0x1df250(0x3cb),new v[(_0x1df250(0x21d))](0x0)),d(this,_0x1df250(0x3a7),this['_sessionStatus$'][_0x1df250(0x2fd)]()),d(this,_0x1df250(0x50d),new v['Subject']()),d(this,_0x1df250(0x4f8),this[_0x1df250(0x50d)][_0x1df250(0x2fd)]()),d(this,'_socket'),d(this,'_socketMessageSubscription'),d(this,'_collaborationTimeoutTimer'),d(this,_0x1df250(0x210),!0x1),d(this,_0x1df250(0x30a),null),(this[_0x1df250(0x242)]=_0x36b7fd,this[_0x1df250(0x562)]=_0x3c5064,this[_0x1df250(0x296)]=_0x278f39,this[_0x1df250(0x1e2)]=_0x5d328c,this[_0x1df250(0x1c3)]=_0x43860c,this[_0x1df250(0x3ec)]=_0xd25b4a,this[_0x1df250(0x43f)]=_0x54d663,this[_0x1df250(0x176)]=_0x50b3ca,this[_0x1df250(0x315)]=_0x2ed8b0,this['_shouldReportTelemetry']=!!this[_0x1df250(0x315)],_0x3006c8[_0x1df250(0x53d)](v[_0x1df250(0x275)](this['dispose$']))[_0x1df250(0x3ca)](_0x2a7279=>{const _0x29428c=_0x1df250;var _0x38ee86;typeof _0x2a7279>'u'||(this[_0x29428c(0x392)]=_0x2a7279,_0x2a7279?(this[_0x29428c(0x488)](_0x2a7279),this[_0x29428c(0x251)]=_0x2a7279['message$'][_0x29428c(0x3ca)](_0x44ba57=>{const _0x221c06=_0x29428c;_0x44ba57[_0x221c06(0x52e)]===this[_0x221c06(0x242)]&&this['_onCombEvent'](_0x44ba57);})):(this[_0x29428c(0x436)](),this[_0x29428c(0x3cb)][_0x29428c(0x500)](0x2),(_0x38ee86=this['_socketMessageSubscription'])==null||_0x38ee86[_0x29428c(0x225)](),this[_0x29428c(0x251)]=null));}),this[_0x1df250(0x425)](this[_0x1df250(0x296)][_0x1df250(0x349)](()=>{const _0x244617=_0x1df250;var _0x426a08;(_0x426a08=this[_0x244617(0x392)])==null||_0x426a08[_0x244617(0x4b6)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x244617(0x242)]}});})));}get[_0x2f1425(0x285)](){const _0x5bcd1c=_0x2f1425;return this[_0x5bcd1c(0x3cb)][_0x5bcd1c(0x267)]();}[_0x2f1425(0x280)](){const _0x5a2145=_0x2f1425;var _0x31c2cc,_0xcabd34;return(_0xcabd34=(_0x31c2cc=this[_0x5a2145(0x392)])==null?void 0x0:_0x31c2cc['memberID'])!=null?_0xcabd34:null;}['dispose'](){const _0x66a80b=_0x2f1425;super['dispose'](),this[_0x66a80b(0x2b4)][_0x66a80b(0x500)](),this[_0x66a80b(0x2b4)][_0x66a80b(0x342)]();}[_0x2f1425(0x533)](){const _0x1049c2=_0x2f1425;var _0x31f567,_0x4eb6cc;this[_0x1049c2(0x436)](),(_0x31f567=this[_0x1049c2(0x392)])==null||_0x31f567[_0x1049c2(0x4b6)]({'cmd':b[_0x1049c2(0x277)],'data':{'roomID':this[_0x1049c2(0x242)]}}),(_0x4eb6cc=this[_0x1049c2(0x392)])==null||_0x4eb6cc[_0x1049c2(0x533)](),this[_0x1049c2(0x50d)]['complete'](),this['_sessionStatus$'][_0x1049c2(0x342)](),this['dispose']();}[_0x2f1425(0x37b)](_0x39e7c9){const _0x96a2b0=_0x2f1425;_0x39e7c9['cmd']===b['JOIN']?this[_0x96a2b0(0x4fc)](_0x39e7c9):_0x39e7c9[_0x96a2b0(0x369)]===b[_0x96a2b0(0x186)]&&this[_0x96a2b0(0x2c1)](_0x39e7c9);}['_joinRoom'](_0x468455){const _0x27debd=_0x2f1425;this['_sessionStatus$'][_0x27debd(0x500)](0x1),_0x468455[_0x27debd(0x4b6)]({'cmd':b['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x27debd(0x242)]}]}});}['_onJoinRoomEvent'](_0xbc9fb){const _0x4d8350=_0x2f1425;var _0xd53e87;if(_0xbc9fb['code']===We['FAIL']){this[_0x4d8350(0x1e2)][_0x4d8350(0x1b9)]({'type':X[_0x4d8350(0x4c9)][_0x4d8350(0x501)],'content':this[_0x4d8350(0x3ec)]['t']('session.room-full')}),this[_0x4d8350(0x3cb)][_0x4d8350(0x500)](0x2);return;}this[_0x4d8350(0x3cb)]['next'](0x3);const _0x401642=(_0xd53e87=_0xbc9fb[_0x4d8350(0x2a5)][_0x4d8350(0x507)][this[_0x4d8350(0x242)]])==null?void 0x0:_0xd53e87[_0x4d8350(0x457)];_0x401642&&_0x401642[_0x4d8350(0x28e)](_0x390acc=>this[_0x4d8350(0x43f)][_0x4d8350(0x179)](this[_0x4d8350(0x242)],_0x390acc));}[_0x2f1425(0x2c1)](_0x3f0f27){const _0x5ba541=_0x2f1425;try{const _0x4707dd=_0x3f0f27[_0x5ba541(0x2a5)];switch(_0x4707dd[_0x5ba541(0x188)]){case _['CollaborationEvent'][_0x5ba541(0x25f)]:this['_onUserJoin'](_0x4707dd),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;case _['CollaborationEvent'][_0x5ba541(0x4af)]:this[_0x5ba541(0x3cc)](_0x4707dd),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;case _[_0x5ba541(0x565)][_0x5ba541(0x412)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x5ba541(0x3b3)](),this['_event$'][_0x5ba541(0x500)](_0x4707dd);break;case _[_0x5ba541(0x565)][_0x5ba541(0x3f0)]:this[_0x5ba541(0x562)][_0x5ba541(0x348)](_0x5ba541(0x2bb)+JSON[_0x5ba541(0x1d5)](_0x4707dd)),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;case _[_0x5ba541(0x565)]['COMMENT_UPDATE']:this[_0x5ba541(0x176)][_0x5ba541(0x502)](_0x4707dd['data']),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;default:this['_event$'][_0x5ba541(0x500)](_0x4707dd);}}catch(_0x174cc7){this[_0x5ba541(0x562)][_0x5ba541(0x348)](_0x174cc7,_0x3f0f27);}}['_onUserJoin'](_0x48a934){const _0xa38883=_0x2f1425;this[_0xa38883(0x43f)]['updateMember'](this[_0xa38883(0x242)],_0x48a934['data']);}['_onUserLeave'](_0x5d798a){const _0x19a55f=_0x2f1425;this['_memberService'][_0x19a55f(0x24f)](this['_unitID'],_0x5d798a[_0x19a55f(0x2a5)][_0x19a55f(0x38b)]);}async[_0x2f1425(0x4b6)](_0x5ece4a,_0x15a930){const _0x32ea71=_0x2f1425;if(this[_0x32ea71(0x285)]!==0x3||!this[_0x32ea71(0x392)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x5ece4a['eventID']===_[_0x32ea71(0x565)][_0x32ea71(0x549)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x5ece4a)),this['_socket'][_0x32ea71(0x4b6)]({'cmd':b[_0x32ea71(0x29a)],'routeKey':_0x15a930,'routeType':'','data':_0x5ece4a});}catch(_0x2d4e37){this[_0x32ea71(0x562)][_0x32ea71(0x348)](_0x2d4e37);}}[_0x2f1425(0x37c)](){const _0x341d26=_0x2f1425;var _0x28e4de;this['_collaborationTimeoutTimer']=window[_0x341d26(0x399)](()=>{const _0x192186=_0x341d26;this[_0x192186(0x310)]=null,this[_0x192186(0x1e2)][_0x192186(0x1b9)]({'type':X[_0x192186(0x4c9)][_0x192186(0x1b1)],'content':this['_localeService']['t'](_0x192186(0x2a1))});},(_0x28e4de=this[_0x341d26(0x1c3)]['getConfig'](Ve))!=null?_0x28e4de:St);}[_0x2f1425(0x3b3)](){const _0x41cec9=_0x2f1425;this[_0x41cec9(0x310)]&&(clearTimeout(this[_0x41cec9(0x310)]),this[_0x41cec9(0x310)]=null);}[_0x2f1425(0x213)](_0x4355aa){const _0x14de40=_0x2f1425;if(!this[_0x14de40(0x210)])return;const {data:_0x25ba91}=_0x4355aa,{unitID:_0x17830a,changeset:_0x4abb46}=_0x25ba91,{mutations:_0x361355,type:_0xf94e5e}=_0x4abb46;this['_telemetryInfo']={'unitId':_0x17830a,'type':_0xf94e5e,'startTime':performance[_0x14de40(0x31e)](),'stopTime':0x0,'duration':0x0,'size':as(_0x361355)};}[_0x2f1425(0x2f7)](){const _0x28d6e6=_0x2f1425;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x28d6e6(0x562)]['error'](_0x28d6e6(0x451),_0x28d6e6(0x38e));return;}this[_0x28d6e6(0x30a)][_0x28d6e6(0x550)]=performance[_0x28d6e6(0x31e)](),this['_telemetryInfo']['duration']=this[_0x28d6e6(0x30a)][_0x28d6e6(0x550)]-this[_0x28d6e6(0x30a)][_0x28d6e6(0x2f2)],this[_0x28d6e6(0x315)][_0x28d6e6(0x466)](os,this[_0x28d6e6(0x30a)]),this[_0x28d6e6(0x30a)]=null;}}[_0x2f1425(0x436)](){this['_telemetryInfo']=null;}},exports[_0x2f1425(0x4cb)]=Ss([B(0x2,a['ILogService']),B(0x3,N[_0x2f1425(0x394)]),B(0x4,N[_0x2f1425(0x48c)]),B(0x5,a[_0x2f1425(0x47d)]),B(0x6,a['Inject'](a[_0x2f1425(0x2d7)])),B(0x7,a[_0x2f1425(0x4d1)](q)),B(0x8,a[_0x2f1425(0x4d1)](Ge)),B(0x9,a[_0x2f1425(0x42b)](Vt[_0x2f1425(0x26f)]))],exports['CollaborationSession']);var vs=Object[_0x2f1425(0x1cf)],fs=Object[_0x2f1425(0x2ab)],gs=(_0x21c2dd,_0x534547,_0x53104c,_0x5ea21e)=>{for(var _0x5082ee=_0x5ea21e>0x1?void 0x0:_0x5ea21e?fs(_0x534547,_0x53104c):_0x534547,_0x576cc1=_0x21c2dd['length']-0x1,_0x480e9b;_0x576cc1>=0x0;_0x576cc1--)(_0x480e9b=_0x21c2dd[_0x576cc1])&&(_0x5082ee=(_0x5ea21e?_0x480e9b(_0x534547,_0x53104c,_0x5082ee):_0x480e9b(_0x5082ee))||_0x5082ee);return _0x5ea21e&&_0x5082ee&&vs(_0x534547,_0x53104c,_0x5082ee),_0x5082ee;},Z=(_0x2b72cd,_0x40d89c)=>(_0x169ff4,_0x512163)=>_0x40d89c(_0x169ff4,_0x512163,_0x2b72cd);exports[_0x2f1425(0x1d4)]=class extends a[_0x2f1425(0x387)]{constructor(_0x42cefb,_0x1ad053,_0x56b8b1,_0x250d6e,_0xeccfd8,_0x272b77){const _0x4a46f4=_0x2f1425;super(),d(this,_0x4a46f4(0x31b),new v[(_0x4a46f4(0x21d))](void 0x0)),d(this,_0x4a46f4(0x491),this[_0x4a46f4(0x31b)][_0x4a46f4(0x2fd)]()),d(this,_0x4a46f4(0x3ae),null),d(this,_0x4a46f4(0x1a1),new Map()),d(this,_0x4a46f4(0x32c),new v[(_0x4a46f4(0x21d))]($['IDLE'])),d(this,_0x4a46f4(0x56d),this[_0x4a46f4(0x32c)][_0x4a46f4(0x2fd)]()),d(this,_0x4a46f4(0x1f5),!0x1),d(this,'_retryConnectingTimer'),d(this,_0x4a46f4(0x3ba),0x0),d(this,'_sendHeartbeatTimer'),d(this,'_timeoutTimer'),(this['_injector']=_0x42cefb,this['_localeService']=_0x1ad053,this[_0x4a46f4(0x1e2)]=_0x56b8b1,this[_0x4a46f4(0x562)]=_0x250d6e,this['_configService']=_0xeccfd8,this[_0x4a46f4(0x438)]=_0x272b77,this['_initEventListeners']());}get[_0x2f1425(0x392)](){const _0x585720=_0x2f1425;return this[_0x585720(0x31b)][_0x585720(0x267)]();}[_0x2f1425(0x4f5)](){const _0x395310=_0x2f1425;this['_listenToOfflineEvent'](),this[_0x395310(0x4f9)]();}[_0x2f1425(0x235)](){const _0xba836c=_0x2f1425;super[_0xba836c(0x235)](),this[_0xba836c(0x1a1)][_0xba836c(0x28e)](_0x267ba4=>_0x267ba4['dispose']()),this[_0xba836c(0x1a1)][_0xba836c(0x441)](),this['_status$'][_0xba836c(0x342)]();}async[_0x2f1425(0x1a6)](_0x5df5e4){const _0x151c77=_0x2f1425;if(this[_0x151c77(0x1a1)][_0x151c77(0x555)](_0x5df5e4))return this[_0x151c77(0x1a1)]['get'](_0x5df5e4);this[_0x151c77(0x56e)]();const _0x122a46=this[_0x151c77(0x4fa)][_0x151c77(0x49c)](exports[_0x151c77(0x4cb)],_0x5df5e4,this['_socket$'][_0x151c77(0x2fd)]());return this[_0x151c77(0x1a1)][_0x151c77(0x36e)](_0x5df5e4,_0x122a46),_0x122a46;}['closeSession'](_0x131b19){const _0x16b647=_0x2f1425;var _0x191396;const _0x5a1799=this['_sessions'][_0x16b647(0x41b)](_0x131b19);_0x5a1799&&(this[_0x16b647(0x1a1)][_0x16b647(0x28f)](_0x131b19),_0x5a1799['close']()),this['_sessions']['size']||(_0x191396=this[_0x16b647(0x392)])==null||_0x191396[_0x16b647(0x533)]();}[_0x2f1425(0x32e)](){const _0x498b98=_0x2f1425;this['_retryCount']=0x0,this[_0x498b98(0x356)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x498b98(0x356)]=null),this[_0x498b98(0x365)]();}[_0x2f1425(0x305)](){const _0x5a23c8=_0x2f1425;var _0x2d91be,_0x3db62a;const _0x1c2156=this['_configService']['getConfig'](ut),_0x82cee4=this[_0x5a23c8(0x1c3)][_0x5a23c8(0x480)](A),_0x366f9d=(_0x3db62a=(_0x2d91be=_0x82cee4==null?void 0x0:_0x82cee4[_0x5a23c8(0x423)])!=null?_0x2d91be:_0x1c2156)!=null?_0x3db62a:Xt,_0xb4d91=this[_0x5a23c8(0x438)][_0x5a23c8(0x424)](_0x366f9d);return this[_0x5a23c8(0x3ae)]=_0xb4d91,_0xb4d91;}['_tryEnsureSocket'](){const _0x80667f=_0x2f1425;var _0x570112,_0x835ef8;try{const _0x1bf728=(_0x835ef8=(_0x570112=this['_socket'])!=null?_0x570112:this[_0x80667f(0x3ae)])!=null?_0x835ef8:this['_createSocket']();if(_0x1bf728){const _0x2db1c2=_0x1bf728[_0x80667f(0x4b6)];_0x1bf728[_0x80667f(0x4b6)]=_0xc92b1b=>(this[_0x80667f(0x44b)](),_0x2db1c2[_0x80667f(0x21b)](_0x1bf728,[_0xc92b1b])),_0x1bf728[_0x80667f(0x427)][_0x80667f(0x3ca)](_0x4c6bd4=>this[_0x80667f(0x542)](_0x1bf728,_0x4c6bd4)),_0x1bf728[_0x80667f(0x428)][_0x80667f(0x53d)](E['take'](0x1))[_0x80667f(0x3ca)](_0x48633a=>this[_0x80667f(0x562)][_0x80667f(0x348)]('[CollaborationSessionService]:\x20socket\x20error',_0x48633a)),_0x1bf728['open$'][_0x80667f(0x53d)](E['take'](0x1))[_0x80667f(0x3ca)](()=>{const _0x5cc7d=_0x80667f;this[_0x5cc7d(0x447)](_0x1bf728);}),_0x1bf728[_0x80667f(0x1ec)][_0x80667f(0x53d)](E[_0x80667f(0x2e9)](0x1))[_0x80667f(0x3ca)](_0x534c76=>{const _0x447666=_0x80667f;this['_logService'][_0x447666(0x27e)](_0x447666(0x46b),'socket\x20close',_0x534c76),this[_0x447666(0x23e)]();});}}catch(_0x4f42dc){this[_0x80667f(0x562)][_0x80667f(0x348)](_0x4f42dc),this[_0x80667f(0x23e)]();}}[_0x2f1425(0x447)](_0x41a271){const _0x5f5572=_0x2f1425;this[_0x5f5572(0x562)]['debug'](_0x5f5572(0x46b),'socket\x20open.'),_0x41a271[_0x5f5572(0x4b6)]({'cmd':b['HELLO']}),this[_0x5f5572(0x44b)]();}['_listenToOfflineEvent'](){const _0x25eb2b=_0x2f1425;window[_0x25eb2b(0x21a)](_0x25eb2b(0x3c3),()=>this[_0x25eb2b(0x2e4)]());}[_0x2f1425(0x2e4)](){const _0x446d59=_0x2f1425;this['_socketReady']=!0x1,this['_candidateSocket']=null,this['_status$'][_0x446d59(0x500)]($[_0x446d59(0x3a1)]),this['_socket$'][_0x446d59(0x500)](null),this[_0x446d59(0x4ab)](),this[_0x446d59(0x372)]();}[_0x2f1425(0x23e)](){const _0x29af91=_0x2f1425;var _0x14b83f;this[_0x29af91(0x2e4)](),this[_0x29af91(0x3ba)]<((_0x14b83f=this[_0x29af91(0x1c3)]['getConfig'](vt))!=null?_0x14b83f:Jt)?(this[_0x29af91(0x1e2)][_0x29af91(0x1b9)]({'key':_0x29af91(0x184),'type':X[_0x29af91(0x4c9)][_0x29af91(0x501)],'content':this[_0x29af91(0x3ec)]['t']('session.will-retry')}),this[_0x29af91(0x365)]()):this['_messageService'][_0x29af91(0x1b9)]({'key':_0x29af91(0x184),'type':X[_0x29af91(0x4c9)][_0x29af91(0x1b1)],'content':this[_0x29af91(0x3ec)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x526082=_0x2f1425,_0x1102ab=()=>{const _0x2eb832=_0x4554;this[_0x2eb832(0x392)]||this[_0x2eb832(0x32e)]();},_0x50b81d=()=>{const _0x112301=_0x4554;this[_0x112301(0x392)]||document['visibilityState']==='hidden'||this[_0x112301(0x32e)]();};window[_0x526082(0x21a)](_0x526082(0x301),_0x1102ab),document['addEventListener'](_0x526082(0x55e),_0x50b81d);}[_0x2f1425(0x365)](){const _0x26ad96=_0x2f1425;var _0x2d101f;const _0x230cf0=this[_0x26ad96(0x3ba)],_0x2973f1=this[_0x26ad96(0x1c3)][_0x26ad96(0x480)](A),_0x378f12=_0x230cf0===0x0?0x0:((_0x2d101f=_0x2973f1==null?void 0x0:_0x2973f1[_0x26ad96(0x43c)])!=null?_0x2d101f:zt)*0x2**_0x230cf0;this[_0x26ad96(0x356)]=window[_0x26ad96(0x399)](()=>{const _0x2604aa=_0x26ad96;clearTimeout(this[_0x2604aa(0x356)]),this[_0x2604aa(0x356)]=null,this[_0x2604aa(0x56e)]();},_0x378f12),this[_0x26ad96(0x3ba)]+=0x1;}['_onMessage'](_0x1d962f,_0x2b8a5a){const _0x2595c2=_0x2f1425,{cmd:_0x2260b8}=_0x2b8a5a;_0x2260b8===b[_0x2595c2(0x343)]&&!this['_socketReady']&&(_0x1d962f[_0x2595c2(0x38b)]=_0x2b8a5a[_0x2595c2(0x2a5)][_0x2595c2(0x38b)],this[_0x2595c2(0x31b)][_0x2595c2(0x500)](_0x1d962f),this[_0x2595c2(0x32c)][_0x2595c2(0x500)]($[_0x2595c2(0x1cd)]),this[_0x2595c2(0x1f5)]=!0x0,this[_0x2595c2(0x3ae)]=null),_0x2260b8===b[_0x2595c2(0x197)]&&this[_0x2595c2(0x4ab)](),this[_0x2595c2(0x44b)]();}['_rescheduleHeartbeat'](){const _0xb2a405=_0x2f1425;var _0x4327fb;this[_0xb2a405(0x372)](),this[_0xb2a405(0x1d6)]=window[_0xb2a405(0x399)](()=>this[_0xb2a405(0x2a0)](),(_0x4327fb=this['_configService'][_0xb2a405(0x480)](dt))!=null?_0x4327fb:qt);}['_sendHeartbeat'](){const _0x3af2d2=_0x2f1425;this[_0x3af2d2(0x392)][_0x3af2d2(0x4b6)]({'cmd':b[_0x3af2d2(0x197)]}),this[_0x3af2d2(0x281)]();}['_waitForHeartbeatResponse'](){const _0x563120=_0x2f1425;var _0xb3c006;this[_0x563120(0x576)]=window[_0x563120(0x399)](()=>this[_0x563120(0x23e)](),(_0xb3c006=this['_configService']['getConfig'](Ve))!=null?_0xb3c006:St);}[_0x2f1425(0x372)](){const _0x5e2a58=_0x2f1425;this[_0x5e2a58(0x1d6)]!=null&&(clearTimeout(this[_0x5e2a58(0x1d6)]),this[_0x5e2a58(0x1d6)]=null);}[_0x2f1425(0x4ab)](){const _0x20155a=_0x2f1425;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x20155a(0x576)]),this[_0x20155a(0x576)]=null);}},exports[_0x2f1425(0x1d4)]=gs([Z(0x0,a['Inject'](a[_0x2f1425(0x450)])),Z(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),Z(0x2,N['IMessageService']),Z(0x3,a['ILogService']),Z(0x4,a[_0x2f1425(0x47d)]),Z(0x5,Fe)],exports[_0x2f1425(0x1d4)]);var ms=Object['defineProperty'],Is=Object[_0x2f1425(0x2ab)],ps=(_0xd4e5c4,_0x5d6bc2,_0xa756e2,_0x2cc511)=>{const _0x671483=_0x2f1425;for(var _0x3cf77c=_0x2cc511>0x1?void 0x0:_0x2cc511?Is(_0x5d6bc2,_0xa756e2):_0x5d6bc2,_0x42f138=_0xd4e5c4[_0x671483(0x38d)]-0x1,_0x4c226d;_0x42f138>=0x0;_0x42f138--)(_0x4c226d=_0xd4e5c4[_0x42f138])&&(_0x3cf77c=(_0x2cc511?_0x4c226d(_0x5d6bc2,_0xa756e2,_0x3cf77c):_0x4c226d(_0x3cf77c))||_0x3cf77c);return _0x2cc511&&_0x3cf77c&&ms(_0x5d6bc2,_0xa756e2,_0x3cf77c),_0x3cf77c;},De=(_0x16f3e0,_0x1c773f)=>(_0x2cfc05,_0xb4ce9b)=>_0x1c773f(_0x2cfc05,_0xb4ce9b,_0x16f3e0);let fe=class{constructor(_0x2ca568,_0x206d65,_0x2f3771){const _0x1e4104=_0x2f1425;this[_0x1e4104(0x4fa)]=_0x2ca568,this[_0x1e4104(0x3fd)]=_0x206d65,this[_0x1e4104(0x377)]=_0x2f3771;}[_0x2f1425(0x3f3)](_0x1c522d){const _0x1a8884=_0x2f1425;this[_0x1a8884(0x1bd)](_0x1c522d),this[_0x1a8884(0x25c)](_0x1c522d);}[_0x2f1425(0x304)](_0x7f1e85){const _0x2693d8=_0x2f1425,{unitID:_0x35df98}=_0x7f1e85,_0x57150c=this[_0x2693d8(0x377)]['getRenderById'](_0x35df98)[_0x2693d8(0x17e)](w['DocIMEInputManagerService']),{redoCache:_0x11043d}=_0x57150c['getUndoRedoMutationParamsCache']();if(_0x11043d[_0x2693d8(0x38d)]===0x0)return _0x7f1e85;let _0x15709c=a[_0x2693d8(0x494)]['deepClone'](_0x7f1e85[_0x2693d8(0x569)][0x0]);for(let _0x3eac60=0x0;_0x3eac60<_0x11043d[_0x2693d8(0x38d)];_0x3eac60++){const _0xbbe0ac={'id':_0x2693d8(0x4e5),'params':{..._0x11043d[_0x3eac60]}},_0x5790db=this[_0x2693d8(0x3fd)][_0x2693d8(0x4d8)](_0x15709c,_0xbbe0ac,!0x1);if(_[_0x2693d8(0x2d1)](_0x5790db))throw _0x5790db[_0x2693d8(0x348)];_0x15709c=_0x5790db['m1Prime'];}return{...a[_0x2693d8(0x494)][_0x2693d8(0x53b)](_0x7f1e85),'mutations':[_0x15709c]};}['_transformUndoRedoStack'](_0x1b7ae4){const _0x2312dd=_0x2f1425,{unitID:_0x128e5b}=_0x1b7ae4,_0x171222=this[_0x2312dd(0x377)][_0x2312dd(0x258)](_0x128e5b)[_0x2312dd(0x17e)](w[_0x2312dd(0x510)]),{undoCache:_0x115d4d,redoCache:_0x1d24d5}=_0x171222[_0x2312dd(0x1c8)]();if(_0x115d4d['length']===0x0||_0x1d24d5['length']===0x0)return;const _0x422568=[],_0x30d6a4=[];let _0x491a0c=a[_0x2312dd(0x494)][_0x2312dd(0x53b)](_0x1b7ae4[_0x2312dd(0x569)][0x0]),_0x210d85=a[_0x2312dd(0x494)][_0x2312dd(0x53b)](_0x1b7ae4[_0x2312dd(0x569)][0x0]);for(let _0xa350c9=_0x115d4d[_0x2312dd(0x38d)]-0x1;_0xa350c9>=0x0;_0xa350c9--){const _0x687436={'id':_0x2312dd(0x4e5),'params':{..._0x115d4d[_0xa350c9]}},_0x1af853={'id':_0x2312dd(0x4e5),'params':{..._0x1d24d5[_0xa350c9]}},_0x400e0a=this[_0x2312dd(0x3fd)][_0x2312dd(0x4d8)](_0x491a0c,_0x687436,!0x1),_0x4ab242=this[_0x2312dd(0x3fd)][_0x2312dd(0x4d8)](_0x210d85,_0x1af853,!0x1);if(_[_0x2312dd(0x2d1)](_0x400e0a))throw _0x400e0a[_0x2312dd(0x348)];if(_[_0x2312dd(0x2d1)](_0x4ab242))throw _0x4ab242[_0x2312dd(0x348)];_0x422568[_0x2312dd(0x558)](_0x400e0a[_0x2312dd(0x409)]['params']),_0x30d6a4[_0x2312dd(0x558)](_0x4ab242[_0x2312dd(0x409)][_0x2312dd(0x3d5)]),_0x491a0c=_0x400e0a['m1Prime'],_0x210d85=_0x4ab242[_0x2312dd(0x3aa)];}_0x171222[_0x2312dd(0x24c)]({'undoCache':_0x422568,'redoCache':_0x30d6a4});}['_transformPreviousActiveRange'](_0x4dbc1e){const _0x4d7cdb=_0x2f1425,{unitID:_0x4623ef}=_0x4dbc1e,_0x95fb2b=this[_0x4d7cdb(0x377)]['getRenderById'](_0x4623ef)['with'](w[_0x4d7cdb(0x510)]),_0x17500f=_0x95fb2b[_0x4d7cdb(0x419)]();if(_0x17500f==null)return;const _0x4a3c96=[{'id':_0x4d7cdb(0x4e5),'params':{'unitId':_0x4dbc1e['unitID'],'actions':null,'textRanges':[_0x17500f]}}],_0x3b41e4=this[_0x4d7cdb(0x3fd)][_0x4d7cdb(0x55d)](_0x4dbc1e,_0x4a3c96);if(!_[_0x4d7cdb(0x34c)](_0x3b41e4))throw _0x3b41e4[_0x4d7cdb(0x348)];const _0x561f8f=_0x3b41e4[_0x4d7cdb(0x409)][0x0][_0x4d7cdb(0x3d5)][_0x4d7cdb(0x48d)];Array[_0x4d7cdb(0x476)](_0x561f8f)&&_0x561f8f[_0x4d7cdb(0x38d)]&&_0x95fb2b[_0x4d7cdb(0x4b1)](_0x561f8f[0x0]);}};fe=ps([De(0x0,a['Inject'](a[_0x2f1425(0x450)])),De(0x1,_[_0x2f1425(0x298)]),De(0x2,R[_0x2f1425(0x456)])],fe);var Cs=Object[_0x2f1425(0x1cf)],Es=Object[_0x2f1425(0x2ab)],bs=(_0x432694,_0x5095af,_0x5a4bf6,_0x51f231)=>{const _0x39de15=_0x2f1425;for(var _0x8e40d6=_0x51f231>0x1?void 0x0:_0x51f231?Es(_0x5095af,_0x5a4bf6):_0x5095af,_0x362316=_0x432694[_0x39de15(0x38d)]-0x1,_0x5e38db;_0x362316>=0x0;_0x362316--)(_0x5e38db=_0x432694[_0x362316])&&(_0x8e40d6=(_0x51f231?_0x5e38db(_0x5095af,_0x5a4bf6,_0x8e40d6):_0x5e38db(_0x8e40d6))||_0x8e40d6);return _0x51f231&&_0x8e40d6&&Cs(_0x5095af,_0x5a4bf6,_0x8e40d6),_0x8e40d6;},ae=(_0xc3a8af,_0xf20cd4)=>(_0x294a07,_0x15ff4f)=>_0xf20cd4(_0x294a07,_0x15ff4f,_0xc3a8af);exports['LocalCacheService']=class extends a[_0x2f1425(0x387)]{constructor(_0x6ad988,_0x53940a,_0x1a4390,_0x372167,_0x5775df){const _0x2ccd5e=_0x2f1425;super(),d(this,_0x2ccd5e(0x2a4),new Map()),d(this,_0x2ccd5e(0x329),new Map()),d(this,'_disabled',!0x1),(this[_0x2ccd5e(0x1c3)]=_0x6ad988,this[_0x2ccd5e(0x2a3)]=_0x53940a,this[_0x2ccd5e(0x296)]=_0x1a4390,this[_0x2ccd5e(0x3ec)]=_0x372167,this[_0x2ccd5e(0x341)]=_0x5775df,this[_0x2ccd5e(0x345)]());}['disableLocalCache'](){const _0x212ab9=_0x2f1425;this[_0x212ab9(0x2b2)]=!0x0;}['enableLocalCache'](){const _0x549188=_0x2f1425;this[_0x549188(0x2b2)]=!0x1;}[_0x2f1425(0x235)](){const _0xbbef18=_0x2f1425;this['exhaustSavingTask']()[_0xbbef18(0x313)](()=>super[_0xbbef18(0x235)]());}async[_0x2f1425(0x4b5)](_0x1722a1){const _0xa4602e=_0x2f1425;return this[_0xa4602e(0x2b2)]?null:this['_localStorageService'][_0xa4602e(0x264)](Qe(_0x1722a1));}async[_0x2f1425(0x49d)](_0x2d1ae1,_0x2835d4){const _0x2ace98=_0x2f1425;return!!this[_0x2ace98(0x2a3)][_0x2ace98(0x3e9)](_0x2d1ae1,_0x2835d4);}['updateOfflineData'](_0x1cc174,_0x1d0694,_0xf61798,_0x4fd0d2){const _0x26eedc=_0x2f1425,_0x12d943=this[_0x26eedc(0x341)][_0x26eedc(0x3f7)](_0x1cc174);this[_0x26eedc(0x2a4)][_0x26eedc(0x36e)](_0x1cc174,{'unitID':_0x1cc174,'type':_0x1d0694,'awaitingChangeset':_0xf61798,'mutations':_0x4fd0d2,'rev':_0x12d943}),this[_0x26eedc(0x329)][_0x26eedc(0x555)](_0x1cc174)||this[_0x26eedc(0x4e1)](_0x1cc174);}[_0x2f1425(0x4e1)](_0x1fef65){const _0x4ec11d=_0x2f1425,_0x2d3218=this[_0x4ec11d(0x4c4)]();_0x2d3218===0x0?this[_0x4ec11d(0x49f)](_0x1fef65):this['_saveTaskMap'][_0x4ec11d(0x36e)](_0x1fef65,setTimeout(()=>this[_0x4ec11d(0x49f)](_0x1fef65),_0x2d3218));}[_0x2f1425(0x4c4)](){const _0x72b59b=_0x2f1425;var _0x49baa6;return(_0x49baa6=this[_0x72b59b(0x1c3)][_0x72b59b(0x480)](ft))!=null?_0x49baa6:Zt;}['_saveCache'](_0x42dfa5){const _0x1fc27f=_0x2f1425,_0x11226f=this[_0x1fc27f(0x329)][_0x1fc27f(0x41b)](_0x42dfa5);return _0x11226f!==void 0x0&&window['clearTimeout'](_0x11226f),this[_0x1fc27f(0x2a3)][_0x1fc27f(0x3e9)](Qe(_0x42dfa5),this['_cachedData'][_0x1fc27f(0x41b)](_0x42dfa5))['then'](()=>this['_saveTaskMap'][_0x1fc27f(0x28f)](_0x42dfa5));}async[_0x2f1425(0x306)](){const _0x3eb574=_0x2f1425,_0x5b7ea0=[];this['_saveTaskMap'][_0x3eb574(0x28e)]((_0x57615f,_0x519f46)=>{const _0x2c8b40=_0x3eb574;window[_0x2c8b40(0x2ac)](_0x57615f),_0x5b7ea0['push'](this[_0x2c8b40(0x49f)](_0x519f46)[_0x2c8b40(0x313)](()=>{const _0x29afa6=_0x2c8b40;this[_0x29afa6(0x329)][_0x29afa6(0x28f)](_0x519f46);}));}),await Promise[_0x3eb574(0x3b0)](_0x5b7ea0);}[_0x2f1425(0x345)](){const _0x415389=_0x2f1425;this[_0x415389(0x425)](this[_0x415389(0x296)][_0x415389(0x192)](()=>{const _0x2bfc23=_0x415389;if(this[_0x2bfc23(0x329)][_0x2bfc23(0x362)])return this['_localeService']['t'](_0x2bfc23(0x1e3));}));}},exports['LocalCacheService']=bs([ae(0x0,a['IConfigService']),ae(0x1,a[_0x2f1425(0x385)]),ae(0x2,N[_0x2f1425(0x394)]),ae(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),ae(0x4,a['Inject'](_[_0x2f1425(0x55c)]))],exports['LocalCacheService']);function Qe(_0x58f270){return'unit-cache-'+_0x58f270;}var Ts=Object['defineProperty'],Rs=Object[_0x2f1425(0x2ab)],Os=(_0x44be6a,_0x2899bc,_0x395dc3,_0x28f4b6)=>{const _0x1f0b04=_0x2f1425;for(var _0x5c094b=_0x28f4b6>0x1?void 0x0:_0x28f4b6?Rs(_0x2899bc,_0x395dc3):_0x2899bc,_0x28d61c=_0x44be6a[_0x1f0b04(0x38d)]-0x1,_0x20e852;_0x28d61c>=0x0;_0x28d61c--)(_0x20e852=_0x44be6a[_0x28d61c])&&(_0x5c094b=(_0x28f4b6?_0x20e852(_0x2899bc,_0x395dc3,_0x5c094b):_0x20e852(_0x5c094b))||_0x5c094b);return _0x28f4b6&&_0x5c094b&&Ts(_0x2899bc,_0x395dc3,_0x5c094b),_0x5c094b;},ye=(_0x5c1beb,_0x43c45f)=>(_0xdc9d5a,_0x46484e)=>_0x43c45f(_0xdc9d5a,_0x46484e,_0x5c1beb);function Ds(_0x580a01){const _0x3c728b=_0x2f1425,{unitID:_0x5d92f2,mutations:_0x534352}=_0x580a01;return{'unitId':_0x5d92f2,'subUnitId':_0x534352[0x0]['params'][_0x3c728b(0x2e5)]};}let ge=class{constructor(_0x25f170,_0x357d58,_0x20c914){const _0x475018=_0x2f1425;this['_injector']=_0x25f170,this[_0x475018(0x3fd)]=_0x357d58,this[_0x475018(0x323)]=_0x20c914;}['transformSelections'](_0x663ad8){const _0x4c795c=_0x2f1425;var _0x317857,_0x4754f2,_0x31a857,_0x55d78c;const _0x2740a3=this['_injector']['get'](C['SheetsSelectionsService']),{unitId:_0x5c4f3d,subUnitId:_0xaad532}=Ds(_0x663ad8),_0x35082c=_0x2740a3[_0x4c795c(0x1de)](_0x5c4f3d)['getCurrentSelections'](),_0x240d40=(_0x4754f2=(_0x317857=this['_instanceService'][_0x4c795c(0x33e)](_0x5c4f3d))==null?void 0x0:_0x317857[_0x4c795c(0x51e)]())==null?void 0x0:_0x4754f2[_0x4c795c(0x1be)]();if(_0x35082c[_0x4c795c(0x38d)]===0x0||!_0x5c4f3d||!_0xaad532)return;const _0x639dbb=[{'id':C[_0x4c795c(0x183)]['id'],'params':{'unitId':_0x5c4f3d,'subUnitId':_0x240d40,'selections':a[_0x4c795c(0x494)][_0x4c795c(0x53b)](_0x35082c)}}],_0x3895eb=this[_0x4c795c(0x3fd)][_0x4c795c(0x55d)](_0x663ad8,_0x639dbb);if(!_[_0x4c795c(0x34c)](_0x3895eb))throw _0x3895eb[_0x4c795c(0x348)];const _0x416272=(_0x55d78c=(_0x31a857=_0x3895eb[_0x4c795c(0x409)][0x0])==null?void 0x0:_0x31a857['params'])==null?void 0x0:_0x55d78c[_0x4c795c(0x262)];Array[_0x4c795c(0x476)](_0x416272)&&_0x416272[_0x4c795c(0x38d)]&&this[_0x4c795c(0x4fa)][_0x4c795c(0x41b)](a[_0x4c795c(0x477)])[_0x4c795c(0x373)](C[_0x4c795c(0x183)]['id'],{'unitId':_0x5c4f3d,'subUnitId':_0x240d40,'selections':_0x416272});}};ge=Os([ye(0x0,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),ye(0x1,_[_0x2f1425(0x298)]),ye(0x2,a['IUniverInstanceService'])],ge);const be=a[_0x2f1425(0x232)](_0x2f1425(0x1c6));var bt=(_0x15f5f3=>(_0x15f5f3[_0x15f5f3[_0x2f1425(0x271)]=0x0]=_0x2f1425(0x271),_0x15f5f3[_0x15f5f3[_0x2f1425(0x3c9)]=0x1]=_0x2f1425(0x3c9),_0x15f5f3))(bt||{});const et=0x7530,tt=_0x2f1425(0x327);class ys extends a[_0x2f1425(0x387)]{constructor(){const _0x22b724=_0x2f1425;super(),d(this,_0x22b724(0x50a),a[_0x22b724(0x494)]['generateRandomId']()),d(this,_0x22b724(0x1da),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x22b724(0x1c0),null),d(this,_0x22b724(0x374),new Map()),d(this,_0x22b724(0x3eb),new Map()),this[_0x22b724(0x34f)]();}[_0x2f1425(0x235)](){const _0x1d8af4=_0x2f1425;super['dispose'](),this[_0x1d8af4(0x374)][_0x1d8af4(0x28e)]((_0x543464,_0x3fd41e)=>this[_0x1d8af4(0x47c)](_0x3fd41e)),this['_heartbeatTimer']&&window[_0x1d8af4(0x19e)](this[_0x1d8af4(0x1c0)]);}[_0x2f1425(0x32a)](_0x17ee4e){const _0x10eede=_0x2f1425;return this[_0x10eede(0x3ee)](_0x17ee4e)[_0x10eede(0x53d)](v[_0x10eede(0x1d7)]());}[_0x2f1425(0x17b)](_0x385e58){const _0x246c51=_0x2f1425;this['_selfUnitIDs']['size']===0x0&&this[_0x246c51(0x1d1)](),this[_0x246c51(0x1da)][_0x246c51(0x1fd)](_0x385e58),this[_0x246c51(0x30e)]({'type':0x0,'memberID':this[_0x246c51(0x50a)],'unitIDs':[_0x385e58],'isForwarded':!0x1});}[_0x2f1425(0x318)](_0x5ecddb){const _0x2a01d3=_0x2f1425;this[_0x2a01d3(0x1da)]['delete'](_0x5ecddb),this[_0x2a01d3(0x1da)]['size']===0x0&&this[_0x2a01d3(0x1c0)]&&window[_0x2a01d3(0x19e)](this[_0x2a01d3(0x1c0)]);}[_0x2f1425(0x34f)](){const _0x4b8f21=_0x2f1425;this['disposeWithMe'](a[_0x4b8f21(0x2df)](v['fromEvent'](window,'storage')[_0x4b8f21(0x3ca)](_0x39373c=>{const _0x5ddfc2=_0x4b8f21;if(_0x39373c[_0x5ddfc2(0x23f)]!==tt||!_0x39373c['newValue'])return;const _0x5ade85=JSON[_0x5ddfc2(0x4de)](_0x39373c['newValue']);this['_handleEvent'](_0x5ade85);}))),window[_0x4b8f21(0x21a)](_0x4b8f21(0x57a),()=>this[_0x4b8f21(0x30e)]({'type':0x1,'memberID':this[_0x4b8f21(0x50a)],'unitIDs':Array['from'](this[_0x4b8f21(0x1da)])}));}[_0x2f1425(0x470)](_0x3818ea){const _0x266095=_0x2f1425;switch(_0x3818ea[_0x266095(0x3c5)]){case 0x0:this[_0x266095(0x460)](_0x3818ea);break;case 0x1:this[_0x266095(0x2f4)](_0x3818ea);break;case 0x2:this['_handleHeartbeatEvent'](_0x3818ea);break;}}[_0x2f1425(0x460)](_0x593df0){const _0x14aa9b=_0x2f1425,{unitIDs:_0x2a5451,memberID:_0x4b9e2a,isForwarded:_0x2f140c}=_0x593df0;_0x2a5451[_0x14aa9b(0x28e)](_0x1022d5=>{const _0x39736b=_0x14aa9b;if(!_0x2f140c&&this[_0x39736b(0x40c)][_0x39736b(0x555)](_0x1022d5)&&this[_0x39736b(0x3ee)](_0x1022d5)[_0x39736b(0x500)](0x1),!this[_0x39736b(0x40c)][_0x39736b(0x555)](_0x1022d5)||!this[_0x39736b(0x40c)][_0x39736b(0x41b)](_0x1022d5)['has'](_0x4b9e2a)){const _0x36ef42=this['_unitOnClients'][_0x39736b(0x41b)](_0x1022d5)||new Set();_0x36ef42[_0x39736b(0x1fd)](_0x4b9e2a),this[_0x39736b(0x40c)][_0x39736b(0x36e)](_0x1022d5,_0x36ef42),this[_0x39736b(0x34a)](_0x4b9e2a);}}),_0x2f140c||this['_send']({'type':0x0,'memberID':this[_0x14aa9b(0x50a)],'unitIDs':[...this[_0x14aa9b(0x1da)]],'isForwarded':!0x0});}[_0x2f1425(0x34a)](_0x57828a){const _0x42cd4a=_0x2f1425;this[_0x42cd4a(0x47c)](_0x57828a);const _0x2e71c5=window[_0x42cd4a(0x399)](()=>{const _0x4ff9f8=_0x42cd4a;this[_0x4ff9f8(0x40c)][_0x4ff9f8(0x28e)](_0x29f363=>{const _0x451d25=_0x4ff9f8;_0x29f363[_0x451d25(0x28f)](_0x57828a);});},et*0x2);this[_0x42cd4a(0x374)][_0x42cd4a(0x36e)](_0x57828a,_0x2e71c5);}[_0x2f1425(0x47c)](_0x5493d8){const _0x238c8c=_0x2f1425;if(this[_0x238c8c(0x374)]['has'](_0x5493d8)){const _0x213c11=this[_0x238c8c(0x374)]['get'](_0x5493d8);_0x213c11&&window[_0x238c8c(0x2ac)](_0x213c11),this[_0x238c8c(0x374)][_0x238c8c(0x36e)](_0x5493d8,null);}}[_0x2f1425(0x2f4)](_0x14646d){const {memberID:_0x5c576a,unitIDs:_0x193dd2}=_0x14646d;_0x193dd2['forEach'](_0x508cc4=>{const _0x557bc2=_0x4554;var _0xeb148d;const _0x4a7918=this[_0x557bc2(0x40c)][_0x557bc2(0x41b)](_0x508cc4);_0x4a7918&&(_0x4a7918[_0x557bc2(0x28f)](_0x5c576a),(_0xeb148d=this['_ensureSubject'](_0x508cc4))==null||_0xeb148d[_0x557bc2(0x500)](_0x4a7918[_0x557bc2(0x362)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x5c576a);}[_0x2f1425(0x25a)](_0x369765){const _0x40db55=_0x2f1425;this[_0x40db55(0x34a)](_0x369765[_0x40db55(0x38b)]);}['_send'](_0x35d9b6){const _0x44066d=_0x2f1425;localStorage[_0x44066d(0x3e9)](tt,JSON['stringify'](_0x35d9b6));}[_0x2f1425(0x1d1)](){const _0x21badd=_0x2f1425;this[_0x21badd(0x1c0)]=window['setInterval'](()=>{const _0x18b222=_0x21badd;this[_0x18b222(0x30e)]({'type':0x2,'memberID':this['_id']});},et);}[_0x2f1425(0x3ee)](_0x1e796b){const _0x5b15d4=_0x2f1425;return this[_0x5b15d4(0x3eb)][_0x5b15d4(0x555)](_0x1e796b)||this[_0x5b15d4(0x3eb)][_0x5b15d4(0x36e)](_0x1e796b,new v[(_0x5b15d4(0x21d))](0x0)),this[_0x5b15d4(0x3eb)]['get'](_0x1e796b);}}function Tt(_0x2244f4){let _0x439e3d='';for(const _0x3b0a76 of _0x2244f4){const {startOffset:_0x53faf9,endOffset:_0x2ed3c6,isActive:_0x310a0b}=_0x3b0a76;_0x439e3d['length']&&(_0x439e3d+=','),_0x439e3d+=_0x53faf9+':'+_0x2ed3c6+':'+(_0x310a0b?'1':'0');}return _0x439e3d;}function _0x4554(_0x1ac0f8,_0xc0121b){const _0x995da7=_0x995d();return _0x4554=function(_0x45546c,_0x38470e){_0x45546c=_0x45546c-0x170;let _0x4a2f92=_0x995da7[_0x45546c];return _0x4a2f92;},_0x4554(_0x1ac0f8,_0xc0121b);}function Us(_0x198a41){const _0x504915=_0x2f1425,_0x1baa5a=_0x198a41['split'](','),_0x5196be=[];for(const _0x44959f of _0x1baa5a){const [_0x30ecf5,_0x95ec77,_0x332718]=_0x44959f[_0x504915(0x34e)](':');_0x5196be[_0x504915(0x52d)]({'startOffset':Number(_0x30ecf5),'endOffset':Number(_0x95ec77),'collapsed':_0x30ecf5===_0x95ec77,'isActive':_0x332718==='1'});}return _0x5196be['some'](_0x571512=>_0x571512['isActive'])||(_0x5196be[0x0][_0x504915(0x330)]=!0x0),_0x5196be;}class Ye extends a[_0x2f1425(0x25b)]{constructor(){const _0x2c7b1d=_0x2f1425;super(...arguments),d(this,_0x2c7b1d(0x38f),new v[(_0x2c7b1d(0x21d))](null)),d(this,'collabCursorState$',this[_0x2c7b1d(0x38f)][_0x2c7b1d(0x2fd)]());}[_0x2f1425(0x2d3)](_0x12d37b){const _0x112652=_0x2f1425,{unitID:_0x15d4ae,memberID:_0x12fe2e,textRanges:_0x37b073}=_0x12d37b,_0x3440a1=Tt(_0x37b073),_0x15bc79={'unitID':_0x15d4ae,'memberID':_0x12fe2e,'selection':_0x3440a1};this['_collabCursorState$'][_0x112652(0x500)](_0x15bc79);}}var Ps=Object['defineProperty'],ws=Object[_0x2f1425(0x2ab)],Ms=(_0x3f962e,_0x141360,_0x648057,_0x3b0d59)=>{const _0x523836=_0x2f1425;for(var _0x60e03=_0x3b0d59>0x1?void 0x0:_0x3b0d59?ws(_0x141360,_0x648057):_0x141360,_0x246711=_0x3f962e[_0x523836(0x38d)]-0x1,_0x46f46d;_0x246711>=0x0;_0x246711--)(_0x46f46d=_0x3f962e[_0x246711])&&(_0x60e03=(_0x3b0d59?_0x46f46d(_0x141360,_0x648057,_0x60e03):_0x46f46d(_0x60e03))||_0x60e03);return _0x3b0d59&&_0x60e03&&Ps(_0x141360,_0x648057,_0x60e03),_0x60e03;},st=(_0x169974,_0x8bf37)=>(_0x3116b9,_0x1cdb40)=>_0x8bf37(_0x3116b9,_0x1cdb40,_0x169974);let me=class{constructor(_0x28b06c,_0x5bc902){const _0x3b0cdc=_0x2f1425;this[_0x3b0cdc(0x4fa)]=_0x28b06c,this['_transformService']=_0x5bc902;}['transformSelections'](_0x4c4714){const _0x1363de=_0x2f1425;var _0x2ecbca;const _0xfde62e=this[_0x1363de(0x4fa)][_0x1363de(0x41b)](V['DocSelectionManagerService']),_0x508138=(_0x2ecbca=_0xfde62e[_0x1363de(0x490)]())!=null?_0x2ecbca:[];if(_0x508138[_0x1363de(0x38d)]===0x0)return;const _0x1ebb28=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4c4714[_0x1363de(0x437)],'actions':null,'textRanges':_0x508138}}],_0x210b7e=this[_0x1363de(0x3fd)][_0x1363de(0x55d)](_0x4c4714,_0x1ebb28);if(!_[_0x1363de(0x34c)](_0x210b7e))throw _0x210b7e[_0x1363de(0x348)];const _0x5d771a=_0x210b7e[_0x1363de(0x409)][0x0][_0x1363de(0x3d5)]['textRanges'];Array[_0x1363de(0x476)](_0x5d771a)&&_0x5d771a['length']&&_0xfde62e['replaceTextRanges'](_0x5d771a,!0x1);}};me=Ms([st(0x0,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),st(0x1,_[_0x2f1425(0x298)])],me);const Ns=new Set([C['InsertSheetMutation']['id']]);function it(_0x363257,_0x29c297,_0xa9ecd6,_0x3f10f5,_0x594dc0){const _0xfe705a=_0x2f1425;var _0x49bd33,_0x2ec130,_0x108d0e,_0x980529;const _0x10ad09=[];for(const _0x2a36cd of _0x363257)if(Ns['has'](_0x2a36cd['id'])){if(_0x10ad09[_0xfe705a(0x38d)]>0x0)break;_0x10ad09[_0xfe705a(0x52d)](_0x2a36cd);break;}else _0x10ad09[_0xfe705a(0x52d)](_0x2a36cd);const _0x4a0963=(_0x2ec130=(_0x49bd33=_0x594dc0[_0xfe705a(0x187)]())==null?void 0x0:_0x49bd33['userID'])!=null?_0x2ec130:_0xfe705a(0x2ff),_0x105dd3=(_0x980529=(_0x108d0e=_0x594dc0[_0xfe705a(0x187)]())==null?void 0x0:_0x108d0e['memberID'])!=null?_0x980529:_0xfe705a(0x2ff);return{'changeset':{'unitID':_0x29c297,'type':_[_0xfe705a(0x4e2)](_0xa9ecd6[_0xfe705a(0x2bc)](_0x29c297)),'baseRev':_0x3f10f5[_0xfe705a(0x3f7)](_0x29c297),'revision':0x0,'userID':_0x4a0963,'memberID':_0x105dd3,'mutations':_0x10ad09},'pendingMutations':_0x363257[_0xfe705a(0x2ae)](_0x10ad09['length'])};}function As(_0x170fc0,_0x5e188b,_0x2488d9,_0x3be32b,_0x52940d){const _0x520384=_0x2f1425;var _0xd031ba,_0x45b1c1,_0x4e8a7a,_0x5f331f;const _0x5ac82f=[_0x170fc0['reduce']((_0x5e013a,_0xae0439)=>{const _0x240927=_0x4554;var _0x342c71;const {id:_0x51fabb}=_0x5e013a,{id:_0x2043e2,type:_0x4b2f56}=_0xae0439,_0x1ba7ca=(_0x342c71=_0x5e013a[_0x240927(0x3d5)])!=null?_0x342c71:{'actions':null},_0x37b835=_0xae0439['params'];if(_0x51fabb&&_0x51fabb!==_0x2043e2)throw new Error(_0x240927(0x3e1)+_0x51fabb+_0x240927(0x4ba)+_0x2043e2+'.');return{..._0x5e013a,'id':_0x2043e2,'type':_0x4b2f56,'params':{'unitId':_0x37b835[_0x240927(0x406)],'textRanges':_0x37b835[_0x240927(0x48d)],'actions':a[_0x240927(0x498)][_0x240927(0x39f)](_0x1ba7ca[_0x240927(0x2dc)],_0x37b835[_0x240927(0x2dc)])}};},{})],_0x89db3b=(_0x45b1c1=(_0xd031ba=_0x52940d[_0x520384(0x187)]())==null?void 0x0:_0xd031ba['userID'])!=null?_0x45b1c1:_0x520384(0x2ff),_0x412f62=(_0x5f331f=(_0x4e8a7a=_0x52940d['getCurrentUser']())==null?void 0x0:_0x4e8a7a[_0x520384(0x38b)])!=null?_0x5f331f:_0x520384(0x2ff);return{'changeset':{'unitID':_0x5e188b,'type':_[_0x520384(0x4e2)](_0x2488d9[_0x520384(0x2bc)](_0x5e188b)),'baseRev':_0x3be32b['getCurrentRevOfUnit'](_0x5e188b),'revision':0x0,'userID':_0x89db3b,'memberID':_0x412f62,'mutations':_0x5ac82f},'pendingMutations':[]};}const Ls={'id':C[_0x2f1425(0x2f1)]['id'],'type':a[_0x2f1425(0x3bf)]['MUTATION'],'params':{}};var js=Object[_0x2f1425(0x1cf)],$s=Object['getOwnPropertyDescriptor'],z=(_0x710e2e,_0x51edce,_0x2c34bc,_0x9aa5ff)=>{const _0x366292=_0x2f1425;for(var _0x1297ab=_0x9aa5ff>0x1?void 0x0:_0x9aa5ff?$s(_0x51edce,_0x2c34bc):_0x51edce,_0x3dbd8c=_0x710e2e[_0x366292(0x38d)]-0x1,_0x256a2d;_0x3dbd8c>=0x0;_0x3dbd8c--)(_0x256a2d=_0x710e2e[_0x3dbd8c])&&(_0x1297ab=(_0x9aa5ff?_0x256a2d(_0x51edce,_0x2c34bc,_0x1297ab):_0x256a2d(_0x1297ab))||_0x1297ab);return _0x9aa5ff&&_0x1297ab&&js(_0x51edce,_0x2c34bc,_0x1297ab),_0x1297ab;},g=(_0x37bc63,_0x149882)=>(_0x4cbcf2,_0x4ad1ea)=>_0x149882(_0x4cbcf2,_0x4ad1ea,_0x37bc63),y=(_0x1b3834=>(_0x1b3834[_0x2f1425(0x35a)]='not_collab',_0x1b3834[_0x2f1425(0x324)]=_0x2f1425(0x46e),_0x1b3834[_0x2f1425(0x400)]=_0x2f1425(0x1b2),_0x1b3834['AWAITING']='awaiting',_0x1b3834[_0x2f1425(0x391)]=_0x2f1425(0x567),_0x1b3834['FETCH_MISS']=_0x2f1425(0x334),_0x1b3834['CONFLICT']=_0x2f1425(0x299),_0x1b3834[_0x2f1425(0x3a1)]=_0x2f1425(0x3c3),_0x1b3834))(y||{});class J{constructor(_0x179a26,_0x72378a,_0x575cbc,_0x4d4e05,_0x3de0b7,_0x3f8122,_0x39e0c8,_0x4569a2,_0x37501d){const _0x3fbd26=_0x2f1425;d(this,_0x3fbd26(0x42c),null),d(this,_0x3fbd26(0x1cc),[]),(this[_0x3fbd26(0x437)]=_0x179a26,this[_0x3fbd26(0x3c5)]=_0x72378a,this[_0x3fbd26(0x4c3)]=_0x3de0b7,this['_commandService']=_0x3f8122,this[_0x3fbd26(0x3d8)]=_0x39e0c8,this[_0x3fbd26(0x341)]=_0x4569a2,this['_localCacheService']=_0x37501d,this['_awaitingChangeset']=_0x575cbc,this['_pendingMutations']=_0x4d4e05);}[_0x2f1425(0x312)](_0x301115){const _0x7ae08b=_0x2f1425,_0xc9312e=this[_0x7ae08b(0x341)][_0x7ae08b(0x3f7)](this['unitID']);return _0x301115['revision']>_0xc9312e+0x1?(this[_0x7ae08b(0x4c3)][_0x7ae08b(0x4f3)]({'from':_0xc9312e,'to':_0x301115[_0x7ae08b(0x2c8)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x380efd){const _0x3a9496=_0x2f1425;this['_undoRedoService']['transformUndoRedo'](this[_0x3a9496(0x437)],_0x380efd);}[_0x2f1425(0x3d0)](_0x4fab80){const _0x2b2cd2=_0x2f1425;var _0x44ab67,_0x32e042;(_0x32e042=(_0x44ab67=this['_handler'])[_0x2b2cd2(0x1d2)])==null||_0x32e042[_0x2b2cd2(0x55f)](_0x44ab67,_0x4fab80);}['_transformIMECache'](_0xea0a25){const _0x31f1cd=_0x2f1425;var _0x5523d9,_0x4bbe39;return(_0x4bbe39=(_0x5523d9=this['_handler'])['onTransformIME'])==null?void 0x0:_0x4bbe39[_0x31f1cd(0x55f)](_0x5523d9,_0xea0a25);}[_0x2f1425(0x366)](_0x595426){const _0x40f6fd=_0x2f1425;var _0xb97d4a,_0x4a97e6,_0x5d4372;return(_0x5d4372=(_0x4a97e6=(_0xb97d4a=this[_0x40f6fd(0x4c3)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4a97e6[_0x40f6fd(0x55f)](_0xb97d4a,_0x595426))!=null?_0x5d4372:_0x595426;}[_0x2f1425(0x22b)](_0x52395a){const _0x322c67=_0x2f1425;var _0x24b018,_0x1e4b25;if(this[_0x322c67(0x3c5)]===j[_0x322c67(0x3df)]){const {unitID:_0x873335,mutations:_0x4c939e,memberID:_0x4d037b}=_0x52395a,_0x38761c=_0x4c939e[0x0][_0x322c67(0x3d5)][_0x322c67(0x48d)];Array[_0x322c67(0x476)](_0x38761c)&&_0x38761c[_0x322c67(0x38d)]>0x0&&((_0x1e4b25=(_0x24b018=this[_0x322c67(0x4c3)])['onSyncEditingCollabCursor'])==null||_0x1e4b25[_0x322c67(0x55f)](_0x24b018,{'unitID':_0x873335,'memberID':_0x4d037b,'textRanges':_0x38761c}));}}['_updateLocalCache'](){const _0x46591c=_0x2f1425;this[_0x46591c(0x28a)][_0x46591c(0x202)](this['unitID'],this[_0x46591c(0x3c5)],this[_0x46591c(0x42c)],this[_0x46591c(0x1cc)]);}['_getCurrentRevision'](){const _0x373f61=_0x2f1425;return this[_0x373f61(0x341)][_0x373f61(0x3f7)](this[_0x373f61(0x437)]);}[_0x2f1425(0x1c5)](){const _0x4e85d2=_0x2f1425;this[_0x4e85d2(0x341)][_0x4e85d2(0x44e)](this['unitID']);}[_0x2f1425(0x1e4)](_0x352623){const _0x188df1=_0x2f1425;var _0x5cd7f7;const _0x5dce26=this[_0x188df1(0x366)](_0x352623),_0x2a4378=a[_0x188df1(0x2db)](_0x5dce26[_0x188df1(0x569)],this[_0x188df1(0x4b2)],{'fromCollab':!0x0});if(!_0x2a4378['result'])throw _0x2a4378[_0x188df1(0x348)]instanceof Error?_0x2a4378[_0x188df1(0x348)]:new Error((_0x5cd7f7=_0x2a4378[_0x188df1(0x348)])!=null?_0x5cd7f7:_0x188df1(0x46d));this[_0x188df1(0x233)](_0x5dce26),this['_transformUndoredo'](_0x352623),this[_0x188df1(0x3d0)](_0x5dce26),this[_0x188df1(0x22b)](_0x5dce26),this['_incrementRevisionNumber']();}}let se=class extends J{constructor(_0x3c9020,_0x494e94,_0x109adf,_0x2575dd,_0x55553f,_0x2381fa,_0x7e8b1b,_0x4c4182,_0xda63cf,_0x5e9a20){const _0x16b3d2=_0x2f1425;super(_0x3c9020,_0x494e94,null,[],_0x109adf,_0x4c4182,_0x7e8b1b,_0x2575dd,_0x55553f),d(this,_0x16b3d2(0x1b5),'synced'),(this['_injector']=_0x2381fa,this[_0x16b3d2(0x562)]=_0xda63cf,this[_0x16b3d2(0x3fd)]=_0x5e9a20);}['appendMutation'](_0x3889f1){const _0x1f900d=_0x2f1425,_0x2e0a7e=this['_injector'][_0x1f900d(0x49c)](x,this[_0x1f900d(0x437)],this[_0x1f900d(0x3c5)],[_0x3889f1],this[_0x1f900d(0x4c3)]);return _0x2e0a7e[_0x1f900d(0x3b9)](),_0x2e0a7e[_0x1f900d(0x43d)](),_0x2e0a7e;}['onRemoteChangeset'](_0x2b9151){const _0x1bd98b=_0x2f1425;if(this[_0x1bd98b(0x312)](_0x2b9151))return this['_injector'][_0x1bd98b(0x49c)](H,this[_0x1bd98b(0x437)],this[_0x1bd98b(0x3c5)],null,[],null,[_0x2b9151],this[_0x1bd98b(0x4c3)]);try{const _0x3befad=this[_0x1bd98b(0x3fd)][_0x1bd98b(0x55d)](_0x2b9151,[Ls]);if(_[_0x1bd98b(0x34c)](_0x3befad)){const {c1Prime:_0xfca89a}=_0x3befad;return this[_0x1bd98b(0x1e4)](_0xfca89a),this;}throw _0x3befad[_0x1bd98b(0x348)];}catch(_0x527297){return this[_0x1bd98b(0x562)][_0x1bd98b(0x348)](_0x527297),this[_0x1bd98b(0x415)](!0x1);}}['_onConflict'](_0x17f19c){const _0x2722bc=_0x2f1425;return this[_0x2722bc(0x4fa)][_0x2722bc(0x49c)](F,this[_0x2722bc(0x437)],this['type'],null,[],this['_handler'],_0x17f19c);}[_0x2f1425(0x417)](){const _0x15a088=_0x2f1425;throw new Error(_0x15a088(0x364));}[_0x2f1425(0x471)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x2f1425(0x316)](){const _0x2c1021=_0x2f1425;return this['_injector'][_0x2c1021(0x49c)](G,this[_0x2c1021(0x437)],this[_0x2c1021(0x3c5)],null,[],this[_0x2c1021(0x4c3)]);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x339)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2f1425(0x489)](){const _0x36291c=_0x2f1425,_0x1d046d=this[_0x36291c(0x341)][_0x36291c(0x3f7)](this[_0x36291c(0x437)]);return this[_0x36291c(0x4c3)]['onMissingChangesets']({'from':_0x1d046d,'to':0x0}),this[_0x36291c(0x4fa)][_0x36291c(0x49c)](H,this['unitID'],this[_0x36291c(0x3c5)],null,[],null,[],this['_handler']);}};se=z([g(0x3,a['Inject'](_[_0x2f1425(0x55c)])),g(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0x5,a['Inject'](a[_0x2f1425(0x450)])),g(0x6,a[_0x2f1425(0x45b)]),g(0x7,a[_0x2f1425(0x477)]),g(0x8,a[_0x2f1425(0x2e3)]),g(0x9,_[_0x2f1425(0x298)])],se);let x=class extends J{constructor(_0x600a93,_0x165da7,_0x4443e8,_0x3abe64,_0x4d9bc0,_0x52c8aa,_0x5183ea,_0x59ef02,_0x426165,_0x3b8dc4,_0x1cb02b,_0x1bf44a,_0x1303cb,_0x4d24a1){const _0x3048d9=_0x2f1425;super(_0x600a93,_0x165da7,null,_0x4443e8,_0x3abe64,_0x3b8dc4,_0x4d24a1,_0x52c8aa,_0x5183ea),d(this,_0x3048d9(0x1b5),'pending'),d(this,_0x3048d9(0x20d),null),d(this,'_sendingTimer',null),(this[_0x3048d9(0x4fa)]=_0x4d9bc0,this[_0x3048d9(0x43f)]=_0x59ef02,this[_0x3048d9(0x562)]=_0x426165,this[_0x3048d9(0x1c3)]=_0x1cb02b,this[_0x3048d9(0x3fd)]=_0x1bf44a,this[_0x3048d9(0x458)]=_0x1303cb);}[_0x2f1425(0x2c5)](_0x3cab67){const _0xf4b03f=_0x2f1425;return this[_0xf4b03f(0x1cc)]['push'](_0x3cab67),this[_0xf4b03f(0x43d)](),this;}[_0x2f1425(0x389)](_0x1c36a5){const _0x342dfb=_0x2f1425;if(this[_0x342dfb(0x312)](_0x1c36a5))return this[_0x342dfb(0x2d4)](),this[_0x342dfb(0x4fa)][_0x342dfb(0x49c)](H,this[_0x342dfb(0x437)],this[_0x342dfb(0x3c5)],null,this['_pendingMutations'],null,[_0x1c36a5],this[_0x342dfb(0x4c3)]);try{const _0x5baea3=this[_0x342dfb(0x3fd)]['transformMutationsWithChangeset'](_0x1c36a5,this[_0x342dfb(0x1cc)]);if(_[_0x342dfb(0x34c)](_0x5baea3)){const {c1Prime:_0xf64e4b,m2Prime:_0x3c7f1f}=_0x5baea3;this[_0x342dfb(0x1e4)](_0xf64e4b);const _0x5a6825=this[_0x342dfb(0x4fa)][_0x342dfb(0x49c)](x,this[_0x342dfb(0x437)],this[_0x342dfb(0x3c5)],_0x3c7f1f,this[_0x342dfb(0x4c3)]);return this['_clearScheduledTask'](),_0x5a6825[_0x342dfb(0x3b9)](this[_0x342dfb(0x20d)]?Math['max'](0x0,new Date()['getTime']()-this[_0x342dfb(0x20d)]):this[_0x342dfb(0x577)]()),_0x5a6825;}throw _0x5baea3['error'];}catch(_0x5dadc2){return this[_0x342dfb(0x562)]['error'](_0x5dadc2),this['_onConflict'](!0x1);}}[_0x2f1425(0x417)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x2f1425(0x471)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2f1425(0x316)](){const _0x362bff=_0x2f1425;return this['_clearScheduledTask'](),this['_injector']['createInstance'](G,this[_0x362bff(0x437)],this[_0x362bff(0x3c5)],null,this[_0x362bff(0x1cc)],this[_0x362bff(0x4c3)]);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x3b9)](_0x1fe868){const _0x810148=_0x2f1425,_0x14bf1c=_0x1fe868!=null?_0x1fe868:this[_0x810148(0x577)]();this[_0x810148(0x20d)]=new Date()['getTime'](),this[_0x810148(0x45d)]=window[_0x810148(0x399)](()=>{const _0x596212=_0x810148;this[_0x596212(0x2d4)]();let _0x4c7c93=null;switch(this[_0x596212(0x3c5)]){case j[_0x596212(0x1bf)]:{_0x4c7c93=it(this[_0x596212(0x1cc)],this[_0x596212(0x437)],this[_0x596212(0x458)],this[_0x596212(0x341)],this['_memberService']);break;}case j[_0x596212(0x3df)]:{this['_pendingMutations'][_0x596212(0x39a)](_0x4c4b2f=>_0x4c4b2f['id']===V['RichTextEditingMutation']['id'])?_0x4c7c93=As(this[_0x596212(0x1cc)],this['unitID'],this[_0x596212(0x458)],this['_revisionService'],this[_0x596212(0x43f)]):_0x4c7c93=it(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x596212(0x341)],this[_0x596212(0x43f)]);break;}default:throw new Error(_0x596212(0x333)+this['type']+_0x596212(0x319));}const {changeset:_0x530070,pendingMutations:_0x1775d0}=_0x4c7c93;this[_0x596212(0x4c3)][_0x596212(0x209)](_0x530070);const _0x5d3d6f=_0x1775d0[_0x596212(0x38d)]?this[_0x596212(0x4fa)][_0x596212(0x49c)](k,this['unitID'],this[_0x596212(0x3c5)],_0x530070,_0x1775d0,this[_0x596212(0x4c3)]):this[_0x596212(0x4fa)][_0x596212(0x49c)](W,this[_0x596212(0x437)],this[_0x596212(0x3c5)],_0x530070,this[_0x596212(0x4c3)]);_0x5d3d6f[_0x596212(0x43d)](),this[_0x596212(0x4c3)][_0x596212(0x227)](this,_0x5d3d6f);},_0x14bf1c);}[_0x2f1425(0x577)](){const _0x1ea743=_0x2f1425;var _0x297b95;const _0x1486f3=this[_0x1ea743(0x1c3)]['getConfig'](A);return(_0x297b95=_0x1486f3==null?void 0x0:_0x1486f3[_0x1ea743(0x3fc)])!=null?_0x297b95:Kt;}[_0x2f1425(0x339)](){const _0x58c93a=_0x2f1425;throw new Error(_0x58c93a(0x3bd));}['_clearScheduledTask'](){const _0x37287c=_0x2f1425;this[_0x37287c(0x45d)]!=null&&(clearTimeout(this[_0x37287c(0x45d)]),this['_sendingTimer']=null);}[_0x2f1425(0x415)](_0xf9d5a1){const _0x5e3dd6=_0x2f1425;return this['_clearScheduledTask'](),this['_injector'][_0x5e3dd6(0x49c)](F,this['unitID'],this['type'],null,this[_0x5e3dd6(0x1cc)],this[_0x5e3dd6(0x4c3)],_0xf9d5a1);}};x=z([g(0x4,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),g(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),g(0x6,a['Inject'](exports['LocalCacheService'])),g(0x7,a[_0x2f1425(0x4d1)](q)),g(0x8,a['ILogService']),g(0x9,a['ICommandService']),g(0xa,a['IConfigService']),g(0xb,_[_0x2f1425(0x298)]),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0x2f1425(0x45b)])],x);let W=class extends J{constructor(_0x1997f6,_0x50b973,_0x547dde,_0x6d66a,_0x277121,_0x53d634,_0x167ff2,_0x26aba0,_0x3bea44,_0x5290f7,_0x4828d6){const _0x475f27=_0x2f1425;super(_0x1997f6,_0x50b973,_0x547dde,[],_0x6d66a,_0x26aba0,_0x4828d6,_0x53d634,_0x167ff2),d(this,_0x475f27(0x1b5),_0x475f27(0x433)),(this[_0x475f27(0x4fa)]=_0x277121,this['_logService']=_0x3bea44,this[_0x475f27(0x3fd)]=_0x5290f7);}['appendMutation'](_0x307ea4){const _0x114655=_0x2f1425,_0xf948a7=this['_injector'][_0x114655(0x49c)](k,this[_0x114655(0x437)],this[_0x114655(0x3c5)],this[_0x114655(0x42c)],[_0x307ea4],this[_0x114655(0x4c3)]);return _0xf948a7[_0x114655(0x43d)](),_0xf948a7;}['onRemoteChangeset'](_0x3e46ea){const _0x2cf9e6=_0x2f1425;if(this[_0x2cf9e6(0x312)](_0x3e46ea))return this[_0x2cf9e6(0x4fa)]['createInstance'](H,this[_0x2cf9e6(0x437)],this[_0x2cf9e6(0x3c5)],this[_0x2cf9e6(0x42c)],[],null,[_0x3e46ea],this[_0x2cf9e6(0x4c3)]);try{const _0x3d472b=this[_0x2cf9e6(0x3fd)][_0x2cf9e6(0x524)]([_0x3e46ea],[this['_awaitingChangeset']],!0x1);if(_[_0x2cf9e6(0x222)](_0x3d472b)){const {c1Prime:_0x28531c,c2Prime:_0x1ef763}=_0x3d472b;this[_0x2cf9e6(0x1e4)](_0x28531c[0x0]),_0x1ef763[0x0][_0x2cf9e6(0x200)]=this[_0x2cf9e6(0x3a3)]();const _0x369f03=this[_0x2cf9e6(0x4fa)][_0x2cf9e6(0x49c)](W,this[_0x2cf9e6(0x437)],this[_0x2cf9e6(0x3c5)],_0x1ef763[0x0],this[_0x2cf9e6(0x4c3)]);return _0x369f03[_0x2cf9e6(0x43d)](),_0x369f03;}return this[_0x2cf9e6(0x415)](!0x1);}catch(_0x31e300){return this[_0x2cf9e6(0x562)]['error'](_0x31e300),this[_0x2cf9e6(0x415)](!0x1);}}[_0x2f1425(0x417)](_0x22768d){const _0x3730d1=_0x2f1425,_0x4af8b6=this[_0x3730d1(0x341)]['getCurrentRevOfUnit'](this[_0x3730d1(0x437)]);if(_0x22768d[_0x3730d1(0x2c8)]<_0x4af8b6-0x1)return this;if(this[_0x3730d1(0x312)](_0x22768d))return this[_0x3730d1(0x4fa)][_0x3730d1(0x49c)](H,this['unitID'],this[_0x3730d1(0x3c5)],null,[],this[_0x3730d1(0x42c)],[],this[_0x3730d1(0x4c3)]);this[_0x3730d1(0x1c5)]();const _0x1dd66e=this[_0x3730d1(0x4fa)]['createInstance'](se,this[_0x3730d1(0x437)],this['type'],this[_0x3730d1(0x4c3)]);return _0x1dd66e[_0x3730d1(0x43d)](),_0x1dd66e;}[_0x2f1425(0x471)](_0x173ee5){const _0x242bf6=_0x2f1425;return this[_0x242bf6(0x415)](!!(_0x173ee5!=null&&_0x173ee5[_0x242bf6(0x556)]));}['toggleOffline'](){const _0x304d58=_0x2f1425;return this[_0x304d58(0x4fa)][_0x304d58(0x49c)](G,this[_0x304d58(0x437)],this[_0x304d58(0x3c5)],this[_0x304d58(0x42c)],[],this['_handler']);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x339)](){const _0x206a71=_0x2f1425;this[_0x206a71(0x4c3)][_0x206a71(0x209)](this[_0x206a71(0x42c)]);}[_0x2f1425(0x415)](_0x4da787){const _0xc6d420=_0x2f1425;return this[_0xc6d420(0x4fa)][_0xc6d420(0x49c)](F,this[_0xc6d420(0x437)],this[_0xc6d420(0x3c5)],this[_0xc6d420(0x42c)],[],this['_handler'],_0x4da787);}};W=z([g(0x4,a['Inject'](a['Injector'])),g(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),g(0x6,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0x7,a[_0x2f1425(0x477)]),g(0x8,a[_0x2f1425(0x2e3)]),g(0x9,_[_0x2f1425(0x298)]),g(0xa,a[_0x2f1425(0x45b)])],W);let k=class extends J{constructor(_0x8a6e89,_0x254e53,_0x2a2ddb,_0x11c7f5,_0x34f246,_0x45926a,_0x4a40df,_0x23c4cd,_0x18c302,_0x4bedfe,_0x3187db,_0x3b970a){const _0x1fc86e=_0x2f1425;super(_0x8a6e89,_0x254e53,_0x2a2ddb,_0x11c7f5,_0x34f246,_0x18c302,_0x3b970a,_0x4a40df,_0x23c4cd),d(this,_0x1fc86e(0x1b5),_0x1fc86e(0x567)),(this[_0x1fc86e(0x4fa)]=_0x45926a,this[_0x1fc86e(0x562)]=_0x4bedfe,this[_0x1fc86e(0x3fd)]=_0x3187db);}[_0x2f1425(0x2c5)](_0x3cec90){const _0x18fc79=_0x2f1425;return this[_0x18fc79(0x1cc)][_0x18fc79(0x52d)](_0x3cec90),this;}[_0x2f1425(0x389)](_0x269b9b){const _0x500630=_0x2f1425;if(this[_0x500630(0x312)](_0x269b9b))return this[_0x500630(0x4fa)][_0x500630(0x49c)](H,this[_0x500630(0x437)],this[_0x500630(0x3c5)],this[_0x500630(0x42c)],this[_0x500630(0x1cc)],null,[_0x269b9b],this[_0x500630(0x4c3)]);try{const _0x5e72fc=this[_0x500630(0x3fd)][_0x500630(0x524)]([_0x269b9b],[this[_0x500630(0x42c)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x5e72fc)){const {c1Prime:_0x56b092,c2Prime:_0x100500}=_0x5e72fc,_0x30b41d=this[_0x500630(0x3fd)][_0x500630(0x55d)](_0x56b092[0x0],this['_pendingMutations']);if(_[_0x500630(0x34c)](_0x30b41d)){const {c1Prime:_0x3e21e8,m2Prime:_0x233f79}=_0x30b41d;return this[_0x500630(0x1e4)](_0x3e21e8),_0x100500[0x0][_0x500630(0x200)]=this['_getCurrentRevision'](),this[_0x500630(0x4fa)][_0x500630(0x49c)](k,this['unitID'],this[_0x500630(0x3c5)],_0x100500[0x0],_0x233f79,this[_0x500630(0x4c3)]);}throw _0x30b41d[_0x500630(0x348)];}throw _0x5e72fc['error'];}catch(_0x2b380b){return this[_0x500630(0x562)][_0x500630(0x348)](_0x2b380b),this[_0x500630(0x415)](!0x1);}}[_0x2f1425(0x417)](_0xa60c53){const _0x2b914b=_0x2f1425;if(this['_checkMissing'](_0xa60c53))return this[_0x2b914b(0x4fa)][_0x2b914b(0x49c)](H,this[_0x2b914b(0x437)],this[_0x2b914b(0x3c5)],null,this[_0x2b914b(0x1cc)],this[_0x2b914b(0x42c)],[],this[_0x2b914b(0x4c3)]);this[_0x2b914b(0x1c5)]();const _0x4ffaab=this[_0x2b914b(0x4fa)][_0x2b914b(0x49c)](x,this[_0x2b914b(0x437)],this[_0x2b914b(0x3c5)],this['_pendingMutations'],this['_handler']);return _0x4ffaab[_0x2b914b(0x3b9)](),_0x4ffaab[_0x2b914b(0x43d)](),_0x4ffaab;}[_0x2f1425(0x471)](_0x38c10c){const _0xfc6c01=_0x2f1425;return this[_0xfc6c01(0x415)](!!(_0x38c10c!=null&&_0x38c10c['isPermissionRej']));}[_0x2f1425(0x316)](){const _0x8e4cbe=_0x2f1425;return this[_0x8e4cbe(0x4fa)][_0x8e4cbe(0x49c)](G,this['unitID'],this[_0x8e4cbe(0x3c5)],this[_0x8e4cbe(0x42c)],this[_0x8e4cbe(0x1cc)],this[_0x8e4cbe(0x4c3)]);}[_0x2f1425(0x517)](){return this;}['resend'](){const _0x5da6dd=_0x2f1425;this[_0x5da6dd(0x4c3)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x2f1425(0x415)](_0x6547a1){const _0x56057d=_0x2f1425;return this[_0x56057d(0x4fa)][_0x56057d(0x49c)](F,this[_0x56057d(0x437)],this[_0x56057d(0x3c5)],null,this[_0x56057d(0x1cc)],this['_handler'],_0x6547a1);}};k=z([g(0x5,a['Inject'](a[_0x2f1425(0x450)])),g(0x6,a[_0x2f1425(0x4d1)](_['RevisionService'])),g(0x7,a['Inject'](exports[_0x2f1425(0x509)])),g(0x8,a['ICommandService']),g(0x9,a[_0x2f1425(0x2e3)]),g(0xa,_[_0x2f1425(0x298)]),g(0xb,a['IUndoRedoService'])],k);let F=class extends J{constructor(_0x589cdc,_0x29e9ba,_0xb30cf5,_0x443c2c,_0x253626,_0x49fdbc=!0x1,_0xb08fcf,_0x17ec47,_0x7c7137,_0x2b6d71,_0x56cb79,_0x2b937b,_0xbfc6c){const _0x3267ee=_0x2f1425;super(_0x589cdc,_0x29e9ba,_0xb30cf5,_0x443c2c,_0x253626,_0x17ec47,_0x7c7137,_0x56cb79,_0x2b6d71),d(this,_0x3267ee(0x1b5),_0x3267ee(0x299)),(this[_0x3267ee(0x307)]=_0x49fdbc,this[_0x3267ee(0x531)]=_0xb08fcf,this['_localeService']=_0x2b937b,this[_0x3267ee(0x189)]=_0xbfc6c,this[_0x3267ee(0x376)](),this[_0x3267ee(0x2c0)](),this[_0x3267ee(0x2eb)]());}['appendMutation'](){return this;}[_0x2f1425(0x389)](){return this;}[_0x2f1425(0x417)](){return this;}[_0x2f1425(0x471)](){return this;}[_0x2f1425(0x316)](){return this;}[_0x2f1425(0x517)](){return this;}['resend'](){const _0x2ef2c2=_0x2f1425;throw new Error(_0x2ef2c2(0x3d4));}[_0x2f1425(0x2c0)](){const _0x1a8c22=_0x2f1425;this[_0x1a8c22(0x28a)][_0x1a8c22(0x202)](this[_0x1a8c22(0x437)],this['type'],null,[]);}['_showConflictNotification'](){const _0x5df5b0=_0x2f1425;this[_0x5df5b0(0x307)]?this[_0x5df5b0(0x189)]['show']({'title':this['_localeService']['t'](_0x5df5b0(0x388)),'content':this[_0x5df5b0(0x3ec)]['t']('permission.content'),'type':_0x5df5b0(0x348),'duration':0x0}):this[_0x5df5b0(0x189)][_0x5df5b0(0x1b9)]({'title':this[_0x5df5b0(0x3ec)]['t']('conflict.title'),'content':this[_0x5df5b0(0x3ec)]['t'](_0x5df5b0(0x430)),'type':_0x5df5b0(0x348),'duration':0x0});}[_0x2f1425(0x2eb)](){const _0x13d985=_0x2f1425;this[_0x13d985(0x531)]['updatePermissionPoint'](new C[(_0x13d985(0x224))](this[_0x13d985(0x437)])['id'],!0x1);}};F=z([g(0x6,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x18e)])),g(0x7,a[_0x2f1425(0x477)]),g(0x8,a[_0x2f1425(0x45b)]),g(0x9,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0xa,a['Inject'](_[_0x2f1425(0x55c)])),g(0xb,a['Inject'](a['LocaleService'])),g(0xc,N[_0x2f1425(0x180)])],F);let G=class extends J{constructor(_0x4eba6b,_0x3a7cf9,_0x1e3a41,_0x149dc1,_0x5d69fe,_0x3ad265,_0x158ea5,_0x2df668,_0x20d6c7,_0x3dc86b){const _0x49d53d=_0x2f1425;super(_0x4eba6b,_0x3a7cf9,_0x1e3a41,_0x149dc1,_0x5d69fe,_0x20d6c7,_0x3dc86b,_0x158ea5,_0x2df668),d(this,_0x49d53d(0x1b5),_0x49d53d(0x3c3)),this['_injector']=_0x3ad265;}[_0x2f1425(0x2c5)](_0x113ddc){const _0x13d1f0=_0x2f1425;return this['_pendingMutations'][_0x13d1f0(0x52d)](_0x113ddc),this[_0x13d1f0(0x43d)](),this;}[_0x2f1425(0x389)](_0x2ead0e){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x4da33=_0x2f1425;throw new Error(_0x4da33(0x33a));}['onRemoteRej'](){const _0x4e486e=_0x2f1425;throw new Error(_0x4e486e(0x497));}[_0x2f1425(0x316)](){return this;}[_0x2f1425(0x517)](){const _0x36f99b=_0x2f1425,{_injector:_0x2847e6,_pendingMutations:_0x59b764,_awaitingChangeset:_0x537db1,unitID:_0x5d40b7,_handler:_0x536e30,type:_0x38f9e2}=this,_0x32ad00=Rt(_0x2847e6,_0x5d40b7,_0x38f9e2,_0x537db1,_0x59b764,_0x536e30);return _0x32ad00 instanceof x?_0x32ad00[_0x36f99b(0x3b9)]():(_0x32ad00 instanceof k||_0x32ad00 instanceof W)&&_0x32ad00[_0x36f99b(0x339)](),_0x32ad00;}[_0x2f1425(0x339)](){const _0x418eae=_0x2f1425;throw new Error(_0x418eae(0x340));}};G=z([g(0x5,a['Inject'](a[_0x2f1425(0x450)])),g(0x6,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),g(0x7,a[_0x2f1425(0x4d1)](exports['LocalCacheService'])),g(0x8,a[_0x2f1425(0x477)]),g(0x9,a[_0x2f1425(0x45b)])],G);let H=class extends J{constructor(_0x11416d,_0x335194,_0x29fb73,_0x1946c6,_0x20e6a6,_0x3765cb,_0x3d5e6b,_0xb4d9fc,_0x14063b,_0x39c75f,_0x2e29fe,_0xfd4bfb,_0x3a1971,_0x296e83){const _0x3d1b77=_0x2f1425;super(_0x11416d,_0x335194,_0x29fb73,_0x1946c6,_0x3d5e6b,_0xfd4bfb,_0x3a1971,_0x14063b,_0x39c75f),d(this,_0x3d1b77(0x1b5),_0x3d1b77(0x334)),(this[_0x3d1b77(0x29c)]=_0x20e6a6,this['_queuedRemoteChangesets']=_0x3765cb,this[_0x3d1b77(0x4fa)]=_0xb4d9fc,this['_logService']=_0x2e29fe,this[_0x3d1b77(0x3fd)]=_0x296e83);}['onMissedChangesetFetched'](_0x46eee2){const _0x57eccb=_0x2f1425;try{const _0x42b095=[..._0x46eee2,...this[_0x57eccb(0x1fb)]],_0x3ae50c=[this[_0x57eccb(0x42c)]||this[_0x57eccb(0x29c)]][_0x57eccb(0x2b7)](_0x4e44cd=>!!_0x4e44cd);let _0x3e3982,_0x1096a3;if(_0x3ae50c[_0x57eccb(0x38d)]){const _0x18de46=this[_0x57eccb(0x3fd)][_0x57eccb(0x524)](_0x42b095,_0x3ae50c,!0x1);if(!_['isTransformChangesetsSuccess'](_0x18de46))throw _0x18de46[_0x57eccb(0x348)];_0x3e3982=_0x18de46[_0x57eccb(0x3bc)],_0x1096a3=_0x18de46[_0x57eccb(0x4e9)];}else _0x3e3982=_0x42b095,_0x1096a3=[];let _0x1186ce=this['_pendingMutations'];_0x3e3982[_0x57eccb(0x28e)](_0x31f50a=>{const _0x33962d=_0x57eccb;let _0x53414e;if(_0x1186ce[_0x33962d(0x38d)]){const _0xf61dd1=this[_0x33962d(0x3fd)][_0x33962d(0x55d)](_0x31f50a,_0x1186ce);if(!_[_0x33962d(0x34c)](_0xf61dd1))throw _0xf61dd1[_0x33962d(0x348)];_0x53414e=_0xf61dd1[_0x33962d(0x3bc)],_0x1186ce=_0xf61dd1[_0x33962d(0x409)];}else _0x53414e=_0x31f50a;this['_executeRemoteChangeset'](_0x53414e);}),this[_0x57eccb(0x29c)]&&this[_0x57eccb(0x1c5)](),this['_awaitingChangeset']&&_0x1096a3[_0x57eccb(0x38d)]&&(_0x1096a3[0x0][_0x57eccb(0x200)]=this['_getCurrentRevision']());let _0x25e14a;if(this[_0x57eccb(0x42c)]&&_0x1186ce[_0x57eccb(0x38d)]!==0x0)_0x25e14a=this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](k,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],_0x1096a3[0x0],_0x1186ce,this[_0x57eccb(0x4c3)]);else{if(this['_awaitingChangeset']&&_0x1186ce[_0x57eccb(0x38d)]===0x0)_0x1096a3[0x0][_0x57eccb(0x200)]=this[_0x57eccb(0x3a3)](),_0x25e14a=this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](W,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],_0x1096a3[0x0],this[_0x57eccb(0x4c3)]);else{if(_0x1186ce[_0x57eccb(0x38d)]!==0x0){const _0x37e07f=this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](x,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],_0x1186ce,this[_0x57eccb(0x4c3)]);_0x37e07f[_0x57eccb(0x3b9)](),_0x25e14a=_0x37e07f;}else _0x25e14a=this['_injector']['createInstance'](se,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],this['_handler']);}}return _0x25e14a[_0x57eccb(0x43d)](),_0x25e14a;}catch(_0xa38ad3){return this[_0x57eccb(0x562)][_0x57eccb(0x348)](_0x57eccb(0x33c),_0x57eccb(0x2f3),_0xa38ad3),this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](F,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],this[_0x57eccb(0x42c)],this[_0x57eccb(0x1cc)],this['_handler'],!0x1);}}['resend'](){const _0x26f7e5=_0x2f1425;throw new Error(_0x26f7e5(0x499));}[_0x2f1425(0x2c5)](_0x5d79e2){const _0x255151=_0x2f1425;return this[_0x255151(0x1cc)][_0x255151(0x52d)](_0x5d79e2),this;}[_0x2f1425(0x389)](_0x2eeb77){const _0x315d8e=_0x2f1425;return this[_0x315d8e(0x1fb)][_0x315d8e(0x52d)](_0x2eeb77),this;}['onRemoteAck'](_0x5b43a6){const _0x2631ca=_0x2f1425;if(this[_0x2631ca(0x42c)])return this[_0x2631ca(0x29c)]=this[_0x2631ca(0x42c)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x198c8e){const _0xc04cbf=_0x2f1425;return this[_0xc04cbf(0x415)](!!(_0x198c8e!=null&&_0x198c8e['isPermissionRej']));}[_0x2f1425(0x316)](){const _0x44a97c=_0x2f1425;return this[_0x44a97c(0x4fa)]['createInstance'](G,this[_0x44a97c(0x437)],this[_0x44a97c(0x3c5)],this[_0x44a97c(0x42c)],this[_0x44a97c(0x1cc)],this['_handler']);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x415)](_0x214f28){const _0x45bbe0=_0x2f1425;return this[_0x45bbe0(0x4fa)][_0x45bbe0(0x49c)](F,this[_0x45bbe0(0x437)],this[_0x45bbe0(0x3c5)],this[_0x45bbe0(0x42c)],this[_0x45bbe0(0x1cc)],this[_0x45bbe0(0x4c3)],_0x214f28);}};H=z([g(0x7,a[_0x2f1425(0x4d1)](a['Injector'])),g(0x8,a['Inject'](_['RevisionService'])),g(0x9,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0xa,a[_0x2f1425(0x2e3)]),g(0xb,a[_0x2f1425(0x477)]),g(0xc,a[_0x2f1425(0x45b)]),g(0xd,_[_0x2f1425(0x298)])],H);function Rt(_0x214789,_0xc0ca50,_0x132778,_0x2c7ae8,_0x3bde43,_0x31a53d){const _0x55525e=_0x2f1425;return _0x2c7ae8&&_0x3bde43[_0x55525e(0x38d)]?_0x214789['createInstance'](k,_0xc0ca50,_0x132778,_0x2c7ae8,_0x3bde43,_0x31a53d):_0x2c7ae8?_0x214789['createInstance'](W,_0xc0ca50,_0x132778,_0x2c7ae8,_0x31a53d):_0x3bde43['length']?_0x214789[_0x55525e(0x49c)](x,_0xc0ca50,_0x132778,_0x3bde43,_0x31a53d):_0x214789[_0x55525e(0x49c)](se,_0xc0ca50,_0x132778,_0x31a53d);}var Hs=Object[_0x2f1425(0x1cf)],xs=Object[_0x2f1425(0x2ab)],Ke=(_0x26985c,_0x2166cc,_0x132a8d,_0xe56a18)=>{const _0x3b6394=_0x2f1425;for(var _0x5e9a70=_0xe56a18>0x1?void 0x0:_0xe56a18?xs(_0x2166cc,_0x132a8d):_0x2166cc,_0x4ba9f6=_0x26985c[_0x3b6394(0x38d)]-0x1,_0x49c538;_0x4ba9f6>=0x0;_0x4ba9f6--)(_0x49c538=_0x26985c[_0x4ba9f6])&&(_0x5e9a70=(_0xe56a18?_0x49c538(_0x2166cc,_0x132a8d,_0x5e9a70):_0x49c538(_0x5e9a70))||_0x5e9a70);return _0xe56a18&&_0x5e9a70&&Hs(_0x2166cc,_0x132a8d,_0x5e9a70),_0x5e9a70;},I=(_0x1e54f7,_0x438e02)=>(_0x2e2285,_0x4b7243)=>_0x438e02(_0x2e2285,_0x4b7243,_0x1e54f7);exports['CollaborationEntity']=class extends a[_0x2f1425(0x25b)]{constructor(_0x5ab65a,_0x128e24,_0x3eebe3,_0x3fcc95,_0x2df746,_0x3fca9b,_0x4b1890,_0x399df8,_0x2f7708,_0x59443d,_0x33e707,_0x14f1ac,_0x599134){const _0x3b398a=_0x2f1425;super(),d(this,_0x3b398a(0x378),new v[(_0x3b398a(0x21d))](null)),d(this,_0x3b398a(0x42f),this[_0x3b398a(0x378)][_0x3b398a(0x2fd)]()),d(this,'_state'),d(this,_0x3b398a(0x3fb),!0x1),d(this,_0x3b398a(0x56d),this[_0x3b398a(0x42f)][_0x3b398a(0x53d)](v['map'](_0x518dc9=>_0x518dc9?_0x518dc9['status']:y[_0x3b398a(0x3a1)]),v[_0x3b398a(0x4bd)](0x1))),d(this,_0x3b398a(0x518),!0x1),d(this,_0x3b398a(0x4a0),[]),(this[_0x3b398a(0x437)]=_0x5ab65a,this[_0x3b398a(0x1e0)]=_0x128e24,this[_0x3b398a(0x1ed)]=_0x3eebe3,this[_0x3b398a(0x4fa)]=_0x3fcc95,this[_0x3b398a(0x28a)]=_0x2df746,this[_0x3b398a(0x461)]=_0x3fca9b,this[_0x3b398a(0x3ec)]=_0x4b1890,this['_revisionService']=_0x399df8,this[_0x3b398a(0x562)]=_0x2f7708,this['_commandService']=_0x59443d,this[_0x3b398a(0x1e2)]=_0x33e707,this[_0x3b398a(0x531)]=_0x14f1ac,this['_singleActiveUnitService']=_0x599134);}get[_0x2f1425(0x3c6)](){const _0x34839c=_0x2f1425;return this[_0x34839c(0x473)];}async[_0x2f1425(0x2fc)](){const _0x1c44ea=_0x2f1425;if(this[_0x1c44ea(0x3c6)])throw new Error(_0x1c44ea(0x2e6));await this[_0x1c44ea(0x34f)]();}[_0x2f1425(0x2ed)](){const _0x3d33d9=_0x2f1425;return this[_0x3d33d9(0x3fb)]=!0x0,a[_0x3d33d9(0x2df)](()=>{const _0x4c7f96=_0x3d33d9;this[_0x4c7f96(0x3fb)]=!0x1,this[_0x4c7f96(0x1cb)]();});}[_0x2f1425(0x17d)](_0x14e761){const _0x1c3825=_0x2f1425;this[_0x1c3825(0x473)]=_0x14e761,this[_0x1c3825(0x378)][_0x1c3825(0x500)](_0x14e761);}async['_init'](){const _0x2f9577=_0x2f1425;var _0x39cfa1;this['_updateState'](await this[_0x2f9577(0x526)]()),this[_0x2f9577(0x4d7)]&&((_0x39cfa1=this[_0x2f9577(0x4d7)])==null||_0x39cfa1[_0x2f9577(0x17b)](this[_0x2f9577(0x437)]),this[_0x2f9577(0x425)](this[_0x2f9577(0x4d7)][_0x2f9577(0x32a)](this[_0x2f9577(0x437)])['subscribe'](_0x29dd7e=>{const _0x43337c=_0x2f9577;this[_0x43337c(0x562)][_0x43337c(0x27e)]('[CollaborationEntity]',_0x43337c(0x4fb),_0x29dd7e),_0x29dd7e===bt[_0x43337c(0x3c9)]?(this[_0x43337c(0x1e2)][_0x43337c(0x1b9)]({'content':this[_0x43337c(0x3ec)]['t'](_0x43337c(0x27c)),'type':X[_0x43337c(0x4c9)][_0x43337c(0x501)]}),this[_0x43337c(0x531)][_0x43337c(0x4cc)](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this[_0x43337c(0x531)][_0x43337c(0x4cc)](new C[(_0x43337c(0x224))](this[_0x43337c(0x437)])['id'],!0x0);})));let _0x136278=!0x1;return this[_0x2f9577(0x425)](this[_0x2f9577(0x1e0)]['sessionStatus$'][_0x2f9577(0x3ca)](_0x209562=>{const _0x286c02=_0x2f9577;_0x209562===$['ONLINE']?this[_0x286c02(0x462)](_0x136278):_0x209562===$[_0x286c02(0x3a1)]&&(_0x136278=!0x0,this['_toggleOffline']());})),this[_0x2f9577(0x425)](this[_0x2f9577(0x1e0)]['event$'][_0x2f9577(0x3ca)](_0x1db739=>{const _0x34decb=_0x2f9577;try{switch(_0x1db739[_0x34decb(0x188)]){case _[_0x34decb(0x565)]['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_[_0x34decb(0x4ef)](_0x1db739[_0x34decb(0x2a5)]));break;}case _[_0x34decb(0x565)][_0x34decb(0x412)]:{this[_0x34decb(0x426)](_0x1db739[_0x34decb(0x2a5)]);break;}case _[_0x34decb(0x565)]['CHANGESET_REJ']:{this[_0x34decb(0x4ea)]();break;}case _[_0x34decb(0x565)][_0x34decb(0x2de)]:{this[_0x34decb(0x390)](_0x1db739[_0x34decb(0x2a5)][_0x34decb(0x444)]['map'](_0x1f0246=>_['parseProtocolChangeset'](_0x1f0246)));break;}case _['CollaborationEvent'][_0x34decb(0x220)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0xd7aee7){throw console[_0x34decb(0x348)](_0x34decb(0x2b9),_0xd7aee7),_0xd7aee7;}})),this[_0x2f9577(0x473)];}[_0x2f1425(0x353)](){const _0x4810b4=_0x2f1425;this[_0x4810b4(0x518)]=!0x1;}[_0x2f1425(0x547)](){const _0x30acd7=_0x2f1425;if(this[_0x30acd7(0x518)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x30acd7(0x518)]=!0x0;}['_onLocalMutation'](_0x2e31b5){const _0xb8d29d=_0x2f1425;this['_lockTransition'](),this['_updateState'](this[_0xb8d29d(0x473)]['appendMutation'](_0x2e31b5)),this[_0xb8d29d(0x353)]();}[_0x2f1425(0x57c)](_0x5fabf3){const _0x2e7205=_0x2f1425;if(!(_0x5fabf3[_0x2e7205(0x2c8)]<=this[_0x2e7205(0x341)]['getCurrentRevOfUnit'](this[_0x2e7205(0x437)]))){if(this[_0x2e7205(0x3fb)]){this[_0x2e7205(0x4a0)][_0x2e7205(0x52d)](_0x5fabf3);return;}this['_applyRemoteChangeset'](_0x5fabf3);}}[_0x2f1425(0x1cb)](){const _0x18e1d9=_0x2f1425;this['_remoteChangesetQueue'][_0x18e1d9(0x28e)](_0x531792=>this[_0x18e1d9(0x4cd)](_0x531792)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0xfec99c){const _0x424186=_0x2f1425,_0xba35a7=this[_0x424186(0x461)]['interceptor'][_0x424186(0x4a8)](this['_compressMutationService'][_0x424186(0x221)][_0x424186(0x371)]()[_0x424186(0x449)])(_0xfec99c[_0x424186(0x569)],null)||_0xfec99c[_0x424186(0x569)],_0x2b23aa={..._0xfec99c,'mutations':_0xba35a7};this['_lockTransition'](),this[_0x424186(0x17d)](this[_0x424186(0x473)][_0x424186(0x389)](_0x2b23aa)),this[_0x424186(0x353)]();}[_0x2f1425(0x426)](_0x539489){const _0xc58ff6=_0x2f1425;this['_lockTransition'](),this[_0xc58ff6(0x17d)](this['_state'][_0xc58ff6(0x417)](_0x539489)),this[_0xc58ff6(0x353)]();}[_0x2f1425(0x4ea)](_0x2d5bf8){const _0x592058=_0x2f1425;this[_0x592058(0x547)](),this[_0x592058(0x17d)](this[_0x592058(0x473)][_0x592058(0x471)](_0x2d5bf8)),this['_unlockTransition']();}['_onFetchMissResult'](_0x47c26d){const _0x23bf1f=_0x2f1425;if(!(this[_0x23bf1f(0x473)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x43d346=_0x47c26d[_0x23bf1f(0x1c9)](_0x5c2806=>{const _0x5c6a02=_0x23bf1f,_0x3265b6=this[_0x5c6a02(0x461)][_0x5c6a02(0x221)][_0x5c6a02(0x4a8)](this['_compressMutationService'][_0x5c6a02(0x221)][_0x5c6a02(0x371)]()[_0x5c6a02(0x449)])(_0x5c2806[_0x5c6a02(0x569)],null)||_0x5c2806[_0x5c6a02(0x569)];return{..._0x5c2806,'mutations':_0x3265b6};});this[_0x23bf1f(0x547)](),this[_0x23bf1f(0x17d)](this[_0x23bf1f(0x473)][_0x23bf1f(0x2b5)](_0x43d346)),this[_0x23bf1f(0x353)]();}[_0x2f1425(0x3c0)](){const _0x26c74d=_0x2f1425;this[_0x26c74d(0x547)](),this[_0x26c74d(0x17d)](this[_0x26c74d(0x473)][_0x26c74d(0x316)]()),this[_0x26c74d(0x353)]();}[_0x2f1425(0x462)](_0xc4fa89=!0x1){const _0xb5f2e3=_0x2f1425;this[_0xb5f2e3(0x547)](),this[_0xb5f2e3(0x17d)](this[_0xb5f2e3(0x473)][_0xb5f2e3(0x517)]()),this[_0xb5f2e3(0x353)]();const _0x2f3a38=this[_0xb5f2e3(0x473)];_0xc4fa89&&_0x2f3a38 instanceof se&&(this[_0xb5f2e3(0x547)](),this['_updateState'](_0x2f3a38[_0xb5f2e3(0x489)]()),this['_unlockTransition']());}async[_0x2f1425(0x526)](){return new Promise(_0x2fe3c0=>{const _0x3d0d2e=_0x4554;this[_0x3d0d2e(0x1e0)][_0x3d0d2e(0x3a7)][_0x3d0d2e(0x53d)](v[_0x3d0d2e(0x2e9)](0x1))[_0x3d0d2e(0x3ca)](async _0x2d5514=>{const _0x22fbb3=_0x3d0d2e;_0x2fe3c0(await this[_0x22fbb3(0x513)](_0x2d5514===$[_0x22fbb3(0x1cd)]));});});}[_0x2f1425(0x485)](){const _0x4db1ad=_0x2f1425,_0x259fa7=this[_0x4db1ad(0x437)];return{'onStateChange':(_0x5aae35,_0x47dc6a)=>{const _0x151ae5=_0x4db1ad;if(_0x5aae35!==this[_0x151ae5(0x473)])throw new Error(_0x151ae5(0x2b0)+_0x5aae35[_0x151ae5(0x1b5)]+_0x151ae5(0x4a4)+_0x47dc6a[_0x151ae5(0x1b5)]+'\x0aCurrent:\x20'+this[_0x151ae5(0x473)]['status']);this[_0x151ae5(0x17d)](_0x47dc6a);},'onSendChangeset':_0xbc7de5=>{const _0x20bdac=_0x4db1ad,_0x3a5b41={'eventID':_[_0x20bdac(0x565)][_0x20bdac(0x549)],'data':{'unitID':_0xbc7de5[_0x20bdac(0x437)],'unitType':this[_0x20bdac(0x1ed)],'changeset':_0xbc7de5,'memberID':this[_0x20bdac(0x1e0)][_0x20bdac(0x280)]()}};this['session'][_0x20bdac(0x4b6)](_0x3a5b41,this[_0x20bdac(0x437)]);},'onMissingChangesets':({from:_0x197e91,to:_0x16bdf4})=>{const _0x5ed17c=_0x4db1ad;this[_0x5ed17c(0x562)][_0x5ed17c(0x27e)](_0x5ed17c(0x52b),'fetching\x20missing\x20changesets\x20from\x20'+_0x197e91+_0x5ed17c(0x46c)+_0x16bdf4);const _0x170f21={'eventID':_[_0x5ed17c(0x565)]['FETCH_MISSING'],'data':{'unitID':_0x259fa7,'unitType':this[_0x5ed17c(0x1ed)],'from':_0x197e91,'to':_0x16bdf4}};this['session'][_0x5ed17c(0x4b6)](_0x170f21,this[_0x5ed17c(0x437)]);}};}async[_0x2f1425(0x513)](_0x5639f4){const _0xbfe939=_0x2f1425;var _0x58de4d,_0x2fdf2f;const _0x57d47f=await this['_localCacheService'][_0xbfe939(0x4b5)](this[_0xbfe939(0x437)]),_0x212e96=(_0x58de4d=_0x57d47f==null?void 0x0:_0x57d47f['mutations'])!=null?_0x58de4d:[],_0x180b46=(_0x2fdf2f=_0x57d47f==null?void 0x0:_0x57d47f[_0xbfe939(0x30c)])!=null?_0x2fdf2f:null,_0x3c34b1=this[_0xbfe939(0x437)];try{this['_replayCachedMutations'](_0x180b46,_0x212e96);}catch(_0x497577){this['_logService'][_0xbfe939(0x348)](_0x497577);}const _0x30d8a9=this[_0xbfe939(0x485)]();if(_0x5639f4){const _0x2e68e6=Rt(this['_injector'],_0x3c34b1,this[_0xbfe939(0x1ed)],_0x180b46,_0x212e96,_0x30d8a9);return _0x2e68e6 instanceof x?_0x2e68e6[_0xbfe939(0x3b9)]():(_0x2e68e6 instanceof k||_0x2e68e6 instanceof W)&&_0x2e68e6[_0xbfe939(0x339)](),_0x2e68e6;}return this[_0xbfe939(0x4fa)][_0xbfe939(0x49c)](G,_0x3c34b1,this[_0xbfe939(0x1ed)],_0x180b46,_0x212e96,_0x30d8a9);}['_replayCachedMutations'](_0x559849,_0x443123){const _0x4f1502=_0x2f1425;var _0x3ef3f0,_0x492272;const _0x513da5=this[_0x4f1502(0x461)][_0x4f1502(0x221)][_0x4f1502(0x4a8)](this[_0x4f1502(0x461)]['interceptor'][_0x4f1502(0x371)]()[_0x4f1502(0x449)]);(_0x3ef3f0=_0x513da5((_0x559849==null?void 0x0:_0x559849[_0x4f1502(0x569)])||[],null))==null||_0x3ef3f0['forEach'](_0x4ad2cb=>this[_0x4f1502(0x4b2)][_0x4f1502(0x373)](_0x4ad2cb['id'],_0x4ad2cb['params'])),(_0x492272=_0x513da5(_0x443123||[],null))==null||_0x492272[_0x4f1502(0x28e)](_0x2be1b6=>this[_0x4f1502(0x4b2)][_0x4f1502(0x373)](_0x2be1b6['id'],_0x2be1b6[_0x4f1502(0x3d5)]));}},exports[_0x2f1425(0x32b)]=Ke([I(0x3,a[_0x2f1425(0x4d1)](a['Injector'])),I(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),I(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x3f1)])),I(0x6,a[_0x2f1425(0x4d1)](a['LocaleService'])),I(0x7,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),I(0x8,a[_0x2f1425(0x2e3)]),I(0x9,a['ICommandService']),I(0xa,N[_0x2f1425(0x48c)]),I(0xb,a[_0x2f1425(0x18e)]),I(0xc,a[_0x2f1425(0x42b)](be))],exports['CollaborationEntity']),exports[_0x2f1425(0x358)]=class extends exports[_0x2f1425(0x32b)]{constructor(_0x4b35ee,_0x5c4d72,_0x440cce,_0x425be0,_0x816b44,_0x4bfeb5,_0x164fb6,_0x13843e,_0x189b5e,_0x153a67,_0x5472c0,_0x112b2d,_0x1b5747,_0x3aedfe,_0x291929,_0x26bef2,_0x39e914){const _0x16b36e=_0x2f1425;super(_0x4b35ee,_0x440cce,_0x5c4d72,_0x425be0,_0x816b44,_0x4bfeb5,_0x164fb6,_0x13843e,_0x1b5747,_0x3aedfe,_0x291929,_0x26bef2,_0x39e914),this[_0x16b36e(0x437)]=_0x4b35ee,this[_0x16b36e(0x3c5)]=_0x5c4d72,this[_0x16b36e(0x3b2)]=_0x189b5e,this['_docTransformIMECacheService']=_0x153a67,this[_0x16b36e(0x3e3)]=_0x5472c0,this[_0x16b36e(0x295)]=_0x112b2d;}['_createHandler'](){const _0x4543e9=_0x2f1425,_0xc203cf=super[_0x4543e9(0x485)]();return _0xc203cf['onTransformIME']=_0x3ee2e9=>this['_docTransformIMECacheService'][_0x4543e9(0x3f3)](_0x3ee2e9),_0xc203cf[_0x4543e9(0x1d2)]=_0x579ecb=>this[_0x4543e9(0x3e3)][_0x4543e9(0x4df)](_0x579ecb),_0xc203cf['onSyncEditingCollabCursor']=_0x231f56=>this['_docSyncEditingCollabCursorService'][_0x4543e9(0x2d3)](_0x231f56),_0xc203cf['onTransformRemoteChangesetByIMECache']=_0x47d2a3=>this[_0x4543e9(0x297)]['transformRemoteChangeset'](_0x47d2a3),_0xc203cf;}async[_0x2f1425(0x34f)](){const _0x1d4d3b=_0x2f1425,_0x2222a1=await super[_0x1d4d3b(0x34f)]();return this[_0x1d4d3b(0x425)](this[_0x1d4d3b(0x4b2)][_0x1d4d3b(0x40b)]((_0x40fb5c,_0x3e9b0d)=>{const _0x14951a=_0x1d4d3b;if(_0x40fb5c[_0x14951a(0x3c5)]!==a['CommandType']['MUTATION']||_0x3e9b0d!=null&&_0x3e9b0d[_0x14951a(0x420)]||_0x3e9b0d!=null&&_0x3e9b0d['onlyLocal'])return;const _0x4b7eae=_0x40fb5c[_0x14951a(0x3d5)];if((_0x4b7eae==null?void 0x0:_0x4b7eae['unitId'])!==this[_0x14951a(0x437)])return;let _0x835d14=_0x40fb5c;if(_0x835d14['id']===V['RichTextEditingMutation']['id']){const _0xfbcae5=_0x835d14['params'];_0x835d14={'id':V[_0x14951a(0x57e)]['id'],'type':a[_0x14951a(0x3bf)][_0x14951a(0x3c2)],'params':{'unitId':_0xfbcae5[_0x14951a(0x406)],'actions':_0xfbcae5[_0x14951a(0x2dc)],'textRanges':null}};}const _0x24c36d=this[_0x14951a(0x461)][_0x14951a(0x221)][_0x14951a(0x4a8)](this[_0x14951a(0x461)][_0x14951a(0x221)][_0x14951a(0x371)]()['COMPRESS_MUTATION_SEND'])([_0x835d14],null)||[_0x835d14];this['_onLocalMutation'](_0x24c36d[0x0]);})),_0x2222a1;}},exports[_0x2f1425(0x358)]=Ke([I(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),I(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),I(0x5,a['Inject'](_[_0x2f1425(0x3f1)])),I(0x6,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),I(0x7,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),I(0x8,a[_0x2f1425(0x4d1)](w[_0x2f1425(0x573)])),I(0x9,a[_0x2f1425(0x4d1)](fe)),I(0xa,a[_0x2f1425(0x4d1)](me)),I(0xb,a[_0x2f1425(0x4d1)](Ye)),I(0xc,a[_0x2f1425(0x2e3)]),I(0xd,a[_0x2f1425(0x477)]),I(0xe,N[_0x2f1425(0x48c)]),I(0xf,a['IPermissionService']),I(0x10,a['Optional'](be))],exports[_0x2f1425(0x358)]),exports['SheetCollaborationEntity']=class extends exports[_0x2f1425(0x32b)]{constructor(_0x25dfe8,_0x56f161,_0x139c34,_0x1c4c31,_0x4e9e42,_0x306263,_0x5df584,_0x510161,_0x375051,_0x54786b,_0x2b900a,_0x4006fb,_0x1e3b11,_0x548014){const _0x18c41e=_0x2f1425;super(_0x25dfe8,_0x139c34,_0x56f161,_0x1c4c31,_0x4e9e42,_0x306263,_0x5df584,_0x510161,_0x54786b,_0x2b900a,_0x4006fb,_0x1e3b11,_0x548014),this[_0x18c41e(0x437)]=_0x25dfe8,this[_0x18c41e(0x3c5)]=_0x56f161,this[_0x18c41e(0x31a)]=_0x375051;}[_0x2f1425(0x485)](){const _0x1bfeda=_0x2f1425,_0x1fca90=super[_0x1bfeda(0x485)]();return _0x1fca90[_0x1bfeda(0x1d2)]=_0x421165=>this['_sheetTransformSelectionsService']['transformSelections'](_0x421165),_0x1fca90;}async[_0x2f1425(0x34f)](){const _0x4a2821=_0x2f1425,_0x54ab1f=await super[_0x4a2821(0x34f)]();return this[_0x4a2821(0x425)](this[_0x4a2821(0x4b2)][_0x4a2821(0x40b)]((_0x52f20b,_0x219f3f)=>{const _0x45e4d3=_0x4a2821;if(_0x52f20b[_0x45e4d3(0x3c5)]!==a['CommandType'][_0x45e4d3(0x3c2)]||_0x219f3f!=null&&_0x219f3f[_0x45e4d3(0x420)]||_0x219f3f!=null&&_0x219f3f[_0x45e4d3(0x1ab)])return;const _0x80388e=_0x52f20b[_0x45e4d3(0x3d5)];if((_0x80388e==null?void 0x0:_0x80388e[_0x45e4d3(0x406)])!==this['unitID'])return;const _0x1659b0=_0x52f20b,_0x5338c5=this['_compressMutationService'][_0x45e4d3(0x221)][_0x45e4d3(0x4a8)](this[_0x45e4d3(0x461)][_0x45e4d3(0x221)][_0x45e4d3(0x371)]()['COMPRESS_MUTATION_SEND'])([_0x1659b0],null)||[_0x1659b0];this['_onLocalMutation'](_0x5338c5[0x0]);})),_0x54ab1f;}},exports[_0x2f1425(0x4f2)]=Ke([I(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),I(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),I(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x3f1)])),I(0x6,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),I(0x7,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),I(0x8,a[_0x2f1425(0x4d1)](ge)),I(0x9,a['ILogService']),I(0xa,a[_0x2f1425(0x477)]),I(0xb,N['IMessageService']),I(0xc,a[_0x2f1425(0x18e)]),I(0xd,a[_0x2f1425(0x42b)](be))],exports[_0x2f1425(0x4f2)]);var ks=Object[_0x2f1425(0x1cf)],Bs=Object[_0x2f1425(0x2ab)],Vs=(_0x128dcf,_0x540e70,_0x4b2713,_0x29fbd6)=>{const _0x44bf34=_0x2f1425;for(var _0x4e8b22=_0x29fbd6>0x1?void 0x0:_0x29fbd6?Bs(_0x540e70,_0x4b2713):_0x540e70,_0x79d4aa=_0x128dcf[_0x44bf34(0x38d)]-0x1,_0x15689d;_0x79d4aa>=0x0;_0x79d4aa--)(_0x15689d=_0x128dcf[_0x79d4aa])&&(_0x4e8b22=(_0x29fbd6?_0x15689d(_0x540e70,_0x4b2713,_0x4e8b22):_0x15689d(_0x4e8b22))||_0x4e8b22);return _0x29fbd6&&_0x4e8b22&&ks(_0x540e70,_0x4b2713,_0x4e8b22),_0x4e8b22;},Ue=(_0x2e3cd9,_0x163095)=>(_0x13a90f,_0x107413)=>_0x163095(_0x13a90f,_0x107413,_0x2e3cd9);exports[_0x2f1425(0x4f1)]=class extends a[_0x2f1425(0x25b)]{constructor(_0x527c9a,_0x1cda5d,_0x2f82c5){const _0xff55f9=_0x2f1425;super(),d(this,_0xff55f9(0x4d5),new Map()),d(this,_0xff55f9(0x46f),new v[(_0xff55f9(0x368))]()),(this['_injector']=_0x527c9a,this['_collabSessionService']=_0x1cda5d,this[_0xff55f9(0x458)]=_0x2f82c5,this['_init']());}[_0x2f1425(0x235)](){const _0x5f234f=_0x2f1425;super[_0x5f234f(0x235)](),this['_entities'][_0x5f234f(0x28e)](_0x2baf81=>_0x2baf81[_0x5f234f(0x235)]()),this['_entities'][_0x5f234f(0x441)]();}[_0x2f1425(0x216)](_0x44d6f0){const _0x4577f1=_0x2f1425;var _0x81b9e9;return(_0x81b9e9=this['_entities'][_0x4577f1(0x41b)](_0x44d6f0))!=null?_0x81b9e9:null;}[_0x2f1425(0x384)](_0xd5bc6c){const _0x10ed17=_0x2f1425,_0x4d2df9=this[_0x10ed17(0x216)](_0xd5bc6c);return _0x4d2df9?v['of'](_0x4d2df9):this[_0x10ed17(0x46f)]['pipe'](E[_0x10ed17(0x2b7)](_0x3b66e5=>_0x3b66e5[_0x10ed17(0x437)]===_0xd5bc6c));}[_0x2f1425(0x34f)](){const _0x31ac0e=_0x2f1425;this[_0x31ac0e(0x458)][_0x31ac0e(0x4e4)](a[_0x31ac0e(0x35f)]['UNIVER_SHEET'])[_0x31ac0e(0x53d)](v['takeUntil'](this[_0x31ac0e(0x2b4)]),E[_0x31ac0e(0x39d)](0x10))[_0x31ac0e(0x3ca)](async _0x470b46=>{const _0x13a5a1=_0x31ac0e,_0x10eee4=_0x470b46['getUnitId'](),_0xa1eb4d=await this['_startCollaboration'](_0x10eee4,j[_0x13a5a1(0x1bf)]);this[_0x13a5a1(0x4d5)][_0x13a5a1(0x36e)](_0x10eee4,_0xa1eb4d);}),this[_0x31ac0e(0x458)][_0x31ac0e(0x4e4)](a[_0x31ac0e(0x35f)][_0x31ac0e(0x3df)])['pipe'](v[_0x31ac0e(0x275)](this[_0x31ac0e(0x2b4)]),E[_0x31ac0e(0x39d)](0x10))[_0x31ac0e(0x53d)](E[_0x31ac0e(0x2b7)](_0x194816=>!_0x194816['getUnitId']()[_0x31ac0e(0x19f)]('__')))['subscribe'](async _0xa376d5=>{const _0x45eeb0=_0x31ac0e,_0x3f2452=_0xa376d5[_0x45eeb0(0x1fa)](),_0x5a7b7d=await this[_0x45eeb0(0x1bc)](_0x3f2452,j[_0x45eeb0(0x3df)]);this['_entities']['set'](_0x3f2452,_0x5a7b7d);}),v['merge'](this[_0x31ac0e(0x458)][_0x31ac0e(0x260)](a['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService'][_0x31ac0e(0x260)](a[_0x31ac0e(0x35f)][_0x31ac0e(0x3df)]))[_0x31ac0e(0x53d)](v[_0x31ac0e(0x275)](this[_0x31ac0e(0x2b4)]))['subscribe'](_0x575794=>{const _0x17ec66=_0x31ac0e,_0x2ebe88=_0x575794[_0x17ec66(0x1fa)](),_0x3459be=this['_entities'][_0x17ec66(0x41b)](_0x2ebe88);_0x3459be&&(_0x3459be[_0x17ec66(0x235)](),this[_0x17ec66(0x4d5)]['delete'](_0x2ebe88));});}async[_0x2f1425(0x1bc)](_0x5d3410,_0x215a3b){const _0x4eaf6d=_0x2f1425,_0x3cfdaf=await this[_0x4eaf6d(0x4e8)][_0x4eaf6d(0x1a6)](_0x5d3410),_0x3e7c99=this[_0x4eaf6d(0x4fa)][_0x4eaf6d(0x49c)](this[_0x4eaf6d(0x32f)](_0x215a3b),_0x5d3410,_0x215a3b,_0x3cfdaf);return await _0x3e7c99['init'](),this[_0x4eaf6d(0x46f)][_0x4eaf6d(0x500)](_0x3e7c99),_0x3e7c99;}[_0x2f1425(0x32f)](_0x3e6273){const _0x527183=_0x2f1425;switch(_0x3e6273){case j['UNIVER_DOC']:return exports[_0x527183(0x358)];case j[_0x527183(0x1bf)]:return exports[_0x527183(0x4f2)];default:throw new Error(_0x527183(0x1dc)+_0x3e6273);}}},exports[_0x2f1425(0x4f1)]=Vs([Ue(0x0,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),Ue(0x1,a['Inject'](exports[_0x2f1425(0x1d4)])),Ue(0x2,a[_0x2f1425(0x468)])],exports['CollaborationController']);const nt=[_0x2f1425(0x548),_0x2f1425(0x248),_0x2f1425(0x2a6),_0x2f1425(0x4bc),_0x2f1425(0x463),'gold400'];class Xe extends a[_0x2f1425(0x387)]{constructor(){const _0x203c79=_0x2f1425;super(...arguments),d(this,_0x203c79(0x54e),new Map()),d(this,_0x203c79(0x4c1),0x0);}[_0x2f1425(0x445)](_0x3f3b93){const _0x19b6dc=_0x2f1425;if(this[_0x19b6dc(0x54e)]['has'](_0x3f3b93))return this[_0x19b6dc(0x54e)][_0x19b6dc(0x41b)](_0x3f3b93);const _0x35e9b0=nt[this[_0x19b6dc(0x4c1)]];return this[_0x19b6dc(0x4c1)]=(this['_colorIndex']+0x1)%nt[_0x19b6dc(0x38d)],this[_0x19b6dc(0x54e)]['set'](_0x3f3b93,_0x35e9b0),_0x35e9b0;}}var Ws=Object[_0x2f1425(0x1cf)],Fs=Object[_0x2f1425(0x2ab)],Gs=(_0x2c567d,_0x44e998,_0x327f11,_0x30a6d9)=>{const _0x532f46=_0x2f1425;for(var _0x36084e=_0x30a6d9>0x1?void 0x0:_0x30a6d9?Fs(_0x44e998,_0x327f11):_0x44e998,_0x29e674=_0x2c567d[_0x532f46(0x38d)]-0x1,_0xd9151;_0x29e674>=0x0;_0x29e674--)(_0xd9151=_0x2c567d[_0x29e674])&&(_0x36084e=(_0x30a6d9?_0xd9151(_0x44e998,_0x327f11,_0x36084e):_0xd9151(_0x36084e))||_0x36084e);return _0x30a6d9&&_0x36084e&&Ws(_0x44e998,_0x327f11,_0x36084e),_0x36084e;},K=(_0x551f8b,_0x53f519)=>(_0xbaece3,_0xb412e1)=>_0x53f519(_0xbaece3,_0xb412e1,_0x551f8b);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x2f1425(0x25b)]{constructor(_0x42b182,_0x1cb03c,_0xbe73ab,_0x1cf1a1,_0xf2a3ea,_0x4b265e,_0x48d558,_0x406d57,_0x397690){const _0x301ae2=_0x2f1425;super(),d(this,_0x301ae2(0x1f7),!0x1),d(this,_0x301ae2(0x34f),!0x1),d(this,_0x301ae2(0x4e0),new v['BehaviorSubject'](new Map())),d(this,_0x301ae2(0x363),this[_0x301ae2(0x4e0)][_0x301ae2(0x2fd)]()),d(this,_0x301ae2(0x173),new v[(_0x301ae2(0x21d))]([])),d(this,'roomMembers$',this[_0x301ae2(0x173)][_0x301ae2(0x53d)](v[_0x301ae2(0x320)](Ys))),d(this,_0x301ae2(0x34b),a[_0x301ae2(0x535)](_0x3ea263=>{const _0xa5ae83=_0x301ae2,_0x204388={'eventID':_[_0xa5ae83(0x565)][_0xa5ae83(0x20c)],'data':{'unitID':this['unitID'],'memberID':this[_0xa5ae83(0x472)][_0xa5ae83(0x280)](),'selection':Tt(_0x3ea263)}};this[_0xa5ae83(0x472)][_0xa5ae83(0x4b6)](_0x204388,this[_0xa5ae83(0x437)]);},Ks)),(this[_0x301ae2(0x437)]=_0x42b182,this[_0x301ae2(0x472)]=_0x1cb03c,this[_0x301ae2(0x4fa)]=_0xbe73ab,this[_0x301ae2(0x1f4)]=_0x1cf1a1,this[_0x301ae2(0x43f)]=_0xf2a3ea,this['_syncEditingCollabCursorService']=_0x4b265e,this[_0x301ae2(0x3fd)]=_0x48d558,this['_univerInstanceService']=_0x406d57,this[_0x301ae2(0x4b2)]=_0x397690);}get[_0x2f1425(0x1ef)](){const _0x410883=_0x2f1425;return this[_0x410883(0x4e0)][_0x410883(0x267)]();}get[_0x2f1425(0x560)](){const _0x2dfadd=_0x2f1425;return this[_0x2dfadd(0x173)][_0x2dfadd(0x267)]();}[_0x2f1425(0x235)](){const _0x2172b4=_0x2f1425;super[_0x2172b4(0x235)](),this[_0x2172b4(0x4e0)][_0x2172b4(0x500)](new Map()),this['_cursorInfo$'][_0x2172b4(0x342)](),this[_0x2172b4(0x173)][_0x2172b4(0x500)]([]),this[_0x2172b4(0x173)]['complete']();}[_0x2f1425(0x2fc)](){const _0x256218=_0x2f1425;this['_init']||(this['_init']=!0x0,this['_session'][_0x256218(0x3a7)]['pipe'](v[_0x256218(0x275)](this[_0x256218(0x2b4)]))['subscribe'](_0x23afed=>{const _0x5b2443=_0x256218;_0x23afed===$['ONLINE']?this[_0x5b2443(0x462)]():this['_toggleOffline']();}),this[_0x256218(0x472)][_0x256218(0x4f8)][_0x256218(0x53d)](v[_0x256218(0x275)](this[_0x256218(0x2b4)]))[_0x256218(0x3ca)](_0xf3b9b6=>{const _0x4882a2=_0x256218,_0x5347a8=_0xf3b9b6['eventID'];_0x5347a8===_[_0x4882a2(0x565)][_0x4882a2(0x20c)]&&this[_0x4882a2(0x512)](_0xf3b9b6),_0x5347a8===_[_0x4882a2(0x565)][_0x4882a2(0x4af)]&&this[_0x4882a2(0x544)](_0xf3b9b6);}),this['disposeWithMe'](this[_0x256218(0x4b2)][_0x256218(0x40b)](_0x2e83af=>{const _0x51e85c=_0x256218,_0x7976fe=_0x2e83af[_0x51e85c(0x3d5)];_0x7976fe!=null&&this[_0x51e85c(0x1f7)]&&_0x2e83af['id']===V['SetTextSelectionsOperation']['id']&&_0x7976fe['unitId']===this[_0x51e85c(0x437)]&&_0x7976fe[_0x51e85c(0x26a)]===!0x1&&this[_0x51e85c(0x34b)](_0x7976fe[_0x51e85c(0x344)]);})),this[_0x256218(0x511)][_0x256218(0x36a)][_0x256218(0x53d)](v[_0x256218(0x275)](this[_0x256218(0x2b4)]))[_0x256218(0x3ca)](_0x3be22d=>{const _0x245577=_0x256218;if((_0x3be22d==null?void 0x0:_0x3be22d[_0x245577(0x437)])!==this[_0x245577(0x437)])return;const _0x1fb512={'eventID':_[_0x245577(0x565)][_0x245577(0x20c)],'data':_0x3be22d};this[_0x245577(0x512)](_0x1fb512);}),this[_0x256218(0x425)](this[_0x256218(0x4b2)][_0x256218(0x40b)](_0x433800=>{const _0x186041=_0x256218;if(_0x433800[_0x186041(0x3d5)]==null)return;const _0x67ad78=_0x433800[_0x186041(0x3d5)];if(_0x433800['id']!==V[_0x186041(0x57e)]['id']||_0x67ad78[_0x186041(0x406)]!==this[_0x186041(0x437)])return;const _0x743079={'id':'doc.mutation.rich-text-editing','params':_0x67ad78},_0x51323b=this[_0x186041(0x1ef)];for(const [_0x4e2894,_0x223692]of _0x51323b){const _0x272b32={'id':_0x186041(0x4e5),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x223692[_0x186041(0x344)]}},_0x4a4169=this['_transformService']['transformMutation'](_0x743079,_0x272b32,!0x1);if(_['isTransformMutationFailure'](_0x4a4169))throw _0x4a4169['error'];_0x51323b[_0x186041(0x36e)](_0x4e2894,{..._0x223692,'ranges':_0x4a4169['m2Prime'][_0x186041(0x3d5)][_0x186041(0x48d)]});}queueMicrotask(()=>{const _0x13b4fc=_0x186041;this[_0x13b4fc(0x4e0)][_0x13b4fc(0x500)](_0x51323b);});})));}[_0x2f1425(0x512)](_0x695a79){const _0x5cf1fe=_0x2f1425;var _0x1bf6f7,_0x2e4cfc;const {memberID:_0x5e3fb0,selection:_0x171251}=_0x695a79['data'],_0x516e91=Us(_0x171251),_0x1193b9=(_0x2e4cfc=(_0x1bf6f7=this[_0x5cf1fe(0x43f)][_0x5cf1fe(0x398)](this[_0x5cf1fe(0x437)],_0x5e3fb0))==null?void 0x0:_0x1bf6f7[_0x5cf1fe(0x46a)])!=null?_0x2e4cfc:_0x5cf1fe(0x2ca),_0x22029a={'color':this[_0x5cf1fe(0x1f4)][_0x5cf1fe(0x445)](_0x5e3fb0),'name':_0x1193b9,'ranges':_0x516e91},_0x10f579=this['cursorInfo'];_0x10f579[_0x5cf1fe(0x36e)](_0x5e3fb0,_0x22029a),this[_0x5cf1fe(0x4e0)]['next'](_0x10f579);}[_0x2f1425(0x544)](_0x37b0e4){const _0x319efc=_0x2f1425,{memberID:_0x3d6571}=_0x37b0e4[_0x319efc(0x2a5)],_0x32da9f=this['cursorInfo'];_0x32da9f[_0x319efc(0x28f)](_0x3d6571),this['_cursorInfo$']['next'](_0x32da9f);}[_0x2f1425(0x462)](){const _0x3d84a7=_0x2f1425;var _0x3aea30;if(this[_0x3d84a7(0x1f7)]=!0x0,((_0x3aea30=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x3aea30[_0x3d84a7(0x1fa)]())!==this[_0x3d84a7(0x437)])return;const _0x3180fa=this['_injector'][_0x3d84a7(0x41b)](V[_0x3d84a7(0x3b6)])['getDocRanges']();Array[_0x3d84a7(0x476)](_0x3180fa)&&_0x3180fa[_0x3d84a7(0x38d)]>0x0&&this['_updateLocalCursor'](_0x3180fa);}[_0x2f1425(0x3c0)](){const _0x22f96e=_0x2f1425;this[_0x22f96e(0x1f7)]=!0x1;}};$e=Gs([K(0x2,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),K(0x3,a[_0x2f1425(0x4d1)](Xe)),K(0x4,a[_0x2f1425(0x4d1)](q)),K(0x5,a[_0x2f1425(0x4d1)](Ye)),K(0x6,_[_0x2f1425(0x298)]),K(0x7,a[_0x2f1425(0x468)]),K(0x8,a[_0x2f1425(0x477)])],$e);var Xs=Object['defineProperty'],qs=Object[_0x2f1425(0x2ab)],zs=(_0x5699dd,_0x213f9d,_0x5a57ae,_0x5216bb)=>{for(var _0x25cbb2=_0x5216bb>0x1?void 0x0:_0x5216bb?qs(_0x213f9d,_0x5a57ae):_0x213f9d,_0x4850d0=_0x5699dd['length']-0x1,_0x341db1;_0x4850d0>=0x0;_0x4850d0--)(_0x341db1=_0x5699dd[_0x4850d0])&&(_0x25cbb2=(_0x5216bb?_0x341db1(_0x213f9d,_0x5a57ae,_0x25cbb2):_0x341db1(_0x25cbb2))||_0x25cbb2);return _0x5216bb&&_0x25cbb2&&Xs(_0x213f9d,_0x5a57ae,_0x25cbb2),_0x25cbb2;},Q=(_0x8b3d0c,_0x546f3a)=>(_0x1c4d6b,_0x3a83e6)=>_0x546f3a(_0x1c4d6b,_0x3a83e6,_0x8b3d0c);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x540dca=[],_0xaded45=!0x1;return _0x484d40=>{const _0x36d972=_0x4554;_0x540dca[_0x36d972(0x52d)](_0x484d40),_0xaded45||(_0xaded45=!0x0,setTimeout(()=>{const _0x4d67f4=_0x36d972;_0x540dca[_0x4d67f4(0x28e)](_0x271a22=>_0x271a22()),_0x540dca=[],_0xaded45=!0x1;}));};};let He=class extends a[_0x2f1425(0x25b)]{constructor(_0x516fe9,_0x244ecf,_0x40ba53,_0x4a1d3f,_0x184433,_0x167edd,_0x2c0add,_0x1e68a0){const _0x70189e=_0x2f1425;super(),d(this,_0x70189e(0x1f7),!0x1),d(this,_0x70189e(0x34f),!0x1),d(this,_0x70189e(0x4e0),new v['BehaviorSubject'](new Map())),d(this,_0x70189e(0x363),this[_0x70189e(0x4e0)][_0x70189e(0x2fd)]()),d(this,_0x70189e(0x173),new v['BehaviorSubject']([])),d(this,_0x70189e(0x431),this[_0x70189e(0x173)][_0x70189e(0x53d)](v['debounceTime'](Js))),d(this,_0x70189e(0x34b),a[_0x70189e(0x535)]((_0xad820d,_0x359319)=>{const _0x129f9b=_0x70189e,_0x5d871e={'eventID':_[_0x129f9b(0x565)][_0x129f9b(0x20c)],'data':{'unitID':this[_0x129f9b(0x437)],'memberID':this['_session']['getMemberID'](),'selection':Je[_0x129f9b(0x18f)](_0xad820d,_0x359319[_0x129f9b(0x4a6)])}};this[_0x129f9b(0x472)][_0x129f9b(0x4b6)](_0x5d871e,this[_0x129f9b(0x437)]);},Zs)),(this['unitID']=_0x516fe9,this[_0x70189e(0x472)]=_0x244ecf,this[_0x70189e(0x4fa)]=_0x40ba53,this[_0x70189e(0x1f4)]=_0x4a1d3f,this[_0x70189e(0x43f)]=_0x184433,this['_univerInstanceService']=_0x167edd,this[_0x70189e(0x4b2)]=_0x2c0add,this[_0x70189e(0x2f6)]=_0x1e68a0);}get[_0x2f1425(0x1ef)](){const _0xb86f32=_0x2f1425;return this[_0xb86f32(0x4e0)][_0xb86f32(0x267)]();}get[_0x2f1425(0x560)](){const _0x242cfc=_0x2f1425;return this[_0x242cfc(0x173)]['getValue']();}[_0x2f1425(0x235)](){const _0x1a3790=_0x2f1425;super['dispose'](),this[_0x1a3790(0x4e0)]['next'](new Map()),this[_0x1a3790(0x4e0)]['complete'](),this[_0x1a3790(0x173)][_0x1a3790(0x500)]([]),this['_roomMembers$']['complete']();}[_0x2f1425(0x2fc)](){const _0x5873af=_0x2f1425;this[_0x5873af(0x34f)]||(this[_0x5873af(0x34f)]=!0x0,this[_0x5873af(0x472)][_0x5873af(0x3a7)][_0x5873af(0x53d)](v['takeUntil'](this['dispose$']))[_0x5873af(0x3ca)](_0x21dfff=>{const _0xa123e8=_0x5873af;_0x21dfff===$['ONLINE']?this['_toggleOnline']():this[_0xa123e8(0x3c0)]();}),this['_session']['event$'][_0x5873af(0x53d)](v[_0x5873af(0x275)](this[_0x5873af(0x2b4)]))[_0x5873af(0x3ca)](_0x173e3f=>{const _0x152658=_0x5873af,_0x17ab7d=_0x173e3f[_0x152658(0x188)];_0x17ab7d===_['CollaborationEvent'][_0x152658(0x20c)]&&this[_0x152658(0x512)](_0x173e3f),_0x17ab7d===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x152658(0x544)](_0x173e3f);}),this[_0x5873af(0x3be)](),this[_0x5873af(0x425)](this[_0x5873af(0x4b2)]['onCommandExecuted'](_0x86eb2e=>{const _0x3f0521=_0x5873af;if(this[_0x3f0521(0x1f7)]&&_0x86eb2e['id']===C[_0x3f0521(0x183)]['id']&&_0x86eb2e[_0x3f0521(0x3d5)]['unitId']===this[_0x3f0521(0x437)]){const _0x5ccf8d=_0x86eb2e[_0x3f0521(0x3d5)];this[_0x3f0521(0x34b)](_0x5ccf8d['subUnitId'],_0x5ccf8d[_0x3f0521(0x262)][0x0]);}})));}[_0x2f1425(0x512)](_0x4cc120){const _0x1cef4e=_0x2f1425;var _0x1e9bb5,_0x1435c7;const {memberID:_0x2c9ad5,selection:_0x24240f}=_0x4cc120['data'],{sheetName:_0x4e835f,range:_0x470e7c}=Je[_0x1cef4e(0x29d)](_0x24240f),_0x5b3629={'name':(_0x1435c7=(_0x1e9bb5=this[_0x1cef4e(0x43f)][_0x1cef4e(0x398)](this['unitID'],_0x2c9ad5))==null?void 0x0:_0x1e9bb5[_0x1cef4e(0x46a)])!=null?_0x1435c7:'Unknown\x20user','range':this[_0x1cef4e(0x278)](_0x4e835f,_0x470e7c),'sheetID':_0x4e835f,'color':this[_0x1cef4e(0x1f4)][_0x1cef4e(0x445)](_0x2c9ad5),'selection':_0x24240f},_0x39fa56=this[_0x1cef4e(0x1ef)];_0x39fa56[_0x1cef4e(0x36e)](_0x2c9ad5,_0x5b3629),this['_cursorInfo$'][_0x1cef4e(0x500)](_0x39fa56);}[_0x2f1425(0x544)](_0x1f2bb1){const _0x20c550=_0x2f1425,{memberID:_0x5aa84e}=_0x1f2bb1['data'],_0x97acb=this[_0x20c550(0x1ef)];_0x97acb[_0x20c550(0x28f)](_0x5aa84e),this['_cursorInfo$'][_0x20c550(0x500)](_0x97acb);}[_0x2f1425(0x278)](_0x7fe6f4,_0x443d5e){const _0x397521=_0x2f1425;var _0x290a99,_0x168571;const _0x19da5e=(_0x168571=(_0x290a99=this[_0x397521(0x458)]['getUniverSheetInstance'](this[_0x397521(0x437)]))==null?void 0x0:_0x290a99[_0x397521(0x2af)](_0x7fe6f4))==null?void 0x0:_0x168571['getMergeData']();return(_0x19da5e==null?void 0x0:_0x19da5e['find'](_0x5535ac=>a[_0x397521(0x4fd)]['contains'](_0x5535ac,_0x443d5e)))||_0x443d5e;}['_onRefRangeChange'](){const _0x3fe57d=_0x2f1425,_0xd15ada=new a['DisposableCollection'](),_0x2088a2=Qs(),_0x5eb9ae=()=>{const _0x1254e3=_0x4554;_0xd15ada[_0x1254e3(0x235)]();const _0x1021d8=(_0x17345b,_0x2880e5,_0x351776,_0x42e4c3)=>{const _0x28841a=_0x1254e3;let _0x3b21ab=[];switch(_0x17345b['id']){case C['EffectRefRangId'][_0x28841a(0x257)]:{_0x3b21ab=C[_0x28841a(0x317)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x2e2)]:{_0x3b21ab=C[_0x28841a(0x4a3)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x17a)]:{_0x3b21ab=C['handleInsertCol'](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x4dc)]:{_0x3b21ab=C[_0x28841a(0x506)](_0x17345b,_0x42e4c3);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x3b21ab=C[_0x28841a(0x3cf)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)]['InsertRowCommandId']:{_0x3b21ab=C[_0x28841a(0x3d6)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x25e)]:{_0x3b21ab=C[_0x28841a(0x382)](_0x17345b,_0x42e4c3);break;}case C['EffectRefRangId']['RemoveColCommandId']:{_0x3b21ab=C['handleIRemoveCol'](_0x17345b,_0x42e4c3);break;}case C['EffectRefRangId'][_0x28841a(0x538)]:{_0x3b21ab=C[_0x28841a(0x20b)](_0x17345b,_0x42e4c3);break;}}const _0x32fe9d=C[_0x28841a(0x3ea)](_0x3b21ab,_0x42e4c3),_0x9304f4=this[_0x28841a(0x1ef)][_0x28841a(0x41b)](_0x2880e5);if(_0x9304f4&&_0x32fe9d){const _0x4b3334={..._0x9304f4,'range':_0x32fe9d};this[_0x28841a(0x1ef)][_0x28841a(0x36e)](_0x2880e5,_0x4b3334),_0x2088a2(()=>{const _0x170b0a=_0x28841a,_0xcf4b06=this[_0x170b0a(0x2f6)][_0x170b0a(0x539)](_0x32fe9d,_0x1d9aef=>(_0xcf4b06['dispose'](),_0x1021d8(_0x1d9aef,_0x2880e5,_0x351776,_0x32fe9d)));_0xd15ada[_0x170b0a(0x1fd)](_0xcf4b06);});}return{'redos':[],'undos':[]};};this[_0x1254e3(0x1ef)][_0x1254e3(0x28e)]((_0x18ac48,_0x512f53)=>{const _0x1eb993=_0x1254e3,{range:_0x38f146,sheetID:_0xaa7b89}=_0x18ac48,_0x18a67d=this[_0x1eb993(0x2f6)][_0x1eb993(0x539)](_0x38f146,_0x1f0de5=>(_0x18a67d['dispose'](),_0x1021d8(_0x1f0de5,_0x512f53,_0xaa7b89,_0x38f146)));_0xd15ada[_0x1eb993(0x1fd)](_0x18a67d);});};this[_0x3fe57d(0x425)](a[_0x3fe57d(0x2df)](this['_cursorInfo$'][_0x3fe57d(0x3ca)](()=>{_0x5eb9ae();})));}[_0x2f1425(0x462)](){const _0x557626=_0x2f1425;var _0x29e9e0,_0x291edd;if(this[_0x557626(0x1f7)]=!0x0,((_0x29e9e0=this[_0x557626(0x458)][_0x557626(0x199)]())==null?void 0x0:_0x29e9e0[_0x557626(0x1fa)]())!==this[_0x557626(0x437)])return;const _0x400f04=(_0x291edd=this[_0x557626(0x4fa)][_0x557626(0x41b)](C[_0x557626(0x446)])['getCurrentSelections']())==null?void 0x0:_0x291edd[0x0],_0x50ba52=this[_0x557626(0x458)][_0x557626(0x1b6)](a[_0x557626(0x35f)][_0x557626(0x1bf)])[_0x557626(0x51e)]();_0x400f04&&_0x50ba52&&this[_0x557626(0x34b)](_0x50ba52[_0x557626(0x1be)](),_0x400f04);}['_toggleOffline'](){const _0x218867=_0x2f1425;this[_0x218867(0x1f7)]=!0x1;}};He=zs([Q(0x2,a['Inject'](a['Injector'])),Q(0x3,a['Inject'](Xe)),Q(0x4,a[_0x2f1425(0x4d1)](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a[_0x2f1425(0x477)]),Q(0x7,a[_0x2f1425(0x4d1)](C[_0x2f1425(0x3d9)]))],He);var ei=Object['defineProperty'],ti=Object[_0x2f1425(0x2ab)],si=(_0x473372,_0x55b299,_0xbb50d5,_0x1d6354)=>{const _0x12b0bf=_0x2f1425;for(var _0x146d29=_0x1d6354>0x1?void 0x0:_0x1d6354?ti(_0x55b299,_0xbb50d5):_0x55b299,_0x764dbe=_0x473372[_0x12b0bf(0x38d)]-0x1,_0x229c3f;_0x764dbe>=0x0;_0x764dbe--)(_0x229c3f=_0x473372[_0x764dbe])&&(_0x146d29=(_0x1d6354?_0x229c3f(_0x55b299,_0xbb50d5,_0x146d29):_0x229c3f(_0x146d29))||_0x146d29);return _0x1d6354&&_0x146d29&&ei(_0x55b299,_0xbb50d5,_0x146d29),_0x146d29;},Pe=(_0x2725ec,_0x26f32c)=>(_0x217b1a,_0x289c74)=>_0x26f32c(_0x217b1a,_0x289c74,_0x2725ec);let ie=class extends a['RxDisposable']{constructor(_0x255c08,_0x5dfae9,_0x108366){const _0x5184ce=_0x2f1425;super(),d(this,_0x5184ce(0x4d5),new Map()),d(this,_0x5184ce(0x46f),new v['Subject']()),(this[_0x5184ce(0x458)]=_0x255c08,this[_0x5184ce(0x4fa)]=_0x5dfae9,this[_0x5184ce(0x4e8)]=_0x108366,this[_0x5184ce(0x34f)]());}[_0x2f1425(0x235)](){const _0x2a338c=_0x2f1425;super[_0x2a338c(0x235)](),this[_0x2a338c(0x46f)][_0x2a338c(0x342)](),this[_0x2a338c(0x4d5)]['forEach'](_0x10074e=>_0x10074e[_0x2a338c(0x235)]());}['getCollabCursors$'](_0x1b8c24){const _0x37786e=_0x2f1425;return this['_entities'][_0x37786e(0x555)](_0x1b8c24)?this[_0x37786e(0x4d5)][_0x37786e(0x41b)](_0x1b8c24)[_0x37786e(0x363)]:this[_0x37786e(0x46f)][_0x37786e(0x53d)](v[_0x37786e(0x2b7)](_0x6bd5de=>_0x6bd5de['unitID']===_0x1b8c24),v[_0x37786e(0x3d7)](_0x483d6b=>_0x483d6b[_0x37786e(0x363)]));}[_0x2f1425(0x34f)](){const _0x3ae56d=_0x2f1425;this[_0x3ae56d(0x458)]['getTypeOfUnitAdded$'](a[_0x3ae56d(0x35f)][_0x3ae56d(0x1bf)])['pipe'](v[_0x3ae56d(0x275)](this['dispose$']))[_0x3ae56d(0x3ca)](async _0x48e4c7=>{const _0x495898=_0x3ae56d,_0x2b246b=_0x48e4c7[_0x495898(0x1fa)](),_0x421490=await this[_0x495898(0x354)](_0x2b246b);this[_0x495898(0x46f)][_0x495898(0x500)](_0x421490),this['_entities']['set'](_0x2b246b,_0x421490);}),this[_0x3ae56d(0x458)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC'])['pipe'](v['takeUntil'](this[_0x3ae56d(0x2b4)]))[_0x3ae56d(0x53d)](v[_0x3ae56d(0x2b7)](_0x115e22=>!_0x115e22[_0x3ae56d(0x1fa)]()['startsWith']('__')))['subscribe'](async _0x170a72=>{const _0x17bbb4=_0x3ae56d,_0x569ef5=_0x170a72[_0x17bbb4(0x1fa)](),_0x1dcd93=await this[_0x17bbb4(0x37a)](_0x569ef5);this[_0x17bbb4(0x46f)][_0x17bbb4(0x500)](_0x1dcd93),this[_0x17bbb4(0x4d5)][_0x17bbb4(0x36e)](_0x569ef5,_0x1dcd93);}),v[_0x3ae56d(0x18a)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3ae56d(0x35f)][_0x3ae56d(0x3df)]),this[_0x3ae56d(0x458)][_0x3ae56d(0x260)](a[_0x3ae56d(0x35f)][_0x3ae56d(0x1bf)]))['pipe'](v['takeUntil'](this[_0x3ae56d(0x2b4)]))[_0x3ae56d(0x3ca)](_0x586933=>{const _0x27c63b=_0x3ae56d,_0x1e83cc=_0x586933['getUnitId'](),_0x4a104b=this[_0x27c63b(0x4d5)][_0x27c63b(0x41b)](_0x1e83cc);_0x4a104b&&(_0x4a104b[_0x27c63b(0x235)](),this[_0x27c63b(0x4d5)][_0x27c63b(0x28f)](_0x1e83cc));});}async['_startSheetCollabCursor'](_0x38bbbe){const _0x11b0d5=_0x2f1425,_0x129c22=await this['_collabSessionService'][_0x11b0d5(0x1a6)](_0x38bbbe),_0x4b30c7=this[_0x11b0d5(0x4fa)][_0x11b0d5(0x49c)](He,_0x38bbbe,_0x129c22);return _0x4b30c7[_0x11b0d5(0x2fc)](),_0x4b30c7;}async[_0x2f1425(0x37a)](_0x1ffb35){const _0x23e330=_0x2f1425,_0xecd04e=await this[_0x23e330(0x4e8)][_0x23e330(0x1a6)](_0x1ffb35),_0x2a16df=this[_0x23e330(0x4fa)]['createInstance']($e,_0x1ffb35,_0xecd04e);return _0x2a16df[_0x23e330(0x2fc)](),_0x2a16df;}};ie=si([Pe(0x0,a['IUniverInstanceService']),Pe(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),Pe(0x2,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x1d4)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x49a342,_0x23adb4){const _0x68c15a=_0x2f1425;let {radius:_0x4dd0ee,width:_0x497a52,height:_0x5b9c89}=_0x23adb4;_0x4dd0ee=_0x4dd0ee!=null?_0x4dd0ee:0x0,_0x497a52=_0x497a52!=null?_0x497a52:0x1e,_0x5b9c89=_0x5b9c89!=null?_0x5b9c89:0x1e;let _0x177483=0x0,_0x43d1e4=0x0,_0x173bf7=0x0;_0x177483=_0x43d1e4=_0x173bf7=Math[_0x68c15a(0x51b)](_0x4dd0ee,_0x497a52/0x2,_0x5b9c89/0x2),_0x49a342['beginPath'](),_0x49a342[_0x68c15a(0x1e7)](_0x177483,0x0),_0x49a342[_0x68c15a(0x2c3)](_0x497a52-_0x43d1e4,0x0),_0x49a342[_0x68c15a(0x40d)](_0x497a52-_0x43d1e4,_0x43d1e4,_0x43d1e4,Math['PI']*0x3/0x2,0x0,!0x1),_0x49a342[_0x68c15a(0x2c3)](_0x497a52,_0x5b9c89-_0x173bf7),_0x49a342['arc'](_0x497a52-_0x173bf7,_0x5b9c89-_0x173bf7,_0x173bf7,0x0,Math['PI']/0x2,!0x1),_0x49a342['lineTo'](0x0,_0x5b9c89),_0x49a342[_0x68c15a(0x2c3)](0x0,_0x177483),_0x49a342[_0x68c15a(0x40d)](_0x177483,_0x177483,_0x177483,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x49a342['closePath'](),_0x23adb4[_0x68c15a(0x203)]&&(_0x49a342[_0x68c15a(0x37d)](),_0x49a342[_0x68c15a(0x1f3)]=_0x23adb4['fill'],_0x23adb4['fillRule']===_0x68c15a(0x27b)?_0x49a342[_0x68c15a(0x203)](_0x68c15a(0x27b)):_0x49a342[_0x68c15a(0x203)](),_0x49a342['restore']());}class Te extends R[_0x2f1425(0x4c6)]{constructor(_0x5c278f,_0x2c6582){const _0x3d4b2e=_0x2f1425;super(_0x5c278f,_0x2c6582),d(this,_0x3d4b2e(0x247)),d(this,_0x3d4b2e(0x40f)),(this[_0x3d4b2e(0x247)]=_0x2c6582==null?void 0x0:_0x2c6582[_0x3d4b2e(0x247)],this[_0x3d4b2e(0x40f)]=_0x2c6582==null?void 0x0:_0x2c6582['text']);}static['drawWith'](_0x797d79,_0x5305a2){const _0x3e91b6=_0x2f1425,{text:_0x522e78,color:_0x5d316a}=_0x5305a2;_0x797d79[_0x3e91b6(0x37d)](),_0x797d79['font']=_0x3e91b6(0x1ea);const _0x27a191=_0x797d79[_0x3e91b6(0x44c)](_0x522e78)['width'],_0x49e1d3=Math[_0x3e91b6(0x51b)](_0x27a191+0x2*we,rt);ni(_0x797d79,{'height':ue,'radius':0x4,'width':_0x49e1d3,'fill':_0x5d316a,'evented':!0x1}),_0x797d79[_0x3e91b6(0x1f3)]=_0x3e91b6(0x1aa);const _0x35d0ed=we,_0x58662a=ue-ii,_0xb166e9=rt-0x2*we;if(_0x27a191>_0xb166e9){let _0x4c3209='',_0x26e9d5=0x0;for(const _0x3fc692 of _0x522e78){const _0x38a49e=_0x797d79[_0x3e91b6(0x44c)](_0x3fc692)[_0x3e91b6(0x4f6)];if(_0x26e9d5+_0x38a49e<=_0xb166e9-_0x797d79['measureText'](_0x3e91b6(0x505))[_0x3e91b6(0x4f6)])_0x4c3209+=_0x3fc692,_0x26e9d5+=_0x38a49e;else{_0x4c3209+=_0x3e91b6(0x505);break;}}_0x797d79['fillText'](_0x4c3209,_0x35d0ed,_0x58662a);}else _0x797d79[_0x3e91b6(0x467)](_0x522e78,_0x35d0ed,_0x58662a);_0x797d79['restore']();}[_0x2f1425(0x47e)](_0x2a459e){const _0x2a8e7e=_0x2f1425;Te[_0x2a8e7e(0x335)](_0x2a459e,this);}}const Me=_0x2f1425(0x22c),ri=_0x2f1425(0x182),oi=_0x2f1425(0x2c9),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x2f1425(0x1a9);class ot{constructor(_0x2c6877,_0x5f15d4,_0x5a1312,_0x2f561d){const _0xf89621=_0x2f1425;d(this,_0xf89621(0x33f),[]),d(this,'_anchor',null),d(this,_0xf89621(0x570),null),d(this,_0xf89621(0x20a),null),d(this,_0xf89621(0x18d),null),d(this,_0xf89621(0x3d1),null),(this['_cursor']=_0x2c6877,this[_0xf89621(0x1a7)]=_0x5f15d4,this[_0xf89621(0x229)]=_0x5a1312,this['_document']=_0x2f561d,this[_0xf89621(0x45f)]());}set[_0x2f1425(0x395)](_0xe3840f){const _0x3db049=_0x2f1425;_0xe3840f?(this[_0x3db049(0x20a)]&&this['_anchorDot'][_0x3db049(0x234)](),this[_0x3db049(0x570)]&&this[_0x3db049(0x570)][_0x3db049(0x1b9)]()):(this[_0x3db049(0x20a)]&&this['_anchorDot'][_0x3db049(0x1b9)](),this[_0x3db049(0x570)]&&this[_0x3db049(0x570)]['hide']());}['dispose'](){const _0x384e2d=_0x2f1425;for(const _0x500185 of this[_0x384e2d(0x33f)])_0x500185[_0x384e2d(0x235)]();this['_textBubble']&&this['_textBubble'][_0x384e2d(0x235)](),this[_0x384e2d(0x20a)]&&this[_0x384e2d(0x20a)][_0x384e2d(0x235)](),this['_anchor']&&this[_0x384e2d(0x422)][_0x384e2d(0x235)](),this['_eventUnsubscribe']&&this[_0x384e2d(0x3d1)]();}[_0x2f1425(0x45f)](){const _0x3b7109=_0x2f1425;var _0x6d0175;const {_docSkeleton:_0x194335,_document:_0x389b4e}=this,{color:_0x36a2b1,name:_0x456489,ranges:_0xda1bf8}=this['_cursor'],_0x400cb6=_0x389b4e['getOffsetConfig'](),{docsLeft:_0x1107de,docsTop:_0x40b6c0}=_0x400cb6,_0x506dfb=new w[(_0x3b7109(0x386))](_0x400cb6,_0x194335);for(const {startOffset:_0x199e50,endOffset:_0x489bc2,collapsed:_0x5e622f,isActive:_0x2551ff}of _0xda1bf8){const _0x4b4a70=_0x194335[_0x3b7109(0x515)](_0x199e50),_0x540a35=_0x194335[_0x3b7109(0x515)](_0x489bc2);if(_0x2551ff){const {contentBoxPointGroup:_0x8f6bd6}=_0x506dfb[_0x3b7109(0x4ff)](_0x540a35,_0x540a35);if(_0x8f6bd6['length']===0x0)continue;this[_0x3b7109(0x27d)](_0x36a2b1,_0x8f6bd6,_0x1107de,_0x40b6c0,_0x456489),this[_0x3b7109(0x3d1)]=this['_handleHover']();}if(!_0x5e622f&&_0x4b4a70&&_0x540a35){if(w[_0x3b7109(0x31c)](_0x4b4a70,_0x540a35)){const _0x1803ff=new w[(_0x3b7109(0x19a))](_0x400cb6,_0x194335),{pointGroup:_0x49b2a9}=(_0x6d0175=_0x1803ff['getRangePointData'](_0x4b4a70,_0x540a35))!=null?_0x6d0175:{};if(_0x49b2a9==null||_0x49b2a9[_0x3b7109(0x38d)]===0x0)continue;this[_0x3b7109(0x48b)](_0x36a2b1,_0x49b2a9,_0x1107de,_0x40b6c0);}else{const {contentBoxPointGroup:_0x5279bf}=_0x506dfb[_0x3b7109(0x4ff)](_0x4b4a70,_0x540a35);if(_0x5279bf[_0x3b7109(0x38d)]===0x0)continue;this[_0x3b7109(0x1a8)](_0x36a2b1,_0x5279bf,_0x1107de,_0x40b6c0);}}}}[_0x2f1425(0x27d)](_0x3faf81,_0x464b39,_0x1d6b8b,_0x525c59,_0x38a5f0){const _0x4d1efd=_0x2f1425,_0x1200dc=this['_getAnchorBounding'](_0x464b39),{left:_0x49ed1c,top:_0x26e550,height:_0x213d6b}=_0x1200dc,_0x594eb5=this[_0x4d1efd(0x3e6)](),_0x4556cb=ci/_0x594eb5,_0xe32581=new R[(_0x4d1efd(0x294))](Me+a['Tools']['generateRandomId'](ce),{'left':_0x49ed1c+_0x1d6b8b-_0x4556cb,'top':_0x26e550+_0x525c59,'height':_0x213d6b,'width':ai,'fill':_0x3faf81||R[_0x4d1efd(0x2ad)](a['COLORS'][_0x4d1efd(0x4ad)],0x0),'strokeWidth':_0x4556cb,'stroke':li,'evented':!0x0});this[_0x4d1efd(0x422)]=_0xe32581,this[_0x4d1efd(0x1a7)][_0x4d1efd(0x2bd)](_0xe32581,w[_0x4d1efd(0x1b8)]);const _0x5d16d9=new R[(_0x4d1efd(0x294))](Me+a['Tools'][_0x4d1efd(0x185)](ce),{'left':_0x49ed1c+_0x1d6b8b-_0x4556cb,'top':_0x26e550+_0x525c59-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x3faf81||R[_0x4d1efd(0x2ad)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x3faf81||R[_0x4d1efd(0x2ad)](a[_0x4d1efd(0x51a)]['black'],0x0),'evented':!0x1});this[_0x4d1efd(0x20a)]=_0x5d16d9,this[_0x4d1efd(0x1a7)][_0x4d1efd(0x2bd)](_0x5d16d9,w[_0x4d1efd(0x1b8)]);const _0xa48081=new Te(Me+a['Tools'][_0x4d1efd(0x185)](ce),{'left':_0x49ed1c+_0x1d6b8b-_0x4556cb,'top':_0x26e550+_0x525c59-ue,'text':_0x38a5f0,'color':_0x3faf81});this['_textBubble']=_0xa48081,this[_0x4d1efd(0x1a7)][_0x4d1efd(0x2bd)](_0xa48081,w[_0x4d1efd(0x1b8)]),this[_0x4d1efd(0x395)]=!0x1;}['_handleHover'](){const _0x3f6099=_0x2f1425,_0x14becc=this[_0x3f6099(0x422)][_0x3f6099(0x379)]['subscribeEvent'](()=>{const _0x31f91b=_0x3f6099;this[_0x31f91b(0x395)]=!0x0;}),_0x1ea3ce=this[_0x3f6099(0x422)][_0x3f6099(0x393)][_0x3f6099(0x41d)](()=>{const _0x5f0a38=_0x3f6099;this[_0x5f0a38(0x18d)]&&clearTimeout(this[_0x5f0a38(0x18d)]),this[_0x5f0a38(0x18d)]=setTimeout(()=>{const _0xf94dcd=_0x5f0a38;this[_0xf94dcd(0x395)]=!0x1;},0x7d0);});return()=>{const _0x27ba63=_0x3f6099;_0x14becc['unsubscribe'](),_0x1ea3ce[_0x27ba63(0x225)]();};}['_drawTextRange'](_0x145f06,_0x1b0d7c,_0x9e0734,_0x1e83f1){const _0x2d336d=_0x2f1425,_0x30e539=new a[(_0x2d336d(0x381))](_0x145f06)[_0x2d336d(0x2be)](0.2)[_0x2d336d(0x56f)](),_0xfc45ae=new R['RegularPolygon'](ri+a[_0x2d336d(0x494)][_0x2d336d(0x185)](ce),{'pointsGroup':_0x1b0d7c,'fill':_0x30e539||R['getColor'](a[_0x2d336d(0x51a)][_0x2d336d(0x4ad)],0.2),'left':_0x9e0734,'top':_0x1e83f1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d336d(0x33f)][_0x2d336d(0x52d)](_0xfc45ae),this[_0x2d336d(0x1a7)][_0x2d336d(0x2bd)](_0xfc45ae,w['TEXT_RANGE_LAYER_INDEX']);}[_0x2f1425(0x48b)](_0x593a62,_0x1fe388,_0x5a07ec,_0x28f1ec){const _0x38f998=_0x2f1425,_0x53b552=new a['ColorKit'](_0x593a62)[_0x38f998(0x2be)](0.2)[_0x38f998(0x56f)](),_0xf74bd7=new R[(_0x38f998(0x41c))](oi+a[_0x38f998(0x494)][_0x38f998(0x185)](ce),{'pointsGroup':_0x1fe388,'fill':_0x53b552||R['getColor'](a[_0x38f998(0x51a)]['black'],0.2),'left':_0x5a07ec,'top':_0x28f1ec,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x38f998(0x52d)](_0xf74bd7),this['_scene'][_0x38f998(0x2bd)](_0xf74bd7,w[_0x38f998(0x1b8)]);}[_0x2f1425(0x1a4)](_0x46db2f){const _0x399860=_0x46db2f[0x0],_0x16e6e2=_0x399860[0x0],_0x4d1014=_0x399860[0x2],{x:_0x29ba25,y:_0xe22f3}=_0x16e6e2,{x:_0xa95e0,y:_0x52fdc3}=_0x4d1014;return{'left':_0x29ba25,'top':_0xe22f3,'width':_0xa95e0-_0x29ba25,'height':_0x52fdc3-_0xe22f3};}[_0x2f1425(0x3e6)](){const _0x5d8106=_0x2f1425,{scaleX:_0x4e7f2b,scaleY:_0x297bf6}=this[_0x5d8106(0x1a7)][_0x5d8106(0x578)]();return Math[_0x5d8106(0x29f)](_0x4e7f2b,_0x297bf6);}}var hi=Object[_0x2f1425(0x1cf)],_i=Object[_0x2f1425(0x2ab)],ui=(_0xcdb3a3,_0x57d895,_0x25b500,_0x5c818f)=>{for(var _0x19dafd=_0x5c818f>0x1?void 0x0:_0x5c818f?_i(_0x57d895,_0x25b500):_0x57d895,_0x5f3bf=_0xcdb3a3['length']-0x1,_0x4edb1e;_0x5f3bf>=0x0;_0x5f3bf--)(_0x4edb1e=_0xcdb3a3[_0x5f3bf])&&(_0x19dafd=(_0x5c818f?_0x4edb1e(_0x57d895,_0x25b500,_0x19dafd):_0x4edb1e(_0x19dafd))||_0x19dafd);return _0x5c818f&&_0x19dafd&&hi(_0x57d895,_0x25b500,_0x19dafd),_0x19dafd;},de=(_0x3e8591,_0x3084c3)=>(_0x52994b,_0x79ff7a)=>_0x3084c3(_0x52994b,_0x79ff7a,_0x3e8591);let xe=class extends a[_0x2f1425(0x25b)]{constructor(_0x4eae6f,_0x42f9b7,_0x11ad58,_0x4cb361,_0x4590d6){const _0x3b91b9=_0x2f1425;super(),d(this,_0x3b91b9(0x314),[]),d(this,_0x3b91b9(0x228),[]),(this[_0x3b91b9(0x226)]=_0x4eae6f,this[_0x3b91b9(0x402)]=_0x42f9b7,this['_collabCursorController']=_0x11ad58,this[_0x3b91b9(0x4b2)]=_0x4cb361,this[_0x3b91b9(0x1e9)]=_0x4590d6,this['_init']());}[_0x2f1425(0x34f)](){const _0x3c9314=_0x2f1425,_0x206b34=this['_context'][_0x3c9314(0x406)],_0x6eb2ac=this['_docSkeletonManagerService'];this['disposeWithMe'](v[_0x3c9314(0x190)]([this[_0x3c9314(0x3da)][_0x3c9314(0x338)](_0x206b34),this['_themeService'][_0x3c9314(0x3b1)]])[_0x3c9314(0x53d)](E[_0x3c9314(0x1c9)](([_0x228ae0,_0x10639d])=>({'skeleton':_0x6eb2ac[_0x3c9314(0x18c)](),'cursors':[..._0x228ae0[_0x3c9314(0x2e0)]()][_0x3c9314(0x3ac)](_0x3f4073=>({..._0x3f4073,'color':_0x10639d[_0x3f4073[_0x3c9314(0x247)]]}))})))[_0x3c9314(0x3ca)](_0x50df42=>{const _0x2f2bb1=_0x3c9314;if(this[_0x2f2bb1(0x255)](),_0x50df42){const {skeleton:_0x8b27eb,cursors:_0x346d6b}=_0x50df42;this['_updateCollabCursors'](_0x8b27eb,_0x346d6b);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x2f1425(0x357)](_0x523022,_0x35d695){const _0x338727=_0x2f1425,{scene:_0x1f1517,mainComponent:_0x5346ed}=this[_0x338727(0x226)],_0x3e6533=_0x35d695[_0x338727(0x1c9)](_0x1b5bca=>new ot(_0x1b5bca,_0x1f1517,_0x523022,_0x5346ed));this[_0x338727(0x314)]=_0x3e6533,this['_cursors']=_0x35d695;}[_0x2f1425(0x1f9)](){const _0x562ed9=_0x2f1425;this[_0x562ed9(0x255)]();const {scene:_0x10fa7b,mainComponent:_0x56fac5}=this[_0x562ed9(0x226)],_0x469b79=this[_0x562ed9(0x402)][_0x562ed9(0x18c)](),_0x1cd12f=this[_0x562ed9(0x228)]['map'](_0x45b6fc=>new ot(_0x45b6fc,_0x10fa7b,_0x469b79,_0x56fac5));this[_0x562ed9(0x314)]=_0x1cd12f;}['_removeCollabCursors'](){const _0x163196=_0x2f1425;this[_0x163196(0x314)][_0x163196(0x28e)](_0xd85cb6=>_0xd85cb6['dispose']()),this[_0x163196(0x314)]=[];}['_initCommandExecutedListener'](){const _0x495668=_0x2f1425,_0x3c3d97=[w['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x495668(0x40b)](_0x2260b6=>{const _0x52fe34=_0x495668;_0x3c3d97[_0x52fe34(0x537)](_0x2260b6['id'])&&_0x2260b6[_0x52fe34(0x3d5)]['unitId']===this[_0x52fe34(0x226)]['unitId']&&this[_0x52fe34(0x1f9)]();}));}[_0x2f1425(0x2c6)](){const _0x2d88b4=_0x2f1425;this[_0x2d88b4(0x425)](a[_0x2d88b4(0x2e8)](this[_0x2d88b4(0x226)][_0x2d88b4(0x206)]['onTransformChange$'])['pipe'](E['filter'](_0x3130b3=>_0x3130b3[_0x2d88b4(0x3c5)]===R[_0x2d88b4(0x572)][_0x2d88b4(0x1bb)]),E['throttleTime'](0x10))[_0x2d88b4(0x3ca)](()=>{this['_refreshCollabCursors']();}));}};xe=ui([de(0x1,a[_0x2f1425(0x4d1)](V[_0x2f1425(0x552)])),de(0x2,a['Inject'](ie)),de(0x3,a[_0x2f1425(0x477)]),de(0x4,a[_0x2f1425(0x4d1)](a['ThemeService']))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x2f1425(0x4c6)]{constructor(_0x5e8c2c,_0x3fa78d){const _0x2f9aa9=_0x2f1425;super(_0x5e8c2c,_0x3fa78d),d(this,_0x2f9aa9(0x545)),d(this,_0x2f9aa9(0x3a6),!0x1),d(this,_0x2f9aa9(0x33d)),d(this,'_name',''),d(this,_0x2f9aa9(0x1ae),_0x2f9aa9(0x170)),d(this,'_backgroundColor'),(_0x3fa78d&&this[_0x2f9aa9(0x2c2)](_0x3fa78d),this[_0x2f9aa9(0x379)][_0x2f9aa9(0x41d)](()=>this[_0x2f9aa9(0x2c2)]({'hovered':!0x0})),this[_0x2f9aa9(0x393)][_0x2f9aa9(0x41d)](()=>this[_0x2f9aa9(0x2c2)]({'hovered':!0x1})));}[_0x2f1425(0x2c2)](_0x1fe2a2){const _0x24bce9=_0x2f1425;var _0x1638aa,_0xd1afe4,_0x13ed40,_0xe2c571,_0x3285ae,_0x2408ef;this[_0x24bce9(0x545)]=(_0x1638aa=_0x1fe2a2[_0x24bce9(0x247)])!=null?_0x1638aa:this['_color'],this['_hovered']=(_0xd1afe4=_0x1fe2a2['hovered'])!=null?_0xd1afe4:this[_0x24bce9(0x3a6)],this['_range']=(_0x13ed40=_0x1fe2a2[_0x24bce9(0x4a6)])!=null?_0x13ed40:this['_range'],this[_0x24bce9(0x2f5)]=(_0xe2c571=_0x1fe2a2['name'])!=null?_0xe2c571:this[_0x24bce9(0x2f5)],this[_0x24bce9(0x1ae)]=(_0x3285ae=_0x1fe2a2[_0x24bce9(0x3a8)])!=null?_0x3285ae:this[_0x24bce9(0x1ae)],this[_0x24bce9(0x205)]=(_0x2408ef=_0x1fe2a2[_0x24bce9(0x1fc)])!=null?_0x2408ef:this[_0x24bce9(0x205)],this[_0x24bce9(0x432)]({'width':_0x1fe2a2[_0x24bce9(0x4f6)],'height':_0x1fe2a2['height']});}['onMouseMove'](_0x1e71d1){const _0x54e405=_0x2f1425,{row:_0x1419d5,column:_0x5979ec}=_0x1e71d1;if(_0x1419d5>=this['_range']['startRow']&&_0x1419d5<=this[_0x54e405(0x33d)][_0x54e405(0x24e)]&&_0x5979ec>=this[_0x54e405(0x33d)][_0x54e405(0x1db)]&&_0x5979ec<=this['_range'][_0x54e405(0x352)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2f1425(0x21e)](_0x435ed8){return!0x1;}['_draw'](_0x2c2012){const _0x26a4b5=_0x2f1425;R[_0x26a4b5(0x294)][_0x26a4b5(0x335)](_0x2c2012,{'width':this[_0x26a4b5(0x4f6)],'height':this[_0x26a4b5(0x3b8)],'strokeWidth':Si,'stroke':this[_0x26a4b5(0x545)],'evented':!0x1,'fill':this[_0x26a4b5(0x205)]}),this[_0x26a4b5(0x3a6)]&&(_0x2c2012[_0x26a4b5(0x37d)](),_0x2c2012[_0x26a4b5(0x2e1)](0x1,0x0,0x0,0x1,this[_0x26a4b5(0x4f6)],this['_labelPosition']==='bottom'?0x0:-ue),Te[_0x26a4b5(0x335)](_0x2c2012,{'text':this['_name'],'color':this['_color']}),_0x2c2012[_0x26a4b5(0x26c)]());}}var vi=Object[_0x2f1425(0x1cf)],fi=Object['getOwnPropertyDescriptor'],gi=(_0xd348b3,_0x3cdd43,_0x3a184e,_0x3855d3)=>{const _0x31e85a=_0x2f1425;for(var _0x377b99=_0x3855d3>0x1?void 0x0:_0x3855d3?fi(_0x3cdd43,_0x3a184e):_0x3cdd43,_0x2108cd=_0xd348b3[_0x31e85a(0x38d)]-0x1,_0x30391c;_0x2108cd>=0x0;_0x2108cd--)(_0x30391c=_0xd348b3[_0x2108cd])&&(_0x377b99=(_0x3855d3?_0x30391c(_0x3cdd43,_0x3a184e,_0x377b99):_0x30391c(_0x377b99))||_0x377b99);return _0x3855d3&&_0x377b99&&vi(_0x3cdd43,_0x3a184e,_0x377b99),_0x377b99;},Ae=(_0x5a959b,_0x5b17ce)=>(_0x37b0b0,_0x541424)=>_0x5b17ce(_0x37b0b0,_0x541424,_0x5a959b);const mi=0x1389;let ke=class extends a[_0x2f1425(0x25b)]{constructor(_0x8950e8,_0x14d107,_0xc65966,_0x3a18c5){const _0x2e9af4=_0x2f1425;super(),d(this,'_cursors',new Set()),d(this,'_lastPointer',null),(this[_0x2e9af4(0x226)]=_0x8950e8,this[_0x2e9af4(0x2da)]=_0x14d107,this[_0x2e9af4(0x3da)]=_0xc65966,this[_0x2e9af4(0x1e9)]=_0x3a18c5,this[_0x2e9af4(0x34f)]());}['_init'](){const _0x322f65=_0x2f1425;this[_0x322f65(0x2da)][_0x322f65(0x21c)][_0x322f65(0x53d)](E[_0x322f65(0x275)](this['dispose$']),E[_0x322f65(0x3d7)](_0x5d0449=>{const _0x570d96=_0x322f65;if(_0x5d0449){const _0x193aa6=_0x5d0449[_0x570d96(0x4ce)];return v['combineLatest'](this[_0x570d96(0x3da)]['getCollabCursors$'](this[_0x570d96(0x226)][_0x570d96(0x406)]),this['_themeService'][_0x570d96(0x3b1)])[_0x570d96(0x53d)](E[_0x570d96(0x1c9)](([_0x4e315e,_0x2e39a4])=>{const _0x502736=_0x570d96,_0x1d8957=new Map();return _0x4e315e[_0x502736(0x28e)]((_0x5b8e8f,_0xcb9336)=>{const _0x488425=_0x502736;if(_0x5b8e8f[_0x488425(0x1e1)]===_0x193aa6){const _0x502cec={..._0x5b8e8f};_0x502cec['color']=_0x2e39a4[_0x5b8e8f[_0x488425(0x247)]],_0x1d8957[_0x488425(0x36e)](_0xcb9336,_0x502cec);}}),{'skeleton':_0x5d0449,'cursors':_0x1d8957};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x322f65(0x3ca)](({skeleton:_0x17ca46,cursors:_0x4ce490})=>{const _0x485624=_0x322f65;this['_removeCollabCursors'](),_0x17ca46&&this[_0x485624(0x357)](_0x17ca46,_0x4ce490);}),this[_0x322f65(0x2da)][_0x322f65(0x21c)][_0x322f65(0x3ca)](_0x11f09f=>{const _0x507b62=_0x322f65;if(_0x11f09f==null)return;const {skeleton:_0x47176d}=_0x11f09f,{scene:_0x178473}=this[_0x507b62(0x226)];_0x178473[_0x507b62(0x1a3)]['subscribeEvent'](a[_0x507b62(0x535)](_0x2dcd07=>{const _0x4ed79a=_0x507b62;var _0x4ff087,_0x5ce05c;const {offsetX:_0x2d42ac,offsetY:_0x2e3fe9}=_0x2dcd07,{x:_0x5a62fe,y:_0xe61711}=_0x178473[_0x4ed79a(0x3ef)](R[_0x4ed79a(0x50c)][_0x4ed79a(0x326)]([_0x2d42ac,_0x2e3fe9])),{scaleX:_0x3e2972,scaleY:_0xd707eb}=_0x178473[_0x4ed79a(0x578)](),_0x46e967=_0x178473[_0x4ed79a(0x53a)](te[_0x4ed79a(0x3dc)][_0x4ed79a(0x4d9)]),_0x42b174=_0x178473[_0x4ed79a(0x52c)](R[_0x4ed79a(0x50c)][_0x4ed79a(0x326)]([_0x5a62fe,_0xe61711]),_0x46e967),_0x318857=_0x47176d[_0x4ed79a(0x4f4)](_0x2d42ac,_0x2e3fe9,_0x3e2972,_0xd707eb,_0x42b174);((_0x4ff087=this[_0x4ed79a(0x30b)])==null?void 0x0:_0x4ff087[_0x4ed79a(0x241)])===_0x318857[_0x4ed79a(0x241)]&&((_0x5ce05c=this['_lastPointer'])==null?void 0x0:_0x5ce05c['row'])===_0x318857['row']||this[_0x4ed79a(0x228)]['forEach'](_0x3f8d64=>{const _0x57bd9d=_0x4ed79a;_0x3f8d64[_0x57bd9d(0x26d)](_0x318857);});},0x64));});}[_0x2f1425(0x357)](_0x8ef150,_0xabab35){const _0x3ecbb6=_0x2f1425;var _0x31f200;const _0x6a688b=(_0x31f200=this[_0x3ecbb6(0x2da)][_0x3ecbb6(0x1d3)]())==null?void 0x0:_0x31f200[_0x3ecbb6(0x45c)];if(!_0x6a688b)return;const _0x1af582=this['_getSheetObject']();if(!_0x1af582)return;this[_0x3ecbb6(0x228)]['forEach'](_0x516ce6=>{const _0x3cbf5f=_0x3ecbb6;_0x516ce6[_0x3cbf5f(0x459)]();});const {scene:_0x968e7d}=_0x1af582,_0x57b09b=Ii(Array[_0x3ecbb6(0x4eb)](_0xabab35[_0x3ecbb6(0x2e0)]()))[_0x3ecbb6(0x1c9)](_0x1e8a4c=>{const _0x54a3f2=_0x3ecbb6,{color:_0x2bc3ed,range:_0xa343f0,name:_0x10b687,selection:_0x14a1b1,sheetID:_0x597b5a}=_0x1e8a4c,{startColumn:_0x5c955c,startRow:_0x48e3d0,endColumn:_0x1e9c44,endRow:_0x41fe1d}=_0xa343f0,_0x2f97da=te[_0x54a3f2(0x453)](_0x48e3d0,_0x5c955c,_0x968e7d,_0x6a688b),_0xe41c02=te['getCoordByCell'](_0x41fe1d,_0x1e9c44,_0x968e7d,_0x6a688b),{columnHeaderHeightAndMarginTop:_0x3e501e}=_0x6a688b,{startX:_0x147cc3,startY:_0x4ebe6a}=_0x2f97da,{endX:_0x4bd7f2,endY:_0x45f3d2}=_0xe41c02,_0x63c7be=_0x4bd7f2-_0x147cc3,_0x57e961=_0x45f3d2-_0x4ebe6a,_0x5f2588={'labelPosition':_0x4ebe6a-_0x3e501e>=ue?'top':'bottom','sheetID':_0x597b5a,'range':_0xa343f0,'color':_0x2bc3ed,'name':_0x10b687,'selection':_0x14a1b1,'left':_0x147cc3,'top':_0x4ebe6a,'width':_0x63c7be,'height':_0x57e961,'evented':!0x1,'zIndex':mi};return new Ot(_0x10b687,_0x5f2588);});_0x968e7d['addObjects'](_0x57b09b,di),this['_cursors']=new Set(_0x57b09b);}[_0x2f1425(0x255)](){const _0x16500b=_0x2f1425;var _0x23136f;(_0x23136f=this[_0x16500b(0x228)])==null||_0x23136f[_0x16500b(0x28e)](_0x55e052=>_0x55e052[_0x16500b(0x235)]());}[_0x2f1425(0x1dd)](){const _0x3dffb4=_0x2f1425;return te[_0x3dffb4(0x4a5)](this['_context']['unit'],this[_0x3dffb4(0x226)]);}};ke=gi([Ae(0x1,a['Inject'](te[_0x2f1425(0x554)])),Ae(0x2,a[_0x2f1425(0x4d1)](ie)),Ae(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x52f)]))],ke);function Ii(_0x28883e){const _0x53ccfd=_0x2f1425,_0x43c3a9=new Map();return _0x28883e[_0x53ccfd(0x28e)](_0x8dc8a9=>{const _0x159402=_0x53ccfd;if(_0x43c3a9[_0x159402(0x555)](_0x8dc8a9['selection'])){const _0x59b97f=_0x43c3a9[_0x159402(0x41b)](_0x8dc8a9['selection']);_0x59b97f[_0x159402(0x46a)]+=',\x20'+_0x8dc8a9[_0x159402(0x46a)];}else _0x43c3a9[_0x159402(0x36e)](_0x8dc8a9[_0x159402(0x37e)],_0x8dc8a9);}),Array[_0x53ccfd(0x4eb)](_0x43c3a9[_0x53ccfd(0x2e0)]());}var M=function(){const _0x4c7e68=_0x2f1425;return M=Object[_0x4c7e68(0x2ce)]||function(_0x5f2d58){const _0x4ce086=_0x4c7e68;for(var _0xd36a82,_0x41b15d=0x1,_0x3eb0bd=arguments['length'];_0x41b15d<_0x3eb0bd;_0x41b15d++){_0xd36a82=arguments[_0x41b15d];for(var _0x145812 in _0xd36a82)Object[_0x4ce086(0x429)]['hasOwnProperty'][_0x4ce086(0x55f)](_0xd36a82,_0x145812)&&(_0x5f2d58[_0x145812]=_0xd36a82[_0x145812]);}return _0x5f2d58;},M['apply'](this,arguments);},pi=function(_0x4d5393,_0x202fa2){const _0x5e8546=_0x2f1425;var _0x292d22={};for(var _0x3680c1 in _0x4d5393)Object[_0x5e8546(0x429)][_0x5e8546(0x4ed)][_0x5e8546(0x55f)](_0x4d5393,_0x3680c1)&&_0x202fa2[_0x5e8546(0x53e)](_0x3680c1)<0x0&&(_0x292d22[_0x3680c1]=_0x4d5393[_0x3680c1]);if(_0x4d5393!=null&&typeof Object[_0x5e8546(0x27a)]==_0x5e8546(0x44f)){for(var _0x1c6b36=0x0,_0x3680c1=Object['getOwnPropertySymbols'](_0x4d5393);_0x1c6b36<_0x3680c1[_0x5e8546(0x38d)];_0x1c6b36++)_0x202fa2[_0x5e8546(0x53e)](_0x3680c1[_0x1c6b36])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x4d5393,_0x3680c1[_0x1c6b36])&&(_0x292d22[_0x3680c1[_0x1c6b36]]=_0x4d5393[_0x3680c1[_0x1c6b36]]);}return _0x292d22;},qe=U['forwardRef'](function(_0x586adb,_0x59ca65){const _0xa94ae5=_0x2f1425;var _0x545b96=_0x586adb[_0xa94ae5(0x529)],_0x41acad=_0x586adb['id'],_0x48d322=_0x586adb[_0xa94ae5(0x2cf)],_0x4f9520=_0x586adb[_0xa94ae5(0x414)],_0xde3a2e=pi(_0x586adb,[_0xa94ae5(0x529),'id',_0xa94ae5(0x2cf),_0xa94ae5(0x414)]),_0x75e6d9=_0xa94ae5(0x4ee)[_0xa94ae5(0x240)](_0x41acad,'\x20')[_0xa94ae5(0x240)](_0x48d322||'')[_0xa94ae5(0x3c8)](),_0x346455=U[_0xa94ae5(0x561)]('_'[_0xa94ae5(0x240)](bi()));return Dt(_0x545b96,''[_0xa94ae5(0x240)](_0x41acad),{'defIds':_0x545b96[_0xa94ae5(0x171)],'idSuffix':_0x346455['current']},M({'ref':_0x59ca65,'className':_0x75e6d9},_0xde3a2e),_0x4f9520);});function Dt(_0x5c2691,_0x4ef224,_0x41b329,_0x5bf43d,_0x56e57c){const _0x585159=_0x2f1425;return U[_0x585159(0x22f)](_0x5c2691[_0x585159(0x239)],M(M({'key':_0x4ef224},Ci(_0x5c2691,_0x41b329,_0x56e57c)),_0x5bf43d),(Ei(_0x5c2691,_0x41b329)[_0x585159(0x195)]||[])['map'](function(_0x43db84,_0x2f4ba7){const _0x2c9b9a=_0x585159;return Dt(_0x43db84,''[_0x2c9b9a(0x240)](_0x4ef224,'-')[_0x2c9b9a(0x240)](_0x5c2691['tag'],'-')[_0x2c9b9a(0x240)](_0x2f4ba7),_0x41b329,void 0x0,_0x56e57c);}));}function Ci(_0x58c58a,_0xc09bcd,_0x494125){const _0x2ebdcc=_0x2f1425;var _0x2ad729=M({},_0x58c58a[_0x2ebdcc(0x3fa)]);_0x494125!=null&&_0x494125['colorChannel1']&&_0x2ad729[_0x2ebdcc(0x203)]===_0x2ebdcc(0x24b)&&(_0x2ad729[_0x2ebdcc(0x203)]=_0x494125[_0x2ebdcc(0x24b)]);var _0x9224ae=_0xc09bcd['defIds'];return!_0x9224ae||_0x9224ae[_0x2ebdcc(0x38d)]===0x0||(_0x58c58a[_0x2ebdcc(0x239)]==='use'&&_0x2ad729[_0x2ebdcc(0x2ea)]&&(_0x2ad729[_0x2ebdcc(0x2ea)]=_0x2ad729['xlink:href']+_0xc09bcd[_0x2ebdcc(0x24d)]),Object[_0x2ebdcc(0x523)](_0x2ad729)[_0x2ebdcc(0x28e)](function(_0x3421f9){const _0x396d6f=_0x2ebdcc;var _0x5dccc4=_0x3421f9[0x0],_0x454cdc=_0x3421f9[0x1];typeof _0x454cdc==_0x396d6f(0x3f2)&&(_0x2ad729[_0x5dccc4]=_0x454cdc[_0x396d6f(0x557)](/url\(#(.*)\)/,_0x396d6f(0x193)[_0x396d6f(0x240)](_0xc09bcd['idSuffix'],')')));})),_0x2ad729;}function Ei(_0x58b67b,_0x5d1191){const _0x5ddfec=_0x2f1425;var _0x544935,_0x11d18e=_0x5d1191[_0x5ddfec(0x171)];return!_0x11d18e||_0x11d18e[_0x5ddfec(0x38d)]===0x0?_0x58b67b:_0x58b67b['tag']==='defs'&&(!((_0x544935=_0x58b67b[_0x5ddfec(0x195)])===null||_0x544935===void 0x0)&&_0x544935['length'])?M(M({},_0x58b67b),{'children':_0x58b67b[_0x5ddfec(0x195)][_0x5ddfec(0x1c9)](function(_0x4166db){const _0x6c6eaa=_0x5ddfec;return typeof _0x4166db[_0x6c6eaa(0x3fa)]['id']==_0x6c6eaa(0x3f2)&&_0x11d18e&&_0x11d18e[_0x6c6eaa(0x53e)](_0x4166db[_0x6c6eaa(0x3fa)]['id'])>-0x1?M(M({},_0x4166db),{'attrs':M(M({},_0x4166db[_0x6c6eaa(0x3fa)]),{'id':_0x4166db['attrs']['id']+_0x5d1191[_0x6c6eaa(0x24d)]})}):_0x4166db;})}):_0x58b67b;}function bi(){const _0x2c4937=_0x2f1425;return Math[_0x2c4937(0x237)]()[_0x2c4937(0x51c)](0x24)[_0x2c4937(0x4e3)](0x2,0x8);}qe[_0x2f1425(0x2f8)]='UniverIcon';var Ti={'tag':'svg','attrs':{'fill':_0x2f1425(0x2d5),'viewBox':_0x2f1425(0x3cd),'width':_0x2f1425(0x530),'height':_0x2f1425(0x530)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x2f1425(0x322),'attrs':{'stroke':_0x2f1425(0x568),'d':_0x2f1425(0x4d2),'strokeLinecap':'round','strokeLinejoin':_0x2f1425(0x336),'strokeWidth':1.2}}]},{'tag':_0x2f1425(0x2ef),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2f1425(0x571)},'children':[{'tag':'path','attrs':{'fill':_0x2f1425(0x2c7),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},yt=U[_0x2f1425(0x17f)](function(_0x5b9e45,_0x4bf472){const _0x18139c=_0x2f1425;return U['createElement'](qe,Object[_0x18139c(0x2ce)]({},_0x5b9e45,{'id':_0x18139c(0x198),'ref':_0x4bf472,'icon':Ti}));});yt['displayName']='OffLineSingle';var Ri={'tag':_0x2f1425(0x22a),'attrs':{'fill':_0x2f1425(0x2d5),'viewBox':_0x2f1425(0x49a),'width':_0x2f1425(0x530),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2f1425(0x18b)},'children':[{'tag':_0x2f1425(0x322),'attrs':{'stroke':_0x2f1425(0x568),'d':_0x2f1425(0x3f6),'strokeLinecap':_0x2f1425(0x336),'strokeLinejoin':_0x2f1425(0x336),'strokeWidth':1.2}}]},{'tag':_0x2f1425(0x2ef),'attrs':{},'children':[{'tag':_0x2f1425(0x268),'attrs':{'id':_0x2f1425(0x407)},'children':[{'tag':'path','attrs':{'fill':_0x2f1425(0x2c7),'d':_0x2f1425(0x4b8),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2f1425(0x407)]},Ut=U[_0x2f1425(0x17f)](function(_0x393629,_0xd4e095){const _0x591d56=_0x2f1425;return U['createElement'](qe,Object[_0x591d56(0x2ce)]({},_0x393629,{'id':_0x591d56(0x4e7),'ref':_0xd4e095,'icon':Ri}));});Ut[_0x2f1425(0x2f8)]=_0x2f1425(0x347);function Pt(_0xeabbe7){const _0x4e1c1d=_0x2f1425;var _0x1af100,_0x2a4f77,_0x1b27ca='';if(typeof _0xeabbe7=='string'||typeof _0xeabbe7==_0x4e1c1d(0x57d))_0x1b27ca+=_0xeabbe7;else{if(typeof _0xeabbe7==_0x4e1c1d(0x4b4)){if(Array[_0x4e1c1d(0x476)](_0xeabbe7)){var _0x542af4=_0xeabbe7[_0x4e1c1d(0x38d)];for(_0x1af100=0x0;_0x1af100<_0x542af4;_0x1af100++)_0xeabbe7[_0x1af100]&&(_0x2a4f77=Pt(_0xeabbe7[_0x1af100]))&&(_0x1b27ca&&(_0x1b27ca+='\x20'),_0x1b27ca+=_0x2a4f77);}else{for(_0x2a4f77 in _0xeabbe7)_0xeabbe7[_0x2a4f77]&&(_0x1b27ca&&(_0x1b27ca+='\x20'),_0x1b27ca+=_0x2a4f77);}}}return _0x1b27ca;}function Oi(){const _0x97a56a=_0x2f1425;for(var _0x5c56ae,_0xc484db,_0x2e7ef8=0x0,_0x3a4595='',_0x1689fb=arguments[_0x97a56a(0x38d)];_0x2e7ef8<_0x1689fb;_0x2e7ef8++)(_0x5c56ae=arguments[_0x2e7ef8])&&(_0xc484db=Pt(_0x5c56ae))&&(_0x3a4595&&(_0x3a4595+='\x20'),_0x3a4595+=_0xc484db);return _0x3a4595;}const Di=_0x2f1425(0x243),yi=_0x2f1425(0x4c7),Ui=_0x2f1425(0x504),Pi=_0x2f1425(0x175),wi=_0x2f1425(0x455),le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x445bfe){const _0x1420de=_0x2f1425;switch(_0x445bfe){case y[_0x1420de(0x3a1)]:return _0x1420de(0x2cb);case y[_0x1420de(0x3ed)]:return _0x1420de(0x3b7);case y[_0x1420de(0x4bf)]:return _0x1420de(0x41a);case y[_0x1420de(0x35a)]:return _0x1420de(0x367);case y[_0x1420de(0x400)]:case y[_0x1420de(0x55a)]:case y['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case y['SYNCED']:return'collabStatus.synced';}}function wt(_0x578c7c){const _0x25e8e1=_0x2f1425,{status$:_0x939e5e}=_0x578c7c,_0x8f4044=N[_0x25e8e1(0x53c)](_0x939e5e,y[_0x25e8e1(0x35a)]),_0x598d23=a[_0x25e8e1(0x2a8)](a[_0x25e8e1(0x2d7)]),_0x5490b7=a[_0x25e8e1(0x2a8)](exports[_0x25e8e1(0x1d4)]),_0x188a1f=_0x8f4044!==y[_0x25e8e1(0x3a1)],_0x183ec4=_0x598d23['t'](Mi(_0x8f4044)),_0x50972e=Oi(le['onlineStatus'],{[le['online']]:_0x188a1f,[le['offline']]:!_0x188a1f}),_0x52b2a9=_0x188a1f?U[_0x25e8e1(0x22f)](Ut,null):U['createElement'](yt,null),_0x3f9077=U[_0x25e8e1(0x2d6)](()=>{const _0x5b7692=_0x25e8e1;_0x188a1f||_0x5490b7[_0x5b7692(0x32e)]();},[_0x188a1f,_0x5490b7]);function _0x4b3b58(){const _0x53ae88=_0x25e8e1;return U['createElement'](_0x53ae88(0x4b7),{'className':_0x50972e,'onClick':_0x3f9077},U[_0x53ae88(0x22f)]('div',{'className':le[_0x53ae88(0x259)]},_0x52b2a9),U[_0x53ae88(0x22f)](_0x53ae88(0x4b7),{'className':le[_0x53ae88(0x1ca)]},_0x183ec4));}return _0x188a1f?_0x4b3b58():U[_0x25e8e1(0x22f)](X['Tooltip'],{'title':_0x598d23['t'](_0x25e8e1(0x3c4))},_0x4b3b58());}var Ni=Object[_0x2f1425(0x1cf)],Ai=Object[_0x2f1425(0x2ab)],Li=(_0x42e66a,_0xb2db3e,_0x537a26,_0x209a43)=>{const _0xc5625d=_0x2f1425;for(var _0x280a30=_0x209a43>0x1?void 0x0:_0x209a43?Ai(_0xb2db3e,_0x537a26):_0xb2db3e,_0x567a14=_0x42e66a[_0xc5625d(0x38d)]-0x1,_0x37ee3e;_0x567a14>=0x0;_0x567a14--)(_0x37ee3e=_0x42e66a[_0x567a14])&&(_0x280a30=(_0x209a43?_0x37ee3e(_0xb2db3e,_0x537a26,_0x280a30):_0x37ee3e(_0x280a30))||_0x280a30);return _0x209a43&&_0x280a30&&Ni(_0xb2db3e,_0x537a26,_0x280a30),_0x280a30;},Se=(_0x48f5bd,_0x16ce1f)=>(_0x370b75,_0x5aed51)=>_0x16ce1f(_0x370b75,_0x5aed51,_0x48f5bd);exports[_0x2f1425(0x55b)]=class extends a[_0x2f1425(0x387)]{constructor(_0x202e03,_0x1cea02,_0x2dfecb,_0x593e2e){const _0x2459f0=_0x2f1425;super(),d(this,_0x2459f0(0x32c),new v[(_0x2459f0(0x21d))](y[_0x2459f0(0x35a)])),(this[_0x2459f0(0x458)]=_0x202e03,this[_0x2459f0(0x51d)]=_0x1cea02,this[_0x2459f0(0x4fa)]=_0x2dfecb,this['_collaborationController']=_0x593e2e,this[_0x2459f0(0x56b)](),this['_initStatusListener']());}[_0x2f1425(0x303)](){const _0x44d946=_0x2f1425;this[_0x44d946(0x425)](this[_0x44d946(0x458)][_0x44d946(0x4d4)][_0x44d946(0x53d)](v[_0x44d946(0x3d7)](()=>{const _0x3774fe=_0x44d946,_0x5c3ded=this[_0x3774fe(0x458)]['getFocusedUnit']();return _0x5c3ded?this[_0x3774fe(0x536)][_0x3774fe(0x384)](_0x5c3ded[_0x3774fe(0x1fa)]()):v['of'](null);}),v[_0x44d946(0x3d7)](_0x2cc406=>_0x2cc406?_0x2cc406[_0x44d946(0x56d)]:v['of'](y['NOT_COLLAB'])))['subscribe'](_0x2867b2=>{const _0x32c2d1=_0x44d946;this[_0x32c2d1(0x32c)][_0x32c2d1(0x500)](_0x2867b2);}));}[_0x2f1425(0x56b)](){const _0x30283d=_0x2f1425;this[_0x30283d(0x425)](this['_uiPartsService']['registerComponent'](N[_0x30283d(0x1ce)]['HEADER_MENU'],()=>a[_0x30283d(0x1eb)](ji({'status$':this[_0x30283d(0x32c)]['asObservable']()}),this['_injector'])));}},exports[_0x2f1425(0x55b)]=Li([Se(0x0,a['IUniverInstanceService']),Se(0x1,N[_0x2f1425(0x2cd)]),Se(0x2,a['Inject'](a[_0x2f1425(0x450)])),Se(0x3,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x4f1)]))],exports[_0x2f1425(0x55b)]);function ji(_0x2ec872){const {status$:_0x180edd}=_0x2ec872;return function(){const _0x201777=_0x4554;return U[_0x201777(0x22f)](wt,{'status$':_0x180edd});};}const ze=a[_0x2f1425(0x232)]('uni.network.url-service');var $i=Object['defineProperty'],Hi=Object[_0x2f1425(0x2ab)],xi=(_0x12dbf8,_0x14fadb,_0x4559d7,_0x29761d)=>{const _0x4446e1=_0x2f1425;for(var _0x1d7d9e=_0x29761d>0x1?void 0x0:_0x29761d?Hi(_0x14fadb,_0x4559d7):_0x14fadb,_0x59802f=_0x12dbf8[_0x4446e1(0x38d)]-0x1,_0x75c960;_0x59802f>=0x0;_0x59802f--)(_0x75c960=_0x12dbf8[_0x59802f])&&(_0x1d7d9e=(_0x29761d?_0x75c960(_0x14fadb,_0x4559d7,_0x1d7d9e):_0x75c960(_0x1d7d9e))||_0x1d7d9e);return _0x29761d&&_0x1d7d9e&&$i(_0x14fadb,_0x4559d7,_0x1d7d9e),_0x1d7d9e;},ee=(_0x246902,_0x461c96)=>(_0x581448,_0x5a467a)=>_0x461c96(_0x581448,_0x5a467a,_0x246902);exports[_0x2f1425(0x2d8)]=class extends a[_0x2f1425(0x25b)]{constructor(_0xc4b5fc,_0x2cba14,_0x2288ba,_0x53abe2,_0x39ef04,_0x12686f){const _0xf465f9=_0x2f1425;super(),this[_0xf465f9(0x48e)]=_0xc4b5fc,this[_0xf465f9(0x562)]=_0x2cba14,this['_commandService']=_0x2288ba,this[_0xf465f9(0x28a)]=_0x53abe2,this[_0xf465f9(0x4f0)]=_0x39ef04,_0x12686f?_0x12686f==null||_0x12686f[_0xf465f9(0x1c2)]()[_0xf465f9(0x313)](()=>this[_0xf465f9(0x34f)]()):(this[_0xf465f9(0x562)][_0xf465f9(0x27e)]('[DataLoaderController]',_0xf465f9(0x207)),this['_init']());}async[_0x2f1425(0x34f)](){const _0x5324d7=_0x2f1425,_0x477f43=this[_0x5324d7(0x48e)]['getParam'](_0x5324d7(0x4b3)),_0x82d31d=this[_0x5324d7(0x48e)]['getParam'](_0x5324d7(0x3c5));if(!_0x477f43||!_0x82d31d){this[_0x5324d7(0x562)][_0x5324d7(0x27e)](_0x5324d7(0x20f),_0x5324d7(0x325));return;}switch(Number(_0x82d31d)){case j[_0x5324d7(0x1bf)]:{const _0x23188b=await this[_0x5324d7(0x4c2)](_0x477f43);this[_0x5324d7(0x522)](_0x23188b);break;}case j['UNIVER_DOC']:{await this['_loadDoc'](_0x477f43);break;}default:{this[_0x5324d7(0x562)][_0x5324d7(0x348)](_0x5324d7(0x20f),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x2f1425(0x522)](_0x2346f3){const _0x3235a8=_0x2f1425;await this[_0x3235a8(0x17c)](_0x2346f3),_0x2346f3[_0x3235a8(0x4cf)][_0x3235a8(0x53d)](v[_0x3235a8(0x275)](this[_0x3235a8(0x2b4)]))[_0x3235a8(0x3ca)](_0x489741=>{const _0x51faa8=_0x3235a8;_0x489741&&this[_0x51faa8(0x337)](_0x489741);}),this[_0x3235a8(0x48e)][_0x3235a8(0x2b8)][_0x3235a8(0x53d)](v[_0x3235a8(0x275)](this[_0x3235a8(0x2b4)]))[_0x3235a8(0x3ca)](()=>this[_0x3235a8(0x17c)](_0x2346f3));}[_0x2f1425(0x337)](_0x560b09,_0x6472dd=!0x1){const _0x591c5f=_0x2f1425,_0x190ca3=this[_0x591c5f(0x48e)][_0x591c5f(0x214)](_0x591c5f(0x30d));_0x560b09[_0x591c5f(0x1be)]()!==_0x190ca3&&this[_0x591c5f(0x48e)][_0x591c5f(0x29e)](_0x591c5f(0x30d),_0x560b09[_0x591c5f(0x1be)](),_0x6472dd);}async[_0x2f1425(0x17c)](_0x1abc64){const _0x20f7ce=_0x2f1425;var _0x12b1c0;const _0x399c44=this['_urlService'][_0x20f7ce(0x214)](_0x20f7ce(0x30d));if(!_0x399c44||!_0x1abc64[_0x20f7ce(0x2af)](_0x399c44)){const _0x239fd8=_0x1abc64[_0x20f7ce(0x172)]()[0x0],_0x9f11b4=_0x1abc64['getSheetBySheetId'](_0x239fd8);if(!_0x9f11b4)return;this[_0x20f7ce(0x337)](_0x9f11b4,!0x0),await this[_0x20f7ce(0x4b2)][_0x20f7ce(0x373)](C[_0x20f7ce(0x272)]['id'],{'unitId':_0x1abc64[_0x20f7ce(0x1fa)](),'subUnitId':_0x239fd8});return;}((_0x12b1c0=_0x1abc64['getActiveSheet']())==null?void 0x0:_0x12b1c0[_0x20f7ce(0x1be)]())!==_0x399c44&&await this[_0x20f7ce(0x4b2)][_0x20f7ce(0x373)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x1abc64[_0x20f7ce(0x1fa)](),'subUnitId':_0x399c44});}async[_0x2f1425(0x4c2)](_0x34e59c){const _0x3e76c7=_0x2f1425;let _0x16a8b8=0x0;const _0x5efdde=await this['_localCacheService'][_0x3e76c7(0x4b5)](_0x34e59c);return _0x5efdde&&(_0x5efdde[_0x3e76c7(0x30c)]||_0x5efdde[_0x3e76c7(0x569)]['length']!==0x0)&&(_0x16a8b8=_0x5efdde[_0x3e76c7(0x4fe)]),_0x16a8b8===0x0&&this['_logService']['debug'](_0x3e76c7(0x20f),_0x3e76c7(0x514)),this[_0x3e76c7(0x4f0)][_0x3e76c7(0x38c)](_0x34e59c,_0x16a8b8);}async[_0x2f1425(0x3f4)](_0xb616c1){const _0xb90b98=_0x2f1425;let _0x3633f5=0x0;const _0x1b681d=await this[_0xb90b98(0x28a)][_0xb90b98(0x4b5)](_0xb616c1);return _0x1b681d&&(_0x1b681d[_0xb90b98(0x30c)]||_0x1b681d[_0xb90b98(0x569)]['length']!==0x0)&&(_0x3633f5=_0x1b681d['rev']),_0x3633f5===0x0&&this[_0xb90b98(0x562)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xb90b98(0x4f0)][_0xb90b98(0x534)](_0xb616c1,_0x3633f5);}},exports[_0x2f1425(0x2d8)]=xi([ee(0x0,ze),ee(0x1,a[_0x2f1425(0x2e3)]),ee(0x2,a[_0x2f1425(0x477)]),ee(0x3,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),ee(0x4,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x4db)])),ee(0x5,a[_0x2f1425(0x42b)](Wt[_0x2f1425(0x1e8)]))],exports['DataLoaderController']);var ki=Object[_0x2f1425(0x1cf)],Bi=Object[_0x2f1425(0x2ab)],Vi=(_0x4f9539,_0xe135f8,_0x2f9f09,_0x21f987)=>{const _0x2f955d=_0x2f1425;for(var _0x370040=_0x21f987>0x1?void 0x0:_0x21f987?Bi(_0xe135f8,_0x2f9f09):_0xe135f8,_0x5a37e1=_0x4f9539[_0x2f955d(0x38d)]-0x1,_0x6e4ab5;_0x5a37e1>=0x0;_0x5a37e1--)(_0x6e4ab5=_0x4f9539[_0x5a37e1])&&(_0x370040=(_0x21f987?_0x6e4ab5(_0xe135f8,_0x2f9f09,_0x370040):_0x6e4ab5(_0x370040))||_0x370040);return _0x21f987&&_0x370040&&ki(_0xe135f8,_0x2f9f09,_0x370040),_0x370040;},at=(_0x5c9d1a,_0x47c9fa)=>(_0x3b5990,_0x3d4ee9)=>_0x47c9fa(_0x3b5990,_0x3d4ee9,_0x5c9d1a);const Wi=_0x2f1425(0x1d0),Fi=_0x2f1425(0x231);let Ie=class extends a[_0x2f1425(0x387)]{constructor(_0x4b82a0,_0xaf6d77){const _0xc589f0=_0x2f1425;super(),this[_0xc589f0(0x458)]=_0x4b82a0,this[_0xc589f0(0x1c3)]=_0xaf6d77,this[_0xc589f0(0x34f)]();}['_init'](){const _0x2a3862=_0x2f1425;this[_0x2a3862(0x425)](this[_0x2a3862(0x458)]['focused$']['subscribe'](()=>{const _0x5b5500=_0x2a3862;var _0x539526;const _0x414972=this[_0x5b5500(0x458)][_0x5b5500(0x199)]();let _0x3084c4=(_0x539526=this[_0x5b5500(0x1c3)]['getConfig'](Wi))!=null?_0x539526:Fi;_0x414972 instanceof a[_0x5b5500(0x50e)]&&(_0x3084c4=_0x414972['name']),document[_0x5b5500(0x22e)]=_0x3084c4;}));}};Ie=Vi([at(0x0,a[_0x2f1425(0x468)]),at(0x1,a['IConfigService'])],Ie);var Gi=Object[_0x2f1425(0x1cf)],Yi=Object[_0x2f1425(0x2ab)],Ki=(_0x594428,_0x4e69f5,_0x5abf47,_0x249fab)=>{const _0x53d69f=_0x2f1425;for(var _0x29b783=_0x249fab>0x1?void 0x0:_0x249fab?Yi(_0x4e69f5,_0x5abf47):_0x4e69f5,_0x5bb6af=_0x594428[_0x53d69f(0x38d)]-0x1,_0x31f7f9;_0x5bb6af>=0x0;_0x5bb6af--)(_0x31f7f9=_0x594428[_0x5bb6af])&&(_0x29b783=(_0x249fab?_0x31f7f9(_0x4e69f5,_0x5abf47,_0x29b783):_0x31f7f9(_0x29b783))||_0x29b783);return _0x249fab&&_0x29b783&&Gi(_0x4e69f5,_0x5abf47,_0x29b783),_0x29b783;},Le=(_0x2814bc,_0x34721a)=>(_0x352b36,_0x36f1dd)=>_0x34721a(_0x352b36,_0x36f1dd,_0x2814bc);let pe=class{constructor(_0x239ac9,_0x122910,_0x29a29e){const _0x56256d=_0x2f1425;this[_0x56256d(0x1c3)]=_0x239ac9,this[_0x56256d(0x2dd)]=_0x122910,this[_0x56256d(0x56c)]=_0x29a29e,this['init']();}[_0x2f1425(0x2fc)](){const _0x39b26b=_0x2f1425;this[_0x39b26b(0x2dd)][_0x39b26b(0x493)]({'priority':0x1,'interceptor':(_0xaaa9f6,_0x206142)=>_0x206142(_0xaaa9f6)[_0x39b26b(0x53d)](v[_0x39b26b(0x293)](async _0x192b59=>{const _0x120f51=_0x39b26b,_0x3beb6b=_0x192b59;if(_0x3beb6b['status']===0x191&&window[_0x120f51(0x204)](this['localeService']['t']('auth.needGotoLoginAlert'))){const _0x158619=window['encodeURIComponent'](window[_0x120f51(0x2d9)][_0x120f51(0x236)]);window[_0x120f51(0x2d9)][_0x120f51(0x236)]=this[_0x120f51(0x4bb)]()+_0x120f51(0x308)+_0x158619;}return _0x3beb6b;}))});}[_0x2f1425(0x4bb)](){const _0x39d09e=_0x2f1425;var _0x27de68,_0x276a6c;const _0x159193=this[_0x39d09e(0x1c3)]['getConfig'](mt),_0x539475=this[_0x39d09e(0x1c3)][_0x39d09e(0x480)](A);return(_0x276a6c=(_0x27de68=_0x539475==null?void 0x0:_0x539475['loginUrlKey'])!=null?_0x27de68:_0x159193)!=null?_0x276a6c:es;}};pe=Ki([Le(0x0,a[_0x2f1425(0x47d)]),Le(0x1,a[_0x2f1425(0x4d1)](P['HTTPService'])),Le(0x2,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)]))],pe);var Xi=Object['defineProperty'],qi=Object[_0x2f1425(0x2ab)],zi=(_0x442041,_0x5a60a5,_0x4c2fd7,_0x48e010)=>{const _0x577d32=_0x2f1425;for(var _0x1478c8=_0x48e010>0x1?void 0x0:_0x48e010?qi(_0x5a60a5,_0x4c2fd7):_0x5a60a5,_0x2ab06a=_0x442041[_0x577d32(0x38d)]-0x1,_0x232742;_0x2ab06a>=0x0;_0x2ab06a--)(_0x232742=_0x442041[_0x2ab06a])&&(_0x1478c8=(_0x48e010?_0x232742(_0x5a60a5,_0x4c2fd7,_0x1478c8):_0x232742(_0x1478c8))||_0x1478c8);return _0x48e010&&_0x1478c8&&Xi(_0x5a60a5,_0x4c2fd7,_0x1478c8),_0x1478c8;},ct=(_0x17fe44,_0x589803)=>(_0x44e962,_0x3047fc)=>_0x589803(_0x44e962,_0x3047fc,_0x17fe44);const Mt=_0x2f1425(0x208),Ji=_0x2f1425(0x3d3);exports[_0x2f1425(0x321)]=class extends a[_0x2f1425(0x387)]{constructor(_0x7b334b,_0x1500a9){const _0x3e4e85=_0x2f1425;super(),this[_0x3e4e85(0x359)]=_0x7b334b,this[_0x3e4e85(0x1c3)]=_0x1500a9,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x46d8ba=_0x2f1425,_0x446ff4=this;this[_0x46d8ba(0x425)](this[_0x46d8ba(0x359)][_0x46d8ba(0x493)]({'priority':0x3e7,'interceptor':P[_0x46d8ba(0x286)]({'isMatch'(_0x38ff3f){const _0x179b76=_0x46d8ba;var _0x1d54b4;if(_0x38ff3f[_0x179b76(0x574)]===_0x179b76(0x360)&&((_0x1d54b4=_0x38ff3f['requestParams'])!=null&&_0x1d54b4[_0x179b76(0x2d2)])){const {objectID:_0x35a535,objectType:_0x45c5dc}=_0x38ff3f[_0x179b76(0x564)][_0x179b76(0x2d2)]||{};if(!_0x35a535||_0x45c5dc===void 0x0)return!0x1;const _0x4e618c=_0x446ff4[_0x179b76(0x1e6)]()+'/'+_0x45c5dc+'/object/'+_0x35a535+_0x179b76(0x4f7);if(_0x38ff3f[_0x179b76(0x1f1)]===_0x4e618c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x15288e){const _0x445a23=_0x46d8ba;var _0x10569c;return(_0x10569c=_0x15288e[_0x445a23(0x564)])==null?void 0x0:_0x10569c[_0x445a23(0x2d2)];},'mergeParamsToRequest'(_0x180c49,_0x30a345){const _0x2c5edf=_0x46d8ba,_0x14a27a=_0x446ff4[_0x2c5edf(0x1e6)]()+_0x2c5edf(0x2ec),_0x2fd5d7=_0x180c49[_0x2c5edf(0x375)]((_0x129e75,_0x426d0d)=>{const _0x12fe27=_0x2c5edf,{unitID:_0x18bdf1,objectID:_0x7a154e,objectType:_0x303458,actions:_0x333472}=_0x426d0d;return _0x129e75[_0x18bdf1]||(_0x129e75[_0x18bdf1]={}),_0x129e75[_0x18bdf1][_0x7a154e]||(_0x129e75[_0x18bdf1][_0x7a154e]={'objectID':_0x7a154e,'objectType':_0x303458,'actions':[]}),_0x129e75[_0x18bdf1][_0x7a154e]['actions'][_0x12fe27(0x52d)](..._0x333472),_0x129e75;},{}),_0xf27427=[];for(const _0x518ab5 in _0x2fd5d7)for(const _0x51d593 in _0x2fd5d7[_0x518ab5]){const {actions:_0x2e8a3a,objectType:_0xc0f17f}=_0x2fd5d7[_0x518ab5][_0x51d593],_0x43c85f=[...new Set(_0x2e8a3a)];_0xf27427[_0x2c5edf(0x52d)]({'unitID':_0x518ab5,'objectID':_0x51d593,'objectType':_0xc0f17f,'actions':_0x43c85f});}return new P[(_0x2c5edf(0x2d0))](_0x2c5edf(0x360),_0x14a27a,{'headers':_0x30a345['headers'],'withCredentials':_0x30a345[_0x2c5edf(0x23c)],'responseType':_0x30a345[_0x2c5edf(0x28c)],'body':{'requests':_0xf27427}});}},{'distributeResult'(_0x573540,_0x39a20f){const _0x9f5f4b=_0x46d8ba,{objectActions:_0x24cb30}=_0x573540;return _0x39a20f[_0x9f5f4b(0x1c9)](_0x59f6fa=>{const _0x1cf7fd=_0x9f5f4b,{unitID:_0x38df3d,objectID:_0x444fb3,actions:_0x1081eb}=_0x59f6fa,_0x5c8b29=_0x24cb30[_0x1cf7fd(0x45e)](_0x3a9e82=>_0x3a9e82[_0x1cf7fd(0x437)]===_0x38df3d&&_0x3a9e82[_0x1cf7fd(0x56a)]===_0x444fb3),_0x36dfbf=_0x1081eb[_0x1cf7fd(0x1c9)](_0x3d4ed1=>_0x5c8b29==null?void 0x0:_0x5c8b29[_0x1cf7fd(0x2dc)][_0x1cf7fd(0x45e)](_0x4d2872=>_0x4d2872[_0x1cf7fd(0x44a)]===_0x3d4ed1))[_0x1cf7fd(0x2b7)](_0x5e6279=>!!_0x5e6279);return{'config':_0x59f6fa,'result':{'actions':_0x36dfbf,'error':_0x573540['error']}};});}})}));}[_0x2f1425(0x1e6)](){const _0x1a8307=_0x2f1425;var _0x2e7a18,_0x36bd39;const _0x2625fa=this[_0x1a8307(0x1c3)][_0x1a8307(0x480)](Mt),_0x174613=this[_0x1a8307(0x1c3)]['getConfig'](A);return(_0x36bd39=(_0x2e7a18=_0x174613==null?void 0x0:_0x174613[_0x1a8307(0x43a)])!=null?_0x2e7a18:_0x2625fa)!=null?_0x36bd39:Ji;}async['create'](_0x497a81){const _0x1b2ecb=_0x2f1425,_0x23ec46=this[_0x1b2ecb(0x1e6)]()+'/'+_0x497a81['objectType']+'/object';return(await this[_0x1b2ecb(0x359)]['post'](_0x23ec46,{'body':_0x497a81}))[_0x1b2ecb(0x2d2)]['objectID']||'';}async['list'](_0x805e5e){const _0x5c6697=_0x2f1425,_0xe325ef=this[_0x5c6697(0x1e6)]()+'/-/object/list';return(await this[_0x5c6697(0x359)][_0x5c6697(0x31d)](_0xe325ef,{'body':_0x805e5e}))['body']['objects'];}async[_0x2f1425(0x36f)](_0x334c17){const _0xbfa009=_0x2f1425,_0x55457c=this[_0xbfa009(0x1e6)]()+'/'+_0x334c17[_0xbfa009(0x178)]+_0xbfa009(0x4c0)+_0x334c17['objectID'];await this[_0xbfa009(0x359)][_0xbfa009(0x1a0)](_0x55457c,{'body':_0x334c17});}async[_0x2f1425(0x22d)](_0x518214){const _0x1726e8=_0x2f1425,_0x3166ec=this['_getAPIPrefixPath']()+'/'+_0x518214[_0x1726e8(0x178)]+_0x1726e8(0x4c0)+_0x518214[_0x1726e8(0x56a)]+_0x1726e8(0x4f7);return(await this[_0x1726e8(0x359)][_0x1726e8(0x31d)](_0x3166ec,{'body':_0x518214}))['body'][_0x1726e8(0x2dc)];}async[_0x2f1425(0x4c5)](_0x413e66){const _0x27dd20=_0x2f1425,_0x222f9d=this['_getAPIPrefixPath']()+_0x27dd20(0x2ec);return(await this[_0x27dd20(0x359)][_0x27dd20(0x31d)](_0x222f9d,{'body':{'requests':_0x413e66}}))[_0x27dd20(0x2d2)][_0x27dd20(0x3e4)];}async[_0x2f1425(0x39c)](_0x25cf7b){const _0x28c15d=_0x2f1425,_0x58ea64=this[_0x28c15d(0x1e6)]()+'/'+_0x25cf7b['objectType']+_0x28c15d(0x3ab),_0x2ec551=await this['_HTTPService'][_0x28c15d(0x31d)](_0x58ea64,{'body':_0x25cf7b});return{'roles':_0x2ec551[_0x28c15d(0x2d2)][_0x28c15d(0x397)],'actions':_0x2ec551[_0x28c15d(0x2d2)][_0x28c15d(0x2dc)]};}async[_0x2f1425(0x351)](_0x2c1cbe){const _0x1ea9c8=_0x2f1425,_0x4a4bd8=this[_0x1ea9c8(0x1e6)]()+_0x1ea9c8(0x238);await this[_0x1ea9c8(0x359)][_0x1ea9c8(0x28f)](_0x4a4bd8,{'params':{'collaboratorID':_0x2c1cbe[_0x1ea9c8(0x41f)],'objectID':_0x2c1cbe[_0x1ea9c8(0x56a)],'unitID':_0x2c1cbe[_0x1ea9c8(0x437)]}});}async[_0x2f1425(0x289)](_0x44156a){const _0x3ac83a=_0x2f1425,_0x108eaa=this[_0x3ac83a(0x1e6)]()+_0x3ac83a(0x238);await this[_0x3ac83a(0x359)][_0x3ac83a(0x1b0)](_0x108eaa,{'body':_0x44156a});}async[_0x2f1425(0x435)](_0x50a116){const _0xa5b123=_0x2f1425,_0xf08be3=this[_0xa5b123(0x1e6)]()+_0xa5b123(0x238);await this[_0xa5b123(0x359)][_0xa5b123(0x31d)](_0xf08be3,{'body':_0x50a116});}async[_0x2f1425(0x1ac)](_0xa3bced){const _0x2dd3d5=_0x2f1425,_0x2f1503=this[_0x2dd3d5(0x1e6)]()+_0x2dd3d5(0x238);return(await this[_0x2dd3d5(0x359)][_0x2dd3d5(0x41b)](_0x2f1503,{'params':{'objectID':_0xa3bced[_0x2dd3d5(0x56a)],'unitID':_0xa3bced[_0x2dd3d5(0x437)]}}))[_0x2dd3d5(0x2d2)][_0x2dd3d5(0x2b6)];}async[_0x2f1425(0x2aa)](_0x22a203){const _0x568576=_0x2f1425,_0x3dfb75=this[_0x568576(0x1e6)]()+_0x568576(0x238);await this['_HTTPService'][_0x568576(0x1a0)](_0x3dfb75,{'body':_0x22a203});}},exports[_0x2f1425(0x321)]=zi([ct(0x0,a[_0x2f1425(0x4d1)](P[_0x2f1425(0x3a0)])),ct(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x47d)]))],exports[_0x2f1425(0x321)]);var Zi=Object[_0x2f1425(0x1cf)],Qi=Object[_0x2f1425(0x2ab)],en=(_0x115a29,_0x331582,_0x2c3288,_0x2f0417)=>{const _0x452cdd=_0x2f1425;for(var _0x4b77e4=_0x2f0417>0x1?void 0x0:_0x2f0417?Qi(_0x331582,_0x2c3288):_0x331582,_0x14cab8=_0x115a29[_0x452cdd(0x38d)]-0x1,_0x448981;_0x14cab8>=0x0;_0x14cab8--)(_0x448981=_0x115a29[_0x14cab8])&&(_0x4b77e4=(_0x2f0417?_0x448981(_0x331582,_0x2c3288,_0x4b77e4):_0x448981(_0x4b77e4))||_0x4b77e4);return _0x2f0417&&_0x4b77e4&&Zi(_0x331582,_0x2c3288,_0x4b77e4),_0x4b77e4;},tn=(_0x52c46f,_0x50bfe7)=>(_0xb6f626,_0x27819f)=>_0x50bfe7(_0xb6f626,_0x27819f,_0x52c46f);let Ce=class{constructor(_0x9a604b){const _0xb1bfc7=_0x2f1425;this[_0xb1bfc7(0x2dd)]=_0x9a604b,this[_0xb1bfc7(0x3e5)]();}[_0x2f1425(0x3e5)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x268109,_0x16c2f4)=>{const _0x53a7cd=_0x4554,_0x4177f4=_0x268109[_0x53a7cd(0x287)],_0x26a70e=Ft['getAttachHeader']();return _0x26a70e&&_0x4177f4['set'](_0x53a7cd(0x53f),_0x26a70e),_0x16c2f4(_0x268109);}});}};Ce=en([tn(0x0,a[_0x2f1425(0x4d1)](P[_0x2f1425(0x3a0)]))],Ce);var sn=Object[_0x2f1425(0x1cf)],nn=Object[_0x2f1425(0x2ab)],rn=(_0x427695,_0xf17048,_0x76278e,_0x451c24)=>{for(var _0x97b8ce=_0x451c24>0x1?void 0x0:_0x451c24?nn(_0xf17048,_0x76278e):_0xf17048,_0x36026e=_0x427695['length']-0x1,_0x575e55;_0x36026e>=0x0;_0x36026e--)(_0x575e55=_0x427695[_0x36026e])&&(_0x97b8ce=(_0x451c24?_0x575e55(_0xf17048,_0x76278e,_0x97b8ce):_0x575e55(_0x97b8ce))||_0x97b8ce);return _0x451c24&&_0x97b8ce&&sn(_0xf17048,_0x76278e,_0x97b8ce),_0x97b8ce;},je=(_0x320831,_0x2a24c5)=>(_0x59018b,_0x293eb9)=>_0x2a24c5(_0x59018b,_0x293eb9,_0x320831);const on=[_0x2f1425(0x27f),_0x2f1425(0x1c4),'image/jpg','image/gif',_0x2f1425(0x3e2)],an=0x5*0x400*0x400,cn=_0x2f1425(0x52a),ln=_0x2f1425(0x21f),hn=_0x2f1425(0x20e),_n=_0x2f1425(0x48f);exports[_0x2f1425(0x579)]=class{constructor(_0x22384f,_0x37ae13,_0x3acbf9){const _0x14b9c7=_0x2f1425;d(this,_0x14b9c7(0x487),0x0),d(this,_0x14b9c7(0x416),new v[(_0x14b9c7(0x368))]()),d(this,_0x14b9c7(0x1ba),this['_change$']),d(this,'_imageSourceCache',new Map()),(this[_0x14b9c7(0x2dd)]=_0x22384f,this[_0x14b9c7(0x1c3)]=_0x37ae13,this[_0x14b9c7(0x458)]=_0x3acbf9);}[_0x2f1425(0x290)](_0x5cb602){const _0x420258=_0x2f1425;this[_0x420258(0x487)]=_0x5cb602,this[_0x420258(0x416)][_0x420258(0x500)](_0x5cb602);}['getImageSourceCache'](_0x2acc68,_0x4e9578){const _0x474fdd=_0x2f1425;if(_0x4e9578===L[_0x474fdd(0x401)][_0x474fdd(0x575)]){const _0x204be0=new Image();return _0x204be0[_0x474fdd(0x4a9)]=_0x2acc68,_0x204be0;}return this[_0x474fdd(0x194)][_0x474fdd(0x41b)](_0x2acc68);}[_0x2f1425(0x217)](_0x495b7e,_0x9b2554,_0x365856){const _0x2a8f00=_0x2f1425;_0x9b2554===L[_0x2a8f00(0x401)][_0x2a8f00(0x575)]||_0x365856==null||this[_0x2a8f00(0x194)][_0x2a8f00(0x36e)](_0x495b7e,_0x365856);}async['getImage'](_0x31b4d1){const _0x366420=_0x2f1425;try{const _0x5bc616=this[_0x366420(0x1b7)](this[_0x366420(0x39b)](),''+_0x31b4d1),_0x6fad0b=(await this[_0x366420(0x2dd)][_0x366420(0x41b)](_0x5bc616))[_0x366420(0x2d2)];if(_0x6fad0b[_0x366420(0x348)]&&_0x6fad0b[_0x366420(0x348)]['code']===It['OK']){const _0x5927b1=new URL(_0x6fad0b[_0x366420(0x1f1)],this[_0x366420(0x1ee)]())[_0x366420(0x51c)]();return Promise[_0x366420(0x311)](_0x5927b1);}return Promise['reject'](_0x6fad0b[_0x366420(0x348)]);}catch(_0x396055){return Promise[_0x366420(0x40e)](_0x396055);}}async[_0x2f1425(0x527)](_0x2c8aba){const _0x591229=_0x2f1425;let _0x20c111='';if(!on[_0x591229(0x537)](_0x2c8aba[_0x591229(0x3c5)]))return this['_decreaseWaiting'](),Promise[_0x591229(0x40e)](new Error(L[_0x591229(0x42e)][_0x591229(0x4d3)]));if(_0x2c8aba[_0x591229(0x362)]>an)return this[_0x591229(0x434)](),Promise[_0x591229(0x40e)](new Error(L['ImageUploadStatusType'][_0x591229(0x19c)]));try{const _0xda8a0e=new FormData();_0xda8a0e[_0x591229(0x1b3)](_0x591229(0x3a2),_0x2c8aba);const _0x2e6e4c=this[_0x591229(0x458)]['getFocusedUnit'](),_0x450ea6=_0x2e6e4c==null?void 0x0:_0x2e6e4c[_0x591229(0x1fa)]();if(!_0x450ea6)throw new Error(_0x591229(0x196));const _0x5c670e=this[_0x591229(0x36d)]()+_0x591229(0x2bf)+_0x2c8aba[_0x591229(0x362)]['toString']()+_0x591229(0x2a9)+pt[_0x591229(0x4a2)]+_0x591229(0x403)+encodeURIComponent(_0x450ea6),_0x5b9a53=await(await fetch(_0x5c670e,{'method':_0x591229(0x360),'body':_0xda8a0e}))[_0x591229(0x4ae)]();if(typeof _0x5b9a53[_0x591229(0x3c1)]!=_0x591229(0x3f2))return this[_0x591229(0x434)](),Promise[_0x591229(0x40e)](new Error(L['ImageUploadStatusType']['ERROR_IMAGE']));_0x20c111=_0x5b9a53[_0x591229(0x3c1)];}catch{return this[_0x591229(0x434)](),Promise[_0x591229(0x40e)](new Error(L[_0x591229(0x42e)]['ERROR_IMAGE']));}return new Promise((_0x4af1e7,_0x15f046)=>{const _0x464cd3=_0x591229,_0xf57af2=new FileReader();_0xf57af2[_0x464cd3(0x47a)](_0x2c8aba),_0xf57af2[_0x464cd3(0x33b)]=_0x1d429a=>{const _0x5f589a=_0x464cd3;var _0x1337e6;const _0x4f1d8d=(_0x1337e6=_0x1d429a[_0x5f589a(0x474)])==null?void 0x0:_0x1337e6[_0x5f589a(0x35b)];if(_0x4f1d8d==null){this[_0x5f589a(0x434)](),_0x15f046(new Error(L[_0x5f589a(0x42e)]['ERROR_IMAGE']));return;}const _0x120385=a['Tools'][_0x5f589a(0x185)](0x6);_0x4af1e7({'imageId':_0x120385,'imageSourceType':L[_0x5f589a(0x401)][_0x5f589a(0x2c4)],'source':_0x20c111,'base64Cache':_0x4f1d8d,'status':L[_0x5f589a(0x42e)][_0x5f589a(0x261)]}),this['_decreaseWaiting']();};});}[_0x2f1425(0x36d)](){const _0x58c4ad=_0x2f1425;var _0x40b76a,_0x285486;const _0x36eea0=this['_configService'][_0x58c4ad(0x480)](cn),_0x4a6540=this[_0x58c4ad(0x1c3)][_0x58c4ad(0x480)](A);return(_0x285486=(_0x40b76a=_0x4a6540==null?void 0x0:_0x4a6540[_0x58c4ad(0x410)])!=null?_0x40b76a:_0x36eea0)!=null?_0x285486:ln;}[_0x2f1425(0x39b)](){const _0x567f14=_0x2f1425;var _0x40027e,_0x48a329;const _0x560055=this['_configService'][_0x567f14(0x480)](hn),_0x31d513=this[_0x567f14(0x1c3)][_0x567f14(0x480)](A);return(_0x48a329=(_0x40027e=_0x31d513==null?void 0x0:_0x31d513[_0x567f14(0x51f)])!=null?_0x40027e:_0x560055)!=null?_0x48a329:_n;}[_0x2f1425(0x1ee)](){const _0x20ed91=_0x2f1425;var _0x37e7e8;const _0x111fce=this['_configService'][_0x20ed91(0x480)](A);return(_0x37e7e8=_0x111fce==null?void 0x0:_0x111fce[_0x20ed91(0x1d8)])!=null?_0x37e7e8:location['origin'];}[_0x2f1425(0x1b7)](_0x3970e9,_0x7f7f23){const _0x566d7b=_0x2f1425;return _0x3970e9[_0x566d7b(0x557)](_0x566d7b(0x1f0),_0x7f7f23);}['_decreaseWaiting'](){const _0x31d61b=_0x2f1425;this[_0x31d61b(0x487)]-=0x1,this['_change$']['next'](this[_0x31d61b(0x487)]);}},exports[_0x2f1425(0x579)]=rn([je(0x0,a[_0x2f1425(0x4d1)](P[_0x2f1425(0x3a0)])),je(0x1,a[_0x2f1425(0x47d)]),je(0x2,a['Inject'](a[_0x2f1425(0x468)]))],exports[_0x2f1425(0x579)]);var un=Object['defineProperty'],dn=Object['getOwnPropertyDescriptor'],Sn=(_0xfd789a,_0x16bf6b,_0x2a942d,_0x4c40bc)=>{for(var _0x5c1cc5=_0x4c40bc>0x1?void 0x0:_0x4c40bc?dn(_0x16bf6b,_0x2a942d):_0x16bf6b,_0x952f90=_0xfd789a['length']-0x1,_0x38b527;_0x952f90>=0x0;_0x952f90--)(_0x38b527=_0xfd789a[_0x952f90])&&(_0x5c1cc5=(_0x4c40bc?_0x38b527(_0x16bf6b,_0x2a942d,_0x5c1cc5):_0x38b527(_0x5c1cc5))||_0x5c1cc5);return _0x4c40bc&&_0x5c1cc5&&un(_0x16bf6b,_0x2a942d,_0x5c1cc5),_0x5c1cc5;},he=(_0xbda483,_0x51b3bf)=>(_0x5ecfbc,_0x25b70c)=>_0x51b3bf(_0x5ecfbc,_0x25b70c,_0xbda483);let Ee=class extends a[_0x2f1425(0x25b)]{constructor(_0x170070,_0x1f65d8,_0x4a602d,_0x22de6c,_0x25ae70){const _0x2b721d=_0x2f1425;super(),this[_0x2b721d(0x4fa)]=_0x170070,this[_0x2b721d(0x458)]=_0x1f65d8,this[_0x2b721d(0x531)]=_0x4a602d,this[_0x2b721d(0x3e8)]=_0x22de6c,this[_0x2b721d(0x3ec)]=_0x25ae70,this[_0x2b721d(0x174)](),this[_0x2b721d(0x553)]();}['_initCloseConn'](){const _0x575ce5=_0x2f1425,_0xf1e272=async _0x527e35=>{const _0x3adc71=_0x4554;(await this['_collaborationSessionService'][_0x3adc71(0x1a6)](_0x527e35))[_0x3adc71(0x4f8)][_0x3adc71(0x53d)](E[_0x3adc71(0x2b7)](_0x4d9ca0=>_0x4d9ca0[_0x3adc71(0x188)]===_[_0x3adc71(0x565)][_0x3adc71(0x4ca)]),E[_0x3adc71(0x275)](this[_0x3adc71(0x2b4)]))[_0x3adc71(0x3ca)](_0x5f183f=>{const _0x379c83=_0x3adc71,_0x3db21a=_0x5f183f,{reason:_0x47b376}=_0x3db21a[_0x379c83(0x2a5)];this[_0x379c83(0x4fa)][_0x379c83(0x41b)](N[_0x379c83(0x48c)])[_0x379c83(0x1b9)]({'type':X['MessageType']['Error'],'content':this[_0x379c83(0x3ec)]['t'](_0x379c83(0x440))+'('+_0x47b376+')'}),this[_0x379c83(0x531)][_0x379c83(0x4cc)](new C[(_0x379c83(0x224))](_0x527e35)['id'],!0x1),this[_0x379c83(0x3e8)][_0x379c83(0x540)](_0x527e35);});};v['merge'](this['_univerInstanceService'][_0x575ce5(0x4e4)](a[_0x575ce5(0x35f)]['UNIVER_SHEET']),this[_0x575ce5(0x458)][_0x575ce5(0x4e4)](a[_0x575ce5(0x35f)][_0x575ce5(0x3df)]))['pipe'](E[_0x575ce5(0x1c9)](_0x214b86=>_0x214b86[_0x575ce5(0x1fa)]()),E[_0x575ce5(0x2b7)](_0x50fd83=>!a[_0x575ce5(0x4a1)](_0x50fd83)),E[_0x575ce5(0x275)](this[_0x575ce5(0x2b4)]))[_0x575ce5(0x3ca)](_0x299f2a=>{_0xf1e272(_0x299f2a);});}[_0x2f1425(0x174)](){const _0x20cffb=_0x2f1425,_0x33ac6c=async _0x5bd45a=>{const _0x42a637=_0x4554;(await this[_0x42a637(0x3e8)][_0x42a637(0x1a6)](_0x5bd45a))['event$'][_0x42a637(0x53d)](E[_0x42a637(0x2b7)](_0x4526b2=>_0x4526b2['eventID']===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E[_0x42a637(0x275)](this[_0x42a637(0x2b4)]))['subscribe'](_0x4935d9=>{const _0x3e41c3=_0x42a637,_0x3a4590=_0x4935d9,{objectId:_0x2017fd}=_0x3a4590['data'],_0x45d03a=this[_0x3e41c3(0x4fa)][_0x3e41c3(0x41b)](te[_0x3e41c3(0x452)]);_0x2017fd===_0x5bd45a?_0x45d03a[_0x3e41c3(0x3a9)](_0x5bd45a):_0x45d03a[_0x3e41c3(0x532)](_0x5bd45a,_0x2017fd);});};v[_0x20cffb(0x18a)](this['_univerInstanceService'][_0x20cffb(0x4e4)](a[_0x20cffb(0x35f)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x20cffb(0x4e4)](a[_0x20cffb(0x35f)][_0x20cffb(0x3df)]))[_0x20cffb(0x53d)](E[_0x20cffb(0x1c9)](_0x39ed53=>_0x39ed53[_0x20cffb(0x1fa)]()),E[_0x20cffb(0x2b7)](_0x2a3122=>!a[_0x20cffb(0x4a1)](_0x2a3122)),E[_0x20cffb(0x275)](this[_0x20cffb(0x2b4)]))[_0x20cffb(0x3ca)](_0x3d10bd=>{_0x33ac6c(_0x3d10bd);});}};Ee=Sn([he(0x0,a[_0x2f1425(0x4d1)](a['Injector'])),he(0x1,a['IUniverInstanceService']),he(0x2,a[_0x2f1425(0x18e)]),he(0x3,a[_0x2f1425(0x4d1)](exports['CollaborationSessionService'])),he(0x4,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)]))],Ee);var vn=Object['defineProperty'],fn=Object[_0x2f1425(0x2ab)],gn=(_0x2d24a8,_0x4c53b4,_0x225d4e,_0x21a288)=>{const _0x425d12=_0x2f1425;for(var _0x813ef7=_0x21a288>0x1?void 0x0:_0x21a288?fn(_0x4c53b4,_0x225d4e):_0x4c53b4,_0x5a1d33=_0x2d24a8[_0x425d12(0x38d)]-0x1,_0x1e27eb;_0x5a1d33>=0x0;_0x5a1d33--)(_0x1e27eb=_0x2d24a8[_0x5a1d33])&&(_0x813ef7=(_0x21a288?_0x1e27eb(_0x4c53b4,_0x225d4e,_0x813ef7):_0x1e27eb(_0x813ef7))||_0x813ef7);return _0x21a288&&_0x813ef7&&vn(_0x4c53b4,_0x225d4e,_0x813ef7),_0x813ef7;},lt=(_0x59ce46,_0x16967b)=>(_0x1f22e7,_0x2604a1)=>_0x16967b(_0x1f22e7,_0x2604a1,_0x59ce46);exports[_0x2f1425(0x45a)]=class{constructor(_0x5a89b1,_0x5e6691){this['_configService']=_0x5a89b1,this['_httpService']=_0x5e6691;}async[_0x2f1425(0x2a7)](_0x5aecaf,_0x3f3895){const _0x44e7f9=_0x2f1425;var _0x103c10;const {unitID:_0x1e0ca0,type:_0x5a13ee,revision:_0x567405=0x0}=_0x3f3895,_0x56dc3a=this['_getSnapshotAPIPrefix']()+'/'+_0x5a13ee+'/unit/'+_0x1e0ca0+_0x44e7f9(0x211)+_0x567405,_0x4c2421=(await this[_0x44e7f9(0x2dd)][_0x44e7f9(0x41b)](_0x56dc3a))[_0x44e7f9(0x2d2)],_0x54d2ee=(_0x103c10=_0x4c2421[_0x44e7f9(0x32d)])==null?void 0x0:_0x103c10[_0x44e7f9(0x1af)];if(_0x54d2ee){const _0x2a0d36=_0x54d2ee==null?void 0x0:_0x54d2ee[_0x44e7f9(0x413)],_0x5bbe42=_[_0x44e7f9(0x1a2)][_0x44e7f9(0x4c8)](_[_0x44e7f9(0x50b)](_0x2a0d36));_0x54d2ee[_0x44e7f9(0x413)]=_0x5bbe42,Object[_0x44e7f9(0x523)](_0x54d2ee[_0x44e7f9(0x483)])[_0x44e7f9(0x28e)](([,_0x1b38a0])=>{const _0x599e03=_0x44e7f9,_0x41f1b6=_0x1b38a0['originalMeta'],_0x52d466=_[_0x599e03(0x1a2)][_0x599e03(0x4c8)](_[_0x599e03(0x50b)](_0x41f1b6));_0x1b38a0[_0x599e03(0x413)]=_0x52d466;});}return _0x4c2421;}async['getSheetBlock'](_0x6ec7a2,_0x260328){const _0x28c217=_0x2f1425,{unitID:_0x4f86aa,type:_0x35265b,blockID:_0x1ae558}=_0x260328,_0x561b27=this['_getAPIPrefix']()+'/'+_0x35265b+_0x28c217(0x38a)+_0x4f86aa+_0x28c217(0x442)+_0x1ae558;return(await this[_0x28c217(0x2dd)]['get'](_0x561b27))['body'];}async[_0x2f1425(0x3b5)](_0x5ed952,_0x161fb7){const _0x552439=_0x2f1425,{unitID:_0x4d350d,type:_0xbc857,blockID:_0xf3c6d0}=_0x161fb7,_0x1ab7ca=this[_0x552439(0x26e)]()+_0x552439(0x442)+_0xbc857+_0x552439(0x38a)+_0x4d350d+'/block/'+_0xf3c6d0;return(await this[_0x552439(0x2dd)]['get'](_0x1ab7ca))[_0x552439(0x2d2)];}async[_0x2f1425(0x1fe)](_0xc4ec4f,_0x5017d5){const _0x522738=_0x2f1425,{unitID:_0x3f49ae,type:_0x54a871,from:_0x4f33fd,to:_0x3ae313}=_0x5017d5,_0xddbc=this[_0x522738(0x26e)]()+'/'+_0x54a871+'/unit/'+_0x3f49ae+_0x522738(0x508)+_0x4f33fd+_0x522738(0x3a4)+_0x3ae313;return(await this[_0x522738(0x2dd)][_0x522738(0x41b)](_0xddbc))[_0x522738(0x2d2)];}[_0x2f1425(0x23b)](){const _0x86bbb3=_0x2f1425;var _0x303d15;return(_0x303d15=this[_0x86bbb3(0x1c3)][_0x86bbb3(0x480)](_t))!=null?_0x303d15:this['_getAPIPrefix']();}[_0x2f1425(0x26e)](){const _0x520ce8=_0x2f1425;var _0x54e1cf,_0x42f5b9;const _0x2fbbc9=this[_0x520ce8(0x1c3)][_0x520ce8(0x480)](ht),_0x2b1dd0=this[_0x520ce8(0x1c3)][_0x520ce8(0x480)](A);return(_0x42f5b9=(_0x54e1cf=_0x2b1dd0==null?void 0x0:_0x2b1dd0[_0x520ce8(0x31f)])!=null?_0x54e1cf:_0x2fbbc9)!=null?_0x42f5b9:Gt;}async['getResourcesRequest'](_0x47ee22,_0x41daa6){const _0x11150c=_0x2f1425,_0x2b9277='/universer-api/snapshot/'+_0x41daa6[_0x11150c(0x3c5)]+_0x11150c(0x38a)+_0x41daa6[_0x11150c(0x437)]+_0x11150c(0x3af);return(await this[_0x11150c(0x2dd)]['get'](_0x2b9277,{'params':{'resourceId':JSON[_0x11150c(0x1d5)](_0x41daa6['resourceIDs'])}}))[_0x11150c(0x2d2)];}[_0x2f1425(0x520)](){const _0x4c0eb6=_0x2f1425;throw new Error(_0x4c0eb6(0x408));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2f1425(0x212)](){const _0x586d97=_0x2f1425;throw new Error(_0x586d97(0x408));}[_0x2f1425(0x551)](){const _0x199f29=_0x2f1425;throw new Error(_0x199f29(0x408));}},exports['SnapshotServerOverHTTPService']=gn([lt(0x0,a['IConfigService']),lt(0x1,a[_0x2f1425(0x4d1)](P['HTTPService']))],exports['SnapshotServerOverHTTPService']);var mn=Object['defineProperty'],In=Object['getOwnPropertyDescriptor'],pn=(_0x50530a,_0x537825,_0x1d14da,_0x1175f1)=>{const _0x3a63d9=_0x2f1425;for(var _0x24c563=_0x1175f1>0x1?void 0x0:_0x1175f1?In(_0x537825,_0x1d14da):_0x537825,_0x342bd7=_0x50530a[_0x3a63d9(0x38d)]-0x1,_0x491535;_0x342bd7>=0x0;_0x342bd7--)(_0x491535=_0x50530a[_0x342bd7])&&(_0x24c563=(_0x1175f1?_0x491535(_0x537825,_0x1d14da,_0x24c563):_0x491535(_0x24c563))||_0x24c563);return _0x1175f1&&_0x24c563&&mn(_0x537825,_0x1d14da,_0x24c563),_0x24c563;},_e=(_0x27f042,_0x3b9fda)=>(_0x4caafa,_0x554aa3)=>_0x3b9fda(_0x4caafa,_0x554aa3,_0x27f042);let Be=class extends a[_0x2f1425(0x3fe)]{constructor(_0x105884,_0x17b4b6,_0x2ba7f3,_0x35f547,_0x50e74c){const _0x54e3fd=_0x2f1425;super(_0x105884,_0x17b4b6,_0x2ba7f3),this[_0x54e3fd(0x3fd)]=_0x35f547,this[_0x54e3fd(0x562)]=_0x50e74c;}[_0x2f1425(0x1ad)](_0x60e32e,_0x7cce5d){const _0x35c867=_0x2f1425,_0x4ff455=this[_0x35c867(0x42a)](_0x60e32e);if(_0x4ff455)try{const _0x5cdee2=this[_0x35c867(0x370)](_0x4ff455,_0x7cce5d);this['_substituteUndoStack'](_0x60e32e,_0x5cdee2);}catch(_0x4dd025){this[_0x35c867(0x562)]['error'](_0x35c867(0x2f0),_0x4dd025),this['_clearUndo'](_0x60e32e);}const _0x4d231f=this[_0x35c867(0x270)](_0x60e32e);if(_0x4d231f)try{const _0x145270=this[_0x35c867(0x370)](_0x4d231f,_0x7cce5d);this[_0x35c867(0x4b0)](_0x60e32e,_0x145270);}catch(_0x221e20){this[_0x35c867(0x562)][_0x35c867(0x348)](_0x221e20),this[_0x35c867(0x2ee)](_0x60e32e);}}[_0x2f1425(0x265)](_0x23617b){const _0x57a3bf=_0x2f1425,_0x19f2b3=this[_0x57a3bf(0x42a)](_0x23617b);_0x19f2b3&&(_0x19f2b3['length']=0x0,this[_0x57a3bf(0x23a)]());}[_0x2f1425(0x2ee)](_0x545fa0){const _0x55b4b4=_0x2f1425,_0x3f71ea=this[_0x55b4b4(0x270)](_0x545fa0);_0x3f71ea&&(_0x3f71ea[_0x55b4b4(0x38d)]=0x0,this[_0x55b4b4(0x23a)]());}['_substituteUndoStack'](_0x5603b9,_0x1a643c){const _0x140078=_0x2f1425;this[_0x140078(0x516)][_0x140078(0x36e)](_0x5603b9,_0x1a643c),this[_0x140078(0x23a)]();}[_0x2f1425(0x4b0)](_0x542086,_0x5459f5){const _0x2a3929=_0x2f1425;this[_0x2a3929(0x4aa)][_0x2a3929(0x36e)](_0x542086,_0x5459f5),this[_0x2a3929(0x23a)]();}[_0x2f1425(0x370)](_0x53cb67,_0x507bea){const _0x2a787c=_0x2f1425,_0x4c669a=[];let _0x390e0b=_0x507bea,_0x82e598=_0x507bea;for(let _0x4e5389=_0x53cb67['length']-0x1;_0x4e5389>=0x0;_0x4e5389--){const {unitID:_0x2c07ef,undoMutations:_0x19219a,redoMutations:_0x523e3d}=_0x53cb67[_0x4e5389],_0x28bb41=this[_0x2a787c(0x3fd)][_0x2a787c(0x55d)](_0x390e0b,_0x19219a),_0x31097a=this['_transformService']['transformMutationsWithChangeset'](_0x82e598,_0x523e3d);if(_[_0x2a787c(0x328)](_0x28bb41)||_[_0x2a787c(0x328)](_0x31097a)){this[_0x2a787c(0x562)][_0x2a787c(0x348)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x28bb41,_0x31097a);break;}_0x390e0b=_0x28bb41[_0x2a787c(0x3bc)],_0x82e598=_0x31097a[_0x2a787c(0x3bc)],_0x4c669a[_0x2a787c(0x52d)]({'unitID':_0x2c07ef,'undoMutations':_0x28bb41[_0x2a787c(0x409)],'redoMutations':_0x31097a['m2Prime']});}return _0x4c669a[_0x2a787c(0x4e6)]();}};Be=pn([_e(0x0,a[_0x2f1425(0x468)]),_e(0x1,a[_0x2f1425(0x477)]),_e(0x2,a['IContextService']),_e(0x3,_['ITransformService']),_e(0x4,a['ILogService'])],Be);class Nt extends a[_0x2f1425(0x25b)]{constructor(){const _0x5802bc=_0x2f1425;super(),d(this,_0x5802bc(0x2b8)),this[_0x5802bc(0x2b8)]=v['fromEvent'](window,_0x5802bc(0x250))[_0x5802bc(0x53d)](v['takeUntil'](this[_0x5802bc(0x2b4)]),v[_0x5802bc(0x4bd)](0x1),v[_0x5802bc(0x2fe)](void 0x0));}['setParam'](_0x149d20,_0x5cafa1,_0x30af97=!0x1){const _0x5e85cc=_0x2f1425,_0x3eddfd=new URL(window[_0x5e85cc(0x2d9)]['href']);_0x3eddfd['searchParams'][_0x5e85cc(0x36e)](_0x149d20,_0x5cafa1),_0x30af97?window[_0x5e85cc(0x4a7)]['replaceState']('','',_0x3eddfd[_0x5e85cc(0x51c)]()):window[_0x5e85cc(0x4a7)]['pushState']('','',_0x3eddfd[_0x5e85cc(0x51c)]());}[_0x2f1425(0x3e0)](_0x39651e,_0xc2b130=!0x1){const _0x41ca70=_0x2f1425,_0x1100b4=new URL(window[_0x41ca70(0x2d9)][_0x41ca70(0x236)]);_0x1100b4[_0x41ca70(0x4da)][_0x41ca70(0x28f)](_0x39651e),_0xc2b130?window[_0x41ca70(0x4a7)][_0x41ca70(0x283)]('','',_0x1100b4['toString']()):window[_0x41ca70(0x4a7)][_0x41ca70(0x475)]('','',_0x1100b4[_0x41ca70(0x51c)]());}['getParam'](_0x3cee3d){const _0x2aea60=_0x2f1425;var _0x56182c;return(_0x56182c=new URL(window[_0x2aea60(0x2d9)][_0x2aea60(0x236)])[_0x2aea60(0x4da)][_0x2aea60(0x41b)](_0x3cee3d))!=null?_0x56182c:void 0x0;}}var At=Object['defineProperty'],Cn=Object[_0x2f1425(0x2ab)],En=(_0x5c0783,_0x3b1142,_0x515532)=>_0x3b1142 in _0x5c0783?At(_0x5c0783,_0x3b1142,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x515532}):_0x5c0783[_0x3b1142]=_0x515532,bn=(_0x3e9a1c,_0x46afbd,_0x435981,_0x2d7408)=>{const _0x8bfac8=_0x2f1425;for(var _0x13ecc3=_0x2d7408>0x1?void 0x0:_0x2d7408?Cn(_0x46afbd,_0x435981):_0x46afbd,_0x284051=_0x3e9a1c[_0x8bfac8(0x38d)]-0x1,_0x42fa3f;_0x284051>=0x0;_0x284051--)(_0x42fa3f=_0x3e9a1c[_0x284051])&&(_0x13ecc3=(_0x2d7408?_0x42fa3f(_0x46afbd,_0x435981,_0x13ecc3):_0x42fa3f(_0x13ecc3))||_0x13ecc3);return _0x2d7408&&_0x13ecc3&&At(_0x46afbd,_0x435981,_0x13ecc3),_0x13ecc3;},ve=(_0x1f9277,_0x55c40d)=>(_0x17a76e,_0xa3b777)=>_0x55c40d(_0x17a76e,_0xa3b777,_0x1f9277),Tn=(_0x5cc21a,_0x35b90e,_0x59f478)=>En(_0x5cc21a,_0x35b90e+'',_0x59f478);const Rn=_0x2f1425(0x54c);exports['UniverCollaborationClientPlugin']=class extends a[_0x2f1425(0x254)]{constructor(_0x5e119b=ts,_0xdd431b,_0x40dbe1,_0x433469,_0x3ec64b){const _0xcbc47a=_0x2f1425;super(),this[_0xcbc47a(0x181)]=_0x5e119b,this[_0xcbc47a(0x562)]=_0xdd431b,this['_renderManagerService']=_0x40dbe1,this['_injector']=_0x433469,this[_0xcbc47a(0x1c3)]=_0x3ec64b;const {..._0x19aa78}=this[_0xcbc47a(0x181)];this['_configService'][_0xcbc47a(0x496)](A,_0x19aa78);}['onStarting'](){const _0xcfe657=_0x2f1425;this['_registerDependencies'](),a[_0xcfe657(0x47f)](this[_0xcfe657(0x4fa)],[[ie],[exports[_0xcfe657(0x2d8)]],[Ee]]);}[_0x2f1425(0x383)](){const _0x503bd8=_0x2f1425;a[_0x503bd8(0x47f)](this['_injector'],[[Ie]]);}[_0x2f1425(0x43b)](){this['_registerRenderDependencies']();}[_0x2f1425(0x361)](){const _0x2f5842=_0x2f1425;var _0x3bc037,_0x27f814,_0x56e29b,_0x23ecbc;this[_0x2f5842(0x4fa)][_0x2f5842(0x555)](a['IUndoRedoService'])&&this[_0x2f5842(0x562)][_0x2f5842(0x348)](_0x2f5842(0x29b),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x7adb49=[[a[_0x2f5842(0x45b)],{'useClass':Be}],[exports[_0x2f5842(0x1d4)]],[Xe],[P[_0x2f5842(0x3a0)]],[ze,{'useClass':Nt}],[q],[exports['LocalCacheService']],[P[_0x2f5842(0x266)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x27f814=(_0x3bc037=this[_0x2f5842(0x181)])==null?void 0x0:_0x3bc037[_0x2f5842(0x1e5)])!=null?_0x27f814:exports[_0x2f5842(0x19b)]}],[P[_0x2f5842(0x215)],{'useClass':P['XHRHTTPImplementation']}],[_['ISnapshotServerService'],{'useClass':exports[_0x2f5842(0x45a)]}],[a[_0x2f5842(0x35d)],{'useClass':exports[_0x2f5842(0x321)]}],[L[_0x2f5842(0x3dd)],{'useClass':exports['ImageIoService']}],[exports[_0x2f5842(0x4f1)]],[exports[_0x2f5842(0x2d8)]],[exports[_0x2f5842(0x55b)]],[Ie],[ie]];(_0x56e29b=this[_0x2f5842(0x181)])!=null&&_0x56e29b['enableSingleActiveInstanceLock']&&_0x7adb49[_0x2f5842(0x52d)]([be,{'useClass':ys}]),_0x7adb49=a['mergeOverrideWithDependencies'](_0x7adb49,(_0x23ecbc=this[_0x2f5842(0x181)])==null?void 0x0:_0x23ecbc['override']),_0x7adb49[_0x2f5842(0x28e)](_0xe38c8=>this[_0x2f5842(0x4fa)][_0x2f5842(0x1fd)](_0xe38c8)),this[_0x2f5842(0x1f2)]();}[_0x2f1425(0x2fb)](){const _0x4da121=_0x2f1425;this[_0x4da121(0x425)](this[_0x4da121(0x377)][_0x4da121(0x26b)](a['UniverInstanceType'][_0x4da121(0x3df)],[xe])),this[_0x4da121(0x425)](this['_renderManagerService'][_0x4da121(0x26b)](a['UniverInstanceType'][_0x4da121(0x1bf)],[ke]));}[_0x2f1425(0x1f2)](){const _0x16a01a=_0x2f1425;var _0x45e14b,_0x5f2185;this['_injector'][_0x16a01a(0x41b)](P[_0x16a01a(0x3a0)])[_0x16a01a(0x493)]({'priority':0x14,'interceptor':P[_0x16a01a(0x380)]({'maxParallel':0x6})}),this[_0x16a01a(0x4fa)]['get'](Ce),(_0x45e14b=this[_0x16a01a(0x181)])!=null&&_0x45e14b[_0x16a01a(0x43e)]||this[_0x16a01a(0x4fa)]['get'](exports[_0x16a01a(0x509)])[_0x16a01a(0x566)](),(_0x5f2185=this[_0x16a01a(0x181)])!=null&&_0x5f2185[_0x16a01a(0x2a2)]&&this[_0x16a01a(0x4fa)][_0x16a01a(0x41b)](pe),this['_injector'][_0x16a01a(0x41b)](exports[_0x16a01a(0x4f1)]),this[_0x16a01a(0x4fa)]['has'](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x16a01a(0x4fa)]['get'](exports[_0x16a01a(0x55b)]);}},Tn(exports[_0x2f1425(0x2f9)],_0x2f1425(0x454),Rn),exports[_0x2f1425(0x2f9)]=bn([a[_0x2f1425(0x48a)](_['UniverCollaborationPlugin']),ve(0x1,a[_0x2f1425(0x2e3)]),ve(0x2,R[_0x2f1425(0x456)]),ve(0x3,a['Inject'](a['Injector'])),ve(0x4,a['IConfigService'])],exports[_0x2f1425(0x2f9)]),exports[_0x2f1425(0x208)]=Mt,exports[_0x2f1425(0x331)]=gt,exports[_0x2f1425(0x35e)]=ut,exports['CollaborationStatus']=y,exports[_0x2f1425(0x1f8)]=wt,exports[_0x2f1425(0x541)]=Ge,exports[_0x2f1425(0x495)]=dt,exports['HEARTBEAT_TIMEOUT_KEY']=Ve,exports['ICollaborationSocketService']=Fe,exports[_0x2f1425(0x30f)]=ze,exports['LOCAL_CACHE_INTERVAL_KEY']=ft,exports['LOGIN_URL_KEY']=mt,exports[_0x2f1425(0x3c7)]=vt,exports[_0x2f1425(0x245)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x2f1425(0x274)]=_t,exports[_0x2f1425(0x49b)]=$,exports[_0x2f1425(0x521)]=Ot,exports['WebURLService']=Nt,exports[_0x2f1425(0x421)]=Ct,exports[_0x2f1425(0x23d)]=Et;