@univerjs-pro/collaboration-client 0.2.13 → 0.2.15
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +4 -4
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -3
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -1
- package/lib/types/plugin.d.ts +5 -0
- package/lib/types/services/image-remote/image-io.service.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/package.json +32 -32
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x44ec13=_0x2929;(function(_0x2c8532,_0x34b510){const _0x570d64=_0x2929,_0x5023f0=_0x2c8532();while(!![]){try{const _0x1ae7b4=parseInt(_0x570d64(0x222))/0x1*(-parseInt(_0x570d64(0x232))/0x2)+parseInt(_0x570d64(0x1fc))/0x3*(parseInt(_0x570d64(0x1c8))/0x4)+-parseInt(_0x570d64(0x50c))/0x5+-parseInt(_0x570d64(0x50e))/0x6+-parseInt(_0x570d64(0x42b))/0x7+parseInt(_0x570d64(0x47f))/0x8*(parseInt(_0x570d64(0x310))/0x9)+parseInt(_0x570d64(0x427))/0xa;if(_0x1ae7b4===_0x34b510)break;else _0x5023f0['push'](_0x5023f0['shift']());}catch(_0x30e063){_0x5023f0['push'](_0x5023f0['shift']());}}}(_0xff45,0xe68d7));var kt=Object[_0x44ec13(0x2ec)],Bt=(_0x2f2a37,_0x399e7a,_0xa21bb0)=>_0x399e7a in _0x2f2a37?kt(_0x2f2a37,_0x399e7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa21bb0}):_0x2f2a37[_0x399e7a]=_0xa21bb0,d=(_0x8ad88,_0x3a052f,_0x154fef)=>Bt(_0x8ad88,typeof _0x3a052f!=_0x44ec13(0x199)?_0x3a052f+'':_0x3a052f,_0x154fef);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x44ec13(0x38f)});const a=require(_0x44ec13(0x438)),v=require('rxjs'),E=require(_0x44ec13(0x1e8)),K=require(_0x44ec13(0x150)),M=require(_0x44ec13(0x452)),w=require(_0x44ec13(0x436)),_=require(_0x44ec13(0x419)),Vt=require(_0x44ec13(0x381)),B=require(_0x44ec13(0x2e3)),C=require(_0x44ec13(0x43a)),U=require(_0x44ec13(0x414)),R=require(_0x44ec13(0x142)),L=require(_0x44ec13(0x469)),Je=require(_0x44ec13(0x4ca)),ke=require(_0x44ec13(0x4d2)),ee=require(_0x44ec13(0x30c)),P=require(_0x44ec13(0x346)),Ft=require('clsx'),Wt=require(_0x44ec13(0x3ef)),lt='SNAPSHOT_SERVER_URL_KEY',Gt='/universer-api/snapshot',ht=_0x44ec13(0x2dc),_t=_0x44ec13(0x293),Yt=0x7d0,ut='COLLAB_WEB_SOCKET_URL',Kt=_0x44ec13(0x2fb),dt=_0x44ec13(0x2e5),Xt=0x7530,Be=_0x44ec13(0x46d),St=0x4e20,vt='RETRY_CONNECTING_INTERVAL',qt=0x4e20,mt=_0x44ec13(0x29a),Jt=0x3,ft=_0x44ec13(0x1ed),zt=0x3e8,gt=_0x44ec13(0x390),Zt=_0x44ec13(0x27a),It=_0x44ec13(0x361),Qt=_0x44ec13(0x1f7);var pt=(_0x199755=>(_0x199755[_0x199755['UNDEFINED']=0x0]=_0x44ec13(0x1f9),_0x199755[_0x199755['OK']=0x1]='OK',_0x199755[_0x199755['INTERNAL_ERROR']=0x2]=_0x44ec13(0x4c9),_0x199755[_0x199755[_0x44ec13(0x525)]=0x3]='PERMISSION_DENIED',_0x199755[_0x199755[_0x44ec13(0x198)]=0x4]=_0x44ec13(0x198),_0x199755[_0x199755['UNAUTHENTICATED']=0x5]=_0x44ec13(0x39d),_0x199755[_0x199755[_0x44ec13(0x1b3)]=0x6]=_0x44ec13(0x1b3),_0x199755[_0x199755[_0x44ec13(0x4a5)]=0x7]='INVALID_ARGUMENT',_0x199755[_0x199755['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x199755[_0x199755['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x199755[_0x199755[_0x44ec13(0x3f5)]=0x1389]=_0x44ec13(0x3f5),_0x199755[_0x199755[_0x44ec13(0x2e8)]=0x1771]=_0x44ec13(0x2e8),_0x199755[_0x199755[_0x44ec13(0x241)]=0x1772]=_0x44ec13(0x241),_0x199755[_0x199755['APPLY_REJECT']=0x1b59]=_0x44ec13(0x34f),_0x199755[_0x199755[_0x44ec13(0x2dd)]=0x1b5a]=_0x44ec13(0x2dd),_0x199755[_0x199755['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x44ec13(0x143),_0x199755[_0x199755[_0x44ec13(0x431)]=0x1b5c]=_0x44ec13(0x431),_0x199755[_0x199755['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x44ec13(0x3ab),_0x199755[_0x199755[_0x44ec13(0x3eb)]=0x2329]=_0x44ec13(0x3eb),_0x199755[_0x199755['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x44ec13(0x2a7),_0x199755[_0x199755[_0x44ec13(0x29f)]=0x232b]=_0x44ec13(0x29f),_0x199755[_0x199755[_0x44ec13(0x2a5)]=0x232c]=_0x44ec13(0x2a5),_0x199755[_0x199755[_0x44ec13(0x255)]=0x232d]=_0x44ec13(0x255),_0x199755[_0x199755[_0x44ec13(0x40d)]=0x2711]=_0x44ec13(0x40d),_0x199755[_0x199755[_0x44ec13(0x2ab)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x199755[_0x199755['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x44ec13(0x18f),_0x199755[_0x199755[_0x44ec13(0x3ac)]=0x2714]=_0x44ec13(0x3ac),_0x199755[_0x199755[_0x44ec13(0x356)]=-0x1]='UNRECOGNIZED',_0x199755))(pt||{}),A=(_0x18dff2=>(_0x18dff2[_0x18dff2['UNIVER_UNKNOWN']=0x0]=_0x44ec13(0x31f),_0x18dff2[_0x18dff2['UNIVER_DOC']=0x1]=_0x44ec13(0x344),_0x18dff2[_0x18dff2['UNIVER_SHEET']=0x2]=_0x44ec13(0x420),_0x18dff2[_0x18dff2['UNIVER_SLIDE']=0x3]=_0x44ec13(0x2e4),_0x18dff2[_0x18dff2[_0x44ec13(0x154)]=0x4]='UNIVER_PROJECT',_0x18dff2[_0x18dff2[_0x44ec13(0x356)]=-0x1]=_0x44ec13(0x356),_0x18dff2))(A||{}),b=(_0x4d01a5=>(_0x4d01a5[_0x4d01a5[_0x44ec13(0x156)]=0x0]=_0x44ec13(0x156),_0x4d01a5[_0x4d01a5[_0x44ec13(0x542)]=0x1]='HELLO',_0x4d01a5[_0x4d01a5['JOIN']=0x2]='JOIN',_0x4d01a5[_0x4d01a5[_0x44ec13(0x411)]=0x3]='LEAVE',_0x4d01a5[_0x4d01a5[_0x44ec13(0x45e)]=0x4]=_0x44ec13(0x45e),_0x4d01a5[_0x4d01a5[_0x44ec13(0x261)]=0x5]=_0x44ec13(0x261),_0x4d01a5[_0x4d01a5[_0x44ec13(0x1ba)]=0x6]=_0x44ec13(0x1ba),_0x4d01a5[_0x4d01a5[_0x44ec13(0x356)]=-0x1]=_0x44ec13(0x356),_0x4d01a5))(b||{}),Ve=(_0x4f035a=>(_0x4f035a[_0x4f035a[_0x44ec13(0x364)]=0x0]='UNKNOWN_CODE',_0x4f035a[_0x4f035a['OK']=0x1]='OK',_0x4f035a[_0x4f035a[_0x44ec13(0x4b2)]=0x2]=_0x44ec13(0x4b2),_0x4f035a[_0x4f035a[_0x44ec13(0x356)]=-0x1]='UNRECOGNIZED',_0x4f035a))(Ve||{}),Ct=(_0x1e8ec2=>(_0x1e8ec2[_0x1e8ec2[_0x44ec13(0x4ba)]=0x0]=_0x44ec13(0x4ba),_0x1e8ec2[_0x1e8ec2['HttpImport']=0x1]=_0x44ec13(0x268),_0x1e8ec2[_0x1e8ec2['HttpExport']=0x2]='HttpExport',_0x1e8ec2[_0x1e8ec2[_0x44ec13(0x263)]=0x3]=_0x44ec13(0x263),_0x1e8ec2[_0x1e8ec2[_0x44ec13(0x511)]=0x4]=_0x44ec13(0x511),_0x1e8ec2[_0x1e8ec2[_0x44ec13(0x356)]=-0x1]='UNRECOGNIZED',_0x1e8ec2))(Ct||{});function Et(_0x1df1f7){const _0x31e5a1=_0x44ec13;var _0x1fa1fd,_0x3ebe92,_0x25d990,_0x42830c;const _0x270083=_0x1df1f7[_0x31e5a1(0x387)],_0xb8217=JSON[_0x31e5a1(0x18a)](_0x270083);switch(_0xb8217['cmd']){case b['HEARTBEAT']:case b[_0x31e5a1(0x542)]:{const _0x197f61=_0xb8217['infoRsp'];return{..._0xb8217,'data':_0x197f61,'cmd':_0xb8217[_0x31e5a1(0x279)]};}case b[_0x31e5a1(0x13e)]:{const _0x5da68d=_0xb8217[_0x31e5a1(0x367)];return{..._0xb8217,'data':_0x5da68d,'cmd':_0xb8217['cmd']};}case b[_0x31e5a1(0x1ba)]:{const _0x4ad0fc=_0xb8217[_0x31e5a1(0x26b)];switch(_0x4ad0fc[_0x31e5a1(0x348)]){case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x4dc)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':(_0x1fa1fd=_0x4ad0fc[_0x31e5a1(0x1d9)])==null?void 0x0:_0x1fa1fd['cs']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x1a5)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':(_0x3ebe92=_0x4ad0fc[_0x31e5a1(0x4e5)])==null?void 0x0:_0x3ebe92['cs']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x281)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':(_0x25d990=_0x4ad0fc['newCsEvent'])==null?void 0x0:_0x25d990['cs']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _['CollaborationEvent'][_0x31e5a1(0x195)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':(_0x42830c=_0x4ad0fc['csRejEvent'])==null?void 0x0:_0x42830c['cs']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _['CollaborationEvent'][_0x31e5a1(0x253)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x14d)]},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x489)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc['joinEvent']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x523)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc['leaveEvent']},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)]['LIVESHARE_NEW_HOST']:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x421)]},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _['CollaborationEvent'][_0x31e5a1(0x409)]:case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x2d6)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x4da)]},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x3f4)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x421)]},'cmd':_0xb8217['cmd']};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x26a)]:return{..._0xb8217,'data':_0x4ad0fc,'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x187)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x329)]},'cmd':_0xb8217['cmd']};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x351)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x36a)]},'cmd':_0xb8217[_0x31e5a1(0x279)]};case _[_0x31e5a1(0x4f2)][_0x31e5a1(0x172)]:return{..._0xb8217,'data':{..._0x4ad0fc,'data':_0x4ad0fc[_0x31e5a1(0x3b0)]},'cmd':_0xb8217[_0x31e5a1(0x279)]};default:return _0xb8217;}}default:return _0xb8217;}}function bt(_0x9a3330){const _0x53301b=_0x44ec13;switch(_0x9a3330[_0x53301b(0x279)]){case b[_0x53301b(0x261)]:case b['HELLO']:return JSON[_0x53301b(0x2b5)]({'cmd':_0x9a3330['cmd'],'routeKey':_0x9a3330[_0x53301b(0x2fd)]});case b[_0x53301b(0x45e)]:{let _0x37fb7;switch(_0x9a3330[_0x53301b(0x387)][_0x53301b(0x348)]){case _[_0x53301b(0x4f2)][_0x53301b(0x253)]:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)][_0x53301b(0x253)],'updateCursorEvent':_0x9a3330['data'][_0x53301b(0x387)]};break;}case _['CollaborationEvent'][_0x53301b(0x523)]:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)][_0x53301b(0x523)],'leaveEvent':_0x9a3330[_0x53301b(0x387)]['data']};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)]['USERS_ENTER'],'joinEvent':_0x9a3330[_0x53301b(0x387)][_0x53301b(0x387)]};break;}case _[_0x53301b(0x4f2)]['LIVESHARE_NEW_HOST']:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)][_0x53301b(0x313)],'liveShareNewHost':_0x9a3330[_0x53301b(0x387)][_0x53301b(0x387)]};break;}case _[_0x53301b(0x4f2)][_0x53301b(0x2d6)]:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)][_0x53301b(0x2d6)],'liveShareOperation':_0x9a3330[_0x53301b(0x387)][_0x53301b(0x387)]};break;}case _['CollaborationEvent'][_0x53301b(0x3f4)]:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x9a3330['data']['data']};break;}case _[_0x53301b(0x4f2)][_0x53301b(0x3f8)]:{_0x37fb7={'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x9a3330['data'][_0x53301b(0x387)]};break;}case _[_0x53301b(0x4f2)][_0x53301b(0x409)]:{_0x37fb7={'eventID':_[_0x53301b(0x4f2)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x37fb7={'eventID':_0x9a3330[_0x53301b(0x387)][_0x53301b(0x348)]};}return JSON['stringify']({'cmd':_0x9a3330[_0x53301b(0x279)],'routeKey':_0x9a3330[_0x53301b(0x2fd)],'collaMsg':_0x37fb7});}case b['JOIN']:return JSON[_0x53301b(0x2b5)]({'cmd':_0x9a3330[_0x53301b(0x279)],'routeKey':_0x9a3330['routeKey'],'joinReq':_0x9a3330['data']});case b[_0x53301b(0x411)]:return JSON[_0x53301b(0x2b5)]({'cmd':_0x9a3330[_0x53301b(0x279)],'routeKey':_0x9a3330[_0x53301b(0x2fd)],'leaveReq':_0x9a3330[_0x53301b(0x387)]});default:throw new Error(_0x53301b(0x352));}}var es=Object[_0x44ec13(0x2ec)],ts=Object[_0x44ec13(0x2e1)],ss=(_0x5e714e,_0x471b25,_0x3572fb,_0x127edd)=>{const _0x179e05=_0x44ec13;for(var _0x668eda=_0x127edd>0x1?void 0x0:_0x127edd?ts(_0x471b25,_0x3572fb):_0x471b25,_0x26c197=_0x5e714e[_0x179e05(0x3b4)]-0x1,_0x23f04f;_0x26c197>=0x0;_0x26c197--)(_0x23f04f=_0x5e714e[_0x26c197])&&(_0x668eda=(_0x127edd?_0x23f04f(_0x471b25,_0x3572fb,_0x668eda):_0x23f04f(_0x668eda))||_0x668eda);return _0x127edd&&_0x668eda&&es(_0x471b25,_0x3572fb,_0x668eda),_0x668eda;},re=(_0x4b9a3d,_0x17715c)=>(_0x51aa63,_0x4cc888)=>_0x17715c(_0x51aa63,_0x4cc888,_0x4b9a3d);const Fe=a['createIdentifier'](_0x44ec13(0x185));function is(_0x172d6b,_0x2eaf60,_0x2359f4){const _0x61fa5=_0x44ec13;return _0x172d6b+'/'+_0x2eaf60+'/unit/'+_0x2359f4+_0x61fa5(0x49c);}exports[_0x44ec13(0x4bf)]=class extends a[_0x44ec13(0x209)]{constructor(_0x456c7a,_0x146f03,_0x8a9a08,_0x551b94,_0x368edb){const _0x265a7d=_0x44ec13;super(),this[_0x265a7d(0x224)]=_0x456c7a,this[_0x265a7d(0x456)]=_0x146f03,this['_configService']=_0x8a9a08,this[_0x265a7d(0x49d)]=_0x551b94,this[_0x265a7d(0x508)]=_0x368edb;}[_0x44ec13(0x262)](_0xe39eda){const _0x1d6948=_0x44ec13,_0x4646fb=this[_0x1d6948(0x456)]['createSocket'](_0xe39eda);if(!_0x4646fb)throw new Error(_0x1d6948(0x386));const _0x57c6e2=new a['DisposableCollection'](),_0x4fa4a0=new v['Subject']();_0x57c6e2[_0x1d6948(0x37a)](_0x4646fb[_0x1d6948(0x2d4)]['subscribe'](_0x904548=>_0x4fa4a0[_0x1d6948(0x4a4)](_0x904548))),_0x57c6e2[_0x1d6948(0x37a)](a['toDisposable'](()=>_0x4fa4a0[_0x1d6948(0x159)]()));const _0x1cb3e0=new v[(_0x1d6948(0x3da))]();_0x57c6e2[_0x1d6948(0x37a)](_0x4646fb[_0x1d6948(0x49b)][_0x1d6948(0x1d4)](_0x5aa36f=>_0x1cb3e0[_0x1d6948(0x4a4)](_0x5aa36f))),_0x57c6e2[_0x1d6948(0x37a)](a['toDisposable'](()=>_0x1cb3e0[_0x1d6948(0x159)]()));const _0x44e265=new v[(_0x1d6948(0x3da))]();_0x57c6e2[_0x1d6948(0x37a)](_0x4646fb[_0x1d6948(0x303)][_0x1d6948(0x1d4)](_0x1249a5=>{const _0x3567be=_0x1d6948,_0x3c4440=Et(_0x1249a5);_0x44e265[_0x3567be(0x4a4)](_0x3c4440);})),_0x57c6e2[_0x1d6948(0x37a)](a[_0x1d6948(0x1ef)](()=>_0x44e265[_0x1d6948(0x159)]()));let _0x467da5;const _0x4bba9d=()=>{const _0x3b57e5=_0x1d6948;_0x1cb3e0[_0x3b57e5(0x4a4)](new Event(_0x3b57e5(0x3aa))),_0x4fa4a0['next'](new CloseEvent(_0x3b57e5(0x3aa))),_0x467da5[_0x3b57e5(0x17e)]();};return _0x467da5={'memberID':'','close$':_0x4fa4a0[_0x1d6948(0x439)](),'error$':_0x1cb3e0['asObservable'](),'open$':_0x4646fb[_0x1d6948(0x328)],'message$':_0x44e265[_0x1d6948(0x439)](),'send':_0x1a43a2=>{const _0x4b9179=_0x1d6948;if(_0x1a43a2['cmd']===b[_0x4b9179(0x45e)]){if(_0x1a43a2[_0x4b9179(0x387)]['eventID']===_['CollaborationEvent'][_0x4b9179(0x1f2)]){this[_0x4b9179(0x342)](_0x467da5,_0x1a43a2[_0x4b9179(0x387)])[_0x4b9179(0x284)](_0x1a93a5=>{const _0x51c720=_0x4b9179;this[_0x51c720(0x49d)]['error'](_0x1a93a5),_0x4bba9d();});return;}if(_0x1a43a2[_0x4b9179(0x387)][_0x4b9179(0x348)]===_['CollaborationEvent'][_0x4b9179(0x3dd)]){const _0x1891f0=_0x1a43a2[_0x4b9179(0x387)];this[_0x4b9179(0x1eb)](_0x1891f0)['then'](_0x518c84=>{const _0x4baf0d=_0x4b9179;_0x44e265[_0x4baf0d(0x4a4)]({'cmd':b[_0x4baf0d(0x1ba)],'code':Ve['OK'],'routeKey':_0x1891f0[_0x4baf0d(0x387)][_0x4baf0d(0x426)],'routeType':'','data':{'eventID':_[_0x4baf0d(0x4f2)][_0x4baf0d(0x522)],'data':{'changesets':_0x518c84}}});})[_0x4b9179(0x284)](_0x32ea55=>{const _0x257b30=_0x4b9179;this[_0x257b30(0x49d)]['error'](_0x32ea55),_0x4bba9d();});return;}}_0x4646fb['send'](bt(_0x1a43a2));},'close':()=>{const _0x51dd9c=_0x1d6948;_0x4646fb[_0x51dd9c(0x17e)](),_0x57c6e2[_0x51dd9c(0x184)]();}},_0x467da5;}async[_0x44ec13(0x342)](_0xfa1bc7,_0x59d54d){const _0x1cf988=_0x44ec13;var _0x322029;const {unitType:_0x29d3c7,unitID:_0x6028f0,changeset:_0x973e2e}=_0x59d54d[_0x1cf988(0x387)],_0x3285ed={'unitID':_0x6028f0,'memberID':_0xfa1bc7[_0x1cf988(0x539)],'type':_0x29d3c7,'changeset':_[_0x1cf988(0x1d5)](_0x973e2e)},_0x32c6c1=is((_0x322029=this['_configService']['getConfig'](gt))!=null?_0x322029:Zt,_0x29d3c7,_0x6028f0);try{await this['_http'][_0x1cf988(0x4ee)](_0x32c6c1,{'body':_0x3285ed});}catch(_0x18cf44){throw this['_logService'][_0x1cf988(0x182)]('[CollaborationSession]',_0x1cf988(0x405)),_0x18cf44;}}async[_0x44ec13(0x1eb)](_0x35e620){const _0x20184b=_0x44ec13,{unitID:_0x3eb111,from:_0x450bd3,to:_0x4eee5d,unitType:_0x514079}=_0x35e620[_0x20184b(0x387)];return(await this[_0x20184b(0x508)][_0x20184b(0x384)]({'metadata':void 0x0},{'unitID':_0x3eb111,'type':_0x514079,'from':_0x450bd3,'to':_0x4eee5d}))['changesets'];}},exports['CollaborationSocketService']=ss([re(0x0,a['Inject'](w[_0x44ec13(0x4e4)])),re(0x1,a[_0x44ec13(0x3ed)](w[_0x44ec13(0x158)])),re(0x2,a[_0x44ec13(0x259)]),re(0x3,a[_0x44ec13(0x2d1)]),re(0x4,_[_0x44ec13(0x43b)])],exports['CollaborationSocketService']);const ns=_0x44ec13(0x44b);function rs(_0x16be1b){const _0x177ebd=_0x44ec13;return JSON[_0x177ebd(0x2b5)](_0x16be1b)[_0x177ebd(0x3b4)];}class We{constructor(){const _0x20acb4=_0x44ec13;d(this,'_commentUpdate$',new v[(_0x20acb4(0x3da))]()),d(this,_0x20acb4(0x35d),this['_commentUpdate$']['asObservable']());}[_0x44ec13(0x3fa)](_0x43fc18){const _0x33d00a=_0x44ec13;this[_0x33d00a(0x389)][_0x33d00a(0x4a4)](_0x43fc18);}}var os=Object[_0x44ec13(0x2ec)],as=Object[_0x44ec13(0x2e1)],cs=(_0x66aee4,_0x27aeff,_0x3c3471,_0x329f87)=>{const _0x35a24b=_0x44ec13;for(var _0x5608a0=_0x329f87>0x1?void 0x0:_0x329f87?as(_0x27aeff,_0x3c3471):_0x27aeff,_0x49699c=_0x66aee4[_0x35a24b(0x3b4)]-0x1,_0x443b1b;_0x49699c>=0x0;_0x49699c--)(_0x443b1b=_0x66aee4[_0x49699c])&&(_0x5608a0=(_0x329f87?_0x443b1b(_0x27aeff,_0x3c3471,_0x5608a0):_0x443b1b(_0x5608a0))||_0x5608a0);return _0x329f87&&_0x5608a0&&os(_0x27aeff,_0x3c3471,_0x5608a0),_0x5608a0;},ze=(_0x3eef7d,_0x1793df)=>(_0x54b57b,_0x16687f)=>_0x1793df(_0x54b57b,_0x16687f,_0x3eef7d);let X=class extends a['Disposable']{constructor(_0x1e21e4,_0x479ea2){const _0x1ab767=_0x44ec13;super(),d(this,'_roomMembers',new Map()),(this[_0x1ab767(0x2b9)]=_0x1e21e4,this[_0x1ab767(0x234)]=_0x479ea2,this[_0x1ab767(0x399)](a[_0x1ab767(0x1ef)](v[_0x1ab767(0x3c1)](this[_0x1ab767(0x2b9)][_0x1ab767(0x1cf)](a[_0x1ab767(0x1c1)][_0x1ab767(0x420)])[_0x1ab767(0x2d5)](E[_0x1ab767(0x341)](_0x47ab4f=>_0x47ab4f['getUnitId']())),this[_0x1ab767(0x2b9)][_0x1ab767(0x1cf)](a[_0x1ab767(0x1c1)][_0x1ab767(0x344)])['pipe'](E[_0x1ab767(0x341)](_0x307698=>_0x307698[_0x1ab767(0x4be)]())),this[_0x1ab767(0x2b9)][_0x1ab767(0x1cf)](a[_0x1ab767(0x1c1)][_0x1ab767(0x2e4)])[_0x1ab767(0x2d5)](E[_0x1ab767(0x341)](_0x2801a6=>_0x2801a6[_0x1ab767(0x4be)]())))[_0x1ab767(0x1d4)](_0x195549=>this['_removeRoom'](_0x195549)))));}['setCurrentUser'](_0x50a76d){this['_userManagerService']['setCurrentUser'](_0x50a76d);}[_0x44ec13(0x4db)](){const _0x19ad83=_0x44ec13;return this[_0x19ad83(0x234)][_0x19ad83(0x4db)]();}[_0x44ec13(0x270)](_0x3c8adf,_0x2a1b3d){const _0x1c592f=_0x44ec13;let _0x5d348b=this[_0x1c592f(0x513)][_0x1c592f(0x48d)](_0x3c8adf);_0x5d348b||(_0x5d348b=new ls(),this[_0x1c592f(0x513)][_0x1c592f(0x47a)](_0x3c8adf,_0x5d348b)),_0x5d348b[_0x1c592f(0x270)](_0x2a1b3d);}['removeMember'](_0x404a25,_0x51e496){const _0x42903f=_0x44ec13,_0x22fe1f=this[_0x42903f(0x513)][_0x42903f(0x48d)](_0x404a25);_0x22fe1f&&_0x22fe1f[_0x42903f(0x393)](_0x51e496);}[_0x44ec13(0x29e)](_0x281ba5){const _0x1b1221=_0x44ec13;return this[_0x1b1221(0x513)]['get'](_0x281ba5);}['getMember'](_0x1d91b1,_0x4ce342){const _0x1c5e30=_0x44ec13,_0x80eb5e=this['_roomMembers'][_0x1c5e30(0x48d)](_0x1d91b1);if(_0x80eb5e)return _0x80eb5e[_0x1c5e30(0x1fe)](_0x4ce342);}[_0x44ec13(0x31b)](_0x5783bb){const _0xbedcac=_0x44ec13,_0x5987fe=this[_0xbedcac(0x513)][_0xbedcac(0x48d)](_0x5783bb);_0x5987fe&&(_0x5987fe[_0xbedcac(0x184)](),this['_roomMembers'][_0xbedcac(0x20e)](_0x5783bb));}['dispose'](){const _0x5bd400=_0x44ec13;this[_0x5bd400(0x513)][_0x5bd400(0x39a)](_0x54a14f=>_0x54a14f[_0x5bd400(0x184)]()),this[_0x5bd400(0x513)][_0x5bd400(0x3e1)]();}};X=cs([ze(0x0,a[_0x44ec13(0x4e2)]),ze(0x1,a['Inject'](a['UserManagerService']))],X);class ls extends a['Disposable']{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x44ec13(0x184)](){const _0x55f730=_0x44ec13;this[_0x55f730(0x239)][_0x55f730(0x3e1)]();}[_0x44ec13(0x270)](_0x5bd3e1){const _0x189d45=_0x44ec13;this[_0x189d45(0x239)]['set'](_0x5bd3e1[_0x189d45(0x539)],_0x5bd3e1);}['removeMember'](_0x38af73){const _0x13f576=_0x44ec13;this[_0x13f576(0x239)][_0x13f576(0x20e)](_0x38af73);}['getMember'](_0x580798){return this['_members']['get'](_0x580798);}}var hs=Object[_0x44ec13(0x2ec)],_s=Object[_0x44ec13(0x2e1)],us=(_0x27eea4,_0xec80aa,_0x2a456a,_0x589df9)=>{const _0x3c81da=_0x44ec13;for(var _0x47da38=_0x589df9>0x1?void 0x0:_0x589df9?_s(_0xec80aa,_0x2a456a):_0xec80aa,_0x4139a0=_0x27eea4[_0x3c81da(0x3b4)]-0x1,_0x57fc86;_0x4139a0>=0x0;_0x4139a0--)(_0x57fc86=_0x27eea4[_0x4139a0])&&(_0x47da38=(_0x589df9?_0x57fc86(_0xec80aa,_0x2a456a,_0x47da38):_0x57fc86(_0x47da38))||_0x47da38);return _0x589df9&&_0x47da38&&hs(_0xec80aa,_0x2a456a,_0x47da38),_0x47da38;},k=(_0x4d0735,_0x48ff06)=>(_0x3ae22b,_0x6c1ec2)=>_0x48ff06(_0x3ae22b,_0x6c1ec2,_0x4d0735),j=(_0x3af45b=>(_0x3af45b[_0x3af45b[_0x44ec13(0x1fd)]=0x0]=_0x44ec13(0x1fd),_0x3af45b[_0x3af45b[_0x44ec13(0x52d)]=0x1]=_0x44ec13(0x52d),_0x3af45b[_0x3af45b[_0x44ec13(0x3a7)]=0x2]=_0x44ec13(0x3a7),_0x3af45b[_0x3af45b[_0x44ec13(0x4f0)]=0x3]=_0x44ec13(0x4f0),_0x3af45b))(j||{});exports['CollaborationSession']=class extends a[_0x44ec13(0x4c6)]{constructor(_0x268bf3,_0x31e899,_0x5bf0ce,_0x28efc2,_0x2d1bfa,_0x2844a6,_0x2087c9,_0x1719e7,_0x52063d,_0x1522c9){const _0x5d88e3=_0x44ec13;super(),d(this,_0x5d88e3(0x2a1),new v[(_0x5d88e3(0x362))](0x0)),d(this,'sessionStatus$',this['_sessionStatus$'][_0x5d88e3(0x439)]()),d(this,_0x5d88e3(0x2db),new v[(_0x5d88e3(0x3da))]()),d(this,_0x5d88e3(0x15d),this[_0x5d88e3(0x2db)]['asObservable']()),d(this,'_socket'),d(this,_0x5d88e3(0x16e)),d(this,'_collaborationTimeoutTimer'),d(this,_0x5d88e3(0x1d8),!0x1),d(this,'_telemetryInfo',null),(this[_0x5d88e3(0x16c)]=_0x268bf3,this['_logService']=_0x5bf0ce,this[_0x5d88e3(0x170)]=_0x28efc2,this[_0x5d88e3(0x153)]=_0x2d1bfa,this[_0x5d88e3(0x148)]=_0x2844a6,this[_0x5d88e3(0x330)]=_0x2087c9,this[_0x5d88e3(0x2bd)]=_0x1719e7,this[_0x5d88e3(0x18b)]=_0x52063d,this['_telemetryService']=_0x1522c9,this[_0x5d88e3(0x1d8)]=!!this['_telemetryService'],_0x31e899[_0x5d88e3(0x2d5)](v[_0x5d88e3(0x441)](this[_0x5d88e3(0x350)]))['subscribe'](_0x44ea4e=>{const _0xd72a07=_0x5d88e3;var _0x42fa98;typeof _0x44ea4e>'u'||(this[_0xd72a07(0x3c7)]=_0x44ea4e,_0x44ea4e?(this['_joinRoom'](_0x44ea4e),this[_0xd72a07(0x16e)]=_0x44ea4e['message$'][_0xd72a07(0x1d4)](_0x5d0387=>{const _0x56144e=_0xd72a07;_0x5d0387[_0x56144e(0x2fd)]===this[_0x56144e(0x16c)]&&this['_onCombEvent'](_0x5d0387);})):(this[_0xd72a07(0x2b3)](),this[_0xd72a07(0x2a1)][_0xd72a07(0x4a4)](0x2),(_0x42fa98=this[_0xd72a07(0x16e)])==null||_0x42fa98[_0xd72a07(0x3f2)](),this[_0xd72a07(0x16e)]=null));}),this[_0x5d88e3(0x399)](this[_0x5d88e3(0x170)][_0x5d88e3(0x368)](()=>{const _0x18a794=_0x5d88e3;var _0x4ea441;(_0x4ea441=this[_0x18a794(0x3c7)])==null||_0x4ea441['send']({'cmd':b[_0x18a794(0x411)],'data':{'roomID':this[_0x18a794(0x16c)]}});})));}get[_0x44ec13(0x236)](){const _0x2b1d62=_0x44ec13;return this[_0x2b1d62(0x2a1)]['getValue']();}[_0x44ec13(0x4cd)](){const _0x57d1e1=_0x44ec13;var _0x473077,_0x57a796;return(_0x57a796=(_0x473077=this[_0x57d1e1(0x3c7)])==null?void 0x0:_0x473077['memberID'])!=null?_0x57a796:null;}[_0x44ec13(0x184)](){const _0x281f06=_0x44ec13;super['dispose'](),this[_0x281f06(0x350)][_0x281f06(0x4a4)](),this[_0x281f06(0x350)][_0x281f06(0x159)]();}['close'](){const _0xd4b412=_0x44ec13;var _0x519447,_0xc0f4c8;this[_0xd4b412(0x2b3)](),(_0x519447=this['_socket'])==null||_0x519447[_0xd4b412(0x1ec)]({'cmd':b[_0xd4b412(0x411)],'data':{'roomID':this[_0xd4b412(0x16c)]}}),(_0xc0f4c8=this[_0xd4b412(0x3c7)])==null||_0xc0f4c8[_0xd4b412(0x17e)](),this[_0xd4b412(0x2db)][_0xd4b412(0x159)](),this[_0xd4b412(0x2a1)][_0xd4b412(0x159)](),this[_0xd4b412(0x184)]();}[_0x44ec13(0x1b2)](_0x5efe29){const _0x2e9de0=_0x44ec13;_0x5efe29[_0x2e9de0(0x279)]===b[_0x2e9de0(0x13e)]?this[_0x2e9de0(0x51d)](_0x5efe29):_0x5efe29[_0x2e9de0(0x279)]===b[_0x2e9de0(0x1ba)]&&this[_0x2e9de0(0x3bc)](_0x5efe29);}[_0x44ec13(0x447)](_0x1b2e04){const _0x2ec629=_0x44ec13;this[_0x2ec629(0x2a1)][_0x2ec629(0x4a4)](0x1),_0x1b2e04[_0x2ec629(0x1ec)]({'cmd':b[_0x2ec629(0x13e)],'routeKey':this[_0x2ec629(0x16c)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2ec629(0x16c)]}]}});}[_0x44ec13(0x51d)](_0x460988){const _0x2c05e0=_0x44ec13;var _0x2c9f14;if(_0x460988['code']===Ve[_0x2c05e0(0x4b2)]){this[_0x2c05e0(0x153)][_0x2c05e0(0x37b)]({'type':K[_0x2c05e0(0x28f)][_0x2c05e0(0x482)],'content':this[_0x2c05e0(0x330)]['t'](_0x2c05e0(0x4e9))}),this[_0x2c05e0(0x2a1)]['next'](0x2);return;}this[_0x2c05e0(0x2a1)][_0x2c05e0(0x4a4)](0x3);const _0x1c3e81=(_0x2c9f14=_0x460988['data'][_0x2c05e0(0x2b8)][this[_0x2c05e0(0x16c)]])==null?void 0x0:_0x2c9f14[_0x2c05e0(0x22a)];_0x1c3e81&&_0x1c3e81[_0x2c05e0(0x39a)](_0x25dc18=>this[_0x2c05e0(0x2bd)][_0x2c05e0(0x270)](this[_0x2c05e0(0x16c)],_0x25dc18));}['_onRecvEvent'](_0xc1037){const _0x3951e5=_0x44ec13;try{const _0x48c646=_0xc1037[_0x3951e5(0x387)];switch(_0x48c646['eventID']){case _['CollaborationEvent'][_0x3951e5(0x489)]:this[_0x3951e5(0x260)](_0x48c646),this[_0x3951e5(0x2db)]['next'](_0x48c646);break;case _['CollaborationEvent'][_0x3951e5(0x523)]:this[_0x3951e5(0x47c)](_0x48c646),this[_0x3951e5(0x2db)]['next'](_0x48c646);break;case _[_0x3951e5(0x4f2)][_0x3951e5(0x1a5)]:this[_0x3951e5(0x233)](),this[_0x3951e5(0x30f)](),this[_0x3951e5(0x2db)]['next'](_0x48c646);break;case _[_0x3951e5(0x4f2)][_0x3951e5(0x26a)]:this[_0x3951e5(0x49d)]['error']('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x48c646)),this[_0x3951e5(0x2db)][_0x3951e5(0x4a4)](_0x48c646);break;case _['CollaborationEvent'][_0x3951e5(0x187)]:this[_0x3951e5(0x18b)][_0x3951e5(0x3fa)](_0x48c646[_0x3951e5(0x387)]),this[_0x3951e5(0x2db)][_0x3951e5(0x4a4)](_0x48c646);break;default:this[_0x3951e5(0x2db)][_0x3951e5(0x4a4)](_0x48c646);}}catch(_0x137f34){this[_0x3951e5(0x49d)][_0x3951e5(0x182)](_0x137f34,_0xc1037);}}[_0x44ec13(0x260)](_0x41732f){const _0x1ff698=_0x44ec13;this[_0x1ff698(0x2bd)][_0x1ff698(0x270)](this[_0x1ff698(0x16c)],_0x41732f['data']);}['_onUserLeave'](_0x4935db){const _0xb89a04=_0x44ec13;this[_0xb89a04(0x2bd)][_0xb89a04(0x393)](this['_unitID'],_0x4935db['data'][_0xb89a04(0x539)]);}async['send'](_0x65f457,_0x1b12df){const _0x4d8641=_0x44ec13;if(this['sessionStatus']!==0x3||!this[_0x4d8641(0x3c7)])throw new Error(_0x4d8641(0x4c4));try{_0x65f457[_0x4d8641(0x348)]===_['CollaborationEvent']['SUBMIT_CHANGESET']&&(this[_0x4d8641(0x4b7)](),this[_0x4d8641(0x258)](_0x65f457)),this[_0x4d8641(0x3c7)][_0x4d8641(0x1ec)]({'cmd':b[_0x4d8641(0x45e)],'routeKey':_0x1b12df,'routeType':'','data':_0x65f457});}catch(_0x3e4c6f){this[_0x4d8641(0x49d)][_0x4d8641(0x182)](_0x3e4c6f);}}[_0x44ec13(0x4b7)](){const _0x5c72f1=_0x44ec13;var _0x197d9b;this['_collaborationTimeoutTimer']=window[_0x5c72f1(0x17a)](()=>{const _0x346823=_0x5c72f1;this[_0x346823(0x23c)]=null,this['_messageService']['show']({'type':K[_0x346823(0x28f)][_0x346823(0x16d)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x197d9b=this[_0x5c72f1(0x148)][_0x5c72f1(0x227)](Be))!=null?_0x197d9b:St);}[_0x44ec13(0x30f)](){const _0x322312=_0x44ec13;this[_0x322312(0x23c)]&&(clearTimeout(this[_0x322312(0x23c)]),this[_0x322312(0x23c)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x56dff0){const _0x48101d=_0x44ec13;if(!this[_0x48101d(0x1d8)])return;const {data:_0x564dc7}=_0x56dff0,{unitID:_0x369318,changeset:_0x43e414}=_0x564dc7,{mutations:_0x4ccad2,type:_0x186265}=_0x43e414;this[_0x48101d(0x336)]={'unitId':_0x369318,'type':_0x186265,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':rs(_0x4ccad2)};}[_0x44ec13(0x233)](){const _0x564e88=_0x44ec13;if(this[_0x564e88(0x1d8)]){if(!this['_telemetryInfo']){this['_logService']['error'](_0x564e88(0x18d),_0x564e88(0x25e));return;}this['_telemetryInfo'][_0x564e88(0x476)]=performance['now'](),this[_0x564e88(0x336)][_0x564e88(0x415)]=this['_telemetryInfo'][_0x564e88(0x476)]-this[_0x564e88(0x336)][_0x564e88(0x388)],this[_0x564e88(0x4fc)][_0x564e88(0x4c3)](ns,this[_0x564e88(0x336)]),this[_0x564e88(0x336)]=null;}}[_0x44ec13(0x2b3)](){const _0xf3b468=_0x44ec13;this[_0xf3b468(0x336)]=null;}},exports['CollaborationSession']=us([k(0x2,a[_0x44ec13(0x2d1)]),k(0x3,M[_0x44ec13(0x1a9)]),k(0x4,M[_0x44ec13(0x3c2)]),k(0x5,a[_0x44ec13(0x259)]),k(0x6,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)])),k(0x7,a[_0x44ec13(0x3ed)](X)),k(0x8,a['Inject'](We)),k(0x9,a[_0x44ec13(0x1e9)](Vt[_0x44ec13(0x21a)]))],exports[_0x44ec13(0x397)]);var ds=Object[_0x44ec13(0x2ec)],Ss=Object['getOwnPropertyDescriptor'],vs=(_0x14fe70,_0x569d6f,_0x5a0e5f,_0x49d491)=>{const _0x4e1f96=_0x44ec13;for(var _0x9ff080=_0x49d491>0x1?void 0x0:_0x49d491?Ss(_0x569d6f,_0x5a0e5f):_0x569d6f,_0xc1d487=_0x14fe70[_0x4e1f96(0x3b4)]-0x1,_0x5b651e;_0xc1d487>=0x0;_0xc1d487--)(_0x5b651e=_0x14fe70[_0xc1d487])&&(_0x9ff080=(_0x49d491?_0x5b651e(_0x569d6f,_0x5a0e5f,_0x9ff080):_0x5b651e(_0x9ff080))||_0x9ff080);return _0x49d491&&_0x9ff080&&ds(_0x569d6f,_0x5a0e5f,_0x9ff080),_0x9ff080;},z=(_0x497537,_0x188f4d)=>(_0x58cdcc,_0x18b884)=>_0x188f4d(_0x58cdcc,_0x18b884,_0x497537);exports[_0x44ec13(0x4e1)]=class extends a[_0x44ec13(0x209)]{constructor(_0x6cd9d7,_0x345148,_0x1c4699,_0x3a2dd5,_0xed2f3a,_0x57eb0c){const _0x18164e=_0x44ec13;super(),d(this,_0x18164e(0x2e2),new v[(_0x18164e(0x362))](void 0x0)),d(this,_0x18164e(0x1bf),this[_0x18164e(0x2e2)][_0x18164e(0x439)]()),d(this,_0x18164e(0x3f6),null),d(this,_0x18164e(0x276),new Map()),d(this,_0x18164e(0x22e),new v[(_0x18164e(0x362))](j[_0x18164e(0x1fd)])),d(this,_0x18164e(0x44c),this['_status$'][_0x18164e(0x439)]()),d(this,_0x18164e(0x3de),!0x1),d(this,_0x18164e(0x28d)),d(this,_0x18164e(0x51e),0x0),d(this,'_sendHeartbeatTimer'),d(this,_0x18164e(0x15f)),(this['_injector']=_0x6cd9d7,this[_0x18164e(0x330)]=_0x345148,this[_0x18164e(0x153)]=_0x1c4699,this['_logService']=_0x3a2dd5,this['_configService']=_0xed2f3a,this['_socketService']=_0x57eb0c);}get[_0x44ec13(0x3c7)](){const _0x530ced=_0x44ec13;return this[_0x530ced(0x2e2)][_0x530ced(0x2ba)]();}[_0x44ec13(0x184)](){const _0x58eb38=_0x44ec13;super[_0x58eb38(0x184)](),this[_0x58eb38(0x276)][_0x58eb38(0x39a)](_0x3ca3f4=>_0x3ca3f4[_0x58eb38(0x184)]()),this[_0x58eb38(0x276)]['clear'](),this[_0x58eb38(0x22e)]['complete']();}async[_0x44ec13(0x245)](_0x127765){const _0x1b90d2=_0x44ec13;if(this['_sessions'][_0x1b90d2(0x163)](_0x127765))return this[_0x1b90d2(0x276)][_0x1b90d2(0x48d)](_0x127765);this[_0x1b90d2(0x4df)]();const _0x511bcc=this[_0x1b90d2(0x360)][_0x1b90d2(0x3be)](exports[_0x1b90d2(0x397)],_0x127765,this[_0x1b90d2(0x2e2)][_0x1b90d2(0x439)]());return this[_0x1b90d2(0x276)][_0x1b90d2(0x47a)](_0x127765,_0x511bcc),_0x511bcc;}[_0x44ec13(0x2c3)](_0xb0ddbf){const _0x3551b8=_0x44ec13;var _0x26186d;const _0x27a6a2=this[_0x3551b8(0x276)][_0x3551b8(0x48d)](_0xb0ddbf);_0x27a6a2&&(this[_0x3551b8(0x276)][_0x3551b8(0x20e)](_0xb0ddbf),_0x27a6a2['close']()),this[_0x3551b8(0x276)]['size']||(_0x26186d=this[_0x3551b8(0x3c7)])==null||_0x26186d['close']();}['reconnect'](){const _0x4e93eb=_0x44ec13;this['_retryCount']=0x0,this[_0x4e93eb(0x28d)]!=null&&(clearTimeout(this[_0x4e93eb(0x28d)]),this[_0x4e93eb(0x28d)]=null),this[_0x4e93eb(0x460)]();}['_createSocket'](){const _0x2018d4=_0x44ec13;var _0x1ceeb8;const _0x40ab49=(_0x1ceeb8=this['_configService'][_0x2018d4(0x227)](ut))!=null?_0x1ceeb8:Kt,_0x453f0d=this['_socketService'][_0x2018d4(0x262)](_0x40ab49);return this[_0x2018d4(0x3f6)]=_0x453f0d,_0x453f0d;}[_0x44ec13(0x4df)](){const _0x3fef=_0x44ec13;var _0x45dd1b,_0x206a0e;try{const _0x58744c=(_0x206a0e=(_0x45dd1b=this[_0x3fef(0x3c7)])!=null?_0x45dd1b:this['_candidateSocket'])!=null?_0x206a0e:this[_0x3fef(0x500)]();if(_0x58744c){const _0x513caf=_0x58744c['send'];_0x58744c[_0x3fef(0x1ec)]=_0x36a166=>(this[_0x3fef(0x254)](),_0x513caf[_0x3fef(0x540)](_0x58744c,[_0x36a166])),_0x58744c[_0x3fef(0x303)][_0x3fef(0x1d4)](_0x3d9c0f=>this[_0x3fef(0x4f7)](_0x58744c,_0x3d9c0f)),_0x58744c['error$']['pipe'](E[_0x3fef(0x3ff)](0x1))[_0x3fef(0x1d4)](_0x357072=>this[_0x3fef(0x49d)][_0x3fef(0x182)](_0x3fef(0x1cc),_0x357072)),_0x58744c[_0x3fef(0x328)][_0x3fef(0x2d5)](E['take'](0x1))[_0x3fef(0x1d4)](()=>{const _0x2eafad=_0x3fef;this[_0x2eafad(0x3ad)](_0x58744c);}),_0x58744c[_0x3fef(0x2d4)][_0x3fef(0x2d5)](E['take'](0x1))[_0x3fef(0x1d4)](_0x354572=>{const _0x3c30d2=_0x3fef;this[_0x3c30d2(0x49d)][_0x3c30d2(0x1bb)](_0x3c30d2(0x176),_0x3c30d2(0x2a2),_0x354572),this[_0x3c30d2(0x160)]();});}}catch(_0x4dfd94){this[_0x3fef(0x49d)][_0x3fef(0x182)](_0x4dfd94),this[_0x3fef(0x160)]();}}[_0x44ec13(0x3ad)](_0x1e95e6){const _0x442d16=_0x44ec13;this[_0x442d16(0x49d)][_0x442d16(0x1bb)]('[CollaborationSessionService]',_0x442d16(0x30d)),_0x1e95e6[_0x442d16(0x1ec)]({'cmd':b['HELLO']}),this[_0x442d16(0x254)](),this[_0x442d16(0x3e0)]();}[_0x44ec13(0x3e0)](){const _0x4731a1=()=>{const _0x4c0f15=_0x2929;this[_0x4c0f15(0x2c6)](),this['_listenToOnlineEvent'](),window[_0x4c0f15(0x28b)](_0x4c0f15(0x19e),_0x4731a1);};window['addEventListener']('offline',_0x4731a1);}['_onOffline'](){const _0x2b1c8f=_0x44ec13;this[_0x2b1c8f(0x3de)]=!0x1,this[_0x2b1c8f(0x22e)][_0x2b1c8f(0x4a4)](j[_0x2b1c8f(0x3a7)]),this[_0x2b1c8f(0x2e2)][_0x2b1c8f(0x4a4)](null),this[_0x2b1c8f(0x180)](),this['_clearHeartbeatTimer']();}[_0x44ec13(0x160)](){const _0x3aa660=_0x44ec13;var _0x14723b;this['_onOffline'](),this[_0x3aa660(0x51e)]<((_0x14723b=this['_configService']['getConfig'](mt))!=null?_0x14723b:Jt)?(this[_0x3aa660(0x153)][_0x3aa660(0x37b)]({'key':_0x3aa660(0x1df),'type':K[_0x3aa660(0x28f)][_0x3aa660(0x482)],'content':this[_0x3aa660(0x330)]['t']('session.will-retry')}),this[_0x3aa660(0x460)]()):(this[_0x3aa660(0x153)][_0x3aa660(0x37b)]({'key':'collaboration-session-retry','type':K[_0x3aa660(0x28f)]['Error'],'content':this['_localeService']['t'](_0x3aa660(0x280))}),this[_0x3aa660(0x4f9)]());}[_0x44ec13(0x4f9)](){const _0x2a4ea4=_0x44ec13,_0x17a078=()=>{const _0x3e9ea4=_0x2929;this['reconnect'](),window[_0x3e9ea4(0x28b)](_0x3e9ea4(0x324),_0x17a078);};window['addEventListener']('online',_0x17a078),this['_socket$']['pipe'](E[_0x2a4ea4(0x1ee)](_0xd0c59b=>!!_0xd0c59b),E['take'](0x1))[_0x2a4ea4(0x1d4)](()=>{const _0x2c2da6=_0x2a4ea4;window[_0x2c2da6(0x28b)]('online',_0x17a078);});}['_tryReconnect'](){const _0x2e1e9f=_0x44ec13;var _0x37e98c;const _0x27164f=this[_0x2e1e9f(0x51e)],_0x46671b=_0x27164f===0x0?0x0:((_0x37e98c=this[_0x2e1e9f(0x148)][_0x2e1e9f(0x227)](vt))!=null?_0x37e98c:qt)*0x2**_0x27164f;this[_0x2e1e9f(0x28d)]=window['setTimeout'](()=>{const _0x34f0b5=_0x2e1e9f;clearTimeout(this[_0x34f0b5(0x28d)]),this[_0x34f0b5(0x28d)]=null,this[_0x34f0b5(0x4df)]();},_0x46671b),this[_0x2e1e9f(0x51e)]+=0x1;}[_0x44ec13(0x4f7)](_0x5bc8a3,_0x3b9a0e){const _0x4824ab=_0x44ec13,{cmd:_0x4ab8a5}=_0x3b9a0e;_0x4ab8a5===b['HELLO']&&!this[_0x4824ab(0x3de)]&&(_0x5bc8a3[_0x4824ab(0x539)]=_0x3b9a0e[_0x4824ab(0x387)]['memberID'],this[_0x4824ab(0x2e2)]['next'](_0x5bc8a3),this[_0x4824ab(0x22e)]['next'](j['ONLINE']),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x4ab8a5===b[_0x4824ab(0x261)]&&this['_clearTimeoutTimer'](),this[_0x4824ab(0x254)]();}[_0x44ec13(0x254)](){const _0x1565bc=_0x44ec13;var _0x4fe885;this['_clearHeartbeatTimer'](),this[_0x1565bc(0x33a)]=window[_0x1565bc(0x17a)](()=>this[_0x1565bc(0x1d2)](),(_0x4fe885=this[_0x1565bc(0x148)][_0x1565bc(0x227)](dt))!=null?_0x4fe885:Xt);}[_0x44ec13(0x1d2)](){const _0x392c32=_0x44ec13;this[_0x392c32(0x3c7)]['send']({'cmd':b[_0x392c32(0x261)]}),this['_waitForHeartbeatResponse']();}[_0x44ec13(0x4b4)](){const _0xd7bc7b=_0x44ec13;var _0x58502f;this[_0xd7bc7b(0x15f)]=window['setTimeout'](()=>this[_0xd7bc7b(0x160)](),(_0x58502f=this['_configService'][_0xd7bc7b(0x227)](Be))!=null?_0x58502f:St);}[_0x44ec13(0x20c)](){const _0x5c3d1a=_0x44ec13;this[_0x5c3d1a(0x33a)]!=null&&(clearTimeout(this[_0x5c3d1a(0x33a)]),this[_0x5c3d1a(0x33a)]=null);}[_0x44ec13(0x180)](){const _0x2b2371=_0x44ec13;this[_0x2b2371(0x15f)]!=null&&(clearTimeout(this[_0x2b2371(0x15f)]),this['_timeoutTimer']=null);}},exports['CollaborationSessionService']=vs([z(0x0,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),z(0x1,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)])),z(0x2,M[_0x44ec13(0x3c2)]),z(0x3,a[_0x44ec13(0x2d1)]),z(0x4,a[_0x44ec13(0x259)]),z(0x5,Fe)],exports[_0x44ec13(0x4e1)]);var ms=Object[_0x44ec13(0x2ec)],fs=Object[_0x44ec13(0x2e1)],gs=(_0x5a81cb,_0x170912,_0x2e11ae,_0x4eec75)=>{const _0x199fd9=_0x44ec13;for(var _0x29e6ef=_0x4eec75>0x1?void 0x0:_0x4eec75?fs(_0x170912,_0x2e11ae):_0x170912,_0x212720=_0x5a81cb[_0x199fd9(0x3b4)]-0x1,_0x3c492f;_0x212720>=0x0;_0x212720--)(_0x3c492f=_0x5a81cb[_0x212720])&&(_0x29e6ef=(_0x4eec75?_0x3c492f(_0x170912,_0x2e11ae,_0x29e6ef):_0x3c492f(_0x29e6ef))||_0x29e6ef);return _0x4eec75&&_0x29e6ef&&ms(_0x170912,_0x2e11ae,_0x29e6ef),_0x29e6ef;},Oe=(_0x47e078,_0x2cb2a5)=>(_0x2aa000,_0x2ffab1)=>_0x2cb2a5(_0x2aa000,_0x2ffab1,_0x47e078);let ge=class{constructor(_0xaf885c,_0x62b5ad,_0x40f1f5){const _0x27d118=_0x44ec13;this[_0x27d118(0x360)]=_0xaf885c,this[_0x27d118(0x4cc)]=_0x62b5ad,this[_0x27d118(0x2d3)]=_0x40f1f5;}[_0x44ec13(0x22f)](_0x5725d9){const _0x39ce13=_0x44ec13;this['_transformUndoRedoStack'](_0x5725d9),this[_0x39ce13(0x34b)](_0x5725d9);}[_0x44ec13(0x345)](_0x524a5f){const _0x14bd20=_0x44ec13,{unitID:_0x1ec63a}=_0x524a5f,_0xb554e2=this[_0x14bd20(0x2d3)]['getRenderById'](_0x1ec63a)[_0x14bd20(0x2cc)](U[_0x14bd20(0x3cc)]),{redoCache:_0x5575c0}=_0xb554e2[_0x14bd20(0x25d)]();if(_0x5575c0['length']===0x0)return _0x524a5f;let _0x3a9f58=a[_0x14bd20(0x3ce)]['deepClone'](_0x524a5f[_0x14bd20(0x1cb)][0x0]);for(let _0x3d7992=0x0;_0x3d7992<_0x5575c0[_0x14bd20(0x3b4)];_0x3d7992++){const _0x29818b={'id':_0x14bd20(0x215),'params':{..._0x5575c0[_0x3d7992]}},_0x2a25c7=this[_0x14bd20(0x4cc)][_0x14bd20(0x19a)](_0x3a9f58,_0x29818b,!0x1);if(_[_0x14bd20(0x41a)](_0x2a25c7))throw _0x2a25c7[_0x14bd20(0x182)];_0x3a9f58=_0x2a25c7[_0x14bd20(0x4b8)];}return{...a[_0x14bd20(0x3ce)]['deepClone'](_0x524a5f),'mutations':[_0x3a9f58]};}[_0x44ec13(0x398)](_0xa80888){const _0x7b7a6c=_0x44ec13,{unitID:_0x109737}=_0xa80888,_0x2cd77e=this[_0x7b7a6c(0x2d3)][_0x7b7a6c(0x3b9)](_0x109737)[_0x7b7a6c(0x2cc)](U[_0x7b7a6c(0x3cc)]),{undoCache:_0x304201,redoCache:_0x13cf1d}=_0x2cd77e[_0x7b7a6c(0x25d)]();if(_0x304201[_0x7b7a6c(0x3b4)]===0x0||_0x13cf1d[_0x7b7a6c(0x3b4)]===0x0)return;const _0x51db42=[],_0x4c0331=[];let _0x4d9d2a=a[_0x7b7a6c(0x3ce)][_0x7b7a6c(0x147)](_0xa80888[_0x7b7a6c(0x1cb)][0x0]),_0x401772=a[_0x7b7a6c(0x3ce)][_0x7b7a6c(0x147)](_0xa80888[_0x7b7a6c(0x1cb)][0x0]);for(let _0x5614a1=_0x304201['length']-0x1;_0x5614a1>=0x0;_0x5614a1--){const _0x5914b1={'id':_0x7b7a6c(0x215),'params':{..._0x304201[_0x5614a1]}},_0x876a6b={'id':'doc.mutation.rich-text-editing','params':{..._0x13cf1d[_0x5614a1]}},_0x5b3e9a=this[_0x7b7a6c(0x4cc)]['transformMutation'](_0x4d9d2a,_0x5914b1,!0x1),_0x4df12c=this[_0x7b7a6c(0x4cc)][_0x7b7a6c(0x19a)](_0x401772,_0x876a6b,!0x1);if(_[_0x7b7a6c(0x41a)](_0x5b3e9a))throw _0x5b3e9a[_0x7b7a6c(0x182)];if(_[_0x7b7a6c(0x41a)](_0x4df12c))throw _0x4df12c[_0x7b7a6c(0x182)];_0x51db42[_0x7b7a6c(0x4e3)](_0x5b3e9a['m2Prime'][_0x7b7a6c(0x2eb)]),_0x4c0331[_0x7b7a6c(0x4e3)](_0x4df12c[_0x7b7a6c(0x2f1)][_0x7b7a6c(0x2eb)]),_0x4d9d2a=_0x5b3e9a['m1Prime'],_0x401772=_0x4df12c['m1Prime'];}_0x2cd77e[_0x7b7a6c(0x269)]({'undoCache':_0x51db42,'redoCache':_0x4c0331});}[_0x44ec13(0x34b)](_0x3f9030){const _0x339517=_0x44ec13,{unitID:_0x206ac5}=_0x3f9030,_0x465c59=this[_0x339517(0x2d3)]['getRenderById'](_0x206ac5)['with'](U['DocIMEInputManagerService']),_0x14172d=_0x465c59[_0x339517(0x486)]();if(_0x14172d==null)return;const _0x3cb637=[{'id':_0x339517(0x215),'params':{'unitId':_0x3f9030['unitID'],'actions':null,'textRanges':[_0x14172d]}}],_0xaaae6=this['_transformService']['transformMutationsWithChangeset'](_0x3f9030,_0x3cb637);if(!_['isTransformMutationsWithChangesetSuccess'](_0xaaae6))throw _0xaaae6['error'];const _0x140cb0=_0xaaae6[_0x339517(0x2f1)][0x0][_0x339517(0x2eb)]['textRanges'];Array[_0x339517(0x369)](_0x140cb0)&&_0x140cb0[_0x339517(0x3b4)]&&_0x465c59[_0x339517(0x3dc)](_0x140cb0[0x0]);}};ge=gs([Oe(0x0,a[_0x44ec13(0x3ed)](a['Injector'])),Oe(0x1,_[_0x44ec13(0x275)]),Oe(0x2,R[_0x44ec13(0x226)])],ge);var Is=Object[_0x44ec13(0x2ec)],ps=Object[_0x44ec13(0x2e1)],Cs=(_0x422ad6,_0x2cb736,_0x4c2497,_0x3a5fea)=>{const _0x316104=_0x44ec13;for(var _0x5e0f89=_0x3a5fea>0x1?void 0x0:_0x3a5fea?ps(_0x2cb736,_0x4c2497):_0x2cb736,_0x3386f5=_0x422ad6[_0x316104(0x3b4)]-0x1,_0x28743d;_0x3386f5>=0x0;_0x3386f5--)(_0x28743d=_0x422ad6[_0x3386f5])&&(_0x5e0f89=(_0x3a5fea?_0x28743d(_0x2cb736,_0x4c2497,_0x5e0f89):_0x28743d(_0x5e0f89))||_0x5e0f89);return _0x3a5fea&&_0x5e0f89&&Is(_0x2cb736,_0x4c2497,_0x5e0f89),_0x5e0f89;},oe=(_0x2d565d,_0x778bc1)=>(_0x4e2cfb,_0x68fbf6)=>_0x778bc1(_0x4e2cfb,_0x68fbf6,_0x2d565d);exports[_0x44ec13(0x494)]=class extends a[_0x44ec13(0x209)]{constructor(_0xebc7a7,_0x228bb2,_0x1357ce,_0x2d4a0c,_0x10d4e1){const _0x112d45=_0x44ec13;super(),d(this,'_cachedData',new Map()),d(this,_0x112d45(0x1d3),new Map()),d(this,'_disabled',!0x1),(this[_0x112d45(0x148)]=_0xebc7a7,this[_0x112d45(0x35e)]=_0x228bb2,this[_0x112d45(0x170)]=_0x1357ce,this['_localeService']=_0x2d4a0c,this[_0x112d45(0x2d9)]=_0x10d4e1,this[_0x112d45(0x43f)]());}[_0x44ec13(0x197)](){const _0x2ecf9d=_0x44ec13;this[_0x2ecf9d(0x1fb)]=!0x0;}[_0x44ec13(0x297)](){const _0x562e03=_0x44ec13;this[_0x562e03(0x1fb)]=!0x1;}['dispose'](){const _0x3fbdb5=_0x44ec13;this[_0x3fbdb5(0x249)]()[_0x3fbdb5(0x517)](()=>super[_0x3fbdb5(0x184)]());}async[_0x44ec13(0x50f)](_0x1629c8){const _0x4406d0=_0x44ec13;return this[_0x4406d0(0x1fb)]?null:this[_0x4406d0(0x35e)][_0x4406d0(0x4fb)](Ze(_0x1629c8));}async['saveOfflineData'](_0x4e6e0f,_0x5b77d1){return!!this['_localStorageService']['setItem'](_0x4e6e0f,_0x5b77d1);}['updateOfflineData'](_0x521868,_0x589609,_0x2939c1,_0x506831){const _0x27c421=_0x44ec13,_0x536baf=this[_0x27c421(0x2d9)][_0x27c421(0x188)](_0x521868);this[_0x27c421(0x4cb)][_0x27c421(0x47a)](_0x521868,{'unitID':_0x521868,'type':_0x589609,'awaitingChangeset':_0x2939c1,'mutations':_0x506831,'rev':_0x536baf}),this[_0x27c421(0x1d3)][_0x27c421(0x163)](_0x521868)||this[_0x27c421(0x4ec)](_0x521868);}['_scheduleSaving'](_0x19f07b){const _0x1994fc=_0x44ec13,_0x9a4662=this[_0x1994fc(0x308)]();_0x9a4662===0x0?this['_saveCache'](_0x19f07b):this[_0x1994fc(0x1d3)][_0x1994fc(0x47a)](_0x19f07b,setTimeout(()=>this['_saveCache'](_0x19f07b),_0x9a4662));}[_0x44ec13(0x308)](){const _0x256722=_0x44ec13;var _0x11bdd1;return(_0x11bdd1=this['_configService'][_0x256722(0x227)](ft))!=null?_0x11bdd1:zt;}[_0x44ec13(0x45c)](_0xfa4346){const _0x5a0b93=_0x44ec13,_0x1e2744=this[_0x5a0b93(0x1d3)][_0x5a0b93(0x48d)](_0xfa4346);return _0x1e2744!==void 0x0&&window[_0x5a0b93(0x507)](_0x1e2744),this['_localStorageService'][_0x5a0b93(0x327)](Ze(_0xfa4346),this[_0x5a0b93(0x4cb)][_0x5a0b93(0x48d)](_0xfa4346))[_0x5a0b93(0x517)](()=>this[_0x5a0b93(0x1d3)]['delete'](_0xfa4346));}async[_0x44ec13(0x249)](){const _0x425a81=_0x44ec13,_0x175f16=[];this['_saveTaskMap'][_0x425a81(0x39a)]((_0x3fc105,_0x38afae)=>{const _0x5cb744=_0x425a81;window['clearTimeout'](_0x3fc105),_0x175f16[_0x5cb744(0x3a3)](this['_saveCache'](_0x38afae)[_0x5cb744(0x517)](()=>{const _0x311a7c=_0x5cb744;this[_0x311a7c(0x1d3)]['delete'](_0x38afae);}));}),await Promise['all'](_0x175f16);}[_0x44ec13(0x43f)](){const _0x1b79cd=_0x44ec13;this[_0x1b79cd(0x399)](this[_0x1b79cd(0x170)][_0x1b79cd(0x425)](()=>{const _0x3b4224=_0x1b79cd;if(this[_0x3b4224(0x1d3)]['size'])return this[_0x3b4224(0x330)]['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x44ec13(0x494)]=Cs([oe(0x0,a[_0x44ec13(0x259)]),oe(0x1,a[_0x44ec13(0x3b1)]),oe(0x2,M[_0x44ec13(0x1a9)]),oe(0x3,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)])),oe(0x4,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x1a7)]))],exports[_0x44ec13(0x494)]);function Ze(_0x10afba){const _0x1b3ec2=_0x44ec13;return _0x1b3ec2(0x3e5)+_0x10afba;}var Es=Object[_0x44ec13(0x2ec)],bs=Object[_0x44ec13(0x2e1)],Ts=(_0x5e1df5,_0x5d1005,_0x1ccd42,_0x169cd9)=>{const _0x362918=_0x44ec13;for(var _0x158e4c=_0x169cd9>0x1?void 0x0:_0x169cd9?bs(_0x5d1005,_0x1ccd42):_0x5d1005,_0xcf7bf0=_0x5e1df5[_0x362918(0x3b4)]-0x1,_0x1aeb2b;_0xcf7bf0>=0x0;_0xcf7bf0--)(_0x1aeb2b=_0x5e1df5[_0xcf7bf0])&&(_0x158e4c=(_0x169cd9?_0x1aeb2b(_0x5d1005,_0x1ccd42,_0x158e4c):_0x1aeb2b(_0x158e4c))||_0x158e4c);return _0x169cd9&&_0x158e4c&&Es(_0x5d1005,_0x1ccd42,_0x158e4c),_0x158e4c;},De=(_0x304b7d,_0x42303f)=>(_0x11e453,_0x5b7049)=>_0x42303f(_0x11e453,_0x5b7049,_0x304b7d);function Rs(_0x41e5b1){const _0x5eee35=_0x44ec13,{unitID:_0x38bb6e,mutations:_0x4e5e21}=_0x41e5b1;return{'unitId':_0x38bb6e,'subUnitId':_0x4e5e21[0x0][_0x5eee35(0x2eb)][_0x5eee35(0x27e)]};}let Ie=class{constructor(_0x1fb782,_0x3dcc1d,_0x4033d7){const _0x57b592=_0x44ec13;this[_0x57b592(0x360)]=_0x1fb782,this['_transformService']=_0x3dcc1d,this[_0x57b592(0x28a)]=_0x4033d7;}[_0x44ec13(0x28c)](_0x4fbab8){const _0xfea75a=_0x44ec13;var _0x5b9be0,_0x150a52,_0x5e4d9d,_0x417f83,_0x100da7;const _0x406d84=this['_injector']['get'](C[_0xfea75a(0x41b)]),{unitId:_0x166075,subUnitId:_0xba4a57}=Rs(_0x4fbab8),_0x11d3fb=_0x406d84[_0xfea75a(0x325)](_0x166075)['getCurrentSelections'](),_0x511301=(_0x150a52=(_0x5b9be0=this[_0xfea75a(0x28a)]['getUnit'](_0x166075))==null?void 0x0:_0x5b9be0[_0xfea75a(0x219)]())==null?void 0x0:_0x150a52[_0xfea75a(0x1b6)]();if(_0x11d3fb[_0xfea75a(0x3b4)]===0x0||!_0x166075||!_0xba4a57)return;const _0x3b9c50=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x166075,'subUnitId':_0x511301,'selections':a['Tools'][_0xfea75a(0x147)](_0x11d3fb)}}],_0x5d9f59=this['_transformService']['transformMutationsWithChangeset'](_0x4fbab8,_0x3b9c50);if(!_['isTransformMutationsWithChangesetSuccess'](_0x5d9f59))throw _0x5d9f59[_0xfea75a(0x182)];const _0x1686dc=(_0x100da7=(_0x417f83=(_0x5e4d9d=_0x5d9f59['m2Prime'][0x0])==null?void 0x0:_0x5e4d9d[_0xfea75a(0x2eb)])==null?void 0x0:_0x417f83['selections'])!=null?_0x100da7:_0x11d3fb;Array[_0xfea75a(0x369)](_0x1686dc)&&_0x1686dc['length']&&this['_injector'][_0xfea75a(0x48d)](a[_0xfea75a(0x359)])[_0xfea75a(0x3e6)](C[_0xfea75a(0x3d6)]['id'],{'unitId':_0x166075,'subUnitId':_0xba4a57,'selections':_0x1686dc});}};Ie=Ts([De(0x0,a['Inject'](a[_0x44ec13(0x4cf)])),De(0x1,_['ITransformService']),De(0x2,a['IUniverInstanceService'])],Ie);const Ee=a['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var Tt=(_0x3d7e1f=>(_0x3d7e1f[_0x3d7e1f[_0x44ec13(0x1b1)]=0x0]=_0x44ec13(0x1b1),_0x3d7e1f[_0x3d7e1f[_0x44ec13(0x42a)]=0x1]='OTHER_CLIENTS_EDITING',_0x3d7e1f))(Tt||{});const Qe=0x7530,et='ACTIVE_UNIT_EVENT_CHANNEL';class Os extends a[_0x44ec13(0x209)]{constructor(){const _0x403d02=_0x44ec13;super(),d(this,_0x403d02(0x285),a[_0x403d02(0x3ce)][_0x403d02(0x22b)]()),d(this,_0x403d02(0x347),new Set()),d(this,_0x403d02(0x3e9),new Map()),d(this,_0x403d02(0x2fc),null),d(this,'_clearOtherTimers',new Map()),d(this,_0x403d02(0x272),new Map()),this[_0x403d02(0x2d0)]();}[_0x44ec13(0x184)](){const _0x473b96=_0x44ec13;super[_0x473b96(0x184)](),this[_0x473b96(0x395)][_0x473b96(0x39a)]((_0x396dd6,_0x468617)=>this[_0x473b96(0x16a)](_0x468617)),this[_0x473b96(0x2fc)]&&window['clearInterval'](this[_0x473b96(0x2fc)]);}['getUnitStatus$'](_0x1c741e){const _0x5b68c9=_0x44ec13;return this[_0x5b68c9(0x2cf)](_0x1c741e)[_0x5b68c9(0x2d5)](v['distinctUntilChanged']());}['editingUnit'](_0x1e1726){const _0x528d12=_0x44ec13;this[_0x528d12(0x347)]['size']===0x0&&this[_0x528d12(0x1ff)](),this['_selfUnitIDs'][_0x528d12(0x37a)](_0x1e1726),this[_0x528d12(0x488)]({'type':0x0,'memberID':this[_0x528d12(0x285)],'unitIDs':[_0x1e1726],'isForwarded':!0x1});}[_0x44ec13(0x483)](_0x3b67c9){const _0x3e4853=_0x44ec13;this[_0x3e4853(0x347)]['delete'](_0x3b67c9),this['_selfUnitIDs'][_0x3e4853(0x366)]===0x0&&this[_0x3e4853(0x2fc)]&&window[_0x3e4853(0x1f1)](this[_0x3e4853(0x2fc)]);}[_0x44ec13(0x2d0)](){const _0xc16b07=_0x44ec13;this['disposeWithMe'](a[_0xc16b07(0x1ef)](v[_0xc16b07(0x32d)](window,'storage')['subscribe'](_0xdbf0be=>{const _0x4b7380=_0xc16b07;if(_0xdbf0be[_0x4b7380(0x43e)]!==et||!_0xdbf0be[_0x4b7380(0x1f5)])return;const _0x56dde6=JSON['parse'](_0xdbf0be['newValue']);this['_handleEvent'](_0x56dde6);}))),window[_0xc16b07(0x3e3)](_0xc16b07(0x2df),()=>this[_0xc16b07(0x488)]({'type':0x1,'memberID':this[_0xc16b07(0x285)],'unitIDs':Array[_0xc16b07(0x25c)](this[_0xc16b07(0x347)])}));}[_0x44ec13(0x4e7)](_0x521adb){const _0x2eb3f5=_0x44ec13;switch(_0x521adb[_0x2eb3f5(0x2ed)]){case 0x0:this['_handleJoinEvent'](_0x521adb);break;case 0x1:this[_0x2eb3f5(0x166)](_0x521adb);break;case 0x2:this[_0x2eb3f5(0x533)](_0x521adb);break;}}[_0x44ec13(0x200)](_0x17cd6c){const _0x29f14f=_0x44ec13,{unitIDs:_0x2310b9,memberID:_0x4a4654,isForwarded:_0x25d584}=_0x17cd6c;_0x2310b9['forEach'](_0x32e7d9=>{const _0x4d2672=_0x2929;if(!_0x25d584&&this[_0x4d2672(0x3e9)][_0x4d2672(0x163)](_0x32e7d9)&&this[_0x4d2672(0x2cf)](_0x32e7d9)[_0x4d2672(0x4a4)](0x1),!this[_0x4d2672(0x3e9)][_0x4d2672(0x163)](_0x32e7d9)||!this['_unitOnClients'][_0x4d2672(0x48d)](_0x32e7d9)[_0x4d2672(0x163)](_0x4a4654)){const _0x215c3e=this['_unitOnClients'][_0x4d2672(0x48d)](_0x32e7d9)||new Set();_0x215c3e[_0x4d2672(0x37a)](_0x4a4654),this[_0x4d2672(0x3e9)]['set'](_0x32e7d9,_0x215c3e),this[_0x4d2672(0x3f3)](_0x4a4654);}}),_0x25d584||this[_0x29f14f(0x488)]({'type':0x0,'memberID':this[_0x29f14f(0x285)],'unitIDs':[...this[_0x29f14f(0x347)]],'isForwarded':!0x0});}[_0x44ec13(0x3f3)](_0x354115){const _0x3abe58=_0x44ec13;this[_0x3abe58(0x16a)](_0x354115);const _0x51e38d=window[_0x3abe58(0x17a)](()=>{const _0x10609f=_0x3abe58;this[_0x10609f(0x3e9)][_0x10609f(0x39a)](_0x44dbda=>{const _0xa612c6=_0x10609f;_0x44dbda[_0xa612c6(0x20e)](_0x354115);});},Qe*0x2);this['_clearOtherTimers'][_0x3abe58(0x47a)](_0x354115,_0x51e38d);}['_removeClearOtherTimer'](_0x2a0f74){const _0x33d715=_0x44ec13;if(this[_0x33d715(0x395)][_0x33d715(0x163)](_0x2a0f74)){const _0x52fa48=this[_0x33d715(0x395)]['get'](_0x2a0f74);_0x52fa48&&window[_0x33d715(0x507)](_0x52fa48),this[_0x33d715(0x395)][_0x33d715(0x47a)](_0x2a0f74,null);}}[_0x44ec13(0x166)](_0x425929){const {memberID:_0x29f239,unitIDs:_0x394771}=_0x425929;_0x394771['forEach'](_0x4df885=>{const _0x1edbb6=_0x2929;var _0x4f0749;const _0x3ff406=this['_unitOnClients'][_0x1edbb6(0x48d)](_0x4df885);_0x3ff406&&(_0x3ff406['delete'](_0x29f239),(_0x4f0749=this['_ensureSubject'](_0x4df885))==null||_0x4f0749[_0x1edbb6(0x4a4)](_0x3ff406[_0x1edbb6(0x366)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x29f239);}['_handleHeartbeatEvent'](_0x5080e8){const _0x1d512b=_0x44ec13;this[_0x1d512b(0x3f3)](_0x5080e8[_0x1d512b(0x539)]);}['_send'](_0x3d2a8d){const _0x3d1e9=_0x44ec13;localStorage[_0x3d1e9(0x327)](et,JSON[_0x3d1e9(0x2b5)](_0x3d2a8d));}[_0x44ec13(0x1ff)](){const _0x3a5299=_0x44ec13;this['_heartbeatTimer']=window[_0x3a5299(0x49e)](()=>{const _0x1f1841=_0x3a5299;this[_0x1f1841(0x488)]({'type':0x2,'memberID':this[_0x1f1841(0x285)]});},Qe);}[_0x44ec13(0x2cf)](_0x4c5e2b){const _0x1cf0a4=_0x44ec13;return this[_0x1cf0a4(0x272)][_0x1cf0a4(0x163)](_0x4c5e2b)||this[_0x1cf0a4(0x272)]['set'](_0x4c5e2b,new v[(_0x1cf0a4(0x362))](0x0)),this[_0x1cf0a4(0x272)][_0x1cf0a4(0x48d)](_0x4c5e2b);}}function Rt(_0x5adcc8){const _0x421a71=_0x44ec13;let _0x4bec13='';for(const _0x3ee24a of _0x5adcc8){const {startOffset:_0x3dd1d6,endOffset:_0x47a22c,isActive:_0x46bf70}=_0x3ee24a;_0x4bec13[_0x421a71(0x3b4)]&&(_0x4bec13+=','),_0x4bec13+=_0x3dd1d6+':'+_0x47a22c+':'+(_0x46bf70?'1':'0');}return _0x4bec13;}function Ds(_0x34216e){const _0x2c2eae=_0x44ec13,_0x585023=_0x34216e['split'](','),_0x5828e7=[];for(const _0x1010bf of _0x585023){const [_0x4426df,_0x17d40e,_0x47aba4]=_0x1010bf[_0x2c2eae(0x504)](':');_0x5828e7[_0x2c2eae(0x3a3)]({'startOffset':Number(_0x4426df),'endOffset':Number(_0x17d40e),'collapsed':_0x4426df===_0x17d40e,'isActive':_0x47aba4==='1'});}return _0x5828e7['some'](_0x265738=>_0x265738['isActive'])||(_0x5828e7[0x0][_0x2c2eae(0x13d)]=!0x0),_0x5828e7;}class Ge extends a[_0x44ec13(0x4c6)]{constructor(){const _0x2b644e=_0x44ec13;super(...arguments),d(this,_0x2b644e(0x24a),new v[(_0x2b644e(0x362))](null)),d(this,'collabCursorState$',this[_0x2b644e(0x24a)][_0x2b644e(0x439)]());}[_0x44ec13(0x42d)](_0x28b9d8){const _0x5af23a=_0x44ec13,{unitID:_0xc76e22,memberID:_0x13adb1,textRanges:_0x12763d}=_0x28b9d8,_0x15c95e=Rt(_0x12763d),_0x3222bc={'unitID':_0xc76e22,'memberID':_0x13adb1,'selection':_0x15c95e};this[_0x5af23a(0x24a)]['next'](_0x3222bc);}}var ys=Object[_0x44ec13(0x2ec)],Ps=Object[_0x44ec13(0x2e1)],ws=(_0x241198,_0x52f0f5,_0x4ca862,_0x2dffe4)=>{const _0x25cd1e=_0x44ec13;for(var _0x42abc3=_0x2dffe4>0x1?void 0x0:_0x2dffe4?Ps(_0x52f0f5,_0x4ca862):_0x52f0f5,_0x2bc771=_0x241198[_0x25cd1e(0x3b4)]-0x1,_0x3a982c;_0x2bc771>=0x0;_0x2bc771--)(_0x3a982c=_0x241198[_0x2bc771])&&(_0x42abc3=(_0x2dffe4?_0x3a982c(_0x52f0f5,_0x4ca862,_0x42abc3):_0x3a982c(_0x42abc3))||_0x42abc3);return _0x2dffe4&&_0x42abc3&&ys(_0x52f0f5,_0x4ca862,_0x42abc3),_0x42abc3;},tt=(_0x1787ac,_0x206342)=>(_0x5a2757,_0x540bf0)=>_0x206342(_0x5a2757,_0x540bf0,_0x1787ac);let pe=class{constructor(_0x3fdec5,_0x4854e7){const _0x1f841d=_0x44ec13;this[_0x1f841d(0x360)]=_0x3fdec5,this[_0x1f841d(0x4cc)]=_0x4854e7;}[_0x44ec13(0x28c)](_0x148fb5){const _0xd35b2c=_0x44ec13;var _0x5eb518;const _0x31039a=this[_0xd35b2c(0x360)][_0xd35b2c(0x48d)](B['DocSelectionManagerService']),_0xcfdaab=(_0x5eb518=_0x31039a[_0xd35b2c(0x322)]())!=null?_0x5eb518:[];if(_0xcfdaab[_0xd35b2c(0x3b4)]===0x0)return;const _0x43299a=[{'id':_0xd35b2c(0x215),'params':{'unitId':_0x148fb5['unitID'],'actions':null,'textRanges':_0xcfdaab}}],_0x62bcfe=this[_0xd35b2c(0x4cc)][_0xd35b2c(0x304)](_0x148fb5,_0x43299a);if(!_['isTransformMutationsWithChangesetSuccess'](_0x62bcfe))throw _0x62bcfe[_0xd35b2c(0x182)];const _0x25a859=_0x62bcfe['m2Prime'][0x0][_0xd35b2c(0x2eb)][_0xd35b2c(0x442)];Array[_0xd35b2c(0x369)](_0x25a859)&&_0x25a859[_0xd35b2c(0x3b4)]&&_0x31039a[_0xd35b2c(0x38d)](_0x25a859,!0x1);}};pe=ws([tt(0x0,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),tt(0x1,_['ITransformService'])],pe);const Us=new Set([C['InsertSheetMutation']['id']]);function st(_0x583cb3,_0x253394,_0x1adafe,_0x4cc509,_0x2d75e8){const _0x4aa5f3=_0x44ec13;var _0x542be8,_0x5b22ba,_0x32d116,_0x5cb34b;const _0x45c662=[];for(const _0x110ba3 of _0x583cb3)if(Us['has'](_0x110ba3['id'])){if(_0x45c662[_0x4aa5f3(0x3b4)]>0x0)break;_0x45c662['push'](_0x110ba3);break;}else _0x45c662[_0x4aa5f3(0x3a3)](_0x110ba3);const _0x50c680=(_0x5b22ba=(_0x542be8=_0x2d75e8['getCurrentUser']())==null?void 0x0:_0x542be8['userID'])!=null?_0x5b22ba:'unknown',_0x109e4d=(_0x5cb34b=(_0x32d116=_0x2d75e8[_0x4aa5f3(0x4db)]())==null?void 0x0:_0x32d116[_0x4aa5f3(0x539)])!=null?_0x5cb34b:'unknown';return{'changeset':{'unitID':_0x253394,'type':_['mapDocumentTypeToUniverType'](_0x1adafe[_0x4aa5f3(0x16f)](_0x253394)),'baseRev':_0x4cc509[_0x4aa5f3(0x188)](_0x253394),'revision':0x0,'userID':_0x50c680,'memberID':_0x109e4d,'mutations':_0x45c662},'pendingMutations':_0x583cb3[_0x4aa5f3(0x2ef)](_0x45c662['length'])};}function Ns(_0x3cad24,_0x5b0327,_0x699b15,_0x4b54f7,_0xa09c45){const _0x1c03ea=_0x44ec13;var _0x118f6b,_0x484146,_0x1ceb23,_0x1b2a0e;const _0x43b2cd=[_0x3cad24[_0x1c03ea(0x25b)]((_0x4275c8,_0x578762)=>{const _0x357a92=_0x1c03ea;var _0x597fe6;const {id:_0x1efa40}=_0x4275c8,{id:_0x15a654,type:_0x112cdc}=_0x578762,_0x3cea22=(_0x597fe6=_0x4275c8[_0x357a92(0x2eb)])!=null?_0x597fe6:{'actions':null},_0x119968=_0x578762[_0x357a92(0x2eb)];if(_0x1efa40&&_0x1efa40!==_0x15a654)throw new Error(_0x357a92(0x40e)+_0x1efa40+'\x20-\x20'+_0x15a654+'.');return{..._0x4275c8,'id':_0x15a654,'type':_0x112cdc,'params':{'unitId':_0x119968[_0x357a92(0x1c9)],'textRanges':_0x119968[_0x357a92(0x442)],'actions':a[_0x357a92(0x50a)][_0x357a92(0x534)](_0x3cea22[_0x357a92(0x4ab)],_0x119968[_0x357a92(0x4ab)])}};},{})],_0x1d7eb5=(_0x484146=(_0x118f6b=_0xa09c45['getCurrentUser']())==null?void 0x0:_0x118f6b[_0x1c03ea(0x499)])!=null?_0x484146:'unknown',_0x543815=(_0x1b2a0e=(_0x1ceb23=_0xa09c45[_0x1c03ea(0x4db)]())==null?void 0x0:_0x1ceb23['memberID'])!=null?_0x1b2a0e:_0x1c03ea(0x3b2);return{'changeset':{'unitID':_0x5b0327,'type':_[_0x1c03ea(0x401)](_0x699b15[_0x1c03ea(0x16f)](_0x5b0327)),'baseRev':_0x4b54f7['getCurrentRevForDocument'](_0x5b0327),'revision':0x0,'userID':_0x1d7eb5,'memberID':_0x543815,'mutations':_0x43b2cd},'pendingMutations':[]};}const Ms={'id':C[_0x44ec13(0x39b)]['id'],'type':a[_0x44ec13(0x37e)][_0x44ec13(0x4d5)],'params':{}};var Ls=Object[_0x44ec13(0x2ec)],As=Object['getOwnPropertyDescriptor'],q=(_0x12ee59,_0x53b73b,_0x2759df,_0x102af9)=>{const _0x3b0b6a=_0x44ec13;for(var _0x5a2608=_0x102af9>0x1?void 0x0:_0x102af9?As(_0x53b73b,_0x2759df):_0x53b73b,_0x445f06=_0x12ee59[_0x3b0b6a(0x3b4)]-0x1,_0x1e4106;_0x445f06>=0x0;_0x445f06--)(_0x1e4106=_0x12ee59[_0x445f06])&&(_0x5a2608=(_0x102af9?_0x1e4106(_0x53b73b,_0x2759df,_0x5a2608):_0x1e4106(_0x5a2608))||_0x5a2608);return _0x102af9&&_0x5a2608&&Ls(_0x53b73b,_0x2759df,_0x5a2608),_0x5a2608;},f=(_0x26217a,_0x1b1c7d)=>(_0x4a7699,_0x3554a7)=>_0x1b1c7d(_0x4a7699,_0x3554a7,_0x26217a),y=(_0x4378c4=>(_0x4378c4[_0x44ec13(0x2f7)]=_0x44ec13(0x453),_0x4378c4[_0x44ec13(0x530)]=_0x44ec13(0x194),_0x4378c4['PENDING']=_0x44ec13(0x2ee),_0x4378c4[_0x44ec13(0x444)]=_0x44ec13(0x248),_0x4378c4[_0x44ec13(0x320)]='awaiting_with_pending',_0x4378c4[_0x44ec13(0x15b)]=_0x44ec13(0x240),_0x4378c4[_0x44ec13(0x3db)]=_0x44ec13(0x1e5),_0x4378c4[_0x44ec13(0x3a7)]=_0x44ec13(0x19e),_0x4378c4))(y||{});class J{constructor(_0x57f501,_0x2d572e,_0x422f14,_0x209814,_0x52b33b,_0x13235c,_0xf8cecf,_0x3ed576,_0x3e30a9){const _0x284381=_0x44ec13;d(this,_0x284381(0x4bc),null),d(this,'_pendingMutations',[]),(this[_0x284381(0x426)]=_0x57f501,this[_0x284381(0x2ed)]=_0x2d572e,this[_0x284381(0x4e6)]=_0x52b33b,this[_0x284381(0x30e)]=_0x13235c,this[_0x284381(0x428)]=_0xf8cecf,this[_0x284381(0x2d9)]=_0x3ed576,this[_0x284381(0x473)]=_0x3e30a9,this[_0x284381(0x4bc)]=_0x422f14,this[_0x284381(0x2e6)]=_0x209814);}['_checkMissing'](_0x56fd5a){const _0x523e98=_0x44ec13,_0x1dca61=this[_0x523e98(0x2d9)]['getCurrentRevForDocument'](this[_0x523e98(0x426)]);return _0x56fd5a[_0x523e98(0x1b5)]>_0x1dca61+0x1?(this[_0x523e98(0x4e6)][_0x523e98(0x407)]({'from':_0x1dca61,'to':_0x56fd5a[_0x523e98(0x1b5)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x27813e){const _0x59522e=_0x44ec13;this[_0x59522e(0x428)][_0x59522e(0x1ac)](this[_0x59522e(0x426)],_0x27813e);}[_0x44ec13(0x19f)](_0x20faea){const _0x19f34e=_0x44ec13;var _0x2d02c4,_0x3a62da;(_0x3a62da=(_0x2d02c4=this[_0x19f34e(0x4e6)])['onTransformSelections'])==null||_0x3a62da[_0x19f34e(0x286)](_0x2d02c4,_0x20faea);}['_transformIMECache'](_0x1b9a2e){const _0x329502=_0x44ec13;var _0x3f40b4,_0x68e34e;return(_0x68e34e=(_0x3f40b4=this[_0x329502(0x4e6)])[_0x329502(0x177)])==null?void 0x0:_0x68e34e[_0x329502(0x286)](_0x3f40b4,_0x1b9a2e);}[_0x44ec13(0x242)](_0x37c598){const _0x3ac699=_0x44ec13;var _0x2060e6,_0x1c2fdb,_0x4d8c58;return(_0x4d8c58=(_0x1c2fdb=(_0x2060e6=this[_0x3ac699(0x4e6)])[_0x3ac699(0x2a8)])==null?void 0x0:_0x1c2fdb['call'](_0x2060e6,_0x37c598))!=null?_0x4d8c58:_0x37c598;}[_0x44ec13(0x25a)](_0x5a0bab){const _0x5a3e00=_0x44ec13;var _0x5759b6,_0x5c16ed;if(this[_0x5a3e00(0x2ed)]===A[_0x5a3e00(0x344)]){const {unitID:_0x2b3e0f,mutations:_0x6165ae,memberID:_0x4bce87}=_0x5a0bab,_0x2f561e=_0x6165ae[0x0][_0x5a3e00(0x2eb)][_0x5a3e00(0x442)];Array[_0x5a3e00(0x369)](_0x2f561e)&&_0x2f561e[_0x5a3e00(0x3b4)]>0x0&&((_0x5c16ed=(_0x5759b6=this[_0x5a3e00(0x4e6)])['onSyncEditingCollabCursor'])==null||_0x5c16ed[_0x5a3e00(0x286)](_0x5759b6,{'unitID':_0x2b3e0f,'memberID':_0x4bce87,'textRanges':_0x2f561e}));}}[_0x44ec13(0x36b)](){const _0x3e8b57=_0x44ec13;this[_0x3e8b57(0x473)][_0x3e8b57(0x4b3)](this[_0x3e8b57(0x426)],this[_0x3e8b57(0x2ed)],this['_awaitingChangeset'],this[_0x3e8b57(0x2e6)]);}['_getCurrentRevision'](){const _0xebb7de=_0x44ec13;return this['_revisionService']['getCurrentRevForDocument'](this[_0xebb7de(0x426)]);}[_0x44ec13(0x358)](){const _0x17c0e8=_0x44ec13;this['_revisionService'][_0x17c0e8(0x410)](this[_0x17c0e8(0x426)]);}[_0x44ec13(0x3cb)](_0x5b0fec){const _0xba0f82=_0x44ec13;var _0x22581c;const _0x541584=this[_0xba0f82(0x242)](_0x5b0fec),_0x28009a=a[_0xba0f82(0x1b8)](_0x541584[_0xba0f82(0x1cb)],this['_commandService'],{'fromCollab':!0x0});if(!_0x28009a['result'])throw _0x28009a[_0xba0f82(0x182)]instanceof Error?_0x28009a[_0xba0f82(0x182)]:new Error((_0x22581c=_0x28009a[_0xba0f82(0x182)])!=null?_0x22581c:_0xba0f82(0x216));this['_transformIMECache'](_0x541584),this['_transformUndoredo'](_0x5b0fec),this['_transformSelections'](_0x541584),this['_syncEditingCollabCursor'](_0x541584),this[_0xba0f82(0x358)]();}}let se=class extends J{constructor(_0x4bdf3a,_0x212b86,_0x40bdc0,_0x167b64,_0x1db4e3,_0x336789,_0x476004,_0x5a1b44,_0x142f56,_0x4917de){const _0x161ddd=_0x44ec13;super(_0x4bdf3a,_0x212b86,null,[],_0x40bdc0,_0x5a1b44,_0x476004,_0x167b64,_0x1db4e3),d(this,_0x161ddd(0x4fe),_0x161ddd(0x194)),(this[_0x161ddd(0x360)]=_0x336789,this[_0x161ddd(0x49d)]=_0x142f56,this['_transformService']=_0x4917de);}[_0x44ec13(0x443)](_0x34d1e3){const _0x4318a2=_0x44ec13,_0x2dbaca=this[_0x4318a2(0x360)]['createInstance'](H,this[_0x4318a2(0x426)],this['type'],[_0x34d1e3],this['_handler']);return _0x2dbaca['_schedule'](),_0x2dbaca[_0x4318a2(0x36b)](),_0x2dbaca;}[_0x44ec13(0x37d)](_0xe00474){const _0x25c32f=_0x44ec13;if(this['_checkMissing'](_0xe00474))return this[_0x25c32f(0x360)]['createInstance']($,this[_0x25c32f(0x426)],this[_0x25c32f(0x2ed)],null,[],null,[_0xe00474],this[_0x25c32f(0x4e6)]);try{const _0x4afbe4=this[_0x25c32f(0x4cc)][_0x25c32f(0x304)](_0xe00474,[Ms]);if(_[_0x25c32f(0x502)](_0x4afbe4)){const {c1Prime:_0x51d93d}=_0x4afbe4;return this[_0x25c32f(0x3cb)](_0x51d93d),this;}throw _0x4afbe4['error'];}catch(_0x21a2e5){return this[_0x25c32f(0x49d)]['error'](_0x21a2e5),this['_onConflict'](!0x1);}}[_0x44ec13(0x4b9)](_0x428631){const _0x3bcf42=_0x44ec13;return this['_injector'][_0x3bcf42(0x3be)](F,this['unitID'],this[_0x3bcf42(0x2ed)],null,[],this[_0x3bcf42(0x4e6)],_0x428631);}[_0x44ec13(0x1de)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x44ec13(0x218)](){const _0x3df2c6=_0x44ec13;return this[_0x3df2c6(0x360)][_0x3df2c6(0x3be)](W,this[_0x3df2c6(0x426)],this[_0x3df2c6(0x2ed)],null,[],this[_0x3df2c6(0x4e6)]);}[_0x44ec13(0x2c2)](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x439f4a=_0x44ec13,_0x1f830d=this['_revisionService'][_0x439f4a(0x188)](this[_0x439f4a(0x426)]);return this[_0x439f4a(0x4e6)][_0x439f4a(0x407)]({'from':_0x1f830d,'to':0x0}),this[_0x439f4a(0x360)][_0x439f4a(0x3be)]($,this['unitID'],this[_0x439f4a(0x2ed)],null,[],null,[],this[_0x439f4a(0x4e6)]);}};se=q([f(0x3,a[_0x44ec13(0x3ed)](_['RevisionService'])),f(0x4,a[_0x44ec13(0x3ed)](exports['LocalCacheService'])),f(0x5,a['Inject'](a[_0x44ec13(0x4cf)])),f(0x6,a['IUndoRedoService']),f(0x7,a[_0x44ec13(0x359)]),f(0x8,a[_0x44ec13(0x2d1)]),f(0x9,_[_0x44ec13(0x275)])],se);let H=class extends J{constructor(_0x4d7649,_0x40bacf,_0x46b5b6,_0x326b23,_0xed50f1,_0x5c2985,_0x304233,_0x4a1d81,_0x2c4a06,_0x51b055,_0x5d8673,_0x4f4027,_0x2cf807,_0x24b4a9){const _0x749e19=_0x44ec13;super(_0x4d7649,_0x40bacf,null,_0x46b5b6,_0x326b23,_0x51b055,_0x24b4a9,_0x5c2985,_0x304233),d(this,'status','pending'),d(this,_0x749e19(0x3cf),null),d(this,_0x749e19(0x3ae),null),(this[_0x749e19(0x360)]=_0xed50f1,this[_0x749e19(0x2bd)]=_0x4a1d81,this[_0x749e19(0x49d)]=_0x2c4a06,this[_0x749e19(0x148)]=_0x5d8673,this[_0x749e19(0x4cc)]=_0x4f4027,this[_0x749e19(0x2b9)]=_0x2cf807);}[_0x44ec13(0x443)](_0x182a4c){const _0x5c1ca2=_0x44ec13;return this[_0x5c1ca2(0x2e6)][_0x5c1ca2(0x3a3)](_0x182a4c),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x5c8bf7){const _0x41b517=_0x44ec13;if(this[_0x41b517(0x50d)](_0x5c8bf7))return this[_0x41b517(0x416)](),this[_0x41b517(0x360)][_0x41b517(0x3be)]($,this['unitID'],this['type'],null,this[_0x41b517(0x2e6)],null,[_0x5c8bf7],this[_0x41b517(0x4e6)]);try{const _0x284ad1=this['_transformService']['transformMutationsWithChangeset'](_0x5c8bf7,this[_0x41b517(0x2e6)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x284ad1)){const {c1Prime:_0x1d01ea,m2Prime:_0x3b6e7d}=_0x284ad1;this[_0x41b517(0x3cb)](_0x1d01ea);const _0x40d7cc=this['_injector'][_0x41b517(0x3be)](H,this[_0x41b517(0x426)],this['type'],_0x3b6e7d,this[_0x41b517(0x4e6)]);return this['_clearScheduledTask'](),_0x40d7cc['_schedule'](this[_0x41b517(0x3cf)]?Math['max'](0x0,new Date()[_0x41b517(0x229)]()-this['_scheduleTimestamp']):this[_0x41b517(0x338)]()),_0x40d7cc;}throw _0x284ad1[_0x41b517(0x182)];}catch(_0x53b24a){return this['_logService'][_0x41b517(0x182)](_0x53b24a),this[_0x41b517(0x4b9)](!0x1);}}[_0x44ec13(0x1de)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x44ec13(0x454)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x44ec13(0x218)](){const _0x4a0e68=_0x44ec13;return this[_0x4a0e68(0x416)](),this['_injector'][_0x4a0e68(0x3be)](W,this[_0x4a0e68(0x426)],this[_0x4a0e68(0x2ed)],null,this['_pendingMutations'],this[_0x4a0e68(0x4e6)]);}[_0x44ec13(0x2c2)](){return this;}[_0x44ec13(0x505)](_0x40bdf3){const _0x396987=_0x44ec13,_0x40b2d7=_0x40bdf3!=null?_0x40bdf3:this[_0x396987(0x338)]();this[_0x396987(0x3cf)]=new Date()[_0x396987(0x229)](),this[_0x396987(0x3ae)]=window['setTimeout'](()=>{const _0x1dff88=_0x396987;this[_0x1dff88(0x416)]();let _0x5a2bed=null;switch(this[_0x1dff88(0x2ed)]){case A['UNIVER_SHEET']:{_0x5a2bed=st(this[_0x1dff88(0x2e6)],this[_0x1dff88(0x426)],this['_univerInstanceService'],this[_0x1dff88(0x2d9)],this[_0x1dff88(0x2bd)]);break;}case A[_0x1dff88(0x344)]:{this['_pendingMutations'][_0x1dff88(0x479)](_0x3f1c15=>_0x3f1c15['id']===B[_0x1dff88(0x3b3)]['id'])?_0x5a2bed=Ns(this[_0x1dff88(0x2e6)],this[_0x1dff88(0x426)],this[_0x1dff88(0x2b9)],this[_0x1dff88(0x2d9)],this[_0x1dff88(0x2bd)]):_0x5a2bed=st(this['_pendingMutations'],this[_0x1dff88(0x426)],this[_0x1dff88(0x2b9)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x1dff88(0x1f0)+this[_0x1dff88(0x2ed)]+_0x1dff88(0x1b4));}const {changeset:_0x43546f,pendingMutations:_0x37c491}=_0x5a2bed;this['_handler'][_0x1dff88(0x3d0)](_0x43546f);const _0x45078c=_0x37c491[_0x1dff88(0x3b4)]?this[_0x1dff88(0x360)]['createInstance'](x,this['unitID'],this[_0x1dff88(0x2ed)],_0x43546f,_0x37c491,this[_0x1dff88(0x4e6)]):this['_injector']['createInstance'](V,this[_0x1dff88(0x426)],this[_0x1dff88(0x2ed)],_0x43546f,this[_0x1dff88(0x4e6)]);_0x45078c[_0x1dff88(0x36b)](),this[_0x1dff88(0x4e6)][_0x1dff88(0x3b5)](this,_0x45078c);},_0x40b2d7);}['_getSendChangesetTimeout'](){const _0x381b7b=_0x44ec13;var _0x18be91;return(_0x18be91=this[_0x381b7b(0x148)]['getConfig'](_t))!=null?_0x18be91:Yt;}[_0x44ec13(0x277)](){const _0x4a3c7d=_0x44ec13;throw new Error(_0x4a3c7d(0x3ca));}[_0x44ec13(0x416)](){const _0x2701bd=_0x44ec13;this[_0x2701bd(0x3ae)]!=null&&(clearTimeout(this[_0x2701bd(0x3ae)]),this[_0x2701bd(0x3ae)]=null);}[_0x44ec13(0x4b9)](_0x10f273){const _0x5645e1=_0x44ec13;return this[_0x5645e1(0x416)](),this[_0x5645e1(0x360)]['createInstance'](F,this[_0x5645e1(0x426)],this[_0x5645e1(0x2ed)],null,this[_0x5645e1(0x2e6)],this['_handler'],_0x10f273);}};H=q([f(0x4,a['Inject'](a[_0x44ec13(0x4cf)])),f(0x5,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x1a7)])),f(0x6,a[_0x44ec13(0x3ed)](exports['LocalCacheService'])),f(0x7,a[_0x44ec13(0x3ed)](X)),f(0x8,a[_0x44ec13(0x2d1)]),f(0x9,a[_0x44ec13(0x359)]),f(0xa,a[_0x44ec13(0x259)]),f(0xb,_[_0x44ec13(0x275)]),f(0xc,a[_0x44ec13(0x4e2)]),f(0xd,a[_0x44ec13(0x4f5)])],H);let V=class extends J{constructor(_0x38b331,_0x138034,_0x3b6559,_0x2a4ec3,_0x32aad5,_0x440f14,_0x49c61e,_0xb02807,_0x35799a,_0x1c9a6c,_0x320bf1){const _0x28b792=_0x44ec13;super(_0x38b331,_0x138034,_0x3b6559,[],_0x2a4ec3,_0xb02807,_0x320bf1,_0x440f14,_0x49c61e),d(this,_0x28b792(0x4fe),_0x28b792(0x248)),(this[_0x28b792(0x360)]=_0x32aad5,this[_0x28b792(0x49d)]=_0x35799a,this[_0x28b792(0x4cc)]=_0x1c9a6c);}[_0x44ec13(0x443)](_0x324be6){const _0x3b6aab=_0x44ec13,_0x54376a=this['_injector'][_0x3b6aab(0x3be)](x,this['unitID'],this[_0x3b6aab(0x2ed)],this[_0x3b6aab(0x4bc)],[_0x324be6],this[_0x3b6aab(0x4e6)]);return _0x54376a['_updateLocalCache'](),_0x54376a;}[_0x44ec13(0x37d)](_0x7aec44){const _0x1a40b2=_0x44ec13;if(this[_0x1a40b2(0x50d)](_0x7aec44))return this[_0x1a40b2(0x360)][_0x1a40b2(0x3be)]($,this[_0x1a40b2(0x426)],this['type'],this['_awaitingChangeset'],[],null,[_0x7aec44],this[_0x1a40b2(0x4e6)]);try{const _0xa3f8b8=this[_0x1a40b2(0x4cc)][_0x1a40b2(0x311)]([_0x7aec44],[this['_awaitingChangeset']],!0x1);if(_[_0x1a40b2(0x1c6)](_0xa3f8b8)){const {c1Prime:_0x2d26b5,c2Prime:_0x32cfb8}=_0xa3f8b8;this[_0x1a40b2(0x3cb)](_0x2d26b5[0x0]),_0x32cfb8[0x0][_0x1a40b2(0x46f)]=this[_0x1a40b2(0x23b)]();const _0x439841=this[_0x1a40b2(0x360)][_0x1a40b2(0x3be)](V,this[_0x1a40b2(0x426)],this['type'],_0x32cfb8[0x0],this[_0x1a40b2(0x4e6)]);return _0x439841['_updateLocalCache'](),_0x439841;}return this[_0x1a40b2(0x4b9)](!0x1);}catch(_0x497dd0){return this['_logService'][_0x1a40b2(0x182)](_0x497dd0),this[_0x1a40b2(0x4b9)](!0x1);}}[_0x44ec13(0x1de)](_0x1263cf){const _0x14083f=_0x44ec13,_0x4aa376=this[_0x14083f(0x2d9)][_0x14083f(0x188)](this['unitID']);if(_0x1263cf[_0x14083f(0x1b5)]<_0x4aa376-0x1)return this;if(this[_0x14083f(0x50d)](_0x1263cf))return this['_injector'][_0x14083f(0x3be)]($,this[_0x14083f(0x426)],this[_0x14083f(0x2ed)],null,[],this['_awaitingChangeset'],[],this[_0x14083f(0x4e6)]);this[_0x14083f(0x358)]();const _0x46720c=this[_0x14083f(0x360)][_0x14083f(0x3be)](se,this[_0x14083f(0x426)],this[_0x14083f(0x2ed)],this[_0x14083f(0x4e6)]);return _0x46720c[_0x14083f(0x36b)](),_0x46720c;}['onRemoteRej'](_0x2e82d9){const _0x2438d6=_0x44ec13;return this[_0x2438d6(0x4b9)](!!(_0x2e82d9!=null&&_0x2e82d9['isPermissionRej']));}[_0x44ec13(0x218)](){const _0x67acfa=_0x44ec13;return this[_0x67acfa(0x360)]['createInstance'](W,this[_0x67acfa(0x426)],this[_0x67acfa(0x2ed)],this['_awaitingChangeset'],[],this[_0x67acfa(0x4e6)]);}[_0x44ec13(0x2c2)](){return this;}[_0x44ec13(0x277)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}[_0x44ec13(0x4b9)](_0x3fcaa5){const _0xb48d97=_0x44ec13;return this[_0xb48d97(0x360)][_0xb48d97(0x3be)](F,this[_0xb48d97(0x426)],this[_0xb48d97(0x2ed)],this['_awaitingChangeset'],[],this['_handler'],_0x3fcaa5);}};V=q([f(0x4,a[_0x44ec13(0x3ed)](a['Injector'])),f(0x5,a[_0x44ec13(0x3ed)](_['RevisionService'])),f(0x6,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),f(0x7,a[_0x44ec13(0x359)]),f(0x8,a[_0x44ec13(0x2d1)]),f(0x9,_[_0x44ec13(0x275)]),f(0xa,a[_0x44ec13(0x4f5)])],V);let x=class extends J{constructor(_0x53198b,_0x243ede,_0x18b770,_0x2b57aa,_0x153930,_0x1c5884,_0xb2af7f,_0x25a872,_0x88d314,_0x1105ec,_0x1f5be1,_0x7bb3b7){const _0x4d8a53=_0x44ec13;super(_0x53198b,_0x243ede,_0x18b770,_0x2b57aa,_0x153930,_0x88d314,_0x7bb3b7,_0xb2af7f,_0x25a872),d(this,_0x4d8a53(0x4fe),_0x4d8a53(0x24d)),(this[_0x4d8a53(0x360)]=_0x1c5884,this['_logService']=_0x1105ec,this[_0x4d8a53(0x4cc)]=_0x1f5be1);}[_0x44ec13(0x443)](_0x548f0a){const _0x3c5e16=_0x44ec13;return this[_0x3c5e16(0x2e6)][_0x3c5e16(0x3a3)](_0x548f0a),this;}[_0x44ec13(0x37d)](_0x533fc3){const _0x4dea89=_0x44ec13;if(this[_0x4dea89(0x50d)](_0x533fc3))return this[_0x4dea89(0x360)][_0x4dea89(0x3be)]($,this[_0x4dea89(0x426)],this[_0x4dea89(0x2ed)],this[_0x4dea89(0x4bc)],this[_0x4dea89(0x2e6)],null,[_0x533fc3],this['_handler']);try{const _0x35ac0c=this['_transformService'][_0x4dea89(0x311)]([_0x533fc3],[this['_awaitingChangeset']],!0x1);if(_['isTransformChangesetsSuccess'](_0x35ac0c)){const {c1Prime:_0x43c999,c2Prime:_0x49ad6e}=_0x35ac0c,_0x2775ff=this['_transformService'][_0x4dea89(0x304)](_0x43c999[0x0],this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x2775ff)){const {c1Prime:_0x442b4e,m2Prime:_0x1841dd}=_0x2775ff;return this['_executeRemoteChangeset'](_0x442b4e),_0x49ad6e[0x0]['baseRev']=this[_0x4dea89(0x23b)](),this['_injector'][_0x4dea89(0x3be)](x,this['unitID'],this[_0x4dea89(0x2ed)],_0x49ad6e[0x0],_0x1841dd,this[_0x4dea89(0x4e6)]);}throw _0x2775ff[_0x4dea89(0x182)];}throw _0x35ac0c[_0x4dea89(0x182)];}catch(_0x538057){return this['_logService'][_0x4dea89(0x182)](_0x538057),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x2ed99b){const _0x26f8ef=_0x44ec13;if(this[_0x26f8ef(0x50d)](_0x2ed99b))return this[_0x26f8ef(0x360)][_0x26f8ef(0x3be)]($,this[_0x26f8ef(0x426)],this[_0x26f8ef(0x2ed)],null,this[_0x26f8ef(0x2e6)],this[_0x26f8ef(0x4bc)],[],this[_0x26f8ef(0x4e6)]);this[_0x26f8ef(0x358)]();const _0x3cf45a=this[_0x26f8ef(0x360)]['createInstance'](H,this['unitID'],this['type'],this[_0x26f8ef(0x2e6)],this[_0x26f8ef(0x4e6)]);return _0x3cf45a[_0x26f8ef(0x505)](),_0x3cf45a[_0x26f8ef(0x36b)](),_0x3cf45a;}[_0x44ec13(0x454)](_0x52516a){const _0x5c4983=_0x44ec13;return this[_0x5c4983(0x4b9)](!!(_0x52516a!=null&&_0x52516a['isPermissionRej']));}[_0x44ec13(0x218)](){const _0x3fa654=_0x44ec13;return this['_injector'][_0x3fa654(0x3be)](W,this[_0x3fa654(0x426)],this['type'],this[_0x3fa654(0x4bc)],this['_pendingMutations'],this[_0x3fa654(0x4e6)]);}[_0x44ec13(0x2c2)](){return this;}['resend'](){const _0x467c93=_0x44ec13;this[_0x467c93(0x4e6)][_0x467c93(0x3d0)](this[_0x467c93(0x4bc)]);}[_0x44ec13(0x4b9)](_0x5891fc){const _0x444e40=_0x44ec13;return this['_injector'][_0x444e40(0x3be)](F,this[_0x444e40(0x426)],this[_0x444e40(0x2ed)],null,this[_0x444e40(0x2e6)],this[_0x444e40(0x4e6)],_0x5891fc);}};x=q([f(0x5,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),f(0x6,a['Inject'](_[_0x44ec13(0x1a7)])),f(0x7,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),f(0x8,a[_0x44ec13(0x359)]),f(0x9,a[_0x44ec13(0x2d1)]),f(0xa,_[_0x44ec13(0x275)]),f(0xb,a[_0x44ec13(0x4f5)])],x);let F=class extends J{constructor(_0x83efec,_0x3d47fa,_0x467a8c,_0x298710,_0xc17912,_0xd205cd=!0x1,_0x144025,_0x1685e5,_0xbb1ef9,_0x169307,_0x35eed8,_0x513ccb,_0x1db5fb){const _0x473744=_0x44ec13;super(_0x83efec,_0x3d47fa,_0x467a8c,_0x298710,_0xc17912,_0x1685e5,_0xbb1ef9,_0x35eed8,_0x169307),d(this,'status',_0x473744(0x1e5)),(this['_isPermissionRej']=_0xd205cd,this[_0x473744(0x3fc)]=_0x144025,this['_localeService']=_0x513ccb,this['_notificationService']=_0x1db5fb,this[_0x473744(0x4aa)](),this[_0x473744(0x2cb)](),this[_0x473744(0x31a)]());}[_0x44ec13(0x443)](){return this;}[_0x44ec13(0x37d)](){return this;}[_0x44ec13(0x1de)](){return this;}[_0x44ec13(0x454)](){return this;}['toggleOffline'](){return this;}[_0x44ec13(0x2c2)](){return this;}[_0x44ec13(0x277)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x44ec13(0x2cb)](){const _0x22559f=_0x44ec13;this[_0x22559f(0x473)][_0x22559f(0x4b3)](this['unitID'],this['type'],null,[]);}[_0x44ec13(0x4aa)](){const _0x49d2d8=_0x44ec13;this[_0x49d2d8(0x309)]?this[_0x49d2d8(0x294)][_0x49d2d8(0x37b)]({'title':this[_0x49d2d8(0x330)]['t']('permission.title'),'content':this[_0x49d2d8(0x330)]['t'](_0x49d2d8(0x339)),'type':'error','duration':0x0}):this[_0x49d2d8(0x294)][_0x49d2d8(0x37b)]({'title':this[_0x49d2d8(0x330)]['t'](_0x49d2d8(0x237)),'content':this[_0x49d2d8(0x330)]['t'](_0x49d2d8(0x1a0)),'type':_0x49d2d8(0x182),'duration':0x0});}['_disableEditing'](){const _0x5f0a76=_0x44ec13;this[_0x5f0a76(0x3fc)][_0x5f0a76(0x202)](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};F=q([f(0x6,a['Inject'](a['IPermissionService'])),f(0x7,a[_0x44ec13(0x359)]),f(0x8,a[_0x44ec13(0x4f5)]),f(0x9,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),f(0xa,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x1a7)])),f(0xb,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)])),f(0xc,M['INotificationService'])],F);let W=class extends J{constructor(_0xeb54b6,_0x2a07ba,_0x2092df,_0x1f3e6f,_0x406797,_0x6c6baf,_0x1bdeb9,_0x143168,_0x384e25,_0x51a678){const _0x3008c5=_0x44ec13;super(_0xeb54b6,_0x2a07ba,_0x2092df,_0x1f3e6f,_0x406797,_0x384e25,_0x51a678,_0x1bdeb9,_0x143168),d(this,_0x3008c5(0x4fe),_0x3008c5(0x19e)),this['_injector']=_0x6c6baf;}[_0x44ec13(0x443)](_0x24a1f0){const _0xe114d8=_0x44ec13;return this[_0xe114d8(0x2e6)][_0xe114d8(0x3a3)](_0x24a1f0),this[_0xe114d8(0x36b)](),this;}[_0x44ec13(0x37d)](_0xc343af){const _0x32339d=_0x44ec13;throw new Error(_0x32339d(0x357));}[_0x44ec13(0x1de)](){const _0x33bb13=_0x44ec13;throw new Error(_0x33bb13(0x4c5));}[_0x44ec13(0x454)](){const _0x46575e=_0x44ec13;throw new Error(_0x46575e(0x535));}[_0x44ec13(0x218)](){return this;}[_0x44ec13(0x2c2)](){const _0x39841b=_0x44ec13,{_injector:_0x355e8d,_pendingMutations:_0x12f524,_awaitingChangeset:_0x3407fe,unitID:_0x55ed3b,_handler:_0x17c881,type:_0x3d0ffc}=this,_0x5937bb=Ot(_0x355e8d,_0x55ed3b,_0x3d0ffc,_0x3407fe,_0x12f524,_0x17c881);return _0x5937bb instanceof H?_0x5937bb['_schedule']():(_0x5937bb instanceof x||_0x5937bb instanceof V)&&_0x5937bb[_0x39841b(0x277)](),_0x5937bb;}[_0x44ec13(0x277)](){const _0x5ebc8e=_0x44ec13;throw new Error(_0x5ebc8e(0x406));}};W=q([f(0x5,a['Inject'](a[_0x44ec13(0x4cf)])),f(0x6,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x1a7)])),f(0x7,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),f(0x8,a[_0x44ec13(0x359)]),f(0x9,a[_0x44ec13(0x4f5)])],W);let $=class extends J{constructor(_0x5b17b,_0xa4483,_0x21c1d5,_0x5a77a0,_0x257b70,_0x20898b,_0x4d5f00,_0x3ec6ac,_0x1bb5d5,_0x8ba88a,_0x38924a,_0x15fc8d,_0x2b23eb,_0x34e240){const _0x3fe587=_0x44ec13;super(_0x5b17b,_0xa4483,_0x21c1d5,_0x5a77a0,_0x4d5f00,_0x15fc8d,_0x2b23eb,_0x1bb5d5,_0x8ba88a),d(this,_0x3fe587(0x4fe),'fetch_missing'),(this[_0x3fe587(0x22d)]=_0x257b70,this[_0x3fe587(0x38c)]=_0x20898b,this[_0x3fe587(0x360)]=_0x3ec6ac,this['_logService']=_0x38924a,this[_0x3fe587(0x4cc)]=_0x34e240);}[_0x44ec13(0x21f)](_0x5cb5c3){const _0x4bf381=_0x44ec13;try{const _0x266a45=[..._0x5cb5c3,...this[_0x4bf381(0x38c)]],_0x232864=[this[_0x4bf381(0x4bc)]||this[_0x4bf381(0x22d)]][_0x4bf381(0x1ee)](_0x3ad38c=>!!_0x3ad38c);let _0x405374,_0x225b4f;if(_0x232864['length']){const _0x16a3a5=this[_0x4bf381(0x4cc)]['transformChangesets'](_0x266a45,_0x232864,!0x1);if(!_[_0x4bf381(0x1c6)](_0x16a3a5))throw _0x16a3a5[_0x4bf381(0x182)];_0x405374=_0x16a3a5[_0x4bf381(0x24f)],_0x225b4f=_0x16a3a5[_0x4bf381(0x4ed)];}else _0x405374=_0x266a45,_0x225b4f=[];let _0x23c276=this[_0x4bf381(0x2e6)];_0x405374[_0x4bf381(0x39a)](_0xb71346=>{const _0x5492f1=_0x4bf381;let _0x32b9cd;if(_0x23c276['length']){const _0x14e713=this[_0x5492f1(0x4cc)][_0x5492f1(0x304)](_0xb71346,_0x23c276);if(!_['isTransformMutationsWithChangesetSuccess'](_0x14e713))throw _0x14e713['error'];_0x32b9cd=_0x14e713['c1Prime'],_0x23c276=_0x14e713[_0x5492f1(0x2f1)];}else _0x32b9cd=_0xb71346;this[_0x5492f1(0x3cb)](_0x32b9cd);}),this[_0x4bf381(0x22d)]&&this[_0x4bf381(0x358)](),this[_0x4bf381(0x4bc)]&&_0x225b4f[_0x4bf381(0x3b4)]&&(_0x225b4f[0x0][_0x4bf381(0x46f)]=this[_0x4bf381(0x23b)]());let _0x2f8afc;if(this[_0x4bf381(0x4bc)]&&_0x23c276[_0x4bf381(0x3b4)]!==0x0)_0x2f8afc=this[_0x4bf381(0x360)][_0x4bf381(0x3be)](x,this[_0x4bf381(0x426)],this['type'],_0x225b4f[0x0],_0x23c276,this[_0x4bf381(0x4e6)]);else{if(this['_awaitingChangeset']&&_0x23c276['length']===0x0)_0x225b4f[0x0][_0x4bf381(0x46f)]=this[_0x4bf381(0x23b)](),_0x2f8afc=this[_0x4bf381(0x360)][_0x4bf381(0x3be)](V,this['unitID'],this[_0x4bf381(0x2ed)],_0x225b4f[0x0],this[_0x4bf381(0x4e6)]);else{if(_0x23c276['length']!==0x0){const _0x41d6c2=this[_0x4bf381(0x360)][_0x4bf381(0x3be)](H,this[_0x4bf381(0x426)],this[_0x4bf381(0x2ed)],_0x23c276,this[_0x4bf381(0x4e6)]);_0x41d6c2['_schedule'](),_0x2f8afc=_0x41d6c2;}else _0x2f8afc=this[_0x4bf381(0x360)]['createInstance'](se,this[_0x4bf381(0x426)],this['type'],this[_0x4bf381(0x4e6)]);}}return _0x2f8afc[_0x4bf381(0x36b)](),_0x2f8afc;}catch(_0xb16bf7){return this[_0x4bf381(0x49d)][_0x4bf381(0x182)]('[FetchMissState]',_0x4bf381(0x49a),_0xb16bf7),this['_injector'][_0x4bf381(0x3be)](F,this[_0x4bf381(0x426)],this[_0x4bf381(0x2ed)],this['_awaitingChangeset'],this[_0x4bf381(0x2e6)],this['_handler'],!0x1);}}[_0x44ec13(0x277)](){const _0x245cbb=_0x44ec13;throw new Error(_0x245cbb(0x47d));}[_0x44ec13(0x443)](_0x37e51e){const _0x1d4788=_0x44ec13;return this['_pendingMutations'][_0x1d4788(0x3a3)](_0x37e51e),this;}['onRemoteChangeset'](_0x528586){const _0x2e5514=_0x44ec13;return this[_0x2e5514(0x38c)][_0x2e5514(0x3a3)](_0x528586),this;}[_0x44ec13(0x1de)](_0x2a2962){const _0x4a9bf5=_0x44ec13;if(this[_0x4a9bf5(0x4bc)])return this[_0x4a9bf5(0x22d)]=this[_0x4a9bf5(0x4bc)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x44ec13(0x454)](_0x434a63){const _0x1a2d1e=_0x44ec13;return this[_0x1a2d1e(0x4b9)](!!(_0x434a63!=null&&_0x434a63[_0x1a2d1e(0x53b)]));}[_0x44ec13(0x218)](){const _0x47f333=_0x44ec13;return this[_0x47f333(0x360)][_0x47f333(0x3be)](W,this[_0x47f333(0x426)],this[_0x47f333(0x2ed)],this[_0x47f333(0x4bc)],this[_0x47f333(0x2e6)],this[_0x47f333(0x4e6)]);}[_0x44ec13(0x2c2)](){return this;}['_onConflict'](_0x19962e){const _0x5880de=_0x44ec13;return this[_0x5880de(0x360)][_0x5880de(0x3be)](F,this[_0x5880de(0x426)],this['type'],this[_0x5880de(0x4bc)],this[_0x5880de(0x2e6)],this['_handler'],_0x19962e);}};$=q([f(0x7,a['Inject'](a['Injector'])),f(0x8,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x1a7)])),f(0x9,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),f(0xa,a[_0x44ec13(0x2d1)]),f(0xb,a['ICommandService']),f(0xc,a[_0x44ec13(0x4f5)]),f(0xd,_[_0x44ec13(0x275)])],$);function Ot(_0x32f81b,_0x22bf34,_0x11364a,_0x1b7289,_0x12cab2,_0x2e65fe){const _0x3740d5=_0x44ec13;return _0x1b7289&&_0x12cab2['length']?_0x32f81b[_0x3740d5(0x3be)](x,_0x22bf34,_0x11364a,_0x1b7289,_0x12cab2,_0x2e65fe):_0x1b7289?_0x32f81b[_0x3740d5(0x3be)](V,_0x22bf34,_0x11364a,_0x1b7289,_0x2e65fe):_0x12cab2[_0x3740d5(0x3b4)]?_0x32f81b['createInstance'](H,_0x22bf34,_0x11364a,_0x12cab2,_0x2e65fe):_0x32f81b[_0x3740d5(0x3be)](se,_0x22bf34,_0x11364a,_0x2e65fe);}var js=Object[_0x44ec13(0x2ec)],$s=Object[_0x44ec13(0x2e1)],Ye=(_0x172e94,_0x57ee04,_0x24c913,_0x432488)=>{const _0x7843a0=_0x44ec13;for(var _0x187988=_0x432488>0x1?void 0x0:_0x432488?$s(_0x57ee04,_0x24c913):_0x57ee04,_0x5e25c6=_0x172e94[_0x7843a0(0x3b4)]-0x1,_0x276080;_0x5e25c6>=0x0;_0x5e25c6--)(_0x276080=_0x172e94[_0x5e25c6])&&(_0x187988=(_0x432488?_0x276080(_0x57ee04,_0x24c913,_0x187988):_0x276080(_0x187988))||_0x187988);return _0x432488&&_0x187988&&js(_0x57ee04,_0x24c913,_0x187988),_0x187988;},p=(_0xb3e3ed,_0x99b8ed)=>(_0x35ba02,_0x1287d3)=>_0x99b8ed(_0x35ba02,_0x1287d3,_0xb3e3ed);exports[_0x44ec13(0x273)]=class extends a['RxDisposable']{constructor(_0x4e63c0,_0x21fb6c,_0x516405,_0x580d75,_0x337d43,_0x5c7c1f,_0xfb6417,_0x4156f9,_0x5bdef1,_0x4494fa,_0x524b6a,_0x4b3081,_0x21f524){const _0x100635=_0x44ec13;super(),d(this,_0x100635(0x2bc),new v[(_0x100635(0x362))](null)),d(this,_0x100635(0x52b),this[_0x100635(0x2bc)][_0x100635(0x439)]()),d(this,_0x100635(0x353)),d(this,_0x100635(0x48c),!0x1),d(this,_0x100635(0x44c),this[_0x100635(0x52b)][_0x100635(0x2d5)](v['map'](_0x47d49f=>_0x47d49f?_0x47d49f['status']:y[_0x100635(0x3a7)]),v[_0x100635(0x446)](0x1))),d(this,_0x100635(0x1c0),!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0x100635(0x426)]=_0x4e63c0,this[_0x100635(0x36d)]=_0x21fb6c,this['_type']=_0x516405,this['_injector']=_0x580d75,this[_0x100635(0x473)]=_0x337d43,this[_0x100635(0x312)]=_0x5c7c1f,this[_0x100635(0x330)]=_0xfb6417,this[_0x100635(0x2d9)]=_0x4156f9,this['_logService']=_0x5bdef1,this[_0x100635(0x30e)]=_0x4494fa,this['_messageService']=_0x524b6a,this[_0x100635(0x3fc)]=_0x4b3081,this[_0x100635(0x4a2)]=_0x21f524);}get[_0x44ec13(0x302)](){const _0x4efc5e=_0x44ec13;return this[_0x4efc5e(0x353)];}async['init'](){const _0xeb2b82=_0x44ec13;if(this[_0xeb2b82(0x302)])throw new Error(_0xeb2b82(0x323));await this[_0xeb2b82(0x2d0)]();}['pauseCollaboration'](){const _0x4f4b88=_0x44ec13;return this[_0x4f4b88(0x48c)]=!0x0,a[_0x4f4b88(0x1ef)](()=>{const _0x2f5199=_0x4f4b88;this[_0x2f5199(0x48c)]=!0x1,this[_0x2f5199(0x14f)]();});}[_0x44ec13(0x41c)](_0xe7fa5b){const _0x30eff=_0x44ec13;this[_0x30eff(0x353)]=_0xe7fa5b,this[_0x30eff(0x2bc)][_0x30eff(0x4a4)](_0xe7fa5b);}async['_init'](){const _0x4c4417=_0x44ec13;var _0x5ada43;this[_0x4c4417(0x41c)](await this[_0x4c4417(0x305)]()),this[_0x4c4417(0x4a2)]&&((_0x5ada43=this[_0x4c4417(0x4a2)])==null||_0x5ada43['editingUnit'](this['unitID']),this[_0x4c4417(0x399)](this[_0x4c4417(0x4a2)][_0x4c4417(0x527)](this[_0x4c4417(0x426)])[_0x4c4417(0x1d4)](_0x256e59=>{const _0x4c5faa=_0x4c4417;this[_0x4c5faa(0x49d)][_0x4c5faa(0x1bb)](_0x4c5faa(0x46a),'editing\x20status\x20changed\x20to',_0x256e59),_0x256e59===Tt[_0x4c5faa(0x42a)]?(this['_messageService'][_0x4c5faa(0x37b)]({'content':this[_0x4c5faa(0x330)]['t'](_0x4c5faa(0x2c1)),'type':K[_0x4c5faa(0x28f)][_0x4c5faa(0x482)]}),this['_permissionService']['updatePermissionPoint'](new C[(_0x4c5faa(0x4a0))](this['unitID'])['id'],!0x1)):this[_0x4c5faa(0x3fc)][_0x4c5faa(0x202)](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x0);})));let _0x1d7f46=!0x1;return this['disposeWithMe'](this[_0x4c4417(0x36d)][_0x4c4417(0x2b2)][_0x4c4417(0x1d4)](_0x20515e=>{const _0x3a6a70=_0x4c4417;_0x20515e===j[_0x3a6a70(0x4f0)]?this[_0x3a6a70(0x32f)](_0x1d7f46):_0x20515e===j[_0x3a6a70(0x3a7)]&&(_0x1d7f46=!0x0,this[_0x3a6a70(0x424)]());})),this[_0x4c4417(0x399)](this[_0x4c4417(0x36d)][_0x4c4417(0x15d)][_0x4c4417(0x1d4)](_0x4a2892=>{const _0x58b8d9=_0x4c4417;try{switch(_0x4a2892[_0x58b8d9(0x348)]){case _['CollaborationEvent']['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_['parseProtocolChangeset'](_0x4a2892[_0x58b8d9(0x387)]));break;}case _[_0x58b8d9(0x4f2)][_0x58b8d9(0x1a5)]:{this[_0x58b8d9(0x510)](_0x4a2892[_0x58b8d9(0x387)]);break;}case _['CollaborationEvent'][_0x58b8d9(0x195)]:{this[_0x58b8d9(0x43d)]();break;}case _[_0x58b8d9(0x4f2)][_0x58b8d9(0x522)]:{this[_0x58b8d9(0x191)](_0x4a2892[_0x58b8d9(0x387)][_0x58b8d9(0x2a6)][_0x58b8d9(0x341)](_0x8f9d9f=>_[_0x58b8d9(0x34e)](_0x8f9d9f)));break;}case _[_0x58b8d9(0x4f2)][_0x58b8d9(0x4dc)]:this[_0x58b8d9(0x43d)]({'isPermissionRej':!0x0});}}catch(_0xde1d6b){throw console[_0x58b8d9(0x182)]('Error\x20on\x20receiving\x20event',_0xde1d6b),_0xde1d6b;}})),this['_state'];}[_0x44ec13(0x296)](){const _0x5aac7f=_0x44ec13;this[_0x5aac7f(0x1c0)]=!0x1;}[_0x44ec13(0x282)](){const _0x5331b9=_0x44ec13;if(this[_0x5331b9(0x1c0)])throw new Error(_0x5331b9(0x394));this[_0x5331b9(0x1c0)]=!0x0;}[_0x44ec13(0x192)](_0x247b0e){const _0x449af9=_0x44ec13;this[_0x449af9(0x282)](),this['_updateState'](this[_0x449af9(0x353)]['appendMutation'](_0x247b0e)),this[_0x449af9(0x296)]();}[_0x44ec13(0x169)](_0x52b3fd){const _0x901576=_0x44ec13;if(!(_0x52b3fd[_0x901576(0x1b5)]<=this[_0x901576(0x2d9)][_0x901576(0x188)](this['unitID']))){if(this[_0x901576(0x48c)]){this['_remoteChangesetQueue']['push'](_0x52b3fd);return;}this[_0x901576(0x451)](_0x52b3fd);}}[_0x44ec13(0x14f)](){const _0x1fa5c4=_0x44ec13;this[_0x1fa5c4(0x4af)]['forEach'](_0x123f6d=>this[_0x1fa5c4(0x451)](_0x123f6d)),this[_0x1fa5c4(0x4af)]=[];}['_applyRemoteChangeset'](_0x203ff7){const _0x5976b1=_0x44ec13,_0x5c64a8=this[_0x5976b1(0x312)][_0x5976b1(0x3ec)][_0x5976b1(0x217)](this[_0x5976b1(0x312)][_0x5976b1(0x3ec)][_0x5976b1(0x44d)]()[_0x5976b1(0x2be)])(_0x203ff7[_0x5976b1(0x1cb)],null)||_0x203ff7[_0x5976b1(0x1cb)],_0x4be954={..._0x203ff7,'mutations':_0x5c64a8};this[_0x5976b1(0x282)](),this[_0x5976b1(0x41c)](this['_state']['onRemoteChangeset'](_0x4be954)),this[_0x5976b1(0x296)]();}[_0x44ec13(0x510)](_0x37ebc6){const _0x26f476=_0x44ec13;this[_0x26f476(0x282)](),this[_0x26f476(0x41c)](this[_0x26f476(0x353)]['onRemoteAck'](_0x37ebc6)),this[_0x26f476(0x296)]();}[_0x44ec13(0x43d)](_0x5962bb){const _0x327b8f=_0x44ec13;this[_0x327b8f(0x282)](),this[_0x327b8f(0x41c)](this['_state'][_0x327b8f(0x454)](_0x5962bb)),this[_0x327b8f(0x296)]();}['_onFetchMissResult'](_0x29b27f){const _0x7d311a=_0x44ec13;if(!(this['_state']instanceof $))throw new TypeError(_0x7d311a(0x3e7));const _0x21423c=_0x29b27f[_0x7d311a(0x341)](_0x3cd049=>{const _0x2bb008=_0x7d311a,_0x4dc40d=this['_compressMutationService']['interceptor'][_0x2bb008(0x217)](this[_0x2bb008(0x312)][_0x2bb008(0x3ec)][_0x2bb008(0x44d)]()['COMPRESS_MUTATION_APPLY'])(_0x3cd049[_0x2bb008(0x1cb)],null)||_0x3cd049['mutations'];return{..._0x3cd049,'mutations':_0x4dc40d};});this[_0x7d311a(0x282)](),this[_0x7d311a(0x41c)](this['_state'][_0x7d311a(0x21f)](_0x21423c)),this[_0x7d311a(0x296)]();}[_0x44ec13(0x424)](){const _0x230e55=_0x44ec13;this[_0x230e55(0x282)](),this[_0x230e55(0x41c)](this[_0x230e55(0x353)][_0x230e55(0x218)]()),this[_0x230e55(0x296)]();}[_0x44ec13(0x32f)](_0x27e136=!0x1){const _0x4af5f3=_0x44ec13;this['_lockTransition'](),this[_0x4af5f3(0x41c)](this['_state'][_0x4af5f3(0x2c2)]()),this['_unlockTransition']();const _0x55bba2=this[_0x4af5f3(0x353)];_0x27e136&&_0x55bba2 instanceof se&&(this[_0x4af5f3(0x282)](),this[_0x4af5f3(0x41c)](_0x55bba2[_0x4af5f3(0x53c)]()),this[_0x4af5f3(0x296)]());}async[_0x44ec13(0x305)](){return new Promise(_0x218e23=>{const _0x440a2d=_0x2929;this[_0x440a2d(0x36d)][_0x440a2d(0x2b2)][_0x440a2d(0x2d5)](v['take'](0x1))[_0x440a2d(0x1d4)](async _0x5511ba=>{const _0x21d12=_0x440a2d;_0x218e23(await this[_0x21d12(0x178)](_0x5511ba===j[_0x21d12(0x4f0)]));});});}['_createHandler'](){const _0x159237=_0x44ec13,_0x332df1=this[_0x159237(0x426)];return{'onStateChange':(_0x28899b,_0x705fd6)=>{const _0xa2543=_0x159237;if(_0x28899b!==this[_0xa2543(0x353)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x28899b[_0xa2543(0x4fe)]+'\x0aAfter:\x20'+_0x705fd6['status']+_0xa2543(0x2ac)+this[_0xa2543(0x353)][_0xa2543(0x4fe)]);this[_0xa2543(0x41c)](_0x705fd6);},'onSendChangeset':_0x1fd454=>{const _0x496525=_0x159237,_0x2227e0={'eventID':_[_0x496525(0x4f2)][_0x496525(0x1f2)],'data':{'unitID':_0x1fd454[_0x496525(0x426)],'unitType':this['_type'],'changeset':_0x1fd454,'memberID':this[_0x496525(0x36d)][_0x496525(0x4cd)]()}};this['session'][_0x496525(0x1ec)](_0x2227e0,this[_0x496525(0x426)]);},'onMissingChangesets':({from:_0x18ebba,to:_0x2c13dc})=>{const _0x5e14b6=_0x159237;this[_0x5e14b6(0x49d)][_0x5e14b6(0x1bb)]('[CollaborationEntity]',_0x5e14b6(0x2f5)+_0x18ebba+'\x20to\x20'+_0x2c13dc);const _0x39e1c8={'eventID':_[_0x5e14b6(0x4f2)][_0x5e14b6(0x3dd)],'data':{'unitID':_0x332df1,'unitType':this[_0x5e14b6(0x4d7)],'from':_0x18ebba,'to':_0x2c13dc}};this[_0x5e14b6(0x36d)]['send'](_0x39e1c8,this['unitID']);}};}async[_0x44ec13(0x178)](_0x4037f1){const _0x522065=_0x44ec13;var _0x1b651a,_0x5f25bf;const _0x4498f7=await this[_0x522065(0x473)][_0x522065(0x50f)](this[_0x522065(0x426)]),_0x3785ab=(_0x1b651a=_0x4498f7==null?void 0x0:_0x4498f7['mutations'])!=null?_0x1b651a:[],_0x3c3412=(_0x5f25bf=_0x4498f7==null?void 0x0:_0x4498f7['awaitingChangeset'])!=null?_0x5f25bf:null,_0x3e75f1=this['unitID'];try{this[_0x522065(0x208)](_0x3c3412,_0x3785ab);}catch(_0x3df661){this[_0x522065(0x49d)][_0x522065(0x182)](_0x3df661);}const _0xf936ad=this[_0x522065(0x343)]();if(_0x4037f1){const _0x144fdc=Ot(this[_0x522065(0x360)],_0x3e75f1,this[_0x522065(0x4d7)],_0x3c3412,_0x3785ab,_0xf936ad);return _0x144fdc instanceof H?_0x144fdc[_0x522065(0x505)]():(_0x144fdc instanceof x||_0x144fdc instanceof V)&&_0x144fdc['resend'](),_0x144fdc;}return this[_0x522065(0x360)][_0x522065(0x3be)](W,_0x3e75f1,this[_0x522065(0x4d7)],_0x3c3412,_0x3785ab,_0xf936ad);}[_0x44ec13(0x208)](_0x497286,_0x57c7c8){const _0x2ab999=_0x44ec13;var _0x21b142,_0x2c89e2;const _0x561b5f=this[_0x2ab999(0x312)][_0x2ab999(0x3ec)][_0x2ab999(0x217)](this['_compressMutationService'][_0x2ab999(0x3ec)]['getInterceptPoints']()[_0x2ab999(0x2be)]);(_0x21b142=_0x561b5f((_0x497286==null?void 0x0:_0x497286[_0x2ab999(0x1cb)])||[],null))==null||_0x21b142[_0x2ab999(0x39a)](_0x4b38a7=>this['_commandService'][_0x2ab999(0x3e6)](_0x4b38a7['id'],_0x4b38a7[_0x2ab999(0x2eb)])),(_0x2c89e2=_0x561b5f(_0x57c7c8||[],null))==null||_0x2c89e2[_0x2ab999(0x39a)](_0x2c0605=>this[_0x2ab999(0x30e)][_0x2ab999(0x3e6)](_0x2c0605['id'],_0x2c0605[_0x2ab999(0x2eb)]));}},exports[_0x44ec13(0x273)]=Ye([p(0x3,a['Inject'](a[_0x44ec13(0x4cf)])),p(0x4,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),p(0x5,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x38a)])),p(0x6,a[_0x44ec13(0x3ed)](a['LocaleService'])),p(0x7,a['Inject'](_[_0x44ec13(0x1a7)])),p(0x8,a['ILogService']),p(0x9,a[_0x44ec13(0x359)]),p(0xa,M[_0x44ec13(0x3c2)]),p(0xb,a[_0x44ec13(0x317)]),p(0xc,a['Optional'](Ee))],exports['CollaborationEntity']),exports[_0x44ec13(0x459)]=class extends exports[_0x44ec13(0x273)]{constructor(_0x5a8416,_0xce41f2,_0x49cf97,_0x5d387a,_0x43e00c,_0x481585,_0x476fb5,_0x20fd79,_0x1095d4,_0x3cd671,_0x250e9,_0x38d4af,_0x1b6265,_0x5eff2a,_0xfd8876,_0x5b357e,_0x5db6e5){const _0x4cfb84=_0x44ec13;super(_0x5a8416,_0x49cf97,_0xce41f2,_0x5d387a,_0x43e00c,_0x481585,_0x476fb5,_0x20fd79,_0x1b6265,_0x5eff2a,_0xfd8876,_0x5b357e,_0x5db6e5),this[_0x4cfb84(0x426)]=_0x5a8416,this[_0x4cfb84(0x2ed)]=_0xce41f2,this[_0x4cfb84(0x4f4)]=_0x1095d4,this[_0x4cfb84(0x34c)]=_0x3cd671,this[_0x4cfb84(0x211)]=_0x250e9,this[_0x4cfb84(0x471)]=_0x38d4af;}[_0x44ec13(0x343)](){const _0x326d87=_0x44ec13,_0x1b770d=super[_0x326d87(0x343)]();return _0x1b770d[_0x326d87(0x177)]=_0x20563e=>this['_docTransformIMECacheService']['transformIMECache'](_0x20563e),_0x1b770d[_0x326d87(0x243)]=_0x51f80b=>this[_0x326d87(0x211)][_0x326d87(0x28c)](_0x51f80b),_0x1b770d[_0x326d87(0x4b5)]=_0x4db9dd=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x4db9dd),_0x1b770d[_0x326d87(0x2a8)]=_0x2646d5=>this[_0x326d87(0x34c)][_0x326d87(0x345)](_0x2646d5),_0x1b770d;}async['_init'](){const _0x3c32c1=_0x44ec13,_0x38fa63=await super[_0x3c32c1(0x2d0)]();return this[_0x3c32c1(0x399)](this[_0x3c32c1(0x30e)][_0x3c32c1(0x526)]((_0x3b1a8a,_0x13daae)=>{const _0x29a8ac=_0x3c32c1;if(_0x3b1a8a[_0x29a8ac(0x2ed)]!==a[_0x29a8ac(0x37e)][_0x29a8ac(0x4d5)]||_0x13daae!=null&&_0x13daae[_0x29a8ac(0x267)]||_0x13daae!=null&&_0x13daae[_0x29a8ac(0x4dd)])return;const _0x4141e0=_0x3b1a8a[_0x29a8ac(0x2eb)];if((_0x4141e0==null?void 0x0:_0x4141e0['unitId'])!==this[_0x29a8ac(0x426)])return;let _0x239ab6=_0x3b1a8a;if(_0x239ab6['id']===B[_0x29a8ac(0x3b3)]['id']){const _0x4a3232=_0x239ab6[_0x29a8ac(0x2eb)];_0x239ab6={'id':B['RichTextEditingMutation']['id'],'type':a[_0x29a8ac(0x37e)]['MUTATION'],'params':{'unitId':_0x4a3232[_0x29a8ac(0x1c9)],'actions':_0x4a3232[_0x29a8ac(0x4ab)],'textRanges':null}};}const _0x2a619f=this[_0x29a8ac(0x312)][_0x29a8ac(0x3ec)]['fetchThroughInterceptors'](this[_0x29a8ac(0x312)][_0x29a8ac(0x3ec)]['getInterceptPoints']()[_0x29a8ac(0x17d)])([_0x239ab6],null)||[_0x239ab6];this[_0x29a8ac(0x192)](_0x2a619f[0x0]);})),_0x38fa63;}},exports[_0x44ec13(0x459)]=Ye([p(0x3,a['Inject'](a[_0x44ec13(0x4cf)])),p(0x4,a[_0x44ec13(0x3ed)](exports['LocalCacheService'])),p(0x5,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x38a)])),p(0x6,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)])),p(0x7,a['Inject'](_[_0x44ec13(0x1a7)])),p(0x8,a['Inject'](U['DocStateChangeManagerService'])),p(0x9,a[_0x44ec13(0x3ed)](ge)),p(0xa,a['Inject'](pe)),p(0xb,a[_0x44ec13(0x3ed)](Ge)),p(0xc,a[_0x44ec13(0x2d1)]),p(0xd,a[_0x44ec13(0x359)]),p(0xe,M['IMessageService']),p(0xf,a[_0x44ec13(0x317)]),p(0x10,a[_0x44ec13(0x1e9)](Ee))],exports['DocCollaborationEntity']),exports[_0x44ec13(0x3a0)]=class extends exports[_0x44ec13(0x273)]{constructor(_0x9ae191,_0x26b624,_0x207cc4,_0x2a45e5,_0x435306,_0x3f7c61,_0x4f5234,_0x1b4fd3,_0x4569f7,_0x4ce300,_0x564d1e,_0x2bb43d,_0x4cdd35,_0x3f03cb){const _0x1383fa=_0x44ec13;super(_0x9ae191,_0x207cc4,_0x26b624,_0x2a45e5,_0x435306,_0x3f7c61,_0x4f5234,_0x1b4fd3,_0x4ce300,_0x564d1e,_0x2bb43d,_0x4cdd35,_0x3f03cb),this[_0x1383fa(0x426)]=_0x9ae191,this[_0x1383fa(0x2ed)]=_0x26b624,this[_0x1383fa(0x2e0)]=_0x4569f7;}[_0x44ec13(0x343)](){const _0xa00a13=_0x44ec13,_0x4f68d6=super['_createHandler']();return _0x4f68d6['onTransformSelections']=_0x2e09c2=>this['_sheetTransformSelectionsService'][_0xa00a13(0x28c)](_0x2e09c2),_0x4f68d6;}async[_0x44ec13(0x2d0)](){const _0xfc4efa=_0x44ec13,_0x19ff19=await super[_0xfc4efa(0x2d0)]();return this[_0xfc4efa(0x399)](this[_0xfc4efa(0x30e)][_0xfc4efa(0x526)]((_0x5da122,_0x1d7c24)=>{const _0x3da005=_0xfc4efa;if(_0x5da122[_0x3da005(0x2ed)]!==a[_0x3da005(0x37e)][_0x3da005(0x4d5)]||_0x1d7c24!=null&&_0x1d7c24[_0x3da005(0x267)]||_0x1d7c24!=null&&_0x1d7c24[_0x3da005(0x4dd)])return;const _0x5214f4=_0x5da122[_0x3da005(0x2eb)];if((_0x5214f4==null?void 0x0:_0x5214f4[_0x3da005(0x1c9)])!==this['unitID'])return;const _0x1fb014=_0x5da122,_0x292a33=this[_0x3da005(0x312)][_0x3da005(0x3ec)][_0x3da005(0x217)](this['_compressMutationService'][_0x3da005(0x3ec)][_0x3da005(0x44d)]()[_0x3da005(0x17d)])([_0x1fb014],null)||[_0x1fb014];this[_0x3da005(0x192)](_0x292a33[0x0]);})),_0x19ff19;}},exports[_0x44ec13(0x3a0)]=Ye([p(0x3,a['Inject'](a['Injector'])),p(0x4,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x494)])),p(0x5,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x38a)])),p(0x6,a[_0x44ec13(0x3ed)](a['LocaleService'])),p(0x7,a['Inject'](_[_0x44ec13(0x1a7)])),p(0x8,a['Inject'](Ie)),p(0x9,a[_0x44ec13(0x2d1)]),p(0xa,a[_0x44ec13(0x359)]),p(0xb,M[_0x44ec13(0x3c2)]),p(0xc,a['IPermissionService']),p(0xd,a['Optional'](Ee))],exports[_0x44ec13(0x3a0)]);var Hs=Object['defineProperty'],xs=Object[_0x44ec13(0x2e1)],ks=(_0x53c9ba,_0x359557,_0x253f12,_0x2fa4dc)=>{const _0x196fc6=_0x44ec13;for(var _0x464f5d=_0x2fa4dc>0x1?void 0x0:_0x2fa4dc?xs(_0x359557,_0x253f12):_0x359557,_0x3da847=_0x53c9ba[_0x196fc6(0x3b4)]-0x1,_0x17dfc7;_0x3da847>=0x0;_0x3da847--)(_0x17dfc7=_0x53c9ba[_0x3da847])&&(_0x464f5d=(_0x2fa4dc?_0x17dfc7(_0x359557,_0x253f12,_0x464f5d):_0x17dfc7(_0x464f5d))||_0x464f5d);return _0x2fa4dc&&_0x464f5d&&Hs(_0x359557,_0x253f12,_0x464f5d),_0x464f5d;},ye=(_0x1bfd23,_0xc41d34)=>(_0x3f7ad7,_0x269534)=>_0xc41d34(_0x3f7ad7,_0x269534,_0x1bfd23);exports[_0x44ec13(0x27c)]=class extends a['RxDisposable']{constructor(_0x4a9eba,_0x79f3a9,_0x2ca2e0){const _0x512e00=_0x44ec13;super(),d(this,'_entities',new Map()),d(this,_0x512e00(0x3e2),new v['Subject']()),(this['_injector']=_0x4a9eba,this[_0x512e00(0x33d)]=_0x79f3a9,this[_0x512e00(0x2b9)]=_0x2ca2e0,this[_0x512e00(0x2d0)]());}['dispose'](){const _0x1431e5=_0x44ec13;super[_0x1431e5(0x184)](),this[_0x1431e5(0x164)][_0x1431e5(0x39a)](_0x555631=>_0x555631[_0x1431e5(0x184)]()),this['_entities'][_0x1431e5(0x3e1)]();}[_0x44ec13(0x53a)](_0x469630){const _0x22c86a=_0x44ec13;var _0x19c8d1;return(_0x19c8d1=this[_0x22c86a(0x164)][_0x22c86a(0x48d)](_0x469630))!=null?_0x19c8d1:null;}[_0x44ec13(0x1d7)](_0x118eab){const _0x537431=_0x44ec13,_0x2ea96d=this[_0x537431(0x53a)](_0x118eab);return _0x2ea96d?v['of'](_0x2ea96d):this[_0x537431(0x3e2)][_0x537431(0x2d5)](E[_0x537431(0x1ee)](_0x46f3fe=>_0x46f3fe[_0x537431(0x426)]===_0x118eab));}[_0x44ec13(0x2d0)](){const _0x3ccb9c=_0x44ec13;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x3ccb9c(0x1c1)][_0x3ccb9c(0x420)])['pipe'](v[_0x3ccb9c(0x441)](this[_0x3ccb9c(0x350)]),E[_0x3ccb9c(0x230)](0x10))[_0x3ccb9c(0x1d4)](async _0x197e56=>{const _0x440faf=_0x3ccb9c,_0x477bf4=_0x197e56[_0x440faf(0x4be)](),_0x9de57=await this[_0x440faf(0x35a)](_0x477bf4,A[_0x440faf(0x420)]);this['_entities'][_0x440faf(0x47a)](_0x477bf4,_0x9de57);}),this['_univerInstanceService'][_0x3ccb9c(0x455)](a[_0x3ccb9c(0x1c1)][_0x3ccb9c(0x344)])[_0x3ccb9c(0x2d5)](v[_0x3ccb9c(0x441)](this['dispose$']),E[_0x3ccb9c(0x230)](0x10))['pipe'](E[_0x3ccb9c(0x1ee)](_0x35e28b=>!_0x35e28b[_0x3ccb9c(0x4be)]()['startsWith']('__')))[_0x3ccb9c(0x1d4)](async _0x2f1493=>{const _0x304036=_0x3ccb9c,_0x300b01=_0x2f1493[_0x304036(0x4be)](),_0x4ab77b=await this[_0x304036(0x35a)](_0x300b01,A[_0x304036(0x344)]);this[_0x304036(0x164)][_0x304036(0x47a)](_0x300b01,_0x4ab77b);}),v[_0x3ccb9c(0x3c1)](this['_univerInstanceService'][_0x3ccb9c(0x1cf)](a[_0x3ccb9c(0x1c1)][_0x3ccb9c(0x420)]),this[_0x3ccb9c(0x2b9)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](v[_0x3ccb9c(0x441)](this[_0x3ccb9c(0x350)]))['subscribe'](_0x5a3d39=>{const _0x26e225=_0x3ccb9c,_0x4e2afb=_0x5a3d39[_0x26e225(0x4be)](),_0x1103b1=this[_0x26e225(0x164)][_0x26e225(0x48d)](_0x4e2afb);_0x1103b1&&(_0x1103b1[_0x26e225(0x184)](),this[_0x26e225(0x164)][_0x26e225(0x20e)](_0x4e2afb));});}async[_0x44ec13(0x35a)](_0x274a91,_0x24ab58){const _0x1f2291=_0x44ec13,_0x327907=await this[_0x1f2291(0x33d)][_0x1f2291(0x245)](_0x274a91),_0x14f3a5=this[_0x1f2291(0x360)]['createInstance'](this[_0x1f2291(0x149)](_0x24ab58),_0x274a91,_0x24ab58,_0x327907);return await _0x14f3a5[_0x1f2291(0x144)](),this[_0x1f2291(0x3e2)][_0x1f2291(0x4a4)](_0x14f3a5),_0x14f3a5;}[_0x44ec13(0x149)](_0x54d062){const _0x5f24a9=_0x44ec13;switch(_0x54d062){case A['UNIVER_DOC']:return exports['DocCollaborationEntity'];case A[_0x5f24a9(0x420)]:return exports[_0x5f24a9(0x3a0)];default:throw new Error(_0x5f24a9(0x52c)+_0x54d062);}}},exports[_0x44ec13(0x27c)]=ks([ye(0x0,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),ye(0x1,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x4e1)])),ye(0x2,a['IUniverInstanceService'])],exports[_0x44ec13(0x27c)]);const it=[_0x44ec13(0x247),_0x44ec13(0x13f),_0x44ec13(0x430),_0x44ec13(0x450),_0x44ec13(0x2bf),'gold400'];class Ke extends a[_0x44ec13(0x209)]{constructor(){const _0x4e53e2=_0x44ec13;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x4e53e2(0x487),0x0);}[_0x44ec13(0x3a2)](_0x10d3c5){const _0xb1400e=_0x44ec13;if(this[_0xb1400e(0x4ae)][_0xb1400e(0x163)](_0x10d3c5))return this['_assignedColors']['get'](_0x10d3c5);const _0x24823d=it[this[_0xb1400e(0x487)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%it[_0xb1400e(0x3b4)],this[_0xb1400e(0x4ae)][_0xb1400e(0x47a)](_0x10d3c5,_0x24823d),_0x24823d;}}var Bs=Object[_0x44ec13(0x2ec)],Vs=Object['getOwnPropertyDescriptor'],Fs=(_0x26dbda,_0x5c2cd3,_0xa03b2f,_0x583a7d)=>{const _0x4e0ab3=_0x44ec13;for(var _0x31c9e3=_0x583a7d>0x1?void 0x0:_0x583a7d?Vs(_0x5c2cd3,_0xa03b2f):_0x5c2cd3,_0x2e5bf0=_0x26dbda[_0x4e0ab3(0x3b4)]-0x1,_0x17a893;_0x2e5bf0>=0x0;_0x2e5bf0--)(_0x17a893=_0x26dbda[_0x2e5bf0])&&(_0x31c9e3=(_0x583a7d?_0x17a893(_0x5c2cd3,_0xa03b2f,_0x31c9e3):_0x17a893(_0x31c9e3))||_0x31c9e3);return _0x583a7d&&_0x31c9e3&&Bs(_0x5c2cd3,_0xa03b2f,_0x31c9e3),_0x31c9e3;},Z=(_0x357cd1,_0x21413a)=>(_0x26bde3,_0x58bd94)=>_0x21413a(_0x26bde3,_0x58bd94,_0x357cd1);const Ws=0x12c,Gs=0x64,Ys=()=>{let _0x496e5a=[],_0x115173=!0x1;return _0x4cd2f9=>{_0x496e5a['push'](_0x4cd2f9),_0x115173||(_0x115173=!0x0,setTimeout(()=>{const _0x11c178=_0x2929;_0x496e5a[_0x11c178(0x39a)](_0x21238f=>_0x21238f()),_0x496e5a=[],_0x115173=!0x1;}));};};let je=class extends a[_0x44ec13(0x4c6)]{constructor(_0x25b521,_0x5208fb,_0x316629,_0x7bdf31,_0x182358,_0x372286,_0xd48772,_0x33e5cd){const _0x481de7=_0x44ec13;super(),d(this,_0x481de7(0x2ad),!0x1),d(this,_0x481de7(0x2d0),!0x1),d(this,_0x481de7(0x480),new v[(_0x481de7(0x362))](new Map())),d(this,'cursorInfo$',this[_0x481de7(0x480)][_0x481de7(0x439)]()),d(this,_0x481de7(0x1a3),new v[(_0x481de7(0x362))]([])),d(this,_0x481de7(0x515),this['_roomMembers$'][_0x481de7(0x2d5)](v[_0x481de7(0x33f)](Ws))),d(this,_0x481de7(0x1c5),ke((_0x2561e4,_0x41cbb5)=>{const _0x1af15a=_0x481de7,_0x2cd2dc={'eventID':_[_0x1af15a(0x4f2)][_0x1af15a(0x253)],'data':{'unitID':this[_0x1af15a(0x426)],'memberID':this['_session'][_0x1af15a(0x4cd)](),'selection':Je['serializeRangeWithSheet'](_0x2561e4,_0x41cbb5[_0x1af15a(0x301)])}};this[_0x1af15a(0x21e)][_0x1af15a(0x1ec)](_0x2cd2dc,this[_0x1af15a(0x426)]);},Gs)),(this[_0x481de7(0x426)]=_0x25b521,this[_0x481de7(0x21e)]=_0x5208fb,this['_injector']=_0x316629,this[_0x481de7(0x49f)]=_0x7bdf31,this['_memberService']=_0x182358,this[_0x481de7(0x2b9)]=_0x372286,this['_commandService']=_0xd48772,this[_0x481de7(0x292)]=_0x33e5cd);}get[_0x44ec13(0x464)](){const _0x47f09d=_0x44ec13;return this[_0x47f09d(0x480)][_0x47f09d(0x2ba)]();}get[_0x44ec13(0x24c)](){const _0x4e9fb6=_0x44ec13;return this[_0x4e9fb6(0x1a3)][_0x4e9fb6(0x2ba)]();}[_0x44ec13(0x184)](){const _0x9c6bf5=_0x44ec13;super['dispose'](),this[_0x9c6bf5(0x480)]['next'](new Map()),this[_0x9c6bf5(0x480)]['complete'](),this['_roomMembers$'][_0x9c6bf5(0x4a4)]([]),this[_0x9c6bf5(0x1a3)][_0x9c6bf5(0x159)]();}[_0x44ec13(0x144)](){const _0xea6746=_0x44ec13;this[_0xea6746(0x2d0)]||(this[_0xea6746(0x2d0)]=!0x0,this[_0xea6746(0x21e)][_0xea6746(0x2b2)][_0xea6746(0x2d5)](v[_0xea6746(0x441)](this[_0xea6746(0x350)]))[_0xea6746(0x1d4)](_0x2fefdd=>{const _0x4aacca=_0xea6746;_0x2fefdd===j[_0x4aacca(0x4f0)]?this[_0x4aacca(0x32f)]():this[_0x4aacca(0x424)]();}),this[_0xea6746(0x21e)][_0xea6746(0x15d)][_0xea6746(0x2d5)](v['takeUntil'](this['dispose$']))[_0xea6746(0x1d4)](_0x33a6e9=>{const _0x8dd94c=_0xea6746,_0x148ce6=_0x33a6e9[_0x8dd94c(0x348)];_0x148ce6===_[_0x8dd94c(0x4f2)][_0x8dd94c(0x253)]&&this[_0x8dd94c(0x140)](_0x33a6e9),_0x148ce6===_[_0x8dd94c(0x4f2)][_0x8dd94c(0x523)]&&this[_0x8dd94c(0x32e)](_0x33a6e9);}),this[_0xea6746(0x175)](),this['disposeWithMe'](this[_0xea6746(0x30e)][_0xea6746(0x526)](_0x564cce=>{const _0x15575=_0xea6746;if(this[_0x15575(0x2ad)]&&_0x564cce['id']===C[_0x15575(0x3d6)]['id']&&_0x564cce[_0x15575(0x2eb)][_0x15575(0x1c9)]===this[_0x15575(0x426)]){const _0x5304f5=_0x564cce[_0x15575(0x2eb)];this[_0x15575(0x1c5)](_0x5304f5[_0x15575(0x27e)],_0x5304f5[_0x15575(0x22c)][0x0]);}})));}[_0x44ec13(0x140)](_0x57c4db){const _0xc0f323=_0x44ec13;var _0x1118b9,_0x5d910e;const {memberID:_0x8f0012,selection:_0x412ea5}=_0x57c4db[_0xc0f323(0x387)],{sheetName:_0x5d0e82,range:_0x542c9b}=Je[_0xc0f323(0x4a8)](_0x412ea5),_0x5c1d09={'name':(_0x5d910e=(_0x1118b9=this[_0xc0f323(0x2bd)][_0xc0f323(0x1fe)](this[_0xc0f323(0x426)],_0x8f0012))==null?void 0x0:_0x1118b9[_0xc0f323(0x48e)])!=null?_0x5d910e:_0xc0f323(0x37c),'range':this[_0xc0f323(0x257)](_0x5d0e82,_0x542c9b),'sheetID':_0x5d0e82,'color':this[_0xc0f323(0x49f)][_0xc0f323(0x3a2)](_0x8f0012),'selection':_0x412ea5},_0x2340aa=this[_0xc0f323(0x464)];_0x2340aa[_0xc0f323(0x47a)](_0x8f0012,_0x5c1d09),this[_0xc0f323(0x480)][_0xc0f323(0x4a4)](_0x2340aa);}[_0x44ec13(0x32e)](_0x48b632){const _0x34016a=_0x44ec13,{memberID:_0x4860ea}=_0x48b632[_0x34016a(0x387)],_0x17d93d=this[_0x34016a(0x464)];_0x17d93d[_0x34016a(0x20e)](_0x4860ea),this[_0x34016a(0x480)]['next'](_0x17d93d);}[_0x44ec13(0x257)](_0x4e39b2,_0x17d259){const _0x544160=_0x44ec13;var _0x101f8f,_0x535296;const _0x42d531=(_0x535296=(_0x101f8f=this[_0x544160(0x2b9)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x101f8f[_0x544160(0x235)](_0x4e39b2))==null?void 0x0:_0x535296[_0x544160(0x2a3)]();return(_0x42d531==null?void 0x0:_0x42d531[_0x544160(0x512)](_0x28cf9=>a[_0x544160(0x1e6)][_0x544160(0x3bf)](_0x28cf9,_0x17d259)))||_0x17d259;}[_0x44ec13(0x175)](){const _0x280ac9=_0x44ec13,_0x52ccd2=new a[(_0x280ac9(0x402))](),_0x1d491e=Ys(),_0x242baf=()=>{const _0x4544f1=_0x280ac9;_0x52ccd2[_0x4544f1(0x184)]();const _0x2b611f=(_0x12efd5,_0xff48bd,_0x4b5b74,_0x25693c)=>{const _0x348cbe=_0x4544f1;let _0x29baf6=[];switch(_0x12efd5['id']){case C[_0x348cbe(0x2c5)]['DeleteRangeMoveLeftCommandId']:{_0x29baf6=C[_0x348cbe(0x283)](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)]['DeleteRangeMoveUpCommandId']:{_0x29baf6=C[_0x348cbe(0x433)](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)][_0x348cbe(0x2f2)]:{_0x29baf6=C[_0x348cbe(0x36e)](_0x12efd5,_0x25693c);break;}case C['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x29baf6=C[_0x348cbe(0x295)](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)][_0x348cbe(0x174)]:{_0x29baf6=C['handleInsertRangeMoveRight'](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)][_0x348cbe(0x2f0)]:{_0x29baf6=C[_0x348cbe(0x372)](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)][_0x348cbe(0x231)]:{_0x29baf6=C[_0x348cbe(0x17f)](_0x12efd5,_0x25693c);break;}case C[_0x348cbe(0x2c5)]['RemoveColCommandId']:{_0x29baf6=C[_0x348cbe(0x21b)](_0x12efd5,_0x25693c);break;}case C['EffectRefRangId'][_0x348cbe(0x165)]:{_0x29baf6=C[_0x348cbe(0x3f7)](_0x12efd5,_0x25693c);break;}}const _0xd58645=C['runRefRangeMutations'](_0x29baf6,_0x25693c),_0x5618c5=this[_0x348cbe(0x464)]['get'](_0xff48bd);if(_0x5618c5&&_0xd58645){const _0x383149={..._0x5618c5,'range':_0xd58645};this[_0x348cbe(0x464)][_0x348cbe(0x47a)](_0xff48bd,_0x383149),_0x1d491e(()=>{const _0x23c2e9=_0x348cbe,_0x3891af=this[_0x23c2e9(0x292)][_0x23c2e9(0x23d)](_0xd58645,_0x2c0eb9=>(_0x3891af[_0x23c2e9(0x184)](),_0x2b611f(_0x2c0eb9,_0xff48bd,_0x4b5b74,_0xd58645)));_0x52ccd2[_0x23c2e9(0x37a)](_0x3891af);});}return{'redos':[],'undos':[]};};this[_0x4544f1(0x464)][_0x4544f1(0x39a)]((_0x137fb4,_0x4a479d)=>{const _0x1f8000=_0x4544f1,{range:_0x2f0438,sheetID:_0x5ca502}=_0x137fb4,_0x2b316f=this[_0x1f8000(0x292)][_0x1f8000(0x23d)](_0x2f0438,_0x490fae=>(_0x2b316f['dispose'](),_0x2b611f(_0x490fae,_0x4a479d,_0x5ca502,_0x2f0438)));_0x52ccd2[_0x1f8000(0x37a)](_0x2b316f);});};this[_0x280ac9(0x399)](a[_0x280ac9(0x1ef)](this[_0x280ac9(0x480)][_0x280ac9(0x1d4)](()=>{_0x242baf();})));}[_0x44ec13(0x32f)](){const _0x248aa5=_0x44ec13;var _0x5b327a,_0x3148f6;if(this[_0x248aa5(0x2ad)]=!0x0,((_0x5b327a=this['_univerInstanceService'][_0x248aa5(0x2fa)]())==null?void 0x0:_0x5b327a['getUnitId']())!==this[_0x248aa5(0x426)])return;const _0x552cd8=(_0x3148f6=this[_0x248aa5(0x360)][_0x248aa5(0x48d)](C[_0x248aa5(0x41b)])['getCurrentSelections']())==null?void 0x0:_0x3148f6[0x0],_0x58816b=this[_0x248aa5(0x2b9)][_0x248aa5(0x396)](a['UniverInstanceType'][_0x248aa5(0x420)])[_0x248aa5(0x219)]();_0x552cd8&&_0x58816b&&this['_updateLocalCursor'](_0x58816b[_0x248aa5(0x1b6)](),_0x552cd8);}[_0x44ec13(0x424)](){this['_online']=!0x1;}};je=Fs([Z(0x2,a[_0x44ec13(0x3ed)](a['Injector'])),Z(0x3,a[_0x44ec13(0x3ed)](Ke)),Z(0x4,a[_0x44ec13(0x3ed)](X)),Z(0x5,a['IUniverInstanceService']),Z(0x6,a[_0x44ec13(0x359)]),Z(0x7,a[_0x44ec13(0x3ed)](C[_0x44ec13(0x1d6)]))],je);var Ks=Object[_0x44ec13(0x2ec)],Xs=Object[_0x44ec13(0x2e1)],qs=(_0x5df898,_0x5c5793,_0x3844ae,_0x1513a7)=>{const _0x358c7d=_0x44ec13;for(var _0x395908=_0x1513a7>0x1?void 0x0:_0x1513a7?Xs(_0x5c5793,_0x3844ae):_0x5c5793,_0x45c0a4=_0x5df898[_0x358c7d(0x3b4)]-0x1,_0x5c823b;_0x45c0a4>=0x0;_0x45c0a4--)(_0x5c823b=_0x5df898[_0x45c0a4])&&(_0x395908=(_0x1513a7?_0x5c823b(_0x5c5793,_0x3844ae,_0x395908):_0x5c823b(_0x395908))||_0x395908);return _0x1513a7&&_0x395908&&Ks(_0x5c5793,_0x3844ae,_0x395908),_0x395908;},Y=(_0x48a258,_0x40c63f)=>(_0x369c63,_0x5ad00b)=>_0x40c63f(_0x369c63,_0x5ad00b,_0x48a258);const Js=0x12c,zs=0x64;let $e=class extends a['RxDisposable']{constructor(_0x48c4ec,_0x437457,_0x2c444a,_0x34665e,_0x59e132,_0x1d496b,_0x42c952,_0x215211,_0x182682){const _0x52df2a=_0x44ec13;super(),d(this,_0x52df2a(0x2ad),!0x1),d(this,_0x52df2a(0x2d0),!0x1),d(this,'_cursorInfo$',new v['BehaviorSubject'](new Map())),d(this,'cursorInfo$',this[_0x52df2a(0x480)][_0x52df2a(0x439)]()),d(this,_0x52df2a(0x1a3),new v[(_0x52df2a(0x362))]([])),d(this,'roomMembers$',this[_0x52df2a(0x1a3)][_0x52df2a(0x2d5)](v['debounceTime'](Js))),d(this,_0x52df2a(0x1c5),ke(_0x3e5ece=>{const _0x482489=_0x52df2a,_0x3a75d2={'eventID':_[_0x482489(0x4f2)][_0x482489(0x253)],'data':{'unitID':this[_0x482489(0x426)],'memberID':this[_0x482489(0x21e)][_0x482489(0x4cd)](),'selection':Rt(_0x3e5ece)}};this['_session']['send'](_0x3a75d2,this[_0x482489(0x426)]);},zs)),(this[_0x52df2a(0x426)]=_0x48c4ec,this[_0x52df2a(0x21e)]=_0x437457,this['_injector']=_0x2c444a,this[_0x52df2a(0x49f)]=_0x34665e,this[_0x52df2a(0x2bd)]=_0x59e132,this[_0x52df2a(0x492)]=_0x1d496b,this[_0x52df2a(0x4cc)]=_0x42c952,this[_0x52df2a(0x2b9)]=_0x215211,this[_0x52df2a(0x30e)]=_0x182682);}get['cursorInfo'](){const _0x45142a=_0x44ec13;return this[_0x45142a(0x480)][_0x45142a(0x2ba)]();}get[_0x44ec13(0x24c)](){const _0xfac99e=_0x44ec13;return this[_0xfac99e(0x1a3)][_0xfac99e(0x2ba)]();}['dispose'](){const _0xcaf2b1=_0x44ec13;super['dispose'](),this[_0xcaf2b1(0x480)][_0xcaf2b1(0x4a4)](new Map()),this['_cursorInfo$'][_0xcaf2b1(0x159)](),this[_0xcaf2b1(0x1a3)][_0xcaf2b1(0x4a4)]([]),this[_0xcaf2b1(0x1a3)]['complete']();}[_0x44ec13(0x144)](){const _0x55d934=_0x44ec13;this[_0x55d934(0x2d0)]||(this['_init']=!0x0,this['_session'][_0x55d934(0x2b2)][_0x55d934(0x2d5)](v['takeUntil'](this[_0x55d934(0x350)]))['subscribe'](_0x3549b2=>{const _0x182565=_0x55d934;_0x3549b2===j[_0x182565(0x4f0)]?this['_toggleOnline']():this[_0x182565(0x424)]();}),this[_0x55d934(0x21e)][_0x55d934(0x15d)][_0x55d934(0x2d5)](v[_0x55d934(0x441)](this[_0x55d934(0x350)]))[_0x55d934(0x1d4)](_0x38305a=>{const _0x39ba22=_0x55d934,_0x5d03ef=_0x38305a['eventID'];_0x5d03ef===_['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x38305a),_0x5d03ef===_['CollaborationEvent'][_0x39ba22(0x523)]&&this[_0x39ba22(0x32e)](_0x38305a);}),this[_0x55d934(0x399)](this['_commandService'][_0x55d934(0x526)](_0xc9d7a7=>{const _0xeeb6bc=_0x55d934,_0x37d7e8=_0xc9d7a7['params'];_0x37d7e8!=null&&this[_0xeeb6bc(0x2ad)]&&_0xc9d7a7['id']===B[_0xeeb6bc(0x506)]['id']&&_0x37d7e8[_0xeeb6bc(0x1c9)]===this[_0xeeb6bc(0x426)]&&_0x37d7e8[_0xeeb6bc(0x468)]===!0x1&&this[_0xeeb6bc(0x1c5)](_0x37d7e8[_0xeeb6bc(0x1dc)]);})),this[_0x55d934(0x492)]['collabCursorState$']['pipe'](v[_0x55d934(0x441)](this[_0x55d934(0x350)]))[_0x55d934(0x1d4)](_0xc1328f=>{const _0x25d950=_0x55d934;if((_0xc1328f==null?void 0x0:_0xc1328f[_0x25d950(0x426)])!==this[_0x25d950(0x426)])return;const _0x375111={'eventID':_[_0x25d950(0x4f2)][_0x25d950(0x253)],'data':_0xc1328f};this[_0x25d950(0x140)](_0x375111);}),this[_0x55d934(0x399)](this[_0x55d934(0x30e)][_0x55d934(0x526)](_0x333eee=>{const _0x418da4=_0x55d934;if(_0x333eee[_0x418da4(0x2eb)]==null)return;const _0x394830=_0x333eee[_0x418da4(0x2eb)];if(_0x333eee['id']!==B[_0x418da4(0x3b3)]['id']||_0x394830[_0x418da4(0x1c9)]!==this[_0x418da4(0x426)])return;const _0x599eb0={'id':_0x418da4(0x215),'params':_0x394830},_0x1bd8df=this[_0x418da4(0x464)];for(const [_0x227aff,_0x26c00c]of _0x1bd8df){const _0x1c6050={'id':_0x418da4(0x215),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x26c00c['ranges']}},_0x584805=this[_0x418da4(0x4cc)][_0x418da4(0x19a)](_0x599eb0,_0x1c6050,!0x1);if(_[_0x418da4(0x41a)](_0x584805))throw _0x584805['error'];_0x1bd8df[_0x418da4(0x47a)](_0x227aff,{..._0x26c00c,'ranges':_0x584805[_0x418da4(0x2f1)][_0x418da4(0x2eb)][_0x418da4(0x442)]});}queueMicrotask(()=>{const _0x614053=_0x418da4;this[_0x614053(0x480)]['next'](_0x1bd8df);});})));}[_0x44ec13(0x140)](_0x5b350b){const _0xee3e39=_0x44ec13;var _0x410c91,_0x159b7c;const {memberID:_0x5a8ea7,selection:_0x49867a}=_0x5b350b[_0xee3e39(0x387)],_0x1473b4=Ds(_0x49867a),_0x3ea828=(_0x159b7c=(_0x410c91=this[_0xee3e39(0x2bd)][_0xee3e39(0x1fe)](this[_0xee3e39(0x426)],_0x5a8ea7))==null?void 0x0:_0x410c91[_0xee3e39(0x48e)])!=null?_0x159b7c:_0xee3e39(0x37c),_0x222ec4={'color':this[_0xee3e39(0x49f)][_0xee3e39(0x3a2)](_0x5a8ea7),'name':_0x3ea828,'ranges':_0x1473b4},_0x4013fc=this['cursorInfo'];_0x4013fc[_0xee3e39(0x47a)](_0x5a8ea7,_0x222ec4),this[_0xee3e39(0x480)][_0xee3e39(0x4a4)](_0x4013fc);}[_0x44ec13(0x32e)](_0x636220){const _0x4249c2=_0x44ec13,{memberID:_0x15fe46}=_0x636220[_0x4249c2(0x387)],_0x434238=this['cursorInfo'];_0x434238[_0x4249c2(0x20e)](_0x15fe46),this['_cursorInfo$'][_0x4249c2(0x4a4)](_0x434238);}['_toggleOnline'](){const _0x2b0f0f=_0x44ec13;var _0x5ce8cb;if(this['_online']=!0x0,((_0x5ce8cb=this['_univerInstanceService'][_0x2b0f0f(0x2fa)]())==null?void 0x0:_0x5ce8cb[_0x2b0f0f(0x4be)]())!==this[_0x2b0f0f(0x426)])return;const _0x2e95f6=this[_0x2b0f0f(0x360)][_0x2b0f0f(0x48d)](B['DocSelectionManagerService'])[_0x2b0f0f(0x322)]();Array[_0x2b0f0f(0x369)](_0x2e95f6)&&_0x2e95f6['length']>0x0&&this[_0x2b0f0f(0x1c5)](_0x2e95f6);}[_0x44ec13(0x424)](){const _0x198e9d=_0x44ec13;this[_0x198e9d(0x2ad)]=!0x1;}};$e=qs([Y(0x2,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),Y(0x3,a[_0x44ec13(0x3ed)](Ke)),Y(0x4,a[_0x44ec13(0x3ed)](X)),Y(0x5,a['Inject'](Ge)),Y(0x6,_[_0x44ec13(0x275)]),Y(0x7,a[_0x44ec13(0x4e2)]),Y(0x8,a[_0x44ec13(0x359)])],$e);var Zs=Object[_0x44ec13(0x2ec)],Qs=Object[_0x44ec13(0x2e1)],ei=(_0x4d1ed3,_0x1a19bb,_0x2b4029,_0x3e0f12)=>{const _0x5baac6=_0x44ec13;for(var _0x13cb29=_0x3e0f12>0x1?void 0x0:_0x3e0f12?Qs(_0x1a19bb,_0x2b4029):_0x1a19bb,_0x1e04f0=_0x4d1ed3[_0x5baac6(0x3b4)]-0x1,_0x11b84d;_0x1e04f0>=0x0;_0x1e04f0--)(_0x11b84d=_0x4d1ed3[_0x1e04f0])&&(_0x13cb29=(_0x3e0f12?_0x11b84d(_0x1a19bb,_0x2b4029,_0x13cb29):_0x11b84d(_0x13cb29))||_0x13cb29);return _0x3e0f12&&_0x13cb29&&Zs(_0x1a19bb,_0x2b4029,_0x13cb29),_0x13cb29;},Pe=(_0x2aad36,_0x17c7c7)=>(_0x2a0e4c,_0x514915)=>_0x17c7c7(_0x2a0e4c,_0x514915,_0x2aad36);let te=class extends a[_0x44ec13(0x4c6)]{constructor(_0x4d4233,_0x1b8eb4,_0x9d369){const _0x1103f4=_0x44ec13;super(),d(this,_0x1103f4(0x164),new Map()),d(this,'_entityInit$',new v[(_0x1103f4(0x3da))]()),(this[_0x1103f4(0x2b9)]=_0x4d4233,this['_injector']=_0x1b8eb4,this[_0x1103f4(0x33d)]=_0x9d369,this[_0x1103f4(0x2d0)]());}[_0x44ec13(0x184)](){const _0x79cc53=_0x44ec13;super[_0x79cc53(0x184)](),this[_0x79cc53(0x3e2)][_0x79cc53(0x159)](),this['_entities']['forEach'](_0x3cd567=>_0x3cd567[_0x79cc53(0x184)]());}[_0x44ec13(0x51a)](_0x2de0a8){const _0x154b6d=_0x44ec13;return this[_0x154b6d(0x164)][_0x154b6d(0x163)](_0x2de0a8)?this[_0x154b6d(0x164)]['get'](_0x2de0a8)[_0x154b6d(0x20b)]:this[_0x154b6d(0x3e2)]['pipe'](v[_0x154b6d(0x1ee)](_0x4479f0=>_0x4479f0[_0x154b6d(0x426)]===_0x2de0a8),v[_0x154b6d(0x335)](_0xba1884=>_0xba1884[_0x154b6d(0x20b)]));}[_0x44ec13(0x2d0)](){const _0x15cfe8=_0x44ec13;this[_0x15cfe8(0x2b9)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x15cfe8(0x420)])[_0x15cfe8(0x2d5)](v['takeUntil'](this[_0x15cfe8(0x350)]))[_0x15cfe8(0x1d4)](async _0x3ab8e5=>{const _0x531621=_0x15cfe8,_0x809c1b=_0x3ab8e5['getUnitId'](),_0x4bbd0c=await this[_0x531621(0x1f4)](_0x809c1b);this['_entityInit$'][_0x531621(0x4a4)](_0x4bbd0c),this[_0x531621(0x164)][_0x531621(0x47a)](_0x809c1b,_0x4bbd0c);}),this[_0x15cfe8(0x2b9)][_0x15cfe8(0x455)](a[_0x15cfe8(0x1c1)]['UNIVER_DOC'])['pipe'](v[_0x15cfe8(0x441)](this[_0x15cfe8(0x350)]))['pipe'](v[_0x15cfe8(0x1ee)](_0x5878a3=>!_0x5878a3[_0x15cfe8(0x4be)]()[_0x15cfe8(0x391)]('__')))['subscribe'](async _0x596a94=>{const _0x51cbd3=_0x15cfe8,_0x171677=_0x596a94[_0x51cbd3(0x4be)](),_0x457917=await this[_0x51cbd3(0x2d7)](_0x171677);this['_entityInit$'][_0x51cbd3(0x4a4)](_0x457917),this[_0x51cbd3(0x164)][_0x51cbd3(0x47a)](_0x171677,_0x457917);}),v['merge'](this['_univerInstanceService'][_0x15cfe8(0x1cf)](a[_0x15cfe8(0x1c1)][_0x15cfe8(0x344)]),this[_0x15cfe8(0x2b9)][_0x15cfe8(0x1cf)](a['UniverInstanceType'][_0x15cfe8(0x420)]))[_0x15cfe8(0x2d5)](v[_0x15cfe8(0x441)](this[_0x15cfe8(0x350)]))[_0x15cfe8(0x1d4)](_0x200683=>{const _0x3b613d=_0x15cfe8,_0x32e385=_0x200683['getUnitId'](),_0x53527f=this[_0x3b613d(0x164)][_0x3b613d(0x48d)](_0x32e385);_0x53527f&&(_0x53527f['dispose'](),this[_0x3b613d(0x164)][_0x3b613d(0x20e)](_0x32e385));});}async[_0x44ec13(0x1f4)](_0x49df43){const _0x3d7a54=_0x44ec13,_0xeb743a=await this[_0x3d7a54(0x33d)][_0x3d7a54(0x245)](_0x49df43),_0x38cb57=this['_injector'][_0x3d7a54(0x3be)](je,_0x49df43,_0xeb743a);return _0x38cb57[_0x3d7a54(0x144)](),_0x38cb57;}async['_startDocCollabCursor'](_0x55987c){const _0x5451cf=_0x44ec13,_0x361e84=await this['_collabSessionService'][_0x5451cf(0x245)](_0x55987c),_0x21736a=this[_0x5451cf(0x360)][_0x5451cf(0x3be)]($e,_0x55987c,_0x361e84);return _0x21736a[_0x5451cf(0x144)](),_0x21736a;}};te=ei([a[_0x44ec13(0x463)](a[_0x44ec13(0x30b)]['Starting'],te),Pe(0x0,a[_0x44ec13(0x4e2)]),Pe(0x1,a['Inject'](a[_0x44ec13(0x4cf)])),Pe(0x2,a[_0x44ec13(0x3ed)](exports[_0x44ec13(0x4e1)]))],te);const _e=0x14,nt=0xc8,we=0x4,ti=0x5;function si(_0x8b3e18,_0x2a2ad1){const _0x16b66d=_0x44ec13;let {radius:_0x38c0d6,width:_0x142683,height:_0x4fbe4e}=_0x2a2ad1;_0x38c0d6=_0x38c0d6!=null?_0x38c0d6:0x0,_0x142683=_0x142683!=null?_0x142683:0x1e,_0x4fbe4e=_0x4fbe4e!=null?_0x4fbe4e:0x1e;let _0x4d0942=0x0,_0x31ddd3=0x0,_0x16e8ac=0x0;_0x4d0942=_0x31ddd3=_0x16e8ac=Math[_0x16b66d(0x181)](_0x38c0d6,_0x142683/0x2,_0x4fbe4e/0x2),_0x8b3e18[_0x16b66d(0x1ea)](),_0x8b3e18[_0x16b66d(0x32c)](_0x4d0942,0x0),_0x8b3e18['lineTo'](_0x142683-_0x31ddd3,0x0),_0x8b3e18[_0x16b66d(0x1ae)](_0x142683-_0x31ddd3,_0x31ddd3,_0x31ddd3,Math['PI']*0x3/0x2,0x0,!0x1),_0x8b3e18[_0x16b66d(0x1cd)](_0x142683,_0x4fbe4e-_0x16e8ac),_0x8b3e18[_0x16b66d(0x1ae)](_0x142683-_0x16e8ac,_0x4fbe4e-_0x16e8ac,_0x16e8ac,0x0,Math['PI']/0x2,!0x1),_0x8b3e18['lineTo'](0x0,_0x4fbe4e),_0x8b3e18[_0x16b66d(0x1cd)](0x0,_0x4d0942),_0x8b3e18[_0x16b66d(0x1ae)](_0x4d0942,_0x4d0942,_0x4d0942,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x8b3e18['closePath'](),_0x2a2ad1[_0x16b66d(0x3d8)]&&(_0x8b3e18[_0x16b66d(0x332)](),_0x8b3e18[_0x16b66d(0x4f8)]=_0x2a2ad1[_0x16b66d(0x3d8)],_0x2a2ad1[_0x16b66d(0x2c7)]===_0x16b66d(0x1b7)?_0x8b3e18['fill']('evenodd'):_0x8b3e18[_0x16b66d(0x3d8)](),_0x8b3e18[_0x16b66d(0x307)]());}class be extends R[_0x44ec13(0x385)]{constructor(_0x4f1846,_0xa1b988){const _0xb67c1e=_0x44ec13;super(_0x4f1846,_0xa1b988),d(this,_0xb67c1e(0x493)),d(this,'text'),(this['color']=_0xa1b988==null?void 0x0:_0xa1b988[_0xb67c1e(0x493)],this[_0xb67c1e(0x4b6)]=_0xa1b988==null?void 0x0:_0xa1b988[_0xb67c1e(0x4b6)]);}static[_0x44ec13(0x265)](_0x580e6d,_0x5d2199){const _0xe5d431=_0x44ec13,{text:_0x1716c4,color:_0xb2863d}=_0x5d2199;_0x580e6d['save'](),_0x580e6d['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x437e61=_0x580e6d[_0xe5d431(0x51c)](_0x1716c4)[_0xe5d431(0x1f3)],_0x481296=Math['min'](_0x437e61+0x2*we,nt);si(_0x580e6d,{'height':_e,'radius':0x4,'width':_0x481296,'fill':_0xb2863d,'evented':!0x1}),_0x580e6d[_0xe5d431(0x4f8)]=_0xe5d431(0x24b);const _0x185ef5=we,_0x5d2427=_e-ti,_0x4424c1=nt-0x2*we;if(_0x437e61>_0x4424c1){let _0x47db85='',_0x45eedd=0x0;for(const _0x35f92c of _0x1716c4){const _0x5e015d=_0x580e6d[_0xe5d431(0x51c)](_0x35f92c)['width'];if(_0x45eedd+_0x5e015d<=_0x4424c1-_0x580e6d['measureText']('...')['width'])_0x47db85+=_0x35f92c,_0x45eedd+=_0x5e015d;else{_0x47db85+=_0xe5d431(0x4a7);break;}}_0x580e6d['fillText'](_0x47db85,_0x185ef5,_0x5d2427);}else _0x580e6d['fillText'](_0x1716c4,_0x185ef5,_0x5d2427);_0x580e6d[_0xe5d431(0x307)]();}['_draw'](_0x5daba9){const _0x56c1ca=_0x44ec13;be[_0x56c1ca(0x265)](_0x5daba9,this);}}const ii=0x1,ni=1.5;class Dt extends R[_0x44ec13(0x385)]{constructor(_0x46479b,_0xfdb565){const _0x3be506=_0x44ec13;super(_0x46479b,_0xfdb565),d(this,_0x3be506(0x1f8)),d(this,_0x3be506(0x39f),!0x1),d(this,_0x3be506(0x334)),d(this,'_name',''),d(this,'_labelPosition',_0x3be506(0x2af)),d(this,'_backgroundColor'),(_0xfdb565&&this[_0x3be506(0x210)](_0xfdb565),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x3be506(0x210)]({'hovered':!0x0})),this[_0x3be506(0x376)][_0x3be506(0x238)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x44ec13(0x210)](_0x58134c){const _0x846b6=_0x44ec13;var _0x2f98f7,_0x48a2e1,_0x1a4968,_0x2582f1,_0x4067c0,_0x10d540;this[_0x846b6(0x1f8)]=(_0x2f98f7=_0x58134c['color'])!=null?_0x2f98f7:this['_color'],this[_0x846b6(0x39f)]=(_0x48a2e1=_0x58134c[_0x846b6(0x299)])!=null?_0x48a2e1:this['_hovered'],this[_0x846b6(0x334)]=(_0x1a4968=_0x58134c[_0x846b6(0x301)])!=null?_0x1a4968:this[_0x846b6(0x334)],this['_name']=(_0x2582f1=_0x58134c['name'])!=null?_0x2582f1:this[_0x846b6(0x3fb)],this[_0x846b6(0x31d)]=(_0x4067c0=_0x58134c['labelPosition'])!=null?_0x4067c0:this[_0x846b6(0x31d)],this[_0x846b6(0x423)]=(_0x10d540=_0x58134c[_0x846b6(0x220)])!=null?_0x10d540:this[_0x846b6(0x423)],this['transformByState']({'width':_0x58134c['width'],'height':_0x58134c[_0x846b6(0x47e)]});}[_0x44ec13(0x50b)](_0x14a36c){const _0x25ec9d=_0x44ec13,{row:_0x537153,column:_0x11a39b}=_0x14a36c;if(_0x537153>=this[_0x25ec9d(0x334)]['startRow']&&_0x537153<=this[_0x25ec9d(0x334)][_0x25ec9d(0x491)]&&_0x11a39b>=this[_0x25ec9d(0x334)]['startColumn']&&_0x11a39b<=this[_0x25ec9d(0x334)][_0x25ec9d(0x3b6)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x25ec9d(0x210)]({'hovered':!0x1});}[_0x44ec13(0x250)](_0xd7be91){return!0x1;}[_0x44ec13(0x1d1)](_0x17edf6){const _0x2a0fcd=_0x44ec13;R[_0x2a0fcd(0x318)][_0x2a0fcd(0x265)](_0x17edf6,{'width':this['width'],'height':this[_0x2a0fcd(0x47e)],'strokeWidth':ni,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2a0fcd(0x423)]}),this[_0x2a0fcd(0x39f)]&&(_0x17edf6[_0x2a0fcd(0x332)](),_0x17edf6[_0x2a0fcd(0x1dd)](0x1,0x0,0x0,0x1,this[_0x2a0fcd(0x1f3)],this['_labelPosition']===_0x2a0fcd(0x3a4)?0x0:-_e),be[_0x2a0fcd(0x265)](_0x17edf6,{'text':this['_name'],'color':this[_0x2a0fcd(0x1f8)]}),_0x17edf6[_0x2a0fcd(0x307)]());}}var ri=Object['defineProperty'],oi=Object[_0x44ec13(0x2e1)],ai=(_0x5e4359,_0x3e37b2,_0x52ec8d,_0x5485b6)=>{const _0xc4a49=_0x44ec13;for(var _0x4492f2=_0x5485b6>0x1?void 0x0:_0x5485b6?oi(_0x3e37b2,_0x52ec8d):_0x3e37b2,_0x2ed13c=_0x5e4359[_0xc4a49(0x3b4)]-0x1,_0x5dc38f;_0x2ed13c>=0x0;_0x2ed13c--)(_0x5dc38f=_0x5e4359[_0x2ed13c])&&(_0x4492f2=(_0x5485b6?_0x5dc38f(_0x3e37b2,_0x52ec8d,_0x4492f2):_0x5dc38f(_0x4492f2))||_0x4492f2);return _0x5485b6&&_0x4492f2&&ri(_0x3e37b2,_0x52ec8d,_0x4492f2),_0x4492f2;},Ue=(_0x4587c4,_0xfd9368)=>(_0xd0e674,_0x39227c)=>_0xfd9368(_0xd0e674,_0x39227c,_0x4587c4);const ci=0x1389;let He=class extends a['RxDisposable']{constructor(_0x1bc374,_0x1e2184,_0x2b158b,_0x1c25b5){const _0x47c054=_0x44ec13;super(),d(this,_0x47c054(0x193),new Set()),d(this,'_lastPointer',null),(this[_0x47c054(0x2a0)]=_0x1bc374,this['_sheetSkeletonManagerService']=_0x1e2184,this['_collabCursorController']=_0x2b158b,this[_0x47c054(0x3a5)]=_0x1c25b5,this['_init']());}[_0x44ec13(0x2d0)](){const _0x3cdb5e=_0x44ec13;this[_0x3cdb5e(0x1e2)][_0x3cdb5e(0x28e)][_0x3cdb5e(0x2d5)](E[_0x3cdb5e(0x441)](this[_0x3cdb5e(0x350)]),E['switchMap'](_0x17008a=>{const _0x4b6af8=_0x3cdb5e;if(_0x17008a){const _0x33a77a=_0x17008a[_0x4b6af8(0x30a)];return v[_0x4b6af8(0x2f3)](this[_0x4b6af8(0x3fd)]['getCollabCursors$'](this['_context'][_0x4b6af8(0x1c9)]),this['_themeService'][_0x4b6af8(0x214)])['pipe'](E['map'](([_0x28692d,_0x2bbd15])=>{const _0x4bb7b3=_0x4b6af8,_0xb93d72=new Map();return _0x28692d[_0x4bb7b3(0x39a)]((_0x2ce37d,_0x5a251e)=>{const _0x2c67e0=_0x4bb7b3;if(_0x2ce37d[_0x2c67e0(0x289)]===_0x33a77a){const _0x2137e5={..._0x2ce37d};_0x2137e5[_0x2c67e0(0x493)]=_0x2bbd15[_0x2ce37d[_0x2c67e0(0x493)]],_0xb93d72[_0x2c67e0(0x47a)](_0x5a251e,_0x2137e5);}}),{'skeleton':_0x17008a,'cursors':_0xb93d72};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x3cdb5e(0x1d4)](({skeleton:_0x1987c4,cursors:_0x15b42e})=>{const _0x4025c5=_0x3cdb5e;this['_removeCollabCursors'](),_0x1987c4&&this[_0x4025c5(0x51b)](_0x1987c4,_0x15b42e);}),this[_0x3cdb5e(0x1e2)][_0x3cdb5e(0x28e)][_0x3cdb5e(0x1d4)](_0x5602bb=>{const _0x4bb977=_0x3cdb5e;if(_0x5602bb==null)return;const {skeleton:_0x434c8f}=_0x5602bb,{scene:_0x4c67af}=this['_context'];_0x4c67af[_0x4bb977(0x4e0)][_0x4bb977(0x238)](ke(_0x4d9723=>{const _0x582a59=_0x4bb977;var _0x316871,_0x25d280;const {offsetX:_0x3d399c,offsetY:_0x213a5e}=_0x4d9723,{x:_0x81ee59,y:_0x10ecc3}=_0x4c67af['getRelativeToViewportCoord'](R['Vector2']['FromArray']([_0x3d399c,_0x213a5e])),{scaleX:_0x1fc303,scaleY:_0x4912cf}=_0x4c67af[_0x582a59(0x465)](),_0x3a0cab=_0x4c67af['getViewport'](ee[_0x582a59(0x45f)]['VIEW_MAIN']),_0x552e5b=_0x4c67af[_0x582a59(0x27d)](R[_0x582a59(0x46c)][_0x582a59(0x14e)]([_0x81ee59,_0x10ecc3]),_0x3a0cab),_0x254477=_0x434c8f[_0x582a59(0x25f)](_0x3d399c,_0x213a5e,_0x1fc303,_0x4912cf,_0x552e5b);((_0x316871=this[_0x582a59(0x196)])==null?void 0x0:_0x316871[_0x582a59(0x1f6)])===_0x254477[_0x582a59(0x1f6)]&&((_0x25d280=this[_0x582a59(0x196)])==null?void 0x0:_0x25d280[_0x582a59(0x445)])===_0x254477[_0x582a59(0x445)]||this[_0x582a59(0x193)][_0x582a59(0x39a)](_0x3b112a=>{const _0xf35f74=_0x582a59;_0x3b112a[_0xf35f74(0x50b)](_0x254477);});},0x64));});}[_0x44ec13(0x51b)](_0x124834,_0x34e6b9){const _0x51fc09=_0x44ec13;var _0x345079;const _0xc336b7=(_0x345079=this[_0x51fc09(0x1e2)][_0x51fc09(0x44f)]())==null?void 0x0:_0x345079[_0x51fc09(0x4a6)];if(!_0xc336b7)return;const _0xb68697=this[_0x51fc09(0x4eb)]();if(!_0xb68697)return;this[_0x51fc09(0x193)][_0x51fc09(0x39a)](_0x363d7b=>{const _0x85084f=_0x51fc09;_0x363d7b[_0x85084f(0x4ac)]();});const {scene:_0x497fa6}=_0xb68697,_0x3a0aa4=li(Array[_0x51fc09(0x25c)](_0x34e6b9[_0x51fc09(0x541)]()))[_0x51fc09(0x341)](_0x5abcbf=>{const _0x74cd11=_0x51fc09,{color:_0x1549b5,range:_0x2b3a6b,name:_0x19f09e,selection:_0x21cfcc,sheetID:_0x52ffd4}=_0x5abcbf,{startColumn:_0x80e587,startRow:_0x517167,endColumn:_0x426fda,endRow:_0x675d16}=_0x2b3a6b,_0x232978=ee[_0x74cd11(0x4d8)](_0x517167,_0x80e587,_0x497fa6,_0xc336b7),_0xbfdfb2=ee[_0x74cd11(0x4d8)](_0x675d16,_0x426fda,_0x497fa6,_0xc336b7),{columnHeaderHeightAndMarginTop:_0x5027c3}=_0xc336b7,{startX:_0xf723a7,startY:_0x159024}=_0x232978,{endX:_0x1ff76d,endY:_0x31a0d4}=_0xbfdfb2,_0x37432c=_0x1ff76d-_0xf723a7,_0x11e8e9=_0x31a0d4-_0x159024,_0x1b89c9={'labelPosition':_0x159024-_0x5027c3>=_e?_0x74cd11(0x2af):'bottom','sheetID':_0x52ffd4,'range':_0x2b3a6b,'color':_0x1549b5,'name':_0x19f09e,'selection':_0x21cfcc,'left':_0xf723a7,'top':_0x159024,'width':_0x37432c,'height':_0x11e8e9,'evented':!0x1,'zIndex':ci};return new Dt(_0x19f09e,_0x1b89c9);});_0x497fa6[_0x51fc09(0x179)](_0x3a0aa4,ii),this[_0x51fc09(0x193)]=new Set(_0x3a0aa4);}[_0x44ec13(0x15e)](){const _0x4addc6=_0x44ec13;var _0x3f0cdd;(_0x3f0cdd=this['_cursors'])==null||_0x3f0cdd[_0x4addc6(0x39a)](_0x4e5682=>_0x4e5682[_0x4addc6(0x184)]());}[_0x44ec13(0x4eb)](){const _0x27a9d0=_0x44ec13;return ee[_0x27a9d0(0x46e)](this[_0x27a9d0(0x2a0)][_0x27a9d0(0x1c2)],this['_context']);}};He=ai([Ue(0x1,a[_0x44ec13(0x3ed)](ee[_0x44ec13(0x278)])),Ue(0x2,a[_0x44ec13(0x3ed)](te)),Ue(0x3,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4b1)]))],He);function li(_0x226ced){const _0x74e935=_0x44ec13,_0x15bc9d=new Map();return _0x226ced[_0x74e935(0x39a)](_0x1a4ebe=>{const _0x1f7aa1=_0x74e935;if(_0x15bc9d[_0x1f7aa1(0x163)](_0x1a4ebe['selection'])){const _0x295ee2=_0x15bc9d[_0x1f7aa1(0x48d)](_0x1a4ebe[_0x1f7aa1(0x378)]);_0x295ee2[_0x1f7aa1(0x48e)]+=',\x20'+_0x1a4ebe[_0x1f7aa1(0x48e)];}else _0x15bc9d['set'](_0x1a4ebe[_0x1f7aa1(0x378)],_0x1a4ebe);}),Array['from'](_0x15bc9d[_0x74e935(0x541)]());}var N=function(){const _0xb686fb=_0x44ec13;return N=Object[_0xb686fb(0x2ea)]||function(_0x80b7c6){const _0x2975ec=_0xb686fb;for(var _0x3a8f24,_0xaaa42a=0x1,_0x13e979=arguments['length'];_0xaaa42a<_0x13e979;_0xaaa42a++){_0x3a8f24=arguments[_0xaaa42a];for(var _0x453fba in _0x3a8f24)Object[_0x2975ec(0x39e)][_0x2975ec(0x266)][_0x2975ec(0x286)](_0x3a8f24,_0x453fba)&&(_0x80b7c6[_0x453fba]=_0x3a8f24[_0x453fba]);}return _0x80b7c6;},N[_0xb686fb(0x540)](this,arguments);},hi=function(_0x502db4,_0x261d2b){const _0x33570a=_0x44ec13;var _0x3f67c7={};for(var _0x3b9181 in _0x502db4)Object[_0x33570a(0x39e)][_0x33570a(0x266)][_0x33570a(0x286)](_0x502db4,_0x3b9181)&&_0x261d2b[_0x33570a(0x3c8)](_0x3b9181)<0x0&&(_0x3f67c7[_0x3b9181]=_0x502db4[_0x3b9181]);if(_0x502db4!=null&&typeof Object[_0x33570a(0x212)]==_0x33570a(0x51f)){for(var _0x12ec3c=0x0,_0x3b9181=Object['getOwnPropertySymbols'](_0x502db4);_0x12ec3c<_0x3b9181['length'];_0x12ec3c++)_0x261d2b['indexOf'](_0x3b9181[_0x12ec3c])<0x0&&Object[_0x33570a(0x39e)][_0x33570a(0x2f8)][_0x33570a(0x286)](_0x502db4,_0x3b9181[_0x12ec3c])&&(_0x3f67c7[_0x3b9181[_0x12ec3c]]=_0x502db4[_0x3b9181[_0x12ec3c]]);}return _0x3f67c7;},Xe=P[_0x44ec13(0x371)](function(_0x3194be,_0x5f0e2d){const _0x391192=_0x44ec13;var _0x18d1b0=_0x3194be[_0x391192(0x52a)],_0x1c712c=_0x3194be['id'],_0x1342ac=_0x3194be[_0x391192(0x46b)],_0x10256d=_0x3194be[_0x391192(0x2e9)],_0x4bec8f=hi(_0x3194be,[_0x391192(0x52a),'id',_0x391192(0x46b),_0x391192(0x2e9)]),_0x47d32f=_0x391192(0x2ca)['concat'](_0x1c712c,'\x20')['concat'](_0x1342ac||'')[_0x391192(0x34d)](),_0x1d124d=P[_0x391192(0x32b)]('_'[_0x391192(0x2c8)](di()));return yt(_0x18d1b0,''[_0x391192(0x2c8)](_0x1c712c),{'defIds':_0x18d1b0[_0x391192(0x326)],'idSuffix':_0x1d124d[_0x391192(0x42c)]},N({'ref':_0x5f0e2d,'className':_0x47d32f},_0x4bec8f),_0x10256d);});function yt(_0x5ab1cc,_0x437fca,_0x3e2415,_0xd2ac3,_0xd6108a){const _0x14e788=_0x44ec13;return P[_0x14e788(0x53f)](_0x5ab1cc[_0x14e788(0x1af)],N(N({'key':_0x437fca},_i(_0x5ab1cc,_0x3e2415,_0xd6108a)),_0xd2ac3),(ui(_0x5ab1cc,_0x3e2415)[_0x14e788(0x35f)]||[])['map'](function(_0x4719fd,_0x2aea30){const _0x4558bf=_0x14e788;return yt(_0x4719fd,''[_0x4558bf(0x2c8)](_0x437fca,'-')[_0x4558bf(0x2c8)](_0x5ab1cc[_0x4558bf(0x1af)],'-')[_0x4558bf(0x2c8)](_0x2aea30),_0x3e2415,void 0x0,_0xd6108a);}));}function _i(_0x349317,_0x2cf77a,_0x495daf){const _0x22bf8b=_0x44ec13;var _0x45c1b9=N({},_0x349317[_0x22bf8b(0x31e)]);_0x495daf!=null&&_0x495daf['colorChannel1']&&_0x45c1b9[_0x22bf8b(0x3d8)]===_0x22bf8b(0x29d)&&(_0x45c1b9[_0x22bf8b(0x3d8)]=_0x495daf[_0x22bf8b(0x29d)]);var _0x18fa01=_0x2cf77a[_0x22bf8b(0x326)];return!_0x18fa01||_0x18fa01[_0x22bf8b(0x3b4)]===0x0||(_0x349317['tag']==='use'&&_0x45c1b9[_0x22bf8b(0x4d4)]&&(_0x45c1b9[_0x22bf8b(0x4d4)]=_0x45c1b9[_0x22bf8b(0x4d4)]+_0x2cf77a[_0x22bf8b(0x2c9)]),Object[_0x22bf8b(0x161)](_0x45c1b9)[_0x22bf8b(0x39a)](function(_0x348a58){const _0x30a8ca=_0x22bf8b;var _0x349862=_0x348a58[0x0],_0x1b18b2=_0x348a58[0x1];typeof _0x1b18b2==_0x30a8ca(0x167)&&(_0x45c1b9[_0x349862]=_0x1b18b2[_0x30a8ca(0x264)](/url\(#(.*)\)/,_0x30a8ca(0x43c)[_0x30a8ca(0x2c8)](_0x2cf77a[_0x30a8ca(0x2c9)],')')));})),_0x45c1b9;}function ui(_0x9f39a3,_0xb9a709){const _0x350a9d=_0x44ec13;var _0x65c248,_0x206564=_0xb9a709['defIds'];return!_0x206564||_0x206564[_0x350a9d(0x3b4)]===0x0?_0x9f39a3:_0x9f39a3[_0x350a9d(0x1af)]===_0x350a9d(0x1c3)&&(!((_0x65c248=_0x9f39a3[_0x350a9d(0x35f)])===null||_0x65c248===void 0x0)&&_0x65c248[_0x350a9d(0x3b4)])?N(N({},_0x9f39a3),{'children':_0x9f39a3[_0x350a9d(0x35f)][_0x350a9d(0x341)](function(_0xa8a68c){const _0x50fdc6=_0x350a9d;return typeof _0xa8a68c[_0x50fdc6(0x31e)]['id']=='string'&&_0x206564&&_0x206564['indexOf'](_0xa8a68c[_0x50fdc6(0x31e)]['id'])>-0x1?N(N({},_0xa8a68c),{'attrs':N(N({},_0xa8a68c[_0x50fdc6(0x31e)]),{'id':_0xa8a68c[_0x50fdc6(0x31e)]['id']+_0xb9a709['idSuffix']})}):_0xa8a68c;})}):_0x9f39a3;}function di(){const _0x3c1124=_0x44ec13;return Math['random']()[_0x3c1124(0x503)](0x24)[_0x3c1124(0x380)](0x2,0x8);}Xe[_0x44ec13(0x422)]=_0x44ec13(0x1d0);var Si={'tag':_0x44ec13(0x151),'attrs':{'fill':'none','viewBox':_0x44ec13(0x1ca),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x44ec13(0x183)},'children':[{'tag':'path','attrs':{'stroke':_0x44ec13(0x41f),'d':_0x44ec13(0x495),'strokeLinecap':_0x44ec13(0x4bd),'strokeLinejoin':_0x44ec13(0x4bd),'strokeWidth':1.2}}]},{'tag':_0x44ec13(0x1c3),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x44ec13(0x15a),'attrs':{'fill':_0x44ec13(0x162),'d':_0x44ec13(0x4f6)}}]}]}],'defIds':[_0x44ec13(0x2ae)]},Pt=P[_0x44ec13(0x371)](function(_0x53284c,_0x1e1396){const _0x16e8c1=_0x44ec13;return P['createElement'](Xe,Object['assign']({},_0x53284c,{'id':_0x16e8c1(0x40b),'ref':_0x1e1396,'icon':Si}));});Pt[_0x44ec13(0x422)]='OffLineSingle';var vi={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x44ec13(0x458),'height':_0x44ec13(0x458)},'children':[{'tag':'g','attrs':{'clipPath':_0x44ec13(0x509)},'children':[{'tag':_0x44ec13(0x15a),'attrs':{'stroke':_0x44ec13(0x41f),'d':_0x44ec13(0x4ce),'strokeLinecap':'round','strokeLinejoin':_0x44ec13(0x4bd),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x44ec13(0x3c6),'attrs':{'id':_0x44ec13(0x477)},'children':[{'tag':'path','attrs':{'fill':_0x44ec13(0x162),'d':_0x44ec13(0x4f6),'transform':_0x44ec13(0x4bb)}}]}]}],'defIds':[_0x44ec13(0x477)]},wt=P['forwardRef'](function(_0x4da577,_0x2dd4c8){const _0x371b02=_0x44ec13;return P[_0x371b02(0x53f)](Xe,Object['assign']({},_0x4da577,{'id':_0x371b02(0x19b),'ref':_0x2dd4c8,'icon':vi}));});wt[_0x44ec13(0x422)]=_0x44ec13(0x315);const mi='univer-online-status-icon',fi=_0x44ec13(0x528),gi=_0x44ec13(0x20d),Ii=_0x44ec13(0x3bd),pi='univer-offline',ae={'onlineStatusIcon':mi,'onlineStatusTitle':fi,'onlineStatus':gi,'online':Ii,'offline':pi};function _0xff45(){const _0x41bd9f=['create','_registerDependencies','OnLifecycle','cursorInfo','getAncestorScale','div','serializeCombRequest','isEditing','@univerjs/drawing','[CollaborationEntity]','className','Vector2','HEARTBEAT_TIMEOUT','getSheetObject','baseRev','HEARTBEAT_INTERVAL_KEY','_docSyncEditingCollabCursorService','encodeURIComponent','_localCacheService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','?size=','stopTime','on-line-single_clip0_910_349','/resources','every','set','_anchor','_onUserLeave','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','height','3459640ractJo','_cursorInfo$','_imageSourceCache','Warning','disposeUnit','_getAPIPrefixPath','AUTHZ_URL_KEY','getActiveRange','_colorIndex','_send','USERS_ENTER','TRANSFORM_CHANGE_OBSERVABLE_TYPE','/role','_collaborationPaused','get','name','reverse','_updateStatus','endRow','_syncEditingCollabCursorService','color','LocalCacheService','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','localeService','concatMap','getSkeleton','userID','failed\x20to\x20apply\x20missed\x20changesets!','error$','/new_changes','_logService','setInterval','_colorAssignService','WorkbookEditablePermission','SNAPSHOT_SERVER_URL_KEY','_singleActiveUnitService','_registerRenderDependencies','next','INVALID_ARGUMENT','skeleton','...','deserializeRangeWithSheet','_refreshCollabCursors','_showConflictNotification','actions','makeDirty','subunit','_assignedColors','_remoteChangesetQueue','_updateURLWithCurrentState','ThemeService','FAIL','updateOfflineData','_waitForHeartbeatResponse','onSyncEditingCollabCursor','text','_scheduleCollaborationTimeoutTimer','m1Prime','_onConflict','Undefined','translate(.97)','_awaitingChangeset','round','getUnitId','CollaborationSocketService','saveImage','enableSingleActiveInstanceLock','textEncoder','capture','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','[OfflineState]:\x20received\x20acknowledgement.','RxDisposable','/rev/','loadSheet','INTERNAL_ERROR','@univerjs/engine-formula','_cachedData','_transformService','getMemberID','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','Injector','collab-text-anchor-','getParam','lodash/debounce','/object/','xlink:href','MUTATION','ERROR_IMAGE','_type','getCoordByCell','encode','liveShareOperation','getCurrentUser','PERMISSION_REJ','onlyLocal','_anchorDot','_tryEnsureSocket','onPointerMove$','CollaborationSessionService','IUniverInstanceService','unshift','HTTPService','csAckEvent','_handler','_handleEvent','auth.needGotoLoginAlert','session.room-full','confirm','_getSheetObject','_scheduleSaving','c2Prime','post','SetWorksheetActivateCommand','ONLINE','isInternalEditorID','CollaborationEvent','/object','_docStateChangeManagerService','IUndoRedoService','M0\x200H16V16H0z','_onMessage','fillStyle','_listenToOnlineEvent','ThresholdInterceptorFactory','getItem','_telemetryService','resolve','status','UUID','_createSocket','HEADER_MENU','isTransformMutationsWithChangesetSuccess','toString','split','_schedule','SetTextSelectionsOperation','clearTimeout','_snapshotServerService','url(#on-line-single_clip0_910_349)','JSONX','onMouseMove','5990650DuIIVV','_checkMissing','4468620ayQBNP','loadOfflineData','_onRemoteACK','UnitSnapshot','find','_roomMembers','_undoStacks','roomMembers$','LocaleService','then','DesktopCollaborationStatusDisplayController','whenReady','getCollabCursors$','_updateCollabCursors','measureText','_onJoinRoomEvent','_retryCount','function','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','resize','PSEUDO_FETCH_MISSING_RESULT','USERS_LEAVE','_hover','PERMISSION_DENIED','onCommandExecuted','getUnitStatus$','univer-online-status-title','BASE64','icon','state$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','JOINING','TEXT_RANGE_LAYER_INDEX','urlChange$','SYNCED','reject','deserializeToCombResponse','_handleHeartbeatEvent','compose','[OfflineState]:\x20received\x20rejection.','LocalUndoRedoService','action','getUnitOnRev','memberID','getCollabEntity','isPermissionRej','fetchMiss','_scene','DocSkeletonManagerService','createElement','apply','values','HELLO','_drawRectRange','/allowed','isActive','JOIN','jiqing500','_onCursorUpdate','put','@univerjs/engine-render','APPLY_REVISION_CONFILICT','init','hide','ImageSourceType','deepClone','_configService','_getCtorByUniverType','_shapes','roles','_loadSheet','updateCursorEvent','FromArray','_exhaustRemoteChangesetQueue','@univerjs/design','svg','_transformStack','_messageService','UNIVER_PROJECT','_clearRedo','UNKNOWN_CMD','getSheetBlock','WebSocketService','complete','path','FETCH_MISS','addImageSourceCache','event$','_removeCollabCursors','_timeoutTimer','_onConnectionFailed','entries','#fff','has','_entities','RemoveRowCommandId','_handleLeaveEvent','string','NodePositionConvertToCursor','_onRemoteChangeset','_removeClearOtherTimer','_getAPIPrefix','_unitID','Error','_socketMessageSubscription','getUnitType','_beforeCloseService','collabStatus.syncing','SHOULD_CLOSE_CONN','setAlpha','InsertRangeMoveRightCommandId','_onRefRangeChange','[CollaborationSessionService]','onTransformIME','_createInitialStateImpl','addObjects','setTimeout','listRoles','getColor','COMPRESS_MUTATION_SEND','close','handleMoveRange','_clearTimeoutTimer','min','error','url(#off-line-single_clip0_910_343)','dispose','univer-pro.collaboration-client-socket-service','RegularPolygon','COMMENT_UPDATE','getCurrentRevForDocument','headers','parse','_commentService','requestParams','[CollaborationSession]','fromEventSubject','YUUMI_RATE_OVER_LIMIT','result','_onFetchMissResult','_onLocalMutation','_cursors','synced','CHANGESET_REJ','_lastPointer','disableLocalCache','NOT_FOUND','symbol','transformMutation','on-line-single','_getUndoStack','_initStatusListener','offline','_transformSelections','conflict.content','/fetchmissing?from=','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_roomMembers$','IImageIoService','CHANGESET_ACK','Ready','RevisionService','socketService','IBeforeCloseService','useDependency','SnapshotServerOverHTTPService','transformUndoRedo','Starting','arc','tag','reconnect','NO_OTHER_CLIENTS_EDITING','_onCombEvent','ALREADY_EXISTS','\x20in\x20_schedule.','revision','getSheetId','evenodd','sequenceExecute','refreshPermission','RECV','debug','b64DecodeUnicode','useCallback','onload','socket$','_transitionLocked','UniverInstanceType','unit','defs','_docSkeletonManagerService','_updateLocalCursor','isTransformChangesetsSuccess','collabStatus.synced','1288KqRXzr','unitId','0\x200\x2016\x2016','mutations','[CollaborationSessionService]:\x20socket\x20error','lineTo','engine','getTypeOfUnitDisposed$','UniverIcon','_draw','_sendHeartbeat','_saveTaskMap','subscribe','parseChangesetToProtocol','RefRangeService','getCollabEntity$','_shouldReportTelemetry','permissionRejEvent','includes','/collaborator','ranges','transform','onRemoteAck','collaboration-session-retry','_docSkeleton','_getAnchorBounding','_sheetSkeletonManagerService','onTransformChange$','change$','conflict','Rectangle','DEFAULT_FILE_NAME','rxjs/operators','Optional','beginPath','_fetchMissChangesets','send','LOCAL_CACHE_INTERVAL','filter','toDisposable','[PendingState]:\x20unhandled\x20univer\x20type:\x20','clearInterval','SUBMIT_CHANGESET','width','_startSheetCollabCursor','newValue','column','/universer-api/oidc/authpage','_color','UNDEFINED','image/jpeg','_disabled','8247NkaaRs','IDLE','getMember','_scheduleHeartbeat','_handleJoinEvent','_clearUndo','updatePermissionPoint','IURLService','?url=','setConfig','_initResize','withCredentials','_replayCachedMutations','Disposable','findNodePositionByCharIndex','cursorInfo$','_clearHeartbeatTimer','univer-online-status','delete','sheets','setShapeProps','_docTransformSelectionsService','getOwnPropertySymbols','image/gif','currentTheme$','doc.mutation.rich-text-editing','[CollaborationState]:\x20apply\x20error!','fetchThroughInterceptors','toggleOffline','getActiveSheet','ITelemetryService','handleIRemoveCol','putCollaborators','FileId','_session','onMissedChangesetFetched','backgroundColor','IContextService','1qkdDBV','_httpService','_http','method','IRenderManagerService','getConfig','PENDING','getTime','members','generateRandomId','selections','_acknowledgedAwaitingChangeset','_status$','transformIMECache','delay','MoveRangeCommandId','2906672KBAuYb','_stopTelemetryCollaborationNewChangeset','_userManagerService','getSheetBySheetId','sessionStatus','conflict.title','subscribeEvent','_members','searchParams','_getCurrentRevision','_collaborationTimeoutTimer','registerRefRange','XHRHTTPImplementation','ImageIoService','fetch_missing','SNAPSHOT_HAS_BEEN_REMOVED','_transformRemoteChangesetByIMECache','onTransformSelections','getResourcesRequest','requireSession','saveSnapshot','purple300','awaiting','exhaustSavingTask','_collabCursorState$','#FFF','roomMembers','awaiting_with_pending','_getScale','c1Prime','triggerDblclick','objectActions','_setupSubUnitSync','UPDATE_CURSOR','_rescheduleHeartbeat','LICENSE_DISTRO_REJECTED','setParam','_getMergeRange','_startTelemetryCollaborationNewChangeset','IConfigService','_syncEditingCollabCursor','reduce','from','getUndoRedoMutationParamsCache','telemetry\x20info\x20is\x20not\x20initialized','getCellPositionByOffset','_onUserJoin','HEARTBEAT','createSocket','UnitEmbedded','replace','drawWith','hasOwnProperty','fromCollab','HttpImport','setUndoRedoMutationParamsCache','MSG_FOR_ERROR','collaMsg','removeParam','onPointerEnter$','collabStatus.conflict','collaboratorID','updateMember','_updateSubUnitFromURLParams','_unitStatus','CollaborationEntity','_urlService','ITransformService','_sessions','resend','SheetSkeletonManagerService','cmd','/universer-api/comb','image/jpg','CollaborationController','getVpScrollXYInfoByPosToVp','subUnitId','awaitingChangeset','session.connection-failed','NEW_CHANGESETS','_lockTransition','handleDeleteRangeMoveLeft','catch','_id','call','Steady','POST','sheetID','_instanceService','removeEventListener','transformSelections','_retryConnectingTimer','currentSkeleton$','MessageType','_substituteRedoStack','[CollaborationUndoRedoService]','_refRangeService','SEND_CHANGESET_TIMEOUT','_notificationService','handleInsertRangeMoveDown','_unlockTransition','enableLocalCache','_getUploadFileURL','hovered','RETRY_CONNECTING_MAX_COUNT','ColorKit','updateCollaborator','colorChannel1','getRoom','LICENSE_IMPORT_SIZE_EXCEEDED','_context','_sessionStatus$','socket\x20close','getMergeData','getOffsetConfig','LICENSE_EXPORT_SIZE_EXCEEDED','changesets','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onTransformRemoteChangesetByIMECache','href','Plugin','YUUMI_URL_COL_OUT_OF_RANGE','\x0aCurrent:\x20','_online','off-line-single_clip0_910_343','top','getImage','registerComponent','sessionStatus$','_throwTelemetryCollaborationNewChangeset','_handleHover','stringify','setWaitCount','DataLoaderController','roomInfos','_univerInstanceService','getValue','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_state$','_memberService','COMPRESS_MUTATION_APPLY','blue400','uni.network.url-service','collaboration.single-unit.warning','toggleOnline','closeSession','getUnhiddenWorksheets','EffectRefRangId','_onOffline','fillRule','concat','idSuffix','univerjs-icon\x20univerjs-icon-','_clearLocalCache','with','COLLAB_WEB_SOCKET_URL_KEY','workbook','_ensureSubject','_init','ILogService','focused$','_renderManagerService','close$','pipe','LIVESHARE_OPERATION','_startDocCollabCursor','{fileID}','_revisionService','IUIPartsService','_event$','SNAPSHOT_URL_KEY','APPLY_NON_SEQUENTIAL_REVISION','_drawTextRange','unload','_sheetTransformSelectionsService','getOwnPropertyDescriptor','_socket$','@univerjs/docs','UNIVER_SLIDE','HEARTBEAT_INTERVAL','_pendingMutations','loadDoc','SNAPSHOT_INVALID_SNAPSHOT','extend','assign','params','defineProperty','type','pending','slice','InsertRowCommandId','m2Prime','InsertColCommandId','combineLatest','/-/object/-/batch_allowed','fetching\x20missing\x20changesets\x20from\x20','/universer-api/file/{fileID}/sign-url','NOT_COLLAB','propertyIsEnumerable','collab-text-range-','getFocusedUnit','ws://127.0.0.1:8000/universer-api/comb/connect','_heartbeatTimer','routeKey','ERROR_IMAGE_TYPE','_getSnapshotAPIPrefix','_getSignURL','range','state','message$','transformMutationsWithChangeset','_createInitialState','pluginName','restore','_getSaveTimeout','_isPermissionRej','sheetId','LifecycleStages','@univerjs/sheets-ui','socket\x20open.','_commandService','_clearCollaborationTimeoutTimer','9sLkatP','transformChangesets','_compressMutationService','LIVESHARE_NEW_HOST','DependentOn','OnLineSingle','_change$','IPermissionService','Rect','_config','_disableEditing','_removeRoom','update','_labelPosition','attrs','UNIVER_UNKNOWN','AWAITING_WITH_PENDING','NodePositionConvertToRectRange','getDocRanges','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','online','getWorkbookSelections','defIds','setItem','open$','commentUpdateEvent','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','useRef','moveTo','fromEvent','_onCursorDelete','_toggleOnline','_localeService','/universer-api/snapshot/','save','SetDocZoomRatioOperation','_range','switchMap','_telemetryInfo','collaborators','_getSendChangesetTimeout','permission.content','_sendHeartbeatTimer','_substituteUndoStack','_replaceFileID','_collabSessionService','UNIVER_COLLABORATION_CLIENT_PLUGIN','debounceTime','black','map','_submitChangeset','_createHandler','UNIVER_DOC','transformRemoteChangeset','react','_selfUnitIDs','eventID','collaboration.closeRoom','COLORS','_transformPreviousActiveRange','_docTransformIMECacheService','trim','parseProtocolChangeset','APPLY_REJECT','dispose$','UPDATE_PERMISSION_OBJ','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_state','location','SEND_CHANGESET_TIMEOUT_KEY','UNRECOGNIZED','[OfflineState]:\x20received\x20changeset.','_incrementRevisionNumber','ICommandService','_startCollaboration','registerRenderModule','_initUnitPermissionChange','commentUpdate$','_localStorageService','children','_injector','LOGIN_URL_KEY','BehaviorSubject','LOCAL_CACHE_INTERVAL_KEY','UNKNOWN_CODE','_waitCount','size','joinRsp','registerOnClose','isArray','updatePermissionObjEvent','_updateLocalCache','onRendered','session','handleInsertCol','title','code','forwardRef','handleInsertRow','batchAllowed','IHTTPImplementation','collabStatus.fetchMiss','onPointerLeave$','_initStatusComponent','selection','_cursor','add','show','Unknown\x20user','onRemoteChangeset','CommandType','_collaborationSessionService','substring','@univerjs/telemetry','image/png','SnapshotService','fetchMissingChangesets','Shape','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','data','startTime','_commentUpdate$','CompressMutationService','&to=','_queuedRemoteChangesets','replaceTextRanges','createIdentifier','Module','COLLAB_SUBMIT_CHANGESET_URL','startsWith','saveChangeset','removeMember','[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.','_clearOtherTimers','getCurrentUnitForType','CollaborationSession','_transformUndoRedoStack','disposeWithMe','forEach','EmptyMutation','_loadDoc','UNAUTHENTICATED','prototype','_hovered','SheetCollaborationEntity','/unit/','assignAColorForMemberID','push','bottom','_themeService','saveSheetBlock','OFFLINE','_render','COLLAB_SUBMIT_CHANGESET_URL_KEY','connection\x20error','CONNECTOR_DATA_TOO_LARGE','YUUMI_SUBSCRIPTION_NOT_FOUND','_onConnectionOpen','_sendingTimer','responseType','shouldCloseConn','ILocalStorageService','unknown','RichTextEditingMutation','length','onStateChange','endColumn','pushState','url','getRenderById','_cursorShapes','Tooltip','_onRecvEvent','univer-online','createInstance','contains','CollaborationStatus','merge','IMessageService','snapshot','body','_HTTPService','clipPath','_socket','indexOf','_uiPartsService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_executeRemoteChangeset','DocIMEInputManagerService','history','Tools','_scheduleTimestamp','onSendChangeset','patch','objectType','SUCCUSS','collab-client.tooltip.reconnect','_hideTimer','SetSelectionsOperation','toRgbString','fill','ImageUploadStatusType','Subject','CONFLICT','setActiveRange','FETCH_MISSING','_socketReady','_snapshotService','_listenToOfflineEvent','clear','_entityInit$','addEventListener','mapTo','unit-cache-','executeCommand','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','UniverCollaborationPlugin','_unitOnClients','AuthzIoHttpService','LICENSE_MAX_UNITS_EXCEEDED','interceptor','Inject','Univer','@univerjs/rpc','throttleTime','BuiltInUIPart','unsubscribe','_scheduleClearOtherTimer','LIVESHARE_TERMINATE','CHANGESET_REVISION_CONFILICT','_candidateSocket','handleIRemoveRow','LIVESHARE_REQUEST_HOST','originalMeta','onCommentUpdate','_name','_permissionService','_collabCursorController','_document','take','list','mapDocumentTypeToUniverType','DisposableCollection','[DataLoaderController]','UniverCollaborationClientPlugin','submit\x20changeset\x20error!','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onMissingChangesets','isValidRectRange','LIVESHARE_FETCH_OPERATIONS','objectID','off-line-single','createCollaborator','YUUMI_UNABLE_LOAD_URL','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','registerHTTPInterceptor','incrementRevForDocument','LEAVE','_initMergeInterceptor','initWorkbookPermissionChange','@univerjs/docs-ui','duration','_clearScheduledTask','onlineStatus','override','@univerjs-pro/collaboration','isTransformMutationFailure','SheetsSelectionsService','_updateState','max','RETRY_CONNECTING_INTERVAL_KEY','currentColor','UNIVER_SHEET','liveShareNewHost','displayName','_backgroundColor','_toggleOffline','registerBeforeClose','unitID','42927660OwQTjO','_undoRedoService','_getRedoStack','OTHER_CLIENTS_EDITING','8888740mrfOoB','current','syncEditingCollabCursor','getImageSourceCache','unitId\x20is\x20not\x20found','verdancy600','APPLY_PERMISSION_DENIED','onlineStatusIcon','handleDeleteRangeMoveUp','enableOfflineEditing','addObject','@univerjs/network','resourceIDs','@univerjs/core','asObservable','@univerjs/sheets','ISnapshotServerService','url(#$1','_onRemoteRejected','key','_setupBeforeClosingHandler','_decreaseWaiting','takeUntil','textRanges','appendMutation','AWAITING','row','shareReplay','_joinRoom','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_eventUnsubscribe','getRangePointData','collaboration_new_changeset','status$','getInterceptPoints','json','getCurrent','red300','_applyRemoteChangeset','@univerjs/ui','not_collab','onRemoteRej','getTypeOfUnitAdded$','_ws','rev','1em','DocCollaborationEntity','_getLoginPath','popstate','_saveCache','_textBubble','INGEST','VIEWPORT_KEY','_tryReconnect'];_0xff45=function(){return _0x41bd9f;};return _0xff45();}function _0x2929(_0xe71841,_0x5e86e9){const _0xff45d5=_0xff45();return _0x2929=function(_0x292945,_0x21db0b){_0x292945=_0x292945-0x13d;let _0x4110a2=_0xff45d5[_0x292945];return _0x4110a2;},_0x2929(_0xe71841,_0x5e86e9);}function Ci(_0x1a2339){const _0x5d3644=_0x44ec13;switch(_0x1a2339){case y[_0x5d3644(0x3a7)]:return'collabStatus.offline';case y['CONFLICT']:return _0x5d3644(0x26e);case y[_0x5d3644(0x15b)]:return _0x5d3644(0x375);case y[_0x5d3644(0x2f7)]:return'collabStatus.notCollab';case y[_0x5d3644(0x228)]:case y[_0x5d3644(0x444)]:case y[_0x5d3644(0x320)]:return _0x5d3644(0x171);case y[_0x5d3644(0x530)]:return _0x5d3644(0x1c7);}}function Ut(_0x3313a3){const _0x52e16f=_0x44ec13,{status$:_0x1d26a0}=_0x3313a3,_0x143e80=M['useObservable'](_0x1d26a0,y[_0x52e16f(0x2f7)]),_0x2f4d58=a[_0x52e16f(0x1aa)](a[_0x52e16f(0x516)]),_0x3c1161=a[_0x52e16f(0x1aa)](exports[_0x52e16f(0x4e1)]),_0x235e1f=_0x143e80!==y['OFFLINE'],_0x530a5c=_0x2f4d58['t'](Ci(_0x143e80)),_0x3306f9=Ft(ae[_0x52e16f(0x417)],{[ae['online']]:_0x235e1f,[ae[_0x52e16f(0x19e)]]:!_0x235e1f}),_0x59f728=_0x235e1f?P[_0x52e16f(0x53f)](wt,null):P[_0x52e16f(0x53f)](Pt,null),_0x2cf24e=P[_0x52e16f(0x1bd)](()=>{const _0x259029=_0x52e16f;_0x235e1f||_0x3c1161[_0x259029(0x1b0)]();},[_0x235e1f,_0x3c1161]);function _0x28fa32(){const _0x3adbe5=_0x52e16f;return P['createElement'](_0x3adbe5(0x466),{'className':_0x3306f9,'onClick':_0x2cf24e},P[_0x3adbe5(0x53f)]('div',{'className':ae[_0x3adbe5(0x432)]},_0x59f728),P[_0x3adbe5(0x53f)](_0x3adbe5(0x466),{'className':ae['onlineStatusTitle']},_0x530a5c));}return _0x235e1f?_0x28fa32():P[_0x52e16f(0x53f)](K[_0x52e16f(0x3bb)],{'title':_0x2f4d58['t'](_0x52e16f(0x3d4))},_0x28fa32());}var Ei=Object[_0x44ec13(0x2ec)],bi=Object[_0x44ec13(0x2e1)],Ti=(_0x3222c3,_0x44ff18,_0x1f4891,_0x9680a6)=>{const _0x2fc4de=_0x44ec13;for(var _0x5598bf=_0x9680a6>0x1?void 0x0:_0x9680a6?bi(_0x44ff18,_0x1f4891):_0x44ff18,_0x3360e7=_0x3222c3[_0x2fc4de(0x3b4)]-0x1,_0x144fd7;_0x3360e7>=0x0;_0x3360e7--)(_0x144fd7=_0x3222c3[_0x3360e7])&&(_0x5598bf=(_0x9680a6?_0x144fd7(_0x44ff18,_0x1f4891,_0x5598bf):_0x144fd7(_0x5598bf))||_0x5598bf);return _0x9680a6&&_0x5598bf&&Ei(_0x44ff18,_0x1f4891,_0x5598bf),_0x5598bf;},ue=(_0x3dce7a,_0x1c4386)=>(_0x357154,_0x555188)=>_0x1c4386(_0x357154,_0x555188,_0x3dce7a);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x4c93ac,_0x4ee229,_0x2db918,_0x22d3a2){const _0xd4b2d0=_0x44ec13;super(),d(this,'_status$',new v[(_0xd4b2d0(0x362))](y['NOT_COLLAB'])),(this[_0xd4b2d0(0x2b9)]=_0x4c93ac,this['_uiPartsService']=_0x4ee229,this[_0xd4b2d0(0x360)]=_0x2db918,this['_collaborationController']=_0x22d3a2,this[_0xd4b2d0(0x377)](),this[_0xd4b2d0(0x19d)]());}[_0x44ec13(0x19d)](){const _0x5c60dc=_0x44ec13;this[_0x5c60dc(0x399)](this['_univerInstanceService'][_0x5c60dc(0x2d2)][_0x5c60dc(0x2d5)](v[_0x5c60dc(0x335)](()=>{const _0x5093ad=_0x5c60dc,_0x159b9e=this['_univerInstanceService'][_0x5093ad(0x2fa)]();return _0x159b9e?this['_collaborationController'][_0x5093ad(0x1d7)](_0x159b9e[_0x5093ad(0x4be)]()):v['of'](null);}),v['switchMap'](_0x194c86=>_0x194c86?_0x194c86['status$']:v['of'](y[_0x5c60dc(0x2f7)])))[_0x5c60dc(0x1d4)](_0x4c85aa=>{const _0x3bfbf0=_0x5c60dc;this[_0x3bfbf0(0x22e)][_0x3bfbf0(0x4a4)](_0x4c85aa);}));}['_initStatusComponent'](){const _0x355174=_0x44ec13;this[_0x355174(0x399)](this[_0x355174(0x3c9)][_0x355174(0x2b1)](M[_0x355174(0x3f1)][_0x355174(0x501)],()=>a['connectInjector'](Ri({'status$':this[_0x355174(0x22e)][_0x355174(0x439)]()}),this[_0x355174(0x360)])));}},exports[_0x44ec13(0x518)]=Ti([ue(0x0,a[_0x44ec13(0x4e2)]),ue(0x1,M[_0x44ec13(0x2da)]),ue(0x2,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),ue(0x3,a['Inject'](exports[_0x44ec13(0x27c)]))],exports['DesktopCollaborationStatusDisplayController']);function Ri(_0x4131b0){const {status$:_0x2ce6f1}=_0x4131b0;return function(){const _0x9997e=_0x2929;return P[_0x9997e(0x53f)](Ut,{'status$':_0x2ce6f1});};}const qe=a[_0x44ec13(0x38e)](_0x44ec13(0x2c0));var Oi=Object[_0x44ec13(0x2ec)],Di=Object[_0x44ec13(0x2e1)],yi=(_0x238201,_0x4fb393,_0x2fe7d5,_0x28d143)=>{const _0x2b2789=_0x44ec13;for(var _0x1b9f3a=_0x28d143>0x1?void 0x0:_0x28d143?Di(_0x4fb393,_0x2fe7d5):_0x4fb393,_0x14d5e9=_0x238201[_0x2b2789(0x3b4)]-0x1,_0x4a1df9;_0x14d5e9>=0x0;_0x14d5e9--)(_0x4a1df9=_0x238201[_0x14d5e9])&&(_0x1b9f3a=(_0x28d143?_0x4a1df9(_0x4fb393,_0x2fe7d5,_0x1b9f3a):_0x4a1df9(_0x1b9f3a))||_0x1b9f3a);return _0x28d143&&_0x1b9f3a&&Oi(_0x4fb393,_0x2fe7d5,_0x1b9f3a),_0x1b9f3a;},Q=(_0x86c1a,_0x4cc497)=>(_0x90da61,_0x2f783a)=>_0x4cc497(_0x90da61,_0x2f783a,_0x86c1a);exports[_0x44ec13(0x2b7)]=class extends a[_0x44ec13(0x4c6)]{constructor(_0x17c00f,_0x242b2b,_0x599e90,_0x3e5bbc,_0xdafc0d,_0x37e11e){const _0x53dd4a=_0x44ec13;super(),this[_0x53dd4a(0x274)]=_0x17c00f,this[_0x53dd4a(0x49d)]=_0x242b2b,this[_0x53dd4a(0x30e)]=_0x599e90,this[_0x53dd4a(0x473)]=_0x3e5bbc,this[_0x53dd4a(0x3df)]=_0xdafc0d,_0x37e11e?_0x37e11e==null||_0x37e11e[_0x53dd4a(0x519)]()[_0x53dd4a(0x517)](()=>this[_0x53dd4a(0x2d0)]()):(this[_0x53dd4a(0x49d)][_0x53dd4a(0x1bb)](_0x53dd4a(0x403),_0x53dd4a(0x520)),this[_0x53dd4a(0x2d0)]());}async[_0x44ec13(0x2d0)](){const _0x2c6e5b=_0x44ec13,_0x3f3a9b=this[_0x2c6e5b(0x274)]['getParam'](_0x2c6e5b(0x1c2)),_0x126f9b=this[_0x2c6e5b(0x274)][_0x2c6e5b(0x4d1)](_0x2c6e5b(0x2ed));if(!_0x3f3a9b||!_0x126f9b){this[_0x2c6e5b(0x49d)][_0x2c6e5b(0x1bb)](_0x2c6e5b(0x403),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x126f9b)){case A['UNIVER_SHEET']:{const _0x55a0fd=await this[_0x2c6e5b(0x14c)](_0x3f3a9b);this[_0x2c6e5b(0x252)](_0x55a0fd);break;}case A[_0x2c6e5b(0x344)]:{await this[_0x2c6e5b(0x39c)](_0x3f3a9b);break;}default:{this[_0x2c6e5b(0x49d)][_0x2c6e5b(0x182)](_0x2c6e5b(0x403),_0x2c6e5b(0x2bb));break;}}}async[_0x44ec13(0x252)](_0x21bcd2){const _0x2353c3=_0x44ec13;await this[_0x2353c3(0x271)](_0x21bcd2),_0x21bcd2['activeSheet$'][_0x2353c3(0x2d5)](v[_0x2353c3(0x441)](this[_0x2353c3(0x350)]))['subscribe'](_0x412c14=>{const _0x13892f=_0x2353c3;_0x412c14&&this[_0x13892f(0x4b0)](_0x412c14);}),this[_0x2353c3(0x274)][_0x2353c3(0x52f)][_0x2353c3(0x2d5)](v[_0x2353c3(0x441)](this[_0x2353c3(0x350)]))[_0x2353c3(0x1d4)](()=>this[_0x2353c3(0x271)](_0x21bcd2));}['_updateURLWithCurrentState'](_0xf39e02,_0x4f384f=!0x1){const _0x209229=_0x44ec13,_0x17c846=this['_urlService']['getParam'](_0x209229(0x4ad));_0xf39e02[_0x209229(0x1b6)]()!==_0x17c846&&this['_urlService'][_0x209229(0x256)](_0x209229(0x4ad),_0xf39e02['getSheetId'](),_0x4f384f);}async['_updateSubUnitFromURLParams'](_0x67ebbd){const _0x43ad8e=_0x44ec13;var _0x2f0d05;const _0x224292=this['_urlService']['getParam'](_0x43ad8e(0x4ad));if(!_0x224292||!_0x67ebbd[_0x43ad8e(0x235)](_0x224292)){const _0x51303a=_0x67ebbd[_0x43ad8e(0x2c4)]()[0x0],_0x419199=_0x67ebbd[_0x43ad8e(0x235)](_0x51303a);if(!_0x419199)return;this[_0x43ad8e(0x4b0)](_0x419199,!0x0),await this[_0x43ad8e(0x30e)][_0x43ad8e(0x3e6)](C[_0x43ad8e(0x4ef)]['id'],{'unitId':_0x67ebbd[_0x43ad8e(0x4be)](),'subUnitId':_0x51303a});return;}((_0x2f0d05=_0x67ebbd[_0x43ad8e(0x219)]())==null?void 0x0:_0x2f0d05[_0x43ad8e(0x1b6)]())!==_0x224292&&await this[_0x43ad8e(0x30e)][_0x43ad8e(0x3e6)](C[_0x43ad8e(0x4ef)]['id'],{'unitId':_0x67ebbd[_0x43ad8e(0x4be)](),'subUnitId':_0x224292});}async['_loadSheet'](_0x23e67c){const _0x3c79e8=_0x44ec13;let _0x43398c=0x0;const _0x5724ec=await this[_0x3c79e8(0x473)][_0x3c79e8(0x50f)](_0x23e67c);return _0x5724ec&&(_0x5724ec[_0x3c79e8(0x27f)]||_0x5724ec['mutations'][_0x3c79e8(0x3b4)]!==0x0)&&(_0x43398c=_0x5724ec[_0x3c79e8(0x457)]),_0x43398c===0x0&&this[_0x3c79e8(0x49d)][_0x3c79e8(0x1bb)](_0x3c79e8(0x403),_0x3c79e8(0x1a2)),this[_0x3c79e8(0x3df)][_0x3c79e8(0x4c8)](_0x23e67c,_0x43398c);}async[_0x44ec13(0x39c)](_0x3534a1){const _0x1c242f=_0x44ec13;let _0xf4e212=0x0;const _0x465c44=await this[_0x1c242f(0x473)]['loadOfflineData'](_0x3534a1);return _0x465c44&&(_0x465c44[_0x1c242f(0x27f)]||_0x465c44[_0x1c242f(0x1cb)][_0x1c242f(0x3b4)]!==0x0)&&(_0xf4e212=_0x465c44[_0x1c242f(0x457)]),_0xf4e212===0x0&&this[_0x1c242f(0x49d)][_0x1c242f(0x1bb)](_0x1c242f(0x403),_0x1c242f(0x1a2)),this[_0x1c242f(0x3df)][_0x1c242f(0x2e7)](_0x3534a1,_0xf4e212);}},exports[_0x44ec13(0x2b7)]=yi([a[_0x44ec13(0x463)](a[_0x44ec13(0x30b)][_0x44ec13(0x1ad)],exports[_0x44ec13(0x2b7)]),Q(0x0,qe),Q(0x1,a[_0x44ec13(0x2d1)]),Q(0x2,a[_0x44ec13(0x359)]),Q(0x3,a['Inject'](exports['LocalCacheService'])),Q(0x4,a[_0x44ec13(0x3ed)](_[_0x44ec13(0x383)])),Q(0x5,a[_0x44ec13(0x1e9)](Wt['IRemoteInstanceService']))],exports[_0x44ec13(0x2b7)]);var Pi=Object[_0x44ec13(0x2ec)],wi=Object[_0x44ec13(0x2e1)],Ui=(_0xc315f6,_0x57fa50,_0x1ab8ca,_0x1db5be)=>{const _0x48b55d=_0x44ec13;for(var _0x5526f2=_0x1db5be>0x1?void 0x0:_0x1db5be?wi(_0x57fa50,_0x1ab8ca):_0x57fa50,_0x2e8cfe=_0xc315f6[_0x48b55d(0x3b4)]-0x1,_0x17bb08;_0x2e8cfe>=0x0;_0x2e8cfe--)(_0x17bb08=_0xc315f6[_0x2e8cfe])&&(_0x5526f2=(_0x1db5be?_0x17bb08(_0x57fa50,_0x1ab8ca,_0x5526f2):_0x17bb08(_0x5526f2))||_0x5526f2);return _0x1db5be&&_0x5526f2&&Pi(_0x57fa50,_0x1ab8ca,_0x5526f2),_0x5526f2;},rt=(_0x4e1301,_0x24750f)=>(_0x429dbc,_0x1073db)=>_0x24750f(_0x429dbc,_0x1073db,_0x4e1301);const Ni=_0x44ec13(0x1e7),Mi=_0x44ec13(0x3ee);let ve=class extends a[_0x44ec13(0x209)]{constructor(_0x2759c2,_0x452cef){const _0x4aec5e=_0x44ec13;super(),this[_0x4aec5e(0x2b9)]=_0x2759c2,this[_0x4aec5e(0x148)]=_0x452cef,this[_0x4aec5e(0x2d0)]();}[_0x44ec13(0x2d0)](){const _0x11daaa=_0x44ec13;this[_0x11daaa(0x399)](a[_0x11daaa(0x1ef)](this[_0x11daaa(0x2b9)][_0x11daaa(0x2d2)]['subscribe'](()=>{const _0x51297e=_0x11daaa;var _0x22409c;const _0x935f47=this[_0x51297e(0x2b9)][_0x51297e(0x2fa)]();let _0x589749=(_0x22409c=this[_0x51297e(0x148)][_0x51297e(0x227)](Ni))!=null?_0x22409c:Mi;_0x935f47 instanceof a['Workbook']&&(_0x589749=_0x935f47['name']),document[_0x51297e(0x36f)]=_0x589749;})));}};ve=Ui([a['OnLifecycle'](a[_0x44ec13(0x30b)][_0x44ec13(0x1a6)],ve),rt(0x0,a[_0x44ec13(0x4e2)]),rt(0x1,a[_0x44ec13(0x259)])],ve);var Li=Object[_0x44ec13(0x2ec)],Ai=Object['getOwnPropertyDescriptor'],ji=(_0x518b89,_0x2b67d8,_0x52f261,_0x5a8c01)=>{const _0x58256f=_0x44ec13;for(var _0x3f835e=_0x5a8c01>0x1?void 0x0:_0x5a8c01?Ai(_0x2b67d8,_0x52f261):_0x2b67d8,_0x4f3a6b=_0x518b89[_0x58256f(0x3b4)]-0x1,_0x5763db;_0x4f3a6b>=0x0;_0x4f3a6b--)(_0x5763db=_0x518b89[_0x4f3a6b])&&(_0x3f835e=(_0x5a8c01?_0x5763db(_0x2b67d8,_0x52f261,_0x3f835e):_0x5763db(_0x3f835e))||_0x3f835e);return _0x5a8c01&&_0x3f835e&&Li(_0x2b67d8,_0x52f261,_0x3f835e),_0x3f835e;},ot=(_0x1c2fe3,_0x29f4cd)=>(_0x4083b9,_0x2fce8d)=>_0x29f4cd(_0x4083b9,_0x2fce8d,_0x1c2fe3);exports['SnapshotServerOverHTTPService']=class{constructor(_0x34be56,_0x4a786f){const _0xcb315d=_0x44ec13;this[_0xcb315d(0x148)]=_0x34be56,this[_0xcb315d(0x223)]=_0x4a786f;}async[_0x44ec13(0x538)](_0x2549c5,_0x3017ce){const _0x3c0230=_0x44ec13;var _0x384ec3;const {unitID:_0x331520,type:_0x3ea7eb,revision:_0x4c2789=0x0}=_0x3017ce,_0x1dcfd6=this[_0x3c0230(0x2ff)]()+'/'+_0x3ea7eb+_0x3c0230(0x3a1)+_0x331520+_0x3c0230(0x4c7)+_0x4c2789,_0x288327=(await this[_0x3c0230(0x223)][_0x3c0230(0x48d)](_0x1dcfd6))[_0x3c0230(0x3c4)],_0x46b6c3=(_0x384ec3=_0x288327[_0x3c0230(0x3c3)])==null?void 0x0:_0x384ec3[_0x3c0230(0x2ce)];if(_0x46b6c3){const _0x5546e2=_0x46b6c3==null?void 0x0:_0x46b6c3[_0x3c0230(0x3f9)],_0x44a21d=_[_0x3c0230(0x4c2)]['encode'](_[_0x3c0230(0x1bc)](_0x5546e2));_0x46b6c3[_0x3c0230(0x3f9)]=_0x44a21d,Object[_0x3c0230(0x161)](_0x46b6c3[_0x3c0230(0x20f)])['forEach'](([,_0x265306])=>{const _0x4c65b4=_0x3c0230,_0x4d27b0=_0x265306[_0x4c65b4(0x3f9)],_0x1f696c=_[_0x4c65b4(0x4c2)][_0x4c65b4(0x4d9)](_[_0x4c65b4(0x1bc)](_0x4d27b0));_0x265306['originalMeta']=_0x1f696c;});}return _0x288327;}async[_0x44ec13(0x157)](_0x160f66,_0x7a1ecf){const _0x33fe76=_0x44ec13,{unitID:_0x22c51b,type:_0x3e44c4,blockID:_0x5dcca3}=_0x7a1ecf,_0x1ed848=this[_0x33fe76(0x16b)]()+'/'+_0x3e44c4+'/unit/'+_0x22c51b+'/block/'+_0x5dcca3;return(await this['_httpService'][_0x33fe76(0x48d)](_0x1ed848))[_0x33fe76(0x3c4)];}async['fetchMissingChangesets'](_0x40887a,_0x954cc6){const _0x21d775=_0x44ec13,{unitID:_0x3e252a,type:_0x12d57e,from:_0x8e7e10,to:_0x57bb1d}=_0x954cc6,_0x39e524=this['_getAPIPrefix']()+'/'+_0x12d57e+_0x21d775(0x3a1)+_0x3e252a+_0x21d775(0x1a1)+_0x8e7e10+_0x21d775(0x38b)+_0x57bb1d;return(await this[_0x21d775(0x223)][_0x21d775(0x48d)](_0x39e524))[_0x21d775(0x3c4)];}[_0x44ec13(0x2ff)](){const _0x30f344=_0x44ec13;var _0x5f226f;return(_0x5f226f=this[_0x30f344(0x148)]['getConfig'](ht))!=null?_0x5f226f:this[_0x30f344(0x16b)]();}[_0x44ec13(0x16b)](){const _0x264d98=_0x44ec13;var _0x325b16;return(_0x325b16=this[_0x264d98(0x148)][_0x264d98(0x227)](lt))!=null?_0x325b16:Gt;}async[_0x44ec13(0x244)](_0x548850,_0x2b622b){const _0x2ec80b=_0x44ec13,_0xa90f7=_0x2ec80b(0x331)+_0x2b622b[_0x2ec80b(0x2ed)]+_0x2ec80b(0x3a1)+_0x2b622b[_0x2ec80b(0x426)]+_0x2ec80b(0x478);return(await this['_httpService'][_0x2ec80b(0x48d)](_0xa90f7,{'params':{'resourceId':JSON['stringify'](_0x2b622b[_0x2ec80b(0x437)])}}))[_0x2ec80b(0x3c4)];}[_0x44ec13(0x246)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x44ec13(0x3a6)](){const _0x2b6c21=_0x44ec13;throw new Error(_0x2b6c21(0x474));}[_0x44ec13(0x392)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x44ec13(0x1ab)]=ji([ot(0x0,a[_0x44ec13(0x259)]),ot(0x1,a[_0x44ec13(0x3ed)](w['HTTPService']))],exports[_0x44ec13(0x1ab)]);var $i=Object[_0x44ec13(0x2ec)],Hi=Object[_0x44ec13(0x2e1)],xi=(_0x30e031,_0xff835d,_0x4855ca,_0x28ca06)=>{const _0x587fa4=_0x44ec13;for(var _0x564a27=_0x28ca06>0x1?void 0x0:_0x28ca06?Hi(_0xff835d,_0x4855ca):_0xff835d,_0x42e98c=_0x30e031[_0x587fa4(0x3b4)]-0x1,_0x2a0d0c;_0x42e98c>=0x0;_0x42e98c--)(_0x2a0d0c=_0x30e031[_0x42e98c])&&(_0x564a27=(_0x28ca06?_0x2a0d0c(_0xff835d,_0x4855ca,_0x564a27):_0x2a0d0c(_0x564a27))||_0x564a27);return _0x28ca06&&_0x564a27&&$i(_0xff835d,_0x4855ca,_0x564a27),_0x564a27;},ce=(_0x297332,_0x1c1008)=>(_0x271430,_0x22e985)=>_0x1c1008(_0x271430,_0x22e985,_0x297332);let xe=class extends a[_0x44ec13(0x536)]{constructor(_0x4fd9b2,_0x57f108,_0x33c6d4,_0x4ce0bf,_0x2756bf){const _0x5dcdc8=_0x44ec13;super(_0x4fd9b2,_0x57f108,_0x33c6d4),this[_0x5dcdc8(0x4cc)]=_0x4ce0bf,this[_0x5dcdc8(0x49d)]=_0x2756bf;}[_0x44ec13(0x1ac)](_0x36c086,_0x44b694){const _0x5974b8=_0x44ec13,_0x51cbc0=this[_0x5974b8(0x19c)](_0x36c086);if(_0x51cbc0)try{const _0x180408=this['_transformStack'](_0x51cbc0,_0x44b694);this['_substituteUndoStack'](_0x36c086,_0x180408);}catch(_0x23ac57){this[_0x5974b8(0x49d)][_0x5974b8(0x182)]('[CollaborationUndoRedoService]',_0x23ac57),this[_0x5974b8(0x201)](_0x36c086);}const _0x189eb7=this[_0x5974b8(0x429)](_0x36c086);if(_0x189eb7)try{const _0x3c421a=this[_0x5974b8(0x152)](_0x189eb7,_0x44b694);this[_0x5974b8(0x290)](_0x36c086,_0x3c421a);}catch(_0x2c5d08){this[_0x5974b8(0x49d)][_0x5974b8(0x182)](_0x2c5d08),this['_clearRedo'](_0x36c086);}}['_clearUndo'](_0x499096){const _0x1bffc0=_0x44ec13,_0x26306e=this['_getUndoStack'](_0x499096);_0x26306e&&(_0x26306e[_0x1bffc0(0x3b4)]=0x0,this['_updateStatus']());}[_0x44ec13(0x155)](_0x3a6e1f){const _0x6591dd=_0x44ec13,_0x1fd4ec=this['_getRedoStack'](_0x3a6e1f);_0x1fd4ec&&(_0x1fd4ec[_0x6591dd(0x3b4)]=0x0,this['_updateStatus']());}[_0x44ec13(0x33b)](_0x58c4ae,_0x1ef3f0){const _0x59dcc3=_0x44ec13;this[_0x59dcc3(0x514)][_0x59dcc3(0x47a)](_0x58c4ae,_0x1ef3f0),this['_updateStatus']();}[_0x44ec13(0x290)](_0x35b7b0,_0x15dc7e){const _0x2f653e=_0x44ec13;this['_redoStacks'][_0x2f653e(0x47a)](_0x35b7b0,_0x15dc7e),this[_0x2f653e(0x490)]();}[_0x44ec13(0x152)](_0x787558,_0x51dcf9){const _0x219f7d=_0x44ec13,_0x54cddc=[];let _0x575214=_0x51dcf9,_0x5e8208=_0x51dcf9;for(let _0x58c7dc=_0x787558[_0x219f7d(0x3b4)]-0x1;_0x58c7dc>=0x0;_0x58c7dc--){const {unitID:_0x2a2e2b,undoMutations:_0x5acb05,redoMutations:_0x3ed1f2}=_0x787558[_0x58c7dc],_0x43ac88=this[_0x219f7d(0x4cc)]['transformMutationsWithChangeset'](_0x575214,_0x5acb05),_0x3f1597=this[_0x219f7d(0x4cc)][_0x219f7d(0x304)](_0x5e8208,_0x3ed1f2);if(_['isTransformMutationsWithChangesetFailure'](_0x43ac88)||_['isTransformMutationsWithChangesetFailure'](_0x3f1597)){this[_0x219f7d(0x49d)][_0x219f7d(0x182)](_0x219f7d(0x291),'transformStack\x20failed!',_0x43ac88,_0x3f1597);break;}_0x575214=_0x43ac88[_0x219f7d(0x24f)],_0x5e8208=_0x3f1597[_0x219f7d(0x24f)],_0x54cddc[_0x219f7d(0x3a3)]({'unitID':_0x2a2e2b,'undoMutations':_0x43ac88['m2Prime'],'redoMutations':_0x3f1597[_0x219f7d(0x2f1)]});}return _0x54cddc[_0x219f7d(0x48f)]();}};xe=xi([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x44ec13(0x359)]),ce(0x2,a[_0x44ec13(0x221)]),ce(0x3,_[_0x44ec13(0x275)]),ce(0x4,a['ILogService'])],xe);class Nt extends a[_0x44ec13(0x4c6)]{constructor(){const _0x4c6b6f=_0x44ec13;super(),d(this,_0x4c6b6f(0x52f)),this['urlChange$']=v[_0x4c6b6f(0x32d)](window,_0x4c6b6f(0x45b))[_0x4c6b6f(0x2d5)](v[_0x4c6b6f(0x441)](this['dispose$']),v['shareReplay'](0x1),v[_0x4c6b6f(0x3e4)](void 0x0));}[_0x44ec13(0x256)](_0xad7431,_0x1bd8cb,_0x22d2c2=!0x1){const _0x20d34b=_0x44ec13,_0x4ed583=new URL(window['location'][_0x20d34b(0x2a9)]);_0x4ed583[_0x20d34b(0x23a)][_0x20d34b(0x47a)](_0xad7431,_0x1bd8cb),_0x22d2c2?window[_0x20d34b(0x3cd)]['replaceState']('','',_0x4ed583['toString']()):window[_0x20d34b(0x3cd)][_0x20d34b(0x3b7)]('','',_0x4ed583[_0x20d34b(0x503)]());}[_0x44ec13(0x26c)](_0x57cd05,_0x44496a=!0x1){const _0x3df439=_0x44ec13,_0x394327=new URL(window[_0x3df439(0x354)][_0x3df439(0x2a9)]);_0x394327[_0x3df439(0x23a)][_0x3df439(0x20e)](_0x57cd05),_0x44496a?window[_0x3df439(0x3cd)]['replaceState']('','',_0x394327[_0x3df439(0x503)]()):window[_0x3df439(0x3cd)]['pushState']('','',_0x394327[_0x3df439(0x503)]());}['getParam'](_0xcf05c7){const _0x357e0a=_0x44ec13;var _0x179d55;return(_0x179d55=new URL(window[_0x357e0a(0x354)][_0x357e0a(0x2a9)])[_0x357e0a(0x23a)]['get'](_0xcf05c7))!=null?_0x179d55:void 0x0;}}const Ne=_0x44ec13(0x4d0),ki=_0x44ec13(0x2f9),Bi='collab-rect-range-',le=0x6,Vi=1.5,Me=0x4,Fi=1.5,Wi='rgba(255,\x20255,\x20255,\x200.01)';class at{constructor(_0x595f4b,_0x2ca643,_0x1605ff,_0x457dac){const _0x17ea49=_0x44ec13;d(this,_0x17ea49(0x14a),[]),d(this,_0x17ea49(0x47b),null),d(this,_0x17ea49(0x45d),null),d(this,_0x17ea49(0x4de),null),d(this,_0x17ea49(0x3d5),null),d(this,_0x17ea49(0x449),null),(this[_0x17ea49(0x379)]=_0x595f4b,this['_scene']=_0x2ca643,this[_0x17ea49(0x1e0)]=_0x1605ff,this[_0x17ea49(0x3fe)]=_0x457dac,this['_render']());}set[_0x44ec13(0x524)](_0x1d67f9){const _0x42ebfa=_0x44ec13;_0x1d67f9?(this[_0x42ebfa(0x4de)]&&this['_anchorDot'][_0x42ebfa(0x145)](),this[_0x42ebfa(0x45d)]&&this[_0x42ebfa(0x45d)]['show']()):(this[_0x42ebfa(0x4de)]&&this[_0x42ebfa(0x4de)]['show'](),this[_0x42ebfa(0x45d)]&&this[_0x42ebfa(0x45d)][_0x42ebfa(0x145)]());}[_0x44ec13(0x184)](){const _0x22437b=_0x44ec13;for(const _0x77b437 of this[_0x22437b(0x14a)])_0x77b437['dispose']();this[_0x22437b(0x45d)]&&this[_0x22437b(0x45d)]['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x22437b(0x184)](),this[_0x22437b(0x47b)]&&this[_0x22437b(0x47b)][_0x22437b(0x184)](),this[_0x22437b(0x449)]&&this[_0x22437b(0x449)]();}[_0x44ec13(0x3a8)](){const _0x30bf28=_0x44ec13;var _0x5799fe;const {_docSkeleton:_0x137ad8,_document:_0x504406}=this,{color:_0x71bdb8,name:_0x50a5d0,ranges:_0x418741}=this['_cursor'],_0x5d022e=_0x504406[_0x30bf28(0x2a4)](),{docsLeft:_0x2e5c49,docsTop:_0x194c94}=_0x5d022e,_0x51dcfd=new U[(_0x30bf28(0x168))](_0x5d022e,_0x137ad8);for(const {startOffset:_0x21015d,endOffset:_0x2c3089,collapsed:_0x116680,isActive:_0x27d6f7}of _0x418741){const _0xf69362=_0x137ad8['findNodePositionByCharIndex'](_0x21015d),_0x29fbc8=_0x137ad8[_0x30bf28(0x20a)](_0x2c3089);if(_0x27d6f7){const {contentBoxPointGroup:_0x36637c}=_0x51dcfd[_0x30bf28(0x44a)](_0x29fbc8,_0x29fbc8);if(_0x36637c[_0x30bf28(0x3b4)]===0x0)continue;this['_drawAnchor'](_0x71bdb8,_0x36637c,_0x2e5c49,_0x194c94,_0x50a5d0),this['_eventUnsubscribe']=this[_0x30bf28(0x2b4)]();}if(!_0x116680&&_0xf69362&&_0x29fbc8){if(U[_0x30bf28(0x408)](_0xf69362,_0x29fbc8)){const _0x350a73=new U[(_0x30bf28(0x321))](_0x5d022e,_0x137ad8),{pointGroup:_0x5acf15}=(_0x5799fe=_0x350a73[_0x30bf28(0x44a)](_0xf69362,_0x29fbc8))!=null?_0x5799fe:{};if(_0x5acf15==null||_0x5acf15['length']===0x0)continue;this[_0x30bf28(0x543)](_0x71bdb8,_0x5acf15,_0x2e5c49,_0x194c94);}else{const {contentBoxPointGroup:_0x1de9b5}=_0x51dcfd[_0x30bf28(0x44a)](_0xf69362,_0x29fbc8);if(_0x1de9b5[_0x30bf28(0x3b4)]===0x0)continue;this[_0x30bf28(0x2de)](_0x71bdb8,_0x1de9b5,_0x2e5c49,_0x194c94);}}}}['_drawAnchor'](_0x1ff7d0,_0x1fbf99,_0x10e0c8,_0xbae128,_0x67e256){const _0x5a6493=_0x44ec13,_0x241757=this[_0x5a6493(0x1e1)](_0x1fbf99),{left:_0x38a990,top:_0x40dda3,height:_0xbcc00f}=_0x241757,_0x301ff0=this[_0x5a6493(0x24e)](),_0x4c9355=Fi/_0x301ff0,_0x2d1a9a=new R[(_0x5a6493(0x318))](Ne+a[_0x5a6493(0x3ce)]['generateRandomId'](le),{'left':_0x38a990+_0x10e0c8-_0x4c9355,'top':_0x40dda3+_0xbae128,'height':_0xbcc00f,'width':Vi,'fill':_0x1ff7d0||R[_0x5a6493(0x17c)](a['COLORS'][_0x5a6493(0x340)],0x0),'strokeWidth':_0x4c9355,'stroke':Wi,'evented':!0x0});this['_anchor']=_0x2d1a9a,this['_scene'][_0x5a6493(0x435)](_0x2d1a9a,U[_0x5a6493(0x52e)]);const _0x3a1088=new R['Rect'](Ne+a['Tools'][_0x5a6493(0x22b)](le),{'left':_0x38a990+_0x10e0c8-_0x4c9355,'top':_0x40dda3+_0xbae128-Me/0x2,'height':Me,'width':Me,'fill':_0x1ff7d0||R['getColor'](a[_0x5a6493(0x34a)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x1ff7d0||R[_0x5a6493(0x17c)](a[_0x5a6493(0x34a)][_0x5a6493(0x340)],0x0),'evented':!0x1});this[_0x5a6493(0x4de)]=_0x3a1088,this[_0x5a6493(0x53d)]['addObject'](_0x3a1088,U['TEXT_RANGE_LAYER_INDEX']);const _0x642bd5=new be(Ne+a[_0x5a6493(0x3ce)][_0x5a6493(0x22b)](le),{'left':_0x38a990+_0x10e0c8-_0x4c9355,'top':_0x40dda3+_0xbae128-_e,'text':_0x67e256,'color':_0x1ff7d0});this[_0x5a6493(0x45d)]=_0x642bd5,this[_0x5a6493(0x53d)][_0x5a6493(0x435)](_0x642bd5,U[_0x5a6493(0x52e)]),this[_0x5a6493(0x524)]=!0x1;}[_0x44ec13(0x2b4)](){const _0x1d58d2=_0x44ec13,_0x33d171=this[_0x1d58d2(0x47b)][_0x1d58d2(0x26d)]['subscribeEvent'](()=>{const _0x3269b6=_0x1d58d2;this[_0x3269b6(0x524)]=!0x0;}),_0x1caf67=this['_anchor'][_0x1d58d2(0x376)][_0x1d58d2(0x238)](()=>{const _0x4e6b47=_0x1d58d2;this['_hideTimer']&&clearTimeout(this[_0x4e6b47(0x3d5)]),this[_0x4e6b47(0x3d5)]=setTimeout(()=>{const _0xd730f4=_0x4e6b47;this[_0xd730f4(0x524)]=!0x1;},0x7d0);});return()=>{_0x33d171['unsubscribe'](),_0x1caf67['unsubscribe']();};}[_0x44ec13(0x2de)](_0x160b72,_0x210ccc,_0x2ec22c,_0x3f06a1){const _0x1ed40e=_0x44ec13,_0x444f19=new a[(_0x1ed40e(0x29b))](_0x160b72)[_0x1ed40e(0x173)](0.2)[_0x1ed40e(0x3d7)](),_0x967bc8=new R[(_0x1ed40e(0x186))](ki+a[_0x1ed40e(0x3ce)][_0x1ed40e(0x22b)](le),{'pointsGroup':_0x210ccc,'fill':_0x444f19||R['getColor'](a['COLORS'][_0x1ed40e(0x340)],0.2),'left':_0x2ec22c,'top':_0x3f06a1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ed40e(0x14a)][_0x1ed40e(0x3a3)](_0x967bc8),this[_0x1ed40e(0x53d)]['addObject'](_0x967bc8,U[_0x1ed40e(0x52e)]);}[_0x44ec13(0x543)](_0x2a1655,_0x7ca041,_0x4a22d4,_0x4533a7){const _0x8f9d35=_0x44ec13,_0x5dbe70=new a[(_0x8f9d35(0x29b))](_0x2a1655)[_0x8f9d35(0x173)](0.2)[_0x8f9d35(0x3d7)](),_0x3dc2a5=new R[(_0x8f9d35(0x186))](Bi+a[_0x8f9d35(0x3ce)][_0x8f9d35(0x22b)](le),{'pointsGroup':_0x7ca041,'fill':_0x5dbe70||R[_0x8f9d35(0x17c)](a['COLORS'][_0x8f9d35(0x340)],0.2),'left':_0x4a22d4,'top':_0x4533a7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x8f9d35(0x14a)][_0x8f9d35(0x3a3)](_0x3dc2a5),this[_0x8f9d35(0x53d)]['addObject'](_0x3dc2a5,U['TEXT_RANGE_LAYER_INDEX']);}[_0x44ec13(0x1e1)](_0x41cfd5){const _0x2ba978=_0x41cfd5[0x0],_0x347d40=_0x2ba978[0x0],_0x4abad5=_0x2ba978[0x2],{x:_0x2603b5,y:_0x585220}=_0x347d40,{x:_0x1d1cfb,y:_0xc975fc}=_0x4abad5;return{'left':_0x2603b5,'top':_0x585220,'width':_0x1d1cfb-_0x2603b5,'height':_0xc975fc-_0x585220};}['_getScale'](){const _0x5279b3=_0x44ec13,{scaleX:_0x58b83d,scaleY:_0x2fb45c}=this[_0x5279b3(0x53d)][_0x5279b3(0x465)]();return Math[_0x5279b3(0x41d)](_0x58b83d,_0x2fb45c);}}var Gi=Object[_0x44ec13(0x2ec)],Yi=Object[_0x44ec13(0x2e1)],Ki=(_0x2f90ba,_0x229b1b,_0x523b8a,_0x4753e3)=>{const _0x3a2515=_0x44ec13;for(var _0x1f9e95=_0x4753e3>0x1?void 0x0:_0x4753e3?Yi(_0x229b1b,_0x523b8a):_0x229b1b,_0xd7a43c=_0x2f90ba[_0x3a2515(0x3b4)]-0x1,_0x38641c;_0xd7a43c>=0x0;_0xd7a43c--)(_0x38641c=_0x2f90ba[_0xd7a43c])&&(_0x1f9e95=(_0x4753e3?_0x38641c(_0x229b1b,_0x523b8a,_0x1f9e95):_0x38641c(_0x1f9e95))||_0x1f9e95);return _0x4753e3&&_0x1f9e95&&Gi(_0x229b1b,_0x523b8a,_0x1f9e95),_0x1f9e95;},de=(_0x16d02a,_0x3419d5)=>(_0x5ee4ad,_0x4469ce)=>_0x3419d5(_0x5ee4ad,_0x4469ce,_0x16d02a);let me=class extends a[_0x44ec13(0x4c6)]{constructor(_0x689df,_0x4559e8,_0x5df2bb,_0x9a2024,_0x40a2a4){const _0x4bc8bc=_0x44ec13;super(),d(this,_0x4bc8bc(0x3ba),[]),d(this,_0x4bc8bc(0x193),[]),(this[_0x4bc8bc(0x2a0)]=_0x689df,this[_0x4bc8bc(0x1c4)]=_0x4559e8,this[_0x4bc8bc(0x3fd)]=_0x5df2bb,this[_0x4bc8bc(0x30e)]=_0x9a2024,this[_0x4bc8bc(0x3a5)]=_0x40a2a4,this[_0x4bc8bc(0x2d0)]());}['_init'](){const _0x273dee=_0x44ec13,_0x576efb=this['_context'][_0x273dee(0x1c9)],_0x4ed919=this[_0x273dee(0x1c4)];this[_0x273dee(0x399)](v['combineLatest']([this[_0x273dee(0x3fd)][_0x273dee(0x51a)](_0x576efb),this[_0x273dee(0x3a5)][_0x273dee(0x214)]])['pipe'](E['map'](([_0x1be1b7,_0x3d05f2])=>({'skeleton':_0x4ed919['getSkeleton'](),'cursors':[..._0x1be1b7[_0x273dee(0x541)]()]['flatMap'](_0x1e81ad=>({..._0x1e81ad,'color':_0x3d05f2[_0x1e81ad[_0x273dee(0x493)]]}))})))[_0x273dee(0x1d4)](_0x410701=>{const _0x1f8c41=_0x273dee;if(this[_0x1f8c41(0x15e)](),_0x410701){const {skeleton:_0x30589b,cursors:_0x5476ea}=_0x410701;this['_updateCollabCursors'](_0x30589b,_0x5476ea);}})),this[_0x273dee(0x206)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x2e32bd,_0x241beb){const _0x47cf30=_0x44ec13,{scene:_0x54526a,mainComponent:_0x3706df}=this[_0x47cf30(0x2a0)],_0xd62c3b=_0x241beb[_0x47cf30(0x341)](_0x515a97=>new at(_0x515a97,_0x54526a,_0x2e32bd,_0x3706df));this[_0x47cf30(0x3ba)]=_0xd62c3b,this['_cursors']=_0x241beb;}[_0x44ec13(0x4a9)](){const _0x103b8d=_0x44ec13;this[_0x103b8d(0x15e)]();const {scene:_0x30c695,mainComponent:_0x191082}=this['_context'],_0x1fa151=this[_0x103b8d(0x1c4)][_0x103b8d(0x498)](),_0x4ae463=this[_0x103b8d(0x193)]['map'](_0x17b60c=>new at(_0x17b60c,_0x30c695,_0x1fa151,_0x191082));this['_cursorShapes']=_0x4ae463;}['_removeCollabCursors'](){const _0x7cbdbb=_0x44ec13;this[_0x7cbdbb(0x3ba)][_0x7cbdbb(0x39a)](_0x3aa43f=>_0x3aa43f[_0x7cbdbb(0x184)]()),this[_0x7cbdbb(0x3ba)]=[];}['_initCommandExecutedListener'](){const _0x36c0bd=_0x44ec13,_0x182014=[U[_0x36c0bd(0x333)]['id']];this['disposeWithMe'](this[_0x36c0bd(0x30e)][_0x36c0bd(0x526)](_0x4139da=>{const _0x5272b3=_0x36c0bd;_0x182014[_0x5272b3(0x1da)](_0x4139da['id'])&&_0x4139da[_0x5272b3(0x2eb)]['unitId']===this[_0x5272b3(0x2a0)][_0x5272b3(0x1c9)]&&this[_0x5272b3(0x4a9)]();}));}['_initResize'](){const _0x26a273=_0x44ec13;this[_0x26a273(0x399)](a[_0x26a273(0x18e)](this[_0x26a273(0x2a0)][_0x26a273(0x1ce)][_0x26a273(0x1e3)])[_0x26a273(0x2d5)](E[_0x26a273(0x1ee)](_0x15aa06=>_0x15aa06[_0x26a273(0x2ed)]===R[_0x26a273(0x48a)][_0x26a273(0x521)]),E[_0x26a273(0x3f0)](0x10))[_0x26a273(0x1d4)](()=>{const _0x498545=_0x26a273;this[_0x498545(0x4a9)]();}));}};me=Ki([a['OnLifecycle'](a[_0x44ec13(0x30b)][_0x44ec13(0x287)],me),de(0x1,a['Inject'](B[_0x44ec13(0x53e)])),de(0x2,a[_0x44ec13(0x3ed)](te)),de(0x3,a[_0x44ec13(0x359)]),de(0x4,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4b1)]))],me);var Xi=Object[_0x44ec13(0x2ec)],qi=Object[_0x44ec13(0x2e1)],Ji=(_0x4f1cf5,_0x42b0e3,_0x4322d7,_0x2fe00e)=>{const _0x2b2236=_0x44ec13;for(var _0x42ed90=_0x2fe00e>0x1?void 0x0:_0x2fe00e?qi(_0x42b0e3,_0x4322d7):_0x42b0e3,_0x36e3aa=_0x4f1cf5[_0x2b2236(0x3b4)]-0x1,_0x58cc98;_0x36e3aa>=0x0;_0x36e3aa--)(_0x58cc98=_0x4f1cf5[_0x36e3aa])&&(_0x42ed90=(_0x2fe00e?_0x58cc98(_0x42b0e3,_0x4322d7,_0x42ed90):_0x58cc98(_0x42ed90))||_0x42ed90);return _0x2fe00e&&_0x42ed90&&Xi(_0x42b0e3,_0x4322d7,_0x42ed90),_0x42ed90;},Le=(_0x570641,_0x29e3c7)=>(_0x1be9f7,_0x1259b6)=>_0x29e3c7(_0x1be9f7,_0x1259b6,_0x570641);let Ce=class{constructor(_0x116b46,_0x49cc9f,_0xbf4ec0){const _0x5a58f3=_0x44ec13;this[_0x5a58f3(0x148)]=_0x116b46,this[_0x5a58f3(0x223)]=_0x49cc9f,this[_0x5a58f3(0x496)]=_0xbf4ec0,this[_0x5a58f3(0x144)]();}['init'](){const _0x24792=_0x44ec13;this[_0x24792(0x223)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3248c3,_0x6306c8)=>_0x6306c8(_0x3248c3)[_0x24792(0x2d5)](v[_0x24792(0x497)](async _0x37af7c=>{const _0x536356=_0x24792,_0x118f3c=_0x37af7c;if(_0x118f3c[_0x536356(0x4fe)]===0x191&&window[_0x536356(0x4ea)](this[_0x536356(0x496)]['t'](_0x536356(0x4e8)))){const _0x187837=window[_0x536356(0x472)](window['location']['href']);window[_0x536356(0x354)]['href']=this[_0x536356(0x45a)]()+_0x536356(0x204)+_0x187837;}return _0x118f3c;}))});}[_0x44ec13(0x45a)](){const _0x38bd27=_0x44ec13;var _0x3fadf6;return(_0x3fadf6=this[_0x38bd27(0x148)]['getConfig'](It))!=null?_0x3fadf6:Qt;}};Ce=Ji([Le(0x0,a['IConfigService']),Le(0x1,a[_0x44ec13(0x3ed)](w['HTTPService'])),Le(0x2,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x516)]))],Ce);var zi=Object['defineProperty'],Zi=Object[_0x44ec13(0x2e1)],Qi=(_0x36505a,_0x3c3ccd,_0x3dbcd3,_0x15d60e)=>{for(var _0x8e56a6=_0x15d60e>0x1?void 0x0:_0x15d60e?Zi(_0x3c3ccd,_0x3dbcd3):_0x3c3ccd,_0x7824f5=_0x36505a['length']-0x1,_0x5f4d82;_0x7824f5>=0x0;_0x7824f5--)(_0x5f4d82=_0x36505a[_0x7824f5])&&(_0x8e56a6=(_0x15d60e?_0x5f4d82(_0x3c3ccd,_0x3dbcd3,_0x8e56a6):_0x5f4d82(_0x8e56a6))||_0x8e56a6);return _0x15d60e&&_0x8e56a6&&zi(_0x3c3ccd,_0x3dbcd3,_0x8e56a6),_0x8e56a6;},ct=(_0x437474,_0x3a4bb0)=>(_0x4eebda,_0x1c0c38)=>_0x3a4bb0(_0x4eebda,_0x1c0c38,_0x437474);const Mt=_0x44ec13(0x485),en='/universer-api/authz';exports['AuthzIoHttpService']=class extends a[_0x44ec13(0x209)]{constructor(_0x4f76a5,_0x468183){const _0x2710b8=_0x44ec13;super(),this[_0x2710b8(0x3c5)]=_0x4f76a5,this[_0x2710b8(0x148)]=_0x468183,this[_0x2710b8(0x412)]();}[_0x44ec13(0x412)](){const _0x196205=_0x44ec13,_0x2b9737=this;this[_0x196205(0x399)](this[_0x196205(0x3c5)][_0x196205(0x40f)]({'priority':0x3e7,'interceptor':w['MergeInterceptorFactory']({'isMatch'(_0x3c2e0c){const _0x2d6409=_0x196205;var _0x5bf2b2;if(_0x3c2e0c[_0x2d6409(0x225)]===_0x2d6409(0x288)&&((_0x5bf2b2=_0x3c2e0c[_0x2d6409(0x18c)])!=null&&_0x5bf2b2['body'])){const {objectID:_0x1b9f3b,objectType:_0x30247e}=_0x3c2e0c['requestParams'][_0x2d6409(0x3c4)]||{};if(!_0x1b9f3b||_0x30247e===void 0x0)return!0x1;const _0x283e26=_0x2b9737['_getAPIPrefixPath']()+'/'+_0x30247e+'/object/'+_0x1b9f3b+_0x2d6409(0x544);if(_0x3c2e0c[_0x2d6409(0x3b8)]===_0x283e26)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x56a4f9){const _0x1d5676=_0x196205;var _0x1091d0;return(_0x1091d0=_0x56a4f9[_0x1d5676(0x18c)])==null?void 0x0:_0x1091d0[_0x1d5676(0x3c4)];},'mergeParamsToRequest'(_0x59036a,_0x318c47){const _0x419b9c=_0x196205,_0x47d8ef=_0x2b9737[_0x419b9c(0x484)]()+_0x419b9c(0x2f4),_0x1eeda6=_0x59036a[_0x419b9c(0x25b)]((_0x5de17f,_0x13ad20)=>{const _0x5a653f=_0x419b9c,{unitID:_0x51fc28,objectID:_0x5bf0eb,objectType:_0x4fc764,actions:_0x5a9385}=_0x13ad20;return _0x5de17f[_0x51fc28]||(_0x5de17f[_0x51fc28]={}),_0x5de17f[_0x51fc28][_0x5bf0eb]||(_0x5de17f[_0x51fc28][_0x5bf0eb]={'objectID':_0x5bf0eb,'objectType':_0x4fc764,'actions':[]}),_0x5de17f[_0x51fc28][_0x5bf0eb]['actions'][_0x5a653f(0x3a3)](..._0x5a9385),_0x5de17f;},{}),_0x5dfb48=[];for(const _0xed49ba in _0x1eeda6)for(const _0x177d6c in _0x1eeda6[_0xed49ba]){const {actions:_0x1fa867,objectType:_0x395dae}=_0x1eeda6[_0xed49ba][_0x177d6c],_0xc60472=[...new Set(_0x1fa867)];_0x5dfb48['push']({'unitID':_0xed49ba,'objectID':_0x177d6c,'objectType':_0x395dae,'actions':_0xc60472});}return new w['HTTPRequest'](_0x419b9c(0x288),_0x47d8ef,{'headers':_0x318c47[_0x419b9c(0x189)],'withCredentials':_0x318c47[_0x419b9c(0x207)],'responseType':_0x318c47[_0x419b9c(0x3af)],'body':{'requests':_0x5dfb48}});}},{'distributeResult'(_0x815186,_0x121024){const _0xf85c08=_0x196205,{objectActions:_0x623383}=_0x815186;return _0x121024[_0xf85c08(0x341)](_0x2d02bf=>{const _0x23241e=_0xf85c08,{unitID:_0x1cd462,objectID:_0x3ef187,actions:_0x203208}=_0x2d02bf,_0x10c32e=_0x623383[_0x23241e(0x512)](_0x4b6510=>_0x4b6510[_0x23241e(0x426)]===_0x1cd462&&_0x4b6510[_0x23241e(0x40a)]===_0x3ef187),_0xc7730b=_0x203208['map'](_0x5a07f8=>_0x10c32e==null?void 0x0:_0x10c32e[_0x23241e(0x4ab)][_0x23241e(0x512)](_0x4a5e13=>_0x4a5e13[_0x23241e(0x537)]===_0x5a07f8))[_0x23241e(0x1ee)](_0x4111e3=>!!_0x4111e3);return{'config':_0x2d02bf,'result':{'actions':_0xc7730b,'error':_0x815186[_0x23241e(0x182)]}};});}})}));}[_0x44ec13(0x484)](){const _0x2cab0f=_0x44ec13;var _0x3bdc7e;return(_0x3bdc7e=this[_0x2cab0f(0x148)][_0x2cab0f(0x227)](Mt))!=null?_0x3bdc7e:en;}async[_0x44ec13(0x461)](_0x42e1f6){const _0x1383e7=_0x44ec13,_0x35581c=this['_getAPIPrefixPath']()+'/'+_0x42e1f6[_0x1383e7(0x3d2)]+_0x1383e7(0x4f3);return(await this['_HTTPService'][_0x1383e7(0x4ee)](_0x35581c,{'body':_0x42e1f6}))['body'][_0x1383e7(0x40a)]||'';}async[_0x44ec13(0x400)](_0x17e02f){const _0x31ae97=_0x44ec13,_0x44663f=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x31ae97(0x3c5)][_0x31ae97(0x4ee)](_0x44663f,{'body':_0x17e02f}))[_0x31ae97(0x3c4)]['objects'];}async[_0x44ec13(0x31c)](_0x257472){const _0x2ccc11=_0x44ec13,_0x4751a1=this['_getAPIPrefixPath']()+'/'+_0x257472[_0x2ccc11(0x3d2)]+_0x2ccc11(0x4d3)+_0x257472[_0x2ccc11(0x40a)];await this[_0x2ccc11(0x3c5)][_0x2ccc11(0x141)](_0x4751a1,{'body':_0x257472});}async['allowed'](_0x58b6f4){const _0x4fe5a9=_0x44ec13,_0x263261=this[_0x4fe5a9(0x484)]()+'/'+_0x58b6f4[_0x4fe5a9(0x3d2)]+'/object/'+_0x58b6f4[_0x4fe5a9(0x40a)]+'/allowed';return(await this[_0x4fe5a9(0x3c5)][_0x4fe5a9(0x4ee)](_0x263261,{'body':_0x58b6f4}))[_0x4fe5a9(0x3c4)][_0x4fe5a9(0x4ab)];}async[_0x44ec13(0x373)](_0x4e6dc7){const _0x33b50d=_0x44ec13,_0x2c436a=this[_0x33b50d(0x484)]()+_0x33b50d(0x2f4);return(await this[_0x33b50d(0x3c5)][_0x33b50d(0x4ee)](_0x2c436a,{'body':{'requests':_0x4e6dc7}}))[_0x33b50d(0x3c4)][_0x33b50d(0x251)];}async[_0x44ec13(0x17b)](_0x45f121){const _0x31c478=_0x44ec13,_0x580a4a=this['_getAPIPrefixPath']()+'/'+_0x45f121[_0x31c478(0x3d2)]+_0x31c478(0x48b),_0x2c4f23=await this[_0x31c478(0x3c5)][_0x31c478(0x4ee)](_0x580a4a,{'body':_0x45f121});return{'roles':_0x2c4f23['body'][_0x31c478(0x14b)],'actions':_0x2c4f23[_0x31c478(0x3c4)][_0x31c478(0x4ab)]};}async['deleteCollaborator'](_0x10b65e){const _0x5cc3cc=_0x44ec13,_0x28e9cf=this[_0x5cc3cc(0x484)]()+_0x5cc3cc(0x1db);await this['_HTTPService']['delete'](_0x28e9cf,{'params':{'collaboratorID':_0x10b65e[_0x5cc3cc(0x26f)],'objectID':_0x10b65e[_0x5cc3cc(0x40a)],'unitID':_0x10b65e[_0x5cc3cc(0x426)]}});}async[_0x44ec13(0x29c)](_0x585b15){const _0x421f5d=_0x44ec13,_0x58cd41=this[_0x421f5d(0x484)]()+_0x421f5d(0x1db);await this[_0x421f5d(0x3c5)][_0x421f5d(0x3d1)](_0x58cd41,{'body':_0x585b15});}async[_0x44ec13(0x40c)](_0x847322){const _0xc3b6a2=_0x44ec13,_0xae68df=this[_0xc3b6a2(0x484)]()+_0xc3b6a2(0x1db);await this[_0xc3b6a2(0x3c5)][_0xc3b6a2(0x4ee)](_0xae68df,{'body':_0x847322});}async['listCollaborators'](_0x1ad4dc){const _0x1d4342=_0x44ec13,_0x447835=this['_getAPIPrefixPath']()+_0x1d4342(0x1db);return(await this[_0x1d4342(0x3c5)][_0x1d4342(0x48d)](_0x447835,{'params':{'objectID':_0x1ad4dc['objectID'],'unitID':_0x1ad4dc[_0x1d4342(0x426)]}}))['body'][_0x1d4342(0x337)];}async[_0x44ec13(0x21c)](_0x5d3e7d){const _0x186ceb=_0x44ec13,_0x2e50b5=this[_0x186ceb(0x484)]()+'/collaborator';await this[_0x186ceb(0x3c5)][_0x186ceb(0x141)](_0x2e50b5,{'body':_0x5d3e7d});}},exports[_0x44ec13(0x3ea)]=Qi([ct(0x0,a[_0x44ec13(0x3ed)](w['HTTPService'])),ct(0x1,a['Inject'](a['IConfigService']))],exports['AuthzIoHttpService']);var tn=Object[_0x44ec13(0x2ec)],sn=Object[_0x44ec13(0x2e1)],nn=(_0x53e64e,_0x178487,_0x2cadbc,_0x11e5bb)=>{const _0x11c502=_0x44ec13;for(var _0x609ee6=_0x11e5bb>0x1?void 0x0:_0x11e5bb?sn(_0x178487,_0x2cadbc):_0x178487,_0x76669d=_0x53e64e[_0x11c502(0x3b4)]-0x1,_0x41c1d6;_0x76669d>=0x0;_0x76669d--)(_0x41c1d6=_0x53e64e[_0x76669d])&&(_0x609ee6=(_0x11e5bb?_0x41c1d6(_0x178487,_0x2cadbc,_0x609ee6):_0x41c1d6(_0x609ee6))||_0x609ee6);return _0x11e5bb&&_0x609ee6&&tn(_0x178487,_0x2cadbc,_0x609ee6),_0x609ee6;},Ae=(_0x8c97f5,_0x587ee7)=>(_0x34e8b0,_0x436791)=>_0x587ee7(_0x34e8b0,_0x436791,_0x8c97f5);const rn=[_0x44ec13(0x382),_0x44ec13(0x1fa),_0x44ec13(0x27b),_0x44ec13(0x213),'image/bmp'],on=0x5*0x400*0x400,an=_0x44ec13(0x448),cn='/universer-api/stream/file/upload',ln='EXCHANGE_SIGN_URL_SERVER_URL_KEY',hn=_0x44ec13(0x2f6);exports[_0x44ec13(0x23f)]=class{constructor(_0x312419,_0x3b4ffe,_0x47ddcb){const _0x2853c7=_0x44ec13;d(this,'_waitCount',0x0),d(this,_0x2853c7(0x316),new v['Subject']()),d(this,_0x2853c7(0x1e4),this[_0x2853c7(0x316)]),d(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x312419,this['_configService']=_0x3b4ffe,this[_0x2853c7(0x2b9)]=_0x47ddcb);}[_0x44ec13(0x2b6)](_0x543561){this['_waitCount']=_0x543561,this['_change$']['next'](_0x543561);}[_0x44ec13(0x42e)](_0xb0de73,_0x497b5e){const _0x41ff21=_0x44ec13;if(_0x497b5e===L['ImageSourceType'][_0x41ff21(0x529)]){const _0x28a90d=new Image();return _0x28a90d['src']=_0xb0de73,_0x28a90d;}return this[_0x41ff21(0x481)][_0x41ff21(0x48d)](_0xb0de73);}[_0x44ec13(0x15c)](_0x31b446,_0x5ad475,_0x2ff719){const _0x476050=_0x44ec13;_0x5ad475===L[_0x476050(0x146)][_0x476050(0x529)]||_0x2ff719==null||this[_0x476050(0x481)][_0x476050(0x47a)](_0x31b446,_0x2ff719);}async[_0x44ec13(0x2b0)](_0x45f9b7){const _0x227d87=_0x44ec13;try{const _0x3ff66e=this[_0x227d87(0x33c)](this[_0x227d87(0x300)](),''+_0x45f9b7),_0x56b53f=(await this[_0x227d87(0x223)][_0x227d87(0x48d)](_0x3ff66e))[_0x227d87(0x3c4)];return _0x56b53f[_0x227d87(0x182)]&&_0x56b53f[_0x227d87(0x182)][_0x227d87(0x370)]===pt['OK']?Promise[_0x227d87(0x4fd)](_0x56b53f[_0x227d87(0x3b8)]):Promise[_0x227d87(0x531)](_0x56b53f['error']);}catch(_0x30d29d){return Promise[_0x227d87(0x531)](_0x30d29d);}}async[_0x44ec13(0x4c0)](_0x575901){const _0x1c0ed3=_0x44ec13;let _0x46ab20='';if(!rn[_0x1c0ed3(0x1da)](_0x575901['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x1c0ed3(0x3d9)][_0x1c0ed3(0x2fe)]));if(_0x575901[_0x1c0ed3(0x366)]>on)return this[_0x1c0ed3(0x440)](),Promise['reject'](new Error(L[_0x1c0ed3(0x3d9)]['ERROR_EXCEED_SIZE']));try{const _0x50c435=new FormData();_0x50c435['append']('file',_0x575901);const _0x3e34c9=this['_univerInstanceService'][_0x1c0ed3(0x2fa)](),_0x42546b=_0x3e34c9==null?void 0x0:_0x3e34c9[_0x1c0ed3(0x4be)]();if(!_0x42546b)throw new Error(_0x1c0ed3(0x42f));const _0x54e97f=this[_0x1c0ed3(0x298)]()+_0x1c0ed3(0x475)+_0x575901['size'][_0x1c0ed3(0x503)]()+'&source='+Ct[_0x1c0ed3(0x263)]+'&assign='+encodeURIComponent(_0x42546b),_0x2f1548=await(await fetch(_0x54e97f,{'method':_0x1c0ed3(0x288),'body':_0x50c435}))[_0x1c0ed3(0x44e)]();if(typeof _0x2f1548[_0x1c0ed3(0x21d)]!=_0x1c0ed3(0x167))return this[_0x1c0ed3(0x440)](),Promise[_0x1c0ed3(0x531)](new Error(L[_0x1c0ed3(0x3d9)][_0x1c0ed3(0x4d6)]));_0x46ab20=_0x2f1548['FileId'];}catch{return this[_0x1c0ed3(0x440)](),Promise['reject'](new Error(L[_0x1c0ed3(0x3d9)]['ERROR_IMAGE']));}return new Promise((_0x180717,_0x1d4644)=>{const _0x532094=_0x1c0ed3,_0x42d923=new FileReader();_0x42d923['readAsDataURL'](_0x575901),_0x42d923[_0x532094(0x1be)]=_0x29b4b9=>{const _0x12de87=_0x532094;var _0x327331;const _0xe0436c=(_0x327331=_0x29b4b9['target'])==null?void 0x0:_0x327331[_0x12de87(0x190)];if(_0xe0436c==null){this[_0x12de87(0x440)](),_0x1d4644(new Error(L[_0x12de87(0x3d9)][_0x12de87(0x4d6)]));return;}const _0x5443d1=a['Tools'][_0x12de87(0x22b)](0x6);_0x180717({'imageId':_0x5443d1,'imageSourceType':L['ImageSourceType'][_0x12de87(0x4ff)],'source':_0x46ab20,'base64Cache':_0xe0436c,'status':L[_0x12de87(0x3d9)][_0x12de87(0x3d3)]}),this[_0x12de87(0x440)]();};});}['_getUploadFileURL'](){const _0x1c06f1=_0x44ec13;var _0x4c298c;return(_0x4c298c=this[_0x1c06f1(0x148)][_0x1c06f1(0x227)](an))!=null?_0x4c298c:cn;}[_0x44ec13(0x300)](){const _0x3db6b3=_0x44ec13;var _0x50f439;return(_0x50f439=this[_0x3db6b3(0x148)][_0x3db6b3(0x227)](ln))!=null?_0x50f439:hn;}['_replaceFileID'](_0x24f9fc,_0x555646){const _0x2ded42=_0x44ec13;return _0x24f9fc[_0x2ded42(0x264)](_0x2ded42(0x2d8),_0x555646);}[_0x44ec13(0x440)](){const _0x2c75e6=_0x44ec13;this[_0x2c75e6(0x365)]-=0x1,this[_0x2c75e6(0x316)][_0x2c75e6(0x4a4)](this[_0x2c75e6(0x365)]);}},exports[_0x44ec13(0x23f)]=nn([Ae(0x0,a[_0x44ec13(0x3ed)](w[_0x44ec13(0x4e4)])),Ae(0x1,a['IConfigService']),Ae(0x2,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4e2)]))],exports[_0x44ec13(0x23f)]);var _n=Object[_0x44ec13(0x2ec)],un=Object[_0x44ec13(0x2e1)],dn=(_0x4fec87,_0x3bd9c3,_0x329498,_0x4866fa)=>{for(var _0x2e43e0=_0x4866fa>0x1?void 0x0:_0x4866fa?un(_0x3bd9c3,_0x329498):_0x3bd9c3,_0x2e2644=_0x4fec87['length']-0x1,_0x23927f;_0x2e2644>=0x0;_0x2e2644--)(_0x23927f=_0x4fec87[_0x2e2644])&&(_0x2e43e0=(_0x4866fa?_0x23927f(_0x3bd9c3,_0x329498,_0x2e43e0):_0x23927f(_0x2e43e0))||_0x2e43e0);return _0x4866fa&&_0x2e43e0&&_n(_0x3bd9c3,_0x329498,_0x2e43e0),_0x2e43e0;},he=(_0x2e0553,_0x439f03)=>(_0x28a5b6,_0x429c5c)=>_0x439f03(_0x28a5b6,_0x429c5c,_0x2e0553);let fe=class extends a[_0x44ec13(0x4c6)]{constructor(_0x218c3b,_0x423dbd,_0x26474e,_0x3a4e94,_0x18219b){const _0x21d2b3=_0x44ec13;super(),this[_0x21d2b3(0x360)]=_0x218c3b,this[_0x21d2b3(0x2b9)]=_0x423dbd,this['_permissionService']=_0x26474e,this[_0x21d2b3(0x37f)]=_0x3a4e94,this[_0x21d2b3(0x330)]=_0x18219b,this[_0x21d2b3(0x35c)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x2a3f22=_0x44ec13,_0x422dc0=async _0xffa53e=>{const _0x469dab=_0x2929;(await this[_0x469dab(0x37f)][_0x469dab(0x245)](_0xffa53e))[_0x469dab(0x15d)][_0x469dab(0x2d5)](E['filter'](_0x344c91=>_0x344c91[_0x469dab(0x348)]===_['CollaborationEvent']['SHOULD_CLOSE_CONN']),E[_0x469dab(0x441)](this['dispose$']))[_0x469dab(0x1d4)](_0x2842b0=>{const _0x14b8af=_0x469dab,_0x370df8=_0x2842b0,{reason:_0x1fa03e}=_0x370df8[_0x14b8af(0x387)];this['_injector'][_0x14b8af(0x48d)](M['IMessageService'])[_0x14b8af(0x37b)]({'type':K[_0x14b8af(0x28f)][_0x14b8af(0x16d)],'content':this[_0x14b8af(0x330)]['t'](_0x14b8af(0x349))+'('+_0x1fa03e+')'}),this['_permissionService'][_0x14b8af(0x202)](new C['WorkbookEditablePermission'](_0xffa53e)['id'],!0x1),this[_0x14b8af(0x37f)][_0x14b8af(0x2c3)](_0xffa53e);});};v[_0x2a3f22(0x3c1)](this[_0x2a3f22(0x2b9)]['getTypeOfUnitAdded$'](a[_0x2a3f22(0x1c1)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x2a3f22(0x1c1)][_0x2a3f22(0x344)]))[_0x2a3f22(0x2d5)](E['map'](_0x460fba=>_0x460fba[_0x2a3f22(0x4be)]()),E['filter'](_0x3114d3=>!a[_0x2a3f22(0x4f1)](_0x3114d3)),E[_0x2a3f22(0x441)](this[_0x2a3f22(0x350)]))['subscribe'](_0x3282d2=>{_0x422dc0(_0x3282d2);});}[_0x44ec13(0x35c)](){const _0xf2144=_0x44ec13,_0x357619=async _0xc1d8fa=>{const _0x3a6b84=_0x2929;(await this[_0x3a6b84(0x37f)][_0x3a6b84(0x245)](_0xc1d8fa))[_0x3a6b84(0x15d)][_0x3a6b84(0x2d5)](E[_0x3a6b84(0x1ee)](_0x1cac9f=>_0x1cac9f[_0x3a6b84(0x348)]===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E[_0x3a6b84(0x441)](this[_0x3a6b84(0x350)]))[_0x3a6b84(0x1d4)](_0xa95852=>{const _0x378407=_0x3a6b84,_0x5cd688=_0xa95852,{objectId:_0x1148f6}=_0x5cd688[_0x378407(0x387)],_0x5ab206=this[_0x378407(0x360)][_0x378407(0x48d)](ee['SheetPermissionInitController']);_0x1148f6===_0xc1d8fa?_0x5ab206[_0x378407(0x413)](_0xc1d8fa):_0x5ab206[_0x378407(0x1b9)](_0xc1d8fa,_0x1148f6);});};v[_0xf2144(0x3c1)](this[_0xf2144(0x2b9)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0xf2144(0x420)]),this[_0xf2144(0x2b9)][_0xf2144(0x455)](a[_0xf2144(0x1c1)][_0xf2144(0x344)]))[_0xf2144(0x2d5)](E[_0xf2144(0x341)](_0x4edb71=>_0x4edb71[_0xf2144(0x4be)]()),E[_0xf2144(0x1ee)](_0x38e9d2=>!a[_0xf2144(0x4f1)](_0x38e9d2)),E[_0xf2144(0x441)](this['dispose$']))[_0xf2144(0x1d4)](_0x518279=>{_0x357619(_0x518279);});}};fe=dn([a['OnLifecycle'](a[_0x44ec13(0x30b)][_0x44ec13(0x1ad)],fe),he(0x0,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),he(0x1,a['IUniverInstanceService']),he(0x2,a['IPermissionService']),he(0x3,a[_0x44ec13(0x3ed)](exports['CollaborationSessionService'])),he(0x4,a[_0x44ec13(0x3ed)](a['LocaleService']))],fe);const Sn='collaboration-client.config';var Lt=Object[_0x44ec13(0x2ec)],vn=Object[_0x44ec13(0x2e1)],mn=(_0x1b0226,_0x5cec50,_0x1e3593)=>_0x5cec50 in _0x1b0226?Lt(_0x1b0226,_0x5cec50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e3593}):_0x1b0226[_0x5cec50]=_0x1e3593,fn=(_0x4af96f,_0x107b2d,_0x67d096,_0x8a9ef0)=>{const _0x1930d7=_0x44ec13;for(var _0x532b44=_0x8a9ef0>0x1?void 0x0:_0x8a9ef0?vn(_0x107b2d,_0x67d096):_0x107b2d,_0xced690=_0x4af96f[_0x1930d7(0x3b4)]-0x1,_0x4aa507;_0xced690>=0x0;_0xced690--)(_0x4aa507=_0x4af96f[_0xced690])&&(_0x532b44=(_0x8a9ef0?_0x4aa507(_0x107b2d,_0x67d096,_0x532b44):_0x4aa507(_0x532b44))||_0x532b44);return _0x8a9ef0&&_0x532b44&&Lt(_0x107b2d,_0x67d096,_0x532b44),_0x532b44;},Se=(_0x36f308,_0x19ec74)=>(_0x4f4c46,_0x59e564)=>_0x19ec74(_0x4f4c46,_0x59e564,_0x36f308),gn=(_0x389a2b,_0x2cb1ae,_0x168d5e)=>mn(_0x389a2b,_0x2cb1ae+'',_0x168d5e);const In=_0x44ec13(0x33e);exports[_0x44ec13(0x404)]=class extends a[_0x44ec13(0x2aa)]{constructor(_0x411c29={},_0x1d3c61,_0x4565e4,_0x4ce6e4,_0x576a60){const _0x372c0c=_0x44ec13;super(),this['_config']=_0x411c29,this['_logService']=_0x1d3c61,this[_0x372c0c(0x2d3)]=_0x4565e4,this[_0x372c0c(0x360)]=_0x4ce6e4,this['_configService']=_0x576a60;const {..._0x28dafd}=this[_0x372c0c(0x319)];this[_0x372c0c(0x148)][_0x372c0c(0x205)](Sn,_0x28dafd);}['onStarting'](){const _0x440763=_0x44ec13;this[_0x440763(0x462)]();}[_0x44ec13(0x36c)](){const _0x5046d4=_0x44ec13;this[_0x5046d4(0x4a3)]();}['_registerDependencies'](){const _0x1e2470=_0x44ec13;var _0x70c682,_0x2cda93,_0x436f5c,_0x705f75;this['_injector'][_0x1e2470(0x163)](a[_0x1e2470(0x4f5)])&&this[_0x1e2470(0x49d)]['error']('[UniverCollaborationClientPlugin]',_0x1e2470(0x32a));let _0xd7a91=[[a['IUndoRedoService'],{'useClass':xe}],[exports[_0x1e2470(0x4e1)]],[Ke],[w[_0x1e2470(0x4e4)]],[qe,{'useClass':Nt}],[X],[exports[_0x1e2470(0x494)]],[w['WebSocketService']],[Ie],[pe],[ge],[Ge],[Ce],[We],[fe],[Fe,{'useClass':(_0x2cda93=(_0x70c682=this[_0x1e2470(0x319)])==null?void 0x0:_0x70c682[_0x1e2470(0x1a8)])!=null?_0x2cda93:exports[_0x1e2470(0x4bf)]}],[w[_0x1e2470(0x374)],{'useClass':w[_0x1e2470(0x23e)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x1e2470(0x1ab)]}],[a['IAuthzIoService'],{'useClass':exports[_0x1e2470(0x3ea)]}],[L[_0x1e2470(0x1a4)],{'useClass':exports[_0x1e2470(0x23f)]}],[exports['CollaborationController']],[exports['DataLoaderController']],[exports[_0x1e2470(0x518)]],[ve],[te]];(_0x436f5c=this[_0x1e2470(0x319)])!=null&&_0x436f5c[_0x1e2470(0x4c1)]&&_0xd7a91[_0x1e2470(0x3a3)]([Ee,{'useClass':Os}]),_0xd7a91=a['mergeOverrideWithDependencies'](_0xd7a91,(_0x705f75=this[_0x1e2470(0x319)])==null?void 0x0:_0x705f75[_0x1e2470(0x418)]),_0xd7a91[_0x1e2470(0x39a)](_0x31e7dd=>this[_0x1e2470(0x360)][_0x1e2470(0x37a)](_0x31e7dd)),this['_initModules']();}['_registerRenderDependencies'](){const _0x1ded15=_0x44ec13;this['disposeWithMe'](this[_0x1ded15(0x2d3)][_0x1ded15(0x35b)](a[_0x1ded15(0x1c1)][_0x1ded15(0x344)],[me])),this[_0x1ded15(0x399)](this[_0x1ded15(0x2d3)][_0x1ded15(0x35b)](a['UniverInstanceType'][_0x1ded15(0x420)],[He]));}['_initModules'](){const _0x1ed9c6=_0x44ec13;var _0x4f6dec,_0x5185e5;this[_0x1ed9c6(0x360)][_0x1ed9c6(0x48d)](w[_0x1ed9c6(0x4e4)])[_0x1ed9c6(0x40f)]({'priority':0x14,'interceptor':w[_0x1ed9c6(0x4fa)]({'maxParallel':0x6})}),(_0x4f6dec=this[_0x1ed9c6(0x319)])!=null&&_0x4f6dec[_0x1ed9c6(0x434)]||this['_injector'][_0x1ed9c6(0x48d)](exports['LocalCacheService'])[_0x1ed9c6(0x197)](),(_0x5185e5=this['_config'])!=null&&_0x5185e5['enableAuthServer']&&this[_0x1ed9c6(0x360)][_0x1ed9c6(0x48d)](Ce),this[_0x1ed9c6(0x360)][_0x1ed9c6(0x48d)](exports[_0x1ed9c6(0x27c)]),this['_injector'][_0x1ed9c6(0x163)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x1ed9c6(0x360)][_0x1ed9c6(0x48d)](exports[_0x1ed9c6(0x518)]);}},gn(exports[_0x44ec13(0x404)],_0x44ec13(0x306),In),exports['UniverCollaborationClientPlugin']=fn([a[_0x44ec13(0x314)](_[_0x44ec13(0x3e8)]),Se(0x1,a['ILogService']),Se(0x2,R[_0x44ec13(0x226)]),Se(0x3,a[_0x44ec13(0x3ed)](a[_0x44ec13(0x4cf)])),Se(0x4,a[_0x44ec13(0x259)])],exports[_0x44ec13(0x404)]),exports[_0x44ec13(0x485)]=Mt,exports[_0x44ec13(0x3a9)]=gt,exports[_0x44ec13(0x2cd)]=ut,exports[_0x44ec13(0x3c0)]=y,exports['CollaborationStatusDisplay']=Ut,exports['CommentService']=We,exports[_0x44ec13(0x470)]=dt,exports['HEARTBEAT_TIMEOUT_KEY']=Be,exports['ICollaborationSocketService']=Fe,exports[_0x44ec13(0x203)]=qe,exports[_0x44ec13(0x363)]=ft,exports[_0x44ec13(0x361)]=It,exports[_0x44ec13(0x41e)]=vt,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=mt,exports[_0x44ec13(0x355)]=_t,exports[_0x44ec13(0x4a1)]=lt,exports[_0x44ec13(0x2dc)]=ht,exports['SessionStatus']=j,exports['SheetCollabCursorShape']=Dt,exports['WebURLService']=Nt,exports[_0x44ec13(0x532)]=Et,exports[_0x44ec13(0x467)]=bt;
|
1
|
+
'use strict';const _0x215dce=_0x3749;(function(_0x53c686,_0x4bf080){const _0x1f00b6=_0x3749,_0x1610f9=_0x53c686();while(!![]){try{const _0x4503d6=parseInt(_0x1f00b6(0x4e7))/0x1+parseInt(_0x1f00b6(0x3b6))/0x2+-parseInt(_0x1f00b6(0x29e))/0x3+parseInt(_0x1f00b6(0x520))/0x4*(parseInt(_0x1f00b6(0x1bc))/0x5)+-parseInt(_0x1f00b6(0x274))/0x6*(-parseInt(_0x1f00b6(0x3e5))/0x7)+-parseInt(_0x1f00b6(0x4bc))/0x8*(parseInt(_0x1f00b6(0x21c))/0x9)+-parseInt(_0x1f00b6(0x232))/0xa*(-parseInt(_0x1f00b6(0x276))/0xb);if(_0x4503d6===_0x4bf080)break;else _0x1610f9['push'](_0x1610f9['shift']());}catch(_0x37b9ea){_0x1610f9['push'](_0x1610f9['shift']());}}}(_0x5ea7,0xde6f4));var Bt=Object[_0x215dce(0x437)],Vt=(_0x1e41f5,_0x352efc,_0x3edba9)=>_0x352efc in _0x1e41f5?Bt(_0x1e41f5,_0x352efc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3edba9}):_0x1e41f5[_0x352efc]=_0x3edba9,d=(_0x1a58ae,_0x349e9b,_0xdc5bff)=>Vt(_0x1a58ae,typeof _0x349e9b!=_0x215dce(0x4d8)?_0x349e9b+'':_0x349e9b,_0xdc5bff);Object[_0x215dce(0x437)](exports,Symbol[_0x215dce(0x499)],{'value':_0x215dce(0x3d5)});function _0x3749(_0x531bff,_0x2ff41c){const _0x5ea74f=_0x5ea7();return _0x3749=function(_0x37492a,_0x1dad60){_0x37492a=_0x37492a-0x1a5;let _0x43209d=_0x5ea74f[_0x37492a];return _0x43209d;},_0x3749(_0x531bff,_0x2ff41c);}const a=require('@univerjs/core'),v=require('rxjs'),E=require(_0x215dce(0x5b6)),K=require(_0x215dce(0x2f0)),M=require('@univerjs/ui'),U=require(_0x215dce(0x2b1)),_=require('@univerjs-pro/collaboration'),Wt=require('@univerjs/telemetry'),B=require('@univerjs/docs'),w=require(_0x215dce(0x28b)),C=require('@univerjs/sheets'),R=require(_0x215dce(0x588)),L=require('@univerjs/drawing'),Je=require(_0x215dce(0x54d)),ke=require(_0x215dce(0x4c7)),ee=require(_0x215dce(0x2d9)),P=require(_0x215dce(0x2f1)),Ft=require(_0x215dce(0x22d)),Gt=require(_0x215dce(0x1ad)),lt=_0x215dce(0x324),Yt=_0x215dce(0x4b5),ht=_0x215dce(0x563),_t='SEND_CHANGESET_TIMEOUT',Kt=0x7d0,ut=_0x215dce(0x46e),Xt='ws://127.0.0.1:8000/universer-api/comb/connect',dt='HEARTBEAT_INTERVAL',qt=0x7530,Be=_0x215dce(0x3e8),St=0x4e20,vt=_0x215dce(0x1cd),Jt=0x4e20,ft=_0x215dce(0x2ce),zt=0x3,mt=_0x215dce(0x452),Zt=0x3e8,gt=_0x215dce(0x31c),Qt=_0x215dce(0x5b8),It=_0x215dce(0x438),es=_0x215dce(0x580);var pt=(_0x4c6e3f=>(_0x4c6e3f[_0x4c6e3f['UNDEFINED']=0x0]=_0x215dce(0x3a9),_0x4c6e3f[_0x4c6e3f['OK']=0x1]='OK',_0x4c6e3f[_0x4c6e3f[_0x215dce(0x5ae)]=0x2]=_0x215dce(0x5ae),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x534)]=0x3]=_0x215dce(0x534),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x3fe)]=0x4]=_0x215dce(0x3fe),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x571)]=0x5]=_0x215dce(0x571),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x214)]=0x6]=_0x215dce(0x214),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x3c6)]=0x7]=_0x215dce(0x3c6),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x245)]=0x8]=_0x215dce(0x245),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x4cf)]=0x9]=_0x215dce(0x4cf),_0x4c6e3f[_0x4c6e3f['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x215dce(0x402),_0x4c6e3f[_0x4c6e3f['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x215dce(0x442),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x3e2)]=0x1772]=_0x215dce(0x3e2),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x263)]=0x1b59]=_0x215dce(0x263),_0x4c6e3f[_0x4c6e3f['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x215dce(0x217),_0x4c6e3f[_0x4c6e3f['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x215dce(0x538),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x41a)]=0x1b5c]=_0x215dce(0x41a),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x1b5)]=0x1f41]=_0x215dce(0x1b5),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x318)]=0x2329]=_0x215dce(0x318),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x30f)]=0x232a]=_0x215dce(0x30f),_0x4c6e3f[_0x4c6e3f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4c6e3f[_0x4c6e3f[_0x215dce(0x471)]=0x232c]=_0x215dce(0x471),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x31e)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4c6e3f[_0x4c6e3f[_0x215dce(0x354)]=0x2711]=_0x215dce(0x354),_0x4c6e3f[_0x4c6e3f['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x215dce(0x22c),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x4a1)]=0x2713]=_0x215dce(0x4a1),_0x4c6e3f[_0x4c6e3f[_0x215dce(0x315)]=0x2714]=_0x215dce(0x315),_0x4c6e3f[_0x4c6e3f['UNRECOGNIZED']=-0x1]=_0x215dce(0x491),_0x4c6e3f))(pt||{}),A=(_0x2bc706=>(_0x2bc706[_0x2bc706[_0x215dce(0x252)]=0x0]=_0x215dce(0x252),_0x2bc706[_0x2bc706[_0x215dce(0x2df)]=0x1]=_0x215dce(0x2df),_0x2bc706[_0x2bc706['UNIVER_SHEET']=0x2]=_0x215dce(0x2ba),_0x2bc706[_0x2bc706['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0x2bc706[_0x2bc706[_0x215dce(0x237)]=0x4]=_0x215dce(0x237),_0x2bc706[_0x2bc706['UNRECOGNIZED']=-0x1]=_0x215dce(0x491),_0x2bc706))(A||{}),b=(_0x7294d0=>(_0x7294d0[_0x7294d0[_0x215dce(0x373)]=0x0]=_0x215dce(0x373),_0x7294d0[_0x7294d0[_0x215dce(0x3b8)]=0x1]='HELLO',_0x7294d0[_0x7294d0[_0x215dce(0x59a)]=0x2]='JOIN',_0x7294d0[_0x7294d0['LEAVE']=0x3]=_0x215dce(0x3ed),_0x7294d0[_0x7294d0[_0x215dce(0x44c)]=0x4]=_0x215dce(0x44c),_0x7294d0[_0x7294d0[_0x215dce(0x3e7)]=0x5]=_0x215dce(0x3e7),_0x7294d0[_0x7294d0['RECV']=0x6]=_0x215dce(0x3f8),_0x7294d0[_0x7294d0[_0x215dce(0x491)]=-0x1]=_0x215dce(0x491),_0x7294d0))(b||{}),Ve=(_0x5dea55=>(_0x5dea55[_0x5dea55[_0x215dce(0x1e2)]=0x0]='UNKNOWN_CODE',_0x5dea55[_0x5dea55['OK']=0x1]='OK',_0x5dea55[_0x5dea55[_0x215dce(0x511)]=0x2]=_0x215dce(0x511),_0x5dea55[_0x5dea55[_0x215dce(0x491)]=-0x1]=_0x215dce(0x491),_0x5dea55))(Ve||{}),Ct=(_0x661641=>(_0x661641[_0x661641[_0x215dce(0x57d)]=0x0]=_0x215dce(0x57d),_0x661641[_0x661641[_0x215dce(0x1c3)]=0x1]=_0x215dce(0x1c3),_0x661641[_0x661641[_0x215dce(0x300)]=0x2]=_0x215dce(0x300),_0x661641[_0x661641[_0x215dce(0x415)]=0x3]=_0x215dce(0x415),_0x661641[_0x661641[_0x215dce(0x4e2)]=0x4]=_0x215dce(0x4e2),_0x661641[_0x661641[_0x215dce(0x491)]=-0x1]=_0x215dce(0x491),_0x661641))(Ct||{});function Et(_0xe66292){const _0x7613af=_0x215dce;var _0x24d5d1,_0x56830e,_0x583bcd,_0x23dc0f;const _0x7f0ec4=_0xe66292[_0x7613af(0x455)],_0x1141f=JSON[_0x7613af(0x20c)](_0x7f0ec4);switch(_0x1141f[_0x7613af(0x4c5)]){case b['HEARTBEAT']:case b['HELLO']:{const _0x3db2e9=_0x1141f[_0x7613af(0x4d4)];return{..._0x1141f,'data':_0x3db2e9,'cmd':_0x1141f[_0x7613af(0x4c5)]};}case b[_0x7613af(0x59a)]:{const _0x1883b2=_0x1141f[_0x7613af(0x30c)];return{..._0x1141f,'data':_0x1883b2,'cmd':_0x1141f['cmd']};}case b['RECV']:{const _0x31636f=_0x1141f[_0x7613af(0x40e)];switch(_0x31636f[_0x7613af(0x533)]){case _['CollaborationEvent'][_0x7613af(0x539)]:return{..._0x1141f,'data':{..._0x31636f,'data':(_0x24d5d1=_0x31636f[_0x7613af(0x4d3)])==null?void 0x0:_0x24d5d1['cs']},'cmd':_0x1141f[_0x7613af(0x4c5)]};case _[_0x7613af(0x5a1)][_0x7613af(0x2a7)]:return{..._0x1141f,'data':{..._0x31636f,'data':(_0x56830e=_0x31636f['csAckEvent'])==null?void 0x0:_0x56830e['cs']},'cmd':_0x1141f[_0x7613af(0x4c5)]};case _['CollaborationEvent'][_0x7613af(0x2b9)]:return{..._0x1141f,'data':{..._0x31636f,'data':(_0x583bcd=_0x31636f[_0x7613af(0x275)])==null?void 0x0:_0x583bcd['cs']},'cmd':_0x1141f[_0x7613af(0x4c5)]};case _[_0x7613af(0x5a1)][_0x7613af(0x1ba)]:return{..._0x1141f,'data':{..._0x31636f,'data':(_0x23dc0f=_0x31636f['csRejEvent'])==null?void 0x0:_0x23dc0f['cs']},'cmd':_0x1141f['cmd']};case _[_0x7613af(0x5a1)]['UPDATE_CURSOR']:return{..._0x1141f,'data':{..._0x31636f,'data':_0x31636f['updateCursorEvent']},'cmd':_0x1141f[_0x7613af(0x4c5)]};case _['CollaborationEvent']['USERS_ENTER']:return{..._0x1141f,'data':{..._0x31636f,'data':_0x31636f['joinEvent']},'cmd':_0x1141f[_0x7613af(0x4c5)]};case _[_0x7613af(0x5a1)][_0x7613af(0x505)]:return{..._0x1141f,'data':{..._0x31636f,'data':_0x31636f[_0x7613af(0x248)]},'cmd':_0x1141f[_0x7613af(0x4c5)]};case _['CollaborationEvent'][_0x7613af(0x44e)]:return{..._0x1141f,'data':{..._0x31636f,'data':_0x31636f[_0x7613af(0x403)]},'cmd':_0x1141f[_0x7613af(0x4c5)]};case _[_0x7613af(0x5a1)][_0x7613af(0x34a)]:case _[_0x7613af(0x5a1)][_0x7613af(0x1ed)]:return{..._0x1141f,'data':{..._0x31636f,'data':_0x31636f['liveShareOperation']},'cmd':_0x1141f['cmd']};case _['CollaborationEvent'][_0x7613af(0x2a4)]:return{..._0x1141f,'data':{..._0x31636f,'data':_0x31636f['liveShareNewHost']},'cmd':_0x1141f[_0x7613af(0x4c5)]};case _[_0x7613af(0x5a1)][_0x7613af(0x216)]:return{..._0x1141f,'data':_0x31636f,'cmd':_0x1141f[_0x7613af(0x4c5)]};case _[_0x7613af(0x5a1)][_0x7613af(0x58e)]:return{..._0x1141f,'data':{..._0x31636f,'data':_0x31636f[_0x7613af(0x567)]},'cmd':_0x1141f[_0x7613af(0x4c5)]};case _['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x1141f,'data':{..._0x31636f,'data':_0x31636f['updatePermissionObjEvent']},'cmd':_0x1141f['cmd']};case _['CollaborationEvent'][_0x7613af(0x55b)]:return{..._0x1141f,'data':{..._0x31636f,'data':_0x31636f[_0x7613af(0x2be)]},'cmd':_0x1141f[_0x7613af(0x4c5)]};default:return _0x1141f;}}default:return _0x1141f;}}function bt(_0x3d75b5){const _0x45f205=_0x215dce;switch(_0x3d75b5[_0x45f205(0x4c5)]){case b[_0x45f205(0x3e7)]:case b[_0x45f205(0x3b8)]:return JSON['stringify']({'cmd':_0x3d75b5[_0x45f205(0x4c5)],'routeKey':_0x3d75b5[_0x45f205(0x290)]});case b['INGEST']:{let _0x4f2d2f;switch(_0x3d75b5[_0x45f205(0x455)][_0x45f205(0x533)]){case _[_0x45f205(0x5a1)][_0x45f205(0x26e)]:{_0x4f2d2f={'eventID':_[_0x45f205(0x5a1)][_0x45f205(0x26e)],'updateCursorEvent':_0x3d75b5['data'][_0x45f205(0x455)]};break;}case _[_0x45f205(0x5a1)]['USERS_LEAVE']:{_0x4f2d2f={'eventID':_['CollaborationEvent'][_0x45f205(0x505)],'leaveEvent':_0x3d75b5[_0x45f205(0x455)][_0x45f205(0x455)]};break;}case _[_0x45f205(0x5a1)][_0x45f205(0x44b)]:{_0x4f2d2f={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x3d75b5[_0x45f205(0x455)][_0x45f205(0x455)]};break;}case _[_0x45f205(0x5a1)][_0x45f205(0x44e)]:{_0x4f2d2f={'eventID':_[_0x45f205(0x5a1)][_0x45f205(0x44e)],'liveShareNewHost':_0x3d75b5[_0x45f205(0x455)]['data']};break;}case _[_0x45f205(0x5a1)][_0x45f205(0x1ed)]:{_0x4f2d2f={'eventID':_[_0x45f205(0x5a1)][_0x45f205(0x1ed)],'liveShareOperation':_0x3d75b5[_0x45f205(0x455)][_0x45f205(0x455)]};break;}case _[_0x45f205(0x5a1)]['LIVESHARE_TERMINATE']:{_0x4f2d2f={'eventID':_[_0x45f205(0x5a1)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3d75b5[_0x45f205(0x455)][_0x45f205(0x455)]};break;}case _[_0x45f205(0x5a1)][_0x45f205(0x48e)]:{_0x4f2d2f={'eventID':_[_0x45f205(0x5a1)][_0x45f205(0x48e)],'liveShareRequestHost':_0x3d75b5['data'][_0x45f205(0x455)]};break;}case _[_0x45f205(0x5a1)]['LIVESHARE_FETCH_OPERATIONS']:{_0x4f2d2f={'eventID':_[_0x45f205(0x5a1)][_0x45f205(0x34a)]};break;}default:_0x4f2d2f={'eventID':_0x3d75b5[_0x45f205(0x455)][_0x45f205(0x533)]};}return JSON[_0x45f205(0x406)]({'cmd':_0x3d75b5['cmd'],'routeKey':_0x3d75b5[_0x45f205(0x290)],'collaMsg':_0x4f2d2f});}case b[_0x45f205(0x59a)]:return JSON['stringify']({'cmd':_0x3d75b5['cmd'],'routeKey':_0x3d75b5[_0x45f205(0x290)],'joinReq':_0x3d75b5[_0x45f205(0x455)]});case b[_0x45f205(0x3ed)]:return JSON['stringify']({'cmd':_0x3d75b5[_0x45f205(0x4c5)],'routeKey':_0x3d75b5['routeKey'],'leaveReq':_0x3d75b5[_0x45f205(0x455)]});default:throw new Error(_0x45f205(0x309));}}var ts=Object[_0x215dce(0x437)],ss=Object[_0x215dce(0x394)],is=(_0x4b28ee,_0x4085e3,_0x5d5a75,_0x46f46e)=>{const _0x38455c=_0x215dce;for(var _0x40da40=_0x46f46e>0x1?void 0x0:_0x46f46e?ss(_0x4085e3,_0x5d5a75):_0x4085e3,_0x2f4acf=_0x4b28ee[_0x38455c(0x32e)]-0x1,_0x386d2c;_0x2f4acf>=0x0;_0x2f4acf--)(_0x386d2c=_0x4b28ee[_0x2f4acf])&&(_0x40da40=(_0x46f46e?_0x386d2c(_0x4085e3,_0x5d5a75,_0x40da40):_0x386d2c(_0x40da40))||_0x40da40);return _0x46f46e&&_0x40da40&&ts(_0x4085e3,_0x5d5a75,_0x40da40),_0x40da40;},re=(_0x4ca22f,_0x220598)=>(_0x4b1ecb,_0x561f81)=>_0x220598(_0x4b1ecb,_0x561f81,_0x4ca22f);const We=a[_0x215dce(0x1d9)](_0x215dce(0x4be));function ns(_0x5e3eeb,_0x7eed5f,_0x47e884){const _0x30cc7a=_0x215dce;return _0x5e3eeb+'/'+_0x7eed5f+'/unit/'+_0x47e884+_0x30cc7a(0x310);}exports['CollaborationSocketService']=class extends a[_0x215dce(0x530)]{constructor(_0x3e1441,_0x552f7b,_0x490415,_0x58b248,_0x5e07ac){const _0x16d897=_0x215dce;super(),this[_0x16d897(0x461)]=_0x3e1441,this[_0x16d897(0x2b7)]=_0x552f7b,this[_0x16d897(0x1be)]=_0x490415,this[_0x16d897(0x362)]=_0x58b248,this[_0x16d897(0x385)]=_0x5e07ac;}[_0x215dce(0x1e1)](_0x46eec9){const _0x2878c0=_0x215dce,_0x7ec99c=this[_0x2878c0(0x2b7)]['createSocket'](_0x46eec9);if(!_0x7ec99c)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1aa2b7=new a['DisposableCollection'](),_0xb833b=new v[(_0x2878c0(0x507))]();_0x1aa2b7[_0x2878c0(0x345)](_0x7ec99c[_0x2878c0(0x4a0)][_0x2878c0(0x238)](_0x5ab86e=>_0xb833b[_0x2878c0(0x3f3)](_0x5ab86e))),_0x1aa2b7['add'](a[_0x2878c0(0x30e)](()=>_0xb833b[_0x2878c0(0x3aa)]()));const _0x5bb409=new v['Subject']();_0x1aa2b7[_0x2878c0(0x345)](_0x7ec99c[_0x2878c0(0x1f9)][_0x2878c0(0x238)](_0x7a6b5d=>_0x5bb409[_0x2878c0(0x3f3)](_0x7a6b5d))),_0x1aa2b7[_0x2878c0(0x345)](a[_0x2878c0(0x30e)](()=>_0x5bb409[_0x2878c0(0x3aa)]()));const _0x3bf12b=new v['Subject']();_0x1aa2b7[_0x2878c0(0x345)](_0x7ec99c[_0x2878c0(0x2f8)][_0x2878c0(0x238)](_0x590a82=>{const _0x119b56=_0x2878c0,_0x4fd046=Et(_0x590a82);_0x3bf12b[_0x119b56(0x3f3)](_0x4fd046);})),_0x1aa2b7[_0x2878c0(0x345)](a[_0x2878c0(0x30e)](()=>_0x3bf12b[_0x2878c0(0x3aa)]()));let _0x49dd61;const _0x59d93e=()=>{const _0xcdd091=_0x2878c0;_0x5bb409['next'](new Event(_0xcdd091(0x44f))),_0xb833b['next'](new CloseEvent(_0xcdd091(0x44f))),_0x49dd61[_0xcdd091(0x51a)]();};return _0x49dd61={'memberID':'','close$':_0xb833b['asObservable'](),'error$':_0x5bb409[_0x2878c0(0x333)](),'open$':_0x7ec99c[_0x2878c0(0x317)],'message$':_0x3bf12b[_0x2878c0(0x333)](),'send':_0x3f0d96=>{const _0x21ca51=_0x2878c0;if(_0x3f0d96[_0x21ca51(0x4c5)]===b[_0x21ca51(0x44c)]){if(_0x3f0d96['data']['eventID']===_[_0x21ca51(0x5a1)][_0x21ca51(0x4cd)]){this[_0x21ca51(0x38a)](_0x49dd61,_0x3f0d96[_0x21ca51(0x455)])[_0x21ca51(0x265)](_0x43d5b4=>{const _0x2de09b=_0x21ca51;this['_logService'][_0x2de09b(0x235)](_0x43d5b4),_0x59d93e();});return;}if(_0x3f0d96[_0x21ca51(0x455)][_0x21ca51(0x533)]===_[_0x21ca51(0x5a1)][_0x21ca51(0x259)]){const _0x39f989=_0x3f0d96[_0x21ca51(0x455)];this['_fetchMissChangesets'](_0x39f989)['then'](_0x109f4a=>{const _0x4ba784=_0x21ca51;_0x3bf12b[_0x4ba784(0x3f3)]({'cmd':b[_0x4ba784(0x3f8)],'code':Ve['OK'],'routeKey':_0x39f989[_0x4ba784(0x455)]['unitID'],'routeType':'','data':{'eventID':_[_0x4ba784(0x5a1)][_0x4ba784(0x2bb)],'data':{'changesets':_0x109f4a}}});})[_0x21ca51(0x265)](_0x20d5ea=>{this['_logService']['error'](_0x20d5ea),_0x59d93e();});return;}}_0x7ec99c[_0x21ca51(0x492)](bt(_0x3f0d96));},'close':()=>{const _0x59bb67=_0x2878c0;_0x7ec99c[_0x59bb67(0x51a)](),_0x1aa2b7['dispose']();}},_0x49dd61;}async['_submitChangeset'](_0x366cae,_0xd51b44){const _0x876d43=_0x215dce;var _0x1297fb;const {unitType:_0x4e3d8b,unitID:_0x18d662,changeset:_0x4e787b}=_0xd51b44[_0x876d43(0x455)],_0x52c9bc={'unitID':_0x18d662,'memberID':_0x366cae['memberID'],'type':_0x4e3d8b,'changeset':_['parseChangesetToProtocol'](_0x4e787b)},_0x1bdc7e=ns((_0x1297fb=this['_configService'][_0x876d43(0x1bd)](gt))!=null?_0x1297fb:Qt,_0x4e3d8b,_0x18d662);try{await this[_0x876d43(0x461)]['post'](_0x1bdc7e,{'body':_0x52c9bc});}catch(_0x4c0dde){throw this[_0x876d43(0x362)][_0x876d43(0x235)](_0x876d43(0x39e),_0x876d43(0x381)),_0x4c0dde;}}async[_0x215dce(0x4dc)](_0x2939ce){const _0x25f833=_0x215dce,{unitID:_0x467c7a,from:_0x1c87e4,to:_0x256447,unitType:_0x20a689}=_0x2939ce[_0x25f833(0x455)];return(await this[_0x25f833(0x385)][_0x25f833(0x388)]({'metadata':void 0x0},{'unitID':_0x467c7a,'type':_0x20a689,'from':_0x1c87e4,'to':_0x256447}))[_0x25f833(0x2e9)];}},exports['CollaborationSocketService']=is([re(0x0,a[_0x215dce(0x561)](U[_0x215dce(0x56c)])),re(0x1,a[_0x215dce(0x561)](U[_0x215dce(0x294)])),re(0x2,a[_0x215dce(0x1e8)]),re(0x3,a[_0x215dce(0x3ce)]),re(0x4,_['ISnapshotServerService'])],exports[_0x215dce(0x52e)]);const rs='collaboration_new_changeset';function os(_0x16127c){const _0x11bb05=_0x215dce;return JSON['stringify'](_0x16127c)[_0x11bb05(0x32e)];}class Fe{constructor(){const _0x446b9b=_0x215dce;d(this,'_commentUpdate$',new v[(_0x446b9b(0x507))]()),d(this,_0x446b9b(0x466),this[_0x446b9b(0x3f1)][_0x446b9b(0x333)]());}['onCommentUpdate'](_0x224fde){const _0x9b68c4=_0x215dce;this['_commentUpdate$'][_0x9b68c4(0x3f3)](_0x224fde);}}var as=Object['defineProperty'],cs=Object[_0x215dce(0x394)],ls=(_0x1ebb80,_0x17c410,_0x1f3585,_0x5aa5e2)=>{const _0xc93a9=_0x215dce;for(var _0x4e2836=_0x5aa5e2>0x1?void 0x0:_0x5aa5e2?cs(_0x17c410,_0x1f3585):_0x17c410,_0x3f667f=_0x1ebb80[_0xc93a9(0x32e)]-0x1,_0xece733;_0x3f667f>=0x0;_0x3f667f--)(_0xece733=_0x1ebb80[_0x3f667f])&&(_0x4e2836=(_0x5aa5e2?_0xece733(_0x17c410,_0x1f3585,_0x4e2836):_0xece733(_0x4e2836))||_0x4e2836);return _0x5aa5e2&&_0x4e2836&&as(_0x17c410,_0x1f3585,_0x4e2836),_0x4e2836;},ze=(_0x13d530,_0x859932)=>(_0x288d74,_0x5a294b)=>_0x859932(_0x288d74,_0x5a294b,_0x13d530);let X=class extends a[_0x215dce(0x530)]{constructor(_0x193c82,_0x1b04cc){const _0x35d1c6=_0x215dce;super(),d(this,_0x35d1c6(0x1ea),new Map()),(this['_univerInstanceService']=_0x193c82,this[_0x35d1c6(0x37c)]=_0x1b04cc,this[_0x35d1c6(0x516)](a[_0x35d1c6(0x30e)](v[_0x35d1c6(0x4c4)](this[_0x35d1c6(0x3c5)][_0x35d1c6(0x4ec)](a[_0x35d1c6(0x48c)][_0x35d1c6(0x2ba)])['pipe'](E['map'](_0x92d78a=>_0x92d78a[_0x35d1c6(0x421)]())),this[_0x35d1c6(0x3c5)][_0x35d1c6(0x4ec)](a[_0x35d1c6(0x48c)]['UNIVER_DOC'])[_0x35d1c6(0x412)](E[_0x35d1c6(0x2ec)](_0x26cee5=>_0x26cee5[_0x35d1c6(0x421)]())),this[_0x35d1c6(0x3c5)]['getTypeOfUnitDisposed$'](a[_0x35d1c6(0x48c)][_0x35d1c6(0x3d3)])[_0x35d1c6(0x412)](E[_0x35d1c6(0x2ec)](_0x1d09b0=>_0x1d09b0['getUnitId']())))[_0x35d1c6(0x238)](_0x31697f=>this[_0x35d1c6(0x572)](_0x31697f)))));}['setCurrentUser'](_0x4d7f99){const _0x556740=_0x215dce;this['_userManagerService'][_0x556740(0x283)](_0x4d7f99);}[_0x215dce(0x4d7)](){const _0x3be614=_0x215dce;return this['_userManagerService'][_0x3be614(0x4d7)]();}[_0x215dce(0x475)](_0x54d680,_0xcddbea){const _0x225ea0=_0x215dce;let _0x37c02d=this[_0x225ea0(0x1ea)]['get'](_0x54d680);_0x37c02d||(_0x37c02d=new hs(),this[_0x225ea0(0x1ea)]['set'](_0x54d680,_0x37c02d)),_0x37c02d[_0x225ea0(0x475)](_0xcddbea);}[_0x215dce(0x2f5)](_0x49970c,_0x375f94){const _0x1f573a=_0x215dce,_0x9864f2=this[_0x1f573a(0x1ea)][_0x1f573a(0x24a)](_0x49970c);_0x9864f2&&_0x9864f2['removeMember'](_0x375f94);}[_0x215dce(0x540)](_0x5ed4bd){const _0x59d42b=_0x215dce;return this[_0x59d42b(0x1ea)]['get'](_0x5ed4bd);}[_0x215dce(0x38b)](_0x223129,_0x1c2966){const _0x1d2757=_0x215dce,_0x28644f=this[_0x1d2757(0x1ea)][_0x1d2757(0x24a)](_0x223129);if(_0x28644f)return _0x28644f[_0x1d2757(0x38b)](_0x1c2966);}[_0x215dce(0x572)](_0x67a638){const _0x4823b2=_0x215dce,_0x4e1cf4=this['_roomMembers']['get'](_0x67a638);_0x4e1cf4&&(_0x4e1cf4[_0x4823b2(0x587)](),this[_0x4823b2(0x1ea)]['delete'](_0x67a638));}[_0x215dce(0x587)](){const _0x1bc193=_0x215dce;this['_roomMembers'][_0x1bc193(0x392)](_0xd509e2=>_0xd509e2['dispose']()),this[_0x1bc193(0x1ea)][_0x1bc193(0x1dc)]();}};X=ls([ze(0x0,a[_0x215dce(0x583)]),ze(0x1,a[_0x215dce(0x561)](a[_0x215dce(0x4ca)]))],X);class hs extends a[_0x215dce(0x530)]{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x215dce(0x587)](){const _0x3205e9=_0x215dce;this[_0x3205e9(0x50b)][_0x3205e9(0x1dc)]();}[_0x215dce(0x475)](_0x3ba6c7){const _0x131050=_0x215dce;this['_members'][_0x131050(0x4bd)](_0x3ba6c7[_0x131050(0x200)],_0x3ba6c7);}[_0x215dce(0x2f5)](_0x1a94b8){const _0x172a1b=_0x215dce;this[_0x172a1b(0x50b)]['delete'](_0x1a94b8);}[_0x215dce(0x38b)](_0x7f571d){const _0x1ae66e=_0x215dce;return this[_0x1ae66e(0x50b)][_0x1ae66e(0x24a)](_0x7f571d);}}var _s=Object[_0x215dce(0x437)],us=Object[_0x215dce(0x394)],ds=(_0x2b052e,_0x18a331,_0x5c0e7d,_0x36a24f)=>{const _0x11344f=_0x215dce;for(var _0x3b2762=_0x36a24f>0x1?void 0x0:_0x36a24f?us(_0x18a331,_0x5c0e7d):_0x18a331,_0x30219b=_0x2b052e[_0x11344f(0x32e)]-0x1,_0x5c9405;_0x30219b>=0x0;_0x30219b--)(_0x5c9405=_0x2b052e[_0x30219b])&&(_0x3b2762=(_0x36a24f?_0x5c9405(_0x18a331,_0x5c0e7d,_0x3b2762):_0x5c9405(_0x3b2762))||_0x3b2762);return _0x36a24f&&_0x3b2762&&_s(_0x18a331,_0x5c0e7d,_0x3b2762),_0x3b2762;},k=(_0x1b9b87,_0x94ac33)=>(_0x28b51e,_0x16a05a)=>_0x94ac33(_0x28b51e,_0x16a05a,_0x1b9b87),j=(_0x4465cc=>(_0x4465cc[_0x4465cc[_0x215dce(0x4f1)]=0x0]=_0x215dce(0x4f1),_0x4465cc[_0x4465cc[_0x215dce(0x550)]=0x1]=_0x215dce(0x550),_0x4465cc[_0x4465cc[_0x215dce(0x2de)]=0x2]=_0x215dce(0x2de),_0x4465cc[_0x4465cc[_0x215dce(0x27d)]=0x3]=_0x215dce(0x27d),_0x4465cc))(j||{});exports['CollaborationSession']=class extends a[_0x215dce(0x43a)]{constructor(_0x7b4eee,_0xf239c,_0x2e3e44,_0x16e640,_0xa6d848,_0x26345b,_0x2bfb10,_0x3808ca,_0xf2e2de,_0x5e20a3){const _0x5afb28=_0x215dce;super(),d(this,_0x5afb28(0x30d),new v[(_0x5afb28(0x4f6))](0x0)),d(this,_0x5afb28(0x29d),this[_0x5afb28(0x30d)]['asObservable']()),d(this,_0x5afb28(0x2c9),new v[(_0x5afb28(0x507))]()),d(this,'event$',this['_event$'][_0x5afb28(0x333)]()),d(this,_0x5afb28(0x4ae)),d(this,_0x5afb28(0x28c)),d(this,_0x5afb28(0x408)),d(this,_0x5afb28(0x1e5),!0x1),d(this,'_telemetryInfo',null),(this[_0x5afb28(0x266)]=_0x7b4eee,this['_logService']=_0x2e3e44,this['_beforeCloseService']=_0x16e640,this[_0x5afb28(0x598)]=_0xa6d848,this[_0x5afb28(0x1be)]=_0x26345b,this[_0x5afb28(0x545)]=_0x2bfb10,this['_memberService']=_0x3808ca,this[_0x5afb28(0x39c)]=_0xf2e2de,this[_0x5afb28(0x514)]=_0x5e20a3,this[_0x5afb28(0x1e5)]=!!this['_telemetryService'],_0xf239c[_0x5afb28(0x412)](v[_0x5afb28(0x3ff)](this[_0x5afb28(0x236)]))['subscribe'](_0x424fbb=>{const _0xe6d3ac=_0x5afb28;var _0x25252e;typeof _0x424fbb>'u'||(this[_0xe6d3ac(0x4ae)]=_0x424fbb,_0x424fbb?(this[_0xe6d3ac(0x258)](_0x424fbb),this[_0xe6d3ac(0x28c)]=_0x424fbb[_0xe6d3ac(0x2f8)][_0xe6d3ac(0x238)](_0x4d3210=>{const _0x5c3698=_0xe6d3ac;_0x4d3210['routeKey']===this[_0x5c3698(0x266)]&&this[_0x5c3698(0x316)](_0x4d3210);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0xe6d3ac(0x3f3)](0x2),(_0x25252e=this[_0xe6d3ac(0x28c)])==null||_0x25252e[_0xe6d3ac(0x56f)](),this[_0xe6d3ac(0x28c)]=null));}),this[_0x5afb28(0x516)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x368261=_0x5afb28;var _0x1b09dd;(_0x1b09dd=this[_0x368261(0x4ae)])==null||_0x1b09dd[_0x368261(0x492)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x368261(0x266)]}});})));}get['sessionStatus'](){const _0x2215e5=_0x215dce;return this['_sessionStatus$'][_0x2215e5(0x45e)]();}[_0x215dce(0x450)](){const _0x5a7538=_0x215dce;var _0x5f4485,_0x25d129;return(_0x25d129=(_0x5f4485=this[_0x5a7538(0x4ae)])==null?void 0x0:_0x5f4485[_0x5a7538(0x200)])!=null?_0x25d129:null;}[_0x215dce(0x587)](){const _0xfd89fe=_0x215dce;super[_0xfd89fe(0x587)](),this['dispose$'][_0xfd89fe(0x3f3)](),this[_0xfd89fe(0x236)][_0xfd89fe(0x3aa)]();}['close'](){const _0xe28341=_0x215dce;var _0x52bbe2,_0x290f79;this['_throwTelemetryCollaborationNewChangeset'](),(_0x52bbe2=this[_0xe28341(0x4ae)])==null||_0x52bbe2['send']({'cmd':b[_0xe28341(0x3ed)],'data':{'roomID':this[_0xe28341(0x266)]}}),(_0x290f79=this[_0xe28341(0x4ae)])==null||_0x290f79['close'](),this[_0xe28341(0x2c9)][_0xe28341(0x3aa)](),this[_0xe28341(0x30d)]['complete'](),this[_0xe28341(0x587)]();}['_onCombEvent'](_0x5a9eee){const _0x172a80=_0x215dce;_0x5a9eee[_0x172a80(0x4c5)]===b[_0x172a80(0x59a)]?this[_0x172a80(0x29b)](_0x5a9eee):_0x5a9eee[_0x172a80(0x4c5)]===b['RECV']&&this[_0x172a80(0x4b7)](_0x5a9eee);}[_0x215dce(0x258)](_0x17baea){const _0x5b04ef=_0x215dce;this[_0x5b04ef(0x30d)][_0x5b04ef(0x3f3)](0x1),_0x17baea['send']({'cmd':b[_0x5b04ef(0x59a)],'routeKey':this[_0x5b04ef(0x266)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5b04ef(0x266)]}]}});}['_onJoinRoomEvent'](_0x15e57d){const _0x135e1b=_0x215dce;var _0x456c7d;if(_0x15e57d[_0x135e1b(0x558)]===Ve[_0x135e1b(0x511)]){this[_0x135e1b(0x598)]['show']({'type':K[_0x135e1b(0x536)][_0x135e1b(0x55f)],'content':this['_localeService']['t'](_0x135e1b(0x5b3))}),this[_0x135e1b(0x30d)][_0x135e1b(0x3f3)](0x2);return;}this[_0x135e1b(0x30d)][_0x135e1b(0x3f3)](0x3);const _0x29a654=(_0x456c7d=_0x15e57d['data'][_0x135e1b(0x1f4)][this[_0x135e1b(0x266)]])==null?void 0x0:_0x456c7d[_0x135e1b(0x2eb)];_0x29a654&&_0x29a654[_0x135e1b(0x392)](_0x28bf83=>this[_0x135e1b(0x40b)][_0x135e1b(0x475)](this[_0x135e1b(0x266)],_0x28bf83));}['_onRecvEvent'](_0x274119){const _0x2db4b6=_0x215dce;try{const _0x19715a=_0x274119[_0x2db4b6(0x455)];switch(_0x19715a['eventID']){case _[_0x2db4b6(0x5a1)][_0x2db4b6(0x44b)]:this[_0x2db4b6(0x2b8)](_0x19715a),this[_0x2db4b6(0x2c9)][_0x2db4b6(0x3f3)](_0x19715a);break;case _[_0x2db4b6(0x5a1)][_0x2db4b6(0x505)]:this[_0x2db4b6(0x49f)](_0x19715a),this[_0x2db4b6(0x2c9)][_0x2db4b6(0x3f3)](_0x19715a);break;case _[_0x2db4b6(0x5a1)]['CHANGESET_ACK']:this[_0x2db4b6(0x557)](),this[_0x2db4b6(0x38e)](),this[_0x2db4b6(0x2c9)][_0x2db4b6(0x3f3)](_0x19715a);break;case _[_0x2db4b6(0x5a1)][_0x2db4b6(0x216)]:this[_0x2db4b6(0x362)][_0x2db4b6(0x235)](_0x2db4b6(0x35f)+JSON[_0x2db4b6(0x406)](_0x19715a)),this['_event$'][_0x2db4b6(0x3f3)](_0x19715a);break;case _['CollaborationEvent'][_0x2db4b6(0x58e)]:this['_commentService'][_0x2db4b6(0x396)](_0x19715a[_0x2db4b6(0x455)]),this[_0x2db4b6(0x2c9)]['next'](_0x19715a);break;default:this['_event$']['next'](_0x19715a);}}catch(_0x1ce0c9){this[_0x2db4b6(0x362)][_0x2db4b6(0x235)](_0x1ce0c9,_0x274119);}}[_0x215dce(0x2b8)](_0x495c57){const _0x229dcf=_0x215dce;this['_memberService'][_0x229dcf(0x475)](this[_0x229dcf(0x266)],_0x495c57[_0x229dcf(0x455)]);}[_0x215dce(0x49f)](_0x311f81){const _0x3e49f7=_0x215dce;this[_0x3e49f7(0x40b)][_0x3e49f7(0x2f5)](this[_0x3e49f7(0x266)],_0x311f81[_0x3e49f7(0x455)][_0x3e49f7(0x200)]);}async[_0x215dce(0x492)](_0x55c0ef,_0x4b0cb0){const _0x360d80=_0x215dce;if(this[_0x360d80(0x307)]!==0x3||!this[_0x360d80(0x4ae)])throw new Error(_0x360d80(0x428));try{_0x55c0ef[_0x360d80(0x533)]===_[_0x360d80(0x5a1)][_0x360d80(0x4cd)]&&(this[_0x360d80(0x552)](),this[_0x360d80(0x285)](_0x55c0ef)),this[_0x360d80(0x4ae)][_0x360d80(0x492)]({'cmd':b[_0x360d80(0x44c)],'routeKey':_0x4b0cb0,'routeType':'','data':_0x55c0ef});}catch(_0x18e21f){this['_logService'][_0x360d80(0x235)](_0x18e21f);}}['_scheduleCollaborationTimeoutTimer'](){const _0x53bef0=_0x215dce;var _0x5c605b;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x10a597=_0x3749;this['_collaborationTimeoutTimer']=null,this[_0x10a597(0x598)]['show']({'type':K[_0x10a597(0x536)][_0x10a597(0x3ea)],'content':this[_0x10a597(0x545)]['t'](_0x10a597(0x4b3))});},(_0x5c605b=this[_0x53bef0(0x1be)][_0x53bef0(0x1bd)](Be))!=null?_0x5c605b:St);}[_0x215dce(0x38e)](){const _0x37365f=_0x215dce;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x37365f(0x408)]),this[_0x37365f(0x408)]=null);}[_0x215dce(0x285)](_0x403bbe){const _0x1a7986=_0x215dce;if(!this['_shouldReportTelemetry'])return;const {data:_0x47f01c}=_0x403bbe,{unitID:_0x3b497d,changeset:_0x163bb4}=_0x47f01c,{mutations:_0x4af662,type:_0x71959e}=_0x163bb4;this['_telemetryInfo']={'unitId':_0x3b497d,'type':_0x71959e,'startTime':performance[_0x1a7986(0x3e9)](),'stopTime':0x0,'duration':0x0,'size':os(_0x4af662)};}[_0x215dce(0x557)](){const _0x2d2ff4=_0x215dce;if(this[_0x2d2ff4(0x1e5)]){if(!this['_telemetryInfo']){this['_logService'][_0x2d2ff4(0x235)](_0x2d2ff4(0x39e),_0x2d2ff4(0x268));return;}this[_0x2d2ff4(0x585)][_0x2d2ff4(0x2c3)]=performance['now'](),this['_telemetryInfo'][_0x2d2ff4(0x576)]=this['_telemetryInfo']['stopTime']-this['_telemetryInfo'][_0x2d2ff4(0x55c)],this[_0x2d2ff4(0x514)][_0x2d2ff4(0x4ba)](rs,this[_0x2d2ff4(0x585)]),this['_telemetryInfo']=null;}}[_0x215dce(0x39a)](){this['_telemetryInfo']=null;}},exports[_0x215dce(0x4a2)]=ds([k(0x2,a[_0x215dce(0x3ce)]),k(0x3,M[_0x215dce(0x3e3)]),k(0x4,M[_0x215dce(0x4fa)]),k(0x5,a[_0x215dce(0x1e8)]),k(0x6,a[_0x215dce(0x561)](a[_0x215dce(0x3d6)])),k(0x7,a[_0x215dce(0x561)](X)),k(0x8,a[_0x215dce(0x561)](Fe)),k(0x9,a[_0x215dce(0x3b1)](Wt[_0x215dce(0x1d5)]))],exports['CollaborationSession']);function _0x5ea7(){const _0x8ed24=['_entityInit$','POST','IContextService','SetTextSelectionsOperation','result','saveSnapshot','getValue','responseType','isPermissionRej','_http','mapTo','getCurrentRevOfUnit','setParam','awaiting_with_pending','commentUpdate$','_transformStack','actions','_docTransformSelectionsService','image/png','registerBeforeClose','c1Prime','delay','COLLAB_WEB_SOCKET_URL','ISnapshotServerService','removeEventListener','LICENSE_EXPORT_SIZE_EXCEEDED','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','size','_ensureSubject','updateMember','_HTTPService','_renderManagerService','list','_queuedRemoteChangesets','resolve','saveSheetBlock','setTimeout','_imageSourceCache','useObservable','/block/','SnapshotServerOverHTTPService','_getSheetObject','onCommandExecuted','IHTTPImplementation','_incrementRevisionNumber','_handleHeartbeatEvent','_updateSubUnitFromURLParams','univer-offline','_initResize','getCollabCursors$','JSONX','title','UniverInstanceType','_rescheduleHeartbeat','LIVESHARE_REQUEST_HOST','c2Prime','Univer','UNRECOGNIZED','send','range','_docSkeleton','INotificationService','_config','save','HTTPRequest','toStringTag','_transformIMECache','_clearTimeoutTimer','getCurrent','_onRefRangeChange','icon','_onUserLeave','close$','YUUMI_RATE_OVER_LIMIT','CollaborationSession','clearInterval','createElement','withCredentials','_schedule','_updateLocalCursor','_themeService','roomMembers','setActiveRange','_updateLocalCache','CollaborationSessionService','collabCursorState$','_socket','_cachedData','_executeRemoteChangeset','_initStatusComponent','useCallback','session.collaboration-timeout','_substituteUndoStack','/universer-api/snapshot','blue400','_onRecvEvent','hide','permission.title','capture','update','632Pwqctt','set','univer-pro.collaboration-client-socket-service','cursorInfo$','HEARTBEAT_TIMEOUT_KEY','idSuffix','_onRemoteRejected','_collabCursorState$','merge','cmd','addObject','lodash/debounce','sequenceExecute','_initStatusListener','UserManagerService','UNIVER_COLLABORATION_CLIENT_PLUGIN','_saveTaskMap','SUBMIT_CHANGESET','IPermissionService','COMPLETION_FINISHED','_startCollaboration','_clearScheduledTask','defIds','permissionRejEvent','infoRsp','isTransformChangesetsSuccess','fillText','getCurrentUser','symbol','_socket$','DataLoaderController','_unitStatus','_fetchMissChangesets','Workbook','isEditing','doc.mutation.rich-text-editing','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','collaboration.closeRoom','UnitSnapshot','endColumn','_localCacheService','getOffsetConfig','event$','505145QovhJx','_docSyncEditingCollabCursorService','_createInitialState','b64DecodeUnicode','UUID','getTypeOfUnitDisposed$','gold400','UniverIcon','color','handleInsertRow','IDLE','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_sendHeartbeatTimer','removeParam','_type','BehaviorSubject','RemoveColCommandId','ranges','unit-cache-','IMessageService','Ready','resize','currentSkeleton$','collaboration-client.config','&source=','searchParams','ACTIVE_UNIT_EVENT_CHANNEL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_undoRedoService','_onConnectionOpen','USERS_LEAVE','collaboration.single-unit.warning','Subject','IRemoteInstanceService','has','forwardRef','_members','session','rev','BASE64','IImageIoService','allowed','FAIL','UPDATE_PERMISSION_OBJ','editing\x20status\x20changed\x20to','_telemetryService','_createInitialStateImpl','disposeWithMe','transformStack\x20failed!','ICollaborationSocketService','objectID','close','mapDocumentTypeToUniverType','compose','OnLifecycle','_transformRemoteChangesetByIMECache','setShapeProps','60zRKDqU','univer-online-status-icon','appendMutation','svg','_getSignURL','fetching\x20missing\x20changesets\x20from\x20','fetchMiss','disableLocalCache','_collaborationPaused','addEventListener','concat','ThresholdInterceptorFactory','with','_getAPIPrefix','CollaborationSocketService','_sendingTimer','Disposable','_cursorInfo$','_checkMissing','eventID','PERMISSION_DENIED','permission.content','MessageType','black','APPLY_REVISION_CONFILICT','PERMISSION_REJ','lineTo','div','M0\x200H16V16H0z','_acknowledgedAwaitingChangeset','_registerRenderDependencies','includes','getRoom','getDocRanges','_render','generateRandomId','override','_localeService','pauseCollaboration','_eventUnsubscribe','_drawAnchor','_draw','IUIPartsService','AWAITING','reverse','@univerjs/engine-formula','_anchorDot','method','JOINING','purple300','_scheduleCollaborationTimeoutTimer','image/bmp','_scheduleClearOtherTimer','_clearUndo','clearTimeout','_stopTelemetryCollaborationNewChangeset','code','VIEW_MAIN','/role','SHOULD_CLOSE_CONN','startTime','_labelPosition','[CollaborationUndoRedoService]','Warning','src','Inject','collab-text-range-','SNAPSHOT_URL_KEY','uni.network.url-service','/collaborator','urlChange$','commentUpdateEvent','getActiveRange','_state','_roomMembers$','[SyncedState]:\x20received\x20acknowledgement.','HTTPService','SYNCED','AUTHZ_URL_KEY','unsubscribe','_onRemoteChangeset','UNAUTHENTICATED','_removeRoom','getSkeleton','/universer-api/file/{fileID}/sign-url','_sessions','duration','CommandType','href','_instanceService','_onFetchMissResult','[DataLoaderController]','offline','Undefined','_permissionService','action','/universer-api/oidc/authpage','univer-pro.collaboration-client.single-active-unit-service','combineLatest','IUniverInstanceService','then','_telemetryInfo','_onConnectionFailed','dispose','@univerjs/engine-render','DesktopCollaborationStatusDisplayController','serializeRangeWithSheet','jiqing500','batchAllowed','tag','COMMENT_UPDATE','getMergeData','createCollaborator','0\x200\x2017\x2016','getSheetId','getUnit','_redoStacks','pending','random','none','_messageService','_pendingMutations','JOIN','XHRHTTPImplementation','DocIMEInputManagerService','toggleOffline','updateCollaborator','debug','ImageUploadStatusType','CollaborationEvent','defs','getRelativeToViewportCoord','_entities','_snapshotService','_exhaustRemoteChangesetQueue','loadDoc','toggleOnline','EffectRefRangId','CommentService','syncEditingCollabCursor','collaboration-session-retry','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','INTERNAL_ERROR','NodePositionConvertToCursor','image/jpg','SetDocZoomRatioOperation','originalMeta','session.room-full','reject','_isPermissionRej','rxjs/operators','_waitForHeartbeatResponse','/universer-api/comb','history','focused$','/object','enableOfflineEditing','collabStatus.syncing','distinctUntilChanged','_toggleOffline','workbook','RevisionService','trim','off-line-single_clip0_910_343','@univerjs/rpc','{fileID}','_hover','post','debounceTime','LocalUndoRedoService','onlineStatusIcon','onStarting','CONNECTOR_DATA_TOO_LARGE','subUnitId','\x0aCurrent:\x20','onPointerLeave$','function','CHANGESET_REJ','onSendChangeset','215515qDQLiV','getConfig','_configService','\x0aAfter:\x20','getUniverSheetInstance','registerHTTPInterceptor','LOCAL_CACHE_INTERVAL_KEY','HttpImport','key','_removeClearOtherTimer','text','getTypeOfUnitAdded$','round','collaboratorID','patch','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','indexOf','RETRY_CONNECTING_INTERVAL','_initModules','path','_drawTextRange','NodePositionConvertToRectRange','SEND_CHANGESET_TIMEOUT_KEY','isTransformMutationFailure','endRow','ITelemetryService','getCellPositionByOffset','getUndoRedoMutationParamsCache','closePath','createIdentifier','fill','min','clear','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','skeleton','_handleJoinEvent','_setupSubUnitSync','createSocket','UNKNOWN_CODE','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','DeleteRangeMoveLeftCommandId','_shouldReportTelemetry','_timeoutTimer','DEFAULT_FILE_NAME','IConfigService','_transformUndoRedoStack','_roomMembers','setConfig','_initCommandExecutedListener','LIVESHARE_OPERATION','SnapshotService','_socketReady','hasOwnProperty','InsertRangeMoveDownCommandId','_scheduleTimestamp','onTransformRemoteChangesetByIMECache','roomInfos','collab-client.tooltip.reconnect','transformUndoRedo','_waitCount','[FetchMissState]','error$','_getScale','throttleTime','getInterceptPoints','clipPath','string','WebURLService','memberID','headers','_cursor','_startDocCollabCursor','onRemoteChangeset','restore','reduce','socket$','refreshPermission','_collabSessionService','getSheetObject','Unknown\x20user','parse','getSheetBlock','RETRY_CONNECTING_INTERVAL_KEY','[CollaborationSessionService]:\x20socket\x20error','handleInsertRangeMoveDown','currentColor','ImageSourceType','_handleHover','ALREADY_EXISTS','_transitionLocked','MSG_FOR_ERROR','APPLY_NON_SEQUENTIAL_REVISION','_disabled','_getCurrentRevision','_syncEditingCollabCursor','_hovered','4365FsBqYd','deserializeRangeWithSheet','_send','getColor','_initCloseConn','selections','Rectangle','_httpService','_collabCursorController','append','slice','split','_startSheetCollabCursor','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_remoteChangesetQueue','COLLAB_SUBMIT_CHANGESET_URL_KEY','YUUMI_URL_COL_OUT_OF_RANGE','clsx','getResourcesRequest','_getRedoStack','HEARTBEAT_INTERVAL_KEY','image/jpeg','429070MzzpnI','unitID','_docSkeletonManagerService','error','dispose$','UNIVER_PROJECT','subscribe','contains','fetchThroughInterceptors','AWAITING_WITH_PENDING','Vector2','drawWith','encodeURIComponent','registerRefRange','textEncoder','Steady','collab-text-anchor-','[PendingState]:\x20received\x20acknowledgement.','ThemeService','TOO_MANY_REQUESTS','baseRev','loadOfflineData','leaveEvent','m1Prime','get','find','entries','activeSheet$','startRow','_getMergeRange','_textBubble','MUTATION','UNIVER_UNKNOWN','file','isTransformMutationsWithChangesetFailure','editingUnit','onMissingChangesets','_updateStatus','_joinRoom','FETCH_MISSING','current','onTransformChange$','_state$','_selfUnitIDs','SheetsSelectionsService','onPointerEnter$','collabStatus.fetchMiss','column','handleIRemoveCol','APPLY_REJECT','updateOfflineData','catch','_unitID','values','telemetry\x20info\x20is\x20not\x20initialized','getParam','CONFLICT','/unit/','selection','RETRY_CONNECTING_MAX_COUNT_KEY','UPDATE_CURSOR','newValue','getCurrentSelections','setItem','onTransformIME','ICommandService','6hcBKMr','newCsEvent','154ggYFUS','mergeOverrideWithDependencies','getSheetBySheetId','_getCtorByUniverType','body','getViewport','Rect','ONLINE','FileId','_cursors','_singleActiveUnitService','status','awaiting','setCurrentUser','_id','_startTelemetryCollaborationNewChangeset','1em','_collaborationController','subscribeEvent','userID','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','@univerjs/docs-ui','_socketMessageSubscription','substring','deserializeToCombResponse','_colorIndex','routeKey','_setupBeforeClosingHandler','startsWith','conflict.content','WebSocketService','_urlService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_socketService','_getSendChangesetTimeout','_getAPIPrefixPath','/allowed','_onJoinRoomEvent','_colorAssignService','sessionStatus$','4700571LlDaWs','SUCCUSS','onStateChange','univerjs-icon\x20univerjs-icon-','NO_OTHER_CLIENTS_EDITING','onTransformSelections','LIVESHARE_TERMINATE','assignAColorForMemberID','_retryCount','CHANGESET_ACK','MoveRangeCommandId','_session','transformByState','\x20-\x20','LocalCacheService','handleInsertRangeMoveRight','getCollabEntity$','saveChangeset','rgba(255,\x20255,\x20255,\x200.01)','@univerjs/network','whenReady','xlink:href','DocCollaborationEntity','_refRangeService','_color','_ws','_onUserJoin','NEW_CHANGESETS','UNIVER_SHEET','PSEUDO_FETCH_MISSING_RESULT','roles','create','shouldCloseConn','_decreaseWaiting','setUndoRedoMutationParamsCache','_onCursorDelete','ImageIoService','stopTime','auth.needGotoLoginAlert','disposeUnit','change$','getUnitType','location','_event$','/universer-api/snapshot/','_lastPointer','[CollaborationEntity]','getActiveSheet','RETRY_CONNECTING_MAX_COUNT','_injector','roomMembers$','executeCommand','_updateURLWithCurrentState','isActive','FromArray','onMouseMove','onMissedChangesetFetched','onRemoteRej','filter','@univerjs/sheets-ui','localeService','DependentOn','_anchor','sheetId','OFFLINE','UNIVER_DOC','exhaustSavingTask','_getAnchorBounding','_shapes','DocSkeletonManagerService','_transformUndoredo','_listenToOfflineEvent','hovered','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[PendingState]:\x20received\x20rejection.','changesets','image/gif','members','map','url(#$1','ERROR_IMAGE_TYPE','_saveCache','@univerjs/design','react','_scheduleHeartbeat','name','Shape','removeMember','?size=','put','message$','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','transformMutationsWithChangeset','serializeCombRequest','/rev/','pluginName','FETCH_MISS','_applyRemoteChangeset','HttpExport','replaceState','unshift','url(#off-line-single_clip0_910_343)','Injector','onlineStatus','getWorkbookSelections','sessionStatus','displayName','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_awaitingChangeset','transformChangesets','joinRsp','_sessionStatus$','toDisposable','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','/new_changes','UniverCollaborationClientPlugin','off-line-single','DeleteRangeMoveUpCommandId','enableSingleActiveInstanceLock','YUUMI_SUBSCRIPTION_NOT_FOUND','_onCombEvent','open$','LICENSE_MAX_UNITS_EXCEEDED','NOT_COLLAB','_unlockTransition','&to=','COLLAB_SUBMIT_CHANGESET_URL','[SyncedState]:\x20received\x20rejection.','LICENSE_DISTRO_REJECTED','delete','saveOfflineData','deepClone','_assignedColors','_onConflict','SNAPSHOT_SERVER_URL_KEY','_notificationService','show','RefRangeService','BuiltInUIPart','saveImage','Starting','ILocalStorageService','m2Prime','DisposableCollection','length','PENDING','max','state','deleteCollaborator','asObservable','bottom','_revisionService','_tryReconnect','interceptor','encode','RichTextEditingMutation','isArray','collabStatus.offline','reconnect','replace','getCollabEntity','requestParams','findNodePositionByCharIndex','triggerDblclick','children','_syncEditingCollabCursorService','status$','add','resourceIDs','shareReplay','popstate','_cursorShapes','LIVESHARE_FETCH_OPERATIONS','_registerDependencies','onRendered','fromEvent','transformMutation','use','_handler','_drawRectRange','?url=','_localStorageService','YUUMI_UNABLE_LOAD_URL','url','InsertRowCommandId','_context','AuthzIoHttpService','_createSocket','ITransformService','Plugin','objects','transformRemoteChangeset','_commandService','save\x20fail\x20reason\x20is\x20','_getDownloadEndpointURL','width','_logService','_hideTimer','push','getCoordByCell','_onRemoteACK','_lockTransition','onRemoteAck','getTime','fillStyle','transformIMECache','_transformPreviousActiveRange','/fetchmissing?from=','_clearOtherTimers','_getSnapshotAPIPrefix','CollaborationEntity','setWaitCount','_onMessage','UNKNOWN_CMD','SetWorksheetActivateCommand','_tryEnsureSocket','session.will-retry','session.connection-failed','fromEventSubject','_removeCollabCursors','switchMap','requireSession','_userManagerService','listRoles','closeSession','extend','univer-online','submit\x20changeset\x20error!','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[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.','COMPRESS_MUTATION_APPLY','_snapshotServerService','verdancy600','_getSaveTimeout','fetchMissingChangesets','_clearHeartbeatTimer','_submitChangeset','getMember','_retryConnectingTimer','top','_clearCollaborationTimeoutTimer','_onOffline','SheetSkeletonManagerService','CollaborationStatus','forEach','OffLineSingle','getOwnPropertyDescriptor','init','onCommentUpdate','synced','unit','_heartbeatTimer','_throwTelemetryCollaborationNewChangeset','flatMap','_commentService','_scheduleSaving','[CollaborationSession]','/universer-api/stream/file/upload','_transformSelections','_backgroundColor','take','TEXT_RANGE_LAYER_INDEX','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_listenToOnlineEvent','evenodd','parseProtocolChangeset','conflict.title','UNDEFINED','complete','_compressMutationService','_candidateSocket','getRangePointData','/-/object/-/batch_allowed','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','unload','Optional','_handleEvent','DocSelectionManagerService','_onCursorUpdate','COLORS','1306702AWYRTX','_toggleOnline','HELLO','socketService','storage','useDependency','makeDirty','_sheetSkeletonManagerService','getUnitOnRev','SheetCollaborationEntity','call','height','[OfflineState]:\x20received\x20rejection.','enableLocalCache','onload','_univerInstanceService','INVALID_ARGUMENT','_uiPartsService','ColorKit','confirm','objectType','online','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','collabStatus.conflict','ILogService','_updateState','_handleLeaveEvent','&assign=','SetSelectionsOperation','UNIVER_SLIDE','json','Module','LocaleService','toRgbString','isTransformMutationsWithChangesetSuccess','_refreshCollabCursors','conflict','fetch_missing','collabStatus.notCollab','attrs','_change$','CollaborationController','_clearLocalCache','from','SNAPSHOT_HAS_BEEN_REMOVED','IBeforeCloseService','_transformService','773675tHBUuX','prototype','HEARTBEAT','HEARTBEAT_TIMEOUT','now','Error','_docTransformIMECacheService','ERROR_EXCEED_SIZE','LEAVE','type','unitId','readAsDataURL','_commentUpdate$','revision','next','awaitingChangeset','on-line-single_clip0_910_349','createInstance','concatMap','RECV','getRenderById','getAncestorScale','_online','subunit','className','NOT_FOUND','takeUntil','apply','[CollaborationSessionService]','CHANGESET_REVISION_CONFILICT','liveShareNewHost','[PendingState]:\x20unhandled\x20univer\x20type:\x20','measureText','stringify','univer-online-status-title','_collaborationTimeoutTimer','font','every','_memberService','_createHandler','propertyIsEnumerable','collaMsg','mutations','onlyLocal','WorkbookEditablePermission','pipe','/universer-api/authz','arc','UnitEmbedded','/object/','OTHER_CLIENTS_EDITING','isValidRectRange','isInternalEditorID','APPLY_PERMISSION_DENIED','beginPath','params','_status$','state$','cursorInfo','backgroundColor','getUnitId','[OfflineState]:\x20received\x20acknowledgement.','IUndoRedoService','_collaborationSessionService','VIEWPORT_KEY','url(#on-line-single_clip0_910_349)','_init','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','#FFF','getFocusedUnit','getOwnPropertySymbols','...','colorChannel1','_replaceFileID','InsertColCommandId','assign','_range','Tools','_initMergeInterceptor','updatePermissionPoint','some','_unitOnClients','defineProperty','LOGIN_URL_KEY','onSyncEditingCollabCursor','RxDisposable','COLLAB_WEB_SOCKET_URL_KEY','CompressMutationService','COMPRESS_MUTATION_SEND','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_loadSheet','connectInjector','MergeInterceptorFactory','SNAPSHOT_INVALID_SNAPSHOT','transformSelections','_updateCollabCursors','toString','unknown','_name','pushState','textRanges','RegularPolygon','USERS_ENTER','INGEST','LifecycleStages','LIVESHARE_NEW_HOST','connection\x20error','getMemberID','getUnitStatus$','LOCAL_CACHE_INTERVAL','sheets','_sheetTransformSelectionsService','data','_scene','resend'];_0x5ea7=function(){return _0x8ed24;};return _0x5ea7();}var Ss=Object['defineProperty'],vs=Object[_0x215dce(0x394)],fs=(_0x48387b,_0x106b70,_0x4efac3,_0x1f0c27)=>{const _0x3e4e57=_0x215dce;for(var _0x47100b=_0x1f0c27>0x1?void 0x0:_0x1f0c27?vs(_0x106b70,_0x4efac3):_0x106b70,_0x129b57=_0x48387b[_0x3e4e57(0x32e)]-0x1,_0x4e47db;_0x129b57>=0x0;_0x129b57--)(_0x4e47db=_0x48387b[_0x129b57])&&(_0x47100b=(_0x1f0c27?_0x4e47db(_0x106b70,_0x4efac3,_0x47100b):_0x4e47db(_0x47100b))||_0x47100b);return _0x1f0c27&&_0x47100b&&Ss(_0x106b70,_0x4efac3,_0x47100b),_0x47100b;},z=(_0x38cf27,_0x3ea2ee)=>(_0x1676b6,_0x189477)=>_0x3ea2ee(_0x1676b6,_0x189477,_0x38cf27);exports[_0x215dce(0x4ac)]=class extends a[_0x215dce(0x530)]{constructor(_0x32a9ff,_0x5ce19e,_0x1fd3cb,_0x33cddf,_0x80fbec,_0x5e1ac4){const _0x3e4742=_0x215dce;super(),d(this,_0x3e4742(0x4d9),new v[(_0x3e4742(0x4f6))](void 0x0)),d(this,_0x3e4742(0x207),this[_0x3e4742(0x4d9)][_0x3e4742(0x333)]()),d(this,_0x3e4742(0x3ac),null),d(this,'_sessions',new Map()),d(this,_0x3e4742(0x41d),new v[(_0x3e4742(0x4f6))](j[_0x3e4742(0x4f1)])),d(this,'status$',this[_0x3e4742(0x41d)]['asObservable']()),d(this,'_socketReady',!0x1),d(this,_0x3e4742(0x38c)),d(this,_0x3e4742(0x2a6),0x0),d(this,_0x3e4742(0x4f3)),d(this,'_timeoutTimer'),(this[_0x3e4742(0x2cf)]=_0x32a9ff,this['_localeService']=_0x5ce19e,this['_messageService']=_0x1fd3cb,this['_logService']=_0x33cddf,this[_0x3e4742(0x1be)]=_0x80fbec,this[_0x3e4742(0x297)]=_0x5e1ac4);}get[_0x215dce(0x4ae)](){const _0x4c23bb=_0x215dce;return this['_socket$'][_0x4c23bb(0x45e)]();}[_0x215dce(0x587)](){const _0x3432d8=_0x215dce;super[_0x3432d8(0x587)](),this[_0x3432d8(0x575)][_0x3432d8(0x392)](_0x141f5f=>_0x141f5f[_0x3432d8(0x587)]()),this[_0x3432d8(0x575)]['clear'](),this['_status$'][_0x3432d8(0x3aa)]();}async[_0x215dce(0x37b)](_0x46a46c){const _0x94456a=_0x215dce;if(this[_0x94456a(0x575)][_0x94456a(0x509)](_0x46a46c))return this[_0x94456a(0x575)][_0x94456a(0x24a)](_0x46a46c);this[_0x94456a(0x375)]();const _0x25bd7a=this[_0x94456a(0x2cf)]['createInstance'](exports['CollaborationSession'],_0x46a46c,this[_0x94456a(0x4d9)][_0x94456a(0x333)]());return this[_0x94456a(0x575)][_0x94456a(0x4bd)](_0x46a46c,_0x25bd7a),_0x25bd7a;}['closeSession'](_0x5ce3f6){const _0x3e1970=_0x215dce;var _0x26ce39;const _0x215d0d=this['_sessions'][_0x3e1970(0x24a)](_0x5ce3f6);_0x215d0d&&(this['_sessions'][_0x3e1970(0x31f)](_0x5ce3f6),_0x215d0d['close']()),this['_sessions'][_0x3e1970(0x473)]||(_0x26ce39=this[_0x3e1970(0x4ae)])==null||_0x26ce39[_0x3e1970(0x51a)]();}['reconnect'](){const _0x3ebfc1=_0x215dce;this['_retryCount']=0x0,this[_0x3ebfc1(0x38c)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x3ebfc1(0x38c)]=null),this[_0x3ebfc1(0x336)]();}['_createSocket'](){const _0x3f1db7=_0x215dce;var _0x5128c3;const _0x2d1f85=(_0x5128c3=this['_configService'][_0x3f1db7(0x1bd)](ut))!=null?_0x5128c3:Xt,_0x757595=this[_0x3f1db7(0x297)]['createSocket'](_0x2d1f85);return this['_candidateSocket']=_0x757595,_0x757595;}['_tryEnsureSocket'](){const _0x3af35d=_0x215dce;var _0x212add,_0x2efcf1;try{const _0x27c1ec=(_0x2efcf1=(_0x212add=this['_socket'])!=null?_0x212add:this['_candidateSocket'])!=null?_0x2efcf1:this[_0x3af35d(0x359)]();if(_0x27c1ec){const _0x12980=_0x27c1ec['send'];_0x27c1ec['send']=_0x4f6205=>(this['_rescheduleHeartbeat'](),_0x12980['apply'](_0x27c1ec,[_0x4f6205])),_0x27c1ec[_0x3af35d(0x2f8)][_0x3af35d(0x238)](_0x57e5ef=>this[_0x3af35d(0x372)](_0x27c1ec,_0x57e5ef)),_0x27c1ec[_0x3af35d(0x1f9)][_0x3af35d(0x412)](E[_0x3af35d(0x3a2)](0x1))['subscribe'](_0x48cadf=>this[_0x3af35d(0x362)]['error'](_0x3af35d(0x20f),_0x48cadf)),_0x27c1ec['open$'][_0x3af35d(0x412)](E['take'](0x1))[_0x3af35d(0x238)](()=>{const _0x5b88c5=_0x3af35d;this[_0x5b88c5(0x504)](_0x27c1ec);}),_0x27c1ec['close$']['pipe'](E[_0x3af35d(0x3a2)](0x1))[_0x3af35d(0x238)](_0x4173a0=>{const _0x3f18f9=_0x3af35d;this[_0x3f18f9(0x362)]['debug'](_0x3f18f9(0x401),'socket\x20close',_0x4173a0),this[_0x3f18f9(0x586)]();});}}catch(_0x326f9f){this[_0x3af35d(0x362)][_0x3af35d(0x235)](_0x326f9f),this[_0x3af35d(0x586)]();}}[_0x215dce(0x504)](_0x530cc7){const _0x343c5a=_0x215dce;this[_0x343c5a(0x362)][_0x343c5a(0x59f)](_0x343c5a(0x401),'socket\x20open.'),_0x530cc7[_0x343c5a(0x492)]({'cmd':b[_0x343c5a(0x3b8)]}),this[_0x343c5a(0x48d)](),this[_0x343c5a(0x2e5)]();}[_0x215dce(0x2e5)](){const _0x16fde8=_0x215dce,_0xa254d7=()=>{const _0x5d4ae3=_0x3749;this[_0x5d4ae3(0x38f)](),this[_0x5d4ae3(0x3a5)](),window['removeEventListener']('offline',_0xa254d7);};window[_0x16fde8(0x529)](_0x16fde8(0x57c),_0xa254d7);}['_onOffline'](){const _0x233ea0=_0x215dce;this['_socketReady']=!0x1,this['_status$'][_0x233ea0(0x3f3)](j[_0x233ea0(0x2de)]),this[_0x233ea0(0x4d9)][_0x233ea0(0x3f3)](null),this[_0x233ea0(0x49b)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x2fa799=_0x215dce;var _0x3b64be;this[_0x2fa799(0x38f)](),this[_0x2fa799(0x2a6)]<((_0x3b64be=this[_0x2fa799(0x1be)][_0x2fa799(0x1bd)](ft))!=null?_0x3b64be:zt)?(this[_0x2fa799(0x598)][_0x2fa799(0x326)]({'key':_0x2fa799(0x5ac),'type':K[_0x2fa799(0x536)][_0x2fa799(0x55f)],'content':this['_localeService']['t'](_0x2fa799(0x376))}),this[_0x2fa799(0x336)]()):(this['_messageService'][_0x2fa799(0x326)]({'key':_0x2fa799(0x5ac),'type':K[_0x2fa799(0x536)][_0x2fa799(0x3ea)],'content':this[_0x2fa799(0x545)]['t'](_0x2fa799(0x377))}),this[_0x2fa799(0x3a5)]());}['_listenToOnlineEvent'](){const _0x5980d5=_0x215dce,_0x36f26b=()=>{const _0x1b2fe5=_0x3749;this[_0x1b2fe5(0x33c)](),window['removeEventListener'](_0x1b2fe5(0x3cb),_0x36f26b);};window[_0x5980d5(0x529)](_0x5980d5(0x3cb),_0x36f26b),this[_0x5980d5(0x4d9)]['pipe'](E[_0x5980d5(0x2d8)](_0x54a252=>!!_0x54a252),E['take'](0x1))[_0x5980d5(0x238)](()=>{const _0x54963e=_0x5980d5;window[_0x54963e(0x470)](_0x54963e(0x3cb),_0x36f26b);});}[_0x215dce(0x336)](){const _0x4892ef=_0x215dce;var _0x156eed;const _0x49010e=this[_0x4892ef(0x2a6)],_0x224fd0=_0x49010e===0x0?0x0:((_0x156eed=this[_0x4892ef(0x1be)][_0x4892ef(0x1bd)](vt))!=null?_0x156eed:Jt)*0x2**_0x49010e;this[_0x4892ef(0x38c)]=window[_0x4892ef(0x47c)](()=>{const _0x3eff56=_0x4892ef;clearTimeout(this[_0x3eff56(0x38c)]),this[_0x3eff56(0x38c)]=null,this[_0x3eff56(0x375)]();},_0x224fd0),this[_0x4892ef(0x2a6)]+=0x1;}['_onMessage'](_0x30fe1d,_0x32b735){const _0x283f06=_0x215dce,{cmd:_0x321ee7}=_0x32b735;_0x321ee7===b[_0x283f06(0x3b8)]&&!this[_0x283f06(0x1ef)]&&(_0x30fe1d[_0x283f06(0x200)]=_0x32b735[_0x283f06(0x455)][_0x283f06(0x200)],this[_0x283f06(0x4d9)][_0x283f06(0x3f3)](_0x30fe1d),this[_0x283f06(0x41d)][_0x283f06(0x3f3)](j[_0x283f06(0x27d)]),this[_0x283f06(0x1ef)]=!0x0,this[_0x283f06(0x3ac)]=null),_0x321ee7===b[_0x283f06(0x3e7)]&&this[_0x283f06(0x49b)](),this[_0x283f06(0x48d)]();}[_0x215dce(0x48d)](){const _0x113094=_0x215dce;var _0x28b777;this[_0x113094(0x389)](),this[_0x113094(0x4f3)]=window[_0x113094(0x47c)](()=>this['_sendHeartbeat'](),(_0x28b777=this['_configService']['getConfig'](dt))!=null?_0x28b777:qt);}['_sendHeartbeat'](){const _0x535a63=_0x215dce;this[_0x535a63(0x4ae)][_0x535a63(0x492)]({'cmd':b['HEARTBEAT']}),this[_0x535a63(0x5b7)]();}[_0x215dce(0x5b7)](){const _0x2e6160=_0x215dce;var _0x5a83b7;this[_0x2e6160(0x1e6)]=window['setTimeout'](()=>this['_onConnectionFailed'](),(_0x5a83b7=this[_0x2e6160(0x1be)][_0x2e6160(0x1bd)](Be))!=null?_0x5a83b7:St);}[_0x215dce(0x389)](){const _0x41f240=_0x215dce;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x41f240(0x4f3)]=null);}[_0x215dce(0x49b)](){const _0x484c28=_0x215dce;this[_0x484c28(0x1e6)]!=null&&(clearTimeout(this[_0x484c28(0x1e6)]),this[_0x484c28(0x1e6)]=null);}},exports['CollaborationSessionService']=fs([z(0x0,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),z(0x1,a[_0x215dce(0x561)](a['LocaleService'])),z(0x2,M[_0x215dce(0x4fa)]),z(0x3,a[_0x215dce(0x3ce)]),z(0x4,a[_0x215dce(0x1e8)]),z(0x5,We)],exports[_0x215dce(0x4ac)]);var ms=Object['defineProperty'],gs=Object[_0x215dce(0x394)],Is=(_0x3c9bc5,_0x2c3217,_0x531fbd,_0xe7b92a)=>{const _0x358142=_0x215dce;for(var _0x41d00a=_0xe7b92a>0x1?void 0x0:_0xe7b92a?gs(_0x2c3217,_0x531fbd):_0x2c3217,_0x202462=_0x3c9bc5[_0x358142(0x32e)]-0x1,_0xdc36c1;_0x202462>=0x0;_0x202462--)(_0xdc36c1=_0x3c9bc5[_0x202462])&&(_0x41d00a=(_0xe7b92a?_0xdc36c1(_0x2c3217,_0x531fbd,_0x41d00a):_0xdc36c1(_0x41d00a))||_0x41d00a);return _0xe7b92a&&_0x41d00a&&ms(_0x2c3217,_0x531fbd,_0x41d00a),_0x41d00a;},Oe=(_0x2fb604,_0x37646d)=>(_0x279156,_0x3020b1)=>_0x37646d(_0x279156,_0x3020b1,_0x2fb604);let ge=class{constructor(_0x450b30,_0x1a0b5b,_0x398b13){const _0x3a3c8c=_0x215dce;this['_injector']=_0x450b30,this['_transformService']=_0x1a0b5b,this[_0x3a3c8c(0x477)]=_0x398b13;}[_0x215dce(0x36b)](_0x565925){const _0x3485a6=_0x215dce;this[_0x3485a6(0x1e9)](_0x565925),this[_0x3485a6(0x36c)](_0x565925);}['transformRemoteChangeset'](_0x43b956){const _0x5c780c=_0x215dce,{unitID:_0x4c2068}=_0x43b956,_0x358354=this['_renderManagerService'][_0x5c780c(0x3f9)](_0x4c2068)['with'](w[_0x5c780c(0x59c)]),{redoCache:_0x42f9de}=_0x358354[_0x5c780c(0x1d7)]();if(_0x42f9de[_0x5c780c(0x32e)]===0x0)return _0x43b956;let _0x64896f=a[_0x5c780c(0x432)][_0x5c780c(0x321)](_0x43b956['mutations'][0x0]);for(let _0x57d7c7=0x0;_0x57d7c7<_0x42f9de[_0x5c780c(0x32e)];_0x57d7c7++){const _0x49fee7={'id':_0x5c780c(0x4df),'params':{..._0x42f9de[_0x57d7c7]}},_0x4c75e2=this[_0x5c780c(0x3e4)]['transformMutation'](_0x64896f,_0x49fee7,!0x1);if(_[_0x5c780c(0x1d3)](_0x4c75e2))throw _0x4c75e2[_0x5c780c(0x235)];_0x64896f=_0x4c75e2[_0x5c780c(0x249)];}return{...a[_0x5c780c(0x432)]['deepClone'](_0x43b956),'mutations':[_0x64896f]};}[_0x215dce(0x1e9)](_0x354ad8){const _0x226789=_0x215dce,{unitID:_0x310ed8}=_0x354ad8,_0x1e31cb=this[_0x226789(0x477)][_0x226789(0x3f9)](_0x310ed8)[_0x226789(0x52c)](w[_0x226789(0x59c)]),{undoCache:_0x5583c2,redoCache:_0x234fa0}=_0x1e31cb[_0x226789(0x1d7)]();if(_0x5583c2[_0x226789(0x32e)]===0x0||_0x234fa0[_0x226789(0x32e)]===0x0)return;const _0x6e93fb=[],_0x2bc303=[];let _0x18ded1=a[_0x226789(0x432)][_0x226789(0x321)](_0x354ad8[_0x226789(0x40f)][0x0]),_0x1b7b45=a[_0x226789(0x432)][_0x226789(0x321)](_0x354ad8[_0x226789(0x40f)][0x0]);for(let _0x40ebbb=_0x5583c2[_0x226789(0x32e)]-0x1;_0x40ebbb>=0x0;_0x40ebbb--){const _0x1b5c1e={'id':_0x226789(0x4df),'params':{..._0x5583c2[_0x40ebbb]}},_0x3fdbf8={'id':_0x226789(0x4df),'params':{..._0x234fa0[_0x40ebbb]}},_0x2511dd=this[_0x226789(0x3e4)][_0x226789(0x34e)](_0x18ded1,_0x1b5c1e,!0x1),_0x2b04ee=this[_0x226789(0x3e4)]['transformMutation'](_0x1b7b45,_0x3fdbf8,!0x1);if(_['isTransformMutationFailure'](_0x2511dd))throw _0x2511dd[_0x226789(0x235)];if(_[_0x226789(0x1d3)](_0x2b04ee))throw _0x2b04ee[_0x226789(0x235)];_0x6e93fb[_0x226789(0x302)](_0x2511dd[_0x226789(0x32c)][_0x226789(0x41c)]),_0x2bc303[_0x226789(0x302)](_0x2b04ee[_0x226789(0x32c)]['params']),_0x18ded1=_0x2511dd['m1Prime'],_0x1b7b45=_0x2b04ee[_0x226789(0x249)];}_0x1e31cb[_0x226789(0x2c0)]({'undoCache':_0x6e93fb,'redoCache':_0x2bc303});}[_0x215dce(0x36c)](_0x32c582){const _0x5f2988=_0x215dce,{unitID:_0x3f31bd}=_0x32c582,_0x2edd82=this[_0x5f2988(0x477)][_0x5f2988(0x3f9)](_0x3f31bd)[_0x5f2988(0x52c)](w[_0x5f2988(0x59c)]),_0x201eed=_0x2edd82[_0x5f2988(0x568)]();if(_0x201eed==null)return;const _0x23cee4=[{'id':_0x5f2988(0x4df),'params':{'unitId':_0x32c582[_0x5f2988(0x233)],'actions':null,'textRanges':[_0x201eed]}}],_0x1f6e6d=this[_0x5f2988(0x3e4)]['transformMutationsWithChangeset'](_0x32c582,_0x23cee4);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1f6e6d))throw _0x1f6e6d['error'];const _0x29b274=_0x1f6e6d[_0x5f2988(0x32c)][0x0][_0x5f2988(0x41c)][_0x5f2988(0x449)];Array[_0x5f2988(0x33a)](_0x29b274)&&_0x29b274[_0x5f2988(0x32e)]&&_0x2edd82[_0x5f2988(0x4aa)](_0x29b274[0x0]);}};ge=Is([Oe(0x0,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),Oe(0x1,_[_0x215dce(0x35a)]),Oe(0x2,R['IRenderManagerService'])],ge);var ps=Object[_0x215dce(0x437)],Cs=Object[_0x215dce(0x394)],Es=(_0x561fce,_0x1aa24f,_0x532284,_0xf09b9f)=>{const _0x2f02f0=_0x215dce;for(var _0x3e8188=_0xf09b9f>0x1?void 0x0:_0xf09b9f?Cs(_0x1aa24f,_0x532284):_0x1aa24f,_0x14c53b=_0x561fce[_0x2f02f0(0x32e)]-0x1,_0x7f95b5;_0x14c53b>=0x0;_0x14c53b--)(_0x7f95b5=_0x561fce[_0x14c53b])&&(_0x3e8188=(_0xf09b9f?_0x7f95b5(_0x1aa24f,_0x532284,_0x3e8188):_0x7f95b5(_0x3e8188))||_0x3e8188);return _0xf09b9f&&_0x3e8188&&ps(_0x1aa24f,_0x532284,_0x3e8188),_0x3e8188;},oe=(_0x4d69a7,_0x51f96e)=>(_0x415938,_0xaa2f5f)=>_0x51f96e(_0x415938,_0xaa2f5f,_0x4d69a7);exports[_0x215dce(0x2ac)]=class extends a['Disposable']{constructor(_0x56b8a4,_0x25250d,_0x2a5805,_0x28a5d0,_0x22aeb6){const _0x31a8ec=_0x215dce;super(),d(this,_0x31a8ec(0x4af),new Map()),d(this,_0x31a8ec(0x4cc),new Map()),d(this,_0x31a8ec(0x218),!0x1),(this[_0x31a8ec(0x1be)]=_0x56b8a4,this[_0x31a8ec(0x353)]=_0x25250d,this['_beforeCloseService']=_0x2a5805,this['_localeService']=_0x28a5d0,this[_0x31a8ec(0x335)]=_0x22aeb6,this[_0x31a8ec(0x291)]());}[_0x215dce(0x527)](){this['_disabled']=!0x0;}[_0x215dce(0x3c3)](){this['_disabled']=!0x1;}[_0x215dce(0x587)](){const _0x530119=_0x215dce;this[_0x530119(0x2e0)]()[_0x530119(0x584)](()=>super[_0x530119(0x587)]());}async[_0x215dce(0x247)](_0x2359f8){const _0x300fc1=_0x215dce;return this[_0x300fc1(0x218)]?null:this[_0x300fc1(0x353)]['getItem'](Ze(_0x2359f8));}async[_0x215dce(0x320)](_0x5f1c81,_0x5ac1e2){const _0x2fd765=_0x215dce;return!!this[_0x2fd765(0x353)][_0x2fd765(0x271)](_0x5f1c81,_0x5ac1e2);}[_0x215dce(0x264)](_0x1c709b,_0x1ab7b7,_0x4761dc,_0x3320fa){const _0x59bc6=_0x215dce,_0x2e201d=this[_0x59bc6(0x335)][_0x59bc6(0x463)](_0x1c709b);this[_0x59bc6(0x4af)][_0x59bc6(0x4bd)](_0x1c709b,{'unitID':_0x1c709b,'type':_0x1ab7b7,'awaitingChangeset':_0x4761dc,'mutations':_0x3320fa,'rev':_0x2e201d}),this[_0x59bc6(0x4cc)]['has'](_0x1c709b)||this['_scheduleSaving'](_0x1c709b);}[_0x215dce(0x39d)](_0x4aeed2){const _0x53a9d4=_0x215dce,_0x189f87=this[_0x53a9d4(0x387)]();_0x189f87===0x0?this['_saveCache'](_0x4aeed2):this[_0x53a9d4(0x4cc)][_0x53a9d4(0x4bd)](_0x4aeed2,setTimeout(()=>this['_saveCache'](_0x4aeed2),_0x189f87));}[_0x215dce(0x387)](){const _0x559ca2=_0x215dce;var _0x2d946a;return(_0x2d946a=this[_0x559ca2(0x1be)][_0x559ca2(0x1bd)](mt))!=null?_0x2d946a:Zt;}[_0x215dce(0x2ef)](_0x46e183){const _0x4e7496=_0x215dce,_0x32ce38=this['_saveTaskMap'][_0x4e7496(0x24a)](_0x46e183);return _0x32ce38!==void 0x0&&window[_0x4e7496(0x556)](_0x32ce38),this[_0x4e7496(0x353)][_0x4e7496(0x271)](Ze(_0x46e183),this[_0x4e7496(0x4af)][_0x4e7496(0x24a)](_0x46e183))[_0x4e7496(0x584)](()=>this[_0x4e7496(0x4cc)][_0x4e7496(0x31f)](_0x46e183));}async[_0x215dce(0x2e0)](){const _0x40c869=_0x215dce,_0x517a7e=[];this[_0x40c869(0x4cc)][_0x40c869(0x392)]((_0x53592c,_0x1ad5bb)=>{const _0x3b7271=_0x40c869;window[_0x3b7271(0x556)](_0x53592c),_0x517a7e['push'](this[_0x3b7271(0x2ef)](_0x1ad5bb)['then'](()=>{const _0x609551=_0x3b7271;this[_0x609551(0x4cc)]['delete'](_0x1ad5bb);}));}),await Promise['all'](_0x517a7e);}[_0x215dce(0x291)](){const _0x2b4edb=_0x215dce;this['disposeWithMe'](this['_beforeCloseService'][_0x2b4edb(0x46b)](()=>{const _0x1840ff=_0x2b4edb;if(this[_0x1840ff(0x4cc)][_0x1840ff(0x473)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x215dce(0x2ac)]=Es([oe(0x0,a[_0x215dce(0x1e8)]),oe(0x1,a[_0x215dce(0x32b)]),oe(0x2,M[_0x215dce(0x3e3)]),oe(0x3,a[_0x215dce(0x561)](a['LocaleService'])),oe(0x4,a[_0x215dce(0x561)](_[_0x215dce(0x1aa)]))],exports[_0x215dce(0x2ac)]);function Ze(_0x2480b3){const _0x4a4c58=_0x215dce;return _0x4a4c58(0x4f9)+_0x2480b3;}var bs=Object['defineProperty'],Ts=Object[_0x215dce(0x394)],Rs=(_0x39af9e,_0x177633,_0xe706e7,_0x2512e7)=>{const _0x597c2f=_0x215dce;for(var _0x3625a6=_0x2512e7>0x1?void 0x0:_0x2512e7?Ts(_0x177633,_0xe706e7):_0x177633,_0x2de1db=_0x39af9e[_0x597c2f(0x32e)]-0x1,_0x1fe639;_0x2de1db>=0x0;_0x2de1db--)(_0x1fe639=_0x39af9e[_0x2de1db])&&(_0x3625a6=(_0x2512e7?_0x1fe639(_0x177633,_0xe706e7,_0x3625a6):_0x1fe639(_0x3625a6))||_0x3625a6);return _0x2512e7&&_0x3625a6&&bs(_0x177633,_0xe706e7,_0x3625a6),_0x3625a6;},De=(_0x20aa2c,_0x502cec)=>(_0x39fec6,_0x316aca)=>_0x502cec(_0x39fec6,_0x316aca,_0x20aa2c);function Os(_0x3aa213){const _0x30f38a=_0x215dce,{unitID:_0x493a9d,mutations:_0x374662}=_0x3aa213;return{'unitId':_0x493a9d,'subUnitId':_0x374662[0x0][_0x30f38a(0x41c)][_0x30f38a(0x1b6)]};}let Ie=class{constructor(_0x1484e6,_0xacff1d,_0x5135c9){const _0x50282d=_0x215dce;this[_0x50282d(0x2cf)]=_0x1484e6,this['_transformService']=_0xacff1d,this[_0x50282d(0x579)]=_0x5135c9;}['transformSelections'](_0x4c812e){const _0x210c2c=_0x215dce;var _0x9fd6e8,_0x80276d,_0x264ee0,_0x91561f,_0x24be5f;const _0x1564a2=this[_0x210c2c(0x2cf)][_0x210c2c(0x24a)](C[_0x210c2c(0x25e)]),{unitId:_0x2b1990,subUnitId:_0x48fe5d}=Os(_0x4c812e),_0x4526fe=_0x1564a2[_0x210c2c(0x306)](_0x2b1990)[_0x210c2c(0x270)](),_0x2b5141=(_0x80276d=(_0x9fd6e8=this[_0x210c2c(0x579)][_0x210c2c(0x593)](_0x2b1990))==null?void 0x0:_0x9fd6e8[_0x210c2c(0x2cd)]())==null?void 0x0:_0x80276d[_0x210c2c(0x592)]();if(_0x4526fe[_0x210c2c(0x32e)]===0x0||!_0x2b1990||!_0x48fe5d)return;const _0x3b9bae=[{'id':C[_0x210c2c(0x3d2)]['id'],'params':{'unitId':_0x2b1990,'subUnitId':_0x2b5141,'selections':a[_0x210c2c(0x432)][_0x210c2c(0x321)](_0x4526fe)}}],_0x2c15fd=this[_0x210c2c(0x3e4)]['transformMutationsWithChangeset'](_0x4c812e,_0x3b9bae);if(!_[_0x210c2c(0x3d8)](_0x2c15fd))throw _0x2c15fd[_0x210c2c(0x235)];const _0x5d0d75=(_0x24be5f=(_0x91561f=(_0x264ee0=_0x2c15fd[_0x210c2c(0x32c)][0x0])==null?void 0x0:_0x264ee0[_0x210c2c(0x41c)])==null?void 0x0:_0x91561f[_0x210c2c(0x221)])!=null?_0x24be5f:_0x4526fe;Array['isArray'](_0x5d0d75)&&_0x5d0d75[_0x210c2c(0x32e)]&&this['_injector']['get'](a['ICommandService'])[_0x210c2c(0x2d1)](C['SetSelectionsOperation']['id'],{'unitId':_0x2b1990,'subUnitId':_0x48fe5d,'selections':_0x5d0d75});}};Ie=Rs([De(0x0,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),De(0x1,_[_0x215dce(0x35a)]),De(0x2,a['IUniverInstanceService'])],Ie);const Ee=a[_0x215dce(0x1d9)](_0x215dce(0x581));var Tt=(_0x464ed1=>(_0x464ed1[_0x464ed1[_0x215dce(0x2a2)]=0x0]=_0x215dce(0x2a2),_0x464ed1[_0x464ed1[_0x215dce(0x417)]=0x1]=_0x215dce(0x417),_0x464ed1))(Tt||{});const Qe=0x7530,et=_0x215dce(0x501);class Ds extends a[_0x215dce(0x530)]{constructor(){const _0xeec018=_0x215dce;super(),d(this,'_id',a[_0xeec018(0x432)]['generateRandomId']()),d(this,_0xeec018(0x25d),new Set()),d(this,'_unitOnClients',new Map()),d(this,'_heartbeatTimer',null),d(this,_0xeec018(0x36e),new Map()),d(this,_0xeec018(0x4db),new Map()),this[_0xeec018(0x427)]();}[_0x215dce(0x587)](){const _0x2daecc=_0x215dce;super[_0x2daecc(0x587)](),this[_0x2daecc(0x36e)][_0x2daecc(0x392)]((_0xd229d5,_0x2926e6)=>this[_0x2daecc(0x1c5)](_0x2926e6)),this[_0x2daecc(0x399)]&&window['clearInterval'](this[_0x2daecc(0x399)]);}[_0x215dce(0x451)](_0x5c91a6){const _0x21a475=_0x215dce;return this[_0x21a475(0x474)](_0x5c91a6)['pipe'](v[_0x21a475(0x1a7)]());}[_0x215dce(0x255)](_0x412174){const _0x54756b=_0x215dce;this[_0x54756b(0x25d)][_0x54756b(0x473)]===0x0&&this[_0x54756b(0x2f2)](),this[_0x54756b(0x25d)][_0x54756b(0x345)](_0x412174),this[_0x54756b(0x21e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x412174],'isForwarded':!0x1});}[_0x215dce(0x2c5)](_0x4c35e6){const _0x28caef=_0x215dce;this[_0x28caef(0x25d)][_0x28caef(0x31f)](_0x4c35e6),this[_0x28caef(0x25d)][_0x28caef(0x473)]===0x0&&this[_0x28caef(0x399)]&&window[_0x28caef(0x4a3)](this[_0x28caef(0x399)]);}[_0x215dce(0x427)](){const _0x1e3d5f=_0x215dce;this[_0x1e3d5f(0x516)](a[_0x1e3d5f(0x30e)](v[_0x1e3d5f(0x34d)](window,_0x1e3d5f(0x3ba))[_0x1e3d5f(0x238)](_0x20f284=>{const _0x339029=_0x1e3d5f;if(_0x20f284[_0x339029(0x1c4)]!==et||!_0x20f284[_0x339029(0x26f)])return;const _0x56bf62=JSON[_0x339029(0x20c)](_0x20f284[_0x339029(0x26f)]);this[_0x339029(0x3b2)](_0x56bf62);}))),window[_0x1e3d5f(0x529)](_0x1e3d5f(0x3b0),()=>this[_0x1e3d5f(0x21e)]({'type':0x1,'memberID':this[_0x1e3d5f(0x284)],'unitIDs':Array[_0x1e3d5f(0x3e1)](this[_0x1e3d5f(0x25d)])}));}[_0x215dce(0x3b2)](_0x2560ed){const _0x4b325e=_0x215dce;switch(_0x2560ed[_0x4b325e(0x3ee)]){case 0x0:this[_0x4b325e(0x1df)](_0x2560ed);break;case 0x1:this[_0x4b325e(0x3d0)](_0x2560ed);break;case 0x2:this[_0x4b325e(0x485)](_0x2560ed);break;}}[_0x215dce(0x1df)](_0x3990c7){const _0x465993=_0x215dce,{unitIDs:_0x441c62,memberID:_0x3111f5,isForwarded:_0x5b1019}=_0x3990c7;_0x441c62[_0x465993(0x392)](_0x1633a1=>{const _0x2979fe=_0x465993;if(!_0x5b1019&&this[_0x2979fe(0x436)][_0x2979fe(0x509)](_0x1633a1)&&this['_ensureSubject'](_0x1633a1)['next'](0x1),!this['_unitOnClients'][_0x2979fe(0x509)](_0x1633a1)||!this[_0x2979fe(0x436)][_0x2979fe(0x24a)](_0x1633a1)['has'](_0x3111f5)){const _0x32dd39=this['_unitOnClients'][_0x2979fe(0x24a)](_0x1633a1)||new Set();_0x32dd39[_0x2979fe(0x345)](_0x3111f5),this[_0x2979fe(0x436)][_0x2979fe(0x4bd)](_0x1633a1,_0x32dd39),this[_0x2979fe(0x554)](_0x3111f5);}}),_0x5b1019||this[_0x465993(0x21e)]({'type':0x0,'memberID':this[_0x465993(0x284)],'unitIDs':[...this[_0x465993(0x25d)]],'isForwarded':!0x0});}[_0x215dce(0x554)](_0x4a954f){const _0x42ffd3=_0x215dce;this[_0x42ffd3(0x1c5)](_0x4a954f);const _0x2dac55=window[_0x42ffd3(0x47c)](()=>{const _0x4fbc4e=_0x42ffd3;this[_0x4fbc4e(0x436)][_0x4fbc4e(0x392)](_0x2e29e8=>{const _0x226f5d=_0x4fbc4e;_0x2e29e8[_0x226f5d(0x31f)](_0x4a954f);});},Qe*0x2);this[_0x42ffd3(0x36e)][_0x42ffd3(0x4bd)](_0x4a954f,_0x2dac55);}['_removeClearOtherTimer'](_0x5cd3ef){const _0x4410bd=_0x215dce;if(this[_0x4410bd(0x36e)]['has'](_0x5cd3ef)){const _0x2586b7=this[_0x4410bd(0x36e)][_0x4410bd(0x24a)](_0x5cd3ef);_0x2586b7&&window[_0x4410bd(0x556)](_0x2586b7),this[_0x4410bd(0x36e)][_0x4410bd(0x4bd)](_0x5cd3ef,null);}}[_0x215dce(0x3d0)](_0x17959b){const _0x268262=_0x215dce,{memberID:_0x3284cf,unitIDs:_0x510b57}=_0x17959b;_0x510b57['forEach'](_0x5569cc=>{const _0x14cccc=_0x3749;var _0x2bccd2;const _0x123af6=this[_0x14cccc(0x436)]['get'](_0x5569cc);_0x123af6&&(_0x123af6[_0x14cccc(0x31f)](_0x3284cf),(_0x2bccd2=this[_0x14cccc(0x474)](_0x5569cc))==null||_0x2bccd2[_0x14cccc(0x3f3)](_0x123af6[_0x14cccc(0x473)]===0x0?0x0:0x1));}),this[_0x268262(0x1c5)](_0x3284cf);}['_handleHeartbeatEvent'](_0x37220b){const _0x22e201=_0x215dce;this[_0x22e201(0x554)](_0x37220b['memberID']);}[_0x215dce(0x21e)](_0xd2ebdf){const _0x47a39b=_0x215dce;localStorage[_0x47a39b(0x271)](et,JSON[_0x47a39b(0x406)](_0xd2ebdf));}[_0x215dce(0x2f2)](){const _0x167121=_0x215dce;this[_0x167121(0x399)]=window['setInterval'](()=>{const _0x51020d=_0x167121;this[_0x51020d(0x21e)]({'type':0x2,'memberID':this['_id']});},Qe);}[_0x215dce(0x474)](_0x1b04a6){const _0x5f1ffc=_0x215dce;return this[_0x5f1ffc(0x4db)]['has'](_0x1b04a6)||this[_0x5f1ffc(0x4db)][_0x5f1ffc(0x4bd)](_0x1b04a6,new v[(_0x5f1ffc(0x4f6))](0x0)),this[_0x5f1ffc(0x4db)][_0x5f1ffc(0x24a)](_0x1b04a6);}}function Rt(_0x14ab9c){const _0x1f50a9=_0x215dce;let _0x3aa970='';for(const _0x4bf536 of _0x14ab9c){const {startOffset:_0x5046ad,endOffset:_0x2364da,isActive:_0x26f5db}=_0x4bf536;_0x3aa970[_0x1f50a9(0x32e)]&&(_0x3aa970+=','),_0x3aa970+=_0x5046ad+':'+_0x2364da+':'+(_0x26f5db?'1':'0');}return _0x3aa970;}function ys(_0x36c123){const _0x128d5f=_0x215dce,_0x4f3460=_0x36c123[_0x128d5f(0x227)](','),_0x1e9b36=[];for(const _0x268aa3 of _0x4f3460){const [_0x6b9a16,_0x1b8910,_0xcfa00c]=_0x268aa3[_0x128d5f(0x227)](':');_0x1e9b36[_0x128d5f(0x364)]({'startOffset':Number(_0x6b9a16),'endOffset':Number(_0x1b8910),'collapsed':_0x6b9a16===_0x1b8910,'isActive':_0xcfa00c==='1'});}return _0x1e9b36[_0x128d5f(0x435)](_0x51ec98=>_0x51ec98[_0x128d5f(0x2d3)])||(_0x1e9b36[0x0][_0x128d5f(0x2d3)]=!0x0),_0x1e9b36;}class Ge extends a['RxDisposable']{constructor(){const _0x5a9fd2=_0x215dce;super(...arguments),d(this,'_collabCursorState$',new v[(_0x5a9fd2(0x4f6))](null)),d(this,_0x5a9fd2(0x4ad),this[_0x5a9fd2(0x4c3)]['asObservable']());}[_0x215dce(0x5ab)](_0x366470){const _0x43efdf=_0x215dce,{unitID:_0xf2b15c,memberID:_0x523c5d,textRanges:_0x54e551}=_0x366470,_0x1bc184=Rt(_0x54e551),_0x4fc4e1={'unitID':_0xf2b15c,'memberID':_0x523c5d,'selection':_0x1bc184};this[_0x43efdf(0x4c3)]['next'](_0x4fc4e1);}}var Ps=Object[_0x215dce(0x437)],Us=Object['getOwnPropertyDescriptor'],ws=(_0x2a9b16,_0x476b9b,_0x4a0eff,_0x1aadf2)=>{const _0x1fd514=_0x215dce;for(var _0x2331f0=_0x1aadf2>0x1?void 0x0:_0x1aadf2?Us(_0x476b9b,_0x4a0eff):_0x476b9b,_0x5e38e7=_0x2a9b16[_0x1fd514(0x32e)]-0x1,_0x129aea;_0x5e38e7>=0x0;_0x5e38e7--)(_0x129aea=_0x2a9b16[_0x5e38e7])&&(_0x2331f0=(_0x1aadf2?_0x129aea(_0x476b9b,_0x4a0eff,_0x2331f0):_0x129aea(_0x2331f0))||_0x2331f0);return _0x1aadf2&&_0x2331f0&&Ps(_0x476b9b,_0x4a0eff,_0x2331f0),_0x2331f0;},tt=(_0x5620cb,_0x4a7d41)=>(_0x557802,_0x2120f6)=>_0x4a7d41(_0x557802,_0x2120f6,_0x5620cb);let pe=class{constructor(_0x46a52b,_0x5e3545){const _0x114d8e=_0x215dce;this[_0x114d8e(0x2cf)]=_0x46a52b,this[_0x114d8e(0x3e4)]=_0x5e3545;}[_0x215dce(0x443)](_0x272c22){const _0x31d7c9=_0x215dce;var _0x4874fe;const _0x18ade2=this[_0x31d7c9(0x2cf)][_0x31d7c9(0x24a)](B[_0x31d7c9(0x3b3)]),_0x3bac18=(_0x4874fe=_0x18ade2[_0x31d7c9(0x541)]())!=null?_0x4874fe:[];if(_0x3bac18[_0x31d7c9(0x32e)]===0x0)return;const _0x1cc344=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x272c22['unitID'],'actions':null,'textRanges':_0x3bac18}}],_0x2309c1=this['_transformService'][_0x31d7c9(0x2fa)](_0x272c22,_0x1cc344);if(!_['isTransformMutationsWithChangesetSuccess'](_0x2309c1))throw _0x2309c1[_0x31d7c9(0x235)];const _0x3fb7bb=_0x2309c1[_0x31d7c9(0x32c)][0x0]['params']['textRanges'];Array[_0x31d7c9(0x33a)](_0x3fb7bb)&&_0x3fb7bb[_0x31d7c9(0x32e)]&&_0x18ade2['replaceTextRanges'](_0x3fb7bb,!0x1);}};pe=ws([tt(0x0,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),tt(0x1,_[_0x215dce(0x35a)])],pe);const Ns=new Set([C['InsertSheetMutation']['id']]);function st(_0x12bf80,_0x544ca8,_0x1cefe4,_0x318699,_0x1cfa2a){const _0x1f68f0=_0x215dce;var _0x4e5338,_0x15ab25,_0x2e8b05,_0x435eb4;const _0x285f0f=[];for(const _0x5cef5e of _0x12bf80)if(Ns[_0x1f68f0(0x509)](_0x5cef5e['id'])){if(_0x285f0f['length']>0x0)break;_0x285f0f[_0x1f68f0(0x364)](_0x5cef5e);break;}else _0x285f0f[_0x1f68f0(0x364)](_0x5cef5e);const _0x50cf96=(_0x15ab25=(_0x4e5338=_0x1cfa2a[_0x1f68f0(0x4d7)]())==null?void 0x0:_0x4e5338['userID'])!=null?_0x15ab25:_0x1f68f0(0x446),_0x18e79b=(_0x435eb4=(_0x2e8b05=_0x1cfa2a[_0x1f68f0(0x4d7)]())==null?void 0x0:_0x2e8b05[_0x1f68f0(0x200)])!=null?_0x435eb4:_0x1f68f0(0x446);return{'changeset':{'unitID':_0x544ca8,'type':_[_0x1f68f0(0x51b)](_0x1cefe4['getUnitType'](_0x544ca8)),'baseRev':_0x318699[_0x1f68f0(0x463)](_0x544ca8),'revision':0x0,'userID':_0x50cf96,'memberID':_0x18e79b,'mutations':_0x285f0f},'pendingMutations':_0x12bf80[_0x1f68f0(0x226)](_0x285f0f[_0x1f68f0(0x32e)])};}function Ms(_0xefd032,_0x5a32da,_0x17cef6,_0xfb87df,_0x509dbb){const _0x5e0119=_0x215dce;var _0x127b8a,_0x18f4c0,_0x5904e1,_0x536044;const _0xf6b451=[_0xefd032[_0x5e0119(0x206)]((_0xbc5c0c,_0x31926c)=>{const _0x23d89d=_0x5e0119;var _0x46caae;const {id:_0x207e69}=_0xbc5c0c,{id:_0x269780,type:_0x49901c}=_0x31926c,_0x3cc92e=(_0x46caae=_0xbc5c0c[_0x23d89d(0x41c)])!=null?_0x46caae:{'actions':null},_0xb5b8f0=_0x31926c[_0x23d89d(0x41c)];if(_0x207e69&&_0x207e69!==_0x269780)throw new Error(_0x23d89d(0x1dd)+_0x207e69+_0x23d89d(0x2ab)+_0x269780+'.');return{..._0xbc5c0c,'id':_0x269780,'type':_0x49901c,'params':{'unitId':_0xb5b8f0[_0x23d89d(0x3ef)],'textRanges':_0xb5b8f0[_0x23d89d(0x449)],'actions':a[_0x23d89d(0x48a)][_0x23d89d(0x51c)](_0x3cc92e[_0x23d89d(0x468)],_0xb5b8f0[_0x23d89d(0x468)])}};},{})],_0x666879=(_0x18f4c0=(_0x127b8a=_0x509dbb[_0x5e0119(0x4d7)]())==null?void 0x0:_0x127b8a[_0x5e0119(0x289)])!=null?_0x18f4c0:_0x5e0119(0x446),_0x204452=(_0x536044=(_0x5904e1=_0x509dbb['getCurrentUser']())==null?void 0x0:_0x5904e1[_0x5e0119(0x200)])!=null?_0x536044:_0x5e0119(0x446);return{'changeset':{'unitID':_0x5a32da,'type':_[_0x5e0119(0x51b)](_0x17cef6[_0x5e0119(0x2c7)](_0x5a32da)),'baseRev':_0xfb87df['getCurrentRevOfUnit'](_0x5a32da),'revision':0x0,'userID':_0x666879,'memberID':_0x204452,'mutations':_0xf6b451},'pendingMutations':[]};}const Ls={'id':C['EmptyMutation']['id'],'type':a[_0x215dce(0x577)][_0x215dce(0x251)],'params':{}};var As=Object[_0x215dce(0x437)],js=Object[_0x215dce(0x394)],q=(_0x7e5706,_0x4c7eb1,_0x2edb5b,_0x5104ee)=>{const _0x5d54ef=_0x215dce;for(var _0x3794a8=_0x5104ee>0x1?void 0x0:_0x5104ee?js(_0x4c7eb1,_0x2edb5b):_0x4c7eb1,_0x2ae061=_0x7e5706[_0x5d54ef(0x32e)]-0x1,_0x3cd16f;_0x2ae061>=0x0;_0x2ae061--)(_0x3cd16f=_0x7e5706[_0x2ae061])&&(_0x3794a8=(_0x5104ee?_0x3cd16f(_0x4c7eb1,_0x2edb5b,_0x3794a8):_0x3cd16f(_0x3794a8))||_0x3794a8);return _0x5104ee&&_0x3794a8&&As(_0x4c7eb1,_0x2edb5b,_0x3794a8),_0x3794a8;},m=(_0x246dca,_0x4f09ab)=>(_0x220fb1,_0x27a64c)=>_0x4f09ab(_0x220fb1,_0x27a64c,_0x246dca),y=(_0x3c55c1=>(_0x3c55c1[_0x215dce(0x319)]='not_collab',_0x3c55c1[_0x215dce(0x56d)]=_0x215dce(0x397),_0x3c55c1[_0x215dce(0x32f)]=_0x215dce(0x595),_0x3c55c1['AWAITING']=_0x215dce(0x282),_0x3c55c1[_0x215dce(0x23b)]=_0x215dce(0x465),_0x3c55c1[_0x215dce(0x2fe)]=_0x215dce(0x3db),_0x3c55c1['CONFLICT']='conflict',_0x3c55c1[_0x215dce(0x2de)]=_0x215dce(0x57c),_0x3c55c1))(y||{});class J{constructor(_0x522cbc,_0x56de70,_0x17ee93,_0x57c115,_0x334f5d,_0x4de9cb,_0x43c6c4,_0x5d71af,_0x6e0042){const _0x293880=_0x215dce;d(this,_0x293880(0x30a),null),d(this,_0x293880(0x599),[]),(this[_0x293880(0x233)]=_0x522cbc,this[_0x293880(0x3ee)]=_0x56de70,this[_0x293880(0x350)]=_0x334f5d,this['_commandService']=_0x4de9cb,this[_0x293880(0x503)]=_0x43c6c4,this[_0x293880(0x335)]=_0x5d71af,this[_0x293880(0x4e4)]=_0x6e0042,this[_0x293880(0x30a)]=_0x17ee93,this[_0x293880(0x599)]=_0x57c115);}[_0x215dce(0x532)](_0xfbf596){const _0x31dc64=_0x215dce,_0x19d644=this[_0x31dc64(0x335)]['getCurrentRevOfUnit'](this[_0x31dc64(0x233)]);return _0xfbf596[_0x31dc64(0x3f2)]>_0x19d644+0x1?(this[_0x31dc64(0x350)]['onMissingChangesets']({'from':_0x19d644,'to':_0xfbf596[_0x31dc64(0x3f2)]-0x1}),!0x0):!0x1;}[_0x215dce(0x2e4)](_0x2f37ca){const _0x1f0496=_0x215dce;this[_0x1f0496(0x503)][_0x1f0496(0x1f6)](this[_0x1f0496(0x233)],_0x2f37ca);}[_0x215dce(0x3a0)](_0x502c7c){const _0x56dc24=_0x215dce;var _0x38796b,_0x11dd1f;(_0x11dd1f=(_0x38796b=this[_0x56dc24(0x350)])[_0x56dc24(0x2a3)])==null||_0x11dd1f[_0x56dc24(0x3c0)](_0x38796b,_0x502c7c);}[_0x215dce(0x49a)](_0x18b4e4){const _0x577bde=_0x215dce;var _0x1d0978,_0x20ad27;return(_0x20ad27=(_0x1d0978=this['_handler'])[_0x577bde(0x272)])==null?void 0x0:_0x20ad27[_0x577bde(0x3c0)](_0x1d0978,_0x18b4e4);}[_0x215dce(0x51e)](_0xc738e6){const _0x35a3f0=_0x215dce;var _0x3a54a0,_0x4e1c40,_0x35da1c;return(_0x35da1c=(_0x4e1c40=(_0x3a54a0=this['_handler'])[_0x35a3f0(0x1f3)])==null?void 0x0:_0x4e1c40[_0x35a3f0(0x3c0)](_0x3a54a0,_0xc738e6))!=null?_0x35da1c:_0xc738e6;}[_0x215dce(0x21a)](_0x38c630){const _0x207261=_0x215dce;var _0x2a22c0,_0x50575e;if(this[_0x207261(0x3ee)]===A[_0x207261(0x2df)]){const {unitID:_0x42fff9,mutations:_0x42665a,memberID:_0x4e5efb}=_0x38c630,_0x3fbfbf=_0x42665a[0x0]['params']['textRanges'];Array[_0x207261(0x33a)](_0x3fbfbf)&&_0x3fbfbf[_0x207261(0x32e)]>0x0&&((_0x50575e=(_0x2a22c0=this[_0x207261(0x350)])[_0x207261(0x439)])==null||_0x50575e[_0x207261(0x3c0)](_0x2a22c0,{'unitID':_0x42fff9,'memberID':_0x4e5efb,'textRanges':_0x3fbfbf}));}}[_0x215dce(0x4ab)](){const _0x1716b9=_0x215dce;this['_localCacheService'][_0x1716b9(0x264)](this[_0x1716b9(0x233)],this[_0x1716b9(0x3ee)],this[_0x1716b9(0x30a)],this[_0x1716b9(0x599)]);}[_0x215dce(0x219)](){const _0xe9d0c5=_0x215dce;return this[_0xe9d0c5(0x335)][_0xe9d0c5(0x463)](this[_0xe9d0c5(0x233)]);}[_0x215dce(0x484)](){const _0x426212=_0x215dce;this[_0x426212(0x335)]['incrementRevOfUnit'](this['unitID']);}['_executeRemoteChangeset'](_0x4dde77){const _0x3910cb=_0x215dce;var _0x1612d9;const _0x5b8253=this['_transformRemoteChangesetByIMECache'](_0x4dde77),_0x440236=a[_0x3910cb(0x4c8)](_0x5b8253[_0x3910cb(0x40f)],this[_0x3910cb(0x35e)],{'fromCollab':!0x0});if(!_0x440236[_0x3910cb(0x45c)])throw _0x440236[_0x3910cb(0x235)]instanceof Error?_0x440236['error']:new Error((_0x1612d9=_0x440236[_0x3910cb(0x235)])!=null?_0x1612d9:'[CollaborationState]:\x20apply\x20error!');this[_0x3910cb(0x49a)](_0x5b8253),this[_0x3910cb(0x2e4)](_0x4dde77),this[_0x3910cb(0x3a0)](_0x5b8253),this['_syncEditingCollabCursor'](_0x5b8253),this['_incrementRevisionNumber']();}}let se=class extends J{constructor(_0x1f592b,_0xd48b2b,_0x26403d,_0x3ae4ce,_0x4d72d4,_0x5d6035,_0x5846af,_0x7b477c,_0x37065f,_0x447df7){const _0x5dca76=_0x215dce;super(_0x1f592b,_0xd48b2b,null,[],_0x26403d,_0x7b477c,_0x5846af,_0x3ae4ce,_0x4d72d4),d(this,_0x5dca76(0x281),_0x5dca76(0x397)),(this[_0x5dca76(0x2cf)]=_0x5d6035,this['_logService']=_0x37065f,this[_0x5dca76(0x3e4)]=_0x447df7);}['appendMutation'](_0x2b8e98){const _0xed44d4=_0x215dce,_0x1cfe3a=this[_0xed44d4(0x2cf)][_0xed44d4(0x3f6)](H,this[_0xed44d4(0x233)],this[_0xed44d4(0x3ee)],[_0x2b8e98],this[_0xed44d4(0x350)]);return _0x1cfe3a[_0xed44d4(0x4a6)](),_0x1cfe3a[_0xed44d4(0x4ab)](),_0x1cfe3a;}['onRemoteChangeset'](_0x11f3de){const _0x164d82=_0x215dce;if(this[_0x164d82(0x532)](_0x11f3de))return this[_0x164d82(0x2cf)]['createInstance']($,this[_0x164d82(0x233)],this[_0x164d82(0x3ee)],null,[],null,[_0x11f3de],this[_0x164d82(0x350)]);try{const _0x1a4238=this['_transformService'][_0x164d82(0x2fa)](_0x11f3de,[Ls]);if(_[_0x164d82(0x3d8)](_0x1a4238)){const {c1Prime:_0x26b2fb}=_0x1a4238;return this[_0x164d82(0x4b0)](_0x26b2fb),this;}throw _0x1a4238[_0x164d82(0x235)];}catch(_0x2a68b5){return this[_0x164d82(0x362)][_0x164d82(0x235)](_0x2a68b5),this[_0x164d82(0x323)](!0x1);}}[_0x215dce(0x323)](_0xd5067e){const _0x95a1f0=_0x215dce;return this[_0x95a1f0(0x2cf)][_0x95a1f0(0x3f6)](W,this[_0x95a1f0(0x233)],this[_0x95a1f0(0x3ee)],null,[],this[_0x95a1f0(0x350)],_0xd5067e);}[_0x215dce(0x368)](){const _0x4318be=_0x215dce;throw new Error(_0x4318be(0x56b));}[_0x215dce(0x2d7)](){const _0x1ee186=_0x215dce;throw new Error(_0x1ee186(0x31d));}[_0x215dce(0x59d)](){const _0x387378=_0x215dce;return this[_0x387378(0x2cf)][_0x387378(0x3f6)](F,this[_0x387378(0x233)],this[_0x387378(0x3ee)],null,[],this[_0x387378(0x350)]);}[_0x215dce(0x5a8)](){return this;}['resend'](){const _0x1b8dea=_0x215dce;throw new Error(_0x1b8dea(0x3af));}['fetchMiss'](){const _0x5e7cfd=_0x215dce,_0x3831e4=this[_0x5e7cfd(0x335)]['getCurrentRevOfUnit'](this[_0x5e7cfd(0x233)]);return this[_0x5e7cfd(0x350)][_0x5e7cfd(0x256)]({'from':_0x3831e4,'to':0x0}),this[_0x5e7cfd(0x2cf)][_0x5e7cfd(0x3f6)]($,this['unitID'],this[_0x5e7cfd(0x3ee)],null,[],null,[],this['_handler']);}};se=q([m(0x3,a[_0x215dce(0x561)](_[_0x215dce(0x1aa)])),m(0x4,a[_0x215dce(0x561)](exports[_0x215dce(0x2ac)])),m(0x5,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),m(0x6,a[_0x215dce(0x423)]),m(0x7,a[_0x215dce(0x273)]),m(0x8,a[_0x215dce(0x3ce)]),m(0x9,_['ITransformService'])],se);let H=class extends J{constructor(_0x3323d4,_0x39098b,_0x2fdb4a,_0xc3e094,_0x14e94e,_0x296c5e,_0x44d712,_0x3acc2d,_0x120de3,_0x32558c,_0x5816ff,_0x4b10d2,_0x17ec4d,_0x7941b9){const _0x131012=_0x215dce;super(_0x3323d4,_0x39098b,null,_0x2fdb4a,_0xc3e094,_0x32558c,_0x7941b9,_0x296c5e,_0x44d712),d(this,_0x131012(0x281),_0x131012(0x595)),d(this,_0x131012(0x1f2),null),d(this,_0x131012(0x52f),null),(this[_0x131012(0x2cf)]=_0x14e94e,this[_0x131012(0x40b)]=_0x3acc2d,this[_0x131012(0x362)]=_0x120de3,this[_0x131012(0x1be)]=_0x5816ff,this[_0x131012(0x3e4)]=_0x4b10d2,this[_0x131012(0x3c5)]=_0x17ec4d);}[_0x215dce(0x522)](_0x3ea8a0){const _0x548f0f=_0x215dce;return this[_0x548f0f(0x599)]['push'](_0x3ea8a0),this['_updateLocalCache'](),this;}[_0x215dce(0x204)](_0x42ac92){const _0x42377f=_0x215dce;if(this[_0x42377f(0x532)](_0x42ac92))return this['_clearScheduledTask'](),this[_0x42377f(0x2cf)]['createInstance']($,this[_0x42377f(0x233)],this[_0x42377f(0x3ee)],null,this[_0x42377f(0x599)],null,[_0x42ac92],this[_0x42377f(0x350)]);try{const _0x9db917=this[_0x42377f(0x3e4)][_0x42377f(0x2fa)](_0x42ac92,this[_0x42377f(0x599)]);if(_[_0x42377f(0x3d8)](_0x9db917)){const {c1Prime:_0x3c5aa2,m2Prime:_0x37bbd7}=_0x9db917;this[_0x42377f(0x4b0)](_0x3c5aa2);const _0x46249d=this[_0x42377f(0x2cf)][_0x42377f(0x3f6)](H,this['unitID'],this[_0x42377f(0x3ee)],_0x37bbd7,this['_handler']);return this['_clearScheduledTask'](),_0x46249d[_0x42377f(0x4a6)](this[_0x42377f(0x1f2)]?Math[_0x42377f(0x330)](0x0,new Date()[_0x42377f(0x369)]()-this[_0x42377f(0x1f2)]):this['_getSendChangesetTimeout']()),_0x46249d;}throw _0x9db917[_0x42377f(0x235)];}catch(_0x383ba1){return this['_logService'][_0x42377f(0x235)](_0x383ba1),this[_0x42377f(0x323)](!0x1);}}[_0x215dce(0x368)](){const _0x34b1f5=_0x215dce;throw new Error(_0x34b1f5(0x243));}['onRemoteRej'](){const _0x483de4=_0x215dce;throw new Error(_0x483de4(0x2e8));}[_0x215dce(0x59d)](){const _0x41e833=_0x215dce;return this['_clearScheduledTask'](),this[_0x41e833(0x2cf)][_0x41e833(0x3f6)](F,this[_0x41e833(0x233)],this['type'],null,this[_0x41e833(0x599)],this[_0x41e833(0x350)]);}[_0x215dce(0x5a8)](){return this;}[_0x215dce(0x4a6)](_0x5b7cd0){const _0x1c2a00=_0x215dce,_0x15e666=_0x5b7cd0!=null?_0x5b7cd0:this['_getSendChangesetTimeout']();this[_0x1c2a00(0x1f2)]=new Date()['getTime'](),this[_0x1c2a00(0x52f)]=window[_0x1c2a00(0x47c)](()=>{const _0xe23c93=_0x1c2a00;this[_0xe23c93(0x4d1)]();let _0x47bfe6=null;switch(this['type']){case A[_0xe23c93(0x2ba)]:{_0x47bfe6=st(this['_pendingMutations'],this[_0xe23c93(0x233)],this['_univerInstanceService'],this[_0xe23c93(0x335)],this[_0xe23c93(0x40b)]);break;}case A['UNIVER_DOC']:{this[_0xe23c93(0x599)][_0xe23c93(0x40a)](_0x477dad=>_0x477dad['id']===B[_0xe23c93(0x339)]['id'])?_0x47bfe6=Ms(this[_0xe23c93(0x599)],this[_0xe23c93(0x233)],this['_univerInstanceService'],this[_0xe23c93(0x335)],this['_memberService']):_0x47bfe6=st(this[_0xe23c93(0x599)],this['unitID'],this[_0xe23c93(0x3c5)],this[_0xe23c93(0x335)],this[_0xe23c93(0x40b)]);break;}default:throw new Error(_0xe23c93(0x404)+this[_0xe23c93(0x3ee)]+'\x20in\x20_schedule.');}const {changeset:_0x4c57ae,pendingMutations:_0x1ef2dc}=_0x47bfe6;this[_0xe23c93(0x350)]['onSendChangeset'](_0x4c57ae);const _0x33f55=_0x1ef2dc[_0xe23c93(0x32e)]?this[_0xe23c93(0x2cf)]['createInstance'](x,this['unitID'],this['type'],_0x4c57ae,_0x1ef2dc,this[_0xe23c93(0x350)]):this['_injector']['createInstance'](V,this[_0xe23c93(0x233)],this[_0xe23c93(0x3ee)],_0x4c57ae,this['_handler']);_0x33f55[_0xe23c93(0x4ab)](),this[_0xe23c93(0x350)][_0xe23c93(0x2a0)](this,_0x33f55);},_0x15e666);}[_0x215dce(0x298)](){const _0x23a368=_0x215dce;var _0x38b37e;return(_0x38b37e=this[_0x23a368(0x1be)][_0x23a368(0x1bd)](_t))!=null?_0x38b37e:Kt;}[_0x215dce(0x457)](){const _0x5c224=_0x215dce;throw new Error(_0x5c224(0x1e3));}[_0x215dce(0x4d1)](){const _0xb4fd44=_0x215dce;this[_0xb4fd44(0x52f)]!=null&&(clearTimeout(this[_0xb4fd44(0x52f)]),this[_0xb4fd44(0x52f)]=null);}[_0x215dce(0x323)](_0x2b5c50){const _0x2f44fa=_0x215dce;return this['_clearScheduledTask'](),this[_0x2f44fa(0x2cf)]['createInstance'](W,this[_0x2f44fa(0x233)],this[_0x2f44fa(0x3ee)],null,this[_0x2f44fa(0x599)],this[_0x2f44fa(0x350)],_0x2b5c50);}};H=q([m(0x4,a['Inject'](a[_0x215dce(0x304)])),m(0x5,a[_0x215dce(0x561)](_['RevisionService'])),m(0x6,a[_0x215dce(0x561)](exports[_0x215dce(0x2ac)])),m(0x7,a[_0x215dce(0x561)](X)),m(0x8,a[_0x215dce(0x3ce)]),m(0x9,a[_0x215dce(0x273)]),m(0xa,a[_0x215dce(0x1e8)]),m(0xb,_[_0x215dce(0x35a)]),m(0xc,a['IUniverInstanceService']),m(0xd,a[_0x215dce(0x423)])],H);let V=class extends J{constructor(_0x3863af,_0x287384,_0x2c0172,_0x971a33,_0x24ceaf,_0x86750f,_0x532ed0,_0x1231c9,_0x3daa6f,_0x407bf6,_0x3503c9){const _0x4cb264=_0x215dce;super(_0x3863af,_0x287384,_0x2c0172,[],_0x971a33,_0x1231c9,_0x3503c9,_0x86750f,_0x532ed0),d(this,_0x4cb264(0x281),_0x4cb264(0x282)),(this[_0x4cb264(0x2cf)]=_0x24ceaf,this[_0x4cb264(0x362)]=_0x3daa6f,this[_0x4cb264(0x3e4)]=_0x407bf6);}['appendMutation'](_0x46576d){const _0x118498=_0x215dce,_0x4a7556=this[_0x118498(0x2cf)]['createInstance'](x,this[_0x118498(0x233)],this[_0x118498(0x3ee)],this['_awaitingChangeset'],[_0x46576d],this[_0x118498(0x350)]);return _0x4a7556[_0x118498(0x4ab)](),_0x4a7556;}[_0x215dce(0x204)](_0x30bfd6){const _0x338397=_0x215dce;if(this[_0x338397(0x532)](_0x30bfd6))return this['_injector'][_0x338397(0x3f6)]($,this[_0x338397(0x233)],this[_0x338397(0x3ee)],this['_awaitingChangeset'],[],null,[_0x30bfd6],this[_0x338397(0x350)]);try{const _0x4c5bbc=this[_0x338397(0x3e4)]['transformChangesets']([_0x30bfd6],[this[_0x338397(0x30a)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4c5bbc)){const {c1Prime:_0x199127,c2Prime:_0x46cc61}=_0x4c5bbc;this['_executeRemoteChangeset'](_0x199127[0x0]),_0x46cc61[0x0][_0x338397(0x246)]=this[_0x338397(0x219)]();const _0x267442=this[_0x338397(0x2cf)][_0x338397(0x3f6)](V,this['unitID'],this[_0x338397(0x3ee)],_0x46cc61[0x0],this[_0x338397(0x350)]);return _0x267442['_updateLocalCache'](),_0x267442;}return this[_0x338397(0x323)](!0x1);}catch(_0x3c04ce){return this[_0x338397(0x362)]['error'](_0x3c04ce),this[_0x338397(0x323)](!0x1);}}[_0x215dce(0x368)](_0x58dd0a){const _0x52bf05=_0x215dce,_0x4435f3=this[_0x52bf05(0x335)][_0x52bf05(0x463)](this[_0x52bf05(0x233)]);if(_0x58dd0a['revision']<_0x4435f3-0x1)return this;if(this['_checkMissing'](_0x58dd0a))return this[_0x52bf05(0x2cf)][_0x52bf05(0x3f6)]($,this[_0x52bf05(0x233)],this['type'],null,[],this[_0x52bf05(0x30a)],[],this[_0x52bf05(0x350)]);this[_0x52bf05(0x484)]();const _0x278612=this[_0x52bf05(0x2cf)][_0x52bf05(0x3f6)](se,this[_0x52bf05(0x233)],this[_0x52bf05(0x3ee)],this[_0x52bf05(0x350)]);return _0x278612['_updateLocalCache'](),_0x278612;}[_0x215dce(0x2d7)](_0x296549){const _0x4acf80=_0x215dce;return this[_0x4acf80(0x323)](!!(_0x296549!=null&&_0x296549['isPermissionRej']));}[_0x215dce(0x59d)](){const _0x559f48=_0x215dce;return this[_0x559f48(0x2cf)][_0x559f48(0x3f6)](F,this['unitID'],this[_0x559f48(0x3ee)],this['_awaitingChangeset'],[],this[_0x559f48(0x350)]);}[_0x215dce(0x5a8)](){return this;}[_0x215dce(0x457)](){const _0x2fdb40=_0x215dce;this[_0x2fdb40(0x350)][_0x2fdb40(0x1bb)](this[_0x2fdb40(0x30a)]);}[_0x215dce(0x323)](_0x7c8d6c){const _0x1d3a7e=_0x215dce;return this[_0x1d3a7e(0x2cf)][_0x1d3a7e(0x3f6)](W,this['unitID'],this[_0x1d3a7e(0x3ee)],this[_0x1d3a7e(0x30a)],[],this[_0x1d3a7e(0x350)],_0x7c8d6c);}};V=q([m(0x4,a['Inject'](a[_0x215dce(0x304)])),m(0x5,a[_0x215dce(0x561)](_[_0x215dce(0x1aa)])),m(0x6,a[_0x215dce(0x561)](exports[_0x215dce(0x2ac)])),m(0x7,a[_0x215dce(0x273)]),m(0x8,a[_0x215dce(0x3ce)]),m(0x9,_[_0x215dce(0x35a)]),m(0xa,a[_0x215dce(0x423)])],V);let x=class extends J{constructor(_0x56c52d,_0x1e2a24,_0x3e109d,_0x1dcae5,_0x1ac4d3,_0x529e8f,_0x53f5c6,_0x2c67ed,_0x248a2,_0x3db39e,_0x2ea5ca,_0x53b4e2){const _0xf49516=_0x215dce;super(_0x56c52d,_0x1e2a24,_0x3e109d,_0x1dcae5,_0x1ac4d3,_0x248a2,_0x53b4e2,_0x53f5c6,_0x2c67ed),d(this,_0xf49516(0x281),_0xf49516(0x465)),(this[_0xf49516(0x2cf)]=_0x529e8f,this[_0xf49516(0x362)]=_0x3db39e,this[_0xf49516(0x3e4)]=_0x2ea5ca);}['appendMutation'](_0x364c97){const _0xe1f8d=_0x215dce;return this[_0xe1f8d(0x599)][_0xe1f8d(0x364)](_0x364c97),this;}['onRemoteChangeset'](_0x10247a){const _0x17ebb3=_0x215dce;if(this['_checkMissing'](_0x10247a))return this['_injector']['createInstance']($,this[_0x17ebb3(0x233)],this[_0x17ebb3(0x3ee)],this[_0x17ebb3(0x30a)],this[_0x17ebb3(0x599)],null,[_0x10247a],this[_0x17ebb3(0x350)]);try{const _0x43c28d=this[_0x17ebb3(0x3e4)]['transformChangesets']([_0x10247a],[this['_awaitingChangeset']],!0x1);if(_[_0x17ebb3(0x4d5)](_0x43c28d)){const {c1Prime:_0x494575,c2Prime:_0x506733}=_0x43c28d,_0x135914=this[_0x17ebb3(0x3e4)][_0x17ebb3(0x2fa)](_0x494575[0x0],this[_0x17ebb3(0x599)]);if(_[_0x17ebb3(0x3d8)](_0x135914)){const {c1Prime:_0x4aff5f,m2Prime:_0x12ac75}=_0x135914;return this[_0x17ebb3(0x4b0)](_0x4aff5f),_0x506733[0x0][_0x17ebb3(0x246)]=this[_0x17ebb3(0x219)](),this[_0x17ebb3(0x2cf)]['createInstance'](x,this[_0x17ebb3(0x233)],this['type'],_0x506733[0x0],_0x12ac75,this[_0x17ebb3(0x350)]);}throw _0x135914['error'];}throw _0x43c28d[_0x17ebb3(0x235)];}catch(_0x3d3a20){return this[_0x17ebb3(0x362)][_0x17ebb3(0x235)](_0x3d3a20),this[_0x17ebb3(0x323)](!0x1);}}['onRemoteAck'](_0x3f0e86){const _0x55f797=_0x215dce;if(this['_checkMissing'](_0x3f0e86))return this[_0x55f797(0x2cf)][_0x55f797(0x3f6)]($,this[_0x55f797(0x233)],this[_0x55f797(0x3ee)],null,this[_0x55f797(0x599)],this[_0x55f797(0x30a)],[],this['_handler']);this[_0x55f797(0x484)]();const _0x1888b9=this[_0x55f797(0x2cf)][_0x55f797(0x3f6)](H,this[_0x55f797(0x233)],this[_0x55f797(0x3ee)],this[_0x55f797(0x599)],this[_0x55f797(0x350)]);return _0x1888b9['_schedule'](),_0x1888b9[_0x55f797(0x4ab)](),_0x1888b9;}[_0x215dce(0x2d7)](_0x37332d){const _0x38b78d=_0x215dce;return this['_onConflict'](!!(_0x37332d!=null&&_0x37332d[_0x38b78d(0x460)]));}['toggleOffline'](){const _0x5e2d69=_0x215dce;return this[_0x5e2d69(0x2cf)][_0x5e2d69(0x3f6)](F,this[_0x5e2d69(0x233)],this[_0x5e2d69(0x3ee)],this[_0x5e2d69(0x30a)],this[_0x5e2d69(0x599)],this[_0x5e2d69(0x350)]);}['toggleOnline'](){return this;}['resend'](){const _0x390457=_0x215dce;this['_handler']['onSendChangeset'](this[_0x390457(0x30a)]);}[_0x215dce(0x323)](_0x5bb19f){const _0x304b7c=_0x215dce;return this[_0x304b7c(0x2cf)][_0x304b7c(0x3f6)](W,this[_0x304b7c(0x233)],this[_0x304b7c(0x3ee)],null,this['_pendingMutations'],this['_handler'],_0x5bb19f);}};x=q([m(0x5,a['Inject'](a['Injector'])),m(0x6,a[_0x215dce(0x561)](_['RevisionService'])),m(0x7,a[_0x215dce(0x561)](exports[_0x215dce(0x2ac)])),m(0x8,a[_0x215dce(0x273)]),m(0x9,a[_0x215dce(0x3ce)]),m(0xa,_[_0x215dce(0x35a)]),m(0xb,a[_0x215dce(0x423)])],x);let W=class extends J{constructor(_0x2973ba,_0x3ffcc5,_0x45f8b0,_0x58f425,_0x2441ae,_0x2afbc1=!0x1,_0x38b3e4,_0x4b9ef2,_0x464d70,_0xa7d81e,_0x571050,_0x23f7af,_0x2de8ed){const _0x2859d2=_0x215dce;super(_0x2973ba,_0x3ffcc5,_0x45f8b0,_0x58f425,_0x2441ae,_0x4b9ef2,_0x464d70,_0x571050,_0xa7d81e),d(this,_0x2859d2(0x281),_0x2859d2(0x3da)),(this['_isPermissionRej']=_0x2afbc1,this['_permissionService']=_0x38b3e4,this[_0x2859d2(0x545)]=_0x23f7af,this[_0x2859d2(0x325)]=_0x2de8ed,this['_showConflictNotification'](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x215dce(0x522)](){return this;}[_0x215dce(0x204)](){return this;}[_0x215dce(0x368)](){return this;}[_0x215dce(0x2d7)](){return this;}[_0x215dce(0x59d)](){return this;}[_0x215dce(0x5a8)](){return this;}['resend'](){const _0x286886=_0x215dce;throw new Error(_0x286886(0x4e0));}[_0x215dce(0x3e0)](){const _0x576bf6=_0x215dce;this[_0x576bf6(0x4e4)][_0x576bf6(0x264)](this[_0x576bf6(0x233)],this[_0x576bf6(0x3ee)],null,[]);}['_showConflictNotification'](){const _0x184aba=_0x215dce;this[_0x184aba(0x5b5)]?this['_notificationService'][_0x184aba(0x326)]({'title':this['_localeService']['t'](_0x184aba(0x4b9)),'content':this['_localeService']['t'](_0x184aba(0x535)),'type':_0x184aba(0x235),'duration':0x0}):this[_0x184aba(0x325)][_0x184aba(0x326)]({'title':this[_0x184aba(0x545)]['t'](_0x184aba(0x3a8)),'content':this[_0x184aba(0x545)]['t'](_0x184aba(0x293)),'type':_0x184aba(0x235),'duration':0x0});}['_disableEditing'](){const _0x880716=_0x215dce;this[_0x880716(0x57e)][_0x880716(0x434)](new C[(_0x880716(0x411))](this['unitID'])['id'],!0x1);}};W=q([m(0x6,a['Inject'](a[_0x215dce(0x4ce)])),m(0x7,a[_0x215dce(0x273)]),m(0x8,a['IUndoRedoService']),m(0x9,a[_0x215dce(0x561)](exports[_0x215dce(0x2ac)])),m(0xa,a[_0x215dce(0x561)](_['RevisionService'])),m(0xb,a[_0x215dce(0x561)](a['LocaleService'])),m(0xc,M[_0x215dce(0x495)])],W);let F=class extends J{constructor(_0x28b6c7,_0x38ab39,_0x477371,_0x1bc7db,_0x540267,_0x1c51fb,_0x2230dd,_0x1c4f13,_0x28a955,_0xdb27a){const _0x5c2b0a=_0x215dce;super(_0x28b6c7,_0x38ab39,_0x477371,_0x1bc7db,_0x540267,_0x28a955,_0xdb27a,_0x2230dd,_0x1c4f13),d(this,_0x5c2b0a(0x281),_0x5c2b0a(0x57c)),this[_0x5c2b0a(0x2cf)]=_0x1c51fb;}['appendMutation'](_0x577d4e){const _0x27bda6=_0x215dce;return this[_0x27bda6(0x599)][_0x27bda6(0x364)](_0x577d4e),this[_0x27bda6(0x4ab)](),this;}[_0x215dce(0x204)](_0x128591){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x215dce(0x368)](){const _0x312f7f=_0x215dce;throw new Error(_0x312f7f(0x422));}[_0x215dce(0x2d7)](){const _0x2bc8ec=_0x215dce;throw new Error(_0x2bc8ec(0x3c2));}[_0x215dce(0x59d)](){return this;}[_0x215dce(0x5a8)](){const _0x3d30fa=_0x215dce,{_injector:_0x449113,_pendingMutations:_0x249eaa,_awaitingChangeset:_0x1a29ff,unitID:_0x3b40e9,_handler:_0x5bb8a2,type:_0x20666d}=this,_0x34d626=Ot(_0x449113,_0x3b40e9,_0x20666d,_0x1a29ff,_0x249eaa,_0x5bb8a2);return _0x34d626 instanceof H?_0x34d626['_schedule']():(_0x34d626 instanceof x||_0x34d626 instanceof V)&&_0x34d626[_0x3d30fa(0x457)](),_0x34d626;}['resend'](){const _0xf77f7e=_0x215dce;throw new Error(_0xf77f7e(0x472));}};F=q([m(0x5,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),m(0x6,a[_0x215dce(0x561)](_[_0x215dce(0x1aa)])),m(0x7,a[_0x215dce(0x561)](exports[_0x215dce(0x2ac)])),m(0x8,a[_0x215dce(0x273)]),m(0x9,a['IUndoRedoService'])],F);let $=class extends J{constructor(_0x512fc9,_0x27a414,_0x24ccea,_0x41f5dd,_0x27d8e7,_0x40bffa,_0x51f50f,_0x46aed,_0x163436,_0x448331,_0x33a3dc,_0x134a77,_0x2a4cd1,_0x1f06a6){const _0x215939=_0x215dce;super(_0x512fc9,_0x27a414,_0x24ccea,_0x41f5dd,_0x51f50f,_0x134a77,_0x2a4cd1,_0x163436,_0x448331),d(this,'status',_0x215939(0x3db)),(this[_0x215939(0x53d)]=_0x27d8e7,this[_0x215939(0x479)]=_0x40bffa,this[_0x215939(0x2cf)]=_0x46aed,this[_0x215939(0x362)]=_0x33a3dc,this[_0x215939(0x3e4)]=_0x1f06a6);}[_0x215dce(0x2d6)](_0x263acc){const _0x6ff738=_0x215dce;try{const _0x56aba3=[..._0x263acc,...this[_0x6ff738(0x479)]],_0x5f11d6=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x6ff738(0x2d8)](_0x57d5ac=>!!_0x57d5ac);let _0x212aac,_0xf59752;if(_0x5f11d6[_0x6ff738(0x32e)]){const _0x53168d=this[_0x6ff738(0x3e4)][_0x6ff738(0x30b)](_0x56aba3,_0x5f11d6,!0x1);if(!_['isTransformChangesetsSuccess'](_0x53168d))throw _0x53168d[_0x6ff738(0x235)];_0x212aac=_0x53168d[_0x6ff738(0x46c)],_0xf59752=_0x53168d[_0x6ff738(0x48f)];}else _0x212aac=_0x56aba3,_0xf59752=[];let _0x1aa697=this[_0x6ff738(0x599)];_0x212aac[_0x6ff738(0x392)](_0x2545dc=>{const _0xa6b402=_0x6ff738;let _0x1eb3f1;if(_0x1aa697[_0xa6b402(0x32e)]){const _0xded5aa=this[_0xa6b402(0x3e4)][_0xa6b402(0x2fa)](_0x2545dc,_0x1aa697);if(!_['isTransformMutationsWithChangesetSuccess'](_0xded5aa))throw _0xded5aa[_0xa6b402(0x235)];_0x1eb3f1=_0xded5aa[_0xa6b402(0x46c)],_0x1aa697=_0xded5aa['m2Prime'];}else _0x1eb3f1=_0x2545dc;this[_0xa6b402(0x4b0)](_0x1eb3f1);}),this[_0x6ff738(0x53d)]&&this['_incrementRevisionNumber'](),this[_0x6ff738(0x30a)]&&_0xf59752[_0x6ff738(0x32e)]&&(_0xf59752[0x0][_0x6ff738(0x246)]=this[_0x6ff738(0x219)]());let _0x443da8;if(this[_0x6ff738(0x30a)]&&_0x1aa697['length']!==0x0)_0x443da8=this[_0x6ff738(0x2cf)][_0x6ff738(0x3f6)](x,this['unitID'],this[_0x6ff738(0x3ee)],_0xf59752[0x0],_0x1aa697,this['_handler']);else{if(this[_0x6ff738(0x30a)]&&_0x1aa697[_0x6ff738(0x32e)]===0x0)_0xf59752[0x0]['baseRev']=this[_0x6ff738(0x219)](),_0x443da8=this['_injector']['createInstance'](V,this['unitID'],this[_0x6ff738(0x3ee)],_0xf59752[0x0],this[_0x6ff738(0x350)]);else{if(_0x1aa697[_0x6ff738(0x32e)]!==0x0){const _0x1638b9=this[_0x6ff738(0x2cf)]['createInstance'](H,this[_0x6ff738(0x233)],this[_0x6ff738(0x3ee)],_0x1aa697,this[_0x6ff738(0x350)]);_0x1638b9[_0x6ff738(0x4a6)](),_0x443da8=_0x1638b9;}else _0x443da8=this[_0x6ff738(0x2cf)][_0x6ff738(0x3f6)](se,this[_0x6ff738(0x233)],this[_0x6ff738(0x3ee)],this[_0x6ff738(0x350)]);}}return _0x443da8['_updateLocalCache'](),_0x443da8;}catch(_0x1a51f4){return this['_logService'][_0x6ff738(0x235)](_0x6ff738(0x1f8),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1a51f4),this['_injector'][_0x6ff738(0x3f6)](W,this['unitID'],this[_0x6ff738(0x3ee)],this[_0x6ff738(0x30a)],this[_0x6ff738(0x599)],this['_handler'],!0x1);}}[_0x215dce(0x457)](){const _0x44e2df=_0x215dce;throw new Error(_0x44e2df(0x2f9));}[_0x215dce(0x522)](_0x2d2ab9){const _0x1fceef=_0x215dce;return this['_pendingMutations'][_0x1fceef(0x364)](_0x2d2ab9),this;}[_0x215dce(0x204)](_0x24417e){const _0x7d56b5=_0x215dce;return this['_queuedRemoteChangesets'][_0x7d56b5(0x364)](_0x24417e),this;}[_0x215dce(0x368)](_0x370d6e){const _0x4cd589=_0x215dce;if(this[_0x4cd589(0x30a)])return this['_acknowledgedAwaitingChangeset']=this[_0x4cd589(0x30a)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x215dce(0x2d7)](_0x1132e7){const _0x5d9ca1=_0x215dce;return this[_0x5d9ca1(0x323)](!!(_0x1132e7!=null&&_0x1132e7[_0x5d9ca1(0x460)]));}['toggleOffline'](){const _0xeeae08=_0x215dce;return this[_0xeeae08(0x2cf)][_0xeeae08(0x3f6)](F,this[_0xeeae08(0x233)],this[_0xeeae08(0x3ee)],this[_0xeeae08(0x30a)],this[_0xeeae08(0x599)],this[_0xeeae08(0x350)]);}[_0x215dce(0x5a8)](){return this;}[_0x215dce(0x323)](_0xc78251){const _0x108a73=_0x215dce;return this[_0x108a73(0x2cf)]['createInstance'](W,this[_0x108a73(0x233)],this[_0x108a73(0x3ee)],this[_0x108a73(0x30a)],this['_pendingMutations'],this[_0x108a73(0x350)],_0xc78251);}};$=q([m(0x7,a['Inject'](a[_0x215dce(0x304)])),m(0x8,a[_0x215dce(0x561)](_[_0x215dce(0x1aa)])),m(0x9,a[_0x215dce(0x561)](exports['LocalCacheService'])),m(0xa,a['ILogService']),m(0xb,a['ICommandService']),m(0xc,a[_0x215dce(0x423)]),m(0xd,_[_0x215dce(0x35a)])],$);function Ot(_0xaf06e0,_0x5749f8,_0x2f788a,_0x5d00b7,_0x3d356d,_0x5d6eb7){const _0x26f674=_0x215dce;return _0x5d00b7&&_0x3d356d[_0x26f674(0x32e)]?_0xaf06e0['createInstance'](x,_0x5749f8,_0x2f788a,_0x5d00b7,_0x3d356d,_0x5d6eb7):_0x5d00b7?_0xaf06e0[_0x26f674(0x3f6)](V,_0x5749f8,_0x2f788a,_0x5d00b7,_0x5d6eb7):_0x3d356d[_0x26f674(0x32e)]?_0xaf06e0[_0x26f674(0x3f6)](H,_0x5749f8,_0x2f788a,_0x3d356d,_0x5d6eb7):_0xaf06e0[_0x26f674(0x3f6)](se,_0x5749f8,_0x2f788a,_0x5d6eb7);}var $s=Object['defineProperty'],Hs=Object[_0x215dce(0x394)],Ye=(_0x19b40e,_0x594cc6,_0x3ea997,_0x209dfd)=>{const _0x5e8984=_0x215dce;for(var _0xf158b1=_0x209dfd>0x1?void 0x0:_0x209dfd?Hs(_0x594cc6,_0x3ea997):_0x594cc6,_0x4fce32=_0x19b40e[_0x5e8984(0x32e)]-0x1,_0x199ef9;_0x4fce32>=0x0;_0x4fce32--)(_0x199ef9=_0x19b40e[_0x4fce32])&&(_0xf158b1=(_0x209dfd?_0x199ef9(_0x594cc6,_0x3ea997,_0xf158b1):_0x199ef9(_0xf158b1))||_0xf158b1);return _0x209dfd&&_0xf158b1&&$s(_0x594cc6,_0x3ea997,_0xf158b1),_0xf158b1;},p=(_0x40fcbb,_0x5a463a)=>(_0x35ea79,_0x2a22f8)=>_0x5a463a(_0x35ea79,_0x2a22f8,_0x40fcbb);exports[_0x215dce(0x370)]=class extends a['RxDisposable']{constructor(_0x1b276c,_0x2c2b7e,_0x4f3910,_0xf56155,_0x42d5c6,_0x1a2104,_0x332234,_0x295db4,_0x5209e4,_0x296221,_0xe5c93a,_0x422d9c,_0x32e58f){const _0x1a9700=_0x215dce;super(),d(this,'_state$',new v[(_0x1a9700(0x4f6))](null)),d(this,_0x1a9700(0x41e),this[_0x1a9700(0x25c)]['asObservable']()),d(this,'_state'),d(this,'_collaborationPaused',!0x1),d(this,'status$',this[_0x1a9700(0x41e)][_0x1a9700(0x412)](v[_0x1a9700(0x2ec)](_0x181572=>_0x181572?_0x181572[_0x1a9700(0x281)]:y[_0x1a9700(0x2de)]),v[_0x1a9700(0x347)](0x1))),d(this,'_transitionLocked',!0x1),d(this,_0x1a9700(0x22a),[]),(this[_0x1a9700(0x233)]=_0x1b276c,this[_0x1a9700(0x50c)]=_0x2c2b7e,this['_type']=_0x4f3910,this['_injector']=_0xf56155,this['_localCacheService']=_0x42d5c6,this[_0x1a9700(0x3ab)]=_0x1a2104,this[_0x1a9700(0x545)]=_0x332234,this['_revisionService']=_0x295db4,this['_logService']=_0x5209e4,this[_0x1a9700(0x35e)]=_0x296221,this[_0x1a9700(0x598)]=_0xe5c93a,this[_0x1a9700(0x57e)]=_0x422d9c,this[_0x1a9700(0x280)]=_0x32e58f);}get[_0x215dce(0x331)](){const _0x379f34=_0x215dce;return this[_0x379f34(0x569)];}async['init'](){const _0xb8a30=_0x215dce;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0xb8a30(0x427)]();}[_0x215dce(0x546)](){const _0x5b3c9d=_0x215dce;return this[_0x5b3c9d(0x528)]=!0x0,a[_0x5b3c9d(0x30e)](()=>{const _0x389858=_0x5b3c9d;this[_0x389858(0x528)]=!0x1,this[_0x389858(0x5a6)]();});}[_0x215dce(0x3cf)](_0x2052d6){const _0x85aca6=_0x215dce;this[_0x85aca6(0x569)]=_0x2052d6,this[_0x85aca6(0x25c)][_0x85aca6(0x3f3)](_0x2052d6);}async[_0x215dce(0x427)](){const _0x2a7cb7=_0x215dce;var _0x3cde50;this[_0x2a7cb7(0x3cf)](await this[_0x2a7cb7(0x4e9)]()),this[_0x2a7cb7(0x280)]&&((_0x3cde50=this[_0x2a7cb7(0x280)])==null||_0x3cde50[_0x2a7cb7(0x255)](this[_0x2a7cb7(0x233)]),this['disposeWithMe'](this[_0x2a7cb7(0x280)][_0x2a7cb7(0x451)](this['unitID'])[_0x2a7cb7(0x238)](_0x40a74e=>{const _0x4c2831=_0x2a7cb7;this[_0x4c2831(0x362)]['debug']('[CollaborationEntity]',_0x4c2831(0x513),_0x40a74e),_0x40a74e===Tt[_0x4c2831(0x417)]?(this[_0x4c2831(0x598)]['show']({'content':this[_0x4c2831(0x545)]['t'](_0x4c2831(0x506)),'type':K[_0x4c2831(0x536)]['Warning']}),this[_0x4c2831(0x57e)][_0x4c2831(0x434)](new C[(_0x4c2831(0x411))](this[_0x4c2831(0x233)])['id'],!0x1)):this[_0x4c2831(0x57e)][_0x4c2831(0x434)](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x0);})));let _0x4eba44=!0x1;return this['disposeWithMe'](this['session']['sessionStatus$'][_0x2a7cb7(0x238)](_0x4d3082=>{const _0x1c8a46=_0x2a7cb7;_0x4d3082===j[_0x1c8a46(0x27d)]?this[_0x1c8a46(0x3b7)](_0x4eba44):_0x4d3082===j[_0x1c8a46(0x2de)]&&(_0x4eba44=!0x0,this[_0x1c8a46(0x1a8)]());})),this['disposeWithMe'](this[_0x2a7cb7(0x50c)][_0x2a7cb7(0x4e6)][_0x2a7cb7(0x238)](_0x592f4f=>{const _0x363052=_0x2a7cb7;try{switch(_0x592f4f[_0x363052(0x533)]){case _[_0x363052(0x5a1)][_0x363052(0x2b9)]:{this[_0x363052(0x570)](_[_0x363052(0x3a7)](_0x592f4f['data']));break;}case _[_0x363052(0x5a1)][_0x363052(0x2a7)]:{this[_0x363052(0x366)](_0x592f4f[_0x363052(0x455)]);break;}case _['CollaborationEvent']['CHANGESET_REJ']:{this[_0x363052(0x4c2)]();break;}case _[_0x363052(0x5a1)][_0x363052(0x2bb)]:{this[_0x363052(0x57a)](_0x592f4f['data']['changesets']['map'](_0x122efe=>_[_0x363052(0x3a7)](_0x122efe)));break;}case _['CollaborationEvent'][_0x363052(0x539)]:this[_0x363052(0x4c2)]({'isPermissionRej':!0x0});}}catch(_0x12c813){throw console[_0x363052(0x235)]('Error\x20on\x20receiving\x20event',_0x12c813),_0x12c813;}})),this[_0x2a7cb7(0x569)];}[_0x215dce(0x31a)](){this['_transitionLocked']=!0x1;}[_0x215dce(0x367)](){const _0x406e25=_0x215dce;if(this[_0x406e25(0x215)])throw new Error(_0x406e25(0x383));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x11aa23){const _0x2bbf22=_0x215dce;this['_lockTransition'](),this[_0x2bbf22(0x3cf)](this[_0x2bbf22(0x569)][_0x2bbf22(0x522)](_0x11aa23)),this['_unlockTransition']();}[_0x215dce(0x570)](_0x39e7b3){const _0x520dc5=_0x215dce;if(!(_0x39e7b3[_0x520dc5(0x3f2)]<=this['_revisionService'][_0x520dc5(0x463)](this[_0x520dc5(0x233)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x520dc5(0x364)](_0x39e7b3);return;}this['_applyRemoteChangeset'](_0x39e7b3);}}[_0x215dce(0x5a6)](){const _0x40ea2f=_0x215dce;this['_remoteChangesetQueue'][_0x40ea2f(0x392)](_0x493c93=>this[_0x40ea2f(0x2ff)](_0x493c93)),this[_0x40ea2f(0x22a)]=[];}[_0x215dce(0x2ff)](_0x496c59){const _0x3bfea7=_0x215dce,_0x2001ec=this[_0x3bfea7(0x3ab)][_0x3bfea7(0x337)][_0x3bfea7(0x23a)](this[_0x3bfea7(0x3ab)][_0x3bfea7(0x337)][_0x3bfea7(0x1fc)]()[_0x3bfea7(0x384)])(_0x496c59[_0x3bfea7(0x40f)],null)||_0x496c59[_0x3bfea7(0x40f)],_0x4b0ae4={..._0x496c59,'mutations':_0x2001ec};this[_0x3bfea7(0x367)](),this['_updateState'](this[_0x3bfea7(0x569)]['onRemoteChangeset'](_0x4b0ae4)),this[_0x3bfea7(0x31a)]();}[_0x215dce(0x366)](_0x28bf33){const _0x32d7a4=_0x215dce;this[_0x32d7a4(0x367)](),this[_0x32d7a4(0x3cf)](this[_0x32d7a4(0x569)][_0x32d7a4(0x368)](_0x28bf33)),this[_0x32d7a4(0x31a)]();}[_0x215dce(0x4c2)](_0x408585){this['_lockTransition'](),this['_updateState'](this['_state']['onRemoteRej'](_0x408585)),this['_unlockTransition']();}['_onFetchMissResult'](_0x18ce1d){const _0x56baee=_0x215dce;if(!(this[_0x56baee(0x569)]instanceof $))throw new TypeError(_0x56baee(0x382));const _0x23b75d=_0x18ce1d[_0x56baee(0x2ec)](_0x38930a=>{const _0x5f7c22=_0x56baee,_0x8e76cb=this['_compressMutationService'][_0x5f7c22(0x337)][_0x5f7c22(0x23a)](this['_compressMutationService'][_0x5f7c22(0x337)][_0x5f7c22(0x1fc)]()[_0x5f7c22(0x384)])(_0x38930a[_0x5f7c22(0x40f)],null)||_0x38930a[_0x5f7c22(0x40f)];return{..._0x38930a,'mutations':_0x8e76cb};});this['_lockTransition'](),this[_0x56baee(0x3cf)](this[_0x56baee(0x569)][_0x56baee(0x2d6)](_0x23b75d)),this['_unlockTransition']();}['_toggleOffline'](){const _0x5b3ca7=_0x215dce;this[_0x5b3ca7(0x367)](),this['_updateState'](this['_state'][_0x5b3ca7(0x59d)]()),this['_unlockTransition']();}['_toggleOnline'](_0x3ff17b=!0x1){const _0x44f9c2=_0x215dce;this[_0x44f9c2(0x367)](),this['_updateState'](this['_state'][_0x44f9c2(0x5a8)]()),this[_0x44f9c2(0x31a)]();const _0x4d8017=this['_state'];_0x3ff17b&&_0x4d8017 instanceof se&&(this[_0x44f9c2(0x367)](),this[_0x44f9c2(0x3cf)](_0x4d8017[_0x44f9c2(0x526)]()),this[_0x44f9c2(0x31a)]());}async[_0x215dce(0x4e9)](){return new Promise(_0x55f90d=>{const _0x3f88e2=_0x3749;this[_0x3f88e2(0x50c)][_0x3f88e2(0x29d)][_0x3f88e2(0x412)](v[_0x3f88e2(0x3a2)](0x1))[_0x3f88e2(0x238)](async _0x1a33d6=>{const _0x33dcd1=_0x3f88e2;_0x55f90d(await this[_0x33dcd1(0x515)](_0x1a33d6===j[_0x33dcd1(0x27d)]));});});}['_createHandler'](){const _0xa9b624=_0x215dce,_0x1de681=this[_0xa9b624(0x233)];return{'onStateChange':(_0x1ba40c,_0x31b0f0)=>{const _0x138f2d=_0xa9b624;if(_0x1ba40c!==this[_0x138f2d(0x569)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1ba40c[_0x138f2d(0x281)]+_0x138f2d(0x1bf)+_0x31b0f0[_0x138f2d(0x281)]+_0x138f2d(0x1b7)+this[_0x138f2d(0x569)][_0x138f2d(0x281)]);this['_updateState'](_0x31b0f0);},'onSendChangeset':_0x3c9461=>{const _0x5aead2=_0xa9b624,_0x301ba8={'eventID':_['CollaborationEvent'][_0x5aead2(0x4cd)],'data':{'unitID':_0x3c9461[_0x5aead2(0x233)],'unitType':this[_0x5aead2(0x4f5)],'changeset':_0x3c9461,'memberID':this[_0x5aead2(0x50c)][_0x5aead2(0x450)]()}};this[_0x5aead2(0x50c)][_0x5aead2(0x492)](_0x301ba8,this[_0x5aead2(0x233)]);},'onMissingChangesets':({from:_0x29152c,to:_0x2fa718})=>{const _0x3e43e2=_0xa9b624;this['_logService'][_0x3e43e2(0x59f)](_0x3e43e2(0x2cc),_0x3e43e2(0x525)+_0x29152c+'\x20to\x20'+_0x2fa718);const _0x528315={'eventID':_['CollaborationEvent'][_0x3e43e2(0x259)],'data':{'unitID':_0x1de681,'unitType':this[_0x3e43e2(0x4f5)],'from':_0x29152c,'to':_0x2fa718}};this[_0x3e43e2(0x50c)][_0x3e43e2(0x492)](_0x528315,this[_0x3e43e2(0x233)]);}};}async[_0x215dce(0x515)](_0x4edd89){const _0x2381bc=_0x215dce;var _0x5d7de4,_0x266ac6;const _0x2518de=await this[_0x2381bc(0x4e4)][_0x2381bc(0x247)](this[_0x2381bc(0x233)]),_0xa7f931=(_0x5d7de4=_0x2518de==null?void 0x0:_0x2518de[_0x2381bc(0x40f)])!=null?_0x5d7de4:[],_0x1b77b4=(_0x266ac6=_0x2518de==null?void 0x0:_0x2518de['awaitingChangeset'])!=null?_0x266ac6:null,_0x46a8dc=this[_0x2381bc(0x233)];try{this['_replayCachedMutations'](_0x1b77b4,_0xa7f931);}catch(_0x5904f3){this[_0x2381bc(0x362)][_0x2381bc(0x235)](_0x5904f3);}const _0x388c50=this[_0x2381bc(0x40c)]();if(_0x4edd89){const _0x51cd20=Ot(this['_injector'],_0x46a8dc,this[_0x2381bc(0x4f5)],_0x1b77b4,_0xa7f931,_0x388c50);return _0x51cd20 instanceof H?_0x51cd20[_0x2381bc(0x4a6)]():(_0x51cd20 instanceof x||_0x51cd20 instanceof V)&&_0x51cd20[_0x2381bc(0x457)](),_0x51cd20;}return this[_0x2381bc(0x2cf)][_0x2381bc(0x3f6)](F,_0x46a8dc,this['_type'],_0x1b77b4,_0xa7f931,_0x388c50);}['_replayCachedMutations'](_0x296c8b,_0x4b1c75){const _0x602eac=_0x215dce;var _0x5c8d15,_0xc45636;const _0x2b0a6a=this[_0x602eac(0x3ab)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x602eac(0x337)]['getInterceptPoints']()[_0x602eac(0x384)]);(_0x5c8d15=_0x2b0a6a((_0x296c8b==null?void 0x0:_0x296c8b['mutations'])||[],null))==null||_0x5c8d15[_0x602eac(0x392)](_0x366d81=>this['_commandService']['executeCommand'](_0x366d81['id'],_0x366d81[_0x602eac(0x41c)])),(_0xc45636=_0x2b0a6a(_0x4b1c75||[],null))==null||_0xc45636[_0x602eac(0x392)](_0x1efe5a=>this[_0x602eac(0x35e)][_0x602eac(0x2d1)](_0x1efe5a['id'],_0x1efe5a[_0x602eac(0x41c)]));}},exports['CollaborationEntity']=Ye([p(0x3,a['Inject'](a[_0x215dce(0x304)])),p(0x4,a[_0x215dce(0x561)](exports[_0x215dce(0x2ac)])),p(0x5,a[_0x215dce(0x561)](_[_0x215dce(0x43c)])),p(0x6,a[_0x215dce(0x561)](a[_0x215dce(0x3d6)])),p(0x7,a[_0x215dce(0x561)](_[_0x215dce(0x1aa)])),p(0x8,a[_0x215dce(0x3ce)]),p(0x9,a['ICommandService']),p(0xa,M[_0x215dce(0x4fa)]),p(0xb,a[_0x215dce(0x4ce)]),p(0xc,a[_0x215dce(0x3b1)](Ee))],exports[_0x215dce(0x370)]),exports[_0x215dce(0x2b4)]=class extends exports[_0x215dce(0x370)]{constructor(_0x3c6dc7,_0x1fd97c,_0x5c5d0a,_0x51aaa0,_0x2c0eeb,_0x44f165,_0x422c90,_0x3d9601,_0x321bb9,_0x29a948,_0x5d153f,_0x3f0098,_0x32ec94,_0x6c6144,_0x1165a1,_0x664401,_0x113fbc){const _0xdd1f19=_0x215dce;super(_0x3c6dc7,_0x5c5d0a,_0x1fd97c,_0x51aaa0,_0x2c0eeb,_0x44f165,_0x422c90,_0x3d9601,_0x32ec94,_0x6c6144,_0x1165a1,_0x664401,_0x113fbc),this[_0xdd1f19(0x233)]=_0x3c6dc7,this['type']=_0x1fd97c,this['_docStateChangeManagerService']=_0x321bb9,this[_0xdd1f19(0x3eb)]=_0x29a948,this[_0xdd1f19(0x469)]=_0x5d153f,this[_0xdd1f19(0x4e8)]=_0x3f0098;}[_0x215dce(0x40c)](){const _0x1b892b=_0x215dce,_0x3be0df=super[_0x1b892b(0x40c)]();return _0x3be0df[_0x1b892b(0x272)]=_0x5508e=>this[_0x1b892b(0x3eb)][_0x1b892b(0x36b)](_0x5508e),_0x3be0df['onTransformSelections']=_0x1d87e7=>this[_0x1b892b(0x469)][_0x1b892b(0x443)](_0x1d87e7),_0x3be0df[_0x1b892b(0x439)]=_0x4fc61f=>this[_0x1b892b(0x4e8)][_0x1b892b(0x5ab)](_0x4fc61f),_0x3be0df['onTransformRemoteChangesetByIMECache']=_0x17f7d8=>this[_0x1b892b(0x3eb)][_0x1b892b(0x35d)](_0x17f7d8),_0x3be0df;}async['_init'](){const _0x455185=_0x215dce,_0x4be9cb=await super[_0x455185(0x427)]();return this[_0x455185(0x516)](this[_0x455185(0x35e)][_0x455185(0x482)]((_0x201f14,_0x2036ff)=>{const _0x335d76=_0x455185;if(_0x201f14['type']!==a[_0x335d76(0x577)][_0x335d76(0x251)]||_0x2036ff!=null&&_0x2036ff['fromCollab']||_0x2036ff!=null&&_0x2036ff[_0x335d76(0x410)])return;const _0x25dfa9=_0x201f14[_0x335d76(0x41c)];if((_0x25dfa9==null?void 0x0:_0x25dfa9['unitId'])!==this[_0x335d76(0x233)])return;let _0x573b22=_0x201f14;if(_0x573b22['id']===B[_0x335d76(0x339)]['id']){const _0x53100a=_0x573b22['params'];_0x573b22={'id':B[_0x335d76(0x339)]['id'],'type':a[_0x335d76(0x577)][_0x335d76(0x251)],'params':{'unitId':_0x53100a[_0x335d76(0x3ef)],'actions':_0x53100a[_0x335d76(0x468)],'textRanges':null}};}const _0x2079d7=this[_0x335d76(0x3ab)][_0x335d76(0x337)][_0x335d76(0x23a)](this[_0x335d76(0x3ab)][_0x335d76(0x337)][_0x335d76(0x1fc)]()['COMPRESS_MUTATION_SEND'])([_0x573b22],null)||[_0x573b22];this['_onLocalMutation'](_0x2079d7[0x0]);})),_0x4be9cb;}},exports[_0x215dce(0x2b4)]=Ye([p(0x3,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),p(0x4,a[_0x215dce(0x561)](exports['LocalCacheService'])),p(0x5,a[_0x215dce(0x561)](_['CompressMutationService'])),p(0x6,a['Inject'](a['LocaleService'])),p(0x7,a['Inject'](_[_0x215dce(0x1aa)])),p(0x8,a['Inject'](w['DocStateChangeManagerService'])),p(0x9,a[_0x215dce(0x561)](ge)),p(0xa,a[_0x215dce(0x561)](pe)),p(0xb,a[_0x215dce(0x561)](Ge)),p(0xc,a[_0x215dce(0x3ce)]),p(0xd,a['ICommandService']),p(0xe,M[_0x215dce(0x4fa)]),p(0xf,a['IPermissionService']),p(0x10,a['Optional'](Ee))],exports[_0x215dce(0x2b4)]),exports[_0x215dce(0x3bf)]=class extends exports[_0x215dce(0x370)]{constructor(_0x2c256c,_0x337311,_0x33d245,_0x5bcc0a,_0x172091,_0x17f586,_0x4a70d2,_0x21ba46,_0x8e17dd,_0x4ef5de,_0xfae44d,_0x59b375,_0x1df777,_0x2f453a){const _0x400826=_0x215dce;super(_0x2c256c,_0x33d245,_0x337311,_0x5bcc0a,_0x172091,_0x17f586,_0x4a70d2,_0x21ba46,_0x4ef5de,_0xfae44d,_0x59b375,_0x1df777,_0x2f453a),this[_0x400826(0x233)]=_0x2c256c,this[_0x400826(0x3ee)]=_0x337311,this['_sheetTransformSelectionsService']=_0x8e17dd;}['_createHandler'](){const _0x9b034c=_0x215dce,_0x12c39c=super[_0x9b034c(0x40c)]();return _0x12c39c[_0x9b034c(0x2a3)]=_0xb4d2c6=>this[_0x9b034c(0x454)][_0x9b034c(0x443)](_0xb4d2c6),_0x12c39c;}async[_0x215dce(0x427)](){const _0x3d5fab=_0x215dce,_0x15b814=await super[_0x3d5fab(0x427)]();return this['disposeWithMe'](this['_commandService'][_0x3d5fab(0x482)]((_0x38da58,_0x525027)=>{const _0xe523a5=_0x3d5fab;if(_0x38da58[_0xe523a5(0x3ee)]!==a['CommandType'][_0xe523a5(0x251)]||_0x525027!=null&&_0x525027['fromCollab']||_0x525027!=null&&_0x525027[_0xe523a5(0x410)])return;const _0x217fee=_0x38da58['params'];if((_0x217fee==null?void 0x0:_0x217fee[_0xe523a5(0x3ef)])!==this['unitID'])return;const _0x7bd2a4=_0x38da58,_0xd2f50e=this[_0xe523a5(0x3ab)][_0xe523a5(0x337)][_0xe523a5(0x23a)](this['_compressMutationService'][_0xe523a5(0x337)]['getInterceptPoints']()[_0xe523a5(0x43d)])([_0x7bd2a4],null)||[_0x7bd2a4];this['_onLocalMutation'](_0xd2f50e[0x0]);})),_0x15b814;}},exports[_0x215dce(0x3bf)]=Ye([p(0x3,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),p(0x4,a[_0x215dce(0x561)](exports['LocalCacheService'])),p(0x5,a['Inject'](_['CompressMutationService'])),p(0x6,a[_0x215dce(0x561)](a[_0x215dce(0x3d6)])),p(0x7,a[_0x215dce(0x561)](_['RevisionService'])),p(0x8,a[_0x215dce(0x561)](Ie)),p(0x9,a[_0x215dce(0x3ce)]),p(0xa,a[_0x215dce(0x273)]),p(0xb,M[_0x215dce(0x4fa)]),p(0xc,a[_0x215dce(0x4ce)]),p(0xd,a[_0x215dce(0x3b1)](Ee))],exports[_0x215dce(0x3bf)]);var xs=Object[_0x215dce(0x437)],ks=Object[_0x215dce(0x394)],Bs=(_0x1ec144,_0x41b33c,_0x2b1c84,_0x38175d)=>{for(var _0x350fbb=_0x38175d>0x1?void 0x0:_0x38175d?ks(_0x41b33c,_0x2b1c84):_0x41b33c,_0x29ff14=_0x1ec144['length']-0x1,_0x31ae05;_0x29ff14>=0x0;_0x29ff14--)(_0x31ae05=_0x1ec144[_0x29ff14])&&(_0x350fbb=(_0x38175d?_0x31ae05(_0x41b33c,_0x2b1c84,_0x350fbb):_0x31ae05(_0x350fbb))||_0x350fbb);return _0x38175d&&_0x350fbb&&xs(_0x41b33c,_0x2b1c84,_0x350fbb),_0x350fbb;},ye=(_0x43513e,_0x184eb0)=>(_0x34f846,_0x356df3)=>_0x184eb0(_0x34f846,_0x356df3,_0x43513e);exports[_0x215dce(0x3df)]=class extends a[_0x215dce(0x43a)]{constructor(_0x1fed53,_0x507b5d,_0x3a4e84){const _0x12daaa=_0x215dce;super(),d(this,_0x12daaa(0x5a4),new Map()),d(this,_0x12daaa(0x458),new v[(_0x12daaa(0x507))]()),(this[_0x12daaa(0x2cf)]=_0x1fed53,this[_0x12daaa(0x209)]=_0x507b5d,this['_univerInstanceService']=_0x3a4e84,this[_0x12daaa(0x427)]());}['dispose'](){const _0x4d26b6=_0x215dce;super[_0x4d26b6(0x587)](),this['_entities'][_0x4d26b6(0x392)](_0x23cef2=>_0x23cef2[_0x4d26b6(0x587)]()),this[_0x4d26b6(0x5a4)][_0x4d26b6(0x1dc)]();}[_0x215dce(0x33e)](_0x24273e){const _0x3a2a66=_0x215dce;var _0x7ce463;return(_0x7ce463=this[_0x3a2a66(0x5a4)]['get'](_0x24273e))!=null?_0x7ce463:null;}[_0x215dce(0x2ae)](_0x355b2c){const _0x2c1e22=_0x215dce,_0x545d47=this[_0x2c1e22(0x33e)](_0x355b2c);return _0x545d47?v['of'](_0x545d47):this['_entityInit$']['pipe'](E[_0x2c1e22(0x2d8)](_0x54dd4e=>_0x54dd4e['unitID']===_0x355b2c));}[_0x215dce(0x427)](){const _0x36f736=_0x215dce;this[_0x36f736(0x3c5)][_0x36f736(0x1c7)](a[_0x36f736(0x48c)][_0x36f736(0x2ba)])[_0x36f736(0x412)](v[_0x36f736(0x3ff)](this[_0x36f736(0x236)]),E[_0x36f736(0x46d)](0x10))[_0x36f736(0x238)](async _0x5a54eb=>{const _0x2f987c=_0x36f736,_0x3dc6f1=_0x5a54eb[_0x2f987c(0x421)](),_0x7cca37=await this['_startCollaboration'](_0x3dc6f1,A['UNIVER_SHEET']);this['_entities'][_0x2f987c(0x4bd)](_0x3dc6f1,_0x7cca37);}),this[_0x36f736(0x3c5)][_0x36f736(0x1c7)](a['UniverInstanceType'][_0x36f736(0x2df)])[_0x36f736(0x412)](v[_0x36f736(0x3ff)](this[_0x36f736(0x236)]),E[_0x36f736(0x46d)](0x10))[_0x36f736(0x412)](E[_0x36f736(0x2d8)](_0x413dda=>!_0x413dda[_0x36f736(0x421)]()['startsWith']('__')))[_0x36f736(0x238)](async _0x283077=>{const _0x45056c=_0x36f736,_0xe62039=_0x283077[_0x45056c(0x421)](),_0x53970a=await this[_0x45056c(0x4d0)](_0xe62039,A[_0x45056c(0x2df)]);this[_0x45056c(0x5a4)][_0x45056c(0x4bd)](_0xe62039,_0x53970a);}),v[_0x36f736(0x4c4)](this['_univerInstanceService'][_0x36f736(0x4ec)](a[_0x36f736(0x48c)]['UNIVER_SHEET']),this[_0x36f736(0x3c5)]['getTypeOfUnitDisposed$'](a[_0x36f736(0x48c)]['UNIVER_DOC']))[_0x36f736(0x412)](v['takeUntil'](this['dispose$']))['subscribe'](_0x39a0be=>{const _0x14a987=_0x36f736,_0x14c02e=_0x39a0be[_0x14a987(0x421)](),_0x10839c=this[_0x14a987(0x5a4)][_0x14a987(0x24a)](_0x14c02e);_0x10839c&&(_0x10839c[_0x14a987(0x587)](),this[_0x14a987(0x5a4)]['delete'](_0x14c02e));});}async['_startCollaboration'](_0x318203,_0x5ddd00){const _0x52e91b=_0x215dce,_0x210630=await this[_0x52e91b(0x209)][_0x52e91b(0x37b)](_0x318203),_0x544a43=this[_0x52e91b(0x2cf)]['createInstance'](this[_0x52e91b(0x279)](_0x5ddd00),_0x318203,_0x5ddd00,_0x210630);return await _0x544a43[_0x52e91b(0x395)](),this['_entityInit$']['next'](_0x544a43),_0x544a43;}[_0x215dce(0x279)](_0x4f9509){const _0x32194c=_0x215dce;switch(_0x4f9509){case A[_0x32194c(0x2df)]:return exports[_0x32194c(0x2b4)];case A[_0x32194c(0x2ba)]:return exports[_0x32194c(0x3bf)];default:throw new Error(_0x32194c(0x3a4)+_0x4f9509);}}},exports[_0x215dce(0x3df)]=Bs([ye(0x0,a['Inject'](a[_0x215dce(0x304)])),ye(0x1,a['Inject'](exports[_0x215dce(0x4ac)])),ye(0x2,a[_0x215dce(0x583)])],exports[_0x215dce(0x3df)]);const it=[_0x215dce(0x551),_0x215dce(0x58b),_0x215dce(0x386),'red300',_0x215dce(0x4b6),_0x215dce(0x4ed)];class Ke extends a[_0x215dce(0x530)]{constructor(){const _0x94ab8f=_0x215dce;super(...arguments),d(this,_0x94ab8f(0x322),new Map()),d(this,_0x94ab8f(0x28f),0x0);}[_0x215dce(0x2a5)](_0xd79774){const _0x305ced=_0x215dce;if(this[_0x305ced(0x322)][_0x305ced(0x509)](_0xd79774))return this[_0x305ced(0x322)]['get'](_0xd79774);const _0x1b1ea0=it[this['_colorIndex']];return this[_0x305ced(0x28f)]=(this[_0x305ced(0x28f)]+0x1)%it[_0x305ced(0x32e)],this[_0x305ced(0x322)]['set'](_0xd79774,_0x1b1ea0),_0x1b1ea0;}}var Vs=Object[_0x215dce(0x437)],Ws=Object[_0x215dce(0x394)],Fs=(_0x2b9e14,_0x12c270,_0x2bf6f1,_0x38d528)=>{const _0x29b6cd=_0x215dce;for(var _0x479269=_0x38d528>0x1?void 0x0:_0x38d528?Ws(_0x12c270,_0x2bf6f1):_0x12c270,_0x59ff2a=_0x2b9e14[_0x29b6cd(0x32e)]-0x1,_0x42f0d0;_0x59ff2a>=0x0;_0x59ff2a--)(_0x42f0d0=_0x2b9e14[_0x59ff2a])&&(_0x479269=(_0x38d528?_0x42f0d0(_0x12c270,_0x2bf6f1,_0x479269):_0x42f0d0(_0x479269))||_0x479269);return _0x38d528&&_0x479269&&Vs(_0x12c270,_0x2bf6f1,_0x479269),_0x479269;},Z=(_0x591a7c,_0x3151fc)=>(_0x4409f1,_0x1960bc)=>_0x3151fc(_0x4409f1,_0x1960bc,_0x591a7c);const Gs=0x12c,Ys=0x64,Ks=()=>{let _0x49f7d8=[],_0x2bd11a=!0x1;return _0x542094=>{const _0x4e002d=_0x3749;_0x49f7d8[_0x4e002d(0x364)](_0x542094),_0x2bd11a||(_0x2bd11a=!0x0,setTimeout(()=>{const _0xefd22f=_0x4e002d;_0x49f7d8[_0xefd22f(0x392)](_0x1b510f=>_0x1b510f()),_0x49f7d8=[],_0x2bd11a=!0x1;}));};};let je=class extends a[_0x215dce(0x43a)]{constructor(_0x5d2dae,_0x3db1ca,_0xbd6d9a,_0x3ecbea,_0x4b5637,_0x3f616f,_0x1eebda,_0x3817fc){const _0x316f0a=_0x215dce;super(),d(this,_0x316f0a(0x3fb),!0x1),d(this,_0x316f0a(0x427),!0x1),d(this,_0x316f0a(0x531),new v[(_0x316f0a(0x4f6))](new Map())),d(this,_0x316f0a(0x4bf),this[_0x316f0a(0x531)][_0x316f0a(0x333)]()),d(this,'_roomMembers$',new v[(_0x316f0a(0x4f6))]([])),d(this,_0x316f0a(0x2d0),this[_0x316f0a(0x56a)][_0x316f0a(0x412)](v[_0x316f0a(0x1b1)](Gs))),d(this,_0x316f0a(0x4a7),ke((_0x311cee,_0x3a7e5d)=>{const _0x193f75=_0x316f0a,_0x1497da={'eventID':_[_0x193f75(0x5a1)][_0x193f75(0x26e)],'data':{'unitID':this[_0x193f75(0x233)],'memberID':this[_0x193f75(0x2a9)]['getMemberID'](),'selection':Je[_0x193f75(0x58a)](_0x311cee,_0x3a7e5d[_0x193f75(0x493)])}};this['_session'][_0x193f75(0x492)](_0x1497da,this['unitID']);},Ys)),(this[_0x316f0a(0x233)]=_0x5d2dae,this[_0x316f0a(0x2a9)]=_0x3db1ca,this[_0x316f0a(0x2cf)]=_0xbd6d9a,this[_0x316f0a(0x29c)]=_0x3ecbea,this['_memberService']=_0x4b5637,this[_0x316f0a(0x3c5)]=_0x3f616f,this[_0x316f0a(0x35e)]=_0x1eebda,this['_refRangeService']=_0x3817fc);}get['cursorInfo'](){const _0x65cb38=_0x215dce;return this[_0x65cb38(0x531)]['getValue']();}get[_0x215dce(0x4a9)](){const _0x21af6d=_0x215dce;return this[_0x21af6d(0x56a)]['getValue']();}[_0x215dce(0x587)](){const _0x52af7e=_0x215dce;super[_0x52af7e(0x587)](),this['_cursorInfo$'][_0x52af7e(0x3f3)](new Map()),this[_0x52af7e(0x531)][_0x52af7e(0x3aa)](),this[_0x52af7e(0x56a)][_0x52af7e(0x3f3)]([]),this['_roomMembers$']['complete']();}[_0x215dce(0x395)](){const _0xf4d323=_0x215dce;this[_0xf4d323(0x427)]||(this[_0xf4d323(0x427)]=!0x0,this[_0xf4d323(0x2a9)][_0xf4d323(0x29d)][_0xf4d323(0x412)](v[_0xf4d323(0x3ff)](this[_0xf4d323(0x236)]))[_0xf4d323(0x238)](_0x40a574=>{const _0x24abce=_0xf4d323;_0x40a574===j[_0x24abce(0x27d)]?this[_0x24abce(0x3b7)]():this[_0x24abce(0x1a8)]();}),this[_0xf4d323(0x2a9)][_0xf4d323(0x4e6)][_0xf4d323(0x412)](v[_0xf4d323(0x3ff)](this[_0xf4d323(0x236)]))[_0xf4d323(0x238)](_0x43d3c6=>{const _0x36fc57=_0xf4d323,_0x21a27f=_0x43d3c6['eventID'];_0x21a27f===_[_0x36fc57(0x5a1)][_0x36fc57(0x26e)]&&this['_onCursorUpdate'](_0x43d3c6),_0x21a27f===_[_0x36fc57(0x5a1)][_0x36fc57(0x505)]&&this[_0x36fc57(0x2c1)](_0x43d3c6);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x1b7ba7=>{const _0x3be1c0=_0xf4d323;if(this['_online']&&_0x1b7ba7['id']===C[_0x3be1c0(0x3d2)]['id']&&_0x1b7ba7[_0x3be1c0(0x41c)][_0x3be1c0(0x3ef)]===this[_0x3be1c0(0x233)]){const _0x504fae=_0x1b7ba7['params'];this[_0x3be1c0(0x4a7)](_0x504fae[_0x3be1c0(0x1b6)],_0x504fae[_0x3be1c0(0x221)][0x0]);}})));}[_0x215dce(0x3b4)](_0x21765f){const _0x370fbb=_0x215dce;var _0x3e0185,_0x45e119;const {memberID:_0x16f9a0,selection:_0x991e83}=_0x21765f[_0x370fbb(0x455)],{sheetName:_0x56afd9,range:_0x3c0b68}=Je[_0x370fbb(0x21d)](_0x991e83),_0x513314={'name':(_0x45e119=(_0x3e0185=this[_0x370fbb(0x40b)][_0x370fbb(0x38b)](this[_0x370fbb(0x233)],_0x16f9a0))==null?void 0x0:_0x3e0185[_0x370fbb(0x2f3)])!=null?_0x45e119:_0x370fbb(0x20b),'range':this[_0x370fbb(0x24f)](_0x56afd9,_0x3c0b68),'sheetID':_0x56afd9,'color':this[_0x370fbb(0x29c)]['assignAColorForMemberID'](_0x16f9a0),'selection':_0x991e83},_0x511015=this[_0x370fbb(0x41f)];_0x511015[_0x370fbb(0x4bd)](_0x16f9a0,_0x513314),this[_0x370fbb(0x531)]['next'](_0x511015);}[_0x215dce(0x2c1)](_0x17ff89){const _0x9c475a=_0x215dce,{memberID:_0x43822a}=_0x17ff89[_0x9c475a(0x455)],_0x16c456=this[_0x9c475a(0x41f)];_0x16c456[_0x9c475a(0x31f)](_0x43822a),this[_0x9c475a(0x531)][_0x9c475a(0x3f3)](_0x16c456);}[_0x215dce(0x24f)](_0x565c73,_0x4896b7){const _0x2f3dfa=_0x215dce;var _0x16d68f,_0x374cf0;const _0x55dd59=(_0x374cf0=(_0x16d68f=this[_0x2f3dfa(0x3c5)][_0x2f3dfa(0x1c0)](this[_0x2f3dfa(0x233)]))==null?void 0x0:_0x16d68f['getSheetBySheetId'](_0x565c73))==null?void 0x0:_0x374cf0[_0x2f3dfa(0x58f)]();return(_0x55dd59==null?void 0x0:_0x55dd59[_0x2f3dfa(0x24b)](_0x743e9f=>a[_0x2f3dfa(0x222)][_0x2f3dfa(0x239)](_0x743e9f,_0x4896b7)))||_0x4896b7;}[_0x215dce(0x49d)](){const _0x3fb3df=_0x215dce,_0x143f3d=new a[(_0x3fb3df(0x32d))](),_0x2a132e=Ks(),_0x2ba893=()=>{const _0x11a747=_0x3fb3df;_0x143f3d['dispose']();const _0x20b373=(_0x1a4390,_0x2966bc,_0x2036b8,_0x5432c2)=>{const _0x12278c=_0x3749;let _0x2ba570=[];switch(_0x1a4390['id']){case C[_0x12278c(0x5a9)][_0x12278c(0x1e4)]:{_0x2ba570=C['handleDeleteRangeMoveLeft'](_0x1a4390,_0x5432c2);break;}case C[_0x12278c(0x5a9)][_0x12278c(0x313)]:{_0x2ba570=C['handleDeleteRangeMoveUp'](_0x1a4390,_0x5432c2);break;}case C['EffectRefRangId'][_0x12278c(0x42f)]:{_0x2ba570=C['handleInsertCol'](_0x1a4390,_0x5432c2);break;}case C[_0x12278c(0x5a9)][_0x12278c(0x1f1)]:{_0x2ba570=C[_0x12278c(0x210)](_0x1a4390,_0x5432c2);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x2ba570=C[_0x12278c(0x2ad)](_0x1a4390,_0x5432c2);break;}case C[_0x12278c(0x5a9)][_0x12278c(0x356)]:{_0x2ba570=C[_0x12278c(0x4f0)](_0x1a4390,_0x5432c2);break;}case C[_0x12278c(0x5a9)][_0x12278c(0x2a8)]:{_0x2ba570=C['handleMoveRange'](_0x1a4390,_0x5432c2);break;}case C['EffectRefRangId'][_0x12278c(0x4f7)]:{_0x2ba570=C[_0x12278c(0x262)](_0x1a4390,_0x5432c2);break;}case C[_0x12278c(0x5a9)]['RemoveRowCommandId']:{_0x2ba570=C['handleIRemoveRow'](_0x1a4390,_0x5432c2);break;}}const _0x5ac51b=C['runRefRangeMutations'](_0x2ba570,_0x5432c2),_0x356d56=this[_0x12278c(0x41f)][_0x12278c(0x24a)](_0x2966bc);if(_0x356d56&&_0x5ac51b){const _0x59a46a={..._0x356d56,'range':_0x5ac51b};this[_0x12278c(0x41f)]['set'](_0x2966bc,_0x59a46a),_0x2a132e(()=>{const _0x44665c=_0x12278c,_0x3400b6=this['_refRangeService'][_0x44665c(0x23f)](_0x5ac51b,_0x3a2956=>(_0x3400b6[_0x44665c(0x587)](),_0x20b373(_0x3a2956,_0x2966bc,_0x2036b8,_0x5ac51b)));_0x143f3d[_0x44665c(0x345)](_0x3400b6);});}return{'redos':[],'undos':[]};};this[_0x11a747(0x41f)][_0x11a747(0x392)]((_0xcd920a,_0x4896b0)=>{const _0x5a5237=_0x11a747,{range:_0x58bcc2,sheetID:_0x4c5136}=_0xcd920a,_0x59041e=this[_0x5a5237(0x2b5)][_0x5a5237(0x23f)](_0x58bcc2,_0x4c3b48=>(_0x59041e[_0x5a5237(0x587)](),_0x20b373(_0x4c3b48,_0x4896b0,_0x4c5136,_0x58bcc2)));_0x143f3d[_0x5a5237(0x345)](_0x59041e);});};this[_0x3fb3df(0x516)](a[_0x3fb3df(0x30e)](this[_0x3fb3df(0x531)][_0x3fb3df(0x238)](()=>{_0x2ba893();})));}[_0x215dce(0x3b7)](){const _0x40c07b=_0x215dce;var _0x3b91d0,_0x58fefa;if(this[_0x40c07b(0x3fb)]=!0x0,((_0x3b91d0=this[_0x40c07b(0x3c5)]['getFocusedUnit']())==null?void 0x0:_0x3b91d0[_0x40c07b(0x421)]())!==this['unitID'])return;const _0xec7415=(_0x58fefa=this['_injector'][_0x40c07b(0x24a)](C['SheetsSelectionsService'])[_0x40c07b(0x270)]())==null?void 0x0:_0x58fefa[0x0],_0x3a455a=this[_0x40c07b(0x3c5)]['getCurrentUnitForType'](a[_0x40c07b(0x48c)][_0x40c07b(0x2ba)])[_0x40c07b(0x2cd)]();_0xec7415&&_0x3a455a&&this['_updateLocalCursor'](_0x3a455a[_0x40c07b(0x592)](),_0xec7415);}[_0x215dce(0x1a8)](){const _0x503229=_0x215dce;this[_0x503229(0x3fb)]=!0x1;}};je=Fs([Z(0x2,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),Z(0x3,a[_0x215dce(0x561)](Ke)),Z(0x4,a[_0x215dce(0x561)](X)),Z(0x5,a[_0x215dce(0x583)]),Z(0x6,a[_0x215dce(0x273)]),Z(0x7,a[_0x215dce(0x561)](C[_0x215dce(0x327)]))],je);var Xs=Object['defineProperty'],qs=Object[_0x215dce(0x394)],Js=(_0x22bc32,_0x382dd2,_0x2aa275,_0x4f28f5)=>{for(var _0x31db2f=_0x4f28f5>0x1?void 0x0:_0x4f28f5?qs(_0x382dd2,_0x2aa275):_0x382dd2,_0x2b4802=_0x22bc32['length']-0x1,_0x510534;_0x2b4802>=0x0;_0x2b4802--)(_0x510534=_0x22bc32[_0x2b4802])&&(_0x31db2f=(_0x4f28f5?_0x510534(_0x382dd2,_0x2aa275,_0x31db2f):_0x510534(_0x31db2f))||_0x31db2f);return _0x4f28f5&&_0x31db2f&&Xs(_0x382dd2,_0x2aa275,_0x31db2f),_0x31db2f;},Y=(_0x11a1d3,_0x2272cd)=>(_0x4dd7bf,_0x163608)=>_0x2272cd(_0x4dd7bf,_0x163608,_0x11a1d3);const zs=0x12c,Zs=0x64;let $e=class extends a['RxDisposable']{constructor(_0x2bfae6,_0x318cc3,_0x5d1e9e,_0x471da8,_0x41942f,_0x1bd8c7,_0x478b85,_0x74eec,_0x43183d){const _0xfa07c5=_0x215dce;super(),d(this,_0xfa07c5(0x3fb),!0x1),d(this,'_init',!0x1),d(this,_0xfa07c5(0x531),new v['BehaviorSubject'](new Map())),d(this,_0xfa07c5(0x4bf),this[_0xfa07c5(0x531)][_0xfa07c5(0x333)]()),d(this,_0xfa07c5(0x56a),new v[(_0xfa07c5(0x4f6))]([])),d(this,_0xfa07c5(0x2d0),this[_0xfa07c5(0x56a)][_0xfa07c5(0x412)](v[_0xfa07c5(0x1b1)](zs))),d(this,'_updateLocalCursor',ke(_0x2ec7bc=>{const _0x23efca=_0xfa07c5,_0x5e7558={'eventID':_[_0x23efca(0x5a1)][_0x23efca(0x26e)],'data':{'unitID':this['unitID'],'memberID':this[_0x23efca(0x2a9)][_0x23efca(0x450)](),'selection':Rt(_0x2ec7bc)}};this[_0x23efca(0x2a9)][_0x23efca(0x492)](_0x5e7558,this['unitID']);},Zs)),(this[_0xfa07c5(0x233)]=_0x2bfae6,this[_0xfa07c5(0x2a9)]=_0x318cc3,this['_injector']=_0x5d1e9e,this[_0xfa07c5(0x29c)]=_0x471da8,this[_0xfa07c5(0x40b)]=_0x41942f,this[_0xfa07c5(0x343)]=_0x1bd8c7,this['_transformService']=_0x478b85,this[_0xfa07c5(0x3c5)]=_0x74eec,this[_0xfa07c5(0x35e)]=_0x43183d);}get[_0x215dce(0x41f)](){const _0x1591fc=_0x215dce;return this[_0x1591fc(0x531)]['getValue']();}get[_0x215dce(0x4a9)](){const _0x2fdac6=_0x215dce;return this['_roomMembers$'][_0x2fdac6(0x45e)]();}[_0x215dce(0x587)](){const _0xca3a2f=_0x215dce;super[_0xca3a2f(0x587)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0xca3a2f(0x3aa)](),this[_0xca3a2f(0x56a)][_0xca3a2f(0x3f3)]([]),this[_0xca3a2f(0x56a)][_0xca3a2f(0x3aa)]();}['init'](){const _0x2a0f5b=_0x215dce;this[_0x2a0f5b(0x427)]||(this[_0x2a0f5b(0x427)]=!0x0,this[_0x2a0f5b(0x2a9)]['sessionStatus$'][_0x2a0f5b(0x412)](v[_0x2a0f5b(0x3ff)](this[_0x2a0f5b(0x236)]))[_0x2a0f5b(0x238)](_0x556ea7=>{const _0xf17298=_0x2a0f5b;_0x556ea7===j[_0xf17298(0x27d)]?this[_0xf17298(0x3b7)]():this[_0xf17298(0x1a8)]();}),this[_0x2a0f5b(0x2a9)][_0x2a0f5b(0x4e6)][_0x2a0f5b(0x412)](v['takeUntil'](this['dispose$']))[_0x2a0f5b(0x238)](_0x568bdd=>{const _0x3abf27=_0x2a0f5b,_0x4bc2e2=_0x568bdd[_0x3abf27(0x533)];_0x4bc2e2===_[_0x3abf27(0x5a1)][_0x3abf27(0x26e)]&&this['_onCursorUpdate'](_0x568bdd),_0x4bc2e2===_['CollaborationEvent'][_0x3abf27(0x505)]&&this[_0x3abf27(0x2c1)](_0x568bdd);}),this['disposeWithMe'](this[_0x2a0f5b(0x35e)][_0x2a0f5b(0x482)](_0x200b40=>{const _0x462807=_0x2a0f5b,_0x42c051=_0x200b40[_0x462807(0x41c)];_0x42c051!=null&&this['_online']&&_0x200b40['id']===B[_0x462807(0x45b)]['id']&&_0x42c051[_0x462807(0x3ef)]===this[_0x462807(0x233)]&&_0x42c051[_0x462807(0x4de)]===!0x1&&this['_updateLocalCursor'](_0x42c051[_0x462807(0x4f8)]);})),this['_syncEditingCollabCursorService'][_0x2a0f5b(0x4ad)]['pipe'](v[_0x2a0f5b(0x3ff)](this[_0x2a0f5b(0x236)]))[_0x2a0f5b(0x238)](_0xe4007a=>{const _0x42ad38=_0x2a0f5b;if((_0xe4007a==null?void 0x0:_0xe4007a[_0x42ad38(0x233)])!==this['unitID'])return;const _0x182393={'eventID':_[_0x42ad38(0x5a1)][_0x42ad38(0x26e)],'data':_0xe4007a};this[_0x42ad38(0x3b4)](_0x182393);}),this[_0x2a0f5b(0x516)](this[_0x2a0f5b(0x35e)]['onCommandExecuted'](_0x1ffa4b=>{const _0x633ee8=_0x2a0f5b;if(_0x1ffa4b[_0x633ee8(0x41c)]==null)return;const _0x5c39a6=_0x1ffa4b[_0x633ee8(0x41c)];if(_0x1ffa4b['id']!==B['RichTextEditingMutation']['id']||_0x5c39a6[_0x633ee8(0x3ef)]!==this['unitID'])return;const _0x4127cf={'id':_0x633ee8(0x4df),'params':_0x5c39a6},_0x4ebbff=this[_0x633ee8(0x41f)];for(const [_0x469ad7,_0x3c517a]of _0x4ebbff){const _0x2027e6={'id':_0x633ee8(0x4df),'params':{'unitId':this[_0x633ee8(0x233)],'actions':null,'textRanges':_0x3c517a[_0x633ee8(0x4f8)]}},_0x41a471=this[_0x633ee8(0x3e4)]['transformMutation'](_0x4127cf,_0x2027e6,!0x1);if(_[_0x633ee8(0x1d3)](_0x41a471))throw _0x41a471[_0x633ee8(0x235)];_0x4ebbff[_0x633ee8(0x4bd)](_0x469ad7,{..._0x3c517a,'ranges':_0x41a471['m2Prime'][_0x633ee8(0x41c)][_0x633ee8(0x449)]});}queueMicrotask(()=>{const _0x462208=_0x633ee8;this[_0x462208(0x531)]['next'](_0x4ebbff);});})));}['_onCursorUpdate'](_0x6112c2){const _0x32d32f=_0x215dce;var _0x55c3c6,_0x4c64cb;const {memberID:_0x5dd272,selection:_0x53a8f5}=_0x6112c2[_0x32d32f(0x455)],_0xdc97f0=ys(_0x53a8f5),_0x7618d4=(_0x4c64cb=(_0x55c3c6=this[_0x32d32f(0x40b)][_0x32d32f(0x38b)](this[_0x32d32f(0x233)],_0x5dd272))==null?void 0x0:_0x55c3c6[_0x32d32f(0x2f3)])!=null?_0x4c64cb:'Unknown\x20user',_0x2c8284={'color':this[_0x32d32f(0x29c)][_0x32d32f(0x2a5)](_0x5dd272),'name':_0x7618d4,'ranges':_0xdc97f0},_0x11acae=this[_0x32d32f(0x41f)];_0x11acae['set'](_0x5dd272,_0x2c8284),this['_cursorInfo$'][_0x32d32f(0x3f3)](_0x11acae);}['_onCursorDelete'](_0x101fea){const _0x455b85=_0x215dce,{memberID:_0x54b993}=_0x101fea[_0x455b85(0x455)],_0x4cdb5d=this[_0x455b85(0x41f)];_0x4cdb5d[_0x455b85(0x31f)](_0x54b993),this[_0x455b85(0x531)]['next'](_0x4cdb5d);}[_0x215dce(0x3b7)](){const _0xdc987f=_0x215dce;var _0x3f9723;if(this[_0xdc987f(0x3fb)]=!0x0,((_0x3f9723=this[_0xdc987f(0x3c5)][_0xdc987f(0x42a)]())==null?void 0x0:_0x3f9723[_0xdc987f(0x421)]())!==this[_0xdc987f(0x233)])return;const _0x268eb0=this[_0xdc987f(0x2cf)][_0xdc987f(0x24a)](B[_0xdc987f(0x3b3)])['getDocRanges']();Array[_0xdc987f(0x33a)](_0x268eb0)&&_0x268eb0['length']>0x0&&this[_0xdc987f(0x4a7)](_0x268eb0);}[_0x215dce(0x1a8)](){const _0x4bb49e=_0x215dce;this[_0x4bb49e(0x3fb)]=!0x1;}};$e=Js([Y(0x2,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),Y(0x3,a[_0x215dce(0x561)](Ke)),Y(0x4,a[_0x215dce(0x561)](X)),Y(0x5,a[_0x215dce(0x561)](Ge)),Y(0x6,_['ITransformService']),Y(0x7,a[_0x215dce(0x583)]),Y(0x8,a[_0x215dce(0x273)])],$e);var Qs=Object[_0x215dce(0x437)],ei=Object[_0x215dce(0x394)],ti=(_0x4f17b5,_0x459163,_0x190eda,_0x34053b)=>{const _0x90140d=_0x215dce;for(var _0x3baa59=_0x34053b>0x1?void 0x0:_0x34053b?ei(_0x459163,_0x190eda):_0x459163,_0x205e0f=_0x4f17b5[_0x90140d(0x32e)]-0x1,_0x4f2b74;_0x205e0f>=0x0;_0x205e0f--)(_0x4f2b74=_0x4f17b5[_0x205e0f])&&(_0x3baa59=(_0x34053b?_0x4f2b74(_0x459163,_0x190eda,_0x3baa59):_0x4f2b74(_0x3baa59))||_0x3baa59);return _0x34053b&&_0x3baa59&&Qs(_0x459163,_0x190eda,_0x3baa59),_0x3baa59;},Pe=(_0x3e91d7,_0x44a50e)=>(_0x284141,_0x376cff)=>_0x44a50e(_0x284141,_0x376cff,_0x3e91d7);let te=class extends a[_0x215dce(0x43a)]{constructor(_0x27af9c,_0x5cf74b,_0x48916b){const _0xa10dd6=_0x215dce;super(),d(this,_0xa10dd6(0x5a4),new Map()),d(this,_0xa10dd6(0x458),new v[(_0xa10dd6(0x507))]()),(this['_univerInstanceService']=_0x27af9c,this[_0xa10dd6(0x2cf)]=_0x5cf74b,this[_0xa10dd6(0x209)]=_0x48916b,this[_0xa10dd6(0x427)]());}[_0x215dce(0x587)](){const _0x36b807=_0x215dce;super[_0x36b807(0x587)](),this[_0x36b807(0x458)][_0x36b807(0x3aa)](),this[_0x36b807(0x5a4)][_0x36b807(0x392)](_0x363e5b=>_0x363e5b[_0x36b807(0x587)]());}['getCollabCursors$'](_0x495659){const _0x1f9289=_0x215dce;return this[_0x1f9289(0x5a4)][_0x1f9289(0x509)](_0x495659)?this[_0x1f9289(0x5a4)]['get'](_0x495659)[_0x1f9289(0x4bf)]:this['_entityInit$'][_0x1f9289(0x412)](v[_0x1f9289(0x2d8)](_0x3d456e=>_0x3d456e['unitID']===_0x495659),v[_0x1f9289(0x37a)](_0x5ec2e5=>_0x5ec2e5['cursorInfo$']));}[_0x215dce(0x427)](){const _0x380932=_0x215dce;this[_0x380932(0x3c5)][_0x380932(0x1c7)](a[_0x380932(0x48c)][_0x380932(0x2ba)])[_0x380932(0x412)](v[_0x380932(0x3ff)](this['dispose$']))[_0x380932(0x238)](async _0x2377fe=>{const _0x55b65e=_0x380932,_0x3ef6cf=_0x2377fe[_0x55b65e(0x421)](),_0xc68409=await this[_0x55b65e(0x228)](_0x3ef6cf);this[_0x55b65e(0x458)][_0x55b65e(0x3f3)](_0xc68409),this[_0x55b65e(0x5a4)]['set'](_0x3ef6cf,_0xc68409);}),this[_0x380932(0x3c5)][_0x380932(0x1c7)](a['UniverInstanceType'][_0x380932(0x2df)])['pipe'](v[_0x380932(0x3ff)](this['dispose$']))[_0x380932(0x412)](v[_0x380932(0x2d8)](_0x3d05c8=>!_0x3d05c8[_0x380932(0x421)]()[_0x380932(0x292)]('__')))['subscribe'](async _0x255b16=>{const _0x53ad13=_0x380932,_0x591c2e=_0x255b16[_0x53ad13(0x421)](),_0x583068=await this[_0x53ad13(0x203)](_0x591c2e);this[_0x53ad13(0x458)][_0x53ad13(0x3f3)](_0x583068),this[_0x53ad13(0x5a4)]['set'](_0x591c2e,_0x583068);}),v[_0x380932(0x4c4)](this[_0x380932(0x3c5)][_0x380932(0x4ec)](a[_0x380932(0x48c)]['UNIVER_DOC']),this[_0x380932(0x3c5)][_0x380932(0x4ec)](a[_0x380932(0x48c)]['UNIVER_SHEET']))[_0x380932(0x412)](v[_0x380932(0x3ff)](this[_0x380932(0x236)]))[_0x380932(0x238)](_0x34c6c2=>{const _0x3ad4c9=_0x380932,_0x4951ca=_0x34c6c2[_0x3ad4c9(0x421)](),_0x376ab4=this[_0x3ad4c9(0x5a4)][_0x3ad4c9(0x24a)](_0x4951ca);_0x376ab4&&(_0x376ab4[_0x3ad4c9(0x587)](),this[_0x3ad4c9(0x5a4)][_0x3ad4c9(0x31f)](_0x4951ca));});}async[_0x215dce(0x228)](_0x50b07e){const _0x4ab113=_0x215dce,_0x53c714=await this[_0x4ab113(0x209)][_0x4ab113(0x37b)](_0x50b07e),_0x1012f8=this[_0x4ab113(0x2cf)][_0x4ab113(0x3f6)](je,_0x50b07e,_0x53c714);return _0x1012f8[_0x4ab113(0x395)](),_0x1012f8;}async[_0x215dce(0x203)](_0x1d15aa){const _0x5df6c8=_0x215dce,_0x54f191=await this[_0x5df6c8(0x209)]['requireSession'](_0x1d15aa),_0xb330e4=this[_0x5df6c8(0x2cf)][_0x5df6c8(0x3f6)]($e,_0x1d15aa,_0x54f191);return _0xb330e4[_0x5df6c8(0x395)](),_0xb330e4;}};te=ti([a[_0x215dce(0x51d)](a[_0x215dce(0x44d)][_0x215dce(0x32a)],te),Pe(0x0,a[_0x215dce(0x583)]),Pe(0x1,a[_0x215dce(0x561)](a['Injector'])),Pe(0x2,a[_0x215dce(0x561)](exports[_0x215dce(0x4ac)]))],te);const _e=0x14,nt=0xc8,Ue=0x4,si=0x5;function ii(_0x105ff8,_0x28cba3){const _0x3206d5=_0x215dce;let {radius:_0x502c2c,width:_0x2d0610,height:_0x104b61}=_0x28cba3;_0x502c2c=_0x502c2c!=null?_0x502c2c:0x0,_0x2d0610=_0x2d0610!=null?_0x2d0610:0x1e,_0x104b61=_0x104b61!=null?_0x104b61:0x1e;let _0x2a07d9=0x0,_0x39aed5=0x0,_0x30c5a0=0x0;_0x2a07d9=_0x39aed5=_0x30c5a0=Math['min'](_0x502c2c,_0x2d0610/0x2,_0x104b61/0x2),_0x105ff8[_0x3206d5(0x41b)](),_0x105ff8['moveTo'](_0x2a07d9,0x0),_0x105ff8[_0x3206d5(0x53a)](_0x2d0610-_0x39aed5,0x0),_0x105ff8[_0x3206d5(0x414)](_0x2d0610-_0x39aed5,_0x39aed5,_0x39aed5,Math['PI']*0x3/0x2,0x0,!0x1),_0x105ff8[_0x3206d5(0x53a)](_0x2d0610,_0x104b61-_0x30c5a0),_0x105ff8[_0x3206d5(0x414)](_0x2d0610-_0x30c5a0,_0x104b61-_0x30c5a0,_0x30c5a0,0x0,Math['PI']/0x2,!0x1),_0x105ff8[_0x3206d5(0x53a)](0x0,_0x104b61),_0x105ff8[_0x3206d5(0x53a)](0x0,_0x2a07d9),_0x105ff8[_0x3206d5(0x414)](_0x2a07d9,_0x2a07d9,_0x2a07d9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x105ff8[_0x3206d5(0x1d8)](),_0x28cba3[_0x3206d5(0x1da)]&&(_0x105ff8['save'](),_0x105ff8[_0x3206d5(0x36a)]=_0x28cba3['fill'],_0x28cba3['fillRule']===_0x3206d5(0x3a6)?_0x105ff8[_0x3206d5(0x1da)]('evenodd'):_0x105ff8[_0x3206d5(0x1da)](),_0x105ff8['restore']());}class be extends R[_0x215dce(0x2f4)]{constructor(_0x1a2757,_0x3a5059){const _0x49a5d2=_0x215dce;super(_0x1a2757,_0x3a5059),d(this,_0x49a5d2(0x4ef)),d(this,'text'),(this['color']=_0x3a5059==null?void 0x0:_0x3a5059[_0x49a5d2(0x4ef)],this['text']=_0x3a5059==null?void 0x0:_0x3a5059[_0x49a5d2(0x1c6)]);}static['drawWith'](_0x27aec4,_0x146457){const _0x1feedd=_0x215dce,{text:_0x50fca5,color:_0x49fbb2}=_0x146457;_0x27aec4[_0x1feedd(0x497)](),_0x27aec4[_0x1feedd(0x409)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x59e6c1=_0x27aec4[_0x1feedd(0x405)](_0x50fca5)[_0x1feedd(0x361)],_0x83549c=Math[_0x1feedd(0x1db)](_0x59e6c1+0x2*Ue,nt);ii(_0x27aec4,{'height':_e,'radius':0x4,'width':_0x83549c,'fill':_0x49fbb2,'evented':!0x1}),_0x27aec4['fillStyle']=_0x1feedd(0x429);const _0xeeb298=Ue,_0x7e9d3b=_e-si,_0x4ba49a=nt-0x2*Ue;if(_0x59e6c1>_0x4ba49a){let _0x142816='',_0xa45ad8=0x0;for(const _0x300fcf of _0x50fca5){const _0x542c3b=_0x27aec4['measureText'](_0x300fcf)['width'];if(_0xa45ad8+_0x542c3b<=_0x4ba49a-_0x27aec4['measureText'](_0x1feedd(0x42c))['width'])_0x142816+=_0x300fcf,_0xa45ad8+=_0x542c3b;else{_0x142816+='...';break;}}_0x27aec4[_0x1feedd(0x4d6)](_0x142816,_0xeeb298,_0x7e9d3b);}else _0x27aec4[_0x1feedd(0x4d6)](_0x50fca5,_0xeeb298,_0x7e9d3b);_0x27aec4[_0x1feedd(0x205)]();}[_0x215dce(0x549)](_0x3dcb6a){be['drawWith'](_0x3dcb6a,this);}}const we=_0x215dce(0x242),ni=_0x215dce(0x562),ri='collab-rect-range-',ae=0x6,oi=1.5,Ne=0x4,ai=1.5,ci=_0x215dce(0x2b0);class rt{constructor(_0xc8aaee,_0x17c0cb,_0x107b35,_0x38331e){const _0x3f61c7=_0x215dce;d(this,_0x3f61c7(0x2e2),[]),d(this,_0x3f61c7(0x2dc),null),d(this,_0x3f61c7(0x250),null),d(this,_0x3f61c7(0x54e),null),d(this,'_hideTimer',null),d(this,_0x3f61c7(0x547),null),(this[_0x3f61c7(0x202)]=_0xc8aaee,this[_0x3f61c7(0x456)]=_0x17c0cb,this[_0x3f61c7(0x494)]=_0x107b35,this['_document']=_0x38331e,this['_render']());}set[_0x215dce(0x1af)](_0x501458){const _0x26ad20=_0x215dce;_0x501458?(this[_0x26ad20(0x54e)]&&this[_0x26ad20(0x54e)][_0x26ad20(0x4b8)](),this[_0x26ad20(0x250)]&&this['_textBubble'][_0x26ad20(0x326)]()):(this[_0x26ad20(0x54e)]&&this[_0x26ad20(0x54e)][_0x26ad20(0x326)](),this[_0x26ad20(0x250)]&&this[_0x26ad20(0x250)]['hide']());}[_0x215dce(0x587)](){const _0x11a65c=_0x215dce;for(const _0x5013e3 of this[_0x11a65c(0x2e2)])_0x5013e3['dispose']();this[_0x11a65c(0x250)]&&this['_textBubble'][_0x11a65c(0x587)](),this[_0x11a65c(0x54e)]&&this['_anchorDot'][_0x11a65c(0x587)](),this[_0x11a65c(0x2dc)]&&this[_0x11a65c(0x2dc)][_0x11a65c(0x587)](),this[_0x11a65c(0x547)]&&this[_0x11a65c(0x547)]();}[_0x215dce(0x542)](){const _0x2272b1=_0x215dce;var _0x32fc8e;const {_docSkeleton:_0x2027f8,_document:_0x4fc6e6}=this,{color:_0x26a5f7,name:_0x2f1915,ranges:_0x4e605e}=this[_0x2272b1(0x202)],_0x24eb00=_0x4fc6e6[_0x2272b1(0x4e5)](),{docsLeft:_0x1b623d,docsTop:_0x34bc1f}=_0x24eb00,_0x29b214=new w[(_0x2272b1(0x5af))](_0x24eb00,_0x2027f8);for(const {startOffset:_0xc3b46b,endOffset:_0x21038a,collapsed:_0x242e8e,isActive:_0x12c470}of _0x4e605e){const _0x48e15b=_0x2027f8[_0x2272b1(0x340)](_0xc3b46b),_0x5eb111=_0x2027f8['findNodePositionByCharIndex'](_0x21038a);if(_0x12c470){const {contentBoxPointGroup:_0x3925e7}=_0x29b214[_0x2272b1(0x3ad)](_0x5eb111,_0x5eb111);if(_0x3925e7[_0x2272b1(0x32e)]===0x0)continue;this[_0x2272b1(0x548)](_0x26a5f7,_0x3925e7,_0x1b623d,_0x34bc1f,_0x2f1915),this[_0x2272b1(0x547)]=this[_0x2272b1(0x213)]();}if(!_0x242e8e&&_0x48e15b&&_0x5eb111){if(w[_0x2272b1(0x418)](_0x48e15b,_0x5eb111)){const _0x170ff4=new w[(_0x2272b1(0x1d1))](_0x24eb00,_0x2027f8),{pointGroup:_0x1ab371}=(_0x32fc8e=_0x170ff4[_0x2272b1(0x3ad)](_0x48e15b,_0x5eb111))!=null?_0x32fc8e:{};if(_0x1ab371==null||_0x1ab371['length']===0x0)continue;this['_drawRectRange'](_0x26a5f7,_0x1ab371,_0x1b623d,_0x34bc1f);}else{const {contentBoxPointGroup:_0x5ca72e}=_0x29b214[_0x2272b1(0x3ad)](_0x48e15b,_0x5eb111);if(_0x5ca72e[_0x2272b1(0x32e)]===0x0)continue;this[_0x2272b1(0x1d0)](_0x26a5f7,_0x5ca72e,_0x1b623d,_0x34bc1f);}}}}[_0x215dce(0x548)](_0x162cae,_0x44a94a,_0x332774,_0x3a8f9c,_0x1511ca){const _0x2c13f5=_0x215dce,_0x9c544f=this[_0x2c13f5(0x2e1)](_0x44a94a),{left:_0x1a90f0,top:_0x21fa4a,height:_0x3dcdf4}=_0x9c544f,_0x3cd6ff=this[_0x2c13f5(0x1fa)](),_0xaccbaf=ai/_0x3cd6ff,_0xdb2a8b=new R['Rect'](we+a['Tools'][_0x2c13f5(0x543)](ae),{'left':_0x1a90f0+_0x332774-_0xaccbaf,'top':_0x21fa4a+_0x3a8f9c,'height':_0x3dcdf4,'width':oi,'fill':_0x162cae||R[_0x2c13f5(0x21f)](a[_0x2c13f5(0x3b5)][_0x2c13f5(0x537)],0x0),'strokeWidth':_0xaccbaf,'stroke':ci,'evented':!0x0});this['_anchor']=_0xdb2a8b,this[_0x2c13f5(0x456)][_0x2c13f5(0x4c6)](_0xdb2a8b,w[_0x2c13f5(0x3a3)]);const _0x42c6f8=new R[(_0x2c13f5(0x27c))](we+a[_0x2c13f5(0x432)][_0x2c13f5(0x543)](ae),{'left':_0x1a90f0+_0x332774-_0xaccbaf,'top':_0x21fa4a+_0x3a8f9c-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x162cae||R[_0x2c13f5(0x21f)](a[_0x2c13f5(0x3b5)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x162cae||R[_0x2c13f5(0x21f)](a[_0x2c13f5(0x3b5)][_0x2c13f5(0x537)],0x0),'evented':!0x1});this[_0x2c13f5(0x54e)]=_0x42c6f8,this['_scene']['addObject'](_0x42c6f8,w[_0x2c13f5(0x3a3)]);const _0x27af8b=new be(we+a['Tools'][_0x2c13f5(0x543)](ae),{'left':_0x1a90f0+_0x332774-_0xaccbaf,'top':_0x21fa4a+_0x3a8f9c-_e,'text':_0x1511ca,'color':_0x162cae});this['_textBubble']=_0x27af8b,this[_0x2c13f5(0x456)][_0x2c13f5(0x4c6)](_0x27af8b,w[_0x2c13f5(0x3a3)]),this[_0x2c13f5(0x1af)]=!0x1;}[_0x215dce(0x213)](){const _0x1b1515=_0x215dce,_0x4eee5c=this[_0x1b1515(0x2dc)][_0x1b1515(0x25f)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x88bbbd=this[_0x1b1515(0x2dc)][_0x1b1515(0x1b8)][_0x1b1515(0x288)](()=>{const _0x583339=_0x1b1515;this['_hideTimer']&&clearTimeout(this[_0x583339(0x363)]),this[_0x583339(0x363)]=setTimeout(()=>{const _0x4fd92a=_0x583339;this[_0x4fd92a(0x1af)]=!0x1;},0x7d0);});return()=>{const _0x3e7aa4=_0x1b1515;_0x4eee5c[_0x3e7aa4(0x56f)](),_0x88bbbd[_0x3e7aa4(0x56f)]();};}[_0x215dce(0x1d0)](_0x2a6cb6,_0x560d20,_0x369a1a,_0x46d517){const _0x26b89e=_0x215dce,_0x1f12b3=new a[(_0x26b89e(0x3c8))](_0x2a6cb6)['setAlpha'](0.2)[_0x26b89e(0x3d7)](),_0x2138e3=new R[(_0x26b89e(0x44a))](ni+a[_0x26b89e(0x432)][_0x26b89e(0x543)](ae),{'pointsGroup':_0x560d20,'fill':_0x1f12b3||R[_0x26b89e(0x21f)](a[_0x26b89e(0x3b5)][_0x26b89e(0x537)],0.2),'left':_0x369a1a,'top':_0x46d517,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x26b89e(0x364)](_0x2138e3),this['_scene'][_0x26b89e(0x4c6)](_0x2138e3,w[_0x26b89e(0x3a3)]);}[_0x215dce(0x351)](_0x1668a3,_0x527fab,_0x5f34d3,_0x2e5f36){const _0x2bf4da=_0x215dce,_0x4e35a4=new a[(_0x2bf4da(0x3c8))](_0x1668a3)['setAlpha'](0.2)[_0x2bf4da(0x3d7)](),_0x27e5f4=new R[(_0x2bf4da(0x44a))](ri+a[_0x2bf4da(0x432)][_0x2bf4da(0x543)](ae),{'pointsGroup':_0x527fab,'fill':_0x4e35a4||R[_0x2bf4da(0x21f)](a[_0x2bf4da(0x3b5)][_0x2bf4da(0x537)],0.2),'left':_0x5f34d3,'top':_0x2e5f36,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2bf4da(0x2e2)][_0x2bf4da(0x364)](_0x27e5f4),this[_0x2bf4da(0x456)]['addObject'](_0x27e5f4,w[_0x2bf4da(0x3a3)]);}[_0x215dce(0x2e1)](_0x19846f){const _0x453824=_0x19846f[0x0],_0x539b62=_0x453824[0x0],_0x52bc95=_0x453824[0x2],{x:_0x134cd1,y:_0x2f3608}=_0x539b62,{x:_0x8f6309,y:_0x34a5e0}=_0x52bc95;return{'left':_0x134cd1,'top':_0x2f3608,'width':_0x8f6309-_0x134cd1,'height':_0x34a5e0-_0x2f3608};}[_0x215dce(0x1fa)](){const _0x53d2e7=_0x215dce,{scaleX:_0x293b59,scaleY:_0x23fa2e}=this[_0x53d2e7(0x456)]['getAncestorScale']();return Math[_0x53d2e7(0x330)](_0x293b59,_0x23fa2e);}}var li=Object[_0x215dce(0x437)],hi=Object[_0x215dce(0x394)],_i=(_0x127d9a,_0x111e34,_0x4e0b06,_0x4e25d1)=>{const _0x2c1c12=_0x215dce;for(var _0x1a9202=_0x4e25d1>0x1?void 0x0:_0x4e25d1?hi(_0x111e34,_0x4e0b06):_0x111e34,_0x1c3c3f=_0x127d9a[_0x2c1c12(0x32e)]-0x1,_0x3b66ad;_0x1c3c3f>=0x0;_0x1c3c3f--)(_0x3b66ad=_0x127d9a[_0x1c3c3f])&&(_0x1a9202=(_0x4e25d1?_0x3b66ad(_0x111e34,_0x4e0b06,_0x1a9202):_0x3b66ad(_0x1a9202))||_0x1a9202);return _0x4e25d1&&_0x1a9202&&li(_0x111e34,_0x4e0b06,_0x1a9202),_0x1a9202;},ue=(_0x1f05bb,_0x565e90)=>(_0x467fd4,_0x22e33e)=>_0x565e90(_0x467fd4,_0x22e33e,_0x1f05bb);let ve=class extends a[_0x215dce(0x43a)]{constructor(_0x1f0445,_0x5d0a60,_0x4979ed,_0x10c476,_0x286854){const _0x1622a2=_0x215dce;super(),d(this,_0x1622a2(0x349),[]),d(this,_0x1622a2(0x27f),[]),(this[_0x1622a2(0x357)]=_0x1f0445,this[_0x1622a2(0x234)]=_0x5d0a60,this[_0x1622a2(0x224)]=_0x4979ed,this[_0x1622a2(0x35e)]=_0x10c476,this[_0x1622a2(0x4a8)]=_0x286854,this['_init']());}[_0x215dce(0x427)](){const _0x3ae090=_0x215dce,_0x3945ee=this[_0x3ae090(0x357)][_0x3ae090(0x3ef)],_0x4264ab=this['_docSkeletonManagerService'];this[_0x3ae090(0x516)](v['combineLatest']([this['_collabCursorController']['getCollabCursors$'](_0x3945ee),this[_0x3ae090(0x4a8)]['currentTheme$']])['pipe'](E[_0x3ae090(0x2ec)](([_0x516a86,_0x13a37e])=>({'skeleton':_0x4264ab['getSkeleton'](),'cursors':[..._0x516a86[_0x3ae090(0x267)]()][_0x3ae090(0x39b)](_0x4e18cc=>({..._0x4e18cc,'color':_0x13a37e[_0x4e18cc['color']]}))})))['subscribe'](_0x1e92d0=>{const _0x50f2df=_0x3ae090;if(this[_0x50f2df(0x379)](),_0x1e92d0){const {skeleton:_0x2c1829,cursors:_0x445f2d}=_0x1e92d0;this['_updateCollabCursors'](_0x2c1829,_0x445f2d);}})),this[_0x3ae090(0x488)](),this['_initCommandExecutedListener']();}[_0x215dce(0x444)](_0x295727,_0x26d057){const _0x2b1210=_0x215dce,{scene:_0x3c5af0,mainComponent:_0x560d42}=this[_0x2b1210(0x357)],_0x3d8ea2=_0x26d057[_0x2b1210(0x2ec)](_0x37a416=>new rt(_0x37a416,_0x3c5af0,_0x295727,_0x560d42));this['_cursorShapes']=_0x3d8ea2,this[_0x2b1210(0x27f)]=_0x26d057;}[_0x215dce(0x3d9)](){const _0x44ea88=_0x215dce;this[_0x44ea88(0x379)]();const {scene:_0x2f9385,mainComponent:_0x56aa93}=this[_0x44ea88(0x357)],_0x2a590f=this[_0x44ea88(0x234)][_0x44ea88(0x573)](),_0x1c91df=this['_cursors'][_0x44ea88(0x2ec)](_0x2ef62a=>new rt(_0x2ef62a,_0x2f9385,_0x2a590f,_0x56aa93));this['_cursorShapes']=_0x1c91df;}['_removeCollabCursors'](){const _0x9d2691=_0x215dce;this[_0x9d2691(0x349)][_0x9d2691(0x392)](_0x38202e=>_0x38202e[_0x9d2691(0x587)]()),this['_cursorShapes']=[];}[_0x215dce(0x1ec)](){const _0x2874b7=_0x215dce,_0x59a3f8=[w[_0x2874b7(0x5b1)]['id']];this[_0x2874b7(0x516)](this[_0x2874b7(0x35e)]['onCommandExecuted'](_0x4b2f6c=>{const _0x45d2e5=_0x2874b7;_0x59a3f8[_0x45d2e5(0x53f)](_0x4b2f6c['id'])&&_0x4b2f6c[_0x45d2e5(0x41c)][_0x45d2e5(0x3ef)]===this[_0x45d2e5(0x357)][_0x45d2e5(0x3ef)]&&this[_0x45d2e5(0x3d9)]();}));}[_0x215dce(0x488)](){const _0x115030=_0x215dce;this[_0x115030(0x516)](a[_0x115030(0x378)](this[_0x115030(0x357)]['engine'][_0x115030(0x25b)])['pipe'](E['filter'](_0x14c538=>_0x14c538[_0x115030(0x3ee)]===R[_0x115030(0x4f2)][_0x115030(0x4fc)]),E[_0x115030(0x1fb)](0x10))['subscribe'](()=>{const _0x47aea3=_0x115030;this[_0x47aea3(0x3d9)]();}));}};ve=_i([a['OnLifecycle'](a[_0x215dce(0x44d)][_0x215dce(0x241)],ve),ue(0x1,a[_0x215dce(0x561)](B[_0x215dce(0x2e3)])),ue(0x2,a[_0x215dce(0x561)](te)),ue(0x3,a['ICommandService']),ue(0x4,a['Inject'](a[_0x215dce(0x244)]))],ve);const ui=0x1,di=1.5;class Dt extends R['Shape']{constructor(_0x1afe53,_0xf8f64d){const _0x303884=_0x215dce;super(_0x1afe53,_0xf8f64d),d(this,_0x303884(0x2b6)),d(this,_0x303884(0x21b),!0x1),d(this,_0x303884(0x431)),d(this,_0x303884(0x447),''),d(this,_0x303884(0x55d),_0x303884(0x38d)),d(this,_0x303884(0x3a1)),(_0xf8f64d&&this[_0x303884(0x51f)](_0xf8f64d),this[_0x303884(0x25f)][_0x303884(0x288)](()=>this[_0x303884(0x51f)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0xb6aaac){const _0x56f3b9=_0x215dce;var _0x39442c,_0xdba9b1,_0x2f27de,_0x492353,_0x49946f,_0x2bd49d;this[_0x56f3b9(0x2b6)]=(_0x39442c=_0xb6aaac[_0x56f3b9(0x4ef)])!=null?_0x39442c:this[_0x56f3b9(0x2b6)],this[_0x56f3b9(0x21b)]=(_0xdba9b1=_0xb6aaac[_0x56f3b9(0x2e6)])!=null?_0xdba9b1:this[_0x56f3b9(0x21b)],this['_range']=(_0x2f27de=_0xb6aaac[_0x56f3b9(0x493)])!=null?_0x2f27de:this['_range'],this[_0x56f3b9(0x447)]=(_0x492353=_0xb6aaac[_0x56f3b9(0x2f3)])!=null?_0x492353:this[_0x56f3b9(0x447)],this[_0x56f3b9(0x55d)]=(_0x49946f=_0xb6aaac['labelPosition'])!=null?_0x49946f:this[_0x56f3b9(0x55d)],this[_0x56f3b9(0x3a1)]=(_0x2bd49d=_0xb6aaac[_0x56f3b9(0x420)])!=null?_0x2bd49d:this[_0x56f3b9(0x3a1)],this[_0x56f3b9(0x2aa)]({'width':_0xb6aaac['width'],'height':_0xb6aaac[_0x56f3b9(0x3c1)]});}[_0x215dce(0x2d5)](_0x1e6f43){const _0x2038a5=_0x215dce,{row:_0x18a4f8,column:_0x1a5ee3}=_0x1e6f43;if(_0x18a4f8>=this['_range'][_0x2038a5(0x24e)]&&_0x18a4f8<=this[_0x2038a5(0x431)][_0x2038a5(0x1d4)]&&_0x1a5ee3>=this[_0x2038a5(0x431)]['startColumn']&&_0x1a5ee3<=this[_0x2038a5(0x431)][_0x2038a5(0x4e3)]){this[_0x2038a5(0x51f)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x215dce(0x341)](_0x1a61e4){return!0x1;}[_0x215dce(0x549)](_0x267e62){const _0x584db4=_0x215dce;R['Rect'][_0x584db4(0x23d)](_0x267e62,{'width':this[_0x584db4(0x361)],'height':this[_0x584db4(0x3c1)],'strokeWidth':di,'stroke':this[_0x584db4(0x2b6)],'evented':!0x1,'fill':this[_0x584db4(0x3a1)]}),this[_0x584db4(0x21b)]&&(_0x267e62['save'](),_0x267e62['transform'](0x1,0x0,0x0,0x1,this[_0x584db4(0x361)],this['_labelPosition']===_0x584db4(0x334)?0x0:-_e),be[_0x584db4(0x23d)](_0x267e62,{'text':this['_name'],'color':this['_color']}),_0x267e62[_0x584db4(0x205)]());}}var Si=Object[_0x215dce(0x437)],vi=Object[_0x215dce(0x394)],fi=(_0x55d6c2,_0x29f155,_0x201878,_0x372e69)=>{for(var _0x3e9c4c=_0x372e69>0x1?void 0x0:_0x372e69?vi(_0x29f155,_0x201878):_0x29f155,_0x2b05f9=_0x55d6c2['length']-0x1,_0x8d80d2;_0x2b05f9>=0x0;_0x2b05f9--)(_0x8d80d2=_0x55d6c2[_0x2b05f9])&&(_0x3e9c4c=(_0x372e69?_0x8d80d2(_0x29f155,_0x201878,_0x3e9c4c):_0x8d80d2(_0x3e9c4c))||_0x3e9c4c);return _0x372e69&&_0x3e9c4c&&Si(_0x29f155,_0x201878,_0x3e9c4c),_0x3e9c4c;},Me=(_0x45019b,_0x473e51)=>(_0x241dc3,_0x2bf824)=>_0x473e51(_0x241dc3,_0x2bf824,_0x45019b);const mi=0x1389;let He=class extends a[_0x215dce(0x43a)]{constructor(_0x13dcbd,_0x2fb8af,_0x59e9f4,_0x41f47d){const _0x42e8cf=_0x215dce;super(),d(this,_0x42e8cf(0x27f),new Set()),d(this,_0x42e8cf(0x2cb),null),(this['_context']=_0x13dcbd,this[_0x42e8cf(0x3bd)]=_0x2fb8af,this[_0x42e8cf(0x224)]=_0x59e9f4,this[_0x42e8cf(0x4a8)]=_0x41f47d,this[_0x42e8cf(0x427)]());}[_0x215dce(0x427)](){const _0x525c4=_0x215dce;this['_sheetSkeletonManagerService'][_0x525c4(0x4fd)][_0x525c4(0x412)](E[_0x525c4(0x3ff)](this[_0x525c4(0x236)]),E[_0x525c4(0x37a)](_0x205f99=>{const _0x88ff59=_0x525c4;if(_0x205f99){const _0x3a8ea3=_0x205f99[_0x88ff59(0x2dd)];return v[_0x88ff59(0x582)](this[_0x88ff59(0x224)][_0x88ff59(0x489)](this['_context'][_0x88ff59(0x3ef)]),this[_0x88ff59(0x4a8)]['currentTheme$'])[_0x88ff59(0x412)](E[_0x88ff59(0x2ec)](([_0x3ffde9,_0x288d35])=>{const _0x1fc426=new Map();return _0x3ffde9['forEach']((_0x21c707,_0x1134b6)=>{const _0x1a237f=_0x3749;if(_0x21c707['sheetID']===_0x3a8ea3){const _0x4bb684={..._0x21c707};_0x4bb684[_0x1a237f(0x4ef)]=_0x288d35[_0x21c707[_0x1a237f(0x4ef)]],_0x1fc426[_0x1a237f(0x4bd)](_0x1134b6,_0x4bb684);}}),{'skeleton':_0x205f99,'cursors':_0x1fc426};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x565ed3,cursors:_0x231dbe})=>{const _0x301e98=_0x525c4;this[_0x301e98(0x379)](),_0x565ed3&&this['_updateCollabCursors'](_0x565ed3,_0x231dbe);}),this[_0x525c4(0x3bd)][_0x525c4(0x4fd)][_0x525c4(0x238)](_0x2dc6f7=>{const _0x251b9b=_0x525c4;if(_0x2dc6f7==null)return;const {skeleton:_0xa50a60}=_0x2dc6f7,{scene:_0x245d05}=this[_0x251b9b(0x357)];_0x245d05['onPointerMove$'][_0x251b9b(0x288)](ke(_0x2c6435=>{const _0x2b1ef4=_0x251b9b;var _0x4a3a60,_0x2d761f;const {offsetX:_0x1d601d,offsetY:_0x2d74c9}=_0x2c6435,{x:_0x4595fb,y:_0x33c7d8}=_0x245d05[_0x2b1ef4(0x5a3)](R[_0x2b1ef4(0x23c)][_0x2b1ef4(0x2d4)]([_0x1d601d,_0x2d74c9])),{scaleX:_0x3e6104,scaleY:_0x4f507f}=_0x245d05[_0x2b1ef4(0x3fa)](),_0x3d403c=_0x245d05[_0x2b1ef4(0x27b)](ee[_0x2b1ef4(0x425)][_0x2b1ef4(0x559)]),_0x10180d=_0x245d05['getVpScrollXYInfoByPosToVp'](R[_0x2b1ef4(0x23c)][_0x2b1ef4(0x2d4)]([_0x4595fb,_0x33c7d8]),_0x3d403c),_0x533246=_0xa50a60[_0x2b1ef4(0x1d6)](_0x1d601d,_0x2d74c9,_0x3e6104,_0x4f507f,_0x10180d);((_0x4a3a60=this['_lastPointer'])==null?void 0x0:_0x4a3a60[_0x2b1ef4(0x261)])===_0x533246[_0x2b1ef4(0x261)]&&((_0x2d761f=this['_lastPointer'])==null?void 0x0:_0x2d761f['row'])===_0x533246['row']||this[_0x2b1ef4(0x27f)]['forEach'](_0x1149b7=>{const _0xe8da92=_0x2b1ef4;_0x1149b7[_0xe8da92(0x2d5)](_0x533246);});},0x64));});}['_updateCollabCursors'](_0x1293fc,_0x50f7cc){const _0x212fb7=_0x215dce;var _0x2e6db8;const _0x5f40d0=(_0x2e6db8=this[_0x212fb7(0x3bd)][_0x212fb7(0x49c)]())==null?void 0x0:_0x2e6db8[_0x212fb7(0x1de)];if(!_0x5f40d0)return;const _0x17325f=this[_0x212fb7(0x481)]();if(!_0x17325f)return;this[_0x212fb7(0x27f)]['forEach'](_0x800c7b=>{const _0x529c18=_0x212fb7;_0x800c7b[_0x529c18(0x3bc)]();});const {scene:_0x1fdf9c}=_0x17325f,_0x381753=gi(Array['from'](_0x50f7cc[_0x212fb7(0x267)]()))['map'](_0x5c1f85=>{const _0x106049=_0x212fb7,{color:_0x3d854b,range:_0x50f424,name:_0x7ade13,selection:_0x466422,sheetID:_0x5efca}=_0x5c1f85,{startColumn:_0x5a92d7,startRow:_0x192600,endColumn:_0x513f04,endRow:_0x213279}=_0x50f424,_0x45f086=ee['getCoordByCell'](_0x192600,_0x5a92d7,_0x1fdf9c,_0x5f40d0),_0x960f48=ee[_0x106049(0x365)](_0x213279,_0x513f04,_0x1fdf9c,_0x5f40d0),{columnHeaderHeightAndMarginTop:_0x573324}=_0x5f40d0,{startX:_0x3170c1,startY:_0x4cf328}=_0x45f086,{endX:_0x51d5ed,endY:_0x1faf5a}=_0x960f48,_0x501586=_0x51d5ed-_0x3170c1,_0x46b946=_0x1faf5a-_0x4cf328,_0x2f4d53={'labelPosition':_0x4cf328-_0x573324>=_e?_0x106049(0x38d):_0x106049(0x334),'sheetID':_0x5efca,'range':_0x50f424,'color':_0x3d854b,'name':_0x7ade13,'selection':_0x466422,'left':_0x3170c1,'top':_0x4cf328,'width':_0x501586,'height':_0x46b946,'evented':!0x1,'zIndex':mi};return new Dt(_0x7ade13,_0x2f4d53);});_0x1fdf9c['addObjects'](_0x381753,ui),this[_0x212fb7(0x27f)]=new Set(_0x381753);}[_0x215dce(0x379)](){const _0x29ccee=_0x215dce;var _0x32ed6d;(_0x32ed6d=this[_0x29ccee(0x27f)])==null||_0x32ed6d[_0x29ccee(0x392)](_0x5950ed=>_0x5950ed[_0x29ccee(0x587)]());}[_0x215dce(0x481)](){const _0x25ef28=_0x215dce;return ee[_0x25ef28(0x20a)](this[_0x25ef28(0x357)][_0x25ef28(0x398)],this[_0x25ef28(0x357)]);}};He=fi([Me(0x1,a[_0x215dce(0x561)](ee[_0x215dce(0x390)])),Me(0x2,a['Inject'](te)),Me(0x3,a[_0x215dce(0x561)](a[_0x215dce(0x244)]))],He);function gi(_0x31ef95){const _0x1efb40=_0x215dce,_0x5e79c4=new Map();return _0x31ef95[_0x1efb40(0x392)](_0x5a8f74=>{const _0x5d1253=_0x1efb40;if(_0x5e79c4[_0x5d1253(0x509)](_0x5a8f74['selection'])){const _0x471074=_0x5e79c4[_0x5d1253(0x24a)](_0x5a8f74['selection']);_0x471074[_0x5d1253(0x2f3)]+=',\x20'+_0x5a8f74[_0x5d1253(0x2f3)];}else _0x5e79c4['set'](_0x5a8f74[_0x5d1253(0x26c)],_0x5a8f74);}),Array[_0x1efb40(0x3e1)](_0x5e79c4[_0x1efb40(0x267)]());}var N=function(){const _0x3c5f24=_0x215dce;return N=Object[_0x3c5f24(0x430)]||function(_0x5cbde0){const _0x20611e=_0x3c5f24;for(var _0x389f72,_0x52aaf7=0x1,_0x1ad137=arguments[_0x20611e(0x32e)];_0x52aaf7<_0x1ad137;_0x52aaf7++){_0x389f72=arguments[_0x52aaf7];for(var _0x71f3b3 in _0x389f72)Object[_0x20611e(0x3e6)][_0x20611e(0x1f0)][_0x20611e(0x3c0)](_0x389f72,_0x71f3b3)&&(_0x5cbde0[_0x71f3b3]=_0x389f72[_0x71f3b3]);}return _0x5cbde0;},N[_0x3c5f24(0x400)](this,arguments);},Ii=function(_0x3f5fed,_0x5da2a5){const _0x1d662d=_0x215dce;var _0x52483a={};for(var _0x52c272 in _0x3f5fed)Object[_0x1d662d(0x3e6)][_0x1d662d(0x1f0)][_0x1d662d(0x3c0)](_0x3f5fed,_0x52c272)&&_0x5da2a5[_0x1d662d(0x1cc)](_0x52c272)<0x0&&(_0x52483a[_0x52c272]=_0x3f5fed[_0x52c272]);if(_0x3f5fed!=null&&typeof Object[_0x1d662d(0x42b)]==_0x1d662d(0x1b9)){for(var _0x55dd0e=0x0,_0x52c272=Object[_0x1d662d(0x42b)](_0x3f5fed);_0x55dd0e<_0x52c272[_0x1d662d(0x32e)];_0x55dd0e++)_0x5da2a5['indexOf'](_0x52c272[_0x55dd0e])<0x0&&Object['prototype'][_0x1d662d(0x40d)]['call'](_0x3f5fed,_0x52c272[_0x55dd0e])&&(_0x52483a[_0x52c272[_0x55dd0e]]=_0x3f5fed[_0x52c272[_0x55dd0e]]);}return _0x52483a;},Xe=P[_0x215dce(0x50a)](function(_0x10d35b,_0x548f31){const _0x118385=_0x215dce;var _0x3d1a7d=_0x10d35b[_0x118385(0x49e)],_0x2e6d3b=_0x10d35b['id'],_0x421f8b=_0x10d35b['className'],_0x3e834c=_0x10d35b[_0x118385(0x37f)],_0x324bba=Ii(_0x10d35b,[_0x118385(0x49e),'id',_0x118385(0x3fd),_0x118385(0x37f)]),_0x3b23a5=_0x118385(0x2a1)['concat'](_0x2e6d3b,'\x20')[_0x118385(0x52a)](_0x421f8b||'')[_0x118385(0x1ab)](),_0x220824=P['useRef']('_'[_0x118385(0x52a)](Ei()));return yt(_0x3d1a7d,''['concat'](_0x2e6d3b),{'defIds':_0x3d1a7d['defIds'],'idSuffix':_0x220824[_0x118385(0x25a)]},N({'ref':_0x548f31,'className':_0x3b23a5},_0x324bba),_0x3e834c);});function yt(_0x2d9837,_0x43c8e2,_0x22b270,_0x4538cd,_0x160c0c){const _0x55d412=_0x215dce;return P[_0x55d412(0x4a4)](_0x2d9837[_0x55d412(0x58d)],N(N({'key':_0x43c8e2},pi(_0x2d9837,_0x22b270,_0x160c0c)),_0x4538cd),(Ci(_0x2d9837,_0x22b270)[_0x55d412(0x342)]||[])[_0x55d412(0x2ec)](function(_0x29a06a,_0x1394c0){const _0x3a5c4e=_0x55d412;return yt(_0x29a06a,''[_0x3a5c4e(0x52a)](_0x43c8e2,'-')['concat'](_0x2d9837['tag'],'-')[_0x3a5c4e(0x52a)](_0x1394c0),_0x22b270,void 0x0,_0x160c0c);}));}function pi(_0x280b70,_0x46b273,_0x4813a2){const _0x297d9d=_0x215dce;var _0x293db9=N({},_0x280b70[_0x297d9d(0x3dd)]);_0x4813a2!=null&&_0x4813a2[_0x297d9d(0x42d)]&&_0x293db9[_0x297d9d(0x1da)]==='colorChannel1'&&(_0x293db9[_0x297d9d(0x1da)]=_0x4813a2[_0x297d9d(0x42d)]);var _0x47180b=_0x46b273['defIds'];return!_0x47180b||_0x47180b[_0x297d9d(0x32e)]===0x0||(_0x280b70[_0x297d9d(0x58d)]===_0x297d9d(0x34f)&&_0x293db9[_0x297d9d(0x2b3)]&&(_0x293db9[_0x297d9d(0x2b3)]=_0x293db9['xlink:href']+_0x46b273[_0x297d9d(0x4c1)]),Object[_0x297d9d(0x24c)](_0x293db9)['forEach'](function(_0x34757e){const _0x4c0edd=_0x297d9d;var _0x35e9b9=_0x34757e[0x0],_0x53bf0d=_0x34757e[0x1];typeof _0x53bf0d==_0x4c0edd(0x1fe)&&(_0x293db9[_0x35e9b9]=_0x53bf0d[_0x4c0edd(0x33d)](/url\(#(.*)\)/,_0x4c0edd(0x2ed)[_0x4c0edd(0x52a)](_0x46b273[_0x4c0edd(0x4c1)],')')));})),_0x293db9;}function Ci(_0x2bfdc0,_0x343b60){const _0x4f8086=_0x215dce;var _0xc2be1c,_0x5e9716=_0x343b60[_0x4f8086(0x4d2)];return!_0x5e9716||_0x5e9716[_0x4f8086(0x32e)]===0x0?_0x2bfdc0:_0x2bfdc0[_0x4f8086(0x58d)]===_0x4f8086(0x5a2)&&(!((_0xc2be1c=_0x2bfdc0[_0x4f8086(0x342)])===null||_0xc2be1c===void 0x0)&&_0xc2be1c['length'])?N(N({},_0x2bfdc0),{'children':_0x2bfdc0[_0x4f8086(0x342)][_0x4f8086(0x2ec)](function(_0xa377d0){const _0x5c8c36=_0x4f8086;return typeof _0xa377d0[_0x5c8c36(0x3dd)]['id']==_0x5c8c36(0x1fe)&&_0x5e9716&&_0x5e9716[_0x5c8c36(0x1cc)](_0xa377d0[_0x5c8c36(0x3dd)]['id'])>-0x1?N(N({},_0xa377d0),{'attrs':N(N({},_0xa377d0[_0x5c8c36(0x3dd)]),{'id':_0xa377d0[_0x5c8c36(0x3dd)]['id']+_0x343b60[_0x5c8c36(0x4c1)]})}):_0xa377d0;})}):_0x2bfdc0;}function Ei(){const _0x3c42d3=_0x215dce;return Math[_0x3c42d3(0x596)]()['toString'](0x24)[_0x3c42d3(0x28d)](0x2,0x8);}Xe[_0x215dce(0x308)]=_0x215dce(0x4ee);var bi={'tag':_0x215dce(0x523),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x215dce(0x286),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x215dce(0x303)},'children':[{'tag':_0x215dce(0x1cf),'attrs':{'stroke':_0x215dce(0x211),'d':_0x215dce(0x28a),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x215dce(0x5a2),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x215dce(0x1cf),'attrs':{'fill':'#fff','d':_0x215dce(0x53c)}}]}]}],'defIds':[_0x215dce(0x1ac)]},Pt=P[_0x215dce(0x50a)](function(_0x5c366d,_0x232dc8){const _0x16ed4f=_0x215dce;return P['createElement'](Xe,Object[_0x16ed4f(0x430)]({},_0x5c366d,{'id':_0x16ed4f(0x312),'ref':_0x232dc8,'icon':bi}));});Pt[_0x215dce(0x308)]=_0x215dce(0x393);var Ti={'tag':_0x215dce(0x523),'attrs':{'fill':_0x215dce(0x597),'viewBox':_0x215dce(0x591),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x215dce(0x426)},'children':[{'tag':'path','attrs':{'stroke':_0x215dce(0x211),'d':_0x215dce(0x5ad),'strokeLinecap':_0x215dce(0x1c8),'strokeLinejoin':_0x215dce(0x1c8),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x215dce(0x1fd),'attrs':{'id':_0x215dce(0x3f5)},'children':[{'tag':_0x215dce(0x1cf),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x215dce(0x3f5)]},Ut=P[_0x215dce(0x50a)](function(_0x36b63d,_0x221de8){const _0x1a139a=_0x215dce;return P['createElement'](Xe,Object[_0x1a139a(0x430)]({},_0x36b63d,{'id':'on-line-single','ref':_0x221de8,'icon':Ti}));});Ut['displayName']='OnLineSingle';const Ri=_0x215dce(0x521),Oi=_0x215dce(0x407),Di='univer-online-status',yi=_0x215dce(0x380),Pi=_0x215dce(0x487),ce={'onlineStatusIcon':Ri,'onlineStatusTitle':Oi,'onlineStatus':Di,'online':yi,'offline':Pi};function Ui(_0x49f823){const _0x5e6cc1=_0x215dce;switch(_0x49f823){case y['OFFLINE']:return _0x5e6cc1(0x33b);case y[_0x5e6cc1(0x26a)]:return _0x5e6cc1(0x3cd);case y[_0x5e6cc1(0x2fe)]:return _0x5e6cc1(0x260);case y[_0x5e6cc1(0x319)]:return _0x5e6cc1(0x3dc);case y[_0x5e6cc1(0x32f)]:case y[_0x5e6cc1(0x54b)]:case y[_0x5e6cc1(0x23b)]:return _0x5e6cc1(0x1a6);case y[_0x5e6cc1(0x56d)]:return'collabStatus.synced';}}function wt(_0x53b0b8){const _0x6cd381=_0x215dce,{status$:_0x1633d7}=_0x53b0b8,_0x242899=M[_0x6cd381(0x47e)](_0x1633d7,y[_0x6cd381(0x319)]),_0x12eff7=a[_0x6cd381(0x3bb)](a[_0x6cd381(0x3d6)]),_0x545d63=a['useDependency'](exports[_0x6cd381(0x4ac)]),_0x96a037=_0x242899!==y[_0x6cd381(0x2de)],_0x3c6c60=_0x12eff7['t'](Ui(_0x242899)),_0x36b736=Ft(ce[_0x6cd381(0x305)],{[ce['online']]:_0x96a037,[ce['offline']]:!_0x96a037}),_0x4f2ff2=_0x96a037?P['createElement'](Ut,null):P[_0x6cd381(0x4a4)](Pt,null),_0x59af20=P[_0x6cd381(0x4b2)](()=>{_0x96a037||_0x545d63['reconnect']();},[_0x96a037,_0x545d63]);function _0x4dc512(){const _0x2bd326=_0x6cd381;return P['createElement'](_0x2bd326(0x53b),{'className':_0x36b736,'onClick':_0x59af20},P[_0x2bd326(0x4a4)](_0x2bd326(0x53b),{'className':ce[_0x2bd326(0x1b3)]},_0x4f2ff2),P[_0x2bd326(0x4a4)](_0x2bd326(0x53b),{'className':ce['onlineStatusTitle']},_0x3c6c60));}return _0x96a037?_0x4dc512():P[_0x6cd381(0x4a4)](K['Tooltip'],{'title':_0x12eff7['t'](_0x6cd381(0x1f5))},_0x4dc512());}var wi=Object[_0x215dce(0x437)],Ni=Object[_0x215dce(0x394)],Mi=(_0x5b07ea,_0x48d1e2,_0x1f9f5a,_0x4e2681)=>{const _0x602ae8=_0x215dce;for(var _0x5dca9d=_0x4e2681>0x1?void 0x0:_0x4e2681?Ni(_0x48d1e2,_0x1f9f5a):_0x48d1e2,_0x1d1c41=_0x5b07ea[_0x602ae8(0x32e)]-0x1,_0x16e16b;_0x1d1c41>=0x0;_0x1d1c41--)(_0x16e16b=_0x5b07ea[_0x1d1c41])&&(_0x5dca9d=(_0x4e2681?_0x16e16b(_0x48d1e2,_0x1f9f5a,_0x5dca9d):_0x16e16b(_0x5dca9d))||_0x5dca9d);return _0x4e2681&&_0x5dca9d&&wi(_0x48d1e2,_0x1f9f5a,_0x5dca9d),_0x5dca9d;},de=(_0x1a7885,_0x322ea6)=>(_0xf6932f,_0xf0dd55)=>_0x322ea6(_0xf6932f,_0xf0dd55,_0x1a7885);exports[_0x215dce(0x589)]=class extends a['Disposable']{constructor(_0x39d011,_0x1cf814,_0x2547b6,_0x12f31e){const _0x501f3b=_0x215dce;super(),d(this,_0x501f3b(0x41d),new v['BehaviorSubject'](y[_0x501f3b(0x319)])),(this[_0x501f3b(0x3c5)]=_0x39d011,this[_0x501f3b(0x3c7)]=_0x1cf814,this[_0x501f3b(0x2cf)]=_0x2547b6,this['_collaborationController']=_0x12f31e,this[_0x501f3b(0x4b1)](),this[_0x501f3b(0x4c9)]());}['_initStatusListener'](){const _0x580050=_0x215dce;this[_0x580050(0x516)](this['_univerInstanceService'][_0x580050(0x5ba)][_0x580050(0x412)](v[_0x580050(0x37a)](()=>{const _0x527a62=_0x580050,_0x9b73aa=this[_0x527a62(0x3c5)]['getFocusedUnit']();return _0x9b73aa?this[_0x527a62(0x287)][_0x527a62(0x2ae)](_0x9b73aa[_0x527a62(0x421)]()):v['of'](null);}),v['switchMap'](_0x44f3d3=>_0x44f3d3?_0x44f3d3[_0x580050(0x344)]:v['of'](y['NOT_COLLAB'])))[_0x580050(0x238)](_0x2a47ac=>{const _0x29effd=_0x580050;this[_0x29effd(0x41d)][_0x29effd(0x3f3)](_0x2a47ac);}));}['_initStatusComponent'](){const _0x5b971f=_0x215dce;this[_0x5b971f(0x516)](this[_0x5b971f(0x3c7)]['registerComponent'](M[_0x5b971f(0x328)]['HEADER_MENU'],()=>a[_0x5b971f(0x440)](Li({'status$':this['_status$'][_0x5b971f(0x333)]()}),this[_0x5b971f(0x2cf)])));}},exports[_0x215dce(0x589)]=Mi([de(0x0,a[_0x215dce(0x583)]),de(0x1,M[_0x215dce(0x54a)]),de(0x2,a[_0x215dce(0x561)](a['Injector'])),de(0x3,a['Inject'](exports[_0x215dce(0x3df)]))],exports[_0x215dce(0x589)]);function Li(_0x3a8fb5){const {status$:_0x3f6f10}=_0x3a8fb5;return function(){const _0x17951a=_0x3749;return P[_0x17951a(0x4a4)](wt,{'status$':_0x3f6f10});};}const Nt=_0x215dce(0x4fe),qe=a[_0x215dce(0x1d9)](_0x215dce(0x564));var Ai=Object[_0x215dce(0x437)],ji=Object['getOwnPropertyDescriptor'],$i=(_0x56747f,_0x2f182c,_0x1096c8,_0x76e255)=>{const _0x5d4777=_0x215dce;for(var _0x47f3b8=_0x76e255>0x1?void 0x0:_0x76e255?ji(_0x2f182c,_0x1096c8):_0x2f182c,_0x551c28=_0x56747f[_0x5d4777(0x32e)]-0x1,_0x2b18a2;_0x551c28>=0x0;_0x551c28--)(_0x2b18a2=_0x56747f[_0x551c28])&&(_0x47f3b8=(_0x76e255?_0x2b18a2(_0x2f182c,_0x1096c8,_0x47f3b8):_0x2b18a2(_0x47f3b8))||_0x47f3b8);return _0x76e255&&_0x47f3b8&&Ai(_0x2f182c,_0x1096c8,_0x47f3b8),_0x47f3b8;},Q=(_0x45e301,_0x302fa7)=>(_0xd311ee,_0x21b0cd)=>_0x302fa7(_0xd311ee,_0x21b0cd,_0x45e301);exports[_0x215dce(0x4da)]=class extends a[_0x215dce(0x43a)]{constructor(_0x455858,_0x503b90,_0x5480a4,_0x4cf8a7,_0x18d72c,_0x281a60){const _0x203029=_0x215dce;super(),this[_0x203029(0x295)]=_0x455858,this[_0x203029(0x362)]=_0x503b90,this[_0x203029(0x35e)]=_0x5480a4,this[_0x203029(0x4e4)]=_0x4cf8a7,this[_0x203029(0x5a5)]=_0x18d72c,_0x281a60?_0x281a60==null||_0x281a60[_0x203029(0x2b2)]()['then'](()=>this[_0x203029(0x427)]()):(this[_0x203029(0x362)][_0x203029(0x59f)](_0x203029(0x57b),_0x203029(0x296)),this[_0x203029(0x427)]());}async['_init'](){const _0x3040bf=_0x215dce,_0x5d4260=this[_0x3040bf(0x295)][_0x3040bf(0x269)]('unit'),_0x1a531f=this[_0x3040bf(0x295)][_0x3040bf(0x269)]('type');if(!_0x5d4260||!_0x1a531f){this[_0x3040bf(0x362)][_0x3040bf(0x59f)](_0x3040bf(0x57b),_0x3040bf(0x229));return;}switch(Number(_0x1a531f)){case A[_0x3040bf(0x2ba)]:{const _0x423abc=await this[_0x3040bf(0x43f)](_0x5d4260);this[_0x3040bf(0x1e0)](_0x423abc);break;}case A[_0x3040bf(0x2df)]:{await this['_loadDoc'](_0x5d4260);break;}default:{this[_0x3040bf(0x362)][_0x3040bf(0x235)]('[DataLoaderController]',_0x3040bf(0x43e));break;}}}async['_setupSubUnitSync'](_0x21d6c8){const _0x1fb8b2=_0x215dce;await this[_0x1fb8b2(0x486)](_0x21d6c8),_0x21d6c8[_0x1fb8b2(0x24d)][_0x1fb8b2(0x412)](v[_0x1fb8b2(0x3ff)](this[_0x1fb8b2(0x236)]))['subscribe'](_0x24f539=>{const _0x525bcc=_0x1fb8b2;_0x24f539&&this[_0x525bcc(0x2d2)](_0x24f539);}),this['_urlService'][_0x1fb8b2(0x566)][_0x1fb8b2(0x412)](v[_0x1fb8b2(0x3ff)](this[_0x1fb8b2(0x236)]))[_0x1fb8b2(0x238)](()=>this['_updateSubUnitFromURLParams'](_0x21d6c8));}['_updateURLWithCurrentState'](_0x49cfe0,_0x5d9491=!0x1){const _0x385715=_0x215dce,_0x552427=this['_urlService']['getParam'](_0x385715(0x3fc));_0x49cfe0[_0x385715(0x592)]()!==_0x552427&&this[_0x385715(0x295)][_0x385715(0x464)](_0x385715(0x3fc),_0x49cfe0['getSheetId'](),_0x5d9491);}async[_0x215dce(0x486)](_0x2fc8a5){const _0x17f2db=_0x215dce;var _0x1f5615;const _0x5cf379=this['_urlService']['getParam']('subunit');if(!_0x5cf379||!_0x2fc8a5[_0x17f2db(0x278)](_0x5cf379)){const _0x24b570=_0x2fc8a5['getUnhiddenWorksheets']()[0x0],_0x2a6abc=_0x2fc8a5[_0x17f2db(0x278)](_0x24b570);if(!_0x2a6abc)return;this[_0x17f2db(0x2d2)](_0x2a6abc,!0x0),await this[_0x17f2db(0x35e)][_0x17f2db(0x2d1)](C[_0x17f2db(0x374)]['id'],{'unitId':_0x2fc8a5['getUnitId'](),'subUnitId':_0x24b570});return;}((_0x1f5615=_0x2fc8a5[_0x17f2db(0x2cd)]())==null?void 0x0:_0x1f5615['getSheetId']())!==_0x5cf379&&await this['_commandService']['executeCommand'](C[_0x17f2db(0x374)]['id'],{'unitId':_0x2fc8a5[_0x17f2db(0x421)](),'subUnitId':_0x5cf379});}async[_0x215dce(0x43f)](_0x448a2e){const _0x35f7e5=_0x215dce;let _0x49ebfb=0x0;const _0x135a4e=await this[_0x35f7e5(0x4e4)][_0x35f7e5(0x247)](_0x448a2e);return _0x135a4e&&(_0x135a4e[_0x35f7e5(0x3f4)]||_0x135a4e['mutations'][_0x35f7e5(0x32e)]!==0x0)&&(_0x49ebfb=_0x135a4e[_0x35f7e5(0x50d)]),_0x49ebfb===0x0&&this[_0x35f7e5(0x362)][_0x35f7e5(0x59f)](_0x35f7e5(0x57b),_0x35f7e5(0x1cb)),this[_0x35f7e5(0x5a5)]['loadSheet'](_0x448a2e,_0x49ebfb);}async['_loadDoc'](_0x2b1ba5){const _0x5e66e0=_0x215dce;let _0x278abd=0x0;const _0x443a5c=await this[_0x5e66e0(0x4e4)][_0x5e66e0(0x247)](_0x2b1ba5);return _0x443a5c&&(_0x443a5c[_0x5e66e0(0x3f4)]||_0x443a5c['mutations']['length']!==0x0)&&(_0x278abd=_0x443a5c[_0x5e66e0(0x50d)]),_0x278abd===0x0&&this[_0x5e66e0(0x362)][_0x5e66e0(0x59f)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x5e66e0(0x5a5)][_0x5e66e0(0x5a7)](_0x2b1ba5,_0x278abd);}},exports[_0x215dce(0x4da)]=$i([a[_0x215dce(0x51d)](a[_0x215dce(0x44d)][_0x215dce(0x32a)],exports['DataLoaderController']),Q(0x0,qe),Q(0x1,a[_0x215dce(0x3ce)]),Q(0x2,a['ICommandService']),Q(0x3,a[_0x215dce(0x561)](exports['LocalCacheService'])),Q(0x4,a[_0x215dce(0x561)](_[_0x215dce(0x1ee)])),Q(0x5,a['Optional'](Gt[_0x215dce(0x508)]))],exports['DataLoaderController']);var Hi=Object[_0x215dce(0x437)],xi=Object[_0x215dce(0x394)],ki=(_0x3e4c4e,_0x9e7b2b,_0x58f4ea,_0x35bd46)=>{const _0x585aa2=_0x215dce;for(var _0x31c55e=_0x35bd46>0x1?void 0x0:_0x35bd46?xi(_0x9e7b2b,_0x58f4ea):_0x9e7b2b,_0x2c241e=_0x3e4c4e[_0x585aa2(0x32e)]-0x1,_0x404510;_0x2c241e>=0x0;_0x2c241e--)(_0x404510=_0x3e4c4e[_0x2c241e])&&(_0x31c55e=(_0x35bd46?_0x404510(_0x9e7b2b,_0x58f4ea,_0x31c55e):_0x404510(_0x31c55e))||_0x31c55e);return _0x35bd46&&_0x31c55e&&Hi(_0x9e7b2b,_0x58f4ea,_0x31c55e),_0x31c55e;},ot=(_0x4ade98,_0x1d42ad)=>(_0x336e53,_0x1b2e2e)=>_0x1d42ad(_0x336e53,_0x1b2e2e,_0x4ade98);const Bi=_0x215dce(0x1e7),Vi=_0x215dce(0x490);let fe=class extends a['Disposable']{constructor(_0x19d389,_0x21ea9c){const _0x2f4146=_0x215dce;super(),this[_0x2f4146(0x3c5)]=_0x19d389,this['_configService']=_0x21ea9c,this[_0x2f4146(0x427)]();}[_0x215dce(0x427)](){const _0x2fbb11=_0x215dce;this[_0x2fbb11(0x516)](a['toDisposable'](this[_0x2fbb11(0x3c5)][_0x2fbb11(0x5ba)][_0x2fbb11(0x238)](()=>{const _0x55caf5=_0x2fbb11;var _0x23eee7;const _0x527bd9=this[_0x55caf5(0x3c5)]['getFocusedUnit']();let _0x4258df=(_0x23eee7=this[_0x55caf5(0x1be)][_0x55caf5(0x1bd)](Bi))!=null?_0x23eee7:Vi;_0x527bd9 instanceof a[_0x55caf5(0x4dd)]&&(_0x4258df=_0x527bd9[_0x55caf5(0x2f3)]),document[_0x55caf5(0x48b)]=_0x4258df;})));}};fe=ki([a['OnLifecycle'](a[_0x215dce(0x44d)][_0x215dce(0x4fb)],fe),ot(0x0,a[_0x215dce(0x583)]),ot(0x1,a[_0x215dce(0x1e8)])],fe);var Wi=Object[_0x215dce(0x437)],Fi=Object[_0x215dce(0x394)],Gi=(_0x509279,_0x1fe8f6,_0xada86a,_0x25f888)=>{for(var _0x2a4562=_0x25f888>0x1?void 0x0:_0x25f888?Fi(_0x1fe8f6,_0xada86a):_0x1fe8f6,_0x2d67ae=_0x509279['length']-0x1,_0x297d30;_0x2d67ae>=0x0;_0x2d67ae--)(_0x297d30=_0x509279[_0x2d67ae])&&(_0x2a4562=(_0x25f888?_0x297d30(_0x1fe8f6,_0xada86a,_0x2a4562):_0x297d30(_0x2a4562))||_0x2a4562);return _0x25f888&&_0x2a4562&&Wi(_0x1fe8f6,_0xada86a,_0x2a4562),_0x2a4562;},Le=(_0x50502f,_0x45712e)=>(_0xf63a71,_0x1a4a5e)=>_0x45712e(_0xf63a71,_0x1a4a5e,_0x50502f);let Ce=class{constructor(_0x9963d0,_0x4c12ca,_0x57a52c){const _0x1c27b4=_0x215dce;this['_configService']=_0x9963d0,this['_httpService']=_0x4c12ca,this[_0x1c27b4(0x2da)]=_0x57a52c,this['init']();}['init'](){const _0x325dcf=_0x215dce;this[_0x325dcf(0x223)][_0x325dcf(0x1c1)]({'priority':0x1,'interceptor':(_0x43cca7,_0xc5ae99)=>_0xc5ae99(_0x43cca7)[_0x325dcf(0x412)](v[_0x325dcf(0x3f7)](async _0x331a62=>{const _0x1edefd=_0x325dcf,_0x49b70e=_0x331a62;if(_0x49b70e[_0x1edefd(0x281)]===0x191&&window[_0x1edefd(0x3c9)](this[_0x1edefd(0x2da)]['t'](_0x1edefd(0x2c4)))){const _0x1b25ab=window[_0x1edefd(0x23e)](window[_0x1edefd(0x2c8)]['href']);window[_0x1edefd(0x2c8)]['href']=this['_getLoginPath']()+_0x1edefd(0x352)+_0x1b25ab;}return _0x49b70e;}))});}['_getLoginPath'](){const _0x439634=_0x215dce;var _0x180a97;return(_0x180a97=this[_0x439634(0x1be)][_0x439634(0x1bd)](It))!=null?_0x180a97:es;}};Ce=Gi([Le(0x0,a['IConfigService']),Le(0x1,a[_0x215dce(0x561)](U[_0x215dce(0x56c)])),Le(0x2,a['Inject'](a[_0x215dce(0x3d6)]))],Ce);var Yi=Object[_0x215dce(0x437)],Ki=Object[_0x215dce(0x394)],Xi=(_0x28a9fd,_0x118b9d,_0x5b0618,_0x3d937f)=>{for(var _0x5e4834=_0x3d937f>0x1?void 0x0:_0x3d937f?Ki(_0x118b9d,_0x5b0618):_0x118b9d,_0x533aad=_0x28a9fd['length']-0x1,_0x16f198;_0x533aad>=0x0;_0x533aad--)(_0x16f198=_0x28a9fd[_0x533aad])&&(_0x5e4834=(_0x3d937f?_0x16f198(_0x118b9d,_0x5b0618,_0x5e4834):_0x16f198(_0x5e4834))||_0x5e4834);return _0x3d937f&&_0x5e4834&&Yi(_0x118b9d,_0x5b0618,_0x5e4834),_0x5e4834;},at=(_0x3d1d29,_0x21af99)=>(_0x3526f3,_0x211bd6)=>_0x21af99(_0x3526f3,_0x211bd6,_0x3d1d29);const Mt=_0x215dce(0x56e),qi=_0x215dce(0x413);exports[_0x215dce(0x358)]=class extends a[_0x215dce(0x530)]{constructor(_0x21d721,_0x299c6f){const _0x555ccf=_0x215dce;super(),this[_0x555ccf(0x476)]=_0x21d721,this[_0x555ccf(0x1be)]=_0x299c6f,this[_0x555ccf(0x433)]();}['_initMergeInterceptor'](){const _0x4b3b06=_0x215dce,_0x2b01f4=this;this[_0x4b3b06(0x516)](this[_0x4b3b06(0x476)][_0x4b3b06(0x1c1)]({'priority':0x3e7,'interceptor':U[_0x4b3b06(0x441)]({'isMatch'(_0x4de5ba){const _0x15ba50=_0x4b3b06;var _0x53b3be;if(_0x4de5ba[_0x15ba50(0x54f)]===_0x15ba50(0x459)&&((_0x53b3be=_0x4de5ba[_0x15ba50(0x33f)])!=null&&_0x53b3be['body'])){const {objectID:_0x5b3e91,objectType:_0x462fdf}=_0x4de5ba['requestParams'][_0x15ba50(0x27a)]||{};if(!_0x5b3e91||_0x462fdf===void 0x0)return!0x1;const _0x502ee4=_0x2b01f4[_0x15ba50(0x299)]()+'/'+_0x462fdf+_0x15ba50(0x416)+_0x5b3e91+'/allowed';if(_0x4de5ba[_0x15ba50(0x355)]===_0x502ee4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1700f6){const _0xde4f4e=_0x4b3b06;var _0x2f21b3;return(_0x2f21b3=_0x1700f6[_0xde4f4e(0x33f)])==null?void 0x0:_0x2f21b3[_0xde4f4e(0x27a)];},'mergeParamsToRequest'(_0x2b3a14,_0x32b2bd){const _0x90abf7=_0x4b3b06,_0x40cd80=_0x2b01f4[_0x90abf7(0x299)]()+_0x90abf7(0x3ae),_0x1732f0=_0x2b3a14[_0x90abf7(0x206)]((_0x120059,_0x4651d3)=>{const _0x424eef=_0x90abf7,{unitID:_0x239882,objectID:_0x3b5dab,objectType:_0x32daac,actions:_0x344dca}=_0x4651d3;return _0x120059[_0x239882]||(_0x120059[_0x239882]={}),_0x120059[_0x239882][_0x3b5dab]||(_0x120059[_0x239882][_0x3b5dab]={'objectID':_0x3b5dab,'objectType':_0x32daac,'actions':[]}),_0x120059[_0x239882][_0x3b5dab][_0x424eef(0x468)][_0x424eef(0x364)](..._0x344dca),_0x120059;},{}),_0x2e488d=[];for(const _0x5677e3 in _0x1732f0)for(const _0x38ba74 in _0x1732f0[_0x5677e3]){const {actions:_0x582a4a,objectType:_0x7b8b74}=_0x1732f0[_0x5677e3][_0x38ba74],_0x421373=[...new Set(_0x582a4a)];_0x2e488d['push']({'unitID':_0x5677e3,'objectID':_0x38ba74,'objectType':_0x7b8b74,'actions':_0x421373});}return new U[(_0x90abf7(0x498))](_0x90abf7(0x459),_0x40cd80,{'headers':_0x32b2bd[_0x90abf7(0x201)],'withCredentials':_0x32b2bd[_0x90abf7(0x4a5)],'responseType':_0x32b2bd[_0x90abf7(0x45f)],'body':{'requests':_0x2e488d}});}},{'distributeResult'(_0x2b830b,_0x143c97){const {objectActions:_0x2dbeec}=_0x2b830b;return _0x143c97['map'](_0x608f50=>{const _0x3078b7=_0x3749,{unitID:_0x363f6f,objectID:_0x4ee069,actions:_0x47d823}=_0x608f50,_0xed7e96=_0x2dbeec['find'](_0x14ca32=>_0x14ca32['unitID']===_0x363f6f&&_0x14ca32['objectID']===_0x4ee069),_0x2d7a89=_0x47d823[_0x3078b7(0x2ec)](_0x3b4764=>_0xed7e96==null?void 0x0:_0xed7e96[_0x3078b7(0x468)]['find'](_0x58ac1a=>_0x58ac1a[_0x3078b7(0x57f)]===_0x3b4764))[_0x3078b7(0x2d8)](_0x27da3e=>!!_0x27da3e);return{'config':_0x608f50,'result':{'actions':_0x2d7a89,'error':_0x2b830b[_0x3078b7(0x235)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4c115d=_0x215dce;var _0x5abada;return(_0x5abada=this[_0x4c115d(0x1be)][_0x4c115d(0x1bd)](Mt))!=null?_0x5abada:qi;}async[_0x215dce(0x2bd)](_0xfe102b){const _0x2176f5=_0x215dce,_0x34fd78=this[_0x2176f5(0x299)]()+'/'+_0xfe102b['objectType']+_0x2176f5(0x5bb);return(await this[_0x2176f5(0x476)][_0x2176f5(0x1b0)](_0x34fd78,{'body':_0xfe102b}))['body']['objectID']||'';}async[_0x215dce(0x478)](_0x34ccac){const _0x412417=_0x215dce,_0x143ff5=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x412417(0x476)][_0x412417(0x1b0)](_0x143ff5,{'body':_0x34ccac}))['body'][_0x412417(0x35c)];}async[_0x215dce(0x4bb)](_0x55f4ac){const _0xc32978=_0x215dce,_0x3837f0=this[_0xc32978(0x299)]()+'/'+_0x55f4ac[_0xc32978(0x3ca)]+'/object/'+_0x55f4ac['objectID'];await this[_0xc32978(0x476)][_0xc32978(0x2f7)](_0x3837f0,{'body':_0x55f4ac});}async[_0x215dce(0x510)](_0x1c854){const _0x316ab7=_0x215dce,_0x44f994=this['_getAPIPrefixPath']()+'/'+_0x1c854['objectType']+'/object/'+_0x1c854['objectID']+_0x316ab7(0x29a);return(await this[_0x316ab7(0x476)][_0x316ab7(0x1b0)](_0x44f994,{'body':_0x1c854}))[_0x316ab7(0x27a)][_0x316ab7(0x468)];}async[_0x215dce(0x58c)](_0xe748c3){const _0x1b35ee=_0x215dce,_0xabd3e3=this['_getAPIPrefixPath']()+_0x1b35ee(0x3ae);return(await this['_HTTPService']['post'](_0xabd3e3,{'body':{'requests':_0xe748c3}}))[_0x1b35ee(0x27a)]['objectActions'];}async[_0x215dce(0x37d)](_0x40bbd9){const _0x5236a2=_0x215dce,_0x3f2432=this['_getAPIPrefixPath']()+'/'+_0x40bbd9[_0x5236a2(0x3ca)]+_0x5236a2(0x55a),_0x1ac205=await this['_HTTPService'][_0x5236a2(0x1b0)](_0x3f2432,{'body':_0x40bbd9});return{'roles':_0x1ac205[_0x5236a2(0x27a)][_0x5236a2(0x2bc)],'actions':_0x1ac205['body'][_0x5236a2(0x468)]};}async[_0x215dce(0x332)](_0x5b6cd6){const _0x194a7e=_0x215dce,_0x452ce5=this['_getAPIPrefixPath']()+_0x194a7e(0x565);await this[_0x194a7e(0x476)]['delete'](_0x452ce5,{'params':{'collaboratorID':_0x5b6cd6[_0x194a7e(0x1c9)],'objectID':_0x5b6cd6[_0x194a7e(0x519)],'unitID':_0x5b6cd6[_0x194a7e(0x233)]}});}async[_0x215dce(0x59e)](_0xa7e9e9){const _0x2a8e9d=_0x215dce,_0x45724e=this[_0x2a8e9d(0x299)]()+_0x2a8e9d(0x565);await this[_0x2a8e9d(0x476)][_0x2a8e9d(0x1ca)](_0x45724e,{'body':_0xa7e9e9});}async[_0x215dce(0x590)](_0x2654ae){const _0x2d21e6=_0x215dce,_0x3b6066=this[_0x2d21e6(0x299)]()+_0x2d21e6(0x565);await this[_0x2d21e6(0x476)][_0x2d21e6(0x1b0)](_0x3b6066,{'body':_0x2654ae});}async['listCollaborators'](_0x1f831b){const _0x511b59=_0x215dce,_0x2d59f7=this['_getAPIPrefixPath']()+_0x511b59(0x565);return(await this[_0x511b59(0x476)][_0x511b59(0x24a)](_0x2d59f7,{'params':{'objectID':_0x1f831b[_0x511b59(0x519)],'unitID':_0x1f831b[_0x511b59(0x233)]}}))['body']['collaborators'];}async['putCollaborators'](_0x1bf842){const _0x22ff29=_0x215dce,_0x485373=this[_0x22ff29(0x299)]()+'/collaborator';await this[_0x22ff29(0x476)][_0x22ff29(0x2f7)](_0x485373,{'body':_0x1bf842});}},exports['AuthzIoHttpService']=Xi([at(0x0,a[_0x215dce(0x561)](U['HTTPService'])),at(0x1,a[_0x215dce(0x561)](a['IConfigService']))],exports[_0x215dce(0x358)]);var Ji=Object[_0x215dce(0x437)],zi=Object[_0x215dce(0x394)],Zi=(_0x556623,_0x19fe6e,_0x35b616,_0x3f7ccb)=>{const _0x53144b=_0x215dce;for(var _0x219fb5=_0x3f7ccb>0x1?void 0x0:_0x3f7ccb?zi(_0x19fe6e,_0x35b616):_0x19fe6e,_0x20773b=_0x556623[_0x53144b(0x32e)]-0x1,_0xc2e263;_0x20773b>=0x0;_0x20773b--)(_0xc2e263=_0x556623[_0x20773b])&&(_0x219fb5=(_0x3f7ccb?_0xc2e263(_0x19fe6e,_0x35b616,_0x219fb5):_0xc2e263(_0x219fb5))||_0x219fb5);return _0x3f7ccb&&_0x219fb5&&Ji(_0x19fe6e,_0x35b616,_0x219fb5),_0x219fb5;},Ae=(_0x42f983,_0x497224)=>(_0x51ac19,_0x488b00)=>_0x497224(_0x51ac19,_0x488b00,_0x42f983);const Qi=[_0x215dce(0x46a),_0x215dce(0x231),_0x215dce(0x5b0),_0x215dce(0x2ea),_0x215dce(0x553)],en=0x5*0x400*0x400,tn=_0x215dce(0x2e7),sn=_0x215dce(0x39f),nn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',rn=_0x215dce(0x574);exports['ImageIoService']=class{constructor(_0x22783f,_0x22030c,_0x1afd6d){const _0x7dd808=_0x215dce;d(this,'_waitCount',0x0),d(this,_0x7dd808(0x3de),new v[(_0x7dd808(0x507))]()),d(this,_0x7dd808(0x2c6),this[_0x7dd808(0x3de)]),d(this,_0x7dd808(0x47d),new Map()),(this[_0x7dd808(0x223)]=_0x22783f,this[_0x7dd808(0x1be)]=_0x22030c,this[_0x7dd808(0x3c5)]=_0x1afd6d);}[_0x215dce(0x371)](_0x41127a){const _0x41b2c9=_0x215dce;this[_0x41b2c9(0x1f7)]=_0x41127a,this[_0x41b2c9(0x3de)][_0x41b2c9(0x3f3)](_0x41127a);}['getImageSourceCache'](_0xcce5e1,_0x231495){const _0x4a817f=_0x215dce;if(_0x231495===L[_0x4a817f(0x212)][_0x4a817f(0x50e)]){const _0x5ed20f=new Image();return _0x5ed20f[_0x4a817f(0x560)]=_0xcce5e1,_0x5ed20f;}return this['_imageSourceCache'][_0x4a817f(0x24a)](_0xcce5e1);}['addImageSourceCache'](_0x2eb3f6,_0x5b811f,_0x15cbe0){const _0x17ef06=_0x215dce;_0x5b811f===L['ImageSourceType'][_0x17ef06(0x50e)]||_0x15cbe0==null||this[_0x17ef06(0x47d)][_0x17ef06(0x4bd)](_0x2eb3f6,_0x15cbe0);}async['getImage'](_0x275a29){const _0x1598b5=_0x215dce;try{const _0x4e4de7=this[_0x1598b5(0x42e)](this[_0x1598b5(0x524)](),''+_0x275a29),_0x128517=(await this[_0x1598b5(0x223)][_0x1598b5(0x24a)](_0x4e4de7))['body'];return _0x128517[_0x1598b5(0x235)]&&_0x128517[_0x1598b5(0x235)][_0x1598b5(0x558)]===pt['OK']?this[_0x1598b5(0x360)]()?Promise['resolve'](this[_0x1598b5(0x360)]()+_0x128517[_0x1598b5(0x355)]):Promise[_0x1598b5(0x47a)](_0x128517[_0x1598b5(0x355)]):Promise[_0x1598b5(0x5b4)](_0x128517[_0x1598b5(0x235)]);}catch(_0x3ae114){return Promise['reject'](_0x3ae114);}}async[_0x215dce(0x329)](_0x2a9424){const _0x508289=_0x215dce;let _0x23d3ed='';if(!Qi[_0x508289(0x53f)](_0x2a9424[_0x508289(0x3ee)]))return this[_0x508289(0x2bf)](),Promise[_0x508289(0x5b4)](new Error(L[_0x508289(0x5a0)][_0x508289(0x2ee)]));if(_0x2a9424['size']>en)return this[_0x508289(0x2bf)](),Promise[_0x508289(0x5b4)](new Error(L[_0x508289(0x5a0)][_0x508289(0x3ec)]));try{const _0x2ca059=new FormData();_0x2ca059[_0x508289(0x225)](_0x508289(0x253),_0x2a9424);const _0x2247f3=this[_0x508289(0x3c5)][_0x508289(0x42a)](),_0x5c3f44=_0x2247f3==null?void 0x0:_0x2247f3[_0x508289(0x421)]();if(!_0x5c3f44)throw new Error('unitId\x20is\x20not\x20found');const _0x28a524=this['_getUploadFileURL']()+_0x508289(0x2f6)+_0x2a9424[_0x508289(0x473)][_0x508289(0x445)]()+_0x508289(0x4ff)+Ct[_0x508289(0x415)]+_0x508289(0x3d1)+encodeURIComponent(_0x5c3f44),_0x3683b3=await(await fetch(_0x28a524,{'method':_0x508289(0x459),'body':_0x2ca059}))[_0x508289(0x3d4)]();if(typeof _0x3683b3[_0x508289(0x27e)]!=_0x508289(0x1fe))return this['_decreaseWaiting'](),Promise[_0x508289(0x5b4)](new Error(L[_0x508289(0x5a0)]['ERROR_IMAGE']));_0x23d3ed=_0x3683b3[_0x508289(0x27e)];}catch{return this[_0x508289(0x2bf)](),Promise['reject'](new Error(L[_0x508289(0x5a0)]['ERROR_IMAGE']));}return new Promise((_0x28247f,_0x8e2ac6)=>{const _0x3e9854=_0x508289,_0x31fa0c=new FileReader();_0x31fa0c[_0x3e9854(0x3f0)](_0x2a9424),_0x31fa0c[_0x3e9854(0x3c4)]=_0x51f392=>{const _0x57168d=_0x3e9854;var _0x3e20eb;const _0x3ac298=(_0x3e20eb=_0x51f392['target'])==null?void 0x0:_0x3e20eb['result'];if(_0x3ac298==null){this[_0x57168d(0x2bf)](),_0x8e2ac6(new Error(L[_0x57168d(0x5a0)]['ERROR_IMAGE']));return;}const _0x4be823=a[_0x57168d(0x432)][_0x57168d(0x543)](0x6);_0x28247f({'imageId':_0x4be823,'imageSourceType':L[_0x57168d(0x212)][_0x57168d(0x4eb)],'source':_0x23d3ed,'base64Cache':_0x3ac298,'status':L[_0x57168d(0x5a0)][_0x57168d(0x29f)]}),this[_0x57168d(0x2bf)]();};});}['_getUploadFileURL'](){const _0x1e3863=_0x215dce;var _0xfe1f20;return(_0xfe1f20=this[_0x1e3863(0x1be)][_0x1e3863(0x1bd)](tn))!=null?_0xfe1f20:sn;}['_getSignURL'](){const _0x475d40=_0x215dce;var _0xffbca4;return(_0xffbca4=this['_configService'][_0x475d40(0x1bd)](nn))!=null?_0xffbca4:rn;}['_getDownloadEndpointURL'](){const _0x3e5542=_0x215dce;var _0x3c7672;const _0x2d621a=this[_0x3e5542(0x1be)]['getConfig'](Nt);return(_0x3c7672=_0x2d621a==null?void 0x0:_0x2d621a['downloadEndpointUrl'])!=null?_0x3c7672:'';}['_replaceFileID'](_0x246011,_0xbbee35){const _0x3ec203=_0x215dce;return _0x246011[_0x3ec203(0x33d)](_0x3ec203(0x1ae),_0xbbee35);}[_0x215dce(0x2bf)](){const _0x53acaa=_0x215dce;this['_waitCount']-=0x1,this['_change$'][_0x53acaa(0x3f3)](this[_0x53acaa(0x1f7)]);}},exports[_0x215dce(0x2c2)]=Zi([Ae(0x0,a[_0x215dce(0x561)](U['HTTPService'])),Ae(0x1,a['IConfigService']),Ae(0x2,a[_0x215dce(0x561)](a[_0x215dce(0x583)]))],exports[_0x215dce(0x2c2)]);var on=Object['defineProperty'],an=Object['getOwnPropertyDescriptor'],cn=(_0x5c770e,_0x48a66e,_0x3ae40f,_0x1934d9)=>{for(var _0x3e1e7b=_0x1934d9>0x1?void 0x0:_0x1934d9?an(_0x48a66e,_0x3ae40f):_0x48a66e,_0xe597a8=_0x5c770e['length']-0x1,_0x37cc6b;_0xe597a8>=0x0;_0xe597a8--)(_0x37cc6b=_0x5c770e[_0xe597a8])&&(_0x3e1e7b=(_0x1934d9?_0x37cc6b(_0x48a66e,_0x3ae40f,_0x3e1e7b):_0x37cc6b(_0x3e1e7b))||_0x3e1e7b);return _0x1934d9&&_0x3e1e7b&&on(_0x48a66e,_0x3ae40f,_0x3e1e7b),_0x3e1e7b;},le=(_0x5d7d9a,_0x2139f2)=>(_0x2a1b7c,_0x106830)=>_0x2139f2(_0x2a1b7c,_0x106830,_0x5d7d9a);let me=class extends a['RxDisposable']{constructor(_0x248de2,_0x4b934a,_0x9d7525,_0x51d6c9,_0x5572e1){const _0x437e3a=_0x215dce;super(),this[_0x437e3a(0x2cf)]=_0x248de2,this[_0x437e3a(0x3c5)]=_0x4b934a,this['_permissionService']=_0x9d7525,this[_0x437e3a(0x424)]=_0x51d6c9,this[_0x437e3a(0x545)]=_0x5572e1,this['_initUnitPermissionChange'](),this[_0x437e3a(0x220)]();}[_0x215dce(0x220)](){const _0x2aded3=_0x215dce,_0x1816d9=async _0x290b87=>{const _0x1bde5f=_0x3749;(await this['_collaborationSessionService']['requireSession'](_0x290b87))['event$']['pipe'](E[_0x1bde5f(0x2d8)](_0x1038ec=>_0x1038ec[_0x1bde5f(0x533)]===_[_0x1bde5f(0x5a1)][_0x1bde5f(0x55b)]),E['takeUntil'](this[_0x1bde5f(0x236)]))[_0x1bde5f(0x238)](_0xd63761=>{const _0xfb8bd0=_0x1bde5f,_0x261674=_0xd63761,{reason:_0x5a5e96}=_0x261674[_0xfb8bd0(0x455)];this[_0xfb8bd0(0x2cf)][_0xfb8bd0(0x24a)](M[_0xfb8bd0(0x4fa)])[_0xfb8bd0(0x326)]({'type':K[_0xfb8bd0(0x536)][_0xfb8bd0(0x3ea)],'content':this['_localeService']['t'](_0xfb8bd0(0x4e1))+'('+_0x5a5e96+')'}),this[_0xfb8bd0(0x57e)]['updatePermissionPoint'](new C[(_0xfb8bd0(0x411))](_0x290b87)['id'],!0x1),this[_0xfb8bd0(0x424)][_0xfb8bd0(0x37e)](_0x290b87);});};v[_0x2aded3(0x4c4)](this[_0x2aded3(0x3c5)]['getTypeOfUnitAdded$'](a[_0x2aded3(0x48c)][_0x2aded3(0x2ba)]),this[_0x2aded3(0x3c5)][_0x2aded3(0x1c7)](a[_0x2aded3(0x48c)][_0x2aded3(0x2df)]))[_0x2aded3(0x412)](E[_0x2aded3(0x2ec)](_0xe3a592=>_0xe3a592[_0x2aded3(0x421)]()),E['filter'](_0x2d97df=>!a['isInternalEditorID'](_0x2d97df)),E[_0x2aded3(0x3ff)](this['dispose$']))[_0x2aded3(0x238)](_0x697c9c=>{_0x1816d9(_0x697c9c);});}['_initUnitPermissionChange'](){const _0x1e788d=_0x215dce,_0x3685e4=async _0x517691=>{const _0x38047c=_0x3749;(await this[_0x38047c(0x424)]['requireSession'](_0x517691))[_0x38047c(0x4e6)][_0x38047c(0x412)](E['filter'](_0x5722f6=>_0x5722f6[_0x38047c(0x533)]===_[_0x38047c(0x5a1)][_0x38047c(0x512)]),E[_0x38047c(0x3ff)](this[_0x38047c(0x236)]))['subscribe'](_0x1319f5=>{const _0x5d92ed=_0x38047c,_0x42d6d8=_0x1319f5,{objectId:_0x30ed14}=_0x42d6d8['data'],_0x5c76c9=this['_injector'][_0x5d92ed(0x24a)](ee['SheetPermissionInitController']);_0x30ed14===_0x517691?_0x5c76c9['initWorkbookPermissionChange'](_0x517691):_0x5c76c9[_0x5d92ed(0x208)](_0x517691,_0x30ed14);});};v['merge'](this[_0x1e788d(0x3c5)]['getTypeOfUnitAdded$'](a[_0x1e788d(0x48c)][_0x1e788d(0x2ba)]),this[_0x1e788d(0x3c5)]['getTypeOfUnitAdded$'](a[_0x1e788d(0x48c)]['UNIVER_DOC']))[_0x1e788d(0x412)](E[_0x1e788d(0x2ec)](_0x251277=>_0x251277[_0x1e788d(0x421)]()),E[_0x1e788d(0x2d8)](_0x2d6216=>!a[_0x1e788d(0x419)](_0x2d6216)),E[_0x1e788d(0x3ff)](this[_0x1e788d(0x236)]))[_0x1e788d(0x238)](_0x468e8c=>{_0x3685e4(_0x468e8c);});}};me=cn([a[_0x215dce(0x51d)](a['LifecycleStages'][_0x215dce(0x32a)],me),le(0x0,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),le(0x1,a[_0x215dce(0x583)]),le(0x2,a[_0x215dce(0x4ce)]),le(0x3,a[_0x215dce(0x561)](exports[_0x215dce(0x4ac)])),le(0x4,a[_0x215dce(0x561)](a[_0x215dce(0x3d6)]))],me);var ln=Object['defineProperty'],hn=Object['getOwnPropertyDescriptor'],_n=(_0x5d404e,_0x2b221f,_0x4987ba,_0x507b51)=>{const _0x55e2b0=_0x215dce;for(var _0x5e6372=_0x507b51>0x1?void 0x0:_0x507b51?hn(_0x2b221f,_0x4987ba):_0x2b221f,_0x3696d3=_0x5d404e[_0x55e2b0(0x32e)]-0x1,_0x1b4ce1;_0x3696d3>=0x0;_0x3696d3--)(_0x1b4ce1=_0x5d404e[_0x3696d3])&&(_0x5e6372=(_0x507b51?_0x1b4ce1(_0x2b221f,_0x4987ba,_0x5e6372):_0x1b4ce1(_0x5e6372))||_0x5e6372);return _0x507b51&&_0x5e6372&&ln(_0x2b221f,_0x4987ba,_0x5e6372),_0x5e6372;},ct=(_0x41ea28,_0x144bdd)=>(_0x1f2ef8,_0x56ed5f)=>_0x144bdd(_0x1f2ef8,_0x56ed5f,_0x41ea28);exports[_0x215dce(0x480)]=class{constructor(_0x50f9f2,_0xb03faa){const _0x37cfe8=_0x215dce;this[_0x37cfe8(0x1be)]=_0x50f9f2,this['_httpService']=_0xb03faa;}async[_0x215dce(0x3be)](_0x449c6c,_0x5011a6){const _0xf63aff=_0x215dce;var _0x1d9d28;const {unitID:_0x3b3330,type:_0x164f97,revision:_0x3d373c=0x0}=_0x5011a6,_0x474758=this['_getSnapshotAPIPrefix']()+'/'+_0x164f97+_0xf63aff(0x26b)+_0x3b3330+_0xf63aff(0x2fc)+_0x3d373c,_0x40c780=(await this[_0xf63aff(0x223)][_0xf63aff(0x24a)](_0x474758))[_0xf63aff(0x27a)],_0x2800cf=(_0x1d9d28=_0x40c780['snapshot'])==null?void 0x0:_0x1d9d28[_0xf63aff(0x1a9)];if(_0x2800cf){const _0x336e00=_0x2800cf==null?void 0x0:_0x2800cf[_0xf63aff(0x5b2)],_0x149545=_[_0xf63aff(0x240)][_0xf63aff(0x338)](_[_0xf63aff(0x4ea)](_0x336e00));_0x2800cf[_0xf63aff(0x5b2)]=_0x149545,Object[_0xf63aff(0x24c)](_0x2800cf[_0xf63aff(0x453)])[_0xf63aff(0x392)](([,_0x5840cd])=>{const _0x269506=_0xf63aff,_0x15cb72=_0x5840cd['originalMeta'],_0x125622=_[_0x269506(0x240)]['encode'](_[_0x269506(0x4ea)](_0x15cb72));_0x5840cd['originalMeta']=_0x125622;});}return _0x40c780;}async[_0x215dce(0x20d)](_0x1bc3f3,_0x47c4d3){const _0x2a007a=_0x215dce,{unitID:_0x127cba,type:_0x4e3f51,blockID:_0x120a1c}=_0x47c4d3,_0x52ebb7=this[_0x2a007a(0x52d)]()+'/'+_0x4e3f51+_0x2a007a(0x26b)+_0x127cba+_0x2a007a(0x47f)+_0x120a1c;return(await this['_httpService'][_0x2a007a(0x24a)](_0x52ebb7))[_0x2a007a(0x27a)];}async[_0x215dce(0x388)](_0x5d969b,_0x5412cb){const _0x472145=_0x215dce,{unitID:_0x5a5822,type:_0x5ede22,from:_0x304677,to:_0x26bb18}=_0x5412cb,_0x48a001=this['_getAPIPrefix']()+'/'+_0x5ede22+'/unit/'+_0x5a5822+_0x472145(0x36d)+_0x304677+_0x472145(0x31b)+_0x26bb18;return(await this[_0x472145(0x223)][_0x472145(0x24a)](_0x48a001))[_0x472145(0x27a)];}[_0x215dce(0x36f)](){const _0x59b453=_0x215dce;var _0x38ac65;return(_0x38ac65=this[_0x59b453(0x1be)][_0x59b453(0x1bd)](ht))!=null?_0x38ac65:this[_0x59b453(0x52d)]();}[_0x215dce(0x52d)](){const _0x358597=_0x215dce;var _0x1c32f6;return(_0x1c32f6=this[_0x358597(0x1be)][_0x358597(0x1bd)](lt))!=null?_0x1c32f6:Yt;}async[_0x215dce(0x22e)](_0x28b31a,_0x56d546){const _0x102e78=_0x215dce,_0x2cc90a=_0x102e78(0x2ca)+_0x56d546[_0x102e78(0x3ee)]+_0x102e78(0x26b)+_0x56d546[_0x102e78(0x233)]+'/resources';return(await this[_0x102e78(0x223)][_0x102e78(0x24a)](_0x2cc90a,{'params':{'resourceId':JSON[_0x102e78(0x406)](_0x56d546[_0x102e78(0x346)])}}))[_0x102e78(0x27a)];}[_0x215dce(0x45d)](){const _0x2132ca=_0x215dce;throw new Error(_0x2132ca(0x3cc));}[_0x215dce(0x47b)](){const _0x3e15b2=_0x215dce;throw new Error(_0x3e15b2(0x3cc));}[_0x215dce(0x2af)](){const _0x267e60=_0x215dce;throw new Error(_0x267e60(0x3cc));}},exports['SnapshotServerOverHTTPService']=_n([ct(0x0,a[_0x215dce(0x1e8)]),ct(0x1,a[_0x215dce(0x561)](U['HTTPService']))],exports[_0x215dce(0x480)]);var un=Object[_0x215dce(0x437)],dn=Object[_0x215dce(0x394)],Sn=(_0xe74407,_0xdc264,_0x34f215,_0xb0423d)=>{const _0x4babdf=_0x215dce;for(var _0x12821a=_0xb0423d>0x1?void 0x0:_0xb0423d?dn(_0xdc264,_0x34f215):_0xdc264,_0x5b1d20=_0xe74407[_0x4babdf(0x32e)]-0x1,_0x37956d;_0x5b1d20>=0x0;_0x5b1d20--)(_0x37956d=_0xe74407[_0x5b1d20])&&(_0x12821a=(_0xb0423d?_0x37956d(_0xdc264,_0x34f215,_0x12821a):_0x37956d(_0x12821a))||_0x12821a);return _0xb0423d&&_0x12821a&&un(_0xdc264,_0x34f215,_0x12821a),_0x12821a;},he=(_0x831e9f,_0x3f83d9)=>(_0x5bde4d,_0xc2d0ce)=>_0x3f83d9(_0x5bde4d,_0xc2d0ce,_0x831e9f);let xe=class extends a[_0x215dce(0x1b2)]{constructor(_0x215ef4,_0x41457b,_0x33fc26,_0xdad779,_0x3b7f16){const _0x55bb4a=_0x215dce;super(_0x215ef4,_0x41457b,_0x33fc26),this[_0x55bb4a(0x3e4)]=_0xdad779,this[_0x55bb4a(0x362)]=_0x3b7f16;}['transformUndoRedo'](_0x37f28c,_0x43ca2a){const _0x7247ee=_0x215dce,_0x13eeb4=this['_getUndoStack'](_0x37f28c);if(_0x13eeb4)try{const _0x109a4e=this[_0x7247ee(0x467)](_0x13eeb4,_0x43ca2a);this[_0x7247ee(0x4b4)](_0x37f28c,_0x109a4e);}catch(_0x8ddaf){this[_0x7247ee(0x362)][_0x7247ee(0x235)](_0x7247ee(0x55e),_0x8ddaf),this[_0x7247ee(0x555)](_0x37f28c);}const _0x2008b2=this[_0x7247ee(0x22f)](_0x37f28c);if(_0x2008b2)try{const _0x20e055=this[_0x7247ee(0x467)](_0x2008b2,_0x43ca2a);this['_substituteRedoStack'](_0x37f28c,_0x20e055);}catch(_0x210fbf){this['_logService'][_0x7247ee(0x235)](_0x210fbf),this['_clearRedo'](_0x37f28c);}}['_clearUndo'](_0x2c1253){const _0x2fa30d=_0x215dce,_0x1a584c=this['_getUndoStack'](_0x2c1253);_0x1a584c&&(_0x1a584c[_0x2fa30d(0x32e)]=0x0,this[_0x2fa30d(0x257)]());}['_clearRedo'](_0x5003fc){const _0x5ca799=_0x215dce,_0x26df72=this[_0x5ca799(0x22f)](_0x5003fc);_0x26df72&&(_0x26df72[_0x5ca799(0x32e)]=0x0,this[_0x5ca799(0x257)]());}[_0x215dce(0x4b4)](_0x5850a7,_0x382ea6){const _0x111fe2=_0x215dce;this['_undoStacks'][_0x111fe2(0x4bd)](_0x5850a7,_0x382ea6),this[_0x111fe2(0x257)]();}['_substituteRedoStack'](_0x5af6de,_0x274d03){const _0x340258=_0x215dce;this[_0x340258(0x594)]['set'](_0x5af6de,_0x274d03),this[_0x340258(0x257)]();}[_0x215dce(0x467)](_0x3d34f5,_0x43d2ab){const _0x4eb8d8=_0x215dce,_0x2cc43e=[];let _0x7ecd2c=_0x43d2ab,_0x21bae7=_0x43d2ab;for(let _0x216907=_0x3d34f5[_0x4eb8d8(0x32e)]-0x1;_0x216907>=0x0;_0x216907--){const {unitID:_0x372100,undoMutations:_0x48be4c,redoMutations:_0x1711e1}=_0x3d34f5[_0x216907],_0x5e7e11=this[_0x4eb8d8(0x3e4)][_0x4eb8d8(0x2fa)](_0x7ecd2c,_0x48be4c),_0x2a4fd5=this[_0x4eb8d8(0x3e4)][_0x4eb8d8(0x2fa)](_0x21bae7,_0x1711e1);if(_[_0x4eb8d8(0x254)](_0x5e7e11)||_[_0x4eb8d8(0x254)](_0x2a4fd5)){this[_0x4eb8d8(0x362)][_0x4eb8d8(0x235)](_0x4eb8d8(0x55e),_0x4eb8d8(0x517),_0x5e7e11,_0x2a4fd5);break;}_0x7ecd2c=_0x5e7e11[_0x4eb8d8(0x46c)],_0x21bae7=_0x2a4fd5['c1Prime'],_0x2cc43e[_0x4eb8d8(0x364)]({'unitID':_0x372100,'undoMutations':_0x5e7e11[_0x4eb8d8(0x32c)],'redoMutations':_0x2a4fd5[_0x4eb8d8(0x32c)]});}return _0x2cc43e[_0x4eb8d8(0x54c)]();}};xe=Sn([he(0x0,a[_0x215dce(0x583)]),he(0x1,a['ICommandService']),he(0x2,a[_0x215dce(0x45a)]),he(0x3,_[_0x215dce(0x35a)]),he(0x4,a['ILogService'])],xe);class Lt extends a[_0x215dce(0x43a)]{constructor(){const _0x584253=_0x215dce;super(),d(this,_0x584253(0x566)),this[_0x584253(0x566)]=v[_0x584253(0x34d)](window,_0x584253(0x348))[_0x584253(0x412)](v[_0x584253(0x3ff)](this[_0x584253(0x236)]),v[_0x584253(0x347)](0x1),v[_0x584253(0x462)](void 0x0));}[_0x215dce(0x464)](_0x26dda5,_0x375daa,_0x15a88e=!0x1){const _0x229aaf=_0x215dce,_0xeb897a=new URL(window['location']['href']);_0xeb897a['searchParams'][_0x229aaf(0x4bd)](_0x26dda5,_0x375daa),_0x15a88e?window[_0x229aaf(0x5b9)][_0x229aaf(0x301)]('','',_0xeb897a[_0x229aaf(0x445)]()):window[_0x229aaf(0x5b9)]['pushState']('','',_0xeb897a[_0x229aaf(0x445)]());}[_0x215dce(0x4f4)](_0xd73872,_0x35e0b3=!0x1){const _0x385e94=_0x215dce,_0xdc4191=new URL(window['location'][_0x385e94(0x578)]);_0xdc4191['searchParams']['delete'](_0xd73872),_0x35e0b3?window[_0x385e94(0x5b9)][_0x385e94(0x301)]('','',_0xdc4191[_0x385e94(0x445)]()):window['history'][_0x385e94(0x448)]('','',_0xdc4191['toString']());}[_0x215dce(0x269)](_0x564d7b){const _0x47f5b6=_0x215dce;var _0x25d9b3;return(_0x25d9b3=new URL(window[_0x47f5b6(0x2c8)][_0x47f5b6(0x578)])[_0x47f5b6(0x500)][_0x47f5b6(0x24a)](_0x564d7b))!=null?_0x25d9b3:void 0x0;}}var At=Object[_0x215dce(0x437)],vn=Object[_0x215dce(0x394)],fn=(_0x5256c1,_0x1cd134,_0x5a83ba)=>_0x1cd134 in _0x5256c1?At(_0x5256c1,_0x1cd134,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a83ba}):_0x5256c1[_0x1cd134]=_0x5a83ba,mn=(_0x107066,_0x5a938c,_0x2919e8,_0x565750)=>{for(var _0x146a82=_0x565750>0x1?void 0x0:_0x565750?vn(_0x5a938c,_0x2919e8):_0x5a938c,_0x1e04eb=_0x107066['length']-0x1,_0xe41dbf;_0x1e04eb>=0x0;_0x1e04eb--)(_0xe41dbf=_0x107066[_0x1e04eb])&&(_0x146a82=(_0x565750?_0xe41dbf(_0x5a938c,_0x2919e8,_0x146a82):_0xe41dbf(_0x146a82))||_0x146a82);return _0x565750&&_0x146a82&&At(_0x5a938c,_0x2919e8,_0x146a82),_0x146a82;},Se=(_0x4feab3,_0x42c1a9)=>(_0x5c118f,_0x362e98)=>_0x42c1a9(_0x5c118f,_0x362e98,_0x4feab3),gn=(_0x193522,_0x3e8ba5,_0x3d405e)=>fn(_0x193522,_0x3e8ba5+'',_0x3d405e);const In=_0x215dce(0x4cb);exports[_0x215dce(0x311)]=class extends a[_0x215dce(0x35b)]{constructor(_0x2e2c05={},_0x41eab6,_0x11d852,_0x463adb,_0x3ab6a1){const _0x2dd959=_0x215dce;super(),this[_0x2dd959(0x496)]=_0x2e2c05,this[_0x2dd959(0x362)]=_0x41eab6,this[_0x2dd959(0x477)]=_0x11d852,this['_injector']=_0x463adb,this[_0x2dd959(0x1be)]=_0x3ab6a1;const {..._0x4138e7}=this['_config'];this['_configService'][_0x2dd959(0x1eb)](Nt,_0x4138e7);}[_0x215dce(0x1b4)](){const _0x1926b9=_0x215dce;this[_0x1926b9(0x34b)]();}[_0x215dce(0x34c)](){const _0xf2696=_0x215dce;this[_0xf2696(0x53e)]();}[_0x215dce(0x34b)](){const _0x12ab48=_0x215dce;var _0x1ef642,_0x193936,_0x2f5b29,_0x2c0058;this[_0x12ab48(0x2cf)][_0x12ab48(0x509)](a[_0x12ab48(0x423)])&&this[_0x12ab48(0x362)]['error']('[UniverCollaborationClientPlugin]',_0x12ab48(0x502));let _0x5041e8=[[a['IUndoRedoService'],{'useClass':xe}],[exports['CollaborationSessionService']],[Ke],[U[_0x12ab48(0x56c)]],[qe,{'useClass':Lt}],[X],[exports[_0x12ab48(0x2ac)]],[U[_0x12ab48(0x294)]],[Ie],[pe],[ge],[Ge],[Ce],[Fe],[me],[We,{'useClass':(_0x193936=(_0x1ef642=this[_0x12ab48(0x496)])==null?void 0x0:_0x1ef642[_0x12ab48(0x3b9)])!=null?_0x193936:exports[_0x12ab48(0x52e)]}],[U[_0x12ab48(0x483)],{'useClass':U[_0x12ab48(0x59b)]}],[_[_0x12ab48(0x46f)],{'useClass':exports[_0x12ab48(0x480)]}],[a['IAuthzIoService'],{'useClass':exports[_0x12ab48(0x358)]}],[L[_0x12ab48(0x50f)],{'useClass':exports[_0x12ab48(0x2c2)]}],[exports[_0x12ab48(0x3df)]],[exports['DataLoaderController']],[exports[_0x12ab48(0x589)]],[fe],[te]];(_0x2f5b29=this[_0x12ab48(0x496)])!=null&&_0x2f5b29[_0x12ab48(0x314)]&&_0x5041e8[_0x12ab48(0x364)]([Ee,{'useClass':Ds}]),_0x5041e8=a[_0x12ab48(0x277)](_0x5041e8,(_0x2c0058=this[_0x12ab48(0x496)])==null?void 0x0:_0x2c0058[_0x12ab48(0x544)]),_0x5041e8[_0x12ab48(0x392)](_0x2331b4=>this['_injector']['add'](_0x2331b4)),this[_0x12ab48(0x1ce)]();}[_0x215dce(0x53e)](){const _0x53cf34=_0x215dce;this[_0x53cf34(0x516)](this[_0x53cf34(0x477)]['registerRenderModule'](a['UniverInstanceType'][_0x53cf34(0x2df)],[ve])),this[_0x53cf34(0x516)](this['_renderManagerService']['registerRenderModule'](a[_0x53cf34(0x48c)][_0x53cf34(0x2ba)],[He]));}[_0x215dce(0x1ce)](){const _0x3b4948=_0x215dce;var _0x263066,_0x1d9f81;this['_injector'][_0x3b4948(0x24a)](U['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U[_0x3b4948(0x52b)]({'maxParallel':0x6})}),(_0x263066=this[_0x3b4948(0x496)])!=null&&_0x263066[_0x3b4948(0x1a5)]||this[_0x3b4948(0x2cf)][_0x3b4948(0x24a)](exports[_0x3b4948(0x2ac)])['disableLocalCache'](),(_0x1d9f81=this[_0x3b4948(0x496)])!=null&&_0x1d9f81['enableAuthServer']&&this[_0x3b4948(0x2cf)]['get'](Ce),this['_injector'][_0x3b4948(0x24a)](exports[_0x3b4948(0x3df)]),this['_injector'][_0x3b4948(0x509)](exports[_0x3b4948(0x589)])&&this[_0x3b4948(0x2cf)][_0x3b4948(0x24a)](exports['DesktopCollaborationStatusDisplayController']);}},gn(exports[_0x215dce(0x311)],_0x215dce(0x2fd),In),exports['UniverCollaborationClientPlugin']=mn([a[_0x215dce(0x2db)](_['UniverCollaborationPlugin']),Se(0x1,a[_0x215dce(0x3ce)]),Se(0x2,R['IRenderManagerService']),Se(0x3,a[_0x215dce(0x561)](a[_0x215dce(0x304)])),Se(0x4,a['IConfigService'])],exports[_0x215dce(0x311)]),exports[_0x215dce(0x56e)]=Mt,exports[_0x215dce(0x22b)]=gt,exports[_0x215dce(0x43b)]=ut,exports[_0x215dce(0x391)]=y,exports['CollaborationStatusDisplay']=wt,exports[_0x215dce(0x5aa)]=Fe,exports[_0x215dce(0x230)]=dt,exports[_0x215dce(0x4c0)]=Be,exports[_0x215dce(0x518)]=We,exports['IURLService']=qe,exports[_0x215dce(0x1c2)]=mt,exports['LOGIN_URL_KEY']=It,exports[_0x215dce(0x20e)]=vt,exports[_0x215dce(0x26d)]=ft,exports[_0x215dce(0x1d2)]=_t,exports[_0x215dce(0x324)]=lt,exports[_0x215dce(0x563)]=ht,exports['SessionStatus']=j,exports['SheetCollabCursorShape']=Dt,exports[_0x215dce(0x1ff)]=Lt,exports[_0x215dce(0x28e)]=Et,exports[_0x215dce(0x2fb)]=bt;
|